@m3ui-vue/m3ui-vue 1.5.1 → 1.6.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 (367) hide show
  1. package/dist/API.md +981 -63
  2. package/dist/{MButton-D_uxtJa-.js → MButton-OQ4wIERQ.js} +8 -9
  3. package/dist/MButton-OQ4wIERQ.js.map +1 -0
  4. package/dist/{MDialog-DT4KAPmn.js → MDialog-DYMnaBlt.js} +38 -44
  5. package/dist/MDialog-DYMnaBlt.js.map +1 -0
  6. package/dist/{MIcon-Bxh9j135.js → MIcon-DpajuUTJ.js} +2 -3
  7. package/dist/MIcon-DpajuUTJ.js.map +1 -0
  8. package/dist/{MIconButton-DoNotQ9v.js → MIconButton-BBggVwBV.js} +5 -6
  9. package/dist/MIconButton-BBggVwBV.js.map +1 -0
  10. package/dist/{MListItem-CwYrxpPZ.js → MListItem-D2cNUyzP.js} +217 -180
  11. package/dist/MListItem-D2cNUyzP.js.map +1 -0
  12. package/dist/{MLoadingIndicator-DhzECYRI.js → MLoadingIndicator-DWUj0BAB.js} +3 -4
  13. package/dist/MLoadingIndicator-DWUj0BAB.js.map +1 -0
  14. package/dist/{MMenuItem-Bih0h4-n.js → MMenuItem-BuxYoASE.js} +140 -170
  15. package/dist/MMenuItem-BuxYoASE.js.map +1 -0
  16. package/dist/{MProgressBar-BCoruxA-.js → MProgressBar-BWly1UKN.js} +3 -8
  17. package/dist/MProgressBar-BWly1UKN.js.map +1 -0
  18. package/dist/{MSeekBar-DQPF5FTp.js → MSeekBar-C4cn9RIF.js} +4 -5
  19. package/dist/MSeekBar-C4cn9RIF.js.map +1 -0
  20. package/dist/{MSegmentedButton-DL9JtJFX.js → MSegmentedButton-BEB4gXLA.js} +3 -4
  21. package/dist/MSegmentedButton-BEB4gXLA.js.map +1 -0
  22. package/dist/{MSlider-BvoMZTy9.js → MSlider-BIkA6DiE.js} +22 -23
  23. package/dist/MSlider-BIkA6DiE.js.map +1 -0
  24. package/dist/{MSpinner-CgcCQhS9.js → MSpinner-DZkXZJpc.js} +3 -4
  25. package/dist/MSpinner-DZkXZJpc.js.map +1 -0
  26. package/dist/{MTextField-BRntFeNR.js → MTextField-CNH-byir.js} +12 -16
  27. package/dist/MTextField-CNH-byir.js.map +1 -0
  28. package/dist/{MTooltip-YyF1CO75.js → MTooltip-Dd5g2zhh.js} +10 -12
  29. package/dist/MTooltip-Dd5g2zhh.js.map +1 -0
  30. package/dist/THIRD_PARTY_LICENSES.md +2 -2
  31. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  32. package/dist/{_useEscapeStack-CjndQhqg.js → _popupPosition-nL8SVKPK.js} +21 -4
  33. package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
  34. package/dist/{_storageKeys-CYXsUBwK.js → _storageKeys-C4W_4xK4.js} +2 -3
  35. package/dist/_storageKeys-C4W_4xK4.js.map +1 -0
  36. package/dist/api.json +1 -1
  37. package/dist/barcode.js +1 -2
  38. package/dist/barcode.js.map +1 -1
  39. package/dist/chart.js +2 -4
  40. package/dist/chart.js.map +1 -1
  41. package/dist/code-editor.js +22 -23
  42. package/dist/code-editor.js.map +1 -1
  43. package/dist/{common-0dgrgaPL.js → common-kIb6A2Qu.js} +8 -37
  44. package/dist/common-kIb6A2Qu.js.map +1 -0
  45. package/dist/components/MAbsolute.vue.d.ts +5 -3
  46. package/dist/components/MAddressField.vue.d.ts +54 -0
  47. package/dist/components/MAlert.vue.d.ts +8 -6
  48. package/dist/components/MAppBar.vue.d.ts +9 -7
  49. package/dist/components/MAppBarWithSearch.vue.d.ts +15 -13
  50. package/dist/components/MAppLayout.vue.d.ts +13 -11
  51. package/dist/components/MAspectRatio.vue.d.ts +5 -3
  52. package/dist/components/MAudioPlayer.vue.d.ts +23 -21
  53. package/dist/components/MAudioRecorder.vue.d.ts +51 -0
  54. package/dist/components/MAutocomplete.vue.d.ts +1 -1
  55. package/dist/components/MAvailabilityCalendar.vue.d.ts +18 -16
  56. package/dist/components/MBadge.vue.d.ts +6 -4
  57. package/dist/components/MBar.vue.d.ts +14 -12
  58. package/dist/components/MBarcode.vue.d.ts +5 -3
  59. package/dist/components/MBeforeAfter.vue.d.ts +12 -10
  60. package/dist/components/MBodyMap.vue.d.ts +1 -1
  61. package/dist/components/MBottomAppBar.vue.d.ts +10 -8
  62. package/dist/components/MBottomSheet.vue.d.ts +8 -6
  63. package/dist/components/MBottomSheetScaffold.vue.d.ts +9 -7
  64. package/dist/components/MBox.vue.d.ts +6 -4
  65. package/dist/components/MButton.vue.d.ts +7 -5
  66. package/dist/components/MCameraCapture.vue.d.ts +51 -0
  67. package/dist/components/MCard.vue.d.ts +12 -10
  68. package/dist/components/MCenter.vue.d.ts +5 -3
  69. package/dist/components/MChatBubble.vue.d.ts +6 -4
  70. package/dist/components/MCheckbox.vue.d.ts +5 -3
  71. package/dist/components/MChip.vue.d.ts +9 -7
  72. package/dist/components/MCircleProgressBar.vue.d.ts +6 -4
  73. package/dist/components/MCodeEditor.vue.d.ts +5 -3
  74. package/dist/components/MCollapse.vue.d.ts +32 -0
  75. package/dist/components/MContainer.vue.d.ts +6 -4
  76. package/dist/components/MContextMenu.vue.d.ts +8 -6
  77. package/dist/components/MCopyButton.vue.d.ts +1 -1
  78. package/dist/components/MCountrySelect.vue.d.ts +41 -0
  79. package/dist/components/MCronField.vue.d.ts +26 -0
  80. package/dist/components/MDashboardGrid.vue.d.ts +65 -0
  81. package/dist/components/MDataTable.vue.d.ts +21 -19
  82. package/dist/components/MDialog.vue.d.ts +21 -19
  83. package/dist/components/MDiffViewer.vue.d.ts +56 -0
  84. package/dist/components/MDragHandle.vue.d.ts +1 -1
  85. package/dist/components/MDrawCanvas.vue.d.ts +5 -3
  86. package/dist/components/MDrawToolbar.vue.d.ts +7 -5
  87. package/dist/components/MEmptyState.vue.d.ts +5 -3
  88. package/dist/components/MExpansionPanel.vue.d.ts +32 -7
  89. package/dist/components/MExportButton.vue.d.ts +7 -5
  90. package/dist/components/MFab.vue.d.ts +11 -9
  91. package/dist/components/MFabMenu.vue.d.ts +3 -3
  92. package/dist/components/MFilterBuilder.vue.d.ts +22 -0
  93. package/dist/components/MFixed.vue.d.ts +5 -3
  94. package/dist/components/MFlex.vue.d.ts +7 -5
  95. package/dist/components/MFloorPlan.vue.d.ts +3 -3
  96. package/dist/components/MFloorPlanInspector.vue.d.ts +32 -30
  97. package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
  98. package/dist/components/MFlow.vue.d.ts +4 -4
  99. package/dist/components/MFlowControls.vue.d.ts +6 -4
  100. package/dist/components/MFlowHandle.vue.d.ts +1 -1
  101. package/dist/components/MFlowNode.vue.d.ts +11 -9
  102. package/dist/components/MFooter.vue.d.ts +12 -10
  103. package/dist/components/MFullscreen.vue.d.ts +5 -3
  104. package/dist/components/MGantt.vue.d.ts +33 -31
  105. package/dist/components/MGanttControls.vue.d.ts +8 -6
  106. package/dist/components/MGrid.vue.d.ts +6 -4
  107. package/dist/components/MIcon.vue.d.ts +5 -0
  108. package/dist/components/MIconButton.vue.d.ts +1 -1
  109. package/dist/components/MImageCropper.vue.d.ts +14 -12
  110. package/dist/components/MInfiniteScroll.vue.d.ts +11 -9
  111. package/dist/components/MList.vue.d.ts +5 -3
  112. package/dist/components/MListGroup.vue.d.ts +7 -5
  113. package/dist/components/MListItem.vue.d.ts +21 -19
  114. package/dist/components/MListSubheader.vue.d.ts +5 -3
  115. package/dist/components/MLoadingOverlay.vue.d.ts +10 -8
  116. package/dist/components/MMap.vue.d.ts +14 -6
  117. package/dist/components/MMapCluster.vue.d.ts +80 -0
  118. package/dist/components/MMapControl.vue.d.ts +12 -10
  119. package/dist/components/MMapDraw.vue.d.ts +79 -0
  120. package/dist/components/MMapFeatureInfo.vue.d.ts +11 -9
  121. package/dist/components/MMapIdentify.vue.d.ts +9 -7
  122. package/dist/components/MMapLayers.vue.d.ts +13 -11
  123. package/dist/components/MMapMarker.vue.d.ts +7 -5
  124. package/dist/components/MMapPopup.vue.d.ts +5 -3
  125. package/dist/components/MMasonry.vue.d.ts +5 -3
  126. package/dist/components/MMentionField.vue.d.ts +102 -0
  127. package/dist/components/MMenu.vue.d.ts +12 -10
  128. package/dist/components/MMenuItem.vue.d.ts +11 -9
  129. package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
  130. package/dist/components/MMultiSelect.vue.d.ts +6 -4
  131. package/dist/components/MNavigationDrawer.vue.d.ts +14 -12
  132. package/dist/components/MNavigationRail.vue.d.ts +7 -5
  133. package/dist/components/MNotificationCenter.vue.d.ts +57 -0
  134. package/dist/components/MOdontogram.vue.d.ts +1 -1
  135. package/dist/components/MOrderBook.vue.d.ts +1 -1
  136. package/dist/components/MOverlay.vue.d.ts +5 -3
  137. package/dist/components/MPdfViewer.vue.d.ts +4 -4
  138. package/dist/components/MPhoneInput.vue.d.ts +11 -9
  139. package/dist/components/MPosKeypad.vue.d.ts +18 -16
  140. package/dist/components/MProgressBar.vue.d.ts +1 -1
  141. package/dist/components/MPullToRefresh.vue.d.ts +5 -3
  142. package/dist/components/MQRCode.vue.d.ts +7 -5
  143. package/dist/components/MQRScanner.vue.d.ts +52 -0
  144. package/dist/components/MQuiz.vue.d.ts +1 -1
  145. package/dist/components/MRadioGroup.vue.d.ts +1 -1
  146. package/dist/components/MReceipt.vue.d.ts +2 -2
  147. package/dist/components/MRelative.vue.d.ts +5 -3
  148. package/dist/components/MResourceTimeline.vue.d.ts +31 -29
  149. package/dist/components/MResponsive.vue.d.ts +5 -3
  150. package/dist/components/MResult.vue.d.ts +7 -5
  151. package/dist/components/MScrollable.vue.d.ts +7 -5
  152. package/dist/components/MSearchBar.vue.d.ts +13 -11
  153. package/dist/components/MSearchField.vue.d.ts +7 -5
  154. package/dist/components/MSection.vue.d.ts +11 -9
  155. package/dist/components/MSeekBar.vue.d.ts +3 -3
  156. package/dist/components/MSelect.vue.d.ts +1 -1
  157. package/dist/components/MShader.vue.d.ts +11 -9
  158. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  159. package/dist/components/MSideSheet.vue.d.ts +9 -7
  160. package/dist/components/MSimpleCarousel.vue.d.ts +2 -2
  161. package/dist/components/MSkeleton.vue.d.ts +2 -2
  162. package/dist/components/MSlider.vue.d.ts +3 -3
  163. package/dist/components/MSparkline.vue.d.ts +1 -1
  164. package/dist/components/MSplitButton.vue.d.ts +7 -5
  165. package/dist/components/MSplitter.vue.d.ts +9 -7
  166. package/dist/components/MSpotlightSearch.vue.d.ts +1 -1
  167. package/dist/components/MStack.vue.d.ts +8 -6
  168. package/dist/components/MStatCard.vue.d.ts +5 -3
  169. package/dist/components/MStepper.vue.d.ts +5 -3
  170. package/dist/components/MSticky.vue.d.ts +5 -3
  171. package/dist/components/MSubtitle.vue.d.ts +6 -4
  172. package/dist/components/MSwipeToDismiss.vue.d.ts +11 -9
  173. package/dist/components/MTable.vue.d.ts +17 -15
  174. package/dist/components/MText.vue.d.ts +5 -3
  175. package/dist/components/MTextField.vue.d.ts +6 -4
  176. package/dist/components/MTimePickerModal.vue.d.ts +1 -1
  177. package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
  178. package/dist/components/MTitle.vue.d.ts +6 -4
  179. package/dist/components/MToggleButton.vue.d.ts +5 -3
  180. package/dist/components/MToolbar.vue.d.ts +24 -22
  181. package/dist/components/MTooltip.vue.d.ts +10 -8
  182. package/dist/components/MTopAppBar.vue.d.ts +22 -20
  183. package/dist/components/MTour.vue.d.ts +28 -26
  184. package/dist/components/MTransition.vue.d.ts +5 -3
  185. package/dist/components/MTree.vue.d.ts +6 -4
  186. package/dist/components/MTreeTable.vue.d.ts +21 -19
  187. package/dist/components/MTypewriter.vue.d.ts +6 -4
  188. package/dist/components/MVideoPlayer.vue.d.ts +1 -1
  189. package/dist/components/MVirtualTable.vue.d.ts +8 -6
  190. package/dist/components/_MFilterGroup.vue.d.ts +17 -0
  191. package/dist/components/_MMapLayerItem.vue.d.ts +8 -6
  192. package/dist/components/_MPdfPage.vue.d.ts +2 -2
  193. package/dist/components/_MToolbarFab.vue.d.ts +5 -3
  194. package/dist/components/_MTreeNode.vue.d.ts +13 -11
  195. package/dist/composables/_caretPosition.d.ts +6 -0
  196. package/dist/composables/_useCamera.d.ts +16 -0
  197. package/dist/composables/_useFollowAnchor.d.ts +15 -0
  198. package/dist/composables/cron.d.ts +29 -0
  199. package/dist/composables/dashboardLayout.d.ts +28 -0
  200. package/dist/composables/filterBuilder.d.ts +55 -0
  201. package/dist/composables/mapAdapters.d.ts +6 -1
  202. package/dist/composables/mapSearch.d.ts +1 -0
  203. package/dist/composables/textDiff.d.ts +24 -0
  204. package/dist/composables/useLocale.d.ts +108 -0
  205. package/dist/composables/useMap.d.ts +8 -0
  206. package/dist/{dist-CrjSW5DN.js → dist-Bj5kEq8G.js} +4 -6
  207. package/dist/dist-Bj5kEq8G.js.map +1 -0
  208. package/dist/draw.js +62 -82
  209. package/dist/draw.js.map +1 -1
  210. package/dist/{emoji-names-de-BphO5XpV.js → emoji-names-de-Cu3OSpp6.js} +2 -3
  211. package/dist/emoji-names-de-Cu3OSpp6.js.map +1 -0
  212. package/dist/{emoji-names-en-9ZvMRvzi.js → emoji-names-en-BNX1pM9h.js} +2 -3
  213. package/dist/emoji-names-en-BNX1pM9h.js.map +1 -0
  214. package/dist/{emoji-names-es-DvfWU3Pj.js → emoji-names-es-C_Dafg4D.js} +2 -3
  215. package/dist/emoji-names-es-C_Dafg4D.js.map +1 -0
  216. package/dist/{emoji-names-fr-B-jhUlsP.js → emoji-names-fr-D4HTMFuM.js} +2 -3
  217. package/dist/emoji-names-fr-D4HTMFuM.js.map +1 -0
  218. package/dist/{emoji-names-ja-l8cMFJo1.js → emoji-names-ja-BCql-Sj6.js} +2 -3
  219. package/dist/emoji-names-ja-BCql-Sj6.js.map +1 -0
  220. package/dist/{emoji-names-ko-YP-o9G0c.js → emoji-names-ko-CT8L52nn.js} +2 -3
  221. package/dist/emoji-names-ko-CT8L52nn.js.map +1 -0
  222. package/dist/{emoji-names-pt-DGj_Js4M.js → emoji-names-pt-DHiwPiL-.js} +2 -3
  223. package/dist/emoji-names-pt-DHiwPiL-.js.map +1 -0
  224. package/dist/{emoji-names-zh-Dzecwtw_.js → emoji-names-zh-L3FXVief.js} +2 -3
  225. package/dist/emoji-names-zh-L3FXVief.js.map +1 -0
  226. package/dist/flow.js +351 -374
  227. package/dist/flow.js.map +1 -1
  228. package/dist/{flowPaths-CcWOKY4Z.js → flowPaths-BaH7yaUM.js} +3 -8
  229. package/dist/flowPaths-BaH7yaUM.js.map +1 -0
  230. package/dist/gantt.js +272 -333
  231. package/dist/gantt.js.map +1 -1
  232. package/dist/index.d.ts +25 -0
  233. package/dist/locales/index.js +750 -2
  234. package/dist/locales/index.js.map +1 -1
  235. package/dist/m3ui-vue.css +1 -1
  236. package/dist/m3ui.js +9988 -7215
  237. package/dist/m3ui.js.map +1 -1
  238. package/dist/map.d.ts +6 -1
  239. package/dist/map.js +1600 -713
  240. package/dist/map.js.map +1 -1
  241. package/dist/markdown.js +3 -4
  242. package/dist/markdown.js.map +1 -1
  243. package/dist/{material-color-utilities-C_iikgRm.js → material-color-utilities-CEFytLsr.js} +15 -32
  244. package/dist/material-color-utilities-CEFytLsr.js.map +1 -0
  245. package/dist/media.js +80 -94
  246. package/dist/media.js.map +1 -1
  247. package/dist/{motion-DZiXG09o.js → motion-BcejVTeX.js} +2 -3
  248. package/dist/motion-BcejVTeX.js.map +1 -0
  249. package/dist/pdf.js +103 -115
  250. package/dist/pdf.js.map +1 -1
  251. package/dist/qrcode.js +1 -2
  252. package/dist/qrcode.js.map +1 -1
  253. package/dist/rich-text-editor.js +33 -34
  254. package/dist/rich-text-editor.js.map +1 -1
  255. package/dist/styles.css +1 -1
  256. package/dist/terminal.js +2 -3
  257. package/dist/terminal.js.map +1 -1
  258. package/dist/{useLocale-DLcG3qPC.js → useLocale-DaVSTdm0.js} +109 -3
  259. package/dist/useLocale-DaVSTdm0.js.map +1 -0
  260. package/dist/{useThemeTokens-DQQcaWbE.js → useThemeTokens-DyAdPQB0.js} +6 -10
  261. package/dist/useThemeTokens-DyAdPQB0.js.map +1 -0
  262. package/package.json +32 -32
  263. package/src/__tests__/MAddressField.test.ts +149 -0
  264. package/src/__tests__/MAudioRecorder.test.ts +125 -0
  265. package/src/__tests__/MCameraCapture.test.ts +154 -0
  266. package/src/__tests__/MCountrySelect.test.ts +67 -0
  267. package/src/__tests__/MCronField.test.ts +100 -0
  268. package/src/__tests__/MDashboardGrid.test.ts +122 -0
  269. package/src/__tests__/MDiffViewer.test.ts +68 -0
  270. package/src/__tests__/MExpansionPanel.test.ts +107 -0
  271. package/src/__tests__/MFab.test.ts +10 -1
  272. package/src/__tests__/MFilterBuilder.test.ts +130 -0
  273. package/src/__tests__/MMap.test.ts +16 -1
  274. package/src/__tests__/MMapCluster.test.ts +127 -0
  275. package/src/__tests__/MMapDraw.test.ts +188 -0
  276. package/src/__tests__/MMapLayers.test.ts +56 -0
  277. package/src/__tests__/MMentionField.test.ts +163 -0
  278. package/src/__tests__/MNotificationCenter.test.ts +94 -0
  279. package/src/__tests__/_fakeMaplibre.ts +16 -3
  280. package/src/__tests__/attrsFallthrough.test.ts +4 -0
  281. package/src/__tests__/cron.test.ts +68 -0
  282. package/src/__tests__/dashboardLayout.test.ts +45 -0
  283. package/src/__tests__/filterBuilder.test.ts +91 -0
  284. package/src/__tests__/followAnchor.test.ts +162 -0
  285. package/src/__tests__/ssr.test.ts +3 -0
  286. package/src/__tests__/textDiff.test.ts +37 -0
  287. package/src/components/MAddressField.vue +301 -0
  288. package/src/components/MAudioRecorder.vue +334 -0
  289. package/src/components/MAutocomplete.vue +3 -7
  290. package/src/components/MCameraCapture.vue +156 -0
  291. package/src/components/MCollapse.vue +91 -0
  292. package/src/components/MColorPicker.vue +4 -8
  293. package/src/components/MCountrySelect.vue +89 -0
  294. package/src/components/MCronField.vue +251 -0
  295. package/src/components/MDashboardGrid.vue +382 -0
  296. package/src/components/MDatePicker.vue +10 -7
  297. package/src/components/MDateRangePicker.vue +10 -7
  298. package/src/components/MDiffViewer.vue +234 -0
  299. package/src/components/MExpansionPanel.vue +56 -48
  300. package/src/components/MFilterBuilder.vue +47 -0
  301. package/src/components/MMap.vue +12 -3
  302. package/src/components/MMapCluster.vue +295 -0
  303. package/src/components/MMapDraw.vue +601 -0
  304. package/src/components/MMapMeasure.vue +3 -1
  305. package/src/components/MMapSearch.vue +1 -9
  306. package/src/components/MMentionField.vue +373 -0
  307. package/src/components/MMultiAutocomplete.vue +3 -7
  308. package/src/components/MMultiSelect.vue +3 -7
  309. package/src/components/MNotificationCenter.vue +252 -0
  310. package/src/components/MPhoneInput.vue +3 -10
  311. package/src/components/MQRScanner.vue +177 -0
  312. package/src/components/MSelect.vue +3 -7
  313. package/src/components/MTimePicker.vue +10 -7
  314. package/src/components/MTimezoneSelect.vue +116 -0
  315. package/src/components/_MFilterGroup.vue +210 -0
  316. package/src/composables/_caretPosition.ts +44 -0
  317. package/src/composables/_useCamera.ts +66 -0
  318. package/src/composables/_useFollowAnchor.ts +109 -0
  319. package/src/composables/cron.ts +179 -0
  320. package/src/composables/dashboardLayout.ts +94 -0
  321. package/src/composables/filterBuilder.ts +195 -0
  322. package/src/composables/mapAdapters.ts +29 -15
  323. package/src/composables/mapSearch.ts +10 -0
  324. package/src/composables/textDiff.ts +106 -0
  325. package/src/composables/useLocale.ts +215 -0
  326. package/src/composables/useMap.ts +17 -0
  327. package/src/composables/useMapLayers.ts +4 -1
  328. package/src/index.ts +25 -0
  329. package/src/locales/de.ts +107 -0
  330. package/src/locales/es.ts +107 -0
  331. package/src/locales/fr.ts +107 -0
  332. package/src/locales/ja.ts +107 -0
  333. package/src/locales/ko.ts +107 -0
  334. package/src/locales/pt.ts +107 -0
  335. package/src/locales/zh.ts +107 -0
  336. package/src/map.ts +6 -1
  337. package/dist/MButton-D_uxtJa-.js.map +0 -1
  338. package/dist/MDialog-DT4KAPmn.js.map +0 -1
  339. package/dist/MIcon-Bxh9j135.js.map +0 -1
  340. package/dist/MIconButton-DoNotQ9v.js.map +0 -1
  341. package/dist/MListItem-CwYrxpPZ.js.map +0 -1
  342. package/dist/MLoadingIndicator-DhzECYRI.js.map +0 -1
  343. package/dist/MMenuItem-Bih0h4-n.js.map +0 -1
  344. package/dist/MProgressBar-BCoruxA-.js.map +0 -1
  345. package/dist/MSeekBar-DQPF5FTp.js.map +0 -1
  346. package/dist/MSegmentedButton-DL9JtJFX.js.map +0 -1
  347. package/dist/MSlider-BvoMZTy9.js.map +0 -1
  348. package/dist/MSpinner-CgcCQhS9.js.map +0 -1
  349. package/dist/MTextField-BRntFeNR.js.map +0 -1
  350. package/dist/MTooltip-YyF1CO75.js.map +0 -1
  351. package/dist/_storageKeys-CYXsUBwK.js.map +0 -1
  352. package/dist/_useEscapeStack-CjndQhqg.js.map +0 -1
  353. package/dist/common-0dgrgaPL.js.map +0 -1
  354. package/dist/dist-CrjSW5DN.js.map +0 -1
  355. package/dist/emoji-names-de-BphO5XpV.js.map +0 -1
  356. package/dist/emoji-names-en-9ZvMRvzi.js.map +0 -1
  357. package/dist/emoji-names-es-DvfWU3Pj.js.map +0 -1
  358. package/dist/emoji-names-fr-B-jhUlsP.js.map +0 -1
  359. package/dist/emoji-names-ja-l8cMFJo1.js.map +0 -1
  360. package/dist/emoji-names-ko-YP-o9G0c.js.map +0 -1
  361. package/dist/emoji-names-pt-DGj_Js4M.js.map +0 -1
  362. package/dist/emoji-names-zh-Dzecwtw_.js.map +0 -1
  363. package/dist/flowPaths-CcWOKY4Z.js.map +0 -1
  364. package/dist/material-color-utilities-C_iikgRm.js.map +0 -1
  365. package/dist/motion-DZiXG09o.js.map +0 -1
  366. package/dist/useLocale-DLcG3qPC.js.map +0 -1
  367. package/dist/useThemeTokens-DQQcaWbE.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import { a as e, f as t, i as n, l as r, s as i, u as a } from "./MIconButton-DoNotQ9v.js";
