@aswin.dev/editor 0.7.3 → 0.7.6
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-Dt5pvG5t.js → AiChatSidebar-DM2ri7KX.js} +1 -1
- package/dist/{AiFeatureMenu-BipxcGap.js → AiFeatureMenu-BrZBJ0R5.js} +1 -1
- package/dist/{CloudEditor-CnUX0IOW.js → CloudEditor-BRpzzfQn.js} +8 -8
- package/dist/{CollaboratorBar-NaaZTjbs.js → CollaboratorBar-DsRXj3Kn.js} +1 -1
- package/dist/CountdownToolbar-B9IAZzeV.js +194 -0
- package/dist/{DesignReferenceSidebar-CZg97bbj.js → DesignReferenceSidebar-B1iw3Bb7.js} +1 -1
- package/dist/{ModuleBrowserModal-D2EVdexc.js → ModuleBrowserModal-DVnd1dqR.js} +4 -4
- package/dist/{ModulePreviewCanvas-P3N-nxkU.js → ModulePreviewCanvas-D9jBAoBQ.js} +29 -29
- package/dist/{ParagraphEditor-BbRuKhWv.js → ParagraphEditor-CO3V0H_V.js} +7 -7
- package/dist/{SaveModuleDialog-DLZa3m3O.js → SaveModuleDialog-CboNFwIA.js} +2 -2
- package/dist/{NumberWithSuffix-CihczoAd.js → SlidingPillSelect-DfcBdJqN.js} +122 -106
- package/dist/{SnapshotHistory-Csg1_jXi.js → SnapshotHistory-C26pvPre.js} +1 -1
- package/dist/{TestEmailModal-m3okLbJz.js → TestEmailModal-B4OoUWb_.js} +2 -2
- package/dist/{TitleEditor-CtJIS5ER.js → TitleEditor-DU_QWG_m.js} +2 -2
- package/dist/{TplModal-CQCrKeKP.js → TplModal-Dr6Do8oU.js} +1 -1
- package/dist/{blockTypeIcons-Dah0pgt-.js → blockTypeIcons-cRDr36gk.js} +48 -30
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js → AccessibilityPanel-Csd47zqI.js} +9 -9
- package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js.map → AccessibilityPanel-Csd47zqI.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js → AiFeatureMenu-BlnZF5pf.js} +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js.map → AiFeatureMenu-BlnZF5pf.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js → BlockA11yBadge-VY8NqI9n.js} +4 -4
- package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js.map → BlockA11yBadge-VY8NqI9n.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-56lVcdot.js → CloudEditor-D0TrKlva.js} +178 -178
- package/dist/cdn/chunks/{CloudEditor-56lVcdot.js.map → CloudEditor-D0TrKlva.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js → CollaboratorBar-BhMNTI_h.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js.map → CollaboratorBar-BhMNTI_h.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js +196 -0
- package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js → ModuleBrowserModal-CpYPeiKv.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js.map → ModuleBrowserModal-CpYPeiKv.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js → ModulePreviewCanvas-BIYYnqUq.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js.map → ModulePreviewCanvas-BIYYnqUq.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js → ParagraphEditor-ZV5SYYw8.js} +53 -53
- package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js.map → ParagraphEditor-ZV5SYYw8.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js → RichTextEditorContent-Dx05ETtt.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js.map → RichTextEditorContent-Dx05ETtt.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js → SaveModuleDialog-DJEEK7Wb.js} +23 -23
- package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js.map → SaveModuleDialog-DJEEK7Wb.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DfVBnsgc.js → SlidingPillSelect-BhPCkqVu.js} +132 -116
- package/dist/cdn/chunks/SlidingPillSelect-BhPCkqVu.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js → TitleEditor-fu1A87Ld.js} +21 -21
- package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js.map → TitleEditor-fu1A87Ld.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js +25 -0
- package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js.map +1 -0
- package/dist/cdn/chunks/{de-B05yW8Gi.js → de-BsYijc0r.js} +49 -2
- package/dist/cdn/chunks/de-BsYijc0r.js.map +1 -0
- package/dist/cdn/chunks/{en-BII7695P.js → en-DMu9hPIC.js} +49 -2
- package/dist/cdn/chunks/en-DMu9hPIC.js.map +1 -0
- package/dist/cdn/chunks/{extensions-B0eT-yjf.js → extensions-BbFKsjyT.js} +26 -26
- package/dist/cdn/chunks/{extensions-B0eT-yjf.js.map → extensions-BbFKsjyT.js.map} +1 -1
- package/dist/cdn/chunks/{features-BrvE2Fzv.js → features-uApxwJMz.js} +1953 -1836
- package/dist/cdn/chunks/features-uApxwJMz.js.map +1 -0
- package/dist/cdn/chunks/{icons-C7wtAD8p.js → icons-DZb4EX9m.js} +26 -9
- package/dist/cdn/chunks/icons-DZb4EX9m.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Cl5XuaKy.js → media-library-B3g52j8R.js} +529 -529
- package/dist/cdn/chunks/{media-library-Cl5XuaKy.js.map → media-library-B3g52j8R.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Va91a3N8.js → quality-Ug5lFGHP.js} +288 -288
- package/dist/cdn/chunks/{quality-Va91a3N8.js.map → quality-Ug5lFGHP.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-si0Zgxeb.js → renderer-jXCdXjV-.js} +19 -19
- package/dist/cdn/chunks/{renderer-si0Zgxeb.js.map → renderer-jXCdXjV-.js.map} +1 -1
- package/dist/cdn/chunks/{src-BLyYIbdZ.js → src-FMtH5ZvJ.js} +9 -9
- package/dist/cdn/chunks/{src-BLyYIbdZ.js.map → src-FMtH5ZvJ.js.map} +1 -1
- package/dist/cdn/chunks/{styles-C6BQLT9F.js → styles-Co9vw4ag.js} +1332 -1101
- package/dist/cdn/chunks/styles-Co9vw4ag.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-D8whBv5F.js → tiptap-qXOh0vzV.js} +2 -2
- package/dist/cdn/chunks/{tiptap-D8whBv5F.js.map → tiptap-qXOh0vzV.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +85 -85
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-BoS0J0vs.js → cloud-COUuu_KE.js} +1 -1
- package/dist/{de-C74F9xK3.js → de-CR1qAkAm.js} +48 -1
- package/dist/{dist-C2grMquk.js → dist-DP82Y0rs.js} +155 -131
- package/dist/{en-B24jVTeO.js → en-jbnp1n6M.js} +48 -1
- package/dist/{extensions-DsmjHqBF.js → extensions-Bg22D6c8.js} +16 -16
- package/dist/index.d.ts +10 -10
- package/dist/style.css +1 -1
- package/dist/{styles-BMFMtR9R.js → styles-DgL0UYj0.js} +1456 -1225
- package/dist/templatical-editor.js +6 -6
- package/dist/{useEditorCore-CtNAo0uy.js → useEditorCore-CSlYQZWx.js} +1756 -1661
- package/dist/{useMergeTag-2vTcVpNo.js → useMergeTag-BVL3A4OO.js} +4 -4
- package/package.json +7 -7
- package/dist/CountdownToolbar-CbhSp_uq.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-DfVBnsgc.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +0 -24
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +0 -1
- package/dist/cdn/chunks/de-B05yW8Gi.js.map +0 -1
- package/dist/cdn/chunks/en-BII7695P.js.map +0 -1
- package/dist/cdn/chunks/features-BrvE2Fzv.js.map +0 -1
- package/dist/cdn/chunks/icons-C7wtAD8p.js.map +0 -1
- package/dist/cdn/chunks/styles-C6BQLT9F.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { At as e, C as t, F as n, Ft as r, I as i, N as a, R as o, U as s, _ as c,
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
1
|
+
import { At as e, C as t, F as n, Ft as r, I as i, N as a, R as o, U as s, _ as c, b as l, et as u, f as d, g as f, h as p, jt as m, m as h, st as g, t as _, u as v, v as y, x as ee } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { t as te } from "./dist-Djgi0A6k.js";
|
|
3
|
+
import { t as ne } from "./useI18n-C2xQZ6K9.js";
|
|
4
4
|
import { h as b, i as x, m as S, p as C, u as w } from "./styleConstants-34eUKPOZ.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
6
6
|
var T = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, E = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
7
7
|
360 / (Math.PI * 2);
|
|
8
|
-
var
|
|
8
|
+
var re = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
9
9
|
r: parseInt(e[0] + e[0], 16),
|
|
10
10
|
g: parseInt(e[1] + e[1], 16),
|
|
11
11
|
b: parseInt(e[2] + e[2], 16),
|
|
@@ -15,7 +15,7 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
15
15
|
g: parseInt(e.substring(2, 4), 16),
|
|
16
16
|
b: parseInt(e.substring(4, 6), 16),
|
|
17
17
|
a: e.length === 8 ? E(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
18
|
-
}),
|
|
18
|
+
}), ie = (e) => A(oe(e)), ae = ({ h: e, s: t, v: n, a: r }) => {
|
|
19
19
|
let i = (200 - t) * n / 100;
|
|
20
20
|
return {
|
|
21
21
|
h: E(e),
|
|
@@ -23,10 +23,10 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
23
23
|
l: E(i / 2),
|
|
24
24
|
a: E(r, 2)
|
|
25
25
|
};
|
|
26
|
-
},
|
|
27
|
-
let { h: t, s: n, l: r } =
|
|
26
|
+
}, O = (e) => {
|
|
27
|
+
let { h: t, s: n, l: r } = ae(e);
|
|
28
28
|
return `hsl(${t}, ${n}%, ${r}%)`;
|
|
29
|
-
},
|
|
29
|
+
}, oe = ({ h: e, s: t, v: n, a: r }) => {
|
|
30
30
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
31
31
|
let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
|
|
32
32
|
return {
|
|
@@ -56,12 +56,12 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
56
56
|
][c] * 255),
|
|
57
57
|
a: E(r, 2)
|
|
58
58
|
};
|
|
59
|
-
},
|
|
59
|
+
}, k = (e) => {
|
|
60
60
|
let t = e.toString(16);
|
|
61
61
|
return t.length < 2 ? "0" + t : t;
|
|
62
|
-
},
|
|
63
|
-
let i = r < 1 ?
|
|
64
|
-
return "#" +
|
|
62
|
+
}, A = ({ r: e, g: t, b: n, a: r }) => {
|
|
63
|
+
let i = r < 1 ? k(E(r * 255)) : "";
|
|
64
|
+
return "#" + k(e) + k(t) + k(n) + i;
|
|
65
65
|
}, j = ({ r: e, g: t, b: n, a: r }) => {
|
|
66
66
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
67
67
|
return {
|
|
@@ -74,7 +74,7 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
74
74
|
if (e === t) return !0;
|
|
75
75
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
76
76
|
return !0;
|
|
77
|
-
},
|
|
77
|
+
}, se = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(D(e), D(t)), N = {}, P = (e) => {
|
|
78
78
|
let t = N[e];
|
|
79
79
|
return t || (t = document.createElement("template"), t.innerHTML = e, N[e] = t), t;
|
|
80
80
|
}, F = (e, t, n) => {
|
|
@@ -137,7 +137,7 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
137
137
|
update({ h: e }) {
|
|
138
138
|
this.h = e, this.style([{
|
|
139
139
|
left: `${e / 360 * 100}%`,
|
|
140
|
-
color:
|
|
140
|
+
color: O({
|
|
141
141
|
h: e,
|
|
142
142
|
s: 100,
|
|
143
143
|
v: 100,
|
|
@@ -156,8 +156,8 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
156
156
|
this.hsva = e, this.style([{
|
|
157
157
|
top: `${100 - e.v}%`,
|
|
158
158
|
left: `${e.s}%`,
|
|
159
|
-
color:
|
|
160
|
-
}, { "background-color":
|
|
159
|
+
color: O(e)
|
|
160
|
+
}, { "background-color": O({
|
|
161
161
|
h: e.h,
|
|
162
162
|
s: 100,
|
|
163
163
|
v: 100,
|
|
@@ -170,7 +170,7 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
170
170
|
v: t ? T(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
}, W = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", G = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", K = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", q = Symbol("same"), J = Symbol("color"), Y = Symbol("hsva"), X = Symbol("update"), Z = Symbol("parts"), Q = Symbol("css"), $ = Symbol("sliders"),
|
|
173
|
+
}, W = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", G = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", K = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", q = Symbol("same"), J = Symbol("color"), Y = Symbol("hsva"), X = Symbol("update"), Z = Symbol("parts"), Q = Symbol("css"), $ = Symbol("sliders"), ce = class extends HTMLElement {
|
|
174
174
|
static get observedAttributes() {
|
|
175
175
|
return ["color"];
|
|
176
176
|
}
|
|
@@ -223,35 +223,35 @@ var ne = (e) => j(D(e)), D = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
223
223
|
[X](e) {
|
|
224
224
|
this[Y] = e, this[Z].forEach((t) => t.update(e));
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, le = {
|
|
227
227
|
defaultColor: "#000",
|
|
228
|
-
toHsva:
|
|
229
|
-
fromHsva: ({ h: e, s: t, v: n }) =>
|
|
228
|
+
toHsva: re,
|
|
229
|
+
fromHsva: ({ h: e, s: t, v: n }) => ie({
|
|
230
230
|
h: e,
|
|
231
231
|
s: t,
|
|
232
232
|
v: n,
|
|
233
233
|
a: 1
|
|
234
234
|
}),
|
|
235
|
-
equal:
|
|
235
|
+
equal: se,
|
|
236
236
|
fromAttr: (e) => e
|
|
237
|
-
},
|
|
237
|
+
}, ue = class extends ce {
|
|
238
238
|
get colorModel() {
|
|
239
|
-
return
|
|
239
|
+
return le;
|
|
240
240
|
}
|
|
241
|
-
},
|
|
242
|
-
customElements.define("hex-color-picker",
|
|
241
|
+
}, de = class extends ue {};
|
|
242
|
+
customElements.define("hex-color-picker", de);
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
245
|
-
var
|
|
245
|
+
var fe = [
|
|
246
246
|
"disabled",
|
|
247
247
|
"aria-label",
|
|
248
248
|
"aria-expanded"
|
|
249
|
-
],
|
|
249
|
+
], pe = [
|
|
250
250
|
"value",
|
|
251
251
|
"placeholder",
|
|
252
252
|
"disabled",
|
|
253
253
|
"aria-label"
|
|
254
|
-
],
|
|
254
|
+
], me = ["color", "aria-label"], he = /* @__PURE__ */ t({
|
|
255
255
|
__name: "ColorPicker",
|
|
256
256
|
props: {
|
|
257
257
|
modelValue: {},
|
|
@@ -268,50 +268,50 @@ var de = [
|
|
|
268
268
|
},
|
|
269
269
|
emits: ["update:modelValue"],
|
|
270
270
|
setup(t, { emit: n }) {
|
|
271
|
-
let r = t, i = n, { t: o } =
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}, { ignore: [
|
|
275
|
-
let
|
|
271
|
+
let r = t, i = n, { t: o } = ne(), l = u(!1), d = u(), f = u();
|
|
272
|
+
te(d, () => {
|
|
273
|
+
l.value = !1;
|
|
274
|
+
}, { ignore: [f] });
|
|
275
|
+
let b = h({
|
|
276
276
|
get: () => r.modelValue || "#000000",
|
|
277
277
|
set: (e) => i("update:modelValue", e)
|
|
278
278
|
});
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function x(e) {
|
|
280
|
+
b.value = e.detail.value;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function S(e) {
|
|
283
|
+
b.value = e.target.value;
|
|
284
284
|
}
|
|
285
|
-
return (n, r) => (a(),
|
|
286
|
-
|
|
285
|
+
return (n, r) => (a(), y("div", { class: e(["tpl:flex tpl:gap-2 tpl:relative tpl:w-full tpl:min-w-0", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
286
|
+
p("button", {
|
|
287
287
|
ref_key: "swatchRef",
|
|
288
|
-
ref:
|
|
288
|
+
ref: f,
|
|
289
289
|
type: "button",
|
|
290
290
|
disabled: t.disabled,
|
|
291
|
-
"aria-label":
|
|
292
|
-
"aria-expanded":
|
|
291
|
+
"aria-label": g(o).colorPicker.pickColor,
|
|
292
|
+
"aria-expanded": l.value,
|
|
293
293
|
class: e([
|
|
294
294
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
295
295
|
t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
296
|
-
|
|
296
|
+
l.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
|
|
297
297
|
t.size === "large" ? "tpl:size-12" : "tpl:size-10"
|
|
298
298
|
]),
|
|
299
|
-
onClick: r[0] ||= (e) => !t.disabled && (
|
|
300
|
-
}, [
|
|
299
|
+
onClick: r[0] ||= (e) => !t.disabled && (l.value = !l.value)
|
|
300
|
+
}, [p("span", {
|
|
301
301
|
class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
|
|
302
|
-
style:
|
|
303
|
-
}, null, 4)], 10,
|
|
304
|
-
t.swatchOnly ? c("", !0) : (a(),
|
|
302
|
+
style: m({ backgroundColor: b.value })
|
|
303
|
+
}, null, 4)], 10, fe),
|
|
304
|
+
t.swatchOnly ? c("", !0) : (a(), y("input", {
|
|
305
305
|
key: 0,
|
|
306
306
|
type: "text",
|
|
307
|
-
class: e(
|
|
307
|
+
class: e(g(w)),
|
|
308
308
|
value: t.modelValue,
|
|
309
309
|
placeholder: t.placeholder,
|
|
310
310
|
disabled: t.disabled,
|
|
311
|
-
"aria-label":
|
|
312
|
-
onInput:
|
|
313
|
-
}, null, 42,
|
|
314
|
-
|
|
311
|
+
"aria-label": g(o).colorPicker.hexValue,
|
|
312
|
+
onInput: S
|
|
313
|
+
}, null, 42, pe)),
|
|
314
|
+
ee(_, {
|
|
315
315
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
316
316
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
317
317
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -319,27 +319,76 @@ var de = [
|
|
|
319
319
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
320
320
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
321
321
|
}, {
|
|
322
|
-
default: s(() => [
|
|
322
|
+
default: s(() => [l.value ? (a(), y("div", {
|
|
323
323
|
key: 0,
|
|
324
324
|
ref_key: "popoverRef",
|
|
325
325
|
ref: d,
|
|
326
326
|
class: "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg"
|
|
327
|
-
}, [
|
|
328
|
-
color:
|
|
329
|
-
"aria-label":
|
|
330
|
-
onColorChanged:
|
|
331
|
-
onKeydown: r[1] ||=
|
|
332
|
-
}, null, 40,
|
|
327
|
+
}, [p("hex-color-picker", {
|
|
328
|
+
color: b.value,
|
|
329
|
+
"aria-label": g(o).colorPicker.pickColor,
|
|
330
|
+
onColorChanged: x,
|
|
331
|
+
onKeydown: r[1] ||= v((e) => l.value = !1, ["escape"])
|
|
332
|
+
}, null, 40, me)], 512)) : c("", !0)]),
|
|
333
333
|
_: 1
|
|
334
334
|
})
|
|
335
335
|
], 2));
|
|
336
336
|
}
|
|
337
|
-
}),
|
|
337
|
+
}), ge = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, _e = ["checked"], ve = /* @__PURE__ */ t({
|
|
338
|
+
__name: "CheckboxItem",
|
|
339
|
+
props: {
|
|
340
|
+
modelValue: { type: Boolean },
|
|
341
|
+
label: {}
|
|
342
|
+
},
|
|
343
|
+
emits: ["update:modelValue"],
|
|
344
|
+
setup(e, { emit: t }) {
|
|
345
|
+
let n = t;
|
|
346
|
+
return (t, i) => (a(), y("label", ge, [p("input", {
|
|
347
|
+
type: "checkbox",
|
|
348
|
+
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
349
|
+
checked: e.modelValue,
|
|
350
|
+
onChange: i[0] ||= (e) => n("update:modelValue", e.target.checked)
|
|
351
|
+
}, null, 40, _e), l(" " + r(e.label), 1)]));
|
|
352
|
+
}
|
|
353
|
+
}), ye = { class: "tpl:mb-3.5" }, be = /* @__PURE__ */ t({
|
|
354
|
+
__name: "FieldRow",
|
|
355
|
+
props: { label: {} },
|
|
356
|
+
setup(t) {
|
|
357
|
+
return (n, o) => (a(), y("div", ye, [t.label ? (a(), y("label", {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: e(g(b))
|
|
360
|
+
}, r(t.label), 3)) : c("", !0), i(n.$slots, "default")]));
|
|
361
|
+
}
|
|
362
|
+
}), xe = { class: "tpl:flex tpl:items-stretch" }, Se = [
|
|
363
|
+
"value",
|
|
364
|
+
"min",
|
|
365
|
+
"max"
|
|
366
|
+
], Ce = /* @__PURE__ */ t({
|
|
367
|
+
__name: "NumberWithSuffix",
|
|
368
|
+
props: {
|
|
369
|
+
modelValue: {},
|
|
370
|
+
min: {},
|
|
371
|
+
max: {},
|
|
372
|
+
suffix: {}
|
|
373
|
+
},
|
|
374
|
+
emits: ["update:modelValue"],
|
|
375
|
+
setup(t, { emit: n }) {
|
|
376
|
+
let i = n;
|
|
377
|
+
return (n, o) => (a(), y("div", xe, [p("input", {
|
|
378
|
+
type: "number",
|
|
379
|
+
class: e(g(C)),
|
|
380
|
+
value: t.modelValue,
|
|
381
|
+
min: t.min,
|
|
382
|
+
max: t.max,
|
|
383
|
+
onInput: o[0] ||= (e) => i("update:modelValue", Number(e.target.value))
|
|
384
|
+
}, null, 42, Se), p("span", { class: e(g(S)) }, r(t.suffix), 3)]));
|
|
385
|
+
}
|
|
386
|
+
}), we = [
|
|
338
387
|
"aria-checked",
|
|
339
388
|
"aria-label",
|
|
340
389
|
"title",
|
|
341
390
|
"onClick"
|
|
342
|
-
],
|
|
391
|
+
], Te = { key: 1 }, Ee = /* @__PURE__ */ t({
|
|
343
392
|
__name: "SlidingPillSelect",
|
|
344
393
|
props: {
|
|
345
394
|
options: {},
|
|
@@ -347,76 +396,43 @@ var de = [
|
|
|
347
396
|
},
|
|
348
397
|
emits: ["update:modelValue"],
|
|
349
398
|
setup(e, { emit: t }) {
|
|
350
|
-
let i = e, s = t, l =
|
|
351
|
-
return (t, i) => (a(),
|
|
399
|
+
let i = e, s = t, l = h(() => i.options.findIndex((e) => e.value === i.modelValue)), u = h(() => `translateX(${Math.max(l.value, 0) * 100}%)`);
|
|
400
|
+
return (t, i) => (a(), y("div", {
|
|
352
401
|
role: "radiogroup",
|
|
353
402
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
354
|
-
style:
|
|
403
|
+
style: m({
|
|
355
404
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
356
405
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
357
406
|
})
|
|
358
|
-
}, [l.value >= 0 ? (a(),
|
|
407
|
+
}, [l.value >= 0 ? (a(), y("div", {
|
|
359
408
|
key: 0,
|
|
360
409
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
361
|
-
style:
|
|
410
|
+
style: m({
|
|
362
411
|
left: "4px",
|
|
363
412
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
364
|
-
transform:
|
|
413
|
+
transform: u.value,
|
|
365
414
|
backgroundColor: "var(--tpl-bg)",
|
|
366
415
|
boxShadow: "var(--tpl-shadow)",
|
|
367
416
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
368
417
|
})
|
|
369
|
-
}, null, 4)) : c("", !0), (a(!0),
|
|
418
|
+
}, null, 4)) : c("", !0), (a(!0), y(d, null, n(e.options, (t) => (a(), y("button", {
|
|
370
419
|
key: t.value,
|
|
371
420
|
role: "radio",
|
|
372
421
|
"aria-checked": e.modelValue === t.value,
|
|
373
422
|
"aria-label": t.label,
|
|
374
423
|
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
|
|
375
|
-
style:
|
|
424
|
+
style: m({
|
|
376
425
|
color: e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
377
426
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
378
427
|
}),
|
|
379
428
|
title: t.label,
|
|
380
429
|
onClick: (e) => s("update:modelValue", t.value)
|
|
381
|
-
}, [t.icon ? (a(),
|
|
430
|
+
}, [t.icon ? (a(), f(o(t.icon), {
|
|
382
431
|
key: 0,
|
|
383
432
|
size: 14,
|
|
384
433
|
"stroke-width": 2
|
|
385
|
-
})) : (a(),
|
|
386
|
-
}
|
|
387
|
-
}), ve = { class: "tpl:mb-3.5" }, ye = /* @__PURE__ */ t({
|
|
388
|
-
__name: "FieldRow",
|
|
389
|
-
props: { label: {} },
|
|
390
|
-
setup(t) {
|
|
391
|
-
return (n, o) => (a(), _("div", ve, [t.label ? (a(), _("label", {
|
|
392
|
-
key: 0,
|
|
393
|
-
class: e(h(b))
|
|
394
|
-
}, r(t.label), 3)) : c("", !0), i(n.$slots, "default")]));
|
|
395
|
-
}
|
|
396
|
-
}), be = { class: "tpl:flex tpl:items-stretch" }, xe = [
|
|
397
|
-
"value",
|
|
398
|
-
"min",
|
|
399
|
-
"max"
|
|
400
|
-
], Se = /* @__PURE__ */ t({
|
|
401
|
-
__name: "NumberWithSuffix",
|
|
402
|
-
props: {
|
|
403
|
-
modelValue: {},
|
|
404
|
-
min: {},
|
|
405
|
-
max: {},
|
|
406
|
-
suffix: {}
|
|
407
|
-
},
|
|
408
|
-
emits: ["update:modelValue"],
|
|
409
|
-
setup(t, { emit: n }) {
|
|
410
|
-
let i = n;
|
|
411
|
-
return (n, o) => (a(), _("div", be, [f("input", {
|
|
412
|
-
type: "number",
|
|
413
|
-
class: e(h(C)),
|
|
414
|
-
value: t.modelValue,
|
|
415
|
-
min: t.min,
|
|
416
|
-
max: t.max,
|
|
417
|
-
onInput: o[0] ||= (e) => i("update:modelValue", Number(e.target.value))
|
|
418
|
-
}, null, 42, xe), f("span", { class: e(h(S)) }, r(t.suffix), 3)]));
|
|
434
|
+
})) : (a(), y("span", Te, r(t.label), 1))], 12, we))), 128))], 4));
|
|
419
435
|
}
|
|
420
436
|
});
|
|
421
437
|
//#endregion
|
|
422
|
-
export {
|
|
438
|
+
export { he as a, ve as i, Ce as n, be as r, Ee as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, _ as s, d as c, et as l, f as u, h as d, m as f, st as p, t as m, v as h, x as g } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-CSlYQZWx.js";
|
|
3
3
|
import { t as _ } from "./dist-Djgi0A6k.js";
|
|
4
4
|
import { t as v } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { t as y } from "./chevron-down-C5oBUhT8.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, et as u, f as d, g as f, h as p, s as m, st as h, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-CSlYQZWx.js";
|
|
3
3
|
import { t as v } from "./loader-circle-Balo8p3d.js";
|
|
4
4
|
import { n as y } from "./useCloudI18n-DOKSZql1.js";
|
|
5
|
-
import { t as b } from "./TplModal-
|
|
5
|
+
import { t as b } from "./TplModal-Dr6Do8oU.js";
|
|
6
6
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var x = ["aria-busy"], S = {
|
|
8
8
|
id: "tpl-test-email-title",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as e, C as t, D as n, Ft as r, N as i, Y as a, _ as o, b as s, f as c, g as l, h as u, jt as d, p as f, st as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as g } from "./useEditorCore-CSlYQZWx.js";
|
|
3
3
|
import { D as _, k as v } from "./keys-CvX8D-8C.js";
|
|
4
4
|
import { t as y } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CrqPQdnk.js";
|
|
@@ -30,7 +30,7 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
|
|
|
30
30
|
import("./dist-C9ckKEZL.js").then((e) => e.r),
|
|
31
31
|
import("./dist-Bz3M4RXG.js"),
|
|
32
32
|
import("./dist-C3T2AKtB.js"),
|
|
33
|
-
import("./extensions-
|
|
33
|
+
import("./extensions-Bg22D6c8.js")
|
|
34
34
|
]);
|
|
35
35
|
return {
|
|
36
36
|
TiptapEditor: a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as e, D as t, I as n, N as r, U as i, _ as a, d as o, et as s, g as c, h as l, m as u, p as d, st as f, t as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as g } from "./useEditorCore-CSlYQZWx.js";
|
|
3
3
|
import { k as _ } from "./keys-CvX8D-8C.js";
|
|
4
4
|
//#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var v = ["data-tpl-theme"], y = /* @__PURE__ */ e({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e,
|
|
1
|
+
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-CSlYQZWx.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-ClREiSx3.js";
|
|
3
3
|
var o = a("clipboard-list", [
|
|
4
4
|
["rect", {
|
|
@@ -109,38 +109,55 @@ var o = a("clipboard-list", [
|
|
|
109
109
|
]), p = a("play", [["path", {
|
|
110
110
|
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
111
111
|
key: "10ikf1"
|
|
112
|
-
}]]), m = {
|
|
112
|
+
}]]), m = a("rectangle-horizontal", [["rect", {
|
|
113
|
+
width: "20",
|
|
114
|
+
height: "12",
|
|
115
|
+
x: "2",
|
|
116
|
+
y: "6",
|
|
117
|
+
rx: "2",
|
|
118
|
+
key: "9lu3g6"
|
|
119
|
+
}]]), h = a("text-cursor", [
|
|
120
|
+
["path", {
|
|
121
|
+
d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",
|
|
122
|
+
key: "uvaxm9"
|
|
123
|
+
}],
|
|
124
|
+
["path", {
|
|
125
|
+
d: "M7 22h1a4 4 0 0 0 4-4v-1",
|
|
126
|
+
key: "11xy8d"
|
|
127
|
+
}],
|
|
128
|
+
["path", {
|
|
129
|
+
d: "M7 2h1a4 4 0 0 1 4 4v1",
|
|
130
|
+
key: "1uw06m"
|
|
131
|
+
}]
|
|
132
|
+
]), g = a("ticket", [
|
|
133
|
+
["path", {
|
|
134
|
+
d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",
|
|
135
|
+
key: "qn84l0"
|
|
136
|
+
}],
|
|
137
|
+
["path", {
|
|
138
|
+
d: "M13 5v2",
|
|
139
|
+
key: "dyzc3o"
|
|
140
|
+
}],
|
|
141
|
+
["path", {
|
|
142
|
+
d: "M13 17v2",
|
|
143
|
+
key: "1ont0d"
|
|
144
|
+
}],
|
|
145
|
+
["path", {
|
|
146
|
+
d: "M13 11v2",
|
|
147
|
+
key: "1wjjxi"
|
|
148
|
+
}]
|
|
149
|
+
]), _ = {
|
|
113
150
|
section: s,
|
|
114
151
|
title: c,
|
|
115
152
|
paragraph: f,
|
|
116
|
-
image:
|
|
117
|
-
button:
|
|
118
|
-
|
|
119
|
-
height: "12",
|
|
120
|
-
x: "2",
|
|
121
|
-
y: "6",
|
|
122
|
-
rx: "2",
|
|
123
|
-
key: "9lu3g6"
|
|
124
|
-
}]]),
|
|
125
|
-
input: a("text-cursor", [
|
|
126
|
-
["path", {
|
|
127
|
-
d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",
|
|
128
|
-
key: "uvaxm9"
|
|
129
|
-
}],
|
|
130
|
-
["path", {
|
|
131
|
-
d: "M7 22h1a4 4 0 0 0 4-4v-1",
|
|
132
|
-
key: "11xy8d"
|
|
133
|
-
}],
|
|
134
|
-
["path", {
|
|
135
|
-
d: "M7 2h1a4 4 0 0 1 4 4v1",
|
|
136
|
-
key: "1uw06m"
|
|
137
|
-
}]
|
|
138
|
-
]),
|
|
153
|
+
image: n,
|
|
154
|
+
button: m,
|
|
155
|
+
input: h,
|
|
139
156
|
divider: l,
|
|
140
157
|
video: p,
|
|
141
|
-
social:
|
|
142
|
-
menu:
|
|
143
|
-
table:
|
|
158
|
+
social: e,
|
|
159
|
+
menu: r,
|
|
160
|
+
table: i,
|
|
144
161
|
spacer: u,
|
|
145
162
|
countdown: a("timer", [
|
|
146
163
|
["line", {
|
|
@@ -165,7 +182,8 @@ var o = a("clipboard-list", [
|
|
|
165
182
|
}]
|
|
166
183
|
]),
|
|
167
184
|
form: o,
|
|
168
|
-
|
|
185
|
+
discountCoupon: g,
|
|
186
|
+
html: t
|
|
169
187
|
};
|
|
170
188
|
//#endregion
|
|
171
|
-
export { d as n, l as r,
|
|
189
|
+
export { d as n, l as r, _ as t };
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.7.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
2
|
+
"version": "0.7.6",
|
|
3
|
+
"initialGzipBytes": 259985,
|
|
4
|
+
"initialRawBytes": 959447,
|
|
5
5
|
"initialFileCount": 36,
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
6
|
+
"lazyGzipBytes": 264638,
|
|
7
|
+
"lazyRawBytes": 921266,
|
|
8
8
|
"lazyFileCount": 44,
|
|
9
|
-
"generatedAt": "2026-05-
|
|
9
|
+
"generatedAt": "2026-05-16T17:47:11.445Z"
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as e, D as t, I as n, P as r, _ as i, b as a, ct as o, f as s, ft as c, g as l, h as u, m as d, ut as f, v as p, x as m, z as h } from "./draggable-C-1_gch3.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Ht as g, Mt as _, Vt as v, dt as y, en as b, wt as x } from "./features-uApxwJMz.js";
|
|
3
|
+
import { ht as S, pt as C, t as w } from "./icons-DZb4EX9m.js";
|
|
4
4
|
//#region src/components/sidebar/AccessibilityPanel.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:flex tpl:items-center tpl:gap-2" }, D = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, O = ["title"], k = {
|
|
6
6
|
key: 0,
|
|
@@ -14,7 +14,7 @@ var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:
|
|
|
14
14
|
}, N = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, P = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, F = { class: "tpl:flex tpl:gap-1.5" }, I = ["onClick"], L = ["title", "onClick"], R = /* @__PURE__ */ e({
|
|
15
15
|
__name: "AccessibilityPanel",
|
|
16
16
|
setup(e) {
|
|
17
|
-
let { t: R, format: z } =
|
|
17
|
+
let { t: R, format: z } = v(), B = t(g, null), V = t(b, null), H = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "error")), U = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "warning")), W = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "info")), G = d(() => H.value.length + U.value.length + W.value.length);
|
|
18
18
|
function K(e) {
|
|
19
19
|
V && e.blockId && V.selectBlock(e.blockId);
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@ var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:
|
|
|
22
22
|
B?.applyFix(e);
|
|
23
23
|
}
|
|
24
24
|
return (e, t) => (r(), p("div", T, [u("header", E, [
|
|
25
|
-
m(o(
|
|
25
|
+
m(o(S), {
|
|
26
26
|
size: 16,
|
|
27
27
|
"stroke-width": 1.5
|
|
28
28
|
}),
|
|
@@ -36,21 +36,21 @@ var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:
|
|
|
36
36
|
{
|
|
37
37
|
key: "errors",
|
|
38
38
|
title: o(R).accessibility.groupErrors,
|
|
39
|
-
icon: o(
|
|
39
|
+
icon: o(_),
|
|
40
40
|
items: H.value,
|
|
41
41
|
tone: "tpl:text-[var(--tpl-danger)]"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: "warnings",
|
|
45
45
|
title: o(R).accessibility.groupWarnings,
|
|
46
|
-
icon: o(
|
|
46
|
+
icon: o(y),
|
|
47
47
|
items: U.value,
|
|
48
48
|
tone: "tpl:text-[var(--tpl-warning)]"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
key: "info",
|
|
52
52
|
title: o(R).accessibility.groupInfo,
|
|
53
|
-
icon: o(
|
|
53
|
+
icon: o(x),
|
|
54
54
|
items: W.value,
|
|
55
55
|
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
56
56
|
}
|
|
@@ -75,7 +75,7 @@ var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:
|
|
|
75
75
|
type: "button",
|
|
76
76
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]",
|
|
77
77
|
onClick: (t) => K(e)
|
|
78
|
-
}, [m(o(
|
|
78
|
+
}, [m(o(C), {
|
|
79
79
|
size: 10,
|
|
80
80
|
"stroke-width": 2
|
|
81
81
|
}), a(" " + c(o(R).accessibility.jump), 1)], 8, I)) : i("", !0), e.fix ? (r(), p("button", {
|
|
@@ -94,4 +94,4 @@ var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:
|
|
|
94
94
|
//#endregion
|
|
95
95
|
export { R as default };
|
|
96
96
|
|
|
97
|
-
//# sourceMappingURL=AccessibilityPanel-
|
|
97
|
+
//# sourceMappingURL=AccessibilityPanel-Csd47zqI.js.map
|