@turquoisehealth/pit-viper 2.122.0 → 2.122.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 (129) hide show
  1. package/package.json +43 -13
  2. package/pv-components/dist/stats/vue/base/stats.html +4949 -0
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
  4. package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
  5. package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
  6. package/pv-components/dist/stats/web/pv-ai-button-stats.html +4949 -0
  7. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
  8. package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
  9. package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
  10. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
  12. package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
  13. package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
  14. package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
  15. package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
  16. package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
  17. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
  18. package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
  19. package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
  20. package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +4949 -0
  21. package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
  22. package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
  23. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
  24. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
  25. package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
  26. package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
  27. package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
  28. package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
  29. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
  30. package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
  31. package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
  32. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
  33. package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
  34. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
  35. package/pv-components/dist/stats/web/pv-progress-bar-stats.html +4949 -0
  36. package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
  37. package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
  38. package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
  39. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
  40. package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
  41. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
  42. package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
  43. package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
  44. package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
  45. package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
  46. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
  47. package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
  48. package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
  49. package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
  50. package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
  51. package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
  52. package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
  53. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
  54. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
  55. package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
  56. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
  57. package/pv-components/dist/stats/web/pv-tree-stats.html +4949 -0
  58. package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
  59. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +1 -0
  60. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +6 -0
  61. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +206 -289
  62. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +31 -0
  63. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +0 -1
  64. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +6 -1
  65. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +20 -177
  66. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -9
  67. package/pv-components/dist/vue/base/pv-components-base.mjs +4943 -11629
  68. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4791 -10741
  69. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +265 -0
  70. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +134 -0
  71. package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +225 -0
  72. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +164 -0
  73. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +170 -0
  74. package/pv-components/dist/web/components/pv-banner/pv-banner.js +224 -0
  75. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +160 -0
  76. package/pv-components/dist/web/components/pv-button/pv-button.js +242 -0
  77. package/pv-components/dist/web/components/pv-card/pv-card.js +148 -0
  78. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +145 -0
  79. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +221 -0
  80. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +192 -0
  81. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +274 -0
  82. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +157 -0
  83. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7550 -0
  84. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +645 -0
  85. package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -0
  86. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +556 -0
  87. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1792 -0
  88. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +304 -0
  89. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +320 -0
  90. package/pv-components/dist/web/components/pv-icon/pv-icon.js +150 -0
  91. package/pv-components/dist/web/components/pv-input/pv-input.js +191 -0
  92. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +363 -0
  93. package/pv-components/dist/web/components/pv-modal/pv-modal.js +186 -0
  94. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +8326 -0
  95. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +355 -0
  96. package/pv-components/dist/web/components/pv-pill/pv-pill.js +229 -0
  97. package/pv-components/dist/web/components/pv-popover/pv-popover.js +1485 -0
  98. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1507 -0
  99. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1573 -0
  100. package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +156 -0
  101. package/pv-components/dist/web/components/pv-rating/pv-rating.js +146 -0
  102. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +142 -0
  103. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +238 -0
  104. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +214 -0
  105. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +8093 -0
  106. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +153 -0
  107. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +148 -0
  108. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1593 -0
  109. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +151 -0
  110. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +150 -0
  111. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +195 -0
  112. package/pv-components/dist/web/components/pv-switch/pv-switch.js +162 -0
  113. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +168 -0
  114. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +248 -0
  115. package/pv-components/dist/web/components/pv-tag/pv-tag.js +210 -0
  116. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +188 -0
  117. package/pv-components/dist/web/components/pv-toast/pv-toast.js +292 -0
  118. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +208 -0
  119. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +7479 -0
  120. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +158 -0
  121. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +7409 -0
  122. package/pv-components/dist/web/components/pv-tree/pv-tree.js +5107 -0
  123. package/pv-components/dist/web/components/pv-widget/pv-widget.js +159 -0
  124. package/pv-components/dist/web/pv-components.iife.js +50 -50
  125. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
  126. package/pv-components/dist/vue/base/pv-components-base.js +0 -1555
  127. package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1555
  128. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -185
  129. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -185
