@turquoisehealth/pit-viper 2.209.2 → 2.210.1
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-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-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-popover-v2-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-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +49 -34
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +49 -34
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +66 -48
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +164 -147
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +687 -669
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +689 -671
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +678 -660
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +216 -198
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +411 -394
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +51 -33
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +64 -46
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +66 -48
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +576 -559
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +497 -479
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +321 -303
- package/pv-components/dist/web/pv-components.iife.js +16 -16
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, onUpdated as D, openBlock as O, reactive as k, readonly as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onScopeDispose as E, onUnmounted as ee, onUpdated as D, openBlock as O, reactive as k, readonly as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, shallowRef as F, toDisplayString as I, toValue as L, unref as R, useAttrs as te, useId as ne, useModel as z, useSlots as B, useTemplateRef as V, vModelCheckbox as re, vModelText as H, vShow as ie, watch as U, watchEffect as ae, withCtx as W, withDirectives as oe, withKeys as se, withModifiers as ce } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var G = Object.defineProperty, le = Object.getOwnPropertyDescriptor, K = Object.getOwnPropertyNames, ue = Object.prototype.hasOwnProperty, de = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) G(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || G(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, fe = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = K(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ue.call(e, s) && s !== n && G(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = le(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, pe = (e, t, n) => (fe(e, t, "default"), n && fe(n, t, "default")), me = /* @__PURE__ */ d({
|
|
18
18
|
__name: "PvSpinner",
|
|
19
19
|
props: {
|
|
20
20
|
size: {
|
|
@@ -44,20 +44,20 @@ var W = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, G = Object.
|
|
|
44
44
|
style: S({ "--size": t[e.size] })
|
|
45
45
|
}, null, 6));
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), q = ["ghost"], he = {
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, ge = (e) => e == null || !he.hasOwnProperty(e) ? null : he[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
55
|
-
let e =
|
|
54
|
+
function _e() {
|
|
55
|
+
let e = j(!1), t = p()?.root || {};
|
|
56
56
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/base/baseProps.ts
|
|
60
|
-
var
|
|
60
|
+
var ve = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -65,24 +65,24 @@ var ye = [
|
|
|
65
65
|
24,
|
|
66
66
|
32,
|
|
67
67
|
64
|
|
68
|
-
],
|
|
68
|
+
], ye = ["xlink:href"], be = /* @__PURE__ */ d({
|
|
69
69
|
__name: "PvIcon",
|
|
70
70
|
props: {
|
|
71
71
|
name: { type: String },
|
|
72
72
|
size: { type: null }
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e, n =
|
|
75
|
+
let t = e, n = _e(), i = j(null), a = r(() => ({
|
|
76
76
|
"pv-icon": !0,
|
|
77
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
77
|
+
[`pv-icon-${t.size}`]: t.size != null && ve.includes(t.size)
|
|
78
78
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
79
79
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
80
80
|
"data-testid": "pv-icon",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
class: b(a.value)
|
|
83
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
83
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, ye)], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), xe = /* @__PURE__ */ d({
|
|
86
86
|
__name: "PvCounterBadge",
|
|
87
87
|
props: {
|
|
88
88
|
maxValue: {
|
|
@@ -117,16 +117,16 @@ var ye = [
|
|
|
117
117
|
return (e, t) => (O(), o("div", {
|
|
118
118
|
class: b(i.value),
|
|
119
119
|
"data-testid": "pv-counter-badge"
|
|
120
|
-
},
|
|
120
|
+
}, I(n.value), 3));
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), Se = ".pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}", Ce = (e, t) => {
|
|
123
123
|
let n = e.__vccOpts || e;
|
|
124
124
|
for (let [e, r] of t) n[e] = r;
|
|
125
125
|
return n;
|
|
126
|
-
},
|
|
126
|
+
}, we = /* @__PURE__ */ Ce(xe, [["styles", [Se]], ["__scopeId", "data-v-6a07eeec"]]), Te = ["disabled", "aria-label"], Ee = {
|
|
127
127
|
key: 2,
|
|
128
128
|
"data-testid": "pv-button-label"
|
|
129
|
-
},
|
|
129
|
+
}, J = /* @__PURE__ */ d({
|
|
130
130
|
__name: "PvButton",
|
|
131
131
|
props: {
|
|
132
132
|
variant: {
|
|
@@ -159,8 +159,8 @@ var ye = [
|
|
|
159
159
|
setup(e) {
|
|
160
160
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
161
161
|
let e = [];
|
|
162
|
-
n.inverse &&
|
|
163
|
-
let t =
|
|
162
|
+
n.inverse && q.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
163
|
+
let t = ge(n.size);
|
|
164
164
|
return t && e.push(t), e;
|
|
165
165
|
});
|
|
166
166
|
return (n, r) => (O(), o("button", {
|
|
@@ -169,45 +169,45 @@ var ye = [
|
|
|
169
169
|
disabled: e.disabled,
|
|
170
170
|
"aria-label": s.value,
|
|
171
171
|
"data-testid": "pv-button"
|
|
172
|
-
}, [e.loading ? (O(), i(
|
|
172
|
+
}, [e.loading ? (O(), i(me, {
|
|
173
173
|
key: 0,
|
|
174
174
|
size: "sm"
|
|
175
175
|
})) : (O(), o(t, { key: 1 }, [
|
|
176
|
-
e.leftCounterBadge ? (O(), i(
|
|
176
|
+
e.leftCounterBadge ? (O(), i(we, {
|
|
177
177
|
key: 0,
|
|
178
178
|
value: e.leftCounterBadge,
|
|
179
179
|
variant: "tertiary"
|
|
180
180
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
181
|
-
e.leftIcon ? (O(), i(
|
|
181
|
+
e.leftIcon ? (O(), i(be, {
|
|
182
182
|
key: 1,
|
|
183
183
|
name: e.leftIcon,
|
|
184
184
|
"data-testid": "pv-button-left-icon"
|
|
185
185
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
186
|
-
e.label ? (O(), o("span",
|
|
187
|
-
e.rightCounterBadge ? (O(), i(
|
|
186
|
+
e.label ? (O(), o("span", Ee, I(e.label), 1)) : a("v-if", !0),
|
|
187
|
+
e.rightCounterBadge ? (O(), i(we, {
|
|
188
188
|
key: 3,
|
|
189
189
|
value: e.rightCounterBadge,
|
|
190
190
|
variant: "tertiary"
|
|
191
191
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
192
|
-
e.rightIcon ? (O(), i(
|
|
192
|
+
e.rightIcon ? (O(), i(be, {
|
|
193
193
|
key: 4,
|
|
194
194
|
name: e.rightIcon,
|
|
195
195
|
"data-testid": "pv-button-right-icon"
|
|
196
196
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
197
|
-
], 64))], 10,
|
|
197
|
+
], 64))], 10, Te));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), De = { class: "pv-inset-squish-12" }, Oe = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
202
202
|
style: { "--flex-align": "flex-start" }
|
|
203
|
-
},
|
|
203
|
+
}, ke = { class: "pv-heading-3" }, Ae = {
|
|
204
204
|
key: 0,
|
|
205
205
|
class: "pv-text-body-md"
|
|
206
|
-
},
|
|
206
|
+
}, je = {
|
|
207
207
|
key: 0,
|
|
208
208
|
class: "pv-inset-squish-12 pv-border-top",
|
|
209
209
|
style: { "--color-border": "#d2d8dc" }
|
|
210
|
-
},
|
|
210
|
+
}, Me = /* @__PURE__ */ d({
|
|
211
211
|
__name: "PvModal",
|
|
212
212
|
props: /* @__PURE__ */ _({
|
|
213
213
|
header: { type: String },
|
|
@@ -231,7 +231,7 @@ var ye = [
|
|
|
231
231
|
emits: ["update:modelValue"],
|
|
232
232
|
setup(e) {
|
|
233
233
|
let t = e, n = V("dialog"), r = z(e, "modelValue");
|
|
234
|
-
|
|
234
|
+
U(() => r.value, () => {
|
|
235
235
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
236
236
|
});
|
|
237
237
|
let i = () => {
|
|
@@ -245,74 +245,74 @@ var ye = [
|
|
|
245
245
|
style: { "--max-width": "480px" },
|
|
246
246
|
onClose: i,
|
|
247
247
|
onClick: c
|
|
248
|
-
}, [s("div",
|
|
248
|
+
}, [s("div", De, [e.hideHeader ? a("v-if", !0) : (O(), o("div", Oe, [s("span", ke, I(e.header), 1), e.subheader ? (O(), o("span", Ae, I(e.subheader), 1)) : a("v-if", !0)])), N(t.$slots, "body")]), e.hideFooter ? a("v-if", !0) : (O(), o("div", je, [N(t.$slots, "footer")]))], 544));
|
|
249
249
|
}
|
|
250
|
-
}),
|
|
250
|
+
}), Ne = Math.min, Pe = Math.max, Fe = Math.round, Y = (e) => ({
|
|
251
251
|
x: e,
|
|
252
252
|
y: e
|
|
253
|
-
}),
|
|
253
|
+
}), Ie = {
|
|
254
254
|
left: "right",
|
|
255
255
|
right: "left",
|
|
256
256
|
bottom: "top",
|
|
257
257
|
top: "bottom"
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function Le(e, t) {
|
|
260
260
|
return typeof e == "function" ? e(t) : e;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Re(e) {
|
|
263
263
|
return e.split("-")[0];
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function ze(e) {
|
|
266
266
|
return e.split("-")[1];
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Be(e) {
|
|
269
269
|
return e === "x" ? "y" : "x";
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ve(e) {
|
|
272
272
|
return e === "y" ? "height" : "width";
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function He(e) {
|
|
275
275
|
let t = e[0];
|
|
276
276
|
return t === "t" || t === "b" ? "y" : "x";
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
return
|
|
278
|
+
function Ue(e) {
|
|
279
|
+
return Be(He(e));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function We(e, t, n) {
|
|
282
282
|
n === void 0 && (n = !1);
|
|
283
|
-
let r =
|
|
284
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
283
|
+
let r = ze(e), i = Ue(e), a = Ve(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
284
|
+
return t.reference[a] > t.floating[a] && (o = $e(o)), [o, $e(o)];
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
let t =
|
|
286
|
+
function Ge(e) {
|
|
287
|
+
let t = $e(e);
|
|
288
288
|
return [
|
|
289
|
-
|
|
289
|
+
Ke(e),
|
|
290
290
|
t,
|
|
291
|
-
|
|
291
|
+
Ke(t)
|
|
292
292
|
];
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Ke(e) {
|
|
295
295
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
function
|
|
297
|
+
var qe = ["left", "right"], Je = ["right", "left"], Ye = ["top", "bottom"], Xe = ["bottom", "top"];
|
|
298
|
+
function Ze(e, t, n) {
|
|
299
299
|
switch (e) {
|
|
300
300
|
case "top":
|
|
301
|
-
case "bottom": return n ? t ?
|
|
301
|
+
case "bottom": return n ? t ? Je : qe : t ? qe : Je;
|
|
302
302
|
case "left":
|
|
303
|
-
case "right": return t ?
|
|
303
|
+
case "right": return t ? Ye : Xe;
|
|
304
304
|
default: return [];
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
let i =
|
|
309
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
307
|
+
function Qe(e, t, n, r) {
|
|
308
|
+
let i = ze(e), a = Ze(Re(e), n === "start", r);
|
|
309
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ke)))), a;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
let t =
|
|
313
|
-
return
|
|
311
|
+
function $e(e) {
|
|
312
|
+
let t = Re(e);
|
|
313
|
+
return Ie[t] + e.slice(t.length);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function et(e) {
|
|
316
316
|
return {
|
|
317
317
|
top: 0,
|
|
318
318
|
right: 0,
|
|
@@ -321,15 +321,15 @@ function tt(e) {
|
|
|
321
321
|
...e
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function tt(e) {
|
|
325
325
|
return typeof e == "number" ? {
|
|
326
326
|
top: e,
|
|
327
327
|
right: e,
|
|
328
328
|
bottom: e,
|
|
329
329
|
left: e
|
|
330
|
-
} :
|
|
330
|
+
} : et(e);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function nt(e) {
|
|
333
333
|
let { x: t, y: n, width: r, height: i } = e;
|
|
334
334
|
return {
|
|
335
335
|
width: r,
|
|
@@ -344,8 +344,8 @@ function rt(e) {
|
|
|
344
344
|
}
|
|
345
345
|
//#endregion
|
|
346
346
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
347
|
-
function
|
|
348
|
-
let { reference: r, floating: i } = e, a =
|
|
347
|
+
function rt(e, t, n) {
|
|
348
|
+
let { reference: r, floating: i } = e, a = He(t), o = Ue(t), s = Ve(o), c = Re(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
349
349
|
switch (c) {
|
|
350
350
|
case "top":
|
|
351
351
|
p = {
|
|
@@ -376,7 +376,7 @@ function it(e, t, n) {
|
|
|
376
376
|
y: r.y
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
switch (
|
|
379
|
+
switch (ze(t)) {
|
|
380
380
|
case "start":
|
|
381
381
|
p[o] -= f * (n && l ? -1 : 1);
|
|
382
382
|
break;
|
|
@@ -386,9 +386,9 @@ function it(e, t, n) {
|
|
|
386
386
|
}
|
|
387
387
|
return p;
|
|
388
388
|
}
|
|
389
|
-
async function
|
|
389
|
+
async function it(e, t) {
|
|
390
390
|
t === void 0 && (t = {});
|
|
391
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
391
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Le(t, e), p = tt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = nt(await i.getClippingRect({
|
|
392
392
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
393
393
|
boundary: c,
|
|
394
394
|
rootBoundary: l,
|
|
@@ -401,7 +401,7 @@ async function at(e, t) {
|
|
|
401
401
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
402
402
|
x: 1,
|
|
403
403
|
y: 1
|
|
404
|
-
}, y =
|
|
404
|
+
}, y = nt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
405
405
|
elements: o,
|
|
406
406
|
rect: g,
|
|
407
407
|
offsetParent: _,
|
|
@@ -414,15 +414,15 @@ async function at(e, t) {
|
|
|
414
414
|
right: (y.right - h.right + p.right) / v.x
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
var
|
|
417
|
+
var at = 50, ot = async (e, t, n) => {
|
|
418
418
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
419
419
|
...o,
|
|
420
|
-
detectOverflow:
|
|
420
|
+
detectOverflow: it
|
|
421
421
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
422
422
|
reference: e,
|
|
423
423
|
floating: t,
|
|
424
424
|
strategy: i
|
|
425
|
-
}), { x: u, y: d } =
|
|
425
|
+
}), { x: u, y: d } = rt(l, r, c), f = r, p = 0, m = {};
|
|
426
426
|
for (let n = 0; n < a.length; n++) {
|
|
427
427
|
let h = a[n];
|
|
428
428
|
if (!h) continue;
|
|
@@ -443,11 +443,11 @@ var ot = 50, st = async (e, t, n) => {
|
|
|
443
443
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
444
444
|
...m[g],
|
|
445
445
|
...b
|
|
446
|
-
}, x && p <
|
|
446
|
+
}, x && p < at && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
447
447
|
reference: e,
|
|
448
448
|
floating: t,
|
|
449
449
|
strategy: i
|
|
450
|
-
}) : x.rects), {x: u, y: d} =
|
|
450
|
+
}) : x.rects), {x: u, y: d} = rt(l, f, c)), n = -1);
|
|
451
451
|
}
|
|
452
452
|
return {
|
|
453
453
|
x: u,
|
|
@@ -456,19 +456,19 @@ var ot = 50, st = async (e, t, n) => {
|
|
|
456
456
|
strategy: i,
|
|
457
457
|
middlewareData: m
|
|
458
458
|
};
|
|
459
|
-
},
|
|
459
|
+
}, st = function(e) {
|
|
460
460
|
return e === void 0 && (e = {}), {
|
|
461
461
|
name: "flip",
|
|
462
462
|
options: e,
|
|
463
463
|
async fn(t) {
|
|
464
464
|
var n;
|
|
465
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
465
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Le(e, t);
|
|
466
466
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
467
|
-
let g =
|
|
468
|
-
!d && x && b.push(
|
|
467
|
+
let g = Re(r), _ = He(o), v = Re(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [$e(o)] : Ge(o)), x = p !== "none";
|
|
468
|
+
!d && x && b.push(...Qe(o, m, p, y));
|
|
469
469
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
470
470
|
if (l && w.push(C[g]), u) {
|
|
471
|
-
let e =
|
|
471
|
+
let e = We(r, a, y);
|
|
472
472
|
w.push(C[e[0]], C[e[1]]);
|
|
473
473
|
}
|
|
474
474
|
if (T = [...T, {
|
|
@@ -476,7 +476,7 @@ var ot = 50, st = async (e, t, n) => {
|
|
|
476
476
|
overflows: w
|
|
477
477
|
}], !w.every((e) => e <= 0)) {
|
|
478
478
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
479
|
-
if (t && (!(u === "alignment" && _ !==
|
|
479
|
+
if (t && (!(u === "alignment" && _ !== He(t)) || T.every((e) => He(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
480
480
|
data: {
|
|
481
481
|
index: e,
|
|
482
482
|
overflows: T
|
|
@@ -488,7 +488,7 @@ var ot = 50, st = async (e, t, n) => {
|
|
|
488
488
|
case "bestFit": {
|
|
489
489
|
let e = T.filter((e) => {
|
|
490
490
|
if (x) {
|
|
491
|
-
let t =
|
|
491
|
+
let t = He(e.placement);
|
|
492
492
|
return t === _ || t === "y";
|
|
493
493
|
}
|
|
494
494
|
return !0;
|
|
@@ -505,9 +505,9 @@ var ot = 50, st = async (e, t, n) => {
|
|
|
505
505
|
return {};
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
|
-
},
|
|
509
|
-
async function
|
|
510
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
508
|
+
}, ct = /* @__PURE__ */ new Set(["left", "top"]);
|
|
509
|
+
async function lt(e, t) {
|
|
510
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Re(n), s = ze(n), c = He(n) === "y", l = ct.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Le(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
511
511
|
mainAxis: d,
|
|
512
512
|
crossAxis: 0,
|
|
513
513
|
alignmentAxis: null
|
|
@@ -524,13 +524,13 @@ async function ut(e, t) {
|
|
|
524
524
|
y: p * u
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
var
|
|
527
|
+
var ut = function(e) {
|
|
528
528
|
return e === void 0 && (e = 0), {
|
|
529
529
|
name: "offset",
|
|
530
530
|
options: e,
|
|
531
531
|
async fn(t) {
|
|
532
532
|
var n;
|
|
533
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
533
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await lt(t, e);
|
|
534
534
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
535
535
|
x: r + s.x,
|
|
536
536
|
y: i + s.y,
|
|
@@ -544,13 +544,13 @@ var dt = function(e) {
|
|
|
544
544
|
};
|
|
545
545
|
//#endregion
|
|
546
546
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
547
|
-
function
|
|
547
|
+
function dt() {
|
|
548
548
|
return typeof window < "u";
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function ft(e) {
|
|
551
551
|
return ht(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function pt(e) {
|
|
554
554
|
var t;
|
|
555
555
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
556
556
|
}
|
|
@@ -558,23 +558,23 @@ function mt(e) {
|
|
|
558
558
|
return ((ht(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
559
559
|
}
|
|
560
560
|
function ht(e) {
|
|
561
|
-
return
|
|
561
|
+
return dt() ? e instanceof Node || e instanceof pt(e).Node : !1;
|
|
562
562
|
}
|
|
563
563
|
function gt(e) {
|
|
564
|
-
return
|
|
564
|
+
return dt() ? e instanceof Element || e instanceof pt(e).Element : !1;
|
|
565
565
|
}
|
|
566
566
|
function _t(e) {
|
|
567
|
-
return
|
|
567
|
+
return dt() ? e instanceof HTMLElement || e instanceof pt(e).HTMLElement : !1;
|
|
568
568
|
}
|
|
569
569
|
function vt(e) {
|
|
570
|
-
return !
|
|
570
|
+
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pt(e).ShadowRoot;
|
|
571
571
|
}
|
|
572
572
|
function yt(e) {
|
|
573
573
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = At(e);
|
|
574
574
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
575
575
|
}
|
|
576
576
|
function bt(e) {
|
|
577
|
-
return /^(table|td|th)$/.test(
|
|
577
|
+
return /^(table|td|th)$/.test(ft(e));
|
|
578
578
|
}
|
|
579
579
|
function xt(e) {
|
|
580
580
|
try {
|
|
@@ -604,10 +604,10 @@ function Ot() {
|
|
|
604
604
|
return Tt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Tt;
|
|
605
605
|
}
|
|
606
606
|
function kt(e) {
|
|
607
|
-
return /^(html|body|#document)$/.test(
|
|
607
|
+
return /^(html|body|#document)$/.test(ft(e));
|
|
608
608
|
}
|
|
609
609
|
function At(e) {
|
|
610
|
-
return
|
|
610
|
+
return pt(e).getComputedStyle(e);
|
|
611
611
|
}
|
|
612
612
|
function jt(e) {
|
|
613
613
|
return gt(e) ? {
|
|
@@ -619,7 +619,7 @@ function jt(e) {
|
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
function Mt(e) {
|
|
622
|
-
if (
|
|
622
|
+
if (ft(e) === "html") return e;
|
|
623
623
|
let t = e.assignedSlot || e.parentNode || vt(e) && e.host || mt(e);
|
|
624
624
|
return vt(t) ? t.host : t;
|
|
625
625
|
}
|
|
@@ -629,7 +629,7 @@ function Nt(e) {
|
|
|
629
629
|
}
|
|
630
630
|
function Pt(e, t, n) {
|
|
631
631
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
632
|
-
let r = Nt(e), i = r === e.ownerDocument?.body, a =
|
|
632
|
+
let r = Nt(e), i = r === e.ownerDocument?.body, a = pt(r);
|
|
633
633
|
if (i) {
|
|
634
634
|
let e = Ft(a);
|
|
635
635
|
return t.concat(a, a.visualViewport || [], yt(r) ? r : [], e && n ? Pt(e) : []);
|
|
@@ -641,7 +641,7 @@ function Ft(e) {
|
|
|
641
641
|
//#endregion
|
|
642
642
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
643
643
|
function It(e) {
|
|
644
|
-
let t = At(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = _t(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
644
|
+
let t = At(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = _t(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Fe(n) !== a || Fe(r) !== o;
|
|
645
645
|
return s && (n = a, r = o), {
|
|
646
646
|
width: n,
|
|
647
647
|
height: r,
|
|
@@ -653,37 +653,37 @@ function Lt(e) {
|
|
|
653
653
|
}
|
|
654
654
|
function Rt(e) {
|
|
655
655
|
let t = Lt(e);
|
|
656
|
-
if (!_t(t)) return
|
|
657
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = It(t), o = (a ?
|
|
656
|
+
if (!_t(t)) return Y(1);
|
|
657
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = It(t), o = (a ? Fe(n.width) : n.width) / r, s = (a ? Fe(n.height) : n.height) / i;
|
|
658
658
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
659
659
|
x: o,
|
|
660
660
|
y: s
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
var zt = /* @__PURE__ */
|
|
663
|
+
var zt = /* @__PURE__ */ Y(0);
|
|
664
664
|
function Bt(e) {
|
|
665
|
-
let t =
|
|
665
|
+
let t = pt(e);
|
|
666
666
|
return !Ot() || !t.visualViewport ? zt : {
|
|
667
667
|
x: t.visualViewport.offsetLeft,
|
|
668
668
|
y: t.visualViewport.offsetTop
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
function Vt(e, t, n) {
|
|
672
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
672
|
+
return t === void 0 && (t = !1), !n || t && n !== pt(e) ? !1 : t;
|
|
673
673
|
}
|
|
674
674
|
function Ht(e, t, n, r) {
|
|
675
675
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
676
|
-
let i = e.getBoundingClientRect(), a = Lt(e), o =
|
|
676
|
+
let i = e.getBoundingClientRect(), a = Lt(e), o = Y(1);
|
|
677
677
|
t && (r ? gt(r) && (o = Rt(r)) : o = Rt(e));
|
|
678
|
-
let s = Vt(a, n, r) ? Bt(a) :
|
|
678
|
+
let s = Vt(a, n, r) ? Bt(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
679
679
|
if (a) {
|
|
680
|
-
let e =
|
|
680
|
+
let e = pt(a), t = r && gt(r) ? pt(r) : r, n = e, i = Ft(n);
|
|
681
681
|
for (; i && r && t !== n;) {
|
|
682
682
|
let e = Rt(i), t = i.getBoundingClientRect(), r = At(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
683
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
683
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = pt(i), i = Ft(n);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return nt({
|
|
687
687
|
width: u,
|
|
688
688
|
height: d,
|
|
689
689
|
x: c,
|
|
@@ -707,12 +707,12 @@ function Gt(e) {
|
|
|
707
707
|
let c = {
|
|
708
708
|
scrollLeft: 0,
|
|
709
709
|
scrollTop: 0
|
|
710
|
-
}, l =
|
|
711
|
-
if ((d || !d && !a) && ((
|
|
710
|
+
}, l = Y(1), u = Y(0), d = _t(r);
|
|
711
|
+
if ((d || !d && !a) && ((ft(r) !== "body" || yt(o)) && (c = jt(r)), d)) {
|
|
712
712
|
let e = Ht(r);
|
|
713
713
|
l = Rt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
714
714
|
}
|
|
715
|
-
let f = o && !d && !a ? Wt(o, c) :
|
|
715
|
+
let f = o && !d && !a ? Wt(o, c) : Y(0);
|
|
716
716
|
return {
|
|
717
717
|
width: n.width * l.x,
|
|
718
718
|
height: n.height * l.y,
|
|
@@ -724,8 +724,8 @@ function Kt(e) {
|
|
|
724
724
|
return Array.from(e.getClientRects());
|
|
725
725
|
}
|
|
726
726
|
function qt(e) {
|
|
727
|
-
let t = mt(e), n = jt(e), r = e.ownerDocument.body, i =
|
|
728
|
-
return At(r).direction === "rtl" && (o +=
|
|
727
|
+
let t = mt(e), n = jt(e), r = e.ownerDocument.body, i = Pe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Pe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ut(e), s = -n.scrollTop;
|
|
728
|
+
return At(r).direction === "rtl" && (o += Pe(t.clientWidth, r.clientWidth) - i), {
|
|
729
729
|
width: i,
|
|
730
730
|
height: a,
|
|
731
731
|
x: o,
|
|
@@ -734,7 +734,7 @@ function qt(e) {
|
|
|
734
734
|
}
|
|
735
735
|
var Jt = 25;
|
|
736
736
|
function Yt(e, t) {
|
|
737
|
-
let n =
|
|
737
|
+
let n = pt(e), r = mt(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
738
738
|
if (i) {
|
|
739
739
|
a = i.width, o = i.height;
|
|
740
740
|
let e = Ot();
|
|
@@ -753,7 +753,7 @@ function Yt(e, t) {
|
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
755
|
function Xt(e, t) {
|
|
756
|
-
let n = Ht(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = _t(e) ? Rt(e) :
|
|
756
|
+
let n = Ht(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = _t(e) ? Rt(e) : Y(1);
|
|
757
757
|
return {
|
|
758
758
|
width: e.clientWidth * a.x,
|
|
759
759
|
height: e.clientHeight * a.y,
|
|
@@ -775,7 +775,7 @@ function Zt(e, t, n) {
|
|
|
775
775
|
height: t.height
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
|
-
return
|
|
778
|
+
return nt(r);
|
|
779
779
|
}
|
|
780
780
|
function Qt(e, t) {
|
|
781
781
|
let n = Mt(e);
|
|
@@ -784,7 +784,7 @@ function Qt(e, t) {
|
|
|
784
784
|
function $t(e, t) {
|
|
785
785
|
let n = t.get(e);
|
|
786
786
|
if (n) return n;
|
|
787
|
-
let r = Pt(e, [], !1).filter((e) => gt(e) &&
|
|
787
|
+
let r = Pt(e, [], !1).filter((e) => gt(e) && ft(e) !== "body"), i = null, a = At(e).position === "fixed", o = a ? Mt(e) : e;
|
|
788
788
|
for (; gt(o) && !kt(o);) {
|
|
789
789
|
let t = At(o), n = Et(o);
|
|
790
790
|
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || yt(o) && !n && Qt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Mt(o);
|
|
@@ -795,7 +795,7 @@ function en(e) {
|
|
|
795
795
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? xt(t) ? [] : $t(t, this._c) : [].concat(n), r], o = Zt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
796
796
|
for (let e = 1; e < a.length; e++) {
|
|
797
797
|
let n = Zt(t, a[e], i);
|
|
798
|
-
s =
|
|
798
|
+
s = Pe(n.top, s), c = Ne(n.right, c), l = Ne(n.bottom, l), u = Pe(n.left, u);
|
|
799
799
|
}
|
|
800
800
|
return {
|
|
801
801
|
width: c - u,
|
|
@@ -815,16 +815,16 @@ function nn(e, t, n) {
|
|
|
815
815
|
let r = _t(t), i = mt(t), a = n === "fixed", o = Ht(e, !0, a, t), s = {
|
|
816
816
|
scrollLeft: 0,
|
|
817
817
|
scrollTop: 0
|
|
818
|
-
}, c =
|
|
818
|
+
}, c = Y(0);
|
|
819
819
|
function l() {
|
|
820
820
|
c.x = Ut(i);
|
|
821
821
|
}
|
|
822
|
-
if (r || !r && !a) if ((
|
|
822
|
+
if (r || !r && !a) if ((ft(t) !== "body" || yt(i)) && (s = jt(t)), r) {
|
|
823
823
|
let e = Ht(t, !0, a, t);
|
|
824
824
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
825
825
|
} else i && l();
|
|
826
826
|
a && !r && i && l();
|
|
827
|
-
let u = i && !r && !a ? Wt(i, s) :
|
|
827
|
+
let u = i && !r && !a ? Wt(i, s) : Y(0);
|
|
828
828
|
return {
|
|
829
829
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
830
830
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -842,7 +842,7 @@ function an(e, t) {
|
|
|
842
842
|
return mt(e) === n && (n = n.ownerDocument.body), n;
|
|
843
843
|
}
|
|
844
844
|
function on(e, t) {
|
|
845
|
-
let n =
|
|
845
|
+
let n = pt(e);
|
|
846
846
|
if (xt(e)) return n;
|
|
847
847
|
if (!_t(e)) {
|
|
848
848
|
let t = Mt(e);
|
|
@@ -882,7 +882,7 @@ var ln = {
|
|
|
882
882
|
getScale: Rt,
|
|
883
883
|
isElement: gt,
|
|
884
884
|
isRTL: cn
|
|
885
|
-
}, un =
|
|
885
|
+
}, un = ut, dn = st, fn = (e, t, n) => {
|
|
886
886
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
887
887
|
platform: ln,
|
|
888
888
|
...n
|
|
@@ -890,11 +890,11 @@ var ln = {
|
|
|
890
890
|
...i.platform,
|
|
891
891
|
_c: r
|
|
892
892
|
};
|
|
893
|
-
return
|
|
893
|
+
return ot(e, t, {
|
|
894
894
|
...i,
|
|
895
895
|
platform: a
|
|
896
896
|
});
|
|
897
|
-
}, X = /* @__PURE__ */
|
|
897
|
+
}, X = /* @__PURE__ */ de({
|
|
898
898
|
Vue: () => e,
|
|
899
899
|
Vue2: () => void 0,
|
|
900
900
|
del: () => gn,
|
|
@@ -904,7 +904,7 @@ var ln = {
|
|
|
904
904
|
set: () => hn
|
|
905
905
|
});
|
|
906
906
|
import * as pn from "vue";
|
|
907
|
-
|
|
907
|
+
pe(X, pn);
|
|
908
908
|
function mn() {}
|
|
909
909
|
function hn(e, t, n) {
|
|
910
910
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -924,7 +924,7 @@ function _n(e) {
|
|
|
924
924
|
function vn(e) {
|
|
925
925
|
if (_n(e)) {
|
|
926
926
|
let t = e.$el;
|
|
927
|
-
return ht(t) &&
|
|
927
|
+
return ht(t) && ft(t) === "#comment" ? null : t;
|
|
928
928
|
}
|
|
929
929
|
return e;
|
|
930
930
|
}
|
|
@@ -1030,7 +1030,7 @@ function Nn(e, t = {}) {
|
|
|
1030
1030
|
clearTimeout(e), i(), i = On;
|
|
1031
1031
|
}, o;
|
|
1032
1032
|
return (s) => {
|
|
1033
|
-
let c =
|
|
1033
|
+
let c = L(e), l = L(t.maxWait);
|
|
1034
1034
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
1035
1035
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
1036
1036
|
n && a(n), r = void 0, e(o());
|
|
@@ -1052,7 +1052,7 @@ function In(e, t = 200, n = {}) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
function Ln(e, t, n = {}) {
|
|
1054
1054
|
let { eventFilter: r = Mn, ...i } = n;
|
|
1055
|
-
return
|
|
1055
|
+
return U(e, jn(r, t), i);
|
|
1056
1056
|
}
|
|
1057
1057
|
function Rn(e, t = !0, n) {
|
|
1058
1058
|
Fn(n) ? T(e, n) : t ? e() : y(e);
|
|
@@ -1065,7 +1065,7 @@ function zn(e, t, n = {}) {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
1067
|
function Bn(e, t, n) {
|
|
1068
|
-
return
|
|
1068
|
+
return U(e, t, {
|
|
1069
1069
|
...n,
|
|
1070
1070
|
immediate: !0
|
|
1071
1071
|
});
|
|
@@ -1075,20 +1075,20 @@ function Bn(e, t, n) {
|
|
|
1075
1075
|
var Vn = wn ? window : void 0;
|
|
1076
1076
|
wn && window.document, wn && window.navigator, wn && window.location;
|
|
1077
1077
|
function Hn(e) {
|
|
1078
|
-
let t =
|
|
1078
|
+
let t = L(e);
|
|
1079
1079
|
return t?.$el ?? t;
|
|
1080
1080
|
}
|
|
1081
1081
|
function Un(...e) {
|
|
1082
1082
|
let t = [], n = () => {
|
|
1083
1083
|
t.forEach((e) => e()), t.length = 0;
|
|
1084
1084
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
1085
|
-
let t = Pn(
|
|
1085
|
+
let t = Pn(L(e[0])).filter((e) => e != null);
|
|
1086
1086
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
1087
1087
|
}), o = Bn(() => [
|
|
1088
1088
|
a.value?.map((e) => Hn(e)) ?? [Vn].filter((e) => e != null),
|
|
1089
|
-
Pn(
|
|
1090
|
-
Pn(
|
|
1091
|
-
|
|
1089
|
+
Pn(L(a.value ? e[1] : e[0])),
|
|
1090
|
+
Pn(R(a.value ? e[2] : e[1])),
|
|
1091
|
+
L(a.value ? e[3] : e[2])
|
|
1092
1092
|
], ([e, r, a, o]) => {
|
|
1093
1093
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
1094
1094
|
let s = Dn(o) ? { ...o } : o;
|
|
@@ -1111,7 +1111,7 @@ function Gn(e, t, n = {}) {
|
|
|
1111
1111
|
let e = { passive: !0 };
|
|
1112
1112
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", On, e)), r.document.documentElement.addEventListener("click", On, e);
|
|
1113
1113
|
}
|
|
1114
|
-
let c = !0, l = (e) =>
|
|
1114
|
+
let c = !0, l = (e) => L(i).some((t) => {
|
|
1115
1115
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
1116
1116
|
{
|
|
1117
1117
|
let n = Hn(t);
|
|
@@ -1119,11 +1119,11 @@ function Gn(e, t, n = {}) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
function u(e) {
|
|
1122
|
-
let t =
|
|
1122
|
+
let t = L(e);
|
|
1123
1123
|
return t && t.$.subTree.shapeFlag === 16;
|
|
1124
1124
|
}
|
|
1125
1125
|
function d(e, t) {
|
|
1126
|
-
let n =
|
|
1126
|
+
let n = L(e), r = n.$.subTree && n.$.subTree.children;
|
|
1127
1127
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
1128
1128
|
}
|
|
1129
1129
|
let f = (n) => {
|
|
@@ -1167,7 +1167,7 @@ function Gn(e, t, n = {}) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1169
1169
|
function Kn() {
|
|
1170
|
-
let e =
|
|
1170
|
+
let e = F(!1), t = p();
|
|
1171
1171
|
return t && T(() => {
|
|
1172
1172
|
e.value = !0;
|
|
1173
1173
|
}, t), e;
|
|
@@ -1180,8 +1180,8 @@ function qn(e) {
|
|
|
1180
1180
|
function Jn(e, t, n = {}) {
|
|
1181
1181
|
let { window: i = Vn, ...a } = n, o, s = /* @__PURE__ */ qn(() => i && "MutationObserver" in i), c = () => {
|
|
1182
1182
|
o &&= (o.disconnect(), void 0);
|
|
1183
|
-
}, l =
|
|
1184
|
-
let t = Pn(
|
|
1183
|
+
}, l = U(r(() => {
|
|
1184
|
+
let t = Pn(L(e)).map(Hn).filter(Tn);
|
|
1185
1185
|
return new Set(t);
|
|
1186
1186
|
}), (e) => {
|
|
1187
1187
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -1202,7 +1202,7 @@ function Yn(e, t, n = {}) {
|
|
|
1202
1202
|
if (!r || !i) return On;
|
|
1203
1203
|
let o, s = (e) => {
|
|
1204
1204
|
o?.(), o = e;
|
|
1205
|
-
}, c =
|
|
1205
|
+
}, c = ae(() => {
|
|
1206
1206
|
let n = Hn(e);
|
|
1207
1207
|
if (n) {
|
|
1208
1208
|
let { stop: e } = Jn(i, (e) => {
|
|
@@ -1227,14 +1227,14 @@ function Zn(...e) {
|
|
|
1227
1227
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
1228
1228
|
let { target: i = Vn, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Xn(t);
|
|
1229
1229
|
return Un(i, a, (e) => {
|
|
1230
|
-
e.repeat &&
|
|
1230
|
+
e.repeat && L(s) || c(e) && n(e);
|
|
1231
1231
|
}, o);
|
|
1232
1232
|
}
|
|
1233
1233
|
function Qn(e, t, n = {}) {
|
|
1234
1234
|
let { window: i = Vn, ...a } = n, o, s = /* @__PURE__ */ qn(() => i && "ResizeObserver" in i), c = () => {
|
|
1235
1235
|
o &&= (o.disconnect(), void 0);
|
|
1236
|
-
}, l =
|
|
1237
|
-
let t =
|
|
1236
|
+
}, l = U(r(() => {
|
|
1237
|
+
let t = L(e);
|
|
1238
1238
|
return Array.isArray(t) ? t.map((e) => Hn(e)) : [Hn(t)];
|
|
1239
1239
|
}), (e) => {
|
|
1240
1240
|
if (c(), s.value && i) {
|
|
@@ -1253,7 +1253,7 @@ function Qn(e, t, n = {}) {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
1255
|
function $n(e, t = {}) {
|
|
1256
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
1256
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = F(0), c = F(0), l = F(0), u = F(0), d = F(0), f = F(0), p = F(0), m = F(0);
|
|
1257
1257
|
function h() {
|
|
1258
1258
|
let t = Hn(e);
|
|
1259
1259
|
if (!t) {
|
|
@@ -1266,7 +1266,7 @@ function $n(e, t = {}) {
|
|
|
1266
1266
|
function g() {
|
|
1267
1267
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1268
1268
|
}
|
|
1269
|
-
return Qn(e, g),
|
|
1269
|
+
return Qn(e, g), U(() => Hn(e), (e) => !e && g()), Jn(e, g, { attributeFilter: ["style", "class"] }), i && Un("scroll", g, {
|
|
1270
1270
|
capture: !0,
|
|
1271
1271
|
passive: !0
|
|
1272
1272
|
}), r && Un("resize", g, { passive: !0 }), Rn(() => {
|
|
@@ -1284,7 +1284,7 @@ function $n(e, t = {}) {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
1286
|
function er(e, t = {}) {
|
|
1287
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Vn } = t, s =
|
|
1287
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Vn } = t, s = F(!1), c, l = (e) => {
|
|
1288
1288
|
let t = e ? n : i;
|
|
1289
1289
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1290
1290
|
};
|
|
@@ -1306,18 +1306,18 @@ function rr(e, t) {
|
|
|
1306
1306
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1307
1307
|
}
|
|
1308
1308
|
function ir(e, t = {}) {
|
|
1309
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1309
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = _e(), l = i ?? B(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = j(d());
|
|
1310
1310
|
w(() => {
|
|
1311
1311
|
f.value = d();
|
|
1312
1312
|
});
|
|
1313
|
-
let p =
|
|
1313
|
+
let p = j(!1), m = null, h = null, g = () => {
|
|
1314
1314
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1315
1315
|
}, _ = () => {
|
|
1316
1316
|
if (!c.value) {
|
|
1317
1317
|
p.value = !1;
|
|
1318
1318
|
return;
|
|
1319
1319
|
}
|
|
1320
|
-
let t =
|
|
1320
|
+
let t = R(n);
|
|
1321
1321
|
if (!t) {
|
|
1322
1322
|
p.value = !1;
|
|
1323
1323
|
return;
|
|
@@ -1331,7 +1331,7 @@ function ir(e, t = {}) {
|
|
|
1331
1331
|
}, v = () => {
|
|
1332
1332
|
if (!c.value) return;
|
|
1333
1333
|
g();
|
|
1334
|
-
let t =
|
|
1334
|
+
let t = R(n);
|
|
1335
1335
|
if (!t) {
|
|
1336
1336
|
p.value = !1;
|
|
1337
1337
|
return;
|
|
@@ -1344,7 +1344,7 @@ function ir(e, t = {}) {
|
|
|
1344
1344
|
characterData: !0
|
|
1345
1345
|
}));
|
|
1346
1346
|
};
|
|
1347
|
-
return T(v), C(g),
|
|
1347
|
+
return T(v), C(g), U(() => R(n), () => {
|
|
1348
1348
|
c.value && v();
|
|
1349
1349
|
}), {
|
|
1350
1350
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1355,7 +1355,7 @@ function ir(e, t = {}) {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
//#endregion
|
|
1357
1357
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1358
|
-
var ar = ["popover"], or =
|
|
1358
|
+
var ar = ["popover"], or = "--pv-popover-v2-anchor", sr = /* @__PURE__ */ Ce(/* @__PURE__ */ d({
|
|
1359
1359
|
__name: "PvPopoverV2",
|
|
1360
1360
|
props: /* @__PURE__ */ _({
|
|
1361
1361
|
disableAutoPlacement: {
|
|
@@ -1390,6 +1390,10 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1390
1390
|
default: 25,
|
|
1391
1391
|
type: Number
|
|
1392
1392
|
},
|
|
1393
|
+
closeDelay: {
|
|
1394
|
+
default: 200,
|
|
1395
|
+
type: Number
|
|
1396
|
+
},
|
|
1393
1397
|
zIndex: {
|
|
1394
1398
|
default: 10,
|
|
1395
1399
|
type: Number
|
|
@@ -1410,8 +1414,9 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1410
1414
|
"anchor-name: --pv-anchor",
|
|
1411
1415
|
"position-area: bottom",
|
|
1412
1416
|
"position-try-fallbacks: flip-block",
|
|
1413
|
-
"position-visibility: anchors-visible"
|
|
1414
|
-
|
|
1417
|
+
"position-visibility: anchors-visible",
|
|
1418
|
+
`anchor-scope: ${or}`
|
|
1419
|
+
].every((e) => CSS.supports(e)), g = j(!1), _ = j(null), v = j(null), b = j(null), x = j(null), C = er(v), w = er(x), E = j(!1), D = {
|
|
1415
1420
|
"top-center": "top",
|
|
1416
1421
|
"bottom-center": "bottom",
|
|
1417
1422
|
"center-left": "left",
|
|
@@ -1420,7 +1425,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1420
1425
|
"top-right": "top-end",
|
|
1421
1426
|
"bottom-left": "bottom-start",
|
|
1422
1427
|
"bottom-right": "bottom-end"
|
|
1423
|
-
},
|
|
1428
|
+
}, k = {
|
|
1424
1429
|
"top-center": {
|
|
1425
1430
|
area: "top",
|
|
1426
1431
|
margin: "margin-block-end"
|
|
@@ -1453,104 +1458,116 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1453
1458
|
area: "bottom span-left",
|
|
1454
1459
|
margin: "margin-block-start"
|
|
1455
1460
|
}
|
|
1456
|
-
},
|
|
1457
|
-
let e =
|
|
1461
|
+
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), M = r(() => h ? { "anchor-scope": or } : void 0), P = r(() => h ? { "anchor-name": or } : void 0), F = r(() => {
|
|
1462
|
+
let e = k[t.position];
|
|
1458
1463
|
return {
|
|
1459
|
-
"position-anchor":
|
|
1464
|
+
"position-anchor": or,
|
|
1460
1465
|
"position-area": e.area,
|
|
1461
1466
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1462
1467
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1463
1468
|
};
|
|
1464
|
-
}),
|
|
1469
|
+
}), I = () => {}, L = () => ({});
|
|
1465
1470
|
if (!h) {
|
|
1466
1471
|
let e = [];
|
|
1467
1472
|
t.disableAutoPlacement || e.push(dn({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(un(t.offset));
|
|
1468
1473
|
let n = Sn(b, x, {
|
|
1469
|
-
placement:
|
|
1474
|
+
placement: D[t.position],
|
|
1470
1475
|
strategy: t.positioningStrategy,
|
|
1471
1476
|
middleware: e
|
|
1472
1477
|
});
|
|
1473
|
-
|
|
1478
|
+
I = n.update, L = () => n.floatingStyles.value;
|
|
1474
1479
|
let i = $n(b), a = /* @__PURE__ */ In(() => {
|
|
1475
|
-
c.value &&
|
|
1480
|
+
c.value && I();
|
|
1476
1481
|
}, 5);
|
|
1477
|
-
|
|
1482
|
+
U([
|
|
1478
1483
|
i.top,
|
|
1479
1484
|
i.left,
|
|
1480
1485
|
i.width,
|
|
1481
1486
|
i.height
|
|
1482
1487
|
], a), Gn(_, () => {
|
|
1483
|
-
t.disableClickOutsideToClose ||
|
|
1488
|
+
t.disableClickOutsideToClose || H(!1);
|
|
1484
1489
|
}, { ignore: r(() => [
|
|
1485
1490
|
x.value,
|
|
1486
1491
|
".p-datepicker-panel",
|
|
1487
1492
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1488
1493
|
]) });
|
|
1489
1494
|
}
|
|
1490
|
-
let
|
|
1491
|
-
...
|
|
1495
|
+
let te = r(() => ({
|
|
1496
|
+
...L(),
|
|
1492
1497
|
zIndex: t.zIndex
|
|
1493
|
-
})),
|
|
1494
|
-
|
|
1495
|
-
}, V = (e) => {
|
|
1496
|
-
B(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? R = setTimeout(() => {
|
|
1497
|
-
c.value = !0, R = void 0;
|
|
1498
|
-
}, t.delay) : c.value = e);
|
|
1498
|
+
})), ne, B, V = () => {
|
|
1499
|
+
ne && clearTimeout(ne), ne = void 0;
|
|
1499
1500
|
}, re = () => {
|
|
1501
|
+
B && clearTimeout(B), B = void 0;
|
|
1502
|
+
}, H = (e) => {
|
|
1503
|
+
V(), re(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? ne = setTimeout(() => {
|
|
1504
|
+
c.value = !0, ne = void 0;
|
|
1505
|
+
}, t.delay) : c.value = e);
|
|
1506
|
+
}, ae = () => {
|
|
1500
1507
|
let e = x.value;
|
|
1501
1508
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1502
|
-
},
|
|
1503
|
-
t.showOnHover ||
|
|
1504
|
-
},
|
|
1509
|
+
}, W = r(() => t.showOnHover ? t.disableInteractive ? C.value || E.value : C.value || w.value || E.value : !1), se = () => {
|
|
1510
|
+
t.showOnHover || H(ne ? !1 : !c.value);
|
|
1511
|
+
}, ce = (e) => {
|
|
1505
1512
|
let t = e.newState === "open";
|
|
1506
1513
|
c.value !== t && (c.value = t);
|
|
1507
|
-
},
|
|
1508
|
-
h &&
|
|
1514
|
+
}, G = (e) => {
|
|
1515
|
+
h && A.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), H(!1));
|
|
1509
1516
|
};
|
|
1510
|
-
return
|
|
1517
|
+
return U(c, async (e) => {
|
|
1511
1518
|
if (!h) {
|
|
1512
|
-
e &&
|
|
1519
|
+
e && I();
|
|
1513
1520
|
return;
|
|
1514
1521
|
}
|
|
1515
|
-
await y(),
|
|
1516
|
-
}),
|
|
1517
|
-
t.showOnHover
|
|
1518
|
-
|
|
1519
|
-
|
|
1522
|
+
await y(), ae();
|
|
1523
|
+
}), U(W, (e) => {
|
|
1524
|
+
if (t.showOnHover) {
|
|
1525
|
+
if (e) {
|
|
1526
|
+
H(!0);
|
|
1527
|
+
return;
|
|
1528
|
+
}
|
|
1529
|
+
V(), t.closeDelay > 0 ? (re(), B = setTimeout(() => {
|
|
1530
|
+
B = void 0, W.value || H(!1);
|
|
1531
|
+
}, t.closeDelay)) : H(!1);
|
|
1532
|
+
}
|
|
1533
|
+
}), U(m, (e) => {
|
|
1534
|
+
e ? h && c.value && y(ae) : (V(), re(), c.value = !1);
|
|
1520
1535
|
}), T(() => {
|
|
1521
|
-
b.value = v.value,
|
|
1522
|
-
}), ee(
|
|
1536
|
+
b.value = v.value, g.value = !0, c.value && y(() => h ? ae() : I());
|
|
1537
|
+
}), ee(() => {
|
|
1538
|
+
V(), re();
|
|
1539
|
+
}), (r, l) => (O(), o("div", {
|
|
1523
1540
|
ref_key: "root",
|
|
1524
1541
|
ref: _,
|
|
1525
|
-
style: { width: "fit-content" },
|
|
1526
|
-
onKeydown:
|
|
1542
|
+
style: S([{ width: "fit-content" }, M.value]),
|
|
1543
|
+
onKeydown: G
|
|
1527
1544
|
}, [s("div", {
|
|
1528
1545
|
ref_key: "triggerWrapper",
|
|
1529
1546
|
ref: v,
|
|
1530
|
-
style: S(
|
|
1531
|
-
onClick:
|
|
1532
|
-
onFocusin: l[0] ||= (e) =>
|
|
1533
|
-
onFocusout: l[1] ||= (e) =>
|
|
1534
|
-
}, [
|
|
1547
|
+
style: S(P.value),
|
|
1548
|
+
onClick: se,
|
|
1549
|
+
onFocusin: l[0] ||= (e) => E.value = !0,
|
|
1550
|
+
onFocusout: l[1] ||= (e) => E.value = !1
|
|
1551
|
+
}, [N(r.$slots, "trigger")], 36), g.value && R(h) && m.value ? (O(), o("div", {
|
|
1535
1552
|
key: 0,
|
|
1536
1553
|
ref_key: "floating",
|
|
1537
1554
|
ref: x,
|
|
1538
1555
|
class: "pv-floating pv-floating-native",
|
|
1539
|
-
popover:
|
|
1540
|
-
style: S(
|
|
1541
|
-
onToggle:
|
|
1542
|
-
}, [
|
|
1556
|
+
popover: A.value,
|
|
1557
|
+
style: S(F.value),
|
|
1558
|
+
onToggle: ce
|
|
1559
|
+
}, [N(r.$slots, "content")], 44, ar)) : m.value ? (O(), i(n, {
|
|
1543
1560
|
key: 1,
|
|
1544
1561
|
to: e.teleportLocation,
|
|
1545
1562
|
disabled: !t.useTeleport
|
|
1546
|
-
}, [
|
|
1563
|
+
}, [oe(s("div", {
|
|
1547
1564
|
ref_key: "floating",
|
|
1548
1565
|
ref: x,
|
|
1549
1566
|
class: "pv-floating",
|
|
1550
|
-
style: S(
|
|
1551
|
-
}, [
|
|
1567
|
+
style: S(te.value)
|
|
1568
|
+
}, [N(r.$slots, "content")], 4), [[ie, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1552
1569
|
}
|
|
1553
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1570
|
+
}), [["styles", [".pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-08e2d92a"]]), cr = ["data-variant"], lr = /* @__PURE__ */ d({
|
|
1554
1571
|
__name: "PvTooltipV2",
|
|
1555
1572
|
props: {
|
|
1556
1573
|
variant: {
|
|
@@ -1583,6 +1600,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1583
1600
|
default: 0,
|
|
1584
1601
|
type: Number
|
|
1585
1602
|
},
|
|
1603
|
+
closeDelay: { type: Number },
|
|
1586
1604
|
zIndex: { type: Number },
|
|
1587
1605
|
teleportLocation: { type: String },
|
|
1588
1606
|
offset: { type: Number },
|
|
@@ -1591,15 +1609,15 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1591
1609
|
setup(e) {
|
|
1592
1610
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = ir("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
1593
1611
|
return (t, n) => (O(), i(sr, x(h(t.$props)), c({
|
|
1594
|
-
trigger:
|
|
1612
|
+
trigger: W(() => [N(t.$slots, "trigger", {}, () => [s("p", null, I(e.label), 1)])]),
|
|
1595
1613
|
_: 2
|
|
1596
1614
|
}, [f.value ? {
|
|
1597
1615
|
name: "content",
|
|
1598
|
-
fn:
|
|
1616
|
+
fn: W(() => [s("div", {
|
|
1599
1617
|
class: b(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1600
1618
|
role: "tooltip",
|
|
1601
1619
|
"data-variant": e.variant
|
|
1602
|
-
}, [
|
|
1620
|
+
}, [N(t.$slots, "content", {}, () => [l(I(e.description), 1)])], 10, cr)]),
|
|
1603
1621
|
key: "0"
|
|
1604
1622
|
} : void 0]), 1040));
|
|
1605
1623
|
}
|
|
@@ -1623,13 +1641,13 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1623
1641
|
let n = z(e, "modelValue"), r = (e) => {
|
|
1624
1642
|
e.disabled || (n.value = e.value);
|
|
1625
1643
|
};
|
|
1626
|
-
return (a, s) => (O(), o("div", { class: b(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(O(!0), o(t, null,
|
|
1644
|
+
return (a, s) => (O(), o("div", { class: b(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(O(!0), o(t, null, M(e.options, (e) => (O(), i(lr, {
|
|
1627
1645
|
key: e.value,
|
|
1628
1646
|
variant: "dark",
|
|
1629
1647
|
position: "bottom-right",
|
|
1630
1648
|
style: { width: "100%" }
|
|
1631
1649
|
}, c({
|
|
1632
|
-
trigger:
|
|
1650
|
+
trigger: W(() => [u(J, {
|
|
1633
1651
|
class: b(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1634
1652
|
variant: "ghost",
|
|
1635
1653
|
label: e.label,
|
|
@@ -1652,7 +1670,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1652
1670
|
_: 2
|
|
1653
1671
|
}, [e.disabledReason ? {
|
|
1654
1672
|
name: "content",
|
|
1655
|
-
fn:
|
|
1673
|
+
fn: W(() => [l(I(e.disabledReason), 1)]),
|
|
1656
1674
|
key: "0"
|
|
1657
1675
|
} : void 0]), 1024))), 128))], 2));
|
|
1658
1676
|
}
|
|
@@ -1693,13 +1711,13 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1693
1711
|
"data-style": e.rounded ? "rounded" : void 0,
|
|
1694
1712
|
disabled: e.disabled,
|
|
1695
1713
|
title: e.label
|
|
1696
|
-
}, [e.icon ? (O(), i(
|
|
1714
|
+
}, [e.icon ? (O(), i(be, {
|
|
1697
1715
|
key: 0,
|
|
1698
1716
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1699
1717
|
name: e.icon,
|
|
1700
1718
|
size: 12,
|
|
1701
1719
|
class: b(e.iconClasses)
|
|
1702
|
-
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span", fr,
|
|
1720
|
+
}, null, 8, ["name", "class"])) : a("v-if", !0), s("span", fr, I(e.label), 1)], 10, dr));
|
|
1703
1721
|
}
|
|
1704
1722
|
}), mr = [
|
|
1705
1723
|
"aria-label",
|
|
@@ -1718,7 +1736,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1718
1736
|
emits: ["update:modelValue"],
|
|
1719
1737
|
setup(e) {
|
|
1720
1738
|
let t = z(e, "modelValue");
|
|
1721
|
-
return (n, r) =>
|
|
1739
|
+
return (n, r) => oe((O(), o("input", {
|
|
1722
1740
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1723
1741
|
class: "pv-checkbox",
|
|
1724
1742
|
type: "checkbox",
|
|
@@ -1763,7 +1781,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1763
1781
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1764
1782
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1765
1783
|
});
|
|
1766
|
-
}), t({ input: i }), (t, n) => (O(), o("div", gr, [
|
|
1784
|
+
}), t({ input: i }), (t, n) => (O(), o("div", gr, [oe(s("input", {
|
|
1767
1785
|
ref: "search-input",
|
|
1768
1786
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1769
1787
|
"data-testid": "pv-search-input",
|
|
@@ -1771,7 +1789,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1771
1789
|
disabled: e.disabled,
|
|
1772
1790
|
class: b(l.value),
|
|
1773
1791
|
placeholder: e.placeholder
|
|
1774
|
-
}, null, 10, _r), [[
|
|
1792
|
+
}, null, 10, _r), [[H, c.value]]), e.displayShortcut ? (O(), o("kbd", vr, I(yr))) : a("v-if", !0)]));
|
|
1775
1793
|
}
|
|
1776
1794
|
}), xr = {
|
|
1777
1795
|
key: 0,
|
|
@@ -1911,7 +1929,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1911
1929
|
}),
|
|
1912
1930
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
1913
1931
|
setup(e) {
|
|
1914
|
-
let t = e, n = z(e, "modelValue"), c = z(e, "rangeValue"), l =
|
|
1932
|
+
let t = e, n = z(e, "modelValue"), c = z(e, "rangeValue"), l = te(), u = ne(), d = `${u}-max`, f = `${u}-min`, p = j(""), m = j(""), h = j(null), g = j(null), _ = j(!1), y = j(null), x = null, w = null, T = (e) => typeof e == "number" && Number.isFinite(e), E = (e) => T(e) ? e : null, ee = (e) => {
|
|
1915
1933
|
let t = e.trim();
|
|
1916
1934
|
if (t === "") return null;
|
|
1917
1935
|
let n = Number(t.replace(/[^0-9.\-]/g, ""));
|
|
@@ -1920,13 +1938,13 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1920
1938
|
if (t.valueDecimals !== null && t.valueDecimals !== void 0) return Math.max(0, t.valueDecimals);
|
|
1921
1939
|
let e = D(t.dataType);
|
|
1922
1940
|
return e === null ? 2 : e;
|
|
1923
|
-
},
|
|
1941
|
+
}, A = (e) => String(e), M = (e) => {
|
|
1924
1942
|
let n = k(), r = new Intl.NumberFormat("en-US", {
|
|
1925
1943
|
maximumFractionDigits: n,
|
|
1926
1944
|
minimumFractionDigits: 0
|
|
1927
1945
|
}).format(e);
|
|
1928
1946
|
return t.dataType === "currency" ? `$${r}` : t.dataType === "percent" ? `${r}%` : r;
|
|
1929
|
-
},
|
|
1947
|
+
}, N = r(() => E(t.step)), P = r(() => N.value !== null && N.value > 0 ? N.value : 0), F = r(() => P.value > 0 ? String(P.value) : "any"), L = r(() => N.value === null ? "1" : N.value > 0 ? String(N.value) : "any"), B = r(() => t.color === "multiple" ? "var(--color-data-viz-3, #ff7a4e)" : "var(--color-border, #e3e7ea)"), V = r(() => {
|
|
1930
1948
|
let e = E(t.min) ?? Mr, n = E(t.max) ?? Nr;
|
|
1931
1949
|
return e > n ? {
|
|
1932
1950
|
max: e,
|
|
@@ -1938,13 +1956,13 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1938
1956
|
max: n,
|
|
1939
1957
|
min: e
|
|
1940
1958
|
};
|
|
1941
|
-
}), re = r(() => E(n.value) ?? V.value.min),
|
|
1959
|
+
}), re = r(() => E(n.value) ?? V.value.min), ie = r(() => {
|
|
1942
1960
|
let { max: e, min: t } = V.value, n = e - t, r = n === 0 ? 0 : (re.value - t) / n * 100;
|
|
1943
1961
|
return Math.max(0, Math.min(100, r));
|
|
1944
|
-
}),
|
|
1962
|
+
}), ae = r(() => ({
|
|
1945
1963
|
"--range-track-color": B.value,
|
|
1946
|
-
"--value": `${
|
|
1947
|
-
})),
|
|
1964
|
+
"--value": `${ie.value}%`
|
|
1965
|
+
})), W = r(() => ({ left: `${ie.value}%` })), ce = (e) => {
|
|
1948
1966
|
if (!Number.isFinite(e)) return 0;
|
|
1949
1967
|
let t = String(e).toLowerCase();
|
|
1950
1968
|
if (t.includes("e-")) {
|
|
@@ -1952,144 +1970,144 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
1952
1970
|
return (e?.split(".")[1]?.length ?? 0) + Number(n);
|
|
1953
1971
|
}
|
|
1954
1972
|
return t.split(".")[1]?.length ?? 0;
|
|
1955
|
-
},
|
|
1973
|
+
}, G = r(() => {
|
|
1956
1974
|
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Mr, r ?? Mr, i ?? Mr), o = n ?? Math.max(Nr, r ?? Nr, i ?? Nr);
|
|
1957
|
-
return a > o && ([a, o] = [o, a]), a === o && (o = a + (
|
|
1975
|
+
return a > o && ([a, o] = [o, a]), a === o && (o = a + (P.value > 0 ? P.value : 1)), {
|
|
1958
1976
|
max: o,
|
|
1959
1977
|
min: a
|
|
1960
1978
|
};
|
|
1961
|
-
}),
|
|
1962
|
-
let e = Math.max(
|
|
1963
|
-
return
|
|
1964
|
-
}),
|
|
1965
|
-
let t = Math.min(20,
|
|
1966
|
-
return
|
|
1967
|
-
},
|
|
1979
|
+
}), le = (e) => Math.max(G.value.min, Math.min(G.value.max, e)), K = r(() => {
|
|
1980
|
+
let e = Math.max(ce(G.value.min), ce(G.value.max));
|
|
1981
|
+
return P.value <= 0 ? Math.max(6, e) : Math.max(e, ce(P.value));
|
|
1982
|
+
}), ue = (e) => {
|
|
1983
|
+
let t = Math.min(20, K.value);
|
|
1984
|
+
return le(Number(e.toFixed(t)));
|
|
1985
|
+
}, de = r(() => {
|
|
1968
1986
|
if (t.allowMinMaxEqual) return 0;
|
|
1969
|
-
let e =
|
|
1987
|
+
let e = G.value.max - G.value.min;
|
|
1970
1988
|
if (e <= 0) return 0;
|
|
1971
|
-
let n = Math.max(e / 1e6, 10 ** -
|
|
1989
|
+
let n = Math.max(e / 1e6, 10 ** -K.value), r = P.value > 0 ? P.value : n;
|
|
1972
1990
|
return Math.min(r, e);
|
|
1973
|
-
}),
|
|
1974
|
-
let n =
|
|
1975
|
-
if (
|
|
1976
|
-
let { min: r } =
|
|
1977
|
-
return
|
|
1991
|
+
}), fe = (e, t = "nearest") => {
|
|
1992
|
+
let n = le(e);
|
|
1993
|
+
if (P.value <= 0) return ue(n);
|
|
1994
|
+
let { min: r } = G.value, i = (n - r) / P.value;
|
|
1995
|
+
return ue(le((t === "down" ? Math.floor(i) : t === "up" ? Math.ceil(i) : Math.round(i)) * P.value + r));
|
|
1996
|
+
}, pe = (e, t) => {
|
|
1997
|
+
let n = Math.max(G.value.min, t - de.value);
|
|
1998
|
+
return fe(Math.min(e, n), "down");
|
|
1978
1999
|
}, me = (e, t) => {
|
|
1979
|
-
let n = Math.
|
|
1980
|
-
return
|
|
1981
|
-
},
|
|
1982
|
-
let
|
|
1983
|
-
return pe(Math.max(e, n), "up");
|
|
1984
|
-
}, K = r(() => {
|
|
1985
|
-
let e = E(c.value?.min) ?? W.value.min, t = E(c.value?.max) ?? W.value.max, n = ue(e), r = ue(t);
|
|
2000
|
+
let n = Math.min(G.value.max, t + de.value);
|
|
2001
|
+
return fe(Math.max(e, n), "up");
|
|
2002
|
+
}, q = r(() => {
|
|
2003
|
+
let e = E(c.value?.min) ?? G.value.min, t = E(c.value?.max) ?? G.value.max, n = le(e), r = le(t);
|
|
1986
2004
|
return {
|
|
1987
2005
|
max: Math.max(n, r),
|
|
1988
2006
|
min: Math.min(n, r)
|
|
1989
2007
|
};
|
|
1990
|
-
}),
|
|
1991
|
-
let { max: t, min: n } =
|
|
2008
|
+
}), he = (e) => {
|
|
2009
|
+
let { max: t, min: n } = G.value;
|
|
1992
2010
|
return t === n ? 0 : (e - n) / (t - n) * 100;
|
|
1993
|
-
},
|
|
2011
|
+
}, ge = r(() => he(q.value.min)), _e = r(() => he(q.value.max)), ve = r(() => ({
|
|
1994
2012
|
"--range-track-color": B.value,
|
|
1995
|
-
"--value-max": `${
|
|
1996
|
-
"--value-min": `${
|
|
1997
|
-
})),
|
|
2013
|
+
"--value-max": `${_e.value}%`,
|
|
2014
|
+
"--value-min": `${ge.value}%`
|
|
2015
|
+
})), ye = r(() => ({ left: `${ge.value}%` })), be = r(() => ({ left: `${_e.value}%` })), xe = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Se = () => E(t.min) !== null || G.value.min === Mr, Ce = () => E(t.max) !== null || G.value.max === Nr, we = (e, t) => {
|
|
1998
2016
|
c.value = {
|
|
1999
|
-
max: t >=
|
|
2000
|
-
min: e <=
|
|
2017
|
+
max: t >= G.value.max && Ce() ? null : t,
|
|
2018
|
+
min: e <= G.value.min && Se() ? null : e
|
|
2001
2019
|
};
|
|
2020
|
+
}, Te = (e) => {
|
|
2021
|
+
we(pe(e, q.value.max), q.value.max);
|
|
2002
2022
|
}, Ee = (e) => {
|
|
2003
|
-
|
|
2004
|
-
}, De = (
|
|
2005
|
-
Te(K.value.min, he(e, K.value.min));
|
|
2006
|
-
}, Oe = () => {
|
|
2023
|
+
we(q.value.min, me(e, q.value.min));
|
|
2024
|
+
}, De = () => {
|
|
2007
2025
|
h.value = null;
|
|
2008
|
-
},
|
|
2026
|
+
}, Oe = (e) => {
|
|
2009
2027
|
h.value = e;
|
|
2010
|
-
},
|
|
2028
|
+
}, ke = () => {
|
|
2011
2029
|
c.value = {
|
|
2012
2030
|
max: null,
|
|
2013
2031
|
min: null
|
|
2014
2032
|
};
|
|
2015
|
-
},
|
|
2033
|
+
}, Ae = () => {
|
|
2016
2034
|
w?.(), w = null;
|
|
2035
|
+
}, je = () => {
|
|
2036
|
+
_.value = !1, Ae();
|
|
2017
2037
|
}, Me = () => {
|
|
2018
|
-
_.value = !
|
|
2019
|
-
}, Ne = () => {
|
|
2020
|
-
|
|
2038
|
+
t.disabled || (_.value = !0, Ae(), window.addEventListener("pointerup", je), w = () => window.removeEventListener("pointerup", je));
|
|
2039
|
+
}, Ne = (e) => {
|
|
2040
|
+
Oe("min"), Te(Number(e.target.value));
|
|
2021
2041
|
}, Pe = (e) => {
|
|
2022
|
-
|
|
2023
|
-
}, Fe = (
|
|
2024
|
-
|
|
2025
|
-
},
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
e
|
|
2042
|
+
Oe("max"), Ee(Number(e.target.value));
|
|
2043
|
+
}, Fe = () => {
|
|
2044
|
+
g.value !== "min" && (m.value = A(q.value.min)), g.value !== "max" && (p.value = A(q.value.max));
|
|
2045
|
+
}, Y = (e) => {
|
|
2046
|
+
let t = ee(e === "min" ? m.value : p.value), n = t === null ? e === "min" ? G.value.min : G.value.max : fe(t);
|
|
2047
|
+
e === "min" ? Te(n) : Ee(n);
|
|
2048
|
+
}, Ie = (e) => {
|
|
2049
|
+
m.value = e.target.value, Y("min");
|
|
2030
2050
|
}, Le = (e) => {
|
|
2031
|
-
|
|
2051
|
+
p.value = e.target.value, Y("max");
|
|
2032
2052
|
}, Re = (e) => {
|
|
2033
|
-
p.value = e.target.value, J("max");
|
|
2034
|
-
}, ze = (e) => {
|
|
2035
2053
|
g.value = e;
|
|
2036
|
-
},
|
|
2037
|
-
|
|
2038
|
-
},
|
|
2039
|
-
e.preventDefault(),
|
|
2040
|
-
},
|
|
2054
|
+
}, ze = (e) => {
|
|
2055
|
+
Y(e), g.value = null, Fe();
|
|
2056
|
+
}, Be = (e, t) => {
|
|
2057
|
+
e.preventDefault(), Y(t), e.target.blur();
|
|
2058
|
+
}, Ve = (e) => {
|
|
2041
2059
|
let t = y.value?.getBoundingClientRect();
|
|
2042
2060
|
if (!t || t.width <= 0) return null;
|
|
2043
2061
|
let n = Math.max(0, Math.min(1, (e - t.left) / t.width));
|
|
2044
|
-
return
|
|
2045
|
-
},
|
|
2046
|
-
let n =
|
|
2062
|
+
return fe(G.value.min + n * (G.value.max - G.value.min));
|
|
2063
|
+
}, He = (e) => {
|
|
2064
|
+
let n = Ve(e);
|
|
2047
2065
|
if (n !== null) {
|
|
2048
2066
|
if (t.alwaysEditMin) {
|
|
2049
|
-
|
|
2067
|
+
Oe("min"), Te(n);
|
|
2050
2068
|
return;
|
|
2051
2069
|
}
|
|
2052
|
-
Math.abs(n -
|
|
2070
|
+
Math.abs(n - q.value.min) <= Math.abs(n - q.value.max) ? (Oe("min"), Te(n)) : (Oe("max"), Ee(n));
|
|
2053
2071
|
}
|
|
2054
|
-
},
|
|
2072
|
+
}, Ue = () => {
|
|
2055
2073
|
x?.(), x = null;
|
|
2056
|
-
},
|
|
2074
|
+
}, We = (e) => {
|
|
2057
2075
|
if (t.disabled) return;
|
|
2058
2076
|
let n = e.target;
|
|
2059
2077
|
if (n !== y.value && !n?.classList.contains("pv-range-dual-fill")) return;
|
|
2060
|
-
|
|
2061
|
-
let r = (e) =>
|
|
2062
|
-
|
|
2078
|
+
He(e.clientX);
|
|
2079
|
+
let r = (e) => He(e.clientX), i = () => {
|
|
2080
|
+
De(), Ue();
|
|
2063
2081
|
};
|
|
2064
2082
|
window.addEventListener("pointermove", r), window.addEventListener("pointerup", i), x = () => {
|
|
2065
2083
|
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
|
|
2066
2084
|
}, e.preventDefault();
|
|
2067
2085
|
};
|
|
2068
|
-
return
|
|
2069
|
-
|
|
2086
|
+
return U([q, G], Fe, { immediate: !0 }), C(() => {
|
|
2087
|
+
Ue(), Ae();
|
|
2070
2088
|
}), (r, c) => e.mode === "single" ? (O(), o("div", xr, [e.showValueTooltips && _.value ? (O(), o("span", {
|
|
2071
2089
|
key: 0,
|
|
2072
2090
|
class: "pv-range-tooltip",
|
|
2073
|
-
style: S(
|
|
2074
|
-
},
|
|
2091
|
+
style: S(W.value)
|
|
2092
|
+
}, I(M(re.value)), 5)) : a("v-if", !0), oe(s("input", v({ id: R(u) }, R(l), {
|
|
2075
2093
|
"onUpdate:modelValue": c[0] ||= (e) => n.value = e,
|
|
2076
2094
|
"aria-label": e.ariaLabel,
|
|
2077
2095
|
class: ["pv-range", `pv-range-${t.size}`],
|
|
2078
2096
|
disabled: e.disabled,
|
|
2079
2097
|
max: V.value.max,
|
|
2080
2098
|
min: V.value.min,
|
|
2081
|
-
step:
|
|
2082
|
-
style:
|
|
2099
|
+
step: L.value,
|
|
2100
|
+
style: ae.value,
|
|
2083
2101
|
type: "range",
|
|
2084
|
-
onChange:
|
|
2085
|
-
onPointerdown:
|
|
2086
|
-
onPointerup:
|
|
2102
|
+
onChange: je,
|
|
2103
|
+
onPointerdown: Me,
|
|
2104
|
+
onPointerup: je
|
|
2087
2105
|
}), null, 16, Sr), [[
|
|
2088
|
-
|
|
2106
|
+
H,
|
|
2089
2107
|
n.value,
|
|
2090
2108
|
void 0,
|
|
2091
2109
|
{ number: !0 }
|
|
2092
|
-
]])])) : (O(), o("div", v({ key: 1 },
|
|
2110
|
+
]])])) : (O(), o("div", v({ key: 1 }, R(l), {
|
|
2093
2111
|
class: "pv-flex-vertical",
|
|
2094
2112
|
"data-testid": "pv-range-dual",
|
|
2095
2113
|
role: "group",
|
|
@@ -2099,52 +2117,52 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2099
2117
|
"--flex-gap": "0"
|
|
2100
2118
|
}
|
|
2101
2119
|
}), [
|
|
2102
|
-
e.showBoundLabels ? (O(), o("div", wr, [s("span", null,
|
|
2120
|
+
e.showBoundLabels ? (O(), o("div", wr, [s("span", null, I(M(G.value.min)), 1), s("span", null, I(M(G.value.max)), 1)])) : a("v-if", !0),
|
|
2103
2121
|
s("div", {
|
|
2104
2122
|
ref_key: "sliderRef",
|
|
2105
2123
|
ref: y,
|
|
2106
2124
|
class: b(["pv-range-dual-slider", [`pv-range-dual-slider-${e.size}`, { "pv-range-dual-slider-disabled": e.disabled }]]),
|
|
2107
|
-
style: S(
|
|
2108
|
-
onPointerdown:
|
|
2125
|
+
style: S(ve.value),
|
|
2126
|
+
onPointerdown: We
|
|
2109
2127
|
}, [
|
|
2110
2128
|
c[9] ||= s("div", { class: "pv-range-dual-fill" }, null, -1),
|
|
2111
2129
|
e.showValueTooltips && h.value === "min" ? (O(), o("span", {
|
|
2112
2130
|
key: 0,
|
|
2113
2131
|
class: "pv-range-dual-tooltip",
|
|
2114
|
-
style: S(
|
|
2115
|
-
},
|
|
2132
|
+
style: S(ye.value)
|
|
2133
|
+
}, I(M(q.value.min)), 5)) : a("v-if", !0),
|
|
2116
2134
|
e.showValueTooltips && h.value === "max" ? (O(), o("span", {
|
|
2117
2135
|
key: 1,
|
|
2118
2136
|
class: "pv-range-dual-tooltip",
|
|
2119
|
-
style: S(
|
|
2120
|
-
},
|
|
2137
|
+
style: S(be.value)
|
|
2138
|
+
}, I(M(q.value.max)), 5)) : a("v-if", !0),
|
|
2121
2139
|
s("input", {
|
|
2122
2140
|
class: "pv-range pv-range-dual-native pv-range-dual-native-min",
|
|
2123
2141
|
type: "range",
|
|
2124
2142
|
"aria-label": `${e.label} minimum`,
|
|
2125
2143
|
disabled: e.disabled,
|
|
2126
|
-
max:
|
|
2127
|
-
min:
|
|
2128
|
-
step:
|
|
2129
|
-
value:
|
|
2130
|
-
onChange:
|
|
2131
|
-
onInput:
|
|
2132
|
-
onPointerdown: c[1] ||= (e) =>
|
|
2133
|
-
onPointerup:
|
|
2144
|
+
max: G.value.max,
|
|
2145
|
+
min: G.value.min,
|
|
2146
|
+
step: F.value,
|
|
2147
|
+
value: q.value.min,
|
|
2148
|
+
onChange: De,
|
|
2149
|
+
onInput: Ne,
|
|
2150
|
+
onPointerdown: c[1] ||= (e) => Oe("min"),
|
|
2151
|
+
onPointerup: De
|
|
2134
2152
|
}, null, 40, Tr),
|
|
2135
2153
|
s("input", {
|
|
2136
2154
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
2137
2155
|
type: "range",
|
|
2138
2156
|
"aria-label": `${e.label} maximum`,
|
|
2139
2157
|
disabled: e.disabled,
|
|
2140
|
-
max:
|
|
2141
|
-
min:
|
|
2142
|
-
step:
|
|
2143
|
-
value:
|
|
2144
|
-
onChange:
|
|
2145
|
-
onInput:
|
|
2146
|
-
onPointerdown: c[2] ||= (e) =>
|
|
2147
|
-
onPointerup:
|
|
2158
|
+
max: G.value.max,
|
|
2159
|
+
min: G.value.min,
|
|
2160
|
+
step: F.value,
|
|
2161
|
+
value: q.value.max,
|
|
2162
|
+
onChange: De,
|
|
2163
|
+
onInput: Pe,
|
|
2164
|
+
onPointerdown: c[2] ||= (e) => Oe("max"),
|
|
2165
|
+
onPointerup: De
|
|
2148
2166
|
}, null, 40, Er)
|
|
2149
2167
|
], 38),
|
|
2150
2168
|
e.showInputs ? (O(), o("div", Dr, [
|
|
@@ -2158,20 +2176,20 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2158
2176
|
"max-width": "75px",
|
|
2159
2177
|
"min-width": "0"
|
|
2160
2178
|
}
|
|
2161
|
-
}, [s("span", Or,
|
|
2179
|
+
}, [s("span", Or, I(e.minLabel), 1), s("input", {
|
|
2162
2180
|
id: f,
|
|
2163
2181
|
class: "pv-input-text",
|
|
2164
2182
|
disabled: e.disabled,
|
|
2165
2183
|
style: { width: "100%" },
|
|
2166
2184
|
inputmode: "decimal",
|
|
2167
2185
|
placeholder: "Min",
|
|
2168
|
-
step:
|
|
2186
|
+
step: F.value,
|
|
2169
2187
|
type: "text",
|
|
2170
2188
|
value: m.value,
|
|
2171
|
-
onBlur: c[3] ||= (e) =>
|
|
2172
|
-
onFocus: c[4] ||= (e) =>
|
|
2173
|
-
onInput:
|
|
2174
|
-
onKeydown: c[5] ||=
|
|
2189
|
+
onBlur: c[3] ||= (e) => ze("min"),
|
|
2190
|
+
onFocus: c[4] ||= (e) => Re("min"),
|
|
2191
|
+
onInput: Ie,
|
|
2192
|
+
onKeydown: c[5] ||= se((e) => Be(e, "min"), ["enter"])
|
|
2175
2193
|
}, null, 40, kr)]),
|
|
2176
2194
|
s("label", {
|
|
2177
2195
|
class: "pv-flex-vertical",
|
|
@@ -2183,36 +2201,36 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2183
2201
|
"max-width": "75px",
|
|
2184
2202
|
"min-width": "0"
|
|
2185
2203
|
}
|
|
2186
|
-
}, [s("span", Ar,
|
|
2204
|
+
}, [s("span", Ar, I(e.maxLabel), 1), s("input", {
|
|
2187
2205
|
id: d,
|
|
2188
2206
|
class: "pv-input-text",
|
|
2189
2207
|
disabled: e.disabled,
|
|
2190
2208
|
style: { width: "100%" },
|
|
2191
2209
|
inputmode: "decimal",
|
|
2192
2210
|
placeholder: "Max",
|
|
2193
|
-
step:
|
|
2211
|
+
step: F.value,
|
|
2194
2212
|
type: "text",
|
|
2195
2213
|
value: p.value,
|
|
2196
|
-
onBlur: c[6] ||= (e) =>
|
|
2197
|
-
onFocus: c[7] ||= (e) =>
|
|
2198
|
-
onInput:
|
|
2199
|
-
onKeydown: c[8] ||=
|
|
2214
|
+
onBlur: c[6] ||= (e) => ze("max"),
|
|
2215
|
+
onFocus: c[7] ||= (e) => Re("max"),
|
|
2216
|
+
onInput: Le,
|
|
2217
|
+
onKeydown: c[8] ||= se((e) => Be(e, "max"), ["enter"])
|
|
2200
2218
|
}, null, 40, jr)]),
|
|
2201
|
-
e.showClear &&
|
|
2219
|
+
e.showClear && xe.value ? (O(), i(J, {
|
|
2202
2220
|
key: 0,
|
|
2203
2221
|
class: "pv-text-brand",
|
|
2204
2222
|
disabled: e.disabled,
|
|
2205
2223
|
label: "Clear range",
|
|
2206
2224
|
variant: "ghost",
|
|
2207
|
-
onClick:
|
|
2225
|
+
onClick: ke
|
|
2208
2226
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2209
|
-
])) : e.showClear &&
|
|
2227
|
+
])) : e.showClear && xe.value ? (O(), i(J, {
|
|
2210
2228
|
key: 2,
|
|
2211
2229
|
class: "pv-text-brand",
|
|
2212
2230
|
disabled: e.disabled,
|
|
2213
2231
|
label: "Clear range",
|
|
2214
2232
|
variant: "ghost",
|
|
2215
|
-
onClick:
|
|
2233
|
+
onClick: ke
|
|
2216
2234
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
2217
2235
|
], 16, Cr));
|
|
2218
2236
|
}
|
|
@@ -2233,7 +2251,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2233
2251
|
}, Br = {
|
|
2234
2252
|
key: 4,
|
|
2235
2253
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
2236
|
-
}, Vr = /* @__PURE__ */
|
|
2254
|
+
}, Vr = /* @__PURE__ */ Ce(/* @__PURE__ */ d({
|
|
2237
2255
|
__name: "PvFilterPanelOptionRow",
|
|
2238
2256
|
props: {
|
|
2239
2257
|
ariaLabel: { type: String },
|
|
@@ -2335,20 +2353,20 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2335
2353
|
"indeterminate",
|
|
2336
2354
|
"modelValue"
|
|
2337
2355
|
])),
|
|
2338
|
-
e.renderer ? (O(), i(
|
|
2339
|
-
s("span", Lr,
|
|
2340
|
-
e.subduedText ? (O(), o("span", Rr,
|
|
2341
|
-
e.subText ? (O(), o("span", zr,
|
|
2356
|
+
e.renderer ? (O(), i(P(e.renderer), x(v({ key: 2 }, m.value)), null, 16)) : (O(), o("span", Ir, [
|
|
2357
|
+
s("span", Lr, I(e.label), 1),
|
|
2358
|
+
e.subduedText ? (O(), o("span", Rr, I(e.subduedText), 1)) : a("v-if", !0),
|
|
2359
|
+
e.subText ? (O(), o("span", zr, I(e.subText), 1)) : a("v-if", !0)
|
|
2342
2360
|
])),
|
|
2343
|
-
f.value ? (O(), o("span", Br, [
|
|
2344
|
-
e.showFocusAction ? (O(), i(
|
|
2361
|
+
f.value ? (O(), o("span", Br, [N(t.$slots, "result-count", {}, () => [l("(" + I(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
2362
|
+
e.showFocusAction ? (O(), i(J, {
|
|
2345
2363
|
key: 5,
|
|
2346
2364
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
2347
2365
|
disabled: e.disabled,
|
|
2348
2366
|
leftIcon: "focus",
|
|
2349
2367
|
size: "md",
|
|
2350
2368
|
variant: e.isFocused ? "primary" : "ghost",
|
|
2351
|
-
onClick:
|
|
2369
|
+
onClick: ce(_, ["stop", "prevent"])
|
|
2352
2370
|
}, null, 8, [
|
|
2353
2371
|
"ariaLabel",
|
|
2354
2372
|
"disabled",
|
|
@@ -2784,7 +2802,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2784
2802
|
"--flex-gap": "0.5rem",
|
|
2785
2803
|
cursor: "pointer"
|
|
2786
2804
|
}
|
|
2787
|
-
}, oa = { class: "pv-text-body-sm" }, sa = 5, ca = 500, la = /* @__PURE__ */
|
|
2805
|
+
}, oa = { class: "pv-text-body-sm" }, sa = 5, ca = 500, la = /* @__PURE__ */ Ce(/* @__PURE__ */ d({
|
|
2788
2806
|
__name: "PvFilterPanelAccordion",
|
|
2789
2807
|
props: { filter: { type: Object } },
|
|
2790
2808
|
emits: [
|
|
@@ -2796,7 +2814,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2796
2814
|
"search-change"
|
|
2797
2815
|
],
|
|
2798
2816
|
setup(e, { emit: n }) {
|
|
2799
|
-
let c = e, d = n, f =
|
|
2817
|
+
let c = e, d = n, f = j({}), p = ne(), m = j(c.filter.searchQuery ?? ""), h = j(sa), g = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), _ = r(() => c.filter.valueLabels?.false ?? "No"), y = r(() => c.filter.options ?? []), b = r(() => [...c.filter.knownOptions ?? [], ...y.value]), C = r(() => c.filter.type ?? "value"), w = r(() => C.value === "value"), T = r(() => w.value && c.filter.isAggregate === !0), E = r(() => c.filter.aggregateSelectionState ?? []), ee = r(() => m.value.trim().toLowerCase()), D = r(() => c.filter.selectedValues ?? []), k = r(() => new Set(D.value)), A = r(() => c.filter.valueLabels?.true ?? "Yes"), N = r(() => c.filter.filterOptionsSortDescription || "Suggested"), F = (e) => {
|
|
2800
2818
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
2801
2819
|
return [
|
|
2802
2820
|
e.value,
|
|
@@ -2806,84 +2824,84 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2806
2824
|
e.matchedValue,
|
|
2807
2825
|
e.matchedField
|
|
2808
2826
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
2809
|
-
},
|
|
2827
|
+
}, L = r(() => C.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 : C.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : C.value === "exists" ? c.filter.existsValue ? 1 : void 0 : T.value ? Vi(E.value) || void 0 : D.value.length || void 0), te = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), z = (e, t = 0) => e.flatMap((e) => [
|
|
2810
2828
|
{
|
|
2811
2829
|
depth: t,
|
|
2812
2830
|
kind: "option",
|
|
2813
2831
|
option: e
|
|
2814
2832
|
},
|
|
2815
2833
|
...e.children?.length ? z(e.children, t + 1) : [],
|
|
2816
|
-
...
|
|
2834
|
+
...te(e) ? [{
|
|
2817
2835
|
depth: t + 1,
|
|
2818
2836
|
kind: "child-load-more",
|
|
2819
2837
|
parent: e
|
|
2820
2838
|
}] : []
|
|
2821
2839
|
]), B = r(() => {
|
|
2822
2840
|
let e = z(y.value), t = ee.value;
|
|
2823
|
-
return t ? e.filter((e) => e.kind === "option" &&
|
|
2841
|
+
return t ? e.filter((e) => e.kind === "option" && F(e.option).includes(t)) : e;
|
|
2824
2842
|
}), V = r(() => T.value || c.filter.singleSelect ? [] : D.value.map((e) => f.value[e] ?? {
|
|
2825
2843
|
label: e,
|
|
2826
2844
|
value: e
|
|
2827
|
-
})), re = r(() => T.value || c.filter.singleSelect ? B.value : B.value.filter((e) => e.kind === "child-load-more" || !k.value.has(e.option.value))),
|
|
2845
|
+
})), re = r(() => T.value || c.filter.singleSelect ? B.value : B.value.filter((e) => e.kind === "child-load-more" || !k.value.has(e.option.value))), H = r(() => re.value.length > h.value), ie = r(() => H.value || c.filter.hasMore), ae = r(() => re.value.slice(0, h.value)), oe = r(() => T.value ? Ri({
|
|
2828
2846
|
options: b.value,
|
|
2829
2847
|
state: E.value
|
|
2830
|
-
}) : /* @__PURE__ */ new Map()),
|
|
2848
|
+
}) : /* @__PURE__ */ new Map()), se = (e) => Zr(e, c.filter.colDef), ce = (e) => Qr(e), G = (e) => T.value ? oe.value.get(e.value) ?? {
|
|
2831
2849
|
indeterminate: !1,
|
|
2832
2850
|
selected: !1
|
|
2833
2851
|
} : {
|
|
2834
2852
|
indeterminate: !1,
|
|
2835
2853
|
selected: k.value.has(e.value)
|
|
2836
|
-
},
|
|
2837
|
-
let t =
|
|
2854
|
+
}, le = (e) => G(e).selected, K = (e) => G(e).indeterminate, ue = (e) => ai(e) ?? e.value, de = (e) => oi(e, c.filter.key), fe = (e) => {
|
|
2855
|
+
let t = de(e), n = ue(e);
|
|
2838
2856
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
2839
|
-
},
|
|
2857
|
+
}, pe = (e) => ({
|
|
2840
2858
|
...e.menuOption ?? {},
|
|
2841
|
-
children: e.children?.map(
|
|
2859
|
+
children: e.children?.map(pe),
|
|
2842
2860
|
context: e,
|
|
2843
2861
|
disabled: c.filter.disabled || e.isSelectable === !1 || e.menuOption?.disabled,
|
|
2844
2862
|
id: e.value,
|
|
2845
|
-
searchText:
|
|
2846
|
-
secondaryText:
|
|
2863
|
+
searchText: F(e),
|
|
2864
|
+
secondaryText: ce(e),
|
|
2847
2865
|
subText: e.subText,
|
|
2848
2866
|
subduedText: e.subduedText,
|
|
2849
|
-
text:
|
|
2867
|
+
text: se(e),
|
|
2850
2868
|
totalChildCount: e.totalChildCount
|
|
2851
|
-
}),
|
|
2869
|
+
}), q = r(() => y.value.map(pe)), he = r(() => V.value.map(pe)), ge = r(() => ({
|
|
2852
2870
|
colDef: c.filter.colDef,
|
|
2853
2871
|
disabled: c.filter.disabled,
|
|
2854
2872
|
filter: c.filter,
|
|
2855
2873
|
isLoading: c.filter.isLoading,
|
|
2856
2874
|
isOpen: c.filter.isOpen,
|
|
2857
|
-
options:
|
|
2875
|
+
options: q.value,
|
|
2858
2876
|
searchInput: m.value,
|
|
2859
|
-
selectedItems:
|
|
2877
|
+
selectedItems: he.value,
|
|
2860
2878
|
slotContext: {
|
|
2861
2879
|
colDef: c.filter.colDef,
|
|
2862
2880
|
rowsLoading: c.filter.isLoading
|
|
2863
2881
|
}
|
|
2864
|
-
})),
|
|
2865
|
-
|
|
2866
|
-
},
|
|
2882
|
+
})), _e = () => {
|
|
2883
|
+
H.value ? h.value += sa : c.filter.hasMore && d("load-more", m.value.trim());
|
|
2884
|
+
}, ve = (e) => {
|
|
2867
2885
|
d("load-more", m.value.trim(), e.value);
|
|
2868
|
-
},
|
|
2886
|
+
}, ye = (e) => {
|
|
2869
2887
|
let t = e.target;
|
|
2870
2888
|
d("open-change", t.open);
|
|
2871
|
-
},
|
|
2889
|
+
}, xe = (e) => {
|
|
2872
2890
|
d("filter-change", {
|
|
2873
2891
|
type: "boolean",
|
|
2874
2892
|
value: e
|
|
2875
2893
|
});
|
|
2876
|
-
},
|
|
2894
|
+
}, Se = (e) => {
|
|
2877
2895
|
d("filter-change", {
|
|
2878
2896
|
type: "exists",
|
|
2879
2897
|
value: e === !0
|
|
2880
2898
|
});
|
|
2881
|
-
},
|
|
2899
|
+
}, Ce = (e) => {
|
|
2882
2900
|
d("filter-change", {
|
|
2883
2901
|
type: "range",
|
|
2884
2902
|
value: e
|
|
2885
2903
|
});
|
|
2886
|
-
},
|
|
2904
|
+
}, Te = (e, t) => {
|
|
2887
2905
|
if (T.value) {
|
|
2888
2906
|
d("filter-change", {
|
|
2889
2907
|
type: "aggregate-selection",
|
|
@@ -2898,34 +2916,34 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2898
2916
|
}
|
|
2899
2917
|
d("filter-change", {
|
|
2900
2918
|
checked: t,
|
|
2901
|
-
field:
|
|
2919
|
+
field: de(e),
|
|
2902
2920
|
type: "value",
|
|
2903
|
-
value:
|
|
2921
|
+
value: ue(e)
|
|
2904
2922
|
});
|
|
2905
|
-
},
|
|
2906
|
-
d("focus-change",
|
|
2907
|
-
},
|
|
2923
|
+
}, Ee = (e) => {
|
|
2924
|
+
d("focus-change", de(e), ue(e), e);
|
|
2925
|
+
}, De = (e, t) => {
|
|
2908
2926
|
d("filter-change", {
|
|
2909
2927
|
field: e,
|
|
2910
2928
|
type: "boolean",
|
|
2911
2929
|
value: t ? null : !0
|
|
2912
2930
|
});
|
|
2913
|
-
},
|
|
2931
|
+
}, Oe = () => {
|
|
2914
2932
|
d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
2915
2933
|
};
|
|
2916
|
-
|
|
2934
|
+
U([m, () => c.filter.key], () => {
|
|
2917
2935
|
h.value = sa;
|
|
2918
2936
|
});
|
|
2919
|
-
let
|
|
2937
|
+
let ke = () => {
|
|
2920
2938
|
let e = si(b.value), t = { ...f.value }, n = new Map(Object.entries(t));
|
|
2921
2939
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
2922
2940
|
f.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - ca)));
|
|
2923
2941
|
};
|
|
2924
|
-
return
|
|
2925
|
-
c.filter.isOpen &&
|
|
2926
|
-
}, { immediate: !0 }),
|
|
2927
|
-
e ?
|
|
2928
|
-
}),
|
|
2942
|
+
return U(b, () => {
|
|
2943
|
+
c.filter.isOpen && ke();
|
|
2944
|
+
}, { immediate: !0 }), U(() => c.filter.isOpen, (e) => {
|
|
2945
|
+
e ? ke() : f.value = {};
|
|
2946
|
+
}), U(() => c.filter.searchQuery, (e) => {
|
|
2929
2947
|
let t = e ?? "";
|
|
2930
2948
|
t !== m.value && (m.value = t);
|
|
2931
2949
|
}), zn(m, (e) => {
|
|
@@ -2939,44 +2957,44 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2939
2957
|
class: "pv-accordion",
|
|
2940
2958
|
"data-testid": "pv-filter-panel-accordion",
|
|
2941
2959
|
open: e.filter.isOpen,
|
|
2942
|
-
onToggle:
|
|
2960
|
+
onToggle: ye
|
|
2943
2961
|
}, [s("summary", Ui, [
|
|
2944
|
-
u(
|
|
2962
|
+
u(be, {
|
|
2945
2963
|
"aria-hidden": "true",
|
|
2946
2964
|
class: "pv-text-subdued",
|
|
2947
2965
|
name: e.filter.isOpen ? "chevron-down" : "chevron-right"
|
|
2948
2966
|
}, null, 8, ["name"]),
|
|
2949
|
-
s("span", null,
|
|
2950
|
-
|
|
2967
|
+
s("span", null, I(e.filter.label), 1),
|
|
2968
|
+
L.value ? (O(), i(we, {
|
|
2951
2969
|
key: 0,
|
|
2952
|
-
value:
|
|
2970
|
+
value: L.value,
|
|
2953
2971
|
size: "sm",
|
|
2954
2972
|
variant: "secondary"
|
|
2955
2973
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
2956
2974
|
]), s("div", Wi, [w.value ? (O(), o(t, { key: 0 }, [
|
|
2957
2975
|
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (O(), o("div", Gi, [
|
|
2958
|
-
e.filter.filterGroupOptions?.length ? (O(), o("div", Ki, [(O(!0), o(t, null,
|
|
2976
|
+
e.filter.filterGroupOptions?.length ? (O(), o("div", Ki, [(O(!0), o(t, null, M(e.filter.filterGroupOptions, (t) => (O(), i(J, {
|
|
2959
2977
|
key: t.field,
|
|
2960
2978
|
disabled: e.filter.disabled,
|
|
2961
2979
|
label: t.label,
|
|
2962
2980
|
size: "md",
|
|
2963
2981
|
variant: t.isActive ? "primary" : "secondary",
|
|
2964
|
-
onClick: (e) =>
|
|
2982
|
+
onClick: (e) => De(t.field, t.isActive)
|
|
2965
2983
|
}, null, 8, [
|
|
2966
2984
|
"disabled",
|
|
2967
2985
|
"label",
|
|
2968
2986
|
"variant",
|
|
2969
2987
|
"onClick"
|
|
2970
2988
|
]))), 128))])) : a("v-if", !0),
|
|
2971
|
-
e.filter.displayPreferencesIcon ? (O(), o("div", qi, [u(
|
|
2989
|
+
e.filter.displayPreferencesIcon ? (O(), o("div", qi, [u(J, {
|
|
2972
2990
|
ariaLabel: "Open preferences",
|
|
2973
2991
|
disabled: e.filter.disabled,
|
|
2974
2992
|
leftIcon: "sliders-horizontal",
|
|
2975
2993
|
size: "md",
|
|
2976
2994
|
variant: "ghost",
|
|
2977
|
-
onClick:
|
|
2995
|
+
onClick: Oe
|
|
2978
2996
|
}, null, 8, ["disabled"])])) : a("v-if", !0),
|
|
2979
|
-
e.filter.filterHeaderRenderer ? (O(), i(
|
|
2997
|
+
e.filter.filterHeaderRenderer ? (O(), i(P(e.filter.filterHeaderRenderer), x(v({ key: 2 }, ge.value)), null, 16)) : a("v-if", !0)
|
|
2980
2998
|
])) : a("v-if", !0),
|
|
2981
2999
|
e.filter.hideSearch ? a("v-if", !0) : (O(), i(br, {
|
|
2982
3000
|
key: 1,
|
|
@@ -2990,25 +3008,25 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
2990
3008
|
"disabled",
|
|
2991
3009
|
"placeholder"
|
|
2992
3010
|
])),
|
|
2993
|
-
V.value.length ? (O(), o("div", Ji, [(O(!0), o(t, null,
|
|
3011
|
+
V.value.length ? (O(), o("div", Ji, [(O(!0), o(t, null, M(V.value, (t) => (O(), i(Vr, {
|
|
2994
3012
|
key: t.value,
|
|
2995
3013
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
2996
3014
|
disabled: e.filter.disabled || t.isSelectable === !1,
|
|
2997
3015
|
"focus-text": e.filter.focusText,
|
|
2998
|
-
"is-focused":
|
|
2999
|
-
indeterminate:
|
|
3000
|
-
label:
|
|
3001
|
-
name:
|
|
3016
|
+
"is-focused": fe(t),
|
|
3017
|
+
indeterminate: K(t),
|
|
3018
|
+
label: se(t),
|
|
3019
|
+
name: R(p),
|
|
3002
3020
|
"query-text": m.value,
|
|
3003
3021
|
renderer: e.filter.filterOptionsRenderer,
|
|
3004
|
-
"result-count":
|
|
3022
|
+
"result-count": ce(t),
|
|
3005
3023
|
selected: !0,
|
|
3006
3024
|
"show-focus-action": e.filter.isFocusable,
|
|
3007
3025
|
"sub-text": t.subText,
|
|
3008
3026
|
"subdued-text": t.subduedText,
|
|
3009
3027
|
value: t.value,
|
|
3010
|
-
onFocusValue: () =>
|
|
3011
|
-
onToggleValue: (e, n) =>
|
|
3028
|
+
onFocusValue: () => Ee(t),
|
|
3029
|
+
onToggleValue: (e, n) => Te(t, n)
|
|
3012
3030
|
}, null, 8, [
|
|
3013
3031
|
"control",
|
|
3014
3032
|
"disabled",
|
|
@@ -3027,9 +3045,9 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3027
3045
|
"onFocusValue",
|
|
3028
3046
|
"onToggleValue"
|
|
3029
3047
|
]))), 128))])) : a("v-if", !0),
|
|
3030
|
-
e.filter.isLoading ? (O(), o("div", Yi, [u(
|
|
3031
|
-
!y.value.length && !V.value.length && !
|
|
3032
|
-
re.value.length ||
|
|
3048
|
+
e.filter.isLoading ? (O(), o("div", Yi, [u(me, { size: "sm" })])) : (O(), o(t, { key: 4 }, [
|
|
3049
|
+
!y.value.length && !V.value.length && !ie.value ? (O(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, ge.value, { "empty-reason": "no-values" }), null, 16)) : (O(), o("p", Xi, "No values available."))], 64)) : !B.value.length && !V.value.length && !ie.value ? (O(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (O(), i(P(e.filter.emptyResultsRenderer), v({ key: 0 }, ge.value, { "empty-reason": "no-matches" }), null, 16)) : (O(), o("p", Zi, "No matching values."))], 64)) : a("v-if", !0),
|
|
3050
|
+
re.value.length || ie.value ? (O(), o("div", Qi, [
|
|
3033
3051
|
re.value.length && !e.filter.hideOptionsSortDescription ? (O(), o("div", $i, [e.filter.filterOptionsSortTooltip ? (O(), i(lr, {
|
|
3034
3052
|
key: 0,
|
|
3035
3053
|
variant: "dark",
|
|
@@ -3039,30 +3057,30 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3039
3057
|
"use-teleport": !0,
|
|
3040
3058
|
style: { "--max-width": "200px" }
|
|
3041
3059
|
}, {
|
|
3042
|
-
trigger:
|
|
3043
|
-
content:
|
|
3060
|
+
trigger: W(() => [s("p", ea, I(N.value), 1)]),
|
|
3061
|
+
content: W(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
3044
3062
|
_: 1
|
|
3045
|
-
})) : (O(), o("p", ta,
|
|
3046
|
-
(O(!0), o(t, null,
|
|
3063
|
+
})) : (O(), o("p", ta, I(N.value), 1))])) : a("v-if", !0),
|
|
3064
|
+
(O(!0), o(t, null, M(ae.value, (n) => (O(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (O(), i(Vr, {
|
|
3047
3065
|
key: 0,
|
|
3048
3066
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
3049
3067
|
depth: n.depth,
|
|
3050
3068
|
disabled: e.filter.disabled || n.option.isSelectable === !1,
|
|
3051
3069
|
"focus-text": e.filter.focusText,
|
|
3052
|
-
"is-focused":
|
|
3053
|
-
indeterminate:
|
|
3054
|
-
label:
|
|
3055
|
-
name:
|
|
3070
|
+
"is-focused": fe(n.option),
|
|
3071
|
+
indeterminate: K(n.option),
|
|
3072
|
+
label: se(n.option),
|
|
3073
|
+
name: R(p),
|
|
3056
3074
|
"query-text": m.value,
|
|
3057
3075
|
renderer: e.filter.filterOptionsRenderer,
|
|
3058
|
-
"result-count":
|
|
3059
|
-
selected:
|
|
3076
|
+
"result-count": ce(n.option),
|
|
3077
|
+
selected: le(n.option),
|
|
3060
3078
|
"show-focus-action": e.filter.isFocusable,
|
|
3061
3079
|
"sub-text": n.option.subText,
|
|
3062
3080
|
"subdued-text": n.option.subduedText,
|
|
3063
3081
|
value: n.option.value,
|
|
3064
|
-
onFocusValue: () =>
|
|
3065
|
-
onToggleValue: (e, t) =>
|
|
3082
|
+
onFocusValue: () => Ee(n.option),
|
|
3083
|
+
onToggleValue: (e, t) => Te(n.option, t)
|
|
3066
3084
|
}, null, 8, [
|
|
3067
3085
|
"control",
|
|
3068
3086
|
"depth",
|
|
@@ -3082,7 +3100,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3082
3100
|
"value",
|
|
3083
3101
|
"onFocusValue",
|
|
3084
3102
|
"onToggleValue"
|
|
3085
|
-
])) : (O(), i(
|
|
3103
|
+
])) : (O(), i(J, {
|
|
3086
3104
|
key: 1,
|
|
3087
3105
|
class: "pv-text-brand",
|
|
3088
3106
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
@@ -3092,23 +3110,23 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3092
3110
|
width: "fit-content"
|
|
3093
3111
|
}),
|
|
3094
3112
|
variant: "ghost",
|
|
3095
|
-
onClick: (e) =>
|
|
3113
|
+
onClick: (e) => ve(n.parent)
|
|
3096
3114
|
}, null, 8, [
|
|
3097
3115
|
"disabled",
|
|
3098
3116
|
"style",
|
|
3099
3117
|
"onClick"
|
|
3100
3118
|
]))], 64))), 128)),
|
|
3101
|
-
|
|
3119
|
+
ie.value ? (O(), i(J, {
|
|
3102
3120
|
key: 1,
|
|
3103
3121
|
class: "pv-text-brand",
|
|
3104
3122
|
disabled: e.filter.disabled || e.filter.isLoadingMore,
|
|
3105
3123
|
label: "See more",
|
|
3106
3124
|
style: { width: "fit-content" },
|
|
3107
3125
|
variant: "ghost",
|
|
3108
|
-
onClick:
|
|
3126
|
+
onClick: _e
|
|
3109
3127
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3110
3128
|
])) : a("v-if", !0),
|
|
3111
|
-
e.filter.filterFooterRenderer ? (O(), i(
|
|
3129
|
+
e.filter.filterFooterRenderer ? (O(), i(P(e.filter.filterFooterRenderer), x(v({ key: 3 }, ge.value)), null, 16)) : a("v-if", !0)
|
|
3112
3130
|
], 64))
|
|
3113
3131
|
], 64)) : C.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (O(), i(Pr, {
|
|
3114
3132
|
key: 1,
|
|
@@ -3121,7 +3139,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3121
3139
|
min: e.filter.rangeMin,
|
|
3122
3140
|
step: e.filter.rangeStep,
|
|
3123
3141
|
"value-decimals": e.filter.valueDecimals,
|
|
3124
|
-
"onUpdate:rangeValue":
|
|
3142
|
+
"onUpdate:rangeValue": Ce
|
|
3125
3143
|
}, null, 8, [
|
|
3126
3144
|
"rangeValue",
|
|
3127
3145
|
"data-type",
|
|
@@ -3131,36 +3149,36 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3131
3149
|
"min",
|
|
3132
3150
|
"step",
|
|
3133
3151
|
"value-decimals"
|
|
3134
|
-
])) : C.value === "range" ? (O(), o("p", na, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (O(), o("div", ra, [s("div", ia, [u(
|
|
3152
|
+
])) : C.value === "range" ? (O(), o("p", na, " Range filters require minimum and maximum bounds. ")) : C.value === "boolean" ? (O(), o("div", ra, [s("div", ia, [u(J, {
|
|
3135
3153
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3136
|
-
label:
|
|
3154
|
+
label: A.value,
|
|
3137
3155
|
variant: e.filter.booleanValue === !0 ? "primary" : "secondary",
|
|
3138
|
-
onClick: r[1] ||= (t) =>
|
|
3156
|
+
onClick: r[1] ||= (t) => xe(e.filter.booleanValue === !0 ? null : !0)
|
|
3139
3157
|
}, null, 8, [
|
|
3140
3158
|
"disabled",
|
|
3141
3159
|
"label",
|
|
3142
3160
|
"variant"
|
|
3143
|
-
]), u(
|
|
3161
|
+
]), u(J, {
|
|
3144
3162
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3145
3163
|
label: _.value,
|
|
3146
3164
|
variant: e.filter.booleanValue === !1 ? "primary" : "secondary",
|
|
3147
|
-
onClick: r[2] ||= (t) =>
|
|
3165
|
+
onClick: r[2] ||= (t) => xe(e.filter.booleanValue === !1 ? null : !1)
|
|
3148
3166
|
}, null, 8, [
|
|
3149
3167
|
"disabled",
|
|
3150
3168
|
"label",
|
|
3151
3169
|
"variant"
|
|
3152
|
-
])]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(
|
|
3170
|
+
])]), e.filter.booleanValue !== null && e.filter.booleanValue !== void 0 ? (O(), i(J, {
|
|
3153
3171
|
key: 0,
|
|
3154
3172
|
class: "pv-text-brand",
|
|
3155
3173
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3156
3174
|
label: "Clear",
|
|
3157
3175
|
variant: "ghost",
|
|
3158
|
-
onClick: r[3] ||= (e) =>
|
|
3176
|
+
onClick: r[3] ||= (e) => xe(null)
|
|
3159
3177
|
}, null, 8, ["disabled"])) : a("v-if", !0)])) : C.value === "exists" ? (O(), o("label", aa, [u(hr, {
|
|
3160
3178
|
disabled: e.filter.disabled || e.filter.isLoading,
|
|
3161
3179
|
modelValue: e.filter.existsValue ?? !1,
|
|
3162
|
-
"onUpdate:modelValue":
|
|
3163
|
-
}, null, 8, ["disabled", "modelValue"]), s("span", oa,
|
|
3180
|
+
"onUpdate:modelValue": Se
|
|
3181
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", oa, I(g.value), 1)])) : a("v-if", !0)])], 40, Hi));
|
|
3164
3182
|
}
|
|
3165
3183
|
}), [["styles", ["summary[data-v-9a452be9]{background-image:none;padding-right:2px}[data-v-9a452be9] .pv-input-search{background-color:#fff}.suggested-title-label[data-v-9a452be9]{text-underline-offset:2px;text-decoration:underline dotted}"]], ["__scopeId", "data-v-9a452be9"]]), ua = ["data-style"], da = /* @__PURE__ */ d({
|
|
3166
3184
|
__name: "PvTag",
|
|
@@ -3214,21 +3232,21 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3214
3232
|
"data-testid": "pv-tag",
|
|
3215
3233
|
"data-style": e.rounded ? "rounded" : void 0
|
|
3216
3234
|
}, [
|
|
3217
|
-
e.icon ? (O(), i(
|
|
3235
|
+
e.icon ? (O(), i(be, {
|
|
3218
3236
|
key: 0,
|
|
3219
3237
|
"data-testid": "pv-tag-icon",
|
|
3220
3238
|
class: b(e.iconClasses),
|
|
3221
3239
|
name: e.icon,
|
|
3222
3240
|
size: 12
|
|
3223
3241
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
3224
|
-
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) },
|
|
3225
|
-
e.showClear ? (O(), i(
|
|
3242
|
+
s("span", { class: b(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, I(e.label), 3),
|
|
3243
|
+
e.showClear ? (O(), i(be, {
|
|
3226
3244
|
key: 1,
|
|
3227
3245
|
"data-testid": "pv-tag-close-icon",
|
|
3228
3246
|
size: 12,
|
|
3229
3247
|
name: "close",
|
|
3230
3248
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
3231
|
-
onClick: r[0] ||=
|
|
3249
|
+
onClick: r[0] ||= ce((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
3232
3250
|
}, null, 8, ["data-dd-action-name"])) : a("v-if", !0)
|
|
3233
3251
|
], 14, ua));
|
|
3234
3252
|
}
|
|
@@ -3277,7 +3295,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3277
3295
|
let r = n, a = (e, t) => {
|
|
3278
3296
|
r("remove-filter", t.field ?? e, t.value, t.type);
|
|
3279
3297
|
};
|
|
3280
|
-
return (n, r) => (O(), o("section", fa, [e.appliedCount ? (O(), o("div", pa, [(O(!0), o(t, null,
|
|
3298
|
+
return (n, r) => (O(), o("section", fa, [e.appliedCount ? (O(), o("div", pa, [(O(!0), o(t, null, M(e.appliedGroups, (n) => (O(), o("div", {
|
|
3281
3299
|
key: n.key,
|
|
3282
3300
|
class: "pv-flex-vertical pv-border-bottom",
|
|
3283
3301
|
style: {
|
|
@@ -3285,7 +3303,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3285
3303
|
"--flex-gap": "12px",
|
|
3286
3304
|
"padding-bottom": "12px"
|
|
3287
3305
|
}
|
|
3288
|
-
}, [s("span", ma,
|
|
3306
|
+
}, [s("span", ma, I(n.label), 1), s("div", ha, [(O(!0), o(t, null, M(n.values, (t) => (O(), i(da, {
|
|
3289
3307
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
3290
3308
|
label: t.label,
|
|
3291
3309
|
showClear: !e.readOnly,
|
|
@@ -3337,7 +3355,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3337
3355
|
}
|
|
3338
3356
|
},
|
|
3339
3357
|
setup(e) {
|
|
3340
|
-
let t = e, n =
|
|
3358
|
+
let t = e, n = j(!1), c = j(!1), l = j(null), u = j(null), d = null, f = !1, p = r(() => Math.max(0, t.scrollFraction)), m = () => {
|
|
3341
3359
|
let e = u.value;
|
|
3342
3360
|
if (!e) return;
|
|
3343
3361
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
@@ -3372,11 +3390,11 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3372
3390
|
ref_key: "contentContainer",
|
|
3373
3391
|
ref: l,
|
|
3374
3392
|
class: "pv-horizontal-scroller-content"
|
|
3375
|
-
}, [
|
|
3393
|
+
}, [N(t.$slots, "default")], 512)], 10, ya),
|
|
3376
3394
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
3377
3395
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
3378
3396
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
3379
|
-
}]) }, [n.value ? (O(), i(
|
|
3397
|
+
}]) }, [n.value ? (O(), i(J, {
|
|
3380
3398
|
key: 0,
|
|
3381
3399
|
ariaLabel: e.leftAriaLabel,
|
|
3382
3400
|
leftIcon: "chevron-left",
|
|
@@ -3391,7 +3409,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3391
3409
|
s("div", { class: b(["pv-horizontal-scroller-control pv-horizontal-scroller-control-right", {
|
|
3392
3410
|
"pv-horizontal-scroller-control-hidden": !c.value,
|
|
3393
3411
|
"pv-horizontal-scroller-control-right-fade": e.showFades
|
|
3394
|
-
}]) }, [c.value ? (O(), i(
|
|
3412
|
+
}]) }, [c.value ? (O(), i(J, {
|
|
3395
3413
|
key: 0,
|
|
3396
3414
|
ariaLabel: e.rightAriaLabel,
|
|
3397
3415
|
leftIcon: "chevron-right",
|
|
@@ -3438,7 +3456,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3438
3456
|
}), d = (e) => {
|
|
3439
3457
|
c.value = e;
|
|
3440
3458
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
3441
|
-
return
|
|
3459
|
+
return U(l, (e) => {
|
|
3442
3460
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
3443
3461
|
}, { immediate: !0 }), (e, n) => l.value.length ? (O(), o("div", Sa, [u(xa, {
|
|
3444
3462
|
ariaLabel: "Filter categories",
|
|
@@ -3449,12 +3467,12 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3449
3467
|
rightAriaLabel: "Scroll filter categories right",
|
|
3450
3468
|
showFades: ""
|
|
3451
3469
|
}, {
|
|
3452
|
-
default:
|
|
3470
|
+
default: W(() => [s("div", Ca, [u(J, {
|
|
3453
3471
|
label: "All",
|
|
3454
3472
|
size: "md",
|
|
3455
3473
|
variant: f(null),
|
|
3456
3474
|
onClick: n[0] ||= (e) => d(null)
|
|
3457
|
-
}, null, 8, ["variant"]), (O(!0), o(t, null,
|
|
3475
|
+
}, null, 8, ["variant"]), (O(!0), o(t, null, M(l.value, (e) => (O(), i(J, {
|
|
3458
3476
|
key: e,
|
|
3459
3477
|
label: e,
|
|
3460
3478
|
size: "md",
|
|
@@ -3798,7 +3816,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3798
3816
|
children: So(e.children, t, n).filter((e) => !!e)
|
|
3799
3817
|
} : e));
|
|
3800
3818
|
}, Co = (e, t) => `${e}::${t}`, wo = () => {
|
|
3801
|
-
let e =
|
|
3819
|
+
let e = j(null), t = j(null), n = j(), r = j({}), i = j({}), a = j({}), o = j({}), s = j({}), c = j({}), l = j({}), u = j({}), d = j({}), f = j({}), p = j({}), m = j({}), h = j({}), g = j({}), _ = j(), v = j({}), y = (e) => {
|
|
3802
3820
|
_.value = e;
|
|
3803
3821
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
3804
3822
|
r.value[e] = t;
|
|
@@ -3893,7 +3911,7 @@ var ar = ["popover"], or = 0, sr = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
|
3893
3911
|
"exists"
|
|
3894
3912
|
]);
|
|
3895
3913
|
function Ao(e, t, n) {
|
|
3896
|
-
let i = p(), a =
|
|
3914
|
+
let i = p(), a = j(t.value), o = wo(), s = To(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = r(() => !!(e.filterStore ?? s)), f = r(() => !d.value && !!e.filterOptionsHandler), m = r(() => e.filterStore ?? s ?? o), h = r(() => m.value === o), g = r(() => d.value || f.value), _ = r(() => e.filterModelType ?? m.value?.filterModelType.value), v = r(() => _.value ?? "advanced"), y = r(() => {
|
|
3897
3915
|
let n = m.value;
|
|
3898
3916
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? a.value : t.value;
|
|
3899
3917
|
}), b = r(() => oo(y.value, v.value)), x = (e, t) => {
|
|
@@ -3910,9 +3928,9 @@ function Ao(e, t, n) {
|
|
|
3910
3928
|
}
|
|
3911
3929
|
x(t, n);
|
|
3912
3930
|
};
|
|
3913
|
-
|
|
3931
|
+
U(() => e.filterOptionsHandler, (e) => {
|
|
3914
3932
|
o.setFilterOptionsHandler(e);
|
|
3915
|
-
}, { immediate: !0 }),
|
|
3933
|
+
}, { immediate: !0 }), U([
|
|
3916
3934
|
() => e.filterOptions,
|
|
3917
3935
|
h,
|
|
3918
3936
|
() => e.filterOptionsHandler
|
|
@@ -3921,7 +3939,7 @@ function Ao(e, t, n) {
|
|
|
3921
3939
|
}, {
|
|
3922
3940
|
deep: !0,
|
|
3923
3941
|
immediate: !0
|
|
3924
|
-
}),
|
|
3942
|
+
}), U([
|
|
3925
3943
|
() => e.filterHasMoreMap,
|
|
3926
3944
|
h,
|
|
3927
3945
|
() => e.filterOptionsHandler
|
|
@@ -3930,7 +3948,7 @@ function Ao(e, t, n) {
|
|
|
3930
3948
|
}, {
|
|
3931
3949
|
deep: !0,
|
|
3932
3950
|
immediate: !0
|
|
3933
|
-
}),
|
|
3951
|
+
}), U([
|
|
3934
3952
|
() => e.filterLoadingMap,
|
|
3935
3953
|
h,
|
|
3936
3954
|
() => e.filterOptionsHandler
|
|
@@ -3939,7 +3957,7 @@ function Ao(e, t, n) {
|
|
|
3939
3957
|
}, {
|
|
3940
3958
|
deep: !0,
|
|
3941
3959
|
immediate: !0
|
|
3942
|
-
}),
|
|
3960
|
+
}), U([
|
|
3943
3961
|
() => e.filterLoadingMoreMap,
|
|
3944
3962
|
h,
|
|
3945
3963
|
() => e.filterOptionsHandler
|
|
@@ -3948,7 +3966,7 @@ function Ao(e, t, n) {
|
|
|
3948
3966
|
}, {
|
|
3949
3967
|
deep: !0,
|
|
3950
3968
|
immediate: !0
|
|
3951
|
-
}),
|
|
3969
|
+
}), U([
|
|
3952
3970
|
() => e.filterSearchQueries,
|
|
3953
3971
|
h,
|
|
3954
3972
|
() => e.filterOptionsHandler
|
|
@@ -3957,7 +3975,7 @@ function Ao(e, t, n) {
|
|
|
3957
3975
|
}, {
|
|
3958
3976
|
deep: !0,
|
|
3959
3977
|
immediate: !0
|
|
3960
|
-
}),
|
|
3978
|
+
}), U([
|
|
3961
3979
|
t,
|
|
3962
3980
|
h,
|
|
3963
3981
|
() => e.staged
|
|
@@ -3966,7 +3984,7 @@ function Ao(e, t, n) {
|
|
|
3966
3984
|
}, {
|
|
3967
3985
|
deep: !0,
|
|
3968
3986
|
immediate: !0
|
|
3969
|
-
}),
|
|
3987
|
+
}), U([() => e.staged, m], ([e]) => {
|
|
3970
3988
|
if (e) {
|
|
3971
3989
|
a.value = t.value;
|
|
3972
3990
|
let e = m.value;
|
|
@@ -3985,58 +4003,58 @@ function Ao(e, t, n) {
|
|
|
3985
4003
|
let t = ee(e);
|
|
3986
4004
|
v.value === "advanced" && !t && T("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), v.value === "regular" && t && T("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
3987
4005
|
};
|
|
3988
|
-
|
|
4006
|
+
ae(() => {
|
|
3989
4007
|
w("filterModel", !!((e.filterStore || s) && t.value !== null)), w("filterOptions", Object.keys(e.filterOptions).length > 0), w("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), w("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), w("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), w("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), w("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler));
|
|
3990
4008
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
3991
4009
|
import.meta.env?.DEV && !_.value && y.value !== null && !ee(y.value) && (E() || n) && T("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
3992
4010
|
});
|
|
3993
|
-
let O = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "",
|
|
4011
|
+
let O = (e) => e.context ?? {}, k = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, M = (e) => {
|
|
3994
4012
|
let t = O(e), n = t.filterPanelType;
|
|
3995
4013
|
if (n && ko.has(n)) return n;
|
|
3996
4014
|
if (t.filterPanelRange) return "range";
|
|
3997
4015
|
if (t.dataType === "boolean") return "boolean";
|
|
3998
4016
|
if (e.filter) return "value";
|
|
3999
|
-
},
|
|
4017
|
+
}, N = (e) => M(e) ?? "value", P = (e) => O(e).filterPanelCategory ?? null, F = (e) => {
|
|
4000
4018
|
let t = O(e).filterPanelValueLabels;
|
|
4001
4019
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
4002
|
-
},
|
|
4020
|
+
}, I = (t) => {
|
|
4003
4021
|
let n = O(t), r = k(t);
|
|
4004
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
4005
|
-
},
|
|
4022
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && ie.value.has(r) ? !1 : !!M(t);
|
|
4023
|
+
}, L = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), R = (t) => {
|
|
4006
4024
|
let n = m.value;
|
|
4007
4025
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
4008
|
-
},
|
|
4026
|
+
}, te = (e) => m.value.filterHasMoreMap.value[e] ?? !1, ne = (e) => m.value.filterLoadingMap.value[e] ?? !1, z = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, B = (e) => m.value.filterSearchQueries.value[e] ?? "", V = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
4009
4027
|
label: e.label,
|
|
4010
4028
|
value: e.filter.value
|
|
4011
4029
|
}]), re = (e) => [
|
|
4012
4030
|
...V(e),
|
|
4013
|
-
...
|
|
4014
|
-
...
|
|
4015
|
-
],
|
|
4031
|
+
...L(e),
|
|
4032
|
+
...R(e)
|
|
4033
|
+
], H = (e) => {
|
|
4016
4034
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
4017
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
4035
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(H) : [];
|
|
4018
4036
|
return n ? [n, ...r] : r;
|
|
4019
|
-
},
|
|
4037
|
+
}, ie = r(() => {
|
|
4020
4038
|
let t = /* @__PURE__ */ new Set();
|
|
4021
4039
|
for (let n of e.colDefs) {
|
|
4022
4040
|
let e = O(n);
|
|
4023
4041
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
4024
|
-
for (let n of
|
|
4042
|
+
for (let n of H(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
4025
4043
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
4026
4044
|
}
|
|
4027
4045
|
return t;
|
|
4028
|
-
}),
|
|
4029
|
-
let t = k(e), n = O(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i =
|
|
4046
|
+
}), W = (e) => {
|
|
4047
|
+
let t = k(e), n = O(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = H(n.aggregateFieldHierarchy);
|
|
4030
4048
|
return Array.from(new Set([
|
|
4031
4049
|
t,
|
|
4032
4050
|
...r,
|
|
4033
4051
|
...i
|
|
4034
4052
|
].filter(Boolean)));
|
|
4035
|
-
},
|
|
4053
|
+
}, oe = (e) => v.value === "advanced" && gi(e), se = (e, t) => oe(e) ? Ei({
|
|
4036
4054
|
colDef: e,
|
|
4037
4055
|
model: y.value,
|
|
4038
4056
|
options: t
|
|
4039
|
-
}) : new Map(
|
|
4057
|
+
}) : new Map(W(e).map((e) => [e, b.value.get(e)?.values ?? []])), ce = (e, t, n, r) => {
|
|
4040
4058
|
let i = /* @__PURE__ */ new Set();
|
|
4041
4059
|
for (let t of si(r)) for (let [r, a] of n) for (let n of a) ci(t, r, n, e) && i.add(`${r}:${n}`);
|
|
4042
4060
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
@@ -4045,37 +4063,37 @@ function Ao(e, t, n) {
|
|
|
4045
4063
|
metadata: { rawValue: n },
|
|
4046
4064
|
value: t === e ? n : ii(t, n)
|
|
4047
4065
|
}]));
|
|
4048
|
-
},
|
|
4066
|
+
}, G = (e, t, n) => {
|
|
4049
4067
|
let r = /* @__PURE__ */ new Set();
|
|
4050
4068
|
for (let i of si(n)) {
|
|
4051
4069
|
let n = oi(i, e), a = ai(i);
|
|
4052
4070
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
4053
4071
|
}
|
|
4054
4072
|
return Array.from(r);
|
|
4055
|
-
},
|
|
4073
|
+
}, le = (t) => Object.fromEntries(W(t).map((t) => [t, e.focusedValues[t] ?? []])), K = (t) => e.colDefs.find((e) => k(e) === t || e.field === t || e.colId === t), ue = (e) => K(e)?.headerName ?? e, de = (e) => {
|
|
4056
4074
|
let t = O(e);
|
|
4057
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Ta(k(e), t.queryColIds,
|
|
4058
|
-
},
|
|
4075
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Ta(k(e), t.queryColIds, ue);
|
|
4076
|
+
}, fe = (e, t) => Da({
|
|
4059
4077
|
fallbackSubText: e.subText,
|
|
4060
|
-
getDisplayName:
|
|
4078
|
+
getDisplayName: ue,
|
|
4061
4079
|
matchedField: e.matchedField,
|
|
4062
4080
|
matchedValue: e.matchedValue,
|
|
4063
4081
|
primaryText: e.label,
|
|
4064
4082
|
showPrefix: O(t).showSearchMatchSubTextPrefix !== !1
|
|
4065
|
-
}),
|
|
4083
|
+
}), pe = (e, t) => e.map((e) => ({
|
|
4066
4084
|
...e,
|
|
4067
|
-
children: e.children?.length ?
|
|
4068
|
-
subText:
|
|
4069
|
-
})),
|
|
4085
|
+
children: e.children?.length ? pe(e.children, t) : e.children,
|
|
4086
|
+
subText: fe(e, t)
|
|
4087
|
+
})), me = (e) => {
|
|
4070
4088
|
let t = O(e).filterGroup;
|
|
4071
4089
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
4072
4090
|
field: e,
|
|
4073
4091
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
4074
|
-
label:
|
|
4092
|
+
label: K(e)?.headerName ?? e
|
|
4075
4093
|
}));
|
|
4076
|
-
},
|
|
4077
|
-
let n = k(t), r = O(t), i =
|
|
4078
|
-
category:
|
|
4094
|
+
}, q = (e) => ge.value.find((t) => t.key === e) ?? ge.value.find((t) => W(t.colDef).includes(e)), he = (e, t, n) => si(q(e)?.knownOptions ?? []).find((r) => r.value === n || ci(r, t, n, e)), ge = r(() => e.colDefs.filter(I).map((t) => {
|
|
4095
|
+
let n = k(t), r = O(t), i = N(t), a = pe(L(n), t), o = pe(re(n), t), s = {
|
|
4096
|
+
category: P(t),
|
|
4079
4097
|
colDef: t,
|
|
4080
4098
|
controlled: r.filterPanelControlled === !0,
|
|
4081
4099
|
dataType: r.dataType ?? null,
|
|
@@ -4085,7 +4103,7 @@ function Ao(e, t, n) {
|
|
|
4085
4103
|
existsLabel: r.filterPanelExistsLabel,
|
|
4086
4104
|
filterFooterRenderer: r.filterFooterRenderer,
|
|
4087
4105
|
filterGroupLabel: r.filterGroup?.label,
|
|
4088
|
-
filterGroupOptions:
|
|
4106
|
+
filterGroupOptions: me(t),
|
|
4089
4107
|
filterHeaderRenderer: r.filterHeaderRenderer,
|
|
4090
4108
|
filterOptionsRenderer: r.filterOptionsRenderer,
|
|
4091
4109
|
filterOptionsSortDescription: r.filterOptionsSortDescription,
|
|
@@ -4094,25 +4112,25 @@ function Ao(e, t, n) {
|
|
|
4094
4112
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
4095
4113
|
hideSearch: r.filterPanelHideSearch,
|
|
4096
4114
|
focusedValues: e.focusedValues[n] ?? [],
|
|
4097
|
-
focusedValuesByField:
|
|
4098
|
-
hasMore:
|
|
4099
|
-
isAggregate:
|
|
4100
|
-
isFocusable: e.enableFocusView && (!e.focusableFields.length ||
|
|
4101
|
-
isLoading:
|
|
4115
|
+
focusedValuesByField: le(t),
|
|
4116
|
+
hasMore: te(n),
|
|
4117
|
+
isAggregate: oe(t),
|
|
4118
|
+
isFocusable: e.enableFocusView && (!e.focusableFields.length || W(t).some((t) => e.focusableFields.includes(t))),
|
|
4119
|
+
isLoading: ne(n),
|
|
4102
4120
|
isLoadingMore: z(n),
|
|
4103
4121
|
isOpen: !1,
|
|
4104
4122
|
key: n,
|
|
4105
4123
|
knownOptions: o,
|
|
4106
4124
|
label: t.headerName || n,
|
|
4107
|
-
rangeMax:
|
|
4108
|
-
rangeMin:
|
|
4109
|
-
rangeStep:
|
|
4110
|
-
searchPlaceholder:
|
|
4125
|
+
rangeMax: A(r.filterPanelRange?.max),
|
|
4126
|
+
rangeMin: A(r.filterPanelRange?.min),
|
|
4127
|
+
rangeStep: A(r.filterPanelRange?.step),
|
|
4128
|
+
searchPlaceholder: de(t),
|
|
4111
4129
|
searchQuery: B(n) ?? "",
|
|
4112
4130
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
4113
4131
|
type: i,
|
|
4114
4132
|
valueDecimals: r.valueDecimals ?? null,
|
|
4115
|
-
valueLabels:
|
|
4133
|
+
valueLabels: F(t)
|
|
4116
4134
|
};
|
|
4117
4135
|
if (i === "range") return {
|
|
4118
4136
|
...s,
|
|
@@ -4129,7 +4147,7 @@ function Ao(e, t, n) {
|
|
|
4129
4147
|
...s,
|
|
4130
4148
|
existsValue: b.value.get(n)?.existsValue ?? !1
|
|
4131
4149
|
};
|
|
4132
|
-
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) :
|
|
4150
|
+
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : se(t, c), d = ce(n, t, u, c), f = [...c, ...d], p = oe(t) ? Ti({
|
|
4133
4151
|
colDef: t,
|
|
4134
4152
|
model: y.value,
|
|
4135
4153
|
options: f
|
|
@@ -4139,18 +4157,18 @@ function Ao(e, t, n) {
|
|
|
4139
4157
|
aggregateSelectionState: p,
|
|
4140
4158
|
knownOptions: f,
|
|
4141
4159
|
options: a,
|
|
4142
|
-
selectedValues: s.controlled ? l : p ? p.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
4160
|
+
selectedValues: s.controlled ? l : p ? p.flatMap((e) => e.state === "selected" ? [e.id] : []) : G(n, u, f)
|
|
4143
4161
|
};
|
|
4144
|
-
})),
|
|
4162
|
+
})), _e = r(() => ge.value.flatMap((e) => {
|
|
4145
4163
|
if (e.controlled) return [];
|
|
4146
|
-
let t =
|
|
4164
|
+
let t = Ne(e);
|
|
4147
4165
|
return t.length ? [{
|
|
4148
4166
|
key: e.key,
|
|
4149
4167
|
label: e.label,
|
|
4150
4168
|
values: t
|
|
4151
4169
|
}] : [];
|
|
4152
|
-
})),
|
|
4153
|
-
let t =
|
|
4170
|
+
})), ve = r(() => _e.value.reduce((e, t) => e + t.values.length, 0)), ye = r(() => so(y.value, v.value)), be = r(() => ye.value || ve.value > 0), xe = (e) => {
|
|
4171
|
+
let t = q(e.field);
|
|
4154
4172
|
if (!t || t.type !== e.filter.type) return !0;
|
|
4155
4173
|
if (e.filter.type === "value") {
|
|
4156
4174
|
if (t.isAggregate && e.option) {
|
|
@@ -4165,11 +4183,11 @@ function Ao(e, t, n) {
|
|
|
4165
4183
|
return e.filter.checked ? a : !a;
|
|
4166
4184
|
}
|
|
4167
4185
|
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;
|
|
4168
|
-
},
|
|
4186
|
+
}, Se = r(() => e.filterSuggestions.filter((e) => !xe(e))), Ce = (e) => {
|
|
4169
4187
|
if (e.key) return e.key;
|
|
4170
4188
|
let t = "value" in e.filter ? e.filter.value : "";
|
|
4171
4189
|
return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
|
|
4172
|
-
},
|
|
4190
|
+
}, we = (t, n, r, i) => {
|
|
4173
4191
|
let a = m.value;
|
|
4174
4192
|
if (!a) return;
|
|
4175
4193
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
@@ -4186,7 +4204,7 @@ function Ao(e, t, n) {
|
|
|
4186
4204
|
}) || l.push(i);
|
|
4187
4205
|
}
|
|
4188
4206
|
o.value[t] = l;
|
|
4189
|
-
},
|
|
4207
|
+
}, Te = (t, n = t.aggregateSelectionState ?? []) => {
|
|
4190
4208
|
let r = m.value;
|
|
4191
4209
|
if (!r || !t.isAggregate) return;
|
|
4192
4210
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
@@ -4196,38 +4214,38 @@ function Ao(e, t, n) {
|
|
|
4196
4214
|
options: t.knownOptions ?? [],
|
|
4197
4215
|
state: n
|
|
4198
4216
|
});
|
|
4199
|
-
},
|
|
4217
|
+
}, Ee = (e) => {
|
|
4200
4218
|
if (!g.value) return;
|
|
4201
4219
|
let t = m.value, n = /* @__PURE__ */ new Set();
|
|
4202
4220
|
if (e) {
|
|
4203
4221
|
n.add(e);
|
|
4204
|
-
let t =
|
|
4205
|
-
t && (n.add(t.key),
|
|
4222
|
+
let t = q(e);
|
|
4223
|
+
t && (n.add(t.key), W(t.colDef).forEach((e) => n.add(e)));
|
|
4206
4224
|
}
|
|
4207
|
-
for (let r of
|
|
4208
|
-
},
|
|
4225
|
+
for (let r of ge.value) r.type === "value" && (e && (n.has(r.key) || W(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
4226
|
+
}, J = (r, i, o, c) => {
|
|
4209
4227
|
D(r);
|
|
4210
4228
|
let l = y.value, u = m.value;
|
|
4211
|
-
u ? (S(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r),
|
|
4212
|
-
colDef: (o ?
|
|
4229
|
+
u ? (S(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r), Ee(o), n("filter-change", {
|
|
4230
|
+
colDef: (o ? q(o) : void 0)?.colDef,
|
|
4213
4231
|
field: o,
|
|
4214
4232
|
filterModel: r,
|
|
4215
4233
|
previousFilterModel: l,
|
|
4216
4234
|
reason: i,
|
|
4217
4235
|
type: c
|
|
4218
4236
|
});
|
|
4219
|
-
},
|
|
4237
|
+
}, De = (e) => {
|
|
4220
4238
|
let t = e.booleanValue ?? null;
|
|
4221
4239
|
return t === null ? [] : [{
|
|
4222
4240
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
4223
4241
|
type: "boolean",
|
|
4224
4242
|
value: Do
|
|
4225
4243
|
}];
|
|
4226
|
-
},
|
|
4244
|
+
}, Oe = (e) => e.existsValue ? [{
|
|
4227
4245
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
4228
4246
|
type: "exists",
|
|
4229
4247
|
value: Oo
|
|
4230
|
-
}] : [],
|
|
4248
|
+
}] : [], ke = (e) => {
|
|
4231
4249
|
let t = e.rangeValue ?? {
|
|
4232
4250
|
max: null,
|
|
4233
4251
|
min: null
|
|
@@ -4240,7 +4258,7 @@ function Ao(e, t, n) {
|
|
|
4240
4258
|
type: "range",
|
|
4241
4259
|
value: Eo
|
|
4242
4260
|
}];
|
|
4243
|
-
},
|
|
4261
|
+
}, Ae = (e, t, n) => {
|
|
4244
4262
|
let r = n.get(t) ?? null;
|
|
4245
4263
|
return {
|
|
4246
4264
|
field: r ? oi(r, e.key) : void 0,
|
|
@@ -4251,12 +4269,12 @@ function Ao(e, t, n) {
|
|
|
4251
4269
|
type: "value",
|
|
4252
4270
|
value: r ? ai(r) ?? r.value : t
|
|
4253
4271
|
};
|
|
4254
|
-
},
|
|
4272
|
+
}, je = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
4255
4273
|
field: e.field,
|
|
4256
4274
|
label: e.label,
|
|
4257
4275
|
type: "boolean",
|
|
4258
4276
|
value: Do
|
|
4259
|
-
}] : []),
|
|
4277
|
+
}] : []), Me = (e) => Bi({
|
|
4260
4278
|
options: e.knownOptions ?? [],
|
|
4261
4279
|
state: e.aggregateSelectionState ?? []
|
|
4262
4280
|
}).map((t) => ({
|
|
@@ -4267,42 +4285,42 @@ function Ao(e, t, n) {
|
|
|
4267
4285
|
subduedText: t.subduedText,
|
|
4268
4286
|
type: "value",
|
|
4269
4287
|
value: t.value
|
|
4270
|
-
})),
|
|
4288
|
+
})), Ne = (e) => {
|
|
4271
4289
|
if (e.controlled) return [];
|
|
4272
|
-
if (e.type === "range") return
|
|
4273
|
-
if (e.type === "boolean") return
|
|
4274
|
-
if (e.type === "exists") return
|
|
4275
|
-
if (e.isAggregate) return [...
|
|
4290
|
+
if (e.type === "range") return ke(e);
|
|
4291
|
+
if (e.type === "boolean") return De(e);
|
|
4292
|
+
if (e.type === "exists") return Oe(e);
|
|
4293
|
+
if (e.isAggregate) return [...Me(e), ...je(e)];
|
|
4276
4294
|
let t = new Map(si(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
4277
|
-
return [...(e.selectedValues ?? []).map((n) =>
|
|
4295
|
+
return [...(e.selectedValues ?? []).map((n) => Ae(e, n, t)), ...je(e)];
|
|
4296
|
+
}, Pe = () => {
|
|
4297
|
+
Ue(), J(null, "clear-all");
|
|
4278
4298
|
}, Fe = () => {
|
|
4279
|
-
We()
|
|
4280
|
-
}, Ie = () => {
|
|
4281
|
-
Ge();
|
|
4299
|
+
We();
|
|
4282
4300
|
let r = m.value, i = r ? r.stagedFilterModel.value : a.value;
|
|
4283
4301
|
r && (x(r, i), r.commitStagedFilterSelections(), r.initStagedFilterSelections()), !e.filterStore && !s && (t.value = i), n("apply", i);
|
|
4284
|
-
},
|
|
4285
|
-
|
|
4302
|
+
}, Y = () => {
|
|
4303
|
+
Ue();
|
|
4286
4304
|
let e = m.value;
|
|
4287
4305
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), a.value = t.value, n("cancel");
|
|
4288
|
-
},
|
|
4289
|
-
let r =
|
|
4290
|
-
r?.isAggregate && (
|
|
4306
|
+
}, Ie = (e) => co(q(e)?.dataType), Le = (e, t, n = "value-toggle") => {
|
|
4307
|
+
let r = q(e);
|
|
4308
|
+
r?.isAggregate && (Te(r, t), J(Ci({
|
|
4291
4309
|
baseModel: y.value,
|
|
4292
4310
|
colDef: r.colDef,
|
|
4293
4311
|
options: r.knownOptions ?? [],
|
|
4294
4312
|
state: t
|
|
4295
4313
|
}), n, r.key, "value"));
|
|
4296
|
-
},
|
|
4314
|
+
}, Re = (e, t) => {
|
|
4297
4315
|
if (t.type === "aggregate-selection") {
|
|
4298
|
-
|
|
4316
|
+
Le(e, t.value);
|
|
4299
4317
|
return;
|
|
4300
4318
|
}
|
|
4301
|
-
let n = t.field ?? e, r =
|
|
4319
|
+
let n = t.field ?? e, r = K(n) ?? q(e)?.colDef;
|
|
4302
4320
|
if (t.type === "value") {
|
|
4303
|
-
let r =
|
|
4321
|
+
let r = q(e), i = he(e, n, t.value);
|
|
4304
4322
|
if (r?.isAggregate && i) {
|
|
4305
|
-
|
|
4323
|
+
Le(e, Ii({
|
|
4306
4324
|
checked: t.checked,
|
|
4307
4325
|
option: i,
|
|
4308
4326
|
options: r.knownOptions ?? [],
|
|
@@ -4310,25 +4328,25 @@ function Ao(e, t, n) {
|
|
|
4310
4328
|
}));
|
|
4311
4329
|
return;
|
|
4312
4330
|
}
|
|
4313
|
-
|
|
4331
|
+
Je(e, n, t.value, t.checked, i);
|
|
4314
4332
|
return;
|
|
4315
4333
|
}
|
|
4316
4334
|
if (t.type === "range") {
|
|
4317
|
-
|
|
4335
|
+
Ge(n, t.value, r);
|
|
4318
4336
|
return;
|
|
4319
4337
|
}
|
|
4320
4338
|
if (t.type === "boolean") {
|
|
4321
|
-
|
|
4339
|
+
J(uo(y.value, n, t.value, v.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
4322
4340
|
return;
|
|
4323
4341
|
}
|
|
4324
|
-
|
|
4325
|
-
},
|
|
4342
|
+
J(fo(y.value, n, t.value, Ie(n), v.value, r), "exists-change", n, "exists");
|
|
4343
|
+
}, ze = (e, t, n, r) => {
|
|
4326
4344
|
let i = m.value;
|
|
4327
4345
|
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;
|
|
4328
|
-
},
|
|
4346
|
+
}, Be = (e, t, n, r) => {
|
|
4329
4347
|
let i = m.value;
|
|
4330
|
-
if (!
|
|
4331
|
-
let a = Array.from(new Set([...
|
|
4348
|
+
if (!ze(e, t, n, r) || !i) return;
|
|
4349
|
+
let a = Array.from(new Set([...se(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
4332
4350
|
i.fetchFilterOptions({
|
|
4333
4351
|
colDef: e.colDef,
|
|
4334
4352
|
field: e.key,
|
|
@@ -4338,26 +4356,26 @@ function Ao(e, t, n) {
|
|
|
4338
4356
|
reason: n,
|
|
4339
4357
|
selectedValues: a
|
|
4340
4358
|
});
|
|
4341
|
-
},
|
|
4342
|
-
n("load-more", e.key, e.colDef, t, r),
|
|
4343
|
-
},
|
|
4344
|
-
|
|
4345
|
-
},
|
|
4359
|
+
}, Ve = (e, t, r) => {
|
|
4360
|
+
n("load-more", e.key, e.colDef, t, r), Be(e, t, r ? "child-load-more" : "load-more", r);
|
|
4361
|
+
}, He = (e, t, n) => {
|
|
4362
|
+
J(po(y.value, e, t.min, t.max, v.value, n), "range-change", e, "range");
|
|
4363
|
+
}, Ue = () => {
|
|
4346
4364
|
for (let { timer: e } of u.values()) window.clearTimeout(e);
|
|
4347
4365
|
u.clear();
|
|
4348
|
-
},
|
|
4366
|
+
}, We = () => {
|
|
4349
4367
|
let e = [...u.entries()];
|
|
4350
|
-
|
|
4351
|
-
for (let [t, n] of e)
|
|
4352
|
-
},
|
|
4368
|
+
Ue();
|
|
4369
|
+
for (let [t, n] of e) He(t, n.value, n.colDef);
|
|
4370
|
+
}, Ge = (t, n, r) => {
|
|
4353
4371
|
if (e.rangeDebounceMs <= 0) {
|
|
4354
|
-
|
|
4372
|
+
He(t, n, r);
|
|
4355
4373
|
return;
|
|
4356
4374
|
}
|
|
4357
4375
|
let i = u.get(t);
|
|
4358
4376
|
i && window.clearTimeout(i.timer);
|
|
4359
4377
|
let a = window.setTimeout(() => {
|
|
4360
|
-
u.delete(t),
|
|
4378
|
+
u.delete(t), He(t, n, r);
|
|
4361
4379
|
}, e.rangeDebounceMs);
|
|
4362
4380
|
u.set(t, {
|
|
4363
4381
|
colDef: r,
|
|
@@ -4365,66 +4383,66 @@ function Ao(e, t, n) {
|
|
|
4365
4383
|
value: n
|
|
4366
4384
|
});
|
|
4367
4385
|
};
|
|
4368
|
-
C(
|
|
4369
|
-
let
|
|
4370
|
-
n("search-change", e.key, t, e.colDef),
|
|
4371
|
-
},
|
|
4372
|
-
|
|
4373
|
-
},
|
|
4374
|
-
let s =
|
|
4386
|
+
C(Ue);
|
|
4387
|
+
let Ke = (e, t) => {
|
|
4388
|
+
n("search-change", e.key, t, e.colDef), Be(e, t, "search");
|
|
4389
|
+
}, qe = (e, t = e.searchQuery ?? "") => {
|
|
4390
|
+
Be(e, t, "open");
|
|
4391
|
+
}, Je = (t, r, i, a, o) => {
|
|
4392
|
+
let s = q(t), c = s?.controlled ? e.controlledValues[t] ?? [] : b.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
|
|
4375
4393
|
if (s?.controlled) {
|
|
4376
4394
|
n("controlled-change", t, l, s.colDef);
|
|
4377
4395
|
return;
|
|
4378
4396
|
}
|
|
4379
|
-
|
|
4397
|
+
we(t, r, l, a ? o : void 0), J(mo(y.value, r, l, v.value, K(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
4380
4398
|
};
|
|
4381
4399
|
return {
|
|
4382
|
-
resolvedFilters:
|
|
4383
|
-
appliedGroups:
|
|
4384
|
-
appliedCount:
|
|
4385
|
-
hasActiveFilters:
|
|
4386
|
-
showClearAll:
|
|
4387
|
-
visibleSuggestions:
|
|
4400
|
+
resolvedFilters: ge,
|
|
4401
|
+
appliedGroups: _e,
|
|
4402
|
+
appliedCount: ve,
|
|
4403
|
+
hasActiveFilters: ye,
|
|
4404
|
+
showClearAll: be,
|
|
4405
|
+
visibleSuggestions: Se,
|
|
4388
4406
|
effectiveFilterModelType: v,
|
|
4389
4407
|
activeFilterModel: y,
|
|
4390
4408
|
effectiveFilterStore: m,
|
|
4391
|
-
findResolvedFilter:
|
|
4392
|
-
getRepresentedFields:
|
|
4393
|
-
activateFilter:
|
|
4394
|
-
applyStagedFilters:
|
|
4395
|
-
cancelStagedFilters:
|
|
4396
|
-
clearAllFilters:
|
|
4397
|
-
getSuggestionKey:
|
|
4398
|
-
handleControlChange:
|
|
4399
|
-
handleLoadMore:
|
|
4400
|
-
handleSearchChange:
|
|
4409
|
+
findResolvedFilter: q,
|
|
4410
|
+
getRepresentedFields: W,
|
|
4411
|
+
activateFilter: qe,
|
|
4412
|
+
applyStagedFilters: Fe,
|
|
4413
|
+
cancelStagedFilters: Y,
|
|
4414
|
+
clearAllFilters: Pe,
|
|
4415
|
+
getSuggestionKey: Ce,
|
|
4416
|
+
handleControlChange: Re,
|
|
4417
|
+
handleLoadMore: Ve,
|
|
4418
|
+
handleSearchChange: Ke,
|
|
4401
4419
|
handleSuggestionClick: (e) => {
|
|
4402
4420
|
if (e.filter.type === "value" && e.option) {
|
|
4403
|
-
let t =
|
|
4404
|
-
t?.isAggregate ?
|
|
4421
|
+
let t = q(e.field), n = oi(e.option, e.field), r = ai(e.option) ?? e.filter.value;
|
|
4422
|
+
t?.isAggregate ? Le(e.field, Ii({
|
|
4405
4423
|
checked: e.filter.checked,
|
|
4406
4424
|
option: e.option,
|
|
4407
4425
|
options: t.knownOptions ?? [],
|
|
4408
4426
|
state: t.aggregateSelectionState ?? []
|
|
4409
|
-
})) :
|
|
4410
|
-
} else
|
|
4427
|
+
})) : Je(e.field, n, r, e.filter.checked, e.option);
|
|
4428
|
+
} else Re(e.field, e.filter);
|
|
4411
4429
|
n("suggestion-click", e);
|
|
4412
4430
|
},
|
|
4413
4431
|
removeAppliedFilter: (e, t, n) => {
|
|
4414
|
-
let r = n ??
|
|
4432
|
+
let r = n ?? q(e)?.type ?? "value";
|
|
4415
4433
|
if (r === "range" || !n && t === Eo) {
|
|
4416
|
-
|
|
4434
|
+
J(po(y.value, e, null, null, v.value, K(e) ?? q(e)?.colDef), "remove-filter", e, "range");
|
|
4417
4435
|
return;
|
|
4418
4436
|
}
|
|
4419
4437
|
if (r === "boolean" || !n && t === Do) {
|
|
4420
|
-
|
|
4438
|
+
J(uo(y.value, e, null, v.value, "boolean", K(e) ?? q(e)?.colDef), "remove-filter", e, "boolean");
|
|
4421
4439
|
return;
|
|
4422
4440
|
}
|
|
4423
4441
|
if (r === "exists" || !n && t === Oo) {
|
|
4424
|
-
|
|
4442
|
+
J(fo(y.value, e, !1, "text", v.value, K(e) ?? q(e)?.colDef), "remove-filter", e, "exists");
|
|
4425
4443
|
return;
|
|
4426
4444
|
}
|
|
4427
|
-
let i =
|
|
4445
|
+
let i = q(e);
|
|
4428
4446
|
if (r === "value" && i?.isAggregate) {
|
|
4429
4447
|
let e = _i(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Ii({
|
|
4430
4448
|
checked: !1,
|
|
@@ -4432,11 +4450,11 @@ function Ao(e, t, n) {
|
|
|
4432
4450
|
options: i.knownOptions ?? [],
|
|
4433
4451
|
state: n
|
|
4434
4452
|
}) : n.filter((e) => e.id !== t);
|
|
4435
|
-
|
|
4453
|
+
Le(i.key, r, "remove-filter");
|
|
4436
4454
|
return;
|
|
4437
4455
|
}
|
|
4438
4456
|
let a = (b.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
4439
|
-
|
|
4457
|
+
we(q(e)?.key ?? e, e, a), J(mo(y.value, e, a, v.value, K(e) ?? q(e)?.colDef), "remove-filter", e, "value");
|
|
4440
4458
|
}
|
|
4441
4459
|
};
|
|
4442
4460
|
}
|
|
@@ -4463,7 +4481,7 @@ var jo = ["aria-label"], Mo = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4463
4481
|
}, Bo = {
|
|
4464
4482
|
key: 0,
|
|
4465
4483
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
4466
|
-
}, Vo = { class: "pv-filter-panel-actions pv-flex" }, Ho = { class: "pv-filter-panel-actions pv-flex" }, Uo = { class: "pv-text-body-sm" }, Wo = { class: "pv-filter-panel-modal-footer pv-flex" }, Go = /* @__PURE__ */
|
|
4484
|
+
}, Vo = { class: "pv-filter-panel-actions pv-flex" }, Ho = { class: "pv-filter-panel-actions pv-flex" }, Uo = { class: "pv-text-body-sm" }, Wo = { class: "pv-filter-panel-modal-footer pv-flex" }, Go = /* @__PURE__ */ Ce(/* @__PURE__ */ d({
|
|
4467
4485
|
__name: "PvFilterPanel",
|
|
4468
4486
|
props: /* @__PURE__ */ _({
|
|
4469
4487
|
applyLabel: {
|
|
@@ -4601,31 +4619,31 @@ var jo = ["aria-label"], Mo = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4601
4619
|
"suggestion-click"
|
|
4602
4620
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
4603
4621
|
setup(e, { emit: n }) {
|
|
4604
|
-
let c = e, l = z(e, "filterModel"), d = z(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: ee, removeAppliedFilter: D } = Ao(c, l, f), k =
|
|
4622
|
+
let c = e, l = z(e, "filterModel"), d = z(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: x, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: ee, removeAppliedFilter: D } = Ao(c, l, f), k = j("filters"), A = j({}), P = j(null), F = j(!1), L = j(!1), te = (e) => e.colDef.context?.filterCollapsedByDefault === !0, ne = r(() => P.value === null ? p.value : p.value.filter((e) => e.category === P.value)), B = r(() => ne.value.filter((e) => !te(e))), V = r(() => ne.value.filter(te)), re = r(() => F.value ? [...B.value, ...V.value] : B.value), H = r(() => `${F.value ? "Hide" : "Show"} ${c.collapsedFilterDisplayLabel}`), U = r(() => k.value === "filters" && V.value.length > 0), ae = r(() => U.value || !c.readOnly && (g.value || c.staged)), se = r(() => re.value.map((e) => ({
|
|
4605
4623
|
...e,
|
|
4606
|
-
isOpen:
|
|
4607
|
-
}))),
|
|
4624
|
+
isOpen: A.value[e.key] ?? e.isOpen ?? !1
|
|
4625
|
+
}))), ce = r(() => [{
|
|
4608
4626
|
label: "Filters",
|
|
4609
4627
|
value: "filters"
|
|
4610
4628
|
}, {
|
|
4611
4629
|
label: `Applied (${h.value})`,
|
|
4612
4630
|
value: "applied"
|
|
4613
|
-
}]),
|
|
4631
|
+
}]), G = r(() => ({
|
|
4614
4632
|
"--flex-align": "stretch",
|
|
4615
4633
|
"--flex-gap": "0",
|
|
4616
4634
|
flex: `0 0 ${c.width}`,
|
|
4617
4635
|
minHeight: "0",
|
|
4618
4636
|
width: c.width
|
|
4619
|
-
})),
|
|
4637
|
+
})), le = (e) => {
|
|
4620
4638
|
(e === "filters" || e === "applied") && (k.value = e);
|
|
4621
|
-
},
|
|
4622
|
-
|
|
4639
|
+
}, K = (e, t) => {
|
|
4640
|
+
A.value[e.key] = t, f("open-change", e.key, t, e.colDef), t && v(e);
|
|
4641
|
+
}, ue = () => {
|
|
4642
|
+
L.value = !1;
|
|
4623
4643
|
}, de = () => {
|
|
4624
|
-
|
|
4644
|
+
x(), L.value = !1;
|
|
4625
4645
|
}, fe = () => {
|
|
4626
|
-
|
|
4627
|
-
}, pe = () => {
|
|
4628
|
-
I.value = !0;
|
|
4646
|
+
L.value = !0;
|
|
4629
4647
|
};
|
|
4630
4648
|
return (n, r) => (O(), o(t, null, [d.value ? a("v-if", !0) : (O(), o("div", {
|
|
4631
4649
|
key: 0,
|
|
@@ -4633,15 +4651,15 @@ var jo = ["aria-label"], Mo = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4633
4651
|
class: "pv-filter-panel pv-flex-vertical pv-surface pv-border-right",
|
|
4634
4652
|
"data-testid": "pv-filter-panel",
|
|
4635
4653
|
"aria-label": e.ariaLabel,
|
|
4636
|
-
style: S(
|
|
4654
|
+
style: S(G.value)
|
|
4637
4655
|
}, [
|
|
4638
4656
|
s("div", Mo, [u(ur, {
|
|
4639
4657
|
modelValue: k.value,
|
|
4640
|
-
options:
|
|
4658
|
+
options: ce.value,
|
|
4641
4659
|
class: "pv-filter-panel-mode-control",
|
|
4642
4660
|
size: "xl",
|
|
4643
|
-
"onUpdate:modelValue":
|
|
4644
|
-
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(
|
|
4661
|
+
"onUpdate:modelValue": le
|
|
4662
|
+
}, null, 8, ["modelValue", "options"]), e.hideCollapseButton ? a("v-if", !0) : (O(), i(J, {
|
|
4645
4663
|
key: 0,
|
|
4646
4664
|
ariaLabel: "Collapse filters",
|
|
4647
4665
|
leftIcon: "chevrons-left",
|
|
@@ -4649,39 +4667,39 @@ var jo = ["aria-label"], Mo = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4649
4667
|
variant: "secondary",
|
|
4650
4668
|
onClick: r[0] ||= (e) => d.value = !0
|
|
4651
4669
|
}))]),
|
|
4652
|
-
s("div", No, [
|
|
4653
|
-
!e.readOnly &&
|
|
4654
|
-
key:
|
|
4670
|
+
s("div", No, [oe(s("div", Po, [
|
|
4671
|
+
!e.readOnly && R(_).length ? (O(), o("section", Fo, [r[6] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", Io, [(O(!0), o(t, null, M(R(_), (e) => (O(), i(pr, {
|
|
4672
|
+
key: R(C)(e),
|
|
4655
4673
|
icon: e.icon,
|
|
4656
4674
|
"icon-classes": e.iconClasses,
|
|
4657
4675
|
label: e.label,
|
|
4658
|
-
onHandleClick: () =>
|
|
4676
|
+
onHandleClick: () => R(ee)(e)
|
|
4659
4677
|
}, null, 8, [
|
|
4660
4678
|
"icon",
|
|
4661
4679
|
"icon-classes",
|
|
4662
4680
|
"label",
|
|
4663
4681
|
"onHandleClick"
|
|
4664
4682
|
]))), 128))])])) : a("v-if", !0),
|
|
4665
|
-
|
|
4683
|
+
N(n.$slots, "suggestions", {}, void 0, !0),
|
|
4666
4684
|
u(wa, {
|
|
4667
|
-
modelValue:
|
|
4668
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
4685
|
+
modelValue: P.value,
|
|
4686
|
+
"onUpdate:modelValue": r[1] ||= (e) => P.value = e,
|
|
4669
4687
|
"category-order": e.categoryOrder,
|
|
4670
|
-
filters:
|
|
4688
|
+
filters: R(p)
|
|
4671
4689
|
}, null, 8, [
|
|
4672
4690
|
"modelValue",
|
|
4673
4691
|
"category-order",
|
|
4674
4692
|
"filters"
|
|
4675
4693
|
]),
|
|
4676
|
-
|
|
4694
|
+
R(p).length ? ne.value.length ? (O(), o("div", zo, [(O(!0), o(t, null, M(se.value, (e) => (O(), i(la, {
|
|
4677
4695
|
key: e.key,
|
|
4678
4696
|
filter: e,
|
|
4679
|
-
onFilterChange: (t) =>
|
|
4697
|
+
onFilterChange: (t) => R(w)(e.key, t),
|
|
4680
4698
|
onFocusChange: r[2] ||= (e, t, n) => f("focus-change", e, t, n),
|
|
4681
4699
|
onHandleSettingsIcon: r[3] ||= (e, t) => f("handle-settings-icon", e, t),
|
|
4682
|
-
onLoadMore: (t, n) =>
|
|
4683
|
-
onOpenChange: (t) =>
|
|
4684
|
-
onSearchChange: (t) =>
|
|
4700
|
+
onLoadMore: (t, n) => R(T)(e, t, n),
|
|
4701
|
+
onOpenChange: (t) => K(e, t),
|
|
4702
|
+
onSearchChange: (t) => R(E)(e, t)
|
|
4685
4703
|
}, null, 8, [
|
|
4686
4704
|
"filter",
|
|
4687
4705
|
"onFilterChange",
|
|
@@ -4689,53 +4707,53 @@ var jo = ["aria-label"], Mo = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
4689
4707
|
"onOpenChange",
|
|
4690
4708
|
"onSearchChange"
|
|
4691
4709
|
]))), 128))])) : (O(), o("div", Ro, " No filters in this category. ")) : (O(), o("div", Lo, " No filters available. "))
|
|
4692
|
-
], 512), [[
|
|
4693
|
-
"applied-count":
|
|
4694
|
-
"applied-groups":
|
|
4710
|
+
], 512), [[ie, k.value === "filters"]]), oe(u(_a, {
|
|
4711
|
+
"applied-count": R(h),
|
|
4712
|
+
"applied-groups": R(m),
|
|
4695
4713
|
"read-only": e.readOnly,
|
|
4696
|
-
onRemoveFilter:
|
|
4714
|
+
onRemoveFilter: R(D)
|
|
4697
4715
|
}, null, 8, [
|
|
4698
4716
|
"applied-count",
|
|
4699
4717
|
"applied-groups",
|
|
4700
4718
|
"read-only",
|
|
4701
4719
|
"onRemoveFilter"
|
|
4702
|
-
]), [[
|
|
4703
|
-
|
|
4720
|
+
]), [[ie, k.value === "applied"]])]),
|
|
4721
|
+
ae.value ? (O(), o("div", Bo, [s("div", Vo, [U.value ? (O(), i(J, {
|
|
4704
4722
|
key: 0,
|
|
4705
4723
|
class: "pv-text-brand",
|
|
4706
|
-
label:
|
|
4724
|
+
label: H.value,
|
|
4707
4725
|
variant: "ghost",
|
|
4708
|
-
onClick: r[4] ||= (e) =>
|
|
4709
|
-
}, null, 8, ["label"])) : a("v-if", !0)]), s("div", Ho, [
|
|
4726
|
+
onClick: r[4] ||= (e) => F.value = !F.value
|
|
4727
|
+
}, null, 8, ["label"])) : a("v-if", !0)]), s("div", Ho, [R(g) && !e.readOnly ? (O(), i(J, {
|
|
4710
4728
|
key: 0,
|
|
4711
4729
|
class: "pv-text-brand",
|
|
4712
4730
|
label: e.clearAllLabel,
|
|
4713
4731
|
variant: "ghost",
|
|
4714
|
-
onClick:
|
|
4715
|
-
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (O(), o(t, { key: 1 }, [u(
|
|
4732
|
+
onClick: fe
|
|
4733
|
+
}, null, 8, ["label"])) : a("v-if", !0), e.staged && !e.readOnly ? (O(), o(t, { key: 1 }, [u(J, {
|
|
4716
4734
|
label: e.cancelLabel,
|
|
4717
4735
|
variant: "ghost",
|
|
4718
|
-
onClick:
|
|
4719
|
-
}, null, 8, ["label", "onClick"]), u(
|
|
4736
|
+
onClick: R(b)
|
|
4737
|
+
}, null, 8, ["label", "onClick"]), u(J, {
|
|
4720
4738
|
label: e.applyLabel,
|
|
4721
4739
|
variant: "primary",
|
|
4722
|
-
onClick:
|
|
4740
|
+
onClick: R(y)
|
|
4723
4741
|
}, null, 8, ["label", "onClick"])], 64)) : a("v-if", !0)])])) : a("v-if", !0)
|
|
4724
|
-
], 12, jo)), u(
|
|
4725
|
-
modelValue:
|
|
4726
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
4742
|
+
], 12, jo)), u(Me, {
|
|
4743
|
+
modelValue: L.value,
|
|
4744
|
+
"onUpdate:modelValue": r[5] ||= (e) => L.value = e,
|
|
4727
4745
|
header: e.clearAllHeader,
|
|
4728
4746
|
style: { "--max-width": "440px" }
|
|
4729
4747
|
}, {
|
|
4730
|
-
body:
|
|
4731
|
-
footer:
|
|
4748
|
+
body: W(() => [s("p", Uo, I(e.clearAllBody), 1)]),
|
|
4749
|
+
footer: W(() => [s("div", Wo, [u(J, {
|
|
4732
4750
|
label: e.cancelLabel,
|
|
4733
4751
|
variant: "ghost",
|
|
4734
|
-
onClick:
|
|
4735
|
-
}, null, 8, ["label"]), u(
|
|
4752
|
+
onClick: ue
|
|
4753
|
+
}, null, 8, ["label"]), u(J, {
|
|
4736
4754
|
label: e.clearAllLabel,
|
|
4737
4755
|
variant: "primary",
|
|
4738
|
-
onClick:
|
|
4756
|
+
onClick: de
|
|
4739
4757
|
}, null, 8, ["label"])])]),
|
|
4740
4758
|
_: 1
|
|
4741
4759
|
}, 8, ["modelValue", "header"])], 64));
|
|
@@ -5073,15 +5091,15 @@ var Gs = {
|
|
|
5073
5091
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
5074
5092
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
5075
5093
|
if (Z(a) && o.transform !== "strict") {
|
|
5076
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Es(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Es(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Es(x, ["dark"]), w = y || {}, { dark: T } = w, E = Es(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {},
|
|
5077
|
-
s = this.transformCSS(e,
|
|
5078
|
-
...
|
|
5079
|
-
...
|
|
5080
|
-
...
|
|
5081
|
-
])], d = `${this.transformCSS(e, `${z}${V}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${
|
|
5094
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = Es(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = Es(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = Es(x, ["dark"]), w = y || {}, { dark: T } = w, E = Es(w, ["dark"]), ee = Z(t) ? this._toVariables({ primitive: t }, o) : {}, D = Z(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Z(C) ? this._toVariables({ light: C }, o) : {}, k = Z(S) ? this._toVariables({ dark: S }, o) : {}, A = Z(b) ? this._toVariables({ semantic: b }, o) : {}, j = Z(E) ? this._toVariables({ light: E }, o) : {}, M = Z(T) ? this._toVariables({ dark: T }, o) : {}, [N, P] = [ee.declarations ?? "", ee.tokens], [F, I] = [D.declarations ?? "", D.tokens || []], [L, R] = [O.declarations ?? "", O.tokens || []], [te, ne] = [k.declarations ?? "", k.tokens || []], [z, B] = [A.declarations ?? "", A.tokens || []], [V, re] = [j.declarations ?? "", j.tokens || []], [H, ie] = [M.declarations ?? "", M.tokens || []];
|
|
5095
|
+
s = this.transformCSS(e, N, "light", "variable", o, r, i), c = P, l = `${this.transformCSS(e, `${F}${L}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${te}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
5096
|
+
...I,
|
|
5097
|
+
...R,
|
|
5098
|
+
...ne
|
|
5099
|
+
])], d = `${this.transformCSS(e, `${z}${V}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${H}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
5082
5100
|
...B,
|
|
5083
5101
|
...re,
|
|
5084
|
-
...
|
|
5102
|
+
...ie
|
|
5085
5103
|
])], p = rs(a.css, { dt: Vs });
|
|
5086
5104
|
}
|
|
5087
5105
|
return {
|
|
@@ -5107,11 +5125,11 @@ var Gs = {
|
|
|
5107
5125
|
"colorScheme",
|
|
5108
5126
|
"extend",
|
|
5109
5127
|
"css"
|
|
5110
|
-
]), h = f || {}, { colorScheme: g } = h, _ = Es(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Es(v, ["dark"]), x = g || {}, { dark: S } = x, C = Es(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ws(ws({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ws(ws({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ws(ws({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [
|
|
5111
|
-
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r,
|
|
5128
|
+
]), h = f || {}, { colorScheme: g } = h, _ = Es(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = Es(v, ["dark"]), x = g || {}, { dark: S } = x, C = Es(x, ["dark"]), w = Z(m) ? this._toVariables({ [r]: ws(ws({}, m), _) }, n) : {}, T = Z(b) ? this._toVariables({ [r]: ws(ws({}, b), C) }, n) : {}, E = Z(y) ? this._toVariables({ [r]: ws(ws({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
5129
|
+
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
5112
5130
|
...D,
|
|
5113
5131
|
...k,
|
|
5114
|
-
...
|
|
5132
|
+
...j
|
|
5115
5133
|
])], l = rs(p, { dt: Vs });
|
|
5116
5134
|
}
|
|
5117
5135
|
return {
|
|
@@ -5470,7 +5488,7 @@ function $s(e) {
|
|
|
5470
5488
|
}
|
|
5471
5489
|
var ec = 0;
|
|
5472
5490
|
function tc(e) {
|
|
5473
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
5491
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = j(!1), r = j(e), i = j(null), a = hs() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++ec}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, k = function() {}, M = function(t) {
|
|
5474
5492
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5475
5493
|
if (s) {
|
|
5476
5494
|
var o = Ys(Ys({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
@@ -5481,12 +5499,12 @@ function tc(e) {
|
|
|
5481
5499
|
nonce: u
|
|
5482
5500
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), gs(i.value, "data-primevue-style-id", c), ms(i.value, o), i.value.onload = function(e) {
|
|
5483
5501
|
return ee?.(e, { name: c });
|
|
5484
|
-
}, C?.(c)), !n.value && (k =
|
|
5502
|
+
}, C?.(c)), !n.value && (k = U(r, function(e) {
|
|
5485
5503
|
i.value.textContent = e, T?.(c);
|
|
5486
5504
|
}, { immediate: !0 }), n.value = !0);
|
|
5487
5505
|
}
|
|
5488
5506
|
};
|
|
5489
|
-
return l && !d && $s(
|
|
5507
|
+
return l && !d && $s(M), {
|
|
5490
5508
|
id: h,
|
|
5491
5509
|
name: p,
|
|
5492
5510
|
el: i,
|
|
@@ -5494,8 +5512,8 @@ function tc(e) {
|
|
|
5494
5512
|
unload: function() {
|
|
5495
5513
|
!s || !n.value || (k(), fs(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5496
5514
|
},
|
|
5497
|
-
load:
|
|
5498
|
-
isLoaded:
|
|
5515
|
+
load: M,
|
|
5516
|
+
isLoaded: A(n)
|
|
5499
5517
|
};
|
|
5500
5518
|
}
|
|
5501
5519
|
//#endregion
|
|
@@ -5983,7 +6001,7 @@ function jc() {
|
|
|
5983
6001
|
}), Ac = [];
|
|
5984
6002
|
}
|
|
5985
6003
|
function Mc(e, t) {
|
|
5986
|
-
var n =
|
|
6004
|
+
var n = j(!1), r = function() {
|
|
5987
6005
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
5988
6006
|
var e, n = yc.getCommonTheme?.call(yc) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
5989
6007
|
yc.load(r?.css, Cc({ name: "primitive-variables" }, s)), yc.load(i?.css, Cc({ name: "semantic-variables" }, s)), yc.load(a?.css, Cc({ name: "global-variables" }, s)), yc.loadStyle(Cc({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
@@ -5992,7 +6010,7 @@ function Mc(e, t) {
|
|
|
5992
6010
|
Ds.on("theme:change", function(t) {
|
|
5993
6011
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
5994
6012
|
});
|
|
5995
|
-
var i =
|
|
6013
|
+
var i = U(t.config, function(e, t) {
|
|
5996
6014
|
bc.emit("config:change", {
|
|
5997
6015
|
newValue: e,
|
|
5998
6016
|
oldValue: t
|
|
@@ -6000,7 +6018,7 @@ function Mc(e, t) {
|
|
|
6000
6018
|
}, {
|
|
6001
6019
|
immediate: !0,
|
|
6002
6020
|
deep: !0
|
|
6003
|
-
}), a =
|
|
6021
|
+
}), a = U(function() {
|
|
6004
6022
|
return t.config.ripple;
|
|
6005
6023
|
}, function(e, t) {
|
|
6006
6024
|
bc.emit("config:ripple:change", {
|
|
@@ -6010,7 +6028,7 @@ function Mc(e, t) {
|
|
|
6010
6028
|
}, {
|
|
6011
6029
|
immediate: !0,
|
|
6012
6030
|
deep: !0
|
|
6013
|
-
}), o =
|
|
6031
|
+
}), o = U(function() {
|
|
6014
6032
|
return t.config.theme;
|
|
6015
6033
|
}, function(e, i) {
|
|
6016
6034
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, bc.emit("config:theme:change", {
|
|
@@ -6020,7 +6038,7 @@ function Mc(e, t) {
|
|
|
6020
6038
|
}, {
|
|
6021
6039
|
immediate: !0,
|
|
6022
6040
|
deep: !1
|
|
6023
|
-
}), s =
|
|
6041
|
+
}), s = U(function() {
|
|
6024
6042
|
return t.config.unstyled;
|
|
6025
6043
|
}, function(e, n) {
|
|
6026
6044
|
!e && t.config.theme && r(), bc.emit("config:unstyled:change", {
|