2
- import { i as o } from "./motion-DZiXG09o.js";
3
- import { t as s } from "./MIcon-Bxh9j135.js";
4
- import { t as c } from "./_useEscapeStack-CjndQhqg.js";
5
- import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, inject as ee, mergeProps as y, nextTick as b, normalizeClass as x, normalizeStyle as S, onMounted as te, onUnmounted as ne, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, toDisplayString as k, unref as A, useSlots as re, watch as ie, withCtx as ae } from "vue";
6
- //#region src/components/MMenuDivider.vue?vue&type=script&setup=true&lang.ts
7
- var j = { class: "my-1 border-outline-variant" }, M = /* @__PURE__ */ v({
1
+ import { a as e, f as t, i as n, l as r, s as i, u as a } from "./MIconButton-BBggVwBV.js";
2
+ import { i as o } from "./motion-BcejVTeX.js";
3
+ import { t as s } from "./MIcon-DpajuUTJ.js";
4
+ import { n as c, r as l, t as u } from "./_popupPosition-nL8SVKPK.js";
5
+ import { Fragment as d, Teleport as f, Transition as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineComponent as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onMounted as ee, onUnmounted as te, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ne, toDisplayString as j, unref as M, useSlots as re, watch as ie, withCtx as ae } from "vue";
6
+ // src/components/MMenuDivider.vue?vue&type=script&setup=true&lang.ts
7
+ var N = { class: "my-1 border-outline-variant" }, oe = /* @__PURE__ */ b({
8
8
  __name: "MMenuDivider",
9
9
  props: { gap: {
10
10
  type: Boolean,
11
11
  default: !1
12
12
  } },
13
13
  setup(e) {
14
- return (e, t) => (C(), h("hr", j));
14
+ return (e, t) => (E(), _("hr", N));
15
15
  }
16
- }), oe = 30, se = 380, N = 8, ce = 1 / 3, P = .5;
17
- function le(e) {
18
- let n = T([]), i = f(() => n.value[n.value.length - 1]), s = T("forward"), c = T(), l = 0, u = 1;
16
+ }), se = 30, P = 380, ce = 8, F = 1 / 3, le = .5;
17
+ function I(e) {
18
+ let n = O([]), i = m(() => n.value[n.value.length - 1]), s = O("forward"), c = O(), l = 0, u = 1;
19
19
  function d(e, t) {
20
20
  let n = s.value === "forward" ? 1 : -1, r = e.animate([{
21
- transform: `translateX(${n * oe}px)`,
21
+ transform: `translateX(${n * se}px)`,
22
22
  opacity: 0
23
23
  }, {
24
24
  transform: "translateX(0)",
@@ -31,7 +31,7 @@ function le(e) {
31
31
  });
32
32
  r.onfinish = t;
33
33
  }
34
- function p(e, t) {
34
+ function f(e, t) {
35
35
  let n = s.value === "forward" ? -1 : 1, r = e;
36
36
  r.style.position = "absolute", r.style.insetInline = "0", r.style.top = "0";
37
37
  let i = l, a = u;
@@ -40,7 +40,7 @@ function le(e) {
40
40
  transform: `translateX(${i}px)`,
41
41
  opacity: a
42
42
  }, {
43
- transform: `translateX(${i + n * oe}px)`,
43
+ transform: `translateX(${i + n * se}px)`,
44
44
  opacity: 0
45
45
  }], {
46
46
  duration: 90,
@@ -49,34 +49,34 @@ function le(e) {
49
49
  });
50
50
  o.onfinish = t;
51
51
  }
52
- function m(e) {
52
+ function p(e) {
53
53
  let n = c.value, i = n?.offsetHeight ?? 0, s = n?.style.overflowY ?? "";
54
54
  n && (n.style.overflowY = "hidden");
55
55
  let l = () => {
56
56
  n && (n.style.overflowY = s);
57
57
  };
58
58
  if (e(), !n || a()) return l();
59
- b(() => {
60
- let e = n.offsetHeight, a = Math.abs(e - i) < 1 ? null : r(n, t(i, e, 0, o.standard.defaultSpatial, .5), (e) => ({ height: `${e}px` })), s = new Promise((e) => setTimeout(e, se));
59
+ C(() => {
60
+ let e = n.offsetHeight, a = Math.abs(e - i) < 1 ? null : r(n, t(i, e, 0, o.standard.defaultSpatial, .5), (e) => ({ height: `${e}px` })), s = new Promise((e) => setTimeout(e, P));
61
61
  Promise.all([s, a?.finished.catch(() => {})]).then(l);
62
62
  });
63
63
  }
64
64
  function h(t) {
65
- s.value = "forward", m(() => n.value.push(t)), b(e);
65
+ s.value = "forward", p(() => n.value.push(t)), C(e);
66
66
  }
67
67
  function g() {
68
- s.value = "backward", m(() => n.value.pop()), b(e);
68
+ s.value = "backward", p(() => n.value.pop()), C(e);
69
69
  }
70
70
  function _() {
71
71
  n.value = [];
72
72
  }
73
73
  let v = null;
74
- function ee() {
74
+ function y() {
75
75
  return c.value?.querySelector(`:scope > [data-menu-level="${n.value.length}"]`) ?? null;
76
76
  }
77
- function y(e) {
77
+ function b(e) {
78
78
  if (e.pointerType !== "touch" || !n.value.length || v) return;
79
- let t = ee();
79
+ let t = y();
80
80
  t && (v = {
81
81
  id: e.pointerId,
82
82
  x: e.clientX,
@@ -87,7 +87,7 @@ function le(e) {
87
87
  lastX: e.clientX,
88
88
  lastT: e.timeStamp,
89
89
  vel: 0
90
- }, window.addEventListener("pointermove", S), window.addEventListener("pointerup", te), window.addEventListener("pointercancel", C));
90
+ }, window.addEventListener("pointermove", S), window.addEventListener("pointerup", w), window.addEventListener("pointercancel", T));
91
91
  }
92
92
  function x(e) {
93
93
  v && (v.level.style.transform = `translateX(${e}px)`, v.level.style.opacity = String(1 - .5 * Math.min(1, e / v.width)));
@@ -96,30 +96,30 @@ function le(e) {
96
96
  if (!v || e.pointerId !== v.id) return;
97
97
  let t = e.clientX - v.x, n = e.clientY - v.y;
98
98
  if (!v.active) {
99
- if (Math.hypot(t, n) < N) return;
100
- if (Math.abs(n) > Math.abs(t) || t < 0) return k();
99
+ if (Math.hypot(t, n) < ce) return;
100
+ if (Math.abs(n) > Math.abs(t) || t < 0) return A();
101
101
  v.active = !0, v.x = e.clientX, v.level.getAnimations().forEach((e) => e.finish());
102
102
  }
103
103
  let r = e.timeStamp - v.lastT;
104
104
  r > 0 && (v.vel = .8 * ((e.clientX - v.lastX) / r) + .2 * v.vel), v.lastX = e.clientX, v.lastT = e.timeStamp, x(Math.max(0, e.clientX - v.x));
105
105
  }
106
- function te(e) {
106
+ function w(e) {
107
107
  if (!v || e.pointerId !== v.id) return;
108
108
  let t = v;
109
- if (k(), !t.active) return;
110
- window.addEventListener("click", O, {
109
+ if (A(), !t.active) return;
110
+ window.addEventListener("click", k, {
111
111
  capture: !0,
112
112
  once: !0
113
113
  }), clearTimeout(E), E = setTimeout(D, 400);
114
114
  let n = Math.max(0, e.clientX - t.x);
115
- n > t.width * ce || t.vel > P ? (l = n, u = Number(t.level.style.opacity || 1), g()) : w(t.level, n);
115
+ n > t.width * F || t.vel > le ? (l = n, u = Number(t.level.style.opacity || 1), g()) : ee(t.level, n);
116
116
  }
117
- function C(e) {
117
+ function T(e) {
118
118
  if (!v || e.pointerId !== v.id) return;
119
119
  let t = v;
120
- k(), t.active && w(t.level, Math.max(0, t.lastX - t.x));
120
+ A(), t.active && ee(t.level, Math.max(0, t.lastX - t.x));
121
121
  }
122
- function w(e, n) {
122
+ function ee(e, n) {
123
123
  if (e.style.transform = "", e.style.opacity = "", a() || n < 1) return;
124
124
  let i = c.value?.clientWidth || 1;
125
125
  r(e, t(n, 0, 0, o.standard.defaultSpatial, .5), (e) => ({
@@ -129,52 +129,33 @@ function le(e) {
129
129
  }
130
130
  let E;
131
131
  function D() {
132
- clearTimeout(E), window.removeEventListener("click", O, { capture: !0 });
132
+ clearTimeout(E), window.removeEventListener("click", k, { capture: !0 });
133
133
  }
134
- function O(e) {
134
+ function k(e) {
135
135
  e.stopPropagation(), e.preventDefault();
136
136
  }
137
- function k() {
138
- v = null, window.removeEventListener("pointermove", S), window.removeEventListener("pointerup", te), window.removeEventListener("pointercancel", C);
137
+ function A() {
138
+ v = null, window.removeEventListener("pointermove", S), window.removeEventListener("pointerup", w), window.removeEventListener("pointercancel", T);
139
139
  }
140
- return ne(() => {
141
- k(), D();
140
+ return te(() => {
141
+ A(), D();
142
142
  }), {
143
143
  navStack: n,
144
144
  currentNav: i,
145
145
  navBox: c,
146
146
  navSlideEnter: d,
147
- navSlideLeave: p,
147
+ navSlideLeave: f,
148
148
  pushNav: h,
149
149
  popNav: g,
150
150
  resetNav: _,
151
- onNavPointerDown: y
151
+ onNavPointerDown: b
152
152
  };
153
153
  }
154
- function F(e, t, n, r = 8) {
155
- for (let i of e) if (i >= r && i + t <= n - r) return i;
156
- if (t >= n - 2 * r) return (n - t) / 2;
157
- let i = e[e.length - 1] ?? r;
158
- return Math.min(n - r - t, Math.max(r, i));
159
- }
160
- function I(e, t, n, r, i = 8) {
161
- let a = e.left, o = e.right - t, s = (e.left + e.right) / 2 < n / 2 ? i : n - i - t;
162
- return F(r === "start" ? [
163
- a,
164
- o,
165
- s
166
- ] : [
167
- o,
168
- a,
169
- s
170
- ], t, n, i);
171
- }
172
- //#endregion
173
- //#region src/components/MMenu.vue?vue&type=script&setup=true&lang.ts
154
+ // src/components/MMenu.vue?vue&type=script&setup=true&lang.ts
174
155
  var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root" }, B = {
175
156
  key: 0,
176
157
  class: "flex flex-col gap-1 px-1.5"
177
- }, V = { class: "overflow-hidden rounded-lg bg-surface-container" }, H = 1 / 240, U = /* @__PURE__ */ v({
158
+ }, V = { class: "overflow-hidden rounded-lg bg-surface-container" }, H = 1 / 240, U = /* @__PURE__ */ b({
178
159
  inheritAttrs: !1,
179
160
  __name: "MMenu",
180
161
  props: {
@@ -186,20 +167,20 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
186
167
  let n = e, r = re();
187
168
  function i(e) {
188
169
  let t = [];
189
- for (let n of e) n.type === l && Array.isArray(n.children) ? t.push(...i(n.children)) : t.push(n);
170
+ for (let n of e) n.type === d && Array.isArray(n.children) ? t.push(...i(n.children)) : t.push(n);
190
171
  return t;
191
172
  }
192
173
  function a(e) {
193
- if (e.type !== M) return !1;
174
+ if (e.type !== oe) return !1;
194
175
  let t = e.props?.gap;
195
176
  return t === "" || t === !0 || t === "true";
196
177
  }
197
- let o = f(() => {
178
+ let o = m(() => {
198
179
  if (n.variant !== "expressive") return null;
199
180
  let e = i(r.default?.({ close: $ }) ?? []), t = [[]];
200
181
  for (let n of e) a(n) ? t.push([]) : t[t.length - 1].push(n);
201
182
  return t.filter((e) => e.length > 0);
202
- }), v = f(() => !!o.value && o.value.length > 1), { navStack: k, currentNav: j, navBox: oe, navSlideEnter: se, navSlideLeave: N, pushNav: ce, popNav: P, onNavPointerDown: F } = le(() => be()), U = null;
183
+ }), c = m(() => !!o.value && o.value.length > 1), { navStack: b, currentNav: j, navBox: N, navSlideEnter: se, navSlideLeave: P, pushNav: ce, popNav: F, onNavPointerDown: le } = I(() => be()), U = null;
203
184
  function ue() {
204
185
  if (U) return U;
205
186
  let e = [], t = .8, n = 0, r = 0, i = 0;
@@ -244,15 +225,15 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
244
225
  function me(e, t) {
245
226
  fe(e, t, !1);
246
227
  }
247
- let K = T(!1), q = T(null), J = T(null), Y = T({}), X = ee("m-menu-panel-registry", /* @__PURE__ */ new Set());
248
- w("m-menu-panel-registry", X), ie(J, (e, t) => {
228
+ let K = O(!1), q = O(null), J = O(null), Y = O({}), X = x("m-menu-panel-registry", /* @__PURE__ */ new Set());
229
+ D("m-menu-panel-registry", X), ie(J, (e, t) => {
249
230
  t && X.delete(t), e && X.add(e);
250
- }), ne(() => {
231
+ }), te(() => {
251
232
  J.value && X.delete(J.value);
252
233
  });
253
- let Z = ee("m-menu-sibling-group", null);
254
- w("m-menu-sibling-group", { current: null });
255
- let Q = null, he = T(!1);
234
+ let Z = x("m-menu-sibling-group", null);
235
+ D("m-menu-sibling-group", { current: null });
236
+ let Q = null, he = O(!1);
256
237
  function ge() {
257
238
  if (!q.value) return;
258
239
  let e = q.value.getBoundingClientRect();
@@ -266,10 +247,10 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
266
247
  };
267
248
  he.value ? n.bottom = `${window.innerHeight - e.top + 4}px` : n.top = `${e.bottom + 4}px`, Y.value = n;
268
249
  }
269
- let _e = T(n.align === "right" ? "right" : "left");
250
+ let _e = O(n.align === "right" ? "right" : "left");
270
251
  function ve(e) {
271
252
  if (!Q) return;
272
- let t = e.offsetWidth, r = I(Q, t, window.innerWidth, n.align === "right" ? "end" : "start"), i = Math.min(t, Math.max(0, (Q.left + Q.right) / 2 - r)), a = Math.abs(r - Q.left) < 1 ? "left" : Math.abs(r + t - Q.right) < 1 ? "right" : `${i}px`;
253
+ let t = e.offsetWidth, r = u(Q, t, window.innerWidth, n.align === "right" ? "end" : "start"), i = Math.min(t, Math.max(0, (Q.left + Q.right) / 2 - r)), a = Math.abs(r - Q.left) < 1 ? "left" : Math.abs(r + t - Q.right) < 1 ? "right" : `${i}px`;
273
254
  _e.value = a, Y.value = {
274
255
  ...Y.value,
275
256
  left: `${r}px`
@@ -279,7 +260,7 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
279
260
  return J.value ? Array.from(J.value.querySelectorAll("button:not(:disabled), a[href]")) : [];
280
261
  }
281
262
  function be() {
282
- b(() => ye()[0]?.focus());
263
+ C(() => ye()[0]?.focus());
283
264
  }
284
265
  function xe(e) {
285
266
  let t = ye();
@@ -288,12 +269,12 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
288
269
  (n === -1 ? e === 1 ? t[0] : t[t.length - 1] : t[(n + e + t.length) % t.length])?.focus();
289
270
  }
290
271
  function Se() {
291
- K.value ? Z?.current === $ && (Z.current = null) : (Z && Z.current && Z.current !== $ && Z.current(), Z && (Z.current = $), ge(), k.value = []), K.value = !K.value, K.value && be();
272
+ K.value ? Z?.current === $ && (Z.current = null) : (Z && Z.current && Z.current !== $ && Z.current(), Z && (Z.current = $), ge(), b.value = []), K.value = !K.value, K.value && be();
292
273
  }
293
274
  function $() {
294
275
  Z?.current === $ && (Z.current = null), K.value = !1;
295
276
  }
296
- w("m-menu-close", $), w("m-menu-nav", {
277
+ D("m-menu-close", $), D("m-menu-nav", {
297
278
  mode: n.submenuMode,
298
279
  push: ce
299
280
  }), t({
@@ -313,78 +294,78 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
313
294
  for (let e of X) if (e.contains(t)) return;
314
295
  t.closest?.(".m3-submenu") || $();
315
296
  }
316
- c(() => K.value, () => k.value.length ? P() : $());
297
+ l(() => K.value, () => b.value.length ? F() : $());
317
298
  function Te(e) {
318
299
  K.value && (e.key === "ArrowDown" ? (e.preventDefault(), xe(1)) : e.key === "ArrowUp" && (e.preventDefault(), xe(-1)));
319
300
  }
320
- te(() => {
301
+ ee(() => {
321
302
  document.addEventListener("mousedown", Ce), document.addEventListener("keydown", Te), window.addEventListener("scroll", we, !0);
322
- }), ne(() => {
303
+ }), te(() => {
323
304
  document.removeEventListener("mousedown", Ce), document.removeEventListener("keydown", Te), window.removeEventListener("scroll", we, !0), G ? G() : W?.();
324
305
  });
325
- let Ee = f(() => `${_e.value} ${he.value ? "bottom" : "top"}`);
326
- return (t, n) => (C(), h(l, null, [g("div", y({
306
+ let Ee = m(() => `${_e.value} ${he.value ? "bottom" : "top"}`);
307
+ return (t, n) => (E(), _(d, null, [v("div", S({
327
308
  ref_key: "triggerEl",
328
309
  ref: q
329
310
  }, t.$attrs, {
330
311
  class: "inline-block",
331
312
  onClick: Se
332
- }), [D(t.$slots, "trigger", { open: K.value })], 16), (C(), p(u, { to: "body" }, [_(d, {
313
+ }), [A(t.$slots, "trigger", { open: K.value })], 16), (E(), h(f, { to: "body" }, [y(p, {
333
314
  css: !1,
334
315
  onEnter: pe,
335
316
  onLeave: me
336
317
  }, {
337
- default: ae(() => [K.value ? (C(), h("div", {
318
+ default: ae(() => [K.value ? (E(), _("div", {
338
319
  key: 0,
339
320
  ref_key: "dropdownEl",
340
321
  ref: J,
341
- class: x(["fixed z-500 min-w-48", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", v.value ? "" : "shadow-elevation-2"]]),
342
- style: S({
322
+ class: w(["fixed z-500 min-w-48", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", c.value ? "" : "shadow-elevation-2"]]),
323
+ style: T({
343
324
  ...Y.value,
344
325
  transformOrigin: Ee.value
345
326
  })
346
- }, [g("div", { class: x(["overflow-hidden", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", v.value ? "" : "bg-surface-container"]]) }, [g("div", {
327
+ }, [v("div", { class: w(["overflow-hidden", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", c.value ? "" : "bg-surface-container"]]) }, [v("div", {
347
328
  ref_key: "navBox",
348
- ref: oe,
329
+ ref: N,
349
330
  class: "relative overflow-x-hidden overflow-y-auto overscroll-contain py-1",
350
- style: S({
331
+ style: T({
351
332
  maxHeight: Y.value.maxHeight,
352
- touchAction: A(j) ? "pan-y" : void 0
333
+ touchAction: M(j) ? "pan-y" : void 0
353
334
  }),
354
- onPointerdown: n[1] ||= (...e) => A(F) && A(F)(...e)
355
- }, [_(d, {
335
+ onPointerdown: n[1] ||= (...e) => M(le) && M(le)(...e)
336
+ }, [y(p, {
356
337
  css: !1,
357
- onEnter: A(se),
358
- onLeave: A(N)
338
+ onEnter: M(se),
339
+ onLeave: M(P)
359
340
  }, {
360
- default: ae(() => [A(j) ? (C(), h("div", {
361
- key: A(k).length,
362
- "data-menu-level": A(k).length
341
+ default: ae(() => [M(j) ? (E(), _("div", {
342
+ key: M(b).length,
343
+ "data-menu-level": M(b).length
363
344
  }, [
364
- g("button", {
345
+ v("button", {
365
346
  type: "button",
366
347
  class: "flex w-full items-center gap-3 px-4 py-2.5 text-left text-label-large text-on-surface-variant outline-none transition-colors hover:bg-on-surface/8 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
367
- onClick: n[0] ||= (...e) => A(P) && A(P)(...e)
368
- }, [_(s, {
348
+ onClick: n[0] ||= (...e) => M(F) && M(F)(...e)
349
+ }, [y(s, {
369
350
  name: "arrow_back",
370
351
  size: 20,
371
352
  class: "shrink-0"
372
- }), g("span", R, [(C(), p(O(() => A(j)?.header?.())))])]),
373
- n[2] ||= g("hr", { class: "my-1 border-outline-variant" }, null, -1),
374
- (C(), p(O(() => A(j)?.content?.())))
375
- ], 8, L)) : (C(), h("div", z, [v.value ? (C(), h("div", B, [(C(!0), h(l, null, E(o.value, (e, t) => (C(), h("div", {
353
+ }), v("span", R, [(E(), h(ne(() => M(j)?.header?.())))])]),
354
+ n[2] ||= v("hr", { class: "my-1 border-outline-variant" }, null, -1),
355
+ (E(), h(ne(() => M(j)?.content?.())))
356
+ ], 8, L)) : (E(), _("div", z, [c.value ? (E(), _("div", B, [(E(!0), _(d, null, k(o.value, (e, t) => (E(), _("div", {
376
357
  key: t,
377
358
  class: "rounded-lg shadow-elevation-2"
378
- }, [g("div", V, [(C(), p(O(() => e)))])]))), 128))])) : D(t.$slots, "default", { close: $ }, void 0, void 0, 1)]))]),
359
+ }, [v("div", V, [(E(), h(ne(() => e)))])]))), 128))])) : A(t.$slots, "default", { close: $ }, void 0, void 0, 1)]))]),
379
360
  _: 3
380
- }, 8, ["onEnter", "onLeave"])], 36)], 2)], 6)) : m("", !0)]),
361
+ }, 8, ["onEnter", "onLeave"])], 36)], 2)], 6)) : g("", !0)]),
381
362
  _: 3
382
363
  })]))], 64));
383
364
  }
384
365
  }), ue = ["data-m3-menu-choice"], de = { class: "flex-1" }, W = {
385
366
  key: 3,
386
367
  class: "ml-4 shrink-0 text-label-small text-on-surface-variant opacity-60"
387
- }, G = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, fe = 32, pe = /* @__PURE__ */ v({
368
+ }, G = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, fe = 32, pe = /* @__PURE__ */ b({
388
369
  __name: "MMenuItem",
389
370
  props: {
390
371
  icon: {},
@@ -414,21 +395,21 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
414
395
  },
415
396
  emits: ["click", "update:checked"],
416
397
  setup(t, { emit: r }) {
417
- let a = t, o = r, c = re(), l = f(() => a.checked !== void 0), v = f(() => l.value || a.selected !== void 0), y = f(() => !!(a.checked ?? a.selected)), w = f(() => v.value && !a.icon && !c.icon), E = f(() => a.selectedIcon ?? (a.icon ? void 0 : "check")), j = T("single");
418
- function M() {
398
+ let a = t, o = r, l = re(), u = m(() => a.checked !== void 0), d = m(() => u.value || a.selected !== void 0), b = m(() => !!(a.checked ?? a.selected)), S = m(() => d.value && !a.icon && !l.icon), D = m(() => a.selectedIcon ?? (a.icon ? void 0 : "check")), k = O("single");
399
+ function N() {
419
400
  let e = L.value;
420
- if (!e || !v.value) return;
401
+ if (!e || !d.value) return;
421
402
  let t = (e) => !!e?.hasAttribute("data-m3-menu-choice"), n = t(e.previousElementSibling), r = t(e.nextElementSibling);
422
- j.value = n && r ? "middle" : n ? "last" : r ? "first" : "single";
403
+ k.value = n && r ? "middle" : n ? "last" : r ? "first" : "single";
423
404
  }
424
405
  function oe() {
425
- if (y.value) return [
406
+ if (b.value) return [
426
407
  12,
427
408
  12,
428
409
  12,
429
410
  12
430
411
  ];
431
- let e = j.value === "first" ? 12 : 4, t = j.value === "last" ? 12 : 4;
412
+ let e = k.value === "first" ? 12 : 4, t = k.value === "last" ? 12 : 4;
432
413
  return [
433
414
  e,
434
415
  e,
@@ -436,20 +417,20 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
436
417
  t
437
418
  ];
438
419
  }
439
- let { snap: se } = i(() => v.value ? [...oe(), w.value && y.value ? fe : 0] : [], ([e, t, n, r, i]) => {
420
+ let { snap: se } = i(() => d.value ? [...oe(), S.value && b.value ? fe : 0] : [], ([e, t, n, r, i]) => {
440
421
  let a = R.value instanceof HTMLElement ? R.value : R.value?.$el;
441
422
  a && r !== void 0 && (a.style.borderRadius = `${e}px ${t}px ${n}px ${r}px`), z.value && i !== void 0 && (z.value.style.width = `${i}px`);
442
423
  }, e);
443
- ie(j, () => se());
444
- let N = null;
445
- te(() => {
446
- M();
424
+ ie(k, () => se());
425
+ let P = null;
426
+ ee(() => {
427
+ N();
447
428
  let e = L.value?.parentElement;
448
- e && (N = new MutationObserver(M), N.observe(e, { childList: !0 }));
449
- }), ne(() => N?.disconnect()), ie(v, () => b(M)), i(() => w.value ? [+!!y.value] : [], ([e]) => {
429
+ e && (P = new MutationObserver(N), P.observe(e, { childList: !0 }));
430
+ }), te(() => P?.disconnect()), ie(d, () => C(N)), i(() => S.value ? [+!!b.value] : [], ([e]) => {
450
431
  z.value && e !== void 0 && (z.value.style.opacity = String(e));
451
432
  }, n);
452
- let ce = f(() => a.to ? "RouterLink" : "button"), P = f(() => !!c.children), le = ee("m-menu-close", null), I = ee("m-menu-nav", null), L = T(), R = T(), z = T(), B = T(!1), V = T({});
433
+ let ce = m(() => a.to ? "RouterLink" : "button"), F = m(() => !!l.children), le = x("m-menu-close", null), I = x("m-menu-nav", null), L = O(), R = O(), z = O(), B = O(!1), V = O({});
453
434
  function H() {
454
435
  if (!L.value) return;
455
436
  let e = L.value.getBoundingClientRect();
@@ -465,7 +446,7 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
465
446
  if (!L.value) return;
466
447
  let t = e, n = L.value.getBoundingClientRect();
467
448
  t.style.left = "0px";
468
- let r = t.offsetWidth, i = t.offsetHeight, a = F([n.right, n.left - r], r, window.innerWidth), o = F([n.top, n.bottom - i], i, window.innerHeight);
449
+ let r = t.offsetWidth, i = t.offsetHeight, a = c([n.right, n.left - r], r, window.innerWidth), o = c([n.top, n.bottom - i], i, window.innerHeight);
469
450
  V.value = {
470
451
  ...V.value,
471
452
  left: `${a}px`,
@@ -473,27 +454,17 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
473
454
  }, t.style.left = `${a}px`, t.style.top = `${o}px`;
474
455
  }
475
456
  function pe() {
476
- if (B.value) {
477
- B.value = !1;
478
- return;
479
- }
480
- H(), B.value = !0;
457
+ B.value ? B.value = !1 : (H(), B.value = !0);
481
458
  }
482
459
  function me() {
483
- if (!a.disabled) {
484
- if (P.value) {
485
- I?.mode === "push" ? I.push({
486
- icon: a.icon,
487
- header: c.default,
488
- content: c.children
489
- }) : pe();
490
- return;
491
- }
492
- l.value && o("update:checked", !a.checked), o("click"), (a.keepOpen ?? l.value) || le?.();
493
- }
460
+ a.disabled || (F.value ? I?.mode === "push" ? I.push({
461
+ icon: a.icon,
462
+ header: l.default,
463
+ content: l.children
464
+ }) : pe() : (u.value && o("update:checked", !a.checked), o("click"), (a.keepOpen ?? u.value) || le?.()));
494
465
  }
495
466
  function K(e) {
496
- e.pointerType === "mouse" && P.value && !a.disabled && (H(), B.value = !0);
467
+ e.pointerType === "mouse" && F.value && !a.disabled && (H(), B.value = !0);
497
468
  }
498
469
  function q(e) {
499
470
  e.pointerType === "mouse" && (e.relatedTarget?.closest(".m3-submenu") || (B.value = !1));
@@ -503,22 +474,22 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
503
474
  let t = e.relatedTarget;
504
475
  t?.closest(".m3-submenu") || L.value?.contains(t) || (B.value = !1);
505
476
  }
506
- return (e, n) => (C(), h("div", {
477
+ return (e, n) => (E(), _("div", {
507
478
  ref_key: "itemEl",
508
479
  ref: L,
509
- "data-m3-menu-choice": v.value || void 0,
480
+ "data-m3-menu-choice": d.value || void 0,
510
481
  onPointerenter: K,
511
482
  onPointerleave: q
512
- }, [(C(), p(O(ce.value), {
483
+ }, [(E(), h(ne(ce.value), {
513
484
  ref_key: "controlEl",
514
485
  ref: R,
515
486
  to: t.to || void 0,
516
487
  type: t.to ? void 0 : "button",
517
- role: v.value ? l.value ? "menuitemcheckbox" : "menuitemradio" : void 0,
518
- "aria-checked": v.value ? y.value : void 0,
519
- class: x(["flex items-center gap-3 py-2.5 text-left text-body-large transition-colors outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", v.value ? [
488
+ role: d.value ? u.value ? "menuitemcheckbox" : "menuitemradio" : void 0,
489
+ "aria-checked": d.value ? b.value : void 0,
490
+ class: w(["flex items-center gap-3 py-2.5 text-left text-body-large transition-colors outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", d.value ? [
520
491
  "relative mx-1 w-[calc(100%-0.5rem)] px-3 duration-150 before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:bg-current before:opacity-0 before:transition-opacity",
521
- y.value ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface",
492
+ b.value ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface",
522
493
  t.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer hover:before:opacity-[0.08] active:before:opacity-[0.12]"
523
494
  ] : [
524
495
  "w-full px-4",
@@ -527,12 +498,12 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
527
498
  !t.disabled && !t.danger ? "text-on-surface hover:bg-on-surface/8" : ""
528
499
  ]]),
529
500
  disabled: t.disabled || void 0,
530
- "aria-haspopup": P.value ? "menu" : void 0,
531
- "aria-expanded": P.value ? B.value : void 0,
501
+ "aria-haspopup": F.value ? "menu" : void 0,
502
+ "aria-expanded": F.value ? B.value : void 0,
532
503
  onClick: me
533
504
  }, {
534
505
  default: ae(() => [
535
- w.value ? (C(), h("span", {
506
+ S.value ? (E(), _("span", {
536
507
  key: 0,
537
508
  ref_key: "iconSlotEl",
538
509
  ref: z,
@@ -541,32 +512,32 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
541
512
  width: "0",
542
513
  opacity: "0"
543
514
  }
544
- }, [_(s, {
545
- name: E.value,
515
+ }, [y(s, {
516
+ name: D.value,
546
517
  size: 20,
547
518
  class: "shrink-0"
548
- }, null, 8, ["name"])], 512)) : e.$slots.icon ? (C(), h("span", {
519
+ }, null, 8, ["name"])], 512)) : e.$slots.icon ? (E(), _("span", {
549
520
  key: 1,
550
- class: x(["flex size-5 shrink-0 items-center justify-center", v.value ? y.value ? "" : "text-on-surface-variant" : t.danger ? "text-error" : "text-on-surface-variant"])
551
- }, [D(e.$slots, "icon", { on: y.value })], 2)) : t.icon ? (C(), p(s, {
521
+ class: w(["flex size-5 shrink-0 items-center justify-center", d.value ? b.value ? "" : "text-on-surface-variant" : t.danger ? "text-error" : "text-on-surface-variant"])
522
+ }, [A(e.$slots, "icon", { on: b.value })], 2)) : t.icon ? (E(), h(s, {
552
523
  key: 2,
553
- name: y.value && E.value ? E.value : t.icon,
554
- filled: y.value && !E.value,
524
+ name: b.value && D.value ? D.value : t.icon,
525
+ filled: b.value && !D.value,
555
526
  size: 20,
556
- class: x(["shrink-0", v.value ? y.value ? "" : "text-on-surface-variant" : t.danger ? "text-error" : "text-on-surface-variant"])
527
+ class: w(["shrink-0", d.value ? b.value ? "" : "text-on-surface-variant" : t.danger ? "text-error" : "text-on-surface-variant"])
557
528
  }, null, 8, [
558
529
  "name",
559
530
  "filled",
560
531
  "class"
561
- ])) : m("", !0),
562
- g("span", de, [D(e.$slots, "default")]),
563
- t.shortcut && !P.value ? (C(), h("span", W, k(t.shortcut), 1)) : m("", !0),
564
- P.value ? (C(), p(s, {
532
+ ])) : g("", !0),
533
+ v("span", de, [A(e.$slots, "default")]),
534
+ t.shortcut && !F.value ? (E(), _("span", W, j(t.shortcut), 1)) : g("", !0),
535
+ F.value ? (E(), h(s, {
565
536
  key: 4,
566
537
  name: "chevron_right",
567
538
  size: 18,
568
539
  class: "shrink-0 text-on-surface-variant"
569
- })) : m("", !0)
540
+ })) : g("", !0)
570
541
  ]),
571
542
  _: 3
572
543
  }, 8, [
@@ -578,27 +549,26 @@ var L = ["data-menu-level"], R = { class: "flex-1 truncate" }, z = { key: "root"
578
549
  "disabled",
579
550
  "aria-haspopup",
580
551
  "aria-expanded"
581
- ])), P.value && A(I)?.mode !== "push" ? (C(), p(u, {
552
+ ])), F.value && M(I)?.mode !== "push" ? (E(), h(f, {
582
553
  key: 0,
583
554
  to: "body"
584
- }, [_(d, {
555
+ }, [y(p, {
585
556
  "enter-active-class": "transition-opacity duration-100",
586
557
  "enter-from-class": "opacity-0",
587
558
  "leave-active-class": "transition-opacity duration-75",
588
559
  "leave-to-class": "opacity-0",
589
560
  onEnter: U
590
561
  }, {
591
- default: ae(() => [B.value ? (C(), h("div", {
562
+ default: ae(() => [B.value ? (E(), _("div", {
592
563
  key: 0,
593
564
  class: "m3-submenu min-w-44 rounded-xs shadow-elevation-2",
594
- style: S(V.value),
565
+ style: T(V.value),
595
566
  onPointerleave: J
596
- }, [g("div", G, [D(e.$slots, "children")])], 36)) : m("", !0)]),
567
+ }, [v("div", G, [A(e.$slots, "children")])], 36)) : g("", !0)]),
597
568
  _: 3
598
- })])) : m("", !0)], 40, ue));
569
+ })])) : g("", !0)], 40, ue));
599
570
  }
600
571
  });
601
- //#endregion
602
- export { le as a, F as i, U as n, M as o, I as r, pe as t };
572
+ export { oe as i, U as n, I as r, pe as t };
603
573
 
604
- //# sourceMappingURL=MMenuItem-Bih0h4-n.js.map
574
+ //# sourceMappingURL=MMenuItem-BuxYoASE.js.map