@@ -0,0 +1,186 @@
1
+ import { defineComponent as w, mergeModels as E, useTemplateRef as A, useModel as S, watch as O, createElementBlock as h, openBlock as m, createElementVNode as b, createCommentVNode as y, renderSlot as g, toDisplayString as C, defineCustomElement as P } from "vue";
2
+ const k = ["closedby"], I = { class: "pv-inset-squish-12" }, j = {
3
+ class: "pv-flex pv-flex-vertical pv-stack-16",
4
+ style: { "--flex-align": "flex-start" }
5
+ }, $ = { class: "pv-heading-3" }, N = {
6
+ key: 0,
7
+ class: "pv-text-body-md"
8
+ }, B = {
9
+ key: 0,
10
+ class: "pv-inset-squish-12 pv-border-top",
11
+ style: { "--color-border": "#d2d8dc" }
12
+ }, M = /* @__PURE__ */ w({
13
+ __name: "PvModal",
14
+ props: /* @__PURE__ */ E({
15
+ header: { type: String },
16
+ subheader: { type: String },
17
+ disableCloseOnClickOutside: { type: Boolean, default: !1 },
18
+ hideFooter: { type: Boolean, default: !1 }
19
+ }, {
20
+ modelValue: { type: Boolean, required: !0 },
21
+ modelModifiers: {}
22
+ }),
23
+ emits: ["update:modelValue"],
24
+ setup(e) {
25
+ const t = e, s = A("dialog"), o = S(e, "modelValue");
26
+ O(
27
+ () => o.value,
28
+ () => {
29
+ o.value ? s.value?.showModal() : s.value?.close();
30
+ }
31
+ );
32
+ const a = () => {
33
+ t.disableCloseOnClickOutside || (o.value = !1);
34
+ };
35
+ return (l, d) => (m(), h("dialog", {
36
+ class: "pv-modal-sm",
37
+ ref_key: "dialog",
38
+ ref: s,
39
+ closedby: e.disableCloseOnClickOutside ? void 0 : "any",
40
+ style: { "--max-width": "480px" },
41
+ onClose: a
42
+ }, [
43
+ b("div", I, [
44
+ b("div", j, [
45
+ b(
46
+ "span",
47
+ $,
48
+ C(e.header),
49
+ 1
50
+ /* TEXT */
51
+ ),
52
+ e.subheader ? (m(), h(
53
+ "span",
54
+ N,
55
+ C(e.subheader),
56
+ 1
57
+ /* TEXT */
58
+ )) : y("v-if", !0)
59
+ ]),
60
+ g(l.$slots, "body")
61
+ ]),
62
+ e.hideFooter ? y("v-if", !0) : (m(), h("div", B, [
63
+ g(l.$slots, "footer")
64
+ ]))
65
+ ], 40, k));
66
+ }
67
+ }), x = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
68
+ function D(e) {
69
+ return !x.has(e);
70
+ }
71
+ function v(e, t) {
72
+ const s = document.querySelector('link[href*="' + t + '"]');
73
+ if (!e.shadowRoot)
74
+ return !1;
75
+ if (s && e.shadowRoot) {
76
+ const o = s.href;
77
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
78
+ return;
79
+ const a = document.createElement("link");
80
+ return a.rel = "stylesheet", a.href = o, e.shadowRoot.prepend(a), !0;
81
+ }
82
+ return !1;
83
+ }
84
+ function R(e) {
85
+ if (!v(e, "pit-viper-v2")) {
86
+ if (v(e, "pit-viper")) {
87
+ v(e, "pit-viper-v2-scoped");
88
+ return;
89
+ }
90
+ console.warn(
91
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
92
+ );
93
+ }
94
+ }
95
+ const q = (e) => ({ shadowRoot: D(e) });
96
+ function V(e, t) {
97
+ return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
98
+ `Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
99
+ ), !1);
100
+ }
101
+ function J(e, t) {
102
+ const s = Number(t);
103
+ return isNaN(s) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), s;
104
+ }
105
+ function L(e) {
106
+ const t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), l = (e.__vccOpts || e).props;
107
+ return l && typeof l == "object" && Object.entries(l).forEach(([d, n]) => {
108
+ n === Boolean || n && n.type === Boolean ? t.add(d) : n === Number || n && n.type === Number ? s.add(d) : (n === Object || n === Array || n && (n.type === Object || n.type === Array)) && o.add(d);
109
+ }), { booleanProps: t, numberProps: s, jsonProps: o };
110
+ }
111
+ function _(e, t) {
112
+ try {
113
+ return JSON.parse(t);
114
+ } catch (s) {
115
+ return console.warn(
116
+ `Invalid JSON attribute value for "${e}": "${t}". Error: ${s instanceof Error ? s.message : String(s)}`
117
+ ), null;
118
+ }
119
+ }
120
+ function T(e) {
121
+ const t = e.__name || e.name;
122
+ if (!t)
123
+ throw new Error("Component must have a __name or name property");
124
+ const s = P(e, q(t)), { booleanProps: o, numberProps: a, jsonProps: l } = L(e);
125
+ class d extends s {
126
+ _hiddenInput = null;
127
+ constructor() {
128
+ super(), this._parseAttributes();
129
+ }
130
+ disconnectedCallback() {
131
+ this._hiddenInput?.remove(), super.disconnectedCallback?.();
132
+ }
133
+ /**
134
+ * Update the hidden input value
135
+ * Call this from the Vue component to sync form value
136
+ */
137
+ setHiddenInputValue(c) {
138
+ this._hiddenInput && (this._hiddenInput.value = c ?? "");
139
+ }
140
+ _parseAttributes() {
141
+ o.forEach((r) => {
142
+ const i = this.getAttribute(r);
143
+ this[r] = V(r, i);
144
+ }), a.forEach((r) => {
145
+ const i = this.getAttribute(r);
146
+ i !== null && (this[r] = J(r, i));
147
+ }), l.forEach((r) => {
148
+ const i = this.getAttribute(r);
149
+ if (i !== null) {
150
+ const u = _(r, i);
151
+ u !== null && (this[r] = u);
152
+ }
153
+ });
154
+ const c = this.getAttribute("data-json-props");
155
+ c && c.split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => {
156
+ const u = i.replace(/-([a-z])/g, (f) => f[1].toUpperCase());
157
+ let p = this.getAttribute(i);
158
+ if (p === null) {
159
+ const f = u.replace(/([A-Z])/g, "-$1").toLowerCase();
160
+ p = this.getAttribute(f);
161
+ }
162
+ if (p !== null && !this[u]) {
163
+ const f = _(u, p);
164
+ f !== null && (this[u] = f);
165
+ }
166
+ });
167
+ }
168
+ connectedCallback() {
169
+ this._parseAttributes(), super.connectedCallback?.(), R(this);
170
+ const c = this.getAttribute("name");
171
+ c && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = c, this.after(this._hiddenInput));
172
+ }
173
+ }
174
+ return d;
175
+ }
176
+ function W(e) {
177
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
178
+ }
179
+ function F(e) {
180
+ const t = e.__name || e.name;
181
+ if (!t)
182
+ throw new Error("Component must have a __name or name property");
183
+ const s = W(t), o = T(e);
184
+ customElements.get(s) || customElements.define(s, o);
185
+ }
186
+ F(M);