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