@m3ui-vue/m3ui-vue 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/API.md +34 -19
  2. package/dist/MButton-LiZRRP4h.js +171 -0
  3. package/dist/MButton-LiZRRP4h.js.map +1 -0
  4. package/dist/{MColorPickerModal-H8nuX0Wu.js → MColorPickerModal-IjciC8zh.js} +185 -184
  5. package/dist/MColorPickerModal-IjciC8zh.js.map +1 -0
  6. package/dist/MDialog-BLpfgIA3.js +167 -0
  7. package/dist/MDialog-BLpfgIA3.js.map +1 -0
  8. package/dist/MIcon-BSsJZhK7.js +116 -0
  9. package/dist/MIcon-BSsJZhK7.js.map +1 -0
  10. package/dist/{MIconButton-BBggVwBV.js → MIconButton-CNjN0xwW.js} +18 -18
  11. package/dist/{MIconButton-BBggVwBV.js.map → MIconButton-CNjN0xwW.js.map} +1 -1
  12. package/dist/{MListItem-DiOAxaN7.js → MListItem-BBQ-6i3v.js} +139 -139
  13. package/dist/MListItem-BBQ-6i3v.js.map +1 -0
  14. package/dist/{MLoadingIndicator-CuTZYFFj.js → MLoadingIndicator-dejdXpu8.js} +2 -2
  15. package/dist/{MLoadingIndicator-CuTZYFFj.js.map → MLoadingIndicator-dejdXpu8.js.map} +1 -1
  16. package/dist/MMenuItem-E31tMzOt.js +577 -0
  17. package/dist/MMenuItem-E31tMzOt.js.map +1 -0
  18. package/dist/MPdfViewer-B5Q9Xs9d.js +1866 -0
  19. package/dist/MPdfViewer-B5Q9Xs9d.js.map +1 -0
  20. package/dist/MProgressBar-CPrZhQbA.js +179 -0
  21. package/dist/MProgressBar-CPrZhQbA.js.map +1 -0
  22. package/dist/{MSeekBar-BCDQTx2t.js → MSeekBar-NwkuAzx-.js} +2 -2
  23. package/dist/{MSeekBar-BCDQTx2t.js.map → MSeekBar-NwkuAzx-.js.map} +1 -1
  24. package/dist/{MSegmentedButton-BXzRsg1S.js → MSegmentedButton-DZuZLBML.js} +4 -4
  25. package/dist/{MSegmentedButton-BXzRsg1S.js.map → MSegmentedButton-DZuZLBML.js.map} +1 -1
  26. package/dist/MSignaturePad-Bqr-1R9f.js +140 -0
  27. package/dist/MSignaturePad-Bqr-1R9f.js.map +1 -0
  28. package/dist/MSlider-B7dIcHVn.js +745 -0
  29. package/dist/MSlider-B7dIcHVn.js.map +1 -0
  30. package/dist/{MSpinner-UCdtSOHP.js → MSpinner-CXLY7lWw.js} +2 -2
  31. package/dist/{MSpinner-UCdtSOHP.js.map → MSpinner-CXLY7lWw.js.map} +1 -1
  32. package/dist/{MTextField-CYk9yFvi.js → MTextField-CryHMs8-.js} +18 -18
  33. package/dist/MTextField-CryHMs8-.js.map +1 -0
  34. package/dist/MTooltip-Cn_DYm9M.js +90 -0
  35. package/dist/MTooltip-Cn_DYm9M.js.map +1 -0
  36. package/dist/{_popupPosition-nL8SVKPK.js → _popupPosition-C_lxj9qU.js} +7 -7
  37. package/dist/_popupPosition-C_lxj9qU.js.map +1 -0
  38. package/dist/{_useFieldValidation-B0B44M_t.js → _useFieldValidation-CvZnZfl-.js} +2 -2
  39. package/dist/{_useFieldValidation-B0B44M_t.js.map → _useFieldValidation-CvZnZfl-.js.map} +1 -1
  40. package/dist/api.json +1 -1
  41. package/dist/code-editor.js +129 -128
  42. package/dist/code-editor.js.map +1 -1
  43. package/dist/components/MAddressField.vue.d.ts +1 -1
  44. package/dist/components/MAudioPlayer.vue.d.ts +1 -1
  45. package/dist/components/MAutocomplete.vue.d.ts +1 -1
  46. package/dist/components/MAvailabilityCalendar.vue.d.ts +3 -3
  47. package/dist/components/MBadge.vue.d.ts +2 -2
  48. package/dist/components/MBar.vue.d.ts +1 -1
  49. package/dist/components/MBeforeAfter.vue.d.ts +3 -3
  50. package/dist/components/MButton.vue.d.ts +1 -1
  51. package/dist/components/MCalendarHeatmap.vue.d.ts +1 -1
  52. package/dist/components/MChatBubble.vue.d.ts +1 -1
  53. package/dist/components/MCodeEditor.vue.d.ts +1 -1
  54. package/dist/components/MContainerTransform.vue.d.ts +1 -1
  55. package/dist/components/MCopyButton.vue.d.ts +2 -2
  56. package/dist/components/MCountrySelect.vue.d.ts +1 -1
  57. package/dist/components/MCreditCardInput.vue.d.ts +2 -2
  58. package/dist/components/MDiffViewer.vue.d.ts +1 -1
  59. package/dist/components/MDrawCanvas.vue.d.ts +2 -2
  60. package/dist/components/MExpansionPanel.vue.d.ts +1 -1
  61. package/dist/components/MExportButton.vue.d.ts +1 -1
  62. package/dist/components/MFab.vue.d.ts +1 -1
  63. package/dist/components/MFilterBuilder.vue.d.ts +1 -1
  64. package/dist/components/MFlex.vue.d.ts +2 -2
  65. package/dist/components/MFloorPlan.vue.d.ts +2 -2
  66. package/dist/components/MFlow.vue.d.ts +2 -2
  67. package/dist/components/MFormRenderer.vue.d.ts +2 -2
  68. package/dist/components/MGantt.vue.d.ts +2 -2
  69. package/dist/components/MGanttControls.vue.d.ts +1 -1
  70. package/dist/components/MGrid.vue.d.ts +1 -1
  71. package/dist/components/MIcon.vue.d.ts +3 -5
  72. package/dist/components/MIconButton.vue.d.ts +1 -1
  73. package/dist/components/MLightbox.vue.d.ts +2 -2
  74. package/dist/components/MMapMeasure.vue.d.ts +2 -2
  75. package/dist/components/MMenu.vue.d.ts +6 -3
  76. package/dist/components/MMortgageCalculator.vue.d.ts +2 -2
  77. package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
  78. package/dist/components/MMultiSelect.vue.d.ts +1 -1
  79. package/dist/components/MNavigationDrawer.vue.d.ts +5 -4
  80. package/dist/components/MNavigationRail.vue.d.ts +1 -1
  81. package/dist/components/MNumberField.vue.d.ts +1 -1
  82. package/dist/components/MOdontogram.vue.d.ts +2 -2
  83. package/dist/components/MPdfSigner.vue.d.ts +1 -1
  84. package/dist/components/MPhoneInput.vue.d.ts +2 -2
  85. package/dist/components/MPinInput.vue.d.ts +3 -3
  86. package/dist/components/MPosKeypad.vue.d.ts +1 -1
  87. package/dist/components/MProductConfigurator.vue.d.ts +1 -1
  88. package/dist/components/MResourceTimeline.vue.d.ts +2 -2
  89. package/dist/components/MRichTextEditor.vue.d.ts +1 -1
  90. package/dist/components/MScheme.vue.d.ts +1 -1
  91. package/dist/components/MSearchBar.vue.d.ts +2 -2
  92. package/dist/components/MSearchField.vue.d.ts +1 -1
  93. package/dist/components/MSeatMap.vue.d.ts +1 -1
  94. package/dist/components/MSeekBar.vue.d.ts +2 -2
  95. package/dist/components/MSelect.vue.d.ts +1 -1
  96. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  97. package/dist/components/MSkeleton.vue.d.ts +1 -1
  98. package/dist/components/MSpreadsheet.vue.d.ts +2 -2
  99. package/dist/components/MStack.vue.d.ts +2 -2
  100. package/dist/components/MSubtitle.vue.d.ts +1 -1
  101. package/dist/components/MSwipeToDismiss.vue.d.ts +1 -1
  102. package/dist/components/MSwitch.vue.d.ts +1 -1
  103. package/dist/components/MTagInput.vue.d.ts +1 -1
  104. package/dist/components/MText.vue.d.ts +1 -1
  105. package/dist/components/MTextField.vue.d.ts +3 -3
  106. package/dist/components/MTimeScroll.vue.d.ts +1 -1
  107. package/dist/components/MTimezoneSelect.vue.d.ts +1 -1
  108. package/dist/components/MTitle.vue.d.ts +1 -1
  109. package/dist/components/MToolbar.vue.d.ts +1 -1
  110. package/dist/components/MTooltip.vue.d.ts +1 -1
  111. package/dist/components/MTopAppBar.vue.d.ts +2 -2
  112. package/dist/components/MVitalsChart.vue.d.ts +1 -1
  113. package/dist/components/MWindow.vue.d.ts +3 -3
  114. package/dist/components/_MDrawerItemList.vue.d.ts +8 -1
  115. package/dist/composables/_fieldLayout.d.ts +8 -8
  116. package/dist/composables/_popupPosition.d.ts +3 -2
  117. package/dist/composables/_rtl.d.ts +26 -0
  118. package/dist/composables/useColorPalette.d.ts +1 -1
  119. package/dist/composables/useLocale.d.ts +4 -0
  120. package/dist/draw.js +5 -5
  121. package/dist/flow.js +2 -2
  122. package/dist/gantt.js +3 -3
  123. package/dist/locales/ar.d.ts +6 -0
  124. package/dist/locales/index.d.ts +1 -0
  125. package/dist/locales/index.js +768 -1
  126. package/dist/locales/index.js.map +1 -1
  127. package/dist/m3ui-vue.css +1 -1
  128. package/dist/m3ui.js +11962 -12039
  129. package/dist/m3ui.js.map +1 -1
  130. package/dist/map.js +1127 -1149
  131. package/dist/map.js.map +1 -1
  132. package/dist/markdown.js +1 -1
  133. package/dist/markdown.js.map +1 -1
  134. package/dist/media.js +7 -7
  135. package/dist/pdf-sign.d.ts +3 -0
  136. package/dist/pdf-sign.js +548 -0
  137. package/dist/pdf-sign.js.map +1 -0
  138. package/dist/pdf.d.ts +0 -3
  139. package/dist/pdf.js +1 -2400
  140. package/dist/plugin.d.ts +8 -0
  141. package/dist/rich-text-editor.js +79 -77
  142. package/dist/rich-text-editor.js.map +1 -1
  143. package/dist/styles/theme.css +13 -0
  144. package/dist/styles.css +1 -1
  145. package/dist/terminal.js +5 -2
  146. package/dist/terminal.js.map +1 -1
  147. package/dist/{useLocale-DL96OFgr.js → useLocale-ybIju59R.js} +3 -1
  148. package/dist/useLocale-ybIju59R.js.map +1 -0
  149. package/dist/vTooltip-xESB2YOb.js +154 -0
  150. package/dist/vTooltip-xESB2YOb.js.map +1 -0
  151. package/package.json +5 -1
  152. package/src/__tests__/MAddressField.test.ts +1 -1
  153. package/src/__tests__/MChip.test.ts +3 -3
  154. package/src/__tests__/MFab.test.ts +6 -6
  155. package/src/__tests__/MListItemNestedControl.test.ts +2 -2
  156. package/src/__tests__/MScheduler.test.ts +1 -1
  157. package/src/__tests__/MTrackingTimeline.test.ts +1 -1
  158. package/src/__tests__/MWindow.test.ts +16 -0
  159. package/src/__tests__/fieldOverflow.test.ts +9 -9
  160. package/src/__tests__/hydration.test.ts +39 -0
  161. package/src/__tests__/localePresets.test.ts +2 -0
  162. package/src/__tests__/rtl.test.ts +167 -0
  163. package/src/__tests__/ssr.test.ts +6 -0
  164. package/src/components/MAlert.vue +1 -1
  165. package/src/components/MAutocomplete.vue +7 -7
  166. package/src/components/MAvailabilityCalendar.vue +5 -3
  167. package/src/components/MBadge.vue +12 -3
  168. package/src/components/MBar.vue +1 -1
  169. package/src/components/MBottomAppBar.vue +1 -1
  170. package/src/components/MCalendar.vue +3 -3
  171. package/src/components/MCalendarHeatmap.vue +3 -3
  172. package/src/components/MChatBubble.vue +3 -3
  173. package/src/components/MChip.vue +6 -6
  174. package/src/components/MCodeEditor.vue +7 -3
  175. package/src/components/MColorPicker.vue +1 -1
  176. package/src/components/MCommandPalette.vue +1 -1
  177. package/src/components/MContainerTransform.vue +1 -1
  178. package/src/components/MContextMenu.vue +1 -1
  179. package/src/components/MDataTable.vue +5 -5
  180. package/src/components/MDatePicker.vue +3 -2
  181. package/src/components/MDateRangePicker.vue +3 -2
  182. package/src/components/MDialog.vue +5 -5
  183. package/src/components/MDiffViewer.vue +1 -1
  184. package/src/components/MDivider.vue +1 -1
  185. package/src/components/MDragDropList.vue +1 -1
  186. package/src/components/MEmojiSelector.vue +11 -7
  187. package/src/components/MExpansionPanel.vue +1 -1
  188. package/src/components/MFab.vue +5 -5
  189. package/src/components/MFormBuilder.vue +3 -3
  190. package/src/components/MIcon.vue +14 -2
  191. package/src/components/MJsonEditor.vue +1 -3
  192. package/src/components/MJsonViewer.vue +1 -1
  193. package/src/components/MKanban.vue +2 -1
  194. package/src/components/MListDetail.vue +2 -2
  195. package/src/components/MListGroup.vue +1 -1
  196. package/src/components/MListItem.vue +5 -5
  197. package/src/components/MListSubheader.vue +1 -1
  198. package/src/components/MMapDraw.vue +3 -2
  199. package/src/components/MMapHover.vue +2 -1
  200. package/src/components/MMapMeasure.vue +2 -1
  201. package/src/components/MMapRoute.vue +2 -1
  202. package/src/components/MMarkdown.vue +9 -6
  203. package/src/components/MMaskField.vue +6 -6
  204. package/src/components/MMenu.vue +13 -6
  205. package/src/components/MMenuItem.vue +8 -6
  206. package/src/components/MMultiAutocomplete.vue +9 -8
  207. package/src/components/MMultiSelect.vue +9 -8
  208. package/src/components/MNavigationDrawer.vue +39 -27
  209. package/src/components/MNavigationRail.vue +28 -19
  210. package/src/components/MNavigationSuite.vue +1 -1
  211. package/src/components/MNotificationCenter.vue +1 -1
  212. package/src/components/MNotificationHost.vue +1 -1
  213. package/src/components/MNumberField.vue +6 -6
  214. package/src/components/MOrderTicket.vue +1 -1
  215. package/src/components/MPageProgress.vue +1 -1
  216. package/src/components/MPdfSigner.vue +1 -1
  217. package/src/components/MPhoneInput.vue +5 -4
  218. package/src/components/MPinInput.vue +3 -2
  219. package/src/components/MPosKeypad.vue +2 -1
  220. package/src/components/MProductConfigurator.vue +2 -1
  221. package/src/components/MProgressBar.vue +2 -2
  222. package/src/components/MRichTextEditor.vue +8 -4
  223. package/src/components/MScheduler.vue +14 -14
  224. package/src/components/MSearchField.vue +1 -1
  225. package/src/components/MSeatMap.vue +2 -1
  226. package/src/components/MSegmentedButton.vue +1 -1
  227. package/src/components/MSelect.vue +7 -7
  228. package/src/components/MSideSheet.vue +3 -2
  229. package/src/components/MSimpleCarousel.vue +20 -11
  230. package/src/components/MSlider.vue +15 -5
  231. package/src/components/MSnackbar.vue +2 -2
  232. package/src/components/MSplitButton.vue +3 -2
  233. package/src/components/MSplitter.vue +6 -3
  234. package/src/components/MSpotlightSearch.vue +1 -1
  235. package/src/components/MSwitch.vue +5 -5
  236. package/src/components/MTable.vue +3 -3
  237. package/src/components/MTabs.vue +4 -1
  238. package/src/components/MTagInput.vue +6 -6
  239. package/src/components/MTerminal.vue +1 -1
  240. package/src/components/MText.vue +1 -1
  241. package/src/components/MTextField.vue +7 -7
  242. package/src/components/MTimePicker.vue +3 -2
  243. package/src/components/MTimePickerModal.vue +2 -2
  244. package/src/components/MTimeScroll.vue +1 -1
  245. package/src/components/MTimeline.vue +12 -12
  246. package/src/components/MToolbar.vue +3 -3
  247. package/src/components/MTrackingTimeline.vue +3 -2
  248. package/src/components/MTransition.vue +8 -3
  249. package/src/components/MTreeTable.vue +1 -1
  250. package/src/components/MTypewriter.vue +1 -1
  251. package/src/components/MVirtualTable.vue +2 -2
  252. package/src/components/MWindow.vue +4 -3
  253. package/src/components/_MColorPanel.vue +5 -4
  254. package/src/components/_MDrawerItemList.vue +9 -5
  255. package/src/components/_MMapAttribution.vue +2 -1
  256. package/src/components/_MMonthYearButton.vue +1 -1
  257. package/src/components/_MTransferPane.vue +8 -1
  258. package/src/components/_MTreeNode.vue +3 -3
  259. package/src/components/_MYearGrid.vue +4 -2
  260. package/src/composables/_fieldLayout.ts +19 -19
  261. package/src/composables/_popupPosition.ts +5 -3
  262. package/src/composables/_rtl.ts +76 -0
  263. package/src/composables/_useMenuNav.ts +24 -17
  264. package/src/composables/_useSheetMotion.ts +10 -3
  265. package/src/composables/pdfSign.ts +2 -2
  266. package/src/composables/useLocale.ts +6 -0
  267. package/src/locales/ar.ts +798 -0
  268. package/src/locales/de.ts +2 -0
  269. package/src/locales/es.ts +2 -0
  270. package/src/locales/fr.ts +2 -0
  271. package/src/locales/index.ts +1 -0
  272. package/src/locales/ja.ts +2 -0
  273. package/src/locales/ko.ts +2 -0
  274. package/src/locales/pt.ts +2 -0
  275. package/src/locales/zh.ts +2 -0
  276. package/src/pdf-sign.ts +5 -0
  277. package/src/pdf.ts +0 -3
  278. package/src/plugin.ts +10 -0
  279. package/src/styles/theme.css +13 -0
  280. package/dist/MColorPickerModal-H8nuX0Wu.js.map +0 -1
  281. package/dist/MDialog-B42Mhn8W.js +0 -331
  282. package/dist/MDialog-B42Mhn8W.js.map +0 -1
  283. package/dist/MIcon-DpajuUTJ.js +0 -33
  284. package/dist/MIcon-DpajuUTJ.js.map +0 -1
  285. package/dist/MListItem-DiOAxaN7.js.map +0 -1
  286. package/dist/MMenuItem-BuxYoASE.js +0 -574
  287. package/dist/MMenuItem-BuxYoASE.js.map +0 -1
  288. package/dist/MSignaturePad-BTqGaPXA.js +0 -313
  289. package/dist/MSignaturePad-BTqGaPXA.js.map +0 -1
  290. package/dist/MSlider-D_O8J9YH.js +0 -739
  291. package/dist/MSlider-D_O8J9YH.js.map +0 -1
  292. package/dist/MTextField-CYk9yFvi.js.map +0 -1
  293. package/dist/MTooltip-CK39Zon4.js +0 -183
  294. package/dist/MTooltip-CK39Zon4.js.map +0 -1
  295. package/dist/_popupPosition-nL8SVKPK.js.map +0 -1
  296. package/dist/pdf.js.map +0 -1
  297. package/dist/useLocale-DL96OFgr.js.map +0 -1
