@turquoisehealth/pit-viper 2.150.1-dev.0 → 2.151.1-dev.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 (37) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +21 -3
  2. package/_site/assets/css/pit-viper-consumer.css +25 -7
  3. package/_site/assets/css/pit-viper-v2-scoped.css +21 -3
  4. package/_site/assets/css/pit-viper-v2.css +21 -3
  5. package/_site/assets/css/pit-viper.css +21 -3
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-menu-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
  17. package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
  18. package/pv-components/dist/vue/base/components/base/PvAccordion/PvAccordion.vue.d.ts +1 -0
  19. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenu.vue.d.ts +15 -182
  20. package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +10 -0
  21. package/pv-components/dist/vue/base/components/base/index.d.ts +2 -0
  22. package/pv-components/dist/vue/base/pv-components-base.mjs +2411 -2418
  23. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  24. package/pv-components/dist/vue/visualizations/components/base/PvAccordion/PvAccordion.vue.d.ts +1 -0
  25. package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenu.vue.d.ts +15 -182
  26. package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +10 -0
  27. package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -0
  28. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2588 -2600
  29. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  30. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +59 -50
  31. package/pv-components/dist/web/components/pv-menu/pv-menu.js +6607 -0
  32. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1520 -1489
  33. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1146 -1180
  34. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1986 -1941
  35. package/pv-components/dist/web/components/pv-tree/pv-tree.js +149 -140
  36. package/pv-components/dist/web/pv-components.iife.js +49 -49
  37. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, computed as v, createElementBlock as g, openBlock as p, normalizeClass as P, toDisplayString as A, ref as $, getCurrentInstance as I, createElementVNode as h, mergeModels as x, useModel as O, normalizeStyle as B, createBlock as y, createCommentVNode as b, renderSlot as C, Fragment as j, defineCustomElement as z } from "vue";
