@mono-lit/helper 0.0.8 → 0.0.10

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 (161) 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-CLqE8F8P.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-DUXo_jxd.js → mono-data-dropdown-Bgj2PDfm.js} +1 -1
  38. package/dist/{mono-data-grid-Bb00QM72.js → mono-data-grid-DJkp96N-.js} +346 -51
  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/otp-core-DXg3vFLh.js +758 -0
  45. package/dist/radio-utils-Dk9Tl1jz.js +319 -0
  46. package/dist/rich-text-editor-core-Ddd_QaLn.js +1280 -0
  47. package/dist/select-utils-BgArYHk8.js +2140 -0
  48. package/dist/sidebar-core-CD6txDo3.js +583 -0
  49. package/dist/slider-core-vcWr321-.js +1014 -0
  50. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +2 -2
  51. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +1 -1
  52. package/dist/src/components/dropdown-table/index.d.ts +1 -1
  53. package/dist/src/components/dropdown-table/index.shadow.d.ts +1 -1
  54. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +1 -1
  55. package/dist/src/components/form/form-types.d.ts +9 -3
  56. package/dist/src/components/input/input-core.d.ts +1 -1
  57. package/dist/src/components/input/input-types.d.ts +1 -1
  58. package/dist/src/components/otp/otp-core.d.ts +1 -1
  59. package/dist/src/components/select/select-core.d.ts +1 -1
  60. package/dist/src/components/select/select-types.d.ts +1 -1
  61. package/dist/src/components/slider/slider-core.d.ts +1 -1
  62. package/dist/src/components/slider/slider-types.d.ts +1 -1
  63. package/dist/src/components/table/filter-suggestion.d.ts +171 -0
  64. package/dist/src/components/table/index.d.ts +5 -4
  65. package/dist/src/components/table/index.shadow.d.ts +5 -4
  66. package/dist/src/components/table/mono-data-grid.d.ts +58 -3
  67. package/dist/src/components/table/mono-table-empty-core.d.ts +37 -0
  68. package/dist/src/components/table/mono-table-search-core.d.ts +22 -3
  69. package/dist/src/components/table/table-types.d.ts +74 -4
  70. package/dist/src/components/tag-input/tag-input-core.d.ts +1 -1
  71. package/dist/src/components/tag-input/tag-input-types.d.ts +1 -1
  72. package/dist/src/components/textarea/textarea-core.d.ts +1 -1
  73. package/dist/src/composables/mono-event.d.ts +7 -1
  74. package/dist/src/entries/index.d.ts +8 -6
  75. package/dist/src/entries/index.node.d.ts +8 -6
  76. package/dist/src/search/index.d.ts +1 -1
  77. package/dist/src/utils/group-count.d.ts +36 -0
  78. package/dist/switch-utils-CTZ4id2V.js +338 -0
  79. package/dist/tabs-core-r5-B8k_N.js +317 -0
  80. package/dist/tag-input-utils-D2JA90DQ.js +3060 -0
  81. package/dist/textarea-utils-VU1KeXm8.js +821 -0
  82. package/dist/ui/accordion.js +2 -274
  83. package/dist/ui/alert.js +2 -131
  84. package/dist/ui/breadcrumb.js +4 -745
  85. package/dist/ui/button-dropdown.js +4 -652
  86. package/dist/ui/button.js +2 -63
  87. package/dist/ui/card.js +2 -310
  88. package/dist/ui/chart.js +4 -800
  89. package/dist/ui/checkbox.js +4 -335
  90. package/dist/ui/chip.js +4 -402
  91. package/dist/ui/date.js +3 -732
  92. package/dist/ui/drawer.js +3 -757
  93. package/dist/ui/dropdown-table.js +5 -1341
  94. package/dist/ui/dropdown.js +4 -509
  95. package/dist/ui/file-upload.js +3 -622
  96. package/dist/ui/filter.js +5 -380
  97. package/dist/ui/form.js +1 -1
  98. package/dist/ui/index.css +130 -5
  99. package/dist/ui/input.js +3 -1141
  100. package/dist/ui/menu.js +4 -828
  101. package/dist/ui/modal.js +4 -843
  102. package/dist/ui/nav.js +4 -223
  103. package/dist/ui/otp.js +4 -756
  104. package/dist/ui/radio.js +4 -317
  105. package/dist/ui/rich-text-editor.js +4 -1278
  106. package/dist/ui/select.js +5 -2138
  107. package/dist/ui/shadow/accordion.js +4 -273
  108. package/dist/ui/shadow/alert.js +4 -130
  109. package/dist/ui/shadow/breadcrumb.js +5 -744
  110. package/dist/ui/shadow/button-dropdown.js +6 -652
  111. package/dist/ui/shadow/button.js +3 -63
  112. package/dist/ui/shadow/card.js +4 -309
  113. package/dist/ui/shadow/chart.js +6 -1576
  114. package/dist/ui/shadow/checkbox.js +4 -334
  115. package/dist/ui/shadow/chip.js +4 -396
  116. package/dist/ui/shadow/date.js +7 -731
  117. package/dist/ui/shadow/drawer.js +4 -756
  118. package/dist/ui/shadow/dropdown-table.js +8 -1762
  119. package/dist/ui/shadow/dropdown.js +4 -508
  120. package/dist/ui/shadow/file-upload.js +4 -620
  121. package/dist/ui/shadow/filter.js +7 -379
  122. package/dist/ui/shadow/input.js +6 -1140
  123. package/dist/ui/shadow/menu.js +5 -828
  124. package/dist/ui/shadow/modal.js +6 -1063
  125. package/dist/ui/shadow/nav.js +5 -223
  126. package/dist/ui/shadow/otp.js +6 -754
  127. package/dist/ui/shadow/radio.js +4 -316
  128. package/dist/ui/shadow/rich-text-editor.js +4 -1276
  129. package/dist/ui/shadow/select.js +6 -2136
  130. package/dist/ui/shadow/sidebar.js +5 -581
  131. package/dist/ui/shadow/slider.js +5 -1010
  132. package/dist/ui/shadow/switch.js +4 -335
  133. package/dist/ui/shadow/table.js +10 -4501
  134. package/dist/ui/shadow/tabs.js +6 -315
  135. package/dist/ui/shadow/tag-input.js +7 -3057
  136. package/dist/ui/shadow/textarea.js +6 -817
  137. package/dist/ui/sidebar.js +3 -581
  138. package/dist/ui/slider.js +4 -1012
  139. package/dist/ui/switch.js +4 -336
  140. package/dist/ui/table.js +9 -4502
  141. package/dist/ui/tabs.js +4 -315
  142. package/dist/ui/tag-input.js +5 -3058
  143. package/dist/ui/textarea.js +4 -819
  144. package/dist/vue.d.ts +3 -2
  145. package/package.json +3 -3
  146. package/dist/chip-strip-bNfLn52Z.js +0 -215
  147. package/dist/data-source-controller-Dx6IQ2CN.js +0 -243
  148. package/dist/data-source-options-BM4r4PRw.js +0 -558
  149. package/dist/data-source-read-HyBCRg1t.js +0 -242
  150. package/dist/excel-BXzr3uI1.js +0 -784
  151. package/dist/export-ixRdCS2y.js +0 -2388
  152. package/dist/field-tooltip-addon-CWCp19mJ.js +0 -702
  153. package/dist/field-tooltip.css_raw-U5UeTa2d.js +0 -269
  154. package/dist/filter-builder-C0T3pMx2.js +0 -208
  155. package/dist/form-control-core-BbiACMtL.js +0 -226
  156. package/dist/icon-ClxnYhBG.js +0 -19
  157. package/dist/import-Dc4eXC02.js +0 -612
  158. package/dist/light-slots-_no0r2Z-.js +0 -246
  159. package/dist/markdown-uGlE_OfJ.js +0 -20191
  160. package/dist/mono-data-grid-Bkr-e1-i.js +0 -4043
  161. package/dist/normalize-error-BmLbgANw.js +0 -1048
