@m3ui-vue/m3ui-vue 0.8.8 → 0.9.1

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 (375) hide show
  1. package/README.md +25 -5
  2. package/dist/API.md +3661 -0
  3. package/dist/MIcon-CaEooCmZ.js.map +1 -1
  4. package/dist/{MMenuItem-5xojJYAL.js → MTextField-pJU1vFaR.js} +374 -364
  5. package/dist/MTextField-pJU1vFaR.js.map +1 -0
  6. package/dist/api.json +1 -0
  7. package/dist/barcode.js +9 -11
  8. package/dist/barcode.js.map +1 -1
  9. package/dist/chart.js.map +1 -1
  10. package/dist/code-editor.js +2 -2
  11. package/dist/code-editor.js.map +1 -1
  12. package/dist/components/MAbsolute.vue.d.ts +12 -0
  13. package/dist/components/MAlert.vue.d.ts +4 -0
  14. package/dist/components/MAppBar.vue.d.ts +12 -0
  15. package/dist/components/MAppLayout.vue.d.ts +2 -0
  16. package/dist/components/MAspectRatio.vue.d.ts +1 -0
  17. package/dist/components/MAutocomplete.vue.d.ts +18 -0
  18. package/dist/components/MAvatar.vue.d.ts +3 -0
  19. package/dist/components/MBadge.vue.d.ts +6 -0
  20. package/dist/components/MBar.vue.d.ts +5 -0
  21. package/dist/components/MBarcode.vue.d.ts +9 -0
  22. package/dist/components/MBottomSheet.vue.d.ts +3 -0
  23. package/dist/components/MBox.vue.d.ts +6 -0
  24. package/dist/components/MBreadcrumbs.vue.d.ts +2 -0
  25. package/dist/components/MButton.vue.d.ts +14 -4
  26. package/dist/components/MButtonGroup.vue.d.ts +7 -0
  27. package/dist/components/MCalendar.vue.d.ts +8 -0
  28. package/dist/components/MCard.vue.d.ts +17 -0
  29. package/dist/components/MCarousel.vue.d.ts +61 -36
  30. package/dist/components/MCenter.vue.d.ts +1 -0
  31. package/dist/components/MChart.vue.d.ts +7 -0
  32. package/dist/components/MChatBubble.vue.d.ts +10 -0
  33. package/dist/components/MCheckbox.vue.d.ts +5 -0
  34. package/dist/components/MChip.vue.d.ts +9 -0
  35. package/dist/components/MCircleProgressBar.vue.d.ts +7 -0
  36. package/dist/components/MCodeEditor.vue.d.ts +9 -0
  37. package/dist/components/MColorPicker.vue.d.ts +8 -0
  38. package/dist/components/MColorPickerModal.vue.d.ts +4 -0
  39. package/dist/components/MCommandPalette.vue.d.ts +8 -0
  40. package/dist/components/MConfirmDialog.vue.d.ts +7 -0
  41. package/dist/components/MContainer.vue.d.ts +4 -0
  42. package/dist/components/MContextMenu.vue.d.ts +3 -6
  43. package/dist/components/MCopyButton.vue.d.ts +10 -0
  44. package/dist/components/MDataTable.vue.d.ts +33 -12
  45. package/dist/components/MDatePicker.vue.d.ts +16 -0
  46. package/dist/components/MDatePickerModal.vue.d.ts +9 -0
  47. package/dist/components/MDateRangePicker.vue.d.ts +18 -0
  48. package/dist/components/MDateRangePickerModal.vue.d.ts +9 -0
  49. package/dist/components/MDialog.vue.d.ts +10 -6
  50. package/dist/components/MDivider.vue.d.ts +6 -0
  51. package/dist/components/MDragDropList.vue.d.ts +6 -0
  52. package/dist/components/MEmoji.vue.d.ts +6 -0
  53. package/dist/components/MEmojiButton.vue.d.ts +5 -0
  54. package/dist/components/MEmojiSelector.vue.d.ts +21 -5
  55. package/dist/components/MEmptyState.vue.d.ts +4 -0
  56. package/dist/components/MExpansionPanel.vue.d.ts +9 -0
  57. package/dist/components/MExportButton.vue.d.ts +8 -0
  58. package/dist/components/MFab.vue.d.ts +9 -0
  59. package/dist/components/MFabMenu.vue.d.ts +15 -1
  60. package/dist/components/MFileUpload.vue.d.ts +8 -0
  61. package/dist/components/MFixed.vue.d.ts +10 -0
  62. package/dist/components/MFlex.vue.d.ts +7 -1
  63. package/dist/components/MFooter.vue.d.ts +11 -0
  64. package/dist/components/MFullscreen.vue.d.ts +2 -0
  65. package/dist/components/MGrid.vue.d.ts +7 -0
  66. package/dist/components/MHotkeys.vue.d.ts +4 -0
  67. package/dist/components/MIcon.vue.d.ts +2 -0
  68. package/dist/components/MIconButton.vue.d.ts +10 -0
  69. package/dist/components/MInfiniteScroll.vue.d.ts +6 -0
  70. package/dist/components/MJsonEditor.vue.d.ts +8 -0
  71. package/dist/components/MJsonViewer.vue.d.ts +4 -0
  72. package/dist/components/MKanban.vue.d.ts +2 -0
  73. package/dist/components/MKbd.vue.d.ts +2 -0
  74. package/dist/components/MLightbox.vue.d.ts +19 -5
  75. package/dist/components/MList.vue.d.ts +7 -0
  76. package/dist/components/MListItem.vue.d.ts +24 -0
  77. package/dist/components/MListSubheader.vue.d.ts +6 -0
  78. package/dist/components/MLoadingIndicator.vue.d.ts +10 -0
  79. package/dist/components/MLoadingOverlay.vue.d.ts +5 -0
  80. package/dist/components/MMarkdown.vue.d.ts +3 -0
  81. package/dist/components/MMaskField.vue.d.ts +15 -0
  82. package/dist/components/MMasonry.vue.d.ts +5 -0
  83. package/dist/components/MMenu.vue.d.ts +3 -6
  84. package/dist/components/MMenuDivider.vue.d.ts +4 -0
  85. package/dist/components/MMenuItem.vue.d.ts +5 -0
  86. package/dist/components/MMultiAutocomplete.vue.d.ts +20 -0
  87. package/dist/components/MMultiSelect.vue.d.ts +21 -0
  88. package/dist/components/MNavigationBar.vue.d.ts +2 -0
  89. package/dist/components/MNavigationDrawer.vue.d.ts +11 -0
  90. package/dist/components/MNavigationRail.vue.d.ts +9 -6
  91. package/dist/components/MNavigationSuite.vue.d.ts +5 -3
  92. package/dist/components/MNumberField.vue.d.ts +17 -0
  93. package/dist/components/MOverlay.vue.d.ts +3 -0
  94. package/dist/components/MPageProgress.vue.d.ts +3 -0
  95. package/dist/components/MPagination.vue.d.ts +3 -0
  96. package/dist/components/MPasswordMeter.vue.d.ts +1 -0
  97. package/dist/components/MPinInput.vue.d.ts +11 -0
  98. package/dist/components/MProgressBar.vue.d.ts +6 -0
  99. package/dist/components/MPullToRefresh.vue.d.ts +8 -0
  100. package/dist/components/MQRCode.vue.d.ts +6 -0
  101. package/dist/components/MRadio.vue.d.ts +5 -0
  102. package/dist/components/MRadioGroup.vue.d.ts +6 -0
  103. package/dist/components/MRating.vue.d.ts +11 -0
  104. package/dist/components/MRelativeTime.vue.d.ts +1 -0
  105. package/dist/components/MResponsive.vue.d.ts +3 -0
  106. package/dist/components/MResult.vue.d.ts +6 -0
  107. package/dist/components/MRichTextEditor.vue.d.ts +8 -0
  108. package/dist/components/MScheduler.vue.d.ts +48 -1
  109. package/dist/components/MScrollable.vue.d.ts +3 -0
  110. package/dist/components/MSearchBar.vue.d.ts +6 -0
  111. package/dist/components/MSection.vue.d.ts +5 -0
  112. package/dist/components/MSegmentedButton.vue.d.ts +5 -0
  113. package/dist/components/MSelect.vue.d.ts +17 -0
  114. package/dist/components/MShader.vue.d.ts +1 -0
  115. package/dist/components/MShape.vue.d.ts +1 -1
  116. package/dist/components/MShortNavigationBar.vue.d.ts +8 -9
  117. package/dist/components/MSideSheet.vue.d.ts +3 -0
  118. package/dist/components/MSignaturePad.vue.d.ts +7 -0
  119. package/dist/components/MSimpleCarousel.vue.d.ts +12 -2
  120. package/dist/components/MSkeleton.vue.d.ts +8 -0
  121. package/dist/components/MSlider.vue.d.ts +15 -1
  122. package/dist/components/MSnackbar.vue.d.ts +1 -0
  123. package/dist/components/MSpinner.vue.d.ts +6 -0
  124. package/dist/components/MSplitButton.vue.d.ts +7 -0
  125. package/dist/components/MSplitter.vue.d.ts +4 -0
  126. package/dist/components/MSpotlightSearch.vue.d.ts +18 -0
  127. package/dist/components/MStack.vue.d.ts +8 -1
  128. package/dist/components/MStatCard.vue.d.ts +7 -0
  129. package/dist/components/MStepper.vue.d.ts +7 -0
  130. package/dist/components/MSticky.vue.d.ts +2 -0
  131. package/dist/components/MSubtitle.vue.d.ts +4 -0
  132. package/dist/components/MSwitch.vue.d.ts +5 -6
  133. package/dist/components/MTable.vue.d.ts +17 -4
  134. package/dist/components/MTabs.vue.d.ts +6 -0
  135. package/dist/components/MTagInput.vue.d.ts +17 -0
  136. package/dist/components/MTerminal.vue.d.ts +4 -0
  137. package/dist/components/MText.vue.d.ts +10 -0
  138. package/dist/components/MTextField.vue.d.ts +18 -0
  139. package/dist/components/MTimePicker.vue.d.ts +10 -0
  140. package/dist/components/MTimePickerModal.vue.d.ts +5 -0
  141. package/dist/components/MTimeline.vue.d.ts +3 -0
  142. package/dist/components/MTitle.vue.d.ts +4 -0
  143. package/dist/components/MToggleButton.vue.d.ts +4 -0
  144. package/dist/components/MToolbar.vue.d.ts +6 -1
  145. package/dist/components/MTooltip.vue.d.ts +7 -0
  146. package/dist/components/MTopAppBar.vue.d.ts +8 -0
  147. package/dist/components/MTour.vue.d.ts +5 -0
  148. package/dist/components/MTransferList.vue.d.ts +11 -0
  149. package/dist/components/MTree.vue.d.ts +11 -0
  150. package/dist/components/MTreeTable.vue.d.ts +7 -0
  151. package/dist/components/MVirtualTable.vue.d.ts +6 -0
  152. package/dist/components/MWindow.vue.d.ts +33 -1
  153. package/dist/composables/_carouselStrategy.d.ts +101 -0
  154. package/dist/composables/useLocale.d.ts +21 -0
  155. package/dist/data/emoji-names/emoji-names-de.d.ts +2 -0
  156. package/dist/data/emoji-names/emoji-names-en.d.ts +2 -0
  157. package/dist/data/emoji-names/emoji-names-es.d.ts +2 -0
  158. package/dist/data/emoji-names/emoji-names-fr.d.ts +2 -0
  159. package/dist/data/emoji-names/emoji-names-ja.d.ts +2 -0
  160. package/dist/data/emoji-names/emoji-names-ko.d.ts +2 -0
  161. package/dist/data/emoji-names/emoji-names-pt.d.ts +2 -0
  162. package/dist/data/emoji-names/emoji-names-zh.d.ts +2 -0
  163. package/dist/data/emojis.d.ts +7 -1
  164. package/dist/emoji-names-de-BphO5XpV.js +1877 -0
  165. package/dist/emoji-names-de-BphO5XpV.js.map +1 -0
  166. package/dist/emoji-names-en-9ZvMRvzi.js +1877 -0
  167. package/dist/emoji-names-en-9ZvMRvzi.js.map +1 -0
  168. package/dist/emoji-names-es-DvfWU3Pj.js +1877 -0
  169. package/dist/emoji-names-es-DvfWU3Pj.js.map +1 -0
  170. package/dist/emoji-names-fr-B-jhUlsP.js +1877 -0
  171. package/dist/emoji-names-fr-B-jhUlsP.js.map +1 -0
  172. package/dist/emoji-names-ja-l8cMFJo1.js +1877 -0
  173. package/dist/emoji-names-ja-l8cMFJo1.js.map +1 -0
  174. package/dist/emoji-names-ko-YP-o9G0c.js +1877 -0
  175. package/dist/emoji-names-ko-YP-o9G0c.js.map +1 -0
  176. package/dist/emoji-names-pt-DGj_Js4M.js +1877 -0
  177. package/dist/emoji-names-pt-DGj_Js4M.js.map +1 -0
  178. package/dist/emoji-names-zh-Dzecwtw_.js +1877 -0
  179. package/dist/emoji-names-zh-Dzecwtw_.js.map +1 -0
  180. package/dist/index.d.ts +2 -2
  181. package/dist/locales/index.js +140 -7
  182. package/dist/locales/index.js.map +1 -1
  183. package/dist/m3ui-vue.css +1 -1
  184. package/dist/m3ui.js +6642 -5160
  185. package/dist/m3ui.js.map +1 -1
  186. package/dist/markdown.js +1 -1
  187. package/dist/markdown.js.map +1 -1
  188. package/dist/plugin.d.ts +6 -0
  189. package/dist/qrcode.js.map +1 -1
  190. package/dist/rich-text-editor.js +10 -10
  191. package/dist/rich-text-editor.js.map +1 -1
  192. package/dist/styles.css +1 -1
  193. package/dist/terminal.js +34 -27
  194. package/dist/terminal.js.map +1 -1
  195. package/dist/{useLocale-D3ZWZ8jY.js → useLocale-Drihe5G2.js} +33 -11
  196. package/dist/useLocale-Drihe5G2.js.map +1 -0
  197. package/package.json +4 -2
  198. package/src/__tests__/MCarousel.test.ts +183 -21
  199. package/src/__tests__/MDialog.test.ts +18 -0
  200. package/src/__tests__/MEmojiSelector.test.ts +138 -0
  201. package/src/__tests__/MHotkeys.test.ts +57 -0
  202. package/src/__tests__/MLightbox.test.ts +313 -5
  203. package/src/__tests__/MScheduler.test.ts +122 -0
  204. package/src/__tests__/MTerminal.test.ts +63 -0
  205. package/src/__tests__/attrsFallthrough.test.ts +65 -0
  206. package/src/__tests__/hostLocale.test.ts +57 -0
  207. package/src/__tests__/plugin.test.ts +28 -1
  208. package/src/components/MAbsolute.vue +18 -0
  209. package/src/components/MAlert.vue +12 -0
  210. package/src/components/MAppBar.vue +12 -0
  211. package/src/components/MAppLayout.vue +11 -0
  212. package/src/components/MAspectRatio.vue +6 -0
  213. package/src/components/MAutocomplete.vue +24 -0
  214. package/src/components/MAvatar.vue +12 -1
  215. package/src/components/MBadge.vue +11 -0
  216. package/src/components/MBar.vue +19 -0
  217. package/src/components/MBarcode.vue +18 -2
  218. package/src/components/MBottomSheet.vue +13 -1
  219. package/src/components/MBox.vue +12 -0
  220. package/src/components/MBreadcrumbs.vue +7 -0
  221. package/src/components/MButton.vue +22 -4
  222. package/src/components/MButtonGroup.vue +13 -0
  223. package/src/components/MCalendar.vue +14 -0
  224. package/src/components/MCard.vue +26 -0
  225. package/src/components/MCarousel.vue +542 -200
  226. package/src/components/MCenter.vue +6 -0
  227. package/src/components/MChart.vue +12 -0
  228. package/src/components/MChatBubble.vue +17 -0
  229. package/src/components/MCheckbox.vue +11 -0
  230. package/src/components/MChip.vue +17 -0
  231. package/src/components/MCircleProgressBar.vue +13 -0
  232. package/src/components/MCodeEditor.vue +18 -2
  233. package/src/components/MColorPicker.vue +13 -0
  234. package/src/components/MColorPickerModal.vue +12 -0
  235. package/src/components/MCommandPalette.vue +17 -1
  236. package/src/components/MConfirmDialog.vue +15 -0
  237. package/src/components/MContainer.vue +9 -0
  238. package/src/components/MContextMenu.vue +20 -7
  239. package/src/components/MCopyButton.vue +16 -0
  240. package/src/components/MDataTable.vue +58 -12
  241. package/src/components/MDatePicker.vue +21 -0
  242. package/src/components/MDatePickerModal.vue +17 -1
  243. package/src/components/MDateRangePicker.vue +23 -0
  244. package/src/components/MDateRangePickerModal.vue +17 -1
  245. package/src/components/MDialog.vue +43 -10
  246. package/src/components/MDivider.vue +6 -0
  247. package/src/components/MDragDropList.vue +18 -0
  248. package/src/components/MEmoji.vue +6 -0
  249. package/src/components/MEmojiButton.vue +11 -0
  250. package/src/components/MEmojiSelector.vue +486 -78
  251. package/src/components/MEmptyState.vue +9 -0
  252. package/src/components/MExpansionPanel.vue +17 -0
  253. package/src/components/MExportButton.vue +15 -0
  254. package/src/components/MFab.vue +20 -1
  255. package/src/components/MFabMenu.vue +20 -0
  256. package/src/components/MFileUpload.vue +19 -0
  257. package/src/components/MFixed.vue +16 -0
  258. package/src/components/MFlex.vue +11 -0
  259. package/src/components/MFooter.vue +11 -0
  260. package/src/components/MFullscreen.vue +8 -0
  261. package/src/components/MGrid.vue +12 -0
  262. package/src/components/MHotkeys.vue +20 -13
  263. package/src/components/MIcon.vue +10 -1
  264. package/src/components/MIconButton.vue +13 -0
  265. package/src/components/MInfiniteScroll.vue +16 -0
  266. package/src/components/MJsonEditor.vue +13 -0
  267. package/src/components/MJsonViewer.vue +7 -0
  268. package/src/components/MKanban.vue +18 -0
  269. package/src/components/MKbd.vue +6 -0
  270. package/src/components/MLightbox.vue +766 -268
  271. package/src/components/MList.vue +15 -0
  272. package/src/components/MListDetail.vue +11 -0
  273. package/src/components/MListItem.vue +37 -0
  274. package/src/components/MListSubheader.vue +6 -0
  275. package/src/components/MLoadingIndicator.vue +15 -0
  276. package/src/components/MLoadingOverlay.vue +18 -1
  277. package/src/components/MMarkdown.vue +7 -0
  278. package/src/components/MMaskField.vue +21 -0
  279. package/src/components/MMasonry.vue +11 -0
  280. package/src/components/MMenu.vue +19 -7
  281. package/src/components/MMenuDivider.vue +4 -0
  282. package/src/components/MMenuItem.vue +16 -0
  283. package/src/components/MMultiAutocomplete.vue +26 -0
  284. package/src/components/MMultiSelect.vue +27 -0
  285. package/src/components/MNavigationBar.vue +7 -0
  286. package/src/components/MNavigationDrawer.vue +30 -1
  287. package/src/components/MNavigationRail.vue +27 -6
  288. package/src/components/MNavigationSuite.vue +20 -3
  289. package/src/components/MNotificationHost.vue +3 -0
  290. package/src/components/MNumberField.vue +24 -0
  291. package/src/components/MOverlay.vue +11 -0
  292. package/src/components/MPageProgress.vue +7 -0
  293. package/src/components/MPagination.vue +15 -1
  294. package/src/components/MPasswordMeter.vue +7 -0
  295. package/src/components/MPinInput.vue +19 -0
  296. package/src/components/MProgressBar.vue +9 -0
  297. package/src/components/MPullToRefresh.vue +17 -0
  298. package/src/components/MQRCode.vue +12 -0
  299. package/src/components/MRadio.vue +11 -0
  300. package/src/components/MRadioGroup.vue +11 -0
  301. package/src/components/MRating.vue +19 -0
  302. package/src/components/MRelative.vue +8 -0
  303. package/src/components/MRelativeTime.vue +6 -0
  304. package/src/components/MResponsive.vue +9 -0
  305. package/src/components/MResult.vue +14 -0
  306. package/src/components/MRichTextEditor.vue +14 -0
  307. package/src/components/MScheduler.vue +303 -115
  308. package/src/components/MScrollable.vue +8 -0
  309. package/src/components/MSearchBar.vue +17 -0
  310. package/src/components/MSection.vue +13 -0
  311. package/src/components/MSegmentedButton.vue +10 -0
  312. package/src/components/MSelect.vue +22 -0
  313. package/src/components/MShader.vue +13 -0
  314. package/src/components/MShape.vue +6 -0
  315. package/src/components/MShortNavigationBar.vue +23 -9
  316. package/src/components/MSideSheet.vue +14 -1
  317. package/src/components/MSignaturePad.vue +15 -0
  318. package/src/components/MSimpleCarousel.vue +18 -0
  319. package/src/components/MSkeleton.vue +8 -0
  320. package/src/components/MSlider.vue +21 -0
  321. package/src/components/MSnackbar.vue +5 -0
  322. package/src/components/MSpacer.vue +6 -0
  323. package/src/components/MSpinner.vue +10 -0
  324. package/src/components/MSplitButton.vue +17 -1
  325. package/src/components/MSplitter.vue +10 -0
  326. package/src/components/MSpotlightSearch.vue +28 -1
  327. package/src/components/MStack.vue +12 -0
  328. package/src/components/MStatCard.vue +13 -0
  329. package/src/components/MStepper.vue +12 -0
  330. package/src/components/MSticky.vue +7 -0
  331. package/src/components/MSubtitle.vue +9 -0
  332. package/src/components/MSupportingPane.vue +10 -0
  333. package/src/components/MSwitch.vue +14 -6
  334. package/src/components/MTable.vue +33 -4
  335. package/src/components/MTabs.vue +12 -0
  336. package/src/components/MTagInput.vue +23 -0
  337. package/src/components/MTerminal.vue +33 -10
  338. package/src/components/MText.vue +15 -0
  339. package/src/components/MTextField.vue +26 -0
  340. package/src/components/MTimePicker.vue +15 -0
  341. package/src/components/MTimePickerModal.vue +13 -1
  342. package/src/components/MTimeline.vue +7 -0
  343. package/src/components/MTitle.vue +9 -0
  344. package/src/components/MToggleButton.vue +12 -0
  345. package/src/components/MToolbar.vue +12 -0
  346. package/src/components/MTooltip.vue +18 -0
  347. package/src/components/MTopAppBar.vue +18 -0
  348. package/src/components/MTour.vue +15 -2
  349. package/src/components/MTransferList.vue +24 -0
  350. package/src/components/MTree.vue +11 -0
  351. package/src/components/MTreeTable.vue +15 -0
  352. package/src/components/MVirtualTable.vue +12 -0
  353. package/src/components/MWindow.vue +34 -0
  354. package/src/composables/_carouselStrategy.ts +712 -0
  355. package/src/composables/useLocale.ts +54 -3
  356. package/src/data/emoji-names/emoji-names-de.ts +1875 -0
  357. package/src/data/emoji-names/emoji-names-en.ts +1875 -0
  358. package/src/data/emoji-names/emoji-names-es.ts +1875 -0
  359. package/src/data/emoji-names/emoji-names-fr.ts +1875 -0
  360. package/src/data/emoji-names/emoji-names-ja.ts +1875 -0
  361. package/src/data/emoji-names/emoji-names-ko.ts +1875 -0
  362. package/src/data/emoji-names/emoji-names-pt.ts +1875 -0
  363. package/src/data/emoji-names/emoji-names-zh.ts +1875 -0
  364. package/src/data/emojis.ts +29 -198
  365. package/src/index.ts +2 -2
  366. package/src/locales/de.ts +19 -0
  367. package/src/locales/es.ts +19 -0
  368. package/src/locales/fr.ts +19 -0
  369. package/src/locales/ja.ts +19 -0
  370. package/src/locales/ko.ts +19 -0
  371. package/src/locales/pt.ts +19 -0
  372. package/src/locales/zh.ts +19 -0
  373. package/src/plugin.ts +14 -2
  374. package/dist/MMenuItem-5xojJYAL.js.map +0 -1
  375. package/dist/useLocale-D3ZWZ8jY.js.map +0 -1
