@templatical/editor 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/CloudEditor-DptuSf7A.js +1234 -0
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/TitleEditor-D4t_gZZJ.js +193 -0
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
- package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
- package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
- package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
- package/dist/keys-Cv8-8GsD.js +10 -0
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/scan-line-DgijVq9y.js +31 -0
- package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +155 -152
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
- package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
- package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
- package/package.json +27 -27
- package/dist/CloudEditor-DaEfipBn.js +0 -1230
- package/dist/CountdownBlock-DO9fziwf.js +0 -92
- package/dist/CountdownToolbar-BeII06yJ.js +0 -210
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
- package/dist/TitleEditor-DbNOcvhR.js +0 -177
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
- package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
- package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/createLucideIcon-CmPAC-gt.js +0 -43
- package/dist/dist-BNEdeWub.js +0 -5
- package/dist/dist-Cgry6fNv.js +0 -382
- package/dist/dist-u0iIJH3V.js +0 -5
- package/dist/extensions-XPlNAKIL.js +0 -1720
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/styles-D0RCAWhB.js +0 -3647
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
1
|
+
import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, u as m, x as h, z as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { a as _, c as v } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import { I as y, P as b } from "./keys-Cv8-8GsD.js";
|
|
4
|
+
import { t as x } from "./useI18n-C-TDeJBt.js";
|
|
5
|
+
import { t as S } from "./createLucideIcon-Dx-EjR9r.js";
|
|
6
|
+
import { t as C } from "./x-CQSvXnGR.js";
|
|
7
|
+
import { t as w } from "./usePopoverRoot-DKUDnr55.js";
|
|
7
8
|
var T = S("bold", [["path", {
|
|
8
9
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
9
10
|
key: "mg9rjx"
|
|
@@ -41,9 +42,9 @@ var T = S("bold", [["path", {
|
|
|
41
42
|
}, j = ["aria-label"], M = { class: "tpl:p-5" }, N = { class: "tpl:mb-4 tpl:last:mb-0" }, P = {
|
|
42
43
|
for: "tpl-link-dialog-url",
|
|
43
44
|
class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
|
|
44
|
-
}, F = ["placeholder"], I = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, L = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, R = /* @__PURE__ */
|
|
45
|
+
}, F = ["placeholder"], I = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, L = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, R = /* @__PURE__ */ o({
|
|
45
46
|
__name: "RichTextLinkDialog",
|
|
46
|
-
props: /*@__PURE__*/
|
|
47
|
+
props: /*@__PURE__*/ e({
|
|
47
48
|
visible: { type: Boolean },
|
|
48
49
|
isEditingLink: { type: Boolean }
|
|
49
50
|
}, {
|
|
@@ -52,63 +53,63 @@ var T = S("bold", [["path", {
|
|
|
52
53
|
dialogRef: { required: !0 },
|
|
53
54
|
dialogRefModifiers: {}
|
|
54
55
|
}),
|
|
55
|
-
emits: /*@__PURE__*/
|
|
56
|
+
emits: /*@__PURE__*/ e([
|
|
56
57
|
"close",
|
|
57
58
|
"insert",
|
|
58
59
|
"remove",
|
|
59
60
|
"keydown"
|
|
60
61
|
], ["update:linkUrl", "update:dialogRef"]),
|
|
61
|
-
setup(
|
|
62
|
-
let
|
|
63
|
-
return (
|
|
62
|
+
setup(e, { emit: n }) {
|
|
63
|
+
let o = a(e, "linkUrl"), f = a(e, "dialogRef"), S = n, T = h(b, null), E = h(y, null), D = w(), { t: R } = x();
|
|
64
|
+
return (n, a) => p(D) ? (r(), d(u, {
|
|
64
65
|
key: 0,
|
|
65
|
-
to:
|
|
66
|
-
}, [
|
|
66
|
+
to: p(D)
|
|
67
|
+
}, [e.visible ? (r(), c("div", {
|
|
67
68
|
key: 0,
|
|
68
|
-
"data-tpl-theme":
|
|
69
|
+
"data-tpl-theme": p(E),
|
|
69
70
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
70
|
-
style:
|
|
71
|
-
onClick:
|
|
72
|
-
}, [
|
|
73
|
-
ref: (e) =>
|
|
71
|
+
style: t(p(T)),
|
|
72
|
+
onClick: a[6] ||= v((e) => S("close"), ["self"])
|
|
73
|
+
}, [s("div", {
|
|
74
|
+
ref: (e) => f.value = e,
|
|
74
75
|
role: "dialog",
|
|
75
76
|
"aria-modal": "true",
|
|
76
77
|
"aria-labelledby": "tpl-link-dialog-title",
|
|
77
78
|
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-lg"
|
|
78
79
|
}, [
|
|
79
|
-
|
|
80
|
+
s("div", k, [s("h4", A, i(e.isEditingLink ? p(R).linkDialog.editLink : p(R).linkDialog.insertLink), 1), s("button", {
|
|
80
81
|
type: "button",
|
|
81
|
-
"aria-label":
|
|
82
|
+
"aria-label": p(R).linkDialog.cancel,
|
|
82
83
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
83
|
-
onClick:
|
|
84
|
-
}, [
|
|
84
|
+
onClick: a[0] ||= (e) => S("close")
|
|
85
|
+
}, [l(p(C), {
|
|
85
86
|
size: 16,
|
|
86
87
|
"stroke-width": 2
|
|
87
88
|
})], 8, j)]),
|
|
88
|
-
|
|
89
|
+
s("div", M, [s("div", N, [s("label", P, i(p(R).linkDialog.urlLabel), 1), g(s("input", {
|
|
89
90
|
id: "tpl-link-dialog-url",
|
|
90
|
-
"onUpdate:modelValue":
|
|
91
|
+
"onUpdate:modelValue": a[1] ||= (e) => o.value = e,
|
|
91
92
|
type: "url",
|
|
92
93
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
|
|
93
|
-
placeholder:
|
|
94
|
+
placeholder: p(R).linkDialog.urlPlaceholder,
|
|
94
95
|
autofocus: "",
|
|
95
|
-
onKeydown:
|
|
96
|
-
}, null, 40, F), [[
|
|
97
|
-
|
|
96
|
+
onKeydown: a[2] ||= (e) => S("keydown", e)
|
|
97
|
+
}, null, 40, F), [[_, o.value]])])]),
|
|
98
|
+
s("div", I, [e.isEditingLink ? (r(), c("button", {
|
|
98
99
|
key: 0,
|
|
99
100
|
type: "button",
|
|
100
101
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
101
|
-
onClick:
|
|
102
|
-
},
|
|
102
|
+
onClick: a[3] ||= (e) => S("remove")
|
|
103
|
+
}, i(p(R).linkDialog.removeLink), 1)) : m("", !0), s("div", L, [s("button", {
|
|
103
104
|
type: "button",
|
|
104
105
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
105
|
-
onClick:
|
|
106
|
-
},
|
|
106
|
+
onClick: a[4] ||= (e) => S("close")
|
|
107
|
+
}, i(p(R).linkDialog.cancel), 1), s("button", {
|
|
107
108
|
type: "button",
|
|
108
109
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-bg)]",
|
|
109
|
-
onClick:
|
|
110
|
-
},
|
|
111
|
-
], 512)], 12, O)) :
|
|
110
|
+
onClick: a[5] ||= (e) => S("insert")
|
|
111
|
+
}, i(e.isEditingLink ? p(R).linkDialog.updateLink : p(R).linkDialog.insertLink), 1)])])
|
|
112
|
+
], 512)], 12, O)) : m("", !0)], 8, ["to"])) : m("", !0);
|
|
112
113
|
}
|
|
113
114
|
}), z = {
|
|
114
115
|
key: 0,
|
|
@@ -116,7 +117,7 @@ var T = S("bold", [["path", {
|
|
|
116
117
|
}, B = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, V = {
|
|
117
118
|
key: 1,
|
|
118
119
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
|
|
119
|
-
}, H = /* @__PURE__ */
|
|
120
|
+
}, H = /* @__PURE__ */ o({
|
|
120
121
|
__name: "RichTextEditorContent",
|
|
121
122
|
props: {
|
|
122
123
|
editor: {},
|
|
@@ -125,16 +126,16 @@ var T = S("bold", [["path", {
|
|
|
125
126
|
initError: {}
|
|
126
127
|
},
|
|
127
128
|
emits: ["retry"],
|
|
128
|
-
setup(
|
|
129
|
-
let
|
|
130
|
-
return (
|
|
129
|
+
setup(e, { emit: t }) {
|
|
130
|
+
let a = t, { t: o } = x();
|
|
131
|
+
return (t, l) => e.isLoading ? (r(), c("div", z, [s("div", B, i(p(o).errors.editorLoading), 1)])) : e.initError ? (r(), c("div", V, [f(i(p(o).errors.editorLoadFailed) + " ", 1), s("button", {
|
|
131
132
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
132
|
-
onClick:
|
|
133
|
-
},
|
|
133
|
+
onClick: l[0] ||= (e) => a("retry")
|
|
134
|
+
}, i(p(o).errors.retry), 1)])) : e.editorContent && e.editor ? (r(), d(n(e.editorContent), {
|
|
134
135
|
key: 2,
|
|
135
|
-
editor:
|
|
136
|
+
editor: e.editor,
|
|
136
137
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
137
|
-
}, null, 8, ["editor"])) :
|
|
138
|
+
}, null, 8, ["editor"])) : m("", !0);
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
141
|
//#endregion
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { a as v } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import "./useEditorCore-vcWLdnjN.js";
|
|
4
|
+
import { L as y, j as b, m as x } from "./keys-Cv8-8GsD.js";
|
|
5
|
+
import { t as S } from "./useI18n-C-TDeJBt.js";
|
|
6
|
+
import { t as te } from "./loader-circle-BLmicnPG.js";
|
|
7
|
+
import { n as ne } from "./useCloudI18n-AKCy98qD.js";
|
|
8
|
+
import { t as re } from "./TplModal-Br2VG6cn.js";
|
|
8
9
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var C = ["aria-busy"], w = {
|
|
10
11
|
id: "tpl-save-module-title",
|
|
11
12
|
class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
12
|
-
},
|
|
13
|
+
}, T = { class: "tpl:mb-3" }, E = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, D = ["placeholder", "disabled"], O = { class: "tpl:mb-3" }, k = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, A = { class: "tpl:max-h-40 tpl:space-y-1 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:p-2 tpl:border-[var(--tpl-border)]" }, j = [
|
|
13
14
|
"checked",
|
|
14
15
|
"disabled",
|
|
15
16
|
"onChange"
|
|
16
|
-
],
|
|
17
|
+
], M = {
|
|
17
18
|
key: 0,
|
|
18
19
|
role: "alert",
|
|
19
20
|
class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
20
|
-
},
|
|
21
|
+
}, N = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, P = ["disabled"], F = ["disabled"], I = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
23
|
-
},
|
|
24
|
+
}, L = { key: 1 }, R = /* @__PURE__ */ c({
|
|
24
25
|
__name: "SaveModuleDialog",
|
|
25
26
|
props: {
|
|
26
27
|
visible: { type: Boolean },
|
|
@@ -28,19 +29,19 @@ var w = ["aria-busy"], T = {
|
|
|
28
29
|
},
|
|
29
30
|
emits: ["close", "saved"],
|
|
30
31
|
setup(c, { emit: R }) {
|
|
31
|
-
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U =
|
|
32
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
|
|
32
33
|
function X(e, t) {
|
|
33
34
|
let n = e.type;
|
|
34
35
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
r(() => z.visible, (e) => {
|
|
37
38
|
e && (G.value = "", J.value = null, K.value = new Set(z.preSelectedBlockId ? [z.preSelectedBlockId] : []));
|
|
38
39
|
});
|
|
39
40
|
function ie(e) {
|
|
40
41
|
let t = new Set(K.value);
|
|
41
42
|
t.has(e) ? t.delete(e) : t.add(e), K.value = t;
|
|
42
43
|
}
|
|
43
|
-
let Z =
|
|
44
|
+
let Z = g(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
|
|
44
45
|
async function Q() {
|
|
45
46
|
if (Z.value) {
|
|
46
47
|
q.value = !0, J.value = null;
|
|
@@ -60,12 +61,12 @@ var w = ["aria-busy"], T = {
|
|
|
60
61
|
function ae(e) {
|
|
61
62
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
|
|
62
63
|
}
|
|
63
|
-
return (
|
|
64
|
+
return (r, s) => (i(), f(re, {
|
|
64
65
|
visible: c.visible,
|
|
65
66
|
onClose: $,
|
|
66
67
|
onKeydown: ae
|
|
67
68
|
}, {
|
|
68
|
-
default:
|
|
69
|
+
default: o(() => [l("div", {
|
|
69
70
|
role: "dialog",
|
|
70
71
|
"aria-modal": "true",
|
|
71
72
|
"aria-busy": q.value,
|
|
@@ -76,45 +77,45 @@ var w = ["aria-busy"], T = {
|
|
|
76
77
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
77
78
|
}
|
|
78
79
|
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"onUpdate:modelValue":
|
|
80
|
+
l("h3", w, a(m(H).modules.saveAsModule), 1),
|
|
81
|
+
l("div", T, [l("label", E, a(m(H).modules.moduleName), 1), _(l("input", {
|
|
82
|
+
"onUpdate:modelValue": s[0] ||= (e) => G.value = e,
|
|
82
83
|
type: "text",
|
|
83
|
-
placeholder:
|
|
84
|
+
placeholder: m(H).modules.moduleNamePlaceholder,
|
|
84
85
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
85
86
|
disabled: q.value
|
|
86
|
-
}, null, 8,
|
|
87
|
-
|
|
88
|
-
key:
|
|
87
|
+
}, null, 8, D), [[v, G.value]])]),
|
|
88
|
+
l("div", O, [l("label", k, a(m(H).modules.selectBlocks), 1), l("div", A, [(i(!0), u(h, null, e(Y.value, (e, n) => (i(), u("label", {
|
|
89
|
+
key: e.id,
|
|
89
90
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
|
|
90
|
-
style:
|
|
91
|
+
style: t({
|
|
91
92
|
color: "var(--tpl-text)",
|
|
92
|
-
backgroundColor: K.value.has(
|
|
93
|
+
backgroundColor: K.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
|
|
93
94
|
})
|
|
94
|
-
}, [
|
|
95
|
+
}, [l("input", {
|
|
95
96
|
type: "checkbox",
|
|
96
|
-
checked: K.value.has(
|
|
97
|
+
checked: K.value.has(e.id),
|
|
97
98
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
98
99
|
disabled: q.value,
|
|
99
|
-
onChange: (
|
|
100
|
-
}, null, 40,
|
|
101
|
-
J.value ? (
|
|
102
|
-
|
|
100
|
+
onChange: (t) => ie(e.id)
|
|
101
|
+
}, null, 40, j), p(" " + a(X(e, n)), 1)], 4))), 128))])]),
|
|
102
|
+
J.value ? (i(), u("p", M, a(J.value), 1)) : ee("", !0),
|
|
103
|
+
l("div", N, [l("button", {
|
|
103
104
|
type: "button",
|
|
104
|
-
class:
|
|
105
|
+
class: n(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": q.value }]),
|
|
105
106
|
disabled: q.value,
|
|
106
107
|
onClick: $
|
|
107
|
-
},
|
|
108
|
+
}, a(m(H).modules.cancel), 11, P), l("button", {
|
|
108
109
|
type: "button",
|
|
109
110
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
110
111
|
disabled: !Z.value,
|
|
111
112
|
onClick: Q
|
|
112
|
-
}, [q.value ? (
|
|
113
|
+
}, [q.value ? (i(), u("span", I, [d(m(te), {
|
|
113
114
|
class: "tpl:animate-spin",
|
|
114
115
|
size: 12,
|
|
115
116
|
"stroke-width": 2
|
|
116
|
-
}),
|
|
117
|
-
], 8,
|
|
117
|
+
}), p(" " + a(m(H).modules.saving), 1)])) : (i(), u("span", L, a(m(H).modules.save), 1))], 8, F)])
|
|
118
|
+
], 8, C)]),
|
|
118
119
|
_: 1
|
|
119
120
|
}, 8, ["visible"]));
|
|
120
121
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
1
|
+
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { c as h, t as g } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import "./useEditorCore-vcWLdnjN.js";
|
|
4
|
+
import { t as _ } from "./dist-BEWiuOMi.js";
|
|
5
|
+
import { t as v } from "./useI18n-C-TDeJBt.js";
|
|
6
|
+
import { t as y } from "./createLucideIcon-Dx-EjR9r.js";
|
|
7
|
+
import { t as b } from "./chevron-down-BKe__NOD.js";
|
|
8
|
+
import { t as x } from "./clock-BW4JuDCN.js";
|
|
9
|
+
import { t as S } from "./loader-circle-BLmicnPG.js";
|
|
10
|
+
import { n as C } from "./useCloudI18n-AKCy98qD.js";
|
|
10
11
|
import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
11
12
|
var T = y("chevron-left", [["path", {
|
|
12
13
|
d: "m15 18-6-6 6-6",
|
|
@@ -33,7 +34,7 @@ var T = y("chevron-left", [["path", {
|
|
|
33
34
|
}, P = ["disabled", "onClick"], F = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, L = {
|
|
34
35
|
key: 0,
|
|
35
36
|
class: "tpl:rounded tpl:px-1 tpl:py-0.5 tpl:text-[10px] tpl:font-normal tpl:bg-[var(--tpl-bg-active)] tpl:text-[var(--tpl-text-muted)]"
|
|
36
|
-
}, R = ["disabled", "title"], z = /* @__PURE__ */
|
|
37
|
+
}, R = ["disabled", "title"], z = /* @__PURE__ */ s({
|
|
37
38
|
__name: "SnapshotHistory",
|
|
38
39
|
props: {
|
|
39
40
|
snapshots: {},
|
|
@@ -41,12 +42,12 @@ var T = y("chevron-left", [["path", {
|
|
|
41
42
|
isRestoring: { type: Boolean }
|
|
42
43
|
},
|
|
43
44
|
emits: ["load", "navigate"],
|
|
44
|
-
setup(
|
|
45
|
-
let z =
|
|
46
|
-
|
|
45
|
+
setup(s, { emit: y }) {
|
|
46
|
+
let z = s, B = y, { format: V } = v(), { t: H } = C(), U = o(!1), W = o(null), G = o(-1);
|
|
47
|
+
n(() => z.snapshots.length, () => {
|
|
47
48
|
G.value = -1;
|
|
48
49
|
});
|
|
49
|
-
let K =
|
|
50
|
+
let K = p(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = p(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
|
|
50
51
|
function J() {
|
|
51
52
|
K.value && (G.value--, B("navigate", z.snapshots[G.value]));
|
|
52
53
|
}
|
|
@@ -71,7 +72,7 @@ var T = y("chevron-left", [["path", {
|
|
|
71
72
|
}
|
|
72
73
|
return _(W, () => {
|
|
73
74
|
U.value = !1;
|
|
74
|
-
}), (
|
|
75
|
+
}), (n, o) => (r(), l("div", {
|
|
75
76
|
ref_key: "dropdownRef",
|
|
76
77
|
ref: W,
|
|
77
78
|
class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5"
|
|
@@ -79,44 +80,44 @@ var T = y("chevron-left", [["path", {
|
|
|
79
80
|
c("button", {
|
|
80
81
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
81
82
|
disabled: !q.value,
|
|
82
|
-
title:
|
|
83
|
-
onClick:
|
|
84
|
-
}, [
|
|
83
|
+
title: d(H).snapshotHistory.olderSnapshot,
|
|
84
|
+
onClick: h(Y, ["stop"])
|
|
85
|
+
}, [u(d(T), {
|
|
85
86
|
size: 14,
|
|
86
87
|
"stroke-width": 2
|
|
87
88
|
})], 8, D),
|
|
88
89
|
c("button", {
|
|
89
90
|
class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
90
|
-
title:
|
|
91
|
-
onClick:
|
|
92
|
-
}, [
|
|
91
|
+
title: d(H).snapshotHistory.tooltip,
|
|
92
|
+
onClick: h(X, ["stop"])
|
|
93
|
+
}, [u(d(x), {
|
|
93
94
|
size: 16,
|
|
94
95
|
"stroke-width": 1.5
|
|
95
|
-
}),
|
|
96
|
-
class:
|
|
96
|
+
}), u(d(b), {
|
|
97
|
+
class: t(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
|
|
97
98
|
size: 10,
|
|
98
99
|
"stroke-width": 2
|
|
99
100
|
}, null, 8, ["class"])], 8, O),
|
|
100
|
-
|
|
101
|
-
default:
|
|
101
|
+
u(g, { name: "tpl-dropdown" }, {
|
|
102
|
+
default: a(() => [U.value ? (r(), l("div", k, [c("div", A, i(d(H).snapshotHistory.dropdownTitle), 1), s.isLoading ? (r(), l("div", j, [u(d(S), {
|
|
102
103
|
class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
|
|
103
104
|
size: 20,
|
|
104
105
|
"stroke-width": 2
|
|
105
|
-
})])) :
|
|
106
|
-
key:
|
|
106
|
+
})])) : s.snapshots.length === 0 ? (r(), l("div", M, i(d(H).snapshotHistory.noSnapshots), 1)) : (r(), l("div", N, [(r(!0), l(f, null, e(s.snapshots, (e) => (r(), l("button", {
|
|
107
|
+
key: e.id,
|
|
107
108
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
|
|
108
109
|
style: { "background-color": "transparent" },
|
|
109
|
-
disabled:
|
|
110
|
-
onClick: (
|
|
111
|
-
}, [c("div", F, [c("div", I, [c("span", null,
|
|
110
|
+
disabled: s.isRestoring,
|
|
111
|
+
onClick: (t) => Z(e.id)
|
|
112
|
+
}, [c("div", F, [c("div", I, [c("span", null, i(Q(e.created_at)), 1), e.is_autosave ? (r(), l("span", L, i(d(H).snapshotHistory.auto), 1)) : m("", !0)])])], 8, P))), 128))]))])) : m("", !0)]),
|
|
112
113
|
_: 1
|
|
113
114
|
}),
|
|
114
115
|
c("button", {
|
|
115
116
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
116
117
|
disabled: !K.value,
|
|
117
|
-
title:
|
|
118
|
-
onClick:
|
|
119
|
-
}, [
|
|
118
|
+
title: d(H).snapshotHistory.newerSnapshot,
|
|
119
|
+
onClick: h(J, ["stop"])
|
|
120
|
+
}, [u(d(E), {
|
|
120
121
|
size: 14,
|
|
121
122
|
"stroke-width": 2
|
|
122
123
|
})], 8, R)
|