@turquoisehealth/pit-viper 2.209.1 → 2.210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +35 -21
- 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 +36 -22
- 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 +426 -409
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +36 -20
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +589 -572
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +626 -609
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +49 -32
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +523 -506
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +399 -383
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +37 -20
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +620 -603
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +37 -20
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +519 -503
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +600 -583
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +124 -107
- package/pv-components/dist/web/pv-components.iife.js +16 -16
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1465,6 +1465,10 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1465
1465
|
default: 25,
|
|
1466
1466
|
type: Number
|
|
1467
1467
|
},
|
|
1468
|
+
closeDelay: {
|
|
1469
|
+
default: 200,
|
|
1470
|
+
type: Number
|
|
1471
|
+
},
|
|
1468
1472
|
zIndex: {
|
|
1469
1473
|
default: 10,
|
|
1470
1474
|
type: Number
|
|
@@ -1555,7 +1559,7 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1555
1559
|
i.width,
|
|
1556
1560
|
i.height
|
|
1557
1561
|
], a), Yn(_, () => {
|
|
1558
|
-
t.disableClickOutsideToClose ||
|
|
1562
|
+
t.disableClickOutsideToClose || le(!1);
|
|
1559
1563
|
}, { ignore: r(() => [
|
|
1560
1564
|
x.value,
|
|
1561
1565
|
".p-datepicker-panel",
|
|
@@ -1565,45 +1569,57 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1565
1569
|
let I = r(() => ({
|
|
1566
1570
|
...F(),
|
|
1567
1571
|
zIndex: t.zIndex
|
|
1568
|
-
})), re, ae = () => {
|
|
1572
|
+
})), re, ae, oe = () => {
|
|
1569
1573
|
re && clearTimeout(re), re = void 0;
|
|
1570
|
-
},
|
|
1571
|
-
ae
|
|
1574
|
+
}, se = () => {
|
|
1575
|
+
ae && clearTimeout(ae), ae = void 0;
|
|
1576
|
+
}, le = (e) => {
|
|
1577
|
+
oe(), se(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? re = setTimeout(() => {
|
|
1572
1578
|
c.value = !0, re = void 0;
|
|
1573
1579
|
}, t.delay) : c.value = e);
|
|
1574
|
-
},
|
|
1580
|
+
}, ue = () => {
|
|
1575
1581
|
let e = x.value;
|
|
1576
1582
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1577
|
-
},
|
|
1578
|
-
t.showOnHover ||
|
|
1579
|
-
},
|
|
1583
|
+
}, fe = r(() => t.showOnHover ? t.disableInteractive ? w.value || O.value : w.value || E.value || O.value : !1), pe = () => {
|
|
1584
|
+
t.showOnHover || le(re ? !1 : !c.value);
|
|
1585
|
+
}, me = (e) => {
|
|
1580
1586
|
let t = e.newState === "open";
|
|
1581
1587
|
c.value !== t && (c.value = t);
|
|
1582
|
-
},
|
|
1583
|
-
h && M.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1588
|
+
}, he = (e) => {
|
|
1589
|
+
h && M.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), le(!1));
|
|
1584
1590
|
};
|
|
1585
1591
|
return R(c, async (e) => {
|
|
1586
1592
|
if (!h) {
|
|
1587
1593
|
e && P();
|
|
1588
1594
|
return;
|
|
1589
1595
|
}
|
|
1590
|
-
await y(),
|
|
1591
|
-
}), R(
|
|
1592
|
-
t.showOnHover
|
|
1596
|
+
await y(), ue();
|
|
1597
|
+
}), R(fe, (e) => {
|
|
1598
|
+
if (t.showOnHover) {
|
|
1599
|
+
if (e) {
|
|
1600
|
+
le(!0);
|
|
1601
|
+
return;
|
|
1602
|
+
}
|
|
1603
|
+
oe(), t.closeDelay > 0 ? (se(), ae = setTimeout(() => {
|
|
1604
|
+
ae = void 0, fe.value || le(!1);
|
|
1605
|
+
}, t.closeDelay)) : le(!1);
|
|
1606
|
+
}
|
|
1593
1607
|
}), R(m, (e) => {
|
|
1594
|
-
e ? h && c.value && y(
|
|
1608
|
+
e ? h && c.value && y(ue) : (oe(), se(), c.value = !1);
|
|
1595
1609
|
}), T(() => {
|
|
1596
|
-
b.value = v.value, h && (C.value = `--pv-popover-v2-${++cr}`), g.value = !0, c.value && y(() => h ?
|
|
1597
|
-
}), ee(
|
|
1610
|
+
b.value = v.value, h && (C.value = `--pv-popover-v2-${++cr}`), g.value = !0, c.value && y(() => h ? ue() : P());
|
|
1611
|
+
}), ee(() => {
|
|
1612
|
+
oe(), se();
|
|
1613
|
+
}), (r, l) => (D(), o("div", {
|
|
1598
1614
|
ref_key: "root",
|
|
1599
1615
|
ref: _,
|
|
1600
1616
|
style: { width: "fit-content" },
|
|
1601
|
-
onKeydown:
|
|
1617
|
+
onKeydown: he
|
|
1602
1618
|
}, [s("div", {
|
|
1603
1619
|
ref_key: "triggerWrapper",
|
|
1604
1620
|
ref: v,
|
|
1605
1621
|
style: S(te.value),
|
|
1606
|
-
onClick:
|
|
1622
|
+
onClick: pe,
|
|
1607
1623
|
onFocusin: l[0] ||= (e) => O.value = !0,
|
|
1608
1624
|
onFocusout: l[1] ||= (e) => O.value = !1
|
|
1609
1625
|
}, [N(r.$slots, "trigger")], 36), g.value && L(h) && m.value ? (D(), o("div", {
|
|
@@ -1613,7 +1629,7 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1613
1629
|
class: "pv-floating pv-floating-native",
|
|
1614
1630
|
popover: M.value,
|
|
1615
1631
|
style: S(ne.value),
|
|
1616
|
-
onToggle:
|
|
1632
|
+
onToggle: me
|
|
1617
1633
|
}, [N(r.$slots, "content")], 44, sr)) : m.value ? (D(), i(n, {
|
|
1618
1634
|
key: 1,
|
|
1619
1635
|
to: e.teleportLocation,
|
|
@@ -1625,7 +1641,7 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1625
1641
|
style: S(I.value)
|
|
1626
1642
|
}, [N(r.$slots, "content")], 4), [[ce, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 544));
|
|
1627
1643
|
}
|
|
1628
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1644
|
+
}), [["styles", [".pv-floating-native[data-v-97886581]{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-97886581]>.pv-popover,.pv-floating-native>slot[name=content][data-v-97886581]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-97886581"]]), ur = ["data-variant"], dr = /* @__PURE__ */ d({
|
|
1629
1645
|
__name: "PvTooltipV2",
|
|
1630
1646
|
props: {
|
|
1631
1647
|
variant: {
|
|
@@ -1658,6 +1674,7 @@ var sr = ["popover"], cr = 0, lr = /* @__PURE__ */ Ie(/* @__PURE__ */ d({
|
|
|
1658
1674
|
default: 0,
|
|
1659
1675
|
type: Number
|
|
1660
1676
|
},
|
|
1677
|
+
closeDelay: { type: Number },
|
|
1661
1678
|
zIndex: { type: Number },
|
|
1662
1679
|
teleportLocation: { type: String },
|
|
1663
1680
|
offset: { type: Number },
|
|
@@ -2440,12 +2457,12 @@ var pi = Object.defineProperty, mi = Object.defineProperties, hi = Object.getOwn
|
|
|
2440
2457
|
for (var n in t ||= {}) _i.call(t, n) && yi(e, n, t[n]);
|
|
2441
2458
|
if (gi) for (var n of gi(t)) vi.call(t, n) && yi(e, n, t[n]);
|
|
2442
2459
|
return e;
|
|
2443
|
-
}, bi = (e, t) => mi(e, hi(t)),
|
|
2460
|
+
}, bi = (e, t) => mi(e, hi(t)), xi = (e, t) => {
|
|
2444
2461
|
var n = {};
|
|
2445
2462
|
for (var r in e) _i.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2446
2463
|
if (e != null && gi) for (var r of gi(e)) t.indexOf(r) < 0 && vi.call(e, r) && (n[r] = e[r]);
|
|
2447
2464
|
return n;
|
|
2448
|
-
},
|
|
2465
|
+
}, Z = oi(), Si = /{([^}]*)}/g, Ci = /(\d+\s+[\+\-\*\/]\s+\d+)/g, wi = /var\([^)]+\)/g;
|
|
2449
2466
|
function Ti(e) {
|
|
2450
2467
|
return ei(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
2451
2468
|
}
|
|
@@ -2615,7 +2632,7 @@ var Q = {
|
|
|
2615
2632
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
2616
2633
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
2617
2634
|
if (J(a) && o.transform !== "strict") {
|
|
2618
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ =
|
|
2635
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = xi(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = xi(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = xi(x, ["dark"]), w = y || {}, { dark: T } = w, E = xi(w, ["dark"]), ee = J(t) ? this._toVariables({ primitive: t }, o) : {}, D = J(_) ? this._toVariables({ semantic: _ }, o) : {}, O = J(C) ? this._toVariables({ light: C }, o) : {}, k = J(S) ? this._toVariables({ dark: S }, o) : {}, A = J(b) ? this._toVariables({ semantic: b }, o) : {}, j = J(E) ? this._toVariables({ light: E }, o) : {}, M = J(T) ? this._toVariables({ dark: T }, o) : {}, [N, te] = [ee.declarations ?? "", ee.tokens], [ne, P] = [D.declarations ?? "", D.tokens || []], [F, I] = [O.declarations ?? "", O.tokens || []], [L, re] = [k.declarations ?? "", k.tokens || []], [ie, ae] = [A.declarations ?? "", A.tokens || []], [oe, se] = [j.declarations ?? "", j.tokens || []], [ce, R] = [M.declarations ?? "", M.tokens || []];
|
|
2619
2636
|
s = this.transformCSS(e, N, "light", "variable", o, r, i), c = te, l = `${this.transformCSS(e, `${ne}${F}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${L}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
2620
2637
|
...P,
|
|
2621
2638
|
...I,
|
|
@@ -2645,11 +2662,11 @@ var Q = {
|
|
|
2645
2662
|
getPreset({ name: e = "", preset: t = {}, options: n, params: r, set: i, defaults: a, selector: o }) {
|
|
2646
2663
|
let s, c, l;
|
|
2647
2664
|
if (J(t) && n.transform !== "strict") {
|
|
2648
|
-
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m =
|
|
2665
|
+
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m = xi(u, [
|
|
2649
2666
|
"colorScheme",
|
|
2650
2667
|
"extend",
|
|
2651
2668
|
"css"
|
|
2652
|
-
]), h = f || {}, { colorScheme: g } = h, _ =
|
|
2669
|
+
]), h = f || {}, { colorScheme: g } = h, _ = xi(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = xi(v, ["dark"]), x = g || {}, { dark: S } = x, C = xi(x, ["dark"]), w = J(m) ? this._toVariables({ [r]: X(X({}, m), _) }, n) : {}, T = J(b) ? this._toVariables({ [r]: X(X({}, b), C) }, n) : {}, E = J(y) ? this._toVariables({ [r]: X(X({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [O, k] = [T.declarations ?? "", T.tokens || []], [A, j] = [E.declarations ?? "", E.tokens || []];
|
|
2653
2670
|
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([
|
|
2654
2671
|
...D,
|
|
2655
2672
|
...k,
|
|
@@ -2773,7 +2790,7 @@ var Q = {
|
|
|
2773
2790
|
let r = ((e) => e.split(".").filter((e) => !ni(e.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), i = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, a = [e[r]?.computed(i)].flat().filter((e) => e);
|
|
2774
2791
|
return a.length === 1 ? a[0].value : a.reduce((e = {}, t) => {
|
|
2775
2792
|
let n = t, { colorScheme: r } = n;
|
|
2776
|
-
return e[r] =
|
|
2793
|
+
return e[r] = xi(n, ["colorScheme"]), e;
|
|
2777
2794
|
}, void 0);
|
|
2778
2795
|
},
|
|
2779
2796
|
getSelectorRule(e, t, n, r) {
|
|
@@ -2838,19 +2855,19 @@ var Q = {
|
|
|
2838
2855
|
return this.theme;
|
|
2839
2856
|
},
|
|
2840
2857
|
setTheme(e) {
|
|
2841
|
-
this.update({ theme: e }),
|
|
2858
|
+
this.update({ theme: e }), Z.emit("theme:change", e);
|
|
2842
2859
|
},
|
|
2843
2860
|
getPreset() {
|
|
2844
2861
|
return this.preset;
|
|
2845
2862
|
},
|
|
2846
2863
|
setPreset(e) {
|
|
2847
|
-
this._theme = bi(X({}, this.theme), { preset: e }), this._tokens = Q.createTokens(e, this.defaults), this.clearLoadedStyleNames(),
|
|
2864
|
+
this._theme = bi(X({}, this.theme), { preset: e }), this._tokens = Q.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Z.emit("preset:change", e), Z.emit("theme:change", this.theme);
|
|
2848
2865
|
},
|
|
2849
2866
|
getOptions() {
|
|
2850
2867
|
return this.options;
|
|
2851
2868
|
},
|
|
2852
2869
|
setOptions(e) {
|
|
2853
|
-
this._theme = bi(X({}, this.theme), { options: e }), this.clearLoadedStyleNames(),
|
|
2870
|
+
this._theme = bi(X({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Z.emit("options:change", e), Z.emit("theme:change", this.theme);
|
|
2854
2871
|
},
|
|
2855
2872
|
getLayerNames() {
|
|
2856
2873
|
return [...this._layerNames];
|
|
@@ -2950,7 +2967,7 @@ var Q = {
|
|
|
2950
2967
|
this._loadingStyles.add(e);
|
|
2951
2968
|
},
|
|
2952
2969
|
onStyleLoaded(e, { name: t }) {
|
|
2953
|
-
this._loadingStyles.size && (this._loadingStyles.delete(t),
|
|
2970
|
+
this._loadingStyles.size && (this._loadingStyles.delete(t), Z.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Z.emit("theme:load"));
|
|
2954
2971
|
}
|
|
2955
2972
|
}, zi = "\n *,\n ::before,\n ::after {\n box-sizing: border-box;\n }\n\n .p-collapsible-enter-active {\n animation: p-animate-collapsible-expand 0.2s ease-out;\n overflow: hidden;\n }\n\n .p-collapsible-leave-active {\n animation: p-animate-collapsible-collapse 0.2s ease-out;\n overflow: hidden;\n }\n\n @keyframes p-animate-collapsible-expand {\n from {\n grid-template-rows: 0fr;\n }\n to {\n grid-template-rows: 1fr;\n }\n }\n\n @keyframes p-animate-collapsible-collapse {\n from {\n grid-template-rows: 1fr;\n }\n to {\n grid-template-rows: 0fr;\n }\n }\n\n .p-disabled,\n .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-disabled,\n .p-component:disabled {\n opacity: dt('disabled.opacity');\n }\n\n .pi {\n font-size: dt('icon.size');\n }\n\n .p-icon {\n width: dt('icon.size');\n height: dt('icon.size');\n }\n\n .p-overlay-mask {\n background: var(--px-mask-background, dt('mask.background'));\n color: dt('mask.color');\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-overlay-mask-enter-active {\n animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;\n }\n\n .p-overlay-mask-leave-active {\n animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;\n }\n\n @keyframes p-animate-overlay-mask-enter {\n from {\n background: transparent;\n }\n to {\n background: var(--px-mask-background, dt('mask.background'));\n }\n }\n @keyframes p-animate-overlay-mask-leave {\n from {\n background: var(--px-mask-background, dt('mask.background'));\n }\n to {\n background: transparent;\n }\n }\n\n .p-anchored-overlay-enter-active {\n animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);\n }\n\n .p-anchored-overlay-leave-active {\n animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);\n }\n\n @keyframes p-animate-anchored-overlay-enter {\n from {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n\n @keyframes p-animate-anchored-overlay-leave {\n to {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n";
|
|
2956
2973
|
//#endregion
|
|
@@ -3520,7 +3537,7 @@ function Sa(e, t) {
|
|
|
3520
3537
|
}
|
|
3521
3538
|
var Ca = [];
|
|
3522
3539
|
function wa() {
|
|
3523
|
-
|
|
3540
|
+
Z.clear(), Ca.forEach(function(e) {
|
|
3524
3541
|
return e?.();
|
|
3525
3542
|
}), Ca = [];
|
|
3526
3543
|
}
|
|
@@ -3531,7 +3548,7 @@ function Ta(e, t) {
|
|
|
3531
3548
|
fa.load(r?.css, ga({ name: "primitive-variables" }, s)), fa.load(i?.css, ga({ name: "semantic-variables" }, s)), fa.load(a?.css, ga({ name: "global-variables" }, s)), fa.loadStyle(ga({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
3532
3549
|
}
|
|
3533
3550
|
};
|
|
3534
|
-
|
|
3551
|
+
Z.on("theme:change", function(t) {
|
|
3535
3552
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
3536
3553
|
});
|
|
3537
3554
|
var i = R(t.config, function(e, t) {
|