@m3ui-vue/m3ui-vue 1.6.1 → 1.7.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 (171) hide show
  1. package/dist/API.md +649 -28
  2. package/dist/{MButton-OQ4wIERQ.js → MButton-CN3wYwIG.js} +2 -2
  3. package/dist/{MButton-OQ4wIERQ.js.map → MButton-CN3wYwIG.js.map} +1 -1
  4. package/dist/MColorPickerModal-BKM1CHxr.js +577 -0
  5. package/dist/MColorPickerModal-BKM1CHxr.js.map +1 -0
  6. package/dist/{MDialog-DYMnaBlt.js → MDialog-1LAk9WAO.js} +2 -2
  7. package/dist/{MDialog-DYMnaBlt.js.map → MDialog-1LAk9WAO.js.map} +1 -1
  8. package/dist/{MListItem-D2cNUyzP.js → MListItem-BU5KDRCB.js} +376 -270
  9. package/dist/MListItem-BU5KDRCB.js.map +1 -0
  10. package/dist/{MLoadingIndicator-DWUj0BAB.js → MLoadingIndicator-RykOo5tf.js} +2 -2
  11. package/dist/{MLoadingIndicator-DWUj0BAB.js.map → MLoadingIndicator-RykOo5tf.js.map} +1 -1
  12. package/dist/{MSeekBar-C4cn9RIF.js → MSeekBar-B_Y3MpVz.js} +2 -2
  13. package/dist/{MSeekBar-C4cn9RIF.js.map → MSeekBar-B_Y3MpVz.js.map} +1 -1
  14. package/dist/MSegmentedButton-CiOOY1-N.js +105 -0
  15. package/dist/MSegmentedButton-CiOOY1-N.js.map +1 -0
  16. package/dist/MSlider-BCeVIxcq.js +739 -0
  17. package/dist/MSlider-BCeVIxcq.js.map +1 -0
  18. package/dist/{MSpinner-DZkXZJpc.js → MSpinner-Cs03qoqE.js} +2 -2
  19. package/dist/{MSpinner-DZkXZJpc.js.map → MSpinner-Cs03qoqE.js.map} +1 -1
  20. package/dist/{MTextField-CNH-byir.js → MTextField-NaFbMkjv.js} +162 -115
  21. package/dist/MTextField-NaFbMkjv.js.map +1 -0
  22. package/dist/MTooltip-CK39Zon4.js +183 -0
  23. package/dist/MTooltip-CK39Zon4.js.map +1 -0
  24. package/dist/_useFieldValidation-Bz34IAQY.js +191 -0
  25. package/dist/_useFieldValidation-Bz34IAQY.js.map +1 -0
  26. package/dist/api.json +1 -1
  27. package/dist/code-editor.js +184 -103
  28. package/dist/code-editor.js.map +1 -1
  29. package/dist/components/MAddressField.vue.d.ts +18 -3
  30. package/dist/components/MAppBarWithSearch.vue.d.ts +1 -1
  31. package/dist/components/MAudioRecorder.vue.d.ts +2 -2
  32. package/dist/components/MAutocomplete.vue.d.ts +22 -3
  33. package/dist/components/MCheckbox.vue.d.ts +23 -1
  34. package/dist/components/MCodeEditor.vue.d.ts +23 -1
  35. package/dist/components/MColorPicker.vue.d.ts +24 -3
  36. package/dist/components/MConfirmDialog.vue.d.ts +2 -2
  37. package/dist/components/MCountrySelect.vue.d.ts +13 -2
  38. package/dist/components/MCreditCardInput.vue.d.ts +33 -0
  39. package/dist/components/MCronField.vue.d.ts +23 -1
  40. package/dist/components/MDataTable.vue.d.ts +1 -1
  41. package/dist/components/MDatePicker.vue.d.ts +24 -3
  42. package/dist/components/MDateRangePicker.vue.d.ts +24 -3
  43. package/dist/components/MFileUpload.vue.d.ts +23 -2
  44. package/dist/components/MForm.vue.d.ts +61 -0
  45. package/dist/components/MJsonEditor.vue.d.ts +23 -1
  46. package/dist/components/MMapRoute.vue.d.ts +168 -0
  47. package/dist/components/MMaskField.vue.d.ts +20 -2
  48. package/dist/components/MMentionField.vue.d.ts +13 -2
  49. package/dist/components/MMultiAutocomplete.vue.d.ts +22 -3
  50. package/dist/components/MMultiSelect.vue.d.ts +22 -3
  51. package/dist/components/MNavigationRail.vue.d.ts +1 -1
  52. package/dist/components/MNotificationCenter.vue.d.ts +2 -2
  53. package/dist/components/MNumberField.vue.d.ts +20 -2
  54. package/dist/components/MPhoneInput.vue.d.ts +19 -4
  55. package/dist/components/MPinInput.vue.d.ts +24 -3
  56. package/dist/components/MPosKeypad.vue.d.ts +2 -2
  57. package/dist/components/MRadioGroup.vue.d.ts +23 -1
  58. package/dist/components/MRating.vue.d.ts +23 -1
  59. package/dist/components/MRichTextEditor.vue.d.ts +23 -1
  60. package/dist/components/MSearchBar.vue.d.ts +1 -1
  61. package/dist/components/MSegmentedButton.vue.d.ts +23 -2
  62. package/dist/components/MSelect.vue.d.ts +22 -3
  63. package/dist/components/MSignaturePad.vue.d.ts +19 -0
  64. package/dist/components/MSlider.vue.d.ts +23 -1
  65. package/dist/components/MSwitch.vue.d.ts +23 -1
  66. package/dist/components/MTable.vue.d.ts +1 -1
  67. package/dist/components/MTagInput.vue.d.ts +20 -2
  68. package/dist/components/MText.vue.d.ts +1 -1
  69. package/dist/components/MTextField.vue.d.ts +26 -3
  70. package/dist/components/MTimePicker.vue.d.ts +24 -3
  71. package/dist/components/MTimezoneSelect.vue.d.ts +13 -2
  72. package/dist/components/MTour.vue.d.ts +2 -2
  73. package/dist/components/MTrackingTimeline.vue.d.ts +75 -0
  74. package/dist/components/MWindow.vue.d.ts +2 -2
  75. package/dist/composables/_routeGeometry.d.ts +26 -0
  76. package/dist/composables/_useFieldValidation.d.ts +91 -0
  77. package/dist/composables/mapRouting.d.ts +35 -0
  78. package/dist/composables/useLocale.d.ts +23 -0
  79. package/dist/composables/validation.d.ts +82 -0
  80. package/dist/draw.js +27 -26
  81. package/dist/draw.js.map +1 -1
  82. package/dist/flow.js +1 -1
  83. package/dist/gantt.js +2 -2
  84. package/dist/index.d.ts +5 -0
  85. package/dist/locales/index.js +154 -7
  86. package/dist/locales/index.js.map +1 -1
  87. package/dist/m3ui-vue.css +1 -1
  88. package/dist/m3ui.js +7350 -6183
  89. package/dist/m3ui.js.map +1 -1
  90. package/dist/map.d.ts +4 -0
  91. package/dist/map.js +1319 -867
  92. package/dist/map.js.map +1 -1
  93. package/dist/media.js +4 -4
  94. package/dist/pdf.js +4 -4
  95. package/dist/rich-text-editor.js +189 -146
  96. package/dist/rich-text-editor.js.map +1 -1
  97. package/dist/styles.css +1 -1
  98. package/dist/{useLocale-DaVSTdm0.js → useLocale-Dh1xZZ8i.js} +22 -1
  99. package/dist/useLocale-Dh1xZZ8i.js.map +1 -0
  100. package/package.json +1 -1
  101. package/src/__tests__/MForm.test.ts +325 -0
  102. package/src/__tests__/MMapRoute.test.ts +384 -0
  103. package/src/__tests__/MPhoneInput.test.ts +5 -2
  104. package/src/__tests__/MRichTextEditor.test.ts +2 -1
  105. package/src/__tests__/MTrackingTimeline.test.ts +66 -0
  106. package/src/__tests__/_fakeMaplibre.ts +4 -1
  107. package/src/__tests__/_osrmRoutes.ts +10 -0
  108. package/src/__tests__/attrsFallthrough.test.ts +11 -0
  109. package/src/__tests__/fieldsValidation.test.ts +229 -0
  110. package/src/__tests__/ssr.test.ts +1 -0
  111. package/src/__tests__/validation.test.ts +77 -0
  112. package/src/components/MAddressField.vue +45 -8
  113. package/src/components/MAudioRecorder.vue +9 -9
  114. package/src/components/MAutocomplete.vue +69 -23
  115. package/src/components/MCheckbox.vue +80 -17
  116. package/src/components/MCodeEditor.vue +59 -2
  117. package/src/components/MColorPicker.vue +65 -16
  118. package/src/components/MCountrySelect.vue +17 -3
  119. package/src/components/MCreditCardInput.vue +76 -7
  120. package/src/components/MCronField.vue +60 -10
  121. package/src/components/MDatePicker.vue +65 -16
  122. package/src/components/MDateRangePicker.vue +66 -16
  123. package/src/components/MFileUpload.vue +71 -8
  124. package/src/components/MForm.vue +208 -0
  125. package/src/components/MJsonEditor.vue +57 -3
  126. package/src/components/MMapBaseLayers.vue +29 -28
  127. package/src/components/MMapMeasure.vue +1 -1
  128. package/src/components/MMapRoute.vue +470 -0
  129. package/src/components/MMaskField.vue +55 -13
  130. package/src/components/MMentionField.vue +17 -2
  131. package/src/components/MMultiAutocomplete.vue +70 -23
  132. package/src/components/MMultiSelect.vue +70 -23
  133. package/src/components/MNumberField.vue +58 -16
  134. package/src/components/MPhoneInput.vue +60 -18
  135. package/src/components/MPinInput.vue +58 -10
  136. package/src/components/MRadioGroup.vue +65 -4
  137. package/src/components/MRating.vue +62 -6
  138. package/src/components/MRichTextEditor.vue +64 -4
  139. package/src/components/MSegmentedButton.vue +59 -2
  140. package/src/components/MSelect.vue +72 -26
  141. package/src/components/MSignaturePad.vue +71 -6
  142. package/src/components/MSlider.vue +61 -10
  143. package/src/components/MSwitch.vue +63 -8
  144. package/src/components/MTagInput.vue +67 -25
  145. package/src/components/MTextField.vue +68 -14
  146. package/src/components/MTimePicker.vue +65 -16
  147. package/src/components/MTimezoneSelect.vue +17 -3
  148. package/src/components/MTrackingTimeline.vue +257 -0
  149. package/src/composables/_routeGeometry.ts +140 -0
  150. package/src/composables/_useFieldValidation.ts +287 -0
  151. package/src/composables/mapRouting.ts +55 -0
  152. package/src/composables/useLocale.ts +46 -0
  153. package/src/composables/validation.ts +178 -0
  154. package/src/index.ts +5 -0
  155. package/src/locales/de.ts +21 -0
  156. package/src/locales/es.ts +28 -7
  157. package/src/locales/fr.ts +21 -0
  158. package/src/locales/ja.ts +21 -0
  159. package/src/locales/ko.ts +21 -0
  160. package/src/locales/pt.ts +21 -0
  161. package/src/locales/zh.ts +21 -0
  162. package/src/map.ts +4 -0
  163. package/dist/MListItem-D2cNUyzP.js.map +0 -1
  164. package/dist/MSegmentedButton-BEB4gXLA.js +0 -64
  165. package/dist/MSegmentedButton-BEB4gXLA.js.map +0 -1
  166. package/dist/MSlider-BIkA6DiE.js +0 -690
  167. package/dist/MSlider-BIkA6DiE.js.map +0 -1
  168. package/dist/MTextField-CNH-byir.js.map +0 -1
  169. package/dist/MTooltip-Dd5g2zhh.js +0 -754
  170. package/dist/MTooltip-Dd5g2zhh.js.map +0 -1
  171. package/dist/useLocale-DaVSTdm0.js.map +0 -1
package/dist/API.md CHANGED
@@ -1,4 +1,4 @@
1
- # @m3ui-vue/m3ui-vue 1.6.1 — API reference
1
+ # @m3ui-vue/m3ui-vue 1.7.0 — API reference
2
2
 
3
3
  Material Design 3 components for Vue 3 + Tailwind CSS v4. Generated from the source by
4
4
  `scripts/generate-api.mjs`; full docs with live demos at https://m3ui.dev.
