@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,151 @@
|
|
|
1
|
+
import { defineComponent as b, createElementBlock as _, openBlock as v, normalizeStyle as y, normalizeClass as g, defineCustomElement as E } from "vue";
|
|
2
|
+
const w = /* @__PURE__ */ b({
|
|
3
|
+
__name: "PvSpinner",
|
|
4
|
+
props: {
|
|
5
|
+
variant: { default: "primary", type: String },
|
|
6
|
+
size: { default: "lg", type: String }
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const t = {
|
|
10
|
+
xs: "0.75rem",
|
|
11
|
+
sm: "1rem",
|
|
12
|
+
md: "1.25rem",
|
|
13
|
+
lg: "1.5rem",
|
|
14
|
+
xl: "2rem"
|
|
15
|
+
}, n = {
|
|
16
|
+
primary: "pv-spinner",
|
|
17
|
+
dark: "pv-spinner-dark",
|
|
18
|
+
white: "pv-spinner-light"
|
|
19
|
+
};
|
|
20
|
+
return (i, a) => (v(), _(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-testid": "pv-spinner",
|
|
24
|
+
class: g(n[e.variant]),
|
|
25
|
+
style: y({ "--size": t[e.size] })
|
|
26
|
+
},
|
|
27
|
+
null,
|
|
28
|
+
6
|
|
29
|
+
/* CLASS, STYLE */
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
}), C = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
33
|
+
function S(e) {
|
|
34
|
+
return !C.has(e);
|
|
35
|
+
}
|
|
36
|
+
function h(e, t) {
|
|
37
|
+
const n = document.querySelector('link[href*="' + t + '"]');
|
|
38
|
+
if (!e.shadowRoot)
|
|
39
|
+
return !1;
|
|
40
|
+
if (n && e.shadowRoot) {
|
|
41
|
+
const i = n.href;
|
|
42
|
+
if (e.shadowRoot.querySelector(`link[href="${i}"]`))
|
|
43
|
+
return;
|
|
44
|
+
const a = document.createElement("link");
|
|
45
|
+
return a.rel = "stylesheet", a.href = i, e.shadowRoot.prepend(a), !0;
|
|
46
|
+
}
|
|
47
|
+
return !1;
|
|
48
|
+
}
|
|
49
|
+
function A(e) {
|
|
50
|
+
if (!h(e, "pit-viper-v2")) {
|
|
51
|
+
if (h(e, "pit-viper")) {
|
|
52
|
+
h(e, "pit-viper-v2-scoped");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
console.warn(
|
|
56
|
+
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const P = (e) => ({ shadowRoot: S(e) });
|
|
61
|
+
function I(e, t) {
|
|
62
|
+
return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
|
|
63
|
+
`Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
|
|
64
|
+
), !1);
|
|
65
|
+
}
|
|
66
|
+
function j(e, t) {
|
|
67
|
+
const n = Number(t);
|
|
68
|
+
return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
|
|
69
|
+
}
|
|
70
|
+
function k(e) {
|
|
71
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), p = (e.__vccOpts || e).props;
|
|
72
|
+
return p && typeof p == "object" && Object.entries(p).forEach(([f, r]) => {
|
|
73
|
+
r === Boolean || r && r.type === Boolean ? t.add(f) : r === Number || r && r.type === Number ? n.add(f) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && i.add(f);
|
|
74
|
+
}), { booleanProps: t, numberProps: n, jsonProps: i };
|
|
75
|
+
}
|
|
76
|
+
function m(e, t) {
|
|
77
|
+
try {
|
|
78
|
+
return JSON.parse(t);
|
|
79
|
+
} catch (n) {
|
|
80
|
+
return console.warn(
|
|
81
|
+
`Invalid JSON attribute value for "${e}": "${t}". Error: ${n instanceof Error ? n.message : String(n)}`
|
|
82
|
+
), null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function O(e) {
|
|
86
|
+
const t = e.__name || e.name;
|
|
87
|
+
if (!t)
|
|
88
|
+
throw new Error("Component must have a __name or name property");
|
|
89
|
+
const n = E(e, P(t)), { booleanProps: i, numberProps: a, jsonProps: p } = k(e);
|
|
90
|
+
class f extends n {
|
|
91
|
+
_hiddenInput = null;
|
|
92
|
+
constructor() {
|
|
93
|
+
super(), this._parseAttributes();
|
|
94
|
+
}
|
|
95
|
+
disconnectedCallback() {
|
|
96
|
+
this._hiddenInput?.remove(), super.disconnectedCallback?.();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Update the hidden input value
|
|
100
|
+
* Call this from the Vue component to sync form value
|
|
101
|
+
*/
|
|
102
|
+
setHiddenInputValue(c) {
|
|
103
|
+
this._hiddenInput && (this._hiddenInput.value = c ?? "");
|
|
104
|
+
}
|
|
105
|
+
_parseAttributes() {
|
|
106
|
+
i.forEach((s) => {
|
|
107
|
+
const o = this.getAttribute(s);
|
|
108
|
+
this[s] = I(s, o);
|
|
109
|
+
}), a.forEach((s) => {
|
|
110
|
+
const o = this.getAttribute(s);
|
|
111
|
+
o !== null && (this[s] = j(s, o));
|
|
112
|
+
}), p.forEach((s) => {
|
|
113
|
+
const o = this.getAttribute(s);
|
|
114
|
+
if (o !== null) {
|
|
115
|
+
const u = m(s, o);
|
|
116
|
+
u !== null && (this[s] = u);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const c = this.getAttribute("data-json-props");
|
|
120
|
+
c && c.split(",").map((o) => o.trim()).filter(Boolean).forEach((o) => {
|
|
121
|
+
const u = o.replace(/-([a-z])/g, (l) => l[1].toUpperCase());
|
|
122
|
+
let d = this.getAttribute(o);
|
|
123
|
+
if (d === null) {
|
|
124
|
+
const l = u.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
125
|
+
d = this.getAttribute(l);
|
|
126
|
+
}
|
|
127
|
+
if (d !== null && !this[u]) {
|
|
128
|
+
const l = m(u, d);
|
|
129
|
+
l !== null && (this[u] = l);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
connectedCallback() {
|
|
134
|
+
this._parseAttributes(), super.connectedCallback?.(), A(this);
|
|
135
|
+
const c = this.getAttribute("name");
|
|
136
|
+
c && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = c, this.after(this._hiddenInput));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return f;
|
|
140
|
+
}
|
|
141
|
+
function $(e) {
|
|
142
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
143
|
+
}
|
|
144
|
+
function N(e) {
|
|
145
|
+
const t = e.__name || e.name;
|
|
146
|
+
if (!t)
|
|
147
|
+
throw new Error("Component must have a __name or name property");
|
|
148
|
+
const n = $(t), i = O(e);
|
|
149
|
+
customElements.get(n) || customElements.define(n, i);
|
|
150
|
+
}
|
|
151
|
+
N(w);
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { defineComponent as b, onMounted as v, createBlock as _, openBlock as g, Teleport as y, createElementVNode as E, defineCustomElement as w } from "vue";
|
|
2
|
+
const A = /* @__PURE__ */ b({
|
|
3
|
+
__name: "PvSprite",
|
|
4
|
+
props: {
|
|
5
|
+
src: { type: String },
|
|
6
|
+
variant: { default: "v2", type: String }
|
|
7
|
+
},
|
|
8
|
+
setup(t) {
|
|
9
|
+
const e = t;
|
|
10
|
+
return v(async () => {
|
|
11
|
+
const n = e.variant === "v1" ? "sprite-v1.svg" : "sprite-v2.svg", r = e.src + n;
|
|
12
|
+
try {
|
|
13
|
+
const u = await (await fetch(r)).text(), a = document.getElementById("pv-sprite-content");
|
|
14
|
+
a && (a.innerHTML = u, a.hidden = !1);
|
|
15
|
+
} catch (c) {
|
|
16
|
+
console.error("Failed to load SVG:", c);
|
|
17
|
+
}
|
|
18
|
+
}), (n, r) => (g(), _(y, { to: "body" }, [
|
|
19
|
+
r[0] || (r[0] = E(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
hidden: "",
|
|
23
|
+
id: "pv-sprite-content"
|
|
24
|
+
},
|
|
25
|
+
null,
|
|
26
|
+
-1
|
|
27
|
+
/* CACHED */
|
|
28
|
+
))
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
}), S = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
32
|
+
function C(t) {
|
|
33
|
+
return !S.has(t);
|
|
34
|
+
}
|
|
35
|
+
function h(t, e) {
|
|
36
|
+
const n = document.querySelector('link[href*="' + e + '"]');
|
|
37
|
+
if (!t.shadowRoot)
|
|
38
|
+
return !1;
|
|
39
|
+
if (n && t.shadowRoot) {
|
|
40
|
+
const r = n.href;
|
|
41
|
+
if (t.shadowRoot.querySelector(`link[href="${r}"]`))
|
|
42
|
+
return;
|
|
43
|
+
const c = document.createElement("link");
|
|
44
|
+
return c.rel = "stylesheet", c.href = r, t.shadowRoot.prepend(c), !0;
|
|
45
|
+
}
|
|
46
|
+
return !1;
|
|
47
|
+
}
|
|
48
|
+
function P(t) {
|
|
49
|
+
if (!h(t, "pit-viper-v2")) {
|
|
50
|
+
if (h(t, "pit-viper")) {
|
|
51
|
+
h(t, "pit-viper-v2-scoped");
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
console.warn(
|
|
55
|
+
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const I = (t) => ({ shadowRoot: C(t) });
|
|
60
|
+
function j(t, e) {
|
|
61
|
+
return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
|
|
62
|
+
`Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
|
|
63
|
+
), !1);
|
|
64
|
+
}
|
|
65
|
+
function O(t, e) {
|
|
66
|
+
const n = Number(e);
|
|
67
|
+
return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
|
|
68
|
+
}
|
|
69
|
+
function k(t) {
|
|
70
|
+
const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), u = (t.__vccOpts || t).props;
|
|
71
|
+
return u && typeof u == "object" && Object.entries(u).forEach(([a, o]) => {
|
|
72
|
+
o === Boolean || o && o.type === Boolean ? e.add(a) : o === Number || o && o.type === Number ? n.add(a) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && r.add(a);
|
|
73
|
+
}), { booleanProps: e, numberProps: n, jsonProps: r };
|
|
74
|
+
}
|
|
75
|
+
function m(t, e) {
|
|
76
|
+
try {
|
|
77
|
+
return JSON.parse(e);
|
|
78
|
+
} catch (n) {
|
|
79
|
+
return console.warn(
|
|
80
|
+
`Invalid JSON attribute value for "${t}": "${e}". Error: ${n instanceof Error ? n.message : String(n)}`
|
|
81
|
+
), null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function N(t) {
|
|
85
|
+
const e = t.__name || t.name;
|
|
86
|
+
if (!e)
|
|
87
|
+
throw new Error("Component must have a __name or name property");
|
|
88
|
+
const n = w(t, I(e)), { booleanProps: r, numberProps: c, jsonProps: u } = k(t);
|
|
89
|
+
class a extends n {
|
|
90
|
+
_hiddenInput = null;
|
|
91
|
+
constructor() {
|
|
92
|
+
super(), this._parseAttributes();
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
this._hiddenInput?.remove(), super.disconnectedCallback?.();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Update the hidden input value
|
|
99
|
+
* Call this from the Vue component to sync form value
|
|
100
|
+
*/
|
|
101
|
+
setHiddenInputValue(l) {
|
|
102
|
+
this._hiddenInput && (this._hiddenInput.value = l ?? "");
|
|
103
|
+
}
|
|
104
|
+
_parseAttributes() {
|
|
105
|
+
r.forEach((s) => {
|
|
106
|
+
const i = this.getAttribute(s);
|
|
107
|
+
this[s] = j(s, i);
|
|
108
|
+
}), c.forEach((s) => {
|
|
109
|
+
const i = this.getAttribute(s);
|
|
110
|
+
i !== null && (this[s] = O(s, i));
|
|
111
|
+
}), u.forEach((s) => {
|
|
112
|
+
const i = this.getAttribute(s);
|
|
113
|
+
if (i !== null) {
|
|
114
|
+
const p = m(s, i);
|
|
115
|
+
p !== null && (this[s] = p);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const l = this.getAttribute("data-json-props");
|
|
119
|
+
l && l.split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => {
|
|
120
|
+
const p = i.replace(/-([a-z])/g, (d) => d[1].toUpperCase());
|
|
121
|
+
let f = this.getAttribute(i);
|
|
122
|
+
if (f === null) {
|
|
123
|
+
const d = p.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
124
|
+
f = this.getAttribute(d);
|
|
125
|
+
}
|
|
126
|
+
if (f !== null && !this[p]) {
|
|
127
|
+
const d = m(p, f);
|
|
128
|
+
d !== null && (this[p] = d);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
connectedCallback() {
|
|
133
|
+
this._parseAttributes(), super.connectedCallback?.(), P(this);
|
|
134
|
+
const l = this.getAttribute("name");
|
|
135
|
+
l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return a;
|
|
139
|
+
}
|
|
140
|
+
function $(t) {
|
|
141
|
+
return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
142
|
+
}
|
|
143
|
+
function B(t) {
|
|
144
|
+
const e = t.__name || t.name;
|
|
145
|
+
if (!e)
|
|
146
|
+
throw new Error("Component must have a __name or name property");
|
|
147
|
+
const n = $(e), r = N(t);
|
|
148
|
+
customElements.get(n) || customElements.define(n, r);
|
|
149
|
+
}
|
|
150
|
+
B(A);
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ref as v, getCurrentInstance as P, defineComponent as _, computed as m, createElementBlock as y, openBlock as b, normalizeClass as E, createElementVNode as C, createBlock as S, createCommentVNode as w, toDisplayString as A, defineCustomElement as I } from "vue";
|
|
2
|
+
function $() {
|
|
3
|
+
const e = v(!1), n = P()?.root || {};
|
|
4
|
+
return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
|
|
5
|
+
}
|
|
6
|
+
const k = [void 0, 10, 12, 20, 24, 32, 64], O = ["xlink:href"], j = /* @__PURE__ */ _({
|
|
7
|
+
__name: "PvIcon",
|
|
8
|
+
props: {
|
|
9
|
+
name: { type: String },
|
|
10
|
+
size: { type: null }
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const t = e, n = $(), s = v(null), a = m(() => ({
|
|
14
|
+
"pv-icon": !0,
|
|
15
|
+
[`pv-icon-${t.size}`]: k.includes(t.size)
|
|
16
|
+
})), c = m(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.name}`);
|
|
17
|
+
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (d, o) => (b(), y(
|
|
18
|
+
"svg",
|
|
19
|
+
{
|
|
20
|
+
"data-testid": "pv-icon",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
class: E(a.value)
|
|
23
|
+
},
|
|
24
|
+
[
|
|
25
|
+
C("use", { "xlink:href": c.value }, null, 8, O)
|
|
26
|
+
],
|
|
27
|
+
2
|
|
28
|
+
/* CLASS */
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
}), B = ["data-style", "disabled", "title"], N = { class: "pv-truncate" }, z = /* @__PURE__ */ _({
|
|
32
|
+
__name: "PvSuggestionTag",
|
|
33
|
+
props: {
|
|
34
|
+
size: { default: "md", type: String },
|
|
35
|
+
label: { type: String },
|
|
36
|
+
showIcon: { type: Boolean },
|
|
37
|
+
rounded: { type: Boolean },
|
|
38
|
+
disabled: { type: Boolean, default: !1 }
|
|
39
|
+
},
|
|
40
|
+
emits: ["handle-click"],
|
|
41
|
+
setup(e) {
|
|
42
|
+
const t = e, n = m(() => {
|
|
43
|
+
switch (t.size) {
|
|
44
|
+
case "lg":
|
|
45
|
+
return "pv-tag-lg";
|
|
46
|
+
case "sm":
|
|
47
|
+
return "pv-tag-sm";
|
|
48
|
+
default:
|
|
49
|
+
return "";
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return (s, a) => (b(), y("button", {
|
|
53
|
+
class: E(["pv-border-dashed pv-tag-secondary", n.value]),
|
|
54
|
+
onClick: a[0] || (a[0] = (c) => s.$emit("handle-click", e.label)),
|
|
55
|
+
"data-testid": "pv-suggestion-tag",
|
|
56
|
+
style: { "max-width": "100%" },
|
|
57
|
+
"data-style": e.rounded ? "rounded" : void 0,
|
|
58
|
+
disabled: e.disabled,
|
|
59
|
+
title: e.label
|
|
60
|
+
}, [
|
|
61
|
+
e.showIcon ? (b(), S(j, {
|
|
62
|
+
key: 0,
|
|
63
|
+
"data-testid": "pv-suggestion-tag-icon",
|
|
64
|
+
name: "expand",
|
|
65
|
+
size: 12
|
|
66
|
+
})) : w("v-if", !0),
|
|
67
|
+
C(
|
|
68
|
+
"span",
|
|
69
|
+
N,
|
|
70
|
+
A(e.label),
|
|
71
|
+
1
|
|
72
|
+
/* TEXT */
|
|
73
|
+
)
|
|
74
|
+
], 10, B));
|
|
75
|
+
}
|
|
76
|
+
}), T = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
77
|
+
function x(e) {
|
|
78
|
+
return !T.has(e);
|
|
79
|
+
}
|
|
80
|
+
function h(e, t) {
|
|
81
|
+
const n = document.querySelector('link[href*="' + t + '"]');
|
|
82
|
+
if (!e.shadowRoot)
|
|
83
|
+
return !1;
|
|
84
|
+
if (n && e.shadowRoot) {
|
|
85
|
+
const s = n.href;
|
|
86
|
+
if (e.shadowRoot.querySelector(`link[href="${s}"]`))
|
|
87
|
+
return;
|
|
88
|
+
const a = document.createElement("link");
|
|
89
|
+
return a.rel = "stylesheet", a.href = s, e.shadowRoot.prepend(a), !0;
|
|
90
|
+
}
|
|
91
|
+
return !1;
|
|
92
|
+
}
|
|
93
|
+
function L(e) {
|
|
94
|
+
if (!h(e, "pit-viper-v2")) {
|
|
95
|
+
if (h(e, "pit-viper")) {
|
|
96
|
+
h(e, "pit-viper-v2-scoped");
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
console.warn(
|
|
100
|
+
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const R = (e) => ({ shadowRoot: x(e) });
|
|
105
|
+
function D(e, t) {
|
|
106
|
+
return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
|
|
107
|
+
`Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
|
|
108
|
+
), !1);
|
|
109
|
+
}
|
|
110
|
+
function W(e, t) {
|
|
111
|
+
const n = Number(t);
|
|
112
|
+
return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
|
|
113
|
+
}
|
|
114
|
+
function H(e) {
|
|
115
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c = (e.__vccOpts || e).props;
|
|
116
|
+
return c && typeof c == "object" && Object.entries(c).forEach(([d, o]) => {
|
|
117
|
+
o === Boolean || o && o.type === Boolean ? t.add(d) : o === Number || o && o.type === Number ? n.add(d) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && s.add(d);
|
|
118
|
+
}), { booleanProps: t, numberProps: n, jsonProps: s };
|
|
119
|
+
}
|
|
120
|
+
function g(e, t) {
|
|
121
|
+
try {
|
|
122
|
+
return JSON.parse(t);
|
|
123
|
+
} catch (n) {
|
|
124
|
+
return console.warn(
|
|
125
|
+
`Invalid JSON attribute value for "${e}": "${t}". Error: ${n instanceof Error ? n.message : String(n)}`
|
|
126
|
+
), null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function G(e) {
|
|
130
|
+
const t = e.__name || e.name;
|
|
131
|
+
if (!t)
|
|
132
|
+
throw new Error("Component must have a __name or name property");
|
|
133
|
+
const n = I(e, R(t)), { booleanProps: s, numberProps: a, jsonProps: c } = H(e);
|
|
134
|
+
class d extends n {
|
|
135
|
+
_hiddenInput = null;
|
|
136
|
+
constructor() {
|
|
137
|
+
super(), this._parseAttributes();
|
|
138
|
+
}
|
|
139
|
+
disconnectedCallback() {
|
|
140
|
+
this._hiddenInput?.remove(), super.disconnectedCallback?.();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Update the hidden input value
|
|
144
|
+
* Call this from the Vue component to sync form value
|
|
145
|
+
*/
|
|
146
|
+
setHiddenInputValue(l) {
|
|
147
|
+
this._hiddenInput && (this._hiddenInput.value = l ?? "");
|
|
148
|
+
}
|
|
149
|
+
_parseAttributes() {
|
|
150
|
+
s.forEach((r) => {
|
|
151
|
+
const i = this.getAttribute(r);
|
|
152
|
+
this[r] = D(r, i);
|
|
153
|
+
}), a.forEach((r) => {
|
|
154
|
+
const i = this.getAttribute(r);
|
|
155
|
+
i !== null && (this[r] = W(r, i));
|
|
156
|
+
}), c.forEach((r) => {
|
|
157
|
+
const i = this.getAttribute(r);
|
|
158
|
+
if (i !== null) {
|
|
159
|
+
const u = g(r, i);
|
|
160
|
+
u !== null && (this[r] = u);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
const l = this.getAttribute("data-json-props");
|
|
164
|
+
l && l.split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => {
|
|
165
|
+
const u = i.replace(/-([a-z])/g, (p) => p[1].toUpperCase());
|
|
166
|
+
let f = this.getAttribute(i);
|
|
167
|
+
if (f === null) {
|
|
168
|
+
const p = u.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
169
|
+
f = this.getAttribute(p);
|
|
170
|
+
}
|
|
171
|
+
if (f !== null && !this[u]) {
|
|
172
|
+
const p = g(u, f);
|
|
173
|
+
p !== null && (this[u] = p);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
connectedCallback() {
|
|
178
|
+
this._parseAttributes(), super.connectedCallback?.(), L(this);
|
|
179
|
+
const l = this.getAttribute("name");
|
|
180
|
+
l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return d;
|
|
184
|
+
}
|
|
185
|
+
function M(e) {
|
|
186
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
187
|
+
}
|
|
188
|
+
function V(e) {
|
|
189
|
+
const t = e.__name || e.name;
|
|
190
|
+
if (!t)
|
|
191
|
+
throw new Error("Component must have a __name or name property");
|
|
192
|
+
const n = M(t), s = G(e);
|
|
193
|
+
customElements.get(n) || customElements.define(n, s);
|
|
194
|
+
}
|
|
195
|
+
V(z);
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { defineComponent as y, mergeModels as g, useModel as w, createElementBlock as m, openBlock as b, normalizeClass as E, createCommentVNode as C, withDirectives as S, toDisplayString as _, createElementVNode as A, vModelCheckbox as P, defineCustomElement as I } from "vue";
|
|
2
|
+
const j = ["for"], k = { key: 0 }, O = ["disabled", "id"], N = /* @__PURE__ */ y({
|
|
3
|
+
__name: "PvSwitch",
|
|
4
|
+
props: /* @__PURE__ */ g({
|
|
5
|
+
size: { default: "md", type: String },
|
|
6
|
+
label: { type: String },
|
|
7
|
+
disabled: { type: Boolean, default: !1 },
|
|
8
|
+
id: { default: Math.random().toString(), type: String }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: { type: Boolean, required: !0 },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(e) {
|
|
15
|
+
const t = w(e, "modelValue");
|
|
16
|
+
return (n, o) => (b(), m("label", {
|
|
17
|
+
for: e.id,
|
|
18
|
+
class: E([
|
|
19
|
+
"pv-label pv-switch pv-label-hover",
|
|
20
|
+
{
|
|
21
|
+
"pv-input-small": e.size === "md"
|
|
22
|
+
}
|
|
23
|
+
])
|
|
24
|
+
}, [
|
|
25
|
+
e.label ? (b(), m(
|
|
26
|
+
"span",
|
|
27
|
+
k,
|
|
28
|
+
_(e.label),
|
|
29
|
+
1
|
|
30
|
+
/* TEXT */
|
|
31
|
+
)) : C("v-if", !0),
|
|
32
|
+
S(A("input", {
|
|
33
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
34
|
+
disabled: e.disabled,
|
|
35
|
+
type: "checkbox",
|
|
36
|
+
role: "switch",
|
|
37
|
+
id: e.id
|
|
38
|
+
}, null, 8, O), [
|
|
39
|
+
[P, t.value]
|
|
40
|
+
])
|
|
41
|
+
], 10, j));
|
|
42
|
+
}
|
|
43
|
+
}), $ = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
|
|
44
|
+
function B(e) {
|
|
45
|
+
return !$.has(e);
|
|
46
|
+
}
|
|
47
|
+
function h(e, t) {
|
|
48
|
+
const n = document.querySelector('link[href*="' + t + '"]');
|
|
49
|
+
if (!e.shadowRoot)
|
|
50
|
+
return !1;
|
|
51
|
+
if (n && e.shadowRoot) {
|
|
52
|
+
const o = n.href;
|
|
53
|
+
if (e.shadowRoot.querySelector(`link[href="${o}"]`))
|
|
54
|
+
return;
|
|
55
|
+
const a = document.createElement("link");
|
|
56
|
+
return a.rel = "stylesheet", a.href = o, e.shadowRoot.prepend(a), !0;
|
|
57
|
+
}
|
|
58
|
+
return !1;
|
|
59
|
+
}
|
|
60
|
+
function M(e) {
|
|
61
|
+
if (!h(e, "pit-viper-v2")) {
|
|
62
|
+
if (h(e, "pit-viper")) {
|
|
63
|
+
h(e, "pit-viper-v2-scoped");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
console.warn(
|
|
67
|
+
"No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const D = (e) => ({ shadowRoot: B(e) });
|
|
72
|
+
function x(e, t) {
|
|
73
|
+
return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
|
|
74
|
+
`Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
|
|
75
|
+
), !1);
|
|
76
|
+
}
|
|
77
|
+
function V(e, t) {
|
|
78
|
+
const n = Number(t);
|
|
79
|
+
return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
|
|
80
|
+
}
|
|
81
|
+
function R(e) {
|
|
82
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), d = (e.__vccOpts || e).props;
|
|
83
|
+
return d && typeof d == "object" && Object.entries(d).forEach(([p, r]) => {
|
|
84
|
+
r === Boolean || r && r.type === Boolean ? t.add(p) : r === Number || r && r.type === Number ? n.add(p) : (r === Object || r === Array || r && (r.type === Object || r.type === Array)) && o.add(p);
|
|
85
|
+
}), { booleanProps: t, numberProps: n, jsonProps: o };
|
|
86
|
+
}
|
|
87
|
+
function v(e, t) {
|
|
88
|
+
try {
|
|
89
|
+
return JSON.parse(t);
|
|
90
|
+
} catch (n) {
|
|
91
|
+
return console.warn(
|
|
92
|
+
`Invalid JSON attribute value for "${e}": "${t}". Error: ${n instanceof Error ? n.message : String(n)}`
|
|
93
|
+
), null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function z(e) {
|
|
97
|
+
const t = e.__name || e.name;
|
|
98
|
+
if (!t)
|
|
99
|
+
throw new Error("Component must have a __name or name property");
|
|
100
|
+
const n = I(e, D(t)), { booleanProps: o, numberProps: a, jsonProps: d } = R(e);
|
|
101
|
+
class p extends n {
|
|
102
|
+
_hiddenInput = null;
|
|
103
|
+
constructor() {
|
|
104
|
+
super(), this._parseAttributes();
|
|
105
|
+
}
|
|
106
|
+
disconnectedCallback() {
|
|
107
|
+
this._hiddenInput?.remove(), super.disconnectedCallback?.();
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Update the hidden input value
|
|
111
|
+
* Call this from the Vue component to sync form value
|
|
112
|
+
*/
|
|
113
|
+
setHiddenInputValue(l) {
|
|
114
|
+
this._hiddenInput && (this._hiddenInput.value = l ?? "");
|
|
115
|
+
}
|
|
116
|
+
_parseAttributes() {
|
|
117
|
+
o.forEach((s) => {
|
|
118
|
+
const i = this.getAttribute(s);
|
|
119
|
+
this[s] = x(s, i);
|
|
120
|
+
}), a.forEach((s) => {
|
|
121
|
+
const i = this.getAttribute(s);
|
|
122
|
+
i !== null && (this[s] = V(s, i));
|
|
123
|
+
}), d.forEach((s) => {
|
|
124
|
+
const i = this.getAttribute(s);
|
|
125
|
+
if (i !== null) {
|
|
126
|
+
const c = v(s, i);
|
|
127
|
+
c !== null && (this[s] = c);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const l = this.getAttribute("data-json-props");
|
|
131
|
+
l && l.split(",").map((i) => i.trim()).filter(Boolean).forEach((i) => {
|
|
132
|
+
const c = i.replace(/-([a-z])/g, (u) => u[1].toUpperCase());
|
|
133
|
+
let f = this.getAttribute(i);
|
|
134
|
+
if (f === null) {
|
|
135
|
+
const u = c.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
136
|
+
f = this.getAttribute(u);
|
|
137
|
+
}
|
|
138
|
+
if (f !== null && !this[c]) {
|
|
139
|
+
const u = v(c, f);
|
|
140
|
+
u !== null && (this[c] = u);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
connectedCallback() {
|
|
145
|
+
this._parseAttributes(), super.connectedCallback?.(), M(this);
|
|
146
|
+
const l = this.getAttribute("name");
|
|
147
|
+
l && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = l, this.after(this._hiddenInput));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return p;
|
|
151
|
+
}
|
|
152
|
+
function q(e) {
|
|
153
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
154
|
+
}
|
|
155
|
+
function J(e) {
|
|
156
|
+
const t = e.__name || e.name;
|
|
157
|
+
if (!t)
|
|
158
|
+
throw new Error("Component must have a __name or name property");
|
|
159
|
+
const n = q(t), o = z(e);
|
|
160
|
+
customElements.get(n) || customElements.define(n, o);
|
|
161
|
+
}
|
|
162
|
+
J(N);
|