@turquoisehealth/pit-viper 2.122.1-dev.0 → 2.123.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-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-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-pagination-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-toast-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/PvButton/helpers.d.ts +0 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
- 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 +1 -6
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
- package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
- package/pv-components/dist/web/pv-components.iife.js +50 -50
|
@@ -7,10 +7,10 @@ const L = /* @__PURE__ */ g({
|
|
|
7
7
|
interactive: { type: Boolean, default: !1 }
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
|
-
const e = t, n = b(() => e.href ? "a" : e.interactive ? "button" : "div"),
|
|
11
|
-
return (
|
|
10
|
+
const e = t, n = b(() => e.href ? "a" : e.interactive ? "button" : "div"), r = b(() => e.href || e.interactive ? "button" : "div");
|
|
11
|
+
return (s, o) => (i(), v(x(n.value), {
|
|
12
12
|
href: t.href,
|
|
13
|
-
type:
|
|
13
|
+
type: r.value,
|
|
14
14
|
class: S([
|
|
15
15
|
"pv-card pv-inset-square-8 pv-inline-block",
|
|
16
16
|
{
|
|
@@ -20,7 +20,7 @@ const L = /* @__PURE__ */ g({
|
|
|
20
20
|
"data-testid": "pv-card"
|
|
21
21
|
}, {
|
|
22
22
|
default: $(() => [
|
|
23
|
-
A(
|
|
23
|
+
A(s.$slots, "default")
|
|
24
24
|
]),
|
|
25
25
|
_: 3
|
|
26
26
|
/* FORWARDED */
|
|
@@ -38,19 +38,19 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
38
38
|
size: { type: null }
|
|
39
39
|
},
|
|
40
40
|
setup(t) {
|
|
41
|
-
const e = t, n = N(),
|
|
41
|
+
const e = t, n = N(), r = w(null), s = b(() => ({
|
|
42
42
|
"pv-icon": !0,
|
|
43
43
|
[`pv-icon-${e.size}`]: D.includes(e.size)
|
|
44
|
-
})),
|
|
45
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (
|
|
44
|
+
})), o = b(() => n.value && r.value ? `${r.value}#${e.name}` : `#${e.name}`);
|
|
45
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (h, a) => (i(), p(
|
|
46
46
|
"svg",
|
|
47
47
|
{
|
|
48
48
|
"data-testid": "pv-icon",
|
|
49
49
|
"aria-hidden": "true",
|
|
50
|
-
class: S(
|
|
50
|
+
class: S(s.value)
|
|
51
51
|
},
|
|
52
52
|
[
|
|
53
|
-
k("use", { "xlink:href":
|
|
53
|
+
k("use", { "xlink:href": o.value }, null, 8, R)
|
|
54
54
|
],
|
|
55
55
|
2
|
|
56
56
|
/* CLASS */
|
|
@@ -74,7 +74,7 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
74
74
|
dark: "pv-spinner-dark",
|
|
75
75
|
white: "pv-spinner-light"
|
|
76
76
|
};
|
|
77
|
-
return (
|
|
77
|
+
return (r, s) => (i(), p(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
"data-testid": "pv-spinner",
|
|
@@ -86,14 +86,14 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
86
86
|
/* CLASS, STYLE */
|
|
87
87
|
));
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), I = {
|
|
90
90
|
md: "pv-button-small",
|
|
91
91
|
lg: void 0,
|
|
92
92
|
xl: "pv-button-large"
|
|
93
|
-
},
|
|
93
|
+
}, M = (t) => t == null || !I.hasOwnProperty(t) ? null : I[t] || null, W = ["disabled"], H = {
|
|
94
94
|
key: 1,
|
|
95
95
|
"data-testid": "pv-button-label"
|
|
96
|
-
},
|
|
96
|
+
}, G = /* @__PURE__ */ g({
|
|
97
97
|
__name: "PvButton",
|
|
98
98
|
props: {
|
|
99
99
|
variant: { default: "primary", type: String },
|
|
@@ -106,15 +106,15 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
106
106
|
inverse: { type: Boolean, default: !1 }
|
|
107
107
|
},
|
|
108
108
|
setup(t) {
|
|
109
|
-
const e =
|
|
109
|
+
const e = ["ghost"], n = t, r = b(() => {
|
|
110
110
|
const s = [];
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
return
|
|
111
|
+
n.inverse && e.includes(n.variant) ? s.push(`pv-button-${n.variant}-inverse`) : s.push(`pv-button-${n.variant}`);
|
|
112
|
+
const o = M(n.size);
|
|
113
|
+
return o && s.push(o), s;
|
|
114
114
|
});
|
|
115
|
-
return (s,
|
|
115
|
+
return (s, o) => (i(), p("button", {
|
|
116
116
|
type: "button",
|
|
117
|
-
class: S(
|
|
117
|
+
class: S(r.value),
|
|
118
118
|
disabled: t.disabled,
|
|
119
119
|
"data-testid": "pv-button"
|
|
120
120
|
}, [
|
|
@@ -132,7 +132,7 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
132
132
|
}, null, 8, ["name"])) : u("v-if", !0),
|
|
133
133
|
t.label ? (i(), p(
|
|
134
134
|
"span",
|
|
135
|
-
|
|
135
|
+
H,
|
|
136
136
|
y(t.label),
|
|
137
137
|
1
|
|
138
138
|
/* TEXT */
|
|
@@ -146,25 +146,25 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
146
146
|
64
|
|
147
147
|
/* STABLE_FRAGMENT */
|
|
148
148
|
))
|
|
149
|
-
], 10,
|
|
149
|
+
], 10, W));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), q = {
|
|
152
152
|
class: "pv-flex-vertical",
|
|
153
153
|
style: { "--flex-align": "flex-start", "--flex-gap": "0.25rem" }
|
|
154
|
-
},
|
|
154
|
+
}, J = {
|
|
155
155
|
key: 0,
|
|
156
156
|
class: "pv-flex",
|
|
157
157
|
style: { "--flex-gap": "0.25rem" }
|
|
158
|
-
},
|
|
158
|
+
}, U = { class: "pv-text-body-sm" }, Z = {
|
|
159
159
|
key: 1,
|
|
160
160
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
161
|
-
},
|
|
161
|
+
}, F = {
|
|
162
162
|
key: 2,
|
|
163
163
|
class: "pv-heading-2"
|
|
164
|
-
},
|
|
164
|
+
}, K = {
|
|
165
165
|
key: 3,
|
|
166
166
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
167
|
-
},
|
|
167
|
+
}, Q = /* @__PURE__ */ g({
|
|
168
168
|
__name: "PvInsightCard",
|
|
169
169
|
props: {
|
|
170
170
|
icon: { default: "ai", type: String },
|
|
@@ -178,15 +178,15 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
178
178
|
emits: ["click", "icon-click"],
|
|
179
179
|
setup(t) {
|
|
180
180
|
const e = t, n = b(() => e.icon || e.insight);
|
|
181
|
-
return (
|
|
181
|
+
return (r, s) => (i(), v(L, {
|
|
182
182
|
variant: "secondary",
|
|
183
183
|
interactive: t.interactive,
|
|
184
|
-
onClick:
|
|
184
|
+
onClick: s[1] || (s[1] = (o) => r.$emit("click")),
|
|
185
185
|
class: "pv-relative"
|
|
186
186
|
}, {
|
|
187
187
|
default: $(() => [
|
|
188
|
-
k("div",
|
|
189
|
-
n.value ? (i(), p("div",
|
|
188
|
+
k("div", q, [
|
|
189
|
+
n.value ? (i(), p("div", J, [
|
|
190
190
|
t.icon ? (i(), v(P, {
|
|
191
191
|
key: 0,
|
|
192
192
|
style: { color: "#218c88" },
|
|
@@ -195,7 +195,7 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
195
195
|
}, null, 8, ["name"])) : u("v-if", !0),
|
|
196
196
|
k(
|
|
197
197
|
"span",
|
|
198
|
-
|
|
198
|
+
U,
|
|
199
199
|
y(t.insight),
|
|
200
200
|
1
|
|
201
201
|
/* TEXT */
|
|
@@ -203,62 +203,62 @@ const D = [void 0, 10, 12, 20, 24, 32, 64], R = ["xlink:href"], P = /* @__PURE__
|
|
|
203
203
|
])) : u("v-if", !0),
|
|
204
204
|
t.upperLabel ? (i(), p(
|
|
205
205
|
"span",
|
|
206
|
-
|
|
206
|
+
Z,
|
|
207
207
|
y(t.upperLabel),
|
|
208
208
|
1
|
|
209
209
|
/* TEXT */
|
|
210
210
|
)) : u("v-if", !0),
|
|
211
211
|
t.title ? (i(), p(
|
|
212
212
|
"span",
|
|
213
|
-
|
|
213
|
+
F,
|
|
214
214
|
y(t.title),
|
|
215
215
|
1
|
|
216
216
|
/* TEXT */
|
|
217
217
|
)) : u("v-if", !0),
|
|
218
218
|
t.description ? (i(), p(
|
|
219
219
|
"span",
|
|
220
|
-
|
|
220
|
+
K,
|
|
221
221
|
y(t.description),
|
|
222
222
|
1
|
|
223
223
|
/* TEXT */
|
|
224
224
|
)) : u("v-if", !0)
|
|
225
225
|
]),
|
|
226
|
-
t.showButton ? (i(), v(
|
|
226
|
+
t.showButton ? (i(), v(G, {
|
|
227
227
|
key: 0,
|
|
228
228
|
"left-icon": "new-tab",
|
|
229
229
|
variant: "ghost",
|
|
230
230
|
size: "md",
|
|
231
231
|
class: "pv-insight-button",
|
|
232
|
-
onClick:
|
|
232
|
+
onClick: s[0] || (s[0] = j((o) => r.$emit("icon-click"), ["stop"]))
|
|
233
233
|
})) : u("v-if", !0)
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
/* STABLE */
|
|
237
237
|
}, 8, ["interactive"]));
|
|
238
238
|
}
|
|
239
|
-
}),
|
|
239
|
+
}), X = ".pv-insight-button[data-v-6e9399e6]{position:absolute;top:.5rem;right:.5rem}", Y = (t, e) => {
|
|
240
240
|
const n = t.__vccOpts || t;
|
|
241
|
-
for (const [
|
|
242
|
-
n[
|
|
241
|
+
for (const [r, s] of e)
|
|
242
|
+
n[r] = s;
|
|
243
243
|
return n;
|
|
244
|
-
},
|
|
245
|
-
function
|
|
246
|
-
return !
|
|
244
|
+
}, tt = /* @__PURE__ */ Y(Q, [["styles", [X]], ["__scopeId", "data-v-6e9399e6"]]), et = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
245
|
+
function nt(t) {
|
|
246
|
+
return !et.has(t);
|
|
247
247
|
}
|
|
248
248
|
function C(t, e) {
|
|
249
249
|
const n = document.querySelector('link[href*="' + e + '"]');
|
|
250
250
|
if (!t.shadowRoot)
|
|
251
251
|
return !1;
|
|
252
252
|
if (n && t.shadowRoot) {
|
|
253
|
-
const
|
|
254
|
-
if (t.shadowRoot.querySelector(`link[href="${
|
|
253
|
+
const r = n.href;
|
|
254
|
+
if (t.shadowRoot.querySelector(`link[href="${r}"]`))
|
|
255
255
|
return;
|
|
256
|
-
const
|
|
257
|
-
return
|
|
256
|
+
const s = document.createElement("link");
|
|
257
|
+
return s.rel = "stylesheet", s.href = r, t.shadowRoot.prepend(s), !0;
|
|
258
258
|
}
|
|
259
259
|
return !1;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function st(t) {
|
|
262
262
|
if (!C(t, "pit-viper-v2")) {
|
|
263
263
|
if (C(t, "pit-viper")) {
|
|
264
264
|
C(t, "pit-viper-v2-scoped");
|
|
@@ -269,21 +269,21 @@ function rt(t) {
|
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
function
|
|
272
|
+
const rt = (t) => ({ shadowRoot: nt(t) });
|
|
273
|
+
function it(t, e) {
|
|
274
274
|
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
275
275
|
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
276
276
|
), !1);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function ot(t, e) {
|
|
279
279
|
const n = Number(e);
|
|
280
280
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(),
|
|
284
|
-
return
|
|
285
|
-
|
|
286
|
-
}), { booleanProps: e, numberProps: n, jsonProps:
|
|
282
|
+
function at(t) {
|
|
283
|
+
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), o = (t.__vccOpts || t).props;
|
|
284
|
+
return o && typeof o == "object" && Object.entries(o).forEach(([h, a]) => {
|
|
285
|
+
a === Boolean || a && a.type === Boolean ? e.add(h) : a === Number || a && a.type === Number ? n.add(h) : (a === Object || a === Array || a && (a.type === Object || a.type === Array)) && r.add(h);
|
|
286
|
+
}), { booleanProps: e, numberProps: n, jsonProps: r };
|
|
287
287
|
}
|
|
288
288
|
function E(t, e) {
|
|
289
289
|
try {
|
|
@@ -294,11 +294,11 @@ function E(t, e) {
|
|
|
294
294
|
), null;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function lt(t) {
|
|
298
298
|
const e = t.__name || t.name;
|
|
299
299
|
if (!e)
|
|
300
300
|
throw new Error("Component must have a __name or name property");
|
|
301
|
-
const n = T(t,
|
|
301
|
+
const n = T(t, rt(e)), { booleanProps: r, numberProps: s, jsonProps: o } = at(t);
|
|
302
302
|
class h extends n {
|
|
303
303
|
_hiddenInput = null;
|
|
304
304
|
constructor() {
|
|
@@ -315,23 +315,23 @@ function ct(t) {
|
|
|
315
315
|
this._hiddenInput && (this._hiddenInput.value = d ?? "");
|
|
316
316
|
}
|
|
317
317
|
_parseAttributes() {
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
this[
|
|
321
|
-
}),
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
}),
|
|
325
|
-
const
|
|
326
|
-
if (
|
|
327
|
-
const f = E(
|
|
328
|
-
f !== null && (this[
|
|
318
|
+
r.forEach((l) => {
|
|
319
|
+
const c = this.getAttribute(l);
|
|
320
|
+
this[l] = it(l, c);
|
|
321
|
+
}), s.forEach((l) => {
|
|
322
|
+
const c = this.getAttribute(l);
|
|
323
|
+
c !== null && (this[l] = ot(l, c));
|
|
324
|
+
}), o.forEach((l) => {
|
|
325
|
+
const c = this.getAttribute(l);
|
|
326
|
+
if (c !== null) {
|
|
327
|
+
const f = E(l, c);
|
|
328
|
+
f !== null && (this[l] = f);
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
const d = this.getAttribute("data-json-props");
|
|
332
|
-
d && d.split(",").map((
|
|
333
|
-
const f =
|
|
334
|
-
let _ = this.getAttribute(
|
|
332
|
+
d && d.split(",").map((c) => c.trim()).filter(Boolean).forEach((c) => {
|
|
333
|
+
const f = c.replace(/-([a-z])/g, (m) => m[1].toUpperCase());
|
|
334
|
+
let _ = this.getAttribute(c);
|
|
335
335
|
if (_ === null) {
|
|
336
336
|
const m = f.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
337
337
|
_ = this.getAttribute(m);
|
|
@@ -343,21 +343,21 @@ function ct(t) {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
connectedCallback() {
|
|
346
|
-
this._parseAttributes(), super.connectedCallback?.(),
|
|
346
|
+
this._parseAttributes(), super.connectedCallback?.(), st(this);
|
|
347
347
|
const d = this.getAttribute("name");
|
|
348
348
|
d && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = d, this.after(this._hiddenInput));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
return h;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function ct(t) {
|
|
354
354
|
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function ut(t) {
|
|
357
357
|
const e = t.__name || t.name;
|
|
358
358
|
if (!e)
|
|
359
359
|
throw new Error("Component must have a __name or name property");
|
|
360
|
-
const n =
|
|
361
|
-
customElements.get(n) || customElements.define(n,
|
|
360
|
+
const n = ct(e), r = lt(t);
|
|
361
|
+
customElements.get(n) || customElements.define(n, r);
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
ut(tt);
|