@m3ui-vue/m3ui-vue 1.10.2 → 1.11.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.
- package/README.md +19 -4
- package/dist/API.md +204 -59
- package/dist/MButton-BHKF1Tfd.js +284 -0
- package/dist/MButton-BHKF1Tfd.js.map +1 -0
- package/dist/MColorPickerModal-CNesUJUq.js +466 -0
- package/dist/MColorPickerModal-CNesUJUq.js.map +1 -0
- package/dist/MDialog-jAYkZ4M8.js +226 -0
- package/dist/MDialog-jAYkZ4M8.js.map +1 -0
- package/dist/{MIcon-BSsJZhK7.js → MIcon-CkUc9kuQ.js} +10 -4
- package/dist/MIcon-CkUc9kuQ.js.map +1 -0
- package/dist/MIconButton-DTFOfsTy.js +317 -0
- package/dist/MIconButton-DTFOfsTy.js.map +1 -0
- package/dist/MListItem-CgdM5sco.js +1306 -0
- package/dist/MListItem-CgdM5sco.js.map +1 -0
- package/dist/MLoadingIndicator-00XbLQSf.js +115 -0
- package/dist/MLoadingIndicator-00XbLQSf.js.map +1 -0
- package/dist/{MMenuItem-US0Zbglq.js → MMenuItem-CEIKYvaX.js} +216 -214
- package/dist/MMenuItem-CEIKYvaX.js.map +1 -0
- package/dist/{MPdfViewer-DL9mRsd2.js → MPdfViewer-KjUIJOIs.js} +674 -671
- package/dist/MPdfViewer-KjUIJOIs.js.map +1 -0
- package/dist/MProgressBar-BzZMxq7M.js.map +1 -1
- package/dist/MSeekBar-B4EEWw3B.js +435 -0
- package/dist/MSeekBar-B4EEWw3B.js.map +1 -0
- package/dist/{MSegmentedButton-DMou-8sG.js → MSegmentedButton-UOAJAd2i.js} +4 -4
- package/dist/{MSegmentedButton-DMou-8sG.js.map → MSegmentedButton-UOAJAd2i.js.map} +1 -1
- package/dist/{MSignaturePad-WuvE_Cyl.js → MSignaturePad-HZavgiGB.js} +2 -2
- package/dist/{MSignaturePad-WuvE_Cyl.js.map → MSignaturePad-HZavgiGB.js.map} +1 -1
- package/dist/{MSlider-7TzhFHKS.js → MSlider-BaQeaozI.js} +4 -4
- package/dist/{MSlider-7TzhFHKS.js.map → MSlider-BaQeaozI.js.map} +1 -1
- package/dist/{MSpinner-CkIVBuGE.js → MSpinner-CbEMPY4X.js} +2 -2
- package/dist/{MSpinner-CkIVBuGE.js.map → MSpinner-CbEMPY4X.js.map} +1 -1
- package/dist/{MTextField-B6_iOczK.js → MTextField-B9PwKHlP.js} +136 -134
- package/dist/MTextField-B9PwKHlP.js.map +1 -0
- package/dist/{_useFieldValidation-COBJ1tWr.js → _useFieldValidation-B7AAfa69.js} +2 -2
- package/dist/{_useFieldValidation-COBJ1tWr.js.map → _useFieldValidation-B7AAfa69.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/chart.js +1 -1
- package/dist/code-editor.js +3 -3
- package/dist/code-editor.js.map +1 -1
- package/dist/components/MAlert.vue.d.ts +1 -1
- package/dist/components/MAudioPlayer.vue.d.ts +3 -3
- package/dist/components/MAudioRecorder.vue.d.ts +2 -2
- package/dist/components/MAvatar.vue.d.ts +19 -1
- package/dist/components/MButton.vue.d.ts +2 -1
- package/dist/components/MChatBubble.vue.d.ts +2 -0
- package/dist/components/MCheckbox.vue.d.ts +2 -0
- package/dist/components/MDataTable.vue.d.ts +33 -5
- package/dist/components/MFlow.vue.d.ts +1 -1
- package/dist/components/MHotkeys.vue.d.ts +1 -0
- package/dist/components/MIcon.vue.d.ts +6 -0
- package/dist/components/MIconButton.vue.d.ts +5 -0
- package/dist/components/MJsonViewer.vue.d.ts +2 -0
- package/dist/components/MKanban.vue.d.ts +1 -1
- package/dist/components/MLink.vue.d.ts +59 -0
- package/dist/components/MListItem.vue.d.ts +3 -1
- package/dist/components/MMapControl.vue.d.ts +1 -1
- package/dist/components/MNotificationCenter.vue.d.ts +1 -1
- package/dist/components/MNumberField.vue.d.ts +1 -1
- package/dist/components/MPagination.vue.d.ts +14 -1
- package/dist/components/MPdfSigner.vue.d.ts +3 -3
- package/dist/components/MRadio.vue.d.ts +2 -0
- package/dist/components/MRadioGroup.vue.d.ts +2 -0
- package/dist/components/MStatCard.vue.d.ts +2 -2
- package/dist/components/MSwitch.vue.d.ts +2 -0
- package/dist/components/MTable.vue.d.ts +1 -1
- package/dist/components/MText.vue.d.ts +4 -2
- package/dist/components/MTextField.vue.d.ts +2 -0
- package/dist/components/MTicket.vue.d.ts +1 -1
- package/dist/components/_MDrawerItemList.vue.d.ts +6 -0
- package/dist/composables/_countLabel.d.ts +6 -0
- package/dist/composables/_menuGroups.d.ts +10 -1
- package/dist/composables/_splitAttrs.d.ts +6 -0
- package/dist/composables/_springAnimation.d.ts +2 -2
- package/dist/composables/_useFocusTrap.d.ts +15 -0
- package/dist/composables/_usePaneResize.d.ts +1 -1
- package/dist/composables/_useSpring.d.ts +4 -4
- package/dist/composables/dynamicColor.d.ts +9 -1
- package/dist/composables/motion.d.ts +63 -0
- package/dist/composables/useConfirm.d.ts +28 -0
- package/dist/composables/useDevice.d.ts +8 -1
- package/dist/composables/useLocale.d.ts +18 -0
- package/dist/composables/useScrollReveal.d.ts +1 -1
- package/dist/composables/useTheme.d.ts +1 -0
- package/dist/composables/useToast.d.ts +7 -0
- package/dist/draw.js +556 -556
- package/dist/draw.js.map +1 -1
- package/dist/flow.js +854 -851
- package/dist/flow.js.map +1 -1
- package/dist/gantt.js +1118 -1096
- package/dist/gantt.js.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/locales/index.d.ts +1 -0
- package/dist/locales/index.js +865 -33
- package/dist/locales/index.js.map +1 -1
- package/dist/locales/pl.d.ts +2 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +10335 -9798
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +860 -860
- package/dist/map.js.map +1 -1
- package/dist/{material-color-utilities-CEFytLsr.js → material-color-utilities-BZsBNIhi.js} +276 -217
- package/dist/material-color-utilities-BZsBNIhi.js.map +1 -0
- package/dist/media.js +7 -7
- package/dist/{motion-BcejVTeX.js → motion-BqYcqcim.js} +15 -5
- package/dist/motion-BqYcqcim.js.map +1 -0
- package/dist/pdf-sign.js +140 -137
- package/dist/pdf-sign.js.map +1 -1
- package/dist/pdf.js +1 -1
- package/dist/plugin.d.ts +11 -0
- package/dist/rich-text-editor.js +7 -7
- package/dist/styles/theme.css +40 -0
- package/dist/styles.css +1 -1
- package/dist/terminal.js +1 -1
- package/dist/{useLocale-YRaOT12S.js → useLocale-BAPJ34Pq.js} +64 -8
- package/dist/useLocale-BAPJ34Pq.js.map +1 -0
- package/dist/{useThemeTokens-DyAdPQB0.js → useThemeTokens-D5nr5KHf.js} +28 -27
- package/dist/useThemeTokens-D5nr5KHf.js.map +1 -0
- package/package.json +17 -2
- package/src/__tests__/MAvatarImage.test.ts +37 -0
- package/src/__tests__/MDataTableControlled.test.ts +68 -0
- package/src/__tests__/MHotkeysSequence.test.ts +53 -0
- package/src/__tests__/MIconAxes.test.ts +16 -0
- package/src/__tests__/MIconButtonWidth.test.ts +22 -0
- package/src/__tests__/MLink.test.ts +46 -0
- package/src/__tests__/MPaginationPages.test.ts +43 -0
- package/src/__tests__/MTextEmphasized.test.ts +14 -0
- package/src/__tests__/controlDescription.test.ts +34 -0
- package/src/__tests__/countLabels.test.ts +66 -0
- package/src/__tests__/customColor.test.ts +27 -0
- package/src/__tests__/dynamicColor.test.ts +3 -2
- package/src/__tests__/focusTrap.test.ts +124 -0
- package/src/__tests__/formatMessage.test.ts +20 -0
- package/src/__tests__/inputAttrs.test.ts +103 -0
- package/src/__tests__/localePresets.test.ts +2 -0
- package/src/__tests__/menuGroupsRemount.test.ts +40 -0
- package/src/__tests__/menuHydration.test.ts +41 -0
- package/src/__tests__/motionPrefs.test.ts +28 -0
- package/src/__tests__/ssr.test.ts +11 -0
- package/src/__tests__/ssrToast.test.ts +20 -0
- package/src/__tests__/toastDetails.test.ts +39 -0
- package/src/__tests__/useConfirm.test.ts +47 -0
- package/src/__tests__/useTheme.test.ts +14 -0
- package/src/__tests__/warningRole.test.ts +22 -0
- package/src/components/MAlert.vue +2 -2
- package/src/components/MAnimatedNumber.vue +9 -3
- package/src/components/MAutocomplete.vue +16 -4
- package/src/components/MAvailabilityCalendar.vue +3 -3
- package/src/components/MAvatar.vue +32 -5
- package/src/components/MAvatarGroup.vue +7 -2
- package/src/components/MBottomSheet.vue +18 -2
- package/src/components/MButton.vue +18 -5
- package/src/components/MCarousel.vue +3 -3
- package/src/components/MChatBubble.vue +14 -1
- package/src/components/MCheckbox.vue +21 -4
- package/src/components/MChip.vue +4 -2
- package/src/components/MCollapse.vue +7 -1
- package/src/components/MCommandPalette.vue +6 -2
- package/src/components/MContextMenu.vue +4 -4
- package/src/components/MCreditCardInput.vue +5 -0
- package/src/components/MDashboardGrid.vue +2 -1
- package/src/components/MDataTable.vue +68 -20
- package/src/components/MDialog.vue +21 -3
- package/src/components/MDiffViewer.vue +3 -3
- package/src/components/MDrawLayers.vue +3 -3
- package/src/components/MFabMenu.vue +7 -0
- package/src/components/MFloorPlan.vue +3 -3
- package/src/components/MFloorPlanInspector.vue +3 -3
- package/src/components/MFlow.vue +9 -5
- package/src/components/MFlowControls.vue +6 -0
- package/src/components/MFormBuilder.vue +1 -1
- package/src/components/MGantt.vue +10 -10
- package/src/components/MHotkeys.vue +61 -16
- package/src/components/MIcon.vue +17 -1
- package/src/components/MIconButton.vue +29 -6
- package/src/components/MImageCropper.vue +1 -1
- package/src/components/MJsonViewer.vue +4 -1
- package/src/components/MKanban.vue +2 -1
- package/src/components/MLightbox.vue +5 -4
- package/src/components/MLink.vue +136 -0
- package/src/components/MListDetail.vue +7 -0
- package/src/components/MListItem.vue +7 -4
- package/src/components/MLoadingIndicator.vue +2 -1
- package/src/components/MMap.vue +3 -0
- package/src/components/MMapCluster.vue +2 -2
- package/src/components/MMapControl.vue +2 -2
- package/src/components/MMapMeasure.vue +1 -1
- package/src/components/MMaskField.vue +16 -3
- package/src/components/MMenu.vue +4 -4
- package/src/components/MMenuItem.vue +2 -2
- package/src/components/MMeterGroup.vue +3 -2
- package/src/components/MMortgageCalculator.vue +3 -3
- package/src/components/MMultiAutocomplete.vue +19 -7
- package/src/components/MMultiSelect.vue +19 -7
- package/src/components/MNavigationDrawer.vue +10 -3
- package/src/components/MNavigationRail.vue +5 -1
- package/src/components/MNotificationCenter.vue +2 -1
- package/src/components/MNotificationHost.vue +3 -3
- package/src/components/MNumberField.vue +23 -6
- package/src/components/MOdontogram.vue +4 -4
- package/src/components/MOrderBook.vue +4 -0
- package/src/components/MPagination.vue +91 -12
- package/src/components/MPdfSigner.vue +3 -3
- package/src/components/MPdfViewer.vue +7 -7
- package/src/components/MPhoneInput.vue +17 -4
- package/src/components/MProductConfigurator.vue +4 -4
- package/src/components/MProgressBar.vue +5 -0
- package/src/components/MQuiz.vue +8 -5
- package/src/components/MRadio.vue +24 -5
- package/src/components/MRadioGroup.vue +3 -0
- package/src/components/MReactions.vue +2 -2
- package/src/components/MResourceTimeline.vue +3 -3
- package/src/components/MResult.vue +1 -1
- package/src/components/MScrollField.vue +1 -1
- package/src/components/MSearchField.vue +6 -5
- package/src/components/MSeatMap.vue +5 -0
- package/src/components/MSeekBar.vue +3 -2
- package/src/components/MSelect.vue +16 -4
- package/src/components/MSideSheet.vue +25 -3
- package/src/components/MSimpleCarousel.vue +2 -2
- package/src/components/MSnackbar.vue +16 -13
- package/src/components/MSparkline.vue +2 -1
- package/src/components/MSpinner.vue +8 -0
- package/src/components/MSplitter.vue +1 -1
- package/src/components/MSpotlightSearch.vue +6 -2
- package/src/components/MSpreadsheet.vue +1 -1
- package/src/components/MStatCard.vue +2 -1
- package/src/components/MSwitch.vue +21 -4
- package/src/components/MTable.vue +3 -2
- package/src/components/MTabs.vue +2 -1
- package/src/components/MTagInput.vue +19 -6
- package/src/components/MText.vue +23 -4
- package/src/components/MTextField.vue +25 -6
- package/src/components/MTimeline.vue +5 -5
- package/src/components/MToolbar.vue +2 -2
- package/src/components/MTour.vue +3 -0
- package/src/components/MTrackingTimeline.vue +6 -0
- package/src/components/MTypewriter.vue +7 -1
- package/src/components/MWindow.vue +10 -1
- package/src/components/_MColorPanel.vue +4 -4
- package/src/components/_MComment.vue +3 -2
- package/src/components/_MFlowNodeShell.vue +1 -1
- package/src/components/_MPdfPage.vue +1 -1
- package/src/components/_MTransferPane.vue +10 -0
- package/src/composables/_countLabel.ts +10 -0
- package/src/composables/_effectCanvas.ts +2 -1
- package/src/composables/_menuGroups.ts +10 -1
- package/src/composables/_splitAttrs.ts +29 -0
- package/src/composables/_springAnimation.ts +3 -3
- package/src/composables/_themeTransition.ts +3 -2
- package/src/composables/_useFocusTrap.ts +142 -0
- package/src/composables/_useMenuNav.ts +3 -3
- package/src/composables/_usePaneResize.ts +2 -1
- package/src/composables/_useSheetMotion.ts +3 -4
- package/src/composables/_useSpring.ts +16 -10
- package/src/composables/cron.ts +7 -6
- package/src/composables/dynamicColor.ts +21 -2
- package/src/composables/motion.ts +27 -0
- package/src/composables/useConfirm.ts +116 -0
- package/src/composables/useDevice.ts +23 -3
- package/src/composables/useFieldBg.ts +4 -0
- package/src/composables/useLocale.ts +82 -4
- package/src/composables/useNotification.ts +3 -0
- package/src/composables/useScrollReveal.ts +3 -3
- package/src/composables/useTheme.ts +8 -2
- package/src/composables/useToast.ts +27 -4
- package/src/directives/vSparkle.ts +2 -1
- package/src/index.ts +8 -5
- package/src/locales/ar.ts +11 -4
- package/src/locales/de.ts +11 -4
- package/src/locales/es.ts +11 -4
- package/src/locales/fr.ts +11 -4
- package/src/locales/index.ts +1 -0
- package/src/locales/ja.ts +11 -4
- package/src/locales/ko.ts +11 -4
- package/src/locales/pl.ts +807 -0
- package/src/locales/pt.ts +11 -4
- package/src/locales/zh.ts +11 -4
- package/src/plugin.ts +16 -0
- package/src/styles/theme.css +40 -0
- package/dist/MButton-B9RCM06i.js +0 -171
- package/dist/MButton-B9RCM06i.js.map +0 -1
- package/dist/MColorPickerModal-ChRtcZOo.js +0 -577
- package/dist/MColorPickerModal-ChRtcZOo.js.map +0 -1
- package/dist/MDialog-dk07tify.js +0 -167
- package/dist/MDialog-dk07tify.js.map +0 -1
- package/dist/MIcon-BSsJZhK7.js.map +0 -1
- package/dist/MIconButton-CrBPZidd.js +0 -288
- package/dist/MIconButton-CrBPZidd.js.map +0 -1
- package/dist/MListItem-h9H223vx.js +0 -1239
- package/dist/MListItem-h9H223vx.js.map +0 -1
- package/dist/MLoadingIndicator-YTV1Ov5w.js +0 -114
- package/dist/MLoadingIndicator-YTV1Ov5w.js.map +0 -1
- package/dist/MMenuItem-US0Zbglq.js.map +0 -1
- package/dist/MPdfViewer-DL9mRsd2.js.map +0 -1
- package/dist/MSeekBar-JFZcoJ8y.js +0 -434
- package/dist/MSeekBar-JFZcoJ8y.js.map +0 -1
- package/dist/MTextField-B6_iOczK.js.map +0 -1
- package/dist/material-color-utilities-CEFytLsr.js.map +0 -1
- package/dist/motion-BcejVTeX.js.map +0 -1
- package/dist/useLocale-YRaOT12S.js.map +0 -1
- package/dist/useThemeTokens-DyAdPQB0.js.map +0 -1
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as ee, s as c, t as l, u as te } from "./MButton-BHKF1Tfd.js";
|
|
2
|
+
import { t as u } from "./MDialog-jAYkZ4M8.js";
|
|
3
|
+
import { t as d } from "./MIcon-CkUc9kuQ.js";
|
|
4
|
+
import { t as ne } from "./vTooltip-xESB2YOb.js";
|
|
5
|
+
import { t as re } from "./MIconButton-DTFOfsTy.js";
|
|
6
|
+
import { a as ie } from "./useLocale-BAPJ34Pq.js";
|
|
7
|
+
import { t as ae } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
8
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as x, normalizeStyle as S, onMounted as oe, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, watch as O, withCtx as k, withDirectives as se, withKeys as ce } from "vue";
|
|
9
|
+
// src/components/_MColorPanel.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var le = { class: "flex flex-col gap-4" }, ue = [
|
|
11
|
+
"aria-label",
|
|
12
|
+
"aria-valuenow",
|
|
13
|
+
"aria-valuetext"
|
|
14
|
+
], de = { class: "flex flex-col gap-1" }, fe = ["aria-label", "aria-valuenow"], pe = [
|
|
15
|
+
"aria-label",
|
|
16
|
+
"aria-valuenow",
|
|
17
|
+
"aria-valuetext"
|
|
18
|
+
], me = { class: "flex items-center gap-2" }, he = { class: "flex h-10 min-w-0 flex-1" }, ge = ["aria-label"], _e = { class: "flex items-start gap-2" }, ve = ["aria-label"], ye = ["maxlength", "value"], be = [
|
|
19
|
+
"aria-label",
|
|
20
|
+
"value",
|
|
21
|
+
"onInput",
|
|
22
|
+
"onKeydown"
|
|
23
|
+
], xe = { class: "text-label-small text-on-surface-variant" }, Se = ["aria-label"], Ce = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "text-label-medium text-on-surface-variant"
|
|
26
|
+
}, we = { class: "grid grid-cols-7 gap-2" }, Te = [
|
|
27
|
+
"aria-label",
|
|
28
|
+
"aria-pressed",
|
|
29
|
+
"onClick"
|
|
30
|
+
], A = 12, Ee = "repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 8px 8px", j = /*#__PURE__*/ ae(/* @__PURE__ */ b({
|
|
31
|
+
__name: "_MColorPanel",
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: {},
|
|
34
|
+
presets: {},
|
|
35
|
+
alpha: { type: Boolean },
|
|
36
|
+
recent: { type: Boolean },
|
|
37
|
+
eyedropper: { type: Boolean },
|
|
38
|
+
original: {}
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:modelValue"],
|
|
41
|
+
setup(a, { expose: o, emit: l }) {
|
|
42
|
+
let u = a, ae = l, b = ie(), k = w(0), j = w(100), M = w(100), N = w(1), P = p(() => r(e({
|
|
43
|
+
h: k.value,
|
|
44
|
+
s: j.value,
|
|
45
|
+
v: M.value
|
|
46
|
+
}, u.alpha ? N.value : 1))), F = p(() => r(e({
|
|
47
|
+
h: k.value,
|
|
48
|
+
s: j.value,
|
|
49
|
+
v: M.value
|
|
50
|
+
}))), De = p(() => `hsl(${k.value}, 100%, 50%)`);
|
|
51
|
+
function I(e) {
|
|
52
|
+
let t = n(e);
|
|
53
|
+
t.v > 0 && t.s > 0 && (k.value = t.h), t.v > 0 && (j.value = t.s), M.value = t.v, N.value = u.alpha ? e.a : 1;
|
|
54
|
+
}
|
|
55
|
+
let L = "";
|
|
56
|
+
function R() {
|
|
57
|
+
L = P.value, P.value !== c(u.modelValue) && ae("update:modelValue", P.value);
|
|
58
|
+
}
|
|
59
|
+
O(() => u.modelValue, (e) => {
|
|
60
|
+
let n = c(e);
|
|
61
|
+
n && n !== L && (I(t(n)), L = n);
|
|
62
|
+
}, { immediate: !0 });
|
|
63
|
+
function Oe(e) {
|
|
64
|
+
let n = t(e);
|
|
65
|
+
n && (I(n), R());
|
|
66
|
+
}
|
|
67
|
+
let z = w(), B = w(), V = w(), H = w(null), U = (e, t, n) => Math.min(n, Math.max(t, e));
|
|
68
|
+
function ke(e, t) {
|
|
69
|
+
let n = e === "area" ? z.value : e === "hue" ? B.value : V.value;
|
|
70
|
+
if (!n) return;
|
|
71
|
+
let r = n.getBoundingClientRect();
|
|
72
|
+
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);
|
|
73
|
+
else {
|
|
74
|
+
let n = U((t.clientX - r.left - A) / (r.width - 24), 0, 1);
|
|
75
|
+
e === "hue" ? k.value = n * 360 : N.value = Math.round(n * 100) / 100;
|
|
76
|
+
}
|
|
77
|
+
R();
|
|
78
|
+
}
|
|
79
|
+
function W(e, t) {
|
|
80
|
+
t.button === 0 && (t.preventDefault(), t.currentTarget.focus({ preventScroll: !0 }), t.currentTarget.setPointerCapture?.(t.pointerId), H.value = e, ke(e, t));
|
|
81
|
+
}
|
|
82
|
+
function G(e, t) {
|
|
83
|
+
H.value === e && ke(e, t);
|
|
84
|
+
}
|
|
85
|
+
function K() {
|
|
86
|
+
H.value = null;
|
|
87
|
+
}
|
|
88
|
+
function q(e, t) {
|
|
89
|
+
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;
|
|
90
|
+
if (e === "area") {
|
|
91
|
+
if (!r && !i) return;
|
|
92
|
+
j.value = U(j.value + r, 0, 100), M.value = U(M.value + i, 0, 100);
|
|
93
|
+
} else {
|
|
94
|
+
let n = e === "hue" ? 360 : 100, a = e === "hue" ? k.value : N.value * 100, o;
|
|
95
|
+
if (t.key === "Home") o = 0;
|
|
96
|
+
else if (t.key === "End") o = n;
|
|
97
|
+
else if (r || i) o = U(a + (r || i), 0, n);
|
|
98
|
+
else return;
|
|
99
|
+
e === "hue" ? k.value = o : N.value = Math.round(o) / 100;
|
|
100
|
+
}
|
|
101
|
+
t.preventDefault(), R();
|
|
102
|
+
}
|
|
103
|
+
let J = w(!1);
|
|
104
|
+
oe(() => {
|
|
105
|
+
J.value = "EyeDropper" in window;
|
|
106
|
+
});
|
|
107
|
+
async function Ae() {
|
|
108
|
+
try {
|
|
109
|
+
let e = window.EyeDropper, { sRGBHex: n } = await new e().open(), r = t(n);
|
|
110
|
+
r && (I({
|
|
111
|
+
...r,
|
|
112
|
+
a: N.value
|
|
113
|
+
}), R());
|
|
114
|
+
} catch {}
|
|
115
|
+
}
|
|
116
|
+
let Y = [
|
|
117
|
+
{
|
|
118
|
+
id: "hex",
|
|
119
|
+
label: "HEX"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "rgb",
|
|
123
|
+
label: "RGB"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "hsl",
|
|
127
|
+
label: "HSL"
|
|
128
|
+
}
|
|
129
|
+
], X = w("hex"), je = p(() => Y.find((e) => e.id === X.value).label);
|
|
130
|
+
function Me() {
|
|
131
|
+
X.value = Y[(Y.findIndex((e) => e.id === X.value) + 1) % Y.length].id, Z.value = null;
|
|
132
|
+
}
|
|
133
|
+
function Ne(e) {
|
|
134
|
+
k.value = e.h, j.value = e.s, M.value = e.v;
|
|
135
|
+
}
|
|
136
|
+
let Pe = p(() => ({
|
|
137
|
+
key: "a",
|
|
138
|
+
label: "A",
|
|
139
|
+
display: String(Math.round(N.value * 100)),
|
|
140
|
+
max: 100,
|
|
141
|
+
apply: (e) => {
|
|
142
|
+
N.value = e / 100;
|
|
143
|
+
}
|
|
144
|
+
})), Fe = p(() => {
|
|
145
|
+
let t = [];
|
|
146
|
+
if (X.value === "rgb") {
|
|
147
|
+
let n = e({
|
|
148
|
+
h: k.value,
|
|
149
|
+
s: j.value,
|
|
150
|
+
v: M.value
|
|
151
|
+
}), r = {
|
|
152
|
+
r: Math.round(n.r),
|
|
153
|
+
g: Math.round(n.g),
|
|
154
|
+
b: Math.round(n.b),
|
|
155
|
+
a: N.value
|
|
156
|
+
};
|
|
157
|
+
for (let e of [
|
|
158
|
+
"r",
|
|
159
|
+
"g",
|
|
160
|
+
"b"
|
|
161
|
+
]) t.push({
|
|
162
|
+
key: e,
|
|
163
|
+
label: e.toUpperCase(),
|
|
164
|
+
display: String(r[e]),
|
|
165
|
+
max: 255,
|
|
166
|
+
apply: (t) => I({
|
|
167
|
+
...r,
|
|
168
|
+
[e]: t
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
} else if (X.value === "hsl") {
|
|
172
|
+
let e = i({
|
|
173
|
+
h: k.value,
|
|
174
|
+
s: j.value,
|
|
175
|
+
v: M.value
|
|
176
|
+
}), n = {
|
|
177
|
+
h: Math.round(e.h),
|
|
178
|
+
s: Math.round(e.s),
|
|
179
|
+
l: Math.round(e.l)
|
|
180
|
+
};
|
|
181
|
+
for (let e of [
|
|
182
|
+
"h",
|
|
183
|
+
"s",
|
|
184
|
+
"l"
|
|
185
|
+
]) t.push({
|
|
186
|
+
key: e,
|
|
187
|
+
label: e.toUpperCase(),
|
|
188
|
+
display: String(n[e]),
|
|
189
|
+
max: e === "h" ? 360 : 100,
|
|
190
|
+
apply: (t) => Ne(ee({
|
|
191
|
+
...n,
|
|
192
|
+
[e]: t
|
|
193
|
+
}))
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
return u.alpha && X.value !== "hex" && t.push(Pe.value), t;
|
|
197
|
+
}), Z = w(null), Ie = (e, t) => Z.value?.key === e ? Z.value.text : t;
|
|
198
|
+
function Le(e) {
|
|
199
|
+
let n = e.target.value;
|
|
200
|
+
Z.value = {
|
|
201
|
+
key: "hex",
|
|
202
|
+
text: n
|
|
203
|
+
};
|
|
204
|
+
let r = t(n);
|
|
205
|
+
r && (I(r), R());
|
|
206
|
+
}
|
|
207
|
+
function Re(e, t) {
|
|
208
|
+
let n = t.target.value;
|
|
209
|
+
if (Z.value = {
|
|
210
|
+
key: e.key,
|
|
211
|
+
text: n
|
|
212
|
+
}, !/^\d+$/.test(n.trim())) return;
|
|
213
|
+
let r = Number(n);
|
|
214
|
+
r > e.max || (e.apply(r), R());
|
|
215
|
+
}
|
|
216
|
+
function ze(e, t) {
|
|
217
|
+
if (t.key === "Enter") {
|
|
218
|
+
Z.value = null;
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (t.key !== "ArrowUp" && t.key !== "ArrowDown") return;
|
|
222
|
+
t.preventDefault();
|
|
223
|
+
let n = (t.shiftKey ? 10 : 1) * (t.key === "ArrowUp" ? 1 : -1);
|
|
224
|
+
e.apply(U(Number(e.display) + n, 0, e.max)), Z.value = null, R();
|
|
225
|
+
}
|
|
226
|
+
let Be = p(() => u.recent ? te.value : []), Q = (e) => c(e) === P.value, $ = (e) => `linear-gradient(${e}, ${e}), ${Ee}`, Ve = p(() => N.value < .5 ? "#000000" : s(F.value)), He = p(() => !!u.original && !!c(u.original) && c(u.original) !== P.value);
|
|
227
|
+
return o({ focus: () => z.value?.focus({ preventScroll: !0 }) }), (e, t) => (C(), g("div", le, [
|
|
228
|
+
_("div", {
|
|
229
|
+
ref_key: "areaEl",
|
|
230
|
+
ref: z,
|
|
231
|
+
role: "slider",
|
|
232
|
+
tabindex: "0",
|
|
233
|
+
"aria-label": `${D(b).colorSaturation}, ${D(b).colorBrightness}`,
|
|
234
|
+
"aria-valuenow": Math.round(j.value),
|
|
235
|
+
"aria-valuemin": "0",
|
|
236
|
+
"aria-valuemax": "100",
|
|
237
|
+
"aria-valuetext": `${D(b).colorSaturation} ${Math.round(j.value)}%, ${D(b).colorBrightness} ${Math.round(M.value)}%`,
|
|
238
|
+
class: "relative h-40 w-full shrink-0 cursor-crosshair touch-none rounded-md outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary",
|
|
239
|
+
style: S({ background: `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${De.value})` }),
|
|
240
|
+
onPointerdown: t[0] ||= (e) => W("area", e),
|
|
241
|
+
onPointermove: t[1] ||= (e) => G("area", e),
|
|
242
|
+
onPointerup: K,
|
|
243
|
+
onPointercancel: K,
|
|
244
|
+
onKeydown: t[2] ||= (e) => q("area", e)
|
|
245
|
+
}, [_("span", {
|
|
246
|
+
class: x(["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" : ""]),
|
|
247
|
+
style: S({
|
|
248
|
+
left: `${j.value}%`,
|
|
249
|
+
top: `${100 - M.value}%`,
|
|
250
|
+
backgroundColor: F.value
|
|
251
|
+
})
|
|
252
|
+
}, null, 6)], 44, ue),
|
|
253
|
+
_("div", de, [_("div", {
|
|
254
|
+
ref_key: "hueEl",
|
|
255
|
+
ref: B,
|
|
256
|
+
role: "slider",
|
|
257
|
+
tabindex: "0",
|
|
258
|
+
"aria-label": D(b).colorHue,
|
|
259
|
+
"aria-valuenow": Math.round(k.value),
|
|
260
|
+
"aria-valuemin": "0",
|
|
261
|
+
"aria-valuemax": "360",
|
|
262
|
+
class: "m3-cp-slider group",
|
|
263
|
+
onPointerdown: t[3] ||= (e) => W("hue", e),
|
|
264
|
+
onPointermove: t[4] ||= (e) => G("hue", e),
|
|
265
|
+
onPointerup: K,
|
|
266
|
+
onPointercancel: K,
|
|
267
|
+
onKeydown: t[5] ||= (e) => q("hue", e)
|
|
268
|
+
}, [t[13] ||= _("span", { class: "m3-cp-track m3-cp-hue" }, null, -1), _("span", {
|
|
269
|
+
class: x(["m3-cp-handle", { "m3-cp-handle-pressed": H.value === "hue" }]),
|
|
270
|
+
style: S({ left: `calc(${A}px + ${k.value / 360} * (100% - 24px))` })
|
|
271
|
+
}, null, 6)], 40, fe), a.alpha ? (C(), g("div", {
|
|
272
|
+
key: 0,
|
|
273
|
+
ref_key: "alphaEl",
|
|
274
|
+
ref: V,
|
|
275
|
+
role: "slider",
|
|
276
|
+
tabindex: "0",
|
|
277
|
+
"aria-label": D(b).colorAlpha,
|
|
278
|
+
"aria-valuenow": Math.round(N.value * 100),
|
|
279
|
+
"aria-valuemin": "0",
|
|
280
|
+
"aria-valuemax": "100",
|
|
281
|
+
"aria-valuetext": `${Math.round(N.value * 100)}%`,
|
|
282
|
+
class: "m3-cp-slider group",
|
|
283
|
+
onPointerdown: t[6] ||= (e) => W("alpha", e),
|
|
284
|
+
onPointermove: t[7] ||= (e) => G("alpha", e),
|
|
285
|
+
onPointerup: K,
|
|
286
|
+
onPointercancel: K,
|
|
287
|
+
onKeydown: t[8] ||= (e) => q("alpha", e)
|
|
288
|
+
}, [_("span", {
|
|
289
|
+
class: "m3-cp-track",
|
|
290
|
+
style: S({ background: `linear-gradient(to right, transparent, ${F.value}), ${Ee}` })
|
|
291
|
+
}, null, 4), _("span", {
|
|
292
|
+
class: x(["m3-cp-handle", { "m3-cp-handle-pressed": H.value === "alpha" }]),
|
|
293
|
+
style: S({ left: `calc(${A}px + ${N.value} * (100% - 24px))` })
|
|
294
|
+
}, null, 6)], 40, pe)) : h("", !0)]),
|
|
295
|
+
_("div", me, [_("div", he, [He.value ? se((C(), g("button", {
|
|
296
|
+
key: 0,
|
|
297
|
+
type: "button",
|
|
298
|
+
class: "m3-cp-swatch flex w-12 shrink-0 cursor-pointer items-center justify-center rounded-s-full outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary",
|
|
299
|
+
style: S({ background: $(a.original) }),
|
|
300
|
+
"aria-label": D(b).colorOriginal,
|
|
301
|
+
onClick: t[9] ||= (e) => Oe(a.original)
|
|
302
|
+
}, [y(d, {
|
|
303
|
+
name: "undo",
|
|
304
|
+
size: 18,
|
|
305
|
+
style: S({ color: D(s)(a.original) })
|
|
306
|
+
}, null, 8, ["style"])], 12, ge)), [[D(ne), D(b).colorOriginal]]) : h("", !0), _("span", {
|
|
307
|
+
class: x(["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"]),
|
|
308
|
+
style: S({
|
|
309
|
+
background: $(P.value),
|
|
310
|
+
color: Ve.value
|
|
311
|
+
})
|
|
312
|
+
}, E(P.value), 7)]), a.eyedropper && J.value ? (C(), m(re, {
|
|
313
|
+
key: 0,
|
|
314
|
+
icon: "colorize",
|
|
315
|
+
variant: "tonal",
|
|
316
|
+
label: D(b).colorEyedropper,
|
|
317
|
+
onClick: Ae
|
|
318
|
+
}, null, 8, ["label"])) : h("", !0)]),
|
|
319
|
+
_("div", _e, [
|
|
320
|
+
_("button", {
|
|
321
|
+
type: "button",
|
|
322
|
+
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-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary",
|
|
323
|
+
"aria-label": `${D(b).colorFormat}: ${je.value}`,
|
|
324
|
+
onClick: Me
|
|
325
|
+
}, [v(E(je.value) + " ", 1), y(d, {
|
|
326
|
+
name: "unfold_more",
|
|
327
|
+
size: 18
|
|
328
|
+
})], 8, ve),
|
|
329
|
+
X.value === "hex" ? (C(), g("input", {
|
|
330
|
+
key: 0,
|
|
331
|
+
type: "text",
|
|
332
|
+
spellcheck: "false",
|
|
333
|
+
autocomplete: "off",
|
|
334
|
+
maxlength: a.alpha ? 9 : 7,
|
|
335
|
+
"aria-label": "HEX",
|
|
336
|
+
value: Ie("hex", P.value),
|
|
337
|
+
class: "m3-cp-field min-w-0 flex-1 font-mono text-body-medium",
|
|
338
|
+
onInput: Le,
|
|
339
|
+
onBlur: t[10] ||= (e) => Z.value = null,
|
|
340
|
+
onKeydown: t[11] ||= ce((e) => Z.value = null, ["enter"])
|
|
341
|
+
}, null, 40, ye)) : h("", !0),
|
|
342
|
+
(C(!0), g(f, null, T(Fe.value, (e) => (C(), g("label", {
|
|
343
|
+
key: e.key,
|
|
344
|
+
class: "flex min-w-0 flex-1 flex-col items-center gap-1"
|
|
345
|
+
}, [_("input", {
|
|
346
|
+
type: "text",
|
|
347
|
+
inputmode: "numeric",
|
|
348
|
+
autocomplete: "off",
|
|
349
|
+
maxlength: 3,
|
|
350
|
+
"aria-label": e.label,
|
|
351
|
+
value: Ie(e.key, e.display),
|
|
352
|
+
class: "m3-cp-field w-full font-mono text-body-medium",
|
|
353
|
+
onInput: (t) => Re(e, t),
|
|
354
|
+
onKeydown: (t) => ze(e, t),
|
|
355
|
+
onBlur: t[12] ||= (e) => Z.value = null
|
|
356
|
+
}, null, 40, be), _("span", xe, E(e.label), 1)]))), 128))
|
|
357
|
+
]),
|
|
358
|
+
(C(!0), g(f, null, T([{
|
|
359
|
+
id: "recent",
|
|
360
|
+
label: D(b).colorRecent,
|
|
361
|
+
colors: Be.value
|
|
362
|
+
}, {
|
|
363
|
+
id: "presets",
|
|
364
|
+
label: D(b).colorPresets,
|
|
365
|
+
colors: a.presets
|
|
366
|
+
}], (e) => (C(), g(f, { key: e.id }, [e.colors.length ? (C(), g("div", {
|
|
367
|
+
key: 0,
|
|
368
|
+
role: "group",
|
|
369
|
+
"aria-label": e.label,
|
|
370
|
+
class: "flex flex-col gap-2"
|
|
371
|
+
}, [Be.value.length ? (C(), g("span", Ce, E(e.label), 1)) : h("", !0), _("div", we, [(C(!0), g(f, null, T(e.colors, (e) => (C(), g("button", {
|
|
372
|
+
key: e,
|
|
373
|
+
type: "button",
|
|
374
|
+
class: x(["m3-cp-swatch m3-cp-morph flex aspect-square cursor-pointer items-center justify-center outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary", { "m3-cp-morph-selected": Q(e) }]),
|
|
375
|
+
style: S({ background: $(e) }),
|
|
376
|
+
"aria-label": e,
|
|
377
|
+
"aria-pressed": Q(e),
|
|
378
|
+
onClick: (t) => Oe(e)
|
|
379
|
+
}, [Q(e) ? (C(), m(d, {
|
|
380
|
+
key: 0,
|
|
381
|
+
name: "check",
|
|
382
|
+
size: 18,
|
|
383
|
+
style: S({ color: D(s)(e) })
|
|
384
|
+
}, null, 8, ["style"])) : h("", !0)], 14, Te))), 128))])], 8, Se)) : h("", !0)], 64))), 128))
|
|
385
|
+
]));
|
|
386
|
+
}
|
|
387
|
+
}), [["__scopeId", "data-v-1ef61d8d"]]), M = /* @__PURE__ */ b({
|
|
388
|
+
__name: "MColorPickerModal",
|
|
389
|
+
props: {
|
|
390
|
+
modelValue: {},
|
|
391
|
+
show: {
|
|
392
|
+
type: Boolean,
|
|
393
|
+
default: !1
|
|
394
|
+
},
|
|
395
|
+
presets: { default: () => o },
|
|
396
|
+
title: {},
|
|
397
|
+
alpha: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
default: !1
|
|
400
|
+
},
|
|
401
|
+
recent: {
|
|
402
|
+
type: Boolean,
|
|
403
|
+
default: !0
|
|
404
|
+
},
|
|
405
|
+
recentLimit: { default: 7 },
|
|
406
|
+
eyedropper: {
|
|
407
|
+
type: Boolean,
|
|
408
|
+
default: !0
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
emits: ["update:modelValue", "update:show"],
|
|
412
|
+
setup(e, { emit: t }) {
|
|
413
|
+
let n = e, r = ie(), i = t, o = w(n.modelValue);
|
|
414
|
+
O(() => n.show, (e) => {
|
|
415
|
+
e && (o.value = n.modelValue);
|
|
416
|
+
}, { immediate: !0 });
|
|
417
|
+
function s() {
|
|
418
|
+
i("update:show", !1);
|
|
419
|
+
}
|
|
420
|
+
function ee() {
|
|
421
|
+
let e = c(o.value) || o.value;
|
|
422
|
+
n.recent && a(e, n.recentLimit), i("update:modelValue", e), i("update:show", !1);
|
|
423
|
+
}
|
|
424
|
+
return (t, n) => (C(), m(u, {
|
|
425
|
+
"model-value": e.show,
|
|
426
|
+
title: e.title || D(r).selectColor,
|
|
427
|
+
"max-width": "328px",
|
|
428
|
+
closable: !1,
|
|
429
|
+
"onUpdate:modelValue": n[1] ||= (e) => !e && s()
|
|
430
|
+
}, {
|
|
431
|
+
actions: k(() => [y(l, {
|
|
432
|
+
variant: "text",
|
|
433
|
+
onClick: s
|
|
434
|
+
}, {
|
|
435
|
+
default: k(() => [v(E(D(r).cancel), 1)]),
|
|
436
|
+
_: 1
|
|
437
|
+
}), y(l, {
|
|
438
|
+
variant: "text",
|
|
439
|
+
onClick: ee
|
|
440
|
+
}, {
|
|
441
|
+
default: k(() => [v(E(D(r).confirm), 1)]),
|
|
442
|
+
_: 1
|
|
443
|
+
})]),
|
|
444
|
+
default: k(() => [y(j, {
|
|
445
|
+
modelValue: o.value,
|
|
446
|
+
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
447
|
+
presets: e.presets,
|
|
448
|
+
alpha: e.alpha,
|
|
449
|
+
recent: e.recent,
|
|
450
|
+
eyedropper: e.eyedropper,
|
|
451
|
+
original: e.modelValue
|
|
452
|
+
}, null, 8, [
|
|
453
|
+
"modelValue",
|
|
454
|
+
"presets",
|
|
455
|
+
"alpha",
|
|
456
|
+
"recent",
|
|
457
|
+
"eyedropper",
|
|
458
|
+
"original"
|
|
459
|
+
])]),
|
|
460
|
+
_: 1
|
|
461
|
+
}, 8, ["model-value", "title"]));
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
export { j as n, M as t };
|
|
465
|
+
|
|
466
|
+
//# sourceMappingURL=MColorPickerModal-CNesUJUq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MColorPickerModal-CNesUJUq.js","names":["_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeStyle","_normalizeClass","_withDirectives","_createVNode","MIcon","_toDisplayString","_createBlock","MIconButton","_createTextVNode","_withKeys","_Fragment","_renderList","_openBlock","_createBlock","MDialog","_unref","_withCtx","_createVNode","MButton","_createTextVNode","_toDisplayString","MColorPanel","hsvToRgb","parseHex","rgbToHsv","toHex","pushRecentColor","defaultColorPresets","inkFor","hslToHsv","normalizeHex","MButton_default","recentColors","MDialog_default","MIcon_default","vTooltip","MIconButton_default","useLocale","_plugin_vue_export_helper_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","THUMB_INSET","CHECKER","_MColorPanel_default","defineComponent","__expose","__emit","props","__props","emit","t","h","ref","s","v","a","hex","computed","opaqueHex","hueColor","setFromRgb","hsv","c","lastEmitted","commit","val","pick","color","areaEl","hueEl","alphaEl","dragging","clamp","max","min","n","update","el","target","e","p","onPointerDown","onPointerMove","onPointerUp","onKeydown","step","dx","dy","cur","next","canEyedrop","pickFromScreen","Ctor","sRGBHex","formats","format","formatLabel","f","cycleFormat","setHsv","alphaField","fields","list","rgb","round","ch","hsl","hsvToHsl","editing","shown","key","display","onHexInput","text","onFieldInput","onFieldKeydown","recents","isSelected","fill","previewInk","showOriginal","openBlock","createElementBlock","createElementVNode","unref","normalizeStyle","_cache","$event","normalizeClass","createCommentVNode","withDirectives","createVNode","toDisplayString","createBlock","createTextVNode","withKeys","Fragment","renderList","group","MColorPickerModal_default","draft","open","cancel","confirm","picked","withCtx"],"sources":["../src/components/_MColorPanel.vue","../src/components/MColorPickerModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Internal: the picking UI shared by MColorPicker (in its dropdown) and MColorPickerModal (in its dialog).\n * Saturation/brightness area, hue and opacity sliders, eyedropper, HEX/RGB/HSL fields, recent and preset\n * swatches. Emits on every change; the parent decides when that becomes the real value.\n */\nimport { computed, onMounted, ref, watch } from 'vue'\nimport MIcon from './MIcon.vue'\nimport { vTooltip } from '../directives/vTooltip'\nimport MIconButton from './MIconButton.vue'\nimport { useLocale } from '../composables/useLocale'\nimport {\n hslToHsv, hsvToHsl, hsvToRgb, inkFor, normalizeHex, parseHex, recentColors, rgbToHsv, toHex, type Rgba,\n} from '../composables/_colorUtils'\n\nconst props = defineProps<{\n modelValue: string\n presets: string[]\n alpha: boolean\n recent: boolean\n eyedropper: boolean\n /** Shown as the left half of the preview, click to restore */\n original?: string\n}>()\n\nconst emit = defineEmits<{ 'update:modelValue': [string] }>()\nconst t = useLocale()\n\n// ── State: HSV + alpha, kept here so hue survives grays and black ──────────────────────────\nconst h = ref(0)\nconst s = ref(100)\nconst v = ref(100)\nconst a = ref(1)\n\nconst hex = computed(() => toHex(hsvToRgb({ h: h.value, s: s.value, v: v.value }, props.alpha ? a.value : 1)))\nconst opaqueHex = computed(() => toHex(hsvToRgb({ h: h.value, s: s.value, v: v.value })))\nconst hueColor = computed(() => `hsl(${h.value}, 100%, 50%)`)\n\nfunction setFromRgb(c: Rgba) {\n const hsv = rgbToHsv(c)\n // A gray has no hue and black no saturation: keep the ones we had, so the thumbs don't jump\n if (hsv.v > 0 && hsv.s > 0) h.value = hsv.h\n if (hsv.v > 0) s.value = hsv.s\n v.value = hsv.v\n a.value = props.alpha ? c.a : 1\n}\n\nlet lastEmitted = ''\nfunction commit() {\n lastEmitted = hex.value\n if (hex.value !== normalizeHex(props.modelValue)) emit('update:modelValue', hex.value)\n}\n\nwatch(() => props.modelValue, (val) => {\n const n = normalizeHex(val)\n if (!n || n === lastEmitted) return\n setFromRgb(parseHex(n)!)\n lastEmitted = n\n}, { immediate: true })\n\nfunction pick(color: string) {\n const c = parseHex(color)\n if (!c) return\n setFromRgb(c)\n commit()\n}\n\n// ── Pointer: area and sliders ──────────────────────────────────────────────────────────────\ntype Target = 'area' | 'hue' | 'alpha'\nconst areaEl = ref<HTMLElement>()\nconst hueEl = ref<HTMLElement>()\nconst alphaEl = ref<HTMLElement>()\nconst dragging = ref<Target | null>(null)\n// The slider handles travel between the centers of the track's round ends (24px track)\nconst THUMB_INSET = 12\n\nconst clamp = (n: number, min: number, max: number) => Math.min(max, Math.max(min, n))\n\nfunction update(target: Target, e: PointerEvent) {\n const el = target === 'area' ? areaEl.value : target === 'hue' ? hueEl.value : alphaEl.value\n if (!el) return\n const r = el.getBoundingClientRect()\n if (target === 'area') {\n s.value = clamp(((e.clientX - r.left) / r.width) * 100, 0, 100)\n v.value = clamp((1 - (e.clientY - r.top) / r.height) * 100, 0, 100)\n } else {\n const p = clamp((e.clientX - r.left - THUMB_INSET) / (r.width - THUMB_INSET * 2), 0, 1)\n if (target === 'hue') h.value = p * 360\n else a.value = Math.round(p * 100) / 100\n }\n commit()\n}\n\nfunction onPointerDown(target: Target, e: PointerEvent) {\n if (e.button !== 0) return\n e.preventDefault()\n ;(e.currentTarget as HTMLElement).focus({ preventScroll: true })\n ;(e.currentTarget as HTMLElement).setPointerCapture?.(e.pointerId)\n dragging.value = target\n update(target, e)\n}\nfunction onPointerMove(target: Target, e: PointerEvent) {\n if (dragging.value === target) update(target, e)\n}\nfunction onPointerUp() {\n dragging.value = null\n}\n\n// ── Keyboard ───────────────────────────────────────────────────────────────────────────────\nfunction onKeydown(target: Target, e: KeyboardEvent) {\n const step = e.shiftKey ? 10 : 1\n const dx = e.key === 'ArrowRight' ? step : e.key === 'ArrowLeft' ? -step : 0\n const dy = e.key === 'ArrowUp' ? step : e.key === 'ArrowDown' ? -step : 0\n if (target === 'area') {\n if (!dx && !dy) return\n s.value = clamp(s.value + dx, 0, 100)\n v.value = clamp(v.value + dy, 0, 100)\n } else {\n const max = target === 'hue' ? 360 : 100\n const cur = target === 'hue' ? h.value : a.value * 100\n let next: number\n if (e.key === 'Home') next = 0\n else if (e.key === 'End') next = max\n else if (dx || dy) next = clamp(cur + (dx || dy), 0, max)\n else return\n if (target === 'hue') h.value = next\n else a.value = Math.round(next) / 100\n }\n e.preventDefault()\n commit()\n}\n\n// ── Eyedropper (Chromium only; the button isn't shown elsewhere) ─────────────────────────────\nconst canEyedrop = ref(false)\nonMounted(() => { canEyedrop.value = 'EyeDropper' in window })\n\nasync function pickFromScreen() {\n try {\n const Ctor = (window as unknown as { EyeDropper: new () => { open(): Promise<{ sRGBHex: string }> } }).EyeDropper\n const { sRGBHex } = await new Ctor().open()\n const c = parseHex(sRGBHex)\n if (c) { setFromRgb({ ...c, a: a.value }); commit() }\n } catch { /* cancelled */ }\n}\n\n// ── Text fields ─────────────────────────────────────────────────────────────────────────────\ntype Format = 'hex' | 'rgb' | 'hsl'\nconst formats: { id: Format; label: string }[] = [\n { id: 'hex', label: 'HEX' }, { id: 'rgb', label: 'RGB' }, { id: 'hsl', label: 'HSL' },\n]\nconst format = ref<Format>('hex')\nconst formatLabel = computed(() => formats.find((f) => f.id === format.value)!.label)\nfunction cycleFormat() {\n format.value = formats[(formats.findIndex((f) => f.id === format.value) + 1) % formats.length]!.id\n editing.value = null\n}\n\ninterface Field { key: string; label: string; display: string; max: number; apply: (n: number) => void }\n\nfunction setHsv(next: { h: number; s: number; v: number }) {\n h.value = next.h; s.value = next.s; v.value = next.v\n}\n\nconst alphaField = computed<Field>(() => ({\n key: 'a', label: 'A', display: String(Math.round(a.value * 100)), max: 100,\n apply: (n) => { a.value = n / 100 },\n}))\n\nconst fields = computed<Field[]>(() => {\n const list: Field[] = []\n if (format.value === 'rgb') {\n const rgb = hsvToRgb({ h: h.value, s: s.value, v: v.value })\n const round = { r: Math.round(rgb.r), g: Math.round(rgb.g), b: Math.round(rgb.b), a: a.value }\n for (const ch of ['r', 'g', 'b'] as const) {\n list.push({\n key: ch, label: ch.toUpperCase(), display: String(round[ch]), max: 255,\n apply: (n) => setFromRgb({ ...round, [ch]: n }),\n })\n }\n } else if (format.value === 'hsl') {\n const hsl = hsvToHsl({ h: h.value, s: s.value, v: v.value })\n const round = { h: Math.round(hsl.h), s: Math.round(hsl.s), l: Math.round(hsl.l) }\n for (const ch of ['h', 's', 'l'] as const) {\n list.push({\n key: ch, label: ch.toUpperCase(), display: String(round[ch]), max: ch === 'h' ? 360 : 100,\n // Straight from HSL to HSV, so a hue typed on a gray isn't lost\n apply: (n) => setHsv(hslToHsv({ ...round, [ch]: n })),\n })\n }\n }\n if (props.alpha && format.value !== 'hex') list.push(alphaField.value)\n return list\n})\n\n// While a field is focused it shows what the user typed, not the reformatted value\nconst editing = ref<{ key: string; text: string } | null>(null)\nconst shown = (key: string, display: string) => (editing.value?.key === key ? editing.value.text : display)\n\nfunction onHexInput(e: Event) {\n const text = (e.target as HTMLInputElement).value\n editing.value = { key: 'hex', text }\n const c = parseHex(text)\n if (c) { setFromRgb(c); commit() }\n}\n\nfunction onFieldInput(f: Field, e: Event) {\n const text = (e.target as HTMLInputElement).value\n editing.value = { key: f.key, text }\n if (!/^\\d+$/.test(text.trim())) return\n const n = Number(text)\n if (n > f.max) return\n f.apply(n)\n commit()\n}\n\nfunction onFieldKeydown(f: Field, e: KeyboardEvent) {\n if (e.key === 'Enter') { editing.value = null; return }\n if (e.key !== 'ArrowUp' && e.key !== 'ArrowDown') return\n e.preventDefault()\n const step = (e.shiftKey ? 10 : 1) * (e.key === 'ArrowUp' ? 1 : -1)\n f.apply(clamp(Number(f.display) + step, 0, f.max))\n editing.value = null\n commit()\n}\n\n// ── Swatches ────────────────────────────────────────────────────────────────────────────────\nconst recents = computed(() => (props.recent ? recentColors.value : []))\nconst isSelected = (color: string) => normalizeHex(color) === hex.value\n// Swatches and preview segments paint the color over a checkerboard in one background, so a translucent color\n// shows it and the edge is a single antialiased shape (nested clipped layers looked jagged in Firefox)\nconst CHECKER = 'repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 8px 8px'\nconst fill = (color: string) => `linear-gradient(${color}, ${color}), ${CHECKER}`\n// Over a mostly transparent color the checkerboard (light) is what's behind the text\nconst previewInk = computed(() => (a.value < 0.5 ? '#000000' : inkFor(opaqueHex.value)))\nconst showOriginal = computed(() => !!props.original && !!normalizeHex(props.original) && normalizeHex(props.original) !== hex.value)\n\ndefineExpose({ focus: () => areaEl.value?.focus({ preventScroll: true }) })\n</script>\n\n<template>\n <div class=\"flex flex-col gap-4\">\n <!-- Saturation (x) / brightness (y) -->\n <div\n ref=\"areaEl\"\n role=\"slider\"\n tabindex=\"0\"\n :aria-label=\"`${t.colorSaturation}, ${t.colorBrightness}`\"\n :aria-valuenow=\"Math.round(s)\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n :aria-valuetext=\"`${t.colorSaturation} ${Math.round(s)}%, ${t.colorBrightness} ${Math.round(v)}%`\"\n class=\"relative h-40 w-full shrink-0 cursor-crosshair touch-none rounded-md outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary\"\n :style=\"{ background: `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${hueColor})` }\"\n @pointerdown=\"onPointerDown('area', $event)\"\n @pointermove=\"onPointerMove('area', $event)\"\n @pointerup=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n @keydown=\"onKeydown('area', $event)\"\n >\n <span\n 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\"\n :class=\"dragging === 'area' ? 'scale-125' : ''\"\n :style=\"{ left: `${s}%`, top: `${100 - v}%`, backgroundColor: opaqueHex }\"\n />\n </div>\n\n <!-- Hue / opacity: thick tracks with M3 Expressive's bar handle -->\n <div class=\"flex flex-col gap-1\">\n <div\n ref=\"hueEl\"\n role=\"slider\"\n tabindex=\"0\"\n :aria-label=\"t.colorHue\"\n :aria-valuenow=\"Math.round(h)\"\n aria-valuemin=\"0\"\n aria-valuemax=\"360\"\n class=\"m3-cp-slider group\"\n @pointerdown=\"onPointerDown('hue', $event)\"\n @pointermove=\"onPointerMove('hue', $event)\"\n @pointerup=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n @keydown=\"onKeydown('hue', $event)\"\n >\n <span class=\"m3-cp-track m3-cp-hue\" />\n <span\n class=\"m3-cp-handle\"\n :class=\"{ 'm3-cp-handle-pressed': dragging === 'hue' }\"\n :style=\"{ left: `calc(${THUMB_INSET}px + ${h / 360} * (100% - ${THUMB_INSET * 2}px))` }\"\n />\n </div>\n <div\n v-if=\"alpha\"\n ref=\"alphaEl\"\n role=\"slider\"\n tabindex=\"0\"\n :aria-label=\"t.colorAlpha\"\n :aria-valuenow=\"Math.round(a * 100)\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n :aria-valuetext=\"`${Math.round(a * 100)}%`\"\n class=\"m3-cp-slider group\"\n @pointerdown=\"onPointerDown('alpha', $event)\"\n @pointermove=\"onPointerMove('alpha', $event)\"\n @pointerup=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n @keydown=\"onKeydown('alpha', $event)\"\n >\n <span class=\"m3-cp-track\" :style=\"{ background: `linear-gradient(to right, transparent, ${opaqueHex}), ${CHECKER}` }\" />\n <span\n class=\"m3-cp-handle\"\n :class=\"{ 'm3-cp-handle-pressed': dragging === 'alpha' }\"\n :style=\"{ left: `calc(${THUMB_INSET}px + ${a} * (100% - ${THUMB_INSET * 2}px))` }\"\n />\n </div>\n </div>\n\n <!-- Preview (original | new) and eyedropper -->\n <div class=\"flex items-center gap-2\">\n <div class=\"flex h-10 min-w-0 flex-1\">\n <button\n v-if=\"showOriginal\"\n type=\"button\"\n class=\"m3-cp-swatch flex w-12 shrink-0 cursor-pointer items-center justify-center rounded-s-full outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary\"\n :style=\"{ background: fill(original!) }\"\n :aria-label=\"t.colorOriginal\"\n v-tooltip=\"t.colorOriginal\"\n @click=\"pick(original!)\"\n >\n <MIcon name=\"undo\" :size=\"18\" :style=\"{ color: inkFor(original!) }\" />\n </button>\n <span\n class=\"m3-cp-swatch flex min-w-0 flex-1 items-center px-4 font-mono text-label-large transition-[border-radius] duration-200\"\n :class=\"showOriginal ? 'rounded-e-full' : 'rounded-full'\"\n :style=\"{ background: fill(hex), color: previewInk }\"\n >{{ hex }}</span>\n </div>\n <MIconButton v-if=\"eyedropper && canEyedrop\" icon=\"colorize\" variant=\"tonal\" :label=\"t.colorEyedropper\" @click=\"pickFromScreen\" />\n </div>\n\n <!-- Format + fields -->\n <div class=\"flex items-start gap-2\">\n <button\n type=\"button\"\n 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-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary\"\n :aria-label=\"`${t.colorFormat}: ${formatLabel}`\"\n @click=\"cycleFormat\"\n >\n {{ formatLabel }}\n <MIcon name=\"unfold_more\" :size=\"18\" />\n </button>\n <input\n v-if=\"format === 'hex'\"\n type=\"text\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n :maxlength=\"alpha ? 9 : 7\"\n aria-label=\"HEX\"\n :value=\"shown('hex', hex)\"\n class=\"m3-cp-field min-w-0 flex-1 font-mono text-body-medium\"\n @input=\"onHexInput\"\n @blur=\"editing = null\"\n @keydown.enter=\"editing = null\"\n />\n <label v-for=\"f in fields\" :key=\"f.key\" class=\"flex min-w-0 flex-1 flex-col items-center gap-1\">\n <input\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n :maxlength=\"3\"\n :aria-label=\"f.label\"\n :value=\"shown(f.key, f.display)\"\n class=\"m3-cp-field w-full font-mono text-body-medium\"\n @input=\"onFieldInput(f, $event)\"\n @keydown=\"onFieldKeydown(f, $event)\"\n @blur=\"editing = null\"\n />\n <span class=\"text-label-small text-on-surface-variant\">{{ f.label }}</span>\n </label>\n </div>\n\n <!-- Swatches: rounded squares that morph into a circle when selected -->\n <template v-for=\"group in [{ id: 'recent', label: t.colorRecent, colors: recents }, { id: 'presets', label: t.colorPresets, colors: presets }]\" :key=\"group.id\">\n <div v-if=\"group.colors.length\" role=\"group\" :aria-label=\"group.label\" class=\"flex flex-col gap-2\">\n <span v-if=\"recents.length\" class=\"text-label-medium text-on-surface-variant\">{{ group.label }}</span>\n <div class=\"grid grid-cols-7 gap-2\">\n <button\n v-for=\"color in group.colors\"\n :key=\"color\"\n type=\"button\"\n class=\"m3-cp-swatch m3-cp-morph flex aspect-square cursor-pointer items-center justify-center outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary\"\n :class=\"{ 'm3-cp-morph-selected': isSelected(color) }\"\n :style=\"{ background: fill(color) }\"\n :aria-label=\"color\"\n :aria-pressed=\"isSelected(color)\"\n @click=\"pick(color)\"\n >\n <MIcon v-if=\"isSelected(color)\" name=\"check\" :size=\"18\" :style=\"{ color: inkFor(color) }\" />\n </button>\n </div>\n </div>\n </template>\n </div>\n</template>\n\n<style scoped>\n.m3-cp-hue {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n/* Hairline so white swatches show on light surfaces and black ones on dark */\n.m3-cp-swatch {\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent);\n}\n.m3-cp-morph {\n border-radius: 30%;\n transition: border-radius 250ms cubic-bezier(0.2, 0, 0, 1);\n}\n.m3-cp-morph:hover {\n border-radius: 40%;\n}\n.m3-cp-morph-selected,\n.m3-cp-morph-selected:hover {\n border-radius: 50%;\n}\n.m3-cp-area-thumb {\n box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 1px 3px 1px rgb(0 0 0 / 0.25);\n}\n.m3-cp-slider {\n position: relative;\n height: 32px;\n cursor: pointer;\n touch-action: none;\n outline: none;\n}\n.m3-cp-track {\n position: absolute;\n inset: 4px 0;\n border-radius: 9999px;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 12%, transparent);\n}\n/* After M3 Expressive's slider handle: a bar taller than the track that narrows while pressed */\n.m3-cp-handle {\n position: absolute;\n top: 0;\n width: 6px;\n height: 32px;\n translate: -50% 0;\n border-radius: 9999px;\n background: #fff;\n box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 1px 3px rgb(0 0 0 / 0.3);\n pointer-events: none;\n transition: width 150ms cubic-bezier(0.2, 0, 0, 1);\n}\n.m3-cp-handle-pressed {\n width: 4px;\n}\n.group:focus-visible .m3-cp-handle {\n outline: 2px solid var(--color-primary);\n outline-offset: 2px;\n}\n.m3-cp-field {\n height: 40px;\n border-radius: var(--radius-sm);\n border: none;\n background: var(--color-surface-container-highest);\n padding: 0 8px;\n text-align: center;\n color: var(--color-on-surface);\n caret-color: var(--color-primary);\n outline: 2px solid transparent;\n outline-offset: -2px;\n transition: outline-color 150ms;\n}\n.m3-cp-field:hover {\n outline-color: color-mix(in srgb, var(--color-on-surface) 12%, transparent);\n}\n.m3-cp-field:focus {\n outline-color: var(--color-primary);\n}\n</style>\n","<script setup lang=\"ts\">\n/**\n * A color picker in a dialog: saturation/brightness area, hue (and optional opacity) slider, eyedropper,\n * HEX/RGB/HSL fields, recent colors and preset swatches. Built on MDialog; the color is only applied on confirm,\n * and the preview shows it next to the original.\n *\n * @event update:modelValue Emitted when a color is confirmed — powers v-model. Only fires on confirm, not while\n * dragging\n * @event update:show Emitted when the dialog opens or closes — powers v-model:show\n */\nimport { ref, watch } from 'vue'\nimport MButton from './MButton.vue'\nimport MDialog from './MDialog.vue'\nimport MColorPanel from './_MColorPanel.vue'\nimport { useLocale } from '../composables/useLocale'\nimport { defaultColorPresets, normalizeHex, pushRecentColor } from '../composables/_colorUtils'\n\nconst props = withDefaults(defineProps<{\n /** Selected color in hex format (v-model). `#rrggbb`, or `#rrggbbaa` when `alpha` is on and the color isn't opaque. */\n modelValue: string\n /** Controls dialog visibility (v-model:show) */\n show?: boolean\n /** Preset color swatches shown in the dialog */\n presets?: string[]\n /** Dialog title; defaults to the locale's `selectColor` */\n title?: string\n /** Adds an opacity slider and an alpha channel to the value */\n alpha?: boolean\n /** Remember confirmed colors and show them above the presets (stored in localStorage, shared by every picker). */\n recent?: boolean\n /** How many recent colors to keep. */\n recentLimit?: number\n /** Show a button to pick a color from the screen, where the browser supports it (Chrome, Edge). */\n eyedropper?: boolean\n}>(), {\n show: false,\n presets: () => defaultColorPresets,\n alpha: false,\n recent: true,\n recentLimit: 7,\n eyedropper: true,\n})\n\nconst t = useLocale()\nconst emit = defineEmits<{\n 'update:modelValue': [string]\n 'update:show': [boolean]\n}>()\n\n// The color being picked; becomes the value only on confirm\nconst draft = ref(props.modelValue)\n\nwatch(() => props.show, (open) => {\n if (open) draft.value = props.modelValue\n}, { immediate: true })\n\nfunction cancel() { emit('update:show', false) }\n\nfunction confirm() {\n const picked = normalizeHex(draft.value) || draft.value\n if (props.recent) pushRecentColor(picked, props.recentLimit)\n emit('update:modelValue', picked)\n emit('update:show', false)\n}\n</script>\n\n<template>\n <MDialog\n :model-value=\"show\"\n :title=\"title || t.selectColor\"\n max-width=\"328px\"\n :closable=\"false\"\n @update:model-value=\"!$event && cancel()\"\n >\n <MColorPanel\n v-model=\"draft\"\n :presets=\"presets\"\n :alpha=\"alpha\"\n :recent=\"recent\"\n :eyedropper=\"eyedropper\"\n :original=\"modelValue\"\n />\n <template #actions>\n <MButton variant=\"text\" @click=\"cancel\">{{ t.cancel }}</MButton>\n <MButton variant=\"text\" @click=\"confirm\">{{ t.confirm }}</MButton>\n </template>\n </MDialog>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;A,GA0EM4D,IAAc,IA4JdC,KAAU,qE;;;;;;;;;;;;EAvNhB,IAAMK,IAAQC,GAURC,KAAOH,GACPI,IAAI5B,GAAU,GAGd6B,IAAIC,EAAI,CAAC,GACTC,IAAID,EAAI,GAAG,GACXE,IAAIF,EAAI,GAAG,GACXG,IAAIH,EAAI,CAAC,GAETI,IAAMC,QAAe/C,EAAMH,EAAS;GAAE,GAAG4C,EAAE;GAAO,GAAGE,EAAE;GAAO,GAAGC,EAAE;EAAM,GAAGP,EAAM,QAAQQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GACvGG,IAAYD,QAAe/C,EAAMH,EAAS;GAAE,GAAG4C,EAAE;GAAO,GAAGE,EAAE;GAAO,GAAGC,EAAE;EAAM,CAAC,CAAC,CAAC,GAClFK,KAAWF,QAAe,OAAON,EAAE,MAAM,aAAa;EAE5D,SAASS,EAAW,GAAS;GAC3B,IAAMC,IAAMpD,EAASqD,CAAC;GAKtB,AAHID,EAAI,IAAI,KAAKA,EAAI,IAAI,MAAG,EAAE,QAAQA,EAAI,IACtCA,EAAI,IAAI,MAAG,EAAE,QAAQA,EAAI,IAC7B,EAAE,QAAQA,EAAI,GACd,EAAE,QAAQd,EAAM,QAAQe,EAAE,IAAI;EAChC;EAEA,IAAIC,IAAc;EAClB,SAASC,IAAS;GAEhB,AADA,IAAcR,EAAI,OACdA,EAAI,UAAUzC,EAAagC,EAAM,UAAU,KAAGE,GAAK,qBAAqBO,EAAI,KAAK;EACvF;EAEA,QAAYT,EAAM,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