@turquoisehealth/pit-viper 2.206.0 → 2.206.2

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/_site/assets/css/pit-viper-a11y.css +24 -0
  2. package/_site/assets/css/pit-viper-consumer.css +24 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +21 -0
  4. package/_site/assets/css/pit-viper-v2.css +43 -0
  5. package/_site/assets/css/pit-viper.css +24 -0
  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-avatar-group-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  15. package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
  16. package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
  17. package/pv-components/dist/vue/base/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +3 -1
  18. package/pv-components/dist/vue/base/components/base/PvAvatarGroup/types.d.ts +2 -0
  19. package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +2 -0
  20. package/pv-components/dist/vue/base/pv-components-base.mjs +977 -957
  21. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  22. package/pv-components/dist/vue/base/types.d.ts +1 -0
  23. package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/PvAvatarGroup.vue.d.ts +3 -1
  24. package/pv-components/dist/vue/visualizations/components/base/PvAvatarGroup/types.d.ts +2 -0
  25. package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +2 -0
  26. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +185 -168
  27. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  28. package/pv-components/dist/vue/visualizations/types.d.ts +1 -0
  29. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +31 -25
  30. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +167 -163
  31. package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +1 -1
  32. package/pv-components/dist/web/components/pv-header/pv-header.js +2 -2
  33. package/pv-components/dist/web/components/pv-menu/pv-menu.js +5 -2
  34. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +9 -11
  35. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +102 -87
  36. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +5 -2
  37. package/pv-components/dist/web/pv-components.iife.js +14 -14
  38. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -27,6 +27,7 @@ export interface MenuOption<T = unknown> {
27
27
  secondaryText?: number | string;
28
28
  subduedText?: string;
29
29
  icon?: string;
30
+ hoverTitle?: string;
30
31
  companyName?: string;
31
32
  avatar?: {
32
33
  initials?: string;
@@ -1,32 +1,38 @@
1
- import { Fragment as e, computed as t, createElementBlock as n, createTextVNode as r, defineComponent as i, defineCustomElement as a, getCurrentInstance as o, nextTick as s, onMounted as c, openBlock as l, reactive as u, readonly as d, ref as f, renderList as p, toDisplayString as m, watch as h } from "vue";
1
+ import { Fragment as e, computed as t, createElementBlock as n, createTextVNode as r, defineComponent as i, defineCustomElement as a, getCurrentInstance as o, nextTick as s, normalizeClass as c, onMounted as l, openBlock as u, reactive as d, readonly as f, ref as p, renderList as m, toDisplayString as h, watch as g } from "vue";
2
2
  //#region src/components/base/PvAvatarGroup/PvAvatarGroup.vue?vue&type=script&setup=true&lang.ts
3
- var g = ["data-more"], _ = ["src", "alt"], v = {
4
- key: 2,
5
- class: "pv-avatar-sm"
6
- }, y = /* @__PURE__ */ i({
3
+ var _ = ["data-more"], v = ["src", "alt"], y = /* @__PURE__ */ i({
7
4
  __name: "PvAvatarGroup",
8
5
  props: {
9
6
  items: { type: Array },
10
- maxDisplayed: { type: Number }
7
+ maxDisplayed: { type: Number },
8
+ size: { type: String }
11
9
  },
12
10
  setup(i) {
13
11
  let a = i, o = t(() => a.maxDisplayed >= 7 ? 7 : a.maxDisplayed), s = t(() => {
14
12
  let e = a.items.length - o.value;
15
13
  return e > 0 ? e : 0;
16
- });
17
- return (t, a) => (l(), n("ul", {
18
- class: "pv-avatar-group",
14
+ }), l = {
15
+ md: "pv-avatar-20",
16
+ lg: "pv-avatar-xs",
17
+ xl: "pv-avatar-sm",
18
+ xxl: "pv-avatar-md"
19
+ }, d = t(() => l[a.size ?? "xl"]);
20
+ return (t, a) => (u(), n("ul", {
21
+ class: c(["pv-avatar-group", i.size && i.size !== "xl" ? `pv-avatar-group-${i.size}` : ""]),
19
22
  role: "list",
20
23
  "data-more": s.value <= 0 ? void 0 : s.value,
21
24
  "data-testid": "pv-avatar-group"
22
- }, [(l(!0), n(e, null, p(i.items.slice(0, o.value), (t, i) => (l(), n("li", {
25
+ }, [(u(!0), n(e, null, m(i.items.slice(0, o.value), (t, i) => (u(), n("li", {
23
26
  key: i,
24
27
  "data-testid": "pv-avatar-group-item"
25
- }, [t.initials ? (l(), n(e, { key: 0 }, [r(m(t.initials), 1)], 64)) : t.image ? (l(), n("img", {
28
+ }, [t.initials ? (u(), n(e, { key: 0 }, [r(h(t.initials), 1)], 64)) : t.image ? (u(), n("img", {
26
29
  key: 1,
27
30
  src: t.image,
28
31
  alt: t.alt ?? ""
29
- }, null, 8, _)) : (l(), n("div", v))]))), 128))], 8, g));
32
+ }, null, 8, v)) : (u(), n("div", {
33
+ key: 2,
34
+ class: c(d.value)
35
+ }, null, 2))]))), 128))], 10, _));
30
36
  }
31
37
  }), b = Object.defineProperty, x = Object.getOwnPropertySymbols, S = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable, w = (e, t, n) => t in e ? b(e, t, {
32
38
  enumerable: !0,
@@ -754,14 +760,14 @@ function Pe(e, t) {
754
760
  }
755
761
  function Fe(e) {
756
762
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
757
- o() && o().components ? c(e) : t ? e() : s(e);
763
+ o() && o().components ? l(e) : t ? e() : s(e);
758
764
  }
759
765
  var Ie = 0;
760
766
  function Le(e) {
761
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = f(!1), r = f(e), i = f(null), a = se() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, p = u === void 0 ? !1 : u, m = t.name, g = m === void 0 ? `style_${++Ie}` : m, _ = t.id, v = _ === void 0 ? void 0 : _, y = t.media, b = y === void 0 ? void 0 : y, x = t.nonce, S = x === void 0 ? void 0 : x, C = t.first, w = C === void 0 ? !1 : C, T = t.onMounted, E = T === void 0 ? void 0 : T, D = t.onUpdated, O = D === void 0 ? void 0 : D, k = t.onLoad, A = k === void 0 ? void 0 : k, j = t.props, M = j === void 0 ? {} : j, N = function() {}, P = function(t) {
767
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = p(!1), r = p(e), i = p(null), a = se() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, m = t.name, h = m === void 0 ? `style_${++Ie}` : m, _ = t.id, v = _ === void 0 ? void 0 : _, y = t.media, b = y === void 0 ? void 0 : y, x = t.nonce, S = x === void 0 ? void 0 : x, C = t.first, w = C === void 0 ? !1 : C, T = t.onMounted, E = T === void 0 ? void 0 : T, D = t.onUpdated, O = D === void 0 ? void 0 : D, k = t.onLoad, A = k === void 0 ? void 0 : k, j = t.props, M = j === void 0 ? {} : j, N = function() {}, P = function(t) {
762
768
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
763
769
  if (s) {
764
- var o = je(je({}, M), a), c = o.name || g, l = o.id || v, u = o.nonce || S;
770
+ var o = je(je({}, M), a), c = o.name || h, l = o.id || v, u = o.nonce || S;
765
771
  i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, oe(i.value, {
766
772
  type: "text/css",
767
773
  id: l,
@@ -769,21 +775,21 @@ function Le(e) {
769
775
  nonce: u
770
776
  }), w ? s.head.prepend(i.value) : s.head.appendChild(i.value), ce(i.value, "data-primevue-style-id", c), oe(i.value, o), i.value.onload = function(e) {
771
777
  return A?.(e, { name: c });
772
- }, E?.(c)), !n.value && (N = h(r, function(e) {
778
+ }, E?.(c)), !n.value && (N = g(r, function(e) {
773
779
  i.value.textContent = e, O?.(c);
774
780
  }, { immediate: !0 }), n.value = !0);
775
781
  }
776
782
  };
777
- return l && !p && Fe(P), {
783
+ return l && !d && Fe(P), {
778
784
  id: v,
779
- name: g,
785
+ name: h,
780
786
  el: i,
781
787
  css: r,
782
788
  unload: function() {
783
789
  !s || !n.value || (N(), ie(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
784
790
  },
785
791
  load: P,
786
- isLoaded: d(n)
792
+ isLoaded: f(n)
787
793
  };
788
794
  }
789
795
  //#endregion
@@ -1261,7 +1267,7 @@ var ot = {
1261
1267
  csp: { nonce: void 0 }
1262
1268
  }, st = Symbol();
1263
1269
  function ct(e, t) {
1264
- var n = { config: u(t) };
1270
+ var n = { config: d(t) };
1265
1271
  return e.config.globalProperties.$primevue = n, e.provide(st, n), lt(), ut(e, n), n;
1266
1272
  }
1267
1273
  var Q = [];
@@ -1271,7 +1277,7 @@ function lt() {
1271
1277
  }), Q = [];
1272
1278
  }
1273
1279
  function ut(e, t) {
1274
- var n = f(!1), r = function() {
1280
+ var n = p(!1), r = function() {
1275
1281
  if (t.config?.theme !== "none" && !q.isStyleNameLoaded("common")) {
1276
1282
  var e, n = X.getCommonTheme?.call(X) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
1277
1283
  X.load(r?.css, nt({ name: "primitive-variables" }, s)), X.load(i?.css, nt({ name: "semantic-variables" }, s)), X.load(a?.css, nt({ name: "global-variables" }, s)), X.loadStyle(nt({ name: "global-style" }, s), o), q.setLoadedStyleName("common");
@@ -1280,7 +1286,7 @@ function ut(e, t) {
1280
1286
  V.on("theme:change", function(t) {
1281
1287
  n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
1282
1288
  });
1283
- var i = h(t.config, function(e, t) {
1289
+ var i = g(t.config, function(e, t) {
1284
1290
  et.emit("config:change", {
1285
1291
  newValue: e,
1286
1292
  oldValue: t
@@ -1288,7 +1294,7 @@ function ut(e, t) {
1288
1294
  }, {
1289
1295
  immediate: !0,
1290
1296
  deep: !0
1291
- }), a = h(function() {
1297
+ }), a = g(function() {
1292
1298
  return t.config.ripple;
1293
1299
  }, function(e, t) {
1294
1300
  et.emit("config:ripple:change", {
@@ -1298,7 +1304,7 @@ function ut(e, t) {
1298
1304
  }, {
1299
1305
  immediate: !0,
1300
1306
  deep: !0
1301
- }), o = h(function() {
1307
+ }), o = g(function() {
1302
1308
  return t.config.theme;
1303
1309
  }, function(e, i) {
1304
1310
  n.value || q.setTheme(e), t.config.unstyled || r(), n.value = !1, et.emit("config:theme:change", {
@@ -1308,7 +1314,7 @@ function ut(e, t) {
1308
1314
  }, {
1309
1315
  immediate: !0,
1310
1316
  deep: !1
1311
- }), s = h(function() {
1317
+ }), s = g(function() {
1312
1318
  return t.config.unstyled;
1313
1319
  }, function(e, n) {
1314
1320
  !e && t.config.theme && r(), et.emit("config:unstyled:change", {