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