@turquoisehealth/pit-viper 2.256.0 → 2.258.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-v3.css +162 -75
- package/_site/assets/css/pit-viper-a11y.css +162 -75
- package/_site/assets/css/pit-viper-consumer.css +101 -11
- package/_site/assets/css/pit-viper-v2-scoped.css +82 -11
- package/_site/assets/css/pit-viper-v2.css +162 -75
- package/_site/assets/css/pit-viper-v3.css +162 -75
- package/_site/assets/css/pit-viper.css +101 -11
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-banner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-time-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-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-question-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-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/ai/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +1 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/base/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +506 -416
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.vue.d.ts +4 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/types.d.ts +12 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/TableSearch.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +969 -941
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +6 -0
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +485 -476
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +1 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +2 -2
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +1230 -1215
- package/pv-components/dist/web/components/pv-input/pv-input.js +1 -0
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +856 -841
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +881 -866
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +2 -2
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +585 -570
- package/pv-components/dist/web/components/pv-question/pv-question.js +1 -0
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +877 -862
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +125 -91
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +125 -91
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js +33 -33
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}[class*=pv-status]{&[data-v-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}[class*=pv-status]{&[data-v-f2cf1712]:before,&[data-v-f2cf1712]:after{margin-inline-end:0}}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-select[data-v-a13ab0e8]{padding-top:4px;padding-bottom:4px}summary[data-v-dfa0b416]{background-image:none;padding-right:2px}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-popover[data-v-951d1d02]{z-index:50}.pv-popover-list>li[data-v-951d1d02]:last-child>.pv-label{margin-block-end:0}[data-v-951d1d02] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.dots-button[data-v-92e78cd3]{background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-fc5fc7e0]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-fc5fc7e0]{transition:max-height .3s ease-in-out}.pv-filter-panel-option-row[data-v-d5f24abf]{--flex-align:center;--flex-gap:.5rem;cursor:pointer;min-width:0;padding-left:calc(var(--pv-filter-panel-option-row-depth) * 1.25rem)}.pv-filter-panel-option-row-content[data-v-d5f24abf]{--flex-align:stretch;--flex-gap:0;flex:auto;min-width:0}.pv-filter-panel-option-row-disabled[data-v-d5f24abf]{cursor:not-allowed;opacity:.6}.pv-filter-panel-option-row-line[data-v-d5f24abf]{--lines:1}.pv-filter-panel-option-row-right[data-v-d5f24abf]{text-align:right;flex:none}summary[data-v-1bc7f614]{background-image:none;padding-right:2px}[data-v-1bc7f614] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-1bc7f614]{text-underline-offset:2px;text-decoration:underline dotted}.pv-filter-panel-refresh-status[data-v-1bc7f614]{margin-left:auto;display:inline-flex}.pv-filter-modal-rail[data-v-e3f66d03]{--flex-align:stretch;flex:0 0 180px;padding-inline-end:1rem;overflow-y:auto}.pv-filter-modal-pane[data-v-e3f66d03]{flex:auto;min-width:0;min-height:0;padding-inline-start:1rem}.pv-filter-modal-options[data-v-e3f66d03]{min-height:360px;max-height:360px;overflow-y:auto}.pv-filter-modal-pane-actions[data-v-e3f66d03]{margin-top:auto;padding-top:.5rem}.pv-hover-action-menu[data-v-6325cd25]{position:relative}.pv-hover-action-menu__actions[data-v-6325cd25]{z-index:1;display:none;position:absolute}.pv-hover-action-menu:hover .pv-hover-action-menu__actions[data-v-6325cd25],.pv-hover-action-menu:focus-within .pv-hover-action-menu__actions[data-v-6325cd25]{display:flex}.pv-hover-action-menu--top-right .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);right:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--top-left .pv-hover-action-menu__actions[data-v-6325cd25]{top:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu--bottom-right .pv-hover-action-menu__actions[data-v-6325cd25]{right:var(--pv-hover-action-menu-offset-inline,8px);bottom:var(--pv-hover-action-menu-offset-block,8px)}.pv-hover-action-menu--bottom-left .pv-hover-action-menu__actions[data-v-6325cd25]{bottom:var(--pv-hover-action-menu-offset-block,8px);left:var(--pv-hover-action-menu-offset-inline,8px)}.pv-hover-action-menu__button[data-v-6325cd25] .pv-icon{margin:0}.pv-hover-action-menu__button[data-v-6325cd25],.pv-hover-action-menu__button[data-v-6325cd25] button{opacity:.7}.pv-hover-action-menu__button[data-v-6325cd25]:hover:not(:disabled),.pv-hover-action-menu__button[data-v-6325cd25] button:hover:not(:disabled){opacity:1}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
3
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, getCurrentScope as p, guardReactiveProps as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as D, onUpdated as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toValue as B, unref as V, useAttrs as ee, useId as te, useModel as H, useSlots as ne, useTemplateRef as U, vModelCheckbox as W, vModelDynamic as re, vModelRadio as ie, vModelText as ae, vShow as oe, watch as G, watchEffect as se, withCtx as K, withDirectives as q, withKeys as ce, withModifiers as J } from "vue";
|
|
4
4
|
import { onClickOutside as Y, onKeyStroke as le, useDebounceFn as ue, useElementBounding as de, useElementHover as fe, useElementSize as X, useMutationObserver as Z, useResizeObserver as pe, useToggle as me, useWindowSize as he, watchDebounced as ge } from "@vueuse/core";
|
|
@@ -1978,7 +1978,7 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
1978
1978
|
...d.popoverCssProperties
|
|
1979
1979
|
} : d.popoverCssProperties);
|
|
1980
1980
|
return (t, r) => q((k(), o("div", {
|
|
1981
|
-
class: "pv-relative",
|
|
1981
|
+
class: "pv-dropdown-component pv-relative",
|
|
1982
1982
|
style: { width: "fit-content" },
|
|
1983
1983
|
onKeydown: ce(E, ["esc"])
|
|
1984
1984
|
}, [s("button", {
|
|
@@ -2024,7 +2024,7 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2024
2024
|
"isSortable"
|
|
2025
2025
|
])], 8, ["to", "disabled"]))], 32)), [[V(ve), T]]);
|
|
2026
2026
|
}
|
|
2027
|
-
}), [["__scopeId", "data-v-
|
|
2027
|
+
}), [["__scopeId", "data-v-a13ab0e8"]]), Fr = { class: "pv-popover-menu" }, Ir = /* @__PURE__ */ d({
|
|
2028
2028
|
__name: "PvPopoverMenu",
|
|
2029
2029
|
props: {
|
|
2030
2030
|
alignment: { default: void 0 },
|
|
@@ -2197,15 +2197,18 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2197
2197
|
}), Zr = /* @__PURE__ */ function(e) {
|
|
2198
2198
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
2199
2199
|
}({}), Qr = /* @__PURE__ */ function(e) {
|
|
2200
|
-
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
2201
|
-
}({}), $r =
|
|
2200
|
+
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e.Universal = "Universal", e.AI = "AI", e.Marketing = "Marketing", e;
|
|
2201
|
+
}({}), $r = /* @__PURE__ */ function(e) {
|
|
2202
|
+
return e.Blue = "Blue", e.Purple = "Purple", e.Red = "Red", e.Yellow = "Yellow", e.Green = "Green", e;
|
|
2203
|
+
}({}), ei = ["title", "innerHTML"], ti = ["title", "innerHTML"], ni = { class: "pv-flex" }, ri = /* @__PURE__ */ d({
|
|
2202
2204
|
__name: "PvBanner",
|
|
2203
2205
|
props: {
|
|
2204
2206
|
label: {},
|
|
2205
2207
|
description: {},
|
|
2206
2208
|
icon: {},
|
|
2207
2209
|
variant: { default: Qr.Primary },
|
|
2208
|
-
orientation: { default: Zr.Horizontal }
|
|
2210
|
+
orientation: { default: Zr.Horizontal },
|
|
2211
|
+
accentColor: { default: $r.Blue }
|
|
2209
2212
|
},
|
|
2210
2213
|
setup(e) {
|
|
2211
2214
|
return (t, n) => (k(), o("div", {
|
|
@@ -2214,8 +2217,11 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2214
2217
|
"pv-banner-primary": e.variant === V(Qr).Primary,
|
|
2215
2218
|
"pv-banner-secondary": e.variant === V(Qr).Secondary,
|
|
2216
2219
|
"pv-banner-tertiary": e.variant === V(Qr).Tertiary,
|
|
2220
|
+
"pv-banner-universal": e.variant === V(Qr).Universal,
|
|
2221
|
+
"pv-banner-ai": e.variant === V(Qr).AI,
|
|
2222
|
+
"pv-banner-marketing": e.variant === V(Qr).Marketing,
|
|
2217
2223
|
"pv-flex pv-space-between": e.orientation === V(Zr).Horizontal
|
|
2218
|
-
}])
|
|
2224
|
+
}, e.variant === V(Qr).Universal && `pv-banner-accent-${e.accentColor.toLowerCase()}`])
|
|
2219
2225
|
}, [s("div", { class: b(["pv-flex", { "pv-stack-16": e.orientation === V(Zr).Vertical && t.$slots.action }]) }, [
|
|
2220
2226
|
N(t.$slots, "left"),
|
|
2221
2227
|
e.icon ? (k(), i(Q, {
|
|
@@ -2224,25 +2230,25 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2224
2230
|
class: "pv-text-brand",
|
|
2225
2231
|
name: e.icon
|
|
2226
2232
|
}, null, 8, ["name"])) : a("", !0),
|
|
2227
|
-
s("div",
|
|
2233
|
+
s("div", { class: b([{ "pv-flex": e.orientation === V(Zr).Horizontal }]) }, [e.label ? (k(), o("p", {
|
|
2228
2234
|
key: 0,
|
|
2229
|
-
class: b(["pv-text-title-md pv-line-clamp", { "pv-stack-4": e.description }]),
|
|
2235
|
+
class: b(["pv-text-title-md pv-line-clamp", { "pv-stack-4": e.description && e.orientation === V(Zr).Vertical }]),
|
|
2230
2236
|
style: {
|
|
2231
2237
|
"--lines": "2",
|
|
2232
2238
|
"font-weight": "500"
|
|
2233
2239
|
},
|
|
2234
2240
|
title: e.label,
|
|
2235
2241
|
innerHTML: e.label
|
|
2236
|
-
}, null, 10,
|
|
2242
|
+
}, null, 10, ei)) : a("", !0), e.description ? (k(), o("p", {
|
|
2237
2243
|
key: 1,
|
|
2238
2244
|
class: "pv-text-body-sm pv-line-clamp",
|
|
2239
2245
|
style: { "--lines": "2" },
|
|
2240
2246
|
title: e.description,
|
|
2241
2247
|
innerHTML: e.description
|
|
2242
|
-
}, null, 8,
|
|
2243
|
-
], 2), s("div",
|
|
2248
|
+
}, null, 8, ti)) : a("", !0)], 2)
|
|
2249
|
+
], 2), s("div", ni, [N(t.$slots, "action")])], 2));
|
|
2244
2250
|
}
|
|
2245
|
-
}),
|
|
2251
|
+
}), ii = {
|
|
2246
2252
|
key: 0,
|
|
2247
2253
|
class: "pv-inset-square pv-radius",
|
|
2248
2254
|
style: {
|
|
@@ -2250,14 +2256,14 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2250
2256
|
"--radius": "6px",
|
|
2251
2257
|
width: "fit-content"
|
|
2252
2258
|
}
|
|
2253
|
-
},
|
|
2259
|
+
}, ai = {
|
|
2254
2260
|
key: 0,
|
|
2255
2261
|
class: "pv-heading-3 pv-stack-8",
|
|
2256
2262
|
style: { "font-weight": "600" }
|
|
2257
|
-
},
|
|
2263
|
+
}, oi = {
|
|
2258
2264
|
key: 1,
|
|
2259
2265
|
class: "pv-text-body-md pv-stack"
|
|
2260
|
-
},
|
|
2266
|
+
}, si = /* @__PURE__ */ d({
|
|
2261
2267
|
__name: "PvEmptyErrorState",
|
|
2262
2268
|
props: {
|
|
2263
2269
|
description: {},
|
|
@@ -2276,19 +2282,19 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2276
2282
|
return (t, r) => (k(), o("div", {
|
|
2277
2283
|
class: b(n.value ? "pv-flex" : "pv-flex-vertical"),
|
|
2278
2284
|
style: S(i.value)
|
|
2279
|
-
}, [e.icon ? (k(), o("div",
|
|
2285
|
+
}, [e.icon ? (k(), o("div", ii, [u(Q, {
|
|
2280
2286
|
name: e.icon,
|
|
2281
2287
|
class: "pv-text-brand"
|
|
2282
2288
|
}, null, 8, ["name"])])) : a("", !0), s("div", {
|
|
2283
2289
|
class: "pv-flex-vertical",
|
|
2284
2290
|
style: S(c.value)
|
|
2285
2291
|
}, [
|
|
2286
|
-
e.header ? (k(), o("h3",
|
|
2287
|
-
e.description ? (k(), o("p",
|
|
2292
|
+
e.header ? (k(), o("h3", ai, R(e.header), 1)) : a("", !0),
|
|
2293
|
+
e.description ? (k(), o("p", oi, R(e.description), 1)) : a("", !0),
|
|
2288
2294
|
s("div", { class: b(n.value ? "pv-flex" : "pv-flex-vertical") }, [N(t.$slots, "actions")], 2)
|
|
2289
2295
|
], 4)], 6));
|
|
2290
2296
|
}
|
|
2291
|
-
}),
|
|
2297
|
+
}), ci = /* @__PURE__ */ d({
|
|
2292
2298
|
__name: "PvCompanyTag",
|
|
2293
2299
|
props: {
|
|
2294
2300
|
companyName: {},
|
|
@@ -2333,11 +2339,11 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2333
2339
|
})) : a("", !0)
|
|
2334
2340
|
], 2));
|
|
2335
2341
|
}
|
|
2336
|
-
}),
|
|
2342
|
+
}), li = [
|
|
2337
2343
|
"data-style",
|
|
2338
2344
|
"disabled",
|
|
2339
2345
|
"title"
|
|
2340
|
-
],
|
|
2346
|
+
], ui = { class: "pv-truncate" }, di = /* @__PURE__ */ d({
|
|
2341
2347
|
__name: "PvSuggestionTag",
|
|
2342
2348
|
props: {
|
|
2343
2349
|
size: { default: "md" },
|
|
@@ -2373,9 +2379,9 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2373
2379
|
name: e.icon,
|
|
2374
2380
|
size: 12,
|
|
2375
2381
|
class: b(e.iconClasses)
|
|
2376
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
2382
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", ui, R(e.label), 1)], 10, li));
|
|
2377
2383
|
}
|
|
2378
|
-
}),
|
|
2384
|
+
}), fi = ["open"], pi = /* @__PURE__ */ Je(/* @__PURE__ */ d({
|
|
2379
2385
|
__name: "PvAccordion",
|
|
2380
2386
|
props: /* @__PURE__ */ _({
|
|
2381
2387
|
chevronPosition: { default: "right" },
|
|
@@ -2447,13 +2453,13 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2447
2453
|
name: h.value,
|
|
2448
2454
|
"data-pv-accordion-chevron": ""
|
|
2449
2455
|
}, null, 8, ["name"])) : a("", !0)
|
|
2450
|
-
], 16), s("div", { style: S(e.contentStyles) }, [N(n.$slots, "default", {}, void 0, !0)], 4)], 40,
|
|
2456
|
+
], 16), s("div", { style: S(e.contentStyles) }, [N(n.$slots, "default", {}, void 0, !0)], 4)], 40, fi));
|
|
2451
2457
|
}
|
|
2452
|
-
}), [["__scopeId", "data-v-dfa0b416"]]),
|
|
2458
|
+
}), [["__scopeId", "data-v-dfa0b416"]]), mi = { class: "pv-relative" }, hi = ["disabled", "placeholder"], gi = {
|
|
2453
2459
|
key: 0,
|
|
2454
2460
|
"data-testid": "pv-search-input-shortcut",
|
|
2455
2461
|
class: "pv-kbd"
|
|
2456
|
-
},
|
|
2462
|
+
}, _i = "/", vi = /* @__PURE__ */ Je(/* @__PURE__ */ d({
|
|
2457
2463
|
__name: "PvSearchInput",
|
|
2458
2464
|
props: /* @__PURE__ */ _({
|
|
2459
2465
|
disabled: {
|
|
@@ -2479,11 +2485,11 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2479
2485
|
"pv-input-small": n.size === "lg"
|
|
2480
2486
|
}));
|
|
2481
2487
|
return T(() => {
|
|
2482
|
-
n.displayShortcut && le(
|
|
2488
|
+
n.displayShortcut && le(_i, (e) => {
|
|
2483
2489
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
2484
2490
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
2485
2491
|
});
|
|
2486
|
-
}), t({ input: i }), (t, n) => (k(), o("div",
|
|
2492
|
+
}), t({ input: i }), (t, n) => (k(), o("div", mi, [q(s("input", {
|
|
2487
2493
|
ref: "search-input",
|
|
2488
2494
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
2489
2495
|
"data-testid": "pv-search-input",
|
|
@@ -2491,17 +2497,17 @@ var ir = /* @__PURE__ */ new Set(), ar = (e, t) => {
|
|
|
2491
2497
|
disabled: e.disabled,
|
|
2492
2498
|
class: b(l.value),
|
|
2493
2499
|
placeholder: e.placeholder
|
|
2494
|
-
}, null, 10,
|
|
2500
|
+
}, null, 10, hi), [[ae, c.value]]), e.displayShortcut ? (k(), o("kbd", gi, R(_i))) : a("", !0)]));
|
|
2495
2501
|
}
|
|
2496
|
-
}), [["__scopeId", "data-v-9e0c84d9"]]),
|
|
2497
|
-
function
|
|
2498
|
-
if (
|
|
2502
|
+
}), [["__scopeId", "data-v-9e0c84d9"]]), yi = /^\d{4}-\d{2}-\d{2}$/;
|
|
2503
|
+
function bi(e) {
|
|
2504
|
+
if (yi.test(e)) {
|
|
2499
2505
|
let [t, n, r] = e.split("-").map(Number), i = new Date(t, n - 1, r);
|
|
2500
2506
|
return i.getFullYear() !== t || i.getMonth() !== n - 1 || i.getDate() !== r ? /* @__PURE__ */ new Date(NaN) : i;
|
|
2501
2507
|
}
|
|
2502
2508
|
return new Date(e);
|
|
2503
2509
|
}
|
|
2504
|
-
function
|
|
2510
|
+
function xi(e) {
|
|
2505
2511
|
if (!e.trimStart().startsWith("[")) return null;
|
|
2506
2512
|
try {
|
|
2507
2513
|
let t = JSON.parse(e);
|
|
@@ -2510,24 +2516,24 @@ function bi(e) {
|
|
|
2510
2516
|
return null;
|
|
2511
2517
|
}
|
|
2512
2518
|
}
|
|
2513
|
-
function
|
|
2519
|
+
function Si(e, t = "date") {
|
|
2514
2520
|
if (e == null || e === "") return;
|
|
2515
|
-
let n = e instanceof Date ? e :
|
|
2521
|
+
let n = e instanceof Date ? e : bi(String(e));
|
|
2516
2522
|
if (isNaN(n.getTime())) {
|
|
2517
2523
|
console.warn(`Invalid date value for "${t}": ${JSON.stringify(e)}. Expected a Date or a parseable date string.`);
|
|
2518
2524
|
return;
|
|
2519
2525
|
}
|
|
2520
2526
|
return n;
|
|
2521
2527
|
}
|
|
2522
|
-
function Si(e, t = "date") {
|
|
2523
|
-
return e == null || e === "" ? [] : (Array.isArray(e) ? e : (typeof e == "string" ? bi(e) : null) ?? [e]).map((e) => xi(e, t) ?? null);
|
|
2524
|
-
}
|
|
2525
2528
|
function Ci(e, t = "date") {
|
|
2526
|
-
return Array.isArray(e)
|
|
2529
|
+
return e == null || e === "" ? [] : (Array.isArray(e) ? e : (typeof e == "string" ? xi(e) : null) ?? [e]).map((e) => Si(e, t) ?? null);
|
|
2530
|
+
}
|
|
2531
|
+
function wi(e, t = "date") {
|
|
2532
|
+
return Array.isArray(e) || typeof e == "string" && xi(e) ? Ci(e, t) : Si(e, t);
|
|
2527
2533
|
}
|
|
2528
2534
|
//#endregion
|
|
2529
2535
|
//#region src/components/base/PvDatePicker/PvDatePicker.vue
|
|
2530
|
-
var
|
|
2536
|
+
var Ti = /* @__PURE__ */ d({
|
|
2531
2537
|
__name: "PvDatePicker",
|
|
2532
2538
|
props: /* @__PURE__ */ _({
|
|
2533
2539
|
selectionMode: {},
|
|
@@ -2559,11 +2565,11 @@ var wi = /* @__PURE__ */ d({
|
|
|
2559
2565
|
emits: ["update:modelValue"],
|
|
2560
2566
|
setup(e) {
|
|
2561
2567
|
let t = H(e, "modelValue"), n = e, a = r({
|
|
2562
|
-
get: () =>
|
|
2568
|
+
get: () => wi(t.value, "modelValue"),
|
|
2563
2569
|
set: (e) => {
|
|
2564
2570
|
t.value = e;
|
|
2565
2571
|
}
|
|
2566
|
-
}), o = r(() =>
|
|
2572
|
+
}), o = r(() => Si(n.minDate, "minDate")), s = r(() => Si(n.maxDate, "maxDate")), c = r(() => n.disabledDates ? Ci(n.disabledDates, "disabledDates").filter(Boolean) : void 0);
|
|
2567
2573
|
return (t, r) => (k(), i(V(ye), v(n, {
|
|
2568
2574
|
modelValue: a.value,
|
|
2569
2575
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
@@ -2591,10 +2597,10 @@ var wi = /* @__PURE__ */ d({
|
|
|
2591
2597
|
}
|
|
2592
2598
|
});
|
|
2593
2599
|
be.extend(Ce), be.extend(xe), be.extend(Se);
|
|
2594
|
-
var
|
|
2600
|
+
var Ei = () => ({
|
|
2595
2601
|
getCondensedDate: ({ date: e }) => be(e).format("MM/DD/YYYY"),
|
|
2596
2602
|
getTime: ({ date: e, timezone: t }) => t === void 0 ? be(e).format("h:mm A") : be(e).tz(t).format("h:mm A z")
|
|
2597
|
-
}),
|
|
2603
|
+
}), Di = /* @__PURE__ */ d({
|
|
2598
2604
|
__name: "PvDateTime",
|
|
2599
2605
|
props: {
|
|
2600
2606
|
variants: { default: "condensed" },
|
|
@@ -2603,7 +2609,7 @@ var Ti = () => ({
|
|
|
2603
2609
|
size: { default: "sm" }
|
|
2604
2610
|
},
|
|
2605
2611
|
setup(e) {
|
|
2606
|
-
let t = e, { getCondensedDate: n, getTime: i } =
|
|
2612
|
+
let t = e, { getCondensedDate: n, getTime: i } = Ei(), a = r(() => {
|
|
2607
2613
|
switch (t.variants) {
|
|
2608
2614
|
case "time": return i({
|
|
2609
2615
|
date: t.date,
|
|
@@ -2615,13 +2621,13 @@ var Ti = () => ({
|
|
|
2615
2621
|
});
|
|
2616
2622
|
return (t, n) => (k(), o("span", {
|
|
2617
2623
|
"data-testid": "pv-date-time",
|
|
2618
|
-
class: b(["pv-text-
|
|
2624
|
+
class: b(["pv-text-subdued", {
|
|
2619
2625
|
"pv-text-body-xxs": e.size === "xs",
|
|
2620
2626
|
"pv-text-body-md": e.size === "sm"
|
|
2621
2627
|
}])
|
|
2622
2628
|
}, R(a.value), 3));
|
|
2623
2629
|
}
|
|
2624
|
-
}),
|
|
2630
|
+
}), Oi = (e) => e === "left" || e === "right" ? "horizontal" : "vertical", ki = (e, t) => {
|
|
2625
2631
|
if (e == null || e === "") return;
|
|
2626
2632
|
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
2627
2633
|
let n = e.trim();
|
|
@@ -2631,8 +2637,8 @@ var Ti = () => ({
|
|
|
2631
2637
|
}
|
|
2632
2638
|
let r = Number.parseFloat(n);
|
|
2633
2639
|
return Number.isFinite(r) ? r : void 0;
|
|
2634
|
-
},
|
|
2635
|
-
let t = j(!1), n = j(0), i = null, a = 0, o = 0, s = null, c = r(() => B(e.edge) ?? "right"), l = r(() =>
|
|
2640
|
+
}, Ai = 4, ji = (e) => {
|
|
2641
|
+
let t = j(!1), n = j(0), i = null, a = 0, o = 0, s = null, c = r(() => B(e.edge) ?? "right"), l = r(() => Oi(c.value)), u = r(() => B(e.disabled) ?? !1), d = r(() => B(e.collapsible) ?? !1), f = r(() => B(e.collapsedSize) ?? 0), p = r(() => B(e.snapThreshold) ?? 0), m = r(() => B(e.keyboardStep) ?? 16), h = r(() => B(e.min)), g = r(() => Math.max(h.value, B(e.max))), _ = r(() => c.value === "right" || c.value === "bottom" ? 1 : -1), v = r(() => d.value && n.value <= f.value), y = (e) => d.value && e < h.value - p.value ? f.value : Math.min(g.value, Math.max(h.value, e)), b = (r) => {
|
|
2636
2642
|
!t.value && r > f.value && (s = r), n.value = r, e.onResize?.(r);
|
|
2637
2643
|
}, x = (t) => {
|
|
2638
2644
|
n.value = t ?? e.readSize();
|
|
@@ -2661,7 +2667,7 @@ var Ti = () => ({
|
|
|
2661
2667
|
t.preventDefault(), S();
|
|
2662
2668
|
return;
|
|
2663
2669
|
}
|
|
2664
|
-
let n = l.value === "horizontal", r = (t.shiftKey ? m.value *
|
|
2670
|
+
let n = l.value === "horizontal", r = (t.shiftKey ? m.value * Ai : m.value) * _.value, i = e.readSize(), a;
|
|
2665
2671
|
switch (t.key) {
|
|
2666
2672
|
case "ArrowLeft":
|
|
2667
2673
|
n && (a = i - r);
|
|
@@ -2715,7 +2721,7 @@ var Ti = () => ({
|
|
|
2715
2721
|
syncSize: x,
|
|
2716
2722
|
toggleCollapsed: S
|
|
2717
2723
|
};
|
|
2718
|
-
},
|
|
2724
|
+
}, Mi = /* @__PURE__ */ d({
|
|
2719
2725
|
__name: "PvResizeHandle",
|
|
2720
2726
|
props: /* @__PURE__ */ _({
|
|
2721
2727
|
ariaLabel: { default: "Resize" },
|
|
@@ -2749,7 +2755,7 @@ var Ti = () => ({
|
|
|
2749
2755
|
"resize-start"
|
|
2750
2756
|
], ["update:size"]),
|
|
2751
2757
|
setup(e, { emit: t }) {
|
|
2752
|
-
let n = e, i = H(e, "size"), a = t, s = U("handle"), c = j(null), l = !1, u = r(() =>
|
|
2758
|
+
let n = e, i = H(e, "size"), a = t, s = U("handle"), c = j(null), l = !1, u = r(() => Oi(n.edge)), d = (e) => {
|
|
2753
2759
|
let t = e?.parentNode ?? null;
|
|
2754
2760
|
for (; t;) {
|
|
2755
2761
|
if (t.nodeType === 1) return t;
|
|
@@ -2767,8 +2773,8 @@ var Ti = () => ({
|
|
|
2767
2773
|
}, b = r(() => {
|
|
2768
2774
|
let e = u.value === "horizontal" ? m.value : p.value;
|
|
2769
2775
|
return e > 0 ? e : _();
|
|
2770
|
-
}), x = r(() =>
|
|
2771
|
-
let e =
|
|
2776
|
+
}), x = r(() => ki(n.minSize, b.value) ?? 0), S = r(() => ki(n.collapsedSize, b.value) ?? 0), C = r(() => {
|
|
2777
|
+
let e = ki(n.maxSize, b.value);
|
|
2772
2778
|
return e !== void 0 && e > 0 ? e : b.value > 0 ? b.value : u.value === "horizontal" ? g.value : h.value;
|
|
2773
2779
|
}), w = (e) => n.collapsible && e === S.value ? e : Math.max(x.value, Math.min(C.value, e)), E = () => {
|
|
2774
2780
|
let e = c.value;
|
|
@@ -2806,10 +2812,10 @@ var Ti = () => ({
|
|
|
2806
2812
|
} catch {}
|
|
2807
2813
|
}, P = (e) => {
|
|
2808
2814
|
O(e), i.value = e;
|
|
2809
|
-
}, { handleProps: F, isResizing: I, syncSize: L } =
|
|
2815
|
+
}, { handleProps: F, isResizing: I, syncSize: L } = ji({
|
|
2810
2816
|
collapsedSize: S,
|
|
2811
2817
|
collapsible: () => n.collapsible,
|
|
2812
|
-
defaultSize: () =>
|
|
2818
|
+
defaultSize: () => ki(n.defaultSize, b.value) ?? x.value,
|
|
2813
2819
|
disabled: () => n.disabled,
|
|
2814
2820
|
edge: () => n.edge,
|
|
2815
2821
|
keyboardStep: () => n.keyboardStep,
|
|
@@ -2853,7 +2859,7 @@ var Ti = () => ({
|
|
|
2853
2859
|
let e = i.value === void 0 ? M() : void 0, t = i.value ?? (e?.collapsed && n.collapsible ? n.collapsedSize : e?.size) ?? n.defaultSize;
|
|
2854
2860
|
if (typeof t == "string" && t.trim().endsWith("%") && b.value <= 0) return;
|
|
2855
2861
|
l = !0;
|
|
2856
|
-
let r =
|
|
2862
|
+
let r = ki(t, b.value);
|
|
2857
2863
|
if (r === void 0) {
|
|
2858
2864
|
let e = D(), t = e === 0 ? 0 : w(e);
|
|
2859
2865
|
t !== e && P(t), L(t);
|
|
@@ -2871,31 +2877,31 @@ var Ti = () => ({
|
|
|
2871
2877
|
"data-testid": "pv-resize-handle"
|
|
2872
2878
|
}, V(F)), null, 16));
|
|
2873
2879
|
}
|
|
2874
|
-
}),
|
|
2880
|
+
}), Ni = {
|
|
2875
2881
|
key: 1,
|
|
2876
2882
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
2877
2883
|
style: { "flex-shrink": "0" }
|
|
2878
|
-
},
|
|
2884
|
+
}, Pi = {
|
|
2879
2885
|
class: "pv-flex-vertical pv-stack-16",
|
|
2880
2886
|
style: { "--flex-align": "flex-start" }
|
|
2881
|
-
},
|
|
2887
|
+
}, Fi = { class: "pv-flex pv-full-width" }, Ii = { class: "pv-full-width pv-heading-3" }, Li = {
|
|
2882
2888
|
key: 0,
|
|
2883
2889
|
class: "pv-text-body-md"
|
|
2884
|
-
},
|
|
2890
|
+
}, Ri = {
|
|
2885
2891
|
key: 0,
|
|
2886
2892
|
class: "pv-inset-inline-16"
|
|
2887
|
-
},
|
|
2893
|
+
}, zi = {
|
|
2888
2894
|
class: "pv-inset-inline-16",
|
|
2889
2895
|
style: {
|
|
2890
2896
|
flex: "1",
|
|
2891
2897
|
"overflow-y": "auto",
|
|
2892
2898
|
"min-height": "0"
|
|
2893
2899
|
}
|
|
2894
|
-
},
|
|
2900
|
+
}, Bi = {
|
|
2895
2901
|
key: 2,
|
|
2896
2902
|
class: "pv-inset-squish-12 pv-border-top",
|
|
2897
2903
|
style: { "flex-shrink": "0" }
|
|
2898
|
-
},
|
|
2904
|
+
}, Vi = /* @__PURE__ */ d({
|
|
2899
2905
|
__name: "PvDrawer",
|
|
2900
2906
|
props: /* @__PURE__ */ _({
|
|
2901
2907
|
closeOnClickOutside: {
|
|
@@ -2957,15 +2963,15 @@ var Ti = () => ({
|
|
|
2957
2963
|
height: "100%"
|
|
2958
2964
|
}
|
|
2959
2965
|
}, [
|
|
2960
|
-
e.resizable ? (k(), i(
|
|
2966
|
+
e.resizable ? (k(), i(Mi, {
|
|
2961
2967
|
key: 0,
|
|
2962
2968
|
size: p.value,
|
|
2963
2969
|
"onUpdate:size": c[0] ||= (e) => p.value = e,
|
|
2964
2970
|
ariaLabel: "Resize drawer",
|
|
2965
|
-
defaultSize: V(
|
|
2971
|
+
defaultSize: V(ki)(e.defaultWidth, V(d)) ?? Math.min(600, V(d)),
|
|
2966
2972
|
edge: e.resizeEdge,
|
|
2967
|
-
maxSize: V(
|
|
2968
|
-
minSize: V(
|
|
2973
|
+
maxSize: V(ki)(e.maxWidth, V(d)) ?? V(d),
|
|
2974
|
+
minSize: V(ki)(e.minWidth, V(d)),
|
|
2969
2975
|
storageKey: e.resizeStorageKey
|
|
2970
2976
|
}, null, 8, [
|
|
2971
2977
|
"size",
|
|
@@ -2975,47 +2981,47 @@ var Ti = () => ({
|
|
|
2975
2981
|
"minSize",
|
|
2976
2982
|
"storageKey"
|
|
2977
2983
|
])) : a("", !0),
|
|
2978
|
-
e.hideHeader ? a("", !0) : (k(), o("div",
|
|
2984
|
+
e.hideHeader ? a("", !0) : (k(), o("div", Ni, [n.$slots.header ? N(n.$slots, "header", { key: 0 }) : (k(), o(t, { key: 1 }, [s("div", Pi, [s("div", Fi, [s("span", Ii, R(e.header), 1), u($, {
|
|
2979
2985
|
"left-icon": "close",
|
|
2980
2986
|
ariaLabel: "Close",
|
|
2981
2987
|
size: "md",
|
|
2982
2988
|
onClick: h,
|
|
2983
2989
|
"data-testid": "pv-side-panel-close-button",
|
|
2984
2990
|
variant: "ghost"
|
|
2985
|
-
})]), e.subheader ? (k(), o("span",
|
|
2991
|
+
})]), e.subheader ? (k(), o("span", Li, R(e.subheader), 1)) : a("", !0)]), e.showSearchbar && f.value !== void 0 ? (k(), o("div", Ri, [u(vi, v({
|
|
2986
2992
|
"data-testid": "pv-side-panel-input-search",
|
|
2987
2993
|
modelValue: f.value,
|
|
2988
2994
|
"onUpdate:modelValue": c[1] ||= (e) => f.value = e
|
|
2989
2995
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))])),
|
|
2990
|
-
s("div",
|
|
2991
|
-
n.$slots.footer ? (k(), o("div",
|
|
2996
|
+
s("div", zi, [N(n.$slots, "default")]),
|
|
2997
|
+
n.$slots.footer ? (k(), o("div", Bi, [N(n.$slots, "footer")])) : a("", !0)
|
|
2992
2998
|
], 2));
|
|
2993
2999
|
}
|
|
2994
|
-
}),
|
|
3000
|
+
}), Hi = Symbol("PvContextSurface"), Ui = [
|
|
2995
3001
|
"open",
|
|
2996
3002
|
"role",
|
|
2997
3003
|
"aria-modal",
|
|
2998
3004
|
"aria-labelledby"
|
|
2999
|
-
],
|
|
3005
|
+
], Wi = {
|
|
3000
3006
|
class: "pv-inset-square pv-border-bottom",
|
|
3001
3007
|
style: { "flex-shrink": "0" }
|
|
3002
|
-
},
|
|
3008
|
+
}, Gi = {
|
|
3003
3009
|
class: "pv-flex pv-stack-8",
|
|
3004
3010
|
style: { "--flex-justify": "space-between" }
|
|
3005
|
-
},
|
|
3011
|
+
}, Ki = {
|
|
3006
3012
|
class: "pv-flex",
|
|
3007
3013
|
style: { "--flex-gap": "4px" }
|
|
3008
|
-
},
|
|
3014
|
+
}, qi = {
|
|
3009
3015
|
key: 0,
|
|
3010
3016
|
class: "pv-flex",
|
|
3011
3017
|
style: {
|
|
3012
3018
|
"--flex-align": "center",
|
|
3013
3019
|
"--flex-gap": "8px"
|
|
3014
3020
|
}
|
|
3015
|
-
},
|
|
3021
|
+
}, Ji = ["id"], Yi = ["id"], Xi = {
|
|
3016
3022
|
key: 0,
|
|
3017
3023
|
style: { "flex-shrink": "0" }
|
|
3018
|
-
},
|
|
3024
|
+
}, Zi = /* @__PURE__ */ d({
|
|
3019
3025
|
inheritAttrs: !1,
|
|
3020
3026
|
__name: "PvContextSurface",
|
|
3021
3027
|
props: {
|
|
@@ -3032,7 +3038,7 @@ var Ti = () => ({
|
|
|
3032
3038
|
],
|
|
3033
3039
|
setup(e, { emit: t }) {
|
|
3034
3040
|
let n = e, c = t;
|
|
3035
|
-
A(
|
|
3041
|
+
A(Hi, { showContext: (e) => c("show-context", e) });
|
|
3036
3042
|
let l = r(() => n.variant === "card" ? "pv-card pv-context-surface" : "pv-drawer pv-surface pv-context-surface"), d = r(() => {
|
|
3037
3043
|
let e = n.contextType?.toLowerCase();
|
|
3038
3044
|
return e === "payer" || e === "provider";
|
|
@@ -3060,7 +3066,7 @@ var Ti = () => ({
|
|
|
3060
3066
|
"data-testid": "pv-context-surface",
|
|
3061
3067
|
tabindex: "-1"
|
|
3062
3068
|
}), [
|
|
3063
|
-
s("div",
|
|
3069
|
+
s("div", Wi, [s("div", Gi, [s("div", Ki, [e.showBack ? (k(), i($, {
|
|
3064
3070
|
key: 0,
|
|
3065
3071
|
"left-icon": "chevron-left",
|
|
3066
3072
|
"aria-label": "Back",
|
|
@@ -3080,14 +3086,14 @@ var Ti = () => ({
|
|
|
3080
3086
|
"aria-label": "Close",
|
|
3081
3087
|
variant: "ghost",
|
|
3082
3088
|
onClick: y
|
|
3083
|
-
}))]), N(t.$slots, "title", {}, () => [d.value ? (k(), o("div",
|
|
3089
|
+
}))]), N(t.$slots, "title", {}, () => [d.value ? (k(), o("div", qi, [u(Wr, { name: e.header }, null, 8, ["name"]), s("h2", {
|
|
3084
3090
|
id: m.value,
|
|
3085
3091
|
class: "pv-heading-2"
|
|
3086
|
-
}, R(e.header), 9,
|
|
3092
|
+
}, R(e.header), 9, Ji)])) : (k(), o("h2", {
|
|
3087
3093
|
key: 1,
|
|
3088
3094
|
id: m.value,
|
|
3089
3095
|
class: "pv-heading-2"
|
|
3090
|
-
}, R(e.header), 9,
|
|
3096
|
+
}, R(e.header), 9, Yi))])]),
|
|
3091
3097
|
s("div", {
|
|
3092
3098
|
class: b(["pv-inset-square", { "pv-border-bottom": t.$slots.footer }]),
|
|
3093
3099
|
style: {
|
|
@@ -3096,34 +3102,34 @@ var Ti = () => ({
|
|
|
3096
3102
|
"min-height": "0"
|
|
3097
3103
|
}
|
|
3098
3104
|
}, [N(t.$slots, "default")], 2),
|
|
3099
|
-
t.$slots.footer ? (k(), o("div",
|
|
3100
|
-
], 16,
|
|
3105
|
+
t.$slots.footer ? (k(), o("div", Xi, [N(t.$slots, "footer")])) : a("", !0)
|
|
3106
|
+
], 16, Ui));
|
|
3101
3107
|
}
|
|
3102
|
-
}),
|
|
3108
|
+
}), Qi = { class: "pv-text-subdued pv-flex-item" }, $i = {
|
|
3103
3109
|
class: "pv-flex-item",
|
|
3104
3110
|
style: { "font-weight": "500" }
|
|
3105
|
-
},
|
|
3111
|
+
}, ea = [
|
|
3106
3112
|
"role",
|
|
3107
3113
|
"tabindex",
|
|
3108
3114
|
"onClick",
|
|
3109
3115
|
"onKeydown"
|
|
3110
|
-
],
|
|
3116
|
+
], ta = [
|
|
3111
3117
|
"role",
|
|
3112
3118
|
"tabindex",
|
|
3113
3119
|
"onClick",
|
|
3114
3120
|
"onKeydown"
|
|
3115
|
-
],
|
|
3121
|
+
], na = 4, ra = /* @__PURE__ */ d({
|
|
3116
3122
|
__name: "PvSpinesEntityFields",
|
|
3117
3123
|
props: { entityFields: {} },
|
|
3118
3124
|
emits: ["show-context"],
|
|
3119
3125
|
setup(e, { emit: n }) {
|
|
3120
|
-
let c = e, d = n, f = h(
|
|
3121
|
-
let t = Array.isArray(e.value) ? e.value : [e.value], n = t.length >
|
|
3126
|
+
let c = e, d = n, f = h(Hi, null), p = r(() => c.entityFields.map((e) => {
|
|
3127
|
+
let t = Array.isArray(e.value) ? e.value : [e.value], n = t.length > na;
|
|
3122
3128
|
return {
|
|
3123
3129
|
label: e.label,
|
|
3124
3130
|
values: t,
|
|
3125
|
-
visibleValues: n ? t.slice(0,
|
|
3126
|
-
hiddenValues: n ? t.slice(
|
|
3131
|
+
visibleValues: n ? t.slice(0, na) : t,
|
|
3132
|
+
hiddenValues: n ? t.slice(na) : []
|
|
3127
3133
|
};
|
|
3128
3134
|
})), m = (e) => {
|
|
3129
3135
|
if (!e.isClickable || !e.contextIdentifier) return;
|
|
@@ -3136,14 +3142,14 @@ var Ti = () => ({
|
|
|
3136
3142
|
key: e.label,
|
|
3137
3143
|
class: "pv-flex pv-text-body-md",
|
|
3138
3144
|
style: { padding: "0.25rem" }
|
|
3139
|
-
}, [s("span",
|
|
3145
|
+
}, [s("span", Qi, R(e.label), 1), s("span", $i, [(k(!0), o(t, null, M(e.visibleValues, (n, r) => (k(), o(t, { key: r }, [s("span", {
|
|
3140
3146
|
class: b({ "pv-underline-dotted": n.isClickable }),
|
|
3141
3147
|
style: S({ cursor: n.isClickable ? "pointer" : void 0 }),
|
|
3142
3148
|
role: n.isClickable ? "button" : void 0,
|
|
3143
3149
|
tabindex: n.isClickable ? 0 : void 0,
|
|
3144
3150
|
onClick: (e) => m(n),
|
|
3145
3151
|
onKeydown: (e) => g(e, n)
|
|
3146
|
-
}, R(n.name), 47,
|
|
3152
|
+
}, R(n.name), 47, ea), r < e.visibleValues.length - 1 ? (k(), o(t, { key: 0 }, [l(", ")], 64)) : a("", !0)], 64))), 128)), e.hiddenValues.length ? (k(), i(dr, {
|
|
3147
3153
|
key: 0,
|
|
3148
3154
|
position: "top-left",
|
|
3149
3155
|
variant: "white",
|
|
@@ -3165,20 +3171,20 @@ var Ti = () => ({
|
|
|
3165
3171
|
tabindex: e.isClickable ? 0 : void 0,
|
|
3166
3172
|
onClick: (t) => m(e),
|
|
3167
3173
|
onKeydown: (t) => g(t, e)
|
|
3168
|
-
}, R(e.name), 47,
|
|
3174
|
+
}, R(e.name), 47, ta))), 128))]),
|
|
3169
3175
|
_: 2
|
|
3170
3176
|
}, 1024)) : a("", !0)])]))), 128));
|
|
3171
3177
|
}
|
|
3172
|
-
}),
|
|
3178
|
+
}), ia = {
|
|
3173
3179
|
class: "pv-flex-vertical",
|
|
3174
3180
|
style: { "--flex-align": "flex-start" }
|
|
3175
|
-
},
|
|
3181
|
+
}, aa = ["for"], oa = [
|
|
3176
3182
|
"rows",
|
|
3177
3183
|
"disabled",
|
|
3178
3184
|
"placeholder",
|
|
3179
3185
|
"id",
|
|
3180
3186
|
"data-invalid"
|
|
3181
|
-
],
|
|
3187
|
+
], sa = /* @__PURE__ */ d({
|
|
3182
3188
|
__name: "PvTextArea",
|
|
3183
3189
|
props: /* @__PURE__ */ _({
|
|
3184
3190
|
error: { type: Boolean },
|
|
@@ -3195,12 +3201,12 @@ var Ti = () => ({
|
|
|
3195
3201
|
emits: ["update:modelValue"],
|
|
3196
3202
|
setup(e) {
|
|
3197
3203
|
let t = H(e, "modelValue");
|
|
3198
|
-
return (n, r) => (k(), o("div",
|
|
3204
|
+
return (n, r) => (k(), o("div", ia, [
|
|
3199
3205
|
n.$slots.label ? (k(), o("label", {
|
|
3200
3206
|
key: 0,
|
|
3201
3207
|
class: "pv-label",
|
|
3202
3208
|
for: e.id
|
|
3203
|
-
}, [N(n.$slots, "label")], 8,
|
|
3209
|
+
}, [N(n.$slots, "label")], 8, aa)) : a("", !0),
|
|
3204
3210
|
q(s("textarea", v(n.$attrs, {
|
|
3205
3211
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
3206
3212
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
@@ -3209,7 +3215,7 @@ var Ti = () => ({
|
|
|
3209
3215
|
placeholder: e.placeholder,
|
|
3210
3216
|
id: e.id,
|
|
3211
3217
|
"data-invalid": e.error ? !0 : void 0
|
|
3212
|
-
}), null, 16,
|
|
3218
|
+
}), null, 16, oa), [[ae, t.value]]),
|
|
3213
3219
|
e.lowerLabel ? (k(), o("p", {
|
|
3214
3220
|
key: 1,
|
|
3215
3221
|
style: { "margin-left": "12px" },
|
|
@@ -3220,13 +3226,13 @@ var Ti = () => ({
|
|
|
3220
3226
|
}, R(e.lowerLabel), 3)) : a("", !0)
|
|
3221
3227
|
]));
|
|
3222
3228
|
}
|
|
3223
|
-
}),
|
|
3229
|
+
}), ca = ["for"], la = [
|
|
3224
3230
|
"id",
|
|
3225
3231
|
"type",
|
|
3226
3232
|
"value",
|
|
3227
3233
|
"name",
|
|
3228
3234
|
"disabled"
|
|
3229
|
-
],
|
|
3235
|
+
], ua = { key: 1 }, da = /* @__PURE__ */ d({
|
|
3230
3236
|
__name: "PvToggleButton",
|
|
3231
3237
|
props: /* @__PURE__ */ _({
|
|
3232
3238
|
size: { default: "xl" },
|
|
@@ -3276,12 +3282,12 @@ var Ti = () => ({
|
|
|
3276
3282
|
value: e.value,
|
|
3277
3283
|
name: e.name,
|
|
3278
3284
|
disabled: e.disabled
|
|
3279
|
-
}, null, 8,
|
|
3285
|
+
}, null, 8, la), [[re, n.value]]),
|
|
3280
3286
|
e.leftIcon ? (k(), i(Q, {
|
|
3281
3287
|
key: 0,
|
|
3282
3288
|
name: e.leftIcon
|
|
3283
3289
|
}, null, 8, ["name"])) : a("", !0),
|
|
3284
|
-
e.label ? (k(), o("span",
|
|
3290
|
+
e.label ? (k(), o("span", ua, R(e.label), 1)) : a("", !0),
|
|
3285
3291
|
e.rightIcon ? (k(), i(Q, {
|
|
3286
3292
|
key: 2,
|
|
3287
3293
|
name: e.rightIcon
|
|
@@ -3291,9 +3297,9 @@ var Ti = () => ({
|
|
|
3291
3297
|
value: e.rightCounterBadge,
|
|
3292
3298
|
variant: u.value
|
|
3293
3299
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
3294
|
-
], 10,
|
|
3300
|
+
], 10, ca));
|
|
3295
3301
|
}
|
|
3296
|
-
}),
|
|
3302
|
+
}), fa = { class: "pv-flex-item" }, pa = { class: "pv-text-body-md" }, ma = /* @__PURE__ */ d({
|
|
3297
3303
|
__name: "PvToast",
|
|
3298
3304
|
props: {
|
|
3299
3305
|
variant: { default: "info" },
|
|
@@ -3328,7 +3334,7 @@ var Ti = () => ({
|
|
|
3328
3334
|
name: e.icon ? e.icon : n[e.variant],
|
|
3329
3335
|
size: 20
|
|
3330
3336
|
}, null, 8, ["name"])),
|
|
3331
|
-
s("div",
|
|
3337
|
+
s("div", fa, [N(r.$slots, "header"), s("p", pa, R(e.label), 1)]),
|
|
3332
3338
|
N(r.$slots, "default"),
|
|
3333
3339
|
u($, {
|
|
3334
3340
|
variant: "ghost",
|
|
@@ -3340,19 +3346,19 @@ var Ti = () => ({
|
|
|
3340
3346
|
}, null, 8, ["inverse"])
|
|
3341
3347
|
], 2));
|
|
3342
3348
|
}
|
|
3343
|
-
}),
|
|
3349
|
+
}), ha = {
|
|
3344
3350
|
class: "pv-inset-square",
|
|
3345
3351
|
style: { "flex-shrink": "0" }
|
|
3346
|
-
},
|
|
3352
|
+
}, ga = {
|
|
3347
3353
|
key: 1,
|
|
3348
3354
|
class: "pv-flex pv-space-between"
|
|
3349
|
-
},
|
|
3355
|
+
}, _a = { key: 2 }, va = {
|
|
3350
3356
|
class: "pv-flex pv-stack",
|
|
3351
3357
|
style: {
|
|
3352
3358
|
"--flex-gap": "4px",
|
|
3353
3359
|
"flex-wrap": "wrap"
|
|
3354
3360
|
}
|
|
3355
|
-
},
|
|
3361
|
+
}, ya = { class: "pv-stack" }, ba = { class: "pv-flex pv-space-between" }, xa = /* @__PURE__ */ d({
|
|
3356
3362
|
__name: "PvContextFeedback",
|
|
3357
3363
|
props: {
|
|
3358
3364
|
fields: {},
|
|
@@ -3393,15 +3399,15 @@ var Ti = () => ({
|
|
|
3393
3399
|
}, y = (e, t) => {
|
|
3394
3400
|
t ? l.value.includes(e) || (l.value = [...l.value, e]) : l.value = l.value.filter((t) => t !== e);
|
|
3395
3401
|
};
|
|
3396
|
-
return (e, n) => (k(), o("div",
|
|
3402
|
+
return (e, n) => (k(), o("div", ha, [p.value ? (k(), i(ma, {
|
|
3397
3403
|
key: 0,
|
|
3398
3404
|
class: "pv-stack",
|
|
3399
3405
|
variant: p.value.variant,
|
|
3400
3406
|
label: p.value.message,
|
|
3401
3407
|
onHandleClose: n[0] ||= (e) => p.value = null
|
|
3402
|
-
}, null, 8, ["variant", "label"])) : a("", !0), c.value ? (k(), o("div",
|
|
3408
|
+
}, null, 8, ["variant", "label"])) : a("", !0), c.value ? (k(), o("div", _a, [
|
|
3403
3409
|
n[3] ||= s("h4", { class: "pv-heading-4 pv-stack" }, "Select fields for feedback.", -1),
|
|
3404
|
-
s("div",
|
|
3410
|
+
s("div", va, [(k(!0), o(t, null, M(m.value, (e) => (k(), i(da, {
|
|
3405
3411
|
key: e,
|
|
3406
3412
|
label: e,
|
|
3407
3413
|
"model-value": l.value.includes(e),
|
|
@@ -3414,12 +3420,12 @@ var Ti = () => ({
|
|
|
3414
3420
|
"model-value",
|
|
3415
3421
|
"onUpdate:modelValue"
|
|
3416
3422
|
]))), 128))]),
|
|
3417
|
-
s("div",
|
|
3423
|
+
s("div", ya, [u(sa, {
|
|
3418
3424
|
modelValue: d.value,
|
|
3419
3425
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
3420
3426
|
placeholder: "(Optional) Add a comment"
|
|
3421
3427
|
}, null, 8, ["modelValue"])]),
|
|
3422
|
-
s("div",
|
|
3428
|
+
s("div", ba, [u($, {
|
|
3423
3429
|
variant: "ghost",
|
|
3424
3430
|
label: "Cancel",
|
|
3425
3431
|
size: "md",
|
|
@@ -3433,18 +3439,18 @@ var Ti = () => ({
|
|
|
3433
3439
|
loading: f.value,
|
|
3434
3440
|
onClick: v
|
|
3435
3441
|
}, null, 8, ["disabled", "loading"])])
|
|
3436
|
-
])) : (k(), o("div",
|
|
3442
|
+
])) : (k(), o("div", ga, [n[2] ||= s("span", { class: "pv-text-body-md pv-text-subdued" }, "Something look off?", -1), u($, {
|
|
3437
3443
|
label: "Give Feedback",
|
|
3438
3444
|
variant: "ghost",
|
|
3439
3445
|
size: "md",
|
|
3440
3446
|
onClick: g
|
|
3441
3447
|
})]))]));
|
|
3442
3448
|
}
|
|
3443
|
-
}),
|
|
3449
|
+
}), Sa = ["data-style", "data-invalid"], Ca = [
|
|
3444
3450
|
"placeholder",
|
|
3445
3451
|
"disabled",
|
|
3446
3452
|
"name"
|
|
3447
|
-
],
|
|
3453
|
+
], wa = /* @__PURE__ */ d({
|
|
3448
3454
|
__name: "PvGhostInput",
|
|
3449
3455
|
props: /* @__PURE__ */ _({
|
|
3450
3456
|
variant: { default: "h1" },
|
|
@@ -3509,7 +3515,7 @@ var Ti = () => ({
|
|
|
3509
3515
|
placeholder: e.placeholder,
|
|
3510
3516
|
disabled: e.disabled,
|
|
3511
3517
|
name: n[e.variant]
|
|
3512
|
-
}), null, 16,
|
|
3518
|
+
}), null, 16, Ca), [[ae, l.value]]),
|
|
3513
3519
|
e.showEditIcon ? (k(), i($, {
|
|
3514
3520
|
key: 0,
|
|
3515
3521
|
"left-icon": "edit",
|
|
@@ -3517,27 +3523,27 @@ var Ti = () => ({
|
|
|
3517
3523
|
variant: "ghost",
|
|
3518
3524
|
onClick: d
|
|
3519
3525
|
})) : a("", !0)
|
|
3520
|
-
], 8,
|
|
3526
|
+
], 8, Sa));
|
|
3521
3527
|
}
|
|
3522
|
-
}),
|
|
3528
|
+
}), Ta = [
|
|
3523
3529
|
"data-active",
|
|
3524
3530
|
"data-type",
|
|
3525
3531
|
"data-testid",
|
|
3526
3532
|
"onClick"
|
|
3527
|
-
],
|
|
3533
|
+
], Ea = {
|
|
3528
3534
|
key: 0,
|
|
3529
3535
|
class: "pv-tab-input"
|
|
3530
|
-
},
|
|
3536
|
+
}, Da = ["aria-expanded"], Oa = {
|
|
3531
3537
|
class: "pv-popover pv-popover-list",
|
|
3532
3538
|
style: { "--width": "fit-content" }
|
|
3533
|
-
},
|
|
3539
|
+
}, ka = ["data-active"], Aa = [
|
|
3534
3540
|
"aria-disabled",
|
|
3535
3541
|
"title",
|
|
3536
3542
|
"onClick"
|
|
3537
|
-
],
|
|
3543
|
+
], ja = ["disabled", "title"], Ma = {
|
|
3538
3544
|
class: "pv-popover pv-popover-list",
|
|
3539
3545
|
style: { "--width": "fit-content" }
|
|
3540
|
-
},
|
|
3546
|
+
}, Na = ["onClick"], Pa = "__pv-tabs-overflow__", Fa = /* @__PURE__ */ d({
|
|
3541
3547
|
__name: "PvTabs",
|
|
3542
3548
|
props: /* @__PURE__ */ _({
|
|
3543
3549
|
collapseOverflow: { type: Boolean },
|
|
@@ -3561,10 +3567,10 @@ var Ti = () => ({
|
|
|
3561
3567
|
}, h = r(() => {
|
|
3562
3568
|
let e = c.tabs.some((e) => e.type === "addButton"), t = c.tabs.some((e) => e.options?.some((e) => e.value === "delete"));
|
|
3563
3569
|
return e || !t ? c.tabs : [...c.tabs, m];
|
|
3564
|
-
}), g = j(null), { width: _ } = X(g), v = j(0), x = j(!1), S = j(!1), C = L({}), w = (e) => e.type === "addButton", E = (e) => e.value ===
|
|
3570
|
+
}), g = j(null), { width: _ } = X(g), v = j(0), x = j(!1), S = j(!1), C = L({}), w = (e) => e.type === "addButton", E = (e) => e.value === Pa, D = (e) => C.value[p(e)] ?? 0, O = r(() => h.value.filter((e) => !w(e))), A = r(() => h.value.filter(w)), N = r(() => {
|
|
3565
3571
|
let e = O.value.map(D);
|
|
3566
3572
|
if (!c.collapseOverflow || _.value <= 0) return e.length;
|
|
3567
|
-
let t = A.value.map(D), n = C.value[
|
|
3573
|
+
let t = A.value.map(D), n = C.value[Pa] ?? 0, r = (r) => {
|
|
3568
3574
|
let i = [
|
|
3569
3575
|
...e.slice(0, r),
|
|
3570
3576
|
...r < e.length ? [n] : [],
|
|
@@ -3576,7 +3582,7 @@ var Ti = () => ({
|
|
|
3576
3582
|
return i;
|
|
3577
3583
|
}), P = r(() => O.value.slice(N.value)), F = r(() => ({
|
|
3578
3584
|
label: `+${x.value ? O.value.length : P.value.length} more`,
|
|
3579
|
-
value:
|
|
3585
|
+
value: Pa
|
|
3580
3586
|
})), I = r(() => x.value ? [...h.value, F.value] : P.value.length ? [
|
|
3581
3587
|
...O.value.slice(0, N.value),
|
|
3582
3588
|
F.value,
|
|
@@ -3647,7 +3653,7 @@ var Ti = () => ({
|
|
|
3647
3653
|
"data-type": ie(e),
|
|
3648
3654
|
"data-testid": ie(e) ? `pv-tab-${ie(e)}` : "pv-tab",
|
|
3649
3655
|
onClick: () => U(e)
|
|
3650
|
-
}, [e.type === "input" ? (k(), o("div",
|
|
3656
|
+
}, [e.type === "input" ? (k(), o("div", Ea, [u(wa, {
|
|
3651
3657
|
variant: "text-md",
|
|
3652
3658
|
autofocus: "",
|
|
3653
3659
|
placeholder: e.label,
|
|
@@ -3673,8 +3679,8 @@ var Ti = () => ({
|
|
|
3673
3679
|
type: "button",
|
|
3674
3680
|
"aria-haspopup": "true",
|
|
3675
3681
|
"aria-expanded": S.value
|
|
3676
|
-
}, R(e.label), 9,
|
|
3677
|
-
content: K(() => [s("ul",
|
|
3682
|
+
}, R(e.label), 9, Da)]),
|
|
3683
|
+
content: K(() => [s("ul", Oa, [(k(!0), o(t, null, M(P.value, (e) => (k(), o("li", {
|
|
3678
3684
|
key: p(e),
|
|
3679
3685
|
"data-active": re(e)
|
|
3680
3686
|
}, [s("a", {
|
|
@@ -3682,7 +3688,7 @@ var Ti = () => ({
|
|
|
3682
3688
|
"aria-disabled": e.disabled,
|
|
3683
3689
|
title: e.disabled ? e.disabledReason : void 0,
|
|
3684
3690
|
onClick: J((t) => W(e), ["prevent"])
|
|
3685
|
-
}, R(e.label), 9,
|
|
3691
|
+
}, R(e.label), 9, Aa)], 8, ka))), 128))])]),
|
|
3686
3692
|
_: 2
|
|
3687
3693
|
}, 1032, ["modelValue"])) : (k(), o("button", {
|
|
3688
3694
|
key: 2,
|
|
@@ -3701,7 +3707,7 @@ var Ti = () => ({
|
|
|
3701
3707
|
variant: re(e) ? "primary" : "tertiary",
|
|
3702
3708
|
size: "sm"
|
|
3703
3709
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
3704
|
-
], 8,
|
|
3710
|
+
], 8, ja)), ae(e) ? (k(), i(lr, {
|
|
3705
3711
|
key: 3,
|
|
3706
3712
|
class: "pv-tab-options",
|
|
3707
3713
|
"show-on-hover": "",
|
|
@@ -3713,35 +3719,35 @@ var Ti = () => ({
|
|
|
3713
3719
|
size: "md",
|
|
3714
3720
|
ariaLabel: "Tab options"
|
|
3715
3721
|
})]),
|
|
3716
|
-
content: K(() => [s("ul",
|
|
3722
|
+
content: K(() => [s("ul", Ma, [(k(!0), o(t, null, M(e.options, (t) => (k(), o("li", { key: t.value }, [s("a", {
|
|
3717
3723
|
href: "#",
|
|
3718
3724
|
class: b({ "pv-text-critical": t.value === "delete" }),
|
|
3719
3725
|
onClick: J((n) => oe(e, t), ["prevent"])
|
|
3720
|
-
}, R(t.label), 11,
|
|
3726
|
+
}, R(t.label), 11, Na)]))), 128))])]),
|
|
3721
3727
|
_: 2
|
|
3722
|
-
}, 1024)) : a("", !0)], 8,
|
|
3728
|
+
}, 1024)) : a("", !0)], 8, Ta))), 128))], 2));
|
|
3723
3729
|
}
|
|
3724
|
-
}),
|
|
3730
|
+
}), Ia = {
|
|
3725
3731
|
class: "pv-breadcrumbs",
|
|
3726
3732
|
role: "list",
|
|
3727
3733
|
"data-testid": "pv-breadcrumbs"
|
|
3728
|
-
},
|
|
3734
|
+
}, La = ["href"], Ra = ["onClick"], za = /* @__PURE__ */ d({
|
|
3729
3735
|
__name: "PvBreadcrumbs",
|
|
3730
3736
|
props: { options: {} },
|
|
3731
3737
|
emits: ["handle-click"],
|
|
3732
3738
|
setup(e) {
|
|
3733
|
-
return (n, r) => (k(), o("ul",
|
|
3739
|
+
return (n, r) => (k(), o("ul", Ia, [(k(!0), o(t, null, M(e.options, (e, t) => (k(), o("li", { key: `${t}-${e.label}` }, [e.href ? (k(), o("a", {
|
|
3734
3740
|
key: 0,
|
|
3735
3741
|
href: e.href
|
|
3736
|
-
}, R(e.label), 9,
|
|
3742
|
+
}, R(e.label), 9, La)) : (k(), o("span", {
|
|
3737
3743
|
key: 1,
|
|
3738
3744
|
onClick: (t) => n.$emit("handle-click", e.label)
|
|
3739
|
-
}, R(e.label), 9,
|
|
3745
|
+
}, R(e.label), 9, Ra))]))), 128))]));
|
|
3740
3746
|
}
|
|
3741
|
-
}),
|
|
3747
|
+
}), Ba = {
|
|
3742
3748
|
"data-testid": "pv-select-menu-control-panel",
|
|
3743
3749
|
class: "pv-flex pv-space-between"
|
|
3744
|
-
},
|
|
3750
|
+
}, Va = /* @__PURE__ */ d({
|
|
3745
3751
|
__name: "PvMenuControlPanel",
|
|
3746
3752
|
props: {
|
|
3747
3753
|
variant: {},
|
|
@@ -3756,7 +3762,7 @@ var Ti = () => ({
|
|
|
3756
3762
|
],
|
|
3757
3763
|
setup(e) {
|
|
3758
3764
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
3759
|
-
return (n, r) => (k(), o("div",
|
|
3765
|
+
return (n, r) => (k(), o("div", Ba, [e.variant === "select-clear" ? (k(), o(t, { key: 0 }, [u($, {
|
|
3760
3766
|
variant: "ghost",
|
|
3761
3767
|
"data-testid": "pv-select-menu-item-select-all",
|
|
3762
3768
|
"data-dd-action-name": i.value,
|
|
@@ -3783,7 +3789,7 @@ var Ti = () => ({
|
|
|
3783
3789
|
disabled: e.disabled
|
|
3784
3790
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
3785
3791
|
}
|
|
3786
|
-
}),
|
|
3792
|
+
}), Ha = ["data-style", "data-shape"], Ua = ["src", "alt"], Wa = /* @__PURE__ */ d({
|
|
3787
3793
|
__name: "PvAvatar",
|
|
3788
3794
|
props: {
|
|
3789
3795
|
alt: {},
|
|
@@ -3821,14 +3827,14 @@ var Ti = () => ({
|
|
|
3821
3827
|
key: 2,
|
|
3822
3828
|
src: e.image,
|
|
3823
3829
|
alt: e.alt ?? ""
|
|
3824
|
-
}, null, 8,
|
|
3830
|
+
}, null, 8, Ua)) : a("", !0)], 10, Ha));
|
|
3825
3831
|
}
|
|
3826
|
-
}),
|
|
3832
|
+
}), Ga = ["disabled"], Ka = { class: "pv-flex pv-select-button-trigger-content" }, qa = {
|
|
3827
3833
|
key: 0,
|
|
3828
3834
|
"data-testid": "pv-select-prefix-label",
|
|
3829
3835
|
class: "pv-border-right pv-text-quaternary",
|
|
3830
3836
|
style: { "padding-right": "4px" }
|
|
3831
|
-
},
|
|
3837
|
+
}, Ja = ["title"], Ya = /* @__PURE__ */ Je(/* @__PURE__ */ d({
|
|
3832
3838
|
__name: "PvSelectButtonTrigger",
|
|
3833
3839
|
props: {
|
|
3834
3840
|
avatar: {},
|
|
@@ -3882,8 +3888,8 @@ var Ti = () => ({
|
|
|
3882
3888
|
style: { "--flex-gap": "0.25rem" },
|
|
3883
3889
|
disabled: e.disabled || e.isLoading
|
|
3884
3890
|
}, [
|
|
3885
|
-
s("div",
|
|
3886
|
-
e.prefixLabel ? (k(), o("p",
|
|
3891
|
+
s("div", Ka, [
|
|
3892
|
+
e.prefixLabel ? (k(), o("p", qa, R(e.prefixLabel), 1)) : a("", !0),
|
|
3887
3893
|
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (k(), i(Ye, {
|
|
3888
3894
|
key: 1,
|
|
3889
3895
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
@@ -3903,7 +3909,7 @@ var Ti = () => ({
|
|
|
3903
3909
|
name: e.companyLogo,
|
|
3904
3910
|
size: "sm"
|
|
3905
3911
|
}, null, 8, ["name"])) : a("", !0),
|
|
3906
|
-
e.avatar ? (k(), i(
|
|
3912
|
+
e.avatar ? (k(), i(Wa, {
|
|
3907
3913
|
key: 2,
|
|
3908
3914
|
class: "pv-select-button-trigger-avatar",
|
|
3909
3915
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -3923,7 +3929,7 @@ var Ti = () => ({
|
|
|
3923
3929
|
key: 3,
|
|
3924
3930
|
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
3925
3931
|
title: p.value
|
|
3926
|
-
}, R(p.value), 9,
|
|
3932
|
+
}, R(p.value), 9, Ja)) : a("", !0)
|
|
3927
3933
|
], 64)),
|
|
3928
3934
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (k(), i(Ye, {
|
|
3929
3935
|
key: 4,
|
|
@@ -3958,26 +3964,26 @@ var Ti = () => ({
|
|
|
3958
3964
|
"tooltip-content": K(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
3959
3965
|
_: 1
|
|
3960
3966
|
})) : a("", !0)
|
|
3961
|
-
], 10,
|
|
3967
|
+
], 10, Ga));
|
|
3962
3968
|
}
|
|
3963
|
-
}), [["__scopeId", "data-v-da9865ad"]]),
|
|
3964
|
-
function
|
|
3965
|
-
return k(), o("div",
|
|
3969
|
+
}), [["__scopeId", "data-v-da9865ad"]]), Xa = {}, Za = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
3970
|
+
function Qa(e, t) {
|
|
3971
|
+
return k(), o("div", Za, "No Results Found");
|
|
3966
3972
|
}
|
|
3967
|
-
var
|
|
3973
|
+
var $a = /* @__PURE__ */ Je(Xa, [["render", Qa]]);
|
|
3968
3974
|
//#endregion
|
|
3969
3975
|
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
3970
|
-
function
|
|
3976
|
+
function eo(e) {
|
|
3971
3977
|
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
3972
3978
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return e.flatMap((e) => e.children?.length ?
|
|
3979
|
+
function to(e) {
|
|
3980
|
+
return e.flatMap((e) => e.children?.length ? to(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
3975
3981
|
}
|
|
3976
|
-
function
|
|
3982
|
+
function no(e, t) {
|
|
3977
3983
|
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
3978
3984
|
return r.length > 0 ? [...e, ...r] : e;
|
|
3979
3985
|
}
|
|
3980
|
-
function
|
|
3986
|
+
function ro(e, t) {
|
|
3981
3987
|
let n = (e) => {
|
|
3982
3988
|
let r = 0, i = 0, a = 0;
|
|
3983
3989
|
for (let o of e) if (o.children?.length) {
|
|
@@ -3992,14 +3998,14 @@ function no(e, t) {
|
|
|
3992
3998
|
};
|
|
3993
3999
|
return n(e).displayCount;
|
|
3994
4000
|
}
|
|
3995
|
-
function
|
|
4001
|
+
function io(e) {
|
|
3996
4002
|
return e.filter((e) => e.state === "selected").length;
|
|
3997
4003
|
}
|
|
3998
|
-
function
|
|
4004
|
+
function ao(e, t, n = !0) {
|
|
3999
4005
|
return e.flatMap((e) => {
|
|
4000
4006
|
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
4001
4007
|
if (e.children?.length) {
|
|
4002
|
-
let r =
|
|
4008
|
+
let r = ao(e.children, t, n);
|
|
4003
4009
|
if (r.length) return n ? [{
|
|
4004
4010
|
...e,
|
|
4005
4011
|
children: r
|
|
@@ -4010,13 +4016,7 @@ function io(e, t, n = !0) {
|
|
|
4010
4016
|
}
|
|
4011
4017
|
//#endregion
|
|
4012
4018
|
//#region src/components/base/PvMenu/items/PvMenuBaseItem.vue?vue&type=script&setup=true&lang.ts
|
|
4013
|
-
var
|
|
4014
|
-
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
4015
|
-
style: {
|
|
4016
|
-
"align-items": "flex-start",
|
|
4017
|
-
"--flex-gap": "0"
|
|
4018
|
-
}
|
|
4019
|
-
}, oo = ["title"], so = ["title"], co = { style: {
|
|
4019
|
+
var oo = ["title"], so = ["title"], co = { style: {
|
|
4020
4020
|
"max-width": "220px",
|
|
4021
4021
|
"white-space": "normal",
|
|
4022
4022
|
"overflow-wrap": "break-word"
|
|
@@ -4058,11 +4058,14 @@ var ao = {
|
|
|
4058
4058
|
config: {}
|
|
4059
4059
|
},
|
|
4060
4060
|
setup(e) {
|
|
4061
|
-
let n = e, c = j(null), l = j(null), d = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), f = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), p = r(() => n.subText || null), m =
|
|
4061
|
+
let n = e, c = j(null), l = j(null), d = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), f = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), p = r(() => n.subText || null), m = {
|
|
4062
|
+
whiteSpace: "normal",
|
|
4063
|
+
overflowWrap: "anywhere"
|
|
4064
|
+
}, h = r(() => !!n.menuOptionConfig?.wrapText), g = r(() => h.value ? m : void 0), _ = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), v = (e, t, n) => {
|
|
4062
4065
|
let r = n;
|
|
4063
4066
|
if (r === void 0) {
|
|
4064
4067
|
if (!t) return [];
|
|
4065
|
-
let n = new RegExp(
|
|
4068
|
+
let n = new RegExp(_(t), "gi");
|
|
4066
4069
|
r = Array.from(e.matchAll(n), (e) => [e.index, e.index + e[0].length]);
|
|
4067
4070
|
}
|
|
4068
4071
|
if (!Array.isArray(r)) return [];
|
|
@@ -4072,20 +4075,20 @@ var ao = {
|
|
|
4072
4075
|
n && e <= n[1] ? n[1] = Math.max(n[1], t) : a.push([e, t]);
|
|
4073
4076
|
}
|
|
4074
4077
|
return a;
|
|
4075
|
-
},
|
|
4076
|
-
let i =
|
|
4078
|
+
}, y = (e, t, n, r) => {
|
|
4079
|
+
let i = v(t, n, r), a = [], o = 0;
|
|
4077
4080
|
for (let [e, n] of i) {
|
|
4078
4081
|
e > o && a.push(document.createTextNode(t.slice(o, e)));
|
|
4079
4082
|
let r = document.createElement("span");
|
|
4080
4083
|
r.dataset.testId = "pv-matched-text", r.style.fontWeight = "bold", r.textContent = t.slice(e, n), a.push(r), o = n;
|
|
4081
4084
|
}
|
|
4082
4085
|
o < t.length && a.push(document.createTextNode(t.slice(o))), e.replaceChildren(...a);
|
|
4083
|
-
},
|
|
4084
|
-
let e = n.queryText ?? "", t = e && new RegExp(
|
|
4085
|
-
c.value &&
|
|
4086
|
+
}, x = () => {
|
|
4087
|
+
let e = n.queryText ?? "", t = e && new RegExp(_(e), "gi").test(n.text);
|
|
4088
|
+
c.value && y(c.value, n.text, e, n.textMatchRanges), l.value && p.value && y(l.value, p.value, t ? "" : e, n.subTextMatchRanges);
|
|
4086
4089
|
};
|
|
4087
4090
|
return T(() => {
|
|
4088
|
-
|
|
4091
|
+
x();
|
|
4089
4092
|
}), G(() => [
|
|
4090
4093
|
n.queryText,
|
|
4091
4094
|
n.text,
|
|
@@ -4093,12 +4096,12 @@ var ao = {
|
|
|
4093
4096
|
n.textMatchRanges,
|
|
4094
4097
|
n.subTextMatchRanges
|
|
4095
4098
|
], () => {
|
|
4096
|
-
|
|
4099
|
+
x();
|
|
4097
4100
|
}, {
|
|
4098
4101
|
flush: "post",
|
|
4099
4102
|
deep: !0
|
|
4100
4103
|
}), (n, r) => (k(), o(t, null, [
|
|
4101
|
-
e.avatar ? (k(), i(
|
|
4104
|
+
e.avatar ? (k(), i(Wa, {
|
|
4102
4105
|
key: 0,
|
|
4103
4106
|
initials: e.avatar.initials,
|
|
4104
4107
|
image: e.avatar.image,
|
|
@@ -4127,9 +4130,24 @@ var ao = {
|
|
|
4127
4130
|
name: e.companyName,
|
|
4128
4131
|
size: "sm"
|
|
4129
4132
|
}, null, 8, ["name"])) : a("", !0),
|
|
4130
|
-
s("div",
|
|
4131
|
-
class:
|
|
4132
|
-
|
|
4133
|
+
s("div", {
|
|
4134
|
+
class: b([
|
|
4135
|
+
"pv-full-width",
|
|
4136
|
+
"pv-flex-vertical",
|
|
4137
|
+
{ "pv-truncate": !h.value }
|
|
4138
|
+
]),
|
|
4139
|
+
style: {
|
|
4140
|
+
"align-items": "flex-start",
|
|
4141
|
+
"--flex-gap": "0"
|
|
4142
|
+
}
|
|
4143
|
+
}, [s("span", {
|
|
4144
|
+
class: b([
|
|
4145
|
+
"pv-text-body-md",
|
|
4146
|
+
"pv-full-width",
|
|
4147
|
+
{ "pv-truncate": !h.value }
|
|
4148
|
+
]),
|
|
4149
|
+
style: S(g.value),
|
|
4150
|
+
title: e.hoverTitle ?? (h.value ? void 0 : e.text)
|
|
4133
4151
|
}, [s("span", {
|
|
4134
4152
|
ref_key: "mainText",
|
|
4135
4153
|
ref: c
|
|
@@ -4137,18 +4155,21 @@ var ao = {
|
|
|
4137
4155
|
key: 0,
|
|
4138
4156
|
class: b({ "pv-text-subdued": !e.disabled }),
|
|
4139
4157
|
style: { "padding-left": "4px" }
|
|
4140
|
-
}, R(e.subduedText), 3)) : a("", !0)],
|
|
4158
|
+
}, R(e.subduedText), 3)) : a("", !0)], 14, oo), p.value ? (k(), o("span", {
|
|
4141
4159
|
key: 0,
|
|
4142
4160
|
ref_key: "subText",
|
|
4143
4161
|
ref: l,
|
|
4144
4162
|
class: b([
|
|
4145
4163
|
"pv-text-body-xs",
|
|
4146
4164
|
"pv-full-width",
|
|
4147
|
-
|
|
4148
|
-
|
|
4165
|
+
{
|
|
4166
|
+
"pv-truncate": !h.value,
|
|
4167
|
+
"pv-text-subdued": !e.disabled
|
|
4168
|
+
}
|
|
4149
4169
|
]),
|
|
4150
|
-
|
|
4151
|
-
|
|
4170
|
+
style: S(g.value),
|
|
4171
|
+
title: e.hoverTitle ?? (h.value ? void 0 : p.value)
|
|
4172
|
+
}, R(p.value), 15, so)) : a("", !0)], 2),
|
|
4152
4173
|
e.secondaryLoading ? (k(), i(ze, {
|
|
4153
4174
|
key: 3,
|
|
4154
4175
|
size: "xs",
|
|
@@ -4330,16 +4351,16 @@ var ao = {
|
|
|
4330
4351
|
emits: ["handle-selected", "toggle-expanded"],
|
|
4331
4352
|
setup(e, { emit: t }) {
|
|
4332
4353
|
let n = e, c = U("inputRef"), l = h(vo, void 0), d = h(yo, j(!1)), p = h(So, void 0), m = h(Co, void 0), g = h(bo, r(() => !1)), _ = r(() => {
|
|
4333
|
-
if (!d.value ||
|
|
4334
|
-
let e = n.children ?
|
|
4354
|
+
if (!d.value || !eo(n)) return [];
|
|
4355
|
+
let e = n.children ? to(n.children) : [];
|
|
4335
4356
|
if (p?.value) {
|
|
4336
4357
|
let t = p.value.get(n.id);
|
|
4337
|
-
return
|
|
4358
|
+
return no(t?.children ? to(t.children) : [], e);
|
|
4338
4359
|
}
|
|
4339
4360
|
return e;
|
|
4340
4361
|
}), x = r(() => {
|
|
4341
4362
|
if (!l?.value) return n.selected ?? !1;
|
|
4342
|
-
if (d.value &&
|
|
4363
|
+
if (d.value && eo(n)) {
|
|
4343
4364
|
let e = _.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4344
4365
|
if (m?.value?.has(n.id) && r >= t) return !0;
|
|
4345
4366
|
let i = n.totalChildCount ?? t;
|
|
@@ -4347,7 +4368,7 @@ var ao = {
|
|
|
4347
4368
|
}
|
|
4348
4369
|
return l.value.some((e) => e.id === n.id);
|
|
4349
4370
|
}), S = r(() => {
|
|
4350
|
-
if (!l?.value || !d.value ||
|
|
4371
|
+
if (!l?.value || !d.value || !eo(n)) return n.indeterminate ?? !1;
|
|
4351
4372
|
let e = _.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4352
4373
|
if (m?.value?.has(n.id) && r >= t) return !1;
|
|
4353
4374
|
let i = n.totalChildCount ?? t;
|
|
@@ -4522,7 +4543,7 @@ var ao = {
|
|
|
4522
4543
|
}, D = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), O = r(() => {
|
|
4523
4544
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
4524
4545
|
return f.value && delete r.selectedIds, r;
|
|
4525
|
-
}), A = r(() =>
|
|
4546
|
+
}), A = r(() => eo({
|
|
4526
4547
|
...i,
|
|
4527
4548
|
children: w.value
|
|
4528
4549
|
}) && i.level < Po), N = r(() => A.value ? l.value ? y.value : !0 : !1), F = r(() => y.value ? "chevron-down" : "chevron-right"), I = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), L = n, R = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), z = async () => {
|
|
@@ -4711,12 +4732,12 @@ var ao = {
|
|
|
4711
4732
|
return;
|
|
4712
4733
|
}
|
|
4713
4734
|
let r;
|
|
4714
|
-
if (R.value &&
|
|
4735
|
+
if (R.value && eo(n)) {
|
|
4715
4736
|
let e;
|
|
4716
4737
|
if (B.value && z?.value) {
|
|
4717
4738
|
let t = z.value.get(n.id);
|
|
4718
|
-
e =
|
|
4719
|
-
} else e = n.children ?
|
|
4739
|
+
e = no(t?.children ? to(t.children) : [], n.children ? to(n.children) : []);
|
|
4740
|
+
} else e = n.children ? to(n.children) : [];
|
|
4720
4741
|
let t = e.map((e) => e.id), i = P.value, a = (ee?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
4721
4742
|
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], ee?.value) {
|
|
4722
4743
|
let e = new Set(ee.value);
|
|
@@ -4733,7 +4754,7 @@ var ao = {
|
|
|
4733
4754
|
let t = e > -1;
|
|
4734
4755
|
for (let e of ee.value) {
|
|
4735
4756
|
let r = z?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4736
|
-
if (!r || !(
|
|
4757
|
+
if (!r || !(to(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4737
4758
|
let i = new Map(ne.value), a = new Set(i.get(e) ?? []);
|
|
4738
4759
|
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), ne.value = i;
|
|
4739
4760
|
break;
|
|
@@ -5121,7 +5142,7 @@ var ao = {
|
|
|
5121
5142
|
A(So, d), A(Co, f), A(wo, p), A(To, r(() => c.parentSelectsAllChildren)), A(Eo, r(() => !!c.enableChildExpansion));
|
|
5122
5143
|
let h = n, _ = r(() => {
|
|
5123
5144
|
let e = /* @__PURE__ */ new Map();
|
|
5124
|
-
for (let [t, n] of d.value)
|
|
5145
|
+
for (let [t, n] of d.value) eo(n) && e.set(t, n.children ? to(n.children) : []);
|
|
5125
5146
|
return e;
|
|
5126
5147
|
}), C = () => {
|
|
5127
5148
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -5147,10 +5168,10 @@ var ao = {
|
|
|
5147
5168
|
return t;
|
|
5148
5169
|
}, w = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), T = r(() => {
|
|
5149
5170
|
let e = c.additionalCounter ?? 0;
|
|
5150
|
-
if (c.enableCascadeSelection && c.countSelectedParents && I.value?.length) return
|
|
5171
|
+
if (c.enableCascadeSelection && c.countSelectedParents && I.value?.length) return io(I.value) + e;
|
|
5151
5172
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
5152
5173
|
let t = new Set(W.value.map((e) => e.id));
|
|
5153
|
-
return
|
|
5174
|
+
return ro(c.options, t) + e;
|
|
5154
5175
|
}), E = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && I.value?.length ? I.value.some((e) => e.state === "selected") : !1), D = (e) => {
|
|
5155
5176
|
h("see-more", e ?? {});
|
|
5156
5177
|
}, O = U("searchInputRef"), [j, P] = me(c.defaultOpen), F = H(e, "modelValue"), I = H(e, "selectionState"), z = H(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), ee = (e) => {
|
|
@@ -5208,15 +5229,15 @@ var ao = {
|
|
|
5208
5229
|
let q = r(() => {
|
|
5209
5230
|
if (z.value === "") return c.options;
|
|
5210
5231
|
let e = z.value.toLocaleLowerCase();
|
|
5211
|
-
return c.enableCascadeSelection ?
|
|
5232
|
+
return c.enableCascadeSelection ? ao(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
5212
5233
|
}), ce = () => {
|
|
5213
5234
|
if (c.enableCascadeSelection) {
|
|
5214
5235
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
5215
|
-
for (let r of n)
|
|
5236
|
+
for (let r of n) eo(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
5216
5237
|
};
|
|
5217
5238
|
t(q.value), f.value = e, p.value = /* @__PURE__ */ new Map();
|
|
5218
5239
|
}
|
|
5219
|
-
let e = c.enableCascadeSelection ?
|
|
5240
|
+
let e = c.enableCascadeSelection ? to(q.value) : q.value;
|
|
5220
5241
|
h("select-all", e.length), ee(e);
|
|
5221
5242
|
}, J = () => {
|
|
5222
5243
|
h("clear-all", W.value.length), f.value = /* @__PURE__ */ new Set(), p.value = /* @__PURE__ */ new Map(), ee([]);
|
|
@@ -5253,7 +5274,7 @@ var ao = {
|
|
|
5253
5274
|
modelValue: V(j),
|
|
5254
5275
|
"onUpdate:modelValue": r[4] ||= (e) => g(j) ? j.value = e : null
|
|
5255
5276
|
}, e.popoverProperties, { offset: se.value }), {
|
|
5256
|
-
trigger: K(() => [u(
|
|
5277
|
+
trigger: K(() => [u(Ya, {
|
|
5257
5278
|
ref: "select-button-trigger-ref",
|
|
5258
5279
|
variant: e.variant,
|
|
5259
5280
|
size: e.size,
|
|
@@ -5303,7 +5324,7 @@ var ao = {
|
|
|
5303
5324
|
key: 0,
|
|
5304
5325
|
class: "pv-inset-square-8 pv-border-bottom",
|
|
5305
5326
|
"data-dd-action-name": pe.value
|
|
5306
|
-
}, [u(
|
|
5327
|
+
}, [u(vi, {
|
|
5307
5328
|
ref: "searchInputRef",
|
|
5308
5329
|
"model-value": z.value,
|
|
5309
5330
|
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
@@ -5365,7 +5386,7 @@ var ao = {
|
|
|
5365
5386
|
"isSeeMoreLoading",
|
|
5366
5387
|
"hasMoreOptions"
|
|
5367
5388
|
]))], 64)) : a("", !0),
|
|
5368
|
-
e.isLoading ? (k(), o("div", Jo, [u(ze, { variant: "dark" }), e.loadingText ? (k(), o("span", Yo, R(e.loadingText), 1)) : a("", !0)])) : q.value.length === 0 ? (k(), o(t, { key: 4 }, [V(ve) ? N(n.$slots, "no-results", x(v({ key: 0 }, X.value))) : (k(), i(
|
|
5389
|
+
e.isLoading ? (k(), o("div", Jo, [u(ze, { variant: "dark" }), e.loadingText ? (k(), o("span", Yo, R(e.loadingText), 1)) : a("", !0)])) : q.value.length === 0 ? (k(), o(t, { key: 4 }, [V(ve) ? N(n.$slots, "no-results", x(v({ key: 0 }, X.value))) : (k(), i($a, { key: 1 }))], 64)) : a("", !0),
|
|
5369
5390
|
V(ye) || e.menuActionsVariant ? (k(), o("div", {
|
|
5370
5391
|
key: 5,
|
|
5371
5392
|
class: b(["pv-sticky pv-surface pv-border-top pv-inset-square-8", { "pv-flow-8": e.footerPosition === "below-actions" }]),
|
|
@@ -5375,7 +5396,7 @@ var ao = {
|
|
|
5375
5396
|
}
|
|
5376
5397
|
}, [
|
|
5377
5398
|
V(ye) && e.footerPosition === "above-actions" ? N(n.$slots, "footer", x(v({ key: 0 }, X.value))) : a("", !0),
|
|
5378
|
-
e.menuActionsVariant ? (k(), i(
|
|
5399
|
+
e.menuActionsVariant ? (k(), i(Va, {
|
|
5379
5400
|
key: 1,
|
|
5380
5401
|
variant: e.menuActionsVariant,
|
|
5381
5402
|
disabled: e.isLoading,
|
|
@@ -5498,7 +5519,7 @@ var ao = {
|
|
|
5498
5519
|
modelValue: V(f),
|
|
5499
5520
|
"onUpdate:modelValue": n[2] ||= (e) => g(f) ? f.value = e : null
|
|
5500
5521
|
}, c.value), {
|
|
5501
|
-
trigger: K(() => [u(
|
|
5522
|
+
trigger: K(() => [u(Ya, {
|
|
5502
5523
|
class: "pv-full-width",
|
|
5503
5524
|
ref: "select-button-trigger-ref",
|
|
5504
5525
|
variant: e.variant,
|
|
@@ -5547,7 +5568,7 @@ var ao = {
|
|
|
5547
5568
|
"data-test-id": "pv-popover",
|
|
5548
5569
|
style: S([e.popoverCssProperties, { position: "unset" }])
|
|
5549
5570
|
}, [s("div", Zo, [
|
|
5550
|
-
e.disableSearchInput ? a("", !0) : (k(), o("div", Qo, [u(
|
|
5571
|
+
e.disableSearchInput ? a("", !0) : (k(), o("div", Qo, [u(vi, {
|
|
5551
5572
|
"model-value": m.value,
|
|
5552
5573
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5553
5574
|
class: "pv-stack-4",
|
|
@@ -5571,7 +5592,7 @@ var ao = {
|
|
|
5571
5592
|
"queryText",
|
|
5572
5593
|
"disableDeselect",
|
|
5573
5594
|
"childrenDisplay"
|
|
5574
|
-
])) : (k(), i(
|
|
5595
|
+
])) : (k(), i($a, { key: 2 })),
|
|
5575
5596
|
N(t.$slots, "footer")
|
|
5576
5597
|
])], 4)]),
|
|
5577
5598
|
_: 3
|
|
@@ -5714,9 +5735,9 @@ var ao = {
|
|
|
5714
5735
|
onDrop: (t) => A(t, parseInt(e.id.split("-")[1]) + 1)
|
|
5715
5736
|
}, [s("div", is, [s("span", as, R(n.placeholderText), 1)])], 40, rs)) : (k(), o("div", {
|
|
5716
5737
|
key: 2,
|
|
5717
|
-
class: b(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!j(e) && N.value ? "pv-
|
|
5738
|
+
class: b(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!j(e) && N.value ? "pv-sortable-list-option-disabled" : "", l(e) ? "pv-sortable-locked" : ""]]),
|
|
5718
5739
|
style: S(I(e))
|
|
5719
|
-
}, [s("div", { class: b(["pv-flex pv-full-width pv-
|
|
5740
|
+
}, [s("div", { class: b(["pv-flex pv-full-width pv-sortable-list-option", { "pv-sortable-list-option-locked": l(e) }]) }, [
|
|
5720
5741
|
u(Q, {
|
|
5721
5742
|
class: "pv-text-tertiary",
|
|
5722
5743
|
name: l(e) ? "lock" : "reorder"
|
|
@@ -5789,7 +5810,7 @@ var ao = {
|
|
|
5789
5810
|
}), r;
|
|
5790
5811
|
} }), ps = ["data-style"], ms = ["data-testid", "aria-current"], hs = {
|
|
5791
5812
|
key: 0,
|
|
5792
|
-
class: "dots-button pv-
|
|
5813
|
+
class: "dots-button pv-text-subdued",
|
|
5793
5814
|
disabled: ""
|
|
5794
5815
|
}, gs = ["onClick"], _s = /* @__PURE__ */ Je(/* @__PURE__ */ d({
|
|
5795
5816
|
__name: "PvPagination",
|
|
@@ -5840,7 +5861,7 @@ var ao = {
|
|
|
5840
5861
|
}, null, 8, ["disabled"])])
|
|
5841
5862
|
], 8, ps));
|
|
5842
5863
|
}
|
|
5843
|
-
}), [["__scopeId", "data-v-
|
|
5864
|
+
}), [["__scopeId", "data-v-92e78cd3"]]), vs = ["for"], ys = [
|
|
5844
5865
|
"checked",
|
|
5845
5866
|
"type",
|
|
5846
5867
|
"value",
|
|
@@ -5905,7 +5926,7 @@ var ao = {
|
|
|
5905
5926
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5906
5927
|
"data-testid": "pv-side-panel-left",
|
|
5907
5928
|
"data-layout": "left-sidebar"
|
|
5908
|
-
}, [e.resizableLeftSidebar ? (k(), i(
|
|
5929
|
+
}, [e.resizableLeftSidebar ? (k(), i(Mi, {
|
|
5909
5930
|
key: 0,
|
|
5910
5931
|
size: t.value,
|
|
5911
5932
|
"onUpdate:size": c[0] ||= (e) => t.value = e,
|
|
@@ -5930,7 +5951,7 @@ var ao = {
|
|
|
5930
5951
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5931
5952
|
"data-testid": "pv-side-panel-right",
|
|
5932
5953
|
"data-layout": "right-sidebar"
|
|
5933
|
-
}, [e.resizableRightSidebar ? (k(), i(
|
|
5954
|
+
}, [e.resizableRightSidebar ? (k(), i(Mi, {
|
|
5934
5955
|
key: 0,
|
|
5935
5956
|
size: n.value,
|
|
5936
5957
|
"onUpdate:size": c[1] ||= (e) => n.value = e,
|
|
@@ -5992,7 +6013,7 @@ var ao = {
|
|
|
5992
6013
|
class: "pv-split-pane",
|
|
5993
6014
|
"data-pv-split-pane-direction": e.direction,
|
|
5994
6015
|
"data-testid": "pv-split-pane"
|
|
5995
|
-
}, [s("div", Ds, [s("div", Os, [N(t.$slots, "start")]), u(
|
|
6016
|
+
}, [s("div", Ds, [s("div", Os, [N(t.$slots, "start")]), u(Mi, {
|
|
5996
6017
|
size: i.value,
|
|
5997
6018
|
"onUpdate:size": n[0] ||= (e) => i.value = e,
|
|
5998
6019
|
ariaLabel: e.ariaLabel,
|
|
@@ -6364,6 +6385,7 @@ var ao = {
|
|
|
6364
6385
|
e.lowerLabel ? (k(), o("p", {
|
|
6365
6386
|
key: 1,
|
|
6366
6387
|
"data-testid": "pv-input-lower-label",
|
|
6388
|
+
style: { "margin-left": "12px" },
|
|
6367
6389
|
class: b(["pv-text-body-xs", {
|
|
6368
6390
|
"pv-text-red": e.error,
|
|
6369
6391
|
"pv-text-subdued": !e.error
|
|
@@ -7212,7 +7234,7 @@ var ao = {
|
|
|
7212
7234
|
active: ie.value,
|
|
7213
7235
|
level: e.level
|
|
7214
7236
|
}, {
|
|
7215
|
-
default: K(() => [ne.value ? (k(), i(
|
|
7237
|
+
default: K(() => [ne.value ? (k(), i(pi, {
|
|
7216
7238
|
key: 0,
|
|
7217
7239
|
modelValue: f.value,
|
|
7218
7240
|
"onUpdate:modelValue": n[3] ||= (e) => f.value = e,
|
|
@@ -9234,7 +9256,7 @@ var ao = {
|
|
|
9234
9256
|
}, null, 8, ["disabled"])])) : a("", !0),
|
|
9235
9257
|
e.filter.filterHeaderRenderer ? (k(), i(F(e.filter.filterHeaderRenderer), x(v({ key: 2 }, Ce.value)), null, 16)) : a("", !0)
|
|
9236
9258
|
])) : a("", !0),
|
|
9237
|
-
e.filter.hideSearch ? a("", !0) : (k(), i(
|
|
9259
|
+
e.filter.hideSearch ? a("", !0) : (k(), i(vi, {
|
|
9238
9260
|
key: 1,
|
|
9239
9261
|
modelValue: g.value,
|
|
9240
9262
|
"onUpdate:modelValue": r[0] ||= (e) => g.value = e,
|
|
@@ -10813,7 +10835,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10813
10835
|
onClick: r[0] ||= (e) => d.value = !0
|
|
10814
10836
|
}))]),
|
|
10815
10837
|
s("div", Cp, [q(s("div", wp, [
|
|
10816
|
-
!e.readOnly && V(_).length ? (k(), o("section", Tp, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Ep, [(k(!0), o(t, null, M(V(_), (e) => (k(), i(
|
|
10838
|
+
!e.readOnly && V(_).length ? (k(), o("section", Tp, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Ep, [(k(!0), o(t, null, M(V(_), (e) => (k(), i(di, {
|
|
10817
10839
|
key: V(C)(e),
|
|
10818
10840
|
icon: e.icon,
|
|
10819
10841
|
"icon-classes": e.iconClasses,
|
|
@@ -10838,7 +10860,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10838
10860
|
"category-order",
|
|
10839
10861
|
"filters"
|
|
10840
10862
|
]),
|
|
10841
|
-
e.enableFilterSearch && V(p).length ? (k(), o("div", Dp, [u(
|
|
10863
|
+
e.enableFilterSearch && V(p).length ? (k(), o("div", Dp, [u(vi, {
|
|
10842
10864
|
modelValue: z.value,
|
|
10843
10865
|
"onUpdate:modelValue": r[2] ||= (e) => z.value = e,
|
|
10844
10866
|
placeholder: e.filterSearchPlaceholder
|
|
@@ -11280,7 +11302,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11280
11302
|
"right-counter-badge",
|
|
11281
11303
|
"value"
|
|
11282
11304
|
]))), 128))]), s("div", Wp, [
|
|
11283
|
-
u(
|
|
11305
|
+
u(vi, {
|
|
11284
11306
|
modelValue: E.value,
|
|
11285
11307
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
11286
11308
|
class: "pv-full-width",
|
|
@@ -11863,10 +11885,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11863
11885
|
}), xm = {
|
|
11864
11886
|
key: 0,
|
|
11865
11887
|
class: "sidebar-additional-header"
|
|
11866
|
-
}, Sm = { class: "sidebar-header-content pv-full-width" },
|
|
11867
|
-
key: 0,
|
|
11868
|
-
class: "pv-sidebar-nav-header"
|
|
11869
|
-
}, wm = ["aria-label", "aria-expanded"], Tm = {
|
|
11888
|
+
}, Sm = ["data-sidebar-collapsed"], Cm = { class: "sidebar-header-content pv-full-width" }, wm = ["aria-label", "aria-expanded"], Tm = {
|
|
11870
11889
|
class: "pv-flex",
|
|
11871
11890
|
style: { "min-width": "0" }
|
|
11872
11891
|
}, Em = {
|
|
@@ -11875,7 +11894,11 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11875
11894
|
"border-radius": "4px",
|
|
11876
11895
|
"flex-shrink": "0"
|
|
11877
11896
|
}
|
|
11878
|
-
}, Dm = ["src"], Om = { key: 1 }, km = [
|
|
11897
|
+
}, Dm = ["src"], Om = { key: 1 }, km = [
|
|
11898
|
+
"data-sidebar-collapsed",
|
|
11899
|
+
"data-sidebar-expanding",
|
|
11900
|
+
"title"
|
|
11901
|
+
], Am = {
|
|
11879
11902
|
class: "pv-popover",
|
|
11880
11903
|
style: {
|
|
11881
11904
|
width: "fit-content",
|
|
@@ -11890,69 +11913,61 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11890
11913
|
}, Mm = ["data-active"], Nm = ["href", "data-org-value"], Pm = {
|
|
11891
11914
|
class: "pv-avatar-xs",
|
|
11892
11915
|
style: { "border-radius": "4px" }
|
|
11893
|
-
}, Fm = ["src"], Im = { key: 1 }, Lm = ["title"], Rm = ["data-active"], zm = ["href", "data-org-value"], Bm = ["title"], Vm = {
|
|
11916
|
+
}, Fm = ["src"], Im = { key: 1 }, Lm = ["title"], Rm = ["data-active"], zm = ["href", "data-org-value"], Bm = ["title"], Vm = { key: 0 }, Hm = {
|
|
11894
11917
|
key: 1,
|
|
11895
11918
|
role: "list",
|
|
11896
11919
|
class: "pv-full-width pv-flow",
|
|
11897
11920
|
style: { "--flow-size": "0.25rem" }
|
|
11898
|
-
},
|
|
11921
|
+
}, Um = {
|
|
11899
11922
|
key: 0,
|
|
11900
11923
|
class: "pv-sidebar-nav-separator",
|
|
11901
11924
|
"aria-hidden": "true"
|
|
11902
|
-
}, Gm = {
|
|
11903
|
-
class: "pv-flex pv-space-between pv-full-width",
|
|
11904
|
-
"data-sidebar-expanded-content": "",
|
|
11905
|
-
style: { "flex-wrap": "wrap" }
|
|
11906
|
-
}, Km = {
|
|
11925
|
+
}, Wm = ["data-sidebar-collapsed"], Gm = {
|
|
11907
11926
|
key: 0,
|
|
11908
11927
|
class: "pv-tag-purple pv-tag-sm"
|
|
11909
|
-
},
|
|
11928
|
+
}, Km = ["onClick", "onKeydown"], qm = [
|
|
11910
11929
|
"href",
|
|
11911
11930
|
"aria-current",
|
|
11912
11931
|
"title"
|
|
11913
|
-
], Ym = {
|
|
11914
|
-
class: "pv-flex pv-space-between pv-full-width",
|
|
11915
|
-
"data-sidebar-expanded-content": "",
|
|
11916
|
-
style: { "flex-wrap": "wrap" }
|
|
11917
|
-
}, Xm = {
|
|
11932
|
+
], Jm = ["data-sidebar-collapsed"], Ym = {
|
|
11918
11933
|
key: 0,
|
|
11919
11934
|
class: "pv-tag-purple pv-tag-sm"
|
|
11920
|
-
},
|
|
11935
|
+
}, Xm = {
|
|
11921
11936
|
class: "pv-popover",
|
|
11922
11937
|
style: { "--position": "static" }
|
|
11923
|
-
},
|
|
11938
|
+
}, Zm = {
|
|
11924
11939
|
role: "list",
|
|
11925
11940
|
class: "pv-popover-list"
|
|
11926
|
-
},
|
|
11941
|
+
}, Qm = ["data-active"], $m = ["href"], eh = {
|
|
11927
11942
|
key: 0,
|
|
11928
11943
|
class: "pv-tag-purple pv-tag-sm"
|
|
11929
|
-
},
|
|
11944
|
+
}, th = ["onClick", "onAuxclick"], nh = ["data-sidebar-collapsed"], rh = ["data-sidebar-collapsed"], ih = [
|
|
11930
11945
|
"href",
|
|
11931
11946
|
"role",
|
|
11932
11947
|
"tabindex",
|
|
11933
11948
|
"aria-current",
|
|
11934
11949
|
"aria-expanded",
|
|
11935
11950
|
"title"
|
|
11936
|
-
],
|
|
11951
|
+
], ah = {
|
|
11937
11952
|
class: "pv-flex pv-space-between pv-full-width",
|
|
11938
11953
|
style: { "flex-wrap": "wrap" }
|
|
11939
|
-
},
|
|
11954
|
+
}, oh = {
|
|
11940
11955
|
key: 0,
|
|
11941
11956
|
class: "pv-tag-purple pv-tag-sm"
|
|
11942
|
-
},
|
|
11957
|
+
}, sh = [
|
|
11943
11958
|
"href",
|
|
11944
11959
|
"aria-current",
|
|
11945
11960
|
"title"
|
|
11946
|
-
],
|
|
11961
|
+
], ch = {
|
|
11947
11962
|
class: "pv-flex pv-space-between pv-full-width",
|
|
11948
11963
|
style: { "flex-wrap": "wrap" }
|
|
11949
|
-
},
|
|
11964
|
+
}, lh = {
|
|
11950
11965
|
key: 0,
|
|
11951
11966
|
class: "pv-tag-purple pv-tag-sm"
|
|
11952
|
-
},
|
|
11967
|
+
}, uh = {
|
|
11953
11968
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
11954
11969
|
style: { "--bottom": "0" }
|
|
11955
|
-
},
|
|
11970
|
+
}, dh = ["aria-expanded"], fh = ["data-sidebar-collapsed"], ph = { class: "pv-popover pv-text-default pv-text-body-md" }, mh = [
|
|
11956
11971
|
"aria-label",
|
|
11957
11972
|
"aria-expanded",
|
|
11958
11973
|
"title"
|
|
@@ -11962,10 +11977,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11962
11977
|
"border-radius": "50%",
|
|
11963
11978
|
"flex-shrink": "0"
|
|
11964
11979
|
}
|
|
11965
|
-
}, gh = ["src"], _h = { key: 1 }, vh = {
|
|
11966
|
-
class: "pv-truncate",
|
|
11967
|
-
"data-sidebar-expanded-content": ""
|
|
11968
|
-
}, yh = {
|
|
11980
|
+
}, gh = ["src"], _h = { key: 1 }, vh = ["data-sidebar-collapsed"], yh = {
|
|
11969
11981
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
11970
11982
|
style: { "--height": "750px" }
|
|
11971
11983
|
}, bh = { class: "content-panel" }, xh = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Sh = /* @__PURE__ */ d({
|
|
@@ -12040,23 +12052,23 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12040
12052
|
fm(e) && (q.value[e.value] = !0);
|
|
12041
12053
|
});
|
|
12042
12054
|
});
|
|
12043
|
-
let J = H(e, "modelValue"), Y = j(!1), le =
|
|
12044
|
-
|
|
12055
|
+
let J = H(e, "modelValue"), Y = j(!1), le = r(() => !J.value && Y.value), ue = n, fe = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
|
|
12056
|
+
fe.value = !1, D.value = {}, pe.value = {}, X.value = !1, Z.value = !1;
|
|
12045
12057
|
};
|
|
12046
|
-
G(
|
|
12047
|
-
e && (D.value = {},
|
|
12048
|
-
}), G(fe, (e) => {
|
|
12049
|
-
e && (ue.value = !1, D.value = {}, X.value = !1);
|
|
12058
|
+
G(fe, (e) => {
|
|
12059
|
+
e && (D.value = {}, X.value = !1, Z.value = !1);
|
|
12050
12060
|
}), G(X, (e) => {
|
|
12051
|
-
e && (
|
|
12061
|
+
e && (fe.value = !1, D.value = {}, Z.value = !1);
|
|
12062
|
+
}), G(Z, (e) => {
|
|
12063
|
+
e && (fe.value = !1, D.value = {}, X.value = !1);
|
|
12052
12064
|
}), G(J, () => {
|
|
12053
|
-
|
|
12065
|
+
me(), Y.value = !0;
|
|
12054
12066
|
});
|
|
12055
|
-
let
|
|
12056
|
-
J.value = !J.value,
|
|
12057
|
-
},
|
|
12067
|
+
let he = () => {
|
|
12068
|
+
J.value = !J.value, ue("change", { collapsed: J.value });
|
|
12069
|
+
}, ge = (e) => {
|
|
12058
12070
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (Y.value = !1);
|
|
12059
|
-
},
|
|
12071
|
+
}, _e = (e) => e.some(fm), ve = (e, t) => {
|
|
12060
12072
|
if (t.url) {
|
|
12061
12073
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
12062
12074
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -12072,15 +12084,21 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12072
12084
|
"is-transitioning": Y.value
|
|
12073
12085
|
}]]),
|
|
12074
12086
|
style: S(z.value),
|
|
12075
|
-
onTransitionend:
|
|
12087
|
+
onTransitionend: ge
|
|
12076
12088
|
}, [
|
|
12077
12089
|
s("div", {
|
|
12078
12090
|
ref_key: "sidebarPanel",
|
|
12079
12091
|
ref: E,
|
|
12080
12092
|
class: "sidebar-panel"
|
|
12081
|
-
}, [s("div", null, [V(h) ? (k(), o("div", xm, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
12082
|
-
|
|
12083
|
-
"
|
|
12093
|
+
}, [s("div", null, [V(h) ? (k(), o("div", xm, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
12094
|
+
class: b(["sidebar-header", [{ "pv-border-bottom": J.value }]]),
|
|
12095
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12096
|
+
}, [s("div", Cm, [e.organizations && e.organizations.length ? (k(), o("div", {
|
|
12097
|
+
key: 0,
|
|
12098
|
+
class: b(["pv-sidebar-nav-header", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
12099
|
+
}, [u(lr, {
|
|
12100
|
+
modelValue: X.value,
|
|
12101
|
+
"onUpdate:modelValue": r[0] ||= (e) => X.value = e,
|
|
12084
12102
|
position: J.value ? "right-top" : "bottom-left",
|
|
12085
12103
|
"use-teleport": !!w.value,
|
|
12086
12104
|
"teleport-location": w.value ?? "body",
|
|
@@ -12088,7 +12106,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12088
12106
|
}, {
|
|
12089
12107
|
trigger: K(() => [u(dr, {
|
|
12090
12108
|
description: se.value?.label,
|
|
12091
|
-
disabled: !J.value || Y.value ||
|
|
12109
|
+
disabled: !J.value || Y.value || X.value,
|
|
12092
12110
|
variant: "white",
|
|
12093
12111
|
position: "center-right",
|
|
12094
12112
|
delay: 250,
|
|
@@ -12100,10 +12118,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12100
12118
|
}, {
|
|
12101
12119
|
trigger: K(() => [s("button", {
|
|
12102
12120
|
type: "button",
|
|
12103
|
-
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
12121
|
+
class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": J.value }]),
|
|
12104
12122
|
"data-testid": "pv-sidebar-org-switcher",
|
|
12105
12123
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
12106
|
-
"aria-expanded":
|
|
12124
|
+
"aria-expanded": X.value
|
|
12107
12125
|
}, [s("div", Tm, [s("span", Em, [se.value?.avatarUrl ? (k(), o("img", {
|
|
12108
12126
|
key: 0,
|
|
12109
12127
|
src: se.value.avatarUrl,
|
|
@@ -12111,12 +12129,16 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12111
12129
|
}, null, 8, Dm)) : (k(), o("span", Om, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
12112
12130
|
class: "pv-text-title-lg pv-truncate",
|
|
12113
12131
|
"data-sidebar-expanded-content": "",
|
|
12132
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12133
|
+
"data-sidebar-expanding": le.value || void 0,
|
|
12114
12134
|
title: se.value?.label
|
|
12115
12135
|
}, R(se.value?.label), 9, km)]), u(Q, {
|
|
12116
12136
|
name: "chevron-down",
|
|
12117
12137
|
class: "pv-icon-16",
|
|
12118
|
-
"data-sidebar-expanded-content": ""
|
|
12119
|
-
|
|
12138
|
+
"data-sidebar-expanded-content": "",
|
|
12139
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12140
|
+
"data-sidebar-expanding": le.value || void 0
|
|
12141
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, wm)]),
|
|
12120
12142
|
_: 1
|
|
12121
12143
|
}, 8, [
|
|
12122
12144
|
"description",
|
|
@@ -12156,7 +12178,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12156
12178
|
"position",
|
|
12157
12179
|
"use-teleport",
|
|
12158
12180
|
"teleport-location"
|
|
12159
|
-
])])) : a("", !0)]), e.disableToggle ? a("", !0) : (k(), i(dr, {
|
|
12181
|
+
])], 2)) : a("", !0)]), e.disableToggle ? a("", !0) : (k(), i(dr, {
|
|
12160
12182
|
key: 0,
|
|
12161
12183
|
variant: "white",
|
|
12162
12184
|
position: "center-right",
|
|
@@ -12164,16 +12186,23 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12164
12186
|
}, {
|
|
12165
12187
|
trigger: K(() => [u($, {
|
|
12166
12188
|
class: "sidebar-toggle",
|
|
12189
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12190
|
+
"data-sidebar-expanding": le.value || void 0,
|
|
12167
12191
|
"left-icon": J.value ? "panel-left-open" : "panel-left-close",
|
|
12168
12192
|
"aria-label": J.value ? "Open sidebar" : "Close sidebar",
|
|
12169
12193
|
variant: "ghost",
|
|
12170
|
-
onClick:
|
|
12171
|
-
}, null, 8, [
|
|
12194
|
+
onClick: he
|
|
12195
|
+
}, null, 8, [
|
|
12196
|
+
"data-sidebar-collapsed",
|
|
12197
|
+
"data-sidebar-expanding",
|
|
12198
|
+
"left-icon",
|
|
12199
|
+
"aria-label"
|
|
12200
|
+
])]),
|
|
12172
12201
|
content: K(() => [l(R(J.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
12173
12202
|
_: 1
|
|
12174
|
-
}))],
|
|
12175
|
-
V(m) ? (k(), o("div",
|
|
12176
|
-
e.navItems && e.navItems.length ? (k(), o("ul",
|
|
12203
|
+
}))], 10, Sm)]), s("div", { class: b(["pv-sidebar-nav", e.variant && `pv-sidebar-surface-${e.variant}`]) }, [
|
|
12204
|
+
V(m) ? (k(), o("div", Vm, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
12205
|
+
e.navItems && e.navItems.length ? (k(), o("ul", Hm, [(k(!0), o(t, null, M(e.navItems, (e) => (k(), o(t, { key: e.value }, [e.separatorAtTop ? (k(), o("li", Um)) : a("", !0), s("li", null, [ee(e) ? (k(), i(lr, {
|
|
12177
12206
|
key: 0,
|
|
12178
12207
|
modelValue: D.value[e.value],
|
|
12179
12208
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -12189,7 +12218,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12189
12218
|
trigger: K(() => [(k(), i(F(e.url ? "a" : "button"), v({
|
|
12190
12219
|
ref_for: !0,
|
|
12191
12220
|
ref: (t) => te(V(P), e.value, t),
|
|
12192
|
-
class: "pv-nav-list-item",
|
|
12221
|
+
class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
|
|
12193
12222
|
href: e.url,
|
|
12194
12223
|
type: e.url ? void 0 : "button"
|
|
12195
12224
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
@@ -12203,9 +12232,15 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12203
12232
|
key: 0,
|
|
12204
12233
|
name: e.icon,
|
|
12205
12234
|
class: "pv-nav-icon"
|
|
12206
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12235
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12236
|
+
class: "pv-flex pv-space-between pv-full-width",
|
|
12237
|
+
"data-sidebar-expanded-content": "",
|
|
12238
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12239
|
+
style: { "flex-wrap": "wrap" }
|
|
12240
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Gm, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Wm)]),
|
|
12207
12241
|
_: 2
|
|
12208
12242
|
}, 1040, [
|
|
12243
|
+
"class",
|
|
12209
12244
|
"href",
|
|
12210
12245
|
"type",
|
|
12211
12246
|
"aria-current",
|
|
@@ -12220,7 +12255,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12220
12255
|
class: "pv-sidebar-hover-panel",
|
|
12221
12256
|
onClick: (t) => ie(t, e.value),
|
|
12222
12257
|
onKeydown: (t) => ae(t, e.value)
|
|
12223
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
12258
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, Km)]),
|
|
12224
12259
|
_: 2
|
|
12225
12260
|
}, 1032, [
|
|
12226
12261
|
"modelValue",
|
|
@@ -12240,7 +12275,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12240
12275
|
"css-custom-properties": { width: "100%" }
|
|
12241
12276
|
}, {
|
|
12242
12277
|
trigger: K(() => [s("a", v({
|
|
12243
|
-
class: "pv-nav-list-item",
|
|
12278
|
+
class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
|
|
12244
12279
|
href: e.url
|
|
12245
12280
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
12246
12281
|
"aria-current": e.active ? "page" : void 0,
|
|
@@ -12249,8 +12284,13 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12249
12284
|
key: 0,
|
|
12250
12285
|
name: e.icon,
|
|
12251
12286
|
class: "pv-nav-icon"
|
|
12252
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12253
|
-
|
|
12287
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12288
|
+
class: "pv-flex pv-space-between pv-full-width",
|
|
12289
|
+
"data-sidebar-expanded-content": "",
|
|
12290
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12291
|
+
style: { "flex-wrap": "wrap" }
|
|
12292
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", Ym, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, Jm)], 16, qm)]),
|
|
12293
|
+
content: K(() => [s("div", Xm, [s("ul", Zm, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", eh, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, $m)], 8, Qm)])])]),
|
|
12254
12294
|
_: 2
|
|
12255
12295
|
}, 1032, [
|
|
12256
12296
|
"use-teleport",
|
|
@@ -12267,27 +12307,36 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12267
12307
|
disabled: !J.value,
|
|
12268
12308
|
"css-custom-properties": { width: "100%" }
|
|
12269
12309
|
}, {
|
|
12270
|
-
trigger: K(() => [u(
|
|
12310
|
+
trigger: K(() => [u(pi, {
|
|
12271
12311
|
modelValue: q.value[e.value],
|
|
12272
12312
|
"onUpdate:modelValue": (t) => q.value[e.value] = t,
|
|
12273
12313
|
"default-open": V(fm)(e),
|
|
12274
|
-
"summary-attrs": {
|
|
12314
|
+
"summary-attrs": {
|
|
12315
|
+
class: J.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
12316
|
+
"aria-current": _e(e.children) && J.value ? "page" : void 0
|
|
12317
|
+
},
|
|
12275
12318
|
"enable-trigger-slot": "",
|
|
12276
12319
|
"enable-trigger-full-width": ""
|
|
12277
12320
|
}, {
|
|
12278
12321
|
trigger: K(() => [s("div", {
|
|
12279
12322
|
class: "pv-flex",
|
|
12280
|
-
onClick: (t) => e.children.length === 1 &&
|
|
12281
|
-
onAuxclick: (t) => e.children.length === 1 &&
|
|
12323
|
+
onClick: (t) => e.children.length === 1 && ve(t, e.children[0]),
|
|
12324
|
+
onAuxclick: (t) => e.children.length === 1 && ve(t, e.children[0])
|
|
12282
12325
|
}, [e.icon ? (k(), i(Q, {
|
|
12283
12326
|
key: 0,
|
|
12284
12327
|
name: e.icon,
|
|
12285
12328
|
class: "pv-nav-icon"
|
|
12286
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12287
|
-
|
|
12329
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12330
|
+
"data-sidebar-expanded-content": "",
|
|
12331
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12332
|
+
}, R(e.label), 9, nh)], 40, th)]),
|
|
12333
|
+
default: K(() => [s("div", {
|
|
12334
|
+
class: "pv-sidebar-nav-nested",
|
|
12335
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12336
|
+
}, [(k(!0), o(t, null, M(e.children, (e) => (k(), o(t, { key: e.value }, [e.children?.length ? (k(), i(lr, {
|
|
12288
12337
|
key: 0,
|
|
12289
|
-
modelValue:
|
|
12290
|
-
"onUpdate:modelValue": (t) =>
|
|
12338
|
+
modelValue: pe.value[e.value],
|
|
12339
|
+
"onUpdate:modelValue": (t) => pe.value[e.value] = t,
|
|
12291
12340
|
"show-on-hover": "",
|
|
12292
12341
|
"enable-group-sync": "",
|
|
12293
12342
|
"enable-click-toggle": "",
|
|
@@ -12303,12 +12352,12 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12303
12352
|
tabindex: e.url ? void 0 : 0,
|
|
12304
12353
|
"aria-current": V(fm)(e) ? "page" : void 0,
|
|
12305
12354
|
"aria-haspopup": "true",
|
|
12306
|
-
"aria-expanded": !!
|
|
12355
|
+
"aria-expanded": !!pe.value[e.value],
|
|
12307
12356
|
title: e.label
|
|
12308
|
-
}), [s("span",
|
|
12357
|
+
}), [s("span", ah, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", oh, R(e.badge.toUpperCase()), 1)) : a("", !0)]), u(Q, {
|
|
12309
12358
|
name: "chevron-right",
|
|
12310
12359
|
class: "pv-icon-16"
|
|
12311
|
-
})], 16,
|
|
12360
|
+
})], 16, ih)]),
|
|
12312
12361
|
content: K(() => [u(bm, {
|
|
12313
12362
|
items: e.children,
|
|
12314
12363
|
disabled: J.value
|
|
@@ -12326,7 +12375,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12326
12375
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
12327
12376
|
"aria-current": e.active ? "page" : void 0,
|
|
12328
12377
|
title: e.label
|
|
12329
|
-
}), [s("span",
|
|
12378
|
+
}), [s("span", ch, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", lh, R(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, sh))], 64))), 128))], 8, rh)]),
|
|
12330
12379
|
_: 2
|
|
12331
12380
|
}, 1032, [
|
|
12332
12381
|
"modelValue",
|
|
@@ -12344,10 +12393,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12344
12393
|
"teleport-location",
|
|
12345
12394
|
"disabled"
|
|
12346
12395
|
]))])], 64))), 128))])) : a("", !0),
|
|
12347
|
-
s("div",
|
|
12396
|
+
s("div", uh, [V(g) ? (k(), i(lr, {
|
|
12348
12397
|
key: 0,
|
|
12349
|
-
modelValue:
|
|
12350
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
12398
|
+
modelValue: fe.value,
|
|
12399
|
+
"onUpdate:modelValue": r[1] ||= (e) => fe.value = e,
|
|
12351
12400
|
position: J.value ? "right-bottom" : "top-left",
|
|
12352
12401
|
"show-on-hover": J.value,
|
|
12353
12402
|
"enable-group-sync": "",
|
|
@@ -12359,14 +12408,17 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12359
12408
|
}, {
|
|
12360
12409
|
trigger: K(() => [s("button", {
|
|
12361
12410
|
type: "button",
|
|
12362
|
-
class: "pv-nav-list-item",
|
|
12411
|
+
class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
|
|
12363
12412
|
"aria-label": "Help",
|
|
12364
|
-
"aria-expanded":
|
|
12413
|
+
"aria-expanded": fe.value,
|
|
12365
12414
|
title: "Help"
|
|
12366
12415
|
}, [u(Q, {
|
|
12367
12416
|
name: "help-circle",
|
|
12368
12417
|
class: "pv-icon-20 pv-nav-icon"
|
|
12369
|
-
}),
|
|
12418
|
+
}), s("span", {
|
|
12419
|
+
"data-sidebar-expanded-content": "",
|
|
12420
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12421
|
+
}, "Help", 8, fh)], 10, dh)]),
|
|
12370
12422
|
content: K(() => [s("div", ph, [N(n.$slots, "sidebar-help-content")])]),
|
|
12371
12423
|
_: 3
|
|
12372
12424
|
}, 8, [
|
|
@@ -12377,8 +12429,8 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12377
12429
|
"teleport-location"
|
|
12378
12430
|
])) : a("", !0), V(_) && e.profile ? (k(), i(lr, {
|
|
12379
12431
|
key: 1,
|
|
12380
|
-
modelValue:
|
|
12381
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
12432
|
+
modelValue: Z.value,
|
|
12433
|
+
"onUpdate:modelValue": r[2] ||= (e) => Z.value = e,
|
|
12382
12434
|
position: J.value ? "right-bottom" : "top-left",
|
|
12383
12435
|
"use-teleport": !!w.value,
|
|
12384
12436
|
"teleport-location": w.value ?? "body",
|
|
@@ -12387,16 +12439,20 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12387
12439
|
}, {
|
|
12388
12440
|
trigger: K(() => [s("button", {
|
|
12389
12441
|
type: "button",
|
|
12390
|
-
class: "pv-nav-list-item",
|
|
12442
|
+
class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
|
|
12391
12443
|
"data-testid": "pv-sidebar-profile-trigger",
|
|
12392
12444
|
"aria-label": e.profile.name,
|
|
12393
|
-
"aria-expanded":
|
|
12445
|
+
"aria-expanded": Z.value,
|
|
12394
12446
|
title: e.profile.name
|
|
12395
12447
|
}, [s("span", hh, [e.profile.avatarUrl ? (k(), o("img", {
|
|
12396
12448
|
key: 0,
|
|
12397
12449
|
src: e.profile.avatarUrl,
|
|
12398
12450
|
alt: ""
|
|
12399
|
-
}, null, 8, gh)) : (k(), o("span", _h, R(e.profile.name.slice(0, 1)), 1))]), s("span",
|
|
12451
|
+
}, null, 8, gh)) : (k(), o("span", _h, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
12452
|
+
class: "pv-truncate",
|
|
12453
|
+
"data-sidebar-expanded-content": "",
|
|
12454
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12455
|
+
}, R(e.profile.name), 9, vh)], 10, mh)]),
|
|
12400
12456
|
content: K(() => [s("div", yh, [N(n.$slots, "sidebar-profile-content")])]),
|
|
12401
12457
|
_: 3
|
|
12402
12458
|
}, 8, [
|
|
@@ -12405,13 +12461,13 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12405
12461
|
"use-teleport",
|
|
12406
12462
|
"teleport-location"
|
|
12407
12463
|
])) : a("", !0)])
|
|
12408
|
-
])], 512),
|
|
12464
|
+
], 2)], 512),
|
|
12409
12465
|
s("div", bh, [N(n.$slots, "default")]),
|
|
12410
12466
|
s("div", {
|
|
12411
12467
|
ref_key: "popoverTeleportTarget",
|
|
12412
12468
|
ref: w,
|
|
12413
|
-
class: "pv-sidebar-popover-portal"
|
|
12414
|
-
}, null,
|
|
12469
|
+
class: b(["pv-sidebar-popover-portal", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
12470
|
+
}, null, 2)
|
|
12415
12471
|
], 38));
|
|
12416
12472
|
}
|
|
12417
12473
|
}), Ch = (e) => !!(e.active || e.children?.some(Ch)), wh = {
|
|
@@ -12494,10 +12550,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12494
12550
|
}), Mh = {
|
|
12495
12551
|
key: 0,
|
|
12496
12552
|
class: "sidebar-additional-header"
|
|
12497
|
-
}, Nh = { class: "sidebar-header-content pv-full-width" },
|
|
12498
|
-
key: 0,
|
|
12499
|
-
class: "pv-sidebar-nav-header"
|
|
12500
|
-
}, Fh = ["aria-label", "aria-expanded"], Ih = {
|
|
12553
|
+
}, Nh = ["data-sidebar-collapsed"], Ph = { class: "sidebar-header-content pv-full-width" }, Fh = ["aria-label", "aria-expanded"], Ih = {
|
|
12501
12554
|
class: "pv-flex",
|
|
12502
12555
|
style: { "min-width": "0" }
|
|
12503
12556
|
}, Lh = {
|
|
@@ -12506,7 +12559,11 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12506
12559
|
"border-radius": "4px",
|
|
12507
12560
|
"flex-shrink": "0"
|
|
12508
12561
|
}
|
|
12509
|
-
}, Rh = ["src"], zh = { key: 1 }, Bh = [
|
|
12562
|
+
}, Rh = ["src"], zh = { key: 1 }, Bh = [
|
|
12563
|
+
"data-sidebar-collapsed",
|
|
12564
|
+
"data-sidebar-expanding",
|
|
12565
|
+
"title"
|
|
12566
|
+
], Vh = {
|
|
12510
12567
|
class: "pv-popover",
|
|
12511
12568
|
style: {
|
|
12512
12569
|
width: "fit-content",
|
|
@@ -12521,69 +12578,61 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12521
12578
|
}, Uh = ["data-active"], Wh = ["href", "data-org-value"], Gh = {
|
|
12522
12579
|
class: "pv-avatar-xs",
|
|
12523
12580
|
style: { "border-radius": "4px" }
|
|
12524
|
-
}, Kh = ["src"], qh = { key: 1 }, Jh = ["title"], Yh = ["data-active"], Xh = ["href", "data-org-value"], Zh = ["title"], Qh = {
|
|
12581
|
+
}, Kh = ["src"], qh = { key: 1 }, Jh = ["title"], Yh = ["data-active"], Xh = ["href", "data-org-value"], Zh = ["title"], Qh = { key: 0 }, $h = {
|
|
12525
12582
|
key: 1,
|
|
12526
12583
|
role: "list",
|
|
12527
12584
|
class: "pv-full-width pv-flow",
|
|
12528
12585
|
style: { "--flow-size": "0.25rem" }
|
|
12529
|
-
},
|
|
12586
|
+
}, eg = {
|
|
12530
12587
|
key: 0,
|
|
12531
12588
|
class: "pv-sidebar-nav-separator",
|
|
12532
12589
|
"aria-hidden": "true"
|
|
12533
|
-
}, ng = {
|
|
12534
|
-
class: "pv-flex pv-space-between pv-full-width",
|
|
12535
|
-
"data-sidebar-expanded-content": "",
|
|
12536
|
-
style: { "flex-wrap": "wrap" }
|
|
12537
|
-
}, rg = {
|
|
12590
|
+
}, tg = ["data-sidebar-collapsed"], ng = {
|
|
12538
12591
|
key: 0,
|
|
12539
12592
|
class: "pv-tag-purple pv-tag-sm"
|
|
12540
|
-
},
|
|
12593
|
+
}, rg = ["onClick", "onKeydown"], ig = [
|
|
12541
12594
|
"href",
|
|
12542
12595
|
"aria-current",
|
|
12543
12596
|
"title"
|
|
12544
|
-
], og = {
|
|
12545
|
-
class: "pv-flex pv-space-between pv-full-width",
|
|
12546
|
-
"data-sidebar-expanded-content": "",
|
|
12547
|
-
style: { "flex-wrap": "wrap" }
|
|
12548
|
-
}, sg = {
|
|
12597
|
+
], ag = ["data-sidebar-collapsed"], og = {
|
|
12549
12598
|
key: 0,
|
|
12550
12599
|
class: "pv-tag-purple pv-tag-sm"
|
|
12551
|
-
},
|
|
12600
|
+
}, sg = {
|
|
12552
12601
|
class: "pv-popover",
|
|
12553
12602
|
style: { "--position": "static" }
|
|
12554
|
-
},
|
|
12603
|
+
}, cg = {
|
|
12555
12604
|
role: "list",
|
|
12556
12605
|
class: "pv-popover-list"
|
|
12557
|
-
},
|
|
12606
|
+
}, lg = ["data-active"], ug = ["href"], dg = {
|
|
12558
12607
|
key: 0,
|
|
12559
12608
|
class: "pv-tag-purple pv-tag-sm"
|
|
12560
|
-
},
|
|
12609
|
+
}, fg = ["onClick", "onAuxclick"], pg = ["data-sidebar-collapsed"], mg = ["data-sidebar-collapsed"], hg = [
|
|
12561
12610
|
"href",
|
|
12562
12611
|
"role",
|
|
12563
12612
|
"tabindex",
|
|
12564
12613
|
"aria-current",
|
|
12565
12614
|
"aria-expanded",
|
|
12566
12615
|
"title"
|
|
12567
|
-
],
|
|
12616
|
+
], gg = {
|
|
12568
12617
|
class: "pv-flex pv-space-between pv-full-width",
|
|
12569
12618
|
style: { "flex-wrap": "wrap" }
|
|
12570
|
-
},
|
|
12619
|
+
}, _g = {
|
|
12571
12620
|
key: 0,
|
|
12572
12621
|
class: "pv-tag-purple pv-tag-sm"
|
|
12573
|
-
},
|
|
12622
|
+
}, vg = [
|
|
12574
12623
|
"href",
|
|
12575
12624
|
"aria-current",
|
|
12576
12625
|
"title"
|
|
12577
|
-
],
|
|
12626
|
+
], yg = {
|
|
12578
12627
|
class: "pv-flex pv-space-between pv-full-width",
|
|
12579
12628
|
style: { "flex-wrap": "wrap" }
|
|
12580
|
-
},
|
|
12629
|
+
}, bg = {
|
|
12581
12630
|
key: 0,
|
|
12582
12631
|
class: "pv-tag-purple pv-tag-sm"
|
|
12583
|
-
},
|
|
12632
|
+
}, xg = {
|
|
12584
12633
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
12585
12634
|
style: { "--bottom": "0" }
|
|
12586
|
-
},
|
|
12635
|
+
}, Sg = ["aria-expanded"], Cg = ["data-sidebar-collapsed"], wg = { class: "pv-popover pv-text-default pv-text-body-md" }, Tg = [
|
|
12587
12636
|
"aria-label",
|
|
12588
12637
|
"aria-expanded",
|
|
12589
12638
|
"title"
|
|
@@ -12593,10 +12642,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12593
12642
|
"border-radius": "50%",
|
|
12594
12643
|
"flex-shrink": "0"
|
|
12595
12644
|
}
|
|
12596
|
-
}, Dg = ["src"], Og = { key: 1 }, kg = {
|
|
12597
|
-
class: "pv-truncate",
|
|
12598
|
-
"data-sidebar-expanded-content": ""
|
|
12599
|
-
}, Ag = {
|
|
12645
|
+
}, Dg = ["src"], Og = { key: 1 }, kg = ["data-sidebar-collapsed"], Ag = {
|
|
12600
12646
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
12601
12647
|
style: { "--height": "750px" }
|
|
12602
12648
|
}, jg = { class: "content-panel" }, Mg = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Ng = /* @__PURE__ */ d({
|
|
@@ -12671,23 +12717,23 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12671
12717
|
Ch(e) && (q.value[e.value] = !0);
|
|
12672
12718
|
});
|
|
12673
12719
|
});
|
|
12674
|
-
let J = H(e, "modelValue"), Y = j(!1), le =
|
|
12675
|
-
|
|
12720
|
+
let J = H(e, "modelValue"), Y = j(!1), le = r(() => !J.value && Y.value), ue = n, fe = j(!1), X = j(!1), Z = j(!1), pe = j({}), me = () => {
|
|
12721
|
+
fe.value = !1, D.value = {}, pe.value = {}, X.value = !1, Z.value = !1;
|
|
12676
12722
|
};
|
|
12677
|
-
G(
|
|
12678
|
-
e && (D.value = {},
|
|
12679
|
-
}), G(fe, (e) => {
|
|
12680
|
-
e && (ue.value = !1, D.value = {}, X.value = !1);
|
|
12723
|
+
G(fe, (e) => {
|
|
12724
|
+
e && (D.value = {}, X.value = !1, Z.value = !1);
|
|
12681
12725
|
}), G(X, (e) => {
|
|
12682
|
-
e && (
|
|
12726
|
+
e && (fe.value = !1, D.value = {}, Z.value = !1);
|
|
12727
|
+
}), G(Z, (e) => {
|
|
12728
|
+
e && (fe.value = !1, D.value = {}, X.value = !1);
|
|
12683
12729
|
}), G(J, () => {
|
|
12684
|
-
|
|
12730
|
+
me(), Y.value = !0;
|
|
12685
12731
|
});
|
|
12686
|
-
let
|
|
12687
|
-
J.value = !J.value,
|
|
12688
|
-
},
|
|
12732
|
+
let he = () => {
|
|
12733
|
+
J.value = !J.value, ue("change", { collapsed: J.value });
|
|
12734
|
+
}, ge = (e) => {
|
|
12689
12735
|
e.target === e.currentTarget && e.propertyName === "grid-template-columns" && (Y.value = !1);
|
|
12690
|
-
},
|
|
12736
|
+
}, _e = (e) => e.some(Ch), ve = (e, t) => {
|
|
12691
12737
|
if (t.url) {
|
|
12692
12738
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.button === 1) {
|
|
12693
12739
|
window.open(t.url, "_blank", "noopener");
|
|
@@ -12703,15 +12749,21 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12703
12749
|
"is-transitioning": Y.value
|
|
12704
12750
|
}]]),
|
|
12705
12751
|
style: S(z.value),
|
|
12706
|
-
onTransitionend:
|
|
12752
|
+
onTransitionend: ge
|
|
12707
12753
|
}, [
|
|
12708
12754
|
s("div", {
|
|
12709
12755
|
ref_key: "sidebarPanel",
|
|
12710
12756
|
ref: E,
|
|
12711
12757
|
class: "sidebar-panel"
|
|
12712
|
-
}, [s("div", null, [V(h) ? (k(), o("div", Mh, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
12713
|
-
|
|
12714
|
-
"
|
|
12758
|
+
}, [s("div", null, [V(h) ? (k(), o("div", Mh, [N(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", {
|
|
12759
|
+
class: b(["sidebar-header", [{ "pv-border-bottom": J.value }]]),
|
|
12760
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12761
|
+
}, [s("div", Ph, [e.organizations && e.organizations.length ? (k(), o("div", {
|
|
12762
|
+
key: 0,
|
|
12763
|
+
class: b(["pv-sidebar-nav-header", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
12764
|
+
}, [u(lr, {
|
|
12765
|
+
modelValue: X.value,
|
|
12766
|
+
"onUpdate:modelValue": r[0] ||= (e) => X.value = e,
|
|
12715
12767
|
position: J.value ? "right-top" : "bottom-left",
|
|
12716
12768
|
"use-teleport": !!w.value,
|
|
12717
12769
|
"teleport-location": w.value ?? "body",
|
|
@@ -12719,7 +12771,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12719
12771
|
}, {
|
|
12720
12772
|
trigger: K(() => [u(dr, {
|
|
12721
12773
|
description: se.value?.label,
|
|
12722
|
-
disabled: !J.value || Y.value ||
|
|
12774
|
+
disabled: !J.value || Y.value || X.value,
|
|
12723
12775
|
variant: "white",
|
|
12724
12776
|
position: "center-right",
|
|
12725
12777
|
delay: 250,
|
|
@@ -12731,10 +12783,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12731
12783
|
}, {
|
|
12732
12784
|
trigger: K(() => [s("button", {
|
|
12733
12785
|
type: "button",
|
|
12734
|
-
class: "pv-nav-list-item pv-full-width pv-space-between",
|
|
12786
|
+
class: b(["pv-nav-list-item pv-full-width pv-space-between", { "pv-sidebar-item-collapsed": J.value }]),
|
|
12735
12787
|
"data-testid": "pv-sidebar-org-switcher",
|
|
12736
12788
|
"aria-label": `Switch organization: ${se.value?.label}`,
|
|
12737
|
-
"aria-expanded":
|
|
12789
|
+
"aria-expanded": X.value
|
|
12738
12790
|
}, [s("div", Ih, [s("span", Lh, [se.value?.avatarUrl ? (k(), o("img", {
|
|
12739
12791
|
key: 0,
|
|
12740
12792
|
src: se.value.avatarUrl,
|
|
@@ -12742,12 +12794,16 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12742
12794
|
}, null, 8, Rh)) : (k(), o("span", zh, R(se.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
12743
12795
|
class: "pv-text-title-lg pv-truncate",
|
|
12744
12796
|
"data-sidebar-expanded-content": "",
|
|
12797
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12798
|
+
"data-sidebar-expanding": le.value || void 0,
|
|
12745
12799
|
title: se.value?.label
|
|
12746
12800
|
}, R(se.value?.label), 9, Bh)]), u(Q, {
|
|
12747
12801
|
name: "chevron-down",
|
|
12748
12802
|
class: "pv-icon-16",
|
|
12749
|
-
"data-sidebar-expanded-content": ""
|
|
12750
|
-
|
|
12803
|
+
"data-sidebar-expanded-content": "",
|
|
12804
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12805
|
+
"data-sidebar-expanding": le.value || void 0
|
|
12806
|
+
}, null, 8, ["data-sidebar-collapsed", "data-sidebar-expanding"])], 10, Fh)]),
|
|
12751
12807
|
_: 1
|
|
12752
12808
|
}, 8, [
|
|
12753
12809
|
"description",
|
|
@@ -12787,7 +12843,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12787
12843
|
"position",
|
|
12788
12844
|
"use-teleport",
|
|
12789
12845
|
"teleport-location"
|
|
12790
|
-
])])) : a("", !0)]), e.disableToggle ? a("", !0) : (k(), i(dr, {
|
|
12846
|
+
])], 2)) : a("", !0)]), e.disableToggle ? a("", !0) : (k(), i(dr, {
|
|
12791
12847
|
key: 0,
|
|
12792
12848
|
variant: "white",
|
|
12793
12849
|
position: "center-right",
|
|
@@ -12795,16 +12851,23 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12795
12851
|
}, {
|
|
12796
12852
|
trigger: K(() => [u($, {
|
|
12797
12853
|
class: "sidebar-toggle",
|
|
12854
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12855
|
+
"data-sidebar-expanding": le.value || void 0,
|
|
12798
12856
|
"left-icon": J.value ? "panel-left-open" : "panel-left-close",
|
|
12799
12857
|
"aria-label": J.value ? "Open sidebar" : "Close sidebar",
|
|
12800
12858
|
variant: "ghost",
|
|
12801
|
-
onClick:
|
|
12802
|
-
}, null, 8, [
|
|
12859
|
+
onClick: he
|
|
12860
|
+
}, null, 8, [
|
|
12861
|
+
"data-sidebar-collapsed",
|
|
12862
|
+
"data-sidebar-expanding",
|
|
12863
|
+
"left-icon",
|
|
12864
|
+
"aria-label"
|
|
12865
|
+
])]),
|
|
12803
12866
|
content: K(() => [l(R(J.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
12804
12867
|
_: 1
|
|
12805
|
-
}))],
|
|
12806
|
-
V(m) ? (k(), o("div",
|
|
12807
|
-
e.navItems && e.navItems.length ? (k(), o("ul",
|
|
12868
|
+
}))], 10, Nh)]), s("div", { class: b(["pv-sidebar-nav", e.variant && `pv-sidebar-surface-${e.variant}`]) }, [
|
|
12869
|
+
V(m) ? (k(), o("div", Qh, [N(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
12870
|
+
e.navItems && e.navItems.length ? (k(), o("ul", $h, [(k(!0), o(t, null, M(e.navItems, (e) => (k(), o(t, { key: e.value }, [e.separatorAtTop ? (k(), o("li", eg)) : a("", !0), s("li", null, [ee(e) ? (k(), i(lr, {
|
|
12808
12871
|
key: 0,
|
|
12809
12872
|
modelValue: D.value[e.value],
|
|
12810
12873
|
"onUpdate:modelValue": (t) => D.value[e.value] = t,
|
|
@@ -12820,7 +12883,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12820
12883
|
trigger: K(() => [(k(), i(F(e.url ? "a" : "button"), v({
|
|
12821
12884
|
ref_for: !0,
|
|
12822
12885
|
ref: (t) => te(V(P), e.value, t),
|
|
12823
|
-
class: "pv-nav-list-item",
|
|
12886
|
+
class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
|
|
12824
12887
|
href: e.url,
|
|
12825
12888
|
type: e.url ? void 0 : "button"
|
|
12826
12889
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
@@ -12834,9 +12897,15 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12834
12897
|
key: 0,
|
|
12835
12898
|
name: e.icon,
|
|
12836
12899
|
class: "pv-nav-icon"
|
|
12837
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12900
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12901
|
+
class: "pv-flex pv-space-between pv-full-width",
|
|
12902
|
+
"data-sidebar-expanded-content": "",
|
|
12903
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12904
|
+
style: { "flex-wrap": "wrap" }
|
|
12905
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", ng, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, tg)]),
|
|
12838
12906
|
_: 2
|
|
12839
12907
|
}, 1040, [
|
|
12908
|
+
"class",
|
|
12840
12909
|
"href",
|
|
12841
12910
|
"type",
|
|
12842
12911
|
"aria-current",
|
|
@@ -12851,7 +12920,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12851
12920
|
class: "pv-sidebar-hover-panel",
|
|
12852
12921
|
onClick: (t) => ie(t, e.value),
|
|
12853
12922
|
onKeydown: (t) => ae(t, e.value)
|
|
12854
|
-
}, [N(n.$slots, e.hoverPanelSlot)], 40,
|
|
12923
|
+
}, [N(n.$slots, e.hoverPanelSlot)], 40, rg)]),
|
|
12855
12924
|
_: 2
|
|
12856
12925
|
}, 1032, [
|
|
12857
12926
|
"modelValue",
|
|
@@ -12871,7 +12940,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12871
12940
|
"css-custom-properties": { width: "100%" }
|
|
12872
12941
|
}, {
|
|
12873
12942
|
trigger: K(() => [s("a", v({
|
|
12874
|
-
class: "pv-nav-list-item",
|
|
12943
|
+
class: ["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }],
|
|
12875
12944
|
href: e.url
|
|
12876
12945
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
12877
12946
|
"aria-current": e.active ? "page" : void 0,
|
|
@@ -12880,8 +12949,13 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12880
12949
|
key: 0,
|
|
12881
12950
|
name: e.icon,
|
|
12882
12951
|
class: "pv-nav-icon"
|
|
12883
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12884
|
-
|
|
12952
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12953
|
+
class: "pv-flex pv-space-between pv-full-width",
|
|
12954
|
+
"data-sidebar-expanded-content": "",
|
|
12955
|
+
"data-sidebar-collapsed": J.value || void 0,
|
|
12956
|
+
style: { "flex-wrap": "wrap" }
|
|
12957
|
+
}, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", og, R(e.badge.toUpperCase()), 1)) : a("", !0)], 8, ag)], 16, ig)]),
|
|
12958
|
+
content: K(() => [s("div", sg, [s("ul", cg, [s("li", { "data-active": e.active || void 0 }, [s("a", v({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", dg, R(e.badge.toUpperCase()), 1)) : a("", !0)], 16, ug)], 8, lg)])])]),
|
|
12885
12959
|
_: 2
|
|
12886
12960
|
}, 1032, [
|
|
12887
12961
|
"use-teleport",
|
|
@@ -12898,27 +12972,36 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12898
12972
|
disabled: !J.value,
|
|
12899
12973
|
"css-custom-properties": { width: "100%" }
|
|
12900
12974
|
}, {
|
|
12901
|
-
trigger: K(() => [u(
|
|
12975
|
+
trigger: K(() => [u(pi, {
|
|
12902
12976
|
modelValue: q.value[e.value],
|
|
12903
12977
|
"onUpdate:modelValue": (t) => q.value[e.value] = t,
|
|
12904
12978
|
"default-open": V(Ch)(e),
|
|
12905
|
-
"summary-attrs": {
|
|
12979
|
+
"summary-attrs": {
|
|
12980
|
+
class: J.value ? "pv-sidebar-item-collapsed" : void 0,
|
|
12981
|
+
"aria-current": _e(e.children) && J.value ? "page" : void 0
|
|
12982
|
+
},
|
|
12906
12983
|
"enable-trigger-slot": "",
|
|
12907
12984
|
"enable-trigger-full-width": ""
|
|
12908
12985
|
}, {
|
|
12909
12986
|
trigger: K(() => [s("div", {
|
|
12910
12987
|
class: "pv-flex",
|
|
12911
|
-
onClick: (t) => e.children.length === 1 &&
|
|
12912
|
-
onAuxclick: (t) => e.children.length === 1 &&
|
|
12988
|
+
onClick: (t) => e.children.length === 1 && ve(t, e.children[0]),
|
|
12989
|
+
onAuxclick: (t) => e.children.length === 1 && ve(t, e.children[0])
|
|
12913
12990
|
}, [e.icon ? (k(), i(Q, {
|
|
12914
12991
|
key: 0,
|
|
12915
12992
|
name: e.icon,
|
|
12916
12993
|
class: "pv-nav-icon"
|
|
12917
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
12918
|
-
|
|
12994
|
+
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
12995
|
+
"data-sidebar-expanded-content": "",
|
|
12996
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
12997
|
+
}, R(e.label), 9, pg)], 40, fg)]),
|
|
12998
|
+
default: K(() => [s("div", {
|
|
12999
|
+
class: "pv-sidebar-nav-nested",
|
|
13000
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
13001
|
+
}, [(k(!0), o(t, null, M(e.children, (e) => (k(), o(t, { key: e.value }, [e.children?.length ? (k(), i(lr, {
|
|
12919
13002
|
key: 0,
|
|
12920
|
-
modelValue:
|
|
12921
|
-
"onUpdate:modelValue": (t) =>
|
|
13003
|
+
modelValue: pe.value[e.value],
|
|
13004
|
+
"onUpdate:modelValue": (t) => pe.value[e.value] = t,
|
|
12922
13005
|
"show-on-hover": "",
|
|
12923
13006
|
"enable-group-sync": "",
|
|
12924
13007
|
"enable-click-toggle": "",
|
|
@@ -12934,12 +13017,12 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12934
13017
|
tabindex: e.url ? void 0 : 0,
|
|
12935
13018
|
"aria-current": V(Ch)(e) ? "page" : void 0,
|
|
12936
13019
|
"aria-haspopup": "true",
|
|
12937
|
-
"aria-expanded": !!
|
|
13020
|
+
"aria-expanded": !!pe.value[e.value],
|
|
12938
13021
|
title: e.label
|
|
12939
|
-
}), [s("span",
|
|
13022
|
+
}), [s("span", gg, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", _g, R(e.badge.toUpperCase()), 1)) : a("", !0)]), u(Q, {
|
|
12940
13023
|
name: "chevron-right",
|
|
12941
13024
|
class: "pv-icon-16"
|
|
12942
|
-
})], 16,
|
|
13025
|
+
})], 16, hg)]),
|
|
12943
13026
|
content: K(() => [u(jh, {
|
|
12944
13027
|
items: e.children,
|
|
12945
13028
|
disabled: J.value
|
|
@@ -12957,7 +13040,7 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12957
13040
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
12958
13041
|
"aria-current": e.active ? "page" : void 0,
|
|
12959
13042
|
title: e.label
|
|
12960
|
-
}), [s("span",
|
|
13043
|
+
}), [s("span", yg, [s("span", { class: b(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, R(e.label), 3), e.badge ? (k(), o("span", bg, R(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, vg))], 64))), 128))], 8, mg)]),
|
|
12961
13044
|
_: 2
|
|
12962
13045
|
}, 1032, [
|
|
12963
13046
|
"modelValue",
|
|
@@ -12975,10 +13058,10 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12975
13058
|
"teleport-location",
|
|
12976
13059
|
"disabled"
|
|
12977
13060
|
]))])], 64))), 128))])) : a("", !0),
|
|
12978
|
-
s("div",
|
|
13061
|
+
s("div", xg, [V(g) ? (k(), i(lr, {
|
|
12979
13062
|
key: 0,
|
|
12980
|
-
modelValue:
|
|
12981
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
13063
|
+
modelValue: fe.value,
|
|
13064
|
+
"onUpdate:modelValue": r[1] ||= (e) => fe.value = e,
|
|
12982
13065
|
position: J.value ? "right-bottom" : "top-left",
|
|
12983
13066
|
"show-on-hover": J.value,
|
|
12984
13067
|
"enable-group-sync": "",
|
|
@@ -12990,14 +13073,17 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
12990
13073
|
}, {
|
|
12991
13074
|
trigger: K(() => [s("button", {
|
|
12992
13075
|
type: "button",
|
|
12993
|
-
class: "pv-nav-list-item",
|
|
13076
|
+
class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
|
|
12994
13077
|
"aria-label": "Help",
|
|
12995
|
-
"aria-expanded":
|
|
13078
|
+
"aria-expanded": fe.value,
|
|
12996
13079
|
title: "Help"
|
|
12997
13080
|
}, [u(Q, {
|
|
12998
13081
|
name: "help-circle",
|
|
12999
13082
|
class: "pv-icon-20 pv-nav-icon"
|
|
13000
|
-
}),
|
|
13083
|
+
}), s("span", {
|
|
13084
|
+
"data-sidebar-expanded-content": "",
|
|
13085
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
13086
|
+
}, "Help", 8, Cg)], 10, Sg)]),
|
|
13001
13087
|
content: K(() => [s("div", wg, [N(n.$slots, "sidebar-help-content")])]),
|
|
13002
13088
|
_: 3
|
|
13003
13089
|
}, 8, [
|
|
@@ -13008,8 +13094,8 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13008
13094
|
"teleport-location"
|
|
13009
13095
|
])) : a("", !0), V(_) && e.profile ? (k(), i(lr, {
|
|
13010
13096
|
key: 1,
|
|
13011
|
-
modelValue:
|
|
13012
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
13097
|
+
modelValue: Z.value,
|
|
13098
|
+
"onUpdate:modelValue": r[2] ||= (e) => Z.value = e,
|
|
13013
13099
|
position: J.value ? "right-bottom" : "top-left",
|
|
13014
13100
|
"use-teleport": !!w.value,
|
|
13015
13101
|
"teleport-location": w.value ?? "body",
|
|
@@ -13018,16 +13104,20 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13018
13104
|
}, {
|
|
13019
13105
|
trigger: K(() => [s("button", {
|
|
13020
13106
|
type: "button",
|
|
13021
|
-
class: "pv-nav-list-item",
|
|
13107
|
+
class: b(["pv-nav-list-item", { "pv-sidebar-item-collapsed": J.value }]),
|
|
13022
13108
|
"data-testid": "pv-sidebar-profile-trigger",
|
|
13023
13109
|
"aria-label": e.profile.name,
|
|
13024
|
-
"aria-expanded":
|
|
13110
|
+
"aria-expanded": Z.value,
|
|
13025
13111
|
title: e.profile.name
|
|
13026
13112
|
}, [s("span", Eg, [e.profile.avatarUrl ? (k(), o("img", {
|
|
13027
13113
|
key: 0,
|
|
13028
13114
|
src: e.profile.avatarUrl,
|
|
13029
13115
|
alt: ""
|
|
13030
|
-
}, null, 8, Dg)) : (k(), o("span", Og, R(e.profile.name.slice(0, 1)), 1))]), s("span",
|
|
13116
|
+
}, null, 8, Dg)) : (k(), o("span", Og, R(e.profile.name.slice(0, 1)), 1))]), s("span", {
|
|
13117
|
+
class: "pv-truncate",
|
|
13118
|
+
"data-sidebar-expanded-content": "",
|
|
13119
|
+
"data-sidebar-collapsed": J.value || void 0
|
|
13120
|
+
}, R(e.profile.name), 9, kg)], 10, Tg)]),
|
|
13031
13121
|
content: K(() => [s("div", Ag, [N(n.$slots, "sidebar-profile-content")])]),
|
|
13032
13122
|
_: 3
|
|
13033
13123
|
}, 8, [
|
|
@@ -13036,13 +13126,13 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13036
13126
|
"use-teleport",
|
|
13037
13127
|
"teleport-location"
|
|
13038
13128
|
])) : a("", !0)])
|
|
13039
|
-
])], 512),
|
|
13129
|
+
], 2)], 512),
|
|
13040
13130
|
s("div", jg, [N(n.$slots, "default")]),
|
|
13041
13131
|
s("div", {
|
|
13042
13132
|
ref_key: "popoverTeleportTarget",
|
|
13043
13133
|
ref: w,
|
|
13044
|
-
class: "pv-sidebar-popover-portal"
|
|
13045
|
-
}, null,
|
|
13134
|
+
class: b(["pv-sidebar-popover-portal", e.variant && `pv-sidebar-surface-${e.variant}`])
|
|
13135
|
+
}, null, 2)
|
|
13046
13136
|
], 38));
|
|
13047
13137
|
}
|
|
13048
13138
|
}), Pg = {
|
|
@@ -13315,6 +13405,6 @@ var xp = ["aria-label"], Sp = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
13315
13405
|
});
|
|
13316
13406
|
};
|
|
13317
13407
|
//#endregion
|
|
13318
|
-
export {
|
|
13408
|
+
export { pi as PvAccordion, Pc as PvActionBar, pr as PvActionButton, gr as PvAiButton, Wa as PvAvatar, Bs as PvAvatarGroup, ri as PvBanner, nu as PvBoxPlot, za as PvBreadcrumbs, $ as PvButton, xr as PvButtonWithTooltip, Cc as PvCard, Ks as PvCheckbox, Ls as PvCompanyLabel, Wr as PvCompanyLogo, ci as PvCompanyTag, xa as PvContextFeedback, Zi as PvContextSurface, Hi as PvContextSurfaceKey, Ye as PvCounterBadge, Ti as PvDatePicker, Di as PvDateTime, hl as PvDistributionBar, Vi as PvDrawer, Pr as PvDropdown, si as PvEmptyErrorState, Jg as PvEmptyState, Mc as PvExpandableContent, uc as PvFileInput, Qp as PvFilterModal, Fp as PvFilterPanel, wa as PvGhostInput, Fs as PvHeader, uf as PvHorizontalScroller, nm as PvHoverActionMenu, Q as PvIcon, rc as PvInput, jc as PvInsightCard, Uo as PvMenu, Fo as PvMenuItem, Xr as PvModal, Xo as PvMultiSelectButton, _s as PvPagination, Or as PvPill, jr as PvPopover, Ir as PvPopoverMenu, lr as PvPopoverV2, ml as PvProgressBar, dm as PvQueryBuilderInput, Xs as PvRadioGroup, yu as PvRange, pc as PvRating, Tr as PvReleaseBadge, Mi as PvResizeHandle, vi as PvSearchInput, Lr as PvSegmentedControl, $o as PvSelectButton, Ya as PvSelectButtonTrigger, bs as PvSelectableCard, Ts as PvSidePanel, Sh as PvSidebar, Ng as PvSidebarV2, Qs as PvSkeleton, us as PvSortableList, ra as PvSpinesEntityFields, ze as PvSpinner, wr as PvSplitButton, As as PvSplitPane, Zs as PvSprite, Vg as PvStepper, di as PvSuggestionTag, ho as PvSwitch, Vr as PvTabList, Lg as PvTableOfContents, Fa as PvTabs, Dr as PvTag, sa as PvTextArea, ma as PvToast, da as PvToggleButton, Ws as PvToggleGroup, yr as PvTooltip, dr as PvTooltipV2, ll as PvTree, ul as PvTreeGroup, wc as PvWidget, Qg as RumContextKey, vo as SelectedItemsKey, e_ as addRumAction, fp as createPvFilterStore, t_ as deferRumTask, pp as providePvFilterStore, Oi as pvResizeAxisFor, ki as resolvePvResizeSize, Ei as useDateTime, Zg as useMenuPosition, mp as useOptionalPvFilterStore, Xg as usePvComponents, hp as usePvFilterStore, ji as useResizable, $g as useRumContext, rr as useSlotPresence };
|
|
13319
13409
|
|
|
13320
13410
|
//# sourceMappingURL=pv-components-base.mjs.map
|