@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as I, getCurrentInstance as A, defineComponent as _, computed as y, createElementBlock as m, openBlock as
|
|
1
|
+
import { ref as I, getCurrentInstance as A, defineComponent as _, computed as y, createElementBlock as m, openBlock as c, normalizeClass as S, createElementVNode as w, normalizeStyle as k, createBlock as b, Fragment as $, createCommentVNode as v, toDisplayString as z, defineCustomElement as B } from "vue";
|
|
2
2
|
function O() {
|
|
3
3
|
const t = I(!1), n = A()?.root || {};
|
|
4
4
|
return "isCE" in n && n.isCE === !0 && (t.value = !0), t;
|
|
@@ -13,8 +13,8 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
13
13
|
const e = t, n = O(), s = I(null), r = y(() => ({
|
|
14
14
|
"pv-icon": !0,
|
|
15
15
|
[`pv-icon-${e.size}`]: j.includes(e.size)
|
|
16
|
-
})),
|
|
17
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, o) => (
|
|
16
|
+
})), l = y(() => n.value && s.value ? `${s.value}#${e.name}` : `#${e.name}`);
|
|
17
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, o) => (c(), m(
|
|
18
18
|
"svg",
|
|
19
19
|
{
|
|
20
20
|
"data-testid": "pv-icon",
|
|
@@ -22,7 +22,7 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
22
22
|
class: S(r.value)
|
|
23
23
|
},
|
|
24
24
|
[
|
|
25
|
-
w("use", { "xlink:href":
|
|
25
|
+
w("use", { "xlink:href": l.value }, null, 8, x)
|
|
26
26
|
],
|
|
27
27
|
2
|
|
28
28
|
/* CLASS */
|
|
@@ -46,7 +46,7 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
46
46
|
dark: "pv-spinner-dark",
|
|
47
47
|
white: "pv-spinner-light"
|
|
48
48
|
};
|
|
49
|
-
return (s, r) => (
|
|
49
|
+
return (s, r) => (c(), m(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
"data-testid": "pv-spinner",
|
|
@@ -58,14 +58,14 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
58
58
|
/* CLASS, STYLE */
|
|
59
59
|
));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), C = {
|
|
62
62
|
md: "pv-button-small",
|
|
63
63
|
lg: void 0,
|
|
64
64
|
xl: "pv-button-large"
|
|
65
|
-
},
|
|
65
|
+
}, N = (t) => t == null || !C.hasOwnProperty(t) ? null : C[t] || null, L = ["disabled"], R = {
|
|
66
66
|
key: 1,
|
|
67
67
|
"data-testid": "pv-button-label"
|
|
68
|
-
},
|
|
68
|
+
}, D = /* @__PURE__ */ _({
|
|
69
69
|
__name: "PvButton",
|
|
70
70
|
props: {
|
|
71
71
|
variant: { default: "primary", type: String },
|
|
@@ -78,38 +78,38 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
78
78
|
inverse: { type: Boolean, default: !1 }
|
|
79
79
|
},
|
|
80
80
|
setup(t) {
|
|
81
|
-
const e =
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
return
|
|
81
|
+
const e = ["ghost"], n = t, s = y(() => {
|
|
82
|
+
const r = [];
|
|
83
|
+
n.inverse && e.includes(n.variant) ? r.push(`pv-button-${n.variant}-inverse`) : r.push(`pv-button-${n.variant}`);
|
|
84
|
+
const l = N(n.size);
|
|
85
|
+
return l && r.push(l), r;
|
|
86
86
|
});
|
|
87
|
-
return (
|
|
87
|
+
return (r, l) => (c(), m("button", {
|
|
88
88
|
type: "button",
|
|
89
|
-
class: S(
|
|
89
|
+
class: S(s.value),
|
|
90
90
|
disabled: t.disabled,
|
|
91
91
|
"data-testid": "pv-button"
|
|
92
92
|
}, [
|
|
93
|
-
t.loading ? (
|
|
93
|
+
t.loading ? (c(), b(T, {
|
|
94
94
|
key: 0,
|
|
95
95
|
size: "sm"
|
|
96
|
-
})) : (
|
|
96
|
+
})) : (c(), m(
|
|
97
97
|
$,
|
|
98
98
|
{ key: 1 },
|
|
99
99
|
[
|
|
100
|
-
t.leftIcon ? (
|
|
100
|
+
t.leftIcon ? (c(), b(P, {
|
|
101
101
|
key: 0,
|
|
102
102
|
name: t.leftIcon,
|
|
103
103
|
"data-testid": "pv-button-left-icon"
|
|
104
104
|
}, null, 8, ["name"])) : v("v-if", !0),
|
|
105
|
-
t.label ? (
|
|
105
|
+
t.label ? (c(), m(
|
|
106
106
|
"span",
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
R,
|
|
108
|
+
z(t.label),
|
|
109
109
|
1
|
|
110
110
|
/* TEXT */
|
|
111
111
|
)) : v("v-if", !0),
|
|
112
|
-
t.rightIcon ? (
|
|
112
|
+
t.rightIcon ? (c(), b(P, {
|
|
113
113
|
key: 2,
|
|
114
114
|
name: t.rightIcon,
|
|
115
115
|
"data-testid": "pv-button-right-icon"
|
|
@@ -118,11 +118,11 @@ const j = [void 0, 10, 12, 20, 24, 32, 64], x = ["xlink:href"], P = /* @__PURE__
|
|
|
118
118
|
64
|
|
119
119
|
/* STABLE_FRAGMENT */
|
|
120
120
|
))
|
|
121
|
-
], 10,
|
|
121
|
+
], 10, L));
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
124
|
-
function
|
|
125
|
-
return !
|
|
123
|
+
}), V = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
124
|
+
function W(t) {
|
|
125
|
+
return !V.has(t);
|
|
126
126
|
}
|
|
127
127
|
function g(t, e) {
|
|
128
128
|
const n = document.querySelector('link[href*="' + e + '"]');
|
|
@@ -137,7 +137,7 @@ function g(t, e) {
|
|
|
137
137
|
}
|
|
138
138
|
return !1;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function H(t) {
|
|
141
141
|
if (!g(t, "pit-viper-v2")) {
|
|
142
142
|
if (g(t, "pit-viper")) {
|
|
143
143
|
g(t, "pit-viper-v2-scoped");
|
|
@@ -148,19 +148,19 @@ function M(t) {
|
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
151
|
+
const M = (t) => ({ shadowRoot: W(t) });
|
|
152
|
+
function G(t, e) {
|
|
153
153
|
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
154
154
|
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
155
155
|
), !1);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function J(t, e) {
|
|
158
158
|
const n = Number(e);
|
|
159
159
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(),
|
|
163
|
-
return
|
|
161
|
+
function q(t) {
|
|
162
|
+
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), l = (t.__vccOpts || t).props;
|
|
163
|
+
return l && typeof l == "object" && Object.entries(l).forEach(([d, o]) => {
|
|
164
164
|
o === Boolean || o && o.type === Boolean ? e.add(d) : o === Number || o && o.type === Number ? n.add(d) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && s.add(d);
|
|
165
165
|
}), { booleanProps: e, numberProps: n, jsonProps: s };
|
|
166
166
|
}
|
|
@@ -173,11 +173,11 @@ function E(t, e) {
|
|
|
173
173
|
), null;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function U(t) {
|
|
177
177
|
const e = t.__name || t.name;
|
|
178
178
|
if (!e)
|
|
179
179
|
throw new Error("Component must have a __name or name property");
|
|
180
|
-
const n =
|
|
180
|
+
const n = B(t, M(e)), { booleanProps: s, numberProps: r, jsonProps: l } = q(t);
|
|
181
181
|
class d extends n {
|
|
182
182
|
_hiddenInput = null;
|
|
183
183
|
constructor() {
|
|
@@ -196,11 +196,11 @@ function Z(t) {
|
|
|
196
196
|
_parseAttributes() {
|
|
197
197
|
s.forEach((i) => {
|
|
198
198
|
const a = this.getAttribute(i);
|
|
199
|
-
this[i] =
|
|
199
|
+
this[i] = G(i, a);
|
|
200
200
|
}), r.forEach((i) => {
|
|
201
201
|
const a = this.getAttribute(i);
|
|
202
|
-
a !== null && (this[i] =
|
|
203
|
-
}),
|
|
202
|
+
a !== null && (this[i] = J(i, a));
|
|
203
|
+
}), l.forEach((i) => {
|
|
204
204
|
const a = this.getAttribute(i);
|
|
205
205
|
if (a !== null) {
|
|
206
206
|
const p = E(i, a);
|
|
@@ -222,21 +222,21 @@ function Z(t) {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
connectedCallback() {
|
|
225
|
-
this._parseAttributes(), super.connectedCallback?.(),
|
|
225
|
+
this._parseAttributes(), super.connectedCallback?.(), H(this);
|
|
226
226
|
const u = this.getAttribute("name");
|
|
227
227
|
u && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = u, this.after(this._hiddenInput));
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
return d;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Z(t) {
|
|
233
233
|
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function F(t) {
|
|
236
236
|
const e = t.__name || t.name;
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("Component must have a __name or name property");
|
|
239
|
-
const n =
|
|
239
|
+
const n = Z(e), s = U(t);
|
|
240
240
|
customElements.get(n) || customElements.define(n, s);
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
F(D);
|