@templatical/editor 0.16.3 → 0.16.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.
- package/dist/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
- package/dist/{AiFeatureMenu-CcGRd1xE.js → AiFeatureMenu-B1oEJebq.js} +4 -4
- package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
- package/dist/{CloudEditor-CUIWUMp5.js → CloudEditor-D6KNL6VU.js} +15 -15
- package/dist/{CollaboratorBar-DmxqeBYZ.js → CollaboratorBar-C_EhXQ5R.js} +2 -2
- package/dist/{ColorPicker-Gs4BMVog.js → ColorPicker-CppJgX_T.js} +58 -59
- package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
- package/dist/{CountdownToolbar-92w1YySJ.js → CountdownToolbar-D5GaA_lt.js} +53 -67
- package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
- package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
- package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
- package/dist/{ModuleBrowserModal-DsehjLvh.js → ModuleBrowserModal-CXy8Bbv9.js} +6 -6
- package/dist/{ModulePreviewCanvas-BBfuS8VW.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
- package/dist/{NumberWithSuffix-BxSRfI8b.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
- package/dist/{ParagraphEditor-vgvQxicC.js → ParagraphEditor-nk5Vvr7M.js} +57 -58
- package/dist/{RichTextEditorContent-Dza2oPvh.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
- package/dist/{SaveModuleDialog-DNWGCHlS.js → SaveModuleDialog-CYu5PhBz.js} +24 -23
- package/dist/{SnapshotHistory-BLmnNLg1.js → SnapshotHistory-B38ImqMO.js} +6 -6
- package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
- package/dist/{TestEmailModal-D6v1hgY2.js → TestEmailModal-DbstIzEf.js} +3 -3
- package/dist/{TitleEditor-DPdzOQpq.js → TitleEditor-CmfkOHJT.js} +18 -18
- package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
- package/dist/{TplModal-DObT0uxf.js → TplModal-BXnx3sLr.js} +4 -4
- package/dist/{blockTypeIcons-B9f5fH_5.js → blockTypeIcons-BVIEw0XJ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js → CloudEditor-1Ms0w691.js} +130 -130
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js → CollaboratorBar-C0a5P64z.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-Pi-1fR8c.js → ColorPicker-bsMmT-_B.js} +144 -144
- package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js → CountdownBlock-8053oz4k.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js +198 -0
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js → IssuesPanel-CwQ376nf.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js.map → IssuesPanel-CwQ376nf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-jesxS7An.js → MergeTagSuggestion-rpZ6Ol-i.js} +8 -6
- package/dist/cdn/chunks/MergeTagSuggestion-rpZ6Ol-i.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-4cMKKC-V.js → ParagraphEditor-IpZsg8qo.js} +75 -75
- package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-mr9A4j6G.js → SaveModuleDialog-CVA5HPCi.js} +31 -30
- package/dist/cdn/chunks/SaveModuleDialog-CVA5HPCi.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-Cqw2jvuc.js → TitleEditor-DU8wm0Rh.js} +9 -9
- package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
- package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
- package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
- package/dist/cdn/chunks/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +3 -2
- package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
- package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
- package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
- package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
- package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js → extensions-BGUoo2a5.js} +29 -29
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js.map → extensions-BGUoo2a5.js.map} +1 -1
- package/dist/cdn/chunks/{features-Dwb5aTLg.js → features-BSpDuFFR.js} +145 -126
- package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js → icons-k3XVoRvc.js} +26 -26
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js.map → icons-k3XVoRvc.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DRodsf2D.js → media-library-iDq3otm6.js} +451 -451
- package/dist/cdn/chunks/{media-library-DRodsf2D.js.map → media-library-iDq3otm6.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
- package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js → quality-Bb7vN32U.js} +512 -512
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js.map → quality-Bb7vN32U.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BM_-zceB.js → renderer-cOvtk8HM.js} +20 -17
- package/dist/cdn/chunks/{renderer-BM_-zceB.js.map → renderer-cOvtk8HM.js.map} +1 -1
- package/dist/cdn/chunks/{src-DSomxPI-.js → src-Ddp969zE.js} +6 -6
- package/dist/cdn/chunks/{src-DSomxPI-.js.map → src-Ddp969zE.js.map} +1 -1
- package/dist/cdn/chunks/{styles--UXn88wH.js → styles-CW_gRVVR.js} +893 -891
- package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +51 -51
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
- package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
- package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
- package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
- package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
- package/dist/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -1
- package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
- package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
- package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
- package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
- package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
- package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
- package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
- package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
- package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
- package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
- package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
- package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
- package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CPt6RYEc.js → styles-DJfTblY7.js} +764 -762
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
- package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
- package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
- package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
- package/dist/{useEditorCore-CSfeEwCj.js → useEditorCore-DnOG2a_b.js} +656 -656
- package/dist/usePopoverPosition-B3Byo68F.js +281 -0
- package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-4cMKKC-V.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-mr9A4j6G.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cqw2jvuc.js.map +0 -1
- package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
- package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
- package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
- package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
- package/dist/cdn/chunks/features-Dwb5aTLg.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
- package/dist/cdn/chunks/styles--UXn88wH.js.map +0 -1
- package/dist/color-DhoxCSMv.js +0 -259
- package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
|
@@ -1,37 +1,22 @@
|
|
|
1
|
-
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l,
|
|
2
|
-
import { t as
|
|
3
|
-
import { f as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: Boolean },
|
|
10
|
-
label: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(e, { emit: t }) {
|
|
14
|
-
let i = t;
|
|
15
|
-
return (t, a) => (n(), s("label", b, [o("input", {
|
|
16
|
-
type: "checkbox",
|
|
17
|
-
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
18
|
-
checked: e.modelValue,
|
|
19
|
-
onChange: a[0] ||= (e) => i("update:modelValue", e.target.checked)
|
|
20
|
-
}, null, 40, x), u(" " + r(e.label), 1)]));
|
|
21
|
-
}
|
|
22
|
-
}), C = ["value"], w = ["value"], T = ["value"], E = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, D = ["value"], O = { value: "" }, k = ["value"], A = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, j = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, M = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, N = [
|
|
1
|
+
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
+
import { t as p } from "./useI18n-eR1yVW0v.js";
|
|
3
|
+
import { f as m, t as h } from "./ColorPicker-CppJgX_T.js";
|
|
4
|
+
import { t as g } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
5
|
+
import { n as _, r as v, t as y } from "./NumberWithSuffix-DNi-v4l1.js";
|
|
6
|
+
//#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
|
|
23
8
|
"value",
|
|
24
9
|
"placeholder",
|
|
25
10
|
"onInput"
|
|
26
|
-
],
|
|
11
|
+
], j = ["value", "placeholder"], M = ["value"], N = /* @__PURE__ */ a({
|
|
27
12
|
__name: "CountdownToolbar",
|
|
28
13
|
props: {
|
|
29
14
|
block: {},
|
|
30
15
|
fontFamilies: {}
|
|
31
16
|
},
|
|
32
17
|
emits: ["update"],
|
|
33
|
-
setup(a, { emit:
|
|
34
|
-
let
|
|
18
|
+
setup(a, { emit: N }) {
|
|
19
|
+
let P = N, { t: F } = p(), I = [
|
|
35
20
|
"UTC",
|
|
36
21
|
"America/New_York",
|
|
37
22
|
"America/Chicago",
|
|
@@ -65,41 +50,42 @@ var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:tex
|
|
|
65
50
|
"Hours",
|
|
66
51
|
"Minutes",
|
|
67
52
|
"Seconds"
|
|
68
|
-
], z =
|
|
53
|
+
], z = f(() => R.map((e) => ({
|
|
69
54
|
unit: e,
|
|
70
55
|
showKey: `show${e}`,
|
|
71
56
|
labelKey: `label${e}`,
|
|
72
57
|
translationKey: e.toLowerCase()
|
|
73
58
|
})));
|
|
74
59
|
function B(e, t) {
|
|
75
|
-
|
|
60
|
+
P("update", { [e]: t });
|
|
76
61
|
}
|
|
77
|
-
return (
|
|
78
|
-
c(_, { label:
|
|
62
|
+
return (f, p) => (n(), s(d, null, [
|
|
63
|
+
c(_, { label: u(F).countdown.targetDate }, {
|
|
79
64
|
default: i(() => [o("input", {
|
|
80
65
|
type: "datetime-local",
|
|
81
|
-
class: t(
|
|
66
|
+
class: t(u(m)),
|
|
82
67
|
value: a.block.targetDate,
|
|
83
68
|
onInput: p[0] ||= (e) => B("targetDate", e.target.value)
|
|
84
|
-
}, null, 42,
|
|
69
|
+
}, null, 42, b)]),
|
|
85
70
|
_: 1
|
|
86
71
|
}, 8, ["label"]),
|
|
87
|
-
c(_, { label:
|
|
72
|
+
c(_, { label: u(F).countdown.timezone }, {
|
|
88
73
|
default: i(() => [o("select", {
|
|
89
|
-
class: t(
|
|
74
|
+
class: t(u(m)),
|
|
90
75
|
value: a.block.timezone,
|
|
91
76
|
onChange: p[1] ||= (e) => B("timezone", e.target.value)
|
|
92
|
-
}, [(n(), s(
|
|
77
|
+
}, [(n(), s(d, null, e(I, (e) => o("option", {
|
|
93
78
|
key: e,
|
|
94
79
|
value: e
|
|
95
|
-
}, r(e), 9,
|
|
80
|
+
}, r(e), 9, S)), 64))], 42, x)]),
|
|
96
81
|
_: 1
|
|
97
82
|
}, 8, ["label"]),
|
|
98
|
-
c(_, { label:
|
|
99
|
-
default: i(() => [o("div",
|
|
83
|
+
c(_, { label: u(F).countdown.display }, {
|
|
84
|
+
default: i(() => [o("div", C, [(n(!0), s(d, null, e(z.value, (e) => (n(), l(g, {
|
|
100
85
|
key: e.unit,
|
|
86
|
+
class: "tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
101
87
|
"model-value": a.block[e.showKey],
|
|
102
|
-
label:
|
|
88
|
+
label: u(F).countdown[e.translationKey],
|
|
103
89
|
"onUpdate:modelValue": (t) => B(e.showKey, t)
|
|
104
90
|
}, null, 8, [
|
|
105
91
|
"model-value",
|
|
@@ -108,7 +94,7 @@ var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:tex
|
|
|
108
94
|
]))), 128))])]),
|
|
109
95
|
_: 1
|
|
110
96
|
}, 8, ["label"]),
|
|
111
|
-
c(_, { label:
|
|
97
|
+
c(_, { label: u(F).countdown.separator }, {
|
|
112
98
|
default: i(() => [c(v, {
|
|
113
99
|
options: L,
|
|
114
100
|
"model-value": a.block.separator,
|
|
@@ -116,18 +102,18 @@ var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:tex
|
|
|
116
102
|
}, null, 8, ["model-value"])]),
|
|
117
103
|
_: 1
|
|
118
104
|
}, 8, ["label"]),
|
|
119
|
-
c(_, { label:
|
|
105
|
+
c(_, { label: u(F).countdown.fontFamily }, {
|
|
120
106
|
default: i(() => [o("select", {
|
|
121
|
-
class: t(
|
|
107
|
+
class: t(u(m)),
|
|
122
108
|
value: a.block.fontFamily || "",
|
|
123
109
|
onChange: p[3] ||= (e) => B("fontFamily", e.target.value || void 0)
|
|
124
|
-
}, [o("option",
|
|
110
|
+
}, [o("option", T, r(u(F).countdown.inheritFont), 1), (n(!0), s(d, null, e(a.fontFamilies, (e) => (n(), s("option", {
|
|
125
111
|
key: e.value,
|
|
126
112
|
value: e.value
|
|
127
|
-
}, r(e.label), 9,
|
|
113
|
+
}, r(e.label), 9, E))), 128))], 42, w)]),
|
|
128
114
|
_: 1
|
|
129
115
|
}, 8, ["label"]),
|
|
130
|
-
o("div",
|
|
116
|
+
o("div", D, [c(_, { label: u(F).countdown.digitFontSize }, {
|
|
131
117
|
default: i(() => [c(y, {
|
|
132
118
|
"model-value": a.block.digitFontSize,
|
|
133
119
|
min: 12,
|
|
@@ -136,7 +122,7 @@ var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:tex
|
|
|
136
122
|
"onUpdate:modelValue": p[4] ||= (e) => B("digitFontSize", e)
|
|
137
123
|
}, null, 8, ["model-value"])]),
|
|
138
124
|
_: 1
|
|
139
|
-
}, 8, ["label"]), c(_, { label:
|
|
125
|
+
}, 8, ["label"]), c(_, { label: u(F).countdown.labelFontSize }, {
|
|
140
126
|
default: i(() => [c(y, {
|
|
141
127
|
"model-value": a.block.labelFontSize,
|
|
142
128
|
min: 8,
|
|
@@ -146,65 +132,65 @@ var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:tex
|
|
|
146
132
|
}, null, 8, ["model-value"])]),
|
|
147
133
|
_: 1
|
|
148
134
|
}, 8, ["label"])]),
|
|
149
|
-
o("div",
|
|
150
|
-
default: i(() => [c(
|
|
135
|
+
o("div", O, [c(_, { label: u(F).countdown.digitColor }, {
|
|
136
|
+
default: i(() => [c(h, {
|
|
151
137
|
"model-value": a.block.digitColor,
|
|
152
138
|
"onUpdate:modelValue": p[6] ||= (e) => B("digitColor", e)
|
|
153
139
|
}, null, 8, ["model-value"])]),
|
|
154
140
|
_: 1
|
|
155
|
-
}, 8, ["label"]), c(_, { label:
|
|
156
|
-
default: i(() => [c(
|
|
141
|
+
}, 8, ["label"]), c(_, { label: u(F).countdown.labelColor }, {
|
|
142
|
+
default: i(() => [c(h, {
|
|
157
143
|
"model-value": a.block.labelColor,
|
|
158
144
|
"onUpdate:modelValue": p[7] ||= (e) => B("labelColor", e)
|
|
159
145
|
}, null, 8, ["model-value"])]),
|
|
160
146
|
_: 1
|
|
161
147
|
}, 8, ["label"])]),
|
|
162
|
-
c(_, { label:
|
|
163
|
-
default: i(() => [c(
|
|
148
|
+
c(_, { label: u(F).countdown.background }, {
|
|
149
|
+
default: i(() => [c(h, {
|
|
164
150
|
"model-value": a.block.backgroundColor,
|
|
165
151
|
"onUpdate:modelValue": p[8] ||= (e) => B("backgroundColor", e)
|
|
166
152
|
}, null, 8, ["model-value"])]),
|
|
167
153
|
_: 1
|
|
168
154
|
}, 8, ["label"]),
|
|
169
|
-
c(_, { label:
|
|
170
|
-
default: i(() => [o("div",
|
|
155
|
+
c(_, { label: u(F).countdown.labels }, {
|
|
156
|
+
default: i(() => [o("div", k, [(n(!0), s(d, null, e(z.value, (e) => (n(), s("input", {
|
|
171
157
|
key: e.unit,
|
|
172
158
|
type: "text",
|
|
173
|
-
class: t(
|
|
159
|
+
class: t(u(m)),
|
|
174
160
|
value: a.block[e.labelKey],
|
|
175
|
-
placeholder:
|
|
161
|
+
placeholder: u(F).countdown[e.translationKey],
|
|
176
162
|
onInput: (t) => B(e.labelKey, t.target.value)
|
|
177
|
-
}, null, 42,
|
|
163
|
+
}, null, 42, A))), 128))])]),
|
|
178
164
|
_: 1
|
|
179
165
|
}, 8, ["label"]),
|
|
180
|
-
c(_, { label:
|
|
166
|
+
c(_, { label: u(F).countdown.expiry }, {
|
|
181
167
|
default: i(() => [o("input", {
|
|
182
168
|
type: "text",
|
|
183
|
-
class: t(
|
|
169
|
+
class: t(u(m)),
|
|
184
170
|
value: a.block.expiredMessage,
|
|
185
|
-
placeholder:
|
|
171
|
+
placeholder: u(F).countdown.expiredMessagePlaceholder,
|
|
186
172
|
onInput: p[9] ||= (e) => B("expiredMessage", e.target.value)
|
|
187
|
-
}, null, 42,
|
|
173
|
+
}, null, 42, j)]),
|
|
188
174
|
_: 1
|
|
189
175
|
}, 8, ["label"]),
|
|
190
|
-
c(_, { label:
|
|
176
|
+
c(_, { label: u(F).countdown.expiredImageUrl }, {
|
|
191
177
|
default: i(() => [o("input", {
|
|
192
178
|
type: "url",
|
|
193
|
-
class: t(
|
|
179
|
+
class: t(u(m)),
|
|
194
180
|
value: a.block.expiredImageUrl,
|
|
195
181
|
placeholder: "https://...",
|
|
196
182
|
onInput: p[10] ||= (e) => B("expiredImageUrl", e.target.value)
|
|
197
|
-
}, null, 42,
|
|
183
|
+
}, null, 42, M)]),
|
|
198
184
|
_: 1
|
|
199
185
|
}, 8, ["label"]),
|
|
200
|
-
c(
|
|
186
|
+
c(g, {
|
|
187
|
+
class: "tpl:mb-3.5 tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
201
188
|
"model-value": a.block.hideOnExpiry,
|
|
202
|
-
label:
|
|
203
|
-
class: "tpl:mb-3.5",
|
|
189
|
+
label: u(F).countdown.hideOnExpiry,
|
|
204
190
|
"onUpdate:modelValue": p[11] ||= (e) => B("hideOnExpiry", e)
|
|
205
191
|
}, null, 8, ["model-value", "label"])
|
|
206
192
|
], 64));
|
|
207
193
|
}
|
|
208
194
|
});
|
|
209
195
|
//#endregion
|
|
210
|
-
export {
|
|
196
|
+
export { N as default };
|
|
@@ -2,11 +2,11 @@ import { Dt as e, Et as t, I as n, O as r, Ot as i, R as ee, T as a, Y as o, _ a
|
|
|
2
2
|
import { a as ie, t as ae } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
3
|
import "./timeouts-Bmi_yePw.js";
|
|
4
4
|
import { L as m, m as oe, r as se } from "./keys-BbDgCU6K.js";
|
|
5
|
-
import { t as h } from "./createLucideIcon-
|
|
6
|
-
import { t as ce } from "./circle-alert-
|
|
7
|
-
import { t as g } from "./image-up-
|
|
8
|
-
import { t as _ } from "./upload-
|
|
9
|
-
import { t as v } from "./x-
|
|
5
|
+
import { t as h } from "./createLucideIcon-FSF4peHQ.js";
|
|
6
|
+
import { t as ce } from "./circle-alert-Bhzm-fNA.js";
|
|
7
|
+
import { t as g } from "./image-up-CDEgJqwA.js";
|
|
8
|
+
import { t as _ } from "./upload-BKg6hDRW.js";
|
|
9
|
+
import { t as v } from "./x-Ctg_250T.js";
|
|
10
10
|
import { t as le } from "./LoadingTrack-KIcREPlS.js";
|
|
11
11
|
import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { N as g, m as _ } from "./keys-BbDgCU6K.js";
|
|
3
3
|
import { t as v } from "./useI18n-eR1yVW0v.js";
|
|
4
|
-
import { t as y } from "./createLucideIcon-
|
|
5
|
-
import { t as b } from "./circle-alert-
|
|
6
|
-
import { t as x } from "./info-
|
|
7
|
-
import { t as S } from "./list-checks-
|
|
8
|
-
import { t as C } from "./triangle-alert-
|
|
4
|
+
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
|
+
import { t as b } from "./circle-alert-Bhzm-fNA.js";
|
|
6
|
+
import { t as x } from "./info-BNP8yGsK.js";
|
|
7
|
+
import { t as S } from "./list-checks-jepi4iYr.js";
|
|
8
|
+
import { t as C } from "./triangle-alert-B2g0ALvq.js";
|
|
9
9
|
var w = y("arrow-right", [["path", {
|
|
10
10
|
d: "M5 12h14",
|
|
11
11
|
key: "1ays0h"
|
|
@@ -1202,11 +1202,13 @@ function kt(e, t) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function b(e) {
|
|
1204
1204
|
if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
1205
|
-
r.style.position = "
|
|
1206
|
-
let t = r.
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1205
|
+
r.style.position = "absolute", r.style.zIndex = "9999";
|
|
1206
|
+
let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
|
|
1207
|
+
r.style.left = `${e.left - i}px`, r.style.top = `${e.bottom - n}px`;
|
|
1208
|
+
let a = r.offsetHeight;
|
|
1209
|
+
if (a !== 0 && window.innerHeight - e.bottom < a) {
|
|
1210
|
+
let t = Math.max(0, e.top - a);
|
|
1211
|
+
r.style.top = `${t - n}px`;
|
|
1210
1212
|
}
|
|
1211
1213
|
}
|
|
1212
1214
|
function x(e, t) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
4
4
|
import { L as v, j as ie, m as ae } from "./keys-BbDgCU6K.js";
|
|
5
5
|
import { t as oe } from "./useI18n-eR1yVW0v.js";
|
|
6
|
-
import { n as se, r as y, t as b } from "./blockTypeIcons-
|
|
7
|
-
import { t as ce } from "./trash-2-
|
|
8
|
-
import { t as le } from "./x-
|
|
6
|
+
import { n as se, r as y, t as b } from "./blockTypeIcons-BVIEw0XJ.js";
|
|
7
|
+
import { t as ce } from "./trash-2-CRBDolnR.js";
|
|
8
|
+
import { t as le } from "./x-Ctg_250T.js";
|
|
9
9
|
import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
10
|
+
import { t as de } from "./TplModal-BXnx3sLr.js";
|
|
11
11
|
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var fe = {
|
|
13
13
|
role: "dialog",
|
|
@@ -46,7 +46,7 @@ var fe = {
|
|
|
46
46
|
props: { visible: { type: Boolean } },
|
|
47
47
|
emits: ["close", "insert"],
|
|
48
48
|
setup(c, { emit: B }) {
|
|
49
|
-
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-
|
|
49
|
+
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-CJC9kyZN.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
|
|
50
50
|
let e = U.modules.value;
|
|
51
51
|
if (!G.value) return e;
|
|
52
52
|
let t = G.value.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-
|
|
2
|
+
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-DnOG2a_b.js";
|
|
3
3
|
import { o as D } from "./keys-BbDgCU6K.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__ */ a({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { h, m as g, p as _ } from "./ColorPicker-
|
|
2
|
+
import { h, m as g, p as _ } from "./ColorPicker-CppJgX_T.js";
|
|
3
3
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = [
|
|
5
5
|
"aria-checked",
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as S, E as C, S as w, x as T } from "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { I as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as ie, i as ae, n as
|
|
9
|
-
import { n as se, t as ce } from "./scan-line-
|
|
10
|
-
import { t as le } from "./loader-circle-
|
|
11
|
-
import { n as ue, r as de, t as fe } from "./text-align-start-
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
|
|
15
|
-
var L = j("list-ordered", [
|
|
3
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-DnOG2a_b.js";
|
|
4
|
+
import { i as E, n as D } from "./usePopoverPosition-B3Byo68F.js";
|
|
5
|
+
import { I as O, L as k, P as A, g as ee, m as te, w as ne, x as re } from "./keys-BbDgCU6K.js";
|
|
6
|
+
import { t as j } from "./useI18n-eR1yVW0v.js";
|
|
7
|
+
import { t as M } from "./createLucideIcon-FSF4peHQ.js";
|
|
8
|
+
import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DBaCrvH0.js";
|
|
9
|
+
import { n as se, t as ce } from "./scan-line-IAMjPtRw.js";
|
|
10
|
+
import { t as le } from "./loader-circle-BT38qSm3.js";
|
|
11
|
+
import { n as ue, r as de, t as fe } from "./text-align-start-BwsA6QzC.js";
|
|
12
|
+
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-CppJgX_T.js";
|
|
14
|
+
var L = M("list-ordered", [
|
|
16
15
|
["path", {
|
|
17
16
|
d: "M11 5h10",
|
|
18
17
|
key: "1cz7ny"
|
|
@@ -37,7 +36,7 @@ var L = j("list-ordered", [
|
|
|
37
36
|
d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
|
|
38
37
|
key: "xtkcd5"
|
|
39
38
|
}]
|
|
40
|
-
]), _e =
|
|
39
|
+
]), _e = M("list", [
|
|
41
40
|
["path", {
|
|
42
41
|
d: "M3 5h.01",
|
|
43
42
|
key: "18ugdj"
|
|
@@ -62,7 +61,7 @@ var L = j("list-ordered", [
|
|
|
62
61
|
d: "M8 19h13",
|
|
63
62
|
key: "m83p4d"
|
|
64
63
|
}]
|
|
65
|
-
]), ve =
|
|
64
|
+
]), ve = M("remove-formatting", [
|
|
66
65
|
["path", {
|
|
67
66
|
d: "M4 7V4h16v3",
|
|
68
67
|
key: "9msm58"
|
|
@@ -83,7 +82,7 @@ var L = j("list-ordered", [
|
|
|
83
82
|
d: "m20 15-5 5",
|
|
84
83
|
key: "11p7ol"
|
|
85
84
|
}]
|
|
86
|
-
]), R =
|
|
85
|
+
]), R = M("smile", [
|
|
87
86
|
["circle", {
|
|
88
87
|
cx: "12",
|
|
89
88
|
cy: "12",
|
|
@@ -108,20 +107,7 @@ var L = j("list-ordered", [
|
|
|
108
107
|
y2: "9",
|
|
109
108
|
key: "1p4y9e"
|
|
110
109
|
}]
|
|
111
|
-
]), ye =
|
|
112
|
-
["path", {
|
|
113
|
-
d: "m4 5 8 8",
|
|
114
|
-
key: "1eunvl"
|
|
115
|
-
}],
|
|
116
|
-
["path", {
|
|
117
|
-
d: "m12 5-8 8",
|
|
118
|
-
key: "1ah0jp"
|
|
119
|
-
}],
|
|
120
|
-
["path", {
|
|
121
|
-
d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
|
|
122
|
-
key: "e8ta8j"
|
|
123
|
-
}]
|
|
124
|
-
]), be = j("strikethrough", [
|
|
110
|
+
]), ye = M("strikethrough", [
|
|
125
111
|
["path", {
|
|
126
112
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
127
113
|
key: "43sutm"
|
|
@@ -137,7 +123,20 @@ var L = j("list-ordered", [
|
|
|
137
123
|
y2: "12",
|
|
138
124
|
key: "1e0a9i"
|
|
139
125
|
}]
|
|
140
|
-
]),
|
|
126
|
+
]), be = M("subscript", [
|
|
127
|
+
["path", {
|
|
128
|
+
d: "m4 5 8 8",
|
|
129
|
+
key: "1eunvl"
|
|
130
|
+
}],
|
|
131
|
+
["path", {
|
|
132
|
+
d: "m12 5-8 8",
|
|
133
|
+
key: "1ah0jp"
|
|
134
|
+
}],
|
|
135
|
+
["path", {
|
|
136
|
+
d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
|
|
137
|
+
key: "e8ta8j"
|
|
138
|
+
}]
|
|
139
|
+
]), xe = M("superscript", [
|
|
141
140
|
["path", {
|
|
142
141
|
d: "m4 19 8-8",
|
|
143
142
|
key: "hr47gm"
|
|
@@ -150,7 +149,7 @@ var L = j("list-ordered", [
|
|
|
150
149
|
d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
|
|
151
150
|
key: "1dfcux"
|
|
152
151
|
}]
|
|
153
|
-
]), Se =
|
|
152
|
+
]), Se = M("underline", [["path", {
|
|
154
153
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
155
154
|
key: "9kb039"
|
|
156
155
|
}], ["line", {
|
|
@@ -167,7 +166,7 @@ var L = j("list-ordered", [
|
|
|
167
166
|
__name: "EmojiPickerDropdown",
|
|
168
167
|
emits: ["insert"],
|
|
169
168
|
setup(t, { emit: r }) {
|
|
170
|
-
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } =
|
|
169
|
+
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } = j(), T = s(null), D = s(null);
|
|
171
170
|
S(T, _(() => f.value)), E(D, () => {
|
|
172
171
|
f.value && m();
|
|
173
172
|
});
|
|
@@ -244,7 +243,7 @@ var L = j("list-ordered", [
|
|
|
244
243
|
function J(e, t) {
|
|
245
244
|
return i(), u("span", q);
|
|
246
245
|
}
|
|
247
|
-
var Y = /*#__PURE__*/
|
|
246
|
+
var Y = /*#__PURE__*/ F(K, [["render", J]]), X = [
|
|
248
247
|
"value",
|
|
249
248
|
"aria-label",
|
|
250
249
|
"title"
|
|
@@ -306,14 +305,14 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
306
305
|
"add-logic-tag"
|
|
307
306
|
],
|
|
308
307
|
setup(e, { emit: n }) {
|
|
309
|
-
let r = e, o = n, s = y(
|
|
310
|
-
function
|
|
308
|
+
let r = e, o = n, s = y(A, null), c = y(O, null), b = k(ee, "ParagraphToolbar"), x = D(), S = y(ne, null), C = y(re, null), w = y(te, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
|
|
309
|
+
function N(e) {
|
|
311
310
|
r.editor?.chain().focus().insertContent(e).run();
|
|
312
311
|
}
|
|
313
|
-
function
|
|
312
|
+
function P(e) {
|
|
314
313
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
315
314
|
}
|
|
316
|
-
function
|
|
315
|
+
function F(e) {
|
|
317
316
|
let t = r.editor?.chain().focus();
|
|
318
317
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
319
318
|
}
|
|
@@ -333,10 +332,10 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
333
332
|
}
|
|
334
333
|
function H() {
|
|
335
334
|
let e = w?.content.value.settings;
|
|
336
|
-
return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(
|
|
335
|
+
return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(P("color"), e?.textColor);
|
|
337
336
|
}
|
|
338
337
|
function U() {
|
|
339
|
-
return z() ? B() :
|
|
338
|
+
return z() ? B() : P("color");
|
|
340
339
|
}
|
|
341
340
|
function W() {
|
|
342
341
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
@@ -363,7 +362,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
363
362
|
"data-tpl-theme": h(c),
|
|
364
363
|
role: "toolbar",
|
|
365
364
|
"aria-label": h(E).paragraphEditor.toolbar,
|
|
366
|
-
class: "tpl tpl-text-toolbar tpl:
|
|
365
|
+
class: "tpl tpl-text-toolbar tpl:absolute tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
367
366
|
style: t({
|
|
368
367
|
...h(s),
|
|
369
368
|
top: `${e.toolbarPosition.top}px`,
|
|
@@ -373,12 +372,12 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
373
372
|
})
|
|
374
373
|
}, [!e.isLoading && e.editor ? (i(), u(g, { key: 0 }, [l("div", De, [
|
|
375
374
|
d(Z, {
|
|
376
|
-
"model-value":
|
|
377
|
-
options: h(
|
|
375
|
+
"model-value": P("fontFamily"),
|
|
376
|
+
options: h(M),
|
|
378
377
|
label: h(E).paragraphEditor.fontFamily,
|
|
379
378
|
placeholder: h(E).paragraphEditor.defaultFont,
|
|
380
379
|
"width-class": "tpl:w-32",
|
|
381
|
-
"onUpdate:modelValue":
|
|
380
|
+
"onUpdate:modelValue": F
|
|
382
381
|
}, null, 8, [
|
|
383
382
|
"model-value",
|
|
384
383
|
"options",
|
|
@@ -386,7 +385,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
386
385
|
"placeholder"
|
|
387
386
|
]),
|
|
388
387
|
d(Z, {
|
|
389
|
-
"model-value":
|
|
388
|
+
"model-value": P("fontSize"),
|
|
390
389
|
options: h(me),
|
|
391
390
|
label: h(E).paragraphEditor.fontSize,
|
|
392
391
|
placeholder: h(E).paragraphEditor.defaultSize,
|
|
@@ -458,7 +457,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
458
457
|
"active"
|
|
459
458
|
]),
|
|
460
459
|
d(G, {
|
|
461
|
-
icon: h(
|
|
460
|
+
icon: h(ye),
|
|
462
461
|
label: h(E).paragraphEditor.strikethrough,
|
|
463
462
|
active: e.editor.isActive("strike"),
|
|
464
463
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
@@ -469,7 +468,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
469
468
|
]),
|
|
470
469
|
d(Y),
|
|
471
470
|
d(G, {
|
|
472
|
-
icon: h(
|
|
471
|
+
icon: h(be),
|
|
473
472
|
label: h(E).paragraphEditor.subscript,
|
|
474
473
|
active: e.editor.isActive("subscript"),
|
|
475
474
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
@@ -532,7 +531,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
532
531
|
"active"
|
|
533
532
|
]),
|
|
534
533
|
d(G, {
|
|
535
|
-
icon: h(
|
|
534
|
+
icon: h(de),
|
|
536
535
|
label: h(E).paragraphEditor.alignCenter,
|
|
537
536
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
538
537
|
onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
@@ -542,7 +541,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
542
541
|
"active"
|
|
543
542
|
]),
|
|
544
543
|
d(G, {
|
|
545
|
-
icon: h(
|
|
544
|
+
icon: h(ue),
|
|
546
545
|
label: h(E).paragraphEditor.alignRight,
|
|
547
546
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
548
547
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
@@ -565,7 +564,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
565
564
|
"label"
|
|
566
565
|
]),
|
|
567
566
|
d(Z, {
|
|
568
|
-
"model-value":
|
|
567
|
+
"model-value": P("letterSpacing"),
|
|
569
568
|
options: h(ge),
|
|
570
569
|
label: h(E).paragraphEditor.letterSpacing,
|
|
571
570
|
placeholder: "LS",
|
|
@@ -583,7 +582,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
583
582
|
onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
584
583
|
}, null, 8, ["icon", "label"]),
|
|
585
584
|
d(Y),
|
|
586
|
-
d(Ce, { onInsert:
|
|
585
|
+
d(Ce, { onInsert: N }),
|
|
587
586
|
e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Y), l("button", {
|
|
588
587
|
type: "button",
|
|
589
588
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
@@ -619,7 +618,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
619
618
|
},
|
|
620
619
|
emits: ["done"],
|
|
621
620
|
setup(e, { emit: t }) {
|
|
622
|
-
let n = e, r = t, a =
|
|
621
|
+
let n = e, r = t, a = D(), { editor: s, EditorContent: c, isLoading: l, initError: f, retry: p, showLinkDialog: m, linkUrl: g, linkColor: _, linkDialogRef: v, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: S, removeLink: C, closeLinkDialog: E, handleLinkKeydown: O, handleAddMergeTag: k, handleAddLogicTag: A } = T({
|
|
623
622
|
blockId: () => n.block.id,
|
|
624
623
|
blockContent: () => n.block.content,
|
|
625
624
|
onDone: () => r("done"),
|
|
@@ -637,7 +636,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
637
636
|
import("./dist-BXR1aBJV.js"),
|
|
638
637
|
import("./dist-BE9m_i60.js"),
|
|
639
638
|
import("./dist-BPPeDw62.js"),
|
|
640
|
-
import("./extensions-
|
|
639
|
+
import("./extensions-Cjd-VAII.js")
|
|
641
640
|
]);
|
|
642
641
|
return {
|
|
643
642
|
TiptapEditor: o,
|
|
@@ -692,8 +691,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
692
691
|
"can-request-merge-tag": h(y),
|
|
693
692
|
"can-insert-logic-tag": h(b),
|
|
694
693
|
onOpenLinkDialog: h(x),
|
|
695
|
-
onAddMergeTag: h(
|
|
696
|
-
onAddLogicTag: h(
|
|
694
|
+
onAddMergeTag: h(k),
|
|
695
|
+
onAddLogicTag: h(A)
|
|
697
696
|
}, null, 8, [
|
|
698
697
|
"editor",
|
|
699
698
|
"toolbar-position",
|
|
@@ -704,7 +703,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
704
703
|
"onAddMergeTag",
|
|
705
704
|
"onAddLogicTag"
|
|
706
705
|
]),
|
|
707
|
-
d(
|
|
706
|
+
d(P, {
|
|
708
707
|
editor: h(s),
|
|
709
708
|
"editor-content": h(c),
|
|
710
709
|
"is-loading": h(l),
|
|
@@ -717,7 +716,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
717
716
|
"init-error",
|
|
718
717
|
"onRetry"
|
|
719
718
|
]),
|
|
720
|
-
d(
|
|
719
|
+
d(N, {
|
|
721
720
|
visible: h(m),
|
|
722
721
|
"is-editing-link": h(s)?.isActive("link") ?? !1,
|
|
723
722
|
"dialog-ref": h(v),
|
|
@@ -729,7 +728,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
729
728
|
onClose: h(E),
|
|
730
729
|
onInsert: h(S),
|
|
731
730
|
onRemove: h(C),
|
|
732
|
-
onKeydown: h(
|
|
731
|
+
onKeydown: h(O)
|
|
733
732
|
}, null, 8, [
|
|
734
733
|
"visible",
|
|
735
734
|
"is-editing-link",
|