@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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  4. package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
  5. package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
  6. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
  7. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
  8. package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  16. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +0 -1
  17. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
  18. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
  19. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
  20. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
  21. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
  22. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
  23. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
  24. package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
  25. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
  26. package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
  27. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
  28. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
  29. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
  30. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
  31. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
  32. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
  33. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
  34. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
  35. package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
  36. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
  37. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
  38. package/pv-components/dist/web/pv-components.iife.js +50 -50
@@ -1,4 +1,4 @@
1
- import { ref as k, getCurrentInstance as w, defineComponent as v, computed as _, createElementBlock as m, openBlock as l, normalizeClass as b, createElementVNode as A, normalizeStyle as z, createBlock as g, Fragment as B, createCommentVNode as y, toDisplayString as $, createVNode as C, renderSlot as O, defineCustomElement as T } from "vue";
1
+ import { ref as k, getCurrentInstance as w, defineComponent as v, computed as _, createElementBlock as m, openBlock as c, normalizeClass as b, createElementVNode as A, normalizeStyle as z, createBlock as g, Fragment as B, createCommentVNode as y, toDisplayString as $, createVNode as C, renderSlot as O, defineCustomElement as T } from "vue";
2
2
  function j() {
3
3
  const e = k(!1), n = w()?.root || {};
4
4
  return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
@@ -13,8 +13,8 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
13
13
  const t = e, n = j(), s = k(null), r = _(() => ({
14
14
  "pv-icon": !0,
15
15
  [`pv-icon-${t.size}`]: x.includes(t.size)
16
- })), c = _(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.name}`);
17
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, o) => (l(), m(
16
+ })), i = _(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.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 x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
22
22
  class: b(r.value)
23
23
  },
24
24
  [
25
- A("use", { "xlink:href": c.value }, null, 8, N)
25
+ A("use", { "xlink:href": i.value }, null, 8, N)
26
26
  ],
27
27
  2
28
28
  /* CLASS */
@@ -46,7 +46,7 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
46
46
  dark: "pv-spinner-dark",
47
47
  white: "pv-spinner-light"
48
48
  };
49
- return (s, r) => (l(), m(
49
+ return (s, r) => (c(), m(
50
50
  "div",
51
51
  {
52
52
  "data-testid": "pv-spinner",
@@ -58,14 +58,14 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
58
58
  /* CLASS, STYLE */
59
59
  ));
60
60
  }
61
- }), L = ["ghost"], E = {
61
+ }), E = {
62
62
  md: "pv-button-small",
63
63
  lg: void 0,
64
64
  xl: "pv-button-large"
65
- }, R = (e) => e == null || !E.hasOwnProperty(e) ? null : E[e] || null, D = ["disabled"], W = {
65
+ }, L = (e) => e == null || !E.hasOwnProperty(e) ? null : E[e] || null, R = ["disabled"], D = {
66
66
  key: 1,
67
67
  "data-testid": "pv-button-label"
68
- }, H = /* @__PURE__ */ v({
68
+ }, W = /* @__PURE__ */ v({
69
69
  __name: "PvButton",
70
70
  props: {
71
71
  variant: { default: "primary", type: String },
@@ -78,38 +78,38 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
78
78
  inverse: { type: Boolean, default: !1 }
79
79
  },
80
80
  setup(e) {
81
- const t = e, n = _(() => {
82
- const s = [];
83
- t.inverse && L.includes(t.variant) ? s.push(`pv-button-${t.variant}-inverse`) : s.push(`pv-button-${t.variant}`);
84
- const r = R(t.size);
85
- return r && s.push(r), s;
81
+ const t = ["ghost"], n = e, s = _(() => {
82
+ const r = [];
83
+ n.inverse && t.includes(n.variant) ? r.push(`pv-button-${n.variant}-inverse`) : r.push(`pv-button-${n.variant}`);
84
+ const i = L(n.size);
85
+ return i && r.push(i), r;
86
86
  });
87
- return (s, r) => (l(), m("button", {
87
+ return (r, i) => (c(), m("button", {
88
88
  type: "button",
89
- class: b(n.value),
89
+ class: b(s.value),
90
90
  disabled: e.disabled,
91
91
  "data-testid": "pv-button"
92
92
  }, [
93
- e.loading ? (l(), g(V, {
93
+ e.loading ? (c(), g(V, {
94
94
  key: 0,
95
95
  size: "sm"
96
- })) : (l(), m(
96
+ })) : (c(), m(
97
97
  B,
98
98
  { key: 1 },
99
99
  [
100
- e.leftIcon ? (l(), g(P, {
100
+ e.leftIcon ? (c(), g(P, {
101
101
  key: 0,
102
102
  name: e.leftIcon,
103
103
  "data-testid": "pv-button-left-icon"
104
104
  }, null, 8, ["name"])) : y("v-if", !0),
105
- e.label ? (l(), m(
105
+ e.label ? (c(), m(
106
106
  "span",
107
- W,
107
+ D,
108
108
  $(e.label),
109
109
  1
110
110
  /* TEXT */
111
111
  )) : y("v-if", !0),
112
- e.rightIcon ? (l(), g(P, {
112
+ e.rightIcon ? (c(), g(P, {
113
113
  key: 2,
114
114
  name: e.rightIcon,
115
115
  "data-testid": "pv-button-right-icon"
@@ -118,9 +118,9 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
118
118
  64
119
119
  /* STABLE_FRAGMENT */
120
120
  ))
121
- ], 10, D));
121
+ ], 10, R));
122
122
  }
123
- }), M = { class: "pv-text-body-md" }, G = /* @__PURE__ */ v({
123
+ }), H = { class: "pv-text-body-md" }, M = /* @__PURE__ */ v({
124
124
  __name: "PvToast",
125
125
  props: {
126
126
  variant: { default: "info", type: String },
@@ -140,7 +140,7 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
140
140
  error: "alert-circle",
141
141
  dark: "ai"
142
142
  };
143
- return (s, r) => (l(), m(
143
+ return (s, r) => (c(), m(
144
144
  "div",
145
145
  {
146
146
  class: b(t[e.variant])
@@ -152,27 +152,27 @@ const x = [void 0, 10, 12, 20, 24, 32, 64], N = ["xlink:href"], P = /* @__PURE__
152
152
  }, null, 8, ["name"]),
153
153
  A(
154
154
  "p",
155
- M,
155
+ H,
156
156
  $(e.label),
157
157
  1
158
158
  /* TEXT */
159
159
  ),
160
160
  O(s.$slots, "default"),
161
- C(H, {
161
+ C(W, {
162
162
  variant: "ghost",
163
163
  inverse: e.variant === "dark",
164
164
  size: "lg",
165
165
  "left-icon": "close",
166
- onClick: r[0] || (r[0] = (c) => s.$emit("handle-close"))
166
+ onClick: r[0] || (r[0] = (i) => s.$emit("handle-close"))
167
167
  }, null, 8, ["inverse"])
168
168
  ],
169
169
  2
170
170
  /* CLASS */
171
171
  ));
172
172
  }
173
- }), J = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
174
- function q(e) {
175
- return !J.has(e);
173
+ }), G = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
174
+ function J(e) {
175
+ return !G.has(e);
176
176
  }
177
177
  function S(e, t) {
178
178
  const n = document.querySelector('link[href*="' + t + '"]');
@@ -187,7 +187,7 @@ function S(e, t) {
187
187
  }
188
188
  return !1;
189
189
  }
190
- function U(e) {
190
+ function q(e) {
191
191
  if (!S(e, "pit-viper-v2")) {
192
192
  if (S(e, "pit-viper")) {
193
193
  S(e, "pit-viper-v2-scoped");
@@ -198,19 +198,19 @@ function U(e) {
198
198
  );
199
199
  }
200
200
  }
201
- const Z = (e) => ({ shadowRoot: q(e) });
202
- function F(e, t) {
201
+ const U = (e) => ({ shadowRoot: J(e) });
202
+ function Z(e, t) {
203
203
  return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
204
204
  `Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
205
205
  ), !1);