@@ -1,10 +1,12 @@
1
- import { n as e, t } from "./MDialog-B42Mhn8W.js";
2
- import { t as n } from "./MIcon-DpajuUTJ.js";
3
- import { t as r } from "./MIconButton-BBggVwBV.js";
4
- import { i } from "./useLocale-DL96OFgr.js";
5
- import { i as a, o } from "./_storageKeys-C4W_4xK4.js";
6
- import { t as s } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
7
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, normalizeStyle as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, watch as w, withCtx as T, withKeys as te } from "vue";
1
+ import { t as e } from "./MButton-LiZRRP4h.js";
2
+ import { t } from "./MDialog-BLpfgIA3.js";
3
+ import { t as n } from "./MIcon-BSsJZhK7.js";
4
+ import { t as r } from "./vTooltip-xESB2YOb.js";
5
+ import { t as i } from "./MIconButton-CNjN0xwW.js";
6
+ import { i as a } from "./useLocale-ybIju59R.js";
7
+ import { i as o, o as s } from "./_storageKeys-C4W_4xK4.js";
8
+ import { t as c } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
9
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, onMounted as ee, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, watch as te, withCtx as T, withDirectives as ne, withKeys as re } from "vue";
8
10
  // src/composables/_colorUtils.ts
9
11
  function E(e) {
10
12
  let t = e.trim().replace(/^#/, "");
@@ -26,7 +28,7 @@ function O(e) {
26
28
  let t = E(e);
27
29
  return t ? D(t) : "";
28
30
  }
29
- function ne({ r: e, g: t, b: n }) {
31
+ function ie({ r: e, g: t, b: n }) {
30
32
  e /= 255, t /= 255, n /= 255;
31
33
  let r = Math.max(e, t, n), i = r - Math.min(e, t, n), a = 0;
32
34
  return i !== 0 && (a = r === e ? ((t - n) / i + 6) % 6 : r === t ? (n - e) / i + 2 : (e - t) / i + 4, a *= 60), {
@@ -48,7 +50,7 @@ function k({ h: e, s: t, v: n }, r = 1) {
48
50
  a: r
49
51
  };
50
52
  }
51
- function re({ h: e, s: t, v: n }) {
53
+ function ae({ h: e, s: t, v: n }) {
52
54
  t /= 100, n /= 100;
53
55
  let r = n * (1 - t / 2);
54
56
  return {
@@ -57,7 +59,7 @@ function re({ h: e, s: t, v: n }) {
57
59
  l: r * 100
58
60
  };
59
61
  }
60
- function ie({ h: e, s: t, l: n }) {
62
+ function oe({ h: e, s: t, l: n }) {
61
63
  t /= 100, n /= 100;
62
64
  let r = n + t * Math.min(n, 1 - n);
63
65
  return {
@@ -75,14 +77,14 @@ function A(e) {
75
77
  var j = "m3-color-recent";
76
78
  function M() {
77
79
  try {
78
- let e = JSON.parse(localStorage.getItem(o(j)) ?? "[]");
80
+ let e = JSON.parse(localStorage.getItem(s(j)) ?? "[]");
79
81
  return Array.isArray(e) ? e.filter((e) => typeof e == "string" && !!E(e)) : [];
80
82
  } catch {
81
83
  return [];
82
84
  }
83
85
  }
84
- var N = b(M());
85
- a(() => {
86
+ var N = x(M());
87
+ o(() => {
86
88
  N.value = M();
87
89
  });
88
90
  function P(e, t) {
@@ -90,7 +92,7 @@ function P(e, t) {
90
92
  if (n) {
91
93
  N.value = [n, ...N.value.filter((e) => e !== n)].slice(0, Math.max(t, 0));
92
94
  try {
93
- localStorage.setItem(o(j), JSON.stringify(N.value));
95
+ localStorage.setItem(s(j), JSON.stringify(N.value));
94
96
  } catch {}
95
97
  }
96
98
  }
@@ -116,27 +118,27 @@ var F = [
116
118
  "#9e9e9e",
117
119
  "#000000",
118
120
  "#ffffff"
119
- ], ae = { class: "flex flex-col gap-4" }, oe = [
121
+ ], se = { class: "flex flex-col gap-4" }, ce = [
120
122
  "aria-label",
121
123
  "aria-valuenow",
122
124
  "aria-valuetext"
123
- ], se = { class: "flex flex-col gap-1" }, ce = ["aria-label", "aria-valuenow"], le = [
125
+ ], le = { class: "flex flex-col gap-1" }, ue = ["aria-label", "aria-valuenow"], de = [
124
126
  "aria-label",
125
127
  "aria-valuenow",
126
128
  "aria-valuetext"
127
- ], ue = { class: "flex items-center gap-2" }, de = { class: "flex h-10 min-w-0 flex-1" }, fe = ["aria-label", "title"], pe = { class: "flex items-start gap-2" }, me = ["aria-label"], he = ["maxlength", "value"], ge = [
129
+ ], fe = { class: "flex items-center gap-2" }, pe = { class: "flex h-10 min-w-0 flex-1" }, me = ["aria-label"], he = { class: "flex items-start gap-2" }, ge = ["aria-label"], _e = ["maxlength", "value"], ve = [
128
130
  "aria-label",
129
131
  "value",
130
132
  "onInput",
131
133
  "onKeydown"
132
- ], _e = { class: "text-label-small text-on-surface-variant" }, ve = ["aria-label"], ye = {
134
+ ], ye = { class: "text-label-small text-on-surface-variant" }, be = ["aria-label"], xe = {
133
135
  key: 0,
134
136
  class: "text-label-medium text-on-surface-variant"
135
- }, be = { class: "grid grid-cols-7 gap-2" }, xe = [
137
+ }, Se = { class: "grid grid-cols-7 gap-2" }, Ce = [
136
138
  "aria-label",
137
139
  "aria-pressed",
138
140
  "onClick"
139
- ], I = 12, L = "repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 8px 8px", R = /*#__PURE__*/ s(/* @__PURE__ */ g({
141
+ ], I = 12, we = "repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 8px 8px", L = /*#__PURE__*/ c(/* @__PURE__ */ _({
140
142
  __name: "_MColorPanel",
141
143
  props: {
142
144
  modelValue: {},
@@ -147,82 +149,82 @@ var F = [
147
149
  original: {}
148
150
  },
149
151
  emits: ["update:modelValue"],
150
- setup(e, { expose: t, emit: a }) {
151
- let o = e, s = a, g = i(), T = b(0), j = b(100), M = b(100), P = b(1), F = l(() => D(k({
152
+ setup(e, { expose: t, emit: o }) {
153
+ let s = e, c = o, _ = a(), T = x(0), j = x(100), M = x(100), P = x(1), F = u(() => D(k({
152
154
  h: T.value,
153
155
  s: j.value,
154
156
  v: M.value
155
- }, o.alpha ? P.value : 1))), R = l(() => D(k({
157
+ }, s.alpha ? P.value : 1))), L = u(() => D(k({
156
158
  h: T.value,
157
159
  s: j.value,
158
160
  v: M.value
159
- }))), Se = l(() => `hsl(${T.value}, 100%, 50%)`);
160
- function z(e) {
161
- let t = ne(e);
162
- t.v > 0 && t.s > 0 && (T.value = t.h), t.v > 0 && (j.value = t.s), M.value = t.v, P.value = o.alpha ? e.a : 1;
161
+ }))), Te = u(() => `hsl(${T.value}, 100%, 50%)`);
162
+ function R(e) {
163
+ let t = ie(e);
164
+ t.v > 0 && t.s > 0 && (T.value = t.h), t.v > 0 && (j.value = t.s), M.value = t.v, P.value = s.alpha ? e.a : 1;
163
165
  }
164
- let B = "";
165
- function V() {
166
- B = F.value, F.value !== O(o.modelValue) && s("update:modelValue", F.value);
166
+ let z = "";
167
+ function B() {
168
+ z = F.value, F.value !== O(s.modelValue) && c("update:modelValue", F.value);
167
169
  }
168
- w(() => o.modelValue, (e) => {
170
+ te(() => s.modelValue, (e) => {
169
171
  let t = O(e);
170
- t && t !== B && (z(E(t)), B = t);
172
+ t && t !== z && (R(E(t)), z = t);
171
173
  }, { immediate: !0 });
172
- function Ce(e) {
174
+ function Ee(e) {
173
175
  let t = E(e);
174
- t && (z(t), V());
176
+ t && (R(t), B());
175
177
  }
176
- let H = b(), we = b(), Te = b(), U = b(null), W = (e, t, n) => Math.min(n, Math.max(t, e));
177
- function Ee(e, t) {
178
- let n = e === "area" ? H.value : e === "hue" ? we.value : Te.value;
178
+ let V = x(), De = x(), Oe = x(), H = x(null), U = (e, t, n) => Math.min(n, Math.max(t, e));
179
+ function ke(e, t) {
180
+ let n = e === "area" ? V.value : e === "hue" ? De.value : Oe.value;
179
181
  if (!n) return;
180
182
  let r = n.getBoundingClientRect();
181
- if (e === "area") j.value = W((t.clientX - r.left) / r.width * 100, 0, 100), M.value = W((1 - (t.clientY - r.top) / r.height) * 100, 0, 100);
183
+ if (e === "area") j.value = U((t.clientX - r.left) / r.width * 100, 0, 100), M.value = U((1 - (t.clientY - r.top) / r.height) * 100, 0, 100);
182
184
  else {
183
- let n = W((t.clientX - r.left - I) / (r.width - 24), 0, 1);
185
+ let n = U((t.clientX - r.left - I) / (r.width - 24), 0, 1);
184
186
  e === "hue" ? T.value = n * 360 : P.value = Math.round(n * 100) / 100;
185
187
  }
186
- V();
188
+ B();
187
189
  }
188
- function G(e, t) {
189
- t.button === 0 && (t.preventDefault(), t.currentTarget.focus({ preventScroll: !0 }), t.currentTarget.setPointerCapture?.(t.pointerId), U.value = e, Ee(e, t));
190
+ function W(e, t) {
191
+ t.button === 0 && (t.preventDefault(), t.currentTarget.focus({ preventScroll: !0 }), t.currentTarget.setPointerCapture?.(t.pointerId), H.value = e, ke(e, t));
190
192
  }
191
- function K(e, t) {
192
- U.value === e && Ee(e, t);
193
+ function G(e, t) {
194
+ H.value === e && ke(e, t);
193
195
  }
194
- function q() {
195
- U.value = null;
196
+ function K() {
197
+ H.value = null;
196
198
  }
197
- function J(e, t) {
199
+ function q(e, t) {
198
200
  let n = t.shiftKey ? 10 : 1, r = t.key === "ArrowRight" ? n : t.key === "ArrowLeft" ? -n : 0, i = t.key === "ArrowUp" ? n : t.key === "ArrowDown" ? -n : 0;
199
201
  if (e === "area") {
200
202
  if (!r && !i) return;
201
- j.value = W(j.value + r, 0, 100), M.value = W(M.value + i, 0, 100);
203
+ j.value = U(j.value + r, 0, 100), M.value = U(M.value + i, 0, 100);
202
204
  } else {
203
205
  let n = e === "hue" ? 360 : 100, a = e === "hue" ? T.value : P.value * 100, o;
204
206
  if (t.key === "Home") o = 0;
205
207
  else if (t.key === "End") o = n;
206
- else if (r || i) o = W(a + (r || i), 0, n);
208
+ else if (r || i) o = U(a + (r || i), 0, n);
207
209
  else return;
208
210
  e === "hue" ? T.value = o : P.value = Math.round(o) / 100;
209
211
  }
210
- t.preventDefault(), V();
212
+ t.preventDefault(), B();
211
213
  }
212
- let De = b(!1);
214
+ let Ae = x(!1);
213
215
  ee(() => {
214
- De.value = "EyeDropper" in window;
216
+ Ae.value = "EyeDropper" in window;
215
217
  });
216
- async function Oe() {
218
+ async function je() {
217
219
  try {
218
220
  let e = window.EyeDropper, { sRGBHex: t } = await new e().open(), n = E(t);
219
- n && (z({
221
+ n && (R({
220
222
  ...n,
221
223
  a: P.value
222
- }), V());
224
+ }), B());
223
225
  } catch {}
224
226
  }
225
- let Y = [
227
+ let J = [
226
228
  {
227
229
  id: "hex",
228
230
  label: "HEX"
@@ -235,14 +237,14 @@ var F = [
235
237
  id: "hsl",
236
238
  label: "HSL"
237
239
  }
238
- ], X = b("hex"), ke = l(() => Y.find((e) => e.id === X.value).label);
239
- function Ae() {
240
- X.value = Y[(Y.findIndex((e) => e.id === X.value) + 1) % Y.length].id, Z.value = null;
240
+ ], Y = x("hex"), Me = u(() => J.find((e) => e.id === Y.value).label);
241
+ function Ne() {
242
+ Y.value = J[(J.findIndex((e) => e.id === Y.value) + 1) % J.length].id, X.value = null;
241
243
  }
242
- function je(e) {
244
+ function Pe(e) {
243
245
  T.value = e.h, j.value = e.s, M.value = e.v;
244
246
  }
245
- let Me = l(() => ({
247
+ let Fe = u(() => ({
246
248
  key: "a",
247
249
  label: "A",
248
250
  display: String(Math.round(P.value * 100)),
@@ -250,9 +252,9 @@ var F = [
250
252
  apply: (e) => {
251
253
  P.value = e / 100;
252
254
  }
253
- })), Ne = l(() => {
255
+ })), Ie = u(() => {
254
256
  let e = [];
255
- if (X.value === "rgb") {
257
+ if (Y.value === "rgb") {
256
258
  let t = k({
257
259
  h: T.value,
258
260
  s: j.value,
@@ -272,13 +274,13 @@ var F = [
272
274
  label: t.toUpperCase(),
273
275
  display: String(n[t]),
274
276
  max: 255,
275
- apply: (e) => z({
277
+ apply: (e) => R({
276
278
  ...n,
277
279
  [t]: e
278
280
  })
279
281
  });
280
- } else if (X.value === "hsl") {
281
- let t = re({
282
+ } else if (Y.value === "hsl") {
283
+ let t = ae({
282
284
  h: T.value,
283
285
  s: j.value,
284
286
  v: M.value
@@ -296,205 +298,204 @@ var F = [
296
298
  label: t.toUpperCase(),
297
299
  display: String(n[t]),
298
300
  max: t === "h" ? 360 : 100,
299
- apply: (e) => je(ie({
301
+ apply: (e) => Pe(oe({
300
302
  ...n,
301
303
  [t]: e
302
304
  }))
303
305
  });
304
306
  }
305
- return o.alpha && X.value !== "hex" && e.push(Me.value), e;
306
- }), Z = b(null), Pe = (e, t) => Z.value?.key === e ? Z.value.text : t;
307
- function Fe(e) {
307
+ return s.alpha && Y.value !== "hex" && e.push(Fe.value), e;
308
+ }), X = x(null), Z = (e, t) => X.value?.key === e ? X.value.text : t;
309
+ function Le(e) {
308
310
  let t = e.target.value;
309
- Z.value = {
311
+ X.value = {
310
312
  key: "hex",
311
313
  text: t
312
314
  };
313
315
  let n = E(t);
314
- n && (z(n), V());
316
+ n && (R(n), B());
315
317
  }
316
- function Ie(e, t) {
318
+ function Re(e, t) {
317
319
  let n = t.target.value;
318
- if (Z.value = {
320
+ if (X.value = {
319
321
  key: e.key,
320
322
  text: n
321
323
  }, !/^\d+$/.test(n.trim())) return;
322
324
  let r = Number(n);
323
- r > e.max || (e.apply(r), V());
325
+ r > e.max || (e.apply(r), B());
324
326
  }
325
- function Le(e, t) {
327
+ function ze(e, t) {
326
328
  if (t.key === "Enter") {
327
- Z.value = null;
329
+ X.value = null;
328
330
  return;
329
331
  }
330
332
  if (t.key !== "ArrowUp" && t.key !== "ArrowDown") return;
331
333
  t.preventDefault();
332
334
  let n = (t.shiftKey ? 10 : 1) * (t.key === "ArrowUp" ? 1 : -1);
333
- e.apply(W(Number(e.display) + n, 0, e.max)), Z.value = null, V();
335
+ e.apply(U(Number(e.display) + n, 0, e.max)), X.value = null, B();
334
336
  }
335
- let Re = l(() => o.recent ? N.value : []), Q = (e) => O(e) === F.value, $ = (e) => `linear-gradient(${e}, ${e}), ${L}`, ze = l(() => P.value < .5 ? "#000000" : A(R.value)), Be = l(() => !!o.original && !!O(o.original) && O(o.original) !== F.value);
336
- return t({ focus: () => H.value?.focus({ preventScroll: !0 }) }), (t, i) => (y(), f("div", ae, [
337
- p("div", {
337
+ let Be = u(() => s.recent ? N.value : []), Q = (e) => O(e) === F.value, $ = (e) => `linear-gradient(${e}, ${e}), ${we}`, Ve = u(() => P.value < .5 ? "#000000" : A(L.value)), He = u(() => !!s.original && !!O(s.original) && O(s.original) !== F.value);
338
+ return t({ focus: () => V.value?.focus({ preventScroll: !0 }) }), (t, a) => (b(), p("div", se, [
339
+ m("div", {
338
340
  ref_key: "areaEl",
339
- ref: H,
341
+ ref: V,
340
342
  role: "slider",
341
343
  tabindex: "0",
342
- "aria-label": `${C(g).colorSaturation}, ${C(g).colorBrightness}`,
344
+ "aria-label": `${w(_).colorSaturation}, ${w(_).colorBrightness}`,
343
345
  "aria-valuenow": Math.round(j.value),
344
346
  "aria-valuemin": "0",
345
347
  "aria-valuemax": "100",
346
- "aria-valuetext": `${C(g).colorSaturation} ${Math.round(j.value)}%, ${C(g).colorBrightness} ${Math.round(M.value)}%`,
348
+ "aria-valuetext": `${w(_).colorSaturation} ${Math.round(j.value)}%, ${w(_).colorBrightness} ${Math.round(M.value)}%`,
347
349
  class: "relative h-40 w-full shrink-0 cursor-crosshair touch-none rounded-md outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
348
- style: v({ background: `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${Se.value})` }),
349
- onPointerdown: i[0] ||= (e) => G("area", e),
350
- onPointermove: i[1] ||= (e) => K("area", e),
351
- onPointerup: q,
352
- onPointercancel: q,
353
- onKeydown: i[2] ||= (e) => J("area", e)
354
- }, [p("span", {
355
- class: _(["m3-cp-area-thumb pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white transition-[scale] duration-150", U.value === "area" ? "scale-125" : ""]),
356
- style: v({
350
+ style: y({ background: `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${Te.value})` }),
351
+ onPointerdown: a[0] ||= (e) => W("area", e),
352
+ onPointermove: a[1] ||= (e) => G("area", e),
353
+ onPointerup: K,
354
+ onPointercancel: K,
355
+ onKeydown: a[2] ||= (e) => q("area", e)
356
+ }, [m("span", {
357
+ class: v(["m3-cp-area-thumb pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white transition-[scale] duration-150", H.value === "area" ? "scale-125" : ""]),
358
+ style: y({
357
359
  left: `${j.value}%`,
358
360
  top: `${100 - M.value}%`,
359
- backgroundColor: R.value
361
+ backgroundColor: L.value
360
362
  })
361
- }, null, 6)], 44, oe),
362
- p("div", se, [p("div", {
363
+ }, null, 6)], 44, ce),
364
+ m("div", le, [m("div", {
363
365
  ref_key: "hueEl",
364
- ref: we,
366
+ ref: De,
365
367
  role: "slider",
366
368
  tabindex: "0",
367
- "aria-label": C(g).colorHue,
369
+ "aria-label": w(_).colorHue,
368
370
  "aria-valuenow": Math.round(T.value),
369
371
  "aria-valuemin": "0",
370
372
  "aria-valuemax": "360",
371
373
  class: "m3-cp-slider group",
372
- onPointerdown: i[3] ||= (e) => G("hue", e),
373
- onPointermove: i[4] ||= (e) => K("hue", e),
374
- onPointerup: q,
375
- onPointercancel: q,
376
- onKeydown: i[5] ||= (e) => J("hue", e)
377
- }, [i[13] ||= p("span", { class: "m3-cp-track m3-cp-hue" }, null, -1), p("span", {
378
- class: _(["m3-cp-handle", { "m3-cp-handle-pressed": U.value === "hue" }]),
379
- style: v({ left: `calc(${I}px + ${T.value / 360} * (100% - 24px))` })
380
- }, null, 6)], 40, ce), e.alpha ? (y(), f("div", {
374
+ onPointerdown: a[3] ||= (e) => W("hue", e),
375
+ onPointermove: a[4] ||= (e) => G("hue", e),
376
+ onPointerup: K,
377
+ onPointercancel: K,
378
+ onKeydown: a[5] ||= (e) => q("hue", e)
379
+ }, [a[13] ||= m("span", { class: "m3-cp-track m3-cp-hue" }, null, -1), m("span", {
380
+ class: v(["m3-cp-handle", { "m3-cp-handle-pressed": H.value === "hue" }]),
381
+ style: y({ left: `calc(${I}px + ${T.value / 360} * (100% - 24px))` })
382
+ }, null, 6)], 40, ue), e.alpha ? (b(), p("div", {
381
383
  key: 0,
382
384
  ref_key: "alphaEl",
383
- ref: Te,
385
+ ref: Oe,
384
386
  role: "slider",
385
387
  tabindex: "0",
386
- "aria-label": C(g).colorAlpha,
388
+ "aria-label": w(_).colorAlpha,
387
389
  "aria-valuenow": Math.round(P.value * 100),
388
390
  "aria-valuemin": "0",
389
391
  "aria-valuemax": "100",
390
392
  "aria-valuetext": `${Math.round(P.value * 100)}%`,
391
393
  class: "m3-cp-slider group",
392
- onPointerdown: i[6] ||= (e) => G("alpha", e),
393
- onPointermove: i[7] ||= (e) => K("alpha", e),
394
- onPointerup: q,
395
- onPointercancel: q,
396
- onKeydown: i[8] ||= (e) => J("alpha", e)
397
- }, [p("span", {
394
+ onPointerdown: a[6] ||= (e) => W("alpha", e),
395
+ onPointermove: a[7] ||= (e) => G("alpha", e),
396
+ onPointerup: K,
397
+ onPointercancel: K,
398
+ onKeydown: a[8] ||= (e) => q("alpha", e)
399
+ }, [m("span", {
398
400
  class: "m3-cp-track",
399
- style: v({ background: `linear-gradient(to right, transparent, ${R.value}), ${L}` })
400
- }, null, 4), p("span", {
401
- class: _(["m3-cp-handle", { "m3-cp-handle-pressed": U.value === "alpha" }]),
402
- style: v({ left: `calc(${I}px + ${P.value} * (100% - 24px))` })
403
- }, null, 6)], 40, le)) : d("", !0)]),
404
- p("div", ue, [p("div", de, [Be.value ? (y(), f("button", {
401
+ style: y({ background: `linear-gradient(to right, transparent, ${L.value}), ${we}` })
402
+ }, null, 4), m("span", {
403
+ class: v(["m3-cp-handle", { "m3-cp-handle-pressed": H.value === "alpha" }]),
404
+ style: y({ left: `calc(${I}px + ${P.value} * (100% - 24px))` })
405
+ }, null, 6)], 40, de)) : f("", !0)]),
406
+ m("div", fe, [m("div", pe, [He.value ? ne((b(), p("button", {
405
407
  key: 0,
406
408
  type: "button",
407
- class: "m3-cp-swatch flex w-12 shrink-0 cursor-pointer items-center justify-center rounded-l-full outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
408
- style: v({ background: $(e.original) }),
409
- "aria-label": C(g).colorOriginal,
410
- title: C(g).colorOriginal,
411
- onClick: i[9] ||= (t) => Ce(e.original)
412
- }, [h(n, {
409
+ class: "m3-cp-swatch flex w-12 shrink-0 cursor-pointer items-center justify-center rounded-s-full outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
410
+ style: y({ background: $(e.original) }),
411
+ "aria-label": w(_).colorOriginal,
412
+ onClick: a[9] ||= (t) => Ee(e.original)
413
+ }, [g(n, {
413
414
  name: "undo",
414
415
  size: 18,
415
- style: v({ color: C(A)(e.original) })
416
- }, null, 8, ["style"])], 12, fe)) : d("", !0), p("span", {
417
- class: _(["m3-cp-swatch flex min-w-0 flex-1 items-center px-4 font-mono text-label-large transition-[border-radius] duration-200", Be.value ? "rounded-r-full" : "rounded-full"]),
418
- style: v({
416
+ style: y({ color: w(A)(e.original) })
417
+ }, null, 8, ["style"])], 12, me)), [[w(r), w(_).colorOriginal]]) : f("", !0), m("span", {
418
+ class: v(["m3-cp-swatch flex min-w-0 flex-1 items-center px-4 font-mono text-label-large transition-[border-radius] duration-200", He.value ? "rounded-e-full" : "rounded-full"]),
419
+ style: y({
419
420
  background: $(F.value),
420
- color: ze.value
421
+ color: Ve.value
421
422
  })
422
- }, S(F.value), 7)]), e.eyedropper && De.value ? (y(), u(r, {
423
+ }, C(F.value), 7)]), e.eyedropper && Ae.value ? (b(), d(i, {
423
424
  key: 0,
424
425
  icon: "colorize",
425
426
  variant: "tonal",
426
- label: C(g).colorEyedropper,
427
- onClick: Oe
428
- }, null, 8, ["label"])) : d("", !0)]),
429
- p("div", pe, [
430
- p("button", {
427
+ label: w(_).colorEyedropper,
428
+ onClick: je
429
+ }, null, 8, ["label"])) : f("", !0)]),
430
+ m("div", he, [
431
+ m("button", {
431
432
  type: "button",
432
- class: "flex h-10 shrink-0 cursor-pointer items-center gap-0.5 rounded-full bg-secondary-container pr-2 pl-3 text-label-large text-on-secondary-container outline-none transition-[background-color] duration-150 hover:bg-[color-mix(in_srgb,var(--color-secondary-container),var(--color-on-secondary-container)_8%)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
433
- "aria-label": `${C(g).colorFormat}: ${ke.value}`,
434
- onClick: Ae
435
- }, [m(S(ke.value) + " ", 1), h(n, {
433
+ class: "flex h-10 shrink-0 cursor-pointer items-center gap-0.5 rounded-full bg-secondary-container pe-2 ps-3 text-label-large text-on-secondary-container outline-none transition-[background-color] duration-150 hover:bg-[color-mix(in_srgb,var(--color-secondary-container),var(--color-on-secondary-container)_8%)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
434
+ "aria-label": `${w(_).colorFormat}: ${Me.value}`,
435
+ onClick: Ne
436
+ }, [h(C(Me.value) + " ", 1), g(n, {
436
437
  name: "unfold_more",
437
438
  size: 18
438
- })], 8, me),
439
- X.value === "hex" ? (y(), f("input", {
439
+ })], 8, ge),
440
+ Y.value === "hex" ? (b(), p("input", {
440
441
  key: 0,
441
442
  type: "text",
442
443
  spellcheck: "false",
443
444
  autocomplete: "off",
444
445
  maxlength: e.alpha ? 9 : 7,
445
446
  "aria-label": "HEX",
446
- value: Pe("hex", F.value),
447
+ value: Z("hex", F.value),
447
448
  class: "m3-cp-field min-w-0 flex-1 font-mono text-body-medium",
448
- onInput: Fe,
449
- onBlur: i[10] ||= (e) => Z.value = null,
450
- onKeydown: i[11] ||= te((e) => Z.value = null, ["enter"])
451
- }, null, 40, he)) : d("", !0),
452
- (y(!0), f(c, null, x(Ne.value, (e) => (y(), f("label", {
449
+ onInput: Le,
450
+ onBlur: a[10] ||= (e) => X.value = null,
451
+ onKeydown: a[11] ||= re((e) => X.value = null, ["enter"])
452
+ }, null, 40, _e)) : f("", !0),
453
+ (b(!0), p(l, null, S(Ie.value, (e) => (b(), p("label", {
453
454
  key: e.key,
454
455
  class: "flex min-w-0 flex-1 flex-col items-center gap-1"
455
- }, [p("input", {
456
+ }, [m("input", {
456
457
  type: "text",
457
458
  inputmode: "numeric",
458
459
  autocomplete: "off",
459
460
  maxlength: 3,
460
461
  "aria-label": e.label,
461
- value: Pe(e.key, e.display),
462
+ value: Z(e.key, e.display),
462
463
  class: "m3-cp-field w-full font-mono text-body-medium",
463
- onInput: (t) => Ie(e, t),
464
- onKeydown: (t) => Le(e, t),
465
- onBlur: i[12] ||= (e) => Z.value = null
466
- }, null, 40, ge), p("span", _e, S(e.label), 1)]))), 128))
464
+ onInput: (t) => Re(e, t),
465
+ onKeydown: (t) => ze(e, t),
466
+ onBlur: a[12] ||= (e) => X.value = null
467
+ }, null, 40, ve), m("span", ye, C(e.label), 1)]))), 128))
467
468
  ]),
468
- (y(!0), f(c, null, x([{
469
+ (b(!0), p(l, null, S([{
469
470
  id: "recent",
470
- label: C(g).colorRecent,
471
- colors: Re.value
471
+ label: w(_).colorRecent,
472
+ colors: Be.value
472
473
  }, {
473
474
  id: "presets",
474
- label: C(g).colorPresets,
475
+ label: w(_).colorPresets,
475
476
  colors: e.presets
476
- }], (e) => (y(), f(c, { key: e.id }, [e.colors.length ? (y(), f("div", {
477
+ }], (e) => (b(), p(l, { key: e.id }, [e.colors.length ? (b(), p("div", {
477
478
  key: 0,
478
479
  role: "group",
479
480
  "aria-label": e.label,
480
481
  class: "flex flex-col gap-2"
481
- }, [Re.value.length ? (y(), f("span", ye, S(e.label), 1)) : d("", !0), p("div", be, [(y(!0), f(c, null, x(e.colors, (e) => (y(), f("button", {
482
+ }, [Be.value.length ? (b(), p("span", xe, C(e.label), 1)) : f("", !0), m("div", Se, [(b(!0), p(l, null, S(e.colors, (e) => (b(), p("button", {
482
483
  key: e,
483
484
  type: "button",
484
- class: _(["m3-cp-swatch m3-cp-morph flex aspect-square cursor-pointer items-center justify-center outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary", { "m3-cp-morph-selected": Q(e) }]),
485
- style: v({ background: $(e) }),
485
+ class: v(["m3-cp-swatch m3-cp-morph flex aspect-square cursor-pointer items-center justify-center outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary", { "m3-cp-morph-selected": Q(e) }]),
486
+ style: y({ background: $(e) }),
486
487
  "aria-label": e,
487
488
  "aria-pressed": Q(e),
488
- onClick: (t) => Ce(e)
489
- }, [Q(e) ? (y(), u(n, {
489
+ onClick: (t) => Ee(e)
490
+ }, [Q(e) ? (b(), d(n, {
490
491
  key: 0,
491
492
  name: "check",
492
493
  size: 18,
493
- style: v({ color: C(A)(e) })
494
- }, null, 8, ["style"])) : d("", !0)], 14, xe))), 128))])], 8, ve)) : d("", !0)], 64))), 128))
494
+ style: y({ color: w(A)(e) })
495
+ }, null, 8, ["style"])) : f("", !0)], 14, Ce))), 128))])], 8, be)) : f("", !0)], 64))), 128))
495
496
  ]));
496
497
  }
497
- }), [["__scopeId", "data-v-87647feb"]]), Se = /* @__PURE__ */ g({
498
+ }), [["__scopeId", "data-v-59fe716a"]]), Te = /* @__PURE__ */ _({
498
499
  __name: "MColorPickerModal",
499
500
  props: {
500
501
  modelValue: {},
@@ -520,38 +521,38 @@ var F = [
520
521
  },
521
522
  emits: ["update:modelValue", "update:show"],
522
523
  setup(n, { emit: r }) {
523
- let a = n, o = i(), s = r, c = b(a.modelValue);
524
- w(() => a.show, (e) => {
525
- e && (c.value = a.modelValue);
524
+ let i = n, o = a(), s = r, c = x(i.modelValue);
525
+ te(() => i.show, (e) => {
526
+ e && (c.value = i.modelValue);
526
527
  }, { immediate: !0 });
527
528
  function l() {
528
529
  s("update:show", !1);
529
530
  }
530
- function d() {
531
+ function u() {
531
532
  let e = O(c.value) || c.value;
532
- a.recent && P(e, a.recentLimit), s("update:modelValue", e), s("update:show", !1);
533
+ i.recent && P(e, i.recentLimit), s("update:modelValue", e), s("update:show", !1);
533
534
  }
534
- return (r, i) => (y(), u(t, {
535
+ return (r, i) => (b(), d(t, {
535
536
  "model-value": n.show,
536
- title: n.title || C(o).selectColor,
537
+ title: n.title || w(o).selectColor,
537
538
  "max-width": "328px",
538
539
  closable: !1,
539
540
  "onUpdate:modelValue": i[1] ||= (e) => !e && l()
540
541
  }, {
541
- actions: T(() => [h(e, {
542
+ actions: T(() => [g(e, {
542
543
  variant: "text",
543
544
  onClick: l
544
545
  }, {
545
- default: T(() => [m(S(C(o).cancel), 1)]),
546
+ default: T(() => [h(C(w(o).cancel), 1)]),
546
547
  _: 1
547
- }), h(e, {
548
+ }), g(e, {
548
549
  variant: "text",
549
- onClick: d
550
+ onClick: u
550
551
  }, {
551
- default: T(() => [m(S(C(o).confirm), 1)]),
552
+ default: T(() => [h(C(w(o).confirm), 1)]),
552
553
  _: 1
553
554
  })]),
554
- default: T(() => [h(R, {
555
+ default: T(() => [g(L, {
555
556
  modelValue: c.value,
556
557
  "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
557
558
  presets: n.presets,
@@ -571,6 +572,6 @@ var F = [
571
572
  }, 8, ["model-value", "title"]));
572
573
  }
573
574
  });
574
- export { P as a, O as i, R as n, F as r, Se as t };
575
+ export { P as a, O as i, L as n, F as r, Te as t };
575
576
 
576
- //# sourceMappingURL=MColorPickerModal-H8nuX0Wu.js.map
577
+ //# sourceMappingURL=MColorPickerModal-IjciC8zh.js.map