@@ -77,12 +77,17 @@ Props:
77
77
  - `debounce?: number = 400` — The delay before an `instant` search, in ms
78
78
  - `minLength?: number = 3` — Characters needed before searching
79
79
  - `hint?: string` — Helper text below the field
80
- - `error?: boolean` — Error state
80
+ - `error?: string | boolean` — Error state. A string is also the message
81
81
  - `errorLabel?: string` — Error message shown when `error` is true
82
- - `required?: boolean` — Marks it as required
82
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema), run on the picked place (null until one is picked); see `MForm`
83
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
84
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
85
+ - `name?: string` — The key of this field in its `MForm`
86
+ - `required?: boolean` — Marks it as required; inside an `MForm` or with `rules`, a place must be picked (typed text alone isn't enough)
83
87
  - `disabled?: boolean` — Disables the field
84
88
 
85
89
  Events:
90
+ - `blur()` — Focus left the field and its list
86
91
  - `update:modelValue(place: MapSearchResult | null)` — A place was picked, or the text changed after picking one (null)
87
92
  - `select(place: MapSearchResult)` — A place was picked
88
93
 
@@ -90,6 +95,8 @@ Exposed (template ref):
90
95
  - `search: () => Promise<void>` — Searches for the current text now
91
96
  - `clear: () => void` — Empties the field
92
97
  - `focus: () => void | undefined` — Focuses the field
98
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
99
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
93
100
 
94
101
  ### MAlert
95
102
 
@@ -292,8 +299,12 @@ Props:
292
299
  - `variant?: "filled" | "outlined" = "filled"` — Field style
293
300
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
294
301
  - `disabled?: boolean = false` — Disables the field
295
- - `error?: boolean` — Error state
302
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
296
303
  - `errorLabel?: string` — Error message shown when error is true
304
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
305
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
306
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
307
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
297
308
  - `hint?: string` — Helper text below field
298
309
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
299
310
  - `leadingIcon?: string` — Material Symbol icon name
@@ -303,9 +314,14 @@ Props:
303
314
  - `debounce?: number = 0` — Delay (ms) before filtering and firing @debounced. Selection is always instant
304
315
 
305
316
  Events:
317
+ - `blur()`
306
318
  - `update:modelValue(unknown)` — Emitted on selection — powers v-model (`null` when the clear button empties it)
307
319
  - `debounced(string)` — Emitted debounce ms after the user stops typing the search query (only when debounce > 0)
308
320
 
321
+ Exposed (template ref):
322
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
323
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
324
+
309
325
  ### MAvailabilityCalendar
310
326
 
311
327
  A booking calendar for stays (hotel, cabin, apartment, equipment rental): picks a check-in and a check-out night with the price of each night under its day, booked nights blocked, and a minimum / maximum stay. Once a check-in is chosen, only the days that make a valid stay stay pickable: a stay can't run over a booked night, but it can check out on the morning a booked night starts. Dates are `YYYY-MM-DD` strings in local time; each date's price and availability are those of the night that starts on it.
@@ -596,7 +612,7 @@ The standard M3 button — five variants, five expressive size tiers, and either
596
612
  Props:
597
613
  - `variant?: "filled" | "outlined" | "text" | "elevated" | "tonal" = "filled"` — Visual style of the button
598
614
  - `color?: string = "primary"` — Named semantic color ('primary' | 'error') OR any CSS color string ('red', '#e91e63', 'oklch(0.6 0.2 0)', …). When a CSS color is passed, --color-primary is overridden for this button.
599
- - `type?: "button" | "submit" | "reset" = "button"` — HTML button type
615
+ - `type?: "submit" | "button" | "reset" = "button"` — HTML button type
600
616
  - `disabled?: boolean = false` — Disables interaction
601
617
  - `loading?: boolean = false` — Shows a spinner and disables the button
602
618
  - `icon?: string` — Material Symbol icon name shown next to the label
@@ -942,13 +958,25 @@ Props:
942
958
  - `label?: string` — Label text — overridden by the default slot when present
943
959
  - `color?: "error" | "primary" | "secondary" | "tertiary" = "primary"` — Checked/indeterminate color
944
960
  - `ariaLabel?: string` — Accessible name for the input when there's no visible label (e.g. a list row's checkbox).
961
+ - `error?: string | boolean` — Error state. A string is also the message
962
+ - `errorLabel?: string` — Error message shown when `error` is true
963
+ - `required?: boolean` — Must be ticked, inside an `MForm` or with `rules`
964
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
965
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
966
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
967
+ - `name?: string` — The key of this field in its `MForm`
945
968
 
946
969
  Events:
970
+ - `blur(FocusEvent)` — Emitted when the checkbox loses focus
947
971
  - `update:modelValue(boolean)` — Emitted with the new checked state.
948
972
 
949
973
  Slots:
950
974
  - `#default` — Custom label content — overrides the label prop when provided
951
975
 
976
+ Exposed (template ref):
977
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
978
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
979
+
952
980
  ### MChip
953
981
 
954
982
  Compact elements for filters, input, or actions — named semantic tones or any CSS color, with optional icon, click, selection, and removal support. With `type` it's one of M3's four chips instead (assist, filter, input, suggestion), styled by the spec and always interactive; `tone` then doesn't apply.
@@ -960,7 +988,7 @@ Props:
960
988
  - `clickable?: boolean = false` — Makes the chip an interactive `<button>` with hover/press/focus feedback (otherwise renders as a plain `<span>`)
961
989
  - `disabled?: boolean = false` — Disables interaction
962
990
  - `icon?: string` — Leading Material Symbol icon
963
- - `type?: "filter" | "assist" | "input" | "suggestion"` — One of M3's chips: `assist` (an action), `filter` (on/off, v-model:selected; a check slides in while selected), `input` (a piece of user input, with an optional #avatar and `removable`), `suggestion`. Leave unset for the generic tone-colored chip
991
+ - `type?: "filter" | "input" | "assist" | "suggestion"` — One of M3's chips: `assist` (an action), `filter` (on/off, v-model:selected; a check slides in while selected), `input` (a piece of user input, with an optional #avatar and `removable`), `suggestion`. Leave unset for the generic tone-colored chip
964
992
  - `elevated?: boolean = false` — Typed assist, filter and suggestion chips: surface-container-low with elevation 1 instead of an outline
965
993
  - `trailingIcon?: string` — Typed chips: a trailing Material Symbol icon (e.g. arrow_drop_down on a filter chip that opens a menu)
966
994
 
@@ -1005,14 +1033,26 @@ Props:
1005
1033
  - `minHeight?: string = "200px"` — Minimum editor height
1006
1034
  - `maxHeight?: string = "600px"` — Maximum editor height
1007
1035
  - `placeholder?: string` — Placeholder text shown via CodeMirror when the editor is empty
1036
+ - `error?: string | boolean` — Error state. A string is also the message
1037
+ - `errorLabel?: string` — Error message shown when `error` is true
1038
+ - `required?: boolean` — Inside an `MForm` or with `rules`, the code can't be blank
1039
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
1040
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
1041
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1042
+ - `name?: string` — The key of this field in its `MForm`
1008
1043
  - `wrap?: boolean = true` — Word wrap
1009
1044
 
1010
1045
  Events:
1046
+ - `blur()` — Emitted when focus leaves the editor
1011
1047
  - `update:modelValue(string)` — Emitted on every document change — powers v-model
1012
1048
 
1013
1049
  Slots:
1014
1050
  - `#actions` — Extra controls rendered in the header bar, before the built-in copy button
1015
1051
 
1052
+ Exposed (template ref):
1053
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1054
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1055
+
1016
1056
  ```ts
1017
1057
  type Language = 'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'python' | 'vue' | 'c' | 'cpp' | 'rust' | 'asm' | 'plain'
1018
1058
  ```
@@ -1046,14 +1086,24 @@ Props:
1046
1086
  - `recentLimit?: number = 7` — How many recent colors to keep.
1047
1087
  - `eyedropper?: boolean = true` — Show a button to pick a color from the screen, where the browser supports it (Chrome, Edge).
1048
1088
  - `disabled?: boolean` — Disables the picker
1049
- - `error?: boolean` — Error state
1089
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
1050
1090
  - `errorLabel?: string` — Error message shown when error is true
1091
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
1092
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
1093
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
1094
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1095
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
1051
1096
  - `hint?: string` — Hint text below the field
1052
1097
  - `fieldBg?: string` — Overrides the auto-detected background color used to cut the floating label out of the border
1053
1098
 
1054
1099
  Events:
1100
+ - `blur()`
1055
1101
  - `update:modelValue(string)` — Emitted with the picked color, live while dragging or typing.
1056
1102
 
1103
+ Exposed (template ref):
1104
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1105
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1106
+
1057
1107
  ### MColorPickerModal
1058
1108
 
1059
1109
  A color picker in a dialog: saturation/brightness area, hue (and optional opacity) slider, eyedropper, HEX/RGB/HSL fields, recent colors and preset swatches. Built on MDialog; the color is only applied on confirm, and the preview shows it next to the original.
@@ -1247,12 +1297,17 @@ Props:
1247
1297
  - `mode?: "docked" | "modal" = "docked"` — Dropdown, or a dialog on small screens
1248
1298
  - `clearable?: boolean = false` — Show a clear button
1249
1299
  - `hint?: string` — Helper text below the field
1250
- - `error?: boolean` — Error state
1300
+ - `error?: string | boolean` — Error state. A string is also the message
1251
1301
  - `errorLabel?: string` — Error message shown when `error` is true
1302
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
1303
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
1304
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1305
+ - `name?: string` — The key of this field in its `MForm`
1252
1306
  - `required?: boolean` — Marks it as required
1253
1307
  - `disabled?: boolean` — Disables the field
1254
1308
 
1255
1309
  Events:
1310
+ - `blur()`
1256
1311
  - `update:modelValue(code: string | null)` — A country was picked (its code), or cleared (null)
1257
1312
 
1258
1313
  ### MCreditCardInput
@@ -1267,8 +1322,16 @@ Props:
1267
1322
  - `autoAdvance?: boolean = true` — Moves focus to the next field once one is complete and valid
1268
1323
  - `errors?: Partial<Record<CreditCardField, string>>` — Error messages to show regardless of the built-in checks, e.g. a decline from the server
1269
1324
  - `disabled?: boolean = false` — Disables every field
1325
+ - `error?: string | boolean` — Error state for the whole card (e.g. a decline). A string is also the message
1326
+ - `errorLabel?: string` — Error message shown when `error` is true
1327
+ - `required?: boolean` — Inside an `MForm` or with `rules`, an empty card fails (an empty optional card passes; a half-typed one never does)
1328
+ - `rules?: ValidationRule | ValidationRule[]` — More validation rules on the whole value (functions or a Standard Schema); see `MForm`
1329
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the card fields (default), while typing, or only on submit
1330
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1331
+ - `name?: string` — The key of the card value in its `MForm`
1270
1332
 
1271
1333
  Events:
1334
+ - `blur()` — Emitted when focus leaves the card fields
1272
1335
  - `update:modelValue(CreditCardValue)` — Emitted on every change — powers v-model
1273
1336
  - `complete(CreditCardValue)` — Emitted when every field becomes valid, with the value
1274
1337
  - `brand(CardBrand)` — Emitted when the detected network changes
@@ -1280,6 +1343,7 @@ Exposed (template ref):
1280
1343
  - `brand: CardBrand` — Detected card network
1281
1344
  - `valid: boolean` — Whether every field is valid
1282
1345
  - `validate: () => boolean` — Shows the errors of every field (as if each had been visited) and returns whether all are valid
1346
+ - `resetValidation: () => void` — Hides every error until the fields are left again
1283
1347
  - `focus: (field?: CreditCardField) => void | undefined` — Focuses a field (the number by default)
1284
1348
 
