@turquoisehealth/pit-viper 2.104.2-dev.0 → 2.105.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/_site/assets/css/pit-viper-v2-scoped.css +0 -19
- package/_site/assets/css/pit-viper-v2.css +0 -21
- package/_site/assets/css/pit-viper.css +0 -21
- package/_site/assets/js/pit-viper.js +133 -0
- package/package.json +11 -38
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -3
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +0 -1
- package/pv-components/dist/vue/base/components/base/PvTooltipV2/types.d.ts +1 -2
- package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.js +1546 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +6653 -4387
- package/pv-components/dist/vue/base/pv-components-base.umd.js +1546 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +176 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +5920 -3407
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +176 -0
- package/pv-components/dist/web/pv-components.iife.js +31 -31
- package/pv-components/dist/stats/vue/base/stats.html +0 -4949
- package/pv-components/dist/stats/vue/visualizations/stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-accordion-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-action-bar-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-avatar-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-banner-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-button-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-card-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-company-label-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-company-logo-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-company-tag-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-date-time-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-drawer-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-icon-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-input-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-modal-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-pagination-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-pill-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-popover-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-rating-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-release-badge-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-search-input-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-select-button-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-selectable-card-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-side-panel-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-spinner-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-sprite-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-switch-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-tabs-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-tag-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-text-area-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-toast-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +0 -4949
- package/pv-components/dist/stats/web/pv-widget-stats.html +0 -4949
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +0 -186
- package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +0 -66
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +0 -96
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +0 -102
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +0 -155
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +0 -92
- package/pv-components/dist/web/components/pv-button/pv-button.js +0 -173
- package/pv-components/dist/web/components/pv-card/pv-card.js +0 -80
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +0 -77
- package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +0 -153
- package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +0 -124
- package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +0 -204
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +0 -89
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +0 -7481
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +0 -577
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +0 -486
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +0 -1724
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +0 -235
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +0 -251
- package/pv-components/dist/web/components/pv-icon/pv-icon.js +0 -81
- package/pv-components/dist/web/components/pv-input/pv-input.js +0 -123
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +0 -293
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +0 -118
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +0 -2752
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +0 -286
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +0 -160
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +0 -1417
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +0 -1439
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +0 -1421
- package/pv-components/dist/web/components/pv-rating/pv-rating.js +0 -78
- package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +0 -74
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +0 -170
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +0 -145
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +0 -2563
- package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +0 -85
- package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +0 -80
- package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +0 -1525
- package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +0 -83
- package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +0 -82
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +0 -126
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +0 -94
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +0 -100
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +0 -178
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +0 -141
- package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +0 -120
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +0 -223
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +0 -139
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +0 -2887
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +0 -90
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +0 -1489
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +0 -91
- package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +0 -7
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as C, computed as h, onMounted as x, getCurrentInstance as V, createElementBlock as u, openBlock as r, normalizeClass as S, createElementVNode as b, normalizeStyle as N, createBlock as v, Fragment as z, createCommentVNode as f, toDisplayString as y, mergeModels as A, useModel as B, createVNode as w, renderList as M, unref as D, defineCustomElement as O } from "vue";
|
|
2
|
-
const R = [void 0, 10, 12, 20, 24, 32, 64], L = ["xlink:href"], $ = /* @__PURE__ */ m({
|
|
3
|
-
__name: "PvIcon",
|
|
4
|
-
props: {
|
|
5
|
-
name: { type: String },
|
|
6
|
-
size: { type: null }
|
|
7
|
-
},
|
|
8
|
-
setup(e) {
|
|
9
|
-
const a = e, o = C(!1), n = C(null), t = h(() => ({
|
|
10
|
-
"pv-icon": !0,
|
|
11
|
-
[`pv-icon-${a.size}`]: R.includes(a.size)
|
|
12
|
-
})), l = h(() => o.value && n.value ? `${n.value}#${a.name}` : `#${a.name}`);
|
|
13
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (n.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), x(() => {
|
|
14
|
-
const s = V()?.root;
|
|
15
|
-
o.value = s && "isCE" in s && s.isCE;
|
|
16
|
-
}), (s, p) => (r(), u(
|
|
17
|
-
"svg",
|
|
18
|
-
{
|
|
19
|
-
"data-testid": "pv-icon",
|
|
20
|
-
"aria-hidden": "true",
|
|
21
|
-
class: S(t.value)
|
|
22
|
-
},
|
|
23
|
-
[
|
|
24
|
-
b("use", { "xlink:href": l.value }, null, 8, L)
|
|
25
|
-
],
|
|
26
|
-
2
|
|
27
|
-
/* CLASS */
|
|
28
|
-
));
|
|
29
|
-
}
|
|
30
|
-
}), F = /* @__PURE__ */ m({
|
|
31
|
-
__name: "PvSpinner",
|
|
32
|
-
props: {
|
|
33
|
-
variant: { default: "primary", type: String },
|
|
34
|
-
size: { default: "lg", type: String }
|
|
35
|
-
},
|
|
36
|
-
setup(e) {
|
|
37
|
-
const a = {
|
|
38
|
-
xs: "0.75rem",
|
|
39
|
-
sm: "1rem",
|
|
40
|
-
md: "1.25rem",
|
|
41
|
-
lg: "1.5rem",
|
|
42
|
-
xl: "2rem"
|
|
43
|
-
}, o = {
|
|
44
|
-
primary: "pv-spinner",
|
|
45
|
-
dark: "pv-spinner-dark",
|
|
46
|
-
white: "pv-spinner-light"
|
|
47
|
-
};
|
|
48
|
-
return (n, t) => (r(), u(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
"data-testid": "pv-spinner",
|
|
52
|
-
class: S(o[e.variant]),
|
|
53
|
-
style: N({ "--size": a[e.size] })
|
|
54
|
-
},
|
|
55
|
-
null,
|
|
56
|
-
6
|
|
57
|
-
/* CLASS, STYLE */
|
|
58
|
-
));
|
|
59
|
-
}
|
|
60
|
-
}), T = {
|
|
61
|
-
md: "pv-button-small",
|
|
62
|
-
lg: void 0,
|
|
63
|
-
xl: "pv-button-large"
|
|
64
|
-
}, G = (e) => e == null || !T.hasOwnProperty(e) ? null : T[e] || null, H = ["disabled"], W = {
|
|
65
|
-
key: 1,
|
|
66
|
-
"data-testid": "pv-button-label"
|
|
67
|
-
}, E = /* @__PURE__ */ m({
|
|
68
|
-
__name: "PvButton",
|
|
69
|
-
props: {
|
|
70
|
-
variant: { default: "primary", type: String },
|
|
71
|
-
disabled: { type: Boolean, default: !1 },
|
|
72
|
-
size: { default: "lg", type: String },
|
|
73
|
-
loading: { type: Boolean, default: !1 },
|
|
74
|
-
label: { type: String },
|
|
75
|
-
leftIcon: { type: String },
|
|
76
|
-
rightIcon: { type: String },
|
|
77
|
-
inverse: { type: Boolean, default: !1 }
|
|
78
|
-
},
|
|
79
|
-
setup(e) {
|
|
80
|
-
const a = ["ghost"], o = e, n = h(() => {
|
|
81
|
-
const t = [];
|
|
82
|
-
o.inverse && a.includes(o.variant) ? t.push(`pv-button-${o.variant}-inverse`) : t.push(`pv-button-${o.variant}`);
|
|
83
|
-
const l = G(o.size);
|
|
84
|
-
return l && t.push(l), t;
|
|
85
|
-
});
|
|
86
|
-
return (t, l) => (r(), u("button", {
|
|
87
|
-
type: "button",
|
|
88
|
-
class: S(n.value),
|
|
89
|
-
disabled: e.disabled,
|
|
90
|
-
"data-testid": "pv-button"
|
|
91
|
-
}, [
|
|
92
|
-
e.loading ? (r(), v(F, {
|
|
93
|
-
key: 0,
|
|
94
|
-
size: "sm"
|
|
95
|
-
})) : (r(), u(
|
|
96
|
-
z,
|
|
97
|
-
{ key: 1 },
|
|
98
|
-
[
|
|
99
|
-
e.leftIcon ? (r(), v($, {
|
|
100
|
-
key: 0,
|
|
101
|
-
name: e.leftIcon,
|
|
102
|
-
"data-testid": "pv-button-left-icon"
|
|
103
|
-
}, null, 8, ["name"])) : f("v-if", !0),
|
|
104
|
-
e.label ? (r(), u(
|
|
105
|
-
"span",
|
|
106
|
-
W,
|
|
107
|
-
y(e.label),
|
|
108
|
-
1
|
|
109
|
-
/* TEXT */
|
|
110
|
-
)) : f("v-if", !0),
|
|
111
|
-
e.rightIcon ? (r(), v($, {
|
|
112
|
-
key: 2,
|
|
113
|
-
name: e.rightIcon,
|
|
114
|
-
"data-testid": "pv-button-right-icon"
|
|
115
|
-
}, null, 8, ["name"])) : f("v-if", !0)
|
|
116
|
-
],
|
|
117
|
-
64
|
|
118
|
-
/* STABLE_FRAGMENT */
|
|
119
|
-
))
|
|
120
|
-
], 10, H));
|
|
121
|
-
}
|
|
122
|
-
}), I = {
|
|
123
|
-
short: 5,
|
|
124
|
-
long: 7
|
|
125
|
-
}, j = ({
|
|
126
|
-
variant: e = "long"
|
|
127
|
-
} = {}) => ({
|
|
128
|
-
getPaginations: ({
|
|
129
|
-
currentPage: n,
|
|
130
|
-
pages: t
|
|
131
|
-
}) => {
|
|
132
|
-
if (t <= I[e])
|
|
133
|
-
return Array.from({ length: t }, (i, k) => ({
|
|
134
|
-
page: k + 1,
|
|
135
|
-
label: (k + 1).toString()
|
|
136
|
-
}));
|
|
137
|
-
const l = [
|
|
138
|
-
{
|
|
139
|
-
page: 1,
|
|
140
|
-
label: "1"
|
|
141
|
-
}
|
|
142
|
-
], s = I[e] - 3, p = Math.floor(s / 2);
|
|
143
|
-
let c = n - p, d = n + p;
|
|
144
|
-
const _ = c > 2, P = d < t - 1;
|
|
145
|
-
if (c <= 2 && (c = 2, d = c + s - 1), d >= t - 1 && (d = t - 1, c = d - s + 1), _ && l.push({
|
|
146
|
-
page: 0,
|
|
147
|
-
label: "..."
|
|
148
|
-
}), _ && P)
|
|
149
|
-
for (let i = c + 1; i <= d - 1; i++)
|
|
150
|
-
l.push({ page: i, label: i.toString() });
|
|
151
|
-
else
|
|
152
|
-
for (let i = c; i <= d; i++)
|
|
153
|
-
l.push({ page: i, label: i.toString() });
|
|
154
|
-
return P && l.push({
|
|
155
|
-
page: 0,
|
|
156
|
-
label: "..."
|
|
157
|
-
}), t > 1 && l.push({ page: t, label: t.toString() }), l;
|
|
158
|
-
}
|
|
159
|
-
}), q = ["data-style"], K = ["data-testid", "aria-current"], U = {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: "dots-button",
|
|
162
|
-
disabled: ""
|
|
163
|
-
}, Z = ["onClick"], J = /* @__PURE__ */ m({
|
|
164
|
-
__name: "PvPagination",
|
|
165
|
-
props: /* @__PURE__ */ A({
|
|
166
|
-
size: { default: "lg", type: String },
|
|
167
|
-
maxPages: { type: Number },
|
|
168
|
-
maxNumberToShow: { type: Number },
|
|
169
|
-
variant: { default: "long", type: String }
|
|
170
|
-
}, {
|
|
171
|
-
modelValue: { required: !0 },
|
|
172
|
-
modelModifiers: {}
|
|
173
|
-
}),
|
|
174
|
-
emits: ["update:modelValue"],
|
|
175
|
-
setup(e) {
|
|
176
|
-
const a = e, { getPaginations: o } = j({
|
|
177
|
-
variant: a.variant
|
|
178
|
-
}), n = B(e, "modelValue");
|
|
179
|
-
return (t, l) => (r(), u("ol", {
|
|
180
|
-
role: "list",
|
|
181
|
-
class: "pv-pagination",
|
|
182
|
-
"data-testid": "pv-pagination",
|
|
183
|
-
"data-style": e.size === "lg" ? "small" : void 0
|
|
184
|
-
}, [
|
|
185
|
-
b("li", null, [
|
|
186
|
-
w(E, {
|
|
187
|
-
"data-testid": "pagination-left-arrow-icon",
|
|
188
|
-
disabled: n.value === 1,
|
|
189
|
-
"left-icon": "chevron-left",
|
|
190
|
-
variant: "ghost",
|
|
191
|
-
onClick: l[0] || (l[0] = (s) => t.$emit("update:modelValue", n.value - 1))
|
|
192
|
-
}, null, 8, ["disabled"])
|
|
193
|
-
]),
|
|
194
|
-
(r(!0), u(
|
|
195
|
-
z,
|
|
196
|
-
null,
|
|
197
|
-
M(D(o)({
|
|
198
|
-
currentPage: n.value,
|
|
199
|
-
pages: e.maxPages
|
|
200
|
-
}), (s) => (r(), u("li", {
|
|
201
|
-
key: s.page,
|
|
202
|
-
"data-testid": `pagination-button-${s.page}`,
|
|
203
|
-
"aria-current": s.page === n.value ? "page" : void 0
|
|
204
|
-
}, [
|
|
205
|
-
s.label === "..." ? (r(), u(
|
|
206
|
-
"button",
|
|
207
|
-
U,
|
|
208
|
-
y(s.label),
|
|
209
|
-
1
|
|
210
|
-
/* TEXT */
|
|
211
|
-
)) : (r(), u("button", {
|
|
212
|
-
key: 1,
|
|
213
|
-
onClick: (p) => t.$emit("update:modelValue", s.page)
|
|
214
|
-
}, y(s.label), 9, Z))
|
|
215
|
-
], 8, K))),
|
|
216
|
-
128
|
|
217
|
-
/* KEYED_FRAGMENT */
|
|
218
|
-
)),
|
|
219
|
-
b("li", null, [
|
|
220
|
-
w(E, {
|
|
221
|
-
"data-testid": "pagination-right-arrow-icon",
|
|
222
|
-
disabled: n.value === e.maxPages,
|
|
223
|
-
"left-icon": "chevron-right",
|
|
224
|
-
variant: "ghost",
|
|
225
|
-
onClick: l[1] || (l[1] = (s) => t.$emit("update:modelValue", n.value + 1))
|
|
226
|
-
}, null, 8, ["disabled"])
|
|
227
|
-
])
|
|
228
|
-
], 8, q));
|
|
229
|
-
}
|
|
230
|
-
}), Q = ".dots-button[data-v-e63422b9]{background-color:transparent;color:#4b595c}", X = (e, a) => {
|
|
231
|
-
const o = e.__vccOpts || e;
|
|
232
|
-
for (const [n, t] of a)
|
|
233
|
-
o[n] = t;
|
|
234
|
-
return o;
|
|
235
|
-
}, Y = /* @__PURE__ */ X(J, [["styles", [Q]], ["__scopeId", "data-v-e63422b9"]]), ee = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
236
|
-
function te(e) {
|
|
237
|
-
return !ee.has(e);
|
|
238
|
-
}
|
|
239
|
-
function g(e, a) {
|
|
240
|
-
const o = document.querySelector('link[href*="' + a + '"]');
|
|
241
|
-
if (!e.shadowRoot)
|
|
242
|
-
return !1;
|
|
243
|
-
if (o && e.shadowRoot) {
|
|
244
|
-
const n = o.href;
|
|
245
|
-
if (e.shadowRoot.querySelector(`link[href="${n}"]`))
|
|
246
|
-
return;
|
|
247
|
-
const t = document.createElement("link");
|
|
248
|
-
return t.rel = "stylesheet", t.href = n, e.shadowRoot.prepend(t), !0;
|
|
249
|
-
}
|
|
250
|
-
return !1;
|
|
251
|
-
}
|
|
252
|
-
function ne(e) {
|
|
253
|
-
if (!g(e, "pit-viper-v2")) {
|
|
254
|
-
if (g(e, "pit-viper")) {
|
|
255
|
-
g(e, "pit-viper-v2-scoped");
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
console.warn(
|
|
259
|
-
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
const oe = (e) => ({ shadowRoot: te(e) });
|
|
264
|
-
function ae(e) {
|
|
265
|
-
const a = e.__name || e.name;
|
|
266
|
-
if (!a)
|
|
267
|
-
throw new Error("Component must have a __name or name property");
|
|
268
|
-
const o = O(e, oe(a));
|
|
269
|
-
class n extends o {
|
|
270
|
-
connectedCallback() {
|
|
271
|
-
super.connectedCallback?.(), ne(this);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return n;
|
|
275
|
-
}
|
|
276
|
-
function se(e) {
|
|
277
|
-
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
278
|
-
}
|
|
279
|
-
function le(e) {
|
|
280
|
-
const a = e.__name || e.name;
|
|
281
|
-
if (!a)
|
|
282
|
-
throw new Error("Component must have a __name or name property");
|
|
283
|
-
const o = se(a), n = ae(e);
|
|
284
|
-
customElements.get(o) || customElements.define(o, n);
|
|
285
|
-
}
|
|
286
|
-
le(Y);
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as v, computed as l, onMounted as g, getCurrentInstance as h, createElementBlock as u, openBlock as i, normalizeClass as p, createElementVNode as m, createCommentVNode as f, createBlock as _, toDisplayString as y, defineCustomElement as C } from "vue";
|
|
2
|
-
const S = [void 0, 10, 12, 20, 24, 32, 64], P = ["xlink:href"], E = /* @__PURE__ */ d({
|
|
3
|
-
__name: "PvIcon",
|
|
4
|
-
props: {
|
|
5
|
-
name: { type: String },
|
|
6
|
-
size: { type: null }
|
|
7
|
-
},
|
|
8
|
-
setup(e) {
|
|
9
|
-
const t = e, n = v(!1), r = v(null), a = l(() => ({
|
|
10
|
-
"pv-icon": !0,
|
|
11
|
-
[`pv-icon-${t.size}`]: S.includes(t.size)
|
|
12
|
-
})), s = l(() => n.value && r.value ? `${r.value}#${t.name}` : `#${t.name}`);
|
|
13
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), g(() => {
|
|
14
|
-
const o = h()?.root;
|
|
15
|
-
n.value = o && "isCE" in o && o.isCE;
|
|
16
|
-
}), (o, T) => (i(), u(
|
|
17
|
-
"svg",
|
|
18
|
-
{
|
|
19
|
-
"data-testid": "pv-icon",
|
|
20
|
-
"aria-hidden": "true",
|
|
21
|
-
class: p(a.value)
|
|
22
|
-
},
|
|
23
|
-
[
|
|
24
|
-
m("use", { "xlink:href": s.value }, null, 8, P)
|
|
25
|
-
],
|
|
26
|
-
2
|
|
27
|
-
/* CLASS */
|
|
28
|
-
));
|
|
29
|
-
}
|
|
30
|
-
}), k = /* @__PURE__ */ d({
|
|
31
|
-
__name: "PvPill",
|
|
32
|
-
props: {
|
|
33
|
-
size: { default: "md", type: String },
|
|
34
|
-
variant: { default: "default", type: String },
|
|
35
|
-
icon: { type: String },
|
|
36
|
-
dotVariant: { type: String },
|
|
37
|
-
label: { type: String }
|
|
38
|
-
},
|
|
39
|
-
setup(e) {
|
|
40
|
-
const t = e, n = l(() => {
|
|
41
|
-
switch (t.size) {
|
|
42
|
-
case "lg":
|
|
43
|
-
return "pv-tag-lg";
|
|
44
|
-
case "sm":
|
|
45
|
-
return "pv-tag-sm";
|
|
46
|
-
default:
|
|
47
|
-
return "";
|
|
48
|
-
}
|
|
49
|
-
}), r = l(() => {
|
|
50
|
-
if (t.dotVariant)
|
|
51
|
-
return "pv-tag-tertiary";
|
|
52
|
-
switch (t.variant) {
|
|
53
|
-
case "default":
|
|
54
|
-
return "pv-tag-tertiary";
|
|
55
|
-
case "success":
|
|
56
|
-
return "pv-tag-green";
|
|
57
|
-
case "warning":
|
|
58
|
-
return "pv-tag-orange";
|
|
59
|
-
case "critical":
|
|
60
|
-
return "pv-tag-red";
|
|
61
|
-
case "highlight":
|
|
62
|
-
return "pv-tag-turquoise";
|
|
63
|
-
default:
|
|
64
|
-
return "pv-tag-tertiary";
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return (a, s) => (i(), u(
|
|
68
|
-
"div",
|
|
69
|
-
{
|
|
70
|
-
class: p([r.value, n.value, "pv-flex"]),
|
|
71
|
-
onClick: s[0] || (s[0] = (o) => a.$emit("handle-click", e.label)),
|
|
72
|
-
"data-style": "rounded",
|
|
73
|
-
style: { width: "fit-content", "--flex-gap": "4px" }
|
|
74
|
-
},
|
|
75
|
-
[
|
|
76
|
-
e.dotVariant ? (i(), u(
|
|
77
|
-
"span",
|
|
78
|
-
{
|
|
79
|
-
key: 0,
|
|
80
|
-
style: { "margin-inline-end": "0px" },
|
|
81
|
-
class: p(`pv-status-${e.dotVariant}`)
|
|
82
|
-
},
|
|
83
|
-
null,
|
|
84
|
-
2
|
|
85
|
-
/* CLASS */
|
|
86
|
-
)) : f("v-if", !0),
|
|
87
|
-
e.icon ? (i(), _(E, {
|
|
88
|
-
key: 1,
|
|
89
|
-
name: e.icon,
|
|
90
|
-
size: 12
|
|
91
|
-
}, null, 8, ["name"])) : f("v-if", !0),
|
|
92
|
-
m(
|
|
93
|
-
"span",
|
|
94
|
-
null,
|
|
95
|
-
y(e.label),
|
|
96
|
-
1
|
|
97
|
-
/* TEXT */
|
|
98
|
-
)
|
|
99
|
-
],
|
|
100
|
-
2
|
|
101
|
-
/* CLASS */
|
|
102
|
-
));
|
|
103
|
-
}
|
|
104
|
-
}), w = "[class*=pv-status]{&[data-v-4ee8f936]:before,&[data-v-4ee8f936]:after{margin-inline-end:0px}}", b = (e, t) => {
|
|
105
|
-
const n = e.__vccOpts || e;
|
|
106
|
-
for (const [r, a] of t)
|
|
107
|
-
n[r] = a;
|
|
108
|
-
return n;
|
|
109
|
-
}, x = /* @__PURE__ */ b(k, [["styles", [w]], ["__scopeId", "data-v-4ee8f936"]]), V = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
110
|
-
function $(e) {
|
|
111
|
-
return !V.has(e);
|
|
112
|
-
}
|
|
113
|
-
function c(e, t) {
|
|
114
|
-
const n = document.querySelector('link[href*="' + t + '"]');
|
|
115
|
-
if (!e.shadowRoot)
|
|
116
|
-
return !1;
|
|
117
|
-
if (n && e.shadowRoot) {
|
|
118
|
-
const r = n.href;
|
|
119
|
-
if (e.shadowRoot.querySelector(`link[href="${r}"]`))
|
|
120
|
-
return;
|
|
121
|
-
const a = document.createElement("link");
|
|
122
|
-
return a.rel = "stylesheet", a.href = r, e.shadowRoot.prepend(a), !0;
|
|
123
|
-
}
|
|
124
|
-
return !1;
|
|
125
|
-
}
|
|
126
|
-
function z(e) {
|
|
127
|
-
if (!c(e, "pit-viper-v2")) {
|
|
128
|
-
if (c(e, "pit-viper")) {
|
|
129
|
-
c(e, "pit-viper-v2-scoped");
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
console.warn(
|
|
133
|
-
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
const I = (e) => ({ shadowRoot: $(e) });
|
|
138
|
-
function R(e) {
|
|
139
|
-
const t = e.__name || e.name;
|
|
140
|
-
if (!t)
|
|
141
|
-
throw new Error("Component must have a __name or name property");
|
|
142
|
-
const n = C(e, I(t));
|
|
143
|
-
class r extends n {
|
|
144
|
-
connectedCallback() {
|
|
145
|
-
super.connectedCallback?.(), z(this);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return r;
|
|
149
|
-
}
|
|
150
|
-
function A(e) {
|
|
151
|
-
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
152
|
-
}
|
|
153
|
-
function O(e) {
|
|
154
|
-
const t = e.__name || e.name;
|
|
155
|
-
if (!t)
|
|
156
|
-
throw new Error("Component must have a __name or name property");
|
|
157
|
-
const n = A(t), r = R(e);
|
|
158
|
-
customElements.get(n) || customElements.define(n, r);
|
|
159
|
-
}
|
|
160
|
-
O(x);
|