@turquoisehealth/pit-viper 2.130.2-dev.0 → 2.132.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-date-picker-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-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-select-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/PvDatePicker/PvDatePicker.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +171 -165
- package/pv-components/dist/vue/visualizations/components/base/PvDatePicker/PvDatePicker.vue.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +663 -659
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +2 -1
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +44 -44
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +498 -494
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +189 -185
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +331 -327
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +230 -225
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +510 -505
- package/pv-components/dist/web/pv-components.iife.js +8 -8
|
@@ -7402,7 +7402,8 @@ const ja = [void 0, 10, 12, 20, 24, 32, 64], Fa = ["xlink:href"], Na = /* @__PUR
|
|
|
7402
7402
|
placeholder: { type: null },
|
|
7403
7403
|
showIcon: { type: Boolean },
|
|
7404
7404
|
fullWidth: { type: Boolean },
|
|
7405
|
-
appendTo: { default: "body", type: null }
|
|
7405
|
+
appendTo: { default: "body", type: null },
|
|
7406
|
+
panelClass: { type: null }
|
|
7406
7407
|
}, {
|
|
7407
7408
|
modelValue: { required: !0 },
|
|
7408
7409
|
modelModifiers: {}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as _, computed as y, createElementBlock as h, openBlock as m, Fragment as E, renderList as g, normalizeStyle as w, normalizeClass as A, defineCustomElement as C } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const I = {
|
|
3
3
|
class: "pv-flex",
|
|
4
4
|
style: { "--flex-gap": "4px", height: "24px" }
|
|
5
|
-
},
|
|
5
|
+
}, P = /* @__PURE__ */ _({
|
|
6
6
|
__name: "PvDistributionBar",
|
|
7
7
|
props: {
|
|
8
8
|
values: { type: Array }
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
|
-
const e = t, n = y(() => e.values?.reduce((i,
|
|
12
|
-
const r =
|
|
11
|
+
const e = t, n = y(() => e.values?.reduce((i, l) => i + l, 0) ?? 0), c = (i, l) => {
|
|
12
|
+
const r = e.values?.findIndex((p) => p > 0) ?? -1, a = e.values?.findLastIndex((p) => p > 0) ?? -1, s = l === r, o = l === a, u = (p) => p ? "12px" : "0";
|
|
13
13
|
return {
|
|
14
14
|
width: `${i / n.value * 100}%`,
|
|
15
15
|
height: "100%",
|
|
16
|
-
borderRadius: `${s
|
|
16
|
+
borderRadius: `${u(s)} ${u(o)} ${u(o)} ${u(s)}`
|
|
17
17
|
};
|
|
18
|
-
},
|
|
18
|
+
}, d = (i) => {
|
|
19
19
|
switch (i) {
|
|
20
20
|
case 0:
|
|
21
21
|
return "pv-data-surface-visualization-1";
|
|
@@ -35,7 +35,7 @@ const P = {
|
|
|
35
35
|
return "pv-data-surface-visualization-1";
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
return (i,
|
|
38
|
+
return (i, l) => (m(), h("div", I, [
|
|
39
39
|
(m(!0), h(
|
|
40
40
|
E,
|
|
41
41
|
null,
|
|
@@ -43,8 +43,8 @@ const P = {
|
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
key: r,
|
|
46
|
-
class: A([
|
|
47
|
-
style: w(
|
|
46
|
+
class: A([d(a)]),
|
|
47
|
+
style: w(c(r, a))
|
|
48
48
|
},
|
|
49
49
|
null,
|
|
50
50
|
6
|
|
@@ -55,20 +55,20 @@ const P = {
|
|
|
55
55
|
))
|
|
56
56
|
]));
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
59
|
-
function
|
|
60
|
-
return
|
|
58
|
+
}), S = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
59
|
+
function $(t) {
|
|
60
|
+
return !S.has(t);
|
|
61
61
|
}
|
|
62
62
|
function b(t, e) {
|
|
63
63
|
const n = document.querySelector('link[href*="' + e + '"]');
|
|
64
64
|
if (!t.shadowRoot)
|
|
65
65
|
return !1;
|
|
66
66
|
if (n && t.shadowRoot) {
|
|
67
|
-
const
|
|
68
|
-
if (t.shadowRoot.querySelector(`link[href="${
|
|
67
|
+
const c = n.href;
|
|
68
|
+
if (t.shadowRoot.querySelector(`link[href="${c}"]`))
|
|
69
69
|
return;
|
|
70
|
-
const
|
|
71
|
-
return
|
|
70
|
+
const d = document.createElement("link");
|
|
71
|
+
return d.rel = "stylesheet", d.href = c, t.shadowRoot.prepend(d), !0;
|
|
72
72
|
}
|
|
73
73
|
return !1;
|
|
74
74
|
}
|
|
@@ -83,21 +83,21 @@ function j(t) {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const O = (t) => ({ shadowRoot:
|
|
86
|
+
const O = (t) => ({ shadowRoot: $(t) });
|
|
87
87
|
function k(t, e) {
|
|
88
88
|
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
89
89
|
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
90
90
|
), !1);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function x(t, e) {
|
|
93
93
|
const n = Number(e);
|
|
94
94
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(),
|
|
98
|
-
return i && typeof i == "object" && Object.entries(i).forEach(([
|
|
99
|
-
r === Boolean || r && r.type === Boolean ? e.add(
|
|
100
|
-
}), { booleanProps: e, numberProps: n, jsonProps:
|
|
96
|
+
function z(t) {
|
|
97
|
+
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), i = (t.__vccOpts || t).props;
|
|
98
|
+
return i && typeof i == "object" && Object.entries(i).forEach(([l, r]) => {
|
|
99
|
+
r === Boolean || r && r.type === Boolean ? e.add(l) : r === Number || r && r.type === Number ? n.add(l) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && c.add(l);
|
|
100
|
+
}), { booleanProps: e, numberProps: n, jsonProps: c };
|
|
101
101
|
}
|
|
102
102
|
function v(t, e) {
|
|
103
103
|
try {
|
|
@@ -108,12 +108,12 @@ function v(t, e) {
|
|
|
108
108
|
), null;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function N(t) {
|
|
112
112
|
const e = t.__name || t.name;
|
|
113
113
|
if (!e)
|
|
114
114
|
throw new Error("Component must have a __name or name property");
|
|
115
|
-
const n = C(t, O(e)), { booleanProps:
|
|
116
|
-
class
|
|
115
|
+
const n = C(t, O(e)), { booleanProps: c, numberProps: d, jsonProps: i } = z(t);
|
|
116
|
+
class l extends n {
|
|
117
117
|
_hiddenInput = null;
|
|
118
118
|
constructor() {
|
|
119
119
|
super(), this._parseAttributes();
|
|
@@ -129,30 +129,30 @@ function B(t) {
|
|
|
129
129
|
this._hiddenInput && (this._hiddenInput.value = a ?? "");
|
|
130
130
|
}
|
|
131
131
|
_parseAttributes() {
|
|
132
|
-
|
|
132
|
+
c.forEach((s) => {
|
|
133
133
|
const o = this.getAttribute(s);
|
|
134
134
|
this[s] = k(s, o);
|
|
135
|
-
}),
|
|
135
|
+
}), d.forEach((s) => {
|
|
136
136
|
const o = this.getAttribute(s);
|
|
137
|
-
o !== null && (this[s] =
|
|
137
|
+
o !== null && (this[s] = x(s, o));
|
|
138
138
|
}), i.forEach((s) => {
|
|
139
139
|
const o = this.getAttribute(s);
|
|
140
140
|
if (o !== null) {
|
|
141
|
-
const
|
|
142
|
-
|
|
141
|
+
const u = v(s, o);
|
|
142
|
+
u !== null && (this[s] = u);
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
const a = this.getAttribute("data-json-props");
|
|
146
146
|
a && a.split(",").map((o) => o.trim()).filter(Boolean).forEach((o) => {
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
if (
|
|
150
|
-
const f =
|
|
151
|
-
|
|
147
|
+
const u = o.replace(/-([a-z])/g, (f) => f[1].toUpperCase());
|
|
148
|
+
let p = this.getAttribute(o);
|
|
149
|
+
if (p === null) {
|
|
150
|
+
const f = u.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
151
|
+
p = this.getAttribute(f);
|
|
152
152
|
}
|
|
153
|
-
if (
|
|
154
|
-
const f = v(
|
|
155
|
-
f !== null && (this[
|
|
153
|
+
if (p !== null && !this[u]) {
|
|
154
|
+
const f = v(u, p);
|
|
155
|
+
f !== null && (this[u] = f);
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -162,16 +162,16 @@ function B(t) {
|
|
|
162
162
|
a && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = a, this.after(this._hiddenInput));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
return
|
|
165
|
+
return l;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function B(t) {
|
|
168
168
|
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
169
169
|
}
|
|
170
170
|
function D(t) {
|
|
171
171
|
const e = t.__name || t.name;
|
|
172
172
|
if (!e)
|
|
173
173
|
throw new Error("Component must have a __name or name property");
|
|
174
|
-
const n =
|
|
175
|
-
customElements.get(n) || customElements.define(n,
|
|
174
|
+
const n = B(e), c = N(t);
|
|
175
|
+
customElements.get(n) || customElements.define(n, c);
|
|
176
176
|
}
|
|
177
|
-
D(
|
|
177
|
+
D(P);
|