@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,403 @@
1
+ import { n as defineMonoElement } from "./mono-element-CKcT0rwv.js";
2
+ import { a as defineHybridPropAliases, r as booleanStringConverter, t as __decorate } from "./decorate-DbYFpi8R.js";
3
+ import { t as dispatchMonoEvent } from "./mono-event-CAZf0F_k.js";
4
+ import { t as chip_css_raw_default } from "./chip.css_raw-ChfRSHLO.js";
5
+ import { LitElement, html, nothing, unsafeCSS } from "lit";
6
+ import { property, query, state } from "lit/decorators.js";
7
+ import { ifDefined } from "lit/directives/if-defined.js";
8
+ import { when } from "lit/directives/when.js";
9
+
10
+ //#region src/components/chip/chip-core.ts
11
+ /**
12
+ * `MonoChipCore` — all render-mode-agnostic logic for `mono-chip`: reactive
13
+ * props, hybrid aliases (incl. the `ariaLabel`/`aria-label`/`arialabel` →
14
+ * `ariaLabelText` getters), camelCase attribute fallbacks, the `modelValue`↔
15
+ * `selected` sync + SSR boolean coercion in `willUpdate`, class computation,
16
+ * click/keyboard/close interactivity (`mno-click`/`mno-close`), and the imperative
17
+ * `focus/blur/click`. No `render()` — the light build keeps its `[data-mono-slot]`
18
+ * capture strategy and the shadow build uses native `<slot>` (mirrors `mono-button`).
19
+ *
20
+ * SSR-safe: no `document`/`window` access; `_chipElement` (`@query`) is lazy and
21
+ * `focus/blur/click` only run client-side.
22
+ */
23
+ const MonoChipCore = (superClass) => {
24
+ class MonoChipCoreClass extends superClass {
25
+ constructor(...args) {
26
+ super(...args);
27
+ this.cssClass = {};
28
+ this._hasIcon = false;
29
+ defineHybridPropAliases(this, [
30
+ "modelValue",
31
+ "iconPosition",
32
+ "ariaLabelText",
33
+ "closeLabel",
34
+ "cssClass"
35
+ ]);
36
+ for (const name of [
37
+ "ariaLabel",
38
+ "aria-label",
39
+ "arialabel"
40
+ ]) Object.defineProperty(this, name, {
41
+ get: () => this.ariaLabelText,
42
+ set: (value) => {
43
+ this.ariaLabelText = value == null ? void 0 : String(value);
44
+ },
45
+ configurable: true,
46
+ enumerable: false
47
+ });
48
+ this.size = "md";
49
+ this.color = "primary";
50
+ this.variant = "soft";
51
+ this.label = void 0;
52
+ this.dot = false;
53
+ this.removable = false;
54
+ this.clickable = false;
55
+ this.disabled = false;
56
+ this.modelValue = false;
57
+ this.selected = false;
58
+ this.href = void 0;
59
+ this.target = void 0;
60
+ this.iconPosition = "left";
61
+ this.ariaLabelText = void 0;
62
+ this.closeLabel = "Remove";
63
+ this._isActive = false;
64
+ }
65
+ static get observedAttributes() {
66
+ return [
67
+ ...super.observedAttributes ?? [],
68
+ "modelvalue",
69
+ "iconposition",
70
+ "closelabel",
71
+ "arialabeltext",
72
+ "arialabel"
73
+ ];
74
+ }
75
+ attributeChangedCallback(name, oldValue, newValue) {
76
+ super.attributeChangedCallback(name, oldValue, newValue);
77
+ if (oldValue === newValue) return;
78
+ if (name === "modelvalue") {
79
+ this.modelValue = this._toBoolean(newValue);
80
+ return;
81
+ }
82
+ if (name === "iconposition") {
83
+ this.iconPosition = newValue ?? "left";
84
+ return;
85
+ }
86
+ if (name === "closelabel") {
87
+ this.closeLabel = newValue ?? "Remove";
88
+ return;
89
+ }
90
+ if (name === "arialabeltext" || name === "arialabel") this.ariaLabelText = newValue ?? void 0;
91
+ }
92
+ willUpdate(changed) {
93
+ for (const key of [
94
+ "dot",
95
+ "removable",
96
+ "clickable",
97
+ "disabled",
98
+ "modelValue",
99
+ "selected"
100
+ ]) if (typeof this[key] === "string") this[key] = this._toBoolean(this[key]);
101
+ if (!this.hasUpdated) {
102
+ const on = this.selected || this.modelValue;
103
+ if (this.selected !== on) this.selected = on;
104
+ if (this.modelValue !== on) this.modelValue = on;
105
+ } else {
106
+ if (changed.has("modelValue") && this.selected !== this.modelValue) this.selected = this.modelValue;
107
+ if (changed.has("selected") && this.modelValue !== this.selected) this.modelValue = this.selected;
108
+ }
109
+ super.willUpdate?.(changed);
110
+ }
111
+ _toBoolean(value) {
112
+ if (typeof value === "boolean") return value;
113
+ if (typeof value === "string") {
114
+ const normalized = value.toLowerCase().trim();
115
+ return normalized === "" || normalized === "true";
116
+ }
117
+ return Boolean(value);
118
+ }
119
+ _cls(base, key) {
120
+ const extra = this.cssClass?.[key];
121
+ return extra ? `${base} ${extra}` : base;
122
+ }
123
+ get _isInteractive() {
124
+ return this.clickable || Boolean(this.href) || this.removable;
125
+ }
126
+ get _chipClasses() {
127
+ const classes = ["mono-chip"];
128
+ classes.push(this.size);
129
+ if (this.variant === "soft") classes.push(`soft-${this.color}`);
130
+ else if (this.variant === "solid") classes.push(`solid-${this.color}`);
131
+ else if (this.variant === "outline") classes.push(`outline-${this.color}`);
132
+ if (this.dot) classes.push("has-dot");
133
+ if (this.removable) classes.push("removable");
134
+ if (this.clickable || this.href) classes.push("clickable");
135
+ if (this.disabled) classes.push("disabled");
136
+ if (this.selected || this._isActive) classes.push("selected");
137
+ if (this.cssClass?.root) classes.push(this.cssClass.root);
138
+ return classes.join(" ");
139
+ }
140
+ _createModelDetail(args) {
141
+ return {
142
+ modelValue: args.modelValue,
143
+ currentValue: args.modelValue,
144
+ oldValue: args.oldValue,
145
+ value: args.modelValue,
146
+ selected: args.modelValue,
147
+ label: this.label ?? "",
148
+ sourceEvent: args.sourceEvent
149
+ };
150
+ }
151
+ _emitClick(detail) {
152
+ dispatchMonoEvent(this, "click", detail);
153
+ }
154
+ _emitClose(detail) {
155
+ dispatchMonoEvent(this, "close", detail);
156
+ }
157
+ _handleClick(event) {
158
+ if (this.disabled) {
159
+ event.preventDefault();
160
+ event.stopPropagation();
161
+ return;
162
+ }
163
+ const oldValue = this.modelValue;
164
+ let nextValue = this.modelValue;
165
+ if (this.clickable && !this.href) {
166
+ nextValue = !this.modelValue;
167
+ this.modelValue = nextValue;
168
+ this.selected = nextValue;
169
+ }
170
+ const detail = this._createModelDetail({
171
+ modelValue: nextValue,
172
+ oldValue,
173
+ sourceEvent: event
174
+ });
175
+ this._emitClick(detail);
176
+ }
177
+ _handleKeyDown(event) {
178
+ if (this.disabled) return;
179
+ if (event.key === "Enter" || event.key === " ") {
180
+ event.preventDefault();
181
+ this._chipElement?.click();
182
+ }
183
+ if ((event.key === "Backspace" || event.key === "Delete") && this.removable) {
184
+ event.preventDefault();
185
+ const detail = this._createModelDetail({
186
+ modelValue: this.modelValue,
187
+ oldValue: this.modelValue,
188
+ sourceEvent: event
189
+ });
190
+ this._emitClose(detail);
191
+ }
192
+ }
193
+ _handleFocus() {
194
+ this._isActive = true;
195
+ }
196
+ _handleBlur() {
197
+ this._isActive = false;
198
+ }
199
+ _handleClose(event) {
200
+ event.preventDefault();
201
+ event.stopPropagation();
202
+ if (this.disabled) return;
203
+ const detail = this._createModelDetail({
204
+ modelValue: this.modelValue,
205
+ oldValue: this.modelValue,
206
+ sourceEvent: event
207
+ });
208
+ this._emitClose(detail);
209
+ }
210
+ focus() {
211
+ this._chipElement?.focus();
212
+ }
213
+ blur() {
214
+ this._chipElement?.blur();
215
+ }
216
+ click() {
217
+ this._chipElement?.click();
218
+ }
219
+ }
220
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "size", void 0);
221
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "color", void 0);
222
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "variant", void 0);
223
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "rounded", void 0);
224
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "label", void 0);
225
+ __decorate([property({
226
+ reflect: true,
227
+ converter: booleanStringConverter
228
+ })], MonoChipCoreClass.prototype, "dot", void 0);
229
+ __decorate([property({
230
+ reflect: true,
231
+ converter: booleanStringConverter
232
+ })], MonoChipCoreClass.prototype, "removable", void 0);
233
+ __decorate([property({
234
+ reflect: true,
235
+ converter: booleanStringConverter
236
+ })], MonoChipCoreClass.prototype, "clickable", void 0);
237
+ __decorate([property({
238
+ reflect: true,
239
+ converter: booleanStringConverter
240
+ })], MonoChipCoreClass.prototype, "disabled", void 0);
241
+ __decorate([property({
242
+ attribute: "model-value",
243
+ reflect: true,
244
+ converter: booleanStringConverter
245
+ })], MonoChipCoreClass.prototype, "modelValue", void 0);
246
+ __decorate([property({
247
+ reflect: true,
248
+ converter: booleanStringConverter
249
+ })], MonoChipCoreClass.prototype, "selected", void 0);
250
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "href", void 0);
251
+ __decorate([property({ type: String })], MonoChipCoreClass.prototype, "target", void 0);
252
+ __decorate([property({
253
+ type: String,
254
+ attribute: "icon-position"
255
+ })], MonoChipCoreClass.prototype, "iconPosition", void 0);
256
+ __decorate([property({
257
+ type: String,
258
+ attribute: "aria-label"
259
+ })], MonoChipCoreClass.prototype, "ariaLabelText", void 0);
260
+ __decorate([property({
261
+ type: String,
262
+ attribute: "close-label"
263
+ })], MonoChipCoreClass.prototype, "closeLabel", void 0);
264
+ __decorate([property({ attribute: false })], MonoChipCoreClass.prototype, "cssClass", void 0);
265
+ __decorate([state()], MonoChipCoreClass.prototype, "_isActive", void 0);
266
+ __decorate([state()], MonoChipCoreClass.prototype, "_hasIcon", void 0);
267
+ __decorate([query("div > span, div > a")], MonoChipCoreClass.prototype, "_chipElement", void 0);
268
+ return MonoChipCoreClass;
269
+ };
270
+
271
+ //#endregion
272
+ //#region src/components/chip/mono-status-dot.ts
273
+ /**
274
+ * `mono-status-dot` — a small status indicator. Already a real shadow-DOM
275
+ * LitElement (default render root + `static styles`, native `<slot>`), so it is
276
+ * SSR-compatible as-is and shared verbatim by BOTH the light (`@mono-lit/helper/ui/chip`)
277
+ * and shadow (`@mono-lit/helper/ui/shadow/chip`) chip builds. It lives in its own
278
+ * module so the shadow chip build can register it WITHOUT importing the light
279
+ * `mono-chip` (which would collide with the shadow `mono-chip` class).
280
+ *
281
+ * It keeps the SAME `mono-status-dot` tag in both builds (it has no light/shadow
282
+ * variant — it is always a shadow-DOM element), so its registration is guarded
283
+ * (see bottom of file): whichever chip build loads first wins, and a page that
284
+ * loads both light + shadow chip won't throw a "already defined" registry error.
285
+ */
286
+ var MonoStatusDot = class extends LitElement {
287
+ static {
288
+ this.styles = [unsafeCSS(chip_css_raw_default)];
289
+ }
290
+ constructor() {
291
+ super();
292
+ this.state = "online";
293
+ this.pulse = false;
294
+ this.label = void 0;
295
+ this.color = void 0;
296
+ }
297
+ get _statusClasses() {
298
+ const classes = ["mono-status-dot", `sd-${this.state}`];
299
+ if (this.pulse) classes.push("pulse");
300
+ return classes.join(" ");
301
+ }
302
+ get _statusStyle() {
303
+ if (!this.color) return void 0;
304
+ return `--mono-status-dot-color:${this.color};`;
305
+ }
306
+ render() {
307
+ return html`
308
+ <span
309
+ class=${this._statusClasses}
310
+ mono-status-dot
311
+ mono-status=${this.state === "online" ? nothing : this.state}
312
+ ?mono-pulse=${this.pulse}
313
+ style=${ifDefined(this._statusStyle)}
314
+ role="status"
315
+ aria-label=${ifDefined(this.label)}
316
+ >
317
+ <span class="sd-dot" mono-dot aria-hidden="true"></span>
318
+ <span class="sd-label">
319
+ ${when(Boolean(this.label), () => this.label, () => html`<slot></slot>`)}
320
+ </span>
321
+ </span>
322
+ `;
323
+ }
324
+ focus() {
325
+ this._statusElement?.focus();
326
+ }
327
+ blur() {
328
+ this._statusElement?.blur();
329
+ }
330
+ };
331
+ __decorate([property({ type: String })], MonoStatusDot.prototype, "state", void 0);
332
+ __decorate([property({
333
+ reflect: true,
334
+ converter: booleanStringConverter
335
+ })], MonoStatusDot.prototype, "pulse", void 0);
336
+ __decorate([property({ type: String })], MonoStatusDot.prototype, "label", void 0);
337
+ __decorate([property({ type: String })], MonoStatusDot.prototype, "color", void 0);
338
+ __decorate([query("span")], MonoStatusDot.prototype, "_statusElement", void 0);
339
+ defineMonoElement("mono-status-dot", MonoStatusDot);
340
+
341
+ //#endregion
342
+ //#region src/components/chip/chip-utils.ts
343
+ function generateChipRootClasses(props) {
344
+ const classes = ["mono-chip"];
345
+ classes.push(props.size ?? "md");
346
+ if (props.rounded) classes.push(`rounded-${props.rounded}`);
347
+ const variant = props.variant ?? "soft";
348
+ const color = props.color ?? "primary";
349
+ classes.push(`${variant}-${color}`);
350
+ if (props.clickable) classes.push("clickable");
351
+ if (props.removable) classes.push("removable");
352
+ if (props.disabled) classes.push("disabled");
353
+ if (props.selected) classes.push("selected");
354
+ if (props.dot) classes.push("has-dot");
355
+ return classes.join(" ");
356
+ }
357
+ function isInteractive(props) {
358
+ return Boolean(!props.disabled && (props.clickable || props.href || props.removable));
359
+ }
360
+ function validateChipProps(props) {
361
+ const validSizes = [
362
+ "xs",
363
+ "sm",
364
+ "md",
365
+ "lg",
366
+ "xl",
367
+ "xxl"
368
+ ];
369
+ const validColors = [
370
+ "primary",
371
+ "success",
372
+ "danger",
373
+ "warning",
374
+ "info",
375
+ "teal",
376
+ "purple",
377
+ "neutral",
378
+ "dark"
379
+ ];
380
+ const validVariants = [
381
+ "soft",
382
+ "solid",
383
+ "outline"
384
+ ];
385
+ const validRounded = [
386
+ "none",
387
+ "xs",
388
+ "sm",
389
+ "md",
390
+ "lg",
391
+ "xl",
392
+ "xxl",
393
+ "full"
394
+ ];
395
+ if (props.size && !validSizes.includes(props.size)) return false;
396
+ if (props.color && !validColors.includes(props.color)) return false;
397
+ if (props.variant && !validVariants.includes(props.variant)) return false;
398
+ if (props.rounded && !validRounded.includes(props.rounded)) return false;
399
+ return true;
400
+ }
401
+
402
+ //#endregion
403
+ export { MonoChipCore as a, MonoStatusDot as i, isInteractive as n, validateChipProps as r, generateChipRootClasses as t };
@@ -1,4 +1,4 @@
1
- import { n as describeError, o as isCanceled } from "./normalize-error-BmLbgANw.js";
1
+ import { n as describeError, o as isCanceled } from "./normalize-error-BEcd1tmS.js";
2
2
 
