@turquoisehealth/pit-viper 2.229.0 → 2.231.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 +42 -20
- package/_site/assets/css/pit-viper-consumer.css +42 -20
- package/_site/assets/css/pit-viper-v2-scoped.css +37 -20
- package/_site/assets/css/pit-viper-v2.css +42 -20
- package/_site/assets/css/pit-viper.css +42 -20
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pill-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvPill/PvPill.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvPill/types.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvPill/PvPill.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvPill/types.d.ts +2 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +666 -638
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPill/PvPill.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPill/types.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +49 -36
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +597 -593
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +284 -266
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +153 -147
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js +11 -11
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-floating-native[data-v-0469d441]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-0469d441]>.pv-popover,.pv-floating-native>slot[name=content][data-v-0469d441]::slotted(.pv-popover){position:static!important}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-a64056ef]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-3ed68672]{background-image:none;padding-right:2px}[data-v-3ed68672] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-3ed68672]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-8e429c72]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-8e429c72],.pv-filter-panel-header[data-v-8e429c72],.pv-filter-panel-suggestion-tags[data-v-8e429c72]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-8e429c72],.pv-filter-panel-filters-view[data-v-8e429c72]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-8e429c72]{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-8e429c72]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-8e429c72],.pv-filter-panel-footer[data-v-8e429c72],.pv-filter-panel-suggestions[data-v-8e429c72]{padding:12px}.pv-filter-panel-filter-list[data-v-8e429c72]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-8e429c72]{--flex-justify:space-between;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-8e429c72]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-8e429c72]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-8e429c72]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-8e429c72]{margin:0}.pv-filter-panel-suggestions[data-v-8e429c72]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-8e429c72]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-2ad285b3]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-2ad285b3]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-2ad285b3]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-2ad285b3]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-floating-native[data-v-0469d441]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-0469d441]>.pv-popover,.pv-floating-native>slot[name=content][data-v-0469d441]::slotted(.pv-popover){position:static!important}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-a64056ef]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-connector-middle[data-v-2a7afaff],.pv-tree-connector-end[data-v-2a7afaff]{width:16px;min-width:16px;height:16px;position:relative}.pv-tree-connector-middle[data-v-2a7afaff]:after,.pv-tree-connector-end[data-v-2a7afaff]:after{content:"";background:var(--tree-connector-color,#d2d8dc);width:8px;height:1px;position:absolute;top:50%;left:50%;transform:translateY(-50%)}.pv-tree-connector-end[data-v-2a7afaff]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:14px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.pv-tree-connector-line[data-v-fb9813d5]{position:relative}.pv-tree-connector-line[data-v-fb9813d5]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.pv-tree-drop-zone[data-v-f706f606],.pv-tree-drop-zone[data-v-26eb4678],.pv-tree-drop-zone[data-v-eb5f5907]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-f5b0d0a2]{background-image:none;padding-right:2px}[data-v-f5b0d0a2] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-f5b0d0a2]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-8e429c72]{min-height:0;max-height:100dvh;overflow:hidden}.pv-filter-panel-actions[data-v-8e429c72],.pv-filter-panel-header[data-v-8e429c72],.pv-filter-panel-suggestion-tags[data-v-8e429c72]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-8e429c72],.pv-filter-panel-filters-view[data-v-8e429c72]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-8e429c72]{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-8e429c72]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-8e429c72]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-8e429c72],.pv-filter-panel-footer[data-v-8e429c72],.pv-filter-panel-suggestions[data-v-8e429c72]{padding:12px}.pv-filter-panel-filter-list[data-v-8e429c72]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-8e429c72]{--flex-justify:space-between;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-8e429c72]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-8e429c72]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-8e429c72]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-8e429c72]{margin:0}.pv-filter-panel-suggestions[data-v-8e429c72]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-8e429c72]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-6eaa3797]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-6eaa3797]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-6eaa3797]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-6eaa3797]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onBeforeUpdate as C, onMounted as w, onUnmounted as T, onUpdated as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as
|
|
3
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onBeforeUpdate as C, onMounted as w, onUnmounted as T, onUpdated as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, unref as I, useAttrs as L, useId as R, useModel as z, useSlots as B, useTemplateRef as V, vModelCheckbox as ee, vModelDynamic as te, vModelRadio as ne, vModelText as re, vShow as H, watch as U, watchEffect as ie, withCtx as W, withDirectives as G, withKeys as ae, withModifiers as K } from "vue";
|
|
4
4
|
import { onClickOutside as oe, onKeyStroke as q, useDebounceFn as se, useElementBounding as ce, useElementHover as le, useMutationObserver as ue, useResizeObserver as J, useToggle as Y, watchDebounced as de } from "@vueuse/core";
|
|
5
5
|
import { useSortable as X } from "@vueuse/integrations/useSortable.mjs";
|
|
6
6
|
import { vOnClickOutside as fe } from "@vueuse/components";
|
|
@@ -121,7 +121,7 @@ var Ie = {
|
|
|
121
121
|
return (e, t) => (D(), o("div", {
|
|
122
122
|
class: y(i.value),
|
|
123
123
|
"data-testid": "pv-counter-badge"
|
|
124
|
-
},
|
|
124
|
+
}, F(n.value), 3));
|
|
125
125
|
}
|
|
126
126
|
}), Q = (e, t) => {
|
|
127
127
|
let n = e.__vccOpts || e;
|
|
@@ -181,7 +181,7 @@ var Ie = {
|
|
|
181
181
|
name: e.leftIcon,
|
|
182
182
|
"data-testid": "pv-button-left-icon"
|
|
183
183
|
}, null, 8, ["name"])) : a("", !0),
|
|
184
|
-
e.label ? (D(), o("span", He,
|
|
184
|
+
e.label ? (D(), o("span", He, F(e.label), 1)) : a("", !0),
|
|
185
185
|
e.rightCounterBadge ? (D(), i(Be, {
|
|
186
186
|
key: 3,
|
|
187
187
|
value: e.rightCounterBadge,
|
|
@@ -1075,7 +1075,7 @@ function Wn(e, t) {
|
|
|
1075
1075
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1076
1076
|
}
|
|
1077
1077
|
function Gn(e, t = {}) {
|
|
1078
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Fe(), l = i ??
|
|
1078
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Fe(), l = i ?? B(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = k(d());
|
|
1079
1079
|
C(() => {
|
|
1080
1080
|
f.value = d();
|
|
1081
1081
|
});
|
|
@@ -1086,7 +1086,7 @@ function Gn(e, t = {}) {
|
|
|
1086
1086
|
p.value = !1;
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
|
-
let t =
|
|
1089
|
+
let t = I(n);
|
|
1090
1090
|
if (!t) {
|
|
1091
1091
|
p.value = !1;
|
|
1092
1092
|
return;
|
|
@@ -1100,7 +1100,7 @@ function Gn(e, t = {}) {
|
|
|
1100
1100
|
}, v = () => {
|
|
1101
1101
|
if (!c.value) return;
|
|
1102
1102
|
g();
|
|
1103
|
-
let t =
|
|
1103
|
+
let t = I(n);
|
|
1104
1104
|
if (!t) {
|
|
1105
1105
|
p.value = !1;
|
|
1106
1106
|
return;
|
|
@@ -1113,7 +1113,7 @@ function Gn(e, t = {}) {
|
|
|
1113
1113
|
characterData: !0
|
|
1114
1114
|
}));
|
|
1115
1115
|
};
|
|
1116
|
-
return w(v), S(g), U(() =>
|
|
1116
|
+
return w(v), S(g), U(() => I(n), () => {
|
|
1117
1117
|
c.value && v();
|
|
1118
1118
|
}), {
|
|
1119
1119
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1181,7 +1181,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1181
1181
|
}),
|
|
1182
1182
|
emits: ["update:modelValue"],
|
|
1183
1183
|
setup(e) {
|
|
1184
|
-
let t = e, c =
|
|
1184
|
+
let t = e, c = z(e, "modelValue"), l = f(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: p } = Gn("content", { host: u }), m = r(() => u ? p.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1185
1185
|
"anchor-name: --pv-anchor",
|
|
1186
1186
|
"position-area: bottom",
|
|
1187
1187
|
"position-try-fallbacks: flip-block",
|
|
@@ -1190,7 +1190,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1190
1190
|
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = le(y), E = le(S), O = k(!1), A = k(!1), M = k(!1), N = Jn({
|
|
1191
1191
|
root: _,
|
|
1192
1192
|
close: () => t.disableClickOutsideToClose ? !1 : (q(), !0)
|
|
1193
|
-
}),
|
|
1193
|
+
}), P = {
|
|
1194
1194
|
"top-center": "top",
|
|
1195
1195
|
"bottom-center": "bottom",
|
|
1196
1196
|
"center-left": "left",
|
|
@@ -1201,7 +1201,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1201
1201
|
"top-right": "top-end",
|
|
1202
1202
|
"bottom-left": "bottom-start",
|
|
1203
1203
|
"bottom-right": "bottom-end"
|
|
1204
|
-
},
|
|
1204
|
+
}, F = {
|
|
1205
1205
|
"top-center": {
|
|
1206
1206
|
area: "top",
|
|
1207
1207
|
margin: "margin-block-end"
|
|
@@ -1242,30 +1242,30 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1242
1242
|
area: "bottom span-left",
|
|
1243
1243
|
margin: "margin-block-start"
|
|
1244
1244
|
}
|
|
1245
|
-
},
|
|
1245
|
+
}, L = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), R = r(() => ({
|
|
1246
1246
|
width: "fit-content",
|
|
1247
1247
|
...h ? { "anchor-scope": Xn } : void 0,
|
|
1248
1248
|
...t.cssCustomProperties
|
|
1249
|
-
})),
|
|
1250
|
-
let e =
|
|
1249
|
+
})), B = r(() => h ? { "anchor-name": Xn } : void 0), V = r(() => {
|
|
1250
|
+
let e = F[t.position];
|
|
1251
1251
|
return {
|
|
1252
1252
|
"position-anchor": Xn,
|
|
1253
1253
|
"position-area": e.area,
|
|
1254
1254
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1255
1255
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1256
1256
|
};
|
|
1257
|
-
}),
|
|
1257
|
+
}), ee = () => {}, te = () => ({});
|
|
1258
1258
|
if (!h) {
|
|
1259
1259
|
let e = [];
|
|
1260
1260
|
t.disableAutoPlacement || e.push(kn({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Dn(t.offset));
|
|
1261
1261
|
let n = Vn(b, S, {
|
|
1262
|
-
placement:
|
|
1262
|
+
placement: P[t.position],
|
|
1263
1263
|
strategy: t.positioningStrategy,
|
|
1264
1264
|
middleware: e
|
|
1265
1265
|
});
|
|
1266
|
-
|
|
1266
|
+
ee = n.update, te = () => n.floatingStyles.value;
|
|
1267
1267
|
let i = ce(b), a = se(() => {
|
|
1268
|
-
c.value &&
|
|
1268
|
+
c.value && ee();
|
|
1269
1269
|
}, 5);
|
|
1270
1270
|
U([
|
|
1271
1271
|
i.top,
|
|
@@ -1280,16 +1280,16 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1280
1280
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1281
1281
|
]) });
|
|
1282
1282
|
}
|
|
1283
|
-
let
|
|
1284
|
-
...
|
|
1283
|
+
let ne = r(() => ({
|
|
1284
|
+
...te(),
|
|
1285
1285
|
zIndex: t.zIndex
|
|
1286
|
-
})),
|
|
1287
|
-
|
|
1286
|
+
})), re, ie, W = () => {
|
|
1287
|
+
re && clearTimeout(re), re = void 0;
|
|
1288
1288
|
}, ae = () => {
|
|
1289
1289
|
ie && clearTimeout(ie), ie = void 0;
|
|
1290
1290
|
}, K = (e) => {
|
|
1291
|
-
W(), ae(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ?
|
|
1292
|
-
c.value = !0,
|
|
1291
|
+
W(), ae(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? re = setTimeout(() => {
|
|
1292
|
+
c.value = !0, re = void 0;
|
|
1293
1293
|
}, t.delay) : c.value = e);
|
|
1294
1294
|
}, q = () => {
|
|
1295
1295
|
W(), ae(), c.value = !1;
|
|
@@ -1313,23 +1313,23 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1313
1313
|
}, fe = () => {
|
|
1314
1314
|
if (t.showOnHover) {
|
|
1315
1315
|
if (t.disableClickOutsideToClose) return;
|
|
1316
|
-
if (!c.value && !
|
|
1316
|
+
if (!c.value && !re && t.enableClickToggle) {
|
|
1317
1317
|
M.value = !1, K(!0);
|
|
1318
1318
|
return;
|
|
1319
1319
|
}
|
|
1320
1320
|
M.value = !0, q();
|
|
1321
1321
|
return;
|
|
1322
1322
|
}
|
|
1323
|
-
K(
|
|
1323
|
+
K(re ? !1 : !c.value);
|
|
1324
1324
|
}, pe = (e) => {
|
|
1325
1325
|
let t = e.newState === "open";
|
|
1326
1326
|
c.value !== t && (c.value = t);
|
|
1327
1327
|
}, me = (e) => {
|
|
1328
|
-
h &&
|
|
1328
|
+
h && L.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), K(!1));
|
|
1329
1329
|
};
|
|
1330
1330
|
return U(c, async (e) => {
|
|
1331
1331
|
if (t.showOnHover && t.enableGroupSync && N(!!e), !h) {
|
|
1332
|
-
e &&
|
|
1332
|
+
e && ee();
|
|
1333
1333
|
return;
|
|
1334
1334
|
}
|
|
1335
1335
|
await v(), ue();
|
|
@@ -1346,7 +1346,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1346
1346
|
}), U(m, (e) => {
|
|
1347
1347
|
e ? h && c.value && v(ue) : q();
|
|
1348
1348
|
}), w(() => {
|
|
1349
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ? ue() :
|
|
1349
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? ue() : ee());
|
|
1350
1350
|
}), T(() => {
|
|
1351
1351
|
W(), ae();
|
|
1352
1352
|
}), U(() => t.disabled, (e) => {
|
|
@@ -1358,22 +1358,22 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1358
1358
|
}), (r, l) => (D(), o("div", {
|
|
1359
1359
|
ref_key: "root",
|
|
1360
1360
|
ref: _,
|
|
1361
|
-
style: x(
|
|
1361
|
+
style: x(R.value),
|
|
1362
1362
|
onKeydown: me
|
|
1363
1363
|
}, [s("div", {
|
|
1364
1364
|
ref_key: "triggerWrapper",
|
|
1365
1365
|
ref: y,
|
|
1366
|
-
style: x(
|
|
1366
|
+
style: x(B.value),
|
|
1367
1367
|
onClick: fe,
|
|
1368
1368
|
onFocusin: Y,
|
|
1369
1369
|
onFocusout: l[0] ||= (e) => O.value = !1
|
|
1370
|
-
}, [j(r.$slots, "trigger")], 36), g.value &&
|
|
1370
|
+
}, [j(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (D(), o("div", {
|
|
1371
1371
|
key: 0,
|
|
1372
1372
|
ref_key: "floating",
|
|
1373
1373
|
ref: S,
|
|
1374
1374
|
class: "pv-floating pv-floating-native",
|
|
1375
|
-
popover:
|
|
1376
|
-
style: x(
|
|
1375
|
+
popover: L.value,
|
|
1376
|
+
style: x(V.value),
|
|
1377
1377
|
onToggle: pe,
|
|
1378
1378
|
onFocusin: de,
|
|
1379
1379
|
onFocusout: X
|
|
@@ -1385,7 +1385,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1385
1385
|
ref_key: "floating",
|
|
1386
1386
|
ref: S,
|
|
1387
1387
|
class: "pv-floating",
|
|
1388
|
-
style: x(
|
|
1388
|
+
style: x(ne.value),
|
|
1389
1389
|
onFocusin: de,
|
|
1390
1390
|
onFocusout: X
|
|
1391
1391
|
}, [j(r.$slots, "content")], 36), [[H, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
|
|
@@ -1424,7 +1424,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1424
1424
|
setup(e) {
|
|
1425
1425
|
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 } = Gn("content", { host: a }), d = r(() => a ? u.value : o.value), m = r(() => !!t.description || d.value);
|
|
1426
1426
|
return (t, n) => (D(), i(Zn, b(p(t.$props)), c({
|
|
1427
|
-
trigger: W(() => [j(t.$slots, "trigger", {}, () => [s("p", null,
|
|
1427
|
+
trigger: W(() => [j(t.$slots, "trigger", {}, () => [s("p", null, F(e.label), 1)])]),
|
|
1428
1428
|
_: 2
|
|
1429
1429
|
}, [m.value ? {
|
|
1430
1430
|
name: "content",
|
|
@@ -1432,7 +1432,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1432
1432
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1433
1433
|
role: "tooltip",
|
|
1434
1434
|
"data-variant": e.variant
|
|
1435
|
-
}, [j(t.$slots, "content", {}, () => [l(
|
|
1435
|
+
}, [j(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10, Qn)]),
|
|
1436
1436
|
key: "0"
|
|
1437
1437
|
} : void 0]), 1040));
|
|
1438
1438
|
}
|
|
@@ -1481,7 +1481,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1481
1481
|
_: 2
|
|
1482
1482
|
}, [e.tooltipText ? {
|
|
1483
1483
|
name: "content",
|
|
1484
|
-
fn: W(() => [l(
|
|
1484
|
+
fn: W(() => [l(F(e.tooltipText), 1)]),
|
|
1485
1485
|
key: "0"
|
|
1486
1486
|
} : void 0]), 1032, ["position"]));
|
|
1487
1487
|
}
|
|
@@ -1513,7 +1513,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1513
1513
|
key: 0,
|
|
1514
1514
|
class: "pv-text-brand",
|
|
1515
1515
|
name: "ai-filled"
|
|
1516
|
-
})), e.label ? (D(), o("span", rr,
|
|
1516
|
+
})), e.label ? (D(), o("span", rr, F(e.label), 1)) : a("", !0)], 64))], 10, nr));
|
|
1517
1517
|
}
|
|
1518
1518
|
}), ar = [
|
|
1519
1519
|
"data-position",
|
|
@@ -1534,7 +1534,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1534
1534
|
delay: { default: 0 }
|
|
1535
1535
|
},
|
|
1536
1536
|
setup(e) {
|
|
1537
|
-
let t = e, n =
|
|
1537
|
+
let t = e, n = V("rootRef"), { present: i } = Gn("tooltip-content", { host: r(() => {
|
|
1538
1538
|
let e = n.value?.getRootNode();
|
|
1539
1539
|
return e instanceof ShadowRoot ? e.host : null;
|
|
1540
1540
|
}) }), s = r(() => t.delay > 0), c = k(!1), l = k(!1), u, d = () => {
|
|
@@ -1555,18 +1555,18 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1555
1555
|
ref: n,
|
|
1556
1556
|
"data-testid": "pv-tooltip",
|
|
1557
1557
|
class: y([{
|
|
1558
|
-
"pv-tooltip":
|
|
1559
|
-
"pv-tooltip-small":
|
|
1558
|
+
"pv-tooltip": I(i),
|
|
1559
|
+
"pv-tooltip-small": I(i) && e.size === "sm"
|
|
1560
1560
|
}]),
|
|
1561
1561
|
"data-position": e.tooltipPosition,
|
|
1562
1562
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
1563
1563
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
1564
|
-
"aria-labelledby":
|
|
1564
|
+
"aria-labelledby": I(i) ? e.ariaLabelledBy : void 0,
|
|
1565
1565
|
onMouseenter: p,
|
|
1566
1566
|
onMouseleave: m,
|
|
1567
1567
|
onFocusin: h,
|
|
1568
1568
|
onFocusout: g
|
|
1569
|
-
}, [j(t.$slots, "label"),
|
|
1569
|
+
}, [j(t.$slots, "label"), I(i) ? G((D(), o("div", {
|
|
1570
1570
|
key: 0,
|
|
1571
1571
|
role: "tooltip",
|
|
1572
1572
|
id: e.ariaLabelledBy,
|
|
@@ -1612,7 +1612,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1612
1612
|
delay: e.delay,
|
|
1613
1613
|
size: n.value
|
|
1614
1614
|
}, {
|
|
1615
|
-
"tooltip-content": W(() => [s("p", cr,
|
|
1615
|
+
"tooltip-content": W(() => [s("p", cr, F(e.tooltipText), 1)]),
|
|
1616
1616
|
label: W(() => [u($, b(p(a.value)), null, 16)]),
|
|
1617
1617
|
_: 1
|
|
1618
1618
|
}, 8, [
|
|
@@ -1711,7 +1711,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1711
1711
|
"pv-tag-yellow": t.variant == "release-alpha",
|
|
1712
1712
|
"pv-tag-purple": t.variant == "release-beta"
|
|
1713
1713
|
});
|
|
1714
|
-
return (e, t) => (D(), o("div", { class: y(i.value) },
|
|
1714
|
+
return (e, t) => (D(), o("div", { class: y(i.value) }, F(n.value), 3));
|
|
1715
1715
|
}
|
|
1716
1716
|
}), mr = ["data-style"], hr = /* @__PURE__ */ d({
|
|
1717
1717
|
__name: "PvTag",
|
|
@@ -1766,7 +1766,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1766
1766
|
name: e.icon,
|
|
1767
1767
|
size: 12
|
|
1768
1768
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
1769
|
-
s("span", { class: y(["pv-truncate", { "pv-underline-dotted": e.spine }]) },
|
|
1769
|
+
s("span", { class: y(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, F(e.label), 3),
|
|
1770
1770
|
e.showClear ? (D(), i(Z, {
|
|
1771
1771
|
key: 1,
|
|
1772
1772
|
"data-testid": "pv-tag-close-icon",
|
|
@@ -1784,7 +1784,8 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1784
1784
|
variant: { default: "default" },
|
|
1785
1785
|
icon: {},
|
|
1786
1786
|
dotVariant: {},
|
|
1787
|
-
label: {}
|
|
1787
|
+
label: {},
|
|
1788
|
+
transparent: { type: Boolean }
|
|
1788
1789
|
},
|
|
1789
1790
|
setup(e) {
|
|
1790
1791
|
let t = e, n = r(() => {
|
|
@@ -1801,8 +1802,16 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1801
1802
|
case "warning": return "pv-tag-orange";
|
|
1802
1803
|
case "critical": return "pv-tag-red";
|
|
1803
1804
|
case "highlight": return "pv-tag-turquoise";
|
|
1805
|
+
case "purple": return "pv-tag-purple";
|
|
1806
|
+
case "blue": return "pv-tag-blue";
|
|
1804
1807
|
default: return "pv-tag-tertiary";
|
|
1805
1808
|
}
|
|
1809
|
+
}), l = r(() => {
|
|
1810
|
+
let e = {
|
|
1811
|
+
width: "fit-content",
|
|
1812
|
+
"--flex-gap": "4px"
|
|
1813
|
+
};
|
|
1814
|
+
return t.transparent && (e["--tag-background-color"] = "transparent"), e;
|
|
1806
1815
|
});
|
|
1807
1816
|
return (t, r) => (D(), o("div", {
|
|
1808
1817
|
class: y([
|
|
@@ -1812,10 +1821,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1812
1821
|
]),
|
|
1813
1822
|
onClick: r[0] ||= (n) => t.$emit("handle-click", e.label),
|
|
1814
1823
|
"data-style": "rounded",
|
|
1815
|
-
style:
|
|
1816
|
-
width: "fit-content",
|
|
1817
|
-
"--flex-gap": "4px"
|
|
1818
|
-
}
|
|
1824
|
+
style: x(l.value)
|
|
1819
1825
|
}, [
|
|
1820
1826
|
e.dotVariant ? (D(), o("span", {
|
|
1821
1827
|
key: 0,
|
|
@@ -1827,10 +1833,10 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1827
1833
|
name: e.icon,
|
|
1828
1834
|
size: 12
|
|
1829
1835
|
}, null, 8, ["name"])) : a("", !0),
|
|
1830
|
-
s("span", null,
|
|
1831
|
-
],
|
|
1836
|
+
s("span", null, F(e.label), 1)
|
|
1837
|
+
], 6));
|
|
1832
1838
|
}
|
|
1833
|
-
}), [["__scopeId", "data-v-
|
|
1839
|
+
}), [["__scopeId", "data-v-f2cf1712"]]), _r = ["data-align"], vr = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
1834
1840
|
__name: "PvPopover",
|
|
1835
1841
|
props: {
|
|
1836
1842
|
alignment: { default: void 0 },
|
|
@@ -1847,7 +1853,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1847
1853
|
},
|
|
1848
1854
|
emits: ["list-order-updated"],
|
|
1849
1855
|
setup(e, { expose: t, emit: n }) {
|
|
1850
|
-
let r = k(null), i =
|
|
1856
|
+
let r = k(null), i = V("popoverList"), a = e, s = n;
|
|
1851
1857
|
return a.isSortable && a.isList && X(i, [], {
|
|
1852
1858
|
animation: 150,
|
|
1853
1859
|
onUpdate: () => {
|
|
@@ -1913,7 +1919,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1913
1919
|
"list-order-updated"
|
|
1914
1920
|
],
|
|
1915
1921
|
setup(e, { expose: t, emit: c }) {
|
|
1916
|
-
let d = e, f = c, p = k(d.defaultOpen), m =
|
|
1922
|
+
let d = e, f = c, p = k(d.defaultOpen), m = R(), h = k(null), g = k(null), _ = k(null), b = k(null), S = () => {
|
|
1917
1923
|
h.value && (_.value = h.value.getBoundingClientRect()), g.value?.popoverRoot && (b.value = g.value.popoverRoot.getBoundingClientRect());
|
|
1918
1924
|
}, C = r(() => ({ "pv-hide": !p.value })), w = () => {
|
|
1919
1925
|
p.value = !p.value;
|
|
@@ -1953,7 +1959,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1953
1959
|
"aria-label": e.ariaLabel,
|
|
1954
1960
|
"aria-haspopup": !0,
|
|
1955
1961
|
"aria-expanded": p.value,
|
|
1956
|
-
"aria-controls":
|
|
1962
|
+
"aria-controls": I(m),
|
|
1957
1963
|
onClick: w,
|
|
1958
1964
|
disabled: e.disabled
|
|
1959
1965
|
}, [j(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 14, yr), (D(), i(n, {
|
|
@@ -1962,7 +1968,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1962
1968
|
}, [u(vr, {
|
|
1963
1969
|
ref_key: "popoverRef",
|
|
1964
1970
|
ref: g,
|
|
1965
|
-
id:
|
|
1971
|
+
id: I(m),
|
|
1966
1972
|
class: y(C.value),
|
|
1967
1973
|
"css-custom-properties": M.value,
|
|
1968
1974
|
alignment: e.alignment,
|
|
@@ -1979,7 +1985,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1979
1985
|
"alignment",
|
|
1980
1986
|
"isList",
|
|
1981
1987
|
"isSortable"
|
|
1982
|
-
])], 8, ["to", "disabled"]))], 32)), [[
|
|
1988
|
+
])], 8, ["to", "disabled"]))], 32)), [[I(fe), T]]);
|
|
1983
1989
|
}
|
|
1984
1990
|
}), [["__scopeId", "data-v-6e4b23d8"]]), Sr = { class: "pv-popover-menu" }, Cr = /* @__PURE__ */ d({
|
|
1985
1991
|
__name: "PvPopoverMenu",
|
|
@@ -2008,7 +2014,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2008
2014
|
}),
|
|
2009
2015
|
emits: ["update:modelValue"],
|
|
2010
2016
|
setup(e) {
|
|
2011
|
-
let n =
|
|
2017
|
+
let n = z(e, "modelValue"), r = (e) => {
|
|
2012
2018
|
e.disabled || (n.value = e.value);
|
|
2013
2019
|
};
|
|
2014
2020
|
return (a, s) => (D(), o("div", { class: y(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(D(!0), o(t, null, A(e.options, (e) => (D(), i($n, {
|
|
@@ -2040,7 +2046,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2040
2046
|
_: 2
|
|
2041
2047
|
}, [e.disabledReason ? {
|
|
2042
2048
|
name: "content",
|
|
2043
|
-
fn: W(() => [l(
|
|
2049
|
+
fn: W(() => [l(F(e.disabledReason), 1)]),
|
|
2044
2050
|
key: "0"
|
|
2045
2051
|
} : void 0]), 1024))), 128))], 2));
|
|
2046
2052
|
}
|
|
@@ -2066,7 +2072,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2066
2072
|
style: { cursor: "pointer" },
|
|
2067
2073
|
onClick: (e) => i(t.value),
|
|
2068
2074
|
"data-active": e.modelValue === t.value ? !0 : null
|
|
2069
|
-
}, [s("button", Dr,
|
|
2075
|
+
}, [s("button", Dr, F(t.label), 1)], 8, Er))), 128))])]));
|
|
2070
2076
|
}
|
|
2071
2077
|
}), [["__scopeId", "data-v-498bf523"]]), kr = {
|
|
2072
2078
|
class: "pv-flex",
|
|
@@ -2133,7 +2139,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2133
2139
|
}),
|
|
2134
2140
|
emits: ["update:modelValue"],
|
|
2135
2141
|
setup(e) {
|
|
2136
|
-
let t = e, n =
|
|
2142
|
+
let t = e, n = V("dialog"), r = z(e, "modelValue");
|
|
2137
2143
|
U(() => r.value, () => {
|
|
2138
2144
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
2139
2145
|
});
|
|
@@ -2151,7 +2157,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2151
2157
|
},
|
|
2152
2158
|
onClose: i,
|
|
2153
2159
|
onClick: c
|
|
2154
|
-
}, [s("div", Mr, [e.hideHeader ? a("", !0) : (D(), o("div", Nr, [s("span", Pr,
|
|
2160
|
+
}, [s("div", Mr, [e.hideHeader ? a("", !0) : (D(), o("div", Nr, [s("span", Pr, F(e.header), 1), e.subheader ? (D(), o("span", Fr, F(e.subheader), 1)) : a("", !0)])), j(t.$slots, "body")]), e.hideFooter ? a("", !0) : (D(), o("div", Ir, [j(t.$slots, "footer")]))], 544));
|
|
2155
2161
|
}
|
|
2156
2162
|
}), Rr = /* @__PURE__ */ function(e) {
|
|
2157
2163
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
@@ -2170,12 +2176,12 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2170
2176
|
return (t, n) => (D(), o("div", {
|
|
2171
2177
|
"data-testid": "pv-banner",
|
|
2172
2178
|
class: y([{
|
|
2173
|
-
"pv-banner-primary": e.variant ===
|
|
2174
|
-
"pv-banner-secondary": e.variant ===
|
|
2175
|
-
"pv-banner-tertiary": e.variant ===
|
|
2176
|
-
"pv-flex pv-space-between": e.orientation ===
|
|
2179
|
+
"pv-banner-primary": e.variant === I(zr).Primary,
|
|
2180
|
+
"pv-banner-secondary": e.variant === I(zr).Secondary,
|
|
2181
|
+
"pv-banner-tertiary": e.variant === I(zr).Tertiary,
|
|
2182
|
+
"pv-flex pv-space-between": e.orientation === I(Rr).Horizontal
|
|
2177
2183
|
}])
|
|
2178
|
-
}, [s("div", { class: y(["pv-flex", { "pv-stack-16": e.orientation ===
|
|
2184
|
+
}, [s("div", { class: y(["pv-flex", { "pv-stack-16": e.orientation === I(Rr).Vertical && t.$slots.action }]) }, [
|
|
2179
2185
|
j(t.$slots, "left"),
|
|
2180
2186
|
e.icon ? (D(), i(Z, {
|
|
2181
2187
|
key: 0,
|
|
@@ -2242,8 +2248,8 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2242
2248
|
class: "pv-flex-vertical",
|
|
2243
2249
|
style: x(c.value)
|
|
2244
2250
|
}, [
|
|
2245
|
-
e.header ? (D(), o("h3", Gr,
|
|
2246
|
-
e.description ? (D(), o("p", Kr,
|
|
2251
|
+
e.header ? (D(), o("h3", Gr, F(e.header), 1)) : a("", !0),
|
|
2252
|
+
e.description ? (D(), o("p", Kr, F(e.description), 1)) : a("", !0),
|
|
2247
2253
|
s("div", { class: y(n.value ? "pv-flex" : "pv-flex-vertical") }, [j(t.$slots, "actions")], 2)
|
|
2248
2254
|
], 4)], 6));
|
|
2249
2255
|
}
|
|
@@ -2282,7 +2288,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2282
2288
|
"size",
|
|
2283
2289
|
"name"
|
|
2284
2290
|
]),
|
|
2285
|
-
s("span", { class: y({ "pv-underline-dotted": e.spine }) },
|
|
2291
|
+
s("span", { class: y({ "pv-underline-dotted": e.spine }) }, F(e.companyName), 3),
|
|
2286
2292
|
e.showClear ? (D(), i(Z, {
|
|
2287
2293
|
key: 0,
|
|
2288
2294
|
"data-testid": "pv-company-tag-close-icon",
|
|
@@ -2332,7 +2338,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2332
2338
|
name: e.icon,
|
|
2333
2339
|
size: 12,
|
|
2334
2340
|
class: y(e.iconClasses)
|
|
2335
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span", Xr,
|
|
2341
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", Xr, F(e.label), 1)], 10, Yr));
|
|
2336
2342
|
}
|
|
2337
2343
|
}), Qr = ["open"], $r = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
2338
2344
|
__name: "PvAccordion",
|
|
@@ -2360,7 +2366,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2360
2366
|
}),
|
|
2361
2367
|
emits: /* @__PURE__ */ g(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
|
|
2362
2368
|
setup(e) {
|
|
2363
|
-
let n = e, c =
|
|
2369
|
+
let n = e, c = z(e, "modelValue");
|
|
2364
2370
|
n.defaultOpen !== void 0 && (c.value = n.defaultOpen);
|
|
2365
2371
|
let l = (e) => {
|
|
2366
2372
|
c.value = e.target.open;
|
|
@@ -2383,7 +2389,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2383
2389
|
key: 0,
|
|
2384
2390
|
name: d.value
|
|
2385
2391
|
}, null, 8, ["name"])) : a("", !0),
|
|
2386
|
-
e.enableTriggerSlot ? j(n.$slots, "trigger", { key: 1 }, void 0, !0) : (D(), o(t, { key: 2 }, [s("span", null,
|
|
2392
|
+
e.enableTriggerSlot ? j(n.$slots, "trigger", { key: 1 }, void 0, !0) : (D(), o(t, { key: 2 }, [s("span", null, F(e.header), 1), e.counter ? (D(), i(Be, {
|
|
2387
2393
|
key: 0,
|
|
2388
2394
|
value: e.counter,
|
|
2389
2395
|
variant: "secondary",
|
|
@@ -2418,7 +2424,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2418
2424
|
}),
|
|
2419
2425
|
emits: ["update:modelValue"],
|
|
2420
2426
|
setup(e, { expose: t }) {
|
|
2421
|
-
let n = e, i =
|
|
2427
|
+
let n = e, i = V("search-input"), c = z(e, "modelValue"), l = r(() => ({
|
|
2422
2428
|
"pv-input-search": !0,
|
|
2423
2429
|
"pv-full-width": !0,
|
|
2424
2430
|
"pv-input-padded-end": !0,
|
|
@@ -2437,7 +2443,7 @@ var Kn = /* @__PURE__ */ new Set(), qn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
2437
2443
|
disabled: e.disabled,
|
|
2438
2444
|
class: y(l.value),
|
|
2439
2445
|
placeholder: e.placeholder
|
|
2440
|
-
}, null, 10, ti), [[
|
|
2446
|
+
}, null, 10, ti), [[re, c.value]]), e.displayShortcut ? (D(), o("kbd", ni, F(ri))) : a("", !0)]));
|
|
2441
2447
|
}
|
|
2442
2448
|
}), [["__scopeId", "data-v-9e0c84d9"]]), ai = /^\d{4}-\d{2}-\d{2}$/;
|
|
2443
2449
|
function oi(e) {
|
|
@@ -2504,13 +2510,13 @@ var di = /* @__PURE__ */ d({
|
|
|
2504
2510
|
}),
|
|
2505
2511
|
emits: ["update:modelValue"],
|
|
2506
2512
|
setup(e) {
|
|
2507
|
-
let t =
|
|
2513
|
+
let t = z(e, "modelValue"), n = e, a = r({
|
|
2508
2514
|
get: () => ui(t.value, "modelValue"),
|
|
2509
2515
|
set: (e) => {
|
|
2510
2516
|
t.value = e;
|
|
2511
2517
|
}
|
|
2512
2518
|
}), o = r(() => ci(n.minDate, "minDate")), s = r(() => ci(n.maxDate, "maxDate")), c = r(() => n.disabledDates ? li(n.disabledDates, "disabledDates").filter(Boolean) : void 0);
|
|
2513
|
-
return (t, r) => (D(), i(
|
|
2519
|
+
return (t, r) => (D(), i(I(pe), _(n, {
|
|
2514
2520
|
modelValue: a.value,
|
|
2515
2521
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
2516
2522
|
showIcon: e.showIcon,
|
|
@@ -2565,7 +2571,7 @@ var fi = () => ({
|
|
|
2565
2571
|
"pv-text-body-xxs": e.size === "xs",
|
|
2566
2572
|
"pv-text-body-md": e.size === "sm"
|
|
2567
2573
|
}])
|
|
2568
|
-
},
|
|
2574
|
+
}, F(a.value), 3));
|
|
2569
2575
|
}
|
|
2570
2576
|
}), [["__scopeId", "data-v-8b02ee95"]]), mi = {
|
|
2571
2577
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
@@ -2612,7 +2618,7 @@ var fi = () => ({
|
|
|
2612
2618
|
}),
|
|
2613
2619
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
2614
2620
|
setup(e, { emit: n }) {
|
|
2615
|
-
let r = e, i = n, c =
|
|
2621
|
+
let r = e, i = n, c = V("sidePanel"), l = z(e, "searchInput"), d = z(e, "modelValue"), f = () => {
|
|
2616
2622
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
2617
2623
|
}, p = () => {
|
|
2618
2624
|
c.value && oe(c.value, () => {
|
|
@@ -2636,14 +2642,14 @@ var fi = () => ({
|
|
|
2636
2642
|
height: "100%"
|
|
2637
2643
|
}
|
|
2638
2644
|
}, [
|
|
2639
|
-
s("div", mi, [n.$slots.header ? j(n.$slots, "header", { key: 0 }) : (D(), o(t, { key: 1 }, [s("div", hi, [s("div", gi, [s("span", _i,
|
|
2645
|
+
s("div", mi, [n.$slots.header ? j(n.$slots, "header", { key: 0 }) : (D(), o(t, { key: 1 }, [s("div", hi, [s("div", gi, [s("span", _i, F(e.header), 1), u($, {
|
|
2640
2646
|
"left-icon": "close",
|
|
2641
2647
|
ariaLabel: "Close",
|
|
2642
2648
|
size: "md",
|
|
2643
2649
|
onClick: f,
|
|
2644
2650
|
"data-testid": "pv-side-panel-close-button",
|
|
2645
2651
|
variant: "ghost"
|
|
2646
|
-
})]), e.subheader ? (D(), o("span", vi,
|
|
2652
|
+
})]), e.subheader ? (D(), o("span", vi, F(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (D(), o("div", yi, [u(ii, _({
|
|
2647
2653
|
"data-testid": "pv-side-panel-input-search",
|
|
2648
2654
|
modelValue: l.value,
|
|
2649
2655
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
@@ -2859,7 +2865,7 @@ var fi = () => ({
|
|
|
2859
2865
|
return (n, r) => (D(), o("div", Di, [u(jr, {
|
|
2860
2866
|
name: e.logo ? e.logo : e.label,
|
|
2861
2867
|
size: e.size
|
|
2862
|
-
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) },
|
|
2868
|
+
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, F(e.label), 3)]));
|
|
2863
2869
|
}
|
|
2864
2870
|
}), ki = {
|
|
2865
2871
|
class: "pv-flow",
|
|
@@ -2921,7 +2927,7 @@ var fi = () => ({
|
|
|
2921
2927
|
"--flex-gap": "0.5rem",
|
|
2922
2928
|
"--flex-align": "flex-start"
|
|
2923
2929
|
}
|
|
2924
|
-
}, [s("span", Ai,
|
|
2930
|
+
}, [s("span", Ai, F(e.label), 1), s("div", ji, [(D(!0), o(t, null, A(e.visibleValues, (t, n) => (D(), o("span", {
|
|
2925
2931
|
key: n,
|
|
2926
2932
|
class: y(["pv-text-body-md", { "pv-underline-dotted": e.clickable }]),
|
|
2927
2933
|
style: x({
|
|
@@ -2932,7 +2938,7 @@ var fi = () => ({
|
|
|
2932
2938
|
tabindex: e.clickable ? 0 : void 0,
|
|
2933
2939
|
onClick: (t) => e.clickable && p(t, e),
|
|
2934
2940
|
onKeydown: (t) => e.clickable && m(t, e)
|
|
2935
|
-
},
|
|
2941
|
+
}, F(t), 47, Mi))), 128)), e.hiddenValues.length ? (D(), i($n, {
|
|
2936
2942
|
key: 0,
|
|
2937
2943
|
description: e.hiddenValues.join(", ")
|
|
2938
2944
|
}, {
|
|
@@ -2968,7 +2974,7 @@ var fi = () => ({
|
|
|
2968
2974
|
}),
|
|
2969
2975
|
emits: ["update:modelValue"],
|
|
2970
2976
|
setup(e) {
|
|
2971
|
-
let t =
|
|
2977
|
+
let t = z(e, "modelValue");
|
|
2972
2978
|
return (n, r) => (D(), o("div", Fi, [
|
|
2973
2979
|
n.$slots.label ? (D(), o("label", {
|
|
2974
2980
|
key: 0,
|
|
@@ -2983,7 +2989,7 @@ var fi = () => ({
|
|
|
2983
2989
|
placeholder: e.placeholder,
|
|
2984
2990
|
id: e.id,
|
|
2985
2991
|
"data-invalid": e.error ? !0 : void 0
|
|
2986
|
-
}), null, 16, Li), [[
|
|
2992
|
+
}), null, 16, Li), [[re, t.value]]),
|
|
2987
2993
|
e.lowerLabel ? (D(), o("p", {
|
|
2988
2994
|
key: 1,
|
|
2989
2995
|
style: { "margin-left": "12px" },
|
|
@@ -2991,7 +2997,7 @@ var fi = () => ({
|
|
|
2991
2997
|
"pv-text-red": e.error,
|
|
2992
2998
|
"pv-text-subdued": !e.error
|
|
2993
2999
|
}])
|
|
2994
|
-
},
|
|
3000
|
+
}, F(e.lowerLabel), 3)) : a("", !0)
|
|
2995
3001
|
]));
|
|
2996
3002
|
}
|
|
2997
3003
|
}), zi = ["for"], Bi = [
|
|
@@ -3024,7 +3030,7 @@ var fi = () => ({
|
|
|
3024
3030
|
}),
|
|
3025
3031
|
emits: ["update:modelValue"],
|
|
3026
3032
|
setup(e) {
|
|
3027
|
-
let t = e, n =
|
|
3033
|
+
let t = e, n = z(e, "modelValue"), c = {
|
|
3028
3034
|
secondary: "tertiary",
|
|
3029
3035
|
tertiary: "tertiary",
|
|
3030
3036
|
ghost: "ghost"
|
|
@@ -3050,12 +3056,12 @@ var fi = () => ({
|
|
|
3050
3056
|
value: e.value,
|
|
3051
3057
|
name: e.name,
|
|
3052
3058
|
disabled: e.disabled
|
|
3053
|
-
}, null, 8, Bi), [[
|
|
3059
|
+
}, null, 8, Bi), [[te, n.value]]),
|
|
3054
3060
|
e.leftIcon ? (D(), i(Z, {
|
|
3055
3061
|
key: 0,
|
|
3056
3062
|
name: e.leftIcon
|
|
3057
3063
|
}, null, 8, ["name"])) : a("", !0),
|
|
3058
|
-
e.label ? (D(), o("span", Vi,
|
|
3064
|
+
e.label ? (D(), o("span", Vi, F(e.label), 1)) : a("", !0),
|
|
3059
3065
|
e.rightIcon ? (D(), i(Z, {
|
|
3060
3066
|
key: 2,
|
|
3061
3067
|
name: e.rightIcon
|
|
@@ -3114,7 +3120,7 @@ var fi = () => ({
|
|
|
3114
3120
|
}, b = (e, t) => {
|
|
3115
3121
|
t ? l.value.includes(e) || (l.value = [...l.value, e]) : l.value = l.value.filter((t) => t !== e);
|
|
3116
3122
|
};
|
|
3117
|
-
return (n, r) => p.value ? (D(), o("p", Ui,
|
|
3123
|
+
return (n, r) => p.value ? (D(), o("p", Ui, F(e.successMessage), 1)) : c.value ? (D(), o("div", Gi, [
|
|
3118
3124
|
r[2] ||= s("h4", { class: "pv-heading-4 pv-stack" }, "Select fields for feedback.", -1),
|
|
3119
3125
|
s("div", Ki, [(D(!0), o(t, null, A(h.value, (e) => (D(), i(Hi, {
|
|
3120
3126
|
key: e,
|
|
@@ -3134,7 +3140,7 @@ var fi = () => ({
|
|
|
3134
3140
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
3135
3141
|
placeholder: "(Optional) Add a comment"
|
|
3136
3142
|
}, null, 8, ["modelValue"])]),
|
|
3137
|
-
m.value ? (D(), o("p", Ji,
|
|
3143
|
+
m.value ? (D(), o("p", Ji, F(e.errorMessage), 1)) : a("", !0),
|
|
3138
3144
|
s("div", Yi, [u($, {
|
|
3139
3145
|
variant: "ghost",
|
|
3140
3146
|
label: "Cancel",
|
|
@@ -3179,7 +3185,7 @@ var fi = () => ({
|
|
|
3179
3185
|
setup(e, { emit: t }) {
|
|
3180
3186
|
let n = e, c = t, l = r(() => n.item.variant === Ci.Payer ? Oi : null), d = r(() => n.header ?? n.item.title);
|
|
3181
3187
|
return (t, n) => (D(), o("div", Zi, [
|
|
3182
|
-
s("div", Qi, [s("div", $i, [u(hr, { label:
|
|
3188
|
+
s("div", Qi, [s("div", $i, [u(hr, { label: I(wi)[e.item.variant] }, null, 8, ["label"]), e.disableClose ? a("", !0) : (D(), i($, {
|
|
3183
3189
|
key: 0,
|
|
3184
3190
|
"left-icon": "close",
|
|
3185
3191
|
"aria-label": "Close",
|
|
@@ -3188,7 +3194,7 @@ var fi = () => ({
|
|
|
3188
3194
|
}))]), l.value ? (D(), i(N(l.value), {
|
|
3189
3195
|
key: 0,
|
|
3190
3196
|
label: d.value
|
|
3191
|
-
}, null, 8, ["label"])) : (D(), o("h2", ea,
|
|
3197
|
+
}, null, 8, ["label"])) : (D(), o("h2", ea, F(d.value), 1))]),
|
|
3192
3198
|
s("div", ta, [u(Pi, {
|
|
3193
3199
|
item: e.item,
|
|
3194
3200
|
onLabelClick: n[1] ||= (e) => c("label-click", e)
|
|
@@ -3233,7 +3239,7 @@ var fi = () => ({
|
|
|
3233
3239
|
}),
|
|
3234
3240
|
emits: /* @__PURE__ */ g(["close", "label-click"], ["update:modelValue"]),
|
|
3235
3241
|
setup(e, { emit: t }) {
|
|
3236
|
-
let n = e, a = t, c =
|
|
3242
|
+
let n = e, a = t, c = z(e, "modelValue"), l = r(() => n.item.variant === Ci.Payer ? Oi : null), d = r(() => n.header ?? n.item.title), f = () => {
|
|
3237
3243
|
c.value = !1, a("close");
|
|
3238
3244
|
};
|
|
3239
3245
|
return (t, n) => (D(), i(Si, {
|
|
@@ -3243,7 +3249,7 @@ var fi = () => ({
|
|
|
3243
3249
|
onClickOutside: f,
|
|
3244
3250
|
style: { width: "320px" }
|
|
3245
3251
|
}, {
|
|
3246
|
-
header: W(() => [s("div", ia, [u(hr, { label:
|
|
3252
|
+
header: W(() => [s("div", ia, [u(hr, { label: I(wi)[e.item.variant] }, null, 8, ["label"]), u($, {
|
|
3247
3253
|
"left-icon": "close",
|
|
3248
3254
|
"aria-label": "Close",
|
|
3249
3255
|
variant: "ghost",
|
|
@@ -3251,7 +3257,7 @@ var fi = () => ({
|
|
|
3251
3257
|
})]), l.value ? (D(), i(N(l.value), {
|
|
3252
3258
|
key: 0,
|
|
3253
3259
|
label: d.value
|
|
3254
|
-
}, null, 8, ["label"])) : (D(), o("h2", aa,
|
|
3260
|
+
}, null, 8, ["label"])) : (D(), o("h2", aa, F(d.value), 1))]),
|
|
3255
3261
|
footer: W(() => [u(Xi, {
|
|
3256
3262
|
item: e.item,
|
|
3257
3263
|
"on-submit-feedback": e.onSubmitFeedback,
|
|
@@ -3281,7 +3287,7 @@ var fi = () => ({
|
|
|
3281
3287
|
}),
|
|
3282
3288
|
emits: ["update:modelValue"],
|
|
3283
3289
|
setup(e) {
|
|
3284
|
-
let n =
|
|
3290
|
+
let n = z(e, "modelValue"), r = (e) => {
|
|
3285
3291
|
n.value = e;
|
|
3286
3292
|
}, c = (e) => e.label === n.value ? !0 : null;
|
|
3287
3293
|
return (n, u) => (D(), o("ul", {
|
|
@@ -3302,7 +3308,7 @@ var fi = () => ({
|
|
|
3302
3308
|
key: 0,
|
|
3303
3309
|
name: e.icon
|
|
3304
3310
|
}, null, 8, ["name"])) : a("", !0),
|
|
3305
|
-
l(" " +
|
|
3311
|
+
l(" " + F(e.label) + " ", 1),
|
|
3306
3312
|
e.counter ? (D(), i(Be, {
|
|
3307
3313
|
key: 1,
|
|
3308
3314
|
value: e.counter,
|
|
@@ -3322,7 +3328,7 @@ var fi = () => ({
|
|
|
3322
3328
|
return (n, r) => (D(), o("ul", da, [(D(!0), o(t, null, A(e.options, (e, n) => (D(), o("li", { key: `${n}-${e.label}` }, [e.href ? (D(), o("a", {
|
|
3323
3329
|
key: 0,
|
|
3324
3330
|
href: e.href
|
|
3325
|
-
},
|
|
3331
|
+
}, F(e.label), 9, fa)) : (D(), o(t, { key: 1 }, [l(F(e.label), 1)], 64))]))), 128))]));
|
|
3326
3332
|
}
|
|
3327
3333
|
}), ma = {
|
|
3328
3334
|
"data-testid": "pv-select-menu-control-panel",
|
|
@@ -3403,7 +3409,7 @@ var fi = () => ({
|
|
|
3403
3409
|
key: 0,
|
|
3404
3410
|
name: e.icon,
|
|
3405
3411
|
size: r[e.size]
|
|
3406
|
-
}, null, 8, ["name", "size"])) : e.initials ? (D(), o(t, { key: 1 }, [l(
|
|
3412
|
+
}, null, 8, ["name", "size"])) : e.initials ? (D(), o(t, { key: 1 }, [l(F(e.initials), 1)], 64)) : e.image ? (D(), o("img", {
|
|
3407
3413
|
key: 2,
|
|
3408
3414
|
src: e.image,
|
|
3409
3415
|
alt: e.alt ?? ""
|
|
@@ -3469,7 +3475,7 @@ var fi = () => ({
|
|
|
3469
3475
|
disabled: e.disabled || e.isLoading
|
|
3470
3476
|
}, [
|
|
3471
3477
|
s("div", ba, [
|
|
3472
|
-
e.prefixLabel ? (D(), o("p", xa,
|
|
3478
|
+
e.prefixLabel ? (D(), o("p", xa, F(e.prefixLabel), 1)) : a("", !0),
|
|
3473
3479
|
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (D(), i(Be, {
|
|
3474
3480
|
key: 1,
|
|
3475
3481
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
@@ -3509,7 +3515,7 @@ var fi = () => ({
|
|
|
3509
3515
|
key: 3,
|
|
3510
3516
|
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
3511
3517
|
title: p.value
|
|
3512
|
-
},
|
|
3518
|
+
}, F(p.value), 9, Sa)) : a("", !0)
|
|
3513
3519
|
], 64)),
|
|
3514
3520
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (D(), i(Be, {
|
|
3515
3521
|
key: 4,
|
|
@@ -3684,11 +3690,11 @@ var Pa = {
|
|
|
3684
3690
|
}, [s("span", {
|
|
3685
3691
|
ref_key: "mainText",
|
|
3686
3692
|
ref: c
|
|
3687
|
-
},
|
|
3693
|
+
}, F(e.text), 513), e.subduedText ? (D(), o("span", {
|
|
3688
3694
|
key: 0,
|
|
3689
3695
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
3690
3696
|
style: { "padding-left": "4px" }
|
|
3691
|
-
},
|
|
3697
|
+
}, F(e.subduedText), 3)) : a("", !0)], 8, Fa), f.value ? (D(), o("span", {
|
|
3692
3698
|
key: 0,
|
|
3693
3699
|
ref_key: "subText",
|
|
3694
3700
|
ref: l,
|
|
@@ -3699,12 +3705,12 @@ var Pa = {
|
|
|
3699
3705
|
{ "pv-text-subdued": !e.disabled }
|
|
3700
3706
|
]),
|
|
3701
3707
|
title: e.hoverTitle ?? f.value
|
|
3702
|
-
},
|
|
3708
|
+
}, F(f.value), 11, Ia)) : a("", !0)]),
|
|
3703
3709
|
e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(Be, {
|
|
3704
3710
|
key: 3,
|
|
3705
3711
|
value: e.secondaryText,
|
|
3706
3712
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
3707
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span", La,
|
|
3713
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span", La, F(e.secondaryText), 1)) : a("", !0)
|
|
3708
3714
|
], 64));
|
|
3709
3715
|
}
|
|
3710
3716
|
}), za = ["for"], Ba = { key: 0 }, Va = [
|
|
@@ -3735,22 +3741,22 @@ var Pa = {
|
|
|
3735
3741
|
}),
|
|
3736
3742
|
emits: ["update:modelValue"],
|
|
3737
3743
|
setup(e) {
|
|
3738
|
-
let t = e.id ??
|
|
3744
|
+
let t = e.id ?? R(), n = z(e, "modelValue");
|
|
3739
3745
|
return (r, i) => (D(), o("label", {
|
|
3740
|
-
for:
|
|
3746
|
+
for: I(t),
|
|
3741
3747
|
class: y(["pv-label pv-switch pv-label-hover", {
|
|
3742
3748
|
"pv-input-small": e.size === "md",
|
|
3743
3749
|
"pv-input-xsmall": e.size === "sm",
|
|
3744
3750
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
3745
3751
|
}])
|
|
3746
|
-
}, [e.label ? (D(), o("span", Ba,
|
|
3752
|
+
}, [e.label ? (D(), o("span", Ba, F(e.label), 1)) : a("", !0), G(s("input", {
|
|
3747
3753
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
3748
3754
|
disabled: e.disabled,
|
|
3749
3755
|
"aria-label": e.ariaLabel,
|
|
3750
3756
|
type: "checkbox",
|
|
3751
3757
|
role: "switch",
|
|
3752
|
-
id:
|
|
3753
|
-
}, null, 8, Va), [[
|
|
3758
|
+
id: I(t)
|
|
3759
|
+
}, null, 8, Va), [[ee, n.value]])], 10, za));
|
|
3754
3760
|
}
|
|
3755
3761
|
}), [["__scopeId", "data-v-73e6d2b2"]]), Ua = ["aria-label"], Wa = /* @__PURE__ */ d({
|
|
3756
3762
|
__name: "PvMenuItemAction",
|
|
@@ -3793,7 +3799,7 @@ var Pa = {
|
|
|
3793
3799
|
_: 2
|
|
3794
3800
|
}, [o.value ? {
|
|
3795
3801
|
name: "content",
|
|
3796
|
-
fn: W(() => [l(
|
|
3802
|
+
fn: W(() => [l(F(o.value), 1)]),
|
|
3797
3803
|
key: "0"
|
|
3798
3804
|
} : void 0]), 1024));
|
|
3799
3805
|
}
|
|
@@ -3845,7 +3851,7 @@ var Pa = {
|
|
|
3845
3851
|
},
|
|
3846
3852
|
emits: ["handle-selected", "toggle-expanded"],
|
|
3847
3853
|
setup(e, { emit: t }) {
|
|
3848
|
-
let n = e, c =
|
|
3854
|
+
let n = e, c = V("inputRef"), l = m(Ga, void 0), d = m(Ka, k(!1)), p = m(Ya, void 0), h = m(Xa, void 0), g = m(qa, r(() => !1)), b = r(() => {
|
|
3849
3855
|
if (!d.value || !Oa(n)) return [];
|
|
3850
3856
|
let e = n.children ? ka(n.children) : [];
|
|
3851
3857
|
if (p?.value) {
|
|
@@ -3882,17 +3888,17 @@ var Pa = {
|
|
|
3882
3888
|
}), E = r(() => n.action ?? n.menuOptionConfig?.action), O = r(() => {
|
|
3883
3889
|
let e = n.menuOptionConfig?.variant;
|
|
3884
3890
|
return e !== "checkbox" && e !== "radio";
|
|
3885
|
-
}), A = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), j = `${A.value}-${f()?.uid}`, M = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"),
|
|
3886
|
-
n.disabled || (
|
|
3891
|
+
}), A = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), j = `${A.value}-${f()?.uid}`, M = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), P = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), F = t, L = (e) => {
|
|
3892
|
+
n.disabled || (F("handle-selected", {
|
|
3887
3893
|
option: { ...n },
|
|
3888
3894
|
event: e
|
|
3889
3895
|
}), v(() => {
|
|
3890
3896
|
c.value && (c.value.checked = x.value, c.value.indeterminate = S.value);
|
|
3891
3897
|
}));
|
|
3892
|
-
},
|
|
3898
|
+
}, R = (e) => {
|
|
3893
3899
|
if (!g.value) return;
|
|
3894
3900
|
let t = e.target.closest("a, button, input, select, textarea, [contenteditable], [role='button'], [role='checkbox'], [role='link'], [role='radio'], [role='switch']");
|
|
3895
|
-
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(),
|
|
3901
|
+
t && t !== e.currentTarget && t !== c.value || (e.preventDefault(), L(e));
|
|
3896
3902
|
};
|
|
3897
3903
|
return (t, r) => (D(), o("label", _(t.$attrs, {
|
|
3898
3904
|
class: ["pv-label pv-label-hover pv-flex pv-full-width pv-stack-4 pv-inset-square-8", C.value],
|
|
@@ -3901,8 +3907,8 @@ var Pa = {
|
|
|
3901
3907
|
paddingTop: e.subText ? "4px" : void 0,
|
|
3902
3908
|
paddingBottom: e.subText ? "4px" : void 0
|
|
3903
3909
|
}],
|
|
3904
|
-
"data-testid":
|
|
3905
|
-
onClick:
|
|
3910
|
+
"data-testid": P.value,
|
|
3911
|
+
onClick: R
|
|
3906
3912
|
}), [
|
|
3907
3913
|
s("input", {
|
|
3908
3914
|
ref_key: "inputRef",
|
|
@@ -3913,10 +3919,10 @@ var Pa = {
|
|
|
3913
3919
|
checked: x.value,
|
|
3914
3920
|
indeterminate: S.value,
|
|
3915
3921
|
class: y(M.value),
|
|
3916
|
-
tabindex:
|
|
3917
|
-
"aria-hidden":
|
|
3922
|
+
tabindex: I(g) ? -1 : void 0,
|
|
3923
|
+
"aria-hidden": I(g) ? !0 : void 0,
|
|
3918
3924
|
disabled: e.disabled,
|
|
3919
|
-
onChange: r[0] ||= (e) =>
|
|
3925
|
+
onChange: r[0] ||= (e) => I(g) ? void 0 : L(e)
|
|
3920
3926
|
}, null, 42, to),
|
|
3921
3927
|
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(Ra, _({ key: 1 }, T.value, {
|
|
3922
3928
|
menuOptionConfig: e.menuOptionConfig,
|
|
@@ -3955,7 +3961,7 @@ var Pa = {
|
|
|
3955
3961
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
3956
3962
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
3957
3963
|
"aria-expanded": e.expanded,
|
|
3958
|
-
onClick: r[1] ||= K((e) =>
|
|
3964
|
+
onClick: r[1] ||= K((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
3959
3965
|
}, [u(Z, {
|
|
3960
3966
|
name: e.chevronIcon ?? "chevron-right",
|
|
3961
3967
|
size: 12
|
|
@@ -3998,7 +4004,7 @@ var Pa = {
|
|
|
3998
4004
|
}),
|
|
3999
4005
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
4000
4006
|
setup(e, { emit: n }) {
|
|
4001
|
-
let i = e, s = m(Ga, void 0), c =
|
|
4007
|
+
let i = e, s = m(Ga, void 0), c = z(e, "selectedIds"), l = m($a, k(!1)), d = m(Qa, k(!1)), f = m(qa, r(() => !1)), p = L(), h = r(() => {
|
|
4002
4008
|
if (!f.value) return {};
|
|
4003
4009
|
let e = new Set([
|
|
4004
4010
|
"aria-checked",
|
|
@@ -4036,10 +4042,10 @@ var Pa = {
|
|
|
4036
4042
|
}), N = r(() => Oa({
|
|
4037
4043
|
...i,
|
|
4038
4044
|
children: w.value
|
|
4039
|
-
}) && i.level < so),
|
|
4045
|
+
}) && i.level < so), P = r(() => N.value ? l.value ? b.value : !0 : !1), F = r(() => b.value ? "chevron-down" : "chevron-right"), R = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), B = n, V = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), ee = async () => {
|
|
4040
4046
|
if (S.value) return;
|
|
4041
4047
|
if (!i.handleSeeMore) {
|
|
4042
|
-
|
|
4048
|
+
B("see-more", {
|
|
4043
4049
|
parentId: i.id,
|
|
4044
4050
|
offset: w.value.length
|
|
4045
4051
|
});
|
|
@@ -4071,7 +4077,7 @@ var Pa = {
|
|
|
4071
4077
|
} finally {
|
|
4072
4078
|
S.value = !1;
|
|
4073
4079
|
}
|
|
4074
|
-
},
|
|
4080
|
+
}, te = (e) => {
|
|
4075
4081
|
if (l.value && N.value && e.option.id === i.id && !d.value) {
|
|
4076
4082
|
E();
|
|
4077
4083
|
return;
|
|
@@ -4080,9 +4086,9 @@ var Pa = {
|
|
|
4080
4086
|
let t = c.value.indexOf(e.option.id);
|
|
4081
4087
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
4082
4088
|
}
|
|
4083
|
-
|
|
4084
|
-
},
|
|
4085
|
-
|
|
4089
|
+
B("handle-selected", e);
|
|
4090
|
+
}, ne = (e) => {
|
|
4091
|
+
B("handle-selected", e);
|
|
4086
4092
|
};
|
|
4087
4093
|
return (n, r) => {
|
|
4088
4094
|
let s = M("PvMenuItem", !0);
|
|
@@ -4094,12 +4100,12 @@ var Pa = {
|
|
|
4094
4100
|
menuOptionConfig: e.config,
|
|
4095
4101
|
queryText: e.queryText,
|
|
4096
4102
|
highlightSearchText: e.highlightSearchText,
|
|
4097
|
-
showChevron:
|
|
4098
|
-
chevronIcon:
|
|
4103
|
+
showChevron: I(l) && N.value,
|
|
4104
|
+
chevronIcon: F.value,
|
|
4099
4105
|
expanded: b.value,
|
|
4100
|
-
onHandleSelected:
|
|
4106
|
+
onHandleSelected: te,
|
|
4101
4107
|
onToggleExpanded: E,
|
|
4102
|
-
selected:
|
|
4108
|
+
selected: R(i)
|
|
4103
4109
|
}), null, 16, [
|
|
4104
4110
|
"children",
|
|
4105
4111
|
"menuOptionConfig",
|
|
@@ -4109,13 +4115,13 @@ var Pa = {
|
|
|
4109
4115
|
"chevronIcon",
|
|
4110
4116
|
"expanded",
|
|
4111
4117
|
"selected"
|
|
4112
|
-
]),
|
|
4118
|
+
]), P.value ? (D(), o("ul", {
|
|
4113
4119
|
key: 0,
|
|
4114
4120
|
role: "list",
|
|
4115
4121
|
style: x(O.value)
|
|
4116
4122
|
}, [(D(!0), o(t, null, A(w.value, (t) => (D(), o("li", {
|
|
4117
4123
|
key: t.id,
|
|
4118
|
-
"data-active":
|
|
4124
|
+
"data-active": R(t) ? "true" : null,
|
|
4119
4125
|
class: y(e.itemClass)
|
|
4120
4126
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
4121
4127
|
disabled: i.disabled || t.disabled,
|
|
@@ -4125,8 +4131,8 @@ var Pa = {
|
|
|
4125
4131
|
queryText: e.queryText,
|
|
4126
4132
|
highlightSearchText: e.highlightSearchText,
|
|
4127
4133
|
level: e.level + 1,
|
|
4128
|
-
onHandleSelected:
|
|
4129
|
-
onSeeMore: r[1] ||= (e) =>
|
|
4134
|
+
onHandleSelected: ne,
|
|
4135
|
+
onSeeMore: r[1] ||= (e) => B("see-more", e)
|
|
4130
4136
|
}), null, 16, [
|
|
4131
4137
|
"disabled",
|
|
4132
4138
|
"selectedIds",
|
|
@@ -4134,13 +4140,13 @@ var Pa = {
|
|
|
4134
4140
|
"queryText",
|
|
4135
4141
|
"highlightSearchText",
|
|
4136
4142
|
"level"
|
|
4137
|
-
])], 10, ao))), 128)),
|
|
4143
|
+
])], 10, ao))), 128)), V.value ? (D(), o("li", oo, [u($, {
|
|
4138
4144
|
class: "pv-text-brand",
|
|
4139
4145
|
variant: "ghost",
|
|
4140
4146
|
label: "See more",
|
|
4141
4147
|
loading: S.value,
|
|
4142
4148
|
"data-testid": "pv-menu-item-see-more",
|
|
4143
|
-
onClick:
|
|
4149
|
+
onClick: ee
|
|
4144
4150
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
4145
4151
|
};
|
|
4146
4152
|
}
|
|
@@ -4178,7 +4184,7 @@ var Pa = {
|
|
|
4178
4184
|
}),
|
|
4179
4185
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems", "update:expandedOptionId"]),
|
|
4180
4186
|
setup(e, { emit: c }) {
|
|
4181
|
-
let l = e, d = c, f =
|
|
4187
|
+
let l = e, d = c, f = z(e, "selectedItems"), p = z(e, "expandedOptionId"), h = R(), g = k(null), b = k(null), S = k(null), C = k(null), { floatingStyles: w, update: T } = Vn(C, S, {
|
|
4182
4188
|
middleware: [
|
|
4183
4189
|
Dn(4),
|
|
4184
4190
|
kn(),
|
|
@@ -4196,19 +4202,19 @@ var Pa = {
|
|
|
4196
4202
|
O(Ja, N), oe(g, (e) => {
|
|
4197
4203
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
4198
4204
|
}, { ignore: [S] });
|
|
4199
|
-
let
|
|
4205
|
+
let F = P(f.value);
|
|
4200
4206
|
U(f, (e) => {
|
|
4201
|
-
|
|
4207
|
+
F.value = e;
|
|
4202
4208
|
});
|
|
4203
|
-
let
|
|
4204
|
-
|
|
4209
|
+
let L, B = (e) => {
|
|
4210
|
+
L = e, f.value = e;
|
|
4205
4211
|
};
|
|
4206
|
-
U(
|
|
4207
|
-
e !==
|
|
4208
|
-
}), O(Ga,
|
|
4209
|
-
let
|
|
4210
|
-
O(Ka,
|
|
4211
|
-
let
|
|
4212
|
+
U(F, (e) => {
|
|
4213
|
+
e !== L && e !== f.value && B(e);
|
|
4214
|
+
}), O(Ga, F), O(qa, r(() => l.childrenDisplay === "popover"));
|
|
4215
|
+
let V = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4216
|
+
O(Ka, V);
|
|
4217
|
+
let ee = m(Ya, void 0), te = m(Qa, k(!1)), ne = m(Xa, void 0), re = m(Za, void 0), ie = r(() => l.singleSelect || l.config?.variant === "radio"), ae = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), K = (e, t, n = !1, r = !0) => {
|
|
4212
4218
|
let i = !r || p.value !== e.id;
|
|
4213
4219
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
4214
4220
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
@@ -4222,36 +4228,36 @@ var Pa = {
|
|
|
4222
4228
|
return;
|
|
4223
4229
|
}
|
|
4224
4230
|
let r;
|
|
4225
|
-
if (
|
|
4231
|
+
if (V.value && Oa(n)) {
|
|
4226
4232
|
let e;
|
|
4227
|
-
if (
|
|
4228
|
-
let t =
|
|
4233
|
+
if (te.value && ee?.value) {
|
|
4234
|
+
let t = ee.value.get(n.id);
|
|
4229
4235
|
e = Aa(t?.children ? ka(t.children) : [], n.children ? ka(n.children) : []);
|
|
4230
4236
|
} else e = n.children ? ka(n.children) : [];
|
|
4231
|
-
let t = e.map((e) => e.id), i =
|
|
4232
|
-
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e],
|
|
4233
|
-
let e = new Set(
|
|
4234
|
-
a ? e.delete(n.id) : e.add(n.id),
|
|
4237
|
+
let t = e.map((e) => e.id), i = F.value, a = (ne?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
4238
|
+
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], ne?.value) {
|
|
4239
|
+
let e = new Set(ne.value);
|
|
4240
|
+
a ? e.delete(n.id) : e.add(n.id), ne.value = e;
|
|
4235
4241
|
}
|
|
4236
|
-
if (
|
|
4237
|
-
let e = new Map(
|
|
4238
|
-
e.delete(n.id),
|
|
4242
|
+
if (re?.value?.has(n.id)) {
|
|
4243
|
+
let e = new Map(re.value);
|
|
4244
|
+
e.delete(n.id), re.value = e;
|
|
4239
4245
|
}
|
|
4240
|
-
} else if (ie.value) r =
|
|
4246
|
+
} else if (ie.value) r = F.value.length === 1 && F.value[0].id === n.id ? l.disableDeselect ? F.value : [] : [n];
|
|
4241
4247
|
else {
|
|
4242
|
-
let e =
|
|
4243
|
-
if (r = e > -1 ? [...
|
|
4248
|
+
let e = F.value.findIndex((e) => e.id === n.id);
|
|
4249
|
+
if (r = e > -1 ? [...F.value.slice(0, e), ...F.value.slice(e + 1)] : [...F.value, n], V.value && ne?.value && re?.value) {
|
|
4244
4250
|
let t = e > -1;
|
|
4245
|
-
for (let e of
|
|
4246
|
-
let r =
|
|
4251
|
+
for (let e of ne.value) {
|
|
4252
|
+
let r = ee?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4247
4253
|
if (!r || !(ka(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4248
|
-
let i = new Map(
|
|
4249
|
-
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e),
|
|
4254
|
+
let i = new Map(re.value), a = new Set(i.get(e) ?? []);
|
|
4255
|
+
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), re.value = i;
|
|
4250
4256
|
break;
|
|
4251
4257
|
}
|
|
4252
4258
|
}
|
|
4253
4259
|
}
|
|
4254
|
-
|
|
4260
|
+
F.value = r, B(r), !t && l.childrenDisplay === "popover" && (p.value = void 0), d("handle-selected", l.childrenDisplay === "popover" ? {
|
|
4255
4261
|
...e,
|
|
4256
4262
|
option: n
|
|
4257
4263
|
} : e);
|
|
@@ -4263,7 +4269,7 @@ var Pa = {
|
|
|
4263
4269
|
...e,
|
|
4264
4270
|
option: n
|
|
4265
4271
|
}, !0), p.value = void 0, v(() => Ce(t.id));
|
|
4266
|
-
}, ce = r(() => new Set(
|
|
4272
|
+
}, ce = r(() => new Set(F.value.map((e) => e.id))), le = (e) => {
|
|
4267
4273
|
for (let t of e) {
|
|
4268
4274
|
if (ce.value.has(t.id)) return t;
|
|
4269
4275
|
let e = t.children?.length ? le(t.children) : void 0;
|
|
@@ -4283,10 +4289,10 @@ var Pa = {
|
|
|
4283
4289
|
...e,
|
|
4284
4290
|
children: void 0,
|
|
4285
4291
|
totalChildCount: void 0
|
|
4286
|
-
}), Y = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, de = (e) => ce.value.has(e.id) ||
|
|
4292
|
+
}), Y = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, de = (e) => ce.value.has(e.id) || V.value && ne?.value?.has(e.id) || (V.value || l.childrenDisplay === "popover") && e.children?.length && le(e.children) ? !0 : null, X = (e) => {
|
|
4287
4293
|
let t = e.config?.variant ?? l.config?.variant;
|
|
4288
4294
|
return ie.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4289
|
-
}, fe = (e) => X(e) === "menuitem" ? void 0 : !!de(e), pe = (e) => e.children?.length && !l.highlightParentItems ? null : X(e) !== "menuitemcheckbox" && de(e) || p.value === e.id ? !0 : null, me = (e) => X(e) !== "menuitemcheckbox" && ce.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || ce.value.has(e.id) ||
|
|
4295
|
+
}, fe = (e) => X(e) === "menuitem" ? void 0 : !!de(e), pe = (e) => e.children?.length && !l.highlightParentItems ? null : X(e) !== "menuitemcheckbox" && de(e) || p.value === e.id ? !0 : null, me = (e) => X(e) !== "menuitemcheckbox" && ce.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || ce.value.has(e.id) || ne?.value?.has(e.id) || e.children?.length && le(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
4290
4296
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
4291
4297
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(go), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
4292
4298
|
}), ye = r(() => {
|
|
@@ -4385,7 +4391,7 @@ var Pa = {
|
|
|
4385
4391
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4386
4392
|
}, [u(co, _({ ref_for: !0 }, ue(t), {
|
|
4387
4393
|
"aria-checked": e.childrenDisplay === "popover" ? fe(t) : void 0,
|
|
4388
|
-
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ?
|
|
4394
|
+
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? I(h) : void 0,
|
|
4389
4395
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
4390
4396
|
"aria-expanded": e.childrenDisplay === "popover" && t.children?.length ? p.value === t.id : void 0,
|
|
4391
4397
|
"aria-haspopup": e.childrenDisplay === "popover" && t.children?.length ? t.popoverRole ?? "menu" : void 0,
|
|
@@ -4447,7 +4453,7 @@ var Pa = {
|
|
|
4447
4453
|
ref: S,
|
|
4448
4454
|
class: "pv-menu-popover",
|
|
4449
4455
|
"data-pv-menu-ancestors": N.join(" "),
|
|
4450
|
-
style: x(
|
|
4456
|
+
style: x(I(w))
|
|
4451
4457
|
}, [u(vr, {
|
|
4452
4458
|
class: "pv-scrollbar-visible",
|
|
4453
4459
|
"css-custom-properties": {
|
|
@@ -4458,10 +4464,10 @@ var Pa = {
|
|
|
4458
4464
|
}, {
|
|
4459
4465
|
default: W(() => [j(r.$slots, "popover", {
|
|
4460
4466
|
option: ae.value,
|
|
4461
|
-
popoverId:
|
|
4467
|
+
popoverId: I(h),
|
|
4462
4468
|
close: M
|
|
4463
4469
|
}, () => [s("ul", {
|
|
4464
|
-
id:
|
|
4470
|
+
id: I(h),
|
|
4465
4471
|
ref_key: "nestedMenuRef",
|
|
4466
4472
|
ref: b,
|
|
4467
4473
|
"aria-label": `${ae.value.text} options`,
|
|
@@ -4629,7 +4635,7 @@ var Pa = {
|
|
|
4629
4635
|
for (let r of n) e.set(r.id, r), r.children?.length && t(r.children);
|
|
4630
4636
|
};
|
|
4631
4637
|
return t(c.options), e;
|
|
4632
|
-
}), f =
|
|
4638
|
+
}), f = P(/* @__PURE__ */ new Set()), m = P(/* @__PURE__ */ new Map());
|
|
4633
4639
|
O(Ya, d), O(Xa, f), O(Za, m), O(Qa, r(() => c.parentSelectsAllChildren)), O($a, r(() => !!c.enableChildExpansion));
|
|
4634
4640
|
let g = n, y = r(() => {
|
|
4635
4641
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -4659,19 +4665,19 @@ var Pa = {
|
|
|
4659
4665
|
return t;
|
|
4660
4666
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
4661
4667
|
let e = c.additionalCounter ?? 0;
|
|
4662
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
4668
|
+
if (c.enableCascadeSelection && c.countSelectedParents && R.value?.length) return Ma(R.value) + e;
|
|
4663
4669
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return H.value.length + e;
|
|
4664
4670
|
let t = new Set(H.value.map((e) => e.id));
|
|
4665
4671
|
return ja(c.options, t) + e;
|
|
4666
|
-
}), T = r(() => H.value.length > 0 ? !0 : c.enableCascadeSelection &&
|
|
4672
|
+
}), T = r(() => H.value.length > 0 ? !0 : c.enableCascadeSelection && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
4667
4673
|
g("see-more", e ?? {});
|
|
4668
|
-
}, k =
|
|
4669
|
-
H.value = e,
|
|
4674
|
+
}, k = V("searchInputRef"), [M, N] = Y(c.defaultOpen), L = z(e, "modelValue"), R = z(e, "selectionState"), B = z(e, "searchInput"), ee = r(() => c.menuActionsVariant === "cancel-confirm"), te = (e) => {
|
|
4675
|
+
H.value = e, ee.value || (L.value = e, R.value = S());
|
|
4676
|
+
}, ne = () => {
|
|
4677
|
+
ee.value && (L.value = H.value, R.value = S());
|
|
4670
4678
|
}, re = () => {
|
|
4671
|
-
|
|
4672
|
-
},
|
|
4673
|
-
te.value && (H.value = I.value);
|
|
4674
|
-
}, H = ee(I.value), ie = (e) => d.value.get(e), G = (e) => {
|
|
4679
|
+
ee.value && (H.value = L.value);
|
|
4680
|
+
}, H = P(L.value), ie = (e) => d.value.get(e), G = (e) => {
|
|
4675
4681
|
if (!c.enableCascadeSelection || !e) return;
|
|
4676
4682
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
4677
4683
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -4693,33 +4699,33 @@ var Pa = {
|
|
|
4693
4699
|
}, ae = r({
|
|
4694
4700
|
get: () => H.value,
|
|
4695
4701
|
set: (e) => {
|
|
4696
|
-
|
|
4702
|
+
te(e);
|
|
4697
4703
|
}
|
|
4698
4704
|
}), K = () => {
|
|
4699
|
-
|
|
4705
|
+
B.value = "", M.value = !1;
|
|
4700
4706
|
}, oe = r(() => {
|
|
4701
4707
|
let e = c.size === "lg" ? 24 : 30;
|
|
4702
4708
|
return c.overlayTrigger ? -e : void 0;
|
|
4703
4709
|
});
|
|
4704
|
-
U(() =>
|
|
4705
|
-
if (c.enableCascadeSelection &&
|
|
4706
|
-
G(
|
|
4710
|
+
U(() => L.value, (e) => {
|
|
4711
|
+
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
4712
|
+
G(R.value);
|
|
4707
4713
|
return;
|
|
4708
4714
|
}
|
|
4709
4715
|
H.value = e;
|
|
4710
|
-
}), U(() => [
|
|
4711
|
-
G(
|
|
4716
|
+
}), U(() => [R.value, c.options], () => {
|
|
4717
|
+
G(R.value);
|
|
4712
4718
|
}, {
|
|
4713
4719
|
deep: !0,
|
|
4714
4720
|
immediate: !0
|
|
4715
4721
|
}), U(M, (e) => {
|
|
4716
|
-
e ? (
|
|
4722
|
+
e ? (re(), v(() => {
|
|
4717
4723
|
c.overlayTrigger && !c.disableSearchInput && k.value?.input?.focus(), g("dropdown-open");
|
|
4718
|
-
})) : (
|
|
4724
|
+
})) : (re(), g("dropdown-closed"));
|
|
4719
4725
|
});
|
|
4720
4726
|
let se = r(() => {
|
|
4721
|
-
if (
|
|
4722
|
-
let e =
|
|
4727
|
+
if (B.value === "") return c.options;
|
|
4728
|
+
let e = B.value.toLocaleLowerCase();
|
|
4723
4729
|
return c.enableCascadeSelection ? Na(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
4724
4730
|
}), ce = () => {
|
|
4725
4731
|
if (c.enableCascadeSelection) {
|
|
@@ -4729,13 +4735,13 @@ var Pa = {
|
|
|
4729
4735
|
t(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
4730
4736
|
}
|
|
4731
4737
|
let e = c.enableCascadeSelection ? ka(se.value) : se.value;
|
|
4732
|
-
g("select-all", e.length),
|
|
4738
|
+
g("select-all", e.length), te(e);
|
|
4733
4739
|
}, le = () => {
|
|
4734
|
-
g("clear-all", H.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
4740
|
+
g("clear-all", H.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
4735
4741
|
}, ue = () => {
|
|
4736
|
-
V(), K();
|
|
4737
|
-
}, J = () => {
|
|
4738
4742
|
re(), K();
|
|
4743
|
+
}, J = () => {
|
|
4744
|
+
ne(), K();
|
|
4739
4745
|
}, de = r(() => {
|
|
4740
4746
|
if (!c.groupings) return;
|
|
4741
4747
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -4748,21 +4754,21 @@ var Pa = {
|
|
|
4748
4754
|
}
|
|
4749
4755
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
4750
4756
|
return Array.from(e.entries());
|
|
4751
|
-
}), X = r(() => c.groupings &&
|
|
4757
|
+
}), X = r(() => c.groupings && B.value === ""), fe = r(() => ({
|
|
4752
4758
|
...c,
|
|
4753
|
-
selectedItems:
|
|
4754
|
-
searchInput:
|
|
4759
|
+
selectedItems: L.value,
|
|
4760
|
+
searchInput: B.value,
|
|
4755
4761
|
slotContext: c.slotContext,
|
|
4756
4762
|
isOpen: M.value,
|
|
4757
4763
|
isLoading: c.isLoading
|
|
4758
|
-
})), pe = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), me = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), he =
|
|
4764
|
+
})), pe = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), me = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), he = V("popoverContentRef"), ge = r(() => {
|
|
4759
4765
|
let e = he.value?.getRootNode();
|
|
4760
4766
|
return e instanceof ShadowRoot ? e.host : null;
|
|
4761
4767
|
}), { present: _e } = Gn("header", { host: ge }), { present: ve } = Gn("no-results", { host: ge }), { present: ye } = Gn("footer", { host: ge });
|
|
4762
4768
|
return q("Escape", () => {
|
|
4763
4769
|
M.value && K();
|
|
4764
4770
|
}), (n, r) => (D(), i(Zn, _({
|
|
4765
|
-
modelValue:
|
|
4771
|
+
modelValue: I(M),
|
|
4766
4772
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
4767
4773
|
}, e.popoverProperties, { offset: oe.value }), {
|
|
4768
4774
|
trigger: W(() => [u(Ca, {
|
|
@@ -4777,13 +4783,13 @@ var Pa = {
|
|
|
4777
4783
|
companyLogo: e.companyLogo,
|
|
4778
4784
|
showClear: !e.disableClearIcon && T.value && !e.disabled,
|
|
4779
4785
|
showDropdown: !e.disableDropdownIcon && (e.disabled || !(T.value && !e.disableClearIcon)),
|
|
4780
|
-
open:
|
|
4786
|
+
open: I(M),
|
|
4781
4787
|
"counter-value": w.value,
|
|
4782
4788
|
"counter-style": e.counterStyle,
|
|
4783
4789
|
"selected-items": H.value,
|
|
4784
4790
|
"data-dd-action-name": pe.value,
|
|
4785
4791
|
onHandleClear: le,
|
|
4786
|
-
onHandleToggleDropdown: r[0] ||= (e) =>
|
|
4792
|
+
onHandleToggleDropdown: r[0] ||= (e) => I(N)()
|
|
4787
4793
|
}, null, 8, [
|
|
4788
4794
|
"variant",
|
|
4789
4795
|
"size",
|
|
@@ -4817,20 +4823,20 @@ var Pa = {
|
|
|
4817
4823
|
"data-dd-action-name": me.value
|
|
4818
4824
|
}, [u(ii, {
|
|
4819
4825
|
ref: "searchInputRef",
|
|
4820
|
-
"model-value":
|
|
4821
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
4826
|
+
"model-value": B.value,
|
|
4827
|
+
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
4822
4828
|
class: "pv-stack-4",
|
|
4823
4829
|
placeholder: e.searchPlaceholder
|
|
4824
4830
|
}, null, 8, ["model-value", "placeholder"])], 8, vo)),
|
|
4825
|
-
n.$slots.header ||
|
|
4831
|
+
n.$slots.header || I(_e) ? (D(), o("div", yo, [j(n.$slots, "header", b(p(fe.value)))])) : a("", !0),
|
|
4826
4832
|
se.value.length > 0 ? (D(), o(t, { key: 2 }, [X.value ? (D(!0), o(t, { key: 0 }, A(de.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
4827
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", bo,
|
|
4833
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", bo, F(t), 1)),
|
|
4828
4834
|
u(_o, {
|
|
4829
4835
|
selectedItems: ae.value,
|
|
4830
4836
|
"onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
|
|
4831
4837
|
options: i,
|
|
4832
4838
|
config: l.value,
|
|
4833
|
-
queryText: e.highlightSearchText ?
|
|
4839
|
+
queryText: e.highlightSearchText ? B.value : null,
|
|
4834
4840
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
4835
4841
|
itemClass: "pv-stack-4",
|
|
4836
4842
|
isLoading: e.isLoading,
|
|
@@ -4856,7 +4862,7 @@ var Pa = {
|
|
|
4856
4862
|
"onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
|
|
4857
4863
|
options: se.value,
|
|
4858
4864
|
config: l.value,
|
|
4859
|
-
queryText: e.highlightSearchText ?
|
|
4865
|
+
queryText: e.highlightSearchText ? B.value : null,
|
|
4860
4866
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
4861
4867
|
itemClass: "pv-stack-4",
|
|
4862
4868
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -4873,8 +4879,8 @@ var Pa = {
|
|
|
4873
4879
|
"isSeeMoreLoading",
|
|
4874
4880
|
"hasMoreOptions"
|
|
4875
4881
|
]))], 64)) : a("", !0),
|
|
4876
|
-
e.isLoading ? (D(), o("div", So, [u(je, { variant: "dark" }), e.loadingText ? (D(), o("span", Co,
|
|
4877
|
-
s("div", wo, [
|
|
4882
|
+
e.isLoading ? (D(), o("div", So, [u(je, { variant: "dark" }), e.loadingText ? (D(), o("span", Co, F(e.loadingText), 1)) : a("", !0)])) : se.value.length === 0 ? (D(), o(t, { key: 4 }, [I(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (D(), i(Da, { key: 1 }))], 64)) : a("", !0),
|
|
4883
|
+
s("div", wo, [I(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, fe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(ha, {
|
|
4878
4884
|
key: 1,
|
|
4879
4885
|
variant: e.menuActionsVariant,
|
|
4880
4886
|
disabled: e.isLoading,
|
|
@@ -4954,7 +4960,7 @@ var Pa = {
|
|
|
4954
4960
|
variant: n.optionsVariant,
|
|
4955
4961
|
counterBadgeVariant: n.counterBadgeVariant,
|
|
4956
4962
|
size: n.size
|
|
4957
|
-
})), d = t, [f] = Y(n.defaultOpen), p =
|
|
4963
|
+
})), d = t, [f] = Y(n.defaultOpen), p = z(e, "modelValue"), m = z(e, "searchInput");
|
|
4958
4964
|
U(f, (e) => {
|
|
4959
4965
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
4960
4966
|
});
|
|
@@ -4993,7 +4999,7 @@ var Pa = {
|
|
|
4993
4999
|
return q("Escape", () => {
|
|
4994
5000
|
f.value && E();
|
|
4995
5001
|
}), (t, n) => (D(), i(Zn, _({
|
|
4996
|
-
modelValue:
|
|
5002
|
+
modelValue: I(f),
|
|
4997
5003
|
"onUpdate:modelValue": n[2] ||= (e) => h(f) ? f.value = e : null
|
|
4998
5004
|
}, c.value), {
|
|
4999
5005
|
trigger: W(() => [u(Ca, {
|
|
@@ -5010,7 +5016,7 @@ var Pa = {
|
|
|
5010
5016
|
avatar: b.value,
|
|
5011
5017
|
showClear: !1,
|
|
5012
5018
|
showDropdown: !0,
|
|
5013
|
-
open:
|
|
5019
|
+
open: I(f),
|
|
5014
5020
|
"data-dd-action-name": e.rumActionName,
|
|
5015
5021
|
"counter-position": e.counterPosition,
|
|
5016
5022
|
"counter-value": p.value?.secondaryText && typeof p.value.secondaryText == "number" ? p.value.secondaryText : void 0,
|
|
@@ -5118,7 +5124,7 @@ var Pa = {
|
|
|
5118
5124
|
}),
|
|
5119
5125
|
emits: ["update:modelValue"],
|
|
5120
5126
|
setup(e) {
|
|
5121
|
-
let { getPaginations: n } = ko({ variant: e.variant }), r =
|
|
5127
|
+
let { getPaginations: n } = ko({ variant: e.variant }), r = z(e, "modelValue");
|
|
5122
5128
|
return (i, a) => (D(), o("ol", {
|
|
5123
5129
|
role: "list",
|
|
5124
5130
|
class: "pv-pagination",
|
|
@@ -5133,17 +5139,17 @@ var Pa = {
|
|
|
5133
5139
|
variant: "ghost",
|
|
5134
5140
|
onClick: a[0] ||= (e) => i.$emit("update:modelValue", r.value - 1)
|
|
5135
5141
|
}, null, 8, ["disabled"])]),
|
|
5136
|
-
(D(!0), o(t, null, A(
|
|
5142
|
+
(D(!0), o(t, null, A(I(n)({
|
|
5137
5143
|
currentPage: r.value,
|
|
5138
5144
|
pages: e.maxPages
|
|
5139
5145
|
}), (e) => (D(), o("li", {
|
|
5140
5146
|
key: e.page,
|
|
5141
5147
|
"data-testid": `pagination-button-${e.page}`,
|
|
5142
5148
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5143
|
-
}, [e.label === "..." ? (D(), o("button", Mo,
|
|
5149
|
+
}, [e.label === "..." ? (D(), o("button", Mo, F(e.label), 1)) : (D(), o("button", {
|
|
5144
5150
|
key: 1,
|
|
5145
5151
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5146
|
-
},
|
|
5152
|
+
}, F(e.label), 9, No))], 8, jo))), 128)),
|
|
5147
5153
|
s("li", null, [u($, {
|
|
5148
5154
|
"data-testid": "pagination-right-arrow-icon",
|
|
5149
5155
|
disabled: r.value === e.maxPages,
|
|
@@ -5221,7 +5227,7 @@ var Pa = {
|
|
|
5221
5227
|
}),
|
|
5222
5228
|
emits: ["update:modelValue"],
|
|
5223
5229
|
setup(e) {
|
|
5224
|
-
let t =
|
|
5230
|
+
let t = V("inputRef"), n = {
|
|
5225
5231
|
h1: "ghost-input-h1",
|
|
5226
5232
|
h2: "ghost-input-h2",
|
|
5227
5233
|
h3: "ghost-input-h3",
|
|
@@ -5239,7 +5245,7 @@ var Pa = {
|
|
|
5239
5245
|
"text-md": "text-medium",
|
|
5240
5246
|
"text-lg": "text-large",
|
|
5241
5247
|
caption: "caption"
|
|
5242
|
-
}, c = e, l =
|
|
5248
|
+
}, c = e, l = z(e, "modelValue"), u = k(0), d = () => {
|
|
5243
5249
|
t.value?.focus();
|
|
5244
5250
|
};
|
|
5245
5251
|
w(() => {
|
|
@@ -5270,7 +5276,7 @@ var Pa = {
|
|
|
5270
5276
|
placeholder: e.placeholder,
|
|
5271
5277
|
disabled: e.disabled,
|
|
5272
5278
|
name: n[e.variant]
|
|
5273
|
-
}), null, 16, Wo), [[
|
|
5279
|
+
}), null, 16, Wo), [[re, l.value]]),
|
|
5274
5280
|
e.showEditIcon ? (D(), i($, {
|
|
5275
5281
|
key: 0,
|
|
5276
5282
|
"left-icon": "edit",
|
|
@@ -5297,7 +5303,7 @@ var Pa = {
|
|
|
5297
5303
|
}
|
|
5298
5304
|
},
|
|
5299
5305
|
setup(e) {
|
|
5300
|
-
let t =
|
|
5306
|
+
let t = V("rootRef"), { present: n } = Gn("right", { host: r(() => {
|
|
5301
5307
|
let e = t.value?.getRootNode();
|
|
5302
5308
|
return e instanceof ShadowRoot ? e.host : null;
|
|
5303
5309
|
}) });
|
|
@@ -5309,7 +5315,7 @@ var Pa = {
|
|
|
5309
5315
|
"--inset-size": "0.75rem 1rem",
|
|
5310
5316
|
"background-color": "#fdfdfc"
|
|
5311
5317
|
}
|
|
5312
|
-
}, [e.title ? (D(), o("span", Ko,
|
|
5318
|
+
}, [e.title ? (D(), o("span", Ko, F(e.title), 1)) : (D(), o("div", {
|
|
5313
5319
|
key: 1,
|
|
5314
5320
|
id: e.headerTitleId,
|
|
5315
5321
|
class: "pv-flex"
|
|
@@ -5318,7 +5324,7 @@ var Pa = {
|
|
|
5318
5324
|
class: "pv-flex"
|
|
5319
5325
|
}, [j(r.$slots, "right")], 8, Yo), e.showAskTqButton ? (D(), o("div", {
|
|
5320
5326
|
key: 0,
|
|
5321
|
-
class: y({ "pv-border-left":
|
|
5327
|
+
class: y({ "pv-border-left": I(n) }),
|
|
5322
5328
|
style: { "padding-inline-start": "0.5rem" }
|
|
5323
5329
|
}, [u(ir, {
|
|
5324
5330
|
id: e.askTqButtonId,
|
|
@@ -5352,7 +5358,7 @@ var Pa = {
|
|
|
5352
5358
|
}, [(D(!0), o(t, null, A(e.items.slice(0, i.value), (e, n) => (D(), o("li", {
|
|
5353
5359
|
key: n,
|
|
5354
5360
|
"data-testid": "pv-avatar-group-item"
|
|
5355
|
-
}, [e.initials ? (D(), o(t, { key: 0 }, [l(
|
|
5361
|
+
}, [e.initials ? (D(), o(t, { key: 0 }, [l(F(e.initials), 1)], 64)) : e.image ? (D(), o("img", {
|
|
5356
5362
|
key: 1,
|
|
5357
5363
|
src: e.image,
|
|
5358
5364
|
alt: e.alt ?? ""
|
|
@@ -5380,7 +5386,7 @@ var Pa = {
|
|
|
5380
5386
|
}),
|
|
5381
5387
|
emits: ["update:modelValue"],
|
|
5382
5388
|
setup(e) {
|
|
5383
|
-
let n = e, r =
|
|
5389
|
+
let n = e, r = z(e, "modelValue"), c = k(`toggle-group-${Math.random().toString(36).substr(2, 9)}`), l = (e) => {
|
|
5384
5390
|
if (!e.disabled) {
|
|
5385
5391
|
if (r.value?.value === e.value) {
|
|
5386
5392
|
n.allowDeselect && (r.value = null);
|
|
@@ -5407,7 +5413,7 @@ var Pa = {
|
|
|
5407
5413
|
key: 0,
|
|
5408
5414
|
name: t.icon
|
|
5409
5415
|
}, null, 8, ["name"])) : a("", !0),
|
|
5410
|
-
e.hideLabels ? a("", !0) : (D(), o("span", ns,
|
|
5416
|
+
e.hideLabels ? a("", !0) : (D(), o("span", ns, F(t.label), 1))
|
|
5411
5417
|
], 2)]),
|
|
5412
5418
|
_: 2
|
|
5413
5419
|
}, 1032, ["description"]))), 128))]));
|
|
@@ -5428,7 +5434,7 @@ var Pa = {
|
|
|
5428
5434
|
}),
|
|
5429
5435
|
emits: ["update:modelValue"],
|
|
5430
5436
|
setup(e) {
|
|
5431
|
-
let t =
|
|
5437
|
+
let t = z(e, "modelValue");
|
|
5432
5438
|
return (n, r) => G((D(), o("input", {
|
|
5433
5439
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
5434
5440
|
class: "pv-checkbox",
|
|
@@ -5437,7 +5443,7 @@ var Pa = {
|
|
|
5437
5443
|
"aria-label": e.ariaLabel,
|
|
5438
5444
|
disabled: e.disabled,
|
|
5439
5445
|
indeterminate: e.indeterminate
|
|
5440
|
-
}, null, 8, is)), [[
|
|
5446
|
+
}, null, 8, is)), [[ee, t.value]]);
|
|
5441
5447
|
}
|
|
5442
5448
|
}), os = ["aria-label", "aria-labelledby"], ss = ["id"], cs = [
|
|
5443
5449
|
"name",
|
|
@@ -5465,16 +5471,16 @@ var Pa = {
|
|
|
5465
5471
|
}),
|
|
5466
5472
|
emits: ["update:modelValue"],
|
|
5467
5473
|
setup(e) {
|
|
5468
|
-
let n = e, i =
|
|
5474
|
+
let n = e, i = z(e, "modelValue"), c = R(), u = R(), d = r(() => n.name ?? c), f = r(() => n.orientation === "vertical" ? { "--flex-align": "flex-start" } : {});
|
|
5469
5475
|
return (n, r) => (D(), o("div", {
|
|
5470
5476
|
role: "radiogroup",
|
|
5471
5477
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
5472
|
-
"aria-labelledby": e.label ?
|
|
5478
|
+
"aria-labelledby": e.label ? I(u) : void 0
|
|
5473
5479
|
}, [e.label ? (D(), o("span", {
|
|
5474
5480
|
key: 0,
|
|
5475
|
-
id:
|
|
5481
|
+
id: I(u),
|
|
5476
5482
|
class: "pv-label pv-stack-8"
|
|
5477
|
-
},
|
|
5483
|
+
}, F(e.label), 9, ss)) : a("", !0), s("div", {
|
|
5478
5484
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5479
5485
|
style: x(f.value)
|
|
5480
5486
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5487,7 +5493,7 @@ var Pa = {
|
|
|
5487
5493
|
name: d.value,
|
|
5488
5494
|
value: t.value,
|
|
5489
5495
|
disabled: e.disabled || t.disabled
|
|
5490
|
-
}, null, 8, cs), [[
|
|
5496
|
+
}, null, 8, cs), [[ne, i.value]]), l(" " + F(t.label), 1)]))), 128))], 6)], 8, os));
|
|
5491
5497
|
}
|
|
5492
5498
|
}), us = /* @__PURE__ */ d({
|
|
5493
5499
|
__name: "PvSprite",
|
|
@@ -5526,7 +5532,7 @@ var Pa = {
|
|
|
5526
5532
|
lg: "1.5rem",
|
|
5527
5533
|
xl: "2rem"
|
|
5528
5534
|
}, n = e, a = r(() => n.variant === "square" || n.variant === "circle"), o = r(() => n.height ?? t[n.size]), s = r(() => n.width ?? (a.value ? t[n.size] : "100%")), c = r(() => n.variant === "circle" ? "circle" : "rectangle");
|
|
5529
|
-
return (e, t) => (D(), i(
|
|
5535
|
+
return (e, t) => (D(), i(I(ve), {
|
|
5530
5536
|
"data-testid": "pv-skeleton",
|
|
5531
5537
|
shape: c.value,
|
|
5532
5538
|
height: o.value,
|
|
@@ -5568,7 +5574,7 @@ var Pa = {
|
|
|
5568
5574
|
}),
|
|
5569
5575
|
emits: ["update:modelValue"],
|
|
5570
5576
|
setup(e) {
|
|
5571
|
-
let n = e, c =
|
|
5577
|
+
let n = e, c = z(e, "modelValue"), l = r(() => n.inputIcon ? { "--inset-size": "8px 12px 6px 36px" } : {});
|
|
5572
5578
|
return (n, r) => (D(), o(t, null, [
|
|
5573
5579
|
n.$slots.label || e.showLabel ? (D(), o("label", {
|
|
5574
5580
|
key: 0,
|
|
@@ -5576,7 +5582,7 @@ var Pa = {
|
|
|
5576
5582
|
class: "pv-label pv-stack-8",
|
|
5577
5583
|
for: e.id
|
|
5578
5584
|
}, [j(n.$slots, "label")], 8, fs)) : a("", !0),
|
|
5579
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", ps,
|
|
5585
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", ps, F(e.prefixLabel), 1)) : a("", !0), s("div", ms, [e.inputIcon ? (D(), i(Z, {
|
|
5580
5586
|
key: 0,
|
|
5581
5587
|
class: "pv-absolute input-icon-position",
|
|
5582
5588
|
name: e.inputIcon
|
|
@@ -5594,7 +5600,7 @@ var Pa = {
|
|
|
5594
5600
|
id: e.id,
|
|
5595
5601
|
"data-invalid": e.error ? !0 : void 0,
|
|
5596
5602
|
step: e.step
|
|
5597
|
-
}), null, 16, hs), [[
|
|
5603
|
+
}), null, 16, hs), [[te, c.value]])])], 2),
|
|
5598
5604
|
e.lowerLabel ? (D(), o("p", {
|
|
5599
5605
|
key: 1,
|
|
5600
5606
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5603,7 +5609,7 @@ var Pa = {
|
|
|
5603
5609
|
"pv-text-red": e.error,
|
|
5604
5610
|
"pv-text-subdued": !e.error
|
|
5605
5611
|
}])
|
|
5606
|
-
},
|
|
5612
|
+
}, F(e.lowerLabel), 3)) : a("", !0)
|
|
5607
5613
|
], 64));
|
|
5608
5614
|
}
|
|
5609
5615
|
}), _s = { class: "pv-stack-8" }, vs = { class: "pv-input-file" }, ys = [
|
|
@@ -5634,7 +5640,7 @@ var Pa = {
|
|
|
5634
5640
|
}),
|
|
5635
5641
|
emits: /* @__PURE__ */ g(["select-file"], ["update:modelValue"]),
|
|
5636
5642
|
setup(e, { emit: n }) {
|
|
5637
|
-
let c = e, l = n, d =
|
|
5643
|
+
let c = e, l = n, d = z(e, "modelValue"), f = R(), p = (e) => {
|
|
5638
5644
|
let t = e.target, n = Array.from(t.files ?? []);
|
|
5639
5645
|
t.value = "", n.length && (d.value = [...d.value, ...n], n.forEach((e) => l("select-file", e)));
|
|
5640
5646
|
}, m = (e) => {
|
|
@@ -5642,7 +5648,7 @@ var Pa = {
|
|
|
5642
5648
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
5643
5649
|
return (n, r) => (D(), o("div", _s, [s("div", vs, [
|
|
5644
5650
|
s("input", {
|
|
5645
|
-
id:
|
|
5651
|
+
id: I(f),
|
|
5646
5652
|
type: "file",
|
|
5647
5653
|
name: "file",
|
|
5648
5654
|
accept: e.accept,
|
|
@@ -5651,10 +5657,10 @@ var Pa = {
|
|
|
5651
5657
|
onChange: p
|
|
5652
5658
|
}, null, 40, ys),
|
|
5653
5659
|
s("label", {
|
|
5654
|
-
for:
|
|
5660
|
+
for: I(f),
|
|
5655
5661
|
class: "pv-label"
|
|
5656
5662
|
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8, bs),
|
|
5657
|
-
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) },
|
|
5663
|
+
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, F(h.value), 3),
|
|
5658
5664
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
5659
5665
|
key: 0,
|
|
5660
5666
|
"left-icon": "trash",
|
|
@@ -5666,7 +5672,7 @@ var Pa = {
|
|
|
5666
5672
|
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", xs, [(D(!0), o(t, null, A(d.value, (e) => (D(), o("li", {
|
|
5667
5673
|
key: e.name,
|
|
5668
5674
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
5669
|
-
}, [s("p", Ss,
|
|
5675
|
+
}, [s("p", Ss, F(e.name), 1), u($, {
|
|
5670
5676
|
"left-icon": "trash",
|
|
5671
5677
|
variant: "destructive",
|
|
5672
5678
|
size: "md",
|
|
@@ -5780,10 +5786,10 @@ var Pa = {
|
|
|
5780
5786
|
style: { color: "#218c88" },
|
|
5781
5787
|
name: e.icon,
|
|
5782
5788
|
size: 12
|
|
5783
|
-
}, null, 8, ["name"])) : a("", !0), s("span", js,
|
|
5784
|
-
e.upperLabel ? (D(), o("span", Ms,
|
|
5785
|
-
e.title ? (D(), o("span", Ns,
|
|
5786
|
-
e.description ? (D(), o("span", Ps,
|
|
5789
|
+
}, null, 8, ["name"])) : a("", !0), s("span", js, F(e.insight), 1)])) : a("", !0),
|
|
5790
|
+
e.upperLabel ? (D(), o("span", Ms, F(e.upperLabel), 1)) : a("", !0),
|
|
5791
|
+
e.title ? (D(), o("span", Ns, F(e.title), 1)) : a("", !0),
|
|
5792
|
+
e.description ? (D(), o("span", Ps, F(e.description), 1)) : a("", !0)
|
|
5787
5793
|
]), e.showButton ? (D(), i($, {
|
|
5788
5794
|
key: 0,
|
|
5789
5795
|
"left-icon": "new-tab",
|
|
@@ -5875,7 +5881,7 @@ var Pa = {
|
|
|
5875
5881
|
name: e.icon ? e.icon : n[e.variant],
|
|
5876
5882
|
size: 20
|
|
5877
5883
|
}, null, 8, ["name"]),
|
|
5878
|
-
s("p", Ls,
|
|
5884
|
+
s("p", Ls, F(e.label), 1),
|
|
5879
5885
|
j(r.$slots, "default"),
|
|
5880
5886
|
u($, {
|
|
5881
5887
|
variant: "ghost",
|
|
@@ -5919,7 +5925,7 @@ var Pa = {
|
|
|
5919
5925
|
"min-width": "0"
|
|
5920
5926
|
},
|
|
5921
5927
|
title: e.label
|
|
5922
|
-
},
|
|
5928
|
+
}, F(e.label), 9, Hs)]));
|
|
5923
5929
|
}
|
|
5924
5930
|
}), Ws = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5925
5931
|
__name: "PvTreeReorderIcon",
|
|
@@ -6129,11 +6135,11 @@ var Pa = {
|
|
|
6129
6135
|
setup(e, { emit: t }) {
|
|
6130
6136
|
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = tc(), { dragAndDropIndicatorClasses: p } = rc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = Xs(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = nc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = Js(), k = () => {
|
|
6131
6137
|
d(S(n.settings, n.option).name);
|
|
6132
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Ks : Gs),
|
|
6138
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Ks : Gs), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), L = r(() => P.value && !F.value), R = r(() => O({
|
|
6133
6139
|
level: n.level,
|
|
6134
|
-
showNestedTree:
|
|
6140
|
+
showNestedTree: P.value,
|
|
6135
6141
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
6136
|
-
})),
|
|
6142
|
+
})), z = r({
|
|
6137
6143
|
get: () => [...n.option.children || []],
|
|
6138
6144
|
set: (e) => {
|
|
6139
6145
|
o("update:children", {
|
|
@@ -6141,32 +6147,32 @@ var Pa = {
|
|
|
6141
6147
|
newChildren: e
|
|
6142
6148
|
});
|
|
6143
6149
|
}
|
|
6144
|
-
}),
|
|
6150
|
+
}), B = r(() => n.isParentPathOpen ?? !0);
|
|
6145
6151
|
return (t, n) => {
|
|
6146
6152
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6147
6153
|
return D(), i(Ys, {
|
|
6148
|
-
active:
|
|
6154
|
+
active: L.value,
|
|
6149
6155
|
level: e.level
|
|
6150
6156
|
}, {
|
|
6151
6157
|
default: W(() => [(D(), i(N(j.value), {
|
|
6152
|
-
class: y({ ...
|
|
6158
|
+
class: y({ ...I(p)(e.option) }),
|
|
6153
6159
|
option: e.option,
|
|
6154
6160
|
selected: A(e.option.node_id),
|
|
6155
6161
|
"disable-selection": e.disableSelection,
|
|
6156
6162
|
label: e.option.label,
|
|
6157
6163
|
icon: e.settings[e.option.field]?.icon,
|
|
6158
6164
|
style: x({
|
|
6159
|
-
paddingLeft:
|
|
6160
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6165
|
+
paddingLeft: I(w)(e.level),
|
|
6166
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: B.value }) ?? {}
|
|
6161
6167
|
}),
|
|
6162
6168
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6163
|
-
onMouseenter: n[1] ||= (t) =>
|
|
6164
|
-
onMouseleave: n[2] ||= (e) =>
|
|
6169
|
+
onMouseenter: n[1] ||= (t) => I(h)(e.option.node_id),
|
|
6170
|
+
onMouseleave: n[2] ||= (e) => I(g)(),
|
|
6165
6171
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6166
6172
|
}, {
|
|
6167
|
-
default: W(() => [G(u(Ws, null, null, 512), [[H,
|
|
6173
|
+
default: W(() => [G(u(Ws, null, null, 512), [[H, I(m) === e.option.node_id && I(_)(e.isDraggable, e.settings, e.option)]]), s("div", ic, [P.value ? (D(), i(qs, {
|
|
6168
6174
|
key: 0,
|
|
6169
|
-
"is-last":
|
|
6175
|
+
"is-last": F.value
|
|
6170
6176
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
6171
6177
|
key: 1,
|
|
6172
6178
|
option: e.option,
|
|
@@ -6192,26 +6198,26 @@ var Pa = {
|
|
|
6192
6198
|
"label",
|
|
6193
6199
|
"icon",
|
|
6194
6200
|
"style"
|
|
6195
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
6196
|
-
modelValue:
|
|
6197
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
6201
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(I(ye), {
|
|
6202
|
+
modelValue: z.value,
|
|
6203
|
+
"onUpdate:modelValue": n[6] ||= (e) => z.value = e,
|
|
6198
6204
|
"parent-id": e.option.node_id,
|
|
6199
|
-
group:
|
|
6205
|
+
group: I(S)(e.settings, e.option),
|
|
6200
6206
|
"item-key": "node_id",
|
|
6201
|
-
disabled:
|
|
6202
|
-
move:
|
|
6203
|
-
class: y({ "pv-tree-drop-zone":
|
|
6207
|
+
disabled: I(v)(e.isDraggable, e.settings, e.option),
|
|
6208
|
+
move: I(b)(e.settings),
|
|
6209
|
+
class: y({ "pv-tree-drop-zone": I(c) && z.value.length === 0 && I(C)(e.settings, e.option, I(l)) }),
|
|
6204
6210
|
onStart: k,
|
|
6205
|
-
onEnd:
|
|
6206
|
-
onAdd:
|
|
6211
|
+
onEnd: I(f),
|
|
6212
|
+
onAdd: I(f)
|
|
6207
6213
|
}, {
|
|
6208
6214
|
item: W(({ element: i, index: a }) => [u(r, {
|
|
6209
6215
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6210
6216
|
option: i,
|
|
6211
6217
|
settings: e.settings,
|
|
6212
|
-
level:
|
|
6218
|
+
level: R.value,
|
|
6213
6219
|
index: a,
|
|
6214
|
-
"total-siblings":
|
|
6220
|
+
"total-siblings": z.value.length,
|
|
6215
6221
|
"parent-field": e.option.field,
|
|
6216
6222
|
"selected-options": e.selectedOptions,
|
|
6217
6223
|
"is-draggable": e.isDraggable,
|
|
@@ -6268,7 +6274,7 @@ var Pa = {
|
|
|
6268
6274
|
showNestedTree: j.value,
|
|
6269
6275
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6270
6276
|
additionalNestingLevel: A.value
|
|
6271
|
-
})),
|
|
6277
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? Ks : Gs, L = r({
|
|
6272
6278
|
get: () => [...n.option.children || []],
|
|
6273
6279
|
set: (e) => {
|
|
6274
6280
|
o("update:children", {
|
|
@@ -6276,40 +6282,40 @@ var Pa = {
|
|
|
6276
6282
|
newChildren: e
|
|
6277
6283
|
});
|
|
6278
6284
|
}
|
|
6279
|
-
}),
|
|
6285
|
+
}), R = r(() => n.isParentPathOpen ?? !0), z = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), B = r(() => j.value && !z.value);
|
|
6280
6286
|
return (t, n) => (D(), i(Ys, {
|
|
6281
6287
|
class: "pv-flow",
|
|
6282
6288
|
style: { "--flow-size": "0px" },
|
|
6283
|
-
active:
|
|
6289
|
+
active: B.value,
|
|
6284
6290
|
level: e.level
|
|
6285
6291
|
}, {
|
|
6286
|
-
default: W(() => [(D(), i(N(
|
|
6292
|
+
default: W(() => [(D(), i(N(F(e.option)), {
|
|
6287
6293
|
option: e.option,
|
|
6288
|
-
selected:
|
|
6294
|
+
selected: P(e.option.node_id),
|
|
6289
6295
|
"disable-selection": e.disableSelection,
|
|
6290
6296
|
label: e.option.label,
|
|
6291
6297
|
icon: e.settings[e.option.field]?.icon,
|
|
6292
|
-
class: y({ ...
|
|
6298
|
+
class: y({ ...I(C)(e.option) }),
|
|
6293
6299
|
style: x({
|
|
6294
|
-
paddingLeft:
|
|
6295
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6300
|
+
paddingLeft: I(w)(e.level, A.value),
|
|
6301
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: R.value }) ?? {}
|
|
6296
6302
|
}),
|
|
6297
6303
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6298
|
-
onMouseenter: n[1] ||= (t) =>
|
|
6299
|
-
onMouseleave: n[2] ||= (e) =>
|
|
6304
|
+
onMouseenter: n[1] ||= (t) => I(l)(e.option.node_id),
|
|
6305
|
+
onMouseleave: n[2] ||= (e) => I(d)(),
|
|
6300
6306
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6301
6307
|
}, {
|
|
6302
6308
|
default: W(() => [
|
|
6303
|
-
G(u(Ws, null, null, 512), [[H,
|
|
6309
|
+
G(u(Ws, null, null, 512), [[H, I(c) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6304
6310
|
j.value ? (D(), i(qs, {
|
|
6305
6311
|
key: 0,
|
|
6306
|
-
"is-last":
|
|
6312
|
+
"is-last": z.value
|
|
6307
6313
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
6308
6314
|
e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
6309
6315
|
key: 1,
|
|
6310
6316
|
option: e.option,
|
|
6311
6317
|
settings: e.settings,
|
|
6312
|
-
selected:
|
|
6318
|
+
selected: P(e.option.node_id),
|
|
6313
6319
|
params: e.settings[e.option.field]?.rendererParams
|
|
6314
6320
|
}, null, 8, [
|
|
6315
6321
|
"option",
|
|
@@ -6331,18 +6337,18 @@ var Pa = {
|
|
|
6331
6337
|
"icon",
|
|
6332
6338
|
"class",
|
|
6333
6339
|
"style"
|
|
6334
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
6335
|
-
modelValue:
|
|
6336
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
6340
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(I(ye), {
|
|
6341
|
+
modelValue: L.value,
|
|
6342
|
+
"onUpdate:modelValue": n[6] ||= (e) => L.value = e,
|
|
6337
6343
|
"parent-id": e.option.node_id,
|
|
6338
|
-
group:
|
|
6344
|
+
group: I(h)(e.settings, e.option),
|
|
6339
6345
|
"item-key": "node_id",
|
|
6340
|
-
disabled:
|
|
6341
|
-
move:
|
|
6342
|
-
class: y({ "pv-tree-drop-zone": e.isDraggable &&
|
|
6346
|
+
disabled: I(f)(e.isDraggable, e.settings, e.option),
|
|
6347
|
+
move: I(m)(e.settings),
|
|
6348
|
+
class: y({ "pv-tree-drop-zone": e.isDraggable && I(_) && L.value.length === 0 && I(g)(e.settings, e.option, I(v)) }),
|
|
6343
6349
|
onStart: k,
|
|
6344
|
-
onEnd:
|
|
6345
|
-
onAdd:
|
|
6350
|
+
onEnd: I(S),
|
|
6351
|
+
onAdd: I(S)
|
|
6346
6352
|
}, {
|
|
6347
6353
|
item: W(({ element: r, index: i }) => [u(oc, {
|
|
6348
6354
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -6350,7 +6356,7 @@ var Pa = {
|
|
|
6350
6356
|
settings: e.settings,
|
|
6351
6357
|
level: M.value,
|
|
6352
6358
|
index: i,
|
|
6353
|
-
"total-siblings":
|
|
6359
|
+
"total-siblings": L.value.length,
|
|
6354
6360
|
"parent-field": e.option.field,
|
|
6355
6361
|
"selected-options": e.selectedOptions,
|
|
6356
6362
|
"is-draggable": e.isDraggable,
|
|
@@ -6413,10 +6419,10 @@ var Pa = {
|
|
|
6413
6419
|
});
|
|
6414
6420
|
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = nc(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = Xs(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = tc(), { dragAndDropIndicatorClasses: E } = rc(), { indentPadding: O, showsConnector: A } = Js(), j = () => {
|
|
6415
6421
|
w(d(n.settings, n.option).name);
|
|
6416
|
-
},
|
|
6422
|
+
}, P = (e) => ({
|
|
6417
6423
|
paddingLeft: O(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6418
6424
|
"--border-color": "#121313"
|
|
6419
|
-
}),
|
|
6425
|
+
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), L = r(() => n.settings[n.option.field]?.checkbox ? Ks : Gs), R = r({
|
|
6420
6426
|
get: () => [...n.option.children || []],
|
|
6421
6427
|
set: (e) => {
|
|
6422
6428
|
c("update:children", {
|
|
@@ -6424,11 +6430,11 @@ var Pa = {
|
|
|
6424
6430
|
newChildren: e
|
|
6425
6431
|
});
|
|
6426
6432
|
}
|
|
6427
|
-
}),
|
|
6433
|
+
}), z = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), B = r(() => A(n.settings, n.parentField)), V = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), ee = r(() => B.value && !V.value), te = r(() => n.isParentPathOpen ?? !0 ? z.value && n.level === 0 ? l.value : !0 : !1);
|
|
6428
6434
|
return (t, n) => {
|
|
6429
6435
|
let r = M("PvTreeItem", !0);
|
|
6430
6436
|
return D(), i(Ys, {
|
|
6431
|
-
active:
|
|
6437
|
+
active: ee.value,
|
|
6432
6438
|
level: e.level
|
|
6433
6439
|
}, {
|
|
6434
6440
|
default: W(() => [e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (D(), i($r, {
|
|
@@ -6444,31 +6450,31 @@ var Pa = {
|
|
|
6444
6450
|
enableTriggerSlot: "",
|
|
6445
6451
|
enableTriggerFullWidth: "",
|
|
6446
6452
|
summaryStyles: {
|
|
6447
|
-
...
|
|
6448
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6453
|
+
...P(e.level),
|
|
6454
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: te.value }) ?? {},
|
|
6449
6455
|
"justify-content": "flex-start"
|
|
6450
6456
|
},
|
|
6451
6457
|
summaryClasses: {
|
|
6452
6458
|
"pv-tree-item": !0,
|
|
6453
|
-
...
|
|
6459
|
+
...I(E)(e.option)
|
|
6454
6460
|
},
|
|
6455
6461
|
defaultOpen: e.settings[e.option.field]?.defaultExpanded ?? !1,
|
|
6456
6462
|
"chevron-variant": "horizontal",
|
|
6457
|
-
onSummaryMouseenter: n[4] ||= (t) =>
|
|
6458
|
-
onSummaryMouseleave: n[5] ||= (e) =>
|
|
6463
|
+
onSummaryMouseenter: n[4] ||= (t) => I(v)(e.option.node_id),
|
|
6464
|
+
onSummaryMouseleave: n[5] ||= (e) => I(b)(),
|
|
6459
6465
|
onContextmenu: n[6] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6460
6466
|
}, {
|
|
6461
6467
|
trigger: W(() => [
|
|
6462
|
-
G(u(Ws, null, null, 512), [[H,
|
|
6463
|
-
|
|
6468
|
+
G(u(Ws, null, null, 512), [[H, I(_) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6469
|
+
B.value ? (D(), i(qs, {
|
|
6464
6470
|
key: 0,
|
|
6465
|
-
"is-last":
|
|
6471
|
+
"is-last": V.value
|
|
6466
6472
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
6467
6473
|
e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
6468
6474
|
key: 1,
|
|
6469
6475
|
option: e.option,
|
|
6470
6476
|
settings: e.settings,
|
|
6471
|
-
selected:
|
|
6477
|
+
selected: F(e.option.node_id),
|
|
6472
6478
|
params: e.settings[e.option.field]?.rendererParams
|
|
6473
6479
|
}, null, 8, [
|
|
6474
6480
|
"option",
|
|
@@ -6481,18 +6487,18 @@ var Pa = {
|
|
|
6481
6487
|
icon: e.settings[e.option.field]?.icon
|
|
6482
6488
|
}, null, 8, ["label", "icon"]))
|
|
6483
6489
|
]),
|
|
6484
|
-
default: W(() => [s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
6485
|
-
modelValue:
|
|
6486
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
6490
|
+
default: W(() => [s("div", { "data-parent-id": e.option.node_id }, [u(I(ye), {
|
|
6491
|
+
modelValue: R.value,
|
|
6492
|
+
"onUpdate:modelValue": n[2] ||= (e) => R.value = e,
|
|
6487
6493
|
"parent-id": e.option.node_id,
|
|
6488
|
-
group:
|
|
6494
|
+
group: I(d)(e.settings, e.option),
|
|
6489
6495
|
"item-key": "node_id",
|
|
6490
|
-
disabled:
|
|
6491
|
-
move:
|
|
6492
|
-
class: y({ "pv-tree-drop-zone": e.isDraggable &&
|
|
6496
|
+
disabled: I(f)(e.isDraggable, e.settings, e.option),
|
|
6497
|
+
move: I(m)(e.settings),
|
|
6498
|
+
class: y({ "pv-tree-drop-zone": e.isDraggable && R.value.length === 0 && I(g)(e.settings, e.option, I(C)) }),
|
|
6493
6499
|
onStart: j,
|
|
6494
|
-
onEnd:
|
|
6495
|
-
onAdd:
|
|
6500
|
+
onEnd: I(T),
|
|
6501
|
+
onAdd: I(T)
|
|
6496
6502
|
}, {
|
|
6497
6503
|
item: W(({ element: i, index: a }) => [u(r, {
|
|
6498
6504
|
"is-parent-path-open": e.isParentPathOpen && l.value,
|
|
@@ -6501,9 +6507,9 @@ var Pa = {
|
|
|
6501
6507
|
settings: e.settings,
|
|
6502
6508
|
level: e.level + 1,
|
|
6503
6509
|
index: a,
|
|
6504
|
-
"total-siblings":
|
|
6510
|
+
"total-siblings": R.value.length,
|
|
6505
6511
|
"parent-field": e.option.field,
|
|
6506
|
-
"is-draggable":
|
|
6512
|
+
"is-draggable": I(h)(e.isDraggable, e.settings, i),
|
|
6507
6513
|
"tree-open": e.treeOpen,
|
|
6508
6514
|
"disable-selection": e.disableSelection,
|
|
6509
6515
|
onHandleTreeSelect: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
@@ -6566,27 +6572,27 @@ var Pa = {
|
|
|
6566
6572
|
"is-draggable",
|
|
6567
6573
|
"disable-selection",
|
|
6568
6574
|
"is-last-root-item"
|
|
6569
|
-
])) : (D(), o("div", uc, [(D(), i(N(
|
|
6570
|
-
class: y({ ...
|
|
6575
|
+
])) : (D(), o("div", uc, [(D(), i(N(L.value), {
|
|
6576
|
+
class: y({ ...I(E)(e.option) }),
|
|
6571
6577
|
option: e.option,
|
|
6572
|
-
selected:
|
|
6578
|
+
selected: F(e.option.node_id),
|
|
6573
6579
|
"disable-selection": e.disableSelection,
|
|
6574
6580
|
label: e.option.label,
|
|
6575
6581
|
icon: e.settings[e.option.field]?.icon,
|
|
6576
6582
|
style: x({
|
|
6577
|
-
...
|
|
6578
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
6583
|
+
...P(e.level),
|
|
6584
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: te.value }) ?? {}
|
|
6579
6585
|
}),
|
|
6580
6586
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6581
|
-
onMouseenter: n[10] ||= (t) =>
|
|
6582
|
-
onMouseleave: n[11] ||= (e) =>
|
|
6587
|
+
onMouseenter: n[10] ||= (t) => I(v)(e.option.node_id),
|
|
6588
|
+
onMouseleave: n[11] ||= (e) => I(b)(),
|
|
6583
6589
|
onContextmenu: n[12] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6584
6590
|
}, {
|
|
6585
6591
|
default: W(() => [
|
|
6586
|
-
G(u(Ws, null, null, 512), [[H,
|
|
6587
|
-
|
|
6592
|
+
G(u(Ws, null, null, 512), [[H, I(_) === e.option.node_id && I(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6593
|
+
B.value ? (D(), i(qs, {
|
|
6588
6594
|
key: 0,
|
|
6589
|
-
"is-last":
|
|
6595
|
+
"is-last": V.value
|
|
6590
6596
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
6591
6597
|
e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
6592
6598
|
key: 1,
|
|
@@ -6612,18 +6618,18 @@ var Pa = {
|
|
|
6612
6618
|
"label",
|
|
6613
6619
|
"icon",
|
|
6614
6620
|
"style"
|
|
6615
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
6616
|
-
modelValue:
|
|
6617
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
6621
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(I(ye), {
|
|
6622
|
+
modelValue: R.value,
|
|
6623
|
+
"onUpdate:modelValue": n[15] ||= (e) => R.value = e,
|
|
6618
6624
|
"parent-id": e.option.node_id,
|
|
6619
|
-
group:
|
|
6625
|
+
group: I(d)(e.settings, e.option),
|
|
6620
6626
|
"item-key": "node_id",
|
|
6621
|
-
disabled:
|
|
6622
|
-
move:
|
|
6623
|
-
class: y({ "pv-tree-drop-zone":
|
|
6627
|
+
disabled: I(f)(e.isDraggable, e.settings, e.option),
|
|
6628
|
+
move: I(m)(e.settings),
|
|
6629
|
+
class: y({ "pv-tree-drop-zone": I(S) && R.value.length === 0 && I(g)(e.settings, e.option, I(C)) }),
|
|
6624
6630
|
onStart: j,
|
|
6625
|
-
onEnd:
|
|
6626
|
-
onAdd:
|
|
6631
|
+
onEnd: I(T),
|
|
6632
|
+
onAdd: I(T)
|
|
6627
6633
|
}, {
|
|
6628
6634
|
item: W(({ element: i, index: a }) => [u(r, {
|
|
6629
6635
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -6632,9 +6638,9 @@ var Pa = {
|
|
|
6632
6638
|
settings: e.settings,
|
|
6633
6639
|
level: e.level + 1,
|
|
6634
6640
|
index: a,
|
|
6635
|
-
"total-siblings":
|
|
6641
|
+
"total-siblings": R.value.length,
|
|
6636
6642
|
"parent-field": e.option.field,
|
|
6637
|
-
"is-draggable":
|
|
6643
|
+
"is-draggable": I(h)(e.isDraggable, e.settings, i),
|
|
6638
6644
|
"disable-selection": e.disableSelection,
|
|
6639
6645
|
onHandleTreeSelect: n[13] ||= (e) => t.$emit("handle-tree-select", e),
|
|
6640
6646
|
"onUpdate:children": n[14] ||= (e) => t.$emit("update:children", e)
|
|
@@ -6739,7 +6745,7 @@ var Pa = {
|
|
|
6739
6745
|
],
|
|
6740
6746
|
setup(e) {
|
|
6741
6747
|
m(Zs, null) || ec();
|
|
6742
|
-
let n = e, i =
|
|
6748
|
+
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } = pc(a), d = (e, t) => {
|
|
6743
6749
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
6744
6750
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
6745
6751
|
...n.defaultSettings,
|
|
@@ -6755,7 +6761,7 @@ var Pa = {
|
|
|
6755
6761
|
"is-draggable": e.isDraggable,
|
|
6756
6762
|
"disable-selection": e.disableSelection,
|
|
6757
6763
|
onHandleTreeSelect: ({ option: e, event: t }) => d(e, t),
|
|
6758
|
-
"onUpdate:children":
|
|
6764
|
+
"onUpdate:children": I(l)
|
|
6759
6765
|
}, null, 8, [
|
|
6760
6766
|
"is-last-root-item",
|
|
6761
6767
|
"tree-open",
|
|
@@ -6800,7 +6806,7 @@ var Pa = {
|
|
|
6800
6806
|
return (r, c) => (D(), o("div", gc, [e.showLabel || e.secondaryLabel ? (D(), o("div", _c, [e.showLabel ? (D(), o("p", {
|
|
6801
6807
|
key: 0,
|
|
6802
6808
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
6803
|
-
},
|
|
6809
|
+
}, F(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", vc, F(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
6804
6810
|
class: "pv-progress-bar",
|
|
6805
6811
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
6806
6812
|
style: x({ "--progress": `${n.value}%` })
|
|
@@ -6946,7 +6952,7 @@ var Pa = {
|
|
|
6946
6952
|
}),
|
|
6947
6953
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
6948
6954
|
setup(e) {
|
|
6949
|
-
let t = e, n =
|
|
6955
|
+
let t = e, n = z(e, "modelValue"), c = z(e, "rangeValue"), l = L(), u = R(), d = `${u}-max`, f = `${u}-min`, p = k(""), m = k(""), h = k(null), g = k(null), v = k(!1), b = k(null), C = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), E = (e) => T(e) ? e : null, O = (e) => {
|
|
6950
6956
|
let t = e.trim();
|
|
6951
6957
|
if (t === "") return null;
|
|
6952
6958
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
@@ -6961,7 +6967,7 @@ var Pa = {
|
|
|
6961
6967
|
minimumFractionDigits: 0
|
|
6962
6968
|
}).format(e);
|
|
6963
6969
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
6964
|
-
},
|
|
6970
|
+
}, P = r(() => E(t.step)), B = r(() => P.value !== null && P.value > 0 ? P.value : 0), V = r(() => B.value > 0 ? String(B.value) : "any"), ee = r(() => P.value === null ? "1" : P.value > 0 ? String(P.value) : "any"), te = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), ne = r(() => {
|
|
6965
6971
|
let e = E(t.min) ?? Pc, n = E(t.max) ?? Fc;
|
|
6966
6972
|
return e > n ? {
|
|
6967
6973
|
max: e,
|
|
@@ -6973,11 +6979,11 @@ var Pa = {
|
|
|
6973
6979
|
max: n,
|
|
6974
6980
|
min: e
|
|
6975
6981
|
};
|
|
6976
|
-
}), H = r(() => E(n.value) ??
|
|
6977
|
-
let { max: e, min: t } =
|
|
6982
|
+
}), H = r(() => E(n.value) ?? ne.value.min), ie = r(() => {
|
|
6983
|
+
let { max: e, min: t } = ne.value, n = e - t, r = n === 0 ? 0 : (H.value - t) / n * 100;
|
|
6978
6984
|
return Math.max(0, Math.min(100, r));
|
|
6979
6985
|
}), W = r(() => ({
|
|
6980
|
-
"--range-track-color":
|
|
6986
|
+
"--range-track-color": te.value,
|
|
6981
6987
|
"--value": `${ie.value}%`
|
|
6982
6988
|
})), K = r(() => ({ left: `${ie.value}%` })), oe = (e) => {
|
|
6983
6989
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -6989,13 +6995,13 @@ var Pa = {
|
|
|
6989
6995
|
return t.split(".")[1]?.length ?? 0;
|
|
6990
6996
|
}, q = r(() => {
|
|
6991
6997
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Pc, r ?? Pc, i ?? Pc), o = n ?? Math.max(Fc, r ?? Fc, i ?? Fc);
|
|
6992
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
6998
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (B.value > 0 ? B.value : 1)), {
|
|
6993
6999
|
max: o,
|
|
6994
7000
|
min: a
|
|
6995
7001
|
};
|
|
6996
7002
|
}), se = (e) => Math.max(q.value.min, Math.min(q.value.max, e)), ce = r(() => {
|
|
6997
7003
|
let e = Math.max(oe(q.value.min), oe(q.value.max));
|
|
6998
|
-
return
|
|
7004
|
+
return B.value <= 0 ? Math.max(6, e) : Math.max(e, oe(B.value));
|
|
6999
7005
|
}), le = (e) => {
|
|
7000
7006
|
let t = Math.min(20, ce.value);
|
|
7001
7007
|
return se(Number(e.toFixed(t)));
|
|
@@ -7003,13 +7009,13 @@ var Pa = {
|
|
|
7003
7009
|
if (t.allowMinMaxEqual) return 0;
|
|
7004
7010
|
let e = q.value.max - q.value.min;
|
|
7005
7011
|
if (e <= 0) return 0;
|
|
7006
|
-
let n = Math.max(e / 1e6, 10 ** -ce.value), r =
|
|
7012
|
+
let n = Math.max(e / 1e6, 10 ** -ce.value), r = B.value > 0 ? B.value : n;
|
|
7007
7013
|
return Math.min(r, e);
|
|
7008
7014
|
}), J = (e, t = "nearest") => {
|
|
7009
7015
|
let n = se(e);
|
|
7010
|
-
if (
|
|
7011
|
-
let { min: r } = q.value, i = (n - r) /
|
|
7012
|
-
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) *
|
|
7016
|
+
if (B.value <= 0) return le(n);
|
|
7017
|
+
let { min: r } = q.value, i = (n - r) / B.value;
|
|
7018
|
+
return le(se((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * B.value + r));
|
|
7013
7019
|
}, Y = (e, t) => {
|
|
7014
7020
|
let n = Math.max(q.value.min, t - ue.value);
|
|
7015
7021
|
return J(Math.min(e, n), "down");
|
|
@@ -7026,7 +7032,7 @@ var Pa = {
|
|
|
7026
7032
|
let { max: t, min: n } = q.value;
|
|
7027
7033
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
7028
7034
|
}, pe = r(() => fe(X.value.min)), me = r(() => fe(X.value.max)), he = r(() => ({
|
|
7029
|
-
"--range-track-color":
|
|
7035
|
+
"--range-track-color": te.value,
|
|
7030
7036
|
"--value-max": `${me.value}%`,
|
|
7031
7037
|
"--value-min": `${pe.value}%`
|
|
7032
7038
|
})), ge = r(() => ({ left: `${pe.value}%` })), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), ye = () => E(t.min) !== null || q.value.min === Pc, be = () => E(t.max) !== null || q.value.max === Fc, xe = (e, t) => {
|
|
@@ -7106,25 +7112,25 @@ var Pa = {
|
|
|
7106
7112
|
key: 0,
|
|
7107
7113
|
class: "pv-range-tooltip",
|
|
7108
7114
|
style: x(K.value)
|
|
7109
|
-
},
|
|
7115
|
+
}, F(N(H.value)), 5)) : a("", !0), G(s("input", _({ id: I(u) }, I(l), {
|
|
7110
7116
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
7111
7117
|
"aria-label": e.ariaLabel,
|
|
7112
7118
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
7113
7119
|
disabled: e.disabled,
|
|
7114
|
-
max:
|
|
7115
|
-
min:
|
|
7116
|
-
step:
|
|
7120
|
+
max: ne.value.max,
|
|
7121
|
+
min: ne.value.min,
|
|
7122
|
+
step: ee.value,
|
|
7117
7123
|
style: W.value,
|
|
7118
7124
|
type: "range",
|
|
7119
7125
|
onChange: Oe,
|
|
7120
7126
|
onPointerdown: ke,
|
|
7121
7127
|
onPointerup: Oe
|
|
7122
7128
|
}), null, 16, wc), [[
|
|
7123
|
-
|
|
7129
|
+
re,
|
|
7124
7130
|
n.value,
|
|
7125
7131
|
void 0,
|
|
7126
7132
|
{ number: !0 }
|
|
7127
|
-
]])])) : (D(), o("div", _({ key: 1 },
|
|
7133
|
+
]])])) : (D(), o("div", _({ key: 1 }, I(l), {
|
|
7128
7134
|
class: "pv-flex-vertical",
|
|
7129
7135
|
"data-testid": "pv-range-dual",
|
|
7130
7136
|
role: "group",
|
|
@@ -7134,7 +7140,7 @@ var Pa = {
|
|
|
7134
7140
|
"--flex-gap": "0"
|
|
7135
7141
|
}
|
|
7136
7142
|
}), [
|
|
7137
|
-
e.showBoundLabels ? (D(), o("div", Ec, [s("span", null,
|
|
7143
|
+
e.showBoundLabels ? (D(), o("div", Ec, [s("span", null, F(N(q.value.min)), 1), s("span", null, F(N(q.value.max)), 1)])) : a("", !0),
|
|
7138
7144
|
s("div", {
|
|
7139
7145
|
ref_key: "sliderRef",
|
|
7140
7146
|
ref: b,
|
|
@@ -7147,12 +7153,12 @@ var Pa = {
|
|
|
7147
7153
|
key: 0,
|
|
7148
7154
|
class: "pv-range-dual-tooltip",
|
|
7149
7155
|
style: x(ge.value)
|
|
7150
|
-
},
|
|
7156
|
+
}, F(N(X.value.min)), 5)) : a("", !0),
|
|
7151
7157
|
e.showValueTooltips && h.value === "max" ? (D(), o("span", {
|
|
7152
7158
|
key: 1,
|
|
7153
7159
|
class: "pv-range-dual-tooltip",
|
|
7154
7160
|
style: x(_e.value)
|
|
7155
|
-
},
|
|
7161
|
+
}, F(N(X.value.max)), 5)) : a("", !0),
|
|
7156
7162
|
s("input", {
|
|
7157
7163
|
class: "pv-range pv-range-dual-native pv-range-dual-native-min",
|
|
7158
7164
|
type: "range",
|
|
@@ -7160,7 +7166,7 @@ var Pa = {
|
|
|
7160
7166
|
disabled: e.disabled,
|
|
7161
7167
|
max: q.value.max,
|
|
7162
7168
|
min: q.value.min,
|
|
7163
|
-
step:
|
|
7169
|
+
step: V.value,
|
|
7164
7170
|
value: X.value.min,
|
|
7165
7171
|
onChange: we,
|
|
7166
7172
|
onInput: Ae,
|
|
@@ -7174,7 +7180,7 @@ var Pa = {
|
|
|
7174
7180
|
disabled: e.disabled,
|
|
7175
7181
|
max: q.value.max,
|
|
7176
7182
|
min: q.value.min,
|
|
7177
|
-
step:
|
|
7183
|
+
step: V.value,
|
|
7178
7184
|
value: X.value.max,
|
|
7179
7185
|
onChange: we,
|
|
7180
7186
|
onInput: je,
|
|
@@ -7193,14 +7199,14 @@ var Pa = {
|
|
|
7193
7199
|
"max-width": "75px",
|
|
7194
7200
|
"min-width": "0"
|
|
7195
7201
|
}
|
|
7196
|
-
}, [s("span", Ac,
|
|
7202
|
+
}, [s("span", Ac, F(e.minLabel), 1), s("input", {
|
|
7197
7203
|
id: f,
|
|
7198
7204
|
class: "pv-input-text",
|
|
7199
7205
|
disabled: e.disabled,
|
|
7200
7206
|
style: { width: "100%" },
|
|
7201
7207
|
inputmode: "decimal",
|
|
7202
7208
|
placeholder: "Min",
|
|
7203
|
-
step:
|
|
7209
|
+
step: V.value,
|
|
7204
7210
|
type: "text",
|
|
7205
7211
|
value: m.value,
|
|
7206
7212
|
onBlur: c[3] ||= (e) => Le("min"),
|
|
@@ -7218,14 +7224,14 @@ var Pa = {
|
|
|
7218
7224
|
"max-width": "75px",
|
|
7219
7225
|
"min-width": "0"
|
|
7220
7226
|
}
|
|
7221
|
-
}, [s("span", Mc,
|
|
7227
|
+
}, [s("span", Mc, F(e.maxLabel), 1), s("input", {
|
|
7222
7228
|
id: d,
|
|
7223
7229
|
class: "pv-input-text",
|
|
7224
7230
|
disabled: e.disabled,
|
|
7225
7231
|
style: { width: "100%" },
|
|
7226
7232
|
inputmode: "decimal",
|
|
7227
7233
|
placeholder: "Max",
|
|
7228
|
-
step:
|
|
7234
|
+
step: V.value,
|
|
7229
7235
|
type: "text",
|
|
7230
7236
|
value: p.value,
|
|
7231
7237
|
onBlur: c[6] ||= (e) => Le("max"),
|
|
@@ -7306,7 +7312,7 @@ var Pa = {
|
|
|
7306
7312
|
},
|
|
7307
7313
|
emits: ["focus-value", "toggle-value"],
|
|
7308
7314
|
setup(e, { emit: t }) {
|
|
7309
|
-
let n = e, c = t, u =
|
|
7315
|
+
let n = e, c = t, u = B(), d = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), f = r(() => !n.renderer && (d.value || !!u["result-count"])), p = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), m = r(() => ({
|
|
7310
7316
|
disabled: n.disabled,
|
|
7311
7317
|
highlightSearchText: !0,
|
|
7312
7318
|
id: n.value,
|
|
@@ -7355,11 +7361,11 @@ var Pa = {
|
|
|
7355
7361
|
"modelValue"
|
|
7356
7362
|
])),
|
|
7357
7363
|
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", Rc, [
|
|
7358
|
-
s("span", zc,
|
|
7359
|
-
e.subduedText ? (D(), o("span", Bc,
|
|
7360
|
-
e.subText ? (D(), o("span", Vc,
|
|
7364
|
+
s("span", zc, F(e.label), 1),
|
|
7365
|
+
e.subduedText ? (D(), o("span", Bc, F(e.subduedText), 1)) : a("", !0),
|
|
7366
|
+
e.subText ? (D(), o("span", Vc, F(e.subText), 1)) : a("", !0)
|
|
7361
7367
|
])),
|
|
7362
|
-
f.value ? (D(), o("span", Hc, [j(t.$slots, "result-count", {}, () => [l("(" +
|
|
7368
|
+
f.value ? (D(), o("span", Hc, [j(t.$slots, "result-count", {}, () => [l("(" + F(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7363
7369
|
e.showFocusAction ? (D(), i($, {
|
|
7364
7370
|
key: 5,
|
|
7365
7371
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7818,7 +7824,22 @@ var Pa = {
|
|
|
7818
7824
|
"search-change"
|
|
7819
7825
|
],
|
|
7820
7826
|
setup(e, { emit: n }) {
|
|
7821
|
-
let c = e, d = n, f = k({}), p =
|
|
7827
|
+
let c = e, d = n, f = k({}), p = R(), m = k(c.filter.searchQuery ?? ""), h = k(uu), g = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), v = r(() => c.filter.valueLabels?.false ?? "No"), y = r(() => c.filter.options ?? []), S = r(() => [...c.filter.knownOptions ?? [], ...y.value]), C = r(() => c.filter.type ?? "value"), w = r(() => C.value === "value"), T = r(() => w.value && c.filter.isAggregate === !0), E = r(() => c.filter.aggregateSelectionState ?? []), O = r(() => m.value.trim().toLowerCase()), j = r(() => c.filter.selectedValues ?? []), M = r(() => new Set(j.value)), P = r(() => c.filter.valueLabels?.true ?? "Yes"), L = r(() => c.filter.filterOptionsSortDescription || "Suggested"), z = r(() => {
|
|
7828
|
+
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
7829
|
+
return t && !n ? [{
|
|
7830
|
+
label: P.value,
|
|
7831
|
+
value: !0
|
|
7832
|
+
}] : n && !t ? [{
|
|
7833
|
+
label: v.value,
|
|
7834
|
+
value: !1
|
|
7835
|
+
}] : [{
|
|
7836
|
+
label: P.value,
|
|
7837
|
+
value: !0
|
|
7838
|
+
}, {
|
|
7839
|
+
label: v.value,
|
|
7840
|
+
value: !1
|
|
7841
|
+
}];
|
|
7842
|
+
}), B = (e) => {
|
|
7822
7843
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
7823
7844
|
return [
|
|
7824
7845
|
e.value,
|
|
@@ -7828,84 +7849,91 @@ var Pa = {
|
|
|
7828
7849
|
e.matchedValue,
|
|
7829
7850
|
e.matchedField
|
|
7830
7851
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
7831
|
-
},
|
|
7852
|
+
}, V = r(() => C.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : C.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : C.value === "exists" ? c.filter.existsValue ? 1 : void 0 : T.value ? Ul(E.value) || void 0 : j.value.length || void 0), ee = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), te = (e, t = 0) => e.flatMap((e) => [
|
|
7832
7853
|
{
|
|
7833
7854
|
depth: t,
|
|
7834
7855
|
kind: "option",
|
|
7835
7856
|
option: e
|
|
7836
7857
|
},
|
|
7837
7858
|
...e.children?.length ? te(e.children, t + 1) : [],
|
|
7838
|
-
...
|
|
7859
|
+
...ee(e) ? [{
|
|
7839
7860
|
depth: t + 1,
|
|
7840
7861
|
kind: "child-load-more",
|
|
7841
7862
|
parent: e
|
|
7842
7863
|
}] : []
|
|
7843
7864
|
]), ne = r(() => {
|
|
7844
7865
|
let e = te(y.value), t = O.value;
|
|
7845
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
7866
|
+
return t ? e.filter((e) => e.kind === "option" && B(e.option).includes(t)) : e;
|
|
7846
7867
|
}), re = r(() => T.value || c.filter.singleSelect ? [] : j.value.map((e) => f.value[e] ?? {
|
|
7847
7868
|
label: e,
|
|
7848
7869
|
value: e
|
|
7849
|
-
})),
|
|
7870
|
+
})), H = k([]), G = r(() => new Set(H.value)), ae = r(() => H.value.map((e) => f.value[e] ?? {
|
|
7871
|
+
label: e,
|
|
7872
|
+
value: e
|
|
7873
|
+
})), K = () => {
|
|
7874
|
+
H.value = T.value || c.filter.singleSelect ? [] : [...j.value];
|
|
7875
|
+
};
|
|
7876
|
+
K();
|
|
7877
|
+
let oe = r(() => T.value || c.filter.singleSelect ? ne.value : ne.value.filter((e) => e.kind === "child-load-more" || !G.value.has(e.option.value))), q = r(() => oe.value.length > h.value), se = r(() => q.value || c.filter.hasMore), ce = r(() => oe.value.slice(0, h.value)), le = r(() => T.value ? Bl({
|
|
7850
7878
|
options: S.value,
|
|
7851
7879
|
state: E.value
|
|
7852
|
-
}) : /* @__PURE__ */ new Map()),
|
|
7880
|
+
}) : /* @__PURE__ */ new Map()), ue = (e) => $c(e, c.filter.colDef), J = (e) => el(e), Y = (e) => T.value ? le.value.get(e.value) ?? {
|
|
7853
7881
|
indeterminate: !1,
|
|
7854
7882
|
selected: !1
|
|
7855
7883
|
} : {
|
|
7856
7884
|
indeterminate: !1,
|
|
7857
7885
|
selected: M.value.has(e.value)
|
|
7858
|
-
},
|
|
7859
|
-
let t =
|
|
7886
|
+
}, X = (e) => Y(e).selected, fe = (e) => Y(e).indeterminate, pe = (e) => sl(e) ?? e.value, me = (e) => cl(e, c.filter.key), he = (e) => {
|
|
7887
|
+
let t = me(e), n = pe(e);
|
|
7860
7888
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
7861
|
-
},
|
|
7889
|
+
}, ge = (e) => ({
|
|
7862
7890
|
...e.menuOption ?? {},
|
|
7863
|
-
children: e.children?.map(
|
|
7891
|
+
children: e.children?.map(ge),
|
|
7864
7892
|
context: e,
|
|
7865
7893
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
7866
7894
|
id: e.value,
|
|
7867
|
-
searchText:
|
|
7868
|
-
secondaryText:
|
|
7895
|
+
searchText: B(e),
|
|
7896
|
+
secondaryText: J(e),
|
|
7869
7897
|
subText: e.subText,
|
|
7870
7898
|
subduedText: e.subduedText,
|
|
7871
|
-
text:
|
|
7899
|
+
text: ue(e),
|
|
7872
7900
|
totalChildCount: e.totalChildCount
|
|
7873
|
-
}),
|
|
7901
|
+
}), _e = r(() => y.value.map(ge)), ve = r(() => re.value.map(ge)), ye = r(() => ({
|
|
7874
7902
|
colDef: c.filter.colDef,
|
|
7875
7903
|
disabled: c.filter.disabled,
|
|
7876
7904
|
filter: c.filter,
|
|
7877
7905
|
isLoading: c.filter.isLoading,
|
|
7878
7906
|
isOpen: c.filter.isOpen,
|
|
7879
|
-
options:
|
|
7907
|
+
options: _e.value,
|
|
7880
7908
|
searchInput: m.value,
|
|
7881
|
-
selectedItems:
|
|
7909
|
+
selectedItems: ve.value,
|
|
7882
7910
|
slotContext: {
|
|
7883
7911
|
colDef: c.filter.colDef,
|
|
7884
7912
|
rowsLoading: c.filter.isLoading
|
|
7885
7913
|
}
|
|
7886
|
-
})),
|
|
7887
|
-
|
|
7888
|
-
},
|
|
7914
|
+
})), be = () => {
|
|
7915
|
+
q.value ? h.value += uu : c.filter.hasMore && d("load-more", m.value.trim());
|
|
7916
|
+
}, xe = (e) => {
|
|
7889
7917
|
d("load-more", m.value.trim(), e.value);
|
|
7890
|
-
},
|
|
7918
|
+
}, Se = (e) => {
|
|
7891
7919
|
let t = e.target;
|
|
7892
7920
|
d("open-change", t.open);
|
|
7893
|
-
},
|
|
7921
|
+
}, Ce = (e) => {
|
|
7894
7922
|
d("filter-change", {
|
|
7895
7923
|
type: "boolean",
|
|
7896
7924
|
value: e
|
|
7897
7925
|
});
|
|
7898
|
-
},
|
|
7926
|
+
}, we = (e) => {
|
|
7899
7927
|
d("filter-change", {
|
|
7900
7928
|
type: "exists",
|
|
7901
7929
|
value: e === !0
|
|
7902
7930
|
});
|
|
7903
|
-
},
|
|
7931
|
+
}, Te = (e) => {
|
|
7904
7932
|
d("filter-change", {
|
|
7905
7933
|
type: "range",
|
|
7906
7934
|
value: e
|
|
7907
7935
|
});
|
|
7908
|
-
},
|
|
7936
|
+
}, Ee = (e, t) => {
|
|
7909
7937
|
if (T.value) {
|
|
7910
7938
|
d("filter-change", {
|
|
7911
7939
|
type: "aggregate-selection",
|
|
@@ -7920,33 +7948,37 @@ var Pa = {
|
|
|
7920
7948
|
}
|
|
7921
7949
|
d("filter-change", {
|
|
7922
7950
|
checked: t,
|
|
7923
|
-
field:
|
|
7951
|
+
field: me(e),
|
|
7924
7952
|
type: "value",
|
|
7925
|
-
value:
|
|
7953
|
+
value: pe(e)
|
|
7926
7954
|
});
|
|
7927
|
-
},
|
|
7928
|
-
d("focus-change",
|
|
7929
|
-
},
|
|
7955
|
+
}, De = (e) => {
|
|
7956
|
+
d("focus-change", me(e), pe(e), e);
|
|
7957
|
+
}, Oe = (e, t) => {
|
|
7930
7958
|
d("filter-change", {
|
|
7931
7959
|
field: e,
|
|
7932
7960
|
type: "boolean",
|
|
7933
7961
|
value: t ? null : !0
|
|
7934
7962
|
});
|
|
7935
|
-
},
|
|
7963
|
+
}, ke = () => {
|
|
7936
7964
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
7937
7965
|
};
|
|
7938
7966
|
U([m, () => c.filter.key], () => {
|
|
7939
7967
|
h.value = uu;
|
|
7940
7968
|
});
|
|
7941
|
-
let
|
|
7969
|
+
let Ae = () => {
|
|
7942
7970
|
let e = ll(S.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
7943
7971
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
7944
7972
|
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - du)));
|
|
7945
7973
|
};
|
|
7946
7974
|
return U(S, () => {
|
|
7947
|
-
c.filter.isOpen &&
|
|
7975
|
+
c.filter.isOpen && Ae();
|
|
7948
7976
|
}, { immediate: !0 }), U(() => c.filter.isOpen, (e) => {
|
|
7949
|
-
e ?
|
|
7977
|
+
e ? (Ae(), K()) : f.value = {};
|
|
7978
|
+
}), ie(() => {
|
|
7979
|
+
if (!c.filter.isOpen || T.value || c.filter.singleSelect) return;
|
|
7980
|
+
let e = new Set(ce.value.flatMap((e) => e.kind === "option" ? [e.option.value] : [])), t = j.value.filter((t) => !G.value.has(t) && !e.has(t));
|
|
7981
|
+
t.length && (H.value = [...H.value, ...t]);
|
|
7950
7982
|
}), U(() => c.filter.searchQuery, (e) => {
|
|
7951
7983
|
let t = e ?? "";
|
|
7952
7984
|
t !== m.value && (m.value = t);
|
|
@@ -7961,17 +7993,17 @@ var Pa = {
|
|
|
7961
7993
|
class: "pv-accordion",
|
|
7962
7994
|
"data-testid": "pv-filter-panel-accordion",
|
|
7963
7995
|
open: e.filter.isOpen,
|
|
7964
|
-
onToggle:
|
|
7996
|
+
onToggle: Se
|
|
7965
7997
|
}, [s("summary", Gl, [
|
|
7966
7998
|
u(Z, {
|
|
7967
7999
|
"aria-hidden": "true",
|
|
7968
8000
|
class: "pv-text-subdued",
|
|
7969
8001
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
7970
8002
|
}, null, 8, ["name"]),
|
|
7971
|
-
s("span", null,
|
|
7972
|
-
|
|
8003
|
+
s("span", null, F(e.filter.label), 1),
|
|
8004
|
+
V.value ? (D(), i(Be, {
|
|
7973
8005
|
key: 0,
|
|
7974
|
-
value:
|
|
8006
|
+
value: V.value,
|
|
7975
8007
|
size: "sm",
|
|
7976
8008
|
variant: "secondary"
|
|
7977
8009
|
}, null, 8, ["value"])) : a("", !0)
|
|
@@ -7983,7 +8015,7 @@ var Pa = {
|
|
|
7983
8015
|
label: t.label,
|
|
7984
8016
|
size: "md",
|
|
7985
8017
|
variant: t.isActive ? "primary" : "secondary",
|
|
7986
|
-
onClick: (e) =>
|
|
8018
|
+
onClick: (e) => Oe(t.field, t.isActive)
|
|
7987
8019
|
}, null, 8, [
|
|
7988
8020
|
"disabled",
|
|
7989
8021
|
"label",
|
|
@@ -7996,9 +8028,9 @@ var Pa = {
|
|
|
7996
8028
|
leftIcon: "sliders-horizontal",
|
|
7997
8029
|
size: "md",
|
|
7998
8030
|
variant: "ghost",
|
|
7999
|
-
onClick:
|
|
8031
|
+
onClick: ke
|
|
8000
8032
|
}, null, 8, ["disabled"])])) : a("", !0),
|
|
8001
|
-
e.filter.filterHeaderRenderer ? (D(), i(N(e.filter.filterHeaderRenderer), b(_({ key: 2 },
|
|
8033
|
+
e.filter.filterHeaderRenderer ? (D(), i(N(e.filter.filterHeaderRenderer), b(_({ key: 2 }, ye.value)), null, 16)) : a("", !0)
|
|
8002
8034
|
])) : a("", !0),
|
|
8003
8035
|
e.filter.hideSearch ? a("", !0) : (D(), i(ii, {
|
|
8004
8036
|
key: 1,
|
|
@@ -8012,25 +8044,25 @@ var Pa = {
|
|
|
8012
8044
|
"disabled",
|
|
8013
8045
|
"placeholder"
|
|
8014
8046
|
])),
|
|
8015
|
-
|
|
8047
|
+
ae.value.length ? (D(), o("div", Xl, [(D(!0), o(t, null, A(ae.value, (t) => (D(), i(Uc, {
|
|
8016
8048
|
key: t.value,
|
|
8017
8049
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8018
8050
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
8019
8051
|
"focus-text": e.filter.focusText,
|
|
8020
|
-
"is-focused":
|
|
8021
|
-
indeterminate:
|
|
8022
|
-
label:
|
|
8023
|
-
name:
|
|
8052
|
+
"is-focused": he(t),
|
|
8053
|
+
indeterminate: fe(t),
|
|
8054
|
+
label: ue(t),
|
|
8055
|
+
name: I(p),
|
|
8024
8056
|
"query-text": m.value,
|
|
8025
8057
|
renderer: e.filter.filterOptionsRenderer,
|
|
8026
|
-
"result-count":
|
|
8027
|
-
selected:
|
|
8058
|
+
"result-count": J(t),
|
|
8059
|
+
selected: X(t),
|
|
8028
8060
|
"show-focus-action": e.filter.isFocusable,
|
|
8029
8061
|
"sub-text": t.subText,
|
|
8030
8062
|
"subdued-text": t.subduedText,
|
|
8031
8063
|
value: t.value,
|
|
8032
|
-
onFocusValue: () =>
|
|
8033
|
-
onToggleValue: (e, n) =>
|
|
8064
|
+
onFocusValue: () => De(t),
|
|
8065
|
+
onToggleValue: (e, n) => Ee(t, n)
|
|
8034
8066
|
}, null, 8, [
|
|
8035
8067
|
"control",
|
|
8036
8068
|
"disabled",
|
|
@@ -8042,6 +8074,7 @@ var Pa = {
|
|
|
8042
8074
|
"query-text",
|
|
8043
8075
|
"renderer",
|
|
8044
8076
|
"result-count",
|
|
8077
|
+
"selected",
|
|
8045
8078
|
"show-focus-action",
|
|
8046
8079
|
"sub-text",
|
|
8047
8080
|
"subdued-text",
|
|
@@ -8049,10 +8082,10 @@ var Pa = {
|
|
|
8049
8082
|
"onFocusValue",
|
|
8050
8083
|
"onToggleValue"
|
|
8051
8084
|
]))), 128))])) : a("", !0),
|
|
8052
|
-
e.filter.isLoading ? (D(), o("div", Zl, [u(je, { size: "sm" }), e.filter.loadingText ? (D(), o("span", Ql,
|
|
8053
|
-
!y.value.length && !
|
|
8054
|
-
|
|
8055
|
-
|
|
8085
|
+
e.filter.isLoading ? (D(), o("div", Zl, [u(je, { size: "sm" }), e.filter.loadingText ? (D(), o("span", Ql, F(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8086
|
+
!y.value.length && !ae.value.length && !se.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, ye.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", $l, "No values available."))], 64)) : !ne.value.length && !ae.value.length && !se.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, ye.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", eu, "No matching values."))], 64)) : a("", !0),
|
|
8087
|
+
oe.value.length || se.value ? (D(), o("div", tu, [
|
|
8088
|
+
oe.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", nu, [e.filter.filterOptionsSortTooltip ? (D(), i($n, {
|
|
8056
8089
|
key: 0,
|
|
8057
8090
|
variant: "dark",
|
|
8058
8091
|
disableInteractive: !0,
|
|
@@ -8061,30 +8094,30 @@ var Pa = {
|
|
|
8061
8094
|
"use-teleport": !0,
|
|
8062
8095
|
style: { "--max-width": "200px" }
|
|
8063
8096
|
}, {
|
|
8064
|
-
trigger: W(() => [s("p", ru,
|
|
8065
|
-
content: W(() => [l(
|
|
8097
|
+
trigger: W(() => [s("p", ru, F(L.value), 1)]),
|
|
8098
|
+
content: W(() => [l(F(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8066
8099
|
_: 1
|
|
8067
|
-
})) : (D(), o("p", iu,
|
|
8068
|
-
(D(!0), o(t, null, A(
|
|
8100
|
+
})) : (D(), o("p", iu, F(L.value), 1))])) : a("", !0),
|
|
8101
|
+
(D(!0), o(t, null, A(ce.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(Uc, {
|
|
8069
8102
|
key: 0,
|
|
8070
8103
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8071
8104
|
depth: n.depth,
|
|
8072
8105
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
8073
8106
|
"focus-text": e.filter.focusText,
|
|
8074
|
-
"is-focused":
|
|
8075
|
-
indeterminate:
|
|
8076
|
-
label:
|
|
8077
|
-
name:
|
|
8107
|
+
"is-focused": he(n.option),
|
|
8108
|
+
indeterminate: fe(n.option),
|
|
8109
|
+
label: ue(n.option),
|
|
8110
|
+
name: I(p),
|
|
8078
8111
|
"query-text": m.value,
|
|
8079
8112
|
renderer: e.filter.filterOptionsRenderer,
|
|
8080
|
-
"result-count":
|
|
8081
|
-
selected:
|
|
8113
|
+
"result-count": J(n.option),
|
|
8114
|
+
selected: X(n.option),
|
|
8082
8115
|
"show-focus-action": e.filter.isFocusable,
|
|
8083
8116
|
"sub-text": n.option.subText,
|
|
8084
8117
|
"subdued-text": n.option.subduedText,
|
|
8085
8118
|
value: n.option.value,
|
|
8086
|
-
onFocusValue: () =>
|
|
8087
|
-
onToggleValue: (e, t) =>
|
|
8119
|
+
onFocusValue: () => De(n.option),
|
|
8120
|
+
onToggleValue: (e, t) => Ee(n.option, t)
|
|
8088
8121
|
}, null, 8, [
|
|
8089
8122
|
"control",
|
|
8090
8123
|
"depth",
|
|
@@ -8114,23 +8147,23 @@ var Pa = {
|
|
|
8114
8147
|
width: "fit-content"
|
|
8115
8148
|
}),
|
|
8116
8149
|
variant: "ghost",
|
|
8117
|
-
onClick: (e) =>
|
|
8150
|
+
onClick: (e) => xe(n.parent)
|
|
8118
8151
|
}, null, 8, [
|
|
8119
8152
|
"disabled",
|
|
8120
8153
|
"style",
|
|
8121
8154
|
"onClick"
|
|
8122
8155
|
]))], 64))), 128)),
|
|
8123
|
-
|
|
8156
|
+
se.value ? (D(), i($, {
|
|
8124
8157
|
key: 1,
|
|
8125
8158
|
class: "pv-text-brand",
|
|
8126
8159
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
8127
8160
|
label: "See more",
|
|
8128
8161
|
style: { width: "fit-content" },
|
|
8129
8162
|
variant: "ghost",
|
|
8130
|
-
onClick:
|
|
8163
|
+
onClick: be
|
|
8131
8164
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
8132
8165
|
])) : a("", !0),
|
|
8133
|
-
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 },
|
|
8166
|
+
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, ye.value)), null, 16)) : a("", !0)
|
|
8134
8167
|
], 64))
|
|
8135
8168
|
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(Ic, {
|
|
8136
8169
|
key: 1,
|
|
@@ -8143,7 +8176,7 @@ var Pa = {
|
|
|
8143
8176
|
min: e.filter.rangeMin,
|
|
8144
8177
|
step: e.filter.rangeStep,
|
|
8145
8178
|
"value-decimals": e.filter.valueDecimals,
|
|
8146
|
-
"onUpdate:rangeValue":
|
|
8179
|
+
"onUpdate:rangeValue": Te
|
|
8147
8180
|
}, null, 8, [
|
|
8148
8181
|
"rangeValue",
|
|
8149
8182
|
"data-type",
|
|
@@ -8153,38 +8186,31 @@ var Pa = {
|
|
|
8153
8186
|
"min",
|
|
8154
8187
|
"step",
|
|
8155
8188
|
"value-decimals"
|
|
8156
|
-
])) : C.value === "range" ? (D(), o("p", au, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (D(), o("div", ou, [s("div", su, [
|
|
8157
|
-
|
|
8158
|
-
label: ee.value,
|
|
8159
|
-
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
8160
|
-
onClick: r[1] ||= (t) => _e(e.filter.booleanValue === !0 ? null : !0)
|
|
8161
|
-
}, null, 8, [
|
|
8162
|
-
"disabled",
|
|
8163
|
-
"label",
|
|
8164
|
-
"variant"
|
|
8165
|
-
]), u($, {
|
|
8189
|
+
])) : C.value === "range" ? (D(), o("p", au, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (D(), o("div", ou, [s("div", su, [(D(!0), o(t, null, A(z.value, (t) => (D(), i($, {
|
|
8190
|
+
key: String(t.value),
|
|
8166
8191
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
8167
|
-
label:
|
|
8168
|
-
variant: e.filter.booleanValue ===
|
|
8169
|
-
onClick:
|
|
8192
|
+
label: t.label,
|
|
8193
|
+
variant: e.filter.booleanValue === t.value ? "primary" : "secondary",
|
|
8194
|
+
onClick: (n) => Ce(e.filter.booleanValue === t.value ? null : t.value)
|
|
8170
8195
|
}, null, 8, [
|
|
8171
8196
|
"disabled",
|
|
8172
8197
|
"label",
|
|
8173
|
-
"variant"
|
|
8174
|
-
|
|
8198
|
+
"variant",
|
|
8199
|
+
"onClick"
|
|
8200
|
+
]))), 128))]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (D(), i($, {
|
|
8175
8201
|
key: 0,
|
|
8176
8202
|
class: "pv-text-brand",
|
|
8177
8203
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
8178
8204
|
label: "Clear",
|
|
8179
8205
|
variant: "ghost",
|
|
8180
|
-
onClick: r[
|
|
8206
|
+
onClick: r[1] ||= (e) => Ce(null)
|
|
8181
8207
|
}, null, 8, ["disabled"])) : a("", !0)])) : C.value === "exists" ? (D(), o("label", cu, [u(as, {
|
|
8182
8208
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
8183
8209
|
modelValue: e.filter.existsValue ?? !1,
|
|
8184
|
-
"onUpdate:modelValue":
|
|
8185
|
-
}, null, 8, ["disabled", "modelValue"]), s("span", lu,
|
|
8210
|
+
"onUpdate:modelValue": we
|
|
8211
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", lu, F(g.value), 1)])) : a("", !0)])], 40, Wl));
|
|
8186
8212
|
}
|
|
8187
|
-
}), [["__scopeId", "data-v-
|
|
8213
|
+
}), [["__scopeId", "data-v-f5b0d0a2"]]), pu = {
|
|
8188
8214
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8189
8215
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8190
8216
|
style: {
|
|
@@ -8231,7 +8257,7 @@ var Pa = {
|
|
|
8231
8257
|
"--flex-gap": "12px",
|
|
8232
8258
|
"padding-bottom": "12px"
|
|
8233
8259
|
}
|
|
8234
|
-
}, [s("span", hu,
|
|
8260
|
+
}, [s("span", hu, F(n.label), 1), s("div", gu, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(hr, {
|
|
8235
8261
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8236
8262
|
label: t.label,
|
|
8237
8263
|
showClear: !e.readOnly,
|
|
@@ -8352,7 +8378,7 @@ var Pa = {
|
|
|
8352
8378
|
}),
|
|
8353
8379
|
emits: ["update:modelValue"],
|
|
8354
8380
|
setup(e) {
|
|
8355
|
-
let n = e, c =
|
|
8381
|
+
let n = e, c = z(e, "modelValue"), l = r(() => {
|
|
8356
8382
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
8357
8383
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
8358
8384
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -8373,13 +8399,11 @@ var Pa = {
|
|
|
8373
8399
|
}, {
|
|
8374
8400
|
default: W(() => [s("div", wu, [u($, {
|
|
8375
8401
|
label: "All",
|
|
8376
|
-
size: "md",
|
|
8377
8402
|
variant: f(null),
|
|
8378
8403
|
onClick: n[0] ||= (e) => d(null)
|
|
8379
8404
|
}, null, 8, ["variant"]), (D(!0), o(t, null, A(l.value, (e) => (D(), i($, {
|
|
8380
8405
|
key: e,
|
|
8381
8406
|
label: e,
|
|
8382
|
-
size: "md",
|
|
8383
8407
|
variant: f(e),
|
|
8384
8408
|
onClick: (t) => d(e)
|
|
8385
8409
|
}, null, 8, [
|
|
@@ -8916,37 +8940,37 @@ function Md(e, t, n) {
|
|
|
8916
8940
|
if (t.filterPanelRange) return "range";
|
|
8917
8941
|
if (t.dataType === "boolean") return "boolean";
|
|
8918
8942
|
if (e.filter) return "value";
|
|
8919
|
-
}, M = (e) => j(e) ?? "value", N = (e) => D(e).filterPanelCategory ?? null,
|
|
8943
|
+
}, M = (e) => j(e) ?? "value", N = (e) => D(e).filterPanelCategory ?? null, P = (e) => {
|
|
8920
8944
|
let t = D(e).filterPanelValueLabels;
|
|
8921
8945
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
8922
|
-
},
|
|
8946
|
+
}, F = (t) => {
|
|
8923
8947
|
let n = D(t), r = O(t);
|
|
8924
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
8925
|
-
},
|
|
8948
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && re.value.has(r) ? !1 : !!j(t);
|
|
8949
|
+
}, I = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), L = (t) => {
|
|
8926
8950
|
let n = p.value;
|
|
8927
8951
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
8928
|
-
},
|
|
8952
|
+
}, R = (e) => p.value.filterHasMoreMap.value[e] ?? !1, z = (e) => p.value.filterLoadingMap.value[e] ?? !1, B = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, V = (e) => p.value.filterSearchQueries.value[e] ?? "", ee = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
8929
8953
|
label: e.label,
|
|
8930
8954
|
value: e.filter.value
|
|
8931
|
-
}]),
|
|
8932
|
-
...
|
|
8933
|
-
...
|
|
8934
|
-
...
|
|
8935
|
-
],
|
|
8955
|
+
}]), te = (e) => [
|
|
8956
|
+
...ee(e),
|
|
8957
|
+
...I(e),
|
|
8958
|
+
...L(e)
|
|
8959
|
+
], ne = (e) => {
|
|
8936
8960
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
8937
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
8961
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(ne) : [];
|
|
8938
8962
|
return n ? [n, ...r] : r;
|
|
8939
|
-
},
|
|
8963
|
+
}, re = r(() => {
|
|
8940
8964
|
let t = /* @__PURE__ */ new Set();
|
|
8941
8965
|
for (let n of e.colDefs) {
|
|
8942
8966
|
let e = D(n);
|
|
8943
8967
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
8944
|
-
for (let n of
|
|
8968
|
+
for (let n of ne(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
8945
8969
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
8946
8970
|
}
|
|
8947
8971
|
return t;
|
|
8948
8972
|
}), H = (e) => {
|
|
8949
|
-
let t = O(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
8973
|
+
let t = O(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = ne(n.aggregateFieldHierarchy);
|
|
8950
8974
|
return Array.from(new Set([
|
|
8951
8975
|
t,
|
|
8952
8976
|
...r,
|
|
@@ -8993,8 +9017,8 @@ function Md(e, t, n) {
|
|
|
8993
9017
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
8994
9018
|
label: q(e)?.headerName ?? e
|
|
8995
9019
|
}));
|
|
8996
|
-
}, Y = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => H(t.colDef).includes(e)), de = (e, t, n) => ll(Y(e)?.knownOptions ?? []).find((r) => r.value === n || ul(r, t, n, e)), X = r(() => e.colDefs.filter(
|
|
8997
|
-
let n = O(t), r = D(t), i = M(t), a = ue(
|
|
9020
|
+
}, Y = (e) => X.value.find((t) => t.key === e) ?? X.value.find((t) => H(t.colDef).includes(e)), de = (e, t, n) => ll(Y(e)?.knownOptions ?? []).find((r) => r.value === n || ul(r, t, n, e)), X = r(() => e.colDefs.filter(F).map((t) => {
|
|
9021
|
+
let n = O(t), r = D(t), i = M(t), a = ue(I(n), t), o = ue(te(n), t), s = {
|
|
8998
9022
|
category: N(t),
|
|
8999
9023
|
colDef: t,
|
|
9000
9024
|
controlled: r.filterPanelControlled === !0,
|
|
@@ -9017,11 +9041,11 @@ function Md(e, t, n) {
|
|
|
9017
9041
|
hideSearch: r.filterPanelHideSearch,
|
|
9018
9042
|
focusedValues: e.focusedValues[n] ?? [],
|
|
9019
9043
|
focusedValuesByField: oe(t),
|
|
9020
|
-
hasMore:
|
|
9044
|
+
hasMore: R(n),
|
|
9021
9045
|
isAggregate: W(t),
|
|
9022
9046
|
isFocusable: e.enableFocusView && (!e.focusableFields.length || H(t).some((t) => e.focusableFields.includes(t))),
|
|
9023
|
-
isLoading:
|
|
9024
|
-
isLoadingMore:
|
|
9047
|
+
isLoading: z(n),
|
|
9048
|
+
isLoadingMore: B(n),
|
|
9025
9049
|
isOpen: !1,
|
|
9026
9050
|
key: n,
|
|
9027
9051
|
knownOptions: o,
|
|
@@ -9031,11 +9055,11 @@ function Md(e, t, n) {
|
|
|
9031
9055
|
rangeMin: A(r.filterPanelRange?.min),
|
|
9032
9056
|
rangeStep: A(r.filterPanelRange?.step),
|
|
9033
9057
|
searchPlaceholder: ce(t),
|
|
9034
|
-
searchQuery:
|
|
9058
|
+
searchQuery: V(n) ?? "",
|
|
9035
9059
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
9036
9060
|
type: i,
|
|
9037
9061
|
valueDecimals: r.valueDecimals ?? null,
|
|
9038
|
-
valueLabels:
|
|
9062
|
+
valueLabels: P(t)
|
|
9039
9063
|
};
|
|
9040
9064
|
if (i === "range") return {
|
|
9041
9065
|
...s,
|
|
@@ -9464,9 +9488,9 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9464
9488
|
"suggestion-click"
|
|
9465
9489
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9466
9490
|
setup(e, { emit: n }) {
|
|
9467
|
-
let c = e, l =
|
|
9491
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } = Md(c, l, f), N = k("filters"), P = k({}), L = k(null), R = k(!1), B = k(!1), V = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ee = r(() => L.value === null ? p.value : p.value.filter((e) => e.category === L.value)), te = r(() => ee.value.filter((e) => !V(e))), ne = r(() => ee.value.filter(V)), re = r(() => L.value !== null), U = r(() => re.value || R.value ? [...te.value, ...ne.value] : te.value), ie = r(() => `${R.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ae = r(() => N.value === "filters" && !re.value && ne.value.length > 0), K = r(() => ae.value || !c.readOnly && (g.value || c.staged)), oe = r(() => U.value.map((e) => ({
|
|
9468
9492
|
...e,
|
|
9469
|
-
isOpen:
|
|
9493
|
+
isOpen: P.value[e.key] ?? e.isOpen ?? !1
|
|
9470
9494
|
}))), q = r(() => [{
|
|
9471
9495
|
label: "Filters",
|
|
9472
9496
|
value: "filters"
|
|
@@ -9482,13 +9506,13 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9482
9506
|
})), ce = (e) => {
|
|
9483
9507
|
(e === "filters" || e === "applied") && (N.value = e);
|
|
9484
9508
|
}, le = (e, t) => {
|
|
9485
|
-
|
|
9509
|
+
P.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
9486
9510
|
}, ue = () => {
|
|
9487
|
-
|
|
9511
|
+
B.value = !1;
|
|
9488
9512
|
}, J = () => {
|
|
9489
|
-
S(),
|
|
9513
|
+
S(), B.value = !1;
|
|
9490
9514
|
}, Y = () => {
|
|
9491
|
-
|
|
9515
|
+
B.value = !0;
|
|
9492
9516
|
};
|
|
9493
9517
|
return (n, r) => (D(), o(t, null, [d.value ? a("", !0) : (D(), o("div", {
|
|
9494
9518
|
key: 0,
|
|
@@ -9513,12 +9537,12 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9513
9537
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9514
9538
|
}))]),
|
|
9515
9539
|
s("div", Fd, [G(s("div", Id, [
|
|
9516
|
-
!e.readOnly &&
|
|
9517
|
-
key:
|
|
9540
|
+
!e.readOnly && I(_).length ? (D(), o("section", Ld, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Rd, [(D(!0), o(t, null, A(I(_), (e) => (D(), i(Zr, {
|
|
9541
|
+
key: I(C)(e),
|
|
9518
9542
|
icon: e.icon,
|
|
9519
9543
|
"icon-classes": e.iconClasses,
|
|
9520
9544
|
label: e.label,
|
|
9521
|
-
onHandleClick: () =>
|
|
9545
|
+
onHandleClick: () => I(O)(e)
|
|
9522
9546
|
}, null, 8, [
|
|
9523
9547
|
"icon",
|
|
9524
9548
|
"icon-classes",
|
|
@@ -9527,24 +9551,24 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9527
9551
|
]))), 128))])])) : a("", !0),
|
|
9528
9552
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
9529
9553
|
u(Tu, {
|
|
9530
|
-
modelValue:
|
|
9531
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
9554
|
+
modelValue: L.value,
|
|
9555
|
+
"onUpdate:modelValue": r[1] ||= (e) => L.value = e,
|
|
9532
9556
|
"category-order": e.categoryOrder,
|
|
9533
|
-
filters:
|
|
9557
|
+
filters: I(p)
|
|
9534
9558
|
}, null, 8, [
|
|
9535
9559
|
"modelValue",
|
|
9536
9560
|
"category-order",
|
|
9537
9561
|
"filters"
|
|
9538
9562
|
]),
|
|
9539
|
-
|
|
9563
|
+
I(p).length ? ee.value.length ? (D(), o("div", Vd, [(D(!0), o(t, null, A(oe.value, (e) => (D(), i(fu, {
|
|
9540
9564
|
key: e.key,
|
|
9541
9565
|
filter: e,
|
|
9542
|
-
onFilterChange: (t) =>
|
|
9566
|
+
onFilterChange: (t) => I(w)(e.key, t),
|
|
9543
9567
|
onFocusChange: r[2] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
9544
9568
|
onHandleSettingsIcon: r[3] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
9545
|
-
onLoadMore: (t, n) =>
|
|
9569
|
+
onLoadMore: (t, n) => I(T)(e, t, n),
|
|
9546
9570
|
onOpenChange: (t) => le(e, t),
|
|
9547
|
-
onSearchChange: (t) =>
|
|
9571
|
+
onSearchChange: (t) => I(E)(e, t)
|
|
9548
9572
|
}, null, 8, [
|
|
9549
9573
|
"filter",
|
|
9550
9574
|
"onFilterChange",
|
|
@@ -9553,10 +9577,10 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9553
9577
|
"onSearchChange"
|
|
9554
9578
|
]))), 128))])) : (D(), o("div", Bd, " No filters in this category. ")) : (D(), o("div", zd, " No filters available. "))
|
|
9555
9579
|
], 512), [[H, N.value === "filters"]]), G(u(vu, {
|
|
9556
|
-
"applied-count":
|
|
9557
|
-
"applied-groups":
|
|
9580
|
+
"applied-count": I(h),
|
|
9581
|
+
"applied-groups": I(m),
|
|
9558
9582
|
"read-only": e.readOnly,
|
|
9559
|
-
onRemoveFilter:
|
|
9583
|
+
onRemoveFilter: I(M)
|
|
9560
9584
|
}, null, 8, [
|
|
9561
9585
|
"applied-count",
|
|
9562
9586
|
"applied-groups",
|
|
@@ -9568,8 +9592,8 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9568
9592
|
class: "pv-text-brand",
|
|
9569
9593
|
label: ie.value,
|
|
9570
9594
|
variant: "ghost",
|
|
9571
|
-
onClick: r[4] ||= (e) =>
|
|
9572
|
-
}, null, 8, ["label"])) : a("", !0)]), s("div", Wd, [
|
|
9595
|
+
onClick: r[4] ||= (e) => R.value = !R.value
|
|
9596
|
+
}, null, 8, ["label"])) : a("", !0)]), s("div", Wd, [I(g) && !e.readOnly ? (D(), i($, {
|
|
9573
9597
|
key: 0,
|
|
9574
9598
|
class: "pv-text-brand",
|
|
9575
9599
|
label: e.clearAllLabel,
|
|
@@ -9578,19 +9602,19 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9578
9602
|
}, null, 8, ["label"])) : a("", !0), e.staged && !e.readOnly ? (D(), o(t, { key: 1 }, [u($, {
|
|
9579
9603
|
label: e.cancelLabel,
|
|
9580
9604
|
variant: "ghost",
|
|
9581
|
-
onClick:
|
|
9605
|
+
onClick: I(b)
|
|
9582
9606
|
}, null, 8, ["label", "onClick"]), u($, {
|
|
9583
9607
|
label: e.applyLabel,
|
|
9584
9608
|
variant: "primary",
|
|
9585
|
-
onClick:
|
|
9609
|
+
onClick: I(y)
|
|
9586
9610
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
9587
9611
|
], 12, Nd)), u(Lr, {
|
|
9588
|
-
modelValue:
|
|
9589
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
9612
|
+
modelValue: B.value,
|
|
9613
|
+
"onUpdate:modelValue": r[5] ||= (e) => B.value = e,
|
|
9590
9614
|
header: e.clearAllHeader,
|
|
9591
9615
|
style: { "--max-width": "440px" }
|
|
9592
9616
|
}, {
|
|
9593
|
-
body: W(() => [s("p", Gd,
|
|
9617
|
+
body: W(() => [s("p", Gd, F(e.clearAllBody), 1)]),
|
|
9594
9618
|
footer: W(() => [s("div", Kd, [u($, {
|
|
9595
9619
|
label: e.cancelLabel,
|
|
9596
9620
|
variant: "ghost",
|
|
@@ -9632,7 +9656,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9632
9656
|
}),
|
|
9633
9657
|
emits: ["update:modelValue"],
|
|
9634
9658
|
setup(e) {
|
|
9635
|
-
let t = e, n =
|
|
9659
|
+
let t = e, n = z(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
9636
9660
|
return (t, r) => (D(), o("label", {
|
|
9637
9661
|
class: "pv-toggle-ghost",
|
|
9638
9662
|
for: i.value
|
|
@@ -9645,9 +9669,9 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9645
9669
|
value: e.value,
|
|
9646
9670
|
name: e.name,
|
|
9647
9671
|
disabled: e.disabled
|
|
9648
|
-
}, null, 8, Yd), [[
|
|
9649
|
-
e.label ? (D(), o("span", Xd,
|
|
9650
|
-
s("span", Zd,
|
|
9672
|
+
}, null, 8, Yd), [[te, n.value]]),
|
|
9673
|
+
e.label ? (D(), o("span", Xd, F(e.label), 1)) : a("", !0),
|
|
9674
|
+
s("span", Zd, F(e.rightCounterBadge), 1)
|
|
9651
9675
|
], 8, Jd));
|
|
9652
9676
|
}
|
|
9653
9677
|
}), $d = ["aria-label"], ef = {
|
|
@@ -9781,10 +9805,10 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9781
9805
|
"suggestion-click"
|
|
9782
9806
|
], ["update:filterModel", "update:visible"]),
|
|
9783
9807
|
setup(e, { emit: n }) {
|
|
9784
|
-
let c = e, l =
|
|
9808
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = Md(c, l, f), v = k(null), b = R(), S = k(""), C = r(() => p.value.filter((e) => e.type === "value")), w = r(() => {
|
|
9785
9809
|
let e = C.value;
|
|
9786
9810
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
9787
|
-
}), T = r(() => w.value?.isAggregate === !0), E = r(() => w.value?.aggregateSelectionState ?? []), O = r(() => new Set(w.value?.selectedValues ?? [])), M = r(() => S.value.trim().toLowerCase()),
|
|
9811
|
+
}), T = r(() => w.value?.isAggregate === !0), E = r(() => w.value?.aggregateSelectionState ?? []), O = r(() => new Set(w.value?.selectedValues ?? [])), M = r(() => S.value.trim().toLowerCase()), P = (e) => {
|
|
9788
9812
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
9789
9813
|
return [
|
|
9790
9814
|
e.value,
|
|
@@ -9794,45 +9818,49 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9794
9818
|
e.matchedValue,
|
|
9795
9819
|
e.matchedField
|
|
9796
9820
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
9797
|
-
},
|
|
9821
|
+
}, L = r(() => {
|
|
9798
9822
|
let e = w.value;
|
|
9799
9823
|
if (!e) return {};
|
|
9800
9824
|
let t = {};
|
|
9801
9825
|
for (let n of ll([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
9802
9826
|
return t;
|
|
9803
|
-
}),
|
|
9827
|
+
}), B = r(() => w.value?.colDef.context?.filterPanel ?? {}), V = k(Object.fromEntries(C.value.flatMap((e) => {
|
|
9804
9828
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
9805
9829
|
return Object.keys(n).length ? [[e.key, n]] : [];
|
|
9806
|
-
}))),
|
|
9830
|
+
}))), ee = (e) => {
|
|
9807
9831
|
let t = w.value?.key;
|
|
9808
|
-
return t &&
|
|
9809
|
-
},
|
|
9832
|
+
return t && V.value[t]?.[e] || [];
|
|
9833
|
+
}, te = (e) => e.map((e) => ({
|
|
9810
9834
|
id: e,
|
|
9811
9835
|
text: e
|
|
9812
|
-
})),
|
|
9813
|
-
let n = new Set(
|
|
9814
|
-
return
|
|
9815
|
-
},
|
|
9836
|
+
})), ne = (e, t) => {
|
|
9837
|
+
let n = new Set(ee(e));
|
|
9838
|
+
return te(t).filter((e) => n.has(e.id));
|
|
9839
|
+
}, re = (e, t) => {
|
|
9816
9840
|
let n = w.value?.key;
|
|
9817
|
-
n && (
|
|
9818
|
-
...
|
|
9841
|
+
n && (V.value[n] = {
|
|
9842
|
+
...V.value[n],
|
|
9819
9843
|
[e]: t.map((e) => e.id)
|
|
9820
9844
|
});
|
|
9821
|
-
}, H = r(() => Object.keys(
|
|
9845
|
+
}, H = r(() => Object.keys(B.value).map((e) => [e, new Set(ee(e))]).filter(([, e]) => e.size > 0)), ie = (e) => H.value.every(([t, n]) => {
|
|
9822
9846
|
let r = e.metadata?.filters?.[t];
|
|
9823
9847
|
return (Array.isArray(r) ? r : r === void 0 ? [] : [r]).some((e) => n.has(String(e)));
|
|
9824
9848
|
}), G = r(() => {
|
|
9825
9849
|
let e = (w.value?.options ?? []).filter(ie), t = M.value;
|
|
9826
|
-
return t ? e.filter((e) =>
|
|
9827
|
-
}), ae = r(() => T.value || w.value?.singleSelect ? [] : (w.value?.selectedValues ?? []).map((e) =>
|
|
9850
|
+
return t ? e.filter((e) => P(e).includes(t)) : e;
|
|
9851
|
+
}), ae = r(() => T.value || w.value?.singleSelect ? [] : (w.value?.selectedValues ?? []).map((e) => L.value[e] ?? {
|
|
9828
9852
|
label: e,
|
|
9829
9853
|
value: e
|
|
9830
|
-
})), K =
|
|
9854
|
+
})), K = k([]), oe = r(() => new Set(K.value)), q = () => {
|
|
9855
|
+
K.value = T.value || w.value?.singleSelect ? [] : [...w.value?.selectedValues ?? []];
|
|
9856
|
+
};
|
|
9857
|
+
q();
|
|
9858
|
+
let se = r(() => T.value || w.value?.singleSelect ? G.value : [...(w.value?.selectedValues ?? []).filter((e) => !G.value.some((t) => t.value === e)).map((e) => L.value[e] ?? {
|
|
9831
9859
|
label: e,
|
|
9832
9860
|
value: e
|
|
9833
|
-
}), ...G.value]),
|
|
9861
|
+
}), ...G.value]), ce = r(() => {
|
|
9834
9862
|
let e = /* @__PURE__ */ new Map();
|
|
9835
|
-
for (let t of
|
|
9863
|
+
for (let t of se.value) {
|
|
9836
9864
|
let n = t.section ?? "";
|
|
9837
9865
|
e.has(n) || e.set(n, []), e.get(n).push(t);
|
|
9838
9866
|
}
|
|
@@ -9842,24 +9870,24 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9842
9870
|
...[...e.keys()].filter((e) => e !== "" && !n.has(e)),
|
|
9843
9871
|
...e.has("") ? [""] : []
|
|
9844
9872
|
].map((t) => {
|
|
9845
|
-
let r = n.get(t);
|
|
9873
|
+
let r = n.get(t), i = e.get(t);
|
|
9846
9874
|
return {
|
|
9847
9875
|
key: t,
|
|
9848
9876
|
label: r?.label ?? t,
|
|
9849
9877
|
section: r,
|
|
9850
|
-
options: e.
|
|
9878
|
+
options: [...i.filter((e) => oe.value.has(e.value)), ...i.filter((e) => !oe.value.has(e.value))]
|
|
9851
9879
|
};
|
|
9852
9880
|
});
|
|
9853
|
-
}),
|
|
9881
|
+
}), le = r(() => T.value && w.value ? Bl({
|
|
9854
9882
|
options: w.value.knownOptions ?? [],
|
|
9855
9883
|
state: E.value
|
|
9856
|
-
}) : /* @__PURE__ */ new Map()),
|
|
9884
|
+
}) : /* @__PURE__ */ new Map()), ue = (e) => e.isAggregate ? Ul(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, J = (e) => T.value ? le.value.get(e.value) ?? {
|
|
9857
9885
|
indeterminate: !1,
|
|
9858
9886
|
selected: !1
|
|
9859
9887
|
} : {
|
|
9860
9888
|
indeterminate: !1,
|
|
9861
9889
|
selected: O.value.has(e.value)
|
|
9862
|
-
},
|
|
9890
|
+
}, Y = (e) => w.value ? $c(e, w.value.colDef) : e.label || e.value, X = (e) => sl(e) ?? e.value, fe = (e) => cl(e, w.value?.key ?? ""), pe = (e, t) => {
|
|
9863
9891
|
let n = w.value;
|
|
9864
9892
|
if (n) {
|
|
9865
9893
|
if (n.isAggregate) {
|
|
@@ -9876,31 +9904,31 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9876
9904
|
}
|
|
9877
9905
|
_(n.key, {
|
|
9878
9906
|
checked: t,
|
|
9879
|
-
field:
|
|
9907
|
+
field: fe(e),
|
|
9880
9908
|
type: "value",
|
|
9881
|
-
value:
|
|
9909
|
+
value: X(e)
|
|
9882
9910
|
});
|
|
9883
9911
|
}
|
|
9884
|
-
},
|
|
9885
|
-
for (let e of G.value)
|
|
9886
|
-
},
|
|
9912
|
+
}, me = () => {
|
|
9913
|
+
for (let e of G.value) J(e).selected || pe(e, !0);
|
|
9914
|
+
}, he = () => {
|
|
9887
9915
|
if (T.value) {
|
|
9888
|
-
for (let e of ll(w.value?.knownOptions ?? []))
|
|
9916
|
+
for (let e of ll(w.value?.knownOptions ?? [])) J(e).selected && pe(e, !1);
|
|
9889
9917
|
return;
|
|
9890
9918
|
}
|
|
9891
|
-
for (let e of ae.value)
|
|
9892
|
-
},
|
|
9919
|
+
for (let e of ae.value) pe(e, !1);
|
|
9920
|
+
}, ge = () => {
|
|
9893
9921
|
w.value && f("load-more", w.value.key, w.value.colDef, S.value.trim());
|
|
9894
|
-
},
|
|
9922
|
+
}, _e = r({
|
|
9895
9923
|
get: () => w.value?.key ?? "",
|
|
9896
9924
|
set: (e) => {
|
|
9897
9925
|
v.value = e;
|
|
9898
9926
|
}
|
|
9899
9927
|
});
|
|
9900
9928
|
return U(() => w.value?.key, (e) => {
|
|
9901
|
-
S.value = w.value?.searchQuery ?? "", e && d.value && w.value && m(w.value);
|
|
9929
|
+
S.value = w.value?.searchQuery ?? "", q(), e && d.value && w.value && m(w.value);
|
|
9902
9930
|
}), U(d, (e) => {
|
|
9903
|
-
e && w.value && m(w.value);
|
|
9931
|
+
e && (q(), w.value && m(w.value));
|
|
9904
9932
|
}), de(S, (e) => {
|
|
9905
9933
|
let t = w.value;
|
|
9906
9934
|
if (!t) return;
|
|
@@ -9927,12 +9955,12 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9927
9955
|
})
|
|
9928
9956
|
}, [s("div", ef, [s("nav", tf, [(D(!0), o(t, null, A(C.value, (e) => (D(), i(Qd, {
|
|
9929
9957
|
key: e.key,
|
|
9930
|
-
modelValue:
|
|
9931
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
9958
|
+
modelValue: _e.value,
|
|
9959
|
+
"onUpdate:modelValue": r[0] ||= (e) => _e.value = e,
|
|
9932
9960
|
class: "pv-full-width pv-space-between",
|
|
9933
9961
|
deselect: !1,
|
|
9934
9962
|
label: e.label,
|
|
9935
|
-
"right-counter-badge":
|
|
9963
|
+
"right-counter-badge": ue(e),
|
|
9936
9964
|
value: e.key
|
|
9937
9965
|
}, null, 8, [
|
|
9938
9966
|
"modelValue",
|
|
@@ -9951,14 +9979,14 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9951
9979
|
"disabled",
|
|
9952
9980
|
"placeholder"
|
|
9953
9981
|
]),
|
|
9954
|
-
Object.keys(
|
|
9982
|
+
Object.keys(B.value).length ? (D(), o("div", rf, [(D(!0), o(t, null, A(B.value, (e, t) => (D(), i(To, {
|
|
9955
9983
|
key: `facet-${t}`,
|
|
9956
9984
|
disabled: w.value?.disabled,
|
|
9957
|
-
label: e.headerName ||
|
|
9958
|
-
"model-value":
|
|
9959
|
-
options:
|
|
9985
|
+
label: e.headerName || I(xe)(t),
|
|
9986
|
+
"model-value": ne(t, e.values),
|
|
9987
|
+
options: te(e.values),
|
|
9960
9988
|
variant: "secondary",
|
|
9961
|
-
"onUpdate:modelValue": (e) =>
|
|
9989
|
+
"onUpdate:modelValue": (e) => re(t, e)
|
|
9962
9990
|
}, null, 8, [
|
|
9963
9991
|
"disabled",
|
|
9964
9992
|
"label",
|
|
@@ -9967,7 +9995,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9967
9995
|
"onUpdate:modelValue"
|
|
9968
9996
|
]))), 128))])) : a("", !0),
|
|
9969
9997
|
w.value?.isLoading ? (D(), o("div", af, [u(je, { size: "sm" })])) : w.value ? (D(), o(t, { key: 2 }, [
|
|
9970
|
-
s("div", of, [(D(!0), o(t, null, A(
|
|
9998
|
+
s("div", of, [(D(!0), o(t, null, A(ce.value, (e) => (D(), o("div", {
|
|
9971
9999
|
key: `section-${e.key}`,
|
|
9972
10000
|
class: "pv-flex-vertical",
|
|
9973
10001
|
style: {
|
|
@@ -9988,22 +10016,22 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9988
10016
|
"field",
|
|
9989
10017
|
"options",
|
|
9990
10018
|
"section"
|
|
9991
|
-
])) : e.label ? (D(), o("p", sf,
|
|
10019
|
+
])) : e.label ? (D(), o("p", sf, F(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
9992
10020
|
key: `option-${e.value}`,
|
|
9993
|
-
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight":
|
|
10021
|
+
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": J(e).selected }])
|
|
9994
10022
|
}, [u(Uc, {
|
|
9995
10023
|
control: w.value.singleSelect ? "radio" : "checkbox",
|
|
9996
10024
|
disabled: w.value.disabled || e.isSelectable === !1,
|
|
9997
|
-
indeterminate:
|
|
9998
|
-
label:
|
|
9999
|
-
name:
|
|
10025
|
+
indeterminate: J(e).indeterminate,
|
|
10026
|
+
label: Y(e),
|
|
10027
|
+
name: I(b),
|
|
10000
10028
|
"query-text": S.value,
|
|
10001
|
-
"result-count":
|
|
10002
|
-
selected:
|
|
10029
|
+
"result-count": I(el)(e),
|
|
10030
|
+
selected: J(e).selected,
|
|
10003
10031
|
"sub-text": e.subText,
|
|
10004
10032
|
"subdued-text": e.subduedText,
|
|
10005
10033
|
value: e.value,
|
|
10006
|
-
onToggleValue: (t, n) =>
|
|
10034
|
+
onToggleValue: (t, n) => pe(e, n)
|
|
10007
10035
|
}, null, 8, [
|
|
10008
10036
|
"control",
|
|
10009
10037
|
"disabled",
|
|
@@ -10026,7 +10054,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10026
10054
|
label: "See more",
|
|
10027
10055
|
style: { width: "fit-content" },
|
|
10028
10056
|
variant: "ghost",
|
|
10029
|
-
onClick:
|
|
10057
|
+
onClick: ge
|
|
10030
10058
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
10031
10059
|
], 64)) : a("", !0),
|
|
10032
10060
|
w.value && !e.readOnly ? (D(), o("div", lf, [w.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
@@ -10034,26 +10062,26 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10034
10062
|
disabled: w.value.disabled,
|
|
10035
10063
|
label: e.selectAllLabel,
|
|
10036
10064
|
variant: "ghost",
|
|
10037
|
-
onClick:
|
|
10065
|
+
onClick: me
|
|
10038
10066
|
}, null, 8, ["disabled", "label"])), u($, {
|
|
10039
10067
|
disabled: w.value.disabled,
|
|
10040
10068
|
label: e.clearSelectionLabel,
|
|
10041
10069
|
variant: "ghost",
|
|
10042
|
-
onClick:
|
|
10070
|
+
onClick: he
|
|
10043
10071
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
10044
10072
|
])]), e.staged ? (D(), o("div", uf, [u($, {
|
|
10045
10073
|
label: e.cancelLabel,
|
|
10046
10074
|
variant: "ghost",
|
|
10047
|
-
onClick:
|
|
10075
|
+
onClick: I(g)
|
|
10048
10076
|
}, null, 8, ["label", "onClick"]), u($, {
|
|
10049
10077
|
label: e.applyLabel,
|
|
10050
10078
|
variant: "primary",
|
|
10051
|
-
onClick:
|
|
10079
|
+
onClick: I(h)
|
|
10052
10080
|
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, $d)]),
|
|
10053
10081
|
_: 3
|
|
10054
10082
|
}, 8, ["modelValue"]));
|
|
10055
10083
|
}
|
|
10056
|
-
}), [["__scopeId", "data-v-
|
|
10084
|
+
}), [["__scopeId", "data-v-6eaa3797"]]), ff = ["tabindex"], pf = {
|
|
10057
10085
|
key: 0,
|
|
10058
10086
|
class: "pv-hover-action-menu__actions"
|
|
10059
10087
|
}, mf = { class: "pv-hover-action-menu__action-group" }, hf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
@@ -10186,8 +10214,8 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10186
10214
|
return (e, n) => (D(), o("div", null, [s("div", _f, [u(Z, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", vf, [(D(!0), o(t, null, A(m.value, (e, t) => (D(), o("span", {
|
|
10187
10215
|
key: t,
|
|
10188
10216
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
10189
|
-
textContent:
|
|
10190
|
-
}, null, 12, yf))), 128))]), f.value ? (D(), o("p", bf, [c.value ? a("", !0) : (D(), o("span", xf, "Search in ")), s("span", Sf,
|
|
10217
|
+
textContent: F(e.text)
|
|
10218
|
+
}, null, 12, yf))), 128))]), f.value ? (D(), o("p", bf, [c.value ? a("", !0) : (D(), o("span", xf, "Search in ")), s("span", Sf, F(f.value), 1)])) : a("", !0)])])]));
|
|
10191
10219
|
}
|
|
10192
10220
|
}), [["__scopeId", "data-v-ff951d17"]]), wf = /* @__PURE__ */ d({
|
|
10193
10221
|
__name: "QueryFormatter",
|
|
@@ -10203,7 +10231,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10203
10231
|
}),
|
|
10204
10232
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10205
10233
|
setup(e) {
|
|
10206
|
-
let n = e, s =
|
|
10234
|
+
let n = e, s = z(e, "modelValue"), c = z(e, "wrap-content"), { removeQueryOption: l } = gf(), u = r(() => {
|
|
10207
10235
|
let e = s.value?.queryTerms || [];
|
|
10208
10236
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10209
10237
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -10294,7 +10322,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10294
10322
|
"update:options"
|
|
10295
10323
|
],
|
|
10296
10324
|
setup(e) {
|
|
10297
|
-
let n = e, c = { renderer: Cf }, l =
|
|
10325
|
+
let n = e, c = { renderer: Cf }, l = V("search-input"), d = z(e, "searchText"), f = z(e, "query"), p = z(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = gf(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
10298
10326
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
10299
10327
|
};
|
|
10300
10328
|
n.enableCustomOptionsInput && q("Enter", () => {
|
|
@@ -10315,7 +10343,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10315
10343
|
id: d.value.trim(),
|
|
10316
10344
|
text: d.value,
|
|
10317
10345
|
queryTerm: { queryText: d.value }
|
|
10318
|
-
}),
|
|
10346
|
+
}), R());
|
|
10319
10347
|
}, j = r(() => {
|
|
10320
10348
|
if (!p.value || p.value.length === 0) return [];
|
|
10321
10349
|
let e = p.value;
|
|
@@ -10345,28 +10373,28 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10345
10373
|
queryTerm: e.context,
|
|
10346
10374
|
icon: e.icon
|
|
10347
10375
|
};
|
|
10348
|
-
f.value = m(f.value, t),
|
|
10376
|
+
f.value = m(f.value, t), R();
|
|
10349
10377
|
} catch (e) {
|
|
10350
10378
|
console.error("Error adding query option:", e);
|
|
10351
10379
|
} finally {
|
|
10352
10380
|
v.value = !1, b.value = !1;
|
|
10353
10381
|
}
|
|
10354
10382
|
};
|
|
10355
|
-
function
|
|
10383
|
+
function P(e) {
|
|
10356
10384
|
let t = e.target;
|
|
10357
10385
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
10358
10386
|
}
|
|
10359
|
-
function
|
|
10387
|
+
function L(e) {
|
|
10360
10388
|
e.type === "focus" && (b.value = !0, v.value = !0);
|
|
10361
10389
|
}
|
|
10362
|
-
let
|
|
10390
|
+
let R = () => {
|
|
10363
10391
|
d.value = "";
|
|
10364
10392
|
};
|
|
10365
10393
|
return (n, r) => G((D(), o("div", {
|
|
10366
10394
|
ref: "query-builder-input",
|
|
10367
10395
|
class: y(["pv-relative pv-query-builder-input-wrapper", { "pv-query-builder-input-small": e.size === "lg" }]),
|
|
10368
|
-
onFocus:
|
|
10369
|
-
onClick:
|
|
10396
|
+
onFocus: L,
|
|
10397
|
+
onClick: P
|
|
10370
10398
|
}, [
|
|
10371
10399
|
e.hideSearchIcon ? a("", !0) : (D(), i(Z, {
|
|
10372
10400
|
key: 0,
|
|
@@ -10397,9 +10425,9 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10397
10425
|
placeholder: C.value,
|
|
10398
10426
|
"data-invalid": T.value ? "true" : void 0,
|
|
10399
10427
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
10400
|
-
onFocus:
|
|
10401
|
-
onBlur:
|
|
10402
|
-
}, null, 44, Tf), [[
|
|
10428
|
+
onFocus: L,
|
|
10429
|
+
onBlur: L
|
|
10430
|
+
}, null, 44, Tf), [[re, d.value]])], 4),
|
|
10403
10431
|
f.value && !e.hideClearButton ? (D(), i($, {
|
|
10404
10432
|
key: 1,
|
|
10405
10433
|
variant: "ghost",
|
|
@@ -10407,7 +10435,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10407
10435
|
size: "md",
|
|
10408
10436
|
onClick: E
|
|
10409
10437
|
})) : a("", !0),
|
|
10410
|
-
T.value ? (D(), o("p", Ef,
|
|
10438
|
+
T.value ? (D(), o("p", Ef, F(w.value), 1)) : a("", !0),
|
|
10411
10439
|
j.value.length > 0 || e.optionsLoading ? (D(), i(vr, {
|
|
10412
10440
|
key: 3,
|
|
10413
10441
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -10426,7 +10454,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10426
10454
|
}), null, 16, ["onHandleSelected"]))), 128))]),
|
|
10427
10455
|
_: 1
|
|
10428
10456
|
}, 8, ["class"])) : a("", !0)
|
|
10429
|
-
], 34)), [[
|
|
10457
|
+
], 34)), [[I(fe), M]]);
|
|
10430
10458
|
}
|
|
10431
10459
|
}), [["__scopeId", "data-v-97679942"]]), kf = { class: "sidebar-header-content" }, Af = { class: "content-panel" }, jf = 300, Mf = /* @__PURE__ */ d({
|
|
10432
10460
|
__name: "PvSidebar",
|
|
@@ -10443,7 +10471,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10443
10471
|
}),
|
|
10444
10472
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
10445
10473
|
setup(e, { emit: t }) {
|
|
10446
|
-
let n = e, r =
|
|
10474
|
+
let n = e, r = z(e, "modelValue"), c = t, l = k(!1), u = null, d = f(), p = () => d?.proxy?.$el ?? null;
|
|
10447
10475
|
U(r, () => {
|
|
10448
10476
|
l.value = !1;
|
|
10449
10477
|
});
|
|
@@ -10602,14 +10630,14 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10602
10630
|
}),
|
|
10603
10631
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
10604
10632
|
setup(e, { emit: n }) {
|
|
10605
|
-
let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Gn("sidebar-additional-content", { host: p }), { present: h } = Gn("sidebar-additional-header", { host: p }), { present: g } = Gn("sidebar-help-content", { host: p }), { present: b } = Gn("sidebar-profile-content", { host: p }), C =
|
|
10606
|
-
"--pv-sidebar-hover-panel-height": `${
|
|
10607
|
-
"--pv-sidebar-hover-panel-left": `${
|
|
10608
|
-
"--pv-sidebar-hover-panel-top": `${
|
|
10609
|
-
})),
|
|
10633
|
+
let c = e, d = f(), p = typeof HTMLElement < "u" && d && "ce" in d && d.ce instanceof HTMLElement ? d.ce : void 0, { present: m } = Gn("sidebar-additional-content", { host: p }), { present: h } = Gn("sidebar-additional-header", { host: p }), { present: g } = Gn("sidebar-help-content", { host: p }), { present: b } = Gn("sidebar-profile-content", { host: p }), C = B(), T = k(null), E = k(null), O = k({}), M = k(), P = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), R = k(0), V = ce(E), ee = r(() => ({
|
|
10634
|
+
"--pv-sidebar-hover-panel-height": `${V.height.value}px`,
|
|
10635
|
+
"--pv-sidebar-hover-panel-left": `${V.right.value}px`,
|
|
10636
|
+
"--pv-sidebar-hover-panel-top": `${V.top.value}px`
|
|
10637
|
+
})), te, ne = (e) => e.hoverPanelSlot ? p ? (R.value, Array.from(p.children).some((t) => t.getAttribute("slot") === e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, re = (e, t, n) => {
|
|
10610
10638
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
10611
10639
|
}, H = (e) => {
|
|
10612
|
-
let t =
|
|
10640
|
+
let t = P.get(e), n = t?.querySelector(Pp);
|
|
10613
10641
|
if (n) return n;
|
|
10614
10642
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
10615
10643
|
if (t.matches(Pp)) return t;
|
|
@@ -10622,7 +10650,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10622
10650
|
n && (e.preventDefault(), O.value[t] = !0, v(() => n.focus()));
|
|
10623
10651
|
}, G = (e) => {
|
|
10624
10652
|
M.value = e, O.value[e] = !1, v(() => {
|
|
10625
|
-
|
|
10653
|
+
L.get(e)?.focus({ preventScroll: !0 }), v(() => M.value = void 0);
|
|
10626
10654
|
});
|
|
10627
10655
|
}, K = (e, t) => {
|
|
10628
10656
|
e.composedPath().some((e) => e instanceof Element && e.hasAttribute("data-sidebar-nav-panel-close")) && G(t);
|
|
@@ -10630,15 +10658,15 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10630
10658
|
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), G(t));
|
|
10631
10659
|
};
|
|
10632
10660
|
w(() => {
|
|
10633
|
-
p && (
|
|
10634
|
-
e.some((e) => e.target === p || e.type === "attributes" && e.target.parentNode === p) && (
|
|
10635
|
-
}),
|
|
10661
|
+
p && (te = new MutationObserver((e) => {
|
|
10662
|
+
e.some((e) => e.target === p || e.type === "attributes" && e.target.parentNode === p) && (R.value += 1);
|
|
10663
|
+
}), te.observe(p, {
|
|
10636
10664
|
attributes: !0,
|
|
10637
10665
|
attributeFilter: ["slot"],
|
|
10638
10666
|
childList: !0,
|
|
10639
10667
|
subtree: !0
|
|
10640
10668
|
}));
|
|
10641
|
-
}), S(() =>
|
|
10669
|
+
}), S(() => te?.disconnect());
|
|
10642
10670
|
let q = (e) => {
|
|
10643
10671
|
for (let t of e) {
|
|
10644
10672
|
if (t.active) return t;
|
|
@@ -10656,7 +10684,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10656
10684
|
le(e) && (ue.value[e.value] = !0);
|
|
10657
10685
|
});
|
|
10658
10686
|
});
|
|
10659
|
-
let J =
|
|
10687
|
+
let J = z(e, "modelValue"), Y = k(!1), de = n, X = k(!1), fe = k(!1), pe = k(!1), me = () => {
|
|
10660
10688
|
X.value = !1, O.value = {}, fe.value = !1, pe.value = !1;
|
|
10661
10689
|
};
|
|
10662
10690
|
U(X, (e) => {
|
|
@@ -10687,14 +10715,14 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10687
10715
|
"is-expanded": !J.value,
|
|
10688
10716
|
"is-transitioning": Y.value
|
|
10689
10717
|
}]]),
|
|
10690
|
-
style: x(
|
|
10718
|
+
style: x(ee.value),
|
|
10691
10719
|
onTransitionend: ge
|
|
10692
10720
|
}, [
|
|
10693
10721
|
s("div", {
|
|
10694
10722
|
ref_key: "sidebarPanel",
|
|
10695
10723
|
ref: E,
|
|
10696
10724
|
class: "sidebar-panel"
|
|
10697
|
-
}, [s("div", null, [
|
|
10725
|
+
}, [s("div", null, [I(h) ? (D(), o("div", Nf, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": J.value }]]) }, [s("div", Pf, [e.organizations && e.organizations.length ? (D(), o("div", Ff, [u(Zn, {
|
|
10698
10726
|
modelValue: fe.value,
|
|
10699
10727
|
"onUpdate:modelValue": r[0] ||= (e) => fe.value = e,
|
|
10700
10728
|
position: J.value ? "right-top" : "bottom-left",
|
|
@@ -10714,11 +10742,11 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10714
10742
|
key: 0,
|
|
10715
10743
|
src: se.value.avatarUrl,
|
|
10716
10744
|
alt: "Organization Avatar"
|
|
10717
|
-
}, null, 8, zf)) : (D(), o("span", Bf,
|
|
10745
|
+
}, null, 8, zf)) : (D(), o("span", Bf, F(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
10718
10746
|
class: "pv-text-title-lg pv-truncate",
|
|
10719
10747
|
"data-sidebar-expanded-content": "",
|
|
10720
10748
|
title: se.value?.label
|
|
10721
|
-
},
|
|
10749
|
+
}, F(se.value?.label), 9, Vf)]), u(Z, {
|
|
10722
10750
|
name: "chevron-down",
|
|
10723
10751
|
class: "pv-icon-16",
|
|
10724
10752
|
"data-sidebar-expanded-content": ""
|
|
@@ -10730,10 +10758,10 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10730
10758
|
key: 0,
|
|
10731
10759
|
src: e.avatarUrl,
|
|
10732
10760
|
alt: "Organization Avatar"
|
|
10733
|
-
}, null, 8, qf)) : (D(), o("span", Jf,
|
|
10761
|
+
}, null, 8, qf)) : (D(), o("span", Jf, F(e.label.slice(0, 1)), 1))]), s("span", {
|
|
10734
10762
|
class: "pv-truncate pv-flex-item",
|
|
10735
10763
|
title: e.label
|
|
10736
|
-
},
|
|
10764
|
+
}, F(e.label), 9, Yf)], 8, Gf)], 8, Wf), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
10737
10765
|
key: e.value,
|
|
10738
10766
|
style: { "padding-left": "0.5rem" },
|
|
10739
10767
|
"data-active": e.active || void 0
|
|
@@ -10744,7 +10772,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10744
10772
|
}, [u(Z, { name: "corner-down-right" }), s("span", {
|
|
10745
10773
|
class: "pv-truncate",
|
|
10746
10774
|
title: e.label
|
|
10747
|
-
},
|
|
10775
|
+
}, F(e.label), 9, Qf)], 8, Zf)], 8, Xf))), 128))], 64))), 128))])])]),
|
|
10748
10776
|
_: 1
|
|
10749
10777
|
}, 8, [
|
|
10750
10778
|
"modelValue",
|
|
@@ -10765,11 +10793,11 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10765
10793
|
variant: "ghost",
|
|
10766
10794
|
onClick: he
|
|
10767
10795
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
10768
|
-
content: W(() => [l(
|
|
10796
|
+
content: W(() => [l(F(J.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
10769
10797
|
_: 1
|
|
10770
10798
|
}))], 2)]), s("div", $f, [
|
|
10771
|
-
|
|
10772
|
-
e.navItems && e.navItems.length ? (D(), o("ul", tp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [
|
|
10799
|
+
I(m) ? (D(), o("div", ep, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
10800
|
+
e.navItems && e.navItems.length ? (D(), o("ul", tp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [ne(e) ? (D(), i(Zn, {
|
|
10773
10801
|
key: 0,
|
|
10774
10802
|
modelValue: O.value[e.value],
|
|
10775
10803
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -10784,7 +10812,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10784
10812
|
}, {
|
|
10785
10813
|
trigger: W(() => [(D(), i(N(e.url ? "a" : "button"), _({
|
|
10786
10814
|
ref_for: !0,
|
|
10787
|
-
ref: (t) =>
|
|
10815
|
+
ref: (t) => re(I(L), e.value, t),
|
|
10788
10816
|
class: "pv-nav-list-item",
|
|
10789
10817
|
href: e.url,
|
|
10790
10818
|
type: e.url ? void 0 : "button"
|
|
@@ -10799,7 +10827,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10799
10827
|
key: 0,
|
|
10800
10828
|
name: e.icon,
|
|
10801
10829
|
class: "pv-nav-icon"
|
|
10802
|
-
}, null, 8, ["name"])) : a("", !0), s("span", np, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
10830
|
+
}, null, 8, ["name"])) : a("", !0), s("span", np, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", rp, F(e.badge.toUpperCase()), 1)) : a("", !0)])]),
|
|
10803
10831
|
_: 2
|
|
10804
10832
|
}, 1040, [
|
|
10805
10833
|
"href",
|
|
@@ -10812,7 +10840,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10812
10840
|
]))]),
|
|
10813
10841
|
content: W(() => [s("div", {
|
|
10814
10842
|
ref_for: !0,
|
|
10815
|
-
ref: (t) =>
|
|
10843
|
+
ref: (t) => re(I(P), e.value, t),
|
|
10816
10844
|
class: "pv-sidebar-hover-panel",
|
|
10817
10845
|
onClick: (t) => K(t, e.value),
|
|
10818
10846
|
onKeydown: (t) => oe(t, e.value)
|
|
@@ -10845,8 +10873,8 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10845
10873
|
key: 0,
|
|
10846
10874
|
name: e.icon,
|
|
10847
10875
|
class: "pv-nav-icon"
|
|
10848
|
-
}, null, 8, ["name"])) : a("", !0), s("span", op, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
10849
|
-
content: W(() => [s("div", cp, [s("ul", lp, [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 }]) },
|
|
10876
|
+
}, null, 8, ["name"])) : a("", !0), s("span", op, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", sp, F(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, ap)]),
|
|
10877
|
+
content: W(() => [s("div", cp, [s("ul", lp, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", fp, F(e.badge.toUpperCase()), 1)) : a("", !0)], 16, dp)], 8, up)])])]),
|
|
10850
10878
|
_: 2
|
|
10851
10879
|
}, 1032, [
|
|
10852
10880
|
"use-teleport",
|
|
@@ -10879,14 +10907,14 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10879
10907
|
key: 0,
|
|
10880
10908
|
name: e.icon,
|
|
10881
10909
|
class: "pv-nav-icon"
|
|
10882
|
-
}, null, 8, ["name"])) : a("", !0), s("span", mp,
|
|
10910
|
+
}, null, 8, ["name"])) : a("", !0), s("span", mp, F(e.label), 1)], 40, pp)]),
|
|
10883
10911
|
default: W(() => [s("div", hp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
10884
10912
|
key: e.value,
|
|
10885
10913
|
href: e.url
|
|
10886
10914
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
10887
10915
|
"aria-current": e.active ? "page" : void 0,
|
|
10888
10916
|
title: e.label
|
|
10889
|
-
}), [s("span", _p, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) },
|
|
10917
|
+
}), [s("span", _p, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", vp, F(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, gp))), 128))])]),
|
|
10890
10918
|
_: 2
|
|
10891
10919
|
}, 1032, [
|
|
10892
10920
|
"modelValue",
|
|
@@ -10897,14 +10925,14 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10897
10925
|
content: W(() => [s("div", yp, [s("ul", bp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
10898
10926
|
key: e.value,
|
|
10899
10927
|
"data-active": e.active || void 0
|
|
10900
|
-
}, [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 }]) },
|
|
10928
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, F(e.label), 3), e.badge ? (D(), o("span", Cp, F(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Sp)], 8, xp))), 128))])])]),
|
|
10901
10929
|
_: 2
|
|
10902
10930
|
}, 1032, [
|
|
10903
10931
|
"use-teleport",
|
|
10904
10932
|
"teleport-location",
|
|
10905
10933
|
"disabled"
|
|
10906
10934
|
]))]))), 128))])) : a("", !0),
|
|
10907
|
-
s("div", wp, [
|
|
10935
|
+
s("div", wp, [I(g) ? (D(), i(Zn, {
|
|
10908
10936
|
key: 0,
|
|
10909
10937
|
modelValue: X.value,
|
|
10910
10938
|
"onUpdate:modelValue": r[1] ||= (e) => X.value = e,
|
|
@@ -10935,7 +10963,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10935
10963
|
"show-on-hover",
|
|
10936
10964
|
"use-teleport",
|
|
10937
10965
|
"teleport-location"
|
|
10938
|
-
])) : a("", !0),
|
|
10966
|
+
])) : a("", !0), I(b) && e.profile ? (D(), i(Zn, {
|
|
10939
10967
|
key: 1,
|
|
10940
10968
|
modelValue: pe.value,
|
|
10941
10969
|
"onUpdate:modelValue": r[2] ||= (e) => pe.value = e,
|
|
@@ -10958,7 +10986,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10958
10986
|
key: 0,
|
|
10959
10987
|
src: e.profile.avatarUrl,
|
|
10960
10988
|
alt: ""
|
|
10961
|
-
}, null, 8, kp)) : (D(), o("span", Ap,
|
|
10989
|
+
}, null, 8, kp)) : (D(), o("span", Ap, F(e.profile.name.slice(0, 1)), 1))]), s("span", jp, F(e.profile.name), 1)], 8, Dp)]),
|
|
10962
10990
|
content: W(() => [s("div", Mp, [j(n.$slots, "sidebar-profile-content")])]),
|
|
10963
10991
|
_: 3
|
|
10964
10992
|
}, 8, [
|
|
@@ -10989,7 +11017,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10989
11017
|
}),
|
|
10990
11018
|
emits: /* @__PURE__ */ g(["handle-select"], ["update:modelValue"]),
|
|
10991
11019
|
setup(e, { emit: n }) {
|
|
10992
|
-
let r =
|
|
11020
|
+
let r = z(e, "modelValue"), c = n, u = (e, t) => {
|
|
10993
11021
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
10994
11022
|
};
|
|
10995
11023
|
return (n, c) => (D(), o("ul", Ip, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
@@ -11001,7 +11029,7 @@ var Nd = ["aria-label"], Pd = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11001
11029
|
}, [e.icon ? (D(), i(Z, {
|
|
11002
11030
|
key: 0,
|
|
11003
11031
|
name: e.icon
|
|
11004
|
-
}, null, 8, ["name"])) : a("", !0), l(" " +
|
|
11032
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + F(e.label), 1)], 8, Rp)], 8, Lp))), 128))]));
|
|
11005
11033
|
}
|
|
11006
11034
|
}), Bp = { class: "pv-flex" }, Vp = ["data-clickable", "onClick"], Hp = /* @__PURE__ */ d({
|
|
11007
11035
|
__name: "PvStepper",
|