package/dist/export.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { c as escapeCellText, d as __toESM, l as stripDirectives, o as parseMarkdown, s as encodeDirective, t as DEFAULT_STYLES, u as __commonJSMin } from "./styles-D-ergrfR.js";
2
- import { n as isReadableSource, r as readAllRows } from "./data-source-read-BL266IW0.js";
2
+ import { n as isReadableSource, r as readAllRows } from "./data-source-read-uKJpRAzx.js";
3
3
  import { n as unwrapReactive } from "./reactive-Dtd-esHO.js";
4
4
 
5
5
  //#region src/export/download.ts
@@ -236,7 +236,7 @@ function toODataClause(field, op, value) {
236
236
  const inner = "d/" + after.map((s) => s.name).join("/");
237
237
  const lit = odataLiteral(value);
238
238
  let body;
239
- if (op === "contains" || op === "startswith" || op === "endswith") body = `${op}(${inner},${lit})`;
239
+ if (op === "contains" || op === "startswith" || op === "endswith") body = `${op}(tolower(${inner}),${odataLiteral(String(value ?? "").toLowerCase())})`;
240
240
  else {
241
241
  const cmp = odataComparison(op);
242
242
  if (!cmp) {
@@ -0,0 +1,5 @@
1
+ //#region \0raw:C:\Users\VCT-DEV\Desktop\libs\packages\helper\src\components\form\field-tooltip.css?raw.js
2
+ var field_tooltip_css_raw_default = "/* =========================================\r\n Field tooltip — the BUILT-IN bubble behind a plain-text `tooltip=\"…\"` on\r\n every field control (input, select, tag-input, date, textarea,\r\n dropdown-table, slider). No floating-ui: composables/field-tooltip.ts\r\n shows it in the top layer (Popover API) and writes its fixed `top` /\r\n `left`, `mono-side` (top|bottom) and the arrow's x. The object form\r\n (`.tooltip=${{…}}`) is the tooltip addon instead and never reaches here.\r\n\r\n Looks like the addon's default `mono-tooltip`, and reads its public knobs:\r\n --mono-tooltip-bg / -color / -radius / -max-width / -font-size /\r\n -line-height / -padding-x / -padding-y.\r\n\r\n Light: imported once by entries/index.css. Shadow: appended to each\r\n control's shadow sheet.\r\n ========================================= */\r\n\r\n[mono-field-bubble] {\r\n --_mono-field-tip-bg: var(--mono-tooltip-bg, var(--foreground));\r\n --_mono-field-tip-arrow: calc(var(--mono-spacing) * 2);\r\n\r\n /* undo the [popover] UA box (inset:0; margin:auto; border; Canvas …) */\r\n position: fixed;\r\n inset: auto;\r\n top: 0;\r\n left: 0;\r\n z-index: var(--mono-popup-z, 1000);\r\n display: none;\r\n box-sizing: border-box;\r\n width: max-content;\r\n max-width: min(var(--mono-tooltip-max-width, 20rem), calc(100vw - 16px));\r\n height: auto;\r\n margin: 0;\r\n overflow: visible;\r\n padding: var(--mono-tooltip-padding-y, calc(var(--mono-spacing) * 1.5)) var(--mono-tooltip-padding-x, calc(var(--mono-spacing) * 3));\r\n border: 0;\r\n border-radius: var(--mono-tooltip-radius, var(--mono-radius-md));\r\n background: var(--_mono-field-tip-bg);\r\n color: var(--mono-tooltip-color, var(--background));\r\n box-shadow: var(--mono-tooltip-shadow, 0 0 0 0 transparent);\r\n\r\n /* it sits inside the label — drop everything the label row set */\r\n font-family: inherit;\r\n font-size: var(--mono-tooltip-font-size, var(--mono-text-xs));\r\n font-weight: var(--mono-font-weight-normal, 400);\r\n font-style: normal;\r\n line-height: var(--mono-tooltip-line-height, var(--mono-text-xs--lh));\r\n letter-spacing: normal;\r\n text-transform: none;\r\n text-align: start;\r\n white-space: normal;\r\n overflow-wrap: break-word;\r\n cursor: default;\r\n user-select: text;\r\n pointer-events: auto;\r\n}\r\n\r\n[mono-field-bubble][mono-open] {\r\n display: block;\r\n animation: mono-field-tip-in var(--mono-duration, 150ms) var(--mono-ease, ease) both;\r\n}\r\n\r\n/* The arrow, plus (::before) an invisible bridge over the gap so the pointer\r\n can travel from the icon onto the bubble without it closing. */\r\n[mono-field-bubble]::after {\r\n content: '';\r\n position: absolute;\r\n left: var(--_mono-field-tip-arrow-x, 50%);\r\n width: var(--_mono-field-tip-arrow);\r\n height: var(--_mono-field-tip-arrow);\r\n background: inherit;\r\n border-radius: 2px;\r\n translate: -50% 0;\r\n rotate: 45deg;\r\n}\r\n\r\n[mono-field-bubble]::before {\r\n content: '';\r\n position: absolute;\r\n inset-inline: 0;\r\n height: 8px;\r\n}\r\n\r\n[mono-field-bubble]:not([mono-side=\"bottom\"])::after {\r\n bottom: calc(var(--_mono-field-tip-arrow) / -2 + 1px);\r\n}\r\n[mono-field-bubble]:not([mono-side=\"bottom\"])::before {\r\n top: 100%;\r\n}\r\n[mono-field-bubble][mono-side=\"bottom\"]::after {\r\n top: calc(var(--_mono-field-tip-arrow) / -2 + 1px);\r\n}\r\n[mono-field-bubble][mono-side=\"bottom\"]::before {\r\n bottom: 100%;\r\n}\r\n\r\n@keyframes mono-field-tip-in {\r\n from {\r\n opacity: 0;\r\n }\r\n}\r\n\r\n@media (prefers-reduced-motion: reduce) {\r\n [mono-field-bubble][mono-open] {\r\n animation: none;\r\n }\r\n}\r\n";
3
+
4
+ //#endregion
5
+ export { field_tooltip_css_raw_default as t };
@@ -1,172 +1,3 @@
1
- import { r as checkCircleIcon, t as alertCircleIcon } from "./field-icons-t8rXRCKs.js";
2
- import { r as FieldBubble } from "./field-tooltip.css_raw-U5UeTa2d.js";
3
- import { html, nothing } from "lit";
4
- import { ref } from "lit/directives/ref.js";
5
-
6
- //#region src/composables/field-validation.ts
7
- /** `default` (or no state) → `null`: a stateless message stays in the bottom row. */
8
- function toneOf(state) {
9
- if (state === "invalid" || state === "error") return "invalid";
10
- if (state === "valid" || state === "success") return "valid";
11
- if (state === "warning") return "warning";
12
- return null;
13
- }
14
- var FieldValidationController = class {
15
- constructor(host, read, getBox) {
16
- this.host = host;
17
- this.read = read;
18
- this.getBox = getBox;
19
- this._iconBubble = new FieldBubble({
20
- side: "top",
21
- align: "center"
22
- });
23
- this._floatBubble = new FieldBubble({
24
- side: "bottom",
25
- align: "start"
26
- });
27
- this._hovered = false;
28
- this._focused = false;
29
- this._onIconClick = (e) => {
30
- stopEvent(e);
31
- this._iconBubble.show();
32
- };
33
- this._onEnter = () => {
34
- this._hovered = true;
35
- this._syncFloat();
36
- };
37
- this._onLeave = (e) => {
38
- if (e.pointerType === "touch") return;
39
- this._hovered = false;
40
- this._syncFloat();
41
- };
42
- this._onFocusIn = (e) => {
43
- this._focused = true;
44
- this._syncFloat();
45
- if (this.notice?.position === "icon" && isFocusVisible(e)) this._iconBubble.show();
46
- };
47
- this._onFocusOut = (e) => {
48
- const next = e.relatedTarget;
49
- if (next && (next === this.host || this.host.contains(next))) return;
50
- this._focused = false;
51
- this._syncFloat();
52
- this._iconBubble.hide();
53
- };
54
- host.addController(this);
55
- }
56
- /** The message that moved out of the bottom row, or `null` (bottom mode / no text). */
57
- get notice() {
58
- const { position, state, text } = this.read();
59
- if (position !== "icon" && position !== "float") return null;
60
- const message = typeof text === "string" ? text.trim() : "";
61
- const tone = toneOf(state);
62
- if (!message || !tone) return null;
63
- return {
64
- position,
65
- tone,
66
- text: message
67
- };
68
- }
69
- /** True when the bottom row should show the helper and keep the validation text sr-only. */
70
- get moved() {
71
- return this.notice !== null;
72
- }
73
- hostConnected() {
74
- this.host.addEventListener("pointerenter", this._onEnter);
75
- this.host.addEventListener("pointerleave", this._onLeave);
76
- this.host.addEventListener("focusin", this._onFocusIn);
77
- this.host.addEventListener("focusout", this._onFocusOut);
78
- }
79
- hostDisconnected() {
80
- this.host.removeEventListener("pointerenter", this._onEnter);
81
- this.host.removeEventListener("pointerleave", this._onLeave);
82
- this.host.removeEventListener("focusin", this._onFocusIn);
83
- this.host.removeEventListener("focusout", this._onFocusOut);
84
- this._iconBubble.hide();
85
- this._floatBubble.hide();
86
- this._hovered = false;
87
- this._focused = false;
88
- }
89
- hostUpdated() {
90
- this._floatBubble.setAnchor(this.getBox() ?? null);
91
- if (this.notice?.position !== "icon") this._iconBubble.hide();
92
- this._syncFloat();
93
- this._iconBubble.place();
94
- this._floatBubble.place();
95
- }
96
- /** Re-evaluate the float bubble — for popups the host opens without a re-render (date's calendar). */
97
- refresh() {
98
- this._syncFloat();
99
- }
100
- /**
101
- * `icon` mode: the state icon for inside the box (before the clear button /
102
- * actions). `anchored` wraps it in a zero-height `[mono-validation-anchor]`
103
- * — for the textarea, whose box can't hold children.
104
- */
105
- renderIcon(options = {}) {
106
- const notice = this.notice;
107
- if (notice?.position !== "icon") return nothing;
108
- const icon = html`<span
109
- mono-validation-icon
110
- mono-state=${notice.tone}
111
- aria-hidden="true"
112
- @pointerenter=${this._iconBubble.show}
113
- @pointerleave=${this._iconBubble.onPointerLeave}
114
- @pointerdown=${stopEvent}
115
- @click=${this._onIconClick}
116
- ${ref(this._iconBubble.setAnchor)}
117
- >${this._glyph(notice.tone)}<span
118
- mono-field-bubble
119
- mono-validation-tip
120
- mono-state=${notice.tone}
121
- popover="manual"
122
- @pointerenter=${this._iconBubble.cancelHide}
123
- @pointerleave=${this._iconBubble.onPointerLeave}
124
- @click=${stopEvent}
125
- ${ref(this._iconBubble.setBubble)}
126
- >${notice.text}</span></span>`;
127
- return options.anchored ? html`<span mono-validation-anchor>${icon}</span>` : icon;
128
- }
129
- /** `float` mode: the bubble that floats under the box while the field is hovered or focused. */
130
- renderFloat() {
131
- const notice = this.notice;
132
- if (notice?.position !== "float") return nothing;
133
- return html`<span
134
- mono-field-bubble
135
- mono-validation-float
136
- mono-state=${notice.tone}
137
- aria-hidden="true"
138
- popover="manual"
139
- @click=${stopEvent}
140
- ${ref(this._floatBubble.setBubble)}
141
- >${notice.text}</span>`;
142
- }
143
- /** Light build: UnoCSS mask icons; shadow build: inline SVG (page icon CSS can't reach a shadow root). */
144
- _glyph(tone) {
145
- if (this.host.renderRoot instanceof ShadowRoot) return tone === "valid" ? checkCircleIcon() : alertCircleIcon();
146
- return tone === "valid" ? html`<span class="mono-icon i-mdi-check-circle-outline" mono-icon aria-hidden="true"></span>` : html`<span class="mono-icon i-mdi-alert-circle-outline" mono-icon aria-hidden="true"></span>`;
147
- }
148
- _syncFloat() {
149
- const notice = this.notice;
150
- const active = this._hovered || this._focused;
151
- if (notice?.position === "float" && active && !this.read().suppressed) this._floatBubble.show();
152
- else if (!active) this._floatBubble.scheduleHide();
153
- else this._floatBubble.hide();
154
- }
155
- };
156
- const stopEvent = (e) => {
157
- e.preventDefault();
158
- e.stopPropagation();
159
- };
160
- function isFocusVisible(e) {
161
- const target = e.composedPath?.()[0] ?? e.target;
162
- try {
163
- return !!target?.matches?.(":focus-visible");
164
- } catch {
165
- return false;
166
- }
167
- }
168
-
169
- //#endregion
170
1
  //#region \0raw:C:\Users\VCT-DEV\Desktop\libs\packages\helper\src\components\form\label-position.css?raw.js
171
2
  var label_position_css_raw_default = "/* =========================================\r\n label-position — shared by every field-like control\r\n (input, select, tag-input, date, textarea, dropdown-table; otp — left / right only).\r\n\r\n `top` (default) emits NO attribute, so nothing here touches it. The other\r\n three are layout-only: the label's type, colour and states stay with each\r\n component's own label rules.\r\n\r\n Each component's root writes the private slots read below:\r\n --_mono-lp-width left/right label column (--mono-<c>-label-width, auto)\r\n --_mono-lp-gap left/right column gap (--mono-<c>-label-side-gap)\r\n --_mono-lp-height one control row — the side label centres on it\r\n --_mono-lp-box-min the box's resting min-height (textarea: its rows)\r\n --_mono-lp-padding-x the box's inline-start padding — the notch lines up with the text\r\n --_mono-lp-font notched label font-size (--mono-<c>-label-notch-font-size)\r\n --_mono-lp-notch-bg the surface the notch is cut from (--mono-<c>-label-notch-bg)\r\n --_mono-lp-field-bg the box's own surface — paints the notch's lower half\r\n\r\n Light: imported once by entries/index.css. Shadow: appended to each\r\n component's shadow sheet (the inner root keeps its `mono-<c>` attribute).\r\n ========================================= */\r\n\r\n/* ── left / right — label column + field column; messages stay under the box ── */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp]):is([mono-label-position=\"left\"], [mono-label-position=\"right\"]) {\r\n display: grid;\r\n grid-template-columns: var(--_mono-lp-width) minmax(0, 1fr);\r\n column-gap: var(--_mono-lp-gap);\r\n align-items: start;\r\n}\r\n\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp])[mono-label-position=\"right\"] {\r\n grid-template-columns: minmax(0, 1fr) var(--_mono-lp-width);\r\n}\r\n\r\n/* Everything but the label lives in the field column (an absolute panel then\r\n measures against that column too). */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp])[mono-label-position=\"left\"] > * {\r\n grid-column: 2;\r\n}\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp])[mono-label-position=\"right\"] > * {\r\n grid-column: 1;\r\n}\r\n\r\n/* The label centres on the FIRST control row, so a tag-input growing chip\r\n rows or a tall textarea keeps it beside the top line. */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp]):is([mono-label-position=\"left\"], [mono-label-position=\"right\"]) > :is([mono-label], [mono-dd-label]) {\r\n grid-row: 1;\r\n grid-column: 1;\r\n min-height: var(--_mono-lp-height);\r\n margin: 0;\r\n}\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table], [mono-otp])[mono-label-position=\"right\"] > :is([mono-label], [mono-dd-label]) {\r\n grid-column: 2;\r\n}\r\n\r\n/* ── notched — shared by both looks: the label leaves the flow ── */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position=\"notched\"] {\r\n position: relative;\r\n}\r\n\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position=\"notched\"] > :is([mono-label], [mono-dd-label]) {\r\n position: absolute;\r\n z-index: 1;\r\n max-width: calc(100% - 2 * var(--_mono-lp-padding-x) - 2 * var(--mono-spacing));\r\n margin: 0;\r\n font-size: var(--_mono-lp-font);\r\n line-height: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n/* ── notched + outlined — the label sits ON the top border: ──Label── ──\r\n The \"notch\" is a background patch: page surface above the border line, the\r\n box's surface below it. On a non-solid parent set --mono-<c>-label-notch-bg. */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position=\"notched\"]:is(:not([mono-variant]), [mono-variant=\"outlined\"]) {\r\n padding-top: calc(var(--_mono-lp-font) / 2);\r\n}\r\n\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position=\"notched\"]:is(:not([mono-variant]), [mono-variant=\"outlined\"]) > :is([mono-label], [mono-dd-label]) {\r\n top: 0;\r\n inset-inline-start: calc(var(--mono-border-width) + var(--_mono-lp-padding-x) - var(--mono-spacing));\r\n padding-inline: var(--mono-spacing);\r\n background:\r\n linear-gradient(var(--_mono-lp-field-bg), var(--_mono-lp-field-bg)) bottom / 100% 50% no-repeat,\r\n var(--_mono-lp-notch-bg);\r\n}\r\n\r\n/* ── notched + filled / underlined — no outline to cut, so the label insets\r\n into the top of the box (Material \"filled\") and the box grows by its line ── */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position=\"notched\"]:is([mono-variant=\"filled\"], [mono-variant=\"underlined\"]) > :is([mono-label], [mono-dd-label]) {\r\n top: calc(var(--mono-border-width) + var(--_mono-lp-inset-y));\r\n inset-inline-start: calc(var(--mono-border-width) + var(--_mono-lp-padding-x));\r\n}\r\n\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea])[mono-label-position=\"notched\"]:is([mono-variant=\"filled\"], [mono-variant=\"underlined\"]) > :is([mono-field], [mono-trigger], textarea[mono-native]),\r\n[mono-dropdown-table][mono-label-position=\"notched\"]:is([mono-variant=\"filled\"], [mono-variant=\"underlined\"]) > [mono-dd-control] > [mono-dd-trigger] {\r\n min-height: calc(var(--_mono-lp-box-min) + var(--_mono-lp-font) + var(--_mono-lp-inset-y));\r\n padding-top: calc(var(--_mono-lp-inset-y) + var(--_mono-lp-font) + var(--_mono-lp-padding-y, 0px));\r\n}\r\n\r\n/* Slots the component sheets don't need to set. */\r\n:is([mono-input], [mono-select], [mono-tag-input], [mono-date], [mono-textarea], [mono-dropdown-table])[mono-label-position] {\r\n --_mono-lp-inset-y: calc(var(--mono-spacing) * 1.5);\r\n}\r\n";
172
3
 
@@ -175,4 +6,4 @@ var label_position_css_raw_default = "/* =======================================
175
6
  var field_validation_css_raw_default = "/* =========================================\r\n validation-position — `icon` and `float` (composables/field-validation.ts)\r\n on input, select, tag-input, date, textarea and dropdown-table.\r\n\r\n The bubbles share the [mono-field-bubble] look (field-tooltip.css); this\r\n sheet paints them in the state colour, and draws the state icon inside the\r\n box. Knobs:\r\n --mono-validation-invalid-bg / -color (default --destructive / -foreground)\r\n --mono-validation-warning-bg / -color (default --warning / -foreground)\r\n --mono-validation-valid-bg / -color (default --success / -foreground)\r\n --mono-validation-icon-size (default 1rem)\r\n\r\n Light: imported once by entries/index.css. Shadow: appended to each\r\n control's shadow sheet.\r\n ========================================= */\r\n\r\n/* ── state-coloured bubbles ── */\r\n[mono-field-bubble][mono-state=\"invalid\"] {\r\n --_mono-field-tip-bg: var(--mono-validation-invalid-bg, var(--destructive));\r\n color: var(--mono-validation-invalid-color, var(--destructive-foreground, #fff));\r\n}\r\n[mono-field-bubble][mono-state=\"warning\"] {\r\n --_mono-field-tip-bg: var(--mono-validation-warning-bg, var(--warning));\r\n color: var(--mono-validation-warning-color, var(--warning-foreground, #fff));\r\n}\r\n[mono-field-bubble][mono-state=\"valid\"] {\r\n --_mono-field-tip-bg: var(--mono-validation-valid-bg, var(--success));\r\n color: var(--mono-validation-valid-color, var(--success-foreground, #fff));\r\n}\r\n\r\n/* ── float: a compact message under the box ── */\r\n[mono-field-bubble][mono-validation-float] {\r\n max-width: min(var(--mono-validation-float-max-width, 24rem), calc(100vw - 16px));\r\n padding: var(--mono-validation-float-padding-y, var(--mono-spacing)) var(--mono-validation-float-padding-x, calc(var(--mono-spacing) * 2));\r\n font-size: var(--mono-validation-float-font-size, var(--mono-text-xs));\r\n /* hover-transparent: it must not steal the pointer from the field it describes */\r\n pointer-events: none;\r\n}\r\n[mono-field-bubble][mono-validation-float]::before {\r\n display: none;\r\n}\r\n\r\n/* ── icon: the state glyph inside the box ── */\r\n[mono-validation-icon] {\r\n position: relative;\r\n display: inline-flex;\r\n flex: none;\r\n align-items: center;\r\n justify-content: center;\r\n align-self: center;\r\n margin-inline: var(--mono-validation-icon-gap, var(--mono-spacing));\r\n font-size: var(--mono-validation-icon-size, 1rem);\r\n line-height: 1;\r\n cursor: help;\r\n /* a disabled field turns events off — the reason is exactly what to show */\r\n pointer-events: auto;\r\n}\r\n[mono-validation-icon] > [mono-icon] {\r\n width: 1em;\r\n height: 1em;\r\n}\r\n[mono-validation-icon][mono-state=\"invalid\"] {\r\n color: var(--mono-validation-invalid-bg, var(--destructive));\r\n}\r\n[mono-validation-icon][mono-state=\"warning\"] {\r\n color: var(--mono-validation-warning-bg, var(--warning));\r\n}\r\n[mono-validation-icon][mono-state=\"valid\"] {\r\n color: var(--mono-validation-valid-bg, var(--success));\r\n}\r\n\r\n/* textarea: the box can't hold children, so a zero-height anchor sits on the\r\n textarea's top edge (its negative margin cancels the flex gap it adds) and\r\n the icon pins to the top-right corner, over reserved inline padding. */\r\n[mono-textarea] > [mono-validation-anchor] {\r\n position: relative;\r\n z-index: 1;\r\n display: block;\r\n height: 0;\r\n margin-bottom: calc(-1 * var(--mono-textarea-gap, calc(var(--mono-spacing) * 3)));\r\n}\r\n[mono-textarea] > [mono-validation-anchor] > [mono-validation-icon] {\r\n position: absolute;\r\n top: calc(var(--mono-border-width) + var(--_mono-textarea-padding-y, var(--mono-spacing)));\r\n inset-inline-end: calc(var(--mono-border-width) + var(--_mono-textarea-padding-x, calc(var(--mono-spacing) * 2.5)));\r\n margin: 0;\r\n}\r\n[mono-textarea]:has(> [mono-validation-anchor]) > textarea[mono-native] {\r\n padding-inline-end: calc(var(--_mono-textarea-padding-x, calc(var(--mono-spacing) * 2.5)) + var(--mono-validation-icon-size, 1rem) + var(--mono-spacing));\r\n}\r\n/* side labels: the anchor shares the textarea's grid row */\r\n[mono-textarea]:is([mono-label-position=\"left\"], [mono-label-position=\"right\"]) > :is([mono-validation-anchor], textarea[mono-native]) {\r\n grid-row: 1;\r\n align-self: start;\r\n}\r\n[mono-textarea]:is([mono-label-position=\"left\"], [mono-label-position=\"right\"]) > [mono-validation-anchor] {\r\n margin-bottom: 0;\r\n}\r\n\r\n/* ── the moved message stays for assistive tech only ── */\r\n[mono-sr-only] {\r\n position: absolute !important;\r\n width: 1px !important;\r\n height: 1px !important;\r\n margin: -1px !important;\r\n padding: 0 !important;\r\n overflow: hidden !important;\r\n clip-path: inset(50%) !important;\r\n white-space: nowrap !important;\r\n border: 0 !important;\r\n}\r\n";
176
7
 
177
8
  //#endregion
178
- export { label_position_css_raw_default as n, FieldValidationController as r, field_validation_css_raw_default as t };
9
+ export { label_position_css_raw_default as n, field_validation_css_raw_default as t };