@templatical/editor 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/{AiChatSidebar-Cm5RM5Qh.js → AiChatSidebar-CXH7l1Ar.js} +13 -13
  2. package/dist/{AiFeatureMenu-DBWcfcWl.js → AiFeatureMenu-BKbUUc1D.js} +10 -10
  3. package/dist/{BlockIssueBadge-BF4sdsr4.js → BlockIssueBadge-C-EPqWsh.js} +5 -5
  4. package/dist/{CloudEditor-C6cSXtcP.js → CloudEditor-CB16QzKM.js} +60 -60
  5. package/dist/{CollaboratorBar-B8-AQfG2.js → CollaboratorBar-ACUA7lBJ.js} +4 -4
  6. package/dist/{CommentsSidebar-BQJzyCc6.js → CommentsSidebar-CpRLN40c.js} +19 -19
  7. package/dist/{CountdownBlock-D_AsF4F3.js → CountdownBlock-C-6o19qS.js} +3 -3
  8. package/dist/{CountdownToolbar-BGTkFky9.js → CountdownToolbar-Dol7Q0Pv.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-O3epZMXD.js → DesignReferenceSidebar-0dTsBW08.js} +9 -9
  10. package/dist/{IssuesPanel-CPBbR8yp.js → IssuesPanel-I0z6k6-H.js} +11 -11
  11. package/dist/{LoadingTrack-e67FA0NP.js → LoadingTrack-C7mGWPHS.js} +1 -1
  12. package/dist/{ModuleBrowserModal-B_tLzFAk.js → ModuleBrowserModal-Bz9hSjMS.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-B7pNpAHM.js → ModulePreviewCanvas-CpaumPMS.js} +23 -23
  14. package/dist/{NumberWithSuffix-eI9pPDWT.js → NumberWithSuffix-Bp40ik4l.js} +101 -79
  15. package/dist/{ParagraphEditor-DmA9K7dx.js → ParagraphEditor-BqRFV_Y-.js} +47 -47
  16. package/dist/{RichTextEditorContent-Dvn4woIt.js → RichTextEditorContent-Q5altsx1.js} +6 -6
  17. package/dist/{SaveModuleDialog-B8ypoxdj.js → SaveModuleDialog-DmfvH5D0.js} +7 -7
  18. package/dist/{SnapshotHistory-BTHd7CVP.js → SnapshotHistory-C052o-8U.js} +13 -13
  19. package/dist/{TemplateScoringPanel-Bt5Rsgen.js → TemplateScoringPanel-CUs8XmIi.js} +24 -24
  20. package/dist/{TestEmailModal-CBIFMzK6.js → TestEmailModal-BIIxRWUt.js} +5 -5
  21. package/dist/{TitleEditor-C9jDA5lI.js → TitleEditor-FMh54Cx5.js} +18 -18
  22. package/dist/{TplModal-ND4fiqOS.js → TplModal-utMtXzSO.js} +4 -4
  23. package/dist/{blockTypeIcons-Bn-_Smlm.js → blockTypeIcons-C6UGDmrC.js} +5 -5
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js → AiFeatureMenu-4NhCFeTh.js} +6 -6
  26. package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js.map → AiFeatureMenu-4NhCFeTh.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js → BlockIssueBadge-BYKThwhE.js} +6 -6
  28. package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js.map → BlockIssueBadge-BYKThwhE.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js → CloudEditor-DSeihOan.js} +162 -162
  30. package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js.map → CloudEditor-DSeihOan.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js → CollaboratorBar-Dn5gXNDt.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js.map → CollaboratorBar-Dn5gXNDt.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js → CountdownBlock-hYoJdVOt.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js.map → CountdownBlock-hYoJdVOt.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js → CountdownToolbar-BQn0Kj0X.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js.map → CountdownToolbar-BQn0Kj0X.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js → IssuesPanel-_5fEnivU.js} +11 -11
  38. package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js.map → IssuesPanel-_5fEnivU.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js → ModuleBrowserModal-DtCksAeW.js} +9 -9
  40. package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js.map → ModuleBrowserModal-DtCksAeW.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js → ModulePreviewCanvas-CCOvabZd.js} +33 -33
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js.map → ModulePreviewCanvas-CCOvabZd.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-Deo8EOSz.js → NumberWithSuffix-cdWjAK6y.js} +140 -119
  44. package/dist/cdn/chunks/NumberWithSuffix-cdWjAK6y.js.map +1 -0
  45. package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js → ParagraphEditor-BnhnFOW1.js} +67 -67
  46. package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js.map → ParagraphEditor-BnhnFOW1.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js → RichTextEditorContent-DV2yknp8.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js.map → RichTextEditorContent-DV2yknp8.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js → SaveModuleDialog-CCX5U7VA.js} +6 -6
  50. package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js.map → SaveModuleDialog-CCX5U7VA.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor--XulEf7R.js → TitleEditor-CQqklX0D.js} +13 -13
  52. package/dist/cdn/chunks/{TitleEditor--XulEf7R.js.map → TitleEditor-CQqklX0D.js.map} +1 -1
  53. package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-BJND4L-A.js.map → blockTypeIcons-CpGPHppB.js.map} +1 -1
  55. package/dist/{de-BJMLpg_p.js → cdn/chunks/de-BpseTWOA.js} +12 -2
  56. package/dist/cdn/chunks/de-BpseTWOA.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-iAb7QVJo.js → draggable-Bci-fq8y.js} +473 -465
  58. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +1 -0
  59. package/dist/{en-DFMMw7SL.js → cdn/chunks/en-VGIQ0WNq.js} +12 -2
  60. package/dist/cdn/chunks/en-VGIQ0WNq.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-BtWoLy6E.js → extensions-Ds9GnMcd.js} +25 -25
  62. package/dist/cdn/chunks/{extensions-BtWoLy6E.js.map → extensions-Ds9GnMcd.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-mO5NzwnN.js → features-DxWz_Enw.js} +1048 -1059
  64. package/dist/cdn/chunks/features-DxWz_Enw.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-CuXm6XAT.js → icons-BflGUmFY.js} +146 -146
  66. package/dist/cdn/chunks/icons-BflGUmFY.js.map +1 -0
  67. package/dist/cdn/chunks/{liquid.browser-DUDc3U21.js → liquid.browser-DKKBzRQu.js} +502 -497
  68. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -0
  69. package/dist/cdn/chunks/{media-library-BtNzYUTi.js → media-library-C479-QcE.js} +565 -565
  70. package/dist/cdn/chunks/{media-library-BtNzYUTi.js.map → media-library-C479-QcE.js.map} +1 -1
  71. package/dist/cdn/chunks/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +11 -3
  72. package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +1 -0
  73. package/dist/cdn/chunks/{pusher-CHo5Cua0.js → pusher-BICWUP2j.js} +3 -3
  74. package/dist/cdn/chunks/{pusher-CHo5Cua0.js.map → pusher-BICWUP2j.js.map} +1 -1
  75. package/dist/cdn/chunks/{quality-YKe19zp8.js → quality-BL_pEvFP.js} +101 -101
  76. package/dist/cdn/chunks/{quality-YKe19zp8.js.map → quality-BL_pEvFP.js.map} +1 -1
  77. package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
  78. package/dist/cdn/chunks/{renderer-BcOaxCs6.js → renderer-C0vdAODQ.js} +53 -50
  79. package/dist/cdn/chunks/renderer-C0vdAODQ.js.map +1 -0
  80. package/dist/cdn/chunks/{src-B_ZRmuit.js → src-DzvOWQ9S.js} +11 -11
  81. package/dist/cdn/chunks/{src-B_ZRmuit.js.map → src-DzvOWQ9S.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-DDBCCJ-l.js → styles-LfeoSNRA.js} +673 -599
  83. package/dist/cdn/chunks/styles-LfeoSNRA.js.map +1 -0
  84. package/dist/cdn/chunks/{tiptap-BAwu9VcJ.js → tiptap-CwScfbsM.js} +5 -4
  85. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +36 -36
  88. package/dist/cdn/editor.js.map +1 -1
  89. package/dist/{check-BsNM6BDs.js → check-BRzXxFHr.js} +1 -1
  90. package/dist/{chevron-down-fcsZ5DU7.js → chevron-down-DmEgzmYT.js} +1 -1
  91. package/dist/{circle-alert-BZTbwc-B.js → circle-alert-BStvZr3O.js} +1 -1
  92. package/dist/{clock-B7iQRubC.js → clock-Blwp_1R6.js} +1 -1
  93. package/dist/{cloud-Dom4EH5Z.js → cloud-_olro76D.js} +6 -6
  94. package/dist/{createLucideIcon-C_fetdGM.js → createLucideIcon-CmPAC-gt.js} +3 -3
  95. package/dist/{cdn/chunks/de-BJMLpg_p.js → de-BpseTWOA.js} +10 -4
  96. package/dist/{dist-ByBVNmRN.js → dist-412xXefB.js} +1 -1
  97. package/dist/{dist-XdF11ZkX.js → dist-BCQZZUE9.js} +1 -1
  98. package/dist/{dist-CD3wbUoR.js → dist-BNEdeWub.js} +1 -1
  99. package/dist/dist-BctFrpeA.js +472 -0
  100. package/dist/{dist-eVlXvuKI.js → dist-BlG7k25W.js} +1 -1
  101. package/dist/{dist-BLcYl_de.js → dist-BwgjpLfr.js} +1 -1
  102. package/dist/{dist-Dhs3W2WW.js → dist-Cz79qrLL.js} +1 -1
  103. package/dist/{dist-c2sj5PQ5.js → dist-D6x1cQeh.js} +3 -3
  104. package/dist/{dist-cT52Hh9L.js → dist-DJ9aD8yA.js} +3 -3
  105. package/dist/{dist-Cwl7XXr4.js → dist-DULfKmTh.js} +3 -3
  106. package/dist/{dist-Dem8ODLh.js → dist-DhKTdU52.js} +3 -2
  107. package/dist/{dist-BOHAk4zI.js → dist-b7Ak-CuM.js} +1 -1
  108. package/dist/{dist-B4NkMBYc.js → dist-o73iaGqy.js} +1 -1
  109. package/dist/{dist-BsB4nPJD.js → dist-u0iIJH3V.js} +1 -1
  110. package/dist/{cdn/chunks/en-DFMMw7SL.js → en-VGIQ0WNq.js} +10 -4
  111. package/dist/{extensions-B2lSGCA8.js → extensions-XPlNAKIL.js} +23 -23
  112. package/dist/formatRelativeTime-CtUU-QZ8.js +10 -0
  113. package/dist/{image-up-1xrPPJYH.js → image-up-BFPbw_Zq.js} +1 -1
  114. package/dist/{info-ByAFxArD.js → info-B_qLEBN2.js} +1 -1
  115. package/dist/{keys-DsRdOmg3.js → keys-mFiJ5N0_.js} +1 -1
  116. package/dist/{liquid.browser--qtl1Fqy.js → liquid.browser-CVjP5Mex.js} +501 -496
  117. package/dist/{list-checks-CKUP4UZU.js → list-checks-CGg7JxPm.js} +1 -1
  118. package/dist/{loader-circle-BuxX338d.js → loader-circle-CDF8eR_Q.js} +1 -1
  119. package/dist/{message-circle-nLwqegRi.js → message-circle-C3cHsCJl.js} +1 -1
  120. package/dist/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +10 -2
  121. package/dist/{refresh-cw-DAkD6iDI.js → refresh-cw-Butml7Q4.js} +1 -1
  122. package/dist/{scan-line-DEELRJJ5.js → scan-line-XYEqim_E.js} +1 -1
  123. package/dist/{send-DCMgrNT4.js → send-k7npFJNO.js} +1 -1
  124. package/dist/{shield-check-BFtVr_ov.js → shield-check-CV6GbmCu.js} +1 -1
  125. package/dist/{sparkles-CeYIQ5RJ.js → sparkles-C965Xop4.js} +1 -1
  126. package/dist/style.css +1 -1
  127. package/dist/{styles-DZcQGzsN.js → styles-DSm9Ijxt.js} +898 -824
  128. package/dist/templatical-editor.js +14 -14
  129. package/dist/{text-align-start-BsmIoqLS.js → text-align-start-Bxnps8fH.js} +1 -1
  130. package/dist/{trash-2-C2S4-CIH.js → trash-2-DpGb7fIt.js} +1 -1
  131. package/dist/{triangle-alert-DMdedF6W.js → triangle-alert-BKYElAwz.js} +1 -1
  132. package/dist/{useAliveFlag-DlVvpZxc.js → useAliveFlag-BinvbqQR.js} +1 -1
  133. package/dist/{useCloudI18n-BEuiZdzs.js → useCloudI18n-L3H2XvdW.js} +2 -2
  134. package/dist/{useEditorCore-D00QzW07.js → useEditorCore-D7dQFRkw.js} +406 -486
  135. package/dist/{useI18n-DNspT6uw.js → useI18n-CTs_bP9d.js} +2 -2
  136. package/dist/{useMergeTag-abutjUud.js → useMergeTag-e3RSY-s3.js} +6 -6
  137. package/dist/usePopoverRoot-DVh7NY1q.js +8 -0
  138. package/dist/{vue.runtime.esm-bundler-mPytWZFh.js → vue.runtime.esm-bundler-B2k01iQh.js} +345 -337
  139. package/dist/{x-_9jw816B.js → x-CGjkjdKK.js} +1 -1
  140. package/package.json +10 -10
  141. package/dist/cdn/chunks/NumberWithSuffix-Deo8EOSz.js.map +0 -1
  142. package/dist/cdn/chunks/blockTypeIcons-BJND4L-A.js +0 -22
  143. package/dist/cdn/chunks/de-BJMLpg_p.js.map +0 -1
  144. package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +0 -1
  145. package/dist/cdn/chunks/en-DFMMw7SL.js.map +0 -1
  146. package/dist/cdn/chunks/features-mO5NzwnN.js.map +0 -1
  147. package/dist/cdn/chunks/icons-CuXm6XAT.js.map +0 -1
  148. package/dist/cdn/chunks/liquid.browser-DUDc3U21.js.map +0 -1
  149. package/dist/cdn/chunks/pt-BR-C-9aWLlR.js.map +0 -1
  150. package/dist/cdn/chunks/renderer-BcOaxCs6.js.map +0 -1
  151. package/dist/cdn/chunks/styles-DDBCCJ-l.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +0 -1
  153. package/dist/dist-D6L_WdRL.js +0 -403
  154. package/dist/formatRelativeTime-CyDg5cDD.js +0 -12
  155. package/dist/usePopoverRoot-DG3mlvd1.js +0 -8
