@templatical/editor 0.25.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BYMdVldY.js → AiChatSidebar-c-3yyjN1.js} +14 -14
- package/dist/{AiFeatureMenu-BhHhnu9G.js → AiFeatureMenu-B-COyG7k.js} +7 -7
- package/dist/{BlockIssueBadge-De36PJC4.js → BlockIssueBadge-Buk3_6QF.js} +5 -5
- package/dist/{BlockPreviewCanvas-BxSoA1QV.js → BlockPreviewCanvas-CJPHGI93.js} +3 -3
- package/dist/{CloudEditor-BXfuytQj.js → CloudEditor-BdSQ8hfv.js} +26 -26
- package/dist/{CollaboratorBar-D9AfWRTH.js → CollaboratorBar-mGoi6yye.js} +4 -4
- package/dist/{ColorPicker-VPq4ASC8.js → ColorPicker-ClETsjA3.js} +6 -6
- package/dist/{CommentsSidebar-C8BLy3Pr.js → CommentsSidebar-CdRCCSDD.js} +15 -15
- package/dist/{CountdownBlock-Bs2Q_bFX.js → CountdownBlock-DuyvGcr8.js} +3 -3
- package/dist/{CountdownToolbar-Cic6cdOw.js → CountdownToolbar-CBE9wRaV.js} +4 -4
- package/dist/{DesignReferenceSidebar-k-26nkJI.js → DesignReferenceSidebar-CgYkySre.js} +11 -11
- package/dist/{IssuesPanel-NPzwTPYW.js → IssuesPanel-Do7RLXsP.js} +8 -8
- package/dist/{LoadingTrack-DH3OEM3z.js → LoadingTrack-BexpNuTV.js} +1 -1
- package/dist/{MergeTagModeToggle-DEGyx8tw.js → MergeTagModeToggle-hAJgIKhw.js} +6 -6
- package/dist/{MergeTagSuggestion-DvisJ9im.js → MergeTagSuggestion-BJ43ihWR.js} +34 -32
- package/dist/{NumberWithSuffix-CuHCIwSn.js → NumberWithSuffix-D37ZWiZh.js} +2 -2
- package/dist/{ParagraphEditor-DK_IPi9H.js → ParagraphEditor-DBG63S70.js} +74 -80
- package/dist/{RichTextEditorContent-DznIQcdY.js → RichTextEditorContent-fbYJXAio.js} +8 -8
- package/dist/{SaveBlockDialog-R9PbMsy-.js → SaveBlockDialog-Dq9UVihi.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-ttPAklPE.js → SavedBlocksBrowserModal-CtFG4zeV.js} +11 -11
- package/dist/{SavedBlocksPanels-BCwQgKLF.js → SavedBlocksPanels-DNVdso_W.js} +2 -2
- package/dist/{SavedBlocksPickBar-DD5Ddv9t.js → SavedBlocksPickBar-Cv4dIpP-.js} +4 -4
- package/dist/{SnapshotHistory-BXSTGgBh.js → SnapshotHistory-DsOtMHOV.js} +10 -10
- package/dist/{TemplateScoringPanel-Ue6Dfnjb.js → TemplateScoringPanel-BZUsb3FD.js} +15 -15
- package/dist/{TestEmailModal-KPFc5oSv.js → TestEmailModal-CIwqtGfr.js} +11 -11
- package/dist/{TestEmailPanel-b8GHTrnE.js → TestEmailPanel-l6LDmBGM.js} +2 -2
- package/dist/{TitleEditor-8ln7UBr_.js → TitleEditor-imoBUynh.js} +12 -12
- package/dist/{TplModal-D_FA3Wm3.js → TplModal-DDDHcoir.js} +5 -5
- package/dist/{blockTypeIcons-BoZeK6l7.js → blockTypeIcons-CfLN4A6t.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js → AiChatSidebar-BHqNxNcX.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js → AiFeatureMenu-D2AIDwEG.js} +13 -13
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js.map → AiFeatureMenu-D2AIDwEG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js → BlockPreviewCanvas-DH5ULGkw.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js → CloudEditor-C0nB1JfD.js} +67 -67
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js.map → CollaboratorBar-f6Ni7KNH.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js → DesignReferenceSidebar-DBoEBKxQ.js} +34 -34
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js.map → DesignReferenceSidebar-DBoEBKxQ.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js → MergeTagModeToggle-D8iKvz7v.js} +28 -28
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js.map → MergeTagModeToggle-D8iKvz7v.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js → ParagraphEditor-Cuc83Blj.js} +58 -58
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js.map → ParagraphEditor-Cuc83Blj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js → SaveBlockDialog-B8KHhVkI.js} +50 -50
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js → SnapshotHistory-Srpzt2na.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js.map → SnapshotHistory-Srpzt2na.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js → TemplateScoringPanel-NucRtAP0.js} +42 -42
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js → TestEmailModal-DLeoJqaJ.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js → TitleEditor-DzYRr18C.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js → TplModal-byw7-3wg.js} +17 -17
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js.map → TplModal-byw7-3wg.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-FXlMM3PL.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-CrPzyP_k.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js → cloud-CuItCnN_.js} +4 -4
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js.map → cloud-CuItCnN_.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BLF-S9_A.js → dist-B2HKGHnc.js} +9 -7
- package/dist/cdn/chunks/{dist-BLF-S9_A.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Dp46rwVY.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-Dp46rwVY.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js → draggable-DCs9qL-b.js} +114 -92
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js → extensions-B7laxHjs.js} +22 -22
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js.map → extensions-B7laxHjs.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DN008liP.js → icons-CvYN6zrM.js} +74 -80
- package/dist/cdn/chunks/icons-CvYN6zrM.js.map +1 -0
- package/dist/cdn/chunks/{keys-CZOBuCQd.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-CZOBuCQd.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-UlAOKBjI.js} +120 -110
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
- package/dist/cdn/chunks/{src-uc_Mb_yH.js → src-BYKYmEOD.js} +7 -6
- package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
- package/dist/cdn/chunks/{src-D_3bXt7-.js → src-Bi-Qhtfs.js} +3 -3
- package/dist/cdn/chunks/{src-D_3bXt7-.js.map → src-Bi-Qhtfs.js.map} +1 -1
- package/dist/cdn/chunks/{src-B2LpXMIw.js → src-C0N74uvF.js} +280 -277
- package/dist/cdn/chunks/{src-B2LpXMIw.js.map → src-C0N74uvF.js.map} +1 -1
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
- package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
- package/dist/cdn/chunks/{styles-BzP13r-I.js → styles-C7s-VtJi.js} +1112 -1094
- package/dist/cdn/chunks/styles-C7s-VtJi.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CgwK_fKJ.js → tiptap-C44S1Cmh.js} +3681 -2965
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CTYH6u4r.js → useEditorCore-C_nUXiph.js} +275 -275
- package/dist/cdn/chunks/useEditorCore-C_nUXiph.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js → useMergeTag-CPa_9VOq.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js.map → useMergeTag-CPa_9VOq.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.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-Bqimqf7l.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-CYOoeGBd.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-DYknsfm0.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-6q_jgtv_.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-CnadSSTD.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-BJLg_SlM.js → cloud-C7-FhzMc.js} +2 -2
- package/dist/{createLucideIcon-D7GKhya2.js → createLucideIcon-C8WzBYCv.js} +3 -3
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DSIgxp0v.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-DDfXShPv.js → dist-BpKxrUi2.js} +1 -1
- package/dist/{dist-B6Px6GPj.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-BxbTVeY0.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-nR6mxyqI.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CcQFPJMF.js → dist-ChYLhoJ4.js} +2300 -1704
- package/dist/{dist-C31bMR4x.js → dist-Cl8J0IES.js} +270 -182
- package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
- package/dist/{dist-Dx71pluS.js → dist-DMJRSouD.js} +470 -440
- package/dist/{dist-DyCHUyRR.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-DX4x6mQ1.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-CRH880TV.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-CbiWtzS6.js → extensions-CxwhoG8v.js} +19 -19
- package/dist/{image-up-BfukboIn.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-DSYRzSZo.js → info-DO5odBcZ.js} +1 -1
- package/dist/{keys-BI6VSUh4.js → keys-fwF3qZax.js} +1 -1
- package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-B-rGrnrQ.js} +119 -109
- package/dist/{list-checks-URZOyLhr.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-GADaYcyQ.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-B62fdo0b.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BGwkOpD_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-Z4wXfduO.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BkOsapVg.js → runtime-dom.esm-bundler-CepEmvwF.js} +13 -10
- package/dist/{scan-line-D8Oh5xos.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-BYp4k38T.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-Cm0RePnW.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-BHEE-vRD.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-B0MEBpOK.js → styles-C_slTGwp.js} +454 -436
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-CHrg3vK8.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-BoNT8wbq.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-CiN0ssB3.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-WvZGBySw.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useAliveFlag-eT67QCMf.js → useAliveFlag-cvyBxHp7.js} +1 -1
- package/dist/{useCloudI18n-KgIWl-IE.js → useCloudI18n-DKVm6PCa.js} +2 -2
- package/dist/{useEditorCore-BMbxdUbY.js → useEditorCore-r4gWzCBA.js} +893 -893
- package/dist/{useI18n-BkHfCWC6.js → useI18n-DoVKdCTH.js} +2 -2
- package/dist/{useMergeTag-CZ4XYAxu.js → useMergeTag-C-_WxrgL.js} +3 -3
- package/dist/{usePopoverPosition-D93u-EZm.js → usePopoverPosition-C0dPEF4X.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-0R1UhmZB.js → vue.runtime.esm-bundler-D1diBMsm.js} +119 -95
- package/dist/{x-B4WnJVRx.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +0 -21
- package/dist/cdn/chunks/icons-DN008liP.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/src-uc_Mb_yH.js.map +0 -1
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CgwK_fKJ.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +0 -1
- package/dist/dist-CkPvZCld.js +0 -5
- package/dist/dist-iCEDH3cC.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-C_nUXiph.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-f6Ni7KNH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollaboratorBar-
|
|
1
|
+
{"version":3,"file":"CollaboratorBar-f6Ni7KNH.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
|