206
206
  }
207
- function K(e, t) {
207
+ function F(e, t) {
208
208
  const n = Number(t);
209
209
  return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
210
210
  }
211
- function Q(e) {
212
- const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c = (e.__vccOpts || e).props;
213
- return c && typeof c == "object" && Object.entries(c).forEach(([d, o]) => {
211
+ function K(e) {
212
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = (e.__vccOpts || e).props;
213
+ return i && typeof i == "object" && Object.entries(i).forEach(([d, o]) => {
214
214
  o === Boolean || o && o.type === Boolean ? t.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);
215
215
  }), { booleanProps: t, numberProps: n, jsonProps: s };
216
216
  }
@@ -223,11 +223,11 @@ function I(e, t) {
223
223
  ), null;
224
224
  }
225
225
  }
226
- function X(e) {
226
+ function Q(e) {
227
227
  const t = e.__name || e.name;
228
228
  if (!t)
229
229
  throw new Error("Component must have a __name or name property");
230
- const n = T(e, Z(t)), { booleanProps: s, numberProps: r, jsonProps: c } = Q(e);
230
+ const n = T(e, U(t)), { booleanProps: s, numberProps: r, jsonProps: i } = K(e);
231
231
  class d extends n {
232
232
  _hiddenInput = null;
233
233
  constructor() {
@@ -244,23 +244,23 @@ function X(e) {
244
244
  this._hiddenInput && (this._hiddenInput.value = u ?? "");
245
245
  }
246
246
  _parseAttributes() {
247
- s.forEach((i) => {
248
- const a = this.getAttribute(i);
249
- this[i] = F(i, a);
250
- }), r.forEach((i) => {
251
- const a = this.getAttribute(i);
252
- a !== null && (this[i] = K(i, a));
253
- }), c.forEach((i) => {
254
- const a = this.getAttribute(i);
255
- if (a !== null) {
256
- const p = I(i, a);
257
- p !== null && (this[i] = p);
247
+ s.forEach((a) => {
248
+ const l = this.getAttribute(a);
249
+ this[a] = Z(a, l);
250
+ }), r.forEach((a) => {
251
+ const l = this.getAttribute(a);
252
+ l !== null && (this[a] = F(a, l));
253
+ }), i.forEach((a) => {
254
+ const l = this.getAttribute(a);
255
+ if (l !== null) {
256
+ const p = I(a, l);
257
+ p !== null && (this[a] = p);
258
258
  }
259
259
  });
260
260
  const u = this.getAttribute("data-json-props");
261
- u && u.split(",").map((a) => a.trim()).filter(Boolean).forEach((a) => {
262
- const p = a.replace(/-([a-z])/g, (f) => f[1].toUpperCase());
263
- let h = this.getAttribute(a);
261
+ u && u.split(",").map((l) => l.trim()).filter(Boolean).forEach((l) => {
262
+ const p = l.replace(/-([a-z])/g, (f) => f[1].toUpperCase());
263
+ let h = this.getAttribute(l);
264
264
  if (h === null) {
265
265
  const f = p.replace(/([A-Z])/g, "-$1").toLowerCase();
266
266
  h = this.getAttribute(f);
@@ -272,21 +272,21 @@ function X(e) {
272
272
  });
273
273
  }
274
274
  connectedCallback() {
275
- this._parseAttributes(), super.connectedCallback?.(), U(this);
275
+ this._parseAttributes(), super.connectedCallback?.(), q(this);
276
276
  const u = this.getAttribute("name");
277
277
  u && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = u, this.after(this._hiddenInput));
278
278
  }
279
279
  }
280
280
  return d;
281
281
  }
282
- function Y(e) {
282
+ function X(e) {
283
283
  return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
284
284
  }
285
- function ee(e) {
285
+ function Y(e) {
286
286
  const t = e.__name || e.name;
287
287
  if (!t)
288
288
  throw new Error("Component must have a __name or name property");
289
- const n = Y(t), s = X(e);
289
+ const n = X(t), s = Q(e);
290
290
  customElements.get(n) || customElements.define(n, s);
291
291
  }
292
- ee(G);
292
+ Y(M);