@turquoisehealth/pit-viper 2.122.0 → 2.122.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/package.json +43 -13
  2. package/pv-components/dist/stats/vue/base/stats.html +4949 -0
  3. package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
  4. package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
  5. package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
  6. package/pv-components/dist/stats/web/pv-ai-button-stats.html +4949 -0
  7. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
  8. package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
  9. package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
  10. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
  12. package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
  13. package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
  14. package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
  15. package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
  16. package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
  17. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
  18. package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
  19. package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
  20. package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +4949 -0
  21. package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
  22. package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
  23. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
  24. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
  25. package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
  26. package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
  27. package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
  28. package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
  29. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
  30. package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
  31. package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
  32. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
  33. package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
  34. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
  35. package/pv-components/dist/stats/web/pv-progress-bar-stats.html +4949 -0
  36. package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
  37. package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
  38. package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
  39. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
  40. package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
  41. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
  42. package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
  43. package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
  44. package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
  45. package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
  46. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
  47. package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
  48. package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
  49. package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
  50. package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
  51. package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
  52. package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
  53. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
  54. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
  55. package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
  56. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
  57. package/pv-components/dist/stats/web/pv-tree-stats.html +4949 -0
  58. package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
  59. package/pv-components/dist/vue/base/components/base/PvButton/helpers.d.ts +1 -0
  60. package/pv-components/dist/vue/base/components/base/PvMenu/PvMenuControlPanel.vue.d.ts +6 -0
  61. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +206 -289
  62. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +31 -0
  63. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +0 -1
  64. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +6 -1
  65. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +20 -177
  66. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -9
  67. package/pv-components/dist/vue/base/pv-components-base.mjs +4943 -11629
  68. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4791 -10741
  69. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +265 -0
  70. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +134 -0
  71. package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +225 -0
  72. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +164 -0
  73. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +170 -0
  74. package/pv-components/dist/web/components/pv-banner/pv-banner.js +224 -0
  75. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +160 -0
  76. package/pv-components/dist/web/components/pv-button/pv-button.js +242 -0
  77. package/pv-components/dist/web/components/pv-card/pv-card.js +148 -0
  78. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +145 -0
  79. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +221 -0
  80. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +192 -0
  81. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +274 -0
  82. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +157 -0
  83. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7550 -0
  84. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +645 -0
  85. package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +177 -0
  86. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +556 -0
  87. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1792 -0
  88. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +304 -0
  89. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +320 -0
  90. package/pv-components/dist/web/components/pv-icon/pv-icon.js +150 -0
  91. package/pv-components/dist/web/components/pv-input/pv-input.js +191 -0
  92. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +363 -0
  93. package/pv-components/dist/web/components/pv-modal/pv-modal.js +186 -0
  94. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +8326 -0
  95. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +355 -0
  96. package/pv-components/dist/web/components/pv-pill/pv-pill.js +229 -0
  97. package/pv-components/dist/web/components/pv-popover/pv-popover.js +1485 -0
  98. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1507 -0
  99. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1573 -0
  100. package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +156 -0
  101. package/pv-components/dist/web/components/pv-rating/pv-rating.js +146 -0
  102. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +142 -0
  103. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +238 -0
  104. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +214 -0
  105. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +8093 -0
  106. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +153 -0
  107. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +148 -0
  108. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1593 -0
  109. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +151 -0
  110. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +150 -0
  111. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +195 -0
  112. package/pv-components/dist/web/components/pv-switch/pv-switch.js +162 -0
  113. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +168 -0
  114. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +248 -0
  115. package/pv-components/dist/web/components/pv-tag/pv-tag.js +210 -0
  116. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +188 -0
  117. package/pv-components/dist/web/components/pv-toast/pv-toast.js +292 -0
  118. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +208 -0
  119. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +7479 -0
  120. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +158 -0
  121. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +7409 -0
  122. package/pv-components/dist/web/components/pv-tree/pv-tree.js +5107 -0
  123. package/pv-components/dist/web/components/pv-widget/pv-widget.js +159 -0
  124. package/pv-components/dist/web/pv-components.iife.js +50 -50
  125. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
  126. package/pv-components/dist/vue/base/pv-components-base.js +0 -1555
  127. package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1555
  128. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -185
  129. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -185
