@turquoisehealth/pit-viper 2.209.2 → 2.210.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +49 -34
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +49 -34
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +66 -48
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +164 -147
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +687 -669
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +689 -671
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +678 -660
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +216 -198
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +411 -394
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +51 -33
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +64 -46
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +66 -48
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +576 -559
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +497 -479
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +321 -303
- package/pv-components/dist/web/pv-components.iife.js +16 -16
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, defineCustomElement as f, getCurrentInstance as p, getCurrentScope as m, guardReactiveProps as h, inject as g, isRef as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as ee, onUnmounted as D, openBlock as O, provide as k, reactive as A, readonly as j, ref as M, renderList as te, renderSlot as N, resolveComponent as P, resolveDynamicComponent as F, shallowRef as I, toDisplayString as L, toValue as R, unref as z, useId as ne, useModel as re, useSlots as ie, useTemplateRef as ae, vModelCheckbox as B, vModelText as oe, vShow as se, watch as V, watchEffect as ce, withCtx as H, withDirectives as le, withModifiers as ue } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var de = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, pe = Object.getOwnPropertyNames, me = Object.prototype.hasOwnProperty, he = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -18,7 +18,7 @@ var de = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, pe = Objec
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
20
20
|
function ve(e) {
|
|
21
|
-
return m() ? (
|
|
21
|
+
return m() ? (ee(e), !0) : !1;
|
|
22
22
|
}
|
|
23
23
|
var ye = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -330,7 +330,7 @@ var qe = /* @__PURE__ */ d({
|
|
|
330
330
|
dark: "pv-spinner-dark",
|
|
331
331
|
white: "pv-spinner-light"
|
|
332
332
|
};
|
|
333
|
-
return (r, i) => (
|
|
333
|
+
return (r, i) => (O(), o("div", {
|
|
334
334
|
"data-testid": "pv-spinner",
|
|
335
335
|
class: x(n[e.variant]),
|
|
336
336
|
style: C({ "--size": t[e.size] })
|
|
@@ -344,7 +344,7 @@ var qe = /* @__PURE__ */ d({
|
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/web-components/utils.ts
|
|
346
346
|
function Ze() {
|
|
347
|
-
let e =
|
|
347
|
+
let e = M(!1), t = p()?.root || {};
|
|
348
348
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
@@ -371,11 +371,11 @@ var Qe = {
|
|
|
371
371
|
size: { type: null }
|
|
372
372
|
},
|
|
373
373
|
setup(e) {
|
|
374
|
-
let t = e, n = Ze(), i =
|
|
374
|
+
let t = e, n = Ze(), i = M(null), a = r(() => ({
|
|
375
375
|
"pv-icon": !0,
|
|
376
376
|
[`pv-icon-${t.size}`]: t.size != null && $e.includes(t.size)
|
|
377
377
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
378
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (
|
|
378
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (O(), o("svg", {
|
|
379
379
|
"data-testid": "pv-icon",
|
|
380
380
|
"aria-hidden": "true",
|
|
381
381
|
class: x(a.value)
|
|
@@ -413,7 +413,7 @@ var Qe = {
|
|
|
413
413
|
"pv-text-secondary": t.variant == "ghost" || t.variant == "tertiary",
|
|
414
414
|
"pv-surface": t.variant == "ghost"
|
|
415
415
|
}));
|
|
416
|
-
return (e, t) => (
|
|
416
|
+
return (e, t) => (O(), o("div", {
|
|
417
417
|
class: x(i.value),
|
|
418
418
|
"data-testid": "pv-counter-badge"
|
|
419
419
|
}, L(n.value), 3));
|
|
@@ -462,33 +462,33 @@ var Qe = {
|
|
|
462
462
|
let t = Xe(n.size);
|
|
463
463
|
return t && e.push(t), e;
|
|
464
464
|
});
|
|
465
|
-
return (n, r) => (
|
|
465
|
+
return (n, r) => (O(), o("button", {
|
|
466
466
|
type: "button",
|
|
467
467
|
class: x(c.value),
|
|
468
468
|
disabled: e.disabled,
|
|
469
469
|
"aria-label": s.value,
|
|
470
470
|
"data-testid": "pv-button"
|
|
471
|
-
}, [e.loading ? (
|
|
471
|
+
}, [e.loading ? (O(), i(qe, {
|
|
472
472
|
key: 0,
|
|
473
473
|
size: "sm"
|
|
474
|
-
})) : (
|
|
475
|
-
e.leftCounterBadge ? (
|
|
474
|
+
})) : (O(), o(t, { key: 1 }, [
|
|
475
|
+
e.leftCounterBadge ? (O(), i(it, {
|
|
476
476
|
key: 0,
|
|
477
477
|
value: e.leftCounterBadge,
|
|
478
478
|
variant: "tertiary"
|
|
479
479
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
480
|
-
e.leftIcon ? (
|
|
480
|
+
e.leftIcon ? (O(), i(W, {
|
|
481
481
|
key: 1,
|
|
482
482
|
name: e.leftIcon,
|
|
483
483
|
"data-testid": "pv-button-left-icon"
|
|
484
484
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
485
|
-
e.label ? (
|
|
486
|
-
e.rightCounterBadge ? (
|
|
485
|
+
e.label ? (O(), o("span", ot, L(e.label), 1)) : a("v-if", !0),
|
|
486
|
+
e.rightCounterBadge ? (O(), i(it, {
|
|
487
487
|
key: 3,
|
|
488
488
|
value: e.rightCounterBadge,
|
|
489
489
|
variant: "tertiary"
|
|
490
490
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
491
|
-
e.rightIcon ? (
|
|
491
|
+
e.rightIcon ? (O(), i(W, {
|
|
492
492
|
key: 4,
|
|
493
493
|
name: e.rightIcon,
|
|
494
494
|
"data-testid": "pv-button-right-icon"
|
|
@@ -513,7 +513,7 @@ var Qe = {
|
|
|
513
513
|
],
|
|
514
514
|
setup(e) {
|
|
515
515
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
516
|
-
return (n, r) => (
|
|
516
|
+
return (n, r) => (O(), o("div", ct, [e.variant === "select-clear" ? (O(), o(t, { key: 0 }, [u(st, {
|
|
517
517
|
variant: "ghost",
|
|
518
518
|
"data-testid": "pv-select-menu-item-select-all",
|
|
519
519
|
"data-dd-action-name": i.value,
|
|
@@ -527,7 +527,7 @@ var Qe = {
|
|
|
527
527
|
"data-dd-action-name": s.value,
|
|
528
528
|
onClick: r[1] ||= (e) => n.$emit("handle-clear-all"),
|
|
529
529
|
disabled: e.disabled
|
|
530
|
-
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (
|
|
530
|
+
}, null, 8, ["data-dd-action-name", "disabled"])], 64)) : e.variant === "cancel-confirm" ? (O(), o(t, { key: 1 }, [u(st, {
|
|
531
531
|
label: "Cancel",
|
|
532
532
|
variant: "ghost",
|
|
533
533
|
"data-testid": "pv-select-menu-item-cancel",
|
|
@@ -575,7 +575,7 @@ var Qe = {
|
|
|
575
575
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
576
576
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
577
577
|
});
|
|
578
|
-
}), t({ input: i }), (t, n) => (
|
|
578
|
+
}), t({ input: i }), (t, n) => (O(), o("div", ut, [le(s("input", {
|
|
579
579
|
ref: "search-input",
|
|
580
580
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
581
581
|
"data-testid": "pv-search-input",
|
|
@@ -583,7 +583,7 @@ var Qe = {
|
|
|
583
583
|
disabled: e.disabled,
|
|
584
584
|
class: x(l.value),
|
|
585
585
|
placeholder: e.placeholder
|
|
586
|
-
}, null, 10, dt), [[oe, c.value]]), e.displayShortcut ? (
|
|
586
|
+
}, null, 10, dt), [[oe, c.value]]), e.displayShortcut ? (O(), o("kbd", ft, L(pt))) : a("v-if", !0)]));
|
|
587
587
|
}
|
|
588
588
|
}), ht = {
|
|
589
589
|
class: "pv-flex",
|
|
@@ -603,13 +603,13 @@ var Qe = {
|
|
|
603
603
|
srcPathOverride: { type: String }
|
|
604
604
|
},
|
|
605
605
|
setup(e) {
|
|
606
|
-
let t = e, n =
|
|
606
|
+
let t = e, n = M(!0), i = r(() => Qe[t.size] || "32px"), a = r(() => ({
|
|
607
607
|
"pv-icon": n.value,
|
|
608
608
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
609
609
|
})), 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}`);
|
|
610
610
|
return V(u, () => {
|
|
611
611
|
n.value = !0;
|
|
612
|
-
}), (e, t) => (
|
|
612
|
+
}), (e, t) => (O(), o("div", ht, [n.value ? (O(), o("div", {
|
|
613
613
|
key: 0,
|
|
614
614
|
class: x(a.value),
|
|
615
615
|
style: C(c.value)
|
|
@@ -617,7 +617,7 @@ var Qe = {
|
|
|
617
617
|
src: u.value,
|
|
618
618
|
alt: "",
|
|
619
619
|
onError: t[0] ||= (e) => n.value = !1
|
|
620
|
-
}, null, 40, gt)], 6)) : (
|
|
620
|
+
}, null, 40, gt)], 6)) : (O(), o("div", {
|
|
621
621
|
key: 1,
|
|
622
622
|
class: x(a.value)
|
|
623
623
|
}, null, 2))]));
|
|
@@ -653,16 +653,16 @@ var Qe = {
|
|
|
653
653
|
xl: 20,
|
|
654
654
|
"2x": 20
|
|
655
655
|
};
|
|
656
|
-
return (s, c) => (
|
|
656
|
+
return (s, c) => (O(), o("div", {
|
|
657
657
|
class: x(n[e.size]),
|
|
658
658
|
"data-testid": "pv-avatar",
|
|
659
659
|
"data-style": e.variant,
|
|
660
660
|
"data-shape": e.shape
|
|
661
|
-
}, [e.icon ? (
|
|
661
|
+
}, [e.icon ? (O(), i(W, {
|
|
662
662
|
key: 0,
|
|
663
663
|
name: e.icon,
|
|
664
664
|
size: r[e.size]
|
|
665
|
-
}, null, 8, ["name", "size"])) : e.initials ? (
|
|
665
|
+
}, null, 8, ["name", "size"])) : e.initials ? (O(), o(t, { key: 1 }, [l(L(e.initials), 1)], 64)) : e.image ? (O(), o("img", {
|
|
666
666
|
key: 2,
|
|
667
667
|
src: e.image,
|
|
668
668
|
alt: e.alt ?? ""
|
|
@@ -685,11 +685,11 @@ function Ct(e, t) {
|
|
|
685
685
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
686
686
|
}
|
|
687
687
|
function wt(e, t = {}) {
|
|
688
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ze(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f =
|
|
688
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ze(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
689
689
|
T(() => {
|
|
690
690
|
f.value = d();
|
|
691
691
|
});
|
|
692
|
-
let p =
|
|
692
|
+
let p = M(!1), m = null, h = null, g = () => {
|
|
693
693
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
694
694
|
}, _ = () => {
|
|
695
695
|
if (!c.value) {
|
|
@@ -769,7 +769,7 @@ var Tt = [
|
|
|
769
769
|
},
|
|
770
770
|
setup(e) {
|
|
771
771
|
let { present: t } = wt("tooltip-content");
|
|
772
|
-
return (n, r) => (
|
|
772
|
+
return (n, r) => (O(), o("div", {
|
|
773
773
|
"data-testid": "pv-tooltip",
|
|
774
774
|
class: x([{
|
|
775
775
|
"pv-tooltip": z(t),
|
|
@@ -779,12 +779,12 @@ var Tt = [
|
|
|
779
779
|
"data-style": e.variant === "white" ? "white" : "dark",
|
|
780
780
|
"data-static": e.disableInteractive ? !0 : void 0,
|
|
781
781
|
"aria-labelledby": z(t) ? e.ariaLabelledBy : void 0
|
|
782
|
-
}, [
|
|
782
|
+
}, [N(n.$slots, "label"), z(t) ? (O(), o("div", {
|
|
783
783
|
key: 0,
|
|
784
784
|
role: "tooltip",
|
|
785
785
|
id: e.ariaLabelledBy,
|
|
786
786
|
"data-testid": "pv-tooltip-content"
|
|
787
|
-
}, [
|
|
787
|
+
}, [N(n.$slots, "tooltip-content")], 8, Et)) : a("v-if", !0)], 10, Tt));
|
|
788
788
|
}
|
|
789
789
|
}), Ot = ["disabled"], kt = { class: "pv-flex pv-select-button-trigger-content" }, At = {
|
|
790
790
|
key: 0,
|
|
@@ -847,33 +847,33 @@ var Tt = [
|
|
|
847
847
|
selected: !0
|
|
848
848
|
};
|
|
849
849
|
});
|
|
850
|
-
return (n, r) => (
|
|
850
|
+
return (n, r) => (O(), o("button", {
|
|
851
851
|
"data-testid": "pv-multi-select-button-trigger",
|
|
852
852
|
class: x(c.value),
|
|
853
853
|
style: { "--flex-gap": "0.25rem" },
|
|
854
854
|
disabled: e.disabled || e.isLoading
|
|
855
855
|
}, [
|
|
856
856
|
s("div", kt, [
|
|
857
|
-
e.prefixLabel ? (
|
|
858
|
-
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (
|
|
857
|
+
e.prefixLabel ? (O(), o("p", At, L(e.prefixLabel), 1)) : a("v-if", !0),
|
|
858
|
+
e.counterPosition === "left" && e.counterValue && e.counterStyle === "primary" ? (O(), i(it, {
|
|
859
859
|
key: 1,
|
|
860
860
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
861
861
|
value: e.counterValue,
|
|
862
862
|
variant: e.counterBadgeVariant,
|
|
863
863
|
size: "sm"
|
|
864
864
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
865
|
-
!e.isLoading && e.renderer && f.value ? (
|
|
866
|
-
e.icon ? (
|
|
865
|
+
!e.isLoading && e.renderer && f.value ? (O(), i(F(e.renderer), S(y({ key: 2 }, f.value)), null, 16)) : (O(), o(t, { key: 3 }, [
|
|
866
|
+
e.icon ? (O(), i(W, {
|
|
867
867
|
key: 0,
|
|
868
868
|
"data-testid": "pv-multi-select-button-icon",
|
|
869
869
|
name: e.icon
|
|
870
870
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
871
|
-
e.companyLogo ? (
|
|
871
|
+
e.companyLogo ? (O(), i(_t, {
|
|
872
872
|
key: 1,
|
|
873
873
|
name: e.companyLogo,
|
|
874
874
|
size: "sm"
|
|
875
875
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
876
|
-
e.avatar ? (
|
|
876
|
+
e.avatar ? (O(), i(bt, {
|
|
877
877
|
key: 2,
|
|
878
878
|
class: "pv-select-button-trigger-avatar",
|
|
879
879
|
"data-testid": "pv-multi-select-button-avatar",
|
|
@@ -888,20 +888,20 @@ var Tt = [
|
|
|
888
888
|
"variant",
|
|
889
889
|
"shape"
|
|
890
890
|
])) : a("v-if", !0),
|
|
891
|
-
e.isLoading || e.label ? (
|
|
891
|
+
e.isLoading || e.label ? (O(), o("span", {
|
|
892
892
|
key: 3,
|
|
893
893
|
class: "pv-truncate pv-select-button-trigger-label",
|
|
894
894
|
title: d.value
|
|
895
895
|
}, L(d.value), 9, jt)) : a("v-if", !0)
|
|
896
896
|
], 64)),
|
|
897
|
-
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (
|
|
897
|
+
e.counterPosition === "right" && e.counterValue && e.counterStyle === "primary" ? (O(), i(it, {
|
|
898
898
|
key: 4,
|
|
899
899
|
"data-testid": "pv-multi-select-right-counter-badge",
|
|
900
900
|
value: e.counterValue,
|
|
901
901
|
variant: e.counterBadgeVariant,
|
|
902
902
|
size: "sm"
|
|
903
903
|
}, null, 8, ["value", "variant"])) : a("v-if", !0),
|
|
904
|
-
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (
|
|
904
|
+
e.counterStyle === "secondary" && (e.counterValue ?? 0) >= 2 ? (O(), i(it, {
|
|
905
905
|
key: 5,
|
|
906
906
|
"data-testid": "pv-multi-select-secondary-counter-badge",
|
|
907
907
|
prefix: "+",
|
|
@@ -910,11 +910,11 @@ var Tt = [
|
|
|
910
910
|
size: "sm"
|
|
911
911
|
}, null, 8, ["value"])) : a("v-if", !0)
|
|
912
912
|
]),
|
|
913
|
-
e.showDropdown ? (
|
|
913
|
+
e.showDropdown ? (O(), i(W, {
|
|
914
914
|
key: 0,
|
|
915
915
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
916
916
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
917
|
-
e.showClear ? (
|
|
917
|
+
e.showClear ? (O(), i(Dt, {
|
|
918
918
|
key: 1,
|
|
919
919
|
size: "sm",
|
|
920
920
|
variant: "dark",
|
|
@@ -931,7 +931,7 @@ var Tt = [
|
|
|
931
931
|
}
|
|
932
932
|
}), [["styles", [".pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{flex:auto;min-width:0}"]], ["__scopeId", "data-v-5b922a5f"]]), Nt = {}, Pt = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
933
933
|
function Ft(e, t) {
|
|
934
|
-
return
|
|
934
|
+
return O(), o("div", Pt, "No Results Found");
|
|
935
935
|
}
|
|
936
936
|
var It = /* @__PURE__ */ rt(Nt, [["render", Ft]]);
|
|
937
937
|
//#endregion
|
|
@@ -1016,7 +1016,7 @@ var Ut = {
|
|
|
1016
1016
|
config: { type: Object }
|
|
1017
1017
|
},
|
|
1018
1018
|
setup(e) {
|
|
1019
|
-
let n = e, c =
|
|
1019
|
+
let n = e, c = M(null), l = M(null), u = r(() => n.subText || null), d = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (e, t, n) => {
|
|
1020
1020
|
let r = d(n), i = RegExp(`(${r})`, "gi");
|
|
1021
1021
|
e.innerHTML = t.replace(i, "<span data-test-id=\"pv-matched-text\" style=\"font-weight: bold;\">$1</span>");
|
|
1022
1022
|
}, p = () => {
|
|
@@ -1029,8 +1029,8 @@ var Ut = {
|
|
|
1029
1029
|
p();
|
|
1030
1030
|
}), V(() => n.queryText, () => {
|
|
1031
1031
|
p();
|
|
1032
|
-
}), (n, r) => (
|
|
1033
|
-
e.avatar ? (
|
|
1032
|
+
}), (n, r) => (O(), o(t, null, [
|
|
1033
|
+
e.avatar ? (O(), i(bt, {
|
|
1034
1034
|
key: 0,
|
|
1035
1035
|
initials: e.avatar.initials,
|
|
1036
1036
|
image: e.avatar.image,
|
|
@@ -1043,12 +1043,12 @@ var Ut = {
|
|
|
1043
1043
|
"variant",
|
|
1044
1044
|
"shape"
|
|
1045
1045
|
])) : a("v-if", !0),
|
|
1046
|
-
e.icon ? (
|
|
1046
|
+
e.icon ? (O(), i(W, {
|
|
1047
1047
|
key: 1,
|
|
1048
1048
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
1049
1049
|
name: e.icon
|
|
1050
1050
|
}, null, 8, ["class", "name"])) : a("v-if", !0),
|
|
1051
|
-
e.companyName ? (
|
|
1051
|
+
e.companyName ? (O(), i(_t, {
|
|
1052
1052
|
key: 2,
|
|
1053
1053
|
name: e.companyName,
|
|
1054
1054
|
size: "sm"
|
|
@@ -1059,11 +1059,11 @@ var Ut = {
|
|
|
1059
1059
|
}, [s("span", {
|
|
1060
1060
|
ref_key: "mainText",
|
|
1061
1061
|
ref: c
|
|
1062
|
-
}, L(e.text), 513), e.subduedText ? (
|
|
1062
|
+
}, L(e.text), 513), e.subduedText ? (O(), o("span", {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
class: x({ "pv-text-subdued": !e.disabled }),
|
|
1065
1065
|
style: { "padding-left": "4px" }
|
|
1066
|
-
}, L(e.subduedText), 3)) : a("v-if", !0)], 8, Wt), u.value ? (
|
|
1066
|
+
}, L(e.subduedText), 3)) : a("v-if", !0)], 8, Wt), u.value ? (O(), o("span", {
|
|
1067
1067
|
key: 0,
|
|
1068
1068
|
ref_key: "subText",
|
|
1069
1069
|
ref: l,
|
|
@@ -1075,11 +1075,11 @@ var Ut = {
|
|
|
1075
1075
|
]),
|
|
1076
1076
|
title: e.hoverTitle ?? u.value
|
|
1077
1077
|
}, L(u.value), 11, Gt)) : a("v-if", !0)]),
|
|
1078
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (
|
|
1078
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (O(), i(it, {
|
|
1079
1079
|
key: 3,
|
|
1080
1080
|
value: e.secondaryText,
|
|
1081
1081
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
1082
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (
|
|
1082
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (O(), o("span", Kt, L(e.secondaryText), 1)) : a("v-if", !0)
|
|
1083
1083
|
], 64));
|
|
1084
1084
|
}
|
|
1085
1085
|
}), Jt = ["for"], Yt = { key: 0 }, Xt = [
|
|
@@ -1114,14 +1114,14 @@ var Ut = {
|
|
|
1114
1114
|
emits: ["update:modelValue"],
|
|
1115
1115
|
setup(e) {
|
|
1116
1116
|
let t = e.id ?? ne(), n = re(e, "modelValue");
|
|
1117
|
-
return (r, i) => (
|
|
1117
|
+
return (r, i) => (O(), o("label", {
|
|
1118
1118
|
for: z(t),
|
|
1119
1119
|
class: x(["pv-label pv-switch pv-label-hover", {
|
|
1120
1120
|
"pv-input-small": e.size === "md",
|
|
1121
1121
|
"pv-input-xsmall": e.size === "sm",
|
|
1122
1122
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
1123
1123
|
}])
|
|
1124
|
-
}, [e.label ? (
|
|
1124
|
+
}, [e.label ? (O(), o("span", Yt, L(e.label), 1)) : a("v-if", !0), le(s("input", {
|
|
1125
1125
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1126
1126
|
disabled: e.disabled,
|
|
1127
1127
|
"aria-label": e.ariaLabel,
|
|
@@ -1886,7 +1886,7 @@ function zr(e, t, n) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
//#endregion
|
|
1888
1888
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1889
|
-
var Br = ["popover"], Vr =
|
|
1889
|
+
var Br = ["popover"], Vr = "--pv-popover-v2-anchor", Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
1890
1890
|
__name: "PvPopoverV2",
|
|
1891
1891
|
props: /* @__PURE__ */ v({
|
|
1892
1892
|
disableAutoPlacement: {
|
|
@@ -1921,6 +1921,10 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1921
1921
|
default: 25,
|
|
1922
1922
|
type: Number
|
|
1923
1923
|
},
|
|
1924
|
+
closeDelay: {
|
|
1925
|
+
default: 200,
|
|
1926
|
+
type: Number
|
|
1927
|
+
},
|
|
1924
1928
|
zIndex: {
|
|
1925
1929
|
default: 10,
|
|
1926
1930
|
type: Number
|
|
@@ -1941,8 +1945,9 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1941
1945
|
"anchor-name: --pv-anchor",
|
|
1942
1946
|
"position-area: bottom",
|
|
1943
1947
|
"position-try-fallbacks: flip-block",
|
|
1944
|
-
"position-visibility: anchors-visible"
|
|
1945
|
-
|
|
1948
|
+
"position-visibility: anchors-visible",
|
|
1949
|
+
`anchor-scope: ${Vr}`
|
|
1950
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), x = M(null), S = Ke(v), w = Ke(x), T = M(!1), ee = {
|
|
1946
1951
|
"top-center": "top",
|
|
1947
1952
|
"bottom-center": "bottom",
|
|
1948
1953
|
"center-left": "left",
|
|
@@ -1951,7 +1956,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1951
1956
|
"top-right": "top-end",
|
|
1952
1957
|
"bottom-left": "bottom-start",
|
|
1953
1958
|
"bottom-right": "bottom-end"
|
|
1954
|
-
},
|
|
1959
|
+
}, k = {
|
|
1955
1960
|
"top-center": {
|
|
1956
1961
|
area: "top",
|
|
1957
1962
|
margin: "margin-block-end"
|
|
@@ -1984,26 +1989,26 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
1984
1989
|
area: "bottom span-left",
|
|
1985
1990
|
margin: "margin-block-start"
|
|
1986
1991
|
}
|
|
1987
|
-
},
|
|
1988
|
-
let e =
|
|
1992
|
+
}, A = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), j = r(() => h ? { "anchor-scope": Vr } : void 0), te = r(() => h ? { "anchor-name": Vr } : void 0), P = r(() => {
|
|
1993
|
+
let e = k[t.position];
|
|
1989
1994
|
return {
|
|
1990
|
-
"position-anchor":
|
|
1995
|
+
"position-anchor": Vr,
|
|
1991
1996
|
"position-area": e.area,
|
|
1992
1997
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1993
1998
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1994
1999
|
};
|
|
1995
|
-
}),
|
|
2000
|
+
}), F = () => {}, I = () => ({});
|
|
1996
2001
|
if (!h) {
|
|
1997
2002
|
let e = [];
|
|
1998
2003
|
t.disableAutoPlacement || e.push(Or({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Dr(t.offset));
|
|
1999
2004
|
let n = zr(y, x, {
|
|
2000
|
-
placement:
|
|
2005
|
+
placement: ee[t.position],
|
|
2001
2006
|
strategy: t.positioningStrategy,
|
|
2002
2007
|
middleware: e
|
|
2003
2008
|
});
|
|
2004
|
-
|
|
2009
|
+
F = n.update, I = () => n.floatingStyles.value;
|
|
2005
2010
|
let i = Ge(y), a = /* @__PURE__ */ Ae(() => {
|
|
2006
|
-
c.value &&
|
|
2011
|
+
c.value && F();
|
|
2007
2012
|
}, 5);
|
|
2008
2013
|
V([
|
|
2009
2014
|
i.top,
|
|
@@ -2011,7 +2016,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2011
2016
|
i.width,
|
|
2012
2017
|
i.height
|
|
2013
2018
|
], a), Le(_, () => {
|
|
2014
|
-
t.disableClickOutsideToClose ||
|
|
2019
|
+
t.disableClickOutsideToClose || B(!1);
|
|
2015
2020
|
}, { ignore: r(() => [
|
|
2016
2021
|
x.value,
|
|
2017
2022
|
".p-datepicker-panel",
|
|
@@ -2021,56 +2026,68 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2021
2026
|
let L = r(() => ({
|
|
2022
2027
|
...I(),
|
|
2023
2028
|
zIndex: t.zIndex
|
|
2024
|
-
})), R, ne = () => {
|
|
2029
|
+
})), R, ne, ie = () => {
|
|
2025
2030
|
R && clearTimeout(R), R = void 0;
|
|
2026
|
-
},
|
|
2027
|
-
ne
|
|
2031
|
+
}, ae = () => {
|
|
2032
|
+
ne && clearTimeout(ne), ne = void 0;
|
|
2033
|
+
}, B = (e) => {
|
|
2034
|
+
ie(), ae(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? R = setTimeout(() => {
|
|
2028
2035
|
c.value = !0, R = void 0;
|
|
2029
2036
|
}, t.delay) : c.value = e);
|
|
2030
|
-
},
|
|
2037
|
+
}, oe = () => {
|
|
2031
2038
|
let e = x.value;
|
|
2032
2039
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
2033
|
-
},
|
|
2034
|
-
t.showOnHover ||
|
|
2035
|
-
},
|
|
2040
|
+
}, ce = r(() => t.showOnHover ? t.disableInteractive ? S.value || T.value : S.value || w.value || T.value : !1), H = () => {
|
|
2041
|
+
t.showOnHover || B(R ? !1 : !c.value);
|
|
2042
|
+
}, ue = (e) => {
|
|
2036
2043
|
let t = e.newState === "open";
|
|
2037
2044
|
c.value !== t && (c.value = t);
|
|
2038
|
-
},
|
|
2039
|
-
h &&
|
|
2045
|
+
}, de = (e) => {
|
|
2046
|
+
h && A.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), B(!1));
|
|
2040
2047
|
};
|
|
2041
2048
|
return V(c, async (e) => {
|
|
2042
2049
|
if (!h) {
|
|
2043
|
-
e &&
|
|
2050
|
+
e && F();
|
|
2044
2051
|
return;
|
|
2045
2052
|
}
|
|
2046
|
-
await b(),
|
|
2047
|
-
}), V(
|
|
2048
|
-
t.showOnHover
|
|
2053
|
+
await b(), oe();
|
|
2054
|
+
}), V(ce, (e) => {
|
|
2055
|
+
if (t.showOnHover) {
|
|
2056
|
+
if (e) {
|
|
2057
|
+
B(!0);
|
|
2058
|
+
return;
|
|
2059
|
+
}
|
|
2060
|
+
ie(), t.closeDelay > 0 ? (ae(), ne = setTimeout(() => {
|
|
2061
|
+
ne = void 0, ce.value || B(!1);
|
|
2062
|
+
}, t.closeDelay)) : B(!1);
|
|
2063
|
+
}
|
|
2049
2064
|
}), V(m, (e) => {
|
|
2050
|
-
e ? h && c.value && b(
|
|
2065
|
+
e ? h && c.value && b(oe) : (ie(), ae(), c.value = !1);
|
|
2051
2066
|
}), E(() => {
|
|
2052
|
-
y.value = v.value,
|
|
2053
|
-
}),
|
|
2067
|
+
y.value = v.value, g.value = !0, c.value && b(() => h ? oe() : F());
|
|
2068
|
+
}), D(() => {
|
|
2069
|
+
ie(), ae();
|
|
2070
|
+
}), (r, l) => (O(), o("div", {
|
|
2054
2071
|
ref_key: "root",
|
|
2055
2072
|
ref: _,
|
|
2056
|
-
style: { width: "fit-content" },
|
|
2057
|
-
onKeydown:
|
|
2073
|
+
style: C([{ width: "fit-content" }, j.value]),
|
|
2074
|
+
onKeydown: de
|
|
2058
2075
|
}, [s("div", {
|
|
2059
2076
|
ref_key: "triggerWrapper",
|
|
2060
2077
|
ref: v,
|
|
2061
|
-
style: C(
|
|
2062
|
-
onClick:
|
|
2063
|
-
onFocusin: l[0] ||= (e) =>
|
|
2064
|
-
onFocusout: l[1] ||= (e) =>
|
|
2065
|
-
}, [
|
|
2078
|
+
style: C(te.value),
|
|
2079
|
+
onClick: H,
|
|
2080
|
+
onFocusin: l[0] ||= (e) => T.value = !0,
|
|
2081
|
+
onFocusout: l[1] ||= (e) => T.value = !1
|
|
2082
|
+
}, [N(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (O(), o("div", {
|
|
2066
2083
|
key: 0,
|
|
2067
2084
|
ref_key: "floating",
|
|
2068
2085
|
ref: x,
|
|
2069
2086
|
class: "pv-floating pv-floating-native",
|
|
2070
|
-
popover:
|
|
2071
|
-
style: C(
|
|
2072
|
-
onToggle:
|
|
2073
|
-
}, [
|
|
2087
|
+
popover: A.value,
|
|
2088
|
+
style: C(P.value),
|
|
2089
|
+
onToggle: ue
|
|
2090
|
+
}, [N(r.$slots, "content")], 44, Br)) : m.value ? (O(), i(n, {
|
|
2074
2091
|
key: 1,
|
|
2075
2092
|
to: e.teleportLocation,
|
|
2076
2093
|
disabled: !t.useTeleport
|
|
@@ -2079,9 +2096,9 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2079
2096
|
ref: x,
|
|
2080
2097
|
class: "pv-floating",
|
|
2081
2098
|
style: C(L.value)
|
|
2082
|
-
}, [
|
|
2099
|
+
}, [N(r.$slots, "content")], 4), [[se, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2083
2100
|
}
|
|
2084
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
2101
|
+
}), [["styles", [".pv-floating-native[data-v-08e2d92a]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-08e2d92a]>.pv-popover,.pv-floating-native>slot[name=content][data-v-08e2d92a]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-08e2d92a"]]), Ur = ["data-variant"], Wr = /* @__PURE__ */ d({
|
|
2085
2102
|
__name: "PvTooltipV2",
|
|
2086
2103
|
props: {
|
|
2087
2104
|
variant: {
|
|
@@ -2114,6 +2131,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2114
2131
|
default: 0,
|
|
2115
2132
|
type: Number
|
|
2116
2133
|
},
|
|
2134
|
+
closeDelay: { type: Number },
|
|
2117
2135
|
zIndex: { type: Number },
|
|
2118
2136
|
teleportLocation: { type: String },
|
|
2119
2137
|
offset: { type: Number },
|
|
@@ -2121,8 +2139,8 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2121
2139
|
},
|
|
2122
2140
|
setup(e) {
|
|
2123
2141
|
let t = e, n = p(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = wt("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2124
|
-
return (t, n) => (
|
|
2125
|
-
trigger: H(() => [
|
|
2142
|
+
return (t, n) => (O(), i(Hr, S(h(t.$props)), c({
|
|
2143
|
+
trigger: H(() => [N(t.$slots, "trigger", {}, () => [s("p", null, L(e.label), 1)])]),
|
|
2126
2144
|
_: 2
|
|
2127
2145
|
}, [f.value ? {
|
|
2128
2146
|
name: "content",
|
|
@@ -2130,7 +2148,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2130
2148
|
class: x(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2131
2149
|
role: "tooltip",
|
|
2132
2150
|
"data-variant": e.variant
|
|
2133
|
-
}, [
|
|
2151
|
+
}, [N(t.$slots, "content", {}, () => [l(L(e.description), 1)])], 10, Ur)]),
|
|
2134
2152
|
key: "0"
|
|
2135
2153
|
} : void 0]), 1040));
|
|
2136
2154
|
}
|
|
@@ -2166,7 +2184,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2166
2184
|
}, o = (e) => {
|
|
2167
2185
|
n.disabled || r("click", e);
|
|
2168
2186
|
};
|
|
2169
|
-
return (t, n) => (
|
|
2187
|
+
return (t, n) => (O(), i(Wr, {
|
|
2170
2188
|
position: e.tooltipPosition,
|
|
2171
2189
|
"disable-interactive": !0,
|
|
2172
2190
|
"use-teleport": !0
|
|
@@ -2199,7 +2217,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2199
2217
|
let n = e, d = r(() => typeof n.action.icon == "function" ? n.action.icon(n.option) : n.action.icon), f = r(() => ((typeof n.action.isDisabled == "function" ? n.action.isDisabled(n.option) : n.action.isDisabled) ?? !1) || !n.action.action), p = r(() => typeof n.action.tooltipText == "function" ? n.action.tooltipText(n.option) : n.action.tooltipText), m = r(() => (typeof n.action.interactive == "function" ? n.action.interactive(n.option) : n.action.interactive) ?? !0), h = r(() => typeof n.action.alwaysShow == "function" ? n.action.alwaysShow(n.option) : n.action.alwaysShow), g = () => {
|
|
2200
2218
|
m.value && !f.value && n.action.action?.(n.option);
|
|
2201
2219
|
};
|
|
2202
|
-
return (e, n) => m.value ? (
|
|
2220
|
+
return (e, n) => m.value ? (O(), i(Kr, {
|
|
2203
2221
|
key: 0,
|
|
2204
2222
|
icon: d.value,
|
|
2205
2223
|
"tooltip-text": p.value ?? "",
|
|
@@ -2212,7 +2230,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2212
2230
|
"tooltip-text",
|
|
2213
2231
|
"disabled",
|
|
2214
2232
|
"always-show"
|
|
2215
|
-
])) : (
|
|
2233
|
+
])) : (O(), o(t, { key: 1 }, [a(" Non-interactive actions render as an informational icon rather than a button. "), u(Wr, {
|
|
2216
2234
|
"disable-interactive": !0,
|
|
2217
2235
|
"use-teleport": !0
|
|
2218
2236
|
}, c({
|
|
@@ -2269,7 +2287,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2269
2287
|
},
|
|
2270
2288
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2271
2289
|
setup(e, { emit: t }) {
|
|
2272
|
-
let n = e, c = ae("inputRef"), l = g(Yr, void 0), d = g(Xr,
|
|
2290
|
+
let n = e, c = ae("inputRef"), l = g(Yr, void 0), d = g(Xr, M(!1)), f = g(Zr, void 0), m = g(Qr, void 0), h = r(() => {
|
|
2273
2291
|
if (!d.value || !Lt(n)) return [];
|
|
2274
2292
|
let e = n.children ? Rt(n.children) : [];
|
|
2275
2293
|
if (f?.value) {
|
|
@@ -2303,39 +2321,39 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2303
2321
|
icon: n.menuOptionConfig?.variant === "icon" ? n.icon : void 0,
|
|
2304
2322
|
companyName: n.menuOptionConfig?.variant === "company" ? n.companyName || n.text : void 0
|
|
2305
2323
|
};
|
|
2306
|
-
}), E = r(() => n.action ?? n.menuOptionConfig?.action),
|
|
2324
|
+
}), E = r(() => n.action ?? n.menuOptionConfig?.action), ee = r(() => {
|
|
2307
2325
|
let e = n.menuOptionConfig?.variant;
|
|
2308
2326
|
return e !== "checkbox" && e !== "radio";
|
|
2309
|
-
}),
|
|
2310
|
-
n.disabled || (
|
|
2327
|
+
}), D = r(() => n.menuOptionConfig?.variant === "radio" ? "radio" : "checkbox"), k = `${D.value}-${p()?.uid}`, A = r(() => n.menuOptionConfig?.variant === "checkbox" ? "pv-checkbox" : "pv-radio"), j = r(() => `pv-menu${n.menuOptionConfig?.variant === "checkbox" ? "-checkbox" : n.menuOptionConfig?.variant === "radio" ? "-radio" : ""}-item`), te = t, N = (e) => {
|
|
2328
|
+
n.disabled || (te("handle-selected", {
|
|
2311
2329
|
option: { ...n },
|
|
2312
2330
|
event: e
|
|
2313
2331
|
}), b(() => {
|
|
2314
2332
|
c.value && (c.value.checked = _.value, c.value.indeterminate = v.value);
|
|
2315
2333
|
}));
|
|
2316
2334
|
};
|
|
2317
|
-
return (t, r) => (
|
|
2335
|
+
return (t, r) => (O(), o("label", {
|
|
2318
2336
|
class: x(["pv-label pv-label-hover pv-flex pv-stack-4 pv-inset-square-8", S.value]),
|
|
2319
2337
|
style: C([w.value, {
|
|
2320
2338
|
cursor: "pointer",
|
|
2321
2339
|
paddingTop: e.subText ? "4px" : void 0,
|
|
2322
2340
|
paddingBottom: e.subText ? "4px" : void 0
|
|
2323
2341
|
}]),
|
|
2324
|
-
"data-testid":
|
|
2342
|
+
"data-testid": j.value
|
|
2325
2343
|
}, [
|
|
2326
2344
|
s("input", {
|
|
2327
2345
|
ref_key: "inputRef",
|
|
2328
2346
|
ref: c,
|
|
2329
|
-
hidden:
|
|
2330
|
-
type:
|
|
2331
|
-
name:
|
|
2347
|
+
hidden: ee.value,
|
|
2348
|
+
type: D.value,
|
|
2349
|
+
name: k,
|
|
2332
2350
|
checked: _.value,
|
|
2333
2351
|
indeterminate: v.value,
|
|
2334
|
-
class: x(
|
|
2352
|
+
class: x(A.value),
|
|
2335
2353
|
disabled: e.disabled,
|
|
2336
|
-
onChange:
|
|
2354
|
+
onChange: N
|
|
2337
2355
|
}, null, 42, ri),
|
|
2338
|
-
e.menuOptionConfig?.renderer ? (
|
|
2356
|
+
e.menuOptionConfig?.renderer ? (O(), i(F(e.menuOptionConfig?.renderer), y({ key: 0 }, T.value, { selected: _.value }), null, 16, ["selected"])) : (O(), i(qt, y({ key: 1 }, T.value, {
|
|
2339
2357
|
menuOptionConfig: e.menuOptionConfig,
|
|
2340
2358
|
queryText: e.queryText,
|
|
2341
2359
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2344,12 +2362,12 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2344
2362
|
"queryText",
|
|
2345
2363
|
"highlightSearchText"
|
|
2346
2364
|
])),
|
|
2347
|
-
e.menuOptionConfig?.variant === "checkmark" && _.value ? (
|
|
2365
|
+
e.menuOptionConfig?.variant === "checkmark" && _.value ? (O(), i(W, {
|
|
2348
2366
|
key: 2,
|
|
2349
2367
|
name: "check",
|
|
2350
2368
|
class: "pv-text-success"
|
|
2351
2369
|
})) : a("v-if", !0),
|
|
2352
|
-
e.menuOptionConfig?.variant === "toggle" ? (
|
|
2370
|
+
e.menuOptionConfig?.variant === "toggle" ? (O(), i(Zt, {
|
|
2353
2371
|
key: 3,
|
|
2354
2372
|
modelValue: _.value,
|
|
2355
2373
|
ariaLabel: n.text || "Toggle",
|
|
@@ -2357,18 +2375,18 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2357
2375
|
hideCheckIcon: "",
|
|
2358
2376
|
style: { "pointer-events": "none" }
|
|
2359
2377
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("v-if", !0),
|
|
2360
|
-
E.value ? (
|
|
2378
|
+
E.value ? (O(), i(Jr, {
|
|
2361
2379
|
key: 4,
|
|
2362
2380
|
action: E.value,
|
|
2363
2381
|
option: n
|
|
2364
2382
|
}, null, 8, ["action", "option"])) : a("v-if", !0),
|
|
2365
|
-
e.showChevron ? (
|
|
2383
|
+
e.showChevron ? (O(), o("button", {
|
|
2366
2384
|
key: 5,
|
|
2367
2385
|
type: "button",
|
|
2368
2386
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2369
2387
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2370
2388
|
"aria-expanded": e.expanded,
|
|
2371
|
-
onClick: r[0] ||= ue((e) =>
|
|
2389
|
+
onClick: r[0] ||= ue((e) => te("toggle-expanded"), ["prevent", "stop"])
|
|
2372
2390
|
}, [u(W, {
|
|
2373
2391
|
name: e.chevronIcon ?? "chevron-right",
|
|
2374
2392
|
size: 12
|
|
@@ -2412,11 +2430,11 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2412
2430
|
}),
|
|
2413
2431
|
emits: /* @__PURE__ */ v(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2414
2432
|
setup(e, { emit: n }) {
|
|
2415
|
-
let i = e, s = g(Yr, void 0), c = re(e, "selectedIds"), l = g(ti,
|
|
2433
|
+
let i = e, s = g(Yr, void 0), c = re(e, "selectedIds"), l = g(ti, M(!1)), d = g(ei, M(!1)), f = g(Qr, void 0), p = g($r, void 0), m = M(i.defaultExpanded ?? !1);
|
|
2416
2434
|
V(() => i.defaultExpanded, (e) => {
|
|
2417
2435
|
e && (m.value = !0);
|
|
2418
2436
|
});
|
|
2419
|
-
let h =
|
|
2437
|
+
let h = M(!1), _ = M(!1), v = M(i.children ?? []), b = M(/* @__PURE__ */ new Set());
|
|
2420
2438
|
V(() => i.children, (e) => {
|
|
2421
2439
|
if (!e) {
|
|
2422
2440
|
v.value = [];
|
|
@@ -2433,10 +2451,10 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2433
2451
|
}), E = r(() => Lt({
|
|
2434
2452
|
...i,
|
|
2435
2453
|
children: v.value
|
|
2436
|
-
}) && i.level < ci),
|
|
2454
|
+
}) && i.level < ci), ee = r(() => E.value ? l.value ? m.value : !0 : !1), D = r(() => m.value ? "chevron-down" : "chevron-right"), k = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), A = n, j = r(() => _.value || i.totalChildCount == null ? !1 : i.totalChildCount > v.value.length), N = async () => {
|
|
2437
2455
|
if (h.value) return;
|
|
2438
2456
|
if (!i.handleSeeMore) {
|
|
2439
|
-
|
|
2457
|
+
A("see-more", {
|
|
2440
2458
|
parentId: i.id,
|
|
2441
2459
|
offset: v.value.length
|
|
2442
2460
|
});
|
|
@@ -2468,7 +2486,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2468
2486
|
} finally {
|
|
2469
2487
|
h.value = !1;
|
|
2470
2488
|
}
|
|
2471
|
-
},
|
|
2489
|
+
}, F = (e) => {
|
|
2472
2490
|
if (l.value && E.value && e.option.id === i.id && !d.value) {
|
|
2473
2491
|
S();
|
|
2474
2492
|
return;
|
|
@@ -2477,23 +2495,23 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2477
2495
|
let t = c.value.indexOf(e.option.id);
|
|
2478
2496
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2479
2497
|
}
|
|
2480
|
-
|
|
2498
|
+
A("handle-selected", e);
|
|
2481
2499
|
}, I = (e) => {
|
|
2482
|
-
|
|
2500
|
+
A("handle-selected", e);
|
|
2483
2501
|
};
|
|
2484
2502
|
return (n, r) => {
|
|
2485
|
-
let s =
|
|
2486
|
-
return
|
|
2503
|
+
let s = P("PvMenuItem", !0);
|
|
2504
|
+
return O(), o(t, null, [u(ai, y(T.value, {
|
|
2487
2505
|
children: v.value,
|
|
2488
2506
|
menuOptionConfig: e.config,
|
|
2489
2507
|
queryText: e.queryText,
|
|
2490
2508
|
highlightSearchText: e.highlightSearchText,
|
|
2491
2509
|
showChevron: z(l) && E.value,
|
|
2492
|
-
chevronIcon:
|
|
2510
|
+
chevronIcon: D.value,
|
|
2493
2511
|
expanded: m.value,
|
|
2494
|
-
onHandleSelected:
|
|
2512
|
+
onHandleSelected: F,
|
|
2495
2513
|
onToggleExpanded: S,
|
|
2496
|
-
selected:
|
|
2514
|
+
selected: k(i)
|
|
2497
2515
|
}), null, 16, [
|
|
2498
2516
|
"children",
|
|
2499
2517
|
"menuOptionConfig",
|
|
@@ -2503,13 +2521,13 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2503
2521
|
"chevronIcon",
|
|
2504
2522
|
"expanded",
|
|
2505
2523
|
"selected"
|
|
2506
|
-
]),
|
|
2524
|
+
]), ee.value ? (O(), o("ul", {
|
|
2507
2525
|
key: 0,
|
|
2508
2526
|
role: "list",
|
|
2509
2527
|
style: C(w.value)
|
|
2510
|
-
}, [(
|
|
2528
|
+
}, [(O(!0), o(t, null, te(v.value, (t) => (O(), o("li", {
|
|
2511
2529
|
key: t.id,
|
|
2512
|
-
"data-active":
|
|
2530
|
+
"data-active": k(t) ? "true" : null,
|
|
2513
2531
|
class: x(e.itemClass)
|
|
2514
2532
|
}, [u(s, y({ ref_for: !0 }, t, {
|
|
2515
2533
|
disabled: i.disabled || t.disabled,
|
|
@@ -2520,7 +2538,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2520
2538
|
highlightSearchText: e.highlightSearchText,
|
|
2521
2539
|
level: e.level + 1,
|
|
2522
2540
|
onHandleSelected: I,
|
|
2523
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2541
|
+
onSeeMore: r[1] ||= (e) => A("see-more", e)
|
|
2524
2542
|
}), null, 16, [
|
|
2525
2543
|
"disabled",
|
|
2526
2544
|
"selectedIds",
|
|
@@ -2528,13 +2546,13 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2528
2546
|
"queryText",
|
|
2529
2547
|
"highlightSearchText",
|
|
2530
2548
|
"level"
|
|
2531
|
-
])], 10, oi))), 128)),
|
|
2549
|
+
])], 10, oi))), 128)), j.value ? (O(), o("li", si, [u(st, {
|
|
2532
2550
|
class: "pv-text-brand",
|
|
2533
2551
|
variant: "ghost",
|
|
2534
2552
|
label: "See more",
|
|
2535
2553
|
loading: h.value,
|
|
2536
2554
|
"data-testid": "pv-menu-item-see-more",
|
|
2537
|
-
onClick:
|
|
2555
|
+
onClick: N
|
|
2538
2556
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
2539
2557
|
};
|
|
2540
2558
|
}
|
|
@@ -2566,8 +2584,8 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2566
2584
|
l.value = e;
|
|
2567
2585
|
}), V(l, (e) => {
|
|
2568
2586
|
e !== c.value && (c.value = e);
|
|
2569
|
-
}),
|
|
2570
|
-
let d = g(Zr, void 0), f = g(ei,
|
|
2587
|
+
}), k(Yr, l), k(Xr, r(() => !!i.enableCascadeSelection));
|
|
2588
|
+
let d = g(Zr, void 0), f = g(ei, M(!1)), p = g(Qr, void 0), m = g($r, void 0), h = r(() => i.singleSelect || i.config?.variant === "radio"), _ = (e) => {
|
|
2571
2589
|
if (i.readOnly) return;
|
|
2572
2590
|
let t = e.option, n;
|
|
2573
2591
|
if (i.enableCascadeSelection && Lt(t)) {
|
|
@@ -2604,7 +2622,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2604
2622
|
for (let t of e) if (v.value.has(t.id) || t.children?.length && b(t.children)) return !0;
|
|
2605
2623
|
return !1;
|
|
2606
2624
|
}, S = (e) => v.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && b(e.children) ? !0 : null, C = (e, t) => !!(!t || v.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && b(e.children));
|
|
2607
|
-
return (n, r) => (
|
|
2625
|
+
return (n, r) => (O(), o("ul", ui, [(O(!0), o(t, null, te(e.options, (t) => le((O(), o("li", {
|
|
2608
2626
|
key: t.id,
|
|
2609
2627
|
"data-active": S(t),
|
|
2610
2628
|
"data-testid": e.itemTestId,
|
|
@@ -2621,7 +2639,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2621
2639
|
"config",
|
|
2622
2640
|
"itemClass",
|
|
2623
2641
|
"queryText"
|
|
2624
|
-
])], 10, di)), [[se, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (
|
|
2642
|
+
])], 10, di)), [[se, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (O(), o("li", fi, [u(st, {
|
|
2625
2643
|
class: "pv-text-brand",
|
|
2626
2644
|
variant: "ghost",
|
|
2627
2645
|
label: "See more",
|
|
@@ -2776,7 +2794,7 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2776
2794
|
};
|
|
2777
2795
|
return t(c.options), e;
|
|
2778
2796
|
}), f = I(/* @__PURE__ */ new Set()), p = I(/* @__PURE__ */ new Map());
|
|
2779
|
-
|
|
2797
|
+
k(Zr, d), k(Qr, f), k($r, p), k(ei, r(() => c.parentSelectsAllChildren)), k(ti, r(() => !!c.enableChildExpansion));
|
|
2780
2798
|
let m = n, g = r(() => {
|
|
2781
2799
|
let e = /* @__PURE__ */ new Map();
|
|
2782
2800
|
for (let [t, n] of d.value) Lt(n) && e.set(t, n.children ? Rt(n.children) : []);
|
|
@@ -2805,19 +2823,19 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2805
2823
|
return t;
|
|
2806
2824
|
}, x = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
2807
2825
|
let e = c.additionalCounter ?? 0;
|
|
2808
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
2826
|
+
if (c.enableCascadeSelection && c.countSelectedParents && M.value?.length) return Vt(M.value) + e;
|
|
2809
2827
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return B.value.length + e;
|
|
2810
2828
|
let t = new Set(B.value.map((e) => e.id));
|
|
2811
2829
|
return Bt(c.options, t) + e;
|
|
2812
|
-
}), T = r(() => B.value.length > 0 ? !0 : c.enableCascadeSelection &&
|
|
2830
|
+
}), T = r(() => B.value.length > 0 ? !0 : c.enableCascadeSelection && M.value?.length ? M.value.some((e) => e.state === "selected") : !1), E = (e) => {
|
|
2813
2831
|
m("see-more", e ?? {});
|
|
2814
|
-
},
|
|
2815
|
-
B.value = e,
|
|
2832
|
+
}, ee = ae("searchInputRef"), [D, A] = /* @__PURE__ */ Me(c.defaultOpen), j = re(e, "modelValue"), M = re(e, "selectionState"), P = re(e, "searchInput"), F = r(() => c.menuActionsVariant === "cancel-confirm"), R = (e) => {
|
|
2833
|
+
B.value = e, F.value || (j.value = e, M.value = v());
|
|
2816
2834
|
}, ne = () => {
|
|
2817
|
-
|
|
2835
|
+
F.value && (j.value = B.value, M.value = v());
|
|
2818
2836
|
}, ie = () => {
|
|
2819
|
-
|
|
2820
|
-
}, B = I(
|
|
2837
|
+
F.value && (B.value = j.value);
|
|
2838
|
+
}, B = I(j.value), oe = (e) => d.value.get(e), se = (e) => {
|
|
2821
2839
|
if (!c.enableCascadeSelection || !e) return;
|
|
2822
2840
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
2823
2841
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -2842,30 +2860,30 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2842
2860
|
R(e);
|
|
2843
2861
|
}
|
|
2844
2862
|
}), le = () => {
|
|
2845
|
-
|
|
2863
|
+
P.value = "", D.value = !1;
|
|
2846
2864
|
}, ue = r(() => {
|
|
2847
2865
|
let e = c.size === "lg" ? 24 : 30;
|
|
2848
2866
|
return c.overlayTrigger ? -e : void 0;
|
|
2849
2867
|
});
|
|
2850
|
-
V(() =>
|
|
2851
|
-
if (c.enableCascadeSelection &&
|
|
2852
|
-
se(
|
|
2868
|
+
V(() => j.value, (e) => {
|
|
2869
|
+
if (c.enableCascadeSelection && M.value?.length && e.length === 0) {
|
|
2870
|
+
se(M.value);
|
|
2853
2871
|
return;
|
|
2854
2872
|
}
|
|
2855
2873
|
B.value = e;
|
|
2856
|
-
}), V(() => [
|
|
2857
|
-
se(
|
|
2874
|
+
}), V(() => [M.value, c.options], () => {
|
|
2875
|
+
se(M.value);
|
|
2858
2876
|
}, {
|
|
2859
2877
|
deep: !0,
|
|
2860
2878
|
immediate: !0
|
|
2861
|
-
}), V(
|
|
2879
|
+
}), V(D, (e) => {
|
|
2862
2880
|
e ? (ie(), b(() => {
|
|
2863
|
-
c.overlayTrigger && !c.disableSearchInput &&
|
|
2881
|
+
c.overlayTrigger && !c.disableSearchInput && ee.value?.input?.focus(), m("dropdown-open");
|
|
2864
2882
|
})) : (ie(), m("dropdown-closed"));
|
|
2865
2883
|
});
|
|
2866
2884
|
let de = r(() => {
|
|
2867
|
-
if (
|
|
2868
|
-
let e =
|
|
2885
|
+
if (P.value === "") return c.options;
|
|
2886
|
+
let e = P.value.toLocaleLowerCase();
|
|
2869
2887
|
return c.enableCascadeSelection ? Ht(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2870
2888
|
}), fe = () => {
|
|
2871
2889
|
if (c.enableCascadeSelection) {
|
|
@@ -2894,22 +2912,22 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2894
2912
|
}
|
|
2895
2913
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
2896
2914
|
return Array.from(e.entries());
|
|
2897
|
-
}), _e = r(() => c.groupings &&
|
|
2915
|
+
}), _e = r(() => c.groupings && P.value === ""), ve = r(() => ({
|
|
2898
2916
|
...c,
|
|
2899
|
-
selectedItems:
|
|
2900
|
-
searchInput:
|
|
2917
|
+
selectedItems: j.value,
|
|
2918
|
+
searchInput: P.value,
|
|
2901
2919
|
slotContext: c.slotContext,
|
|
2902
|
-
isOpen:
|
|
2920
|
+
isOpen: D.value,
|
|
2903
2921
|
isLoading: c.isLoading
|
|
2904
2922
|
})), ye = r(() => c.rumActionName ? c.rumActionName : c.rumFilterName ? `Open ${c.rumFilterName} filter` : void 0), be = r(() => c.rumFilterName ? `Search ${c.rumFilterName} options` : void 0), xe = ae("popoverContentRef"), Se = r(() => {
|
|
2905
2923
|
let e = xe.value?.getRootNode();
|
|
2906
2924
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2907
2925
|
}), { present: Ce } = wt("header", { host: Se }), { present: we } = wt("no-results", { host: Se }), { present: Te } = wt("footer", { host: Se });
|
|
2908
2926
|
return Ue("Escape", () => {
|
|
2909
|
-
|
|
2910
|
-
}), (n, r) => (
|
|
2911
|
-
modelValue: z(
|
|
2912
|
-
"onUpdate:modelValue": r[4] ||= (e) => _(
|
|
2927
|
+
D.value && le();
|
|
2928
|
+
}), (n, r) => (O(), i(Hr, y({
|
|
2929
|
+
modelValue: z(D),
|
|
2930
|
+
"onUpdate:modelValue": r[4] ||= (e) => _(D) ? D.value = e : null
|
|
2913
2931
|
}, e.popoverProperties, { offset: ue.value }), {
|
|
2914
2932
|
trigger: H(() => [u(Mt, {
|
|
2915
2933
|
ref: "select-button-trigger-ref",
|
|
@@ -2923,13 +2941,13 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2923
2941
|
companyLogo: e.companyLogo,
|
|
2924
2942
|
showClear: !e.disableClearIcon && T.value && !e.disabled,
|
|
2925
2943
|
showDropdown: !e.disableDropdownIcon && (e.disabled || !(T.value && !e.disableClearIcon)),
|
|
2926
|
-
open: z(
|
|
2944
|
+
open: z(D),
|
|
2927
2945
|
"counter-value": w.value,
|
|
2928
2946
|
"counter-style": e.counterStyle,
|
|
2929
2947
|
"selected-items": B.value,
|
|
2930
2948
|
"data-dd-action-name": ye.value,
|
|
2931
2949
|
onHandleClear: pe,
|
|
2932
|
-
onHandleToggleDropdown: r[0] ||= (e) => z(
|
|
2950
|
+
onHandleToggleDropdown: r[0] ||= (e) => z(A)()
|
|
2933
2951
|
}, null, 8, [
|
|
2934
2952
|
"variant",
|
|
2935
2953
|
"size",
|
|
@@ -2957,26 +2975,26 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2957
2975
|
...e.popoverCssProperties
|
|
2958
2976
|
})
|
|
2959
2977
|
}, [
|
|
2960
|
-
e.disableSearchInput ? a("v-if", !0) : (
|
|
2978
|
+
e.disableSearchInput ? a("v-if", !0) : (O(), o("div", {
|
|
2961
2979
|
key: 0,
|
|
2962
2980
|
class: "pv-inset-square-8 pv-border-bottom",
|
|
2963
2981
|
"data-dd-action-name": be.value
|
|
2964
2982
|
}, [u(mt, {
|
|
2965
2983
|
ref: "searchInputRef",
|
|
2966
|
-
"model-value":
|
|
2967
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2984
|
+
"model-value": P.value,
|
|
2985
|
+
"onUpdate:modelValue": r[1] ||= (e) => P.value = e,
|
|
2968
2986
|
class: "pv-stack-4",
|
|
2969
2987
|
placeholder: e.searchPlaceholder
|
|
2970
2988
|
}, null, 8, ["model-value", "placeholder"])], 8, mi)),
|
|
2971
|
-
n.$slots.header || z(Ce) ? (
|
|
2972
|
-
de.value.length > 0 ? (
|
|
2973
|
-
n.$slots[t] ?
|
|
2989
|
+
n.$slots.header || z(Ce) ? (O(), o("div", hi, [N(n.$slots, "header", S(h(ve.value)))])) : a("v-if", !0),
|
|
2990
|
+
de.value.length > 0 ? (O(), o(t, { key: 2 }, [_e.value ? (O(!0), o(t, { key: 0 }, te(ge.value, ([t, i], s) => (O(), o("div", { key: t }, [
|
|
2991
|
+
n.$slots[t] ? N(n.$slots, t, { key: 0 }) : t === "other" ? a("v-if", !0) : (O(), o("span", gi, L(t), 1)),
|
|
2974
2992
|
u(pi, {
|
|
2975
2993
|
selectedItems: ce.value,
|
|
2976
2994
|
"onUpdate:selectedItems": r[2] ||= (e) => ce.value = e,
|
|
2977
2995
|
options: i,
|
|
2978
2996
|
config: l.value,
|
|
2979
|
-
queryText: e.highlightSearchText ?
|
|
2997
|
+
queryText: e.highlightSearchText ? P.value : null,
|
|
2980
2998
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
2981
2999
|
itemClass: "pv-stack-4",
|
|
2982
3000
|
isLoading: e.isLoading,
|
|
@@ -2995,14 +3013,14 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
2995
3013
|
"enableCascadeSelection",
|
|
2996
3014
|
"hasMoreOptions"
|
|
2997
3015
|
]),
|
|
2998
|
-
ge.value && s !== ge.value.length - 1 ? (
|
|
2999
|
-
]))), 128)) : (
|
|
3016
|
+
ge.value && s !== ge.value.length - 1 ? (O(), o("div", _i)) : a("v-if", !0)
|
|
3017
|
+
]))), 128)) : (O(), i(pi, {
|
|
3000
3018
|
key: 1,
|
|
3001
3019
|
selectedItems: ce.value,
|
|
3002
3020
|
"onUpdate:selectedItems": r[3] ||= (e) => ce.value = e,
|
|
3003
3021
|
options: de.value,
|
|
3004
3022
|
config: l.value,
|
|
3005
|
-
queryText: e.highlightSearchText ?
|
|
3023
|
+
queryText: e.highlightSearchText ? P.value : null,
|
|
3006
3024
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3007
3025
|
itemClass: "pv-stack-4",
|
|
3008
3026
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3019,8 +3037,8 @@ var Br = ["popover"], Vr = 0, Hr = /* @__PURE__ */ rt(/* @__PURE__ */ d({
|
|
|
3019
3037
|
"isSeeMoreLoading",
|
|
3020
3038
|
"hasMoreOptions"
|
|
3021
3039
|
]))], 64)) : a("v-if", !0),
|
|
3022
|
-
e.isLoading ? (
|
|
3023
|
-
s("div", yi, [z(Te) ?
|
|
3040
|
+
e.isLoading ? (O(), o("div", vi, [u(qe, { variant: "dark" })])) : de.value.length === 0 ? (O(), o(t, { key: 4 }, [z(we) ? N(n.$slots, "no-results", S(y({ key: 0 }, ve.value))) : (O(), i(It, { key: 1 }))], 64)) : a("v-if", !0),
|
|
3041
|
+
s("div", yi, [z(Te) ? N(n.$slots, "footer", S(y({ key: 0 }, ve.value))) : a("v-if", !0), e.menuActionsVariant ? (O(), i(lt, {
|
|
3024
3042
|
key: 1,
|
|
3025
3043
|
variant: e.menuActionsVariant,
|
|
3026
3044
|
disabled: e.isLoading,
|
|
@@ -3371,9 +3389,9 @@ var Q = {
|
|
|
3371
3389
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3372
3390
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3373
3391
|
if (Y(a) && o.transform !== "strict") {
|
|
3374
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ea(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = y || {}, { dark: T } = w, E = ea(w, ["dark"]),
|
|
3375
|
-
s = this.transformCSS(e,
|
|
3376
|
-
...
|
|
3392
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ea(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = y || {}, { dark: T } = w, E = ea(w, ["dark"]), ee = Y(t) ? this._toVariables({ primitive: t }, o) : {}, D = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, O = Y(C) ? this._toVariables({ light: C }, o) : {}, k = Y(S) ? this._toVariables({ dark: S }, o) : {}, A = Y(b) ? this._toVariables({ semantic: b }, o) : {}, j = Y(E) ? this._toVariables({ light: E }, o) : {}, M = Y(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [ee.declarations ?? "", ee.tokens], [P, F] = [D.declarations ?? "", D.tokens || []], [I, L] = [O.declarations ?? "", O.tokens || []], [R, z] = [k.declarations ?? "", k.tokens || []], [ne, re] = [A.declarations ?? "", A.tokens || []], [ie, ae] = [j.declarations ?? "", j.tokens || []], [B, oe] = [M.declarations ?? "", M.tokens || []];
|
|
3393
|
+
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${P}${I}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${R}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3394
|
+
...F,
|
|
3377
3395
|
...L,
|
|
3378
3396
|
...z
|
|
3379
3397
|
])], d = `${this.transformCSS(e, `${ne}${ie}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${B}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
@@ -3405,11 +3423,11 @@ var Q = {
|
|
|
3405
3423
|
"colorScheme",
|
|
3406
3424
|
"extend",
|
|
3407
3425
|
"css"
|
|
3408
|
-
]), h = f || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ea(v, ["dark"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [
|
|
3409
|
-
s = `${this.transformCSS(r, `${
|
|
3410
|
-
...
|
|
3411
|
-
...
|
|
3412
|
-
...
|
|
3426
|
+
]), h = f || {}, { colorScheme: g } = h, _ = ea(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ea(v, ["dark"]), x = g || {}, { dark: S } = x, C = ea(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
3427
|
+
s = `${this.transformCSS(r, `${ee}${O}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, A, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
3428
|
+
...D,
|
|
3429
|
+
...k,
|
|
3430
|
+
...j
|
|
3413
3431
|
])], l = Mi(p, { dt: ha });
|
|
3414
3432
|
}
|
|
3415
3433
|
return {
|
|
@@ -3768,32 +3786,32 @@ function Ea(e) {
|
|
|
3768
3786
|
}
|
|
3769
3787
|
var Da = 0;
|
|
3770
3788
|
function Oa(e) {
|
|
3771
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
3789
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = M(!1), r = M(e), i = M(null), a = Wi() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++Da}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, ee = E === void 0 ? void 0 : E, D = t.props, O = D === void 0 ? {} : D, k = function() {}, A = function(t) {
|
|
3772
3790
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3773
3791
|
if (s) {
|
|
3774
|
-
var o = Sa(Sa({},
|
|
3792
|
+
var o = Sa(Sa({}, O), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
3775
3793
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, Ui(i.value, {
|
|
3776
3794
|
type: "text/css",
|
|
3777
3795
|
id: l,
|
|
3778
3796
|
media: _,
|
|
3779
3797
|
nonce: u
|
|
3780
3798
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), Gi(i.value, "data-primevue-style-id", c), Ui(i.value, o), i.value.onload = function(e) {
|
|
3781
|
-
return
|
|
3782
|
-
}, C?.(c)), !n.value && (
|
|
3799
|
+
return ee?.(e, { name: c });
|
|
3800
|
+
}, C?.(c)), !n.value && (k = V(r, function(e) {
|
|
3783
3801
|
i.value.textContent = e, T?.(c);
|
|
3784
3802
|
}, { immediate: !0 }), n.value = !0);
|
|
3785
3803
|
}
|
|
3786
3804
|
};
|
|
3787
|
-
return l && !d && Ea(
|
|
3805
|
+
return l && !d && Ea(A), {
|
|
3788
3806
|
id: h,
|
|
3789
3807
|
name: p,
|
|
3790
3808
|
el: i,
|
|
3791
3809
|
css: r,
|
|
3792
3810
|
unload: function() {
|
|
3793
|
-
!s || !n.value || (
|
|
3811
|
+
!s || !n.value || (k(), Vi(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
3794
3812
|
},
|
|
3795
|
-
load:
|
|
3796
|
-
isLoaded:
|
|
3813
|
+
load: A,
|
|
3814
|
+
isLoaded: j(n)
|
|
3797
3815
|
};
|
|
3798
3816
|
}
|
|
3799
3817
|
//#endregion
|
|
@@ -4271,7 +4289,7 @@ var eo = {
|
|
|
4271
4289
|
csp: { nonce: void 0 }
|
|
4272
4290
|
}, to = Symbol();
|
|
4273
4291
|
function no(e, t) {
|
|
4274
|
-
var n = { config:
|
|
4292
|
+
var n = { config: A(t) };
|
|
4275
4293
|
return e.config.globalProperties.$primevue = n, e.provide(to, n), io(), ao(e, n), n;
|
|
4276
4294
|
}
|
|
4277
4295
|
var ro = [];
|
|
@@ -4281,7 +4299,7 @@ function io() {
|
|
|
4281
4299
|
}), ro = [];
|
|
4282
4300
|
}
|
|
4283
4301
|
function ao(e, t) {
|
|
4284
|
-
var n =
|
|
4302
|
+
var n = M(!1), r = function() {
|
|
4285
4303
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
4286
4304
|
var e, n = Ka.getCommonTheme?.call(Ka) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
4287
4305
|
Ka.load(r?.css, Xa({ name: "primitive-variables" }, s)), Ka.load(i?.css, Xa({ name: "semantic-variables" }, s)), Ka.load(a?.css, Xa({ name: "global-variables" }, s)), Ka.loadStyle(Xa({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|