@m3ui-vue/m3ui-vue 1.6.2 → 1.8.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 (191) hide show
  1. package/dist/API.md +1224 -28
  2. package/dist/{MColorPickerModal-NtkihoK6.js → MColorPickerModal-H8nuX0Wu.js} +3 -4
  3. package/dist/{MColorPickerModal-NtkihoK6.js.map → MColorPickerModal-H8nuX0Wu.js.map} +1 -1
  4. package/dist/MDialog-B42Mhn8W.js +331 -0
  5. package/dist/MDialog-B42Mhn8W.js.map +1 -0
  6. package/dist/{MListItem-D2cNUyzP.js → MListItem-DiOAxaN7.js} +431 -325
  7. package/dist/MListItem-DiOAxaN7.js.map +1 -0
  8. package/dist/{MLoadingIndicator-DWUj0BAB.js → MLoadingIndicator-CuTZYFFj.js} +2 -2
  9. package/dist/{MLoadingIndicator-DWUj0BAB.js.map → MLoadingIndicator-CuTZYFFj.js.map} +1 -1
  10. package/dist/{MSeekBar-C4cn9RIF.js → MSeekBar-BCDQTx2t.js} +2 -2
  11. package/dist/{MSeekBar-C4cn9RIF.js.map → MSeekBar-BCDQTx2t.js.map} +1 -1
  12. package/dist/MSegmentedButton-BXzRsg1S.js +105 -0
  13. package/dist/MSegmentedButton-BXzRsg1S.js.map +1 -0
  14. package/dist/MSignaturePad-BTqGaPXA.js +313 -0
  15. package/dist/MSignaturePad-BTqGaPXA.js.map +1 -0
  16. package/dist/MSlider-D_O8J9YH.js +739 -0
  17. package/dist/MSlider-D_O8J9YH.js.map +1 -0
  18. package/dist/{MSpinner-DZkXZJpc.js → MSpinner-UCdtSOHP.js} +2 -2
  19. package/dist/{MSpinner-DZkXZJpc.js.map → MSpinner-UCdtSOHP.js.map} +1 -1
  20. package/dist/{MTextField-CNH-byir.js → MTextField-CYk9yFvi.js} +162 -115
  21. package/dist/MTextField-CYk9yFvi.js.map +1 -0
  22. package/dist/_useFieldValidation-B0B44M_t.js +191 -0
  23. package/dist/_useFieldValidation-B0B44M_t.js.map +1 -0
  24. package/dist/api.json +1 -1
  25. package/dist/code-editor.js +184 -103
  26. package/dist/code-editor.js.map +1 -1
  27. package/dist/components/MAddressField.vue.d.ts +18 -3
  28. package/dist/components/MAppBarWithSearch.vue.d.ts +1 -1
  29. package/dist/components/MAudioRecorder.vue.d.ts +2 -2
  30. package/dist/components/MAutocomplete.vue.d.ts +22 -3
  31. package/dist/components/MCheckbox.vue.d.ts +23 -1
  32. package/dist/components/MCodeEditor.vue.d.ts +23 -1
  33. package/dist/components/MColorPicker.vue.d.ts +24 -3
  34. package/dist/components/MConfirmDialog.vue.d.ts +2 -2
  35. package/dist/components/MCountrySelect.vue.d.ts +13 -2
  36. package/dist/components/MCreditCardInput.vue.d.ts +33 -0
  37. package/dist/components/MCronField.vue.d.ts +23 -1
  38. package/dist/components/MDataTable.vue.d.ts +1 -1
  39. package/dist/components/MDatePicker.vue.d.ts +24 -3
  40. package/dist/components/MDateRangePicker.vue.d.ts +24 -3
  41. package/dist/components/MFileUpload.vue.d.ts +23 -2
  42. package/dist/components/MForm.vue.d.ts +61 -0
  43. package/dist/components/MFormBuilder.vue.d.ts +22 -0
  44. package/dist/components/MFormRenderer.vue.d.ts +151 -0
  45. package/dist/components/MJsonEditor.vue.d.ts +23 -1
  46. package/dist/components/MMapRoute.vue.d.ts +176 -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/MPdfSigner.vue.d.ts +499 -0
  55. package/dist/components/MPdfViewer.vue.d.ts +12 -0
  56. package/dist/components/MPhoneInput.vue.d.ts +19 -4
  57. package/dist/components/MPinInput.vue.d.ts +24 -3
  58. package/dist/components/MPosKeypad.vue.d.ts +3 -3
  59. package/dist/components/MRadioGroup.vue.d.ts +23 -1
  60. package/dist/components/MRating.vue.d.ts +23 -1
  61. package/dist/components/MRichTextEditor.vue.d.ts +23 -1
  62. package/dist/components/MSearchBar.vue.d.ts +1 -1
  63. package/dist/components/MSegmentedButton.vue.d.ts +23 -2
  64. package/dist/components/MSelect.vue.d.ts +22 -3
  65. package/dist/components/MSignaturePad.vue.d.ts +19 -0
  66. package/dist/components/MSlider.vue.d.ts +23 -1
  67. package/dist/components/MSpreadsheet.vue.d.ts +137 -0
  68. package/dist/components/MStack.vue.d.ts +1 -1
  69. package/dist/components/MSwitch.vue.d.ts +23 -1
  70. package/dist/components/MTable.vue.d.ts +1 -1
  71. package/dist/components/MTagInput.vue.d.ts +20 -2
  72. package/dist/components/MText.vue.d.ts +1 -1
  73. package/dist/components/MTextField.vue.d.ts +26 -3
  74. package/dist/components/MTimePicker.vue.d.ts +24 -3
  75. package/dist/components/MTimezoneSelect.vue.d.ts +13 -2
  76. package/dist/components/MTour.vue.d.ts +2 -2
  77. package/dist/components/MTrackingTimeline.vue.d.ts +75 -0
  78. package/dist/components/MWindow.vue.d.ts +2 -2
  79. package/dist/composables/_routeGeometry.d.ts +26 -0
  80. package/dist/composables/_useFieldValidation.d.ts +91 -0
  81. package/dist/composables/mapRouting.d.ts +35 -0
  82. package/dist/composables/pdfSign.d.ts +52 -0
  83. package/dist/composables/spreadsheetFormula.d.ts +55 -0
  84. package/dist/composables/useLocale.d.ts +177 -0
  85. package/dist/composables/validation.d.ts +82 -0
  86. package/dist/draw.js +2 -2
  87. package/dist/flow.js +1 -1
  88. package/dist/gantt.js +2 -2
  89. package/dist/index.d.ts +12 -0
  90. package/dist/locales/index.js +693 -7
  91. package/dist/locales/index.js.map +1 -1
  92. package/dist/m3ui-vue.css +1 -1
  93. package/dist/m3ui.js +15507 -12417
  94. package/dist/m3ui.js.map +1 -1
  95. package/dist/map.d.ts +4 -0
  96. package/dist/map.js +1207 -745
  97. package/dist/map.js.map +1 -1
  98. package/dist/media.js +4 -4
  99. package/dist/pdf.d.ts +3 -0
  100. package/dist/pdf.js +1228 -687
  101. package/dist/pdf.js.map +1 -1
  102. package/dist/rich-text-editor.js +188 -146
  103. package/dist/rich-text-editor.js.map +1 -1
  104. package/dist/styles.css +1 -1
  105. package/dist/{useLocale-DaVSTdm0.js → useLocale-DL96OFgr.js} +99 -1
  106. package/dist/useLocale-DL96OFgr.js.map +1 -0
  107. package/package.json +5 -1
  108. package/src/__tests__/MForm.test.ts +325 -0
  109. package/src/__tests__/MFormRenderer.test.ts +157 -0
  110. package/src/__tests__/MMapRoute.test.ts +418 -0
  111. package/src/__tests__/MPdfSigner.test.ts +175 -0
  112. package/src/__tests__/MPhoneInput.test.ts +5 -2
  113. package/src/__tests__/MRichTextEditor.test.ts +2 -1
  114. package/src/__tests__/MSpreadsheet.test.ts +223 -0
  115. package/src/__tests__/MTrackingTimeline.test.ts +66 -0
  116. package/src/__tests__/_fakeMaplibre.ts +4 -1
  117. package/src/__tests__/_osrmRoutes.ts +10 -0
  118. package/src/__tests__/attrsFallthrough.test.ts +11 -0
  119. package/src/__tests__/fieldsValidation.test.ts +229 -0
  120. package/src/__tests__/spreadsheetFormula.test.ts +77 -0
  121. package/src/__tests__/ssr.test.ts +4 -0
  122. package/src/__tests__/validation.test.ts +77 -0
  123. package/src/components/MAddressField.vue +45 -8
  124. package/src/components/MAutocomplete.vue +69 -23
  125. package/src/components/MCheckbox.vue +80 -17
  126. package/src/components/MCodeEditor.vue +59 -2
  127. package/src/components/MColorPicker.vue +65 -16
  128. package/src/components/MCountrySelect.vue +17 -3
  129. package/src/components/MCreditCardInput.vue +76 -7
  130. package/src/components/MCronField.vue +60 -10
  131. package/src/components/MDatePicker.vue +65 -16
  132. package/src/components/MDateRangePicker.vue +66 -16
  133. package/src/components/MFileUpload.vue +71 -8
  134. package/src/components/MForm.vue +208 -0
  135. package/src/components/MFormBuilder.vue +417 -0
  136. package/src/components/MFormRenderer.vue +324 -0
  137. package/src/components/MJsonEditor.vue +57 -3
  138. package/src/components/MMapRoute.vue +523 -0
  139. package/src/components/MMaskField.vue +55 -13
  140. package/src/components/MMentionField.vue +17 -2
  141. package/src/components/MMultiAutocomplete.vue +70 -23
  142. package/src/components/MMultiSelect.vue +70 -23
  143. package/src/components/MNumberField.vue +58 -16
  144. package/src/components/MPdfSigner.vue +433 -0
  145. package/src/components/MPdfViewer.vue +12 -0
  146. package/src/components/MPhoneInput.vue +60 -18
  147. package/src/components/MPinInput.vue +58 -10
  148. package/src/components/MRadioGroup.vue +65 -4
  149. package/src/components/MRating.vue +62 -6
  150. package/src/components/MRichTextEditor.vue +64 -4
  151. package/src/components/MSegmentedButton.vue +59 -2
  152. package/src/components/MSelect.vue +72 -26
  153. package/src/components/MSignaturePad.vue +71 -6
  154. package/src/components/MSlider.vue +61 -10
  155. package/src/components/MSpreadsheet.vue +992 -0
  156. package/src/components/MSwitch.vue +63 -8
  157. package/src/components/MTagInput.vue +67 -25
  158. package/src/components/MTextField.vue +68 -14
  159. package/src/components/MTimePicker.vue +65 -16
  160. package/src/components/MTimezoneSelect.vue +17 -3
  161. package/src/components/MTrackingTimeline.vue +257 -0
  162. package/src/composables/_routeGeometry.ts +140 -0
  163. package/src/composables/_useFieldValidation.ts +287 -0
  164. package/src/composables/mapRouting.ts +55 -0
  165. package/src/composables/pdfSign.ts +141 -0
  166. package/src/composables/spreadsheetFormula.ts +459 -0
  167. package/src/composables/useLocale.ts +277 -0
  168. package/src/composables/validation.ts +178 -0
  169. package/src/index.ts +12 -0
  170. package/src/locales/de.ts +98 -0
  171. package/src/locales/es.ts +105 -7
  172. package/src/locales/fr.ts +98 -0
  173. package/src/locales/ja.ts +98 -0
  174. package/src/locales/ko.ts +98 -0
  175. package/src/locales/pt.ts +98 -0
  176. package/src/locales/zh.ts +98 -0
  177. package/src/map.ts +4 -0
  178. package/src/pdf.ts +3 -0
  179. package/dist/MButton-OQ4wIERQ.js +0 -171
  180. package/dist/MButton-OQ4wIERQ.js.map +0 -1
  181. package/dist/MDialog-DYMnaBlt.js +0 -167
  182. package/dist/MDialog-DYMnaBlt.js.map +0 -1
  183. package/dist/MListItem-D2cNUyzP.js.map +0 -1
  184. package/dist/MProgressBar-BWly1UKN.js +0 -179
  185. package/dist/MProgressBar-BWly1UKN.js.map +0 -1
  186. package/dist/MSegmentedButton-BEB4gXLA.js +0 -64
  187. package/dist/MSegmentedButton-BEB4gXLA.js.map +0 -1
  188. package/dist/MSlider-BIkA6DiE.js +0 -690
  189. package/dist/MSlider-BIkA6DiE.js.map +0 -1
  190. package/dist/MTextField-CNH-byir.js.map +0 -1
  191. package/dist/useLocale-DaVSTdm0.js.map +0 -1
