@turquoisehealth/pit-viper 2.206.2 → 2.207.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 +0 -10
- package/_site/assets/css/pit-viper-v2.css +0 -10
- 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-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tag-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +14 -7
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +20 -3
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvTag/PvTag.vue.d.ts +6 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +515 -477
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +14 -7
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +20 -3
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvTag/PvTag.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/widgetOptions.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +26 -2
- package/pv-components/dist/vue/visualizations/components/visualizations/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1289 -1056
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +4 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +46 -34
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +5 -3
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +4 -1
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +359 -359
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +4 -2
- package/pv-components/dist/web/pv-components.iife.js +4 -4
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-split-button[data-v-3689aaf0]{--flex-gap:0}[data-v-3689aaf0] .pv-split-button__action{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}[data-v-3689aaf0] .pv-split-button__menu-trigger{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;position:relative}[data-v-3689aaf0] .pv-split-button__menu-content>*{justify-content:flex-start;width:100%}[data-v-3689aaf0] .pv-split-button__menu-trigger:before{content:"";background-color:var(--color-border,#e3e7ea);pointer-events:none;width:1px;height:50%;min-height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)translate(-150%)}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-aefd2b6b]{background-color:#0000;border:none}.pv-icon-button[data-v-aefd2b6b]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-aefd2b6b]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-filter-panel-option-row[data-v-7e00be1a]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-7e00be1a]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-7e00be1a]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-7e00be1a]{--lines:1}.pv-filter-panel-option-row-right[data-v-7e00be1a]{text-align:right;flex:none}summary[data-v-4478d3f6]{background-image:none;padding-right:2px}[data-v-4478d3f6] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-4478d3f6]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel[data-v-14259e0c]{height:100%;max-height:inherit}.pv-filter-panel-actions[data-v-14259e0c],.pv-filter-panel-header[data-v-14259e0c],.pv-filter-panel-suggestion-tags[data-v-14259e0c]{--flex-gap:.5rem}.pv-filter-panel-body[data-v-14259e0c],.pv-filter-panel-filters-view[data-v-14259e0c]{--flex-align:stretch;--flex-gap:0}.pv-filter-panel-body[data-v-14259e0c]{scrollbar-color:var(--color-border,#c1c1c1) transparent;scrollbar-gutter:stable;scrollbar-width:thin;flex:auto;min-height:0;overflow-y:auto}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar{width:8px}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-track{background:0 0}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-thumb{background:var(--color-border,#c1c1c1);border-radius:8px}.pv-filter-panel-body[data-v-14259e0c]::-webkit-scrollbar-thumb:hover{background:var(--color-text-subdued,#7c7c7c)}.pv-filter-panel-empty[data-v-14259e0c],.pv-filter-panel-footer[data-v-14259e0c],.pv-filter-panel-suggestions[data-v-14259e0c]{padding:12px}.pv-filter-panel-filter-list[data-v-14259e0c]{--flex-align:stretch;--flex-gap:8px;padding-top:8px}.pv-filter-panel-footer[data-v-14259e0c]{--flex-justify:flex-end;background:var(--color-background-body,#fff);z-index:1;flex:none;margin-top:auto;position:sticky;bottom:0}.pv-filter-panel-header[data-v-14259e0c]{--flex-align:center;padding:12px}.pv-filter-panel-mode-control[data-v-14259e0c]{flex:auto;min-width:0}.pv-filter-panel-modal-footer[data-v-14259e0c]{--flex-justify:flex-end}.pv-filter-panel-section-title[data-v-14259e0c]{margin:0}.pv-filter-panel-suggestions[data-v-14259e0c]{--flex-align:stretch}.pv-filter-panel-suggestion-tags[data-v-14259e0c]{--flex-wrap:wrap}.pv-filter-modal-rail[data-v-f6b1c07d]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-f6b1c07d]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-f6b1c07d]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-f6b1c07d]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-e2a82095]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-L,8px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-e2a82095]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-e2a82095]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-e2a82095]:focus-within{border:2px solid #36c5ba}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, onUpdated as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as
|
|
3
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, onUpdated as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as ee, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useAttrs as te, useId as F, useModel as I, useSlots as L, useTemplateRef as R, vModelCheckbox as z, vModelDynamic as ne, vModelRadio as re, vModelText as B, vShow as V, watch as H, watchEffect as ie, withCtx as U, withDirectives as W, withKeys as ae, withModifiers as G } from "vue";
|
|
4
4
|
import { onClickOutside as oe, onKeyStroke as se, useDebounceFn as K, useElementBounding as q, useElementHover as ce, useToggle as le, watchDebounced as ue } from "@vueuse/core";
|
|
5
5
|
import { vOnClickOutside as de } from "@vueuse/components";
|
|
6
6
|
import { useSortable as J } from "@vueuse/integrations/useSortable.mjs";
|
|
@@ -120,7 +120,7 @@ var Ne = {
|
|
|
120
120
|
return (e, t) => (E(), o("div", {
|
|
121
121
|
class: y(i.value),
|
|
122
122
|
"data-testid": "pv-counter-badge"
|
|
123
|
-
},
|
|
123
|
+
}, N(n.value), 3));
|
|
124
124
|
}
|
|
125
125
|
}), Z = (e, t) => {
|
|
126
126
|
let n = e.__vccOpts || e;
|
|
@@ -180,7 +180,7 @@ var Ne = {
|
|
|
180
180
|
name: e.leftIcon,
|
|
181
181
|
"data-testid": "pv-button-left-icon"
|
|
182
182
|
}, null, 8, ["name"])) : a("", !0),
|
|
183
|
-
e.label ? (E(), o("span", ze,
|
|
183
|
+
e.label ? (E(), o("span", ze, N(e.label), 1)) : a("", !0),
|
|
184
184
|
e.rightCounterBadge ? (E(), i(Le, {
|
|
185
185
|
key: 3,
|
|
186
186
|
value: e.rightCounterBadge,
|
|
@@ -985,7 +985,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
985
985
|
}),
|
|
986
986
|
emits: ["update:modelValue"],
|
|
987
987
|
setup(e) {
|
|
988
|
-
let t = e, c =
|
|
988
|
+
let t = e, c = I(e, "modelValue"), l = O(null), u = O(null), d = O(null), f = ce(l), p = ce(d), m = {
|
|
989
989
|
"top-center": "top",
|
|
990
990
|
"bottom-center": "bottom",
|
|
991
991
|
"center-left": "left",
|
|
@@ -1033,19 +1033,19 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1033
1033
|
}, k = r(() => {
|
|
1034
1034
|
let e = [d.value].filter(Boolean);
|
|
1035
1035
|
return e.push(".p-datepicker-panel"), t.ignoreClickOutsideClasses && e.push(...t.ignoreClickOutsideClasses.map((e) => `.${e}`)), e;
|
|
1036
|
-
}),
|
|
1036
|
+
}), ee = r(() => t.showOnHover ? t.disableInteractive ? f.value : f.value || p.value : !1), j = () => {
|
|
1037
1037
|
t.showOnHover || D(S ? !1 : !c.value);
|
|
1038
|
-
},
|
|
1038
|
+
}, M = () => {
|
|
1039
1039
|
t.disableClickOutsideToClose || D(!1);
|
|
1040
1040
|
};
|
|
1041
|
-
return H(
|
|
1041
|
+
return H(ee, (e) => {
|
|
1042
1042
|
t.showOnHover && D(e);
|
|
1043
1043
|
}), w(() => {
|
|
1044
1044
|
T();
|
|
1045
1045
|
}), (r, u) => W((E(), o("div", jn, [s("div", {
|
|
1046
1046
|
ref_key: "triggerWrapper",
|
|
1047
1047
|
ref: l,
|
|
1048
|
-
onClick:
|
|
1048
|
+
onClick: j
|
|
1049
1049
|
}, [A(r.$slots, "trigger")], 512), r.$slots.content ? (E(), i(n, {
|
|
1050
1050
|
key: 0,
|
|
1051
1051
|
to: e.teleportLocation,
|
|
@@ -1055,7 +1055,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1055
1055
|
ref_key: "floating",
|
|
1056
1056
|
ref: d,
|
|
1057
1057
|
style: x(b.value)
|
|
1058
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1058
|
+
}, [A(r.$slots, "content")], 4), [[V, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[P(de), [M, { ignore: k.value }]]]);
|
|
1059
1059
|
}
|
|
1060
1060
|
}), Nn = ["data-variant"], Pn = /* @__PURE__ */ d({
|
|
1061
1061
|
__name: "PvTooltipV2",
|
|
@@ -1085,7 +1085,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1085
1085
|
},
|
|
1086
1086
|
setup(e) {
|
|
1087
1087
|
return (t, n) => (E(), i(Mn, b(p(t.$props)), c({
|
|
1088
|
-
trigger: U(() => [A(t.$slots, "trigger", {}, () => [s("p", null,
|
|
1088
|
+
trigger: U(() => [A(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
|
|
1089
1089
|
_: 2
|
|
1090
1090
|
}, [t.$slots.content || e.description ? {
|
|
1091
1091
|
name: "content",
|
|
@@ -1093,7 +1093,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1093
1093
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1094
1094
|
role: "tooltip",
|
|
1095
1095
|
"data-variant": e.variant
|
|
1096
|
-
}, [A(t.$slots, "content", {}, () => [l(
|
|
1096
|
+
}, [A(t.$slots, "content", {}, () => [l(N(e.description), 1)])], 10, Nn)]),
|
|
1097
1097
|
key: "0"
|
|
1098
1098
|
} : void 0]), 1040));
|
|
1099
1099
|
}
|
|
@@ -1142,7 +1142,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1142
1142
|
_: 2
|
|
1143
1143
|
}, [e.tooltipText ? {
|
|
1144
1144
|
name: "content",
|
|
1145
|
-
fn: U(() => [l(
|
|
1145
|
+
fn: U(() => [l(N(e.tooltipText), 1)]),
|
|
1146
1146
|
key: "0"
|
|
1147
1147
|
} : void 0]), 1032, ["position"]));
|
|
1148
1148
|
}
|
|
@@ -1174,7 +1174,7 @@ var jn = { style: { width: "fit-content" } }, Mn = /* @__PURE__ */ d({
|
|
|
1174
1174
|
key: 0,
|
|
1175
1175
|
class: "pv-text-brand",
|
|
1176
1176
|
name: "ai-filled"
|
|
1177
|
-
})), e.label ? (E(), o("span", Rn,
|
|
1177
|
+
})), e.label ? (E(), o("span", Rn, N(e.label), 1)) : a("", !0)], 64))], 10, Ln));
|
|
1178
1178
|
}
|
|
1179
1179
|
});
|
|
1180
1180
|
//#endregion
|
|
@@ -1193,14 +1193,14 @@ function Hn(e, t) {
|
|
|
1193
1193
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1194
1194
|
}
|
|
1195
1195
|
function Un(e, t = {}) {
|
|
1196
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Me(), l = i ??
|
|
1196
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Me(), l = i ?? L(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
1197
1197
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
1198
1198
|
}, h = () => {
|
|
1199
1199
|
if (!c.value) {
|
|
1200
1200
|
d.value = !1;
|
|
1201
1201
|
return;
|
|
1202
1202
|
}
|
|
1203
|
-
let t =
|
|
1203
|
+
let t = P(n);
|
|
1204
1204
|
if (!t) {
|
|
1205
1205
|
d.value = !1;
|
|
1206
1206
|
return;
|
|
@@ -1214,7 +1214,7 @@ function Un(e, t = {}) {
|
|
|
1214
1214
|
}, g = () => {
|
|
1215
1215
|
if (!c.value) return;
|
|
1216
1216
|
m();
|
|
1217
|
-
let t =
|
|
1217
|
+
let t = P(n);
|
|
1218
1218
|
if (!t) {
|
|
1219
1219
|
d.value = !1;
|
|
1220
1220
|
return;
|
|
@@ -1227,7 +1227,7 @@ function Un(e, t = {}) {
|
|
|
1227
1227
|
characterData: !0
|
|
1228
1228
|
}));
|
|
1229
1229
|
};
|
|
1230
|
-
return C(g), S(m), H(() =>
|
|
1230
|
+
return C(g), S(m), H(() => P(n), () => {
|
|
1231
1231
|
c.value && g();
|
|
1232
1232
|
}), {
|
|
1233
1233
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -1261,14 +1261,14 @@ var Wn = [
|
|
|
1261
1261
|
return (n, r) => (E(), o("div", {
|
|
1262
1262
|
"data-testid": "pv-tooltip",
|
|
1263
1263
|
class: y([{
|
|
1264
|
-
"pv-tooltip":
|
|
1265
|
-
"pv-tooltip-small":
|
|
1264
|
+
"pv-tooltip": P(t),
|
|
1265
|
+
"pv-tooltip-small": P(t) && e.size === "sm"
|
|
1266
1266
|
}]),
|
|
1267
1267
|
"data-position": e.tooltipPosition,
|
|
1268
1268
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
1269
1269
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
1270
|
-
"aria-labelledby":
|
|
1271
|
-
}, [A(n.$slots, "label"),
|
|
1270
|
+
"aria-labelledby": P(t) ? e.ariaLabelledBy : void 0
|
|
1271
|
+
}, [A(n.$slots, "label"), P(t) ? (E(), o("div", {
|
|
1272
1272
|
key: 0,
|
|
1273
1273
|
role: "tooltip",
|
|
1274
1274
|
id: e.ariaLabelledBy,
|
|
@@ -1314,7 +1314,7 @@ var Wn = [
|
|
|
1314
1314
|
delay: e.delay,
|
|
1315
1315
|
size: n.value
|
|
1316
1316
|
}, {
|
|
1317
|
-
"tooltip-content": U(() => [s("p", qn,
|
|
1317
|
+
"tooltip-content": U(() => [s("p", qn, N(e.tooltipText), 1)]),
|
|
1318
1318
|
label: U(() => [u(Q, b(p(a.value)), null, 16)]),
|
|
1319
1319
|
_: 1
|
|
1320
1320
|
}, 8, [
|
|
@@ -1413,7 +1413,7 @@ var Wn = [
|
|
|
1413
1413
|
"pv-tag-yellow": t.variant == "release-alpha",
|
|
1414
1414
|
"pv-tag-purple": t.variant == "release-beta"
|
|
1415
1415
|
});
|
|
1416
|
-
return (e, t) => (E(), o("div", { class: y(i.value) },
|
|
1416
|
+
return (e, t) => (E(), o("div", { class: y(i.value) }, N(n.value), 3));
|
|
1417
1417
|
}
|
|
1418
1418
|
}), $n = ["data-style"], er = /* @__PURE__ */ d({
|
|
1419
1419
|
__name: "PvTag",
|
|
@@ -1425,7 +1425,8 @@ var Wn = [
|
|
|
1425
1425
|
label: {},
|
|
1426
1426
|
showClear: { type: Boolean },
|
|
1427
1427
|
rounded: { type: Boolean },
|
|
1428
|
-
spine: { type: Boolean }
|
|
1428
|
+
spine: { type: Boolean },
|
|
1429
|
+
rumRemoveActionName: {}
|
|
1429
1430
|
},
|
|
1430
1431
|
emits: ["handle-close", "handle-click"],
|
|
1431
1432
|
setup(e) {
|
|
@@ -1467,14 +1468,15 @@ var Wn = [
|
|
|
1467
1468
|
name: e.icon,
|
|
1468
1469
|
size: 12
|
|
1469
1470
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
1470
|
-
s("span", { class: y(["pv-truncate", { "pv-underline-dotted": e.spine }]) },
|
|
1471
|
+
s("span", { class: y(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, N(e.label), 3),
|
|
1471
1472
|
e.showClear ? (E(), i(X, {
|
|
1472
1473
|
key: 1,
|
|
1473
1474
|
"data-testid": "pv-tag-close-icon",
|
|
1474
1475
|
size: 12,
|
|
1475
1476
|
name: "close",
|
|
1477
|
+
"data-dd-action-name": e.rumRemoveActionName,
|
|
1476
1478
|
onClick: r[0] ||= G((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
1477
|
-
})) : a("", !0)
|
|
1479
|
+
}, null, 8, ["data-dd-action-name"])) : a("", !0)
|
|
1478
1480
|
], 14, $n));
|
|
1479
1481
|
}
|
|
1480
1482
|
}), tr = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
@@ -1527,7 +1529,7 @@ var Wn = [
|
|
|
1527
1529
|
name: e.icon,
|
|
1528
1530
|
size: 12
|
|
1529
1531
|
}, null, 8, ["name"])) : a("", !0),
|
|
1530
|
-
s("span", null,
|
|
1532
|
+
s("span", null, N(e.label), 1)
|
|
1531
1533
|
], 2));
|
|
1532
1534
|
}
|
|
1533
1535
|
}), [["__scopeId", "data-v-0324bf60"]]), nr = ["data-align"], rr = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
@@ -1544,7 +1546,7 @@ var Wn = [
|
|
|
1544
1546
|
},
|
|
1545
1547
|
emits: ["list-order-updated"],
|
|
1546
1548
|
setup(e, { expose: t, emit: n }) {
|
|
1547
|
-
let r = O(null), i =
|
|
1549
|
+
let r = O(null), i = R("popoverList"), a = e, s = n;
|
|
1548
1550
|
return a.isSortable && a.isList && J(i, [], {
|
|
1549
1551
|
animation: 150,
|
|
1550
1552
|
onUpdate: () => {
|
|
@@ -1660,7 +1662,7 @@ var Wn = [
|
|
|
1660
1662
|
"alignment",
|
|
1661
1663
|
"isList",
|
|
1662
1664
|
"isSortable"
|
|
1663
|
-
])], 8, ["to", "disabled"]))])), [[
|
|
1665
|
+
])], 8, ["to", "disabled"]))])), [[P(de), w]]);
|
|
1664
1666
|
}
|
|
1665
1667
|
}), [["__scopeId", "data-v-aefd2b6b"]]), cr = { class: "pv-popover-menu" }, lr = /* @__PURE__ */ d({
|
|
1666
1668
|
__name: "PvPopoverMenu",
|
|
@@ -1689,7 +1691,7 @@ var Wn = [
|
|
|
1689
1691
|
}),
|
|
1690
1692
|
emits: ["update:modelValue"],
|
|
1691
1693
|
setup(e) {
|
|
1692
|
-
let n =
|
|
1694
|
+
let n = I(e, "modelValue"), r = (e) => {
|
|
1693
1695
|
e.disabled || (n.value = e.value);
|
|
1694
1696
|
};
|
|
1695
1697
|
return (a, s) => (E(), o("div", { class: y(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(E(!0), o(t, null, k(e.options, (e) => (E(), i(Pn, {
|
|
@@ -1721,7 +1723,7 @@ var Wn = [
|
|
|
1721
1723
|
_: 2
|
|
1722
1724
|
}, [e.disabledReason ? {
|
|
1723
1725
|
name: "content",
|
|
1724
|
-
fn: U(() => [l(
|
|
1726
|
+
fn: U(() => [l(N(e.disabledReason), 1)]),
|
|
1725
1727
|
key: "0"
|
|
1726
1728
|
} : void 0]), 1024))), 128))], 2));
|
|
1727
1729
|
}
|
|
@@ -1747,7 +1749,7 @@ var Wn = [
|
|
|
1747
1749
|
style: { cursor: "pointer" },
|
|
1748
1750
|
onClick: (e) => i(t.value),
|
|
1749
1751
|
"data-active": e.modelValue === t.value ? !0 : null
|
|
1750
|
-
}, [s("button", pr,
|
|
1752
|
+
}, [s("button", pr, N(t.label), 1)], 8, fr))), 128))])]));
|
|
1751
1753
|
}
|
|
1752
1754
|
}), [["__scopeId", "data-v-498bf523"]]), hr = {
|
|
1753
1755
|
class: "pv-flex",
|
|
@@ -1814,7 +1816,7 @@ var Wn = [
|
|
|
1814
1816
|
}),
|
|
1815
1817
|
emits: ["update:modelValue"],
|
|
1816
1818
|
setup(e) {
|
|
1817
|
-
let t = e, n =
|
|
1819
|
+
let t = e, n = R("dialog"), r = I(e, "modelValue");
|
|
1818
1820
|
H(() => r.value, () => {
|
|
1819
1821
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1820
1822
|
});
|
|
@@ -1829,7 +1831,7 @@ var Wn = [
|
|
|
1829
1831
|
style: { "--max-width": "480px" },
|
|
1830
1832
|
onClose: i,
|
|
1831
1833
|
onClick: c
|
|
1832
|
-
}, [s("div", vr, [e.hideHeader ? a("", !0) : (E(), o("div", yr, [s("span", br,
|
|
1834
|
+
}, [s("div", vr, [e.hideHeader ? a("", !0) : (E(), o("div", yr, [s("span", br, N(e.header), 1), e.subheader ? (E(), o("span", xr, N(e.subheader), 1)) : a("", !0)])), A(t.$slots, "body")]), e.hideFooter ? a("", !0) : (E(), o("div", Sr, [A(t.$slots, "footer")]))], 544));
|
|
1833
1835
|
}
|
|
1834
1836
|
}), wr = /* @__PURE__ */ function(e) {
|
|
1835
1837
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
@@ -1848,12 +1850,12 @@ var Wn = [
|
|
|
1848
1850
|
return (t, n) => (E(), o("div", {
|
|
1849
1851
|
"data-testid": "pv-banner",
|
|
1850
1852
|
class: y([{
|
|
1851
|
-
"pv-banner-primary": e.variant ===
|
|
1852
|
-
"pv-banner-secondary": e.variant ===
|
|
1853
|
-
"pv-banner-tertiary": e.variant ===
|
|
1854
|
-
"pv-flex pv-space-between": e.orientation ===
|
|
1853
|
+
"pv-banner-primary": e.variant === P(Tr).Primary,
|
|
1854
|
+
"pv-banner-secondary": e.variant === P(Tr).Secondary,
|
|
1855
|
+
"pv-banner-tertiary": e.variant === P(Tr).Tertiary,
|
|
1856
|
+
"pv-flex pv-space-between": e.orientation === P(wr).Horizontal
|
|
1855
1857
|
}])
|
|
1856
|
-
}, [s("div", { class: y(["pv-flex", { "pv-stack-16": e.orientation ===
|
|
1858
|
+
}, [s("div", { class: y(["pv-flex", { "pv-stack-16": e.orientation === P(wr).Vertical && t.$slots.action }]) }, [
|
|
1857
1859
|
A(t.$slots, "left"),
|
|
1858
1860
|
e.icon ? (E(), i(X, {
|
|
1859
1861
|
key: 0,
|
|
@@ -1868,12 +1870,12 @@ var Wn = [
|
|
|
1868
1870
|
"font-weight": "500"
|
|
1869
1871
|
},
|
|
1870
1872
|
title: e.label
|
|
1871
|
-
},
|
|
1873
|
+
}, N(e.label), 11, Er), e.description ? (E(), o("p", {
|
|
1872
1874
|
key: 0,
|
|
1873
1875
|
class: "pv-text-body-sm pv-line-clamp",
|
|
1874
1876
|
style: { "--lines": "2" },
|
|
1875
1877
|
title: e.description
|
|
1876
|
-
},
|
|
1878
|
+
}, N(e.description), 9, Dr)) : a("", !0)])
|
|
1877
1879
|
], 2), s("div", Or, [A(t.$slots, "action")])], 2));
|
|
1878
1880
|
}
|
|
1879
1881
|
}), Ar = {
|
|
@@ -1917,8 +1919,8 @@ var Wn = [
|
|
|
1917
1919
|
class: "pv-flex-vertical",
|
|
1918
1920
|
style: x(c.value)
|
|
1919
1921
|
}, [
|
|
1920
|
-
e.header ? (E(), o("h3", jr,
|
|
1921
|
-
e.description ? (E(), o("p", Mr,
|
|
1922
|
+
e.header ? (E(), o("h3", jr, N(e.header), 1)) : a("", !0),
|
|
1923
|
+
e.description ? (E(), o("p", Mr, N(e.description), 1)) : a("", !0),
|
|
1922
1924
|
s("div", { class: y(n.value ? "pv-flex" : "pv-flex-vertical") }, [A(t.$slots, "actions")], 2)
|
|
1923
1925
|
], 4)], 6));
|
|
1924
1926
|
}
|
|
@@ -1957,7 +1959,7 @@ var Wn = [
|
|
|
1957
1959
|
"size",
|
|
1958
1960
|
"name"
|
|
1959
1961
|
]),
|
|
1960
|
-
s("span", { class: y({ "pv-underline-dotted": e.spine }) },
|
|
1962
|
+
s("span", { class: y({ "pv-underline-dotted": e.spine }) }, N(e.companyName), 3),
|
|
1961
1963
|
e.showClear ? (E(), i(X, {
|
|
1962
1964
|
key: 0,
|
|
1963
1965
|
"data-testid": "pv-company-tag-close-icon",
|
|
@@ -2007,7 +2009,7 @@ var Wn = [
|
|
|
2007
2009
|
name: e.icon,
|
|
2008
2010
|
size: 12,
|
|
2009
2011
|
class: y(e.iconClasses)
|
|
2010
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span", Ir,
|
|
2012
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", Ir, N(e.label), 1)], 10, Fr));
|
|
2011
2013
|
}
|
|
2012
2014
|
}), Rr = ["open"], zr = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
2013
2015
|
__name: "PvAccordion",
|
|
@@ -2034,7 +2036,7 @@ var Wn = [
|
|
|
2034
2036
|
}),
|
|
2035
2037
|
emits: /* @__PURE__ */ g(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
|
|
2036
2038
|
setup(e) {
|
|
2037
|
-
let n = e, c =
|
|
2039
|
+
let n = e, c = I(e, "modelValue");
|
|
2038
2040
|
n.defaultOpen !== void 0 && (c.value = n.defaultOpen);
|
|
2039
2041
|
let l = (e) => {
|
|
2040
2042
|
c.value = e.target.open;
|
|
@@ -2057,7 +2059,7 @@ var Wn = [
|
|
|
2057
2059
|
key: 0,
|
|
2058
2060
|
name: d.value
|
|
2059
2061
|
}, null, 8, ["name"])) : a("", !0),
|
|
2060
|
-
e.enableTriggerSlot ? A(n.$slots, "trigger", { key: 1 }, void 0, !0) : (E(), o(t, { key: 2 }, [s("span", null,
|
|
2062
|
+
e.enableTriggerSlot ? A(n.$slots, "trigger", { key: 1 }, void 0, !0) : (E(), o(t, { key: 2 }, [s("span", null, N(e.header), 1), e.counter ? (E(), i(Le, {
|
|
2061
2063
|
key: 0,
|
|
2062
2064
|
value: e.counter,
|
|
2063
2065
|
variant: "secondary",
|
|
@@ -2091,7 +2093,7 @@ var Wn = [
|
|
|
2091
2093
|
}),
|
|
2092
2094
|
emits: ["update:modelValue"],
|
|
2093
2095
|
setup(e, { expose: t }) {
|
|
2094
|
-
let n = e, i =
|
|
2096
|
+
let n = e, i = R("search-input"), c = I(e, "modelValue"), l = r(() => ({
|
|
2095
2097
|
"pv-input-search": !0,
|
|
2096
2098
|
"pv-full-width": !0,
|
|
2097
2099
|
"pv-input-padded-end": !0
|
|
@@ -2109,7 +2111,7 @@ var Wn = [
|
|
|
2109
2111
|
disabled: e.disabled,
|
|
2110
2112
|
class: y(l.value),
|
|
2111
2113
|
placeholder: e.placeholder
|
|
2112
|
-
}, null, 10, Vr), [[
|
|
2114
|
+
}, null, 10, Vr), [[B, c.value]]), e.displayShortcut ? (E(), o("kbd", Hr, N(Ur))) : a("", !0)]));
|
|
2113
2115
|
}
|
|
2114
2116
|
}), Gr = /* @__PURE__ */ d({
|
|
2115
2117
|
__name: "PvDatePicker",
|
|
@@ -2142,8 +2144,8 @@ var Wn = [
|
|
|
2142
2144
|
}),
|
|
2143
2145
|
emits: ["update:modelValue"],
|
|
2144
2146
|
setup(e) {
|
|
2145
|
-
let t =
|
|
2146
|
-
return (r, a) => (E(), i(
|
|
2147
|
+
let t = I(e, "modelValue"), n = e;
|
|
2148
|
+
return (r, a) => (E(), i(P(fe), _({
|
|
2147
2149
|
modelValue: t.value,
|
|
2148
2150
|
"onUpdate:modelValue": a[0] ||= (e) => t.value = e
|
|
2149
2151
|
}, n, {
|
|
@@ -2193,7 +2195,7 @@ var Kr = () => ({
|
|
|
2193
2195
|
"pv-text-body-xxs": e.size === "xs",
|
|
2194
2196
|
"pv-text-body-md": e.size === "sm"
|
|
2195
2197
|
}])
|
|
2196
|
-
},
|
|
2198
|
+
}, N(a.value), 3));
|
|
2197
2199
|
}
|
|
2198
2200
|
}), [["__scopeId", "data-v-8b02ee95"]]), Jr = {
|
|
2199
2201
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
@@ -2240,7 +2242,7 @@ var Kr = () => ({
|
|
|
2240
2242
|
}),
|
|
2241
2243
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
2242
2244
|
setup(e, { emit: n }) {
|
|
2243
|
-
let r = e, i = n, c =
|
|
2245
|
+
let r = e, i = n, c = R("sidePanel"), l = I(e, "searchInput"), d = I(e, "modelValue");
|
|
2244
2246
|
C(() => {
|
|
2245
2247
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
2246
2248
|
});
|
|
@@ -2266,14 +2268,14 @@ var Kr = () => ({
|
|
|
2266
2268
|
height: "100%"
|
|
2267
2269
|
}
|
|
2268
2270
|
}, [
|
|
2269
|
-
s("div", Jr, [n.$slots.header ? A(n.$slots, "header", { key: 0 }) : (E(), o(t, { key: 1 }, [s("div", Yr, [s("div", Xr, [s("span", Zr,
|
|
2271
|
+
s("div", Jr, [n.$slots.header ? A(n.$slots, "header", { key: 0 }) : (E(), o(t, { key: 1 }, [s("div", Yr, [s("div", Xr, [s("span", Zr, N(e.header), 1), u(Q, {
|
|
2270
2272
|
"left-icon": "close",
|
|
2271
2273
|
ariaLabel: "Close",
|
|
2272
2274
|
size: "md",
|
|
2273
2275
|
onClick: p,
|
|
2274
2276
|
"data-testid": "pv-side-panel-close-button",
|
|
2275
2277
|
variant: "ghost"
|
|
2276
|
-
})]), e.subheader ? (E(), o("span", Qr,
|
|
2278
|
+
})]), e.subheader ? (E(), o("span", Qr, N(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (E(), o("div", $r, [u(Wr, _({
|
|
2277
2279
|
"data-testid": "pv-side-panel-input-search",
|
|
2278
2280
|
modelValue: l.value,
|
|
2279
2281
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
@@ -2293,7 +2295,7 @@ var Kr = () => ({
|
|
|
2293
2295
|
}),
|
|
2294
2296
|
emits: ["update:modelValue"],
|
|
2295
2297
|
setup(e) {
|
|
2296
|
-
let n =
|
|
2298
|
+
let n = I(e, "modelValue"), r = (e) => {
|
|
2297
2299
|
n.value = e;
|
|
2298
2300
|
}, c = (e) => e.label === n.value ? !0 : null;
|
|
2299
2301
|
return (n, u) => (E(), o("ul", {
|
|
@@ -2314,7 +2316,7 @@ var Kr = () => ({
|
|
|
2314
2316
|
key: 0,
|
|
2315
2317
|
name: e.icon
|
|
2316
2318
|
}, null, 8, ["name"])) : a("", !0),
|
|
2317
|
-
l(" " +
|
|
2319
|
+
l(" " + N(e.label) + " ", 1),
|
|
2318
2320
|
e.counter ? (E(), i(Le, {
|
|
2319
2321
|
key: 1,
|
|
2320
2322
|
value: e.counter,
|
|
@@ -2334,7 +2336,7 @@ var Kr = () => ({
|
|
|
2334
2336
|
return (n, r) => (E(), o("ul", oi, [(E(!0), o(t, null, k(e.options, (e, n) => (E(), o("li", { key: `${n}-${e.label}` }, [e.href ? (E(), o("a", {
|
|
2335
2337
|
key: 0,
|
|
2336
2338
|
href: e.href
|
|
2337
|
-
},
|
|
2339
|
+
}, N(e.label), 9, si)) : (E(), o(t, { key: 1 }, [l(N(e.label), 1)], 64))]))), 128))]));
|
|
2338
2340
|
}
|
|
2339
2341
|
}), li = {
|
|
2340
2342
|
"data-testid": "pv-select-menu-control-panel",
|
|
@@ -2343,7 +2345,8 @@ var Kr = () => ({
|
|
|
2343
2345
|
__name: "PvMenuControlPanel",
|
|
2344
2346
|
props: {
|
|
2345
2347
|
variant: {},
|
|
2346
|
-
disabled: { type: Boolean }
|
|
2348
|
+
disabled: { type: Boolean },
|
|
2349
|
+
rumFilterName: {}
|
|
2347
2350
|
},
|
|
2348
2351
|
emits: [
|
|
2349
2352
|
"handle-select-all",
|
|
@@ -2352,19 +2355,22 @@ var Kr = () => ({
|
|
|
2352
2355
|
"handle-confirm"
|
|
2353
2356
|
],
|
|
2354
2357
|
setup(e) {
|
|
2358
|
+
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
2355
2359
|
return (n, r) => (E(), o("div", li, [e.variant === "select-clear" ? (E(), o(t, { key: 0 }, [u(Q, {
|
|
2356
2360
|
variant: "ghost",
|
|
2357
2361
|
"data-testid": "pv-select-menu-item-select-all",
|
|
2362
|
+
"data-dd-action-name": i.value,
|
|
2358
2363
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
2359
2364
|
label: "Select All",
|
|
2360
2365
|
disabled: e.disabled
|
|
2361
|
-
}, null, 8, ["disabled"]), u(Q, {
|
|
2366
|
+
}, null, 8, ["data-dd-action-name", "disabled"]), u(Q, {
|
|
2362
2367
|
label: "Clear All",
|
|
2363
2368
|
variant: "ghost",
|
|
2364
2369
|
"data-testid": "pv-select-menu-item-clear-all",
|
|
2370
|
+
"data-dd-action-name": s.value,
|
|
2365
2371
|
onClick: r[1] ||= (e) => n.$emit("handle-clear-all"),
|
|
2366
2372
|
disabled: e.disabled
|
|
2367
|
-
}, null, 8, ["disabled"])], 64)) : e.variant === "cancel-confirm" ? (E(), o(t, { key: 1 }, [u(Q, {
|
|
2373
|
+
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (E(), o(t, { key: 1 }, [u(Q, {
|
|
2368
2374
|
label: "Cancel",
|
|
2369
2375
|
variant: "ghost",
|
|
2370
2376
|
"data-testid": "pv-select-menu-item-cancel",
|
|
@@ -2411,7 +2417,7 @@ var Kr = () => ({
|
|
|
2411
2417
|
key: 0,
|
|
2412
2418
|
name: e.icon,
|
|
2413
2419
|
size: r[e.size]
|
|
2414
|
-
}, null, 8, ["name", "size"])) : e.initials ? (E(), o(t, { key: 1 }, [l(
|
|
2420
|
+
}, null, 8, ["name", "size"])) : e.initials ? (E(), o(t, { key: 1 }, [l(N(e.initials), 1)], 64)) : e.image ? (E(), o("img", {
|
|
2415
2421
|
key: 2,
|
|
2416
2422
|
src: e.image,
|
|
2417
2423
|
alt: e.alt ?? ""
|
|
@@ -2476,7 +2482,7 @@ var Kr = () => ({
|
|
|
2476
2482
|
disabled: e.disabled || e.isLoading
|
|
2477
2483
|
}, [
|
|
2478
2484
|
s("div", hi, [
|
|
2479
|
-
e.prefixLabel ? (E(), o("p", gi,
|
|
2485
|
+
e.prefixLabel ? (E(), o("p", gi, N(e.prefixLabel), 1)) : a("", !0),
|
|
2480
2486
|
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (E(), i(Le, {
|
|
2481
2487
|
key: 1,
|
|
2482
2488
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
@@ -2484,7 +2490,7 @@ var Kr = () => ({
|
|
|
2484
2490
|
variant: e.counterBadgeVariant,
|
|
2485
2491
|
size: "sm"
|
|
2486
2492
|
}, null, 8, ["value", "variant"])) : a("", !0),
|
|
2487
|
-
!e.isLoading && e.renderer && f.value ? (E(), i(
|
|
2493
|
+
!e.isLoading && e.renderer && f.value ? (E(), i(j(e.renderer), b(_({ key: 2 }, f.value)), null, 16)) : (E(), o(t, { key: 3 }, [
|
|
2488
2494
|
e.icon ? (E(), i(X, {
|
|
2489
2495
|
key: 0,
|
|
2490
2496
|
"data-testid": "pv-multi-select-button-icon",
|
|
@@ -2514,7 +2520,7 @@ var Kr = () => ({
|
|
|
2514
2520
|
key: 3,
|
|
2515
2521
|
class: "pv-truncate pv-select-button-trigger-label",
|
|
2516
2522
|
title: d.value
|
|
2517
|
-
},
|
|
2523
|
+
}, N(d.value), 9, _i)) : a("", !0)
|
|
2518
2524
|
], 64)),
|
|
2519
2525
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (E(), i(Le, {
|
|
2520
2526
|
key: 4,
|
|
@@ -2680,11 +2686,11 @@ var ki = {
|
|
|
2680
2686
|
}, [s("span", {
|
|
2681
2687
|
ref_key: "mainText",
|
|
2682
2688
|
ref: c
|
|
2683
|
-
},
|
|
2689
|
+
}, N(e.text), 513), e.subduedText ? (E(), o("span", {
|
|
2684
2690
|
key: 0,
|
|
2685
2691
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
2686
2692
|
style: { "padding-left": "4px" }
|
|
2687
|
-
},
|
|
2693
|
+
}, N(e.subduedText), 3)) : a("", !0)], 8, Ai), u.value ? (E(), o("span", {
|
|
2688
2694
|
key: 0,
|
|
2689
2695
|
ref_key: "subText",
|
|
2690
2696
|
ref: l,
|
|
@@ -2695,12 +2701,12 @@ var ki = {
|
|
|
2695
2701
|
{ "pv-text-subdued": !e.disabled }
|
|
2696
2702
|
]),
|
|
2697
2703
|
title: e.hoverTitle ?? u.value
|
|
2698
|
-
},
|
|
2704
|
+
}, N(u.value), 11, ji)) : a("", !0)]),
|
|
2699
2705
|
e.secondaryText && typeof e.secondaryText == "number" ? (E(), i(Le, {
|
|
2700
2706
|
key: 3,
|
|
2701
2707
|
value: e.secondaryText,
|
|
2702
2708
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
2703
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (E(), o("span", Mi,
|
|
2709
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (E(), o("span", Mi, N(e.secondaryText), 1)) : a("", !0)
|
|
2704
2710
|
], 64));
|
|
2705
2711
|
}
|
|
2706
2712
|
}), Pi = ["for"], Fi = { key: 0 }, Ii = [
|
|
@@ -2731,22 +2737,22 @@ var ki = {
|
|
|
2731
2737
|
}),
|
|
2732
2738
|
emits: ["update:modelValue"],
|
|
2733
2739
|
setup(e) {
|
|
2734
|
-
let t = e.id ??
|
|
2740
|
+
let t = e.id ?? F(), n = I(e, "modelValue");
|
|
2735
2741
|
return (r, i) => (E(), o("label", {
|
|
2736
|
-
for:
|
|
2742
|
+
for: P(t),
|
|
2737
2743
|
class: y(["pv-label pv-switch pv-label-hover", {
|
|
2738
2744
|
"pv-input-small": e.size === "md",
|
|
2739
2745
|
"pv-input-xsmall": e.size === "sm",
|
|
2740
2746
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2741
2747
|
}])
|
|
2742
|
-
}, [e.label ? (E(), o("span", Fi,
|
|
2748
|
+
}, [e.label ? (E(), o("span", Fi, N(e.label), 1)) : a("", !0), W(s("input", {
|
|
2743
2749
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2744
2750
|
disabled: e.disabled,
|
|
2745
2751
|
"aria-label": e.ariaLabel,
|
|
2746
2752
|
type: "checkbox",
|
|
2747
2753
|
role: "switch",
|
|
2748
|
-
id:
|
|
2749
|
-
}, null, 8, Ii), [[
|
|
2754
|
+
id: P(t)
|
|
2755
|
+
}, null, 8, Ii), [[z, n.value]])], 10, Pi));
|
|
2750
2756
|
}
|
|
2751
2757
|
}), [["__scopeId", "data-v-73e6d2b2"]]), Ri = /* @__PURE__ */ d({
|
|
2752
2758
|
__name: "PvMenuItemAction",
|
|
@@ -2811,7 +2817,7 @@ var ki = {
|
|
|
2811
2817
|
},
|
|
2812
2818
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2813
2819
|
setup(e, { emit: t }) {
|
|
2814
|
-
let n = e, c =
|
|
2820
|
+
let n = e, c = R("inputRef"), l = m(zi, void 0), d = m(Bi, O(!1)), p = m(Vi, void 0), h = m(Hi, void 0), g = r(() => {
|
|
2815
2821
|
if (!d.value || !Ci(n)) return [];
|
|
2816
2822
|
let e = n.children ? wi(n.children) : [];
|
|
2817
2823
|
if (p?.value) {
|
|
@@ -2848,8 +2854,8 @@ var ki = {
|
|
|
2848
2854
|
}), D = r(() => {
|
|
2849
2855
|
let e = n.menuOptionConfig?.variant;
|
|
2850
2856
|
return e !== "checkbox" && e !== "radio";
|
|
2851
|
-
}), k = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), A = `${k.value}-${f()?.uid}`,
|
|
2852
|
-
n.disabled || (
|
|
2857
|
+
}), k = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), A = `${k.value}-${f()?.uid}`, ee = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), M = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), N = t, P = (e) => {
|
|
2858
|
+
n.disabled || (N("handle-selected", {
|
|
2853
2859
|
option: { ...n },
|
|
2854
2860
|
event: e
|
|
2855
2861
|
}), v(() => {
|
|
@@ -2863,7 +2869,7 @@ var ki = {
|
|
|
2863
2869
|
paddingTop: e.subText ? "4px" : void 0,
|
|
2864
2870
|
paddingBottom: e.subText ? "4px" : void 0
|
|
2865
2871
|
}]),
|
|
2866
|
-
"data-testid":
|
|
2872
|
+
"data-testid": M.value
|
|
2867
2873
|
}, [
|
|
2868
2874
|
s("input", {
|
|
2869
2875
|
ref_key: "inputRef",
|
|
@@ -2873,11 +2879,11 @@ var ki = {
|
|
|
2873
2879
|
name: A,
|
|
2874
2880
|
checked: b.value,
|
|
2875
2881
|
indeterminate: S.value,
|
|
2876
|
-
class: y(
|
|
2882
|
+
class: y(ee.value),
|
|
2877
2883
|
disabled: e.disabled,
|
|
2878
|
-
onChange:
|
|
2884
|
+
onChange: P
|
|
2879
2885
|
}, null, 42, qi),
|
|
2880
|
-
e.menuOptionConfig?.renderer ? (E(), i(
|
|
2886
|
+
e.menuOptionConfig?.renderer ? (E(), i(j(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: b.value }), null, 16, ["selected"])) : (E(), i(Ni, _({ key: 1 }, T.value, {
|
|
2881
2887
|
menuOptionConfig: e.menuOptionConfig,
|
|
2882
2888
|
queryText: e.queryText,
|
|
2883
2889
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2910,7 +2916,7 @@ var ki = {
|
|
|
2910
2916
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2911
2917
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2912
2918
|
"aria-expanded": e.expanded,
|
|
2913
|
-
onClick: r[0] ||= G((e) =>
|
|
2919
|
+
onClick: r[0] ||= G((e) => N("toggle-expanded"), ["prevent", "stop"])
|
|
2914
2920
|
}, [u(X, {
|
|
2915
2921
|
name: e.chevronIcon ?? "chevron-right",
|
|
2916
2922
|
size: 12
|
|
@@ -2950,7 +2956,7 @@ var ki = {
|
|
|
2950
2956
|
}),
|
|
2951
2957
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2952
2958
|
setup(e, { emit: n }) {
|
|
2953
|
-
let i = e, s = m(zi, void 0), c =
|
|
2959
|
+
let i = e, s = m(zi, void 0), c = I(e, "selectedIds"), l = m(Gi, O(!1)), d = m(Wi, O(!1)), f = m(Hi, void 0), p = m(Ui, void 0), h = O(i.defaultExpanded ?? !1);
|
|
2954
2960
|
H(() => i.defaultExpanded, (e) => {
|
|
2955
2961
|
e && (h.value = !0);
|
|
2956
2962
|
});
|
|
@@ -2971,10 +2977,10 @@ var ki = {
|
|
|
2971
2977
|
}), D = r(() => Ci({
|
|
2972
2978
|
...i,
|
|
2973
2979
|
children: b.value
|
|
2974
|
-
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value : !0 : !1),
|
|
2980
|
+
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value : !0 : !1), j = r(() => h.value ? "chevron-down" : "chevron-right"), M = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), N = n, te = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), F = async () => {
|
|
2975
2981
|
if (g.value) return;
|
|
2976
2982
|
if (!i.handleSeeMore) {
|
|
2977
|
-
|
|
2983
|
+
N("see-more", {
|
|
2978
2984
|
parentId: i.id,
|
|
2979
2985
|
offset: b.value.length
|
|
2980
2986
|
});
|
|
@@ -3006,7 +3012,7 @@ var ki = {
|
|
|
3006
3012
|
} finally {
|
|
3007
3013
|
g.value = !1;
|
|
3008
3014
|
}
|
|
3009
|
-
},
|
|
3015
|
+
}, L = (e) => {
|
|
3010
3016
|
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
3011
3017
|
C();
|
|
3012
3018
|
return;
|
|
@@ -3015,23 +3021,23 @@ var ki = {
|
|
|
3015
3021
|
let t = c.value.indexOf(e.option.id);
|
|
3016
3022
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
3017
3023
|
}
|
|
3018
|
-
|
|
3019
|
-
},
|
|
3020
|
-
|
|
3024
|
+
N("handle-selected", e);
|
|
3025
|
+
}, R = (e) => {
|
|
3026
|
+
N("handle-selected", e);
|
|
3021
3027
|
};
|
|
3022
3028
|
return (n, r) => {
|
|
3023
|
-
let s =
|
|
3029
|
+
let s = ee("PvMenuItem", !0);
|
|
3024
3030
|
return E(), o(t, null, [u(Yi, _(T.value, {
|
|
3025
3031
|
children: b.value,
|
|
3026
3032
|
menuOptionConfig: e.config,
|
|
3027
3033
|
queryText: e.queryText,
|
|
3028
3034
|
highlightSearchText: e.highlightSearchText,
|
|
3029
|
-
showChevron:
|
|
3030
|
-
chevronIcon:
|
|
3035
|
+
showChevron: P(l) && D.value,
|
|
3036
|
+
chevronIcon: j.value,
|
|
3031
3037
|
expanded: h.value,
|
|
3032
|
-
onHandleSelected:
|
|
3038
|
+
onHandleSelected: L,
|
|
3033
3039
|
onToggleExpanded: C,
|
|
3034
|
-
selected:
|
|
3040
|
+
selected: M(i)
|
|
3035
3041
|
}), null, 16, [
|
|
3036
3042
|
"children",
|
|
3037
3043
|
"menuOptionConfig",
|
|
@@ -3047,7 +3053,7 @@ var ki = {
|
|
|
3047
3053
|
style: x(w.value)
|
|
3048
3054
|
}, [(E(!0), o(t, null, k(b.value, (t) => (E(), o("li", {
|
|
3049
3055
|
key: t.id,
|
|
3050
|
-
"data-active":
|
|
3056
|
+
"data-active": M(t) ? "true" : null,
|
|
3051
3057
|
class: y(e.itemClass)
|
|
3052
3058
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
3053
3059
|
disabled: i.disabled || t.disabled,
|
|
@@ -3057,8 +3063,8 @@ var ki = {
|
|
|
3057
3063
|
queryText: e.queryText,
|
|
3058
3064
|
highlightSearchText: e.highlightSearchText,
|
|
3059
3065
|
level: e.level + 1,
|
|
3060
|
-
onHandleSelected:
|
|
3061
|
-
onSeeMore: r[1] ||= (e) =>
|
|
3066
|
+
onHandleSelected: R,
|
|
3067
|
+
onSeeMore: r[1] ||= (e) => N("see-more", e)
|
|
3062
3068
|
}), null, 16, [
|
|
3063
3069
|
"disabled",
|
|
3064
3070
|
"selectedIds",
|
|
@@ -3066,13 +3072,13 @@ var ki = {
|
|
|
3066
3072
|
"queryText",
|
|
3067
3073
|
"highlightSearchText",
|
|
3068
3074
|
"level"
|
|
3069
|
-
])], 10, Xi))), 128)),
|
|
3075
|
+
])], 10, Xi))), 128)), te.value ? (E(), o("li", Zi, [u(Q, {
|
|
3070
3076
|
class: "pv-text-brand",
|
|
3071
3077
|
variant: "ghost",
|
|
3072
3078
|
label: "See more",
|
|
3073
3079
|
loading: g.value,
|
|
3074
3080
|
"data-testid": "pv-menu-item-see-more",
|
|
3075
|
-
onClick:
|
|
3081
|
+
onClick: F
|
|
3076
3082
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
3077
3083
|
};
|
|
3078
3084
|
}
|
|
@@ -3099,7 +3105,7 @@ var ki = {
|
|
|
3099
3105
|
}),
|
|
3100
3106
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
3101
3107
|
setup(e, { emit: n }) {
|
|
3102
|
-
let i = e, s = n, c =
|
|
3108
|
+
let i = e, s = n, c = I(e, "selectedItems"), l = M(c.value);
|
|
3103
3109
|
H(c, (e) => {
|
|
3104
3110
|
l.value = e;
|
|
3105
3111
|
}), H(l, (e) => {
|
|
@@ -3159,7 +3165,7 @@ var ki = {
|
|
|
3159
3165
|
"config",
|
|
3160
3166
|
"itemClass",
|
|
3161
3167
|
"queryText"
|
|
3162
|
-
])], 10, ta)), [[
|
|
3168
|
+
])], 10, ta)), [[V, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", na, [u(Q, {
|
|
3163
3169
|
class: "pv-text-brand",
|
|
3164
3170
|
variant: "ghost",
|
|
3165
3171
|
label: "See more",
|
|
@@ -3169,10 +3175,7 @@ var ki = {
|
|
|
3169
3175
|
onClick: r[1] ||= (e) => s("see-more", { parentId: void 0 })
|
|
3170
3176
|
}, null, 8, ["loading", "disabled"])])) : a("", !0)]));
|
|
3171
3177
|
}
|
|
3172
|
-
}), ia = {
|
|
3173
|
-
key: 0,
|
|
3174
|
-
class: "pv-inset-square-8 pv-border-bottom"
|
|
3175
|
-
}, aa = {
|
|
3178
|
+
}), ia = ["data-dd-action-name"], aa = {
|
|
3176
3179
|
key: 1,
|
|
3177
3180
|
class: "pv-inset-square-8"
|
|
3178
3181
|
}, oa = {
|
|
@@ -3216,8 +3219,7 @@ var ki = {
|
|
|
3216
3219
|
type: Boolean,
|
|
3217
3220
|
default: !1
|
|
3218
3221
|
},
|
|
3219
|
-
disabled: {
|
|
3220
|
-
readOnly: {
|
|
3222
|
+
disabled: {
|
|
3221
3223
|
type: Boolean,
|
|
3222
3224
|
default: !1
|
|
3223
3225
|
},
|
|
@@ -3254,7 +3256,9 @@ var ki = {
|
|
|
3254
3256
|
totalOptionCount: {},
|
|
3255
3257
|
variant: { default: "secondary" },
|
|
3256
3258
|
counterStyle: { default: "primary" },
|
|
3257
|
-
additionalCounter: {}
|
|
3259
|
+
additionalCounter: {},
|
|
3260
|
+
rumFilterName: {},
|
|
3261
|
+
rumActionName: {}
|
|
3258
3262
|
}, {
|
|
3259
3263
|
modelValue: {
|
|
3260
3264
|
required: !1,
|
|
@@ -3272,7 +3276,9 @@ var ki = {
|
|
|
3272
3276
|
emits: /* @__PURE__ */ g([
|
|
3273
3277
|
"dropdown-open",
|
|
3274
3278
|
"dropdown-closed",
|
|
3275
|
-
"see-more"
|
|
3279
|
+
"see-more",
|
|
3280
|
+
"select-all",
|
|
3281
|
+
"clear-all"
|
|
3276
3282
|
], [
|
|
3277
3283
|
"update:modelValue",
|
|
3278
3284
|
"update:selectionState",
|
|
@@ -3289,7 +3295,7 @@ var ki = {
|
|
|
3289
3295
|
for (let r of n) e.set(r.id, r), r.children?.length && t(r.children);
|
|
3290
3296
|
};
|
|
3291
3297
|
return t(c.options), e;
|
|
3292
|
-
}), f =
|
|
3298
|
+
}), f = M(/* @__PURE__ */ new Set()), m = M(/* @__PURE__ */ new Map());
|
|
3293
3299
|
D(Vi, d), D(Hi, f), D(Ui, m), D(Wi, r(() => c.parentSelectsAllChildren)), D(Gi, r(() => !!c.enableChildExpansion));
|
|
3294
3300
|
let g = n, y = r(() => {
|
|
3295
3301
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3319,19 +3325,19 @@ var ki = {
|
|
|
3319
3325
|
return t;
|
|
3320
3326
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3321
3327
|
let e = c.additionalCounter ?? 0;
|
|
3322
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
3328
|
+
if (c.enableCascadeSelection && c.countSelectedParents && L.value?.length) return Di(L.value) + e;
|
|
3323
3329
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return ie.value.length + e;
|
|
3324
3330
|
let t = new Set(ie.value.map((e) => e.id));
|
|
3325
3331
|
return Ei(c.options, t) + e;
|
|
3326
|
-
}), T = r(() => ie.value.length > 0 ? !0 : c.enableCascadeSelection &&
|
|
3332
|
+
}), T = r(() => ie.value.length > 0 ? !0 : c.enableCascadeSelection && L.value?.length ? L.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3327
3333
|
g("see-more", e ?? {});
|
|
3328
|
-
},
|
|
3329
|
-
ie.value = e,
|
|
3334
|
+
}, ee = R("searchInputRef"), [j, te] = le(c.defaultOpen), F = I(e, "modelValue"), L = I(e, "selectionState"), z = I(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"), re = (e) => {
|
|
3335
|
+
ie.value = e, ne.value || (F.value = e, L.value = S());
|
|
3336
|
+
}, B = () => {
|
|
3337
|
+
ne.value && (F.value = ie.value, L.value = S());
|
|
3330
3338
|
}, V = () => {
|
|
3331
|
-
|
|
3332
|
-
},
|
|
3333
|
-
te.value && (ie.value = I.value);
|
|
3334
|
-
}, ie = N(I.value), W = (e) => d.value.get(e), ae = (e) => {
|
|
3339
|
+
ne.value && (ie.value = F.value);
|
|
3340
|
+
}, ie = M(F.value), W = (e) => d.value.get(e), ae = (e) => {
|
|
3335
3341
|
if (!c.enableCascadeSelection || !e) return;
|
|
3336
3342
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3337
3343
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3353,33 +3359,33 @@ var ki = {
|
|
|
3353
3359
|
}, G = r({
|
|
3354
3360
|
get: () => ie.value,
|
|
3355
3361
|
set: (e) => {
|
|
3356
|
-
|
|
3362
|
+
re(e);
|
|
3357
3363
|
}
|
|
3358
3364
|
}), oe = () => {
|
|
3359
|
-
|
|
3365
|
+
z.value = "", j.value = !1;
|
|
3360
3366
|
}, K = r(() => {
|
|
3361
3367
|
let e = c.size === "lg" ? 24 : 30;
|
|
3362
3368
|
return c.overlayTrigger ? -e : void 0;
|
|
3363
3369
|
});
|
|
3364
|
-
H(() =>
|
|
3365
|
-
if (c.enableCascadeSelection &&
|
|
3366
|
-
ae(
|
|
3370
|
+
H(() => F.value, (e) => {
|
|
3371
|
+
if (c.enableCascadeSelection && L.value?.length && e.length === 0) {
|
|
3372
|
+
ae(L.value);
|
|
3367
3373
|
return;
|
|
3368
3374
|
}
|
|
3369
3375
|
ie.value = e;
|
|
3370
|
-
}), H(() => [
|
|
3371
|
-
ae(
|
|
3376
|
+
}), H(() => [L.value, c.options], () => {
|
|
3377
|
+
ae(L.value);
|
|
3372
3378
|
}, {
|
|
3373
3379
|
deep: !0,
|
|
3374
3380
|
immediate: !0
|
|
3375
|
-
}), H(
|
|
3376
|
-
e ? (
|
|
3377
|
-
c.overlayTrigger && !c.disableSearchInput &&
|
|
3378
|
-
})) : (
|
|
3381
|
+
}), H(j, (e) => {
|
|
3382
|
+
e ? (V(), v(() => {
|
|
3383
|
+
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), g("dropdown-open");
|
|
3384
|
+
})) : (V(), g("dropdown-closed"));
|
|
3379
3385
|
});
|
|
3380
3386
|
let q = r(() => {
|
|
3381
|
-
if (
|
|
3382
|
-
let e =
|
|
3387
|
+
if (z.value === "") return c.options;
|
|
3388
|
+
let e = z.value.toLocaleLowerCase();
|
|
3383
3389
|
return c.enableCascadeSelection ? Oi(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3384
3390
|
}), ce = () => {
|
|
3385
3391
|
if (c.enableCascadeSelection) {
|
|
@@ -3388,13 +3394,14 @@ var ki = {
|
|
|
3388
3394
|
};
|
|
3389
3395
|
t(q.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3390
3396
|
}
|
|
3391
|
-
|
|
3397
|
+
let e = c.enableCascadeSelection ? wi(q.value) : q.value;
|
|
3398
|
+
g("select-all", e.length), re(e);
|
|
3392
3399
|
}, ue = () => {
|
|
3393
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
3400
|
+
g("clear-all", ie.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3394
3401
|
}, de = () => {
|
|
3395
|
-
re(), oe();
|
|
3396
|
-
}, J = () => {
|
|
3397
3402
|
V(), oe();
|
|
3403
|
+
}, J = () => {
|
|
3404
|
+
B(), oe();
|
|
3398
3405
|
}, fe = r(() => {
|
|
3399
3406
|
if (!c.groupings) return;
|
|
3400
3407
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3407,22 +3414,22 @@ var ki = {
|
|
|
3407
3414
|
}
|
|
3408
3415
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3409
3416
|
return Array.from(e.entries());
|
|
3410
|
-
}), Y = r(() => c.groupings &&
|
|
3417
|
+
}), Y = r(() => c.groupings && z.value === ""), pe = r(() => ({
|
|
3411
3418
|
...c,
|
|
3412
|
-
selectedItems:
|
|
3413
|
-
searchInput:
|
|
3419
|
+
selectedItems: F.value,
|
|
3420
|
+
searchInput: z.value,
|
|
3414
3421
|
slotContext: c.slotContext,
|
|
3415
|
-
isOpen:
|
|
3422
|
+
isOpen: j.value,
|
|
3416
3423
|
isLoading: c.isLoading
|
|
3417
|
-
})), me =
|
|
3418
|
-
let e =
|
|
3424
|
+
})), me = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), he = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), ge = R("popoverContentRef"), _e = r(() => {
|
|
3425
|
+
let e = ge.value?.getRootNode();
|
|
3419
3426
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3420
|
-
}), { present:
|
|
3427
|
+
}), { present: ve } = Un("header", { host: _e }), { present: ye } = Un("no-results", { host: _e }), { present: be } = Un("footer", { host: _e });
|
|
3421
3428
|
return se("Escape", () => {
|
|
3422
|
-
|
|
3429
|
+
j.value && oe();
|
|
3423
3430
|
}), (n, r) => (E(), i(Mn, _({
|
|
3424
|
-
modelValue:
|
|
3425
|
-
"onUpdate:modelValue": r[4] ||= (e) => h(
|
|
3431
|
+
modelValue: P(j),
|
|
3432
|
+
"onUpdate:modelValue": r[4] ||= (e) => h(j) ? j.value = e : null
|
|
3426
3433
|
}, e.popoverProperties, { offset: K.value }), {
|
|
3427
3434
|
trigger: U(() => [u(vi, {
|
|
3428
3435
|
ref: "select-button-trigger-ref",
|
|
@@ -3434,14 +3441,15 @@ var ki = {
|
|
|
3434
3441
|
label: e.label,
|
|
3435
3442
|
icon: e.icon,
|
|
3436
3443
|
companyLogo: e.companyLogo,
|
|
3437
|
-
showClear: !e.disableClearIcon && T.value,
|
|
3438
|
-
showDropdown: !e.disableDropdownIcon && !(T.value && !e.disableClearIcon),
|
|
3439
|
-
open:
|
|
3444
|
+
showClear: !e.disableClearIcon && T.value && !e.disabled,
|
|
3445
|
+
showDropdown: !e.disableDropdownIcon && (e.disabled || !(T.value && !e.disableClearIcon)),
|
|
3446
|
+
open: P(j),
|
|
3440
3447
|
"counter-value": w.value,
|
|
3441
3448
|
"counter-style": e.counterStyle,
|
|
3442
3449
|
"selected-items": ie.value,
|
|
3450
|
+
"data-dd-action-name": me.value,
|
|
3443
3451
|
onHandleClear: ue,
|
|
3444
|
-
onHandleToggleDropdown: r[0] ||= (e) =>
|
|
3452
|
+
onHandleToggleDropdown: r[0] ||= (e) => P(te)()
|
|
3445
3453
|
}, null, 8, [
|
|
3446
3454
|
"variant",
|
|
3447
3455
|
"size",
|
|
@@ -3456,11 +3464,12 @@ var ki = {
|
|
|
3456
3464
|
"open",
|
|
3457
3465
|
"counter-value",
|
|
3458
3466
|
"counter-style",
|
|
3459
|
-
"selected-items"
|
|
3467
|
+
"selected-items",
|
|
3468
|
+
"data-dd-action-name"
|
|
3460
3469
|
])]),
|
|
3461
3470
|
content: U(() => [s("div", {
|
|
3462
3471
|
ref_key: "popoverContentRef",
|
|
3463
|
-
ref:
|
|
3472
|
+
ref: ge,
|
|
3464
3473
|
class: "pv-popover",
|
|
3465
3474
|
"data-test-id": "pv-popover",
|
|
3466
3475
|
style: x({
|
|
@@ -3468,29 +3477,32 @@ var ki = {
|
|
|
3468
3477
|
...e.popoverCssProperties
|
|
3469
3478
|
})
|
|
3470
3479
|
}, [
|
|
3471
|
-
|
|
3480
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", {
|
|
3481
|
+
key: 0,
|
|
3482
|
+
class: "pv-inset-square-8 pv-border-bottom",
|
|
3483
|
+
"data-dd-action-name": he.value
|
|
3484
|
+
}, [u(Wr, {
|
|
3472
3485
|
ref: "searchInputRef",
|
|
3473
|
-
"model-value":
|
|
3474
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
3486
|
+
"model-value": z.value,
|
|
3487
|
+
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
3475
3488
|
class: "pv-stack-4",
|
|
3476
3489
|
placeholder: e.searchPlaceholder
|
|
3477
|
-
}, null, 8, ["model-value", "placeholder"])]
|
|
3478
|
-
n.$slots.header ||
|
|
3490
|
+
}, null, 8, ["model-value", "placeholder"])], 8, ia)),
|
|
3491
|
+
n.$slots.header || P(ve) ? (E(), o("div", aa, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
3479
3492
|
q.value.length > 0 ? (E(), o(t, { key: 2 }, [Y.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3480
|
-
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", oa,
|
|
3493
|
+
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", oa, N(t), 1)),
|
|
3481
3494
|
u(ra, {
|
|
3482
3495
|
selectedItems: G.value,
|
|
3483
3496
|
"onUpdate:selectedItems": r[2] ||= (e) => G.value = e,
|
|
3484
3497
|
options: i,
|
|
3485
3498
|
config: l.value,
|
|
3486
|
-
queryText: e.highlightSearchText ?
|
|
3499
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3487
3500
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
3488
3501
|
itemClass: "pv-stack-4",
|
|
3489
3502
|
isLoading: e.isLoading,
|
|
3490
3503
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3491
3504
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3492
3505
|
hasMoreOptions: s === fe.value.length - 1 && C.value && !e.isLoading,
|
|
3493
|
-
readOnly: e.readOnly,
|
|
3494
3506
|
onSeeMore: O
|
|
3495
3507
|
}, null, 8, [
|
|
3496
3508
|
"selectedItems",
|
|
@@ -3501,8 +3513,7 @@ var ki = {
|
|
|
3501
3513
|
"isLoading",
|
|
3502
3514
|
"isSeeMoreLoading",
|
|
3503
3515
|
"enableCascadeSelection",
|
|
3504
|
-
"hasMoreOptions"
|
|
3505
|
-
"readOnly"
|
|
3516
|
+
"hasMoreOptions"
|
|
3506
3517
|
]),
|
|
3507
3518
|
fe.value && s !== fe.value.length - 1 ? (E(), o("div", sa)) : a("", !0)
|
|
3508
3519
|
]))), 128)) : (E(), i(ra, {
|
|
@@ -3511,13 +3522,12 @@ var ki = {
|
|
|
3511
3522
|
"onUpdate:selectedItems": r[3] ||= (e) => G.value = e,
|
|
3512
3523
|
options: q.value,
|
|
3513
3524
|
config: l.value,
|
|
3514
|
-
queryText: e.highlightSearchText ?
|
|
3525
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3515
3526
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3516
3527
|
itemClass: "pv-stack-4",
|
|
3517
3528
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3518
3529
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3519
3530
|
hasMoreOptions: C.value && !e.isLoading,
|
|
3520
|
-
readOnly: e.readOnly,
|
|
3521
3531
|
onSeeMore: O
|
|
3522
3532
|
}, null, 8, [
|
|
3523
3533
|
"selectedItems",
|
|
@@ -3527,19 +3537,23 @@ var ki = {
|
|
|
3527
3537
|
"itemTestId",
|
|
3528
3538
|
"enableCascadeSelection",
|
|
3529
3539
|
"isSeeMoreLoading",
|
|
3530
|
-
"hasMoreOptions"
|
|
3531
|
-
"readOnly"
|
|
3540
|
+
"hasMoreOptions"
|
|
3532
3541
|
]))], 64)) : a("", !0),
|
|
3533
|
-
e.isLoading ? (E(), o("div", ca, [u(Oe, { variant: "dark" })])) : q.value.length === 0 ? (E(), o(t, { key: 4 }, [
|
|
3534
|
-
s("div", la, [
|
|
3542
|
+
e.isLoading ? (E(), o("div", ca, [u(Oe, { variant: "dark" })])) : q.value.length === 0 ? (E(), o(t, { key: 4 }, [P(ye) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(Si, { key: 1 }))], 64)) : a("", !0),
|
|
3543
|
+
s("div", la, [P(be) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (E(), i(ui, {
|
|
3535
3544
|
key: 1,
|
|
3536
3545
|
variant: e.menuActionsVariant,
|
|
3537
3546
|
disabled: e.isLoading,
|
|
3547
|
+
rumFilterName: e.rumFilterName,
|
|
3538
3548
|
onHandleClearAll: ue,
|
|
3539
3549
|
onHandleSelectAll: ce,
|
|
3540
3550
|
onHandleCancel: de,
|
|
3541
3551
|
onHandleConfirm: J
|
|
3542
|
-
}, null, 8, [
|
|
3552
|
+
}, null, 8, [
|
|
3553
|
+
"variant",
|
|
3554
|
+
"disabled",
|
|
3555
|
+
"rumFilterName"
|
|
3556
|
+
])) : a("", !0)])
|
|
3543
3557
|
], 4)]),
|
|
3544
3558
|
_: 3
|
|
3545
3559
|
}, 16, ["modelValue", "offset"]));
|
|
@@ -3578,7 +3592,8 @@ var ki = {
|
|
|
3578
3592
|
highlightSearchText: {
|
|
3579
3593
|
type: Boolean,
|
|
3580
3594
|
default: !1
|
|
3581
|
-
}
|
|
3595
|
+
},
|
|
3596
|
+
rumActionName: {}
|
|
3582
3597
|
}, {
|
|
3583
3598
|
modelValue: { required: !1 },
|
|
3584
3599
|
modelModifiers: {},
|
|
@@ -3595,7 +3610,7 @@ var ki = {
|
|
|
3595
3610
|
action: n.optionsAction,
|
|
3596
3611
|
variant: n.optionsVariant,
|
|
3597
3612
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3598
|
-
})), l = t, [d] = le(n.defaultOpen), f =
|
|
3613
|
+
})), l = t, [d] = le(n.defaultOpen), f = I(e, "modelValue"), p = I(e, "searchInput");
|
|
3599
3614
|
H(d, (e) => {
|
|
3600
3615
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3601
3616
|
});
|
|
@@ -3634,7 +3649,7 @@ var ki = {
|
|
|
3634
3649
|
return se("Escape", () => {
|
|
3635
3650
|
d.value && T();
|
|
3636
3651
|
}), (t, n) => (E(), i(Mn, _({
|
|
3637
|
-
modelValue:
|
|
3652
|
+
modelValue: P(d),
|
|
3638
3653
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3639
3654
|
}, e.popoverProperties), {
|
|
3640
3655
|
trigger: U(() => [u(vi, {
|
|
@@ -3651,7 +3666,8 @@ var ki = {
|
|
|
3651
3666
|
avatar: y.value,
|
|
3652
3667
|
showClear: !1,
|
|
3653
3668
|
showDropdown: !0,
|
|
3654
|
-
open:
|
|
3669
|
+
open: P(d),
|
|
3670
|
+
"data-dd-action-name": e.rumActionName,
|
|
3655
3671
|
"counter-position": e.counterPosition,
|
|
3656
3672
|
"counter-value": f.value?.secondaryText && typeof f.value.secondaryText == "number" ? f.value.secondaryText : void 0,
|
|
3657
3673
|
"counter-badge-variant": e.counterBadgeVariant,
|
|
@@ -3671,6 +3687,7 @@ var ki = {
|
|
|
3671
3687
|
"companyLogo",
|
|
3672
3688
|
"avatar",
|
|
3673
3689
|
"open",
|
|
3690
|
+
"data-dd-action-name",
|
|
3674
3691
|
"counter-position",
|
|
3675
3692
|
"counter-value",
|
|
3676
3693
|
"counter-badge-variant",
|
|
@@ -3753,7 +3770,7 @@ var ki = {
|
|
|
3753
3770
|
}),
|
|
3754
3771
|
emits: ["update:modelValue"],
|
|
3755
3772
|
setup(e) {
|
|
3756
|
-
let { getPaginations: n } = ma({ variant: e.variant }), r =
|
|
3773
|
+
let { getPaginations: n } = ma({ variant: e.variant }), r = I(e, "modelValue");
|
|
3757
3774
|
return (i, a) => (E(), o("ol", {
|
|
3758
3775
|
role: "list",
|
|
3759
3776
|
class: "pv-pagination",
|
|
@@ -3768,17 +3785,17 @@ var ki = {
|
|
|
3768
3785
|
variant: "ghost",
|
|
3769
3786
|
onClick: a[0] ||= (e) => i.$emit("update:modelValue", r.value - 1)
|
|
3770
3787
|
}, null, 8, ["disabled"])]),
|
|
3771
|
-
(E(!0), o(t, null, k(
|
|
3788
|
+
(E(!0), o(t, null, k(P(n)({
|
|
3772
3789
|
currentPage: r.value,
|
|
3773
3790
|
pages: e.maxPages
|
|
3774
3791
|
}), (e) => (E(), o("li", {
|
|
3775
3792
|
key: e.page,
|
|
3776
3793
|
"data-testid": `pagination-button-${e.page}`,
|
|
3777
3794
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
3778
|
-
}, [e.label === "..." ? (E(), o("button", _a,
|
|
3795
|
+
}, [e.label === "..." ? (E(), o("button", _a, N(e.label), 1)) : (E(), o("button", {
|
|
3779
3796
|
key: 1,
|
|
3780
3797
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
3781
|
-
},
|
|
3798
|
+
}, N(e.label), 9, va))], 8, ga))), 128)),
|
|
3782
3799
|
s("li", null, [u(Q, {
|
|
3783
3800
|
"data-testid": "pagination-right-arrow-icon",
|
|
3784
3801
|
disabled: r.value === e.maxPages,
|
|
@@ -3856,7 +3873,7 @@ var ki = {
|
|
|
3856
3873
|
}),
|
|
3857
3874
|
emits: ["update:modelValue"],
|
|
3858
3875
|
setup(e) {
|
|
3859
|
-
let t =
|
|
3876
|
+
let t = R("inputRef"), n = {
|
|
3860
3877
|
h1: "ghost-input-h1",
|
|
3861
3878
|
h2: "ghost-input-h2",
|
|
3862
3879
|
h3: "ghost-input-h3",
|
|
@@ -3874,7 +3891,7 @@ var ki = {
|
|
|
3874
3891
|
"text-md": "text-medium",
|
|
3875
3892
|
"text-lg": "text-large",
|
|
3876
3893
|
caption: "caption"
|
|
3877
|
-
}, c = e, l =
|
|
3894
|
+
}, c = e, l = I(e, "modelValue"), u = O(0), d = () => {
|
|
3878
3895
|
t.value?.focus();
|
|
3879
3896
|
};
|
|
3880
3897
|
C(() => {
|
|
@@ -3905,7 +3922,7 @@ var ki = {
|
|
|
3905
3922
|
placeholder: e.placeholder,
|
|
3906
3923
|
disabled: e.disabled,
|
|
3907
3924
|
name: n[e.variant]
|
|
3908
|
-
}), null, 16, ka), [[
|
|
3925
|
+
}), null, 16, ka), [[B, l.value]]),
|
|
3909
3926
|
e.showEditIcon ? (E(), i(Q, {
|
|
3910
3927
|
key: 0,
|
|
3911
3928
|
"left-icon": "edit",
|
|
@@ -3939,7 +3956,7 @@ var ki = {
|
|
|
3939
3956
|
return (t, n) => (E(), o("div", {
|
|
3940
3957
|
class: y(["pv-inset-square pv-flex pv-space-between pv-border-bottom pv-surface", { "pv-sticky": e.sticky }]),
|
|
3941
3958
|
style: { "--inset-size": "0.5rem 1rem" }
|
|
3942
|
-
}, [e.title ? (E(), o("span", ja,
|
|
3959
|
+
}, [e.title ? (E(), o("span", ja, N(e.title), 1)) : (E(), o("div", {
|
|
3943
3960
|
key: 1,
|
|
3944
3961
|
id: e.headerTitleId,
|
|
3945
3962
|
class: "pv-flex"
|
|
@@ -3969,7 +3986,7 @@ var ki = {
|
|
|
3969
3986
|
return (n, r) => (E(), o("div", La, [u(_r, {
|
|
3970
3987
|
name: e.logo ? e.logo : e.label,
|
|
3971
3988
|
size: e.size
|
|
3972
|
-
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) },
|
|
3989
|
+
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, N(e.label), 3)]));
|
|
3973
3990
|
}
|
|
3974
3991
|
}), za = ["data-more"], Ba = ["src", "alt"], Va = /* @__PURE__ */ d({
|
|
3975
3992
|
__name: "PvAvatarGroup",
|
|
@@ -3996,7 +4013,7 @@ var ki = {
|
|
|
3996
4013
|
}, [(E(!0), o(t, null, k(e.items.slice(0, i.value), (e, n) => (E(), o("li", {
|
|
3997
4014
|
key: n,
|
|
3998
4015
|
"data-testid": "pv-avatar-group-item"
|
|
3999
|
-
}, [e.initials ? (E(), o(t, { key: 0 }, [l(
|
|
4016
|
+
}, [e.initials ? (E(), o(t, { key: 0 }, [l(N(e.initials), 1)], 64)) : e.image ? (E(), o("img", {
|
|
4000
4017
|
key: 1,
|
|
4001
4018
|
src: e.image,
|
|
4002
4019
|
alt: e.alt ?? ""
|
|
@@ -4035,7 +4052,7 @@ var ki = {
|
|
|
4035
4052
|
}),
|
|
4036
4053
|
emits: ["update:modelValue"],
|
|
4037
4054
|
setup(e) {
|
|
4038
|
-
let t = e, n =
|
|
4055
|
+
let t = e, n = I(e, "modelValue"), c = {
|
|
4039
4056
|
secondary: "tertiary",
|
|
4040
4057
|
tertiary: "tertiary",
|
|
4041
4058
|
ghost: "ghost"
|
|
@@ -4061,12 +4078,12 @@ var ki = {
|
|
|
4061
4078
|
value: e.value,
|
|
4062
4079
|
name: e.name,
|
|
4063
4080
|
disabled: e.disabled
|
|
4064
|
-
}, null, 8, Ua), [[
|
|
4081
|
+
}, null, 8, Ua), [[ne, n.value]]),
|
|
4065
4082
|
e.leftIcon ? (E(), i(X, {
|
|
4066
4083
|
key: 0,
|
|
4067
4084
|
name: e.leftIcon
|
|
4068
4085
|
}, null, 8, ["name"])) : a("", !0),
|
|
4069
|
-
e.label ? (E(), o("span", Wa,
|
|
4086
|
+
e.label ? (E(), o("span", Wa, N(e.label), 1)) : a("", !0),
|
|
4070
4087
|
e.rightIcon ? (E(), i(X, {
|
|
4071
4088
|
key: 2,
|
|
4072
4089
|
name: e.rightIcon
|
|
@@ -4097,7 +4114,7 @@ var ki = {
|
|
|
4097
4114
|
}),
|
|
4098
4115
|
emits: ["update:modelValue"],
|
|
4099
4116
|
setup(e) {
|
|
4100
|
-
let n = e, r =
|
|
4117
|
+
let n = e, r = I(e, "modelValue"), c = O(`toggle-group-${Math.random().toString(36).substr(2, 9)}`), l = (e) => {
|
|
4101
4118
|
if (!e.disabled) {
|
|
4102
4119
|
if (r.value?.value === e.value) {
|
|
4103
4120
|
n.allowDeselect && (r.value = null);
|
|
@@ -4124,7 +4141,7 @@ var ki = {
|
|
|
4124
4141
|
key: 0,
|
|
4125
4142
|
name: t.icon
|
|
4126
4143
|
}, null, 8, ["name"])) : a("", !0),
|
|
4127
|
-
e.hideLabels ? a("", !0) : (E(), o("span", Ja,
|
|
4144
|
+
e.hideLabels ? a("", !0) : (E(), o("span", Ja, N(t.label), 1))
|
|
4128
4145
|
], 2)]),
|
|
4129
4146
|
_: 2
|
|
4130
4147
|
}, 1032, ["description"]))), 128))]));
|
|
@@ -4145,7 +4162,7 @@ var ki = {
|
|
|
4145
4162
|
}),
|
|
4146
4163
|
emits: ["update:modelValue"],
|
|
4147
4164
|
setup(e) {
|
|
4148
|
-
let t =
|
|
4165
|
+
let t = I(e, "modelValue");
|
|
4149
4166
|
return (n, r) => W((E(), o("input", {
|
|
4150
4167
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4151
4168
|
class: "pv-checkbox",
|
|
@@ -4154,7 +4171,7 @@ var ki = {
|
|
|
4154
4171
|
"aria-label": e.ariaLabel,
|
|
4155
4172
|
disabled: e.disabled,
|
|
4156
4173
|
indeterminate: e.indeterminate
|
|
4157
|
-
}, null, 8, Xa)), [[
|
|
4174
|
+
}, null, 8, Xa)), [[z, t.value]]);
|
|
4158
4175
|
}
|
|
4159
4176
|
}), Qa = ["aria-label", "aria-labelledby"], $a = ["id"], eo = [
|
|
4160
4177
|
"name",
|
|
@@ -4182,16 +4199,16 @@ var ki = {
|
|
|
4182
4199
|
}),
|
|
4183
4200
|
emits: ["update:modelValue"],
|
|
4184
4201
|
setup(e) {
|
|
4185
|
-
let n = e, i =
|
|
4202
|
+
let n = e, i = I(e, "modelValue"), c = F(), u = F(), d = r(() => n.name ?? c), f = r(() => n.orientation === "vertical" ? { "--flex-align": "flex-start" } : {});
|
|
4186
4203
|
return (n, r) => (E(), o("div", {
|
|
4187
4204
|
role: "radiogroup",
|
|
4188
4205
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
4189
|
-
"aria-labelledby": e.label ?
|
|
4206
|
+
"aria-labelledby": e.label ? P(u) : void 0
|
|
4190
4207
|
}, [e.label ? (E(), o("span", {
|
|
4191
4208
|
key: 0,
|
|
4192
|
-
id:
|
|
4209
|
+
id: P(u),
|
|
4193
4210
|
class: "pv-label pv-stack-8"
|
|
4194
|
-
},
|
|
4211
|
+
}, N(e.label), 9, $a)) : a("", !0), s("div", {
|
|
4195
4212
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
4196
4213
|
style: x(f.value)
|
|
4197
4214
|
}, [(E(!0), o(t, null, k(e.options, (t) => (E(), o("label", {
|
|
@@ -4204,7 +4221,7 @@ var ki = {
|
|
|
4204
4221
|
name: d.value,
|
|
4205
4222
|
value: t.value,
|
|
4206
4223
|
disabled: e.disabled || t.disabled
|
|
4207
|
-
}, null, 8, eo), [[
|
|
4224
|
+
}, null, 8, eo), [[re, i.value]]), l(" " + N(t.label), 1)]))), 128))], 6)], 8, Qa));
|
|
4208
4225
|
}
|
|
4209
4226
|
}), no = /* @__PURE__ */ d({
|
|
4210
4227
|
__name: "PvSprite",
|
|
@@ -4243,7 +4260,7 @@ var ki = {
|
|
|
4243
4260
|
lg: "1.5rem",
|
|
4244
4261
|
xl: "2rem"
|
|
4245
4262
|
}, 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");
|
|
4246
|
-
return (e, t) => (E(), i(
|
|
4263
|
+
return (e, t) => (E(), i(P(ge), {
|
|
4247
4264
|
"data-testid": "pv-skeleton",
|
|
4248
4265
|
shape: c.value,
|
|
4249
4266
|
height: o.value,
|
|
@@ -4285,7 +4302,7 @@ var ki = {
|
|
|
4285
4302
|
}),
|
|
4286
4303
|
emits: ["update:modelValue"],
|
|
4287
4304
|
setup(e) {
|
|
4288
|
-
let n = e, c =
|
|
4305
|
+
let n = e, c = I(e, "modelValue"), l = r(() => n.inputIcon ? { "--inset-size": "8px 12px 6px 36px" } : {});
|
|
4289
4306
|
return (n, r) => (E(), o(t, null, [
|
|
4290
4307
|
n.$slots.label || e.showLabel ? (E(), o("label", {
|
|
4291
4308
|
key: 0,
|
|
@@ -4293,7 +4310,7 @@ var ki = {
|
|
|
4293
4310
|
class: "pv-label pv-stack-8",
|
|
4294
4311
|
for: e.id
|
|
4295
4312
|
}, [A(n.$slots, "label")], 8, io)) : a("", !0),
|
|
4296
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div", ao,
|
|
4313
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div", ao, N(e.prefixLabel), 1)) : a("", !0), s("div", oo, [e.inputIcon ? (E(), i(X, {
|
|
4297
4314
|
key: 0,
|
|
4298
4315
|
class: "pv-absolute input-icon-position",
|
|
4299
4316
|
name: e.inputIcon
|
|
@@ -4311,7 +4328,7 @@ var ki = {
|
|
|
4311
4328
|
id: e.id,
|
|
4312
4329
|
"data-invalid": e.error ? !0 : void 0,
|
|
4313
4330
|
step: e.step
|
|
4314
|
-
}), null, 16, so), [[
|
|
4331
|
+
}), null, 16, so), [[ne, c.value]])])], 2),
|
|
4315
4332
|
e.lowerLabel ? (E(), o("p", {
|
|
4316
4333
|
key: 1,
|
|
4317
4334
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4320,7 +4337,7 @@ var ki = {
|
|
|
4320
4337
|
"pv-text-red": e.error,
|
|
4321
4338
|
"pv-text-subdued": !e.error
|
|
4322
4339
|
}])
|
|
4323
|
-
},
|
|
4340
|
+
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4324
4341
|
], 64));
|
|
4325
4342
|
}
|
|
4326
4343
|
}), lo = ["data-rating"], uo = ["value"], fo = /* @__PURE__ */ d({
|
|
@@ -4356,7 +4373,7 @@ var ki = {
|
|
|
4356
4373
|
},
|
|
4357
4374
|
setup(e) {
|
|
4358
4375
|
let t = e, n = r(() => t.href ? "a" : t.interactive ? "button" : "div"), a = r(() => !t.href && t.interactive ? "button" : void 0);
|
|
4359
|
-
return (t, r) => (E(), i(
|
|
4376
|
+
return (t, r) => (E(), i(j(n.value), {
|
|
4360
4377
|
href: e.href,
|
|
4361
4378
|
type: a.value,
|
|
4362
4379
|
class: y(["pv-card pv-inset-square-8 pv-inline-block", { "pv-card-secondary": e.variant === "secondary" }]),
|
|
@@ -4429,10 +4446,10 @@ var ki = {
|
|
|
4429
4446
|
style: { color: "#218c88" },
|
|
4430
4447
|
name: e.icon,
|
|
4431
4448
|
size: 12
|
|
4432
|
-
}, null, 8, ["name"])) : a("", !0), s("span", _o,
|
|
4433
|
-
e.upperLabel ? (E(), o("span", vo,
|
|
4434
|
-
e.title ? (E(), o("span", yo,
|
|
4435
|
-
e.description ? (E(), o("span", bo,
|
|
4449
|
+
}, null, 8, ["name"])) : a("", !0), s("span", _o, N(e.insight), 1)])) : a("", !0),
|
|
4450
|
+
e.upperLabel ? (E(), o("span", vo, N(e.upperLabel), 1)) : a("", !0),
|
|
4451
|
+
e.title ? (E(), o("span", yo, N(e.title), 1)) : a("", !0),
|
|
4452
|
+
e.description ? (E(), o("span", bo, N(e.description), 1)) : a("", !0)
|
|
4436
4453
|
]), e.showButton ? (E(), i(Q, {
|
|
4437
4454
|
key: 0,
|
|
4438
4455
|
"left-icon": "new-tab",
|
|
@@ -4508,7 +4525,7 @@ var ki = {
|
|
|
4508
4525
|
name: e.icon ? e.icon : n[e.variant],
|
|
4509
4526
|
size: 20
|
|
4510
4527
|
}, null, 8, ["name"]),
|
|
4511
|
-
s("p", Co,
|
|
4528
|
+
s("p", Co, N(e.label), 1),
|
|
4512
4529
|
A(r.$slots, "default"),
|
|
4513
4530
|
u(Q, {
|
|
4514
4531
|
variant: "ghost",
|
|
@@ -4554,7 +4571,7 @@ var ki = {
|
|
|
4554
4571
|
}),
|
|
4555
4572
|
emits: ["update:modelValue"],
|
|
4556
4573
|
setup(e) {
|
|
4557
|
-
let t =
|
|
4574
|
+
let t = I(e, "modelValue");
|
|
4558
4575
|
return (n, r) => (E(), o("div", Do, [
|
|
4559
4576
|
n.$slots.label ? (E(), o("label", {
|
|
4560
4577
|
key: 0,
|
|
@@ -4569,7 +4586,7 @@ var ki = {
|
|
|
4569
4586
|
placeholder: e.placeholder,
|
|
4570
4587
|
id: e.id,
|
|
4571
4588
|
"data-invalid": e.error ? !0 : void 0
|
|
4572
|
-
}), null, 16, ko), [[
|
|
4589
|
+
}), null, 16, ko), [[B, t.value]]),
|
|
4573
4590
|
e.lowerLabel ? (E(), o("p", {
|
|
4574
4591
|
key: 1,
|
|
4575
4592
|
style: { "margin-left": "12px" },
|
|
@@ -4577,7 +4594,7 @@ var ki = {
|
|
|
4577
4594
|
"pv-text-red": e.error,
|
|
4578
4595
|
"pv-text-subdued": !e.error
|
|
4579
4596
|
}])
|
|
4580
|
-
},
|
|
4597
|
+
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4581
4598
|
]));
|
|
4582
4599
|
}
|
|
4583
4600
|
}), jo = {
|
|
@@ -4603,7 +4620,7 @@ var ki = {
|
|
|
4603
4620
|
"min-width": "0"
|
|
4604
4621
|
},
|
|
4605
4622
|
title: e.label
|
|
4606
|
-
},
|
|
4623
|
+
}, N(e.label), 9, Mo)]));
|
|
4607
4624
|
}
|
|
4608
4625
|
}), Po = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4609
4626
|
__name: "PvTreeReorderIcon",
|
|
@@ -4631,7 +4648,7 @@ var ki = {
|
|
|
4631
4648
|
event: e
|
|
4632
4649
|
});
|
|
4633
4650
|
}, s = r(() => n.disableSelection ? "button" : "div");
|
|
4634
|
-
return (t, n) => (E(), i(
|
|
4651
|
+
return (t, n) => (E(), i(j(s.value), {
|
|
4635
4652
|
class: y([
|
|
4636
4653
|
"pv-full-width",
|
|
4637
4654
|
"pv-flex",
|
|
@@ -4795,7 +4812,7 @@ var ki = {
|
|
|
4795
4812
|
setup(e, { emit: t }) {
|
|
4796
4813
|
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = Ho(), { dragAndDropIndicatorClasses: m } = Wo(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = Lo(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = Uo(), T = () => {
|
|
4797
4814
|
f(C(n.settings, n.option).name);
|
|
4798
|
-
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Io : Fo), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1),
|
|
4815
|
+
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Io : Fo), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1), M = r({
|
|
4799
4816
|
get: () => [...n.option.children || []],
|
|
4800
4817
|
set: (e) => {
|
|
4801
4818
|
c("update:children", {
|
|
@@ -4803,14 +4820,14 @@ var ki = {
|
|
|
4803
4820
|
newChildren: e
|
|
4804
4821
|
});
|
|
4805
4822
|
}
|
|
4806
|
-
}),
|
|
4823
|
+
}), N = r(() => n.isParentPathOpen ?? !0);
|
|
4807
4824
|
return (t, n) => {
|
|
4808
|
-
let r =
|
|
4825
|
+
let r = ee("PvSimpleNestedTreeItem", !0);
|
|
4809
4826
|
return E(), o("div", {
|
|
4810
4827
|
class: y({ "tree-item-continued": k.value && !A.value }),
|
|
4811
4828
|
style: x(k.value && !A.value ? { "--tree-connector-left": `${e.level * 24 + 8}px` } : {})
|
|
4812
|
-
}, [(E(), i(
|
|
4813
|
-
class: y({ ...
|
|
4829
|
+
}, [(E(), i(j(O.value), {
|
|
4830
|
+
class: y({ ...P(m)(e.option) }),
|
|
4814
4831
|
option: e.option,
|
|
4815
4832
|
selected: D(e.option.node_id),
|
|
4816
4833
|
"disable-selection": e.disableSelection,
|
|
@@ -4818,14 +4835,14 @@ var ki = {
|
|
|
4818
4835
|
icon: e.settings[e.option.field]?.icon,
|
|
4819
4836
|
style: x({
|
|
4820
4837
|
paddingLeft: `${e.level * 24}px`,
|
|
4821
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4838
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: N.value }) ?? {}
|
|
4822
4839
|
}),
|
|
4823
4840
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4824
|
-
onMouseenter: n[1] ||= (t) =>
|
|
4825
|
-
onMouseleave: n[2] ||= (e) =>
|
|
4841
|
+
onMouseenter: n[1] ||= (t) => P(g)(e.option.node_id),
|
|
4842
|
+
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4826
4843
|
onContextmenu: n[3] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4827
4844
|
}, {
|
|
4828
|
-
default: U(() => [W(u(Po, null, null, 512), [[
|
|
4845
|
+
default: U(() => [W(u(Po, null, null, 512), [[V, P(h) === e.option.node_id && P(v)(e.isDraggable, e.settings, e.option)]]), s("div", Go, [!A.value && k.value ? (E(), o("div", Ko)) : k.value ? (E(), o("div", qo)) : a("", !0), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4829
4846
|
key: 2,
|
|
4830
4847
|
option: e.option,
|
|
4831
4848
|
settings: e.settings,
|
|
@@ -4850,18 +4867,18 @@ var ki = {
|
|
|
4850
4867
|
"label",
|
|
4851
4868
|
"icon",
|
|
4852
4869
|
"style"
|
|
4853
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
4854
|
-
modelValue:
|
|
4855
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
4870
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4871
|
+
modelValue: M.value,
|
|
4872
|
+
"onUpdate:modelValue": n[6] ||= (e) => M.value = e,
|
|
4856
4873
|
"parent-id": e.option.node_id,
|
|
4857
|
-
group:
|
|
4874
|
+
group: P(C)(e.settings, e.option),
|
|
4858
4875
|
"item-key": "node_id",
|
|
4859
|
-
disabled:
|
|
4860
|
-
move:
|
|
4861
|
-
class: y({ "pv-tree-drop-zone":
|
|
4876
|
+
disabled: P(b)(e.isDraggable, e.settings, e.option),
|
|
4877
|
+
move: P(S)(e.settings),
|
|
4878
|
+
class: y({ "pv-tree-drop-zone": P(l) && M.value.length === 0 && P(w)(e.settings, e.option, P(d)) }),
|
|
4862
4879
|
onStart: T,
|
|
4863
|
-
onEnd:
|
|
4864
|
-
onAdd:
|
|
4880
|
+
onEnd: P(p),
|
|
4881
|
+
onAdd: P(p)
|
|
4865
4882
|
}, {
|
|
4866
4883
|
item: U(({ element: i, index: a }) => [u(r, {
|
|
4867
4884
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -4869,7 +4886,7 @@ var ki = {
|
|
|
4869
4886
|
settings: e.settings,
|
|
4870
4887
|
level: e.level + 1,
|
|
4871
4888
|
index: a,
|
|
4872
|
-
"total-siblings":
|
|
4889
|
+
"total-siblings": M.value.length,
|
|
4873
4890
|
"parent-field": e.option.field,
|
|
4874
4891
|
"selected-options": e.selectedOptions,
|
|
4875
4892
|
"is-draggable": e.isDraggable,
|
|
@@ -4927,24 +4944,24 @@ var ki = {
|
|
|
4927
4944
|
newChildren: e
|
|
4928
4945
|
});
|
|
4929
4946
|
}
|
|
4930
|
-
}),
|
|
4931
|
-
return (t, n) => (E(), o("div", Xo, [(E(), i(
|
|
4947
|
+
}), ee = r(() => n.isParentPathOpen ?? !0);
|
|
4948
|
+
return (t, n) => (E(), o("div", Xo, [(E(), i(j(k(e.option)), {
|
|
4932
4949
|
option: e.option,
|
|
4933
4950
|
selected: O(e.option.node_id),
|
|
4934
4951
|
"disable-selection": e.disableSelection,
|
|
4935
4952
|
label: e.option.label,
|
|
4936
4953
|
icon: e.settings[e.option.field]?.icon,
|
|
4937
|
-
class: y({ ...
|
|
4954
|
+
class: y({ ...P(C)(e.option) }),
|
|
4938
4955
|
style: x({
|
|
4939
4956
|
paddingLeft: `${e.level * 24 + T.value * 24}px`,
|
|
4940
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4957
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ee.value }) ?? {}
|
|
4941
4958
|
}),
|
|
4942
4959
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4943
|
-
onMouseenter: n[1] ||= (t) =>
|
|
4944
|
-
onMouseleave: n[2] ||= (e) =>
|
|
4960
|
+
onMouseenter: n[1] ||= (t) => P(l)(e.option.node_id),
|
|
4961
|
+
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4945
4962
|
onContextmenu: n[3] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4946
4963
|
}, {
|
|
4947
|
-
default: U(() => [W(u(Po, null, null, 512), [[
|
|
4964
|
+
default: U(() => [W(u(Po, null, null, 512), [[V, P(c) === e.option.node_id && P(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4948
4965
|
key: 0,
|
|
4949
4966
|
option: e.option,
|
|
4950
4967
|
settings: e.settings,
|
|
@@ -4969,18 +4986,18 @@ var ki = {
|
|
|
4969
4986
|
"icon",
|
|
4970
4987
|
"class",
|
|
4971
4988
|
"style"
|
|
4972
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
4989
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4973
4990
|
modelValue: A.value,
|
|
4974
4991
|
"onUpdate:modelValue": n[6] ||= (e) => A.value = e,
|
|
4975
4992
|
"parent-id": e.option.node_id,
|
|
4976
|
-
group:
|
|
4993
|
+
group: P(h)(e.settings, e.option),
|
|
4977
4994
|
"item-key": "node_id",
|
|
4978
|
-
disabled:
|
|
4979
|
-
move:
|
|
4980
|
-
class: y({ "pv-tree-drop-zone": e.isDraggable &&
|
|
4995
|
+
disabled: P(f)(e.isDraggable, e.settings, e.option),
|
|
4996
|
+
move: P(m)(e.settings),
|
|
4997
|
+
class: y({ "pv-tree-drop-zone": e.isDraggable && P(_) && A.value.length === 0 && P(g)(e.settings, e.option, P(v)) }),
|
|
4981
4998
|
onStart: w,
|
|
4982
|
-
onEnd:
|
|
4983
|
-
onAdd:
|
|
4999
|
+
onEnd: P(S),
|
|
5000
|
+
onAdd: P(S)
|
|
4984
5001
|
}, {
|
|
4985
5002
|
item: U(({ element: r, index: i }) => [u(Yo, {
|
|
4986
5003
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -5049,7 +5066,7 @@ var ki = {
|
|
|
5049
5066
|
}, k = (e) => ({
|
|
5050
5067
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
5051
5068
|
"--border-color": "#121313"
|
|
5052
|
-
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e),
|
|
5069
|
+
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), M = r(() => n.settings[n.option.field]?.checkbox ? Io : Fo), N = r({
|
|
5053
5070
|
get: () => [...n.option.children || []],
|
|
5054
5071
|
set: (e) => {
|
|
5055
5072
|
a("update:children", {
|
|
@@ -5057,9 +5074,9 @@ var ki = {
|
|
|
5057
5074
|
newChildren: e
|
|
5058
5075
|
});
|
|
5059
5076
|
}
|
|
5060
|
-
}),
|
|
5077
|
+
}), te = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), F = r(() => n.isParentPathOpen ?? !0 ? te.value && n.level === 0 ? c.value : !0 : !1);
|
|
5061
5078
|
return (t, n) => {
|
|
5062
|
-
let r =
|
|
5079
|
+
let r = ee("PvTreeItem", !0);
|
|
5063
5080
|
return e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (E(), i(zr, {
|
|
5064
5081
|
key: 0,
|
|
5065
5082
|
modelValue: c.value,
|
|
@@ -5074,20 +5091,20 @@ var ki = {
|
|
|
5074
5091
|
enableTriggerFullWidth: "",
|
|
5075
5092
|
summaryStyles: {
|
|
5076
5093
|
...k(e.level),
|
|
5077
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5094
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: F.value }) ?? {},
|
|
5078
5095
|
"justify-content": "flex-start"
|
|
5079
5096
|
},
|
|
5080
5097
|
summaryClasses: {
|
|
5081
5098
|
"pv-tree-item": !0,
|
|
5082
|
-
...
|
|
5099
|
+
...P(T)(e.option)
|
|
5083
5100
|
},
|
|
5084
5101
|
defaultOpen: e.settings[e.option.field]?.defaultExpanded ?? !1,
|
|
5085
5102
|
"chevron-variant": "horizontal",
|
|
5086
|
-
onSummaryMouseenter: n[4] ||= (t) =>
|
|
5087
|
-
onSummaryMouseleave: n[5] ||= (e) =>
|
|
5103
|
+
onSummaryMouseenter: n[4] ||= (t) => P(_)(e.option.node_id),
|
|
5104
|
+
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
5088
5105
|
onContextmenu: n[6] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5089
5106
|
}, {
|
|
5090
|
-
trigger: U(() => [W(u(Po, null, null, 512), [[
|
|
5107
|
+
trigger: U(() => [W(u(Po, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5091
5108
|
key: 0,
|
|
5092
5109
|
option: e.option,
|
|
5093
5110
|
settings: e.settings,
|
|
@@ -5103,18 +5120,18 @@ var ki = {
|
|
|
5103
5120
|
label: e.option.label,
|
|
5104
5121
|
icon: e.settings[e.option.field]?.icon
|
|
5105
5122
|
}, null, 8, ["label", "icon"]))]),
|
|
5106
|
-
default: U(() => [s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
5107
|
-
modelValue:
|
|
5108
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
5123
|
+
default: U(() => [s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
5124
|
+
modelValue: N.value,
|
|
5125
|
+
"onUpdate:modelValue": n[2] ||= (e) => N.value = e,
|
|
5109
5126
|
"parent-id": e.option.node_id,
|
|
5110
|
-
group:
|
|
5127
|
+
group: P(l)(e.settings, e.option),
|
|
5111
5128
|
"item-key": "node_id",
|
|
5112
|
-
disabled:
|
|
5113
|
-
move:
|
|
5114
|
-
class: y({ "pv-tree-drop-zone": e.isDraggable &&
|
|
5129
|
+
disabled: P(d)(e.isDraggable, e.settings, e.option),
|
|
5130
|
+
move: P(p)(e.settings),
|
|
5131
|
+
class: y({ "pv-tree-drop-zone": e.isDraggable && N.value.length === 0 && P(h)(e.settings, e.option, P(S)) }),
|
|
5115
5132
|
onStart: D,
|
|
5116
|
-
onEnd:
|
|
5117
|
-
onAdd:
|
|
5133
|
+
onEnd: P(w),
|
|
5134
|
+
onAdd: P(w)
|
|
5118
5135
|
}, {
|
|
5119
5136
|
item: U(({ element: i }) => [u(r, {
|
|
5120
5137
|
"is-parent-path-open": e.isParentPathOpen && c.value,
|
|
@@ -5122,7 +5139,7 @@ var ki = {
|
|
|
5122
5139
|
option: i,
|
|
5123
5140
|
settings: e.settings,
|
|
5124
5141
|
level: e.level + 1,
|
|
5125
|
-
"is-draggable":
|
|
5142
|
+
"is-draggable": P(m)(e.isDraggable, e.settings, i),
|
|
5126
5143
|
"tree-open": e.treeOpen,
|
|
5127
5144
|
"disable-selection": e.disableSelection,
|
|
5128
5145
|
onHandleTreeSelect: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
@@ -5176,8 +5193,8 @@ var ki = {
|
|
|
5176
5193
|
"is-draggable",
|
|
5177
5194
|
"disable-selection",
|
|
5178
5195
|
"is-last-root-item"
|
|
5179
|
-
])) : (E(), o("div", es, [(E(), i(M
|
|
5180
|
-
class: y({ ...
|
|
5196
|
+
])) : (E(), o("div", es, [(E(), i(j(M.value), {
|
|
5197
|
+
class: y({ ...P(T)(e.option) }),
|
|
5181
5198
|
option: e.option,
|
|
5182
5199
|
selected: A(e.option.node_id),
|
|
5183
5200
|
"disable-selection": e.disableSelection,
|
|
@@ -5185,14 +5202,14 @@ var ki = {
|
|
|
5185
5202
|
icon: e.settings[e.option.field]?.icon,
|
|
5186
5203
|
style: x({
|
|
5187
5204
|
...k(e.level),
|
|
5188
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
5205
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: F.value }) ?? {}
|
|
5189
5206
|
}),
|
|
5190
5207
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
5191
|
-
onMouseenter: n[10] ||= (t) =>
|
|
5192
|
-
onMouseleave: n[11] ||= (e) =>
|
|
5208
|
+
onMouseenter: n[10] ||= (t) => P(_)(e.option.node_id),
|
|
5209
|
+
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
5193
5210
|
onContextmenu: n[12] ||= G((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5194
5211
|
}, {
|
|
5195
|
-
default: U(() => [W(u(Po, null, null, 512), [[
|
|
5212
|
+
default: U(() => [W(u(Po, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5196
5213
|
key: 0,
|
|
5197
5214
|
option: e.option,
|
|
5198
5215
|
settings: e.settings,
|
|
@@ -5215,18 +5232,18 @@ var ki = {
|
|
|
5215
5232
|
"label",
|
|
5216
5233
|
"icon",
|
|
5217
5234
|
"style"
|
|
5218
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(
|
|
5219
|
-
modelValue:
|
|
5220
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
5235
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
5236
|
+
modelValue: N.value,
|
|
5237
|
+
"onUpdate:modelValue": n[15] ||= (e) => N.value = e,
|
|
5221
5238
|
"parent-id": e.option.node_id,
|
|
5222
|
-
group:
|
|
5239
|
+
group: P(l)(e.settings, e.option),
|
|
5223
5240
|
"item-key": "node_id",
|
|
5224
|
-
disabled:
|
|
5225
|
-
move:
|
|
5226
|
-
class: y({ "pv-tree-drop-zone":
|
|
5241
|
+
disabled: P(d)(e.isDraggable, e.settings, e.option),
|
|
5242
|
+
move: P(p)(e.settings),
|
|
5243
|
+
class: y({ "pv-tree-drop-zone": P(b) && N.value.length === 0 && P(h)(e.settings, e.option, P(S)) }),
|
|
5227
5244
|
onStart: D,
|
|
5228
|
-
onEnd:
|
|
5229
|
-
onAdd:
|
|
5245
|
+
onEnd: P(w),
|
|
5246
|
+
onAdd: P(w)
|
|
5230
5247
|
}, {
|
|
5231
5248
|
item: U(({ element: i }) => [u(r, {
|
|
5232
5249
|
"is-parent-path-open": e.isParentPathOpen,
|
|
@@ -5234,7 +5251,7 @@ var ki = {
|
|
|
5234
5251
|
option: i,
|
|
5235
5252
|
settings: e.settings,
|
|
5236
5253
|
level: e.level + 1,
|
|
5237
|
-
"is-draggable":
|
|
5254
|
+
"is-draggable": P(m)(e.isDraggable, e.settings, i),
|
|
5238
5255
|
"disable-selection": e.disableSelection,
|
|
5239
5256
|
onHandleTreeSelect: n[13] ||= (e) => t.$emit("handle-tree-select", e),
|
|
5240
5257
|
"onUpdate:children": n[14] ||= (e) => t.$emit("update:children", e)
|
|
@@ -5334,7 +5351,7 @@ var ki = {
|
|
|
5334
5351
|
],
|
|
5335
5352
|
setup(e) {
|
|
5336
5353
|
m(Ro, null) || Vo();
|
|
5337
|
-
let n = e, i =
|
|
5354
|
+
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } = rs(a), d = (e, t) => {
|
|
5338
5355
|
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];
|
|
5339
5356
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5340
5357
|
...n.defaultSettings,
|
|
@@ -5350,7 +5367,7 @@ var ki = {
|
|
|
5350
5367
|
"is-draggable": e.isDraggable,
|
|
5351
5368
|
"disable-selection": e.disableSelection,
|
|
5352
5369
|
onHandleTreeSelect: ({ option: e, event: t }) => d(e, t),
|
|
5353
|
-
"onUpdate:children":
|
|
5370
|
+
"onUpdate:children": P(l)
|
|
5354
5371
|
}, null, 8, [
|
|
5355
5372
|
"is-last-root-item",
|
|
5356
5373
|
"tree-open",
|
|
@@ -5380,7 +5397,7 @@ var ki = {
|
|
|
5380
5397
|
},
|
|
5381
5398
|
setup(e) {
|
|
5382
5399
|
let n = e;
|
|
5383
|
-
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p", os,
|
|
5400
|
+
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p", os, N(n.progress) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5384
5401
|
class: "pv-progress-bar",
|
|
5385
5402
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5386
5403
|
style: x({ "--progress": `${n.progress}%` })
|
|
@@ -5526,22 +5543,22 @@ var ki = {
|
|
|
5526
5543
|
}),
|
|
5527
5544
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
5528
5545
|
setup(e) {
|
|
5529
|
-
let t = e, n =
|
|
5546
|
+
let t = e, n = I(e, "modelValue"), c = I(e, "rangeValue"), l = te(), u = F(), d = `${u}-max`, f = `${u}-min`, p = O(""), m = O(""), h = O(null), g = O(null), v = O(!1), b = O(null), C = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), D = (e) => T(e) ? e : null, k = (e) => {
|
|
5530
5547
|
let t = e.trim();
|
|
5531
5548
|
if (t === "") return null;
|
|
5532
5549
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
5533
5550
|
return Number.isFinite(n) ? n : null;
|
|
5534
|
-
}, A = (e) => e === "currency" || e === "integer" || e === "percent" ? 0 : null,
|
|
5551
|
+
}, A = (e) => e === "currency" || e === "integer" || e === "percent" ? 0 : null, ee = () => {
|
|
5535
5552
|
if (t.valueDecimals !== null && t.valueDecimals !== void 0) return Math.max(0, t.valueDecimals);
|
|
5536
5553
|
let e = A(t.dataType);
|
|
5537
5554
|
return e === null ? 2 : e;
|
|
5538
|
-
},
|
|
5539
|
-
let n =
|
|
5555
|
+
}, j = (e) => String(e), M = (e) => {
|
|
5556
|
+
let n = ee(), r = new Intl.NumberFormat("en-US", {
|
|
5540
5557
|
maximumFractionDigits: n,
|
|
5541
5558
|
minimumFractionDigits: 0
|
|
5542
5559
|
}).format(e);
|
|
5543
5560
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
5544
|
-
},
|
|
5561
|
+
}, L = r(() => D(t.step)), R = r(() => L.value !== null && L.value > 0 ? L.value : 0), z = r(() => R.value > 0 ? String(R.value) : "any"), ne = r(() => L.value === null ? "1" : L.value > 0 ? String(L.value) : "any"), re = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), V = r(() => {
|
|
5545
5562
|
let e = D(t.min) ?? Ss, n = D(t.max) ?? Cs;
|
|
5546
5563
|
return e > n ? {
|
|
5547
5564
|
max: e,
|
|
@@ -5553,11 +5570,11 @@ var ki = {
|
|
|
5553
5570
|
max: n,
|
|
5554
5571
|
min: e
|
|
5555
5572
|
};
|
|
5556
|
-
}), ie = r(() => D(n.value) ??
|
|
5557
|
-
let { max: e, min: t } =
|
|
5573
|
+
}), ie = r(() => D(n.value) ?? V.value.min), U = r(() => {
|
|
5574
|
+
let { max: e, min: t } = V.value, n = e - t, r = n === 0 ? 0 : (ie.value - t) / n * 100;
|
|
5558
5575
|
return Math.max(0, Math.min(100, r));
|
|
5559
5576
|
}), G = r(() => ({
|
|
5560
|
-
"--range-track-color":
|
|
5577
|
+
"--range-track-color": re.value,
|
|
5561
5578
|
"--value": `${U.value}%`
|
|
5562
5579
|
})), oe = r(() => ({ left: `${U.value}%` })), se = (e) => {
|
|
5563
5580
|
if (!Number.isFinite(e)) return 0;
|
|
@@ -5569,13 +5586,13 @@ var ki = {
|
|
|
5569
5586
|
return t.split(".")[1]?.length ?? 0;
|
|
5570
5587
|
}, K = r(() => {
|
|
5571
5588
|
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(Ss, r ?? Ss, i ?? Ss), o = n ?? Math.max(Cs, r ?? Cs, i ?? Cs);
|
|
5572
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
5589
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (R.value > 0 ? R.value : 1)), {
|
|
5573
5590
|
max: o,
|
|
5574
5591
|
min: a
|
|
5575
5592
|
};
|
|
5576
5593
|
}), q = (e) => Math.max(K.value.min, Math.min(K.value.max, e)), ce = r(() => {
|
|
5577
5594
|
let e = Math.max(se(K.value.min), se(K.value.max));
|
|
5578
|
-
return
|
|
5595
|
+
return R.value <= 0 ? Math.max(6, e) : Math.max(e, se(R.value));
|
|
5579
5596
|
}), le = (e) => {
|
|
5580
5597
|
let t = Math.min(20, ce.value);
|
|
5581
5598
|
return q(Number(e.toFixed(t)));
|
|
@@ -5583,13 +5600,13 @@ var ki = {
|
|
|
5583
5600
|
if (t.allowMinMaxEqual) return 0;
|
|
5584
5601
|
let e = K.value.max - K.value.min;
|
|
5585
5602
|
if (e <= 0) return 0;
|
|
5586
|
-
let n = Math.max(e / 1e6, 10 ** -ce.value), r =
|
|
5603
|
+
let n = Math.max(e / 1e6, 10 ** -ce.value), r = R.value > 0 ? R.value : n;
|
|
5587
5604
|
return Math.min(r, e);
|
|
5588
5605
|
}), de = (e, t = "nearest") => {
|
|
5589
5606
|
let n = q(e);
|
|
5590
|
-
if (
|
|
5591
|
-
let { min: r } = K.value, i = (n - r) /
|
|
5592
|
-
return le(q((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) *
|
|
5607
|
+
if (R.value <= 0) return le(n);
|
|
5608
|
+
let { min: r } = K.value, i = (n - r) / R.value;
|
|
5609
|
+
return le(q((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * R.value + r));
|
|
5593
5610
|
}, J = (e, t) => {
|
|
5594
5611
|
let n = Math.max(K.value.min, t - ue.value);
|
|
5595
5612
|
return de(Math.min(e, n), "down");
|
|
@@ -5606,7 +5623,7 @@ var ki = {
|
|
|
5606
5623
|
let { max: t, min: n } = K.value;
|
|
5607
5624
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
5608
5625
|
}, me = r(() => pe(Y.value.min)), he = r(() => pe(Y.value.max)), ge = r(() => ({
|
|
5609
|
-
"--range-track-color":
|
|
5626
|
+
"--range-track-color": re.value,
|
|
5610
5627
|
"--value-max": `${he.value}%`,
|
|
5611
5628
|
"--value-min": `${me.value}%`
|
|
5612
5629
|
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || K.value.min === Ss, xe = () => D(t.max) !== null || K.value.max === Cs, Se = (e, t) => {
|
|
@@ -5638,7 +5655,7 @@ var ki = {
|
|
|
5638
5655
|
}, Me = (e) => {
|
|
5639
5656
|
Ee("max"), we(Number(e.target.value));
|
|
5640
5657
|
}, Ne = () => {
|
|
5641
|
-
g.value !== "min" && (m.value =
|
|
5658
|
+
g.value !== "min" && (m.value = j(Y.value.min)), g.value !== "max" && (p.value = j(Y.value.max));
|
|
5642
5659
|
}, Pe = (e) => {
|
|
5643
5660
|
let t = k(e === "min" ? m.value : p.value), n = t === null ? e === "min" ? K.value.min : K.value.max : de(t);
|
|
5644
5661
|
e === "min" ? Ce(n) : we(n);
|
|
@@ -5686,25 +5703,25 @@ var ki = {
|
|
|
5686
5703
|
key: 0,
|
|
5687
5704
|
class: "pv-range-tooltip",
|
|
5688
5705
|
style: x(oe.value)
|
|
5689
|
-
},
|
|
5706
|
+
}, N(M(ie.value)), 5)) : a("", !0), W(s("input", _({ id: P(u) }, P(l), {
|
|
5690
5707
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
5691
5708
|
"aria-label": e.ariaLabel,
|
|
5692
5709
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
5693
5710
|
disabled: e.disabled,
|
|
5694
|
-
max:
|
|
5695
|
-
min:
|
|
5696
|
-
step:
|
|
5711
|
+
max: V.value.max,
|
|
5712
|
+
min: V.value.min,
|
|
5713
|
+
step: ne.value,
|
|
5697
5714
|
style: G.value,
|
|
5698
5715
|
type: "range",
|
|
5699
5716
|
onChange: ke,
|
|
5700
5717
|
onPointerdown: Ae,
|
|
5701
5718
|
onPointerup: ke
|
|
5702
5719
|
}), null, 16, fs), [[
|
|
5703
|
-
|
|
5720
|
+
B,
|
|
5704
5721
|
n.value,
|
|
5705
5722
|
void 0,
|
|
5706
5723
|
{ number: !0 }
|
|
5707
|
-
]])])) : (E(), o("div", _({ key: 1 },
|
|
5724
|
+
]])])) : (E(), o("div", _({ key: 1 }, P(l), {
|
|
5708
5725
|
class: "pv-flex-vertical",
|
|
5709
5726
|
"data-testid": "pv-range-dual",
|
|
5710
5727
|
role: "group",
|
|
@@ -5714,7 +5731,7 @@ var ki = {
|
|
|
5714
5731
|
"--flex-gap": "0"
|
|
5715
5732
|
}
|
|
5716
5733
|
}), [
|
|
5717
|
-
e.showBoundLabels ? (E(), o("div", ms, [s("span", null,
|
|
5734
|
+
e.showBoundLabels ? (E(), o("div", ms, [s("span", null, N(M(K.value.min)), 1), s("span", null, N(M(K.value.max)), 1)])) : a("", !0),
|
|
5718
5735
|
s("div", {
|
|
5719
5736
|
ref_key: "sliderRef",
|
|
5720
5737
|
ref: b,
|
|
@@ -5727,12 +5744,12 @@ var ki = {
|
|
|
5727
5744
|
key: 0,
|
|
5728
5745
|
class: "pv-range-dual-tooltip",
|
|
5729
5746
|
style: x(_e.value)
|
|
5730
|
-
},
|
|
5747
|
+
}, N(M(Y.value.min)), 5)) : a("", !0),
|
|
5731
5748
|
e.showValueTooltips && h.value === "max" ? (E(), o("span", {
|
|
5732
5749
|
key: 1,
|
|
5733
5750
|
class: "pv-range-dual-tooltip",
|
|
5734
5751
|
style: x(ve.value)
|
|
5735
|
-
},
|
|
5752
|
+
}, N(M(Y.value.max)), 5)) : a("", !0),
|
|
5736
5753
|
s("input", {
|
|
5737
5754
|
class: "pv-range pv-range-dual-native pv-range-dual-native-min",
|
|
5738
5755
|
type: "range",
|
|
@@ -5740,7 +5757,7 @@ var ki = {
|
|
|
5740
5757
|
disabled: e.disabled,
|
|
5741
5758
|
max: K.value.max,
|
|
5742
5759
|
min: K.value.min,
|
|
5743
|
-
step:
|
|
5760
|
+
step: z.value,
|
|
5744
5761
|
value: Y.value.min,
|
|
5745
5762
|
onChange: Te,
|
|
5746
5763
|
onInput: je,
|
|
@@ -5754,7 +5771,7 @@ var ki = {
|
|
|
5754
5771
|
disabled: e.disabled,
|
|
5755
5772
|
max: K.value.max,
|
|
5756
5773
|
min: K.value.min,
|
|
5757
|
-
step:
|
|
5774
|
+
step: z.value,
|
|
5758
5775
|
value: Y.value.max,
|
|
5759
5776
|
onChange: Te,
|
|
5760
5777
|
onInput: Me,
|
|
@@ -5773,14 +5790,14 @@ var ki = {
|
|
|
5773
5790
|
"max-width": "75px",
|
|
5774
5791
|
"min-width": "0"
|
|
5775
5792
|
}
|
|
5776
|
-
}, [s("span", vs,
|
|
5793
|
+
}, [s("span", vs, N(e.minLabel), 1), s("input", {
|
|
5777
5794
|
id: f,
|
|
5778
5795
|
class: "pv-input-text",
|
|
5779
5796
|
disabled: e.disabled,
|
|
5780
5797
|
style: { width: "100%" },
|
|
5781
5798
|
inputmode: "decimal",
|
|
5782
5799
|
placeholder: "Min",
|
|
5783
|
-
step:
|
|
5800
|
+
step: z.value,
|
|
5784
5801
|
type: "text",
|
|
5785
5802
|
value: m.value,
|
|
5786
5803
|
onBlur: c[3] ||= (e) => Z("min"),
|
|
@@ -5798,14 +5815,14 @@ var ki = {
|
|
|
5798
5815
|
"max-width": "75px",
|
|
5799
5816
|
"min-width": "0"
|
|
5800
5817
|
}
|
|
5801
|
-
}, [s("span", bs,
|
|
5818
|
+
}, [s("span", bs, N(e.maxLabel), 1), s("input", {
|
|
5802
5819
|
id: d,
|
|
5803
5820
|
class: "pv-input-text",
|
|
5804
5821
|
disabled: e.disabled,
|
|
5805
5822
|
style: { width: "100%" },
|
|
5806
5823
|
inputmode: "decimal",
|
|
5807
5824
|
placeholder: "Max",
|
|
5808
|
-
step:
|
|
5825
|
+
step: z.value,
|
|
5809
5826
|
type: "text",
|
|
5810
5827
|
value: p.value,
|
|
5811
5828
|
onBlur: c[6] ||= (e) => Z("max"),
|
|
@@ -5879,7 +5896,7 @@ var ki = {
|
|
|
5879
5896
|
},
|
|
5880
5897
|
emits: ["focus-value", "toggle-value"],
|
|
5881
5898
|
setup(e, { emit: t }) {
|
|
5882
|
-
let n = e, c = t, d =
|
|
5899
|
+
let n = e, c = t, d = L(), f = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), p = r(() => !n.renderer && (f.value || !!d["result-count"])), m = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), h = r(() => ({
|
|
5883
5900
|
disabled: n.disabled,
|
|
5884
5901
|
highlightSearchText: !0,
|
|
5885
5902
|
id: n.value,
|
|
@@ -5915,12 +5932,12 @@ var ki = {
|
|
|
5915
5932
|
"indeterminate",
|
|
5916
5933
|
"modelValue"
|
|
5917
5934
|
]),
|
|
5918
|
-
e.renderer ? (E(), i(
|
|
5919
|
-
s("span", Es,
|
|
5920
|
-
e.subduedText ? (E(), o("span", Ds,
|
|
5921
|
-
e.subText ? (E(), o("span", Os,
|
|
5935
|
+
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span", Ts, [
|
|
5936
|
+
s("span", Es, N(e.label), 1),
|
|
5937
|
+
e.subduedText ? (E(), o("span", Ds, N(e.subduedText), 1)) : a("", !0),
|
|
5938
|
+
e.subText ? (E(), o("span", Os, N(e.subText), 1)) : a("", !0)
|
|
5922
5939
|
])),
|
|
5923
|
-
p.value ? (E(), o("span", ks, [A(t.$slots, "result-count", {}, () => [l("(" +
|
|
5940
|
+
p.value ? (E(), o("span", ks, [A(t.$slots, "result-count", {}, () => [l("(" + N(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
5924
5941
|
e.showFocusAction ? (E(), i(Q, {
|
|
5925
5942
|
key: 3,
|
|
5926
5943
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -6376,7 +6393,7 @@ var ki = {
|
|
|
6376
6393
|
"search-change"
|
|
6377
6394
|
],
|
|
6378
6395
|
setup(e, { emit: n }) {
|
|
6379
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Xc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []),
|
|
6396
|
+
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Xc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(A.value)), M = r(() => c.filter.valueLabels?.true ?? "Yes"), P = r(() => c.filter.filterOptionsSortDescription || "Suggested"), te = (e) => {
|
|
6380
6397
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6381
6398
|
return [
|
|
6382
6399
|
e.value,
|
|
@@ -6386,25 +6403,25 @@ var ki = {
|
|
|
6386
6403
|
e.matchedValue,
|
|
6387
6404
|
e.matchedField
|
|
6388
6405
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6389
|
-
},
|
|
6406
|
+
}, F = r(() => S.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? Ac(T.value) || void 0 : A.value.length || void 0), I = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), L = (e, t = 0) => e.flatMap((e) => [
|
|
6390
6407
|
{
|
|
6391
6408
|
depth: t,
|
|
6392
6409
|
kind: "option",
|
|
6393
6410
|
option: e
|
|
6394
6411
|
},
|
|
6395
|
-
...e.children?.length ?
|
|
6396
|
-
...
|
|
6412
|
+
...e.children?.length ? L(e.children, t + 1) : [],
|
|
6413
|
+
...I(e) ? [{
|
|
6397
6414
|
depth: t + 1,
|
|
6398
6415
|
kind: "child-load-more",
|
|
6399
6416
|
parent: e
|
|
6400
6417
|
}] : []
|
|
6401
|
-
]),
|
|
6402
|
-
let e =
|
|
6403
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
6404
|
-
}),
|
|
6418
|
+
]), R = r(() => {
|
|
6419
|
+
let e = L(v.value), t = D.value;
|
|
6420
|
+
return t ? e.filter((e) => e.kind === "option" && te(e.option).includes(t)) : e;
|
|
6421
|
+
}), z = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6405
6422
|
label: e,
|
|
6406
6423
|
value: e
|
|
6407
|
-
})),
|
|
6424
|
+
})), ne = r(() => w.value ? R.value : R.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), re = r(() => ne.value.length > m.value), B = r(() => re.value || c.filter.hasMore), V = r(() => ne.value.slice(0, m.value)), ie = r(() => w.value ? Dc({
|
|
6408
6425
|
options: y.value,
|
|
6409
6426
|
state: T.value
|
|
6410
6427
|
}) : /* @__PURE__ */ new Map()), W = (e) => Bs(e, c.filter.colDef), ae = (e) => Vs(e), G = (e) => w.value ? ie.value.get(e.value) ?? {
|
|
@@ -6412,7 +6429,7 @@ var ki = {
|
|
|
6412
6429
|
selected: !1
|
|
6413
6430
|
} : {
|
|
6414
6431
|
indeterminate: !1,
|
|
6415
|
-
selected:
|
|
6432
|
+
selected: ee.value.has(e.value)
|
|
6416
6433
|
}, oe = (e) => G(e).selected, se = (e) => G(e).indeterminate, K = (e) => Js(e) ?? e.value, q = (e) => Ys(e, c.filter.key), ce = (e) => {
|
|
6417
6434
|
let t = q(e), n = K(e);
|
|
6418
6435
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
@@ -6422,13 +6439,13 @@ var ki = {
|
|
|
6422
6439
|
context: e,
|
|
6423
6440
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
6424
6441
|
id: e.value,
|
|
6425
|
-
searchText:
|
|
6442
|
+
searchText: te(e),
|
|
6426
6443
|
secondaryText: ae(e),
|
|
6427
6444
|
subText: e.subText,
|
|
6428
6445
|
subduedText: e.subduedText,
|
|
6429
6446
|
text: W(e),
|
|
6430
6447
|
totalChildCount: e.totalChildCount
|
|
6431
|
-
}), de = r(() => v.value.map(le)), J = r(() =>
|
|
6448
|
+
}), de = r(() => v.value.map(le)), J = r(() => z.value.map(le)), fe = r(() => ({
|
|
6432
6449
|
colDef: c.filter.colDef,
|
|
6433
6450
|
disabled: c.filter.disabled,
|
|
6434
6451
|
filter: c.filter,
|
|
@@ -6442,7 +6459,7 @@ var ki = {
|
|
|
6442
6459
|
rowsLoading: c.filter.isLoading
|
|
6443
6460
|
}
|
|
6444
6461
|
})), Y = () => {
|
|
6445
|
-
|
|
6462
|
+
re.value ? m.value += Xc : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6446
6463
|
}, pe = (e) => {
|
|
6447
6464
|
d("load-more", p.value.trim(), e.value);
|
|
6448
6465
|
}, me = (e) => {
|
|
@@ -6526,10 +6543,10 @@ var ki = {
|
|
|
6526
6543
|
class: "pv-text-subdued",
|
|
6527
6544
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
6528
6545
|
}, null, 8, ["name"]),
|
|
6529
|
-
s("span", null,
|
|
6530
|
-
|
|
6546
|
+
s("span", null, N(e.filter.label), 1),
|
|
6547
|
+
F.value ? (E(), i(Le, {
|
|
6531
6548
|
key: 0,
|
|
6532
|
-
value:
|
|
6549
|
+
value: F.value,
|
|
6533
6550
|
size: "sm",
|
|
6534
6551
|
variant: "secondary"
|
|
6535
6552
|
}, null, 8, ["value"])) : a("", !0)
|
|
@@ -6556,7 +6573,7 @@ var ki = {
|
|
|
6556
6573
|
variant: "ghost",
|
|
6557
6574
|
onClick: xe
|
|
6558
6575
|
}, null, 8, ["disabled"])])) : a("", !0),
|
|
6559
|
-
e.filter.filterHeaderRenderer ? (E(), i(
|
|
6576
|
+
e.filter.filterHeaderRenderer ? (E(), i(j(e.filter.filterHeaderRenderer), b(_({ key: 2 }, fe.value)), null, 16)) : a("", !0)
|
|
6560
6577
|
])) : a("", !0),
|
|
6561
6578
|
e.filter.hideSearch ? a("", !0) : (E(), i(Wr, {
|
|
6562
6579
|
key: 1,
|
|
@@ -6570,7 +6587,7 @@ var ki = {
|
|
|
6570
6587
|
"disabled",
|
|
6571
6588
|
"placeholder"
|
|
6572
6589
|
])),
|
|
6573
|
-
|
|
6590
|
+
z.value.length ? (E(), o("div", Lc, [(E(!0), o(t, null, k(z.value, (t) => (E(), i(As, {
|
|
6574
6591
|
key: t.value,
|
|
6575
6592
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6576
6593
|
"focus-text": e.filter.focusText,
|
|
@@ -6604,9 +6621,9 @@ var ki = {
|
|
|
6604
6621
|
"onToggleValue"
|
|
6605
6622
|
]))), 128))])) : a("", !0),
|
|
6606
6623
|
e.filter.isLoading ? (E(), o("div", Rc, [u(Oe, { size: "sm" })])) : (E(), o(t, { key: 4 }, [
|
|
6607
|
-
!v.value.length && !
|
|
6608
|
-
|
|
6609
|
-
|
|
6624
|
+
!v.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p", zc, "No values available."))], 64)) : !R.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-matches" }), null, 16)) : (E(), o("p", Bc, "No matching values."))], 64)) : a("", !0),
|
|
6625
|
+
ne.value.length || B.value ? (E(), o("div", Vc, [
|
|
6626
|
+
ne.value.length && !e.filter.hideOptionsSortDescription ? (E(), o("div", Hc, [e.filter.filterOptionsSortTooltip ? (E(), i(Pn, {
|
|
6610
6627
|
key: 0,
|
|
6611
6628
|
variant: "dark",
|
|
6612
6629
|
disableInteractive: !0,
|
|
@@ -6615,11 +6632,11 @@ var ki = {
|
|
|
6615
6632
|
"use-teleport": !0,
|
|
6616
6633
|
style: { "--max-width": "200px" }
|
|
6617
6634
|
}, {
|
|
6618
|
-
trigger: U(() => [s("p", Uc, P
|
|
6619
|
-
content: U(() => [l(
|
|
6635
|
+
trigger: U(() => [s("p", Uc, N(P.value), 1)]),
|
|
6636
|
+
content: U(() => [l(N(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6620
6637
|
_: 1
|
|
6621
|
-
})) : (E(), o("p", Wc, P
|
|
6622
|
-
(E(!0), o(t, null, k(
|
|
6638
|
+
})) : (E(), o("p", Wc, N(P.value), 1))])) : a("", !0),
|
|
6639
|
+
(E(!0), o(t, null, k(V.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(As, {
|
|
6623
6640
|
key: 0,
|
|
6624
6641
|
depth: n.depth,
|
|
6625
6642
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6670,7 +6687,7 @@ var ki = {
|
|
|
6670
6687
|
"style",
|
|
6671
6688
|
"onClick"
|
|
6672
6689
|
]))], 64))), 128)),
|
|
6673
|
-
|
|
6690
|
+
B.value ? (E(), i(Q, {
|
|
6674
6691
|
key: 1,
|
|
6675
6692
|
class: "pv-text-brand",
|
|
6676
6693
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -6680,7 +6697,7 @@ var ki = {
|
|
|
6680
6697
|
onClick: Y
|
|
6681
6698
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
6682
6699
|
])) : a("", !0),
|
|
6683
|
-
e.filter.filterFooterRenderer ? (E(), i(
|
|
6700
|
+
e.filter.filterFooterRenderer ? (E(), i(j(e.filter.filterFooterRenderer), b(_({ key: 3 }, fe.value)), null, 16)) : a("", !0)
|
|
6684
6701
|
], 64))
|
|
6685
6702
|
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(ws, {
|
|
6686
6703
|
key: 1,
|
|
@@ -6705,7 +6722,7 @@ var ki = {
|
|
|
6705
6722
|
"value-decimals"
|
|
6706
6723
|
])) : S.value === "range" ? (E(), o("p", Gc, " Range filters require minimum and maximum bounds. ")) : S.value === "boolean" ? (E(), o("div", Kc, [s("div", qc, [u(Q, {
|
|
6707
6724
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6708
|
-
label:
|
|
6725
|
+
label: M.value,
|
|
6709
6726
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
6710
6727
|
onClick: r[1] ||= (t) => he(e.filter.booleanValue === !0 ? null : !0)
|
|
6711
6728
|
}, null, 8, [
|
|
@@ -6732,7 +6749,7 @@ var ki = {
|
|
|
6732
6749
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6733
6750
|
modelValue: e.filter.existsValue ?? !1,
|
|
6734
6751
|
"onUpdate:modelValue": ge
|
|
6735
|
-
}, null, 8, ["disabled", "modelValue"]), s("span", Yc,
|
|
6752
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Yc, N(h.value), 1)])) : a("", !0)])], 40, jc));
|
|
6736
6753
|
}
|
|
6737
6754
|
}), [["__scopeId", "data-v-4478d3f6"]]), $c = {
|
|
6738
6755
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
@@ -6781,7 +6798,7 @@ var ki = {
|
|
|
6781
6798
|
"--flex-gap": "12px",
|
|
6782
6799
|
"padding-bottom": "12px"
|
|
6783
6800
|
}
|
|
6784
|
-
}, [s("span", tl,
|
|
6801
|
+
}, [s("span", tl, N(n.label), 1), s("div", nl, [(E(!0), o(t, null, k(n.values, (t) => (E(), i(er, {
|
|
6785
6802
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
6786
6803
|
label: t.label,
|
|
6787
6804
|
showClear: !e.readOnly,
|
|
@@ -6902,7 +6919,7 @@ var ki = {
|
|
|
6902
6919
|
}),
|
|
6903
6920
|
emits: ["update:modelValue"],
|
|
6904
6921
|
setup(e) {
|
|
6905
|
-
let n = e, c =
|
|
6922
|
+
let n = e, c = I(e, "modelValue"), l = r(() => {
|
|
6906
6923
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
6907
6924
|
for (let r of n.filters) r.category && (e.add(r.category), t.includes(r.category) || t.push(r.category));
|
|
6908
6925
|
let r = (n.categoryOrder ?? []).filter((t) => e.has(t)), i = new Set(r), a = t.filter((e) => !i.has(e));
|
|
@@ -7288,7 +7305,7 @@ var ki = {
|
|
|
7288
7305
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
7289
7306
|
let n = t ? u : l, r = k(e, t);
|
|
7290
7307
|
return v.value[r] = (v.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
7291
|
-
},
|
|
7308
|
+
}, ee = (e, t, n) => {
|
|
7292
7309
|
let r = t ? u : l, i = Math.max(0, (v.value[n] ?? 1) - 1);
|
|
7293
7310
|
if (i > 0) {
|
|
7294
7311
|
v.value[n] = i;
|
|
@@ -7329,7 +7346,7 @@ var ki = {
|
|
|
7329
7346
|
}
|
|
7330
7347
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7331
7348
|
} finally {
|
|
7332
|
-
|
|
7349
|
+
ee(n.field, v, y);
|
|
7333
7350
|
}
|
|
7334
7351
|
},
|
|
7335
7352
|
filterChildHasMoreMap: p,
|
|
@@ -7460,43 +7477,43 @@ function vu(e, t, n) {
|
|
|
7460
7477
|
ie(() => {
|
|
7461
7478
|
C("filterModel", !!((e.filterStore || o) && t.value !== null)), C("filterOptions", Object.keys(e.filterOptions).length > 0), C("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), C("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), C("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), C("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), C("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler)), (e.filterStore || o) && v.value;
|
|
7462
7479
|
});
|
|
7463
|
-
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null,
|
|
7480
|
+
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ee = (e) => {
|
|
7464
7481
|
let t = D(e), n = t.filterPanelType;
|
|
7465
7482
|
if (n && _u.has(n)) return n;
|
|
7466
7483
|
if (t.filterPanelRange) return "range";
|
|
7467
7484
|
if (t.dataType === "boolean") return "boolean";
|
|
7468
7485
|
if (e.filter) return "value";
|
|
7469
|
-
},
|
|
7486
|
+
}, j = (e) => ee(e) ?? "value", M = (e) => D(e).filterPanelCategory ?? null, N = (e) => {
|
|
7470
7487
|
let t = D(e).filterPanelValueLabels;
|
|
7471
7488
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
7472
|
-
},
|
|
7489
|
+
}, P = (t) => {
|
|
7473
7490
|
let n = D(t), r = k(t);
|
|
7474
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
7475
|
-
},
|
|
7491
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && V.value.has(r) ? !1 : !!ee(t);
|
|
7492
|
+
}, te = (e) => (p.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), F = (t) => {
|
|
7476
7493
|
let n = p.value;
|
|
7477
7494
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
7478
|
-
},
|
|
7495
|
+
}, I = (e) => p.value.filterHasMoreMap.value[e] ?? !1, L = (e) => p.value.filterLoadingMap.value[e] ?? !1, R = (e) => p.value.filterLoadingMoreMap.value[e] ?? !1, z = (e) => p.value.filterSearchQueries.value[e] ?? "", ne = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
7479
7496
|
label: e.label,
|
|
7480
7497
|
value: e.filter.value
|
|
7481
|
-
}]),
|
|
7498
|
+
}]), re = (e) => [
|
|
7499
|
+
...ne(e),
|
|
7482
7500
|
...te(e),
|
|
7483
|
-
...
|
|
7484
|
-
|
|
7485
|
-
], V = (e) => {
|
|
7501
|
+
...F(e)
|
|
7502
|
+
], B = (e) => {
|
|
7486
7503
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
7487
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
7504
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(B) : [];
|
|
7488
7505
|
return n ? [n, ...r] : r;
|
|
7489
|
-
},
|
|
7506
|
+
}, V = r(() => {
|
|
7490
7507
|
let t = /* @__PURE__ */ new Set();
|
|
7491
7508
|
for (let n of e.colDefs) {
|
|
7492
7509
|
let e = D(n);
|
|
7493
7510
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
7494
|
-
for (let n of
|
|
7511
|
+
for (let n of B(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
7495
7512
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
7496
7513
|
}
|
|
7497
7514
|
return t;
|
|
7498
7515
|
}), U = (e) => {
|
|
7499
|
-
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
7516
|
+
let t = k(e), n = D(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = B(n.aggregateFieldHierarchy);
|
|
7500
7517
|
return Array.from(new Set([
|
|
7501
7518
|
t,
|
|
7502
7519
|
...r,
|
|
@@ -7543,9 +7560,9 @@ function vu(e, t, n) {
|
|
|
7543
7560
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
7544
7561
|
label: K(e)?.headerName ?? e
|
|
7545
7562
|
}));
|
|
7546
|
-
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => U(t.colDef).includes(e)), fe = (e, t, n) => Xs(J(e)?.knownOptions ?? []).find((r) => r.value === n || Zs(r, t, n, e)), Y = r(() => e.colDefs.filter(
|
|
7547
|
-
let n = k(t), r = D(t), i =
|
|
7548
|
-
category:
|
|
7563
|
+
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => U(t.colDef).includes(e)), fe = (e, t, n) => Xs(J(e)?.knownOptions ?? []).find((r) => r.value === n || Zs(r, t, n, e)), Y = r(() => e.colDefs.filter(P).map((t) => {
|
|
7564
|
+
let n = k(t), r = D(t), i = j(t), a = ue(te(n), t), o = ue(re(n), t), s = {
|
|
7565
|
+
category: M(t),
|
|
7549
7566
|
colDef: t,
|
|
7550
7567
|
dataType: r.dataType ?? null,
|
|
7551
7568
|
disabled: e.readOnly,
|
|
@@ -7564,11 +7581,11 @@ function vu(e, t, n) {
|
|
|
7564
7581
|
hideSearch: r.filterPanelHideSearch,
|
|
7565
7582
|
focusedValues: e.focusedValues[n] ?? [],
|
|
7566
7583
|
focusedValuesByField: se(t),
|
|
7567
|
-
hasMore:
|
|
7584
|
+
hasMore: I(n),
|
|
7568
7585
|
isAggregate: W(t),
|
|
7569
7586
|
isFocusable: e.enableFocusView && (!e.focusableFields.length || U(t).some((t) => e.focusableFields.includes(t))),
|
|
7570
|
-
isLoading:
|
|
7571
|
-
isLoadingMore:
|
|
7587
|
+
isLoading: L(n),
|
|
7588
|
+
isLoadingMore: R(n),
|
|
7572
7589
|
isOpen: !1,
|
|
7573
7590
|
key: n,
|
|
7574
7591
|
knownOptions: o,
|
|
@@ -7577,10 +7594,10 @@ function vu(e, t, n) {
|
|
|
7577
7594
|
rangeMin: A(r.filterPanelRange?.min),
|
|
7578
7595
|
rangeStep: A(r.filterPanelRange?.step),
|
|
7579
7596
|
searchPlaceholder: ce(t),
|
|
7580
|
-
searchQuery:
|
|
7597
|
+
searchQuery: z(n) ?? "",
|
|
7581
7598
|
type: i,
|
|
7582
7599
|
valueDecimals: r.valueDecimals ?? null,
|
|
7583
|
-
valueLabels:
|
|
7600
|
+
valueLabels: N(t)
|
|
7584
7601
|
};
|
|
7585
7602
|
if (i === "range") return {
|
|
7586
7603
|
...s,
|
|
@@ -8004,9 +8021,9 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8004
8021
|
"suggestion-click"
|
|
8005
8022
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
8006
8023
|
setup(e, { emit: n }) {
|
|
8007
|
-
let c = e, l =
|
|
8024
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: ee, removeAppliedFilter: j } = vu(c, l, f), M = O("filters"), te = O({}), F = O(null), L = O(!1), R = O(!1), z = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ne = r(() => F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), re = r(() => ne.value.filter((e) => !z(e))), B = r(() => ne.value.filter(z)), H = r(() => L.value ? [...re.value, ...B.value] : re.value), ie = r(() => `${L.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), ae = r(() => H.value.map((e) => ({
|
|
8008
8025
|
...e,
|
|
8009
|
-
isOpen:
|
|
8026
|
+
isOpen: te.value[e.key] ?? e.isOpen ?? !1
|
|
8010
8027
|
}))), G = r(() => [{
|
|
8011
8028
|
label: "Filters",
|
|
8012
8029
|
value: "filters"
|
|
@@ -8020,15 +8037,15 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8020
8037
|
minHeight: "0",
|
|
8021
8038
|
width: c.width
|
|
8022
8039
|
})), se = (e) => {
|
|
8023
|
-
(e === "filters" || e === "applied") && (
|
|
8040
|
+
(e === "filters" || e === "applied") && (M.value = e);
|
|
8024
8041
|
}, K = (e, t) => {
|
|
8025
|
-
|
|
8042
|
+
te.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
8026
8043
|
}, q = () => {
|
|
8027
|
-
|
|
8044
|
+
R.value = !1;
|
|
8028
8045
|
}, ce = () => {
|
|
8029
|
-
S(),
|
|
8046
|
+
S(), R.value = !1;
|
|
8030
8047
|
}, le = () => {
|
|
8031
|
-
|
|
8048
|
+
R.value = !0;
|
|
8032
8049
|
};
|
|
8033
8050
|
return (n, r) => (E(), o(t, null, [d.value ? a("", !0) : (E(), o("div", {
|
|
8034
8051
|
key: 0,
|
|
@@ -8039,7 +8056,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8039
8056
|
style: x(oe.value)
|
|
8040
8057
|
}, [
|
|
8041
8058
|
s("div", bu, [u(ur, {
|
|
8042
|
-
modelValue:
|
|
8059
|
+
modelValue: M.value,
|
|
8043
8060
|
options: G.value,
|
|
8044
8061
|
class: "pv-filter-panel-mode-control",
|
|
8045
8062
|
size: "xl",
|
|
@@ -8053,12 +8070,12 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8053
8070
|
onClick: r[0] ||= (e) => d.value = !0
|
|
8054
8071
|
}))]),
|
|
8055
8072
|
s("div", xu, [W(s("div", Su, [
|
|
8056
|
-
!e.readOnly &&
|
|
8057
|
-
key:
|
|
8073
|
+
!e.readOnly && P(_).length ? (E(), o("section", Cu, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", wu, [(E(!0), o(t, null, k(P(_), (e) => (E(), i(Lr, {
|
|
8074
|
+
key: P(C)(e),
|
|
8058
8075
|
icon: e.icon,
|
|
8059
8076
|
"icon-classes": e.iconClasses,
|
|
8060
8077
|
label: e.label,
|
|
8061
|
-
onHandleClick: () =>
|
|
8078
|
+
onHandleClick: () => P(ee)(e)
|
|
8062
8079
|
}, null, 8, [
|
|
8063
8080
|
"icon",
|
|
8064
8081
|
"icon-classes",
|
|
@@ -8067,49 +8084,49 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8067
8084
|
]))), 128))])])) : a("", !0),
|
|
8068
8085
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
8069
8086
|
u(dl, {
|
|
8070
|
-
modelValue:
|
|
8071
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
8087
|
+
modelValue: F.value,
|
|
8088
|
+
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
8072
8089
|
"category-order": e.categoryOrder,
|
|
8073
|
-
filters:
|
|
8090
|
+
filters: P(p)
|
|
8074
8091
|
}, null, 8, [
|
|
8075
8092
|
"modelValue",
|
|
8076
8093
|
"category-order",
|
|
8077
8094
|
"filters"
|
|
8078
8095
|
]),
|
|
8079
|
-
|
|
8096
|
+
P(p).length ? ne.value.length ? (E(), o("div", Du, [(E(!0), o(t, null, k(ae.value, (e) => (E(), i(Qc, {
|
|
8080
8097
|
key: e.key,
|
|
8081
8098
|
filter: e,
|
|
8082
|
-
onFilterChange: (t) =>
|
|
8099
|
+
onFilterChange: (t) => P(w)(e.key, t),
|
|
8083
8100
|
onFocusChange: r[2] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
8084
8101
|
onHandleSettingsIcon: r[3] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
8085
|
-
onLoadMore: (t, n) =>
|
|
8102
|
+
onLoadMore: (t, n) => P(T)(e, t, n),
|
|
8086
8103
|
onOpenChange: (t) => K(e, t),
|
|
8087
|
-
onSearchChange: (t) =>
|
|
8104
|
+
onSearchChange: (t) => P(D)(e, t)
|
|
8088
8105
|
}, null, 8, [
|
|
8089
8106
|
"filter",
|
|
8090
8107
|
"onFilterChange",
|
|
8091
8108
|
"onLoadMore",
|
|
8092
8109
|
"onOpenChange",
|
|
8093
8110
|
"onSearchChange"
|
|
8094
|
-
]))), 128)),
|
|
8111
|
+
]))), 128)), B.value.length ? (E(), i(Q, {
|
|
8095
8112
|
key: 0,
|
|
8096
8113
|
class: "pv-text-brand",
|
|
8097
8114
|
label: ie.value,
|
|
8098
8115
|
variant: "ghost",
|
|
8099
|
-
onClick: r[4] ||= (e) =>
|
|
8116
|
+
onClick: r[4] ||= (e) => L.value = !L.value
|
|
8100
8117
|
}, null, 8, ["label"])) : a("", !0)])) : (E(), o("div", Eu, " No filters in this category. ")) : (E(), o("div", Tu, " No filters available. "))
|
|
8101
|
-
], 512), [[
|
|
8102
|
-
"applied-count":
|
|
8103
|
-
"applied-groups":
|
|
8118
|
+
], 512), [[V, M.value === "filters"]]), W(u(il, {
|
|
8119
|
+
"applied-count": P(h),
|
|
8120
|
+
"applied-groups": P(m),
|
|
8104
8121
|
"read-only": e.readOnly,
|
|
8105
|
-
onRemoveFilter:
|
|
8122
|
+
onRemoveFilter: P(j)
|
|
8106
8123
|
}, null, 8, [
|
|
8107
8124
|
"applied-count",
|
|
8108
8125
|
"applied-groups",
|
|
8109
8126
|
"read-only",
|
|
8110
8127
|
"onRemoveFilter"
|
|
8111
|
-
]), [[
|
|
8112
|
-
(
|
|
8128
|
+
]), [[V, M.value === "applied"]])]),
|
|
8129
|
+
(P(g) || e.staged) && !e.readOnly ? (E(), o("div", Ou, [P(g) ? (E(), i(Q, {
|
|
8113
8130
|
key: 0,
|
|
8114
8131
|
class: "pv-text-brand",
|
|
8115
8132
|
label: e.clearAllLabel,
|
|
@@ -8118,19 +8135,19 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8118
8135
|
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div", ku, [u(Q, {
|
|
8119
8136
|
label: e.cancelLabel,
|
|
8120
8137
|
variant: "ghost",
|
|
8121
|
-
onClick:
|
|
8138
|
+
onClick: P(b)
|
|
8122
8139
|
}, null, 8, ["label", "onClick"]), u(Q, {
|
|
8123
8140
|
label: e.applyLabel,
|
|
8124
8141
|
variant: "primary",
|
|
8125
|
-
onClick:
|
|
8142
|
+
onClick: P(y)
|
|
8126
8143
|
}, null, 8, ["label", "onClick"])])) : a("", !0)])) : a("", !0)
|
|
8127
8144
|
], 12, yu)), u(Cr, {
|
|
8128
|
-
modelValue:
|
|
8129
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
8145
|
+
modelValue: R.value,
|
|
8146
|
+
"onUpdate:modelValue": r[5] ||= (e) => R.value = e,
|
|
8130
8147
|
header: e.clearAllHeader,
|
|
8131
8148
|
style: { "--max-width": "440px" }
|
|
8132
8149
|
}, {
|
|
8133
|
-
body: U(() => [s("p", Au,
|
|
8150
|
+
body: U(() => [s("p", Au, N(e.clearAllBody), 1)]),
|
|
8134
8151
|
footer: U(() => [s("div", ju, [u(Q, {
|
|
8135
8152
|
label: e.cancelLabel,
|
|
8136
8153
|
variant: "ghost",
|
|
@@ -8172,7 +8189,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8172
8189
|
}),
|
|
8173
8190
|
emits: ["update:modelValue"],
|
|
8174
8191
|
setup(e) {
|
|
8175
|
-
let t = e, n =
|
|
8192
|
+
let t = e, n = I(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
8176
8193
|
return (t, r) => (E(), o("label", {
|
|
8177
8194
|
class: "pv-toggle-ghost",
|
|
8178
8195
|
for: i.value
|
|
@@ -8185,9 +8202,9 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8185
8202
|
value: e.value,
|
|
8186
8203
|
name: e.name,
|
|
8187
8204
|
disabled: e.disabled
|
|
8188
|
-
}, null, 8, Pu), [[
|
|
8189
|
-
e.label ? (E(), o("span", Fu,
|
|
8190
|
-
s("span", Iu,
|
|
8205
|
+
}, null, 8, Pu), [[ne, n.value]]),
|
|
8206
|
+
e.label ? (E(), o("span", Fu, N(e.label), 1)) : a("", !0),
|
|
8207
|
+
s("span", Iu, N(e.rightCounterBadge), 1)
|
|
8191
8208
|
], 8, Nu));
|
|
8192
8209
|
}
|
|
8193
8210
|
}), Ru = ["aria-label"], zu = {
|
|
@@ -8308,10 +8325,10 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8308
8325
|
"suggestion-click"
|
|
8309
8326
|
], ["update:filterModel", "update:visible"]),
|
|
8310
8327
|
setup(e, { emit: n }) {
|
|
8311
|
-
let c = e, l =
|
|
8328
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = vu(c, l, f), v = O(null), y = O(""), b = r(() => p.value.filter((e) => e.type === "value")), S = r(() => {
|
|
8312
8329
|
let e = b.value;
|
|
8313
8330
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8314
|
-
}), C = r(() => S.value?.isAggregate === !0), w = r(() => S.value?.aggregateSelectionState ?? []), T = r(() => new Set(S.value?.selectedValues ?? [])), D = r(() => y.value.trim().toLowerCase()),
|
|
8331
|
+
}), C = r(() => S.value?.isAggregate === !0), w = r(() => S.value?.aggregateSelectionState ?? []), T = r(() => new Set(S.value?.selectedValues ?? [])), D = r(() => y.value.trim().toLowerCase()), ee = (e) => {
|
|
8315
8332
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
8316
8333
|
return [
|
|
8317
8334
|
e.value,
|
|
@@ -8321,28 +8338,28 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8321
8338
|
e.matchedValue,
|
|
8322
8339
|
e.matchedField
|
|
8323
8340
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
8324
|
-
},
|
|
8341
|
+
}, j = r(() => {
|
|
8325
8342
|
let e = S.value;
|
|
8326
8343
|
if (!e) return {};
|
|
8327
8344
|
let t = {};
|
|
8328
8345
|
for (let n of Xs([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
8329
8346
|
return t;
|
|
8330
|
-
}),
|
|
8347
|
+
}), M = r(() => {
|
|
8331
8348
|
let e = S.value?.options ?? [], t = D.value;
|
|
8332
|
-
return t ? e.filter((e) =>
|
|
8333
|
-
}),
|
|
8349
|
+
return t ? e.filter((e) => ee(e).includes(t)) : e;
|
|
8350
|
+
}), N = r(() => C.value ? [] : (S.value?.selectedValues ?? []).map((e) => j.value[e] ?? {
|
|
8334
8351
|
label: e,
|
|
8335
8352
|
value: e
|
|
8336
|
-
})),
|
|
8353
|
+
})), te = r(() => C.value ? M.value : M.value.filter((e) => !T.value.has(e.value))), F = r(() => C.value && S.value ? Dc({
|
|
8337
8354
|
options: S.value.knownOptions ?? [],
|
|
8338
8355
|
state: w.value
|
|
8339
|
-
}) : /* @__PURE__ */ new Map()),
|
|
8356
|
+
}) : /* @__PURE__ */ new Map()), L = (e) => e.isAggregate ? Ac(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, R = (e) => C.value ? F.value.get(e.value) ?? {
|
|
8340
8357
|
indeterminate: !1,
|
|
8341
8358
|
selected: !1
|
|
8342
8359
|
} : {
|
|
8343
8360
|
indeterminate: !1,
|
|
8344
8361
|
selected: T.value.has(e.value)
|
|
8345
|
-
},
|
|
8362
|
+
}, z = (e) => S.value ? Bs(e, S.value.colDef) : e.label || e.value, ne = (e) => Js(e) ?? e.value, re = (e) => Ys(e, S.value?.key ?? ""), B = (e, t) => {
|
|
8346
8363
|
let n = S.value;
|
|
8347
8364
|
if (n) {
|
|
8348
8365
|
if (n.isAggregate) {
|
|
@@ -8359,19 +8376,19 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8359
8376
|
}
|
|
8360
8377
|
_(n.key, {
|
|
8361
8378
|
checked: t,
|
|
8362
|
-
field:
|
|
8379
|
+
field: re(e),
|
|
8363
8380
|
type: "value",
|
|
8364
|
-
value:
|
|
8381
|
+
value: ne(e)
|
|
8365
8382
|
});
|
|
8366
8383
|
}
|
|
8367
|
-
},
|
|
8368
|
-
for (let e of
|
|
8384
|
+
}, V = () => {
|
|
8385
|
+
for (let e of M.value) R(e).selected || B(e, !0);
|
|
8369
8386
|
}, ie = () => {
|
|
8370
8387
|
if (C.value) {
|
|
8371
|
-
for (let e of Xs(S.value?.knownOptions ?? []))
|
|
8388
|
+
for (let e of Xs(S.value?.knownOptions ?? [])) R(e).selected && B(e, !1);
|
|
8372
8389
|
return;
|
|
8373
8390
|
}
|
|
8374
|
-
for (let e of
|
|
8391
|
+
for (let e of N.value) B(e, !1);
|
|
8375
8392
|
}, W = () => {
|
|
8376
8393
|
S.value && f("load-more", S.value.key, S.value.colDef, y.value.trim());
|
|
8377
8394
|
}, ae = r({
|
|
@@ -8415,7 +8432,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8415
8432
|
class: "pv-full-width pv-space-between",
|
|
8416
8433
|
deselect: !1,
|
|
8417
8434
|
label: e.label,
|
|
8418
|
-
"right-counter-badge":
|
|
8435
|
+
"right-counter-badge": L(e),
|
|
8419
8436
|
value: e.key
|
|
8420
8437
|
}, null, 8, [
|
|
8421
8438
|
"modelValue",
|
|
@@ -8435,20 +8452,20 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8435
8452
|
"placeholder"
|
|
8436
8453
|
]),
|
|
8437
8454
|
S.value?.isLoading ? (E(), o("div", Hu, [u(Oe, { size: "sm" })])) : S.value ? (E(), o(t, { key: 1 }, [
|
|
8438
|
-
s("div", Uu, [(E(!0), o(t, null, k(
|
|
8455
|
+
s("div", Uu, [(E(!0), o(t, null, k(N.value, (e) => (E(), o("div", {
|
|
8439
8456
|
key: `selected-${e.value}`,
|
|
8440
8457
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
8441
8458
|
}, [u(As, {
|
|
8442
8459
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8443
|
-
indeterminate:
|
|
8444
|
-
label:
|
|
8460
|
+
indeterminate: R(e).indeterminate,
|
|
8461
|
+
label: z(e),
|
|
8445
8462
|
"query-text": y.value,
|
|
8446
|
-
"result-count":
|
|
8463
|
+
"result-count": P(Vs)(e),
|
|
8447
8464
|
selected: !0,
|
|
8448
8465
|
"sub-text": e.subText,
|
|
8449
8466
|
"subdued-text": e.subduedText,
|
|
8450
8467
|
value: e.value,
|
|
8451
|
-
onToggleValue: (t, n) =>
|
|
8468
|
+
onToggleValue: (t, n) => B(e, n)
|
|
8452
8469
|
}, null, 8, [
|
|
8453
8470
|
"disabled",
|
|
8454
8471
|
"indeterminate",
|
|
@@ -8459,20 +8476,20 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8459
8476
|
"subdued-text",
|
|
8460
8477
|
"value",
|
|
8461
8478
|
"onToggleValue"
|
|
8462
|
-
])]))), 128)), (E(!0), o(t, null, k(
|
|
8479
|
+
])]))), 128)), (E(!0), o(t, null, k(te.value, (e) => (E(), o("div", {
|
|
8463
8480
|
key: `option-${e.value}`,
|
|
8464
8481
|
class: "pv-inset-square-8 pv-radius"
|
|
8465
8482
|
}, [u(As, {
|
|
8466
8483
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8467
|
-
indeterminate:
|
|
8468
|
-
label:
|
|
8484
|
+
indeterminate: R(e).indeterminate,
|
|
8485
|
+
label: z(e),
|
|
8469
8486
|
"query-text": y.value,
|
|
8470
|
-
"result-count":
|
|
8471
|
-
selected:
|
|
8487
|
+
"result-count": P(Vs)(e),
|
|
8488
|
+
selected: R(e).selected,
|
|
8472
8489
|
"sub-text": e.subText,
|
|
8473
8490
|
"subdued-text": e.subduedText,
|
|
8474
8491
|
value: e.value,
|
|
8475
|
-
onToggleValue: (t, n) =>
|
|
8492
|
+
onToggleValue: (t, n) => B(e, n)
|
|
8476
8493
|
}, null, 8, [
|
|
8477
8494
|
"disabled",
|
|
8478
8495
|
"indeterminate",
|
|
@@ -8485,7 +8502,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8485
8502
|
"value",
|
|
8486
8503
|
"onToggleValue"
|
|
8487
8504
|
])]))), 128))]),
|
|
8488
|
-
!
|
|
8505
|
+
!N.value.length && !te.value.length ? (E(), o("p", Wu, " No matching values. ")) : a("", !0),
|
|
8489
8506
|
S.value.hasMore ? (E(), i(Q, {
|
|
8490
8507
|
key: 1,
|
|
8491
8508
|
class: "pv-text-brand",
|
|
@@ -8500,7 +8517,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8500
8517
|
disabled: S.value.disabled,
|
|
8501
8518
|
label: e.selectAllLabel,
|
|
8502
8519
|
variant: "ghost",
|
|
8503
|
-
onClick:
|
|
8520
|
+
onClick: V
|
|
8504
8521
|
}, null, 8, ["disabled", "label"]), u(Q, {
|
|
8505
8522
|
disabled: S.value.disabled,
|
|
8506
8523
|
label: e.clearSelectionLabel,
|
|
@@ -8510,11 +8527,11 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8510
8527
|
])]), e.staged ? (E(), o("div", Ku, [u(Q, {
|
|
8511
8528
|
label: e.cancelLabel,
|
|
8512
8529
|
variant: "ghost",
|
|
8513
|
-
onClick:
|
|
8530
|
+
onClick: P(g)
|
|
8514
8531
|
}, null, 8, ["label", "onClick"]), u(Q, {
|
|
8515
8532
|
label: e.applyLabel,
|
|
8516
8533
|
variant: "primary",
|
|
8517
|
-
onClick:
|
|
8534
|
+
onClick: P(h)
|
|
8518
8535
|
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Ru)]),
|
|
8519
8536
|
_: 3
|
|
8520
8537
|
}, 8, ["modelValue"]));
|
|
@@ -8650,8 +8667,8 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8650
8667
|
return (e, n) => (E(), o("div", null, [s("div", $u, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", ed, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
8651
8668
|
key: t,
|
|
8652
8669
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8653
|
-
textContent:
|
|
8654
|
-
}, null, 12, td))), 128))]), f.value ? (E(), o("p", nd, [c.value ? a("", !0) : (E(), o("span", rd, "Search in ")), s("span", id,
|
|
8670
|
+
textContent: N(e.text)
|
|
8671
|
+
}, null, 12, td))), 128))]), f.value ? (E(), o("p", nd, [c.value ? a("", !0) : (E(), o("span", rd, "Search in ")), s("span", id, N(f.value), 1)])) : a("", !0)])])]));
|
|
8655
8672
|
}
|
|
8656
8673
|
}), [["__scopeId", "data-v-ff951d17"]]), od = /* @__PURE__ */ d({
|
|
8657
8674
|
__name: "QueryFormatter",
|
|
@@ -8667,7 +8684,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8667
8684
|
}),
|
|
8668
8685
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8669
8686
|
setup(e) {
|
|
8670
|
-
let n = e, s =
|
|
8687
|
+
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } = Qu(), u = r(() => {
|
|
8671
8688
|
let e = s.value?.queryTerms || [];
|
|
8672
8689
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8673
8690
|
}), 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) => {
|
|
@@ -8757,7 +8774,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8757
8774
|
"update:options"
|
|
8758
8775
|
],
|
|
8759
8776
|
setup(e) {
|
|
8760
|
-
let n = e, c = { renderer: ad }, l =
|
|
8777
|
+
let n = e, c = { renderer: ad }, l = R("search-input"), d = I(e, "searchText"), f = I(e, "query"), p = I(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = Qu(), v = O(!1), b = O(!1), S = O(!1), C = r(() => f.value === null ? n.placeholder : ""), w = O(null), T = r(() => w.value !== null && w.value !== "" && !b.value), D = () => {
|
|
8761
8778
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
8762
8779
|
};
|
|
8763
8780
|
n.enableCustomOptionsInput && se("Enter", () => {
|
|
@@ -8778,8 +8795,8 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8778
8795
|
id: d.value.trim(),
|
|
8779
8796
|
text: d.value,
|
|
8780
8797
|
queryTerm: { queryText: d.value }
|
|
8781
|
-
}),
|
|
8782
|
-
},
|
|
8798
|
+
}), L());
|
|
8799
|
+
}, ee = r(() => {
|
|
8783
8800
|
if (!p.value || p.value.length === 0) return [];
|
|
8784
8801
|
let e = p.value;
|
|
8785
8802
|
return n.processor === "field-only" && (e = p.value.filter((e) => e.queryTerm?.queryField)), f.value && (e = e.filter((e) => !h(f.value, e))), e.map((e) => ({
|
|
@@ -8792,15 +8809,15 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8792
8809
|
}));
|
|
8793
8810
|
});
|
|
8794
8811
|
H([
|
|
8795
|
-
|
|
8812
|
+
ee,
|
|
8796
8813
|
d,
|
|
8797
8814
|
() => n.optionsLoading
|
|
8798
8815
|
], ([e, t, n]) => {
|
|
8799
8816
|
t && t.length > 0 && (e.length > 0 || n) ? v.value = !0 : (!t || t.length === 0) && (v.value = !1);
|
|
8800
8817
|
}, { immediate: !0 });
|
|
8801
|
-
let
|
|
8818
|
+
let j = () => {
|
|
8802
8819
|
n.enableCustomOptionsInput && A(), v.value = !1, b.value = !1, S.value = !1;
|
|
8803
|
-
},
|
|
8820
|
+
}, M = (e) => {
|
|
8804
8821
|
try {
|
|
8805
8822
|
let t = {
|
|
8806
8823
|
id: e.id,
|
|
@@ -8808,28 +8825,28 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8808
8825
|
queryTerm: e.context,
|
|
8809
8826
|
icon: e.icon
|
|
8810
8827
|
};
|
|
8811
|
-
f.value = m(f.value, t),
|
|
8828
|
+
f.value = m(f.value, t), L();
|
|
8812
8829
|
} catch (e) {
|
|
8813
8830
|
console.error("Error adding query option:", e);
|
|
8814
8831
|
} finally {
|
|
8815
8832
|
v.value = !1, b.value = !1;
|
|
8816
8833
|
}
|
|
8817
8834
|
};
|
|
8818
|
-
function
|
|
8835
|
+
function te(e) {
|
|
8819
8836
|
let t = e.target;
|
|
8820
8837
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
8821
8838
|
}
|
|
8822
|
-
function
|
|
8839
|
+
function F(e) {
|
|
8823
8840
|
e.type === "focus" ? (b.value = !0, v.value = !0) : e.type;
|
|
8824
8841
|
}
|
|
8825
|
-
let
|
|
8842
|
+
let L = () => {
|
|
8826
8843
|
d.value = "";
|
|
8827
8844
|
};
|
|
8828
8845
|
return (n, r) => W((E(), o("div", {
|
|
8829
8846
|
ref: "query-builder-input",
|
|
8830
8847
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
8831
|
-
onFocus:
|
|
8832
|
-
onClick:
|
|
8848
|
+
onFocus: F,
|
|
8849
|
+
onClick: te
|
|
8833
8850
|
}, [
|
|
8834
8851
|
e.hideSearchIcon ? a("", !0) : (E(), i(X, {
|
|
8835
8852
|
key: 0,
|
|
@@ -8860,9 +8877,9 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8860
8877
|
placeholder: C.value,
|
|
8861
8878
|
"data-invalid": T.value ? "true" : void 0,
|
|
8862
8879
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
8863
|
-
onFocus:
|
|
8864
|
-
onBlur:
|
|
8865
|
-
}, null, 44, sd), [[
|
|
8880
|
+
onFocus: F,
|
|
8881
|
+
onBlur: F
|
|
8882
|
+
}, null, 44, sd), [[B, d.value]])], 4),
|
|
8866
8883
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8867
8884
|
key: 1,
|
|
8868
8885
|
variant: "ghost",
|
|
@@ -8870,8 +8887,8 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8870
8887
|
size: "md",
|
|
8871
8888
|
onClick: D
|
|
8872
8889
|
})) : a("", !0),
|
|
8873
|
-
T.value ? (E(), o("p", cd,
|
|
8874
|
-
|
|
8890
|
+
T.value ? (E(), o("p", cd, N(w.value), 1)) : a("", !0),
|
|
8891
|
+
ee.value.length > 0 || e.optionsLoading ? (E(), i(rr, {
|
|
8875
8892
|
key: 3,
|
|
8876
8893
|
class: y({ "pv-hide": !v.value }),
|
|
8877
8894
|
"css-custom-properties": {
|
|
@@ -8880,18 +8897,18 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8880
8897
|
},
|
|
8881
8898
|
isList: !0
|
|
8882
8899
|
}, {
|
|
8883
|
-
default: U(() => [e.optionsLoading ? (E(), o("div", ld, [u(Oe, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(
|
|
8900
|
+
default: U(() => [e.optionsLoading ? (E(), o("div", ld, [u(Oe, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(ee.value, (e, t) => (E(), i($i, _({
|
|
8884
8901
|
key: `${t}-${e.searchText}`,
|
|
8885
8902
|
ref_for: !0
|
|
8886
8903
|
}, e, {
|
|
8887
|
-
onHandleSelected: (t) =>
|
|
8904
|
+
onHandleSelected: (t) => M(e),
|
|
8888
8905
|
config: c
|
|
8889
8906
|
}), null, 16, ["onHandleSelected"]))), 128))]),
|
|
8890
8907
|
_: 1
|
|
8891
8908
|
}, 8, ["class"])) : a("", !0)
|
|
8892
|
-
], 32)), [[
|
|
8909
|
+
], 32)), [[P(de), j]]);
|
|
8893
8910
|
}
|
|
8894
|
-
}), [["__scopeId", "data-v-e2a82095"]]), dd = { class: "sidebar-header" }, fd = { class: "sidebar-header-content" }, pd =
|
|
8911
|
+
}), [["__scopeId", "data-v-e2a82095"]]), dd = { class: "sidebar-header" }, fd = { class: "sidebar-header-content" }, pd = 300, md = /* @__PURE__ */ d({
|
|
8895
8912
|
__name: "PvSidebar",
|
|
8896
8913
|
props: /* @__PURE__ */ g({
|
|
8897
8914
|
disableToggle: { type: Boolean },
|
|
@@ -8905,7 +8922,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8905
8922
|
}),
|
|
8906
8923
|
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
8907
8924
|
setup(e, { emit: t }) {
|
|
8908
|
-
let n =
|
|
8925
|
+
let n = I(e, "modelValue"), r = t, c = O(!1), l = null, u = f(), d = () => u?.proxy?.$el ?? null;
|
|
8909
8926
|
H(n, () => {
|
|
8910
8927
|
c.value = !1;
|
|
8911
8928
|
});
|
|
@@ -8917,7 +8934,7 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8917
8934
|
}, m = () => {
|
|
8918
8935
|
n.value && (l && clearTimeout(l), l = setTimeout(() => {
|
|
8919
8936
|
c.value = !0;
|
|
8920
|
-
},
|
|
8937
|
+
}, pd));
|
|
8921
8938
|
}, h = () => {
|
|
8922
8939
|
l &&= (clearTimeout(l), null), p(), c.value = !1;
|
|
8923
8940
|
}, g = () => {
|
|
@@ -8939,13 +8956,13 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8939
8956
|
"aria-label": n.value ? "Open sidebar" : "Close sidebar",
|
|
8940
8957
|
variant: "secondary",
|
|
8941
8958
|
onClick: g
|
|
8942
|
-
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div",
|
|
8959
|
+
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div", null, [A(t.$slots, "default")])], 2));
|
|
8943
8960
|
}
|
|
8944
|
-
}),
|
|
8961
|
+
}), hd = {
|
|
8945
8962
|
class: "pv-toc",
|
|
8946
8963
|
role: "list",
|
|
8947
8964
|
style: { "min-width": "160px" }
|
|
8948
|
-
},
|
|
8965
|
+
}, gd = ["aria-current"], _d = ["href", "onClick"], vd = /* @__PURE__ */ d({
|
|
8949
8966
|
__name: "PvTableOfContents",
|
|
8950
8967
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
8951
8968
|
modelValue: { required: !1 },
|
|
@@ -8953,10 +8970,10 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8953
8970
|
}),
|
|
8954
8971
|
emits: /* @__PURE__ */ g(["handle-select"], ["update:modelValue"]),
|
|
8955
8972
|
setup(e, { emit: n }) {
|
|
8956
|
-
let r =
|
|
8973
|
+
let r = I(e, "modelValue"), c = n, u = (e, t) => {
|
|
8957
8974
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8958
8975
|
};
|
|
8959
|
-
return (n, c) => (E(), o("ul",
|
|
8976
|
+
return (n, c) => (E(), o("ul", hd, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|
|
8960
8977
|
key: e.id,
|
|
8961
8978
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
8962
8979
|
}, [s("a", {
|
|
@@ -8965,9 +8982,9 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8965
8982
|
}, [e.icon ? (E(), i(X, {
|
|
8966
8983
|
key: 0,
|
|
8967
8984
|
name: e.icon
|
|
8968
|
-
}, null, 8, ["name"])) : a("", !0), l(" " +
|
|
8985
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8, _d)], 8, gd))), 128))]));
|
|
8969
8986
|
}
|
|
8970
|
-
}),
|
|
8987
|
+
}), yd = { class: "pv-flex" }, bd = ["data-clickable", "onClick"], xd = /* @__PURE__ */ d({
|
|
8971
8988
|
__name: "PvStepper",
|
|
8972
8989
|
props: {
|
|
8973
8990
|
count: { default: 5 },
|
|
@@ -8980,14 +8997,14 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8980
8997
|
emits: ["update:active"],
|
|
8981
8998
|
setup(e) {
|
|
8982
8999
|
let n = e;
|
|
8983
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div",
|
|
9000
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div", yd, [(E(!0), o(t, null, k(e.count, (t, r) => (E(), o("div", {
|
|
8984
9001
|
key: r,
|
|
8985
9002
|
"data-clickable": e.clickable,
|
|
8986
9003
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
8987
9004
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
8988
|
-
}, null, 10,
|
|
9005
|
+
}, null, 10, bd))), 128))]));
|
|
8989
9006
|
}
|
|
8990
|
-
}),
|
|
9007
|
+
}), Sd = { theme: {
|
|
8991
9008
|
preset: be,
|
|
8992
9009
|
options: {
|
|
8993
9010
|
darkModeSelector: "none",
|
|
@@ -8996,10 +9013,31 @@ var yu = ["aria-label"], bu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8996
9013
|
order: "pit-viper-v2, primevue"
|
|
8997
9014
|
}
|
|
8998
9015
|
}
|
|
8999
|
-
} },
|
|
9000
|
-
e.use(ye,
|
|
9016
|
+
} }, Cd = (e) => {
|
|
9017
|
+
e.use(ye, Sd);
|
|
9018
|
+
}, wd = Symbol.for("pv.rum-context"), Td = () => {
|
|
9019
|
+
let e = m(wd, void 0);
|
|
9020
|
+
return () => {
|
|
9021
|
+
let t = e?.value;
|
|
9022
|
+
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9023
|
+
};
|
|
9024
|
+
}, Ed = (e, t = {}, n = {}) => {
|
|
9025
|
+
try {
|
|
9026
|
+
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9027
|
+
let r = n.consumer == null ? t : {
|
|
9028
|
+
...t,
|
|
9029
|
+
consumer: n.consumer
|
|
9030
|
+
};
|
|
9031
|
+
window.DD_RUM.addAction(e, r);
|
|
9032
|
+
} catch {}
|
|
9033
|
+
}, Dd = (e) => {
|
|
9034
|
+
queueMicrotask(() => {
|
|
9035
|
+
try {
|
|
9036
|
+
e();
|
|
9037
|
+
} catch {}
|
|
9038
|
+
});
|
|
9001
9039
|
};
|
|
9002
9040
|
//#endregion
|
|
9003
|
-
export { zr as PvAccordion, Eo as PvActionBar, In as PvActionButton, zn as PvAiButton, pi as PvAvatar, Va as PvAvatarGroup, kr as PvBanner, ci as PvBreadcrumbs, Q as PvButton, Jn as PvButtonWithTooltip, po as PvCard, Za as PvCheckbox, Ra as PvCompanyLabel, _r as PvCompanyLogo, Pr as PvCompanyTag, Le as PvCounterBadge, Gr as PvDatePicker, qr as PvDateTime, us as PvDistributionBar, ni as PvDrawer, sr as PvDropdown, Nr as PvEmptyErrorState, So as PvExpandableContent, qu as PvFilterModal, Mu as PvFilterPanel, Aa as PvGhostInput, Ia as PvHeader, cl as PvHorizontalScroller, Zu as PvHoverActionMenu, X as PvIcon, co as PvInput, xo as PvInsightCard, ra as PvMenu, $i as PvMenuItem, Cr as PvModal, ua as PvMultiSelectButton, ya as PvPagination, tr as PvPill, rr as PvPopover, lr as PvPopoverMenu, Mn as PvPopoverV2, cs as PvProgressBar, ud as PvQueryBuilderInput, to as PvRadioGroup, ws as PvRange, fo as PvRating, Qn as PvReleaseBadge, Wr as PvSearchInput, ur as PvSegmentedControl, fa as PvSelectButton, Sa as PvSelectableCard, Da as PvSidePanel,
|
|
9041
|
+
export { zr as PvAccordion, Eo as PvActionBar, In as PvActionButton, zn as PvAiButton, pi as PvAvatar, Va as PvAvatarGroup, kr as PvBanner, ci as PvBreadcrumbs, Q as PvButton, Jn as PvButtonWithTooltip, po as PvCard, Za as PvCheckbox, Ra as PvCompanyLabel, _r as PvCompanyLogo, Pr as PvCompanyTag, Le as PvCounterBadge, Gr as PvDatePicker, qr as PvDateTime, us as PvDistributionBar, ni as PvDrawer, sr as PvDropdown, Nr as PvEmptyErrorState, So as PvExpandableContent, qu as PvFilterModal, Mu as PvFilterPanel, Aa as PvGhostInput, Ia as PvHeader, cl as PvHorizontalScroller, Zu as PvHoverActionMenu, X as PvIcon, co as PvInput, xo as PvInsightCard, ra as PvMenu, $i as PvMenuItem, Cr as PvModal, ua as PvMultiSelectButton, ya as PvPagination, tr as PvPill, rr as PvPopover, lr as PvPopoverMenu, Mn as PvPopoverV2, cs as PvProgressBar, ud as PvQueryBuilderInput, to as PvRadioGroup, ws as PvRange, fo as PvRating, Qn as PvReleaseBadge, Wr as PvSearchInput, ur as PvSegmentedControl, fa as PvSelectButton, Sa as PvSelectableCard, Da as PvSidePanel, md as PvSidebar, ro as PvSkeleton, Oe as PvSpinner, Zn as PvSplitButton, no as PvSprite, xd as PvStepper, Lr as PvSuggestionTag, Li as PvSwitch, mr as PvTabList, vd as PvTableOfContents, ai as PvTabs, er as PvTag, Ao as PvTextArea, wo as PvToast, Ga as PvToggleButton, Ya as PvToggleGroup, Kn as PvTooltip, Pn as PvTooltipV2, is as PvTree, as as PvTreeGroup, mo as PvWidget, wd as RumContextKey, Ed as addRumAction, uu as createPvFilterStore, Dd as deferRumTask, du as providePvFilterStore, Kr as useDateTime, fu as useOptionalPvFilterStore, Cd as usePvComponents, pu as usePvFilterStore, Td as useRumContext };
|
|
9004
9042
|
|
|
9005
9043
|
//# sourceMappingURL=pv-components-base.mjs.map
|