@mono-lit/helper 0.0.9 → 0.1.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 (164) hide show
  1. package/dist/accordion-core-DaNyPWRr.js +277 -0
  2. package/dist/alert-core-DWtHbX_-.js +134 -0
  3. package/dist/breadcrumb-list-core-Dh68T8Cf.js +747 -0
  4. package/dist/{mono-button-CLkHg3WW.js → button-core-DerXg84Q.js} +3 -276
  5. package/dist/button-dropdown-core-DKYEOyjy.js +654 -0
  6. package/dist/button-utils-D5-66M02.js +63 -0
  7. package/dist/card-utils-l80qAmrN.js +312 -0
  8. package/dist/chart-core-DV7hD3ZY.js +801 -0
  9. package/dist/checkbox-utils-DKdrhAzF.js +337 -0
  10. package/dist/chip-utils-DpRrd7Zj.js +403 -0
  11. package/dist/{data-source-controller-C6C4ej_M.js → data-source-controller-DS_JLrmS.js} +1 -1
  12. package/dist/{data-source-options-fxT5QIX4.js → data-source-options-DJUNU26C.js} +6 -6
  13. package/dist/{data-source-read-BL266IW0.js → data-source-read-uKJpRAzx.js} +2 -2
  14. package/dist/date-core-CyuSyvvG.js +734 -0
  15. package/dist/drawer-core-DbFWvNln.js +759 -0
  16. package/dist/dropdown-core-BCH1pK14.js +511 -0
  17. package/dist/dropdown-table-core-SfHUJVFq.js +1342 -0
  18. package/dist/export.js +1 -1
  19. package/dist/{field-path-BabiMrrA.js → field-path-DK2VBWHl.js} +1 -1
  20. package/dist/field-tooltip.css_raw-DVblekCl.js +5 -0
  21. package/dist/{field-validation.css_raw-Cx6SGrfP.js → field-validation.css_raw-BU7C6173.js} +1 -170
  22. package/dist/file-upload-core-Cz_dBQMx.js +624 -0
  23. package/dist/filter-builder-core-DyWjbBP7.js +381 -0
  24. package/dist/{filter-builder-B6Y2mmbM.js → filter-builder-vbqIuPhX.js} +1 -1
  25. package/dist/{filter-eval-ChDSaAUH.js → filter-eval-CqeBnMYh.js} +1 -1
  26. package/dist/{filter-odata-Bi27XUpQ.js → filter-odata-GsczYKNC.js} +1 -1
  27. package/dist/{hydration-flush-BaE9gN3C.js → hydration-flush-Volt9X7Q.js} +2 -1071
  28. package/dist/index.js +11 -11
  29. package/dist/{index.node-DTqDBca7.js → index.node-Csy9zrr1.js} +4 -4
  30. package/dist/index.node.js +11 -11
  31. package/dist/input-utils-BglY-k0H.js +1145 -0
  32. package/dist/menu-core-DkAYuCZ2.js +831 -0
  33. package/dist/modal-core-CSBSPN_m.js +844 -0
  34. package/dist/mono-button-DVvZ03P-.js +280 -0
  35. package/dist/{mono-button.shadow-DqZMpcqY.js → mono-button.shadow-BANxMGln.js} +6 -594
  36. package/dist/{mono-data-chart-NKPdAgVq.js → mono-data-chart-ChF4J9RT.js} +6 -6
  37. package/dist/{mono-data-dropdown-B2iRpJuI.js → mono-data-dropdown-Bgj2PDfm.js} +1 -1
  38. package/dist/{mono-data-grid-llJCX9MC.js → mono-data-grid-DJkp96N-.js} +144 -46
  39. package/dist/{mono-event-BPku9HpS.js → mono-event-CAZf0F_k.js} +14 -9
  40. package/dist/{mono-form-controller-BrA10erm.js → mono-form-controller-DxZLvyg6.js} +2 -1
  41. package/dist/mono-table-checkbox-core-BKOMx8R5.js +5288 -0
  42. package/dist/nav-core-B5qU2dzn.js +225 -0
  43. package/dist/{normalize-error-D93O4q8g.js → normalize-error-BEcd1tmS.js} +2 -2
  44. package/dist/nuxt.js +1 -1
  45. package/dist/otp-core-DXg3vFLh.js +758 -0
  46. package/dist/radio-utils-Dk9Tl1jz.js +319 -0
  47. package/dist/rich-text-editor-core-Ddd_QaLn.js +1280 -0
  48. package/dist/select-utils-BgArYHk8.js +2140 -0
  49. package/dist/sidebar-core-CD6txDo3.js +583 -0
  50. package/dist/slider-core-vcWr321-.js +1014 -0
  51. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +2 -2
  52. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +1 -1
  53. package/dist/src/components/dropdown-table/index.d.ts +1 -1
  54. package/dist/src/components/dropdown-table/index.shadow.d.ts +1 -1
  55. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +1 -1
  56. package/dist/src/components/form/form-types.d.ts +9 -3
  57. package/dist/src/components/input/input-core.d.ts +1 -1
  58. package/dist/src/components/input/input-types.d.ts +1 -1
  59. package/dist/src/components/otp/otp-core.d.ts +1 -1
  60. package/dist/src/components/select/select-core.d.ts +1 -1
  61. package/dist/src/components/select/select-types.d.ts +1 -1
  62. package/dist/src/components/slider/slider-core.d.ts +1 -1
  63. package/dist/src/components/slider/slider-types.d.ts +1 -1
  64. package/dist/src/components/table/filter-suggestion.d.ts +171 -0
  65. package/dist/src/components/table/index.d.ts +5 -4
  66. package/dist/src/components/table/index.shadow.d.ts +5 -4
  67. package/dist/src/components/table/mono-data-grid.d.ts +22 -3
  68. package/dist/src/components/table/mono-table-empty-core.d.ts +37 -0
  69. package/dist/src/components/table/mono-table-search-core.d.ts +22 -3
  70. package/dist/src/components/table/table-types.d.ts +74 -4
  71. package/dist/src/components/tag-input/tag-input-core.d.ts +1 -1
  72. package/dist/src/components/tag-input/tag-input-types.d.ts +1 -1
  73. package/dist/src/components/textarea/textarea-core.d.ts +1 -1
  74. package/dist/src/composables/mono-event.d.ts +7 -1
  75. package/dist/src/entries/index.d.ts +8 -6
  76. package/dist/src/entries/index.node.d.ts +8 -6
  77. package/dist/src/search/index.d.ts +1 -1
  78. package/dist/src/utils/group-count.d.ts +36 -0
  79. package/dist/switch-utils-CTZ4id2V.js +338 -0
  80. package/dist/tabs-core-r5-B8k_N.js +317 -0
  81. package/dist/tag-input-utils-D2JA90DQ.js +3060 -0
  82. package/dist/textarea-utils-VU1KeXm8.js +821 -0
  83. package/dist/ui/accordion.js +2 -274
  84. package/dist/ui/alert.js +2 -131
  85. package/dist/ui/breadcrumb.js +4 -745
  86. package/dist/ui/button-dropdown.js +4 -652
  87. package/dist/ui/button.js +2 -63
  88. package/dist/ui/card.js +2 -310
  89. package/dist/ui/chart.js +4 -800
  90. package/dist/ui/checkbox.js +4 -335
  91. package/dist/ui/chip.js +4 -402
  92. package/dist/ui/date.js +3 -732
  93. package/dist/ui/drawer.js +3 -757
  94. package/dist/ui/dropdown-table.js +5 -1341
  95. package/dist/ui/dropdown.js +4 -509
  96. package/dist/ui/file-upload.js +3 -622
  97. package/dist/ui/filter.js +5 -380
  98. package/dist/ui/form.js +1 -1
  99. package/dist/ui/index.css +118 -1
  100. package/dist/ui/input.js +3 -1141
  101. package/dist/ui/menu.js +4 -828
  102. package/dist/ui/modal.js +4 -843
  103. package/dist/ui/nav.js +4 -223
  104. package/dist/ui/otp.js +4 -756
  105. package/dist/ui/radio.js +4 -317
  106. package/dist/ui/rich-text-editor.js +4 -1278
  107. package/dist/ui/select.js +5 -2138
  108. package/dist/ui/shadow/accordion.js +4 -273
  109. package/dist/ui/shadow/alert.js +4 -130
  110. package/dist/ui/shadow/breadcrumb.js +5 -744
  111. package/dist/ui/shadow/button-dropdown.js +6 -652
  112. package/dist/ui/shadow/button.js +3 -63
  113. package/dist/ui/shadow/card.js +4 -309
  114. package/dist/ui/shadow/chart.js +6 -1576
  115. package/dist/ui/shadow/checkbox.js +4 -334
  116. package/dist/ui/shadow/chip.js +4 -396
  117. package/dist/ui/shadow/date.js +7 -731
  118. package/dist/ui/shadow/drawer.js +4 -756
  119. package/dist/ui/shadow/dropdown-table.js +8 -1762
  120. package/dist/ui/shadow/dropdown.js +4 -508
  121. package/dist/ui/shadow/file-upload.js +4 -620
  122. package/dist/ui/shadow/filter.js +7 -379
  123. package/dist/ui/shadow/input.js +6 -1140
  124. package/dist/ui/shadow/menu.js +5 -828
  125. package/dist/ui/shadow/modal.js +6 -1063
  126. package/dist/ui/shadow/nav.js +5 -223
  127. package/dist/ui/shadow/otp.js +6 -754
  128. package/dist/ui/shadow/radio.js +4 -316
  129. package/dist/ui/shadow/rich-text-editor.js +4 -1276
  130. package/dist/ui/shadow/select.js +6 -2136
  131. package/dist/ui/shadow/sidebar.js +5 -581
  132. package/dist/ui/shadow/slider.js +5 -1010
  133. package/dist/ui/shadow/switch.js +4 -335
  134. package/dist/ui/shadow/table.js +10 -4501
  135. package/dist/ui/shadow/tabs.js +6 -315
  136. package/dist/ui/shadow/tag-input.js +7 -3057
  137. package/dist/ui/shadow/textarea.js +6 -817
  138. package/dist/ui/sidebar.js +3 -581
  139. package/dist/ui/slider.js +4 -1012
  140. package/dist/ui/switch.js +4 -336
  141. package/dist/ui/table.js +9 -4502
  142. package/dist/ui/tabs.js +4 -315
  143. package/dist/ui/tag-input.js +5 -3058
  144. package/dist/ui/textarea.js +4 -819
  145. package/dist/{vite-CivRCJaf.js → vite-CfW7z2wn.js} +21 -14
  146. package/dist/vite.js +1 -1
  147. package/dist/vue.d.ts +3 -2
  148. package/package.json +10 -11
  149. package/dist/chip-strip-bNfLn52Z.js +0 -215
  150. package/dist/data-source-controller-Dx6IQ2CN.js +0 -243
  151. package/dist/data-source-options-BM4r4PRw.js +0 -558
  152. package/dist/data-source-read-HyBCRg1t.js +0 -242
  153. package/dist/excel-BXzr3uI1.js +0 -784
  154. package/dist/export-ixRdCS2y.js +0 -2388
  155. package/dist/field-tooltip-addon-CWCp19mJ.js +0 -702
  156. package/dist/field-tooltip.css_raw-U5UeTa2d.js +0 -269
  157. package/dist/filter-builder-C0T3pMx2.js +0 -208
  158. package/dist/form-control-core-BbiACMtL.js +0 -226
  159. package/dist/icon-ClxnYhBG.js +0 -19
  160. package/dist/import-Dc4eXC02.js +0 -612
  161. package/dist/light-slots-_no0r2Z-.js +0 -246
  162. package/dist/markdown-uGlE_OfJ.js +0 -20191
  163. package/dist/mono-data-grid-e9ZVBlNN.js +0 -4240
  164. package/dist/normalize-error-BmLbgANw.js +0 -1048