1285
1349
  ```ts
@@ -1307,10 +1371,22 @@ Props:
1307
1371
  - `nextRuns?: number = 3` — How many upcoming runs to list (0: none)
1308
1372
  - `variant?: "filled" | "outlined" = "filled"` — Field style
1309
1373
  - `disabled?: boolean = false` — Disables it
1374
+ - `error?: string | boolean` — Error state. A string is also the message
1375
+ - `errorLabel?: string` — Error message shown when `error` is true
1376
+ - `required?: boolean` — Marks it as required; inside an `MForm` or with `rules`, an expression must be set
1377
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
1378
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
1379
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1380
+ - `name?: string` — The key of this field in its `MForm`
1310
1381
 
1311
1382
  Events:
1383
+ - `blur()` — Emitted when focus leaves the whole field
1312
1384
  - `update:modelValue(expression: string)` — The expression changed (only valid ones)
1313
1385
 
1386
+ Exposed (template ref):
1387
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1388
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1389
+
1314
1390
  ### MDashboardGrid
1315
1391
 
1316
1392
  A dashboard of widgets on a grid that people rearrange: drag a widget to move it (others make room and everything floats up to fill gaps), drag its corner to resize it, all on springs. Touch picks a widget up on a long press, so the page still scrolls; the keyboard does it all too (Space to pick up, arrows to move, Shift and arrows to resize, Space to drop, Escape to cancel), announced to screen readers. The layout (cells: `x`, `y`, `w`, `h`) is the v-model; your content goes in `#item`. Below `breakpoint` (its own width) the widgets stack in one column.
@@ -1414,8 +1490,13 @@ Props:
1414
1490
  - `max?: string` — Maximum selectable date (YYYY-MM-DD)
1415
1491
  - `yearRange?: [number, number]` — First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
1416
1492
  - `disabled?: boolean` — Disables the picker
1417
- - `error?: boolean` — Error state
1493
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
1418
1494
  - `errorLabel?: string` — Error message shown when error is true
1495
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
1496
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
1497
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
1498
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1499
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
1419
1500
  - `hint?: string` — Hint text below the field
1420
1501
  - `locale?: string` — Locale for month/day names. Falls back to the app's configured locale (createM3UI({ locale })) — same pattern as MRelativeTime
1421
1502
  - `fieldBg?: string` — Overrides the auto-detected background color used to cut the floating label out of the border
@@ -1423,8 +1504,13 @@ Props:
1423
1504
  - `nextMonthLabel?: string` — Aria label for the next-month button — defaults to the current locale's string
1424
1505
 
1425
1506
  Events:
1507
+ - `blur()`
1426
1508
  - `update:modelValue(string | null)` — Emitted with the picked date.
1427
1509
 
1510
+ Exposed (template ref):
1511
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1512
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1513
+
1428
1514
  ### MDatePickerModal
1429
1515
 
1430
1516
  A modal, centered date picker with calendar and keyboard input modes. For a field that opens a dropdown calendar, use MDatePicker.
@@ -1454,8 +1540,13 @@ Props:
1454
1540
  - `max?: string` — Maximum date (YYYY-MM-DD)
1455
1541
  - `yearRange?: [number, number]` — First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
1456
1542
  - `disabled?: boolean` — Disables the picker
1457
- - `error?: boolean` — Error state
1543
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
1458
1544
  - `errorLabel?: string` — Error message shown when error is true
1545
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
1546
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
1547
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
1548
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1549
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
1459
1550
  - `hint?: string` — Hint text below the field
1460
1551
  - `locale?: string` — Locale for month/day names. Falls back to the app's configured locale (createM3UI({ locale })) — same pattern as MRelativeTime
1461
1552
  - `fieldBg?: string` — Overrides the auto-detected background color used to cut the floating label out of the border
@@ -1465,8 +1556,13 @@ Props:
1465
1556
  - `pickEndText?: string` — Header text shown while picking the end date — defaults to the current locale's string
1466
1557
 
1467
1558
  Events:
1559
+ - `blur()`
1468
1560
  - `update:modelValue(DateRange)` — Emitted with the picked range.
1469
1561
 
1562
+ Exposed (template ref):
1563
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1564
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1565
+
1470
1566
  ```ts
1471
1567
  export interface DateRange {
1472
1568
  start: string | null
@@ -1857,8 +1953,16 @@ Props:
1857
1953
  - `maxSizePrefix?: string` — Prefix shown before the formatted max size (defaults to the locale string)
1858
1954
  - `removeLabel?: string` — Aria label for each file row's remove button (defaults to the locale string)
1859
1955
  - `modelValue?: UploadFile[]` (v-model) — Optional v-model. Bind it to own the list: clear it, or update each entry's status/progress. Unbound, the component keeps the list itself.
1956
+ - `error?: string | boolean` — Error state. A string is also the message
1957
+ - `errorLabel?: string` — Error message shown when `error` is true
1958
+ - `required?: boolean` — Inside an `MForm` or with `rules`, at least one file must be chosen
1959
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules on the file list (functions or a Standard Schema); `minLength`/`maxLength` count files. See `MForm`
1960
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
1961
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
1962
+ - `name?: string` — The key of this field in its `MForm`
1860
1963
 
1861
1964
  Events:
1965
+ - `blur()` — Emitted when focus leaves the drop zone
1862
1966
  - `update:modelValue(UploadFile[])` — Emitted with the new list whenever files are added, removed or cleared (v-model)
1863
1967
  - `select(UploadFile[])` — Emitted with the newly accepted files whenever files are added (drop or picker)
1864
1968
  - `remove(UploadFile)` — Emitted when a file is removed from the list with its remove button
@@ -1870,6 +1974,8 @@ Slots:
1870
1974
  Exposed (template ref):
1871
1975
  - `clear: () => void`
1872
1976
  - `files: UploadFile[]`
1977
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
1978
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
1873
1979
 
1874
1980
  ```ts
1875
1981
  export interface UploadFile {
@@ -2381,6 +2487,34 @@ Slots:
2381
2487
  - `#social` — Social media icon buttons (flex row with gap)
2382
2488
  - `#bottom` — Bottom bar with copyright / legal links (separated by a top border)
2383
2489
 
2490
+ ### MForm
2491
+
2492
+ A `<form>` that validates the fields inside it. Each field registers itself (by its `name`) and checks its own `rules`; the form adds a whole-form `schema` (zod, valibot… any Standard Schema), errors from outside (`errors`: a server's 422, vee-validate's `errors`), and on submit validates everything, emitting `submit` only when it all passes, or `invalid` and focusing the first field in error.
2493
+
2494
+ Props:
2495
+ - `errors?: Record<string, string | string[] | null>` — Errors from outside, by field name (a string or the first of an array): a server's response, vee-validate's `errors`. Shown over the fields' own rules
2496
+ - `schema?: StandardSchemaV1<unknown, unknown>` — A schema for the whole form (zod, valibot, arktype… any Standard Schema), run against the values by name
2497
+ - `validateOn?: ValidateOn` — When the fields check and show their rules, unless a field sets its own: on leaving it (default), while typing, or only on submit
2498
+ - `validateDebounce?: number` — Default for every field: wait this long (ms) after a value stops changing before re-checking it, so an async rule makes one request, not one per key
2499
+ - `keepErrors?: boolean` — Keep an `errors` message after its field changes. By default it hides as soon as the user edits that field, until a new `errors` object comes
2500
+ - `disabled?: boolean` — Disables every control inside (through a native `<fieldset disabled>`) and skips their validation
2501
+
2502
+ Events:
2503
+ - `submit(values: any, event: SubmitEvent)` — Emitted when every field is valid, with the values by name (dotted names nest: `address.city` → `{ address: { city } }`), or the schema's output when there's a `schema`
2504
+ - `reset()` — Emitted after `reset()` (or a `type="reset"` button) put every field back to its first value
2505
+ - `invalid(errors: Record<string, string>)` — Emitted when a submit fails validation, with the error messages by name
2506
+
2507
+ Slots:
2508
+ - `#default` — The fields and buttons (a `<MButton type="submit">` submits it, as does Enter in a text field)
2509
+
2510
+ Exposed (template ref):
2511
+ - `validate: (names?: string[] | undefined, options?: { focus?: boolean | undefined; }) => Promise<boolean>`
2512
+ - `reset: () => Promise<void>`
2513
+ - `resetValidation: (names?: string[] | undefined) => void`
2514
+ - `valid: boolean` — Whether every field's rules pass right now (checked silently, shown or not)
2515
+ - `pending: boolean` — Whether async rules are still running
2516
+ - `values: Record<string, any>` — The values by name (dotted names nested)
2517
+
2384
2518
  ### MFullscreen
2385
2519
 
2386
2520
  Fills the entire viewport (or parent when `fixed=false`). Useful for loading screens, splash pages, or modal backdrops.
@@ -2640,13 +2774,25 @@ A JSON-aware editor built on top of MCodeEditor — validates as you type and ad
2640
2774
  Props:
2641
2775
  - `modelValue: unknown` (v-model) — JSON data (v-model, any valid JSON)
2642
2776
  - `readonly?: boolean = false` — Read-only mode
2777
+ - `error?: string | boolean` — Error state. A string is also the message
2778
+ - `errorLabel?: string` — Error message shown when `error` is true
2779
+ - `required?: boolean` — Inside an `MForm` or with `rules`, it can't be empty (null)
2780
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
2781
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
2782
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
2783
+ - `name?: string` — The key of this field in its `MForm`
2643
2784
  - `minHeight?: string = "200px"` — Min height
2644
2785
  - `maxHeight?: string = "600px"` — Max height
2645
2786
  - `labels?: JsonEditorLabels` — Overrides for the valid/invalid badge and format/minify button text (see `JsonEditorLabels`) — defaults come from useLocale()
2646
2787
 
2647
2788
  Events:
2789
+ - `blur()` — Emitted when focus leaves the editor
2648
2790
  - `update:modelValue(unknown)` — Emitted with the parsed value whenever the text is valid JSON — powers v-model
2649
2791
 
2792
+ Exposed (template ref):
2793
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
2794
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
2795
+
2650
2796
  ```ts
2651
2797
  export interface JsonEditorLabels {
2652
2798
  valid?: string
@@ -3235,6 +3381,62 @@ Slots:
3235
3381
  Exposed (template ref):
3236
3382
  - `popup: () => Popup | undefined` — The MapLibre popup
3237
3383
 
3384
+ ### MMapRoute
3385
+
3386
+ Import from `@m3ui-vue/m3ui-vue/map`.
3387
+
3388
+ A route on an `MMap`, for deliveries and trips: the path (from your routing service, or straight lines between the stops), the part already travelled solid and the rest dotted, a marker per stop, reached ones filled, and a vehicle that moves along the road, not across it, when its position changes. Drive it with `progress` (0–1 of the way) or `vehicle` (a live GPS position, which lands on the nearest point of the route). Theme colors, following palette and dark mode. Available from the `/map` entry point.
3389
+
3390
+ Props:
3391
+ - `stops: MapRouteStop[]` — The stops, in order: the start, any in between, the destination
3392
+ - `path?: LngLat[]` — The road to follow, `[lng, lat][]`: a routing service's geometry (OSRM, GraphHopper, Mapbox…), with the streets' real shape. Without it, `provider` fetches one, or the stops are joined by straight lines
3393
+ - `progress?: number` — How far the vehicle is, 0–1 of the route's length. Ignored when `vehicle` is set
3394
+ - `vehicle?: LngLat | null` — The vehicle's live position, `[lng, lat]`: it's placed on the nearest point of the route
3395
+ - `vehicleIcon?: string = "navigation"` — A Material Symbol for the vehicle. The default arrow turns with the road; other icons (`two_wheeler`, `local_shipping`) face the way it goes
3396
+ - `rotateVehicle?: boolean` — Turn the vehicle with the road (following the map's own rotation too): on for the default arrow, off for other icons (they're mirrored when heading west instead). Set it for `#vehicle` content drawn pointing up (north)
3397
+ - `showVehicle?: boolean = true` — Show the vehicle (when there's a `progress` or `vehicle`)
3398
+ - `duration?: number = 1000` — How long the vehicle takes to move to a new position, in ms (0 jumps). Reduced motion jumps
3399
+ - `fit?: boolean = true` — Fit the map to the whole route when it's shown and when the route changes
3400
+ - `follow?: boolean = false` — Keep the vehicle in the middle of the map as it moves
3401
+ - `padding?: number = 64` — Room around the route when fitting it, in px
3402
+ - `color?: string` — The route's color: one MapLibre reads (hex, rgb()…), not `var()`. Defaults to the theme's primary, following palette and dark mode
3403
+ - `flow?: boolean = true` — The dots of the route ahead flow toward the destination (off with reduced motion)
3404
+ - `width?: number = 5` — Line width in px
3405
+ - `before?: string` — Insert the route's lines below this layer id (e.g. under the style's labels)
3406
+ - `id?: string` — The source's id (and the prefix of its layers' ids). Generated when left out
3407
+ - `provider?: MapRouteProvider` — Fetches the road between the stops when there's no `path` (again when they change): `osrmRouteProvider()`, or your own function. Straight lines meanwhile, and if it fails (`error` event)
3408
+ - `snap?: "forward" | "nearest" = "forward"` — How a `vehicle` position lands on the route: `forward` (default) only moves ahead from where it was, so a route that passes the same place twice (out and back, a loop, close parallel streets) doesn't jump to the other pass; `nearest` takes the closest point of the whole route every time
3409
+
3410
+ Events:
3411
+ - `error(error: unknown)` — `provider` failed
3412
+ - `route(route: MapRouteResult)` — `provider` returned a road (`{ path, distance, duration }`)
3413
+ - `stop-click(stop: MapRouteStop, index: number)` — A stop was clicked: the stop and its index
3414
+ - `arrive()` — The vehicle reached the end of the route
3415
+
3416
+ Slots:
3417
+ - `#stop { stop: MapRouteStop; index: number; done: boolean; }` — A stop's marker, instead of the round one. Scope: `{ stop, index, done }`
3418
+ - `#stop-popup { stop: MapRouteStop; index: number; done: boolean; }` — Content of a popup that opens when a stop is clicked. Scope: `{ stop, index, done }`
3419
+ - `#vehicle { bearing: number; west: boolean; }` — The vehicle, instead of the round one (an image, a top-down car, a pin). Scope: `{ bearing, west }`: the heading in degrees, and whether it's heading west (to mirror something drawn facing right). With `rotateVehicle` the marker turns it with the road itself
3420
+
3421
+ Exposed (template ref):
3422
+ - `length: number` — The route's length, in meters
3423
+ - `travelled: number` — How far the vehicle is now, in meters
3424
+ - `sourceId: string` — The source's id
3425
+
3426
+ ```ts
3427
+ /** A stop on an `MMapRoute`: a pickup, a drop-off, a waypoint. */
3428
+ export interface MapRouteStop {
3429
+ /** Where it is, `[lng, lat]` */
3430
+ lngLat: LngLat
3431
+ /** Its name (the marker's accessible name and tooltip) */
3432
+ label?: string
3433
+ /** A Material Symbol inside its marker. Defaults to a number for the stops in between, a flag for the last one */
3434
+ icon?: string
3435
+ /** Mark it reached (or not) yourself, instead of by where the vehicle is along the route */
3436
+ done?: boolean
3437
+ }
3438
+ ```
3439
+
3238
3440
  ### MMapSearch
