@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
package/dist/ui/button.js CHANGED
@@ -1,65 +1,4 @@
1
- import { t as MonoButton } from "../mono-button-CLkHg3WW.js";
1
+ import { t as MonoButton } from "../mono-button-DVvZ03P-.js";
2
+ import { n as processIconContent, r as validateButtonProps, t as generateBadgeClasses } from "../button-utils-D5-66M02.js";
2
3
 
3
- //#region src/components/button/button-utils.ts
4
- /**
5
- * Generate badge CSS classes
6
- */
7
- function generateBadgeClasses(badgeColor = "red") {
8
- return `btn-badge bb-${badgeColor}`;
9
- }
10
- /**
11
- * Process SVG icon content
12
- */
13
- function processIconContent(icon) {
14
- if (icon.startsWith("<svg")) return icon;
15
- return icon;
16
- }
17
- /**
18
- * Validate button props
19
- */
20
- function validateButtonProps(props) {
21
- const validSizes = [
22
- "xs",
23
- "sm",
24
- "md",
25
- "lg",
26
- "xl",
27
- "xxl"
28
- ];
29
- const validColors = [
30
- "primary",
31
- "secondary",
32
- "success",
33
- "danger",
34
- "warning",
35
- "info",
36
- "teal",
37
- "purple",
38
- "dark",
39
- "light"
40
- ];
41
- const validVariants = [
42
- "solid",
43
- "outline",
44
- "tonal",
45
- "text"
46
- ];
47
- const validRounded = [
48
- "none",
49
- "xs",
50
- "sm",
51
- "md",
52
- "lg",
53
- "xl",
54
- "xxl",
55
- "full"
56
- ];
57
- if (props.size && !validSizes.includes(props.size)) return false;
58
- if (props.color && !validColors.includes(props.color)) return false;
59
- if (props.variant && !validVariants.includes(props.variant)) return false;
60
- if (props.rounded && !validRounded.includes(props.rounded)) return false;
61
- return true;
62
- }
63
-
64
- //#endregion
65
4
  export { MonoButton, generateBadgeClasses, processIconContent, validateButtonProps };
package/dist/ui/card.js CHANGED
@@ -1,283 +1,11 @@
1
- import { d as buildSizeStyle } from "../mono-ui-kvLVIf1V.js";
2
1
  import { t as customElement } from "../mono-element-CKcT0rwv.js";
3
- import { a as defineHybridPropAliases, i as defineHybridPropAlias, r as booleanStringConverter, t as __decorate } from "../decorate-DbYFpi8R.js";
4
- import { t as dispatchMonoEvent } from "../mono-event-BPku9HpS.js";
2
+ import { t as __decorate } from "../decorate-DbYFpi8R.js";
5
3
  import { a as parkDetachedNodes, n as bucketHasContent, o as placeLightSlots, r as captureLightSlots } from "../light-slots-B5Ck0t_E.js";
4
+ import { n as validateCardProps, r as MonoCardCore, t as generateCardAttributes } from "../card-utils-l80qAmrN.js";
6
5
  import { LitElement, html, nothing } from "lit";
7
- import { property, query, state } from "lit/decorators.js";
8
6
  import { ifDefined } from "lit/directives/if-defined.js";
9
7
  import { styleMap } from "lit/directives/style-map.js";
10
8
 
