@turquoisehealth/pit-viper 2.122.1-dev.0 → 2.123.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 +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +0 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +0 -6
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +289 -206
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -31
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +1 -6
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +177 -20
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +9 -4
- package/pv-components/dist/vue/base/pv-components-base.mjs +2713 -2704
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3296 -4299
- package/pv-components/dist/web/components/pv-button/pv-button.js +43 -43
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +159 -159
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +87 -87
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +76 -76
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +78 -78
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2185 -7690
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +92 -92
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +768 -852
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2139 -7599
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +58 -58
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +1638 -1722
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1481 -1565
- package/pv-components/dist/web/pv-components.iife.js +50 -50
|
@@ -31,71 +31,71 @@ function k(e) {
|
|
|
31
31
|
}
|
|
32
32
|
function I(...e) {
|
|
33
33
|
const t = [], n = () => {
|
|
34
|
-
t.forEach((
|
|
35
|
-
},
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
}),
|
|
34
|
+
t.forEach((s) => s()), t.length = 0;
|
|
35
|
+
}, r = (s, o, l, u) => (s.addEventListener(o, l, u), () => s.removeEventListener(o, l, u)), i = _(() => {
|
|
36
|
+
const s = B(S(e[0])).filter((o) => o != null);
|
|
37
|
+
return s.every((o) => typeof o != "string") ? s : void 0;
|
|
38
|
+
}), c = fe(
|
|
39
39
|
() => {
|
|
40
|
-
var
|
|
40
|
+
var s, o;
|
|
41
41
|
return [
|
|
42
|
-
(
|
|
43
|
-
B(S(
|
|
44
|
-
B(te(
|
|
42
|
+
(o = (s = i.value) == null ? void 0 : s.map((l) => k(l))) != null ? o : [z].filter((l) => l != null),
|
|
43
|
+
B(S(i.value ? e[1] : e[0])),
|
|
44
|
+
B(te(i.value ? e[2] : e[1])),
|
|
45
45
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
46
|
-
S(
|
|
46
|
+
S(i.value ? e[3] : e[2])
|
|
47
47
|
];
|
|
48
48
|
},
|
|
49
|
-
([
|
|
50
|
-
if (n(), !
|
|
49
|
+
([s, o, l, u]) => {
|
|
50
|
+
if (n(), !s?.length || !o?.length || !l?.length)
|
|
51
51
|
return;
|
|
52
52
|
const h = ce(u) ? { ...u } : u;
|
|
53
53
|
t.push(
|
|
54
|
-
...
|
|
55
|
-
(g) =>
|
|
56
|
-
(v) =>
|
|
54
|
+
...s.flatMap(
|
|
55
|
+
(g) => o.flatMap(
|
|
56
|
+
(v) => l.map(($) => r(g, v, $, h))
|
|
57
57
|
)
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
},
|
|
61
61
|
{ flush: "post" }
|
|
62
|
-
),
|
|
63
|
-
|
|
62
|
+
), d = () => {
|
|
63
|
+
c(), n();
|
|
64
64
|
};
|
|
65
|
-
return ae(n),
|
|
65
|
+
return ae(n), d;
|
|
66
66
|
}
|
|
67
67
|
let R = !1;
|
|
68
68
|
function he(e, t, n = {}) {
|
|
69
|
-
const { window:
|
|
70
|
-
if (!
|
|
71
|
-
return
|
|
69
|
+
const { window: r = z, ignore: i = [], capture: c = !0, detectIframe: d = !1, controls: s = !1 } = n;
|
|
70
|
+
if (!r)
|
|
71
|
+
return s ? { stop: P, cancel: P, trigger: P } : P;
|
|
72
72
|
if (de && !R) {
|
|
73
73
|
R = !0;
|
|
74
74
|
const a = { passive: !0 };
|
|
75
|
-
Array.from(
|
|
75
|
+
Array.from(r.document.body.children).forEach((p) => p.addEventListener("click", P, a)), r.document.documentElement.addEventListener("click", P, a);
|
|
76
76
|
}
|
|
77
|
-
let
|
|
78
|
-
const
|
|
79
|
-
if (typeof
|
|
80
|
-
return Array.from(
|
|
77
|
+
let o = !0;
|
|
78
|
+
const l = (a) => S(i).some((p) => {
|
|
79
|
+
if (typeof p == "string")
|
|
80
|
+
return Array.from(r.document.querySelectorAll(p)).some((m) => m === a.target || a.composedPath().includes(m));
|
|
81
81
|
{
|
|
82
|
-
const m = k(
|
|
82
|
+
const m = k(p);
|
|
83
83
|
return m && (a.target === m || a.composedPath().includes(m));
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
function u(a) {
|
|
87
|
-
const
|
|
88
|
-
return
|
|
87
|
+
const p = S(a);
|
|
88
|
+
return p && p.$.subTree.shapeFlag === 16;
|
|
89
89
|
}
|
|
90
|
-
function h(a,
|
|
90
|
+
function h(a, p) {
|
|
91
91
|
const m = S(a), O = m.$.subTree && m.$.subTree.children;
|
|
92
|
-
return O == null || !Array.isArray(O) ? !1 : O.some((N) => N.el ===
|
|
92
|
+
return O == null || !Array.isArray(O) ? !1 : O.some((N) => N.el === p.target || p.composedPath().includes(N.el));
|
|
93
93
|
}
|
|
94
94
|
const g = (a) => {
|
|
95
|
-
const
|
|
96
|
-
if (a.target != null && !(!(
|
|
97
|
-
if ("detail" in a && a.detail === 0 && (
|
|
98
|
-
|
|
95
|
+
const p = k(e);
|
|
96
|
+
if (a.target != null && !(!(p instanceof Element) && u(e) && h(e, a)) && !(!p || p === a.target || a.composedPath().includes(p))) {
|
|
97
|
+
if ("detail" in a && a.detail === 0 && (o = !l(a)), !o) {
|
|
98
|
+
o = !0;
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
101
|
t(a);
|
|
@@ -103,30 +103,30 @@ function he(e, t, n = {}) {
|
|
|
103
103
|
};
|
|
104
104
|
let v = !1;
|
|
105
105
|
const $ = [
|
|
106
|
-
I(
|
|
106
|
+
I(r, "click", (a) => {
|
|
107
107
|
v || (v = !0, setTimeout(() => {
|
|
108
108
|
v = !1;
|
|
109
109
|
}, 0), g(a));
|
|
110
|
-
}, { passive: !0, capture:
|
|
111
|
-
I(
|
|
112
|
-
const
|
|
113
|
-
|
|
110
|
+
}, { passive: !0, capture: c }),
|
|
111
|
+
I(r, "pointerdown", (a) => {
|
|
112
|
+
const p = k(e);
|
|
113
|
+
o = !l(a) && !!(p && !a.composedPath().includes(p));
|
|
114
114
|
}, { passive: !0 }),
|
|
115
|
-
|
|
115
|
+
d && I(r, "blur", (a) => {
|
|
116
116
|
setTimeout(() => {
|
|
117
|
-
var
|
|
117
|
+
var p;
|
|
118
118
|
const m = k(e);
|
|
119
|
-
((
|
|
119
|
+
((p = r.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !m?.contains(r.document.activeElement) && t(a);
|
|
120
120
|
}, 0);
|
|
121
121
|
}, { passive: !0 })
|
|
122
122
|
].filter(Boolean), L = () => $.forEach((a) => a());
|
|
123
|
-
return
|
|
123
|
+
return s ? {
|
|
124
124
|
stop: L,
|
|
125
125
|
cancel: () => {
|
|
126
|
-
|
|
126
|
+
o = !1;
|
|
127
127
|
},
|
|
128
128
|
trigger: (a) => {
|
|
129
|
-
|
|
129
|
+
o = !0, g(a), o = !1;
|
|
130
130
|
}
|
|
131
131
|
} : L;
|
|
132
132
|
}
|
|
@@ -134,17 +134,17 @@ function ve(e) {
|
|
|
134
134
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
135
135
|
}
|
|
136
136
|
function X(...e) {
|
|
137
|
-
let t, n,
|
|
138
|
-
e.length === 3 ? (t = e[0], n = e[1],
|
|
137
|
+
let t, n, r = {};
|
|
138
|
+
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
139
139
|
const {
|
|
140
|
-
target:
|
|
141
|
-
eventName:
|
|
142
|
-
passive:
|
|
143
|
-
dedupe:
|
|
144
|
-
} =
|
|
145
|
-
return I(
|
|
146
|
-
u.repeat && S(
|
|
147
|
-
},
|
|
140
|
+
target: i = z,
|
|
141
|
+
eventName: c = "keydown",
|
|
142
|
+
passive: d = !1,
|
|
143
|
+
dedupe: s = !1
|
|
144
|
+
} = r, o = ve(t);
|
|
145
|
+
return I(i, c, (u) => {
|
|
146
|
+
u.repeat && S(s) || o(u) && n(u);
|
|
147
|
+
}, d);
|
|
148
148
|
}
|
|
149
149
|
const me = { class: "pv-relative" }, be = ["disabled", "placeholder"], ye = {
|
|
150
150
|
key: 0,
|
|
@@ -162,27 +162,27 @@ const me = { class: "pv-relative" }, be = ["disabled", "placeholder"], ye = {
|
|
|
162
162
|
}),
|
|
163
163
|
emits: ["update:modelValue"],
|
|
164
164
|
setup(e, { expose: t }) {
|
|
165
|
-
const n = e,
|
|
165
|
+
const n = e, r = J("search-input"), i = V(e, "modelValue"), c = _(() => ({
|
|
166
166
|
"pv-input-search": !0,
|
|
167
167
|
"pv-full-width": !0,
|
|
168
168
|
"pv-input-padded-end": !0
|
|
169
169
|
}));
|
|
170
170
|
return K(() => {
|
|
171
|
-
n.displayShortcut && X(W, (
|
|
172
|
-
const
|
|
173
|
-
(!
|
|
171
|
+
n.displayShortcut && X(W, (d) => {
|
|
172
|
+
const s = d.target, o = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || (s?.isContentEditable ?? !1), l = document.activeElement === r.value;
|
|
173
|
+
(!o || l) && (l || (d.preventDefault(), r.value?.focus()));
|
|
174
174
|
});
|
|
175
|
-
}), t({ input:
|
|
175
|
+
}), t({ input: r }), (d, s) => (f(), b("div", me, [
|
|
176
176
|
ne(w("input", {
|
|
177
177
|
ref: "search-input",
|
|
178
|
-
"onUpdate:modelValue":
|
|
178
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => i.value = o),
|
|
179
179
|
"data-testid": "pv-search-input",
|
|
180
180
|
type: "text",
|
|
181
181
|
disabled: e.disabled,
|
|
182
|
-
class: A(
|
|
182
|
+
class: A(c.value),
|
|
183
183
|
placeholder: e.placeholder
|
|
184
184
|
}, null, 10, be), [
|
|
185
|
-
[se,
|
|
185
|
+
[se, i.value]
|
|
186
186
|
]),
|
|
187
187
|
e.displayShortcut ? (f(), b("kbd", ye, C(W))) : y("v-if", !0)
|
|
188
188
|
]));
|
|
@@ -199,19 +199,19 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
199
199
|
size: { type: null }
|
|
200
200
|
},
|
|
201
201
|
setup(e) {
|
|
202
|
-
const t = e, n = Se(),
|
|
202
|
+
const t = e, n = Se(), r = F(null), i = _(() => ({
|
|
203
203
|
"pv-icon": !0,
|
|
204
204
|
[`pv-icon-${t.size}`]: we.includes(t.size)
|
|
205
|
-
})),
|
|
206
|
-
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (
|
|
205
|
+
})), c = _(() => n.value && r.value ? `${r.value}#${t.name}` : `#${t.name}`);
|
|
206
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, s) => (f(), b(
|
|
207
207
|
"svg",
|
|
208
208
|
{
|
|
209
209
|
"data-testid": "pv-icon",
|
|
210
210
|
"aria-hidden": "true",
|
|
211
|
-
class: A(
|
|
211
|
+
class: A(i.value)
|
|
212
212
|
},
|
|
213
213
|
[
|
|
214
|
-
w("use", { "xlink:href":
|
|
214
|
+
w("use", { "xlink:href": c.value }, null, 8, Pe)
|
|
215
215
|
],
|
|
216
216
|
2
|
|
217
217
|
/* CLASS */
|
|
@@ -235,7 +235,7 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
235
235
|
dark: "pv-spinner-dark",
|
|
236
236
|
white: "pv-spinner-light"
|
|
237
237
|
};
|
|
238
|
-
return (
|
|
238
|
+
return (r, i) => (f(), b(
|
|
239
239
|
"div",
|
|
240
240
|
{
|
|
241
241
|
"data-testid": "pv-spinner",
|
|
@@ -247,14 +247,14 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
247
247
|
/* CLASS, STYLE */
|
|
248
248
|
));
|
|
249
249
|
}
|
|
250
|
-
}),
|
|
250
|
+
}), q = {
|
|
251
251
|
md: "pv-button-small",
|
|
252
252
|
lg: void 0,
|
|
253
253
|
xl: "pv-button-large"
|
|
254
|
-
},
|
|
254
|
+
}, _e = (e) => e == null || !q.hasOwnProperty(e) ? null : q[e] || null, Ee = ["disabled"], Ie = {
|
|
255
255
|
key: 1,
|
|
256
256
|
"data-testid": "pv-button-label"
|
|
257
|
-
},
|
|
257
|
+
}, Ce = /* @__PURE__ */ E({
|
|
258
258
|
__name: "PvButton",
|
|
259
259
|
props: {
|
|
260
260
|
variant: { default: "primary", type: String },
|
|
@@ -267,15 +267,15 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
267
267
|
inverse: { type: Boolean, default: !1 }
|
|
268
268
|
},
|
|
269
269
|
setup(e) {
|
|
270
|
-
const t =
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
return
|
|
270
|
+
const t = ["ghost"], n = e, r = _(() => {
|
|
271
|
+
const i = [];
|
|
272
|
+
n.inverse && t.includes(n.variant) ? i.push(`pv-button-${n.variant}-inverse`) : i.push(`pv-button-${n.variant}`);
|
|
273
|
+
const c = _e(n.size);
|
|
274
|
+
return c && i.push(c), i;
|
|
275
275
|
});
|
|
276
|
-
return (
|
|
276
|
+
return (i, c) => (f(), b("button", {
|
|
277
277
|
type: "button",
|
|
278
|
-
class: A(
|
|
278
|
+
class: A(r.value),
|
|
279
279
|
disabled: e.disabled,
|
|
280
280
|
"data-testid": "pv-button"
|
|
281
281
|
}, [
|
|
@@ -293,7 +293,7 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
293
293
|
}, null, 8, ["name"])) : y("v-if", !0),
|
|
294
294
|
e.label ? (f(), b(
|
|
295
295
|
"span",
|
|
296
|
-
|
|
296
|
+
Ie,
|
|
297
297
|
C(e.label),
|
|
298
298
|
1
|
|
299
299
|
/* TEXT */
|
|
@@ -307,28 +307,28 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
307
307
|
64
|
|
308
308
|
/* STABLE_FRAGMENT */
|
|
309
309
|
))
|
|
310
|
-
], 10,
|
|
310
|
+
], 10, Ee));
|
|
311
311
|
}
|
|
312
|
-
}),
|
|
312
|
+
}), Ae = {
|
|
313
313
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
314
314
|
style: { "flex-shrink": "0" }
|
|
315
|
-
},
|
|
315
|
+
}, $e = {
|
|
316
316
|
class: "pv-flex-vertical pv-stack-16",
|
|
317
317
|
style: { "--flex-align": "flex-start" }
|
|
318
|
-
},
|
|
318
|
+
}, Oe = { class: "pv-flex pv-full-width" }, Te = { class: "pv-full-width pv-heading-3" }, xe = {
|
|
319
319
|
key: 0,
|
|
320
320
|
class: "pv-text-body-md"
|
|
321
|
-
},
|
|
321
|
+
}, Be = {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "pv-inset-inline-16"
|
|
324
|
-
},
|
|
324
|
+
}, Me = {
|
|
325
325
|
class: "pv-inset-inline-16",
|
|
326
326
|
style: { flex: "1", "overflow-y": "auto", "min-height": "0" }
|
|
327
|
-
},
|
|
327
|
+
}, je = {
|
|
328
328
|
key: 0,
|
|
329
329
|
class: "pv-inset-squish-12 pv-border-top",
|
|
330
330
|
style: { "flex-shrink": "0" }
|
|
331
|
-
},
|
|
331
|
+
}, Ve = /* @__PURE__ */ E({
|
|
332
332
|
__name: "PvDrawer",
|
|
333
333
|
props: /* @__PURE__ */ j({
|
|
334
334
|
header: { type: String },
|
|
@@ -346,74 +346,74 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
346
346
|
}),
|
|
347
347
|
emits: /* @__PURE__ */ j(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
348
348
|
setup(e, { emit: t }) {
|
|
349
|
-
const n = e,
|
|
349
|
+
const n = e, r = t, i = J("sidePanel"), c = V(e, "searchInput"), d = V(e, "modelValue");
|
|
350
350
|
K(() => {
|
|
351
|
-
|
|
351
|
+
d.value && i?.value?.setAttribute("open", "true"), n.closeOnClickOutside && s();
|
|
352
352
|
});
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
const s = () => {
|
|
354
|
+
i.value && he(
|
|
355
|
+
i.value,
|
|
356
356
|
() => {
|
|
357
|
-
|
|
357
|
+
d.value && (r("click-outside"), o());
|
|
358
358
|
},
|
|
359
359
|
{ ignore: [".pv-click-outside-ignore"] }
|
|
360
360
|
);
|
|
361
|
-
},
|
|
362
|
-
|
|
361
|
+
}, o = () => {
|
|
362
|
+
i?.value?.removeAttribute("open"), d.value = !1;
|
|
363
363
|
};
|
|
364
364
|
return U(
|
|
365
|
-
() =>
|
|
365
|
+
() => d.value,
|
|
366
366
|
() => {
|
|
367
|
-
|
|
367
|
+
d.value ? i?.value?.setAttribute("open", "true") : i?.value?.removeAttribute("open");
|
|
368
368
|
}
|
|
369
369
|
), X("Escape", () => {
|
|
370
|
-
|
|
371
|
-
}), (
|
|
370
|
+
i.value && d.value && o();
|
|
371
|
+
}), (l, u) => (f(), b(
|
|
372
372
|
"div",
|
|
373
373
|
{
|
|
374
374
|
class: "pv-drawer pv-surface",
|
|
375
375
|
ref_key: "sidePanel",
|
|
376
|
-
ref:
|
|
376
|
+
ref: i,
|
|
377
377
|
"data-testid": "pv-drawer",
|
|
378
378
|
style: { display: "flex", "flex-direction": "column", height: "100%" }
|
|
379
379
|
},
|
|
380
380
|
[
|
|
381
381
|
y(" Header Section (Fixed) "),
|
|
382
|
-
w("div",
|
|
383
|
-
|
|
382
|
+
w("div", Ae, [
|
|
383
|
+
l.$slots.header ? x(l.$slots, "header", { key: 0 }) : (f(), b(
|
|
384
384
|
Z,
|
|
385
385
|
{ key: 1 },
|
|
386
386
|
[
|
|
387
|
-
w("div",
|
|
388
|
-
w("div",
|
|
387
|
+
w("div", $e, [
|
|
388
|
+
w("div", Oe, [
|
|
389
389
|
w(
|
|
390
390
|
"span",
|
|
391
|
-
|
|
391
|
+
Te,
|
|
392
392
|
C(e.header),
|
|
393
393
|
1
|
|
394
394
|
/* TEXT */
|
|
395
395
|
),
|
|
396
|
-
D(
|
|
396
|
+
D(Ce, {
|
|
397
397
|
"left-icon": "close",
|
|
398
398
|
size: "md",
|
|
399
|
-
onClick:
|
|
399
|
+
onClick: o,
|
|
400
400
|
"data-testid": "pv-side-panel-close-button",
|
|
401
401
|
variant: "ghost"
|
|
402
402
|
})
|
|
403
403
|
]),
|
|
404
404
|
e.subheader ? (f(), b(
|
|
405
405
|
"span",
|
|
406
|
-
|
|
406
|
+
xe,
|
|
407
407
|
C(e.subheader),
|
|
408
408
|
1
|
|
409
409
|
/* TEXT */
|
|
410
410
|
)) : y("v-if", !0)
|
|
411
411
|
]),
|
|
412
|
-
e.showSearchbar &&
|
|
412
|
+
e.showSearchbar && c.value !== void 0 ? (f(), b("div", Be, [
|
|
413
413
|
D(ge, ie({
|
|
414
414
|
"data-testid": "pv-side-panel-input-search",
|
|
415
|
-
modelValue:
|
|
416
|
-
"onUpdate:modelValue": u[0] || (u[0] = (h) =>
|
|
415
|
+
modelValue: c.value,
|
|
416
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => c.value = h)
|
|
417
417
|
}, n.searchInputProps), null, 16, ["modelValue"])
|
|
418
418
|
])) : y("v-if", !0)
|
|
419
419
|
],
|
|
@@ -422,36 +422,36 @@ const we = [void 0, 10, 12, 20, 24, 32, 64], Pe = ["xlink:href"], H = /* @__PURE
|
|
|
422
422
|
))
|
|
423
423
|
]),
|
|
424
424
|
y(" Main Content Section (Scrollable) "),
|
|
425
|
-
w("div",
|
|
426
|
-
x(
|
|
425
|
+
w("div", Me, [
|
|
426
|
+
x(l.$slots, "default")
|
|
427
427
|
]),
|
|
428
428
|
y(" Footer Section (Fixed) "),
|
|
429
|
-
|
|
430
|
-
x(
|
|
429
|
+
l.$slots.footer ? (f(), b("div", je, [
|
|
430
|
+
x(l.$slots, "footer")
|
|
431
431
|
])) : y("v-if", !0)
|
|
432
432
|
],
|
|
433
433
|
512
|
|
434
434
|
/* NEED_PATCH */
|
|
435
435
|
));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
438
|
-
function
|
|
439
|
-
return !
|
|
437
|
+
}), ze = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
438
|
+
function Le(e) {
|
|
439
|
+
return !ze.has(e);
|
|
440
440
|
}
|
|
441
441
|
function M(e, t) {
|
|
442
442
|
const n = document.querySelector('link[href*="' + t + '"]');
|
|
443
443
|
if (!e.shadowRoot)
|
|
444
444
|
return !1;
|
|
445
445
|
if (n && e.shadowRoot) {
|
|
446
|
-
const
|
|
447
|
-
if (e.shadowRoot.querySelector(`link[href="${
|
|
446
|
+
const r = n.href;
|
|
447
|
+
if (e.shadowRoot.querySelector(`link[href="${r}"]`))
|
|
448
448
|
return;
|
|
449
|
-
const
|
|
450
|
-
return
|
|
449
|
+
const i = document.createElement("link");
|
|
450
|
+
return i.rel = "stylesheet", i.href = r, e.shadowRoot.prepend(i), !0;
|
|
451
451
|
}
|
|
452
452
|
return !1;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Ne(e) {
|
|
455
455
|
if (!M(e, "pit-viper-v2")) {
|
|
456
456
|
if (M(e, "pit-viper")) {
|
|
457
457
|
M(e, "pit-viper-v2-scoped");
|
|
@@ -462,21 +462,21 @@ function De(e) {
|
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
function
|
|
465
|
+
const De = (e) => ({ shadowRoot: Le(e) });
|
|
466
|
+
function Re(e, t) {
|
|
467
467
|
return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
|
|
468
468
|
`Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
|
|
469
469
|
), !1);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function We(e, t) {
|
|
472
472
|
const n = Number(t);
|
|
473
473
|
return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(),
|
|
477
|
-
return
|
|
478
|
-
|
|
479
|
-
}), { booleanProps: t, numberProps: n, jsonProps:
|
|
475
|
+
function He(e) {
|
|
476
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), c = (e.__vccOpts || e).props;
|
|
477
|
+
return c && typeof c == "object" && Object.entries(c).forEach(([d, s]) => {
|
|
478
|
+
s === Boolean || s && s.type === Boolean ? t.add(d) : s === Number || s && s.type === Number ? n.add(d) : (s === Object || s === Array || s && (s.type === Object || s.type === Array)) && r.add(d);
|
|
479
|
+
}), { booleanProps: t, numberProps: n, jsonProps: r };
|
|
480
480
|
}
|
|
481
481
|
function G(e, t) {
|
|
482
482
|
try {
|
|
@@ -487,12 +487,12 @@ function G(e, t) {
|
|
|
487
487
|
), null;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function qe(e) {
|
|
491
491
|
const t = e.__name || e.name;
|
|
492
492
|
if (!t)
|
|
493
493
|
throw new Error("Component must have a __name or name property");
|
|
494
|
-
const n = le(e,
|
|
495
|
-
class
|
|
494
|
+
const n = le(e, De(t)), { booleanProps: r, numberProps: i, jsonProps: c } = He(e);
|
|
495
|
+
class d extends n {
|
|
496
496
|
_hiddenInput = null;
|
|
497
497
|
constructor() {
|
|
498
498
|
super(), this._parseAttributes();
|
|
@@ -504,25 +504,25 @@ function Ge(e) {
|
|
|
504
504
|
* Update the hidden input value
|
|
505
505
|
* Call this from the Vue component to sync form value
|
|
506
506
|
*/
|
|
507
|
-
setHiddenInputValue(
|
|
508
|
-
this._hiddenInput && (this._hiddenInput.value =
|
|
507
|
+
setHiddenInputValue(o) {
|
|
508
|
+
this._hiddenInput && (this._hiddenInput.value = o ?? "");
|
|
509
509
|
}
|
|
510
510
|
_parseAttributes() {
|
|
511
|
-
|
|
512
|
-
const u = this.getAttribute(
|
|
513
|
-
this[
|
|
514
|
-
}),
|
|
515
|
-
const u = this.getAttribute(
|
|
516
|
-
u !== null && (this[
|
|
517
|
-
}),
|
|
518
|
-
const u = this.getAttribute(
|
|
511
|
+
r.forEach((l) => {
|
|
512
|
+
const u = this.getAttribute(l);
|
|
513
|
+
this[l] = Re(l, u);
|
|
514
|
+
}), i.forEach((l) => {
|
|
515
|
+
const u = this.getAttribute(l);
|
|
516
|
+
u !== null && (this[l] = We(l, u));
|
|
517
|
+
}), c.forEach((l) => {
|
|
518
|
+
const u = this.getAttribute(l);
|
|
519
519
|
if (u !== null) {
|
|
520
|
-
const h = G(
|
|
521
|
-
h !== null && (this[
|
|
520
|
+
const h = G(l, u);
|
|
521
|
+
h !== null && (this[l] = h);
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
|
-
const
|
|
525
|
-
|
|
524
|
+
const o = this.getAttribute("data-json-props");
|
|
525
|
+
o && o.split(",").map((u) => u.trim()).filter(Boolean).forEach((u) => {
|
|
526
526
|
const h = u.replace(/-([a-z])/g, (v) => v[1].toUpperCase());
|
|
527
527
|
let g = this.getAttribute(u);
|
|
528
528
|
if (g === null) {
|
|
@@ -536,21 +536,21 @@ function Ge(e) {
|
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
|
-
this._parseAttributes(), super.connectedCallback?.(),
|
|
540
|
-
const
|
|
541
|
-
|
|
539
|
+
this._parseAttributes(), super.connectedCallback?.(), Ne(this);
|
|
540
|
+
const o = this.getAttribute("name");
|
|
541
|
+
o && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = o, this.after(this._hiddenInput));
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
return
|
|
544
|
+
return d;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Ge(e) {
|
|
547
547
|
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ue(e) {
|
|
550
550
|
const t = e.__name || e.name;
|
|
551
551
|
if (!t)
|
|
552
552
|
throw new Error("Component must have a __name or name property");
|
|
553
|
-
const n =
|
|
554
|
-
customElements.get(n) || customElements.define(n,
|
|
553
|
+
const n = Ge(t), r = qe(e);
|
|
554
|
+
customElements.get(n) || customElements.define(n, r);
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
Ue(Ve);
|