@turquoisehealth/pit-viper 2.240.3-dev.0 → 2.241.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +19 -0
- package/_site/assets/css/pit-viper-consumer.css +15 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +13 -0
- package/_site/assets/css/pit-viper-v2.css +19 -0
- package/_site/assets/css/pit-viper.css +15 -0
- 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-select-button-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +691 -687
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSortableList/PvSortableList.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +19 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +28 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1452 -1374
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +483 -479
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -4996,10 +4996,10 @@ var Ba = {
|
|
|
4996
4996
|
_: 3
|
|
4997
4997
|
}, 16, ["modelValue", "offset"]));
|
|
4998
4998
|
}
|
|
4999
|
-
}), No = {
|
|
4999
|
+
}), No = { class: "pv-popover-scroll" }, Po = {
|
|
5000
5000
|
key: 0,
|
|
5001
5001
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
5002
|
-
},
|
|
5002
|
+
}, Fo = /* @__PURE__ */ d({
|
|
5003
5003
|
__name: "PvSelectButton",
|
|
5004
5004
|
props: /* @__PURE__ */ g({
|
|
5005
5005
|
defaultOpen: { type: Boolean },
|
|
@@ -5144,48 +5144,52 @@ var Ba = {
|
|
|
5144
5144
|
"selectedOption"
|
|
5145
5145
|
])]),
|
|
5146
5146
|
content: q(() => [s("div", {
|
|
5147
|
-
class: "pv-popover",
|
|
5147
|
+
class: "pv-popover pv-popover-scrollable",
|
|
5148
5148
|
"data-test-id": "pv-popover",
|
|
5149
5149
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5150
|
-
}, [
|
|
5151
|
-
"
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5150
|
+
}, [s("div", No, [
|
|
5151
|
+
e.disableSearchInput ? a("", !0) : (D(), o("div", Po, [u(ui, {
|
|
5152
|
+
"model-value": m.value,
|
|
5153
|
+
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
5154
|
+
class: "pv-stack-4",
|
|
5155
|
+
placeholder: e.searchPlaceholder
|
|
5156
|
+
}, null, 8, ["model-value", "placeholder"])])),
|
|
5157
|
+
S.value.length > 0 ? (D(), i(wo, {
|
|
5158
|
+
key: 1,
|
|
5159
|
+
selectedItems: C.value,
|
|
5160
|
+
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
5161
|
+
options: S.value,
|
|
5162
|
+
config: l.value,
|
|
5163
|
+
queryText: e.highlightSearchText ? m.value : null,
|
|
5164
|
+
singleSelect: !0,
|
|
5165
|
+
disableDeselect: e.disableDeselect,
|
|
5166
|
+
childrenDisplay: e.childrenDisplay,
|
|
5167
|
+
onHandleSelected: w
|
|
5168
|
+
}, null, 8, [
|
|
5169
|
+
"selectedItems",
|
|
5170
|
+
"options",
|
|
5171
|
+
"config",
|
|
5172
|
+
"queryText",
|
|
5173
|
+
"disableDeselect",
|
|
5174
|
+
"childrenDisplay"
|
|
5175
|
+
])) : (D(), i(Na, { key: 2 })),
|
|
5176
|
+
j(t.$slots, "footer")
|
|
5177
|
+
])], 4)]),
|
|
5178
|
+
_: 3
|
|
5175
5179
|
}, 16, ["modelValue"]));
|
|
5176
5180
|
}
|
|
5177
|
-
}),
|
|
5181
|
+
}), Io = {
|
|
5178
5182
|
short: 5,
|
|
5179
5183
|
long: 7
|
|
5180
|
-
},
|
|
5181
|
-
if (n <=
|
|
5184
|
+
}, Lo = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
5185
|
+
if (n <= Io[e]) return Array.from({ length: n }, (e, t) => ({
|
|
5182
5186
|
page: t + 1,
|
|
5183
5187
|
label: (t + 1).toString()
|
|
5184
5188
|
}));
|
|
5185
5189
|
let r = [{
|
|
5186
5190
|
page: 1,
|
|
5187
5191
|
label: "1"
|
|
5188
|
-
}], i =
|
|
5192
|
+
}], i = Io[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
5189
5193
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
5190
5194
|
page: 0,
|
|
5191
5195
|
label: "..."
|
|
@@ -5204,11 +5208,11 @@ var Ba = {
|
|
|
5204
5208
|
page: n,
|
|
5205
5209
|
label: n.toString()
|
|
5206
5210
|
}), r;
|
|
5207
|
-
} }),
|
|
5211
|
+
} }), Ro = ["data-style"], zo = ["data-testid", "aria-current"], Bo = {
|
|
5208
5212
|
key: 0,
|
|
5209
5213
|
class: "dots-button",
|
|
5210
5214
|
disabled: ""
|
|
5211
|
-
},
|
|
5215
|
+
}, Vo = ["onClick"], Ho = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5212
5216
|
__name: "PvPagination",
|
|
5213
5217
|
props: /* @__PURE__ */ g({
|
|
5214
5218
|
size: { default: "lg" },
|
|
@@ -5221,7 +5225,7 @@ var Ba = {
|
|
|
5221
5225
|
}),
|
|
5222
5226
|
emits: ["update:modelValue"],
|
|
5223
5227
|
setup(e) {
|
|
5224
|
-
let { getPaginations: n } =
|
|
5228
|
+
let { getPaginations: n } = Lo({ variant: e.variant }), r = B(e, "modelValue");
|
|
5225
5229
|
return (i, a) => (D(), o("ol", {
|
|
5226
5230
|
role: "list",
|
|
5227
5231
|
class: "pv-pagination",
|
|
@@ -5243,10 +5247,10 @@ var Ba = {
|
|
|
5243
5247
|
key: e.page,
|
|
5244
5248
|
"data-testid": `pagination-button-${e.page}`,
|
|
5245
5249
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
5246
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
5250
|
+
}, [e.label === "..." ? (D(), o("button", Bo, I(e.label), 1)) : (D(), o("button", {
|
|
5247
5251
|
key: 1,
|
|
5248
5252
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
5249
|
-
}, I(e.label), 9,
|
|
5253
|
+
}, I(e.label), 9, Vo))], 8, zo))), 128)),
|
|
5250
5254
|
s("li", null, [u($, {
|
|
5251
5255
|
"data-testid": "pagination-right-arrow-icon",
|
|
5252
5256
|
disabled: r.value === e.maxPages,
|
|
@@ -5255,14 +5259,14 @@ var Ba = {
|
|
|
5255
5259
|
variant: "ghost",
|
|
5256
5260
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
5257
5261
|
}, null, 8, ["disabled"])])
|
|
5258
|
-
], 8,
|
|
5262
|
+
], 8, Ro));
|
|
5259
5263
|
}
|
|
5260
|
-
}), [["__scopeId", "data-v-cfa4cb54"]]),
|
|
5264
|
+
}), [["__scopeId", "data-v-cfa4cb54"]]), Uo = ["for"], Wo = [
|
|
5261
5265
|
"checked",
|
|
5262
5266
|
"type",
|
|
5263
5267
|
"value",
|
|
5264
5268
|
"id"
|
|
5265
|
-
],
|
|
5269
|
+
], Go = /* @__PURE__ */ d({
|
|
5266
5270
|
__name: "PvSelectableCard",
|
|
5267
5271
|
props: {
|
|
5268
5272
|
variant: { default: "default" },
|
|
@@ -5284,34 +5288,34 @@ var Ba = {
|
|
|
5284
5288
|
type: e.deselect ? "checkbox" : "radio",
|
|
5285
5289
|
value: e.value,
|
|
5286
5290
|
id: t.value
|
|
5287
|
-
}, null, 8,
|
|
5291
|
+
}, null, 8, Wo), j(n.$slots, "default")], 10, Uo));
|
|
5288
5292
|
}
|
|
5289
|
-
}),
|
|
5293
|
+
}), Ko = { class: "pv-layout-two-sidebar" }, qo = ["data-hidden"], Jo = { "data-layout": "main-section" }, Yo = ["data-hidden"], Xo = /* @__PURE__ */ d({
|
|
5290
5294
|
__name: "PvSidePanel",
|
|
5291
5295
|
props: {
|
|
5292
5296
|
showLeftSidebar: { type: Boolean },
|
|
5293
5297
|
showRightSidebar: { type: Boolean }
|
|
5294
5298
|
},
|
|
5295
5299
|
setup(e) {
|
|
5296
|
-
return (t, n) => (D(), o("div",
|
|
5300
|
+
return (t, n) => (D(), o("div", Ko, [
|
|
5297
5301
|
s("div", {
|
|
5298
5302
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
5299
5303
|
"data-testid": "pv-side-panel-left",
|
|
5300
5304
|
"data-layout": "left-sidebar"
|
|
5301
|
-
}, [j(t.$slots, "left-sidebar")], 8,
|
|
5302
|
-
s("div",
|
|
5305
|
+
}, [j(t.$slots, "left-sidebar")], 8, qo),
|
|
5306
|
+
s("div", Jo, [j(t.$slots, "main")]),
|
|
5303
5307
|
s("div", {
|
|
5304
5308
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
5305
5309
|
"data-testid": "pv-side-panel-right",
|
|
5306
5310
|
"data-layout": "right-sidebar"
|
|
5307
|
-
}, [j(t.$slots, "right-sidebar")], 8,
|
|
5311
|
+
}, [j(t.$slots, "right-sidebar")], 8, Yo)
|
|
5308
5312
|
]));
|
|
5309
5313
|
}
|
|
5310
|
-
}),
|
|
5314
|
+
}), Zo = ["data-style"], Qo = [
|
|
5311
5315
|
"placeholder",
|
|
5312
5316
|
"disabled",
|
|
5313
5317
|
"name"
|
|
5314
|
-
],
|
|
5318
|
+
], $o = /* @__PURE__ */ d({
|
|
5315
5319
|
__name: "PvGhostInput",
|
|
5316
5320
|
props: /* @__PURE__ */ g({
|
|
5317
5321
|
variant: { default: "h1" },
|
|
@@ -5373,7 +5377,7 @@ var Ba = {
|
|
|
5373
5377
|
placeholder: e.placeholder,
|
|
5374
5378
|
disabled: e.disabled,
|
|
5375
5379
|
name: n[e.variant]
|
|
5376
|
-
}), null, 16,
|
|
5380
|
+
}), null, 16, Qo), [[G, l.value]]),
|
|
5377
5381
|
e.showEditIcon ? (D(), i($, {
|
|
5378
5382
|
key: 0,
|
|
5379
5383
|
"left-icon": "edit",
|
|
@@ -5381,12 +5385,12 @@ var Ba = {
|
|
|
5381
5385
|
variant: "ghost",
|
|
5382
5386
|
onClick: d
|
|
5383
5387
|
})) : a("", !0)
|
|
5384
|
-
], 8,
|
|
5388
|
+
], 8, Zo));
|
|
5385
5389
|
}
|
|
5386
|
-
}),
|
|
5390
|
+
}), es = {
|
|
5387
5391
|
key: 0,
|
|
5388
5392
|
class: "pv-heading-2"
|
|
5389
|
-
},
|
|
5393
|
+
}, ts = ["id"], ns = { class: "pv-flex" }, rs = ["id"], is = /* @__PURE__ */ d({
|
|
5390
5394
|
__name: "PvHeader",
|
|
5391
5395
|
props: {
|
|
5392
5396
|
as: { default: "div" },
|
|
@@ -5414,14 +5418,14 @@ var Ba = {
|
|
|
5414
5418
|
"background-color": "#fdfdfc"
|
|
5415
5419
|
}
|
|
5416
5420
|
}, {
|
|
5417
|
-
default: q(() => [e.title ? (D(), o("span",
|
|
5421
|
+
default: q(() => [e.title ? (D(), o("span", es, I(e.title), 1)) : (D(), o("div", {
|
|
5418
5422
|
key: 1,
|
|
5419
5423
|
id: e.headerTitleId,
|
|
5420
5424
|
class: "pv-flex"
|
|
5421
|
-
}, [j(r.$slots, "left")], 8,
|
|
5425
|
+
}, [j(r.$slots, "left")], 8, ts)), s("div", ns, [s("div", {
|
|
5422
5426
|
id: e.headerActionsId,
|
|
5423
5427
|
class: "pv-flex"
|
|
5424
|
-
}, [j(r.$slots, "right")], 8,
|
|
5428
|
+
}, [j(r.$slots, "right")], 8, rs), e.showAskTqButton ? (D(), o("div", {
|
|
5425
5429
|
key: 0,
|
|
5426
5430
|
class: y({ "pv-border-left": L(n) }),
|
|
5427
5431
|
style: { "padding-inline-start": "0.5rem" }
|
|
@@ -5434,7 +5438,7 @@ var Ba = {
|
|
|
5434
5438
|
_: 3
|
|
5435
5439
|
}, 8, ["class"]));
|
|
5436
5440
|
}
|
|
5437
|
-
}),
|
|
5441
|
+
}), as = ["data-more"], os = ["src", "alt"], ss = /* @__PURE__ */ d({
|
|
5438
5442
|
__name: "PvAvatarGroup",
|
|
5439
5443
|
props: {
|
|
5440
5444
|
items: {},
|
|
@@ -5463,18 +5467,18 @@ var Ba = {
|
|
|
5463
5467
|
key: 1,
|
|
5464
5468
|
src: e.image,
|
|
5465
5469
|
alt: e.alt ?? ""
|
|
5466
|
-
}, null, 8,
|
|
5470
|
+
}, null, 8, os)) : (D(), o("div", {
|
|
5467
5471
|
key: 2,
|
|
5468
5472
|
class: y(c.value)
|
|
5469
|
-
}, null, 2))]))), 128))], 10,
|
|
5473
|
+
}, null, 2))]))), 128))], 10, as));
|
|
5470
5474
|
}
|
|
5471
|
-
}),
|
|
5475
|
+
}), cs = { class: "pv-flex" }, ls = [
|
|
5472
5476
|
"name",
|
|
5473
5477
|
"value",
|
|
5474
5478
|
"checked",
|
|
5475
5479
|
"disabled",
|
|
5476
5480
|
"onChange"
|
|
5477
|
-
],
|
|
5481
|
+
], us = { key: 1 }, ds = /* @__PURE__ */ d({
|
|
5478
5482
|
__name: "PvToggleGroup",
|
|
5479
5483
|
props: /* @__PURE__ */ g({
|
|
5480
5484
|
disabled: { type: Boolean },
|
|
@@ -5496,7 +5500,7 @@ var Ba = {
|
|
|
5496
5500
|
r.value = e;
|
|
5497
5501
|
}
|
|
5498
5502
|
};
|
|
5499
|
-
return (n, u) => (D(), o("div",
|
|
5503
|
+
return (n, u) => (D(), o("div", cs, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
5500
5504
|
key: t.value,
|
|
5501
5505
|
description: e.hideLabels ? t.label : ""
|
|
5502
5506
|
}, {
|
|
@@ -5509,21 +5513,21 @@ var Ba = {
|
|
|
5509
5513
|
class: "pv-radio",
|
|
5510
5514
|
disabled: e.disabled || t.disabled,
|
|
5511
5515
|
onChange: (e) => l(t)
|
|
5512
|
-
}, null, 40,
|
|
5516
|
+
}, null, 40, ls),
|
|
5513
5517
|
t.icon ? (D(), i(Q, {
|
|
5514
5518
|
key: 0,
|
|
5515
5519
|
name: t.icon
|
|
5516
5520
|
}, null, 8, ["name"])) : a("", !0),
|
|
5517
|
-
e.hideLabels ? a("", !0) : (D(), o("span",
|
|
5521
|
+
e.hideLabels ? a("", !0) : (D(), o("span", us, I(t.label), 1))
|
|
5518
5522
|
], 2)]),
|
|
5519
5523
|
_: 2
|
|
5520
5524
|
}, 1032, ["description"]))), 128))]));
|
|
5521
5525
|
}
|
|
5522
|
-
}),
|
|
5526
|
+
}), fs = [
|
|
5523
5527
|
"aria-label",
|
|
5524
5528
|
"disabled",
|
|
5525
5529
|
"indeterminate"
|
|
5526
|
-
],
|
|
5530
|
+
], ps = /* @__PURE__ */ d({
|
|
5527
5531
|
__name: "PvCheckbox",
|
|
5528
5532
|
props: /* @__PURE__ */ g({
|
|
5529
5533
|
ariaLabel: {},
|
|
@@ -5544,13 +5548,13 @@ var Ba = {
|
|
|
5544
5548
|
"aria-label": e.ariaLabel,
|
|
5545
5549
|
disabled: e.disabled,
|
|
5546
5550
|
indeterminate: e.indeterminate
|
|
5547
|
-
}, null, 8,
|
|
5551
|
+
}, null, 8, fs)), [[ee, t.value]]);
|
|
5548
5552
|
}
|
|
5549
|
-
}),
|
|
5553
|
+
}), ms = ["aria-label", "aria-labelledby"], hs = ["id"], gs = [
|
|
5550
5554
|
"name",
|
|
5551
5555
|
"value",
|
|
5552
5556
|
"disabled"
|
|
5553
|
-
],
|
|
5557
|
+
], _s = /* @__PURE__ */ d({
|
|
5554
5558
|
__name: "PvRadioGroup",
|
|
5555
5559
|
props: /* @__PURE__ */ g({
|
|
5556
5560
|
ariaLabel: {},
|
|
@@ -5581,7 +5585,7 @@ var Ba = {
|
|
|
5581
5585
|
key: 0,
|
|
5582
5586
|
id: L(u),
|
|
5583
5587
|
class: "pv-label pv-stack-8"
|
|
5584
|
-
}, I(e.label), 9,
|
|
5588
|
+
}, I(e.label), 9, hs)) : a("", !0), s("div", {
|
|
5585
5589
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
5586
5590
|
style: x(f.value)
|
|
5587
5591
|
}, [(D(!0), o(t, null, A(e.options, (t) => (D(), o("label", {
|
|
@@ -5594,9 +5598,9 @@ var Ba = {
|
|
|
5594
5598
|
name: d.value,
|
|
5595
5599
|
value: t.value,
|
|
5596
5600
|
disabled: e.disabled || t.disabled
|
|
5597
|
-
}, null, 8,
|
|
5601
|
+
}, null, 8, gs), [[W, i.value]]), l(" " + I(t.label), 1)]))), 128))], 6)], 8, ms));
|
|
5598
5602
|
}
|
|
5599
|
-
}),
|
|
5603
|
+
}), vs = /* @__PURE__ */ d({
|
|
5600
5604
|
__name: "PvSprite",
|
|
5601
5605
|
props: {
|
|
5602
5606
|
src: {},
|
|
@@ -5617,7 +5621,7 @@ var Ba = {
|
|
|
5617
5621
|
id: "pv-sprite-content"
|
|
5618
5622
|
}, null, -1)]));
|
|
5619
5623
|
}
|
|
5620
|
-
}),
|
|
5624
|
+
}), ys = /* @__PURE__ */ d({
|
|
5621
5625
|
__name: "PvSkeleton",
|
|
5622
5626
|
props: {
|
|
5623
5627
|
size: { default: "md" },
|
|
@@ -5644,18 +5648,18 @@ var Ba = {
|
|
|
5644
5648
|
"width"
|
|
5645
5649
|
]));
|
|
5646
5650
|
}
|
|
5647
|
-
}),
|
|
5651
|
+
}), bs = ["for"], xs = {
|
|
5648
5652
|
key: 0,
|
|
5649
5653
|
class: "pv-surface-accent pv-inset-square pv-text-body-md pv-radius pv-bordered",
|
|
5650
5654
|
style: { "--inset-size": "6px 10px" }
|
|
5651
|
-
},
|
|
5655
|
+
}, Ss = { class: "pv-relative pv-flex-item" }, Cs = [
|
|
5652
5656
|
"disabled",
|
|
5653
5657
|
"type",
|
|
5654
5658
|
"placeholder",
|
|
5655
5659
|
"id",
|
|
5656
5660
|
"data-invalid",
|
|
5657
5661
|
"step"
|
|
5658
|
-
],
|
|
5662
|
+
], ws = /* @__PURE__ */ d({
|
|
5659
5663
|
__name: "PvInput",
|
|
5660
5664
|
props: /* @__PURE__ */ g({
|
|
5661
5665
|
showLabel: { type: Boolean },
|
|
@@ -5682,8 +5686,8 @@ var Ba = {
|
|
|
5682
5686
|
"data-testid": "pv-input-label",
|
|
5683
5687
|
class: "pv-label pv-stack-8",
|
|
5684
5688
|
for: e.id
|
|
5685
|
-
}, [j(n.$slots, "label")], 8,
|
|
5686
|
-
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div",
|
|
5689
|
+
}, [j(n.$slots, "label")], 8, bs)) : a("", !0),
|
|
5690
|
+
s("div", { class: y(["pv-flex pv-flex-item", { "pv-stack-8": e.lowerLabel }]) }, [e.prefixLabel ? (D(), o("div", xs, I(e.prefixLabel), 1)) : a("", !0), s("div", Ss, [e.inputIcon ? (D(), i(Q, {
|
|
5687
5691
|
key: 0,
|
|
5688
5692
|
class: "pv-absolute input-icon-position",
|
|
5689
5693
|
name: e.inputIcon
|
|
@@ -5701,7 +5705,7 @@ var Ba = {
|
|
|
5701
5705
|
id: e.id,
|
|
5702
5706
|
"data-invalid": e.error ? !0 : void 0,
|
|
5703
5707
|
step: e.step
|
|
5704
|
-
}), null, 16,
|
|
5708
|
+
}), null, 16, Cs), [[U, c.value]])])], 2),
|
|
5705
5709
|
e.lowerLabel ? (D(), o("p", {
|
|
5706
5710
|
key: 1,
|
|
5707
5711
|
"data-testid": "pv-input-lower-label",
|
|
@@ -5713,15 +5717,15 @@ var Ba = {
|
|
|
5713
5717
|
}, I(e.lowerLabel), 3)) : a("", !0)
|
|
5714
5718
|
], 64));
|
|
5715
5719
|
}
|
|
5716
|
-
}),
|
|
5720
|
+
}), Ts = { class: "pv-stack-8" }, Es = { class: "pv-input-file" }, Ds = [
|
|
5717
5721
|
"id",
|
|
5718
5722
|
"accept",
|
|
5719
5723
|
"disabled",
|
|
5720
5724
|
"multiple"
|
|
5721
|
-
],
|
|
5725
|
+
], Os = ["for"], ks = {
|
|
5722
5726
|
key: 0,
|
|
5723
5727
|
class: "pv-stack-8"
|
|
5724
|
-
},
|
|
5728
|
+
}, As = { class: "pv-flex-item pv-truncate pv-text-body-sm" }, js = /* @__PURE__ */ d({
|
|
5725
5729
|
__name: "PvFileInput",
|
|
5726
5730
|
props: /* @__PURE__ */ g({
|
|
5727
5731
|
helperText: {},
|
|
@@ -5747,7 +5751,7 @@ var Ba = {
|
|
|
5747
5751
|
}, m = (e) => {
|
|
5748
5752
|
d.value = d.value.filter((t) => t !== e);
|
|
5749
5753
|
}, h = r(() => !c.showSelectedFile || d.value.length === 0 ? c.helperText : d.value.length === 1 ? d.value[0].name : `${d.value.length} files selected`);
|
|
5750
|
-
return (n, r) => (D(), o("div",
|
|
5754
|
+
return (n, r) => (D(), o("div", Ts, [s("div", Es, [
|
|
5751
5755
|
s("input", {
|
|
5752
5756
|
id: L(f),
|
|
5753
5757
|
type: "file",
|
|
@@ -5756,11 +5760,11 @@ var Ba = {
|
|
|
5756
5760
|
disabled: e.disabled,
|
|
5757
5761
|
multiple: e.multiple,
|
|
5758
5762
|
onChange: p
|
|
5759
|
-
}, null, 40,
|
|
5763
|
+
}, null, 40, Ds),
|
|
5760
5764
|
s("label", {
|
|
5761
5765
|
for: L(f),
|
|
5762
5766
|
class: "pv-label"
|
|
5763
|
-
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8,
|
|
5767
|
+
}, [...r[1] ||= [s("span", { class: "pv-button-primary pv-button-large" }, "Choose File", -1)]], 8, Os),
|
|
5764
5768
|
s("p", { class: y(["pv-text-body-sm", e.showSelectedFile && d.value.length ? "pv-flex-item pv-truncate" : "pv-text-subdued"]) }, I(h.value), 3),
|
|
5765
5769
|
e.showSelectedFile && d.value.length === 1 ? (D(), i($, {
|
|
5766
5770
|
key: 0,
|
|
@@ -5770,10 +5774,10 @@ var Ba = {
|
|
|
5770
5774
|
"aria-label": "Remove file",
|
|
5771
5775
|
onClick: r[0] ||= (e) => m(d.value[0])
|
|
5772
5776
|
})) : a("", !0)
|
|
5773
|
-
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul",
|
|
5777
|
+
]), e.showSelectedFile && d.value.length > 1 ? (D(), o("ul", ks, [(D(!0), o(t, null, A(d.value, (e) => (D(), o("li", {
|
|
5774
5778
|
key: e.name,
|
|
5775
5779
|
class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between pv-inset-square"
|
|
5776
|
-
}, [s("p",
|
|
5780
|
+
}, [s("p", As, I(e.name), 1), u($, {
|
|
5777
5781
|
"left-icon": "trash",
|
|
5778
5782
|
variant: "destructive",
|
|
5779
5783
|
size: "md",
|
|
@@ -5781,7 +5785,7 @@ var Ba = {
|
|
|
5781
5785
|
onClick: (t) => m(e)
|
|
5782
5786
|
}, null, 8, ["onClick"])]))), 128))])) : a("", !0)]));
|
|
5783
5787
|
}
|
|
5784
|
-
}),
|
|
5788
|
+
}), Ms = ["data-rating"], Ns = ["value"], Ps = /* @__PURE__ */ d({
|
|
5785
5789
|
__name: "PvRating",
|
|
5786
5790
|
props: {
|
|
5787
5791
|
variant: { default: "dot" },
|
|
@@ -5800,18 +5804,18 @@ var Ba = {
|
|
|
5800
5804
|
min: "0",
|
|
5801
5805
|
max: "5",
|
|
5802
5806
|
value: e.value
|
|
5803
|
-
}, "4.0 stars", 8,
|
|
5807
|
+
}, "4.0 stars", 8, Ns)], 12, Ms));
|
|
5804
5808
|
}
|
|
5805
|
-
}),
|
|
5809
|
+
}), Fs = {
|
|
5806
5810
|
key: 0,
|
|
5807
5811
|
class: "pv-flex pv-full-width"
|
|
5808
|
-
},
|
|
5812
|
+
}, Is = { class: "pv-flex-item pv-truncate" }, Ls = { class: "pv-card-hover-action__action pv-flex" }, Rs = {
|
|
5809
5813
|
key: 1,
|
|
5810
5814
|
class: "pv-flex pv-full-width"
|
|
5811
|
-
},
|
|
5815
|
+
}, zs = { class: "pv-flex-item pv-truncate" }, Bs = { class: "pv-card-hover-action__action pv-flex" }, Vs = {
|
|
5812
5816
|
key: 2,
|
|
5813
5817
|
class: "pv-flex pv-full-width"
|
|
5814
|
-
},
|
|
5818
|
+
}, Hs = { class: "pv-flex-item pv-truncate" }, Us = { class: "pv-card-hover-action__action pv-flex" }, Ws = /* @__PURE__ */ d({
|
|
5815
5819
|
__name: "PvCard",
|
|
5816
5820
|
props: {
|
|
5817
5821
|
href: {},
|
|
@@ -5847,9 +5851,9 @@ var Ba = {
|
|
|
5847
5851
|
"data-testid": "pv-card"
|
|
5848
5852
|
}, {
|
|
5849
5853
|
default: q(() => [c.value ? (D(), o(t, { key: 0 }, [
|
|
5850
|
-
e.headerAction ? (D(), o("div",
|
|
5851
|
-
e.descriptionAction ? (D(), o("div",
|
|
5852
|
-
e.footerAction ? (D(), o("div",
|
|
5854
|
+
e.headerAction ? (D(), o("div", Fs, [s("div", Is, [j(n.$slots, "header")]), s("div", Ls, [j(n.$slots, "header-action")])])) : a("", !0),
|
|
5855
|
+
e.descriptionAction ? (D(), o("div", Rs, [s("div", zs, [j(n.$slots, "description")]), s("div", Bs, [j(n.$slots, "description-action")])])) : a("", !0),
|
|
5856
|
+
e.footerAction ? (D(), o("div", Vs, [s("div", Hs, [j(n.$slots, "footer")]), s("div", Us, [j(n.$slots, "footer-action")])])) : a("", !0)
|
|
5853
5857
|
], 64)) : j(n.$slots, "default", { key: 1 })]),
|
|
5854
5858
|
_: 3
|
|
5855
5859
|
}, 8, [
|
|
@@ -5859,34 +5863,34 @@ var Ba = {
|
|
|
5859
5863
|
"style"
|
|
5860
5864
|
]));
|
|
5861
5865
|
}
|
|
5862
|
-
}),
|
|
5866
|
+
}), Gs = /* @__PURE__ */ d({
|
|
5863
5867
|
__name: "PvWidget",
|
|
5864
5868
|
setup(e) {
|
|
5865
|
-
return (e, t) => (D(), i(
|
|
5869
|
+
return (e, t) => (D(), i(Ws, { class: "pv-inset-square-16" }, {
|
|
5866
5870
|
default: q(() => [j(e.$slots, "default")]),
|
|
5867
5871
|
_: 3
|
|
5868
5872
|
}));
|
|
5869
5873
|
}
|
|
5870
|
-
}),
|
|
5874
|
+
}), Ks = {
|
|
5871
5875
|
class: "pv-flex-vertical",
|
|
5872
5876
|
style: {
|
|
5873
5877
|
"--flex-align": "flex-start",
|
|
5874
5878
|
"--flex-gap": "0.25rem"
|
|
5875
5879
|
}
|
|
5876
|
-
},
|
|
5880
|
+
}, qs = {
|
|
5877
5881
|
key: 0,
|
|
5878
5882
|
class: "pv-flex",
|
|
5879
5883
|
style: { "--flex-gap": "0.25rem" }
|
|
5880
|
-
},
|
|
5884
|
+
}, Js = { class: "pv-text-body-sm" }, Ys = {
|
|
5881
5885
|
key: 1,
|
|
5882
5886
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
5883
|
-
},
|
|
5887
|
+
}, Xs = {
|
|
5884
5888
|
key: 2,
|
|
5885
5889
|
class: "pv-heading-2"
|
|
5886
|
-
},
|
|
5890
|
+
}, Zs = {
|
|
5887
5891
|
key: 3,
|
|
5888
5892
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
5889
|
-
},
|
|
5893
|
+
}, Qs = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5890
5894
|
__name: "PvInsightCard",
|
|
5891
5895
|
props: {
|
|
5892
5896
|
icon: { default: "ai" },
|
|
@@ -5906,22 +5910,22 @@ var Ba = {
|
|
|
5906
5910
|
emits: ["click", "icon-click"],
|
|
5907
5911
|
setup(e) {
|
|
5908
5912
|
let t = e, n = r(() => t.icon || t.insight);
|
|
5909
|
-
return (t, r) => (D(), i(
|
|
5913
|
+
return (t, r) => (D(), i(Ws, {
|
|
5910
5914
|
variant: "secondary",
|
|
5911
5915
|
interactive: e.interactive,
|
|
5912
5916
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
5913
5917
|
class: "pv-relative"
|
|
5914
5918
|
}, {
|
|
5915
|
-
default: q(() => [s("div",
|
|
5916
|
-
n.value ? (D(), o("div",
|
|
5919
|
+
default: q(() => [s("div", Ks, [
|
|
5920
|
+
n.value ? (D(), o("div", qs, [e.icon ? (D(), i(Q, {
|
|
5917
5921
|
key: 0,
|
|
5918
5922
|
style: { color: "#218c88" },
|
|
5919
5923
|
name: e.icon,
|
|
5920
5924
|
size: 12
|
|
5921
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
5922
|
-
e.upperLabel ? (D(), o("span",
|
|
5923
|
-
e.title ? (D(), o("span",
|
|
5924
|
-
e.description ? (D(), o("span",
|
|
5925
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Js, I(e.insight), 1)])) : a("", !0),
|
|
5926
|
+
e.upperLabel ? (D(), o("span", Ys, I(e.upperLabel), 1)) : a("", !0),
|
|
5927
|
+
e.title ? (D(), o("span", Xs, I(e.title), 1)) : a("", !0),
|
|
5928
|
+
e.description ? (D(), o("span", Zs, I(e.description), 1)) : a("", !0)
|
|
5925
5929
|
]), e.showButton ? (D(), i($, {
|
|
5926
5930
|
key: 0,
|
|
5927
5931
|
"left-icon": "new-tab",
|
|
@@ -5934,7 +5938,7 @@ var Ba = {
|
|
|
5934
5938
|
_: 1
|
|
5935
5939
|
}, 8, ["interactive"]));
|
|
5936
5940
|
}
|
|
5937
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
5941
|
+
}), [["__scopeId", "data-v-c1185c07"]]), $s = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
5938
5942
|
__name: "PvExpandableContent",
|
|
5939
5943
|
props: {
|
|
5940
5944
|
lines: { default: 4 },
|
|
@@ -5988,7 +5992,7 @@ var Ba = {
|
|
|
5988
5992
|
"left-icon": l.value ? "chevron-up" : "chevron-down"
|
|
5989
5993
|
}, null, 8, ["label", "left-icon"])) : a("", !0)], 6));
|
|
5990
5994
|
}
|
|
5991
|
-
}), [["__scopeId", "data-v-fc5fc7e0"]]),
|
|
5995
|
+
}), [["__scopeId", "data-v-fc5fc7e0"]]), ec = { class: "pv-text-body-md" }, tc = /* @__PURE__ */ d({
|
|
5992
5996
|
__name: "PvToast",
|
|
5993
5997
|
props: {
|
|
5994
5998
|
variant: { default: "info" },
|
|
@@ -6013,7 +6017,7 @@ var Ba = {
|
|
|
6013
6017
|
name: e.icon ? e.icon : n[e.variant],
|
|
6014
6018
|
size: 20
|
|
6015
6019
|
}, null, 8, ["name"]),
|
|
6016
|
-
s("p",
|
|
6020
|
+
s("p", ec, I(e.label), 1),
|
|
6017
6021
|
j(r.$slots, "default"),
|
|
6018
6022
|
u($, {
|
|
6019
6023
|
variant: "ghost",
|
|
@@ -6025,29 +6029,29 @@ var Ba = {
|
|
|
6025
6029
|
}, null, 8, ["inverse"])
|
|
6026
6030
|
], 2));
|
|
6027
6031
|
}
|
|
6028
|
-
}),
|
|
6032
|
+
}), nc = ["data-style"], rc = /* @__PURE__ */ d({
|
|
6029
6033
|
__name: "PvActionBar",
|
|
6030
6034
|
props: { variant: { default: "white" } },
|
|
6031
6035
|
setup(e) {
|
|
6032
6036
|
return (t, n) => (D(), o("div", {
|
|
6033
6037
|
class: "pv-action-bar-container",
|
|
6034
6038
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
6035
|
-
}, [j(t.$slots, "default")], 8,
|
|
6039
|
+
}, [j(t.$slots, "default")], 8, nc));
|
|
6036
6040
|
}
|
|
6037
|
-
}),
|
|
6041
|
+
}), ic = {
|
|
6038
6042
|
class: "pv-flex pv-truncate",
|
|
6039
6043
|
style: {
|
|
6040
6044
|
"min-width": "0",
|
|
6041
6045
|
"min-height": "20px"
|
|
6042
6046
|
}
|
|
6043
|
-
},
|
|
6047
|
+
}, ac = ["title"], oc = /* @__PURE__ */ d({
|
|
6044
6048
|
__name: "PvSimpleItemTree",
|
|
6045
6049
|
props: {
|
|
6046
6050
|
label: {},
|
|
6047
6051
|
icon: {}
|
|
6048
6052
|
},
|
|
6049
6053
|
setup(e) {
|
|
6050
|
-
return (t, n) => (D(), o("div",
|
|
6054
|
+
return (t, n) => (D(), o("div", ic, [e.icon ? (D(), i(Q, {
|
|
6051
6055
|
key: 0,
|
|
6052
6056
|
name: e.icon
|
|
6053
6057
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -6057,9 +6061,9 @@ var Ba = {
|
|
|
6057
6061
|
"min-width": "0"
|
|
6058
6062
|
},
|
|
6059
6063
|
title: e.label
|
|
6060
|
-
}, I(e.label), 9,
|
|
6064
|
+
}, I(e.label), 9, ac)]));
|
|
6061
6065
|
}
|
|
6062
|
-
}),
|
|
6066
|
+
}), sc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6063
6067
|
__name: "PvTreeReorderIcon",
|
|
6064
6068
|
setup(e) {
|
|
6065
6069
|
return (e, t) => (D(), i(Q, {
|
|
@@ -6067,7 +6071,7 @@ var Ba = {
|
|
|
6067
6071
|
class: "reorder-icon pv-text-tertiary"
|
|
6068
6072
|
}));
|
|
6069
6073
|
}
|
|
6070
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
6074
|
+
}), [["__scopeId", "data-v-1efb9068"]]), cc = /* @__PURE__ */ d({
|
|
6071
6075
|
__name: "PvButtonTreeItem",
|
|
6072
6076
|
props: {
|
|
6073
6077
|
selected: { type: Boolean },
|
|
@@ -6102,7 +6106,7 @@ var Ba = {
|
|
|
6102
6106
|
_: 3
|
|
6103
6107
|
}, 8, ["class"]));
|
|
6104
6108
|
}
|
|
6105
|
-
}),
|
|
6109
|
+
}), lc = /* @__PURE__ */ d({
|
|
6106
6110
|
__name: "PvCheckboxTreeItem",
|
|
6107
6111
|
props: {
|
|
6108
6112
|
selected: { type: Boolean },
|
|
@@ -6131,38 +6135,38 @@ var Ba = {
|
|
|
6131
6135
|
"pv-tree-item-selected": e.selected,
|
|
6132
6136
|
"pv-tree-item-disabled": e.disableSelection
|
|
6133
6137
|
}
|
|
6134
|
-
]) }, [e.disableSelection ? a("", !0) : (D(), i(
|
|
6138
|
+
]) }, [e.disableSelection ? a("", !0) : (D(), i(ps, {
|
|
6135
6139
|
key: 0,
|
|
6136
6140
|
checked: e.selected,
|
|
6137
6141
|
onClick: s
|
|
6138
6142
|
}, null, 8, ["checked"])), j(t.$slots, "default")], 2));
|
|
6139
6143
|
}
|
|
6140
|
-
}),
|
|
6144
|
+
}), uc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6141
6145
|
__name: "PvTreeConnector",
|
|
6142
6146
|
props: { isLast: { type: Boolean } },
|
|
6143
6147
|
setup(e) {
|
|
6144
6148
|
return (t, n) => (D(), o("div", { class: y(e.isLast ? "pv-tree-connector-end" : "pv-tree-connector-middle") }, null, 2));
|
|
6145
6149
|
}
|
|
6146
|
-
}), [["__scopeId", "data-v-2a7afaff"]]),
|
|
6150
|
+
}), [["__scopeId", "data-v-2a7afaff"]]), dc = () => ({
|
|
6147
6151
|
indentPadding: (e, t = 0) => `${(e + t) * 24}px`,
|
|
6148
6152
|
connectorOffset: (e) => `${e * 24 + 8}px`,
|
|
6149
6153
|
showsConnector: (e, t) => !!(t && e[t]?.showNestedTree),
|
|
6150
6154
|
showsChildConnectors: (e, t) => !!e[t]?.showNestedTree,
|
|
6151
6155
|
childLevel: ({ level: e, showNestedTree: t, childrenShowNestedTree: n, additionalNestingLevel: r = 0 }) => e + (n && !t ? 0 : 1) + r
|
|
6152
|
-
}),
|
|
6156
|
+
}), fc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6153
6157
|
__name: "PvTreeConnectorGroup",
|
|
6154
6158
|
props: {
|
|
6155
6159
|
active: { type: Boolean },
|
|
6156
6160
|
level: {}
|
|
6157
6161
|
},
|
|
6158
6162
|
setup(e) {
|
|
6159
|
-
let t = e, { connectorOffset: n } =
|
|
6163
|
+
let t = e, { connectorOffset: n } = dc(), i = r(() => t.active ? { "--tree-connector-left": n(t.level) } : {});
|
|
6160
6164
|
return (t, n) => (D(), o("div", {
|
|
6161
6165
|
class: y({ "pv-tree-connector-line": e.active }),
|
|
6162
6166
|
style: x(i.value)
|
|
6163
6167
|
}, [j(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6164
6168
|
}
|
|
6165
|
-
}), [["__scopeId", "data-v-fb9813d5"]]),
|
|
6169
|
+
}), [["__scopeId", "data-v-fb9813d5"]]), pc = () => {
|
|
6166
6170
|
let e = k(null);
|
|
6167
6171
|
return {
|
|
6168
6172
|
hoveredId: e,
|
|
@@ -6173,15 +6177,15 @@ var Ba = {
|
|
|
6173
6177
|
e.value = null;
|
|
6174
6178
|
}
|
|
6175
6179
|
};
|
|
6176
|
-
},
|
|
6180
|
+
}, mc = Symbol("DraggingStateKey"), hc = Symbol("DraggingGroupNameKey"), gc = Symbol("DropIndicatorKey"), _c = () => {
|
|
6177
6181
|
let e = k(!1), t = k(null), n = k(null);
|
|
6178
|
-
return O(
|
|
6182
|
+
return O(mc, e), O(hc, t), O(gc, n), {
|
|
6179
6183
|
isDragging: e,
|
|
6180
6184
|
draggingGroupName: t,
|
|
6181
6185
|
dropIndicator: n
|
|
6182
6186
|
};
|
|
6183
|
-
},
|
|
6184
|
-
let e = m(
|
|
6187
|
+
}, vc = () => {
|
|
6188
|
+
let e = m(mc, k(!1)), t = m(hc, k(null)), n = m(gc, k(null)), r = (n) => {
|
|
6185
6189
|
e.value = !0, t.value = n ?? null;
|
|
6186
6190
|
}, i = () => {
|
|
6187
6191
|
e.value = !1, t.value = null, o();
|
|
@@ -6203,8 +6207,8 @@ var Ba = {
|
|
|
6203
6207
|
onDragStart: r,
|
|
6204
6208
|
onDragEnd: i
|
|
6205
6209
|
};
|
|
6206
|
-
},
|
|
6207
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
6210
|
+
}, yc = () => {
|
|
6211
|
+
let { setDropIndicator: e, clearDropIndicator: t } = vc();
|
|
6208
6212
|
return {
|
|
6209
6213
|
getDragGroupConfig: (e, t) => {
|
|
6210
6214
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -6239,8 +6243,8 @@ var Ba = {
|
|
|
6239
6243
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
6240
6244
|
}
|
|
6241
6245
|
};
|
|
6242
|
-
},
|
|
6243
|
-
let { dropIndicator: e } =
|
|
6246
|
+
}, bc = () => {
|
|
6247
|
+
let { dropIndicator: e } = vc();
|
|
6244
6248
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
6245
6249
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
6246
6250
|
return {
|
|
@@ -6249,7 +6253,7 @@ var Ba = {
|
|
|
6249
6253
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
6250
6254
|
};
|
|
6251
6255
|
} };
|
|
6252
|
-
},
|
|
6256
|
+
}, xc = { class: "pv-flex pv-full-width" }, Sc = ["data-parent-id"], Cc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6253
6257
|
__name: "PvSimpleNestedTreeItem",
|
|
6254
6258
|
props: {
|
|
6255
6259
|
option: {},
|
|
@@ -6265,9 +6269,9 @@ var Ba = {
|
|
|
6265
6269
|
},
|
|
6266
6270
|
emits: ["handle-tree-select", "update:children"],
|
|
6267
6271
|
setup(e, { emit: t }) {
|
|
6268
|
-
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } =
|
|
6272
|
+
let n = e, o = t, { isDragging: c, draggingGroupName: l, onDragStart: d, onDragEnd: f } = vc(), { dragAndDropIndicatorClasses: p } = bc(), { hoveredId: m, handleMouseEnter: h, handleMouseLeave: g } = pc(), { canItemBeDragged: _, getDragAndDropDisabled: v, handleMoveCallback: b, getDragGroupConfig: S, canAcceptDrop: C } = yc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = dc(), k = () => {
|
|
6269
6273
|
d(S(n.settings, n.option).name);
|
|
6270
|
-
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6274
|
+
}, A = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), j = r(() => n.settings[n.option.field]?.checkbox ? lc : cc), P = r(() => T(n.settings, n.parentField)), F = r(() => n.index === n.totalSiblings - 1), I = r(() => P.value && !F.value), R = r(() => O({
|
|
6271
6275
|
level: n.level,
|
|
6272
6276
|
showNestedTree: P.value,
|
|
6273
6277
|
childrenShowNestedTree: E(n.settings, n.option.field)
|
|
@@ -6282,7 +6286,7 @@ var Ba = {
|
|
|
6282
6286
|
}), B = r(() => n.isParentPathOpen ?? !0);
|
|
6283
6287
|
return (t, n) => {
|
|
6284
6288
|
let r = M("PvSimpleNestedTreeItem", !0);
|
|
6285
|
-
return D(), i(
|
|
6289
|
+
return D(), i(fc, {
|
|
6286
6290
|
active: I.value,
|
|
6287
6291
|
level: e.level
|
|
6288
6292
|
}, {
|
|
@@ -6302,7 +6306,7 @@ var Ba = {
|
|
|
6302
6306
|
onMouseleave: n[2] ||= (e) => L(g)(),
|
|
6303
6307
|
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6304
6308
|
}, {
|
|
6305
|
-
default: q(() => [J(u(
|
|
6309
|
+
default: q(() => [J(u(sc, null, null, 512), [[te, L(m) === e.option.node_id && L(_)(e.isDraggable, e.settings, e.option)]]), s("div", xc, [P.value ? (D(), i(uc, {
|
|
6306
6310
|
key: 0,
|
|
6307
6311
|
"is-last": F.value
|
|
6308
6312
|
}, null, 8, ["is-last"])) : a("", !0), e.settings[e.option.field]?.renderer ? (D(), i(N(e.settings[e.option.field]?.renderer), {
|
|
@@ -6316,7 +6320,7 @@ var Ba = {
|
|
|
6316
6320
|
"settings",
|
|
6317
6321
|
"is-draggable",
|
|
6318
6322
|
"params"
|
|
6319
|
-
])) : (D(), i(
|
|
6323
|
+
])) : (D(), i(oc, {
|
|
6320
6324
|
key: 2,
|
|
6321
6325
|
label: e.option.label,
|
|
6322
6326
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6378,12 +6382,12 @@ var Ba = {
|
|
|
6378
6382
|
"class",
|
|
6379
6383
|
"onEnd",
|
|
6380
6384
|
"onAdd"
|
|
6381
|
-
])], 8,
|
|
6385
|
+
])], 8, Sc)]),
|
|
6382
6386
|
_: 1
|
|
6383
6387
|
}, 8, ["active", "level"]);
|
|
6384
6388
|
};
|
|
6385
6389
|
}
|
|
6386
|
-
}), [["__scopeId", "data-v-f706f606"]]),
|
|
6390
|
+
}), [["__scopeId", "data-v-f706f606"]]), wc = ["data-parent-id"], Tc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6387
6391
|
__name: "PvSimpleNestedTree",
|
|
6388
6392
|
props: {
|
|
6389
6393
|
option: {},
|
|
@@ -6399,14 +6403,14 @@ var Ba = {
|
|
|
6399
6403
|
},
|
|
6400
6404
|
emits: ["handle-tree-select", "update:children"],
|
|
6401
6405
|
setup(e, { emit: t }) {
|
|
6402
|
-
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
6406
|
+
let n = e, o = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = pc(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = yc(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = vc(), { dragAndDropIndicatorClasses: C } = bc(), { indentPadding: w, showsConnector: T, showsChildConnectors: E, childLevel: O } = dc(), k = () => {
|
|
6403
6407
|
b(h(n.settings, n.option).name);
|
|
6404
6408
|
}, A = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), j = r(() => T(n.settings, n.parentField)), M = r(() => O({
|
|
6405
6409
|
level: n.level,
|
|
6406
6410
|
showNestedTree: j.value,
|
|
6407
6411
|
childrenShowNestedTree: E(n.settings, n.option.field),
|
|
6408
6412
|
additionalNestingLevel: A.value
|
|
6409
|
-
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ?
|
|
6413
|
+
})), P = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), F = (e) => n.settings[e.field]?.checkbox ? lc : cc, I = r({
|
|
6410
6414
|
get: () => [...n.option.children || []],
|
|
6411
6415
|
set: (e) => {
|
|
6412
6416
|
o("update:children", {
|
|
@@ -6415,7 +6419,7 @@ var Ba = {
|
|
|
6415
6419
|
});
|
|
6416
6420
|
}
|
|
6417
6421
|
}), R = r(() => n.isParentPathOpen ?? !0), z = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), B = r(() => j.value && !z.value);
|
|
6418
|
-
return (t, n) => (D(), i(
|
|
6422
|
+
return (t, n) => (D(), i(fc, {
|
|
6419
6423
|
class: "pv-flow",
|
|
6420
6424
|
style: { "--flow-size": "0px" },
|
|
6421
6425
|
active: B.value,
|
|
@@ -6438,8 +6442,8 @@ var Ba = {
|
|
|
6438
6442
|
onContextmenu: n[3] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6439
6443
|
}, {
|
|
6440
6444
|
default: q(() => [
|
|
6441
|
-
J(u(
|
|
6442
|
-
j.value ? (D(), i(
|
|
6445
|
+
J(u(sc, null, null, 512), [[te, L(c) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option)]]),
|
|
6446
|
+
j.value ? (D(), i(uc, {
|
|
6443
6447
|
key: 0,
|
|
6444
6448
|
"is-last": z.value
|
|
6445
6449
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6454,7 +6458,7 @@ var Ba = {
|
|
|
6454
6458
|
"settings",
|
|
6455
6459
|
"selected",
|
|
6456
6460
|
"params"
|
|
6457
|
-
])) : (D(), i(
|
|
6461
|
+
])) : (D(), i(oc, {
|
|
6458
6462
|
key: 2,
|
|
6459
6463
|
label: e.option.label,
|
|
6460
6464
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6482,7 +6486,7 @@ var Ba = {
|
|
|
6482
6486
|
onEnd: L(S),
|
|
6483
6487
|
onAdd: L(S)
|
|
6484
6488
|
}, {
|
|
6485
|
-
item: q(({ element: r, index: i }) => [u(
|
|
6489
|
+
item: q(({ element: r, index: i }) => [u(Cc, {
|
|
6486
6490
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6487
6491
|
option: r,
|
|
6488
6492
|
settings: e.settings,
|
|
@@ -6517,11 +6521,11 @@ var Ba = {
|
|
|
6517
6521
|
"class",
|
|
6518
6522
|
"onEnd",
|
|
6519
6523
|
"onAdd"
|
|
6520
|
-
])], 8,
|
|
6524
|
+
])], 8, wc)]),
|
|
6521
6525
|
_: 1
|
|
6522
6526
|
}, 8, ["active", "level"]));
|
|
6523
6527
|
}
|
|
6524
|
-
}), [["__scopeId", "data-v-26eb4678"]]),
|
|
6528
|
+
}), [["__scopeId", "data-v-26eb4678"]]), Ec = ["data-parent-id"], Dc = { key: 2 }, Oc = ["data-parent-id"], kc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6525
6529
|
__name: "PvTreeItem",
|
|
6526
6530
|
props: {
|
|
6527
6531
|
option: {},
|
|
@@ -6549,12 +6553,12 @@ var Ba = {
|
|
|
6549
6553
|
K(() => n.treeOpen, (e) => {
|
|
6550
6554
|
e !== void 0 && (l.value = e);
|
|
6551
6555
|
});
|
|
6552
|
-
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } =
|
|
6556
|
+
let { getDragGroupConfig: d, getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, childrenDraggable: h, canAcceptDrop: g } = yc(), { hoveredId: _, handleMouseEnter: v, handleMouseLeave: b } = pc(), { isDragging: S, draggingGroupName: C, onDragStart: w, onDragEnd: T } = vc(), { dragAndDropIndicatorClasses: E } = bc(), { indentPadding: O, showsConnector: A } = dc(), j = () => {
|
|
6553
6557
|
w(d(n.settings, n.option).name);
|
|
6554
6558
|
}, P = (e) => ({
|
|
6555
6559
|
paddingLeft: O(e, n.settings[n.option.field]?.additionalNestingLevel ?? 0),
|
|
6556
6560
|
"--border-color": "#121313"
|
|
6557
|
-
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ?
|
|
6561
|
+
}), F = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), I = r(() => n.settings[n.option.field]?.checkbox ? lc : cc), R = r({
|
|
6558
6562
|
get: () => [...n.option.children || []],
|
|
6559
6563
|
set: (e) => {
|
|
6560
6564
|
c("update:children", {
|
|
@@ -6565,7 +6569,7 @@ var Ba = {
|
|
|
6565
6569
|
}), z = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), B = r(() => A(n.settings, n.parentField)), V = r(() => n.index === void 0 || n.totalSiblings === void 0 ? !0 : n.index === n.totalSiblings - 1), H = r(() => B.value && !V.value), ee = r(() => n.isParentPathOpen ?? !0 ? z.value && n.level === 0 ? l.value : !0 : !1);
|
|
6566
6570
|
return (t, n) => {
|
|
6567
6571
|
let r = M("PvTreeItem", !0);
|
|
6568
|
-
return D(), i(
|
|
6572
|
+
return D(), i(fc, {
|
|
6569
6573
|
active: H.value,
|
|
6570
6574
|
level: e.level
|
|
6571
6575
|
}, {
|
|
@@ -6597,8 +6601,8 @@ var Ba = {
|
|
|
6597
6601
|
onContextmenu: n[6] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6598
6602
|
}, {
|
|
6599
6603
|
trigger: q(() => [
|
|
6600
|
-
J(u(
|
|
6601
|
-
B.value ? (D(), i(
|
|
6604
|
+
J(u(sc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6605
|
+
B.value ? (D(), i(uc, {
|
|
6602
6606
|
key: 0,
|
|
6603
6607
|
"is-last": V.value
|
|
6604
6608
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6613,7 +6617,7 @@ var Ba = {
|
|
|
6613
6617
|
"settings",
|
|
6614
6618
|
"selected",
|
|
6615
6619
|
"params"
|
|
6616
|
-
])) : (D(), i(
|
|
6620
|
+
])) : (D(), i(oc, {
|
|
6617
6621
|
key: 2,
|
|
6618
6622
|
label: e.option.label,
|
|
6619
6623
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6669,7 +6673,7 @@ var Ba = {
|
|
|
6669
6673
|
"class",
|
|
6670
6674
|
"onEnd",
|
|
6671
6675
|
"onAdd"
|
|
6672
|
-
])], 8,
|
|
6676
|
+
])], 8, Ec)]),
|
|
6673
6677
|
_: 1
|
|
6674
6678
|
}, 8, [
|
|
6675
6679
|
"modelValue",
|
|
@@ -6677,7 +6681,7 @@ var Ba = {
|
|
|
6677
6681
|
"summaryStyles",
|
|
6678
6682
|
"summaryClasses",
|
|
6679
6683
|
"defaultOpen"
|
|
6680
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(
|
|
6684
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (D(), i(Tc, {
|
|
6681
6685
|
key: 1,
|
|
6682
6686
|
"is-parent-path-open": e.isParentPathOpen,
|
|
6683
6687
|
"selected-options": e.selectedOptions,
|
|
@@ -6704,7 +6708,7 @@ var Ba = {
|
|
|
6704
6708
|
"is-draggable",
|
|
6705
6709
|
"disable-selection",
|
|
6706
6710
|
"is-last-root-item"
|
|
6707
|
-
])) : (D(), o("div",
|
|
6711
|
+
])) : (D(), o("div", Dc, [(D(), i(N(I.value), {
|
|
6708
6712
|
class: y({ ...L(E)(e.option) }),
|
|
6709
6713
|
option: e.option,
|
|
6710
6714
|
selected: F(e.option.node_id),
|
|
@@ -6721,8 +6725,8 @@ var Ba = {
|
|
|
6721
6725
|
onContextmenu: n[12] ||= ie((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
6722
6726
|
}, {
|
|
6723
6727
|
default: q(() => [
|
|
6724
|
-
J(u(
|
|
6725
|
-
B.value ? (D(), i(
|
|
6728
|
+
J(u(sc, null, null, 512), [[te, L(_) === e.option.node_id && L(p)(e.isDraggable, e.settings, e.option) && e.level > 0]]),
|
|
6729
|
+
B.value ? (D(), i(uc, {
|
|
6726
6730
|
key: 0,
|
|
6727
6731
|
"is-last": V.value
|
|
6728
6732
|
}, null, 8, ["is-last"])) : a("", !0),
|
|
@@ -6735,7 +6739,7 @@ var Ba = {
|
|
|
6735
6739
|
"option",
|
|
6736
6740
|
"settings",
|
|
6737
6741
|
"params"
|
|
6738
|
-
])) : (D(), i(
|
|
6742
|
+
])) : (D(), i(oc, {
|
|
6739
6743
|
key: 2,
|
|
6740
6744
|
label: e.option.label,
|
|
6741
6745
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -6798,12 +6802,12 @@ var Ba = {
|
|
|
6798
6802
|
"class",
|
|
6799
6803
|
"onEnd",
|
|
6800
6804
|
"onAdd"
|
|
6801
|
-
])], 8,
|
|
6805
|
+
])], 8, Oc)]))]),
|
|
6802
6806
|
_: 1
|
|
6803
6807
|
}, 8, ["active", "level"]);
|
|
6804
6808
|
};
|
|
6805
6809
|
}
|
|
6806
|
-
}), [["__scopeId", "data-v-eb5f5907"]]),
|
|
6810
|
+
}), [["__scopeId", "data-v-eb5f5907"]]), Ac = (e) => {
|
|
6807
6811
|
let t = [], n = !1;
|
|
6808
6812
|
function r(e) {
|
|
6809
6813
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -6846,7 +6850,7 @@ var Ba = {
|
|
|
6846
6850
|
newChildren: r
|
|
6847
6851
|
}), n || (n = !0, v(i));
|
|
6848
6852
|
} };
|
|
6849
|
-
},
|
|
6853
|
+
}, jc = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
6850
6854
|
__name: "PvTree",
|
|
6851
6855
|
props: /* @__PURE__ */ g({
|
|
6852
6856
|
settings: {},
|
|
@@ -6876,14 +6880,14 @@ var Ba = {
|
|
|
6876
6880
|
"update:treeOpen"
|
|
6877
6881
|
],
|
|
6878
6882
|
setup(e) {
|
|
6879
|
-
m(
|
|
6880
|
-
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
6883
|
+
m(mc, null) || _c();
|
|
6884
|
+
let n = e, i = B(e, "selectedOptions"), a = B(e, "options"), c = B(e, "treeOpen"), { handleUpdateChildren: l } = Ac(a), d = (e, t) => {
|
|
6881
6885
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
6882
6886
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
6883
6887
|
...n.defaultSettings,
|
|
6884
6888
|
...n.settings[t]
|
|
6885
6889
|
}, e), {}));
|
|
6886
|
-
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(
|
|
6890
|
+
return (n, r) => (D(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(D(!0), o(t, null, A(a.value, (t, n) => (D(), o("div", { key: t.node_id }, [u(kc, {
|
|
6887
6891
|
"is-last-root-item": n === a.value.length - 1,
|
|
6888
6892
|
"is-parent-path-open": !0,
|
|
6889
6893
|
"tree-open": c.value,
|
|
@@ -6906,19 +6910,19 @@ var Ba = {
|
|
|
6906
6910
|
"onUpdate:children"
|
|
6907
6911
|
])]))), 128))], 2)]));
|
|
6908
6912
|
}
|
|
6909
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
6913
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), Mc = /* @__PURE__ */ d({
|
|
6910
6914
|
__name: "PvTreeGroup",
|
|
6911
6915
|
setup(e) {
|
|
6912
|
-
return
|
|
6916
|
+
return _c(), (e, t) => j(e.$slots, "default");
|
|
6913
6917
|
}
|
|
6914
|
-
}),
|
|
6918
|
+
}), Nc = { class: "pv-full-width" }, Pc = {
|
|
6915
6919
|
key: 0,
|
|
6916
6920
|
class: "pv-flex pv-stack-4",
|
|
6917
6921
|
style: { "--flex-justify": "space-between" }
|
|
6918
|
-
},
|
|
6922
|
+
}, Fc = {
|
|
6919
6923
|
key: 1,
|
|
6920
6924
|
class: "pv-text-subdued pv-text-title-sm"
|
|
6921
|
-
},
|
|
6925
|
+
}, Ic = ["data-disabled"], Lc = /* @__PURE__ */ d({
|
|
6922
6926
|
__name: "PvProgressBar",
|
|
6923
6927
|
props: {
|
|
6924
6928
|
disabled: {
|
|
@@ -6935,22 +6939,22 @@ var Ba = {
|
|
|
6935
6939
|
},
|
|
6936
6940
|
setup(e) {
|
|
6937
6941
|
let t = e, n = r(() => Math.min(100, Math.max(0, t.progress))), i = r(() => `${n.value}% Complete`);
|
|
6938
|
-
return (r, c) => (D(), o("div",
|
|
6942
|
+
return (r, c) => (D(), o("div", Nc, [e.showLabel || e.secondaryLabel ? (D(), o("div", Pc, [e.showLabel ? (D(), o("p", {
|
|
6939
6943
|
key: 0,
|
|
6940
6944
|
class: y(e.labelVariant === "secondary" ? "pv-text-subdued pv-text-title-sm" : "pv-text-brand pv-text-title-sm")
|
|
6941
|
-
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span",
|
|
6945
|
+
}, I(i.value), 3)) : a("", !0), e.secondaryLabel ? (D(), o("span", Fc, I(e.secondaryLabel), 1)) : a("", !0)])) : a("", !0), s("div", {
|
|
6942
6946
|
class: "pv-progress-bar",
|
|
6943
6947
|
"data-disabled": t.disabled ? !0 : void 0,
|
|
6944
6948
|
style: x({ "--progress": `${n.value}%` })
|
|
6945
|
-
}, null, 12,
|
|
6949
|
+
}, null, 12, Ic)]));
|
|
6946
6950
|
}
|
|
6947
|
-
}),
|
|
6951
|
+
}), Rc = {
|
|
6948
6952
|
class: "pv-flex",
|
|
6949
6953
|
style: {
|
|
6950
6954
|
"--flex-gap": "4px",
|
|
6951
6955
|
height: "24px"
|
|
6952
6956
|
}
|
|
6953
|
-
},
|
|
6957
|
+
}, zc = /* @__PURE__ */ d({
|
|
6954
6958
|
__name: "PvDistributionBar",
|
|
6955
6959
|
props: { values: {} },
|
|
6956
6960
|
setup(e) {
|
|
@@ -6973,16 +6977,16 @@ var Ba = {
|
|
|
6973
6977
|
default: return "pv-data-surface-visualization-1";
|
|
6974
6978
|
}
|
|
6975
6979
|
};
|
|
6976
|
-
return (n, r) => (D(), o("div",
|
|
6980
|
+
return (n, r) => (D(), o("div", Rc, [(D(!0), o(t, null, A(e.values, (e, t) => (D(), o("div", {
|
|
6977
6981
|
key: t,
|
|
6978
6982
|
class: y([l(t)]),
|
|
6979
6983
|
style: x(c(e, t))
|
|
6980
6984
|
}, null, 6))), 128))]));
|
|
6981
6985
|
}
|
|
6982
|
-
}),
|
|
6986
|
+
}), Bc = {
|
|
6983
6987
|
key: 0,
|
|
6984
6988
|
class: "pv-range-single-slider"
|
|
6985
|
-
},
|
|
6989
|
+
}, Vc = [
|
|
6986
6990
|
"id",
|
|
6987
6991
|
"aria-label",
|
|
6988
6992
|
"aria-valuetext",
|
|
@@ -6991,11 +6995,11 @@ var Ba = {
|
|
|
6991
6995
|
"min",
|
|
6992
6996
|
"step",
|
|
6993
6997
|
"value"
|
|
6994
|
-
],
|
|
6998
|
+
], Hc = ["aria-label"], Uc = {
|
|
6995
6999
|
key: 0,
|
|
6996
7000
|
class: "pv-space-between pv-text-body-xs pv-text-subdued",
|
|
6997
7001
|
style: { "line-height": "1" }
|
|
6998
|
-
},
|
|
7002
|
+
}, Wc = [
|
|
6999
7003
|
"aria-label",
|
|
7000
7004
|
"aria-valuetext",
|
|
7001
7005
|
"disabled",
|
|
@@ -7003,7 +7007,7 @@ var Ba = {
|
|
|
7003
7007
|
"min",
|
|
7004
7008
|
"step",
|
|
7005
7009
|
"value"
|
|
7006
|
-
],
|
|
7010
|
+
], Gc = [
|
|
7007
7011
|
"aria-label",
|
|
7008
7012
|
"aria-valuetext",
|
|
7009
7013
|
"disabled",
|
|
@@ -7011,7 +7015,7 @@ var Ba = {
|
|
|
7011
7015
|
"min",
|
|
7012
7016
|
"step",
|
|
7013
7017
|
"value"
|
|
7014
|
-
],
|
|
7018
|
+
], Kc = {
|
|
7015
7019
|
key: 1,
|
|
7016
7020
|
class: "pv-flex",
|
|
7017
7021
|
style: {
|
|
@@ -7019,15 +7023,15 @@ var Ba = {
|
|
|
7019
7023
|
"--flex-gap": "0.75rem",
|
|
7020
7024
|
"--flex-wrap": "wrap"
|
|
7021
7025
|
}
|
|
7022
|
-
},
|
|
7026
|
+
}, qc = { class: "pv-text-body-sm" }, Jc = [
|
|
7023
7027
|
"disabled",
|
|
7024
7028
|
"step",
|
|
7025
7029
|
"value"
|
|
7026
|
-
],
|
|
7030
|
+
], Yc = { class: "pv-text-body-sm" }, Xc = [
|
|
7027
7031
|
"disabled",
|
|
7028
7032
|
"step",
|
|
7029
7033
|
"value"
|
|
7030
|
-
],
|
|
7034
|
+
], Zc = 0, Qc = 100, $c = 1e4, el = "4.6875rem", tl = .01, nl = /* @__PURE__ */ d({
|
|
7031
7035
|
inheritAttrs: !1,
|
|
7032
7036
|
__name: "PvRange",
|
|
7033
7037
|
props: /* @__PURE__ */ g({
|
|
@@ -7119,7 +7123,7 @@ var Ba = {
|
|
|
7119
7123
|
let r = ae(t), i = Math.log(t.min + r), a = Math.log(t.max + r);
|
|
7120
7124
|
return Math.exp(i + n * (a - i)) - r;
|
|
7121
7125
|
}, se = (e, t) => Math.max(0, Math.min(100, Y(e, t) * 100)), ce = r(() => {
|
|
7122
|
-
let e = E(t.min) ??
|
|
7126
|
+
let e = E(t.min) ?? Zc, n = E(t.max) ?? Qc;
|
|
7123
7127
|
return e > n ? {
|
|
7124
7128
|
max: e,
|
|
7125
7129
|
min: n
|
|
@@ -7142,7 +7146,7 @@ var Ba = {
|
|
|
7142
7146
|
}
|
|
7143
7147
|
return t.split(".")[1]?.length ?? 0;
|
|
7144
7148
|
}, Z = r(() => {
|
|
7145
|
-
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(
|
|
7149
|
+
let e = E(t.min), n = E(t.max), r = E(c.value?.min), i = E(c.value?.max), a = e ?? Math.min(Zc, r ?? Zc, i ?? Zc), o = n ?? Math.max(Qc, r ?? Qc, i ?? Qc);
|
|
7146
7150
|
return a > o && ([a, o] = [o, a]), a === o && (o = a + (U.value > 0 ? U.value : 1)), {
|
|
7147
7151
|
max: o,
|
|
7148
7152
|
min: a
|
|
@@ -7183,14 +7187,14 @@ var Ba = {
|
|
|
7183
7187
|
"--range-track-color": ie.value,
|
|
7184
7188
|
"--value-max": `${De.value}%`,
|
|
7185
7189
|
"--value-min": `${Ee.value}%`
|
|
7186
|
-
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => V.value ? Math.round(Y(e, t) *
|
|
7190
|
+
})), ke = r(() => ({ left: `${Ee.value}%` })), Ae = r(() => ({ left: `${De.value}%` })), je = r(() => E(c.value?.min) !== null || E(c.value?.max) !== null), Me = (e, t) => V.value ? Math.round(Y(e, t) * $c) : e, Ne = (e, t) => V.value ? oe(e / $c, t) : e, Pe = r(() => V.value ? 0 : Z.value.min), Fe = r(() => V.value ? $c : Z.value.max), Ie = r(() => Me(Te.value.min, Z.value)), Le = r(() => Me(Te.value.max, Z.value)), Re = r(() => V.value ? 0 : ce.value.min), ze = r(() => V.value ? $c : ce.value.max), Be = r(() => Me(X.value, ce.value)), Ve = r(() => Math.max(P(Z.value.min).length, P(Z.value.max).length, 3)), He = r(() => {
|
|
7187
7191
|
let e = t.inputIcon ? "3.25rem" : "2rem";
|
|
7188
7192
|
return {
|
|
7189
7193
|
"--flex-align": "stretch",
|
|
7190
7194
|
"--flex-gap": "0",
|
|
7191
|
-
"--pv-range-input-width": `max(${
|
|
7195
|
+
"--pv-range-input-width": `max(${el}, calc(${Ve.value}ch + ${e}))`
|
|
7192
7196
|
};
|
|
7193
|
-
}), Ue = () => E(t.min) !== null || Z.value.min ===
|
|
7197
|
+
}), Ue = () => E(t.min) !== null || Z.value.min === Zc, We = () => E(t.max) !== null || Z.value.max === Qc, Ge = (e, t) => {
|
|
7194
7198
|
c.value = {
|
|
7195
7199
|
max: t >= Z.value.max && We() ? null : t,
|
|
7196
7200
|
min: e <= Z.value.min && Ue() ? null : e
|
|
@@ -7237,7 +7241,7 @@ var Ba = {
|
|
|
7237
7241
|
let a = e.key === "ArrowRight" || e.key === "ArrowUp" || e.key === "PageUp", o = e.key === "ArrowLeft" || e.key === "ArrowDown" || e.key === "PageDown";
|
|
7238
7242
|
if (!a && !o) return;
|
|
7239
7243
|
e.preventDefault();
|
|
7240
|
-
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(oe(Y(i, r) + s *
|
|
7244
|
+
let s = a ? 1 : -1, c = e.key === "PageUp" || e.key === "PageDown" ? 10 : 1, l = xe(oe(Y(i, r) + s * tl * c, r), a ? "up" : "down");
|
|
7241
7245
|
l === i && (l = i + s * _e(i, W.value)), Xe(n), Je(n, l, !1);
|
|
7242
7246
|
}, ct = () => {
|
|
7243
7247
|
g.value !== "min" && (m.value = P(Te.value.min)), g.value !== "max" && (p.value = P(Te.value.max));
|
|
@@ -7282,7 +7286,7 @@ var Ba = {
|
|
|
7282
7286
|
};
|
|
7283
7287
|
return K([Te, Z], ct, { immediate: !0 }), S(() => {
|
|
7284
7288
|
_t(), Qe();
|
|
7285
|
-
}), (n, r) => e.mode === "single" ? (D(), o("div",
|
|
7289
|
+
}), (n, r) => e.mode === "single" ? (D(), o("div", Bc, [e.showValueTooltips && v.value ? (D(), o("span", {
|
|
7286
7290
|
key: 0,
|
|
7287
7291
|
class: "pv-range-tooltip",
|
|
7288
7292
|
style: x(de.value)
|
|
@@ -7301,7 +7305,7 @@ var Ba = {
|
|
|
7301
7305
|
onInput: it,
|
|
7302
7306
|
onPointerdown: rt,
|
|
7303
7307
|
onPointerup: $e
|
|
7304
|
-
}), null, 16,
|
|
7308
|
+
}), null, 16, Vc)])) : (D(), o("div", _({ key: 1 }, L(l), {
|
|
7305
7309
|
class: "pv-flex-vertical",
|
|
7306
7310
|
"data-testid": "pv-range-dual",
|
|
7307
7311
|
role: "group",
|
|
@@ -7311,7 +7315,7 @@ var Ba = {
|
|
|
7311
7315
|
"--flex-gap": "0"
|
|
7312
7316
|
}
|
|
7313
7317
|
}), [
|
|
7314
|
-
e.showBoundLabels ? (D(), o("div",
|
|
7318
|
+
e.showBoundLabels ? (D(), o("div", Uc, [s("span", null, I(F(Z.value.min)), 1), s("span", null, I(F(Z.value.max)), 1)])) : a("", !0),
|
|
7315
7319
|
s("div", {
|
|
7316
7320
|
ref_key: "sliderRef",
|
|
7317
7321
|
ref: b,
|
|
@@ -7346,7 +7350,7 @@ var Ba = {
|
|
|
7346
7350
|
onKeydown: r[0] ||= (e) => st(e, "min"),
|
|
7347
7351
|
onPointerdown: r[1] ||= (e) => Xe("min"),
|
|
7348
7352
|
onPointerup: Ye
|
|
7349
|
-
}, null, 40,
|
|
7353
|
+
}, null, 40, Wc),
|
|
7350
7354
|
s("input", {
|
|
7351
7355
|
class: "pv-range pv-range-dual-native pv-range-dual-native-max",
|
|
7352
7356
|
type: "range",
|
|
@@ -7363,14 +7367,14 @@ var Ba = {
|
|
|
7363
7367
|
onKeydown: r[2] ||= (e) => st(e, "max"),
|
|
7364
7368
|
onPointerdown: r[3] ||= (e) => Xe("max"),
|
|
7365
7369
|
onPointerup: Ye
|
|
7366
|
-
}, null, 40,
|
|
7370
|
+
}, null, 40, Gc)
|
|
7367
7371
|
], 38),
|
|
7368
|
-
e.showInputs ? (D(), o("div",
|
|
7372
|
+
e.showInputs ? (D(), o("div", Kc, [
|
|
7369
7373
|
s("label", {
|
|
7370
7374
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7371
7375
|
for: f,
|
|
7372
7376
|
style: x(He.value)
|
|
7373
|
-
}, [s("span",
|
|
7377
|
+
}, [s("span", qc, I(e.minLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Q, {
|
|
7374
7378
|
key: 0,
|
|
7375
7379
|
class: "pv-range-input-icon",
|
|
7376
7380
|
name: e.inputIcon
|
|
@@ -7387,12 +7391,12 @@ var Ba = {
|
|
|
7387
7391
|
onFocus: r[5] ||= (e) => ft("min"),
|
|
7388
7392
|
onInput: ut,
|
|
7389
7393
|
onKeydown: r[6] ||= re((e) => mt(e, "min"), ["enter"])
|
|
7390
|
-
}, null, 40,
|
|
7394
|
+
}, null, 40, Jc)], 2)], 4),
|
|
7391
7395
|
s("label", {
|
|
7392
7396
|
class: "pv-flex-vertical pv-range-input-label",
|
|
7393
7397
|
for: d,
|
|
7394
7398
|
style: x(He.value)
|
|
7395
|
-
}, [s("span",
|
|
7399
|
+
}, [s("span", Yc, I(e.maxLabel), 1), s("span", { class: y(["pv-range-input-field", { "pv-range-input-field-with-icon": e.inputIcon }]) }, [e.inputIcon ? (D(), i(Q, {
|
|
7396
7400
|
key: 0,
|
|
7397
7401
|
class: "pv-range-input-icon",
|
|
7398
7402
|
name: e.inputIcon
|
|
@@ -7409,7 +7413,7 @@ var Ba = {
|
|
|
7409
7413
|
onFocus: r[8] ||= (e) => ft("max"),
|
|
7410
7414
|
onInput: dt,
|
|
7411
7415
|
onKeydown: r[9] ||= re((e) => mt(e, "max"), ["enter"])
|
|
7412
|
-
}, null, 40,
|
|
7416
|
+
}, null, 40, Xc)], 2)], 4),
|
|
7413
7417
|
e.showClear && je.value ? (D(), i($, {
|
|
7414
7418
|
key: 0,
|
|
7415
7419
|
class: "pv-text-brand",
|
|
@@ -7426,26 +7430,26 @@ var Ba = {
|
|
|
7426
7430
|
variant: "ghost",
|
|
7427
7431
|
onClick: Ze
|
|
7428
7432
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
7429
|
-
], 16,
|
|
7433
|
+
], 16, Hc));
|
|
7430
7434
|
}
|
|
7431
|
-
}),
|
|
7435
|
+
}), rl = [
|
|
7432
7436
|
"aria-label",
|
|
7433
7437
|
"checked",
|
|
7434
7438
|
"disabled",
|
|
7435
7439
|
"name"
|
|
7436
|
-
],
|
|
7440
|
+
], il = {
|
|
7437
7441
|
key: 3,
|
|
7438
7442
|
class: "pv-filter-panel-option-row-content pv-flex-vertical"
|
|
7439
|
-
},
|
|
7443
|
+
}, al = { class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-sm" }, ol = {
|
|
7440
7444
|
key: 0,
|
|
7441
7445
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7442
|
-
},
|
|
7446
|
+
}, sl = {
|
|
7443
7447
|
key: 1,
|
|
7444
7448
|
class: "pv-filter-panel-option-row-line pv-line-clamp pv-text-body-xs pv-text-subdued"
|
|
7445
|
-
},
|
|
7449
|
+
}, cl = {
|
|
7446
7450
|
key: 4,
|
|
7447
7451
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
7448
|
-
},
|
|
7452
|
+
}, ll = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
7449
7453
|
__name: "PvFilterPanelOptionRow",
|
|
7450
7454
|
props: {
|
|
7451
7455
|
ariaLabel: {},
|
|
@@ -7518,7 +7522,7 @@ var Ba = {
|
|
|
7518
7522
|
disabled: e.disabled,
|
|
7519
7523
|
name: e.name,
|
|
7520
7524
|
onChange: g
|
|
7521
|
-
}, null, 40,
|
|
7525
|
+
}, null, 40, rl)) : (D(), i(ps, {
|
|
7522
7526
|
key: 1,
|
|
7523
7527
|
ariaLabel: e.ariaLabel || e.label,
|
|
7524
7528
|
disabled: e.disabled,
|
|
@@ -7531,12 +7535,12 @@ var Ba = {
|
|
|
7531
7535
|
"indeterminate",
|
|
7532
7536
|
"modelValue"
|
|
7533
7537
|
])),
|
|
7534
|
-
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span",
|
|
7535
|
-
s("span",
|
|
7536
|
-
e.subduedText ? (D(), o("span",
|
|
7537
|
-
e.subText ? (D(), o("span",
|
|
7538
|
+
e.renderer ? (D(), i(N(e.renderer), b(_({ key: 2 }, m.value)), null, 16)) : (D(), o("span", il, [
|
|
7539
|
+
s("span", al, I(e.label), 1),
|
|
7540
|
+
e.subduedText ? (D(), o("span", ol, I(e.subduedText), 1)) : a("", !0),
|
|
7541
|
+
e.subText ? (D(), o("span", sl, I(e.subText), 1)) : a("", !0)
|
|
7538
7542
|
])),
|
|
7539
|
-
f.value ? (D(), o("span",
|
|
7543
|
+
f.value ? (D(), o("span", cl, [j(t.$slots, "result-count", {}, () => [l("(" + I(e.resultCount) + ")", 1)], !0)])) : a("", !0),
|
|
7540
7544
|
e.showFocusAction ? (D(), i($, {
|
|
7541
7545
|
key: 5,
|
|
7542
7546
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
@@ -7552,26 +7556,26 @@ var Ba = {
|
|
|
7552
7556
|
])) : a("", !0)
|
|
7553
7557
|
], 6));
|
|
7554
7558
|
}
|
|
7555
|
-
}), [["__scopeId", "data-v-d5f24abf"]]),
|
|
7559
|
+
}), [["__scopeId", "data-v-d5f24abf"]]), ul = [
|
|
7556
7560
|
"totalCount",
|
|
7557
7561
|
"total_count",
|
|
7558
7562
|
"resultCount",
|
|
7559
7563
|
"result_count",
|
|
7560
7564
|
"row_count",
|
|
7561
7565
|
"count"
|
|
7562
|
-
],
|
|
7566
|
+
], dl = new Intl.NumberFormat("en-US", {
|
|
7563
7567
|
maximumFractionDigits: 1,
|
|
7564
7568
|
notation: "compact"
|
|
7565
|
-
}),
|
|
7566
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
7569
|
+
}), fl = (e) => typeof e == "object" && !!e, pl = (e) => {
|
|
7570
|
+
if (typeof e == "number" && Number.isFinite(e)) return dl.format(e);
|
|
7567
7571
|
if (typeof e == "string") {
|
|
7568
7572
|
let t = e.trim();
|
|
7569
7573
|
if (!t) return;
|
|
7570
7574
|
let n = Number(t);
|
|
7571
|
-
return Number.isFinite(n) ?
|
|
7575
|
+
return Number.isFinite(n) ? dl.format(n) : e;
|
|
7572
7576
|
}
|
|
7573
|
-
},
|
|
7574
|
-
let n =
|
|
7577
|
+
}, ml = (e, t) => t ?? (e === "currency" || e === "integer" || e === "percent" ? 0 : 2), hl = (e, t = {}) => {
|
|
7578
|
+
let n = ml(t.dataType, t.valueDecimals);
|
|
7575
7579
|
if (t.dataType === "currency") return new Intl.NumberFormat("en-US", {
|
|
7576
7580
|
currency: "USD",
|
|
7577
7581
|
maximumFractionDigits: n,
|
|
@@ -7583,11 +7587,11 @@ var Ba = {
|
|
|
7583
7587
|
minimumFractionDigits: n
|
|
7584
7588
|
}).format(e);
|
|
7585
7589
|
return t.dataType === "percent" ? `${r}%` : r;
|
|
7586
|
-
},
|
|
7590
|
+
}, gl = (e, t, n = {}) => e !== null && t !== null ? `${hl(e, n)}–${hl(t, n)}` : e === null ? t === null ? "" : `≤ ${hl(t, n)}` : `${hl(e, n)}+`, _l = (e, t) => {
|
|
7587
7591
|
let n = typeof t?.context?.filterValueFormatter == "function" ? t.context.filterValueFormatter : typeof t?.valueFormatter == "function" ? t.valueFormatter : null;
|
|
7588
7592
|
if (!n) return null;
|
|
7589
7593
|
try {
|
|
7590
|
-
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue :
|
|
7594
|
+
let t = e.rawValue !== null && e.rawValue !== void 0 ? e.rawValue : fl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? e.metadata.rawValue : e.value;
|
|
7591
7595
|
return n({
|
|
7592
7596
|
context: e.metadata,
|
|
7593
7597
|
value: t
|
|
@@ -7595,24 +7599,24 @@ var Ba = {
|
|
|
7595
7599
|
} catch {
|
|
7596
7600
|
return null;
|
|
7597
7601
|
}
|
|
7598
|
-
},
|
|
7602
|
+
}, vl = (e, t) => {
|
|
7599
7603
|
let n = e.metadata;
|
|
7600
|
-
if (!
|
|
7604
|
+
if (!fl(n)) return null;
|
|
7601
7605
|
for (let e of t?.context?.metadataDisplayFields ?? []) {
|
|
7602
7606
|
let t = n[e];
|
|
7603
7607
|
if (t != null && String(t).trim()) return String(t);
|
|
7604
7608
|
}
|
|
7605
7609
|
return null;
|
|
7606
|
-
},
|
|
7607
|
-
let t =
|
|
7610
|
+
}, yl = (e, t) => e.label || vl(e, t) || _l(e, t) || e.value, bl = (e) => {
|
|
7611
|
+
let t = pl(e?.resultCount);
|
|
7608
7612
|
if (t !== void 0) return t;
|
|
7609
7613
|
let n = e?.metadata;
|
|
7610
|
-
if (
|
|
7611
|
-
let t =
|
|
7614
|
+
if (fl(n)) for (let e of ul) {
|
|
7615
|
+
let t = pl(n[e]);
|
|
7612
7616
|
if (t !== void 0) return t;
|
|
7613
7617
|
}
|
|
7614
|
-
return
|
|
7615
|
-
},
|
|
7618
|
+
return pl(e?.totalChildCount);
|
|
7619
|
+
}, xl = "__pv_filter_panel_scoped_value__", Sl = (e) => typeof e == "object" && !!e, Cl = (e) => {
|
|
7616
7620
|
try {
|
|
7617
7621
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7618
7622
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7626,7 +7630,7 @@ var Ba = {
|
|
|
7626
7630
|
} catch {
|
|
7627
7631
|
return [];
|
|
7628
7632
|
}
|
|
7629
|
-
},
|
|
7633
|
+
}, wl = (e) => {
|
|
7630
7634
|
if (!e.startsWith("__")) return null;
|
|
7631
7635
|
let t = e.slice(2).split("__");
|
|
7632
7636
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7639,76 +7643,76 @@ var Ba = {
|
|
|
7639
7643
|
pairs: n,
|
|
7640
7644
|
value: n[0].value
|
|
7641
7645
|
};
|
|
7642
|
-
},
|
|
7646
|
+
}, Tl = (e) => {
|
|
7643
7647
|
if (e == null) return null;
|
|
7644
|
-
if (!e.startsWith(
|
|
7648
|
+
if (!e.startsWith(xl)) return wl(e) ?? {
|
|
7645
7649
|
pairs: [],
|
|
7646
7650
|
value: e
|
|
7647
7651
|
};
|
|
7648
|
-
let t =
|
|
7652
|
+
let t = Cl(e.slice(32));
|
|
7649
7653
|
return {
|
|
7650
7654
|
field: t[0]?.field,
|
|
7651
7655
|
pairs: t,
|
|
7652
7656
|
value: t[0]?.value ?? e
|
|
7653
7657
|
};
|
|
7654
|
-
},
|
|
7658
|
+
}, El = (e, t) => `${xl}${encodeURIComponent(JSON.stringify([[e, t]]))}`, Dl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : Sl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : Tl(e.value)?.value ?? e.value : null, Ol = (e, t) => e?.field ? e.field : e?.colField ? e.colField : Tl(e?.value)?.field ?? t, kl = (e) => e.flatMap((e) => [e, ...e.children?.length ? kl(e.children) : []]), Al = (e, t, n, r) => Ol(e, r) === t && Dl(e) === n, jl = (e) => {
|
|
7655
7659
|
let t = e;
|
|
7656
7660
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7657
|
-
},
|
|
7661
|
+
}, Ml = (e) => {
|
|
7658
7662
|
let t = e;
|
|
7659
|
-
return
|
|
7663
|
+
return jl(e) ? {
|
|
7660
7664
|
...t,
|
|
7661
|
-
conditions: (t.conditions ?? []).map(
|
|
7665
|
+
conditions: (t.conditions ?? []).map(Ml)
|
|
7662
7666
|
} : { ...t };
|
|
7663
|
-
},
|
|
7667
|
+
}, Nl = (e, t) => {
|
|
7664
7668
|
if (!e) return null;
|
|
7665
7669
|
let n = t instanceof Set ? t : new Set(t);
|
|
7666
|
-
if (!n.size) return
|
|
7667
|
-
if (!
|
|
7670
|
+
if (!n.size) return Ml(e);
|
|
7671
|
+
if (!jl(e)) {
|
|
7668
7672
|
let t = e;
|
|
7669
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7673
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : Ml(e);
|
|
7670
7674
|
}
|
|
7671
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7675
|
+
let r = e, i = (r.conditions ?? []).map((e) => Nl(e, n)).filter((e) => !!e);
|
|
7672
7676
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7673
7677
|
...r,
|
|
7674
7678
|
conditions: i
|
|
7675
7679
|
} : null;
|
|
7676
|
-
},
|
|
7680
|
+
}, Pl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(Pl)] : [], Fl = (e) => e ? e.children?.length ? e.children.flatMap(Fl) : [e.field] : [], Il = (e) => {
|
|
7677
7681
|
let t = e?.context ?? {};
|
|
7678
|
-
return t.aggregateFieldHierarchy ?
|
|
7679
|
-
},
|
|
7682
|
+
return t.aggregateFieldHierarchy ? Pl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7683
|
+
}, Ll = (e) => {
|
|
7680
7684
|
let t = e?.context ?? {};
|
|
7681
7685
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7682
|
-
},
|
|
7686
|
+
}, Rl = (e) => Il(e).length > 0, zl = (e, t) => {
|
|
7683
7687
|
for (let n of e ?? []) {
|
|
7684
7688
|
if (!n) continue;
|
|
7685
7689
|
if (n.value === t) return n;
|
|
7686
|
-
let e =
|
|
7690
|
+
let e = zl(n.children, t);
|
|
7687
7691
|
if (e) return e;
|
|
7688
7692
|
}
|
|
7689
|
-
},
|
|
7693
|
+
}, Bl = (e, t, n = []) => {
|
|
7690
7694
|
for (let r of e ?? []) {
|
|
7691
7695
|
if (!r) continue;
|
|
7692
7696
|
let e = [...n, r];
|
|
7693
7697
|
if (r.value === t) return e;
|
|
7694
|
-
let i =
|
|
7698
|
+
let i = Bl(r.children, t, e);
|
|
7695
7699
|
if (i) return i;
|
|
7696
7700
|
}
|
|
7697
|
-
},
|
|
7698
|
-
let n =
|
|
7701
|
+
}, Vl = (e, t) => {
|
|
7702
|
+
let n = zl(t, e), r = n ? Ol(n, "") : void 0, i = n ? Dl(n) : null;
|
|
7699
7703
|
if (r && i !== null) return {
|
|
7700
7704
|
field: r,
|
|
7701
7705
|
value: i
|
|
7702
7706
|
};
|
|
7703
|
-
let a =
|
|
7707
|
+
let a = Tl(e);
|
|
7704
7708
|
return {
|
|
7705
7709
|
field: a?.field,
|
|
7706
7710
|
value: a?.value ?? e
|
|
7707
7711
|
};
|
|
7708
|
-
},
|
|
7712
|
+
}, Hl = (e, t, n) => {
|
|
7709
7713
|
let r = (e) => {
|
|
7710
7714
|
if (!e) return;
|
|
7711
|
-
let i =
|
|
7715
|
+
let i = Ol(e, ""), a = Dl(e);
|
|
7712
7716
|
if (i === t && a === n) return e.value;
|
|
7713
7717
|
for (let t of e.children ?? []) {
|
|
7714
7718
|
let e = r(t);
|
|
@@ -7720,9 +7724,9 @@ var Ba = {
|
|
|
7720
7724
|
if (e) return e;
|
|
7721
7725
|
}
|
|
7722
7726
|
return `__${t}__${n}`;
|
|
7723
|
-
},
|
|
7727
|
+
}, Ul = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...Ul(e.children)]), Wl = (e, t) => {
|
|
7724
7728
|
if (e.state !== "selected") return null;
|
|
7725
|
-
let { field: n, value: r } =
|
|
7729
|
+
let { field: n, value: r } = Vl(e.id, t);
|
|
7726
7730
|
if (!n) return null;
|
|
7727
7731
|
let i = [{
|
|
7728
7732
|
colId: n,
|
|
@@ -7730,8 +7734,8 @@ var Ba = {
|
|
|
7730
7734
|
filterType: "text",
|
|
7731
7735
|
type: "equals"
|
|
7732
7736
|
}];
|
|
7733
|
-
for (let n of
|
|
7734
|
-
let e =
|
|
7737
|
+
for (let n of Ul(e.children)) {
|
|
7738
|
+
let e = Vl(n.id, t);
|
|
7735
7739
|
e.field && i.push({
|
|
7736
7740
|
colId: e.field,
|
|
7737
7741
|
filter: e.value,
|
|
@@ -7744,10 +7748,10 @@ var Ba = {
|
|
|
7744
7748
|
filterType: "join",
|
|
7745
7749
|
type: "AND"
|
|
7746
7750
|
};
|
|
7747
|
-
},
|
|
7748
|
-
let t =
|
|
7751
|
+
}, Gl = (e) => {
|
|
7752
|
+
let t = Il(e.colDef), n = Nl(e.baseModel, t);
|
|
7749
7753
|
if (!t.length) return n;
|
|
7750
|
-
let r = e.state.map((t) =>
|
|
7754
|
+
let r = e.state.map((t) => Wl(t, e.options)).filter((e) => !!e);
|
|
7751
7755
|
if (!r.length) return n;
|
|
7752
7756
|
let i = r.length === 1 ? r[0] : {
|
|
7753
7757
|
conditions: r,
|
|
@@ -7759,17 +7763,17 @@ var Ba = {
|
|
|
7759
7763
|
filterType: "join",
|
|
7760
7764
|
type: "AND"
|
|
7761
7765
|
} : i;
|
|
7762
|
-
},
|
|
7766
|
+
}, Kl = (e, t, n) => {
|
|
7763
7767
|
if (!e) return [];
|
|
7764
7768
|
let r = e;
|
|
7765
|
-
if (
|
|
7769
|
+
if (jl(e)) {
|
|
7766
7770
|
let e = r.conditions ?? [];
|
|
7767
7771
|
if (r.type === "AND") {
|
|
7768
7772
|
let r = e.find((e) => {
|
|
7769
7773
|
let r = e;
|
|
7770
7774
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7771
7775
|
});
|
|
7772
|
-
return e.flatMap((e) =>
|
|
7776
|
+
return e.flatMap((e) => Kl(e, t, n).map((e) => ({
|
|
7773
7777
|
...e,
|
|
7774
7778
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7775
7779
|
colId: r.colId,
|
|
@@ -7777,20 +7781,20 @@ var Ba = {
|
|
|
7777
7781
|
} : void 0)
|
|
7778
7782
|
})));
|
|
7779
7783
|
}
|
|
7780
|
-
return e.flatMap((e) =>
|
|
7784
|
+
return e.flatMap((e) => Kl(e, t, n));
|
|
7781
7785
|
}
|
|
7782
7786
|
return r.colId && t.has(r.colId) ? [{
|
|
7783
7787
|
colId: r.colId,
|
|
7784
7788
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7785
7789
|
type: r.type
|
|
7786
7790
|
}] : [];
|
|
7787
|
-
},
|
|
7788
|
-
let t =
|
|
7791
|
+
}, ql = (e) => {
|
|
7792
|
+
let t = Il(e.colDef);
|
|
7789
7793
|
if (!t.length) return [];
|
|
7790
|
-
let n = new Set(
|
|
7794
|
+
let n = new Set(Fl(e.colDef.context?.aggregateFieldHierarchy)), r = Ll(e.colDef), i = Kl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7791
7795
|
for (let t of i) {
|
|
7792
7796
|
if (!t.filter) continue;
|
|
7793
|
-
let n =
|
|
7797
|
+
let n = Hl(e.options, t.colId, String(t.filter));
|
|
7794
7798
|
if (t.type === "equals") {
|
|
7795
7799
|
let e = a.get(n);
|
|
7796
7800
|
a.set(n, {
|
|
@@ -7801,7 +7805,7 @@ var Ba = {
|
|
|
7801
7805
|
continue;
|
|
7802
7806
|
}
|
|
7803
7807
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7804
|
-
let r =
|
|
7808
|
+
let r = Hl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7805
7809
|
children: [],
|
|
7806
7810
|
id: r,
|
|
7807
7811
|
state: "selected"
|
|
@@ -7813,155 +7817,155 @@ var Ba = {
|
|
|
7813
7817
|
}
|
|
7814
7818
|
}
|
|
7815
7819
|
return [...a.values()];
|
|
7816
|
-
},
|
|
7817
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
7820
|
+
}, Jl = (e) => {
|
|
7821
|
+
let t = /* @__PURE__ */ new Map(), n = Il(e.colDef);
|
|
7818
7822
|
if (!n.length) return t;
|
|
7819
|
-
let r =
|
|
7823
|
+
let r = Kl(e.model, new Set(n), new Set(Fl(e.colDef.context?.aggregateFieldHierarchy)));
|
|
7820
7824
|
for (let e of r) {
|
|
7821
7825
|
if (e.type !== "equals" || !e.filter) continue;
|
|
7822
7826
|
let n = t.get(e.colId) ?? [];
|
|
7823
7827
|
n.includes(e.filter) || n.push(e.filter), t.set(e.colId, n);
|
|
7824
7828
|
}
|
|
7825
7829
|
return t;
|
|
7826
|
-
},
|
|
7830
|
+
}, Yl = (e) => e.map((e) => ({
|
|
7827
7831
|
...e,
|
|
7828
7832
|
children: e.children?.map((e) => ({
|
|
7829
7833
|
...e,
|
|
7830
|
-
children: e.children ?
|
|
7834
|
+
children: e.children ? Yl(e.children) : void 0
|
|
7831
7835
|
}))
|
|
7832
|
-
})),
|
|
7836
|
+
})), Xl = (e, t) => e.flatMap((e) => {
|
|
7833
7837
|
if (e.id === t) return [];
|
|
7834
|
-
let n = e.children ?
|
|
7838
|
+
let n = e.children ? Xl(e.children, t) : void 0;
|
|
7835
7839
|
return [{
|
|
7836
7840
|
...e,
|
|
7837
7841
|
children: n?.length ? n : void 0
|
|
7838
7842
|
}];
|
|
7839
|
-
}),
|
|
7843
|
+
}), Zl = (e, t) => {
|
|
7840
7844
|
for (let n of e) {
|
|
7841
7845
|
if (n.id === t) return n;
|
|
7842
|
-
let e = n.children ?
|
|
7846
|
+
let e = n.children ? Zl(n.children, t) : void 0;
|
|
7843
7847
|
if (e) return e;
|
|
7844
7848
|
}
|
|
7845
|
-
},
|
|
7846
|
-
let r = (
|
|
7849
|
+
}, Ql = (e) => !!e.children?.length || (e.totalChildCount ?? 0) > 0, $l = (e, t) => [...Xl(e, t.id), t], eu = (e) => (e.children ?? []).flatMap((e) => [e.value, ...eu(e)]), tu = (e, t) => eu(t).reduce((e, t) => Xl(e, t), e), nu = (e, t) => [t.value, ...eu(t)].reduce((e, t) => Xl(e, t), e), ru = (e, t, n) => {
|
|
7850
|
+
let r = (Bl(n, t.value) ?? []).slice(0, -1).reverse();
|
|
7847
7851
|
for (let t of r) {
|
|
7848
|
-
let n =
|
|
7852
|
+
let n = Zl(e, t.value);
|
|
7849
7853
|
if (n?.state === "selected") return n;
|
|
7850
7854
|
}
|
|
7851
|
-
},
|
|
7852
|
-
let t =
|
|
7855
|
+
}, iu = (e) => {
|
|
7856
|
+
let t = Yl(e.state), n = ru(t, e.option, e.options);
|
|
7853
7857
|
if (n) {
|
|
7854
7858
|
let r = n.children ?? [];
|
|
7855
|
-
return n.children = e.checked ?
|
|
7859
|
+
return n.children = e.checked ? nu(r, e.option) : [...nu(r, e.option), {
|
|
7856
7860
|
id: e.option.value,
|
|
7857
7861
|
state: "deselected"
|
|
7858
7862
|
}], n.children.length || delete n.children, t;
|
|
7859
7863
|
}
|
|
7860
|
-
return
|
|
7864
|
+
return Ql(e.option) ? e.checked ? $l(tu(t, e.option), {
|
|
7861
7865
|
id: e.option.value,
|
|
7862
7866
|
state: "selected"
|
|
7863
|
-
}) :
|
|
7867
|
+
}) : Xl(t, e.option.value) : e.checked ? $l(t, {
|
|
7864
7868
|
id: e.option.value,
|
|
7865
7869
|
state: "selected"
|
|
7866
|
-
}) :
|
|
7867
|
-
},
|
|
7870
|
+
}) : Xl(t, e.option.value);
|
|
7871
|
+
}, au = (e) => {
|
|
7868
7872
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
7869
7873
|
for (let r of e ?? []) t.set(r.id, r), n(r.children);
|
|
7870
7874
|
};
|
|
7871
7875
|
return n(e), t;
|
|
7872
|
-
},
|
|
7873
|
-
let t =
|
|
7876
|
+
}, ou = (e) => {
|
|
7877
|
+
let t = au(e.state), n = /* @__PURE__ */ new Map(), r = (e, i) => {
|
|
7874
7878
|
let a = t.get(e.value), o = a?.state === "selected" || i && a?.state !== "deselected", s = (e.children ?? []).map((e) => r(e, o)), c = s.some((e) => e.selected || e.indeterminate), l = s.some((e) => !e.selected || e.indeterminate), u = {
|
|
7875
|
-
indeterminate:
|
|
7879
|
+
indeterminate: Ul(a?.children).length > 0 || !o && c || o && l,
|
|
7876
7880
|
selected: o
|
|
7877
7881
|
};
|
|
7878
7882
|
return n.set(e.value, u), u;
|
|
7879
7883
|
};
|
|
7880
7884
|
for (let t of e.options ?? []) t && r(t, !1);
|
|
7881
7885
|
return n;
|
|
7882
|
-
},
|
|
7886
|
+
}, su = (e) => ou(e).get(e.option.value) ?? ou({
|
|
7883
7887
|
options: [e.option],
|
|
7884
7888
|
state: e.state
|
|
7885
7889
|
}).get(e.option.value) ?? {
|
|
7886
7890
|
indeterminate: !1,
|
|
7887
7891
|
selected: !1
|
|
7888
|
-
},
|
|
7892
|
+
}, cu = (e) => e.state.flatMap((t) => {
|
|
7889
7893
|
if (t.state !== "selected") return [];
|
|
7890
|
-
let n =
|
|
7894
|
+
let n = zl(e.options, t.id);
|
|
7891
7895
|
if (n) return [n];
|
|
7892
|
-
let { field: r, value: i } =
|
|
7896
|
+
let { field: r, value: i } = Vl(t.id, e.options);
|
|
7893
7897
|
return [{
|
|
7894
7898
|
colField: r,
|
|
7895
7899
|
label: i,
|
|
7896
7900
|
metadata: { rawValue: i },
|
|
7897
|
-
value: r ?
|
|
7901
|
+
value: r ? El(r, i) : t.id
|
|
7898
7902
|
}];
|
|
7899
|
-
}),
|
|
7903
|
+
}), lu = (e) => e.filter((e) => e.state === "selected").length, uu = ["open"], du = {
|
|
7900
7904
|
class: "pv-flex pv-text-body-md",
|
|
7901
7905
|
style: {
|
|
7902
7906
|
"--flex-align": "center",
|
|
7903
7907
|
"--flex-gap": "0.5rem"
|
|
7904
7908
|
}
|
|
7905
|
-
},
|
|
7909
|
+
}, fu = {
|
|
7906
7910
|
key: 1,
|
|
7907
7911
|
class: "pv-filter-panel-refresh-status",
|
|
7908
7912
|
"data-testid": "pv-filter-panel-refresh-status",
|
|
7909
7913
|
role: "status"
|
|
7910
|
-
},
|
|
7914
|
+
}, pu = { class: "pv-visually-hidden" }, mu = ["aria-busy"], hu = {
|
|
7911
7915
|
key: 0,
|
|
7912
7916
|
class: "pv-flex-vertical",
|
|
7913
7917
|
style: {
|
|
7914
7918
|
"--flex-align": "stretch",
|
|
7915
7919
|
"--flex-gap": "0.5rem"
|
|
7916
7920
|
}
|
|
7917
|
-
},
|
|
7921
|
+
}, gu = {
|
|
7918
7922
|
key: 0,
|
|
7919
7923
|
class: "pv-flex",
|
|
7920
7924
|
style: {
|
|
7921
7925
|
"--flex-gap": "0.5rem",
|
|
7922
7926
|
"--flex-wrap": "wrap"
|
|
7923
7927
|
}
|
|
7924
|
-
},
|
|
7928
|
+
}, _u = {
|
|
7925
7929
|
key: 1,
|
|
7926
7930
|
class: "pv-flex",
|
|
7927
7931
|
style: { "--flex-justify": "flex-end" }
|
|
7928
|
-
},
|
|
7932
|
+
}, vu = {
|
|
7929
7933
|
key: 2,
|
|
7930
7934
|
class: "pv-flex-vertical",
|
|
7931
7935
|
style: {
|
|
7932
7936
|
"--flex-align": "stretch",
|
|
7933
7937
|
"--flex-gap": "0.5rem"
|
|
7934
7938
|
}
|
|
7935
|
-
},
|
|
7939
|
+
}, yu = {
|
|
7936
7940
|
key: 3,
|
|
7937
7941
|
class: "pv-flex pv-text-body-xs pv-text-subdued"
|
|
7938
|
-
},
|
|
7942
|
+
}, bu = { key: 0 }, xu = {
|
|
7939
7943
|
key: 1,
|
|
7940
7944
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7941
7945
|
style: { margin: "0" }
|
|
7942
|
-
},
|
|
7946
|
+
}, Su = {
|
|
7943
7947
|
key: 1,
|
|
7944
7948
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7945
7949
|
style: { margin: "0" }
|
|
7946
|
-
},
|
|
7950
|
+
}, Cu = {
|
|
7947
7951
|
key: 2,
|
|
7948
7952
|
class: "pv-flex-vertical",
|
|
7949
7953
|
style: {
|
|
7950
7954
|
"--flex-align": "stretch",
|
|
7951
7955
|
"--flex-gap": "0.5rem"
|
|
7952
7956
|
}
|
|
7953
|
-
},
|
|
7957
|
+
}, wu = { key: 0 }, Tu = {
|
|
7954
7958
|
class: "pv-text-title-sm pv-text-subdued suggested-title-label",
|
|
7955
7959
|
style: { margin: "0" }
|
|
7956
|
-
},
|
|
7960
|
+
}, Eu = {
|
|
7957
7961
|
key: 1,
|
|
7958
7962
|
class: "pv-text-title-sm pv-text-subdued",
|
|
7959
7963
|
style: { margin: "0" }
|
|
7960
|
-
},
|
|
7964
|
+
}, Du = {
|
|
7961
7965
|
key: 2,
|
|
7962
7966
|
class: "pv-text-body-xs pv-text-subdued",
|
|
7963
7967
|
style: { margin: "0" }
|
|
7964
|
-
},
|
|
7968
|
+
}, Ou = {
|
|
7965
7969
|
key: 3,
|
|
7966
7970
|
class: "pv-flex-vertical",
|
|
7967
7971
|
"data-testid": "pv-filter-panel-boolean-control",
|
|
@@ -7969,14 +7973,14 @@ var Ba = {
|
|
|
7969
7973
|
"--flex-align": "stretch",
|
|
7970
7974
|
"--flex-gap": "0.5rem"
|
|
7971
7975
|
}
|
|
7972
|
-
},
|
|
7976
|
+
}, ku = {
|
|
7973
7977
|
class: "pv-flex",
|
|
7974
7978
|
style: {
|
|
7975
7979
|
"--flex-align": "center",
|
|
7976
7980
|
"--flex-gap": "0.5rem",
|
|
7977
7981
|
"--flex-wrap": "wrap"
|
|
7978
7982
|
}
|
|
7979
|
-
},
|
|
7983
|
+
}, Au = {
|
|
7980
7984
|
key: 4,
|
|
7981
7985
|
class: "pv-flex",
|
|
7982
7986
|
"data-testid": "pv-filter-panel-exists-control",
|
|
@@ -7985,7 +7989,7 @@ var Ba = {
|
|
|
7985
7989
|
"--flex-gap": "0.5rem",
|
|
7986
7990
|
cursor: "pointer"
|
|
7987
7991
|
}
|
|
7988
|
-
},
|
|
7992
|
+
}, ju = { class: "pv-text-body-sm" }, Mu = 5, Nu = 500, Pu = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
7989
7993
|
__name: "PvFilterPanelAccordion",
|
|
7990
7994
|
props: {
|
|
7991
7995
|
disableWhileLoading: {
|
|
@@ -8003,7 +8007,7 @@ var Ba = {
|
|
|
8003
8007
|
"search-change"
|
|
8004
8008
|
],
|
|
8005
8009
|
setup(e, { emit: n }) {
|
|
8006
|
-
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(
|
|
8010
|
+
let c = e, d = n, f = k(null), p = k({}), m = k(0), h = z(), g = k(c.filter.searchQuery ?? ""), v = k(Mu), y = r(() => c.filter.existsLabel ?? `Has ${c.filter.label}`), S = r(() => c.filter.valueLabels?.false ?? "No"), C = r(() => c.filter.options ?? []), w = r(() => [...c.filter.knownOptions ?? [], ...C.value]), T = r(() => c.filter.type ?? "value"), E = r(() => T.value === "value"), O = r(() => E.value && c.filter.isAggregate === !0), j = r(() => c.filter.aggregateSelectionState ?? []), M = r(() => g.value.trim().toLowerCase()), P = r(() => c.filter.selectedValues ?? []), F = r(() => new Set(P.value)), R = r(() => c.filter.valueLabels?.true ?? "Yes"), B = r(() => c.filter.filterOptionsSortDescription || "Suggested"), V = r(() => c.filter.disabled === !0 || c.disableWhileLoading && c.filter.isLoading === !0), H = r(() => {
|
|
8007
8011
|
let e = c.filter.valueLabels, t = typeof e?.true == "string", n = typeof e?.false == "string";
|
|
8008
8012
|
return t && !n ? [{
|
|
8009
8013
|
label: R.value,
|
|
@@ -8028,7 +8032,7 @@ var Ba = {
|
|
|
8028
8032
|
e.matchedValue,
|
|
8029
8033
|
e.matchedField
|
|
8030
8034
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
8031
|
-
}, U = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ?
|
|
8035
|
+
}, U = r(() => T.value === "range" ? c.filter.rangeValue?.min !== null && c.filter.rangeValue?.min !== void 0 || c.filter.rangeValue?.max !== null && c.filter.rangeValue?.max !== void 0 ? 1 : void 0 : T.value === "boolean" ? c.filter.booleanValue !== null && c.filter.booleanValue !== void 0 ? 1 : void 0 : T.value === "exists" ? c.filter.existsValue ? 1 : void 0 : O.value ? lu(j.value) || void 0 : P.value.length || void 0), W = (e) => e.totalChildCount === null || e.totalChildCount === void 0 ? !1 : e.totalChildCount > (e.children?.length ?? 0), G = (e, t = 0) => e.flatMap((e) => [
|
|
8032
8036
|
{
|
|
8033
8037
|
depth: t,
|
|
8034
8038
|
kind: "option",
|
|
@@ -8053,16 +8057,16 @@ var Ba = {
|
|
|
8053
8057
|
re.value = O.value || c.filter.singleSelect ? [] : [...P.value];
|
|
8054
8058
|
};
|
|
8055
8059
|
se();
|
|
8056
|
-
let ce = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ie.value.has(e.option.value))), X = r(() => ce.value.length > v.value), le = r(() => X.value || c.filter.hasMore), ue = r(() => ce.value.slice(0, v.value)), fe = r(() => O.value ?
|
|
8060
|
+
let ce = r(() => O.value || c.filter.singleSelect ? te.value : te.value.filter((e) => e.kind === "child-load-more" || !ie.value.has(e.option.value))), X = r(() => ce.value.length > v.value), le = r(() => X.value || c.filter.hasMore), ue = r(() => ce.value.slice(0, v.value)), fe = r(() => O.value ? ou({
|
|
8057
8061
|
options: w.value,
|
|
8058
8062
|
state: j.value
|
|
8059
|
-
}) : /* @__PURE__ */ new Map()), Z = (e) =>
|
|
8063
|
+
}) : /* @__PURE__ */ new Map()), Z = (e) => yl(e, c.filter.colDef), pe = (e) => bl(e), me = (e) => O.value ? fe.value.get(e.value) ?? {
|
|
8060
8064
|
indeterminate: !1,
|
|
8061
8065
|
selected: !1
|
|
8062
8066
|
} : {
|
|
8063
8067
|
indeterminate: !1,
|
|
8064
8068
|
selected: F.value.has(e.value)
|
|
8065
|
-
}, he = (e) => me(e).selected, ge = (e) => me(e).indeterminate, _e = (e) =>
|
|
8069
|
+
}, he = (e) => me(e).selected, ge = (e) => me(e).indeterminate, _e = (e) => Dl(e) ?? e.value, ve = (e) => Ol(e, c.filter.key), ye = (e) => {
|
|
8066
8070
|
let t = ve(e), n = _e(e);
|
|
8067
8071
|
return c.filter.focusedValuesByField?.[t]?.includes(n) || t === c.filter.key && c.filter.focusedValues?.includes(e.value) || !1;
|
|
8068
8072
|
}, be = (e) => ({
|
|
@@ -8091,7 +8095,7 @@ var Ba = {
|
|
|
8091
8095
|
rowsLoading: c.filter.isLoading
|
|
8092
8096
|
}
|
|
8093
8097
|
})), we = () => {
|
|
8094
|
-
V.value || (X.value ? v.value +=
|
|
8098
|
+
V.value || (X.value ? v.value += Mu : c.filter.hasMore && d("load-more", g.value.trim()));
|
|
8095
8099
|
}, Te = (e) => {
|
|
8096
8100
|
V.value || d("load-more", g.value.trim(), e.value);
|
|
8097
8101
|
}, Ee = (e) => {
|
|
@@ -8117,7 +8121,7 @@ var Ba = {
|
|
|
8117
8121
|
if (O.value) {
|
|
8118
8122
|
d("filter-change", {
|
|
8119
8123
|
type: "aggregate-selection",
|
|
8120
|
-
value:
|
|
8124
|
+
value: iu({
|
|
8121
8125
|
checked: t,
|
|
8122
8126
|
option: e,
|
|
8123
8127
|
options: w.value,
|
|
@@ -8145,12 +8149,12 @@ var Ba = {
|
|
|
8145
8149
|
V.value || d("handle-settings-icon", c.filter.key, c.filter.colDef);
|
|
8146
8150
|
};
|
|
8147
8151
|
K([g, () => c.filter.key], () => {
|
|
8148
|
-
v.value =
|
|
8152
|
+
v.value = Mu;
|
|
8149
8153
|
});
|
|
8150
8154
|
let Fe = () => {
|
|
8151
|
-
let e =
|
|
8155
|
+
let e = kl(w.value), t = { ...p.value }, n = new Map(Object.entries(t));
|
|
8152
8156
|
for (let t of e) n.delete(t.value), n.set(t.value, t);
|
|
8153
|
-
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size -
|
|
8157
|
+
p.value = Object.fromEntries([...n.entries()].slice(Math.max(0, n.size - Nu)));
|
|
8154
8158
|
};
|
|
8155
8159
|
return K(w, () => {
|
|
8156
8160
|
c.filter.isOpen && Fe();
|
|
@@ -8177,7 +8181,7 @@ var Ba = {
|
|
|
8177
8181
|
"data-testid": "pv-filter-panel-accordion",
|
|
8178
8182
|
open: e.filter.isOpen,
|
|
8179
8183
|
onToggle: Ee
|
|
8180
|
-
}, [s("summary",
|
|
8184
|
+
}, [s("summary", du, [
|
|
8181
8185
|
u(Q, {
|
|
8182
8186
|
"aria-hidden": "true",
|
|
8183
8187
|
class: "pv-text-subdued",
|
|
@@ -8190,7 +8194,7 @@ var Ba = {
|
|
|
8190
8194
|
size: "sm",
|
|
8191
8195
|
variant: "secondary"
|
|
8192
8196
|
}, null, 8, ["value"])) : a("", !0),
|
|
8193
|
-
oe.value ? (D(), o("span",
|
|
8197
|
+
oe.value ? (D(), o("span", fu, [u(Me, { size: "sm" }), s("span", pu, I(e.filter.loadingText || `Updating ${e.filter.label} options`), 1)])) : a("", !0)
|
|
8194
8198
|
]), s("div", {
|
|
8195
8199
|
ref_key: "filterContent",
|
|
8196
8200
|
ref: f,
|
|
@@ -8201,8 +8205,8 @@ var Ba = {
|
|
|
8201
8205
|
minHeight: m.value ? `${m.value}px` : void 0
|
|
8202
8206
|
})
|
|
8203
8207
|
}, [E.value ? (D(), o(t, { key: 0 }, [
|
|
8204
|
-
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div",
|
|
8205
|
-
e.filter.filterGroupOptions?.length ? (D(), o("div",
|
|
8208
|
+
e.filter.filterGroupOptions?.length || e.filter.displayPreferencesIcon || e.filter.filterHeaderRenderer ? (D(), o("div", hu, [
|
|
8209
|
+
e.filter.filterGroupOptions?.length ? (D(), o("div", gu, [(D(!0), o(t, null, A(e.filter.filterGroupOptions, (e) => (D(), i($, {
|
|
8206
8210
|
key: e.field,
|
|
8207
8211
|
disabled: V.value,
|
|
8208
8212
|
label: e.label,
|
|
@@ -8215,7 +8219,7 @@ var Ba = {
|
|
|
8215
8219
|
"variant",
|
|
8216
8220
|
"onClick"
|
|
8217
8221
|
]))), 128))])) : a("", !0),
|
|
8218
|
-
e.filter.displayPreferencesIcon ? (D(), o("div",
|
|
8222
|
+
e.filter.displayPreferencesIcon ? (D(), o("div", _u, [u($, {
|
|
8219
8223
|
ariaLabel: "Open preferences",
|
|
8220
8224
|
disabled: V.value,
|
|
8221
8225
|
leftIcon: "sliders-horizontal",
|
|
@@ -8237,7 +8241,7 @@ var Ba = {
|
|
|
8237
8241
|
"disabled",
|
|
8238
8242
|
"placeholder"
|
|
8239
8243
|
])),
|
|
8240
|
-
ae.value.length ? (D(), o("div",
|
|
8244
|
+
ae.value.length ? (D(), o("div", vu, [(D(!0), o(t, null, A(ae.value, (t) => (D(), i(ll, {
|
|
8241
8245
|
key: t.value,
|
|
8242
8246
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8243
8247
|
disabled: V.value || t.isSelectable === !1,
|
|
@@ -8275,10 +8279,10 @@ var Ba = {
|
|
|
8275
8279
|
"onFocusValue",
|
|
8276
8280
|
"onToggleValue"
|
|
8277
8281
|
]))), 128))])) : a("", !0),
|
|
8278
|
-
e.filter.isLoading && !Y.value ? (D(), o("div",
|
|
8279
|
-
!C.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p",
|
|
8280
|
-
ce.value.length || le.value ? (D(), o("div",
|
|
8281
|
-
ce.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div",
|
|
8282
|
+
e.filter.isLoading && !Y.value ? (D(), o("div", yu, [u(Me, { size: "sm" }), e.filter.loadingText ? (D(), o("span", bu, I(e.filter.loadingText), 1)) : a("", !0)])) : (D(), o(t, { key: 4 }, [
|
|
8283
|
+
!C.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 0 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-values" }), null, 16)) : (D(), o("p", xu, "No values available."))], 64)) : !te.value.length && !ae.value.length && !le.value ? (D(), o(t, { key: 1 }, [e.filter.emptyResultsRenderer ? (D(), i(N(e.filter.emptyResultsRenderer), _({ key: 0 }, Ce.value, { "empty-reason": "no-matches" }), null, 16)) : (D(), o("p", Su, "No matching values."))], 64)) : a("", !0),
|
|
8284
|
+
ce.value.length || le.value ? (D(), o("div", Cu, [
|
|
8285
|
+
ce.value.length && !e.filter.hideOptionsSortDescription ? (D(), o("div", wu, [e.filter.filterOptionsSortTooltip ? (D(), i(ir, {
|
|
8282
8286
|
key: 0,
|
|
8283
8287
|
variant: "dark",
|
|
8284
8288
|
disableInteractive: !0,
|
|
@@ -8287,11 +8291,11 @@ var Ba = {
|
|
|
8287
8291
|
"use-teleport": !0,
|
|
8288
8292
|
style: { "--max-width": "200px" }
|
|
8289
8293
|
}, {
|
|
8290
|
-
trigger: q(() => [s("p",
|
|
8294
|
+
trigger: q(() => [s("p", Tu, I(B.value), 1)]),
|
|
8291
8295
|
content: q(() => [l(I(e.filter.filterOptionsSortTooltip), 1)]),
|
|
8292
8296
|
_: 1
|
|
8293
|
-
})) : (D(), o("p",
|
|
8294
|
-
(D(!0), o(t, null, A(ue.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(
|
|
8297
|
+
})) : (D(), o("p", Eu, I(B.value), 1))])) : a("", !0),
|
|
8298
|
+
(D(!0), o(t, null, A(ue.value, (n) => (D(), o(t, { key: n.kind === "option" ? n.option.value : `${n.parent.value}-children-more` }, [n.kind === "option" ? (D(), i(ll, {
|
|
8295
8299
|
key: 0,
|
|
8296
8300
|
control: e.filter.singleSelect ? "radio" : "checkbox",
|
|
8297
8301
|
depth: n.depth,
|
|
@@ -8358,7 +8362,7 @@ var Ba = {
|
|
|
8358
8362
|
])) : a("", !0),
|
|
8359
8363
|
e.filter.filterFooterRenderer ? (D(), i(N(e.filter.filterFooterRenderer), b(_({ key: 3 }, Ce.value)), null, 16)) : a("", !0)
|
|
8360
8364
|
], 64))
|
|
8361
|
-
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(
|
|
8365
|
+
], 64)) : T.value === "range" && e.filter.rangeMin !== null && e.filter.rangeMax !== null ? (D(), i(nl, {
|
|
8362
8366
|
key: 1,
|
|
8363
8367
|
mode: "dual",
|
|
8364
8368
|
rangeValue: e.filter.rangeValue,
|
|
@@ -8385,7 +8389,7 @@ var Ba = {
|
|
|
8385
8389
|
"slider-step",
|
|
8386
8390
|
"step",
|
|
8387
8391
|
"value-decimals"
|
|
8388
|
-
])) : T.value === "range" ? (D(), o("p",
|
|
8392
|
+
])) : T.value === "range" ? (D(), o("p", Du, " Range filters require minimum and maximum bounds. ")) : T.value === "boolean" ? (D(), o("div", Ou, [s("div", ku, [(D(!0), o(t, null, A(H.value, (t) => (D(), i($, {
|
|
8389
8393
|
key: String(t.value),
|
|
8390
8394
|
disabled: V.value,
|
|
8391
8395
|
label: t.label,
|
|
@@ -8403,43 +8407,43 @@ var Ba = {
|
|
|
8403
8407
|
label: "Clear",
|
|
8404
8408
|
variant: "ghost",
|
|
8405
8409
|
onClick: r[1] ||= (e) => De(null)
|
|
8406
|
-
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label",
|
|
8410
|
+
}, null, 8, ["disabled"])) : a("", !0)])) : T.value === "exists" ? (D(), o("label", Au, [u(ps, {
|
|
8407
8411
|
disabled: V.value,
|
|
8408
8412
|
modelValue: e.filter.existsValue ?? !1,
|
|
8409
8413
|
"onUpdate:modelValue": Oe
|
|
8410
|
-
}, null, 8, ["disabled", "modelValue"]), s("span",
|
|
8414
|
+
}, null, 8, ["disabled", "modelValue"]), s("span", ju, I(y.value), 1)])) : a("", !0)], 12, mu)], 40, uu));
|
|
8411
8415
|
}
|
|
8412
|
-
}), [["__scopeId", "data-v-073616dc"]]),
|
|
8416
|
+
}), [["__scopeId", "data-v-073616dc"]]), Fu = {
|
|
8413
8417
|
class: "pv-flex-vertical pv-inset-square-8",
|
|
8414
8418
|
"data-testid": "pv-filter-panel-applied-section",
|
|
8415
8419
|
style: {
|
|
8416
8420
|
"--flex-align": "stretch",
|
|
8417
8421
|
"--flex-gap": "1rem"
|
|
8418
8422
|
}
|
|
8419
|
-
},
|
|
8423
|
+
}, Iu = {
|
|
8420
8424
|
key: 0,
|
|
8421
8425
|
class: "pv-flex-vertical",
|
|
8422
8426
|
style: {
|
|
8423
8427
|
"--flex-align": "stretch",
|
|
8424
8428
|
"--flex-gap": "1rem"
|
|
8425
8429
|
}
|
|
8426
|
-
},
|
|
8430
|
+
}, Lu = { class: "pv-text-title-md" }, Ru = {
|
|
8427
8431
|
class: "pv-flex",
|
|
8428
8432
|
style: {
|
|
8429
8433
|
"--flex-gap": "0.375rem",
|
|
8430
8434
|
"--flex-wrap": "wrap"
|
|
8431
8435
|
}
|
|
8432
|
-
},
|
|
8436
|
+
}, zu = { class: "pv-text-title-md" }, Bu = {
|
|
8433
8437
|
class: "pv-flex",
|
|
8434
8438
|
style: {
|
|
8435
8439
|
"--flex-gap": "0.375rem",
|
|
8436
8440
|
"--flex-wrap": "wrap"
|
|
8437
8441
|
}
|
|
8438
|
-
},
|
|
8442
|
+
}, Vu = {
|
|
8439
8443
|
key: 1,
|
|
8440
8444
|
class: "pv-text-body-sm pv-text-subdued",
|
|
8441
8445
|
style: { margin: "0" }
|
|
8442
|
-
},
|
|
8446
|
+
}, Hu = /* @__PURE__ */ d({
|
|
8443
8447
|
__name: "PvFilterPanelAppliedFiltersSection",
|
|
8444
8448
|
props: {
|
|
8445
8449
|
appliedCount: { default: 0 },
|
|
@@ -8455,7 +8459,7 @@ var Ba = {
|
|
|
8455
8459
|
let a = e, c = n, l = r(() => a.externalFilters.filter((e) => e.values.length > 0)), u = r(() => a.appliedCount > 0 || l.value.length > 0), d = (e) => !a.readOnly && e.removable !== !1, f = (e, t) => {
|
|
8456
8460
|
c("remove-filter", t.field ?? e, t.value, t.type);
|
|
8457
8461
|
};
|
|
8458
|
-
return (n, r) => (D(), o("section",
|
|
8462
|
+
return (n, r) => (D(), o("section", Fu, [u.value ? (D(), o("div", Iu, [(D(!0), o(t, null, A(l.value, (e) => (D(), o("div", {
|
|
8459
8463
|
key: `external-${e.key}`,
|
|
8460
8464
|
class: "pv-flex-vertical pv-border-bottom",
|
|
8461
8465
|
"data-testid": "pv-filter-panel-external-filter-group",
|
|
@@ -8464,7 +8468,7 @@ var Ba = {
|
|
|
8464
8468
|
"--flex-gap": "12px",
|
|
8465
8469
|
"padding-bottom": "12px"
|
|
8466
8470
|
}
|
|
8467
|
-
}, [s("span",
|
|
8471
|
+
}, [s("span", Lu, I(e.label), 1), s("div", Ru, [(D(!0), o(t, null, A(e.values, (t) => (D(), i(br, {
|
|
8468
8472
|
key: `${e.key}-${t.value}`,
|
|
8469
8473
|
label: t.label,
|
|
8470
8474
|
showClear: d(e),
|
|
@@ -8481,7 +8485,7 @@ var Ba = {
|
|
|
8481
8485
|
"--flex-gap": "12px",
|
|
8482
8486
|
"padding-bottom": "12px"
|
|
8483
8487
|
}
|
|
8484
|
-
}, [s("span",
|
|
8488
|
+
}, [s("span", zu, I(n.label), 1), s("div", Bu, [(D(!0), o(t, null, A(n.values, (t) => (D(), i(br, {
|
|
8485
8489
|
key: `${t.field ?? n.key}-${t.type ?? "value"}-${t.value}`,
|
|
8486
8490
|
label: t.label,
|
|
8487
8491
|
showClear: !e.readOnly,
|
|
@@ -8490,9 +8494,9 @@ var Ba = {
|
|
|
8490
8494
|
"label",
|
|
8491
8495
|
"showClear",
|
|
8492
8496
|
"onHandleClose"
|
|
8493
|
-
]))), 128))])]))), 128))])) : (D(), o("p",
|
|
8497
|
+
]))), 128))])]))), 128))])) : (D(), o("p", Vu, "No filters applied yet."))]));
|
|
8494
8498
|
}
|
|
8495
|
-
}),
|
|
8499
|
+
}), Uu = { class: "pv-horizontal-scroller" }, Wu = ["aria-label"], Gu = 1, Ku = /* @__PURE__ */ d({
|
|
8496
8500
|
__name: "PvHorizontalScroller",
|
|
8497
8501
|
props: {
|
|
8498
8502
|
ariaLabel: { default: "Scrollable content" },
|
|
@@ -8516,7 +8520,7 @@ var Ba = {
|
|
|
8516
8520
|
let e = u.value;
|
|
8517
8521
|
if (!e) return;
|
|
8518
8522
|
let t = Math.max(0, e.scrollWidth - e.clientWidth);
|
|
8519
|
-
n.value = e.scrollLeft >
|
|
8523
|
+
n.value = e.scrollLeft > Gu, c.value = e.scrollLeft < t - Gu;
|
|
8520
8524
|
}, h = () => {
|
|
8521
8525
|
d && (d.disconnect(), u.value && d.observe(u.value), l.value && d.observe(l.value));
|
|
8522
8526
|
}, g = () => {
|
|
@@ -8536,7 +8540,7 @@ var Ba = {
|
|
|
8536
8540
|
h(), g();
|
|
8537
8541
|
}), S(() => {
|
|
8538
8542
|
u.value?.removeEventListener("scroll", m), d?.disconnect(), f && window.removeEventListener("resize", m);
|
|
8539
|
-
}), (t, r) => (D(), o("div",
|
|
8543
|
+
}), (t, r) => (D(), o("div", Uu, [
|
|
8540
8544
|
s("div", {
|
|
8541
8545
|
ref_key: "scrollContainer",
|
|
8542
8546
|
ref: u,
|
|
@@ -8547,7 +8551,7 @@ var Ba = {
|
|
|
8547
8551
|
ref_key: "contentContainer",
|
|
8548
8552
|
ref: l,
|
|
8549
8553
|
class: "pv-horizontal-scroller-content"
|
|
8550
|
-
}, [j(t.$slots, "default")], 512)], 10,
|
|
8554
|
+
}, [j(t.$slots, "default")], 512)], 10, Wu),
|
|
8551
8555
|
s("div", { class: y(["pv-horizontal-scroller-control pv-horizontal-scroller-control-left", {
|
|
8552
8556
|
"pv-horizontal-scroller-control-hidden": !n.value,
|
|
8553
8557
|
"pv-horizontal-scroller-control-left-fade": e.showFades
|
|
@@ -8580,18 +8584,18 @@ var Ba = {
|
|
|
8580
8584
|
])) : a("", !0)], 2)
|
|
8581
8585
|
]));
|
|
8582
8586
|
}
|
|
8583
|
-
}),
|
|
8587
|
+
}), qu = {
|
|
8584
8588
|
key: 0,
|
|
8585
8589
|
class: "pv-border-bottom",
|
|
8586
8590
|
"data-testid": "pv-filter-panel-category-row"
|
|
8587
|
-
},
|
|
8591
|
+
}, Ju = {
|
|
8588
8592
|
class: "pv-flex",
|
|
8589
8593
|
style: {
|
|
8590
8594
|
"--flex-align": "center",
|
|
8591
8595
|
"--flex-gap": "8px",
|
|
8592
8596
|
padding: "8px 12px"
|
|
8593
8597
|
}
|
|
8594
|
-
},
|
|
8598
|
+
}, Yu = /* @__PURE__ */ d({
|
|
8595
8599
|
__name: "PvFilterPanelCategoryButtonRow",
|
|
8596
8600
|
props: /* @__PURE__ */ g({
|
|
8597
8601
|
allCategoriesLabel: { default: "All" },
|
|
@@ -8613,7 +8617,7 @@ var Ba = {
|
|
|
8613
8617
|
}, f = (e) => c.value === e ? "secondary" : "ghost";
|
|
8614
8618
|
return K(l, (e) => {
|
|
8615
8619
|
c.value !== null && !e.includes(c.value) && (c.value = null);
|
|
8616
|
-
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div",
|
|
8620
|
+
}, { immediate: !0 }), (n, r) => l.value.length ? (D(), o("div", qu, [u(Ku, {
|
|
8617
8621
|
ariaLabel: "Filter categories",
|
|
8618
8622
|
buttonSize: "lg",
|
|
8619
8623
|
buttonVariant: "ghost",
|
|
@@ -8622,7 +8626,7 @@ var Ba = {
|
|
|
8622
8626
|
rightAriaLabel: "Scroll filter categories right",
|
|
8623
8627
|
showFades: ""
|
|
8624
8628
|
}, {
|
|
8625
|
-
default: q(() => [s("div",
|
|
8629
|
+
default: q(() => [s("div", Ju, [u($, {
|
|
8626
8630
|
label: e.allCategoriesLabel,
|
|
8627
8631
|
variant: f(null),
|
|
8628
8632
|
onClick: r[0] ||= (e) => d(null)
|
|
@@ -8639,17 +8643,17 @@ var Ba = {
|
|
|
8639
8643
|
_: 1
|
|
8640
8644
|
})])) : a("", !0);
|
|
8641
8645
|
}
|
|
8642
|
-
}),
|
|
8646
|
+
}), Xu = (e, t, n) => {
|
|
8643
8647
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8644
8648
|
if (r.length <= 1) return "Search";
|
|
8645
8649
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8646
8650
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8647
|
-
},
|
|
8648
|
-
if (!r ||
|
|
8651
|
+
}, Zu = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Qu = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8652
|
+
if (!r || Zu(i) === Zu(r)) return e;
|
|
8649
8653
|
if (!a || !n) return r;
|
|
8650
8654
|
let o = t(n);
|
|
8651
8655
|
return o ? `${o}: ${r}` : r;
|
|
8652
|
-
},
|
|
8656
|
+
}, $u = () => ({
|
|
8653
8657
|
booleanValue: null,
|
|
8654
8658
|
existsValue: !1,
|
|
8655
8659
|
rangeValue: {
|
|
@@ -8657,15 +8661,15 @@ var Ba = {
|
|
|
8657
8661
|
min: null
|
|
8658
8662
|
},
|
|
8659
8663
|
values: []
|
|
8660
|
-
}),
|
|
8661
|
-
conditions: e.conditions.map(
|
|
8664
|
+
}), ed = (e) => typeof e == "object" && !!e && !Array.isArray(e), td = (e) => ed(e) && typeof e.colId == "string" && typeof e.filterType == "string" && typeof e.type == "string", nd = (e) => ed(e) && e.filterType === "join" && Array.isArray(e.conditions), rd = (e) => e, id = (e) => nd(e) ? {
|
|
8665
|
+
conditions: e.conditions.map(id),
|
|
8662
8666
|
filterType: "join",
|
|
8663
8667
|
type: e.type
|
|
8664
|
-
} : { ...e },
|
|
8665
|
-
if (
|
|
8666
|
-
if (
|
|
8668
|
+
} : { ...e }, ad = (e) => {
|
|
8669
|
+
if (!ed(e)) return null;
|
|
8670
|
+
if (nd(e)) {
|
|
8667
8671
|
let t = e.conditions.flatMap((e) => {
|
|
8668
|
-
let t =
|
|
8672
|
+
let t = ad(e);
|
|
8669
8673
|
return t ? [t] : [];
|
|
8670
8674
|
});
|
|
8671
8675
|
return t.length ? {
|
|
@@ -8674,43 +8678,43 @@ var Ba = {
|
|
|
8674
8678
|
type: e.type === "OR" ? "OR" : "AND"
|
|
8675
8679
|
} : null;
|
|
8676
8680
|
}
|
|
8677
|
-
return
|
|
8678
|
-
},
|
|
8681
|
+
return td(e) ? { ...e } : null;
|
|
8682
|
+
}, od = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, sd = (e) => ed(e) && !nd(e) && !td(e), cd = (e) => e?.filterType === "multi" && Array.isArray(e.filterModels), ld = {
|
|
8679
8683
|
number: "agNumberColumnFilter",
|
|
8680
8684
|
set: "agSetColumnFilter",
|
|
8681
8685
|
text: "agTextColumnFilter"
|
|
8682
|
-
},
|
|
8686
|
+
}, ud = (e) => {
|
|
8683
8687
|
if (e?.filter !== "agMultiColumnFilter") return [];
|
|
8684
8688
|
let t = e.filterParams;
|
|
8685
8689
|
return Array.isArray(t?.filters) ? t.filters : [];
|
|
8686
|
-
}, ud = (e, t) => {
|
|
8687
|
-
let n = ld(e), r = t.filterType ? cd[t.filterType] : void 0;
|
|
8688
|
-
return r ? n.findIndex((e) => $u(e) && e.filter === r) : -1;
|
|
8689
8690
|
}, dd = (e, t) => {
|
|
8690
|
-
let n =
|
|
8691
|
+
let n = ud(e), r = t.filterType ? ld[t.filterType] : void 0;
|
|
8692
|
+
return r ? n.findIndex((e) => ed(e) && e.filter === r) : -1;
|
|
8693
|
+
}, fd = (e, t) => {
|
|
8694
|
+
let n = ud(e);
|
|
8691
8695
|
if (!n.length) return null;
|
|
8692
|
-
let r = Array(n.length).fill(null), i =
|
|
8696
|
+
let r = Array(n.length).fill(null), i = dd(e, t);
|
|
8693
8697
|
return i < 0 ? null : (r[i] = t, {
|
|
8694
8698
|
filterModels: r,
|
|
8695
8699
|
filterType: "multi"
|
|
8696
8700
|
});
|
|
8697
|
-
},
|
|
8698
|
-
if (!
|
|
8701
|
+
}, pd = (e, t) => {
|
|
8702
|
+
if (!sd(e)) return null;
|
|
8699
8703
|
let n = e[t];
|
|
8700
|
-
return
|
|
8701
|
-
},
|
|
8704
|
+
return ed(n) ? n : null;
|
|
8705
|
+
}, md = (e) => e ? cd(e) ? e.filterModels.filter((e) => ed(e)) : [e] : [], hd = (e) => sd(e) ? { ...e } : {}, gd = (e) => cd(e) ? {
|
|
8702
8706
|
...e,
|
|
8703
8707
|
filterModels: e.filterModels.map((e) => e && { ...e })
|
|
8704
|
-
} : { ...e },
|
|
8705
|
-
let n =
|
|
8708
|
+
} : { ...e }, _d = (e, t) => {
|
|
8709
|
+
let n = hd(e);
|
|
8706
8710
|
return delete n[t], Object.keys(n).length ? n : null;
|
|
8707
|
-
},
|
|
8711
|
+
}, vd = /* @__PURE__ */ new Set(), yd = (e, t) => {
|
|
8708
8712
|
let n = `${e}:${t ?? "unknown"}`;
|
|
8709
|
-
|
|
8710
|
-
},
|
|
8711
|
-
let a =
|
|
8712
|
-
if (
|
|
8713
|
-
let o =
|
|
8713
|
+
vd.has(n) || (console.warn(`PvFilterPanel: overwriting an occupied regular multi-filter slot for "${e}" because the target slot was occupied or no empty slot was available.`), vd.add(n));
|
|
8714
|
+
}, bd = (e, t, n, r, i) => {
|
|
8715
|
+
let a = pd(e, t);
|
|
8716
|
+
if (cd(a) && r) {
|
|
8717
|
+
let o = hd(e), s = gd(a), c = [...s.filterModels ?? []], l = c.flatMap((e, t) => e && r(e) ? [t] : []);
|
|
8714
8718
|
if (!n) {
|
|
8715
8719
|
for (let e of l) c[e] = null;
|
|
8716
8720
|
return c.some(Boolean) ? o[t] = {
|
|
@@ -8723,15 +8727,15 @@ var Ba = {
|
|
|
8723
8727
|
c[e] = n;
|
|
8724
8728
|
for (let e of t) c[e] = null;
|
|
8725
8729
|
} else {
|
|
8726
|
-
let e =
|
|
8730
|
+
let e = dd(i, n), r = c.findIndex((e) => !e), a = ud(i).length > 0;
|
|
8727
8731
|
if (e >= 0) {
|
|
8728
8732
|
for (; c.length <= e;) c.push(null);
|
|
8729
|
-
c[e] &&
|
|
8733
|
+
c[e] && yd(t, n.filterType), c[e] = n;
|
|
8730
8734
|
} else if (r >= 0) c[r] = n;
|
|
8731
8735
|
else if (!a) c.push(n);
|
|
8732
8736
|
else {
|
|
8733
8737
|
let e = Math.max(0, c.length - 1);
|
|
8734
|
-
|
|
8738
|
+
yd(t, n.filterType), c[e] = n;
|
|
8735
8739
|
}
|
|
8736
8740
|
}
|
|
8737
8741
|
return o[t] = {
|
|
@@ -8739,54 +8743,54 @@ var Ba = {
|
|
|
8739
8743
|
filterModels: c
|
|
8740
8744
|
}, o;
|
|
8741
8745
|
}
|
|
8742
|
-
if (!n) return
|
|
8743
|
-
let o =
|
|
8744
|
-
return o[t] =
|
|
8745
|
-
},
|
|
8746
|
+
if (!n) return _d(e, t);
|
|
8747
|
+
let o = hd(e);
|
|
8748
|
+
return o[t] = fd(i, n) ?? n, o;
|
|
8749
|
+
}, xd = (e, t) => {
|
|
8746
8750
|
if (e) {
|
|
8747
|
-
if (
|
|
8748
|
-
e.conditions.forEach((e) =>
|
|
8751
|
+
if (nd(e)) {
|
|
8752
|
+
e.conditions.forEach((e) => xd(e, t));
|
|
8749
8753
|
return;
|
|
8750
8754
|
}
|
|
8751
8755
|
t(e);
|
|
8752
8756
|
}
|
|
8753
|
-
},
|
|
8754
|
-
if (!
|
|
8757
|
+
}, Sd = (e, t) => nd(e) ? e.conditions.length > 0 && e.conditions.every((e) => Sd(e, t)) : e.colId === t, Cd = (e) => {
|
|
8758
|
+
if (!nd(e)) return e.colId;
|
|
8755
8759
|
let t = /* @__PURE__ */ new Set();
|
|
8756
|
-
return
|
|
8757
|
-
},
|
|
8758
|
-
if (!e ||
|
|
8759
|
-
if (!
|
|
8760
|
-
let n = e.conditions.flatMap((e) =>
|
|
8760
|
+
return xd(e, (e) => t.add(e.colId)), t.size === 1 ? [...t][0] : null;
|
|
8761
|
+
}, wd = (e, t) => {
|
|
8762
|
+
if (!e || Sd(e, t)) return null;
|
|
8763
|
+
if (!nd(e) || e.type !== "AND") return id(e);
|
|
8764
|
+
let n = e.conditions.flatMap((e) => Sd(e, t) ? [] : [id(e)]);
|
|
8761
8765
|
return n.length ? n.length === 1 ? n[0] : {
|
|
8762
8766
|
conditions: n,
|
|
8763
8767
|
filterType: e.filterType,
|
|
8764
8768
|
type: e.type
|
|
8765
8769
|
} : null;
|
|
8766
|
-
},
|
|
8767
|
-
let r =
|
|
8768
|
-
return n ? r ?
|
|
8770
|
+
}, Td = (e, t, n) => {
|
|
8771
|
+
let r = wd(ad(e), t);
|
|
8772
|
+
return n ? r ? nd(r) && r.type === "AND" ? rd({
|
|
8769
8773
|
...r,
|
|
8770
8774
|
conditions: [...r.conditions, n]
|
|
8771
|
-
}) :
|
|
8775
|
+
}) : rd({
|
|
8772
8776
|
conditions: [r, n],
|
|
8773
8777
|
filterType: "join",
|
|
8774
8778
|
type: "AND"
|
|
8775
|
-
}) :
|
|
8776
|
-
},
|
|
8779
|
+
}) : rd(n) : rd(r);
|
|
8780
|
+
}, Ed = (e, t) => {
|
|
8777
8781
|
e.includes(t) || e.push(t);
|
|
8778
|
-
},
|
|
8782
|
+
}, Dd = (e) => {
|
|
8779
8783
|
if (e.filterType !== "text" || e.type !== "equals" || e.filter === void 0) return !1;
|
|
8780
8784
|
let t = String(e.filter);
|
|
8781
8785
|
return t === "true" || t === "false";
|
|
8782
|
-
},
|
|
8786
|
+
}, Od = (e) => e.filterType === "boolean" || Dd(e), kd = (e, t) => {
|
|
8783
8787
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8784
|
-
e.values.forEach((e) =>
|
|
8788
|
+
e.values.forEach((e) => Ed(t.values, String(e)));
|
|
8785
8789
|
return;
|
|
8786
8790
|
}
|
|
8787
8791
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8788
8792
|
let n = String(e.filter);
|
|
8789
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8793
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ed(t.values, n);
|
|
8790
8794
|
return;
|
|
8791
8795
|
}
|
|
8792
8796
|
if (e.filterType === "boolean") {
|
|
@@ -8810,7 +8814,7 @@ var Ba = {
|
|
|
8810
8814
|
...t.rangeValue,
|
|
8811
8815
|
max: e.filter
|
|
8812
8816
|
}));
|
|
8813
|
-
},
|
|
8817
|
+
}, Ad = (e, t) => {
|
|
8814
8818
|
if (e.type === "notBlank") {
|
|
8815
8819
|
t.existsValue = !0;
|
|
8816
8820
|
return;
|
|
@@ -8820,12 +8824,12 @@ var Ba = {
|
|
|
8820
8824
|
return;
|
|
8821
8825
|
}
|
|
8822
8826
|
if (e.filterType === "set" && Array.isArray(e.values)) {
|
|
8823
|
-
e.values.forEach((e) =>
|
|
8827
|
+
e.values.forEach((e) => Ed(t.values, String(e)));
|
|
8824
8828
|
return;
|
|
8825
8829
|
}
|
|
8826
8830
|
if (e.filterType === "text" && e.type === "equals" && e.filter !== void 0) {
|
|
8827
8831
|
let n = String(e.filter);
|
|
8828
|
-
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1),
|
|
8832
|
+
n === "true" ? t.booleanValue = !0 : n === "false" && (t.booleanValue = !1), Ed(t.values, n);
|
|
8829
8833
|
return;
|
|
8830
8834
|
}
|
|
8831
8835
|
e.filterType !== "number" || typeof e.filter != "number" || (e.type === "equals" && (t.rangeValue = {
|
|
@@ -8838,29 +8842,29 @@ var Ba = {
|
|
|
8838
8842
|
...t.rangeValue,
|
|
8839
8843
|
max: e.filter
|
|
8840
8844
|
}));
|
|
8841
|
-
},
|
|
8845
|
+
}, jd = (e, t = "advanced") => {
|
|
8842
8846
|
let n = /* @__PURE__ */ new Map();
|
|
8843
8847
|
if (t === "regular") {
|
|
8844
|
-
if (!
|
|
8848
|
+
if (!sd(e)) return n;
|
|
8845
8849
|
for (let [t, r] of Object.entries(e)) {
|
|
8846
|
-
let e =
|
|
8847
|
-
|
|
8850
|
+
let e = $u();
|
|
8851
|
+
md(r).forEach((t) => kd(t, e)), (e.values.length || e.booleanValue !== null || e.existsValue || e.rangeValue.min !== null || e.rangeValue.max !== null) && n.set(t, e);
|
|
8848
8852
|
}
|
|
8849
8853
|
return n;
|
|
8850
8854
|
}
|
|
8851
|
-
let r =
|
|
8855
|
+
let r = ad(e);
|
|
8852
8856
|
if (!r) return n;
|
|
8853
|
-
let i =
|
|
8857
|
+
let i = nd(r) && r.type === "AND" ? r.conditions : [r];
|
|
8854
8858
|
for (let e of i) {
|
|
8855
|
-
let t =
|
|
8859
|
+
let t = Cd(e);
|
|
8856
8860
|
if (!t) continue;
|
|
8857
|
-
let r = n.get(t) ??
|
|
8858
|
-
|
|
8859
|
-
e.colId === t &&
|
|
8861
|
+
let r = n.get(t) ?? $u();
|
|
8862
|
+
xd(e, (e) => {
|
|
8863
|
+
e.colId === t && Ad(e, r);
|
|
8860
8864
|
}), (r.values.length || r.booleanValue !== null || r.existsValue || r.rangeValue.min !== null || r.rangeValue.max !== null) && n.set(t, r);
|
|
8861
8865
|
}
|
|
8862
8866
|
return n;
|
|
8863
|
-
},
|
|
8867
|
+
}, Md = (e, t = "advanced") => t === "regular" ? sd(e) && Object.keys(e).length > 0 : ad(e) !== null, Nd = (e) => e === "currency" || e === "formula" || e === "integer" || e === "number" || e === "percent" ? "number" : e === "date" ? "date" : "text", Pd = (e, t, n = "advanced") => n === "regular" ? _d(e, t) : rd(wd(ad(e), t)), Fd = (e, t, n, r = "advanced", i = "boolean", a) => n === null ? r === "regular" ? bd(e, t, null, Od, a) : Pd(e, t, r) : r === "regular" ? bd(e, t, i === "text" ? {
|
|
8864
8868
|
filter: String(n),
|
|
8865
8869
|
filterType: "text",
|
|
8866
8870
|
type: "equals"
|
|
@@ -8868,30 +8872,30 @@ var Ba = {
|
|
|
8868
8872
|
filter: n,
|
|
8869
8873
|
filterType: "boolean",
|
|
8870
8874
|
type: n ? "true" : "false"
|
|
8871
|
-
},
|
|
8875
|
+
}, Od, a) : i === "text" ? Td(e, t, {
|
|
8872
8876
|
colId: t,
|
|
8873
8877
|
filter: String(n),
|
|
8874
8878
|
filterType: "text",
|
|
8875
8879
|
type: "equals"
|
|
8876
|
-
}) :
|
|
8880
|
+
}) : Td(e, t, {
|
|
8877
8881
|
colId: t,
|
|
8878
8882
|
filterType: "boolean",
|
|
8879
8883
|
type: n ? "true" : "false"
|
|
8880
|
-
}),
|
|
8884
|
+
}), Id = (e, t, n, r = "text", i = "advanced", a) => n ? i === "regular" ? bd(e, t, {
|
|
8881
8885
|
filterType: r,
|
|
8882
8886
|
type: "notBlank"
|
|
8883
|
-
}, (e) => e.filterType === r && e.type === "notBlank", a) :
|
|
8887
|
+
}, (e) => e.filterType === r && e.type === "notBlank", a) : Td(e, t, {
|
|
8884
8888
|
colId: t,
|
|
8885
8889
|
filterType: r,
|
|
8886
8890
|
type: "notBlank"
|
|
8887
|
-
}) : i === "regular" ?
|
|
8888
|
-
let o =
|
|
8889
|
-
if (i === "regular") return o === null && s === null ?
|
|
8891
|
+
}) : i === "regular" ? bd(e, t, null, (e) => e.filterType === r && e.type === "notBlank", a) : Pd(e, t, i), Ld = (e, t, n, r, i = "advanced", a) => {
|
|
8892
|
+
let o = od(n), s = od(r);
|
|
8893
|
+
if (i === "regular") return o === null && s === null ? bd(e, t, null, (e) => e.filterType === "number", a) : o !== null && s !== null ? bd(e, t, {
|
|
8890
8894
|
filter: o,
|
|
8891
8895
|
filterTo: s,
|
|
8892
8896
|
filterType: "number",
|
|
8893
8897
|
type: "inRange"
|
|
8894
|
-
}, (e) => e.filterType === "number", a) :
|
|
8898
|
+
}, (e) => e.filterType === "number", a) : bd(e, t, {
|
|
8895
8899
|
filter: o ?? s,
|
|
8896
8900
|
filterType: "number",
|
|
8897
8901
|
type: o === null ? "lessThanOrEqual" : "greaterThanOrEqual"
|
|
@@ -8907,29 +8911,29 @@ var Ba = {
|
|
|
8907
8911
|
filter: s,
|
|
8908
8912
|
filterType: "number",
|
|
8909
8913
|
type: "lessThanOrEqual"
|
|
8910
|
-
}), c.length ?
|
|
8914
|
+
}), c.length ? Td(e, t, c.length === 1 ? c[0] : {
|
|
8911
8915
|
conditions: c,
|
|
8912
8916
|
filterType: "join",
|
|
8913
8917
|
type: "AND"
|
|
8914
|
-
}) :
|
|
8915
|
-
},
|
|
8918
|
+
}) : Pd(e, t);
|
|
8919
|
+
}, Rd = (e, t, n, r = "advanced", i) => {
|
|
8916
8920
|
let a = Array.from(new Set(n));
|
|
8917
|
-
if (r === "regular") return a.length ?
|
|
8921
|
+
if (r === "regular") return a.length ? bd(e, t, {
|
|
8918
8922
|
filterType: "set",
|
|
8919
8923
|
values: a
|
|
8920
|
-
}, (e) => e.filterType === "set", i) :
|
|
8924
|
+
}, (e) => e.filterType === "set", i) : bd(e, t, null, (e) => e.filterType === "set", i);
|
|
8921
8925
|
let o = a.map((e) => ({
|
|
8922
8926
|
colId: t,
|
|
8923
8927
|
filter: e,
|
|
8924
8928
|
filterType: "text",
|
|
8925
8929
|
type: "equals"
|
|
8926
8930
|
}));
|
|
8927
|
-
return o.length ?
|
|
8931
|
+
return o.length ? Td(e, t, o.length === 1 ? o[0] : {
|
|
8928
8932
|
conditions: o,
|
|
8929
8933
|
filterType: "join",
|
|
8930
8934
|
type: "OR"
|
|
8931
|
-
}) :
|
|
8932
|
-
},
|
|
8935
|
+
}) : Pd(e, t);
|
|
8936
|
+
}, zd = Symbol("PvFilterStore"), Bd = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Vd = (e, t) => t ?? e, Hd = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Ud = (e) => {
|
|
8933
8937
|
let t = /* @__PURE__ */ new Map();
|
|
8934
8938
|
for (let n of e) {
|
|
8935
8939
|
if (!n) continue;
|
|
@@ -8941,34 +8945,34 @@ var Ba = {
|
|
|
8941
8945
|
t.set(n.value, {
|
|
8942
8946
|
...e,
|
|
8943
8947
|
...n,
|
|
8944
|
-
children:
|
|
8945
|
-
totalChildCount:
|
|
8948
|
+
children: Ud([...e.children ?? [], ...n.children ?? []]),
|
|
8949
|
+
totalChildCount: Vd(e.totalChildCount, n.totalChildCount)
|
|
8946
8950
|
});
|
|
8947
8951
|
}
|
|
8948
8952
|
return [...t.values()];
|
|
8949
|
-
},
|
|
8953
|
+
}, Wd = (e, t) => {
|
|
8950
8954
|
for (let n of e ?? []) {
|
|
8951
8955
|
if (!n) continue;
|
|
8952
8956
|
if (n.value === t) return n;
|
|
8953
|
-
let e =
|
|
8957
|
+
let e = Wd(n.children, t);
|
|
8954
8958
|
if (e) return e;
|
|
8955
8959
|
}
|
|
8956
|
-
},
|
|
8960
|
+
}, Gd = (e, t, n) => {
|
|
8957
8961
|
if (!e || t === null) return !1;
|
|
8958
8962
|
if (e.value === t) return !0;
|
|
8959
|
-
let r =
|
|
8960
|
-
return r !== null && r === t ||
|
|
8961
|
-
},
|
|
8962
|
-
let r =
|
|
8963
|
+
let r = Dl(e);
|
|
8964
|
+
return r !== null && r === t || Al(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Gd(e, t, n)) ?? !1;
|
|
8965
|
+
}, Kd = (e, t, n) => {
|
|
8966
|
+
let r = Wd(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8963
8967
|
return e.map((e) => e && (e.value === t ? {
|
|
8964
8968
|
...e,
|
|
8965
|
-
children:
|
|
8966
|
-
totalChildCount:
|
|
8969
|
+
children: Ud([...e.children ?? [], ...i]),
|
|
8970
|
+
totalChildCount: Vd(e.totalChildCount, r?.totalChildCount)
|
|
8967
8971
|
} : e.children?.length ? {
|
|
8968
8972
|
...e,
|
|
8969
|
-
children:
|
|
8973
|
+
children: Kd(e.children, t, n).filter((e) => !!e)
|
|
8970
8974
|
} : e));
|
|
8971
|
-
},
|
|
8975
|
+
}, qd = (e, t) => `${e}::${t}`, Jd = () => {
|
|
8972
8976
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
8973
8977
|
v.value = e;
|
|
8974
8978
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -8977,11 +8981,11 @@ var Ba = {
|
|
|
8977
8981
|
let r = n ? o : i;
|
|
8978
8982
|
r.value[e] = t;
|
|
8979
8983
|
}, T = () => {
|
|
8980
|
-
o.value =
|
|
8984
|
+
o.value = Hd(i.value), s.value = Hd(a.value);
|
|
8981
8985
|
}, E = () => {
|
|
8982
8986
|
o.value = {}, s.value = {};
|
|
8983
8987
|
}, D = () => {
|
|
8984
|
-
i.value =
|
|
8988
|
+
i.value = Hd(o.value), a.value = Hd(s.value), E();
|
|
8985
8989
|
}, O = (e, t) => {
|
|
8986
8990
|
c.value[e] = t;
|
|
8987
8991
|
}, A = (e, t) => {
|
|
@@ -9005,7 +9009,7 @@ var Ba = {
|
|
|
9005
9009
|
if (!o) return [];
|
|
9006
9010
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
9007
9011
|
c.value[n.field] = s;
|
|
9008
|
-
let u = n.parentId ?
|
|
9012
|
+
let u = n.parentId ? Wd(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? qd(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
9009
9013
|
g.value[x] = S;
|
|
9010
9014
|
try {
|
|
9011
9015
|
let c = await o({
|
|
@@ -9017,17 +9021,17 @@ var Ba = {
|
|
|
9017
9021
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
9018
9022
|
});
|
|
9019
9023
|
if (g.value[x] !== S) return [];
|
|
9020
|
-
let u =
|
|
9024
|
+
let u = Bd(c);
|
|
9021
9025
|
if (n.parentId) {
|
|
9022
|
-
let e =
|
|
9026
|
+
let e = qd(n.field, n.parentId);
|
|
9023
9027
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
9024
9028
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
9025
9029
|
let v = a.value[n.field] ?? [], b;
|
|
9026
|
-
b = n.parentId ?
|
|
9030
|
+
b = n.parentId ? Kd(r.value[n.field] ?? [], n.parentId, u.values) : y ? Ud([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
9027
9031
|
for (let e of v) {
|
|
9028
9032
|
if (!e) continue;
|
|
9029
|
-
let t =
|
|
9030
|
-
b.some((e) =>
|
|
9033
|
+
let t = Dl(e) ?? e.value;
|
|
9034
|
+
b.some((e) => Gd(e, t, n.field)) || b.push(e);
|
|
9031
9035
|
}
|
|
9032
9036
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
9033
9037
|
} finally {
|
|
@@ -9062,20 +9066,20 @@ var Ba = {
|
|
|
9062
9066
|
stagedFilterSelectedMetadataMap: s,
|
|
9063
9067
|
stagedFilterSelectedValueMap: o
|
|
9064
9068
|
};
|
|
9065
|
-
},
|
|
9066
|
-
O(
|
|
9067
|
-
},
|
|
9069
|
+
}, Yd = (e) => {
|
|
9070
|
+
O(zd, e);
|
|
9071
|
+
}, Xd = () => m(zd, null), Zd = () => Xd() ?? Jd(), Qd = "__range__", $d = "__boolean__", ef = "__exists__", tf = new Set([
|
|
9068
9072
|
"value",
|
|
9069
9073
|
"range",
|
|
9070
9074
|
"boolean",
|
|
9071
9075
|
"exists"
|
|
9072
9076
|
]);
|
|
9073
|
-
function
|
|
9077
|
+
function nf(e, t, n) {
|
|
9074
9078
|
f();
|
|
9075
|
-
let i = k(t.value), a =
|
|
9079
|
+
let i = k(t.value), a = Jd(), o = Xd(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = P(/* @__PURE__ */ new Map()), u = r(() => !!(e.filterStore ?? o)), d = r(() => !u.value && !!e.filterOptionsHandler), p = r(() => e.filterStore ?? o ?? a), m = r(() => p.value === a), h = r(() => u.value || d.value), g = r(() => e.filterModelType ?? p.value?.filterModelType.value), _ = r(() => g.value ?? "advanced"), v = r(() => {
|
|
9076
9080
|
let n = p.value;
|
|
9077
9081
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? i.value : t.value;
|
|
9078
|
-
}), y = r(() =>
|
|
9082
|
+
}), y = r(() => jd(v.value, _.value)), b = (e, t) => {
|
|
9079
9083
|
let n = e.applyFilterModel;
|
|
9080
9084
|
if (typeof n == "function") {
|
|
9081
9085
|
n(t);
|
|
@@ -9166,7 +9170,7 @@ function tf(e, t, n) {
|
|
|
9166
9170
|
});
|
|
9167
9171
|
let D = (e) => e.context ?? {}, O = (e) => e.colId || e.field || "", A = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, j = (e) => {
|
|
9168
9172
|
let t = D(e), n = t.filterPanelType;
|
|
9169
|
-
if (n &&
|
|
9173
|
+
if (n && tf.has(n)) return n;
|
|
9170
9174
|
if (t.filterPanelRange) return "range";
|
|
9171
9175
|
if (t.dataType === "boolean") return "boolean";
|
|
9172
9176
|
if (e.filter) return "value";
|
|
@@ -9206,30 +9210,30 @@ function tf(e, t, n) {
|
|
|
9206
9210
|
...r,
|
|
9207
9211
|
...i
|
|
9208
9212
|
].filter(Boolean)));
|
|
9209
|
-
}, q = (e) => _.value === "advanced" &&
|
|
9213
|
+
}, q = (e) => _.value === "advanced" && Rl(e), J = (e, t) => q(e) ? Jl({
|
|
9210
9214
|
colDef: e,
|
|
9211
9215
|
model: v.value,
|
|
9212
9216
|
options: t
|
|
9213
9217
|
}) : new Map(te(e).map((e) => [e, y.value.get(e)?.values ?? []])), re = (e, t, n, r) => {
|
|
9214
9218
|
let i = /* @__PURE__ */ new Set();
|
|
9215
|
-
for (let t of
|
|
9219
|
+
for (let t of kl(r)) for (let [r, a] of n) for (let n of a) Al(t, r, n, e) && i.add(`${r}:${n}`);
|
|
9216
9220
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
9217
9221
|
colField: t === e ? void 0 : t,
|
|
9218
9222
|
label: n,
|
|
9219
9223
|
metadata: { rawValue: n },
|
|
9220
|
-
value: t === e ? n :
|
|
9224
|
+
value: t === e ? n : El(t, n)
|
|
9221
9225
|
}]));
|
|
9222
9226
|
}, ie = (e, t, n) => {
|
|
9223
9227
|
let r = /* @__PURE__ */ new Set();
|
|
9224
|
-
for (let i of
|
|
9225
|
-
let n =
|
|
9228
|
+
for (let i of kl(n)) {
|
|
9229
|
+
let n = Ol(i, e), a = Dl(i);
|
|
9226
9230
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
9227
9231
|
}
|
|
9228
9232
|
return Array.from(r);
|
|
9229
9233
|
}, ae = (t) => Object.fromEntries(te(t).map((t) => [t, e.focusedValues[t] ?? []])), Y = (t) => e.colDefs.find((e) => O(e) === t || e.field === t || e.colId === t), oe = (e) => Y(e)?.headerName ?? e, se = (e) => {
|
|
9230
9234
|
let t = D(e);
|
|
9231
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder :
|
|
9232
|
-
}, ce = (e, t) =>
|
|
9235
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : Xu(O(e), t.queryColIds, oe);
|
|
9236
|
+
}, ce = (e, t) => Qu({
|
|
9233
9237
|
fallbackSubText: e.subText,
|
|
9234
9238
|
getDisplayName: oe,
|
|
9235
9239
|
matchedField: e.matchedField,
|
|
@@ -9247,7 +9251,7 @@ function tf(e, t, n) {
|
|
|
9247
9251
|
isActive: y.value.get(e)?.booleanValue === !0,
|
|
9248
9252
|
label: Y(e)?.headerName ?? e
|
|
9249
9253
|
}));
|
|
9250
|
-
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => te(t.colDef).includes(e)), de = (e, t, n) =>
|
|
9254
|
+
}, ue = (e) => fe.value.find((t) => t.key === e) ?? fe.value.find((t) => te(t.colDef).includes(e)), de = (e, t, n) => kl(ue(e)?.knownOptions ?? []).find((r) => r.value === n || Al(r, t, n, e)), fe = r(() => e.colDefs.filter(I).map((t) => {
|
|
9251
9255
|
let n = O(t), r = D(t), i = M(t), a = X(L(n), t), o = X(U(n), t), s = {
|
|
9252
9256
|
category: N(t),
|
|
9253
9257
|
colDef: t,
|
|
@@ -9309,7 +9313,7 @@ function tf(e, t, n) {
|
|
|
9309
9313
|
...s,
|
|
9310
9314
|
existsValue: y.value.get(n)?.existsValue ?? !1
|
|
9311
9315
|
};
|
|
9312
|
-
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : J(t, c), f = re(n, t, d, c), p = [...c, ...f], m = q(t) ?
|
|
9316
|
+
let c = o, u = e.controlledValues[n] ?? [], d = s.controlled ? new Map([[n, u]]) : J(t, c), f = re(n, t, d, c), p = [...c, ...f], m = q(t) ? ql({
|
|
9313
9317
|
colDef: t,
|
|
9314
9318
|
model: v.value,
|
|
9315
9319
|
options: p
|
|
@@ -9329,19 +9333,19 @@ function tf(e, t, n) {
|
|
|
9329
9333
|
label: e.label,
|
|
9330
9334
|
values: t
|
|
9331
9335
|
}] : [];
|
|
9332
|
-
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() =>
|
|
9336
|
+
})), pe = r(() => Z.value.reduce((e, t) => e + t.values.length, 0)), me = r(() => Md(v.value, _.value)), he = r(() => me.value || pe.value > 0), ge = (e) => {
|
|
9333
9337
|
let t = ue(e.field);
|
|
9334
9338
|
if (!t || t.type !== e.filter.type) return !0;
|
|
9335
9339
|
if (e.filter.type === "value") {
|
|
9336
9340
|
if (t.isAggregate && e.option) {
|
|
9337
|
-
let { selected: n } =
|
|
9341
|
+
let { selected: n } = su({
|
|
9338
9342
|
option: e.option,
|
|
9339
9343
|
options: t.knownOptions ?? [],
|
|
9340
9344
|
state: t.aggregateSelectionState ?? []
|
|
9341
9345
|
});
|
|
9342
9346
|
return e.filter.checked ? n : !n;
|
|
9343
9347
|
}
|
|
9344
|
-
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ?
|
|
9348
|
+
let n = new Set(t.selectedValues ?? []), r = e.option?.value ?? e.filter.value, i = e.option ? Dl(e.option) : e.filter.value, a = n.has(r) || i !== null && n.has(i);
|
|
9345
9349
|
return e.filter.checked ? a : !a;
|
|
9346
9350
|
}
|
|
9347
9351
|
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;
|
|
@@ -9355,14 +9359,14 @@ function tf(e, t, n) {
|
|
|
9355
9359
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
9356
9360
|
let o = e.staged ? a.stagedFilterSelectedMetadataMap : a.filterSelectedMetadataMap, s = o.value[t] ?? [], c = new Set(r), l = s.filter((e) => {
|
|
9357
9361
|
if (!e) return !1;
|
|
9358
|
-
let r =
|
|
9362
|
+
let r = Ol(e, t), i = Dl(e) ?? e.value;
|
|
9359
9363
|
return r !== n || c.has(i);
|
|
9360
9364
|
});
|
|
9361
9365
|
if (i) {
|
|
9362
|
-
let e =
|
|
9366
|
+
let e = Dl(i) ?? i.value, n = Ol(i, t);
|
|
9363
9367
|
l.some((r) => {
|
|
9364
|
-
let i =
|
|
9365
|
-
return
|
|
9368
|
+
let i = Dl(r) ?? r.value;
|
|
9369
|
+
return Ol(r, t) === n && i === e;
|
|
9366
9370
|
}) || l.push(i);
|
|
9367
9371
|
}
|
|
9368
9372
|
o.value[t] = l;
|
|
@@ -9372,7 +9376,7 @@ function tf(e, t, n) {
|
|
|
9372
9376
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
9373
9377
|
r.setFilterSelectedValues(t.key, i, e.staged);
|
|
9374
9378
|
let a = e.staged ? r.stagedFilterSelectedMetadataMap : r.filterSelectedMetadataMap;
|
|
9375
|
-
a.value[t.key] =
|
|
9379
|
+
a.value[t.key] = cu({
|
|
9376
9380
|
options: t.knownOptions ?? [],
|
|
9377
9381
|
state: n
|
|
9378
9382
|
});
|
|
@@ -9401,48 +9405,48 @@ function tf(e, t, n) {
|
|
|
9401
9405
|
return t === null ? [] : [{
|
|
9402
9406
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
9403
9407
|
type: "boolean",
|
|
9404
|
-
value:
|
|
9408
|
+
value: $d
|
|
9405
9409
|
}];
|
|
9406
9410
|
}, Te = (e) => e.existsValue ? [{
|
|
9407
9411
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
9408
9412
|
type: "exists",
|
|
9409
|
-
value:
|
|
9413
|
+
value: ef
|
|
9410
9414
|
}] : [], Ee = (e) => {
|
|
9411
9415
|
let t = e.rangeValue ?? {
|
|
9412
9416
|
max: null,
|
|
9413
9417
|
min: null
|
|
9414
9418
|
};
|
|
9415
9419
|
return t.min === null && t.max === null ? [] : [{
|
|
9416
|
-
label:
|
|
9420
|
+
label: gl(t.min, t.max, {
|
|
9417
9421
|
dataType: e.dataType,
|
|
9418
9422
|
valueDecimals: e.valueDecimals
|
|
9419
9423
|
}),
|
|
9420
9424
|
type: "range",
|
|
9421
|
-
value:
|
|
9425
|
+
value: Qd
|
|
9422
9426
|
}];
|
|
9423
9427
|
}, De = (e, t, n) => {
|
|
9424
9428
|
let r = n.get(t) ?? null;
|
|
9425
9429
|
return {
|
|
9426
|
-
field: r ?
|
|
9427
|
-
label: r ?
|
|
9428
|
-
resultCount:
|
|
9430
|
+
field: r ? Ol(r, e.key) : void 0,
|
|
9431
|
+
label: r ? yl(r, e.colDef) : t,
|
|
9432
|
+
resultCount: bl(r),
|
|
9429
9433
|
subText: r?.subText,
|
|
9430
9434
|
subduedText: r?.subduedText,
|
|
9431
9435
|
type: "value",
|
|
9432
|
-
value: r ?
|
|
9436
|
+
value: r ? Dl(r) ?? r.value : t
|
|
9433
9437
|
};
|
|
9434
9438
|
}, Oe = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
9435
9439
|
field: e.field,
|
|
9436
9440
|
label: e.label,
|
|
9437
9441
|
type: "boolean",
|
|
9438
|
-
value:
|
|
9439
|
-
}] : []), ke = (e) =>
|
|
9442
|
+
value: $d
|
|
9443
|
+
}] : []), ke = (e) => cu({
|
|
9440
9444
|
options: e.knownOptions ?? [],
|
|
9441
9445
|
state: e.aggregateSelectionState ?? []
|
|
9442
9446
|
}).map((t) => ({
|
|
9443
9447
|
field: e.key,
|
|
9444
|
-
label:
|
|
9445
|
-
resultCount:
|
|
9448
|
+
label: yl(t, e.colDef),
|
|
9449
|
+
resultCount: bl(t),
|
|
9446
9450
|
subText: t.subText,
|
|
9447
9451
|
subduedText: t.subduedText,
|
|
9448
9452
|
type: "value",
|
|
@@ -9453,7 +9457,7 @@ function tf(e, t, n) {
|
|
|
9453
9457
|
if (e.type === "boolean") return we(e);
|
|
9454
9458
|
if (e.type === "exists") return Te(e);
|
|
9455
9459
|
if (e.isAggregate) return [...ke(e), ...Oe(e)];
|
|
9456
|
-
let t = new Map(
|
|
9460
|
+
let t = new Map(kl(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
9457
9461
|
return [...(e.selectedValues ?? []).map((n) => De(e, n, t)), ...Oe(e)];
|
|
9458
9462
|
}, je = () => {
|
|
9459
9463
|
Be(), Ce(null, "clear-all");
|
|
@@ -9465,9 +9469,9 @@ function tf(e, t, n) {
|
|
|
9465
9469
|
Be();
|
|
9466
9470
|
let e = p.value;
|
|
9467
9471
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), i.value = t.value, n("cancel");
|
|
9468
|
-
}, Pe = (e) =>
|
|
9472
|
+
}, Pe = (e) => Nd(ue(e)?.dataType), Fe = (e, t, n = "value-toggle") => {
|
|
9469
9473
|
let r = ue(e);
|
|
9470
|
-
r?.isAggregate && (be(r, t), Ce(
|
|
9474
|
+
r?.isAggregate && (be(r, t), Ce(Gl({
|
|
9471
9475
|
baseModel: v.value,
|
|
9472
9476
|
colDef: r.colDef,
|
|
9473
9477
|
options: r.knownOptions ?? [],
|
|
@@ -9482,7 +9486,7 @@ function tf(e, t, n) {
|
|
|
9482
9486
|
if (t.type === "value") {
|
|
9483
9487
|
let r = ue(e), i = de(e, n, t.value);
|
|
9484
9488
|
if (r?.isAggregate && i) {
|
|
9485
|
-
Fe(e,
|
|
9489
|
+
Fe(e, iu({
|
|
9486
9490
|
checked: t.checked,
|
|
9487
9491
|
option: i,
|
|
9488
9492
|
options: r.knownOptions ?? [],
|
|
@@ -9498,10 +9502,10 @@ function tf(e, t, n) {
|
|
|
9498
9502
|
return;
|
|
9499
9503
|
}
|
|
9500
9504
|
if (t.type === "boolean") {
|
|
9501
|
-
Ce(
|
|
9505
|
+
Ce(Fd(v.value, n, t.value, _.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
9502
9506
|
return;
|
|
9503
9507
|
}
|
|
9504
|
-
Ce(
|
|
9508
|
+
Ce(Id(v.value, n, t.value, Pe(n), _.value, r), "exists-change", n, "exists");
|
|
9505
9509
|
}, Le = (e, t, n, r) => {
|
|
9506
9510
|
let i = p.value;
|
|
9507
9511
|
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;
|
|
@@ -9521,7 +9525,7 @@ function tf(e, t, n) {
|
|
|
9521
9525
|
}, ze = (e, t, r) => {
|
|
9522
9526
|
n("load-more", e.key, e.colDef, t, r), Re(e, t, r ? "child-load-more" : "load-more", r);
|
|
9523
9527
|
}, Q = (e, t, n) => {
|
|
9524
|
-
Ce(
|
|
9528
|
+
Ce(Ld(v.value, e, t.min, t.max, _.value, n), "range-change", e, "range");
|
|
9525
9529
|
}, Be = () => {
|
|
9526
9530
|
for (let { timer: e } of l.values()) window.clearTimeout(e);
|
|
9527
9531
|
l.clear();
|
|
@@ -9561,7 +9565,7 @@ function tf(e, t, n) {
|
|
|
9561
9565
|
n("controlled-change", t, l, s.colDef);
|
|
9562
9566
|
return;
|
|
9563
9567
|
}
|
|
9564
|
-
ye(t, r, l, a ? o : void 0), Ce(
|
|
9568
|
+
ye(t, r, l, a ? o : void 0), Ce(Rd(v.value, r, l, _.value, Y(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
9565
9569
|
};
|
|
9566
9570
|
return {
|
|
9567
9571
|
resolvedFilters: fe,
|
|
@@ -9586,8 +9590,8 @@ function tf(e, t, n) {
|
|
|
9586
9590
|
handleSearchChange: Ue,
|
|
9587
9591
|
handleSuggestionClick: (e) => {
|
|
9588
9592
|
if (e.filter.type === "value" && e.option) {
|
|
9589
|
-
let t = ue(e.field), n =
|
|
9590
|
-
t?.isAggregate ? Fe(e.field,
|
|
9593
|
+
let t = ue(e.field), n = Ol(e.option, e.field), r = Dl(e.option) ?? e.filter.value;
|
|
9594
|
+
t?.isAggregate ? Fe(e.field, iu({
|
|
9591
9595
|
checked: e.filter.checked,
|
|
9592
9596
|
option: e.option,
|
|
9593
9597
|
options: t.knownOptions ?? [],
|
|
@@ -9598,21 +9602,21 @@ function tf(e, t, n) {
|
|
|
9598
9602
|
},
|
|
9599
9603
|
removeAppliedFilter: (e, t, n) => {
|
|
9600
9604
|
let r = n ?? ue(e)?.type ?? "value";
|
|
9601
|
-
if (r === "range" || !n && t ===
|
|
9602
|
-
Ce(
|
|
9605
|
+
if (r === "range" || !n && t === Qd) {
|
|
9606
|
+
Ce(Ld(v.value, e, null, null, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "range");
|
|
9603
9607
|
return;
|
|
9604
9608
|
}
|
|
9605
|
-
if (r === "boolean" || !n && t ===
|
|
9606
|
-
Ce(
|
|
9609
|
+
if (r === "boolean" || !n && t === $d) {
|
|
9610
|
+
Ce(Fd(v.value, e, null, _.value, "boolean", Y(e) ?? ue(e)?.colDef), "remove-filter", e, "boolean");
|
|
9607
9611
|
return;
|
|
9608
9612
|
}
|
|
9609
|
-
if (r === "exists" || !n && t ===
|
|
9610
|
-
Ce(
|
|
9613
|
+
if (r === "exists" || !n && t === ef) {
|
|
9614
|
+
Ce(Id(v.value, e, !1, "text", _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "exists");
|
|
9611
9615
|
return;
|
|
9612
9616
|
}
|
|
9613
9617
|
let i = ue(e);
|
|
9614
9618
|
if (r === "value" && i?.isAggregate) {
|
|
9615
|
-
let e =
|
|
9619
|
+
let e = zl(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? iu({
|
|
9616
9620
|
checked: !1,
|
|
9617
9621
|
option: e,
|
|
9618
9622
|
options: i.knownOptions ?? [],
|
|
@@ -9622,7 +9626,7 @@ function tf(e, t, n) {
|
|
|
9622
9626
|
return;
|
|
9623
9627
|
}
|
|
9624
9628
|
let a = (y.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
9625
|
-
ye(ue(e)?.key ?? e, e, a), Ce(
|
|
9629
|
+
ye(ue(e)?.key ?? e, e, a), Ce(Rd(v.value, e, a, _.value, Y(e) ?? ue(e)?.colDef), "remove-filter", e, "value");
|
|
9626
9630
|
},
|
|
9627
9631
|
setFacetSelections: Ge,
|
|
9628
9632
|
usesHandlerFacets: $
|
|
@@ -9630,32 +9634,32 @@ function tf(e, t, n) {
|
|
|
9630
9634
|
}
|
|
9631
9635
|
//#endregion
|
|
9632
9636
|
//#region src/components/base/PvFilterPanel/PvFilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9633
|
-
var
|
|
9637
|
+
var rf = ["aria-label"], af = { class: "pv-filter-panel-header pv-flex pv-border-bottom" }, of = { class: "pv-filter-panel-body pv-flex-vertical" }, sf = {
|
|
9634
9638
|
class: "pv-filter-panel-filters-view pv-flex-vertical",
|
|
9635
9639
|
"data-testid": "pv-filter-panel-filters-view"
|
|
9636
|
-
},
|
|
9640
|
+
}, cf = {
|
|
9637
9641
|
key: 0,
|
|
9638
9642
|
"aria-label": "Filter suggestions",
|
|
9639
9643
|
class: "pv-filter-panel-suggestions pv-flex-vertical pv-border-bottom",
|
|
9640
9644
|
"data-testid": "pv-filter-panel-suggestions"
|
|
9641
|
-
},
|
|
9645
|
+
}, lf = { class: "pv-filter-panel-suggestion-tags pv-flex" }, uf = {
|
|
9642
9646
|
key: 1,
|
|
9643
9647
|
class: "pv-filter-panel-search pv-border-bottom",
|
|
9644
9648
|
"data-testid": "pv-filter-panel-search"
|
|
9645
|
-
},
|
|
9649
|
+
}, df = {
|
|
9646
9650
|
key: 2,
|
|
9647
9651
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9648
|
-
},
|
|
9652
|
+
}, ff = {
|
|
9649
9653
|
key: 3,
|
|
9650
9654
|
class: "pv-filter-panel-empty pv-text-body-sm pv-text-subdued"
|
|
9651
|
-
},
|
|
9655
|
+
}, pf = {
|
|
9652
9656
|
key: 4,
|
|
9653
9657
|
class: "pv-filter-panel-filter-list pv-flex-vertical pv-inset-inline",
|
|
9654
9658
|
style: { "--inset-size": "8px" }
|
|
9655
|
-
},
|
|
9659
|
+
}, mf = {
|
|
9656
9660
|
key: 0,
|
|
9657
9661
|
class: "pv-filter-panel-footer pv-flex pv-border-top"
|
|
9658
|
-
},
|
|
9662
|
+
}, hf = { class: "pv-filter-panel-actions pv-flex" }, gf = { class: "pv-text-body-sm" }, _f = { class: "pv-filter-panel-modal-footer pv-flex" }, vf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
9659
9663
|
__name: "PvFilterPanel",
|
|
9660
9664
|
props: /* @__PURE__ */ g({
|
|
9661
9665
|
allCategoriesLabel: { default: "All" },
|
|
@@ -9746,7 +9750,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9746
9750
|
"suggestion-click"
|
|
9747
9751
|
], ["update:filterModel", "update:isCollapsed"]),
|
|
9748
9752
|
setup(e, { emit: n }) {
|
|
9749
|
-
let c = e, l = B(e, "filterModel"), d = B(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } =
|
|
9753
|
+
let c = e, l = B(e, "filterModel"), d = B(e, "isCollapsed"), f = n, { resolvedFilters: p, appliedGroups: m, appliedCount: h, showClearAll: g, visibleSuggestions: _, activateFilter: v, applyStagedFilters: y, cancelStagedFilters: b, clearAllFilters: S, getSuggestionKey: C, handleControlChange: w, handleLoadMore: T, handleSearchChange: E, handleSuggestionClick: O, removeAppliedFilter: M } = nf(c, l, f), N = k("filters"), P = k({}), F = k(null), R = k(!1), z = k(!1), V = k(""), H = r(() => c.enableFilterSearch ? V.value.trim().toLowerCase() : ""), ee = r(() => H.value.length > 0), U = (e) => e.label.toLowerCase().includes(H.value);
|
|
9750
9754
|
K(ee, (e) => {
|
|
9751
9755
|
e && (F.value = null);
|
|
9752
9756
|
}), K(F, (e) => {
|
|
@@ -9788,7 +9792,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9788
9792
|
"aria-label": e.ariaLabel,
|
|
9789
9793
|
style: x(he.value)
|
|
9790
9794
|
}, [
|
|
9791
|
-
s("div",
|
|
9795
|
+
s("div", af, [u(Ar, {
|
|
9792
9796
|
modelValue: N.value,
|
|
9793
9797
|
options: me.value,
|
|
9794
9798
|
class: "pv-filter-panel-mode-control",
|
|
@@ -9802,8 +9806,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9802
9806
|
variant: "secondary",
|
|
9803
9807
|
onClick: r[0] ||= (e) => d.value = !0
|
|
9804
9808
|
}))]),
|
|
9805
|
-
s("div",
|
|
9806
|
-
!e.readOnly && L(_).length ? (D(), o("section",
|
|
9809
|
+
s("div", of, [J(s("div", sf, [
|
|
9810
|
+
!e.readOnly && L(_).length ? (D(), o("section", cf, [r[8] ||= s("p", { class: "pv-filter-panel-section-title pv-text-title-sm pv-text-subdued" }, "Suggestions", -1), s("div", lf, [(D(!0), o(t, null, A(L(_), (e) => (D(), i(ri, {
|
|
9807
9811
|
key: L(C)(e),
|
|
9808
9812
|
icon: e.icon,
|
|
9809
9813
|
"icon-classes": e.iconClasses,
|
|
@@ -9816,7 +9820,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9816
9820
|
"onHandleClick"
|
|
9817
9821
|
]))), 128))])])) : a("", !0),
|
|
9818
9822
|
j(n.$slots, "suggestions", {}, void 0, !0),
|
|
9819
|
-
u(
|
|
9823
|
+
u(Yu, {
|
|
9820
9824
|
modelValue: F.value,
|
|
9821
9825
|
"onUpdate:modelValue": r[1] ||= (e) => F.value = e,
|
|
9822
9826
|
"all-categories-label": e.allCategoriesLabel,
|
|
@@ -9828,12 +9832,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9828
9832
|
"category-order",
|
|
9829
9833
|
"filters"
|
|
9830
9834
|
]),
|
|
9831
|
-
e.enableFilterSearch && L(p).length ? (D(), o("div",
|
|
9835
|
+
e.enableFilterSearch && L(p).length ? (D(), o("div", uf, [u(ui, {
|
|
9832
9836
|
modelValue: V.value,
|
|
9833
9837
|
"onUpdate:modelValue": r[2] ||= (e) => V.value = e,
|
|
9834
9838
|
placeholder: e.filterSearchPlaceholder
|
|
9835
9839
|
}, null, 8, ["modelValue", "placeholder"])])) : a("", !0),
|
|
9836
|
-
L(p).length ? G.value.length ? (D(), o("div",
|
|
9840
|
+
L(p).length ? G.value.length ? (D(), o("div", pf, [(D(!0), o(t, null, A(pe.value, (t) => (D(), i(Pu, {
|
|
9837
9841
|
key: t.key,
|
|
9838
9842
|
"disable-while-loading": e.disableWhileLoading,
|
|
9839
9843
|
filter: t,
|
|
@@ -9856,8 +9860,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9856
9860
|
label: oe.value,
|
|
9857
9861
|
variant: "ghost",
|
|
9858
9862
|
onClick: r[5] ||= (e) => R.value = !R.value
|
|
9859
|
-
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div",
|
|
9860
|
-
], 512), [[te, N.value === "filters"]]), J(u(
|
|
9863
|
+
}, null, 8, ["label"])) : a("", !0)])) : (D(), o("div", ff, I(Y.value), 1)) : (D(), o("div", df, " No filters available. "))
|
|
9864
|
+
], 512), [[te, N.value === "filters"]]), J(u(Hu, {
|
|
9861
9865
|
"applied-count": L(h),
|
|
9862
9866
|
"applied-groups": L(m),
|
|
9863
9867
|
"external-filters": ce.value,
|
|
@@ -9871,7 +9875,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9871
9875
|
"read-only",
|
|
9872
9876
|
"onRemoveFilter"
|
|
9873
9877
|
]), [[te, N.value === "applied"]])]),
|
|
9874
|
-
Z.value ? (D(), o("div",
|
|
9878
|
+
Z.value ? (D(), o("div", mf, [s("div", hf, [fe.value && !e.readOnly ? (D(), i($, {
|
|
9875
9879
|
key: 0,
|
|
9876
9880
|
class: "pv-text-brand",
|
|
9877
9881
|
label: e.clearAllLabel,
|
|
@@ -9886,14 +9890,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9886
9890
|
variant: "primary",
|
|
9887
9891
|
onClick: L(y)
|
|
9888
9892
|
}, null, 8, ["label", "onClick"])], 64)) : a("", !0)])])) : a("", !0)
|
|
9889
|
-
], 12,
|
|
9893
|
+
], 12, rf)), u(Ur, {
|
|
9890
9894
|
modelValue: z.value,
|
|
9891
9895
|
"onUpdate:modelValue": r[7] ||= (e) => z.value = e,
|
|
9892
9896
|
header: e.clearAllHeader,
|
|
9893
9897
|
style: { "--max-width": "440px" }
|
|
9894
9898
|
}, {
|
|
9895
|
-
body: q(() => [s("p",
|
|
9896
|
-
footer: q(() => [s("div",
|
|
9899
|
+
body: q(() => [s("p", gf, I(e.clearAllBody), 1)]),
|
|
9900
|
+
footer: q(() => [s("div", _f, [u($, {
|
|
9897
9901
|
label: e.cancelLabel,
|
|
9898
9902
|
variant: "ghost",
|
|
9899
9903
|
onClick: ve
|
|
@@ -9905,16 +9909,16 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9905
9909
|
_: 1
|
|
9906
9910
|
}, 8, ["modelValue", "header"])], 64));
|
|
9907
9911
|
}
|
|
9908
|
-
}), [["__scopeId", "data-v-59a9b1c6"]]),
|
|
9912
|
+
}), [["__scopeId", "data-v-59a9b1c6"]]), yf = ["for"], bf = [
|
|
9909
9913
|
"id",
|
|
9910
9914
|
"type",
|
|
9911
9915
|
"value",
|
|
9912
9916
|
"name",
|
|
9913
9917
|
"disabled"
|
|
9914
|
-
],
|
|
9918
|
+
], xf = { key: 0 }, Sf = {
|
|
9915
9919
|
class: "pv-inset-square",
|
|
9916
9920
|
style: { "--inset-size": "0px 2px" }
|
|
9917
|
-
},
|
|
9921
|
+
}, Cf = /* @__PURE__ */ d({
|
|
9918
9922
|
__name: "PvFilterModalSelectItem",
|
|
9919
9923
|
props: /* @__PURE__ */ g({
|
|
9920
9924
|
rounded: { type: Boolean },
|
|
@@ -9947,55 +9951,55 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
9947
9951
|
value: e.value,
|
|
9948
9952
|
name: e.name,
|
|
9949
9953
|
disabled: e.disabled
|
|
9950
|
-
}, null, 8,
|
|
9951
|
-
e.label ? (D(), o("span",
|
|
9952
|
-
s("span",
|
|
9953
|
-
], 8,
|
|
9954
|
+
}, null, 8, bf), [[U, n.value]]),
|
|
9955
|
+
e.label ? (D(), o("span", xf, I(e.label), 1)) : a("", !0),
|
|
9956
|
+
s("span", Sf, I(e.rightCounterBadge), 1)
|
|
9957
|
+
], 8, yf));
|
|
9954
9958
|
}
|
|
9955
|
-
}),
|
|
9959
|
+
}), wf = ["aria-label"], Tf = {
|
|
9956
9960
|
class: "pv-filter-modal pv-flex",
|
|
9957
9961
|
style: {
|
|
9958
9962
|
"--flex-align": "stretch",
|
|
9959
9963
|
"--flex-gap": "0"
|
|
9960
9964
|
}
|
|
9961
|
-
},
|
|
9965
|
+
}, Ef = {
|
|
9962
9966
|
class: "pv-filter-modal-rail pv-flex-vertical pv-border-right",
|
|
9963
9967
|
"aria-label": "Filter categories",
|
|
9964
9968
|
style: { "--flex-gap": "0.25rem" }
|
|
9965
|
-
},
|
|
9969
|
+
}, Df = {
|
|
9966
9970
|
class: "pv-filter-modal-pane pv-flex-vertical",
|
|
9967
9971
|
style: {
|
|
9968
9972
|
"--flex-align": "stretch",
|
|
9969
9973
|
"--flex-gap": "0.75rem"
|
|
9970
9974
|
}
|
|
9971
|
-
},
|
|
9975
|
+
}, Of = {
|
|
9972
9976
|
key: 0,
|
|
9973
9977
|
class: "pv-flex",
|
|
9974
9978
|
style: {
|
|
9975
9979
|
"--flex-gap": "0.5rem",
|
|
9976
9980
|
"flex-wrap": "wrap"
|
|
9977
9981
|
}
|
|
9978
|
-
},
|
|
9982
|
+
}, kf = {
|
|
9979
9983
|
key: 1,
|
|
9980
9984
|
class: "pv-inset-square-8"
|
|
9981
|
-
},
|
|
9985
|
+
}, Af = {
|
|
9982
9986
|
class: "pv-filter-modal-options pv-flex-vertical",
|
|
9983
9987
|
style: {
|
|
9984
9988
|
"--flex-align": "stretch",
|
|
9985
9989
|
"--flex-gap": "0.75rem"
|
|
9986
9990
|
}
|
|
9987
|
-
},
|
|
9991
|
+
}, jf = {
|
|
9988
9992
|
key: 1,
|
|
9989
9993
|
class: "pv-text-body-sm pv-text-subdued pv-stack-8",
|
|
9990
9994
|
style: { "font-weight": "500" }
|
|
9991
|
-
},
|
|
9995
|
+
}, Mf = {
|
|
9992
9996
|
key: 0,
|
|
9993
9997
|
class: "pv-text-body-xs pv-text-subdued",
|
|
9994
9998
|
style: { margin: "0" }
|
|
9995
|
-
},
|
|
9999
|
+
}, Nf = {
|
|
9996
10000
|
key: 3,
|
|
9997
10001
|
class: "pv-filter-modal-pane-actions pv-space-between pv-border-top"
|
|
9998
|
-
},
|
|
10002
|
+
}, Pf = {
|
|
9999
10003
|
key: 0,
|
|
10000
10004
|
class: "pv-flex pv-border-top",
|
|
10001
10005
|
style: {
|
|
@@ -10004,7 +10008,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10004
10008
|
"margin-top": "0.75rem",
|
|
10005
10009
|
"padding-top": "0.75rem"
|
|
10006
10010
|
}
|
|
10007
|
-
},
|
|
10011
|
+
}, Ff = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10008
10012
|
__name: "PvFilterModal",
|
|
10009
10013
|
props: /* @__PURE__ */ g({
|
|
10010
10014
|
header: { default: "Filters" },
|
|
@@ -10090,7 +10094,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10090
10094
|
"suggestion-click"
|
|
10091
10095
|
], ["update:filterModel", "update:visible"]),
|
|
10092
10096
|
setup(e, { emit: n }) {
|
|
10093
|
-
let c = e, l = B(e, "filterModel"), d = B(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } =
|
|
10097
|
+
let c = e, l = B(e, "filterModel"), d = B(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _, handleFacetChange: v, setFacetSelections: b, usesHandlerFacets: C } = nf(c, l, f), w = k(null), T = z(), E = k(""), O = r(() => p.value.filter((e) => e.type === "value")), M = r(() => {
|
|
10094
10098
|
let e = O.value;
|
|
10095
10099
|
return e.find((e) => e.key === w.value) ?? e[0] ?? null;
|
|
10096
10100
|
}), P = r(() => M.value?.isAggregate === !0), F = r(() => M.value?.aggregateSelectionState ?? []), R = r(() => new Set(M.value?.selectedValues ?? [])), V = r(() => E.value.trim().toLowerCase()), H = (e) => {
|
|
@@ -10107,7 +10111,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10107
10111
|
let e = M.value;
|
|
10108
10112
|
if (!e) return {};
|
|
10109
10113
|
let t = {};
|
|
10110
|
-
for (let n of
|
|
10114
|
+
for (let n of kl([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
10111
10115
|
return t;
|
|
10112
10116
|
}), U = r(() => M.value?.colDef.context?.filterPanel ?? {}), W = k(Object.fromEntries(O.value.flatMap((e) => {
|
|
10113
10117
|
let t = e.colDef.context?.filterPanel, n = Object.fromEntries(Object.entries(t ?? {}).flatMap(([e, t]) => t.initial?.length ? [[e, t.initial]] : []));
|
|
@@ -10173,22 +10177,22 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10173
10177
|
options: [...i.filter((e) => ce.value.has(e.value)), ...i.filter((e) => !ce.value.has(e.value))]
|
|
10174
10178
|
};
|
|
10175
10179
|
});
|
|
10176
|
-
}), fe = r(() => P.value && M.value ?
|
|
10180
|
+
}), fe = r(() => P.value && M.value ? ou({
|
|
10177
10181
|
options: M.value.knownOptions ?? [],
|
|
10178
10182
|
state: F.value
|
|
10179
|
-
}) : /* @__PURE__ */ new Map()), Z = (e) => e.isAggregate ?
|
|
10183
|
+
}) : /* @__PURE__ */ new Map()), Z = (e) => e.isAggregate ? lu(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, pe = (e) => P.value ? fe.value.get(e.value) ?? {
|
|
10180
10184
|
indeterminate: !1,
|
|
10181
10185
|
selected: !1
|
|
10182
10186
|
} : {
|
|
10183
10187
|
indeterminate: !1,
|
|
10184
10188
|
selected: R.value.has(e.value)
|
|
10185
|
-
}, me = (e) => M.value ?
|
|
10189
|
+
}, me = (e) => M.value ? yl(e, M.value.colDef) : e.label || e.value, he = (e) => Dl(e) ?? e.value, ge = (e) => Ol(e, M.value?.key ?? ""), _e = (e, t) => {
|
|
10186
10190
|
let n = M.value;
|
|
10187
10191
|
if (n) {
|
|
10188
10192
|
if (n.isAggregate) {
|
|
10189
10193
|
_(n.key, {
|
|
10190
10194
|
type: "aggregate-selection",
|
|
10191
|
-
value:
|
|
10195
|
+
value: iu({
|
|
10192
10196
|
checked: t,
|
|
10193
10197
|
option: e,
|
|
10194
10198
|
options: n.knownOptions ?? [],
|
|
@@ -10208,7 +10212,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10208
10212
|
for (let e of Y.value) pe(e).selected || _e(e, !0);
|
|
10209
10213
|
}, ye = () => {
|
|
10210
10214
|
if (P.value) {
|
|
10211
|
-
for (let e of
|
|
10215
|
+
for (let e of kl(M.value?.knownOptions ?? [])) pe(e).selected && _e(e, !1);
|
|
10212
10216
|
return;
|
|
10213
10217
|
}
|
|
10214
10218
|
for (let e of oe.value) _e(e, !1);
|
|
@@ -10255,7 +10259,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10255
10259
|
width: e.maxWidth,
|
|
10256
10260
|
maxWidth: e.maxWidth
|
|
10257
10261
|
})
|
|
10258
|
-
}, [s("div",
|
|
10262
|
+
}, [s("div", Tf, [s("nav", Ef, [(D(!0), o(t, null, A(O.value, (e) => (D(), i(Cf, {
|
|
10259
10263
|
key: e.key,
|
|
10260
10264
|
modelValue: xe.value,
|
|
10261
10265
|
"onUpdate:modelValue": r[0] ||= (e) => xe.value = e,
|
|
@@ -10269,7 +10273,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10269
10273
|
"label",
|
|
10270
10274
|
"right-counter-badge",
|
|
10271
10275
|
"value"
|
|
10272
|
-
]))), 128))]), s("div",
|
|
10276
|
+
]))), 128))]), s("div", Df, [
|
|
10273
10277
|
u(ui, {
|
|
10274
10278
|
modelValue: E.value,
|
|
10275
10279
|
"onUpdate:modelValue": r[1] ||= (e) => E.value = e,
|
|
@@ -10281,7 +10285,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10281
10285
|
"disabled",
|
|
10282
10286
|
"placeholder"
|
|
10283
10287
|
]),
|
|
10284
|
-
Object.keys(U.value).length ? (D(), o("div",
|
|
10288
|
+
Object.keys(U.value).length ? (D(), o("div", Of, [(D(!0), o(t, null, A(U.value, (e, t) => (D(), i(Mo, {
|
|
10285
10289
|
key: `facet-${t}`,
|
|
10286
10290
|
disabled: M.value?.disabled,
|
|
10287
10291
|
label: e.headerName || L(Se)(t),
|
|
@@ -10296,8 +10300,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10296
10300
|
"options",
|
|
10297
10301
|
"onUpdate:modelValue"
|
|
10298
10302
|
]))), 128))])) : a("", !0),
|
|
10299
|
-
M.value?.isLoading ? (D(), o("div",
|
|
10300
|
-
s("div",
|
|
10303
|
+
M.value?.isLoading ? (D(), o("div", kf, [u(Me, { size: "sm" })])) : M.value ? (D(), o(t, { key: 2 }, [
|
|
10304
|
+
s("div", Af, [(D(!0), o(t, null, A(ue.value, (e) => (D(), o("div", {
|
|
10301
10305
|
key: `section-${e.key}`,
|
|
10302
10306
|
class: "pv-flex-vertical",
|
|
10303
10307
|
style: {
|
|
@@ -10318,17 +10322,17 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10318
10322
|
"field",
|
|
10319
10323
|
"options",
|
|
10320
10324
|
"section"
|
|
10321
|
-
])) : e.label ? (D(), o("p",
|
|
10325
|
+
])) : e.label ? (D(), o("p", jf, I(e.label), 1)) : a("", !0), (D(!0), o(t, null, A(e.options, (e) => (D(), o("div", {
|
|
10322
10326
|
key: `option-${e.value}`,
|
|
10323
10327
|
class: y(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": pe(e).selected }])
|
|
10324
|
-
}, [u(
|
|
10328
|
+
}, [u(ll, {
|
|
10325
10329
|
control: M.value.singleSelect ? "radio" : "checkbox",
|
|
10326
10330
|
disabled: M.value.disabled || e.isSelectable === !1,
|
|
10327
10331
|
indeterminate: pe(e).indeterminate,
|
|
10328
10332
|
label: me(e),
|
|
10329
10333
|
name: L(T),
|
|
10330
10334
|
"query-text": E.value,
|
|
10331
|
-
"result-count": L(
|
|
10335
|
+
"result-count": L(bl)(e),
|
|
10332
10336
|
selected: pe(e).selected,
|
|
10333
10337
|
"sub-text": e.subText,
|
|
10334
10338
|
"subdued-text": e.subduedText,
|
|
@@ -10348,7 +10352,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10348
10352
|
"value",
|
|
10349
10353
|
"onToggleValue"
|
|
10350
10354
|
])], 2))), 128))]))), 128))]),
|
|
10351
|
-
Y.value.length ? a("", !0) : (D(), o("p",
|
|
10355
|
+
Y.value.length ? a("", !0) : (D(), o("p", Mf, " No matching values. ")),
|
|
10352
10356
|
M.value.hasMore ? (D(), i($, {
|
|
10353
10357
|
key: 1,
|
|
10354
10358
|
class: "pv-text-brand",
|
|
@@ -10359,7 +10363,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10359
10363
|
onClick: be
|
|
10360
10364
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
10361
10365
|
], 64)) : a("", !0),
|
|
10362
|
-
M.value && !e.readOnly ? (D(), o("div",
|
|
10366
|
+
M.value && !e.readOnly ? (D(), o("div", Nf, [M.value.singleSelect ? a("", !0) : (D(), i($, {
|
|
10363
10367
|
key: 0,
|
|
10364
10368
|
disabled: M.value.disabled,
|
|
10365
10369
|
label: e.selectAllLabel,
|
|
@@ -10371,7 +10375,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10371
10375
|
variant: "ghost",
|
|
10372
10376
|
onClick: ye
|
|
10373
10377
|
}, null, 8, ["disabled", "label"])])) : a("", !0)
|
|
10374
|
-
])]), e.staged ? (D(), o("div",
|
|
10378
|
+
])]), e.staged ? (D(), o("div", Pf, [u($, {
|
|
10375
10379
|
label: e.cancelLabel,
|
|
10376
10380
|
variant: "ghost",
|
|
10377
10381
|
onClick: L(g)
|
|
@@ -10379,14 +10383,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10379
10383
|
label: e.applyLabel,
|
|
10380
10384
|
variant: "primary",
|
|
10381
10385
|
onClick: L(h)
|
|
10382
|
-
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12,
|
|
10386
|
+
}, null, 8, ["label", "onClick"])])) : a("", !0)], 12, wf)]),
|
|
10383
10387
|
_: 3
|
|
10384
10388
|
}, 8, ["modelValue"]));
|
|
10385
10389
|
}
|
|
10386
|
-
}), [["__scopeId", "data-v-e3f66d03"]]),
|
|
10390
|
+
}), [["__scopeId", "data-v-e3f66d03"]]), If = ["tabindex"], Lf = {
|
|
10387
10391
|
key: 0,
|
|
10388
10392
|
class: "pv-hover-action-menu__actions"
|
|
10389
|
-
},
|
|
10393
|
+
}, Rf = { class: "pv-hover-action-menu__action-group" }, zf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10390
10394
|
__name: "PvHoverActionMenu",
|
|
10391
10395
|
props: {
|
|
10392
10396
|
disabled: {
|
|
@@ -10409,12 +10413,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10409
10413
|
class: y(["pv-hover-action-menu", d.value]),
|
|
10410
10414
|
tabindex: e.options.length ? 0 : void 0,
|
|
10411
10415
|
"data-testid": "pv-hover-action-menu"
|
|
10412
|
-
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div",
|
|
10416
|
+
}, [j(n.$slots, "default", {}, void 0, !0), e.options.length ? (D(), o("div", Lf, [u(rc, {
|
|
10413
10417
|
variant: e.variant,
|
|
10414
10418
|
"data-testid": "pv-hover-action-menu-actions",
|
|
10415
10419
|
onClick: r[0] ||= ie(() => {}, ["stop"])
|
|
10416
10420
|
}, {
|
|
10417
|
-
default: q(() => [s("div",
|
|
10421
|
+
default: q(() => [s("div", Rf, [(D(!0), o(t, null, A(e.options, (t) => (D(), i(ir, {
|
|
10418
10422
|
key: t.id,
|
|
10419
10423
|
variant: "dark",
|
|
10420
10424
|
position: "top-center",
|
|
@@ -10442,9 +10446,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10442
10446
|
_: 2
|
|
10443
10447
|
}, 1032, ["description"]))), 128))])]),
|
|
10444
10448
|
_: 1
|
|
10445
|
-
}, 8, ["variant"])])) : a("", !0)], 10,
|
|
10449
|
+
}, 8, ["variant"])])) : a("", !0)], 10, If));
|
|
10446
10450
|
}
|
|
10447
|
-
}), [["__scopeId", "data-v-6325cd25"]]),
|
|
10451
|
+
}), [["__scopeId", "data-v-6325cd25"]]), Bf = () => {
|
|
10448
10452
|
let e = (e, n) => {
|
|
10449
10453
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
10450
10454
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -10457,7 +10461,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10457
10461
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
10458
10462
|
} : null
|
|
10459
10463
|
};
|
|
10460
|
-
},
|
|
10464
|
+
}, Vf = /* @__PURE__ */ d({
|
|
10461
10465
|
__name: "QueryFormatter",
|
|
10462
10466
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
10463
10467
|
modelValue: { required: !0 },
|
|
@@ -10471,7 +10475,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10471
10475
|
}),
|
|
10472
10476
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
10473
10477
|
setup(e) {
|
|
10474
|
-
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } =
|
|
10478
|
+
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } = Bf(), u = r(() => {
|
|
10475
10479
|
let e = s.value?.queryTerms || [];
|
|
10476
10480
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
10477
10481
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -10507,27 +10511,27 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10507
10511
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
10508
10512
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
10509
10513
|
}
|
|
10510
|
-
}),
|
|
10514
|
+
}), Hf = [
|
|
10511
10515
|
"aria-expanded",
|
|
10512
10516
|
"aria-activedescendant",
|
|
10513
10517
|
"disabled",
|
|
10514
10518
|
"placeholder",
|
|
10515
10519
|
"data-invalid"
|
|
10516
|
-
],
|
|
10520
|
+
], Uf = {
|
|
10517
10521
|
key: 2,
|
|
10518
10522
|
class: "pv-text-red pv-text-body-xs"
|
|
10519
|
-
},
|
|
10523
|
+
}, Wf = ["id"], Gf = [
|
|
10520
10524
|
"id",
|
|
10521
10525
|
"aria-selected",
|
|
10522
10526
|
"aria-describedby",
|
|
10523
10527
|
"onMouseenter"
|
|
10524
|
-
],
|
|
10528
|
+
], Kf = {
|
|
10525
10529
|
key: 1,
|
|
10526
10530
|
role: "presentation"
|
|
10527
|
-
},
|
|
10531
|
+
}, qf = {
|
|
10528
10532
|
key: 1,
|
|
10529
10533
|
class: "pv-text-center"
|
|
10530
|
-
},
|
|
10534
|
+
}, Jf = /* @__PURE__ */ Ve(/* @__PURE__ */ d({
|
|
10531
10535
|
__name: "PvQueryBuilderInput",
|
|
10532
10536
|
props: /* @__PURE__ */ g({
|
|
10533
10537
|
placeholder: { default: "Search" },
|
|
@@ -10580,7 +10584,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10580
10584
|
width: "100%",
|
|
10581
10585
|
maxWidth: "100%",
|
|
10582
10586
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
10583
|
-
}, f = H("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
10587
|
+
}, f = H("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = Bf(), C = k(!1), w = k(!1), T = k(!1), E = V(), O = r(() => !!(E.header || E.footer || E.empty)), M = z(), N = `${M}-options`, P = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, R = r(() => ae.value.length > 0 || n.optionsLoading || O.value), ee = r(() => m.value === null ? n.placeholder : ""), U = k(null), W = r(() => U.value !== null && U.value !== "" && !w.value), ne = () => {
|
|
10584
10588
|
m.value = null, p.value = "", U.value = null, T.value = !1;
|
|
10585
10589
|
};
|
|
10586
10590
|
Y("Enter", (e) => {
|
|
@@ -10704,7 +10708,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10704
10708
|
"--inset-size": "4px",
|
|
10705
10709
|
"--flex-gap": "4px"
|
|
10706
10710
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
10707
|
-
}, [u(
|
|
10711
|
+
}, [u(Vf, {
|
|
10708
10712
|
modelValue: m.value,
|
|
10709
10713
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
10710
10714
|
"wrap-content": T.value,
|
|
@@ -10730,7 +10734,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10730
10734
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
10731
10735
|
onFocus: _e,
|
|
10732
10736
|
onBlur: _e
|
|
10733
|
-
}, null, 44,
|
|
10737
|
+
}, null, 44, Hf), [[G, p.value]])], 4),
|
|
10734
10738
|
m.value && !e.hideClearButton ? (D(), i($, {
|
|
10735
10739
|
key: 1,
|
|
10736
10740
|
variant: "ghost",
|
|
@@ -10738,7 +10742,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10738
10742
|
size: "md",
|
|
10739
10743
|
onClick: ne
|
|
10740
10744
|
})) : a("", !0),
|
|
10741
|
-
W.value ? (D(), o("p",
|
|
10745
|
+
W.value ? (D(), o("p", Uf, I(U.value), 1)) : a("", !0),
|
|
10742
10746
|
R.value ? J((D(), i(wr, {
|
|
10743
10747
|
key: 3,
|
|
10744
10748
|
class: "pv-scrollbar-visible",
|
|
@@ -10748,12 +10752,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10748
10752
|
listId: N,
|
|
10749
10753
|
listRole: "listbox"
|
|
10750
10754
|
}, c({
|
|
10751
|
-
default: q(() => [e.optionsLoading ? (D(), o("div",
|
|
10755
|
+
default: q(() => [e.optionsLoading ? (D(), o("div", qf, [u(Me, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [ae.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(oe.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
10752
10756
|
key: 0,
|
|
10753
10757
|
id: F(r),
|
|
10754
10758
|
role: "presentation",
|
|
10755
10759
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
10756
|
-
}, I(e), 9,
|
|
10760
|
+
}, I(e), 9, Wf)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
10757
10761
|
key: `${e}-${t.id}`,
|
|
10758
10762
|
id: P(ce.value.get(t) ?? -1),
|
|
10759
10763
|
role: "option",
|
|
@@ -10765,7 +10769,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10765
10769
|
config: l,
|
|
10766
10770
|
queryText: p.value,
|
|
10767
10771
|
onHandleSelected: (e) => he(t)
|
|
10768
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
10772
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, Gf))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", Kf, [j(n.$slots, "empty", {}, void 0, !0)])) : a("", !0)], 64))]),
|
|
10769
10773
|
_: 2
|
|
10770
10774
|
}, [n.$slots.header ? {
|
|
10771
10775
|
name: "header",
|
|
@@ -10778,7 +10782,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10778
10782
|
} : void 0]), 1536)), [[te, C.value]]) : a("", !0)
|
|
10779
10783
|
], 34)), [[L(Z), me]]);
|
|
10780
10784
|
}
|
|
10781
|
-
}), [["__scopeId", "data-v-62aa7767"]]),
|
|
10785
|
+
}), [["__scopeId", "data-v-62aa7767"]]), Yf = { class: "sidebar-header-content" }, Xf = { class: "content-panel" }, Zf = 300, Qf = /* @__PURE__ */ d({
|
|
10782
10786
|
__name: "PvSidebar",
|
|
10783
10787
|
props: /* @__PURE__ */ g({
|
|
10784
10788
|
disableToggle: { type: Boolean },
|
|
@@ -10805,7 +10809,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10805
10809
|
}, h = () => {
|
|
10806
10810
|
n.newVersion || r.value && (u && clearTimeout(u), u = setTimeout(() => {
|
|
10807
10811
|
l.value = !0;
|
|
10808
|
-
},
|
|
10812
|
+
}, Zf));
|
|
10809
10813
|
}, g = () => {
|
|
10810
10814
|
n.newVersion || (u &&= (clearTimeout(u), null), m(), l.value = !1);
|
|
10811
10815
|
}, _ = () => {
|
|
@@ -10824,119 +10828,119 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10824
10828
|
onMouseenter: h,
|
|
10825
10829
|
onMouseleave: g,
|
|
10826
10830
|
onFocusin: h
|
|
10827
|
-
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div",
|
|
10831
|
+
}, [s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": r.value }]]) }, [s("div", Yf, [j(t.$slots, "sidebar-header")]), e.disableToggle ? a("", !0) : (D(), i($, {
|
|
10828
10832
|
key: 0,
|
|
10829
10833
|
class: "sidebar-toggle",
|
|
10830
10834
|
"left-icon": r.value ? "panel-left-open" : "panel-left-close",
|
|
10831
10835
|
"aria-label": r.value ? "Open sidebar" : "Close sidebar",
|
|
10832
10836
|
variant: "ghost",
|
|
10833
10837
|
onClick: _
|
|
10834
|
-
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div",
|
|
10838
|
+
}, null, 8, ["left-icon", "aria-label"]))], 2), j(t.$slots, "sidebar")], 32), s("div", Xf, [j(t.$slots, "default")])], 2));
|
|
10835
10839
|
}
|
|
10836
|
-
}),
|
|
10840
|
+
}), $f = {
|
|
10837
10841
|
key: 0,
|
|
10838
10842
|
class: "sidebar-additional-header"
|
|
10839
|
-
},
|
|
10843
|
+
}, ep = { class: "sidebar-header-content pv-full-width" }, tp = {
|
|
10840
10844
|
key: 0,
|
|
10841
10845
|
class: "pv-sidebar-nav-header"
|
|
10842
|
-
},
|
|
10846
|
+
}, np = ["aria-label", "aria-expanded"], rp = {
|
|
10843
10847
|
class: "pv-flex",
|
|
10844
10848
|
style: { "min-width": "0" }
|
|
10845
|
-
},
|
|
10849
|
+
}, ip = {
|
|
10846
10850
|
class: "pv-avatar-xs",
|
|
10847
10851
|
style: {
|
|
10848
10852
|
"border-radius": "4px",
|
|
10849
10853
|
"flex-shrink": "0"
|
|
10850
10854
|
}
|
|
10851
|
-
},
|
|
10855
|
+
}, ap = ["src"], op = { key: 1 }, sp = ["title"], cp = {
|
|
10852
10856
|
class: "pv-popover",
|
|
10853
10857
|
style: {
|
|
10854
10858
|
width: "fit-content",
|
|
10855
10859
|
"max-width": "280px",
|
|
10856
10860
|
"margin-top": "4px"
|
|
10857
10861
|
}
|
|
10858
|
-
},
|
|
10862
|
+
}, lp = {
|
|
10859
10863
|
role: "list",
|
|
10860
10864
|
class: "pv-popover-list pv-flow",
|
|
10861
10865
|
style: { "--flow-size": "0.25rem" },
|
|
10862
10866
|
"data-testid": "pv-sidebar-org-list"
|
|
10863
|
-
},
|
|
10867
|
+
}, up = ["data-active"], dp = ["href", "data-org-value"], fp = {
|
|
10864
10868
|
class: "pv-avatar-xs",
|
|
10865
10869
|
style: { "border-radius": "4px" }
|
|
10866
|
-
},
|
|
10870
|
+
}, pp = ["src"], mp = { key: 1 }, hp = ["title"], gp = ["data-active"], _p = ["href", "data-org-value"], vp = ["title"], yp = { class: "pv-sidebar-nav" }, bp = { key: 0 }, xp = {
|
|
10867
10871
|
key: 1,
|
|
10868
10872
|
role: "list",
|
|
10869
10873
|
class: "pv-full-width pv-flow",
|
|
10870
10874
|
style: { "--flow-size": "0.25rem" }
|
|
10871
|
-
},
|
|
10875
|
+
}, Sp = {
|
|
10872
10876
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10873
10877
|
"data-sidebar-expanded-content": "",
|
|
10874
10878
|
style: { "flex-wrap": "wrap" }
|
|
10875
|
-
},
|
|
10879
|
+
}, Cp = {
|
|
10876
10880
|
key: 0,
|
|
10877
10881
|
class: "pv-tag-purple pv-tag-sm"
|
|
10878
|
-
},
|
|
10882
|
+
}, wp = ["onClick", "onKeydown"], Tp = [
|
|
10879
10883
|
"href",
|
|
10880
10884
|
"aria-current",
|
|
10881
10885
|
"title"
|
|
10882
|
-
],
|
|
10886
|
+
], Ep = {
|
|
10883
10887
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10884
10888
|
"data-sidebar-expanded-content": "",
|
|
10885
10889
|
style: { "flex-wrap": "wrap" }
|
|
10886
|
-
},
|
|
10890
|
+
}, Dp = {
|
|
10887
10891
|
key: 0,
|
|
10888
10892
|
class: "pv-tag-purple pv-tag-sm"
|
|
10889
|
-
},
|
|
10893
|
+
}, Op = {
|
|
10890
10894
|
class: "pv-popover",
|
|
10891
10895
|
style: { "--position": "static" }
|
|
10892
|
-
},
|
|
10896
|
+
}, kp = {
|
|
10893
10897
|
role: "list",
|
|
10894
10898
|
class: "pv-popover-list"
|
|
10895
|
-
},
|
|
10899
|
+
}, Ap = ["data-active"], jp = ["href"], Mp = {
|
|
10896
10900
|
key: 0,
|
|
10897
10901
|
class: "pv-tag-purple pv-tag-sm"
|
|
10898
|
-
},
|
|
10902
|
+
}, Np = ["onClick", "onAuxclick"], Pp = { "data-sidebar-expanded-content": "" }, Fp = { class: "pv-sidebar-nav-nested" }, Ip = [
|
|
10899
10903
|
"href",
|
|
10900
10904
|
"aria-current",
|
|
10901
10905
|
"title"
|
|
10902
|
-
],
|
|
10906
|
+
], Lp = {
|
|
10903
10907
|
class: "pv-flex pv-space-between pv-full-width",
|
|
10904
10908
|
style: { "flex-wrap": "wrap" }
|
|
10905
|
-
},
|
|
10909
|
+
}, Rp = {
|
|
10906
10910
|
key: 0,
|
|
10907
10911
|
class: "pv-tag-purple pv-tag-sm"
|
|
10908
|
-
},
|
|
10912
|
+
}, zp = {
|
|
10909
10913
|
class: "pv-popover",
|
|
10910
10914
|
style: {
|
|
10911
10915
|
"--position": "static",
|
|
10912
10916
|
"--height": "350px"
|
|
10913
10917
|
}
|
|
10914
|
-
},
|
|
10918
|
+
}, Bp = {
|
|
10915
10919
|
role: "list",
|
|
10916
10920
|
class: "pv-popover-list"
|
|
10917
|
-
},
|
|
10921
|
+
}, Vp = ["data-active"], Hp = ["href"], Up = {
|
|
10918
10922
|
key: 0,
|
|
10919
10923
|
class: "pv-tag-purple pv-tag-sm"
|
|
10920
|
-
},
|
|
10924
|
+
}, Wp = {
|
|
10921
10925
|
class: "pv-sidebar-nav-footer pv-sticky",
|
|
10922
10926
|
style: { "--bottom": "0" }
|
|
10923
|
-
},
|
|
10927
|
+
}, Gp = ["aria-expanded"], Kp = { class: "pv-popover pv-text-default pv-text-body-md" }, qp = [
|
|
10924
10928
|
"aria-label",
|
|
10925
10929
|
"aria-expanded",
|
|
10926
10930
|
"title"
|
|
10927
|
-
],
|
|
10931
|
+
], Jp = {
|
|
10928
10932
|
class: "pv-avatar-xs",
|
|
10929
10933
|
style: {
|
|
10930
10934
|
"border-radius": "50%",
|
|
10931
10935
|
"flex-shrink": "0"
|
|
10932
10936
|
}
|
|
10933
|
-
},
|
|
10937
|
+
}, Yp = ["src"], Xp = { key: 1 }, Zp = {
|
|
10934
10938
|
class: "pv-truncate",
|
|
10935
10939
|
"data-sidebar-expanded-content": ""
|
|
10936
|
-
},
|
|
10940
|
+
}, Qp = {
|
|
10937
10941
|
class: "pv-popover pv-text-default pv-text-body-md",
|
|
10938
10942
|
style: { "--height": "750px" }
|
|
10939
|
-
},
|
|
10943
|
+
}, $p = { class: "content-panel" }, em = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", tm = /* @__PURE__ */ d({
|
|
10940
10944
|
__name: "PvSidebarV2",
|
|
10941
10945
|
props: /* @__PURE__ */ g({
|
|
10942
10946
|
disableToggle: { type: Boolean },
|
|
@@ -10960,11 +10964,11 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
10960
10964
|
})), ee, U = (e) => e.hoverPanelSlot ? p ? (R.value, Yn(p, e.hoverPanelSlot)) : !!C[e.hoverPanelSlot] : !1, W = (e, t, n) => {
|
|
10961
10965
|
n instanceof HTMLElement ? e.set(t, n) : e.delete(t);
|
|
10962
10966
|
}, G = (e) => {
|
|
10963
|
-
let t = P.get(e), n = t?.querySelector(
|
|
10967
|
+
let t = P.get(e), n = t?.querySelector(em);
|
|
10964
10968
|
if (n) return n;
|
|
10965
10969
|
for (let e of t?.querySelectorAll("slot") ?? []) for (let t of e.assignedElements({ flatten: !0 })) {
|
|
10966
|
-
if (t.matches(
|
|
10967
|
-
let e = t.querySelector(
|
|
10970
|
+
if (t.matches(em)) return t;
|
|
10971
|
+
let e = t.querySelector(em);
|
|
10968
10972
|
if (e) return e;
|
|
10969
10973
|
}
|
|
10970
10974
|
}, te = (e, t) => {
|
|
@@ -11045,7 +11049,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11045
11049
|
ref_key: "sidebarPanel",
|
|
11046
11050
|
ref: E,
|
|
11047
11051
|
class: "sidebar-panel"
|
|
11048
|
-
}, [s("div", null, [L(h) ? (D(), o("div",
|
|
11052
|
+
}, [s("div", null, [L(h) ? (D(), o("div", $f, [j(n.$slots, "sidebar-additional-header")])) : a("", !0), s("div", { class: y(["sidebar-header", [{ "pv-border-bottom": X.value }]]) }, [s("div", ep, [e.organizations && e.organizations.length ? (D(), o("div", tp, [u(nr, {
|
|
11049
11053
|
modelValue: fe.value,
|
|
11050
11054
|
"onUpdate:modelValue": r[0] ||= (e) => fe.value = e,
|
|
11051
11055
|
position: X.value ? "right-top" : "bottom-left",
|
|
@@ -11062,32 +11066,32 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11062
11066
|
"data-testid": "pv-sidebar-org-switcher",
|
|
11063
11067
|
"aria-label": `Switch organization: ${Y.value?.label}`,
|
|
11064
11068
|
"aria-expanded": fe.value
|
|
11065
|
-
}, [s("div",
|
|
11069
|
+
}, [s("div", rp, [s("span", ip, [Y.value?.avatarUrl ? (D(), o("img", {
|
|
11066
11070
|
key: 0,
|
|
11067
11071
|
src: Y.value.avatarUrl,
|
|
11068
11072
|
alt: "Organization Avatar"
|
|
11069
|
-
}, null, 8,
|
|
11073
|
+
}, null, 8, ap)) : (D(), o("span", op, I(Y.value?.label?.slice(0, 1)), 1))]), s("span", {
|
|
11070
11074
|
class: "pv-text-title-lg pv-truncate",
|
|
11071
11075
|
"data-sidebar-expanded-content": "",
|
|
11072
11076
|
title: Y.value?.label
|
|
11073
|
-
}, I(Y.value?.label), 9,
|
|
11077
|
+
}, I(Y.value?.label), 9, sp)]), u(Q, {
|
|
11074
11078
|
name: "chevron-down",
|
|
11075
11079
|
class: "pv-icon-16",
|
|
11076
11080
|
"data-sidebar-expanded-content": ""
|
|
11077
|
-
})], 8,
|
|
11078
|
-
content: q(() => [s("div",
|
|
11081
|
+
})], 8, np)]),
|
|
11082
|
+
content: q(() => [s("div", cp, [s("ul", lp, [(D(!0), o(t, null, A(e.organizations, (e) => (D(), o(t, { key: e.value }, [s("li", { "data-active": e.active || void 0 }, [s("a", {
|
|
11079
11083
|
class: "pv-flex",
|
|
11080
11084
|
href: e.url,
|
|
11081
11085
|
"data-testid": "pv-sidebar-org-option",
|
|
11082
11086
|
"data-org-value": e.value
|
|
11083
|
-
}, [s("div",
|
|
11087
|
+
}, [s("div", fp, [e.avatarUrl ? (D(), o("img", {
|
|
11084
11088
|
key: 0,
|
|
11085
11089
|
src: e.avatarUrl,
|
|
11086
11090
|
alt: "Organization Avatar"
|
|
11087
|
-
}, null, 8,
|
|
11091
|
+
}, null, 8, pp)) : (D(), o("span", mp, I(e.label.slice(0, 1)), 1))]), s("span", {
|
|
11088
11092
|
class: "pv-truncate pv-flex-item",
|
|
11089
11093
|
title: e.label
|
|
11090
|
-
}, I(e.label), 9,
|
|
11094
|
+
}, I(e.label), 9, hp)], 8, dp)], 8, up), (D(!0), o(t, null, A(e.entities, (e) => (D(), o("li", {
|
|
11091
11095
|
key: e.value,
|
|
11092
11096
|
style: { "padding-left": "0.5rem" },
|
|
11093
11097
|
"data-active": e.active || void 0
|
|
@@ -11100,7 +11104,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11100
11104
|
}, [u(Q, { name: "corner-down-right" }), s("span", {
|
|
11101
11105
|
class: "pv-truncate",
|
|
11102
11106
|
title: e.label
|
|
11103
|
-
}, I(e.label), 9,
|
|
11107
|
+
}, I(e.label), 9, vp)], 8, _p)], 8, gp))), 128))], 64))), 128))])])]),
|
|
11104
11108
|
_: 1
|
|
11105
11109
|
}, 8, [
|
|
11106
11110
|
"modelValue",
|
|
@@ -11123,9 +11127,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11123
11127
|
}, null, 8, ["left-icon", "aria-label"])]),
|
|
11124
11128
|
content: q(() => [l(I(X.value ? "Expand navigation" : "Collapse navigation"), 1)]),
|
|
11125
11129
|
_: 1
|
|
11126
|
-
}))], 2)]), s("div",
|
|
11127
|
-
L(m) ? (D(), o("div",
|
|
11128
|
-
e.navItems && e.navItems.length ? (D(), o("ul",
|
|
11130
|
+
}))], 2)]), s("div", yp, [
|
|
11131
|
+
L(m) ? (D(), o("div", bp, [j(n.$slots, "sidebar-additional-content")])) : a("", !0),
|
|
11132
|
+
e.navItems && e.navItems.length ? (D(), o("ul", xp, [(D(!0), o(t, null, A(e.navItems, (e) => (D(), o("li", { key: e.value }, [U(e) ? (D(), i(nr, {
|
|
11129
11133
|
key: 0,
|
|
11130
11134
|
modelValue: O.value[e.value],
|
|
11131
11135
|
"onUpdate:modelValue": (t) => O.value[e.value] = t,
|
|
@@ -11155,7 +11159,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11155
11159
|
key: 0,
|
|
11156
11160
|
name: e.icon,
|
|
11157
11161
|
class: "pv-nav-icon"
|
|
11158
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11162
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Sp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Cp, I(e.badge.toUpperCase()), 1)) : a("", !0)])]),
|
|
11159
11163
|
_: 2
|
|
11160
11164
|
}, 1040, [
|
|
11161
11165
|
"href",
|
|
@@ -11172,7 +11176,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11172
11176
|
class: "pv-sidebar-hover-panel",
|
|
11173
11177
|
onClick: (t) => J(t, e.value),
|
|
11174
11178
|
onKeydown: (t) => ie(t, e.value)
|
|
11175
|
-
}, [j(n.$slots, e.hoverPanelSlot)], 40,
|
|
11179
|
+
}, [j(n.$slots, e.hoverPanelSlot)], 40, wp)]),
|
|
11176
11180
|
_: 2
|
|
11177
11181
|
}, 1032, [
|
|
11178
11182
|
"modelValue",
|
|
@@ -11201,8 +11205,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11201
11205
|
key: 0,
|
|
11202
11206
|
name: e.icon,
|
|
11203
11207
|
class: "pv-nav-icon"
|
|
11204
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11205
|
-
content: q(() => [s("div",
|
|
11208
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Ep, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Dp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Tp)]),
|
|
11209
|
+
content: q(() => [s("div", Op, [s("ul", kp, [s("li", { "data-active": e.active || void 0 }, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Mp, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, jp)], 8, Ap)])])]),
|
|
11206
11210
|
_: 2
|
|
11207
11211
|
}, 1032, [
|
|
11208
11212
|
"use-teleport",
|
|
@@ -11235,14 +11239,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11235
11239
|
key: 0,
|
|
11236
11240
|
name: e.icon,
|
|
11237
11241
|
class: "pv-nav-icon"
|
|
11238
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
11239
|
-
default: q(() => [s("div",
|
|
11242
|
+
}, null, 8, ["name"])) : a("", !0), s("span", Pp, I(e.label), 1)], 40, Np)]),
|
|
11243
|
+
default: q(() => [s("div", Fp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("a", _({
|
|
11240
11244
|
key: e.value,
|
|
11241
11245
|
href: e.url
|
|
11242
11246
|
}, { ref_for: !0 }, e.linkAttrs, {
|
|
11243
11247
|
"aria-current": e.active ? "page" : void 0,
|
|
11244
11248
|
title: e.label
|
|
11245
|
-
}), [s("span",
|
|
11249
|
+
}), [s("span", Lp, [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Rp, I(e.badge.toUpperCase()), 1)) : a("", !0)])], 16, Ip))), 128))])]),
|
|
11246
11250
|
_: 2
|
|
11247
11251
|
}, 1032, [
|
|
11248
11252
|
"modelValue",
|
|
@@ -11250,17 +11254,17 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11250
11254
|
"default-open",
|
|
11251
11255
|
"summary-attrs"
|
|
11252
11256
|
])]),
|
|
11253
|
-
content: q(() => [s("div",
|
|
11257
|
+
content: q(() => [s("div", zp, [s("ul", Bp, [(D(!0), o(t, null, A(e.children, (e) => (D(), o("li", {
|
|
11254
11258
|
key: e.value,
|
|
11255
11259
|
"data-active": e.active || void 0
|
|
11256
|
-
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span",
|
|
11260
|
+
}, [s("a", _({ href: e.url }, { ref_for: !0 }, e.linkAttrs, { style: { "flex-wrap": "wrap" } }), [s("span", { class: y(["pv-truncate pv-flex-item", { "pv-link-external": e.external }]) }, I(e.label), 3), e.badge ? (D(), o("span", Up, I(e.badge.toUpperCase()), 1)) : a("", !0)], 16, Hp)], 8, Vp))), 128))])])]),
|
|
11257
11261
|
_: 2
|
|
11258
11262
|
}, 1032, [
|
|
11259
11263
|
"use-teleport",
|
|
11260
11264
|
"teleport-location",
|
|
11261
11265
|
"disabled"
|
|
11262
11266
|
]))]))), 128))])) : a("", !0),
|
|
11263
|
-
s("div",
|
|
11267
|
+
s("div", Wp, [L(g) ? (D(), i(nr, {
|
|
11264
11268
|
key: 0,
|
|
11265
11269
|
modelValue: de.value,
|
|
11266
11270
|
"onUpdate:modelValue": r[1] ||= (e) => de.value = e,
|
|
@@ -11282,8 +11286,8 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11282
11286
|
}, [u(Q, {
|
|
11283
11287
|
name: "help-circle",
|
|
11284
11288
|
class: "pv-icon-20 pv-nav-icon"
|
|
11285
|
-
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8,
|
|
11286
|
-
content: q(() => [s("div",
|
|
11289
|
+
}), r[3] ||= s("span", { "data-sidebar-expanded-content": "" }, "Help", -1)], 8, Gp)]),
|
|
11290
|
+
content: q(() => [s("div", Kp, [j(n.$slots, "sidebar-help-content")])]),
|
|
11287
11291
|
_: 3
|
|
11288
11292
|
}, 8, [
|
|
11289
11293
|
"modelValue",
|
|
@@ -11311,12 +11315,12 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11311
11315
|
"aria-label": e.profile.name,
|
|
11312
11316
|
"aria-expanded": Z.value,
|
|
11313
11317
|
title: e.profile.name
|
|
11314
|
-
}, [s("span",
|
|
11318
|
+
}, [s("span", Jp, [e.profile.avatarUrl ? (D(), o("img", {
|
|
11315
11319
|
key: 0,
|
|
11316
11320
|
src: e.profile.avatarUrl,
|
|
11317
11321
|
alt: ""
|
|
11318
|
-
}, null, 8,
|
|
11319
|
-
content: q(() => [s("div",
|
|
11322
|
+
}, null, 8, Yp)) : (D(), o("span", Xp, I(e.profile.name.slice(0, 1)), 1))]), s("span", Zp, I(e.profile.name), 1)], 8, qp)]),
|
|
11323
|
+
content: q(() => [s("div", Qp, [j(n.$slots, "sidebar-profile-content")])]),
|
|
11320
11324
|
_: 3
|
|
11321
11325
|
}, 8, [
|
|
11322
11326
|
"modelValue",
|
|
@@ -11326,7 +11330,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11326
11330
|
"teleport-location"
|
|
11327
11331
|
])) : a("", !0)])
|
|
11328
11332
|
])], 512),
|
|
11329
|
-
s("div",
|
|
11333
|
+
s("div", $p, [j(n.$slots, "default")]),
|
|
11330
11334
|
s("div", {
|
|
11331
11335
|
ref_key: "popoverTeleportTarget",
|
|
11332
11336
|
ref: T,
|
|
@@ -11334,11 +11338,11 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11334
11338
|
}, null, 512)
|
|
11335
11339
|
], 38));
|
|
11336
11340
|
}
|
|
11337
|
-
}),
|
|
11341
|
+
}), nm = {
|
|
11338
11342
|
class: "pv-toc",
|
|
11339
11343
|
role: "list",
|
|
11340
11344
|
style: { "min-width": "160px" }
|
|
11341
|
-
},
|
|
11345
|
+
}, rm = ["aria-current"], im = ["href", "onClick"], am = /* @__PURE__ */ d({
|
|
11342
11346
|
__name: "PvTableOfContents",
|
|
11343
11347
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
11344
11348
|
modelValue: { required: !1 },
|
|
@@ -11349,7 +11353,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11349
11353
|
let r = B(e, "modelValue"), c = n, u = (e, t) => {
|
|
11350
11354
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
11351
11355
|
};
|
|
11352
|
-
return (n, c) => (D(), o("ul",
|
|
11356
|
+
return (n, c) => (D(), o("ul", nm, [(D(!0), o(t, null, A(e.items, (e) => (D(), o("li", {
|
|
11353
11357
|
key: e.id,
|
|
11354
11358
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
11355
11359
|
}, [s("a", {
|
|
@@ -11358,9 +11362,9 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11358
11362
|
}, [e.icon ? (D(), i(Q, {
|
|
11359
11363
|
key: 0,
|
|
11360
11364
|
name: e.icon
|
|
11361
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8,
|
|
11365
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + I(e.label), 1)], 8, im)], 8, rm))), 128))]));
|
|
11362
11366
|
}
|
|
11363
|
-
}),
|
|
11367
|
+
}), om = { class: "pv-flex" }, sm = ["data-clickable", "onClick"], cm = /* @__PURE__ */ d({
|
|
11364
11368
|
__name: "PvStepper",
|
|
11365
11369
|
props: {
|
|
11366
11370
|
count: { default: 5 },
|
|
@@ -11373,14 +11377,14 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11373
11377
|
emits: ["update:active"],
|
|
11374
11378
|
setup(e) {
|
|
11375
11379
|
let n = e;
|
|
11376
|
-
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div",
|
|
11380
|
+
return (n.active < 0 || n.active >= n.count) && console.warn(`PvStepper: "active" (${n.active}) is out of range for "count" (${n.count}).`), (n, r) => (D(), o("div", om, [(D(!0), o(t, null, A(e.count, (t, r) => (D(), o("div", {
|
|
11377
11381
|
key: r,
|
|
11378
11382
|
"data-clickable": e.clickable,
|
|
11379
11383
|
class: y(r === e.active ? "pv-stepper-active" : "pv-stepper-inactive"),
|
|
11380
11384
|
onClick: (t) => e.clickable && n.$emit("update:active", r)
|
|
11381
|
-
}, null, 10,
|
|
11385
|
+
}, null, 10, sm))), 128))]));
|
|
11382
11386
|
}
|
|
11383
|
-
}),
|
|
11387
|
+
}), lm = { theme: {
|
|
11384
11388
|
preset: we,
|
|
11385
11389
|
options: {
|
|
11386
11390
|
darkModeSelector: "none",
|
|
@@ -11389,15 +11393,15 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11389
11393
|
order: "pit-viper-v2, primevue"
|
|
11390
11394
|
}
|
|
11391
11395
|
}
|
|
11392
|
-
} },
|
|
11393
|
-
e.use(Ce,
|
|
11394
|
-
},
|
|
11395
|
-
let e = m(
|
|
11396
|
+
} }, um = (e) => {
|
|
11397
|
+
e.use(Ce, lm);
|
|
11398
|
+
}, dm = Symbol.for("pv.rum-context"), fm = () => {
|
|
11399
|
+
let e = m(dm, void 0);
|
|
11396
11400
|
return () => {
|
|
11397
11401
|
let t = e?.value;
|
|
11398
11402
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
11399
11403
|
};
|
|
11400
|
-
},
|
|
11404
|
+
}, pm = (e, t = {}, n = {}) => {
|
|
11401
11405
|
try {
|
|
11402
11406
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
11403
11407
|
let r = n.consumer == null ? t : {
|
|
@@ -11406,7 +11410,7 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11406
11410
|
};
|
|
11407
11411
|
window.DD_RUM.addAction(e, r);
|
|
11408
11412
|
} catch {}
|
|
11409
|
-
},
|
|
11413
|
+
}, mm = (e) => {
|
|
11410
11414
|
queueMicrotask(() => {
|
|
11411
11415
|
try {
|
|
11412
11416
|
e();
|
|
@@ -11414,6 +11418,6 @@ var nf = ["aria-label"], rf = { class: "pv-filter-panel-header pv-flex pv-border
|
|
|
11414
11418
|
});
|
|
11415
11419
|
};
|
|
11416
11420
|
//#endregion
|
|
11417
|
-
export { ki as ContextCardEnum, ai as PvAccordion,
|
|
11421
|
+
export { ki as ContextCardEnum, ai as PvAccordion, rc as PvActionBar, or as PvActionButton, lr as PvAiButton, wa as PvAvatar, ss as PvAvatarGroup, Yr as PvBanner, ya as PvBreadcrumbs, $ as PvButton, mr as PvButtonWithTooltip, Ws as PvCard, ps as PvCheckbox, Pi as PvCompanyLabel, Lr as PvCompanyLogo, ei as PvCompanyTag, He as PvCounterBadge, _i as PvDatePicker, yi as PvDateTime, zc as PvDistributionBar, Oi as PvDrawer, Dr as PvDropdown, $r as PvEmptyErrorState, $s as PvExpandableContent, js as PvFileInput, Ff as PvFilterModal, vf as PvFilterPanel, $o as PvGhostInput, is as PvHeader, Ku as PvHorizontalScroller, zf as PvHoverActionMenu, Q as PvIcon, ws as PvInput, Qs as PvInsightCard, wo as PvMenu, go as PvMenuItem, Ur as PvModal, Mo as PvMultiSelectButton, Ho as PvPagination, xr as PvPill, wr as PvPopover, kr as PvPopoverMenu, nr as PvPopoverV2, Lc as PvProgressBar, Jf as PvQueryBuilderInput, _s as PvRadioGroup, nl as PvRange, Ps as PvRating, vr as PvReleaseBadge, ui as PvSearchInput, Ar as PvSegmentedControl, Fo as PvSelectButton, Go as PvSelectableCard, Xo as PvSidePanel, Qf as PvSidebar, tm as PvSidebarV2, ys as PvSkeleton, la as PvSpinesContextCard, pa as PvSpinesContextDrawer, Me as PvSpinner, _r as PvSplitButton, vs as PvSprite, cm as PvStepper, ri as PvSuggestionTag, Ya as PvSwitch, Pr as PvTabList, am as PvTableOfContents, ga as PvTabs, br as PvTag, Wi as PvTextArea, tc as PvToast, Ji as PvToggleButton, ds as PvToggleGroup, fr as PvTooltip, ir as PvTooltipV2, jc as PvTree, Mc as PvTreeGroup, Gs as PvWidget, dm as RumContextKey, pm as addRumAction, Jd as createPvFilterStore, mm as deferRumTask, Yd as providePvFilterStore, vi as useDateTime, Xd as useOptionalPvFilterStore, um as usePvComponents, Zd as usePvFilterStore, fm as useRumContext };
|
|
11418
11422
|
|
|
11419
11423
|
//# sourceMappingURL=pv-components-base.mjs.map
|