3
3
  //#region src/composables/data-source-controller.ts
4
4
  /**
@@ -1,9 +1,9 @@
1
- import { n as isPath, r as mergePatch, t as getFieldValue } from "./field-path-BabiMrrA.js";
2
- import { i as searchFilterOf, s as flattenLeaves, t as isDataSourceLike } from "./data-source-read-BL266IW0.js";
3
- import { n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-ChDSaAUH.js";
4
- import { h as mergeSearchFields } from "./normalize-error-D93O4q8g.js";
1
+ import { n as isPath, r as mergePatch, t as getFieldValue } from "./field-path-DK2VBWHl.js";
2
+ import { i as searchFilterOf, s as flattenLeaves, t as isDataSourceLike } from "./data-source-read-uKJpRAzx.js";
3
+ import { n as andPredicates, r as compileFilterPredicate, t as andFilters } from "./filter-eval-CqeBnMYh.js";
4
+ import { h as mergeSearchFields } from "./normalize-error-BEcd1tmS.js";
5
5
  import { t as resolveMaybeReactive } from "./reactive-Dtd-esHO.js";
6
- import { s as odataStringToArray, t as arrayToODataString } from "./filter-odata-Bi27XUpQ.js";
6
+ import { s as odataStringToArray, t as arrayToODataString } from "./filter-odata-GsczYKNC.js";
7
7
 
8
8
  //#region src/components/table/array-source.ts
9
9
  /** Normalise a possibly-grouped input array to flat leaf rows when grouping. */