3239
3441
 
3240
3442
  Import from `@m3ui-vue/m3ui-vue/map`.
@@ -3272,8 +3474,12 @@ Props:
3272
3474
  - `label: string` — Field label
3273
3475
  - `mask: string` — Mask pattern (# = digit) or a built-in preset name (see `MaskPreset`)
3274
3476
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
3275
- - `error?: boolean` — Error state
3477
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3276
3478
  - `errorLabel?: string` — Error message shown when error is true
3479
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
3480
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3481
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
3482
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3277
3483
  - `hint?: string` — Hint text
3278
3484
  - `disabled?: boolean` — Disables the field
3279
3485
  - `required?: boolean` — Marks as required — adds a red asterisk after the label
@@ -3283,10 +3489,13 @@ Props:
3283
3489
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
3284
3490
 
3285
3491
  Events:
3492
+ - `blur()`
3286
3493
  - `update:modelValue(string)` — Emitted on every keystroke — powers v-model
3287
3494
  - `debounced(string)` — Emitted debounce ms after the user stops typing (only when debounce > 0)
3288
3495
 
3289
3496
  Exposed (template ref):
3497
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3498
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3290
3499
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
3291
3500
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
3292
3501
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -3328,12 +3537,17 @@ Props:
3328
3537
  - `debounce?: number = 200` — The delay before a `search`, in ms
3329
3538
  - `leadingIcon?: string` — Material Symbol on the left
3330
3539
  - `hint?: string` — Helper text below the field
3331
- - `error?: boolean` — Error state
3540
+ - `error?: string | boolean` — Error state. A string is also the message
3332
3541
  - `errorLabel?: string` — Error message shown when `error` is true
3542
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
3543
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
3544
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
3545
+ - `name?: string` — The key of this field in its `MForm`
3333
3546
  - `required?: boolean` — Marks it as required
3334
3547
  - `disabled?: boolean` — Disables the field
3335
3548
 
3336
3549
  Events:
3550
+ - `blur()`
3337
3551
  - `update:modelValue(text: string)` — The text changed
3338
3552
  - `update:mentions(mentions: MentionRef[])` — The picked items still in the text changed
3339
3553
  - `mention(item: MentionItem, trigger: string)` — An item was picked: `(item, trigger)`
@@ -3522,8 +3736,12 @@ Props:
3522
3736
  - `variant?: "filled" | "outlined" = "filled"` — Field style
3523
3737
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
3524
3738
  - `disabled?: boolean = false` — Disables the field
3525
- - `error?: boolean` — Error state
3739
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3526
3740
  - `errorLabel?: string` — Error message shown when error is true
3741
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
3742
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3743
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
3744
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3527
3745
  - `hint?: string` — Helper text below field
3528
3746
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
3529
3747
  - `leadingIcon?: string` — Material Symbol icon name
@@ -3535,9 +3753,14 @@ Props:
3535
3753
  - `debounce?: number = 0` — Delay (ms) before filtering and firing @debounced. Selection is always instant
3536
3754
 
3537
3755
  Events:
3756
+ - `blur()`
3538
3757
  - `update:modelValue(unknown[])` — Emitted on selection change — powers v-model
3539
3758
  - `debounced(string)` — Emitted debounce ms after the user stops typing the search query (only when debounce > 0)
3540
3759
 
3760
+ Exposed (template ref):
3761
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3762
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3763
+
3541
3764
  ### MMultiSelect
3542
3765
 
3543
3766
  Select multiple values with removable chips and an optional in-dropdown search.
@@ -3550,8 +3773,12 @@ Props:
3550
3773
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
3551
3774
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
3552
3775
  - `disabled?: boolean = false` — Disables the field
3553
- - `error?: boolean` — Error state
3776
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3554
3777
  - `errorLabel?: string` — Error message shown when error is true
3778
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
3779
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3780
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
3781
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3555
3782
  - `hint?: string` — Hint text below the field
3556
3783
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
3557
3784
  - `leadingIcon?: string` — Material Symbol shown before the trigger
@@ -3564,11 +3791,16 @@ Props:
3564
3791
  - `hideSelected?: boolean = false` — Remove already-selected options from the dropdown
3565
3792
 
3566
3793
  Events:
3794
+ - `blur()`
3567
3795
  - `update:modelValue(unknown[])` — Emitted with the new array of selected values.
3568
3796
 
3569
3797
  Slots:
3570
3798
  - `#no-results` — Custom content shown in the dropdown when no options match the search query
3571
3799
 
3800
+ Exposed (template ref):
3801
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3802
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3803
+
3572
3804
  ```ts
3573
3805
  export interface MultiSelectOption {
3574
3806
  label: string
@@ -3768,8 +4000,12 @@ Props:
3768
4000
  - `min?: number` — Minimum allowed value
3769
4001
  - `max?: number` — Maximum allowed value
3770
4002
  - `step?: number = 1` — Increment/decrement step
3771
- - `error?: boolean` — Error state
4003
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3772
4004
  - `errorLabel?: string` — Error message shown when error is true
4005
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
4006
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
4007
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4008
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3773
4009
  - `hint?: string` — Hint text
3774
4010
  - `disabled?: boolean` — Disables the field
3775
4011
  - `required?: boolean` — Marks as required — adds a red asterisk after the label
@@ -3779,10 +4015,13 @@ Props:
3779
4015
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
3780
4016
 
3781
4017
  Events:
4018
+ - `blur()`
3782
4019
  - `update:modelValue(number | null)` — Emitted on every change — typing, stepper clicks, or arrow keys — powers v-model
3783
4020
  - `debounced(number | null)` — Emitted debounce ms after the user stops typing (only when debounce > 0). Stepper clicks/arrow keys still emit instantly
3784
4021
 
3785
4022
  Exposed (template ref):
4023
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4024
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3786
4025
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
3787
4026
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
3788
4027
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -4065,18 +4304,23 @@ Props:
4065
4304
  - `countries?: string[]` — Only these countries (ISO codes) in the list
4066
4305
  - `preferred?: string[]` — Countries pinned at the top of the list
4067
4306
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4068
- - `error?: boolean` — Puts the field in error state
4307
+ - `error?: string | boolean` — Puts the field in error state. A string is also the message
4069
4308
  - `errorLabel?: string` — Error message below the field (when `error`, or when `validate` finds the number incomplete)
4309
+ - `rules?: ValidationRule | ValidationRule[]` — More validation rules (functions or a Standard Schema), run on the E.164 value; see `MForm`
4310
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
4311
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4312
+ - `name?: string` — The key of this field in its `MForm`
4070
4313
  - `hint?: string` — Hint text below the field
4071
4314
  - `disabled?: boolean` — Disables the field
4072
4315
  - `required?: boolean` — Marks as required — adds a red asterisk after the label
4073
- - `validate?: boolean = true` — After leaving the field, show an error when the number doesn't fit its country's length
4316
+ - `validate?: boolean = true` — After leaving the field, show an error when the number doesn't fit its country's length (and block an `MForm`'s submit)
4074
4317
  - `placeholder?: string` — Placeholder; defaults to an example in the country's format
4075
4318
  - `flags?: boolean = true` — Show flag emoji
4076
4319
  - `fieldBg?: string` — Overrides the auto-detected background behind the outlined label
4077
4320
  - `locale?: string` — BCP-47 language for country names; defaults to the app's locale
4078
4321
 
4079
4322
  Events:
4323
+ - `blur()` — Focus left the field and its country list
4080
4324
  - `update:modelValue(string | null)` — Emitted with the number in E.164, or null when empty — powers v-model
4081
4325
  - `update:country(string)` — Emitted with the ISO code when the country changes — powers v-model:country
4082
4326
  - `update:valid(boolean)` — Emitted when the number becomes (in)valid for its country — powers v-model:valid
@@ -4086,6 +4330,7 @@ Slots:
4086
4330
 
4087
4331
  Exposed (template ref):
4088
4332
  - `focus: (options?: FocusOptions | undefined) => void | undefined`
4333
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4089
4334
  - `valid: boolean` — Whether the number fits its country's length
4090
4335
 
4091
4336
  ### MPinInput
@@ -4100,17 +4345,27 @@ Props:
4100
4345
  - `type?: "numeric" | "alphanumeric" = "numeric"` — Restricts which characters are accepted
4101
4346
  - `masked?: boolean = false` — Renders each box as a password field (dots instead of characters)
4102
4347
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4103
- - `error?: boolean` — Error state
4348
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
4104
4349
  - `errorLabel?: string` — Error message shown when error is true
4350
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
4351
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
4352
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
4353
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4354
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
4105
4355
  - `hint?: string` — Hint text below the boxes
4106
4356
  - `disabled?: boolean = false` — Disables every box
4107
4357
  - `autoFocus?: boolean = false` — Focuses the first box on mount
4108
4358
  - `label?: string` — aria-label for the group of boxes
4109
4359
 
4110
4360
  Events:
4361
+ - `blur()`
4111
4362
  - `update:modelValue(string)` — Emitted on every box change — powers v-model
4112
4363
  - `complete(string)` — Fires once with the full code as soon as every box is filled — the natural place to trigger auto-submit
4113
4364
 
4365
+ Exposed (template ref):
4366
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4367
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4368
+
4114
4369
  ### MPosKeypad
4115
4370
 
4116
4371
  A large touch keypad for a point of sale, a kiosk or a cash drawer: amounts, quantities, a waiter's PIN. It shows the value formatted (with a currency when one is given), can enter amounts cash-register style (digits shift in from the right, `1` `2` `5` `0` → 12.50), offers quick-amount chips and, given the amount due, shows what's left to pay or the change to give back. Holding delete clears everything. With the keypad focused (or `keyboard="global"`), the physical keyboard works too: digits, `.`/`,`, Backspace, Escape to clear and Enter to submit. The value (v-model) is a plain decimal string ("12.50", or the digits of a PIN) so leading zeros survive.
@@ -4135,8 +4390,8 @@ Props:
4135
4390
  - `disabled?: boolean = false` — Disables every key
4136
4391
 
4137
4392
  Events:
4138
- - `update:modelValue(string)` — Emitted on every key — powers v-model
4139
4393
  - `submit(string)` — Emitted by the action button or Enter, with the value
4394
+ - `update:modelValue(string)` — Emitted on every key — powers v-model
4140
4395
  - `key(string)` — Emitted on every key press, with the key (`'0'`–`'9'`, `'00'`, `'.'`, `'backspace'`, `'clear'`)
4141
4396
 
4142
4397
  Slots:
@@ -4398,10 +4653,22 @@ Props:
4398
4653
  - `direction?: "row" | "column" = "column"` — Layout direction
4399
4654
  - `disabled?: boolean = false` — Disables all radios
4400
4655
  - `color?: "error" | "primary" | "secondary" | "tertiary" = "primary"` — Radio color
4656
+ - `error?: string | boolean` — Error state. A string is also the message
4657
+ - `errorLabel?: string` — Error message shown when `error` is true
4658
+ - `required?: boolean` — Marks it as required (asterisk); inside an `MForm` or with `rules`, an option must be picked
4659
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
4660
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
4661
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4662
+ - `name?: string` — The key of this field in its `MForm`
4401
4663
 
4402
4664
  Events:
4665
+ - `blur()` — Emitted when focus leaves the group
4403
4666
  - `update:modelValue(unknown)` — Emitted with the selected option's value.
4404
4667
 
4668
+ Exposed (template ref):
4669
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4670
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4671
+
4405
4672
  ```ts
4406
4673
  interface Option {
4407
4674
  label: string
@@ -4423,10 +4690,22 @@ Props:
4423
4690
  - `color?: string = "primary"` — One of the 4 M3 roles ('primary' | 'secondary' | 'tertiary' | 'error'), or any other CSS color string
4424
4691
  - `icon?: string = "star"` — Material Symbol icon
4425
4692
  - `halfIncrements?: boolean = false` — Allow half-star values (click the left half of an icon). Fractional values always render exactly, with or without this prop
4693
+ - `error?: string | boolean` — Error state. A string is also the message
4694
+ - `errorLabel?: string` — Error message shown when `error` is true
4695
+ - `required?: boolean` — Inside an `MForm` or with `rules`, 0 (not rated) fails
4696
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
4697
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
4698
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4699
+ - `name?: string` — The key of this field in its `MForm`
4426
4700
 
4427
4701
  Events:
4702
+ - `blur()` — Emitted when the rating loses focus
4428
4703
  - `update:modelValue(number)` — Emitted when the user rates by click, drag or keyboard (v-model). Dragging past the first icon emits 0
4429
4704
 
4705
+ Exposed (template ref):
4706
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4707
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4708
+
4430
4709
  ### MReceipt
4431
4710
 
4432
4711
  A sales receipt in the look of a thermal printer ticket (58 or 80 mm): header, lines with quantity and amount, subtotal, discounts and taxes, total, payments and change. All the math is done in cents, so totals never drift. `print()` prints only the receipt, sized to the paper.
@@ -4609,13 +4888,25 @@ Props:
4609
4888
  - `modelValue: string` (v-model) — HTML content (v-model)
4610
4889
  - `placeholder?: string` — Placeholder text shown on an empty document
4611
4890
  - `disabled?: boolean = false` — Disables editing
4891
+ - `error?: string | boolean` — Error state. A string is also the message
4892
+ - `errorLabel?: string` — Error message shown when `error` is true
4893
+ - `required?: boolean` — Inside an `MForm` or with `rules`, the document must have some text (or an image)
4894
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
4895
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
4896
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
4897
+ - `name?: string` — The key of this field in its `MForm`
4612
4898
  - `minHeight?: string = "200px"` — Minimum height of the text area (not used with `fill`)
4613
4899
  - `fill?: boolean = false` — Fills the height you give the editor (`class="h-full"`, `flex-1`…): the toolbar stays put and the text scrolls inside, instead of the editor growing with its content
4614
4900
  - `labels?: RichTextEditorLabels` — Object with all toolbar/dialog label overrides for i18n (see `RichTextEditorLabels`) — defaults come from useLocale()
4615
4901
 
4616
4902
  Events:
4903
+ - `blur()` — Emitted when focus leaves the editor (toolbar and dialogs included)
4617
4904
  - `update:modelValue(string)` — Emitted with the editor HTML on every content change — powers v-model
4618
4905
 
4906
+ Exposed (template ref):
4907
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4908
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4909
+
4619
4910
  ```ts
4620
4911
  export interface RichTextEditorLabels {
4621
4912
  bold?: string
@@ -4934,8 +5225,16 @@ Props:
4934
5225
  - `multiSelect?: boolean = false` — Allow multiple selections
4935
5226
  - `density?: "default" | "compact" | "comfortable" = "default"` — Button density
4936
5227
  - `color?: "primary" | "secondary" | "tertiary" = "primary"` — Selected segment color
5228
+ - `error?: string | boolean` — Error state. A string is also the message
5229
+ - `errorLabel?: string` — Error message shown when `error` is true
5230
+ - `required?: boolean` — Inside an `MForm` or with `rules`, a segment must be selected
5231
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5232
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5233
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5234
+ - `name?: string` — The key of this field in its `MForm`
4937
5235
 
4938
5236
  Events:
5237
+ - `blur()` — Emitted when focus leaves the segments
4939
5238
  - `update:modelValue(M)` — Emitted on selection change — powers v-model
4940
5239
 
4941
5240
  ```ts
@@ -4959,8 +5258,12 @@ Props:
4959
5258
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4960
5259
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
4961
5260
  - `disabled?: boolean = false` — Disables the select
4962
- - `error?: boolean` — Error state
5261
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
4963
5262
  - `errorLabel?: string` — Error message shown when error is true
5263
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
5264
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
5265
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5266
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
4964
5267
  - `hint?: string` — Hint text below the field
4965
5268
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
4966
5269
  - `leadingIcon?: string` — Material Symbol shown before the trigger
@@ -4969,8 +5272,13 @@ Props:
4969
5272
  - `noResultsText?: string` — Text shown when options is empty — defaults to the current locale's string
4970
5273
 
4971
5274
  Events:
5275
+ - `blur()`
4972
5276
  - `update:modelValue(unknown)` — Emitted with the selected option's value (`null` when the clear button empties it).
4973
5277
 
5278
+ Exposed (template ref):
5279
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5280
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5281
+
4974
5282
  ```ts
4975
5283
  export interface SelectOption {
4976
5284
  label: string
@@ -5085,17 +5393,26 @@ Props:
5085
5393
  - `background?: string = "#ffffff"` — Canvas background color
5086
5394
  - `variant?: "filled" | "outlined" = "outlined"` — Container border style
5087
5395
  - `disabled?: boolean = false` — Disables drawing
5396
+ - `error?: string | boolean` — Error state. A string is also the message
5397
+ - `errorLabel?: string` — Error message shown when `error` is true
5398
+ - `required?: boolean` — Inside an `MForm` or with `rules`, a signature must be drawn
5399
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5400
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: after each stroke (default), or only on submit
5401
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5402
+ - `name?: string` — The key of this field in its `MForm`
5088
5403
 
5089
5404
  Events:
5090
5405
  - `change(string)` — Fires alongside end, and also after undo() — same data: URL payload
5091
5406
  - `end(string)` — Fires after a stroke ends, with a PNG data: URL of the canvas
5092
- - `begin()` — Fires on the first pointerdown of a new stroke
5407
+ - `begin()` — Fires on the first pointerdown of a new stroke In an `MForm` it validates as a field whose value is the PNG data: URL (null while empty): `required` asks for a signature, and the form's values carry it under `name`.
5093
5408
 
5094
5409
  Exposed (template ref):
5095
5410
  - `clear: () => void`
5096
5411
  - `undo: () => void`
5097
5412
  - `isEmpty: () => boolean`
5098
5413
  - `toDataURL: (type?: string | undefined, quality?: number | undefined) => string`
5414
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5415
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5099
5416
 
5100
5417
  ### MSimpleCarousel
5101
5418
 
@@ -5156,6 +5473,13 @@ Props:
5156
5473
  - `step?: number = 1` — Step increment: the values emitted snap to it; while dragging (without stops) the thumb still follows the pointer smoothly and settles on its step when released
5157
5474
  - `disabled?: boolean = false` — Disables the slider
5158
5475
  - `label?: string` — Label text
5476
+ - `error?: string | boolean` — Error state. A string is also the message
5477
+ - `errorLabel?: string` — Error message shown when `error` is true
5478
+ - `required?: boolean` — Marks it as required (asterisk); a slider always has a value, so use `rules` (e.g. `min(1)`) for limits
5479
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5480
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5481
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5482
+ - `name?: string` — The key of this field in its `MForm`
5159
5483
  - `showValue?: boolean = false` — Show current value beside label
5160
5484
  - `showTooltip?: boolean = false` — Show value tooltip while dragging
5161
5485
  - `orientation?: "horizontal" | "vertical" = "horizontal"` — Slider orientation
@@ -5169,8 +5493,13 @@ Props:
5169
5493
  - `thumbColor?: string` — Custom color (hex, rgb(), a CSS var, etc.) for the thumb (bar or icon). Defaults to `color`'s M3 token.
5170
5494
 
5171
5495
  Events:
5496
+ - `blur()` — Emitted when focus leaves the slider (both thumbs, for a range)
5172
5497
  - `update:modelValue(number | [number, number])` — Emitted while dragging and on key presses, with the new value (a `[low, high]` pair for the range variant).
5173
5498
 
5499
+ Exposed (template ref):
5500
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5501
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5502
+
5174
5503
  ### MSnackbar
5175
5504
 
5176
5505
  Renders the toasts shown with `useToast()`. It's mounted for you the first time `useToast()` is called, so you don't place it yourself; its position comes from `useToast().position`.
@@ -5419,10 +5748,22 @@ Props:
5419
5748
  - `label?: string` — Label text
5420
5749
  - `color?: "error" | "primary" | "secondary" | "tertiary" = "primary"` — Track/thumb color when on
5421
5750
  - `icon?: boolean = true` — Shows a check icon in the thumb while on. Set to `false` for M3's plain switch without an icon.
5751
+ - `error?: string | boolean` — Error state. A string is also the message
5752
+ - `errorLabel?: string` — Error message shown when `error` is true
5753
+ - `required?: boolean` — Must be on, inside an `MForm` or with `rules`
5754
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5755
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5756
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5757
+ - `name?: string` — The key of this field in its `MForm`
5422
5758
 
5423
5759
  Events:
5760
+ - `blur(FocusEvent)` — Emitted when the switch loses focus
5424
5761
  - `update:modelValue(boolean)` — Emitted with the new on/off state.
5425
5762
 
5763
+ Exposed (template ref):
5764
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5765
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5766
+
5426
5767
  ### MTable
5427
5768
 
5428
5769
  A simple, general-purpose data table — sortable columns, built-in search, pagination, and optional row selection, with an escape hatch to delegate all three to your backend via serverSide.
@@ -5508,8 +5849,12 @@ Props:
5508
5849
  - `placeholder?: string` — Input placeholder
5509
5850
  - `variant?: "filled" | "outlined" = "filled"` — Field style
5510
5851
  - `disabled?: boolean = false` — Disables the field
5511
- - `error?: boolean` — Error state
5852
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
5512
5853
  - `errorLabel?: string` — Error message shown when error is true
5854
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
5855
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
5856
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5857
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
5513
5858
  - `hint?: string` — Helper text below field
5514
5859
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
5515
5860
  - `leadingIcon?: string` — Material Symbol icon name
@@ -5520,10 +5865,13 @@ Props:
5520
5865
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
5521
5866
 
5522
5867
  Events:
5868
+ - `blur()`
5523
5869
  - `update:modelValue(string[])` — Emitted whenever a tag is added or removed — powers v-model
5524
5870
  - `debounced(string[])` — Emitted debounce ms after the tag list stops changing (only when debounce > 0)
5525
5871
 
5526
5872
  Exposed (template ref):
5873
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5874
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5527
5875
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
5528
5876
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
5529
5877
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -5543,8 +5891,8 @@ Props:
5543
5891
  - `minHeight?: string = "300px"` — Minimum height
5544
5892
 
5545
5893
  Events:
5546
- - `line(string)` — Emitted with the buffered text once the user presses Enter — the usual event to handle a submitted command
5547
5894
  - `input(string)` — Emitted for every raw keystroke/data chunk xterm receives (not readonly)
5895
+ - `line(string)` — Emitted with the buffered text once the user presses Enter — the usual event to handle a submitted command
5548
5896
 
5549
5897
  Exposed (template ref):
5550
5898
  - `write: (text: string) => any`
@@ -5586,11 +5934,15 @@ Props:
5586
5934
  - `label: string` — Field label
5587
5935
  - `type?: string = "text"` — HTML input type
5588
5936
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
5589
- - `error?: boolean` — Puts the field in error state (red border and label)
5937
+ - `error?: string | boolean` — Puts the field in error state (red border and label). A string is also the message, so a validation library's error plugs straight in: `:error="errors.email"`
5590
5938
  - `errorLabel?: string` — Error message shown below the field (only visible when error is true)
5939
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
5940
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
5941
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
5942
+ - `name?: string` — Native `name`; also the key of this field in its `MForm`'s values, errors and schema
5591
5943
  - `hint?: string` — Hint text shown below the field
5592
5944
  - `disabled?: boolean` — Disables the field
5593
- - `required?: boolean` — Marks as required — adds a red asterisk after the label
5945
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
5594
5946
  - `multiline?: boolean` — Renders a textarea instead of an input
5595
5947
  - `rows?: number = 3` — Textarea rows (when multiline); with autoGrow, the fewest it shrinks to
5596
5948
  - `autoGrow?: boolean` — Multiline only: grows with the text from `rows` up to `maxRows`, instead of a fixed height with a drag handle
@@ -5602,7 +5954,9 @@ Props:
5602
5954
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event. v-model always updates immediately
5603
5955
 
5604
5956
  Events:
5957
+ - `blur(FocusEvent)` — Emitted when the field loses focus (wire vee-validate's `handleBlur` / Vuelidate's `$touch` here)
5605
5958
  - `update:modelValue(string)` — Emitted on every keystroke — powers v-model
5959
+ - `focus(FocusEvent)` — Emitted when the field gains focus
5606
5960
  - `debounced(string)` — Emitted debounce ms after the user stops typing (only when debounce > 0)
5607
5961
 
5608
5962
  Slots:
@@ -5613,6 +5967,8 @@ Exposed (template ref):
5613
5967
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
5614
5968
  - `blur: () => void | undefined` — Takes focus away from the field
5615
5969
  - `select: () => void | undefined` — Selects all its text
5970
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5971
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5616
5972
  - `setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none" | undefined) => void | undefined` — Selects part of its text (e.g. a file name without its extension)
5617
5973
 
5618
5974
  ### MTicket
@@ -5722,16 +6078,26 @@ Props:
5722
6078
  - `label?: string` — Field label
5723
6079
  - `placeholder?: string` — Placeholder shown when no time is selected — falls back to label, then the current locale's string
5724
6080
  - `disabled?: boolean` — Disables the picker
5725
- - `error?: boolean` — Error state
6081
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
5726
6082
  - `errorLabel?: string` — Error message shown when error is true
6083
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
6084
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules: functions `(value, ctx) => true | 'message'` (may be async; see the built-in `required`, `email`, `minLength`…) or a Standard Schema (zod, valibot…). Checked in order; the first failure is shown
6085
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
6086
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
6087
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
5727
6088
  - `hint?: string` — Hint text below the field
5728
6089
  - `minuteStep?: number = 5` — Minute increment step
5729
6090
  - `use24h?: boolean = true` — Use 24-hour format
5730
6091
  - `fieldBg?: string` — Overrides the auto-detected background color used to cut the floating label out of the border
5731
6092
 
5732
6093
  Events:
6094
+ - `blur()`
5733
6095
  - `update:modelValue(string | null)` — Emitted with the picked time.
5734
6096
 
6097
+ Exposed (template ref):
6098
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
6099
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
6100
+
5735
6101
  ### MTimePickerModal
5736
6102
 
5737
6103
  A modal, centered time picker with a clock dial (or, with `mode="scroll"`, M3 Expressive's scroll wheels from MTimeScroll) and a keyboard input mode. Supports AM/PM toggle and 24h format — the sibling of MTimePicker, a fully separate component rather than a shared internal.
@@ -5774,12 +6140,17 @@ Props:
5774
6140
  - `mode?: "docked" | "modal" = "docked"` — Dropdown, or a dialog on small screens
5775
6141
  - `clearable?: boolean = false` — Show a clear button
5776
6142
  - `hint?: string` — Helper text below the field
5777
- - `error?: boolean` — Error state
6143
+ - `error?: string | boolean` — Error state. A string is also the message
5778
6144
  - `errorLabel?: string` — Error message shown when `error` is true
6145
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
6146
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
6147
+ - `validateDebounce?: number` — Wait this long (ms) after the value stops changing before re-checking (one request for an async rule, not one per key). Defaults to its `MForm`'s
6148
+ - `name?: string` — The key of this field in its `MForm`
5779
6149
  - `required?: boolean` — Marks it as required
5780
6150
  - `disabled?: boolean` — Disables the field
5781
6151
 
5782
6152
  Events:
6153
+ - `blur()`
5783
6154
  - `update:modelValue(zone: string | null)` — A time zone was picked (its IANA name), or cleared (null)
5784
6155
 
5785
6156
  ### MTitle
@@ -5914,6 +6285,47 @@ export interface TourStep {
5914
6285
  }
5915
6286
  ```
5916
6287
 
6288
+ ### MTrackingTimeline
6289
+
6290
+ An order's progress for deliveries, rides and shipments: the current stage and the arrival time on top ("12 min · Arrives 3:45 PM", kept up to date), a bar of stage icons whose current leg fills as it goes (`stepProgress`, e.g. from `MMapRoute`'s progress), delayed and canceled states, and the stages with their times in a details list that opens below. Not an M3 spec component: built from M3 pieces (`MTimeline`, `MCollapse`, the progress indicator's track and color roles).
6291
+
6292
+ Props:
6293
+ - `steps: TrackingStep[]` — The stages, in order
6294
+ - `current: number` — The stage it's at (0-based): earlier ones are done. `steps.length` (or more) means all done
6295
+ - `stepProgress?: number = 0` — How far along the current stage's leg it is, 0–1 (the bar fills toward the next stage)
6296
+ - `eta?: string | number | Date` — The expected arrival: shows the minutes left and the time, and updates by itself
6297
+ - `status?: TrackingStatus = "active"` — On time (`active`), running late (`delayed`) or called off (`canceled`)
6298
+ - `title?: string` — The title, instead of the current stage's name
6299
+ - `message?: string` — A line under the title ("Your courier is 2 blocks away")
6300
+ - `details?: boolean = true` — Offer the stages with their times in a list that opens below
6301
+ - `expanded?: boolean` (v-model:expanded) — Whether the details are open (v-model:expanded)
6302
+
6303
+ Events:
6304
+ - `update:expanded(open: boolean)` — The details opened or closed — powers v-model:expanded
6305
+
6306
+ Slots:
6307
+ - `#title { step: TrackingStep | undefined; index: number; }` — Replaces the title (the current stage's name). Scope: `{ step, index }`
6308
+ - `#extra` — Content between the bar and the details: the courier, a call button, a map
6309
+
6310
+ ```ts
6311
+ /** A stage of an `MTrackingTimeline`: Order placed, Preparing, On the way, Delivered… */
6312
+ export interface TrackingStep {
6313
+ /** Its name */
6314
+ label: string
6315
+ /** A line under it in the details (who, where) */
6316
+ description?: string
6317
+ /** A Material Symbol for its dot */
6318
+ icon?: string
6319
+ /** When it happened (or is expected): shown as a time in the details */
6320
+ time?: string | number | Date
6321
+ }
6322
+ ```
6323
+
6324
+ ```ts
6325
+ /** Where the order stands besides its step: on time, running late, or called off */
6326
+ export type TrackingStatus = 'active' | 'delayed' | 'canceled'
6327
+ ```
6328
+
5917
6329
  ### MTransferList
5918
6330
 
5919
6331
  Move items between two panes, with select-all, optional search and v-model on the values in the target pane. Check rows and use the arrows, or double-click a row (or press Enter on its checkbox) to send it straight across. When the component is narrow, the panes stack and the arrows point up and down.
@@ -6284,6 +6696,16 @@ Exposed (template ref):
6284
6696
 
6285
6697
  ## Composables and functions
6286
6698
 
6699
+ ### osrmRouteProvider
6700
+
6701
+ Import from `@m3ui-vue/m3ui-vue/map`.
6702
+
6703
+ Routes through an OSRM server (Open Source Routing Machine, on OpenStreetMap data): the path follows the streets as they are, and the car profile respects one-way streets and turn restrictions. Available from the `/map` entry point.
6704
+
6705
+ ```ts
6706
+ osrmRouteProvider(options: OsrmRouteOptions = {}): MapRouteProvider
6707
+ ```
6708
+
6287
6709
  ### useMap
6288
6710
 
6289
6711
  Import from `@m3ui-vue/m3ui-vue/map`.
@@ -7226,6 +7648,86 @@ useDebounce(fn: (...args: any[]) => void, ms: number): {
7226
7648
  }
7227
7649
  ```
7228
7650
 
7651
+ ### required
7652
+
7653
+ The value must be filled in (see `isEmpty`; a field may define its own "empty", e.g. a date range needs both ends). Given in `rules`, it replaces the check the field's `required` prop adds, so its message is the one shown
7654
+
7655
+ ```ts
7656
+ required(message?: string): ValidationRule<any>
7657
+ ```
7658
+
7659
+ ### email
7660
+
7661
+ An email address (the browser's own rule, plus a dot in the domain)
7662
+
7663
+ ```ts
7664
+ email(message?: string): ValidationRule<any>
7665
+ ```
7666
+
7667
+ ### url
7668
+
7669
+ An absolute http(s) URL
7670
+
7671
+ ```ts
7672
+ url(message?: string): ValidationRule<any>
7673
+ ```
7674
+
7675
+ ### minLength
7676
+
7677
+ At least `min` characters (strings) or items (arrays)
7678
+
7679
+ ```ts
7680
+ minLength(min: number, message?: string): ValidationRule<any>
7681
+ ```
7682
+
7683
+ ### maxLength
7684
+
7685
+ At most `max` characters (strings) or items (arrays)
7686
+
7687
+ ```ts
7688
+ maxLength(max: number, message?: string): ValidationRule<any>
7689
+ ```
7690
+
7691
+ ### min
7692
+
7693
+ A number (or numeric string) of at least `min`
7694
+
7695
+ ```ts
7696
+ min(min: number, message?: string): ValidationRule<any>
7697
+ ```
7698
+
7699
+ ### max
7700
+
7701
+ A number (or numeric string) of at most `max`
7702
+
7703
+ ```ts
7704
+ max(max: number, message?: string): ValidationRule<any>
7705
+ ```
7706
+
7707
+ ### pattern
7708
+
7709
+ Matches a regular expression
7710
+
7711
+ ```ts
7712
+ pattern(re: RegExp, message?: string): ValidationRule<any>
7713
+ ```
7714
+
7715
+ ### sameAs
7716
+
7717
+ Equals another value: the name of a field in the same `MForm` (e.g. 'password' for a confirmation field), or a getter
7718
+
7719
+ ```ts
7720
+ sameAs(other: string | (() => unknown), message?: string): ValidationRule<any>
7721
+ ```
7722
+
7723
+ ### isEmpty
7724
+
7725
+ Whether a value counts as "not filled in": null/undefined, blank string, empty array, `false` (an unticked checkbox)
7726
+
7727
+ ```ts
7728
+ isEmpty(value: unknown): boolean
7729
+ ```
7730
+
7229
7731
  ### usePageProgress
7230
7732
 
7231
7733
  Shared page-loading progress state (e.g. for a top progress bar between route navigations). Module-level so any number of callers/components stay in sync — call `start()`/`done()` from a router guard, a fetch wrapper, or by hand.
@@ -7687,6 +8189,41 @@ FILTER_OPERATORS: Record<FilterFieldType, FilterOperator[]>
7687
8189
 
7688
8190
  ## Types
7689
8191
 
8192
+ ```ts
8193
+ /**
8194
+ * Where `MMapRoute` gets its road from when you give it `stops` but no `path`: any function from waypoints to a route.
8195
+ * `osrmRouteProvider()` ships; GraphHopper, Valhalla, OpenRouteService, Mapbox Directions or your own backend fit
8196
+ * the same shape. Gets an `AbortSignal`: a newer request cancels the older one.
8197
+ */
8198
+ export type MapRouteProvider = (waypoints: LngLat[], options: { signal?: AbortSignal }) => Promise<MapRouteResult>
8199
+ ```
8200
+
8201
+ ```ts
8202
+ /** A route between waypoints, as a routing service returns it. */
8203
+ export interface MapRouteResult {
8204
+ /** The road to follow, `[lng, lat][]`: the streets' real shape (curves, roundabouts), one-way streets respected */
8205
+ path: LngLat[]
8206
+ /** Length in meters */
8207
+ distance: number
8208
+ /** Expected travel time in seconds */
8209
+ duration: number
8210
+ }
8211
+ ```
8212
+
8213
+ ```ts
8214
+ export interface OsrmRouteOptions {
8215
+ /**
8216
+ * The OSRM server. Defaults to the project's public demo server, which is meant for light use only (see its usage
8217
+ * policy): run your own (`osrm-backend` in Docker) or use a hosted one in production
8218
+ */
8219
+ url?: string
8220
+ /** The routing profile in the URL: `driving` (the demo server has only this one), `cycling`, `walking`, or your server's own */
8221
+ profile?: string
8222
+ /** More query parameters for OSRM (`exclude=toll`, `alternatives`…) */
8223
+ params?: Record<string, string>
8224
+ }
8225
+ ```
8226
+
7690
8227
  ```ts
7691
8228
  /** What `MMap` provides to everything inside it. */
7692
8229
  export interface MapContext {
@@ -9434,6 +9971,18 @@ export interface M3Locale {
9434
9971
  mapPressEnterToSearch: string
9435
9972
  mapSearching: string
9436
9973
  mapNoPlaces: string
9974
+ /** MMapRoute: a stop's name when it has no label (followed by its number) */
9975
+ mapRouteStop: string
9976
+ /** MMapRoute: the vehicle marker's accessible name */
9977
+ mapRouteVehicle: string
9978
+ // MTrackingTimeline ({time} is a clock time)
9979
+ trackingArrives: string
9980
+ trackingArrivingNow: string
9981
+ trackingDelivered: string
9982
+ trackingDelayed: string
9983
+ trackingCanceled: string
9984
+ trackingShowDetails: string
9985
+ trackingHideDetails: string
9437
9986
  filterMatchAll: string
9438
9987
  filterMatchAny: string
9439
9988
  filterAddCondition: string
@@ -9765,6 +10314,19 @@ export interface M3Locale {
9765
10314
  cardInvalidNumber: string
9766
10315
  cardInvalidExpiry: string
9767
10316
  cardInvalidCvc: string
10317
+ // Form validation (MForm, field `rules`)
10318
+ validationRequired: string
10319
+ validationInvalid: string
10320
+ validationEmail: string
10321
+ validationUrl: string
10322
+ validationMinLength: string
10323
+ validationMaxLength: string
10324
+ validationMinItems: string
10325
+ validationMaxItems: string
10326
+ validationMin: string
10327
+ validationMax: string
10328
+ validationPattern: string
10329
+ validationSameAs: string
9768
10330
  // MPosKeypad
9769
10331
  keypadDelete: string
9770
10332
  keypadClear: string
@@ -10011,6 +10573,65 @@ export interface NotificationOptions {
10011
10573
  }
10012
10574
  ```
10013
10575
 
10576
+ ```ts
10577
+ /** A function `(value, ctx) => true | 'message'` (may be async), or a Standard Schema (zod, valibot…) */
10578
+ export type ValidationRule<T = any> =
10579
+ | ((value: T, ctx: ValidationContext) => ValidationResult | Promise<ValidationResult>)
10580
+ | StandardSchemaV1
10581
+ ```
10582
+
10583
+ ```ts
10584
+ /**
10585
+ * `true`, `undefined` or `null` = valid; a string = invalid with that message; `false` = invalid with the
10586
+ * locale's generic `validationInvalid` message
10587
+ */
10588
+ export type ValidationResult = boolean | string | null | undefined
10589
+ ```
10590
+
10591
+ ```ts
10592
+ /** What a rule receives besides the value */
10593
+ export interface ValidationContext {
10594
+ /** The active locale, for messages */
10595
+ locale: M3Locale
10596
+ /** The values of every named field of the surrounding `MForm` (empty outside one) */
10597
+ values: Record<string, unknown>
10598
+ }
10599
+ ```
10600
+
10601
+ ```ts
10602
+ /** When a field checks its rules and shows the result */
10603
+ export type ValidateOn = 'blur' | 'input' | 'submit'
10604
+ ```
10605
+
10606
+ ```ts
10607
+ /**
10608
+ * The Standard Schema interface (https://standardschema.dev), implemented by zod (3.24+), valibot (1.0+),
10609
+ * arktype, yup (1.7+) and others. A copy of the spec's types, so the lib doesn't depend on any of them:
10610
+ * pass a schema straight to a field's `rules` or to `MForm`'s `schema`.
10611
+ */
10612
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
10613
+ readonly '~standard': {
10614
+ readonly version: 1
10615
+ readonly vendor: string
10616
+ readonly validate: (value: unknown) => StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>
10617
+ readonly types?: { readonly input: Input; readonly output: Output }
10618
+ }
10619
+ }
10620
+ ```
10621
+
10622
+ ```ts
10623
+ export interface StandardSchemaIssue {
10624
+ readonly message: string
10625
+ readonly path?: ReadonlyArray<PropertyKey | { readonly key: PropertyKey }>
10626
+ }
10627
+ ```
10628
+
10629
+ ```ts
10630
+ export type StandardSchemaResult<Output> =
10631
+ | { readonly value: Output; readonly issues?: undefined }
10632
+ | { readonly issues: ReadonlyArray<StandardSchemaIssue> }
10633
+ ```
10634
+
10014
10635
  ```ts
10015
10636
  // Material 3's motion tokens for your own animations, from androidx's MotionTokens, StandardMotionTokens and
10016
10637
  // ExpressiveMotionTokens. The same easings and durations are CSS variables in theme.css (`--ease-*`, which
@@ -10567,7 +11188,7 @@ export interface FilterGroup {
10567
11188
  `M3Locale` keys (pass a partial object to `createM3UI({ locale })`; presets from `@m3ui-vue/m3ui-vue/locales`:
10568
11189
  `esLocale`, `frLocale`, `ptLocale`, `deLocale`, `jaLocale`, `zhLocale`, `koLocale`):
10569
11190
 
10570
- lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, collapse, clear, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, ok, dateToggleInput, dateToggleCalendar, dateSwitchToYear, dateSwitchToDay, heatmapLess, heatmapMore, meterRemaining, meterUsedOf, phoneCountry, phoneSearchCountry, phoneInvalid, dateInputLabel, selectTime, timeHourSelection, timeMinuteSelection, timePeriodToggle, timeToggleKeyboard, timeToggleDial, timeToggleScroll, sheetExpand, sheetCollapse, sheetDismiss, seekBar, seekBarValue, seekBarShowRemaining, seekBarShowDuration, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem, sparklineSummary, sliderRangeStart, sliderRangeEnd, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapClusterZoom, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapDrawPoint, mapDrawLine, mapDrawPolygon, mapDeleteFeature, mapTotal, mapSearchPlaces, mapAddress, mapPressEnterToSearch, mapSearching, mapNoPlaces, filterMatchAll, filterMatchAny, filterAddCondition, filterAddGroup, filterRemoveCondition, filterRemoveGroup, filterField, filterOperator, filterValue, filterFrom, filterTo, filterNoConditions, filterOpContains, filterOpNotContains, filterOpEquals, filterOpNotEquals, filterOpStartsWith, filterOpEndsWith, filterOpGt, filterOpGte, filterOpLt, filterOpLte, filterOpBetween, filterOpIn, filterOpNotIn, filterOpIsTrue, filterOpIsFalse, filterOpIsEmpty, filterOpIsNotEmpty, filterOpAfter, filterOpBefore, cronExpression, cronInvalid, cronNextRuns, cronFreqMinutes, cronFreqHourly, cronFreqDaily, cronFreqWeekly, cronFreqMonthly, cronFreqCustom, cronEvery, cronMinute, cronTime, cronDayOfMonth, cronEveryMinute, cronEveryNMinutes, cronHourlyAt, cronAt, cronEveryNHoursAt, cronMinutesOfHours, cronOnDaysOfMonth, cronInMonths, cronRange, country, timeZone, cameraStart, cameraStarting, cameraCapture, cameraRetake, cameraUsePhoto, cameraSwitch, cameraDenied, cameraUnavailable, cameraUnsupported, cameraFailed, qrHint, qrUnsupported, recorderStart, recorderStop, recorderPause, recorderResume, recorderDiscard, recorderUse, recorderPlay, recorderPausePlayback, recorderRecording, micDenied, micUnavailable, micUnsupported, dashGrabbed, dashPlaced, dashDropped, dashCancelled, dashResize, diffUnchanged, diffSplit, diffUnified, diffNoChanges, notifTitle, notifMarkAllRead, notifAll, notifUnread, notifEmpty, notifToday, notifYesterday, notifDismiss, notifMarkRead, notifMarkUnread, timelineShowMore, timelineShowLess, mediaPlayer, mediaPlay, mediaPause, mediaReplay, mediaSeekBack, mediaSeekForward, mediaSeconds, mediaMute, mediaUnmute, mediaVolume, mediaFullscreen, mediaExitFullscreen, mediaPictureInPicture, mediaSettings, mediaSpeed, mediaSpeedNormal, mediaSubtitles, mediaSubtitlesOff, mediaQuality, mediaQualityAuto, mediaLive, mediaError, mediaRepeat, mediaRepeatOne, mediaShuffle, pdfViewer, pdfThumbnails, pdfOutline, pdfPage, pdfZoom, pdfZoomIn, pdfZoomOut, pdfFitWidth, pdfFitPage, pdfSearch, pdfSearchPrevious, pdfSearchNext, pdfMatchCount, pdfNoMatches, pdfMore, pdfRotate, pdfDownload, pdfPrint, pdfFullscreen, pdfExitFullscreen, pdfPassword, pdfPasswordLabel, pdfWrongPassword, pdfOpen, pdfError, pdfLoading, pdfAnnotate, pdfSelect, pdfHighlight, pdfNote, pdfDraw, pdfEraser, pdfInkWidth, pdfColor, pdfUndo, pdfCopy, pdfDelete, pdfNotePlaceholder, pdfAddComment, flowCanvas, flowNode, flowEdge, flowZoomIn, flowZoomOut, flowFitView, flowLock, flowUnlock, flowUndo, flowRedo, flowMinimap, flowMoved, flowConnected, flowDeleted, flowDeleteEdge, flowDelete, ganttChart, ganttTask, ganttStart, ganttEnd, ganttDuration, ganttProgress, ganttDays, ganttHours, ganttMilestone, ganttQuarter, ganttToday, ganttZoomIn, ganttZoomOut, ganttExpandAll, ganttCollapseAll, ganttExpand, ganttCollapse, ganttUndo, ganttRedo, ganttScaleHour, ganttScaleDay, ganttScaleWeek, ganttScaleMonth, ganttScaleQuarter, ganttScaleYear, ganttMoved, ganttProgressSet, ganttLinked, ganttUnlink, ganttDeleted, ganttDelete, ganttReordered, ganttSlack, ganttCritical, ganttBaseline, ganttEmpty, ganttResize, ganttFit, ganttShowList, ganttHideList, timelineResource, timelineConflict, timelineMoved, timelineEmpty, cropArea, cropRotateLeft, cropRotateRight, cropFlip, cropReset, cropFree, drawCanvas, drawTools, drawMore, drawSelect, drawPan, drawPen, drawBrush, drawMarker, drawHighlighter, drawEraser, drawStrokeEraser, drawLine, drawArrow, drawRect, drawEllipse, drawText, drawFill, drawColor, floorPlan, floorSeats, floorRotate, floorTools, floorMove, floorDrawWall, floorDrawZone, floorAddTable, floorAddDecor, floorDuplicate, floorDelete, floorUndo, floorRedo, floorLabel, floorSeatsField, floorShape, floorRound, floorSquare, floorLong, floorAngle, floorFlip, floorZoomIn, floorZoomOut, floorZoomFit, floorOverlaps, floorSeatN, floorDrawShape, floorShapeHint, floorColor, floorThickness, floorWidth, floorHeight, floorMerge, floorSplit, floorNothingPicked, floorTablesPicked, floorTableN, floorZone, floorWall, floorDeleteCorner, floorFinishWall, floorCancel, floorDecorDoor, floorDecorWindow, floorDecorPlant, floorDecorColumn, floorDecorRestroom, floorDecorKitchen, floorDecorRegister, floorDecorStairs, floorDecorLabel, drawCustomColor, drawSize, drawUndo, drawRedo, drawDelete, drawLayers, drawLayer, drawLayerName, drawAddLayer, drawDeleteLayer, drawShowLayer, drawHideLayer, drawLockLayer, drawUnlockLayer, drawLayerUp, drawLayerDown, compareBefore, compareAfter, compareSlider, cardNumber, cardExpiry, cardCvc, cardName, cardInvalidNumber, cardInvalidExpiry, cardInvalidCvc, keypadDelete, keypadClear, keypadChange, keypadRemaining, seatStage, seatAvailable, seatSelected, seatOccupied, seatLabel, receiptSubtotal, receiptTotal, receiptPaid, receiptChange, configRequired, configOptional, configChooseUpTo, configChooseAtLeast, configChooseExactly, configUnavailable, configQuantity, configIncrease, configDecrease, availNight, availNights, availMinNights, availCheckIn, availCheckOut, availSelectCheckIn, availSelectCheckOut, availUnavailable, chartOpen, chartHigh, chartLow, chartClose, chartVolume, bookPrice, bookSize, bookTotal, bookSpread, mortgagePrice, mortgageDown, mortgageRate, mortgageTerm, mortgageYears, mortgageLoan, mortgageMonthly, mortgageFirstPayment, mortgageLastPayment, mortgagePrincipal, mortgageInterest, mortgageTotal, mortgageSchedule, mortgageYear, mortgageBalance, bodyFront, bodyBack, bodyRight, bodyLeft, bodyRear, bodyHead, bodyNeck, bodyChest, bodyAbdomen, bodyPelvis, bodyShoulder, bodyUpperArm, bodyForearm, bodyHand, bodyThigh, bodyKnee, bodyLeg, bodyFoot, bodyUpperBack, bodyLowerBack, bodyGlute, bodyCalf, odontoTooth, odontoUpper, odontoLower, odontoMesial, odontoDistal, odontoBuccal, odontoLingual, odontoOcclusal, odontoCaries, odontoFilling, odontoSealant, odontoCrown, odontoRootCanal, odontoImplant, odontoMissing, odontoExtraction, odontoEraser, vitalsNormal, vitalsHigh, vitalsLow, vitalsNoData, quizCheck, quizNext, quizFinish, quizCorrect, quizIncorrect, quizCorrectAnswer, quizQuestionOf, quizScore, quizPassed, quizFailed, quizRetry, quizTrue, quizFalse, quizSelectAll, quizOrderHint, quizMoveUp, quizMoveDown, quizTypeAnswer, quizTimeLeft, quizReview, certTitle, certPresentedTo, certDate, certId
11191
+ lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, collapse, clear, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, ok, dateToggleInput, dateToggleCalendar, dateSwitchToYear, dateSwitchToDay, heatmapLess, heatmapMore, meterRemaining, meterUsedOf, phoneCountry, phoneSearchCountry, phoneInvalid, dateInputLabel, selectTime, timeHourSelection, timeMinuteSelection, timePeriodToggle, timeToggleKeyboard, timeToggleDial, timeToggleScroll, sheetExpand, sheetCollapse, sheetDismiss, seekBar, seekBarValue, seekBarShowRemaining, seekBarShowDuration, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem, sparklineSummary, sliderRangeStart, sliderRangeEnd, mapTitle, mapMarker, mapZoomIn, mapZoomOut, mapResetBearing, mapFindMyLocation, mapLocationNotAvailable, mapEnterFullscreen, mapExitFullscreen, mapToggleAttribution, mapFeedback, mapCtrlScroll, mapCmdScroll, mapTwoFingers, mapLayers, mapSearchLayers, mapNoLayers, mapShowLayer, mapHideLayer, mapOpacity, mapClusterZoom, mapDownload, mapNoBaseLayer, mapHoverInfo, mapNoValue, mapMeasureDistance, mapMeasureArea, mapClearMeasurements, mapDeleteMeasurement, mapDrawPoint, mapDrawLine, mapDrawPolygon, mapDeleteFeature, mapTotal, mapSearchPlaces, mapAddress, mapPressEnterToSearch, mapSearching, mapNoPlaces, mapRouteStop, mapRouteVehicle, trackingArrives, trackingArrivingNow, trackingDelivered, trackingDelayed, trackingCanceled, trackingShowDetails, trackingHideDetails, filterMatchAll, filterMatchAny, filterAddCondition, filterAddGroup, filterRemoveCondition, filterRemoveGroup, filterField, filterOperator, filterValue, filterFrom, filterTo, filterNoConditions, filterOpContains, filterOpNotContains, filterOpEquals, filterOpNotEquals, filterOpStartsWith, filterOpEndsWith, filterOpGt, filterOpGte, filterOpLt, filterOpLte, filterOpBetween, filterOpIn, filterOpNotIn, filterOpIsTrue, filterOpIsFalse, filterOpIsEmpty, filterOpIsNotEmpty, filterOpAfter, filterOpBefore, cronExpression, cronInvalid, cronNextRuns, cronFreqMinutes, cronFreqHourly, cronFreqDaily, cronFreqWeekly, cronFreqMonthly, cronFreqCustom, cronEvery, cronMinute, cronTime, cronDayOfMonth, cronEveryMinute, cronEveryNMinutes, cronHourlyAt, cronAt, cronEveryNHoursAt, cronMinutesOfHours, cronOnDaysOfMonth, cronInMonths, cronRange, country, timeZone, cameraStart, cameraStarting, cameraCapture, cameraRetake, cameraUsePhoto, cameraSwitch, cameraDenied, cameraUnavailable, cameraUnsupported, cameraFailed, qrHint, qrUnsupported, recorderStart, recorderStop, recorderPause, recorderResume, recorderDiscard, recorderUse, recorderPlay, recorderPausePlayback, recorderRecording, micDenied, micUnavailable, micUnsupported, dashGrabbed, dashPlaced, dashDropped, dashCancelled, dashResize, diffUnchanged, diffSplit, diffUnified, diffNoChanges, notifTitle, notifMarkAllRead, notifAll, notifUnread, notifEmpty, notifToday, notifYesterday, notifDismiss, notifMarkRead, notifMarkUnread, timelineShowMore, timelineShowLess, mediaPlayer, mediaPlay, mediaPause, mediaReplay, mediaSeekBack, mediaSeekForward, mediaSeconds, mediaMute, mediaUnmute, mediaVolume, mediaFullscreen, mediaExitFullscreen, mediaPictureInPicture, mediaSettings, mediaSpeed, mediaSpeedNormal, mediaSubtitles, mediaSubtitlesOff, mediaQuality, mediaQualityAuto, mediaLive, mediaError, mediaRepeat, mediaRepeatOne, mediaShuffle, pdfViewer, pdfThumbnails, pdfOutline, pdfPage, pdfZoom, pdfZoomIn, pdfZoomOut, pdfFitWidth, pdfFitPage, pdfSearch, pdfSearchPrevious, pdfSearchNext, pdfMatchCount, pdfNoMatches, pdfMore, pdfRotate, pdfDownload, pdfPrint, pdfFullscreen, pdfExitFullscreen, pdfPassword, pdfPasswordLabel, pdfWrongPassword, pdfOpen, pdfError, pdfLoading, pdfAnnotate, pdfSelect, pdfHighlight, pdfNote, pdfDraw, pdfEraser, pdfInkWidth, pdfColor, pdfUndo, pdfCopy, pdfDelete, pdfNotePlaceholder, pdfAddComment, flowCanvas, flowNode, flowEdge, flowZoomIn, flowZoomOut, flowFitView, flowLock, flowUnlock, flowUndo, flowRedo, flowMinimap, flowMoved, flowConnected, flowDeleted, flowDeleteEdge, flowDelete, ganttChart, ganttTask, ganttStart, ganttEnd, ganttDuration, ganttProgress, ganttDays, ganttHours, ganttMilestone, ganttQuarter, ganttToday, ganttZoomIn, ganttZoomOut, ganttExpandAll, ganttCollapseAll, ganttExpand, ganttCollapse, ganttUndo, ganttRedo, ganttScaleHour, ganttScaleDay, ganttScaleWeek, ganttScaleMonth, ganttScaleQuarter, ganttScaleYear, ganttMoved, ganttProgressSet, ganttLinked, ganttUnlink, ganttDeleted, ganttDelete, ganttReordered, ganttSlack, ganttCritical, ganttBaseline, ganttEmpty, ganttResize, ganttFit, ganttShowList, ganttHideList, timelineResource, timelineConflict, timelineMoved, timelineEmpty, cropArea, cropRotateLeft, cropRotateRight, cropFlip, cropReset, cropFree, drawCanvas, drawTools, drawMore, drawSelect, drawPan, drawPen, drawBrush, drawMarker, drawHighlighter, drawEraser, drawStrokeEraser, drawLine, drawArrow, drawRect, drawEllipse, drawText, drawFill, drawColor, floorPlan, floorSeats, floorRotate, floorTools, floorMove, floorDrawWall, floorDrawZone, floorAddTable, floorAddDecor, floorDuplicate, floorDelete, floorUndo, floorRedo, floorLabel, floorSeatsField, floorShape, floorRound, floorSquare, floorLong, floorAngle, floorFlip, floorZoomIn, floorZoomOut, floorZoomFit, floorOverlaps, floorSeatN, floorDrawShape, floorShapeHint, floorColor, floorThickness, floorWidth, floorHeight, floorMerge, floorSplit, floorNothingPicked, floorTablesPicked, floorTableN, floorZone, floorWall, floorDeleteCorner, floorFinishWall, floorCancel, floorDecorDoor, floorDecorWindow, floorDecorPlant, floorDecorColumn, floorDecorRestroom, floorDecorKitchen, floorDecorRegister, floorDecorStairs, floorDecorLabel, drawCustomColor, drawSize, drawUndo, drawRedo, drawDelete, drawLayers, drawLayer, drawLayerName, drawAddLayer, drawDeleteLayer, drawShowLayer, drawHideLayer, drawLockLayer, drawUnlockLayer, drawLayerUp, drawLayerDown, compareBefore, compareAfter, compareSlider, cardNumber, cardExpiry, cardCvc, cardName, cardInvalidNumber, cardInvalidExpiry, cardInvalidCvc, validationRequired, validationInvalid, validationEmail, validationUrl, validationMinLength, validationMaxLength, validationMinItems, validationMaxItems, validationMin, validationMax, validationPattern, validationSameAs, keypadDelete, keypadClear, keypadChange, keypadRemaining, seatStage, seatAvailable, seatSelected, seatOccupied, seatLabel, receiptSubtotal, receiptTotal, receiptPaid, receiptChange, configRequired, configOptional, configChooseUpTo, configChooseAtLeast, configChooseExactly, configUnavailable, configQuantity, configIncrease, configDecrease, availNight, availNights, availMinNights, availCheckIn, availCheckOut, availSelectCheckIn, availSelectCheckOut, availUnavailable, chartOpen, chartHigh, chartLow, chartClose, chartVolume, bookPrice, bookSize, bookTotal, bookSpread, mortgagePrice, mortgageDown, mortgageRate, mortgageTerm, mortgageYears, mortgageLoan, mortgageMonthly, mortgageFirstPayment, mortgageLastPayment, mortgagePrincipal, mortgageInterest, mortgageTotal, mortgageSchedule, mortgageYear, mortgageBalance, bodyFront, bodyBack, bodyRight, bodyLeft, bodyRear, bodyHead, bodyNeck, bodyChest, bodyAbdomen, bodyPelvis, bodyShoulder, bodyUpperArm, bodyForearm, bodyHand, bodyThigh, bodyKnee, bodyLeg, bodyFoot, bodyUpperBack, bodyLowerBack, bodyGlute, bodyCalf, odontoTooth, odontoUpper, odontoLower, odontoMesial, odontoDistal, odontoBuccal, odontoLingual, odontoOcclusal, odontoCaries, odontoFilling, odontoSealant, odontoCrown, odontoRootCanal, odontoImplant, odontoMissing, odontoExtraction, odontoEraser, vitalsNormal, vitalsHigh, vitalsLow, vitalsNoData, quizCheck, quizNext, quizFinish, quizCorrect, quizIncorrect, quizCorrectAnswer, quizQuestionOf, quizScore, quizPassed, quizFailed, quizRetry, quizTrue, quizFalse, quizSelectAll, quizOrderHint, quizMoveUp, quizMoveDown, quizTypeAnswer, quizTimeLeft, quizReview, certTitle, certPresentedTo, certDate, certId
10571
11192
 
10572
11193
  ## Theme tokens
10573
11194