1
+ import { defineComponent as S, computed as v, createElementBlock as y, openBlock as p, normalizeClass as P, toDisplayString as $, ref as k, getCurrentInstance as O, createElementVNode as h, mergeModels as x, useModel as j, normalizeStyle as w, createBlock as b, createCommentVNode as g, renderSlot as C, Fragment as B, defineCustomElement as z } from "vue";
2
2
  const N = /* @__PURE__ */ S({
3
3
  __name: "PvCounterBadge",
4
4
  props: {
@@ -9,7 +9,7 @@ const N = /* @__PURE__ */ S({
9
9
  maxValue: { default: 99, type: Number }
10
10
  },
11
11
  setup(e) {
12
- const t = e, n = v(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), o = v(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), s = v(() => ({
12
+ const t = e, n = v(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), s = v(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), o = v(() => ({
13
13
  "pv-inline-block pv-inset-square pv-radius pv-text-center": !0,
14
14
  "pv-badge-md pv-text-body-md": n.value == "md",
15
15
  "pv-badge-sm pv-text-body-sm": n.value == "sm",
@@ -19,25 +19,25 @@ const N = /* @__PURE__ */ S({
19
19
  "pv-text-secondary": t.variant == "ghost" || t.variant == "tertiary",
20
20
  "pv-surface": t.variant == "ghost"
21
21
  }));
22
- return (u, a) => (p(), g(
22
+ return (u, a) => (p(), y(
23
23
  "div",
24
24
  {
25
- class: P(s.value),
25
+ class: P(o.value),
26
26
  "data-testid": "pv-counter-badge"
27
27
  },
28
- A(o.value),
28
+ $(s.value),
29
29
  3
30
30
  /* TEXT, CLASS */
31
31
  ));
32
32
  }
33
- }), V = ".pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}", k = (e, t) => {
33
+ }), V = ".pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}", I = (e, t) => {
34
34
  const n = e.__vccOpts || e;
35
- for (const [o, s] of t)
36
- n[o] = s;
35
+ for (const [s, o] of t)
36
+ n[s] = o;
37
37
  return n;
38
- }, T = /* @__PURE__ */ k(N, [["styles", [V]], ["__scopeId", "data-v-fc3c1104"]]);
38
+ }, T = /* @__PURE__ */ I(N, [["styles", [V]], ["__scopeId", "data-v-fc3c1104"]]);
39
39
  function M() {
40
- const e = $(!1), n = I()?.root || {};
40
+ const e = k(!1), n = O()?.root || {};
41
41
  return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
42
42
  }
43
43
  const W = [void 0, 10, 12, 20, 24, 32, 64], L = ["xlink:href"], E = /* @__PURE__ */ S({
@@ -47,16 +47,16 @@ const W = [void 0, 10, 12, 20, 24, 32, 64], L = ["xlink:href"], E = /* @__PURE__
47
47
  size: { type: null }
48
48
  },
49
49
  setup(e) {
50
- const t = e, n = M(), o = $(null), s = v(() => ({
50
+ const t = e, n = M(), s = k(null), o = v(() => ({
51
51
  "pv-icon": !0,
52
52
  [`pv-icon-${t.size}`]: W.includes(t.size)
53
- })), u = v(() => n.value && o.value ? `${o.value}#${t.name}` : `#${t.name}`);
54
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (o.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (a, r) => (p(), g(
53
+ })), u = v(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.name}`);
54
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (a, r) => (p(), y(
55
55
  "svg",
56
56
  {
57
57
  "data-testid": "pv-icon",
58
58
  "aria-hidden": "true",
59
- class: P(s.value)
59
+ class: P(o.value)
60
60
  },
61
61
  [
62
62
  h("use", { "xlink:href": u.value }, null, 8, L)
@@ -76,75 +76,84 @@ const W = [void 0, 10, 12, 20, 24, 32, 64], L = ["xlink:href"], E = /* @__PURE__
76
76
  enableTriggerFullWidth: { type: Boolean, default: !1 },
77
77
  header: { type: String },
78
78
  summaryStyles: { type: Object },
79
- summaryClasses: { type: Object }
79
+ summaryClasses: { type: Object },
80
+ contentStyles: { type: Object }
80
81
  }, {
81
82
  modelValue: { type: Boolean },
82
83
  modelModifiers: {}
83
84
  }),
84
85
  emits: /* @__PURE__ */ x(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
85
86
  setup(e) {
86
- const t = e, n = O(e, "modelValue");
87
+ const t = e, n = j(e, "modelValue");
87
88
  t.defaultOpen !== void 0 && (n.value = t.defaultOpen);
88
- const o = (a) => {
89
+ const s = (a) => {
89
90
  const r = a.target;
90
91
  n.value = r.open;
91
- }, s = {
92
+ }, o = {
92
93
  width: t.enableTriggerFullWidth ? "100%" : "fit-content"
93
94
  }, u = v(() => t.chevronVariant === "horizontal" ? t.chevronPosition === "left" ? n.value ? "chevron-down" : "chevron-right" : n.value ? "chevron-down" : "chevron-left" : n.value ? "chevron-up" : "chevron-down");
94
- return (a, r) => (p(), g("details", {
95
+ return (a, r) => (p(), y("details", {
95
96
  "data-testid": "pv-accordion",
96
97
  class: "pv-accordion",
97
98
  open: n.value,
98
- onToggle: o
99
+ onToggle: s
99
100
  }, [
100
101
  h(
101
102
  "summary",
102
103
  {
103
- class: P(["pv-flex pv-relative", e.summaryClasses]),
104
- style: B({ ...s, ...e.summaryStyles }),
104
+ class: P(["pv-flex pv-space-between pv-relative", e.summaryClasses]),
105
+ style: w({ ...o, ...e.summaryStyles }),
105
106
  onMouseenter: r[0] || (r[0] = (c) => a.$emit("summary-mouseenter")),
106
107
  onMouseleave: r[1] || (r[1] = (c) => a.$emit("summary-mouseleave"))
107
108
  },
108
109
  [
109
- e.chevronPosition === "left" ? (p(), y(E, {
110
+ e.chevronPosition === "left" ? (p(), b(E, {
110
111
  key: 0,
111
112
  name: u.value
112
- }, null, 8, ["name"])) : b("v-if", !0),
113
- e.enableTriggerSlot ? C(a.$slots, "trigger", { key: 1 }, void 0, !0) : (p(), g(
114
- j,
113
+ }, null, 8, ["name"])) : g("v-if", !0),
114
+ e.enableTriggerSlot ? C(a.$slots, "trigger", { key: 1 }, void 0, !0) : (p(), y(
115
+ B,
115
116
  { key: 2 },
116
117
  [
117
118
  h(
118
119
  "span",
119
120
  null,
120
- A(e.header),
121
+ $(e.header),
121
122
  1
122
123
  /* TEXT */
123
124
  ),
124
- e.counter ? (p(), y(T, {
125
+ e.counter ? (p(), b(T, {
125
126
  key: 0,
126
127
  value: e.counter,
127
128
  variant: "secondary",
128
129
  size: "sm"
129
- }, null, 8, ["value"])) : b("v-if", !0)
130
+ }, null, 8, ["value"])) : g("v-if", !0)
130
131
  ],
131
132
  64
132
133
  /* STABLE_FRAGMENT */
133
134
  )),
134
- e.chevronPosition === "right" ? (p(), y(E, {
135
+ e.chevronPosition === "right" ? (p(), b(E, {
135
136
  key: 3,
136
137
  name: u.value
137
- }, null, 8, ["name"])) : b("v-if", !0)
138
+ }, null, 8, ["name"])) : g("v-if", !0)
138
139
  ],
139
140
  38
140
141
  /* CLASS, STYLE, NEED_HYDRATION */
141
142
  ),
142
- h("div", null, [
143
- C(a.$slots, "default", {}, void 0, !0)
144
- ])
143
+ h(
144
+ "div",
145
+ {
146
+ style: w(e.contentStyles)
147
+ },
148
+ [
149
+ C(a.$slots, "default", {}, void 0, !0)
150
+ ],
151
+ 4
152
+ /* STYLE */
153
+ )
145
154
  ], 40, R));
146
155
  }
147
- }), H = "summary[data-v-44e236cd]{background-image:none;padding-right:2px}", G = /* @__PURE__ */ k(D, [["styles", [H]], ["__scopeId", "data-v-44e236cd"]]), q = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
156
+ }), H = "summary[data-v-bb9613de]{background-image:none;padding-right:2px}", G = /* @__PURE__ */ I(D, [["styles", [H]], ["__scopeId", "data-v-bb9613de"]]), q = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
148
157
  function F(e) {
149
158
  return !q.has(e);
150
159
  }
@@ -153,11 +162,11 @@ function _(e, t) {
153
162
  if (!e.shadowRoot)
154
163
  return !1;
155
164
  if (n && e.shadowRoot) {
156
- const o = n.href;
157
- if (e.shadowRoot.querySelector(`link[href="${o}"]`))
165
+ const s = n.href;
166
+ if (e.shadowRoot.querySelector(`link[href="${s}"]`))
158
167
  return;
159
- const s = document.createElement("link");
160
- return s.rel = "stylesheet", s.href = o, e.shadowRoot.prepend(s), !0;
168
+ const o = document.createElement("link");
169
+ return o.rel = "stylesheet", o.href = s, e.shadowRoot.prepend(o), !0;
161
170
  }
162
171
  return !1;
163
172
  }
@@ -183,12 +192,12 @@ function K(e, t) {
183
192
  return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
184
193
  }
185
194
  function Q(e) {
186
- const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), u = (e.__vccOpts || e).props;
195
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), u = (e.__vccOpts || e).props;
187
196
  return u && typeof u == "object" && Object.entries(u).forEach(([a, r]) => {
188
- r === Boolean || r && r.type === Boolean ? t.add(a) : r === Number || r && r.type === Number ? n.add(a) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && o.add(a);
189
- }), { booleanProps: t, numberProps: n, jsonProps: o };
197
+ r === Boolean || r && r.type === Boolean ? t.add(a) : r === Number || r && r.type === Number ? n.add(a) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && s.add(a);
198
+ }), { booleanProps: t, numberProps: n, jsonProps: s };
190
199
  }
191
- function w(e, t) {
200
+ function A(e, t) {
192
201
  try {
193
202
  return JSON.parse(t);
194
203
  } catch (n) {
@@ -201,7 +210,7 @@ function X(e) {
201
210
  const t = e.__name || e.name;
202
211
  if (!t)
203
212
  throw new Error("Component must have a __name or name property");
204
- const n = z(e, U(t)), { booleanProps: o, numberProps: s, jsonProps: u } = Q(e);
213
+ const n = z(e, U(t)), { booleanProps: s, numberProps: o, jsonProps: u } = Q(e);
205
214
  class a extends n {
206
215
  _hiddenInput = null;
207
216
  constructor() {
@@ -218,16 +227,16 @@ function X(e) {
218
227
  this._hiddenInput && (this._hiddenInput.value = c ?? "");
219
228
  }
220
229
  _parseAttributes() {
221
- o.forEach((i) => {
230
+ s.forEach((i) => {
222
231
  const l = this.getAttribute(i);
223
232
  this[i] = Z(i, l);
224
- }), s.forEach((i) => {
233
+ }), o.forEach((i) => {
225
234
  const l = this.getAttribute(i);
226
235
  l !== null && (this[i] = K(i, l));
227
236
  }), u.forEach((i) => {
228
237
  const l = this.getAttribute(i);
229
238
  if (l !== null) {
230
- const d = w(i, l);
239
+ const d = A(i, l);
231
240
  d !== null && (this[i] = d);
232
241
  }
233
242
  });
@@ -240,7 +249,7 @@ function X(e) {
240
249
  f = this.getAttribute(m);
241
250
  }
242
251
  if (f !== null && !this[d]) {
243
- const m = w(d, f);
252
+ const m = A(d, f);
244
253
  m !== null && (this[d] = m);
245
254
  }
246
255
  });
@@ -260,7 +269,7 @@ function ee(e) {
260
269
  const t = e.__name || e.name;
261
270
  if (!t)
262
271
  throw new Error("Component must have a __name or name property");
263
- const n = Y(t), o = X(e);
264
- customElements.get(n) || customElements.define(n, o);
272
+ const n = Y(t), s = X(e);
273
+ customElements.get(n) || customElements.define(n, s);
265
274
  }
266
275
  ee(G);