@eigenpal/docx-editor-vue 1.3.0 → 1.3.2
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/{KeyboardShortcutsDialog-00eb4Ova.js → KeyboardShortcutsDialog-BbuDgglK.js} +14 -4
- package/dist/KeyboardShortcutsDialog-Bct8AJ0i.cjs +1 -0
- package/dist/{MenuBar-DeogoqFP.js → MenuBar-CbONA9-a.js} +571 -522
- package/dist/MenuBar-m0JEaF1X.cjs +4 -0
- package/dist/{TablePropertiesDialog-CBTvM4Xy.js → TablePropertiesDialog-D5MIF3cj.js} +1 -1
- package/dist/{TablePropertiesDialog-BZLpFAkg.cjs → TablePropertiesDialog-JWT68zEO.cjs} +1 -1
- package/dist/components/DocxEditor/types.d.ts +23 -1
- package/dist/components/Toolbar/presets.d.ts +12 -33
- package/dist/composables/useCommentLifecycle.d.ts +9 -1
- package/dist/composables/useCommentManagement.d.ts +24 -1
- package/dist/composables/useFormattingActions.d.ts +2 -22
- package/dist/composables/useHostCallbacks.d.ts +7 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +85 -129
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -2
- package/dist/docx-editor-vue.css +1 -1
- package/dist/index.cjs +9 -10
- package/dist/index.js +1117 -1281
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +141 -141
- package/dist/useDragAutoScroll-DNMi0p5G.cjs +1 -0
- package/dist/useDragAutoScroll-DbxuTWI1.js +493 -0
- package/dist/utils/refApiQueries.d.ts +8 -44
- package/package.json +4 -4
- package/dist/KeyboardShortcutsDialog-EW9K4wuO.cjs +0 -1
- package/dist/MenuBar-bU4-4dnA.cjs +0 -4
- package/dist/useTableResize-DBpEiuGQ.cjs +0 -1
- package/dist/useTableResize-uq2ksRDf.js +0 -587
- package/dist/utils/commentFactories.d.ts +0 -7
- package/dist/utils/paraTextHelpers.d.ts +0 -29
package/dist/ui.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
import { C as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { Fragment as k, Teleport as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, guardReactiveProps as z, nextTick as B, normalizeClass as V, normalizeProps as
|
|
1
|
+
import { a as e, d as t, i as n, n as r, o as i, p as a, r as o, s, t as c } from "./KeyboardShortcutsDialog-BbuDgglK.js";
|
|
2
|
+
import { C as l, D as u, E as d, S as f, T as ee, _ as te, a as ne, b as p, c as m, d as h, f as g, g as _, h as v, i as y, l as b, m as x, n as re, o as ie, p as ae, r as oe, s as se, t as S, u as ce, v as le, w as ue, x as C, y as de } from "./MenuBar-CbONA9-a.js";
|
|
3
|
+
import { t as w } from "./_plugin-vue_export-helper-B52Kst-M.js";
|
|
4
|
+
import { a as fe, i as pe, n as me, o as T, r as E, s as D, t as O } from "./TablePropertiesDialog-D5MIF3cj.js";
|
|
5
|
+
import { Fragment as k, Teleport as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, guardReactiveProps as z, nextTick as B, normalizeClass as V, normalizeProps as he, normalizeStyle as H, onBeforeUnmount as U, onMounted as W, openBlock as G, ref as K, renderList as q, renderSlot as J, resolveDynamicComponent as ge, toDisplayString as Y, unref as _e, watch as ve, withCtx as X, withKeys as Z, withModifiers as Q } from "vue";
|
|
6
6
|
import "@eigenpal/docx-editor-core/utils/units";
|
|
7
|
-
import { createDefaultListState as
|
|
8
|
-
import { CARD_STYLE_COLLAPSED as
|
|
7
|
+
import { createDefaultListState as ye } from "@eigenpal/docx-editor-core/utils/listState";
|
|
8
|
+
import { CARD_STYLE_COLLAPSED as be, CARD_STYLE_EXPANDED as xe } from "@eigenpal/docx-editor-core/utils/cardStyles";
|
|
9
9
|
//#region src/components/EditorToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var Se = { class: "docx-editor-toolbar" }, Ce = { class: "docx-editor-toolbar__title-row" }, we = { class: "docx-editor-toolbar__title-left" }, Te = { class: "docx-editor-toolbar__title-center" }, Ee = { class: "docx-editor-toolbar__title-right" }, De = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "EditorToolbar",
|
|
13
13
|
props: { showMenuBar: {
|
|
@@ -16,81 +16,81 @@ var be = { class: "docx-editor-toolbar" }, xe = { class: "docx-editor-toolbar__t
|
|
|
16
16
|
} },
|
|
17
17
|
emits: ["menu-action"],
|
|
18
18
|
setup(e) {
|
|
19
|
-
return (t, n) => (G(), P("div",
|
|
20
|
-
F("div",
|
|
21
|
-
F("div",
|
|
19
|
+
return (t, n) => (G(), P("div", Se, [J(t.$slots, "title-bar", {}, () => [F("div", Ce, [
|
|
20
|
+
F("div", we, [J(t.$slots, "title-bar-left", {}, void 0, !0)]),
|
|
21
|
+
F("div", Te, [J(t.$slots, "document-name", {}, void 0, !0), e.showMenuBar ? (G(), M(S, {
|
|
22
22
|
key: 0,
|
|
23
23
|
onAction: n[0] ||= (e) => t.$emit("menu-action", e)
|
|
24
24
|
})) : N("", !0)]),
|
|
25
|
-
F("div",
|
|
26
|
-
])], !0), J(t.$slots, "toolbar", {}, () => [L(
|
|
25
|
+
F("div", Ee, [J(t.$slots, "title-bar-right", {}, void 0, !0)])
|
|
26
|
+
])], !0), J(t.$slots, "toolbar", {}, () => [L(C, he(z(t.$attrs)), null, 16)], !0)]));
|
|
27
27
|
}
|
|
28
|
-
}), [["__scopeId", "data-v-7d626a51"]]),
|
|
29
|
-
function
|
|
30
|
-
return G(), P("div",
|
|
31
|
-
F("div",
|
|
32
|
-
F("div",
|
|
33
|
-
F("div",
|
|
28
|
+
}), [["__scopeId", "data-v-7d626a51"]]), Oe = {}, ke = { class: "docx-title-bar" }, Ae = { class: "docx-title-bar__left" }, je = { class: "docx-title-bar__center" }, Me = { class: "docx-title-bar__right" };
|
|
29
|
+
function Ne(e, t) {
|
|
30
|
+
return G(), P("div", ke, [
|
|
31
|
+
F("div", Ae, [J(e.$slots, "left", {}, void 0, !0)]),
|
|
32
|
+
F("div", je, [J(e.$slots, "default", {}, void 0, !0)]),
|
|
33
|
+
F("div", Me, [J(e.$slots, "right", {}, void 0, !0)])
|
|
34
34
|
]);
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var Pe = /* @__PURE__ */ w(Oe, [["render", Ne], ["__scopeId", "data-v-53d684ff"]]), Fe = ["title"], Ie = {
|
|
37
37
|
key: 0,
|
|
38
38
|
class: "responsive-toolbar__overflow-menu"
|
|
39
|
-
},
|
|
39
|
+
}, Le = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
40
40
|
__name: "ResponsiveToolbar",
|
|
41
41
|
setup(e) {
|
|
42
|
-
let t = K(null),
|
|
43
|
-
function
|
|
44
|
-
let e =
|
|
45
|
-
if (!e || !
|
|
46
|
-
let
|
|
47
|
-
for (let e of
|
|
42
|
+
let { t: n } = t(), r = K(null), i = K(null), a = K(null), o = K(0), s = K(!1), c = null;
|
|
43
|
+
function l() {
|
|
44
|
+
let e = r.value, t = i.value;
|
|
45
|
+
if (!e || !t) return;
|
|
46
|
+
let n = e.clientWidth - 40, a = Array.from(t.children), s = 0;
|
|
47
|
+
for (let e of a) e.style.display = "";
|
|
48
48
|
let c = 0;
|
|
49
|
-
for (let e of
|
|
50
|
-
|
|
49
|
+
for (let e of a) c += e.offsetWidth + 2, c > n ? e.style.display = "none" : s++;
|
|
50
|
+
o.value = a.length - s;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function u(e) {
|
|
53
53
|
let t = e.target;
|
|
54
|
-
|
|
54
|
+
a.value?.contains(t) || (s.value = !1);
|
|
55
55
|
}
|
|
56
56
|
return W(() => {
|
|
57
|
-
|
|
58
|
-
B(
|
|
59
|
-
}),
|
|
57
|
+
c = new ResizeObserver(() => {
|
|
58
|
+
B(l);
|
|
59
|
+
}), r.value && c.observe(r.value), B(l), document.addEventListener("mousedown", u);
|
|
60
60
|
}), U(() => {
|
|
61
|
-
|
|
62
|
-
}), (e,
|
|
61
|
+
c?.disconnect(), document.removeEventListener("mousedown", u);
|
|
62
|
+
}), (e, t) => (G(), P("div", {
|
|
63
63
|
class: "responsive-toolbar",
|
|
64
64
|
ref_key: "containerRef",
|
|
65
|
-
ref:
|
|
65
|
+
ref: r
|
|
66
66
|
}, [F("div", {
|
|
67
67
|
class: "responsive-toolbar__items",
|
|
68
68
|
ref_key: "itemsRef",
|
|
69
|
-
ref:
|
|
70
|
-
}, [J(e.$slots, "default", {}, void 0, !0)], 512),
|
|
69
|
+
ref: i
|
|
70
|
+
}, [J(e.$slots, "default", {}, void 0, !0)], 512), o.value > 0 ? (G(), P("div", {
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "responsive-toolbar__overflow",
|
|
73
73
|
ref_key: "overflowRef",
|
|
74
|
-
ref:
|
|
74
|
+
ref: a
|
|
75
75
|
}, [F("button", {
|
|
76
76
|
class: "responsive-toolbar__overflow-btn",
|
|
77
|
-
onMousedown:
|
|
78
|
-
title:
|
|
79
|
-
}, " ⋯ ", 40,
|
|
77
|
+
onMousedown: t[0] ||= Q((e) => s.value = !s.value, ["prevent"]),
|
|
78
|
+
title: _e(n)("formattingBar.moreItems", { count: o.value })
|
|
79
|
+
}, " ⋯ ", 40, Fe), s.value ? (G(), P("div", Ie, [J(e.$slots, "overflow", {}, void 0, !0)])) : N("", !0)], 512)) : N("", !0)], 512));
|
|
80
80
|
}
|
|
81
|
-
}), [["__scopeId", "data-v-
|
|
81
|
+
}), [["__scopeId", "data-v-2cc484cc"]]), Re = ["value", "disabled"], ze = {
|
|
82
82
|
key: 0,
|
|
83
83
|
label: "Sans-serif"
|
|
84
|
-
},
|
|
84
|
+
}, Be = ["value"], Ve = {
|
|
85
85
|
key: 1,
|
|
86
86
|
label: "Serif"
|
|
87
|
-
},
|
|
87
|
+
}, He = ["value"], Ue = {
|
|
88
88
|
key: 2,
|
|
89
89
|
label: "Monospace"
|
|
90
|
-
},
|
|
90
|
+
}, We = ["value"], Ge = {
|
|
91
91
|
key: 3,
|
|
92
92
|
label: "Other"
|
|
93
|
-
},
|
|
93
|
+
}, Ke = ["value"], qe = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
94
94
|
__name: "FontPicker",
|
|
95
95
|
props: {
|
|
96
96
|
value: {},
|
|
@@ -190,33 +190,33 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
190
190
|
"aria-label": "Font family",
|
|
191
191
|
onChange: c
|
|
192
192
|
}, [
|
|
193
|
-
o.value["sans-serif"].length ? (G(), P("optgroup",
|
|
193
|
+
o.value["sans-serif"].length ? (G(), P("optgroup", ze, [(G(!0), P(k, null, q(o.value["sans-serif"], (t) => (G(), P("option", {
|
|
194
194
|
key: t.name,
|
|
195
195
|
value: t.name,
|
|
196
196
|
style: H(e.showPreview ? { fontFamily: t.fontFamily } : void 0)
|
|
197
|
-
}, Y(t.name), 13,
|
|
198
|
-
o.value.serif.length ? (G(), P("optgroup",
|
|
197
|
+
}, Y(t.name), 13, Be))), 128))])) : N("", !0),
|
|
198
|
+
o.value.serif.length ? (G(), P("optgroup", Ve, [(G(!0), P(k, null, q(o.value.serif, (t) => (G(), P("option", {
|
|
199
199
|
key: t.name,
|
|
200
200
|
value: t.name,
|
|
201
201
|
style: H(e.showPreview ? { fontFamily: t.fontFamily } : void 0)
|
|
202
|
-
}, Y(t.name), 13,
|
|
203
|
-
o.value.monospace.length ? (G(), P("optgroup",
|
|
202
|
+
}, Y(t.name), 13, He))), 128))])) : N("", !0),
|
|
203
|
+
o.value.monospace.length ? (G(), P("optgroup", Ue, [(G(!0), P(k, null, q(o.value.monospace, (t) => (G(), P("option", {
|
|
204
204
|
key: t.name,
|
|
205
205
|
value: t.name,
|
|
206
206
|
style: H(e.showPreview ? { fontFamily: t.fontFamily } : void 0)
|
|
207
|
-
}, Y(t.name), 13,
|
|
208
|
-
o.value.other.length ? (G(), P("optgroup",
|
|
207
|
+
}, Y(t.name), 13, We))), 128))])) : N("", !0),
|
|
208
|
+
o.value.other.length ? (G(), P("optgroup", Ge, [(G(!0), P(k, null, q(o.value.other, (t) => (G(), P("option", {
|
|
209
209
|
key: t.name,
|
|
210
210
|
value: t.name,
|
|
211
211
|
style: H(e.showPreview ? { fontFamily: t.fontFamily } : void 0)
|
|
212
|
-
}, Y(t.name), 13,
|
|
213
|
-
], 42,
|
|
212
|
+
}, Y(t.name), 13, Ke))), 128))])) : N("", !0)
|
|
213
|
+
], 42, Re));
|
|
214
214
|
}
|
|
215
|
-
}), [["__scopeId", "data-v-e9575b1d"]]),
|
|
215
|
+
}), [["__scopeId", "data-v-e9575b1d"]]), Je = { class: "docx-font-size" }, Ye = ["disabled"], Xe = [
|
|
216
216
|
"value",
|
|
217
217
|
"disabled",
|
|
218
218
|
"placeholder"
|
|
219
|
-
],
|
|
219
|
+
], Ze = ["disabled"], Qe = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
220
220
|
__name: "FontSizePicker",
|
|
221
221
|
props: {
|
|
222
222
|
value: {},
|
|
@@ -263,14 +263,14 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
263
263
|
let t = parseFloat(e.target.value);
|
|
264
264
|
!isNaN(t) && t >= n.minSize && t <= n.maxSize && r("change", Math.round(t * 2) / 2);
|
|
265
265
|
}
|
|
266
|
-
return (t, n) => (G(), P("div",
|
|
266
|
+
return (t, n) => (G(), P("div", Je, [
|
|
267
267
|
F("button", {
|
|
268
268
|
type: "button",
|
|
269
269
|
class: "docx-font-size__btn",
|
|
270
270
|
disabled: e.disabled || o.value <= e.minSize,
|
|
271
271
|
title: "Decrease font size",
|
|
272
272
|
onClick: Q(u, ["prevent"])
|
|
273
|
-
}, "−", 8,
|
|
273
|
+
}, "−", 8, Ye),
|
|
274
274
|
F("input", {
|
|
275
275
|
class: "docx-font-size__input",
|
|
276
276
|
type: "text",
|
|
@@ -287,17 +287,17 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
287
287
|
n[2] ||= Z(Q((e) => f(e), ["prevent"]), ["enter"])
|
|
288
288
|
],
|
|
289
289
|
onBlur: n[3] ||= (e) => f(e)
|
|
290
|
-
}, null, 40,
|
|
290
|
+
}, null, 40, Xe),
|
|
291
291
|
F("button", {
|
|
292
292
|
type: "button",
|
|
293
293
|
class: "docx-font-size__btn",
|
|
294
294
|
disabled: e.disabled || o.value >= e.maxSize,
|
|
295
295
|
title: "Increase font size",
|
|
296
296
|
onClick: Q(d, ["prevent"])
|
|
297
|
-
}, "+", 8,
|
|
297
|
+
}, "+", 8, Ze)
|
|
298
298
|
]));
|
|
299
299
|
}
|
|
300
|
-
}), [["__scopeId", "data-v-966fd914"]]),
|
|
300
|
+
}), [["__scopeId", "data-v-966fd914"]]), $e = ["value", "disabled"], et = ["value"], tt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
301
301
|
__name: "LineSpacingPicker",
|
|
302
302
|
props: {
|
|
303
303
|
value: {},
|
|
@@ -345,9 +345,9 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
345
345
|
}, [(G(!0), P(k, null, q(a.value, (e) => (G(), P("option", {
|
|
346
346
|
key: e.twipsValue,
|
|
347
347
|
value: String(e.twipsValue)
|
|
348
|
-
}, Y(e.label), 9,
|
|
348
|
+
}, Y(e.label), 9, et))), 128))], 42, $e));
|
|
349
349
|
}
|
|
350
|
-
}), [["__scopeId", "data-v-fa103426"]]),
|
|
350
|
+
}), [["__scopeId", "data-v-fa103426"]]), nt = ["value", "disabled"], rt = ["value"], it = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
351
351
|
__name: "StylePicker",
|
|
352
352
|
props: {
|
|
353
353
|
value: {},
|
|
@@ -398,14 +398,14 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
398
398
|
}, [(G(!0), P(k, null, q(a.value, (e) => (G(), P("option", {
|
|
399
399
|
key: e.styleId,
|
|
400
400
|
value: e.styleId
|
|
401
|
-
}, Y(e.name), 9,
|
|
401
|
+
}, Y(e.name), 9, rt))), 128))], 42, nt));
|
|
402
402
|
}
|
|
403
|
-
}), [["__scopeId", "data-v-e8ec7466"]]),
|
|
403
|
+
}), [["__scopeId", "data-v-e8ec7466"]]), at = [
|
|
404
404
|
"disabled",
|
|
405
405
|
"title",
|
|
406
406
|
"aria-expanded",
|
|
407
407
|
"onClick"
|
|
408
|
-
],
|
|
408
|
+
], ot = { class: "docx-align__panel" }, st = ["title", "onClick"], ct = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
409
409
|
__name: "AlignmentButtons",
|
|
410
410
|
props: {
|
|
411
411
|
value: { default: "left" },
|
|
@@ -416,7 +416,7 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
416
416
|
},
|
|
417
417
|
emits: ["change"],
|
|
418
418
|
setup(e, { emit: t }) {
|
|
419
|
-
let n = e, r = t,
|
|
419
|
+
let n = e, r = t, i = K(!1), o = [
|
|
420
420
|
{
|
|
421
421
|
value: "left",
|
|
422
422
|
label: "Align left",
|
|
@@ -443,42 +443,42 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
443
443
|
}
|
|
444
444
|
], s = j(() => o.find((e) => e.value === n.value)?.icon ?? "format_align_left"), c = j(() => o.find((e) => e.value === n.value)?.label ?? "Left");
|
|
445
445
|
function l(e) {
|
|
446
|
-
r("change", e),
|
|
446
|
+
r("change", e), i.value = !1;
|
|
447
447
|
}
|
|
448
|
-
return (t, n) => (G(), M(
|
|
449
|
-
open:
|
|
450
|
-
"onUpdate:open": n[0] ||= (e) =>
|
|
451
|
-
onClose: n[1] ||= (e) =>
|
|
448
|
+
return (t, n) => (G(), M(d, {
|
|
449
|
+
open: i.value,
|
|
450
|
+
"onUpdate:open": n[0] ||= (e) => i.value = e,
|
|
451
|
+
onClose: n[1] ||= (e) => i.value = !1
|
|
452
452
|
}, {
|
|
453
453
|
trigger: X(({ toggle: t }) => [F("button", {
|
|
454
454
|
type: "button",
|
|
455
|
-
class: V(["docx-align__btn", { "docx-align__btn--open":
|
|
455
|
+
class: V(["docx-align__btn", { "docx-align__btn--open": i.value }]),
|
|
456
456
|
disabled: e.disabled,
|
|
457
457
|
title: `Alignment: ${c.value}`,
|
|
458
|
-
"aria-expanded":
|
|
458
|
+
"aria-expanded": i.value,
|
|
459
459
|
"aria-haspopup": "true",
|
|
460
460
|
onClick: Q(t, ["prevent"])
|
|
461
|
-
}, [L(
|
|
461
|
+
}, [L(a, {
|
|
462
462
|
name: s.value,
|
|
463
463
|
size: 20
|
|
464
|
-
}, null, 8, ["name"]), L(
|
|
464
|
+
}, null, 8, ["name"]), L(a, {
|
|
465
465
|
name: "arrow_drop_down",
|
|
466
466
|
size: 14
|
|
467
|
-
})], 10,
|
|
468
|
-
panel: X(() => [F("div",
|
|
467
|
+
})], 10, at)]),
|
|
468
|
+
panel: X(() => [F("div", ot, [(G(), P(k, null, q(o, (t) => F("button", {
|
|
469
469
|
key: t.value,
|
|
470
470
|
type: "button",
|
|
471
471
|
class: V(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
|
|
472
472
|
title: `${t.label} (${t.shortcut})`,
|
|
473
473
|
onClick: Q((e) => l(t.value), ["prevent"])
|
|
474
|
-
}, [L(
|
|
474
|
+
}, [L(a, {
|
|
475
475
|
name: t.icon,
|
|
476
476
|
size: 20
|
|
477
|
-
}, null, 8, ["name"])], 10,
|
|
477
|
+
}, null, 8, ["name"])], 10, st)), 64))])]),
|
|
478
478
|
_: 1
|
|
479
479
|
}, 8, ["open"]));
|
|
480
480
|
}
|
|
481
|
-
}), [["__scopeId", "data-v-f2eb4f74"]]),
|
|
481
|
+
}), [["__scopeId", "data-v-f2eb4f74"]]), lt = { class: "docx-list-btns" }, ut = ["disabled"], dt = ["disabled"], ft = ["disabled"], pt = ["disabled"], mt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
482
482
|
__name: "ListButtons",
|
|
483
483
|
props: {
|
|
484
484
|
listState: {},
|
|
@@ -502,53 +502,53 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
502
502
|
"outdent"
|
|
503
503
|
],
|
|
504
504
|
setup(e) {
|
|
505
|
-
return (t, n) => (G(), P("span",
|
|
505
|
+
return (t, n) => (G(), P("span", lt, [
|
|
506
506
|
F("button", {
|
|
507
507
|
type: "button",
|
|
508
508
|
class: V(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "bullet" }]),
|
|
509
509
|
disabled: e.disabled,
|
|
510
510
|
title: "Bullet list",
|
|
511
511
|
onClick: n[0] ||= Q((e) => t.$emit("bullet-list"), ["prevent"])
|
|
512
|
-
}, [L(
|
|
512
|
+
}, [L(a, {
|
|
513
513
|
name: "format_list_bulleted",
|
|
514
514
|
size: 20
|
|
515
|
-
})], 10,
|
|
515
|
+
})], 10, ut),
|
|
516
516
|
F("button", {
|
|
517
517
|
type: "button",
|
|
518
518
|
class: V(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "numbered" }]),
|
|
519
519
|
disabled: e.disabled,
|
|
520
520
|
title: "Numbered list",
|
|
521
521
|
onClick: n[1] ||= Q((e) => t.$emit("numbered-list"), ["prevent"])
|
|
522
|
-
}, [L(
|
|
522
|
+
}, [L(a, {
|
|
523
523
|
name: "format_list_numbered",
|
|
524
524
|
size: 20
|
|
525
|
-
})], 10,
|
|
525
|
+
})], 10, dt),
|
|
526
526
|
e.showIndentButtons ? (G(), P(k, { key: 0 }, [F("button", {
|
|
527
527
|
type: "button",
|
|
528
528
|
class: "docx-list-btns__btn",
|
|
529
529
|
disabled: e.disabled || !e.canOutdent,
|
|
530
530
|
title: "Decrease indent",
|
|
531
531
|
onClick: n[2] ||= Q((e) => t.$emit("outdent"), ["prevent"])
|
|
532
|
-
}, [L(
|
|
532
|
+
}, [L(a, {
|
|
533
533
|
name: "format_indent_decrease",
|
|
534
534
|
size: 20
|
|
535
|
-
})], 8,
|
|
535
|
+
})], 8, ft), F("button", {
|
|
536
536
|
type: "button",
|
|
537
537
|
class: "docx-list-btns__btn",
|
|
538
538
|
disabled: e.disabled,
|
|
539
539
|
title: "Increase indent",
|
|
540
540
|
onClick: n[3] ||= Q((e) => t.$emit("indent"), ["prevent"])
|
|
541
|
-
}, [L(
|
|
541
|
+
}, [L(a, {
|
|
542
542
|
name: "format_indent_increase",
|
|
543
543
|
size: 20
|
|
544
|
-
})], 8,
|
|
544
|
+
})], 8, pt)], 64)) : N("", !0)
|
|
545
545
|
]));
|
|
546
546
|
}
|
|
547
|
-
}), [["__scopeId", "data-v-6e11903a"]]),
|
|
547
|
+
}), [["__scopeId", "data-v-6e11903a"]]), ht = [
|
|
548
548
|
"value",
|
|
549
549
|
"disabled",
|
|
550
550
|
"aria-label"
|
|
551
|
-
],
|
|
551
|
+
], gt = ["value"], _t = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
552
552
|
__name: "ZoomControl",
|
|
553
553
|
props: {
|
|
554
554
|
value: { default: 1 },
|
|
@@ -610,9 +610,9 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
610
610
|
}, [(G(!0), P(k, null, q(a.value, (e) => (G(), P("option", {
|
|
611
611
|
key: e.value,
|
|
612
612
|
value: e.value
|
|
613
|
-
}, Y(e.label), 9,
|
|
613
|
+
}, Y(e.label), 9, gt))), 128))], 42, ht));
|
|
614
614
|
}
|
|
615
|
-
}), [["__scopeId", "data-v-b68bd14b"]]),
|
|
615
|
+
}), [["__scopeId", "data-v-b68bd14b"]]), vt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
616
616
|
__name: "Tooltip",
|
|
617
617
|
props: {
|
|
618
618
|
content: {},
|
|
@@ -660,16 +660,16 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
660
660
|
style: H(c.value)
|
|
661
661
|
}, Y(e.content), 5)) : N("", !0)]))], 64));
|
|
662
662
|
}
|
|
663
|
-
}), [["__scopeId", "data-v-ad4cfb4e"]]),
|
|
663
|
+
}), [["__scopeId", "data-v-ad4cfb4e"]]), yt = ["aria-label"], bt = {
|
|
664
664
|
key: 0,
|
|
665
665
|
class: "docx-loading__spinner"
|
|
666
|
-
},
|
|
666
|
+
}, xt = {
|
|
667
667
|
key: 1,
|
|
668
668
|
class: "docx-loading__bar"
|
|
669
|
-
},
|
|
669
|
+
}, St = {
|
|
670
670
|
key: 2,
|
|
671
671
|
class: "docx-loading__message"
|
|
672
|
-
},
|
|
672
|
+
}, Ct = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
673
673
|
__name: "LoadingIndicator",
|
|
674
674
|
props: {
|
|
675
675
|
isLoading: { type: Boolean },
|
|
@@ -693,12 +693,12 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
693
693
|
]),
|
|
694
694
|
role: "status",
|
|
695
695
|
"aria-label": e.message
|
|
696
|
-
}, [e.variant === "spinner" ? (G(), P("span",
|
|
696
|
+
}, [e.variant === "spinner" ? (G(), P("span", bt)) : e.variant === "bar" || e.variant === "progress" ? (G(), P("div", xt, [F("div", {
|
|
697
697
|
class: "docx-loading__bar-fill",
|
|
698
698
|
style: H(e.variant === "progress" && e.progress != null ? { width: e.progress + "%" } : void 0)
|
|
699
|
-
}, null, 4)])) : N("", !0), e.message ? (G(), P("span",
|
|
699
|
+
}, null, 4)])) : N("", !0), e.message ? (G(), P("span", St, Y(e.message), 1)) : N("", !0)], 10, yt)) : N("", !0);
|
|
700
700
|
}
|
|
701
|
-
}), [["__scopeId", "data-v-2bd78a2f"]]),
|
|
701
|
+
}), [["__scopeId", "data-v-2bd78a2f"]]), wt = ["disabled"], Tt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Et = /* @__PURE__ */ R({
|
|
702
702
|
__name: "Button",
|
|
703
703
|
props: {
|
|
704
704
|
variant: { default: "default" },
|
|
@@ -725,7 +725,7 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
725
725
|
icon: "h-9 w-9",
|
|
726
726
|
"icon-sm": "h-7 w-7"
|
|
727
727
|
}, i = j(() => [
|
|
728
|
-
|
|
728
|
+
Tt,
|
|
729
729
|
n[t.variant],
|
|
730
730
|
r[t.size],
|
|
731
731
|
t.className
|
|
@@ -734,14 +734,14 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
734
734
|
class: V(i.value),
|
|
735
735
|
disabled: e.disabled,
|
|
736
736
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
737
|
-
}, [J(t.$slots, "default")], 10,
|
|
737
|
+
}, [J(t.$slots, "default")], 10, wt));
|
|
738
738
|
}
|
|
739
|
-
}),
|
|
739
|
+
}), Dt = [
|
|
740
740
|
"disabled",
|
|
741
741
|
"aria-expanded",
|
|
742
742
|
"title",
|
|
743
743
|
"onClick"
|
|
744
|
-
],
|
|
744
|
+
], Ot = { class: "docx-table-grid__panel" }, kt = { class: "docx-table-grid__label" }, At = ["onMouseenter", "onClick"], jt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
745
745
|
__name: "TableGridPicker",
|
|
746
746
|
props: {
|
|
747
747
|
disabled: {
|
|
@@ -754,7 +754,7 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
754
754
|
},
|
|
755
755
|
emits: ["insert"],
|
|
756
756
|
setup(e, { emit: t }) {
|
|
757
|
-
let n = e, r = t,
|
|
757
|
+
let n = e, r = t, i = K(!1), o = K({
|
|
758
758
|
rows: 1,
|
|
759
759
|
cols: 1
|
|
760
760
|
}), s = j(() => {
|
|
@@ -766,32 +766,32 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
766
766
|
return e;
|
|
767
767
|
});
|
|
768
768
|
function c(e, t) {
|
|
769
|
-
r("insert", e, t),
|
|
769
|
+
r("insert", e, t), i.value = !1;
|
|
770
770
|
}
|
|
771
771
|
function l() {
|
|
772
|
-
|
|
772
|
+
i.value = !1, o.value = {
|
|
773
773
|
rows: 1,
|
|
774
774
|
cols: 1
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
return (t, n) => (G(), M(
|
|
778
|
-
open:
|
|
779
|
-
"onUpdate:open": n[0] ||= (e) =>
|
|
777
|
+
return (t, n) => (G(), M(d, {
|
|
778
|
+
open: i.value,
|
|
779
|
+
"onUpdate:open": n[0] ||= (e) => i.value = e,
|
|
780
780
|
onClose: l
|
|
781
781
|
}, {
|
|
782
782
|
trigger: X(({ toggle: t }) => [F("button", {
|
|
783
783
|
type: "button",
|
|
784
784
|
class: "docx-table-grid__btn",
|
|
785
785
|
disabled: e.disabled,
|
|
786
|
-
"aria-expanded":
|
|
786
|
+
"aria-expanded": i.value,
|
|
787
787
|
"aria-haspopup": "grid",
|
|
788
788
|
title: e.tooltip,
|
|
789
789
|
onClick: Q(t, ["prevent"])
|
|
790
|
-
}, [L(
|
|
790
|
+
}, [L(a, {
|
|
791
791
|
name: "grid_on",
|
|
792
792
|
size: 20
|
|
793
|
-
})], 8,
|
|
794
|
-
panel: X(() => [F("div",
|
|
793
|
+
})], 8, Dt)]),
|
|
794
|
+
panel: X(() => [F("div", Ot, [F("div", kt, Y(o.value.rows) + " × " + Y(o.value.cols), 1), F("div", {
|
|
795
795
|
class: "docx-table-grid__grid",
|
|
796
796
|
style: H({ gridTemplateColumns: `repeat(${e.gridColumns}, 18px)` })
|
|
797
797
|
}, [(G(!0), P(k, null, q(s.value, (e) => (G(), P("button", {
|
|
@@ -802,15 +802,15 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
802
802
|
cols: e.c
|
|
803
803
|
},
|
|
804
804
|
onClick: Q((t) => c(e.r, e.c), ["prevent"])
|
|
805
|
-
}, null, 42,
|
|
805
|
+
}, null, 42, At))), 128))], 4)])]),
|
|
806
806
|
_: 1
|
|
807
807
|
}, 8, ["open"]));
|
|
808
808
|
}
|
|
809
|
-
}), [["__scopeId", "data-v-235ac5f8"]]),
|
|
809
|
+
}), [["__scopeId", "data-v-235ac5f8"]]), Mt = { class: "docx-table-insert" }, Nt = [
|
|
810
810
|
"disabled",
|
|
811
811
|
"title",
|
|
812
812
|
"onClick"
|
|
813
|
-
],
|
|
813
|
+
], $ = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
814
814
|
__name: "TableInsertButtons",
|
|
815
815
|
props: { disabled: { type: Boolean } },
|
|
816
816
|
emits: ["action"],
|
|
@@ -837,19 +837,19 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
837
837
|
label: "Insert column right"
|
|
838
838
|
}
|
|
839
839
|
];
|
|
840
|
-
return (t,
|
|
840
|
+
return (t, i) => (G(), P("span", Mt, [(G(), P(k, null, q(r, (t) => F("button", {
|
|
841
841
|
key: t.action,
|
|
842
842
|
type: "button",
|
|
843
843
|
class: "docx-table-insert__btn",
|
|
844
844
|
disabled: e.disabled,
|
|
845
845
|
title: t.label,
|
|
846
846
|
onClick: Q((e) => n("action", t.action), ["prevent"])
|
|
847
|
-
}, [L(
|
|
847
|
+
}, [L(a, {
|
|
848
848
|
name: t.icon,
|
|
849
849
|
size: 20
|
|
850
|
-
}, null, 8, ["name"])], 8,
|
|
850
|
+
}, null, 8, ["name"])], 8, Nt)), 64))]));
|
|
851
851
|
}
|
|
852
|
-
}), [["__scopeId", "data-v-c5bf5e60"]]),
|
|
852
|
+
}), [["__scopeId", "data-v-c5bf5e60"]]), Pt = ["disabled", "title"], Ft = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
853
853
|
__name: "TableMergeButton",
|
|
854
854
|
props: {
|
|
855
855
|
canSplit: { type: Boolean },
|
|
@@ -864,15 +864,15 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
864
864
|
disabled: e.disabled,
|
|
865
865
|
title: e.canSplit ? "Split cells" : "Merge cells",
|
|
866
866
|
onClick: r[0] ||= Q((t) => n("action", e.canSplit ? "splitCells" : "mergeCells"), ["prevent"])
|
|
867
|
-
}, [L(
|
|
867
|
+
}, [L(a, {
|
|
868
868
|
name: e.canSplit ? "call_split" : "call_merge",
|
|
869
869
|
size: 20
|
|
870
|
-
}, null, 8, ["name"])], 8,
|
|
870
|
+
}, null, 8, ["name"])], 8, Pt));
|
|
871
871
|
}
|
|
872
|
-
}), [["__scopeId", "data-v-ec895571"]]),
|
|
872
|
+
}), [["__scopeId", "data-v-ec895571"]]), It = ["disabled", "title"], Lt = {
|
|
873
873
|
key: 0,
|
|
874
874
|
class: "print-btn__icon"
|
|
875
|
-
},
|
|
875
|
+
}, Rt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
876
876
|
__name: "PrintButton",
|
|
877
877
|
props: {
|
|
878
878
|
disabled: {
|
|
@@ -896,26 +896,26 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
896
896
|
disabled: e.disabled,
|
|
897
897
|
title: e.label,
|
|
898
898
|
onMousedown: Q(i, ["prevent"])
|
|
899
|
-
}, [I(Y(e.compact ? "" : e.label) + " ", 1), e.compact ? (G(), P("span",
|
|
899
|
+
}, [I(Y(e.compact ? "" : e.label) + " ", 1), e.compact ? (G(), P("span", Lt, "🖨")) : N("", !0)], 40, It));
|
|
900
900
|
}
|
|
901
|
-
}), [["__scopeId", "data-v-aa063c92"]]),
|
|
901
|
+
}), [["__scopeId", "data-v-aa063c92"]]), zt = "\n@media print {\n body * { visibility: hidden; }\n .docx-print-pages, .docx-print-pages * { visibility: visible; }\n .docx-print-pages { position: absolute; left: 0; top: 0; }\n .docx-print-page {\n box-shadow: none !important;\n margin: 0 !important;\n page-break-after: always;\n page-break-inside: avoid;\n }\n img { max-width: 100%; page-break-inside: avoid; }\n table, tr { page-break-inside: avoid; }\n h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }\n p { orphans: 3; widows: 3; }\n}\n@page { margin: 0; size: auto; }\n", Bt = /* @__PURE__ */ R({
|
|
902
902
|
__name: "PrintPreview",
|
|
903
903
|
setup(e) {
|
|
904
|
-
return (e, t) => (G(), M(
|
|
905
|
-
default: X(() => [I(Y(
|
|
904
|
+
return (e, t) => (G(), M(ge("style"), null, {
|
|
905
|
+
default: X(() => [I(Y(zt))]),
|
|
906
906
|
_: 1
|
|
907
907
|
}));
|
|
908
908
|
}
|
|
909
|
-
}),
|
|
909
|
+
}), Vt = ["title"], Ht = {
|
|
910
910
|
key: 0,
|
|
911
911
|
class: "unsaved-indicator__dot"
|
|
912
|
-
},
|
|
912
|
+
}, Ut = {
|
|
913
913
|
key: 1,
|
|
914
914
|
class: "unsaved-indicator__badge"
|
|
915
|
-
},
|
|
915
|
+
}, Wt = {
|
|
916
916
|
key: 2,
|
|
917
917
|
class: "unsaved-indicator__text"
|
|
918
|
-
},
|
|
918
|
+
}, Gt = /* @__PURE__ */ w(/* @__PURE__ */ R({
|
|
919
919
|
__name: "UnsavedIndicator",
|
|
920
920
|
props: {
|
|
921
921
|
currentState: {},
|
|
@@ -929,7 +929,7 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
929
929
|
},
|
|
930
930
|
setup(e, { expose: t }) {
|
|
931
931
|
let n = e, r = K(!1), i = K(0), a = null;
|
|
932
|
-
|
|
932
|
+
ve(() => n.currentState, (e) => {
|
|
933
933
|
if (e !== void 0) {
|
|
934
934
|
if (a === null) {
|
|
935
935
|
a = e;
|
|
@@ -956,8 +956,8 @@ var Me = /* @__PURE__ */ T(Ee, [["render", je], ["__scopeId", "data-v-53d684ff"]
|
|
|
956
956
|
key: 0,
|
|
957
957
|
class: V(["unsaved-indicator", `unsaved-indicator--${e.variant}`]),
|
|
958
958
|
title: e.title
|
|
959
|
-
}, [e.variant === "dot" ? (G(), P("span",
|
|
959
|
+
}, [e.variant === "dot" ? (G(), P("span", Ht)) : e.variant === "badge" ? (G(), P("span", Ut, Y(i.value), 1)) : (G(), P("span", Wt, Y(e.label), 1))], 10, Vt)) : N("", !0);
|
|
960
960
|
}
|
|
961
|
-
}), [["__scopeId", "data-v-bf5add7c"]]),
|
|
961
|
+
}), [["__scopeId", "data-v-bf5add7c"]]), Kt = be, qt = xe;
|
|
962
962
|
//#endregion
|
|
963
|
-
export {
|
|
963
|
+
export { b as AddCommentCard, ct as AlignmentButtons, Et as Button, Kt as CARD_STYLE_COLLAPSED, qt as CARD_STYLE_EXPANDED, u as ColorPicker, g as CommentCard, se as CommentMarginMarkers, y as DocumentName, ee as EditingModeDropdown, De as EditorToolbar, s as FindReplaceDialog, qe as FontPicker, Qe as FontSizePicker, T as FootnotePropertiesDialog, ie as HorizontalRuler, e as HyperlinkDialog, ue as IconGridDropdown, fe as ImagePositionDialog, o as ImagePropertiesDialog, f as ImageTransformDropdown, l as ImageWrapDropdown, i as InsertImageDialog, n as InsertSymbolDialog, pe as InsertTableDialog, c as KeyboardShortcutsDialog, tt as LineSpacingPicker, mt as ListButtons, Ct as LoadingIndicator, S as MenuBar, oe as MenuDropdown, r as PageSetupDialog, E as PasteSpecialDialog, d as Popover, Rt as PrintButton, Bt as PrintPreview, ae as ReplyInput, x as ReplyThread, h as ResolvedCommentMarker, Le as ResponsiveToolbar, me as SplitCellDialog, it as StylePicker, le as TableBorderColorPicker, de as TableBorderPicker, te as TableBorderWidthPicker, p as TableCellFillPicker, re as TableGridInline, jt as TableGridPicker, $ as TableInsertButtons, Ft as TableMergeButton, _ as TableMoreDropdown, O as TablePropertiesDialog, D as TableStyleGallery, v as TableToolbar, Pe as TitleBar, C as Toolbar, vt as Tooltip, ce as TrackedChangeCard, m as UnifiedSidebar, Gt as UnsavedIndicator, ne as VerticalRuler, _t as ZoomControl, ye as createDefaultListState };
|