@@ -556,4 +556,4 @@ function extraLoadOptions(o) {
556
556
  }
557
557
 
558
558
  //#endregion
559
- export { resolveDataSourceOptions as a, composeSummaryApply as c, createApplyGate as d, isRolledUp as f, monoArraySource as h, normalizeSortList as i, summaryAliases as l, storeRows as m, extraLoadOptions as n, toList as o, loadApply as p, mergeDataSourceOptions as r, buildSummaryApply as s, dataSourceOptionsKey as t, summaryFilterOf as u };
559
+ export { monoArraySource as _, resolveDataSourceOptions as a, composeSummaryApply as c, createApplyGate as d, isRolledUp as f, storeRows as g, odataStoreVersion as h, normalizeSortList as i, summaryAliases as l, odataStoreUrl as m, extraLoadOptions as n, toList as o, loadApply as p, mergeDataSourceOptions as r, buildSummaryApply as s, dataSourceOptionsKey as t, summaryFilterOf as u };
@@ -1,5 +1,5 @@
1
- import { c as toODataClause, n as isPath, t as getFieldValue } from "./field-path-BabiMrrA.js";
2
- import { t as andFilters } from "./filter-eval-ChDSaAUH.js";
1
+ import { c as toODataClause, n as isPath, t as getFieldValue } from "./field-path-DK2VBWHl.js";
2
+ import { t as andFilters } from "./filter-eval-CqeBnMYh.js";
3
3
  import { n as unwrapReactive } from "./reactive-Dtd-esHO.js";
4
4
 
5
5
  //#region src/components/table/grouping.ts