package/dist/API.md CHANGED
@@ -1,4 +1,4 @@
1
- # @m3ui-vue/m3ui-vue 1.6.2 — API reference
1
+ # @m3ui-vue/m3ui-vue 1.8.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,164 @@ 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
+
2518
+ ### MFormBuilder
2519
+
2520
+ Design a form without code: add fields from a palette, drag them into order, set each one's label, name, rules, width, choices and when it shows, then try it in the preview. `v-model` is a `FormSchema` (plain JSON), the same one `MFormRenderer` draws: store it, send it to a backend, render it anywhere. Not an M3 spec component.
2521
+
2522
+ Props:
2523
+ - `modelValue?: FormSchema = { fields: [] }` (v-model) — The form being built (v-model)
2524
+ - `types?: FormFieldType[]` — The field types in the palette, in order. All by default
2525
+
2526
+ Events:
2527
+ - `update:modelValue(schema: FormSchema)` — The schema changed
2528
+
2529
+ Exposed (template ref):
2530
+ - `add: (type: FormFieldType) => void` — Adds a field of this type (after the selected one)
2531
+ - `select: (index: number) => void` — Selects a field by its index in the schema
2532
+
2533
+ ### MFormRenderer
2534
+
2535
+ Renders a form from a JSON schema (`FormSchema`): text, number, select, radio, checkbox, switch, date, time, slider, rating and phone fields, headings and dividers, laid out in rows (`width`), with their rules (`required`, lengths, `pattern`, email/url by type) checked by MForm, and fields that show only when another field has some value (`visibleWhen`). Build schemas by hand, from a backend, or with MFormBuilder. A hidden field isn't validated and its value isn't submitted.
2536
+
2537
+ Props:
2538
+ - `schema: FormSchema` — The form to render
2539
+ - `modelValue?: Record<string, unknown>` (v-model) — The values by field name (v-model). Missing ones start from each field's `default`
2540
+ - `validateOn?: ValidateOn` — When fields check their rules (MForm's)
2541
+ - `validateDebounce?: number` — Wait this long (ms) after typing stops before re-checking
2542
+ - `errors?: Record<string, string | string[] | null>` — Errors from outside (a server's), by field name
2543
+ - `disabled?: boolean` — Disables every field and the buttons
2544
+ - `actions?: boolean = true` — Show the submit (and reset) buttons
2545
+ - `loading?: boolean` — The submit button shows a spinner and can't be pressed
2546
+
2547
+ Events:
2548
+ - `submit(values: Record<string, unknown>)` — The form passed its checks: the values of the fields on show, by name
2549
+ - `update:modelValue(values: Record<string, unknown>)`
2550
+ - `invalid(errors: Record<string, string>)` — Submit was blocked: the messages by field name
2551
+
2552
+ Slots:
2553
+ - `#actions { reset: () => Promise<void> | undefined; }` — Replaces the buttons. Scope: `{ reset }`
2554
+
2555
+ Exposed (template ref):
2556
+ - `validate: (names?: string[] | undefined, options?: { focus?: boolean | undefined; } | undefined) => Promise<boolean>` — Checks every field on show (or the named ones) and shows their messages; resolves to whether they pass
2557
+ - `resetValidation: (names?: string[] | undefined) => void | undefined` — Clears the messages
2558
+ - `values: Record<string, unknown>` — The values, defaults included
2559
+
2560
+ ```ts
2561
+ /** A whole form: its fields in order, and its buttons' text */
2562
+ export interface FormSchema {
2563
+ title?: string
2564
+ description?: string
2565
+ fields: FormFieldSchema[]
2566
+ /** The submit button's text */
2567
+ submitLabel?: string
2568
+ /** Show a reset button with this text */
2569
+ resetLabel?: string
2570
+ }
2571
+ ```
2572
+
2573
+ ```ts
2574
+ /** One field of a form schema: plain JSON, so it can be stored, sent and built with MFormBuilder */
2575
+ export interface FormFieldSchema {
2576
+ type: FormFieldType
2577
+ /** The value's key (required for every type but heading and divider) */
2578
+ name?: string
2579
+ label?: string
2580
+ placeholder?: string
2581
+ /** Help under the field */
2582
+ hint?: string
2583
+ /** A heading's text under its title */
2584
+ description?: string
2585
+ required?: boolean
2586
+ disabled?: boolean
2587
+ /** Its value before the user changes it */
2588
+ default?: unknown
2589
+ /** select, autocomplete, radio: the choices (a plain string is its own label and value) */
2590
+ options?: (FormFieldOption | string)[]
2591
+ /** number, slider: limits. date: earliest/latest as `YYYY-MM-DD` strings */
2592
+ min?: number | string
2593
+ max?: number | string
2594
+ step?: number
2595
+ /** text-like fields: length limits */
2596
+ minLength?: number
2597
+ maxLength?: number
2598
+ /** text-like fields: a regular expression the value must match (as a string, without slashes) */
2599
+ pattern?: string
2600
+ /** The message when `pattern` doesn't match */
2601
+ patternMessage?: string
2602
+ /** textarea: visible lines */
2603
+ rows?: number
2604
+ /** How much of the row it takes on a wide form (stacked on a narrow one). Default `full` */
2605
+ width?: 'full' | 'half' | 'third' | 'two-thirds'
2606
+ /** A Material Symbol at the start of text-like fields */
2607
+ icon?: string
2608
+ /** Show it only when this (or all of these) holds */
2609
+ visibleWhen?: FormFieldCondition | FormFieldCondition[]
2610
+ /** More rules, in code (not JSON): validators, zod/valibot schemas, functions */
2611
+ rules?: ValidationRule[]
2612
+ }
2613
+ ```
2614
+
2615
+ ```ts
2616
+ /** The kinds of field a form schema can hold. `heading` and `divider` only lay the form out */
2617
+ export type FormFieldType =
2618
+ | 'text' | 'email' | 'password' | 'tel' | 'url' | 'textarea' | 'number'
2619
+ | 'select' | 'autocomplete' | 'radio' | 'checkbox' | 'switch'
2620
+ | 'date' | 'time' | 'slider' | 'rating' | 'phone'
2621
+ | 'heading' | 'divider'
2622
+ ```
2623
+
2624
+ ```ts
2625
+ /** A choice of a select, autocomplete or radio group */
2626
+ export interface FormFieldOption {
2627
+ label: string
2628
+ value: string | number | boolean
2629
+ }
2630
+ ```
2631
+
2632
+ ```ts
2633
+ /** Shows a field only while another field's value matches */
2634
+ export interface FormFieldCondition {
2635
+ /** The other field's name */
2636
+ field: string
2637
+ /** Its value is this */
2638
+ equals?: unknown
2639
+ /** Its value isn't this */
2640
+ notEquals?: unknown
2641
+ /** Its value is one of these */
2642
+ in?: unknown[]
2643
+ /** It has a value (true) or is empty (false) */
2644
+ filled?: boolean
2645
+ }
2646
+ ```
2647
+
2384
2648
  ### MFullscreen
2385
2649
 
2386
2650
  Fills the entire viewport (or parent when `fixed=false`). Useful for loading screens, splash pages, or modal backdrops.
@@ -2640,13 +2904,25 @@ A JSON-aware editor built on top of MCodeEditor — validates as you type and ad
2640
2904
  Props:
2641
2905
  - `modelValue: unknown` (v-model) — JSON data (v-model, any valid JSON)
2642
2906
  - `readonly?: boolean = false` — Read-only mode
2907
+ - `error?: string | boolean` — Error state. A string is also the message
2908
+ - `errorLabel?: string` — Error message shown when `error` is true
2909
+ - `required?: boolean` — Inside an `MForm` or with `rules`, it can't be empty (null)
2910
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
2911
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
2912
+ - `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
2913
+ - `name?: string` — The key of this field in its `MForm`
2643
2914
  - `minHeight?: string = "200px"` — Min height
2644
2915
  - `maxHeight?: string = "600px"` — Max height
2645
2916
  - `labels?: JsonEditorLabels` — Overrides for the valid/invalid badge and format/minify button text (see `JsonEditorLabels`) — defaults come from useLocale()
2646
2917
 
2647
2918
  Events:
2919
+ - `blur()` — Emitted when focus leaves the editor
2648
2920
  - `update:modelValue(unknown)` — Emitted with the parsed value whenever the text is valid JSON — powers v-model
2649
2921
 
2922
+ Exposed (template ref):
2923
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
2924
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
2925
+
2650
2926
  ```ts
2651
2927
  export interface JsonEditorLabels {
2652
2928
  valid?: string
@@ -3235,6 +3511,62 @@ Slots:
3235
3511
  Exposed (template ref):
3236
3512
  - `popup: () => Popup | undefined` — The MapLibre popup
3237
3513
 
3514
+ ### MMapRoute
3515
+
3516
+ Import from `@m3ui-vue/m3ui-vue/map`.
3517
+
3518
+ 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.
3519
+
3520
+ Props:
3521
+ - `stops: MapRouteStop[]` — The stops, in order: the start, any in between, the destination
3522
+ - `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
3523
+ - `progress?: number` — How far the vehicle is, 0–1 of the route's length. Ignored when `vehicle` is set
3524
+ - `vehicle?: LngLat | null` — The vehicle's live position, `[lng, lat]`: it's placed on the nearest point of the route
3525
+ - `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
3526
+ - `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)
3527
+ - `showVehicle?: boolean = true` — Show the vehicle (when there's a `progress` or `vehicle`)
3528
+ - `duration?: number | "auto" = "auto"` — How long the vehicle takes to move to a new position, in ms (0 jumps). `auto` (default) takes as long as the time between the last two positions, so a vehicle fed every few seconds keeps moving at an even pace instead of stopping between fixes (or slowing down when one arrives early). Reduced motion jumps
3529
+ - `fit?: boolean = true` — Fit the map to the whole route when it's shown and when the route changes
3530
+ - `follow?: boolean = false` — Keep the vehicle in the middle of the map as it moves
3531
+ - `padding?: number = 64` — Room around the route when fitting it, in px
3532
+ - `color?: string` — The route's color: one MapLibre reads (hex, rgb()…), not `var()`. Defaults to the theme's primary, following palette and dark mode
3533
+ - `flow?: boolean = true` — The dots of the route ahead flow toward the destination (off with reduced motion)
3534
+ - `width?: number = 5` — Line width in px
3535
+ - `before?: string` — Insert the route's lines below this layer id (e.g. under the style's labels)
3536
+ - `id?: string` — The source's id (and the prefix of its layers' ids). Generated when left out
3537
+ - `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)
3538
+ - `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
3539
+
3540
+ Events:
3541
+ - `error(error: unknown)` — `provider` failed
3542
+ - `route(route: MapRouteResult)` — `provider` returned a road (`{ path, distance, duration }`)
3543
+ - `stop-click(stop: MapRouteStop, index: number)` — A stop was clicked: the stop and its index
3544
+ - `arrive()` — The vehicle reached the end of the route
3545
+
3546
+ Slots:
3547
+ - `#stop { stop: MapRouteStop; index: number; done: boolean; }` — A stop's marker, instead of the round one. Scope: `{ stop, index, done }`
3548
+ - `#stop-popup { stop: MapRouteStop; index: number; done: boolean; }` — Content of a popup that opens when a stop is clicked. Scope: `{ stop, index, done }`
3549
+ - `#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
3550
+
3551
+ Exposed (template ref):
3552
+ - `length: number` — The route's length, in meters
3553
+ - `travelled: number` — How far the vehicle is now, in meters
3554
+ - `sourceId: string` — The source's id
3555
+
3556
+ ```ts
3557
+ /** A stop on an `MMapRoute`: a pickup, a drop-off, a waypoint. */
3558
+ export interface MapRouteStop {
3559
+ /** Where it is, `[lng, lat]` */
3560
+ lngLat: LngLat
3561
+ /** Its name (the marker's accessible name and tooltip) */
3562
+ label?: string
3563
+ /** A Material Symbol inside its marker. Defaults to a number for the stops in between, a flag for the last one */
3564
+ icon?: string
3565
+ /** Mark it reached (or not) yourself, instead of by where the vehicle is along the route */
3566
+ done?: boolean
3567
+ }
3568
+ ```
3569
+
3238
3570
  ### MMapSearch
3239
3571
 
3240
3572
  Import from `@m3ui-vue/m3ui-vue/map`.
@@ -3272,8 +3604,12 @@ Props:
3272
3604
  - `label: string` — Field label
3273
3605
  - `mask: string` — Mask pattern (# = digit) or a built-in preset name (see `MaskPreset`)
3274
3606
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
3275
- - `error?: boolean` — Error state
3607
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3276
3608
  - `errorLabel?: string` — Error message shown when error is true
3609
+ - `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
3610
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3611
+ - `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
3612
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3277
3613
  - `hint?: string` — Hint text
3278
3614
  - `disabled?: boolean` — Disables the field
3279
3615
  - `required?: boolean` — Marks as required — adds a red asterisk after the label
@@ -3283,10 +3619,13 @@ Props:
3283
3619
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
3284
3620
 
3285
3621
  Events:
3622
+ - `blur()`
3286
3623
  - `update:modelValue(string)` — Emitted on every keystroke — powers v-model
3287
3624
  - `debounced(string)` — Emitted debounce ms after the user stops typing (only when debounce > 0)
3288
3625
 
3289
3626
  Exposed (template ref):
3627
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3628
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3290
3629
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
3291
3630
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
3292
3631
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -3328,12 +3667,17 @@ Props:
3328
3667
  - `debounce?: number = 200` — The delay before a `search`, in ms
3329
3668
  - `leadingIcon?: string` — Material Symbol on the left
3330
3669
  - `hint?: string` — Helper text below the field
3331
- - `error?: boolean` — Error state
3670
+ - `error?: string | boolean` — Error state. A string is also the message
3332
3671
  - `errorLabel?: string` — Error message shown when `error` is true
3672
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
3673
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
3674
+ - `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
3675
+ - `name?: string` — The key of this field in its `MForm`
3333
3676
  - `required?: boolean` — Marks it as required
3334
3677
  - `disabled?: boolean` — Disables the field
3335
3678
 
3336
3679
  Events:
3680
+ - `blur()`
3337
3681
  - `update:modelValue(text: string)` — The text changed
3338
3682
  - `update:mentions(mentions: MentionRef[])` — The picked items still in the text changed
3339
3683
  - `mention(item: MentionItem, trigger: string)` — An item was picked: `(item, trigger)`
@@ -3522,8 +3866,12 @@ Props:
3522
3866
  - `variant?: "filled" | "outlined" = "filled"` — Field style
3523
3867
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
3524
3868
  - `disabled?: boolean = false` — Disables the field
3525
- - `error?: boolean` — Error state
3869
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3526
3870
  - `errorLabel?: string` — Error message shown when error is true
3871
+ - `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
3872
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3873
+ - `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
3874
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3527
3875
  - `hint?: string` — Helper text below field
3528
3876
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
3529
3877
  - `leadingIcon?: string` — Material Symbol icon name
@@ -3535,9 +3883,14 @@ Props:
3535
3883
  - `debounce?: number = 0` — Delay (ms) before filtering and firing @debounced. Selection is always instant
3536
3884
 
3537
3885
  Events:
3886
+ - `blur()`
3538
3887
  - `update:modelValue(unknown[])` — Emitted on selection change — powers v-model
3539
3888
  - `debounced(string)` — Emitted debounce ms after the user stops typing the search query (only when debounce > 0)
3540
3889
 
3890
+ Exposed (template ref):
3891
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3892
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3893
+
3541
3894
  ### MMultiSelect
3542
3895
 
3543
3896
  Select multiple values with removable chips and an optional in-dropdown search.
@@ -3550,8 +3903,12 @@ Props:
3550
3903
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
3551
3904
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
3552
3905
  - `disabled?: boolean = false` — Disables the field
3553
- - `error?: boolean` — Error state
3906
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3554
3907
  - `errorLabel?: string` — Error message shown when error is true
3908
+ - `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
3909
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
3910
+ - `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
3911
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3555
3912
  - `hint?: string` — Hint text below the field
3556
3913
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
3557
3914
  - `leadingIcon?: string` — Material Symbol shown before the trigger
@@ -3564,11 +3921,16 @@ Props:
3564
3921
  - `hideSelected?: boolean = false` — Remove already-selected options from the dropdown
3565
3922
 
3566
3923
  Events:
3924
+ - `blur()`
3567
3925
  - `update:modelValue(unknown[])` — Emitted with the new array of selected values.
3568
3926
 
3569
3927
  Slots:
3570
3928
  - `#no-results` — Custom content shown in the dropdown when no options match the search query
3571
3929
 
3930
+ Exposed (template ref):
3931
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
3932
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3933
+
3572
3934
  ```ts
3573
3935
  export interface MultiSelectOption {
3574
3936
  label: string
@@ -3768,8 +4130,12 @@ Props:
3768
4130
  - `min?: number` — Minimum allowed value
3769
4131
  - `max?: number` — Maximum allowed value
3770
4132
  - `step?: number = 1` — Increment/decrement step
3771
- - `error?: boolean` — Error state
4133
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
3772
4134
  - `errorLabel?: string` — Error message shown when error is true
4135
+ - `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
4136
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
4137
+ - `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
4138
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
3773
4139
  - `hint?: string` — Hint text
3774
4140
  - `disabled?: boolean` — Disables the field
3775
4141
  - `required?: boolean` — Marks as required — adds a red asterisk after the label
@@ -3779,10 +4145,13 @@ Props:
3779
4145
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
3780
4146
 
3781
4147
  Events:
4148
+ - `blur()`
3782
4149
  - `update:modelValue(number | null)` — Emitted on every change — typing, stepper clicks, or arrow keys — powers v-model
3783
4150
  - `debounced(number | null)` — Emitted debounce ms after the user stops typing (only when debounce > 0). Stepper clicks/arrow keys still emit instantly
3784
4151
 
3785
4152
  Exposed (template ref):
4153
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4154
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
3786
4155
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
3787
4156
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
3788
4157
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -3968,6 +4337,34 @@ Props:
3968
4337
  Events:
3969
4338
  - `score(number)` — Emitted whenever value changes — -1 for an empty value, or 0-4 otherwise
3970
4339
 
4340
+ ### MPdfSigner
4341
+
4342
+ Import from `@m3ui-vue/m3ui-vue/pdf`.
4343
+
4344
+ Sign and fill a PDF: fields placed on its pages (signature, initials, name, date, text, checkbox) that the signer fills in order, a signature drawn with a finger or mouse or typed, adopted once and reused for every signature field, and `save()` to get the PDF with everything written into it. In `prepare` mode the sender places the fields instead: add, drag, resize, mark required. Fields are plain JSON (`v-model:fields`, positions as fractions of the page), so a backend can store them and send them to each signer (`signer` picks whose fields are active). Built on MPdfViewer (zoom, search, thumbnails) and MSignaturePad. Writing the PDF needs `pdf-lib`. A visual signature, as e-signature flows show and print; for a certificate-based digital signature (PAdES), sign the saved file on your server. Available from the `/pdf` entry point. Not an M3 spec component.
4345
+
4346
+ Props:
4347
+ - `src?: PdfSource | null = null` — The PDF: a URL, its bytes, or a `File`/`Blob`
4348
+ - `fields?: PdfSignField[] = []` (v-model:fields) — The fields on its pages (v-model:fields)
4349
+ - `mode?: "sign" | "prepare" = "sign"` — `sign`: fill the fields. `prepare`: place them (add, move, resize, delete)
4350
+ - `signer?: string` — Whose turn it is: only fields with this `signer` (or none) can be filled; the rest show dimmed
4351
+ - `signerName?: string` — Fills name fields, and starts a typed signature with it
4352
+ - `dateFormat?: Intl.DateTimeFormatOptions = { dateStyle: "medium" }` — How date fields write today's date
4353
+ - `types?: ("name" | "text" | "date" | "checkbox" | "signature" | "initials")[] = ["signature", "initials", "name", "date", "text", "checkbox"]` — The field types offered in prepare mode
4354
+ - `workerSrc?: string` — The pdf.js worker URL (MPdfViewer's)
4355
+
4356
+ Events:
4357
+ - `complete()` — Every required field is filled (after the last one is)
4358
+ - `finish()` — The signer pressed Finish (every required field is filled): call `save()` here
4359
+ - `loaded(doc: unknown)` — The document loaded (MPdfViewer's)
4360
+ - `update:fields(fields: PdfSignField[])` — The fields changed (placed, moved, filled)
4361
+
4362
+ Exposed (template ref):
4363
+ - `save: (options?: SignPdfOptions | undefined) => Promise<Uint8Array<ArrayBufferLike>>` — The PDF with the filled fields written in (needs `pdf-lib`)
4364
+ - `next: () => void` — Scrolls to the next field to fill
4365
+ - `complete: boolean` — Whether every required field of this signer is filled
4366
+ - `viewer: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly src?: PdfSource | null | undefined; readonly title?: string | undefined; readonly page?: number | undefined; readonly zoom?: PdfZoom | undefined; readonly rotation?: number | undefined; readonly annotations?: PdfAnnotation[] | undefined; readonly annotate?: boolean | undefined; readonly tool?: PdfTool | undefined; readonly colors?: string[] | undefined; readonly inkWidths?: number[] | undefined; readonly author?: string | undefined; readonly sidebar?: "outline" | "thumbnails" | null | undefined; readonly toolbar?: boolean | undefined; readonly downloadable?: boolean | undefined; readonly fileName?: string | undefined; readonly password?: string | undefined; readonly workerSrc?: string | undefined; readonly minZoom?: number | undefined; readonly maxZoom?: number | undefined; readonly onError?: ((args_0: Error) => any) | undefined; readonly onLink?: ((args_0: { url?: string | undefined; page?: number | undefined; }) => any) | undefined; readonly "onUpdate:page"?: ((args_0: number) => any) | undefined; readonly "onUpdate:tool"?: ((args_0: PdfTool) => any) | undefined; readonly "onUpdate:zoom"?: ((args_0: PdfZoom) => any) | undefined; readonly "onUpdate:rotation"?: ((args_0: number) => any) | undefined; readonly "onUpdate:annotations"?: ((args_0: PdfAnnotation[]) => any) | undefined; readonly "onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined; readonly onLoaded?: ((args_0: PDFDocumentProxy) => any) | undefined; readonly "onAnnotation-click"?: ((args_0: PdfAnnotation) => any) | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: Attrs; $refs: Data; $slots: Readonly<InternalSlots>; $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null; $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null; $host: Element | null; $emit: ((event: "error", args_0: Error) => void) & ((event: "link", args_0: { url?: string | undefined; page?: number | undefined; }) => void) & ((event: "update:page", args_0: number) => void) & ((event: "update:tool", args_0: PdfTool) => void) & ((event: "update:zoom", args_0: PdfZoom) => void) & ((event: "update:rotation", args_0: number) => void) & ((event: "update:annotations", args_0: PdfAnnotation[]) => void) & ((event: "update:sidebar", args_0: "outline" | "thumbnails" | null) => void) & ((event: "loaded", args_0: PDFDocumentProxy) => void) & ((event: "annotation-click", args_0: PdfAnnotation) => void); $el: any; $options: ComponentOptionsBase<ToResolvedProps<__VLS_Props, { error: (args_0: Error) => any; link: (args_0: { url?: string | undefined; page?: number | undefined; }) => any; "update:page": (args_0: number) => any; "update:tool": (args_0: PdfTool) => any; "update:zoom": (args_0: PdfZoom) => any; "update:rotation": (args_0: number) => any; "update:annotations": (args_0: PdfAnnotation[]) => any; "update:sidebar": (args_0: "outline" | "thumbnails" | null) => any; loaded: (args_0: PDFDocumentProxy) => any; "annotation-click": (args_0: PdfAnnotation) => any; }>, { pdf: PdfState; goToPage: (p: number) => void; setZoom: (z: PdfZoom) => void; search: (q: string) => void; undo: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { error: (args_0: Error) => any; link: (args_0: { url?: string | undefined; page?: number | undefined; }) => any; "update:page": (args_0: number) => any; "update:tool": (args_0: PdfTool) => any; "update:zoom": (args_0: PdfZoom) => any; "update:rotation": (args_0: number) => any; "update:annotations": (args_0: PdfAnnotation[]) => any; "update:sidebar": (args_0: "outline" | "thumbnails" | null) => any; loaded: (args_0: PDFDocumentProxy) => any; "annotation-click": (args_0: PdfAnnotation) => any; }, string, { src: PdfSource | null; colors: string[]; page: number; minZoom: number; maxZoom: number; tool: PdfTool; zoom: PdfZoom; rotation: number; annotations: PdfAnnotation[]; annotate: boolean; inkWidths: number[]; sidebar: "outline" | "thumbnails" | null; toolbar: boolean; downloadable: boolean; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & MergedComponentOptionsOverride; $forceUpdate: () => void; $nextTick: { (): Promise<void>; <T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>; }; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnCleanup) => any : (args_0: any, args_1: any, args_2: OnCleanup) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle; } & Readonly<{ src: PdfSource | null; colors: string[]; page: number; minZoom: number; maxZoom: number; tool: PdfTool; zoom: PdfZoom; rotation: number; annotations: PdfAnnotation[]; annotate: boolean; inkWidths: number[]; sidebar: "outline" | "thumbnails" | null; toolbar: boolean; downloadable: boolean; }> & Omit<Readonly<__VLS_Props> & Readonly<{ onError?: ((args_0: Error) => any) | undefined; onLink?: ((args_0: { url?: string | undefined; page?: number | undefined; }) => any) | undefined; "onUpdate:page"?: ((args_0: number) => any) | undefined; "onUpdate:tool"?: ((args_0: PdfTool) => any) | undefined; "onUpdate:zoom"?: ((args_0: PdfZoom) => any) | undefined; "onUpdate:rotation"?: ((args_0: number) => any) | undefined; "onUpdate:annotations"?: ((args_0: PdfAnnotation[]) => any) | undefined; "onUpdate:sidebar"?: ((args_0: "outline" | "thumbnails" | null) => any) | undefined; onLoaded?: ((args_0: PDFDocumentProxy) => any) | undefined; "onAnnotation-click"?: ((args_0: PdfAnnotation) => any) | undefined; }>, "search" | "undo" | "pdf" | "goToPage" | "setZoom" | DefaultKeys<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, { src: null; page: undefined; zoom: string; rotation: number; annotations: () => never[]; annotate: boolean; tool: string; colors: () => string[]; inkWidths: () => number[]; sidebar: null; toolbar: boolean; downloadable: boolean; minZoom: number; maxZoom: number; }>>> & { pdf: PdfState; goToPage: (p: number) => void; setZoom: (z: PdfZoom) => void; search: (q: string) => void; undo: () => void; } & ExtractComputedReturns<{}> & ComponentCustomProperties & {} & { $slots: __VLS_Slots; }) | undefined` — The viewer underneath (zoom, pages, search)
4367
+
3971
4368
  ### MPdfViewer
3972
4369
 
3973
4370
  Import from `@m3ui-vue/m3ui-vue/pdf`.
@@ -4009,6 +4406,7 @@ Events:
4009
4406
 
4010
4407
  Slots:
4011
4408
  - `#actions { pdf: PdfState; }` — Extra buttons at the end of the top bar. Props: `{ pdf }`
4409
+ - `#page { page: number; width: number; height: number; scale: number; rotation: number; size: { width: number; height: number; } | undefined; }` — Drawn over each page (fields, stamps, your own marks), positioned in its box. Props: `{ page, width, height, scale, rotation, size }`: the page's box in px, px per PDF point, the view's rotation, and the page's own size in points (before that rotation)
4012
4410
  - `#empty` — Shown without a `src`
4013
4411
 
4014
4412
  Exposed (template ref):
@@ -4065,18 +4463,23 @@ Props:
4065
4463
  - `countries?: string[]` — Only these countries (ISO codes) in the list
4066
4464
  - `preferred?: string[]` — Countries pinned at the top of the list
4067
4465
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4068
- - `error?: boolean` — Puts the field in error state
4466
+ - `error?: string | boolean` — Puts the field in error state. A string is also the message
4069
4467
  - `errorLabel?: string` — Error message below the field (when `error`, or when `validate` finds the number incomplete)
4468
+ - `rules?: ValidationRule | ValidationRule[]` — More validation rules (functions or a Standard Schema), run on the E.164 value; see `MForm`
4469
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
4470
+ - `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
4471
+ - `name?: string` — The key of this field in its `MForm`
4070
4472
  - `hint?: string` — Hint text below the field
4071
4473
  - `disabled?: boolean` — Disables the field
4072
4474
  - `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
4475
+ - `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
4476
  - `placeholder?: string` — Placeholder; defaults to an example in the country's format
4075
4477
  - `flags?: boolean = true` — Show flag emoji
4076
4478
  - `fieldBg?: string` — Overrides the auto-detected background behind the outlined label
4077
4479
  - `locale?: string` — BCP-47 language for country names; defaults to the app's locale
4078
4480
 
4079
4481
  Events:
4482
+ - `blur()` — Focus left the field and its country list
4080
4483
  - `update:modelValue(string | null)` — Emitted with the number in E.164, or null when empty — powers v-model
4081
4484
  - `update:country(string)` — Emitted with the ISO code when the country changes — powers v-model:country
4082
4485
  - `update:valid(boolean)` — Emitted when the number becomes (in)valid for its country — powers v-model:valid
@@ -4086,6 +4489,7 @@ Slots:
4086
4489
 
4087
4490
  Exposed (template ref):
4088
4491
  - `focus: (options?: FocusOptions | undefined) => void | undefined`
4492
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4089
4493
  - `valid: boolean` — Whether the number fits its country's length
4090
4494
 
4091
4495
  ### MPinInput
@@ -4100,17 +4504,27 @@ Props:
4100
4504
  - `type?: "numeric" | "alphanumeric" = "numeric"` — Restricts which characters are accepted
4101
4505
  - `masked?: boolean = false` — Renders each box as a password field (dots instead of characters)
4102
4506
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4103
- - `error?: boolean` — Error state
4507
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
4104
4508
  - `errorLabel?: string` — Error message shown when error is true
4509
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
4510
+ - `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
4511
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
4512
+ - `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
4513
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
4105
4514
  - `hint?: string` — Hint text below the boxes
4106
4515
  - `disabled?: boolean = false` — Disables every box
4107
4516
  - `autoFocus?: boolean = false` — Focuses the first box on mount
4108
4517
  - `label?: string` — aria-label for the group of boxes
4109
4518
 
4110
4519
  Events:
4520
+ - `blur()`
4111
4521
  - `update:modelValue(string)` — Emitted on every box change — powers v-model
4112
4522
  - `complete(string)` — Fires once with the full code as soon as every box is filled — the natural place to trigger auto-submit
4113
4523
 
4524
+ Exposed (template ref):
4525
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4526
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4527
+
4114
4528
  ### MPosKeypad
4115
4529
 
4116
4530
  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 +4549,8 @@ Props:
4135
4549
  - `disabled?: boolean = false` — Disables every key
4136
4550
 
4137
4551
  Events:
4138
- - `update:modelValue(string)` — Emitted on every key — powers v-model
4139
4552
  - `submit(string)` — Emitted by the action button or Enter, with the value
4553
+ - `update:modelValue(string)` — Emitted on every key — powers v-model
4140
4554
  - `key(string)` — Emitted on every key press, with the key (`'0'`–`'9'`, `'00'`, `'.'`, `'backspace'`, `'clear'`)
4141
4555
 
4142
4556
  Slots:
@@ -4398,10 +4812,22 @@ Props:
4398
4812
  - `direction?: "row" | "column" = "column"` — Layout direction
4399
4813
  - `disabled?: boolean = false` — Disables all radios
4400
4814
  - `color?: "error" | "primary" | "secondary" | "tertiary" = "primary"` — Radio color
4815
+ - `error?: string | boolean` — Error state. A string is also the message
4816
+ - `errorLabel?: string` — Error message shown when `error` is true
4817
+ - `required?: boolean` — Marks it as required (asterisk); inside an `MForm` or with `rules`, an option must be picked
4818
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
4819
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
4820
+ - `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
4821
+ - `name?: string` — The key of this field in its `MForm`
4401
4822
 
4402
4823
  Events:
4824
+ - `blur()` — Emitted when focus leaves the group
4403
4825
  - `update:modelValue(unknown)` — Emitted with the selected option's value.
4404
4826
 
4827
+ Exposed (template ref):
4828
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4829
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4830
+
4405
4831
  ```ts
4406
4832
  interface Option {
4407
4833
  label: string
@@ -4423,10 +4849,22 @@ Props:
4423
4849
  - `color?: string = "primary"` — One of the 4 M3 roles ('primary' | 'secondary' | 'tertiary' | 'error'), or any other CSS color string
4424
4850
  - `icon?: string = "star"` — Material Symbol icon
4425
4851
  - `halfIncrements?: boolean = false` — Allow half-star values (click the left half of an icon). Fractional values always render exactly, with or without this prop
4852
+ - `error?: string | boolean` — Error state. A string is also the message
4853
+ - `errorLabel?: string` — Error message shown when `error` is true
4854
+ - `required?: boolean` — Inside an `MForm` or with `rules`, 0 (not rated) fails
4855
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
4856
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
4857
+ - `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
4858
+ - `name?: string` — The key of this field in its `MForm`
4426
4859
 
4427
4860
  Events:
4861
+ - `blur()` — Emitted when the rating loses focus
4428
4862
  - `update:modelValue(number)` — Emitted when the user rates by click, drag or keyboard (v-model). Dragging past the first icon emits 0
4429
4863
 
4864
+ Exposed (template ref):
4865
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
4866
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
4867
+
4430
4868
  ### MReceipt
4431
4869
 
4432
4870
  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 +5047,25 @@ Props:
4609
5047
  - `modelValue: string` (v-model) — HTML content (v-model)
4610
5048
  - `placeholder?: string` — Placeholder text shown on an empty document
4611
5049
  - `disabled?: boolean = false` — Disables editing
5050
+ - `error?: string | boolean` — Error state. A string is also the message
5051
+ - `errorLabel?: string` — Error message shown when `error` is true
5052
+ - `required?: boolean` — Inside an `MForm` or with `rules`, the document must have some text (or an image)
5053
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5054
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5055
+ - `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
5056
+ - `name?: string` — The key of this field in its `MForm`
4612
5057
  - `minHeight?: string = "200px"` — Minimum height of the text area (not used with `fill`)
4613
5058
  - `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
5059
  - `labels?: RichTextEditorLabels` — Object with all toolbar/dialog label overrides for i18n (see `RichTextEditorLabels`) — defaults come from useLocale()
4615
5060
 
4616
5061
  Events:
5062
+ - `blur()` — Emitted when focus leaves the editor (toolbar and dialogs included)
4617
5063
  - `update:modelValue(string)` — Emitted with the editor HTML on every content change — powers v-model
4618
5064
 
5065
+ Exposed (template ref):
5066
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5067
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5068
+
4619
5069
  ```ts
4620
5070
  export interface RichTextEditorLabels {
4621
5071
  bold?: string
@@ -4934,8 +5384,16 @@ Props:
4934
5384
  - `multiSelect?: boolean = false` — Allow multiple selections
4935
5385
  - `density?: "default" | "compact" | "comfortable" = "default"` — Button density
4936
5386
  - `color?: "primary" | "secondary" | "tertiary" = "primary"` — Selected segment color
5387
+ - `error?: string | boolean` — Error state. A string is also the message
5388
+ - `errorLabel?: string` — Error message shown when `error` is true
5389
+ - `required?: boolean` — Inside an `MForm` or with `rules`, a segment must be selected
5390
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5391
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5392
+ - `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
5393
+ - `name?: string` — The key of this field in its `MForm`
4937
5394
 
4938
5395
  Events:
5396
+ - `blur()` — Emitted when focus leaves the segments
4939
5397
  - `update:modelValue(M)` — Emitted on selection change — powers v-model
4940
5398
 
4941
5399
  ```ts
@@ -4959,8 +5417,12 @@ Props:
4959
5417
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
4960
5418
  - `mode?: "docked" | "modal" = "docked"` — Dropdown mode: docked (inline) or modal (dialog)
4961
5419
  - `disabled?: boolean = false` — Disables the select
4962
- - `error?: boolean` — Error state
5420
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
4963
5421
  - `errorLabel?: string` — Error message shown when error is true
5422
+ - `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
5423
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
5424
+ - `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
5425
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
4964
5426
  - `hint?: string` — Hint text below the field
4965
5427
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
4966
5428
  - `leadingIcon?: string` — Material Symbol shown before the trigger
@@ -4969,8 +5431,13 @@ Props:
4969
5431
  - `noResultsText?: string` — Text shown when options is empty — defaults to the current locale's string
4970
5432
 
4971
5433
  Events:
5434
+ - `blur()`
4972
5435
  - `update:modelValue(unknown)` — Emitted with the selected option's value (`null` when the clear button empties it).
4973
5436
 
5437
+ Exposed (template ref):
5438
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5439
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5440
+
4974
5441
  ```ts
4975
5442
  export interface SelectOption {
4976
5443
  label: string
@@ -5085,17 +5552,26 @@ Props:
5085
5552
  - `background?: string = "#ffffff"` — Canvas background color
5086
5553
  - `variant?: "filled" | "outlined" = "outlined"` — Container border style
5087
5554
  - `disabled?: boolean = false` — Disables drawing
5555
+ - `error?: string | boolean` — Error state. A string is also the message
5556
+ - `errorLabel?: string` — Error message shown when `error` is true
5557
+ - `required?: boolean` — Inside an `MForm` or with `rules`, a signature must be drawn
5558
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5559
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: after each stroke (default), or only on submit
5560
+ - `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
5561
+ - `name?: string` — The key of this field in its `MForm`
5088
5562
 
5089
5563
  Events:
5090
5564
  - `change(string)` — Fires alongside end, and also after undo() — same data: URL payload
5091
5565
  - `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
5566
+ - `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
5567
 
5094
5568
  Exposed (template ref):
5095
5569
  - `clear: () => void`
5096
5570
  - `undo: () => void`
5097
5571
  - `isEmpty: () => boolean`
5098
5572
  - `toDataURL: (type?: string | undefined, quality?: number | undefined) => string`
5573
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5574
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5099
5575
 
5100
5576
  ### MSimpleCarousel
5101
5577
 
@@ -5156,6 +5632,13 @@ Props:
5156
5632
  - `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
5633
  - `disabled?: boolean = false` — Disables the slider
5158
5634
  - `label?: string` — Label text
5635
+ - `error?: string | boolean` — Error state. A string is also the message
5636
+ - `errorLabel?: string` — Error message shown when `error` is true
5637
+ - `required?: boolean` — Marks it as required (asterisk); a slider always has a value, so use `rules` (e.g. `min(1)`) for limits
5638
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5639
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5640
+ - `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
5641
+ - `name?: string` — The key of this field in its `MForm`
5159
5642
  - `showValue?: boolean = false` — Show current value beside label
5160
5643
  - `showTooltip?: boolean = false` — Show value tooltip while dragging
5161
5644
  - `orientation?: "horizontal" | "vertical" = "horizontal"` — Slider orientation
@@ -5169,8 +5652,13 @@ Props:
5169
5652
  - `thumbColor?: string` — Custom color (hex, rgb(), a CSS var, etc.) for the thumb (bar or icon). Defaults to `color`'s M3 token.
5170
5653
 
5171
5654
  Events:
5655
+ - `blur()` — Emitted when focus leaves the slider (both thumbs, for a range)
5172
5656
  - `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
5657
 
5658
+ Exposed (template ref):
5659
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5660
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5661
+
5174
5662
  ### MSnackbar
5175
5663
 
5176
5664
  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`.
@@ -5286,6 +5774,70 @@ export interface SpotlightResult {
5286
5774
  }
5287
5775
  ```
5288
5776
 
5777
+ ### MSpreadsheet
5778
+
5779
+ An editable grid of cells, like a small Excel or Google Sheets: type into cells, select ranges with the mouse or Shift+arrows, copy and paste to and from Excel/Sheets (tab-separated text), drag the fill handle to copy cells or continue a series, formulas (`=SUM(A1:A10)`, `=IF(B2>0,"yes","no")`, relative and `$`-locked references), undo and redo, frozen rows and columns, resizable columns. Only the rows in view are rendered, so thousands of rows stay smooth. `v-model` is the cells as typed (a formula is a string starting with `=`); the values formulas work out to are shown, not stored. Not an M3 spec component.
5780
+
5781
+ Props:
5782
+ - `modelValue?: SpreadsheetCell[][] = []` (v-model) — The cells, row by row, as typed: numbers, text, booleans, `null` for empty, formulas as `'=…'` strings
5783
+ - `rows?: number = 100` — Rows the grid shows at least (more when the data has more)
5784
+ - `cols?: number = 26` — Columns the grid shows at least (more when the data has more)
5785
+ - `columnWidths?: number[]` (v-model:columnWidths) — Each column's width in px (`v-model:columnWidths`, updated when the user resizes one)
5786
+ - `defaultColumnWidth?: number = 100` — Width of columns without one in `columnWidths`, in px
5787
+ - `rowHeight?: number = 32` — Row height in px
5788
+ - `frozenRows?: number = 0` — Rows kept at the top while scrolling
5789
+ - `frozenColumns?: number = 0` — Columns kept at the left while scrolling
5790
+ - `readonly?: boolean` — Cells can be selected and copied, not changed
5791
+ - `headers?: boolean = true` — Show the column letters and row numbers
5792
+ - `columnLabels?: string[]` — Column header text instead of A, B, C… (missing ones keep the letter)
5793
+ - `formulaBar?: boolean = true` — Show the formula bar (the selected cell's name and its contents, editable)
5794
+ - `formulas?: boolean = true` — Work formulas out. Off: `=…` is shown as typed
5795
+ - `functions?: Record<string, SpreadsheetFunction>` — More functions for formulas, by upper-case name: `{ TAX: ([amount]) => amount * 0.21 }`
5796
+ - `format?: ((value: SpreadsheetValue, cell: { row: number; col: number; raw: SpreadsheetCell; }) => string)` — How a cell shows its value (currencies, dates…). Gets the worked-out value and where it is
5797
+ - `overscan?: number = 6` — Extra rows rendered above and below the ones in view
5798
+ - `label?: string` — The grid's accessible name
5799
+
5800
+ Events:
5801
+ - `update:modelValue(cells: SpreadsheetCell[][])`
5802
+ - `change(changes: SpreadsheetChange[])` — Cells were written (typing, paste, fill, clear, undo): `{ row, col, value, oldValue }[]`
5803
+ - `update:columnWidths(widths: number[])`
5804
+ - `selection-change(range: SpreadsheetRange)` — The selection moved: `{ start, end }`
5805
+
5806
+ Exposed (template ref):
5807
+ - `focus: () => void | undefined` — Focuses the grid (keyboard, paste)
5808
+ - `select: (start: SpreadsheetPosition, end?: SpreadsheetPosition) => void` — Selects a cell, or a range from `start` to `end`, and scrolls it into view
5809
+ - `selection: SpreadsheetRange` — The selection now
5810
+ - `value: (r: number, c: number) => SpreadsheetValue` — A cell's value, its formula worked out
5811
+ - `undo: () => void` — Undoes the last change made in the grid
5812
+ - `redo: () => void` — Redoes what undo undid
5813
+ - `clear: () => void` — Clears the selected cells
5814
+
5815
+ ```ts
5816
+ /** A cell's position, 0-based */
5817
+ export interface SpreadsheetPosition {
5818
+ row: number
5819
+ col: number
5820
+ }
5821
+ ```
5822
+
5823
+ ```ts
5824
+ /** A block of cells, corners included */
5825
+ export interface SpreadsheetRange {
5826
+ start: SpreadsheetPosition
5827
+ end: SpreadsheetPosition
5828
+ }
5829
+ ```
5830
+
5831
+ ```ts
5832
+ /** One cell written by an edit, a paste, a fill or a clear */
5833
+ export interface SpreadsheetChange {
5834
+ row: number
5835
+ col: number
5836
+ value: SpreadsheetCell
5837
+ oldValue: SpreadsheetCell
5838
+ }
5839
+ ```
5840
+
5289
5841
  ### MStack
5290
5842
 
5291
5843
  Flex stack with gap, alignment, and optional dividers between items.
@@ -5419,10 +5971,22 @@ Props:
5419
5971
  - `label?: string` — Label text
5420
5972
  - `color?: "error" | "primary" | "secondary" | "tertiary" = "primary"` — Track/thumb color when on
5421
5973
  - `icon?: boolean = true` — Shows a check icon in the thumb while on. Set to `false` for M3's plain switch without an icon.
5974
+ - `error?: string | boolean` — Error state. A string is also the message
5975
+ - `errorLabel?: string` — Error message shown when `error` is true
5976
+ - `required?: boolean` — Must be on, inside an `MForm` or with `rules`
5977
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
5978
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving it (default), on change, or only on submit
5979
+ - `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
5980
+ - `name?: string` — The key of this field in its `MForm`
5422
5981
 
5423
5982
  Events:
5983
+ - `blur(FocusEvent)` — Emitted when the switch loses focus
5424
5984
  - `update:modelValue(boolean)` — Emitted with the new on/off state.
5425
5985
 
5986
+ Exposed (template ref):
5987
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
5988
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5989
+
5426
5990
  ### MTable
5427
5991
 
5428
5992
  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 +6072,12 @@ Props:
5508
6072
  - `placeholder?: string` — Input placeholder
5509
6073
  - `variant?: "filled" | "outlined" = "filled"` — Field style
5510
6074
  - `disabled?: boolean = false` — Disables the field
5511
- - `error?: boolean` — Error state
6075
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
5512
6076
  - `errorLabel?: string` — Error message shown when error is true
6077
+ - `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
6078
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
6079
+ - `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
6080
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
5513
6081
  - `hint?: string` — Helper text below field
5514
6082
  - `required?: boolean = false` — Marks as required — adds a red asterisk after the label
5515
6083
  - `leadingIcon?: string` — Material Symbol icon name
@@ -5520,10 +6088,13 @@ Props:
5520
6088
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event
5521
6089
 
5522
6090
  Events:
6091
+ - `blur()`
5523
6092
  - `update:modelValue(string[])` — Emitted whenever a tag is added or removed — powers v-model
5524
6093
  - `debounced(string[])` — Emitted debounce ms after the tag list stops changing (only when debounce > 0)
5525
6094
 
5526
6095
  Exposed (template ref):
6096
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
6097
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5527
6098
  - `inputEl: HTMLInputElement | null` — The `<input>` (or `<textarea>`) element
5528
6099
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
5529
6100
  - `blur: () => void | undefined` — Takes focus away from the field
@@ -5543,8 +6114,8 @@ Props:
5543
6114
  - `minHeight?: string = "300px"` — Minimum height
5544
6115
 
5545
6116
  Events:
5546
- - `line(string)` — Emitted with the buffered text once the user presses Enter — the usual event to handle a submitted command
5547
6117
  - `input(string)` — Emitted for every raw keystroke/data chunk xterm receives (not readonly)
6118
+ - `line(string)` — Emitted with the buffered text once the user presses Enter — the usual event to handle a submitted command
5548
6119
 
5549
6120
  Exposed (template ref):
5550
6121
  - `write: (text: string) => any`
@@ -5586,11 +6157,15 @@ Props:
5586
6157
  - `label: string` — Field label
5587
6158
  - `type?: string = "text"` — HTML input type
5588
6159
  - `variant?: "filled" | "outlined" = "filled"` — Visual style
5589
- - `error?: boolean` — Puts the field in error state (red border and label)
6160
+ - `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
6161
  - `errorLabel?: string` — Error message shown below the field (only visible when error is true)
6162
+ - `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
6163
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
6164
+ - `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
6165
+ - `name?: string` — Native `name`; also the key of this field in its `MForm`'s values, errors and schema
5591
6166
  - `hint?: string` — Hint text shown below the field
5592
6167
  - `disabled?: boolean` — Disables the field
5593
- - `required?: boolean` — Marks as required — adds a red asterisk after the label
6168
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
5594
6169
  - `multiline?: boolean` — Renders a textarea instead of an input
5595
6170
  - `rows?: number = 3` — Textarea rows (when multiline); with autoGrow, the fewest it shrinks to
5596
6171
  - `autoGrow?: boolean` — Multiline only: grows with the text from `rows` up to `maxRows`, instead of a fixed height with a drag handle
@@ -5602,7 +6177,9 @@ Props:
5602
6177
  - `debounce?: number = 0` — Delay (ms) before firing the @debounced event. v-model always updates immediately
5603
6178
 
5604
6179
  Events:
6180
+ - `blur(FocusEvent)` — Emitted when the field loses focus (wire vee-validate's `handleBlur` / Vuelidate's `$touch` here)
5605
6181
  - `update:modelValue(string)` — Emitted on every keystroke — powers v-model
6182
+ - `focus(FocusEvent)` — Emitted when the field gains focus
5606
6183
  - `debounced(string)` — Emitted debounce ms after the user stops typing (only when debounce > 0)
5607
6184
 
5608
6185
  Slots:
@@ -5613,6 +6190,8 @@ Exposed (template ref):
5613
6190
  - `focus: (options?: FocusOptions | undefined) => void | undefined` — Focuses the field
5614
6191
  - `blur: () => void | undefined` — Takes focus away from the field
5615
6192
  - `select: () => void | undefined` — Selects all its text
6193
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
6194
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
5616
6195
  - `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
6196
 
5618
6197
  ### MTicket
@@ -5722,16 +6301,26 @@ Props:
5722
6301
  - `label?: string` — Field label
5723
6302
  - `placeholder?: string` — Placeholder shown when no time is selected — falls back to label, then the current locale's string
5724
6303
  - `disabled?: boolean` — Disables the picker
5725
- - `error?: boolean` — Error state
6304
+ - `error?: string | boolean` — Error state. A string is also the message (`:error="errors.x"`)
5726
6305
  - `errorLabel?: string` — Error message shown when error is true
6306
+ - `required?: boolean` — Marks as required — adds a red asterisk after the label; inside an `MForm` or with `rules`, also validates it
6307
+ - `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
6308
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default; live after that), while typing, or only on submit (`MForm`)
6309
+ - `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
6310
+ - `name?: string` — The key of this field in its `MForm`'s values, errors and schema
5727
6311
  - `hint?: string` — Hint text below the field
5728
6312
  - `minuteStep?: number = 5` — Minute increment step
5729
6313
  - `use24h?: boolean = true` — Use 24-hour format
5730
6314
  - `fieldBg?: string` — Overrides the auto-detected background color used to cut the floating label out of the border
5731
6315
 
5732
6316
  Events:
6317
+ - `blur()`
5733
6318
  - `update:modelValue(string | null)` — Emitted with the picked time.
5734
6319
 
6320
+ Exposed (template ref):
6321
+ - `validate: () => Promise<boolean>` — Checks its rules and shows the result; resolves to whether they pass
6322
+ - `resetValidation: () => void` — Hides its validation error (until the next check)
6323
+
5735
6324
  ### MTimePickerModal
5736
6325
 
5737
6326
  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 +6363,17 @@ Props:
5774
6363
  - `mode?: "docked" | "modal" = "docked"` — Dropdown, or a dialog on small screens
5775
6364
  - `clearable?: boolean = false` — Show a clear button
5776
6365
  - `hint?: string` — Helper text below the field
5777
- - `error?: boolean` — Error state
6366
+ - `error?: string | boolean` — Error state. A string is also the message
5778
6367
  - `errorLabel?: string` — Error message shown when `error` is true
6368
+ - `rules?: ValidationRule | ValidationRule[]` — Validation rules (functions or a Standard Schema); see `MForm`
6369
+ - `validateOn?: ValidateOn` — When the rules are checked and shown: on leaving the field (default), while typing, or only on submit
6370
+ - `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
6371
+ - `name?: string` — The key of this field in its `MForm`
5779
6372
  - `required?: boolean` — Marks it as required
5780
6373
  - `disabled?: boolean` — Disables the field
5781
6374
 
5782
6375
  Events:
6376
+ - `blur()`
5783
6377
  - `update:modelValue(zone: string | null)` — A time zone was picked (its IANA name), or cleared (null)
5784
6378
 
5785
6379
  ### MTitle
@@ -5914,6 +6508,47 @@ export interface TourStep {
5914
6508
  }
5915
6509
  ```
5916
6510
 
6511
+ ### MTrackingTimeline
6512
+
6513
+ 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).
6514
+
6515
+ Props:
6516
+ - `steps: TrackingStep[]` — The stages, in order
6517
+ - `current: number` — The stage it's at (0-based): earlier ones are done. `steps.length` (or more) means all done
6518
+ - `stepProgress?: number = 0` — How far along the current stage's leg it is, 0–1 (the bar fills toward the next stage)
6519
+ - `eta?: string | number | Date` — The expected arrival: shows the minutes left and the time, and updates by itself
6520
+ - `status?: TrackingStatus = "active"` — On time (`active`), running late (`delayed`) or called off (`canceled`)
6521
+ - `title?: string` — The title, instead of the current stage's name
6522
+ - `message?: string` — A line under the title ("Your courier is 2 blocks away")
6523
+ - `details?: boolean = true` — Offer the stages with their times in a list that opens below
6524
+ - `expanded?: boolean` (v-model:expanded) — Whether the details are open (v-model:expanded)
6525
+
6526
+ Events:
6527
+ - `update:expanded(open: boolean)` — The details opened or closed — powers v-model:expanded
6528
+
6529
+ Slots:
6530
+ - `#title { step: TrackingStep | undefined; index: number; }` — Replaces the title (the current stage's name). Scope: `{ step, index }`
6531
+ - `#extra` — Content between the bar and the details: the courier, a call button, a map
6532
+
6533
+ ```ts
6534
+ /** A stage of an `MTrackingTimeline`: Order placed, Preparing, On the way, Delivered… */
6535
+ export interface TrackingStep {
6536
+ /** Its name */
6537
+ label: string
6538
+ /** A line under it in the details (who, where) */
6539
+ description?: string
6540
+ /** A Material Symbol for its dot */
6541
+ icon?: string
6542
+ /** When it happened (or is expected): shown as a time in the details */
6543
+ time?: string | number | Date
6544
+ }
6545
+ ```
6546
+
6547
+ ```ts
6548
+ /** Where the order stands besides its step: on time, running late, or called off */
6549
+ export type TrackingStatus = 'active' | 'delayed' | 'canceled'
6550
+ ```
6551
+
5917
6552
  ### MTransferList
5918
6553
 
5919
6554
  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 +6919,16 @@ Exposed (template ref):
6284
6919
 
6285
6920
  ## Composables and functions
6286
6921
 
6922
+ ### osrmRouteProvider
6923
+
6924
+ Import from `@m3ui-vue/m3ui-vue/map`.
6925
+
6926
+ 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.
6927
+
6928
+ ```ts
6929
+ osrmRouteProvider(options: OsrmRouteOptions = {}): MapRouteProvider
6930
+ ```
6931
+
6287
6932
  ### useMap
6288
6933
 
6289
6934
  Import from `@m3ui-vue/m3ui-vue/map`.
@@ -6439,6 +7084,36 @@ Sets the pdf.js worker URL for every `usePdf`/`MPdfViewer` of the app (see `PdfO
6439
7084
  setPdfWorker(src: string): void
6440
7085
  ```
6441
7086
 
7087
+ ### signPdf
7088
+
7089
+ Import from `@m3ui-vue/m3ui-vue/pdf`.
7090
+
7091
+ Writes the filled fields into a copy of the PDF and returns its bytes: signatures and initials as the images drawn, text, dates and ticks drawn the same way. A visual signature (what an e-signature flow shows and prints), not a cryptographic one: for a certificate-based digital signature (PAdES), sign the result on your server. Needs the `pdf-lib` package
7092
+
7093
+ ```ts
7094
+ signPdf(pdf: ArrayBuffer | Uint8Array, fields: PdfSignField[], options: SignPdfOptions = {}): Promise<Uint8Array<ArrayBufferLike>>
7095
+ ```
7096
+
7097
+ ### shownToUser
7098
+
7099
+ Import from `@m3ui-vue/m3ui-vue/pdf`.
7100
+
7101
+ A rectangle on the page as shown (top-left origin, y down, in points) to PDF user space (bottom-left origin): where to anchor something drawn upright on screen, and the rotation to draw it with, for a page with its own `/Rotate` and a crop box. `box` is the crop box, `rotate` the page's rotation in degrees
7102
+
7103
+ ```ts
7104
+ shownToUser(r: Rect, box: Rect, rotate: number): { x: number; y: number; rotate: number; }
7105
+ ```
7106
+
7107
+ ### fieldMissing
7108
+
7109
+ Import from `@m3ui-vue/m3ui-vue/pdf`.
7110
+
7111
+ Whether a field needs filling and is empty
7112
+
7113
+ ```ts
7114
+ fieldMissing(f: PdfSignField): boolean
7115
+ ```
7116
+
6442
7117
  ### useFlow
6443
7118
 
6444
7119
  Import from `@m3ui-vue/m3ui-vue/flow`.
@@ -6923,6 +7598,30 @@ Import from `@m3ui-vue/m3ui-vue/draw`.
6923
7598
  drawId(): string
6924
7599
  ```
6925
7600
 
7601
+ ### isValueField
7602
+
7603
+ ```ts
7604
+
7605
+ ```
7606
+
7607
+ ### fieldVisible
7608
+
7609
+ ```ts
7610
+
7611
+ ```
7612
+
7613
+ ### emptyValue
7614
+
7615
+ ```ts
7616
+
7617
+ ```
7618
+
7619
+ ### normalizeOptions
7620
+
7621
+ ```ts
7622
+
7623
+ ```
7624
+
6926
7625
  ### shapeNames
6927
7626
 
6928
7627
  ```ts
@@ -7226,6 +7925,166 @@ useDebounce(fn: (...args: any[]) => void, ms: number): {
7226
7925
  }
7227
7926
  ```
7228
7927
 
7928
+ ### required
7929
+
7930
+ 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
7931
+
7932
+ ```ts
7933
+ required(message?: string): ValidationRule<any>
7934
+ ```
7935
+
7936
+ ### email
7937
+
7938
+ An email address (the browser's own rule, plus a dot in the domain)
7939
+
7940
+ ```ts
7941
+ email(message?: string): ValidationRule<any>
7942
+ ```
7943
+
7944
+ ### url
7945
+
7946
+ An absolute http(s) URL
7947
+
7948
+ ```ts
7949
+ url(message?: string): ValidationRule<any>
7950
+ ```
7951
+
7952
+ ### minLength
7953
+
7954
+ At least `min` characters (strings) or items (arrays)
7955
+
7956
+ ```ts
7957
+ minLength(min: number, message?: string): ValidationRule<any>
7958
+ ```
7959
+
7960
+ ### maxLength
7961
+
7962
+ At most `max` characters (strings) or items (arrays)
7963
+
7964
+ ```ts
7965
+ maxLength(max: number, message?: string): ValidationRule<any>
7966
+ ```
7967
+
7968
+ ### min
7969
+
7970
+ A number (or numeric string) of at least `min`
7971
+
7972
+ ```ts
7973
+ min(min: number, message?: string): ValidationRule<any>
7974
+ ```
7975
+
7976
+ ### max
7977
+
7978
+ A number (or numeric string) of at most `max`
7979
+
7980
+ ```ts
7981
+ max(max: number, message?: string): ValidationRule<any>
7982
+ ```
7983
+
7984
+ ### pattern
7985
+
7986
+ Matches a regular expression
7987
+
7988
+ ```ts
7989
+ pattern(re: RegExp, message?: string): ValidationRule<any>
7990
+ ```
7991
+
7992
+ ### sameAs
7993
+
7994
+ Equals another value: the name of a field in the same `MForm` (e.g. 'password' for a confirmation field), or a getter
7995
+
7996
+ ```ts
7997
+ sameAs(other: string | (() => unknown), message?: string): ValidationRule<any>
7998
+ ```
7999
+
8000
+ ### isEmpty
8001
+
8002
+ Whether a value counts as "not filled in": null/undefined, blank string, empty array, `false` (an unticked checkbox)
8003
+
8004
+ ```ts
8005
+ isEmpty(value: unknown): boolean
8006
+ ```
8007
+
8008
+ ### evaluateFormula
8009
+
8010
+ Works out a formula (without its leading `=`). Errors come back as a `FormulaError`, never thrown
8011
+
8012
+ ```ts
8013
+ evaluateFormula(formula: string, ctx: FormulaContext): SpreadsheetValue
8014
+ ```
8015
+
8016
+ ### createSheetEvaluator
8017
+
8018
+ Evaluates a whole sheet lazily: `value(row, col)` works a cell out the first time it's asked for (and whatever it reads), then remembers it. Circular references come out as `#CIRC!`. Make a new one when the cells change.
8019
+
8020
+ ```ts
8021
+ createSheetEvaluator(cells: SpreadsheetCell[][], options: { functions?: Record<string, SpreadsheetFunction>; rows?: number; cols?: number } = {}): {
8022
+ value: (row: number, col: number) => SpreadsheetValue
8023
+ }
8024
+ ```
8025
+
8026
+ ### shiftFormula
8027
+
8028
+ The formula moved by some rows and columns, as when it's copied or filled into another cell: relative references move, `$`-locked parts stay. A reference pushed off the sheet becomes `#REF!`.
8029
+
8030
+ ```ts
8031
+ shiftFormula(formula: string, dRow: number, dCol: number): string
8032
+ ```
8033
+
8034
+ ### columnName
8035
+
8036
+ `0 → A`, `25 → Z`, `26 → AA`
8037
+
8038
+ ```ts
8039
+ columnName(index: number): string
8040
+ ```
8041
+
8042
+ ### columnIndex
8043
+
8044
+ `A → 0`, `AA → 26`
8045
+
8046
+ ```ts
8047
+ columnIndex(name: string): number
8048
+ ```
8049
+
8050
+ ### cellName
8051
+
8052
+ `{ row: 0, col: 0 } → A1`
8053
+
8054
+ ```ts
8055
+ cellName(row: number, col: number): string
8056
+ ```
8057
+
8058
+ ### parseCellName
8059
+
8060
+ `B3 → { row: 2, col: 1 }`, or null if it isn't a reference
8061
+
8062
+ ```ts
8063
+ parseCellName(ref: string): { row: number; col: number; } | null
8064
+ ```
8065
+
8066
+ ### spreadsheetFunctions
8067
+
8068
+ ```ts
8069
+ spreadsheetFunctions: Record<string, SpreadsheetFunction>
8070
+ ```
8071
+
8072
+ ### FormulaError
8073
+
8074
+ A formula error, shown in the cell as its code (`#DIV/0!`, `#REF!`…)
8075
+
8076
+ ```ts
8077
+ FormulaError: typeof FormulaError
8078
+ ```
8079
+
8080
+ ### formatNumber
8081
+
8082
+ A number as a cell shows it: no float noise (`0.1 + 0.2` shows 0.3)
8083
+
8084
+ ```ts
8085
+ formatNumber(n: number): string
8086
+ ```
8087
+
7229
8088
  ### usePageProgress
7230
8089
 
7231
8090
  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 +8546,41 @@ FILTER_OPERATORS: Record<FilterFieldType, FilterOperator[]>
7687
8546
 
7688
8547
  ## Types
7689
8548
 
8549
+ ```ts
8550
+ /**
8551
+ * Where `MMapRoute` gets its road from when you give it `stops` but no `path`: any function from waypoints to a route.
8552
+ * `osrmRouteProvider()` ships; GraphHopper, Valhalla, OpenRouteService, Mapbox Directions or your own backend fit
8553
+ * the same shape. Gets an `AbortSignal`: a newer request cancels the older one.
8554
+ */
8555
+ export type MapRouteProvider = (waypoints: LngLat[], options: { signal?: AbortSignal }) => Promise<MapRouteResult>
8556
+ ```
8557
+
8558
+ ```ts
8559
+ /** A route between waypoints, as a routing service returns it. */
8560
+ export interface MapRouteResult {
8561
+ /** The road to follow, `[lng, lat][]`: the streets' real shape (curves, roundabouts), one-way streets respected */
8562
+ path: LngLat[]
8563
+ /** Length in meters */
8564
+ distance: number
8565
+ /** Expected travel time in seconds */
8566
+ duration: number
8567
+ }
8568
+ ```
8569
+
8570
+ ```ts
8571
+ export interface OsrmRouteOptions {
8572
+ /**
8573
+ * The OSRM server. Defaults to the project's public demo server, which is meant for light use only (see its usage
8574
+ * policy): run your own (`osrm-backend` in Docker) or use a hosted one in production
8575
+ */
8576
+ url?: string
8577
+ /** The routing profile in the URL: `driving` (the demo server has only this one), `cycling`, `walking`, or your server's own */
8578
+ profile?: string
8579
+ /** More query parameters for OSRM (`exclude=toll`, `alternatives`…) */
8580
+ params?: Record<string, string>
8581
+ }
8582
+ ```
8583
+
7690
8584
  ```ts
7691
8585
  /** What `MMap` provides to everything inside it. */
7692
8586
  export interface MapContext {
@@ -8063,6 +8957,41 @@ export interface PdfState {
8063
8957
  export type PdfjsModule = typeof import('pdfjs-dist')
8064
8958
  ```
8065
8959
 
8960
+ ```ts
8961
+ // Writing filled signature fields into a PDF (MPdfSigner). Uses pdf-lib, an optional peer dependency loaded only
8962
+ // when a document is saved
8963
+
8964
+ /** A field placed on a page to sign or fill */
8965
+ export interface PdfSignField {
8966
+ id: string
8967
+ type: 'signature' | 'initials' | 'name' | 'date' | 'text' | 'checkbox'
8968
+ /** 1-based page */
8969
+ page: number
8970
+ /** Where it is, as fractions (0–1) of the page as shown (its own rotation included): left, top, width, height */
8971
+ x: number
8972
+ y: number
8973
+ width: number
8974
+ height: number
8975
+ /** What it asks for (shown in the empty field, and to screen readers) */
8976
+ label?: string
8977
+ /** Must be filled before the document is complete. Default true for signature fields */
8978
+ required?: boolean
8979
+ /** Who fills it, for documents several people sign; `signer` on MPdfSigner picks whose fields are active */
8980
+ signer?: string
8981
+ /** What it holds: a PNG data URL for a signature or initials, text otherwise, `'true'` for a ticked checkbox */
8982
+ value?: string
8983
+ }
8984
+ ```
8985
+
8986
+ ```ts
8987
+ export interface SignPdfOptions {
8988
+ /** The font for text fields (a CSS font list). Default the page's sans-serif */
8989
+ font?: string
8990
+ /** Written into the document's metadata */
8991
+ producer?: string
8992
+ }
8993
+ ```
8994
+
8066
8995
  ```ts
8067
8996
  /** What a `circle` node shows */
8068
8997
  export interface FlowCircleData {
@@ -9434,6 +10363,172 @@ export interface M3Locale {
9434
10363
  mapPressEnterToSearch: string
9435
10364
  mapSearching: string
9436
10365
  mapNoPlaces: string
10366
+ /** MMapRoute: a stop's name when it has no label (followed by its number) */
10367
+ mapRouteStop: string
10368
+ /** MMapRoute: the vehicle marker's accessible name */
10369
+ mapRouteVehicle: string
10370
+ /** MSpreadsheet: the grid's accessible name */
10371
+ spreadsheet: string
10372
+ /** MSpreadsheet: the formula bar's input */
10373
+ spreadsheetFormula: string
10374
+ /** MSpreadsheet: the box showing the selected cell's name (B3, A1:C4) */
10375
+ spreadsheetName: string
10376
+ /** MFormRenderer: the submit button */
10377
+ formSubmit: string
10378
+ /** MFormBuilder: the editing view */
10379
+ formBuilderEdit: string
10380
+ /** MFormBuilder: the form as it will look */
10381
+ formBuilderPreview: string
10382
+ /** MFormBuilder: the schema as JSON */
10383
+ formBuilderJson: string
10384
+ /** MFormBuilder: the field palette */
10385
+ formBuilderAddField: string
10386
+ /** MFormBuilder: an empty form */
10387
+ formBuilderEmpty: string
10388
+ /** MFormBuilder: the form settings */
10389
+ formBuilderForm: string
10390
+ /** MFormBuilder */
10391
+ formBuilderTitle: string
10392
+ /** MFormBuilder */
10393
+ formBuilderDescription: string
10394
+ /** MFormBuilder */
10395
+ formBuilderSubmitLabel: string
10396
+ /** MFormBuilder */
10397
+ formBuilderLabel: string
10398
+ /** MFormBuilder: the value key */
10399
+ formBuilderName: string
10400
+ /** MFormBuilder */
10401
+ formBuilderPlaceholder: string
10402
+ /** MFormBuilder */
10403
+ formBuilderHint: string
10404
+ /** MFormBuilder */
10405
+ formBuilderRequired: string
10406
+ /** MFormBuilder */
10407
+ formBuilderWidth: string
10408
+ /** MFormBuilder */
10409
+ formBuilderWidthFull: string
10410
+ /** MFormBuilder */
10411
+ formBuilderWidthHalf: string
10412
+ /** MFormBuilder */
10413
+ formBuilderWidthThird: string
10414
+ /** MFormBuilder */
10415
+ formBuilderWidthTwoThirds: string
10416
+ /** MFormBuilder */
10417
+ formBuilderOptions: string
10418
+ /** MFormBuilder */
10419
+ formBuilderMin: string
10420
+ /** MFormBuilder */
10421
+ formBuilderMax: string
10422
+ /** MFormBuilder */
10423
+ formBuilderStep: string
10424
+ /** MFormBuilder */
10425
+ formBuilderMinLength: string
10426
+ /** MFormBuilder */
10427
+ formBuilderMaxLength: string
10428
+ /** MFormBuilder */
10429
+ formBuilderPattern: string
10430
+ /** MFormBuilder */
10431
+ formBuilderPatternMessage: string
10432
+ /** MFormBuilder: textarea lines */
10433
+ formBuilderRows: string
10434
+ /** MFormBuilder: conditional field */
10435
+ formBuilderShowWhen: string
10436
+ /** MFormBuilder: no condition */
10437
+ formBuilderAlways: string
10438
+ /** MFormBuilder: the condition value */
10439
+ formBuilderEquals: string
10440
+ /** MFormBuilder */
10441
+ formBuilderDuplicate: string
10442
+ /** MFormBuilder */
10443
+ formBuilderDelete: string
10444
+ /** MFormBuilder: copy the JSON */
10445
+ formBuilderCopy: string
10446
+ /** MFormBuilder */
10447
+ formBuilderCopied: string
10448
+ /** MFormBuilder: what the preview submitted */
10449
+ formBuilderSubmitted: string
10450
+ /** MFormBuilder: the inspector with nothing selected */
10451
+ formBuilderSelectField: string
10452
+ /** MFormBuilder: field type */
10453
+ formFieldText: string
10454
+ /** MFormBuilder: field type */
10455
+ formFieldEmail: string
10456
+ /** MFormBuilder: field type */
10457
+ formFieldPassword: string
10458
+ /** MFormBuilder: field type */
10459
+ formFieldTel: string
10460
+ /** MFormBuilder: field type */
10461
+ formFieldUrl: string
10462
+ /** MFormBuilder: field type */
10463
+ formFieldTextarea: string
10464
+ /** MFormBuilder: field type */
10465
+ formFieldNumber: string
10466
+ /** MFormBuilder: field type */
10467
+ formFieldSelect: string
10468
+ /** MFormBuilder: field type */
10469
+ formFieldAutocomplete: string
10470
+ /** MFormBuilder: field type */
10471
+ formFieldRadio: string
10472
+ /** MFormBuilder: field type */
10473
+ formFieldCheckbox: string
10474
+ /** MFormBuilder: field type */
10475
+ formFieldSwitch: string
10476
+ /** MFormBuilder: field type */
10477
+ formFieldDate: string
10478
+ /** MFormBuilder: field type */
10479
+ formFieldTime: string
10480
+ /** MFormBuilder: field type */
10481
+ formFieldSlider: string
10482
+ /** MFormBuilder: field type */
10483
+ formFieldRating: string
10484
+ /** MFormBuilder: field type */
10485
+ formFieldPhone: string
10486
+ /** MFormBuilder: field type */
10487
+ formFieldHeading: string
10488
+ /** MFormBuilder: field type */
10489
+ formFieldDivider: string
10490
+ /** MPdfSigner: field type */
10491
+ pdfSignSignature: string
10492
+ /** MPdfSigner: field type */
10493
+ pdfSignInitials: string
10494
+ /** MPdfSigner: field type */
10495
+ pdfSignName: string
10496
+ /** MPdfSigner: field type */
10497
+ pdfSignDate: string
10498
+ /** MPdfSigner: field type */
10499
+ pdfSignText: string
10500
+ /** MPdfSigner: field type */
10501
+ pdfSignCheckbox: string
10502
+ /** MPdfSigner: an empty signature field */
10503
+ pdfSignHere: string
10504
+ /** MPdfSigner: go to the next empty field */
10505
+ pdfSignNext: string
10506
+ /** MPdfSigner: done signing */
10507
+ pdfSignFinish: string
10508
+ /** MPdfSigner: {done} and {total} are replaced */
10509
+ pdfSignProgress: string
10510
+ /** MPdfSigner: draw a signature */
10511
+ pdfSignDraw: string
10512
+ /** MPdfSigner: type a signature */
10513
+ pdfSignTypeIt: string
10514
+ /** MPdfSigner: use this signature */
10515
+ pdfSignAdopt: string
10516
+ /** MPdfSigner: the field palette */
10517
+ pdfSignAddField: string
10518
+ /** MPdfSigner */
10519
+ pdfSignRequired: string
10520
+ /** MPdfSigner */
10521
+ pdfSignDelete: string
10522
+ /** MPdfSigner: every field is filled */
10523
+ pdfSignComplete: string
10524
+ // MTrackingTimeline ({time} is a clock time)
10525
+ trackingArrives: string
10526
+ trackingArrivingNow: string
10527
+ trackingDelivered: string
10528
+ trackingDelayed: string
10529
+ trackingCanceled: string
10530
+ trackingShowDetails: string
10531
+ trackingHideDetails: string
9437
10532
  filterMatchAll: string
9438
10533
  filterMatchAny: string
9439
10534
  filterAddCondition: string
@@ -9765,6 +10860,19 @@ export interface M3Locale {
9765
10860
  cardInvalidNumber: string
9766
10861
  cardInvalidExpiry: string
9767
10862
  cardInvalidCvc: string
10863
+ // Form validation (MForm, field `rules`)
10864
+ validationRequired: string
10865
+ validationInvalid: string
10866
+ validationEmail: string
10867
+ validationUrl: string
10868
+ validationMinLength: string
10869
+ validationMaxLength: string
10870
+ validationMinItems: string
10871
+ validationMaxItems: string
10872
+ validationMin: string
10873
+ validationMax: string
10874
+ validationPattern: string
10875
+ validationSameAs: string
9768
10876
  // MPosKeypad
9769
10877
  keypadDelete: string
9770
10878
  keypadClear: string
@@ -10011,6 +11119,94 @@ export interface NotificationOptions {
10011
11119
  }
10012
11120
  ```
10013
11121
 
11122
+ ```ts
11123
+ /** A function `(value, ctx) => true | 'message'` (may be async), or a Standard Schema (zod, valibot…) */
11124
+ export type ValidationRule<T = any> =
11125
+ | ((value: T, ctx: ValidationContext) => ValidationResult | Promise<ValidationResult>)
11126
+ | StandardSchemaV1
11127
+ ```
11128
+
11129
+ ```ts
11130
+ /**
11131
+ * `true`, `undefined` or `null` = valid; a string = invalid with that message; `false` = invalid with the
11132
+ * locale's generic `validationInvalid` message
11133
+ */
11134
+ export type ValidationResult = boolean | string | null | undefined
11135
+ ```
11136
+
11137
+ ```ts
11138
+ /** What a rule receives besides the value */
11139
+ export interface ValidationContext {
11140
+ /** The active locale, for messages */
11141
+ locale: M3Locale
11142
+ /** The values of every named field of the surrounding `MForm` (empty outside one) */
11143
+ values: Record<string, unknown>
11144
+ }
11145
+ ```
11146
+
11147
+ ```ts
11148
+ /** When a field checks its rules and shows the result */
11149
+ export type ValidateOn = 'blur' | 'input' | 'submit'
11150
+ ```
11151
+
11152
+ ```ts
11153
+ /**
11154
+ * The Standard Schema interface (https://standardschema.dev), implemented by zod (3.24+), valibot (1.0+),
11155
+ * arktype, yup (1.7+) and others. A copy of the spec's types, so the lib doesn't depend on any of them:
11156
+ * pass a schema straight to a field's `rules` or to `MForm`'s `schema`.
11157
+ */
11158
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
11159
+ readonly '~standard': {
11160
+ readonly version: 1
11161
+ readonly vendor: string
11162
+ readonly validate: (value: unknown) => StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>
11163
+ readonly types?: { readonly input: Input; readonly output: Output }
11164
+ }
11165
+ }
11166
+ ```
11167
+
11168
+ ```ts
11169
+ export interface StandardSchemaIssue {
11170
+ readonly message: string
11171
+ readonly path?: ReadonlyArray<PropertyKey | { readonly key: PropertyKey }>
11172
+ }
11173
+ ```
11174
+
11175
+ ```ts
11176
+ export type StandardSchemaResult<Output> =
11177
+ | { readonly value: Output; readonly issues?: undefined }
11178
+ | { readonly issues: ReadonlyArray<StandardSchemaIssue> }
11179
+ ```
11180
+
11181
+ ```ts
11182
+ // Spreadsheet formulas for MSpreadsheet: A1 references, ranges, the usual operators and functions. Pure functions,
11183
+ // no Vue: also usable on their own (to evaluate a saved sheet on the server, say)
11184
+
11185
+ /** What a cell holds: what was typed. A string starting with `=` is a formula */
11186
+ export type SpreadsheetCell = string | number | boolean | null
11187
+ ```
11188
+
11189
+ ```ts
11190
+ /** What a cell shows once its formula is worked out */
11191
+ export type SpreadsheetValue = number | string | boolean | null | FormulaError
11192
+ ```
11193
+
11194
+ ```ts
11195
+ /** The functions a formula can call. Add your own with `functions` on MSpreadsheet */
11196
+ export type SpreadsheetFunction = (args: Arg[]) => Val
11197
+ ```
11198
+
11199
+ ```ts
11200
+ /** Where a formula reads cells from: their values (formulas already worked out) */
11201
+ export interface FormulaContext {
11202
+ get(row: number, col: number): Val
11203
+ functions?: Record<string, SpreadsheetFunction>
11204
+ /** Rows and columns the sheet has: a reference outside them is `#REF!` */
11205
+ rows?: number
11206
+ cols?: number
11207
+ }
11208
+ ```
11209
+
10014
11210
  ```ts
10015
11211
  // Material 3's motion tokens for your own animations, from androidx's MotionTokens, StandardMotionTokens and
10016
11212
  // ExpressiveMotionTokens. The same easings and durations are CSS variables in theme.css (`--ease-*`, which
@@ -10567,7 +11763,7 @@ export interface FilterGroup {
10567
11763
  `M3Locale` keys (pass a partial object to `createM3UI({ locale })`; presets from `@m3ui-vue/m3ui-vue/locales`:
10568
11764
  `esLocale`, `frLocale`, `ptLocale`, `deLocale`, `jaLocale`, `zhLocale`, `koLocale`):
10569
11765
 
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
11766
+ 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, spreadsheet, spreadsheetFormula, spreadsheetName, formSubmit, formBuilderEdit, formBuilderPreview, formBuilderJson, formBuilderAddField, formBuilderEmpty, formBuilderForm, formBuilderTitle, formBuilderDescription, formBuilderSubmitLabel, formBuilderLabel, formBuilderName, formBuilderPlaceholder, formBuilderHint, formBuilderRequired, formBuilderWidth, formBuilderWidthFull, formBuilderWidthHalf, formBuilderWidthThird, formBuilderWidthTwoThirds, formBuilderOptions, formBuilderMin, formBuilderMax, formBuilderStep, formBuilderMinLength, formBuilderMaxLength, formBuilderPattern, formBuilderPatternMessage, formBuilderRows, formBuilderShowWhen, formBuilderAlways, formBuilderEquals, formBuilderDuplicate, formBuilderDelete, formBuilderCopy, formBuilderCopied, formBuilderSubmitted, formBuilderSelectField, formFieldText, formFieldEmail, formFieldPassword, formFieldTel, formFieldUrl, formFieldTextarea, formFieldNumber, formFieldSelect, formFieldAutocomplete, formFieldRadio, formFieldCheckbox, formFieldSwitch, formFieldDate, formFieldTime, formFieldSlider, formFieldRating, formFieldPhone, formFieldHeading, formFieldDivider, pdfSignSignature, pdfSignInitials, pdfSignName, pdfSignDate, pdfSignText, pdfSignCheckbox, pdfSignHere, pdfSignNext, pdfSignFinish, pdfSignProgress, pdfSignDraw, pdfSignTypeIt, pdfSignAdopt, pdfSignAddField, pdfSignRequired, pdfSignDelete, pdfSignComplete, 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
11767
 
10572
11768
  ## Theme tokens
10573
11769