@turquoisehealth/pit-viper 2.203.1-dev.1 → 2.203.1-dev.2
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-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/symbols.d.ts +0 -2
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +0 -4
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +663 -668
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/symbols.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -3
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1287 -1276
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1006 -1003
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +493 -498
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +556 -552
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1125 -1122
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -2767,13 +2767,13 @@ var ki = {
|
|
|
2767
2767
|
"always-show"
|
|
2768
2768
|
]));
|
|
2769
2769
|
}
|
|
2770
|
-
}), zi = Symbol("SelectedItemsKey"), Bi = Symbol("EnableCascadeSelectionKey"), Vi = Symbol("OriginalOptionsMapKey"), Hi = Symbol("CascadeSelectedParentIdsKey"), Ui = Symbol("CascadeDeselectedChildIdsKey"), Wi = Symbol("ParentSelectsAllChildrenKey"), Gi = Symbol("EnableChildExpansionKey"), Ki =
|
|
2770
|
+
}), zi = Symbol("SelectedItemsKey"), Bi = Symbol("EnableCascadeSelectionKey"), Vi = Symbol("OriginalOptionsMapKey"), Hi = Symbol("CascadeSelectedParentIdsKey"), Ui = Symbol("CascadeDeselectedChildIdsKey"), Wi = Symbol("ParentSelectsAllChildrenKey"), Gi = Symbol("EnableChildExpansionKey"), Ki = ["data-testid"], qi = [
|
|
2771
2771
|
"hidden",
|
|
2772
2772
|
"type",
|
|
2773
2773
|
"checked",
|
|
2774
2774
|
"indeterminate",
|
|
2775
2775
|
"disabled"
|
|
2776
|
-
],
|
|
2776
|
+
], Ji = ["aria-label", "aria-expanded"], Yi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
2777
2777
|
__name: "PvMenuItemVariant",
|
|
2778
2778
|
props: {
|
|
2779
2779
|
selected: { type: Boolean },
|
|
@@ -2870,7 +2870,7 @@ var ki = {
|
|
|
2870
2870
|
class: y(ee.value),
|
|
2871
2871
|
disabled: e.disabled,
|
|
2872
2872
|
onChange: P
|
|
2873
|
-
}, null, 42,
|
|
2873
|
+
}, null, 42, qi),
|
|
2874
2874
|
e.menuOptionConfig?.renderer ? (E(), i(j(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: b.value }), null, 16, ["selected"])) : (E(), i(Ni, _({ key: 1 }, T.value, {
|
|
2875
2875
|
menuOptionConfig: e.menuOptionConfig,
|
|
2876
2876
|
queryText: e.queryText,
|
|
@@ -2908,10 +2908,10 @@ var ki = {
|
|
|
2908
2908
|
}, [u(X, {
|
|
2909
2909
|
name: e.chevronIcon ?? "chevron-right",
|
|
2910
2910
|
size: 12
|
|
2911
|
-
}, null, 8, ["name"])], 8,
|
|
2912
|
-
], 14,
|
|
2911
|
+
}, null, 8, ["name"])], 8, Ji)) : a("", !0)
|
|
2912
|
+
], 14, Ki));
|
|
2913
2913
|
}
|
|
2914
|
-
}), [["__scopeId", "data-v-a93608b0"]]),
|
|
2914
|
+
}), [["__scopeId", "data-v-a93608b0"]]), Xi = ["data-active"], Zi = { key: 0 }, Qi = 4, $i = /* @__PURE__ */ d({
|
|
2915
2915
|
inheritAttrs: !1,
|
|
2916
2916
|
__name: "PvMenuItem",
|
|
2917
2917
|
props: /* @__PURE__ */ g({
|
|
@@ -2943,84 +2943,88 @@ var ki = {
|
|
|
2943
2943
|
}),
|
|
2944
2944
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2945
2945
|
setup(e, { emit: n }) {
|
|
2946
|
-
let i = e, s = m(zi, void 0), c = I(e, "selectedIds"), l = m(Gi, O(!1)), d = m(Wi, O(!1)), f = m(Hi, void 0), p = m(Ui, void 0), h =
|
|
2946
|
+
let i = e, s = m(zi, void 0), c = I(e, "selectedIds"), l = m(Gi, O(!1)), d = m(Wi, O(!1)), f = m(Hi, void 0), p = m(Ui, void 0), h = O(i.defaultExpanded ?? !1);
|
|
2947
|
+
H(() => i.defaultExpanded, (e) => {
|
|
2948
|
+
e && (h.value = !0);
|
|
2949
|
+
});
|
|
2950
|
+
let g = O(!1), v = O(!1), b = O(i.children ?? []), S = O(/* @__PURE__ */ new Set());
|
|
2947
2951
|
H(() => i.children, (e) => {
|
|
2948
2952
|
if (!e) {
|
|
2949
|
-
|
|
2953
|
+
b.value = [];
|
|
2950
2954
|
return;
|
|
2951
2955
|
}
|
|
2952
|
-
let t =
|
|
2953
|
-
|
|
2956
|
+
let t = b.value.filter((e) => S.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2957
|
+
b.value = [...e, ...r], v.value = !1;
|
|
2954
2958
|
});
|
|
2955
|
-
let
|
|
2956
|
-
|
|
2957
|
-
},
|
|
2959
|
+
let C = () => {
|
|
2960
|
+
h.value = !h.value;
|
|
2961
|
+
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
2958
2962
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2959
2963
|
return r;
|
|
2960
|
-
}),
|
|
2964
|
+
}), D = r(() => Ci({
|
|
2961
2965
|
...i,
|
|
2962
|
-
children:
|
|
2963
|
-
}) && i.level <
|
|
2964
|
-
if (
|
|
2966
|
+
children: b.value
|
|
2967
|
+
}) && i.level < Qi), A = r(() => D.value ? l.value ? h.value : !0 : !1), j = r(() => h.value ? "chevron-down" : "chevron-right"), M = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), N = n, te = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), F = async () => {
|
|
2968
|
+
if (g.value) return;
|
|
2965
2969
|
if (!i.handleSeeMore) {
|
|
2966
|
-
|
|
2970
|
+
N("see-more", {
|
|
2967
2971
|
parentId: i.id,
|
|
2968
|
-
offset:
|
|
2972
|
+
offset: b.value.length
|
|
2969
2973
|
});
|
|
2970
2974
|
return;
|
|
2971
2975
|
}
|
|
2972
2976
|
let e = f?.value?.has(i.id) ?? !1;
|
|
2973
|
-
|
|
2977
|
+
g.value = !0;
|
|
2974
2978
|
try {
|
|
2975
2979
|
let t = await i.handleSeeMore({
|
|
2976
2980
|
parentId: i.id,
|
|
2977
|
-
offset:
|
|
2981
|
+
offset: b.value.length
|
|
2978
2982
|
});
|
|
2979
2983
|
if (Array.isArray(t) && t.length > 0) {
|
|
2980
|
-
let n = new Set(
|
|
2984
|
+
let n = new Set(b.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2981
2985
|
if (r.length === 0) {
|
|
2982
|
-
|
|
2986
|
+
v.value = !0;
|
|
2983
2987
|
return;
|
|
2984
2988
|
}
|
|
2985
|
-
let a = new Set(
|
|
2989
|
+
let a = new Set(S.value);
|
|
2986
2990
|
for (let e of r) a.add(e.id);
|
|
2987
|
-
if (
|
|
2991
|
+
if (S.value = a, b.value = [...b.value, ...r], e && s?.value) {
|
|
2988
2992
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
2989
2993
|
if (t.length > 0) {
|
|
2990
2994
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
2991
2995
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
2992
2996
|
}
|
|
2993
2997
|
}
|
|
2994
|
-
} else Array.isArray(t) && (
|
|
2998
|
+
} else Array.isArray(t) && (v.value = !0);
|
|
2995
2999
|
} finally {
|
|
2996
|
-
|
|
3000
|
+
g.value = !1;
|
|
2997
3001
|
}
|
|
2998
|
-
},
|
|
2999
|
-
if (l.value &&
|
|
3000
|
-
|
|
3002
|
+
}, L = (e) => {
|
|
3003
|
+
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
3004
|
+
C();
|
|
3001
3005
|
return;
|
|
3002
3006
|
}
|
|
3003
3007
|
if (!s) {
|
|
3004
3008
|
let t = c.value.indexOf(e.option.id);
|
|
3005
3009
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
3006
3010
|
}
|
|
3007
|
-
|
|
3008
|
-
},
|
|
3009
|
-
|
|
3011
|
+
N("handle-selected", e);
|
|
3012
|
+
}, R = (e) => {
|
|
3013
|
+
N("handle-selected", e);
|
|
3010
3014
|
};
|
|
3011
3015
|
return (n, r) => {
|
|
3012
3016
|
let s = ee("PvMenuItem", !0);
|
|
3013
|
-
return E(), o(t, null, [u(
|
|
3014
|
-
children:
|
|
3017
|
+
return E(), o(t, null, [u(Yi, _(T.value, {
|
|
3018
|
+
children: b.value,
|
|
3015
3019
|
menuOptionConfig: e.config,
|
|
3016
3020
|
queryText: e.queryText,
|
|
3017
3021
|
highlightSearchText: e.highlightSearchText,
|
|
3018
|
-
showChevron: P(l) &&
|
|
3019
|
-
chevronIcon:
|
|
3020
|
-
expanded:
|
|
3021
|
-
onHandleSelected:
|
|
3022
|
-
onToggleExpanded:
|
|
3023
|
-
selected:
|
|
3022
|
+
showChevron: P(l) && D.value,
|
|
3023
|
+
chevronIcon: j.value,
|
|
3024
|
+
expanded: h.value,
|
|
3025
|
+
onHandleSelected: L,
|
|
3026
|
+
onToggleExpanded: C,
|
|
3027
|
+
selected: M(i)
|
|
3024
3028
|
}), null, 16, [
|
|
3025
3029
|
"children",
|
|
3026
3030
|
"menuOptionConfig",
|
|
@@ -3030,13 +3034,13 @@ var ki = {
|
|
|
3030
3034
|
"chevronIcon",
|
|
3031
3035
|
"expanded",
|
|
3032
3036
|
"selected"
|
|
3033
|
-
]),
|
|
3037
|
+
]), A.value ? (E(), o("ul", {
|
|
3034
3038
|
key: 0,
|
|
3035
3039
|
role: "list",
|
|
3036
|
-
style: x(
|
|
3037
|
-
}, [(E(!0), o(t, null, k(
|
|
3040
|
+
style: x(w.value)
|
|
3041
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => (E(), o("li", {
|
|
3038
3042
|
key: t.id,
|
|
3039
|
-
"data-active":
|
|
3043
|
+
"data-active": M(t) ? "true" : null,
|
|
3040
3044
|
class: y(e.itemClass)
|
|
3041
3045
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
3042
3046
|
disabled: i.disabled || t.disabled,
|
|
@@ -3046,8 +3050,8 @@ var ki = {
|
|
|
3046
3050
|
queryText: e.queryText,
|
|
3047
3051
|
highlightSearchText: e.highlightSearchText,
|
|
3048
3052
|
level: e.level + 1,
|
|
3049
|
-
onHandleSelected:
|
|
3050
|
-
onSeeMore: r[1] ||= (e) =>
|
|
3053
|
+
onHandleSelected: R,
|
|
3054
|
+
onSeeMore: r[1] ||= (e) => N("see-more", e)
|
|
3051
3055
|
}), null, 16, [
|
|
3052
3056
|
"disabled",
|
|
3053
3057
|
"selectedIds",
|
|
@@ -3055,20 +3059,20 @@ var ki = {
|
|
|
3055
3059
|
"queryText",
|
|
3056
3060
|
"highlightSearchText",
|
|
3057
3061
|
"level"
|
|
3058
|
-
])], 10,
|
|
3062
|
+
])], 10, Xi))), 128)), te.value ? (E(), o("li", Zi, [u(Q, {
|
|
3059
3063
|
class: "pv-text-brand",
|
|
3060
3064
|
variant: "ghost",
|
|
3061
3065
|
label: "See more",
|
|
3062
|
-
loading:
|
|
3066
|
+
loading: g.value,
|
|
3063
3067
|
"data-testid": "pv-menu-item-see-more",
|
|
3064
|
-
onClick:
|
|
3068
|
+
onClick: F
|
|
3065
3069
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
3066
3070
|
};
|
|
3067
3071
|
}
|
|
3068
|
-
}),
|
|
3072
|
+
}), ea = {
|
|
3069
3073
|
role: "list",
|
|
3070
3074
|
class: "pv-popover-list"
|
|
3071
|
-
},
|
|
3075
|
+
}, ta = ["data-active", "data-testid"], na = { key: 0 }, ra = /* @__PURE__ */ d({
|
|
3072
3076
|
__name: "PvMenu",
|
|
3073
3077
|
props: /* @__PURE__ */ g({
|
|
3074
3078
|
options: {},
|
|
@@ -3081,8 +3085,7 @@ var ki = {
|
|
|
3081
3085
|
singleSelect: { type: Boolean },
|
|
3082
3086
|
enableCascadeSelection: { type: Boolean },
|
|
3083
3087
|
hasMoreOptions: { type: Boolean },
|
|
3084
|
-
readOnly: { type: Boolean }
|
|
3085
|
-
hideUnselectedInReadOnly: { type: Boolean }
|
|
3088
|
+
readOnly: { type: Boolean }
|
|
3086
3089
|
}, {
|
|
3087
3090
|
selectedItems: { default: () => [] },
|
|
3088
3091
|
selectedItemsModifiers: {}
|
|
@@ -3094,7 +3097,7 @@ var ki = {
|
|
|
3094
3097
|
l.value = e;
|
|
3095
3098
|
}), H(l, (e) => {
|
|
3096
3099
|
e !== c.value && (c.value = e);
|
|
3097
|
-
}), D(zi, l), D(Bi, r(() => !!i.enableCascadeSelection))
|
|
3100
|
+
}), D(zi, l), D(Bi, r(() => !!i.enableCascadeSelection));
|
|
3098
3101
|
let d = m(Vi, void 0), f = m(Wi, O(!1)), p = m(Hi, void 0), h = m(Ui, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
3099
3102
|
if (i.readOnly) return;
|
|
3100
3103
|
let t = e.option, n;
|
|
@@ -3131,13 +3134,13 @@ var ki = {
|
|
|
3131
3134
|
}, b = r(() => new Set(l.value.map((e) => e.id))), x = (e) => {
|
|
3132
3135
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
3133
3136
|
return !1;
|
|
3134
|
-
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C =
|
|
3135
|
-
return (n, r) => (E(), o("ul",
|
|
3137
|
+
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
3138
|
+
return (n, r) => (E(), o("ul", ea, [(E(!0), o(t, null, k(e.options, (t) => G((E(), o("li", {
|
|
3136
3139
|
key: t.id,
|
|
3137
3140
|
"data-active": S(t),
|
|
3138
3141
|
"data-testid": e.itemTestId,
|
|
3139
3142
|
class: y(e.itemClass)
|
|
3140
|
-
}, [u(
|
|
3143
|
+
}, [u($i, _({ ref_for: !0 }, t, {
|
|
3141
3144
|
disabled: i.readOnly || t.disabled,
|
|
3142
3145
|
config: e.config,
|
|
3143
3146
|
itemClass: e.itemClass,
|
|
@@ -3149,7 +3152,7 @@ var ki = {
|
|
|
3149
3152
|
"config",
|
|
3150
3153
|
"itemClass",
|
|
3151
3154
|
"queryText"
|
|
3152
|
-
])], 10,
|
|
3155
|
+
])], 10, ta)), [[V, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", na, [u(Q, {
|
|
3153
3156
|
class: "pv-text-brand",
|
|
3154
3157
|
variant: "ghost",
|
|
3155
3158
|
label: "See more",
|
|
@@ -3159,34 +3162,34 @@ var ki = {
|
|
|
3159
3162
|
onClick: r[1] ||= (e) => s("see-more", { parentId: void 0 })
|
|
3160
3163
|
}, null, 8, ["loading", "disabled"])])) : a("", !0)]));
|
|
3161
3164
|
}
|
|
3162
|
-
}),
|
|
3165
|
+
}), ia = {
|
|
3163
3166
|
key: 0,
|
|
3164
3167
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3165
|
-
},
|
|
3168
|
+
}, aa = {
|
|
3166
3169
|
key: 1,
|
|
3167
3170
|
class: "pv-inset-square-8"
|
|
3168
|
-
},
|
|
3171
|
+
}, oa = {
|
|
3169
3172
|
key: 1,
|
|
3170
3173
|
class: "pv-text-body-sm pv-inset-inline",
|
|
3171
3174
|
style: {
|
|
3172
3175
|
color: "#89989b",
|
|
3173
3176
|
"--inset-size": "8px"
|
|
3174
3177
|
}
|
|
3175
|
-
},
|
|
3178
|
+
}, sa = {
|
|
3176
3179
|
key: 2,
|
|
3177
3180
|
class: "pv-border-top",
|
|
3178
3181
|
style: { margin: "8px 0" }
|
|
3179
|
-
},
|
|
3182
|
+
}, ca = {
|
|
3180
3183
|
key: 3,
|
|
3181
3184
|
class: "pv-flex pv-inset-square-8",
|
|
3182
3185
|
style: { "justify-content": "center" }
|
|
3183
|
-
},
|
|
3186
|
+
}, la = {
|
|
3184
3187
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
3185
3188
|
style: {
|
|
3186
3189
|
"--flex-justify": "space-between",
|
|
3187
3190
|
"--bottom": "0"
|
|
3188
3191
|
}
|
|
3189
|
-
},
|
|
3192
|
+
}, ua = /* @__PURE__ */ d({
|
|
3190
3193
|
__name: "PvMultiSelectButton",
|
|
3191
3194
|
props: /* @__PURE__ */ g({
|
|
3192
3195
|
companyLogo: {},
|
|
@@ -3211,10 +3214,6 @@ var ki = {
|
|
|
3211
3214
|
type: Boolean,
|
|
3212
3215
|
default: !1
|
|
3213
3216
|
},
|
|
3214
|
-
hideUnselectedInReadOnly: {
|
|
3215
|
-
type: Boolean,
|
|
3216
|
-
default: !1
|
|
3217
|
-
},
|
|
3218
3217
|
enableCascadeSelection: {
|
|
3219
3218
|
type: Boolean,
|
|
3220
3219
|
default: !1
|
|
@@ -3462,7 +3461,7 @@ var ki = {
|
|
|
3462
3461
|
...e.popoverCssProperties
|
|
3463
3462
|
})
|
|
3464
3463
|
}, [
|
|
3465
|
-
e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
3464
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", ia, [u(Wr, {
|
|
3466
3465
|
ref: "searchInputRef",
|
|
3467
3466
|
"model-value": z.value,
|
|
3468
3467
|
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
@@ -3474,10 +3473,10 @@ var ki = {
|
|
|
3474
3473
|
"placeholder",
|
|
3475
3474
|
"disabled"
|
|
3476
3475
|
])])),
|
|
3477
|
-
n.$slots.header || P(ge) ? (E(), o("div",
|
|
3476
|
+
n.$slots.header || P(ge) ? (E(), o("div", aa, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
3478
3477
|
se.value.length > 0 ? (E(), o(t, { key: 2 }, [Y.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3479
|
-
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span",
|
|
3480
|
-
u(
|
|
3478
|
+
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", oa, N(t), 1)),
|
|
3479
|
+
u(ra, {
|
|
3481
3480
|
selectedItems: K.value,
|
|
3482
3481
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
3483
3482
|
options: i,
|
|
@@ -3490,7 +3489,6 @@ var ki = {
|
|
|
3490
3489
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3491
3490
|
hasMoreOptions: s === fe.value.length - 1 && C.value && !e.isLoading,
|
|
3492
3491
|
readOnly: e.readOnly,
|
|
3493
|
-
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
3494
3492
|
onSeeMore: O
|
|
3495
3493
|
}, null, 8, [
|
|
3496
3494
|
"selectedItems",
|
|
@@ -3502,11 +3500,10 @@ var ki = {
|
|
|
3502
3500
|
"isSeeMoreLoading",
|
|
3503
3501
|
"enableCascadeSelection",
|
|
3504
3502
|
"hasMoreOptions",
|
|
3505
|
-
"readOnly"
|
|
3506
|
-
"hideUnselectedInReadOnly"
|
|
3503
|
+
"readOnly"
|
|
3507
3504
|
]),
|
|
3508
|
-
fe.value && s !== fe.value.length - 1 ? (E(), o("div",
|
|
3509
|
-
]))), 128)) : (E(), i(
|
|
3505
|
+
fe.value && s !== fe.value.length - 1 ? (E(), o("div", sa)) : a("", !0)
|
|
3506
|
+
]))), 128)) : (E(), i(ra, {
|
|
3510
3507
|
key: 1,
|
|
3511
3508
|
selectedItems: K.value,
|
|
3512
3509
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
@@ -3519,7 +3516,6 @@ var ki = {
|
|
|
3519
3516
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3520
3517
|
hasMoreOptions: C.value && !e.isLoading,
|
|
3521
3518
|
readOnly: e.readOnly,
|
|
3522
|
-
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
3523
3519
|
onSeeMore: O
|
|
3524
3520
|
}, null, 8, [
|
|
3525
3521
|
"selectedItems",
|
|
@@ -3530,11 +3526,10 @@ var ki = {
|
|
|
3530
3526
|
"enableCascadeSelection",
|
|
3531
3527
|
"isSeeMoreLoading",
|
|
3532
3528
|
"hasMoreOptions",
|
|
3533
|
-
"readOnly"
|
|
3534
|
-
"hideUnselectedInReadOnly"
|
|
3529
|
+
"readOnly"
|
|
3535
3530
|
]))], 64)) : a("", !0),
|
|
3536
|
-
e.isLoading ? (E(), o("div",
|
|
3537
|
-
s("div",
|
|
3531
|
+
e.isLoading ? (E(), o("div", ca, [u(Oe, { variant: "dark" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [P(_e) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(Si, { key: 1 }))], 64)) : a("", !0),
|
|
3532
|
+
s("div", la, [P(ve) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(ui, {
|
|
3538
3533
|
key: 1,
|
|
3539
3534
|
variant: e.menuActionsVariant,
|
|
3540
3535
|
disabled: e.isLoading,
|
|
@@ -3547,10 +3542,10 @@ var ki = {
|
|
|
3547
3542
|
_: 3
|
|
3548
3543
|
}, 16, ["modelValue", "offset"]));
|
|
3549
3544
|
}
|
|
3550
|
-
}),
|
|
3545
|
+
}), da = {
|
|
3551
3546
|
key: 0,
|
|
3552
3547
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3553
|
-
},
|
|
3548
|
+
}, fa = /* @__PURE__ */ d({
|
|
3554
3549
|
__name: "PvSelectButton",
|
|
3555
3550
|
props: /* @__PURE__ */ g({
|
|
3556
3551
|
defaultOpen: { type: Boolean },
|
|
@@ -3686,12 +3681,12 @@ var ki = {
|
|
|
3686
3681
|
class: "pv-popover",
|
|
3687
3682
|
"data-test-id": "pv-popover",
|
|
3688
3683
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
3689
|
-
}, [e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
3684
|
+
}, [e.disableSearchInput ? a("", !0) : (E(), o("div", da, [u(Wr, {
|
|
3690
3685
|
"model-value": p.value,
|
|
3691
3686
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
3692
3687
|
class: "pv-stack-4",
|
|
3693
3688
|
placeholder: e.searchPlaceholder
|
|
3694
|
-
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(
|
|
3689
|
+
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(ra, {
|
|
3695
3690
|
key: 1,
|
|
3696
3691
|
selectedItems: S.value,
|
|
3697
3692
|
"onUpdate:selectedItems": n[1] ||= (e) => S.value = e,
|
|
@@ -3709,18 +3704,18 @@ var ki = {
|
|
|
3709
3704
|
_: 1
|
|
3710
3705
|
}, 16, ["modelValue"]));
|
|
3711
3706
|
}
|
|
3712
|
-
}),
|
|
3707
|
+
}), pa = {
|
|
3713
3708
|
short: 5,
|
|
3714
3709
|
long: 7
|
|
3715
|
-
},
|
|
3716
|
-
if (n <=
|
|
3710
|
+
}, ma = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
3711
|
+
if (n <= pa[e]) return Array.from({ length: n }, (e, t) => ({
|
|
3717
3712
|
page: t + 1,
|
|
3718
3713
|
label: (t + 1).toString()
|
|
3719
3714
|
}));
|
|
3720
3715
|
let r = [{
|
|
3721
3716
|
page: 1,
|
|
3722
3717
|
label: "1"
|
|
3723
|
-
}], i =
|
|
3718
|
+
}], i = pa[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
3724
3719
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
3725
3720
|
page: 0,
|
|
3726
3721
|
label: "..."
|
|
@@ -3739,11 +3734,11 @@ var ki = {
|
|
|
3739
3734
|
page: n,
|
|
3740
3735
|
label: n.toString()
|
|
3741
3736
|
}), r;
|
|
3742
|
-
} }),
|
|
3737
|
+
} }), ha = ["data-style"], ga = ["data-testid", "aria-current"], _a = {
|
|
3743
3738
|
key: 0,
|
|
3744
3739
|
class: "dots-button",
|
|
3745
3740
|
disabled: ""
|
|
3746
|
-
},
|
|
3741
|
+
}, va = ["onClick"], ya = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
3747
3742
|
__name: "PvPagination",
|
|
3748
3743
|
props: /* @__PURE__ */ g({
|
|
3749
3744
|
size: { default: "lg" },
|
|
@@ -3756,7 +3751,7 @@ var ki = {
|
|
|
3756
3751
|
}),
|
|
3757
3752
|
emits: ["update:modelValue"],
|
|
3758
3753
|
setup(e) {
|
|
3759
|
-
let { getPaginations: n } =
|
|
3754
|
+
let { getPaginations: n } = ma({ variant: e.variant }), r = I(e, "modelValue");
|
|
3760
3755
|
return (i, a) => (E(), o("ol", {
|
|
3761
3756
|
role: "list",
|
|
3762
3757
|
class: "pv-pagination",
|
|
@@ -3778,10 +3773,10 @@ var ki = {
|
|
|
3778
3773
|
key: e.page,
|
|
3779
3774
|
"data-testid": `pagination-button-${e.page}`,
|
|
3780
3775
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
3781
|
-
}, [e.label === "..." ? (E(), o("button",
|
|
3776
|
+
}, [e.label === "..." ? (E(), o("button", _a, N(e.label), 1)) : (E(), o("button", {
|
|
3782
3777
|
key: 1,
|
|
3783
3778
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
3784
|
-
}, N(e.label), 9,
|
|
3779
|
+
}, N(e.label), 9, va))], 8, ga))), 128)),
|
|
3785
3780
|
s("li", null, [u(Q, {
|
|
3786
3781
|
"data-testid": "pagination-right-arrow-icon",
|
|
3787
3782
|
disabled: r.value === e.maxPages,
|
|
@@ -3790,14 +3785,14 @@ var ki = {
|
|
|
3790
3785
|
variant: "ghost",
|
|
3791
3786
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
3792
3787
|
}, null, 8, ["disabled"])])
|
|
3793
|
-
], 8,
|
|
3788
|
+
], 8, ha));
|
|
3794
3789
|
}
|
|
3795
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
3790
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), ba = ["for"], xa = [
|
|
3796
3791
|
"checked",
|
|
3797
3792
|
"type",
|
|
3798
3793
|
"value",
|
|
3799
3794
|
"id"
|
|
3800
|
-
],
|
|
3795
|
+
], Sa = /* @__PURE__ */ d({
|
|
3801
3796
|
__name: "PvSelectableCard",
|
|
3802
3797
|
props: {
|
|
3803
3798
|
variant: { default: "default" },
|
|
@@ -3819,34 +3814,34 @@ var ki = {
|
|
|
3819
3814
|
type: e.deselect ? "checkbox" : "radio",
|
|
3820
3815
|
value: e.value,
|
|
3821
3816
|
id: t.value
|
|
3822
|
-
}, null, 8,
|
|
3817
|
+
}, null, 8, xa), A(n.$slots, "default")], 10, ba));
|
|
3823
3818
|
}
|
|
3824
|
-
}),
|
|
3819
|
+
}), Ca = { class: "pv-layout-two-sidebar" }, wa = ["data-hidden"], Ta = { "data-layout": "main-section" }, Ea = ["data-hidden"], Da = /* @__PURE__ */ d({
|
|
3825
3820
|
__name: "PvSidePanel",
|
|
3826
3821
|
props: {
|
|
3827
3822
|
showLeftSidebar: { type: Boolean },
|
|
3828
3823
|
showRightSidebar: { type: Boolean }
|
|
3829
3824
|
},
|
|
3830
3825
|
setup(e) {
|
|
3831
|
-
return (t, n) => (E(), o("div",
|
|
3826
|
+
return (t, n) => (E(), o("div", Ca, [
|
|
3832
3827
|
s("div", {
|
|
3833
3828
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
3834
3829
|
"data-testid": "pv-side-panel-left",
|
|
3835
3830
|
"data-layout": "left-sidebar"
|
|
3836
|
-
}, [A(t.$slots, "left-sidebar")], 8,
|
|
3837
|
-
s("div",
|
|
3831
|
+
}, [A(t.$slots, "left-sidebar")], 8, wa),
|
|
3832
|
+
s("div", Ta, [A(t.$slots, "main")]),
|
|
3838
3833
|
s("div", {
|
|
3839
3834
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
3840
3835
|
"data-testid": "pv-side-panel-right",
|
|
3841
3836
|
"data-layout": "right-sidebar"
|
|
3842
|
-
}, [A(t.$slots, "right-sidebar")], 8,
|
|
3837
|
+
}, [A(t.$slots, "right-sidebar")], 8, Ea)
|
|
3843
3838
|
]));
|
|
3844
3839
|
}
|
|
3845
|
-
}),
|
|
3840
|
+
}), Oa = ["data-style"], ka = [
|
|
3846
3841
|
"placeholder",
|
|
3847
3842
|
"disabled",
|
|
3848
3843
|
"name"
|
|
3849
|
-
],
|
|
3844
|
+
], Aa = /* @__PURE__ */ d({
|
|
3850
3845
|
__name: "PvGhostInput",
|
|
3851
3846
|
props: /* @__PURE__ */ g({
|
|
3852
3847
|
variant: { default: "h1" },
|
|
@@ -3908,7 +3903,7 @@ var ki = {
|
|
|
3908
3903
|
placeholder: e.placeholder,
|
|
3909
3904
|
disabled: e.disabled,
|
|
3910
3905
|
name: n[e.variant]
|
|
3911
|
-
}), null, 16,
|
|
3906
|
+
}), null, 16, ka), [[B, l.value]]),
|
|
3912
3907
|
e.showEditIcon ? (E(), i(Q, {
|
|
3913
3908
|
key: 0,
|
|
3914
3909
|
"left-icon": "edit",
|
|
@@ -3916,16 +3911,16 @@ var ki = {
|
|
|
3916
3911
|
variant: "ghost",
|
|
3917
3912
|
onClick: d
|
|
3918
3913
|
})) : a("", !0)
|
|
3919
|
-
], 8,
|
|
3914
|
+
], 8, Oa));
|
|
3920
3915
|
}
|
|
3921
|
-
}),
|
|
3916
|
+
}), ja = {
|
|
3922
3917
|
key: 0,
|
|
3923
3918
|
class: "pv-text-title-lg"
|
|
3924
|
-
},
|
|
3919
|
+
}, Ma = ["id"], Na = { class: "pv-flex" }, Pa = ["id"], Fa = {
|
|
3925
3920
|
key: 0,
|
|
3926
3921
|
class: "pv-border-left",
|
|
3927
3922
|
style: { "padding-inline-start": "0.5rem" }
|
|
3928
|
-
},
|
|
3923
|
+
}, Ia = /* @__PURE__ */ d({
|
|
3929
3924
|
__name: "PvHeader",
|
|
3930
3925
|
props: {
|
|
3931
3926
|
title: {},
|
|
@@ -3942,21 +3937,21 @@ var ki = {
|
|
|
3942
3937
|
return (t, n) => (E(), o("div", {
|
|
3943
3938
|
class: y(["pv-inset-square pv-flex pv-space-between pv-border-bottom pv-surface", { "pv-sticky": e.sticky }]),
|
|
3944
3939
|
style: { "--inset-size": "0.5rem 1rem" }
|
|
3945
|
-
}, [e.title ? (E(), o("span",
|
|
3940
|
+
}, [e.title ? (E(), o("span", ja, N(e.title), 1)) : (E(), o("div", {
|
|
3946
3941
|
key: 1,
|
|
3947
3942
|
id: e.headerTitleId,
|
|
3948
3943
|
class: "pv-flex"
|
|
3949
|
-
}, [A(t.$slots, "left")], 8,
|
|
3944
|
+
}, [A(t.$slots, "left")], 8, Ma)), s("div", Na, [s("div", {
|
|
3950
3945
|
id: e.headerActionsId,
|
|
3951
3946
|
class: "pv-flex"
|
|
3952
|
-
}, [A(t.$slots, "right")], 8,
|
|
3947
|
+
}, [A(t.$slots, "right")], 8, Pa), e.showAskTqButton ? (E(), o("div", Fa, [u(zn, {
|
|
3953
3948
|
id: e.askTqButtonId,
|
|
3954
3949
|
label: "AskTQ",
|
|
3955
3950
|
size: "lg",
|
|
3956
3951
|
"hide-icon": ""
|
|
3957
3952
|
}, null, 8, ["id"])])) : a("", !0)])], 2));
|
|
3958
3953
|
}
|
|
3959
|
-
}),
|
|
3954
|
+
}), La = { class: "pv-flex" }, Ra = /* @__PURE__ */ d({
|
|
3960
3955
|
__name: "PvCompanyLabel",
|
|
3961
3956
|
props: {
|
|
3962
3957
|
size: { default: "md" },
|
|
@@ -3969,15 +3964,15 @@ var ki = {
|
|
|
3969
3964
|
sm: "pv-text-body-md",
|
|
3970
3965
|
md: "pv-text-body-md"
|
|
3971
3966
|
};
|
|
3972
|
-
return (n, r) => (E(), o("div",
|
|
3967
|
+
return (n, r) => (E(), o("div", La, [u(_r, {
|
|
3973
3968
|
name: e.logo ? e.logo : e.label,
|
|
3974
3969
|
size: e.size
|
|
3975
3970
|
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, N(e.label), 3)]));
|
|
3976
3971
|
}
|
|
3977
|
-
}),
|
|
3972
|
+
}), za = ["data-more"], Ba = ["src", "alt"], Va = {
|
|
3978
3973
|
key: 2,
|
|
3979
3974
|
class: "pv-avatar-sm"
|
|
3980
|
-
},
|
|
3975
|
+
}, Ha = /* @__PURE__ */ d({
|
|
3981
3976
|
__name: "PvAvatarGroup",
|
|
3982
3977
|
props: {
|
|
3983
3978
|
items: {},
|
|
@@ -4000,15 +3995,15 @@ var ki = {
|
|
|
4000
3995
|
key: 1,
|
|
4001
3996
|
src: e.image,
|
|
4002
3997
|
alt: e.alt ?? ""
|
|
4003
|
-
}, null, 8,
|
|
3998
|
+
}, null, 8, Ba)) : (E(), o("div", Va))]))), 128))], 8, za));
|
|
4004
3999
|
}
|
|
4005
|
-
}),
|
|
4000
|
+
}), Ua = ["for"], Wa = [
|
|
4006
4001
|
"id",
|
|
4007
4002
|
"type",
|
|
4008
4003
|
"value",
|
|
4009
4004
|
"name",
|
|
4010
4005
|
"disabled"
|
|
4011
|
-
],
|
|
4006
|
+
], Ga = { key: 1 }, Ka = /* @__PURE__ */ d({
|
|
4012
4007
|
__name: "PvToggleButton",
|
|
4013
4008
|
props: /* @__PURE__ */ g({
|
|
4014
4009
|
size: { default: "xl" },
|
|
@@ -4058,12 +4053,12 @@ var ki = {
|
|
|
4058
4053
|
value: e.value,
|
|
4059
4054
|
name: e.name,
|
|
4060
4055
|
disabled: e.disabled
|
|
4061
|
-
}, null, 8,
|
|
4056
|
+
}, null, 8, Wa), [[ne, n.value]]),
|
|
4062
4057
|
e.leftIcon ? (E(), i(X, {
|
|
4063
4058
|
key: 0,
|
|
4064
4059
|
name: e.leftIcon
|
|
4065
4060
|
}, null, 8, ["name"])) : a("", !0),
|
|
4066
|
-
e.label ? (E(), o("span",
|
|
4061
|
+
e.label ? (E(), o("span", Ga, N(e.label), 1)) : a("", !0),
|
|
4067
4062
|
e.rightIcon ? (E(), i(X, {
|
|
4068
4063
|
key: 2,
|
|
4069
4064
|
name: e.rightIcon
|
|
@@ -4073,15 +4068,15 @@ var ki = {
|
|
|
4073
4068
|
value: e.rightCounterBadge,
|
|
4074
4069
|
variant: u.value
|
|
4075
4070
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
4076
|
-
], 10,
|
|
4071
|
+
], 10, Ua));
|
|
4077
4072
|
}
|
|
4078
|
-
}),
|
|
4073
|
+
}), qa = { class: "pv-flex" }, Ja = [
|
|
4079
4074
|
"name",
|
|
4080
4075
|
"value",
|
|
4081
4076
|
"checked",
|
|
4082
4077
|
"disabled",
|
|
4083
4078
|
"onChange"
|
|
4084
|
-
],
|
|
4079
|
+
], Ya = { key: 1 }, Xa = /* @__PURE__ */ d({
|
|
4085
4080
|
__name: "PvToggleGroup",
|
|
4086
4081
|
props: /* @__PURE__ */ g({
|
|
4087
4082
|
disabled: { type: Boolean },
|
|
@@ -4103,7 +4098,7 @@ var ki = {
|
|
|
4103
4098
|
r.value = e;
|
|
4104
4099
|
}
|
|
4105
4100
|
};
|
|
4106
|
-
return (n, u) => (E(), o("div",
|
|
4101
|
+
return (n, u) => (E(), o("div", qa, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
4107
4102
|
key: t.value,
|
|
4108
4103
|
description: e.hideLabels ? t.label : ""
|
|
4109
4104
|
}, {
|
|
@@ -4116,21 +4111,21 @@ var ki = {
|
|
|
4116
4111
|
class: "pv-radio",
|
|
4117
4112
|
disabled: e.disabled || t.disabled,
|
|
4118
4113
|
onChange: (e) => l(t)
|
|
4119
|
-
}, null, 40,
|
|
4114
|
+
}, null, 40, Ja),
|
|
4120
4115
|
t.icon ? (E(), i(X, {
|
|
4121
4116
|
key: 0,
|
|
4122
4117
|
name: t.icon
|
|
4123
4118
|
}, null, 8, ["name"])) : a("", !0),
|
|
4124
|
-
e.hideLabels ? a("", !0) : (E(), o("span",
|
|
4119
|
+
e.hideLabels ? a("", !0) : (E(), o("span", Ya, N(t.label), 1))
|
|
4125
4120
|
], 2)]),
|
|
4126
4121
|
_: 2
|
|
4127
4122
|
}, 1032, ["description"]))), 128))]));
|
|
4128
4123
|
}
|
|
4129
|
-
}),
|
|
4124
|
+
}), Za = [
|
|
4130
4125
|
"aria-label",
|
|
4131
4126
|
"disabled",
|
|
4132
4127
|
"indeterminate"
|
|
4133
|
-
],
|
|
4128
|
+
], Qa = /* @__PURE__ */ d({
|
|
4134
4129
|
__name: "PvCheckbox",
|
|
4135
4130
|
props: /* @__PURE__ */ g({
|
|
4136
4131
|
ariaLabel: {},
|
|
@@ -4151,13 +4146,13 @@ var ki = {
|
|
|
4151
4146
|
"aria-label": e.ariaLabel,
|
|
4152
4147
|
disabled: e.disabled,
|
|
4153
4148
|
indeterminate: e.indeterminate
|
|
4154
|
-
}, null, 8,
|
|
4149
|
+
}, null, 8, Za)), [[z, t.value]]);
|
|
4155
4150
|
}
|
|
4156
|
-
}),
|
|
4151
|
+
}), $a = ["aria-label", "aria-labelledby"], eo = ["id"], to = [
|
|
4157
4152
|
"name",
|
|
4158
4153
|
"value",
|
|
4159
4154
|
"disabled"
|
|
4160
|
-
],
|
|
4155
|
+
], no = /* @__PURE__ */ d({
|
|
4161
4156
|
__name: "PvRadioGroup",
|
|
4162
4157
|
props: /* @__PURE__ */ g({
|
|
4163
4158
|
options: { default: () => [] },
|
|
@@ -4188,7 +4183,7 @@ var ki = {
|
|
|
4188
4183
|
key: 0,
|
|
4189
4184
|
id: P(u),
|
|
4190
4185
|
class: "pv-label pv-stack-8"
|
|
4191
|
-
}, N(e.label), 9,
|
|
4186
|
+
}, N(e.label), 9, eo)) : a("", !0), s("div", {
|
|
4192
4187
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
4193
4188
|
style: x(f.value)
|
|
4194
4189
|
}, [(E(!0), o(t, null, k(e.options, (t) => (E(), o("label", {
|
|
@@ -4201,9 +4196,9 @@ var ki = {
|
|
|
4201
4196
|
name: d.value,
|
|
4202
4197
|
value: t.value,
|
|
4203
4198
|
disabled: e.disabled || t.disabled
|
|
4204
|
-
}, null, 8,
|
|
4199
|
+
}, null, 8, to), [[re, i.value]]), l(" " + N(t.label), 1)]))), 128))], 6)], 8, $a));
|
|
4205
4200
|
}
|
|
4206
|
-
}),
|
|
4201
|
+
}), ro = /* @__PURE__ */ d({
|
|
4207
4202
|
__name: "PvSprite",
|
|
4208
4203
|
props: {
|
|
4209
4204
|
src: {},
|
|
@@ -4224,7 +4219,7 @@ var ki = {
|
|
|
4224
4219
|
id: "pv-sprite-content"
|
|
4225
4220
|
}, null, -1)]));
|
|
4226
4221
|
}
|
|
4227
|
-
}),
|
|
4222
|
+
}), io = /* @__PURE__ */ d({
|
|
4228
4223
|
__name: "PvSkeleton",
|
|
4229
4224
|
props: {
|
|
4230
4225
|
size: { default: "md" },
|
|
@@ -4251,18 +4246,18 @@ var ki = {
|
|
|
4251
4246
|
"width"
|
|
4252
4247
|
]));
|
|
4253
4248
|
}
|
|
4254
|
-
}),
|
|
4249
|
+
}), ao = ["for"], oo = {
|
|
4255
4250
|
key: 0,
|
|
4256
4251
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
4257
4252
|
style: { "--inset-size": "6px 10px" }
|
|
4258
|
-
},
|
|
4253
|
+
}, so = { class: "pv-relative pv-flex-item" }, co = [
|
|
4259
4254
|
"disabled",
|
|
4260
4255
|
"type",
|
|
4261
4256
|
"placeholder",
|
|
4262
4257
|
"id",
|
|
4263
4258
|
"data-invalid",
|
|
4264
4259
|
"step"
|
|
4265
|
-
],
|
|
4260
|
+
], lo = /* @__PURE__ */ d({
|
|
4266
4261
|
__name: "PvInput",
|
|
4267
4262
|
props: /* @__PURE__ */ g({
|
|
4268
4263
|
showLabel: { type: Boolean },
|
|
@@ -4289,8 +4284,8 @@ var ki = {
|
|
|
4289
4284
|
"data-testid": "pv-input-label",
|
|
4290
4285
|
class: "pv-label pv-stack-8",
|
|
4291
4286
|
for: e.id
|
|
4292
|
-
}, [A(n.$slots, "label")], 8,
|
|
4293
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div",
|
|
4287
|
+
}, [A(n.$slots, "label")], 8, ao)) : a("", !0),
|
|
4288
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (E(), o("div", oo, N(e.prefixLabel), 1)) : a("", !0), s("div", so, [e.inputIcon ? (E(), i(X, {
|
|
4294
4289
|
key: 0,
|
|
4295
4290
|
class: "pv-absolute input-icon-position",
|
|
4296
4291
|
name: e.inputIcon
|
|
@@ -4308,7 +4303,7 @@ var ki = {
|
|
|
4308
4303
|
id: e.id,
|
|
4309
4304
|
"data-invalid": e.error ? !0 : void 0,
|
|
4310
4305
|
step: e.step
|
|
4311
|
-
}), null, 16,
|
|
4306
|
+
}), null, 16, co), [[ne, c.value]])])], 2),
|
|
4312
4307
|
e.lowerLabel ? (E(), o("p", {
|
|
4313
4308
|
key: 1,
|
|
4314
4309
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4320,7 +4315,7 @@ var ki = {
|
|
|
4320
4315
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4321
4316
|
], 64));
|
|
4322
4317
|
}
|
|
4323
|
-
}),
|
|
4318
|
+
}), uo = ["data-rating"], fo = ["value"], po = /* @__PURE__ */ d({
|
|
4324
4319
|
__name: "PvRating",
|
|
4325
4320
|
props: {
|
|
4326
4321
|
variant: { default: "dot" },
|
|
@@ -4339,9 +4334,9 @@ var ki = {
|
|
|
4339
4334
|
min: "0",
|
|
4340
4335
|
max: "5",
|
|
4341
4336
|
value: e.value
|
|
4342
|
-
}, "4.0 stars", 8,
|
|
4337
|
+
}, "4.0 stars", 8, fo)], 12, uo));
|
|
4343
4338
|
}
|
|
4344
|
-
}),
|
|
4339
|
+
}), mo = /* @__PURE__ */ d({
|
|
4345
4340
|
__name: "PvCard",
|
|
4346
4341
|
props: {
|
|
4347
4342
|
href: {},
|
|
@@ -4367,34 +4362,34 @@ var ki = {
|
|
|
4367
4362
|
"class"
|
|
4368
4363
|
]));
|
|
4369
4364
|
}
|
|
4370
|
-
}),
|
|
4365
|
+
}), ho = /* @__PURE__ */ d({
|
|
4371
4366
|
__name: "PvWidget",
|
|
4372
4367
|
setup(e) {
|
|
4373
|
-
return (e, t) => (E(), i(
|
|
4368
|
+
return (e, t) => (E(), i(mo, { class: "pv-inset-square-16" }, {
|
|
4374
4369
|
default: W(() => [A(e.$slots, "default")]),
|
|
4375
4370
|
_: 3
|
|
4376
4371
|
}));
|
|
4377
4372
|
}
|
|
4378
|
-
}),
|
|
4373
|
+
}), go = {
|
|
4379
4374
|
class: "pv-flex-vertical",
|
|
4380
4375
|
style: {
|
|
4381
4376
|
"--flex-align": "flex-start",
|
|
4382
4377
|
"--flex-gap": "0.25rem"
|
|
4383
4378
|
}
|
|
4384
|
-
},
|
|
4379
|
+
}, _o = {
|
|
4385
4380
|
key: 0,
|
|
4386
4381
|
class: "pv-flex",
|
|
4387
4382
|
style: { "--flex-gap": "0.25rem" }
|
|
4388
|
-
},
|
|
4383
|
+
}, vo = { class: "pv-text-body-sm" }, yo = {
|
|
4389
4384
|
key: 1,
|
|
4390
4385
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
4391
|
-
},
|
|
4386
|
+
}, bo = {
|
|
4392
4387
|
key: 2,
|
|
4393
4388
|
class: "pv-heading-2"
|
|
4394
|
-
},
|
|
4389
|
+
}, xo = {
|
|
4395
4390
|
key: 3,
|
|
4396
4391
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
4397
|
-
},
|
|
4392
|
+
}, So = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4398
4393
|
__name: "PvInsightCard",
|
|
4399
4394
|
props: {
|
|
4400
4395
|
icon: { default: "ai" },
|
|
@@ -4414,22 +4409,22 @@ var ki = {
|
|
|
4414
4409
|
emits: ["click", "icon-click"],
|
|
4415
4410
|
setup(e) {
|
|
4416
4411
|
let t = e, n = r(() => t.icon || t.insight);
|
|
4417
|
-
return (t, r) => (E(), i(
|
|
4412
|
+
return (t, r) => (E(), i(mo, {
|
|
4418
4413
|
variant: "secondary",
|
|
4419
4414
|
interactive: e.interactive,
|
|
4420
4415
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
4421
4416
|
class: "pv-relative"
|
|
4422
4417
|
}, {
|
|
4423
|
-
default: W(() => [s("div",
|
|
4424
|
-
n.value ? (E(), o("div",
|
|
4418
|
+
default: W(() => [s("div", go, [
|
|
4419
|
+
n.value ? (E(), o("div", _o, [e.icon ? (E(), i(X, {
|
|
4425
4420
|
key: 0,
|
|
4426
4421
|
style: { color: "#218c88" },
|
|
4427
4422
|
name: e.icon,
|
|
4428
4423
|
size: 12
|
|
4429
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
4430
|
-
e.upperLabel ? (E(), o("span",
|
|
4431
|
-
e.title ? (E(), o("span",
|
|
4432
|
-
e.description ? (E(), o("span",
|
|
4424
|
+
}, null, 8, ["name"])) : a("", !0), s("span", vo, N(e.insight), 1)])) : a("", !0),
|
|
4425
|
+
e.upperLabel ? (E(), o("span", yo, N(e.upperLabel), 1)) : a("", !0),
|
|
4426
|
+
e.title ? (E(), o("span", bo, N(e.title), 1)) : a("", !0),
|
|
4427
|
+
e.description ? (E(), o("span", xo, N(e.description), 1)) : a("", !0)
|
|
4433
4428
|
]), e.showButton ? (E(), i(Q, {
|
|
4434
4429
|
key: 0,
|
|
4435
4430
|
"left-icon": "new-tab",
|
|
@@ -4442,7 +4437,7 @@ var ki = {
|
|
|
4442
4437
|
_: 1
|
|
4443
4438
|
}, 8, ["interactive"]));
|
|
4444
4439
|
}
|
|
4445
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
4440
|
+
}), [["__scopeId", "data-v-c1185c07"]]), Co = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4446
4441
|
__name: "PvExpandableContent",
|
|
4447
4442
|
props: {
|
|
4448
4443
|
lines: { default: 4 },
|
|
@@ -4480,7 +4475,7 @@ var ki = {
|
|
|
4480
4475
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
4481
4476
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
4482
4477
|
}
|
|
4483
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
4478
|
+
}), [["__scopeId", "data-v-06cc192f"]]), wo = { class: "pv-text-body-md" }, To = /* @__PURE__ */ d({
|
|
4484
4479
|
__name: "PvToast",
|
|
4485
4480
|
props: {
|
|
4486
4481
|
variant: { default: "info" },
|
|
@@ -4505,7 +4500,7 @@ var ki = {
|
|
|
4505
4500
|
name: e.icon ? e.icon : n[e.variant],
|
|
4506
4501
|
size: 20
|
|
4507
4502
|
}, null, 8, ["name"]),
|
|
4508
|
-
s("p",
|
|
4503
|
+
s("p", wo, N(e.label), 1),
|
|
4509
4504
|
A(r.$slots, "default"),
|
|
4510
4505
|
u(Q, {
|
|
4511
4506
|
variant: "ghost",
|
|
@@ -4517,25 +4512,25 @@ var ki = {
|
|
|
4517
4512
|
}, null, 8, ["inverse"])
|
|
4518
4513
|
], 2));
|
|
4519
4514
|
}
|
|
4520
|
-
}),
|
|
4515
|
+
}), Eo = ["data-style"], Do = /* @__PURE__ */ d({
|
|
4521
4516
|
__name: "PvActionBar",
|
|
4522
4517
|
props: { variant: { default: "white" } },
|
|
4523
4518
|
setup(e) {
|
|
4524
4519
|
return (t, n) => (E(), o("div", {
|
|
4525
4520
|
class: "pv-action-bar-container",
|
|
4526
4521
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
4527
|
-
}, [A(t.$slots, "default")], 8,
|
|
4522
|
+
}, [A(t.$slots, "default")], 8, Eo));
|
|
4528
4523
|
}
|
|
4529
|
-
}),
|
|
4524
|
+
}), Oo = {
|
|
4530
4525
|
class: "pv-flex-vertical",
|
|
4531
4526
|
style: { "--flex-align": "flex-start" }
|
|
4532
|
-
},
|
|
4527
|
+
}, ko = ["for"], Ao = [
|
|
4533
4528
|
"rows",
|
|
4534
4529
|
"disabled",
|
|
4535
4530
|
"placeholder",
|
|
4536
4531
|
"id",
|
|
4537
4532
|
"data-invalid"
|
|
4538
|
-
],
|
|
4533
|
+
], jo = /* @__PURE__ */ d({
|
|
4539
4534
|
__name: "PvTextArea",
|
|
4540
4535
|
props: /* @__PURE__ */ g({
|
|
4541
4536
|
error: { type: Boolean },
|
|
@@ -4552,12 +4547,12 @@ var ki = {
|
|
|
4552
4547
|
emits: ["update:modelValue"],
|
|
4553
4548
|
setup(e) {
|
|
4554
4549
|
let t = I(e, "modelValue");
|
|
4555
|
-
return (n, r) => (E(), o("div",
|
|
4550
|
+
return (n, r) => (E(), o("div", Oo, [
|
|
4556
4551
|
n.$slots.label ? (E(), o("label", {
|
|
4557
4552
|
key: 0,
|
|
4558
4553
|
class: "pv-label",
|
|
4559
4554
|
for: e.id
|
|
4560
|
-
}, [A(n.$slots, "label")], 8,
|
|
4555
|
+
}, [A(n.$slots, "label")], 8, ko)) : a("", !0),
|
|
4561
4556
|
G(s("textarea", _(n.$attrs, {
|
|
4562
4557
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4563
4558
|
class: ["pv-textarea", { "pv-surface-accent": e.variant === "grey" }],
|
|
@@ -4566,7 +4561,7 @@ var ki = {
|
|
|
4566
4561
|
placeholder: e.placeholder,
|
|
4567
4562
|
id: e.id,
|
|
4568
4563
|
"data-invalid": e.error ? !0 : void 0
|
|
4569
|
-
}), null, 16,
|
|
4564
|
+
}), null, 16, Ao), [[B, t.value]]),
|
|
4570
4565
|
e.lowerLabel ? (E(), o("p", {
|
|
4571
4566
|
key: 1,
|
|
4572
4567
|
style: { "margin-left": "12px" },
|
|
@@ -4577,20 +4572,20 @@ var ki = {
|
|
|
4577
4572
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4578
4573
|
]));
|
|
4579
4574
|
}
|
|
4580
|
-
}),
|
|
4575
|
+
}), Mo = {
|
|
4581
4576
|
class: "pv-flex pv-truncate",
|
|
4582
4577
|
style: {
|
|
4583
4578
|
"min-width": "0",
|
|
4584
4579
|
"min-height": "20px"
|
|
4585
4580
|
}
|
|
4586
|
-
},
|
|
4581
|
+
}, No = ["title"], Po = /* @__PURE__ */ d({
|
|
4587
4582
|
__name: "PvSimpleItemTree",
|
|
4588
4583
|
props: {
|
|
4589
4584
|
label: {},
|
|
4590
4585
|
icon: {}
|
|
4591
4586
|
},
|
|
4592
4587
|
setup(e) {
|
|
4593
|
-
return (t, n) => (E(), o("div",
|
|
4588
|
+
return (t, n) => (E(), o("div", Mo, [e.icon ? (E(), i(X, {
|
|
4594
4589
|
key: 0,
|
|
4595
4590
|
name: e.icon
|
|
4596
4591
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -4600,9 +4595,9 @@ var ki = {
|
|
|
4600
4595
|
"min-width": "0"
|
|
4601
4596
|
},
|
|
4602
4597
|
title: e.label
|
|
4603
|
-
}, N(e.label), 9,
|
|
4598
|
+
}, N(e.label), 9, No)]));
|
|
4604
4599
|
}
|
|
4605
|
-
}),
|
|
4600
|
+
}), Fo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4606
4601
|
__name: "PvTreeReorderIcon",
|
|
4607
4602
|
setup(e) {
|
|
4608
4603
|
return (e, t) => (E(), i(X, {
|
|
@@ -4610,7 +4605,7 @@ var ki = {
|
|
|
4610
4605
|
class: "reorder-icon pv-text-tertiary"
|
|
4611
4606
|
}));
|
|
4612
4607
|
}
|
|
4613
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
4608
|
+
}), [["__scopeId", "data-v-1efb9068"]]), Io = /* @__PURE__ */ d({
|
|
4614
4609
|
__name: "PvButtonTreeItem",
|
|
4615
4610
|
props: {
|
|
4616
4611
|
selected: { type: Boolean },
|
|
@@ -4645,7 +4640,7 @@ var ki = {
|
|
|
4645
4640
|
_: 3
|
|
4646
4641
|
}, 8, ["class"]));
|
|
4647
4642
|
}
|
|
4648
|
-
}),
|
|
4643
|
+
}), Lo = /* @__PURE__ */ d({
|
|
4649
4644
|
__name: "PvCheckboxTreeItem",
|
|
4650
4645
|
props: {
|
|
4651
4646
|
selected: { type: Boolean },
|
|
@@ -4674,13 +4669,13 @@ var ki = {
|
|
|
4674
4669
|
"pv-tree-item-selected": e.selected,
|
|
4675
4670
|
"pv-tree-item-disabled": e.disableSelection
|
|
4676
4671
|
}
|
|
4677
|
-
]) }, [e.disableSelection ? a("", !0) : (E(), i(
|
|
4672
|
+
]) }, [e.disableSelection ? a("", !0) : (E(), i(Qa, {
|
|
4678
4673
|
key: 0,
|
|
4679
4674
|
checked: e.selected,
|
|
4680
4675
|
onClick: s
|
|
4681
4676
|
}, null, 8, ["checked"])), A(t.$slots, "default")], 2));
|
|
4682
4677
|
}
|
|
4683
|
-
}),
|
|
4678
|
+
}), Ro = () => {
|
|
4684
4679
|
let e = O(null);
|
|
4685
4680
|
return {
|
|
4686
4681
|
hoveredId: e,
|
|
@@ -4691,15 +4686,15 @@ var ki = {
|
|
|
4691
4686
|
e.value = null;
|
|
4692
4687
|
}
|
|
4693
4688
|
};
|
|
4694
|
-
},
|
|
4689
|
+
}, zo = Symbol("DraggingStateKey"), Bo = Symbol("DraggingGroupNameKey"), Vo = Symbol("DropIndicatorKey"), Ho = () => {
|
|
4695
4690
|
let e = O(!1), t = O(null), n = O(null);
|
|
4696
|
-
return D(
|
|
4691
|
+
return D(zo, e), D(Bo, t), D(Vo, n), {
|
|
4697
4692
|
isDragging: e,
|
|
4698
4693
|
draggingGroupName: t,
|
|
4699
4694
|
dropIndicator: n
|
|
4700
4695
|
};
|
|
4701
|
-
},
|
|
4702
|
-
let e = m(
|
|
4696
|
+
}, Uo = () => {
|
|
4697
|
+
let e = m(zo, O(!1)), t = m(Bo, O(null)), n = m(Vo, O(null)), r = (n) => {
|
|
4703
4698
|
e.value = !0, t.value = n ?? null;
|
|
4704
4699
|
}, i = () => {
|
|
4705
4700
|
e.value = !1, t.value = null, o();
|
|
@@ -4721,8 +4716,8 @@ var ki = {
|
|
|
4721
4716
|
onDragStart: r,
|
|
4722
4717
|
onDragEnd: i
|
|
4723
4718
|
};
|
|
4724
|
-
},
|
|
4725
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
4719
|
+
}, Wo = () => {
|
|
4720
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Uo();
|
|
4726
4721
|
return {
|
|
4727
4722
|
getDragGroupConfig: (e, t) => {
|
|
4728
4723
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -4757,8 +4752,8 @@ var ki = {
|
|
|
4757
4752
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
4758
4753
|
}
|
|
4759
4754
|
};
|
|
4760
|
-
},
|
|
4761
|
-
let { dropIndicator: e } =
|
|
4755
|
+
}, Go = () => {
|
|
4756
|
+
let { dropIndicator: e } = Uo();
|
|
4762
4757
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
4763
4758
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
4764
4759
|
return {
|
|
@@ -4767,13 +4762,13 @@ var ki = {
|
|
|
4767
4762
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
4768
4763
|
};
|
|
4769
4764
|
} };
|
|
4770
|
-
},
|
|
4765
|
+
}, Ko = { class: "pv-flex pv-full-width" }, qo = {
|
|
4771
4766
|
key: 0,
|
|
4772
4767
|
class: "tree-component-nested-middle-symbol"
|
|
4773
|
-
},
|
|
4768
|
+
}, Jo = {
|
|
4774
4769
|
key: 1,
|
|
4775
4770
|
class: "tree-component-end-symbol"
|
|
4776
|
-
},
|
|
4771
|
+
}, Yo = ["data-parent-id"], Xo = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4777
4772
|
__name: "PvSimpleNestedTreeItem",
|
|
4778
4773
|
props: {
|
|
4779
4774
|
option: {},
|
|
@@ -4790,9 +4785,9 @@ var ki = {
|
|
|
4790
4785
|
},
|
|
4791
4786
|
emits: ["handle-tree-select", "update:children"],
|
|
4792
4787
|
setup(e, { emit: t }) {
|
|
4793
|
-
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } =
|
|
4788
|
+
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = Uo(), { dragAndDropIndicatorClasses: m } = Go(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = Ro(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = Wo(), T = () => {
|
|
4794
4789
|
f(C(n.settings, n.option).name);
|
|
4795
|
-
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ?
|
|
4790
|
+
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? Lo : Io), k = r(() => n.settings[n.parentField]?.showNestedTree), A = r(() => n.index === n.totalSiblings - 1), M = r({
|
|
4796
4791
|
get: () => [...n.option.children || []],
|
|
4797
4792
|
set: (e) => {
|
|
4798
4793
|
c("update:children", {
|
|
@@ -4822,7 +4817,7 @@ var ki = {
|
|
|
4822
4817
|
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4823
4818
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4824
4819
|
}, {
|
|
4825
|
-
default: W(() => [G(u(
|
|
4820
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(h) === e.option.node_id && P(v)(e.isDraggable, e.settings, e.option)]]), s("div", Ko, [!A.value && k.value ? (E(), o("div", qo)) : k.value ? (E(), o("div", Jo)) : a("", !0), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4826
4821
|
key: 2,
|
|
4827
4822
|
option: e.option,
|
|
4828
4823
|
settings: e.settings,
|
|
@@ -4833,7 +4828,7 @@ var ki = {
|
|
|
4833
4828
|
"settings",
|
|
4834
4829
|
"is-draggable",
|
|
4835
4830
|
"params"
|
|
4836
|
-
])) : (E(), i(
|
|
4831
|
+
])) : (E(), i(Po, {
|
|
4837
4832
|
key: 3,
|
|
4838
4833
|
label: e.option.label,
|
|
4839
4834
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4895,13 +4890,13 @@ var ki = {
|
|
|
4895
4890
|
"class",
|
|
4896
4891
|
"onEnd",
|
|
4897
4892
|
"onAdd"
|
|
4898
|
-
])], 8,
|
|
4893
|
+
])], 8, Yo)], 6);
|
|
4899
4894
|
};
|
|
4900
4895
|
}
|
|
4901
|
-
}), [["__scopeId", "data-v-ecab1929"]]),
|
|
4896
|
+
}), [["__scopeId", "data-v-ecab1929"]]), Zo = {
|
|
4902
4897
|
class: "pv-flow",
|
|
4903
4898
|
style: { "--flow-size": "0px" }
|
|
4904
|
-
},
|
|
4899
|
+
}, Qo = ["data-parent-id"], $o = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
4905
4900
|
__name: "PvSimpleNestedTree",
|
|
4906
4901
|
props: {
|
|
4907
4902
|
option: {},
|
|
@@ -4914,9 +4909,9 @@ var ki = {
|
|
|
4914
4909
|
},
|
|
4915
4910
|
emits: ["handle-tree-select", "update:children"],
|
|
4916
4911
|
setup(e, { emit: t }) {
|
|
4917
|
-
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
4912
|
+
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = Ro(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Wo(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Uo(), { dragAndDropIndicatorClasses: C } = Go(), w = () => {
|
|
4918
4913
|
b(h(n.settings, n.option).name);
|
|
4919
|
-
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ?
|
|
4914
|
+
}, T = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + T.value : n.level + 1 + T.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ? Lo : Io, A = r({
|
|
4920
4915
|
get: () => [...n.option.children || []],
|
|
4921
4916
|
set: (e) => {
|
|
4922
4917
|
a("update:children", {
|
|
@@ -4925,7 +4920,7 @@ var ki = {
|
|
|
4925
4920
|
});
|
|
4926
4921
|
}
|
|
4927
4922
|
}), ee = r(() => n.isParentPathOpen ?? !0);
|
|
4928
|
-
return (t, n) => (E(), o("div",
|
|
4923
|
+
return (t, n) => (E(), o("div", Zo, [(E(), i(j(k(e.option)), {
|
|
4929
4924
|
option: e.option,
|
|
4930
4925
|
selected: O(e.option.node_id),
|
|
4931
4926
|
"disable-selection": e.disableSelection,
|
|
@@ -4941,7 +4936,7 @@ var ki = {
|
|
|
4941
4936
|
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4942
4937
|
onContextmenu: n[3] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4943
4938
|
}, {
|
|
4944
|
-
default: W(() => [G(u(
|
|
4939
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(c) === e.option.node_id && P(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4945
4940
|
key: 0,
|
|
4946
4941
|
option: e.option,
|
|
4947
4942
|
settings: e.settings,
|
|
@@ -4952,7 +4947,7 @@ var ki = {
|
|
|
4952
4947
|
"settings",
|
|
4953
4948
|
"selected",
|
|
4954
4949
|
"params"
|
|
4955
|
-
])) : (E(), i(
|
|
4950
|
+
])) : (E(), i(Po, {
|
|
4956
4951
|
key: 1,
|
|
4957
4952
|
label: e.option.label,
|
|
4958
4953
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4979,7 +4974,7 @@ var ki = {
|
|
|
4979
4974
|
onEnd: P(S),
|
|
4980
4975
|
onAdd: P(S)
|
|
4981
4976
|
}, {
|
|
4982
|
-
item: W(({ element: r, index: i }) => [u(
|
|
4977
|
+
item: W(({ element: r, index: i }) => [u(Xo, {
|
|
4983
4978
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4984
4979
|
option: r,
|
|
4985
4980
|
settings: e.settings,
|
|
@@ -5014,9 +5009,9 @@ var ki = {
|
|
|
5014
5009
|
"class",
|
|
5015
5010
|
"onEnd",
|
|
5016
5011
|
"onAdd"
|
|
5017
|
-
])], 8,
|
|
5012
|
+
])], 8, Qo)]));
|
|
5018
5013
|
}
|
|
5019
|
-
}), [["__scopeId", "data-v-8e33078d"]]),
|
|
5014
|
+
}), [["__scopeId", "data-v-8e33078d"]]), es = ["data-parent-id"], ts = { key: 2 }, ns = ["data-parent-id"], rs = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5020
5015
|
__name: "PvTreeItem",
|
|
5021
5016
|
props: {
|
|
5022
5017
|
option: {},
|
|
@@ -5041,12 +5036,12 @@ var ki = {
|
|
|
5041
5036
|
H(() => n.treeOpen, (e) => {
|
|
5042
5037
|
e !== void 0 && (c.value = e);
|
|
5043
5038
|
});
|
|
5044
|
-
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } =
|
|
5039
|
+
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } = Wo(), { hoveredId: g, handleMouseEnter: _, handleMouseLeave: v } = Ro(), { isDragging: b, draggingGroupName: S, onDragStart: C, onDragEnd: w } = Uo(), { dragAndDropIndicatorClasses: T } = Go(), D = () => {
|
|
5045
5040
|
C(l(n.settings, n.option).name);
|
|
5046
5041
|
}, k = (e) => ({
|
|
5047
5042
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
5048
5043
|
"--border-color": "#121313"
|
|
5049
|
-
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), M = r(() => n.settings[n.option.field]?.checkbox ?
|
|
5044
|
+
}), A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), M = r(() => n.settings[n.option.field]?.checkbox ? Lo : Io), N = r({
|
|
5050
5045
|
get: () => [...n.option.children || []],
|
|
5051
5046
|
set: (e) => {
|
|
5052
5047
|
a("update:children", {
|
|
@@ -5084,7 +5079,7 @@ var ki = {
|
|
|
5084
5079
|
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
5085
5080
|
onContextmenu: n[6] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5086
5081
|
}, {
|
|
5087
|
-
trigger: W(() => [G(u(
|
|
5082
|
+
trigger: W(() => [G(u(Fo, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5088
5083
|
key: 0,
|
|
5089
5084
|
option: e.option,
|
|
5090
5085
|
settings: e.settings,
|
|
@@ -5095,7 +5090,7 @@ var ki = {
|
|
|
5095
5090
|
"settings",
|
|
5096
5091
|
"selected",
|
|
5097
5092
|
"params"
|
|
5098
|
-
])) : (E(), i(
|
|
5093
|
+
])) : (E(), i(Po, {
|
|
5099
5094
|
key: 1,
|
|
5100
5095
|
label: e.option.label,
|
|
5101
5096
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5144,7 +5139,7 @@ var ki = {
|
|
|
5144
5139
|
"class",
|
|
5145
5140
|
"onEnd",
|
|
5146
5141
|
"onAdd"
|
|
5147
|
-
])], 8,
|
|
5142
|
+
])], 8, es)]),
|
|
5148
5143
|
_: 1
|
|
5149
5144
|
}, 8, [
|
|
5150
5145
|
"modelValue",
|
|
@@ -5152,7 +5147,7 @@ var ki = {
|
|
|
5152
5147
|
"summaryStyles",
|
|
5153
5148
|
"summaryClasses",
|
|
5154
5149
|
"defaultOpen"
|
|
5155
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i(
|
|
5150
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (E(), i($o, {
|
|
5156
5151
|
key: 1,
|
|
5157
5152
|
"is-parent-path-open": e.isParentPathOpen,
|
|
5158
5153
|
"selected-options": e.selectedOptions,
|
|
@@ -5173,7 +5168,7 @@ var ki = {
|
|
|
5173
5168
|
"is-draggable",
|
|
5174
5169
|
"disable-selection",
|
|
5175
5170
|
"is-last-root-item"
|
|
5176
|
-
])) : (E(), o("div",
|
|
5171
|
+
])) : (E(), o("div", ts, [(E(), i(j(M.value), {
|
|
5177
5172
|
class: y({ ...P(T)(e.option) }),
|
|
5178
5173
|
option: e.option,
|
|
5179
5174
|
selected: A(e.option.node_id),
|
|
@@ -5189,7 +5184,7 @@ var ki = {
|
|
|
5189
5184
|
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
5190
5185
|
onContextmenu: n[12] ||= K((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
5191
5186
|
}, {
|
|
5192
|
-
default: W(() => [G(u(
|
|
5187
|
+
default: W(() => [G(u(Fo, null, null, 512), [[V, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (E(), i(j(e.settings[e.option.field]?.renderer), {
|
|
5193
5188
|
key: 0,
|
|
5194
5189
|
option: e.option,
|
|
5195
5190
|
settings: e.settings,
|
|
@@ -5198,7 +5193,7 @@ var ki = {
|
|
|
5198
5193
|
"option",
|
|
5199
5194
|
"settings",
|
|
5200
5195
|
"params"
|
|
5201
|
-
])) : (E(), i(
|
|
5196
|
+
])) : (E(), i(Po, {
|
|
5202
5197
|
key: 1,
|
|
5203
5198
|
label: e.option.label,
|
|
5204
5199
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5254,10 +5249,10 @@ var ki = {
|
|
|
5254
5249
|
"class",
|
|
5255
5250
|
"onEnd",
|
|
5256
5251
|
"onAdd"
|
|
5257
|
-
])], 8,
|
|
5252
|
+
])], 8, ns)]));
|
|
5258
5253
|
};
|
|
5259
5254
|
}
|
|
5260
|
-
}), [["__scopeId", "data-v-7589558e"]]),
|
|
5255
|
+
}), [["__scopeId", "data-v-7589558e"]]), is = (e) => {
|
|
5261
5256
|
let t = [], n = !1;
|
|
5262
5257
|
function r(e) {
|
|
5263
5258
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -5300,7 +5295,7 @@ var ki = {
|
|
|
5300
5295
|
newChildren: r
|
|
5301
5296
|
}), n || (n = !0, v(i));
|
|
5302
5297
|
} };
|
|
5303
|
-
},
|
|
5298
|
+
}, as = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5304
5299
|
__name: "PvTree",
|
|
5305
5300
|
props: /* @__PURE__ */ g({
|
|
5306
5301
|
settings: {},
|
|
@@ -5330,14 +5325,14 @@ var ki = {
|
|
|
5330
5325
|
"update:treeOpen"
|
|
5331
5326
|
],
|
|
5332
5327
|
setup(e) {
|
|
5333
|
-
m(
|
|
5334
|
-
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
5328
|
+
m(zo, null) || Ho();
|
|
5329
|
+
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } = is(a), d = (e, t) => {
|
|
5335
5330
|
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];
|
|
5336
5331
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5337
5332
|
...n.defaultSettings,
|
|
5338
5333
|
...n.settings[t]
|
|
5339
5334
|
}, e), {}));
|
|
5340
|
-
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(
|
|
5335
|
+
return (n, r) => (E(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(E(!0), o(t, null, k(a.value, (t, n) => (E(), o("div", { key: t.node_id }, [u(rs, {
|
|
5341
5336
|
"is-last-root-item": n === a.value.length - 1,
|
|
5342
5337
|
"is-parent-path-open": !0,
|
|
5343
5338
|
"tree-open": c.value,
|
|
@@ -5360,15 +5355,15 @@ var ki = {
|
|
|
5360
5355
|
"onUpdate:children"
|
|
5361
5356
|
])]))), 128))], 2)]));
|
|
5362
5357
|
}
|
|
5363
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
5358
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), os = /* @__PURE__ */ d({
|
|
5364
5359
|
__name: "PvTreeGroup",
|
|
5365
5360
|
setup(e) {
|
|
5366
|
-
return
|
|
5361
|
+
return Ho(), (e, t) => A(e.$slots, "default");
|
|
5367
5362
|
}
|
|
5368
|
-
}),
|
|
5363
|
+
}), ss = {
|
|
5369
5364
|
key: 0,
|
|
5370
5365
|
class: "pv-text-brand pv-text-title-sm pv-stack-4"
|
|
5371
|
-
},
|
|
5366
|
+
}, cs = ["data-disabled"], ls = /* @__PURE__ */ d({
|
|
5372
5367
|
__name: "PvProgressBar",
|
|
5373
5368
|
props: {
|
|
5374
5369
|
progress: {},
|
|
@@ -5377,19 +5372,19 @@ var ki = {
|
|
|
5377
5372
|
},
|
|
5378
5373
|
setup(e) {
|
|
5379
5374
|
let n = e;
|
|
5380
|
-
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p",
|
|
5375
|
+
return (e, r) => (E(), o(t, null, [n.showLabel ? (E(), o("p", ss, N(n.progress) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5381
5376
|
class: "pv-progress-bar",
|
|
5382
5377
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5383
5378
|
style: x({ "--progress": `${n.progress}%` })
|
|
5384
|
-
}, null, 12,
|
|
5379
|
+
}, null, 12, cs)], 64));
|
|
5385
5380
|
}
|
|
5386
|
-
}),
|
|
5381
|
+
}), us = {
|
|
5387
5382
|
class: "pv-flex",
|
|
5388
5383
|
style: {
|
|
5389
5384
|
"--flex-gap": "4px",
|
|
5390
5385
|
height: "24px"
|
|
5391
5386
|
}
|
|
5392
|
-
},
|
|
5387
|
+
}, ds = /* @__PURE__ */ d({
|
|
5393
5388
|
__name: "PvDistributionBar",
|
|
5394
5389
|
props: { values: {} },
|
|
5395
5390
|
setup(e) {
|
|
@@ -5412,41 +5407,41 @@ var ki = {
|
|
|
5412
5407
|
default: return "pv-data-surface-visualization-1";
|
|
5413
5408
|
}
|
|
5414
5409
|
};
|
|
5415
|
-
return (n, r) => (E(), o("div",
|
|
5410
|
+
return (n, r) => (E(), o("div", us, [(E(!0), o(t, null, k(e.values, (e, t) => (E(), o("div", {
|
|
5416
5411
|
key: t,
|
|
5417
5412
|
class: y([s(t)]),
|
|
5418
5413
|
style: x(a(e, t))
|
|
5419
5414
|
}, null, 6))), 128))]));
|
|
5420
5415
|
}
|
|
5421
|
-
}),
|
|
5416
|
+
}), fs = {
|
|
5422
5417
|
key: 0,
|
|
5423
5418
|
class: "pv-range-single-slider"
|
|
5424
|
-
},
|
|
5419
|
+
}, ps = [
|
|
5425
5420
|
"id",
|
|
5426
5421
|
"aria-label",
|
|
5427
5422
|
"disabled",
|
|
5428
5423
|
"max",
|
|
5429
5424
|
"min",
|
|
5430
5425
|
"step"
|
|
5431
|
-
],
|
|
5426
|
+
], ms = ["aria-label"], hs = {
|
|
5432
5427
|
key: 0,
|
|
5433
5428
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
5434
5429
|
style: { "line-height": "1" }
|
|
5435
|
-
},
|
|
5430
|
+
}, gs = [
|
|
5436
5431
|
"aria-label",
|
|
5437
5432
|
"disabled",
|
|
5438
5433
|
"max",
|
|
5439
5434
|
"min",
|
|
5440
5435
|
"step",
|
|
5441
5436
|
"value"
|
|
5442
|
-
],
|
|
5437
|
+
], _s = [
|
|
5443
5438
|
"aria-label",
|
|
5444
5439
|
"disabled",
|
|
5445
5440
|
"max",
|
|
5446
5441
|
"min",
|
|
5447
5442
|
"step",
|
|
5448
5443
|
"value"
|
|
5449
|
-
],
|
|
5444
|
+
], vs = {
|
|
5450
5445
|
key: 1,
|
|
5451
5446
|
class: "pv-flex",
|
|
5452
5447
|
style: {
|
|
@@ -5454,15 +5449,15 @@ var ki = {
|
|
|
5454
5449
|
"--flex-gap": "0.75rem",
|
|
5455
5450
|
"--flex-wrap": "wrap"
|
|
5456
5451
|
}
|
|
5457
|
-
},
|
|
5452
|
+
}, ys = { class: "pv-text-body-sm" }, bs = [
|
|
5458
5453
|
"disabled",
|
|
5459
5454
|
"step",
|
|
5460
5455
|
"value"
|
|
5461
|
-
],
|
|
5456
|
+
], xs = { class: "pv-text-body-sm" }, Ss = [
|
|
5462
5457
|
"disabled",
|
|
5463
5458
|
"step",
|
|
5464
5459
|
"value"
|
|
5465
|
-
],
|
|
5460
|
+
], Cs = 0, ws = 100, Ts = /* @__PURE__ */ d({
|
|
5466
5461
|
inheritAttrs: !1,
|
|
5467
5462
|
__name: "PvRange",
|
|
5468
5463
|
props: /* @__PURE__ */ g({
|
|
@@ -5539,7 +5534,7 @@ var ki = {
|
|
|
5539
5534
|
}).format(e);
|
|
5540
5535
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
5541
5536
|
}, L = r(() => D(t.step)), R = r(() => L.value !== null && L.value > 0 ? L.value : 0), z = r(() => R.value > 0 ? String(R.value) : "any"), ne = r(() => L.value === null ? "1" : L.value > 0 ? String(L.value) : "any"), re = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), V = r(() => {
|
|
5542
|
-
let e = D(t.min) ??
|
|
5537
|
+
let e = D(t.min) ?? Cs, n = D(t.max) ?? ws;
|
|
5543
5538
|
return e > n ? {
|
|
5544
5539
|
max: e,
|
|
5545
5540
|
min: n
|
|
@@ -5565,7 +5560,7 @@ var ki = {
|
|
|
5565
5560
|
}
|
|
5566
5561
|
return t.split(".")[1]?.length ?? 0;
|
|
5567
5562
|
}, q = r(() => {
|
|
5568
|
-
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(
|
|
5563
|
+
let e = D(t.min), n = D(t.max), r = D(c.value?.min), i = D(c.value?.max), a = e ?? Math.min(Cs, r ?? Cs, i ?? Cs), o = n ?? Math.max(ws, r ?? ws, i ?? ws);
|
|
5569
5564
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (R.value > 0 ? R.value : 1)), {
|
|
5570
5565
|
max: o,
|
|
5571
5566
|
min: a
|
|
@@ -5606,7 +5601,7 @@ var ki = {
|
|
|
5606
5601
|
"--range-track-color": re.value,
|
|
5607
5602
|
"--value-max": `${he.value}%`,
|
|
5608
5603
|
"--value-min": `${me.value}%`
|
|
5609
|
-
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || q.value.min ===
|
|
5604
|
+
})), _e = r(() => ({ left: `${me.value}%` })), ve = r(() => ({ left: `${he.value}%` })), ye = r(() => D(c.value?.min) !== null || D(c.value?.max) !== null), be = () => D(t.min) !== null || q.value.min === Cs, xe = () => D(t.max) !== null || q.value.max === ws, Se = (e, t) => {
|
|
5610
5605
|
c.value = {
|
|
5611
5606
|
max: t >= q.value.max && xe() ? null : t,
|
|
5612
5607
|
min: e <= q.value.min && be() ? null : e
|
|
@@ -5679,7 +5674,7 @@ var ki = {
|
|
|
5679
5674
|
};
|
|
5680
5675
|
return H([Y, q], Ne, { immediate: !0 }), S(() => {
|
|
5681
5676
|
Be(), Oe();
|
|
5682
|
-
}), (r, c) => e.mode === "single" ? (E(), o("div",
|
|
5677
|
+
}), (r, c) => e.mode === "single" ? (E(), o("div", fs, [e.showValueTooltips && v.value ? (E(), o("span", {
|
|
5683
5678
|
key: 0,
|
|
5684
5679
|
class: "pv-range-tooltip",
|
|
5685
5680
|
style: x(ae.value)
|
|
@@ -5696,7 +5691,7 @@ var ki = {
|
|
|
5696
5691
|
onChange: ke,
|
|
5697
5692
|
onPointerdown: Ae,
|
|
5698
5693
|
onPointerup: ke
|
|
5699
|
-
}), null, 16,
|
|
5694
|
+
}), null, 16, ps), [[
|
|
5700
5695
|
B,
|
|
5701
5696
|
n.value,
|
|
5702
5697
|
void 0,
|
|
@@ -5711,7 +5706,7 @@ var ki = {
|
|
|
5711
5706
|
"--flex-gap": "0"
|
|
5712
5707
|
}
|
|
5713
5708
|
}), [
|
|
5714
|
-
e.showBoundLabels ? (E(), o("div",
|
|
5709
|
+
e.showBoundLabels ? (E(), o("div", hs, [s("span", null, N(M(q.value.min)), 1), s("span", null, N(M(q.value.max)), 1)])) : a("", !0),
|
|
5715
5710
|
s("div", {
|
|
5716
5711
|
ref_key: "sliderRef",
|
|
5717
5712
|
ref: b,
|
|
@@ -5743,7 +5738,7 @@ var ki = {
|
|
|
5743
5738
|
onInput: je,
|
|
5744
5739
|
onPointerdown: c[1] ||= (e) => Ee("min"),
|
|
5745
5740
|
onPointerup: Te
|
|
5746
|
-
}, null, 40,
|
|
5741
|
+
}, null, 40, gs),
|
|
5747
5742
|
s("input", {
|
|
5748
5743
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
5749
5744
|
type: "range",
|
|
@@ -5757,9 +5752,9 @@ var ki = {
|
|
|
5757
5752
|
onInput: Me,
|
|
5758
5753
|
onPointerdown: c[2] ||= (e) => Ee("max"),
|
|
5759
5754
|
onPointerup: Te
|
|
5760
|
-
}, null, 40,
|
|
5755
|
+
}, null, 40, _s)
|
|
5761
5756
|
], 38),
|
|
5762
|
-
e.showInputs ? (E(), o("div",
|
|
5757
|
+
e.showInputs ? (E(), o("div", vs, [
|
|
5763
5758
|
s("label", {
|
|
5764
5759
|
class: "pv-flex-vertical",
|
|
5765
5760
|
for: f,
|
|
@@ -5770,7 +5765,7 @@ var ki = {
|
|
|
5770
5765
|
"max-width": "75px",
|
|
5771
5766
|
"min-width": "0"
|
|
5772
5767
|
}
|
|
5773
|
-
}, [s("span",
|
|
5768
|
+
}, [s("span", ys, N(e.minLabel), 1), s("input", {
|
|
5774
5769
|
id: f,
|
|
5775
5770
|
class: "pv-input-text",
|
|
5776
5771
|
disabled: e.disabled,
|
|
@@ -5784,7 +5779,7 @@ var ki = {
|
|
|
5784
5779
|
onFocus: c[4] ||= (e) => Ie("min"),
|
|
5785
5780
|
onInput: Fe,
|
|
5786
5781
|
onKeydown: c[5] ||= ie((e) => Le(e, "min"), ["enter"])
|
|
5787
|
-
}, null, 40,
|
|
5782
|
+
}, null, 40, bs)]),
|
|
5788
5783
|
s("label", {
|
|
5789
5784
|
class: "pv-flex-vertical",
|
|
5790
5785
|
for: d,
|
|
@@ -5795,7 +5790,7 @@ var ki = {
|
|
|
5795
5790
|
"max-width": "75px",
|
|
5796
5791
|
"min-width": "0"
|
|
5797
5792
|
}
|
|
5798
|
-
}, [s("span",
|
|
5793
|
+
}, [s("span", xs, N(e.maxLabel), 1), s("input", {
|
|
5799
5794
|
id: d,
|
|
5800
5795
|
class: "pv-input-text",
|
|
5801
5796
|
disabled: e.disabled,
|
|
@@ -5809,7 +5804,7 @@ var ki = {
|
|
|
5809
5804
|
onFocus: c[7] ||= (e) => Ie("max"),
|
|
5810
5805
|
onInput: X,
|
|
5811
5806
|
onKeydown: c[8] ||= ie((e) => Le(e, "max"), ["enter"])
|
|
5812
|
-
}, null, 40,
|
|
5807
|
+
}, null, 40, Ss)]),
|
|
5813
5808
|
e.showClear && ye.value ? (E(), i(Q, {
|
|
5814
5809
|
key: 0,
|
|
5815
5810
|
class: "pv-text-brand",
|
|
@@ -5826,21 +5821,21 @@ var ki = {
|
|
|
5826
5821
|
variant: "ghost",
|
|
5827
5822
|
onClick: De
|
|
5828
5823
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5829
|
-
], 16,
|
|
5824
|
+
], 16, ms));
|
|
5830
5825
|
}
|
|
5831
|
-
}),
|
|
5826
|
+
}), Es = {
|
|
5832
5827
|
key: 1,
|
|
5833
5828
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
5834
|
-
},
|
|
5829
|
+
}, Ds = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, Os = {
|
|
5835
5830
|
key: 0,
|
|
5836
5831
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5837
|
-
},
|
|
5832
|
+
}, ks = {
|
|
5838
5833
|
key: 1,
|
|
5839
5834
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
5840
|
-
},
|
|
5835
|
+
}, As = {
|
|
5841
5836
|
key: 2,
|
|
5842
5837
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
5843
|
-
},
|
|
5838
|
+
}, js = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
5844
5839
|
__name: "PvFilterPanelOptionRow",
|
|
5845
5840
|
props: {
|
|
5846
5841
|
ariaLabel: {},
|
|
@@ -5900,7 +5895,7 @@ var ki = {
|
|
|
5900
5895
|
"data-testid": "pv-filter-panel-option-row",
|
|
5901
5896
|
style: x(m.value)
|
|
5902
5897
|
}, [
|
|
5903
|
-
u(
|
|
5898
|
+
u(Qa, {
|
|
5904
5899
|
ariaLabel: e.ariaLabel || e.label,
|
|
5905
5900
|
disabled: e.disabled,
|
|
5906
5901
|
indeterminate: e.indeterminate,
|
|
@@ -5912,12 +5907,12 @@ var ki = {
|
|
|
5912
5907
|
"indeterminate",
|
|
5913
5908
|
"modelValue"
|
|
5914
5909
|
]),
|
|
5915
|
-
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span",
|
|
5916
|
-
s("span",
|
|
5917
|
-
e.subduedText ? (E(), o("span",
|
|
5918
|
-
e.subText ? (E(), o("span",
|
|
5910
|
+
e.renderer ? (E(), i(j(e.renderer), b(_({ key: 0 }, h.value)), null, 16)) : (E(), o("span", Es, [
|
|
5911
|
+
s("span", Ds, N(e.label), 1),
|
|
5912
|
+
e.subduedText ? (E(), o("span", Os, N(e.subduedText), 1)) : a("", !0),
|
|
5913
|
+
e.subText ? (E(), o("span", ks, N(e.subText), 1)) : a("", !0)
|
|
5919
5914
|
])),
|
|
5920
|
-
p.value ? (E(), o("span",
|
|
5915
|
+
p.value ? (E(), o("span", As, [A(t.$slots, "result-count", {}, () => [l("(" + N(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
5921
5916
|
e.showFocusAction ? (E(), i(Q, {
|
|
5922
5917
|
key: 3,
|
|
5923
5918
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -5933,26 +5928,26 @@ var ki = {
|
|
|
5933
5928
|
])) : a("", !0)
|
|
5934
5929
|
], 6));
|
|
5935
5930
|
}
|
|
5936
|
-
}), [["__scopeId", "data-v-7e00be1a"]]),
|
|
5931
|
+
}), [["__scopeId", "data-v-7e00be1a"]]), Ms = [
|
|
5937
5932
|
"totalCount",
|
|
5938
5933
|
"total_count",
|
|
5939
5934
|
"resultCount",
|
|
5940
5935
|
"result_count",
|
|
5941
5936
|
"row_count",
|
|
5942
5937
|
"count"
|
|
5943
|
-
],
|
|
5938
|
+
], Ns = new Intl.NumberFormat("en-US", {
|
|
5944
5939
|
maximumFractionDigits: 1,
|
|
5945
5940
|
notation: "compact"
|
|
5946
|
-
}),
|
|
5947
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
5941
|
+
}), Ps = (e) => typeof e == "object" && !!e, Fs = (e) => {
|
|
5942
|
+
if (typeof e == "number" && Number.isFinite(e)) return Ns.format(e);
|
|
5948
5943
|
if (typeof e == "string") {
|
|
5949
5944
|
let t = e.trim();
|
|
5950
5945
|
if (!t) return;
|
|
5951
5946
|
let n = Number(t);
|
|
5952
|
-
return Number.isFinite(n) ?
|
|
5947
|
+
return Number.isFinite(n) ? Ns.format(n) : e;
|
|
5953
5948
|
}
|
|
5954
|
-
},
|
|
5955
|
-
let n =
|
|
5949
|
+
}, Is = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), Ls = (e, t = {}) => {
|
|
5950
|
+
let n = Is(t.dataType, t.valueDecimals);
|
|
5956
5951
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
5957
5952
|
currency: "USD",
|
|
5958
5953
|
maximumFractionDigits: n,
|
|
@@ -5964,11 +5959,11 @@ var ki = {
|
|
|
5964
5959
|
minimumFractionDigits: n
|
|
5965
5960
|
}).format(e);
|
|
5966
5961
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
5967
|
-
},
|
|
5962
|
+
}, Rs = (e, t, n = {}) => e !== null && t !== null ? `${Ls(e, n)}–${Ls(t, n)}` : e === null ? t === null ? "" : `≤ ${Ls(t, n)}` : `${Ls(e, n)}+`, zs = (e, t) => {
|
|
5968
5963
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
5969
5964
|
if (!n) return null;
|
|
5970
5965
|
try {
|
|
5971
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
5966
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : Ps(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
5972
5967
|
return n({
|
|
5973
5968
|
context: e.metadata,
|
|
5974
5969
|
value: t
|
|
@@ -5976,24 +5971,24 @@ var ki = {
|
|
|
5976
5971
|
} catch {
|
|
5977
5972
|
return null;
|
|
5978
5973
|
}
|
|
5979
|
-
},
|
|
5974
|
+
}, Bs = (e, t) => {
|
|
5980
5975
|
let n = e.metadata;
|
|
5981
|
-
if (!
|
|
5976
|
+
if (!Ps(n)) return null;
|
|
5982
5977
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
5983
5978
|
let t = n[e];
|
|
5984
5979
|
if (t != null && String(t).trim()) return String(t);
|
|
5985
5980
|
}
|
|
5986
5981
|
return null;
|
|
5987
|
-
},
|
|
5988
|
-
let t =
|
|
5982
|
+
}, Vs = (e, t) => e.label || Bs(e, t) || zs(e, t) || e.value, Hs = (e) => {
|
|
5983
|
+
let t = Fs(e?.resultCount);
|
|
5989
5984
|
if (t !== void 0) return t;
|
|
5990
5985
|
let n = e?.metadata;
|
|
5991
|
-
if (
|
|
5992
|
-
let t =
|
|
5986
|
+
if (Ps(n)) for (let e of Ms) {
|
|
5987
|
+
let t = Fs(n[e]);
|
|
5993
5988
|
if (t !== void 0) return t;
|
|
5994
5989
|
}
|
|
5995
|
-
return
|
|
5996
|
-
},
|
|
5990
|
+
return Fs(e?.totalChildCount);
|
|
5991
|
+
}, Us = "__pv_filter_panel_scoped_value__", Ws = (e) => typeof e == "object" && !!e, Gs = (e) => {
|
|
5997
5992
|
try {
|
|
5998
5993
|
let t = JSON.parse(decodeURIComponent(e));
|
|
5999
5994
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -6007,7 +6002,7 @@ var ki = {
|
|
|
6007
6002
|
} catch {
|
|
6008
6003
|
return [];
|
|
6009
6004
|
}
|
|
6010
|
-
},
|
|
6005
|
+
}, Ks = (e) => {
|
|
6011
6006
|
if (!e.startsWith("__")) return null;
|
|
6012
6007
|
let t = e.slice(2).split("__");
|
|
6013
6008
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -6020,76 +6015,76 @@ var ki = {
|
|
|
6020
6015
|
pairs: n,
|
|
6021
6016
|
value: n[0].value
|
|
6022
6017
|
};
|
|
6023
|
-
},
|
|
6018
|
+
}, qs = (e) => {
|
|
6024
6019
|
if (e == null) return null;
|
|
6025
|
-
if (!e.startsWith(
|
|
6020
|
+
if (!e.startsWith(Us)) return Ks(e) ?? {
|
|
6026
6021
|
pairs: [],
|
|
6027
6022
|
value: e
|
|
6028
6023
|
};
|
|
6029
|
-
let t =
|
|
6024
|
+
let t = Gs(e.slice(32));
|
|
6030
6025
|
return {
|
|
6031
6026
|
field: t[0]?.field,
|
|
6032
6027
|
pairs: t,
|
|
6033
6028
|
value: t[0]?.value ?? e
|
|
6034
6029
|
};
|
|
6035
|
-
},
|
|
6030
|
+
}, Js = (e, t) => `${Us}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Ys = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Ws(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) : qs(e.value)?.value ?? e.value : null, Xs = (e, t) => e?.field ? e.field : e?.colField ? e.colField : qs(e?.value)?.field ?? t, Zs = (e) => e.flatMap((e) => [e, ...e.children?.length ? Zs(e.children) : []]), Qs = (e, t, n, r) => Xs(e, r) === t && Ys(e) === n, $s = (e) => {
|
|
6036
6031
|
let t = e;
|
|
6037
6032
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
6038
|
-
},
|
|
6033
|
+
}, ec = (e) => {
|
|
6039
6034
|
let t = e;
|
|
6040
|
-
return
|
|
6035
|
+
return $s(e) ? {
|
|
6041
6036
|
...t,
|
|
6042
|
-
conditions: (t.conditions ?? []).map(
|
|
6037
|
+
conditions: (t.conditions ?? []).map(ec)
|
|
6043
6038
|
} : { ...t };
|
|
6044
|
-
},
|
|
6039
|
+
}, tc = (e, t) => {
|
|
6045
6040
|
if (!e) return null;
|
|
6046
6041
|
let n = t instanceof Set ? t : new Set(t);
|
|
6047
|
-
if (!n.size) return
|
|
6048
|
-
if (
|
|
6042
|
+
if (!n.size) return ec(e);
|
|
6043
|
+
if (!$s(e)) {
|
|
6049
6044
|
let t = e;
|
|
6050
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
6045
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ec(e);
|
|
6051
6046
|
}
|
|
6052
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
6047
|
+
let r = e, i = (r.conditions ?? []).map((e) => tc(e, n)).filter((e) => !!e);
|
|
6053
6048
|
return i.length ? i.length === 1 ? i[0] : {
|
|
6054
6049
|
...r,
|
|
6055
6050
|
conditions: i
|
|
6056
6051
|
} : null;
|
|
6057
|
-
},
|
|
6052
|
+
}, nc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(nc)] : [], rc = (e) => e ? e.children?.length ? e.children.flatMap(rc) : [e.field] : [], ic = (e) => {
|
|
6058
6053
|
let t = e?.context ?? {};
|
|
6059
|
-
return t.aggregateFieldHierarchy ?
|
|
6060
|
-
},
|
|
6054
|
+
return t.aggregateFieldHierarchy ? nc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
6055
|
+
}, ac = (e) => {
|
|
6061
6056
|
let t = e?.context ?? {};
|
|
6062
6057
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6063
|
-
},
|
|
6058
|
+
}, oc = (e) => ic(e).length > 0, sc = (e, t) => {
|
|
6064
6059
|
for (let n of e ?? []) {
|
|
6065
6060
|
if (!n) continue;
|
|
6066
6061
|
if (n.value === t) return n;
|
|
6067
|
-
let e =
|
|
6062
|
+
let e = sc(n.children, t);
|
|
6068
6063
|
if (e) return e;
|
|
6069
6064
|
}
|
|
6070
|
-
},
|
|
6065
|
+
}, cc = (e, t, n = []) => {
|
|
6071
6066
|
for (let r of e ?? []) {
|
|
6072
6067
|
if (!r) continue;
|
|
6073
6068
|
let e = [...n, r];
|
|
6074
6069
|
if (r.value === t) return e;
|
|
6075
|
-
let i =
|
|
6070
|
+
let i = cc(r.children, t, e);
|
|
6076
6071
|
if (i) return i;
|
|
6077
6072
|
}
|
|
6078
|
-
},
|
|
6079
|
-
let n =
|
|
6073
|
+
}, lc = (e, t) => {
|
|
6074
|
+
let n = sc(t, e), r = n ? Xs(n, "") : void 0, i = n ? Ys(n) : null;
|
|
6080
6075
|
if (r && i !== null) return {
|
|
6081
6076
|
field: r,
|
|
6082
6077
|
value: i
|
|
6083
6078
|
};
|
|
6084
|
-
let a =
|
|
6079
|
+
let a = qs(e);
|
|
6085
6080
|
return {
|
|
6086
6081
|
field: a?.field,
|
|
6087
6082
|
value: a?.value ?? e
|
|
6088
6083
|
};
|
|
6089
|
-
},
|
|
6084
|
+
}, uc = (e, t, n) => {
|
|
6090
6085
|
let r = (e) => {
|
|
6091
6086
|
if (!e) return;
|
|
6092
|
-
let i =
|
|
6087
|
+
let i = Xs(e, ""), a = Ys(e);
|
|
6093
6088
|
if (i === t && a === n) return e.value;
|
|
6094
6089
|
for (let t of e.children ?? []) {
|
|
6095
6090
|
let e = r(t);
|
|
@@ -6101,9 +6096,9 @@ var ki = {
|
|
|
6101
6096
|
if (e) return e;
|
|
6102
6097
|
}
|
|
6103
6098
|
return `__${t}__${n}`;
|
|
6104
|
-
},
|
|
6099
|
+
}, dc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...dc(e.children)]), fc = (e, t) => {
|
|
6105
6100
|
if (e.state !== "selected") return null;
|
|
6106
|
-
let { field: n, value: r } =
|
|
6101
|
+
let { field: n, value: r } = lc(e.id, t);
|
|
6107
6102
|
if (!n) return null;
|
|
6108
6103
|
let i = [{
|
|
6109
6104
|
colId: n,
|
|
@@ -6111,8 +6106,8 @@ var ki = {
|
|
|
6111
6106
|
filterType: "text",
|
|
6112
6107
|
type: "equals"
|
|
6113
6108
|
}];
|
|
6114
|
-
for (let n of
|
|
6115
|
-
let e =
|
|
6109
|
+
for (let n of dc(e.children)) {
|
|
6110
|
+
let e = lc(n.id, t);
|
|
6116
6111
|
e.field && i.push({
|
|
6117
6112
|
colId: e.field,
|
|
6118
6113
|
filter: e.value,
|
|
@@ -6125,10 +6120,10 @@ var ki = {
|
|
|
6125
6120
|
filterType: "join",
|
|
6126
6121
|
type: "AND"
|
|
6127
6122
|
};
|
|
6128
|
-
},
|
|
6129
|
-
let t =
|
|
6123
|
+
}, pc = (e) => {
|
|
6124
|
+
let t = ic(e.colDef), n = tc(e.baseModel, t);
|
|
6130
6125
|
if (!t.length) return n;
|
|
6131
|
-
let r = e.state.map((t) =>
|
|
6126
|
+
let r = e.state.map((t) => fc(t, e.options)).filter((e) => !!e);
|
|
6132
6127
|
if (!r.length) return n;
|
|
6133
6128
|
let i = r.length === 1 ? r[0] : {
|
|
6134
6129
|
conditions: r,
|
|
@@ -6140,17 +6135,17 @@ var ki = {
|
|
|
6140
6135
|
filterType: "join",
|
|
6141
6136
|
type: "AND"
|
|
6142
6137
|
} : i;
|
|
6143
|
-
},
|
|
6138
|
+
}, mc = (e, t, n) => {
|
|
6144
6139
|
if (!e) return [];
|
|
6145
6140
|
let r = e;
|
|
6146
|
-
if (
|
|
6141
|
+
if ($s(e)) {
|
|
6147
6142
|
let e = r.conditions ?? [];
|
|
6148
6143
|
if (r.type === "AND") {
|
|
6149
6144
|
let r = e.find((e) => {
|
|
6150
6145
|
let r = e;
|
|
6151
6146
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
6152
6147
|
});
|
|
6153
|
-
return e.flatMap((e) =>
|
|
6148
|
+
return e.flatMap((e) => mc(e, t, n).map((e) => ({
|
|
6154
6149
|
...e,
|
|
6155
6150
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
6156
6151
|
colId: r.colId,
|
|
@@ -6158,20 +6153,20 @@ var ki = {
|
|
|
6158
6153
|
} : void 0)
|
|
6159
6154
|
})));
|
|
6160
6155
|
}
|
|
6161
|
-
return e.flatMap((e) =>
|
|
6156
|
+
return e.flatMap((e) => mc(e, t, n));
|
|
6162
6157
|
}
|
|
6163
6158
|
return r.colId && t.has(r.colId) ? [{
|
|
6164
6159
|
colId: r.colId,
|
|
6165
6160
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
6166
6161
|
type: r.type
|
|
6167
6162
|
}] : [];
|
|
6168
|
-
},
|
|
6169
|
-
let t =
|
|
6163
|
+
}, hc = (e) => {
|
|
6164
|
+
let t = ic(e.colDef);
|
|
6170
6165
|
if (!t.length) return [];
|
|
6171
|
-
let n = new Set(
|
|
6166
|
+
let n = new Set(rc(e.colDef.context?.aggregateFieldHierarchy)), r = ac(e.colDef), i = mc(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
6172
6167
|
for (let t of i) {
|
|
6173
6168
|
if (!t.filter) continue;
|
|
6174
|
-
let n =
|
|
6169
|
+
let n = uc(e.options, t.colId, String(t.filter));
|
|
6175
6170
|
if (t.type === "equals") {
|
|
6176
6171
|
let e = a.get(n);
|
|
6177
6172
|
a.set(n, {
|
|
@@ -6182,7 +6177,7 @@ var ki = {
|
|
|
6182
6177
|
continue;
|
|
6183
6178
|
}
|
|
6184
6179
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
6185
|
-
let r =
|
|
6180
|
+
let r = uc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
6186
6181
|
children: [],
|
|
6187
6182
|
id: r,
|
|
6188
6183
|
state: "selected"
|
|
@@ -6194,150 +6189,150 @@ var ki = {
|
|
|
6194
6189
|
}
|
|
6195
6190
|
}
|
|
6196
6191
|
return [...a.values()];
|
|
6197
|
-
},
|
|
6198
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
6192
|
+
}, gc = (e) => {
|
|
6193
|
+
let t = /* @__PURE__ */ new Map(), n = ic(e.colDef);
|
|
6199
6194
|
if (!n.length) return t;
|
|
6200
|
-
let r =
|
|
6195
|
+
let r = mc(e.model, new Set(n), new Set(rc(e.colDef.context?.aggregateFieldHierarchy)));
|
|
6201
6196
|
for (let e of r) {
|
|
6202
6197
|
if (e.type !== "equals" || !e.filter) continue;
|
|
6203
6198
|
let n = t.get(e.colId) ?? [];
|
|
6204
6199
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
6205
6200
|
}
|
|
6206
6201
|
return t;
|
|
6207
|
-
},
|
|
6202
|
+
}, _c = (e) => e.map((e) => ({
|
|
6208
6203
|
...e,
|
|
6209
6204
|
children: e.children?.map((e) => ({
|
|
6210
6205
|
...e,
|
|
6211
|
-
children: e.children ?
|
|
6206
|
+
children: e.children ? _c(e.children) : void 0
|
|
6212
6207
|
}))
|
|
6213
|
-
})),
|
|
6208
|
+
})), vc = (e, t) => e.flatMap((e) => {
|
|
6214
6209
|
if (e.id === t) return [];
|
|
6215
|
-
let n = e.children ?
|
|
6210
|
+
let n = e.children ? vc(e.children, t) : void 0;
|
|
6216
6211
|
return [{
|
|
6217
6212
|
...e,
|
|
6218
6213
|
children: n?.length ? n : void 0
|
|
6219
6214
|
}];
|
|
6220
|
-
}),
|
|
6215
|
+
}), yc = (e, t) => {
|
|
6221
6216
|
for (let n of e) {
|
|
6222
6217
|
if (n.id === t) return n;
|
|
6223
|
-
let e = n.children ?
|
|
6218
|
+
let e = n.children ? yc(n.children, t) : void 0;
|
|
6224
6219
|
if (e) return e;
|
|
6225
6220
|
}
|
|
6226
|
-
},
|
|
6227
|
-
let r = (
|
|
6221
|
+
}, bc = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, xc = (e, t) => [...vc(e, t.id), t], Sc = (e) => (e.children ?? []).flatMap((e) => [e.value, ...Sc(e)]), Cc = (e, t) => Sc(t).reduce((e, t) => vc(e, t), e), wc = (e, t) => [t.value, ...Sc(t)].reduce((e, t) => vc(e, t), e), Tc = (e, t, n) => {
|
|
6222
|
+
let r = (cc(n, t.value) ?? []).slice(0, -1).reverse();
|
|
6228
6223
|
for (let t of r) {
|
|
6229
|
-
let n =
|
|
6224
|
+
let n = yc(e, t.value);
|
|
6230
6225
|
if (n?.state === "selected") return n;
|
|
6231
6226
|
}
|
|
6232
|
-
},
|
|
6233
|
-
let t =
|
|
6227
|
+
}, Ec = (e) => {
|
|
6228
|
+
let t = _c(e.state), n = Tc(t, e.option, e.options);
|
|
6234
6229
|
if (n) {
|
|
6235
6230
|
let r = n.children ?? [];
|
|
6236
|
-
return n.children = e.checked ?
|
|
6231
|
+
return n.children = e.checked ? wc(r, e.option) : [...wc(r, e.option), {
|
|
6237
6232
|
id: e.option.value,
|
|
6238
6233
|
state: "deselected"
|
|
6239
6234
|
}], n.children.length || delete n.children, t;
|
|
6240
6235
|
}
|
|
6241
|
-
return
|
|
6236
|
+
return bc(e.option) ? e.checked ? xc(Cc(t, e.option), {
|
|
6242
6237
|
id: e.option.value,
|
|
6243
6238
|
state: "selected"
|
|
6244
|
-
}) :
|
|
6239
|
+
}) : vc(t, e.option.value) : e.checked ? xc(t, {
|
|
6245
6240
|
id: e.option.value,
|
|
6246
6241
|
state: "selected"
|
|
6247
|
-
}) :
|
|
6248
|
-
},
|
|
6242
|
+
}) : vc(t, e.option.value);
|
|
6243
|
+
}, Dc = (e) => {
|
|
6249
6244
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
6250
6245
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
6251
6246
|
};
|
|
6252
6247
|
return n(e), t;
|
|
6253
|
-
},
|
|
6254
|
-
let t =
|
|
6248
|
+
}, Oc = (e) => {
|
|
6249
|
+
let t = Dc(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
6255
6250
|
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 = {
|
|
6256
|
-
indeterminate:
|
|
6251
|
+
indeterminate: dc(a?.children).length > 0 || !o && c || o && l,
|
|
6257
6252
|
selected: o
|
|
6258
6253
|
};
|
|
6259
6254
|
return n.set(e.value, u), u;
|
|
6260
6255
|
};
|
|
6261
6256
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
6262
6257
|
return n;
|
|
6263
|
-
},
|
|
6258
|
+
}, kc = (e) => Oc(e).get(e.option.value) ?? Oc({
|
|
6264
6259
|
options: [e.option],
|
|
6265
6260
|
state: e.state
|
|
6266
6261
|
}).get(e.option.value) ?? {
|
|
6267
6262
|
indeterminate: !1,
|
|
6268
6263
|
selected: !1
|
|
6269
|
-
},
|
|
6264
|
+
}, Ac = (e) => e.state.flatMap((t) => {
|
|
6270
6265
|
if (t.state !== "selected") return [];
|
|
6271
|
-
let n =
|
|
6266
|
+
let n = sc(e.options, t.id);
|
|
6272
6267
|
if (n) return [n];
|
|
6273
|
-
let { field: r, value: i } =
|
|
6268
|
+
let { field: r, value: i } = lc(t.id, e.options);
|
|
6274
6269
|
return [{
|
|
6275
6270
|
colField: r,
|
|
6276
6271
|
label: i,
|
|
6277
6272
|
metadata: { rawValue: i },
|
|
6278
|
-
value: r ?
|
|
6273
|
+
value: r ? Js(r, i) : t.id
|
|
6279
6274
|
}];
|
|
6280
|
-
}),
|
|
6275
|
+
}), jc = (e) => e.filter((e) => e.state === "selected").length, Mc = ["open"], Nc = {
|
|
6281
6276
|
class: "pv-flex pv-text-body-md",
|
|
6282
6277
|
style: {
|
|
6283
6278
|
"--flex-align": "center",
|
|
6284
6279
|
"--flex-gap": "0.5rem"
|
|
6285
6280
|
}
|
|
6286
|
-
},
|
|
6281
|
+
}, Pc = {
|
|
6287
6282
|
class: "pv-flex-vertical pv-surface-accent pv-inset-inline-24",
|
|
6288
6283
|
style: { "--flex-align": "stretch" }
|
|
6289
|
-
},
|
|
6284
|
+
}, Fc = {
|
|
6290
6285
|
key: 0,
|
|
6291
6286
|
class: "pv-flex-vertical",
|
|
6292
6287
|
style: {
|
|
6293
6288
|
"--flex-align": "stretch",
|
|
6294
6289
|
"--flex-gap": "0.5rem"
|
|
6295
6290
|
}
|
|
6296
|
-
},
|
|
6291
|
+
}, Ic = {
|
|
6297
6292
|
key: 0,
|
|
6298
6293
|
class: "pv-flex",
|
|
6299
6294
|
style: {
|
|
6300
6295
|
"--flex-gap": "0.5rem",
|
|
6301
6296
|
"--flex-wrap": "wrap"
|
|
6302
6297
|
}
|
|
6303
|
-
},
|
|
6298
|
+
}, Lc = {
|
|
6304
6299
|
key: 1,
|
|
6305
6300
|
class: "pv-flex",
|
|
6306
6301
|
style: { "--flex-justify": "flex-end" }
|
|
6307
|
-
},
|
|
6302
|
+
}, Rc = {
|
|
6308
6303
|
key: 1,
|
|
6309
6304
|
class: "pv-flex-vertical",
|
|
6310
6305
|
style: {
|
|
6311
6306
|
"--flex-align": "stretch",
|
|
6312
6307
|
"--flex-gap": "0.5rem"
|
|
6313
6308
|
}
|
|
6314
|
-
},
|
|
6309
|
+
}, zc = { key: 2 }, Bc = {
|
|
6315
6310
|
key: 1,
|
|
6316
6311
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6317
6312
|
style: { margin: "0" }
|
|
6318
|
-
},
|
|
6313
|
+
}, Vc = {
|
|
6319
6314
|
key: 1,
|
|
6320
6315
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6321
6316
|
style: { margin: "0" }
|
|
6322
|
-
},
|
|
6317
|
+
}, Hc = {
|
|
6323
6318
|
key: 2,
|
|
6324
6319
|
class: "pv-flex-vertical",
|
|
6325
6320
|
style: {
|
|
6326
6321
|
"--flex-align": "stretch",
|
|
6327
6322
|
"--flex-gap": "0.5rem"
|
|
6328
6323
|
}
|
|
6329
|
-
},
|
|
6324
|
+
}, Uc = { key: 0 }, Wc = {
|
|
6330
6325
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
6331
6326
|
style: { margin: "0" }
|
|
6332
|
-
},
|
|
6327
|
+
}, Gc = {
|
|
6333
6328
|
key: 1,
|
|
6334
6329
|
class: "pv-text-title-sm pv-text-subdued",
|
|
6335
6330
|
style: { margin: "0" }
|
|
6336
|
-
},
|
|
6331
|
+
}, Kc = {
|
|
6337
6332
|
key: 2,
|
|
6338
6333
|
class: "pv-text-body-xs pv-text-subdued",
|
|
6339
6334
|
style: { margin: "0" }
|
|
6340
|
-
},
|
|
6335
|
+
}, qc = {
|
|
6341
6336
|
key: 3,
|
|
6342
6337
|
class: "pv-flex-vertical",
|
|
6343
6338
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -6345,14 +6340,14 @@ var ki = {
|
|
|
6345
6340
|
"--flex-align": "stretch",
|
|
6346
6341
|
"--flex-gap": "0.5rem"
|
|
6347
6342
|
}
|
|
6348
|
-
},
|
|
6343
|
+
}, Jc = {
|
|
6349
6344
|
class: "pv-flex",
|
|
6350
6345
|
style: {
|
|
6351
6346
|
"--flex-align": "center",
|
|
6352
6347
|
"--flex-gap": "0.5rem",
|
|
6353
6348
|
"--flex-wrap": "wrap"
|
|
6354
6349
|
}
|
|
6355
|
-
},
|
|
6350
|
+
}, Yc = {
|
|
6356
6351
|
key: 4,
|
|
6357
6352
|
class: "pv-flex",
|
|
6358
6353
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -6361,7 +6356,7 @@ var ki = {
|
|
|
6361
6356
|
"--flex-gap": "0.5rem",
|
|
6362
6357
|
cursor: "pointer"
|
|
6363
6358
|
}
|
|
6364
|
-
},
|
|
6359
|
+
}, Xc = { class: "pv-text-body-sm" }, Zc = 5, Qc = 500, $c = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
6365
6360
|
__name: "PvFilterPanelAccordion",
|
|
6366
6361
|
props: { filter: {} },
|
|
6367
6362
|
emits: [
|
|
@@ -6373,7 +6368,7 @@ var ki = {
|
|
|
6373
6368
|
"search-change"
|
|
6374
6369
|
],
|
|
6375
6370
|
setup(e, { emit: n }) {
|
|
6376
|
-
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(
|
|
6371
|
+
let c = e, d = n, f = O({}), p = O(c.filter.searchQuery ?? ""), m = O(Zc), h = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), g = r(() => c.filter.valueLabels?.false ?? "No"), v = r(() => c.filter.options ?? []), y = r(() => [...c.filter.knownOptions ?? [], ...v.value]), S = r(() => c.filter.type ?? "value"), C = r(() => S.value === "value"), w = r(() => C.value && c.filter.isAggregate === !0), T = r(() => c.filter.aggregateSelectionState ?? []), D = r(() => p.value.trim().toLowerCase()), A = r(() => c.filter.selectedValues ?? []), ee = r(() => new Set(A.value)), M = r(() => c.filter.valueLabels?.true ?? "Yes"), P = r(() => c.filter.filterOptionsSortDescription || "Suggested"), te = (e) => {
|
|
6377
6372
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
6378
6373
|
return [
|
|
6379
6374
|
e.value,
|
|
@@ -6383,7 +6378,7 @@ var ki = {
|
|
|
6383
6378
|
e.matchedValue,
|
|
6384
6379
|
e.matchedField
|
|
6385
6380
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
6386
|
-
}, F = r(() => S.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ?
|
|
6381
|
+
}, F = r(() => S.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : S.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : S.value === "exists" ? c.filter.existsValue ? 1 : void 0 : w.value ? jc(T.value) || void 0 : A.value.length || void 0), I = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), L = (e, t = 0) => e.flatMap((e) => [
|
|
6387
6382
|
{
|
|
6388
6383
|
depth: t,
|
|
6389
6384
|
kind: "option",
|
|
@@ -6401,16 +6396,16 @@ var ki = {
|
|
|
6401
6396
|
}), z = r(() => w.value ? [] : A.value.map((e) => f.value[e] ?? {
|
|
6402
6397
|
label: e,
|
|
6403
6398
|
value: e
|
|
6404
|
-
})), ne = r(() => w.value ? R.value : R.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), re = r(() => ne.value.length > m.value), B = r(() => re.value || c.filter.hasMore), V = r(() => ne.value.slice(0, m.value)), U = r(() => w.value ?
|
|
6399
|
+
})), ne = r(() => w.value ? R.value : R.value.filter((e) => e.kind === "child-load-more" || !ee.value.has(e.option.value))), re = r(() => ne.value.length > m.value), B = r(() => re.value || c.filter.hasMore), V = r(() => ne.value.slice(0, m.value)), U = r(() => w.value ? Oc({
|
|
6405
6400
|
options: y.value,
|
|
6406
6401
|
state: T.value
|
|
6407
|
-
}) : /* @__PURE__ */ new Map()), G = (e) =>
|
|
6402
|
+
}) : /* @__PURE__ */ new Map()), G = (e) => Vs(e, c.filter.colDef), ie = (e) => Hs(e), K = (e) => w.value ? U.value.get(e.value) ?? {
|
|
6408
6403
|
indeterminate: !1,
|
|
6409
6404
|
selected: !1
|
|
6410
6405
|
} : {
|
|
6411
6406
|
indeterminate: !1,
|
|
6412
6407
|
selected: ee.value.has(e.value)
|
|
6413
|
-
}, ae = (e) => K(e).selected, oe = (e) => K(e).indeterminate, q = (e) =>
|
|
6408
|
+
}, ae = (e) => K(e).selected, oe = (e) => K(e).indeterminate, q = (e) => Ys(e) ?? e.value, se = (e) => Xs(e, c.filter.key), ce = (e) => {
|
|
6414
6409
|
let t = se(e), n = q(e);
|
|
6415
6410
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
6416
6411
|
}, le = (e) => ({
|
|
@@ -6439,7 +6434,7 @@ var ki = {
|
|
|
6439
6434
|
rowsLoading: c.filter.isLoading
|
|
6440
6435
|
}
|
|
6441
6436
|
})), Y = () => {
|
|
6442
|
-
re.value ? m.value +=
|
|
6437
|
+
re.value ? m.value += Zc : c.filter.hasMore && d("load-more", p.value.trim());
|
|
6443
6438
|
}, pe = (e) => {
|
|
6444
6439
|
d("load-more", p.value.trim(), e.value);
|
|
6445
6440
|
}, me = (e) => {
|
|
@@ -6464,7 +6459,7 @@ var ki = {
|
|
|
6464
6459
|
if (w.value) {
|
|
6465
6460
|
d("filter-change", {
|
|
6466
6461
|
type: "aggregate-selection",
|
|
6467
|
-
value:
|
|
6462
|
+
value: Ec({
|
|
6468
6463
|
checked: t,
|
|
6469
6464
|
option: e,
|
|
6470
6465
|
options: y.value,
|
|
@@ -6491,12 +6486,12 @@ var ki = {
|
|
|
6491
6486
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
6492
6487
|
};
|
|
6493
6488
|
H([p, () => c.filter.key], () => {
|
|
6494
|
-
m.value =
|
|
6489
|
+
m.value = Zc;
|
|
6495
6490
|
});
|
|
6496
6491
|
let Se = () => {
|
|
6497
|
-
let e =
|
|
6492
|
+
let e = Zs(y.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
6498
6493
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
6499
|
-
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
6494
|
+
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Qc)));
|
|
6500
6495
|
};
|
|
6501
6496
|
return H(y, () => {
|
|
6502
6497
|
c.filter.isOpen && Se();
|
|
@@ -6517,7 +6512,7 @@ var ki = {
|
|
|
6517
6512
|
"data-testid": "pv-filter-panel-accordion",
|
|
6518
6513
|
open: e.filter.isOpen,
|
|
6519
6514
|
onToggle: me
|
|
6520
|
-
}, [s("summary",
|
|
6515
|
+
}, [s("summary", Nc, [
|
|
6521
6516
|
u(X, {
|
|
6522
6517
|
"aria-hidden": "true",
|
|
6523
6518
|
class: "pv-text-subdued",
|
|
@@ -6530,9 +6525,9 @@ var ki = {
|
|
|
6530
6525
|
size: "sm",
|
|
6531
6526
|
variant: "secondary"
|
|
6532
6527
|
}, null, 8, ["value"])) : a("", !0)
|
|
6533
|
-
]), s("div",
|
|
6534
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div",
|
|
6535
|
-
e.filter.filterGroupOptions?.length ? (E(), o("div",
|
|
6528
|
+
]), s("div", Pc, [C.value ? (E(), o(t, { key: 0 }, [
|
|
6529
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (E(), o("div", Fc, [
|
|
6530
|
+
e.filter.filterGroupOptions?.length ? (E(), o("div", Ic, [(E(!0), o(t, null, k(e.filter.filterGroupOptions, (t) => (E(), i(Q, {
|
|
6536
6531
|
key: t.field,
|
|
6537
6532
|
disabled: e.filter.disabled,
|
|
6538
6533
|
label: t.label,
|
|
@@ -6545,7 +6540,7 @@ var ki = {
|
|
|
6545
6540
|
"variant",
|
|
6546
6541
|
"onClick"
|
|
6547
6542
|
]))), 128))])) : a("", !0),
|
|
6548
|
-
e.filter.displayPreferencesIcon ? (E(), o("div",
|
|
6543
|
+
e.filter.displayPreferencesIcon ? (E(), o("div", Lc, [u(Q, {
|
|
6549
6544
|
ariaLabel: "Open preferences",
|
|
6550
6545
|
disabled: e.filter.disabled,
|
|
6551
6546
|
leftIcon: "sliders-horizontal",
|
|
@@ -6566,7 +6561,7 @@ var ki = {
|
|
|
6566
6561
|
"disabled",
|
|
6567
6562
|
"placeholder"
|
|
6568
6563
|
]),
|
|
6569
|
-
z.value.length ? (E(), o("div",
|
|
6564
|
+
z.value.length ? (E(), o("div", Rc, [(E(!0), o(t, null, k(z.value, (t) => (E(), i(js, {
|
|
6570
6565
|
key: t.value,
|
|
6571
6566
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
6572
6567
|
"focus-text": e.filter.focusText,
|
|
@@ -6599,10 +6594,10 @@ var ki = {
|
|
|
6599
6594
|
"onFocusValue",
|
|
6600
6595
|
"onToggleValue"
|
|
6601
6596
|
]))), 128))])) : a("", !0),
|
|
6602
|
-
e.filter.isLoading ? (E(), o("div",
|
|
6603
|
-
!v.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p",
|
|
6604
|
-
ne.value.length || B.value ? (E(), o("div",
|
|
6605
|
-
ne.value.length ? (E(), o("div",
|
|
6597
|
+
e.filter.isLoading ? (E(), o("div", zc, [u(Oe, { size: "sm" })])) : (E(), o(t, { key: 3 }, [
|
|
6598
|
+
!v.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-values" }), null, 16)) : (E(), o("p", Bc, "No values available."))], 64)) : !R.value.length && !z.value.length && !B.value ? (E(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (E(), i(j(e.filter.emptyResultsRenderer), _({ key: 0 }, fe.value, { "empty-reason": "no-matches" }), null, 16)) : (E(), o("p", Vc, "No matching values."))], 64)) : a("", !0),
|
|
6599
|
+
ne.value.length || B.value ? (E(), o("div", Hc, [
|
|
6600
|
+
ne.value.length ? (E(), o("div", Uc, [e.filter.filterOptionsSortTooltip ? (E(), i(Pn, {
|
|
6606
6601
|
key: 0,
|
|
6607
6602
|
variant: "dark",
|
|
6608
6603
|
disableInteractive: !0,
|
|
@@ -6611,11 +6606,11 @@ var ki = {
|
|
|
6611
6606
|
"use-teleport": !0,
|
|
6612
6607
|
style: { "--max-width": "200px" }
|
|
6613
6608
|
}, {
|
|
6614
|
-
trigger: W(() => [s("p",
|
|
6609
|
+
trigger: W(() => [s("p", Wc, N(P.value), 1)]),
|
|
6615
6610
|
content: W(() => [l(N(e.filter.filterOptionsSortTooltip), 1)]),
|
|
6616
6611
|
_: 1
|
|
6617
|
-
})) : (E(), o("p",
|
|
6618
|
-
(E(!0), o(t, null, k(V.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(
|
|
6612
|
+
})) : (E(), o("p", Gc, N(P.value), 1))])) : a("", !0),
|
|
6613
|
+
(E(!0), o(t, null, k(V.value, (n) => (E(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (E(), i(js, {
|
|
6619
6614
|
key: 0,
|
|
6620
6615
|
depth: n.depth,
|
|
6621
6616
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
@@ -6678,7 +6673,7 @@ var ki = {
|
|
|
6678
6673
|
])) : a("", !0),
|
|
6679
6674
|
e.filter.filterFooterRenderer ? (E(), i(j(e.filter.filterFooterRenderer), b(_({ key: 3 }, fe.value)), null, 16)) : a("", !0)
|
|
6680
6675
|
], 64))
|
|
6681
|
-
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(
|
|
6676
|
+
], 64)) : S.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (E(), i(Ts, {
|
|
6682
6677
|
key: 1,
|
|
6683
6678
|
mode: "dual",
|
|
6684
6679
|
rangeValue: e.filter.rangeValue,
|
|
@@ -6699,7 +6694,7 @@ var ki = {
|
|
|
6699
6694
|
"min",
|
|
6700
6695
|
"step",
|
|
6701
6696
|
"value-decimals"
|
|
6702
|
-
])) : S.value === "range" ? (E(), o("p",
|
|
6697
|
+
])) : S.value === "range" ? (E(), o("p", Kc, " Range filters require minimum and maximum bounds. ")) : S.value === "boolean" ? (E(), o("div", qc, [s("div", Jc, [u(Q, {
|
|
6703
6698
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6704
6699
|
label: M.value,
|
|
6705
6700
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
@@ -6724,37 +6719,37 @@ var ki = {
|
|
|
6724
6719
|
label: "Clear",
|
|
6725
6720
|
variant: "ghost",
|
|
6726
6721
|
onClick: r[3] ||= (e) => he(null)
|
|
6727
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label",
|
|
6722
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : S.value === "exists" ? (E(), o("label", Yc, [u(Qa, {
|
|
6728
6723
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
6729
6724
|
modelValue: e.filter.existsValue ?? !1,
|
|
6730
6725
|
"onUpdate:modelValue": ge
|
|
6731
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
6726
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", Xc, N(h.value), 1)])) : a("", !0)])], 40, Mc));
|
|
6732
6727
|
}
|
|
6733
|
-
}), [["__scopeId", "data-v-014fc511"]]),
|
|
6728
|
+
}), [["__scopeId", "data-v-014fc511"]]), el = {
|
|
6734
6729
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
6735
6730
|
"data-testid": "pv-filter-panel-applied-section",
|
|
6736
6731
|
style: {
|
|
6737
6732
|
"--flex-align": "stretch",
|
|
6738
6733
|
"--flex-gap": "1rem"
|
|
6739
6734
|
}
|
|
6740
|
-
},
|
|
6735
|
+
}, tl = {
|
|
6741
6736
|
key: 0,
|
|
6742
6737
|
class: "pv-flex-vertical",
|
|
6743
6738
|
style: {
|
|
6744
6739
|
"--flex-align": "stretch",
|
|
6745
6740
|
"--flex-gap": "1rem"
|
|
6746
6741
|
}
|
|
6747
|
-
},
|
|
6742
|
+
}, nl = { class: "pv-text-title-md pv-stack-8" }, rl = {
|
|
6748
6743
|
class: "pv-flex",
|
|
6749
6744
|
style: {
|
|
6750
6745
|
"--flex-gap": "0.375rem",
|
|
6751
6746
|
"--flex-wrap": "wrap"
|
|
6752
6747
|
}
|
|
6753
|
-
},
|
|
6748
|
+
}, il = {
|
|
6754
6749
|
key: 1,
|
|
6755
6750
|
class: "pv-text-body-sm pv-text-subdued",
|
|
6756
6751
|
style: { margin: "0" }
|
|
6757
|
-
},
|
|
6752
|
+
}, al = /* @__PURE__ */ d({
|
|
6758
6753
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
6759
6754
|
props: {
|
|
6760
6755
|
appliedCount: { default: 0 },
|
|
@@ -6769,14 +6764,14 @@ var ki = {
|
|
|
6769
6764
|
let r = n, a = (e, t) => {
|
|
6770
6765
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
6771
6766
|
};
|
|
6772
|
-
return (n, r) => (E(), o("section",
|
|
6767
|
+
return (n, r) => (E(), o("section", el, [e.appliedCount ? (E(), o("div", tl, [(E(!0), o(t, null, k(e.appliedGroups, (n) => (E(), o("div", {
|
|
6773
6768
|
key: n.key,
|
|
6774
6769
|
class: "pv-flex-vertical pv-border-bottom",
|
|
6775
6770
|
style: {
|
|
6776
6771
|
"--flex-align": "stretch",
|
|
6777
6772
|
"padding-bottom": "4px"
|
|
6778
6773
|
}
|
|
6779
|
-
}, [s("span",
|
|
6774
|
+
}, [s("span", nl, N(n.label), 1), s("div", rl, [(E(!0), o(t, null, k(n.values, (t) => (E(), i(er, {
|
|
6780
6775
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
6781
6776
|
label: t.label,
|
|
6782
6777
|
showClear: !e.readOnly,
|
|
@@ -6785,9 +6780,9 @@ var ki = {
|
|
|
6785
6780
|
"label",
|
|
6786
6781
|
"showClear",
|
|
6787
6782
|
"onHandleClose"
|
|
6788
|
-
]))), 128))])]))), 128))])) : (E(), o("p",
|
|
6783
|
+
]))), 128))])]))), 128))])) : (E(), o("p", il, "No filters applied yet."))]));
|
|
6789
6784
|
}
|
|
6790
|
-
}),
|
|
6785
|
+
}), ol = { class: "pv-horizontal-scroller" }, sl = ["aria-label"], cl = 1, ll = /* @__PURE__ */ d({
|
|
6791
6786
|
__name: "PvHorizontalScroller",
|
|
6792
6787
|
props: {
|
|
6793
6788
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -6811,7 +6806,7 @@ var ki = {
|
|
|
6811
6806
|
let e = u.value;
|
|
6812
6807
|
if (!e) return;
|
|
6813
6808
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
6814
|
-
n.value = e.scrollLeft >
|
|
6809
|
+
n.value = e.scrollLeft > cl, c.value = e.scrollLeft < t - cl;
|
|
6815
6810
|
}, h = () => {
|
|
6816
6811
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
6817
6812
|
}, g = () => {
|
|
@@ -6831,7 +6826,7 @@ var ki = {
|
|
|
6831
6826
|
h(), g();
|
|
6832
6827
|
}), S(() => {
|
|
6833
6828
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
6834
|
-
}), (t, r) => (E(), o("div",
|
|
6829
|
+
}), (t, r) => (E(), o("div", ol, [
|
|
6835
6830
|
s("div", {
|
|
6836
6831
|
ref_key: "scrollContainer",
|
|
6837
6832
|
ref: u,
|
|
@@ -6842,7 +6837,7 @@ var ki = {
|
|
|
6842
6837
|
ref_key: "contentContainer",
|
|
6843
6838
|
ref: l,
|
|
6844
6839
|
class: "pv-horizontal-scroller-content"
|
|
6845
|
-
}, [A(t.$slots, "default")], 512)], 10,
|
|
6840
|
+
}, [A(t.$slots, "default")], 512)], 10, sl),
|
|
6846
6841
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
6847
6842
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
6848
6843
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -6875,18 +6870,18 @@ var ki = {
|
|
|
6875
6870
|
])) : a("", !0)], 2)
|
|
6876
6871
|
]));
|
|
6877
6872
|
}
|
|
6878
|
-
}),
|
|
6873
|
+
}), ul = {
|
|
6879
6874
|
key: 0,
|
|
6880
6875
|
class: "pv-border-bottom",
|
|
6881
6876
|
"data-testid": "pv-filter-panel-category-row"
|
|
6882
|
-
},
|
|
6877
|
+
}, dl = {
|
|
6883
6878
|
class: "pv-flex",
|
|
6884
6879
|
style: {
|
|
6885
6880
|
"--flex-align": "center",
|
|
6886
6881
|
"--flex-gap": "8px",
|
|
6887
6882
|
padding: "8px 12px"
|
|
6888
6883
|
}
|
|
6889
|
-
},
|
|
6884
|
+
}, fl = /* @__PURE__ */ d({
|
|
6890
6885
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
6891
6886
|
props: /* @__PURE__ */ g({
|
|
6892
6887
|
categoryOrder: {},
|
|
@@ -6907,7 +6902,7 @@ var ki = {
|
|
|
6907
6902
|
}, f = (e) => c.value === e ? "primary" : "secondary";
|
|
6908
6903
|
return H(l, (e) => {
|
|
6909
6904
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
6910
|
-
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div",
|
|
6905
|
+
}, { immediate: !0 }), (e, n) => l.value.length ? (E(), o("div", ul, [u(ll, {
|
|
6911
6906
|
ariaLabel: "Filter categories",
|
|
6912
6907
|
buttonSize: "md",
|
|
6913
6908
|
buttonVariant: "secondary",
|
|
@@ -6916,7 +6911,7 @@ var ki = {
|
|
|
6916
6911
|
rightAriaLabel: "Scroll filter categories right",
|
|
6917
6912
|
showFades: ""
|
|
6918
6913
|
}, {
|
|
6919
|
-
default: W(() => [s("div",
|
|
6914
|
+
default: W(() => [s("div", dl, [u(Q, {
|
|
6920
6915
|
label: "All",
|
|
6921
6916
|
size: "md",
|
|
6922
6917
|
variant: f(null),
|
|
@@ -6935,17 +6930,17 @@ var ki = {
|
|
|
6935
6930
|
_: 1
|
|
6936
6931
|
})])) : a("", !0);
|
|
6937
6932
|
}
|
|
6938
|
-
}),
|
|
6933
|
+
}), pl = (e, t, n) => {
|
|
6939
6934
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
6940
6935
|
if (r.length <= 1) return "Search";
|
|
6941
6936
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
6942
6937
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
6943
|
-
},
|
|
6944
|
-
if (!r ||
|
|
6938
|
+
}, ml = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), hl = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
6939
|
+
if (!r || ml(i) === ml(r)) return e;
|
|
6945
6940
|
if (!a || !n) return r;
|
|
6946
6941
|
let o = t(n);
|
|
6947
6942
|
return o ? `${o}: ${r}` : r;
|
|
6948
|
-
},
|
|
6943
|
+
}, gl = () => ({
|
|
6949
6944
|
booleanValue: null,
|
|
6950
6945
|
existsValue: !1,
|
|
6951
6946
|
rangeValue: {
|
|
@@ -6953,15 +6948,15 @@ var ki = {
|
|
|
6953
6948
|
min: null
|
|
6954
6949
|
},
|
|
6955
6950
|
values: []
|
|
6956
|
-
}),
|
|
6957
|
-
conditions: e.conditions.map(
|
|
6951
|
+
}), _l = (e) => typeof e == "object" && !!e && !Array.isArray(e), vl = (e) => _l(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", yl = (e) => _l(e) && e.filterType === "join" && Array.isArray(e.conditions), bl = (e) => e, xl = (e) => yl(e) ? {
|
|
6952
|
+
conditions: e.conditions.map(xl),
|
|
6958
6953
|
filterType: "join",
|
|
6959
6954
|
type: e.type
|
|
6960
|
-
} : { ...e },
|
|
6961
|
-
if (!
|
|
6962
|
-
if (
|
|
6955
|
+
} : { ...e }, Sl = (e) => {
|
|
6956
|
+
if (!_l(e)) return null;
|
|
6957
|
+
if (yl(e)) {
|
|
6963
6958
|
let t = e.conditions.flatMap((e) => {
|
|
6964
|
-
let t =
|
|
6959
|
+
let t = Sl(e);
|
|
6965
6960
|
return t ? [t] : [];
|
|
6966
6961
|
});
|
|
6967
6962
|
return t.length ? {
|
|
@@ -6970,43 +6965,43 @@ var ki = {
|
|
|
6970
6965
|
type: e.type === "OR" ? "OR" : "AND"
|
|
6971
6966
|
} : null;
|
|
6972
6967
|
}
|
|
6973
|
-
return
|
|
6974
|
-
},
|
|
6968
|
+
return vl(e) ? { ...e } : null;
|
|
6969
|
+
}, Cl = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, wl = (e) => _l(e) && !yl(e) && !vl(e), Tl = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), El = {
|
|
6975
6970
|
number: "agNumberColumnFilter",
|
|
6976
6971
|
set: "agSetColumnFilter",
|
|
6977
6972
|
text: "agTextColumnFilter"
|
|
6978
|
-
},
|
|
6973
|
+
}, Dl = (e) => {
|
|
6979
6974
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
6980
6975
|
let t = e.filterParams;
|
|
6981
6976
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
6982
|
-
},
|
|
6983
|
-
let n =
|
|
6984
|
-
return r ? n.findIndex((e) =>
|
|
6985
|
-
},
|
|
6986
|
-
let n =
|
|
6977
|
+
}, Ol = (e, t) => {
|
|
6978
|
+
let n = Dl(e), r = t.filterType ? El[t.filterType] : void 0;
|
|
6979
|
+
return r ? n.findIndex((e) => _l(e) && e.filter === r) : -1;
|
|
6980
|
+
}, kl = (e, t) => {
|
|
6981
|
+
let n = Dl(e);
|
|
6987
6982
|
if (!n.length) return null;
|
|
6988
|
-
let r = Array(n.length).fill(null), i =
|
|
6983
|
+
let r = Array(n.length).fill(null), i = Ol(e, t);
|
|
6989
6984
|
return i < 0 ? null : (r[i] = t, {
|
|
6990
6985
|
filterModels: r,
|
|
6991
6986
|
filterType: "multi"
|
|
6992
6987
|
});
|
|
6993
|
-
},
|
|
6994
|
-
if (!
|
|
6988
|
+
}, Al = (e, t) => {
|
|
6989
|
+
if (!wl(e)) return null;
|
|
6995
6990
|
let n = e[t];
|
|
6996
|
-
return
|
|
6997
|
-
},
|
|
6991
|
+
return _l(n) ? n : null;
|
|
6992
|
+
}, jl = (e) => e ? Tl(e) ? e.filterModels.filter((e) => _l(e)) : [e] : [], Ml = (e) => wl(e) ? { ...e } : {}, Nl = (e) => Tl(e) ? {
|
|
6998
6993
|
...e,
|
|
6999
6994
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
7000
|
-
} : { ...e },
|
|
7001
|
-
let n =
|
|
6995
|
+
} : { ...e }, Pl = (e, t) => {
|
|
6996
|
+
let n = Ml(e);
|
|
7002
6997
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
7003
|
-
},
|
|
6998
|
+
}, Fl = /* @__PURE__ */ new Set(), Il = (e, t) => {
|
|
7004
6999
|
let n = `${e}:${t ?? "unknown"}`;
|
|
7005
|
-
|
|
7006
|
-
},
|
|
7007
|
-
let a =
|
|
7008
|
-
if (
|
|
7009
|
-
let o =
|
|
7000
|
+
Fl.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.`), Fl.add(n));
|
|
7001
|
+
}, Ll = (e, t, n, r, i) => {
|
|
7002
|
+
let a = Al(e, t);
|
|
7003
|
+
if (Tl(a) && r) {
|
|
7004
|
+
let o = Ml(e), s = Nl(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
7010
7005
|
if (!n) {
|
|
7011
7006
|
for (let e of l) c[e] = null;
|
|
7012
7007
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -7019,15 +7014,15 @@ var ki = {
|
|
|
7019
7014
|
c[e] = n;
|
|
7020
7015
|
for (let e of t) c[e] = null;
|
|
7021
7016
|
} else {
|
|
7022
|
-
let e =
|
|
7017
|
+
let e = Ol(i, n), r = c.findIndex((e) => !e), a = Dl(i).length > 0;
|
|
7023
7018
|
if (e >= 0) {
|
|
7024
7019
|
for (; c.length <= e;) c.push(null);
|
|
7025
|
-
c[e] &&
|
|
7020
|
+
c[e] && Il(t, n.filterType), c[e] = n;
|
|
7026
7021
|
} else if (r >= 0) c[r] = n;
|
|
7027
7022
|
else if (!a) c.push(n);
|
|
7028
7023
|
else {
|
|
7029
7024
|
let e = Math.max(0, c.length - 1);
|
|
7030
|
-
|
|
7025
|
+
Il(t, n.filterType), c[e] = n;
|
|
7031
7026
|
}
|
|
7032
7027
|
}
|
|
7033
7028
|
return o[t] = {
|
|
@@ -7035,54 +7030,54 @@ var ki = {
|
|
|
7035
7030
|
filterModels: c
|
|
7036
7031
|
}, o;
|
|
7037
7032
|
}
|
|
7038
|
-
if (!n) return
|
|
7039
|
-
let o =
|
|
7040
|
-
return o[t] =
|
|
7041
|
-
},
|
|
7033
|
+
if (!n) return Pl(e, t);
|
|
7034
|
+
let o = Ml(e);
|
|
7035
|
+
return o[t] = kl(i, n) ?? n, o;
|
|
7036
|
+
}, Rl = (e, t) => {
|
|
7042
7037
|
if (e) {
|
|
7043
|
-
if (
|
|
7044
|
-
e.conditions.forEach((e) =>
|
|
7038
|
+
if (yl(e)) {
|
|
7039
|
+
e.conditions.forEach((e) => Rl(e, t));
|
|
7045
7040
|
return;
|
|
7046
7041
|
}
|
|
7047
7042
|
t(e);
|
|
7048
7043
|
}
|
|
7049
|
-
},
|
|
7050
|
-
if (!
|
|
7044
|
+
}, zl = (e, t) => yl(e) ? e.conditions.length > 0 && e.conditions.every((e) => zl(e, t)) : e.colId === t, Bl = (e) => {
|
|
7045
|
+
if (!yl(e)) return e.colId;
|
|
7051
7046
|
let t = /* @__PURE__ */ new Set();
|
|
7052
|
-
return
|
|
7053
|
-
},
|
|
7054
|
-
if (!e ||
|
|
7055
|
-
if (!
|
|
7056
|
-
let n = e.conditions.flatMap((e) =>
|
|
7047
|
+
return Rl(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
7048
|
+
}, Vl = (e, t) => {
|
|
7049
|
+
if (!e || zl(e, t)) return null;
|
|
7050
|
+
if (!yl(e) || e.type !== "AND") return xl(e);
|
|
7051
|
+
let n = e.conditions.flatMap((e) => zl(e, t) ? [] : [xl(e)]);
|
|
7057
7052
|
return n.length ? n.length === 1 ? n[0] : {
|
|
7058
7053
|
conditions: n,
|
|
7059
7054
|
filterType: e.filterType,
|
|
7060
7055
|
type: e.type
|
|
7061
7056
|
} : null;
|
|
7062
|
-
},
|
|
7063
|
-
let r =
|
|
7064
|
-
return n ? r ?
|
|
7057
|
+
}, Hl = (e, t, n) => {
|
|
7058
|
+
let r = Vl(Sl(e), t);
|
|
7059
|
+
return n ? r ? yl(r) && r.type === "AND" ? bl({
|
|
7065
7060
|
...r,
|
|
7066
7061
|
conditions: [...r.conditions, n]
|
|
7067
|
-
}) :
|
|
7062
|
+
}) : bl({
|
|
7068
7063
|
conditions: [r, n],
|
|
7069
7064
|
filterType: "join",
|
|
7070
7065
|
type: "AND"
|
|
7071
|
-
}) :
|
|
7072
|
-
},
|
|
7066
|
+
}) : bl(n) : bl(r);
|
|
7067
|
+
}, Ul = (e, t) => {
|
|
7073
7068
|
e.includes(t) || e.push(t);
|
|
7074
|
-
},
|
|
7069
|
+
}, Wl = (e) => {
|
|
7075
7070
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
7076
7071
|
let t = String(e.filter);
|
|
7077
7072
|
return t === "true" || t === "false";
|
|
7078
|
-
},
|
|
7073
|
+
}, Gl = (e) => e.filterType === "boolean" || Wl(e), Kl = (e, t) => {
|
|
7079
7074
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7080
|
-
e.values.forEach((e) =>
|
|
7075
|
+
e.values.forEach((e) => Ul(t.values, String(e)));
|
|
7081
7076
|
return;
|
|
7082
7077
|
}
|
|
7083
7078
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7084
7079
|
let n = String(e.filter);
|
|
7085
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7080
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ul(t.values, n);
|
|
7086
7081
|
return;
|
|
7087
7082
|
}
|
|
7088
7083
|
if (e.filterType === "boolean") {
|
|
@@ -7106,7 +7101,7 @@ var ki = {
|
|
|
7106
7101
|
...t.rangeValue,
|
|
7107
7102
|
max: e.filter
|
|
7108
7103
|
}));
|
|
7109
|
-
},
|
|
7104
|
+
}, ql = (e, t) => {
|
|
7110
7105
|
if (e.type === "notBlank") {
|
|
7111
7106
|
t.existsValue = !0;
|
|
7112
7107
|
return;
|
|
@@ -7116,12 +7111,12 @@ var ki = {
|
|
|
7116
7111
|
return;
|
|
7117
7112
|
}
|
|
7118
7113
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
7119
|
-
e.values.forEach((e) =>
|
|
7114
|
+
e.values.forEach((e) => Ul(t.values, String(e)));
|
|
7120
7115
|
return;
|
|
7121
7116
|
}
|
|
7122
7117
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
7123
7118
|
let n = String(e.filter);
|
|
7124
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
7119
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ul(t.values, n);
|
|
7125
7120
|
return;
|
|
7126
7121
|
}
|
|
7127
7122
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -7134,29 +7129,29 @@ var ki = {
|
|
|
7134
7129
|
...t.rangeValue,
|
|
7135
7130
|
max: e.filter
|
|
7136
7131
|
}));
|
|
7137
|
-
},
|
|
7132
|
+
}, Jl = (e, t = "advanced") => {
|
|
7138
7133
|
let n = /* @__PURE__ */ new Map();
|
|
7139
7134
|
if (t === "regular") {
|
|
7140
|
-
if (!
|
|
7135
|
+
if (!wl(e)) return n;
|
|
7141
7136
|
for (let [t, r] of Object.entries(e)) {
|
|
7142
|
-
let e =
|
|
7143
|
-
|
|
7137
|
+
let e = gl();
|
|
7138
|
+
jl(r).forEach((t) => Kl(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
7144
7139
|
}
|
|
7145
7140
|
return n;
|
|
7146
7141
|
}
|
|
7147
|
-
let r =
|
|
7142
|
+
let r = Sl(e);
|
|
7148
7143
|
if (!r) return n;
|
|
7149
|
-
let i =
|
|
7144
|
+
let i = yl(r) && r.type === "AND" ? r.conditions : [r];
|
|
7150
7145
|
for (let e of i) {
|
|
7151
|
-
let t =
|
|
7146
|
+
let t = Bl(e);
|
|
7152
7147
|
if (!t) continue;
|
|
7153
|
-
let r = n.get(t) ??
|
|
7154
|
-
|
|
7155
|
-
e.colId === t &&
|
|
7148
|
+
let r = n.get(t) ?? gl();
|
|
7149
|
+
Rl(e, (e) => {
|
|
7150
|
+
e.colId === t && ql(e, r);
|
|
7156
7151
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
7157
7152
|
}
|
|
7158
7153
|
return n;
|
|
7159
|
-
},
|
|
7154
|
+
}, Yl = (e, t = "advanced") => t === "regular" ? wl(e) && Object.keys(e).length > 0 : Sl(e) !== null, Xl = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Zl = (e, t, n = "advanced") => n === "regular" ? Pl(e, t) : bl(Vl(Sl(e), t)), Ql = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? Ll(e, t, null, Gl, a) : Zl(e, t, r) : r === "regular" ? Ll(e, t, i === "text" ? {
|
|
7160
7155
|
filter: String(n),
|
|
7161
7156
|
filterType: "text",
|
|
7162
7157
|
type: "equals"
|
|
@@ -7164,30 +7159,30 @@ var ki = {
|
|
|
7164
7159
|
filter: n,
|
|
7165
7160
|
filterType: "boolean",
|
|
7166
7161
|
type: n ? "true" : "false"
|
|
7167
|
-
},
|
|
7162
|
+
}, Gl, a) : i === "text" ? Hl(e, t, {
|
|
7168
7163
|
colId: t,
|
|
7169
7164
|
filter: String(n),
|
|
7170
7165
|
filterType: "text",
|
|
7171
7166
|
type: "equals"
|
|
7172
|
-
}) :
|
|
7167
|
+
}) : Hl(e, t, {
|
|
7173
7168
|
colId: t,
|
|
7174
7169
|
filterType: "boolean",
|
|
7175
7170
|
type: n ? "true" : "false"
|
|
7176
|
-
}),
|
|
7171
|
+
}), $l = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? Ll(e, t, {
|
|
7177
7172
|
filterType: r,
|
|
7178
7173
|
type: "notBlank"
|
|
7179
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
7174
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Hl(e, t, {
|
|
7180
7175
|
colId: t,
|
|
7181
7176
|
filterType: r,
|
|
7182
7177
|
type: "notBlank"
|
|
7183
|
-
}) : i === "regular" ?
|
|
7184
|
-
let o =
|
|
7185
|
-
if (i === "regular") return o === null && s === null ?
|
|
7178
|
+
}) : i === "regular" ? Ll(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Zl(e, t, i), eu = (e, t, n, r, i = "advanced", a) => {
|
|
7179
|
+
let o = Cl(n), s = Cl(r);
|
|
7180
|
+
if (i === "regular") return o === null && s === null ? Ll(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? Ll(e, t, {
|
|
7186
7181
|
filter: o,
|
|
7187
7182
|
filterTo: s,
|
|
7188
7183
|
filterType: "number",
|
|
7189
7184
|
type: "inRange"
|
|
7190
|
-
}, (e) => e.filterType === "number", a) :
|
|
7185
|
+
}, (e) => e.filterType === "number", a) : Ll(e, t, {
|
|
7191
7186
|
filter: o ?? s,
|
|
7192
7187
|
filterType: "number",
|
|
7193
7188
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -7203,29 +7198,29 @@ var ki = {
|
|
|
7203
7198
|
filter: s,
|
|
7204
7199
|
filterType: "number",
|
|
7205
7200
|
type: "lessThanOrEqual"
|
|
7206
|
-
}), c.length ?
|
|
7201
|
+
}), c.length ? Hl(e, t, c.length === 1 ? c[0] : {
|
|
7207
7202
|
conditions: c,
|
|
7208
7203
|
filterType: "join",
|
|
7209
7204
|
type: "AND"
|
|
7210
|
-
}) :
|
|
7211
|
-
},
|
|
7205
|
+
}) : Zl(e, t);
|
|
7206
|
+
}, tu = (e, t, n, r = "advanced", i) => {
|
|
7212
7207
|
let a = Array.from(new Set(n));
|
|
7213
|
-
if (r === "regular") return a.length ?
|
|
7208
|
+
if (r === "regular") return a.length ? Ll(e, t, {
|
|
7214
7209
|
filterType: "set",
|
|
7215
7210
|
values: a
|
|
7216
|
-
}, (e) => e.filterType === "set", i) :
|
|
7211
|
+
}, (e) => e.filterType === "set", i) : Ll(e, t, null, (e) => e.filterType === "set", i);
|
|
7217
7212
|
let o = a.map((e) => ({
|
|
7218
7213
|
colId: t,
|
|
7219
7214
|
filter: e,
|
|
7220
7215
|
filterType: "text",
|
|
7221
7216
|
type: "equals"
|
|
7222
7217
|
}));
|
|
7223
|
-
return o.length ?
|
|
7218
|
+
return o.length ? Hl(e, t, o.length === 1 ? o[0] : {
|
|
7224
7219
|
conditions: o,
|
|
7225
7220
|
filterType: "join",
|
|
7226
7221
|
type: "OR"
|
|
7227
|
-
}) :
|
|
7228
|
-
},
|
|
7222
|
+
}) : Zl(e, t);
|
|
7223
|
+
}, nu = Symbol("PvFilterStore"), ru = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, iu = (e, t) => t ?? e, au = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), ou = (e) => {
|
|
7229
7224
|
let t = /* @__PURE__ */ new Map();
|
|
7230
7225
|
for (let n of e) {
|
|
7231
7226
|
if (!n) continue;
|
|
@@ -7237,34 +7232,34 @@ var ki = {
|
|
|
7237
7232
|
t.set(n.value, {
|
|
7238
7233
|
...e,
|
|
7239
7234
|
...n,
|
|
7240
|
-
children:
|
|
7241
|
-
totalChildCount:
|
|
7235
|
+
children: ou([...e.children ?? [], ...n.children ?? []]),
|
|
7236
|
+
totalChildCount: iu(e.totalChildCount, n.totalChildCount)
|
|
7242
7237
|
});
|
|
7243
7238
|
}
|
|
7244
7239
|
return [...t.values()];
|
|
7245
|
-
},
|
|
7240
|
+
}, su = (e, t) => {
|
|
7246
7241
|
for (let n of e ?? []) {
|
|
7247
7242
|
if (!n) continue;
|
|
7248
7243
|
if (n.value === t) return n;
|
|
7249
|
-
let e =
|
|
7244
|
+
let e = su(n.children, t);
|
|
7250
7245
|
if (e) return e;
|
|
7251
7246
|
}
|
|
7252
|
-
},
|
|
7247
|
+
}, cu = (e, t, n) => {
|
|
7253
7248
|
if (!e || t === null) return !1;
|
|
7254
7249
|
if (e.value === t) return !0;
|
|
7255
|
-
let r =
|
|
7256
|
-
return r !== null && r === t ||
|
|
7257
|
-
},
|
|
7258
|
-
let r =
|
|
7250
|
+
let r = Ys(e);
|
|
7251
|
+
return r !== null && r === t || Qs(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => cu(e, t, n)) ?? !1;
|
|
7252
|
+
}, lu = (e, t, n) => {
|
|
7253
|
+
let r = su(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7259
7254
|
return e.map((e) => e && (e.value === t ? {
|
|
7260
7255
|
...e,
|
|
7261
|
-
children:
|
|
7262
|
-
totalChildCount:
|
|
7256
|
+
children: ou([...e.children ?? [], ...i]),
|
|
7257
|
+
totalChildCount: iu(e.totalChildCount, r?.totalChildCount)
|
|
7263
7258
|
} : e.children?.length ? {
|
|
7264
7259
|
...e,
|
|
7265
|
-
children:
|
|
7260
|
+
children: lu(e.children, t, n).filter((e) => !!e)
|
|
7266
7261
|
} : e));
|
|
7267
|
-
},
|
|
7262
|
+
}, uu = (e, t) => `${e}::${t}`, du = () => {
|
|
7268
7263
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
7269
7264
|
_.value = e;
|
|
7270
7265
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7273,11 +7268,11 @@ var ki = {
|
|
|
7273
7268
|
let r = n ? o : i;
|
|
7274
7269
|
r.value[e] = t;
|
|
7275
7270
|
}, w = () => {
|
|
7276
|
-
o.value =
|
|
7271
|
+
o.value = au(i.value), s.value = au(a.value);
|
|
7277
7272
|
}, T = () => {
|
|
7278
7273
|
o.value = {}, s.value = {};
|
|
7279
7274
|
}, E = () => {
|
|
7280
|
-
i.value =
|
|
7275
|
+
i.value = au(o.value), a.value = au(s.value), T();
|
|
7281
7276
|
}, D = (e, t) => {
|
|
7282
7277
|
c.value[e] = t;
|
|
7283
7278
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7299,7 +7294,7 @@ var ki = {
|
|
|
7299
7294
|
if (!o) return [];
|
|
7300
7295
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7301
7296
|
c.value[n.field] = s;
|
|
7302
|
-
let l = n.parentId ?
|
|
7297
|
+
let l = n.parentId ? su(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? uu(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7303
7298
|
h.value[b] = x;
|
|
7304
7299
|
try {
|
|
7305
7300
|
let c = await o({
|
|
@@ -7310,17 +7305,17 @@ var ki = {
|
|
|
7310
7305
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7311
7306
|
});
|
|
7312
7307
|
if (h.value[b] !== x) return [];
|
|
7313
|
-
let l =
|
|
7308
|
+
let l = ru(c);
|
|
7314
7309
|
if (n.parentId) {
|
|
7315
|
-
let e =
|
|
7310
|
+
let e = uu(n.field, n.parentId);
|
|
7316
7311
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7317
7312
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7318
7313
|
let _ = a.value[n.field] ?? [], y;
|
|
7319
|
-
y = n.parentId ?
|
|
7314
|
+
y = n.parentId ? lu(r.value[n.field] ?? [], n.parentId, l.values) : v ? ou([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7320
7315
|
for (let e of _) {
|
|
7321
7316
|
if (!e) continue;
|
|
7322
|
-
let t =
|
|
7323
|
-
y.some((e) =>
|
|
7317
|
+
let t = Ys(e) ?? e.value;
|
|
7318
|
+
y.some((e) => cu(e, t, n.field)) || y.push(e);
|
|
7324
7319
|
}
|
|
7325
7320
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7326
7321
|
} finally {
|
|
@@ -7353,20 +7348,20 @@ var ki = {
|
|
|
7353
7348
|
stagedFilterSelectedMetadataMap: s,
|
|
7354
7349
|
stagedFilterSelectedValueMap: o
|
|
7355
7350
|
};
|
|
7356
|
-
},
|
|
7357
|
-
D(
|
|
7358
|
-
},
|
|
7351
|
+
}, fu = (e) => {
|
|
7352
|
+
D(nu, e);
|
|
7353
|
+
}, pu = () => m(nu, null), mu = () => pu() ?? du(), hu = "__range__", gu = "__boolean__", _u = "__exists__", vu = new Set([
|
|
7359
7354
|
"value",
|
|
7360
7355
|
"range",
|
|
7361
7356
|
"boolean",
|
|
7362
7357
|
"exists"
|
|
7363
7358
|
]);
|
|
7364
|
-
function
|
|
7359
|
+
function yu(e, t, n) {
|
|
7365
7360
|
f();
|
|
7366
|
-
let i = O(t.value), a =
|
|
7361
|
+
let i = O(t.value), a = du(), o = pu(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = /* @__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(() => {
|
|
7367
7362
|
let n = p.value;
|
|
7368
7363
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
7369
|
-
}), y = r(() =>
|
|
7364
|
+
}), y = r(() => Jl(v.value, _.value)), b = (e, t) => {
|
|
7370
7365
|
let n = e.applyFilterModel;
|
|
7371
7366
|
if (typeof n == "function") {
|
|
7372
7367
|
n(t);
|
|
@@ -7457,7 +7452,7 @@ function xu(e, t, n) {
|
|
|
7457
7452
|
});
|
|
7458
7453
|
let D = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, ee = (e) => {
|
|
7459
7454
|
let t = D(e), n = t.filterPanelType;
|
|
7460
|
-
if (n &&
|
|
7455
|
+
if (n && vu.has(n)) return n;
|
|
7461
7456
|
if (t.filterPanelRange) return "range";
|
|
7462
7457
|
if (t.dataType === "boolean") return "boolean";
|
|
7463
7458
|
if (e.filter) return "value";
|
|
@@ -7497,30 +7492,30 @@ function xu(e, t, n) {
|
|
|
7497
7492
|
...r,
|
|
7498
7493
|
...i
|
|
7499
7494
|
].filter(Boolean)));
|
|
7500
|
-
}, G = (e) => _.value === "advanced" &&
|
|
7495
|
+
}, G = (e) => _.value === "advanced" && oc(e), ie = (e, t) => G(e) ? gc({
|
|
7501
7496
|
colDef: e,
|
|
7502
7497
|
model: v.value,
|
|
7503
7498
|
options: t
|
|
7504
7499
|
}) : new Map(W(e).map((e) => [e, y.value.get(e)?.values ?? []])), K = (e, t, n, r) => {
|
|
7505
7500
|
let i = /* @__PURE__ */ new Set();
|
|
7506
|
-
for (let t of
|
|
7501
|
+
for (let t of Zs(r)) for (let [r, a] of n) for (let n of a) Qs(t, r, n, e) && i.add(`${r}:${n}`);
|
|
7507
7502
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
7508
7503
|
colField: t === e ? void 0 : t,
|
|
7509
7504
|
label: n,
|
|
7510
7505
|
metadata: { rawValue: n },
|
|
7511
|
-
value: t === e ? n :
|
|
7506
|
+
value: t === e ? n : Js(t, n)
|
|
7512
7507
|
}]));
|
|
7513
7508
|
}, ae = (e, t, n) => {
|
|
7514
7509
|
let r = /* @__PURE__ */ new Set();
|
|
7515
|
-
for (let i of
|
|
7516
|
-
let n =
|
|
7510
|
+
for (let i of Zs(n)) {
|
|
7511
|
+
let n = Xs(i, e), a = Ys(i);
|
|
7517
7512
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
7518
7513
|
}
|
|
7519
7514
|
return Array.from(r);
|
|
7520
7515
|
}, oe = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), q = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), se = (e) => q(e)?.headerName ?? e, ce = (e) => {
|
|
7521
7516
|
let t = D(e);
|
|
7522
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
7523
|
-
}, le = (e, t) =>
|
|
7517
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : pl(k(e), t.queryColIds, se);
|
|
7518
|
+
}, le = (e, t) => hl({
|
|
7524
7519
|
fallbackSubText: e.subText,
|
|
7525
7520
|
getDisplayName: se,
|
|
7526
7521
|
matchedField: e.matchedField,
|
|
@@ -7538,7 +7533,7 @@ function xu(e, t, n) {
|
|
|
7538
7533
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
7539
7534
|
label: q(e)?.headerName ?? e
|
|
7540
7535
|
}));
|
|
7541
|
-
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) =>
|
|
7536
|
+
}, J = (e) => Y.value.find((t) => t.key === e) ?? Y.value.find((t) => W(t.colDef).includes(e)), fe = (e, t, n) => Zs(J(e)?.knownOptions ?? []).find((r) => r.value === n || Qs(r, t, n, e)), Y = r(() => e.colDefs.filter(P).map((t) => {
|
|
7542
7537
|
let n = k(t), r = D(t), i = j(t), a = ue(te(n), t), o = ue(re(n), t), s = {
|
|
7543
7538
|
category: M(t),
|
|
7544
7539
|
colDef: t,
|
|
@@ -7590,7 +7585,7 @@ function xu(e, t, n) {
|
|
|
7590
7585
|
...s,
|
|
7591
7586
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
7592
7587
|
};
|
|
7593
|
-
let c = o, l = ie(t, c), u = K(n, t, l, c), d = [...c, ...u], f = G(t) ?
|
|
7588
|
+
let c = o, l = ie(t, c), u = K(n, t, l, c), d = [...c, ...u], f = G(t) ? hc({
|
|
7594
7589
|
colDef: t,
|
|
7595
7590
|
model: v.value,
|
|
7596
7591
|
options: d
|
|
@@ -7609,19 +7604,19 @@ function xu(e, t, n) {
|
|
|
7609
7604
|
label: e.label,
|
|
7610
7605
|
values: t
|
|
7611
7606
|
}] : [];
|
|
7612
|
-
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() =>
|
|
7607
|
+
})), me = r(() => pe.value.reduce((e, t) => e + t.values.length, 0)), he = r(() => Yl(v.value, _.value)), ge = r(() => he.value || me.value > 0), _e = (e) => {
|
|
7613
7608
|
let t = J(e.field);
|
|
7614
7609
|
if (!t || t.type !== e.filter.type) return !0;
|
|
7615
7610
|
if (e.filter.type === "value") {
|
|
7616
7611
|
if (t.isAggregate && e.option) {
|
|
7617
|
-
let { selected: n } =
|
|
7612
|
+
let { selected: n } = kc({
|
|
7618
7613
|
option: e.option,
|
|
7619
7614
|
options: t.knownOptions ?? [],
|
|
7620
7615
|
state: t.aggregateSelectionState ?? []
|
|
7621
7616
|
});
|
|
7622
7617
|
return e.filter.checked ? n : !n;
|
|
7623
7618
|
}
|
|
7624
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
7619
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Ys(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
7625
7620
|
return e.filter.checked ? a : !a;
|
|
7626
7621
|
}
|
|
7627
7622
|
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;
|
|
@@ -7635,14 +7630,14 @@ function xu(e, t, n) {
|
|
|
7635
7630
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
7636
7631
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
7637
7632
|
if (!e) return !1;
|
|
7638
|
-
let r =
|
|
7633
|
+
let r = Xs(e, t), i = Ys(e) ?? e.value;
|
|
7639
7634
|
return r !== n || c.has(i);
|
|
7640
7635
|
});
|
|
7641
7636
|
if (i) {
|
|
7642
|
-
let e =
|
|
7637
|
+
let e = Ys(i) ?? i.value, n = Xs(i, t);
|
|
7643
7638
|
l.some((r) => {
|
|
7644
|
-
let i =
|
|
7645
|
-
return
|
|
7639
|
+
let i = Ys(r) ?? r.value;
|
|
7640
|
+
return Xs(r, t) === n && i === e;
|
|
7646
7641
|
}) || l.push(i);
|
|
7647
7642
|
}
|
|
7648
7643
|
o.value[t] = l;
|
|
@@ -7652,7 +7647,7 @@ function xu(e, t, n) {
|
|
|
7652
7647
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
7653
7648
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
7654
7649
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
7655
|
-
a.value[t.key] =
|
|
7650
|
+
a.value[t.key] = Ac({
|
|
7656
7651
|
options: t.knownOptions ?? [],
|
|
7657
7652
|
state: n
|
|
7658
7653
|
});
|
|
@@ -7681,48 +7676,48 @@ function xu(e, t, n) {
|
|
|
7681
7676
|
return t === null ? [] : [{
|
|
7682
7677
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
7683
7678
|
type: "boolean",
|
|
7684
|
-
value:
|
|
7679
|
+
value: gu
|
|
7685
7680
|
}];
|
|
7686
7681
|
}, Te = (e) => e.existsValue ? [{
|
|
7687
7682
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
7688
7683
|
type: "exists",
|
|
7689
|
-
value:
|
|
7684
|
+
value: _u
|
|
7690
7685
|
}] : [], Ee = (e) => {
|
|
7691
7686
|
let t = e.rangeValue ?? {
|
|
7692
7687
|
max: null,
|
|
7693
7688
|
min: null
|
|
7694
7689
|
};
|
|
7695
7690
|
return t.min === null && t.max === null ? [] : [{
|
|
7696
|
-
label:
|
|
7691
|
+
label: Rs(t.min, t.max, {
|
|
7697
7692
|
dataType: e.dataType,
|
|
7698
7693
|
valueDecimals: e.valueDecimals
|
|
7699
7694
|
}),
|
|
7700
7695
|
type: "range",
|
|
7701
|
-
value:
|
|
7696
|
+
value: hu
|
|
7702
7697
|
}];
|
|
7703
7698
|
}, De = (e, t, n) => {
|
|
7704
7699
|
let r = n.get(t) ?? null;
|
|
7705
7700
|
return {
|
|
7706
|
-
field: r ?
|
|
7707
|
-
label: r ?
|
|
7708
|
-
resultCount:
|
|
7701
|
+
field: r ? Xs(r, e.key) : void 0,
|
|
7702
|
+
label: r ? Vs(r, e.colDef) : t,
|
|
7703
|
+
resultCount: Hs(r),
|
|
7709
7704
|
subText: r?.subText,
|
|
7710
7705
|
subduedText: r?.subduedText,
|
|
7711
7706
|
type: "value",
|
|
7712
|
-
value: r ?
|
|
7707
|
+
value: r ? Ys(r) ?? r.value : t
|
|
7713
7708
|
};
|
|
7714
7709
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
7715
7710
|
field: e.field,
|
|
7716
7711
|
label: e.label,
|
|
7717
7712
|
type: "boolean",
|
|
7718
|
-
value:
|
|
7719
|
-
}] : []), ke = (e) =>
|
|
7713
|
+
value: gu
|
|
7714
|
+
}] : []), ke = (e) => Ac({
|
|
7720
7715
|
options: e.knownOptions ?? [],
|
|
7721
7716
|
state: e.aggregateSelectionState ?? []
|
|
7722
7717
|
}).map((t) => ({
|
|
7723
7718
|
field: e.key,
|
|
7724
|
-
label:
|
|
7725
|
-
resultCount:
|
|
7719
|
+
label: Vs(t, e.colDef),
|
|
7720
|
+
resultCount: Hs(t),
|
|
7726
7721
|
subText: t.subText,
|
|
7727
7722
|
subduedText: t.subduedText,
|
|
7728
7723
|
type: "value",
|
|
@@ -7732,7 +7727,7 @@ function xu(e, t, n) {
|
|
|
7732
7727
|
if (e.type === "boolean") return we(e);
|
|
7733
7728
|
if (e.type === "exists") return Te(e);
|
|
7734
7729
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
7735
|
-
let t = new Map(
|
|
7730
|
+
let t = new Map(Zs(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
7736
7731
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
7737
7732
|
}, je = () => {
|
|
7738
7733
|
ze(), Ce(null, "clear-all");
|
|
@@ -7744,9 +7739,9 @@ function xu(e, t, n) {
|
|
|
7744
7739
|
ze();
|
|
7745
7740
|
let e = p.value;
|
|
7746
7741
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
7747
|
-
}, Pe = (e) =>
|
|
7742
|
+
}, Pe = (e) => Xl(J(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
7748
7743
|
let r = J(e);
|
|
7749
|
-
r?.isAggregate && (xe(r, t), Ce(
|
|
7744
|
+
r?.isAggregate && (xe(r, t), Ce(pc({
|
|
7750
7745
|
baseModel: v.value,
|
|
7751
7746
|
colDef: r.colDef,
|
|
7752
7747
|
options: r.knownOptions ?? [],
|
|
@@ -7761,7 +7756,7 @@ function xu(e, t, n) {
|
|
|
7761
7756
|
if (t.type === "value") {
|
|
7762
7757
|
let r = J(e), i = fe(e, n, t.value);
|
|
7763
7758
|
if (r?.isAggregate && i) {
|
|
7764
|
-
Fe(e,
|
|
7759
|
+
Fe(e, Ec({
|
|
7765
7760
|
checked: t.checked,
|
|
7766
7761
|
option: i,
|
|
7767
7762
|
options: r.knownOptions ?? [],
|
|
@@ -7777,10 +7772,10 @@ function xu(e, t, n) {
|
|
|
7777
7772
|
return;
|
|
7778
7773
|
}
|
|
7779
7774
|
if (t.type === "boolean") {
|
|
7780
|
-
Ce(
|
|
7775
|
+
Ce(Ql(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
7781
7776
|
return;
|
|
7782
7777
|
}
|
|
7783
|
-
Ce(
|
|
7778
|
+
Ce($l(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
7784
7779
|
}, Ie = (e, t, n, r) => {
|
|
7785
7780
|
let i = p.value;
|
|
7786
7781
|
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;
|
|
@@ -7800,7 +7795,7 @@ function xu(e, t, n) {
|
|
|
7800
7795
|
}, Le = (e, t, r) => {
|
|
7801
7796
|
n("load-more", e.key, e.colDef, t, r), Z(e, t, r ? "child-load-more" : "load-more", r);
|
|
7802
7797
|
}, Re = (e, t, n) => {
|
|
7803
|
-
Ce(
|
|
7798
|
+
Ce(eu(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
7804
7799
|
}, ze = () => {
|
|
7805
7800
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
7806
7801
|
l.clear();
|
|
@@ -7831,7 +7826,7 @@ function xu(e, t, n) {
|
|
|
7831
7826
|
Z(e, t, "open");
|
|
7832
7827
|
}, Ue = (e, t, n, r, i) => {
|
|
7833
7828
|
let a = y.value.get(t)?.values ?? [], o = r ? Array.from(new Set([...a, n])) : a.filter((e) => e !== n);
|
|
7834
|
-
be(e, t, o, r ? i : void 0), Ce(
|
|
7829
|
+
be(e, t, o, r ? i : void 0), Ce(tu(v.value, t, o, _.value, q(t) ?? J(e)?.colDef), "value-toggle", t, "value");
|
|
7835
7830
|
};
|
|
7836
7831
|
return {
|
|
7837
7832
|
resolvedFilters: Y,
|
|
@@ -7855,8 +7850,8 @@ function xu(e, t, n) {
|
|
|
7855
7850
|
handleSearchChange: Ve,
|
|
7856
7851
|
handleSuggestionClick: (e) => {
|
|
7857
7852
|
if (e.filter.type === "value" && e.option) {
|
|
7858
|
-
let t = J(e.field), n =
|
|
7859
|
-
t?.isAggregate ? Fe(e.field,
|
|
7853
|
+
let t = J(e.field), n = Xs(e.option, e.field), r = Ys(e.option) ?? e.filter.value;
|
|
7854
|
+
t?.isAggregate ? Fe(e.field, Ec({
|
|
7860
7855
|
checked: e.filter.checked,
|
|
7861
7856
|
option: e.option,
|
|
7862
7857
|
options: t.knownOptions ?? [],
|
|
@@ -7867,21 +7862,21 @@ function xu(e, t, n) {
|
|
|
7867
7862
|
},
|
|
7868
7863
|
removeAppliedFilter: (e, t, n) => {
|
|
7869
7864
|
let r = n ?? J(e)?.type ?? "value";
|
|
7870
|
-
if (r === "range" || !n && t ===
|
|
7871
|
-
Ce(
|
|
7865
|
+
if (r === "range" || !n && t === hu) {
|
|
7866
|
+
Ce(eu(v.value, e, null, null, _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "range");
|
|
7872
7867
|
return;
|
|
7873
7868
|
}
|
|
7874
|
-
if (r === "boolean" || !n && t ===
|
|
7875
|
-
Ce(
|
|
7869
|
+
if (r === "boolean" || !n && t === gu) {
|
|
7870
|
+
Ce(Ql(v.value, e, null, _.value, "boolean", q(e) ?? J(e)?.colDef), "remove-filter", e, "boolean");
|
|
7876
7871
|
return;
|
|
7877
7872
|
}
|
|
7878
|
-
if (r === "exists" || !n && t ===
|
|
7879
|
-
Ce(
|
|
7873
|
+
if (r === "exists" || !n && t === _u) {
|
|
7874
|
+
Ce($l(v.value, e, !1, "text", _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "exists");
|
|
7880
7875
|
return;
|
|
7881
7876
|
}
|
|
7882
7877
|
let i = J(e);
|
|
7883
7878
|
if (r === "value" && i?.isAggregate) {
|
|
7884
|
-
let e =
|
|
7879
|
+
let e = sc(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Ec({
|
|
7885
7880
|
checked: !1,
|
|
7886
7881
|
option: e,
|
|
7887
7882
|
options: i.knownOptions ?? [],
|
|
@@ -7891,36 +7886,36 @@ function xu(e, t, n) {
|
|
|
7891
7886
|
return;
|
|
7892
7887
|
}
|
|
7893
7888
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
7894
|
-
be(J(e)?.key ?? e, e, a), Ce(
|
|
7889
|
+
be(J(e)?.key ?? e, e, a), Ce(tu(v.value, e, a, _.value, q(e) ?? J(e)?.colDef), "remove-filter", e, "value");
|
|
7895
7890
|
}
|
|
7896
7891
|
};
|
|
7897
7892
|
}
|
|
7898
7893
|
//#endregion
|
|
7899
7894
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7900
|
-
var
|
|
7895
|
+
var bu = ["aria-label"], xu = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, Su = { class: "pv-filter-panel-body pv-flex-vertical" }, Cu = {
|
|
7901
7896
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
7902
7897
|
"data-testid": "pv-filter-panel-filters-view"
|
|
7903
|
-
},
|
|
7898
|
+
}, wu = {
|
|
7904
7899
|
key: 0,
|
|
7905
7900
|
"aria-label": "Filter suggestions",
|
|
7906
7901
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
7907
7902
|
"data-testid": "pv-filter-panel-suggestions"
|
|
7908
|
-
},
|
|
7903
|
+
}, Tu = { class: "pv-filter-panel-suggestion-tags pv-flex" }, Eu = {
|
|
7909
7904
|
key: 1,
|
|
7910
7905
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7911
|
-
},
|
|
7906
|
+
}, Du = {
|
|
7912
7907
|
key: 2,
|
|
7913
7908
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
7914
|
-
},
|
|
7909
|
+
}, Ou = {
|
|
7915
7910
|
key: 3,
|
|
7916
7911
|
class: "pv-filter-panel-filter-list pv-flex-vertical"
|
|
7917
|
-
},
|
|
7912
|
+
}, ku = {
|
|
7918
7913
|
key: 0,
|
|
7919
7914
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
7920
|
-
},
|
|
7915
|
+
}, Au = {
|
|
7921
7916
|
key: 1,
|
|
7922
7917
|
class: "pv-filter-panel-actions pv-flex"
|
|
7923
|
-
},
|
|
7918
|
+
}, ju = { class: "pv-text-body-sm" }, Mu = { class: "pv-filter-panel-modal-footer pv-flex" }, Nu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
7924
7919
|
__name: "PvFilterPanel",
|
|
7925
7920
|
props: /* @__PURE__ */ g({
|
|
7926
7921
|
applyLabel: { default: "Apply" },
|
|
@@ -7995,7 +7990,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
7995
7990
|
"suggestion-click"
|
|
7996
7991
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
7997
7992
|
setup(e, { emit: n }) {
|
|
7998
|
-
let c = e, l = I(e, "filterModel"), d = I(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: ee, removeAppliedFilter: j } =
|
|
7993
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: D, handleSuggestionClick: ee, removeAppliedFilter: j } = yu(c, l, f), M = O("filters"), te = O({}), F = O(null), L = O(!1), R = r(() => F.value === null ? p.value : p.value.filter((e) => e.category === F.value)), z = r(() => R.value.map((e) => ({
|
|
7999
7994
|
...e,
|
|
8000
7995
|
isOpen: te.value[e.key] ?? e.isOpen ?? !1
|
|
8001
7996
|
}))), ne = r(() => [{
|
|
@@ -8029,7 +8024,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8029
8024
|
"aria-label": e.ariaLabel,
|
|
8030
8025
|
style: x(re.value)
|
|
8031
8026
|
}, [
|
|
8032
|
-
s("div",
|
|
8027
|
+
s("div", xu, [u(ur, {
|
|
8033
8028
|
modelValue: M.value,
|
|
8034
8029
|
options: ne.value,
|
|
8035
8030
|
class: "pv-filter-panel-mode-control",
|
|
@@ -8043,8 +8038,8 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8043
8038
|
variant: "secondary",
|
|
8044
8039
|
onClick: r[0] ||= (e) => d.value = !0
|
|
8045
8040
|
}))]),
|
|
8046
|
-
s("div",
|
|
8047
|
-
!e.readOnly && P(_).length ? (E(), o("section",
|
|
8041
|
+
s("div", Su, [G(s("div", Cu, [
|
|
8042
|
+
!e.readOnly && P(_).length ? (E(), o("section", wu, [r[5] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Tu, [(E(!0), o(t, null, k(P(_), (e) => (E(), i(Lr, {
|
|
8048
8043
|
key: P(C)(e),
|
|
8049
8044
|
icon: e.icon,
|
|
8050
8045
|
"icon-classes": e.iconClasses,
|
|
@@ -8057,7 +8052,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8057
8052
|
"onHandleClick"
|
|
8058
8053
|
]))), 128))])])) : a("", !0),
|
|
8059
8054
|
A(n.$slots, "suggestions", {}, void 0, !0),
|
|
8060
|
-
u(
|
|
8055
|
+
u(fl, {
|
|
8061
8056
|
modelValue: F.value,
|
|
8062
8057
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
8063
8058
|
"category-order": e.categoryOrder,
|
|
@@ -8067,7 +8062,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8067
8062
|
"category-order",
|
|
8068
8063
|
"filters"
|
|
8069
8064
|
]),
|
|
8070
|
-
P(p).length ? R.value.length ? (E(), o("div",
|
|
8065
|
+
P(p).length ? R.value.length ? (E(), o("div", Ou, [(E(!0), o(t, null, k(z.value, (e) => (E(), i($c, {
|
|
8071
8066
|
key: e.key,
|
|
8072
8067
|
filter: e,
|
|
8073
8068
|
onFilterChange: (t) => P(w)(e.key, t),
|
|
@@ -8082,8 +8077,8 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8082
8077
|
"onLoadMore",
|
|
8083
8078
|
"onOpenChange",
|
|
8084
8079
|
"onSearchChange"
|
|
8085
|
-
]))), 128))])) : (E(), o("div",
|
|
8086
|
-
], 512), [[V, M.value === "filters"]]), G(u(
|
|
8080
|
+
]))), 128))])) : (E(), o("div", Du, " No filters in this category. ")) : (E(), o("div", Eu, " No filters available. "))
|
|
8081
|
+
], 512), [[V, M.value === "filters"]]), G(u(al, {
|
|
8087
8082
|
"applied-count": P(h),
|
|
8088
8083
|
"applied-groups": P(m),
|
|
8089
8084
|
"read-only": e.readOnly,
|
|
@@ -8094,13 +8089,13 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8094
8089
|
"read-only",
|
|
8095
8090
|
"onRemoveFilter"
|
|
8096
8091
|
]), [[V, M.value === "applied"]])]),
|
|
8097
|
-
(P(g) || e.staged) && !e.readOnly ? (E(), o("div",
|
|
8092
|
+
(P(g) || e.staged) && !e.readOnly ? (E(), o("div", ku, [P(g) ? (E(), i(Q, {
|
|
8098
8093
|
key: 0,
|
|
8099
8094
|
class: "pv-text-brand",
|
|
8100
8095
|
label: e.clearAllLabel,
|
|
8101
8096
|
variant: "ghost",
|
|
8102
8097
|
onClick: K
|
|
8103
|
-
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div",
|
|
8098
|
+
}, null, 8, ["label"])) : a("", !0), e.staged ? (E(), o("div", Au, [u(Q, {
|
|
8104
8099
|
label: e.cancelLabel,
|
|
8105
8100
|
variant: "ghost",
|
|
8106
8101
|
onClick: P(b)
|
|
@@ -8109,14 +8104,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8109
8104
|
variant: "primary",
|
|
8110
8105
|
onClick: P(y)
|
|
8111
8106
|
}, null, 8, ["label", "onClick"])])) : a("", !0)])) : a("", !0)
|
|
8112
|
-
], 12,
|
|
8107
|
+
], 12, bu)), u(Cr, {
|
|
8113
8108
|
modelValue: L.value,
|
|
8114
8109
|
"onUpdate:modelValue": r[4] ||= (e) => L.value = e,
|
|
8115
8110
|
header: e.clearAllHeader,
|
|
8116
8111
|
style: { "--max-width": "440px" }
|
|
8117
8112
|
}, {
|
|
8118
|
-
body: W(() => [s("p",
|
|
8119
|
-
footer: W(() => [s("div",
|
|
8113
|
+
body: W(() => [s("p", ju, N(e.clearAllBody), 1)]),
|
|
8114
|
+
footer: W(() => [s("div", Mu, [u(Q, {
|
|
8120
8115
|
label: e.cancelLabel,
|
|
8121
8116
|
variant: "ghost",
|
|
8122
8117
|
onClick: U
|
|
@@ -8128,16 +8123,16 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8128
8123
|
_: 1
|
|
8129
8124
|
}, 8, ["modelValue", "header"])], 64));
|
|
8130
8125
|
}
|
|
8131
|
-
}), [["__scopeId", "data-v-4a3b2634"]]),
|
|
8126
|
+
}), [["__scopeId", "data-v-4a3b2634"]]), Pu = ["for"], Fu = [
|
|
8132
8127
|
"id",
|
|
8133
8128
|
"type",
|
|
8134
8129
|
"value",
|
|
8135
8130
|
"name",
|
|
8136
8131
|
"disabled"
|
|
8137
|
-
],
|
|
8132
|
+
], Iu = { key: 0 }, Lu = {
|
|
8138
8133
|
class: "pv-inset-square",
|
|
8139
8134
|
style: { "--inset-size": "0px 2px" }
|
|
8140
|
-
},
|
|
8135
|
+
}, Ru = /* @__PURE__ */ d({
|
|
8141
8136
|
__name: "PvFilterModalSelectItem",
|
|
8142
8137
|
props: /* @__PURE__ */ g({
|
|
8143
8138
|
rounded: { type: Boolean },
|
|
@@ -8170,44 +8165,44 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8170
8165
|
value: e.value,
|
|
8171
8166
|
name: e.name,
|
|
8172
8167
|
disabled: e.disabled
|
|
8173
|
-
}, null, 8,
|
|
8174
|
-
e.label ? (E(), o("span",
|
|
8175
|
-
s("span",
|
|
8176
|
-
], 8,
|
|
8168
|
+
}, null, 8, Fu), [[ne, n.value]]),
|
|
8169
|
+
e.label ? (E(), o("span", Iu, N(e.label), 1)) : a("", !0),
|
|
8170
|
+
s("span", Lu, N(e.rightCounterBadge), 1)
|
|
8171
|
+
], 8, Pu));
|
|
8177
8172
|
}
|
|
8178
|
-
}),
|
|
8173
|
+
}), zu = ["aria-label"], Bu = {
|
|
8179
8174
|
class: "pv-filter-modal pv-flex",
|
|
8180
8175
|
style: {
|
|
8181
8176
|
"--flex-align": "stretch",
|
|
8182
8177
|
"--flex-gap": "0"
|
|
8183
8178
|
}
|
|
8184
|
-
},
|
|
8179
|
+
}, Vu = {
|
|
8185
8180
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
8186
8181
|
"aria-label": "Filter categories",
|
|
8187
8182
|
style: { "--flex-gap": "0.25rem" }
|
|
8188
|
-
},
|
|
8183
|
+
}, Hu = {
|
|
8189
8184
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
8190
8185
|
style: {
|
|
8191
8186
|
"--flex-align": "stretch",
|
|
8192
8187
|
"--flex-gap": "0.75rem"
|
|
8193
8188
|
}
|
|
8194
|
-
},
|
|
8189
|
+
}, Uu = {
|
|
8195
8190
|
key: 0,
|
|
8196
8191
|
class: "pv-inset-square-8"
|
|
8197
|
-
},
|
|
8192
|
+
}, Wu = {
|
|
8198
8193
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
8199
8194
|
style: {
|
|
8200
8195
|
"--flex-align": "stretch",
|
|
8201
8196
|
"--flex-gap": "0.25rem"
|
|
8202
8197
|
}
|
|
8203
|
-
},
|
|
8198
|
+
}, Gu = {
|
|
8204
8199
|
key: 0,
|
|
8205
8200
|
class: "pv-text-body-xs pv-text-subdued",
|
|
8206
8201
|
style: { margin: "0" }
|
|
8207
|
-
},
|
|
8202
|
+
}, Ku = {
|
|
8208
8203
|
key: 2,
|
|
8209
8204
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
8210
|
-
},
|
|
8205
|
+
}, qu = {
|
|
8211
8206
|
key: 0,
|
|
8212
8207
|
class: "pv-flex pv-border-top",
|
|
8213
8208
|
style: {
|
|
@@ -8216,7 +8211,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8216
8211
|
"margin-top": "0.75rem",
|
|
8217
8212
|
"padding-top": "0.75rem"
|
|
8218
8213
|
}
|
|
8219
|
-
},
|
|
8214
|
+
}, Ju = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8220
8215
|
__name: "PvFilterModal",
|
|
8221
8216
|
props: /* @__PURE__ */ g({
|
|
8222
8217
|
header: { default: "Filters" },
|
|
@@ -8292,7 +8287,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8292
8287
|
"suggestion-click"
|
|
8293
8288
|
], ["update:filterModel", "update:visible"]),
|
|
8294
8289
|
setup(e, { emit: n }) {
|
|
8295
|
-
let c = e, l = I(e, "filterModel"), d = I(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } =
|
|
8290
|
+
let c = e, l = I(e, "filterModel"), d = I(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = yu(c, l, f), v = O(null), y = O(""), b = r(() => p.value.filter((e) => e.type === "value")), S = r(() => {
|
|
8296
8291
|
let e = b.value;
|
|
8297
8292
|
return e.find((e) => e.key === v.value) ?? e[0] ?? null;
|
|
8298
8293
|
}), C = r(() => S.value?.isAggregate === !0), w = r(() => S.value?.aggregateSelectionState ?? []), T = r(() => new Set(S.value?.selectedValues ?? [])), D = r(() => y.value.trim().toLowerCase()), ee = (e) => {
|
|
@@ -8309,7 +8304,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8309
8304
|
let e = S.value;
|
|
8310
8305
|
if (!e) return {};
|
|
8311
8306
|
let t = {};
|
|
8312
|
-
for (let n of
|
|
8307
|
+
for (let n of Zs([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
8313
8308
|
return t;
|
|
8314
8309
|
}), M = r(() => {
|
|
8315
8310
|
let e = S.value?.options ?? [], t = D.value;
|
|
@@ -8317,22 +8312,22 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8317
8312
|
}), N = r(() => C.value ? [] : (S.value?.selectedValues ?? []).map((e) => j.value[e] ?? {
|
|
8318
8313
|
label: e,
|
|
8319
8314
|
value: e
|
|
8320
|
-
})), te = r(() => C.value ? M.value : M.value.filter((e) => !T.value.has(e.value))), F = r(() => C.value && S.value ?
|
|
8315
|
+
})), te = r(() => C.value ? M.value : M.value.filter((e) => !T.value.has(e.value))), F = r(() => C.value && S.value ? Oc({
|
|
8321
8316
|
options: S.value.knownOptions ?? [],
|
|
8322
8317
|
state: w.value
|
|
8323
|
-
}) : /* @__PURE__ */ new Map()), L = (e) => e.isAggregate ?
|
|
8318
|
+
}) : /* @__PURE__ */ new Map()), L = (e) => e.isAggregate ? jc(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, R = (e) => C.value ? F.value.get(e.value) ?? {
|
|
8324
8319
|
indeterminate: !1,
|
|
8325
8320
|
selected: !1
|
|
8326
8321
|
} : {
|
|
8327
8322
|
indeterminate: !1,
|
|
8328
8323
|
selected: T.value.has(e.value)
|
|
8329
|
-
}, z = (e) => S.value ?
|
|
8324
|
+
}, z = (e) => S.value ? Vs(e, S.value.colDef) : e.label || e.value, ne = (e) => Ys(e) ?? e.value, re = (e) => Xs(e, S.value?.key ?? ""), B = (e, t) => {
|
|
8330
8325
|
let n = S.value;
|
|
8331
8326
|
if (n) {
|
|
8332
8327
|
if (n.isAggregate) {
|
|
8333
8328
|
_(n.key, {
|
|
8334
8329
|
type: "aggregate-selection",
|
|
8335
|
-
value:
|
|
8330
|
+
value: Ec({
|
|
8336
8331
|
checked: t,
|
|
8337
8332
|
option: e,
|
|
8338
8333
|
options: n.knownOptions ?? [],
|
|
@@ -8352,7 +8347,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8352
8347
|
for (let e of M.value) R(e).selected || B(e, !0);
|
|
8353
8348
|
}, U = () => {
|
|
8354
8349
|
if (C.value) {
|
|
8355
|
-
for (let e of
|
|
8350
|
+
for (let e of Zs(S.value?.knownOptions ?? [])) R(e).selected && B(e, !1);
|
|
8356
8351
|
return;
|
|
8357
8352
|
}
|
|
8358
8353
|
for (let e of N.value) B(e, !1);
|
|
@@ -8392,7 +8387,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8392
8387
|
width: e.maxWidth,
|
|
8393
8388
|
maxWidth: e.maxWidth
|
|
8394
8389
|
})
|
|
8395
|
-
}, [s("div",
|
|
8390
|
+
}, [s("div", Bu, [s("nav", Vu, [(E(!0), o(t, null, k(b.value, (e) => (E(), i(Ru, {
|
|
8396
8391
|
key: e.key,
|
|
8397
8392
|
modelValue: ie.value,
|
|
8398
8393
|
"onUpdate:modelValue": r[0] ||= (e) => ie.value = e,
|
|
@@ -8406,7 +8401,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8406
8401
|
"label",
|
|
8407
8402
|
"right-counter-badge",
|
|
8408
8403
|
"value"
|
|
8409
|
-
]))), 128))]), s("div",
|
|
8404
|
+
]))), 128))]), s("div", Hu, [
|
|
8410
8405
|
u(Wr, {
|
|
8411
8406
|
modelValue: y.value,
|
|
8412
8407
|
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
@@ -8418,16 +8413,16 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8418
8413
|
"disabled",
|
|
8419
8414
|
"placeholder"
|
|
8420
8415
|
]),
|
|
8421
|
-
S.value?.isLoading ? (E(), o("div",
|
|
8422
|
-
s("div",
|
|
8416
|
+
S.value?.isLoading ? (E(), o("div", Uu, [u(Oe, { size: "sm" })])) : S.value ? (E(), o(t, { key: 1 }, [
|
|
8417
|
+
s("div", Wu, [(E(!0), o(t, null, k(N.value, (e) => (E(), o("div", {
|
|
8423
8418
|
key: `selected-${e.value}`,
|
|
8424
8419
|
class: "pv-inset-square-8 pv-surface-highlight pv-radius"
|
|
8425
|
-
}, [u(
|
|
8420
|
+
}, [u(js, {
|
|
8426
8421
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8427
8422
|
indeterminate: R(e).indeterminate,
|
|
8428
8423
|
label: z(e),
|
|
8429
8424
|
"query-text": y.value,
|
|
8430
|
-
"result-count": P(
|
|
8425
|
+
"result-count": P(Hs)(e),
|
|
8431
8426
|
selected: !0,
|
|
8432
8427
|
"sub-text": e.subText,
|
|
8433
8428
|
"subdued-text": e.subduedText,
|
|
@@ -8446,12 +8441,12 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8446
8441
|
])]))), 128)), (E(!0), o(t, null, k(te.value, (e) => (E(), o("div", {
|
|
8447
8442
|
key: `option-${e.value}`,
|
|
8448
8443
|
class: "pv-inset-square-8 pv-radius"
|
|
8449
|
-
}, [u(
|
|
8444
|
+
}, [u(js, {
|
|
8450
8445
|
disabled: S.value.disabled || e.isSelectable === !1,
|
|
8451
8446
|
indeterminate: R(e).indeterminate,
|
|
8452
8447
|
label: z(e),
|
|
8453
8448
|
"query-text": y.value,
|
|
8454
|
-
"result-count": P(
|
|
8449
|
+
"result-count": P(Hs)(e),
|
|
8455
8450
|
selected: R(e).selected,
|
|
8456
8451
|
"sub-text": e.subText,
|
|
8457
8452
|
"subdued-text": e.subduedText,
|
|
@@ -8469,7 +8464,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8469
8464
|
"value",
|
|
8470
8465
|
"onToggleValue"
|
|
8471
8466
|
])]))), 128))]),
|
|
8472
|
-
!N.value.length && !te.value.length ? (E(), o("p",
|
|
8467
|
+
!N.value.length && !te.value.length ? (E(), o("p", Gu, " No matching values. ")) : a("", !0),
|
|
8473
8468
|
S.value.hasMore ? (E(), i(Q, {
|
|
8474
8469
|
key: 1,
|
|
8475
8470
|
class: "pv-text-brand",
|
|
@@ -8480,7 +8475,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8480
8475
|
onClick: G
|
|
8481
8476
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
8482
8477
|
], 64)) : a("", !0),
|
|
8483
|
-
S.value && !e.readOnly ? (E(), o("div",
|
|
8478
|
+
S.value && !e.readOnly ? (E(), o("div", Ku, [u(Q, {
|
|
8484
8479
|
disabled: S.value.disabled,
|
|
8485
8480
|
label: e.selectAllLabel,
|
|
8486
8481
|
variant: "ghost",
|
|
@@ -8491,7 +8486,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8491
8486
|
variant: "ghost",
|
|
8492
8487
|
onClick: U
|
|
8493
8488
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
8494
|
-
])]), e.staged ? (E(), o("div",
|
|
8489
|
+
])]), e.staged ? (E(), o("div", qu, [u(Q, {
|
|
8495
8490
|
label: e.cancelLabel,
|
|
8496
8491
|
variant: "ghost",
|
|
8497
8492
|
onClick: P(g)
|
|
@@ -8499,14 +8494,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8499
8494
|
label: e.applyLabel,
|
|
8500
8495
|
variant: "primary",
|
|
8501
8496
|
onClick: P(h)
|
|
8502
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
8497
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, zu)]),
|
|
8503
8498
|
_: 3
|
|
8504
8499
|
}, 8, ["modelValue"]));
|
|
8505
8500
|
}
|
|
8506
|
-
}), [["__scopeId", "data-v-f6b1c07d"]]),
|
|
8501
|
+
}), [["__scopeId", "data-v-f6b1c07d"]]), Yu = ["tabindex"], Xu = {
|
|
8507
8502
|
key: 0,
|
|
8508
8503
|
class: "pv-hover-action-menu__actions"
|
|
8509
|
-
},
|
|
8504
|
+
}, Zu = { class: "pv-hover-action-menu__action-group" }, Qu = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8510
8505
|
__name: "PvHoverActionMenu",
|
|
8511
8506
|
props: {
|
|
8512
8507
|
disabled: {
|
|
@@ -8529,12 +8524,12 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8529
8524
|
class: y(["pv-hover-action-menu", d.value]),
|
|
8530
8525
|
tabindex: e.options.length ? 0 : void 0,
|
|
8531
8526
|
"data-testid": "pv-hover-action-menu"
|
|
8532
|
-
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div",
|
|
8527
|
+
}, [A(n.$slots, "default", {}, void 0, !0), e.options.length ? (E(), o("div", Xu, [u(Do, {
|
|
8533
8528
|
variant: e.variant,
|
|
8534
8529
|
"data-testid": "pv-hover-action-menu-actions",
|
|
8535
8530
|
onClick: r[0] ||= K(() => {}, ["stop"])
|
|
8536
8531
|
}, {
|
|
8537
|
-
default: W(() => [s("div",
|
|
8532
|
+
default: W(() => [s("div", Zu, [(E(!0), o(t, null, k(e.options, (t) => (E(), i(Pn, {
|
|
8538
8533
|
key: t.id,
|
|
8539
8534
|
variant: "dark",
|
|
8540
8535
|
position: "top-center",
|
|
@@ -8562,9 +8557,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8562
8557
|
_: 2
|
|
8563
8558
|
}, 1032, ["description"]))), 128))])]),
|
|
8564
8559
|
_: 1
|
|
8565
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
8560
|
+
}, 8, ["variant"])])) : a("", !0)], 10, Yu));
|
|
8566
8561
|
}
|
|
8567
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
8562
|
+
}), [["__scopeId", "data-v-6325cd25"]]), $u = () => {
|
|
8568
8563
|
let e = (e, n) => {
|
|
8569
8564
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
8570
8565
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -8578,13 +8573,13 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8578
8573
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
8579
8574
|
}
|
|
8580
8575
|
};
|
|
8581
|
-
},
|
|
8576
|
+
}, ed = { class: "pv-flex" }, td = { class: "pv-text-body-md" }, nd = ["textContent"], rd = {
|
|
8582
8577
|
key: 0,
|
|
8583
8578
|
class: "pv-text-body-xs"
|
|
8584
|
-
},
|
|
8579
|
+
}, id = { key: 0 }, ad = {
|
|
8585
8580
|
class: "pv-text-subdued pv-text-body-xs",
|
|
8586
8581
|
style: { "font-weight": "500" }
|
|
8587
|
-
},
|
|
8582
|
+
}, od = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8588
8583
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
8589
8584
|
props: {
|
|
8590
8585
|
id: {},
|
|
@@ -8630,13 +8625,13 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8630
8625
|
bold: !1
|
|
8631
8626
|
}), n;
|
|
8632
8627
|
});
|
|
8633
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
8628
|
+
return (e, n) => (E(), o("div", null, [s("div", ed, [u(X, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", td, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
8634
8629
|
key: t,
|
|
8635
8630
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8636
8631
|
textContent: N(e.text)
|
|
8637
|
-
}, null, 12,
|
|
8632
|
+
}, null, 12, nd))), 128))]), f.value ? (E(), o("p", rd, [c.value ? a("", !0) : (E(), o("span", id, "Search in ")), s("span", ad, N(f.value), 1)])) : a("", !0)])])]));
|
|
8638
8633
|
}
|
|
8639
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
8634
|
+
}), [["__scopeId", "data-v-ff951d17"]]), sd = /* @__PURE__ */ d({
|
|
8640
8635
|
__name: "QueryFormatter",
|
|
8641
8636
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8642
8637
|
modelValue: { required: !0 },
|
|
@@ -8650,7 +8645,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8650
8645
|
}),
|
|
8651
8646
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8652
8647
|
setup(e) {
|
|
8653
|
-
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } =
|
|
8648
|
+
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } = $u(), u = r(() => {
|
|
8654
8649
|
let e = s.value?.queryTerms || [];
|
|
8655
8650
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8656
8651
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -8682,17 +8677,17 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8682
8677
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8683
8678
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8684
8679
|
}
|
|
8685
|
-
}),
|
|
8680
|
+
}), cd = [
|
|
8686
8681
|
"disabled",
|
|
8687
8682
|
"placeholder",
|
|
8688
8683
|
"data-invalid"
|
|
8689
|
-
],
|
|
8684
|
+
], ld = {
|
|
8690
8685
|
key: 2,
|
|
8691
8686
|
class: "pv-text-red pv-text-body-xs"
|
|
8692
|
-
},
|
|
8687
|
+
}, ud = {
|
|
8693
8688
|
key: 1,
|
|
8694
8689
|
class: "pv-text-center"
|
|
8695
|
-
},
|
|
8690
|
+
}, dd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
|
|
8696
8691
|
__name: "PvQueryBuilderInput",
|
|
8697
8692
|
props: /* @__PURE__ */ g({
|
|
8698
8693
|
placeholder: { default: "Search" },
|
|
@@ -8740,7 +8735,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8740
8735
|
"update:options"
|
|
8741
8736
|
],
|
|
8742
8737
|
setup(e) {
|
|
8743
|
-
let n = e, c = { renderer:
|
|
8738
|
+
let n = e, c = { renderer: od }, l = R("search-input"), d = I(e, "searchText"), f = I(e, "query"), p = I(e, "options"), { addQueryOption: m, containsQueryOption: h } = $u(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
8744
8739
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
8745
8740
|
};
|
|
8746
8741
|
n.enableCustomOptionsInput && oe("Enter", () => {
|
|
@@ -8814,7 +8809,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8814
8809
|
"--inset-size": "4px",
|
|
8815
8810
|
"--flex-gap": "4px"
|
|
8816
8811
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
8817
|
-
}, [u(
|
|
8812
|
+
}, [u(sd, {
|
|
8818
8813
|
modelValue: f.value,
|
|
8819
8814
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8820
8815
|
"wrap-content": b.value,
|
|
@@ -8834,7 +8829,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8834
8829
|
"data-invalid": w.value ? "true" : void 0,
|
|
8835
8830
|
onFocus: te,
|
|
8836
8831
|
onBlur: te
|
|
8837
|
-
}, null, 40,
|
|
8832
|
+
}, null, 40, cd), [[B, d.value]])], 4),
|
|
8838
8833
|
f.value && !e.hideClearButton ? (E(), i(Q, {
|
|
8839
8834
|
key: 1,
|
|
8840
8835
|
variant: "ghost",
|
|
@@ -8842,7 +8837,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8842
8837
|
size: "md",
|
|
8843
8838
|
onClick: T
|
|
8844
8839
|
})) : a("", !0),
|
|
8845
|
-
w.value ? (E(), o("p",
|
|
8840
|
+
w.value ? (E(), o("p", ld, N(C.value), 1)) : a("", !0),
|
|
8846
8841
|
A.value.length > 0 || e.optionsLoading ? (E(), i(rr, {
|
|
8847
8842
|
key: 3,
|
|
8848
8843
|
class: y({ "pv-hide": !g.value }),
|
|
@@ -8852,7 +8847,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8852
8847
|
},
|
|
8853
8848
|
isList: !0
|
|
8854
8849
|
}, {
|
|
8855
|
-
default: W(() => [e.optionsLoading ? (E(), o("div",
|
|
8850
|
+
default: W(() => [e.optionsLoading ? (E(), o("div", ud, [u(Oe, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i($i, _({
|
|
8856
8851
|
key: `${t}-${e.searchText}`,
|
|
8857
8852
|
ref_for: !0
|
|
8858
8853
|
}, e, {
|
|
@@ -8863,7 +8858,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8863
8858
|
}, 8, ["class"])) : a("", !0)
|
|
8864
8859
|
], 32)), [[P(de), ee]]);
|
|
8865
8860
|
}
|
|
8866
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
8861
|
+
}), [["__scopeId", "data-v-4decbec2"]]), fd = { class: "sidebar-header" }, pd = { class: "sidebar-header-content" }, md = { class: "content-panel" }, hd = 300, gd = /* @__PURE__ */ d({
|
|
8867
8862
|
__name: "PvSidebar",
|
|
8868
8863
|
props: /* @__PURE__ */ g({
|
|
8869
8864
|
disableToggle: { type: Boolean },
|
|
@@ -8889,7 +8884,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8889
8884
|
}, m = () => {
|
|
8890
8885
|
n.value && (l && clearTimeout(l), l = setTimeout(() => {
|
|
8891
8886
|
c.value = !0;
|
|
8892
|
-
},
|
|
8887
|
+
}, hd));
|
|
8893
8888
|
}, h = () => {
|
|
8894
8889
|
l &&= (clearTimeout(l), null), p(), c.value = !1;
|
|
8895
8890
|
}, g = () => {
|
|
@@ -8904,20 +8899,20 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8904
8899
|
onMouseenter: m,
|
|
8905
8900
|
onMouseleave: h,
|
|
8906
8901
|
onFocusin: m
|
|
8907
|
-
}, [s("div",
|
|
8902
|
+
}, [s("div", fd, [s("div", pd, [A(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (E(), i(Q, {
|
|
8908
8903
|
key: 0,
|
|
8909
8904
|
class: "sidebar-toggle",
|
|
8910
8905
|
"left-icon": n.value ? "panel-left-open" : "panel-left-close",
|
|
8911
8906
|
"aria-label": n.value ? "Open sidebar" : "Close sidebar",
|
|
8912
8907
|
variant: "secondary",
|
|
8913
8908
|
onClick: g
|
|
8914
|
-
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div",
|
|
8909
|
+
}, null, 8, ["left-icon", "aria-label"]))]), A(t.$slots, "sidebar")], 32), s("div", md, [A(t.$slots, "default")])], 2));
|
|
8915
8910
|
}
|
|
8916
|
-
}),
|
|
8911
|
+
}), _d = {
|
|
8917
8912
|
class: "pv-toc",
|
|
8918
8913
|
role: "list",
|
|
8919
8914
|
style: { "min-width": "160px" }
|
|
8920
|
-
},
|
|
8915
|
+
}, vd = ["aria-current"], yd = ["href", "onClick"], bd = /* @__PURE__ */ d({
|
|
8921
8916
|
__name: "PvTableOfContents",
|
|
8922
8917
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
8923
8918
|
modelValue: { required: !1 },
|
|
@@ -8928,7 +8923,7 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8928
8923
|
let r = I(e, "modelValue"), c = n, u = (e, t) => {
|
|
8929
8924
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
8930
8925
|
};
|
|
8931
|
-
return (n, c) => (E(), o("ul",
|
|
8926
|
+
return (n, c) => (E(), o("ul", _d, [(E(!0), o(t, null, k(e.items, (e) => (E(), o("li", {
|
|
8932
8927
|
key: e.id,
|
|
8933
8928
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
8934
8929
|
}, [s("a", {
|
|
@@ -8937,9 +8932,9 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8937
8932
|
}, [e.icon ? (E(), i(X, {
|
|
8938
8933
|
key: 0,
|
|
8939
8934
|
name: e.icon
|
|
8940
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8,
|
|
8935
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8, yd)], 8, vd))), 128))]));
|
|
8941
8936
|
}
|
|
8942
|
-
}),
|
|
8937
|
+
}), xd = { class: "pv-flex" }, Sd = ["data-clickable", "onClick"], Cd = /* @__PURE__ */ d({
|
|
8943
8938
|
__name: "PvStepper",
|
|
8944
8939
|
props: {
|
|
8945
8940
|
count: { default: 5 },
|
|
@@ -8952,14 +8947,14 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8952
8947
|
emits: ["update:active"],
|
|
8953
8948
|
setup(e) {
|
|
8954
8949
|
let n = e;
|
|
8955
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div",
|
|
8950
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (E(), o("div", xd, [(E(!0), o(t, null, k(e.count, (t, r) => (E(), o("div", {
|
|
8956
8951
|
key: r,
|
|
8957
8952
|
"data-clickable": e.clickable,
|
|
8958
8953
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
8959
8954
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
8960
|
-
}, null, 10,
|
|
8955
|
+
}, null, 10, Sd))), 128))]));
|
|
8961
8956
|
}
|
|
8962
|
-
}),
|
|
8957
|
+
}), wd = { theme: {
|
|
8963
8958
|
preset: be,
|
|
8964
8959
|
options: {
|
|
8965
8960
|
darkModeSelector: "none",
|
|
@@ -8968,10 +8963,10 @@ var Su = ["aria-label"], Cu = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
8968
8963
|
order: "pit-viper-v2, primevue"
|
|
8969
8964
|
}
|
|
8970
8965
|
}
|
|
8971
|
-
} },
|
|
8972
|
-
e.use(ye,
|
|
8966
|
+
} }, Td = (e) => {
|
|
8967
|
+
e.use(ye, wd);
|
|
8973
8968
|
};
|
|
8974
8969
|
//#endregion
|
|
8975
|
-
export { zr as PvAccordion,
|
|
8970
|
+
export { zr as PvAccordion, Do as PvActionBar, In as PvActionButton, zn as PvAiButton, pi as PvAvatar, Ha as PvAvatarGroup, kr as PvBanner, ci as PvBreadcrumbs, Q as PvButton, Jn as PvButtonWithTooltip, mo as PvCard, Qa as PvCheckbox, Ra as PvCompanyLabel, _r as PvCompanyLogo, Pr as PvCompanyTag, Le as PvCounterBadge, Gr as PvDatePicker, qr as PvDateTime, ds as PvDistributionBar, ni as PvDrawer, sr as PvDropdown, Nr as PvEmptyErrorState, Co as PvExpandableContent, Ju as PvFilterModal, Nu as PvFilterPanel, Aa as PvGhostInput, Ia as PvHeader, ll as PvHorizontalScroller, Qu as PvHoverActionMenu, X as PvIcon, lo as PvInput, So as PvInsightCard, ra as PvMenu, $i as PvMenuItem, Cr as PvModal, ua as PvMultiSelectButton, ya as PvPagination, tr as PvPill, rr as PvPopover, lr as PvPopoverMenu, Mn as PvPopoverV2, ls as PvProgressBar, dd as PvQueryBuilderInput, no as PvRadioGroup, Ts as PvRange, po as PvRating, Qn as PvReleaseBadge, Wr as PvSearchInput, ur as PvSegmentedControl, fa as PvSelectButton, Sa as PvSelectableCard, Da as PvSidePanel, gd as PvSidebar, io as PvSkeleton, Oe as PvSpinner, Zn as PvSplitButton, ro as PvSprite, Cd as PvStepper, Lr as PvSuggestionTag, Li as PvSwitch, mr as PvTabList, bd as PvTableOfContents, ai as PvTabs, er as PvTag, jo as PvTextArea, To as PvToast, Ka as PvToggleButton, Xa as PvToggleGroup, Kn as PvTooltip, Pn as PvTooltipV2, as as PvTree, os as PvTreeGroup, ho as PvWidget, du as createPvFilterStore, fu as providePvFilterStore, Kr as useDateTime, pu as useOptionalPvFilterStore, Td as usePvComponents, mu as usePvFilterStore };
|
|
8976
8971
|
|
|
8977
8972
|
//# sourceMappingURL=pv-components-base.mjs.map
|