@templatical/editor 0.6.3 → 0.6.5

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 (128) hide show
  1. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
  2. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
  3. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
  4. package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
  5. package/dist/{CloudEditor-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
  6. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
  7. package/dist/CommentsSidebar-BQROg36f.js +441 -0
  8. package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
  9. package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
  10. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
  11. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
  13. package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
  14. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
  15. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
  16. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
  17. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
  18. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
  19. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
  20. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
  21. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
  22. package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
  23. package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
  24. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
  27. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
  29. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
  30. package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
  31. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
  33. package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
  35. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
  36. package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
  37. package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
  39. package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
  41. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
  44. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
  45. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
  46. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
  47. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
  48. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
  49. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
  50. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
  51. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
  52. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
  53. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
  54. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
  55. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
  56. package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
  57. package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
  58. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
  59. package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
  60. package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
  61. package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
  63. package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
  65. package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
  66. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
  67. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
  69. package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
  71. package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
  72. package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
  73. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
  74. package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
  75. package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
  76. package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
  77. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
  78. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
  79. package/dist/cdn/editor.css +1 -1
  80. package/dist/cdn/editor.js +122 -122
  81. package/dist/cdn/editor.js.map +1 -1
  82. package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
  83. package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
  84. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
  85. package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
  86. package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
  87. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
  88. package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
  89. package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
  90. package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
  91. package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
  92. package/dist/index.d.ts +11 -11
  93. package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
  94. package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
  95. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
  96. package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
  97. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
  98. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  99. package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
  100. package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
  101. package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
  102. package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/styles-CwJQsnSp.js +3173 -0
  105. package/dist/templatical-editor.js +99 -99
  106. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
  107. package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
  108. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
  109. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
  110. package/dist/useEditorCore-DLd-5qMg.js +3784 -0
  111. package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
  112. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
  113. package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
  114. package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
  115. package/package.json +8 -8
  116. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  117. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  118. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  119. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  120. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  121. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  122. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  123. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  124. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  125. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  126. package/dist/styles-DEXEkBvg.js +0 -3176
  127. package/dist/useEditorCore-C6ost42Q.js +0 -9342
  128. package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
@@ -1,11 +1,11 @@
1
- import { Dt as e, F as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, V as l, _ as u, b as d, d as f, g as p, h as m, it as h, l as ee, m as g, p as _, t as v } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { t as y } from "./dist-B1IR0bpH.js";
3
- import { t as te } from "./useI18n-lb2DHDiu.js";
4
- import { h as b, i as x, m as S, p as C, u as ne } from "./styleConstants-fWzlIIwN.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 h, st as g, t as ee, v as _, z as te } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { t as v } from "./dist-BzRLLpfq.js";
3
+ import { t as ne } from "./useI18n-CgmQftNf.js";
4
+ import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-fWzlIIwN.js";
5
5
  //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
6
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
7
  360 / (Math.PI * 2);
8
- var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
8
+ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
9
9
  r: parseInt(e[0] + e[0], 16),
10
10
  g: parseInt(e[1] + e[1], 16),
11
11
  b: parseInt(e[2] + e[2], 16),
@@ -15,7 +15,7 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
15
15
  g: parseInt(e.substring(2, 4), 16),
16
16
  b: parseInt(e.substring(4, 6), 16),
17
17
  a: e.length === 8 ? T(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
18
- }), D = (e) => ae(k(e)), ie = ({ h: e, s: t, v: n, a: r }) => {
18
+ }), ie = (e) => A(O(e)), ae = ({ h: e, s: t, v: n, a: r }) => {
19
19
  let i = (200 - t) * n / 100;
20
20
  return {
21
21
  h: T(e),
@@ -23,10 +23,10 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
23
23
  l: T(i / 2),
24
24
  a: T(r, 2)
25
25
  };
26
- }, O = (e) => {
27
- let { h: t, s: n, l: r } = ie(e);
26
+ }, D = (e) => {
27
+ let { h: t, s: n, l: r } = ae(e);
28
28
  return `hsl(${t}, ${n}%, ${r}%)`;
29
- }, k = ({ h: e, s: t, v: n, a: r }) => {
29
+ }, O = ({ h: e, s: t, v: n, a: r }) => {
30
30
  e = e / 360 * 6, t /= 100, n /= 100;
31
31
  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
32
  return {
@@ -56,13 +56,13 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
56
56
  ][c] * 255),
