@templatical/editor 0.14.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-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-QbD82crt.js} +20 -20
- package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DptuSf7A.js} +470 -468
- package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-D45rBj5C.js} +60 -59
- package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-1NaUJpZO.js} +247 -246
- package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-D4t_gZZJ.js} +44 -44
- package/dist/{TplModal-tjQ7OB0g.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-CXhCS5WV.js} +2 -2
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-3Slo_LGA.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-BxwEiiF3.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-DFIFWD9G.js} +89 -89
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-DFIFWD9G.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-BdeDoTcn.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.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-DCh88-rr.js → ModuleBrowserModal-Dz-I5zfj.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-BfinyuAN.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CDjEa08X.js} +6 -6
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-B3fG0vge.js} +22 -22
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-B3fG0vge.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-C6UIIVAM.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-BiZbLYF1.js} +10 -10
- package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js.map → TitleEditor-BiZbLYF1.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-BernVG06.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
- package/dist/cdn/chunks/draggable-kG-D5Xsm.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-CkTMVylx.js → features-Dpczf9Su.js} +884 -835
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-CuxnJiGQ.js} +26 -26
- package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-CuxnJiGQ.js.map} +1 -1
- 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-DMRIPx4g.js → media-library-CiYl_BO7.js} +33 -33
- package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-CNjGxBG0.js} +112 -112
- package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CFkg8h-K.js} +20 -20
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-pDy_imWG.js → src-DRpKu4Dy.js} +5 -5
- package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-B7wryV0l.js} +1484 -1344
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +35 -35
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
- package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
- package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
- package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-CgfjwvnG.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 +127 -126
- package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-vcWLdnjN.js} +1406 -1364
- package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
- package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
- package/package.json +26 -26
- package/dist/CountdownBlock-DtAokAVw.js +0 -92
- package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
- package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
- package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
- package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
- package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
- package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
- package/dist/createLucideIcon-Bad2kKE0.js +0 -43
- package/dist/dist-CADDCv0o.js +0 -5
- package/dist/dist-CGvz7vkq.js +0 -5
- package/dist/dist-DuCzdgDA.js +0 -382
- package/dist/extensions-J439b7y7.js +0 -1720
- package/dist/styles-BUwDOWd3.js +0 -4022
- package/dist/usePopoverRoot-B1sdY4es.js +0 -8
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@lucide/vue": "^1.
|
|
8
|
-
"@tiptap/core": "^3.27.
|
|
9
|
-
"@tiptap/extension-color": "^3.27.
|
|
10
|
-
"@tiptap/extension-font-family": "^3.27.
|
|
11
|
-
"@tiptap/extension-highlight": "^3.27.
|
|
12
|
-
"@tiptap/extension-link": "^3.27.
|
|
13
|
-
"@tiptap/extension-subscript": "^3.27.
|
|
14
|
-
"@tiptap/extension-superscript": "^3.27.
|
|
15
|
-
"@tiptap/extension-text-align": "^3.27.
|
|
16
|
-
"@tiptap/extension-text-style": "^3.27.
|
|
17
|
-
"@tiptap/extension-underline": "^3.27.
|
|
18
|
-
"@tiptap/starter-kit": "^3.27.
|
|
19
|
-
"@tiptap/suggestion": "^3.27.
|
|
20
|
-
"@tiptap/vue-3": "^3.27.
|
|
7
|
+
"@lucide/vue": "^1.24.0",
|
|
8
|
+
"@tiptap/core": "^3.27.3",
|
|
9
|
+
"@tiptap/extension-color": "^3.27.3",
|
|
10
|
+
"@tiptap/extension-font-family": "^3.27.3",
|
|
11
|
+
"@tiptap/extension-highlight": "^3.27.3",
|
|
12
|
+
"@tiptap/extension-link": "^3.27.3",
|
|
13
|
+
"@tiptap/extension-subscript": "^3.27.3",
|
|
14
|
+
"@tiptap/extension-superscript": "^3.27.3",
|
|
15
|
+
"@tiptap/extension-text-align": "^3.27.3",
|
|
16
|
+
"@tiptap/extension-text-style": "^3.27.3",
|
|
17
|
+
"@tiptap/extension-underline": "^3.27.3",
|
|
18
|
+
"@tiptap/starter-kit": "^3.27.3",
|
|
19
|
+
"@tiptap/suggestion": "^3.27.3",
|
|
20
|
+
"@tiptap/vue-3": "^3.27.3",
|
|
21
21
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
22
22
|
"@vue/test-utils": "^2.4.11",
|
|
23
23
|
"@vueuse/core": "^14.3.0",
|
|
24
|
-
"es-module-lexer": "^2.3.
|
|
24
|
+
"es-module-lexer": "^2.3.1",
|
|
25
25
|
"happy-dom": "^20.10.6",
|
|
26
|
-
"liquidjs": "^10.27.
|
|
26
|
+
"liquidjs": "^10.27.2",
|
|
27
27
|
"tailwindcss": "^4.3.2",
|
|
28
28
|
"typescript": "^6.0.3",
|
|
29
29
|
"vanilla-colorful": "^0.7.2",
|
|
30
|
-
"vite": "^8.1.
|
|
31
|
-
"vitest": "^4.1.
|
|
30
|
+
"vite": "^8.1.4",
|
|
31
|
+
"vitest": "^4.1.10",
|
|
32
32
|
"vue": "^3.5.39",
|
|
33
33
|
"vue-draggable-plus": "^0.6.1",
|
|
34
|
-
"vue-tsc": "^3.3.
|
|
35
|
-
"@templatical/core": "0.
|
|
36
|
-
"@templatical/quality": "0.
|
|
37
|
-
"@templatical/types": "0.
|
|
34
|
+
"vue-tsc": "^3.3.7",
|
|
35
|
+
"@templatical/core": "0.15.0",
|
|
36
|
+
"@templatical/quality": "0.15.0",
|
|
37
|
+
"@templatical/types": "0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"license": "SEE LICENSE IN LICENSE",
|
|
63
63
|
"module": "./dist/templatical-editor.js",
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@templatical/media-library": "0.
|
|
66
|
-
"@templatical/quality": "0.
|
|
67
|
-
"@templatical/renderer": "0.
|
|
65
|
+
"@templatical/media-library": "0.15.0",
|
|
66
|
+
"@templatical/quality": "0.15.0",
|
|
67
|
+
"@templatical/renderer": "0.15.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@templatical/renderer": {
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, M as n, X as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, rt as d, st as f } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
3
|
-
import { c as p } from "./dist-DuCzdgDA.js";
|
|
4
|
-
import { t as m } from "./useI18n-BWqM8i78.js";
|
|
5
|
-
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var h = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
9
|
-
}, g = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
12
|
-
}, _ = { class: "tpl:text-center" }, v = /*@__PURE__*/ i({
|
|
13
|
-
__name: "CountdownBlock",
|
|
14
|
-
props: {
|
|
15
|
-
block: {},
|
|
16
|
-
viewport: {}
|
|
17
|
-
},
|
|
18
|
-
setup(e) {
|
|
19
|
-
let i = e, { t: v } = m(), y = r(Date.now());
|
|
20
|
-
p(() => {
|
|
21
|
-
y.value = Date.now();
|
|
22
|
-
}, 1e3);
|
|
23
|
-
let b = a(() => {
|
|
24
|
-
if (!i.block.targetDate) return null;
|
|
25
|
-
let e = new Date(i.block.targetDate);
|
|
26
|
-
return isNaN(e.getTime()) ? null : e.getTime();
|
|
27
|
-
}), x = a(() => b.value ? y.value >= b.value : !1), S = a(() => {
|
|
28
|
-
if (!b.value || x.value) return {
|
|
29
|
-
days: 0,
|
|
30
|
-
hours: 0,
|
|
31
|
-
minutes: 0,
|
|
32
|
-
seconds: 0
|
|
33
|
-
};
|
|
34
|
-
let e = b.value - y.value, t = Math.floor(e / 1e3);
|
|
35
|
-
return {
|
|
36
|
-
days: Math.floor(t / 86400),
|
|
37
|
-
hours: Math.floor(t % 86400 / 3600),
|
|
38
|
-
minutes: Math.floor(t % 3600 / 60),
|
|
39
|
-
seconds: t % 60
|
|
40
|
-
};
|
|
41
|
-
}), C = a(() => {
|
|
42
|
-
let e = [];
|
|
43
|
-
return i.block.showDays && e.push({
|
|
44
|
-
value: String(S.value.days).padStart(2, "0"),
|
|
45
|
-
label: i.block.labelDays
|
|
46
|
-
}), i.block.showHours && e.push({
|
|
47
|
-
value: String(S.value.hours).padStart(2, "0"),
|
|
48
|
-
label: i.block.labelHours
|
|
49
|
-
}), i.block.showMinutes && e.push({
|
|
50
|
-
value: String(S.value.minutes).padStart(2, "0"),
|
|
51
|
-
label: i.block.labelMinutes
|
|
52
|
-
}), i.block.showSeconds && e.push({
|
|
53
|
-
value: String(S.value.seconds).padStart(2, "0"),
|
|
54
|
-
label: i.block.labelSeconds
|
|
55
|
-
}), e;
|
|
56
|
-
}), w = a(() => ({
|
|
57
|
-
backgroundColor: i.block.backgroundColor,
|
|
58
|
-
fontFamily: i.block.fontFamily || "inherit"
|
|
59
|
-
})), T = a(() => ({
|
|
60
|
-
fontSize: `${i.block.digitFontSize}px`,
|
|
61
|
-
fontWeight: "bold",
|
|
62
|
-
color: i.block.digitColor,
|
|
63
|
-
lineHeight: "1.2"
|
|
64
|
-
})), E = a(() => ({
|
|
65
|
-
fontSize: `${i.block.labelFontSize}px`,
|
|
66
|
-
color: i.block.labelColor,
|
|
67
|
-
marginTop: "4px"
|
|
68
|
-
})), D = a(() => ({
|
|
69
|
-
fontSize: `${i.block.digitFontSize}px`,
|
|
70
|
-
color: i.block.digitColor,
|
|
71
|
-
fontFamily: i.block.fontFamily || "inherit"
|
|
72
|
-
}));
|
|
73
|
-
return (r, i) => e.block.targetDate ? x.value && e.block.hideOnExpiry ? (t(), s("div", g, f(d(v).countdown.hidden), 1)) : x.value ? (t(), s("div", {
|
|
74
|
-
key: 2,
|
|
75
|
-
style: u(w.value),
|
|
76
|
-
class: "tpl:py-4 tpl:text-center"
|
|
77
|
-
}, [o("span", { style: u({
|
|
78
|
-
fontSize: `${e.block.digitFontSize}px`,
|
|
79
|
-
color: e.block.digitColor
|
|
80
|
-
}) }, f(e.block.expiredMessage), 5)], 4)) : (t(), s("div", {
|
|
81
|
-
key: 3,
|
|
82
|
-
style: u(w.value),
|
|
83
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
84
|
-
}, [(t(!0), s(c, null, n(C.value, (n, r) => (t(), s(c, { key: n.label }, [r > 0 ? (t(), s("span", {
|
|
85
|
-
key: 0,
|
|
86
|
-
style: u(D.value),
|
|
87
|
-
class: "tpl:self-start"
|
|
88
|
-
}, f(e.block.separator), 5)) : l("", !0), o("div", _, [o("div", { style: u(T.value) }, f(n.value), 5), o("div", { style: u(E.value) }, f(n.label), 5)])], 64))), 128))], 4)) : (t(), s("div", h, f(d(v).countdown.setDate), 1));
|
|
89
|
-
}
|
|
90
|
-
}), y = /* @__PURE__ */ e({ default: () => b }), b = v;
|
|
91
|
-
//#endregion
|
|
92
|
-
export { y as n, b as t };
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
-
import { t as m } from "./useI18n-BWqM8i78.js";
|
|
3
|
-
import { f as h } from "./styleConstants-lGobwiLH.js";
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-D2mW_DhT.js";
|
|
5
|
-
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ i({
|
|
7
|
-
__name: "CheckboxItem",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: Boolean },
|
|
10
|
-
label: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(t, { emit: r }) {
|
|
14
|
-
let i = r;
|
|
15
|
-
return (r, a) => (e(), s("label", b, [o("input", {
|
|
16
|
-
type: "checkbox",
|
|
17
|
-
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
18
|
-
checked: t.modelValue,
|
|
19
|
-
onChange: a[0] ||= (e) => i("update:modelValue", e.target.checked)
|
|
20
|
-
}, null, 40, x), n(" " + d(t.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 = [
|
|
23
|
-
"value",
|
|
24
|
-
"placeholder",
|
|
25
|
-
"onInput"
|
|
26
|
-
], P = ["value", "placeholder"], F = ["value"], I = /* @__PURE__ */ i({
|
|
27
|
-
__name: "CountdownToolbar",
|
|
28
|
-
props: {
|
|
29
|
-
block: {},
|
|
30
|
-
fontFamilies: {}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update"],
|
|
33
|
-
setup(n, { emit: i }) {
|
|
34
|
-
let b = i, { t: x } = m(), I = [
|
|
35
|
-
"UTC",
|
|
36
|
-
"America/New_York",
|
|
37
|
-
"America/Chicago",
|
|
38
|
-
"America/Denver",
|
|
39
|
-
"America/Los_Angeles",
|
|
40
|
-
"Europe/London",
|
|
41
|
-
"Europe/Berlin",
|
|
42
|
-
"Europe/Paris",
|
|
43
|
-
"Europe/Moscow",
|
|
44
|
-
"Asia/Dubai",
|
|
45
|
-
"Asia/Kolkata",
|
|
46
|
-
"Asia/Shanghai",
|
|
47
|
-
"Asia/Tokyo",
|
|
48
|
-
"Australia/Sydney",
|
|
49
|
-
"Pacific/Auckland"
|
|
50
|
-
], L = [
|
|
51
|
-
{
|
|
52
|
-
value: ":",
|
|
53
|
-
label: ":"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
value: "-",
|
|
57
|
-
label: "-"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
value: " ",
|
|
61
|
-
label: "␣"
|
|
62
|
-
}
|
|
63
|
-
], R = [
|
|
64
|
-
"Days",
|
|
65
|
-
"Hours",
|
|
66
|
-
"Minutes",
|
|
67
|
-
"Seconds"
|
|
68
|
-
], z = a(() => R.map((e) => ({
|
|
69
|
-
unit: e,
|
|
70
|
-
showKey: `show${e}`,
|
|
71
|
-
labelKey: `label${e}`,
|
|
72
|
-
translationKey: e.toLowerCase()
|
|
73
|
-
})));
|
|
74
|
-
function B(e, t) {
|
|
75
|
-
b("update", { [e]: t });
|
|
76
|
-
}
|
|
77
|
-
return (i, a) => (e(), s(c, null, [
|
|
78
|
-
f(_, { label: u(x).countdown.targetDate }, {
|
|
79
|
-
default: p(() => [o("input", {
|
|
80
|
-
type: "datetime-local",
|
|
81
|
-
class: r(u(h)),
|
|
82
|
-
value: n.block.targetDate,
|
|
83
|
-
onInput: a[0] ||= (e) => B("targetDate", e.target.value)
|
|
84
|
-
}, null, 42, C)]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["label"]),
|
|
87
|
-
f(_, { label: u(x).countdown.timezone }, {
|
|
88
|
-
default: p(() => [o("select", {
|
|
89
|
-
class: r(u(h)),
|
|
90
|
-
value: n.block.timezone,
|
|
91
|
-
onChange: a[1] ||= (e) => B("timezone", e.target.value)
|
|
92
|
-
}, [(e(), s(c, null, t(I, (e) => o("option", {
|
|
93
|
-
key: e,
|
|
94
|
-
value: e
|
|
95
|
-
}, d(e), 9, T)), 64))], 42, w)]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 8, ["label"]),
|
|
98
|
-
f(_, { label: u(x).countdown.display }, {
|
|
99
|
-
default: p(() => [o("div", E, [(e(!0), s(c, null, t(z.value, (t) => (e(), l(S, {
|
|
100
|
-
key: t.unit,
|
|
101
|
-
"model-value": n.block[t.showKey],
|
|
102
|
-
label: u(x).countdown[t.translationKey],
|
|
103
|
-
"onUpdate:modelValue": (e) => B(t.showKey, e)
|
|
104
|
-
}, null, 8, [
|
|
105
|
-
"model-value",
|
|
106
|
-
"label",
|
|
107
|
-
"onUpdate:modelValue"
|
|
108
|
-
]))), 128))])]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["label"]),
|
|
111
|
-
f(_, { label: u(x).countdown.separator }, {
|
|
112
|
-
default: p(() => [f(v, {
|
|
113
|
-
options: L,
|
|
114
|
-
"model-value": n.block.separator,
|
|
115
|
-
"onUpdate:modelValue": a[2] ||= (e) => B("separator", e)
|
|
116
|
-
}, null, 8, ["model-value"])]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["label"]),
|
|
119
|
-
f(_, { label: u(x).countdown.fontFamily }, {
|
|
120
|
-
default: p(() => [o("select", {
|
|
121
|
-
class: r(u(h)),
|
|
122
|
-
value: n.block.fontFamily || "",
|
|
123
|
-
onChange: a[3] ||= (e) => B("fontFamily", e.target.value || void 0)
|
|
124
|
-
}, [o("option", O, d(u(x).countdown.inheritFont), 1), (e(!0), s(c, null, t(n.fontFamilies, (t) => (e(), s("option", {
|
|
125
|
-
key: t.value,
|
|
126
|
-
value: t.value
|
|
127
|
-
}, d(t.label), 9, k))), 128))], 42, D)]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["label"]),
|
|
130
|
-
o("div", A, [f(_, { label: u(x).countdown.digitFontSize }, {
|
|
131
|
-
default: p(() => [f(y, {
|
|
132
|
-
"model-value": n.block.digitFontSize,
|
|
133
|
-
min: 12,
|
|
134
|
-
max: 72,
|
|
135
|
-
suffix: "px",
|
|
136
|
-
"onUpdate:modelValue": a[4] ||= (e) => B("digitFontSize", e)
|
|
137
|
-
}, null, 8, ["model-value"])]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["label"]), f(_, { label: u(x).countdown.labelFontSize }, {
|
|
140
|
-
default: p(() => [f(y, {
|
|
141
|
-
"model-value": n.block.labelFontSize,
|
|
142
|
-
min: 8,
|
|
143
|
-
max: 24,
|
|
144
|
-
suffix: "px",
|
|
145
|
-
"onUpdate:modelValue": a[5] ||= (e) => B("labelFontSize", e)
|
|
146
|
-
}, null, 8, ["model-value"])]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["label"])]),
|
|
149
|
-
o("div", j, [f(_, { label: u(x).countdown.digitColor }, {
|
|
150
|
-
default: p(() => [f(g, {
|
|
151
|
-
"model-value": n.block.digitColor,
|
|
152
|
-
"onUpdate:modelValue": a[6] ||= (e) => B("digitColor", e)
|
|
153
|
-
}, null, 8, ["model-value"])]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["label"]), f(_, { label: u(x).countdown.labelColor }, {
|
|
156
|
-
default: p(() => [f(g, {
|
|
157
|
-
"model-value": n.block.labelColor,
|
|
158
|
-
"onUpdate:modelValue": a[7] ||= (e) => B("labelColor", e)
|
|
159
|
-
}, null, 8, ["model-value"])]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["label"])]),
|
|
162
|
-
f(_, { label: u(x).countdown.background }, {
|
|
163
|
-
default: p(() => [f(g, {
|
|
164
|
-
"model-value": n.block.backgroundColor,
|
|
165
|
-
"onUpdate:modelValue": a[8] ||= (e) => B("backgroundColor", e)
|
|
166
|
-
}, null, 8, ["model-value"])]),
|
|
167
|
-
_: 1
|
|
168
|
-
}, 8, ["label"]),
|
|
169
|
-
f(_, { label: u(x).countdown.labels }, {
|
|
170
|
-
default: p(() => [o("div", M, [(e(!0), s(c, null, t(z.value, (t) => (e(), s("input", {
|
|
171
|
-
key: t.unit,
|
|
172
|
-
type: "text",
|
|
173
|
-
class: r(u(h)),
|
|
174
|
-
value: n.block[t.labelKey],
|
|
175
|
-
placeholder: u(x).countdown[t.translationKey],
|
|
176
|
-
onInput: (e) => B(t.labelKey, e.target.value)
|
|
177
|
-
}, null, 42, N))), 128))])]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["label"]),
|
|
180
|
-
f(_, { label: u(x).countdown.expiry }, {
|
|
181
|
-
default: p(() => [o("input", {
|
|
182
|
-
type: "text",
|
|
183
|
-
class: r(u(h)),
|
|
184
|
-
value: n.block.expiredMessage,
|
|
185
|
-
placeholder: u(x).countdown.expiredMessagePlaceholder,
|
|
186
|
-
onInput: a[9] ||= (e) => B("expiredMessage", e.target.value)
|
|
187
|
-
}, null, 42, P)]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["label"]),
|
|
190
|
-
f(_, { label: u(x).countdown.expiredImageUrl }, {
|
|
191
|
-
default: p(() => [o("input", {
|
|
192
|
-
type: "url",
|
|
193
|
-
class: r(u(h)),
|
|
194
|
-
value: n.block.expiredImageUrl,
|
|
195
|
-
placeholder: "https://...",
|
|
196
|
-
onInput: a[10] ||= (e) => B("expiredImageUrl", e.target.value)
|
|
197
|
-
}, null, 42, F)]),
|
|
198
|
-
_: 1
|
|
199
|
-
}, 8, ["label"]),
|
|
200
|
-
f(S, {
|
|
201
|
-
"model-value": n.block.hideOnExpiry,
|
|
202
|
-
label: u(x).countdown.hideOnExpiry,
|
|
203
|
-
class: "tpl:mb-3.5",
|
|
204
|
-
"onUpdate:modelValue": a[11] ||= (e) => B("hideOnExpiry", e)
|
|
205
|
-
}, null, 8, ["model-value", "label"])
|
|
206
|
-
], 64));
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
//#endregion
|
|
210
|
-
export { I as default };
|