11
- //#region src/components/card/card-core.ts
12
- /**
13
- * `MonoCardCore` — all render-mode-agnostic logic for `mono-card`: reactive
14
- * props, hybrid aliases, the camelCase attribute fallbacks, slot-presence
15
- * `@state`, class/getter computation, click/keyboard interactivity, and the
16
- * imperative `focus/blur/click`. No `render()` — the light build keeps its
17
- * `[data-mono-slot]` capture strategy and the shadow build uses native `<slot>`
18
- * (each ships its own `render()`, mirroring `mono-input`).
19
- *
20
- * SSR-safe: no `document`/`window` access. `_cardElement` (`@query`) is lazy and
21
- * `focus/blur/click` + the `HTMLAnchorElement` check only run client-side.
22
- */
23
- const MonoCardCore = (superClass) => {
24
- class MonoCardCoreClass extends superClass {
25
- constructor(...args) {
26
- super(...args);
27
- this._hasMedia = false;
28
- this._hasIcon = false;
29
- this._hasTitle = false;
30
- this._hasSubtitle = false;
31
- this._hasHeaderSlot = false;
32
- this._hasActions = false;
33
- this._hasFooter = false;
34
- this._hasDefault = false;
35
- defineHybridPropAliases(this, [
36
- "mediaPosition",
37
- "headerDivider",
38
- "footerDivider",
39
- "ariaLabelText",
40
- "cssClass",
41
- "minWidth",
42
- "maxWidth",
43
- "minHeight",
44
- "maxHeight"
45
- ]);
46
- defineHybridPropAlias(this, "heading", "title");
47
- defineHybridPropAlias(this, "subheading", "subtitle");
48
- this.size = "md";
49
- this.variant = "elevated";
50
- this.color = "neutral";
51
- this.mediaPosition = "top";
52
- this.title = "";
53
- this.subtitle = "";
54
- this.bordered = false;
55
- this.hoverable = false;
56
- this.clickable = false;
57
- this.selected = false;
58
- this.disabled = false;
59
- this.loading = false;
60
- this.headerDivider = true;
61
- this.footerDivider = true;
62
- this.href = void 0;
63
- this.target = void 0;
64
- this.ariaLabelText = void 0;
65
- this.cssClass = {};
66
- }
67
- /**
68
- * Static camelCase HTML fallback.
69
- *
70
- * Browser converts:
71
- * mediaPosition -> mediaposition
72
- * headerDivider -> headerdivider
73
- * footerDivider -> footerdivider
74
- * ariaLabelText -> arialabeltext
75
- */
76
- static get observedAttributes() {
77
- return [
78
- ...super.observedAttributes ?? [],
79
- "mediaposition",
80
- "headerdivider",
81
- "footerdivider",
82
- "arialabeltext",
83
- "arialabel",
84
- "heading",
85
- "subheading"
86
- ];
87
- }
88
- attributeChangedCallback(name, oldValue, newValue) {
89
- super.attributeChangedCallback(name, oldValue, newValue);
90
- if (oldValue === newValue) return;
91
- if (name === "mediaposition") {
92
- this.mediaPosition = newValue ?? "top";
93
- return;
94
- }
95
- if (name === "headerdivider") {
96
- this.headerDivider = this._toBoolean(newValue);
97
- return;
98
- }
99
- if (name === "footerdivider") {
100
- this.footerDivider = this._toBoolean(newValue);
101
- return;
102
- }
103
- if (name === "arialabeltext" || name === "arialabel") {
104
- this.ariaLabelText = newValue ?? void 0;
105
- return;
106
- }
107
- if (name === "heading") {
108
- this.title = newValue ?? "";
109
- return;
110
- }
111
- if (name === "subheading") this.subtitle = newValue ?? "";
112
- }
113
- _cls(base, key) {
114
- const extra = this.cssClass?.[key];
115
- return extra ? `${base} ${extra}` : base;
116
- }
117
- /** Inline sizing applied to the card root. */
118
- _sizeStyle() {
119
- return buildSizeStyle(this);
120
- }
121
- _toBoolean(value) {
122
- if (typeof value === "boolean") return value;
123
- if (typeof value === "string") {
124
- const normalized = value.toLowerCase().trim();
125
- return normalized === "" || normalized === "true";
126
- }
127
- return Boolean(value);
128
- }
129
- get _isInteractive() {
130
- return Boolean(this.href) || this.clickable;
131
- }
132
- get _isDisabled() {
133
- return this.disabled || this.loading;
134
- }
135
- get _hasHeader() {
136
- return Boolean(this._hasIcon || this._hasTitle || this._hasSubtitle || this._hasHeaderSlot || this.title || this.subtitle);
137
- }
138
- /**
139
- * The header shows a title with NO subtitle under it — drives `mono-no-subtitle`,
140
- * which centres the icon chip and that lone title on one axis. With a subtitle
141
- * the row stays top-aligned (icon level with the first line); a `slot="header"`
142
- * owns its own layout, so it never counts.
143
- */
144
- get _noSubtitle() {
145
- return !this._hasHeaderSlot && !this._hasSubtitle && !this.subtitle;
146
- }
147
- get _cardClasses() {
148
- const classes = ["mono-card"];
149
- classes.push(this.size);
150
- classes.push(this.variant);
151
- classes.push(this.color);
152
- if (this.rounded) classes.push(`rounded-${this.rounded}`);
153
- if (this.bordered) classes.push("bordered");
154
- if (this.hoverable) classes.push("hoverable");
155
- if (this.clickable || this.href) classes.push("clickable");
156
- if (this.selected) classes.push("selected");
157
- if (this.disabled) classes.push("disabled");
158
- if (this.loading) classes.push("loading");
159
- if (!this.headerDivider) classes.push("no-header-divider");
160
- if (!this.footerDivider) classes.push("no-footer-divider");
161
- if (this._hasMedia) classes.push(`media-${this.mediaPosition}`);
162
- if (this.cssClass?.root) classes.push(this.cssClass.root);
163
- return classes.join(" ");
164
- }
165
- _emitClick(originalEvent) {
166
- const detail = { originalEvent };
167
- dispatchMonoEvent(this, "click", detail, { sourceEvent: originalEvent });
168
- }
169
- _handleClick(event) {
170
- if (this._isDisabled) {
171
- event.preventDefault();
172
- event.stopPropagation();
173
- return;
174
- }
175
- if (!this._isInteractive) return;
176
- this._emitClick(event);
177
- }
178
- _handleKeyDown(event) {
179
- if (this._isDisabled || !this._isInteractive) return;
180
- if (event.key === "Enter" || event.key === " ") {
181
- event.preventDefault();
182
- if (this._cardElement) {
183
- this._cardElement.click();
184
- return;
185
- }
186
- this._emitClick(event);
187
- }
188
- }
189
- focus() {
190
- this._cardElement?.focus();
191
- }
192
- blur() {
193
- this._cardElement?.blur();
194
- }
195
- click() {
196
- this._cardElement?.click();
197
- }
198
- }
199
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "size", void 0);
200
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "variant", void 0);
201
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "color", void 0);
202
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "rounded", void 0);
203
- __decorate([property({
204
- type: String,
205
- attribute: "media-position"
206
- })], MonoCardCoreClass.prototype, "mediaPosition", void 0);
207
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "title", void 0);
208
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "subtitle", void 0);
209
- __decorate([property({
210
- reflect: true,
211
- converter: booleanStringConverter
212
- })], MonoCardCoreClass.prototype, "bordered", void 0);
213
- __decorate([property({
214
- reflect: true,
215
- converter: booleanStringConverter
216
- })], MonoCardCoreClass.prototype, "hoverable", void 0);
217
- __decorate([property({
218
- reflect: true,
219
- converter: booleanStringConverter
220
- })], MonoCardCoreClass.prototype, "clickable", void 0);
221
- __decorate([property({
222
- reflect: true,
223
- converter: booleanStringConverter
224
- })], MonoCardCoreClass.prototype, "selected", void 0);
225
- __decorate([property({
226
- reflect: true,
227
- converter: booleanStringConverter
228
- })], MonoCardCoreClass.prototype, "disabled", void 0);
229
- __decorate([property({
230
- reflect: true,
231
- converter: booleanStringConverter
232
- })], MonoCardCoreClass.prototype, "loading", void 0);
233
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "width", void 0);
234
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "height", void 0);
235
- __decorate([property({
236
- type: String,
237
- attribute: "min-width"
238
- })], MonoCardCoreClass.prototype, "minWidth", void 0);
239
- __decorate([property({
240
- type: String,
241
- attribute: "max-width"
242
- })], MonoCardCoreClass.prototype, "maxWidth", void 0);
243
- __decorate([property({
244
- type: String,
245
- attribute: "min-height"
246
- })], MonoCardCoreClass.prototype, "minHeight", void 0);
247
- __decorate([property({
248
- type: String,
249
- attribute: "max-height"
250
- })], MonoCardCoreClass.prototype, "maxHeight", void 0);
251
- __decorate([property({
252
- attribute: "header-divider",
253
- reflect: true,
254
- converter: booleanStringConverter
255
- })], MonoCardCoreClass.prototype, "headerDivider", void 0);
256
- __decorate([property({
257
- attribute: "footer-divider",
258
- reflect: true,
259
- converter: booleanStringConverter
260
- })], MonoCardCoreClass.prototype, "footerDivider", void 0);
261
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "href", void 0);
262
- __decorate([property({ type: String })], MonoCardCoreClass.prototype, "target", void 0);
263
- __decorate([property({
264
- type: String,
265
- attribute: "aria-label-text"
266
- })], MonoCardCoreClass.prototype, "ariaLabelText", void 0);
267
- __decorate([property({ attribute: false })], MonoCardCoreClass.prototype, "cssClass", void 0);
268
- __decorate([state()], MonoCardCoreClass.prototype, "_hasMedia", void 0);
269
- __decorate([state()], MonoCardCoreClass.prototype, "_hasIcon", void 0);
270
- __decorate([state()], MonoCardCoreClass.prototype, "_hasTitle", void 0);
271
- __decorate([state()], MonoCardCoreClass.prototype, "_hasSubtitle", void 0);
272
- __decorate([state()], MonoCardCoreClass.prototype, "_hasHeaderSlot", void 0);
273
- __decorate([state()], MonoCardCoreClass.prototype, "_hasActions", void 0);
274
- __decorate([state()], MonoCardCoreClass.prototype, "_hasFooter", void 0);
275
- __decorate([state()], MonoCardCoreClass.prototype, "_hasDefault", void 0);
276
- __decorate([query(".mono-card")], MonoCardCoreClass.prototype, "_cardElement", void 0);
277
- return MonoCardCoreClass;
278
- };
279
-
280
- //#endregion
281
9
  //#region src/components/card/mono-card.ts