57
57
  a: T(r, 2)
58
58
  };
59
- }, A = (e) => {
59
+ }, k = (e) => {
60
60
  let t = e.toString(16);
61
61
  return t.length < 2 ? "0" + t : t;
62
- }, ae = ({ r: e, g: t, b: n, a: r }) => {
63
- let i = r < 1 ? A(T(r * 255)) : "";
64
- return "#" + A(e) + A(t) + A(n) + i;
65
- }, oe = ({ r: e, g: t, b: n, a: r }) => {
62
+ }, A = ({ r: e, g: t, b: n, a: r }) => {
63
+ let i = r < 1 ? k(T(r * 255)) : "";
64
+ return "#" + k(e) + k(t) + k(n) + i;
65
+ }, j = ({ r: e, g: t, b: n, a: r }) => {
66
66
  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
67
  return {
68
68
  h: T(60 * (o < 0 ? o + 6 : o)),
@@ -70,11 +70,11 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
70
70
  v: T(i / 255 * 100),
71
71
  a: r
72
72
  };
73
- }, j = (e, t) => {
73
+ }, M = (e, t) => {
74
74
  if (e === t) return !0;
75
75
  for (let n in e) if (e[n] !== t[n]) return !1;
76
76
  return !0;
77
- }, M = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : j(E(e), E(t)), N = {}, P = (e) => {
77
+ }, oe = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(E(e), E(t)), N = {}, P = (e) => {
78
78
  let t = N[e];
79
79
  return t || (t = document.createElement("template"), t.innerHTML = e, N[e] = t), t;
80
80
  }, F = (e, t, n) => {
@@ -137,7 +137,7 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
137
137
  update({ h: e }) {
138
138
  this.h = e, this.style([{
139
139
  left: `${e / 360 * 100}%`,
140
- color: O({
140
+ color: D({
141
141
  h: e,
142
142
  s: 100,
143
143
  v: 100,
@@ -156,8 +156,8 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
156
156
  this.hsva = e, this.style([{
157
157
  top: `${100 - e.v}%`,
158
158
  left: `${e.s}%`,
159
- color: O(e)
160
- }, { "background-color": O({
159
+ color: D(e)
160
+ }, { "background-color": D({
161
161
  h: e.h,
162
162
  s: 100,
163
163
  v: 100,
@@ -215,7 +215,7 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
215
215
  };
216
216
  this[X](n);
217
217
  let r;
218
- !j(n, t) && !this[q](r = this.colorModel.fromHsva(n)) && (this[J] = r, F(this, "color-changed", { value: r }));
218
+ !M(n, t) && !this[q](r = this.colorModel.fromHsva(n)) && (this[J] = r, F(this, "color-changed", { value: r }));
219
219
  }
220
220
  [q](e) {
221
221
  return this.color && this.colorModel.equal(e, this.color);
@@ -226,13 +226,13 @@ var re = (e) => oe(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.le
226
226
  }, ce = {
227
227
  defaultColor: "#000",
228
228
  toHsva: re,
229
- fromHsva: ({ h: e, s: t, v: n }) => D({
229
+ fromHsva: ({ h: e, s: t, v: n }) => ie({
230
230
  h: e,
231
231
  s: t,
232
232
  v: n,
233
233
  a: 1
234
234
  }),
235
- equal: M,
235
+ equal: oe,
236
236
  fromAttr: (e) => e
237
237
  }, le = class extends se {
238
238
  get colorModel() {
@@ -251,11 +251,11 @@ var de = [
251
251
  "placeholder",
252
252
  "disabled",
253
253
  "aria-label"
254
- ], pe = ["color", "aria-label"], me = /* @__PURE__ */ c({
254
+ ], pe = ["color", "aria-label"], me = /* @__PURE__ */ o({
255
255
  __name: "ColorPicker",
256
256
  props: {
257
257
  modelValue: {},
258
- placeholder: { default: x },
258
+ placeholder: { default: b },
259
259
  size: { default: "default" },
260
260
  swatchOnly: {
261
261
  type: Boolean,
@@ -268,50 +268,50 @@ var de = [
268
268
  },
269
269
  emits: ["update:modelValue"],
270
270
  setup(t, { emit: n }) {
271
- let i = t, o = n, { t: c } = te(), f = s(!1), m = s(), b = s();
272
- y(m, () => {
273
- f.value = !1;
274
- }, { ignore: [b] });
275
- let x = _({
276
- get: () => i.modelValue || "#000000",
271
+ let r = t, o = n, { t: u } = ne(), p = i(!1), g = i(), y = i();
272
+ v(g, () => {
273
+ p.value = !1;
274
+ }, { ignore: [y] });
275
+ let b = s({
276
+ get: () => r.modelValue || "#000000",
277
277
  set: (e) => o("update:modelValue", e)
278
278
  });
279
- function S(e) {
280
- x.value = e.detail.value;
279
+ function x(e) {
280
+ b.value = e.detail.value;
281
281
  }
282
- function C(e) {
283
- x.value = e.target.value;
282
+ function S(e) {
283
+ b.value = e.target.value;
284
284
  }
285
- return (n, i) => (r(), u("div", { class: e(["tpl:flex tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
286
- g("button", {
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"]) }, [
286
+ c("button", {
287
287
  ref_key: "swatchRef",
288
- ref: b,
288
+ ref: y,
289
289
  type: "button",
290
290
  disabled: t.disabled,
291
- "aria-label": h(c).colorPicker.pickColor,
292
- "aria-expanded": f.value,
293
- class: e([
291
+ "aria-label": m(u).colorPicker.pickColor,
292
+ "aria-expanded": p.value,
293
+ class: a([
294
294
  "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
295
  t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
296
- f.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
296
+ p.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
297
297
  t.size === "large" ? "tpl:size-12" : "tpl:size-10"
298
298
  ]),
299
- onClick: i[0] ||= (e) => !t.disabled && (f.value = !f.value)
300
- }, [g("span", {
299
+ onClick: r[0] ||= (e) => !t.disabled && (p.value = !p.value)
300
+ }, [c("span", {
301
301
  class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
302
- style: a({ backgroundColor: x.value })
302
+ style: f({ backgroundColor: b.value })
303
303
  }, null, 4)], 10, de),
304
- t.swatchOnly ? p("", !0) : (r(), u("input", {
304
+ t.swatchOnly ? d("", !0) : (e(), l("input", {
305
305
  key: 0,
306
306
  type: "text",
307
- class: e(h(ne)),
307
+ class: a(m(C)),
308
308
  value: t.modelValue,
309
309
  placeholder: t.placeholder,
310
310
  disabled: t.disabled,
311
- "aria-label": h(c).colorPicker.hexValue,
312
- onInput: C
311
+ "aria-label": m(u).colorPicker.hexValue,
312
+ onInput: S
313
313
  }, null, 42, fe)),
314
- d(v, {
314
+ _(ee, {
315
315
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
316
316
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
317
317
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -319,17 +319,17 @@ var de = [
319
319
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
320
320
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
321
321
  }, {
322
- default: l(() => [f.value ? (r(), u("div", {
322
+ default: te(() => [p.value ? (e(), l("div", {
323
323
  key: 0,
324
324
  ref_key: "popoverRef",
325
- ref: m,
325
+ ref: g,
326
326
  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
- }, [g("hex-color-picker", {
328
- color: x.value,
329
- "aria-label": h(c).colorPicker.pickColor,
330
- onColorChanged: S,
331
- onKeydown: i[1] ||= ee((e) => f.value = !1, ["escape"])
332
- }, null, 40, pe)], 512)) : p("", !0)]),
327
+ }, [c("hex-color-picker", {
328
+ color: b.value,
329
+ "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)]),
333
333
  _: 1
334
334
  })
335
335
  ], 2));
@@ -339,65 +339,65 @@ var de = [
339
339
  "aria-label",
340
340
  "title",
341
341
  "onClick"
342
- ], ge = { key: 1 }, _e = /* @__PURE__ */ c({
342
+ ], ge = { key: 1 }, _e = /* @__PURE__ */ o({
343
343
  __name: "SlidingPillSelect",
344
344
  props: {
345
345
  options: {},
346
346
  modelValue: {}
347
347
  },
348
348
  emits: ["update:modelValue"],
349
- setup(e, { emit: t }) {
350
- let s = e, c = t, l = _(() => s.options.findIndex((e) => e.value === s.modelValue)), d = _(() => `translateX(${Math.max(l.value, 0) * 100}%)`);
351
- return (t, s) => (r(), u("div", {
349
+ setup(r, { emit: i }) {
350
+ let a = r, o = i, c = s(() => a.options.findIndex((e) => e.value === a.modelValue)), m = s(() => `translateX(${Math.max(c.value, 0) * 100}%)`);
351
+ return (i, a) => (e(), l("div", {
352
352
  role: "radiogroup",
353
353
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
354
- style: a({
355
- gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
354
+ style: f({
355
+ gridTemplateColumns: `repeat(${r.options.length}, 1fr)`,
356
356
  backgroundColor: "var(--tpl-bg-hover)"
357
357
  })
358
- }, [l.value >= 0 ? (r(), u("div", {
358
+ }, [c.value >= 0 ? (e(), l("div", {
359
359
  key: 0,
360
360
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
361
- style: a({
361
+ style: f({
362
362
  left: "4px",
363
- width: `calc((100% - 8px) / ${e.options.length})`,
364
- transform: d.value,
363
+ width: `calc((100% - 8px) / ${r.options.length})`,
364
+ transform: m.value,
365
365
  backgroundColor: "var(--tpl-bg)",
366
366
  boxShadow: "var(--tpl-shadow)",
367
367
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
368
368
  })
369
- }, null, 4)) : p("", !0), (r(!0), u(f, null, o(e.options, (t) => (r(), u("button", {
370
- key: t.value,
369
+ }, null, 4)) : d("", !0), (e(!0), l(u, null, n(r.options, (n) => (e(), l("button", {
370
+ key: n.value,
371
371
  role: "radio",
372
- "aria-checked": e.modelValue === t.value,
373
- "aria-label": t.label,
372
+ "aria-checked": r.modelValue === n.value,
373
+ "aria-label": n.label,
374
374
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
375
- style: a({
376
- color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
375
+ style: f({
376
+ color: r.modelValue === n.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
377
377
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
378
378
  }),
379
- title: t.label,
380
- onClick: (e) => c("update:modelValue", t.value)
381
- }, [t.icon ? (r(), m(n(t.icon), {
379
+ title: n.label,
380
+ onClick: (e) => o("update:modelValue", n.value)
381
+ }, [n.icon ? (e(), p(t(n.icon), {
382
382
  key: 0,
383
383
  size: 14,
384
384
  "stroke-width": 2
385
- })) : (r(), u("span", ge, i(t.label), 1))], 12, he))), 128))], 4));
385
+ })) : (e(), l("span", ge, g(n.label), 1))], 12, he))), 128))], 4));
386
386
  }
387
- }), ve = { class: "tpl:mb-3.5" }, ye = /* @__PURE__ */ c({
387
+ }), ve = { class: "tpl:mb-3.5" }, ye = /* @__PURE__ */ o({
388
388
  __name: "FieldRow",
389
389
  props: { label: {} },
390
- setup(n) {
391
- return (a, o) => (r(), u("div", ve, [n.label ? (r(), u("label", {
390
+ setup(t) {
391
+ return (n, i) => (e(), l("div", ve, [t.label ? (e(), l("label", {
392
392
  key: 0,
393
- class: e(h(b))
394
- }, i(n.label), 3)) : p("", !0), t(a.$slots, "default")]));
393
+ class: a(m(y))
394
+ }, g(t.label), 3)) : d("", !0), r(n.$slots, "default")]));
395
395
  }
396
396
  }), be = { class: "tpl:flex tpl:items-stretch" }, xe = [
397
397
  "value",
398
398
  "min",
399
399
  "max"
400
- ], Se = /* @__PURE__ */ c({
400
+ ], Se = /* @__PURE__ */ o({
401
401
  __name: "NumberWithSuffix",
402
402
  props: {
403
403
  modelValue: {},
@@ -407,15 +407,15 @@ var de = [
407
407
  },
408
408
  emits: ["update:modelValue"],
409
409
  setup(t, { emit: n }) {
410
- let a = n;
411
- return (n, o) => (r(), u("div", be, [g("input", {
410
+ let r = n;
411
+ return (n, i) => (e(), l("div", be, [c("input", {
412
412
  type: "number",
413
- class: e(h(C)),
413
+ class: a(m(S)),
414
414
  value: t.modelValue,
415
415
  min: t.min,
416
416
  max: t.max,
417
- onInput: o[0] ||= (e) => a("update:modelValue", Number(e.target.value))
418
- }, null, 42, xe), g("span", { class: e(h(S)) }, i(t.suffix), 3)]));
417
+ 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)]));
419
419
  }
420
420
  });
421
421
  //#endregion