@@ -1,12 +1,12 @@
1
- import { A as e, B as t, F as n, L as r, M as i, X as a, a as ee, b as o, c as s, d as c, f as l, h as u, i as te, l as d, m as ne, ot as re, p as f, rt as p, st as m, v as h, y as ie, z as ae } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
- import "./useEditorCore-D00QzW07.js";
3
- import { D as oe, N as g, m as se } from "./keys-DsRdOmg3.js";
4
- import { t as ce } from "./useI18n-DNspT6uw.js";
5
- import { n as le, r as _, t as v } from "./blockTypeIcons-Bn-_Smlm.js";
6
- import { t as ue } from "./trash-2-C2S4-CIH.js";
7
- import { t as de } from "./x-_9jw816B.js";
8
- import { n as fe } from "./useCloudI18n-BEuiZdzs.js";
9
- import { t as pe } from "./TplModal-ND4fiqOS.js";
1
+ import { A as e, B as t, F as n, L as r, M as i, X as a, a as ee, b as o, c as s, d as c, f as l, h as u, i as te, l as d, m as ne, ot as re, p as f, rt as p, st as m, v as h, y as ie, z as ae } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
+ import "./useEditorCore-D7dQFRkw.js";
3
+ import { D as oe, N as g, m as se } from "./keys-mFiJ5N0_.js";
4
+ import { t as ce } from "./useI18n-CTs_bP9d.js";
5
+ import { n as le, r as _, t as v } from "./blockTypeIcons-C6UGDmrC.js";
6
+ import { t as ue } from "./trash-2-DpGb7fIt.js";
7
+ import { t as de } from "./x-CGjkjdKK.js";
8
+ import { n as fe } from "./useCloudI18n-L3H2XvdW.js";
9
+ import { t as pe } from "./TplModal-utMtXzSO.js";
10
10
  //#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
