@turquoisehealth/pit-viper 2.245.0 → 2.246.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/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-breadcrumbs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/ai/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/base/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +793 -781
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/base/PvToast/PvToast.vue.d.ts +4 -0
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +25 -21
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +16 -8
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -3102,7 +3102,11 @@ var vi = () => ({
|
|
|
3102
3102
|
props: {
|
|
3103
3103
|
variant: { default: "info" },
|
|
3104
3104
|
icon: {},
|
|
3105
|
-
label: {}
|
|
3105
|
+
label: {},
|
|
3106
|
+
loading: {
|
|
3107
|
+
type: Boolean,
|
|
3108
|
+
default: !1
|
|
3109
|
+
}
|
|
3106
3110
|
},
|
|
3107
3111
|
emits: ["handle-close"],
|
|
3108
3112
|
setup(e) {
|
|
@@ -3117,11 +3121,15 @@ var vi = () => ({
|
|
|
3117
3121
|
error: "alert-circle",
|
|
3118
3122
|
dark: "ai"
|
|
3119
3123
|
};
|
|
3120
|
-
return (r,
|
|
3121
|
-
|
|
3124
|
+
return (r, a) => (D(), o("div", { class: y(t[e.variant]) }, [
|
|
3125
|
+
e.loading ? (D(), i(Ne, {
|
|
3126
|
+
key: 0,
|
|
3127
|
+
size: "sm"
|
|
3128
|
+
})) : (D(), i(Z, {
|
|
3129
|
+
key: 1,
|
|
3122
3130
|
name: e.icon ? e.icon : n[e.variant],
|
|
3123
3131
|
size: 20
|
|
3124
|
-
}, null, 8, ["name"]),
|
|
3132
|
+
}, null, 8, ["name"])),
|
|
3125
3133
|
s("p", Xi, I(e.label), 1),
|
|
3126
3134
|
j(r.$slots, "default"),
|
|
3127
3135
|
u($, {
|
|
@@ -3130,7 +3138,7 @@ var vi = () => ({
|
|
|
3130
3138
|
size: "lg",
|
|
3131
3139
|
"left-icon": "close",
|
|
3132
3140
|
ariaLabel: "Close",
|
|
3133
|
-
onClick:
|
|
3141
|
+
onClick: a[0] ||= (e) => r.$emit("handle-close")
|
|
3134
3142
|
}, null, 8, ["inverse"])
|
|
3135
3143
|
], 2));
|
|
3136
3144
|
}
|
|
@@ -3728,19 +3736,23 @@ var vi = () => ({
|
|
|
3728
3736
|
class: "pv-breadcrumbs",
|
|
3729
3737
|
role: "list",
|
|
3730
3738
|
"data-testid": "pv-breadcrumbs"
|
|
3731
|
-
}, Ba = ["href"], Va = /* @__PURE__ */ d({
|
|
3739
|
+
}, Ba = ["href"], Va = ["onClick"], Ha = /* @__PURE__ */ d({
|
|
3732
3740
|
__name: "PvBreadcrumbs",
|
|
3733
3741
|
props: { options: {} },
|
|
3742
|
+
emits: ["handle-click"],
|
|
3734
3743
|
setup(e) {
|
|
3735
|
-
return (n, r) => (D(), o("ul", za, [(D(!0), o(t, null, A(e.options, (e,
|
|
3744
|
+
return (n, r) => (D(), o("ul", za, [(D(!0), o(t, null, A(e.options, (e, t) => (D(), o("li", { key: `${t}-${e.label}` }, [e.href ? (D(), o("a", {
|
|
3736
3745
|
key: 0,
|
|
3737
3746
|
href: e.href
|
|
3738
|
-
}, I(e.label), 9, Ba)) : (D(), o(
|
|
3747
|
+
}, I(e.label), 9, Ba)) : (D(), o("span", {
|
|
3748
|
+
key: 1,
|
|
3749
|
+
onClick: (t) => n.$emit("handle-click", e.label)
|
|
3750
|
+
}, I(e.label), 9, Va))]))), 128))]));
|
|
3739
3751
|
}
|
|
3740
|
-
}),
|
|
3752
|
+
}), Ua = {
|
|
3741
3753
|
"data-testid": "pv-select-menu-control-panel",
|
|
3742
3754
|
class: "pv-flex pv-space-between"
|
|
3743
|
-
},
|
|
3755
|
+
}, Wa = /* @__PURE__ */ d({
|
|
3744
3756
|
__name: "PvMenuControlPanel",
|
|
3745
3757
|
props: {
|
|
3746
3758
|
variant: {},
|
|
@@ -3755,7 +3767,7 @@ var vi = () => ({
|
|
|
3755
3767
|
],
|
|
3756
3768
|
setup(e) {
|
|
3757
3769
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
3758
|
-
return (n, r) => (D(), o("div",
|
|
3770
|
+
return (n, r) => (D(), o("div", Ua, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u($, {
|
|
3759
3771
|
variant: "ghost",
|
|
3760
3772
|
"data-testid": "pv-select-menu-item-select-all",
|
|
3761
3773
|
"data-dd-action-name": i.value,
|
|
@@ -3782,7 +3794,7 @@ var vi = () => ({
|
|
|
3782
3794
|
disabled: e.disabled
|
|
3783
3795
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
3784
3796
|
}
|
|
3785
|
-
}),
|
|
3797
|
+
}), Ga = ["data-style", "data-shape"], Ka = ["src", "alt"], qa = /* @__PURE__ */ d({
|
|
3786
3798
|
__name: "PvAvatar",
|
|
3787
3799
|
props: {
|
|
3788
3800
|
alt: {},
|
|
@@ -3820,14 +3832,14 @@ var vi = () => ({
|
|
|
3820
3832
|
key: 2,
|
|
3821
3833
|
src: e.image,
|
|
3822
3834
|
alt: e.alt ?? ""
|
|
3823
|
-
}, null, 8,
|
|
3835
|
+
}, null, 8, Ka)) : a("", !0)], 10, Ga));
|
|
3824
3836
|
}
|
|
3825
|
-
}),
|
|
3837
|
+
}), Ja = ["disabled"], Ya = { class: "pv-flex pv-select-button-trigger-content" }, Xa = {
|
|
3826
3838
|
key: 0,
|
|
3827
3839
|
"data-testid": "pv-select-prefix-label",
|
|
3828
3840
|
class: "pv-border-right pv-text-quaternary",
|
|
3829
3841
|
style: { "padding-right": "4px" }
|
|
3830
|
-
},
|
|
3842
|
+
}, Za = ["title"], Qa = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
3831
3843
|
__name: "PvSelectButtonTrigger",
|
|
3832
3844
|
props: {
|
|
3833
3845
|
avatar: {},
|
|
@@ -3881,8 +3893,8 @@ var vi = () => ({
|
|
|
3881
3893
|
style: { "--flex-gap": "0.25rem" },
|
|
3882
3894
|
disabled: e.disabled || e.isLoading
|
|
3883
3895
|
}, [
|
|
3884
|
-
s("div",
|
|
3885
|
-
e.prefixLabel ? (D(), o("p",
|
|
3896
|
+
s("div", Ya, [
|
|
3897
|
+
e.prefixLabel ? (D(), o("p", Xa, I(e.prefixLabel), 1)) : a("", !0),
|
|
3886
3898
|
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (D(), i(He, {
|
|
3887
3899
|
key: 1,
|
|
3888
3900
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
@@ -3902,7 +3914,7 @@ var vi = () => ({
|
|
|
3902
3914
|
name: e.companyLogo,
|
|
3903
3915
|
size: "sm"
|
|
3904
3916
|
}, null, 8, ["name"])) : a("", !0),
|
|
3905
|
-
e.avatar ? (D(), i(
|
|
3917
|
+
e.avatar ? (D(), i(qa, {
|
|
3906
3918
|
key: 2,
|
|
3907
3919
|
class: "pv-select-button-trigger-avatar",
|
|
3908
3920
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -3922,7 +3934,7 @@ var vi = () => ({
|
|
|
3922
3934
|
key: 3,
|
|
3923
3935
|
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
3924
3936
|
title: p.value
|
|
3925
|
-
}, I(p.value), 9,
|
|
3937
|
+
}, I(p.value), 9, Za)) : a("", !0)
|
|
3926
3938
|
], 64)),
|
|
3927
3939
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (D(), i(He, {
|
|
3928
3940
|
key: 4,
|
|
@@ -3957,26 +3969,26 @@ var vi = () => ({
|
|
|
3957
3969
|
"tooltip-content": K(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
3958
3970
|
_: 1
|
|
3959
3971
|
})) : a("", !0)
|
|
3960
|
-
], 10,
|
|
3972
|
+
], 10, Ja));
|
|
3961
3973
|
}
|
|
3962
|
-
}), [["__scopeId", "data-v-da9865ad"]]),
|
|
3963
|
-
function
|
|
3964
|
-
return D(), o("div",
|
|
3974
|
+
}), [["__scopeId", "data-v-da9865ad"]]), $a = {}, eo = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
3975
|
+
function to(e, t) {
|
|
3976
|
+
return D(), o("div", eo, "No Results Found");
|
|
3965
3977
|
}
|
|
3966
|
-
var
|
|
3978
|
+
var no = /* @__PURE__ */ Q($a, [["render", to]]);
|
|
3967
3979
|
//#endregion
|
|
3968
3980
|
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
3969
|
-
function
|
|
3981
|
+
function ro(e) {
|
|
3970
3982
|
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
3971
3983
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return e.flatMap((e) => e.children?.length ?
|
|
3984
|
+
function io(e) {
|
|
3985
|
+
return e.flatMap((e) => e.children?.length ? io(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
3974
3986
|
}
|
|
3975
|
-
function
|
|
3987
|
+
function ao(e, t) {
|
|
3976
3988
|
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
3977
3989
|
return r.length > 0 ? [...e, ...r] : e;
|
|
3978
3990
|
}
|
|
3979
|
-
function
|
|
3991
|
+
function oo(e, t) {
|
|
3980
3992
|
let n = (e) => {
|
|
3981
3993
|
let r = 0, i = 0, a = 0;
|
|
3982
3994
|
for (let o of e) if (o.children?.length) {
|
|
@@ -3991,14 +4003,14 @@ function ao(e, t) {
|
|
|
3991
4003
|
};
|
|
3992
4004
|
return n(e).displayCount;
|
|
3993
4005
|
}
|
|
3994
|
-
function
|
|
4006
|
+
function so(e) {
|
|
3995
4007
|
return e.filter((e) => e.state === "selected").length;
|
|
3996
4008
|
}
|
|
3997
|
-
function
|
|
4009
|
+
function co(e, t, n = !0) {
|
|
3998
4010
|
return e.flatMap((e) => {
|
|
3999
4011
|
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
4000
4012
|
if (e.children?.length) {
|
|
4001
|
-
let r =
|
|
4013
|
+
let r = co(e.children, t, n);
|
|
4002
4014
|
if (r.length) return n ? [{
|
|
4003
4015
|
...e,
|
|
4004
4016
|
children: r
|
|
@@ -4009,20 +4021,20 @@ function so(e, t, n = !0) {
|
|
|
4009
4021
|
}
|
|
4010
4022
|
//#endregion
|
|
4011
4023
|
//#region src/components/base/PvMenu/items/PvMenuBaseItem.vue?vue&type=script&setup=true&lang.ts
|
|
4012
|
-
var
|
|
4024
|
+
var lo = {
|
|
4013
4025
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
4014
4026
|
style: {
|
|
4015
4027
|
"align-items": "flex-start",
|
|
4016
4028
|
"--flex-gap": "0"
|
|
4017
4029
|
}
|
|
4018
|
-
},
|
|
4030
|
+
}, uo = ["title"], fo = ["title"], po = { style: {
|
|
4019
4031
|
"max-width": "220px",
|
|
4020
4032
|
"white-space": "normal",
|
|
4021
4033
|
"overflow-wrap": "break-word"
|
|
4022
|
-
} },
|
|
4034
|
+
} }, mo = {
|
|
4023
4035
|
key: 7,
|
|
4024
4036
|
class: "pv-text-subdued pv-text-body-xs"
|
|
4025
|
-
},
|
|
4037
|
+
}, ho = /* @__PURE__ */ d({
|
|
4026
4038
|
inheritAttrs: !1,
|
|
4027
4039
|
__name: "PvMenuBaseItem",
|
|
4028
4040
|
props: {
|
|
@@ -4084,7 +4096,7 @@ var co = {
|
|
|
4084
4096
|
], () => {
|
|
4085
4097
|
g();
|
|
4086
4098
|
}, { flush: "post" }), (n, r) => (D(), o(t, null, [
|
|
4087
|
-
e.avatar ? (D(), i(
|
|
4099
|
+
e.avatar ? (D(), i(qa, {
|
|
4088
4100
|
key: 0,
|
|
4089
4101
|
initials: e.avatar.initials,
|
|
4090
4102
|
image: e.avatar.image,
|
|
@@ -4113,7 +4125,7 @@ var co = {
|
|
|
4113
4125
|
name: e.companyName,
|
|
4114
4126
|
size: "sm"
|
|
4115
4127
|
}, null, 8, ["name"])) : a("", !0),
|
|
4116
|
-
s("div",
|
|
4128
|
+
s("div", lo, [s("span", {
|
|
4117
4129
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
4118
4130
|
title: e.hoverTitle ?? e.text
|
|
4119
4131
|
}, [s("span", {
|
|
@@ -4123,7 +4135,7 @@ var co = {
|
|
|
4123
4135
|
key: 0,
|
|
4124
4136
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
4125
4137
|
style: { "padding-left": "4px" }
|
|
4126
|
-
}, I(e.subduedText), 3)) : a("", !0)], 8,
|
|
4138
|
+
}, I(e.subduedText), 3)) : a("", !0)], 8, uo), p.value ? (D(), o("span", {
|
|
4127
4139
|
key: 0,
|
|
4128
4140
|
ref_key: "subText",
|
|
4129
4141
|
ref: l,
|
|
@@ -4134,7 +4146,7 @@ var co = {
|
|
|
4134
4146
|
{ "pv-text-subdued": !e.disabled }
|
|
4135
4147
|
]),
|
|
4136
4148
|
title: e.hoverTitle ?? p.value
|
|
4137
|
-
}, I(p.value), 11,
|
|
4149
|
+
}, I(p.value), 11, fo)) : a("", !0)]),
|
|
4138
4150
|
e.secondaryLoading ? (D(), i(Ne, {
|
|
4139
4151
|
key: 3,
|
|
4140
4152
|
size: "xs",
|
|
@@ -4163,20 +4175,20 @@ var co = {
|
|
|
4163
4175
|
class: "pv-text-subdued",
|
|
4164
4176
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"])
|
|
4165
4177
|
})]),
|
|
4166
|
-
content: K(() => [s("div",
|
|
4178
|
+
content: K(() => [s("div", po, I(e.description), 1)]),
|
|
4167
4179
|
_: 1
|
|
4168
4180
|
})) : e.secondaryText && typeof e.secondaryText == "number" ? (D(), i(He, {
|
|
4169
4181
|
key: 6,
|
|
4170
4182
|
value: e.secondaryText,
|
|
4171
4183
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
4172
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span",
|
|
4184
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (D(), o("span", mo, I(e.secondaryText), 1)) : a("", !0)
|
|
4173
4185
|
], 64));
|
|
4174
4186
|
}
|
|
4175
|
-
}),
|
|
4187
|
+
}), go = ["for"], _o = { key: 0 }, vo = [
|
|
4176
4188
|
"disabled",
|
|
4177
4189
|
"aria-label",
|
|
4178
4190
|
"id"
|
|
4179
|
-
],
|
|
4191
|
+
], yo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4180
4192
|
__name: "PvSwitch",
|
|
4181
4193
|
props: /* @__PURE__ */ g({
|
|
4182
4194
|
size: { default: "md" },
|
|
@@ -4208,16 +4220,16 @@ var co = {
|
|
|
4208
4220
|
"pv-input-xsmall": e.size === "sm",
|
|
4209
4221
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
4210
4222
|
}])
|
|
4211
|
-
}, [e.label ? (D(), o("span",
|
|
4223
|
+
}, [e.label ? (D(), o("span", _o, I(e.label), 1)) : a("", !0), ie(s("input", {
|
|
4212
4224
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
4213
4225
|
disabled: e.disabled,
|
|
4214
4226
|
"aria-label": e.ariaLabel,
|
|
4215
4227
|
type: "checkbox",
|
|
4216
4228
|
role: "switch",
|
|
4217
4229
|
id: L(t)
|
|
4218
|
-
}, null, 8,
|
|
4230
|
+
}, null, 8, vo), [[te, n.value]])], 10, go));
|
|
4219
4231
|
}
|
|
4220
|
-
}), [["__scopeId", "data-v-73e6d2b2"]]),
|
|
4232
|
+
}), [["__scopeId", "data-v-73e6d2b2"]]), bo = ["aria-label"], xo = /* @__PURE__ */ d({
|
|
4221
4233
|
__name: "PvMenuItemAction",
|
|
4222
4234
|
props: {
|
|
4223
4235
|
action: {},
|
|
@@ -4254,7 +4266,7 @@ var co = {
|
|
|
4254
4266
|
role: "img",
|
|
4255
4267
|
"aria-label": o.value,
|
|
4256
4268
|
onClick: t[0] ||= q(() => {}, ["stop"])
|
|
4257
|
-
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10,
|
|
4269
|
+
}, [u(Z, { name: n.value }, null, 8, ["name"])], 10, bo)]),
|
|
4258
4270
|
_: 2
|
|
4259
4271
|
}, [o.value ? {
|
|
4260
4272
|
name: "content",
|
|
@@ -4262,7 +4274,7 @@ var co = {
|
|
|
4262
4274
|
key: "0"
|
|
4263
4275
|
} : void 0]), 1024));
|
|
4264
4276
|
}
|
|
4265
|
-
}),
|
|
4277
|
+
}), So = Symbol("SelectedItemsKey"), Co = Symbol("EnableCascadeSelectionKey"), wo = Symbol("MenuInteractionModeKey"), To = Symbol("MenuAncestorIdsKey"), Eo = Symbol("OriginalOptionsMapKey"), Do = Symbol("CascadeSelectedParentIdsKey"), Oo = Symbol("CascadeDeselectedChildIdsKey"), ko = Symbol("ParentSelectsAllChildrenKey"), Ao = Symbol("EnableChildExpansionKey"), jo = ["data-testid"], Mo = [
|
|
4266
4278
|
"hidden",
|
|
4267
4279
|
"type",
|
|
4268
4280
|
"checked",
|
|
@@ -4270,10 +4282,10 @@ var co = {
|
|
|
4270
4282
|
"tabindex",
|
|
4271
4283
|
"aria-hidden",
|
|
4272
4284
|
"disabled"
|
|
4273
|
-
],
|
|
4285
|
+
], No = {
|
|
4274
4286
|
key: 4,
|
|
4275
4287
|
class: "pv-menu-item-action"
|
|
4276
|
-
},
|
|
4288
|
+
}, Po = ["aria-label", "aria-expanded"], Fo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4277
4289
|
inheritAttrs: !1,
|
|
4278
4290
|
__name: "PvMenuItemVariant",
|
|
4279
4291
|
props: {
|
|
@@ -4313,17 +4325,17 @@ var co = {
|
|
|
4313
4325
|
},
|
|
4314
4326
|
emits: ["handle-selected", "toggle-expanded"],
|
|
4315
4327
|
setup(e, { emit: t }) {
|
|
4316
|
-
let n = e, c = V("inputRef"), l = m(
|
|
4317
|
-
if (!d.value || !
|
|
4318
|
-
let e = n.children ?
|
|
4328
|
+
let n = e, c = V("inputRef"), l = m(So, void 0), d = m(Co, k(!1)), p = m(Eo, void 0), h = m(Do, void 0), g = m(wo, r(() => !1)), b = r(() => {
|
|
4329
|
+
if (!d.value || !ro(n)) return [];
|
|
4330
|
+
let e = n.children ? io(n.children) : [];
|
|
4319
4331
|
if (p?.value) {
|
|
4320
4332
|
let t = p.value.get(n.id);
|
|
4321
|
-
return
|
|
4333
|
+
return ao(t?.children ? io(t.children) : [], e);
|
|
4322
4334
|
}
|
|
4323
4335
|
return e;
|
|
4324
4336
|
}), x = r(() => {
|
|
4325
4337
|
if (!l?.value) return n.selected ?? !1;
|
|
4326
|
-
if (d.value &&
|
|
4338
|
+
if (d.value && ro(n)) {
|
|
4327
4339
|
let e = b.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4328
4340
|
if (h?.value?.has(n.id) && r >= t) return !0;
|
|
4329
4341
|
let i = n.totalChildCount ?? t;
|
|
@@ -4331,7 +4343,7 @@ var co = {
|
|
|
4331
4343
|
}
|
|
4332
4344
|
return l.value.some((e) => e.id === n.id);
|
|
4333
4345
|
}), S = r(() => {
|
|
4334
|
-
if (!l?.value || !d.value || !
|
|
4346
|
+
if (!l?.value || !d.value || !ro(n)) return n.indeterminate ?? !1;
|
|
4335
4347
|
let e = b.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
4336
4348
|
if (h?.value?.has(n.id) && r >= t) return !1;
|
|
4337
4349
|
let i = n.totalChildCount ?? t;
|
|
@@ -4385,8 +4397,8 @@ var co = {
|
|
|
4385
4397
|
"aria-hidden": L(g) ? !0 : void 0,
|
|
4386
4398
|
disabled: e.disabled,
|
|
4387
4399
|
onChange: r[0] ||= (e) => L(g) ? void 0 : I(e)
|
|
4388
|
-
}, null, 42,
|
|
4389
|
-
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(
|
|
4400
|
+
}, null, 42, Mo),
|
|
4401
|
+
e.menuOptionConfig?.renderer ? (D(), i(N(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: x.value }), null, 16, ["selected"])) : (D(), i(ho, _({ key: 1 }, T.value, {
|
|
4390
4402
|
menuOptionConfig: e.menuOptionConfig,
|
|
4391
4403
|
queryText: e.queryText,
|
|
4392
4404
|
highlightSearchText: e.highlightSearchText
|
|
@@ -4400,7 +4412,7 @@ var co = {
|
|
|
4400
4412
|
name: "check",
|
|
4401
4413
|
class: "pv-text-success"
|
|
4402
4414
|
})) : a("", !0),
|
|
4403
|
-
e.menuOptionConfig?.variant === "toggle" ? (D(), i(
|
|
4415
|
+
e.menuOptionConfig?.variant === "toggle" ? (D(), i(yo, {
|
|
4404
4416
|
key: 3,
|
|
4405
4417
|
modelValue: x.value,
|
|
4406
4418
|
ariaLabel: n.text || "Toggle",
|
|
@@ -4408,7 +4420,7 @@ var co = {
|
|
|
4408
4420
|
hideCheckIcon: "",
|
|
4409
4421
|
style: { "pointer-events": "none" }
|
|
4410
4422
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("", !0),
|
|
4411
|
-
E.value ? (D(), o("span",
|
|
4423
|
+
E.value ? (D(), o("span", No, [u(xo, {
|
|
4412
4424
|
action: E.value,
|
|
4413
4425
|
option: n,
|
|
4414
4426
|
disabled: e.disabled
|
|
@@ -4427,10 +4439,10 @@ var co = {
|
|
|
4427
4439
|
}, [u(Z, {
|
|
4428
4440
|
name: e.chevronIcon ?? "chevron-right",
|
|
4429
4441
|
size: 12
|
|
4430
|
-
}, null, 8, ["name"])], 8,
|
|
4431
|
-
], 16,
|
|
4442
|
+
}, null, 8, ["name"])], 8, Po)) : a("", !0)
|
|
4443
|
+
], 16, jo));
|
|
4432
4444
|
}
|
|
4433
|
-
}), [["__scopeId", "data-v-9130f2b2"]]),
|
|
4445
|
+
}), [["__scopeId", "data-v-9130f2b2"]]), Io = ["data-active"], Lo = { key: 0 }, Ro = 4, zo = /* @__PURE__ */ d({
|
|
4434
4446
|
inheritAttrs: !1,
|
|
4435
4447
|
__name: "PvMenuItem",
|
|
4436
4448
|
props: /* @__PURE__ */ g({
|
|
@@ -4469,7 +4481,7 @@ var co = {
|
|
|
4469
4481
|
}),
|
|
4470
4482
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
4471
4483
|
setup(e, { emit: n }) {
|
|
4472
|
-
let i = e, s = m(
|
|
4484
|
+
let i = e, s = m(So, void 0), c = z(e, "selectedIds"), l = m(Ao, k(!1)), d = m(ko, k(!1)), f = m(wo, r(() => !1)), p = ee(), h = r(() => {
|
|
4473
4485
|
if (!f.value) return {};
|
|
4474
4486
|
let e = new Set([
|
|
4475
4487
|
"aria-checked",
|
|
@@ -4486,7 +4498,7 @@ var co = {
|
|
|
4486
4498
|
"tabindex"
|
|
4487
4499
|
]);
|
|
4488
4500
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
4489
|
-
}), g = m(
|
|
4501
|
+
}), g = m(Do, void 0), v = m(Oo, void 0), b = k(i.defaultExpanded ?? !1);
|
|
4490
4502
|
G(() => i.defaultExpanded, (e) => {
|
|
4491
4503
|
e && (b.value = !0);
|
|
4492
4504
|
});
|
|
@@ -4504,10 +4516,10 @@ var co = {
|
|
|
4504
4516
|
}, O = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), j = r(() => {
|
|
4505
4517
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
4506
4518
|
return f.value && delete r.selectedIds, r;
|
|
4507
|
-
}), N = r(() =>
|
|
4519
|
+
}), N = r(() => ro({
|
|
4508
4520
|
...i,
|
|
4509
4521
|
children: w.value
|
|
4510
|
-
}) && i.level <
|
|
4522
|
+
}) && i.level < Ro), 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 () => {
|
|
4511
4523
|
if (S.value) return;
|
|
4512
4524
|
if (!i.handleSeeMore) {
|
|
4513
4525
|
R("see-more", {
|
|
@@ -4557,7 +4569,7 @@ var co = {
|
|
|
4557
4569
|
};
|
|
4558
4570
|
return (n, r) => {
|
|
4559
4571
|
let s = M("PvMenuItem", !0);
|
|
4560
|
-
return D(), o(t, null, [u(
|
|
4572
|
+
return D(), o(t, null, [u(Fo, _({
|
|
4561
4573
|
...j.value,
|
|
4562
4574
|
...h.value
|
|
4563
4575
|
}, {
|
|
@@ -4605,7 +4617,7 @@ var co = {
|
|
|
4605
4617
|
"queryText",
|
|
4606
4618
|
"highlightSearchText",
|
|
4607
4619
|
"level"
|
|
4608
|
-
])], 10,
|
|
4620
|
+
])], 10, Io))), 128)), B.value ? (D(), o("li", Lo, [u($, {
|
|
4609
4621
|
class: "pv-text-brand",
|
|
4610
4622
|
variant: "ghost",
|
|
4611
4623
|
label: "See more",
|
|
@@ -4615,12 +4627,12 @@ var co = {
|
|
|
4615
4627
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
4616
4628
|
};
|
|
4617
4629
|
}
|
|
4618
|
-
}),
|
|
4630
|
+
}), Bo = ["role"], Vo = [
|
|
4619
4631
|
"data-active",
|
|
4620
4632
|
"data-option-id",
|
|
4621
4633
|
"data-testid",
|
|
4622
4634
|
"role"
|
|
4623
|
-
],
|
|
4635
|
+
], Ho = ["role"], Uo = ["data-pv-menu-ancestors"], Wo = ["id", "aria-label"], Go = ["data-active", "data-option-id"], Ko = "__pv-menu-see-more__", qo = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
4624
4636
|
inheritAttrs: !1,
|
|
4625
4637
|
__name: "PvMenu",
|
|
4626
4638
|
props: /* @__PURE__ */ g({
|
|
@@ -4663,8 +4675,8 @@ var co = {
|
|
|
4663
4675
|
}, M = () => {
|
|
4664
4676
|
let e = p.value;
|
|
4665
4677
|
E(), e && v(() => Ce(e));
|
|
4666
|
-
}, N = [...m(
|
|
4667
|
-
O(
|
|
4678
|
+
}, N = [...m(To, []), h];
|
|
4679
|
+
O(To, N), oe(g, (e) => {
|
|
4668
4680
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
4669
4681
|
}, { ignore: [S] });
|
|
4670
4682
|
let P = F(f.value);
|
|
@@ -4676,10 +4688,10 @@ var co = {
|
|
|
4676
4688
|
};
|
|
4677
4689
|
G(P, (e) => {
|
|
4678
4690
|
e !== I && e !== f.value && ee(e);
|
|
4679
|
-
}), O(
|
|
4691
|
+
}), O(So, P), O(wo, r(() => l.childrenDisplay === "popover"));
|
|
4680
4692
|
let B = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
4681
|
-
O(
|
|
4682
|
-
let V = m(
|
|
4693
|
+
O(Co, B);
|
|
4694
|
+
let V = m(Eo, void 0), te = m(ko, k(!1)), H = m(Do, void 0), U = m(Oo, 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) => {
|
|
4683
4695
|
let i = !r || p.value !== e.id;
|
|
4684
4696
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
4685
4697
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
@@ -4693,12 +4705,12 @@ var co = {
|
|
|
4693
4705
|
return;
|
|
4694
4706
|
}
|
|
4695
4707
|
let r;
|
|
4696
|
-
if (B.value &&
|
|
4708
|
+
if (B.value && ro(n)) {
|
|
4697
4709
|
let e;
|
|
4698
4710
|
if (te.value && V?.value) {
|
|
4699
4711
|
let t = V.value.get(n.id);
|
|
4700
|
-
e =
|
|
4701
|
-
} else e = n.children ?
|
|
4712
|
+
e = ao(t?.children ? io(t.children) : [], n.children ? io(n.children) : []);
|
|
4713
|
+
} else e = n.children ? io(n.children) : [];
|
|
4702
4714
|
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));
|
|
4703
4715
|
if (r = a ? i.filter((e) => !t.includes(e.id)) : [...i, ...e], H?.value) {
|
|
4704
4716
|
let e = new Set(H.value);
|
|
@@ -4715,7 +4727,7 @@ var co = {
|
|
|
4715
4727
|
let t = e > -1;
|
|
4716
4728
|
for (let e of H.value) {
|
|
4717
4729
|
let r = V?.value?.get(e)?.children ?? l.options.find((t) => t.id === e)?.children;
|
|
4718
|
-
if (!r || !(
|
|
4730
|
+
if (!r || !(io(r).some((e) => e.id === n.id) || l.options.find((t) => t.id === e)?.children?.some((e) => e.id === n.id))) continue;
|
|
4719
4731
|
let i = new Map(U.value), a = new Set(i.get(e) ?? []);
|
|
4720
4732
|
t ? a.add(n.id) : a.delete(n.id), a.size > 0 ? i.set(e, a) : i.delete(e), U.value = i;
|
|
4721
4733
|
break;
|
|
@@ -4759,7 +4771,7 @@ var co = {
|
|
|
4759
4771
|
return W.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
4760
4772
|
}, 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(() => {
|
|
4761
4773
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
4762
|
-
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(
|
|
4774
|
+
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Ko), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
4763
4775
|
}), ye = r(() => {
|
|
4764
4776
|
let e = re.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
4765
4777
|
return e.some((e) => e.id === _e.value) ? _e.value : e[0]?.id;
|
|
@@ -4854,7 +4866,7 @@ var co = {
|
|
|
4854
4866
|
"data-testid": e.itemTestId,
|
|
4855
4867
|
class: y(e.itemClass),
|
|
4856
4868
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4857
|
-
}, [u(
|
|
4869
|
+
}, [u(zo, _({ ref_for: !0 }, le(t), {
|
|
4858
4870
|
"aria-checked": e.childrenDisplay === "popover" ? pe(t) : void 0,
|
|
4859
4871
|
"aria-controls": e.childrenDisplay === "popover" && t.children?.length ? L(h) : void 0,
|
|
4860
4872
|
"aria-disabled": e.childrenDisplay === "popover" && (l.readOnly || t.disabled) ? "true" : void 0,
|
|
@@ -4890,7 +4902,7 @@ var co = {
|
|
|
4890
4902
|
"tabindex",
|
|
4891
4903
|
"onFocus",
|
|
4892
4904
|
"onKeydown"
|
|
4893
|
-
])], 10,
|
|
4905
|
+
])], 10, Vo)), [[ne, he(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (D(), o("li", {
|
|
4894
4906
|
key: 0,
|
|
4895
4907
|
role: e.childrenDisplay === "popover" ? "none" : void 0
|
|
4896
4908
|
}, [u($, {
|
|
@@ -4900,9 +4912,9 @@ var co = {
|
|
|
4900
4912
|
loading: e.isSeeMoreLoading,
|
|
4901
4913
|
disabled: e.isSeeMoreLoading,
|
|
4902
4914
|
role: e.childrenDisplay === "popover" ? "menuitem" : void 0,
|
|
4903
|
-
tabindex: e.childrenDisplay === "popover" ? ve.value ===
|
|
4915
|
+
tabindex: e.childrenDisplay === "popover" ? ve.value === Ko ? 0 : -1 : void 0,
|
|
4904
4916
|
"data-testid": "pv-menu-see-more",
|
|
4905
|
-
onFocus: c[1] ||= (e) => ge.value =
|
|
4917
|
+
onFocus: c[1] ||= (e) => ge.value = Ko,
|
|
4906
4918
|
onKeydown: c[2] ||= (t) => e.childrenDisplay === "popover" ? Ee(t) : void 0,
|
|
4907
4919
|
onClick: c[3] ||= (e) => d("see-more", { parentId: void 0 })
|
|
4908
4920
|
}, null, 8, [
|
|
@@ -4910,7 +4922,7 @@ var co = {
|
|
|
4910
4922
|
"disabled",
|
|
4911
4923
|
"role",
|
|
4912
4924
|
"tabindex"
|
|
4913
|
-
])], 8,
|
|
4925
|
+
])], 8, Ho)) : a("", !0)], 16, Bo), e.childrenDisplay === "popover" && re.value ? (D(), i(n, {
|
|
4914
4926
|
key: 0,
|
|
4915
4927
|
to: "body"
|
|
4916
4928
|
}, [s("div", {
|
|
@@ -4944,7 +4956,7 @@ var co = {
|
|
|
4944
4956
|
"data-option-id": t.id,
|
|
4945
4957
|
class: y(e.itemClass),
|
|
4946
4958
|
role: "none"
|
|
4947
|
-
}, [u(
|
|
4959
|
+
}, [u(zo, _({ ref_for: !0 }, Y(t), {
|
|
4948
4960
|
"aria-checked": pe(t),
|
|
4949
4961
|
"aria-disabled": l.readOnly || t.disabled ? "true" : void 0,
|
|
4950
4962
|
"data-active": me(t),
|
|
@@ -4974,35 +4986,35 @@ var co = {
|
|
|
4974
4986
|
"tabindex",
|
|
4975
4987
|
"onFocus",
|
|
4976
4988
|
"onKeydown"
|
|
4977
|
-
])], 10,
|
|
4989
|
+
])], 10, Go))), 128))], 8, Wo)], !0)]),
|
|
4978
4990
|
_: 3
|
|
4979
|
-
})], 12,
|
|
4991
|
+
})], 12, Uo)])) : a("", !0)], 64));
|
|
4980
4992
|
}
|
|
4981
|
-
}), [["__scopeId", "data-v-f14f755f"]]),
|
|
4993
|
+
}), [["__scopeId", "data-v-f14f755f"]]), Jo = ["data-dd-action-name"], Yo = {
|
|
4982
4994
|
key: 1,
|
|
4983
4995
|
class: "pv-inset-square-8"
|
|
4984
|
-
},
|
|
4996
|
+
}, Xo = {
|
|
4985
4997
|
key: 1,
|
|
4986
4998
|
class: "pv-text-body-sm pv-inset-inline",
|
|
4987
4999
|
style: {
|
|
4988
5000
|
color: "var(--color-text-quaternary, #89989b)",
|
|
4989
5001
|
"--inset-size": "8px"
|
|
4990
5002
|
}
|
|
4991
|
-
},
|
|
5003
|
+
}, Zo = {
|
|
4992
5004
|
key: 2,
|
|
4993
5005
|
class: "pv-border-top",
|
|
4994
5006
|
style: { margin: "8px 0" }
|
|
4995
|
-
},
|
|
5007
|
+
}, Qo = {
|
|
4996
5008
|
key: 3,
|
|
4997
5009
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
4998
5010
|
style: { "justify-content": "center" }
|
|
4999
|
-
},
|
|
5011
|
+
}, $o = { key: 0 }, es = {
|
|
5000
5012
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
5001
5013
|
style: {
|
|
5002
5014
|
"--flex-justify": "space-between",
|
|
5003
5015
|
"--bottom": "0"
|
|
5004
5016
|
}
|
|
5005
|
-
},
|
|
5017
|
+
}, ts = /* @__PURE__ */ d({
|
|
5006
5018
|
__name: "PvMultiSelectButton",
|
|
5007
5019
|
props: /* @__PURE__ */ g({
|
|
5008
5020
|
companyLogo: {},
|
|
@@ -5105,10 +5117,10 @@ var co = {
|
|
|
5105
5117
|
};
|
|
5106
5118
|
return t(c.options), e;
|
|
5107
5119
|
}), f = F(/* @__PURE__ */ new Set()), m = F(/* @__PURE__ */ new Map());
|
|
5108
|
-
O(
|
|
5120
|
+
O(Eo, d), O(Do, f), O(Oo, m), O(ko, r(() => c.parentSelectsAllChildren)), O(Ao, r(() => !!c.enableChildExpansion));
|
|
5109
5121
|
let g = n, y = r(() => {
|
|
5110
5122
|
let e = /* @__PURE__ */ new Map();
|
|
5111
|
-
for (let [t, n] of d.value)
|
|
5123
|
+
for (let [t, n] of d.value) ro(n) && e.set(t, n.children ? io(n.children) : []);
|
|
5112
5124
|
return e;
|
|
5113
5125
|
}), S = () => {
|
|
5114
5126
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -5134,10 +5146,10 @@ var co = {
|
|
|
5134
5146
|
return t;
|
|
5135
5147
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
5136
5148
|
let e = c.additionalCounter ?? 0;
|
|
5137
|
-
if (c.enableCascadeSelection && c.countSelectedParents && ee.value?.length) return
|
|
5149
|
+
if (c.enableCascadeSelection && c.countSelectedParents && ee.value?.length) return so(ee.value) + e;
|
|
5138
5150
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
5139
5151
|
let t = new Set(W.value.map((e) => e.id));
|
|
5140
|
-
return
|
|
5152
|
+
return oo(c.options, t) + e;
|
|
5141
5153
|
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && ee.value?.length ? ee.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
5142
5154
|
g("see-more", e ?? {});
|
|
5143
5155
|
}, 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) => {
|
|
@@ -5195,15 +5207,15 @@ var co = {
|
|
|
5195
5207
|
let oe = r(() => {
|
|
5196
5208
|
if (R.value === "") return c.options;
|
|
5197
5209
|
let e = R.value.toLocaleLowerCase();
|
|
5198
|
-
return c.enableCascadeSelection ?
|
|
5210
|
+
return c.enableCascadeSelection ? co(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
5199
5211
|
}), se = () => {
|
|
5200
5212
|
if (c.enableCascadeSelection) {
|
|
5201
5213
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
5202
|
-
for (let r of n)
|
|
5214
|
+
for (let r of n) ro(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
5203
5215
|
};
|
|
5204
5216
|
t(oe.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
5205
5217
|
}
|
|
5206
|
-
let e = c.enableCascadeSelection ?
|
|
5218
|
+
let e = c.enableCascadeSelection ? io(oe.value) : oe.value;
|
|
5207
5219
|
g("select-all", e.length), te(e);
|
|
5208
5220
|
}, ce = () => {
|
|
5209
5221
|
g("clear-all", W.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
@@ -5240,7 +5252,7 @@ var co = {
|
|
|
5240
5252
|
modelValue: L(M),
|
|
5241
5253
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
5242
5254
|
}, e.popoverProperties, { offset: q.value }), {
|
|
5243
|
-
trigger: K(() => [u(
|
|
5255
|
+
trigger: K(() => [u(Qa, {
|
|
5244
5256
|
ref: "select-button-trigger-ref",
|
|
5245
5257
|
variant: e.variant,
|
|
5246
5258
|
size: e.size,
|
|
@@ -5296,11 +5308,11 @@ var co = {
|
|
|
5296
5308
|
"onUpdate:modelValue": r[1] ||= (e) => R.value = e,
|
|
5297
5309
|
class: "pv-stack-4",
|
|
5298
5310
|
placeholder: e.searchPlaceholder
|
|
5299
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
5300
|
-
n.$slots.header || L(_e) ? (D(), o("div",
|
|
5311
|
+
}, null, 8, ["model-value", "placeholder"])], 8, Jo)),
|
|
5312
|
+
n.$slots.header || L(_e) ? (D(), o("div", Yo, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
5301
5313
|
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 }, [
|
|
5302
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
5303
|
-
u(
|
|
5314
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Xo, I(t), 1)),
|
|
5315
|
+
u(qo, {
|
|
5304
5316
|
selectedItems: ie.value,
|
|
5305
5317
|
"onUpdate:selectedItems": r[2] ||= (e) => ie.value = e,
|
|
5306
5318
|
options: i,
|
|
@@ -5326,8 +5338,8 @@ var co = {
|
|
|
5326
5338
|
"enableCascadeSelection",
|
|
5327
5339
|
"hasMoreOptions"
|
|
5328
5340
|
]),
|
|
5329
|
-
ue.value && s !== ue.value.length - 1 ? (D(), o("div",
|
|
5330
|
-
]))), 128)) : (D(), i(
|
|
5341
|
+
ue.value && s !== ue.value.length - 1 ? (D(), o("div", Zo)) : a("", !0)
|
|
5342
|
+
]))), 128)) : (D(), i(qo, {
|
|
5331
5343
|
key: 1,
|
|
5332
5344
|
selectedItems: ie.value,
|
|
5333
5345
|
"onUpdate:selectedItems": r[3] ||= (e) => ie.value = e,
|
|
@@ -5352,8 +5364,8 @@ var co = {
|
|
|
5352
5364
|
"isSeeMoreLoading",
|
|
5353
5365
|
"hasMoreOptions"
|
|
5354
5366
|
]))], 64)) : a("", !0),
|
|
5355
|
-
e.isLoading ? (D(), o("div",
|
|
5356
|
-
s("div",
|
|
5367
|
+
e.isLoading ? (D(), o("div", Qo, [u(Ne, { variant: "dark" }), e.loadingText ? (D(), o("span", $o, 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(no, { key: 1 }))], 64)) : a("", !0),
|
|
5368
|
+
s("div", es, [L(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(Wa, {
|
|
5357
5369
|
key: 1,
|
|
5358
5370
|
variant: e.menuActionsVariant,
|
|
5359
5371
|
disabled: e.isLoading,
|
|
@@ -5371,10 +5383,10 @@ var co = {
|
|
|
5371
5383
|
_: 3
|
|
5372
5384
|
}, 16, ["modelValue", "offset"]));
|
|
5373
5385
|
}
|
|
5374
|
-
}),
|
|
5386
|
+
}), ns = { class: "pv-popover-scroll" }, rs = {
|
|
5375
5387
|
key: 0,
|
|
5376
5388
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
5377
|
-
},
|
|
5389
|
+
}, is = /* @__PURE__ */ d({
|
|
5378
5390
|
__name: "PvSelectButton",
|
|
5379
5391
|
props: /* @__PURE__ */ g({
|
|
5380
5392
|
defaultOpen: { type: Boolean },
|
|
@@ -5474,7 +5486,7 @@ var co = {
|
|
|
5474
5486
|
modelValue: L(f),
|
|
5475
5487
|
"onUpdate:modelValue": n[2] ||= (e) => h(f) ? f.value = e : null
|
|
5476
5488
|
}, c.value), {
|
|
5477
|
-
trigger: K(() => [u(
|
|
5489
|
+
trigger: K(() => [u(Qa, {
|
|
5478
5490
|
class: "pv-full-width",
|
|
5479
5491
|
ref: "select-button-trigger-ref",
|
|
5480
5492
|
variant: e.variant,
|
|
@@ -5522,14 +5534,14 @@ var co = {
|
|
|
5522
5534
|
class: "pv-popover pv-popover-scrollable",
|
|
5523
5535
|
"data-test-id": "pv-popover",
|
|
5524
5536
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5525
|
-
}, [s("div",
|
|
5526
|
-
e.disableSearchInput ? a("", !0) : (D(), o("div",
|
|
5537
|
+
}, [s("div", ns, [
|
|
5538
|
+
e.disableSearchInput ? a("", !0) : (D(), o("div", rs, [u(ui, {
|
|
5527
5539
|
"model-value": m.value,
|
|
5528
5540
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5529
5541
|
class: "pv-stack-4",
|
|
5530
5542
|
placeholder: e.searchPlaceholder
|
|
5531
5543
|
}, null, 8, ["model-value", "placeholder"])])),
|
|
5532
|
-
S.value.length > 0 ? (D(), i(
|
|
5544
|
+
S.value.length > 0 ? (D(), i(qo, {
|
|
5533
5545
|
key: 1,
|
|
5534
5546
|
selectedItems: C.value,
|
|
5535
5547
|
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
@@ -5547,24 +5559,24 @@ var co = {
|
|
|
5547
5559
|
"queryText",
|
|
5548
5560
|
"disableDeselect",
|
|
5549
5561
|
"childrenDisplay"
|
|
5550
|
-
])) : (D(), i(
|
|
5562
|
+
])) : (D(), i(no, { key: 2 })),
|
|
5551
5563
|
j(t.$slots, "footer")
|
|
5552
5564
|
])], 4)]),
|
|
5553
5565
|
_: 3
|
|
5554
5566
|
}, 16, ["modelValue"]));
|
|
5555
5567
|
}
|
|
5556
|
-
}),
|
|
5568
|
+
}), as = {
|
|
5557
5569
|
short: 5,
|
|
5558
5570
|
long: 7
|
|
5559
|
-
},
|
|
5560
|
-
if (n <=
|
|
5571
|
+
}, os = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5572
|
+
if (n <= as[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5561
5573
|
page: t + 1,
|
|
5562
5574
|
label: (t + 1).toString()
|
|
5563
5575
|
}));
|
|
5564
5576
|
let r = [{
|
|
5565
5577
|
page: 1,
|
|
5566
5578
|
label: "1"
|
|
5567
|
-
}], i =
|
|
5579
|
+
}], i = as[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5568
5580
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5569
5581
|
page: 0,
|
|
5570
5582
|
label: "..."
|
|
@@ -5583,11 +5595,11 @@ var co = {
|
|
|
5583
5595
|
page: n,
|
|
5584
5596
|
label: n.toString()
|
|
5585
5597
|
}), r;
|
|
5586
|
-
} }),
|
|
5598
|
+
} }), ss = ["data-style"], cs = ["data-testid", "aria-current"], ls = {
|
|
5587
5599
|
key: 0,
|
|
5588
5600
|
class: "dots-button",
|
|
5589
5601
|
disabled: ""
|
|
5590
|
-
},
|
|
5602
|
+
}, us = ["onClick"], ds = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
5591
5603
|
__name: "PvPagination",
|
|
5592
5604
|
props: /* @__PURE__ */ g({
|
|
5593
5605
|
size: { default: "lg" },
|
|
@@ -5600,7 +5612,7 @@ var co = {
|
|
|
5600
5612
|
}),
|
|
5601
5613
|
emits: ["update:modelValue"],
|
|
5602
5614
|
setup(e) {
|
|
5603
|
-
let { getPaginations: n } =
|
|
5615
|
+
let { getPaginations: n } = os({ variant: e.variant }), r = z(e, "modelValue");
|
|
5604
5616
|
return (i, a) => (D(), o("ol", {
|
|
5605
5617
|
role: "list",
|
|
5606
5618
|
class: "pv-pagination",
|
|
@@ -5622,10 +5634,10 @@ var co = {
|
|
|
5622
5634
|
key: e.page,
|
|
5623
5635
|
"data-testid": `pagination-button-${e.page}`,
|
|
5624
5636
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5625
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5637
|
+
}, [e.label === "..." ? (D(), o("button", ls, I(e.label), 1)) : (D(), o("button", {
|
|
5626
5638
|
key: 1,
|
|
5627
5639
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5628
|
-
}, I(e.label), 9,
|
|
5640
|
+
}, I(e.label), 9, us))], 8, cs))), 128)),
|
|
5629
5641
|
s("li", null, [u($, {
|
|
5630
5642
|
"data-testid": "pagination-right-arrow-icon",
|
|
5631
5643
|
disabled: r.value === e.maxPages,
|
|
@@ -5634,14 +5646,14 @@ var co = {
|
|
|
5634
5646
|
variant: "ghost",
|
|
5635
5647
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5636
5648
|
}, null, 8, ["disabled"])])
|
|
5637
|
-
], 8,
|
|
5649
|
+
], 8, ss));
|
|
5638
5650
|
}
|
|
5639
|
-
}), [["__scopeId", "data-v-cfa4cb54"]]),
|
|
5651
|
+
}), [["__scopeId", "data-v-cfa4cb54"]]), fs = ["for"], ps = [
|
|
5640
5652
|
"checked",
|
|
5641
5653
|
"type",
|
|
5642
5654
|
"value",
|
|
5643
5655
|
"id"
|
|
5644
|
-
],
|
|
5656
|
+
], ms = /* @__PURE__ */ d({
|
|
5645
5657
|
__name: "PvSelectableCard",
|
|
5646
5658
|
props: {
|
|
5647
5659
|
variant: { default: "default" },
|
|
@@ -5663,33 +5675,33 @@ var co = {
|
|
|
5663
5675
|
type: e.deselect ? "checkbox" : "radio",
|
|
5664
5676
|
value: e.value,
|
|
5665
5677
|
id: t.value
|
|
5666
|
-
}, null, 8,
|
|
5678
|
+
}, null, 8, ps), j(n.$slots, "default")], 10, fs));
|
|
5667
5679
|
}
|
|
5668
|
-
}),
|
|
5680
|
+
}), hs = { class: "pv-layout-two-sidebar" }, gs = ["data-hidden"], _s = { "data-layout": "main-section" }, vs = ["data-hidden"], ys = /* @__PURE__ */ d({
|
|
5669
5681
|
__name: "PvSidePanel",
|
|
5670
5682
|
props: {
|
|
5671
5683
|
showLeftSidebar: { type: Boolean },
|
|
5672
5684
|
showRightSidebar: { type: Boolean }
|
|
5673
5685
|
},
|
|
5674
5686
|
setup(e) {
|
|
5675
|
-
return (t, n) => (D(), o("div",
|
|
5687
|
+
return (t, n) => (D(), o("div", hs, [
|
|
5676
5688
|
s("div", {
|
|
5677
5689
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5678
5690
|
"data-testid": "pv-side-panel-left",
|
|
5679
5691
|
"data-layout": "left-sidebar"
|
|
5680
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5681
|
-
s("div",
|
|
5692
|
+
}, [j(t.$slots, "left-sidebar")], 8, gs),
|
|
5693
|
+
s("div", _s, [j(t.$slots, "main")]),
|
|
5682
5694
|
s("div", {
|
|
5683
5695
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5684
5696
|
"data-testid": "pv-side-panel-right",
|
|
5685
5697
|
"data-layout": "right-sidebar"
|
|
5686
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5698
|
+
}, [j(t.$slots, "right-sidebar")], 8, vs)
|
|
5687
5699
|
]));
|
|
5688
5700
|
}
|
|
5689
|
-
}),
|
|
5701
|
+
}), bs = {
|
|
5690
5702
|
key: 0,
|
|
5691
5703
|
class: "pv-heading-2"
|
|
5692
|
-
},
|
|
5704
|
+
}, xs = ["id"], Ss = { class: "pv-flex" }, Cs = ["id"], ws = /* @__PURE__ */ d({
|
|
5693
5705
|
__name: "PvHeader",
|
|
5694
5706
|
props: {
|
|
5695
5707
|
as: { default: "div" },
|
|
@@ -5717,14 +5729,14 @@ var co = {
|
|
|
5717
5729
|
"background-color": "#fdfdfc"
|
|
5718
5730
|
}
|
|
5719
5731
|
}, {
|
|
5720
|
-
default: K(() => [e.title ? (D(), o("span",
|
|
5732
|
+
default: K(() => [e.title ? (D(), o("span", bs, I(e.title), 1)) : (D(), o("div", {
|
|
5721
5733
|
key: 1,
|
|
5722
5734
|
id: e.headerTitleId,
|
|
5723
5735
|
class: "pv-flex"
|
|
5724
|
-
}, [j(r.$slots, "left")], 8,
|
|
5736
|
+
}, [j(r.$slots, "left")], 8, xs)), s("div", Ss, [s("div", {
|
|
5725
5737
|
id: e.headerActionsId,
|
|
5726
5738
|
class: "pv-flex"
|
|
5727
|
-
}, [j(r.$slots, "right")], 8,
|
|
5739
|
+
}, [j(r.$slots, "right")], 8, Cs), e.showAskTqButton ? (D(), o("div", {
|
|
5728
5740
|
key: 0,
|
|
5729
5741
|
class: y({ "pv-border-left": L(n) }),
|
|
5730
5742
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5737,7 +5749,7 @@ var co = {
|
|
|
5737
5749
|
_: 3
|
|
5738
5750
|
}, 8, ["class"]));
|
|
5739
5751
|
}
|
|
5740
|
-
}),
|
|
5752
|
+
}), Ts = ["data-more"], Es = ["src", "alt"], Ds = /* @__PURE__ */ d({
|
|
5741
5753
|
__name: "PvAvatarGroup",
|
|
5742
5754
|
props: {
|
|
5743
5755
|
items: {},
|
|
@@ -5766,18 +5778,18 @@ var co = {
|
|
|
5766
5778
|
key: 1,
|
|
5767
5779
|
src: e.image,
|
|
5768
5780
|
alt: e.alt ?? ""
|
|
5769
|
-
}, null, 8,
|
|
5781
|
+
}, null, 8, Es)) : (D(), o("div", {
|
|
5770
5782
|
key: 2,
|
|
5771
5783
|
class: y(c.value)
|
|
5772
|
-
}, null, 2))]))), 128))], 10,
|
|
5784
|
+
}, null, 2))]))), 128))], 10, Ts));
|
|
5773
5785
|
}
|
|
5774
|
-
}),
|
|
5786
|
+
}), Os = { class: "pv-flex" }, ks = [
|
|
5775
5787
|
"name",
|
|
5776
5788
|
"value",
|
|
5777
5789
|
"checked",
|
|
5778
5790
|
"disabled",
|
|
5779
5791
|
"onChange"
|
|
5780
|
-
],
|
|
5792
|
+
], As = { key: 1 }, js = /* @__PURE__ */ d({
|
|
5781
5793
|
__name: "PvToggleGroup",
|
|
5782
5794
|
props: /* @__PURE__ */ g({
|
|
5783
5795
|
disabled: { type: Boolean },
|
|
@@ -5799,7 +5811,7 @@ var co = {
|
|
|
5799
5811
|
r.value = e;
|
|
5800
5812
|
}
|
|
5801
5813
|
};
|
|
5802
|
-
return (n, u) => (D(), o("div",
|
|
5814
|
+
return (n, u) => (D(), o("div", Os, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
5803
5815
|
key: t.value,
|
|
5804
5816
|
description: e.hideLabels ? t.label : ""
|
|
5805
5817
|
}, {
|
|
@@ -5812,21 +5824,21 @@ var co = {
|
|
|
5812
5824
|
class: "pv-radio",
|
|
5813
5825
|
disabled: e.disabled || t.disabled,
|
|
5814
5826
|
onChange: (e) => l(t)
|
|
5815
|
-
}, null, 40,
|
|
5827
|
+
}, null, 40, ks),
|
|
5816
5828
|
t.icon ? (D(), i(Z, {
|
|
5817
5829
|
key: 0,
|
|
5818
5830
|
name: t.icon
|
|
5819
5831
|
}, null, 8, ["name"])) : a("", !0),
|
|
5820
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5832
|
+
e.hideLabels ? a("", !0) : (D(), o("span", As, I(t.label), 1))
|
|
5821
5833
|
], 2)]),
|
|
5822
5834
|
_: 2
|
|
5823
5835
|
}, 1032, ["description"]))), 128))]));
|
|
5824
5836
|
}
|
|
5825
|
-
}),
|
|
5837
|
+
}), Ms = [
|
|
5826
5838
|
"aria-label",
|
|
5827
5839
|
"disabled",
|
|
5828
5840
|
"indeterminate"
|
|
5829
|
-
],
|
|
5841
|
+
], Ns = /* @__PURE__ */ d({
|
|
5830
5842
|
__name: "PvCheckbox",
|
|
5831
5843
|
props: /* @__PURE__ */ g({
|
|
5832
5844
|
ariaLabel: {},
|
|
@@ -5847,13 +5859,13 @@ var co = {
|
|
|
5847
5859
|
"aria-label": e.ariaLabel,
|
|
5848
5860
|
disabled: e.disabled,
|
|
5849
5861
|
indeterminate: e.indeterminate
|
|
5850
|
-
}, null, 8,
|
|
5862
|
+
}, null, 8, Ms)), [[te, t.value]]);
|
|
5851
5863
|
}
|
|
5852
|
-
}),
|
|
5864
|
+
}), Ps = ["aria-label", "aria-labelledby"], Fs = ["id"], Is = [
|
|
5853
5865
|
"name",
|
|
5854
5866
|
"value",
|
|
5855
5867
|
"disabled"
|
|
5856
|
-
],
|
|
5868
|
+
], Ls = /* @__PURE__ */ d({
|
|
5857
5869
|
__name: "PvRadioGroup",
|
|
5858
5870
|
props: /* @__PURE__ */ g({
|
|
5859
5871
|
ariaLabel: {},
|
|
@@ -5884,7 +5896,7 @@ var co = {
|
|
|
5884
5896
|
key: 0,
|
|
5885
5897
|
id: L(u),
|
|
5886
5898
|
class: "pv-label pv-stack-8"
|
|
5887
|
-
}, I(e.label), 9,
|
|
5899
|
+
}, I(e.label), 9, Fs)) : a("", !0), s("div", {
|
|
5888
5900
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5889
5901
|
style: x(f.value)
|
|
5890
5902
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5897,9 +5909,9 @@ var co = {
|
|
|
5897
5909
|
name: d.value,
|
|
5898
5910
|
value: t.value,
|
|
5899
5911
|
disabled: e.disabled || t.disabled
|
|
5900
|
-
}, null, 8,
|
|
5912
|
+
}, null, 8, Is), [[U, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, Ps));
|
|
5901
5913
|
}
|
|
5902
|
-
}),
|
|
5914
|
+
}), Rs = /* @__PURE__ */ d({
|
|
5903
5915
|
__name: "PvSprite",
|
|
5904
5916
|
props: {
|
|
5905
5917
|
src: {},
|
|
@@ -5920,7 +5932,7 @@ var co = {
|
|
|
5920
5932
|
id: "pv-sprite-content"
|
|
5921
5933
|
}, null, -1)]));
|
|
5922
5934
|
}
|
|
5923
|
-
}),
|
|
5935
|
+
}), zs = /* @__PURE__ */ d({
|
|
5924
5936
|
__name: "PvSkeleton",
|
|
5925
5937
|
props: {
|
|
5926
5938
|
size: { default: "md" },
|
|
@@ -5947,18 +5959,18 @@ var co = {
|
|
|
5947
5959
|
"width"
|
|
5948
5960
|
]));
|
|
5949
5961
|
}
|
|
5950
|
-
}),
|
|
5962
|
+
}), Bs = ["for"], Vs = {
|
|
5951
5963
|
key: 0,
|
|
5952
5964
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5953
5965
|
style: { "--inset-size": "6px 10px" }
|
|
5954
|
-
},
|
|
5966
|
+
}, Hs = { class: "pv-relative pv-flex-item" }, Us = [
|
|
5955
5967
|
"disabled",
|
|
5956
5968
|
"type",
|
|
5957
5969
|
"placeholder",
|
|
5958
5970
|
"id",
|
|
5959
5971
|
"data-invalid",
|
|
5960
5972
|
"step"
|
|
5961
|
-
],
|
|
5973
|
+
], Ws = /* @__PURE__ */ d({
|
|
5962
5974
|
__name: "PvInput",
|
|
5963
5975
|
props: /* @__PURE__ */ g({
|
|
5964
5976
|
showLabel: { type: Boolean },
|
|
@@ -5985,8 +5997,8 @@ var co = {
|
|
|
5985
5997
|
"data-testid": "pv-input-label",
|
|
5986
5998
|
class: "pv-label pv-stack-8",
|
|
5987
5999
|
for: e.id
|
|
5988
|
-
}, [j(n.$slots, "label")], 8,
|
|
5989
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
6000
|
+
}, [j(n.$slots, "label")], 8, Bs)) : a("", !0),
|
|
6001
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", Vs, I(e.prefixLabel), 1)) : a("", !0), s("div", Hs, [e.inputIcon ? (D(), i(Z, {
|
|
5990
6002
|
key: 0,
|
|
5991
6003
|
class: "pv-absolute input-icon-position",
|
|
5992
6004
|
name: e.inputIcon
|
|
@@ -6004,7 +6016,7 @@ var co = {
|
|
|
6004
6016
|
id: e.id,
|
|
6005
6017
|
"data-invalid": e.error ? !0 : void 0,
|
|
6006
6018
|
step: e.step
|
|
6007
|
-
}), null, 16,
|
|
6019
|
+
}), null, 16, Us), [[H, c.value]])])], 2),
|
|
6008
6020
|
e.lowerLabel ? (D(), o("p", {
|
|
6009
6021
|
key: 1,
|
|
6010
6022
|
"data-testid": "pv-input-lower-label",
|
|
@@ -6016,15 +6028,15 @@ var co = {
|
|
|
6016
6028
|
}, I(e.lowerLabel), 3)) : a("", !0)
|
|
6017
6029
|
], 64));
|
|
6018
6030
|
}
|
|
6019
|
-
}),
|
|
6031
|
+
}), Gs = { class: "pv-stack-8" }, Ks = { class: "pv-input-file" }, qs = [
|
|
6020
6032
|
"id",
|
|
6021
6033
|
"accept",
|
|
6022
6034
|
"disabled",
|
|
6023
6035
|
"multiple"
|
|
6024
|
-
],
|
|
6036
|
+
], Js = ["for"], Ys = {
|
|
6025
6037
|
key: 0,
|
|
6026
6038
|
class: "pv-stack-8"
|
|
6027
|
-
},
|
|
6039
|
+
}, Xs = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, Zs = /* @__PURE__ */ d({
|
|
6028
6040
|
__name: "PvFileInput",
|
|
6029
6041
|
props: /* @__PURE__ */ g({
|
|
6030
6042
|
helperText: {},
|
|
@@ -6052,7 +6064,7 @@ var co = {
|
|
|
6052
6064
|
}, m = (e) => {
|
|
6053
6065
|
d.value = d.value.filter((t) => t !== e);
|
|
6054
6066
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
6055
|
-
return (n, r) => (D(), o("div",
|
|
6067
|
+
return (n, r) => (D(), o("div", Gs, [s("div", Ks, [
|
|
6056
6068
|
s("input", {
|
|
6057
6069
|
id: L(f),
|
|
6058
6070
|
type: "file",
|
|
@@ -6061,11 +6073,11 @@ var co = {
|
|
|
6061
6073
|
disabled: e.disabled,
|
|
6062
6074
|
multiple: e.multiple,
|
|
6063
6075
|
onChange: p
|
|
6064
|
-
}, null, 40,
|
|
6076
|
+
}, null, 40, qs),
|
|
6065
6077
|
s("label", {
|
|
6066
6078
|
for: L(f),
|
|
6067
6079
|
class: "pv-label"
|
|
6068
|
-
}, [s("span", { class: y([`pv-button-${e.confirmButtonVariant}`, "pv-button-large"]) }, "Choose File", 2)], 8,
|
|
6080
|
+
}, [s("span", { class: y([`pv-button-${e.confirmButtonVariant}`, "pv-button-large"]) }, "Choose File", 2)], 8, Js),
|
|
6069
6081
|
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),
|
|
6070
6082
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
6071
6083
|
key: 0,
|
|
@@ -6075,10 +6087,10 @@ var co = {
|
|
|
6075
6087
|
"aria-label": "Remove file",
|
|
6076
6088
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
6077
6089
|
}, null, 8, ["variant"])) : a("", !0)
|
|
6078
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
6090
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", Ys, [(D(!0), o(t, null, A(d.value, (t) => (D(), o("li", {
|
|
6079
6091
|
key: t.name,
|
|
6080
6092
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
6081
|
-
}, [s("p",
|
|
6093
|
+
}, [s("p", Xs, I(t.name), 1), u($, {
|
|
6082
6094
|
"left-icon": "trash",
|
|
6083
6095
|
variant: e.destructiveButtonVariant,
|
|
6084
6096
|
size: "md",
|
|
@@ -6086,7 +6098,7 @@ var co = {
|
|
|
6086
6098
|
onClick: (e) => m(t)
|
|
6087
6099
|
}, null, 8, ["variant", "onClick"])]))), 128))])) : a("", !0)]));
|
|
6088
6100
|
}
|
|
6089
|
-
}),
|
|
6101
|
+
}), Qs = ["data-rating"], $s = ["value"], ec = /* @__PURE__ */ d({
|
|
6090
6102
|
__name: "PvRating",
|
|
6091
6103
|
props: {
|
|
6092
6104
|
variant: { default: "dot" },
|
|
@@ -6105,18 +6117,18 @@ var co = {
|
|
|
6105
6117
|
min: "0",
|
|
6106
6118
|
max: "5",
|
|
6107
6119
|
value: e.value
|
|
6108
|
-
}, "4.0 stars", 8,
|
|
6120
|
+
}, "4.0 stars", 8, $s)], 12, Qs));
|
|
6109
6121
|
}
|
|
6110
|
-
}),
|
|
6122
|
+
}), tc = {
|
|
6111
6123
|
key: 0,
|
|
6112
6124
|
class: "pv-flex pv-full-width"
|
|
6113
|
-
},
|
|
6125
|
+
}, nc = { class: "pv-flex-item pv-truncate" }, rc = { class: "pv-card-hover-action__action pv-flex" }, ic = {
|
|
6114
6126
|
key: 1,
|
|
6115
6127
|
class: "pv-flex pv-full-width"
|
|
6116
|
-
},
|
|
6128
|
+
}, ac = { class: "pv-flex-item pv-truncate" }, oc = { class: "pv-card-hover-action__action pv-flex" }, sc = {
|
|
6117
6129
|
key: 2,
|
|
6118
6130
|
class: "pv-flex pv-full-width"
|
|
6119
|
-
},
|
|
6131
|
+
}, cc = { class: "pv-flex-item pv-truncate" }, lc = { class: "pv-card-hover-action__action pv-flex" }, uc = /* @__PURE__ */ d({
|
|
6120
6132
|
__name: "PvCard",
|
|
6121
6133
|
props: {
|
|
6122
6134
|
href: {},
|
|
@@ -6152,9 +6164,9 @@ var co = {
|
|
|
6152
6164
|
"data-testid": "pv-card"
|
|
6153
6165
|
}, {
|
|
6154
6166
|
default: K(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
6155
|
-
e.headerAction ? (D(), o("div",
|
|
6156
|
-
e.descriptionAction ? (D(), o("div",
|
|
6157
|
-
e.footerAction ? (D(), o("div",
|
|
6167
|
+
e.headerAction ? (D(), o("div", tc, [s("div", nc, [j(n.$slots, "header")]), s("div", rc, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
6168
|
+
e.descriptionAction ? (D(), o("div", ic, [s("div", ac, [j(n.$slots, "description")]), s("div", oc, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
6169
|
+
e.footerAction ? (D(), o("div", sc, [s("div", cc, [j(n.$slots, "footer")]), s("div", lc, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
6158
6170
|
], 64)) : j(n.$slots, "default", { key: 1 })]),
|
|
6159
6171
|
_: 3
|
|
6160
6172
|
}, 8, [
|
|
@@ -6164,34 +6176,34 @@ var co = {
|
|
|
6164
6176
|
"style"
|
|
6165
6177
|
]));
|
|
6166
6178
|
}
|
|
6167
|
-
}),
|
|
6179
|
+
}), dc = /* @__PURE__ */ d({
|
|
6168
6180
|
__name: "PvWidget",
|
|
6169
6181
|
setup(e) {
|
|
6170
|
-
return (e, t) => (D(), i(
|
|
6182
|
+
return (e, t) => (D(), i(uc, { class: "pv-inset-square-16" }, {
|
|
6171
6183
|
default: K(() => [j(e.$slots, "default")]),
|
|
6172
6184
|
_: 3
|
|
6173
6185
|
}));
|
|
6174
6186
|
}
|
|
6175
|
-
}),
|
|
6187
|
+
}), fc = {
|
|
6176
6188
|
class: "pv-flex-vertical",
|
|
6177
6189
|
style: {
|
|
6178
6190
|
"--flex-align": "flex-start",
|
|
6179
6191
|
"--flex-gap": "0.25rem"
|
|
6180
6192
|
}
|
|
6181
|
-
},
|
|
6193
|
+
}, pc = {
|
|
6182
6194
|
key: 0,
|
|
6183
6195
|
class: "pv-flex",
|
|
6184
6196
|
style: { "--flex-gap": "0.25rem" }
|
|
6185
|
-
},
|
|
6197
|
+
}, mc = { class: "pv-text-body-sm" }, hc = {
|
|
6186
6198
|
key: 1,
|
|
6187
6199
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
6188
|
-
},
|
|
6200
|
+
}, gc = {
|
|
6189
6201
|
key: 2,
|
|
6190
6202
|
class: "pv-heading-2"
|
|
6191
|
-
},
|
|
6203
|
+
}, _c = {
|
|
6192
6204
|
key: 3,
|
|
6193
6205
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
6194
|
-
},
|
|
6206
|
+
}, vc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6195
6207
|
__name: "PvInsightCard",
|
|
6196
6208
|
props: {
|
|
6197
6209
|
icon: { default: "ai" },
|
|
@@ -6211,22 +6223,22 @@ var co = {
|
|
|
6211
6223
|
emits: ["click", "icon-click"],
|
|
6212
6224
|
setup(e) {
|
|
6213
6225
|
let t = e, n = r(() => t.icon || t.insight);
|
|
6214
|
-
return (t, r) => (D(), i(
|
|
6226
|
+
return (t, r) => (D(), i(uc, {
|
|
6215
6227
|
variant: "secondary",
|
|
6216
6228
|
interactive: e.interactive,
|
|
6217
6229
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
6218
6230
|
class: "pv-relative"
|
|
6219
6231
|
}, {
|
|
6220
|
-
default: K(() => [s("div",
|
|
6221
|
-
n.value ? (D(), o("div",
|
|
6232
|
+
default: K(() => [s("div", fc, [
|
|
6233
|
+
n.value ? (D(), o("div", pc, [e.icon ? (D(), i(Z, {
|
|
6222
6234
|
key: 0,
|
|
6223
6235
|
style: { color: "#218c88" },
|
|
6224
6236
|
name: e.icon,
|
|
6225
6237
|
size: 12
|
|
6226
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
6227
|
-
e.upperLabel ? (D(), o("span",
|
|
6228
|
-
e.title ? (D(), o("span",
|
|
6229
|
-
e.description ? (D(), o("span",
|
|
6238
|
+
}, null, 8, ["name"])) : a("", !0), s("span", mc, I(e.insight), 1)])) : a("", !0),
|
|
6239
|
+
e.upperLabel ? (D(), o("span", hc, I(e.upperLabel), 1)) : a("", !0),
|
|
6240
|
+
e.title ? (D(), o("span", gc, I(e.title), 1)) : a("", !0),
|
|
6241
|
+
e.description ? (D(), o("span", _c, I(e.description), 1)) : a("", !0)
|
|
6230
6242
|
]), e.showButton ? (D(), i($, {
|
|
6231
6243
|
key: 0,
|
|
6232
6244
|
"left-icon": "new-tab",
|
|
@@ -6239,7 +6251,7 @@ var co = {
|
|
|
6239
6251
|
_: 1
|
|
6240
6252
|
}, 8, ["interactive"]));
|
|
6241
6253
|
}
|
|
6242
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
6254
|
+
}), [["__scopeId", "data-v-c1185c07"]]), yc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6243
6255
|
__name: "PvExpandableContent",
|
|
6244
6256
|
props: {
|
|
6245
6257
|
lines: { default: 4 },
|
|
@@ -6293,29 +6305,29 @@ var co = {
|
|
|
6293
6305
|
"left-icon": l.value ? "chevron-up" : "chevron-down"
|
|
6294
6306
|
}, null, 8, ["label", "left-icon"])) : a("", !0)], 6));
|
|
6295
6307
|
}
|
|
6296
|
-
}), [["__scopeId", "data-v-fc5fc7e0"]]),
|
|
6308
|
+
}), [["__scopeId", "data-v-fc5fc7e0"]]), bc = ["data-style"], xc = /* @__PURE__ */ d({
|
|
6297
6309
|
__name: "PvActionBar",
|
|
6298
6310
|
props: { variant: { default: "white" } },
|
|
6299
6311
|
setup(e) {
|
|
6300
6312
|
return (t, n) => (D(), o("div", {
|
|
6301
6313
|
class: "pv-action-bar-container",
|
|
6302
6314
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
6303
|
-
}, [j(t.$slots, "default")], 8,
|
|
6315
|
+
}, [j(t.$slots, "default")], 8, bc));
|
|
6304
6316
|
}
|
|
6305
|
-
}),
|
|
6317
|
+
}), Sc = {
|
|
6306
6318
|
class: "pv-flex pv-truncate",
|
|
6307
6319
|
style: {
|
|
6308
6320
|
"min-width": "0",
|
|
6309
6321
|
"min-height": "20px"
|
|
6310
6322
|
}
|
|
6311
|
-
},
|
|
6323
|
+
}, Cc = ["title"], wc = /* @__PURE__ */ d({
|
|
6312
6324
|
__name: "PvSimpleItemTree",
|
|
6313
6325
|
props: {
|
|
6314
6326
|
label: {},
|
|
6315
6327
|
icon: {}
|
|
6316
6328
|
},
|
|
6317
6329
|
setup(e) {
|
|
6318
|
-
return (t, n) => (D(), o("div",
|
|
6330
|
+
return (t, n) => (D(), o("div", Sc, [e.icon ? (D(), i(Z, {
|
|
6319
6331
|
key: 0,
|
|
6320
6332
|
name: e.icon
|
|
6321
6333
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -6325,9 +6337,9 @@ var co = {
|
|
|
6325
6337
|
"min-width": "0"
|
|
6326
6338
|
},
|
|
6327
6339
|
title: e.label
|
|
6328
|
-
}, I(e.label), 9,
|
|
6340
|
+
}, I(e.label), 9, Cc)]));
|
|
6329
6341
|
}
|
|
6330
|
-
}),
|
|
6342
|
+
}), Tc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6331
6343
|
__name: "PvTreeReorderIcon",
|
|
6332
6344
|
setup(e) {
|
|
6333
6345
|
return (e, t) => (D(), i(Z, {
|
|
@@ -6335,7 +6347,7 @@ var co = {
|
|
|
6335
6347
|
class: "reorder-icon pv-text-tertiary"
|
|
6336
6348
|
}));
|
|
6337
6349
|
}
|
|
6338
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
6350
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Ec = /* @__PURE__ */ d({
|
|
6339
6351
|
__name: "PvButtonTreeItem",
|
|
6340
6352
|
props: {
|
|
6341
6353
|
selected: { type: Boolean },
|
|
@@ -6370,7 +6382,7 @@ var co = {
|
|
|
6370
6382
|
_: 3
|
|
6371
6383
|
}, 8, ["class"]));
|
|
6372
6384
|
}
|
|
6373
|
-
}),
|
|
6385
|
+
}), Dc = /* @__PURE__ */ d({
|
|
6374
6386
|
__name: "PvCheckboxTreeItem",
|
|
6375
6387
|
props: {
|
|
6376
6388
|
selected: { type: Boolean },
|
|
@@ -6399,38 +6411,38 @@ var co = {
|
|
|
6399
6411
|
"pv-tree-item-selected": e.selected,
|
|
6400
6412
|
"pv-tree-item-disabled": e.disableSelection
|
|
6401
6413
|
}
|
|
6402
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
6414
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(Ns, {
|
|
6403
6415
|
key: 0,
|
|
6404
6416
|
checked: e.selected,
|
|
6405
6417
|
onClick: s
|
|
6406
6418
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
6407
6419
|
}
|
|
6408
|
-
}),
|
|
6420
|
+
}), Oc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6409
6421
|
__name: "PvTreeConnector",
|
|
6410
6422
|
props: { isLast: { type: Boolean } },
|
|
6411
6423
|
setup(e) {
|
|
6412
6424
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
6413
6425
|
}
|
|
6414
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
6426
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), kc = () => ({
|
|
6415
6427
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
6416
6428
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
6417
6429
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
6418
6430
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
6419
6431
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
6420
|
-
}),
|
|
6432
|
+
}), Ac = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6421
6433
|
__name: "PvTreeConnectorGroup",
|
|
6422
6434
|
props: {
|
|
6423
6435
|
active: { type: Boolean },
|
|
6424
6436
|
level: {}
|
|
6425
6437
|
},
|
|
6426
6438
|
setup(e) {
|
|
6427
|
-
let t = e, { connectorOffset: n } =
|
|
6439
|
+
let t = e, { connectorOffset: n } = kc(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
6428
6440
|
return (t, n) => (D(), o("div", {
|
|
6429
6441
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
6430
6442
|
style: x(i.value)
|
|
6431
6443
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6432
6444
|
}
|
|
6433
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
6445
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), jc = () => {
|
|
6434
6446
|
let e = k(null);
|
|
6435
6447
|
return {
|
|
6436
6448
|
hoveredId: e,
|
|
@@ -6441,15 +6453,15 @@ var co = {
|
|
|
6441
6453
|
e.value = null;
|
|
6442
6454
|
}
|
|
6443
6455
|
};
|
|
6444
|
-
},
|
|
6456
|
+
}, Mc = Symbol("DraggingStateKey"), Nc = Symbol("DraggingGroupNameKey"), Pc = Symbol("DropIndicatorKey"), Fc = () => {
|
|
6445
6457
|
let e = k(!1), t = k(null), n = k(null);
|
|
6446
|
-
return O(
|
|
6458
|
+
return O(Mc, e), O(Nc, t), O(Pc, n), {
|
|
6447
6459
|
isDragging: e,
|
|
6448
6460
|
draggingGroupName: t,
|
|
6449
6461
|
dropIndicator: n
|
|
6450
6462
|
};
|
|
6451
|
-
},
|
|
6452
|
-
let e = m(
|
|
6463
|
+
}, Ic = () => {
|
|
6464
|
+
let e = m(Mc, k(!1)), t = m(Nc, k(null)), n = m(Pc, k(null)), r = (n) => {
|
|
6453
6465
|
e.value = !0, t.value = n ?? null;
|
|
6454
6466
|
}, i = () => {
|
|
6455
6467
|
e.value = !1, t.value = null, o();
|
|
@@ -6471,8 +6483,8 @@ var co = {
|
|
|
6471
6483
|
onDragStart: r,
|
|
6472
6484
|
onDragEnd: i
|
|
6473
6485
|
};
|
|
6474
|
-
},
|
|
6475
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6486
|
+
}, Lc = () => {
|
|
6487
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Ic();
|
|
6476
6488
|
return {
|
|
6477
6489
|
getDragGroupConfig: (e, t) => {
|
|
6478
6490
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6507,8 +6519,8 @@ var co = {
|
|
|
6507
6519
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6508
6520
|
}
|
|
6509
6521
|
};
|
|
6510
|
-
},
|
|
6511
|
-
let { dropIndicator: e } =
|
|
6522
|
+
}, Rc = () => {
|
|
6523
|
+
let { dropIndicator: e } = Ic();
|
|
6512
6524
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6513
6525
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6514
6526
|
return {
|
|
@@ -6517,7 +6529,7 @@ var co = {
|
|
|
6517
6529
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6518
6530
|
};
|
|
6519
6531
|
} };
|
|
6520
|
-
},
|
|
6532
|
+
}, zc = { class: "pv-flex pv-full-width" }, Bc = ["data-parent-id"], Vc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6521
6533
|
__name: "PvSimpleNestedTreeItem",
|
|
6522
6534
|
props: {
|
|
6523
6535
|
option: {},
|
|
@@ -6533,9 +6545,9 @@ var co = {
|
|
|
6533
6545
|
},
|
|
6534
6546
|
emits: ["handle-tree-select", "update:children"],
|
|
6535
6547
|
setup(e, { emit: t }) {
|
|
6536
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6548
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = Ic(), { dragAndDropIndicatorClasses: p } = Rc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = jc(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = Lc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = kc(), k = () => {
|
|
6537
6549
|
d(S(n.settings, n.option).name);
|
|
6538
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6550
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? Dc : Ec), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), I = r(() => P.value && !F.value), ee = r(() => O({
|
|
6539
6551
|
level: n.level,
|
|
6540
6552
|
showNestedTree: P.value,
|
|
6541
6553
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6550,7 +6562,7 @@ var co = {
|
|
|
6550
6562
|
}), z = r(() => n.isParentPathOpen ?? !0);
|
|
6551
6563
|
return (t, n) => {
|
|
6552
6564
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6553
|
-
return D(), i(
|
|
6565
|
+
return D(), i(Ac, {
|
|
6554
6566
|
active: I.value,
|
|
6555
6567
|
level: e.level
|
|
6556
6568
|
}, {
|
|
@@ -6570,7 +6582,7 @@ var co = {
|
|
|
6570
6582
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6571
6583
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6572
6584
|
}, {
|
|
6573
|
-
default: K(() => [ie(u(
|
|
6585
|
+
default: K(() => [ie(u(Tc, null, null, 512), [[ne, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", zc, [P.value ? (D(), i(Oc, {
|
|
6574
6586
|
key: 0,
|
|
6575
6587
|
"is-last": F.value
|
|
6576
6588
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6584,7 +6596,7 @@ var co = {
|
|
|
6584
6596
|
"settings",
|
|
6585
6597
|
"is-draggable",
|
|
6586
6598
|
"params"
|
|
6587
|
-
])) : (D(), i(
|
|
6599
|
+
])) : (D(), i(wc, {
|
|
6588
6600
|
key: 2,
|
|
6589
6601
|
label: e.option.label,
|
|
6590
6602
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6646,12 +6658,12 @@ var co = {
|
|
|
6646
6658
|
"class",
|
|
6647
6659
|
"onEnd",
|
|
6648
6660
|
"onAdd"
|
|
6649
|
-
])], 8,
|
|
6661
|
+
])], 8, Bc)]),
|
|
6650
6662
|
_: 1
|
|
6651
6663
|
}, 8, ["active", "level"]);
|
|
6652
6664
|
};
|
|
6653
6665
|
}
|
|
6654
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6666
|
+
}), [["__scopeId", "data-v-f706f606"]]), Hc = ["data-parent-id"], Uc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6655
6667
|
__name: "PvSimpleNestedTree",
|
|
6656
6668
|
props: {
|
|
6657
6669
|
option: {},
|
|
@@ -6667,14 +6679,14 @@ var co = {
|
|
|
6667
6679
|
},
|
|
6668
6680
|
emits: ["handle-tree-select", "update:children"],
|
|
6669
6681
|
setup(e, { emit: t }) {
|
|
6670
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6682
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = jc(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Lc(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Ic(), { dragAndDropIndicatorClasses: C } = Rc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = kc(), k = () => {
|
|
6671
6683
|
b(h(n.settings, n.option).name);
|
|
6672
6684
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6673
6685
|
level: n.level,
|
|
6674
6686
|
showNestedTree: j.value,
|
|
6675
6687
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6676
6688
|
additionalNestingLevel: A.value
|
|
6677
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6689
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? Dc : Ec, I = r({
|
|
6678
6690
|
get: () => [...n.option.children || []],
|
|
6679
6691
|
set: (e) => {
|
|
6680
6692
|
o("update:children", {
|
|
@@ -6683,7 +6695,7 @@ var co = {
|
|
|
6683
6695
|
});
|
|
6684
6696
|
}
|
|
6685
6697
|
}), 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);
|
|
6686
|
-
return (t, n) => (D(), i(
|
|
6698
|
+
return (t, n) => (D(), i(Ac, {
|
|
6687
6699
|
class: "pv-flow",
|
|
6688
6700
|
style: { "--flow-size": "0px" },
|
|
6689
6701
|
active: z.value,
|
|
@@ -6706,8 +6718,8 @@ var co = {
|
|
|
6706
6718
|
onContextmenu: n[3] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6707
6719
|
}, {
|
|
6708
6720
|
default: K(() => [
|
|
6709
|
-
ie(u(
|
|
6710
|
-
j.value ? (D(), i(
|
|
6721
|
+
ie(u(Tc, null, null, 512), [[ne, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6722
|
+
j.value ? (D(), i(Oc, {
|
|
6711
6723
|
key: 0,
|
|
6712
6724
|
"is-last": R.value
|
|
6713
6725
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6722,7 +6734,7 @@ var co = {
|
|
|
6722
6734
|
"settings",
|
|
6723
6735
|
"selected",
|
|
6724
6736
|
"params"
|
|
6725
|
-
])) : (D(), i(
|
|
6737
|
+
])) : (D(), i(wc, {
|
|
6726
6738
|
key: 2,
|
|
6727
6739
|
label: e.option.label,
|
|
6728
6740
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6750,7 +6762,7 @@ var co = {
|
|
|
6750
6762
|
onEnd: L(S),
|
|
6751
6763
|
onAdd: L(S)
|
|
6752
6764
|
}, {
|
|
6753
|
-
item: K(({ element: r, index: i }) => [u(
|
|
6765
|
+
item: K(({ element: r, index: i }) => [u(Vc, {
|
|
6754
6766
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6755
6767
|
option: r,
|
|
6756
6768
|
settings: e.settings,
|
|
@@ -6785,11 +6797,11 @@ var co = {
|
|
|
6785
6797
|
"class",
|
|
6786
6798
|
"onEnd",
|
|
6787
6799
|
"onAdd"
|
|
6788
|
-
])], 8,
|
|
6800
|
+
])], 8, Hc)]),
|
|
6789
6801
|
_: 1
|
|
6790
6802
|
}, 8, ["active", "level"]));
|
|
6791
6803
|
}
|
|
6792
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6804
|
+
}), [["__scopeId", "data-v-26eb4678"]]), Wc = ["data-parent-id"], Gc = { key: 2 }, Kc = ["data-parent-id"], qc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
6793
6805
|
__name: "PvTreeItem",
|
|
6794
6806
|
props: {
|
|
6795
6807
|
option: {},
|
|
@@ -6820,12 +6832,12 @@ var co = {
|
|
|
6820
6832
|
}), G(l, (e) => {
|
|
6821
6833
|
e && (d.value = !0);
|
|
6822
6834
|
});
|
|
6823
|
-
let { getDragGroupConfig: f, getDragAndDropDisabled: p, canItemBeDragged: m, handleMoveCallback: h, childrenDraggable: g, canAcceptDrop: _ } =
|
|
6835
|
+
let { getDragGroupConfig: f, getDragAndDropDisabled: p, canItemBeDragged: m, handleMoveCallback: h, childrenDraggable: g, canAcceptDrop: _ } = Lc(), { hoveredId: v, handleMouseEnter: b, handleMouseLeave: S } = jc(), { isDragging: C, draggingGroupName: w, onDragStart: T, onDragEnd: E } = Ic(), { dragAndDropIndicatorClasses: O } = Rc(), { indentPadding: A, showsConnector: j } = kc(), P = () => {
|
|
6824
6836
|
T(f(n.settings, n.option).name);
|
|
6825
6837
|
}, F = (e) => ({
|
|
6826
6838
|
paddingLeft: A(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6827
6839
|
"--border-color": "#121313"
|
|
6828
|
-
}), I = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), ee = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6840
|
+
}), I = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), ee = r(() => n.settings[n.option.field]?.checkbox ? Dc : Ec), R = r({
|
|
6829
6841
|
get: () => [...n.option.children || []],
|
|
6830
6842
|
set: (e) => {
|
|
6831
6843
|
c("update:children", {
|
|
@@ -6836,7 +6848,7 @@ var co = {
|
|
|
6836
6848
|
}), 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);
|
|
6837
6849
|
return (t, n) => {
|
|
6838
6850
|
let r = M("PvTreeItem", !0);
|
|
6839
|
-
return D(), i(
|
|
6851
|
+
return D(), i(Ac, {
|
|
6840
6852
|
active: te.value,
|
|
6841
6853
|
level: e.level
|
|
6842
6854
|
}, {
|
|
@@ -6868,8 +6880,8 @@ var co = {
|
|
|
6868
6880
|
onContextmenu: n[6] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6869
6881
|
}, {
|
|
6870
6882
|
trigger: K(() => [
|
|
6871
|
-
ie(u(
|
|
6872
|
-
B.value ? (D(), i(
|
|
6883
|
+
ie(u(Tc, null, null, 512), [[ne, L(v) === e.option.node_id && L(m)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6884
|
+
B.value ? (D(), i(Oc, {
|
|
6873
6885
|
key: 0,
|
|
6874
6886
|
"is-last": V.value
|
|
6875
6887
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6884,7 +6896,7 @@ var co = {
|
|
|
6884
6896
|
"settings",
|
|
6885
6897
|
"selected",
|
|
6886
6898
|
"params"
|
|
6887
|
-
])) : (D(), i(
|
|
6899
|
+
])) : (D(), i(wc, {
|
|
6888
6900
|
key: 2,
|
|
6889
6901
|
label: e.option.label,
|
|
6890
6902
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6942,7 +6954,7 @@ var co = {
|
|
|
6942
6954
|
"class",
|
|
6943
6955
|
"onEnd",
|
|
6944
6956
|
"onAdd"
|
|
6945
|
-
])], 8,
|
|
6957
|
+
])], 8, Wc)]),
|
|
6946
6958
|
_: 1
|
|
6947
6959
|
}, 8, [
|
|
6948
6960
|
"modelValue",
|
|
@@ -6950,7 +6962,7 @@ var co = {
|
|
|
6950
6962
|
"summaryStyles",
|
|
6951
6963
|
"summaryClasses",
|
|
6952
6964
|
"defaultOpen"
|
|
6953
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6965
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(Uc, {
|
|
6954
6966
|
key: 1,
|
|
6955
6967
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6956
6968
|
"selected-options": e.selectedOptions,
|
|
@@ -6977,7 +6989,7 @@ var co = {
|
|
|
6977
6989
|
"is-draggable",
|
|
6978
6990
|
"disable-selection",
|
|
6979
6991
|
"is-last-root-item"
|
|
6980
|
-
])) : (D(), o("div",
|
|
6992
|
+
])) : (D(), o("div", Gc, [(D(), i(N(ee.value), {
|
|
6981
6993
|
class: y({ ...L(O)(e.option) }),
|
|
6982
6994
|
option: e.option,
|
|
6983
6995
|
selected: I(e.option.node_id),
|
|
@@ -6994,8 +7006,8 @@ var co = {
|
|
|
6994
7006
|
onContextmenu: n[12] ||= q((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6995
7007
|
}, {
|
|
6996
7008
|
default: K(() => [
|
|
6997
|
-
ie(u(
|
|
6998
|
-
B.value ? (D(), i(
|
|
7009
|
+
ie(u(Tc, null, null, 512), [[ne, L(v) === e.option.node_id && L(m)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
7010
|
+
B.value ? (D(), i(Oc, {
|
|
6999
7011
|
key: 0,
|
|
7000
7012
|
"is-last": V.value
|
|
7001
7013
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -7008,7 +7020,7 @@ var co = {
|
|
|
7008
7020
|
"option",
|
|
7009
7021
|
"settings",
|
|
7010
7022
|
"params"
|
|
7011
|
-
])) : (D(), i(
|
|
7023
|
+
])) : (D(), i(wc, {
|
|
7012
7024
|
key: 2,
|
|
7013
7025
|
label: e.option.label,
|
|
7014
7026
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -7073,12 +7085,12 @@ var co = {
|
|
|
7073
7085
|
"class",
|
|
7074
7086
|
"onEnd",
|
|
7075
7087
|
"onAdd"
|
|
7076
|
-
])], 8,
|
|
7088
|
+
])], 8, Kc)]))]),
|
|
7077
7089
|
_: 1
|
|
7078
7090
|
}, 8, ["active", "level"]);
|
|
7079
7091
|
};
|
|
7080
7092
|
}
|
|
7081
|
-
}), [["__scopeId", "data-v-9583f387"]]),
|
|
7093
|
+
}), [["__scopeId", "data-v-9583f387"]]), Jc = (e) => {
|
|
7082
7094
|
let t = [], n = !1;
|
|
7083
7095
|
function r(e) {
|
|
7084
7096
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -7121,7 +7133,7 @@ var co = {
|
|
|
7121
7133
|
newChildren: r
|
|
7122
7134
|
}), n || (n = !0, v(i));
|
|
7123
7135
|
} };
|
|
7124
|
-
},
|
|
7136
|
+
}, Yc = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7125
7137
|
__name: "PvTree",
|
|
7126
7138
|
props: /* @__PURE__ */ g({
|
|
7127
7139
|
settings: {},
|
|
@@ -7152,14 +7164,14 @@ var co = {
|
|
|
7152
7164
|
"update:treeOpen"
|
|
7153
7165
|
],
|
|
7154
7166
|
setup(e) {
|
|
7155
|
-
m(
|
|
7156
|
-
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
7167
|
+
m(Mc, null) || Fc();
|
|
7168
|
+
let n = e, i = z(e, "selectedOptions"), a = z(e, "options"), c = z(e, "treeOpen"), { handleUpdateChildren: l } = Jc(a), d = (e, t) => {
|
|
7157
7169
|
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];
|
|
7158
7170
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
7159
7171
|
...n.defaultSettings,
|
|
7160
7172
|
...n.settings[t]
|
|
7161
7173
|
}, e), {}));
|
|
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(
|
|
7174
|
+
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(qc, {
|
|
7163
7175
|
"is-last-root-item": n === a.value.length - 1,
|
|
7164
7176
|
"is-parent-path-open": !0,
|
|
7165
7177
|
"tree-open": c.value,
|
|
@@ -7184,19 +7196,19 @@ var co = {
|
|
|
7184
7196
|
"onUpdate:children"
|
|
7185
7197
|
])]))), 128))], 2)]));
|
|
7186
7198
|
}
|
|
7187
|
-
}), [["__scopeId", "data-v-0b4ec4c6"]]),
|
|
7199
|
+
}), [["__scopeId", "data-v-0b4ec4c6"]]), Xc = /* @__PURE__ */ d({
|
|
7188
7200
|
__name: "PvTreeGroup",
|
|
7189
7201
|
setup(e) {
|
|
7190
|
-
return
|
|
7202
|
+
return Fc(), (e, t) => j(e.$slots, "default");
|
|
7191
7203
|
}
|
|
7192
|
-
}),
|
|
7204
|
+
}), Zc = { class: "pv-full-width" }, Qc = {
|
|
7193
7205
|
key: 0,
|
|
7194
7206
|
class: "pv-flex pv-stack-4",
|
|
7195
7207
|
style: { "--flex-justify": "space-between" }
|
|
7196
|
-
},
|
|
7208
|
+
}, $c = {
|
|
7197
7209
|
key: 1,
|
|
7198
7210
|
class: "pv-text-subdued pv-text-title-sm"
|
|
7199
|
-
},
|
|
7211
|
+
}, el = ["data-disabled"], tl = /* @__PURE__ */ d({
|
|
7200
7212
|
__name: "PvProgressBar",
|
|
7201
7213
|
props: {
|
|
7202
7214
|
disabled: {
|
|
@@ -7213,16 +7225,16 @@ var co = {
|
|
|
7213
7225
|
},
|
|
7214
7226
|
setup(e) {
|
|
7215
7227
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
7216
|
-
return (r, c) => (D(), o("div",
|
|
7228
|
+
return (r, c) => (D(), o("div", Zc, [e.showLabel || e.secondaryLabel ? (D(), o("div", Qc, [e.showLabel ? (D(), o("p", {
|
|
7217
7229
|
key: 0,
|
|
7218
7230
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
7219
|
-
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
7231
|
+
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", $c, I(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
7220
7232
|
class: "pv-progress-bar",
|
|
7221
7233
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
7222
7234
|
style: x({ "--progress": `${n.value}%` })
|
|
7223
|
-
}, null, 12,
|
|
7235
|
+
}, null, 12, el)]));
|
|
7224
7236
|
}
|
|
7225
|
-
}),
|
|
7237
|
+
}), nl = /* @__PURE__ */ d({
|
|
7226
7238
|
__name: "PvDistributionBar",
|
|
7227
7239
|
props: {
|
|
7228
7240
|
size: { default: "lg" },
|
|
@@ -7266,10 +7278,10 @@ var co = {
|
|
|
7266
7278
|
style: x(c(e, t))
|
|
7267
7279
|
}, null, 6))), 128))], 4));
|
|
7268
7280
|
}
|
|
7269
|
-
}),
|
|
7281
|
+
}), rl = {
|
|
7270
7282
|
key: 0,
|
|
7271
7283
|
class: "pv-range-single-slider"
|
|
7272
|
-
},
|
|
7284
|
+
}, il = [
|
|
7273
7285
|
"id",
|
|
7274
7286
|
"aria-label",
|
|
7275
7287
|
"aria-valuetext",
|
|
@@ -7278,11 +7290,11 @@ var co = {
|
|
|
7278
7290
|
"min",
|
|
7279
7291
|
"step",
|
|
7280
7292
|
"value"
|
|
7281
|
-
],
|
|
7293
|
+
], al = ["aria-label"], ol = {
|
|
7282
7294
|
key: 0,
|
|
7283
7295
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
7284
7296
|
style: { "line-height": "1" }
|
|
7285
|
-
},
|
|
7297
|
+
}, sl = [
|
|
7286
7298
|
"aria-label",
|
|
7287
7299
|
"aria-valuetext",
|
|
7288
7300
|
"disabled",
|
|
@@ -7290,7 +7302,7 @@ var co = {
|
|
|
7290
7302
|
"min",
|
|
7291
7303
|
"step",
|
|
7292
7304
|
"value"
|
|
7293
|
-
],
|
|
7305
|
+
], cl = [
|
|
7294
7306
|
"aria-label",
|
|
7295
7307
|
"aria-valuetext",
|
|
7296
7308
|
"disabled",
|
|
@@ -7298,7 +7310,7 @@ var co = {
|
|
|
7298
7310
|
"min",
|
|
7299
7311
|
"step",
|
|
7300
7312
|
"value"
|
|
7301
|
-
],
|
|
7313
|
+
], ll = {
|
|
7302
7314
|
key: 1,
|
|
7303
7315
|
class: "pv-flex",
|
|
7304
7316
|
style: {
|
|
@@ -7306,15 +7318,15 @@ var co = {
|
|
|
7306
7318
|
"--flex-gap": "0.75rem",
|
|
7307
7319
|
"--flex-wrap": "wrap"
|
|
7308
7320
|
}
|
|
7309
|
-
},
|
|
7321
|
+
}, ul = { class: "pv-text-body-sm" }, dl = [
|
|
7310
7322
|
"disabled",
|
|
7311
7323
|
"step",
|
|
7312
7324
|
"value"
|
|
7313
|
-
],
|
|
7325
|
+
], fl = { class: "pv-text-body-sm" }, pl = [
|
|
7314
7326
|
"disabled",
|
|
7315
7327
|
"step",
|
|
7316
7328
|
"value"
|
|
7317
|
-
],
|
|
7329
|
+
], ml = 0, hl = 100, gl = 1e4, _l = "4.6875rem", vl = .01, yl = /* @__PURE__ */ d({
|
|
7318
7330
|
inheritAttrs: !1,
|
|
7319
7331
|
__name: "PvRange",
|
|
7320
7332
|
props: /* @__PURE__ */ g({
|
|
@@ -7406,7 +7418,7 @@ var co = {
|
|
|
7406
7418
|
let r = oe(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
7407
7419
|
return Math.exp(i + n * (a - i)) - r;
|
|
7408
7420
|
}, ce = (e, t) => Math.max(0, Math.min(100, J(e, t) * 100)), le = r(() => {
|
|
7409
|
-
let e = E(t.min) ??
|
|
7421
|
+
let e = E(t.min) ?? ml, n = E(t.max) ?? hl;
|
|
7410
7422
|
return e > n ? {
|
|
7411
7423
|
max: e,
|
|
7412
7424
|
min: n
|
|
@@ -7429,7 +7441,7 @@ var co = {
|
|
|
7429
7441
|
}
|
|
7430
7442
|
return t.split(".")[1]?.length ?? 0;
|
|
7431
7443
|
}, X = r(() => {
|
|
7432
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
7444
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(ml, r ?? ml, i ?? ml), o = n ?? Math.max(hl, r ?? hl, i ?? hl);
|
|
7433
7445
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (H.value > 0 ? H.value : 1)), {
|
|
7434
7446
|
max: o,
|
|
7435
7447
|
min: a
|
|
@@ -7470,14 +7482,14 @@ var co = {
|
|
|
7470
7482
|
"--range-track-color": q.value,
|
|
7471
7483
|
"--value-max": `${Oe.value}%`,
|
|
7472
7484
|
"--value-min": `${De.value}%`
|
|
7473
|
-
})), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => ({ left: `${Oe.value}%` })), Me = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ne = (e, t) => B.value ? Math.round(J(e, t) *
|
|
7485
|
+
})), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => ({ left: `${Oe.value}%` })), Me = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Ne = (e, t) => B.value ? Math.round(J(e, t) * gl) : e, Pe = (e, t) => B.value ? se(e / gl, t) : e, Fe = r(() => B.value ? 0 : X.value.min), Ie = r(() => B.value ? gl : X.value.max), Le = r(() => Ne(Ee.value.min, X.value)), Re = r(() => Ne(Ee.value.max, X.value)), ze = r(() => B.value ? 0 : le.value.min), Be = r(() => B.value ? gl : le.value.max), Ve = r(() => Ne(Y.value, le.value)), Q = r(() => Math.max(P(X.value.min).length, P(X.value.max).length, 3)), He = r(() => {
|
|
7474
7486
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
7475
7487
|
return {
|
|
7476
7488
|
"--flex-align": "stretch",
|
|
7477
7489
|
"--flex-gap": "0",
|
|
7478
|
-
"--pv-range-input-width": `max(${
|
|
7490
|
+
"--pv-range-input-width": `max(${_l}, calc(${Q.value}ch + ${e}))`
|
|
7479
7491
|
};
|
|
7480
|
-
}), Ue = () => E(t.min) !== null || X.value.min ===
|
|
7492
|
+
}), Ue = () => E(t.min) !== null || X.value.min === ml, We = () => E(t.max) !== null || X.value.max === hl, Ge = (e, t) => {
|
|
7481
7493
|
c.value = {
|
|
7482
7494
|
max: t >= X.value.max && We() ? null : t,
|
|
7483
7495
|
min: e <= X.value.min && Ue() ? null : e
|
|
@@ -7524,7 +7536,7 @@ var co = {
|
|
|
7524
7536
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
7525
7537
|
if (!a && !o) return;
|
|
7526
7538
|
e.preventDefault();
|
|
7527
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Se(se(J(i, r) + s *
|
|
7539
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = Se(se(J(i, r) + s * vl * c, r), a ? "up" : "down");
|
|
7528
7540
|
l === i && (l = i + s * ve(i, U.value)), Xe(n), Je(n, l, !1);
|
|
7529
7541
|
}, ct = () => {
|
|
7530
7542
|
g.value !== "min" && (m.value = P(Ee.value.min)), g.value !== "max" && (p.value = P(Ee.value.max));
|
|
@@ -7569,7 +7581,7 @@ var co = {
|
|
|
7569
7581
|
};
|
|
7570
7582
|
return G([Ee, X], ct, { immediate: !0 }), S(() => {
|
|
7571
7583
|
_t(), Qe();
|
|
7572
|
-
}), (n, r) => e.mode === "single" ? (D(), o("div",
|
|
7584
|
+
}), (n, r) => e.mode === "single" ? (D(), o("div", rl, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7573
7585
|
key: 0,
|
|
7574
7586
|
class: "pv-range-tooltip",
|
|
7575
7587
|
style: x(fe.value)
|
|
@@ -7588,7 +7600,7 @@ var co = {
|
|
|
7588
7600
|
onInput: it,
|
|
7589
7601
|
onPointerdown: rt,
|
|
7590
7602
|
onPointerup: $e
|
|
7591
|
-
}), null, 16,
|
|
7603
|
+
}), null, 16, il)])) : (D(), o("div", _({ key: 1 }, L(l), {
|
|
7592
7604
|
class: "pv-flex-vertical",
|
|
7593
7605
|
"data-testid": "pv-range-dual",
|
|
7594
7606
|
role: "group",
|
|
@@ -7598,7 +7610,7 @@ var co = {
|
|
|
7598
7610
|
"--flex-gap": "0"
|
|
7599
7611
|
}
|
|
7600
7612
|
}), [
|
|
7601
|
-
e.showBoundLabels ? (D(), o("div",
|
|
7613
|
+
e.showBoundLabels ? (D(), o("div", ol, [s("span", null, I(F(X.value.min)), 1), s("span", null, I(F(X.value.max)), 1)])) : a("", !0),
|
|
7602
7614
|
s("div", {
|
|
7603
7615
|
ref_key: "sliderRef",
|
|
7604
7616
|
ref: b,
|
|
@@ -7633,7 +7645,7 @@ var co = {
|
|
|
7633
7645
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
7634
7646
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
7635
7647
|
onPointerup: Ye
|
|
7636
|
-
}, null, 40,
|
|
7648
|
+
}, null, 40, sl),
|
|
7637
7649
|
s("input", {
|
|
7638
7650
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
7639
7651
|
type: "range",
|
|
@@ -7650,14 +7662,14 @@ var co = {
|
|
|
7650
7662
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
7651
7663
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
7652
7664
|
onPointerup: Ye
|
|
7653
|
-
}, null, 40,
|
|
7665
|
+
}, null, 40, cl)
|
|
7654
7666
|
], 38),
|
|
7655
|
-
e.showInputs ? (D(), o("div",
|
|
7667
|
+
e.showInputs ? (D(), o("div", ll, [
|
|
7656
7668
|
s("label", {
|
|
7657
7669
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7658
7670
|
for: f,
|
|
7659
7671
|
style: x(He.value)
|
|
7660
|
-
}, [s("span",
|
|
7672
|
+
}, [s("span", ul, I(e.minLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Z, {
|
|
7661
7673
|
key: 0,
|
|
7662
7674
|
class: "pv-range-input-icon",
|
|
7663
7675
|
name: e.inputIcon
|
|
@@ -7674,12 +7686,12 @@ var co = {
|
|
|
7674
7686
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
7675
7687
|
onInput: ut,
|
|
7676
7688
|
onKeydown: r[6] ||= ae((e) => mt(e, "min"), ["enter"])
|
|
7677
|
-
}, null, 40,
|
|
7689
|
+
}, null, 40, dl)], 2)], 4),
|
|
7678
7690
|
s("label", {
|
|
7679
7691
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7680
7692
|
for: d,
|
|
7681
7693
|
style: x(He.value)
|
|
7682
|
-
}, [s("span",
|
|
7694
|
+
}, [s("span", fl, I(e.maxLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Z, {
|
|
7683
7695
|
key: 0,
|
|
7684
7696
|
class: "pv-range-input-icon",
|
|
7685
7697
|
name: e.inputIcon
|
|
@@ -7696,7 +7708,7 @@ var co = {
|
|
|
7696
7708
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
7697
7709
|
onInput: dt,
|
|
7698
7710
|
onKeydown: r[9] ||= ae((e) => mt(e, "max"), ["enter"])
|
|
7699
|
-
}, null, 40,
|
|
7711
|
+
}, null, 40, pl)], 2)], 4),
|
|
7700
7712
|
e.showClear && Me.value ? (D(), i($, {
|
|
7701
7713
|
key: 0,
|
|
7702
7714
|
class: "pv-text-brand",
|
|
@@ -7713,26 +7725,26 @@ var co = {
|
|
|
7713
7725
|
variant: "ghost",
|
|
7714
7726
|
onClick: Ze
|
|
7715
7727
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
7716
|
-
], 16,
|
|
7728
|
+
], 16, al));
|
|
7717
7729
|
}
|
|
7718
|
-
}),
|
|
7730
|
+
}), bl = [
|
|
7719
7731
|
"aria-label",
|
|
7720
7732
|
"checked",
|
|
7721
7733
|
"disabled",
|
|
7722
7734
|
"name"
|
|
7723
|
-
],
|
|
7735
|
+
], xl = {
|
|
7724
7736
|
key: 3,
|
|
7725
7737
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
7726
|
-
},
|
|
7738
|
+
}, Sl = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Cl = {
|
|
7727
7739
|
key: 0,
|
|
7728
7740
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7729
|
-
},
|
|
7741
|
+
}, wl = {
|
|
7730
7742
|
key: 1,
|
|
7731
7743
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7732
|
-
},
|
|
7744
|
+
}, Tl = {
|
|
7733
7745
|
key: 4,
|
|
7734
7746
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
7735
|
-
},
|
|
7747
|
+
}, El = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
7736
7748
|
__name: "PvFilterPanelOptionRow",
|
|
7737
7749
|
props: {
|
|
7738
7750
|
ariaLabel: {},
|
|
@@ -7805,7 +7817,7 @@ var co = {
|
|
|
7805
7817
|
disabled: e.disabled,
|
|
7806
7818
|
name: e.name,
|
|
7807
7819
|
onChange: g
|
|
7808
|
-
}, null, 40,
|
|
7820
|
+
}, null, 40, bl)) : (D(), i(Ns, {
|
|
7809
7821
|
key: 1,
|
|
7810
7822
|
ariaLabel: e.ariaLabel || e.label,
|
|
7811
7823
|
disabled: e.disabled,
|
|
@@ -7818,12 +7830,12 @@ var co = {
|
|
|
7818
7830
|
"indeterminate",
|
|
7819
7831
|
"modelValue"
|
|
7820
7832
|
])),
|
|
7821
|
-
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
7822
|
-
s("span",
|
|
7823
|
-
e.subduedText ? (D(), o("span",
|
|
7824
|
-
e.subText ? (D(), o("span",
|
|
7833
|
+
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", xl, [
|
|
7834
|
+
s("span", Sl, I(e.label), 1),
|
|
7835
|
+
e.subduedText ? (D(), o("span", Cl, I(e.subduedText), 1)) : a("", !0),
|
|
7836
|
+
e.subText ? (D(), o("span", wl, I(e.subText), 1)) : a("", !0)
|
|
7825
7837
|
])),
|
|
7826
|
-
f.value ? (D(), o("span",
|
|
7838
|
+
f.value ? (D(), o("span", Tl, [j(t.$slots, "result-count", {}, () => [l("(" + I(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7827
7839
|
e.showFocusAction ? (D(), i($, {
|
|
7828
7840
|
key: 5,
|
|
7829
7841
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7839,26 +7851,26 @@ var co = {
|
|
|
7839
7851
|
])) : a("", !0)
|
|
7840
7852
|
], 6));
|
|
7841
7853
|
}
|
|
7842
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
7854
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), Dl = [
|
|
7843
7855
|
"totalCount",
|
|
7844
7856
|
"total_count",
|
|
7845
7857
|
"resultCount",
|
|
7846
7858
|
"result_count",
|
|
7847
7859
|
"row_count",
|
|
7848
7860
|
"count"
|
|
7849
|
-
],
|
|
7861
|
+
], Ol = new Intl.NumberFormat("en-US", {
|
|
7850
7862
|
maximumFractionDigits: 1,
|
|
7851
7863
|
notation: "compact"
|
|
7852
|
-
}),
|
|
7853
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
7864
|
+
}), kl = (e) => typeof e == "object" && !!e, Al = (e) => {
|
|
7865
|
+
if (typeof e == "number" && Number.isFinite(e)) return Ol.format(e);
|
|
7854
7866
|
if (typeof e == "string") {
|
|
7855
7867
|
let t = e.trim();
|
|
7856
7868
|
if (!t) return;
|
|
7857
7869
|
let n = Number(t);
|
|
7858
|
-
return Number.isFinite(n) ?
|
|
7870
|
+
return Number.isFinite(n) ? Ol.format(n) : e;
|
|
7859
7871
|
}
|
|
7860
|
-
},
|
|
7861
|
-
let n =
|
|
7872
|
+
}, jl = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Ml = (e, t = {}) => {
|
|
7873
|
+
let n = jl(t.dataType, t.valueDecimals);
|
|
7862
7874
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
7863
7875
|
currency: "USD",
|
|
7864
7876
|
maximumFractionDigits: n,
|
|
@@ -7870,11 +7882,11 @@ var co = {
|
|
|
7870
7882
|
minimumFractionDigits: n
|
|
7871
7883
|
}).format(e);
|
|
7872
7884
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
7873
|
-
},
|
|
7885
|
+
}, Nl = (e, t, n = {}) => e !== null && t !== null ? `${Ml(e, n)}–${Ml(t, n)}` : e === null ? t === null ? "" : `≤ ${Ml(t, n)}` : `${Ml(e, n)}+`, Pl = (e, t) => {
|
|
7874
7886
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
7875
7887
|
if (!n) return null;
|
|
7876
7888
|
try {
|
|
7877
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
7889
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : kl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
7878
7890
|
return n({
|
|
7879
7891
|
context: e.metadata,
|
|
7880
7892
|
value: t
|
|
@@ -7882,24 +7894,24 @@ var co = {
|
|
|
7882
7894
|
} catch {
|
|
7883
7895
|
return null;
|
|
7884
7896
|
}
|
|
7885
|
-
},
|
|
7897
|
+
}, Fl = (e, t) => {
|
|
7886
7898
|
let n = e.metadata;
|
|
7887
|
-
if (!
|
|
7899
|
+
if (!kl(n)) return null;
|
|
7888
7900
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
7889
7901
|
let t = n[e];
|
|
7890
7902
|
if (t != null && String(t).trim()) return String(t);
|
|
7891
7903
|
}
|
|
7892
7904
|
return null;
|
|
7893
|
-
},
|
|
7894
|
-
let t =
|
|
7905
|
+
}, Il = (e, t) => e.label || Fl(e, t) || Pl(e, t) || e.value, Ll = (e) => {
|
|
7906
|
+
let t = Al(e?.resultCount);
|
|
7895
7907
|
if (t !== void 0) return t;
|
|
7896
7908
|
let n = e?.metadata;
|
|
7897
|
-
if (
|
|
7898
|
-
let t =
|
|
7909
|
+
if (kl(n)) for (let e of Dl) {
|
|
7910
|
+
let t = Al(n[e]);
|
|
7899
7911
|
if (t !== void 0) return t;
|
|
7900
7912
|
}
|
|
7901
|
-
return
|
|
7902
|
-
},
|
|
7913
|
+
return Al(e?.totalChildCount);
|
|
7914
|
+
}, Rl = "__pv_filter_panel_scoped_value__", zl = (e) => typeof e == "object" && !!e, Bl = (e) => {
|
|
7903
7915
|
try {
|
|
7904
7916
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7905
7917
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7913,7 +7925,7 @@ var co = {
|
|
|
7913
7925
|
} catch {
|
|
7914
7926
|
return [];
|
|
7915
7927
|
}
|
|
7916
|
-
},
|
|
7928
|
+
}, Vl = (e) => {
|
|
7917
7929
|
if (!e.startsWith("__")) return null;
|
|
7918
7930
|
let t = e.slice(2).split("__");
|
|
7919
7931
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7926,76 +7938,76 @@ var co = {
|
|
|
7926
7938
|
pairs: n,
|
|
7927
7939
|
value: n[0].value
|
|
7928
7940
|
};
|
|
7929
|
-
},
|
|
7941
|
+
}, Hl = (e) => {
|
|
7930
7942
|
if (e == null) return null;
|
|
7931
|
-
if (!e.startsWith(
|
|
7943
|
+
if (!e.startsWith(Rl)) return Vl(e) ?? {
|
|
7932
7944
|
pairs: [],
|
|
7933
7945
|
value: e
|
|
7934
7946
|
};
|
|
7935
|
-
let t =
|
|
7947
|
+
let t = Bl(e.slice(32));
|
|
7936
7948
|
return {
|
|
7937
7949
|
field: t[0]?.field,
|
|
7938
7950
|
pairs: t,
|
|
7939
7951
|
value: t[0]?.value ?? e
|
|
7940
7952
|
};
|
|
7941
|
-
},
|
|
7953
|
+
}, Ul = (e, t) => `${Rl}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Wl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : zl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : Hl(e.value)?.value ?? e.value : null, Gl = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Hl(e?.value)?.field ?? t, Kl = (e) => e.flatMap((e) => [e, ...e.children?.length ? Kl(e.children) : []]), ql = (e, t, n, r) => Gl(e, r) === t && Wl(e) === n, Jl = (e) => {
|
|
7942
7954
|
let t = e;
|
|
7943
7955
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7944
|
-
},
|
|
7956
|
+
}, Yl = (e) => {
|
|
7945
7957
|
let t = e;
|
|
7946
|
-
return
|
|
7958
|
+
return Jl(e) ? {
|
|
7947
7959
|
...t,
|
|
7948
|
-
conditions: (t.conditions ?? []).map(
|
|
7960
|
+
conditions: (t.conditions ?? []).map(Yl)
|
|
7949
7961
|
} : { ...t };
|
|
7950
|
-
},
|
|
7962
|
+
}, Xl = (e, t) => {
|
|
7951
7963
|
if (!e) return null;
|
|
7952
7964
|
let n = t instanceof Set ? t : new Set(t);
|
|
7953
|
-
if (!n.size) return
|
|
7954
|
-
if (!
|
|
7965
|
+
if (!n.size) return Yl(e);
|
|
7966
|
+
if (!Jl(e)) {
|
|
7955
7967
|
let t = e;
|
|
7956
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7968
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Yl(e);
|
|
7957
7969
|
}
|
|
7958
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7970
|
+
let r = e, i = (r.conditions ?? []).map((e) => Xl(e, n)).filter((e) => !!e);
|
|
7959
7971
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7960
7972
|
...r,
|
|
7961
7973
|
conditions: i
|
|
7962
7974
|
} : null;
|
|
7963
|
-
},
|
|
7975
|
+
}, Zl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Zl)] : [], Ql = (e) => e ? e.children?.length ? e.children.flatMap(Ql) : [e.field] : [], $l = (e) => {
|
|
7964
7976
|
let t = e?.context ?? {};
|
|
7965
|
-
return t.aggregateFieldHierarchy ?
|
|
7966
|
-
},
|
|
7977
|
+
return t.aggregateFieldHierarchy ? Zl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7978
|
+
}, eu = (e) => {
|
|
7967
7979
|
let t = e?.context ?? {};
|
|
7968
7980
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7969
|
-
},
|
|
7981
|
+
}, tu = (e) => $l(e).length > 0, nu = (e, t) => {
|
|
7970
7982
|
for (let n of e ?? []) {
|
|
7971
7983
|
if (!n) continue;
|
|
7972
7984
|
if (n.value === t) return n;
|
|
7973
|
-
let e =
|
|
7985
|
+
let e = nu(n.children, t);
|
|
7974
7986
|
if (e) return e;
|
|
7975
7987
|
}
|
|
7976
|
-
},
|
|
7988
|
+
}, ru = (e, t, n = []) => {
|
|
7977
7989
|
for (let r of e ?? []) {
|
|
7978
7990
|
if (!r) continue;
|
|
7979
7991
|
let e = [...n, r];
|
|
7980
7992
|
if (r.value === t) return e;
|
|
7981
|
-
let i =
|
|
7993
|
+
let i = ru(r.children, t, e);
|
|
7982
7994
|
if (i) return i;
|
|
7983
7995
|
}
|
|
7984
|
-
},
|
|
7985
|
-
let n =
|
|
7996
|
+
}, iu = (e, t) => {
|
|
7997
|
+
let n = nu(t, e), r = n ? Gl(n, "") : void 0, i = n ? Wl(n) : null;
|
|
7986
7998
|
if (r && i !== null) return {
|
|
7987
7999
|
field: r,
|
|
7988
8000
|
value: i
|
|
7989
8001
|
};
|
|
7990
|
-
let a =
|
|
8002
|
+
let a = Hl(e);
|
|
7991
8003
|
return {
|
|
7992
8004
|
field: a?.field,
|
|
7993
8005
|
value: a?.value ?? e
|
|
7994
8006
|
};
|
|
7995
|
-
},
|
|
8007
|
+
}, au = (e, t, n) => {
|
|
7996
8008
|
let r = (e) => {
|
|
7997
8009
|
if (!e) return;
|
|
7998
|
-
let i =
|
|
8010
|
+
let i = Gl(e, ""), a = Wl(e);
|
|
7999
8011
|
if (i === t && a === n) return e.value;
|
|
8000
8012
|
for (let t of e.children ?? []) {
|
|
8001
8013
|
let e = r(t);
|
|
@@ -8007,9 +8019,9 @@ var co = {
|
|
|
8007
8019
|
if (e) return e;
|
|
8008
8020
|
}
|
|
8009
8021
|
return `__${t}__${n}`;
|
|
8010
|
-
},
|
|
8022
|
+
}, ou = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...ou(e.children)]), su = (e, t) => {
|
|
8011
8023
|
if (e.state !== "selected") return null;
|
|
8012
|
-
let { field: n, value: r } =
|
|
8024
|
+
let { field: n, value: r } = iu(e.id, t);
|
|
8013
8025
|
if (!n) return null;
|
|
8014
8026
|
let i = [{
|
|
8015
8027
|
colId: n,
|
|
@@ -8017,8 +8029,8 @@ var co = {
|
|
|
8017
8029
|
filterType: "text",
|
|
8018
8030
|
type: "equals"
|
|
8019
8031
|
}];
|
|
8020
|
-
for (let n of
|
|
8021
|
-
let e =
|
|
8032
|
+
for (let n of ou(e.children)) {
|
|
8033
|
+
let e = iu(n.id, t);
|
|
8022
8034
|
e.field && i.push({
|
|
8023
8035
|
colId: e.field,
|
|
8024
8036
|
filter: e.value,
|
|
@@ -8031,10 +8043,10 @@ var co = {
|
|
|
8031
8043
|
filterType: "join",
|
|
8032
8044
|
type: "AND"
|
|
8033
8045
|
};
|
|
8034
|
-
},
|
|
8035
|
-
let t =
|
|
8046
|
+
}, cu = (e) => {
|
|
8047
|
+
let t = $l(e.colDef), n = Xl(e.baseModel, t);
|
|
8036
8048
|
if (!t.length) return n;
|
|
8037
|
-
let r = e.state.map((t) =>
|
|
8049
|
+
let r = e.state.map((t) => su(t, e.options)).filter((e) => !!e);
|
|
8038
8050
|
if (!r.length) return n;
|
|
8039
8051
|
let i = r.length === 1 ? r[0] : {
|
|
8040
8052
|
conditions: r,
|
|
@@ -8046,17 +8058,17 @@ var co = {
|
|
|
8046
8058
|
filterType: "join",
|
|
8047
8059
|
type: "AND"
|
|
8048
8060
|
} : i;
|
|
8049
|
-
},
|
|
8061
|
+
}, lu = (e, t, n) => {
|
|
8050
8062
|
if (!e) return [];
|
|
8051
8063
|
let r = e;
|
|
8052
|
-
if (
|
|
8064
|
+
if (Jl(e)) {
|
|
8053
8065
|
let e = r.conditions ?? [];
|
|
8054
8066
|
if (r.type === "AND") {
|
|
8055
8067
|
let r = e.find((e) => {
|
|
8056
8068
|
let r = e;
|
|
8057
8069
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
8058
8070
|
});
|
|
8059
|
-
return e.flatMap((e) =>
|
|
8071
|
+
return e.flatMap((e) => lu(e, t, n).map((e) => ({
|
|
8060
8072
|
...e,
|
|
8061
8073
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
8062
8074
|
colId: r.colId,
|
|
@@ -8064,20 +8076,20 @@ var co = {
|
|
|
8064
8076
|
} : void 0)
|
|
8065
8077
|
})));
|
|
8066
8078
|
}
|
|
8067
|
-
return e.flatMap((e) =>
|
|
8079
|
+
return e.flatMap((e) => lu(e, t, n));
|
|
8068
8080
|
}
|
|
8069
8081
|
return r.colId && t.has(r.colId) ? [{
|
|
8070
8082
|
colId: r.colId,
|
|
8071
8083
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
8072
8084
|
type: r.type
|
|
8073
8085
|
}] : [];
|
|
8074
|
-
},
|
|
8075
|
-
let t =
|
|
8086
|
+
}, uu = (e) => {
|
|
8087
|
+
let t = $l(e.colDef);
|
|
8076
8088
|
if (!t.length) return [];
|
|
8077
|
-
let n = new Set(
|
|
8089
|
+
let n = new Set(Ql(e.colDef.context?.aggregateFieldHierarchy)), r = eu(e.colDef), i = lu(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
8078
8090
|
for (let t of i) {
|
|
8079
8091
|
if (!t.filter) continue;
|
|
8080
|
-
let n =
|
|
8092
|
+
let n = au(e.options, t.colId, String(t.filter));
|
|
8081
8093
|
if (t.type === "equals") {
|
|
8082
8094
|
let e = a.get(n);
|
|
8083
8095
|
a.set(n, {
|
|
@@ -8088,7 +8100,7 @@ var co = {
|
|
|
8088
8100
|
continue;
|
|
8089
8101
|
}
|
|
8090
8102
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
8091
|
-
let r =
|
|
8103
|
+
let r = au(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
8092
8104
|
children: [],
|
|
8093
8105
|
id: r,
|
|
8094
8106
|
state: "selected"
|
|
@@ -8100,155 +8112,155 @@ var co = {
|
|
|
8100
8112
|
}
|
|
8101
8113
|
}
|
|
8102
8114
|
return [...a.values()];
|
|
8103
|
-
},
|
|
8104
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
8115
|
+
}, du = (e) => {
|
|
8116
|
+
let t = /* @__PURE__ */ new Map(), n = $l(e.colDef);
|
|
8105
8117
|
if (!n.length) return t;
|
|
8106
|
-
let r =
|
|
8118
|
+
let r = lu(e.model, new Set(n), new Set(Ql(e.colDef.context?.aggregateFieldHierarchy)));
|
|
8107
8119
|
for (let e of r) {
|
|
8108
8120
|
if (e.type !== "equals" || !e.filter) continue;
|
|
8109
8121
|
let n = t.get(e.colId) ?? [];
|
|
8110
8122
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
8111
8123
|
}
|
|
8112
8124
|
return t;
|
|
8113
|
-
},
|
|
8125
|
+
}, fu = (e) => e.map((e) => ({
|
|
8114
8126
|
...e,
|
|
8115
8127
|
children: e.children?.map((e) => ({
|
|
8116
8128
|
...e,
|
|
8117
|
-
children: e.children ?
|
|
8129
|
+
children: e.children ? fu(e.children) : void 0
|
|
8118
8130
|
}))
|
|
8119
|
-
})),
|
|
8131
|
+
})), pu = (e, t) => e.flatMap((e) => {
|
|
8120
8132
|
if (e.id === t) return [];
|
|
8121
|
-
let n = e.children ?
|
|
8133
|
+
let n = e.children ? pu(e.children, t) : void 0;
|
|
8122
8134
|
return [{
|
|
8123
8135
|
...e,
|
|
8124
8136
|
children: n?.length ? n : void 0
|
|
8125
8137
|
}];
|
|
8126
|
-
}),
|
|
8138
|
+
}), mu = (e, t) => {
|
|
8127
8139
|
for (let n of e) {
|
|
8128
8140
|
if (n.id === t) return n;
|
|
8129
|
-
let e = n.children ?
|
|
8141
|
+
let e = n.children ? mu(n.children, t) : void 0;
|
|
8130
8142
|
if (e) return e;
|
|
8131
8143
|
}
|
|
8132
|
-
},
|
|
8133
|
-
let r = (
|
|
8144
|
+
}, hu = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, gu = (e, t) => [...pu(e, t.id), t], _u = (e) => (e.children ?? []).flatMap((e) => [e.value, ..._u(e)]), vu = (e, t) => _u(t).reduce((e, t) => pu(e, t), e), yu = (e, t) => [t.value, ..._u(t)].reduce((e, t) => pu(e, t), e), bu = (e, t, n) => {
|
|
8145
|
+
let r = (ru(n, t.value) ?? []).slice(0, -1).reverse();
|
|
8134
8146
|
for (let t of r) {
|
|
8135
|
-
let n =
|
|
8147
|
+
let n = mu(e, t.value);
|
|
8136
8148
|
if (n?.state === "selected") return n;
|
|
8137
8149
|
}
|
|
8138
|
-
},
|
|
8139
|
-
let t =
|
|
8150
|
+
}, xu = (e) => {
|
|
8151
|
+
let t = fu(e.state), n = bu(t, e.option, e.options);
|
|
8140
8152
|
if (n) {
|
|
8141
8153
|
let r = n.children ?? [];
|
|
8142
|
-
return n.children = e.checked ?
|
|
8154
|
+
return n.children = e.checked ? yu(r, e.option) : [...yu(r, e.option), {
|
|
8143
8155
|
id: e.option.value,
|
|
8144
8156
|
state: "deselected"
|
|
8145
8157
|
}], n.children.length || delete n.children, t;
|
|
8146
8158
|
}
|
|
8147
|
-
return
|
|
8159
|
+
return hu(e.option) ? e.checked ? gu(vu(t, e.option), {
|
|
8148
8160
|
id: e.option.value,
|
|
8149
8161
|
state: "selected"
|
|
8150
|
-
}) :
|
|
8162
|
+
}) : pu(t, e.option.value) : e.checked ? gu(t, {
|
|
8151
8163
|
id: e.option.value,
|
|
8152
8164
|
state: "selected"
|
|
8153
|
-
}) :
|
|
8154
|
-
},
|
|
8165
|
+
}) : pu(t, e.option.value);
|
|
8166
|
+
}, Su = (e) => {
|
|
8155
8167
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
8156
8168
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
8157
8169
|
};
|
|
8158
8170
|
return n(e), t;
|
|
8159
|
-
},
|
|
8160
|
-
let t =
|
|
8171
|
+
}, Cu = (e) => {
|
|
8172
|
+
let t = Su(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
8161
8173
|
let a = t.get(e.value), o = a?.state === "selected" || i && a?.state !== "deselected", s = (e.children ?? []).map((e) => r(e, o)), c = s.some((e) => e.selected || e.indeterminate), l = s.some((e) => !e.selected || e.indeterminate), u = {
|
|
8162
|
-
indeterminate:
|
|
8174
|
+
indeterminate: ou(a?.children).length > 0 || !o && c || o && l,
|
|
8163
8175
|
selected: o
|
|
8164
8176
|
};
|
|
8165
8177
|
return n.set(e.value, u), u;
|
|
8166
8178
|
};
|
|
8167
8179
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
8168
8180
|
return n;
|
|
8169
|
-
},
|
|
8181
|
+
}, wu = (e) => Cu(e).get(e.option.value) ?? Cu({
|
|
8170
8182
|
options: [e.option],
|
|
8171
8183
|
state: e.state
|
|
8172
8184
|
}).get(e.option.value) ?? {
|
|
8173
8185
|
indeterminate: !1,
|
|
8174
8186
|
selected: !1
|
|
8175
|
-
},
|
|
8187
|
+
}, Tu = (e) => e.state.flatMap((t) => {
|
|
8176
8188
|
if (t.state !== "selected") return [];
|
|
8177
|
-
let n =
|
|
8189
|
+
let n = nu(e.options, t.id);
|
|
8178
8190
|
if (n) return [n];
|
|
8179
|
-
let { field: r, value: i } =
|
|
8191
|
+
let { field: r, value: i } = iu(t.id, e.options);
|
|
8180
8192
|
return [{
|
|
8181
8193
|
colField: r,
|
|
8182
8194
|
label: i,
|
|
8183
8195
|
metadata: { rawValue: i },
|
|
8184
|
-
value: r ?
|
|
8196
|
+
value: r ? Ul(r, i) : t.id
|
|
8185
8197
|
}];
|
|
8186
|
-
}),
|
|
8198
|
+
}), Eu = (e) => e.filter((e) => e.state === "selected").length, Du = ["open"], Ou = {
|
|
8187
8199
|
class: "pv-flex pv-text-body-md",
|
|
8188
8200
|
style: {
|
|
8189
8201
|
"--flex-align": "center",
|
|
8190
8202
|
"--flex-gap": "0.5rem"
|
|
8191
8203
|
}
|
|
8192
|
-
},
|
|
8204
|
+
}, ku = {
|
|
8193
8205
|
key: 1,
|
|
8194
8206
|
class: "pv-filter-panel-refresh-status",
|
|
8195
8207
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
8196
8208
|
role: "status"
|
|
8197
|
-
},
|
|
8209
|
+
}, Au = { class: "pv-visually-hidden" }, ju = ["aria-busy"], Mu = {
|
|
8198
8210
|
key: 0,
|
|
8199
8211
|
class: "pv-flex-vertical",
|
|
8200
8212
|
style: {
|
|
8201
8213
|
"--flex-align": "stretch",
|
|
8202
8214
|
"--flex-gap": "0.5rem"
|
|
8203
8215
|
}
|
|
8204
|
-
},
|
|
8216
|
+
}, Nu = {
|
|
8205
8217
|
key: 0,
|
|
8206
8218
|
class: "pv-flex",
|
|
8207
8219
|
style: {
|
|
8208
8220
|
"--flex-gap": "0.5rem",
|
|
8209
8221
|
"--flex-wrap": "wrap"
|
|
8210
8222
|
}
|
|
8211
|
-
},
|
|
8223
|
+
}, Pu = {
|
|
8212
8224
|
key: 1,
|
|
8213
8225
|
class: "pv-flex",
|
|
8214
8226
|
style: { "--flex-justify": "flex-end" }
|
|
8215
|
-
},
|
|
8227
|
+
}, Fu = {
|
|
8216
8228
|
key: 2,
|
|
8217
8229
|
class: "pv-flex-vertical",
|
|
8218
8230
|
style: {
|
|
8219
8231
|
"--flex-align": "stretch",
|
|
8220
8232
|
"--flex-gap": "0.5rem"
|
|
8221
8233
|
}
|
|
8222
|
-
},
|
|
8234
|
+
}, Iu = {
|
|
8223
8235
|
key: 3,
|
|
8224
8236
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
8225
|
-
},
|
|
8237
|
+
}, Lu = { key: 0 }, Ru = {
|
|
8226
8238
|
key: 1,
|
|
8227
8239
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8228
8240
|
style: { margin: "0" }
|
|
8229
|
-
},
|
|
8241
|
+
}, zu = {
|
|
8230
8242
|
key: 1,
|
|
8231
8243
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8232
8244
|
style: { margin: "0" }
|
|
8233
|
-
},
|
|
8245
|
+
}, Bu = {
|
|
8234
8246
|
key: 2,
|
|
8235
8247
|
class: "pv-flex-vertical",
|
|
8236
8248
|
style: {
|
|
8237
8249
|
"--flex-align": "stretch",
|
|
8238
8250
|
"--flex-gap": "0.5rem"
|
|
8239
8251
|
}
|
|
8240
|
-
},
|
|
8252
|
+
}, Vu = { key: 0 }, Hu = {
|
|
8241
8253
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
8242
8254
|
style: { margin: "0" }
|
|
8243
|
-
},
|
|
8255
|
+
}, Uu = {
|
|
8244
8256
|
key: 1,
|
|
8245
8257
|
class: "pv-text-title-sm pv-text-subdued",
|
|
8246
8258
|
style: { margin: "0" }
|
|
8247
|
-
},
|
|
8259
|
+
}, Wu = {
|
|
8248
8260
|
key: 2,
|
|
8249
8261
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8250
8262
|
style: { margin: "0" }
|
|
8251
|
-
},
|
|
8263
|
+
}, Gu = {
|
|
8252
8264
|
key: 3,
|
|
8253
8265
|
class: "pv-flex-vertical",
|
|
8254
8266
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -8256,14 +8268,14 @@ var co = {
|
|
|
8256
8268
|
"--flex-align": "stretch",
|
|
8257
8269
|
"--flex-gap": "0.5rem"
|
|
8258
8270
|
}
|
|
8259
|
-
},
|
|
8271
|
+
}, Ku = {
|
|
8260
8272
|
class: "pv-flex",
|
|
8261
8273
|
style: {
|
|
8262
8274
|
"--flex-align": "center",
|
|
8263
8275
|
"--flex-gap": "0.5rem",
|
|
8264
8276
|
"--flex-wrap": "wrap"
|
|
8265
8277
|
}
|
|
8266
|
-
},
|
|
8278
|
+
}, qu = {
|
|
8267
8279
|
key: 4,
|
|
8268
8280
|
class: "pv-flex",
|
|
8269
8281
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -8272,7 +8284,7 @@ var co = {
|
|
|
8272
8284
|
"--flex-gap": "0.5rem",
|
|
8273
8285
|
cursor: "pointer"
|
|
8274
8286
|
}
|
|
8275
|
-
},
|
|
8287
|
+
}, Ju = { class: "pv-text-body-sm" }, Yu = 5, Xu = 500, Zu = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
8276
8288
|
__name: "PvFilterPanelAccordion",
|
|
8277
8289
|
props: {
|
|
8278
8290
|
disableWhileLoading: {
|
|
@@ -8290,7 +8302,7 @@ var co = {
|
|
|
8290
8302
|
"search-change"
|
|
8291
8303
|
],
|
|
8292
8304
|
setup(e, { emit: n }) {
|
|
8293
|
-
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = R(), g = k(c.filter.searchQuery ?? ""), v = k(
|
|
8305
|
+
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = R(), g = k(c.filter.searchQuery ?? ""), v = k(Yu), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), S = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => [...c.filter.knownOptions ?? [], ...C.value]), T = r(() => c.filter.type ?? "value"), E = r(() => T.value === "value"), O = r(() => E.value && c.filter.isAggregate === !0), j = r(() => c.filter.aggregateSelectionState ?? []), M = r(() => g.value.trim().toLowerCase()), P = r(() => c.filter.selectedValues ?? []), F = r(() => new Set(P.value)), ee = r(() => c.filter.valueLabels?.true ?? "Yes"), z = r(() => c.filter.filterOptionsSortDescription || "Suggested"), B = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), V = r(() => {
|
|
8294
8306
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
8295
8307
|
return t && !n ? [{
|
|
8296
8308
|
label: ee.value,
|
|
@@ -8315,7 +8327,7 @@ var co = {
|
|
|
8315
8327
|
e.matchedValue,
|
|
8316
8328
|
e.matchedField
|
|
8317
8329
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
8318
|
-
}, H = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ?
|
|
8330
|
+
}, H = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? Eu(j.value) || void 0 : P.value.length || void 0), U = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), W = (e, t = 0) => e.flatMap((e) => [
|
|
8319
8331
|
{
|
|
8320
8332
|
depth: t,
|
|
8321
8333
|
kind: "option",
|
|
@@ -8340,16 +8352,16 @@ var co = {
|
|
|
8340
8352
|
ae.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
8341
8353
|
};
|
|
8342
8354
|
ce();
|
|
8343
|
-
let le = r(() => O.value || c.filter.singleSelect ? ne.value : ne.value.filter((e) => e.kind === "child-load-more" || !q.value.has(e.option.value))), Y = r(() => le.value.length > v.value), ue = r(() => Y.value || c.filter.hasMore), de = r(() => le.value.slice(0, v.value)), pe = r(() => O.value ?
|
|
8355
|
+
let le = r(() => O.value || c.filter.singleSelect ? ne.value : ne.value.filter((e) => e.kind === "child-load-more" || !q.value.has(e.option.value))), Y = r(() => le.value.length > v.value), ue = r(() => Y.value || c.filter.hasMore), de = r(() => le.value.slice(0, v.value)), pe = r(() => O.value ? Cu({
|
|
8344
8356
|
options: w.value,
|
|
8345
8357
|
state: j.value
|
|
8346
|
-
}) : /* @__PURE__ */ new Map()), X = (e) =>
|
|
8358
|
+
}) : /* @__PURE__ */ new Map()), X = (e) => Il(e, c.filter.colDef), me = (e) => Ll(e), he = (e) => O.value ? pe.value.get(e.value) ?? {
|
|
8347
8359
|
indeterminate: !1,
|
|
8348
8360
|
selected: !1
|
|
8349
8361
|
} : {
|
|
8350
8362
|
indeterminate: !1,
|
|
8351
8363
|
selected: F.value.has(e.value)
|
|
8352
|
-
}, ge = (e) => he(e).selected, _e = (e) => he(e).indeterminate, ve = (e) =>
|
|
8364
|
+
}, ge = (e) => he(e).selected, _e = (e) => he(e).indeterminate, ve = (e) => Wl(e) ?? e.value, ye = (e) => Gl(e, c.filter.key), be = (e) => {
|
|
8353
8365
|
let t = ye(e), n = ve(e);
|
|
8354
8366
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
8355
8367
|
}, xe = (e) => ({
|
|
@@ -8378,7 +8390,7 @@ var co = {
|
|
|
8378
8390
|
rowsLoading: c.filter.isLoading
|
|
8379
8391
|
}
|
|
8380
8392
|
})), Te = () => {
|
|
8381
|
-
B.value || (Y.value ? v.value +=
|
|
8393
|
+
B.value || (Y.value ? v.value += Yu : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
8382
8394
|
}, Ee = (e) => {
|
|
8383
8395
|
B.value || d("load-more", g.value.trim(), e.value);
|
|
8384
8396
|
}, De = (e) => {
|
|
@@ -8404,7 +8416,7 @@ var co = {
|
|
|
8404
8416
|
if (O.value) {
|
|
8405
8417
|
d("filter-change", {
|
|
8406
8418
|
type: "aggregate-selection",
|
|
8407
|
-
value:
|
|
8419
|
+
value: xu({
|
|
8408
8420
|
checked: t,
|
|
8409
8421
|
option: e,
|
|
8410
8422
|
options: w.value,
|
|
@@ -8432,12 +8444,12 @@ var co = {
|
|
|
8432
8444
|
B.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
8433
8445
|
};
|
|
8434
8446
|
G([g, () => c.filter.key], () => {
|
|
8435
|
-
v.value =
|
|
8447
|
+
v.value = Yu;
|
|
8436
8448
|
});
|
|
8437
8449
|
let Ie = () => {
|
|
8438
|
-
let e =
|
|
8450
|
+
let e = Kl(w.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
8439
8451
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
8440
|
-
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
8452
|
+
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Xu)));
|
|
8441
8453
|
};
|
|
8442
8454
|
return G(w, () => {
|
|
8443
8455
|
c.filter.isOpen && Ie();
|
|
@@ -8464,7 +8476,7 @@ var co = {
|
|
|
8464
8476
|
"data-testid": "pv-filter-panel-accordion",
|
|
8465
8477
|
open: e.filter.isOpen,
|
|
8466
8478
|
onToggle: De
|
|
8467
|
-
}, [s("summary",
|
|
8479
|
+
}, [s("summary", Ou, [
|
|
8468
8480
|
u(Z, {
|
|
8469
8481
|
"aria-hidden": "true",
|
|
8470
8482
|
class: "pv-text-subdued",
|
|
@@ -8477,7 +8489,7 @@ var co = {
|
|
|
8477
8489
|
size: "sm",
|
|
8478
8490
|
variant: "secondary"
|
|
8479
8491
|
}, null, 8, ["value"])) : a("", !0),
|
|
8480
|
-
se.value ? (D(), o("span",
|
|
8492
|
+
se.value ? (D(), o("span", ku, [u(Ne, { size: "sm" }), s("span", Au, I(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
8481
8493
|
]), s("div", {
|
|
8482
8494
|
ref_key: "filterContent",
|
|
8483
8495
|
ref: f,
|
|
@@ -8488,8 +8500,8 @@ var co = {
|
|
|
8488
8500
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
8489
8501
|
})
|
|
8490
8502
|
}, [E.value ? (D(), o(t, { key: 0 }, [
|
|
8491
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
8492
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
8503
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", Mu, [
|
|
8504
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", Nu, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (e) => (D(), i($, {
|
|
8493
8505
|
key: e.field,
|
|
8494
8506
|
disabled: B.value,
|
|
8495
8507
|
label: e.label,
|
|
@@ -8502,7 +8514,7 @@ var co = {
|
|
|
8502
8514
|
"variant",
|
|
8503
8515
|
"onClick"
|
|
8504
8516
|
]))), 128))])) : a("", !0),
|
|
8505
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
8517
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", Pu, [u($, {
|
|
8506
8518
|
ariaLabel: "Open preferences",
|
|
8507
8519
|
disabled: B.value,
|
|
8508
8520
|
leftIcon: "sliders-horizontal",
|
|
@@ -8524,7 +8536,7 @@ var co = {
|
|
|
8524
8536
|
"disabled",
|
|
8525
8537
|
"placeholder"
|
|
8526
8538
|
])),
|
|
8527
|
-
oe.value.length ? (D(), o("div",
|
|
8539
|
+
oe.value.length ? (D(), o("div", Fu, [(D(!0), o(t, null, A(oe.value, (t) => (D(), i(El, {
|
|
8528
8540
|
key: t.value,
|
|
8529
8541
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8530
8542
|
disabled: B.value || t.isSelectable === !1,
|
|
@@ -8562,10 +8574,10 @@ var co = {
|
|
|
8562
8574
|
"onFocusValue",
|
|
8563
8575
|
"onToggleValue"
|
|
8564
8576
|
]))), 128))])) : a("", !0),
|
|
8565
|
-
e.filter.isLoading && !J.value ? (D(), o("div",
|
|
8566
|
-
!C.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
8567
|
-
le.value.length || ue.value ? (D(), o("div",
|
|
8568
|
-
le.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
8577
|
+
e.filter.isLoading && !J.value ? (D(), o("div", Iu, [u(Ne, { size: "sm" }), e.filter.loadingText ? (D(), o("span", Lu, I(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8578
|
+
!C.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", Ru, "No values available."))], 64)) : !ne.value.length && !oe.value.length && !ue.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, we.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", zu, "No matching values."))], 64)) : a("", !0),
|
|
8579
|
+
le.value.length || ue.value ? (D(), o("div", Bu, [
|
|
8580
|
+
le.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", Vu, [e.filter.filterOptionsSortTooltip ? (D(), i(ir, {
|
|
8569
8581
|
key: 0,
|
|
8570
8582
|
variant: "dark",
|
|
8571
8583
|
disableInteractive: !0,
|
|
@@ -8574,11 +8586,11 @@ var co = {
|
|
|
8574
8586
|
"use-teleport": !0,
|
|
8575
8587
|
style: { "--max-width": "200px" }
|
|
8576
8588
|
}, {
|
|
8577
|
-
trigger: K(() => [s("p",
|
|
8589
|
+
trigger: K(() => [s("p", Hu, I(z.value), 1)]),
|
|
8578
8590
|
content: K(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8579
8591
|
_: 1
|
|
8580
|
-
})) : (D(), o("p",
|
|
8581
|
-
(D(!0), o(t, null, A(de.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
8592
|
+
})) : (D(), o("p", Uu, I(z.value), 1))])) : a("", !0),
|
|
8593
|
+
(D(!0), o(t, null, A(de.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(El, {
|
|
8582
8594
|
key: 0,
|
|
8583
8595
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8584
8596
|
depth: n.depth,
|
|
@@ -8645,7 +8657,7 @@ var co = {
|
|
|
8645
8657
|
])) : a("", !0),
|
|
8646
8658
|
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, we.value)), null, 16)) : a("", !0)
|
|
8647
8659
|
], 64))
|
|
8648
|
-
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
8660
|
+
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(yl, {
|
|
8649
8661
|
key: 1,
|
|
8650
8662
|
mode: "dual",
|
|
8651
8663
|
rangeValue: e.filter.rangeValue,
|
|
@@ -8672,7 +8684,7 @@ var co = {
|
|
|
8672
8684
|
"slider-step",
|
|
8673
8685
|
"step",
|
|
8674
8686
|
"value-decimals"
|
|
8675
|
-
])) : T.value === "range" ? (D(), o("p",
|
|
8687
|
+
])) : T.value === "range" ? (D(), o("p", Wu, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Gu, [s("div", Ku, [(D(!0), o(t, null, A(V.value, (t) => (D(), i($, {
|
|
8676
8688
|
key: String(t.value),
|
|
8677
8689
|
disabled: B.value,
|
|
8678
8690
|
label: t.label,
|
|
@@ -8690,43 +8702,43 @@ var co = {
|
|
|
8690
8702
|
label: "Clear",
|
|
8691
8703
|
variant: "ghost",
|
|
8692
8704
|
onClick: r[1] ||= (e) => Oe(null)
|
|
8693
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label",
|
|
8705
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", qu, [u(Ns, {
|
|
8694
8706
|
disabled: B.value,
|
|
8695
8707
|
modelValue: e.filter.existsValue ?? !1,
|
|
8696
8708
|
"onUpdate:modelValue": ke
|
|
8697
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
8709
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Ju, I(y.value), 1)])) : a("", !0)], 12, ju)], 40, Du));
|
|
8698
8710
|
}
|
|
8699
|
-
}), [["__scopeId", "data-v-073616dc"]]),
|
|
8711
|
+
}), [["__scopeId", "data-v-073616dc"]]), Qu = {
|
|
8700
8712
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8701
8713
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8702
8714
|
style: {
|
|
8703
8715
|
"--flex-align": "stretch",
|
|
8704
8716
|
"--flex-gap": "1rem"
|
|
8705
8717
|
}
|
|
8706
|
-
},
|
|
8718
|
+
}, $u = {
|
|
8707
8719
|
key: 0,
|
|
8708
8720
|
class: "pv-flex-vertical",
|
|
8709
8721
|
style: {
|
|
8710
8722
|
"--flex-align": "stretch",
|
|
8711
8723
|
"--flex-gap": "1rem"
|
|
8712
8724
|
}
|
|
8713
|
-
},
|
|
8725
|
+
}, ed = { class: "pv-text-title-md" }, td = {
|
|
8714
8726
|
class: "pv-flex",
|
|
8715
8727
|
style: {
|
|
8716
8728
|
"--flex-gap": "0.375rem",
|
|
8717
8729
|
"--flex-wrap": "wrap"
|
|
8718
8730
|
}
|
|
8719
|
-
},
|
|
8731
|
+
}, nd = { class: "pv-text-title-md" }, rd = {
|
|
8720
8732
|
class: "pv-flex",
|
|
8721
8733
|
style: {
|
|
8722
8734
|
"--flex-gap": "0.375rem",
|
|
8723
8735
|
"--flex-wrap": "wrap"
|
|
8724
8736
|
}
|
|
8725
|
-
},
|
|
8737
|
+
}, id = {
|
|
8726
8738
|
key: 1,
|
|
8727
8739
|
class: "pv-text-body-sm pv-text-subdued",
|
|
8728
8740
|
style: { margin: "0" }
|
|
8729
|
-
},
|
|
8741
|
+
}, ad = /* @__PURE__ */ d({
|
|
8730
8742
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
8731
8743
|
props: {
|
|
8732
8744
|
appliedCount: { default: 0 },
|
|
@@ -8742,7 +8754,7 @@ var co = {
|
|
|
8742
8754
|
let a = e, c = n, l = r(() => a.externalFilters.filter((e) => e.values.length > 0)), u = r(() => a.appliedCount > 0 || l.value.length > 0), d = (e) => !a.readOnly && e.removable !== !1, f = (e, t) => {
|
|
8743
8755
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
8744
8756
|
};
|
|
8745
|
-
return (n, r) => (D(), o("section",
|
|
8757
|
+
return (n, r) => (D(), o("section", Qu, [u.value ? (D(), o("div", $u, [(D(!0), o(t, null, A(l.value, (e) => (D(), o("div", {
|
|
8746
8758
|
key: `external-${e.key}`,
|
|
8747
8759
|
class: "pv-flex-vertical pv-border-bottom",
|
|
8748
8760
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -8751,7 +8763,7 @@ var co = {
|
|
|
8751
8763
|
"--flex-gap": "12px",
|
|
8752
8764
|
"padding-bottom": "12px"
|
|
8753
8765
|
}
|
|
8754
|
-
}, [s("span",
|
|
8766
|
+
}, [s("span", ed, I(e.label), 1), s("div", td, [(D(!0), o(t, null, A(e.values, (t) => (D(), i(br, {
|
|
8755
8767
|
key: `${e.key}-${t.value}`,
|
|
8756
8768
|
label: t.label,
|
|
8757
8769
|
showClear: d(e),
|
|
@@ -8768,7 +8780,7 @@ var co = {
|
|
|
8768
8780
|
"--flex-gap": "12px",
|
|
8769
8781
|
"padding-bottom": "12px"
|
|
8770
8782
|
}
|
|
8771
|
-
}, [s("span",
|
|
8783
|
+
}, [s("span", nd, I(n.label), 1), s("div", rd, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(br, {
|
|
8772
8784
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8773
8785
|
label: t.label,
|
|
8774
8786
|
showClear: !e.readOnly,
|
|
@@ -8777,9 +8789,9 @@ var co = {
|
|
|
8777
8789
|
"label",
|
|
8778
8790
|
"showClear",
|
|
8779
8791
|
"onHandleClose"
|
|
8780
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
8792
|
+
]))), 128))])]))), 128))])) : (D(), o("p", id, "No filters applied yet."))]));
|
|
8781
8793
|
}
|
|
8782
|
-
}),
|
|
8794
|
+
}), od = { class: "pv-horizontal-scroller" }, sd = ["aria-label"], cd = 1, ld = /* @__PURE__ */ d({
|
|
8783
8795
|
__name: "PvHorizontalScroller",
|
|
8784
8796
|
props: {
|
|
8785
8797
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -8803,7 +8815,7 @@ var co = {
|
|
|
8803
8815
|
let e = u.value;
|
|
8804
8816
|
if (!e) return;
|
|
8805
8817
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
8806
|
-
n.value = e.scrollLeft >
|
|
8818
|
+
n.value = e.scrollLeft > cd, c.value = e.scrollLeft < t - cd;
|
|
8807
8819
|
}, h = () => {
|
|
8808
8820
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
8809
8821
|
}, g = () => {
|
|
@@ -8823,7 +8835,7 @@ var co = {
|
|
|
8823
8835
|
h(), g();
|
|
8824
8836
|
}), S(() => {
|
|
8825
8837
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
8826
|
-
}), (t, r) => (D(), o("div",
|
|
8838
|
+
}), (t, r) => (D(), o("div", od, [
|
|
8827
8839
|
s("div", {
|
|
8828
8840
|
ref_key: "scrollContainer",
|
|
8829
8841
|
ref: u,
|
|
@@ -8834,7 +8846,7 @@ var co = {
|
|
|
8834
8846
|
ref_key: "contentContainer",
|
|
8835
8847
|
ref: l,
|
|
8836
8848
|
class: "pv-horizontal-scroller-content"
|
|
8837
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
8849
|
+
}, [j(t.$slots, "default")], 512)], 10, sd),
|
|
8838
8850
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
8839
8851
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
8840
8852
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -8867,18 +8879,18 @@ var co = {
|
|
|
8867
8879
|
])) : a("", !0)], 2)
|
|
8868
8880
|
]));
|
|
8869
8881
|
}
|
|
8870
|
-
}),
|
|
8882
|
+
}), ud = {
|
|
8871
8883
|
key: 0,
|
|
8872
8884
|
class: "pv-border-bottom",
|
|
8873
8885
|
"data-testid": "pv-filter-panel-category-row"
|
|
8874
|
-
},
|
|
8886
|
+
}, dd = {
|
|
8875
8887
|
class: "pv-flex",
|
|
8876
8888
|
style: {
|
|
8877
8889
|
"--flex-align": "center",
|
|
8878
8890
|
"--flex-gap": "8px",
|
|
8879
8891
|
padding: "8px 12px"
|
|
8880
8892
|
}
|
|
8881
|
-
},
|
|
8893
|
+
}, fd = /* @__PURE__ */ d({
|
|
8882
8894
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
8883
8895
|
props: /* @__PURE__ */ g({
|
|
8884
8896
|
allCategoriesLabel: { default: "All" },
|
|
@@ -8900,7 +8912,7 @@ var co = {
|
|
|
8900
8912
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8901
8913
|
return G(l, (e) => {
|
|
8902
8914
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8903
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div",
|
|
8915
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div", ud, [u(ld, {
|
|
8904
8916
|
ariaLabel: "Filter categories",
|
|
8905
8917
|
buttonSize: "lg",
|
|
8906
8918
|
buttonVariant: "ghost",
|
|
@@ -8909,7 +8921,7 @@ var co = {
|
|
|
8909
8921
|
rightAriaLabel: "Scroll filter categories right",
|
|
8910
8922
|
showFades: ""
|
|
8911
8923
|
}, {
|
|
8912
|
-
default: K(() => [s("div",
|
|
8924
|
+
default: K(() => [s("div", dd, [u($, {
|
|
8913
8925
|
label: e.allCategoriesLabel,
|
|
8914
8926
|
variant: f(null),
|
|
8915
8927
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -8926,17 +8938,17 @@ var co = {
|
|
|
8926
8938
|
_: 1
|
|
8927
8939
|
})])) : a("", !0);
|
|
8928
8940
|
}
|
|
8929
|
-
}),
|
|
8941
|
+
}), pd = (e, t, n) => {
|
|
8930
8942
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8931
8943
|
if (r.length <= 1) return "Search";
|
|
8932
8944
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8933
8945
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8934
|
-
},
|
|
8935
|
-
if (!r ||
|
|
8946
|
+
}, md = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), hd = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8947
|
+
if (!r || md(i) === md(r)) return e;
|
|
8936
8948
|
if (!a || !n) return r;
|
|
8937
8949
|
let o = t(n);
|
|
8938
8950
|
return o ? `${o}: ${r}` : r;
|
|
8939
|
-
},
|
|
8951
|
+
}, gd = () => ({
|
|
8940
8952
|
booleanValue: null,
|
|
8941
8953
|
existsValue: !1,
|
|
8942
8954
|
rangeValue: {
|
|
@@ -8944,15 +8956,15 @@ var co = {
|
|
|
8944
8956
|
min: null
|
|
8945
8957
|
},
|
|
8946
8958
|
values: []
|
|
8947
|
-
}),
|
|
8948
|
-
conditions: e.conditions.map(
|
|
8959
|
+
}), _d = (e) => typeof e == "object" && !!e && !Array.isArray(e), vd = (e) => _d(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", yd = (e) => _d(e) && e.filterType === "join" && Array.isArray(e.conditions), bd = (e) => e, xd = (e) => yd(e) ? {
|
|
8960
|
+
conditions: e.conditions.map(xd),
|
|
8949
8961
|
filterType: "join",
|
|
8950
8962
|
type: e.type
|
|
8951
|
-
} : { ...e },
|
|
8952
|
-
if (!
|
|
8953
|
-
if (
|
|
8963
|
+
} : { ...e }, Sd = (e) => {
|
|
8964
|
+
if (!_d(e)) return null;
|
|
8965
|
+
if (yd(e)) {
|
|
8954
8966
|
let t = e.conditions.flatMap((e) => {
|
|
8955
|
-
let t =
|
|
8967
|
+
let t = Sd(e);
|
|
8956
8968
|
return t ? [t] : [];
|
|
8957
8969
|
});
|
|
8958
8970
|
return t.length ? {
|
|
@@ -8961,43 +8973,43 @@ var co = {
|
|
|
8961
8973
|
type: e.type === "OR" ? "OR" : "AND"
|
|
8962
8974
|
} : null;
|
|
8963
8975
|
}
|
|
8964
|
-
return
|
|
8965
|
-
},
|
|
8976
|
+
return vd(e) ? { ...e } : null;
|
|
8977
|
+
}, Cd = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, wd = (e) => _d(e) && !yd(e) && !vd(e), Td = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), Ed = {
|
|
8966
8978
|
number: "agNumberColumnFilter",
|
|
8967
8979
|
set: "agSetColumnFilter",
|
|
8968
8980
|
text: "agTextColumnFilter"
|
|
8969
|
-
},
|
|
8981
|
+
}, Dd = (e) => {
|
|
8970
8982
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
8971
8983
|
let t = e.filterParams;
|
|
8972
8984
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
8973
|
-
}, Dd = (e, t) => {
|
|
8974
|
-
let n = Ed(e), r = t.filterType ? Td[t.filterType] : void 0;
|
|
8975
|
-
return r ? n.findIndex((e) => gd(e) && e.filter === r) : -1;
|
|
8976
8985
|
}, Od = (e, t) => {
|
|
8977
|
-
let n =
|
|
8986
|
+
let n = Dd(e), r = t.filterType ? Ed[t.filterType] : void 0;
|
|
8987
|
+
return r ? n.findIndex((e) => _d(e) && e.filter === r) : -1;
|
|
8988
|
+
}, kd = (e, t) => {
|
|
8989
|
+
let n = Dd(e);
|
|
8978
8990
|
if (!n.length) return null;
|
|
8979
|
-
let r = Array(n.length).fill(null), i =
|
|
8991
|
+
let r = Array(n.length).fill(null), i = Od(e, t);
|
|
8980
8992
|
return i < 0 ? null : (r[i] = t, {
|
|
8981
8993
|
filterModels: r,
|
|
8982
8994
|
filterType: "multi"
|
|
8983
8995
|
});
|
|
8984
|
-
},
|
|
8985
|
-
if (!
|
|
8996
|
+
}, Ad = (e, t) => {
|
|
8997
|
+
if (!wd(e)) return null;
|
|
8986
8998
|
let n = e[t];
|
|
8987
|
-
return
|
|
8988
|
-
},
|
|
8999
|
+
return _d(n) ? n : null;
|
|
9000
|
+
}, jd = (e) => e ? Td(e) ? e.filterModels.filter((e) => _d(e)) : [e] : [], Md = (e) => wd(e) ? { ...e } : {}, Nd = (e) => Td(e) ? {
|
|
8989
9001
|
...e,
|
|
8990
9002
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
8991
|
-
} : { ...e },
|
|
8992
|
-
let n =
|
|
9003
|
+
} : { ...e }, Pd = (e, t) => {
|
|
9004
|
+
let n = Md(e);
|
|
8993
9005
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
8994
|
-
},
|
|
9006
|
+
}, Fd = /* @__PURE__ */ new Set(), Id = (e, t) => {
|
|
8995
9007
|
let n = `${e}:${t ?? "unknown"}`;
|
|
8996
|
-
|
|
8997
|
-
},
|
|
8998
|
-
let a =
|
|
8999
|
-
if (
|
|
9000
|
-
let o =
|
|
9008
|
+
Fd.has(n) || (console.warn(`PvFilterPanel: overwriting an occupied regular multi-filter slot for "${e}" because the target slot was occupied or no empty slot was available.`), Fd.add(n));
|
|
9009
|
+
}, Ld = (e, t, n, r, i) => {
|
|
9010
|
+
let a = Ad(e, t);
|
|
9011
|
+
if (Td(a) && r) {
|
|
9012
|
+
let o = Md(e), s = Nd(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
9001
9013
|
if (!n) {
|
|
9002
9014
|
for (let e of l) c[e] = null;
|
|
9003
9015
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -9010,15 +9022,15 @@ var co = {
|
|
|
9010
9022
|
c[e] = n;
|
|
9011
9023
|
for (let e of t) c[e] = null;
|
|
9012
9024
|
} else {
|
|
9013
|
-
let e =
|
|
9025
|
+
let e = Od(i, n), r = c.findIndex((e) => !e), a = Dd(i).length > 0;
|
|
9014
9026
|
if (e >= 0) {
|
|
9015
9027
|
for (; c.length <= e;) c.push(null);
|
|
9016
|
-
c[e] &&
|
|
9028
|
+
c[e] && Id(t, n.filterType), c[e] = n;
|
|
9017
9029
|
} else if (r >= 0) c[r] = n;
|
|
9018
9030
|
else if (!a) c.push(n);
|
|
9019
9031
|
else {
|
|
9020
9032
|
let e = Math.max(0, c.length - 1);
|
|
9021
|
-
|
|
9033
|
+
Id(t, n.filterType), c[e] = n;
|
|
9022
9034
|
}
|
|
9023
9035
|
}
|
|
9024
9036
|
return o[t] = {
|
|
@@ -9026,54 +9038,54 @@ var co = {
|
|
|
9026
9038
|
filterModels: c
|
|
9027
9039
|
}, o;
|
|
9028
9040
|
}
|
|
9029
|
-
if (!n) return
|
|
9030
|
-
let o =
|
|
9031
|
-
return o[t] =
|
|
9032
|
-
},
|
|
9041
|
+
if (!n) return Pd(e, t);
|
|
9042
|
+
let o = Md(e);
|
|
9043
|
+
return o[t] = kd(i, n) ?? n, o;
|
|
9044
|
+
}, Rd = (e, t) => {
|
|
9033
9045
|
if (e) {
|
|
9034
|
-
if (
|
|
9035
|
-
e.conditions.forEach((e) =>
|
|
9046
|
+
if (yd(e)) {
|
|
9047
|
+
e.conditions.forEach((e) => Rd(e, t));
|
|
9036
9048
|
return;
|
|
9037
9049
|
}
|
|
9038
9050
|
t(e);
|
|
9039
9051
|
}
|
|
9040
|
-
},
|
|
9041
|
-
if (!
|
|
9052
|
+
}, zd = (e, t) => yd(e) ? e.conditions.length > 0 && e.conditions.every((e) => zd(e, t)) : e.colId === t, Bd = (e) => {
|
|
9053
|
+
if (!yd(e)) return e.colId;
|
|
9042
9054
|
let t = /* @__PURE__ */ new Set();
|
|
9043
|
-
return
|
|
9044
|
-
},
|
|
9045
|
-
if (!e ||
|
|
9046
|
-
if (!
|
|
9047
|
-
let n = e.conditions.flatMap((e) =>
|
|
9055
|
+
return Rd(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
9056
|
+
}, Vd = (e, t) => {
|
|
9057
|
+
if (!e || zd(e, t)) return null;
|
|
9058
|
+
if (!yd(e) || e.type !== "AND") return xd(e);
|
|
9059
|
+
let n = e.conditions.flatMap((e) => zd(e, t) ? [] : [xd(e)]);
|
|
9048
9060
|
return n.length ? n.length === 1 ? n[0] : {
|
|
9049
9061
|
conditions: n,
|
|
9050
9062
|
filterType: e.filterType,
|
|
9051
9063
|
type: e.type
|
|
9052
9064
|
} : null;
|
|
9053
|
-
},
|
|
9054
|
-
let r =
|
|
9055
|
-
return n ? r ?
|
|
9065
|
+
}, Hd = (e, t, n) => {
|
|
9066
|
+
let r = Vd(Sd(e), t);
|
|
9067
|
+
return n ? r ? yd(r) && r.type === "AND" ? bd({
|
|
9056
9068
|
...r,
|
|
9057
9069
|
conditions: [...r.conditions, n]
|
|
9058
|
-
}) :
|
|
9070
|
+
}) : bd({
|
|
9059
9071
|
conditions: [r, n],
|
|
9060
9072
|
filterType: "join",
|
|
9061
9073
|
type: "AND"
|
|
9062
|
-
}) :
|
|
9063
|
-
},
|
|
9074
|
+
}) : bd(n) : bd(r);
|
|
9075
|
+
}, Ud = (e, t) => {
|
|
9064
9076
|
e.includes(t) || e.push(t);
|
|
9065
|
-
},
|
|
9077
|
+
}, Wd = (e) => {
|
|
9066
9078
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
9067
9079
|
let t = String(e.filter);
|
|
9068
9080
|
return t === "true" || t === "false";
|
|
9069
|
-
},
|
|
9081
|
+
}, Gd = (e) => e.filterType === "boolean" || Wd(e), Kd = (e, t) => {
|
|
9070
9082
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
9071
|
-
e.values.forEach((e) =>
|
|
9083
|
+
e.values.forEach((e) => Ud(t.values, String(e)));
|
|
9072
9084
|
return;
|
|
9073
9085
|
}
|
|
9074
9086
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
9075
9087
|
let n = String(e.filter);
|
|
9076
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
9088
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ud(t.values, n);
|
|
9077
9089
|
return;
|
|
9078
9090
|
}
|
|
9079
9091
|
if (e.filterType === "boolean") {
|
|
@@ -9097,7 +9109,7 @@ var co = {
|
|
|
9097
9109
|
...t.rangeValue,
|
|
9098
9110
|
max: e.filter
|
|
9099
9111
|
}));
|
|
9100
|
-
},
|
|
9112
|
+
}, qd = (e, t) => {
|
|
9101
9113
|
if (e.type === "notBlank") {
|
|
9102
9114
|
t.existsValue = !0;
|
|
9103
9115
|
return;
|
|
@@ -9107,12 +9119,12 @@ var co = {
|
|
|
9107
9119
|
return;
|
|
9108
9120
|
}
|
|
9109
9121
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
9110
|
-
e.values.forEach((e) =>
|
|
9122
|
+
e.values.forEach((e) => Ud(t.values, String(e)));
|
|
9111
9123
|
return;
|
|
9112
9124
|
}
|
|
9113
9125
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
9114
9126
|
let n = String(e.filter);
|
|
9115
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
9127
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ud(t.values, n);
|
|
9116
9128
|
return;
|
|
9117
9129
|
}
|
|
9118
9130
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -9125,29 +9137,29 @@ var co = {
|
|
|
9125
9137
|
...t.rangeValue,
|
|
9126
9138
|
max: e.filter
|
|
9127
9139
|
}));
|
|
9128
|
-
},
|
|
9140
|
+
}, Jd = (e, t = "advanced") => {
|
|
9129
9141
|
let n = /* @__PURE__ */ new Map();
|
|
9130
9142
|
if (t === "regular") {
|
|
9131
|
-
if (!
|
|
9143
|
+
if (!wd(e)) return n;
|
|
9132
9144
|
for (let [t, r] of Object.entries(e)) {
|
|
9133
|
-
let e =
|
|
9134
|
-
|
|
9145
|
+
let e = gd();
|
|
9146
|
+
jd(r).forEach((t) => Kd(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
9135
9147
|
}
|
|
9136
9148
|
return n;
|
|
9137
9149
|
}
|
|
9138
|
-
let r =
|
|
9150
|
+
let r = Sd(e);
|
|
9139
9151
|
if (!r) return n;
|
|
9140
|
-
let i =
|
|
9152
|
+
let i = yd(r) && r.type === "AND" ? r.conditions : [r];
|
|
9141
9153
|
for (let e of i) {
|
|
9142
|
-
let t =
|
|
9154
|
+
let t = Bd(e);
|
|
9143
9155
|
if (!t) continue;
|
|
9144
|
-
let r = n.get(t) ??
|
|
9145
|
-
|
|
9146
|
-
e.colId === t &&
|
|
9156
|
+
let r = n.get(t) ?? gd();
|
|
9157
|
+
Rd(e, (e) => {
|
|
9158
|
+
e.colId === t && qd(e, r);
|
|
9147
9159
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
9148
9160
|
}
|
|
9149
9161
|
return n;
|
|
9150
|
-
},
|
|
9162
|
+
}, Yd = (e, t = "advanced") => t === "regular" ? wd(e) && Object.keys(e).length > 0 : Sd(e) !== null, Xd = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Zd = (e, t, n = "advanced") => n === "regular" ? Pd(e, t) : bd(Vd(Sd(e), t)), Qd = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ld(e, t, null, Gd, a) : Zd(e, t, r) : r === "regular" ? Ld(e, t, i === "text" ? {
|
|
9151
9163
|
filter: String(n),
|
|
9152
9164
|
filterType: "text",
|
|
9153
9165
|
type: "equals"
|
|
@@ -9155,30 +9167,30 @@ var co = {
|
|
|
9155
9167
|
filter: n,
|
|
9156
9168
|
filterType: "boolean",
|
|
9157
9169
|
type: n ? "true" : "false"
|
|
9158
|
-
},
|
|
9170
|
+
}, Gd, a) : i === "text" ? Hd(e, t, {
|
|
9159
9171
|
colId: t,
|
|
9160
9172
|
filter: String(n),
|
|
9161
9173
|
filterType: "text",
|
|
9162
9174
|
type: "equals"
|
|
9163
|
-
}) :
|
|
9175
|
+
}) : Hd(e, t, {
|
|
9164
9176
|
colId: t,
|
|
9165
9177
|
filterType: "boolean",
|
|
9166
9178
|
type: n ? "true" : "false"
|
|
9167
|
-
}),
|
|
9179
|
+
}), $d = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ld(e, t, {
|
|
9168
9180
|
filterType: r,
|
|
9169
9181
|
type: "notBlank"
|
|
9170
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
9182
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Hd(e, t, {
|
|
9171
9183
|
colId: t,
|
|
9172
9184
|
filterType: r,
|
|
9173
9185
|
type: "notBlank"
|
|
9174
|
-
}) : i === "regular" ?
|
|
9175
|
-
let o =
|
|
9176
|
-
if (i === "regular") return o === null && s === null ?
|
|
9186
|
+
}) : i === "regular" ? Ld(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Zd(e, t, i), ef = (e, t, n, r, i = "advanced", a) => {
|
|
9187
|
+
let o = Cd(n), s = Cd(r);
|
|
9188
|
+
if (i === "regular") return o === null && s === null ? Ld(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ld(e, t, {
|
|
9177
9189
|
filter: o,
|
|
9178
9190
|
filterTo: s,
|
|
9179
9191
|
filterType: "number",
|
|
9180
9192
|
type: "inRange"
|
|
9181
|
-
}, (e) => e.filterType === "number", a) :
|
|
9193
|
+
}, (e) => e.filterType === "number", a) : Ld(e, t, {
|
|
9182
9194
|
filter: o ?? s,
|
|
9183
9195
|
filterType: "number",
|
|
9184
9196
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -9194,29 +9206,29 @@ var co = {
|
|
|
9194
9206
|
filter: s,
|
|
9195
9207
|
filterType: "number",
|
|
9196
9208
|
type: "lessThanOrEqual"
|
|
9197
|
-
}), c.length ?
|
|
9209
|
+
}), c.length ? Hd(e, t, c.length === 1 ? c[0] : {
|
|
9198
9210
|
conditions: c,
|
|
9199
9211
|
filterType: "join",
|
|
9200
9212
|
type: "AND"
|
|
9201
|
-
}) :
|
|
9202
|
-
},
|
|
9213
|
+
}) : Zd(e, t);
|
|
9214
|
+
}, tf = (e, t, n, r = "advanced", i) => {
|
|
9203
9215
|
let a = Array.from(new Set(n));
|
|
9204
|
-
if (r === "regular") return a.length ?
|
|
9216
|
+
if (r === "regular") return a.length ? Ld(e, t, {
|
|
9205
9217
|
filterType: "set",
|
|
9206
9218
|
values: a
|
|
9207
|
-
}, (e) => e.filterType === "set", i) :
|
|
9219
|
+
}, (e) => e.filterType === "set", i) : Ld(e, t, null, (e) => e.filterType === "set", i);
|
|
9208
9220
|
let o = a.map((e) => ({
|
|
9209
9221
|
colId: t,
|
|
9210
9222
|
filter: e,
|
|
9211
9223
|
filterType: "text",
|
|
9212
9224
|
type: "equals"
|
|
9213
9225
|
}));
|
|
9214
|
-
return o.length ?
|
|
9226
|
+
return o.length ? Hd(e, t, o.length === 1 ? o[0] : {
|
|
9215
9227
|
conditions: o,
|
|
9216
9228
|
filterType: "join",
|
|
9217
9229
|
type: "OR"
|
|
9218
|
-
}) :
|
|
9219
|
-
},
|
|
9230
|
+
}) : Zd(e, t);
|
|
9231
|
+
}, nf = Symbol("PvFilterStore"), rf = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, af = (e, t) => t ?? e, of = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), sf = (e) => {
|
|
9220
9232
|
let t = /* @__PURE__ */ new Map();
|
|
9221
9233
|
for (let n of e) {
|
|
9222
9234
|
if (!n) continue;
|
|
@@ -9228,34 +9240,34 @@ var co = {
|
|
|
9228
9240
|
t.set(n.value, {
|
|
9229
9241
|
...e,
|
|
9230
9242
|
...n,
|
|
9231
|
-
children:
|
|
9232
|
-
totalChildCount:
|
|
9243
|
+
children: sf([...e.children ?? [], ...n.children ?? []]),
|
|
9244
|
+
totalChildCount: af(e.totalChildCount, n.totalChildCount)
|
|
9233
9245
|
});
|
|
9234
9246
|
}
|
|
9235
9247
|
return [...t.values()];
|
|
9236
|
-
},
|
|
9248
|
+
}, cf = (e, t) => {
|
|
9237
9249
|
for (let n of e ?? []) {
|
|
9238
9250
|
if (!n) continue;
|
|
9239
9251
|
if (n.value === t) return n;
|
|
9240
|
-
let e =
|
|
9252
|
+
let e = cf(n.children, t);
|
|
9241
9253
|
if (e) return e;
|
|
9242
9254
|
}
|
|
9243
|
-
},
|
|
9255
|
+
}, lf = (e, t, n) => {
|
|
9244
9256
|
if (!e || t === null) return !1;
|
|
9245
9257
|
if (e.value === t) return !0;
|
|
9246
|
-
let r =
|
|
9247
|
-
return r !== null && r === t ||
|
|
9248
|
-
},
|
|
9249
|
-
let r =
|
|
9258
|
+
let r = Wl(e);
|
|
9259
|
+
return r !== null && r === t || ql(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => lf(e, t, n)) ?? !1;
|
|
9260
|
+
}, uf = (e, t, n) => {
|
|
9261
|
+
let r = cf(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
9250
9262
|
return e.map((e) => e && (e.value === t ? {
|
|
9251
9263
|
...e,
|
|
9252
|
-
children:
|
|
9253
|
-
totalChildCount:
|
|
9264
|
+
children: sf([...e.children ?? [], ...i]),
|
|
9265
|
+
totalChildCount: af(e.totalChildCount, r?.totalChildCount)
|
|
9254
9266
|
} : e.children?.length ? {
|
|
9255
9267
|
...e,
|
|
9256
|
-
children:
|
|
9268
|
+
children: uf(e.children, t, n).filter((e) => !!e)
|
|
9257
9269
|
} : e));
|
|
9258
|
-
},
|
|
9270
|
+
}, df = (e, t) => `${e}::${t}`, ff = () => {
|
|
9259
9271
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
9260
9272
|
v.value = e;
|
|
9261
9273
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -9264,11 +9276,11 @@ var co = {
|
|
|
9264
9276
|
let r = n ? o : i;
|
|
9265
9277
|
r.value[e] = t;
|
|
9266
9278
|
}, T = () => {
|
|
9267
|
-
o.value =
|
|
9279
|
+
o.value = of(i.value), s.value = of(a.value);
|
|
9268
9280
|
}, E = () => {
|
|
9269
9281
|
o.value = {}, s.value = {};
|
|
9270
9282
|
}, D = () => {
|
|
9271
|
-
i.value =
|
|
9283
|
+
i.value = of(o.value), a.value = of(s.value), E();
|
|
9272
9284
|
}, O = (e, t) => {
|
|
9273
9285
|
c.value[e] = t;
|
|
9274
9286
|
}, A = (e, t) => {
|
|
@@ -9292,7 +9304,7 @@ var co = {
|
|
|
9292
9304
|
if (!o) return [];
|
|
9293
9305
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
9294
9306
|
c.value[n.field] = s;
|
|
9295
|
-
let u = n.parentId ?
|
|
9307
|
+
let u = n.parentId ? cf(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? df(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
9296
9308
|
g.value[x] = S;
|
|
9297
9309
|
try {
|
|
9298
9310
|
let c = await o({
|
|
@@ -9304,17 +9316,17 @@ var co = {
|
|
|
9304
9316
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
9305
9317
|
});
|
|
9306
9318
|
if (g.value[x] !== S) return [];
|
|
9307
|
-
let u =
|
|
9319
|
+
let u = rf(c);
|
|
9308
9320
|
if (n.parentId) {
|
|
9309
|
-
let e =
|
|
9321
|
+
let e = df(n.field, n.parentId);
|
|
9310
9322
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
9311
9323
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
9312
9324
|
let v = a.value[n.field] ?? [], b;
|
|
9313
|
-
b = n.parentId ?
|
|
9325
|
+
b = n.parentId ? uf(r.value[n.field] ?? [], n.parentId, u.values) : y ? sf([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
9314
9326
|
for (let e of v) {
|
|
9315
9327
|
if (!e) continue;
|
|
9316
|
-
let t =
|
|
9317
|
-
b.some((e) =>
|
|
9328
|
+
let t = Wl(e) ?? e.value;
|
|
9329
|
+
b.some((e) => lf(e, t, n.field)) || b.push(e);
|
|
9318
9330
|
}
|
|
9319
9331
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
9320
9332
|
} finally {
|
|
@@ -9349,20 +9361,20 @@ var co = {
|
|
|
9349
9361
|
stagedFilterSelectedMetadataMap: s,
|
|
9350
9362
|
stagedFilterSelectedValueMap: o
|
|
9351
9363
|
};
|
|
9352
|
-
},
|
|
9353
|
-
O(
|
|
9354
|
-
},
|
|
9364
|
+
}, pf = (e) => {
|
|
9365
|
+
O(nf, e);
|
|
9366
|
+
}, mf = () => m(nf, null), hf = () => mf() ?? ff(), gf = "__range__", _f = "__boolean__", vf = "__exists__", yf = new Set([
|
|
9355
9367
|
"value",
|
|
9356
9368
|
"range",
|
|
9357
9369
|
"boolean",
|
|
9358
9370
|
"exists"
|
|
9359
9371
|
]);
|
|
9360
|
-
function
|
|
9372
|
+
function bf(e, t, n) {
|
|
9361
9373
|
f();
|
|
9362
|
-
let i = k(t.value), a =
|
|
9374
|
+
let i = k(t.value), a = ff(), o = mf(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = P(/* @__PURE__ */ new Map()), u = r(() => !!(e.filterStore ?? o)), d = r(() => !u.value && !!e.filterOptionsHandler), p = r(() => e.filterStore ?? o ?? a), m = r(() => p.value === a), h = r(() => u.value || d.value), g = r(() => e.filterModelType ?? p.value?.filterModelType.value), _ = r(() => g.value ?? "advanced"), v = r(() => {
|
|
9363
9375
|
let n = p.value;
|
|
9364
9376
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
9365
|
-
}), y = r(() =>
|
|
9377
|
+
}), y = r(() => Jd(v.value, _.value)), b = (e, t) => {
|
|
9366
9378
|
let n = e.applyFilterModel;
|
|
9367
9379
|
if (typeof n == "function") {
|
|
9368
9380
|
n(t);
|
|
@@ -9453,7 +9465,7 @@ function yf(e, t, n) {
|
|
|
9453
9465
|
});
|
|
9454
9466
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
9455
9467
|
let t = D(e), n = t.filterPanelType;
|
|
9456
|
-
if (n &&
|
|
9468
|
+
if (n && yf.has(n)) return n;
|
|
9457
9469
|
if (t.filterPanelRange) return "range";
|
|
9458
9470
|
if (t.dataType === "boolean") return "boolean";
|
|
9459
9471
|
if (e.filter) return "value";
|
|
@@ -9493,30 +9505,30 @@ function yf(e, t, n) {
|
|
|
9493
9505
|
...r,
|
|
9494
9506
|
...i
|
|
9495
9507
|
].filter(Boolean)));
|
|
9496
|
-
}, K = (e) => _.value === "advanced" &&
|
|
9508
|
+
}, K = (e) => _.value === "advanced" && tu(e), ie = (e, t) => K(e) ? du({
|
|
9497
9509
|
colDef: e,
|
|
9498
9510
|
model: v.value,
|
|
9499
9511
|
options: t
|
|
9500
9512
|
}) : new Map(ne(e).map((e) => [e, y.value.get(e)?.values ?? []])), ae = (e, t, n, r) => {
|
|
9501
9513
|
let i = /* @__PURE__ */ new Set();
|
|
9502
|
-
for (let t of
|
|
9514
|
+
for (let t of Kl(r)) for (let [r, a] of n) for (let n of a) ql(t, r, n, e) && i.add(`${r}:${n}`);
|
|
9503
9515
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
9504
9516
|
colField: t === e ? void 0 : t,
|
|
9505
9517
|
label: n,
|
|
9506
9518
|
metadata: { rawValue: n },
|
|
9507
|
-
value: t === e ? n :
|
|
9519
|
+
value: t === e ? n : Ul(t, n)
|
|
9508
9520
|
}]));
|
|
9509
9521
|
}, q = (e, t, n) => {
|
|
9510
9522
|
let r = /* @__PURE__ */ new Set();
|
|
9511
|
-
for (let i of
|
|
9512
|
-
let n =
|
|
9523
|
+
for (let i of Kl(n)) {
|
|
9524
|
+
let n = Gl(i, e), a = Wl(i);
|
|
9513
9525
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
9514
9526
|
}
|
|
9515
9527
|
return Array.from(r);
|
|
9516
9528
|
}, oe = (t) => Object.fromEntries(ne(t).map((t) => [t, e.focusedValues[t] ?? []])), J = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), se = (e) => J(e)?.headerName ?? e, ce = (e) => {
|
|
9517
9529
|
let t = D(e);
|
|
9518
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
9519
|
-
}, le = (e, t) =>
|
|
9530
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : pd(O(e), t.queryColIds, se);
|
|
9531
|
+
}, le = (e, t) => hd({
|
|
9520
9532
|
fallbackSubText: e.subText,
|
|
9521
9533
|
getDisplayName: se,
|
|
9522
9534
|
matchedField: e.matchedField,
|
|
@@ -9534,7 +9546,7 @@ function yf(e, t, n) {
|
|
|
9534
9546
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
9535
9547
|
label: J(e)?.headerName ?? e
|
|
9536
9548
|
}));
|
|
9537
|
-
}, de = (e) => pe.value.find((t) => t.key === e) ?? pe.value.find((t) => ne(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
9549
|
+
}, de = (e) => pe.value.find((t) => t.key === e) ?? pe.value.find((t) => ne(t.colDef).includes(e)), fe = (e, t, n) => Kl(de(e)?.knownOptions ?? []).find((r) => r.value === n || ql(r, t, n, e)), pe = r(() => e.colDefs.filter(I).map((t) => {
|
|
9538
9550
|
let n = O(t), r = D(t), i = M(t), a = Y(L(n), t), o = Y(H(n), t), s = {
|
|
9539
9551
|
category: N(t),
|
|
9540
9552
|
colDef: t,
|
|
@@ -9596,7 +9608,7 @@ function yf(e, t, n) {
|
|
|
9596
9608
|
...s,
|
|
9597
9609
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
9598
9610
|
};
|
|
9599
|
-
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : ie(t, c), f = ae(n, t, d, c), p = [...c, ...f], m = K(t) ?
|
|
9611
|
+
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : ie(t, c), f = ae(n, t, d, c), p = [...c, ...f], m = K(t) ? uu({
|
|
9600
9612
|
colDef: t,
|
|
9601
9613
|
model: v.value,
|
|
9602
9614
|
options: p
|
|
@@ -9616,19 +9628,19 @@ function yf(e, t, n) {
|
|
|
9616
9628
|
label: e.label,
|
|
9617
9629
|
values: t
|
|
9618
9630
|
}] : [];
|
|
9619
|
-
})), me = r(() => X.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
9631
|
+
})), me = r(() => X.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => Yd(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
9620
9632
|
let t = de(e.field);
|
|
9621
9633
|
if (!t || t.type !== e.filter.type) return !0;
|
|
9622
9634
|
if (e.filter.type === "value") {
|
|
9623
9635
|
if (t.isAggregate && e.option) {
|
|
9624
|
-
let { selected: n } =
|
|
9636
|
+
let { selected: n } = wu({
|
|
9625
9637
|
option: e.option,
|
|
9626
9638
|
options: t.knownOptions ?? [],
|
|
9627
9639
|
state: t.aggregateSelectionState ?? []
|
|
9628
9640
|
});
|
|
9629
9641
|
return e.filter.checked ? n : !n;
|
|
9630
9642
|
}
|
|
9631
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
9643
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Wl(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
9632
9644
|
return e.filter.checked ? a : !a;
|
|
9633
9645
|
}
|
|
9634
9646
|
return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
|
|
@@ -9642,14 +9654,14 @@ function yf(e, t, n) {
|
|
|
9642
9654
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
9643
9655
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
9644
9656
|
if (!e) return !1;
|
|
9645
|
-
let r =
|
|
9657
|
+
let r = Gl(e, t), i = Wl(e) ?? e.value;
|
|
9646
9658
|
return r !== n || c.has(i);
|
|
9647
9659
|
});
|
|
9648
9660
|
if (i) {
|
|
9649
|
-
let e =
|
|
9661
|
+
let e = Wl(i) ?? i.value, n = Gl(i, t);
|
|
9650
9662
|
l.some((r) => {
|
|
9651
|
-
let i =
|
|
9652
|
-
return
|
|
9663
|
+
let i = Wl(r) ?? r.value;
|
|
9664
|
+
return Gl(r, t) === n && i === e;
|
|
9653
9665
|
}) || l.push(i);
|
|
9654
9666
|
}
|
|
9655
9667
|
o.value[t] = l;
|
|
@@ -9659,7 +9671,7 @@ function yf(e, t, n) {
|
|
|
9659
9671
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
9660
9672
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
9661
9673
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
9662
|
-
a.value[t.key] =
|
|
9674
|
+
a.value[t.key] = Tu({
|
|
9663
9675
|
options: t.knownOptions ?? [],
|
|
9664
9676
|
state: n
|
|
9665
9677
|
});
|
|
@@ -9688,48 +9700,48 @@ function yf(e, t, n) {
|
|
|
9688
9700
|
return t === null ? [] : [{
|
|
9689
9701
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
9690
9702
|
type: "boolean",
|
|
9691
|
-
value:
|
|
9703
|
+
value: _f
|
|
9692
9704
|
}];
|
|
9693
9705
|
}, Ee = (e) => e.existsValue ? [{
|
|
9694
9706
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
9695
9707
|
type: "exists",
|
|
9696
|
-
value:
|
|
9708
|
+
value: vf
|
|
9697
9709
|
}] : [], De = (e) => {
|
|
9698
9710
|
let t = e.rangeValue ?? {
|
|
9699
9711
|
max: null,
|
|
9700
9712
|
min: null
|
|
9701
9713
|
};
|
|
9702
9714
|
return t.min === null && t.max === null ? [] : [{
|
|
9703
|
-
label:
|
|
9715
|
+
label: Nl(t.min, t.max, {
|
|
9704
9716
|
dataType: e.dataType,
|
|
9705
9717
|
valueDecimals: e.valueDecimals
|
|
9706
9718
|
}),
|
|
9707
9719
|
type: "range",
|
|
9708
|
-
value:
|
|
9720
|
+
value: gf
|
|
9709
9721
|
}];
|
|
9710
9722
|
}, Oe = (e, t, n) => {
|
|
9711
9723
|
let r = n.get(t) ?? null;
|
|
9712
9724
|
return {
|
|
9713
|
-
field: r ?
|
|
9714
|
-
label: r ?
|
|
9715
|
-
resultCount:
|
|
9725
|
+
field: r ? Gl(r, e.key) : void 0,
|
|
9726
|
+
label: r ? Il(r, e.colDef) : t,
|
|
9727
|
+
resultCount: Ll(r),
|
|
9716
9728
|
subText: r?.subText,
|
|
9717
9729
|
subduedText: r?.subduedText,
|
|
9718
9730
|
type: "value",
|
|
9719
|
-
value: r ?
|
|
9731
|
+
value: r ? Wl(r) ?? r.value : t
|
|
9720
9732
|
};
|
|
9721
9733
|
}, ke = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
9722
9734
|
field: e.field,
|
|
9723
9735
|
label: e.label,
|
|
9724
9736
|
type: "boolean",
|
|
9725
|
-
value:
|
|
9726
|
-
}] : []), Ae = (e) =>
|
|
9737
|
+
value: _f
|
|
9738
|
+
}] : []), Ae = (e) => Tu({
|
|
9727
9739
|
options: e.knownOptions ?? [],
|
|
9728
9740
|
state: e.aggregateSelectionState ?? []
|
|
9729
9741
|
}).map((t) => ({
|
|
9730
9742
|
field: e.key,
|
|
9731
|
-
label:
|
|
9732
|
-
resultCount:
|
|
9743
|
+
label: Il(t, e.colDef),
|
|
9744
|
+
resultCount: Ll(t),
|
|
9733
9745
|
subText: t.subText,
|
|
9734
9746
|
subduedText: t.subduedText,
|
|
9735
9747
|
type: "value",
|
|
@@ -9740,7 +9752,7 @@ function yf(e, t, n) {
|
|
|
9740
9752
|
if (e.type === "boolean") return Te(e);
|
|
9741
9753
|
if (e.type === "exists") return Ee(e);
|
|
9742
9754
|
if (e.isAggregate) return [...Ae(e), ...ke(e)];
|
|
9743
|
-
let t = new Map(
|
|
9755
|
+
let t = new Map(Kl(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
9744
9756
|
return [...(e.selectedValues ?? []).map((n) => Oe(e, n, t)), ...ke(e)];
|
|
9745
9757
|
}, Me = () => {
|
|
9746
9758
|
Ve(), we(null, "clear-all");
|
|
@@ -9752,9 +9764,9 @@ function yf(e, t, n) {
|
|
|
9752
9764
|
Ve();
|
|
9753
9765
|
let e = p.value;
|
|
9754
9766
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
9755
|
-
}, Fe = (e) =>
|
|
9767
|
+
}, Fe = (e) => Xd(de(e)?.dataType), Ie = (e, t, n = "value-toggle") => {
|
|
9756
9768
|
let r = de(e);
|
|
9757
|
-
r?.isAggregate && (xe(r, t), we(
|
|
9769
|
+
r?.isAggregate && (xe(r, t), we(cu({
|
|
9758
9770
|
baseModel: v.value,
|
|
9759
9771
|
colDef: r.colDef,
|
|
9760
9772
|
options: r.knownOptions ?? [],
|
|
@@ -9769,7 +9781,7 @@ function yf(e, t, n) {
|
|
|
9769
9781
|
if (t.type === "value") {
|
|
9770
9782
|
let r = de(e), i = fe(e, n, t.value);
|
|
9771
9783
|
if (r?.isAggregate && i) {
|
|
9772
|
-
Ie(e,
|
|
9784
|
+
Ie(e, xu({
|
|
9773
9785
|
checked: t.checked,
|
|
9774
9786
|
option: i,
|
|
9775
9787
|
options: r.knownOptions ?? [],
|
|
@@ -9785,10 +9797,10 @@ function yf(e, t, n) {
|
|
|
9785
9797
|
return;
|
|
9786
9798
|
}
|
|
9787
9799
|
if (t.type === "boolean") {
|
|
9788
|
-
we(
|
|
9800
|
+
we(Qd(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
9789
9801
|
return;
|
|
9790
9802
|
}
|
|
9791
|
-
we(
|
|
9803
|
+
we($d(v.value, n, t.value, Fe(n), _.value, r), "exists-change", n, "exists");
|
|
9792
9804
|
}, Re = (e, t, n, r) => {
|
|
9793
9805
|
let i = p.value;
|
|
9794
9806
|
return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
|
|
@@ -9808,7 +9820,7 @@ function yf(e, t, n) {
|
|
|
9808
9820
|
}, Be = (e, t, r) => {
|
|
9809
9821
|
n("load-more", e.key, e.colDef, t, r), ze(e, t, r ? "child-load-more" : "load-more", r);
|
|
9810
9822
|
}, Z = (e, t, n) => {
|
|
9811
|
-
we(
|
|
9823
|
+
we(ef(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
9812
9824
|
}, Ve = () => {
|
|
9813
9825
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
9814
9826
|
l.clear();
|
|
@@ -9848,7 +9860,7 @@ function yf(e, t, n) {
|
|
|
9848
9860
|
n("controlled-change", t, l, s.colDef);
|
|
9849
9861
|
return;
|
|
9850
9862
|
}
|
|
9851
|
-
be(t, r, l, a ? o : void 0), we(
|
|
9863
|
+
be(t, r, l, a ? o : void 0), we(tf(v.value, r, l, _.value, J(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9852
9864
|
};
|
|
9853
9865
|
return {
|
|
9854
9866
|
resolvedFilters: pe,
|
|
@@ -9873,8 +9885,8 @@ function yf(e, t, n) {
|
|
|
9873
9885
|
handleSearchChange: Ue,
|
|
9874
9886
|
handleSuggestionClick: (e) => {
|
|
9875
9887
|
if (e.filter.type === "value" && e.option) {
|
|
9876
|
-
let t = de(e.field), n =
|
|
9877
|
-
t?.isAggregate ? Ie(e.field,
|
|
9888
|
+
let t = de(e.field), n = Gl(e.option, e.field), r = Wl(e.option) ?? e.filter.value;
|
|
9889
|
+
t?.isAggregate ? Ie(e.field, xu({
|
|
9878
9890
|
checked: e.filter.checked,
|
|
9879
9891
|
option: e.option,
|
|
9880
9892
|
options: t.knownOptions ?? [],
|
|
@@ -9885,21 +9897,21 @@ function yf(e, t, n) {
|
|
|
9885
9897
|
},
|
|
9886
9898
|
removeAppliedFilter: (e, t, n) => {
|
|
9887
9899
|
let r = n ?? de(e)?.type ?? "value";
|
|
9888
|
-
if (r === "range" || !n && t ===
|
|
9889
|
-
we(
|
|
9900
|
+
if (r === "range" || !n && t === gf) {
|
|
9901
|
+
we(ef(v.value, e, null, null, _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "range");
|
|
9890
9902
|
return;
|
|
9891
9903
|
}
|
|
9892
|
-
if (r === "boolean" || !n && t ===
|
|
9893
|
-
we(
|
|
9904
|
+
if (r === "boolean" || !n && t === _f) {
|
|
9905
|
+
we(Qd(v.value, e, null, _.value, "boolean", J(e) ?? de(e)?.colDef), "remove-filter", e, "boolean");
|
|
9894
9906
|
return;
|
|
9895
9907
|
}
|
|
9896
|
-
if (r === "exists" || !n && t ===
|
|
9897
|
-
we(
|
|
9908
|
+
if (r === "exists" || !n && t === vf) {
|
|
9909
|
+
we($d(v.value, e, !1, "text", _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "exists");
|
|
9898
9910
|
return;
|
|
9899
9911
|
}
|
|
9900
9912
|
let i = de(e);
|
|
9901
9913
|
if (r === "value" && i?.isAggregate) {
|
|
9902
|
-
let e =
|
|
9914
|
+
let e = nu(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? xu({
|
|
9903
9915
|
checked: !1,
|
|
9904
9916
|
option: e,
|
|
9905
9917
|
options: i.knownOptions ?? [],
|
|
@@ -9909,7 +9921,7 @@ function yf(e, t, n) {
|
|
|
9909
9921
|
return;
|
|
9910
9922
|
}
|
|
9911
9923
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9912
|
-
be(de(e)?.key ?? e, e, a), we(
|
|
9924
|
+
be(de(e)?.key ?? e, e, a), we(tf(v.value, e, a, _.value, J(e) ?? de(e)?.colDef), "remove-filter", e, "value");
|
|
9913
9925
|
},
|
|
9914
9926
|
setFacetSelections: Ge,
|
|
9915
9927
|
usesHandlerFacets: $
|
|
@@ -9917,32 +9929,32 @@ function yf(e, t, n) {
|
|
|
9917
9929
|
}
|
|
9918
9930
|
//#endregion
|
|
9919
9931
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9920
|
-
var
|
|
9932
|
+
var xf = ["aria-label"], Sf = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, Cf = { class: "pv-filter-panel-body pv-flex-vertical" }, wf = {
|
|
9921
9933
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
9922
9934
|
"data-testid": "pv-filter-panel-filters-view"
|
|
9923
|
-
},
|
|
9935
|
+
}, Tf = {
|
|
9924
9936
|
key: 0,
|
|
9925
9937
|
"aria-label": "Filter suggestions",
|
|
9926
9938
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
9927
9939
|
"data-testid": "pv-filter-panel-suggestions"
|
|
9928
|
-
},
|
|
9940
|
+
}, Ef = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Df = {
|
|
9929
9941
|
key: 1,
|
|
9930
9942
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
9931
9943
|
"data-testid": "pv-filter-panel-search"
|
|
9932
|
-
},
|
|
9944
|
+
}, Of = {
|
|
9933
9945
|
key: 2,
|
|
9934
9946
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9935
|
-
},
|
|
9947
|
+
}, kf = {
|
|
9936
9948
|
key: 3,
|
|
9937
9949
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9938
|
-
},
|
|
9950
|
+
}, Af = {
|
|
9939
9951
|
key: 4,
|
|
9940
9952
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
9941
9953
|
style: { "--inset-size": "8px" }
|
|
9942
|
-
},
|
|
9954
|
+
}, jf = {
|
|
9943
9955
|
key: 0,
|
|
9944
9956
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
9945
|
-
},
|
|
9957
|
+
}, Mf = { class: "pv-filter-panel-actions pv-flex" }, Nf = { class: "pv-text-body-sm" }, Pf = { class: "pv-filter-panel-modal-footer pv-flex" }, Ff = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
9946
9958
|
__name: "PvFilterPanel",
|
|
9947
9959
|
props: /* @__PURE__ */ g({
|
|
9948
9960
|
allCategoriesLabel: { default: "All" },
|
|
@@ -10033,7 +10045,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10033
10045
|
"suggestion-click"
|
|
10034
10046
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
10035
10047
|
setup(e, { emit: n }) {
|
|
10036
|
-
let c = e, l = z(e, "filterModel"), d = z(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } =
|
|
10048
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } = bf(c, l, f), N = k("filters"), P = k({}), F = k(null), ee = k(!1), R = k(!1), B = k(""), V = r(() => c.enableFilterSearch ? B.value.trim().toLowerCase() : ""), te = r(() => V.value.length > 0), H = (e) => e.label.toLowerCase().includes(V.value);
|
|
10037
10049
|
G(te, (e) => {
|
|
10038
10050
|
e && (F.value = null);
|
|
10039
10051
|
}), G(F, (e) => {
|
|
@@ -10075,7 +10087,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10075
10087
|
"aria-label": e.ariaLabel,
|
|
10076
10088
|
style: x(ge.value)
|
|
10077
10089
|
}, [
|
|
10078
|
-
s("div",
|
|
10090
|
+
s("div", Sf, [u(Ar, {
|
|
10079
10091
|
modelValue: N.value,
|
|
10080
10092
|
options: he.value,
|
|
10081
10093
|
class: "pv-filter-panel-mode-control",
|
|
@@ -10089,8 +10101,8 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10089
10101
|
variant: "secondary",
|
|
10090
10102
|
onClick: r[0] ||= (e) => d.value = !0
|
|
10091
10103
|
}))]),
|
|
10092
|
-
s("div",
|
|
10093
|
-
!e.readOnly && L(_).length ? (D(), o("section",
|
|
10104
|
+
s("div", Cf, [ie(s("div", wf, [
|
|
10105
|
+
!e.readOnly && L(_).length ? (D(), o("section", Tf, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Ef, [(D(!0), o(t, null, A(L(_), (e) => (D(), i(ri, {
|
|
10094
10106
|
key: L(C)(e),
|
|
10095
10107
|
icon: e.icon,
|
|
10096
10108
|
"icon-classes": e.iconClasses,
|
|
@@ -10103,7 +10115,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10103
10115
|
"onHandleClick"
|
|
10104
10116
|
]))), 128))])])) : a("", !0),
|
|
10105
10117
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
10106
|
-
u(
|
|
10118
|
+
u(fd, {
|
|
10107
10119
|
modelValue: F.value,
|
|
10108
10120
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
10109
10121
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -10115,12 +10127,12 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10115
10127
|
"category-order",
|
|
10116
10128
|
"filters"
|
|
10117
10129
|
]),
|
|
10118
|
-
e.enableFilterSearch && L(p).length ? (D(), o("div",
|
|
10130
|
+
e.enableFilterSearch && L(p).length ? (D(), o("div", Df, [u(ui, {
|
|
10119
10131
|
modelValue: B.value,
|
|
10120
10132
|
"onUpdate:modelValue": r[2] ||= (e) => B.value = e,
|
|
10121
10133
|
placeholder: e.filterSearchPlaceholder
|
|
10122
10134
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
10123
|
-
L(p).length ? W.value.length ? (D(), o("div",
|
|
10135
|
+
L(p).length ? W.value.length ? (D(), o("div", Af, [(D(!0), o(t, null, A(me.value, (t) => (D(), i(Zu, {
|
|
10124
10136
|
key: t.key,
|
|
10125
10137
|
"disable-while-loading": e.disableWhileLoading,
|
|
10126
10138
|
filter: t,
|
|
@@ -10143,8 +10155,8 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10143
10155
|
label: se.value,
|
|
10144
10156
|
variant: "ghost",
|
|
10145
10157
|
onClick: r[5] ||= (e) => ee.value = !ee.value
|
|
10146
|
-
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div",
|
|
10147
|
-
], 512), [[ne, N.value === "filters"]]), ie(u(
|
|
10158
|
+
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", kf, I(J.value), 1)) : (D(), o("div", Of, " No filters available. "))
|
|
10159
|
+
], 512), [[ne, N.value === "filters"]]), ie(u(ad, {
|
|
10148
10160
|
"applied-count": L(h),
|
|
10149
10161
|
"applied-groups": L(m),
|
|
10150
10162
|
"external-filters": le.value,
|
|
@@ -10158,7 +10170,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10158
10170
|
"read-only",
|
|
10159
10171
|
"onRemoveFilter"
|
|
10160
10172
|
]), [[ne, N.value === "applied"]])]),
|
|
10161
|
-
X.value ? (D(), o("div",
|
|
10173
|
+
X.value ? (D(), o("div", jf, [s("div", Mf, [pe.value && !e.readOnly ? (D(), i($, {
|
|
10162
10174
|
key: 0,
|
|
10163
10175
|
class: "pv-text-brand",
|
|
10164
10176
|
label: e.clearAllLabel,
|
|
@@ -10173,14 +10185,14 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10173
10185
|
variant: "primary",
|
|
10174
10186
|
onClick: L(y)
|
|
10175
10187
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
10176
|
-
], 12,
|
|
10188
|
+
], 12, xf)), u(Ur, {
|
|
10177
10189
|
modelValue: R.value,
|
|
10178
10190
|
"onUpdate:modelValue": r[7] ||= (e) => R.value = e,
|
|
10179
10191
|
header: e.clearAllHeader,
|
|
10180
10192
|
style: { "--max-width": "440px" }
|
|
10181
10193
|
}, {
|
|
10182
|
-
body: K(() => [s("p",
|
|
10183
|
-
footer: K(() => [s("div",
|
|
10194
|
+
body: K(() => [s("p", Nf, I(e.clearAllBody), 1)]),
|
|
10195
|
+
footer: K(() => [s("div", Pf, [u($, {
|
|
10184
10196
|
label: e.cancelLabel,
|
|
10185
10197
|
variant: "ghost",
|
|
10186
10198
|
onClick: ye
|
|
@@ -10192,16 +10204,16 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10192
10204
|
_: 1
|
|
10193
10205
|
}, 8, ["modelValue", "header"])], 64));
|
|
10194
10206
|
}
|
|
10195
|
-
}), [["__scopeId", "data-v-59a9b1c6"]]),
|
|
10207
|
+
}), [["__scopeId", "data-v-59a9b1c6"]]), If = ["for"], Lf = [
|
|
10196
10208
|
"id",
|
|
10197
10209
|
"type",
|
|
10198
10210
|
"value",
|
|
10199
10211
|
"name",
|
|
10200
10212
|
"disabled"
|
|
10201
|
-
],
|
|
10213
|
+
], Rf = { key: 0 }, zf = {
|
|
10202
10214
|
class: "pv-inset-square",
|
|
10203
10215
|
style: { "--inset-size": "0px 2px" }
|
|
10204
|
-
},
|
|
10216
|
+
}, Bf = /* @__PURE__ */ d({
|
|
10205
10217
|
__name: "PvFilterModalSelectItem",
|
|
10206
10218
|
props: /* @__PURE__ */ g({
|
|
10207
10219
|
rounded: { type: Boolean },
|
|
@@ -10234,55 +10246,55 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10234
10246
|
value: e.value,
|
|
10235
10247
|
name: e.name,
|
|
10236
10248
|
disabled: e.disabled
|
|
10237
|
-
}, null, 8,
|
|
10238
|
-
e.label ? (D(), o("span",
|
|
10239
|
-
s("span",
|
|
10240
|
-
], 8,
|
|
10249
|
+
}, null, 8, Lf), [[H, n.value]]),
|
|
10250
|
+
e.label ? (D(), o("span", Rf, I(e.label), 1)) : a("", !0),
|
|
10251
|
+
s("span", zf, I(e.rightCounterBadge), 1)
|
|
10252
|
+
], 8, If));
|
|
10241
10253
|
}
|
|
10242
|
-
}),
|
|
10254
|
+
}), Vf = ["aria-label"], Hf = {
|
|
10243
10255
|
class: "pv-filter-modal pv-flex",
|
|
10244
10256
|
style: {
|
|
10245
10257
|
"--flex-align": "stretch",
|
|
10246
10258
|
"--flex-gap": "0"
|
|
10247
10259
|
}
|
|
10248
|
-
},
|
|
10260
|
+
}, Uf = {
|
|
10249
10261
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
10250
10262
|
"aria-label": "Filter categories",
|
|
10251
10263
|
style: { "--flex-gap": "0.25rem" }
|
|
10252
|
-
},
|
|
10264
|
+
}, Wf = {
|
|
10253
10265
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
10254
10266
|
style: {
|
|
10255
10267
|
"--flex-align": "stretch",
|
|
10256
10268
|
"--flex-gap": "0.75rem"
|
|
10257
10269
|
}
|
|
10258
|
-
},
|
|
10270
|
+
}, Gf = {
|
|
10259
10271
|
key: 0,
|
|
10260
10272
|
class: "pv-flex",
|
|
10261
10273
|
style: {
|
|
10262
10274
|
"--flex-gap": "0.5rem",
|
|
10263
10275
|
"flex-wrap": "wrap"
|
|
10264
10276
|
}
|
|
10265
|
-
},
|
|
10277
|
+
}, Kf = {
|
|
10266
10278
|
key: 1,
|
|
10267
10279
|
class: "pv-inset-square-8"
|
|
10268
|
-
},
|
|
10280
|
+
}, qf = {
|
|
10269
10281
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
10270
10282
|
style: {
|
|
10271
10283
|
"--flex-align": "stretch",
|
|
10272
10284
|
"--flex-gap": "0.75rem"
|
|
10273
10285
|
}
|
|
10274
|
-
},
|
|
10286
|
+
}, Jf = {
|
|
10275
10287
|
key: 1,
|
|
10276
10288
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
10277
10289
|
style: { "font-weight": "500" }
|
|
10278
|
-
},
|
|
10290
|
+
}, Yf = {
|
|
10279
10291
|
key: 0,
|
|
10280
10292
|
class: "pv-text-body-xs pv-text-subdued",
|
|
10281
10293
|
style: { margin: "0" }
|
|
10282
|
-
},
|
|
10294
|
+
}, Xf = {
|
|
10283
10295
|
key: 3,
|
|
10284
10296
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
10285
|
-
},
|
|
10297
|
+
}, Zf = {
|
|
10286
10298
|
key: 0,
|
|
10287
10299
|
class: "pv-flex pv-border-top",
|
|
10288
10300
|
style: {
|
|
@@ -10291,7 +10303,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10291
10303
|
"margin-top": "0.75rem",
|
|
10292
10304
|
"padding-top": "0.75rem"
|
|
10293
10305
|
}
|
|
10294
|
-
},
|
|
10306
|
+
}, Qf = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10295
10307
|
__name: "PvFilterModal",
|
|
10296
10308
|
props: /* @__PURE__ */ g({
|
|
10297
10309
|
header: { default: "Filters" },
|
|
@@ -10377,7 +10389,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10377
10389
|
"suggestion-click"
|
|
10378
10390
|
], ["update:filterModel", "update:visible"]),
|
|
10379
10391
|
setup(e, { emit: n }) {
|
|
10380
|
-
let c = e, l = z(e, "filterModel"), d = z(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } =
|
|
10392
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } = bf(c, l, f), w = k(null), T = R(), E = k(""), O = r(() => p.value.filter((e) => e.type === "value")), M = r(() => {
|
|
10381
10393
|
let e = O.value;
|
|
10382
10394
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
10383
10395
|
}), P = r(() => M.value?.isAggregate === !0), F = r(() => M.value?.aggregateSelectionState ?? []), ee = r(() => new Set(M.value?.selectedValues ?? [])), B = r(() => E.value.trim().toLowerCase()), V = (e) => {
|
|
@@ -10394,7 +10406,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10394
10406
|
let e = M.value;
|
|
10395
10407
|
if (!e) return {};
|
|
10396
10408
|
let t = {};
|
|
10397
|
-
for (let n of
|
|
10409
|
+
for (let n of Kl([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
10398
10410
|
return t;
|
|
10399
10411
|
}), H = r(() => M.value?.colDef.context?.filterPanel ?? {}), U = k(Object.fromEntries(O.value.flatMap((e) => {
|
|
10400
10412
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -10460,22 +10472,22 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10460
10472
|
options: [...i.filter((e) => le.value.has(e.value)), ...i.filter((e) => !le.value.has(e.value))]
|
|
10461
10473
|
};
|
|
10462
10474
|
});
|
|
10463
|
-
}), pe = r(() => P.value && M.value ?
|
|
10475
|
+
}), pe = r(() => P.value && M.value ? Cu({
|
|
10464
10476
|
options: M.value.knownOptions ?? [],
|
|
10465
10477
|
state: F.value
|
|
10466
|
-
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ?
|
|
10478
|
+
}) : /* @__PURE__ */ new Map()), X = (e) => e.isAggregate ? Eu(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, me = (e) => P.value ? pe.value.get(e.value) ?? {
|
|
10467
10479
|
indeterminate: !1,
|
|
10468
10480
|
selected: !1
|
|
10469
10481
|
} : {
|
|
10470
10482
|
indeterminate: !1,
|
|
10471
10483
|
selected: ee.value.has(e.value)
|
|
10472
|
-
}, he = (e) => M.value ?
|
|
10484
|
+
}, he = (e) => M.value ? Il(e, M.value.colDef) : e.label || e.value, ge = (e) => Wl(e) ?? e.value, _e = (e) => Gl(e, M.value?.key ?? ""), ve = (e, t) => {
|
|
10473
10485
|
let n = M.value;
|
|
10474
10486
|
if (n) {
|
|
10475
10487
|
if (n.isAggregate) {
|
|
10476
10488
|
_(n.key, {
|
|
10477
10489
|
type: "aggregate-selection",
|
|
10478
|
-
value:
|
|
10490
|
+
value: xu({
|
|
10479
10491
|
checked: t,
|
|
10480
10492
|
option: e,
|
|
10481
10493
|
options: n.knownOptions ?? [],
|
|
@@ -10495,7 +10507,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10495
10507
|
for (let e of J.value) me(e).selected || ve(e, !0);
|
|
10496
10508
|
}, be = () => {
|
|
10497
10509
|
if (P.value) {
|
|
10498
|
-
for (let e of
|
|
10510
|
+
for (let e of Kl(M.value?.knownOptions ?? [])) me(e).selected && ve(e, !1);
|
|
10499
10511
|
return;
|
|
10500
10512
|
}
|
|
10501
10513
|
for (let e of se.value) ve(e, !1);
|
|
@@ -10542,7 +10554,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10542
10554
|
width: e.maxWidth,
|
|
10543
10555
|
maxWidth: e.maxWidth
|
|
10544
10556
|
})
|
|
10545
|
-
}, [s("div",
|
|
10557
|
+
}, [s("div", Hf, [s("nav", Uf, [(D(!0), o(t, null, A(O.value, (e) => (D(), i(Bf, {
|
|
10546
10558
|
key: e.key,
|
|
10547
10559
|
modelValue: Se.value,
|
|
10548
10560
|
"onUpdate:modelValue": r[0] ||= (e) => Se.value = e,
|
|
@@ -10556,7 +10568,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10556
10568
|
"label",
|
|
10557
10569
|
"right-counter-badge",
|
|
10558
10570
|
"value"
|
|
10559
|
-
]))), 128))]), s("div",
|
|
10571
|
+
]))), 128))]), s("div", Wf, [
|
|
10560
10572
|
u(ui, {
|
|
10561
10573
|
modelValue: E.value,
|
|
10562
10574
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -10568,7 +10580,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10568
10580
|
"disabled",
|
|
10569
10581
|
"placeholder"
|
|
10570
10582
|
]),
|
|
10571
|
-
Object.keys(H.value).length ? (D(), o("div",
|
|
10583
|
+
Object.keys(H.value).length ? (D(), o("div", Gf, [(D(!0), o(t, null, A(H.value, (e, t) => (D(), i(ts, {
|
|
10572
10584
|
key: `facet-${t}`,
|
|
10573
10585
|
disabled: M.value?.disabled,
|
|
10574
10586
|
label: e.headerName || L(Ce)(t),
|
|
@@ -10583,8 +10595,8 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10583
10595
|
"options",
|
|
10584
10596
|
"onUpdate:modelValue"
|
|
10585
10597
|
]))), 128))])) : a("", !0),
|
|
10586
|
-
M.value?.isLoading ? (D(), o("div",
|
|
10587
|
-
s("div",
|
|
10598
|
+
M.value?.isLoading ? (D(), o("div", Kf, [u(Ne, { size: "sm" })])) : M.value ? (D(), o(t, { key: 2 }, [
|
|
10599
|
+
s("div", qf, [(D(!0), o(t, null, A(de.value, (e) => (D(), o("div", {
|
|
10588
10600
|
key: `section-${e.key}`,
|
|
10589
10601
|
class: "pv-flex-vertical",
|
|
10590
10602
|
style: {
|
|
@@ -10605,17 +10617,17 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10605
10617
|
"field",
|
|
10606
10618
|
"options",
|
|
10607
10619
|
"section"
|
|
10608
|
-
])) : e.label ? (D(), o("p",
|
|
10620
|
+
])) : e.label ? (D(), o("p", Jf, I(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
10609
10621
|
key: `option-${e.value}`,
|
|
10610
10622
|
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": me(e).selected }])
|
|
10611
|
-
}, [u(
|
|
10623
|
+
}, [u(El, {
|
|
10612
10624
|
control: M.value.singleSelect ? "radio" : "checkbox",
|
|
10613
10625
|
disabled: M.value.disabled || e.isSelectable === !1,
|
|
10614
10626
|
indeterminate: me(e).indeterminate,
|
|
10615
10627
|
label: he(e),
|
|
10616
10628
|
name: L(T),
|
|
10617
10629
|
"query-text": E.value,
|
|
10618
|
-
"result-count": L(
|
|
10630
|
+
"result-count": L(Ll)(e),
|
|
10619
10631
|
selected: me(e).selected,
|
|
10620
10632
|
"sub-text": e.subText,
|
|
10621
10633
|
"subdued-text": e.subduedText,
|
|
@@ -10635,7 +10647,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10635
10647
|
"value",
|
|
10636
10648
|
"onToggleValue"
|
|
10637
10649
|
])], 2))), 128))]))), 128))]),
|
|
10638
|
-
J.value.length ? a("", !0) : (D(), o("p",
|
|
10650
|
+
J.value.length ? a("", !0) : (D(), o("p", Yf, " No matching values. ")),
|
|
10639
10651
|
M.value.hasMore ? (D(), i($, {
|
|
10640
10652
|
key: 1,
|
|
10641
10653
|
class: "pv-text-brand",
|
|
@@ -10646,7 +10658,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10646
10658
|
onClick: xe
|
|
10647
10659
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
10648
10660
|
], 64)) : a("", !0),
|
|
10649
|
-
M.value && !e.readOnly ? (D(), o("div",
|
|
10661
|
+
M.value && !e.readOnly ? (D(), o("div", Xf, [M.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
10650
10662
|
key: 0,
|
|
10651
10663
|
disabled: M.value.disabled,
|
|
10652
10664
|
label: e.selectAllLabel,
|
|
@@ -10658,7 +10670,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10658
10670
|
variant: "ghost",
|
|
10659
10671
|
onClick: be
|
|
10660
10672
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
10661
|
-
])]), e.staged ? (D(), o("div",
|
|
10673
|
+
])]), e.staged ? (D(), o("div", Zf, [u($, {
|
|
10662
10674
|
label: e.cancelLabel,
|
|
10663
10675
|
variant: "ghost",
|
|
10664
10676
|
onClick: L(g)
|
|
@@ -10666,14 +10678,14 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10666
10678
|
label: e.applyLabel,
|
|
10667
10679
|
variant: "primary",
|
|
10668
10680
|
onClick: L(h)
|
|
10669
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
10681
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, Vf)]),
|
|
10670
10682
|
_: 3
|
|
10671
10683
|
}, 8, ["modelValue"]));
|
|
10672
10684
|
}
|
|
10673
|
-
}), [["__scopeId", "data-v-e3f66d03"]]),
|
|
10685
|
+
}), [["__scopeId", "data-v-e3f66d03"]]), $f = ["tabindex"], ep = {
|
|
10674
10686
|
key: 0,
|
|
10675
10687
|
class: "pv-hover-action-menu__actions"
|
|
10676
|
-
},
|
|
10688
|
+
}, tp = { class: "pv-hover-action-menu__action-group" }, np = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10677
10689
|
__name: "PvHoverActionMenu",
|
|
10678
10690
|
props: {
|
|
10679
10691
|
disabled: {
|
|
@@ -10696,12 +10708,12 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10696
10708
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10697
10709
|
tabindex: e.options.length ? 0 : void 0,
|
|
10698
10710
|
"data-testid": "pv-hover-action-menu"
|
|
10699
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
10711
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", ep, [u(xc, {
|
|
10700
10712
|
variant: e.variant,
|
|
10701
10713
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10702
10714
|
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
10703
10715
|
}, {
|
|
10704
|
-
default: K(() => [s("div",
|
|
10716
|
+
default: K(() => [s("div", tp, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
10705
10717
|
key: t.id,
|
|
10706
10718
|
variant: "dark",
|
|
10707
10719
|
position: "top-center",
|
|
@@ -10729,9 +10741,9 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10729
10741
|
_: 2
|
|
10730
10742
|
}, 1032, ["description"]))), 128))])]),
|
|
10731
10743
|
_: 1
|
|
10732
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
10744
|
+
}, 8, ["variant"])])) : a("", !0)], 10, $f));
|
|
10733
10745
|
}
|
|
10734
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
10746
|
+
}), [["__scopeId", "data-v-6325cd25"]]), rp = () => {
|
|
10735
10747
|
let e = (e, n) => {
|
|
10736
10748
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
10737
10749
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -10744,7 +10756,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10744
10756
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
10745
10757
|
} : null
|
|
10746
10758
|
};
|
|
10747
|
-
},
|
|
10759
|
+
}, ip = /* @__PURE__ */ d({
|
|
10748
10760
|
__name: "QueryFormatter",
|
|
10749
10761
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
10750
10762
|
modelValue: { required: !0 },
|
|
@@ -10758,7 +10770,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10758
10770
|
}),
|
|
10759
10771
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10760
10772
|
setup(e) {
|
|
10761
|
-
let n = e, s = z(e, "modelValue"), c = z(e, "wrap-content"), { removeQueryOption: l } =
|
|
10773
|
+
let n = e, s = z(e, "modelValue"), c = z(e, "wrap-content"), { removeQueryOption: l } = rp(), u = r(() => {
|
|
10762
10774
|
let e = s.value?.queryTerms || [];
|
|
10763
10775
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10764
10776
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -10794,27 +10806,27 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10794
10806
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
10795
10807
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
10796
10808
|
}
|
|
10797
|
-
}),
|
|
10809
|
+
}), ap = [
|
|
10798
10810
|
"aria-expanded",
|
|
10799
10811
|
"aria-activedescendant",
|
|
10800
10812
|
"disabled",
|
|
10801
10813
|
"placeholder",
|
|
10802
10814
|
"data-invalid"
|
|
10803
|
-
],
|
|
10815
|
+
], op = {
|
|
10804
10816
|
key: 2,
|
|
10805
10817
|
class: "pv-text-red pv-text-body-xs"
|
|
10806
|
-
},
|
|
10818
|
+
}, sp = ["id"], cp = [
|
|
10807
10819
|
"id",
|
|
10808
10820
|
"aria-selected",
|
|
10809
10821
|
"aria-describedby",
|
|
10810
10822
|
"onMouseenter"
|
|
10811
|
-
],
|
|
10823
|
+
], lp = {
|
|
10812
10824
|
key: 1,
|
|
10813
10825
|
role: "presentation"
|
|
10814
|
-
},
|
|
10826
|
+
}, up = {
|
|
10815
10827
|
key: 1,
|
|
10816
10828
|
class: "pv-text-center"
|
|
10817
|
-
},
|
|
10829
|
+
}, dp = /* @__PURE__ */ Q(/* @__PURE__ */ d({
|
|
10818
10830
|
__name: "PvQueryBuilderInput",
|
|
10819
10831
|
props: /* @__PURE__ */ g({
|
|
10820
10832
|
placeholder: { default: "Search" },
|
|
@@ -10867,7 +10879,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10867
10879
|
width: "100%",
|
|
10868
10880
|
maxWidth: "100%",
|
|
10869
10881
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
10870
|
-
}, f = V("search-input"), p = z(e, "searchText"), m = z(e, "query"), h = z(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
10882
|
+
}, f = V("search-input"), p = z(e, "searchText"), m = z(e, "query"), h = z(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = rp(), C = k(!1), w = k(!1), T = k(!1), E = B(), O = r(() => !!(E.header || E.footer || E.empty)), M = R(), N = `${M}-options`, P = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, ee = r(() => oe.value.length > 0 || n.optionsLoading || O.value), te = r(() => m.value === null ? n.placeholder : ""), H = k(null), U = r(() => H.value !== null && H.value !== "" && !w.value), re = () => {
|
|
10871
10883
|
m.value = null, p.value = "", H.value = null, T.value = !1;
|
|
10872
10884
|
};
|
|
10873
10885
|
J("Enter", (e) => {
|
|
@@ -10991,7 +11003,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10991
11003
|
"--inset-size": "4px",
|
|
10992
11004
|
"--flex-gap": "4px"
|
|
10993
11005
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
10994
|
-
}, [u(
|
|
11006
|
+
}, [u(ip, {
|
|
10995
11007
|
modelValue: m.value,
|
|
10996
11008
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
10997
11009
|
"wrap-content": T.value,
|
|
@@ -11017,7 +11029,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11017
11029
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
11018
11030
|
onFocus: ve,
|
|
11019
11031
|
onBlur: ve
|
|
11020
|
-
}, null, 44,
|
|
11032
|
+
}, null, 44, ap), [[W, p.value]])], 4),
|
|
11021
11033
|
m.value && !e.hideClearButton ? (D(), i($, {
|
|
11022
11034
|
key: 1,
|
|
11023
11035
|
variant: "ghost",
|
|
@@ -11025,7 +11037,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11025
11037
|
size: "md",
|
|
11026
11038
|
onClick: re
|
|
11027
11039
|
})) : a("", !0),
|
|
11028
|
-
U.value ? (D(), o("p",
|
|
11040
|
+
U.value ? (D(), o("p", op, I(H.value), 1)) : a("", !0),
|
|
11029
11041
|
ee.value ? ie((D(), i(wr, {
|
|
11030
11042
|
key: 3,
|
|
11031
11043
|
class: "pv-scrollbar-visible",
|
|
@@ -11035,12 +11047,12 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11035
11047
|
listId: N,
|
|
11036
11048
|
listRole: "listbox"
|
|
11037
11049
|
}, c({
|
|
11038
|
-
default: K(() => [e.optionsLoading ? (D(), o("div",
|
|
11050
|
+
default: K(() => [e.optionsLoading ? (D(), o("div", up, [u(Ne, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [oe.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(se.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
11039
11051
|
key: 0,
|
|
11040
11052
|
id: F(r),
|
|
11041
11053
|
role: "presentation",
|
|
11042
11054
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
11043
|
-
}, I(e), 9,
|
|
11055
|
+
}, I(e), 9, sp)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
11044
11056
|
key: `${e}-${t.id}`,
|
|
11045
11057
|
id: P(le.value.get(t) ?? -1),
|
|
11046
11058
|
role: "option",
|
|
@@ -11048,11 +11060,11 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11048
11060
|
"aria-describedby": e ? F(r) : void 0,
|
|
11049
11061
|
class: y({ "pv-query-builder-option-active": t === ue.value }),
|
|
11050
11062
|
onMouseenter: (e) => me(t)
|
|
11051
|
-
}, [u(
|
|
11063
|
+
}, [u(zo, _({ ref_for: !0 }, t, {
|
|
11052
11064
|
config: l,
|
|
11053
11065
|
queryText: p.value,
|
|
11054
11066
|
onHandleSelected: (e) => ge(t)
|
|
11055
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
11067
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, cp))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", lp, [j(n.$slots, "empty", {}, void 0, !0)])) : a("", !0)], 64))]),
|
|
11056
11068
|
_: 2
|
|
11057
11069
|
}, [n.$slots.header ? {
|
|
11058
11070
|
name: "header",
|
|
@@ -11065,7 +11077,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11065
11077
|
} : void 0]), 1536)), [[ne, C.value]]) : a("", !0)
|
|
11066
11078
|
], 34)), [[L(X), he]]);
|
|
11067
11079
|
}
|
|
11068
|
-
}), [["__scopeId", "data-v-62aa7767"]]),
|
|
11080
|
+
}), [["__scopeId", "data-v-62aa7767"]]), fp = { class: "sidebar-header-content" }, pp = { class: "content-panel" }, mp = 300, hp = /* @__PURE__ */ d({
|
|
11069
11081
|
__name: "PvSidebar",
|
|
11070
11082
|
props: /* @__PURE__ */ g({
|
|
11071
11083
|
disableToggle: { type: Boolean },
|
|
@@ -11092,7 +11104,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11092
11104
|
}, h = () => {
|
|
11093
11105
|
n.newVersion || r.value && (u && clearTimeout(u), u = setTimeout(() => {
|
|
11094
11106
|
l.value = !0;
|
|
11095
|
-
},
|
|
11107
|
+
}, mp));
|
|
11096
11108
|
}, g = () => {
|
|
11097
11109
|
n.newVersion || (u &&= (clearTimeout(u), null), m(), l.value = !1);
|
|
11098
11110
|
}, _ = () => {
|
|
@@ -11111,119 +11123,119 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11111
11123
|
onMouseenter: h,
|
|
11112
11124
|
onMouseleave: g,
|
|
11113
11125
|
onFocusin: h
|
|
11114
|
-
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div",
|
|
11126
|
+
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div", fp, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i($, {
|
|
11115
11127
|
key: 0,
|
|
11116
11128
|
class: "sidebar-toggle",
|
|
11117
11129
|
"left-icon": r.value ? "panel-left-open" : "panel-left-close",
|
|
11118
11130
|
"aria-label": r.value ? "Open sidebar" : "Close sidebar",
|
|
11119
11131
|
variant: "ghost",
|
|
11120
11132
|
onClick: _
|
|
11121
|
-
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div",
|
|
11133
|
+
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div", pp, [j(t.$slots, "default")])], 2));
|
|
11122
11134
|
}
|
|
11123
|
-
}),
|
|
11135
|
+
}), gp = {
|
|
11124
11136
|
key: 0,
|
|
11125
11137
|
class: "sidebar-additional-header"
|
|
11126
|
-
},
|
|
11138
|
+
}, _p = { class: "sidebar-header-content pv-full-width" }, vp = {
|
|
11127
11139
|
key: 0,
|
|
11128
11140
|
class: "pv-sidebar-nav-header"
|
|
11129
|
-
},
|
|
11141
|
+
}, yp = ["aria-label", "aria-expanded"], bp = {
|
|
11130
11142
|
class: "pv-flex",
|
|
11131
11143
|
style: { "min-width": "0" }
|
|
11132
|
-
},
|
|
11144
|
+
}, xp = {
|
|
11133
11145
|
class: "pv-avatar-xs",
|
|
11134
11146
|
style: {
|
|
11135
11147
|
"border-radius": "4px",
|
|
11136
11148
|
"flex-shrink": "0"
|
|
11137
11149
|
}
|
|
11138
|
-
},
|
|
11150
|
+
}, Sp = ["src"], Cp = { key: 1 }, wp = ["title"], Tp = {
|
|
11139
11151
|
class: "pv-popover",
|
|
11140
11152
|
style: {
|
|
11141
11153
|
width: "fit-content",
|
|
11142
11154
|
"max-width": "280px",
|
|
11143
11155
|
"margin-top": "4px"
|
|
11144
11156
|
}
|
|
11145
|
-
},
|
|
11157
|
+
}, Ep = {
|
|
11146
11158
|
role: "list",
|
|
11147
11159
|
class: "pv-popover-list pv-flow",
|
|
11148
11160
|
style: { "--flow-size": "0.25rem" },
|
|
11149
11161
|
"data-testid": "pv-sidebar-org-list"
|
|
11150
|
-
},
|
|
11162
|
+
}, Dp = ["data-active"], Op = ["href", "data-org-value"], kp = {
|
|
11151
11163
|
class: "pv-avatar-xs",
|
|
11152
11164
|
style: { "border-radius": "4px" }
|
|
11153
|
-
},
|
|
11165
|
+
}, Ap = ["src"], jp = { key: 1 }, Mp = ["title"], Np = ["data-active"], Pp = ["href", "data-org-value"], Fp = ["title"], Ip = { class: "pv-sidebar-nav" }, Lp = { key: 0 }, Rp = {
|
|
11154
11166
|
key: 1,
|
|
11155
11167
|
role: "list",
|
|
11156
11168
|
class: "pv-full-width pv-flow",
|
|
11157
11169
|
style: { "--flow-size": "0.25rem" }
|
|
11158
|
-
},
|
|
11170
|
+
}, zp = {
|
|
11159
11171
|
class: "pv-flex pv-space-between pv-full-width",
|
|
11160
11172
|
"data-sidebar-expanded-content": "",
|
|
11161
11173
|
style: { "flex-wrap": "wrap" }
|
|
11162
|
-
},
|
|
11174
|
+
}, Bp = {
|
|
11163
11175
|
key: 0,
|
|
11164
11176
|
class: "pv-tag-purple pv-tag-sm"
|
|
11165
|
-
},
|
|
11177
|
+
}, Vp = ["onClick", "onKeydown"], Hp = [
|
|
11166
11178
|
"href",
|
|
11167
11179
|
"aria-current",
|
|
11168
11180
|
"title"
|
|
11169
|
-
],
|
|
11181
|
+
], Up = {
|
|
11170
11182
|
class: "pv-flex pv-space-between pv-full-width",
|
|
11171
11183
|
"data-sidebar-expanded-content": "",
|
|
11172
11184
|
style: { "flex-wrap": "wrap" }
|
|
11173
|
-
},
|
|
11185
|
+
}, Wp = {
|
|
11174
11186
|
key: 0,
|
|
11175
11187
|
class: "pv-tag-purple pv-tag-sm"
|
|
11176
|
-
},
|
|
11188
|
+
}, Gp = {
|
|
11177
11189
|
class: "pv-popover",
|
|
11178
11190
|
style: { "--position": "static" }
|
|
11179
|
-
},
|
|
11191
|
+
}, Kp = {
|
|
11180
11192
|
role: "list",
|
|
11181
11193
|
class: "pv-popover-list"
|
|
11182
|
-
},
|
|
11194
|
+
}, qp = ["data-active"], Jp = ["href"], Yp = {
|
|
11183
11195
|
key: 0,
|
|
11184
11196
|
class: "pv-tag-purple pv-tag-sm"
|
|
11185
|
-
},
|
|
11197
|
+
}, Xp = ["onClick", "onAuxclick"], Zp = { "data-sidebar-expanded-content": "" }, Qp = { class: "pv-sidebar-nav-nested" }, $p = [
|
|
11186
11198
|
"href",
|
|
11187
11199
|
"aria-current",
|
|
11188
11200
|
"title"
|
|
11189
|
-
],
|
|
11201
|
+
], em = {
|
|
11190
11202
|
class: "pv-flex pv-space-between pv-full-width",
|
|
11191
11203
|
style: { "flex-wrap": "wrap" }
|
|
11192
|
-
},
|
|
11204
|
+
}, tm = {
|
|
11193
11205
|
key: 0,
|
|
11194
11206
|
class: "pv-tag-purple pv-tag-sm"
|
|
11195
|
-
},
|
|
11207
|
+
}, nm = {
|
|
11196
11208
|
class: "pv-popover",
|
|
11197
11209
|
style: {
|
|
11198
11210
|
"--position": "static",
|
|
11199
11211
|
"--height": "350px"
|
|
11200
11212
|
}
|
|
11201
|
-
},
|
|
11213
|
+
}, rm = {
|
|
11202
11214
|
role: "list",
|
|
11203
11215
|
class: "pv-popover-list"
|
|
11204
|
-
},
|
|
11216
|
+
}, im = ["data-active"], am = ["href"], om = {
|
|
11205
11217
|
key: 0,
|
|
11206
11218
|
class: "pv-tag-purple pv-tag-sm"
|
|
11207
|
-
},
|
|
11219
|
+
}, sm = {
|
|
11208
11220
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
11209
11221
|
style: { "--bottom": "0" }
|
|
11210
|
-
},
|
|
11222
|
+
}, cm = ["aria-expanded"], lm = { class: "pv-popover pv-text-default pv-text-body-md" }, um = [
|
|
11211
11223
|
"aria-label",
|
|
11212
11224
|
"aria-expanded",
|
|
11213
11225
|
"title"
|
|
11214
|
-
],
|
|
11226
|
+
], dm = {
|
|
11215
11227
|
class: "pv-avatar-xs",
|
|
11216
11228
|
style: {
|
|
11217
11229
|
"border-radius": "50%",
|
|
11218
11230
|
"flex-shrink": "0"
|
|
11219
11231
|
}
|
|
11220
|
-
},
|
|
11232
|
+
}, fm = ["src"], pm = { key: 1 }, mm = {
|
|
11221
11233
|
class: "pv-truncate",
|
|
11222
11234
|
"data-sidebar-expanded-content": ""
|
|
11223
|
-
},
|
|
11235
|
+
}, hm = {
|
|
11224
11236
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
11225
11237
|
style: { "--height": "750px" }
|
|
11226
|
-
},
|
|
11238
|
+
}, gm = { class: "content-panel" }, _m = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", vm = /* @__PURE__ */ d({
|
|
11227
11239
|
__name: "PvSidebarV2",
|
|
11228
11240
|
props: /* @__PURE__ */ g({
|
|
11229
11241
|
disableOrgProfileHover: { type: Boolean },
|
|
@@ -11248,11 +11260,11 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11248
11260
|
})), te, H = (e) => e.hoverPanelSlot ? p ? (ee.value, Yn(p, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, U = (e, t, n) => {
|
|
11249
11261
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
11250
11262
|
}, W = (e) => {
|
|
11251
|
-
let t = P.get(e), n = t?.querySelector(
|
|
11263
|
+
let t = P.get(e), n = t?.querySelector(_m);
|
|
11252
11264
|
if (n) return n;
|
|
11253
11265
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
11254
|
-
if (t.matches(
|
|
11255
|
-
let e = t.querySelector(
|
|
11266
|
+
if (t.matches(_m)) return t;
|
|
11267
|
+
let e = t.querySelector(_m);
|
|
11256
11268
|
if (e) return e;
|
|
11257
11269
|
}
|
|
11258
11270
|
}, ne = (e, t) => {
|
|
@@ -11333,7 +11345,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11333
11345
|
ref_key: "sidebarPanel",
|
|
11334
11346
|
ref: E,
|
|
11335
11347
|
class: "sidebar-panel"
|
|
11336
|
-
}, [s("div", null, [L(h) ? (D(), o("div",
|
|
11348
|
+
}, [s("div", null, [L(h) ? (D(), o("div", gp, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": Y.value }]]) }, [s("div", _p, [e.organizations && e.organizations.length ? (D(), o("div", vp, [u(nr, {
|
|
11337
11349
|
modelValue: pe.value,
|
|
11338
11350
|
"onUpdate:modelValue": r[0] ||= (e) => pe.value = e,
|
|
11339
11351
|
position: Y.value ? "right-top" : "bottom-left",
|
|
@@ -11359,19 +11371,19 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11359
11371
|
"data-testid": "pv-sidebar-org-switcher",
|
|
11360
11372
|
"aria-label": `Switch organization: ${J.value?.label}`,
|
|
11361
11373
|
"aria-expanded": pe.value
|
|
11362
|
-
}, [s("div",
|
|
11374
|
+
}, [s("div", bp, [s("span", xp, [J.value?.avatarUrl ? (D(), o("img", {
|
|
11363
11375
|
key: 0,
|
|
11364
11376
|
src: J.value.avatarUrl,
|
|
11365
11377
|
alt: "Organization Avatar"
|
|
11366
|
-
}, null, 8,
|
|
11378
|
+
}, null, 8, Sp)) : (D(), o("span", Cp, I(J.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
11367
11379
|
class: "pv-text-title-lg pv-truncate",
|
|
11368
11380
|
"data-sidebar-expanded-content": "",
|
|
11369
11381
|
title: J.value?.label
|
|
11370
|
-
}, I(J.value?.label), 9,
|
|
11382
|
+
}, I(J.value?.label), 9, wp)]), u(Z, {
|
|
11371
11383
|
name: "chevron-down",
|
|
11372
11384
|
class: "pv-icon-16",
|
|
11373
11385
|
"data-sidebar-expanded-content": ""
|
|
11374
|
-
})], 8,
|
|
11386
|
+
})], 8, yp)]),
|
|
11375
11387
|
_: 1
|
|
11376
11388
|
}, 8, [
|
|
11377
11389
|
"description",
|
|
@@ -11379,19 +11391,19 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11379
11391
|
"use-teleport",
|
|
11380
11392
|
"teleport-location"
|
|
11381
11393
|
])]),
|
|
11382
|
-
content: K(() => [s("div",
|
|
11394
|
+
content: K(() => [s("div", Tp, [s("ul", Ep, [(D(!0), o(t, null, A(e.organizations, (e) => (D(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
11383
11395
|
class: "pv-flex",
|
|
11384
11396
|
href: e.url,
|
|
11385
11397
|
"data-testid": "pv-sidebar-org-option",
|
|
11386
11398
|
"data-org-value": e.value
|
|
11387
|
-
}, [s("div",
|
|
11399
|
+
}, [s("div", kp, [e.avatarUrl ? (D(), o("img", {
|
|
11388
11400
|
key: 0,
|
|
11389
11401
|
src: e.avatarUrl,
|
|
11390
11402
|
alt: "Organization Avatar"
|
|
11391
|
-
}, null, 8,
|
|
11403
|
+
}, null, 8, Ap)) : (D(), o("span", jp, I(e.label.slice(0, 1)), 1))]), s("span", {
|
|
11392
11404
|
class: "pv-truncate pv-flex-item",
|
|
11393
11405
|
title: e.label
|
|
11394
|
-
}, I(e.label), 9,
|
|
11406
|
+
}, I(e.label), 9, Mp)], 8, Op)], 8, Dp), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
11395
11407
|
key: e.value,
|
|
11396
11408
|
style: { "padding-left": "0.5rem" },
|
|
11397
11409
|
"data-active": e.active || void 0
|
|
@@ -11404,7 +11416,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11404
11416
|
}, [u(Z, { name: "corner-down-right" }), s("span", {
|
|
11405
11417
|
class: "pv-truncate",
|
|
11406
11418
|
title: e.label
|
|
11407
|
-
}, I(e.label), 9,
|
|
11419
|
+
}, I(e.label), 9, Fp)], 8, Pp)], 8, Np))), 128))], 64))), 128))])])]),
|
|
11408
11420
|
_: 1
|
|
11409
11421
|
}, 8, [
|
|
11410
11422
|
"modelValue",
|
|
@@ -11426,9 +11438,9 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11426
11438
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
11427
11439
|
content: K(() => [l(I(Y.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
11428
11440
|
_: 1
|
|
11429
|
-
}))], 2)]), s("div",
|
|
11430
|
-
L(m) ? (D(), o("div",
|
|
11431
|
-
e.navItems && e.navItems.length ? (D(), o("ul",
|
|
11441
|
+
}))], 2)]), s("div", Ip, [
|
|
11442
|
+
L(m) ? (D(), o("div", Lp, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
11443
|
+
e.navItems && e.navItems.length ? (D(), o("ul", Rp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [H(e) ? (D(), i(nr, {
|
|
11432
11444
|
key: 0,
|
|
11433
11445
|
modelValue: O.value[e.value],
|
|
11434
11446
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -11458,7 +11470,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11458
11470
|
key: 0,
|
|
11459
11471
|
name: e.icon,
|
|
11460
11472
|
class: "pv-nav-icon"
|
|
11461
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11473
|
+
}, null, 8, ["name"])) : a("", !0), s("span", zp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Bp, I(e.badge.toUpperCase()), 1)) : a("", !0)])]),
|
|
11462
11474
|
_: 2
|
|
11463
11475
|
}, 1040, [
|
|
11464
11476
|
"href",
|
|
@@ -11475,7 +11487,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11475
11487
|
class: "pv-sidebar-hover-panel",
|
|
11476
11488
|
onClick: (t) => ie(t, e.value),
|
|
11477
11489
|
onKeydown: (t) => q(t, e.value)
|
|
11478
|
-
}, [j(n.$slots, e.hoverPanelSlot)], 40,
|
|
11490
|
+
}, [j(n.$slots, e.hoverPanelSlot)], 40, Vp)]),
|
|
11479
11491
|
_: 2
|
|
11480
11492
|
}, 1032, [
|
|
11481
11493
|
"modelValue",
|
|
@@ -11504,8 +11516,8 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11504
11516
|
key: 0,
|
|
11505
11517
|
name: e.icon,
|
|
11506
11518
|
class: "pv-nav-icon"
|
|
11507
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11508
|
-
content: K(() => [s("div",
|
|
11519
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Up, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Wp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Hp)]),
|
|
11520
|
+
content: K(() => [s("div", Gp, [s("ul", Kp, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Yp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Jp)], 8, qp)])])]),
|
|
11509
11521
|
_: 2
|
|
11510
11522
|
}, 1032, [
|
|
11511
11523
|
"use-teleport",
|
|
@@ -11538,14 +11550,14 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11538
11550
|
key: 0,
|
|
11539
11551
|
name: e.icon,
|
|
11540
11552
|
class: "pv-nav-icon"
|
|
11541
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11542
|
-
default: K(() => [s("div",
|
|
11553
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Zp, I(e.label), 1)], 40, Xp)]),
|
|
11554
|
+
default: K(() => [s("div", Qp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
11543
11555
|
key: e.value,
|
|
11544
11556
|
href: e.url
|
|
11545
11557
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
11546
11558
|
"aria-current": e.active ? "page" : void 0,
|
|
11547
11559
|
title: e.label
|
|
11548
|
-
}), [s("span",
|
|
11560
|
+
}), [s("span", em, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", tm, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, $p))), 128))])]),
|
|
11549
11561
|
_: 2
|
|
11550
11562
|
}, 1032, [
|
|
11551
11563
|
"modelValue",
|
|
@@ -11553,17 +11565,17 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11553
11565
|
"default-open",
|
|
11554
11566
|
"summary-attrs"
|
|
11555
11567
|
])]),
|
|
11556
|
-
content: K(() => [s("div",
|
|
11568
|
+
content: K(() => [s("div", nm, [s("ul", rm, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
11557
11569
|
key: e.value,
|
|
11558
11570
|
"data-active": e.active || void 0
|
|
11559
|
-
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span",
|
|
11571
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", om, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, am)], 8, im))), 128))])])]),
|
|
11560
11572
|
_: 2
|
|
11561
11573
|
}, 1032, [
|
|
11562
11574
|
"use-teleport",
|
|
11563
11575
|
"teleport-location",
|
|
11564
11576
|
"disabled"
|
|
11565
11577
|
]))]))), 128))])) : a("", !0),
|
|
11566
|
-
s("div",
|
|
11578
|
+
s("div", sm, [L(g) ? (D(), i(nr, {
|
|
11567
11579
|
key: 0,
|
|
11568
11580
|
modelValue: fe.value,
|
|
11569
11581
|
"onUpdate:modelValue": r[1] ||= (e) => fe.value = e,
|
|
@@ -11585,8 +11597,8 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11585
11597
|
}, [u(Z, {
|
|
11586
11598
|
name: "help-circle",
|
|
11587
11599
|
class: "pv-icon-20 pv-nav-icon"
|
|
11588
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
11589
|
-
content: K(() => [s("div",
|
|
11600
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, cm)]),
|
|
11601
|
+
content: K(() => [s("div", lm, [j(n.$slots, "sidebar-help-content")])]),
|
|
11590
11602
|
_: 3
|
|
11591
11603
|
}, 8, [
|
|
11592
11604
|
"modelValue",
|
|
@@ -11611,12 +11623,12 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11611
11623
|
"aria-label": e.profile.name,
|
|
11612
11624
|
"aria-expanded": X.value,
|
|
11613
11625
|
title: e.profile.name
|
|
11614
|
-
}, [s("span",
|
|
11626
|
+
}, [s("span", dm, [e.profile.avatarUrl ? (D(), o("img", {
|
|
11615
11627
|
key: 0,
|
|
11616
11628
|
src: e.profile.avatarUrl,
|
|
11617
11629
|
alt: ""
|
|
11618
|
-
}, null, 8,
|
|
11619
|
-
content: K(() => [s("div",
|
|
11630
|
+
}, null, 8, fm)) : (D(), o("span", pm, I(e.profile.name.slice(0, 1)), 1))]), s("span", mm, I(e.profile.name), 1)], 8, um)]),
|
|
11631
|
+
content: K(() => [s("div", hm, [j(n.$slots, "sidebar-profile-content")])]),
|
|
11620
11632
|
_: 3
|
|
11621
11633
|
}, 8, [
|
|
11622
11634
|
"modelValue",
|
|
@@ -11625,7 +11637,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11625
11637
|
"teleport-location"
|
|
11626
11638
|
])) : a("", !0)])
|
|
11627
11639
|
])], 512),
|
|
11628
|
-
s("div",
|
|
11640
|
+
s("div", gm, [j(n.$slots, "default")]),
|
|
11629
11641
|
s("div", {
|
|
11630
11642
|
ref_key: "popoverTeleportTarget",
|
|
11631
11643
|
ref: T,
|
|
@@ -11633,11 +11645,11 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11633
11645
|
}, null, 512)
|
|
11634
11646
|
], 38));
|
|
11635
11647
|
}
|
|
11636
|
-
}),
|
|
11648
|
+
}), ym = {
|
|
11637
11649
|
class: "pv-toc",
|
|
11638
11650
|
role: "list",
|
|
11639
11651
|
style: { "min-width": "160px" }
|
|
11640
|
-
},
|
|
11652
|
+
}, bm = ["aria-current"], xm = ["href", "onClick"], Sm = /* @__PURE__ */ d({
|
|
11641
11653
|
__name: "PvTableOfContents",
|
|
11642
11654
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
11643
11655
|
modelValue: { required: !1 },
|
|
@@ -11648,7 +11660,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11648
11660
|
let r = z(e, "modelValue"), c = n, u = (e, t) => {
|
|
11649
11661
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
11650
11662
|
};
|
|
11651
|
-
return (n, c) => (D(), o("ul",
|
|
11663
|
+
return (n, c) => (D(), o("ul", ym, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
11652
11664
|
key: e.id,
|
|
11653
11665
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
11654
11666
|
}, [s("a", {
|
|
@@ -11657,9 +11669,9 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11657
11669
|
}, [e.icon ? (D(), i(Z, {
|
|
11658
11670
|
key: 0,
|
|
11659
11671
|
name: e.icon
|
|
11660
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8,
|
|
11672
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8, xm)], 8, bm))), 128))]));
|
|
11661
11673
|
}
|
|
11662
|
-
}),
|
|
11674
|
+
}), Cm = ["data-clickable", "onClick"], wm = ["data-clickable", "onClick"], Tm = ["data-clickable", "onClick"], Em = /* @__PURE__ */ d({
|
|
11663
11675
|
__name: "PvStepper",
|
|
11664
11676
|
props: {
|
|
11665
11677
|
variant: { default: "dots" },
|
|
@@ -11741,12 +11753,12 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11741
11753
|
variant: r === e.active ? "primary" : "tertiary",
|
|
11742
11754
|
value: r + 1,
|
|
11743
11755
|
rounded: ""
|
|
11744
|
-
}, null, 8, ["variant", "value"])) : a("", !0), s("span", null, I(t.label), 1)], 14,
|
|
11756
|
+
}, null, 8, ["variant", "value"])) : a("", !0), s("span", null, I(t.label), 1)], 14, Cm))), 128)) : e.variant === "dots" ? (D(!0), o(t, { key: 1 }, A(e.count, (t, r) => (D(), o("div", {
|
|
11745
11757
|
key: r,
|
|
11746
11758
|
"data-clickable": e.clickable,
|
|
11747
11759
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
11748
11760
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
11749
|
-
}, null, 10,
|
|
11761
|
+
}, null, 10, wm))), 128)) : (D(!0), o(t, { key: 2 }, A(e.items, (t, r) => (D(), o("div", {
|
|
11750
11762
|
key: r,
|
|
11751
11763
|
class: y(["pv-flex pv-full-width", [{ "pv-flex-item": r === c.value - 1 }]]),
|
|
11752
11764
|
style: { "--flex-gap": "0.25rem" }
|
|
@@ -11761,27 +11773,27 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11761
11773
|
}, [u(Z, {
|
|
11762
11774
|
name: p[t.variant ?? "current"],
|
|
11763
11775
|
class: y(f[t.variant ?? "current"].icon)
|
|
11764
|
-
}, null, 8, ["name", "class"]), s("span", { class: y(["pv-text-body-md", f[t.variant ?? "current"].text]) }, I(t.label), 3)], 12,
|
|
11776
|
+
}, null, 8, ["name", "class"]), s("span", { class: y(["pv-text-body-md", f[t.variant ?? "current"].text]) }, I(t.label), 3)], 12, Tm), r < c.value - 1 ? (D(), o("div", {
|
|
11765
11777
|
key: 0,
|
|
11766
11778
|
class: y(["pv-stepper-progress-divider", m[t.variant ?? "current"]])
|
|
11767
11779
|
}, null, 2)) : a("", !0)], 2))), 128))], 4));
|
|
11768
11780
|
}
|
|
11769
|
-
}),
|
|
11781
|
+
}), Dm = {
|
|
11770
11782
|
class: "pv-flex-vertical pv-flow",
|
|
11771
11783
|
style: {
|
|
11772
11784
|
"--flow-size": "1.5rem",
|
|
11773
11785
|
"--flex-gap": "0"
|
|
11774
11786
|
}
|
|
11775
|
-
},
|
|
11787
|
+
}, Om = ["src", "alt"], km = { class: "pv-flex-vertical" }, Am = {
|
|
11776
11788
|
key: 0,
|
|
11777
11789
|
class: "pv-heading-2"
|
|
11778
|
-
},
|
|
11790
|
+
}, jm = {
|
|
11779
11791
|
key: 1,
|
|
11780
11792
|
class: "pv-text-body-md pv-text-subdued"
|
|
11781
|
-
},
|
|
11793
|
+
}, Mm = {
|
|
11782
11794
|
key: 1,
|
|
11783
11795
|
class: "pv-flex-vertical"
|
|
11784
|
-
},
|
|
11796
|
+
}, Nm = /* @__PURE__ */ d({
|
|
11785
11797
|
__name: "PvEmptyState",
|
|
11786
11798
|
props: {
|
|
11787
11799
|
alt: {},
|
|
@@ -11793,14 +11805,14 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11793
11805
|
},
|
|
11794
11806
|
emits: ["handle-primary-click", "handle-secondary-click"],
|
|
11795
11807
|
setup(e) {
|
|
11796
|
-
return (t, n) => (D(), o("div",
|
|
11808
|
+
return (t, n) => (D(), o("div", Dm, [
|
|
11797
11809
|
e.src ? (D(), o("img", {
|
|
11798
11810
|
key: 0,
|
|
11799
11811
|
src: e.src,
|
|
11800
11812
|
alt: e.alt ?? ""
|
|
11801
|
-
}, null, 8,
|
|
11802
|
-
s("div",
|
|
11803
|
-
e.primaryLabel || e.secondaryLabel ? (D(), o("div",
|
|
11813
|
+
}, null, 8, Om)) : a("", !0),
|
|
11814
|
+
s("div", km, [e.header ? (D(), o("h2", Am, I(e.header), 1)) : a("", !0), e.description ? (D(), o("span", jm, I(e.description), 1)) : a("", !0)]),
|
|
11815
|
+
e.primaryLabel || e.secondaryLabel ? (D(), o("div", Mm, [e.primaryLabel ? (D(), i($, {
|
|
11804
11816
|
key: 0,
|
|
11805
11817
|
variant: "primary",
|
|
11806
11818
|
size: "xl",
|
|
@@ -11815,7 +11827,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11815
11827
|
}, null, 8, ["label"])) : a("", !0)])) : a("", !0)
|
|
11816
11828
|
]));
|
|
11817
11829
|
}
|
|
11818
|
-
}),
|
|
11830
|
+
}), Pm = { theme: {
|
|
11819
11831
|
preset: Te,
|
|
11820
11832
|
options: {
|
|
11821
11833
|
darkModeSelector: "none",
|
|
@@ -11824,15 +11836,15 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11824
11836
|
order: "pit-viper-v2, primevue"
|
|
11825
11837
|
}
|
|
11826
11838
|
}
|
|
11827
|
-
} },
|
|
11828
|
-
e.use(we,
|
|
11829
|
-
},
|
|
11830
|
-
let e = m(
|
|
11839
|
+
} }, Fm = (e) => {
|
|
11840
|
+
e.use(we, Pm);
|
|
11841
|
+
}, Im = Symbol.for("pv.rum-context"), Lm = () => {
|
|
11842
|
+
let e = m(Im, void 0);
|
|
11831
11843
|
return () => {
|
|
11832
11844
|
let t = e?.value;
|
|
11833
11845
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
11834
11846
|
};
|
|
11835
|
-
},
|
|
11847
|
+
}, Rm = (e, t = {}, n = {}) => {
|
|
11836
11848
|
try {
|
|
11837
11849
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
11838
11850
|
let r = n.consumer == null ? t : {
|
|
@@ -11841,7 +11853,7 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11841
11853
|
};
|
|
11842
11854
|
window.DD_RUM.addAction(e, r);
|
|
11843
11855
|
} catch {}
|
|
11844
|
-
},
|
|
11856
|
+
}, zm = (e) => {
|
|
11845
11857
|
queueMicrotask(() => {
|
|
11846
11858
|
try {
|
|
11847
11859
|
e();
|
|
@@ -11849,6 +11861,6 @@ var bf = ["aria-label"], xf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11849
11861
|
});
|
|
11850
11862
|
};
|
|
11851
11863
|
//#endregion
|
|
11852
|
-
export { ki as ContextCardEnum, ai as PvAccordion,
|
|
11864
|
+
export { ki as ContextCardEnum, ai as PvAccordion, xc as PvActionBar, or as PvActionButton, lr as PvAiButton, qa as PvAvatar, Ds as PvAvatarGroup, Yr as PvBanner, Ha as PvBreadcrumbs, $ as PvButton, mr as PvButtonWithTooltip, uc as PvCard, Ns 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, nl as PvDistributionBar, Oi as PvDrawer, Dr as PvDropdown, $r as PvEmptyErrorState, Nm as PvEmptyState, yc as PvExpandableContent, Zs as PvFileInput, Qf as PvFilterModal, Ff as PvFilterPanel, Ma as PvGhostInput, ws as PvHeader, ld as PvHorizontalScroller, np as PvHoverActionMenu, Z as PvIcon, Ws as PvInput, vc as PvInsightCard, qo as PvMenu, zo as PvMenuItem, Ur as PvModal, ts as PvMultiSelectButton, ds as PvPagination, xr as PvPill, wr as PvPopover, kr as PvPopoverMenu, nr as PvPopoverV2, tl as PvProgressBar, dp as PvQueryBuilderInput, Ls as PvRadioGroup, yl as PvRange, ec as PvRating, vr as PvReleaseBadge, ui as PvSearchInput, Ar as PvSegmentedControl, is as PvSelectButton, ms as PvSelectableCard, ys as PvSidePanel, hp as PvSidebar, vm as PvSidebarV2, zs as PvSkeleton, ua as PvSpinesContextCard, ma as PvSpinesContextDrawer, ka as PvSpinesEntityFields, Ne as PvSpinner, _r as PvSplitButton, Rs as PvSprite, Em as PvStepper, ri as PvSuggestionTag, yo as PvSwitch, Pr as PvTabList, Sm as PvTableOfContents, Ra as PvTabs, br as PvTag, Gi as PvTextArea, Zi as PvToast, Yi as PvToggleButton, js as PvToggleGroup, fr as PvTooltip, ir as PvTooltipV2, Yc as PvTree, Xc as PvTreeGroup, dc as PvWidget, Im as RumContextKey, Rm as addRumAction, ff as createPvFilterStore, zm as deferRumTask, pf as providePvFilterStore, vi as useDateTime, mf as useOptionalPvFilterStore, Fm as usePvComponents, hf as usePvFilterStore, Lm as useRumContext };
|
|
11853
11865
|
|
|
11854
11866
|
//# sourceMappingURL=pv-components-base.mjs.map
|