@turquoisehealth/pit-viper 2.238.1-dev.0 → 2.239.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 (58) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +1 -1
  2. package/_site/assets/css/pit-viper-consumer.css +1 -1
  3. package/_site/assets/css/pit-viper-v2-scoped.css +1 -1
  4. package/_site/assets/css/pit-viper-v2.css +1 -1
  5. package/_site/assets/css/pit-viper.css +1 -1
  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-dropdown-stats.html +1 -1
  10. package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
  11. package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
  12. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
  13. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
  14. package/pv-components/dist/stats/web/pv-popover-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/stats/web/pv-tabs-stats.html +1 -1
  18. package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +1 -9
  19. package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +0 -8
  20. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +1 -21
  21. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +6 -0
  22. package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
  23. package/pv-components/dist/vue/ai/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
  24. package/pv-components/dist/vue/ai/components/base/PvTabs/types.d.ts +5 -0
  25. package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +1 -9
  26. package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +0 -8
  27. package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +1 -21
  28. package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +6 -0
  29. package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
  30. package/pv-components/dist/vue/base/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
  31. package/pv-components/dist/vue/base/components/base/PvTabs/types.d.ts +5 -0
  32. package/pv-components/dist/vue/base/pv-components-base.mjs +1901 -1945
  33. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  34. package/pv-components/dist/vue/base/types.d.ts +0 -4
  35. package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +1 -9
  36. package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +0 -8
  37. package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +1 -21
  38. package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/QueryBuilderMenuOptionRenderer.vue.d.ts +6 -0
  39. package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
  40. package/pv-components/dist/vue/visualizations/components/base/PvTabs/PvTabs.vue.d.ts +2 -0
  41. package/pv-components/dist/vue/visualizations/components/base/PvTabs/types.d.ts +5 -0
  42. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +1 -0
  43. package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +1 -9
  44. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +1 -9
  45. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1632 -1685
  46. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  47. package/pv-components/dist/vue/visualizations/types.d.ts +0 -4
  48. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +933 -947
  49. package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +841 -888
  50. package/pv-components/dist/web/components/pv-menu/pv-menu.js +1458 -1505
  51. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1710 -1757
  52. package/pv-components/dist/web/components/pv-popover/pv-popover.js +938 -952
  53. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +930 -944
  54. package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1641 -1702
  55. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1649 -1696
  56. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +22 -12
  57. package/pv-components/dist/web/pv-components.iife.js +36 -36
  58. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -76,7 +76,12 @@ var C = [
76
76
  class: f(s.value)
77
77
  }, [a("use", { "xlink:href": c.value }, null, 8, w)], 2));
78
78
  }
79
- }), E = ["data-active", "onClick"], D = { type: "button" }, O = /* @__PURE__ */ s({
79
+ }), E = [
80
+ "data-active",
81
+ "data-type",
82
+ "data-testid",
83
+ "onClick"
84
+ ], D = { type: "button" }, O = /* @__PURE__ */ s({
80
85
  __name: "PvTabs",
81
86
  props: /* @__PURE__ */ u({
82
87
  tabs: { type: Array },
@@ -88,12 +93,16 @@ var C = [
88
93
  modelValue: { required: !0 },
89
94
  modelModifiers: {}
90
95
  }),
91
- emits: ["update:modelValue"],
92
- setup(t) {
93
- let s = y(t, "modelValue"), c = (e) => {
94
- s.value = e;
95
- }, l = (e) => e.label === s.value ? !0 : null;
96
- return (s, u) => (m(), i("ul", {
96
+ emits: /* @__PURE__ */ u(["add-button-click"], ["update:modelValue"]),
97
+ setup(t, { emit: s }) {
98
+ let c = s, l = y(t, "modelValue"), u = (e) => e.value ?? e.label, d = (e) => {
99
+ if (e.type === "addButton") {
100
+ c("add-button-click", u(e));
101
+ return;
102
+ }
103
+ l.value = u(e);
104
+ }, p = (e) => e.type !== "addButton" && u(e) === l.value ? !0 : null;
105
+ return (s, c) => (m(), i("ul", {
97
106
  "data-testid": "pv-tabs",
98
107
  role: "list",
99
108
  class: f({
@@ -101,11 +110,12 @@ var C = [
101
110
  "pv-tab-list": t.size === "xl"
102
111
  })
103
112
  }, [(m(!0), i(e, null, _(t.tabs, (e) => (m(), i("li", {
104
- key: e.label,
105
- "data-active": l(e),
106
- "data-testid": "pv-tab",
113
+ key: u(e),
114
+ "data-active": p(e),
115
+ "data-type": e.type === "addButton" ? "add-button" : null,
116
+ "data-testid": e.type === "addButton" ? "pv-tab-add-button" : "pv-tab",
107
117
  type: "button",
108
- onClick: () => c(e.label)
118
+ onClick: () => d(e)
109
119
  }, [a("button", D, [
110
120
  e.icon ? (m(), n(T, {
111
121
  key: 0,
@@ -115,7 +125,7 @@ var C = [
115
125
  e.counter ? (m(), n(x, {
116
126
  key: 1,
117
127
  value: e.counter,
118
- variant: l(e) ? "primary" : "tertiary",
128
+ variant: p(e) ? "primary" : "tertiary",
119
129
  size: "sm"
120
130
  }, null, 8, ["value", "variant"])) : r("v-if", !0)
121
131
  ])], 8, E))), 128))], 2));