@harbour-enterprises/superdoc 0.10.71 → 0.10.72
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/chunks/{eventemitter3-DmT5PYHc.es.js → eventemitter3-CGDu2RxU.es.js} +1 -1
- package/dist/chunks/{index-BN5TDoeo.es.js → index-BF-lC4S6.es.js} +2 -2
- package/dist/chunks/{index-BavEbpBI.es.js → index-DcSLQU3f.es.js} +4 -4
- package/dist/chunks/{jszip-Clbt_EEu.es.js → jszip-CxAhBy-b.es.js} +1 -1
- package/dist/chunks/{super-editor.es-C-h-154n.es.js → super-editor.es-C7j1iePP.es.js} +9656 -10254
- package/dist/chunks/super-editor.es-CIYZ5Y6P.cjs +459 -0
- package/dist/chunks/{url-BhdilvzC.es.js → url-_K71OnFe.es.js} +2 -2
- package/dist/chunks/{vue-B11Xj7yz.es.js → vue-fDwoASPl.es.js} +18 -18
- package/dist/chunks/{xml-js-DxzxwFYn.es.js → xml-js--d8FG5HY.es.js} +2 -2
- package/dist/components/CommentsLayer/comment-schemas.d.ts +17 -0
- package/dist/components/CommentsLayer/comment-schemas.d.ts.map +1 -0
- package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +22 -0
- package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -0
- package/dist/components/CommentsLayer/helpers.d.ts +8 -0
- package/dist/components/CommentsLayer/helpers.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-comment.d.ts +8 -0
- package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-conversation.d.ts +23 -0
- package/dist/components/CommentsLayer/use-conversation.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-floating-comment.d.ts +12 -0
- package/dist/components/CommentsLayer/use-floating-comment.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-tracked-change.d.ts +1 -0
- package/dist/components/CommentsLayer/use-tracked-change.d.ts.map +1 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +3 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +1 -0
- package/dist/components/PdfViewer/helpers/range.d.ts +2 -0
- package/dist/components/PdfViewer/helpers/range.d.ts.map +1 -0
- package/dist/components/PdfViewer/pdfjs.d.ts +3 -0
- package/dist/components/PdfViewer/pdfjs.d.ts.map +1 -0
- package/dist/components/PdfViewer/worker.d.ts +3 -0
- package/dist/components/PdfViewer/worker.d.ts.map +1 -0
- package/dist/composables/use-ai.d.ts +13 -0
- package/dist/composables/use-ai.d.ts.map +1 -0
- package/dist/composables/use-document.d.ts +28 -0
- package/dist/composables/use-document.d.ts.map +1 -0
- package/dist/composables/use-field.d.ts +34 -0
- package/dist/composables/use-field.d.ts.map +1 -0
- package/dist/composables/use-selected-text.d.ts +8 -0
- package/dist/composables/use-selected-text.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +373 -0
- package/dist/core/SuperDoc.d.ts.map +1 -0
- package/dist/core/collaboration/collaboration-comments.d.ts +5 -0
- package/dist/core/collaboration/collaboration-comments.d.ts.map +1 -0
- package/dist/core/collaboration/collaboration.d.ts +27 -0
- package/dist/core/collaboration/collaboration.d.ts.map +1 -0
- package/dist/core/collaboration/helpers.d.ts +5 -0
- package/dist/core/collaboration/helpers.d.ts.map +1 -0
- package/dist/core/collaboration/permissions.d.ts +14 -0
- package/dist/core/collaboration/permissions.d.ts.map +1 -0
- package/dist/core/create-app.d.ts +2 -0
- package/dist/core/create-app.d.ts.map +1 -0
- package/dist/core/helpers/export.d.ts +3 -0
- package/dist/core/helpers/export.d.ts.map +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/{super-editor/extensions/search → core}/index.d.ts.map +1 -1
- package/dist/helpers/use-selection.d.ts +18 -0
- package/dist/helpers/use-selection.d.ts.map +1 -0
- package/dist/icons.d.ts +11 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/stores/comments-store.d.ts +248 -0
- package/dist/stores/comments-store.d.ts.map +1 -0
- package/dist/stores/hrbr-fields-store.d.ts +44 -0
- package/dist/stores/hrbr-fields-store.d.ts.map +1 -0
- package/dist/stores/superdoc-store.d.ts +881 -0
- package/dist/stores/superdoc-store.d.ts.map +1 -0
- package/dist/style.css +3466 -1
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-DKAFrp3H.js → converter-DdoplIcH.js} +1353 -1446
- package/dist/super-editor/chunks/{docx-zipper-DpRWSvIy.js → docx-zipper-BuLg2ivg.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bv24RlYz.js → editor-CzUrA6Jd.js} +6079 -6532
- package/dist/super-editor/chunks/{toolbar-DwveODMd.js → toolbar-DfKr9n4m.js} +872 -866
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +0 -2
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +0 -1
- package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts +0 -1
- package/dist/super-editor/components/toolbar/use-toolbar-item.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/imageImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/image.d.ts.map +1 -1
- package/dist/super-editor/extensions/index.d.ts +1 -2
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +722 -780
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.d.ts +2 -0
- package/dist/super-editor.d.ts.map +1 -0
- package/dist/super-editor.es.js +11 -11
- package/dist/superdoc.cjs +58 -58
- package/dist/superdoc.es.js +1075 -1108
- package/dist/superdoc.umd.js +70456 -0
- package/dist/superdoc.umd.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-BeujGZGI.cjs +0 -462
- package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -6
- package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +0 -1
- package/dist/super-editor/extensions/search/index.d.ts +0 -2
- package/dist/super-editor/extensions/search/search.d.ts +0 -2
- package/dist/super-editor/extensions/search/search.d.ts.map +0 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var mt = Object.defineProperty;
|
|
2
|
+
var Ve = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
import { _ as
|
|
10
|
-
import { C as
|
|
11
|
-
import { a1 as
|
|
12
|
-
import { O as
|
|
13
|
-
import { ref as
|
|
14
|
-
import { t as
|
|
15
|
-
import
|
|
16
|
-
import { D as
|
|
17
|
-
import { createZip as
|
|
18
|
-
var
|
|
5
|
+
var pt = (t, l, o) => l in t ? mt(t, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[l] = o;
|
|
6
|
+
var He = (t, l, o) => pt(t, typeof l != "symbol" ? l + "" : l, o), je = (t, l, o) => l.has(t) || Ve("Cannot " + o);
|
|
7
|
+
var Se = (t, l, o) => (je(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Be = (t, l, o) => l.has(t) ? Ve("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
|
|
8
|
+
var W = (t, l, o) => (je(t, l, "access private method"), o);
|
|
9
|
+
import { _ as K, a as Ke, b as ft, I as Re, f as ht, c as Ue, d as gt, i as vt, u as yt, r as bt, E as Oe, e as wt, P as kt, h as Ct, M as _t, j as xt, A as Et, N as St } from "./chunks/editor-CzUrA6Jd.js";
|
|
10
|
+
import { C as Lo, T as Mo, l as Do, n as $o, k as Ho, m as Bo } from "./chunks/editor-CzUrA6Jd.js";
|
|
11
|
+
import { a1 as At, y as Tt, a3 as Ft, T as Xe, a as It } from "./chunks/converter-DdoplIcH.js";
|
|
12
|
+
import { O as Oo } from "./chunks/converter-DdoplIcH.js";
|
|
13
|
+
import { ref as y, createElementBlock as k, openBlock as w, createElementVNode as _, unref as D, getCurrentInstance as Lt, computed as j, watch as Mt, onMounted as we, createCommentVNode as Q, withDirectives as Dt, withKeys as $t, normalizeClass as ne, withModifiers as be, vModelText as Ht, createTextVNode as Ze, toDisplayString as oe, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as V, h as N, createApp as Bt, reactive as qe, onUnmounted as Rt, shallowRef as Ye, onBeforeUnmount as Je, createBlock as Ot } from "vue";
|
|
14
|
+
import { t as G, s as Nt, T as zt, N as Y } from "./chunks/toolbar-DfKr9n4m.js";
|
|
15
|
+
import Wt from "./ai-writer.es.js";
|
|
16
|
+
import { D as zo } from "./chunks/docx-zipper-BuLg2ivg.js";
|
|
17
|
+
import { createZip as Po } from "./file-zipper.es.js";
|
|
18
|
+
var Qe = { exports: {} };
|
|
19
19
|
(function(t) {
|
|
20
20
|
var l = Object.prototype.hasOwnProperty, o = "~";
|
|
21
21
|
function n() {
|
|
22
22
|
}
|
|
23
23
|
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (o = !1));
|
|
24
|
-
function e(s,
|
|
25
|
-
this.fn = s, this.context =
|
|
24
|
+
function e(s, r, d) {
|
|
25
|
+
this.fn = s, this.context = r, this.once = d || !1;
|
|
26
26
|
}
|
|
27
|
-
function i(s,
|
|
27
|
+
function i(s, r, d, u, b) {
|
|
28
28
|
if (typeof d != "function")
|
|
29
29
|
throw new TypeError("The listener must be a function");
|
|
30
|
-
var v = new e(d, u || s, b),
|
|
31
|
-
return s._events[
|
|
30
|
+
var v = new e(d, u || s, b), h = o ? o + r : r;
|
|
31
|
+
return s._events[h] ? s._events[h].fn ? s._events[h] = [s._events[h], v] : s._events[h].push(v) : (s._events[h] = v, s._eventsCount++), s;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
--s._eventsCount === 0 ? s._events = new n() : delete s._events[
|
|
33
|
+
function c(s, r) {
|
|
34
|
+
--s._eventsCount === 0 ? s._events = new n() : delete s._events[r];
|
|
35
35
|
}
|
|
36
36
|
function a() {
|
|
37
37
|
this._events = new n(), this._eventsCount = 0;
|
|
38
38
|
}
|
|
39
39
|
a.prototype.eventNames = function() {
|
|
40
|
-
var
|
|
41
|
-
if (this._eventsCount === 0) return
|
|
40
|
+
var r = [], d, u;
|
|
41
|
+
if (this._eventsCount === 0) return r;
|
|
42
42
|
for (u in d = this._events)
|
|
43
|
-
l.call(d, u) &&
|
|
44
|
-
return Object.getOwnPropertySymbols ?
|
|
45
|
-
}, a.prototype.listeners = function(
|
|
46
|
-
var d = o ? o +
|
|
43
|
+
l.call(d, u) && r.push(o ? u.slice(1) : u);
|
|
44
|
+
return Object.getOwnPropertySymbols ? r.concat(Object.getOwnPropertySymbols(d)) : r;
|
|
45
|
+
}, a.prototype.listeners = function(r) {
|
|
46
|
+
var d = o ? o + r : r, u = this._events[d];
|
|
47
47
|
if (!u) return [];
|
|
48
48
|
if (u.fn) return [u.fn];
|
|
49
|
-
for (var b = 0, v = u.length,
|
|
50
|
-
|
|
51
|
-
return
|
|
52
|
-
}, a.prototype.listenerCount = function(
|
|
53
|
-
var d = o ? o +
|
|
49
|
+
for (var b = 0, v = u.length, h = new Array(v); b < v; b++)
|
|
50
|
+
h[b] = u[b].fn;
|
|
51
|
+
return h;
|
|
52
|
+
}, a.prototype.listenerCount = function(r) {
|
|
53
|
+
var d = o ? o + r : r, u = this._events[d];
|
|
54
54
|
return u ? u.fn ? 1 : u.length : 0;
|
|
55
|
-
}, a.prototype.emit = function(
|
|
56
|
-
var
|
|
57
|
-
if (!this._events[
|
|
58
|
-
var g = this._events[
|
|
55
|
+
}, a.prototype.emit = function(r, d, u, b, v, h) {
|
|
56
|
+
var E = o ? o + r : r;
|
|
57
|
+
if (!this._events[E]) return !1;
|
|
58
|
+
var g = this._events[E], $ = arguments.length, L, p;
|
|
59
59
|
if (g.fn) {
|
|
60
|
-
switch (g.once && this.removeListener(
|
|
60
|
+
switch (g.once && this.removeListener(r, g.fn, void 0, !0), $) {
|
|
61
61
|
case 1:
|
|
62
62
|
return g.fn.call(g.context), !0;
|
|
63
63
|
case 2:
|
|
@@ -69,15 +69,15 @@ var it = { exports: {} };
|
|
|
69
69
|
case 5:
|
|
70
70
|
return g.fn.call(g.context, d, u, b, v), !0;
|
|
71
71
|
case 6:
|
|
72
|
-
return g.fn.call(g.context, d, u, b, v,
|
|
72
|
+
return g.fn.call(g.context, d, u, b, v, h), !0;
|
|
73
73
|
}
|
|
74
|
-
for (p = 1,
|
|
75
|
-
|
|
76
|
-
g.fn.apply(g.context,
|
|
74
|
+
for (p = 1, L = new Array($ - 1); p < $; p++)
|
|
75
|
+
L[p - 1] = arguments[p];
|
|
76
|
+
g.fn.apply(g.context, L);
|
|
77
77
|
} else {
|
|
78
|
-
var
|
|
79
|
-
for (p = 0; p <
|
|
80
|
-
switch (g[p].once && this.removeListener(
|
|
78
|
+
var C = g.length, F;
|
|
79
|
+
for (p = 0; p < C; p++)
|
|
80
|
+
switch (g[p].once && this.removeListener(r, g[p].fn, void 0, !0), $) {
|
|
81
81
|
case 1:
|
|
82
82
|
g[p].fn.call(g[p].context);
|
|
83
83
|
break;
|
|
@@ -91,38 +91,38 @@ var it = { exports: {} };
|
|
|
91
91
|
g[p].fn.call(g[p].context, d, u, b);
|
|
92
92
|
break;
|
|
93
93
|
default:
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
g[p].fn.apply(g[p].context,
|
|
94
|
+
if (!L) for (F = 1, L = new Array($ - 1); F < $; F++)
|
|
95
|
+
L[F - 1] = arguments[F];
|
|
96
|
+
g[p].fn.apply(g[p].context, L);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return !0;
|
|
100
|
-
}, a.prototype.on = function(
|
|
101
|
-
return i(this,
|
|
102
|
-
}, a.prototype.once = function(
|
|
103
|
-
return i(this,
|
|
104
|
-
}, a.prototype.removeListener = function(
|
|
105
|
-
var v = o ? o +
|
|
100
|
+
}, a.prototype.on = function(r, d, u) {
|
|
101
|
+
return i(this, r, d, u, !1);
|
|
102
|
+
}, a.prototype.once = function(r, d, u) {
|
|
103
|
+
return i(this, r, d, u, !0);
|
|
104
|
+
}, a.prototype.removeListener = function(r, d, u, b) {
|
|
105
|
+
var v = o ? o + r : r;
|
|
106
106
|
if (!this._events[v]) return this;
|
|
107
107
|
if (!d)
|
|
108
|
-
return
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
111
|
-
|
|
108
|
+
return c(this, v), this;
|
|
109
|
+
var h = this._events[v];
|
|
110
|
+
if (h.fn)
|
|
111
|
+
h.fn === d && (!b || h.once) && (!u || h.context === u) && c(this, v);
|
|
112
112
|
else {
|
|
113
|
-
for (var
|
|
114
|
-
(
|
|
115
|
-
g.length ? this._events[v] = g.length === 1 ? g[0] : g :
|
|
113
|
+
for (var E = 0, g = [], $ = h.length; E < $; E++)
|
|
114
|
+
(h[E].fn !== d || b && !h[E].once || u && h[E].context !== u) && g.push(h[E]);
|
|
115
|
+
g.length ? this._events[v] = g.length === 1 ? g[0] : g : c(this, v);
|
|
116
116
|
}
|
|
117
117
|
return this;
|
|
118
|
-
}, a.prototype.removeAllListeners = function(
|
|
118
|
+
}, a.prototype.removeAllListeners = function(r) {
|
|
119
119
|
var d;
|
|
120
|
-
return
|
|
120
|
+
return r ? (d = o ? o + r : r, this._events[d] && c(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
121
121
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = o, a.EventEmitter = a, t.exports = a;
|
|
122
|
-
})(
|
|
123
|
-
var
|
|
124
|
-
const
|
|
125
|
-
function
|
|
122
|
+
})(Qe);
|
|
123
|
+
var Pt = Qe.exports;
|
|
124
|
+
const Vt = /* @__PURE__ */ At(Pt);
|
|
125
|
+
function jt(t) {
|
|
126
126
|
let l = t;
|
|
127
127
|
for (; l; ) {
|
|
128
128
|
const o = window.getComputedStyle(l).overflowY;
|
|
@@ -132,9 +132,9 @@ function Gt(t) {
|
|
|
132
132
|
}
|
|
133
133
|
return document.scrollingElement || document.documentElement;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ut(t, l = { behavior: "smooth", block: "start" }) {
|
|
136
136
|
if (!t) return;
|
|
137
|
-
const o =
|
|
137
|
+
const o = jt(t), n = o.getBoundingClientRect(), i = t.getBoundingClientRect().top - n.top + o.scrollTop;
|
|
138
138
|
o.scrollTo({
|
|
139
139
|
top: l.block === "start" ? i : i - o.clientHeight + t.offsetHeight,
|
|
140
140
|
behavior: l.behavior
|
|
@@ -147,115 +147,114 @@ const x = (t) => {
|
|
|
147
147
|
throw new Error("Toolbar button item needs either icon or label - " + t.name);
|
|
148
148
|
if (!t.name)
|
|
149
149
|
throw new Error("Invalid toolbar item name - " + t.name);
|
|
150
|
-
const o =
|
|
150
|
+
const o = y(Tt()), n = t.type, e = y(t.name), i = t.command, c = t.noArgumentCommand, a = y(t.icon), s = y(t.group || "center"), r = y(t.allowWithoutEditor), d = y(t.attributes || {}), u = t.disabled || !1, b = y(t.disabled), v = y(!1), h = y(!1), E = y(t.style), g = y(t.isNarrow), $ = y(t.isWide), L = y(t.minWidth), p = y(t.suppressActiveHighlight || !1), C = y(t.argument), F = y(null), z = y(null), B = y(t.iconColor), q = y(t.hasCaret), ve = y(t.dropdownStyles), ye = y(t.tooltip), ue = y(t.tooltipVisible), me = y(t.tooltipTimeout), T = y(t.defaultLabel), M = y(t.label), H = y(t.hideLabel), R = y(t.inlineTextInputVisible), X = y(t.hasInlineTextInput), Z = y(t.markName), re = y(t.labelAttr), pe = y(t.selectedValue), Te = y(t.dropdownValueKey), ke = y([]);
|
|
151
151
|
if (t.options) {
|
|
152
152
|
if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
|
|
153
|
-
|
|
153
|
+
ke.value.push(...t.options);
|
|
154
154
|
}
|
|
155
155
|
const Fe = (se) => {
|
|
156
|
-
|
|
156
|
+
_e(se), !p.value && (v.value = !0);
|
|
157
157
|
}, Ie = () => {
|
|
158
|
-
|
|
159
|
-
},
|
|
158
|
+
xe(), v.value = !1;
|
|
159
|
+
}, Ce = (se) => {
|
|
160
160
|
b.value = se;
|
|
161
|
-
},
|
|
161
|
+
}, ie = () => {
|
|
162
162
|
b.value = u;
|
|
163
|
-
},
|
|
163
|
+
}, _e = t.onActivate || (() => null), xe = t.onDeactivate || (() => null), Le = () => {
|
|
164
164
|
const se = {};
|
|
165
|
-
return Object.keys(
|
|
166
|
-
|
|
165
|
+
return Object.keys(ce).forEach((te) => {
|
|
166
|
+
ce[te].value !== void 0 && (se[te] = ce[te].value);
|
|
167
167
|
}), se;
|
|
168
|
-
},
|
|
168
|
+
}, ce = {
|
|
169
169
|
id: o,
|
|
170
170
|
name: e,
|
|
171
171
|
type: n,
|
|
172
172
|
command: i,
|
|
173
|
-
noArgumentCommand:
|
|
173
|
+
noArgumentCommand: c,
|
|
174
174
|
icon: a,
|
|
175
|
-
tooltip:
|
|
175
|
+
tooltip: ye,
|
|
176
176
|
group: s,
|
|
177
177
|
attributes: d,
|
|
178
178
|
disabled: b,
|
|
179
179
|
active: v,
|
|
180
|
-
expand:
|
|
181
|
-
nestedOptions:
|
|
182
|
-
style:
|
|
180
|
+
expand: h,
|
|
181
|
+
nestedOptions: ke,
|
|
182
|
+
style: E,
|
|
183
183
|
isNarrow: g,
|
|
184
|
-
isWide:
|
|
185
|
-
minWidth:
|
|
186
|
-
argument:
|
|
187
|
-
parentItem:
|
|
188
|
-
iconColor:
|
|
189
|
-
hasCaret:
|
|
190
|
-
dropdownStyles:
|
|
191
|
-
tooltipVisible:
|
|
192
|
-
tooltipTimeout:
|
|
193
|
-
defaultLabel:
|
|
184
|
+
isWide: $,
|
|
185
|
+
minWidth: L,
|
|
186
|
+
argument: C,
|
|
187
|
+
parentItem: z,
|
|
188
|
+
iconColor: B,
|
|
189
|
+
hasCaret: q,
|
|
190
|
+
dropdownStyles: ve,
|
|
191
|
+
tooltipVisible: ue,
|
|
192
|
+
tooltipTimeout: me,
|
|
193
|
+
defaultLabel: T,
|
|
194
194
|
label: M,
|
|
195
195
|
hideLabel: H,
|
|
196
196
|
inlineTextInputVisible: R,
|
|
197
|
-
hasInlineTextInput:
|
|
198
|
-
markName:
|
|
199
|
-
labelAttr:
|
|
200
|
-
childItem:
|
|
201
|
-
allowWithoutEditor:
|
|
202
|
-
dropdownValueKey:
|
|
203
|
-
selectedValue:
|
|
204
|
-
inputRef: xe
|
|
197
|
+
hasInlineTextInput: X,
|
|
198
|
+
markName: Z,
|
|
199
|
+
labelAttr: re,
|
|
200
|
+
childItem: F,
|
|
201
|
+
allowWithoutEditor: r,
|
|
202
|
+
dropdownValueKey: Te,
|
|
203
|
+
selectedValue: pe
|
|
205
204
|
};
|
|
206
205
|
return {
|
|
207
|
-
...
|
|
208
|
-
unref:
|
|
206
|
+
...ce,
|
|
207
|
+
unref: Le,
|
|
209
208
|
activate: Fe,
|
|
210
209
|
deactivate: Ie,
|
|
211
|
-
setDisabled:
|
|
212
|
-
resetDisabled:
|
|
213
|
-
onActivate:
|
|
214
|
-
onDeactivate:
|
|
210
|
+
setDisabled: Ce,
|
|
211
|
+
resetDisabled: ie,
|
|
212
|
+
onActivate: _e,
|
|
213
|
+
onDeactivate: xe
|
|
215
214
|
};
|
|
216
|
-
},
|
|
215
|
+
}, qt = { class: "alignment-buttons" }, Gt = ["innerHTML"], Kt = ["innerHTML"], Xt = ["innerHTML"], Zt = ["innerHTML"], Yt = {
|
|
217
216
|
__name: "AlignmentButtons",
|
|
218
217
|
emits: ["select"],
|
|
219
218
|
setup(t, { emit: l }) {
|
|
220
219
|
const o = l, n = (e) => {
|
|
221
220
|
o("select", e);
|
|
222
221
|
};
|
|
223
|
-
return (e, i) => (w(), k("div",
|
|
224
|
-
|
|
222
|
+
return (e, i) => (w(), k("div", qt, [
|
|
223
|
+
_("div", {
|
|
225
224
|
class: "button-icon",
|
|
226
|
-
onClick: i[0] || (i[0] = (
|
|
227
|
-
innerHTML: D(
|
|
228
|
-
}, null, 8,
|
|
229
|
-
|
|
225
|
+
onClick: i[0] || (i[0] = (c) => n("left")),
|
|
226
|
+
innerHTML: D(G).alignLeft
|
|
227
|
+
}, null, 8, Gt),
|
|
228
|
+
_("div", {
|
|
230
229
|
class: "button-icon",
|
|
231
|
-
onClick: i[1] || (i[1] = (
|
|
232
|
-
innerHTML: D(
|
|
233
|
-
}, null, 8,
|
|
234
|
-
|
|
230
|
+
onClick: i[1] || (i[1] = (c) => n("center")),
|
|
231
|
+
innerHTML: D(G).alignCenter
|
|
232
|
+
}, null, 8, Kt),
|
|
233
|
+
_("div", {
|
|
235
234
|
class: "button-icon",
|
|
236
|
-
onClick: i[2] || (i[2] = (
|
|
237
|
-
innerHTML: D(
|
|
238
|
-
}, null, 8,
|
|
239
|
-
|
|
235
|
+
onClick: i[2] || (i[2] = (c) => n("right")),
|
|
236
|
+
innerHTML: D(G).alignRight
|
|
237
|
+
}, null, 8, Xt),
|
|
238
|
+
_("div", {
|
|
240
239
|
class: "button-icon",
|
|
241
|
-
onClick: i[3] || (i[3] = (
|
|
242
|
-
innerHTML: D(
|
|
243
|
-
}, null, 8,
|
|
240
|
+
onClick: i[3] || (i[3] = (c) => n("justify")),
|
|
241
|
+
innerHTML: D(G).alignJustify
|
|
242
|
+
}, null, 8, Zt)
|
|
244
243
|
]));
|
|
245
244
|
}
|
|
246
|
-
},
|
|
245
|
+
}, Jt = /* @__PURE__ */ K(Yt, [["__scopeId", "data-v-d6fae878"]]), Qt = { class: "link-input-ctn" }, en = {
|
|
247
246
|
key: 0,
|
|
248
247
|
class: "link-title"
|
|
249
|
-
},
|
|
248
|
+
}, tn = {
|
|
250
249
|
key: 1,
|
|
251
250
|
class: "link-title"
|
|
252
|
-
},
|
|
251
|
+
}, nn = {
|
|
253
252
|
key: 2,
|
|
254
253
|
class: "link-title"
|
|
255
|
-
},
|
|
254
|
+
}, on = { key: 3 }, sn = { class: "input-row" }, ln = ["innerHTML"], an = ["onKeydown"], rn = ["innerHTML"], cn = { class: "input-row link-buttons" }, dn = ["innerHTML"], un = {
|
|
256
255
|
key: 4,
|
|
257
256
|
class: "input-row go-to-anchor clickable"
|
|
258
|
-
},
|
|
257
|
+
}, mn = {
|
|
259
258
|
__name: "LinkInput",
|
|
260
259
|
props: {
|
|
261
260
|
initialText: {
|
|
@@ -282,87 +281,87 @@ const x = (t) => {
|
|
|
282
281
|
},
|
|
283
282
|
emits: ["submit", "cancel"],
|
|
284
283
|
setup(t, { emit: l }) {
|
|
285
|
-
const o = l, n = t, { proxy: e } =
|
|
286
|
-
if (e?.$submit instanceof Function && e.$submit(),
|
|
284
|
+
const o = l, n = t, { proxy: e } = Lt(), i = () => {
|
|
285
|
+
if (e?.$submit instanceof Function && e.$submit(), r.value && u.value) {
|
|
287
286
|
o("submit", { text: s.value, href: d.value });
|
|
288
287
|
return;
|
|
289
|
-
} else if (!
|
|
288
|
+
} else if (!r.value) {
|
|
290
289
|
o("submit", { text: s.value, href: null });
|
|
291
290
|
return;
|
|
292
291
|
}
|
|
293
292
|
console.debug("[LinkInput] Invalid URL in handleSubmit"), a.value = !0;
|
|
294
|
-
},
|
|
293
|
+
}, c = () => {
|
|
295
294
|
o("submit", { text: s.value, href: null });
|
|
296
|
-
}, a =
|
|
295
|
+
}, a = y(!1), s = y(n.initialText), r = y(n.href), d = j(() => r.value?.startsWith("http") ? r.value : "http://" + r.value), u = j(() => {
|
|
297
296
|
const p = d.value.split(".").filter(Boolean);
|
|
298
297
|
return d.value.includes(".") && p.length > 1;
|
|
299
|
-
}), b = j(() =>
|
|
298
|
+
}), b = j(() => h.value ? "Apply" : "Remove"), v = j(() => !u.value), h = j(() => !E.value), E = j(() => n.href && !r.value), g = j(() => n.href.startsWith("#")), $ = () => {
|
|
300
299
|
window.open(d.value, "_blank");
|
|
301
300
|
};
|
|
302
|
-
|
|
301
|
+
Mt(
|
|
303
302
|
() => n.href,
|
|
304
303
|
(p) => {
|
|
305
|
-
|
|
304
|
+
r.value = p;
|
|
306
305
|
}
|
|
307
306
|
);
|
|
308
|
-
const
|
|
307
|
+
const L = () => {
|
|
309
308
|
const p = document.querySelector(".link-input-ctn input");
|
|
310
309
|
p && p.focus();
|
|
311
310
|
};
|
|
312
|
-
return
|
|
313
|
-
n.showInput &&
|
|
314
|
-
}), (p,
|
|
315
|
-
t.href ? g.value ? (w(), k("div",
|
|
316
|
-
t.showInput && !g.value ? (w(), k("div",
|
|
317
|
-
|
|
318
|
-
|
|
311
|
+
return we(() => {
|
|
312
|
+
n.showInput && L();
|
|
313
|
+
}), (p, C) => (w(), k("div", Qt, [
|
|
314
|
+
t.href ? g.value ? (w(), k("div", tn, "Page anchor")) : (w(), k("div", nn, "Edit link")) : (w(), k("div", en, "Add link")),
|
|
315
|
+
t.showInput && !g.value ? (w(), k("div", on, [
|
|
316
|
+
_("div", sn, [
|
|
317
|
+
_("div", {
|
|
319
318
|
class: "input-icon",
|
|
320
|
-
innerHTML: D(
|
|
321
|
-
}, null, 8,
|
|
322
|
-
|
|
319
|
+
innerHTML: D(G).linkInput
|
|
320
|
+
}, null, 8, ln),
|
|
321
|
+
Dt(_("input", {
|
|
323
322
|
type: "text",
|
|
324
323
|
placeholder: "Type or paste a link",
|
|
325
|
-
class:
|
|
326
|
-
"onUpdate:modelValue":
|
|
324
|
+
class: ne({ error: a.value }),
|
|
325
|
+
"onUpdate:modelValue": C[0] || (C[0] = (F) => r.value = F),
|
|
327
326
|
onKeydown: [
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
$t(be(i, ["stop", "prevent"]), ["enter"]),
|
|
328
|
+
C[1] || (C[1] = (F) => a.value = !1)
|
|
330
329
|
]
|
|
331
|
-
}, null, 42,
|
|
332
|
-
[
|
|
330
|
+
}, null, 42, an), [
|
|
331
|
+
[Ht, r.value]
|
|
333
332
|
]),
|
|
334
|
-
|
|
335
|
-
class:
|
|
336
|
-
innerHTML: D(
|
|
337
|
-
onClick:
|
|
338
|
-
}, null, 10,
|
|
333
|
+
_("div", {
|
|
334
|
+
class: ne(["open-link-icon", { disabled: !u.value }]),
|
|
335
|
+
innerHTML: D(G).openLink,
|
|
336
|
+
onClick: $
|
|
337
|
+
}, null, 10, rn)
|
|
339
338
|
]),
|
|
340
|
-
|
|
339
|
+
_("div", cn, [
|
|
341
340
|
t.href ? (w(), k("button", {
|
|
342
341
|
key: 0,
|
|
343
342
|
class: "remove-btn",
|
|
344
|
-
onClick:
|
|
343
|
+
onClick: c
|
|
345
344
|
}, [
|
|
346
|
-
|
|
345
|
+
_("div", {
|
|
347
346
|
class: "remove-btn__icon",
|
|
348
|
-
innerHTML: D(
|
|
349
|
-
}, null, 8,
|
|
350
|
-
|
|
347
|
+
innerHTML: D(G).removeLink
|
|
348
|
+
}, null, 8, dn),
|
|
349
|
+
C[3] || (C[3] = Ze(" Remove "))
|
|
351
350
|
])) : Q("", !0),
|
|
352
|
-
|
|
351
|
+
h.value ? (w(), k("button", {
|
|
353
352
|
key: 1,
|
|
354
|
-
class:
|
|
353
|
+
class: ne(["submit-btn", { "disable-btn": v.value }]),
|
|
355
354
|
onClick: i
|
|
356
|
-
},
|
|
355
|
+
}, oe(b.value), 3)) : Q("", !0)
|
|
357
356
|
])
|
|
358
|
-
])) : g.value ? (w(), k("div",
|
|
359
|
-
|
|
360
|
-
onClick:
|
|
361
|
-
}, "Go to " +
|
|
357
|
+
])) : g.value ? (w(), k("div", un, [
|
|
358
|
+
_("a", {
|
|
359
|
+
onClick: C[2] || (C[2] = be((...F) => t.goToAnchor && t.goToAnchor(...F), ["stop", "prevent"]))
|
|
360
|
+
}, "Go to " + oe(t.href.startsWith("#_") ? t.href.substring(2) : t.href), 1)
|
|
362
361
|
])) : Q("", !0)
|
|
363
362
|
]));
|
|
364
363
|
}
|
|
365
|
-
},
|
|
364
|
+
}, pn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-6990d5b2"]]), fn = { class: "document-mode" }, hn = ["onClick"], gn = { class: "document-mode-column icon-column" }, vn = ["innerHTML"], yn = { class: "document-mode-column text-column" }, bn = { class: "document-mode-type" }, wn = { class: "document-mode-description" }, kn = {
|
|
366
365
|
__name: "DocumentMode",
|
|
367
366
|
props: {
|
|
368
367
|
options: {
|
|
@@ -374,28 +373,28 @@ const x = (t) => {
|
|
|
374
373
|
const o = l, n = (e) => {
|
|
375
374
|
o("select", e);
|
|
376
375
|
};
|
|
377
|
-
return (e, i) => (w(), k("div",
|
|
378
|
-
(w(!0), k(U, null, ee(t.options, (
|
|
379
|
-
class:
|
|
380
|
-
onClick: (a) => n(
|
|
376
|
+
return (e, i) => (w(), k("div", fn, [
|
|
377
|
+
(w(!0), k(U, null, ee(t.options, (c) => (w(), k("div", {
|
|
378
|
+
class: ne(["option-item", { disabled: c.disabled }]),
|
|
379
|
+
onClick: (a) => n(c)
|
|
381
380
|
}, [
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
_("div", gn, [
|
|
382
|
+
_("div", {
|
|
384
383
|
class: "icon-column__icon",
|
|
385
|
-
innerHTML:
|
|
386
|
-
}, null, 8,
|
|
384
|
+
innerHTML: c.icon
|
|
385
|
+
}, null, 8, vn)
|
|
387
386
|
]),
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
387
|
+
_("div", yn, [
|
|
388
|
+
_("div", bn, oe(c.label), 1),
|
|
389
|
+
_("div", wn, oe(c.description), 1)
|
|
391
390
|
])
|
|
392
|
-
], 10,
|
|
391
|
+
], 10, hn))), 256))
|
|
393
392
|
]));
|
|
394
393
|
}
|
|
395
|
-
},
|
|
394
|
+
}, Cn = /* @__PURE__ */ K(kn, [["__scopeId", "data-v-f86e1477"]]), _n = {
|
|
396
395
|
key: 0,
|
|
397
396
|
class: "linked-style-buttons"
|
|
398
|
-
},
|
|
397
|
+
}, xn = ["onClick"], En = {
|
|
399
398
|
__name: "LinkedStyle",
|
|
400
399
|
props: {
|
|
401
400
|
editor: {
|
|
@@ -408,19 +407,19 @@ const x = (t) => {
|
|
|
408
407
|
const o = l, n = t, e = (i) => {
|
|
409
408
|
o("select", i);
|
|
410
409
|
};
|
|
411
|
-
return (i,
|
|
412
|
-
(w(!0), k(U, null, ee(D(
|
|
410
|
+
return (i, c) => n.editor ? (w(), k("div", _n, [
|
|
411
|
+
(w(!0), k(U, null, ee(D(Ke)(t.editor), (a) => (w(), k("div", {
|
|
413
412
|
class: "style-item",
|
|
414
413
|
onClick: (s) => e(a)
|
|
415
414
|
}, [
|
|
416
|
-
|
|
415
|
+
_("div", {
|
|
417
416
|
class: "style-name",
|
|
418
|
-
style: J(D(
|
|
419
|
-
},
|
|
420
|
-
], 8,
|
|
417
|
+
style: J(D(ft)(a, null, !1))
|
|
418
|
+
}, oe(a.definition.attrs.name), 5)
|
|
419
|
+
], 8, xn))), 256))
|
|
421
420
|
])) : Q("", !0);
|
|
422
421
|
}
|
|
423
|
-
},
|
|
422
|
+
}, Sn = /* @__PURE__ */ K(En, [["__scopeId", "data-v-97e3296a"]]), An = ["onClick"], Tn = ["innerHTML"], Fn = ["innerHTML"], In = {
|
|
424
423
|
__name: "IconGridRow",
|
|
425
424
|
props: {
|
|
426
425
|
icons: {
|
|
@@ -434,36 +433,36 @@ const x = (t) => {
|
|
|
434
433
|
},
|
|
435
434
|
emits: ["select"],
|
|
436
435
|
setup(t, { emit: l }) {
|
|
437
|
-
const o = l, n = t, e = j(() => (a) => n.activeColor.value ? n.activeColor.value.toUpperCase() === a.value : !1), i = (a, s) => s === 5 || ["#FFFFFF", "#FAFF09"].includes(a) ? { color: "#000" } : { color: "#FFF" },
|
|
436
|
+
const o = l, n = t, e = j(() => (a) => n.activeColor.value ? n.activeColor.value.toUpperCase() === a.value : !1), i = (a, s) => s === 5 || ["#FFFFFF", "#FAFF09"].includes(a) ? { color: "#000" } : { color: "#FFF" }, c = (a) => {
|
|
438
437
|
o("select", a.value);
|
|
439
438
|
};
|
|
440
|
-
return
|
|
439
|
+
return we(() => {
|
|
441
440
|
if (!n.icons.every((s) => Array.isArray(s))) throw new Error("icon props must be 2d array");
|
|
442
|
-
}), (a, s) => (w(!0), k(U, null, ee(t.icons, (
|
|
441
|
+
}), (a, s) => (w(!0), k(U, null, ee(t.icons, (r, d) => (w(), k("div", {
|
|
443
442
|
class: "option-row",
|
|
444
443
|
key: d
|
|
445
444
|
}, [
|
|
446
|
-
(w(!0), k(U, null, ee(
|
|
445
|
+
(w(!0), k(U, null, ee(r, (u, b) => (w(), k("div", {
|
|
447
446
|
class: "option",
|
|
448
447
|
key: b,
|
|
449
|
-
onClick:
|
|
448
|
+
onClick: be((v) => c(u), ["stop", "prevent"])
|
|
450
449
|
}, [
|
|
451
|
-
|
|
450
|
+
_("div", {
|
|
452
451
|
class: "option__icon",
|
|
453
452
|
innerHTML: u.icon,
|
|
454
453
|
style: J(u.style)
|
|
455
|
-
}, null, 12,
|
|
454
|
+
}, null, 12, Tn),
|
|
456
455
|
e.value(u) ? (w(), k("div", {
|
|
457
456
|
key: 0,
|
|
458
457
|
class: "option__check",
|
|
459
|
-
innerHTML: D(
|
|
458
|
+
innerHTML: D(G).colorOptionCheck,
|
|
460
459
|
style: J(i(u.value, b))
|
|
461
|
-
}, null, 12,
|
|
462
|
-
], 8,
|
|
460
|
+
}, null, 12, Fn)) : Q("", !0)
|
|
461
|
+
], 8, An))), 128))
|
|
463
462
|
]))), 128));
|
|
464
463
|
}
|
|
465
|
-
},
|
|
466
|
-
`,
|
|
464
|
+
}, Ge = /* @__PURE__ */ K(In, [["__scopeId", "data-v-6a2a9a40"]]), Ln = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M320 512c53.2 0 101.4-21.6 136.1-56.6l-298.3-235C140 257.1 128 292.3 128 320c0 106 86 192 192 192zM505.2 370.7c4.4-16.2 6.8-33.1 6.8-50.7c0-91.2-130.2-262.3-166.6-308.3C339.4 4.2 330.5 0 320.9 0l-1.8 0c-9.6 0-18.5 4.2-24.5 11.7C277.8 33 240.7 81.3 205.8 136L38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L505.2 370.7zM224 336c0 44.2 35.8 80 80 80c8.8 0 16 7.2 16 16s-7.2 16-16 16c-61.9 0-112-50.1-112-112c0-8.8 7.2-16 16-16s16 7.2 16 16z"/></svg>
|
|
465
|
+
`, Mn = { class: "options-grid-wrap" }, Dn = ["innerHTML"], $n = { class: "option-grid-ctn" }, Hn = {
|
|
467
466
|
__name: "IconGrid",
|
|
468
467
|
props: {
|
|
469
468
|
icons: {
|
|
@@ -488,27 +487,27 @@ const x = (t) => {
|
|
|
488
487
|
const o = l, n = (e) => {
|
|
489
488
|
o("select", e);
|
|
490
489
|
};
|
|
491
|
-
return (e, i) => (w(), k("div",
|
|
490
|
+
return (e, i) => (w(), k("div", Mn, [
|
|
492
491
|
t.hasNoneIcon ? (w(), k("div", {
|
|
493
492
|
key: 0,
|
|
494
493
|
class: "none-option",
|
|
495
|
-
onClick: i[0] || (i[0] = (
|
|
494
|
+
onClick: i[0] || (i[0] = (c) => n("none"))
|
|
496
495
|
}, [
|
|
497
|
-
|
|
498
|
-
innerHTML: D(
|
|
496
|
+
_("span", {
|
|
497
|
+
innerHTML: D(Ln),
|
|
499
498
|
class: "none-icon"
|
|
500
|
-
}, null, 8,
|
|
501
|
-
i[1] || (i[1] =
|
|
499
|
+
}, null, 8, Dn),
|
|
500
|
+
i[1] || (i[1] = Ze(" None "))
|
|
502
501
|
])) : Q("", !0),
|
|
503
|
-
|
|
504
|
-
|
|
502
|
+
_("div", $n, [
|
|
503
|
+
V(Ge, {
|
|
505
504
|
icons: t.icons,
|
|
506
505
|
"active-color": t.activeColor,
|
|
507
506
|
onSelect: n
|
|
508
507
|
}, null, 8, ["icons", "active-color"]),
|
|
509
508
|
t.customIcons.flat().length ? (w(), k(U, { key: 0 }, [
|
|
510
|
-
i[2] || (i[2] =
|
|
511
|
-
|
|
509
|
+
i[2] || (i[2] = _("span", { class: "option-grid-ctn__subtitle" }, "Custom colors", -1)),
|
|
510
|
+
V(Ge, {
|
|
512
511
|
icons: t.customIcons,
|
|
513
512
|
"active-color": t.activeColor,
|
|
514
513
|
onSelect: n
|
|
@@ -517,141 +516,141 @@ const x = (t) => {
|
|
|
517
516
|
])
|
|
518
517
|
]));
|
|
519
518
|
}
|
|
520
|
-
},
|
|
519
|
+
}, Bn = /* @__PURE__ */ K(Hn, [["__scopeId", "data-v-47b783db"]]), Rn = (t) => {
|
|
521
520
|
t.expand.value = !1;
|
|
522
|
-
},
|
|
521
|
+
}, f = (t, l = null) => ({
|
|
523
522
|
label: l,
|
|
524
|
-
icon:
|
|
523
|
+
icon: G.colorOption,
|
|
525
524
|
value: t,
|
|
526
525
|
style: {
|
|
527
526
|
color: t,
|
|
528
527
|
boxShadow: "0 0 5px 1px rgba(0, 0, 0, 0.1)",
|
|
529
528
|
borderRadius: "50%"
|
|
530
529
|
}
|
|
531
|
-
}),
|
|
530
|
+
}), Ne = (t, l, o = [], n = !1) => {
|
|
532
531
|
const e = (i) => {
|
|
533
|
-
l.iconColor.value = i, t.emitCommand({ item: l, argument: i }),
|
|
532
|
+
l.iconColor.value = i, t.emitCommand({ item: l, argument: i }), Rn(l);
|
|
534
533
|
};
|
|
535
|
-
return
|
|
536
|
-
|
|
537
|
-
icons:
|
|
534
|
+
return N("div", {}, [
|
|
535
|
+
N(Bn, {
|
|
536
|
+
icons: et,
|
|
538
537
|
customIcons: o,
|
|
539
538
|
activeColor: l.iconColor,
|
|
540
539
|
hasNoneIcon: n,
|
|
541
540
|
onSelect: e
|
|
542
541
|
})
|
|
543
542
|
]);
|
|
544
|
-
},
|
|
543
|
+
}, et = [
|
|
545
544
|
[
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
545
|
+
f("#111111"),
|
|
546
|
+
f("#333333"),
|
|
547
|
+
f("#5C5C5C"),
|
|
548
|
+
f("#858585"),
|
|
549
|
+
f("#ADADAD"),
|
|
550
|
+
f("#D6D6D6"),
|
|
551
|
+
f("#FFFFFF")
|
|
553
552
|
],
|
|
554
553
|
[
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
554
|
+
f("#860028"),
|
|
555
|
+
f("#D2003F"),
|
|
556
|
+
f("#DB3365"),
|
|
557
|
+
f("#E4668C"),
|
|
558
|
+
f("#ED99B2"),
|
|
559
|
+
f("#F6CCD9"),
|
|
560
|
+
f("#FF004D")
|
|
562
561
|
],
|
|
563
562
|
[
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
563
|
+
f("#83015E"),
|
|
564
|
+
f("#CD0194"),
|
|
565
|
+
f("#D734A9"),
|
|
566
|
+
f("#E167BF"),
|
|
567
|
+
f("#EB99D4"),
|
|
568
|
+
f("#F5CCEA"),
|
|
569
|
+
f("#FF00A8")
|
|
571
570
|
],
|
|
572
571
|
[
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
572
|
+
f("#8E220A"),
|
|
573
|
+
f("#DD340F"),
|
|
574
|
+
f("#E45C3F"),
|
|
575
|
+
f("#EB856F"),
|
|
576
|
+
f("#F1AE9F"),
|
|
577
|
+
f("#F8D6CF"),
|
|
578
|
+
f("#FF7A00")
|
|
580
579
|
],
|
|
581
580
|
[
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
581
|
+
f("#947D02"),
|
|
582
|
+
f("#E7C302"),
|
|
583
|
+
f("#ECCF35"),
|
|
584
|
+
f("#F1DB67"),
|
|
585
|
+
f("#F5E79A"),
|
|
586
|
+
f("#FAF3CC"),
|
|
587
|
+
f("#FAFF09")
|
|
589
588
|
],
|
|
590
589
|
[
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
590
|
+
f("#055432"),
|
|
591
|
+
f("#07834F"),
|
|
592
|
+
f("#399C72"),
|
|
593
|
+
f("#6AB595"),
|
|
594
|
+
f("#9CCDB9"),
|
|
595
|
+
f("#CDE6DC"),
|
|
596
|
+
f("#05F38F")
|
|
598
597
|
],
|
|
599
598
|
[
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
599
|
+
f("#063E7E"),
|
|
600
|
+
f("#0A60C5"),
|
|
601
|
+
f("#3B80D1"),
|
|
602
|
+
f("#6CA0DC"),
|
|
603
|
+
f("#9DBFE8"),
|
|
604
|
+
f("#CEDFF3"),
|
|
605
|
+
f("#00E0FF")
|
|
607
606
|
],
|
|
608
607
|
[
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
608
|
+
f("#3E027A"),
|
|
609
|
+
f("#6103BF"),
|
|
610
|
+
f("#8136CC"),
|
|
611
|
+
f("#A068D9"),
|
|
612
|
+
f("#C09AE6"),
|
|
613
|
+
f("#DFCDF2"),
|
|
614
|
+
f("#A91DFF")
|
|
616
615
|
]
|
|
617
|
-
],
|
|
616
|
+
], On = () => et.flat().map((t) => t.value), Nn = { class: "toolbar-table-grid-wrapper" }, zn = ["data-cols", "data-rows", "onClick"], Wn = { class: "toolbar-table-grid-value" }, Pn = {
|
|
618
617
|
__name: "TableGrid",
|
|
619
618
|
emits: ["select", "clickoutside"],
|
|
620
619
|
setup(t, { emit: l }) {
|
|
621
|
-
const o = l, n =
|
|
620
|
+
const o = l, n = y(0), e = y(0), i = (a) => {
|
|
622
621
|
let s = a.target;
|
|
623
622
|
if (!!s.dataset.grid)
|
|
624
623
|
return;
|
|
625
624
|
let u = [...s.parentElement.querySelectorAll("[data-item]")], b = parseInt(s.dataset.cols, 10), v = parseInt(s.dataset.rows, 10);
|
|
626
625
|
e.value = b, n.value = v;
|
|
627
|
-
for (let
|
|
628
|
-
let
|
|
629
|
-
g <= b &&
|
|
626
|
+
for (let h = 0; h < u.length; h++) {
|
|
627
|
+
let E = u[h], g = parseInt(E.dataset.cols, 10), $ = parseInt(E.dataset.rows, 10);
|
|
628
|
+
g <= b && $ <= v ? E.classList.add("selected") : E.classList.remove("selected");
|
|
630
629
|
}
|
|
631
|
-
},
|
|
630
|
+
}, c = ({ cols: a, rows: s }) => {
|
|
632
631
|
o("select", { cols: a, rows: s });
|
|
633
632
|
};
|
|
634
|
-
return (a, s) => (w(), k("div",
|
|
635
|
-
|
|
633
|
+
return (a, s) => (w(), k("div", Nn, [
|
|
634
|
+
_("div", {
|
|
636
635
|
class: "toolbar-table-grid",
|
|
637
636
|
onMouseover: i,
|
|
638
637
|
"data-grid": "true"
|
|
639
638
|
}, [
|
|
640
|
-
(w(), k(U, null, ee(5, (
|
|
641
|
-
(w(), k(U, null, ee(5, (d) =>
|
|
639
|
+
(w(), k(U, null, ee(5, (r) => (w(), k(U, { key: r }, [
|
|
640
|
+
(w(), k(U, null, ee(5, (d) => _("div", {
|
|
642
641
|
class: "toolbar-table-grid__item",
|
|
643
|
-
key: `${
|
|
642
|
+
key: `${r}_${d}`,
|
|
644
643
|
"data-cols": d,
|
|
645
|
-
"data-rows":
|
|
644
|
+
"data-rows": r,
|
|
646
645
|
"data-item": "true",
|
|
647
|
-
onClick:
|
|
648
|
-
}, null, 8,
|
|
646
|
+
onClick: be((u) => c({ cols: d, rows: r }), ["stop", "prevent"])
|
|
647
|
+
}, null, 8, zn)), 64))
|
|
649
648
|
], 64))), 64))
|
|
650
649
|
], 32),
|
|
651
|
-
|
|
650
|
+
_("div", Wn, oe(n.value) + " x " + oe(e.value), 1)
|
|
652
651
|
]));
|
|
653
652
|
}
|
|
654
|
-
},
|
|
653
|
+
}, Vn = /* @__PURE__ */ K(Pn, [["__scopeId", "data-v-06352ab9"]]), jn = { class: "toolbar-table-actions" }, Un = ["onClick"], qn = { class: "toolbar-table-actions__icon" }, Gn = ["innerHTML"], Kn = { class: "toolbar-table-actions__label" }, Xn = {
|
|
655
654
|
__name: "TableActions",
|
|
656
655
|
props: {
|
|
657
656
|
options: {
|
|
@@ -663,66 +662,32 @@ const x = (t) => {
|
|
|
663
662
|
const o = l, n = (e) => {
|
|
664
663
|
o("select", { command: e.command });
|
|
665
664
|
};
|
|
666
|
-
return (e, i) => (w(), k("div",
|
|
667
|
-
(w(!0), k(U, null, ee(t.options, (
|
|
668
|
-
class:
|
|
669
|
-
onClick: (a) => n(
|
|
665
|
+
return (e, i) => (w(), k("div", jn, [
|
|
666
|
+
(w(!0), k(U, null, ee(t.options, (c) => (w(), k("div", {
|
|
667
|
+
class: ne(["toolbar-table-actions__item", { "toolbar-table-actions__item--border": c.bottomBorder }]),
|
|
668
|
+
onClick: (a) => n(c)
|
|
670
669
|
}, [
|
|
671
|
-
|
|
672
|
-
|
|
670
|
+
_("div", qn, [
|
|
671
|
+
_("div", {
|
|
673
672
|
class: "toolbar-table-actions__icon-wrapper",
|
|
674
|
-
innerHTML:
|
|
675
|
-
}, null, 8,
|
|
673
|
+
innerHTML: c.icon
|
|
674
|
+
}, null, 8, Gn)
|
|
676
675
|
]),
|
|
677
|
-
|
|
678
|
-
], 10,
|
|
676
|
+
_("div", Kn, oe(c.label), 1)
|
|
677
|
+
], 10, Un))), 256))
|
|
679
678
|
]));
|
|
680
679
|
}
|
|
681
|
-
},
|
|
682
|
-
`,
|
|
683
|
-
__name: "SearchInput",
|
|
684
|
-
props: {
|
|
685
|
-
searchRef: {
|
|
686
|
-
type: Object
|
|
687
|
-
}
|
|
688
|
-
},
|
|
689
|
-
emits: ["submit"],
|
|
690
|
-
setup(t, { emit: l }) {
|
|
691
|
-
const o = f(""), n = l, e = () => {
|
|
692
|
-
n("submit", { value: o.value });
|
|
693
|
-
};
|
|
694
|
-
return (i, r) => (w(), k("div", to, [
|
|
695
|
-
C("div", no, [
|
|
696
|
-
Je(C("input", {
|
|
697
|
-
ref: t.searchRef,
|
|
698
|
-
"onUpdate:modelValue": r[0] || (r[0] = (a) => o.value = a),
|
|
699
|
-
class: "search-input",
|
|
700
|
-
type: "text",
|
|
701
|
-
name: "search",
|
|
702
|
-
placeholder: "Type search string",
|
|
703
|
-
onKeydown: Qe(ge(e, ["stop", "prevent"]), ["enter"])
|
|
704
|
-
}, null, 40, oo), [
|
|
705
|
-
[et, o.value]
|
|
706
|
-
])
|
|
707
|
-
]),
|
|
708
|
-
C("div", { class: "row submit" }, [
|
|
709
|
-
C("button", {
|
|
710
|
-
class: "submit-btn",
|
|
711
|
-
onClick: e
|
|
712
|
-
}, " Apply ")
|
|
713
|
-
])
|
|
714
|
-
]));
|
|
715
|
-
}
|
|
716
|
-
}, so = /* @__PURE__ */ q(io, [["__scopeId", "data-v-af870fbd"]]), ae = (t) => {
|
|
680
|
+
}, Zn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-9a702d7f"]]), Yn = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
|
|
681
|
+
`, ae = (t) => {
|
|
717
682
|
t.expand.value = !1;
|
|
718
|
-
},
|
|
683
|
+
}, Jn = (t, l = !1, o, n, e) => {
|
|
719
684
|
const i = x({
|
|
720
685
|
type: "button",
|
|
721
686
|
name: "bold",
|
|
722
687
|
command: "toggleBold",
|
|
723
688
|
icon: e.bold,
|
|
724
689
|
tooltip: "Bold"
|
|
725
|
-
}),
|
|
690
|
+
}), c = x({
|
|
726
691
|
type: "dropdown",
|
|
727
692
|
name: "fontFamily",
|
|
728
693
|
tooltip: "Font",
|
|
@@ -770,9 +735,9 @@ const x = (t) => {
|
|
|
770
735
|
}
|
|
771
736
|
],
|
|
772
737
|
onActivate: ({ fontFamily: m }) => {
|
|
773
|
-
m && (
|
|
738
|
+
m && (c.label.value = m);
|
|
774
739
|
},
|
|
775
|
-
onDeactivate: () =>
|
|
740
|
+
onDeactivate: () => c.label.value = c.defaultLabel.value
|
|
776
741
|
}), a = x({
|
|
777
742
|
type: "dropdown",
|
|
778
743
|
dropdownStyles: {
|
|
@@ -780,7 +745,7 @@ const x = (t) => {
|
|
|
780
745
|
outline: "none"
|
|
781
746
|
},
|
|
782
747
|
name: "ai",
|
|
783
|
-
tooltip: "AI
|
|
748
|
+
tooltip: "AI text generation",
|
|
784
749
|
icon: e.ai,
|
|
785
750
|
hideLabel: !0,
|
|
786
751
|
hasCaret: !1,
|
|
@@ -793,14 +758,14 @@ const x = (t) => {
|
|
|
793
758
|
render: () => {
|
|
794
759
|
let m = "";
|
|
795
760
|
if (t.activeEditor) {
|
|
796
|
-
const { state: A } = t.activeEditor, { from:
|
|
797
|
-
m =
|
|
761
|
+
const { state: A } = t.activeEditor, { from: P, to: le, empty: ut } = A.selection;
|
|
762
|
+
m = ut ? "" : A.doc.textBetween(P, le);
|
|
798
763
|
}
|
|
799
|
-
return
|
|
764
|
+
return N(
|
|
800
765
|
"div",
|
|
801
766
|
{},
|
|
802
767
|
[
|
|
803
|
-
|
|
768
|
+
N(Wt, {
|
|
804
769
|
handleClose: () => {
|
|
805
770
|
ae(a);
|
|
806
771
|
},
|
|
@@ -848,11 +813,11 @@ const x = (t) => {
|
|
|
848
813
|
],
|
|
849
814
|
onActivate: ({ fontSize: m }) => {
|
|
850
815
|
if (!m) return s.label.value = s.defaultLabel.value;
|
|
851
|
-
let
|
|
852
|
-
|
|
816
|
+
let S = Nt(m, 12);
|
|
817
|
+
S < 8 && (S = 8), S > 96 && (S = 96), s.label.value = String(S);
|
|
853
818
|
},
|
|
854
819
|
onDeactivate: () => s.label.value = s.defaultLabel.value
|
|
855
|
-
}),
|
|
820
|
+
}), r = x({
|
|
856
821
|
type: "separator",
|
|
857
822
|
name: "separator",
|
|
858
823
|
isNarrow: !0
|
|
@@ -883,7 +848,7 @@ const x = (t) => {
|
|
|
883
848
|
{
|
|
884
849
|
key: "color",
|
|
885
850
|
type: "render",
|
|
886
|
-
render: () =>
|
|
851
|
+
render: () => Ne(t, b, [], !0)
|
|
887
852
|
}
|
|
888
853
|
],
|
|
889
854
|
onActivate: ({ color: m }) => {
|
|
@@ -904,35 +869,14 @@ const x = (t) => {
|
|
|
904
869
|
{
|
|
905
870
|
key: "color",
|
|
906
871
|
type: "render",
|
|
907
|
-
render: () =>
|
|
872
|
+
render: () => Ne(t, v)
|
|
908
873
|
}
|
|
909
874
|
],
|
|
910
875
|
onActivate: ({ color: m }) => {
|
|
911
876
|
v.iconColor.value = m;
|
|
912
877
|
},
|
|
913
878
|
onDeactivate: () => v.iconColor.value = "#000"
|
|
914
|
-
}),
|
|
915
|
-
type: "dropdown",
|
|
916
|
-
name: "search",
|
|
917
|
-
icon: e.search,
|
|
918
|
-
tooltip: "Search",
|
|
919
|
-
group: "right",
|
|
920
|
-
inputRef: y,
|
|
921
|
-
options: [
|
|
922
|
-
{
|
|
923
|
-
type: "render",
|
|
924
|
-
key: "searchDropdown",
|
|
925
|
-
render: () => g()
|
|
926
|
-
}
|
|
927
|
-
]
|
|
928
|
-
}), g = () => B("div", {}, [
|
|
929
|
-
B(so, {
|
|
930
|
-
onSubmit: ({ value: E }) => {
|
|
931
|
-
t.activeEditor.commands.search(E);
|
|
932
|
-
},
|
|
933
|
-
searchRef: y
|
|
934
|
-
})
|
|
935
|
-
]), F = x({
|
|
879
|
+
}), h = x({
|
|
936
880
|
type: "dropdown",
|
|
937
881
|
name: "link",
|
|
938
882
|
markName: "link",
|
|
@@ -942,47 +886,47 @@ const x = (t) => {
|
|
|
942
886
|
{
|
|
943
887
|
type: "render",
|
|
944
888
|
key: "linkDropdown",
|
|
945
|
-
render: () =>
|
|
889
|
+
render: () => E(h)
|
|
946
890
|
}
|
|
947
891
|
],
|
|
948
892
|
onActivate: ({ href: m }) => {
|
|
949
|
-
m ?
|
|
893
|
+
m ? h.attributes.value = { href: m } : h.attributes.value = {}, h.expand.value = !0;
|
|
950
894
|
},
|
|
951
895
|
onDeactivate: () => {
|
|
952
|
-
|
|
896
|
+
h.attributes.value = {}, h.expand.value = !1;
|
|
953
897
|
}
|
|
954
898
|
});
|
|
955
|
-
function
|
|
956
|
-
return
|
|
957
|
-
|
|
899
|
+
function E(m) {
|
|
900
|
+
return N("div", {}, [
|
|
901
|
+
N(pn, {
|
|
958
902
|
onSubmit: ({ href: A }) => {
|
|
959
903
|
ae(m), m.attributes.value.link = { href: A };
|
|
960
|
-
const
|
|
961
|
-
t.emitCommand({ item:
|
|
904
|
+
const P = { ...m, command: "toggleLink" };
|
|
905
|
+
t.emitCommand({ item: P, argument: { href: A, text: "" } }), A || (m.active.value = !1);
|
|
962
906
|
},
|
|
963
907
|
href: m.attributes.value.href,
|
|
964
908
|
goToAnchor: () => {
|
|
965
909
|
if (ae(m), !t.activeEditor || !m.attributes.value?.href) return;
|
|
966
910
|
const A = m.attributes.value?.href?.slice(1), le = t.activeEditor.element.querySelector(`a[name='${A}']`);
|
|
967
|
-
le &&
|
|
911
|
+
le && Ut(le);
|
|
968
912
|
}
|
|
969
913
|
})
|
|
970
914
|
]);
|
|
971
915
|
}
|
|
972
|
-
const
|
|
916
|
+
const g = x({
|
|
973
917
|
type: "options",
|
|
974
918
|
name: "linkInput",
|
|
975
919
|
command: "toggleLink"
|
|
976
920
|
});
|
|
977
|
-
|
|
978
|
-
const
|
|
921
|
+
h.childItem = g, g.parentItem = h;
|
|
922
|
+
const $ = x({
|
|
979
923
|
type: "button",
|
|
980
924
|
name: "image",
|
|
981
925
|
command: "startImageUpload",
|
|
982
926
|
icon: e.image,
|
|
983
927
|
tooltip: "Image",
|
|
984
928
|
disabled: !1
|
|
985
|
-
}),
|
|
929
|
+
}), L = x({
|
|
986
930
|
type: "dropdown",
|
|
987
931
|
name: "table",
|
|
988
932
|
icon: e.table,
|
|
@@ -995,20 +939,20 @@ const x = (t) => {
|
|
|
995
939
|
{
|
|
996
940
|
key: "table",
|
|
997
941
|
type: "render",
|
|
998
|
-
render: () =>
|
|
942
|
+
render: () => p(L)
|
|
999
943
|
}
|
|
1000
944
|
]
|
|
1001
945
|
});
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1004
|
-
|
|
946
|
+
function p(m) {
|
|
947
|
+
return N("div", {}, [
|
|
948
|
+
N(Vn, {
|
|
1005
949
|
onSelect: (A) => {
|
|
1006
950
|
t.emitCommand({ item: m, argument: A }), ae(m);
|
|
1007
951
|
}
|
|
1008
952
|
})
|
|
1009
953
|
]);
|
|
1010
954
|
}
|
|
1011
|
-
const
|
|
955
|
+
const C = x({
|
|
1012
956
|
type: "dropdown",
|
|
1013
957
|
name: "tableActions",
|
|
1014
958
|
command: "executeTableCommand",
|
|
@@ -1018,10 +962,10 @@ const x = (t) => {
|
|
|
1018
962
|
options: [
|
|
1019
963
|
{
|
|
1020
964
|
type: "render",
|
|
1021
|
-
render: () =>
|
|
965
|
+
render: () => z(C)
|
|
1022
966
|
}
|
|
1023
967
|
]
|
|
1024
|
-
}),
|
|
968
|
+
}), F = [
|
|
1025
969
|
{
|
|
1026
970
|
label: "Insert row above",
|
|
1027
971
|
command: "addRowBefore",
|
|
@@ -1080,17 +1024,17 @@ const x = (t) => {
|
|
|
1080
1024
|
icon: e.fixTables
|
|
1081
1025
|
}
|
|
1082
1026
|
];
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1085
|
-
options:
|
|
1086
|
-
onSelect: (
|
|
1027
|
+
function z(m) {
|
|
1028
|
+
return N(Zn, {
|
|
1029
|
+
options: F,
|
|
1030
|
+
onSelect: (S) => {
|
|
1087
1031
|
ae(m);
|
|
1088
|
-
const { command: A } =
|
|
1032
|
+
const { command: A } = S;
|
|
1089
1033
|
t.emitCommand({ item: m, argument: { command: A } });
|
|
1090
1034
|
}
|
|
1091
1035
|
});
|
|
1092
1036
|
}
|
|
1093
|
-
const
|
|
1037
|
+
const B = x({
|
|
1094
1038
|
type: "dropdown",
|
|
1095
1039
|
name: "textAlign",
|
|
1096
1040
|
tooltip: "Alignment",
|
|
@@ -1103,12 +1047,12 @@ const x = (t) => {
|
|
|
1103
1047
|
options: [
|
|
1104
1048
|
{
|
|
1105
1049
|
type: "render",
|
|
1106
|
-
render: () =>
|
|
1107
|
-
|
|
1108
|
-
onSelect: (
|
|
1109
|
-
ae(
|
|
1110
|
-
const A = { ...
|
|
1111
|
-
A.command = "setTextAlign", t.emitCommand({ item: A, argument:
|
|
1050
|
+
render: () => N("div", {}, [
|
|
1051
|
+
N(Jt, {
|
|
1052
|
+
onSelect: (S) => {
|
|
1053
|
+
ae(B);
|
|
1054
|
+
const A = { ...B, command: "setTextAlign" };
|
|
1055
|
+
A.command = "setTextAlign", t.emitCommand({ item: A, argument: S }), q(B, S);
|
|
1112
1056
|
}
|
|
1113
1057
|
})
|
|
1114
1058
|
]),
|
|
@@ -1116,52 +1060,52 @@ const x = (t) => {
|
|
|
1116
1060
|
}
|
|
1117
1061
|
],
|
|
1118
1062
|
onActivate: ({ textAlign: m }) => {
|
|
1119
|
-
|
|
1063
|
+
q(B, m);
|
|
1120
1064
|
},
|
|
1121
1065
|
onDeactivate: () => {
|
|
1122
|
-
|
|
1066
|
+
q(B, "left");
|
|
1123
1067
|
}
|
|
1124
|
-
}),
|
|
1125
|
-
let A =
|
|
1068
|
+
}), q = (m, S) => {
|
|
1069
|
+
let A = S === "both" ? "justify" : S, P = {
|
|
1126
1070
|
left: e.alignLeft,
|
|
1127
1071
|
right: e.alignRight,
|
|
1128
1072
|
center: e.alignCenter,
|
|
1129
1073
|
justify: e.alignJustify
|
|
1130
|
-
}, le =
|
|
1074
|
+
}, le = P[A] ?? P.left;
|
|
1131
1075
|
m.icon.value = le;
|
|
1132
|
-
},
|
|
1076
|
+
}, ve = x({
|
|
1133
1077
|
type: "button",
|
|
1134
1078
|
name: "list",
|
|
1135
1079
|
command: "toggleBulletList",
|
|
1136
1080
|
icon: e.bulletList,
|
|
1137
1081
|
tooltip: "Bullet list"
|
|
1138
|
-
}),
|
|
1082
|
+
}), ye = x({
|
|
1139
1083
|
type: "button",
|
|
1140
1084
|
name: "numberedlist",
|
|
1141
1085
|
command: "toggleOrderedList",
|
|
1142
1086
|
icon: e.numberedList,
|
|
1143
1087
|
tooltip: "Numbered list"
|
|
1144
|
-
}),
|
|
1088
|
+
}), ue = x({
|
|
1145
1089
|
type: "button",
|
|
1146
1090
|
name: "indentleft",
|
|
1147
1091
|
command: "decreaseTextIndent",
|
|
1148
1092
|
icon: e.indentLeft,
|
|
1149
1093
|
tooltip: "Left indent",
|
|
1150
1094
|
disabled: !1
|
|
1151
|
-
}),
|
|
1095
|
+
}), me = x({
|
|
1152
1096
|
type: "button",
|
|
1153
1097
|
name: "indentright",
|
|
1154
1098
|
command: "increaseTextIndent",
|
|
1155
1099
|
icon: e.indentRight,
|
|
1156
1100
|
tooltip: "Right indent",
|
|
1157
1101
|
disabled: !1
|
|
1158
|
-
}),
|
|
1102
|
+
}), T = x({
|
|
1159
1103
|
type: "overflow",
|
|
1160
1104
|
name: "overflow",
|
|
1161
1105
|
command: "toggleOverflow",
|
|
1162
1106
|
icon: e.overflow,
|
|
1163
1107
|
disabled: !1
|
|
1164
|
-
}),
|
|
1108
|
+
}), M = x({
|
|
1165
1109
|
type: "dropdown",
|
|
1166
1110
|
name: "zoom",
|
|
1167
1111
|
allowWithoutEditor: !0,
|
|
@@ -1183,9 +1127,9 @@ const x = (t) => {
|
|
|
1183
1127
|
{ label: "200%", key: 2 }
|
|
1184
1128
|
],
|
|
1185
1129
|
onActivate: ({ zoom: m }) => {
|
|
1186
|
-
m && (
|
|
1130
|
+
m && (M.label.value = m);
|
|
1187
1131
|
}
|
|
1188
|
-
}),
|
|
1132
|
+
}), H = x({
|
|
1189
1133
|
type: "button",
|
|
1190
1134
|
name: "undo",
|
|
1191
1135
|
disabled: !0,
|
|
@@ -1194,9 +1138,9 @@ const x = (t) => {
|
|
|
1194
1138
|
icon: e.undo,
|
|
1195
1139
|
group: "left",
|
|
1196
1140
|
onDeactivate: () => {
|
|
1197
|
-
|
|
1141
|
+
H.disabled.value = !t.undoDepth;
|
|
1198
1142
|
}
|
|
1199
|
-
}),
|
|
1143
|
+
}), R = x({
|
|
1200
1144
|
type: "button",
|
|
1201
1145
|
disabled: !0,
|
|
1202
1146
|
name: "redo",
|
|
@@ -1205,9 +1149,9 @@ const x = (t) => {
|
|
|
1205
1149
|
icon: e.redo,
|
|
1206
1150
|
group: "left",
|
|
1207
1151
|
onDeactivate: () => {
|
|
1208
|
-
|
|
1152
|
+
R.disabled.value = !t.redoDepth;
|
|
1209
1153
|
}
|
|
1210
|
-
}),
|
|
1154
|
+
}), X = x({
|
|
1211
1155
|
type: "button",
|
|
1212
1156
|
disabled: !1,
|
|
1213
1157
|
name: "toggleTrackChanges",
|
|
@@ -1215,7 +1159,7 @@ const x = (t) => {
|
|
|
1215
1159
|
command: "toggleTrackChanges",
|
|
1216
1160
|
icon: e.trackChanges,
|
|
1217
1161
|
group: "left"
|
|
1218
|
-
}),
|
|
1162
|
+
}), Z = x({
|
|
1219
1163
|
type: "button",
|
|
1220
1164
|
disabled: !1,
|
|
1221
1165
|
name: "acceptTrackedChangeBySelection",
|
|
@@ -1223,7 +1167,7 @@ const x = (t) => {
|
|
|
1223
1167
|
command: "acceptTrackedChangeBySelection",
|
|
1224
1168
|
icon: e.trackChangesAccept,
|
|
1225
1169
|
group: "left"
|
|
1226
|
-
}),
|
|
1170
|
+
}), re = x({
|
|
1227
1171
|
type: "button",
|
|
1228
1172
|
disabled: !1,
|
|
1229
1173
|
name: "rejectTrackedChangeOnSelection",
|
|
@@ -1231,7 +1175,7 @@ const x = (t) => {
|
|
|
1231
1175
|
command: "rejectTrackedChangeOnSelection",
|
|
1232
1176
|
icon: e.trackChangesReject,
|
|
1233
1177
|
group: "left"
|
|
1234
|
-
}),
|
|
1178
|
+
}), pe = x({
|
|
1235
1179
|
type: "button",
|
|
1236
1180
|
disabled: !1,
|
|
1237
1181
|
name: "toggleTrackChangesShowOriginal",
|
|
@@ -1239,7 +1183,7 @@ const x = (t) => {
|
|
|
1239
1183
|
command: "toggleTrackChangesShowOriginal",
|
|
1240
1184
|
icon: e.trackChangesOriginal,
|
|
1241
1185
|
group: "left"
|
|
1242
|
-
}),
|
|
1186
|
+
}), Te = x({
|
|
1243
1187
|
type: "button",
|
|
1244
1188
|
disabled: !1,
|
|
1245
1189
|
name: "toggleTrackChangesShowFinal",
|
|
@@ -1247,7 +1191,7 @@ const x = (t) => {
|
|
|
1247
1191
|
command: "toggleTrackChangesShowFinal",
|
|
1248
1192
|
icon: e.trackChangesFinal,
|
|
1249
1193
|
group: "left"
|
|
1250
|
-
}),
|
|
1194
|
+
}), ke = x({
|
|
1251
1195
|
type: "button",
|
|
1252
1196
|
name: "clearFormatting",
|
|
1253
1197
|
command: "clearFormat",
|
|
@@ -1258,25 +1202,25 @@ const x = (t) => {
|
|
|
1258
1202
|
i,
|
|
1259
1203
|
d,
|
|
1260
1204
|
u,
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1205
|
+
me,
|
|
1206
|
+
ue,
|
|
1207
|
+
// search,
|
|
1208
|
+
T
|
|
1265
1209
|
].map((m) => m.name);
|
|
1266
|
-
const
|
|
1210
|
+
const Fe = x({
|
|
1267
1211
|
type: "button",
|
|
1268
1212
|
name: "copyFormat",
|
|
1269
1213
|
tooltip: "Format painter",
|
|
1270
1214
|
icon: e.copyFormat,
|
|
1271
1215
|
command: "copyFormat"
|
|
1272
|
-
}),
|
|
1216
|
+
}), Ie = (m, S) => m === "editor" ? S : m === "suggester" ? S.filter((A) => A.value === "suggesting") : S.filter((A) => A.value === "viewing"), Ce = (m) => m === "editor" ? "Editing" : m === "suggester" ? "Suggesting" : "Viewing", ie = x({
|
|
1273
1217
|
type: "dropdown",
|
|
1274
1218
|
name: "documentMode",
|
|
1275
1219
|
command: "setDocumentMode",
|
|
1276
1220
|
allowWithoutEditor: !0,
|
|
1277
1221
|
icon: e.documentMode,
|
|
1278
|
-
defaultLabel:
|
|
1279
|
-
label:
|
|
1222
|
+
defaultLabel: Ce(n),
|
|
1223
|
+
label: Ce(n),
|
|
1280
1224
|
hasCaret: n === "editor",
|
|
1281
1225
|
isWide: !0,
|
|
1282
1226
|
style: { display: "flex", justifyContent: "flex-end" },
|
|
@@ -1291,10 +1235,10 @@ const x = (t) => {
|
|
|
1291
1235
|
options: [
|
|
1292
1236
|
{
|
|
1293
1237
|
type: "render",
|
|
1294
|
-
render: () =>
|
|
1238
|
+
render: () => xe(ie)
|
|
1295
1239
|
}
|
|
1296
1240
|
]
|
|
1297
|
-
}),
|
|
1241
|
+
}), _e = [
|
|
1298
1242
|
{
|
|
1299
1243
|
label: "Editing",
|
|
1300
1244
|
value: "editing",
|
|
@@ -1314,24 +1258,24 @@ const x = (t) => {
|
|
|
1314
1258
|
description: "View clean version of document only"
|
|
1315
1259
|
}
|
|
1316
1260
|
];
|
|
1317
|
-
function
|
|
1318
|
-
const
|
|
1319
|
-
return
|
|
1320
|
-
options:
|
|
1261
|
+
function xe(m) {
|
|
1262
|
+
const S = Ie(n, _e);
|
|
1263
|
+
return N(Cn, {
|
|
1264
|
+
options: S,
|
|
1321
1265
|
onSelect: (A) => {
|
|
1322
1266
|
ae(m);
|
|
1323
|
-
const { label:
|
|
1324
|
-
|
|
1267
|
+
const { label: P, icon: le } = A;
|
|
1268
|
+
ie.label.value = P, ie.icon.value = le, t.emitCommand({ item: ie, argument: P });
|
|
1325
1269
|
}
|
|
1326
1270
|
});
|
|
1327
1271
|
}
|
|
1328
|
-
const
|
|
1272
|
+
const Le = x({
|
|
1329
1273
|
type: "button",
|
|
1330
1274
|
name: "pageBreakTool",
|
|
1331
1275
|
command: "insertPageBreak",
|
|
1332
1276
|
icon: e.pageBreak,
|
|
1333
1277
|
tooltip: "Insert page break"
|
|
1334
|
-
}),
|
|
1278
|
+
}), ce = /* @__PURE__ */ new Map([
|
|
1335
1279
|
["separator", 20],
|
|
1336
1280
|
["zoom", 71],
|
|
1337
1281
|
["fontFamily", 118],
|
|
@@ -1341,13 +1285,13 @@ const x = (t) => {
|
|
|
1341
1285
|
["documentMode", 47],
|
|
1342
1286
|
["ai", 32],
|
|
1343
1287
|
["default", 32]
|
|
1344
|
-
]),
|
|
1288
|
+
]), se = x({
|
|
1345
1289
|
type: "button",
|
|
1346
1290
|
name: "ruler",
|
|
1347
1291
|
command: "toggleRuler",
|
|
1348
1292
|
icon: e.ruler,
|
|
1349
1293
|
tooltip: "Show or hide ruler"
|
|
1350
|
-
}),
|
|
1294
|
+
}), te = x({
|
|
1351
1295
|
type: "dropdown",
|
|
1352
1296
|
name: "linkedStyles",
|
|
1353
1297
|
command: "setLinkedStyle",
|
|
@@ -1367,13 +1311,13 @@ const x = (t) => {
|
|
|
1367
1311
|
type: "render",
|
|
1368
1312
|
key: "linkedStyle",
|
|
1369
1313
|
render: () => {
|
|
1370
|
-
const m = (
|
|
1371
|
-
ae(
|
|
1372
|
-
const A = { ...
|
|
1373
|
-
t.emitCommand({ item: A, argument:
|
|
1314
|
+
const m = (S) => {
|
|
1315
|
+
ae(te);
|
|
1316
|
+
const A = { ...te, command: "setLinkedStyle" };
|
|
1317
|
+
t.emitCommand({ item: A, argument: S });
|
|
1374
1318
|
};
|
|
1375
|
-
return
|
|
1376
|
-
|
|
1319
|
+
return N("div", {}, [
|
|
1320
|
+
N(Sn, {
|
|
1377
1321
|
editor: t.activeEditor,
|
|
1378
1322
|
onSelect: m
|
|
1379
1323
|
})
|
|
@@ -1382,14 +1326,14 @@ const x = (t) => {
|
|
|
1382
1326
|
}
|
|
1383
1327
|
],
|
|
1384
1328
|
onActivate: () => {
|
|
1385
|
-
|
|
1329
|
+
te.disabled.value = !1;
|
|
1386
1330
|
},
|
|
1387
1331
|
onDeactivate: () => {
|
|
1388
|
-
|
|
1332
|
+
te.disabled.value = !0;
|
|
1389
1333
|
}
|
|
1390
|
-
}),
|
|
1391
|
-
if (
|
|
1392
|
-
return
|
|
1334
|
+
}), fe = (m, S) => {
|
|
1335
|
+
if (S.value.toString() === m)
|
|
1336
|
+
return N("div", { innerHTML: Yn, class: "dropdown-select-icon" });
|
|
1393
1337
|
}, de = x({
|
|
1394
1338
|
type: "dropdown",
|
|
1395
1339
|
name: "lineHeight",
|
|
@@ -1404,184 +1348,185 @@ const x = (t) => {
|
|
|
1404
1348
|
dropdownValueKey: "key",
|
|
1405
1349
|
selectedValue: "1",
|
|
1406
1350
|
options: [
|
|
1407
|
-
{ label: "1,0", key: "1", icon: () =>
|
|
1408
|
-
{ label: "1,15", key: "1.15", icon: () =>
|
|
1409
|
-
{ label: "1,5", key: "1.5", icon: () =>
|
|
1410
|
-
{ label: "2,0", key: "2", icon: () =>
|
|
1411
|
-
{ label: "2,5", key: "2.5", icon: () =>
|
|
1412
|
-
{ label: "3,0", key: "3", icon: () =>
|
|
1351
|
+
{ label: "1,0", key: "1", icon: () => fe("1", de.selectedValue) },
|
|
1352
|
+
{ label: "1,15", key: "1.15", icon: () => fe("1.15", de.selectedValue) },
|
|
1353
|
+
{ label: "1,5", key: "1.5", icon: () => fe("1.5", de.selectedValue) },
|
|
1354
|
+
{ label: "2,0", key: "2", icon: () => fe("2", de.selectedValue) },
|
|
1355
|
+
{ label: "2,5", key: "2.5", icon: () => fe("2.5", de.selectedValue) },
|
|
1356
|
+
{ label: "3,0", key: "3", icon: () => fe("3", de.selectedValue) }
|
|
1413
1357
|
]
|
|
1414
|
-
}),
|
|
1358
|
+
}), Me = {
|
|
1415
1359
|
sm: 768,
|
|
1416
1360
|
md: 1024,
|
|
1417
1361
|
xl: 1410
|
|
1418
|
-
},
|
|
1362
|
+
}, st = 120, lt = 32, at = ["linkedStyles", "clearFormatting", "copyFormat", "ruler"], rt = ["zoom", "fontFamily", "fontSize", "redo"];
|
|
1419
1363
|
let O = [
|
|
1420
|
-
|
|
1421
|
-
|
|
1364
|
+
H,
|
|
1365
|
+
R,
|
|
1422
1366
|
// Dev - tracked changes
|
|
1423
1367
|
// toggleTrackChanges,
|
|
1424
|
-
|
|
1425
|
-
|
|
1368
|
+
Z,
|
|
1369
|
+
re,
|
|
1426
1370
|
// toggleTrackChangesOriginal,
|
|
1427
1371
|
// toggleTrackChangesFinal,
|
|
1428
|
-
|
|
1429
|
-
r,
|
|
1372
|
+
M,
|
|
1430
1373
|
c,
|
|
1374
|
+
r,
|
|
1431
1375
|
s,
|
|
1432
|
-
|
|
1376
|
+
r,
|
|
1433
1377
|
i,
|
|
1434
1378
|
d,
|
|
1435
1379
|
u,
|
|
1436
1380
|
v,
|
|
1437
1381
|
b,
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1382
|
+
r,
|
|
1383
|
+
h,
|
|
1384
|
+
$,
|
|
1385
|
+
L,
|
|
1386
|
+
C,
|
|
1387
|
+
r,
|
|
1388
|
+
B,
|
|
1389
|
+
ve,
|
|
1390
|
+
ye,
|
|
1391
|
+
ue,
|
|
1392
|
+
me,
|
|
1449
1393
|
de,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1394
|
+
r,
|
|
1395
|
+
te,
|
|
1396
|
+
r,
|
|
1453
1397
|
se,
|
|
1454
1398
|
Le,
|
|
1455
|
-
|
|
1456
|
-
|
|
1399
|
+
Fe,
|
|
1400
|
+
ke,
|
|
1457
1401
|
a,
|
|
1458
|
-
|
|
1459
|
-
|
|
1402
|
+
T,
|
|
1403
|
+
ie
|
|
1404
|
+
// search,
|
|
1460
1405
|
];
|
|
1461
|
-
if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <=
|
|
1406
|
+
if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <= Me.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
|
|
1462
1407
|
const m = O.findIndex((A) => A.name.value === "linkedStyles");
|
|
1463
1408
|
O.splice(m - 1, 2);
|
|
1464
|
-
const
|
|
1465
|
-
O = O.filter((A) => !
|
|
1409
|
+
const S = ["ruler", "zoom", "undo", "redo"];
|
|
1410
|
+
O = O.filter((A) => !S.includes(A.name.value));
|
|
1466
1411
|
}
|
|
1467
|
-
const
|
|
1468
|
-
l || (n === "viewer" &&
|
|
1469
|
-
const
|
|
1470
|
-
let
|
|
1412
|
+
const Pe = [X, pe, Te];
|
|
1413
|
+
l || (n === "viewer" && Pe.push(Z, re), O = O.filter((m) => !Pe.includes(m)));
|
|
1414
|
+
const ct = [H, T, ie].map((m) => m.name), dt = (m) => ct.includes(m.name), Ee = [], De = [];
|
|
1415
|
+
let $e = lt + st;
|
|
1471
1416
|
return O.forEach((m) => {
|
|
1472
|
-
const
|
|
1473
|
-
if (o <
|
|
1417
|
+
const S = ce.get(m.name.value) || ce.get("default");
|
|
1418
|
+
if (o < Me.xl && at.includes(m.name.value)) {
|
|
1474
1419
|
if (Ee.push(m), m.name.value === "linkedStyles") {
|
|
1475
|
-
const A = O.findIndex((
|
|
1420
|
+
const A = O.findIndex((P) => P.name.value === "linkedStyles");
|
|
1476
1421
|
O.splice(A + 1, 1);
|
|
1477
1422
|
}
|
|
1478
1423
|
return;
|
|
1479
1424
|
}
|
|
1480
|
-
if (o <
|
|
1425
|
+
if (o < Me.sm && rt.includes(m.name.value)) {
|
|
1481
1426
|
Ee.push(m);
|
|
1482
1427
|
return;
|
|
1483
1428
|
}
|
|
1484
|
-
if (
|
|
1485
|
-
|
|
1429
|
+
if (dt(m)) {
|
|
1430
|
+
De.push(m), $e += S;
|
|
1486
1431
|
return;
|
|
1487
1432
|
}
|
|
1488
|
-
|
|
1433
|
+
$e < o ? (De.push(m), $e += S) : Ee.push(m);
|
|
1489
1434
|
}), {
|
|
1490
|
-
defaultItems:
|
|
1435
|
+
defaultItems: De,
|
|
1491
1436
|
overflowItems: Ee.filter((m) => m.type !== "separator")
|
|
1492
1437
|
};
|
|
1493
|
-
},
|
|
1438
|
+
}, Qn = [".jpg", ".jpeg", ".png", "image/jpeg", "image/png"], eo = () => {
|
|
1494
1439
|
let t = document.createElement("input");
|
|
1495
1440
|
t.type = "file";
|
|
1496
|
-
let l =
|
|
1441
|
+
let l = Qn;
|
|
1497
1442
|
return t.accept = l.join(","), () => new Promise((n, e) => {
|
|
1498
1443
|
t.onchange = async () => {
|
|
1499
1444
|
const i = t.files;
|
|
1500
1445
|
if (!i) return n(null);
|
|
1501
|
-
const
|
|
1502
|
-
return n(
|
|
1446
|
+
const c = i.item(0);
|
|
1447
|
+
return n(c ? { file: c } : null);
|
|
1503
1448
|
}, t.oncancel = () => n(null), t.onerror = e, t.click();
|
|
1504
1449
|
});
|
|
1505
|
-
},
|
|
1450
|
+
}, to = (t) => new Promise((l, o) => {
|
|
1506
1451
|
let n = new FileReader();
|
|
1507
1452
|
n.onload = (e) => l(e.target.result), n.onerror = o, setTimeout(() => n.readAsDataURL(t), 250);
|
|
1508
|
-
}),
|
|
1453
|
+
}), no = (t, l) => new Promise((o, n) => {
|
|
1509
1454
|
const e = new window.Image();
|
|
1510
1455
|
e.onload = () => {
|
|
1511
|
-
const i = document.createElement("canvas"), { width:
|
|
1456
|
+
const i = document.createElement("canvas"), { width: c, height: a } = oo(
|
|
1512
1457
|
e.width,
|
|
1513
1458
|
e.height,
|
|
1514
1459
|
l
|
|
1515
1460
|
);
|
|
1516
|
-
if (i.width =
|
|
1517
|
-
const
|
|
1518
|
-
o(
|
|
1461
|
+
if (i.width = c, i.height = a, i.getContext("2d").drawImage(e, 0, 0, c, a), typeof t == "string") {
|
|
1462
|
+
const r = i.toDataURL();
|
|
1463
|
+
o(r);
|
|
1519
1464
|
} else
|
|
1520
|
-
i.toBlob((
|
|
1521
|
-
const d = new File([
|
|
1465
|
+
i.toBlob((r) => {
|
|
1466
|
+
const d = new File([r], t.name, {
|
|
1522
1467
|
type: t.type,
|
|
1523
1468
|
lastModified: Date.now()
|
|
1524
1469
|
});
|
|
1525
|
-
o({ file: d, width:
|
|
1470
|
+
o({ file: d, width: c, height: a });
|
|
1526
1471
|
});
|
|
1527
1472
|
}, e.onerror = (i) => n(i), e.src = typeof t == "string" ? t : URL.createObjectURL(t);
|
|
1528
|
-
}),
|
|
1473
|
+
}), oo = (t, l, o) => {
|
|
1529
1474
|
const { width: n, height: e } = o.getMaxContentSize();
|
|
1530
1475
|
if (!n || !e) return { width: t, height: l };
|
|
1531
|
-
let i = t,
|
|
1476
|
+
let i = t, c = l;
|
|
1532
1477
|
const a = t / l;
|
|
1533
|
-
return l > e && (
|
|
1534
|
-
},
|
|
1535
|
-
let n = typeof t.options.handleImageUpload == "function" ? t.options.handleImageUpload :
|
|
1478
|
+
return l > e && (c = e, i = Math.round(e * a)), i > n && (i = n, c = Math.round(n / a)), { width: i, height: c };
|
|
1479
|
+
}, io = async ({ editor: t, view: l, file: o }) => {
|
|
1480
|
+
let n = typeof t.options.handleImageUpload == "function" ? t.options.handleImageUpload : to;
|
|
1536
1481
|
if ((o.size / (1024 * 1024)).toFixed(4) > 5) {
|
|
1537
1482
|
window.alert("Image size must be less than 5MB");
|
|
1538
1483
|
return;
|
|
1539
1484
|
}
|
|
1540
|
-
let i,
|
|
1485
|
+
let i, c;
|
|
1541
1486
|
try {
|
|
1542
|
-
const u = await
|
|
1543
|
-
i = u.width,
|
|
1487
|
+
const u = await no(o, t);
|
|
1488
|
+
i = u.width, c = u.height, o = u.file;
|
|
1544
1489
|
} catch (u) {
|
|
1545
1490
|
console.warn("Error processing image:", u);
|
|
1546
1491
|
return;
|
|
1547
1492
|
}
|
|
1548
|
-
let a = {}, { tr: s, schema:
|
|
1493
|
+
let a = {}, { tr: s, schema: r } = l.state;
|
|
1549
1494
|
s.selection.empty || s.deleteSelection();
|
|
1550
1495
|
let d = {
|
|
1551
1496
|
type: "add",
|
|
1552
1497
|
pos: s.selection.from,
|
|
1553
1498
|
id: a
|
|
1554
1499
|
};
|
|
1555
|
-
s.setMeta(
|
|
1500
|
+
s.setMeta(Re, d), l.dispatch(s), n(o).then(
|
|
1556
1501
|
(u) => {
|
|
1557
|
-
let b = o.name.replace(" ", "_"), v =
|
|
1502
|
+
let b = o.name.replace(" ", "_"), v = ht(l.state, a);
|
|
1558
1503
|
if (v == null)
|
|
1559
1504
|
return;
|
|
1560
|
-
let
|
|
1561
|
-
src:
|
|
1562
|
-
size: { width: i, height:
|
|
1505
|
+
let h = { type: "remove", id: a }, E = `word/media/${b}`, g = r.nodes.image.create({
|
|
1506
|
+
src: E,
|
|
1507
|
+
size: { width: i, height: c }
|
|
1563
1508
|
});
|
|
1564
|
-
t.storage.image.media = Object.assign(t.storage.image.media, { [
|
|
1565
|
-
l.state.tr.replaceWith(v, v, g).setMeta(
|
|
1509
|
+
t.storage.image.media = Object.assign(t.storage.image.media, { [E]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: E, fileData: u }), l.dispatch(
|
|
1510
|
+
l.state.tr.replaceWith(v, v, g).setMeta(Re, h)
|
|
1566
1511
|
);
|
|
1567
1512
|
},
|
|
1568
1513
|
() => {
|
|
1569
1514
|
let u = { type: "remove", id: a };
|
|
1570
|
-
l.dispatch(s.setMeta(
|
|
1515
|
+
l.dispatch(s.setMeta(Re, u));
|
|
1571
1516
|
}
|
|
1572
1517
|
);
|
|
1573
1518
|
};
|
|
1574
|
-
var
|
|
1575
|
-
class
|
|
1519
|
+
var I, tt, ge, ze, nt, ot, We, it, he;
|
|
1520
|
+
class xo extends Vt {
|
|
1576
1521
|
constructor(o) {
|
|
1577
1522
|
super();
|
|
1578
|
-
|
|
1579
|
-
|
|
1523
|
+
Be(this, I);
|
|
1524
|
+
He(this, "config", {
|
|
1580
1525
|
selector: null,
|
|
1581
1526
|
toolbarGroups: ["left", "center", "right"],
|
|
1582
1527
|
role: "editor",
|
|
1583
1528
|
pagination: !1,
|
|
1584
|
-
icons: { ...
|
|
1529
|
+
icons: { ...G },
|
|
1585
1530
|
mode: "docx",
|
|
1586
1531
|
excludeItems: [],
|
|
1587
1532
|
groups: null,
|
|
@@ -1589,40 +1534,40 @@ class Mo extends qt {
|
|
|
1589
1534
|
aiApiKey: null,
|
|
1590
1535
|
aiEndpoint: null
|
|
1591
1536
|
});
|
|
1592
|
-
|
|
1537
|
+
Be(this, ge, {
|
|
1593
1538
|
setZoom: ({ item: o, argument: n }) => {
|
|
1594
1539
|
if (!n) return;
|
|
1595
1540
|
o.onActivate({ zoom: n }), this.emit("superdoc-command", { item: o, argument: n });
|
|
1596
1541
|
const e = document.querySelector(this.superdoc.config.selector)?.querySelector(".layers");
|
|
1597
1542
|
if (!e) return;
|
|
1598
|
-
const i = typeof screen.orientation < "u",
|
|
1599
|
-
i &&
|
|
1543
|
+
const i = typeof screen.orientation < "u", c = window.matchMedia("(max-width: 834px)").matches;
|
|
1544
|
+
i && c ? (e.style.transformOrigin = "0 0", e.style.transform = `scale(${parseInt(n) / 100})`) : e.style.zoom = parseInt(n) / 100, this.superdoc.superdocStore.activeZoom = parseInt(n);
|
|
1600
1545
|
},
|
|
1601
1546
|
setDocumentMode: ({ item: o, argument: n }) => {
|
|
1602
1547
|
n && this.emit("superdoc-command", { item: o, argument: n });
|
|
1603
1548
|
},
|
|
1604
1549
|
setFontSize: ({ item: o, argument: n }) => {
|
|
1605
|
-
|
|
1550
|
+
W(this, I, he).call(this, { item: o, argument: n }, () => {
|
|
1606
1551
|
this.activeEditor?.commands.setFieldAnnotationsFontSize(n, !0);
|
|
1607
1552
|
});
|
|
1608
1553
|
},
|
|
1609
1554
|
setFontFamily: ({ item: o, argument: n }) => {
|
|
1610
|
-
|
|
1555
|
+
W(this, I, he).call(this, { item: o, argument: n }, () => {
|
|
1611
1556
|
this.activeEditor?.commands.setFieldAnnotationsFontFamily(n, !0);
|
|
1612
1557
|
});
|
|
1613
1558
|
},
|
|
1614
1559
|
setColor: ({ item: o, argument: n }) => {
|
|
1615
|
-
|
|
1560
|
+
W(this, I, he).call(this, { item: o, argument: n });
|
|
1616
1561
|
},
|
|
1617
1562
|
setHighlight: ({ item: o, argument: n }) => {
|
|
1618
|
-
|
|
1563
|
+
W(this, I, he).call(this, { item: o, argument: n });
|
|
1619
1564
|
},
|
|
1620
1565
|
toggleRuler: ({ item: o, argument: n }) => {
|
|
1621
1566
|
this.superdoc.toggleRuler();
|
|
1622
1567
|
},
|
|
1623
1568
|
startImageUpload: async ({ item: o, argument: n }) => {
|
|
1624
|
-
let i = await
|
|
1625
|
-
i?.file &&
|
|
1569
|
+
let i = await eo()();
|
|
1570
|
+
i?.file && io({
|
|
1626
1571
|
editor: this.activeEditor,
|
|
1627
1572
|
view: this.activeEditor.view,
|
|
1628
1573
|
file: i.file
|
|
@@ -1630,13 +1575,13 @@ class Mo extends qt {
|
|
|
1630
1575
|
},
|
|
1631
1576
|
increaseTextIndent: ({ item: o, argument: n }) => {
|
|
1632
1577
|
let e = o.command, { state: i } = this.activeEditor;
|
|
1633
|
-
if (
|
|
1578
|
+
if (Ue((a) => a.type.name === "listItem")(i.selection))
|
|
1634
1579
|
return this.activeEditor.commands.increaseListIndent();
|
|
1635
1580
|
e in this.activeEditor.commands && this.activeEditor.commands[e](n);
|
|
1636
1581
|
},
|
|
1637
1582
|
decreaseTextIndent: ({ item: o, argument: n }) => {
|
|
1638
1583
|
let e = o.command, { state: i } = this.activeEditor;
|
|
1639
|
-
if (
|
|
1584
|
+
if (Ue((a) => a.type.name === "listItem")(i.selection))
|
|
1640
1585
|
return this.activeEditor.commands.decreaseListIndent();
|
|
1641
1586
|
e in this.activeEditor.commands && this.activeEditor.commands[e](n);
|
|
1642
1587
|
},
|
|
@@ -1656,15 +1601,15 @@ class Mo extends qt {
|
|
|
1656
1601
|
let e = o.command;
|
|
1657
1602
|
if (e in this.activeEditor.commands) {
|
|
1658
1603
|
this.activeEditor.commands[e](n);
|
|
1659
|
-
const { view: i } = this.activeEditor,
|
|
1660
|
-
i.updateState(
|
|
1604
|
+
const { view: i } = this.activeEditor, c = i.state.selection.$to.pos, a = new Xe(i.state.doc.resolve(c)), s = i.state.tr.setSelection(a), r = i.state.apply(s);
|
|
1605
|
+
i.updateState(r), setTimeout(() => {
|
|
1661
1606
|
i.focus();
|
|
1662
1607
|
}, 100);
|
|
1663
1608
|
}
|
|
1664
1609
|
this.updateToolbarState();
|
|
1665
1610
|
},
|
|
1666
1611
|
insertTable: ({ item: o, argument: n }) => {
|
|
1667
|
-
|
|
1612
|
+
W(this, I, he).call(this, { item: o, argument: n });
|
|
1668
1613
|
},
|
|
1669
1614
|
executeTableCommand: ({ item: o, argument: n }) => {
|
|
1670
1615
|
if (!n) return;
|
|
@@ -1672,26 +1617,26 @@ class Mo extends qt {
|
|
|
1672
1617
|
e in this.activeEditor.commands && this.activeEditor.commands[e](n), this.updateToolbarState();
|
|
1673
1618
|
}
|
|
1674
1619
|
});
|
|
1675
|
-
|
|
1676
|
-
|
|
1620
|
+
He(this, "onToolbarResize", () => {
|
|
1621
|
+
W(this, I, ze).call(this, this, this.config.icons, this.isDev), this.role === "viewer" && W(this, I, We).call(this);
|
|
1677
1622
|
});
|
|
1678
1623
|
this.config = { ...this.config, ...o }, this.toolbarItems = [], this.overflowItems = [], this.documentMode = o.documentMode || "editing", this.isDev = o.isDev || !1, this.superdoc = o.superdoc, this.role = o.role || "editor", this.config.editor && (this.config.mode = this.config.editor.options.mode), this.config.icons = {
|
|
1679
|
-
...
|
|
1624
|
+
...G,
|
|
1680
1625
|
...o.icons
|
|
1681
|
-
}, !this.config.selector && this.config.element && (this.config.selector = this.config.element),
|
|
1626
|
+
}, !this.config.selector && this.config.element && (this.config.selector = this.config.element), W(this, I, tt).call(this), W(this, I, ze).call(this, this, this.config.icons, o.isDev);
|
|
1682
1627
|
let n = null;
|
|
1683
1628
|
if (this.config.selector && (this.config.selector.startsWith("#") || this.config.selector.startsWith(".") ? n = document.querySelector(this.config.selector) : n = document.getElementById(this.config.selector), !n)) {
|
|
1684
1629
|
console.warn(`[super-toolbar 🎨] Element not found: ${this.config.selector}`);
|
|
1685
1630
|
return;
|
|
1686
1631
|
}
|
|
1687
|
-
this.app =
|
|
1632
|
+
this.app = Bt(zt), this.app.directive("click-outside", Ft), this.app.config.globalProperties.$toolbar = this, n && (this.toolbar = this.app.mount(n)), this.activeEditor = o.editor || null, this.updateToolbarState();
|
|
1688
1633
|
}
|
|
1689
1634
|
log(...o) {
|
|
1690
1635
|
console.debug("[🎨 super-toolbar]", ...o);
|
|
1691
1636
|
}
|
|
1692
1637
|
setZoom(o) {
|
|
1693
1638
|
const e = [...this.toolbarItems, ...this.overflowItems].find((i) => i.name.value === "zoom");
|
|
1694
|
-
|
|
1639
|
+
Se(this, ge).setZoom({ item: e, argument: o });
|
|
1695
1640
|
}
|
|
1696
1641
|
/**
|
|
1697
1642
|
* The toolbar expects an active Super Editor instance.
|
|
@@ -1703,35 +1648,32 @@ class Mo extends qt {
|
|
|
1703
1648
|
getToolbarItemByGroup(o) {
|
|
1704
1649
|
return this.toolbarItems.filter((n) => n.group.value === o);
|
|
1705
1650
|
}
|
|
1706
|
-
getToolbarItemByName(o) {
|
|
1707
|
-
return this.toolbarItems.find((n) => n.name.value === o);
|
|
1708
|
-
}
|
|
1709
1651
|
/**
|
|
1710
1652
|
* Update the toolbar state. Expects a list of marks in the form: { name, attrs }
|
|
1711
1653
|
* @param {Object} marks
|
|
1712
1654
|
*/
|
|
1713
1655
|
updateToolbarState() {
|
|
1714
|
-
if (
|
|
1715
|
-
|
|
1656
|
+
if (W(this, I, it).call(this), W(this, I, nt).call(this), W(this, I, ot).call(this), !this.activeEditor || this.documentMode === "viewing") {
|
|
1657
|
+
W(this, I, We).call(this);
|
|
1716
1658
|
return;
|
|
1717
1659
|
}
|
|
1718
|
-
const o =
|
|
1660
|
+
const o = gt(this.activeEditor), n = vt(this.activeEditor.state);
|
|
1719
1661
|
this.toolbarItems.forEach((e) => {
|
|
1720
1662
|
if (e.resetDisabled(), e.name.value === "linkedStyles")
|
|
1721
|
-
return this.activeEditor && !
|
|
1663
|
+
return this.activeEditor && !Ke(this.activeEditor).length ? e.deactivate() : e.activate();
|
|
1722
1664
|
const i = o.find((s) => s.name === e.name.value);
|
|
1723
1665
|
i ? e.activate(i.attrs) : e.deactivate();
|
|
1724
|
-
const
|
|
1725
|
-
if (
|
|
1666
|
+
const c = o.find((s) => s.name === "styleId");
|
|
1667
|
+
if (c?.attrs.styleId) {
|
|
1726
1668
|
const s = {
|
|
1727
1669
|
fontSize: "font-size",
|
|
1728
1670
|
fontFamily: "font-family",
|
|
1729
1671
|
bold: "bold",
|
|
1730
1672
|
textAlign: "textAlign"
|
|
1731
|
-
},
|
|
1732
|
-
if (s[e.name.value] in
|
|
1673
|
+
}, r = this.activeEditor.converter?.linkedStyles.find((d) => d.id === c.attrs.styleId);
|
|
1674
|
+
if (s[e.name.value] in r?.definition.styles) {
|
|
1733
1675
|
const d = {
|
|
1734
|
-
[e.name.value]:
|
|
1676
|
+
[e.name.value]: r?.definition.styles[s[e.name.value]]
|
|
1735
1677
|
};
|
|
1736
1678
|
e.activate(d);
|
|
1737
1679
|
}
|
|
@@ -1756,8 +1698,8 @@ class Mo extends qt {
|
|
|
1756
1698
|
this.activeEditor?.focus();
|
|
1757
1699
|
const { command: e } = o;
|
|
1758
1700
|
if (e) {
|
|
1759
|
-
if (this.log("(emmitCommand) Command:", e, o, n), e in
|
|
1760
|
-
return
|
|
1701
|
+
if (this.log("(emmitCommand) Command:", e, o, n), e in Se(this, ge))
|
|
1702
|
+
return Se(this, ge)[e]({ item: o, argument: n });
|
|
1761
1703
|
if (e in this.activeEditor?.commands)
|
|
1762
1704
|
this.activeEditor.commands[e](n), this.updateToolbarState();
|
|
1763
1705
|
else
|
|
@@ -1765,83 +1707,83 @@ class Mo extends qt {
|
|
|
1765
1707
|
}
|
|
1766
1708
|
}
|
|
1767
1709
|
}
|
|
1768
|
-
|
|
1710
|
+
I = new WeakSet(), tt = function() {
|
|
1769
1711
|
this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length && (this.config.toolbarGroups = Object.keys(this.config.groups));
|
|
1770
|
-
},
|
|
1771
|
-
const i = document.documentElement.clientWidth, { defaultItems:
|
|
1712
|
+
}, ge = new WeakMap(), ze = function(o, n, e = !1) {
|
|
1713
|
+
const i = document.documentElement.clientWidth, { defaultItems: c, overflowItems: a } = Jn(o, e, i, this.role, n);
|
|
1772
1714
|
let s = [
|
|
1773
|
-
...
|
|
1715
|
+
...c.map((d) => d.name.value),
|
|
1774
1716
|
...a.map((d) => d.name.value)
|
|
1775
1717
|
];
|
|
1776
1718
|
this.config.groups && (s = Object.values(this.config.groups).flatMap((d) => d));
|
|
1777
|
-
const
|
|
1778
|
-
this.toolbarItems =
|
|
1779
|
-
},
|
|
1719
|
+
const r = c.filter((d) => s.includes(d.name.value)).filter((d) => !this.config.excludeItems.includes(d.name.value));
|
|
1720
|
+
this.toolbarItems = r, this.overflowItems = a.filter((d) => s.includes(d.name.value));
|
|
1721
|
+
}, nt = function() {
|
|
1780
1722
|
if (!this.activeEditor || !this.activeEditor.converter) return;
|
|
1781
|
-
const { typeface: o = "Arial", fontSizePt: n = 12 } = this.activeEditor.converter.getDocumentDefaultStyles() ?? {}, e = this.toolbarItems.find((
|
|
1723
|
+
const { typeface: o = "Arial", fontSizePt: n = 12 } = this.activeEditor.converter.getDocumentDefaultStyles() ?? {}, e = this.toolbarItems.find((c) => c.name.value === "fontSize");
|
|
1782
1724
|
e && (e.defaultLabel.value = n);
|
|
1783
|
-
const i = this.toolbarItems.find((
|
|
1725
|
+
const i = this.toolbarItems.find((c) => c.name.value === "fontFamily");
|
|
1784
1726
|
i && (i.defaultLabel.value = o);
|
|
1785
|
-
},
|
|
1727
|
+
}, ot = function() {
|
|
1786
1728
|
if (!this.activeEditor || !this.activeEditor.converter || !this.activeEditor.converter.docHiglightColors.size) return;
|
|
1787
|
-
const o = this.toolbarItems.find((a) => a.name.value === "highlight"), n =
|
|
1788
|
-
const d = Math.floor(
|
|
1789
|
-
return a[d] || (a[d] = []), n.includes(s) || a[d].push(
|
|
1790
|
-
}, []),
|
|
1729
|
+
const o = this.toolbarItems.find((a) => a.name.value === "highlight"), n = On(), e = 7, i = Array.from(this.activeEditor.converter.docHiglightColors).reduce((a, s, r) => {
|
|
1730
|
+
const d = Math.floor(r / e);
|
|
1731
|
+
return a[d] || (a[d] = []), n.includes(s) || a[d].push(f(s)), a;
|
|
1732
|
+
}, []), c = {
|
|
1791
1733
|
key: "color",
|
|
1792
1734
|
type: "render",
|
|
1793
|
-
render: () =>
|
|
1735
|
+
render: () => Ne(this, o, i, !0)
|
|
1794
1736
|
};
|
|
1795
|
-
o.nestedOptions.value = [
|
|
1796
|
-
},
|
|
1737
|
+
o.nestedOptions.value = [c];
|
|
1738
|
+
}, We = function() {
|
|
1797
1739
|
this.activeEditor = null, this.toolbarItems.forEach((o) => {
|
|
1798
1740
|
const { allowWithoutEditor: n } = o;
|
|
1799
1741
|
n.value || o.setDisabled(!0);
|
|
1800
1742
|
});
|
|
1801
|
-
},
|
|
1802
|
-
this.activeEditor && (this.undoDepth =
|
|
1803
|
-
},
|
|
1743
|
+
}, it = function() {
|
|
1744
|
+
this.activeEditor && (this.undoDepth = yt(this.activeEditor.state), this.redoDepth = bt(this.activeEditor.state));
|
|
1745
|
+
}, he = function({ item: o, argument: n }, e) {
|
|
1804
1746
|
if (!n || !this.activeEditor) return;
|
|
1805
1747
|
let i = o.command;
|
|
1806
|
-
const
|
|
1807
|
-
if (n === "none" &&
|
|
1808
|
-
this.activeEditor.commands[
|
|
1748
|
+
const c = o.noArgumentCommand;
|
|
1749
|
+
if (n === "none" && c in this.activeEditor?.commands) {
|
|
1750
|
+
this.activeEditor.commands[c](), this.updateToolbarState();
|
|
1809
1751
|
return;
|
|
1810
1752
|
}
|
|
1811
1753
|
i in this.activeEditor?.commands && (this.activeEditor.commands[i](n), typeof e == "function" && e(n), this.updateToolbarState());
|
|
1812
1754
|
};
|
|
1813
|
-
function
|
|
1755
|
+
function so(t, l) {
|
|
1814
1756
|
if (!t.value || !l?.value?.options?.scale) return;
|
|
1815
1757
|
const o = l.value.options.scale, n = t.value.getBoundingClientRect(), e = t.value.querySelectorAll(".pagination-break-wrapper");
|
|
1816
1758
|
let i;
|
|
1817
|
-
e.forEach((
|
|
1818
|
-
const s = (
|
|
1759
|
+
e.forEach((c) => {
|
|
1760
|
+
const s = (c.getBoundingClientRect().left - n.left) / o * -1 + 1;
|
|
1819
1761
|
if (i || (i = s), s !== i) {
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1762
|
+
const r = s - i;
|
|
1763
|
+
c.style.transform = `translateX(${r}px)`;
|
|
1822
1764
|
}
|
|
1823
1765
|
});
|
|
1824
1766
|
}
|
|
1825
|
-
const
|
|
1767
|
+
const lo = (t, l) => {
|
|
1826
1768
|
const o = t.clientY, n = t.clientX, { view: e } = l, i = e.dom.getBoundingClientRect();
|
|
1827
|
-
let
|
|
1769
|
+
let c = {
|
|
1828
1770
|
left: 0,
|
|
1829
1771
|
top: o
|
|
1830
1772
|
}, a = !1;
|
|
1831
|
-
n > i.right ? (
|
|
1832
|
-
const s = e.posAtCoords(
|
|
1773
|
+
n > i.right ? (c.left = i.left + i.width - 1, a = !0) : n < i.left && (c.left = i.left);
|
|
1774
|
+
const s = e.posAtCoords(c)?.pos;
|
|
1833
1775
|
if (s) {
|
|
1834
|
-
let
|
|
1776
|
+
let r = s;
|
|
1835
1777
|
if (a) {
|
|
1836
|
-
const b = e.state.doc.resolve(s).textOffset, v = e.state.doc.nodeAt(s),
|
|
1837
|
-
|
|
1778
|
+
const b = e.state.doc.resolve(s).textOffset, v = e.state.doc.nodeAt(s), E = v?.text?.charAt(b);
|
|
1779
|
+
r = v?.isText && E !== " " ? s - 1 : s;
|
|
1838
1780
|
}
|
|
1839
1781
|
const d = e.state.tr.setSelection(
|
|
1840
|
-
|
|
1782
|
+
Xe.create(e.state.doc, r)
|
|
1841
1783
|
);
|
|
1842
1784
|
e.dispatch(d), e.focus();
|
|
1843
1785
|
}
|
|
1844
|
-
},
|
|
1786
|
+
}, ao = { class: "numbering" }, Ae = 200, ro = "flex-end", co = {
|
|
1845
1787
|
__name: "Ruler",
|
|
1846
1788
|
props: {
|
|
1847
1789
|
orientation: {
|
|
@@ -1859,115 +1801,115 @@ const fo = (t, l) => {
|
|
|
1859
1801
|
},
|
|
1860
1802
|
emits: ["margin-change"],
|
|
1861
1803
|
setup(t, { emit: l }) {
|
|
1862
|
-
const o = l, n = t, e =
|
|
1804
|
+
const o = l, n = t, e = y(null), i = y([]), c = y("#CCCCCC"), a = y("#2563EB66"), s = y(null), r = y(null), d = y(!1), u = y(null), b = qe({ side: "left", x: 0 }), v = qe({ side: "right", x: 0 }), h = y(!1), E = y(0);
|
|
1863
1805
|
let g = 0;
|
|
1864
|
-
const
|
|
1806
|
+
const $ = () => {
|
|
1865
1807
|
if (n.editor.options.mode !== "docx") return;
|
|
1866
|
-
const
|
|
1867
|
-
s.value = H,
|
|
1808
|
+
const T = [], { pageMargins: M, pageSize: H } = n.editor.getPageStyles();
|
|
1809
|
+
s.value = H, r.value = M, v.x = H.width * 96 - M.right * 96, b.x = M.left * 96;
|
|
1868
1810
|
for (let R = 0; R < H.width; R++) {
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
|
|
1811
|
+
const Z = `${5.5}px`, re = H.width - R;
|
|
1812
|
+
if (T.push(...L(1, "main", "20%", Z, R)), T.push(...L(3, "eighth", "10%", Z)), T.push(...L(1, "half", "40%", Z)), re <= 0.5) break;
|
|
1813
|
+
T.push(...L(3, "eighth", "10%", Z));
|
|
1872
1814
|
}
|
|
1873
|
-
return
|
|
1874
|
-
},
|
|
1875
|
-
const
|
|
1815
|
+
return T;
|
|
1816
|
+
}, L = (T, M, H, R, X) => Array.from({ length: T }, (Z, re) => {
|
|
1817
|
+
const pe = {
|
|
1876
1818
|
className: `${M}-unit ruler-section`,
|
|
1877
1819
|
height: H,
|
|
1878
1820
|
margin: R
|
|
1879
1821
|
};
|
|
1880
|
-
return
|
|
1881
|
-
}), p = j(() => (
|
|
1822
|
+
return X !== void 0 && (pe.numbering = X), pe;
|
|
1823
|
+
}), p = j(() => (T) => ({
|
|
1882
1824
|
width: "1px",
|
|
1883
1825
|
minWidth: "1px",
|
|
1884
1826
|
maxWidth: "1px",
|
|
1885
|
-
height:
|
|
1886
|
-
backgroundColor:
|
|
1887
|
-
marginLeft:
|
|
1888
|
-
marginRight:
|
|
1889
|
-
})),
|
|
1890
|
-
left: `${(
|
|
1891
|
-
})),
|
|
1827
|
+
height: T.height,
|
|
1828
|
+
backgroundColor: T.color || "#666",
|
|
1829
|
+
marginLeft: T.numbering === 0 ? null : T.margin,
|
|
1830
|
+
marginRight: T.margin
|
|
1831
|
+
})), C = j(() => (T) => ({
|
|
1832
|
+
left: `${(T === "left" ? b : v).x}px`
|
|
1833
|
+
})), F = j(() => {
|
|
1892
1834
|
if (!e.value) return;
|
|
1893
1835
|
const H = e.value.parentElement.querySelector(".super-editor").getBoundingClientRect();
|
|
1894
1836
|
return {
|
|
1895
1837
|
left: `${u.value.x}px`,
|
|
1896
1838
|
minHeight: `${H.height}px`
|
|
1897
1839
|
};
|
|
1898
|
-
}),
|
|
1899
|
-
d.value = !0,
|
|
1900
|
-
const M =
|
|
1901
|
-
u.value = M === "left-margin-handle" ? b : v,
|
|
1902
|
-
},
|
|
1840
|
+
}), z = (T) => {
|
|
1841
|
+
d.value = !0, ve();
|
|
1842
|
+
const M = T.currentTarget.id;
|
|
1843
|
+
u.value = M === "left-margin-handle" ? b : v, E.value = u.value.x, g = T.clientX - u.value.x, h.value = !0;
|
|
1844
|
+
}, B = (T) => {
|
|
1903
1845
|
if (!d.value) return;
|
|
1904
|
-
const M =
|
|
1905
|
-
u.value.x = M, u.value.side === "left" ? M <= 0 ? u.value.x = 0 : M >= v.x -
|
|
1906
|
-
},
|
|
1907
|
-
if (d.value = !1,
|
|
1908
|
-
const
|
|
1846
|
+
const M = T.clientX - g;
|
|
1847
|
+
u.value.x = M, u.value.side === "left" ? M <= 0 ? u.value.x = 0 : M >= v.x - Ae && (u.value.x = v.x - Ae) : M >= s.value.width * 96 ? u.value.x = s.value.width * 96 : M <= b.x + Ae && (u.value.x = b.x + Ae);
|
|
1848
|
+
}, q = () => {
|
|
1849
|
+
if (d.value = !1, h.value = !1, ye(), u.value && u.value.x !== E.value) {
|
|
1850
|
+
const T = ue();
|
|
1909
1851
|
o("margin-change", {
|
|
1910
1852
|
side: u.value.side,
|
|
1911
|
-
value:
|
|
1853
|
+
value: T
|
|
1912
1854
|
});
|
|
1913
1855
|
}
|
|
1856
|
+
}, ve = () => {
|
|
1857
|
+
c.value = a.value;
|
|
1914
1858
|
}, ye = () => {
|
|
1915
|
-
|
|
1916
|
-
},
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
"--alignment": go,
|
|
1920
|
-
"--ruler-handle-color": r.value,
|
|
1859
|
+
c.value = "#CCC";
|
|
1860
|
+
}, ue = () => u.value.side === "left" ? u.value.x / 96 : (s.value.width * 96 - u.value.x) / 96, me = j(() => ({
|
|
1861
|
+
"--alignment": ro,
|
|
1862
|
+
"--ruler-handle-color": c.value,
|
|
1921
1863
|
"--ruler-handle-active-color": a.value
|
|
1922
1864
|
}));
|
|
1923
|
-
return
|
|
1924
|
-
i.value =
|
|
1925
|
-
}),
|
|
1926
|
-
window.removeEventListener("mousemove",
|
|
1927
|
-
}), (
|
|
1865
|
+
return we(() => {
|
|
1866
|
+
i.value = $(), window.addEventListener("mousemove", B), window.addEventListener("mouseup", q);
|
|
1867
|
+
}), Rt(() => {
|
|
1868
|
+
window.removeEventListener("mousemove", B), window.removeEventListener("mouseup", q);
|
|
1869
|
+
}), (T, M) => (w(), k("div", {
|
|
1928
1870
|
class: "ruler",
|
|
1929
1871
|
ref_key: "ruler",
|
|
1930
1872
|
ref: e,
|
|
1931
|
-
style: J(
|
|
1873
|
+
style: J(me.value)
|
|
1932
1874
|
}, [
|
|
1933
|
-
|
|
1875
|
+
_("div", {
|
|
1934
1876
|
class: "margin-handle handle-left",
|
|
1935
1877
|
id: "left-margin-handle",
|
|
1936
|
-
onMousedown:
|
|
1937
|
-
style: J(
|
|
1878
|
+
onMousedown: z,
|
|
1879
|
+
style: J(C.value("left"))
|
|
1938
1880
|
}, null, 36),
|
|
1939
|
-
|
|
1881
|
+
_("div", {
|
|
1940
1882
|
class: "margin-handle handle-right",
|
|
1941
1883
|
id: "right-margin-handle",
|
|
1942
|
-
onMousedown:
|
|
1943
|
-
style: J(
|
|
1884
|
+
onMousedown: z,
|
|
1885
|
+
style: J(C.value("right"))
|
|
1944
1886
|
}, null, 36),
|
|
1945
|
-
|
|
1887
|
+
h.value ? (w(), k("div", {
|
|
1946
1888
|
key: 0,
|
|
1947
1889
|
class: "vertical-indicator",
|
|
1948
|
-
style: J(
|
|
1890
|
+
style: J(F.value)
|
|
1949
1891
|
}, null, 4)) : Q("", !0),
|
|
1950
1892
|
(w(!0), k(U, null, ee(i.value, (H) => (w(), k("div", {
|
|
1951
|
-
class:
|
|
1893
|
+
class: ne(H.className),
|
|
1952
1894
|
style: J(p.value(H))
|
|
1953
1895
|
}, [
|
|
1954
|
-
|
|
1896
|
+
_("div", ao, oe(H.numbering), 1),
|
|
1955
1897
|
(w(!0), k(U, null, ee(H.elements, (R) => (w(), k("div", {
|
|
1956
|
-
class:
|
|
1898
|
+
class: ne(R.className),
|
|
1957
1899
|
style: J(p.value(R))
|
|
1958
1900
|
}, [
|
|
1959
|
-
(w(!0), k(U, null, ee(R.elements, (
|
|
1960
|
-
class:
|
|
1961
|
-
style: J(p.value(
|
|
1901
|
+
(w(!0), k(U, null, ee(R.elements, (X) => (w(), k("div", {
|
|
1902
|
+
class: ne(X.className),
|
|
1903
|
+
style: J(p.value(X))
|
|
1962
1904
|
}, null, 6))), 256))
|
|
1963
1905
|
], 6))), 256))
|
|
1964
1906
|
], 6))), 256))
|
|
1965
1907
|
], 4));
|
|
1966
1908
|
}
|
|
1967
|
-
},
|
|
1909
|
+
}, uo = /* @__PURE__ */ K(co, [["__scopeId", "data-v-ad77036c"]]), mo = { class: "super-editor-container" }, po = {
|
|
1968
1910
|
key: 1,
|
|
1969
1911
|
class: "placeholder-editor"
|
|
1970
|
-
},
|
|
1912
|
+
}, fo = { class: "placeholder-title" }, ho = {
|
|
1971
1913
|
__name: "SuperEditor",
|
|
1972
1914
|
props: {
|
|
1973
1915
|
documentId: {
|
|
@@ -1997,39 +1939,39 @@ const fo = (t, l) => {
|
|
|
1997
1939
|
"selection-update"
|
|
1998
1940
|
],
|
|
1999
1941
|
setup(t, { emit: l }) {
|
|
2000
|
-
const o = l, n = t, e =
|
|
1942
|
+
const o = l, n = t, e = y(!1), i = Ye(null), c = y(null), a = y(null);
|
|
2001
1943
|
let s;
|
|
2002
|
-
const
|
|
1944
|
+
const r = () => {
|
|
2003
1945
|
clearTimeout(s);
|
|
2004
|
-
}, d = (p,
|
|
2005
|
-
const
|
|
2006
|
-
const
|
|
2007
|
-
|
|
1946
|
+
}, d = (p, C = 10, F = 500) => {
|
|
1947
|
+
const z = p.getMap("meta"), B = () => {
|
|
1948
|
+
const q = z.get("docx");
|
|
1949
|
+
q ? (r(), h({ content: q })) : C > 0 ? (console.debug(`Waiting for 'docx' data... retries left: ${C}`), s = setTimeout(B, F), C--) : console.warn("Failed to load docx data from meta map.");
|
|
2008
1950
|
};
|
|
2009
|
-
|
|
1951
|
+
B();
|
|
2010
1952
|
}, u = async () => {
|
|
2011
1953
|
try {
|
|
2012
|
-
const [p,
|
|
2013
|
-
return { content: p, media:
|
|
1954
|
+
const [p, C, F, z] = await Oe.loadXmlData(n.fileSource);
|
|
1955
|
+
return { content: p, media: C, mediaFiles: F, fonts: z };
|
|
2014
1956
|
} catch (p) {
|
|
2015
1957
|
console.debug("Error loading new file data:", p);
|
|
2016
1958
|
}
|
|
2017
1959
|
}, b = async () => {
|
|
2018
1960
|
if (n.fileSource) {
|
|
2019
1961
|
const p = await u();
|
|
2020
|
-
return
|
|
1962
|
+
return h(p);
|
|
2021
1963
|
} else if (n.options.ydoc && n.options.collaborationProvider) {
|
|
2022
1964
|
delete n.options.content;
|
|
2023
|
-
const p = n.options.ydoc,
|
|
2024
|
-
d(p),
|
|
1965
|
+
const p = n.options.ydoc, C = n.options.collaborationProvider, F = () => {
|
|
1966
|
+
d(p), C.off("synced", F);
|
|
2025
1967
|
};
|
|
2026
|
-
|
|
1968
|
+
C.on("synced", F);
|
|
2027
1969
|
}
|
|
2028
1970
|
}, v = () => {
|
|
2029
|
-
const p =
|
|
2030
|
-
return n.options.pagination ? p : p.filter((
|
|
2031
|
-
},
|
|
2032
|
-
i.value = new
|
|
1971
|
+
const p = wt();
|
|
1972
|
+
return n.options.pagination ? p : p.filter((C) => C.name !== "pagination");
|
|
1973
|
+
}, h = async ({ content: p, media: C = {}, mediaFiles: F = {}, fonts: z = {} } = {}) => {
|
|
1974
|
+
i.value = new Oe({
|
|
2033
1975
|
mode: "docx",
|
|
2034
1976
|
element: a.value,
|
|
2035
1977
|
fileSource: n.fileSource,
|
|
@@ -2037,107 +1979,107 @@ const fo = (t, l) => {
|
|
|
2037
1979
|
externalExtensions: n.options.externalExtensions,
|
|
2038
1980
|
documentId: n.documentId,
|
|
2039
1981
|
content: p,
|
|
2040
|
-
media:
|
|
2041
|
-
mediaFiles:
|
|
2042
|
-
fonts:
|
|
1982
|
+
media: C,
|
|
1983
|
+
mediaFiles: F,
|
|
1984
|
+
fonts: z,
|
|
2043
1985
|
...n.options
|
|
2044
1986
|
}), i.value.on("paginationUpdate", () => {
|
|
2045
|
-
|
|
1987
|
+
so(a, i);
|
|
2046
1988
|
}), i.value.on("collaborationReady", () => {
|
|
2047
1989
|
setTimeout(() => {
|
|
2048
1990
|
e.value = !0;
|
|
2049
1991
|
}, 150);
|
|
2050
1992
|
});
|
|
2051
|
-
},
|
|
1993
|
+
}, E = (p) => {
|
|
2052
1994
|
o("editor-keydown", { editor: i.value });
|
|
2053
1995
|
}, g = (p) => {
|
|
2054
1996
|
o("editor-click", { editor: i.value });
|
|
2055
|
-
let
|
|
2056
|
-
if (!
|
|
1997
|
+
let C = a.value?.querySelector(".ProseMirror");
|
|
1998
|
+
if (!C || !i.value)
|
|
2057
1999
|
return;
|
|
2058
|
-
!
|
|
2000
|
+
!C.contains(p.target) && i.value.isEditable && i.value.view?.focus();
|
|
2059
2001
|
};
|
|
2060
|
-
|
|
2002
|
+
we(() => {
|
|
2061
2003
|
b(), (n.options?.suppressSkeletonLoader || !n.options?.collaborationProvider) && (e.value = !0);
|
|
2062
2004
|
});
|
|
2063
|
-
const
|
|
2064
|
-
p.target.classList.contains("ProseMirror") ||
|
|
2065
|
-
},
|
|
2005
|
+
const $ = (p) => {
|
|
2006
|
+
p.target.classList.contains("ProseMirror") || lo(p, i.value);
|
|
2007
|
+
}, L = ({ side: p, value: C }) => {
|
|
2066
2008
|
if (!i.value) return;
|
|
2067
|
-
const
|
|
2068
|
-
i.value?.updatePageStyle({ pageMargins:
|
|
2009
|
+
const F = i.value.getPageStyles(), { pageMargins: z } = F, B = { ...z, [p]: C };
|
|
2010
|
+
i.value?.updatePageStyle({ pageMargins: B });
|
|
2069
2011
|
};
|
|
2070
|
-
return
|
|
2071
|
-
|
|
2072
|
-
}), (p,
|
|
2073
|
-
t.options.rulers && i.value ? (w(),
|
|
2012
|
+
return Je(() => {
|
|
2013
|
+
r(), i.value?.destroy(), i.value = null;
|
|
2014
|
+
}), (p, C) => (w(), k("div", mo, [
|
|
2015
|
+
t.options.rulers && i.value ? (w(), Ot(uo, {
|
|
2074
2016
|
key: 0,
|
|
2075
2017
|
class: "ruler",
|
|
2076
2018
|
editor: i.value,
|
|
2077
|
-
onMarginChange:
|
|
2019
|
+
onMarginChange: L
|
|
2078
2020
|
}, null, 8, ["editor"])) : Q("", !0),
|
|
2079
|
-
|
|
2021
|
+
_("div", {
|
|
2080
2022
|
class: "super-editor",
|
|
2081
2023
|
ref_key: "editorWrapper",
|
|
2082
|
-
ref:
|
|
2083
|
-
onKeydown:
|
|
2024
|
+
ref: c,
|
|
2025
|
+
onKeydown: E,
|
|
2084
2026
|
onClick: g,
|
|
2085
|
-
onMousedown:
|
|
2027
|
+
onMousedown: $
|
|
2086
2028
|
}, [
|
|
2087
|
-
|
|
2029
|
+
_("div", {
|
|
2088
2030
|
ref_key: "editorElem",
|
|
2089
2031
|
ref: a,
|
|
2090
2032
|
class: "editor-element super-editor__element"
|
|
2091
2033
|
}, null, 512)
|
|
2092
2034
|
], 544),
|
|
2093
|
-
e.value ? Q("", !0) : (w(), k("div",
|
|
2094
|
-
|
|
2095
|
-
|
|
2035
|
+
e.value ? Q("", !0) : (w(), k("div", po, [
|
|
2036
|
+
_("div", fo, [
|
|
2037
|
+
V(D(Y), {
|
|
2096
2038
|
text: "",
|
|
2097
2039
|
style: { width: "60%" }
|
|
2098
2040
|
})
|
|
2099
2041
|
]),
|
|
2100
|
-
|
|
2042
|
+
V(D(Y), {
|
|
2101
2043
|
text: "",
|
|
2102
2044
|
repeat: 6
|
|
2103
2045
|
}),
|
|
2104
|
-
|
|
2046
|
+
V(D(Y), {
|
|
2105
2047
|
text: "",
|
|
2106
2048
|
style: { width: "60%" }
|
|
2107
2049
|
}),
|
|
2108
|
-
|
|
2050
|
+
V(D(Y), {
|
|
2109
2051
|
text: "",
|
|
2110
2052
|
repeat: 6,
|
|
2111
2053
|
style: { width: "30%", display: "block", margin: "20px" }
|
|
2112
2054
|
}),
|
|
2113
|
-
|
|
2055
|
+
V(D(Y), {
|
|
2114
2056
|
text: "",
|
|
2115
2057
|
style: { width: "60%" }
|
|
2116
2058
|
}),
|
|
2117
|
-
|
|
2059
|
+
V(D(Y), {
|
|
2118
2060
|
text: "",
|
|
2119
2061
|
repeat: 5
|
|
2120
2062
|
}),
|
|
2121
|
-
|
|
2063
|
+
V(D(Y), {
|
|
2122
2064
|
text: "",
|
|
2123
2065
|
style: { width: "30%" }
|
|
2124
2066
|
}),
|
|
2125
|
-
|
|
2067
|
+
V(D(Y), {
|
|
2126
2068
|
text: "",
|
|
2127
2069
|
style: { "margin-top": "50px" }
|
|
2128
2070
|
}),
|
|
2129
|
-
|
|
2071
|
+
V(D(Y), {
|
|
2130
2072
|
text: "",
|
|
2131
2073
|
repeat: 6
|
|
2132
2074
|
}),
|
|
2133
|
-
|
|
2075
|
+
V(D(Y), {
|
|
2134
2076
|
text: "",
|
|
2135
2077
|
style: { width: "70%" }
|
|
2136
2078
|
})
|
|
2137
2079
|
]))
|
|
2138
2080
|
]));
|
|
2139
2081
|
}
|
|
2140
|
-
},
|
|
2082
|
+
}, Eo = /* @__PURE__ */ K(ho, [["__scopeId", "data-v-ff8f86f4"]]), So = {
|
|
2141
2083
|
__name: "BasicUpload",
|
|
2142
2084
|
emits: ["file-change"],
|
|
2143
2085
|
setup(t, { emit: l }) {
|
|
@@ -2145,7 +2087,7 @@ const fo = (t, l) => {
|
|
|
2145
2087
|
o("file-change", e.target.files[0]);
|
|
2146
2088
|
};
|
|
2147
2089
|
return (e, i) => (w(), k("div", null, [
|
|
2148
|
-
|
|
2090
|
+
_("input", {
|
|
2149
2091
|
type: "file",
|
|
2150
2092
|
id: "fileInput",
|
|
2151
2093
|
onChange: n,
|
|
@@ -2153,7 +2095,7 @@ const fo = (t, l) => {
|
|
|
2153
2095
|
}, null, 32)
|
|
2154
2096
|
]));
|
|
2155
2097
|
}
|
|
2156
|
-
},
|
|
2098
|
+
}, go = ["innerHTML"], vo = {
|
|
2157
2099
|
__name: "SuperInput",
|
|
2158
2100
|
props: {
|
|
2159
2101
|
modelValue: {
|
|
@@ -2177,74 +2119,74 @@ const fo = (t, l) => {
|
|
|
2177
2119
|
},
|
|
2178
2120
|
emits: ["update:modelValue", "focus", "blur"],
|
|
2179
2121
|
setup(t, { emit: l }) {
|
|
2180
|
-
const o = l, n = t, e =
|
|
2181
|
-
const
|
|
2182
|
-
o("update:modelValue",
|
|
2183
|
-
}, s = ({ editor: v, transaction:
|
|
2184
|
-
|
|
2185
|
-
},
|
|
2186
|
-
|
|
2122
|
+
const o = l, n = t, e = Ye(), i = y(null), c = y(!1), a = ({ editor: v, transaction: h }) => {
|
|
2123
|
+
const E = v.getHTML();
|
|
2124
|
+
o("update:modelValue", E);
|
|
2125
|
+
}, s = ({ editor: v, transaction: h }) => {
|
|
2126
|
+
c.value = !0, b(), o("focus", { editor: v, transaction: h });
|
|
2127
|
+
}, r = ({ editor: v, transaction: h }) => {
|
|
2128
|
+
c.value = !1, o("blur", { editor: v, transaction: h });
|
|
2187
2129
|
}, d = async () => {
|
|
2188
|
-
|
|
2130
|
+
kt.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = a, n.options.onFocus = s, n.options.onBlur = r, e.value = new Oe({
|
|
2189
2131
|
mode: "text",
|
|
2190
2132
|
content: document.getElementById("currentContent"),
|
|
2191
2133
|
element: i.value,
|
|
2192
|
-
extensions:
|
|
2134
|
+
extensions: Ct(),
|
|
2193
2135
|
users: n.users,
|
|
2194
2136
|
...n.options
|
|
2195
2137
|
});
|
|
2196
2138
|
}, u = () => {
|
|
2197
|
-
|
|
2139
|
+
c.value = !0, e.value?.view?.focus();
|
|
2198
2140
|
}, b = () => {
|
|
2199
2141
|
e.value?.setOptions({ users: n.users });
|
|
2200
2142
|
};
|
|
2201
|
-
return
|
|
2143
|
+
return we(() => {
|
|
2202
2144
|
d();
|
|
2203
|
-
}),
|
|
2145
|
+
}), Je(() => {
|
|
2204
2146
|
e.value?.destroy(), e.value = null;
|
|
2205
|
-
}), (v,
|
|
2206
|
-
class:
|
|
2207
|
-
onClick:
|
|
2147
|
+
}), (v, h) => (w(), k("div", {
|
|
2148
|
+
class: ne(["super-editor super-input", { "super-input-active": c.value }]),
|
|
2149
|
+
onClick: be(u, ["stop", "prevent"])
|
|
2208
2150
|
}, [
|
|
2209
|
-
|
|
2151
|
+
_("div", {
|
|
2210
2152
|
id: "currentContent",
|
|
2211
2153
|
style: { display: "none" },
|
|
2212
2154
|
innerHTML: t.modelValue
|
|
2213
|
-
}, null, 8,
|
|
2214
|
-
|
|
2155
|
+
}, null, 8, go),
|
|
2156
|
+
_("div", {
|
|
2215
2157
|
ref_key: "editorElem",
|
|
2216
2158
|
ref: i,
|
|
2217
2159
|
class: "editor-element super-editor__element"
|
|
2218
2160
|
}, null, 512)
|
|
2219
2161
|
], 2));
|
|
2220
2162
|
}
|
|
2221
|
-
},
|
|
2222
|
-
Node:
|
|
2223
|
-
Attribute:
|
|
2224
|
-
Extension:
|
|
2225
|
-
Plugin:
|
|
2226
|
-
Mark:
|
|
2163
|
+
}, Ao = /* @__PURE__ */ K(vo, [["__scopeId", "data-v-4d5cff52"]]), To = {
|
|
2164
|
+
Node: St,
|
|
2165
|
+
Attribute: Et,
|
|
2166
|
+
Extension: xt,
|
|
2167
|
+
Plugin: It,
|
|
2168
|
+
Mark: _t
|
|
2227
2169
|
};
|
|
2228
2170
|
export {
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2171
|
+
Wt as AIWriter,
|
|
2172
|
+
So as BasicUpload,
|
|
2173
|
+
Lo as CommentsPluginKey,
|
|
2174
|
+
zo as DocxZipper,
|
|
2175
|
+
Oe as Editor,
|
|
2176
|
+
To as Extensions,
|
|
2177
|
+
Oo as SuperConverter,
|
|
2178
|
+
Eo as SuperEditor,
|
|
2179
|
+
Ao as SuperInput,
|
|
2180
|
+
xo as SuperToolbar,
|
|
2181
|
+
zt as Toolbar,
|
|
2182
|
+
Mo as TrackChangesBasePluginKey,
|
|
2183
|
+
Po as createZip,
|
|
2184
|
+
Do as fieldAnnotationHelpers,
|
|
2185
|
+
gt as getActiveFormatting,
|
|
2186
|
+
oo as getAllowedImageDimensions,
|
|
2187
|
+
$o as getMarksFromSelection,
|
|
2188
|
+
Ct as getRichTextExtensions,
|
|
2189
|
+
wt as getStarterExtensions,
|
|
2190
|
+
Ho as helpers,
|
|
2191
|
+
Bo as trackChangesHelpers
|
|
2250
2192
|
};
|