@turquoisehealth/pit-viper 2.244.3 → 2.244.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +2 -1
- package/_site/assets/css/pit-viper-consumer.css +2 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +2 -1
- package/_site/assets/css/pit-viper-v2.css +2 -1
- package/_site/assets/css/pit-viper.css +2 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +4 -5
- package/pv-components/dist/vue/ai/components/base/PvDistributionBar/types.d.ts +8 -0
- package/pv-components/dist/vue/ai/components/base/PvGhostInput/PvGhostInput.vue.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +4 -5
- package/pv-components/dist/vue/base/components/base/PvDistributionBar/types.d.ts +8 -0
- package/pv-components/dist/vue/base/components/base/PvGhostInput/PvGhostInput.vue.d.ts +2 -2
- package/pv-components/dist/vue/base/pv-components-base.mjs +310 -302
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDistributionBar/PvDistributionBar.vue.d.ts +4 -5
- package/pv-components/dist/vue/visualizations/components/base/PvDistributionBar/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/base/PvGhostInput/PvGhostInput.vue.d.ts +2 -2
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +459 -446
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +1 -7
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -2
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +1900 -1739
- package/pv-components/dist/web/pv-components.iife.js +12 -12
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -3537,7 +3537,6 @@ var vi = () => ({
|
|
|
3537
3537
|
"disabled",
|
|
3538
3538
|
"name"
|
|
3539
3539
|
], Ma = /* @__PURE__ */ d({
|
|
3540
|
-
inheritAttrs: !1,
|
|
3541
3540
|
__name: "PvGhostInput",
|
|
3542
3541
|
props: /* @__PURE__ */ g({
|
|
3543
3542
|
variant: { default: "h1" },
|
|
@@ -3595,12 +3594,7 @@ var vi = () => ({
|
|
|
3595
3594
|
ie(s("input", _({
|
|
3596
3595
|
ref_key: "inputRef",
|
|
3597
3596
|
ref: t
|
|
3598
|
-
}, {
|
|
3599
|
-
...c,
|
|
3600
|
-
...f.$attrs,
|
|
3601
|
-
error: void 0,
|
|
3602
|
-
autofocus: void 0
|
|
3603
|
-
}, {
|
|
3597
|
+
}, c, {
|
|
3604
3598
|
"onUpdate:modelValue": p[0] ||= (e) => l.value = e,
|
|
3605
3599
|
type: "text",
|
|
3606
3600
|
style: { width: u.value + "px" },
|
|
@@ -3628,7 +3622,10 @@ var vi = () => ({
|
|
|
3628
3622
|
}, Fa = {
|
|
3629
3623
|
key: 1,
|
|
3630
3624
|
type: "button"
|
|
3631
|
-
}, Ia =
|
|
3625
|
+
}, Ia = {
|
|
3626
|
+
class: "pv-popover pv-popover-list",
|
|
3627
|
+
style: { "--width": "fit-content" }
|
|
3628
|
+
}, La = ["onClick"], Ra = /* @__PURE__ */ d({
|
|
3632
3629
|
__name: "PvTabs",
|
|
3633
3630
|
props: /* @__PURE__ */ g({
|
|
3634
3631
|
tabs: {},
|
|
@@ -3654,7 +3651,8 @@ var vi = () => ({
|
|
|
3654
3651
|
}), g = k(), _ = (e) => g.value ?? e.label, v = (e) => {
|
|
3655
3652
|
g.value = e;
|
|
3656
3653
|
}, b = (e) => {
|
|
3657
|
-
|
|
3654
|
+
let t = g.value ?? e.label;
|
|
3655
|
+
d("handle-input-submit", p(e), t.trim().length > 0 ? t : e.label), g.value = void 0;
|
|
3658
3656
|
}, x = (e) => {
|
|
3659
3657
|
g.value = void 0, e.target instanceof HTMLInputElement && e.target.blur();
|
|
3660
3658
|
}, S = (e) => {
|
|
@@ -3684,11 +3682,13 @@ var vi = () => ({
|
|
|
3684
3682
|
}, [e.type === "input" ? (D(), o("div", Pa, [u(Ma, {
|
|
3685
3683
|
variant: "text-md",
|
|
3686
3684
|
autofocus: "",
|
|
3685
|
+
placeholder: e.label,
|
|
3687
3686
|
"model-value": _(e),
|
|
3688
3687
|
"onUpdate:modelValue": v,
|
|
3689
3688
|
onKeydown: [ae(() => b(e), ["enter"]), ae(x, ["esc"])],
|
|
3690
3689
|
onFocusout: () => b(e)
|
|
3691
3690
|
}, null, 8, [
|
|
3691
|
+
"placeholder",
|
|
3692
3692
|
"model-value",
|
|
3693
3693
|
"onKeydown",
|
|
3694
3694
|
"onFocusout"
|
|
@@ -3704,44 +3704,43 @@ var vi = () => ({
|
|
|
3704
3704
|
variant: C(e) ? "primary" : "tertiary",
|
|
3705
3705
|
size: "sm"
|
|
3706
3706
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
3707
|
-
])), w(e) ? (D(),
|
|
3707
|
+
])), w(e) ? (D(), i(nr, {
|
|
3708
3708
|
key: 2,
|
|
3709
|
-
class: "pv-
|
|
3709
|
+
class: "pv-tab-options",
|
|
3710
|
+
"show-on-hover": "",
|
|
3710
3711
|
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
3711
|
-
}, [u($, {
|
|
3712
|
-
"left-icon": "ellipsis-vertical",
|
|
3713
|
-
variant: "ghost",
|
|
3714
|
-
size: "md",
|
|
3715
|
-
ariaLabel: "Tab options"
|
|
3716
|
-
}), u(wr, {
|
|
3717
|
-
"is-list": "",
|
|
3718
|
-
"css-custom-properties": { "--width": "fit-content" }
|
|
3719
3712
|
}, {
|
|
3720
|
-
|
|
3713
|
+
trigger: K(() => [u($, {
|
|
3714
|
+
"left-icon": "ellipsis-vertical",
|
|
3715
|
+
variant: "ghost",
|
|
3716
|
+
size: "md",
|
|
3717
|
+
ariaLabel: "Tab options"
|
|
3718
|
+
})]),
|
|
3719
|
+
content: K(() => [s("ul", Ia, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("li", { key: t.value }, [s("a", {
|
|
3721
3720
|
href: "#",
|
|
3722
3721
|
class: y({ "pv-text-critical": t.value === "delete" }),
|
|
3723
3722
|
onClick: q((n) => T(e, t), ["prevent"])
|
|
3724
|
-
}, I(t.label), 11,
|
|
3723
|
+
}, I(t.label), 11, La)]))), 128))])]),
|
|
3725
3724
|
_: 2
|
|
3726
|
-
}, 1024)
|
|
3725
|
+
}, 1024)) : a("", !0)], 8, Na))), 128))], 2));
|
|
3727
3726
|
}
|
|
3728
|
-
}),
|
|
3727
|
+
}), za = {
|
|
3729
3728
|
class: "pv-breadcrumbs",
|
|
3730
3729
|
role: "list",
|
|
3731
3730
|
"data-testid": "pv-breadcrumbs"
|
|
3732
|
-
},
|
|
3731
|
+
}, Ba = ["href"], Va = /* @__PURE__ */ d({
|
|
3733
3732
|
__name: "PvBreadcrumbs",
|
|
3734
3733
|
props: { options: {} },
|
|
3735
3734
|
setup(e) {
|
|
3736
|
-
return (n, r) => (D(), o("ul",
|
|
3735
|
+
return (n, r) => (D(), o("ul", za, [(D(!0), o(t, null, A(e.options, (e, n) => (D(), o("li", { key: `${n}-${e.label}` }, [e.href ? (D(), o("a", {
|
|
3737
3736
|
key: 0,
|
|
3738
3737
|
href: e.href
|
|
3739
|
-
}, I(e.label), 9,
|
|
3738
|
+
}, I(e.label), 9, Ba)) : (D(), o(t, { key: 1 }, [l(I(e.label), 1)], 64))]))), 128))]));
|
|
3740
3739
|
}
|
|
3741
|
-
}),
|
|
3740
|
+
}), Ha = {
|
|
3742
3741
|
"data-testid": "pv-select-menu-control-panel",
|
|
3743
3742
|
class: "pv-flex pv-space-between"
|
|
3744
|
-
},
|
|
3743
|
+
}, Ua = /* @__PURE__ */ d({
|
|
3745
3744
|
__name: "PvMenuControlPanel",
|
|
3746
3745
|
props: {
|
|
3747
3746
|
variant: {},
|
|
@@ -3756,7 +3755,7 @@ var vi = () => ({
|
|
|
3756
3755
|
],
|
|
3757
3756
|
setup(e) {
|
|
3758
3757
|
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) => (D(), o("div",
|
|
3758
|
+
return (n, r) => (D(), o("div", Ha, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u($, {
|
|
3760
3759
|
variant: "ghost",
|
|
3761
3760
|
"data-testid": "pv-select-menu-item-select-all",
|
|
3762
3761
|
"data-dd-action-name": i.value,
|
|
@@ -3783,7 +3782,7 @@ var vi = () => ({
|
|
|
3783
3782
|
disabled: e.disabled
|
|
3784
3783
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
3785
3784
|
}
|
|
3786
|
-
}),
|
|
3785
|
+
}), Wa = ["data-style", "data-shape"], Ga = ["src", "alt"], Ka = /* @__PURE__ */ d({
|
|
3787
3786
|
__name: "PvAvatar",
|
|
3788
3787
|
props: {
|
|
3789
3788
|
alt: {},
|
|
@@ -3821,14 +3820,14 @@ var vi = () => ({
|
|
|
3821
3820
|
key: 2,
|
|
3822
3821
|
src: e.image,
|
|
3823
3822
|
alt: e.alt ?? ""
|
|
3824
|
-
}, null, 8,
|
|
3823
|
+
}, null, 8, Ga)) : a("", !0)], 10, Wa));
|
|
3825
3824
|
}
|
|
3826
|
-
}),
|
|
3825
|
+
}), qa = ["disabled"], Ja = { class: "pv-flex pv-select-button-trigger-content" }, Ya = {
|
|
3827
3826
|
key: 0,
|
|
3828
3827
|
"data-testid": "pv-select-prefix-label",
|
|
3829
3828
|
class: "pv-border-right pv-text-quaternary",
|
|
3830
3829
|
style: { "padding-right": "4px" }
|
|
3831
|
-
},
|
|
3830
|
+
}, Xa = ["title"], Za = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
3832
3831
|
__name: "PvSelectButtonTrigger",
|
|
3833
3832
|
props: {
|
|
3834
3833
|
avatar: {},
|
|
@@ -3882,8 +3881,8 @@ var vi = () => ({
|
|
|
3882
3881
|
style: { "--flex-gap": "0.25rem" },
|
|
3883
3882
|
disabled: e.disabled || e.isLoading
|
|
3884
3883
|
}, [
|
|
3885
|
-
s("div",
|
|
3886
|
-
e.prefixLabel ? (D(), o("p",
|
|
3884
|
+
s("div", Ja, [
|
|
3885
|
+
e.prefixLabel ? (D(), o("p", Ya, I(e.prefixLabel), 1)) : a("", !0),
|
|
3887
3886
|
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (D(), i(He, {
|
|
3888
3887
|
key: 1,
|
|
3889
3888
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
@@ -3903,7 +3902,7 @@ var vi = () => ({
|
|
|
3903
3902
|
name: e.companyLogo,
|
|
3904
3903
|
size: "sm"
|
|
3905
3904
|
}, null, 8, ["name"])) : a("", !0),
|
|
3906
|
-
e.avatar ? (D(), i(
|
|
3905
|
+
e.avatar ? (D(), i(Ka, {
|
|
3907
3906
|
key: 2,
|
|
3908
3907
|
class: "pv-select-button-trigger-avatar",
|
|
3909
3908
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -3923,7 +3922,7 @@ var vi = () => ({
|
|
|
3923
3922
|
key: 3,
|
|
3924
3923
|
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
3925
3924
|
title: p.value
|
|
3926
|
-
}, I(p.value), 9,
|
|
3925
|
+
}, I(p.value), 9, Xa)) : a("", !0)
|
|
3927
3926
|
], 64)),
|
|
3928
3927
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (D(), i(He, {
|
|
3929
3928
|
key: 4,
|
|
@@ -3958,26 +3957,26 @@ var vi = () => ({
|
|
|
3958
3957
|
"tooltip-content": K(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
3959
3958
|
_: 1
|
|
3960
3959
|
})) : a("", !0)
|
|
3961
|
-
], 10,
|
|
3960
|
+
], 10, qa));
|
|
3962
3961
|
}
|
|
3963
|
-
}), [["__scopeId", "data-v-da9865ad"]]),
|
|
3964
|
-
function
|
|
3965
|
-
return D(), o("div",
|
|
3962
|
+
}), [["__scopeId", "data-v-da9865ad"]]), Qa = {}, $a = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
3963
|
+
function eo(e, t) {
|
|
3964
|
+
return D(), o("div", $a, "No Results Found");
|
|
3966
3965
|
}
|
|
3967
|
-
var
|
|
3966
|
+
var to = /* @__PURE__ */ Q(Qa, [["render", eo]]);
|
|
3968
3967
|
//#endregion
|
|
3969
3968
|
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
3970
|
-
function
|
|
3969
|
+
function no(e) {
|
|
3971
3970
|
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
3972
3971
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return e.flatMap((e) => e.children?.length ?
|
|
3972
|
+
function ro(e) {
|
|
3973
|
+
return e.flatMap((e) => e.children?.length ? ro(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
3975
3974
|
}
|
|
3976
|
-
function
|
|
3975
|
+
function io(e, t) {
|
|
3977
3976
|
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
3978
3977
|
return r.length > 0 ? [...e, ...r] : e;
|
|
3979
3978
|
}
|
|
3980
|
-
function
|
|
3979
|
+
function ao(e, t) {
|
|
3981
3980
|
let n = (e) => {
|
|
3982
3981
|
let r = 0, i = 0, a = 0;
|
|
3983
3982
|
for (let o of e) if (o.children?.length) {
|
|
@@ -3992,14 +3991,14 @@ function io(e, t) {
|
|
|
3992
3991
|
};
|
|
3993
3992
|
return n(e).displayCount;
|
|
3994
3993
|
}
|
|
3995
|
-
function
|
|
3994
|
+
function oo(e) {
|
|
3996
3995
|
return e.filter((e) => e.state === "selected").length;
|
|
3997
3996
|
}
|
|
3998
|
-
function
|
|
3997
|
+
function so(e, t, n = !0) {
|
|
3999
3998
|
return e.flatMap((e) => {
|
|
4000
3999
|
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
4001
4000
|
if (e.children?.length) {
|
|
4002
|
-
let r =
|
|
4001
|
+
let r = so(e.children, t, n);
|
|
4003
4002
|
if (r.length) return n ? [{
|
|
4004
4003
|
...e,
|
|
4005
4004
|
children: r
|
|
@@ -4010,20 +4009,20 @@ function oo(e, t, n = !0) {
|
|
|
4010
4009
|
}
|
|
4011
4010
|
//#endregion
|
|
4012
4011
|
//#region src/components/base/PvMenu/items/PvMenuBaseItem.vue?vue&type=script&setup=true&lang.ts
|
|
4013
|
-
var
|
|
4012
|
+
var co = {
|
|
4014
4013
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
4015
4014
|
style: {
|
|
4016
4015
|
"align-items": "flex-start",
|
|
4017
4016
|
"--flex-gap": "0"
|
|
4018
4017
|
}
|
|
4019
|
-
},
|
|
4018
|
+
}, lo = ["title"], uo = ["title"], fo = { style: {
|
|
4020
4019
|
"max-width": "220px",
|
|
4021
4020
|
"white-space": "normal",
|
|
4022
4021
|
"overflow-wrap": "break-word"
|
|
4023
|
-
} },
|
|
4022
|
+
} }, po = {
|
|
4024
4023
|
key: 7,
|
|
4025
4024
|
class: "pv-text-subdued pv-text-body-xs"
|
|
4026
|
-
},
|
|
4025
|
+
}, mo = /* @__PURE__ */ d({
|
|
4027
4026
|
inheritAttrs: !1,
|
|
4028
4027
|
__name: "PvMenuBaseItem",
|
|
4029
4028
|
props: {
|
|
@@ -4085,7 +4084,7 @@ var so = {
|
|
|
4085
4084
|
], () => {
|
|
4086
4085
|
g();
|
|
4087
4086
|
}, { flush: "post" }), (n, r) => (D(), o(t, null, [
|
|
4088
|
-
e.avatar ? (D(), i(
|
|
4087
|
+
e.avatar ? (D(), i(Ka, {
|
|
4089
4088
|
key: 0,
|
|
4090
4089
|
initials: e.avatar.initials,
|
|
4091
4090
|
image: e.avatar.image,
|
|
@@ -4114,7 +4113,7 @@ var so = {
|
|
|
4114
4113
|
name: e.companyName,
|
|
4115
4114
|
size: "sm"
|
|
4116
4115
|
}, null, 8, ["name"])) : a("", !0),
|
|
4117
|
-
s("div",
|
|
4116
|
+
s("div", co, [s("span", {
|
|
4118
4117
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
4119
4118
|
title: e.hoverTitle ?? e.text
|
|
4120
4119
|
}, [s("span", {
|
|
@@ -4124,7 +4123,7 @@ var so = {
|
|
|
4124
4123
|
key: 0,
|
|
4125
4124
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
4126
4125
|
style: { "padding-left": "4px" }
|
|
4127
|
-
}, I(e.subduedText), 3)) : a("", !0)], 8,
|
|
4126
|
+
}, I(e.subduedText), 3)) : a("", !0)], 8, lo), p.value ? (D(), o("span", {
|
|
4128
4127
|
key: 0,
|
|
4129
4128
|
ref_key: "subText",
|
|
4130
4129
|
ref: l,
|
|
@@ -4135,7 +4134,7 @@ var so = {
|
|
|
4135
4134
|
{ "pv-text-subdued": !e.disabled }
|
|
4136
4135
|
]),
|
|
4137
4136
|
title: e.hoverTitle ?? p.value
|
|
4138
|
-
}, I(p.value), 11,
|
|
4137
|
+
}, I(p.value), 11, uo)) : a("", !0)]),
|
|
4139
4138
|
e.secondaryLoading ? (D(), i(Ne, {
|
|
4140
4139
|
key: 3,
|
|
4141
4140
|
size: "xs",
|
|
@@ -4164,20 +4163,20 @@ var so = {
|
|
|
4164
4163
|
class: "pv-text-subdued",
|
|
4165
4164
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"])
|
|
4166
4165
|
})]),
|
|
4167
|
-
content: K(() => [s("div",
|
|
4166
|
+
content: K(() => [s("div", fo, I(e.description), 1)]),
|
|
4168
4167
|
_: 1
|
|
4169
4168
|
})) : e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(He, {
|
|
4170
4169
|
key: 6,
|
|
4171
4170
|
value: e.secondaryText,
|
|
4172
4171
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
4173
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span",
|
|
4172
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span", po, I(e.secondaryText), 1)) : a("", !0)
|
|
4174
4173
|
], 64));
|
|
4175
4174
|
}
|
|
4176
|
-
}),
|
|
4175
|
+
}), ho = ["for"], go = { key: 0 }, _o = [
|
|
4177
4176
|
"disabled",
|
|
4178
4177
|
"aria-label",
|
|
4179
4178
|
"id"
|
|
4180
|
-
],
|
|
4179
|
+
], vo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4181
4180
|
__name: "PvSwitch",
|
|
4182
4181
|
props: /* @__PURE__ */ g({
|
|
4183
4182
|
size: { default: "md" },
|
|
@@ -4209,16 +4208,16 @@ var so = {
|
|
|
4209
4208
|
"pv-input-xsmall": e.size === "sm",
|
|
4210
4209
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
4211
4210
|
}])
|
|
4212
|
-
}, [e.label ? (D(), o("span",
|
|
4211
|
+
}, [e.label ? (D(), o("span", go, I(e.label), 1)) : a("", !0), ie(s("input", {
|
|
4213
4212
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
4214
4213
|
disabled: e.disabled,
|
|
4215
4214
|
"aria-label": e.ariaLabel,
|
|
4216
4215
|
type: "checkbox",
|
|
4217
4216
|
role: "switch",
|
|
4218
4217
|
id: L(t)
|
|
4219
|
-
}, null, 8,
|
|
4218
|
+
}, null, 8, _o), [[te, n.value]])], 10, ho));
|
|
4220
4219
|
}
|
|
4221
|
-
}), [["__scopeId", "data-v-73e6d2b2"]]),
|
|
4220
|
+
}), [["__scopeId", "data-v-73e6d2b2"]]), yo = ["aria-label"], bo = /* @__PURE__ */ d({
|
|
4222
4221
|
__name: "PvMenuItemAction",
|
|
4223
4222
|
props: {
|
|
4224
4223
|
action: {},
|
|
@@ -4255,7 +4254,7 @@ var so = {
|
|
|
4255
4254
|
role: "img",
|
|
4256
4255
|
"aria-label": o.value,
|
|
4257
4256
|
onClick: t[0] ||= q(() => {}, ["stop"])
|
|
4258
|
-
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10,
|
|
4257
|
+
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10, yo)]),
|
|
4259
4258
|
_: 2
|
|
4260
4259
|
}, [o.value ? {
|
|
4261
4260
|
name: "content",
|
|
@@ -4263,7 +4262,7 @@ var so = {
|
|
|
4263
4262
|
key: "0"
|
|
4264
4263
|
} : void 0]), 1024));
|
|
4265
4264
|
}
|
|
4266
|
-
}),
|
|
4265
|
+
}), xo = Symbol("SelectedItemsKey"), So = Symbol("EnableCascadeSelectionKey"), Co = Symbol("MenuInteractionModeKey"), wo = Symbol("MenuAncestorIdsKey"), To = Symbol("OriginalOptionsMapKey"), Eo = Symbol("CascadeSelectedParentIdsKey"), Do = Symbol("CascadeDeselectedChildIdsKey"), Oo = Symbol("ParentSelectsAllChildrenKey"), ko = Symbol("EnableChildExpansionKey"), Ao = ["data-testid"], jo = [
|
|
4267
4266
|
"hidden",
|
|
4268
4267
|
"type",
|
|
4269
4268
|
"checked",
|
|
@@ -4271,10 +4270,10 @@ var so = {
|
|
|
4271
4270
|
"tabindex",
|
|
4272
4271
|
"aria-hidden",
|
|
4273
4272
|
"disabled"
|
|
4274
|
-
],
|
|
4273
|
+
], Mo = {
|
|
4275
4274
|
key: 4,
|
|
4276
4275
|
class: "pv-menu-item-action"
|
|
4277
|
-
},
|
|
4276
|
+
}, No = ["aria-label", "aria-expanded"], Po = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4278
4277
|
inheritAttrs: !1,
|
|
4279
4278
|
__name: "PvMenuItemVariant",
|
|
4280
4279
|
props: {
|
|
@@ -4314,17 +4313,17 @@ var so = {
|
|
|
4314
4313
|
},
|
|
4315
4314
|
emits: ["handle-selected", "toggle-expanded"],
|
|
4316
4315
|
setup(e, { emit: t }) {
|
|
4317
|
-
let n = e, c = V("inputRef"), l = m(
|
|
4318
|
-
if (!d.value || !
|
|
4319
|
-
let e = n.children ?
|
|
4316
|
+
let n = e, c = V("inputRef"), l = m(xo, void 0), d = m(So, k(!1)), p = m(To, void 0), h = m(Eo, void 0), g = m(Co, r(() => !1)), b = r(() => {
|
|
4317
|
+
if (!d.value || !no(n)) return [];
|
|
4318
|
+
let e = n.children ? ro(n.children) : [];
|
|
4320
4319
|
if (p?.value) {
|
|
4321
4320
|
let t = p.value.get(n.id);
|
|
4322
|
-
return
|
|
4321
|
+
return io(t?.children ? ro(t.children) : [], e);
|
|
4323
4322
|
}
|
|
4324
4323
|
return e;
|
|
4325
4324
|
}), x = r(() => {
|
|
4326
4325
|
if (!l?.value) return n.selected ?? !1;
|
|
4327
|
-
if (d.value &&
|
|
4326
|
+
if (d.value && no(n)) {
|
|
4328
4327
|
let e = b.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4329
4328
|
if (h?.value?.has(n.id) && r >= t) return !0;
|
|
4330
4329
|
let i = n.totalChildCount ?? t;
|
|
@@ -4332,7 +4331,7 @@ var so = {
|
|
|
4332
4331
|
}
|
|
4333
4332
|
return l.value.some((e) => e.id === n.id);
|
|
4334
4333
|
}), S = r(() => {
|
|
4335
|
-
if (!l?.value || !d.value || !
|
|
4334
|
+
if (!l?.value || !d.value || !no(n)) return n.indeterminate ?? !1;
|
|
4336
4335
|
let e = b.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4337
4336
|
if (h?.value?.has(n.id) && r >= t) return !1;
|
|
4338
4337
|
let i = n.totalChildCount ?? t;
|
|
@@ -4386,8 +4385,8 @@ var so = {
|
|
|
4386
4385
|
"aria-hidden": L(g) ? !0 : void 0,
|
|
4387
4386
|
disabled: e.disabled,
|
|
4388
4387
|
onChange: r[0] ||= (e) => L(g) ? void 0 : I(e)
|
|
4389
|
-
}, null, 42,
|
|
4390
|
-
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(
|
|
4388
|
+
}, null, 42, jo),
|
|
4389
|
+
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(mo, _({ key: 1 }, T.value, {
|
|
4391
4390
|
menuOptionConfig: e.menuOptionConfig,
|
|
4392
4391
|
queryText: e.queryText,
|
|
4393
4392
|
highlightSearchText: e.highlightSearchText
|
|
@@ -4401,7 +4400,7 @@ var so = {
|
|
|
4401
4400
|
name: "check",
|
|
4402
4401
|
class: "pv-text-success"
|
|
4403
4402
|
})) : a("", !0),
|
|
4404
|
-
e.menuOptionConfig?.variant === "toggle" ? (D(), i(
|
|
4403
|
+
e.menuOptionConfig?.variant === "toggle" ? (D(), i(vo, {
|
|
4405
4404
|
key: 3,
|
|
4406
4405
|
modelValue: x.value,
|
|
4407
4406
|
ariaLabel: n.text || "Toggle",
|
|
@@ -4409,7 +4408,7 @@ var so = {
|
|
|
4409
4408
|
hideCheckIcon: "",
|
|
4410
4409
|
style: { "pointer-events": "none" }
|
|
4411
4410
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("", !0),
|
|
4412
|
-
E.value ? (D(), o("span",
|
|
4411
|
+
E.value ? (D(), o("span", Mo, [u(bo, {
|
|
4413
4412
|
action: E.value,
|
|
4414
4413
|
option: n,
|
|
4415
4414
|
disabled: e.disabled
|
|
@@ -4428,10 +4427,10 @@ var so = {
|
|
|
4428
4427
|
}, [u(Z, {
|
|
4429
4428
|
name: e.chevronIcon ?? "chevron-right",
|
|
4430
4429
|
size: 12
|
|
4431
|
-
}, null, 8, ["name"])], 8,
|
|
4432
|
-
], 16,
|
|
4430
|
+
}, null, 8, ["name"])], 8, No)) : a("", !0)
|
|
4431
|
+
], 16, Ao));
|
|
4433
4432
|
}
|
|
4434
|
-
}), [["__scopeId", "data-v-9130f2b2"]]),
|
|
4433
|
+
}), [["__scopeId", "data-v-9130f2b2"]]), Fo = ["data-active"], Io = { key: 0 }, Lo = 4, Ro = /* @__PURE__ */ d({
|
|
4435
4434
|
inheritAttrs: !1,
|
|
4436
4435
|
__name: "PvMenuItem",
|
|
4437
4436
|
props: /* @__PURE__ */ g({
|
|
@@ -4470,7 +4469,7 @@ var so = {
|
|
|
4470
4469
|
}),
|
|
4471
4470
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
4472
4471
|
setup(e, { emit: n }) {
|
|
4473
|
-
let i = e, s = m(
|
|
4472
|
+
let i = e, s = m(xo, void 0), c = z(e, "selectedIds"), l = m(ko, k(!1)), d = m(Oo, k(!1)), f = m(Co, r(() => !1)), p = ee(), h = r(() => {
|
|
4474
4473
|
if (!f.value) return {};
|
|
4475
4474
|
let e = new Set([
|
|
4476
4475
|
"aria-checked",
|
|
@@ -4487,7 +4486,7 @@ var so = {
|
|
|
4487
4486
|
"tabindex"
|
|
4488
4487
|
]);
|
|
4489
4488
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
4490
|
-
}), g = m(
|
|
4489
|
+
}), g = m(Eo, void 0), v = m(Do, void 0), b = k(i.defaultExpanded ?? !1);
|
|
4491
4490
|
G(() => i.defaultExpanded, (e) => {
|
|
4492
4491
|
e && (b.value = !0);
|
|
4493
4492
|
});
|
|
@@ -4505,10 +4504,10 @@ var so = {
|
|
|
4505
4504
|
}, O = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), j = r(() => {
|
|
4506
4505
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
4507
4506
|
return f.value && delete r.selectedIds, r;
|
|
4508
|
-
}), N = r(() =>
|
|
4507
|
+
}), N = r(() => no({
|
|
4509
4508
|
...i,
|
|
4510
4509
|
children: w.value
|
|
4511
|
-
}) && i.level <
|
|
4510
|
+
}) && i.level < Lo), P = r(() => N.value ? l.value ? b.value : !0 : !1), F = r(() => b.value ? "chevron-down" : "chevron-right"), I = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), R = n, B = r(() => C.value || i.totalChildCount == null ? !1 : i.totalChildCount > w.value.length), V = async () => {
|
|
4512
4511
|
if (S.value) return;
|
|
4513
4512
|
if (!i.handleSeeMore) {
|
|
4514
4513
|
R("see-more", {
|
|
@@ -4558,7 +4557,7 @@ var so = {
|
|
|
4558
4557
|
};
|
|
4559
4558
|
return (n, r) => {
|
|
4560
4559
|
let s = M("PvMenuItem", !0);
|
|
4561
|
-
return D(), o(t, null, [u(
|
|
4560
|
+
return D(), o(t, null, [u(Po, _({
|
|
4562
4561
|
...j.value,
|
|
4563
4562
|
...h.value
|
|
4564
4563
|
}, {
|
|
@@ -4606,7 +4605,7 @@ var so = {
|
|
|
4606
4605
|
"queryText",
|
|
4607
4606
|
"highlightSearchText",
|
|
4608
4607
|
"level"
|
|
4609
|
-
])], 10,
|
|
4608
|
+
])], 10, Fo))), 128)), B.value ? (D(), o("li", Io, [u($, {
|
|
4610
4609
|
class: "pv-text-brand",
|
|
4611
4610
|
variant: "ghost",
|
|
4612
4611
|
label: "See more",
|
|
@@ -4616,12 +4615,12 @@ var so = {
|
|
|
4616
4615
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
4617
4616
|
};
|
|
4618
4617
|
}
|
|
4619
|
-
}),
|
|
4618
|
+
}), zo = ["role"], Bo = [
|
|
4620
4619
|
"data-active",
|
|
4621
4620
|
"data-option-id",
|
|
4622
4621
|
"data-testid",
|
|
4623
4622
|
"role"
|
|
4624
|
-
],
|
|
4623
|
+
], Vo = ["role"], Ho = ["data-pv-menu-ancestors"], Uo = ["id", "aria-label"], Wo = ["data-active", "data-option-id"], Go = "__pv-menu-see-more__", Ko = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4625
4624
|
inheritAttrs: !1,
|
|
4626
4625
|
__name: "PvMenu",
|
|
4627
4626
|
props: /* @__PURE__ */ g({
|
|
@@ -4664,8 +4663,8 @@ var so = {
|
|
|
4664
4663
|
}, M = () => {
|
|
4665
4664
|
let e = p.value;
|
|
4666
4665
|
E(), e && v(() => Ce(e));
|
|
4667
|
-
}, N = [...m(
|
|
4668
|
-
O(
|
|
4666
|
+
}, N = [...m(wo, []), h];
|
|
4667
|
+
O(wo, N), oe(g, (e) => {
|
|
4669
4668
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
4670
4669
|
}, { ignore: [S] });
|
|
4671
4670
|
let P = F(f.value);
|
|
@@ -4677,10 +4676,10 @@ var so = {
|
|
|
4677
4676
|
};
|
|
4678
4677
|
G(P, (e) => {
|
|
4679
4678
|
e !== I && e !== f.value && ee(e);
|
|
4680
|
-
}), O(
|
|
4679
|
+
}), O(xo, P), O(Co, r(() => l.childrenDisplay === "popover"));
|
|
4681
4680
|
let B = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4682
|
-
O(
|
|
4683
|
-
let V = m(
|
|
4681
|
+
O(So, B);
|
|
4682
|
+
let V = m(To, void 0), te = m(Oo, k(!1)), H = m(Eo, void 0), U = m(Do, void 0), W = r(() => l.singleSelect || l.config?.variant === "radio"), re = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), ae = (e, t, n = !1, r = !0) => {
|
|
4684
4683
|
let i = !r || p.value !== e.id;
|
|
4685
4684
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
4686
4685
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
@@ -4694,12 +4693,12 @@ var so = {
|
|
|
4694
4693
|
return;
|
|
4695
4694
|
}
|
|
4696
4695
|
let r;
|
|
4697
|
-
if (B.value &&
|
|
4696
|
+
if (B.value && no(n)) {
|
|
4698
4697
|
let e;
|
|
4699
4698
|
if (te.value && V?.value) {
|
|
4700
4699
|
let t = V.value.get(n.id);
|
|
4701
|
-
e =
|
|
4702
|
-
} else e = n.children ?
|
|
4700
|
+
e = io(t?.children ? ro(t.children) : [], n.children ? ro(n.children) : []);
|
|
4701
|
+
} else e = n.children ? ro(n.children) : [];
|
|
4703
4702
|
let t = e.map((e) => e.id), i = P.value, a = (H?.value?.has(n.id) ?? !1) || t.some((e) => i.some((t) => t.id === e));
|
|
4704
4703
|
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], H?.value) {
|
|
4705
4704
|
let e = new Set(H.value);
|
|
@@ -4716,7 +4715,7 @@ var so = {
|
|
|
4716
4715
|
let t = e > -1;
|
|
4717
4716
|
for (let e of H.value) {
|
|
4718
4717
|
let r = V?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4719
|
-
if (!r || !(
|
|
4718
|
+
if (!r || !(ro(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4720
4719
|
let i = new Map(U.value), a = new Set(i.get(e) ?? []);
|
|
4721
4720
|
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), U.value = i;
|
|
4722
4721
|
break;
|
|
@@ -4760,7 +4759,7 @@ var so = {
|
|
|
4760
4759
|
return W.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4761
4760
|
}, pe = (e) => fe(e) === "menuitem" ? void 0 : !!de(e), X = (e) => e.children?.length && !l.highlightParentItems ? null : fe(e) !== "menuitemcheckbox" && de(e) || p.value === e.id ? !0 : null, me = (e) => fe(e) !== "menuitemcheckbox" && se.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || se.value.has(e.id) || H?.value?.has(e.id) || e.children?.length && ce(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
4762
4761
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
4763
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(
|
|
4762
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Go), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
4764
4763
|
}), ye = r(() => {
|
|
4765
4764
|
let e = re.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4766
4765
|
return e.some((e) => e.id === _e.value) ? _e.value : e[0]?.id;
|
|
@@ -4855,7 +4854,7 @@ var so = {
|
|
|
4855
4854
|
"data-testid": e.itemTestId,
|
|
4856
4855
|
class: y(e.itemClass),
|
|
4857
4856
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4858
|
-
}, [u(
|
|
4857
|
+
}, [u(Ro, _({ ref_for: !0 }, le(t), {
|
|
4859
4858
|
"aria-checked": e.childrenDisplay === "popover" ? pe(t) : void 0,
|
|
4860
4859
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? L(h) : void 0,
|
|
4861
4860
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
@@ -4891,7 +4890,7 @@ var so = {
|
|
|
4891
4890
|
"tabindex",
|
|
4892
4891
|
"onFocus",
|
|
4893
4892
|
"onKeydown"
|
|
4894
|
-
])], 10,
|
|
4893
|
+
])], 10, Bo)), [[ne, he(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", {
|
|
4895
4894
|
key: 0,
|
|
4896
4895
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4897
4896
|
}, [u($, {
|
|
@@ -4901,9 +4900,9 @@ var so = {
|
|
|
4901
4900
|
loading: e.isSeeMoreLoading,
|
|
4902
4901
|
disabled: e.isSeeMoreLoading,
|
|
4903
4902
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
4904
|
-
tabindex: e.childrenDisplay === "popover" ? ve.value ===
|
|
4903
|
+
tabindex: e.childrenDisplay === "popover" ? ve.value === Go ? 0 : -1 : void 0,
|
|
4905
4904
|
"data-testid": "pv-menu-see-more",
|
|
4906
|
-
onFocus: c[1] ||= (e) => ge.value =
|
|
4905
|
+
onFocus: c[1] ||= (e) => ge.value = Go,
|
|
4907
4906
|
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? Ee(t) : void 0,
|
|
4908
4907
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
4909
4908
|
}, null, 8, [
|
|
@@ -4911,7 +4910,7 @@ var so = {
|
|
|
4911
4910
|
"disabled",
|
|
4912
4911
|
"role",
|
|
4913
4912
|
"tabindex"
|
|
4914
|
-
])], 8,
|
|
4913
|
+
])], 8, Vo)) : a("", !0)], 16, zo), e.childrenDisplay === "popover" && re.value ? (D(), i(n, {
|
|
4915
4914
|
key: 0,
|
|
4916
4915
|
to: "body"
|
|
4917
4916
|
}, [s("div", {
|
|
@@ -4945,7 +4944,7 @@ var so = {
|
|
|
4945
4944
|
"data-option-id": t.id,
|
|
4946
4945
|
class: y(e.itemClass),
|
|
4947
4946
|
role: "none"
|
|
4948
|
-
}, [u(
|
|
4947
|
+
}, [u(Ro, _({ ref_for: !0 }, Y(t), {
|
|
4949
4948
|
"aria-checked": pe(t),
|
|
4950
4949
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
4951
4950
|
"data-active": me(t),
|
|
@@ -4975,35 +4974,35 @@ var so = {
|
|
|
4975
4974
|
"tabindex",
|
|
4976
4975
|
"onFocus",
|
|
4977
4976
|
"onKeydown"
|
|
4978
|
-
])], 10,
|
|
4977
|
+
])], 10, Wo))), 128))], 8, Uo)], !0)]),
|
|
4979
4978
|
_: 3
|
|
4980
|
-
})], 12,
|
|
4979
|
+
})], 12, Ho)])) : a("", !0)], 64));
|
|
4981
4980
|
}
|
|
4982
|
-
}), [["__scopeId", "data-v-f14f755f"]]),
|
|
4981
|
+
}), [["__scopeId", "data-v-f14f755f"]]), qo = ["data-dd-action-name"], Jo = {
|
|
4983
4982
|
key: 1,
|
|
4984
4983
|
class: "pv-inset-square-8"
|
|
4985
|
-
},
|
|
4984
|
+
}, Yo = {
|
|
4986
4985
|
key: 1,
|
|
4987
4986
|
class: "pv-text-body-sm pv-inset-inline",
|
|
4988
4987
|
style: {
|
|
4989
4988
|
color: "var(--color-text-quaternary, #89989b)",
|
|
4990
4989
|
"--inset-size": "8px"
|
|
4991
4990
|
}
|
|
4992
|
-
},
|
|
4991
|
+
}, Xo = {
|
|
4993
4992
|
key: 2,
|
|
4994
4993
|
class: "pv-border-top",
|
|
4995
4994
|
style: { margin: "8px 0" }
|
|
4996
|
-
},
|
|
4995
|
+
}, Zo = {
|
|
4997
4996
|
key: 3,
|
|
4998
4997
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
4999
4998
|
style: { "justify-content": "center" }
|
|
5000
|
-
},
|
|
4999
|
+
}, Qo = { key: 0 }, $o = {
|
|
5001
5000
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
5002
5001
|
style: {
|
|
5003
5002
|
"--flex-justify": "space-between",
|
|
5004
5003
|
"--bottom": "0"
|
|
5005
5004
|
}
|
|
5006
|
-
},
|
|
5005
|
+
}, es = /* @__PURE__ */ d({
|
|
5007
5006
|
__name: "PvMultiSelectButton",
|
|
5008
5007
|
props: /* @__PURE__ */ g({
|
|
5009
5008
|
companyLogo: {},
|
|
@@ -5106,10 +5105,10 @@ var so = {
|
|
|
5106
5105
|
};
|
|
5107
5106
|
return t(c.options), e;
|
|
5108
5107
|
}), f = F(/* @__PURE__ */ new Set()), m = F(/* @__PURE__ */ new Map());
|
|
5109
|
-
O(
|
|
5108
|
+
O(To, d), O(Eo, f), O(Do, m), O(Oo, r(() => c.parentSelectsAllChildren)), O(ko, r(() => !!c.enableChildExpansion));
|
|
5110
5109
|
let g = n, y = r(() => {
|
|
5111
5110
|
let e = /* @__PURE__ */ new Map();
|
|
5112
|
-
for (let [t, n] of d.value)
|
|
5111
|
+
for (let [t, n] of d.value) no(n) && e.set(t, n.children ? ro(n.children) : []);
|
|
5113
5112
|
return e;
|
|
5114
5113
|
}), S = () => {
|
|
5115
5114
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -5135,10 +5134,10 @@ var so = {
|
|
|
5135
5134
|
return t;
|
|
5136
5135
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
5137
5136
|
let e = c.additionalCounter ?? 0;
|
|
5138
|
-
if (c.enableCascadeSelection && c.countSelectedParents && ee.value?.length) return
|
|
5137
|
+
if (c.enableCascadeSelection && c.countSelectedParents && ee.value?.length) return oo(ee.value) + e;
|
|
5139
5138
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
5140
5139
|
let t = new Set(W.value.map((e) => e.id));
|
|
5141
|
-
return
|
|
5140
|
+
return ao(c.options, t) + e;
|
|
5142
5141
|
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && ee.value?.length ? ee.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
5143
5142
|
g("see-more", e ?? {});
|
|
5144
5143
|
}, k = V("searchInputRef"), [M, N] = de(c.defaultOpen), P = z(e, "modelValue"), ee = z(e, "selectionState"), R = z(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), te = (e) => {
|
|
@@ -5196,15 +5195,15 @@ var so = {
|
|
|
5196
5195
|
let oe = r(() => {
|
|
5197
5196
|
if (R.value === "") return c.options;
|
|
5198
5197
|
let e = R.value.toLocaleLowerCase();
|
|
5199
|
-
return c.enableCascadeSelection ?
|
|
5198
|
+
return c.enableCascadeSelection ? so(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
5200
5199
|
}), se = () => {
|
|
5201
5200
|
if (c.enableCascadeSelection) {
|
|
5202
5201
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
5203
|
-
for (let r of n)
|
|
5202
|
+
for (let r of n) no(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
5204
5203
|
};
|
|
5205
5204
|
t(oe.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
5206
5205
|
}
|
|
5207
|
-
let e = c.enableCascadeSelection ?
|
|
5206
|
+
let e = c.enableCascadeSelection ? ro(oe.value) : oe.value;
|
|
5208
5207
|
g("select-all", e.length), te(e);
|
|
5209
5208
|
}, ce = () => {
|
|
5210
5209
|
g("clear-all", W.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
@@ -5241,7 +5240,7 @@ var so = {
|
|
|
5241
5240
|
modelValue: L(M),
|
|
5242
5241
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
5243
5242
|
}, e.popoverProperties, { offset: q.value }), {
|
|
5244
|
-
trigger: K(() => [u(
|
|
5243
|
+
trigger: K(() => [u(Za, {
|
|
5245
5244
|
ref: "select-button-trigger-ref",
|
|
5246
5245
|
variant: e.variant,
|
|
5247
5246
|
size: e.size,
|
|
@@ -5297,11 +5296,11 @@ var so = {
|
|
|
5297
5296
|
"onUpdate:modelValue": r[1] ||= (e) => R.value = e,
|
|
5298
5297
|
class: "pv-stack-4",
|
|
5299
5298
|
placeholder: e.searchPlaceholder
|
|
5300
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
5301
|
-
n.$slots.header || L(_e) ? (D(), o("div",
|
|
5299
|
+
}, null, 8, ["model-value", "placeholder"])], 8, qo)),
|
|
5300
|
+
n.$slots.header || L(_e) ? (D(), o("div", Jo, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
5302
5301
|
oe.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(ue.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
5303
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
5304
|
-
u(
|
|
5302
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Yo, I(t), 1)),
|
|
5303
|
+
u(Ko, {
|
|
5305
5304
|
selectedItems: ie.value,
|
|
5306
5305
|
"onUpdate:selectedItems": r[2] ||= (e) => ie.value = e,
|
|
5307
5306
|
options: i,
|
|
@@ -5327,8 +5326,8 @@ var so = {
|
|
|
5327
5326
|
"enableCascadeSelection",
|
|
5328
5327
|
"hasMoreOptions"
|
|
5329
5328
|
]),
|
|
5330
|
-
ue.value && s !== ue.value.length - 1 ? (D(), o("div",
|
|
5331
|
-
]))), 128)) : (D(), i(
|
|
5329
|
+
ue.value && s !== ue.value.length - 1 ? (D(), o("div", Xo)) : a("", !0)
|
|
5330
|
+
]))), 128)) : (D(), i(Ko, {
|
|
5332
5331
|
key: 1,
|
|
5333
5332
|
selectedItems: ie.value,
|
|
5334
5333
|
"onUpdate:selectedItems": r[3] ||= (e) => ie.value = e,
|
|
@@ -5353,8 +5352,8 @@ var so = {
|
|
|
5353
5352
|
"isSeeMoreLoading",
|
|
5354
5353
|
"hasMoreOptions"
|
|
5355
5354
|
]))], 64)) : a("", !0),
|
|
5356
|
-
e.isLoading ? (D(), o("div",
|
|
5357
|
-
s("div",
|
|
5355
|
+
e.isLoading ? (D(), o("div", Zo, [u(Ne, { variant: "dark" }), e.loadingText ? (D(), o("span", Qo, I(e.loadingText), 1)) : a("", !0)])) : oe.value.length === 0 ? (D(), o(t, { key: 4 }, [L(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(to, { key: 1 }))], 64)) : a("", !0),
|
|
5356
|
+
s("div", $o, [L(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(Ua, {
|
|
5358
5357
|
key: 1,
|
|
5359
5358
|
variant: e.menuActionsVariant,
|
|
5360
5359
|
disabled: e.isLoading,
|
|
@@ -5372,10 +5371,10 @@ var so = {
|
|
|
5372
5371
|
_: 3
|
|
5373
5372
|
}, 16, ["modelValue", "offset"]));
|
|
5374
5373
|
}
|
|
5375
|
-
}),
|
|
5374
|
+
}), ts = { class: "pv-popover-scroll" }, ns = {
|
|
5376
5375
|
key: 0,
|
|
5377
5376
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
5378
|
-
},
|
|
5377
|
+
}, rs = /* @__PURE__ */ d({
|
|
5379
5378
|
__name: "PvSelectButton",
|
|
5380
5379
|
props: /* @__PURE__ */ g({
|
|
5381
5380
|
defaultOpen: { type: Boolean },
|
|
@@ -5475,7 +5474,7 @@ var so = {
|
|
|
5475
5474
|
modelValue: L(f),
|
|
5476
5475
|
"onUpdate:modelValue": n[2] ||= (e) => h(f) ? f.value = e : null
|
|
5477
5476
|
}, c.value), {
|
|
5478
|
-
trigger: K(() => [u(
|
|
5477
|
+
trigger: K(() => [u(Za, {
|
|
5479
5478
|
class: "pv-full-width",
|
|
5480
5479
|
ref: "select-button-trigger-ref",
|
|
5481
5480
|
variant: e.variant,
|
|
@@ -5523,14 +5522,14 @@ var so = {
|
|
|
5523
5522
|
class: "pv-popover pv-popover-scrollable",
|
|
5524
5523
|
"data-test-id": "pv-popover",
|
|
5525
5524
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5526
|
-
}, [s("div",
|
|
5527
|
-
e.disableSearchInput ? a("", !0) : (D(), o("div",
|
|
5525
|
+
}, [s("div", ts, [
|
|
5526
|
+
e.disableSearchInput ? a("", !0) : (D(), o("div", ns, [u(ui, {
|
|
5528
5527
|
"model-value": m.value,
|
|
5529
5528
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5530
5529
|
class: "pv-stack-4",
|
|
5531
5530
|
placeholder: e.searchPlaceholder
|
|
5532
5531
|
}, null, 8, ["model-value", "placeholder"])])),
|
|
5533
|
-
S.value.length > 0 ? (D(), i(
|
|
5532
|
+
S.value.length > 0 ? (D(), i(Ko, {
|
|
5534
5533
|
key: 1,
|
|
5535
5534
|
selectedItems: C.value,
|
|
5536
5535
|
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
@@ -5548,24 +5547,24 @@ var so = {
|
|
|
5548
5547
|
"queryText",
|
|
5549
5548
|
"disableDeselect",
|
|
5550
5549
|
"childrenDisplay"
|
|
5551
|
-
])) : (D(), i(
|
|
5550
|
+
])) : (D(), i(to, { key: 2 })),
|
|
5552
5551
|
j(t.$slots, "footer")
|
|
5553
5552
|
])], 4)]),
|
|
5554
5553
|
_: 3
|
|
5555
5554
|
}, 16, ["modelValue"]));
|
|
5556
5555
|
}
|
|
5557
|
-
}),
|
|
5556
|
+
}), is = {
|
|
5558
5557
|
short: 5,
|
|
5559
5558
|
long: 7
|
|
5560
|
-
},
|
|
5561
|
-
if (n <=
|
|
5559
|
+
}, as = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5560
|
+
if (n <= is[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5562
5561
|
page: t + 1,
|
|
5563
5562
|
label: (t + 1).toString()
|
|
5564
5563
|
}));
|
|
5565
5564
|
let r = [{
|
|
5566
5565
|
page: 1,
|
|
5567
5566
|
label: "1"
|
|
5568
|
-
}], i =
|
|
5567
|
+
}], i = is[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5569
5568
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5570
5569
|
page: 0,
|
|
5571
5570
|
label: "..."
|
|
@@ -5584,11 +5583,11 @@ var so = {
|
|
|
5584
5583
|
page: n,
|
|
5585
5584
|
label: n.toString()
|
|
5586
5585
|
}), r;
|
|
5587
|
-
} }),
|
|
5586
|
+
} }), os = ["data-style"], ss = ["data-testid", "aria-current"], cs = {
|
|
5588
5587
|
key: 0,
|
|
5589
5588
|
class: "dots-button",
|
|
5590
5589
|
disabled: ""
|
|
5591
|
-
},
|
|
5590
|
+
}, ls = ["onClick"], us = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5592
5591
|
__name: "PvPagination",
|
|
5593
5592
|
props: /* @__PURE__ */ g({
|
|
5594
5593
|
size: { default: "lg" },
|
|
@@ -5601,7 +5600,7 @@ var so = {
|
|
|
5601
5600
|
}),
|
|
5602
5601
|
emits: ["update:modelValue"],
|
|
5603
5602
|
setup(e) {
|
|
5604
|
-
let { getPaginations: n } =
|
|
5603
|
+
let { getPaginations: n } = as({ variant: e.variant }), r = z(e, "modelValue");
|
|
5605
5604
|
return (i, a) => (D(), o("ol", {
|
|
5606
5605
|
role: "list",
|
|
5607
5606
|
class: "pv-pagination",
|
|
@@ -5623,10 +5622,10 @@ var so = {
|
|
|
5623
5622
|
key: e.page,
|
|
5624
5623
|
"data-testid": `pagination-button-${e.page}`,
|
|
5625
5624
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5626
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5625
|
+
}, [e.label === "..." ? (D(), o("button", cs, I(e.label), 1)) : (D(), o("button", {
|
|
5627
5626
|
key: 1,
|
|
5628
5627
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5629
|
-
}, I(e.label), 9,
|
|
5628
|
+
}, I(e.label), 9, ls))], 8, ss))), 128)),
|
|
5630
5629
|
s("li", null, [u($, {
|
|
5631
5630
|
"data-testid": "pagination-right-arrow-icon",
|
|
5632
5631
|
disabled: r.value === e.maxPages,
|
|
@@ -5635,14 +5634,14 @@ var so = {
|
|
|
5635
5634
|
variant: "ghost",
|
|
5636
5635
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5637
5636
|
}, null, 8, ["disabled"])])
|
|
5638
|
-
], 8,
|
|
5637
|
+
], 8, os));
|
|
5639
5638
|
}
|
|
5640
|
-
}), [["__scopeId", "data-v-cfa4cb54"]]),
|
|
5639
|
+
}), [["__scopeId", "data-v-cfa4cb54"]]), ds = ["for"], fs = [
|
|
5641
5640
|
"checked",
|
|
5642
5641
|
"type",
|
|
5643
5642
|
"value",
|
|
5644
5643
|
"id"
|
|
5645
|
-
],
|
|
5644
|
+
], ps = /* @__PURE__ */ d({
|
|
5646
5645
|
__name: "PvSelectableCard",
|
|
5647
5646
|
props: {
|
|
5648
5647
|
variant: { default: "default" },
|
|
@@ -5664,33 +5663,33 @@ var so = {
|
|
|
5664
5663
|
type: e.deselect ? "checkbox" : "radio",
|
|
5665
5664
|
value: e.value,
|
|
5666
5665
|
id: t.value
|
|
5667
|
-
}, null, 8,
|
|
5666
|
+
}, null, 8, fs), j(n.$slots, "default")], 10, ds));
|
|
5668
5667
|
}
|
|
5669
|
-
}),
|
|
5668
|
+
}), ms = { class: "pv-layout-two-sidebar" }, hs = ["data-hidden"], gs = { "data-layout": "main-section" }, _s = ["data-hidden"], vs = /* @__PURE__ */ d({
|
|
5670
5669
|
__name: "PvSidePanel",
|
|
5671
5670
|
props: {
|
|
5672
5671
|
showLeftSidebar: { type: Boolean },
|
|
5673
5672
|
showRightSidebar: { type: Boolean }
|
|
5674
5673
|
},
|
|
5675
5674
|
setup(e) {
|
|
5676
|
-
return (t, n) => (D(), o("div",
|
|
5675
|
+
return (t, n) => (D(), o("div", ms, [
|
|
5677
5676
|
s("div", {
|
|
5678
5677
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5679
5678
|
"data-testid": "pv-side-panel-left",
|
|
5680
5679
|
"data-layout": "left-sidebar"
|
|
5681
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5682
|
-
s("div",
|
|
5680
|
+
}, [j(t.$slots, "left-sidebar")], 8, hs),
|
|
5681
|
+
s("div", gs, [j(t.$slots, "main")]),
|
|
5683
5682
|
s("div", {
|
|
5684
5683
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5685
5684
|
"data-testid": "pv-side-panel-right",
|
|
5686
5685
|
"data-layout": "right-sidebar"
|
|
5687
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5686
|
+
}, [j(t.$slots, "right-sidebar")], 8, _s)
|
|
5688
5687
|
]));
|
|
5689
5688
|
}
|
|
5690
|
-
}),
|
|
5689
|
+
}), ys = {
|
|
5691
5690
|
key: 0,
|
|
5692
5691
|
class: "pv-heading-2"
|
|
5693
|
-
},
|
|
5692
|
+
}, bs = ["id"], xs = { class: "pv-flex" }, Ss = ["id"], Cs = /* @__PURE__ */ d({
|
|
5694
5693
|
__name: "PvHeader",
|
|
5695
5694
|
props: {
|
|
5696
5695
|
as: { default: "div" },
|
|
@@ -5718,14 +5717,14 @@ var so = {
|
|
|
5718
5717
|
"background-color": "#fdfdfc"
|
|
5719
5718
|
}
|
|
5720
5719
|
}, {
|
|
5721
|
-
default: K(() => [e.title ? (D(), o("span",
|
|
5720
|
+
default: K(() => [e.title ? (D(), o("span", ys, I(e.title), 1)) : (D(), o("div", {
|
|
5722
5721
|
key: 1,
|
|
5723
5722
|
id: e.headerTitleId,
|
|
5724
5723
|
class: "pv-flex"
|
|
5725
|
-
}, [j(r.$slots, "left")], 8,
|
|
5724
|
+
}, [j(r.$slots, "left")], 8, bs)), s("div", xs, [s("div", {
|
|
5726
5725
|
id: e.headerActionsId,
|
|
5727
5726
|
class: "pv-flex"
|
|
5728
|
-
}, [j(r.$slots, "right")], 8,
|
|
5727
|
+
}, [j(r.$slots, "right")], 8, Ss), e.showAskTqButton ? (D(), o("div", {
|
|
5729
5728
|
key: 0,
|
|
5730
5729
|
class: y({ "pv-border-left": L(n) }),
|
|
5731
5730
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5738,7 +5737,7 @@ var so = {
|
|
|
5738
5737
|
_: 3
|
|
5739
5738
|
}, 8, ["class"]));
|
|
5740
5739
|
}
|
|
5741
|
-
}),
|
|
5740
|
+
}), ws = ["data-more"], Ts = ["src", "alt"], Es = /* @__PURE__ */ d({
|
|
5742
5741
|
__name: "PvAvatarGroup",
|
|
5743
5742
|
props: {
|
|
5744
5743
|
items: {},
|
|
@@ -5767,18 +5766,18 @@ var so = {
|
|
|
5767
5766
|
key: 1,
|
|
5768
5767
|
src: e.image,
|
|
5769
5768
|
alt: e.alt ?? ""
|
|
5770
|
-
}, null, 8,
|
|
5769
|
+
}, null, 8, Ts)) : (D(), o("div", {
|
|
5771
5770
|
key: 2,
|
|
5772
5771
|
class: y(c.value)
|
|
5773
|
-
}, null, 2))]))), 128))], 10,
|
|
5772
|
+
}, null, 2))]))), 128))], 10, ws));
|
|
5774
5773
|
}
|
|
5775
|
-
}),
|
|
5774
|
+
}), Ds = { class: "pv-flex" }, Os = [
|
|
5776
5775
|
"name",
|
|
5777
5776
|
"value",
|
|
5778
5777
|
"checked",
|
|
5779
5778
|
"disabled",
|
|
5780
5779
|
"onChange"
|
|
5781
|
-
],
|
|
5780
|
+
], ks = { key: 1 }, As = /* @__PURE__ */ d({
|
|
5782
5781
|
__name: "PvToggleGroup",
|
|
5783
5782
|
props: /* @__PURE__ */ g({
|
|
5784
5783
|
disabled: { type: Boolean },
|
|
@@ -5800,7 +5799,7 @@ var so = {
|
|
|
5800
5799
|
r.value = e;
|
|
5801
5800
|
}
|
|
5802
5801
|
};
|
|
5803
|
-
return (n, u) => (D(), o("div",
|
|
5802
|
+
return (n, u) => (D(), o("div", Ds, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
5804
5803
|
key: t.value,
|
|
5805
5804
|
description: e.hideLabels ? t.label : ""
|
|
5806
5805
|
}, {
|
|
@@ -5813,21 +5812,21 @@ var so = {
|
|
|
5813
5812
|
class: "pv-radio",
|
|
5814
5813
|
disabled: e.disabled || t.disabled,
|
|
5815
5814
|
onChange: (e) => l(t)
|
|
5816
|
-
}, null, 40,
|
|
5815
|
+
}, null, 40, Os),
|
|
5817
5816
|
t.icon ? (D(), i(Z, {
|
|
5818
5817
|
key: 0,
|
|
5819
5818
|
name: t.icon
|
|
5820
5819
|
}, null, 8, ["name"])) : a("", !0),
|
|
5821
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5820
|
+
e.hideLabels ? a("", !0) : (D(), o("span", ks, I(t.label), 1))
|
|
5822
5821
|
], 2)]),
|
|
5823
5822
|
_: 2
|
|
5824
5823
|
}, 1032, ["description"]))), 128))]));
|
|
5825
5824
|
}
|
|
5826
|
-
}),
|
|
5825
|
+
}), js = [
|
|
5827
5826
|
"aria-label",
|
|
5828
5827
|
"disabled",
|
|
5829
5828
|
"indeterminate"
|
|
5830
|
-
],
|
|
5829
|
+
], Ms = /* @__PURE__ */ d({
|
|
5831
5830
|
__name: "PvCheckbox",
|
|
5832
5831
|
props: /* @__PURE__ */ g({
|
|
5833
5832
|
ariaLabel: {},
|
|
@@ -5848,13 +5847,13 @@ var so = {
|
|
|
5848
5847
|
"aria-label": e.ariaLabel,
|
|
5849
5848
|
disabled: e.disabled,
|
|
5850
5849
|
indeterminate: e.indeterminate
|
|
5851
|
-
}, null, 8,
|
|
5850
|
+
}, null, 8, js)), [[te, t.value]]);
|
|
5852
5851
|
}
|
|
5853
|
-
}),
|
|
5852
|
+
}), Ns = ["aria-label", "aria-labelledby"], Ps = ["id"], Fs = [
|
|
5854
5853
|
"name",
|
|
5855
5854
|
"value",
|
|
5856
5855
|
"disabled"
|
|
5857
|
-
],
|
|
5856
|
+
], Is = /* @__PURE__ */ d({
|
|
5858
5857
|
__name: "PvRadioGroup",
|
|
5859
5858
|
props: /* @__PURE__ */ g({
|
|
5860
5859
|
ariaLabel: {},
|
|
@@ -5885,7 +5884,7 @@ var so = {
|
|
|
5885
5884
|
key: 0,
|
|
5886
5885
|
id: L(u),
|
|
5887
5886
|
class: "pv-label pv-stack-8"
|
|
5888
|
-
}, I(e.label), 9,
|
|
5887
|
+
}, I(e.label), 9, Ps)) : a("", !0), s("div", {
|
|
5889
5888
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5890
5889
|
style: x(f.value)
|
|
5891
5890
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5898,9 +5897,9 @@ var so = {
|
|
|
5898
5897
|
name: d.value,
|
|
5899
5898
|
value: t.value,
|
|
5900
5899
|
disabled: e.disabled || t.disabled
|
|
5901
|
-
}, null, 8,
|
|
5900
|
+
}, null, 8, Fs), [[U, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, Ns));
|
|
5902
5901
|
}
|
|
5903
|
-
}),
|
|
5902
|
+
}), Ls = /* @__PURE__ */ d({
|
|
5904
5903
|
__name: "PvSprite",
|
|
5905
5904
|
props: {
|
|
5906
5905
|
src: {},
|
|
@@ -5921,7 +5920,7 @@ var so = {
|
|
|
5921
5920
|
id: "pv-sprite-content"
|
|
5922
5921
|
}, null, -1)]));
|
|
5923
5922
|
}
|
|
5924
|
-
}),
|
|
5923
|
+
}), Rs = /* @__PURE__ */ d({
|
|
5925
5924
|
__name: "PvSkeleton",
|
|
5926
5925
|
props: {
|
|
5927
5926
|
size: { default: "md" },
|
|
@@ -5948,18 +5947,18 @@ var so = {
|
|
|
5948
5947
|
"width"
|
|
5949
5948
|
]));
|
|
5950
5949
|
}
|
|
5951
|
-
}),
|
|
5950
|
+
}), zs = ["for"], Bs = {
|
|
5952
5951
|
key: 0,
|
|
5953
5952
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5954
5953
|
style: { "--inset-size": "6px 10px" }
|
|
5955
|
-
},
|
|
5954
|
+
}, Vs = { class: "pv-relative pv-flex-item" }, Hs = [
|
|
5956
5955
|
"disabled",
|
|
5957
5956
|
"type",
|
|
5958
5957
|
"placeholder",
|
|
5959
5958
|
"id",
|
|
5960
5959
|
"data-invalid",
|
|
5961
5960
|
"step"
|
|
5962
|
-
],
|
|
5961
|
+
], Us = /* @__PURE__ */ d({
|
|
5963
5962
|
__name: "PvInput",
|
|
5964
5963
|
props: /* @__PURE__ */ g({
|
|
5965
5964
|
showLabel: { type: Boolean },
|
|
@@ -5986,8 +5985,8 @@ var so = {
|
|
|
5986
5985
|
"data-testid": "pv-input-label",
|
|
5987
5986
|
class: "pv-label pv-stack-8",
|
|
5988
5987
|
for: e.id
|
|
5989
|
-
}, [j(n.$slots, "label")], 8,
|
|
5990
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
5988
|
+
}, [j(n.$slots, "label")], 8, zs)) : a("", !0),
|
|
5989
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", Bs, I(e.prefixLabel), 1)) : a("", !0), s("div", Vs, [e.inputIcon ? (D(), i(Z, {
|
|
5991
5990
|
key: 0,
|
|
5992
5991
|
class: "pv-absolute input-icon-position",
|
|
5993
5992
|
name: e.inputIcon
|
|
@@ -6005,7 +6004,7 @@ var so = {
|
|
|
6005
6004
|
id: e.id,
|
|
6006
6005
|
"data-invalid": e.error ? !0 : void 0,
|
|
6007
6006
|
step: e.step
|
|
6008
|
-
}), null, 16,
|
|
6007
|
+
}), null, 16, Hs), [[H, c.value]])])], 2),
|
|
6009
6008
|
e.lowerLabel ? (D(), o("p", {
|
|
6010
6009
|
key: 1,
|
|
6011
6010
|
"data-testid": "pv-input-lower-label",
|
|
@@ -6017,15 +6016,15 @@ var so = {
|
|
|
6017
6016
|
}, I(e.lowerLabel), 3)) : a("", !0)
|
|
6018
6017
|
], 64));
|
|
6019
6018
|
}
|
|
6020
|
-
}),
|
|
6019
|
+
}), Ws = { class: "pv-stack-8" }, Gs = { class: "pv-input-file" }, Ks = [
|
|
6021
6020
|
"id",
|
|
6022
6021
|
"accept",
|
|
6023
6022
|
"disabled",
|
|
6024
6023
|
"multiple"
|
|
6025
|
-
],
|
|
6024
|
+
], qs = ["for"], Js = {
|
|
6026
6025
|
key: 0,
|
|
6027
6026
|
class: "pv-stack-8"
|
|
6028
|
-
},
|
|
6027
|
+
}, Ys = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, Xs = /* @__PURE__ */ d({
|
|
6029
6028
|
__name: "PvFileInput",
|
|
6030
6029
|
props: /* @__PURE__ */ g({
|
|
6031
6030
|
helperText: {},
|
|
@@ -6053,7 +6052,7 @@ var so = {
|
|
|
6053
6052
|
}, m = (e) => {
|
|
6054
6053
|
d.value = d.value.filter((t) => t !== e);
|
|
6055
6054
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
6056
|
-
return (n, r) => (D(), o("div",
|
|
6055
|
+
return (n, r) => (D(), o("div", Ws, [s("div", Gs, [
|
|
6057
6056
|
s("input", {
|
|
6058
6057
|
id: L(f),
|
|
6059
6058
|
type: "file",
|
|
@@ -6062,11 +6061,11 @@ var so = {
|
|
|
6062
6061
|
disabled: e.disabled,
|
|
6063
6062
|
multiple: e.multiple,
|
|
6064
6063
|
onChange: p
|
|
6065
|
-
}, null, 40,
|
|
6064
|
+
}, null, 40, Ks),
|
|
6066
6065
|
s("label", {
|
|
6067
6066
|
for: L(f),
|
|
6068
6067
|
class: "pv-label"
|
|
6069
|
-
}, [s("span", { class: y([`pv-button-${e.confirmButtonVariant}`, "pv-button-large"]) }, "Choose File", 2)], 8,
|
|
6068
|
+
}, [s("span", { class: y([`pv-button-${e.confirmButtonVariant}`, "pv-button-large"]) }, "Choose File", 2)], 8, qs),
|
|
6070
6069
|
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, I(h.value), 3),
|
|
6071
6070
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
6072
6071
|
key: 0,
|
|
@@ -6076,10 +6075,10 @@ var so = {
|
|
|
6076
6075
|
"aria-label": "Remove file",
|
|
6077
6076
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
6078
6077
|
}, null, 8, ["variant"])) : a("", !0)
|
|
6079
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
6078
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", Js, [(D(!0), o(t, null, A(d.value, (t) => (D(), o("li", {
|
|
6080
6079
|
key: t.name,
|
|
6081
6080
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
6082
|
-
}, [s("p",
|
|
6081
|
+
}, [s("p", Ys, I(t.name), 1), u($, {
|
|
6083
6082
|
"left-icon": "trash",
|
|
6084
6083
|
variant: e.destructiveButtonVariant,
|
|
6085
6084
|
size: "md",
|
|
@@ -6087,7 +6086,7 @@ var so = {
|
|
|
6087
6086
|
onClick: (e) => m(t)
|
|
6088
6087
|
}, null, 8, ["variant", "onClick"])]))), 128))])) : a("", !0)]));
|
|
6089
6088
|
}
|
|
6090
|
-
}),
|
|
6089
|
+
}), Zs = ["data-rating"], Qs = ["value"], $s = /* @__PURE__ */ d({
|
|
6091
6090
|
__name: "PvRating",
|
|
6092
6091
|
props: {
|
|
6093
6092
|
variant: { default: "dot" },
|
|
@@ -6106,18 +6105,18 @@ var so = {
|
|
|
6106
6105
|
min: "0",
|
|
6107
6106
|
max: "5",
|
|
6108
6107
|
value: e.value
|
|
6109
|
-
}, "4.0 stars", 8,
|
|
6108
|
+
}, "4.0 stars", 8, Qs)], 12, Zs));
|
|
6110
6109
|
}
|
|
6111
|
-
}),
|
|
6110
|
+
}), ec = {
|
|
6112
6111
|
key: 0,
|
|
6113
6112
|
class: "pv-flex pv-full-width"
|
|
6114
|
-
},
|
|
6113
|
+
}, tc = { class: "pv-flex-item pv-truncate" }, nc = { class: "pv-card-hover-action__action pv-flex" }, rc = {
|
|
6115
6114
|
key: 1,
|
|
6116
6115
|
class: "pv-flex pv-full-width"
|
|
6117
|
-
},
|
|
6116
|
+
}, ic = { class: "pv-flex-item pv-truncate" }, ac = { class: "pv-card-hover-action__action pv-flex" }, oc = {
|
|
6118
6117
|
key: 2,
|
|
6119
6118
|
class: "pv-flex pv-full-width"
|
|
6120
|
-
},
|
|
6119
|
+
}, sc = { class: "pv-flex-item pv-truncate" }, cc = { class: "pv-card-hover-action__action pv-flex" }, lc = /* @__PURE__ */ d({
|
|
6121
6120
|
__name: "PvCard",
|
|
6122
6121
|
props: {
|
|
6123
6122
|
href: {},
|
|
@@ -6153,9 +6152,9 @@ var so = {
|
|
|
6153
6152
|
"data-testid": "pv-card"
|
|
6154
6153
|
}, {
|
|
6155
6154
|
default: K(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
6156
|
-
e.headerAction ? (D(), o("div",
|
|
6157
|
-
e.descriptionAction ? (D(), o("div",
|
|
6158
|
-
e.footerAction ? (D(), o("div",
|
|
6155
|
+
e.headerAction ? (D(), o("div", ec, [s("div", tc, [j(n.$slots, "header")]), s("div", nc, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
6156
|
+
e.descriptionAction ? (D(), o("div", rc, [s("div", ic, [j(n.$slots, "description")]), s("div", ac, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
6157
|
+
e.footerAction ? (D(), o("div", oc, [s("div", sc, [j(n.$slots, "footer")]), s("div", cc, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
6159
6158
|
], 64)) : j(n.$slots, "default", { key: 1 })]),
|
|
6160
6159
|
_: 3
|
|
6161
6160
|
}, 8, [
|
|
@@ -6165,34 +6164,34 @@ var so = {
|
|
|
6165
6164
|
"style"
|
|
6166
6165
|
]));
|
|
6167
6166
|
}
|
|
6168
|
-
}),
|
|
6167
|
+
}), uc = /* @__PURE__ */ d({
|
|
6169
6168
|
__name: "PvWidget",
|
|
6170
6169
|
setup(e) {
|
|
6171
|
-
return (e, t) => (D(), i(
|
|
6170
|
+
return (e, t) => (D(), i(lc, { class: "pv-inset-square-16" }, {
|
|
6172
6171
|
default: K(() => [j(e.$slots, "default")]),
|
|
6173
6172
|
_: 3
|
|
6174
6173
|
}));
|
|
6175
6174
|
}
|
|
6176
|
-
}),
|
|
6175
|
+
}), dc = {
|
|
6177
6176
|
class: "pv-flex-vertical",
|
|
6178
6177
|
style: {
|
|
6179
6178
|
"--flex-align": "flex-start",
|
|
6180
6179
|
"--flex-gap": "0.25rem"
|
|
6181
6180
|
}
|
|
6182
|
-
},
|
|
6181
|
+
}, fc = {
|
|
6183
6182
|
key: 0,
|
|
6184
6183
|
class: "pv-flex",
|
|
6185
6184
|
style: { "--flex-gap": "0.25rem" }
|
|
6186
|
-
},
|
|
6185
|
+
}, pc = { class: "pv-text-body-sm" }, mc = {
|
|
6187
6186
|
key: 1,
|
|
6188
6187
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
6189
|
-
},
|
|
6188
|
+
}, hc = {
|
|
6190
6189
|
key: 2,
|
|
6191
6190
|
class: "pv-heading-2"
|
|
6192
|
-
},
|
|
6191
|
+
}, gc = {
|
|
6193
6192
|
key: 3,
|
|
6194
6193
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
6195
|
-
},
|
|
6194
|
+
}, _c = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6196
6195
|
__name: "PvInsightCard",
|
|
6197
6196
|
props: {
|
|
6198
6197
|
icon: { default: "ai" },
|
|
@@ -6212,22 +6211,22 @@ var so = {
|
|
|
6212
6211
|
emits: ["click", "icon-click"],
|
|
6213
6212
|
setup(e) {
|
|
6214
6213
|
let t = e, n = r(() => t.icon || t.insight);
|
|
6215
|
-
return (t, r) => (D(), i(
|
|
6214
|
+
return (t, r) => (D(), i(lc, {
|
|
6216
6215
|
variant: "secondary",
|
|
6217
6216
|
interactive: e.interactive,
|
|
6218
6217
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
6219
6218
|
class: "pv-relative"
|
|
6220
6219
|
}, {
|
|
6221
|
-
default: K(() => [s("div",
|
|
6222
|
-
n.value ? (D(), o("div",
|
|
6220
|
+
default: K(() => [s("div", dc, [
|
|
6221
|
+
n.value ? (D(), o("div", fc, [e.icon ? (D(), i(Z, {
|
|
6223
6222
|
key: 0,
|
|
6224
6223
|
style: { color: "#218c88" },
|
|
6225
6224
|
name: e.icon,
|
|
6226
6225
|
size: 12
|
|
6227
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
6228
|
-
e.upperLabel ? (D(), o("span",
|
|
6229
|
-
e.title ? (D(), o("span",
|
|
6230
|
-
e.description ? (D(), o("span",
|
|
6226
|
+
}, null, 8, ["name"])) : a("", !0), s("span", pc, I(e.insight), 1)])) : a("", !0),
|
|
6227
|
+
e.upperLabel ? (D(), o("span", mc, I(e.upperLabel), 1)) : a("", !0),
|
|
6228
|
+
e.title ? (D(), o("span", hc, I(e.title), 1)) : a("", !0),
|
|
6229
|
+
e.description ? (D(), o("span", gc, I(e.description), 1)) : a("", !0)
|
|
6231
6230
|
]), e.showButton ? (D(), i($, {
|
|
6232
6231
|
key: 0,
|
|
6233
6232
|
"left-icon": "new-tab",
|
|
@@ -6240,7 +6239,7 @@ var so = {
|
|
|
6240
6239
|
_: 1
|
|
6241
6240
|
}, 8, ["interactive"]));
|
|
6242
6241
|
}
|
|
6243
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
6242
|
+
}), [["__scopeId", "data-v-c1185c07"]]), vc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6244
6243
|
__name: "PvExpandableContent",
|
|
6245
6244
|
props: {
|
|
6246
6245
|
lines: { default: 4 },
|
|
@@ -6294,29 +6293,29 @@ var so = {
|
|
|
6294
6293
|
"left-icon": l.value ? "chevron-up" : "chevron-down"
|
|
6295
6294
|
}, null, 8, ["label", "left-icon"])) : a("", !0)], 6));
|
|
6296
6295
|
}
|
|
6297
|
-
}), [["__scopeId", "data-v-fc5fc7e0"]]),
|
|
6296
|
+
}), [["__scopeId", "data-v-fc5fc7e0"]]), yc = ["data-style"], bc = /* @__PURE__ */ d({
|
|
6298
6297
|
__name: "PvActionBar",
|
|
6299
6298
|
props: { variant: { default: "white" } },
|
|
6300
6299
|
setup(e) {
|
|
6301
6300
|
return (t, n) => (D(), o("div", {
|
|
6302
6301
|
class: "pv-action-bar-container",
|
|
6303
6302
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
6304
|
-
}, [j(t.$slots, "default")], 8,
|
|
6303
|
+
}, [j(t.$slots, "default")], 8, yc));
|
|
6305
6304
|
}
|
|
6306
|
-
}),
|
|
6305
|
+
}), xc = {
|
|
6307
6306
|
class: "pv-flex pv-truncate",
|
|
6308
6307
|
style: {
|
|
6309
6308
|
"min-width": "0",
|
|
6310
6309
|
"min-height": "20px"
|
|
6311
6310
|
}
|
|
6312
|
-
},
|
|
6311
|
+
}, Sc = ["title"], Cc = /* @__PURE__ */ d({
|
|
6313
6312
|
__name: "PvSimpleItemTree",
|
|
6314
6313
|
props: {
|
|
6315
6314
|
label: {},
|
|
6316
6315
|
icon: {}
|
|
6317
6316
|
},
|
|
6318
6317
|
setup(e) {
|
|
6319
|
-
return (t, n) => (D(), o("div",
|
|
6318
|
+
return (t, n) => (D(), o("div", xc, [e.icon ? (D(), i(Z, {
|
|
6320
6319
|
key: 0,
|
|
6321
6320
|
name: e.icon
|
|
6322
6321
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -6326,9 +6325,9 @@ var so = {
|
|
|
6326
6325
|
"min-width": "0"
|
|
6327
6326
|
},
|
|
6328
6327
|
title: e.label
|
|
6329
|
-
}, I(e.label), 9,
|
|
6328
|
+
}, I(e.label), 9, Sc)]));
|
|
6330
6329
|
}
|
|
6331
|
-
}),
|
|
6330
|
+
}), wc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6332
6331
|
__name: "PvTreeReorderIcon",
|
|
6333
6332
|
setup(e) {
|
|
6334
6333
|
return (e, t) => (D(), i(Z, {
|
|
@@ -6336,7 +6335,7 @@ var so = {
|
|
|
6336
6335
|
class: "reorder-icon pv-text-tertiary"
|
|
6337
6336
|
}));
|
|
6338
6337
|
}
|
|
6339
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
6338
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Tc = /* @__PURE__ */ d({
|
|
6340
6339
|
__name: "PvButtonTreeItem",
|
|
6341
6340
|
props: {
|
|
6342
6341
|
selected: { type: Boolean },
|
|
@@ -6371,7 +6370,7 @@ var so = {
|
|
|
6371
6370
|
_: 3
|
|
6372
6371
|
}, 8, ["class"]));
|
|
6373
6372
|
}
|
|
6374
|
-
}),
|
|
6373
|
+
}), Ec = /* @__PURE__ */ d({
|
|
6375
6374
|
__name: "PvCheckboxTreeItem",
|
|
6376
6375
|
props: {
|
|
6377
6376
|
selected: { type: Boolean },
|
|
@@ -6400,38 +6399,38 @@ var so = {
|
|
|
6400
6399
|
"pv-tree-item-selected": e.selected,
|
|
6401
6400
|
"pv-tree-item-disabled": e.disableSelection
|
|
6402
6401
|
}
|
|
6403
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
6402
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(Ms, {
|
|
6404
6403
|
key: 0,
|
|
6405
6404
|
checked: e.selected,
|
|
6406
6405
|
onClick: s
|
|
6407
6406
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
6408
6407
|
}
|
|
6409
|
-
}),
|
|
6408
|
+
}), Dc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6410
6409
|
__name: "PvTreeConnector",
|
|
6411
6410
|
props: { isLast: { type: Boolean } },
|
|
6412
6411
|
setup(e) {
|
|
6413
6412
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
6414
6413
|
}
|
|
6415
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
6414
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), Oc = () => ({
|
|
6416
6415
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
6417
6416
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
6418
6417
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
6419
6418
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
6420
6419
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
6421
|
-
}),
|
|
6420
|
+
}), kc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6422
6421
|
__name: "PvTreeConnectorGroup",
|
|
6423
6422
|
props: {
|
|
6424
6423
|
active: { type: Boolean },
|
|
6425
6424
|
level: {}
|
|
6426
6425
|
},
|
|
6427
6426
|
setup(e) {
|
|
6428
|
-
let t = e, { connectorOffset: n } =
|
|
6427
|
+
let t = e, { connectorOffset: n } = Oc(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
6429
6428
|
return (t, n) => (D(), o("div", {
|
|
6430
6429
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
6431
6430
|
style: x(i.value)
|
|
6432
6431
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6433
6432
|
}
|
|
6434
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
6433
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), Ac = () => {
|
|
6435
6434
|
let e = k(null);
|
|
6436
6435
|
return {
|
|
6437
6436
|
hoveredId: e,
|
|
@@ -6442,15 +6441,15 @@ var so = {
|
|
|
6442
6441
|
e.value = null;
|
|
6443
6442
|
}
|
|
6444
6443
|
};
|
|
6445
|
-
},
|
|
6444
|
+
}, jc = Symbol("DraggingStateKey"), Mc = Symbol("DraggingGroupNameKey"), Nc = Symbol("DropIndicatorKey"), Pc = () => {
|
|
6446
6445
|
let e = k(!1), t = k(null), n = k(null);
|
|
6447
|
-
return O(
|
|
6446
|
+
return O(jc, e), O(Mc, t), O(Nc, n), {
|
|
6448
6447
|
isDragging: e,
|
|
6449
6448
|
draggingGroupName: t,
|
|
6450
6449
|
dropIndicator: n
|
|
6451
6450
|
};
|
|
6452
|
-
},
|
|
6453
|
-
let e = m(
|
|
6451
|
+
}, Fc = () => {
|
|
6452
|
+
let e = m(jc, k(!1)), t = m(Mc, k(null)), n = m(Nc, k(null)), r = (n) => {
|
|
6454
6453
|
e.value = !0, t.value = n ?? null;
|
|
6455
6454
|
}, i = () => {
|
|
6456
6455
|
e.value = !1, t.value = null, o();
|
|
@@ -6472,8 +6471,8 @@ var so = {
|
|
|
6472
6471
|
onDragStart: r,
|
|
6473
6472
|
onDragEnd: i
|
|
6474
6473
|
};
|
|
6475
|
-
},
|
|
6476
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6474
|
+
}, Ic = () => {
|
|
6475
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Fc();
|
|
6477
6476
|
return {
|
|
6478
6477
|
getDragGroupConfig: (e, t) => {
|
|
6479
6478
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6508,8 +6507,8 @@ var so = {
|
|
|
6508
6507
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6509
6508
|
}
|
|
6510
6509
|
};
|
|
6511
|
-
},
|
|
6512
|
-
let { dropIndicator: e } =
|
|
6510
|
+
}, Lc = () => {
|
|
6511
|
+
let { dropIndicator: e } = Fc();
|
|
6513
6512
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6514
6513
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6515
6514
|
return {
|
|
@@ -6518,7 +6517,7 @@ var so = {
|
|
|
6518
6517
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6519
6518
|
};
|
|
6520
6519
|
} };
|
|
6521
|
-
},
|
|
6520
|
+
}, Rc = { class: "pv-flex pv-full-width" }, zc = ["data-parent-id"], Bc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6522
6521
|
__name: "PvSimpleNestedTreeItem",
|
|
6523
6522
|
props: {
|
|
6524
6523
|
option: {},
|
|
@@ -6534,9 +6533,9 @@ var so = {
|
|
|
6534
6533
|
},
|
|
6535
6534
|
emits: ["handle-tree-select", "update:children"],
|
|
6536
6535
|
setup(e, { emit: t }) {
|
|
6537
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6536
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = Fc(), { dragAndDropIndicatorClasses: p } = Lc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = Ac(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = Ic(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = Oc(), k = () => {
|
|
6538
6537
|
d(S(n.settings, n.option).name);
|
|
6539
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6538
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Ec : Tc), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), I = r(() => P.value && !F.value), ee = r(() => O({
|
|
6540
6539
|
level: n.level,
|
|
6541
6540
|
showNestedTree: P.value,
|
|
6542
6541
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6551,7 +6550,7 @@ var so = {
|
|
|
6551
6550
|
}), z = r(() => n.isParentPathOpen ?? !0);
|
|
6552
6551
|
return (t, n) => {
|
|
6553
6552
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6554
|
-
return D(), i(
|
|
6553
|
+
return D(), i(kc, {
|
|
6555
6554
|
active: I.value,
|
|
6556
6555
|
level: e.level
|
|
6557
6556
|
}, {
|
|
@@ -6571,7 +6570,7 @@ var so = {
|
|
|
6571
6570
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6572
6571
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6573
6572
|
}, {
|
|
6574
|
-
default: K(() => [ie(u(
|
|
6573
|
+
default: K(() => [ie(u(wc, null, null, 512), [[ne, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", Rc, [P.value ? (D(), i(Dc, {
|
|
6575
6574
|
key: 0,
|
|
6576
6575
|
"is-last": F.value
|
|
6577
6576
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6585,7 +6584,7 @@ var so = {
|
|
|
6585
6584
|
"settings",
|
|
6586
6585
|
"is-draggable",
|
|
6587
6586
|
"params"
|
|
6588
|
-
])) : (D(), i(
|
|
6587
|
+
])) : (D(), i(Cc, {
|
|
6589
6588
|
key: 2,
|
|
6590
6589
|
label: e.option.label,
|
|
6591
6590
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6647,12 +6646,12 @@ var so = {
|
|
|
6647
6646
|
"class",
|
|
6648
6647
|
"onEnd",
|
|
6649
6648
|
"onAdd"
|
|
6650
|
-
])], 8,
|
|
6649
|
+
])], 8, zc)]),
|
|
6651
6650
|
_: 1
|
|
6652
6651
|
}, 8, ["active", "level"]);
|
|
6653
6652
|
};
|
|
6654
6653
|
}
|
|
6655
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6654
|
+
}), [["__scopeId", "data-v-f706f606"]]), Vc = ["data-parent-id"], Hc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6656
6655
|
__name: "PvSimpleNestedTree",
|
|
6657
6656
|
props: {
|
|
6658
6657
|
option: {},
|
|
@@ -6668,14 +6667,14 @@ var so = {
|
|
|
6668
6667
|
},
|
|
6669
6668
|
emits: ["handle-tree-select", "update:children"],
|
|
6670
6669
|
setup(e, { emit: t }) {
|
|
6671
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6670
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Ac(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Ic(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Fc(), { dragAndDropIndicatorClasses: C } = Lc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = Oc(), k = () => {
|
|
6672
6671
|
b(h(n.settings, n.option).name);
|
|
6673
6672
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6674
6673
|
level: n.level,
|
|
6675
6674
|
showNestedTree: j.value,
|
|
6676
6675
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6677
6676
|
additionalNestingLevel: A.value
|
|
6678
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6677
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? Ec : Tc, I = r({
|
|
6679
6678
|
get: () => [...n.option.children || []],
|
|
6680
6679
|
set: (e) => {
|
|
6681
6680
|
o("update:children", {
|
|
@@ -6684,7 +6683,7 @@ var so = {
|
|
|
6684
6683
|
});
|
|
6685
6684
|
}
|
|
6686
6685
|
}), ee = r(() => n.isParentPathOpen ?? !0), R = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), z = r(() => j.value && !R.value);
|
|
6687
|
-
return (t, n) => (D(), i(
|
|
6686
|
+
return (t, n) => (D(), i(kc, {
|
|
6688
6687
|
class: "pv-flow",
|
|
6689
6688
|
style: { "--flow-size": "0px" },
|
|
6690
6689
|
active: z.value,
|
|
@@ -6707,8 +6706,8 @@ var so = {
|
|
|
6707
6706
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6708
6707
|
}, {
|
|
6709
6708
|
default: K(() => [
|
|
6710
|
-
ie(u(
|
|
6711
|
-
j.value ? (D(), i(
|
|
6709
|
+
ie(u(wc, null, null, 512), [[ne, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6710
|
+
j.value ? (D(), i(Dc, {
|
|
6712
6711
|
key: 0,
|
|
6713
6712
|
"is-last": R.value
|
|
6714
6713
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6723,7 +6722,7 @@ var so = {
|
|
|
6723
6722
|
"settings",
|
|
6724
6723
|
"selected",
|
|
6725
6724
|
"params"
|
|
6726
|
-
])) : (D(), i(
|
|
6725
|
+
])) : (D(), i(Cc, {
|
|
6727
6726
|
key: 2,
|
|
6728
6727
|
label: e.option.label,
|
|
6729
6728
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6751,7 +6750,7 @@ var so = {
|
|
|
6751
6750
|
onEnd: L(S),
|
|
6752
6751
|
onAdd: L(S)
|
|
6753
6752
|
}, {
|
|
6754
|
-
item: K(({ element: r, index: i }) => [u(
|
|
6753
|
+
item: K(({ element: r, index: i }) => [u(Bc, {
|
|
6755
6754
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6756
6755
|
option: r,
|
|
6757
6756
|
settings: e.settings,
|
|
@@ -6786,11 +6785,11 @@ var so = {
|
|
|
6786
6785
|
"class",
|
|
6787
6786
|
"onEnd",
|
|
6788
6787
|
"onAdd"
|
|
6789
|
-
])], 8,
|
|
6788
|
+
])], 8, Vc)]),
|
|
6790
6789
|
_: 1
|
|
6791
6790
|
}, 8, ["active", "level"]));
|
|
6792
6791
|
}
|
|
6793
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6792
|
+
}), [["__scopeId", "data-v-26eb4678"]]), Uc = ["data-parent-id"], Wc = { key: 2 }, Gc = ["data-parent-id"], Kc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6794
6793
|
__name: "PvTreeItem",
|
|
6795
6794
|
props: {
|
|
6796
6795
|
option: {},
|
|
@@ -6821,12 +6820,12 @@ var so = {
|
|
|
6821
6820
|
}), G(l, (e) => {
|
|
6822
6821
|
e && (d.value = !0);
|
|
6823
6822
|
});
|
|
6824
|
-
let { getDragGroupConfig: f, getDragAndDropDisabled: p, canItemBeDragged: m, handleMoveCallback: h, childrenDraggable: g, canAcceptDrop: _ } =
|
|
6823
|
+
let { getDragGroupConfig: f, getDragAndDropDisabled: p, canItemBeDragged: m, handleMoveCallback: h, childrenDraggable: g, canAcceptDrop: _ } = Ic(), { hoveredId: v, handleMouseEnter: b, handleMouseLeave: S } = Ac(), { isDragging: C, draggingGroupName: w, onDragStart: T, onDragEnd: E } = Fc(), { dragAndDropIndicatorClasses: O } = Lc(), { indentPadding: A, showsConnector: j } = Oc(), P = () => {
|
|
6825
6824
|
T(f(n.settings, n.option).name);
|
|
6826
6825
|
}, F = (e) => ({
|
|
6827
6826
|
paddingLeft: A(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6828
6827
|
"--border-color": "#121313"
|
|
6829
|
-
}), I = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), ee = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6828
|
+
}), I = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), ee = r(() => n.settings[n.option.field]?.checkbox ? Ec : Tc), R = r({
|
|
6830
6829
|
get: () => [...n.option.children || []],
|
|
6831
6830
|
set: (e) => {
|
|
6832
6831
|
c("update:children", {
|
|
@@ -6837,7 +6836,7 @@ var so = {
|
|
|
6837
6836
|
}), z = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), B = r(() => j(n.settings, n.parentField)), V = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), te = r(() => B.value && !V.value), H = r(() => n.isParentPathOpen ?? !0 ? z.value && n.level === 0 ? d.value : !0 : !1);
|
|
6838
6837
|
return (t, n) => {
|
|
6839
6838
|
let r = M("PvTreeItem", !0);
|
|
6840
|
-
return D(), i(
|
|
6839
|
+
return D(), i(kc, {
|
|
6841
6840
|
active: te.value,
|
|
6842
6841
|
level: e.level
|
|
6843
6842
|
}, {
|
|
@@ -6869,8 +6868,8 @@ var so = {
|
|
|
6869
6868
|
onContextmenu: n[6] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6870
6869
|
}, {
|
|
6871
6870
|
trigger: K(() => [
|
|
6872
|
-
ie(u(
|
|
6873
|
-
B.value ? (D(), i(
|
|
6871
|
+
ie(u(wc, null, null, 512), [[ne, L(v) === e.option.node_id && L(m)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6872
|
+
B.value ? (D(), i(Dc, {
|
|
6874
6873
|
key: 0,
|
|
6875
6874
|
"is-last": V.value
|
|
6876
6875
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6885,7 +6884,7 @@ var so = {
|
|
|
6885
6884
|
"settings",
|
|
6886
6885
|
"selected",
|
|
6887
6886
|
"params"
|
|
6888
|
-
])) : (D(), i(
|
|
6887
|
+
])) : (D(), i(Cc, {
|
|
6889
6888
|
key: 2,
|
|
6890
6889
|
label: e.option.label,
|
|
6891
6890
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6943,7 +6942,7 @@ var so = {
|
|
|
6943
6942
|
"class",
|
|
6944
6943
|
"onEnd",
|
|
6945
6944
|
"onAdd"
|
|
6946
|
-
])], 8,
|
|
6945
|
+
])], 8, Uc)]),
|
|
6947
6946
|
_: 1
|
|
6948
6947
|
}, 8, [
|
|
6949
6948
|
"modelValue",
|
|
@@ -6951,7 +6950,7 @@ var so = {
|
|
|
6951
6950
|
"summaryStyles",
|
|
6952
6951
|
"summaryClasses",
|
|
6953
6952
|
"defaultOpen"
|
|
6954
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6953
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(Hc, {
|
|
6955
6954
|
key: 1,
|
|
6956
6955
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6957
6956
|
"selected-options": e.selectedOptions,
|
|
@@ -6978,7 +6977,7 @@ var so = {
|
|
|
6978
6977
|
"is-draggable",
|
|
6979
6978
|
"disable-selection",
|
|
6980
6979
|
"is-last-root-item"
|
|
6981
|
-
])) : (D(), o("div",
|
|
6980
|
+
])) : (D(), o("div", Wc, [(D(), i(N(ee.value), {
|
|
6982
6981
|
class: y({ ...L(O)(e.option) }),
|
|
6983
6982
|
option: e.option,
|
|
6984
6983
|
selected: I(e.option.node_id),
|
|
@@ -6995,8 +6994,8 @@ var so = {
|
|
|
6995
6994
|
onContextmenu: n[12] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6996
6995
|
}, {
|
|
6997
6996
|
default: K(() => [
|
|
6998
|
-
ie(u(
|
|
6999
|
-
B.value ? (D(), i(
|
|
6997
|
+
ie(u(wc, null, null, 512), [[ne, L(v) === e.option.node_id && L(m)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6998
|
+
B.value ? (D(), i(Dc, {
|
|
7000
6999
|
key: 0,
|
|
7001
7000
|
"is-last": V.value
|
|
7002
7001
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -7009,7 +7008,7 @@ var so = {
|
|
|
7009
7008
|
"option",
|
|
7010
7009
|
"settings",
|
|
7011
7010
|
"params"
|
|
7012
|
-
])) : (D(), i(
|
|
7011
|
+
])) : (D(), i(Cc, {
|
|
7013
7012
|
key: 2,
|
|
7014
7013
|
label: e.option.label,
|
|
7015
7014
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -7074,12 +7073,12 @@ var so = {
|
|
|
7074
7073
|
"class",
|
|
7075
7074
|
"onEnd",
|
|
7076
7075
|
"onAdd"
|
|
7077
|
-
])], 8,
|
|
7076
|
+
])], 8, Gc)]))]),
|
|
7078
7077
|
_: 1
|
|
7079
7078
|
}, 8, ["active", "level"]);
|
|
7080
7079
|
};
|
|
7081
7080
|
}
|
|
7082
|
-
}), [["__scopeId", "data-v-9583f387"]]),
|
|
7081
|
+
}), [["__scopeId", "data-v-9583f387"]]), qc = (e) => {
|
|
7083
7082
|
let t = [], n = !1;
|
|
7084
7083
|
function r(e) {
|
|
7085
7084
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -7122,7 +7121,7 @@ var so = {
|
|
|
7122
7121
|
newChildren: r
|
|
7123
7122
|
}), n || (n = !0, v(i));
|
|
7124
7123
|
} };
|
|
7125
|
-
},
|
|
7124
|
+
}, Jc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7126
7125
|
__name: "PvTree",
|
|
7127
7126
|
props: /* @__PURE__ */ g({
|
|
7128
7127
|
settings: {},
|
|
@@ -7153,14 +7152,14 @@ var so = {
|
|
|
7153
7152
|
"update:treeOpen"
|
|
7154
7153
|
],
|
|
7155
7154
|
setup(e) {
|
|
7156
|
-
m(
|
|
7157
|
-
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
7155
|
+
m(jc, null) || Pc();
|
|
7156
|
+
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } = qc(a), d = (e, t) => {
|
|
7158
7157
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
7159
7158
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
7160
7159
|
...n.defaultSettings,
|
|
7161
7160
|
...n.settings[t]
|
|
7162
7161
|
}, e), {}));
|
|
7163
|
-
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(
|
|
7162
|
+
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(Kc, {
|
|
7164
7163
|
"is-last-root-item": n === a.value.length - 1,
|
|
7165
7164
|
"is-parent-path-open": !0,
|
|
7166
7165
|
"tree-open": c.value,
|
|
@@ -7185,19 +7184,19 @@ var so = {
|
|
|
7185
7184
|
"onUpdate:children"
|
|
7186
7185
|
])]))), 128))], 2)]));
|
|
7187
7186
|
}
|
|
7188
|
-
}), [["__scopeId", "data-v-0b4ec4c6"]]),
|
|
7187
|
+
}), [["__scopeId", "data-v-0b4ec4c6"]]), Yc = /* @__PURE__ */ d({
|
|
7189
7188
|
__name: "PvTreeGroup",
|
|
7190
7189
|
setup(e) {
|
|
7191
|
-
return
|
|
7190
|
+
return Pc(), (e, t) => j(e.$slots, "default");
|
|
7192
7191
|
}
|
|
7193
|
-
}),
|
|
7192
|
+
}), Xc = { class: "pv-full-width" }, Zc = {
|
|
7194
7193
|
key: 0,
|
|
7195
7194
|
class: "pv-flex pv-stack-4",
|
|
7196
7195
|
style: { "--flex-justify": "space-between" }
|
|
7197
|
-
},
|
|
7196
|
+
}, Qc = {
|
|
7198
7197
|
key: 1,
|
|
7199
7198
|
class: "pv-text-subdued pv-text-title-sm"
|
|
7200
|
-
},
|
|
7199
|
+
}, $c = ["data-disabled"], el = /* @__PURE__ */ d({
|
|
7201
7200
|
__name: "PvProgressBar",
|
|
7202
7201
|
props: {
|
|
7203
7202
|
disabled: {
|
|
@@ -7214,24 +7213,21 @@ var so = {
|
|
|
7214
7213
|
},
|
|
7215
7214
|
setup(e) {
|
|
7216
7215
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
7217
|
-
return (r, c) => (D(), o("div",
|
|
7216
|
+
return (r, c) => (D(), o("div", Xc, [e.showLabel || e.secondaryLabel ? (D(), o("div", Zc, [e.showLabel ? (D(), o("p", {
|
|
7218
7217
|
key: 0,
|
|
7219
7218
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
7220
|
-
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
7219
|
+
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", Qc, I(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
7221
7220
|
class: "pv-progress-bar",
|
|
7222
7221
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
7223
7222
|
style: x({ "--progress": `${n.value}%` })
|
|
7224
|
-
}, null, 12,
|
|
7225
|
-
}
|
|
7226
|
-
}), el = {
|
|
7227
|
-
class: "pv-flex",
|
|
7228
|
-
style: {
|
|
7229
|
-
"--flex-gap": "4px",
|
|
7230
|
-
height: "24px"
|
|
7223
|
+
}, null, 12, $c)]));
|
|
7231
7224
|
}
|
|
7232
|
-
}, tl = /* @__PURE__ */ d({
|
|
7225
|
+
}), tl = /* @__PURE__ */ d({
|
|
7233
7226
|
__name: "PvDistributionBar",
|
|
7234
|
-
props: {
|
|
7227
|
+
props: {
|
|
7228
|
+
size: { default: "lg" },
|
|
7229
|
+
values: {}
|
|
7230
|
+
},
|
|
7235
7231
|
setup(e) {
|
|
7236
7232
|
let n = e, i = r(() => n.values?.reduce((e, t) => e + t, 0) ?? 0), a = r(() => n.values?.findIndex((e) => e > 0) ?? -1), s = r(() => n.values?.findLastIndex((e) => e > 0) ?? -1), c = (e, t) => {
|
|
7237
7233
|
let n = t === a.value, r = t === s.value, o = (e) => e ? "12px" : "0";
|
|
@@ -7240,7 +7236,16 @@ var so = {
|
|
|
7240
7236
|
height: "100%",
|
|
7241
7237
|
borderRadius: `${o(n)} ${o(r)} ${o(r)} ${o(n)}`
|
|
7242
7238
|
};
|
|
7243
|
-
}, l = (
|
|
7239
|
+
}, l = r(() => {
|
|
7240
|
+
let e = { "--flex-gap": "4px" };
|
|
7241
|
+
return n.size === "xs" ? {
|
|
7242
|
+
...e,
|
|
7243
|
+
height: "8px"
|
|
7244
|
+
} : {
|
|
7245
|
+
...e,
|
|
7246
|
+
height: "24px"
|
|
7247
|
+
};
|
|
7248
|
+
}), u = (e) => {
|
|
7244
7249
|
switch (e) {
|
|
7245
7250
|
case 0: return "pv-data-surface-visualization-1";
|
|
7246
7251
|
case 1: return "pv-data-surface-visualization-2";
|
|
@@ -7252,11 +7257,14 @@ var so = {
|
|
|
7252
7257
|
default: return "pv-data-surface-visualization-1";
|
|
7253
7258
|
}
|
|
7254
7259
|
};
|
|
7255
|
-
return (n, r) => (D(), o("div",
|
|
7260
|
+
return (n, r) => (D(), o("div", {
|
|
7261
|
+
class: "pv-flex",
|
|
7262
|
+
style: x(l.value)
|
|
7263
|
+
}, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
7256
7264
|
key: t,
|
|
7257
|
-
class: y([
|
|
7265
|
+
class: y([u(t)]),
|
|
7258
7266
|
style: x(c(e, t))
|
|
7259
|
-
}, null, 6))), 128))]));
|
|
7267
|
+
}, null, 6))), 128))], 4));
|
|
7260
7268
|
}
|
|
7261
7269
|
}), nl = {
|
|
7262
7270
|
key: 0,
|
|
@@ -7797,7 +7805,7 @@ var so = {
|
|
|
7797
7805
|
disabled: e.disabled,
|
|
7798
7806
|
name: e.name,
|
|
7799
7807
|
onChange: g
|
|
7800
|
-
}, null, 40, yl)) : (D(), i(
|
|
7808
|
+
}, null, 40, yl)) : (D(), i(Ms, {
|
|
7801
7809
|
key: 1,
|
|
7802
7810
|
ariaLabel: e.ariaLabel || e.label,
|
|
7803
7811
|
disabled: e.disabled,
|
|
@@ -8682,7 +8690,7 @@ var so = {
|
|
|
8682
8690
|
label: "Clear",
|
|
8683
8691
|
variant: "ghost",
|
|
8684
8692
|
onClick: r[1] ||= (e) => Oe(null)
|
|
8685
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", Ku, [u(
|
|
8693
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", Ku, [u(Ms, {
|
|
8686
8694
|
disabled: B.value,
|
|
8687
8695
|
modelValue: e.filter.existsValue ?? !1,
|
|
8688
8696
|
"onUpdate:modelValue": ke
|
|
@@ -10560,7 +10568,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10560
10568
|
"disabled",
|
|
10561
10569
|
"placeholder"
|
|
10562
10570
|
]),
|
|
10563
|
-
Object.keys(H.value).length ? (D(), o("div", Wf, [(D(!0), o(t, null, A(H.value, (e, t) => (D(), i(
|
|
10571
|
+
Object.keys(H.value).length ? (D(), o("div", Wf, [(D(!0), o(t, null, A(H.value, (e, t) => (D(), i(es, {
|
|
10564
10572
|
key: `facet-${t}`,
|
|
10565
10573
|
disabled: M.value?.disabled,
|
|
10566
10574
|
label: e.headerName || L(Ce)(t),
|
|
@@ -10688,7 +10696,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10688
10696
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10689
10697
|
tabindex: e.options.length ? 0 : void 0,
|
|
10690
10698
|
"data-testid": "pv-hover-action-menu"
|
|
10691
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", $f, [u(
|
|
10699
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", $f, [u(bc, {
|
|
10692
10700
|
variant: e.variant,
|
|
10693
10701
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10694
10702
|
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
@@ -11040,7 +11048,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11040
11048
|
"aria-describedby": e ? F(r) : void 0,
|
|
11041
11049
|
class: y({ "pv-query-builder-option-active": t === ue.value }),
|
|
11042
11050
|
onMouseenter: (e) => me(t)
|
|
11043
|
-
}, [u(
|
|
11051
|
+
}, [u(Ro, _({ ref_for: !0 }, t, {
|
|
11044
11052
|
config: l,
|
|
11045
11053
|
queryText: p.value,
|
|
11046
11054
|
onHandleSelected: (e) => ge(t)
|
|
@@ -11740,7 +11748,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11740
11748
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
11741
11749
|
}, null, 10, Cm))), 128)) : (D(!0), o(t, { key: 2 }, A(e.items, (t, r) => (D(), o("div", {
|
|
11742
11750
|
key: r,
|
|
11743
|
-
class: "pv-flex pv-full-width",
|
|
11751
|
+
class: y(["pv-flex pv-full-width", [{ "pv-flex-item": r === c.value - 1 }]]),
|
|
11744
11752
|
style: { "--flex-gap": "0.25rem" }
|
|
11745
11753
|
}, [s("div", {
|
|
11746
11754
|
class: "pv-flex",
|
|
@@ -11756,7 +11764,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11756
11764
|
}, null, 8, ["name", "class"]), s("span", { class: y(["pv-text-body-md", f[t.variant ?? "current"].text]) }, I(t.label), 3)], 12, wm), r < c.value - 1 ? (D(), o("div", {
|
|
11757
11765
|
key: 0,
|
|
11758
11766
|
class: y(["pv-stepper-progress-divider", m[t.variant ?? "current"]])
|
|
11759
|
-
}, null, 2)) : a("", !0)]))), 128))], 4));
|
|
11767
|
+
}, null, 2)) : a("", !0)], 2))), 128))], 4));
|
|
11760
11768
|
}
|
|
11761
11769
|
}), Em = { theme: {
|
|
11762
11770
|
preset: Te,
|
|
@@ -11792,6 +11800,6 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11792
11800
|
});
|
|
11793
11801
|
};
|
|
11794
11802
|
//#endregion
|
|
11795
|
-
export { ki as ContextCardEnum, ai as PvAccordion,
|
|
11803
|
+
export { ki as ContextCardEnum, ai as PvAccordion, bc as PvActionBar, or as PvActionButton, lr as PvAiButton, Ka as PvAvatar, Es as PvAvatarGroup, Yr as PvBanner, Va as PvBreadcrumbs, $ as PvButton, mr as PvButtonWithTooltip, lc as PvCard, Ms as PvCheckbox, Fi as PvCompanyLabel, Lr as PvCompanyLogo, ei as PvCompanyTag, ia as PvContextFeedback, Ca as PvContextSurface, Ni as PvContextSurfaceKey, He as PvCounterBadge, _i as PvDatePicker, yi as PvDateTime, tl as PvDistributionBar, Oi as PvDrawer, Dr as PvDropdown, $r as PvEmptyErrorState, vc as PvExpandableContent, Xs as PvFileInput, Zf as PvFilterModal, Pf as PvFilterPanel, Ma as PvGhostInput, Cs as PvHeader, cd as PvHorizontalScroller, tp as PvHoverActionMenu, Z as PvIcon, Us as PvInput, _c as PvInsightCard, Ko as PvMenu, Ro as PvMenuItem, Ur as PvModal, es as PvMultiSelectButton, us as PvPagination, xr as PvPill, wr as PvPopover, kr as PvPopoverMenu, nr as PvPopoverV2, el as PvProgressBar, up as PvQueryBuilderInput, Is as PvRadioGroup, vl as PvRange, $s as PvRating, vr as PvReleaseBadge, ui as PvSearchInput, Ar as PvSegmentedControl, rs as PvSelectButton, ps as PvSelectableCard, vs as PvSidePanel, mp as PvSidebar, _m as PvSidebarV2, Rs as PvSkeleton, ua as PvSpinesContextCard, ma as PvSpinesContextDrawer, ka as PvSpinesEntityFields, Ne as PvSpinner, _r as PvSplitButton, Ls as PvSprite, Tm as PvStepper, ri as PvSuggestionTag, vo as PvSwitch, Pr as PvTabList, xm as PvTableOfContents, Ra as PvTabs, br as PvTag, Gi as PvTextArea, Zi as PvToast, Yi as PvToggleButton, As as PvToggleGroup, fr as PvTooltip, ir as PvTooltipV2, Jc as PvTree, Yc as PvTreeGroup, uc as PvWidget, Om as RumContextKey, Am as addRumAction, df as createPvFilterStore, jm as deferRumTask, ff as providePvFilterStore, vi as useDateTime, pf as useOptionalPvFilterStore, Dm as usePvComponents, mf as usePvFilterStore, km as useRumContext };
|
|
11796
11804
|
|
|
11797
11805
|
//# sourceMappingURL=pv-components-base.mjs.map
|