@@ -0,0 +1,153 @@
1
+ import { defineComponent as b, computed as v, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as _, renderSlot as C, defineCustomElement as S } from "vue";
2
+ const w = ["for"], A = ["checked", "type", "value", "id"], P = /* @__PURE__ */ b({
3
+ __name: "PvSelectableCard",
4
+ props: {
5
+ variant: { default: "default", type: String },
6
+ value: { type: String },
7
+ id: { type: String },
8
+ deselect: { type: Boolean },
9
+ selected: { type: Boolean }
10
+ },
11
+ setup(e) {
12
+ const t = v(() => e.id ? e.id : `${Math.random()}`);
13
+ return (n, i) => (g(), y("label", {
14
+ "data-testid": "pv-selectable-card",
15
+ class: E([
16
+ "pv-label-selectable-small",
17
+ {
18
+ "pv-label-selectable-highlight": e.variant === "highlight"
19
+ }
20
+ ]),
21
+ for: t.value
22
+ }, [
23
+ _("input", {
24
+ checked: e.selected,
25
+ class: "pv-hide",
26
+ name: "type",
27
+ type: e.deselect ? "checkbox" : "radio",
28
+ value: e.value,
29
+ id: t.value
30
+ }, null, 8, A),
31
+ C(n.$slots, "default")
32
+ ], 10, w));
33
+ }
34
+ }), I = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
35
+ function j(e) {
36
+ return !I.has(e);
37
+ }
38
+ function h(e, t) {
39
+ const n = document.querySelector('link[href*="' + t + '"]');
40
+ if (!e.shadowRoot)
41
+ return !1;
42
+ if (n && e.shadowRoot) {
43
+ const i = n.href;
44
+ if (e.shadowRoot.querySelector(`link[href="${i}"]`))
45
+ return;
46
+ const l = document.createElement("link");
47
+ return l.rel = "stylesheet", l.href = i, e.shadowRoot.prepend(l), !0;
48
+ }
49
+ return !1;
50
+ }
51
+ function k(e) {
52
+ if (!h(e, "pit-viper-v2")) {
53
+ if (h(e, "pit-viper")) {
54
+ h(e, "pit-viper-v2-scoped");
55
+ return;
56
+ }
57
+ console.warn(
58
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
59
+ );
60
+ }
61
+ }
62
+ const O = (e) => ({ shadowRoot: j(e) });
63
+ function $(e, t) {
64
+ return t === null ? !1 : t === "" || t === "true" ? !0 : (t === "false" || console.warn(
65
+ `Invalid boolean attribute value for "${e}": "${t}". Expected "true", "false", or empty string.`
66
+ ), !1);
67
+ }
68
+ function N(e, t) {
69
+ const n = Number(t);
70
+ return isNaN(n) && console.warn(`Invalid number attribute value for "${e}": "${t}". Expected a valid number.`), n;
71
+ }
72
+ function B(e) {
73
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), d = (e.__vccOpts || e).props;
74
+ return d && typeof d == "object" && Object.entries(d).forEach(([p, r]) => {
75
+ 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)) && i.add(p);
76
+ }), { booleanProps: t, numberProps: n, jsonProps: i };
77
+ }
78
+ function m(e, t) {
79
+ try {
80
+ return JSON.parse(t);
81
+ } catch (n) {
82
+ return console.warn(
83
+ `Invalid JSON attribute value for "${e}": "${t}". Error: ${n instanceof Error ? n.message : String(n)}`
84
+ ), null;
85
+ }
86
+ }
87
+ function D(e) {
88
+ const t = e.__name || e.name;
89
+ if (!t)
90
+ throw new Error("Component must have a __name or name property");
91
+ const n = S(e, O(t)), { booleanProps: i, numberProps: l, jsonProps: d } = B(e);
92
+ class p extends n {
93
+ _hiddenInput = null;
94
+ constructor() {
95
+ super(), this._parseAttributes();
96
+ }
97
+ disconnectedCallback() {
98
+ this._hiddenInput?.remove(), super.disconnectedCallback?.();
99
+ }
100
+ /**
101
+ * Update the hidden input value
102
+ * Call this from the Vue component to sync form value
103
+ */
104
+ setHiddenInputValue(a) {
105
+ this._hiddenInput && (this._hiddenInput.value = a ?? "");
106
+ }
107
+ _parseAttributes() {
108
+ i.forEach((o) => {
109
+ const s = this.getAttribute(o);
110
+ this[o] = $(o, s);
111
+ }), l.forEach((o) => {
112
+ const s = this.getAttribute(o);
113
+ s !== null && (this[o] = N(o, s));
114
+ }), d.forEach((o) => {
115
+ const s = this.getAttribute(o);
116
+ if (s !== null) {
117
+ const c = m(o, s);
118
+ c !== null && (this[o] = c);
119
+ }
120
+ });
121
+ const a = this.getAttribute("data-json-props");
122
+ a && a.split(",").map((s) => s.trim()).filter(Boolean).forEach((s) => {
123
+ const c = s.replace(/-([a-z])/g, (u) => u[1].toUpperCase());
124
+ let f = this.getAttribute(s);
125
+ if (f === null) {
126
+ const u = c.replace(/([A-Z])/g, "-$1").toLowerCase();
127
+ f = this.getAttribute(u);
128
+ }
129
+ if (f !== null && !this[c]) {
130
+ const u = m(c, f);
131
+ u !== null && (this[c] = u);
132
+ }
133
+ });
134
+ }
135
+ connectedCallback() {
136
+ this._parseAttributes(), super.connectedCallback?.(), k(this);
137
+ const a = this.getAttribute("name");
138
+ a && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = a, this.after(this._hiddenInput));
139
+ }
140
+ }
141
+ return p;
142
+ }
143
+ function M(e) {
144
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
145
+ }
146
+ function R(e) {
147
+ const t = e.__name || e.name;
148
+ if (!t)
149
+ throw new Error("Component must have a __name or name property");
150
+ const n = M(t), i = D(e);
151
+ customElements.get(n) || customElements.define(n, i);
152
+ }
153
+ R(P);
@@ -0,0 +1,148 @@
1
+ import { defineComponent as v, createElementBlock as w, openBlock as y, createElementVNode as f, renderSlot as b, defineCustomElement as g } from "vue";
2
+ const E = { class: "pv-layout-two-sidebar" }, S = ["data-hidden"], A = { "data-layout": "main-section" }, C = ["data-hidden"], P = /* @__PURE__ */ v({
3
+ __name: "PvSidePanel",
4
+ props: {
5
+ showLeftSidebar: { type: Boolean },
6
+ showRightSidebar: { type: Boolean }
7
+ },
8
+ setup(t) {
9
+ return (e, n) => (y(), w("div", E, [
10
+ f("div", {
11
+ "data-hidden": t.showLeftSidebar === !1 ? !0 : void 0,
12
+ "data-testid": "pv-side-panel-left",
13
+ "data-layout": "left-sidebar"
14
+ }, [
15
+ b(e.$slots, "left-sidebar")
16
+ ], 8, S),
17
+ f("div", A, [
18
+ b(e.$slots, "main")
19
+ ]),
20
+ f("div", {
21
+ "data-hidden": t.showRightSidebar === !1 ? !0 : void 0,
22
+ "data-testid": "pv-side-panel-right",
23
+ "data-layout": "right-sidebar"
24
+ }, [
25
+ b(e.$slots, "right-sidebar")
26
+ ], 8, C)
27
+ ]));
28
+ }
29
+ }), I = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
30
+ function j(t) {
31
+ return !I.has(t);
32
+ }
33
+ function m(t, e) {
34
+ const n = document.querySelector('link[href*="' + e + '"]');
35
+ if (!t.shadowRoot)
36
+ return !1;
37
+ if (n && t.shadowRoot) {
38
+ const i = n.href;
39
+ if (t.shadowRoot.querySelector(`link[href="${i}"]`))
40
+ return;
41
+ const d = document.createElement("link");
42
+ return d.rel = "stylesheet", d.href = i, t.shadowRoot.prepend(d), !0;
43
+ }
44
+ return !1;
45
+ }
46
+ function $(t) {
47
+ if (!m(t, "pit-viper-v2")) {
48
+ if (m(t, "pit-viper")) {
49
+ m(t, "pit-viper-v2-scoped");
50
+ return;
51
+ }
52
+ console.warn(
53
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
54
+ );
55
+ }
56
+ }
57
+ const O = (t) => ({ shadowRoot: j(t) });
58
+ function k(t, e) {
59
+ return e === null ? !1 : e === "" || e === "true" ? !0 : (e === "false" || console.warn(
60
+ `Invalid boolean attribute value for "${t}": "${e}". Expected "true", "false", or empty string.`
61
+ ), !1);
62
+ }
63
+ function N(t, e) {
64
+ const n = Number(e);
65
+ return isNaN(n) && console.warn(`Invalid number attribute value for "${t}": "${e}". Expected a valid number.`), n;
66
+ }
67
+ function B(t) {
68
+ const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), l = (t.__vccOpts || t).props;
69
+ return l && typeof l == "object" && Object.entries(l).forEach(([p, o]) => {
70
+ o === Boolean || o && o.type === Boolean ? e.add(p) : o === Number || o && o.type === Number ? n.add(p) : (o === Object || o === Array || o && (o.type === Object || o.type === Array)) && i.add(p);
71
+ }), { booleanProps: e, numberProps: n, jsonProps: i };
72
+ }
73
+ function _(t, e) {
74
+ try {
75
+ return JSON.parse(e);
76
+ } catch (n) {
77
+ return console.warn(
78
+ `Invalid JSON attribute value for "${t}": "${e}". Error: ${n instanceof Error ? n.message : String(n)}`
79
+ ), null;
80
+ }
81
+ }
82
+ function R(t) {
83
+ const e = t.__name || t.name;
84
+ if (!e)
85
+ throw new Error("Component must have a __name or name property");
86
+ const n = g(t, O(e)), { booleanProps: i, numberProps: d, jsonProps: l } = B(t);
87
+ class p extends n {
88
+ _hiddenInput = null;
89
+ constructor() {
90
+ super(), this._parseAttributes();
91
+ }
92
+ disconnectedCallback() {
93
+ this._hiddenInput?.remove(), super.disconnectedCallback?.();
94
+ }
95
+ /**
96
+ * Update the hidden input value
97
+ * Call this from the Vue component to sync form value
98
+ */
99
+ setHiddenInputValue(a) {
100
+ this._hiddenInput && (this._hiddenInput.value = a ?? "");
101
+ }
102
+ _parseAttributes() {
103
+ i.forEach((r) => {
104
+ const s = this.getAttribute(r);
105
+ this[r] = k(r, s);
106
+ }), d.forEach((r) => {
107
+ const s = this.getAttribute(r);
108
+ s !== null && (this[r] = N(r, s));
109
+ }), l.forEach((r) => {
110
+ const s = this.getAttribute(r);
111
+ if (s !== null) {
112
+ const c = _(r, s);
113
+ c !== null && (this[r] = c);
114
+ }
115
+ });
116
+ const a = this.getAttribute("data-json-props");
117
+ a && a.split(",").map((s) => s.trim()).filter(Boolean).forEach((s) => {
118
+ const c = s.replace(/-([a-z])/g, (u) => u[1].toUpperCase());
119
+ let h = this.getAttribute(s);
120
+ if (h === null) {
121
+ const u = c.replace(/([A-Z])/g, "-$1").toLowerCase();
122
+ h = this.getAttribute(u);
123
+ }
124
+ if (h !== null && !this[c]) {
125
+ const u = _(c, h);
126
+ u !== null && (this[c] = u);
127
+ }
128
+ });
129
+ }
130
+ connectedCallback() {
131
+ this._parseAttributes(), super.connectedCallback?.(), $(this);
132
+ const a = this.getAttribute("name");
133
+ a && (this._hiddenInput = document.createElement("input"), this._hiddenInput.type = "hidden", this._hiddenInput.name = a, this.after(this._hiddenInput));
134
+ }
135
+ }
136
+ return p;
137
+ }
138
+ function D(t) {
139
+ return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
140
+ }
141
+ function L(t) {
142
+ const e = t.__name || t.name;
143
+ if (!e)
144
+ throw new Error("Component must have a __name or name property");
145
+ const n = D(e), i = R(t);
146
+ customElements.get(n) || customElements.define(n, i);
147
+ }
148
+ L(P);