@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,337 @@
1
+ import { a as defineHybridPropAliases, i as defineHybridPropAlias, r as booleanStringConverter, t as __decorate } from "./decorate-DbYFpi8R.js";
2
+ import { t as dispatchMonoEvent } from "./mono-event-CAZf0F_k.js";
3
+ import { t as MonoFormControlCore } from "./form-control-core-CRZPZ1ru.js";
4
+ import { html, nothing } from "lit";
5
+ import { property, state } from "lit/decorators.js";
6
+ import { ifDefined } from "lit/directives/if-defined.js";
7
+
8
+ //#region src/components/checkbox/checkbox-core.ts
9
+ /**
10
+ * `MonoCheckboxCore` — all render-mode-agnostic logic for `mono-checkbox`:
11
+ * reactive props (incl. SSR boolean coercion), hybrid aliases, camelCase
12
+ * attribute fallbacks, the `modelValue`↔`checked` sync, class computation,
13
+ * change interactivity (`mno-change`), `focus`/`blur`, AND the shared `render()`
14
+ * skeleton (`<label><input><box></box><labelBlock></label>`). The slot-bearing
15
+ * regions are two overridable hooks — `_renderCustomIcon()` / `_renderLabelBlock()`
16
+ * — that default to the light build's `[data-mono-slot]` placeholders; the shadow
17
+ * build overrides them with native `<slot>` (mirrors `mono-accordion`).
18
+ *
19
+ * SSR-safe: no `document`/`window` access; `focus`/`blur` query `this.renderRoot`.
20
+ */
21
+ const MonoCheckboxCore = (superClass) => {
22
+ class MonoCheckboxCoreClass extends MonoFormControlCore(superClass) {
23
+ constructor(...args) {
24
+ super(...args);
25
+ this.size = "md";
26
+ this.color = "primary";
27
+ this.modelValue = false;
28
+ this.checked = false;
29
+ this.disabled = false;
30
+ this.indeterminate = false;
31
+ this.loading = false;
32
+ this.label = "";
33
+ this.sublabel = "";
34
+ this.value = "";
35
+ this.name = "";
36
+ this.cssClass = {};
37
+ this.cssClassName = "";
38
+ this._hasIcon = false;
39
+ this._hasIndeterminateIcon = false;
40
+ this._hasLabelSlotState = false;
41
+ this._hasDescriptionSlotState = false;
42
+ defineHybridPropAliases(this, [
43
+ "modelValue",
44
+ "ariaLabelText",
45
+ "cssClass"
46
+ ]);
47
+ defineHybridPropAlias(this, "description", "sublabel");
48
+ }
49
+ static get observedAttributes() {
50
+ return [
51
+ ...super.observedAttributes ?? [],
52
+ "modelvalue",
53
+ "arialabeltext",
54
+ "description",
55
+ "css-class",
56
+ "cssclass"
57
+ ];
58
+ }
59
+ attributeChangedCallback(name, oldValue, newValue) {
60
+ super.attributeChangedCallback(name, oldValue, newValue);
61
+ if (oldValue === newValue) return;
62
+ if (name === "modelvalue") {
63
+ this.modelValue = this._toBoolean(newValue);
64
+ return;
65
+ }
66
+ if (name === "arialabeltext") {
67
+ this.ariaLabelText = newValue ?? void 0;
68
+ return;
69
+ }
70
+ if (name === "description") {
71
+ this.sublabel = newValue ?? "";
72
+ return;
73
+ }
74
+ if (name === "css-class" || name === "cssclass") this.cssClassName = newValue ?? "";
75
+ }
76
+ willUpdate(changed) {
77
+ for (const key of [
78
+ "modelValue",
79
+ "checked",
80
+ "disabled",
81
+ "indeterminate"
82
+ ]) if (typeof this[key] === "string") this[key] = this._toBoolean(this[key]);
83
+ if (changed.has("modelValue") && this.checked !== this.modelValue) this.checked = this.modelValue;
84
+ if (changed.has("checked") && this.modelValue !== this.checked) this.modelValue = this.checked;
85
+ super.willUpdate?.(changed);
86
+ }
87
+ _toBoolean(value) {
88
+ if (typeof value === "boolean") return value;
89
+ if (typeof value === "string") {
90
+ const normalized = value.toLowerCase().trim();
91
+ return normalized === "" || normalized === "true";
92
+ }
93
+ return Boolean(value);
94
+ }
95
+ _cls(base, key) {
96
+ const extra = this.cssClass?.[key];
97
+ return extra ? `${base} ${extra}` : base;
98
+ }
99
+ get _wrapperClasses() {
100
+ return [
101
+ "mono-checkbox",
102
+ this.size,
103
+ this.color,
104
+ this.disabled ? "disabled" : "",
105
+ this.checked ? "mono-checkbox-checked" : "",
106
+ this.indeterminate ? "mono-checkbox-indeterminate" : "",
107
+ this.cssClassName,
108
+ this.cssClass?.root
109
+ ].filter(Boolean).join(" ");
110
+ }
111
+ get _inputClasses() {
112
+ return this._cls("mono-checkbox-input", "input");
113
+ }
114
+ get _boxClasses() {
115
+ return [
116
+ this._cls("mono-checkbox-box", "box"),
117
+ this.size,
118
+ this._hasIcon || this.loading ? "has-custom-icon" : "",
119
+ this._hasIndeterminateIcon || this.loading ? "has-custom-indeterminate-icon" : ""
120
+ ].filter(Boolean).join(" ");
121
+ }
122
+ _hasLabelContent() {
123
+ return Boolean(this.label) || this._hasLabelSlotState;
124
+ }
125
+ _hasDescriptionContent() {
126
+ return Boolean(this.sublabel) || this._hasDescriptionSlotState;
127
+ }
128
+ _createModelDetail(args) {
129
+ return {
130
+ modelValue: args.modelValue,
131
+ currentValue: args.modelValue,
132
+ oldValue: args.oldValue,
133
+ checked: args.modelValue,
134
+ value: this.value,
135
+ name: this.name,
136
+ sourceEvent: args.sourceEvent
137
+ };
138
+ }
139
+ _emitChange(detail) {
140
+ dispatchMonoEvent(this, "change", detail);
141
+ }
142
+ _handleChange(event) {
143
+ if (this.disabled) return;
144
+ const input = event.currentTarget;
145
+ const oldValue = this.modelValue;
146
+ const nextValue = input.checked;
147
+ if (this.indeterminate) this.indeterminate = false;
148
+ this.checked = nextValue;
149
+ this.modelValue = nextValue;
150
+ const detail = this._createModelDetail({
151
+ modelValue: nextValue,
152
+ oldValue,
153
+ sourceEvent: event
154
+ });
155
+ this._emitChange(detail);
156
+ }
157
+ /**
158
+ * The `loading` spinner, shown in place of the tick/dash. Light uses the global
159
+ * icon utility class; the shadow build overrides this with inline SVG, which
160
+ * page-level CSS cannot reach.
161
+ */
162
+ _renderLoadingIcon() {
163
+ return html`<span class="mono-icon i-mdi-loading mono-checkbox-spinner" mono-spinner aria-hidden="true"></span>`;
164
+ }
165
+ /** Light-DOM custom icon (data-mono-slot). Shadow build overrides with `<slot>`. */
166
+ _renderCustomIcon() {
167
+ if (this.indeterminate && this._hasIndeterminateIcon) return html`
168
+ <span
169
+ class=${[this._cls("mono-checkbox-indeterminate-icon", "indeterminateIcon"), this.size].filter(Boolean).join(" ")}
170
+ mono-indeterminate-icon
171
+ data-mono-slot="indeterminate-icon"
172
+ ></span>
173
+ `;
174
+ if (this.checked && this._hasIcon) return html`
175
+ <span
176
+ class=${[this._cls("mono-checkbox-icon", "icon"), this.size].filter(Boolean).join(" ")}
177
+ mono-icon
178
+ data-mono-slot="icon"
179
+ ></span>
180
+ `;
181
+ return nothing;
182
+ }
183
+ /** Light-DOM label block (data-mono-slot). Shadow build overrides with `<slot>`. */
184
+ _renderLabelBlock() {
185
+ if (!this._hasLabelContent() && !this._hasDescriptionContent()) return nothing;
186
+ return html`
187
+ <span class=${this._cls("mono-checkbox-label", "label")} mono-label>
188
+ ${this._hasLabelContent() ? html`
189
+ <span class=${this._cls("mono-checkbox-label-text", "labelText")} mono-label-text>
190
+ ${this._hasLabelSlotState ? html`<span data-mono-slot="label"></span>` : this.label}
191
+ </span>
192
+ ` : nothing}
193
+
194
+ ${this._hasDescriptionContent() ? html`
195
+ <span class=${this._cls("mono-checkbox-label-description", "description")} mono-description>
196
+ ${this._hasDescriptionSlotState ? html`<span data-mono-slot="description"></span>` : this.sublabel}
197
+ </span>
198
+ ` : nothing}
199
+ </span>
200
+ `;
201
+ }
202
+ render() {
203
+ const ariaLabel = this.ariaLabelText || this.label || (this._hasLabelSlotState ? "Checkbox" : void 0);
204
+ return html`
205
+ <label
206
+ class=${this._wrapperClasses}
207
+ mono-checkbox
208
+ mono-size=${this.size === "md" ? nothing : this.size}
209
+ mono-color=${this.color === "primary" ? nothing : this.color}
210
+ ?mono-checked=${this.checked}
211
+ ?mono-indeterminate=${this.indeterminate}
212
+ ?mono-disabled=${this.disabled}
213
+ ?mono-loading=${this.loading}
214
+ >
215
+ <input
216
+ class=${this._inputClasses}
217
+ mono-input
218
+ type="checkbox"
219
+ .checked=${this.checked}
220
+ .indeterminate=${this.indeterminate}
221
+ .value=${this.value}
222
+ name=${ifDefined(this.name || void 0)}
223
+ ?disabled=${this.disabled || this.loading}
224
+ aria-checked=${this.indeterminate ? "mixed" : String(this.checked)}
225
+ aria-label=${ifDefined(ariaLabel)}
226
+ aria-busy=${this.loading ? "true" : "false"}
227
+ @change=${this._handleChange}
228
+ />
229
+
230
+ <span
231
+ class=${this._boxClasses}
232
+ mono-box
233
+ ?mono-custom-icon=${this._hasIcon || this.loading}
234
+ ?mono-custom-indeterminate-icon=${this._hasIndeterminateIcon || this.loading}
235
+ aria-hidden="true"
236
+ >
237
+ ${this.loading ? this._renderLoadingIcon() : this._renderCustomIcon()}
238
+ </span>
239
+
240
+ ${this._renderLabelBlock()}
241
+ </label>
242
+ `;
243
+ }
244
+ focus(options) {
245
+ this.renderRoot.querySelector(".mono-checkbox-input")?.focus(options);
246
+ }
247
+ blur() {
248
+ this.renderRoot.querySelector(".mono-checkbox-input")?.blur();
249
+ }
250
+ }
251
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "size", void 0);
252
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "color", void 0);
253
+ __decorate([property({
254
+ attribute: "model-value",
255
+ reflect: true,
256
+ converter: booleanStringConverter
257
+ })], MonoCheckboxCoreClass.prototype, "modelValue", void 0);
258
+ __decorate([property({
259
+ reflect: true,
260
+ converter: booleanStringConverter
261
+ })], MonoCheckboxCoreClass.prototype, "checked", void 0);
262
+ __decorate([property({
263
+ reflect: true,
264
+ converter: booleanStringConverter
265
+ })], MonoCheckboxCoreClass.prototype, "disabled", void 0);
266
+ __decorate([property({
267
+ reflect: true,
268
+ converter: booleanStringConverter
269
+ })], MonoCheckboxCoreClass.prototype, "indeterminate", void 0);
270
+ __decorate([property({
271
+ reflect: true,
272
+ converter: booleanStringConverter
273
+ })], MonoCheckboxCoreClass.prototype, "loading", void 0);
274
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "label", void 0);
275
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "sublabel", void 0);
276
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "value", void 0);
277
+ __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "name", void 0);
278
+ __decorate([property({
279
+ type: String,
280
+ attribute: "aria-label"
281
+ })], MonoCheckboxCoreClass.prototype, "ariaLabelText", void 0);
282
+ __decorate([property({ attribute: false })], MonoCheckboxCoreClass.prototype, "cssClass", void 0);
283
+ __decorate([property({
284
+ type: String,
285
+ attribute: "css-class"
286
+ })], MonoCheckboxCoreClass.prototype, "cssClassName", void 0);
287
+ __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasIcon", void 0);
288
+ __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasIndeterminateIcon", void 0);
289
+ __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasLabelSlotState", void 0);
290
+ __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasDescriptionSlotState", void 0);
291
+ return MonoCheckboxCoreClass;
292
+ };
293
+
294
+ //#endregion
295
+ //#region src/components/checkbox/checkbox-utils.ts
296
+ /**
297
+ * Validate checkbox props
298
+ */
299
+ function validateCheckboxProps(props) {
300
+ const validSizes = [
301
+ "xs",
302
+ "sm",
303
+ "md",
304
+ "lg",
305
+ "xl",
306
+ "xxl"
307
+ ];
308
+ const validColors = [
309
+ "primary",
310
+ "secondary",
311
+ "success",
312
+ "danger",
313
+ "warning",
314
+ "info",
315
+ "teal",
316
+ "purple",
317
+ "neutral",
318
+ "dark"
319
+ ];
320
+ if (props.size && !validSizes.includes(props.size)) return false;
321
+ if (props.color && !validColors.includes(props.color)) return false;
322
+ return true;
323
+ }
324
+ /**
325
+ * Generate ARIA attributes for accessibility
326
+ */
327
+ function generateCheckboxAttributes(disabled, checked, indeterminate, label) {
328
+ return {
329
+ "aria-disabled": disabled ? "true" : void 0,
330
+ "aria-checked": indeterminate ? "mixed" : String(checked),
331
+ "role": "checkbox",
332
+ "aria-label": label || void 0
333
+ };
334
+ }
335
+
336
+ //#endregion
337
+ export { validateCheckboxProps as n, MonoCheckboxCore as r, generateCheckboxAttributes as t };