@@ -1,15 +1,30 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Serializes the data prop and triggers a real browser download — no dependencies.
4
+ *
5
+ * @slot default Replaces the label text prop
6
+ * @event error Emitted if serialization or the download trigger fails
7
+ * @event exported Emitted after a successful download is triggered
8
+ */
2
9
  import MButton from './MButton.vue'
3
10
 
4
11
  const props = withDefaults(
5
12
  defineProps<{
13
+ /** Array of objects to export */
6
14
  data: Record<string, unknown>[]
15
+ /** Export format */
7
16
  format?: 'csv' | 'json'
17
+ /** Filename without extension — the extension is added automatically */
8
18
  filename?: string
19
+ /** Button label (overridden by the default slot) */
9
20
  label?: string
21
+ /** Leading Material Symbol icon */
10
22
  icon?: string
23
+ /** Visual style (same as MButton) */
11
24
  variant?: 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated'
25
+ /** Button size */
12
26
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
27
+ /** Disables the button */
13
28
  disabled?: boolean
14
29
  }>(),
15
30
  {
@@ -1,4 +1,12 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A Floating Action Button for the primary action of a screen. Supports extended (icon+label), a speed-dial of
4
+ * small items, or a fully custom expanding panel via the `#content` slot.
5
+ *
6
+ * @slot content A panel anchored to the FAB that opens when you press it, instead of the `items` speed dial.
7
+ * `close()` closes it.
8
+ * @event click Emitted when the FAB itself is clicked (not a speed-dial item)
9
+ */
2
10
  import { computed, onMounted, onUnmounted, ref, useSlots } from 'vue'
3
11
  import MIcon from './MIcon.vue'
4
12
 
@@ -9,16 +17,27 @@ export interface SpeedDialItem {
9
17
  onClick?: () => void
10
18
  }
11
19
 
20
+ defineOptions({ inheritAttrs: false })
21
+
12
22
  const props = withDefaults(
13
23
  defineProps<{
24
+ /** Material Symbol icon name */
14
25
  icon: string
26
+ /** Extended FAB label text */
15
27
  label?: string
28
+ /** Color scheme */
16
29
  color?: 'primary' | 'secondary' | 'tertiary' | 'surface'
30
+ /** FAB size */
17
31
  size?: 'small' | 'regular' | 'medium' | 'large'
32
+ /** Disables interaction */
18
33
  disabled?: boolean
34
+ /** Speed-dial child items (see `SpeedDialItem`) */
19
35
  items?: SpeedDialItem[]
36
+ /** Speed-dial expand direction */
20
37
  direction?: 'up' | 'down' | 'left' | 'right' | 'radial'
38
+ /** Vue Router destination — renders as RouterLink instead of button */
21
39
  to?: string | Record<string, any>
40
+ /** Keep speed-dial open after clicking an item or clicking outside */
22
41
  persistent?: boolean
23
42
  /** For the `up`/`down` #content panel only: which edge it anchors to when
24
43
  * it's wider than the FAB itself. 'start' (default) keeps its left edge
@@ -275,7 +294,7 @@ onUnmounted(() => {
275
294
  </script>
276
295
 
277
296
  <template>
278
- <div ref="fabEl" class="relative inline-flex items-center justify-center">
297
+ <div ref="fabEl" v-bind="$attrs" class="relative inline-flex items-center justify-center">
279
298
  <component
280
299
  :is="fabTag"
281
300
  :to="to || undefined"
@@ -1,4 +1,10 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * The M3 "FAB Menu" — a thin wrapper around `MFab`'s `#content` slot, so opening/closing, the icon's 45° morph,
4
+ * outside-click, and scroll-away are all inherited from `MFab` — this component only supplies the row list.
5
+ * Unlike the small circular buttons of a speed dial (`MFab`'s `items` prop), each row is a full icon+label
6
+ * pill, revealed one at a time starting from the item closest to the FAB.
7
+ */
2
8
  import { computed } from 'vue'
3
9
  import MFab from './MFab.vue'
4
10
  import MIcon from './MIcon.vue'
@@ -15,19 +21,33 @@ export interface FabMenuItem {
15
21
 
16
22
  const props = withDefaults(
17
23
  defineProps<{
24
+ /**
25
+ * Trigger FAB's Material Symbol icon — use a symmetric one like 'add', since MFab rotates it 45° on open
26
+ * (turning a + into a ×)
27
+ */
18
28
  icon: string
19
29
  /** Shows the trigger as an extended FAB (icon + text) instead of icon-only. */
20
30
  label?: string
31
+ /** The menu's items; see `FabMenuItem`. An item's own color overrides the menu's color for just that row. */
21
32
  items: FabMenuItem[]
33
+ /** Color scheme applied to both the trigger FAB and every menu item row */
22
34
  color?: 'primary' | 'secondary' | 'tertiary' | 'surface'
23
35
  /** Trigger FAB size — independent from `itemSize` below. */
24
36
  size?: 'small' | 'regular' | 'large'
25
37
  /** Menu item row size — independent from the trigger FAB's own `size`. */
26
38
  itemSize?: 'small' | 'regular' | 'large'
39
+ /** Which side of the FAB the menu list opens toward */
27
40
  direction?: 'up' | 'down'
41
+ /**
42
+ * Which edge the (usually wider-than-the-FAB) menu list anchors to — 'end' keeps it from running off-screen
43
+ * when the FAB sits in a bottom-right corner
44
+ */
28
45
  align?: 'start' | 'end'
46
+ /** Dim the rest of the screen while the menu is open */
29
47
  scrim?: boolean
48
+ /** Keep the menu open after clicking an item or clicking outside */
30
49
  persistent?: boolean
50
+ /** Disables the trigger FAB */
31
51
  disabled?: boolean
32
52
  }>(),
33
53
  {
@@ -1,4 +1,15 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A drag-and-drop file upload zone with image previews, per-file size formatting, and progress/status display.
4
+ * It only selects files: uploading them is up to you, and each entry's status and progress show how it's going.
5
+ *
6
+ * @slot dropzone Replaces the default icon + text content of the drop zone
7
+ * @slot actions Right-aligned row below the list, shown only while it has files. Scope: { files: UploadFile[],
8
+ * clear: () => void }. Put your Upload / Clear buttons here
9
+ * @event update:modelValue Emitted with the new list whenever files are added, removed or cleared (v-model)
10
+ * @event select Emitted with the newly accepted files whenever files are added (drop or picker)
11
+ * @event remove Emitted when a file is removed from the list with its remove button
12
+ */
2
13
  import { ref, computed, reactive, watch, onBeforeUnmount } from 'vue'
3
14
  import MIcon from './MIcon.vue'
4
15
  import MIconButton from './MIconButton.vue'
@@ -17,13 +28,21 @@ export interface UploadFile {
17
28
 
18
29
  const props = withDefaults(
19
30
  defineProps<{
31
+ /** Accepted file types (e.g. ".png,.jpg", "image/*") */
20
32
  accept?: string
33
+ /** Allow multiple files */
21
34
  multiple?: boolean
35
+ /** Max file size in bytes — oversized files are silently filtered out */
22
36
  maxSize?: number
37
+ /** Disables the upload area */
23
38
  disabled?: boolean
39
+ /** Drop zone main text (defaults to the locale string) */
24
40
  dropText?: string
41
+ /** Drop zone select link text (defaults to the locale string) */
25
42
  selectText?: string
43
+ /** Prefix shown before the formatted max size (defaults to the locale string) */
26
44
  maxSizePrefix?: string
45
+ /** Aria label for each file row's remove button (defaults to the locale string) */
27
46
  removeLabel?: string
28
47
  /** 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. */
29
48
  modelValue?: UploadFile[]
@@ -1,18 +1,34 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Same API as MAbsolute but uses `position: fixed`. Positions elements relative to the viewport, not a
4
+ * positioned ancestor.
5
+ *
6
+ * @slot default Content.
7
+ */
2
8
  import { computed } from 'vue'
3
9
  import type { Placement } from './MAbsolute.vue'
4
10
 
5
11
  const props = withDefaults(
6
12
  defineProps<{
13
+ /** Preset corner/edge placement */
7
14
  placement?: Placement
15
+ /** Distance from edges when using placement (applies to both axes) */
8
16
  offset?: string | number
17
+ /** Horizontal offset — overrides offset for the X axis */
9
18
  offsetX?: string | number
19
+ /** Vertical offset — overrides offset for the Y axis */
10
20
  offsetY?: string | number
21
+ /** Top offset (number = px) */
11
22
  top?: string | number
23
+ /** Right offset */
12
24
  right?: string | number
25
+ /** Bottom offset */
13
26
  bottom?: string | number
27
+ /** Left offset */
14
28
  left?: string | number
29
+ /** Set all sides to 0 */
15
30
  inset?: boolean
31
+ /** Z-index value */
16
32
  zIndex?: number
17
33
  }>(),
18
34
  { inset: false, zIndex: 50, offset: 0 },
@@ -1,13 +1,24 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A thin, prop-driven wrapper around CSS flexbox — direction, alignment, justification, gap, and wrap.
4
+ *
5
+ * @slot default The flex items.
6
+ */
2
7
  import { computed } from 'vue'
3
8
 
4
9
  const props = withDefaults(
5
10
  defineProps<{
11
+ /** Flex direction */
6
12
  direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'
13
+ /** Cross-axis alignment (align-items) */
7
14
  align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline'
15
+ /** Main-axis alignment (justify-content) */
8
16
  justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'
17
+ /** Gap between items */
9
18
  gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'
19
+ /** Allow items to wrap */
10
20
  wrap?: boolean
21
+ /** Use inline-flex instead of flex */
11
22
  inline?: boolean
12
23
  }>(),
13
24
  { direction: 'row', align: 'stretch', justify: 'start', gap: 'none', wrap: false, inline: false },
@@ -1,6 +1,17 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Page footer with slots for brand, content, social links, and a bottom bar. Responsive padding adapts to
4
+ * screen size.
5
+ *
6
+ * @slot brand Logo and tagline area (top)
7
+ * @slot default Main content area (navigation columns, etc.)
8
+ * @slot social Social media icon buttons (flex row with gap)
9
+ * @slot bottom Bottom bar with copyright / legal links (separated by a top border)
10
+ */
2
11
  withDefaults(defineProps<{
12
+ /** Add a top border (border-outline-variant) */
3
13
  bordered?: boolean
14
+ /** Background surface color */
4
15
  surface?: 'default' | 'container' | 'container-low' | 'container-high' | 'inverse'
5
16
  }>(), {
6
17
  surface: 'default',
@@ -1,9 +1,17 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Fills the entire viewport (or parent when `fixed=false`). Useful for loading screens, splash pages, or modal
4
+ * backdrops.
5
+ *
6
+ * @slot default The content that goes full screen.
7
+ */
2
8
  import { computed } from 'vue'
3
9
 
4
10
  const props = withDefaults(
5
11
  defineProps<{
12
+ /** Use position: fixed to fill the viewport instead of the parent element */
6
13
  fixed?: boolean
14
+ /** Z-index value */
7
15
  zIndex?: number
8
16
  }>(),
9
17
  { fixed: true, zIndex: 50 },
@@ -1,14 +1,26 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A responsive CSS grid with per-breakpoint column counts.
4
+ *
5
+ * @slot default The grid items.
6
+ */
2
7
  import { computed } from 'vue'
3
8
 
4
9
  const props = withDefaults(
5
10
  defineProps<{
11
+ /** Default column count */
6
12
  cols?: 1 | 2 | 3 | 4 | 5 | 6 | 12
13
+ /** Columns at sm breakpoint */
7
14
  sm?: 1 | 2 | 3 | 4 | 5 | 6 | 12
15
+ /** Columns at md breakpoint */
8
16
  md?: 1 | 2 | 3 | 4 | 5 | 6 | 12
17
+ /** Columns at lg breakpoint */
9
18
  lg?: 1 | 2 | 3 | 4 | 5 | 6 | 12
19
+ /** Columns at xl breakpoint */
10
20
  xl?: 1 | 2 | 3 | 4 | 5 | 6 | 12
21
+ /** Gap between items */
11
22
  gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'
23
+ /** Vertical alignment */
12
24
  alignItems?: 'start' | 'center' | 'end' | 'stretch'
13
25
  }>(),
14
26
  { cols: 1, gap: 'md', alignItems: 'stretch' },
@@ -1,4 +1,8 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Registers global keyboard shortcuts for as long as it's mounted, with an optional on-screen overlay listing
4
+ * them grouped by category.
5
+ */
2
6
  import { onMounted, onBeforeUnmount } from 'vue'
3
7
 
4
8
  export interface HotkeyBinding {
@@ -11,7 +15,11 @@ export interface HotkeyBinding {
11
15
 
12
16
  const props = withDefaults(
13
17
  defineProps<{
18
+ /** Array of key combos to register globally; see `HotkeyBinding` */
14
19
  bindings: HotkeyBinding[]
20
+ /**
21
+ * Render a visible list of the registered shortcuts (otherwise the component is invisible and only listens)
22
+ */
15
23
  showOverlay?: boolean
16
24
  }>(),
17
25
  { showOverlay: false },
@@ -41,22 +49,21 @@ function parseCombo(keys: string) {
41
49
  }
42
50
 
43
51
  function matchesEvent(combo: string[], e: KeyboardEvent): boolean {
44
- const modifiers = { ctrl: e.ctrlKey, alt: e.altKey, shift: e.shiftKey, meta: e.metaKey, mod: isMac ? e.metaKey : e.ctrlKey }
45
- const key = e.key.toLowerCase()
46
-
52
+ // `mod` is resolved to the platform's physical key first: comparing it as a fifth modifier
53
+ // made Ctrl count as both `ctrl` and `mod`, so neither `mod+z` nor `ctrl+z` ever matched.
54
+ const wanted = { ctrl: false, alt: false, shift: false, meta: false }
55
+ let key = ''
47
56
  for (const part of combo) {
48
- if (part in modifiers) {
49
- if (!modifiers[part as keyof typeof modifiers]) return false
50
- } else if (key !== part) {
51
- return false
52
- }
53
- }
54
-
55
- for (const [mod, active] of Object.entries(modifiers)) {
56
- if (active && !combo.includes(mod)) return false
57
+ if (part === 'mod') wanted[isMac ? 'meta' : 'ctrl'] = true
58
+ else if (part in wanted) wanted[part as keyof typeof wanted] = true
59
+ else key = part
57
60
  }
58
61
 
59
- return true
62
+ return e.ctrlKey === wanted.ctrl
63
+ && e.altKey === wanted.alt
64
+ && e.shiftKey === wanted.shift
65
+ && e.metaKey === wanted.meta
66
+ && e.key.toLowerCase() === key
60
67
  }
61
68
 
62
69
  function onKeydown(e: KeyboardEvent) {
@@ -1,5 +1,14 @@
1
1
  <script setup lang="ts">
2
- withDefaults(defineProps<{ name: string; size?: number }>(), { size: 24 })
2
+ /**
3
+ * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a
4
+ * Tailwind text-* class).
5
+ */
6
+ withDefaults(defineProps<{
7
+ /** Material Symbol name (e.g. "settings", "favorite") */
8
+ name: string
9
+ /** Icon size in px */
10
+ size?: number
11
+ }>(), { size: 24 })
3
12
  </script>
4
13
 
5
14
  <template>
@@ -1,15 +1,28 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A button that shows only an icon — four visual styles, the same 5-tier expressive sizing as MButton.
4
+ */
2
5
  import { computed } from 'vue'
3
6
  import MIcon from './MIcon.vue'
4
7
 
5
8
  const props = withDefaults(
6
9
  defineProps<{
10
+ /** Material Symbol icon name */
7
11
  icon: string
12
+ /** Accessible label (aria-label and title) */
8
13
  label?: string
14
+ /** Visual style */
9
15
  variant?: 'standard' | 'filled' | 'tonal' | 'outlined'
16
+ /**
17
+ * Button shape — rounded (pill, always) or squared (corner radius scales with size: 12px xs/sm, 16px md,
18
+ * 28px lg/xl)
19
+ */
10
20
  shape?: 'rounded' | 'squared'
21
+ /** M3's 5-tier icon button sizing (xs:32, sm:40, md:56, lg:96, xl:136), or a custom pixel value */
11
22
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number
23
+ /** Disables interaction */
12
24
  disabled?: boolean
25
+ /** Vue Router destination — renders as RouterLink instead of button */
13
26
  to?: string | Record<string, any>
14
27
  }>(),
15
28
  {
@@ -1,4 +1,14 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Wraps a scrollable list and emits load when an IntersectionObserver sentinel at the bottom becomes visible —
4
+ * hand it your own fetch-more logic.
5
+ *
6
+ * @slot default The content list itself
7
+ * @slot loading Custom loading indicator, shown when loading is true
8
+ * @slot end Custom end-of-list content, shown when ended is true
9
+ * @slot idle Content shown when neither loading nor ended (empty by default)
10
+ * @event load Emitted when the sentinel scrolls into view and more items should be fetched
11
+ */
2
12
  import { ref, onMounted, onBeforeUnmount, watch } from 'vue'
3
13
  import MSpinner from './MSpinner.vue'
4
14
  import { useLocale } from '../composables/useLocale'
@@ -7,11 +17,17 @@ const locale = useLocale()
7
17
 
8
18
  const props = withDefaults(
9
19
  defineProps<{
20
+ /** Currently loading more items — shows the loading slot */
10
21
  loading?: boolean
22
+ /** Disable the load trigger entirely (no observer attached) */
11
23
  disabled?: boolean
24
+ /** Distance in px from the sentinel before it triggers load */
12
25
  threshold?: number
26
+ /** Text shown while loading (defaults to the locale string, 'Loading...') */
13
27
  loadingText?: string
28
+ /** Text shown when ended (defaults to the locale string, 'No more items') */
14
29
  endText?: string
30
+ /** No more items to load — shows the end slot and stops observing */
15
31
  ended?: boolean
16
32
  }>(),
17
33
  {
@@ -1,4 +1,9 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A JSON-aware editor built on top of MCodeEditor — validates as you type and adds format/minify shortcuts.
4
+ *
5
+ * @event update:modelValue Emitted with the parsed value whenever the text is valid JSON — powers v-model
6
+ */
2
7
  import { ref, computed, watch } from 'vue'
3
8
  import MCodeEditor from './MCodeEditor.vue'
4
9
  import MIcon from './MIcon.vue'
@@ -15,10 +20,18 @@ const locale = useLocale()
15
20
 
16
21
  const props = withDefaults(
17
22
  defineProps<{
23
+ /** JSON data (v-model, any valid JSON) */
18
24
  modelValue: unknown
25
+ /** Read-only mode */
19
26
  readonly?: boolean
27
+ /** Min height */
20
28
  minHeight?: string
29
+ /** Max height */
21
30
  maxHeight?: string
31
+ /**
32
+ * Overrides for the valid/invalid badge and format/minify button text (see `JsonEditorLabels`) — defaults come
33
+ * from useLocale()
34
+ */
22
35
  labels?: JsonEditorLabels
23
36
  }>(),
24
37
  {
@@ -1,4 +1,7 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A read-only, recursively expandable tree view for inspecting JSON-compatible data.
4
+ */
2
5
  import { ref, computed } from 'vue'
3
6
  import MIcon from './MIcon.vue'
4
7
  import { useLocale } from '../composables/useLocale'
@@ -12,9 +15,13 @@ const locale = useLocale()
12
15
 
13
16
  const props = withDefaults(
14
17
  defineProps<{
18
+ /** Data to display (any JSON-compatible value) */
15
19
  data: unknown
20
+ /** Name for the root node */
16
21
  rootName?: string
22
+ /** Levels to expand by default */
17
23
  expandDepth?: number
24
+ /** Overrides for the collapsed-node summary text (see `JsonViewerLabels`) — defaults come from useLocale() */
18
25
  labels?: JsonViewerLabels
19
26
  /** @internal — used by recursive instances */
20
27
  _depth?: number
@@ -1,4 +1,20 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A drag-and-drop board. Cards lift and follow the pointer, the others make room, and a dashed slot shows where
4
+ * the card will land. Works with a mouse, a finger (long-press a card) and the keyboard; the board scrolls
5
+ * sideways on its own when you drag near its edges.
6
+ *
7
+ * @slot card Content of each card. column is the full KanbanColumn; dragging is true while the card is lifted.
8
+ * Buttons, links and inputs inside keep working: they never start a drag or fire cardClick. Add
9
+ * data-kanban-action to any other element (a badge, a span) to give it the same treatment, so a click there
10
+ * can do something else instead of opening the card
11
+ * @slot column-header Replaces the default header (color dot, title and count)
12
+ * @slot column-footer Content below each column's cards, e.g. an "Add card" button
13
+ * @event update:modelValue Emitted after a card moves, by pointer or keyboard (v-model)
14
+ * @event cardMove Emitted alongside update:modelValue with where the card went. Not emitted when a card is
15
+ * dropped back where it was
16
+ * @event cardClick Emitted when a card is clicked or Enter is pressed on it. Not emitted at the end of a drag
17
+ */
2
18
  import { ref, onBeforeUpdate, onUpdated, onMounted, onBeforeUnmount } from 'vue'
3
19
  import MIcon from './MIcon.vue'
4
20
  import { useLocale } from '../composables/useLocale'
@@ -18,7 +34,9 @@ export interface KanbanColumn {
18
34
  }
19
35
 
20
36
  const props = defineProps<{
37
+ /** Columns with their cards (v-model). Required */
21
38
  modelValue: KanbanColumn[]
39
+ /** Text shown in a column with no cards (defaults to the locale string) */
22
40
  emptyText?: string
23
41
  }>()
24
42
 
@@ -1,11 +1,17 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Displays a keyboard shortcut as styled key chips. Purely presentational — pairs well with MHotkeys or
4
+ * MCommandPalette to show the shortcut that triggers an action.
5
+ */
2
6
  import { computed } from 'vue'
3
7
 
4
8
  const props = withDefaults(
5
9
  defineProps<{
6
10
  /** A '+'-delimited string ("Ctrl+Shift+K") or an array of keys (['Ctrl', 'Shift', 'K']). */
7
11
  keys: string | string[]
12
+ /** Key chip size */
8
13
  size?: 'sm' | 'md' | 'lg'
14
+ /** Separator rendered between keys */
9
15
  separator?: string
10
16
  }>(),
11
17
  {