@turquoisehealth/pit-viper 2.224.1-dev.0 → 2.224.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +1 -1
- package/_site/assets/css/pit-viper-consumer.css +1 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
- package/_site/assets/css/pit-viper-v2.css +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs +727 -689
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSearchInput/PvSearchInput.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvTooltip/PvTooltip.vue.d.ts +7 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/crosslineHelpers.d.ts +2 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/helpers.d.ts +3 -2
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +5 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2531 -2483
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +2 -0
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +554 -549
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +837 -800
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +632 -623
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +21 -15
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1732 -1696
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +21 -15
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +17 -8
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +110 -75
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +425 -404
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1728,19 +1728,19 @@ var jr = {
|
|
|
1728
1728
|
config: { type: Object }
|
|
1729
1729
|
},
|
|
1730
1730
|
setup(e) {
|
|
1731
|
-
let n = e, c = M(null), l = M(null), u = r(() => n.subText || null),
|
|
1732
|
-
let r =
|
|
1731
|
+
let n = e, c = M(null), l = M(null), u = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), d = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), f = r(() => n.subText || null), p = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), m = (e, t, n) => {
|
|
1732
|
+
let r = p(n), i = RegExp(`(${r})`, "gi");
|
|
1733
1733
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
1734
|
-
},
|
|
1734
|
+
}, h = () => {
|
|
1735
1735
|
if (n.queryText) {
|
|
1736
|
-
let e = new RegExp(
|
|
1737
|
-
c.value &&
|
|
1738
|
-
} else c.value && (c.value.textContent = n.text), l.value &&
|
|
1736
|
+
let e = new RegExp(p(n.queryText), "gi").test(n.text);
|
|
1737
|
+
c.value && m(c.value, n.text, n.queryText), l.value && f.value && (e ? l.value.textContent = f.value : m(l.value, f.value, n.queryText));
|
|
1738
|
+
} else c.value && (c.value.textContent = n.text), l.value && f.value && (l.value.textContent = f.value);
|
|
1739
1739
|
};
|
|
1740
1740
|
return D(() => {
|
|
1741
|
-
|
|
1741
|
+
h();
|
|
1742
1742
|
}), F(() => n.queryText, () => {
|
|
1743
|
-
|
|
1743
|
+
h();
|
|
1744
1744
|
}), (n, r) => (A(), o(t, null, [
|
|
1745
1745
|
e.avatar ? (A(), i(Ir, {
|
|
1746
1746
|
key: 0,
|
|
@@ -1748,18 +1748,24 @@ var jr = {
|
|
|
1748
1748
|
image: e.avatar.image,
|
|
1749
1749
|
variant: e.avatar.variant,
|
|
1750
1750
|
shape: e.avatar.shape,
|
|
1751
|
-
size:
|
|
1751
|
+
size: u.value
|
|
1752
1752
|
}, null, 8, [
|
|
1753
1753
|
"initials",
|
|
1754
1754
|
"image",
|
|
1755
1755
|
"variant",
|
|
1756
|
-
"shape"
|
|
1756
|
+
"shape",
|
|
1757
|
+
"size"
|
|
1757
1758
|
])) : a("v-if", !0),
|
|
1758
1759
|
e.icon ? (A(), i(Dr, {
|
|
1759
1760
|
key: 1,
|
|
1760
1761
|
class: S({ "pv-text-subdued": !e.disabled }),
|
|
1761
|
-
name: e.icon
|
|
1762
|
-
|
|
1762
|
+
name: e.icon,
|
|
1763
|
+
size: d.value
|
|
1764
|
+
}, null, 8, [
|
|
1765
|
+
"class",
|
|
1766
|
+
"name",
|
|
1767
|
+
"size"
|
|
1768
|
+
])) : a("v-if", !0),
|
|
1763
1769
|
e.companyName ? (A(), i(Nr, {
|
|
1764
1770
|
key: 2,
|
|
1765
1771
|
name: e.companyName,
|
|
@@ -1775,7 +1781,7 @@ var jr = {
|
|
|
1775
1781
|
key: 0,
|
|
1776
1782
|
class: S({ "pv-text-subdued": !e.disabled }),
|
|
1777
1783
|
style: { "padding-left": "4px" }
|
|
1778
|
-
}, N(e.subduedText), 3)) : a("v-if", !0)], 8, zr),
|
|
1784
|
+
}, N(e.subduedText), 3)) : a("v-if", !0)], 8, zr), f.value ? (A(), o("span", {
|
|
1779
1785
|
key: 0,
|
|
1780
1786
|
ref_key: "subText",
|
|
1781
1787
|
ref: l,
|
|
@@ -1785,8 +1791,8 @@ var jr = {
|
|
|
1785
1791
|
"pv-truncate",
|
|
1786
1792
|
{ "pv-text-subdued": !e.disabled }
|
|
1787
1793
|
]),
|
|
1788
|
-
title: e.hoverTitle ??
|
|
1789
|
-
}, N(
|
|
1794
|
+
title: e.hoverTitle ?? f.value
|
|
1795
|
+
}, N(f.value), 11, Br)) : a("v-if", !0)]),
|
|
1790
1796
|
e.secondaryText && typeof e.secondaryText == "number" ? (A(), i(Lr, {
|
|
1791
1797
|
key: 3,
|
|
1792
1798
|
value: e.secondaryText,
|
|
@@ -60,18 +60,26 @@ var ne = { class: "pv-relative" }, re = ["disabled", "placeholder"], ie = {
|
|
|
60
60
|
key: 0,
|
|
61
61
|
"data-testid": "pv-search-input-shortcut",
|
|
62
62
|
class: "pv-kbd"
|
|
63
|
-
}, ae = "/", oe = /* @__PURE__ */
|
|
63
|
+
}, ae = "/", oe = /* @__PURE__ */ ((e, t) => {
|
|
64
|
+
let n = e.__vccOpts || e;
|
|
65
|
+
for (let [e, r] of t) n[e] = r;
|
|
66
|
+
return n;
|
|
67
|
+
})(/* @__PURE__ */ i({
|
|
64
68
|
__name: "PvSearchInput",
|
|
65
69
|
props: /* @__PURE__ */ c({
|
|
66
|
-
placeholder: {
|
|
67
|
-
default: "Search",
|
|
68
|
-
type: String
|
|
69
|
-
},
|
|
70
70
|
disabled: {
|
|
71
71
|
type: Boolean,
|
|
72
72
|
default: !1
|
|
73
73
|
},
|
|
74
|
-
displayShortcut: { type: Boolean }
|
|
74
|
+
displayShortcut: { type: Boolean },
|
|
75
|
+
placeholder: {
|
|
76
|
+
default: "Search",
|
|
77
|
+
type: String
|
|
78
|
+
},
|
|
79
|
+
size: {
|
|
80
|
+
default: "xl",
|
|
81
|
+
type: String
|
|
82
|
+
}
|
|
75
83
|
}, {
|
|
76
84
|
modelValue: {
|
|
77
85
|
required: !1,
|
|
@@ -84,7 +92,8 @@ var ne = { class: "pv-relative" }, re = ["disabled", "placeholder"], ie = {
|
|
|
84
92
|
let o = i, s = x("search-input"), c = b(i, "modelValue"), l = e(() => ({
|
|
85
93
|
"pv-input-search": !0,
|
|
86
94
|
"pv-full-width": !0,
|
|
87
|
-
"pv-input-padded-end": !0
|
|
95
|
+
"pv-input-padded-end": !0,
|
|
96
|
+
"pv-input-small": o.size === "lg"
|
|
88
97
|
}));
|
|
89
98
|
return d(() => {
|
|
90
99
|
o.displayShortcut && te(ae, (e) => {
|
|
@@ -101,7 +110,7 @@ var ne = { class: "pv-relative" }, re = ["disabled", "placeholder"], ie = {
|
|
|
101
110
|
placeholder: i.placeholder
|
|
102
111
|
}, null, 10, re), [[S, c.value]]), i.displayShortcut ? (p(), n("kbd", ie, _(ae))) : t("v-if", !0)]));
|
|
103
112
|
}
|
|
104
|
-
}), se = Object.defineProperty, ce = Object.getOwnPropertySymbols, le = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable, de = (e, t, n) => t in e ? se(e, t, {
|
|
113
|
+
}), [["styles", [".pv-input-search[data-v-9e0c84d9]{display:block}"]], ["__scopeId", "data-v-9e0c84d9"]]), se = Object.defineProperty, ce = Object.getOwnPropertySymbols, le = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable, de = (e, t, n) => t in e ? se(e, t, {
|
|
105
114
|
enumerable: !0,
|
|
106
115
|
configurable: !0,
|
|
107
116
|
writable: !0,
|
|
@@ -313,15 +313,19 @@ var nt = { class: "pv-relative" }, rt = ["disabled", "placeholder"], it = {
|
|
|
313
313
|
}, at = "/", ot = /* @__PURE__ */ d({
|
|
314
314
|
__name: "PvSearchInput",
|
|
315
315
|
props: /* @__PURE__ */ v({
|
|
316
|
-
placeholder: {
|
|
317
|
-
default: "Search",
|
|
318
|
-
type: String
|
|
319
|
-
},
|
|
320
316
|
disabled: {
|
|
321
317
|
type: Boolean,
|
|
322
318
|
default: !1
|
|
323
319
|
},
|
|
324
|
-
displayShortcut: { type: Boolean }
|
|
320
|
+
displayShortcut: { type: Boolean },
|
|
321
|
+
placeholder: {
|
|
322
|
+
default: "Search",
|
|
323
|
+
type: String
|
|
324
|
+
},
|
|
325
|
+
size: {
|
|
326
|
+
default: "xl",
|
|
327
|
+
type: String
|
|
328
|
+
}
|
|
325
329
|
}, {
|
|
326
330
|
modelValue: {
|
|
327
331
|
required: !1,
|
|
@@ -334,7 +338,8 @@ var nt = { class: "pv-relative" }, rt = ["disabled", "placeholder"], it = {
|
|
|
334
338
|
let n = e, i = ue("search-input"), c = ce(e, "modelValue"), l = r(() => ({
|
|
335
339
|
"pv-input-search": !0,
|
|
336
340
|
"pv-full-width": !0,
|
|
337
|
-
"pv-input-padded-end": !0
|
|
341
|
+
"pv-input-padded-end": !0,
|
|
342
|
+
"pv-input-small": n.size === "lg"
|
|
338
343
|
}));
|
|
339
344
|
return E(() => {
|
|
340
345
|
n.displayShortcut && Qe(at, (e) => {
|
|
@@ -351,23 +356,27 @@ var nt = { class: "pv-relative" }, rt = ["disabled", "placeholder"], it = {
|
|
|
351
356
|
placeholder: e.placeholder
|
|
352
357
|
}, null, 10, rt), [[fe, c.value]]), e.displayShortcut ? (k(), o("kbd", it, N(at))) : a("v-if", !0)]));
|
|
353
358
|
}
|
|
354
|
-
})
|
|
359
|
+
}), st = ".pv-input-search[data-v-9e0c84d9]{display:block}", ct = (e, t) => {
|
|
360
|
+
let n = e.__vccOpts || e;
|
|
361
|
+
for (let [e, r] of t) n[e] = r;
|
|
362
|
+
return n;
|
|
363
|
+
}, lt = /* @__PURE__ */ ct(ot, [["styles", [st]], ["__scopeId", "data-v-9e0c84d9"]]);
|
|
355
364
|
//#endregion
|
|
356
365
|
//#region src/web-components/utils.ts
|
|
357
|
-
function
|
|
366
|
+
function ut() {
|
|
358
367
|
let e = M(!1), t = p()?.root || {};
|
|
359
368
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
360
369
|
}
|
|
361
370
|
//#endregion
|
|
362
371
|
//#region src/components/base/baseProps.ts
|
|
363
|
-
var
|
|
372
|
+
var dt = {
|
|
364
373
|
xs: "12px",
|
|
365
374
|
sm: "16px",
|
|
366
375
|
md: "20px",
|
|
367
376
|
lg: "24px",
|
|
368
377
|
xl: "32px",
|
|
369
378
|
"2x": "40px"
|
|
370
|
-
},
|
|
379
|
+
}, ft = [
|
|
371
380
|
void 0,
|
|
372
381
|
10,
|
|
373
382
|
12,
|
|
@@ -375,24 +384,24 @@ var ct = {
|
|
|
375
384
|
24,
|
|
376
385
|
32,
|
|
377
386
|
64
|
|
378
|
-
],
|
|
387
|
+
], pt = ["xlink:href"], mt = /* @__PURE__ */ d({
|
|
379
388
|
__name: "PvIcon",
|
|
380
389
|
props: {
|
|
381
390
|
name: { type: String },
|
|
382
391
|
size: { type: null }
|
|
383
392
|
},
|
|
384
393
|
setup(e) {
|
|
385
|
-
let t = e, n =
|
|
394
|
+
let t = e, n = ut(), i = M(null), a = r(() => ({
|
|
386
395
|
"pv-icon": !0,
|
|
387
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
396
|
+
[`pv-icon-${t.size}`]: t.size != null && ft.includes(t.size)
|
|
388
397
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
389
398
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (k(), o("svg", {
|
|
390
399
|
"data-testid": "pv-icon",
|
|
391
400
|
"aria-hidden": "true",
|
|
392
401
|
class: x(a.value)
|
|
393
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
402
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, pt)], 2));
|
|
394
403
|
}
|
|
395
|
-
}),
|
|
404
|
+
}), ht = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
396
405
|
__name: "PvCounterBadge",
|
|
397
406
|
props: {
|
|
398
407
|
maxValue: {
|
|
@@ -429,11 +438,7 @@ var ct = {
|
|
|
429
438
|
"data-testid": "pv-counter-badge"
|
|
430
439
|
}, N(n.value), 3));
|
|
431
440
|
}
|
|
432
|
-
}),
|
|
433
|
-
let n = e.__vccOpts || e;
|
|
434
|
-
for (let [e, r] of t) n[e] = r;
|
|
435
|
-
return n;
|
|
436
|
-
}, ht = /* @__PURE__ */ mt(ft, [["styles", [pt]], ["__scopeId", "data-v-013a5d76"]]), gt = {
|
|
441
|
+
}), [["styles", [".pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}"]], ["__scopeId", "data-v-013a5d76"]]), gt = {
|
|
437
442
|
class: "pv-flex",
|
|
438
443
|
"data-testid": "pv-company-logo"
|
|
439
444
|
}, _t = ["src"], vt = /* @__PURE__ */ d({
|
|
@@ -451,7 +456,7 @@ var ct = {
|
|
|
451
456
|
srcPathOverride: { type: String }
|
|
452
457
|
},
|
|
453
458
|
setup(e) {
|
|
454
|
-
let t = e, n = M(!0), i = r(() =>
|
|
459
|
+
let t = e, n = M(!0), i = r(() => dt[t.size] || "32px"), a = r(() => ({
|
|
455
460
|
"pv-icon": n.value,
|
|
456
461
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
457
462
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
@@ -506,7 +511,7 @@ var ct = {
|
|
|
506
511
|
"data-testid": "pv-avatar",
|
|
507
512
|
"data-style": e.variant,
|
|
508
513
|
"data-shape": e.shape
|
|
509
|
-
}, [e.icon ? (k(), i(
|
|
514
|
+
}, [e.icon ? (k(), i(mt, {
|
|
510
515
|
key: 0,
|
|
511
516
|
name: e.icon,
|
|
512
517
|
size: r[e.size]
|
|
@@ -533,7 +538,7 @@ function wt(e, t) {
|
|
|
533
538
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
534
539
|
}
|
|
535
540
|
function Tt(e, t = {}) {
|
|
536
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
541
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ut(), l = i ?? le(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
537
542
|
T(() => {
|
|
538
543
|
f.value = d();
|
|
539
544
|
});
|
|
@@ -616,23 +621,44 @@ var Et = [
|
|
|
616
621
|
}
|
|
617
622
|
},
|
|
618
623
|
setup(e) {
|
|
619
|
-
let { present:
|
|
620
|
-
|
|
624
|
+
let t = e, n = ue("rootRef"), { present: i } = Tt("tooltip-content", { host: r(() => {
|
|
625
|
+
let e = n.value?.getRootNode();
|
|
626
|
+
return e instanceof ShadowRoot ? e.host : null;
|
|
627
|
+
}) }), s = r(() => t.delay > 0), c = M(!1), l = M(!1), u, d = () => {
|
|
628
|
+
u && clearTimeout(u), u = void 0;
|
|
629
|
+
}, f = r(() => !s.value || c.value || l.value), p = () => {
|
|
630
|
+
s.value && (d(), u = setTimeout(() => {
|
|
631
|
+
u = void 0, l.value = !0;
|
|
632
|
+
}, t.delay));
|
|
633
|
+
}, m = () => {
|
|
634
|
+
s.value && (d(), l.value = !1);
|
|
635
|
+
}, h = () => {
|
|
636
|
+
s.value && (c.value = !0);
|
|
637
|
+
}, g = () => {
|
|
638
|
+
s.value && (c.value = !1);
|
|
639
|
+
};
|
|
640
|
+
return w(d), (t, r) => (k(), o("div", {
|
|
641
|
+
ref_key: "rootRef",
|
|
642
|
+
ref: n,
|
|
621
643
|
"data-testid": "pv-tooltip",
|
|
622
644
|
class: x([{
|
|
623
|
-
"pv-tooltip": F(
|
|
624
|
-
"pv-tooltip-small": F(
|
|
645
|
+
"pv-tooltip": F(i),
|
|
646
|
+
"pv-tooltip-small": F(i) && e.size === "sm"
|
|
625
647
|
}]),
|
|
626
648
|
"data-position": e.tooltipPosition,
|
|
627
649
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
628
650
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
629
|
-
"aria-labelledby": F(
|
|
630
|
-
|
|
651
|
+
"aria-labelledby": F(i) ? e.ariaLabelledBy : void 0,
|
|
652
|
+
onMouseenter: p,
|
|
653
|
+
onMouseleave: m,
|
|
654
|
+
onFocusin: h,
|
|
655
|
+
onFocusout: g
|
|
656
|
+
}, [ne(t.$slots, "label"), F(i) ? ge((k(), o("div", {
|
|
631
657
|
key: 0,
|
|
632
658
|
role: "tooltip",
|
|
633
659
|
id: e.ariaLabelledBy,
|
|
634
660
|
"data-testid": "pv-tooltip-content"
|
|
635
|
-
}, [ne(
|
|
661
|
+
}, [ne(t.$slots, "tooltip-content")], 8, Dt)), [[pe, f.value]]) : a("v-if", !0)], 42, Et));
|
|
636
662
|
}
|
|
637
663
|
}), kt = ["ghost"], At = {
|
|
638
664
|
md: "pv-button-small",
|
|
@@ -643,7 +669,7 @@ var Et = [
|
|
|
643
669
|
"data-testid": "pv-select-prefix-label",
|
|
644
670
|
class: "pv-border-right pv-text-quaternary",
|
|
645
671
|
style: { "padding-right": "4px" }
|
|
646
|
-
}, Ft = ["title"], It = /* @__PURE__ */
|
|
672
|
+
}, Ft = ["title"], It = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
647
673
|
__name: "PvSelectButtonTrigger",
|
|
648
674
|
props: {
|
|
649
675
|
avatar: { type: Object },
|
|
@@ -691,7 +717,7 @@ var Et = [
|
|
|
691
717
|
n.inverse && kt.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
692
718
|
let t = jt(n.size);
|
|
693
719
|
return t && e.push(t), e;
|
|
694
|
-
}), d = r(() => n.isLoading ? "Loading..." : n.selectedItems && n.selectedItems.length > 0 && n.counterStyle === "secondary" ? n.selectedItems[0].text : n.label),
|
|
720
|
+
}), d = r(() => n.size === "xl" ? "lg" : "sm"), f = r(() => n.size === "xl" ? 20 : void 0), p = r(() => n.isLoading ? "Loading..." : n.selectedItems && n.selectedItems.length > 0 && n.counterStyle === "secondary" ? n.selectedItems[0].text : n.label), m = r(() => {
|
|
695
721
|
if (n.selectedOption) return {
|
|
696
722
|
...n.selectedOption,
|
|
697
723
|
menuOptionConfig: n.menuOptionConfig,
|
|
@@ -714,12 +740,13 @@ var Et = [
|
|
|
714
740
|
variant: e.counterBadgeVariant,
|
|
715
741
|
size: "sm"
|
|
716
742
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
717
|
-
!e.isLoading && e.renderer &&
|
|
718
|
-
e.icon ? (k(), i(
|
|
743
|
+
!e.isLoading && e.renderer && m.value ? (k(), i(ie(e.renderer), S(y({ key: 2 }, m.value)), null, 16)) : (k(), o(t, { key: 3 }, [
|
|
744
|
+
e.icon ? (k(), i(mt, {
|
|
719
745
|
key: 0,
|
|
720
746
|
"data-testid": "pv-multi-select-button-icon",
|
|
721
|
-
name: e.icon
|
|
722
|
-
|
|
747
|
+
name: e.icon,
|
|
748
|
+
size: f.value
|
|
749
|
+
}, null, 8, ["name", "size"])) : a("v-if", !0),
|
|
723
750
|
e.companyLogo ? (k(), i(vt, {
|
|
724
751
|
key: 1,
|
|
725
752
|
name: e.companyLogo,
|
|
@@ -733,18 +760,19 @@ var Et = [
|
|
|
733
760
|
image: e.avatar.image,
|
|
734
761
|
variant: e.avatar.variant,
|
|
735
762
|
shape: e.avatar.shape,
|
|
736
|
-
size:
|
|
763
|
+
size: d.value
|
|
737
764
|
}, null, 8, [
|
|
738
765
|
"initials",
|
|
739
766
|
"image",
|
|
740
767
|
"variant",
|
|
741
|
-
"shape"
|
|
768
|
+
"shape",
|
|
769
|
+
"size"
|
|
742
770
|
])) : a("v-if", !0),
|
|
743
771
|
e.isLoading || e.label ? (k(), o("span", {
|
|
744
772
|
key: 3,
|
|
745
|
-
class: "pv-truncate pv-select-button-trigger-label",
|
|
746
|
-
title:
|
|
747
|
-
}, N(
|
|
773
|
+
class: "pv-text-body-md pv-text-regular pv-truncate pv-select-button-trigger-label",
|
|
774
|
+
title: p.value
|
|
775
|
+
}, N(p.value), 9, Ft)) : a("v-if", !0)
|
|
748
776
|
], 64)),
|
|
749
777
|
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (k(), i(ht, {
|
|
750
778
|
key: 4,
|
|
@@ -762,7 +790,7 @@ var Et = [
|
|
|
762
790
|
size: "sm"
|
|
763
791
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
764
792
|
]),
|
|
765
|
-
e.showDropdown ? (k(), i(
|
|
793
|
+
e.showDropdown ? (k(), i(mt, {
|
|
766
794
|
key: 0,
|
|
767
795
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
768
796
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
@@ -772,7 +800,7 @@ var Et = [
|
|
|
772
800
|
variant: "dark",
|
|
773
801
|
"tooltip-position": "top-left"
|
|
774
802
|
}, {
|
|
775
|
-
label: he(() => [u(
|
|
803
|
+
label: he(() => [u(mt, {
|
|
776
804
|
name: "close",
|
|
777
805
|
onClick: r[0] ||= _e((e) => n.$emit("handle-clear"), ["stop"])
|
|
778
806
|
})]),
|
|
@@ -781,11 +809,11 @@ var Et = [
|
|
|
781
809
|
})) : a("v-if", !0)
|
|
782
810
|
], 10, Mt));
|
|
783
811
|
}
|
|
784
|
-
}), [["styles", [".pv-select-button-trigger-
|
|
812
|
+
}), [["styles", [".pv-select-button-trigger-content[data-v-0de70d6d]{min-width:0}.pv-select-button-trigger-label[data-v-0de70d6d]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-0de70d6d"]]), Lt = {}, Rt = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
785
813
|
function zt(e, t) {
|
|
786
814
|
return k(), o("div", Rt, "No Results Found");
|
|
787
815
|
}
|
|
788
|
-
var Bt = /* @__PURE__ */
|
|
816
|
+
var Bt = /* @__PURE__ */ ct(Lt, [["render", zt]]), Vt = Math.min, Ht = Math.max, Ut = Math.round, Wt = Math.floor, Gt = (e) => ({
|
|
789
817
|
x: e,
|
|
790
818
|
y: e
|
|
791
819
|
}), Kt = {
|
|
@@ -1659,7 +1687,7 @@ var zr = /* @__PURE__ */ new Set(), Br = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1659
1687
|
}
|
|
1660
1688
|
for (let t of [...zr]) t !== e && !Br(t, e) && t.close() && zr.delete(t);
|
|
1661
1689
|
zr.add(e);
|
|
1662
|
-
}), Hr = ["popover"], Ur = "--pv-popover-v2-anchor", Wr = /* @__PURE__ */
|
|
1690
|
+
}), Hr = ["popover"], Ur = "--pv-popover-v2-anchor", Wr = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
1663
1691
|
__name: "PvPopoverV2",
|
|
1664
1692
|
props: /* @__PURE__ */ v({
|
|
1665
1693
|
disableAutoPlacement: {
|
|
@@ -1980,19 +2008,19 @@ var Jr = {
|
|
|
1980
2008
|
config: { type: Object }
|
|
1981
2009
|
},
|
|
1982
2010
|
setup(e) {
|
|
1983
|
-
let n = e, c = M(null), l = M(null), u = r(() => n.subText || null),
|
|
1984
|
-
let r =
|
|
2011
|
+
let n = e, c = M(null), l = M(null), u = r(() => n.menuOptionConfig?.size === "lg" ? "sm" : "lg"), d = r(() => n.menuOptionConfig?.size === "xl" ? 20 : void 0), f = r(() => n.subText || null), p = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), m = (e, t, n) => {
|
|
2012
|
+
let r = p(n), i = RegExp(`(${r})`, "gi");
|
|
1985
2013
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
1986
|
-
},
|
|
2014
|
+
}, h = () => {
|
|
1987
2015
|
if (n.queryText) {
|
|
1988
|
-
let e = new RegExp(
|
|
1989
|
-
c.value &&
|
|
1990
|
-
} else c.value && (c.value.textContent = n.text), l.value &&
|
|
2016
|
+
let e = new RegExp(p(n.queryText), "gi").test(n.text);
|
|
2017
|
+
c.value && m(c.value, n.text, n.queryText), l.value && f.value && (e ? l.value.textContent = f.value : m(l.value, f.value, n.queryText));
|
|
2018
|
+
} else c.value && (c.value.textContent = n.text), l.value && f.value && (l.value.textContent = f.value);
|
|
1991
2019
|
};
|
|
1992
2020
|
return E(() => {
|
|
1993
|
-
|
|
2021
|
+
h();
|
|
1994
2022
|
}), I(() => n.queryText, () => {
|
|
1995
|
-
|
|
2023
|
+
h();
|
|
1996
2024
|
}), (n, r) => (k(), o(t, null, [
|
|
1997
2025
|
e.avatar ? (k(), i(xt, {
|
|
1998
2026
|
key: 0,
|
|
@@ -2000,18 +2028,24 @@ var Jr = {
|
|
|
2000
2028
|
image: e.avatar.image,
|
|
2001
2029
|
variant: e.avatar.variant,
|
|
2002
2030
|
shape: e.avatar.shape,
|
|
2003
|
-
size:
|
|
2031
|
+
size: u.value
|
|
2004
2032
|
}, null, 8, [
|
|
2005
2033
|
"initials",
|
|
2006
2034
|
"image",
|
|
2007
2035
|
"variant",
|
|
2008
|
-
"shape"
|
|
2036
|
+
"shape",
|
|
2037
|
+
"size"
|
|
2009
2038
|
])) : a("v-if", !0),
|
|
2010
|
-
e.icon ? (k(), i(
|
|
2039
|
+
e.icon ? (k(), i(mt, {
|
|
2011
2040
|
key: 1,
|
|
2012
2041
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
2013
|
-
name: e.icon
|
|
2014
|
-
|
|
2042
|
+
name: e.icon,
|
|
2043
|
+
size: d.value
|
|
2044
|
+
}, null, 8, [
|
|
2045
|
+
"class",
|
|
2046
|
+
"name",
|
|
2047
|
+
"size"
|
|
2048
|
+
])) : a("v-if", !0),
|
|
2015
2049
|
e.companyName ? (k(), i(vt, {
|
|
2016
2050
|
key: 2,
|
|
2017
2051
|
name: e.companyName,
|
|
@@ -2027,7 +2061,7 @@ var Jr = {
|
|
|
2027
2061
|
key: 0,
|
|
2028
2062
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
2029
2063
|
style: { "padding-left": "4px" }
|
|
2030
|
-
}, N(e.subduedText), 3)) : a("v-if", !0)], 8, Yr),
|
|
2064
|
+
}, N(e.subduedText), 3)) : a("v-if", !0)], 8, Yr), f.value ? (k(), o("span", {
|
|
2031
2065
|
key: 0,
|
|
2032
2066
|
ref_key: "subText",
|
|
2033
2067
|
ref: l,
|
|
@@ -2037,8 +2071,8 @@ var Jr = {
|
|
|
2037
2071
|
"pv-truncate",
|
|
2038
2072
|
{ "pv-text-subdued": !e.disabled }
|
|
2039
2073
|
]),
|
|
2040
|
-
title: e.hoverTitle ??
|
|
2041
|
-
}, N(
|
|
2074
|
+
title: e.hoverTitle ?? f.value
|
|
2075
|
+
}, N(f.value), 11, Xr)) : a("v-if", !0)]),
|
|
2042
2076
|
e.secondaryText && typeof e.secondaryText == "number" ? (k(), i(ht, {
|
|
2043
2077
|
key: 3,
|
|
2044
2078
|
value: e.secondaryText,
|
|
@@ -2050,7 +2084,7 @@ var Jr = {
|
|
|
2050
2084
|
"disabled",
|
|
2051
2085
|
"aria-label",
|
|
2052
2086
|
"id"
|
|
2053
|
-
], ni = /* @__PURE__ */
|
|
2087
|
+
], ni = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
2054
2088
|
__name: "PvSwitch",
|
|
2055
2089
|
props: /* @__PURE__ */ v({
|
|
2056
2090
|
size: {
|
|
@@ -2195,7 +2229,7 @@ var Jr = {
|
|
|
2195
2229
|
"aria-label": e.tooltipText,
|
|
2196
2230
|
disabled: e.disabled,
|
|
2197
2231
|
onClick: _e(o, ["stop"])
|
|
2198
|
-
}, [u(
|
|
2232
|
+
}, [u(mt, {
|
|
2199
2233
|
name: e.icon,
|
|
2200
2234
|
size: a[e.size]
|
|
2201
2235
|
}, null, 8, ["name", "size"])], 10, ai)]),
|
|
@@ -2206,7 +2240,7 @@ var Jr = {
|
|
|
2206
2240
|
key: "0"
|
|
2207
2241
|
} : void 0]), 1032, ["position"]));
|
|
2208
2242
|
}
|
|
2209
|
-
}), si = ["aria-label"], ci = /* @__PURE__ */
|
|
2243
|
+
}), si = ["aria-label"], ci = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
2210
2244
|
__name: "PvMenuItemAction",
|
|
2211
2245
|
props: {
|
|
2212
2246
|
action: { type: Object },
|
|
@@ -2242,7 +2276,7 @@ var Jr = {
|
|
|
2242
2276
|
role: "img",
|
|
2243
2277
|
"aria-label": p.value,
|
|
2244
2278
|
onClick: n[0] ||= _e(() => {}, ["stop"])
|
|
2245
|
-
}, [u(
|
|
2279
|
+
}, [u(mt, { name: d.value }, null, 8, ["name"])], 10, si)]),
|
|
2246
2280
|
_: 2
|
|
2247
2281
|
}, [p.value ? {
|
|
2248
2282
|
name: "content",
|
|
@@ -2261,7 +2295,7 @@ var Jr = {
|
|
|
2261
2295
|
], bi = {
|
|
2262
2296
|
key: 4,
|
|
2263
2297
|
class: "pv-menu-item-action"
|
|
2264
|
-
}, xi = ["aria-label", "aria-expanded"], Si = /* @__PURE__ */
|
|
2298
|
+
}, xi = ["aria-label", "aria-expanded"], Si = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
2265
2299
|
inheritAttrs: !1,
|
|
2266
2300
|
__name: "PvMenuItemVariant",
|
|
2267
2301
|
props: {
|
|
@@ -2380,7 +2414,7 @@ var Jr = {
|
|
|
2380
2414
|
"queryText",
|
|
2381
2415
|
"highlightSearchText"
|
|
2382
2416
|
])),
|
|
2383
|
-
e.menuOptionConfig?.variant === "checkmark" && v.value ? (k(), i(
|
|
2417
|
+
e.menuOptionConfig?.variant === "checkmark" && v.value ? (k(), i(mt, {
|
|
2384
2418
|
key: 2,
|
|
2385
2419
|
name: "check",
|
|
2386
2420
|
class: "pv-text-success"
|
|
@@ -2409,7 +2443,7 @@ var Jr = {
|
|
|
2409
2443
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2410
2444
|
"aria-expanded": e.expanded,
|
|
2411
2445
|
onClick: r[1] ||= _e((e) => te("toggle-expanded"), ["prevent", "stop"])
|
|
2412
|
-
}, [u(
|
|
2446
|
+
}, [u(mt, {
|
|
2413
2447
|
name: e.chevronIcon ?? "chevron-right",
|
|
2414
2448
|
size: 12
|
|
2415
2449
|
}, null, 8, ["name"])], 8, xi)) : a("v-if", !0)
|
|
@@ -2500,7 +2534,7 @@ var Jr = {
|
|
|
2500
2534
|
value: e.leftCounterBadge,
|
|
2501
2535
|
variant: "tertiary"
|
|
2502
2536
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
2503
|
-
e.leftIcon ? (k(), i(
|
|
2537
|
+
e.leftIcon ? (k(), i(mt, {
|
|
2504
2538
|
key: 1,
|
|
2505
2539
|
name: e.leftIcon,
|
|
2506
2540
|
"data-testid": "pv-button-left-icon"
|
|
@@ -2511,7 +2545,7 @@ var Jr = {
|
|
|
2511
2545
|
value: e.rightCounterBadge,
|
|
2512
2546
|
variant: "tertiary"
|
|
2513
2547
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
2514
|
-
e.rightIcon ? (k(), i(
|
|
2548
|
+
e.rightIcon ? (k(), i(mt, {
|
|
2515
2549
|
key: 4,
|
|
2516
2550
|
name: e.rightIcon,
|
|
2517
2551
|
"data-testid": "pv-button-right-icon"
|
|
@@ -3856,7 +3890,7 @@ function Wo(e, t, n, r = null) {
|
|
|
3856
3890
|
}
|
|
3857
3891
|
//#endregion
|
|
3858
3892
|
//#region src/components/base/PvPopover/PvPopover.vue?vue&type=script&setup=true&lang.ts
|
|
3859
|
-
var Go = ["data-align"], Ko = /* @__PURE__ */
|
|
3893
|
+
var Go = ["data-align"], Ko = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
3860
3894
|
__name: "PvPopover",
|
|
3861
3895
|
props: {
|
|
3862
3896
|
alignment: {
|
|
@@ -3905,7 +3939,7 @@ var Go = ["data-align"], Ko = /* @__PURE__ */ mt(/* @__PURE__ */ d({
|
|
|
3905
3939
|
"data-option-id",
|
|
3906
3940
|
"data-testid",
|
|
3907
3941
|
"role"
|
|
3908
|
-
], Yo = ["role"], Xo = ["data-pv-menu-ancestors"], Zo = ["id", "aria-label"], Qo = ["data-active", "data-option-id"], $o = "__pv-menu-see-more__", es = /* @__PURE__ */
|
|
3942
|
+
], Yo = ["role"], Xo = ["data-pv-menu-ancestors"], Zo = ["id", "aria-label"], Qo = ["data-active", "data-option-id"], $o = "__pv-menu-see-more__", es = /* @__PURE__ */ ct(/* @__PURE__ */ d({
|
|
3909
3943
|
inheritAttrs: !1,
|
|
3910
3944
|
__name: "PvMenu",
|
|
3911
3945
|
props: /* @__PURE__ */ v({
|
|
@@ -4341,7 +4375,8 @@ var Go = ["data-align"], Ko = /* @__PURE__ */ mt(/* @__PURE__ */ d({
|
|
|
4341
4375
|
renderer: n.optionsRenderer,
|
|
4342
4376
|
action: n.optionsAction,
|
|
4343
4377
|
variant: n.optionsVariant,
|
|
4344
|
-
counterBadgeVariant: n.counterBadgeVariant
|
|
4378
|
+
counterBadgeVariant: n.counterBadgeVariant,
|
|
4379
|
+
size: n.size
|
|
4345
4380
|
})), d = t, [f] = /* @__PURE__ */ ze(n.defaultOpen), p = ce(e, "modelValue"), m = ce(e, "searchInput");
|
|
4346
4381
|
I(f, (e) => {
|
|
4347
4382
|
d(e ? "dropdown-open" : "dropdown-closed");
|
|
@@ -4432,7 +4467,7 @@ var Go = ["data-align"], Ko = /* @__PURE__ */ mt(/* @__PURE__ */ d({
|
|
|
4432
4467
|
class: "pv-popover",
|
|
4433
4468
|
"data-test-id": "pv-popover",
|
|
4434
4469
|
style: C([e.popoverCssProperties, { position: "unset" }])
|
|
4435
|
-
}, [e.disableSearchInput ? a("v-if", !0) : (k(), o("div", ts, [u(
|
|
4470
|
+
}, [e.disableSearchInput ? a("v-if", !0) : (k(), o("div", ts, [u(lt, {
|
|
4436
4471
|
"model-value": m.value,
|
|
4437
4472
|
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
4438
4473
|
class: "pv-stack-4",
|