282
10
  /** Named regions the card lays out. The unnamed body is the fallback bucket. */
283
11
  const CARD_NAMED_SLOTS = [
@@ -482,41 +210,5 @@ let MonoCard = class MonoCard extends MonoCardCore(LitElement) {
482
210
  };
483
211
  MonoCard = __decorate([customElement("mono-card")], MonoCard);
484
212
 
485
- //#endregion
486
- //#region src/components/card/card-utils.ts
487
- /**
488
- * Validate card props
489
- */
490
- function validateCardProps(props) {
491
- const validVariants = [
492
- "outlined",
493
- "elevated",
494
- "flat",
495
- "tonal"
496
- ];
497
- const validColors = [
498
- "primary",
499
- "secondary",
500
- "success",
501
- "danger",
502
- "warning",
503
- "info",
504
- "neutral"
505
- ];
506
- if (props.variant && !validVariants.includes(props.variant)) return false;
507
- if (props.color && !validColors.includes(props.color)) return false;
508
- return true;
509
- }
510
- /**
511
- * Generate ARIA attributes for accessibility
512
- */
513
- function generateCardAttributes(clickable, hoverable, label) {
514
- return {
515
- "role": clickable ? "button" : "article",
516
- "tabindex": clickable ? "0" : void 0,
517
- "aria-label": label || void 0
518
- };
519
- }
520
-
521
213
  //#endregion
522
214
  export { MonoCard, generateCardAttributes, validateCardProps };