@templatical/editor 0.25.2 → 0.26.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/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
- package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
- package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
- package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
- package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
- package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
- package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
- package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
- package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
- package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
- package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
- package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
- package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
- package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
- package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
- package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
- package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
- package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
- package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
- package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
- package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
- package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
- package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
- package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
- package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
- package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
- package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
- package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
- package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
- package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
- package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
- package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
- package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
- package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
- package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
- package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
- package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
- package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
- package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
- package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-COV27dGb.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
- package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
- package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
- package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
- package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
- package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
- package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
- package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
- package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
- package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
- package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
- package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
- package/dist/dist-B56SufAv.js +0 -5
- package/dist/dist-BQZkRg05.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as e, P as t, ct as n, f as r, g as i, h as a, it as o,
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { a as f, i as p } from "./icons-
|
|
4
|
-
import { n as m } from "./useCloudI18n-
|
|
1
|
+
import { M as e, P as t, ct as n, f as r, g as i, h as a, it as o, lt as s, m as c, p as l, u, x as d } from "./draggable-DCs9qL-b.js";
|
|
2
|
+
import "./useEditorCore-fyFmWS3D.js";
|
|
3
|
+
import { a as f, i as p } from "./icons-CvYN6zrM.js";
|
|
4
|
+
import { n as m } from "./useCloudI18n-8wkJtuJD.js";
|
|
5
5
|
import { t as h } from "./readableTextColor-f8Kykfnh.js";
|
|
6
6
|
//#region src/cloud/components/CollaboratorBar.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var g = { class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2" }, _ = ["title"], v = {
|
|
@@ -19,34 +19,34 @@ var g = { class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2" }, _
|
|
|
19
19
|
let t = e.trim().split(/\s+/);
|
|
20
20
|
return t.length >= 2 ? (t[0].charAt(0) + t[t.length - 1].charAt(0)).toUpperCase() : e.charAt(0).toUpperCase();
|
|
21
21
|
}
|
|
22
|
-
return (r, m) => (e(), i("div", g, [
|
|
22
|
+
return (r, m) => (e(), i("div", g, [l("div", {
|
|
23
23
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[11px]",
|
|
24
|
-
style:
|
|
24
|
+
style: n({ color: d.isConnected ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
|
|
25
25
|
title: d.isConnected ? o(C).collaboration.connected : o(C).collaboration.disconnected
|
|
26
|
-
}, [d.isConnected ? (e(),
|
|
26
|
+
}, [d.isConnected ? (e(), c(o(p), {
|
|
27
27
|
key: 0,
|
|
28
28
|
size: 12,
|
|
29
29
|
"stroke-width": 2
|
|
30
|
-
})) : (e(),
|
|
30
|
+
})) : (e(), c(o(f), {
|
|
31
31
|
key: 1,
|
|
32
32
|
size: 12,
|
|
33
33
|
"stroke-width": 2
|
|
34
34
|
}))], 12, _), d.collaborators.length > 0 ? (e(), i("div", v, [(e(!0), i(u, null, t(w.value, (t) => (e(), i("div", {
|
|
35
35
|
key: t.id,
|
|
36
36
|
class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:duration-150 tpl:hover:z-10 tpl:hover:scale-110 tpl:border-[var(--tpl-bg)]",
|
|
37
|
-
style:
|
|
37
|
+
style: n({
|
|
38
38
|
backgroundColor: t.color,
|
|
39
39
|
color: o(h)(t.color)
|
|
40
40
|
}),
|
|
41
41
|
title: t.name
|
|
42
|
-
},
|
|
42
|
+
}, s(O(t.name)), 13, y))), 128)), E.value > 0 ? (e(), i("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[9px] tpl:font-bold tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
45
45
|
title: D.value
|
|
46
|
-
}, " +" +
|
|
46
|
+
}, " +" + s(E.value), 9, b)) : a("", !0)])) : a("", !0)]));
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { S as default };
|
|
51
51
|
|
|
52
|
-
//# sourceMappingURL=CollaboratorBar-
|
|
52
|
+
//# sourceMappingURL=CollaboratorBar-C5Xf6Mz9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollaboratorBar-
|
|
1
|
+
{"version":3,"file":"CollaboratorBar-C5Xf6Mz9.js","names":[],"sources":["../../../src/cloud/components/CollaboratorBar.vue","../../../src/cloud/components/CollaboratorBar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Collaborator } from \"@templatical/types\";\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n collaborators: Collaborator[];\n isConnected: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst maxVisible = 3;\n\nconst visibleCollaborators = computed(() =>\n props.collaborators.slice(0, maxVisible),\n);\n\nconst overflowCollaborators = computed(() =>\n props.collaborators.slice(maxVisible),\n);\n\nconst overflowCount = computed(() => overflowCollaborators.value.length);\n\nconst overflowNames = computed(() =>\n overflowCollaborators.value.map((c) => c.name).join(\"\\n\"),\n);\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length >= 2) {\n return (\n parts[0].charAt(0) + parts[parts.length - 1].charAt(0)\n ).toUpperCase();\n }\n return name.charAt(0).toUpperCase();\n}\n</script>\n\n<template>\n <div class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\">\n <!-- Connection indicator -->\n <div\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:text-[11px]\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"\n isConnected\n ? cloudT.collaboration.connected\n : cloudT.collaboration.disconnected\n \"\n >\n <Wifi v-if=\"isConnected\" :size=\"12\" :stroke-width=\"2\" />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" />\n </div>\n\n <!-- Avatar stack -->\n <div\n v-if=\"collaborators.length > 0\"\n class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\"\n >\n <div\n v-for=\"collaborator in visibleCollaborators\"\n :key=\"collaborator.id\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:duration-150 tpl:hover:z-10 tpl:hover:scale-110 tpl:border-[var(--tpl-bg)]\"\n :style=\"{\n backgroundColor: collaborator.color,\n color: readableTextColor(collaborator.color),\n }\"\n :title=\"collaborator.name\"\n >\n {{ getInitials(collaborator.name) }}\n </div>\n <div\n v-if=\"overflowCount > 0\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[9px] tpl:font-bold tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overflowCount }}\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { Collaborator } from \"@templatical/types\";\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { Wifi, WifiOff } from \"@lucide/vue\";\nimport { computed } from \"vue\";\nimport { readableTextColor } from \"../../utils/readableTextColor\";\n\nconst props = defineProps<{\n collaborators: Collaborator[];\n isConnected: boolean;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst maxVisible = 3;\n\nconst visibleCollaborators = computed(() =>\n props.collaborators.slice(0, maxVisible),\n);\n\nconst overflowCollaborators = computed(() =>\n props.collaborators.slice(maxVisible),\n);\n\nconst overflowCount = computed(() => overflowCollaborators.value.length);\n\nconst overflowNames = computed(() =>\n overflowCollaborators.value.map((c) => c.name).join(\"\\n\"),\n);\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length >= 2) {\n return (\n parts[0].charAt(0) + parts[parts.length - 1].charAt(0)\n ).toUpperCase();\n }\n return name.charAt(0).toUpperCase();\n}\n</script>\n\n<template>\n <div class=\"tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2\">\n <!-- Connection indicator -->\n <div\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:text-[11px]\"\n :style=\"{\n color: isConnected ? 'var(--tpl-success)' : 'var(--tpl-text-muted)',\n }\"\n :title=\"\n isConnected\n ? cloudT.collaboration.connected\n : cloudT.collaboration.disconnected\n \"\n >\n <Wifi v-if=\"isConnected\" :size=\"12\" :stroke-width=\"2\" />\n <WifiOff v-else :size=\"12\" :stroke-width=\"2\" />\n </div>\n\n <!-- Avatar stack -->\n <div\n v-if=\"collaborators.length > 0\"\n class=\"tpl:flex tpl:items-center tpl:-space-x-1.5\"\n >\n <div\n v-for=\"collaborator in visibleCollaborators\"\n :key=\"collaborator.id\"\n class=\"tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:duration-150 tpl:hover:z-10 tpl:hover:scale-110 tpl:border-[var(--tpl-bg)]\"\n :style=\"{\n backgroundColor: collaborator.color,\n color: readableTextColor(collaborator.color),\n }\"\n :title=\"collaborator.name\"\n >\n {{ getInitials(collaborator.name) }}\n </div>\n <div\n v-if=\"overflowCount > 0\"\n class=\"tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[9px] tpl:font-bold tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]\"\n :title=\"overflowNames\"\n >\n +{{ overflowCount }}\n </div>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;iCAcM,IAAa;;;;;;;EAPnB,IAAM,IAAQ,GAKR,EAAE,GAAG,MAAW,EAAmB,GAInC,IAAuB,QAC3B,EAAM,cAAc,MAAM,GAAG,CAAU,CACzC,GAEM,IAAwB,QAC5B,EAAM,cAAc,MAAM,CAAU,CACtC,GAEM,IAAgB,QAAe,EAAsB,MAAM,MAAM,GAEjE,IAAgB,QACpB,EAAsB,MAAM,KAAK,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI,CAC1D;EAEA,SAAS,EAAY,GAAsB;GACzC,IAAM,IAAQ,EAAK,KAAK,CAAC,CAAC,MAAM,KAAK;GAMrC,OALI,EAAM,UAAU,KAEhB,EAAM,EAAE,CAAC,OAAO,CAAC,IAAI,EAAM,EAAM,SAAS,EAAE,CAAC,OAAO,CAAC,EAAA,CACrD,YAAY,IAET,EAAK,OAAO,CAAC,CAAC,CAAC,YAAY;EACpC;oBAIE,EAAA,GAAA,EA0CM,OA1CN,GA0CM,CAxCJ,EAaM,OAAA;GAZJ,OAAM;GACL,OAAK,EAAA,EAAmB,OAAA,EAAA,cAAW,uBAAA,wBAAA,CAAA;GAGnC,OAAgB,EAAA,cAAwB,EAAA,CAAA,CAAM,CAAC,cAAc,YAAsB,EAAA,CAAA,CAAM,CAAC,cAAc;EAM7F,GAAA,CAAA,EAAA,eAAZ,EAAA,GAAA,EAAwD,EAAA,CAAA,GAAA;;GAA9B,MAAM;GAAK,gBAAc;EACnD,CAAA,MAAA,EAAA,GAAA,EAA+C,EAAA,CAAA,GAAA;;GAA9B,MAAM;GAAK,gBAAc;EAKpC,CAAA,EAAA,GAAA,IAAA,CAAA,GAAA,EAAA,cAAc,SAAM,KAD5B,EAAA,GAAA,EAuBM,OAvBN,GAuBM,EAnBJ,EAAA,EAAA,GAAA,EAWM,GAAA,MAAA,EAVmB,EAAA,QAAhB,OADT,EAAA,GAAA,EAWM,OAAA;GATH,KAAK,EAAa;GACnB,OAAM;GACL,OAAK,EAAA;IAA+B,iBAAA,EAAa;IAAwB,OAAA,EAAA,CAAA,CAAiB,CAAC,EAAa,KAAK;;GAI7G,OAAO,EAAa;EAElB,GAAA,EAAA,EAAY,EAAa,IAAI,CAAA,GAAA,IAAA,CAAA,EAG1B,GAAA,GAAA,IAAA,EAAA,QAAa,KADrB,EAAA,GAAA,EAMM,OAAA;;GAJJ,OAAM;GACL,OAAO,EAAA;EACT,GAAA,OACE,EAAG,EAAA,KAAa,GAAA,GAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as e, P as t, T as n, V as r, Z as i, c as a,
|
|
2
|
-
import { t as ie } from "./dist-
|
|
3
|
-
import { U as ae, V as oe, u as se } from "./keys-
|
|
4
|
-
import { t as ce } from "./useI18n-
|
|
5
|
-
import { a as le, i as
|
|
6
|
-
import { n as pe } from "./icons-
|
|
1
|
+
import { M as e, P as t, T as n, V as r, Z as i, c as a, ct as o, d as s, f as c, g as l, h as u, it as d, l as ee, m as te, n as ne, p as f, st as p, u as re, x as m, y as h } from "./draggable-DCs9qL-b.js";
|
|
2
|
+
import { t as ie } from "./dist-B2HKGHnc.js";
|
|
3
|
+
import { U as ae, V as oe, u as se } from "./keys-Cmc2Yl3D.js";
|
|
4
|
+
import { t as ce } from "./useI18n-UMs0F71x.js";
|
|
5
|
+
import { a as le, i as ue, n as de, r as g, t as fe } from "./usePopoverPosition-cf8Y-ynK.js";
|
|
6
|
+
import { n as pe } from "./icons-CvYN6zrM.js";
|
|
7
7
|
//#region src/constants/styleConstants.ts
|
|
8
|
-
var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", b = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]",
|
|
8
|
+
var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", b = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", x = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", S = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", C = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", w = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", T = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", E = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", D = [
|
|
9
9
|
"10px",
|
|
10
10
|
"12px",
|
|
11
11
|
"14px",
|
|
@@ -18,7 +18,7 @@ var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-te
|
|
|
18
18
|
"36px",
|
|
19
19
|
"48px",
|
|
20
20
|
"64px"
|
|
21
|
-
],
|
|
21
|
+
], O = [
|
|
22
22
|
"1",
|
|
23
23
|
"1.2",
|
|
24
24
|
"1.4",
|
|
@@ -27,7 +27,7 @@ var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-te
|
|
|
27
27
|
"1.8",
|
|
28
28
|
"2",
|
|
29
29
|
"2.5"
|
|
30
|
-
],
|
|
30
|
+
], k = [
|
|
31
31
|
{
|
|
32
32
|
label: "Normal",
|
|
33
33
|
value: "normal"
|
|
@@ -56,9 +56,9 @@ var _ = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-te
|
|
|
56
56
|
label: "3px",
|
|
57
57
|
value: "3px"
|
|
58
58
|
}
|
|
59
|
-
],
|
|
59
|
+
], A = "#000000", j = "#ffffff", me = "#ffff00", M = "#f2f2f2", N = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, P = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
60
60
|
360 / (Math.PI * 2);
|
|
61
|
-
var F = (e) =>
|
|
61
|
+
var F = (e) => U(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
62
62
|
r: parseInt(e[0] + e[0], 16),
|
|
63
63
|
g: parseInt(e[1] + e[1], 16),
|
|
64
64
|
b: parseInt(e[2] + e[2], 16),
|
|
@@ -68,7 +68,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
68
68
|
g: parseInt(e.substring(2, 4), 16),
|
|
69
69
|
b: parseInt(e.substring(4, 6), 16),
|
|
70
70
|
a: e.length === 8 ? P(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
71
|
-
}), L = (e) =>
|
|
71
|
+
}), L = (e) => H(B(e)), R = ({ h: e, s: t, v: n, a: r }) => {
|
|
72
72
|
let i = (200 - t) * n / 100;
|
|
73
73
|
return {
|
|
74
74
|
h: P(e),
|
|
@@ -112,10 +112,10 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
112
112
|
}, V = (e) => {
|
|
113
113
|
let t = e.toString(16);
|
|
114
114
|
return t.length < 2 ? "0" + t : t;
|
|
115
|
-
},
|
|
115
|
+
}, H = ({ r: e, g: t, b: n, a: r }) => {
|
|
116
116
|
let i = r < 1 ? V(P(r * 255)) : "";
|
|
117
117
|
return "#" + V(e) + V(t) + V(n) + i;
|
|
118
|
-
},
|
|
118
|
+
}, U = ({ r: e, g: t, b: n, a: r }) => {
|
|
119
119
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
120
120
|
return {
|
|
121
121
|
h: P(60 * (o < 0 ? o + 6 : o)),
|
|
@@ -123,57 +123,57 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
123
123
|
v: P(i / 255 * 100),
|
|
124
124
|
a: r
|
|
125
125
|
};
|
|
126
|
-
},
|
|
126
|
+
}, W = (e, t) => {
|
|
127
127
|
if (e === t) return !0;
|
|
128
128
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
129
129
|
return !0;
|
|
130
|
-
},
|
|
131
|
-
let t =
|
|
132
|
-
return t || (t = document.createElement("template"), t.innerHTML = e,
|
|
133
|
-
},
|
|
130
|
+
}, he = (e, t) => e.toLowerCase() === t.toLowerCase() || W(I(e), I(t)), G = {}, K = (e) => {
|
|
131
|
+
let t = G[e];
|
|
132
|
+
return t || (t = document.createElement("template"), t.innerHTML = e, G[e] = t), t;
|
|
133
|
+
}, q = (e, t, n) => {
|
|
134
134
|
e.dispatchEvent(new CustomEvent(t, {
|
|
135
135
|
bubbles: !0,
|
|
136
136
|
detail: n
|
|
137
137
|
}));
|
|
138
|
-
},
|
|
139
|
-
let n =
|
|
140
|
-
|
|
138
|
+
}, J = !1, Y = (e) => "touches" in e, ge = (e) => J && !Y(e) ? !1 : (J ||= Y(e), !0), X = (e, t) => {
|
|
139
|
+
let n = Y(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
140
|
+
q(e.el, "move", e.getMove({
|
|
141
141
|
x: N((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
142
142
|
y: N((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
143
143
|
}));
|
|
144
|
-
},
|
|
144
|
+
}, _e = (e, t) => {
|
|
145
145
|
let n = t.keyCode;
|
|
146
|
-
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(),
|
|
146
|
+
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), q(e.el, "move", e.getMove({
|
|
147
147
|
x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
|
|
148
148
|
y: n === 40 ? .01 : n === 38 ? -.01 : 0
|
|
149
149
|
}, !0)));
|
|
150
|
-
},
|
|
150
|
+
}, ve = class {
|
|
151
151
|
constructor(e, t, n, r) {
|
|
152
|
-
let i =
|
|
152
|
+
let i = K(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
|
|
153
153
|
e.appendChild(i.content.cloneNode(!0));
|
|
154
154
|
let a = e.querySelector(`[part=${t}]`);
|
|
155
155
|
a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
|
|
156
156
|
}
|
|
157
157
|
set dragging(e) {
|
|
158
158
|
let t = e ? document.addEventListener : document.removeEventListener;
|
|
159
|
-
t(
|
|
159
|
+
t(J ? "touchmove" : "mousemove", this), t(J ? "touchend" : "mouseup", this);
|
|
160
160
|
}
|
|
161
161
|
handleEvent(e) {
|
|
162
162
|
switch (e.type) {
|
|
163
163
|
case "mousedown":
|
|
164
164
|
case "touchstart":
|
|
165
|
-
if (e.preventDefault(), !
|
|
166
|
-
this.el.focus(),
|
|
165
|
+
if (e.preventDefault(), !ge(e) || !J && e.button != 0) return;
|
|
166
|
+
this.el.focus(), X(this, e), this.dragging = !0;
|
|
167
167
|
break;
|
|
168
168
|
case "mousemove":
|
|
169
169
|
case "touchmove":
|
|
170
|
-
e.preventDefault(),
|
|
170
|
+
e.preventDefault(), X(this, e);
|
|
171
171
|
break;
|
|
172
172
|
case "mouseup":
|
|
173
173
|
case "touchend":
|
|
174
174
|
this.dragging = !1;
|
|
175
175
|
break;
|
|
176
|
-
case "keydown":
|
|
176
|
+
case "keydown": _e(this, e);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
style(e) {
|
|
@@ -181,7 +181,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
181
181
|
for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
}, ye = class extends
|
|
184
|
+
}, ye = class extends ve {
|
|
185
185
|
constructor(e) {
|
|
186
186
|
super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
|
|
187
187
|
}
|
|
@@ -199,7 +199,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
199
199
|
getMove(e, t) {
|
|
200
200
|
return { h: t ? N(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
201
201
|
}
|
|
202
|
-
}, be = class extends
|
|
202
|
+
}, be = class extends ve {
|
|
203
203
|
constructor(e) {
|
|
204
204
|
super(e, "saturation", "aria-label=\"Color\"", !0);
|
|
205
205
|
}
|
|
@@ -246,7 +246,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
246
246
|
}
|
|
247
247
|
constructor() {
|
|
248
248
|
super();
|
|
249
|
-
let e =
|
|
249
|
+
let e = K(`<style>${this[Ee].join("")}</style>`), t = this.attachShadow({ mode: "open" });
|
|
250
250
|
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Te] = this[De].map((e) => new e(t));
|
|
251
251
|
}
|
|
252
252
|
connectedCallback() {
|
|
@@ -266,7 +266,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
266
266
|
};
|
|
267
267
|
this[$](n);
|
|
268
268
|
let r;
|
|
269
|
-
!
|
|
269
|
+
!W(n, t) && !this[Z](r = this.colorModel.fromHsva(n)) && (this[Q] = r, q(this, "color-changed", { value: r }));
|
|
270
270
|
}
|
|
271
271
|
[Z](e) {
|
|
272
272
|
return this.color && this.colorModel.equal(e, this.color);
|
|
@@ -283,7 +283,7 @@ var F = (e) => ge(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
283
283
|
v: n,
|
|
284
284
|
a: 1
|
|
285
285
|
}),
|
|
286
|
-
equal:
|
|
286
|
+
equal: he,
|
|
287
287
|
fromAttr: (e) => e
|
|
288
288
|
}, Ae = class extends Oe {
|
|
289
289
|
get colorModel() {
|
|
@@ -349,24 +349,24 @@ var je = [
|
|
|
349
349
|
},
|
|
350
350
|
emits: ["update:modelValue"],
|
|
351
351
|
setup(m, { emit: _ }) {
|
|
352
|
-
let v = m, y = _, { t: b } = ce(),
|
|
353
|
-
ie(
|
|
354
|
-
|
|
355
|
-
}, { ignore: [
|
|
356
|
-
let
|
|
352
|
+
let v = m, y = _, { t: b } = ce(), S = i(!1), C = i(), w = i(), T = i(!1);
|
|
353
|
+
ie(C, () => {
|
|
354
|
+
S.value = !1;
|
|
355
|
+
}, { ignore: [w] });
|
|
356
|
+
let E = c(() => !v.modelValue), D = c(() => ue(v.modelValue)), O = c(() => ue(v.modelValue || v.seedColor)), k = c(() => !v.disabled && !E.value), A = n(se, le), j = c(() => [...new Set(v.presets ?? A.presets)]), me = c(() => v.allowCustom ?? A.allowCustom), M = c(() => j.value.length > 0), N = c(() => me.value || !M.value), P = c(() => g(v.modelValue));
|
|
357
357
|
function F(e) {
|
|
358
|
-
return P.value !== "" &&
|
|
358
|
+
return P.value !== "" && g(e) === P.value;
|
|
359
359
|
}
|
|
360
360
|
function I(e) {
|
|
361
361
|
y("update:modelValue", e);
|
|
362
362
|
}
|
|
363
|
-
let L =
|
|
363
|
+
let L = c(() => M.value && !N.value);
|
|
364
364
|
function R(e) {
|
|
365
365
|
return L.value ? e + 1 : e;
|
|
366
366
|
}
|
|
367
|
-
let z =
|
|
368
|
-
if (L.value &&
|
|
369
|
-
let e =
|
|
367
|
+
let z = c(() => {
|
|
368
|
+
if (L.value && E.value) return 0;
|
|
369
|
+
let e = j.value.findIndex((e) => F(e));
|
|
370
370
|
return e === -1 ? 0 : R(e);
|
|
371
371
|
});
|
|
372
372
|
function B() {
|
|
@@ -375,7 +375,7 @@ var je = [
|
|
|
375
375
|
function V(e) {
|
|
376
376
|
return R(e) === z.value ? 0 : -1;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function H(e) {
|
|
379
379
|
if (![
|
|
380
380
|
"ArrowRight",
|
|
381
381
|
"ArrowDown",
|
|
@@ -385,83 +385,83 @@ var je = [
|
|
|
385
385
|
let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
|
|
386
386
|
r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
388
|
+
function U(e) {
|
|
389
|
+
T.value = !0, y("update:modelValue", e.detail.value);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
|
|
391
|
+
function W() {
|
|
392
|
+
T.value = !1;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
!
|
|
394
|
+
function he() {
|
|
395
|
+
!T.value && E.value && y("update:modelValue", O.value);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function G(e) {
|
|
398
398
|
y("update:modelValue", e.target.value);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function K() {
|
|
401
401
|
y("update:modelValue", "");
|
|
402
402
|
}
|
|
403
|
-
let
|
|
403
|
+
let q = de(), { toLocal: J } = fe(), Y = n(oe, null), ge = n(ae, null), X = i({
|
|
404
404
|
top: 0,
|
|
405
405
|
left: 0
|
|
406
406
|
});
|
|
407
|
-
function
|
|
407
|
+
function _e() {
|
|
408
408
|
if (!v.disabled) {
|
|
409
|
-
if (!
|
|
410
|
-
let e =
|
|
409
|
+
if (!S.value) {
|
|
410
|
+
let e = w.value?.getBoundingClientRect();
|
|
411
411
|
if (e) {
|
|
412
412
|
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
413
|
-
|
|
413
|
+
X.value = J({
|
|
414
414
|
top: t,
|
|
415
415
|
left: e.left
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
|
|
419
|
+
S.value = !S.value;
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
return (n, i) => (e(),
|
|
422
|
+
return (n, i) => (e(), l("div", { class: p(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", m.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
423
423
|
f("button", {
|
|
424
424
|
ref_key: "swatchRef",
|
|
425
|
-
ref:
|
|
425
|
+
ref: w,
|
|
426
426
|
type: "button",
|
|
427
427
|
disabled: m.disabled,
|
|
428
|
-
"aria-label": m.ariaLabel ||
|
|
428
|
+
"aria-label": m.ariaLabel || d(b).colorPicker.pickColor,
|
|
429
429
|
title: m.ariaLabel || void 0,
|
|
430
|
-
"aria-expanded":
|
|
431
|
-
class:
|
|
430
|
+
"aria-expanded": S.value,
|
|
431
|
+
class: p([
|
|
432
432
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
433
433
|
m.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
434
|
-
|
|
434
|
+
S.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !m.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
|
|
435
435
|
m.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
436
436
|
]),
|
|
437
|
-
onClick:
|
|
437
|
+
onClick: _e
|
|
438
438
|
}, [f("span", {
|
|
439
|
-
class:
|
|
440
|
-
style:
|
|
439
|
+
class: p(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": E.value }]),
|
|
440
|
+
style: o(E.value ? void 0 : { backgroundColor: D.value })
|
|
441
441
|
}, null, 6)], 10, je),
|
|
442
|
-
!m.swatchOnly && N.value ? (e(),
|
|
442
|
+
!m.swatchOnly && N.value ? (e(), l("div", Me, [f("input", {
|
|
443
443
|
type: "text",
|
|
444
|
-
class:
|
|
445
|
-
style:
|
|
446
|
-
value:
|
|
447
|
-
placeholder: m.placeholder ||
|
|
444
|
+
class: p([d(x), "tpl:w-full"]),
|
|
445
|
+
style: o(k.value ? { paddingRight: "2.25rem" } : void 0),
|
|
446
|
+
value: D.value,
|
|
447
|
+
placeholder: m.placeholder || d(b).colorPicker.notSet,
|
|
448
448
|
disabled: m.disabled,
|
|
449
|
-
"aria-label":
|
|
450
|
-
onInput:
|
|
451
|
-
}, null, 46, Ne),
|
|
449
|
+
"aria-label": d(b).colorPicker.hexValue,
|
|
450
|
+
onInput: G
|
|
451
|
+
}, null, 46, Ne), k.value ? (e(), l("button", {
|
|
452
452
|
key: 0,
|
|
453
453
|
type: "button",
|
|
454
|
-
"aria-label":
|
|
455
|
-
title:
|
|
454
|
+
"aria-label": d(b).colorPicker.clear,
|
|
455
|
+
title: d(b).colorPicker.clear,
|
|
456
456
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
|
|
457
|
-
onClick:
|
|
458
|
-
}, [h(
|
|
457
|
+
onClick: K
|
|
458
|
+
}, [h(d(pe), {
|
|
459
459
|
size: 14,
|
|
460
460
|
"stroke-width": 1.5
|
|
461
|
-
})], 8, Pe)) :
|
|
462
|
-
(e(), te(
|
|
463
|
-
to:
|
|
464
|
-
disabled: !
|
|
461
|
+
})], 8, Pe)) : u("", !0)])) : u("", !0),
|
|
462
|
+
(e(), te(s, {
|
|
463
|
+
to: d(q),
|
|
464
|
+
disabled: !d(q)
|
|
465
465
|
}, [h(ne, {
|
|
466
466
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
467
467
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
@@ -470,35 +470,35 @@ var je = [
|
|
|
470
470
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
471
471
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
472
472
|
}, {
|
|
473
|
-
default: r(() => [
|
|
473
|
+
default: r(() => [S.value ? (e(), l("div", {
|
|
474
474
|
key: 0,
|
|
475
475
|
ref_key: "popoverRef",
|
|
476
|
-
ref:
|
|
477
|
-
"data-tpl-theme":
|
|
476
|
+
ref: C,
|
|
477
|
+
"data-tpl-theme": d(ge),
|
|
478
478
|
class: "tpl-color-popover tpl:absolute tpl:z-modal tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg",
|
|
479
|
-
style:
|
|
480
|
-
top: `${
|
|
481
|
-
left: `${
|
|
482
|
-
...
|
|
479
|
+
style: o({
|
|
480
|
+
top: `${X.value.top}px`,
|
|
481
|
+
left: `${X.value.left}px`,
|
|
482
|
+
...d(Y)
|
|
483
483
|
})
|
|
484
484
|
}, [
|
|
485
|
-
M.value ? (e(),
|
|
485
|
+
M.value ? (e(), l("div", {
|
|
486
486
|
key: 0,
|
|
487
487
|
role: "radiogroup",
|
|
488
|
-
"aria-label":
|
|
489
|
-
class:
|
|
490
|
-
onKeydown:
|
|
491
|
-
}, [L.value ? (e(),
|
|
488
|
+
"aria-label": d(b).colorPicker.presetColors,
|
|
489
|
+
class: p(["tpl:flex tpl:flex-wrap tpl:gap-1.5", N.value && "tpl:mb-2"]),
|
|
490
|
+
onKeydown: H
|
|
491
|
+
}, [L.value ? (e(), l("button", {
|
|
492
492
|
key: 0,
|
|
493
493
|
type: "button",
|
|
494
494
|
role: "radio",
|
|
495
|
-
"aria-label":
|
|
496
|
-
title:
|
|
497
|
-
"aria-checked":
|
|
495
|
+
"aria-label": d(b).colorPicker.clear,
|
|
496
|
+
title: d(b).colorPicker.clear,
|
|
497
|
+
"aria-checked": E.value,
|
|
498
498
|
tabindex: B(),
|
|
499
|
-
class:
|
|
500
|
-
onClick:
|
|
501
|
-
}, null, 10, Le)) :
|
|
499
|
+
class: p(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", E.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
|
|
500
|
+
onClick: K
|
|
501
|
+
}, null, 10, Le)) : u("", !0), (e(!0), l(re, null, t(j.value, (t, n) => (e(), l("button", {
|
|
502
502
|
key: t,
|
|
503
503
|
type: "button",
|
|
504
504
|
role: "radio",
|
|
@@ -506,47 +506,47 @@ var je = [
|
|
|
506
506
|
title: t,
|
|
507
507
|
"aria-checked": F(t),
|
|
508
508
|
tabindex: V(n),
|
|
509
|
-
style:
|
|
510
|
-
class:
|
|
509
|
+
style: o({ backgroundColor: t }),
|
|
510
|
+
class: p(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", F(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
|
|
511
511
|
onClick: (e) => I(t)
|
|
512
|
-
}, null, 14, Re))), 128))], 42, Ie)) :
|
|
513
|
-
N.value ? (e(),
|
|
512
|
+
}, null, 14, Re))), 128))], 42, Ie)) : u("", !0),
|
|
513
|
+
N.value ? (e(), l("hex-color-picker", {
|
|
514
514
|
key: 1,
|
|
515
|
-
color:
|
|
516
|
-
"aria-label":
|
|
517
|
-
onColorChanged:
|
|
518
|
-
onPointerdown:
|
|
519
|
-
onPointerup:
|
|
520
|
-
onKeydown: i[0] ||= a((e) =>
|
|
521
|
-
}, null, 40, ze)) :
|
|
522
|
-
m.swatchOnly && N.value ? (e(),
|
|
515
|
+
color: O.value,
|
|
516
|
+
"aria-label": d(b).colorPicker.pickColor,
|
|
517
|
+
onColorChanged: U,
|
|
518
|
+
onPointerdown: W,
|
|
519
|
+
onPointerup: he,
|
|
520
|
+
onKeydown: i[0] ||= a((e) => S.value = !1, ["escape"])
|
|
521
|
+
}, null, 40, ze)) : u("", !0),
|
|
522
|
+
m.swatchOnly && N.value ? (e(), l("div", Be, [f("input", {
|
|
523
523
|
type: "text",
|
|
524
|
-
class:
|
|
525
|
-
style:
|
|
526
|
-
value:
|
|
527
|
-
placeholder: m.placeholder ||
|
|
524
|
+
class: p([d(x), "tpl:w-full"]),
|
|
525
|
+
style: o(k.value ? { paddingRight: "2.25rem" } : void 0),
|
|
526
|
+
value: D.value,
|
|
527
|
+
placeholder: m.placeholder || d(b).colorPicker.notSet,
|
|
528
528
|
disabled: m.disabled,
|
|
529
|
-
"aria-label":
|
|
530
|
-
onChange:
|
|
529
|
+
"aria-label": d(b).colorPicker.hexValue,
|
|
530
|
+
onChange: G,
|
|
531
531
|
onKeydown: i[1] ||= a(ee((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
532
|
-
}, null, 46, Ve),
|
|
532
|
+
}, null, 46, Ve), k.value ? (e(), l("button", {
|
|
533
533
|
key: 0,
|
|
534
534
|
type: "button",
|
|
535
|
-
"aria-label":
|
|
536
|
-
title:
|
|
535
|
+
"aria-label": d(b).colorPicker.clear,
|
|
536
|
+
title: d(b).colorPicker.clear,
|
|
537
537
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
|
|
538
|
-
onClick:
|
|
539
|
-
}, [h(
|
|
538
|
+
onClick: K
|
|
539
|
+
}, [h(d(pe), {
|
|
540
540
|
size: 14,
|
|
541
541
|
"stroke-width": 1.5
|
|
542
|
-
})], 8, He)) :
|
|
543
|
-
], 12, Fe)) :
|
|
542
|
+
})], 8, He)) : u("", !0)])) : u("", !0)
|
|
543
|
+
], 12, Fe)) : u("", !0)]),
|
|
544
544
|
_: 1
|
|
545
545
|
})], 8, ["to", "disabled"]))
|
|
546
546
|
], 2));
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
//#endregion
|
|
550
|
-
export {
|
|
550
|
+
export { C as _, A as a, O as c, E as d, v as f, T as g, _ as h, M as i, w as l, b as m, j as n, D as o, y as p, me as r, k as s, Ue as t, S as u };
|
|
551
551
|
|
|
552
|
-
//# sourceMappingURL=ColorPicker-
|
|
552
|
+
//# sourceMappingURL=ColorPicker-W_UyiVGc.js.map
|