@@ -0,0 +1,280 @@
1
+ import { d as buildSizeStyle } from "./mono-ui-kvLVIf1V.js";
2
+ import { t as customElement } from "./mono-element-CKcT0rwv.js";
3
+ import { t as __decorate } from "./decorate-DbYFpi8R.js";
4
+ import { n as bucketHasContent, r as captureLightSlots, s as placeSlotNode, t as LateSlotWatcher } from "./light-slots-B5Ck0t_E.js";
5
+ import { t as MonoButtonCore } from "./button-core-DerXg84Q.js";
6
+ import { LitElement, html, nothing } from "lit";
7
+ import { ifDefined } from "lit/directives/if-defined.js";
8
+ import { when } from "lit/directives/when.js";
9
+
10
+ //#region src/components/button/mono-button.ts
11
+ let MonoButton = class MonoButton extends MonoButtonCore(LitElement) {
12
+ constructor(..._args) {
13
+ super(..._args);
14
+ this._buckets = /* @__PURE__ */ new Map();
15
+ this._slotsCaptured = false;
16
+ this._guardedAffixes = /* @__PURE__ */ new WeakSet();
17
+ this._lateAffix = [];
18
+ }
19
+ createRenderRoot() {
20
+ return this;
21
+ }
22
+ /**
23
+ * Light-DOM refinement: `rounded="full"` auto-icon-only only when the default slot is
24
+ * empty. `bucketHasContent` (not a length check) so a bucket holding nothing but
25
+ * framework anchors still counts as empty.
26
+ */
27
+ _defaultIsEmpty() {
28
+ return !bucketHasContent(this._buckets.get("default"));
29
+ }
30
+ _renderBadge() {
31
+ return when(Boolean(this.badge), () => html`
32
+ <span class=${this._badgeClass} mono-badge=${this._badgeColor}>
33
+ ${this.badge}
34
+ </span>
35
+ `, () => nothing);
36
+ }
37
+ /**
38
+ * The `[data-mono-slot]` targets must be **structurally stable** across every
39
+ * re-render.
40
+ *
41
+ * These are light-DOM elements holding nodes the *consumer's* framework
42
+ * created and still tracks. Toggling `loading` used to swap between two
43
+ * template branches, so Lit destroyed the target `<span>` — taking the
44
+ * consumer's nodes with it — and `updated()` re-appended them into a brand-new
45
+ * one. Vue's vnodes then referenced detached nodes, and the next patch died
46
+ * with `TypeError: can't access property "__vnode", el is null`.
47
+ *
48
+ * So visibility is expressed with the existing `.button-icon.hidden` class
49
+ * (`display: none !important`), never by adding or removing the target. With
50
+ * the span stable, `_placeSlot` finds its nodes already in place and mutates
51
+ * nothing at all on a loading toggle.
52
+ */
53
+ _renderIconOnlyContent() {
54
+ return html`
55
+ <span class=${this._iconClass()} mono-icon ?mono-spinning=${this._showsSpinner} ?mono-empty=${!this._hasIcon && !this._showsSpinner} data-mono-slot="icon"></span>
56
+
57
+ ${this._renderBadge()}
58
+ `;
59
+ }
60
+ /**
61
+ * Icon slot class, hidden in place while loading rather than unmounted — but
62
+ * only in overlay mode. Inline loading keeps the icon, so the button doesn't
63
+ * reshuffle its contents just to show progress.
64
+ */
65
+ /**
66
+ * The icon box, which is also where the spinner is drawn.
67
+ *
68
+ * `spinning` paints the ring and hides whatever is slotted inside; `empty` collapses the box
69
+ * when there is neither. The span itself is ALWAYS rendered — see `_renderNormalContent`.
70
+ */
71
+ _iconClass() {
72
+ const base = this._cls("button-icon", "icon");
73
+ const state = [this._showsSpinner ? "spinning" : "", !this._hasIcon && !this._showsSpinner ? "empty" : ""].filter(Boolean).join(" ");
74
+ return state ? `${base} ${state}` : base;
75
+ }
76
+ _renderNormalContent() {
77
+ const contentBase = this._hasIcon ? this.iconPosition === "right" ? "button-content icon-right" : "button-content icon-left" : "button-content";
78
+ const contentClass = this._cls(contentBase, "content");
79
+ const iconClass = this._iconClass();
80
+ const textClass = this._cls("button-text", "text");
81
+ const iconSpan = (position) => this.iconPosition === position ? html`<span class=${iconClass} mono-icon ?mono-spinning=${this._showsSpinner} ?mono-empty=${!this._hasIcon && !this._showsSpinner} data-mono-slot="icon"></span>` : nothing;
82
+ return html`
83
+ <div class=${contentClass} mono-content>
84
+ ${iconSpan("left")}
85
+
86
+ <span class=${textClass} mono-text data-mono-slot="default"></span>
87
+
88
+ ${iconSpan("right")}
89
+ </div>
90
+
91
+ ${this._renderBadge()}
92
+ `;
93
+ }
94
+ _renderContent() {
95
+ if (this._isIconOnlyLike) return this._renderIconOnlyContent();
96
+ return this._renderNormalContent();
97
+ }
98
+ render() {
99
+ const isDisabled = this._isBlocked;
100
+ const isInert = this._isInert;
101
+ if (this.href) return this._renderWrapper(html`
102
+ ${this._renderAffix("prepend")}
103
+ <a
104
+ class=${"mono-button-native" + (this.cssClass?.main ? " " + this.cssClass.main : "")}
105
+ mono-native
106
+ href=${ifDefined(this.href)}
107
+ target=${ifDefined(this.target)}
108
+ title=${ifDefined(this.tooltip)}
109
+ aria-label=${ifDefined(this._ariaLabel)}
110
+ role="button"
111
+ aria-disabled=${isDisabled ? "true" : "false"}
112
+ aria-busy=${this._effectiveLoading ? "true" : "false"}
113
+ @click=${this._handleClick}
114
+ @keydown=${this._handleKeyDown}
115
+ @focus=${this._handleFocus}
116
+ @blur=${this._handleBlur}
117
+ >
118
+ ${this._renderContent()}
119
+ </a>
120
+ ${this._renderAffix("append")}
121
+ `);
122
+ return this._renderWrapper(html`
123
+ ${this._renderAffix("prepend")}
124
+ <button
125
+ class=${ifDefined(this.cssClass?.main)}
126
+ mono-native
127
+ type=${this.type}
128
+ title=${ifDefined(this.tooltip)}
129
+ aria-label=${ifDefined(this._ariaLabel)}
130
+ ?disabled=${isInert}
131
+ aria-disabled=${isDisabled ? "true" : "false"}
132
+ aria-busy=${this._effectiveLoading ? "true" : "false"}
133
+ @click=${this._handleClick}
134
+ @keydown=${this._handleKeyDown}
135
+ @focus=${this._handleFocus}
136
+ @blur=${this._handleBlur}
137
+ >
138
+ ${this._renderContent()}
139
+ </button>
140
+ ${this._renderAffix("append")}
141
+ `);
142
+ }
143
+ connectedCallback() {
144
+ super.connectedCallback();
145
+ this.setAttribute("role", "button");
146
+ this._captureSlots();
147
+ if (this.isConnected) this.performUpdate();
148
+ if (!this._lateAffix.length) for (const name of ["prepend", "append"]) this._lateAffix.push({
149
+ name,
150
+ watcher: new LateSlotWatcher(this, name, () => this._recaptureAffix())
151
+ });
152
+ for (const { watcher } of this._lateAffix) watcher.start();
153
+ }
154
+ disconnectedCallback() {
155
+ for (const { watcher } of this._lateAffix) watcher.stop();
156
+ super.disconnectedCallback();
157
+ }
158
+ /**
159
+ * Claim a `slot="prepend"` / `slot="append"` child that arrived after connect.
160
+ *
161
+ * Deliberately NOT `captureLightSlots` a second time. This build renders into
162
+ * the host (`createRenderRoot` → `this`), so by now the host's children include
163
+ * Lit's own `<div class="mono-button">` — a re-capture would bucket that as
164
+ * default content and detach it, wiping the rendered button. `LateSlotWatcher`
165
+ * hands back only the direct child carrying the slot name, which is all that is
166
+ * wanted here.
167
+ */
168
+ _recaptureAffix() {
169
+ let gained = false;
170
+ for (const { name, watcher } of this._lateAffix) {
171
+ const el = watcher.find();
172
+ if (!el) continue;
173
+ el.removeAttribute("slot");
174
+ if (el.parentNode === this) this.removeChild(el);
175
+ this._buckets.set(name, [...this._buckets.get(name) ?? [], el]);
176
+ if (name === "prepend") this._hasPrepend = true;
177
+ else this._hasAppend = true;
178
+ gained = true;
179
+ }
180
+ if (gained) this.requestUpdate();
181
+ }
182
+ /**
183
+ * Stop a nested control's click at the affix boundary — the plain `click`
184
+ * and the `mno-click` / `mnoClick` aliases alike.
185
+ *
186
+ * An affix can hold a whole `<mono-button>` or a dropdown caret. Sibling
187
+ * placement keeps its clicks out of `_handleClick`, but they would still
188
+ * bubble to the HOST, where a consumer's `@click` is this button's action —
189
+ * a split button's caret would run the button's handler. So an affix's click
190
+ * ends here: its own handlers (deeper) and any document-level CAPTURE
191
+ * listener have already run. Same guard `mono-button-dropdown` puts on its
192
+ * embedded buttons.
193
+ */
194
+ _guardAffixEvents(el) {
195
+ if (this._guardedAffixes.has(el)) return;
196
+ this._guardedAffixes.add(el);
197
+ const stop = (event) => event.stopPropagation();
198
+ el.addEventListener("click", stop);
199
+ el.addEventListener("mno-click", stop);
200
+ el.addEventListener("mnoClick", stop);
201
+ }
202
+ _captureSlots() {
203
+ if (this._slotsCaptured) return;
204
+ this._slotsCaptured = true;
205
+ this._buckets = captureLightSlots(this, { names: [
206
+ "icon",
207
+ "prepend",
208
+ "append"
209
+ ] });
210
+ this._hasIcon = bucketHasContent(this._buckets.get("icon"));
211
+ this._hasPrepend = bucketHasContent(this._buckets.get("prepend"));
212
+ this._hasAppend = bucketHasContent(this._buckets.get("append"));
213
+ }
214
+ /**
215
+ * An affix zone renders only when its slot has content, so an affix-free button
216
+ * keeps byte-identical markup. That conditional is safe here — unlike the icon
217
+ * span, whose target must never unmount — because capture runs BEFORE the
218
+ * synchronous first render in `connectedCallback`, and because the flags only
219
+ * ever go false→true: captured nodes stay captured, so a target that exists
220
+ * once is never taken away from under the consumer's nodes.
221
+ */
222
+ _renderAffix(name) {
223
+ if (!(name === "prepend" ? this._hasPrepend : this._hasAppend)) return nothing;
224
+ const cls = [
225
+ `button-${name}`,
226
+ this._affix(name).divider ? "has-divider" : "",
227
+ this._affixDisabled(name) ? "disabled" : "",
228
+ this.cssClass?.[name] ?? ""
229
+ ].filter(Boolean).join(" ");
230
+ return html`<span
231
+ class=${cls}
232
+ mono-affix=${name}
233
+ ?mono-divider=${Boolean(this._affix(name).divider)}
234
+ ?mono-disabled=${this._affixDisabled(name)}
235
+ data-mono-slot=${name}
236
+ ></span>`;
237
+ }
238
+ /**
239
+ * Apply sizing to the HOST (`mono-button` is inline-block). The `.sized` class
240
+ * makes the wrapper + inner control fill the host, so width/height set here
241
+ * cascade down. Props that aren't set are removed so they don't linger.
242
+ */
243
+ _applyHostSize() {
244
+ const style = buildSizeStyle(this);
245
+ for (const prop of [
246
+ "width",
247
+ "height",
248
+ "min-width",
249
+ "max-width",
250
+ "min-height",
251
+ "max-height"
252
+ ]) {
253
+ const value = style[prop];
254
+ if (value) this.style.setProperty(prop, value);
255
+ else this.style.removeProperty(prop);
256
+ }
257
+ }
258
+ updated(changed) {
259
+ super.updated(changed);
260
+ this._applyHostSize();
261
+ this._placeSlot("icon", this._buckets.get("icon") ?? []);
262
+ this._placeSlot("prepend", this._buckets.get("prepend") ?? []);
263
+ this._placeSlot("append", this._buckets.get("append") ?? []);
264
+ for (const name of ["prepend", "append"]) {
265
+ const zone = this.querySelector(`[data-mono-slot="${name}"]`);
266
+ if (zone) this._guardAffixEvents(zone);
267
+ }
268
+ if (!this._isIconOnlyLike) this._placeSlot("default", this._buckets.get("default") ?? []);
269
+ }
270
+ _placeSlot(name, nodes) {
271
+ if (!nodes.length) return;
272
+ const target = this.querySelector(`[data-mono-slot="${name}"]`);
273
+ if (!target) return;
274
+ for (const node of nodes) placeSlotNode(target, node);
275
+ }
276
+ };
277
+ MonoButton = __decorate([customElement("mono-button")], MonoButton);
278
+
279
+ //#endregion
280
+ export { MonoButton as t };