@stll/folio-vue 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ListButtons-BcB7qvzQ.cjs +4 -0
- package/dist/{ListButtons-DXqMvba3.js → ListButtons-rpVlLZJ8.js} +689 -710
- package/dist/SplitCellDialog-B_TOoiMw.cjs +15 -0
- package/dist/{WatermarkDialog-r4wmldt4.js → SplitCellDialog-DRQuZsA3.js} +1537 -1604
- package/dist/components/AutocompleteCaretOverlay.types.d.ts +18 -0
- package/dist/components/DocxEditor/pagedEditorRef.d.ts +16 -3
- package/dist/components/DocxEditor/types.d.ts +27 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/useColorMode.d.ts +17 -4
- package/dist/composables/useContextMenus.d.ts +3 -0
- package/dist/composables/useDocxEditor.d.ts +47 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +14 -0
- package/dist/composables/useFindReplace.d.ts +24 -22
- package/dist/composables/useFontLifecycle.d.ts +21 -0
- package/dist/composables/useKeyboardShortcuts.d.ts +0 -1
- package/dist/composables/usePagesPointer.d.ts +14 -13
- package/dist/composables/useRemoteSelectionSync.d.ts +10 -0
- package/dist/composables/useSelectionSync.d.ts +17 -30
- package/dist/composables.cjs +2 -2
- package/dist/composables.js +93 -81
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -2
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2249 -1401
- package/dist/renderAsync.d.ts +4 -0
- package/dist/styles/zIndex.d.ts +1 -0
- package/dist/styles.cjs +1 -1
- package/dist/styles.js +1 -1
- package/dist/ui/folio-ui.d.ts +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +10 -10
- package/dist/useFindReplace-CL8Rbc3y.js +59 -0
- package/dist/useFindReplace-ZCrdvwEk.cjs +1 -0
- package/dist/useZoom-DBbzwfMG.cjs +1 -0
- package/dist/useZoom-DwDDS7hq.js +749 -0
- package/dist/utils/colorMode.d.ts +3 -4
- package/dist/utils/embeddedFonts.d.ts +7 -0
- package/dist/utils/fontFaces.d.ts +10 -0
- package/dist/utils/hostFonts.d.ts +1 -5
- package/dist/zIndex-CYoLNG_N.cjs +1 -0
- package/dist/{zIndex-BY0qa8Au.js → zIndex-Ei9BbHSW.js} +1 -0
- package/package.json +1 -1
- package/dist/ListButtons-BvsV1yti.cjs +0 -4
- package/dist/WatermarkDialog-DHfk8jrg.cjs +0 -15
- package/dist/components/sidebar/resolveItemPositions.d.ts +0 -22
- package/dist/composables/useHostCallbacks.d.ts +0 -24
- package/dist/composables/useMenuActions.d.ts +0 -36
- package/dist/useZoom-C7jhL696.cjs +0 -1
- package/dist/useZoom-zJvuJlUd.js +0 -615
- package/dist/zIndex-dFsQbASx.cjs +0 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { D as e, F as t,
|
|
1
|
+
import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-DRQuZsA3.js";
|
|
2
2
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, toRef as D, unref as O, vModelSelect as k, vModelText as A, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { getTableContext as I } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
|
|
4
|
+
import { extractSelectionContext as L } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
|
|
5
|
+
import { createRenderedDomContext as R } from "@stll/folio-core/render-dom/RenderedDomContext";
|
|
6
|
+
import { pixelsToTwips as z, twipsToPixels as B } from "@stll/folio-core/utils/units";
|
|
7
|
+
import { DISPLAY_MODES as V } from "@stll/folio-core/managers/EditorModeManager";
|
|
8
|
+
import { redoDepth as H, undoDepth as ee } from "prosemirror-history";
|
|
9
|
+
import { clearFormatting as U } from "@stll/folio-core/prosemirror/commands/formatting";
|
|
10
|
+
import { resolveSidebarItemPositions as W } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
|
|
9
11
|
//#region src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
12
|
+
var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
11
13
|
__name: "CommentMarginMarkers",
|
|
12
14
|
props: {
|
|
13
15
|
comments: {},
|
|
@@ -19,7 +21,7 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
19
21
|
},
|
|
20
22
|
emits: ["marker-click"],
|
|
21
23
|
setup(e) {
|
|
22
|
-
let t = e,
|
|
24
|
+
let t = e, n = o(() => {
|
|
23
25
|
if (t.sidebarOpen) return [];
|
|
24
26
|
let e = t.pagesContainer;
|
|
25
27
|
if (!e) return [];
|
|
@@ -48,26 +50,26 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
48
50
|
zIndex: 30,
|
|
49
51
|
pointerEvents: "none"
|
|
50
52
|
}));
|
|
51
|
-
return (t, o) =>
|
|
53
|
+
return (t, o) => n.value.length > 0 ? (b(), l("div", {
|
|
52
54
|
key: 0,
|
|
53
55
|
class: "docx-comment-margin-markers",
|
|
54
56
|
style: _(i.value),
|
|
55
57
|
onMousedown: o[0] ||= F(() => {}, ["stop"])
|
|
56
|
-
}, [(b(!0), l(a, null, C(
|
|
57
|
-
key:
|
|
58
|
+
}, [(b(!0), l(a, null, C(n.value, (n) => (b(), l("button", {
|
|
59
|
+
key: n.comment.id,
|
|
58
60
|
class: "docx-comment-margin-markers__btn",
|
|
59
|
-
title:
|
|
60
|
-
style: _({ top:
|
|
61
|
-
onClick: (e) => t.$emit("marker-click",
|
|
62
|
-
}, [f(
|
|
63
|
-
name:
|
|
61
|
+
title: n.isResolved ? "Resolved comment" : "Comment",
|
|
62
|
+
style: _({ top: n.y * e.zoom + "px" }),
|
|
63
|
+
onClick: (e) => t.$emit("marker-click", n.comment.id)
|
|
64
|
+
}, [f(r, {
|
|
65
|
+
name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
|
|
64
66
|
size: 18
|
|
65
|
-
}, null, 8, ["name"])], 12,
|
|
67
|
+
}, null, 8, ["name"])], 12, G))), 128))], 36)) : c("", !0);
|
|
66
68
|
}
|
|
67
|
-
}), [["__scopeId", "data-v-bea4eef6"]]),
|
|
69
|
+
}), [["__scopeId", "data-v-bea4eef6"]]), q = { class: "doc-name" }, J = ["value"], Y = {
|
|
68
70
|
key: 1,
|
|
69
71
|
class: "doc-name__text"
|
|
70
|
-
},
|
|
72
|
+
}, te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
71
73
|
__name: "DocumentName",
|
|
72
74
|
props: {
|
|
73
75
|
modelValue: {},
|
|
@@ -89,16 +91,16 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
89
91
|
let t = e.target;
|
|
90
92
|
t instanceof HTMLInputElement && (t.value.trim() || r("update:modelValue", "Untitled document.docx"));
|
|
91
93
|
}
|
|
92
|
-
return (t, n) => (b(), l("div",
|
|
94
|
+
return (t, n) => (b(), l("div", q, [e.editable ? (b(), l("input", {
|
|
93
95
|
key: 0,
|
|
94
96
|
class: "doc-name__input",
|
|
95
97
|
value: i.value,
|
|
96
98
|
placeholder: "Untitled document",
|
|
97
99
|
onInput: a,
|
|
98
100
|
onBlur: s
|
|
99
|
-
}, null, 40,
|
|
101
|
+
}, null, 40, J)) : (b(), l("span", Y, E(i.value || "Untitled document"), 1))]));
|
|
100
102
|
}
|
|
101
|
-
}), [["__scopeId", "data-v-ae6cb472"]]),
|
|
103
|
+
}), [["__scopeId", "data-v-ae6cb472"]]), ne = ["aria-selected", "onMouseenter"], re = { class: "docx-table-grid-inline__label" }, ie = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
102
104
|
__name: "TableGridInline",
|
|
103
105
|
props: {
|
|
104
106
|
gridRows: { default: 6 },
|
|
@@ -134,15 +136,15 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
134
136
|
i.value = e.r, s.value = e.c;
|
|
135
137
|
},
|
|
136
138
|
onClick: F(d, ["prevent"])
|
|
137
|
-
}, null, 42,
|
|
139
|
+
}, null, 42, ne))), 128))], 36), u("div", re, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
|
|
138
140
|
}
|
|
139
|
-
}), [["__scopeId", "data-v-79c593ca"]]),
|
|
141
|
+
}), [["__scopeId", "data-v-79c593ca"]]), ae = {
|
|
140
142
|
class: "menu-bar",
|
|
141
143
|
role: "menubar"
|
|
142
|
-
},
|
|
144
|
+
}, oe = {
|
|
143
145
|
key: 1,
|
|
144
146
|
class: "menu-bar__break-submenu"
|
|
145
|
-
},
|
|
147
|
+
}, se = ["onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
146
148
|
__name: "MenuBar",
|
|
147
149
|
props: {
|
|
148
150
|
showFileOpen: {
|
|
@@ -160,7 +162,7 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
160
162
|
},
|
|
161
163
|
emits: ["action", "insert-table"],
|
|
162
164
|
setup(e, { emit: t }) {
|
|
163
|
-
let { Menu: d } = i(), p = e, m = t, { t: h } =
|
|
165
|
+
let { Menu: d } = i(), p = e, m = t, { t: h } = n();
|
|
164
166
|
function g(e) {
|
|
165
167
|
return () => m("action", e);
|
|
166
168
|
}
|
|
@@ -238,7 +240,7 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
238
240
|
label: h("toolbar.reportIssue"),
|
|
239
241
|
onClick: g("reportIssue")
|
|
240
242
|
}]);
|
|
241
|
-
return (t,
|
|
243
|
+
return (t, n) => (b(), l("div", ae, [
|
|
242
244
|
f(O(d), {
|
|
243
245
|
label: O(h)("toolbar.file"),
|
|
244
246
|
items: _.value
|
|
@@ -251,22 +253,22 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
251
253
|
label: O(h)("toolbar.insert"),
|
|
252
254
|
items: y.value
|
|
253
255
|
}, {
|
|
254
|
-
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(
|
|
256
|
+
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(ie, {
|
|
255
257
|
key: 0,
|
|
256
258
|
onInsert: (e, n) => {
|
|
257
259
|
m("insert-table", e, n), t();
|
|
258
260
|
}
|
|
259
|
-
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div",
|
|
261
|
+
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div", oe, [(b(!0), l(a, null, C(x.value, (e) => (b(), l("button", {
|
|
260
262
|
key: e.action,
|
|
261
263
|
type: "button",
|
|
262
264
|
class: "menu-bar__break-item",
|
|
263
265
|
onClick: F(() => {
|
|
264
266
|
m("action", e.action), t();
|
|
265
267
|
}, ["prevent"])
|
|
266
|
-
}, [f(
|
|
268
|
+
}, [f(r, {
|
|
267
269
|
name: e.icon,
|
|
268
270
|
size: 18
|
|
269
|
-
}, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8,
|
|
271
|
+
}, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, se))), 128))])) : c("", !0)]),
|
|
270
272
|
_: 1
|
|
271
273
|
}, 8, ["label", "items"]),
|
|
272
274
|
e.showHelpMenu ? (b(), s(O(d), {
|
|
@@ -276,13 +278,13 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
276
278
|
}, null, 8, ["label", "items"])) : c("", !0)
|
|
277
279
|
]));
|
|
278
280
|
}
|
|
279
|
-
}), [["__scopeId", "data-v-bd3f3f2c"]]),
|
|
281
|
+
}), [["__scopeId", "data-v-bd3f3f2c"]]), ce = [
|
|
280
282
|
"disabled",
|
|
281
283
|
"aria-label",
|
|
282
284
|
"title",
|
|
283
285
|
"aria-expanded",
|
|
284
286
|
"onClick"
|
|
285
|
-
],
|
|
287
|
+
], le = { class: "docx-icon-grid__panel" }, Z = ["title", "onClick"], ue = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
286
288
|
__name: "IconGridDropdown",
|
|
287
289
|
props: {
|
|
288
290
|
options: {},
|
|
@@ -294,14 +296,14 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
294
296
|
},
|
|
295
297
|
emits: ["select"],
|
|
296
298
|
setup(e, { emit: t }) {
|
|
297
|
-
let
|
|
299
|
+
let n = t, { Popover: o } = i(), c = S(!1);
|
|
298
300
|
function d(e) {
|
|
299
|
-
|
|
301
|
+
n("select", e), c.value = !1;
|
|
300
302
|
}
|
|
301
|
-
return (t,
|
|
303
|
+
return (t, n) => (b(), s(O(o), {
|
|
302
304
|
open: c.value,
|
|
303
|
-
"onUpdate:open":
|
|
304
|
-
onClose:
|
|
305
|
+
"onUpdate:open": n[0] ||= (e) => c.value = e,
|
|
306
|
+
onClose: n[1] ||= (e) => c.value = !1
|
|
305
307
|
}, {
|
|
306
308
|
trigger: M(({ toggle: t }) => [u("button", {
|
|
307
309
|
type: "button",
|
|
@@ -312,27 +314,27 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
312
314
|
"aria-expanded": c.value,
|
|
313
315
|
"aria-haspopup": "true",
|
|
314
316
|
onClick: F(t, ["prevent"])
|
|
315
|
-
}, [f(
|
|
317
|
+
}, [f(r, {
|
|
316
318
|
name: e.triggerIcon,
|
|
317
319
|
size: 20
|
|
318
|
-
}, null, 8, ["name"]), f(
|
|
320
|
+
}, null, 8, ["name"]), f(r, {
|
|
319
321
|
name: "arrow_drop_down",
|
|
320
322
|
size: 14
|
|
321
|
-
})], 10,
|
|
322
|
-
panel: M(() => [u("div",
|
|
323
|
+
})], 10, ce)]),
|
|
324
|
+
panel: M(() => [u("div", le, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
|
|
323
325
|
key: t.value,
|
|
324
326
|
type: "button",
|
|
325
327
|
class: g(["docx-icon-grid__option", { "docx-icon-grid__option--active": e.activeValue === t.value }]),
|
|
326
328
|
title: t.label,
|
|
327
329
|
onClick: F((e) => d(t.value), ["prevent"])
|
|
328
|
-
}, [f(
|
|
330
|
+
}, [f(r, {
|
|
329
331
|
name: t.iconName,
|
|
330
332
|
size: 18
|
|
331
|
-
}, null, 8, ["name"])], 10,
|
|
333
|
+
}, null, 8, ["name"])], 10, Z))), 128))])]),
|
|
332
334
|
_: 1
|
|
333
335
|
}, 8, ["open"]));
|
|
334
336
|
}
|
|
335
|
-
}), [["__scopeId", "data-v-72fa875c"]]),
|
|
337
|
+
}), [["__scopeId", "data-v-72fa875c"]]), de = /* @__PURE__ */ p({
|
|
336
338
|
__name: "ImageWrapDropdown",
|
|
337
339
|
props: {
|
|
338
340
|
imageContext: {},
|
|
@@ -340,7 +342,7 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
340
342
|
},
|
|
341
343
|
emits: ["change"],
|
|
342
344
|
setup(e) {
|
|
343
|
-
let t = e, { t:
|
|
345
|
+
let t = e, { t: r } = n(), i = [
|
|
344
346
|
{
|
|
345
347
|
value: "inline",
|
|
346
348
|
labelKey: "imageWrap.inline",
|
|
@@ -373,19 +375,19 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
373
375
|
}
|
|
374
376
|
], a = o(() => i.map((e) => ({
|
|
375
377
|
value: e.value,
|
|
376
|
-
label:
|
|
378
|
+
label: r(e.labelKey),
|
|
377
379
|
iconName: e.iconName
|
|
378
380
|
}))), c = o(() => {
|
|
379
381
|
let e = t.imageContext;
|
|
380
382
|
return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
|
|
381
383
|
}), l = o(() => a.value.find((e) => e.value === c.value) ?? a.value.at(0)), u = o(() => l.value?.iconName ?? "format_image_left"), d = o(() => l.value?.label ?? "");
|
|
382
|
-
return (t,
|
|
384
|
+
return (t, n) => (b(), s(ue, {
|
|
383
385
|
options: a.value,
|
|
384
386
|
"active-value": c.value,
|
|
385
387
|
"trigger-icon": u.value,
|
|
386
|
-
"tooltip-content": O(
|
|
388
|
+
"tooltip-content": O(r)("imageWrap.tooltipPrefix", { label: d.value }),
|
|
387
389
|
disabled: e.disabled,
|
|
388
|
-
onSelect:
|
|
390
|
+
onSelect: n[0] ||= (e) => t.$emit("change", e)
|
|
389
391
|
}, null, 8, [
|
|
390
392
|
"options",
|
|
391
393
|
"active-value",
|
|
@@ -394,12 +396,12 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
394
396
|
"disabled"
|
|
395
397
|
]));
|
|
396
398
|
}
|
|
397
|
-
}),
|
|
399
|
+
}), fe = /* @__PURE__ */ p({
|
|
398
400
|
__name: "ImageTransformDropdown",
|
|
399
401
|
props: { disabled: { type: Boolean } },
|
|
400
402
|
emits: ["transform"],
|
|
401
403
|
setup(e) {
|
|
402
|
-
let { t } =
|
|
404
|
+
let { t } = n(), r = [
|
|
403
405
|
{
|
|
404
406
|
value: "rotateCW",
|
|
405
407
|
labelKey: "imageTransform.rotateClockwise",
|
|
@@ -420,12 +422,12 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
420
422
|
labelKey: "imageTransform.flipVertical",
|
|
421
423
|
iconName: "swap_vert"
|
|
422
424
|
}
|
|
423
|
-
], i = o(() =>
|
|
425
|
+
], i = o(() => r.map((e) => ({
|
|
424
426
|
value: e.value,
|
|
425
427
|
label: t(e.labelKey),
|
|
426
428
|
iconName: e.iconName
|
|
427
429
|
})));
|
|
428
|
-
return (n, r) => (b(), s(
|
|
430
|
+
return (n, r) => (b(), s(ue, {
|
|
429
431
|
options: i.value,
|
|
430
432
|
"trigger-icon": "rotate_right",
|
|
431
433
|
"tooltip-content": O(t)("imageTransform.tooltip"),
|
|
@@ -437,15 +439,15 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
437
439
|
"disabled"
|
|
438
440
|
]));
|
|
439
441
|
}
|
|
440
|
-
}),
|
|
442
|
+
}), pe = ["title", "onClick"], me = {
|
|
441
443
|
key: 0,
|
|
442
444
|
class: "editing-mode__label"
|
|
443
|
-
},
|
|
445
|
+
}, he = { class: "editing-mode__panel" }, ge = ["onClick"], _e = { class: "editing-mode__option-text" }, ve = { class: "editing-mode__option-label" }, ye = { class: "editing-mode__option-desc" }, be = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
444
446
|
__name: "EditingModeDropdown",
|
|
445
447
|
props: { modelValue: {} },
|
|
446
448
|
emits: ["update:modelValue"],
|
|
447
449
|
setup(e, { emit: t }) {
|
|
448
|
-
let { t: d } =
|
|
450
|
+
let { t: d } = n(), { Popover: p } = i(), m = e, h = t, _ = {
|
|
449
451
|
value: "editing",
|
|
450
452
|
labelKey: "editor.editing",
|
|
451
453
|
icon: "edit_note",
|
|
@@ -474,11 +476,11 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
474
476
|
}
|
|
475
477
|
return y(() => {
|
|
476
478
|
A = window.matchMedia("(max-width: 1400px)"), T.value = A.matches, A.addEventListener("change", j);
|
|
477
|
-
}), v(() => A?.removeEventListener("change", j)), (t,
|
|
479
|
+
}), v(() => A?.removeEventListener("change", j)), (t, n) => (b(), s(O(p), {
|
|
478
480
|
open: w.value,
|
|
479
481
|
placement: "bottom-right",
|
|
480
|
-
"onUpdate:open":
|
|
481
|
-
onClose:
|
|
482
|
+
"onUpdate:open": n[0] ||= (e) => w.value = e,
|
|
483
|
+
onClose: n[1] ||= (e) => w.value = !1
|
|
482
484
|
}, {
|
|
483
485
|
trigger: M(({ toggle: e }) => [u("button", {
|
|
484
486
|
type: "button",
|
|
@@ -489,43 +491,43 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
489
491
|
title: `${O(d)(D.value.labelKey)} (Ctrl+Shift+E)`,
|
|
490
492
|
onClick: F(e, ["prevent"])
|
|
491
493
|
}, [
|
|
492
|
-
f(
|
|
494
|
+
f(r, {
|
|
493
495
|
name: D.value.icon,
|
|
494
496
|
size: 18
|
|
495
497
|
}, null, 8, ["name"]),
|
|
496
|
-
T.value ? c("", !0) : (b(), l("span",
|
|
497
|
-
f(
|
|
498
|
+
T.value ? c("", !0) : (b(), l("span", me, E(O(d)(D.value.labelKey)), 1)),
|
|
499
|
+
f(r, {
|
|
498
500
|
name: "arrow_drop_down",
|
|
499
501
|
size: 16
|
|
500
502
|
})
|
|
501
|
-
], 10,
|
|
502
|
-
panel: M(() => [u("div",
|
|
503
|
+
], 10, pe)]),
|
|
504
|
+
panel: M(() => [u("div", he, [(b(), l(a, null, C(x, (t) => u("button", {
|
|
503
505
|
key: t.value,
|
|
504
506
|
type: "button",
|
|
505
507
|
class: "editing-mode__option",
|
|
506
508
|
onClick: F((e) => k(t.value), ["prevent"])
|
|
507
509
|
}, [
|
|
508
|
-
f(
|
|
510
|
+
f(r, {
|
|
509
511
|
name: t.icon,
|
|
510
512
|
size: 20
|
|
511
513
|
}, null, 8, ["name"]),
|
|
512
|
-
u("span",
|
|
513
|
-
t.value === e.modelValue ? (b(), s(
|
|
514
|
+
u("span", _e, [u("span", ve, E(O(d)(t.labelKey)), 1), u("span", ye, E(O(d)(t.descKey)), 1)]),
|
|
515
|
+
t.value === e.modelValue ? (b(), s(r, {
|
|
514
516
|
key: 0,
|
|
515
517
|
name: "check",
|
|
516
518
|
size: 18,
|
|
517
519
|
class: "editing-mode__check"
|
|
518
520
|
})) : c("", !0)
|
|
519
|
-
], 8,
|
|
521
|
+
], 8, ge)), 64))])]),
|
|
520
522
|
_: 1
|
|
521
523
|
}, 8, ["open"]));
|
|
522
524
|
}
|
|
523
|
-
}), [["__scopeId", "data-v-333d7e96"]]),
|
|
525
|
+
}), [["__scopeId", "data-v-333d7e96"]]), xe = { class: "review-controls" }, Se = [
|
|
524
526
|
"disabled",
|
|
525
527
|
"aria-pressed",
|
|
526
528
|
"aria-label",
|
|
527
529
|
"title"
|
|
528
|
-
],
|
|
530
|
+
], Ce = { class: "review-controls__toggle-label" }, we = ["title", "onClick"], Te = { class: "review-controls__display-label" }, Ee = ["onClick"], De = { class: "review-controls__option-label" }, Oe = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
529
531
|
__name: "ReviewControls",
|
|
530
532
|
props: {
|
|
531
533
|
trackChangesOn: { type: Boolean },
|
|
@@ -537,7 +539,7 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
537
539
|
},
|
|
538
540
|
emits: ["toggle-track-changes", "update:display-mode"],
|
|
539
541
|
setup(e, { emit: t }) {
|
|
540
|
-
let { t: d } =
|
|
542
|
+
let { t: d } = n(), { Popover: p } = i(), m = e, h = t, _ = S(!1), v = {
|
|
541
543
|
"all-markup": "markupView.allMarkup",
|
|
542
544
|
"simple-markup": "markupView.simple",
|
|
543
545
|
"no-markup": "markupView.noMarkup",
|
|
@@ -550,78 +552,78 @@ var U = ["title", "onClick"], te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
550
552
|
function w(e) {
|
|
551
553
|
h("update:display-mode", e), _.value = !1;
|
|
552
554
|
}
|
|
553
|
-
return (t,
|
|
555
|
+
return (t, n) => (b(), l("div", xe, [u("button", {
|
|
554
556
|
type: "button",
|
|
555
557
|
class: g(["review-controls__toggle", { "review-controls__toggle--on": e.trackChangesOn }]),
|
|
556
558
|
disabled: e.readOnly,
|
|
557
559
|
"aria-pressed": e.trackChangesOn,
|
|
558
560
|
"aria-label": O(d)("toggleTrackChanges"),
|
|
559
561
|
title: O(d)("toggleTrackChanges"),
|
|
560
|
-
onMousedown:
|
|
561
|
-
onClick:
|
|
562
|
-
}, [f(
|
|
562
|
+
onMousedown: n[0] ||= F(() => {}, ["prevent"]),
|
|
563
|
+
onClick: n[1] ||= F((e) => t.$emit("toggle-track-changes"), ["prevent"])
|
|
564
|
+
}, [f(r, {
|
|
563
565
|
name: "edit_note",
|
|
564
566
|
size: 18
|
|
565
|
-
}), u("span",
|
|
567
|
+
}), u("span", Ce, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, Se), f(O(p), {
|
|
566
568
|
open: _.value,
|
|
567
569
|
placement: "bottom-right",
|
|
568
|
-
"onUpdate:open":
|
|
569
|
-
onClose:
|
|
570
|
+
"onUpdate:open": n[4] ||= (e) => _.value = e,
|
|
571
|
+
onClose: n[5] ||= (e) => _.value = !1
|
|
570
572
|
}, {
|
|
571
573
|
trigger: M(({ toggle: e }) => [u("button", {
|
|
572
574
|
type: "button",
|
|
573
575
|
class: g(["review-controls__display", { "review-controls__display--open": _.value }]),
|
|
574
576
|
title: x.value,
|
|
575
|
-
onMousedown:
|
|
577
|
+
onMousedown: n[2] ||= F(() => {}, ["prevent"]),
|
|
576
578
|
onClick: F(e, ["prevent"])
|
|
577
579
|
}, [
|
|
578
|
-
f(
|
|
580
|
+
f(r, {
|
|
579
581
|
name: "visibility",
|
|
580
582
|
size: 16
|
|
581
583
|
}),
|
|
582
|
-
u("span",
|
|
583
|
-
f(
|
|
584
|
+
u("span", Te, E(x.value), 1),
|
|
585
|
+
f(r, {
|
|
584
586
|
name: "arrow_drop_down",
|
|
585
587
|
size: 16
|
|
586
588
|
})
|
|
587
|
-
], 42,
|
|
589
|
+
], 42, we)]),
|
|
588
590
|
panel: M(() => [u("div", {
|
|
589
591
|
class: "review-controls__panel",
|
|
590
|
-
onMousedown:
|
|
591
|
-
}, [(b(!0), l(a, null, C(O(
|
|
592
|
+
onMousedown: n[3] ||= F(() => {}, ["prevent"])
|
|
593
|
+
}, [(b(!0), l(a, null, C(O(V), (t) => (b(), l("button", {
|
|
592
594
|
key: t,
|
|
593
595
|
type: "button",
|
|
594
596
|
class: "review-controls__option",
|
|
595
597
|
onClick: F((e) => w(t), ["prevent"])
|
|
596
|
-
}, [u("span",
|
|
598
|
+
}, [u("span", De, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
|
|
597
599
|
key: 0,
|
|
598
600
|
name: "check",
|
|
599
601
|
size: 18,
|
|
600
602
|
class: "review-controls__check"
|
|
601
|
-
})) : c("", !0)], 8,
|
|
603
|
+
})) : c("", !0)], 8, Ee))), 128))], 32)]),
|
|
602
604
|
_: 1
|
|
603
605
|
}, 8, ["open"])]));
|
|
604
606
|
}
|
|
605
607
|
}), [["__scopeId", "data-v-e54a1ec7"]]);
|
|
606
608
|
//#endregion
|
|
607
609
|
//#region src/utils/fontOptions.ts
|
|
608
|
-
function
|
|
610
|
+
function ke(e) {
|
|
609
611
|
if (e === void 0) return;
|
|
610
612
|
let t = e.map((e) => typeof e == "string" ? {
|
|
611
613
|
name: e,
|
|
612
614
|
fontFamily: e,
|
|
613
615
|
category: "other"
|
|
614
616
|
} : e);
|
|
615
|
-
if (
|
|
617
|
+
if (Ae()) {
|
|
616
618
|
let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
617
619
|
for (let r of t) n.has(r.name) && !e.has(r.name) && (console.warn(`[DocxEditor] Duplicate font name in fontFamilies: "${r.name}"`), e.add(r.name)), n.add(r.name);
|
|
618
620
|
}
|
|
619
621
|
return t;
|
|
620
622
|
}
|
|
621
|
-
function
|
|
623
|
+
function Ae() {
|
|
622
624
|
return typeof process < "u" && process.env.NODE_ENV !== "production";
|
|
623
625
|
}
|
|
624
|
-
function
|
|
626
|
+
function je(e, t) {
|
|
625
627
|
if (!e || e.length === 0) return [];
|
|
626
628
|
let n = /* @__PURE__ */ new Set();
|
|
627
629
|
for (let e of t) n.add(e.trim().toLowerCase());
|
|
@@ -634,7 +636,7 @@ function ke(e, t) {
|
|
|
634
636
|
}
|
|
635
637
|
//#endregion
|
|
636
638
|
//#region src/components/Toolbar/presets.ts
|
|
637
|
-
var
|
|
639
|
+
var Me = [
|
|
638
640
|
{
|
|
639
641
|
name: "Arial",
|
|
640
642
|
fontFamily: "Arial",
|
|
@@ -695,7 +697,7 @@ var Ae = [
|
|
|
695
697
|
fontFamily: "Consolas",
|
|
696
698
|
category: "monospace"
|
|
697
699
|
}
|
|
698
|
-
],
|
|
700
|
+
], Ne = [
|
|
699
701
|
8,
|
|
700
702
|
9,
|
|
701
703
|
10,
|
|
@@ -710,7 +712,7 @@ var Ae = [
|
|
|
710
712
|
36,
|
|
711
713
|
48,
|
|
712
714
|
72
|
|
713
|
-
],
|
|
715
|
+
], Pe = [
|
|
714
716
|
{
|
|
715
717
|
id: "Normal",
|
|
716
718
|
label: "Normal",
|
|
@@ -741,7 +743,7 @@ var Ae = [
|
|
|
741
743
|
label: "Heading 3",
|
|
742
744
|
nameKey: "styles.heading3"
|
|
743
745
|
}
|
|
744
|
-
],
|
|
746
|
+
], Fe = [
|
|
745
747
|
{
|
|
746
748
|
label: "Single",
|
|
747
749
|
labelKey: "lineSpacing.single",
|
|
@@ -760,7 +762,7 @@ var Ae = [
|
|
|
760
762
|
labelKey: "lineSpacing.double",
|
|
761
763
|
value: 480
|
|
762
764
|
}
|
|
763
|
-
],
|
|
765
|
+
], Ie = [
|
|
764
766
|
.5,
|
|
765
767
|
.75,
|
|
766
768
|
1,
|
|
@@ -770,7 +772,7 @@ var Ae = [
|
|
|
770
772
|
];
|
|
771
773
|
//#endregion
|
|
772
774
|
//#region src/composables/useToolbarDropdowns.ts
|
|
773
|
-
function
|
|
775
|
+
function Le(e) {
|
|
774
776
|
let t = S(null), n = S({
|
|
775
777
|
top: 0,
|
|
776
778
|
left: 0
|
|
@@ -822,7 +824,7 @@ function Fe(e) {
|
|
|
822
824
|
}
|
|
823
825
|
//#endregion
|
|
824
826
|
//#region src/composables/useToolbarFontSize.ts
|
|
825
|
-
function
|
|
827
|
+
function Re(e) {
|
|
826
828
|
let t = S(!1), n = (t) => e.execCommand("setFontSize", t * 2);
|
|
827
829
|
function r() {
|
|
828
830
|
t.value = !1, e.openDropdown.value = "size", e.recomputeDropdownPos("size");
|
|
@@ -842,11 +844,11 @@ function Ie(e) {
|
|
|
842
844
|
}
|
|
843
845
|
function s() {
|
|
844
846
|
let t = e.currentFontSize.value;
|
|
845
|
-
n(
|
|
847
|
+
n(Ne.find((e) => e > t) || t + 1);
|
|
846
848
|
}
|
|
847
849
|
function c() {
|
|
848
850
|
let t = e.currentFontSize.value;
|
|
849
|
-
n([...
|
|
851
|
+
n([...Ne].reverse().find((e) => e < t) || Math.max(1, t - 1));
|
|
850
852
|
}
|
|
851
853
|
return {
|
|
852
854
|
onSizeFocus: r,
|
|
@@ -859,7 +861,7 @@ function Ie(e) {
|
|
|
859
861
|
}
|
|
860
862
|
//#endregion
|
|
861
863
|
//#region src/utils/stylePreview.ts
|
|
862
|
-
var
|
|
864
|
+
var ze = {
|
|
863
865
|
Title: 26,
|
|
864
866
|
Subtitle: 18,
|
|
865
867
|
Heading1: 24,
|
|
@@ -869,22 +871,22 @@ var Le = {
|
|
|
869
871
|
Heading5: 13,
|
|
870
872
|
Heading6: 13,
|
|
871
873
|
Normal: 14
|
|
872
|
-
},
|
|
874
|
+
}, Be = /* @__PURE__ */ new Set([
|
|
873
875
|
"Title",
|
|
874
876
|
"Heading1",
|
|
875
877
|
"Heading2",
|
|
876
878
|
"Heading3"
|
|
877
|
-
]),
|
|
878
|
-
function
|
|
879
|
-
let t =
|
|
879
|
+
]), Ve = { Subtitle: "666666" }, He = "#4a6c8c";
|
|
880
|
+
function Ue(e) {
|
|
881
|
+
let t = ze[e.styleId], n = {
|
|
880
882
|
fontSize: t ? `${t}px` : `${Math.min(Math.max(e.fontSize ? e.fontSize / 2 : 11, 11), 20)}px`,
|
|
881
883
|
lineHeight: "1.3"
|
|
882
884
|
};
|
|
883
|
-
(e.bold ??
|
|
884
|
-
let r = e.color ??
|
|
885
|
-
return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color =
|
|
885
|
+
(e.bold ?? Be.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
|
|
886
|
+
let r = e.color ?? Ve[e.styleId];
|
|
887
|
+
return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = He), n;
|
|
886
888
|
}
|
|
887
|
-
function
|
|
889
|
+
function We(e) {
|
|
888
890
|
return !e || e.length === 0 ? [] : e.filter((e) => e.type === "paragraph").filter((e) => e.qFormat ? !0 : !(e.hidden || e.semiHidden)).map((e) => ({
|
|
889
891
|
styleId: e.styleId,
|
|
890
892
|
name: e.name || e.styleId,
|
|
@@ -897,20 +899,20 @@ function He(e) {
|
|
|
897
899
|
}
|
|
898
900
|
//#endregion
|
|
899
901
|
//#region src/composables/useParagraphStyleOptions.ts
|
|
900
|
-
function
|
|
902
|
+
function Ge(e) {
|
|
901
903
|
let t = o(() => {
|
|
902
|
-
let t =
|
|
904
|
+
let t = We(e.documentStyles());
|
|
903
905
|
return t.length > 0 ? t.map((t) => {
|
|
904
|
-
let n =
|
|
906
|
+
let n = Pe.find((e) => e.id === t.styleId);
|
|
905
907
|
return {
|
|
906
908
|
id: t.styleId,
|
|
907
909
|
label: n ? e.t(n.nameKey) : t.name,
|
|
908
|
-
previewStyle:
|
|
910
|
+
previewStyle: Ue(t)
|
|
909
911
|
};
|
|
910
|
-
}) :
|
|
912
|
+
}) : Pe.map((t) => ({
|
|
911
913
|
id: t.id,
|
|
912
914
|
label: e.t(t.nameKey),
|
|
913
|
-
previewStyle:
|
|
915
|
+
previewStyle: Ue({ styleId: t.id })
|
|
914
916
|
}));
|
|
915
917
|
});
|
|
916
918
|
return {
|
|
@@ -923,29 +925,29 @@ function Ue(e) {
|
|
|
923
925
|
}
|
|
924
926
|
//#endregion
|
|
925
927
|
//#region src/components/Toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
926
|
-
var
|
|
928
|
+
var Ke = {
|
|
927
929
|
key: 0,
|
|
928
930
|
class: "basic-toolbar"
|
|
929
|
-
},
|
|
931
|
+
}, qe = [
|
|
930
932
|
"title",
|
|
931
933
|
"aria-label",
|
|
932
934
|
"disabled"
|
|
933
|
-
],
|
|
935
|
+
], Je = [
|
|
934
936
|
"title",
|
|
935
937
|
"aria-label",
|
|
936
938
|
"disabled"
|
|
937
|
-
],
|
|
939
|
+
], Ye = ["disabled", "title"], Xe = ["aria-expanded", "title"], Ze = ["disabled", "title"], Qe = ["onMousedown"], $e = ["aria-expanded", "title"], et = ["onMousedown"], tt = ["aria-expanded", "title"], nt = {
|
|
938
940
|
key: 0,
|
|
939
941
|
class: "toolbar-dropdown__group-label"
|
|
940
|
-
},
|
|
942
|
+
}, rt = ["onMousedown"], it = ["title"], at = [
|
|
941
943
|
"value",
|
|
942
944
|
"title",
|
|
943
945
|
"aria-expanded"
|
|
944
|
-
],
|
|
946
|
+
], ot = ["title"], st = ["onMousedown"], ct = ["title", "aria-label"], lt = ["title", "aria-label"], ut = ["title", "aria-label"], dt = ["title", "aria-label"], ft = ["title", "aria-label"], pt = ["title", "aria-label"], mt = ["title", "aria-label"], ht = ["aria-expanded", "title"], gt = ["title"], _t = ["title"], vt = ["title"], yt = ["title"], bt = ["title", "aria-label"], xt = ["title", "aria-label"], St = [
|
|
945
947
|
"title",
|
|
946
948
|
"aria-label",
|
|
947
949
|
"disabled"
|
|
948
|
-
],
|
|
950
|
+
], Ct = ["title", "aria-label"], wt = ["aria-expanded", "title"], Tt = ["onMousedown"], Et = ["title", "aria-label"], Dt = ["title", "aria-label"], Ot = ["title", "aria-label"], kt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
949
951
|
__name: "Toolbar",
|
|
950
952
|
props: {
|
|
951
953
|
view: { default: null },
|
|
@@ -1003,17 +1005,17 @@ var We = {
|
|
|
1003
1005
|
"image-transform"
|
|
1004
1006
|
],
|
|
1005
1007
|
setup(e, { emit: t }) {
|
|
1006
|
-
let { ColorPicker: p } = i(), m = e, { t: h } =
|
|
1008
|
+
let { ColorPicker: p } = i(), m = e, { t: h } = n(), v = t, y = o(() => m.zoomPercent ?? 100), x = o(() => m.isMinZoom ?? !1), T = o(() => m.isMaxZoom ?? !1), D = o(() => m.zoomPresets ?? Ie), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), I = S(null), R = S(null), { openDropdown: z, dropdownMenuStyle: B, toggleDropdown: V, recomputeDropdownPos: W } = Le({
|
|
1007
1009
|
zoom: R,
|
|
1008
1010
|
style: A,
|
|
1009
1011
|
font: j,
|
|
1010
1012
|
size: M,
|
|
1011
1013
|
align: N,
|
|
1012
|
-
spacing:
|
|
1013
|
-
}),
|
|
1014
|
+
spacing: I
|
|
1015
|
+
}), G = o(() => {
|
|
1014
1016
|
m.stateTick;
|
|
1015
1017
|
let e = m.view;
|
|
1016
|
-
return e ?
|
|
1018
|
+
return e ? L(e.state) : {
|
|
1017
1019
|
hasSelection: !1,
|
|
1018
1020
|
isMultiParagraph: !1,
|
|
1019
1021
|
textFormatting: {},
|
|
@@ -1025,41 +1027,41 @@ var We = {
|
|
|
1025
1027
|
inInsertion: !1,
|
|
1026
1028
|
inDeletion: !1
|
|
1027
1029
|
};
|
|
1028
|
-
}), G = o(() => {
|
|
1029
|
-
let e = W.value.textFormatting.fontFamily;
|
|
1030
|
-
return e?.ascii || e?.hAnsi || "Arial";
|
|
1031
1030
|
}), K = o(() => {
|
|
1032
|
-
let e =
|
|
1031
|
+
let e = G.value.textFormatting.fontFamily;
|
|
1032
|
+
return e?.ascii || e?.hAnsi || "Arial";
|
|
1033
|
+
}), q = o(() => {
|
|
1034
|
+
let e = G.value.textFormatting.fontSize;
|
|
1033
1035
|
return e ? e / 2 : 11;
|
|
1034
|
-
}),
|
|
1035
|
-
switch (
|
|
1036
|
+
}), J = o(() => G.value.paragraphFormatting.alignment || "left"), Y = o(() => {
|
|
1037
|
+
switch (J.value) {
|
|
1036
1038
|
case "center": return "format_align_center";
|
|
1037
1039
|
case "right": return "format_align_right";
|
|
1038
1040
|
case "both": return "format_align_justify";
|
|
1039
1041
|
default: return "format_align_left";
|
|
1040
1042
|
}
|
|
1041
|
-
}), { resolvedParagraphStyles:
|
|
1043
|
+
}), { resolvedParagraphStyles: te, currentStyleLabel: ne } = Ge({
|
|
1042
1044
|
documentStyles: () => m.documentStyles,
|
|
1043
|
-
currentStyleId: () =>
|
|
1045
|
+
currentStyleId: () => G.value.paragraphFormatting.styleId || "Normal",
|
|
1044
1046
|
t: h
|
|
1045
1047
|
}), re = o(() => {
|
|
1046
1048
|
m.stateTick;
|
|
1047
1049
|
let e = m.view;
|
|
1048
|
-
return e ?
|
|
1050
|
+
return e ? ee(e.state) > 0 : !1;
|
|
1049
1051
|
}), ie = o(() => {
|
|
1050
1052
|
m.stateTick;
|
|
1051
1053
|
let e = m.view;
|
|
1052
|
-
return e ?
|
|
1054
|
+
return e ? H(e.state) > 0 : !1;
|
|
1053
1055
|
}), ae = o(() => {
|
|
1054
|
-
let e =
|
|
1056
|
+
let e = G.value, t = e.inList && (e.listLevel ?? 0) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
|
|
1055
1057
|
return t || n;
|
|
1056
1058
|
}), oe = o(() => {
|
|
1057
|
-
let e =
|
|
1059
|
+
let e = G.value.textFormatting.color?.rgb;
|
|
1058
1060
|
return e ? e.replace(/^#/, "").toUpperCase() : void 0;
|
|
1059
1061
|
}), se = o(() => {
|
|
1060
|
-
let e =
|
|
1062
|
+
let e = G.value.textFormatting.highlight;
|
|
1061
1063
|
if (!(!e || e === "none")) return e.replace(/^#/, "").toUpperCase();
|
|
1062
|
-
}), X = o(() =>
|
|
1064
|
+
}), X = o(() => ke(m.fontFamilies) ?? Me), ce = o(() => je(m.documentFonts, X.value.map((e) => e.name))), le = o(() => [
|
|
1063
1065
|
{
|
|
1064
1066
|
label: h("font.documentFonts"),
|
|
1065
1067
|
fonts: ce.value
|
|
@@ -1091,16 +1093,16 @@ var We = {
|
|
|
1091
1093
|
}
|
|
1092
1094
|
r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), z.value = null;
|
|
1093
1095
|
}
|
|
1094
|
-
function
|
|
1096
|
+
function ue(e) {
|
|
1095
1097
|
Z("setFontFamily", e);
|
|
1096
1098
|
}
|
|
1097
|
-
let { onSizeFocus: pe, onSizeInput: me, commitFontSize: he, pickFontSize: ge, increaseFontSize: _e, decreaseFontSize:
|
|
1098
|
-
currentFontSize:
|
|
1099
|
+
let { onSizeFocus: pe, onSizeInput: me, commitFontSize: he, pickFontSize: ge, increaseFontSize: _e, decreaseFontSize: ve } = Re({
|
|
1100
|
+
currentFontSize: q,
|
|
1099
1101
|
openDropdown: z,
|
|
1100
|
-
recomputeDropdownPos:
|
|
1102
|
+
recomputeDropdownPos: W,
|
|
1101
1103
|
execCommand: Z
|
|
1102
1104
|
});
|
|
1103
|
-
function
|
|
1105
|
+
function ye(e) {
|
|
1104
1106
|
if (typeof e == "object" && e.auto) {
|
|
1105
1107
|
Z("clearTextColor");
|
|
1106
1108
|
return;
|
|
@@ -1109,7 +1111,7 @@ var We = {
|
|
|
1109
1111
|
}
|
|
1110
1112
|
function xe() {
|
|
1111
1113
|
let e = m.view;
|
|
1112
|
-
e && (
|
|
1114
|
+
e && (U(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
|
|
1113
1115
|
}
|
|
1114
1116
|
function Se(e) {
|
|
1115
1117
|
Z("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
|
|
@@ -1121,23 +1123,23 @@ var We = {
|
|
|
1121
1123
|
Z("setLineSpacing", e);
|
|
1122
1124
|
}
|
|
1123
1125
|
function Te(e) {
|
|
1124
|
-
let t =
|
|
1126
|
+
let t = G.value.paragraphFormatting.lineSpacing;
|
|
1125
1127
|
return t ? Math.abs(t - e) < 10 : e === 240;
|
|
1126
1128
|
}
|
|
1127
|
-
return (t,
|
|
1129
|
+
return (t, n) => e.view ? (b(), l("div", Ke, [
|
|
1128
1130
|
u("button", {
|
|
1129
1131
|
title: O(h)("undoShortcut"),
|
|
1130
1132
|
"aria-label": O(h)("undo"),
|
|
1131
1133
|
disabled: !re.value,
|
|
1132
|
-
onMousedown:
|
|
1133
|
-
}, [f(
|
|
1134
|
+
onMousedown: n[0] ||= F((e) => Z("undo"), ["prevent"])
|
|
1135
|
+
}, [f(r, { name: "undo" })], 40, qe),
|
|
1134
1136
|
u("button", {
|
|
1135
1137
|
title: O(h)("redoShortcut"),
|
|
1136
1138
|
"aria-label": O(h)("redo"),
|
|
1137
1139
|
disabled: !ie.value,
|
|
1138
|
-
onMousedown:
|
|
1139
|
-
}, [f(
|
|
1140
|
-
|
|
1140
|
+
onMousedown: n[1] ||= F((e) => Z("redo"), ["prevent"])
|
|
1141
|
+
}, [f(r, { name: "redo" })], 40, Je),
|
|
1142
|
+
n[42] ||= u("span", { class: "divider" }, null, -1),
|
|
1141
1143
|
k.value ? (b(), l("div", {
|
|
1142
1144
|
key: 0,
|
|
1143
1145
|
class: "toolbar-dropdown zoom-group",
|
|
@@ -1146,86 +1148,86 @@ var We = {
|
|
|
1146
1148
|
}, [
|
|
1147
1149
|
u("button", {
|
|
1148
1150
|
class: "size-btn",
|
|
1149
|
-
onMousedown:
|
|
1151
|
+
onMousedown: n[2] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
|
|
1150
1152
|
disabled: x.value,
|
|
1151
1153
|
title: O(h)("zoom.zoomOut")
|
|
1152
|
-
}, " − ", 40,
|
|
1154
|
+
}, " − ", 40, Ye),
|
|
1153
1155
|
u("button", {
|
|
1154
1156
|
class: "toolbar-dropdown__trigger zoom-trigger",
|
|
1155
|
-
onMousedown:
|
|
1157
|
+
onMousedown: n[3] ||= F((e) => O(V)("zoom"), ["prevent"]),
|
|
1156
1158
|
"aria-expanded": O(z) === "zoom",
|
|
1157
1159
|
"aria-haspopup": "listbox",
|
|
1158
1160
|
title: O(h)("zoom.zoomLevel")
|
|
1159
|
-
}, [d(E(y.value) + "% ", 1), f(
|
|
1161
|
+
}, [d(E(y.value) + "% ", 1), f(r, {
|
|
1160
1162
|
class: "chevron",
|
|
1161
1163
|
name: "arrow_drop_down",
|
|
1162
1164
|
size: 16
|
|
1163
|
-
})], 40,
|
|
1165
|
+
})], 40, Xe),
|
|
1164
1166
|
u("button", {
|
|
1165
1167
|
class: "size-btn",
|
|
1166
|
-
onMousedown:
|
|
1168
|
+
onMousedown: n[4] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
|
|
1167
1169
|
disabled: T.value,
|
|
1168
1170
|
title: O(h)("zoom.zoomIn")
|
|
1169
|
-
}, " + ", 40,
|
|
1171
|
+
}, " + ", 40, Ze),
|
|
1170
1172
|
O(z) === "zoom" ? (b(), l("div", {
|
|
1171
1173
|
key: 0,
|
|
1172
|
-
style: _(O(
|
|
1174
|
+
style: _(O(B)),
|
|
1173
1175
|
class: "toolbar-dropdown__menu zoom-menu"
|
|
1174
1176
|
}, [(b(!0), l(a, null, C(D.value, (e) => (b(), l("button", {
|
|
1175
1177
|
key: e,
|
|
1176
1178
|
class: g(["toolbar-dropdown__item", { active: y.value === Math.round(e * 100) }]),
|
|
1177
1179
|
onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
|
|
1178
|
-
}, E(Math.round(e * 100)) + "% ", 43,
|
|
1180
|
+
}, E(Math.round(e * 100)) + "% ", 43, Qe))), 128))], 4)) : c("", !0)
|
|
1179
1181
|
], 512)) : c("", !0),
|
|
1180
|
-
|
|
1182
|
+
n[43] ||= u("span", { class: "divider" }, null, -1),
|
|
1181
1183
|
u("div", {
|
|
1182
1184
|
class: "toolbar-dropdown",
|
|
1183
1185
|
ref_key: "styleDropdownRef",
|
|
1184
1186
|
ref: A
|
|
1185
1187
|
}, [u("button", {
|
|
1186
1188
|
class: "toolbar-dropdown__trigger style-trigger",
|
|
1187
|
-
onMousedown:
|
|
1189
|
+
onMousedown: n[5] ||= F((e) => O(V)("style"), ["prevent"]),
|
|
1188
1190
|
"aria-expanded": O(z) === "style",
|
|
1189
1191
|
"aria-haspopup": "listbox",
|
|
1190
1192
|
title: O(h)("styles.selectAriaLabel")
|
|
1191
|
-
}, [d(E(O(
|
|
1193
|
+
}, [d(E(O(ne)) + " ", 1), f(r, {
|
|
1192
1194
|
class: "chevron",
|
|
1193
1195
|
name: "arrow_drop_down",
|
|
1194
1196
|
size: 16
|
|
1195
|
-
})], 40,
|
|
1197
|
+
})], 40, $e), O(z) === "style" ? (b(), l("div", {
|
|
1196
1198
|
key: 0,
|
|
1197
|
-
style: _(O(
|
|
1199
|
+
style: _(O(B)),
|
|
1198
1200
|
class: "toolbar-dropdown__menu style-menu"
|
|
1199
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1201
|
+
}, [(b(!0), l(a, null, C(O(te), (e) => (b(), l("button", {
|
|
1200
1202
|
key: e.id,
|
|
1201
|
-
class: g(["toolbar-dropdown__item", { active: (
|
|
1203
|
+
class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
|
|
1202
1204
|
onMousedown: F((t) => Ce(e.id), ["prevent"])
|
|
1203
|
-
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42,
|
|
1204
|
-
|
|
1205
|
+
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, et))), 128))], 4)) : c("", !0)], 512),
|
|
1206
|
+
n[44] ||= u("span", { class: "divider" }, null, -1),
|
|
1205
1207
|
u("div", {
|
|
1206
1208
|
class: "toolbar-dropdown",
|
|
1207
1209
|
ref_key: "fontDropdownRef",
|
|
1208
1210
|
ref: j
|
|
1209
1211
|
}, [u("button", {
|
|
1210
1212
|
class: "toolbar-dropdown__trigger font-trigger",
|
|
1211
|
-
onMousedown:
|
|
1213
|
+
onMousedown: n[6] ||= F((e) => O(V)("font"), ["prevent"]),
|
|
1212
1214
|
"aria-expanded": O(z) === "font",
|
|
1213
1215
|
"aria-haspopup": "listbox",
|
|
1214
1216
|
title: O(h)("font.selectAriaLabel")
|
|
1215
|
-
}, [d(E(
|
|
1217
|
+
}, [d(E(K.value) + " ", 1), f(r, {
|
|
1216
1218
|
class: "chevron",
|
|
1217
1219
|
name: "arrow_drop_down",
|
|
1218
1220
|
size: 16
|
|
1219
|
-
})], 40,
|
|
1221
|
+
})], 40, tt), O(z) === "font" ? (b(), l("div", {
|
|
1220
1222
|
key: 0,
|
|
1221
|
-
style: _(O(
|
|
1223
|
+
style: _(O(B)),
|
|
1222
1224
|
class: "toolbar-dropdown__menu font-menu"
|
|
1223
|
-
}, [(b(!0), l(a, null, C(le.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div",
|
|
1225
|
+
}, [(b(!0), l(a, null, C(le.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", nt, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
|
|
1224
1226
|
key: e.name,
|
|
1225
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1227
|
+
class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
|
|
1226
1228
|
style: _({ fontFamily: e.fontFamily }),
|
|
1227
|
-
onMousedown: F((t) =>
|
|
1228
|
-
}, E(e.name), 47,
|
|
1229
|
+
onMousedown: F((t) => ue(e.name), ["prevent"])
|
|
1230
|
+
}, E(e.name), 47, rt))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
|
|
1229
1231
|
u("div", {
|
|
1230
1232
|
class: "toolbar-dropdown font-size-group",
|
|
1231
1233
|
ref_key: "sizeDropdownRef",
|
|
@@ -1233,71 +1235,71 @@ var We = {
|
|
|
1233
1235
|
}, [
|
|
1234
1236
|
u("button", {
|
|
1235
1237
|
class: "size-btn",
|
|
1236
|
-
onMousedown:
|
|
1238
|
+
onMousedown: n[7] ||= F((...e) => O(ve) && O(ve)(...e), ["prevent"]),
|
|
1237
1239
|
title: O(h)("decreaseFontSize")
|
|
1238
|
-
}, " − ", 40,
|
|
1240
|
+
}, " − ", 40, it),
|
|
1239
1241
|
u("input", {
|
|
1240
1242
|
class: "size-trigger size-input",
|
|
1241
1243
|
type: "text",
|
|
1242
|
-
value:
|
|
1244
|
+
value: q.value,
|
|
1243
1245
|
title: O(h)("fontSize"),
|
|
1244
|
-
onMousedown:
|
|
1245
|
-
onFocus:
|
|
1246
|
+
onMousedown: n[8] ||= F(() => {}, ["stop"]),
|
|
1247
|
+
onFocus: n[9] ||= (...e) => O(pe) && O(pe)(...e),
|
|
1246
1248
|
"aria-expanded": O(z) === "size",
|
|
1247
1249
|
"aria-haspopup": "listbox",
|
|
1248
|
-
onInput:
|
|
1250
|
+
onInput: n[10] ||= (...e) => O(me) && O(me)(...e),
|
|
1249
1251
|
onKeydown: [
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1252
|
+
n[11] ||= P(F((e) => O(_e)(), ["prevent", "stop"]), ["up"]),
|
|
1253
|
+
n[12] ||= P(F((e) => O(ve)(), ["prevent", "stop"]), ["down"]),
|
|
1254
|
+
n[13] ||= P(F((e) => O(he)(e), ["prevent"]), ["enter"])
|
|
1253
1255
|
],
|
|
1254
|
-
onBlur:
|
|
1255
|
-
}, null, 40,
|
|
1256
|
+
onBlur: n[14] ||= (e) => O(he)(e)
|
|
1257
|
+
}, null, 40, at),
|
|
1256
1258
|
u("button", {
|
|
1257
1259
|
class: "size-btn",
|
|
1258
|
-
onMousedown:
|
|
1260
|
+
onMousedown: n[15] ||= F((...e) => O(_e) && O(_e)(...e), ["prevent"]),
|
|
1259
1261
|
title: O(h)("increaseFontSize")
|
|
1260
|
-
}, " + ", 40,
|
|
1262
|
+
}, " + ", 40, ot),
|
|
1261
1263
|
O(z) === "size" ? (b(), l("div", {
|
|
1262
1264
|
key: 0,
|
|
1263
|
-
style: _(O(
|
|
1265
|
+
style: _(O(B)),
|
|
1264
1266
|
class: "toolbar-dropdown__menu size-menu"
|
|
1265
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1267
|
+
}, [(b(!0), l(a, null, C(O(Ne), (e) => (b(), l("button", {
|
|
1266
1268
|
key: e,
|
|
1267
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1269
|
+
class: g(["toolbar-dropdown__item", { active: q.value === e }]),
|
|
1268
1270
|
onMousedown: F((t) => O(ge)(e), ["prevent"])
|
|
1269
|
-
}, E(e), 43,
|
|
1271
|
+
}, E(e), 43, st))), 128))], 4)) : c("", !0)
|
|
1270
1272
|
], 512),
|
|
1271
|
-
|
|
1273
|
+
n[45] ||= u("span", { class: "divider" }, null, -1),
|
|
1272
1274
|
u("button", {
|
|
1273
1275
|
title: O(h)("boldShortcut"),
|
|
1274
1276
|
"aria-label": O(h)("bold"),
|
|
1275
|
-
class: g({ active:
|
|
1276
|
-
onMousedown:
|
|
1277
|
-
}, [f(
|
|
1277
|
+
class: g({ active: G.value.textFormatting.bold }),
|
|
1278
|
+
onMousedown: n[16] ||= F((e) => Z("toggleBold"), ["prevent"])
|
|
1279
|
+
}, [f(r, { name: "format_bold" })], 42, ct),
|
|
1278
1280
|
u("button", {
|
|
1279
1281
|
title: O(h)("italicShortcut"),
|
|
1280
1282
|
"aria-label": O(h)("italic"),
|
|
1281
|
-
class: g({ active:
|
|
1282
|
-
onMousedown:
|
|
1283
|
-
}, [f(
|
|
1283
|
+
class: g({ active: G.value.textFormatting.italic }),
|
|
1284
|
+
onMousedown: n[17] ||= F((e) => Z("toggleItalic"), ["prevent"])
|
|
1285
|
+
}, [f(r, { name: "format_italic" })], 42, lt),
|
|
1284
1286
|
u("button", {
|
|
1285
1287
|
title: O(h)("underlineShortcut"),
|
|
1286
1288
|
"aria-label": O(h)("underline"),
|
|
1287
|
-
class: g({ active: !!
|
|
1288
|
-
onMousedown:
|
|
1289
|
-
}, [f(
|
|
1289
|
+
class: g({ active: !!G.value.textFormatting.underline }),
|
|
1290
|
+
onMousedown: n[18] ||= F((e) => Z("toggleUnderline"), ["prevent"])
|
|
1291
|
+
}, [f(r, { name: "format_underlined" })], 42, ut),
|
|
1290
1292
|
u("button", {
|
|
1291
1293
|
title: O(h)("formattingBar.strikethrough"),
|
|
1292
1294
|
"aria-label": O(h)("formattingBar.strikethrough"),
|
|
1293
|
-
class: g({ active:
|
|
1294
|
-
onMousedown:
|
|
1295
|
-
}, [f(
|
|
1295
|
+
class: g({ active: G.value.textFormatting.strike }),
|
|
1296
|
+
onMousedown: n[19] ||= F((e) => Z("toggleStrike"), ["prevent"])
|
|
1297
|
+
}, [f(r, { name: "strikethrough_s" })], 42, dt),
|
|
1296
1298
|
f(O(p), {
|
|
1297
1299
|
mode: "text",
|
|
1298
1300
|
value: oe.value,
|
|
1299
1301
|
theme: e.theme ?? null,
|
|
1300
|
-
onChange:
|
|
1302
|
+
onChange: ye
|
|
1301
1303
|
}, null, 8, ["value", "theme"]),
|
|
1302
1304
|
f(O(p), {
|
|
1303
1305
|
mode: "highlight",
|
|
@@ -1308,174 +1310,174 @@ var We = {
|
|
|
1308
1310
|
u("button", {
|
|
1309
1311
|
title: O(h)("formattingBar.insertLinkShortcut"),
|
|
1310
1312
|
"aria-label": O(h)("formattingBar.insertLink"),
|
|
1311
|
-
onMousedown:
|
|
1312
|
-
}, [f(
|
|
1313
|
+
onMousedown: n[20] ||= F((e) => t.$emit("insert-link"), ["prevent"])
|
|
1314
|
+
}, [f(r, { name: "link" })], 40, ft),
|
|
1313
1315
|
u("button", {
|
|
1314
1316
|
title: O(h)("formattingBar.superscriptShortcut"),
|
|
1315
1317
|
"aria-label": O(h)("formattingBar.superscript"),
|
|
1316
|
-
class: g({ active:
|
|
1317
|
-
onMousedown:
|
|
1318
|
-
}, [f(
|
|
1318
|
+
class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
|
|
1319
|
+
onMousedown: n[21] ||= F((e) => Z("toggleSuperscript"), ["prevent"])
|
|
1320
|
+
}, [f(r, { name: "superscript" })], 42, pt),
|
|
1319
1321
|
u("button", {
|
|
1320
1322
|
title: O(h)("formattingBar.subscriptShortcut"),
|
|
1321
1323
|
"aria-label": O(h)("formattingBar.subscript"),
|
|
1322
|
-
class: g({ active:
|
|
1323
|
-
onMousedown:
|
|
1324
|
-
}, [f(
|
|
1325
|
-
|
|
1324
|
+
class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
|
|
1325
|
+
onMousedown: n[22] ||= F((e) => Z("toggleSubscript"), ["prevent"])
|
|
1326
|
+
}, [f(r, { name: "subscript" })], 42, mt),
|
|
1327
|
+
n[46] ||= u("span", { class: "divider" }, null, -1),
|
|
1326
1328
|
u("div", {
|
|
1327
1329
|
class: "toolbar-dropdown",
|
|
1328
1330
|
ref_key: "alignDropdownRef",
|
|
1329
1331
|
ref: N
|
|
1330
1332
|
}, [u("button", {
|
|
1331
1333
|
class: "toolbar-dropdown__trigger align-trigger",
|
|
1332
|
-
onMousedown:
|
|
1334
|
+
onMousedown: n[23] ||= F((e) => O(V)("align"), ["prevent"]),
|
|
1333
1335
|
"aria-expanded": O(z) === "align",
|
|
1334
1336
|
"aria-haspopup": "listbox",
|
|
1335
1337
|
title: O(h)("alignmentGroup")
|
|
1336
|
-
}, [f(
|
|
1338
|
+
}, [f(r, { name: Y.value }, null, 8, ["name"]), f(r, {
|
|
1337
1339
|
class: "chevron",
|
|
1338
1340
|
name: "arrow_drop_down",
|
|
1339
1341
|
size: 16
|
|
1340
|
-
})], 40,
|
|
1342
|
+
})], 40, ht), O(z) === "align" ? (b(), l("div", {
|
|
1341
1343
|
key: 0,
|
|
1342
|
-
style: _(O(
|
|
1344
|
+
style: _(O(B)),
|
|
1343
1345
|
class: "toolbar-dropdown__menu align-strip"
|
|
1344
1346
|
}, [
|
|
1345
1347
|
u("button", {
|
|
1346
|
-
class: g(["align-strip__btn", { active:
|
|
1348
|
+
class: g(["align-strip__btn", { active: J.value === "left" }]),
|
|
1347
1349
|
title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
|
|
1348
|
-
onMousedown:
|
|
1350
|
+
onMousedown: n[24] ||= F((e) => {
|
|
1349
1351
|
Z("alignLeft"), z.value = null;
|
|
1350
1352
|
}, ["prevent"])
|
|
1351
|
-
}, [f(
|
|
1353
|
+
}, [f(r, {
|
|
1352
1354
|
name: "format_align_left",
|
|
1353
1355
|
size: 18
|
|
1354
|
-
})], 42,
|
|
1356
|
+
})], 42, gt),
|
|
1355
1357
|
u("button", {
|
|
1356
|
-
class: g(["align-strip__btn", { active:
|
|
1358
|
+
class: g(["align-strip__btn", { active: J.value === "center" }]),
|
|
1357
1359
|
title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
|
|
1358
|
-
onMousedown:
|
|
1360
|
+
onMousedown: n[25] ||= F((e) => {
|
|
1359
1361
|
Z("alignCenter"), z.value = null;
|
|
1360
1362
|
}, ["prevent"])
|
|
1361
|
-
}, [f(
|
|
1363
|
+
}, [f(r, {
|
|
1362
1364
|
name: "format_align_center",
|
|
1363
1365
|
size: 18
|
|
1364
|
-
})], 42,
|
|
1366
|
+
})], 42, _t),
|
|
1365
1367
|
u("button", {
|
|
1366
|
-
class: g(["align-strip__btn", { active:
|
|
1368
|
+
class: g(["align-strip__btn", { active: J.value === "right" }]),
|
|
1367
1369
|
title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
|
|
1368
|
-
onMousedown:
|
|
1370
|
+
onMousedown: n[26] ||= F((e) => {
|
|
1369
1371
|
Z("alignRight"), z.value = null;
|
|
1370
1372
|
}, ["prevent"])
|
|
1371
|
-
}, [f(
|
|
1373
|
+
}, [f(r, {
|
|
1372
1374
|
name: "format_align_right",
|
|
1373
1375
|
size: 18
|
|
1374
|
-
})], 42,
|
|
1376
|
+
})], 42, vt),
|
|
1375
1377
|
u("button", {
|
|
1376
|
-
class: g(["align-strip__btn", { active:
|
|
1378
|
+
class: g(["align-strip__btn", { active: J.value === "both" }]),
|
|
1377
1379
|
title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
|
|
1378
|
-
onMousedown:
|
|
1380
|
+
onMousedown: n[27] ||= F((e) => {
|
|
1379
1381
|
Z("alignJustify"), z.value = null;
|
|
1380
1382
|
}, ["prevent"])
|
|
1381
|
-
}, [f(
|
|
1383
|
+
}, [f(r, {
|
|
1382
1384
|
name: "format_align_justify",
|
|
1383
1385
|
size: 18
|
|
1384
|
-
})], 42,
|
|
1386
|
+
})], 42, yt)
|
|
1385
1387
|
], 4)) : c("", !0)], 512),
|
|
1386
1388
|
u("button", {
|
|
1387
1389
|
title: O(h)("bulletList"),
|
|
1388
1390
|
"aria-label": O(h)("bulletList"),
|
|
1389
|
-
class: g({ active:
|
|
1390
|
-
onMousedown:
|
|
1391
|
-
}, [f(
|
|
1391
|
+
class: g({ active: G.value.inList && G.value.listType === "bullet" }),
|
|
1392
|
+
onMousedown: n[28] ||= F((e) => Z("toggleBulletList"), ["prevent"])
|
|
1393
|
+
}, [f(r, { name: "format_list_bulleted" })], 42, bt),
|
|
1392
1394
|
u("button", {
|
|
1393
1395
|
title: O(h)("numberedList"),
|
|
1394
1396
|
"aria-label": O(h)("numberedList"),
|
|
1395
|
-
class: g({ active:
|
|
1396
|
-
onMousedown:
|
|
1397
|
-
}, [f(
|
|
1397
|
+
class: g({ active: G.value.inList && G.value.listType === "numbered" }),
|
|
1398
|
+
onMousedown: n[29] ||= F((e) => Z("toggleNumberedList"), ["prevent"])
|
|
1399
|
+
}, [f(r, { name: "format_list_numbered" })], 42, xt),
|
|
1398
1400
|
u("button", {
|
|
1399
1401
|
title: O(h)("decreaseIndent"),
|
|
1400
1402
|
"aria-label": O(h)("decreaseIndent"),
|
|
1401
1403
|
disabled: !ae.value,
|
|
1402
|
-
onMousedown:
|
|
1403
|
-
}, [f(
|
|
1404
|
+
onMousedown: n[30] ||= F((e) => Z("outdent"), ["prevent"])
|
|
1405
|
+
}, [f(r, { name: "format_indent_decrease" })], 40, St),
|
|
1404
1406
|
u("button", {
|
|
1405
1407
|
title: O(h)("increaseIndent"),
|
|
1406
1408
|
"aria-label": O(h)("increaseIndent"),
|
|
1407
|
-
onMousedown:
|
|
1408
|
-
}, [f(
|
|
1409
|
+
onMousedown: n[31] ||= F((e) => Z("indent"), ["prevent"])
|
|
1410
|
+
}, [f(r, { name: "format_indent_increase" })], 40, Ct),
|
|
1409
1411
|
u("div", {
|
|
1410
1412
|
class: "toolbar-dropdown",
|
|
1411
1413
|
ref_key: "spacingDropdownRef",
|
|
1412
|
-
ref:
|
|
1414
|
+
ref: I
|
|
1413
1415
|
}, [u("button", {
|
|
1414
1416
|
class: "toolbar-dropdown__trigger",
|
|
1415
|
-
onMousedown:
|
|
1417
|
+
onMousedown: n[32] ||= F((e) => O(V)("spacing"), ["prevent"]),
|
|
1416
1418
|
"aria-expanded": O(z) === "spacing",
|
|
1417
1419
|
"aria-haspopup": "listbox",
|
|
1418
1420
|
title: O(h)("lineSpacing.label")
|
|
1419
|
-
}, [f(
|
|
1421
|
+
}, [f(r, { name: "format_line_spacing" }), f(r, {
|
|
1420
1422
|
class: "chevron",
|
|
1421
1423
|
name: "arrow_drop_down",
|
|
1422
1424
|
size: 16
|
|
1423
|
-
})], 40,
|
|
1425
|
+
})], 40, wt), O(z) === "spacing" ? (b(), l("div", {
|
|
1424
1426
|
key: 0,
|
|
1425
|
-
style: _(O(
|
|
1427
|
+
style: _(O(B)),
|
|
1426
1428
|
class: "toolbar-dropdown__menu"
|
|
1427
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1429
|
+
}, [(b(!0), l(a, null, C(O(Fe), (e) => (b(), l("button", {
|
|
1428
1430
|
key: e.value,
|
|
1429
1431
|
class: g(["toolbar-dropdown__item", { active: Te(e.value) }]),
|
|
1430
1432
|
onMousedown: F((t) => we(e.value), ["prevent"])
|
|
1431
|
-
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43,
|
|
1433
|
+
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, Tt))), 128))], 4)) : c("", !0)], 512),
|
|
1432
1434
|
u("button", {
|
|
1433
1435
|
title: O(h)("formattingBar.clearFormatting"),
|
|
1434
1436
|
"aria-label": O(h)("formattingBar.clearFormatting"),
|
|
1435
1437
|
onMousedown: F(xe, ["prevent"])
|
|
1436
|
-
}, [f(
|
|
1437
|
-
|
|
1438
|
+
}, [f(r, { name: "format_clear" })], 40, Et),
|
|
1439
|
+
n[47] ||= u("span", { class: "divider" }, null, -1),
|
|
1438
1440
|
u("button", {
|
|
1439
1441
|
title: O(h)("formattingBar.commentsAndChanges"),
|
|
1440
1442
|
"aria-label": O(h)("formattingBar.commentsAndChanges"),
|
|
1441
1443
|
class: g({ active: e.commentsSidebarOpen }),
|
|
1442
|
-
onMousedown:
|
|
1443
|
-
}, [f(
|
|
1444
|
+
onMousedown: n[33] ||= F((e) => t.$emit("toggle-sidebar"), ["prevent"])
|
|
1445
|
+
}, [f(r, { name: "comment" })], 42, Dt),
|
|
1444
1446
|
e.imageContext ? (b(), l(a, { key: 1 }, [
|
|
1445
|
-
|
|
1446
|
-
f(
|
|
1447
|
+
n[40] ||= u("span", { class: "divider" }, null, -1),
|
|
1448
|
+
f(de, {
|
|
1447
1449
|
"image-context": e.imageContext,
|
|
1448
|
-
onChange:
|
|
1450
|
+
onChange: n[34] ||= (e) => t.$emit("image-wrap-type", e)
|
|
1449
1451
|
}, null, 8, ["image-context"]),
|
|
1450
|
-
f(
|
|
1452
|
+
f(fe, { onTransform: n[35] ||= (e) => t.$emit("image-transform", e) }),
|
|
1451
1453
|
u("button", {
|
|
1452
1454
|
title: O(h)("formattingBar.imagePropertiesShortcut"),
|
|
1453
1455
|
"aria-label": O(h)("formattingBar.imageProperties"),
|
|
1454
|
-
onMousedown:
|
|
1455
|
-
}, [f(
|
|
1456
|
+
onMousedown: n[36] ||= F((e) => t.$emit("image-properties"), ["prevent"])
|
|
1457
|
+
}, [f(r, { name: "tune" })], 40, Ot)
|
|
1456
1458
|
], 64)) : c("", !0),
|
|
1457
1459
|
w(t.$slots, "table-context", {}, void 0, !0),
|
|
1458
|
-
e.showReviewControls ? (b(), l(a, { key: 2 }, [
|
|
1460
|
+
e.showReviewControls ? (b(), l(a, { key: 2 }, [n[41] ||= u("span", { class: "divider" }, null, -1), f(Oe, {
|
|
1459
1461
|
"track-changes-on": e.trackChangesOn,
|
|
1460
1462
|
"display-mode": e.displayMode,
|
|
1461
1463
|
"read-only": e.readOnly,
|
|
1462
|
-
onToggleTrackChanges:
|
|
1463
|
-
"onUpdate:displayMode":
|
|
1464
|
+
onToggleTrackChanges: n[37] ||= (e) => t.$emit("toggle-track-changes"),
|
|
1465
|
+
"onUpdate:displayMode": n[38] ||= (e) => t.$emit("update:display-mode", e)
|
|
1464
1466
|
}, null, 8, [
|
|
1465
1467
|
"track-changes-on",
|
|
1466
1468
|
"display-mode",
|
|
1467
1469
|
"read-only"
|
|
1468
1470
|
])], 64)) : c("", !0),
|
|
1469
|
-
|
|
1470
|
-
e.editorMode ? (b(), s(
|
|
1471
|
+
n[48] ||= u("span", { class: "divider" }, null, -1),
|
|
1472
|
+
e.editorMode ? (b(), s(be, {
|
|
1471
1473
|
key: 3,
|
|
1472
1474
|
"model-value": e.editorMode,
|
|
1473
|
-
"onUpdate:modelValue":
|
|
1475
|
+
"onUpdate:modelValue": n[39] ||= (e) => t.$emit("mode-change", e)
|
|
1474
1476
|
}, null, 8, ["model-value"])) : c("", !0),
|
|
1475
1477
|
w(t.$slots, "toolbar-extra", {}, void 0, !0)
|
|
1476
1478
|
])) : c("", !0);
|
|
1477
1479
|
}
|
|
1478
|
-
}), [["__scopeId", "data-v-e54d1eac"]]),
|
|
1480
|
+
}), [["__scopeId", "data-v-e54d1eac"]]), At = ["aria-valuemax"], jt = { class: "docx-horizontal-ruler__ticks" }, Mt = ["title", "onDblclick"], Nt = 12240, Pt = 1440, Ft = 1440, It = 567, Lt = "var(--doc-primary)", Rt = "var(--doc-primary)", zt = "var(--doc-primary-hover)", Q = 5, Bt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1479
1481
|
__name: "HorizontalRuler",
|
|
1480
1482
|
props: {
|
|
1481
1483
|
sectionProps: {},
|
|
@@ -1509,12 +1511,12 @@ var We = {
|
|
|
1509
1511
|
setup(e, { emit: t }) {
|
|
1510
1512
|
let n = e, r = t, i = Math.round(Q * 1.6), s = S(null), d = S(null), f = S(null), p = S(0), m = S("");
|
|
1511
1513
|
function h(e) {
|
|
1512
|
-
return
|
|
1514
|
+
return B(e) * n.zoom;
|
|
1513
1515
|
}
|
|
1514
1516
|
function g(e) {
|
|
1515
|
-
return Math.round(
|
|
1517
|
+
return Math.round(z(e / n.zoom));
|
|
1516
1518
|
}
|
|
1517
|
-
let y = o(() => n.sectionProps?.pageWidth ??
|
|
1519
|
+
let y = o(() => n.sectionProps?.pageWidth ?? Nt), x = o(() => n.sectionProps?.marginLeft ?? Pt), w = o(() => n.sectionProps?.marginRight ?? Pt), T = o(() => y.value - x.value - w.value), D = o(() => h(y.value)), O = o(() => h(x.value)), k = o(() => h(w.value)), A = o(() => h(n.indentLeft)), j = o(() => h(n.indentRight)), M = o(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), N = o(() => h(M.value)), P = o(() => O.value + A.value), I = o(() => D.value - k.value - j.value), L = o(() => O.value + A.value + N.value), R = o(() => ({
|
|
1518
1520
|
position: "relative",
|
|
1519
1521
|
width: D.value + "px",
|
|
1520
1522
|
height: "22px",
|
|
@@ -1532,7 +1534,7 @@ var We = {
|
|
|
1532
1534
|
borderRight: "1px solid var(--doc-shadow-subtle)",
|
|
1533
1535
|
cursor: n.editable ? "ew-resize" : "default",
|
|
1534
1536
|
zIndex: 1
|
|
1535
|
-
})),
|
|
1537
|
+
})), H = o(() => ({
|
|
1536
1538
|
position: "absolute",
|
|
1537
1539
|
top: 0,
|
|
1538
1540
|
right: 0,
|
|
@@ -1542,10 +1544,10 @@ var We = {
|
|
|
1542
1544
|
borderLeft: "1px solid var(--doc-shadow-subtle)",
|
|
1543
1545
|
cursor: n.editable ? "ew-resize" : "default",
|
|
1544
1546
|
zIndex: 1
|
|
1545
|
-
})),
|
|
1547
|
+
})), ee = o(() => {
|
|
1546
1548
|
let e = [];
|
|
1547
1549
|
if (n.unit === "inch") {
|
|
1548
|
-
let t =
|
|
1550
|
+
let t = Ft / 8, n = Math.ceil(y.value / t);
|
|
1549
1551
|
for (let r = 0; r <= n; r++) {
|
|
1550
1552
|
let n = r * t;
|
|
1551
1553
|
if (n > y.value) break;
|
|
@@ -1566,7 +1568,7 @@ var We = {
|
|
|
1566
1568
|
});
|
|
1567
1569
|
}
|
|
1568
1570
|
} else {
|
|
1569
|
-
let t =
|
|
1571
|
+
let t = It / 10, n = Math.ceil(y.value / t);
|
|
1570
1572
|
for (let r = 0; r <= n; r++) {
|
|
1571
1573
|
let n = r * t;
|
|
1572
1574
|
if (n > y.value) break;
|
|
@@ -1590,16 +1592,16 @@ var We = {
|
|
|
1590
1592
|
return {
|
|
1591
1593
|
px: h(t),
|
|
1592
1594
|
twips: t,
|
|
1593
|
-
label:
|
|
1595
|
+
label: W(t)
|
|
1594
1596
|
};
|
|
1595
1597
|
}) : []);
|
|
1596
|
-
function te(e) {
|
|
1597
|
-
return n.unit === "cm" ? (e / Pt).toFixed(1) + " cm" : (e / Nt).toFixed(2) + "\"";
|
|
1598
|
-
}
|
|
1599
1598
|
function W(e) {
|
|
1600
|
-
return
|
|
1599
|
+
return n.unit === "cm" ? (e / It).toFixed(1) + " cm" : (e / Ft).toFixed(2) + "\"";
|
|
1600
|
+
}
|
|
1601
|
+
function G(e) {
|
|
1602
|
+
return d.value === e ? zt : f.value === e ? Rt : Lt;
|
|
1601
1603
|
}
|
|
1602
|
-
function
|
|
1604
|
+
function K(e, t, r) {
|
|
1603
1605
|
return {
|
|
1604
1606
|
position: "absolute",
|
|
1605
1607
|
left: t - Q + "px",
|
|
@@ -1610,7 +1612,7 @@ var We = {
|
|
|
1610
1612
|
...e === "down" ? { top: 0 } : { bottom: 0 }
|
|
1611
1613
|
};
|
|
1612
1614
|
}
|
|
1613
|
-
function
|
|
1615
|
+
function q(e, t) {
|
|
1614
1616
|
return e === "down" ? {
|
|
1615
1617
|
position: "absolute",
|
|
1616
1618
|
top: "1px",
|
|
@@ -1633,21 +1635,21 @@ var We = {
|
|
|
1633
1635
|
transition: "border-bottom-color 0.1s"
|
|
1634
1636
|
};
|
|
1635
1637
|
}
|
|
1636
|
-
let
|
|
1637
|
-
function
|
|
1638
|
-
n.editable && (d.value = e, e === "leftMargin" ?
|
|
1638
|
+
let J = 0;
|
|
1639
|
+
function Y(e, t) {
|
|
1640
|
+
n.editable && (d.value = e, e === "leftMargin" ? J = x.value : e === "rightMargin" ? J = w.value : e === "leftIndent" ? J = n.indentLeft : e === "rightIndent" ? J = n.indentRight : e === "firstLineIndent" && (J = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value = W(J), document.addEventListener("mousemove", te), document.addEventListener("mouseup", ne));
|
|
1639
1641
|
}
|
|
1640
|
-
function
|
|
1642
|
+
function te(e) {
|
|
1641
1643
|
if (!d.value || !s.value) return;
|
|
1642
1644
|
let t = s.value.getBoundingClientRect();
|
|
1643
1645
|
if (!t) return;
|
|
1644
1646
|
let n = e.clientX - t.left;
|
|
1645
1647
|
p.value = n;
|
|
1646
1648
|
let r = g(n), i = re(d.value, r);
|
|
1647
|
-
m.value =
|
|
1649
|
+
m.value = W(i), ie(d.value, i);
|
|
1648
1650
|
}
|
|
1649
|
-
function
|
|
1650
|
-
d.value = null, document.removeEventListener("mousemove",
|
|
1651
|
+
function ne(e) {
|
|
1652
|
+
d.value = null, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ne);
|
|
1651
1653
|
}
|
|
1652
1654
|
function re(e, t) {
|
|
1653
1655
|
if (e === "leftMargin") {
|
|
@@ -1689,12 +1691,12 @@ var We = {
|
|
|
1689
1691
|
}
|
|
1690
1692
|
}
|
|
1691
1693
|
return v(() => {
|
|
1692
|
-
document.removeEventListener("mousemove",
|
|
1694
|
+
document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ne);
|
|
1693
1695
|
}), (t, n) => (b(), l("div", {
|
|
1694
1696
|
ref_key: "rulerRef",
|
|
1695
1697
|
ref: s,
|
|
1696
1698
|
class: "docx-horizontal-ruler",
|
|
1697
|
-
style: _(
|
|
1699
|
+
style: _(R.value),
|
|
1698
1700
|
role: "slider",
|
|
1699
1701
|
"aria-label": "Horizontal ruler",
|
|
1700
1702
|
"aria-valuemin": 0,
|
|
@@ -1703,14 +1705,14 @@ var We = {
|
|
|
1703
1705
|
u("div", {
|
|
1704
1706
|
class: "docx-horizontal-ruler__margin",
|
|
1705
1707
|
style: _(V.value),
|
|
1706
|
-
onMousedown: n[0] ||= F((t) => e.editable ?
|
|
1708
|
+
onMousedown: n[0] ||= F((t) => e.editable ? Y("leftMargin", t) : null, ["prevent", "stop"])
|
|
1707
1709
|
}, null, 36),
|
|
1708
1710
|
u("div", {
|
|
1709
1711
|
class: "docx-horizontal-ruler__margin",
|
|
1710
|
-
style: _(
|
|
1711
|
-
onMousedown: n[1] ||= F((t) => e.editable ?
|
|
1712
|
+
style: _(H.value),
|
|
1713
|
+
onMousedown: n[1] ||= F((t) => e.editable ? Y("rightMargin", t) : null, ["prevent", "stop"])
|
|
1712
1714
|
}, null, 36),
|
|
1713
|
-
u("div",
|
|
1715
|
+
u("div", jt, [(b(!0), l(a, null, C(ee.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
1714
1716
|
class: "docx-horizontal-ruler__tick-line",
|
|
1715
1717
|
style: _({
|
|
1716
1718
|
left: e.position + "px",
|
|
@@ -1724,47 +1726,47 @@ var We = {
|
|
|
1724
1726
|
e.showFirstLineIndent ? (b(), l("div", {
|
|
1725
1727
|
key: 0,
|
|
1726
1728
|
class: "docx-ruler-indent",
|
|
1727
|
-
style: _(
|
|
1728
|
-
onMousedown: n[2] ||= F((t) => e.editable ?
|
|
1729
|
+
style: _(K("down", L.value, d.value === "firstLineIndent")),
|
|
1730
|
+
onMousedown: n[2] ||= F((t) => e.editable ? Y("firstLineIndent", t) : null, ["prevent", "stop"]),
|
|
1729
1731
|
onMouseenter: n[3] ||= (e) => f.value = "firstLineIndent",
|
|
1730
1732
|
onMouseleave: n[4] ||= (e) => f.value = null
|
|
1731
|
-
}, [u("div", { style: _(
|
|
1733
|
+
}, [u("div", { style: _(q("down", G("firstLineIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1732
1734
|
e.editable ? (b(), l("div", {
|
|
1733
1735
|
key: 1,
|
|
1734
1736
|
class: "docx-ruler-indent",
|
|
1735
|
-
style: _(
|
|
1736
|
-
onMousedown: n[5] ||= F((e) =>
|
|
1737
|
+
style: _(K("up", P.value, d.value === "leftIndent")),
|
|
1738
|
+
onMousedown: n[5] ||= F((e) => Y("leftIndent", e), ["prevent", "stop"]),
|
|
1737
1739
|
onMouseenter: n[6] ||= (e) => f.value = "leftIndent",
|
|
1738
1740
|
onMouseleave: n[7] ||= (e) => f.value = null
|
|
1739
|
-
}, [u("div", { style: _(
|
|
1741
|
+
}, [u("div", { style: _(q("up", G("leftIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1740
1742
|
e.editable ? (b(), l("div", {
|
|
1741
1743
|
key: 2,
|
|
1742
1744
|
class: "docx-ruler-indent",
|
|
1743
|
-
style: _(
|
|
1744
|
-
onMousedown: n[8] ||= F((e) =>
|
|
1745
|
+
style: _(K("down", I.value, d.value === "rightIndent")),
|
|
1746
|
+
onMousedown: n[8] ||= F((e) => Y("rightIndent", e), ["prevent", "stop"]),
|
|
1745
1747
|
onMouseenter: n[9] ||= (e) => f.value = "rightIndent",
|
|
1746
1748
|
onMouseleave: n[10] ||= (e) => f.value = null
|
|
1747
|
-
}, [u("div", { style: _(
|
|
1749
|
+
}, [u("div", { style: _(q("down", G("rightIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1748
1750
|
(b(!0), l(a, null, C(U.value, (e, n) => (b(), l("div", {
|
|
1749
1751
|
key: n,
|
|
1750
1752
|
class: "docx-horizontal-ruler__tab",
|
|
1751
1753
|
style: _({ left: e.px + "px" }),
|
|
1752
1754
|
title: `${e.label}`,
|
|
1753
1755
|
onDblclick: F((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
|
|
1754
|
-
}, " L ", 44,
|
|
1756
|
+
}, " L ", 44, Mt))), 128)),
|
|
1755
1757
|
d.value && m.value ? (b(), l("div", {
|
|
1756
1758
|
key: 3,
|
|
1757
1759
|
class: "docx-horizontal-ruler__tooltip",
|
|
1758
1760
|
style: _({ left: p.value + "px" })
|
|
1759
1761
|
}, E(m.value), 5)) : c("", !0)
|
|
1760
|
-
], 12,
|
|
1762
|
+
], 12, At));
|
|
1761
1763
|
}
|
|
1762
|
-
}), [["__scopeId", "data-v-6f3ea48c"]]),
|
|
1764
|
+
}), [["__scopeId", "data-v-6f3ea48c"]]), Vt = ["disabled", "onClick"], Ht = { class: "docx-tbp__panel" }, Ut = ["title", "onClick"], Wt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1763
1765
|
__name: "TableBorderPicker",
|
|
1764
1766
|
props: { disabled: { type: Boolean } },
|
|
1765
1767
|
emits: ["change"],
|
|
1766
1768
|
setup(e, { emit: t }) {
|
|
1767
|
-
let { Popover:
|
|
1769
|
+
let { Popover: n } = i(), o = t, c = S(!1), d = [
|
|
1768
1770
|
{
|
|
1769
1771
|
value: "all",
|
|
1770
1772
|
icon: "border_all",
|
|
@@ -1819,7 +1821,7 @@ var We = {
|
|
|
1819
1821
|
function p(e) {
|
|
1820
1822
|
o("change", e), c.value = !1;
|
|
1821
1823
|
}
|
|
1822
|
-
return (t, i) => (b(), s(O(
|
|
1824
|
+
return (t, i) => (b(), s(O(n), {
|
|
1823
1825
|
open: c.value,
|
|
1824
1826
|
"onUpdate:open": i[0] ||= (e) => c.value = e,
|
|
1825
1827
|
onClose: i[1] ||= (e) => c.value = !1
|
|
@@ -1830,24 +1832,24 @@ var We = {
|
|
|
1830
1832
|
disabled: e.disabled,
|
|
1831
1833
|
title: "Borders",
|
|
1832
1834
|
onClick: F(t, ["prevent"])
|
|
1833
|
-
}, [f(
|
|
1835
|
+
}, [f(r, {
|
|
1834
1836
|
name: "border_all",
|
|
1835
1837
|
size: 20
|
|
1836
|
-
})], 8,
|
|
1837
|
-
panel: M(() => [u("div",
|
|
1838
|
+
})], 8, Vt)]),
|
|
1839
|
+
panel: M(() => [u("div", Ht, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1838
1840
|
key: e.value,
|
|
1839
1841
|
type: "button",
|
|
1840
1842
|
class: "docx-tbp__option",
|
|
1841
1843
|
title: e.label,
|
|
1842
1844
|
onClick: F((t) => p(e.value), ["prevent"])
|
|
1843
|
-
}, [f(
|
|
1845
|
+
}, [f(r, {
|
|
1844
1846
|
name: e.icon,
|
|
1845
1847
|
size: 20
|
|
1846
|
-
}, null, 8, ["name"])], 8,
|
|
1848
|
+
}, null, 8, ["name"])], 8, Ut)), 64))])]),
|
|
1847
1849
|
_: 1
|
|
1848
1850
|
}, 8, ["open"]));
|
|
1849
1851
|
}
|
|
1850
|
-
}), [["__scopeId", "data-v-4e30a014"]]),
|
|
1852
|
+
}), [["__scopeId", "data-v-4e30a014"]]), Gt = /* @__PURE__ */ p({
|
|
1851
1853
|
__name: "TableBorderColorPicker",
|
|
1852
1854
|
props: {
|
|
1853
1855
|
disabled: { type: Boolean },
|
|
@@ -1855,8 +1857,8 @@ var We = {
|
|
|
1855
1857
|
value: {}
|
|
1856
1858
|
},
|
|
1857
1859
|
emits: ["change"],
|
|
1858
|
-
setup(t, { emit:
|
|
1859
|
-
let i =
|
|
1860
|
+
setup(t, { emit: r }) {
|
|
1861
|
+
let i = r, { t: a } = n();
|
|
1860
1862
|
function o(e) {
|
|
1861
1863
|
typeof e == "string" ? i("change", e.replace(/^#/, "")) : e.rgb ? i("change", e.rgb.replace(/^#/, "")) : e.auto && i("change", "000000");
|
|
1862
1864
|
}
|
|
@@ -1874,12 +1876,12 @@ var We = {
|
|
|
1874
1876
|
"title"
|
|
1875
1877
|
]));
|
|
1876
1878
|
}
|
|
1877
|
-
}),
|
|
1879
|
+
}), Kt = ["disabled", "onClick"], qt = { class: "docx-tbwidth__panel" }, Jt = ["onClick"], Yt = { class: "docx-tbwidth__label" }, Xt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1878
1880
|
__name: "TableBorderWidthPicker",
|
|
1879
1881
|
props: { disabled: { type: Boolean } },
|
|
1880
1882
|
emits: ["change"],
|
|
1881
1883
|
setup(e, { emit: t }) {
|
|
1882
|
-
let { Popover:
|
|
1884
|
+
let { Popover: n } = i(), o = t, c = S(!1), d = [
|
|
1883
1885
|
{
|
|
1884
1886
|
label: "0.5pt",
|
|
1885
1887
|
eighths: 4,
|
|
@@ -1924,7 +1926,7 @@ var We = {
|
|
|
1924
1926
|
function p(e) {
|
|
1925
1927
|
o("change", e), c.value = !1;
|
|
1926
1928
|
}
|
|
1927
|
-
return (t, i) => (b(), s(O(
|
|
1929
|
+
return (t, i) => (b(), s(O(n), {
|
|
1928
1930
|
open: c.value,
|
|
1929
1931
|
"onUpdate:open": i[0] ||= (e) => c.value = e,
|
|
1930
1932
|
onClose: i[1] ||= (e) => c.value = !1
|
|
@@ -1935,11 +1937,11 @@ var We = {
|
|
|
1935
1937
|
disabled: e.disabled,
|
|
1936
1938
|
title: "Border width",
|
|
1937
1939
|
onClick: F(t, ["prevent"])
|
|
1938
|
-
}, [f(
|
|
1940
|
+
}, [f(r, {
|
|
1939
1941
|
name: "line_weight",
|
|
1940
1942
|
size: 20
|
|
1941
|
-
})], 8,
|
|
1942
|
-
panel: M(() => [u("div",
|
|
1943
|
+
})], 8, Kt)]),
|
|
1944
|
+
panel: M(() => [u("div", qt, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1943
1945
|
key: e.eighths,
|
|
1944
1946
|
type: "button",
|
|
1945
1947
|
class: "docx-tbwidth__option",
|
|
@@ -1947,11 +1949,11 @@ var We = {
|
|
|
1947
1949
|
}, [u("span", {
|
|
1948
1950
|
class: "docx-tbwidth__preview",
|
|
1949
1951
|
style: _({ borderTopWidth: e.previewPx + "px" })
|
|
1950
|
-
}, null, 4), u("span",
|
|
1952
|
+
}, null, 4), u("span", Yt, E(e.label), 1)], 8, Jt)), 64))])]),
|
|
1951
1953
|
_: 1
|
|
1952
1954
|
}, 8, ["open"]));
|
|
1953
1955
|
}
|
|
1954
|
-
}), [["__scopeId", "data-v-42a746ba"]]),
|
|
1956
|
+
}), [["__scopeId", "data-v-42a746ba"]]), Zt = /* @__PURE__ */ p({
|
|
1955
1957
|
__name: "TableCellFillPicker",
|
|
1956
1958
|
props: {
|
|
1957
1959
|
disabled: { type: Boolean },
|
|
@@ -1959,8 +1961,8 @@ var We = {
|
|
|
1959
1961
|
value: {}
|
|
1960
1962
|
},
|
|
1961
1963
|
emits: ["change"],
|
|
1962
|
-
setup(t, { emit:
|
|
1963
|
-
let i =
|
|
1964
|
+
setup(t, { emit: r }) {
|
|
1965
|
+
let i = r, { t: a } = n();
|
|
1964
1966
|
function o(e) {
|
|
1965
1967
|
typeof e == "string" && i("change", e === "none" ? "" : e.replace(/^#/, ""));
|
|
1966
1968
|
}
|
|
@@ -1981,23 +1983,23 @@ var We = {
|
|
|
1981
1983
|
"auto-label"
|
|
1982
1984
|
]));
|
|
1983
1985
|
}
|
|
1984
|
-
}),
|
|
1986
|
+
}), Qt = [
|
|
1985
1987
|
"disabled",
|
|
1986
1988
|
"title",
|
|
1987
1989
|
"onClick"
|
|
1988
|
-
],
|
|
1990
|
+
], $t = ["aria-label"], en = ["disabled"], tn = ["disabled"], nn = ["disabled"], rn = ["disabled"], an = { class: "docx-tmore__section-label" }, on = { class: "docx-tmore__icon-row" }, sn = ["title"], cn = ["title"], ln = ["title"], un = { class: "docx-tmore__section-label" }, dn = { class: "docx-tmore__icon-row" }, fn = ["title"], pn = ["title"], mn = ["title"], hn = { class: "docx-tmore__grow" }, gn = {
|
|
1989
1991
|
key: 0,
|
|
1990
1992
|
class: "docx-tmore__sub"
|
|
1991
|
-
},
|
|
1993
|
+
}, _n = { class: "docx-tmore__margin-grid" }, vn = { class: "docx-tmore__field-label" }, yn = ["onUpdate:modelValue"], bn = { class: "docx-tmore__grow" }, xn = {
|
|
1992
1994
|
key: 1,
|
|
1993
1995
|
class: "docx-tmore__sub"
|
|
1994
|
-
},
|
|
1996
|
+
}, Sn = { class: "docx-tmore__row-field" }, Cn = { class: "docx-tmore__field-label" }, wn = { value: "auto" }, Tn = { value: "atLeast" }, En = { value: "exact" }, Dn = {
|
|
1995
1997
|
key: 0,
|
|
1996
1998
|
class: "docx-tmore__row-field"
|
|
1997
|
-
},
|
|
1999
|
+
}, On = { class: "docx-tmore__field-label" }, kn = { class: "docx-tmore__grow" }, An = {
|
|
1998
2000
|
key: 2,
|
|
1999
2001
|
class: "docx-tmore__sub docx-tmore__sub--list"
|
|
2000
|
-
},
|
|
2002
|
+
}, jn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2001
2003
|
__name: "TableMoreDropdown",
|
|
2002
2004
|
props: {
|
|
2003
2005
|
disabled: {
|
|
@@ -2023,7 +2025,7 @@ var We = {
|
|
|
2023
2025
|
"row-height"
|
|
2024
2026
|
],
|
|
2025
2027
|
setup(e, { emit: t }) {
|
|
2026
|
-
let { Popover: o } = i(), d = e, p = t, { t: m } =
|
|
2028
|
+
let { Popover: o } = i(), d = e, p = t, { t: m } = n(), h = S(!1), _ = S(!1), v = S(!1), y = S(!1), w = x({
|
|
2027
2029
|
top: 0,
|
|
2028
2030
|
bottom: 0,
|
|
2029
2031
|
left: 108,
|
|
@@ -2060,11 +2062,11 @@ var We = {
|
|
|
2060
2062
|
function B(e) {
|
|
2061
2063
|
p("cell-text-direction", e), h.value = !1;
|
|
2062
2064
|
}
|
|
2063
|
-
return (t,
|
|
2065
|
+
return (t, n) => (b(), s(O(o), {
|
|
2064
2066
|
open: h.value,
|
|
2065
2067
|
placement: "bottom-right",
|
|
2066
|
-
"onUpdate:open":
|
|
2067
|
-
onClose:
|
|
2068
|
+
"onUpdate:open": n[35] ||= (e) => h.value = e,
|
|
2069
|
+
onClose: n[36] ||= (e) => h.value = !1
|
|
2068
2070
|
}, {
|
|
2069
2071
|
trigger: M(({ toggle: t }) => [u("button", {
|
|
2070
2072
|
type: "button",
|
|
@@ -2072,10 +2074,10 @@ var We = {
|
|
|
2072
2074
|
disabled: e.disabled,
|
|
2073
2075
|
title: O(m)("tableAdvanced.tableOptions"),
|
|
2074
2076
|
onClick: F(t, ["prevent"])
|
|
2075
|
-
}, [f(
|
|
2077
|
+
}, [f(r, {
|
|
2076
2078
|
name: "more_vert",
|
|
2077
2079
|
size: 20
|
|
2078
|
-
})], 10,
|
|
2080
|
+
})], 10, Qt)]),
|
|
2079
2081
|
panel: M(() => [u("div", {
|
|
2080
2082
|
class: "docx-tmore__panel",
|
|
2081
2083
|
role: "menu",
|
|
@@ -2084,175 +2086,175 @@ var We = {
|
|
|
2084
2086
|
u("button", {
|
|
2085
2087
|
type: "button",
|
|
2086
2088
|
class: "docx-tmore__item",
|
|
2087
|
-
onClick:
|
|
2088
|
-
}, [f(
|
|
2089
|
+
onClick: n[0] ||= F((e) => I("addRowAbove"), ["prevent"])
|
|
2090
|
+
}, [f(r, {
|
|
2089
2091
|
name: "add",
|
|
2090
2092
|
size: 18
|
|
2091
2093
|
}), u("span", null, E(O(m)("insertRowAbove")), 1)]),
|
|
2092
2094
|
u("button", {
|
|
2093
2095
|
type: "button",
|
|
2094
2096
|
class: "docx-tmore__item",
|
|
2095
|
-
onClick:
|
|
2096
|
-
}, [f(
|
|
2097
|
+
onClick: n[1] ||= F((e) => I("addRowBelow"), ["prevent"])
|
|
2098
|
+
}, [f(r, {
|
|
2097
2099
|
name: "add",
|
|
2098
2100
|
size: 18
|
|
2099
2101
|
}), u("span", null, E(O(m)("insertRowBelow")), 1)]),
|
|
2100
2102
|
u("button", {
|
|
2101
2103
|
type: "button",
|
|
2102
2104
|
class: "docx-tmore__item",
|
|
2103
|
-
onClick:
|
|
2104
|
-
}, [f(
|
|
2105
|
+
onClick: n[2] ||= F((e) => I("addColumnLeft"), ["prevent"])
|
|
2106
|
+
}, [f(r, {
|
|
2105
2107
|
name: "add",
|
|
2106
2108
|
size: 18
|
|
2107
2109
|
}), u("span", null, E(O(m)("insertColumnLeft")), 1)]),
|
|
2108
2110
|
u("button", {
|
|
2109
2111
|
type: "button",
|
|
2110
2112
|
class: "docx-tmore__item",
|
|
2111
|
-
onClick:
|
|
2112
|
-
}, [f(
|
|
2113
|
+
onClick: n[3] ||= F((e) => I("addColumnRight"), ["prevent"])
|
|
2114
|
+
}, [f(r, {
|
|
2113
2115
|
name: "add",
|
|
2114
2116
|
size: 18
|
|
2115
2117
|
}), u("span", null, E(O(m)("insertColumnRight")), 1)]),
|
|
2116
|
-
|
|
2118
|
+
n[39] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2117
2119
|
u("button", {
|
|
2118
2120
|
type: "button",
|
|
2119
2121
|
class: "docx-tmore__item",
|
|
2120
2122
|
disabled: P("mergeCells"),
|
|
2121
|
-
onClick:
|
|
2122
|
-
}, [f(
|
|
2123
|
+
onClick: n[4] ||= F((e) => I("mergeCells"), ["prevent"])
|
|
2124
|
+
}, [f(r, {
|
|
2123
2125
|
name: "call_merge",
|
|
2124
2126
|
size: 18
|
|
2125
|
-
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8,
|
|
2127
|
+
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, en),
|
|
2126
2128
|
u("button", {
|
|
2127
2129
|
type: "button",
|
|
2128
2130
|
class: "docx-tmore__item",
|
|
2129
2131
|
disabled: P("splitCell"),
|
|
2130
|
-
onClick:
|
|
2131
|
-
}, [f(
|
|
2132
|
+
onClick: n[5] ||= F((e) => I("splitCell"), ["prevent"])
|
|
2133
|
+
}, [f(r, {
|
|
2132
2134
|
name: "call_split",
|
|
2133
2135
|
size: 18
|
|
2134
|
-
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8,
|
|
2135
|
-
|
|
2136
|
+
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8, tn),
|
|
2137
|
+
n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2136
2138
|
u("button", {
|
|
2137
2139
|
type: "button",
|
|
2138
2140
|
class: "docx-tmore__item",
|
|
2139
|
-
onClick:
|
|
2140
|
-
}, [f(
|
|
2141
|
+
onClick: n[6] ||= F((e) => I("selectTable"), ["prevent"])
|
|
2142
|
+
}, [f(r, {
|
|
2141
2143
|
name: "select_all",
|
|
2142
2144
|
size: 18
|
|
2143
2145
|
}), u("span", null, E(O(m)("table.selectTable")), 1)]),
|
|
2144
|
-
|
|
2146
|
+
n[41] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2145
2147
|
u("button", {
|
|
2146
2148
|
type: "button",
|
|
2147
2149
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
2148
2150
|
disabled: P("deleteRow"),
|
|
2149
|
-
onClick:
|
|
2150
|
-
}, [f(
|
|
2151
|
+
onClick: n[7] ||= F((e) => I("deleteRow"), ["prevent"])
|
|
2152
|
+
}, [f(r, {
|
|
2151
2153
|
name: "delete",
|
|
2152
2154
|
size: 18
|
|
2153
|
-
}), u("span", null, E(O(m)("deleteRow")), 1)], 8,
|
|
2155
|
+
}), u("span", null, E(O(m)("deleteRow")), 1)], 8, nn),
|
|
2154
2156
|
u("button", {
|
|
2155
2157
|
type: "button",
|
|
2156
2158
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
2157
2159
|
disabled: P("deleteColumn"),
|
|
2158
|
-
onClick:
|
|
2159
|
-
}, [f(
|
|
2160
|
+
onClick: n[8] ||= F((e) => I("deleteColumn"), ["prevent"])
|
|
2161
|
+
}, [f(r, {
|
|
2160
2162
|
name: "delete",
|
|
2161
2163
|
size: 18
|
|
2162
|
-
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8,
|
|
2164
|
+
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8, rn),
|
|
2163
2165
|
u("button", {
|
|
2164
2166
|
type: "button",
|
|
2165
2167
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
2166
|
-
onClick:
|
|
2167
|
-
}, [f(
|
|
2168
|
+
onClick: n[9] ||= F((e) => I("deleteTable"), ["prevent"])
|
|
2169
|
+
}, [f(r, {
|
|
2168
2170
|
name: "delete",
|
|
2169
2171
|
size: 18
|
|
2170
2172
|
}), u("span", null, E(O(m)("table.deleteTable")), 1)]),
|
|
2171
|
-
|
|
2172
|
-
u("div",
|
|
2173
|
-
u("div",
|
|
2173
|
+
n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2174
|
+
u("div", an, E(O(m)("tableAdvanced.verticalAlignment")), 1),
|
|
2175
|
+
u("div", on, [
|
|
2174
2176
|
u("button", {
|
|
2175
2177
|
type: "button",
|
|
2176
2178
|
class: "docx-tmore__icon-btn",
|
|
2177
2179
|
title: O(m)("tableAdvanced.top"),
|
|
2178
|
-
onMousedown:
|
|
2179
|
-
onClick:
|
|
2180
|
-
}, [f(
|
|
2180
|
+
onMousedown: n[10] ||= F(() => {}, ["prevent"]),
|
|
2181
|
+
onClick: n[11] ||= F((e) => I("verticalAlignTop"), ["prevent"])
|
|
2182
|
+
}, [f(r, {
|
|
2181
2183
|
name: "vertical_align_top",
|
|
2182
2184
|
size: 16
|
|
2183
|
-
})], 40,
|
|
2185
|
+
})], 40, sn),
|
|
2184
2186
|
u("button", {
|
|
2185
2187
|
type: "button",
|
|
2186
2188
|
class: "docx-tmore__icon-btn",
|
|
2187
2189
|
title: O(m)("tableAdvanced.middle"),
|
|
2188
|
-
onMousedown:
|
|
2189
|
-
onClick:
|
|
2190
|
-
}, [f(
|
|
2190
|
+
onMousedown: n[12] ||= F(() => {}, ["prevent"]),
|
|
2191
|
+
onClick: n[13] ||= F((e) => I("verticalAlignMiddle"), ["prevent"])
|
|
2192
|
+
}, [f(r, {
|
|
2191
2193
|
name: "vertical_align_center",
|
|
2192
2194
|
size: 16
|
|
2193
|
-
})], 40,
|
|
2195
|
+
})], 40, cn),
|
|
2194
2196
|
u("button", {
|
|
2195
2197
|
type: "button",
|
|
2196
2198
|
class: "docx-tmore__icon-btn",
|
|
2197
2199
|
title: O(m)("tableAdvanced.bottom"),
|
|
2198
|
-
onMousedown:
|
|
2199
|
-
onClick:
|
|
2200
|
-
}, [f(
|
|
2200
|
+
onMousedown: n[14] ||= F(() => {}, ["prevent"]),
|
|
2201
|
+
onClick: n[15] ||= F((e) => I("verticalAlignBottom"), ["prevent"])
|
|
2202
|
+
}, [f(r, {
|
|
2201
2203
|
name: "vertical_align_bottom",
|
|
2202
2204
|
size: 16
|
|
2203
|
-
})], 40,
|
|
2205
|
+
})], 40, ln)
|
|
2204
2206
|
]),
|
|
2205
|
-
|
|
2206
|
-
u("div",
|
|
2207
|
-
u("div",
|
|
2207
|
+
n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2208
|
+
u("div", un, E(O(m)("tableAdvanced.tableAlignment")), 1),
|
|
2209
|
+
u("div", dn, [
|
|
2208
2210
|
u("button", {
|
|
2209
2211
|
type: "button",
|
|
2210
2212
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
|
|
2211
2213
|
title: O(m)("tableAdvanced.alignTableLeft"),
|
|
2212
|
-
onMousedown:
|
|
2213
|
-
onClick:
|
|
2214
|
-
}, [f(
|
|
2214
|
+
onMousedown: n[16] ||= F(() => {}, ["prevent"]),
|
|
2215
|
+
onClick: n[17] ||= F((e) => I("alignTableLeft"), ["prevent"])
|
|
2216
|
+
}, [f(r, {
|
|
2215
2217
|
name: "format_align_left",
|
|
2216
2218
|
size: 16
|
|
2217
|
-
})], 42,
|
|
2219
|
+
})], 42, fn),
|
|
2218
2220
|
u("button", {
|
|
2219
2221
|
type: "button",
|
|
2220
2222
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
|
|
2221
2223
|
title: O(m)("tableAdvanced.alignTableCenter"),
|
|
2222
|
-
onMousedown:
|
|
2223
|
-
onClick:
|
|
2224
|
-
}, [f(
|
|
2224
|
+
onMousedown: n[18] ||= F(() => {}, ["prevent"]),
|
|
2225
|
+
onClick: n[19] ||= F((e) => I("alignTableCenter"), ["prevent"])
|
|
2226
|
+
}, [f(r, {
|
|
2225
2227
|
name: "format_align_center",
|
|
2226
2228
|
size: 16
|
|
2227
|
-
})], 42,
|
|
2229
|
+
})], 42, pn),
|
|
2228
2230
|
u("button", {
|
|
2229
2231
|
type: "button",
|
|
2230
2232
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
|
|
2231
2233
|
title: O(m)("tableAdvanced.alignTableRight"),
|
|
2232
|
-
onMousedown:
|
|
2233
|
-
onClick:
|
|
2234
|
-
}, [f(
|
|
2234
|
+
onMousedown: n[20] ||= F(() => {}, ["prevent"]),
|
|
2235
|
+
onClick: n[21] ||= F((e) => I("alignTableRight"), ["prevent"])
|
|
2236
|
+
}, [f(r, {
|
|
2235
2237
|
name: "format_align_right",
|
|
2236
2238
|
size: 16
|
|
2237
|
-
})], 42,
|
|
2239
|
+
})], 42, mn)
|
|
2238
2240
|
]),
|
|
2239
|
-
|
|
2241
|
+
n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2240
2242
|
u("button", {
|
|
2241
2243
|
type: "button",
|
|
2242
2244
|
class: "docx-tmore__item",
|
|
2243
|
-
onClick:
|
|
2245
|
+
onClick: n[22] ||= F((e) => _.value = !_.value, ["prevent"])
|
|
2244
2246
|
}, [
|
|
2245
|
-
f(
|
|
2247
|
+
f(r, {
|
|
2246
2248
|
name: "padding",
|
|
2247
2249
|
size: 18
|
|
2248
2250
|
}),
|
|
2249
|
-
u("span",
|
|
2250
|
-
f(
|
|
2251
|
+
u("span", hn, E(O(m)("tableAdvanced.cellMargins")), 1),
|
|
2252
|
+
f(r, {
|
|
2251
2253
|
name: _.value ? "expand_less" : "expand_more",
|
|
2252
2254
|
size: 18
|
|
2253
2255
|
}, null, 8, ["name"])
|
|
2254
2256
|
]),
|
|
2255
|
-
_.value ? (b(), l("div",
|
|
2257
|
+
_.value ? (b(), l("div", gn, [u("div", _n, [(b(), l(a, null, C([
|
|
2256
2258
|
"top",
|
|
2257
2259
|
"bottom",
|
|
2258
2260
|
"left",
|
|
@@ -2261,20 +2263,20 @@ var We = {
|
|
|
2261
2263
|
key: e,
|
|
2262
2264
|
class: "docx-tmore__field"
|
|
2263
2265
|
}, [
|
|
2264
|
-
u("span",
|
|
2266
|
+
u("span", vn, E(e), 1),
|
|
2265
2267
|
N(u("input", {
|
|
2266
2268
|
type: "number",
|
|
2267
2269
|
min: "0",
|
|
2268
2270
|
step: "20",
|
|
2269
2271
|
"onUpdate:modelValue": (t) => w[e] = t,
|
|
2270
2272
|
class: "docx-tmore__input"
|
|
2271
|
-
}, null, 8,
|
|
2273
|
+
}, null, 8, yn), [[
|
|
2272
2274
|
A,
|
|
2273
2275
|
w[e],
|
|
2274
2276
|
void 0,
|
|
2275
2277
|
{ number: !0 }
|
|
2276
2278
|
]]),
|
|
2277
|
-
|
|
2279
|
+
n[37] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
|
|
2278
2280
|
])), 64))]), u("button", {
|
|
2279
2281
|
type: "button",
|
|
2280
2282
|
class: "docx-tmore__apply",
|
|
@@ -2283,34 +2285,34 @@ var We = {
|
|
|
2283
2285
|
u("button", {
|
|
2284
2286
|
type: "button",
|
|
2285
2287
|
class: "docx-tmore__item",
|
|
2286
|
-
onClick:
|
|
2288
|
+
onClick: n[23] ||= F((e) => v.value = !v.value, ["prevent"])
|
|
2287
2289
|
}, [
|
|
2288
|
-
f(
|
|
2290
|
+
f(r, {
|
|
2289
2291
|
name: "height",
|
|
2290
2292
|
size: 18
|
|
2291
2293
|
}),
|
|
2292
|
-
u("span",
|
|
2293
|
-
f(
|
|
2294
|
+
u("span", bn, E(O(m)("tableAdvanced.rowHeight")), 1),
|
|
2295
|
+
f(r, {
|
|
2294
2296
|
name: v.value ? "expand_less" : "expand_more",
|
|
2295
2297
|
size: 18
|
|
2296
2298
|
}, null, 8, ["name"])
|
|
2297
2299
|
]),
|
|
2298
|
-
v.value ? (b(), l("div",
|
|
2299
|
-
u("label",
|
|
2300
|
-
"onUpdate:modelValue":
|
|
2300
|
+
v.value ? (b(), l("div", xn, [
|
|
2301
|
+
u("label", Sn, [u("span", Cn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
|
|
2302
|
+
"onUpdate:modelValue": n[24] ||= (e) => D.value = e,
|
|
2301
2303
|
class: "docx-tmore__select"
|
|
2302
2304
|
}, [
|
|
2303
|
-
u("option",
|
|
2304
|
-
u("option",
|
|
2305
|
-
u("option",
|
|
2305
|
+
u("option", wn, E(O(m)("tableAdvanced.heightRules.auto")), 1),
|
|
2306
|
+
u("option", Tn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
|
|
2307
|
+
u("option", En, E(O(m)("tableAdvanced.heightRules.exact")), 1)
|
|
2306
2308
|
], 512), [[k, D.value]])]),
|
|
2307
|
-
D.value === "auto" ? c("", !0) : (b(), l("label",
|
|
2308
|
-
u("span",
|
|
2309
|
+
D.value === "auto" ? c("", !0) : (b(), l("label", Dn, [
|
|
2310
|
+
u("span", On, E(O(m)("tableAdvanced.height")), 1),
|
|
2309
2311
|
N(u("input", {
|
|
2310
2312
|
type: "number",
|
|
2311
2313
|
min: "0",
|
|
2312
2314
|
step: "20",
|
|
2313
|
-
"onUpdate:modelValue":
|
|
2315
|
+
"onUpdate:modelValue": n[25] ||= (e) => T.value = e,
|
|
2314
2316
|
class: "docx-tmore__input"
|
|
2315
2317
|
}, null, 512), [[
|
|
2316
2318
|
A,
|
|
@@ -2318,7 +2320,7 @@ var We = {
|
|
|
2318
2320
|
void 0,
|
|
2319
2321
|
{ number: !0 }
|
|
2320
2322
|
]]),
|
|
2321
|
-
|
|
2323
|
+
n[38] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
|
|
2322
2324
|
])),
|
|
2323
2325
|
u("button", {
|
|
2324
2326
|
type: "button",
|
|
@@ -2329,82 +2331,82 @@ var We = {
|
|
|
2329
2331
|
u("button", {
|
|
2330
2332
|
type: "button",
|
|
2331
2333
|
class: "docx-tmore__item",
|
|
2332
|
-
onClick:
|
|
2334
|
+
onClick: n[26] ||= F((e) => y.value = !y.value, ["prevent"])
|
|
2333
2335
|
}, [
|
|
2334
|
-
f(
|
|
2336
|
+
f(r, {
|
|
2335
2337
|
name: "text_rotation_none",
|
|
2336
2338
|
size: 18
|
|
2337
2339
|
}),
|
|
2338
|
-
u("span",
|
|
2339
|
-
f(
|
|
2340
|
+
u("span", kn, E(O(m)("textDirection")), 1),
|
|
2341
|
+
f(r, {
|
|
2340
2342
|
name: y.value ? "expand_less" : "expand_more",
|
|
2341
2343
|
size: 18
|
|
2342
2344
|
}, null, 8, ["name"])
|
|
2343
2345
|
]),
|
|
2344
|
-
y.value ? (b(), l("div",
|
|
2346
|
+
y.value ? (b(), l("div", An, [
|
|
2345
2347
|
u("button", {
|
|
2346
2348
|
type: "button",
|
|
2347
2349
|
class: "docx-tmore__sub-item",
|
|
2348
|
-
onClick:
|
|
2350
|
+
onClick: n[27] ||= F((e) => B(null), ["prevent"])
|
|
2349
2351
|
}, E(O(m)("tableAdvanced.textDirections.horizontal")), 1),
|
|
2350
2352
|
u("button", {
|
|
2351
2353
|
type: "button",
|
|
2352
2354
|
class: "docx-tmore__sub-item",
|
|
2353
|
-
onClick:
|
|
2355
|
+
onClick: n[28] ||= F((e) => B("tbRl"), ["prevent"])
|
|
2354
2356
|
}, E(O(m)("tableAdvanced.textDirections.verticalRL")), 1),
|
|
2355
2357
|
u("button", {
|
|
2356
2358
|
type: "button",
|
|
2357
2359
|
class: "docx-tmore__sub-item",
|
|
2358
|
-
onClick:
|
|
2360
|
+
onClick: n[29] ||= F((e) => B("btLr"), ["prevent"])
|
|
2359
2361
|
}, E(O(m)("tableAdvanced.textDirections.verticalLR")), 1)
|
|
2360
2362
|
])) : c("", !0),
|
|
2361
|
-
|
|
2363
|
+
n[45] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2362
2364
|
u("button", {
|
|
2363
2365
|
type: "button",
|
|
2364
2366
|
class: "docx-tmore__item",
|
|
2365
|
-
onClick:
|
|
2366
|
-
}, [f(
|
|
2367
|
+
onClick: n[30] ||= F((e) => I("toggleHeaderRow"), ["prevent"])
|
|
2368
|
+
}, [f(r, {
|
|
2367
2369
|
name: "table_rows",
|
|
2368
2370
|
size: 18
|
|
2369
2371
|
}), u("span", null, E(O(m)("tableAdvanced.toggleHeaderRow")), 1)]),
|
|
2370
2372
|
u("button", {
|
|
2371
2373
|
type: "button",
|
|
2372
2374
|
class: "docx-tmore__item",
|
|
2373
|
-
onClick:
|
|
2374
|
-
}, [f(
|
|
2375
|
+
onClick: n[31] ||= F((e) => I("distributeColumns"), ["prevent"])
|
|
2376
|
+
}, [f(r, {
|
|
2375
2377
|
name: "view_column",
|
|
2376
2378
|
size: 18
|
|
2377
2379
|
}), u("span", null, E(O(m)("tableAdvanced.distributeColumns")), 1)]),
|
|
2378
2380
|
u("button", {
|
|
2379
2381
|
type: "button",
|
|
2380
2382
|
class: "docx-tmore__item",
|
|
2381
|
-
onClick:
|
|
2382
|
-
}, [f(
|
|
2383
|
+
onClick: n[32] ||= F((e) => I("autoFit"), ["prevent"])
|
|
2384
|
+
}, [f(r, {
|
|
2383
2385
|
name: "fit_width",
|
|
2384
2386
|
size: 18
|
|
2385
2387
|
}), u("span", null, E(O(m)("tableAdvanced.autoFit")), 1)]),
|
|
2386
2388
|
u("button", {
|
|
2387
2389
|
type: "button",
|
|
2388
2390
|
class: "docx-tmore__item",
|
|
2389
|
-
onClick:
|
|
2390
|
-
}, [f(
|
|
2391
|
+
onClick: n[33] ||= F((e) => I("toggleNoWrap"), ["prevent"])
|
|
2392
|
+
}, [f(r, {
|
|
2391
2393
|
name: "wrap_text",
|
|
2392
2394
|
size: 18
|
|
2393
2395
|
}), u("span", null, E(O(m)("tableAdvanced.toggleNoWrap")), 1)]),
|
|
2394
|
-
|
|
2396
|
+
n[46] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2395
2397
|
u("button", {
|
|
2396
2398
|
type: "button",
|
|
2397
2399
|
class: "docx-tmore__item",
|
|
2398
|
-
onClick:
|
|
2399
|
-
}, [f(
|
|
2400
|
+
onClick: n[34] ||= F((e) => I("tableProperties"), ["prevent"])
|
|
2401
|
+
}, [f(r, {
|
|
2400
2402
|
name: "settings",
|
|
2401
2403
|
size: 18
|
|
2402
2404
|
}), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
|
|
2403
|
-
], 8,
|
|
2405
|
+
], 8, $t)]),
|
|
2404
2406
|
_: 1
|
|
2405
2407
|
}, 8, ["open"]));
|
|
2406
2408
|
}
|
|
2407
|
-
}), [["__scopeId", "data-v-5d357bc4"]]),
|
|
2409
|
+
}), [["__scopeId", "data-v-5d357bc4"]]), Mn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2408
2410
|
__name: "TableToolbar",
|
|
2409
2411
|
props: {
|
|
2410
2412
|
view: {},
|
|
@@ -2412,14 +2414,15 @@ var We = {
|
|
|
2412
2414
|
stateTick: {},
|
|
2413
2415
|
theme: {}
|
|
2414
2416
|
},
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2417
|
+
emits: ["open-table-properties"],
|
|
2418
|
+
setup(e, { expose: t, emit: n }) {
|
|
2419
|
+
let r = e, i = n, s = o(() => {
|
|
2420
|
+
r.stateTick;
|
|
2421
|
+
let e = r.view;
|
|
2422
|
+
return e ? I(e.state) : null;
|
|
2423
|
+
}), d = o(() => !!s.value?.isInTable), p = o(() => {
|
|
2424
|
+
r.stateTick;
|
|
2425
|
+
let e = r.view;
|
|
2423
2426
|
if (!e) return !1;
|
|
2424
2427
|
let { $from: t } = e.state.selection;
|
|
2425
2428
|
for (let e = t.depth; e > 0; e--) if (t.node(e).type.name === "tableCell") {
|
|
@@ -2427,67 +2430,67 @@ var We = {
|
|
|
2427
2430
|
return (typeof r == "number" ? r : 1) > 1 || (typeof i == "number" ? i : 1) > 1;
|
|
2428
2431
|
}
|
|
2429
2432
|
return !1;
|
|
2430
|
-
}),
|
|
2431
|
-
let e =
|
|
2433
|
+
}), h = o(() => {
|
|
2434
|
+
let e = s.value?.cellBorderColor;
|
|
2432
2435
|
if (e && typeof e == "object" && "rgb" in e && typeof e.rgb == "string") return e.rgb;
|
|
2433
|
-
}),
|
|
2434
|
-
let e =
|
|
2436
|
+
}), g = o(() => h.value === void 0 ? {} : { value: h.value }), _ = o(() => !!s.value?.hasMultiCellSelection), v = o(() => s.value?.rowCount ?? 0), y = o(() => s.value?.columnCount ?? 0), x = o(() => {
|
|
2437
|
+
let e = s.value?.table?.attrs.justification;
|
|
2435
2438
|
return e === "center" || e === "right" ? e : "left";
|
|
2436
|
-
}),
|
|
2439
|
+
}), S = {
|
|
2437
2440
|
style: "single",
|
|
2438
2441
|
size: 4,
|
|
2439
2442
|
color: { rgb: "000000" }
|
|
2440
2443
|
};
|
|
2441
|
-
j([() =>
|
|
2442
|
-
let e =
|
|
2444
|
+
j([() => r.view, () => r.stateTick], () => {
|
|
2445
|
+
let e = r.view;
|
|
2443
2446
|
if (!e) return;
|
|
2444
|
-
let t =
|
|
2445
|
-
!
|
|
2447
|
+
let t = I(e.state), n = t.cellBorderColor;
|
|
2448
|
+
!n || !t.isInTable || typeof n == "object" && "rgb" in n && typeof n.rgb == "string" && (S.color = { rgb: n.rgb });
|
|
2446
2449
|
}, { immediate: !0 });
|
|
2447
|
-
function
|
|
2448
|
-
let
|
|
2449
|
-
if (!
|
|
2450
|
-
let i =
|
|
2451
|
-
return i ? (i(...t)(
|
|
2450
|
+
function C(e, ...t) {
|
|
2451
|
+
let n = r.view;
|
|
2452
|
+
if (!n) return !1;
|
|
2453
|
+
let i = r.getCommands()[e];
|
|
2454
|
+
return i ? (i(...t)(n.state, (e) => n.dispatch(e), n), n.focus(), !0) : !1;
|
|
2452
2455
|
}
|
|
2453
|
-
function
|
|
2456
|
+
function w(e) {
|
|
2454
2457
|
let t = {
|
|
2455
|
-
...
|
|
2456
|
-
color: { ...
|
|
2458
|
+
...S,
|
|
2459
|
+
color: { ...S.color }
|
|
2457
2460
|
};
|
|
2458
2461
|
switch (e) {
|
|
2459
2462
|
case "all":
|
|
2460
|
-
|
|
2463
|
+
C("setAllTableBorders", t);
|
|
2461
2464
|
return;
|
|
2462
2465
|
case "none":
|
|
2463
|
-
|
|
2466
|
+
C("removeTableBorders");
|
|
2464
2467
|
return;
|
|
2465
2468
|
case "box":
|
|
2466
|
-
|
|
2469
|
+
C("setOutsideTableBorders", t);
|
|
2467
2470
|
return;
|
|
2468
2471
|
case "inside":
|
|
2469
2472
|
case "insideH":
|
|
2470
2473
|
case "insideV":
|
|
2471
|
-
|
|
2474
|
+
C("setInsideTableBorders", t);
|
|
2472
2475
|
return;
|
|
2473
2476
|
case "top":
|
|
2474
2477
|
case "bottom":
|
|
2475
2478
|
case "left":
|
|
2476
2479
|
case "right":
|
|
2477
|
-
|
|
2480
|
+
C("setCellBorder", e, t, !0);
|
|
2478
2481
|
return;
|
|
2479
2482
|
}
|
|
2480
2483
|
}
|
|
2481
|
-
function
|
|
2482
|
-
|
|
2484
|
+
function T(e) {
|
|
2485
|
+
S.color = { rgb: e.replace(/^#/, "") }, C("setTableBorderColor", e);
|
|
2483
2486
|
}
|
|
2484
|
-
function
|
|
2485
|
-
|
|
2487
|
+
function E(e) {
|
|
2488
|
+
S.size = e, C("setTableBorderWidth", e);
|
|
2486
2489
|
}
|
|
2487
|
-
function
|
|
2488
|
-
|
|
2490
|
+
function D(e) {
|
|
2491
|
+
C("setCellFillColor", e);
|
|
2489
2492
|
}
|
|
2490
|
-
let
|
|
2493
|
+
let O = {
|
|
2491
2494
|
autoFit: ["autoFitContents"],
|
|
2492
2495
|
alignTableLeft: ["setTableProperties", { justification: "left" }],
|
|
2493
2496
|
alignTableCenter: ["setTableProperties", { justification: "center" }],
|
|
@@ -2496,54 +2499,57 @@ var We = {
|
|
|
2496
2499
|
verticalAlignMiddle: ["setCellVerticalAlign", "center"],
|
|
2497
2500
|
verticalAlignBottom: ["setCellVerticalAlign", "bottom"]
|
|
2498
2501
|
};
|
|
2499
|
-
function D(e) {
|
|
2500
|
-
if (e === "tableProperties") return;
|
|
2501
|
-
let t = E[e];
|
|
2502
|
-
t ? x(...t) : x(e);
|
|
2503
|
-
}
|
|
2504
|
-
function O(e) {
|
|
2505
|
-
x("setCellMargins", e);
|
|
2506
|
-
}
|
|
2507
2502
|
function k(e) {
|
|
2508
|
-
|
|
2503
|
+
if (e === "tableProperties") {
|
|
2504
|
+
i("open-table-properties");
|
|
2505
|
+
return;
|
|
2506
|
+
}
|
|
2507
|
+
let t = O[e];
|
|
2508
|
+
t ? C(...t) : C(e);
|
|
2509
2509
|
}
|
|
2510
2510
|
function A(e) {
|
|
2511
|
-
|
|
2511
|
+
C("setCellMargins", e);
|
|
2512
|
+
}
|
|
2513
|
+
function M(e) {
|
|
2514
|
+
C("setCellTextDirection", e);
|
|
2515
|
+
}
|
|
2516
|
+
function N(e) {
|
|
2517
|
+
C("setRowHeight", e.height, e.rule);
|
|
2512
2518
|
}
|
|
2513
2519
|
return t({
|
|
2514
|
-
isInTable:
|
|
2515
|
-
canSplit:
|
|
2516
|
-
canMerge:
|
|
2517
|
-
rowCount:
|
|
2518
|
-
columnCount:
|
|
2519
|
-
currentJustification:
|
|
2520
|
-
onBorderPreset:
|
|
2521
|
-
onBorderColor:
|
|
2522
|
-
onBorderWidth:
|
|
2523
|
-
onCellFill:
|
|
2524
|
-
onMoreAction:
|
|
2525
|
-
onCellMargins:
|
|
2526
|
-
onCellTextDirection:
|
|
2527
|
-
onRowHeight:
|
|
2528
|
-
}), (t, n) =>
|
|
2520
|
+
isInTable: d,
|
|
2521
|
+
canSplit: p,
|
|
2522
|
+
canMerge: _,
|
|
2523
|
+
rowCount: v,
|
|
2524
|
+
columnCount: y,
|
|
2525
|
+
currentJustification: x,
|
|
2526
|
+
onBorderPreset: w,
|
|
2527
|
+
onBorderColor: T,
|
|
2528
|
+
onBorderWidth: E,
|
|
2529
|
+
onCellFill: D,
|
|
2530
|
+
onMoreAction: k,
|
|
2531
|
+
onCellMargins: A,
|
|
2532
|
+
onCellTextDirection: M,
|
|
2533
|
+
onRowHeight: N
|
|
2534
|
+
}), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
|
|
2529
2535
|
n[0] ||= u("span", { class: "divider" }, null, -1),
|
|
2530
|
-
f(
|
|
2531
|
-
f(
|
|
2532
|
-
f(
|
|
2533
|
-
f(
|
|
2536
|
+
f(Wt, { onChange: w }),
|
|
2537
|
+
f(Gt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
|
|
2538
|
+
f(Xt, { onChange: E }),
|
|
2539
|
+
f(Zt, {
|
|
2534
2540
|
theme: e.theme ?? null,
|
|
2535
|
-
onChange:
|
|
2541
|
+
onChange: D
|
|
2536
2542
|
}, null, 8, ["theme"]),
|
|
2537
|
-
f(
|
|
2538
|
-
"can-split":
|
|
2539
|
-
"can-merge":
|
|
2540
|
-
"row-count":
|
|
2541
|
-
"column-count":
|
|
2542
|
-
"current-justification":
|
|
2543
|
-
onAction:
|
|
2544
|
-
onCellMargins:
|
|
2545
|
-
onCellTextDirection:
|
|
2546
|
-
onRowHeight:
|
|
2543
|
+
f(jn, {
|
|
2544
|
+
"can-split": p.value,
|
|
2545
|
+
"can-merge": _.value,
|
|
2546
|
+
"row-count": v.value,
|
|
2547
|
+
"column-count": y.value,
|
|
2548
|
+
"current-justification": x.value,
|
|
2549
|
+
onAction: k,
|
|
2550
|
+
onCellMargins: A,
|
|
2551
|
+
onCellTextDirection: M,
|
|
2552
|
+
onRowHeight: N
|
|
2547
2553
|
}, null, 8, [
|
|
2548
2554
|
"can-split",
|
|
2549
2555
|
"can-merge",
|
|
@@ -2553,7 +2559,7 @@ var We = {
|
|
|
2553
2559
|
])
|
|
2554
2560
|
], 64)) : c("", !0);
|
|
2555
2561
|
}
|
|
2556
|
-
}), [["__scopeId", "data-v-
|
|
2562
|
+
}), [["__scopeId", "data-v-c73a7e43"]]), Nn = { class: "docx-vertical-ruler__ticks" }, Pn = 15840, Fn = 1440, In = 1440, Ln = 567, Rn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2557
2563
|
__name: "VerticalRuler",
|
|
2558
2564
|
props: {
|
|
2559
2565
|
sectionProps: {},
|
|
@@ -2568,12 +2574,12 @@ var We = {
|
|
|
2568
2574
|
setup(e, { emit: t }) {
|
|
2569
2575
|
let n = e, r = t, i = S(null), s = S(null);
|
|
2570
2576
|
function d(e) {
|
|
2571
|
-
return
|
|
2577
|
+
return B(e) * n.zoom;
|
|
2572
2578
|
}
|
|
2573
2579
|
function f(e) {
|
|
2574
|
-
return Math.round(
|
|
2580
|
+
return Math.round(z(e / n.zoom));
|
|
2575
2581
|
}
|
|
2576
|
-
let p = o(() => n.sectionProps?.pageHeight ??
|
|
2582
|
+
let p = o(() => n.sectionProps?.pageHeight ?? Pn), m = o(() => n.sectionProps?.marginTop ?? Fn), h = o(() => n.sectionProps?.marginBottom ?? Fn), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
|
|
2577
2583
|
position: "relative",
|
|
2578
2584
|
width: "20px",
|
|
2579
2585
|
height: g.value + "px",
|
|
@@ -2584,7 +2590,7 @@ var We = {
|
|
|
2584
2590
|
})), T = o(() => {
|
|
2585
2591
|
let e = [];
|
|
2586
2592
|
if (n.unit === "inch") {
|
|
2587
|
-
let t =
|
|
2593
|
+
let t = In / 8, n = Math.ceil(p.value / t);
|
|
2588
2594
|
for (let r = 0; r <= n; r++) {
|
|
2589
2595
|
let n = r * t;
|
|
2590
2596
|
if (n > p.value) break;
|
|
@@ -2605,7 +2611,7 @@ var We = {
|
|
|
2605
2611
|
});
|
|
2606
2612
|
}
|
|
2607
2613
|
} else {
|
|
2608
|
-
let t =
|
|
2614
|
+
let t = Ln / 10, n = Math.ceil(p.value / t);
|
|
2609
2615
|
for (let r = 0; r <= n; r++) {
|
|
2610
2616
|
let n = r * t;
|
|
2611
2617
|
if (n > p.value) break;
|
|
@@ -2671,7 +2677,7 @@ var We = {
|
|
|
2671
2677
|
"aria-label": "Vertical ruler",
|
|
2672
2678
|
"aria-orientation": "vertical"
|
|
2673
2679
|
}, [
|
|
2674
|
-
u("div",
|
|
2680
|
+
u("div", Nn, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
2675
2681
|
class: "docx-vertical-ruler__tick-line",
|
|
2676
2682
|
style: _({
|
|
2677
2683
|
top: e.position + "px",
|
|
@@ -2703,10 +2709,10 @@ var We = {
|
|
|
2703
2709
|
}), [["__scopeId", "data-v-f7ccbd38"]]);
|
|
2704
2710
|
//#endregion
|
|
2705
2711
|
//#region src/utils/comments.ts
|
|
2706
|
-
function
|
|
2712
|
+
function zn(e) {
|
|
2707
2713
|
return e?.length ? e.flatMap((e) => e.content.filter((e) => e.type === "run").flatMap((e) => "content" in e ? e.content : []).filter((e) => e.type === "text").map((e) => "text" in e ? e.text : "")).join("") : "";
|
|
2708
2714
|
}
|
|
2709
|
-
function
|
|
2715
|
+
function Bn(e) {
|
|
2710
2716
|
return e ? new Date(e).toLocaleString(void 0, {
|
|
2711
2717
|
hour: "numeric",
|
|
2712
2718
|
minute: "2-digit",
|
|
@@ -2714,10 +2720,10 @@ function Rn(e) {
|
|
|
2714
2720
|
day: "numeric"
|
|
2715
2721
|
}) : "";
|
|
2716
2722
|
}
|
|
2717
|
-
function
|
|
2723
|
+
function Vn(e) {
|
|
2718
2724
|
return e.split(/\s+/).map((e) => e[0]).join("").toUpperCase().slice(0, 2);
|
|
2719
2725
|
}
|
|
2720
|
-
var
|
|
2726
|
+
var Hn = [
|
|
2721
2727
|
"#6DCCB1",
|
|
2722
2728
|
"#79AAD9",
|
|
2723
2729
|
"#EE789D",
|
|
@@ -2731,28 +2737,28 @@ var Bn = [
|
|
|
2731
2737
|
"#E15759",
|
|
2732
2738
|
"#76B7B2"
|
|
2733
2739
|
];
|
|
2734
|
-
function
|
|
2740
|
+
function Un(e) {
|
|
2735
2741
|
let t = 0;
|
|
2736
2742
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
2737
|
-
return
|
|
2743
|
+
return Hn[Math.abs(t) % Hn.length] ?? "#888888";
|
|
2738
2744
|
}
|
|
2739
2745
|
function $(e, t = 50) {
|
|
2740
2746
|
return e.length > t ? e.slice(0, t) + "..." : e;
|
|
2741
2747
|
}
|
|
2742
2748
|
//#endregion
|
|
2743
2749
|
//#region src/components/sidebar/Avatar.vue
|
|
2744
|
-
var
|
|
2750
|
+
var Wn = /* @__PURE__ */ p({
|
|
2745
2751
|
__name: "Avatar",
|
|
2746
2752
|
props: {
|
|
2747
2753
|
name: { default: "U" },
|
|
2748
2754
|
size: { default: 32 }
|
|
2749
2755
|
},
|
|
2750
2756
|
setup(e) {
|
|
2751
|
-
let t = e, n = o(() =>
|
|
2757
|
+
let t = e, n = o(() => Vn(t.name || "U")), r = o(() => ({
|
|
2752
2758
|
width: t.size + "px",
|
|
2753
2759
|
height: t.size + "px",
|
|
2754
2760
|
borderRadius: "50%",
|
|
2755
|
-
backgroundColor:
|
|
2761
|
+
backgroundColor: Un(t.name || "U"),
|
|
2756
2762
|
color: "#fff",
|
|
2757
2763
|
display: "flex",
|
|
2758
2764
|
alignItems: "center",
|
|
@@ -2766,13 +2772,13 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2766
2772
|
style: _(r.value)
|
|
2767
2773
|
}, E(n.value), 5));
|
|
2768
2774
|
}
|
|
2769
|
-
}),
|
|
2775
|
+
}), Gn = {
|
|
2770
2776
|
key: 0,
|
|
2771
2777
|
class: "reply-thread"
|
|
2772
|
-
},
|
|
2778
|
+
}, Kn = {
|
|
2773
2779
|
key: 0,
|
|
2774
2780
|
class: "reply-thread__more"
|
|
2775
|
-
},
|
|
2781
|
+
}, qn = { class: "reply-thread__header" }, Jn = { class: "reply-thread__author-block" }, Yn = { class: "reply-thread__author" }, Xn = { class: "reply-thread__date" }, Zn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2776
2782
|
__name: "ReplyThread",
|
|
2777
2783
|
props: {
|
|
2778
2784
|
replies: {},
|
|
@@ -2780,15 +2786,15 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2780
2786
|
},
|
|
2781
2787
|
setup(e) {
|
|
2782
2788
|
let t = e, n = o(() => t.isExpanded ? t.replies : t.replies.slice(-1)), r = o(() => t.isExpanded ? 0 : Math.max(0, t.replies.length - 1));
|
|
2783
|
-
return (t, i) => e.replies.length > 0 ? (b(), l("div",
|
|
2789
|
+
return (t, i) => e.replies.length > 0 ? (b(), l("div", Gn, [r.value > 0 ? (b(), l("div", Kn, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
|
|
2784
2790
|
key: t.id,
|
|
2785
2791
|
class: g(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
|
|
2786
|
-
}, [u("div",
|
|
2792
|
+
}, [u("div", qn, [f(Wn, {
|
|
2787
2793
|
name: t.author,
|
|
2788
2794
|
size: 28
|
|
2789
|
-
}, null, 8, ["name"]), u("div",
|
|
2795
|
+
}, null, 8, ["name"]), u("div", Jn, [u("div", Yn, E(t.author || "Unknown"), 1), u("div", Xn, E(O(Bn)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, E(O(zn)(t.content)), 3)], 2))), 128))])) : c("", !0);
|
|
2790
2796
|
}
|
|
2791
|
-
}), [["__scopeId", "data-v-06331fac"]]),
|
|
2797
|
+
}), [["__scopeId", "data-v-06331fac"]]), Qn = ["onKeydown"], $n = { class: "reply-input__actions" }, er = ["disabled"], tr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2792
2798
|
__name: "ReplyInput",
|
|
2793
2799
|
emits: ["submit"],
|
|
2794
2800
|
setup(e, { emit: t }) {
|
|
@@ -2820,14 +2826,14 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2820
2826
|
P(F(p, ["prevent"]), ["enter"]),
|
|
2821
2827
|
P(f, ["esc"])
|
|
2822
2828
|
]
|
|
2823
|
-
}, null, 40,
|
|
2829
|
+
}, null, 40, Qn), [[A, i.value]]), u("div", $n, [u("button", {
|
|
2824
2830
|
class: "reply-input__cancel",
|
|
2825
2831
|
onClick: F(f, ["stop"])
|
|
2826
2832
|
}, "Cancel"), u("button", {
|
|
2827
2833
|
class: g(["reply-input__submit", { "reply-input__submit--active": c.value }]),
|
|
2828
2834
|
disabled: !c.value,
|
|
2829
2835
|
onClick: F(p, ["stop"])
|
|
2830
|
-
}, " Reply ", 10,
|
|
2836
|
+
}, " Reply ", 10, er)])], 64)) : (b(), l("input", {
|
|
2831
2837
|
key: 0,
|
|
2832
2838
|
readonly: "",
|
|
2833
2839
|
placeholder: "Reply",
|
|
@@ -2836,13 +2842,13 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2836
2842
|
onClick: F(d, ["stop"])
|
|
2837
2843
|
}, null, 32))], 32));
|
|
2838
2844
|
}
|
|
2839
|
-
}), [["__scopeId", "data-v-fea8646c"]]),
|
|
2845
|
+
}), [["__scopeId", "data-v-fea8646c"]]), nr = ["data-comment-id"], rr = {
|
|
2840
2846
|
key: 0,
|
|
2841
2847
|
class: "comment-card__resolved"
|
|
2842
|
-
},
|
|
2848
|
+
}, ir = { class: "comment-card__head" }, ar = { class: "comment-card__author-block" }, or = { class: "comment-card__author" }, sr = { class: "comment-card__date" }, cr = {
|
|
2843
2849
|
key: 0,
|
|
2844
2850
|
class: "comment-card__actions"
|
|
2845
|
-
},
|
|
2851
|
+
}, lr = ["title"], ur = { class: "comment-card__body" }, dr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2846
2852
|
__name: "CommentCard",
|
|
2847
2853
|
props: {
|
|
2848
2854
|
comment: {},
|
|
@@ -2857,118 +2863,118 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2857
2863
|
"delete"
|
|
2858
2864
|
],
|
|
2859
2865
|
setup(e, { emit: t }) {
|
|
2860
|
-
let
|
|
2866
|
+
let n = e, i = t, a = S(!1);
|
|
2861
2867
|
function o() {
|
|
2862
|
-
a.value = !1, i("delete",
|
|
2868
|
+
a.value = !1, i("delete", n.comment.id);
|
|
2863
2869
|
}
|
|
2864
|
-
return (t,
|
|
2870
|
+
return (t, n) => (b(), l("div", {
|
|
2865
2871
|
class: g(["comment-card", { "comment-card--expanded": e.expanded }]),
|
|
2866
2872
|
"data-comment-id": e.comment.id,
|
|
2867
|
-
onClick:
|
|
2868
|
-
onMousedown:
|
|
2873
|
+
onClick: n[5] ||= (e) => t.$emit("click"),
|
|
2874
|
+
onMousedown: n[6] ||= F(() => {}, ["stop"])
|
|
2869
2875
|
}, [
|
|
2870
|
-
e.comment.done ? (b(), l("div",
|
|
2876
|
+
e.comment.done ? (b(), l("div", rr, [f(r, {
|
|
2871
2877
|
name: "check",
|
|
2872
2878
|
size: 12
|
|
2873
|
-
}),
|
|
2874
|
-
u("div",
|
|
2875
|
-
f(
|
|
2879
|
+
}), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
|
|
2880
|
+
u("div", ir, [
|
|
2881
|
+
f(Wn, {
|
|
2876
2882
|
name: e.comment.author,
|
|
2877
2883
|
size: 32
|
|
2878
2884
|
}, null, 8, ["name"]),
|
|
2879
|
-
u("div",
|
|
2880
|
-
e.expanded ? (b(), l("div",
|
|
2885
|
+
u("div", ar, [u("div", or, E(e.comment.author || "Unknown"), 1), u("div", sr, E(O(Bn)(e.comment.date)), 1)]),
|
|
2886
|
+
e.expanded ? (b(), l("div", cr, [
|
|
2881
2887
|
u("button", {
|
|
2882
2888
|
class: "comment-card__icon-btn",
|
|
2883
2889
|
title: e.comment.done ? "Reopen" : "Resolve",
|
|
2884
|
-
onClick:
|
|
2885
|
-
}, [f(
|
|
2890
|
+
onClick: n[0] ||= F((n) => e.comment.done ? t.$emit("unresolve", e.comment.id) : t.$emit("resolve", e.comment.id), ["stop"])
|
|
2891
|
+
}, [f(r, {
|
|
2886
2892
|
name: e.comment.done ? "undo" : "check",
|
|
2887
2893
|
size: 20
|
|
2888
|
-
}, null, 8, ["name"])], 8,
|
|
2894
|
+
}, null, 8, ["name"])], 8, lr),
|
|
2889
2895
|
u("button", {
|
|
2890
2896
|
class: "comment-card__icon-btn",
|
|
2891
2897
|
title: "More options",
|
|
2892
|
-
onClick:
|
|
2893
|
-
}, [f(
|
|
2898
|
+
onClick: n[1] ||= F((e) => a.value = !a.value, ["stop"])
|
|
2899
|
+
}, [f(r, {
|
|
2894
2900
|
name: "more_vert",
|
|
2895
2901
|
size: 20
|
|
2896
2902
|
})]),
|
|
2897
2903
|
a.value ? (b(), l("div", {
|
|
2898
2904
|
key: 0,
|
|
2899
2905
|
class: "comment-card__menu",
|
|
2900
|
-
onClick:
|
|
2901
|
-
onMousedown:
|
|
2906
|
+
onClick: n[2] ||= F(() => {}, ["stop"]),
|
|
2907
|
+
onMousedown: n[3] ||= F(() => {}, ["stop"])
|
|
2902
2908
|
}, [u("button", {
|
|
2903
2909
|
class: "comment-card__menu-item",
|
|
2904
2910
|
onClick: o
|
|
2905
2911
|
}, "Delete")], 32)) : c("", !0)
|
|
2906
2912
|
])) : c("", !0)
|
|
2907
2913
|
]),
|
|
2908
|
-
u("div",
|
|
2909
|
-
f(
|
|
2914
|
+
u("div", ur, E(O(zn)(e.comment.content)), 1),
|
|
2915
|
+
f(Zn, {
|
|
2910
2916
|
replies: e.replies,
|
|
2911
2917
|
"is-expanded": e.expanded
|
|
2912
2918
|
}, null, 8, ["replies", "is-expanded"]),
|
|
2913
|
-
e.expanded && !e.comment.done ? (b(), s(
|
|
2919
|
+
e.expanded && !e.comment.done ? (b(), s(tr, {
|
|
2914
2920
|
key: 1,
|
|
2915
|
-
onSubmit:
|
|
2921
|
+
onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
|
|
2916
2922
|
})) : c("", !0)
|
|
2917
|
-
], 42,
|
|
2923
|
+
], 42, nr));
|
|
2918
2924
|
}
|
|
2919
|
-
}), [["__scopeId", "data-v-7a3ee7ac"]]),
|
|
2925
|
+
}), [["__scopeId", "data-v-7a3ee7ac"]]), fr = ["data-comment-id"], pr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2920
2926
|
__name: "ResolvedCommentMarker",
|
|
2921
2927
|
props: { comment: {} },
|
|
2922
2928
|
emits: ["toggle-expand"],
|
|
2923
2929
|
setup(e) {
|
|
2924
|
-
return (t,
|
|
2930
|
+
return (t, n) => (b(), l("div", {
|
|
2925
2931
|
class: "resolved-comment-marker",
|
|
2926
2932
|
"data-comment-id": e.comment.id,
|
|
2927
2933
|
"data-comment-resolved": "true",
|
|
2928
|
-
onClick:
|
|
2929
|
-
onMousedown:
|
|
2930
|
-
}, [f(
|
|
2934
|
+
onClick: n[0] ||= (e) => t.$emit("toggle-expand"),
|
|
2935
|
+
onMousedown: n[1] ||= F(() => {}, ["stop"])
|
|
2936
|
+
}, [f(r, {
|
|
2931
2937
|
name: "chat_bubble_check",
|
|
2932
2938
|
size: 20
|
|
2933
|
-
})], 40,
|
|
2939
|
+
})], 40, fr));
|
|
2934
2940
|
}
|
|
2935
|
-
}), [["__scopeId", "data-v-d0c228f6"]]),
|
|
2941
|
+
}), [["__scopeId", "data-v-d0c228f6"]]), mr = { class: "tc-card__head" }, hr = { class: "tc-card__author-block" }, gr = { class: "tc-card__author" }, _r = {
|
|
2936
2942
|
key: 0,
|
|
2937
2943
|
class: "tc-card__date"
|
|
2938
|
-
},
|
|
2944
|
+
}, vr = {
|
|
2939
2945
|
key: 0,
|
|
2940
2946
|
class: "tc-card__actions"
|
|
2941
|
-
},
|
|
2942
|
-
key: 4,
|
|
2943
|
-
class: "tc-card__inserted"
|
|
2944
|
-
}, Er = {
|
|
2947
|
+
}, yr = ["title"], br = ["title"], xr = { class: "tc-card__body" }, Sr = { class: "tc-card__deleted" }, Cr = { class: "tc-card__inserted" }, wr = { class: "tc-card__inserted" }, Tr = { class: "tc-card__deleted" }, Er = { class: "tc-card__changed" }, Dr = { class: "tc-card__changed" }, Or = {
|
|
2945
2948
|
key: 5,
|
|
2946
|
-
class: "tc-card__deleted"
|
|
2947
|
-
}, Dr = {
|
|
2948
|
-
key: 6,
|
|
2949
2949
|
class: "tc-card__inserted"
|
|
2950
|
-
}, Or = {
|
|
2951
|
-
key: 7,
|
|
2952
|
-
class: "tc-card__deleted"
|
|
2953
2950
|
}, kr = {
|
|
2954
|
-
key:
|
|
2955
|
-
class: "tc-
|
|
2951
|
+
key: 6,
|
|
2952
|
+
class: "tc-card__deleted"
|
|
2956
2953
|
}, Ar = {
|
|
2954
|
+
key: 7,
|
|
2955
|
+
class: "tc-card__inserted"
|
|
2956
|
+
}, jr = {
|
|
2957
|
+
key: 8,
|
|
2958
|
+
class: "tc-card__deleted"
|
|
2959
|
+
}, Mr = {
|
|
2957
2960
|
key: 9,
|
|
2958
2961
|
class: "tc-card__changed"
|
|
2959
|
-
},
|
|
2962
|
+
}, Nr = {
|
|
2960
2963
|
key: 10,
|
|
2961
2964
|
class: "tc-card__changed"
|
|
2962
|
-
},
|
|
2965
|
+
}, Pr = {
|
|
2963
2966
|
key: 11,
|
|
2964
2967
|
class: "tc-card__changed"
|
|
2965
|
-
},
|
|
2968
|
+
}, Fr = {
|
|
2966
2969
|
key: 12,
|
|
2967
|
-
class: "tc-
|
|
2968
|
-
},
|
|
2970
|
+
class: "tc-card__changed"
|
|
2971
|
+
}, Ir = {
|
|
2969
2972
|
key: 13,
|
|
2973
|
+
class: "tc-card__inserted"
|
|
2974
|
+
}, Lr = {
|
|
2975
|
+
key: 14,
|
|
2970
2976
|
class: "tc-card__deleted"
|
|
2971
|
-
},
|
|
2977
|
+
}, Rr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2972
2978
|
__name: "TrackedChangeCard",
|
|
2973
2979
|
props: {
|
|
2974
2980
|
change: {},
|
|
@@ -2982,7 +2988,7 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2982
2988
|
"reply"
|
|
2983
2989
|
],
|
|
2984
2990
|
setup(e, { emit: t }) {
|
|
2985
|
-
let { t: i } =
|
|
2991
|
+
let { t: i } = n(), p = e, m = t, h = o(() => p.change.author || i("trackedChanges.unknown"));
|
|
2986
2992
|
function _() {
|
|
2987
2993
|
let e = /* @__PURE__ */ new Set([p.change.revisionId]);
|
|
2988
2994
|
p.change.type === "replacement" && p.change.insertionRevisionId != null && e.add(p.change.insertionRevisionId);
|
|
@@ -2995,50 +3001,50 @@ var Hn = /* @__PURE__ */ p({
|
|
|
2995
3001
|
function y() {
|
|
2996
3002
|
for (let e of _()) m("reject-by-id", e);
|
|
2997
3003
|
}
|
|
2998
|
-
return (t,
|
|
3004
|
+
return (t, n) => (b(), l("div", {
|
|
2999
3005
|
class: g(["tc-card", { "tc-card--expanded": e.expanded }]),
|
|
3000
|
-
onClick:
|
|
3001
|
-
onMousedown:
|
|
3006
|
+
onClick: n[1] ||= (e) => t.$emit("click"),
|
|
3007
|
+
onMousedown: n[2] ||= F(() => {}, ["stop"])
|
|
3002
3008
|
}, [
|
|
3003
|
-
u("div",
|
|
3004
|
-
f(
|
|
3009
|
+
u("div", mr, [
|
|
3010
|
+
f(Wn, {
|
|
3005
3011
|
name: h.value,
|
|
3006
3012
|
size: 32
|
|
3007
3013
|
}, null, 8, ["name"]),
|
|
3008
|
-
u("div",
|
|
3009
|
-
e.expanded ? (b(), l("div",
|
|
3014
|
+
u("div", hr, [u("div", gr, E(h.value), 1), e.change.date ? (b(), l("div", _r, E(O(Bn)(e.change.date)), 1)) : c("", !0)]),
|
|
3015
|
+
e.expanded ? (b(), l("div", vr, [u("button", {
|
|
3010
3016
|
class: "tc-card__icon-btn",
|
|
3011
3017
|
title: O(i)("acceptChange"),
|
|
3012
3018
|
onClick: F(v, ["stop"])
|
|
3013
|
-
}, [f(
|
|
3019
|
+
}, [f(r, {
|
|
3014
3020
|
name: "check",
|
|
3015
3021
|
size: 20
|
|
3016
|
-
})], 8,
|
|
3022
|
+
})], 8, yr), u("button", {
|
|
3017
3023
|
class: "tc-card__icon-btn",
|
|
3018
3024
|
title: O(i)("rejectChange"),
|
|
3019
3025
|
onClick: F(y, ["stop"])
|
|
3020
|
-
}, [f(
|
|
3026
|
+
}, [f(r, {
|
|
3021
3027
|
name: "close",
|
|
3022
3028
|
size: 20
|
|
3023
|
-
})], 8,
|
|
3029
|
+
})], 8, br)])) : c("", !0)
|
|
3024
3030
|
]),
|
|
3025
|
-
u("div",
|
|
3031
|
+
u("div", xr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
|
|
3026
3032
|
d(E(O(i)("trackedChanges.replaced")) + " ", 1),
|
|
3027
|
-
u("span",
|
|
3033
|
+
u("span", Sr, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
|
|
3028
3034
|
d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
|
|
3029
|
-
u("span",
|
|
3030
|
-
], 64)) : e.change.type === "paragraphMarkInsertion" ? (b(), l(a, { key: 1 }, [d(E(O(i)("revisions.paragraphMarkInserted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [
|
|
3031
|
-
f(
|
|
3035
|
+
u("span", Cr, "\"" + E(O($)(e.change.text)) + "\"", 1)
|
|
3036
|
+
], 64)) : e.change.type === "paragraphMarkInsertion" ? (b(), l(a, { key: 1 }, [d(E(O(i)("revisions.paragraphMarkInserted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[3] ||= d(": ", -1), u("span", wr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphMarkDeletion" ? (b(), l(a, { key: 2 }, [d(E(O(i)("revisions.paragraphMarkDeleted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[4] ||= d(": ", -1), u("span", Tr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphPropertiesChanged" ? (b(), l(a, { key: 3 }, [d(E(O(i)("revisions.paragraphPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", Er, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "runPropertiesChanged" ? (b(), l(a, { key: 4 }, [d(E(O(i)("revisions.runPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[6] ||= d(": ", -1), u("span", Dr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Or, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", kr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Ar, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", jr, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Mr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "rowPropertiesChanged" ? (b(), l("span", Nr, E(O(i)("revisions.rowPropertiesChanged")), 1)) : e.change.type === "cellPropertiesChanged" ? (b(), l("span", Pr, E(O(i)("revisions.cellPropertiesChanged")), 1)) : e.change.type === "tablePropertiesChanged" ? (b(), l("span", Fr, E(O(i)("revisions.tablePropertiesChanged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Ir, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Lr, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 15 }, [d(E(e.change.type === "insertion" ? O(i)("inserted") : O(i)("deleted")) + " ", 1), u("span", { class: g(e.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + E(O($)(e.change.text)) + "\" ", 3)], 64))]),
|
|
3037
|
+
f(Zn, {
|
|
3032
3038
|
replies: e.replies,
|
|
3033
3039
|
"is-expanded": e.expanded
|
|
3034
3040
|
}, null, 8, ["replies", "is-expanded"]),
|
|
3035
|
-
e.expanded ? (b(), s(
|
|
3041
|
+
e.expanded ? (b(), s(tr, {
|
|
3036
3042
|
key: 0,
|
|
3037
|
-
onSubmit:
|
|
3043
|
+
onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
|
|
3038
3044
|
})) : c("", !0)
|
|
3039
3045
|
], 34));
|
|
3040
3046
|
}
|
|
3041
|
-
}), [["__scopeId", "data-v-
|
|
3047
|
+
}), [["__scopeId", "data-v-c16b1b1e"]]), zr = ["onKeydown"], Br = { class: "add-comment-card__actions" }, Vr = ["disabled"], Hr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3042
3048
|
__name: "AddCommentCard",
|
|
3043
3049
|
emits: ["submit", "cancel"],
|
|
3044
3050
|
setup(e, { emit: t }) {
|
|
@@ -3067,53 +3073,19 @@ var Hn = /* @__PURE__ */ p({
|
|
|
3067
3073
|
P(F(s, ["exact", "prevent"]), ["enter"]),
|
|
3068
3074
|
P(c, ["esc"])
|
|
3069
3075
|
]
|
|
3070
|
-
}, null, 40,
|
|
3076
|
+
}, null, 40, zr), [[A, r.value]]), u("div", Br, [u("button", {
|
|
3071
3077
|
class: "add-comment-card__cancel",
|
|
3072
3078
|
onClick: c
|
|
3073
3079
|
}, "Cancel"), u("button", {
|
|
3074
3080
|
class: g(["add-comment-card__submit", { "add-comment-card__submit--active": a.value }]),
|
|
3075
3081
|
disabled: !a.value,
|
|
3076
3082
|
onClick: s
|
|
3077
|
-
}, " Comment ", 10,
|
|
3083
|
+
}, " Comment ", 10, Vr)])], 32));
|
|
3078
3084
|
}
|
|
3079
3085
|
}), [["__scopeId", "data-v-2939f9cd"]]);
|
|
3080
3086
|
//#endregion
|
|
3081
|
-
//#region src/components/sidebar/resolveItemPositions.ts
|
|
3082
|
-
function Br(e, t, n, r, i) {
|
|
3083
|
-
if (e.length === 0) return [];
|
|
3084
|
-
let a = [];
|
|
3085
|
-
for (let r of e) {
|
|
3086
|
-
let e;
|
|
3087
|
-
if (r.fixedY != null && (e = r.fixedY * n), e == null && r.anchorKey) {
|
|
3088
|
-
let i = t.get(r.anchorKey);
|
|
3089
|
-
i != null && (e = i * n);
|
|
3090
|
-
}
|
|
3091
|
-
if (e == null) {
|
|
3092
|
-
let t = i.get(r.id);
|
|
3093
|
-
t != null && (e = t);
|
|
3094
|
-
}
|
|
3095
|
-
e != null && (a.push({
|
|
3096
|
-
item: r,
|
|
3097
|
-
targetY: e
|
|
3098
|
-
}), i.set(r.id, e));
|
|
3099
|
-
}
|
|
3100
|
-
a.sort((e, t) => {
|
|
3101
|
-
let n = e.targetY - t.targetY;
|
|
3102
|
-
return n === 0 ? (e.item.priority ?? 0) - (t.item.priority ?? 0) : n;
|
|
3103
|
-
});
|
|
3104
|
-
let o = [], s = 0;
|
|
3105
|
-
for (let e of a) {
|
|
3106
|
-
let t = r.get(e.item.id) ?? e.item.estimatedHeight ?? 80, n = Math.max(e.targetY, s + 8);
|
|
3107
|
-
o.push({
|
|
3108
|
-
item: e.item,
|
|
3109
|
-
y: n
|
|
3110
|
-
}), s = n + t;
|
|
3111
|
-
}
|
|
3112
|
-
return o;
|
|
3113
|
-
}
|
|
3114
|
-
//#endregion
|
|
3115
3087
|
//#region src/composables/useCommentSidebarItems.ts
|
|
3116
|
-
function
|
|
3088
|
+
function Ur({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
|
|
3117
3089
|
return o(() => {
|
|
3118
3090
|
let a = [];
|
|
3119
3091
|
r?.value && i?.value != null && a.push({
|
|
@@ -3156,7 +3128,7 @@ function Vr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment:
|
|
|
3156
3128
|
}
|
|
3157
3129
|
//#endregion
|
|
3158
3130
|
//#region src/components/UnifiedSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
3159
|
-
var
|
|
3131
|
+
var Wr = ["data-card-id"], Gr = 16, Kr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3160
3132
|
__name: "UnifiedSidebar",
|
|
3161
3133
|
props: {
|
|
3162
3134
|
isOpen: { type: Boolean },
|
|
@@ -3196,7 +3168,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3196
3168
|
let t = e.target;
|
|
3197
3169
|
t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") || f.value !== null && (i.value = null, r("update:activeItemId", null));
|
|
3198
3170
|
}
|
|
3199
|
-
let h =
|
|
3171
|
+
let h = Ur({
|
|
3200
3172
|
comments: D(n, "comments"),
|
|
3201
3173
|
trackedChanges: D(n, "trackedChanges"),
|
|
3202
3174
|
showResolved: o(() => n.showResolved ?? !1),
|
|
@@ -3257,7 +3229,14 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3257
3229
|
t && l.set(t, e.offsetHeight);
|
|
3258
3230
|
}
|
|
3259
3231
|
let d = /* @__PURE__ */ new Map();
|
|
3260
|
-
for (let { item:
|
|
3232
|
+
for (let { item: n, y: r } of W({
|
|
3233
|
+
items: t,
|
|
3234
|
+
anchorPositions: s,
|
|
3235
|
+
renderedDomContext: R(e),
|
|
3236
|
+
zoom: 1,
|
|
3237
|
+
cardHeights: l,
|
|
3238
|
+
lastKnown: w
|
|
3239
|
+
})) d.set(n.id, r);
|
|
3261
3240
|
x.value = d, P();
|
|
3262
3241
|
}
|
|
3263
3242
|
let I = o(() => {
|
|
@@ -3276,8 +3255,8 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3276
3255
|
`;
|
|
3277
3256
|
}
|
|
3278
3257
|
return "";
|
|
3279
|
-
}),
|
|
3280
|
-
let e = n.pageWidthPx / 2 +
|
|
3258
|
+
}), z = o(() => {
|
|
3259
|
+
let e = n.pageWidthPx / 2 + Gr - 176, t = x.value.size > 0 || h.value.length === 0;
|
|
3281
3260
|
return {
|
|
3282
3261
|
position: "absolute",
|
|
3283
3262
|
top: "0",
|
|
@@ -3286,7 +3265,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3286
3265
|
opacity: +!!t
|
|
3287
3266
|
};
|
|
3288
3267
|
});
|
|
3289
|
-
function
|
|
3268
|
+
function B(e) {
|
|
3290
3269
|
let t = x.value.get(e);
|
|
3291
3270
|
return t == null ? {
|
|
3292
3271
|
position: "static",
|
|
@@ -3299,10 +3278,10 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3299
3278
|
transition: "top 0.15s ease"
|
|
3300
3279
|
};
|
|
3301
3280
|
}
|
|
3302
|
-
let
|
|
3303
|
-
function
|
|
3304
|
-
|
|
3305
|
-
|
|
3281
|
+
let V = !1;
|
|
3282
|
+
function H() {
|
|
3283
|
+
V || (V = !0, requestAnimationFrame(() => {
|
|
3284
|
+
V = !1, F();
|
|
3306
3285
|
}));
|
|
3307
3286
|
}
|
|
3308
3287
|
j(() => [
|
|
@@ -3313,7 +3292,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3313
3292
|
n.zoom,
|
|
3314
3293
|
n.isAddingComment,
|
|
3315
3294
|
n.addCommentYPosition
|
|
3316
|
-
], () =>
|
|
3295
|
+
], () => H(), { immediate: !0 });
|
|
3317
3296
|
function ee(e) {
|
|
3318
3297
|
let t = e?.parentElement ?? null;
|
|
3319
3298
|
for (; t;) {
|
|
@@ -3323,16 +3302,16 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3323
3302
|
}
|
|
3324
3303
|
return null;
|
|
3325
3304
|
}
|
|
3326
|
-
let
|
|
3327
|
-
function
|
|
3328
|
-
|
|
3305
|
+
let U = null;
|
|
3306
|
+
function G() {
|
|
3307
|
+
U && U.removeEventListener("scroll", H), U = ee(n.pagesContainer), U && U.addEventListener("scroll", H, { passive: !0 });
|
|
3329
3308
|
}
|
|
3330
3309
|
return y(() => {
|
|
3331
|
-
A = new ResizeObserver(() =>
|
|
3310
|
+
A = new ResizeObserver(() => H()), H(), n.pagesContainer && (k = new ResizeObserver(() => H()), k.observe(n.pagesContainer), G());
|
|
3332
3311
|
}), j(() => n.pagesContainer, (e) => {
|
|
3333
|
-
k?.disconnect(), k = null, e && (k = new ResizeObserver(() =>
|
|
3312
|
+
k?.disconnect(), k = null, e && (k = new ResizeObserver(() => H()), k.observe(e), G());
|
|
3334
3313
|
}), v(() => {
|
|
3335
|
-
k?.disconnect(), A?.disconnect(),
|
|
3314
|
+
k?.disconnect(), A?.disconnect(), U && U.removeEventListener("scroll", H);
|
|
3336
3315
|
}), (t, n) => (b(), l(a, null, [L.value ? (b(), s(T("style"), { key: 0 }, {
|
|
3337
3316
|
default: M(() => [d(E(L.value), 1)]),
|
|
3338
3317
|
_: 1
|
|
@@ -3341,7 +3320,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3341
3320
|
ref_key: "rootRef",
|
|
3342
3321
|
ref: g,
|
|
3343
3322
|
class: "unified-sidebar",
|
|
3344
|
-
style: _(
|
|
3323
|
+
style: _(z.value),
|
|
3345
3324
|
onMousedown: m
|
|
3346
3325
|
}, [u("div", {
|
|
3347
3326
|
class: "unified-sidebar__inner",
|
|
@@ -3350,16 +3329,16 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3350
3329
|
key: e.id,
|
|
3351
3330
|
class: "unified-sidebar__card-slot",
|
|
3352
3331
|
"data-card-id": e.id,
|
|
3353
|
-
style: _(
|
|
3354
|
-
}, [e.kind === "add-comment" ? (b(), s(
|
|
3332
|
+
style: _(B(e.id))
|
|
3333
|
+
}, [e.kind === "add-comment" ? (b(), s(Hr, {
|
|
3355
3334
|
key: 0,
|
|
3356
3335
|
onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
|
|
3357
3336
|
onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
|
|
3358
|
-
})) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(
|
|
3337
|
+
})) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(pr, {
|
|
3359
3338
|
key: 1,
|
|
3360
3339
|
comment: e.comment,
|
|
3361
3340
|
onToggleExpand: (t) => p(e.id)
|
|
3362
|
-
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(
|
|
3341
|
+
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(dr, {
|
|
3363
3342
|
key: 2,
|
|
3364
3343
|
comment: e.comment,
|
|
3365
3344
|
replies: e.replies,
|
|
@@ -3374,7 +3353,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3374
3353
|
"replies",
|
|
3375
3354
|
"expanded",
|
|
3376
3355
|
"onClick"
|
|
3377
|
-
])) : e.kind === "tracked-change" ? (b(), s(
|
|
3356
|
+
])) : e.kind === "tracked-change" ? (b(), s(Rr, {
|
|
3378
3357
|
key: 3,
|
|
3379
3358
|
change: e.change,
|
|
3380
3359
|
replies: e.replies ?? [],
|
|
@@ -3390,9 +3369,9 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3390
3369
|
"replies",
|
|
3391
3370
|
"expanded",
|
|
3392
3371
|
"onClick"
|
|
3393
|
-
])) : c("", !0)], 12,
|
|
3372
|
+
])) : c("", !0)], 12, Wr))), 128))], 4)], 36)) : c("", !0)], 64));
|
|
3394
3373
|
}
|
|
3395
|
-
}), [["__scopeId", "data-v-
|
|
3374
|
+
}), [["__scopeId", "data-v-e91a4f24"]]), qr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3396
3375
|
__name: "StylePicker",
|
|
3397
3376
|
props: {
|
|
3398
3377
|
value: {},
|
|
@@ -3451,12 +3430,12 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3451
3430
|
"class"
|
|
3452
3431
|
]));
|
|
3453
3432
|
}
|
|
3454
|
-
}), [["__scopeId", "data-v-06469e2c"]]),
|
|
3433
|
+
}), [["__scopeId", "data-v-06469e2c"]]), Jr = [
|
|
3455
3434
|
"disabled",
|
|
3456
3435
|
"title",
|
|
3457
3436
|
"aria-expanded",
|
|
3458
3437
|
"onClick"
|
|
3459
|
-
],
|
|
3438
|
+
], Yr = { class: "docx-align__panel" }, Xr = ["title", "onClick"], Zr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3460
3439
|
__name: "AlignmentButtons",
|
|
3461
3440
|
props: {
|
|
3462
3441
|
value: { default: "left" },
|
|
@@ -3467,7 +3446,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3467
3446
|
},
|
|
3468
3447
|
emits: ["change"],
|
|
3469
3448
|
setup(e, { emit: t }) {
|
|
3470
|
-
let { Popover:
|
|
3449
|
+
let { Popover: n } = i(), c = e, d = t, p = S(!1), m = [
|
|
3471
3450
|
{
|
|
3472
3451
|
value: "left",
|
|
3473
3452
|
label: "Align left",
|
|
@@ -3496,7 +3475,7 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3496
3475
|
function v(e) {
|
|
3497
3476
|
d("change", e), p.value = !1;
|
|
3498
3477
|
}
|
|
3499
|
-
return (t, i) => (b(), s(O(
|
|
3478
|
+
return (t, i) => (b(), s(O(n), {
|
|
3500
3479
|
open: p.value,
|
|
3501
3480
|
"onUpdate:open": i[0] ||= (e) => p.value = e,
|
|
3502
3481
|
onClose: i[1] ||= (e) => p.value = !1
|
|
@@ -3509,27 +3488,27 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3509
3488
|
"aria-expanded": p.value,
|
|
3510
3489
|
"aria-haspopup": "true",
|
|
3511
3490
|
onClick: F(t, ["prevent"])
|
|
3512
|
-
}, [f(
|
|
3491
|
+
}, [f(r, {
|
|
3513
3492
|
name: h.value,
|
|
3514
3493
|
size: 20
|
|
3515
|
-
}, null, 8, ["name"]), f(
|
|
3494
|
+
}, null, 8, ["name"]), f(r, {
|
|
3516
3495
|
name: "arrow_drop_down",
|
|
3517
3496
|
size: 14
|
|
3518
|
-
})], 10,
|
|
3519
|
-
panel: M(() => [u("div",
|
|
3497
|
+
})], 10, Jr)]),
|
|
3498
|
+
panel: M(() => [u("div", Yr, [(b(), l(a, null, C(m, (t) => u("button", {
|
|
3520
3499
|
key: t.value,
|
|
3521
3500
|
type: "button",
|
|
3522
3501
|
class: g(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
|
|
3523
3502
|
title: `${t.label} (${t.shortcut})`,
|
|
3524
3503
|
onClick: F((e) => v(t.value), ["prevent"])
|
|
3525
|
-
}, [f(
|
|
3504
|
+
}, [f(r, {
|
|
3526
3505
|
name: t.icon,
|
|
3527
3506
|
size: 20
|
|
3528
|
-
}, null, 8, ["name"])], 10,
|
|
3507
|
+
}, null, 8, ["name"])], 10, Xr)), 64))])]),
|
|
3529
3508
|
_: 1
|
|
3530
3509
|
}, 8, ["open"]));
|
|
3531
3510
|
}
|
|
3532
|
-
}), [["__scopeId", "data-v-088792b0"]]),
|
|
3511
|
+
}), [["__scopeId", "data-v-088792b0"]]), Qr = { class: "docx-list-btns" }, $r = ["disabled"], ei = ["disabled"], ti = ["disabled"], ni = ["disabled"], ri = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3533
3512
|
__name: "ListButtons",
|
|
3534
3513
|
props: {
|
|
3535
3514
|
listState: {},
|
|
@@ -3553,48 +3532,48 @@ var Hr = ["data-card-id"], Ur = 16, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3553
3532
|
"outdent"
|
|
3554
3533
|
],
|
|
3555
3534
|
setup(e) {
|
|
3556
|
-
return (t,
|
|
3535
|
+
return (t, n) => (b(), l("span", Qr, [
|
|
3557
3536
|
u("button", {
|
|
3558
3537
|
type: "button",
|
|
3559
3538
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "bullet" }]),
|
|
3560
3539
|
disabled: e.disabled,
|
|
3561
3540
|
title: "Bullet list",
|
|
3562
|
-
onClick:
|
|
3563
|
-
}, [f(
|
|
3541
|
+
onClick: n[0] ||= F((e) => t.$emit("bullet-list"), ["prevent"])
|
|
3542
|
+
}, [f(r, {
|
|
3564
3543
|
name: "format_list_bulleted",
|
|
3565
3544
|
size: 20
|
|
3566
|
-
})], 10,
|
|
3545
|
+
})], 10, $r),
|
|
3567
3546
|
u("button", {
|
|
3568
3547
|
type: "button",
|
|
3569
3548
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "numbered" }]),
|
|
3570
3549
|
disabled: e.disabled,
|
|
3571
3550
|
title: "Numbered list",
|
|
3572
|
-
onClick:
|
|
3573
|
-
}, [f(
|
|
3551
|
+
onClick: n[1] ||= F((e) => t.$emit("numbered-list"), ["prevent"])
|
|
3552
|
+
}, [f(r, {
|
|
3574
3553
|
name: "format_list_numbered",
|
|
3575
3554
|
size: 20
|
|
3576
|
-
})], 10,
|
|
3555
|
+
})], 10, ei),
|
|
3577
3556
|
e.showIndentButtons ? (b(), l(a, { key: 0 }, [u("button", {
|
|
3578
3557
|
type: "button",
|
|
3579
3558
|
class: "docx-list-btns__btn",
|
|
3580
3559
|
disabled: e.disabled || !e.canOutdent,
|
|
3581
3560
|
title: "Decrease indent",
|
|
3582
|
-
onClick:
|
|
3583
|
-
}, [f(
|
|
3561
|
+
onClick: n[2] ||= F((e) => t.$emit("outdent"), ["prevent"])
|
|
3562
|
+
}, [f(r, {
|
|
3584
3563
|
name: "format_indent_decrease",
|
|
3585
3564
|
size: 20
|
|
3586
|
-
})], 8,
|
|
3565
|
+
})], 8, ti), u("button", {
|
|
3587
3566
|
type: "button",
|
|
3588
3567
|
class: "docx-list-btns__btn",
|
|
3589
3568
|
disabled: e.disabled,
|
|
3590
3569
|
title: "Increase indent",
|
|
3591
|
-
onClick:
|
|
3592
|
-
}, [f(
|
|
3570
|
+
onClick: n[3] ||= F((e) => t.$emit("indent"), ["prevent"])
|
|
3571
|
+
}, [f(r, {
|
|
3593
3572
|
name: "format_indent_increase",
|
|
3594
3573
|
size: 20
|
|
3595
|
-
})], 8,
|
|
3574
|
+
})], 8, ni)], 64)) : c("", !0)
|
|
3596
3575
|
]));
|
|
3597
3576
|
}
|
|
3598
3577
|
}), [["__scopeId", "data-v-82fa229d"]]);
|
|
3599
3578
|
//#endregion
|
|
3600
|
-
export {
|
|
3579
|
+
export { ue as C, K as D, te as E, de as S, ie as T, Wt as _, Hr as a, be as b, dr as c, Rn as d, Mn as f, Gt as g, Xt as h, Kr as i, tr as l, Zt as m, Zr as n, Rr as o, jn as p, qr as r, pr as s, ri as t, Zn as u, Bt as v, X as w, fe as x, kt as y };
|