11
11
  var me = {
12
12
  role: "dialog",
@@ -45,7 +45,7 @@ var me = {
45
45
  props: { visible: { type: Boolean } },
46
46
  emits: ["close", "insert"],
47
47
  setup(o, { emit: z }) {
48
- let Ee = o, B = z, De = ie(() => import("./ModulePreviewCanvas-B7pNpAHM.js")), { t: Oe } = ce(), { t: V } = fe(), H = g(oe, "ModuleBrowserModal"), U = g(se, "ModuleBrowserModal"), W = a(""), G = a(null), K = a(null), q = a("end"), J = c(() => {
48
+ let Ee = o, B = z, De = ie(() => import("./ModulePreviewCanvas-CpaumPMS.js")), { t: Oe } = ce(), { t: V } = fe(), H = g(oe, "ModuleBrowserModal"), U = g(se, "ModuleBrowserModal"), W = a(""), G = a(null), K = a(null), q = a("end"), J = c(() => {
49
49
  let e = H.modules.value;
50
50
  if (!W.value) return e;
51
51
  let t = W.value.toLowerCase();
@@ -1,6 +1,6 @@
1
- import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
- import { P as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-D00QzW07.js";
3
- import { o as D } from "./keys-DsRdOmg3.js";
1
+ import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
+ import { N as p, _ as m, a as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, p as w, r as T, v as E } from "./useEditorCore-D7dQFRkw.js";
3
+ import { o as D } from "./keys-mFiJ5N0_.js";
4
4
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
5
5
  var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
6
6
  name: "PreviewSectionBlock",
@@ -11,17 +11,17 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
11
11
  },
12
12
  setup(i) {
13
13
  let A = {
14
- title: w,
15
- paragraph: b,
16
- image: _,
17
- video: x,
14
+ title: x,
15
+ paragraph: w,
16
+ image: y,
17
+ video: C,
18
18
  button: p,
19
- divider: T,
19
+ divider: m,
20
20
  social: h,
21
- menu: v,
22
- table: C,
23
- spacer: y,
24
- html: m,
21
+ menu: S,
22
+ table: T,
23
+ spacer: b,
24
+ html: v,
25
25
  custom: E
26
26
  }, j = i, M = f(D, null), N = a(() => {
27
27
  switch (j.block.columns) {
@@ -44,7 +44,7 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
44
44
  return P.value[e] || [];
45
45
  }
46
46
  function I(e) {
47
- return S(e, M, A);
47
+ return _(e, M, A);
48
48
  }
49
49
  return (i, a) => {
50
50
  let f = r("PreviewSectionBlock", !0);
@@ -77,21 +77,21 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
77
77
  setup(r) {
78
78
  let i = f(D), a = {
79
79
  section: A,
80
- title: w,
81
- paragraph: b,
82
- image: _,
83
- video: x,
80
+ title: x,
81
+ paragraph: w,
82
+ image: y,
83
+ video: C,
84
84
  button: p,
85
- divider: T,
85
+ divider: m,
86
86
  social: h,
87
- menu: v,
88
- table: C,
89
- spacer: y,
90
- html: m,
87
+ menu: S,
88
+ table: T,
89
+ spacer: b,
90
+ html: v,
91
91
  custom: E
92
92
  };
93
93
  function o(e) {
94
- return S(e, i, a);
94
+ return _(e, i, a);
95
95
  }
96
96
  return (i, a) => (e(), s("div", j, [(e(!0), s(c, null, n(r.blocks, (n) => (e(), s("div", {
97
97
  key: n.id,
@@ -1,36 +1,37 @@
1
- import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as h, st as g, t as ee, v as _, z as te } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
- import { t as v } from "./dist-cT52Hh9L.js";
3
- import { t as ne } from "./useI18n-DNspT6uw.js";
4
- import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-lGobwiLH.js";
1
+ import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as ee, st as h, t as te, v as g, z as ne } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
+ import { t as _ } from "./dist-DJ9aD8yA.js";
3
+ import { t as re } from "./useI18n-CTs_bP9d.js";
4
+ import { t as ie } from "./x-CGjkjdKK.js";
5
+ import { h as v, m as y, p as b, u as ae } from "./styleConstants-lGobwiLH.js";
5
6
  //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
6
- var w = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, T = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
7
+ var x = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, S = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
7
8
  360 / (Math.PI * 2);
8
- var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
9
+ var C = (e) => j(w(e)), w = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
9
10
  r: parseInt(e[0] + e[0], 16),
10
11
  g: parseInt(e[1] + e[1], 16),
11
12
  b: parseInt(e[2] + e[2], 16),
12
- a: e.length === 4 ? T(parseInt(e[3] + e[3], 16) / 255, 2) : 1
13
+ a: e.length === 4 ? S(parseInt(e[3] + e[3], 16) / 255, 2) : 1
13
14
  } : {
14
15
  r: parseInt(e.substring(0, 2), 16),
15
16
  g: parseInt(e.substring(2, 4), 16),
16
17
  b: parseInt(e.substring(4, 6), 16),
17
- a: e.length === 8 ? T(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
18
- }), ie = (e) => A(O(e)), ae = ({ h: e, s: t, v: n, a: r }) => {
18
+ a: e.length === 8 ? S(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
19
+ }), T = (e) => A(O(e)), E = ({ h: e, s: t, v: n, a: r }) => {
19
20
  let i = (200 - t) * n / 100;
20
21
  return {
21
- h: T(e),
22
- s: T(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
23
- l: T(i / 2),
24
- a: T(r, 2)
22
+ h: S(e),
23
+ s: S(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
24
+ l: S(i / 2),
25
+ a: S(r, 2)
25
26
  };
26
27
  }, D = (e) => {
27
- let { h: t, s: n, l: r } = ae(e);
28
+ let { h: t, s: n, l: r } = E(e);
28
29
  return `hsl(${t}, ${n}%, ${r}%)`;
29
30
  }, O = ({ h: e, s: t, v: n, a: r }) => {
30
31
  e = e / 360 * 6, t /= 100, n /= 100;
31
32
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
32
33
  return {
33
- r: T([
34
+ r: S([
34
35
  n,
35
36
  o,
36
37
  a,
@@ -38,7 +39,7 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
38
39
  s,
39
40
  n
40
41
  ][c] * 255),
41
- g: T([
42
+ g: S([
42
43
  s,
43
44
  n,
44
45
  n,
@@ -46,7 +47,7 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
46
47
  a,
47
48
  a
48
49
  ][c] * 255),
49
- b: T([
50
+ b: S([
50
51
  a,
51
52
  a,
52
53
  s,
@@ -54,27 +55,27 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
54
55
  n,
55
56
  o
56
57
  ][c] * 255),
57
- a: T(r, 2)
58
+ a: S(r, 2)
58
59
  };
59
60
  }, k = (e) => {
60
61
  let t = e.toString(16);
61
62
  return t.length < 2 ? "0" + t : t;
62
63
  }, A = ({ r: e, g: t, b: n, a: r }) => {
63
- let i = r < 1 ? k(T(r * 255)) : "";
64
+ let i = r < 1 ? k(S(r * 255)) : "";
64
65
  return "#" + k(e) + k(t) + k(n) + i;
65
66
  }, j = ({ r: e, g: t, b: n, a: r }) => {
66
67
  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;
67
68
  return {
68
- h: T(60 * (o < 0 ? o + 6 : o)),
69
- s: T(i ? a / i * 100 : 0),
70
- v: T(i / 255 * 100),
69
+ h: S(60 * (o < 0 ? o + 6 : o)),
70
+ s: S(i ? a / i * 100 : 0),
71
+ v: S(i / 255 * 100),
71
72
  a: r
72
73
  };
73
74
  }, M = (e, t) => {
74
75
  if (e === t) return !0;
75
76
  for (let n in e) if (e[n] !== t[n]) return !1;
76
77
  return !0;
77
- }, oe = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(E(e), E(t)), N = {}, P = (e) => {
78
+ }, oe = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(w(e), w(t)), N = {}, P = (e) => {
78
79
  let t = N[e];
79
80
  return t || (t = document.createElement("template"), t.innerHTML = e, N[e] = t), t;
80
81
  }, F = (e, t, n) => {
@@ -85,8 +86,8 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
85
86
  }, I = !1, L = (e) => "touches" in e, R = (e) => I && !L(e) ? !1 : (I ||= L(e), !0), z = (e, t) => {
86
87
  let n = L(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
87
88
  F(e.el, "move", e.getMove({
88
- x: w((n.pageX - (r.left + window.pageXOffset)) / r.width),
89
- y: w((n.pageY - (r.top + window.pageYOffset)) / r.height)
89
+ x: x((n.pageX - (r.left + window.pageXOffset)) / r.width),
90
+ y: x((n.pageY - (r.top + window.pageYOffset)) / r.height)
90
91
  }));
91
92
  }, B = (e, t) => {
92
93
  let n = t.keyCode;
@@ -143,10 +144,10 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
143
144
  v: 100,
144
145
  a: 1
145
146
  })
146
- }]), this.el.setAttribute("aria-valuenow", `${T(e)}`);
147
+ }]), this.el.setAttribute("aria-valuenow", `${S(e)}`);
147
148
  }
148
149
  getMove(e, t) {
149
- return { h: t ? w(this.h + e.x * 360, 0, 360) : 360 * e.x };
150
+ return { h: t ? x(this.h + e.x * 360, 0, 360) : 360 * e.x };
150
151
  }
151
152
  }, U = class extends V {
152
153
  constructor(e) {
@@ -162,12 +163,12 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
162
163
  s: 100,
163
164
  v: 100,
164
165
  a: 1
165
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${T(e.s)}%, Brightness ${T(e.v)}%`);
166
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${S(e.s)}%, Brightness ${S(e.v)}%`);
166
167
  }
167
168
  getMove(e, t) {
168
169
  return {
169
- s: t ? w(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
170
- v: t ? w(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
170
+ s: t ? x(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
171
+ v: t ? x(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
171
172
  };
172
173
  }
173
174
  }, W = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", G = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", K = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", q = Symbol("same"), J = Symbol("color"), Y = Symbol("hsva"), X = Symbol("update"), Z = Symbol("parts"), Q = Symbol("css"), $ = Symbol("sliders"), se = class extends HTMLElement {
@@ -225,8 +226,8 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
225
226
  }
226
227
  }, ce = {
227
228
  defaultColor: "#000",
228
- toHsva: re,
229
- fromHsva: ({ h: e, s: t, v: n }) => ie({
229
+ toHsva: C,
230
+ fromHsva: ({ h: e, s: t, v: n }) => T({
230
231
  h: e,
231
232
  s: t,
232
233
  v: n,
@@ -246,17 +247,20 @@ var de = [
246
247
  "disabled",
247
248
  "aria-label",
248
249
  "aria-expanded"
249
- ], fe = [
250
+ ], fe = {
251
+ key: 0,
252
+ class: "tpl:relative tpl:flex-1"
253
+ }, pe = [
250
254
  "value",
251
255
  "placeholder",
252
256
  "disabled",
253
257
  "aria-label"
254
- ], pe = ["color", "aria-label"], me = /* @__PURE__ */ o({
258
+ ], me = ["aria-label", "title"], he = ["color", "aria-label"], ge = /* @__PURE__ */ o({
255
259
  __name: "ColorPicker",
256
260
  props: {
257
261
  modelValue: {},
258
- placeholder: { default: b },
259
- size: { default: "default" },
262
+ placeholder: { default: "" },
263
+ seedColor: { default: "#ffffff" },
260
264
  swatchOnly: {
261
265
  type: Boolean,
262
266
  default: !1
@@ -268,24 +272,30 @@ var de = [
268
272
  },
269
273
  emits: ["update:modelValue"],
270
274
  setup(t, { emit: n }) {
271
- let r = t, o = n, { t: u } = ne(), p = i(!1), g = i(), y = i();
272
- v(g, () => {
275
+ let r = t, o = n, { t: u } = re(), p = i(!1), h = i(), v = i(), y = i(!1);
276
+ _(h, () => {
273
277
  p.value = !1;
274
- }, { ignore: [y] });
275
- let b = s({
276
- get: () => r.modelValue || "#000000",
277
- set: (e) => o("update:modelValue", e)
278
- });
279
- function x(e) {
280
- b.value = e.detail.value;
278
+ }, { ignore: [v] });
279
+ let b = s(() => !r.modelValue), x = s(() => r.modelValue || r.seedColor), S = s(() => !r.swatchOnly && !r.disabled && !b.value);
280
+ function C(e) {
281
+ y.value = !0, o("update:modelValue", e.detail.value);
282
+ }
283
+ function w() {
284
+ y.value = !1;
285
+ }
286
+ function T() {
287
+ !y.value && b.value && o("update:modelValue", x.value);
288
+ }
289
+ function E(e) {
290
+ o("update:modelValue", e.target.value);
281
291
  }
282
- function S(e) {
283
- b.value = e.target.value;
292
+ function D() {
293
+ o("update:modelValue", "");
284
294
  }
285
- return (n, r) => (e(), l("div", { class: a(["tpl:flex tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
295
+ return (n, r) => (e(), l("div", { class: a(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
286
296
  c("button", {
287
297
  ref_key: "swatchRef",
288
- ref: y,
298
+ ref: v,
289
299
  type: "button",
290
300
  disabled: t.disabled,
291
301
  "aria-label": m(u).colorPicker.pickColor,
@@ -294,24 +304,34 @@ var de = [
294
304
  "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)]",
295
305
  t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
296
306
  p.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
297
- t.size === "large" ? "tpl:size-12" : "tpl:size-10"
307
+ "tpl:size-10"
298
308
  ]),
299
309
  onClick: r[0] ||= (e) => !t.disabled && (p.value = !p.value)
300
310
  }, [c("span", {
301
- class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
302
- style: f({ backgroundColor: b.value })
303
- }, null, 4)], 10, de),
304
- t.swatchOnly ? d("", !0) : (e(), l("input", {
305
- key: 0,
311
+ class: a(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": b.value }]),
312
+ style: f(b.value ? void 0 : { backgroundColor: t.modelValue })
313
+ }, null, 6)], 10, de),
314
+ t.swatchOnly ? d("", !0) : (e(), l("div", fe, [c("input", {
306
315
  type: "text",
307
- class: a(m(C)),
316
+ class: a([m(ae), "tpl:w-full"]),
317
+ style: f(S.value ? { paddingRight: "2.25rem" } : void 0),
308
318
  value: t.modelValue,
309
- placeholder: t.placeholder,
319
+ placeholder: t.placeholder || m(u).colorPicker.notSet,
310
320
  disabled: t.disabled,
311
321
  "aria-label": m(u).colorPicker.hexValue,
312
- onInput: S
313
- }, null, 42, fe)),
314
- _(ee, {
322
+ onInput: E
323
+ }, null, 46, pe), S.value ? (e(), l("button", {
324
+ key: 0,
325
+ type: "button",
326
+ "aria-label": m(u).colorPicker.clear,
327
+ title: m(u).colorPicker.clear,
328
+ 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)]",
329
+ onClick: D
330
+ }, [g(m(ie), {
331
+ size: 14,
332
+ "stroke-width": 1.5
333
+ })], 8, me)) : d("", !0)])),
334
+ g(te, {
315
335
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
316
336
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
317
337
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -319,27 +339,29 @@ var de = [
319
339
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
320
340
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
321
341
  }, {
322
- default: te(() => [p.value ? (e(), l("div", {
342
+ default: ne(() => [p.value ? (e(), l("div", {
323
343
  key: 0,
324
344
  ref_key: "popoverRef",
325
- ref: g,
345
+ ref: h,
326
346
  class: "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg"
327
347
  }, [c("hex-color-picker", {
328
- color: b.value,
348
+ color: x.value,
329
349
  "aria-label": m(u).colorPicker.pickColor,
330
- onColorChanged: x,
331
- onKeydown: r[1] ||= h((e) => p.value = !1, ["escape"])
332
- }, null, 40, pe)], 512)) : d("", !0)]),
350
+ onColorChanged: C,
351
+ onPointerdown: w,
352
+ onPointerup: T,
353
+ onKeydown: r[1] ||= ee((e) => p.value = !1, ["escape"])
354
+ }, null, 40, he)], 512)) : d("", !0)]),
333
355
  _: 1
334
356
  })
335
357
  ], 2));
336
358
  }
337
- }), he = [
359
+ }), _e = [
338
360
  "aria-checked",
339
361
  "aria-label",
340
362
  "title",
341
363
  "onClick"
342
- ], ge = { key: 1 }, _e = /* @__PURE__ */ o({
364
+ ], ve = { key: 1 }, ye = /* @__PURE__ */ o({
343
365
  __name: "SlidingPillSelect",
344
366
  props: {
345
367
  options: {},
@@ -382,22 +404,22 @@ var de = [
382
404
  key: 0,
383
405
  size: 14,
384
406
  "stroke-width": 2
385
- })) : (e(), l("span", ge, g(n.label), 1))], 12, he))), 128))], 4));
407
+ })) : (e(), l("span", ve, h(n.label), 1))], 12, _e))), 128))], 4));
386
408
  }
387
- }), ve = { class: "tpl:mb-3.5" }, ye = /* @__PURE__ */ o({
409
+ }), be = { class: "tpl:mb-3.5" }, xe = /* @__PURE__ */ o({
388
410
  __name: "FieldRow",
389
411
  props: { label: {} },
390
412
  setup(t) {
391
- return (n, i) => (e(), l("div", ve, [t.label ? (e(), l("label", {
413
+ return (n, i) => (e(), l("div", be, [t.label ? (e(), l("label", {
392
414
  key: 0,
393
- class: a(m(y))
394
- }, g(t.label), 3)) : d("", !0), r(n.$slots, "default")]));
415
+ class: a(m(v))
416
+ }, h(t.label), 3)) : d("", !0), r(n.$slots, "default")]));
395
417
  }
396
- }), be = { class: "tpl:flex tpl:items-stretch" }, xe = [
418
+ }), Se = { class: "tpl:flex tpl:items-stretch" }, Ce = [
397
419
  "value",
398
420
  "min",
399
421
  "max"
400
- ], Se = /* @__PURE__ */ o({
422
+ ], we = /* @__PURE__ */ o({
401
423
  __name: "NumberWithSuffix",
402
424
  props: {
403
425
  modelValue: {},
@@ -408,15 +430,15 @@ var de = [
408
430
  emits: ["update:modelValue"],
409
431
  setup(t, { emit: n }) {
410
432
  let r = n;
411
- return (n, i) => (e(), l("div", be, [c("input", {
433
+ return (n, i) => (e(), l("div", Se, [c("input", {
412
434
  type: "number",
413
- class: a(m(S)),
435
+ class: a(m(b)),
414
436
  value: t.modelValue,
415
437
  min: t.min,
416
438
  max: t.max,
417
439
  onInput: i[0] ||= (e) => r("update:modelValue", Number(e.target.value))
418
- }, null, 42, xe), c("span", { class: a(m(x)) }, g(t.suffix), 3)]));
440
+ }, null, 42, Ce), c("span", { class: a(m(y)) }, h(t.suffix), 3)]));
419
441
  }
420
442
  });
421
443
  //#endregion
422
- export { me as i, ye as n, _e as r, Se as t };
444
+ export { ge as i, xe as n, ye as r, we as t };