@stll/folio-vue 0.21.2 → 0.22.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-DIWR-Q8d.cjs +4 -0
- package/dist/{ListButtons-FnvTojEG.js → ListButtons-DjLPhg8p.js} +339 -338
- package/dist/{SplitCellDialog-NOmSMMla.cjs → SplitCellDialog-B_z6ynxm.cjs} +2 -2
- package/dist/components/DocxEditor/types.d.ts +2 -0
- package/dist/composables/useCommentManagement.d.ts +2 -0
- package/dist/composables/useDocxEditor.d.ts +2 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +3 -0
- package/dist/composables/usePageSetupControls.d.ts +2 -0
- package/dist/composables/usePagesPointer.d.ts +3 -0
- package/dist/composables/useTransientNotice.d.ts +5 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/folio-vue.css +1 -1
- package/dist/i18n/messages/ar.d.ts +1 -0
- package/dist/i18n/messages/cs.d.ts +1 -0
- package/dist/i18n/messages/de.d.ts +1 -0
- package/dist/i18n/messages/en.d.ts +1 -0
- package/dist/i18n/messages/es.d.ts +1 -0
- package/dist/i18n/messages/et.d.ts +1 -0
- package/dist/i18n/messages/fr.d.ts +1 -0
- package/dist/i18n/messages/he.d.ts +1 -0
- package/dist/i18n/messages/hi.d.ts +1 -0
- package/dist/i18n/messages/hu.d.ts +1 -0
- package/dist/i18n/messages/locales.d.ts +1 -0
- package/dist/i18n/messages/lt.d.ts +1 -0
- package/dist/i18n/messages/lv.d.ts +1 -0
- package/dist/i18n/messages/pl.d.ts +1 -0
- package/dist/i18n/messages/pt-BR.d.ts +1 -0
- package/dist/i18n/messages/sk.d.ts +1 -0
- package/dist/i18n/messages/tr.d.ts +1 -0
- package/dist/i18n/messages/zh-CN.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1406 -1266
- package/dist/messages/ar.cjs +1 -0
- package/dist/messages/ar.js +2 -0
- package/dist/messages/cs.cjs +1 -0
- package/dist/messages/cs.js +2 -0
- package/dist/messages/de.cjs +1 -0
- package/dist/messages/de.js +2 -0
- package/dist/messages/en.cjs +1 -0
- package/dist/messages/en.js +2 -0
- package/dist/messages/es.cjs +1 -0
- package/dist/messages/es.js +2 -0
- package/dist/messages/et.cjs +1 -0
- package/dist/messages/et.js +2 -0
- package/dist/messages/fr.cjs +1 -0
- package/dist/messages/fr.js +2 -0
- package/dist/messages/he.cjs +1 -0
- package/dist/messages/he.js +2 -0
- package/dist/messages/hi.cjs +1 -0
- package/dist/messages/hi.js +2 -0
- package/dist/messages/hu.cjs +1 -0
- package/dist/messages/hu.js +2 -0
- package/dist/messages/locales.cjs +1 -0
- package/dist/messages/locales.js +2 -0
- package/dist/messages/lt.cjs +1 -0
- package/dist/messages/lt.js +2 -0
- package/dist/messages/lv.cjs +1 -0
- package/dist/messages/lv.js +2 -0
- package/dist/messages/pl.cjs +1 -0
- package/dist/messages/pl.js +2 -0
- package/dist/messages/pt-BR.cjs +1 -0
- package/dist/messages/pt-BR.js +2 -0
- package/dist/messages/sk.cjs +1 -0
- package/dist/messages/sk.js +2 -0
- package/dist/messages/tr.cjs +1 -0
- package/dist/messages/tr.js +2 -0
- package/dist/messages/zh-CN.cjs +1 -0
- package/dist/messages/zh-CN.js +2 -0
- package/dist/rolldown-runtime-C6qsp3rV.cjs +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/useZoom-BT2c88KW.cjs +1 -0
- package/dist/useZoom-BycIz5VE.js +842 -0
- package/package.json +7 -2
- package/dist/ListButtons-zX6wbhzG.cjs +0 -4
- package/dist/useZoom-BBc7l-x-.cjs +0 -1
- package/dist/useZoom-z65xujSb.js +0 -799
|
@@ -10,9 +10,10 @@ import { pixelsToTwips as W, twipsToPixels as G } from "@stll/folio-core/utils/u
|
|
|
10
10
|
import { DISPLAY_MODES as K } from "@stll/folio-core/managers/EditorModeManager";
|
|
11
11
|
import { redoDepth as ee, undoDepth as te } from "prosemirror-history";
|
|
12
12
|
import { clearFormatting as q } from "@stll/folio-core/prosemirror/commands/formatting";
|
|
13
|
-
import {
|
|
13
|
+
import { executeEditorCommand as J } from "@stll/folio-core/prosemirror/executeEditorCommand";
|
|
14
|
+
import { resolveSidebarItemPositions as Y } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
|
|
14
15
|
//#region src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
16
|
+
var X = ["title", "onClick"], ne = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
16
17
|
__name: "CommentMarginMarkers",
|
|
17
18
|
props: {
|
|
18
19
|
comments: {},
|
|
@@ -62,12 +63,12 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
62
63
|
}, [f(r, {
|
|
63
64
|
name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
|
|
64
65
|
size: 18
|
|
65
|
-
}, null, 8, ["name"])], 12,
|
|
66
|
+
}, null, 8, ["name"])], 12, X))), 128))], 36)) : c("", !0);
|
|
66
67
|
}
|
|
67
|
-
}), [["__scopeId", "data-v-bf75a017"]]),
|
|
68
|
+
}), [["__scopeId", "data-v-bf75a017"]]), Z = { class: "doc-name" }, re = ["value"], ie = {
|
|
68
69
|
key: 1,
|
|
69
70
|
class: "doc-name__text"
|
|
70
|
-
},
|
|
71
|
+
}, ae = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
71
72
|
__name: "DocumentName",
|
|
72
73
|
props: {
|
|
73
74
|
modelValue: {},
|
|
@@ -89,16 +90,16 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
89
90
|
let t = e.target;
|
|
90
91
|
t instanceof HTMLInputElement && (t.value.trim() || r("update:modelValue", "Untitled document.docx"));
|
|
91
92
|
}
|
|
92
|
-
return (t, n) => (b(), l("div",
|
|
93
|
+
return (t, n) => (b(), l("div", Z, [e.editable ? (b(), l("input", {
|
|
93
94
|
key: 0,
|
|
94
95
|
class: "doc-name__input",
|
|
95
96
|
value: i.value,
|
|
96
97
|
placeholder: "Untitled document",
|
|
97
98
|
onInput: a,
|
|
98
99
|
onBlur: s
|
|
99
|
-
}, null, 40,
|
|
100
|
+
}, null, 40, re)) : (b(), l("span", ie, E(i.value || "Untitled document"), 1))]));
|
|
100
101
|
}
|
|
101
|
-
}), [["__scopeId", "data-v-ae6cb472"]]),
|
|
102
|
+
}), [["__scopeId", "data-v-ae6cb472"]]), oe = ["aria-selected", "onMouseenter"], se = { class: "docx-table-grid-inline__label" }, ce = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
102
103
|
__name: "TableGridInline",
|
|
103
104
|
props: {
|
|
104
105
|
gridRows: { default: 6 },
|
|
@@ -134,15 +135,15 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
134
135
|
i.value = e.r, s.value = e.c;
|
|
135
136
|
},
|
|
136
137
|
onClick: F(d, ["prevent"])
|
|
137
|
-
}, null, 42,
|
|
138
|
+
}, null, 42, oe))), 128))], 36), u("div", se, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
|
|
138
139
|
}
|
|
139
|
-
}), [["__scopeId", "data-v-79c593ca"]]),
|
|
140
|
+
}), [["__scopeId", "data-v-79c593ca"]]), le = {
|
|
140
141
|
class: "menu-bar",
|
|
141
142
|
role: "menubar"
|
|
142
|
-
},
|
|
143
|
+
}, ue = {
|
|
143
144
|
key: 1,
|
|
144
145
|
class: "menu-bar__break-submenu"
|
|
145
|
-
},
|
|
146
|
+
}, de = ["onClick"], fe = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
146
147
|
__name: "MenuBar",
|
|
147
148
|
props: {
|
|
148
149
|
showFileOpen: {
|
|
@@ -238,7 +239,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
238
239
|
label: h("toolbar.reportIssue"),
|
|
239
240
|
onClick: g("reportIssue")
|
|
240
241
|
}]);
|
|
241
|
-
return (t, n) => (b(), l("div",
|
|
242
|
+
return (t, n) => (b(), l("div", le, [
|
|
242
243
|
f(O(d), {
|
|
243
244
|
label: O(h)("toolbar.file"),
|
|
244
245
|
items: _.value
|
|
@@ -251,12 +252,12 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
251
252
|
label: O(h)("toolbar.insert"),
|
|
252
253
|
items: y.value
|
|
253
254
|
}, {
|
|
254
|
-
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(
|
|
255
|
+
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(ce, {
|
|
255
256
|
key: 0,
|
|
256
257
|
onInsert: (e, n) => {
|
|
257
258
|
m("insert-table", e, n), t();
|
|
258
259
|
}
|
|
259
|
-
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div",
|
|
260
|
+
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div", ue, [(b(!0), l(a, null, C(x.value, (e) => (b(), l("button", {
|
|
260
261
|
key: e.action,
|
|
261
262
|
type: "button",
|
|
262
263
|
class: "menu-bar__break-item",
|
|
@@ -266,7 +267,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
266
267
|
}, [f(r, {
|
|
267
268
|
name: e.icon,
|
|
268
269
|
size: 18
|
|
269
|
-
}, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8,
|
|
270
|
+
}, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, de))), 128))])) : c("", !0)]),
|
|
270
271
|
_: 1
|
|
271
272
|
}, 8, ["label", "items"]),
|
|
272
273
|
e.showHelpMenu ? (b(), s(O(d), {
|
|
@@ -276,13 +277,13 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
276
277
|
}, null, 8, ["label", "items"])) : c("", !0)
|
|
277
278
|
]));
|
|
278
279
|
}
|
|
279
|
-
}), [["__scopeId", "data-v-bd3f3f2c"]]),
|
|
280
|
+
}), [["__scopeId", "data-v-bd3f3f2c"]]), pe = [
|
|
280
281
|
"disabled",
|
|
281
282
|
"aria-label",
|
|
282
283
|
"title",
|
|
283
284
|
"aria-expanded",
|
|
284
285
|
"onClick"
|
|
285
|
-
], Q = { class: "docx-icon-grid__panel" },
|
|
286
|
+
], Q = { class: "docx-icon-grid__panel" }, me = ["title", "onClick"], he = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
286
287
|
__name: "IconGridDropdown",
|
|
287
288
|
props: {
|
|
288
289
|
options: {},
|
|
@@ -318,7 +319,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
318
319
|
}, null, 8, ["name"]), f(r, {
|
|
319
320
|
name: "arrow_drop_down",
|
|
320
321
|
size: 14
|
|
321
|
-
})], 10,
|
|
322
|
+
})], 10, pe)]),
|
|
322
323
|
panel: M(() => [u("div", Q, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
|
|
323
324
|
key: t.value,
|
|
324
325
|
type: "button",
|
|
@@ -328,11 +329,11 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
328
329
|
}, [f(r, {
|
|
329
330
|
name: t.iconName,
|
|
330
331
|
size: 18
|
|
331
|
-
}, null, 8, ["name"])], 10,
|
|
332
|
+
}, null, 8, ["name"])], 10, me))), 128))])]),
|
|
332
333
|
_: 1
|
|
333
334
|
}, 8, ["open"]));
|
|
334
335
|
}
|
|
335
|
-
}), [["__scopeId", "data-v-72fa875c"]]),
|
|
336
|
+
}), [["__scopeId", "data-v-72fa875c"]]), ge = /* @__PURE__ */ p({
|
|
336
337
|
__name: "ImageWrapDropdown",
|
|
337
338
|
props: {
|
|
338
339
|
imageContext: {},
|
|
@@ -379,7 +380,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
379
380
|
let e = t.imageContext;
|
|
380
381
|
return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
|
|
381
382
|
}), 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, n) => (b(), s(
|
|
383
|
+
return (t, n) => (b(), s(he, {
|
|
383
384
|
options: a.value,
|
|
384
385
|
"active-value": c.value,
|
|
385
386
|
"trigger-icon": u.value,
|
|
@@ -394,7 +395,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
394
395
|
"disabled"
|
|
395
396
|
]));
|
|
396
397
|
}
|
|
397
|
-
}),
|
|
398
|
+
}), _e = /* @__PURE__ */ p({
|
|
398
399
|
__name: "ImageTransformDropdown",
|
|
399
400
|
props: { disabled: { type: Boolean } },
|
|
400
401
|
emits: ["transform"],
|
|
@@ -425,7 +426,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
425
426
|
label: t(e.labelKey),
|
|
426
427
|
iconName: e.iconName
|
|
427
428
|
})));
|
|
428
|
-
return (n, r) => (b(), s(
|
|
429
|
+
return (n, r) => (b(), s(he, {
|
|
429
430
|
options: i.value,
|
|
430
431
|
"trigger-icon": "rotate_right",
|
|
431
432
|
"tooltip-content": O(t)("imageTransform.tooltip"),
|
|
@@ -437,10 +438,10 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
437
438
|
"disabled"
|
|
438
439
|
]));
|
|
439
440
|
}
|
|
440
|
-
}),
|
|
441
|
+
}), ve = ["title", "onClick"], ye = {
|
|
441
442
|
key: 0,
|
|
442
443
|
class: "editing-mode__label"
|
|
443
|
-
},
|
|
444
|
+
}, be = { class: "editing-mode__panel" }, xe = ["onClick"], Se = { class: "editing-mode__option-text" }, Ce = { class: "editing-mode__option-label" }, we = { class: "editing-mode__option-desc" }, Te = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
444
445
|
__name: "EditingModeDropdown",
|
|
445
446
|
props: { modelValue: {} },
|
|
446
447
|
emits: ["update:modelValue"],
|
|
@@ -493,13 +494,13 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
493
494
|
name: D.value.icon,
|
|
494
495
|
size: 18
|
|
495
496
|
}, null, 8, ["name"]),
|
|
496
|
-
T.value ? c("", !0) : (b(), l("span",
|
|
497
|
+
T.value ? c("", !0) : (b(), l("span", ye, E(O(d)(D.value.labelKey)), 1)),
|
|
497
498
|
f(r, {
|
|
498
499
|
name: "arrow_drop_down",
|
|
499
500
|
size: 16
|
|
500
501
|
})
|
|
501
|
-
], 10,
|
|
502
|
-
panel: M(() => [u("div",
|
|
502
|
+
], 10, ve)]),
|
|
503
|
+
panel: M(() => [u("div", be, [(b(), l(a, null, C(x, (t) => u("button", {
|
|
503
504
|
key: t.value,
|
|
504
505
|
type: "button",
|
|
505
506
|
class: "editing-mode__option",
|
|
@@ -509,23 +510,23 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
509
510
|
name: t.icon,
|
|
510
511
|
size: 20
|
|
511
512
|
}, null, 8, ["name"]),
|
|
512
|
-
u("span",
|
|
513
|
+
u("span", Se, [u("span", Ce, E(O(d)(t.labelKey)), 1), u("span", we, E(O(d)(t.descKey)), 1)]),
|
|
513
514
|
t.value === e.modelValue ? (b(), s(r, {
|
|
514
515
|
key: 0,
|
|
515
516
|
name: "check",
|
|
516
517
|
size: 18,
|
|
517
518
|
class: "editing-mode__check"
|
|
518
519
|
})) : c("", !0)
|
|
519
|
-
], 8,
|
|
520
|
+
], 8, xe)), 64))])]),
|
|
520
521
|
_: 1
|
|
521
522
|
}, 8, ["open"]));
|
|
522
523
|
}
|
|
523
|
-
}), [["__scopeId", "data-v-333d7e96"]]),
|
|
524
|
+
}), [["__scopeId", "data-v-333d7e96"]]), Ee = { class: "review-controls" }, De = [
|
|
524
525
|
"disabled",
|
|
525
526
|
"aria-pressed",
|
|
526
527
|
"aria-label",
|
|
527
528
|
"title"
|
|
528
|
-
],
|
|
529
|
+
], Oe = { class: "review-controls__toggle-label" }, ke = ["title", "onClick"], Ae = { class: "review-controls__display-label" }, je = ["onClick"], Me = { class: "review-controls__option-label" }, Ne = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
529
530
|
__name: "ReviewControls",
|
|
530
531
|
props: {
|
|
531
532
|
trackChangesOn: { type: Boolean },
|
|
@@ -550,7 +551,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
550
551
|
function w(e) {
|
|
551
552
|
h("update:display-mode", e), _.value = !1;
|
|
552
553
|
}
|
|
553
|
-
return (t, n) => (b(), l("div",
|
|
554
|
+
return (t, n) => (b(), l("div", Ee, [u("button", {
|
|
554
555
|
type: "button",
|
|
555
556
|
class: g(["review-controls__toggle", { "review-controls__toggle--on": e.trackChangesOn }]),
|
|
556
557
|
disabled: e.readOnly,
|
|
@@ -562,7 +563,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
562
563
|
}, [f(r, {
|
|
563
564
|
name: "edit_note",
|
|
564
565
|
size: 18
|
|
565
|
-
}), u("span",
|
|
566
|
+
}), u("span", Oe, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, De), f(O(p), {
|
|
566
567
|
open: _.value,
|
|
567
568
|
placement: "bottom-right",
|
|
568
569
|
"onUpdate:open": n[4] ||= (e) => _.value = e,
|
|
@@ -579,12 +580,12 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
579
580
|
name: "visibility",
|
|
580
581
|
size: 16
|
|
581
582
|
}),
|
|
582
|
-
u("span",
|
|
583
|
+
u("span", Ae, E(x.value), 1),
|
|
583
584
|
f(r, {
|
|
584
585
|
name: "arrow_drop_down",
|
|
585
586
|
size: 16
|
|
586
587
|
})
|
|
587
|
-
], 42,
|
|
588
|
+
], 42, ke)]),
|
|
588
589
|
panel: M(() => [u("div", {
|
|
589
590
|
class: "review-controls__panel",
|
|
590
591
|
onMousedown: n[3] ||= F(() => {}, ["prevent"])
|
|
@@ -593,35 +594,35 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
593
594
|
type: "button",
|
|
594
595
|
class: "review-controls__option",
|
|
595
596
|
onClick: F((e) => w(t), ["prevent"])
|
|
596
|
-
}, [u("span",
|
|
597
|
+
}, [u("span", Me, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
|
|
597
598
|
key: 0,
|
|
598
599
|
name: "check",
|
|
599
600
|
size: 18,
|
|
600
601
|
class: "review-controls__check"
|
|
601
|
-
})) : c("", !0)], 8,
|
|
602
|
+
})) : c("", !0)], 8, je))), 128))], 32)]),
|
|
602
603
|
_: 1
|
|
603
604
|
}, 8, ["open"])]));
|
|
604
605
|
}
|
|
605
606
|
}), [["__scopeId", "data-v-e54a1ec7"]]);
|
|
606
607
|
//#endregion
|
|
607
608
|
//#region src/utils/fontOptions.ts
|
|
608
|
-
function
|
|
609
|
+
function Pe(e) {
|
|
609
610
|
if (e === void 0) return;
|
|
610
611
|
let t = e.map((e) => typeof e == "string" ? {
|
|
611
612
|
name: e,
|
|
612
613
|
fontFamily: e,
|
|
613
614
|
category: "other"
|
|
614
615
|
} : e);
|
|
615
|
-
if (
|
|
616
|
+
if (Fe()) {
|
|
616
617
|
let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
617
618
|
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
619
|
}
|
|
619
620
|
return t;
|
|
620
621
|
}
|
|
621
|
-
function
|
|
622
|
+
function Fe() {
|
|
622
623
|
return typeof process < "u" && process.env.NODE_ENV !== "production";
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function Ie(e, t) {
|
|
625
626
|
if (!e || e.length === 0) return [];
|
|
626
627
|
let n = /* @__PURE__ */ new Set();
|
|
627
628
|
for (let e of t) n.add(e.trim().toLowerCase());
|
|
@@ -634,7 +635,7 @@ function Fe(e, t) {
|
|
|
634
635
|
}
|
|
635
636
|
//#endregion
|
|
636
637
|
//#region src/components/Toolbar/presets.ts
|
|
637
|
-
var
|
|
638
|
+
var Le = [
|
|
638
639
|
{
|
|
639
640
|
name: "Arial",
|
|
640
641
|
fontFamily: "Arial",
|
|
@@ -695,7 +696,7 @@ var Ie = [
|
|
|
695
696
|
fontFamily: "Consolas",
|
|
696
697
|
category: "monospace"
|
|
697
698
|
}
|
|
698
|
-
],
|
|
699
|
+
], Re = [
|
|
699
700
|
8,
|
|
700
701
|
9,
|
|
701
702
|
10,
|
|
@@ -710,7 +711,7 @@ var Ie = [
|
|
|
710
711
|
36,
|
|
711
712
|
48,
|
|
712
713
|
72
|
|
713
|
-
],
|
|
714
|
+
], ze = [
|
|
714
715
|
{
|
|
715
716
|
id: "Normal",
|
|
716
717
|
label: "Normal",
|
|
@@ -741,7 +742,7 @@ var Ie = [
|
|
|
741
742
|
label: "Heading 3",
|
|
742
743
|
nameKey: "styles.heading3"
|
|
743
744
|
}
|
|
744
|
-
],
|
|
745
|
+
], Be = [
|
|
745
746
|
{
|
|
746
747
|
label: "Single",
|
|
747
748
|
labelKey: "lineSpacing.single",
|
|
@@ -760,7 +761,7 @@ var Ie = [
|
|
|
760
761
|
labelKey: "lineSpacing.double",
|
|
761
762
|
value: 480
|
|
762
763
|
}
|
|
763
|
-
],
|
|
764
|
+
], Ve = [
|
|
764
765
|
.5,
|
|
765
766
|
.75,
|
|
766
767
|
1,
|
|
@@ -770,7 +771,7 @@ var Ie = [
|
|
|
770
771
|
];
|
|
771
772
|
//#endregion
|
|
772
773
|
//#region src/composables/useToolbarDropdowns.ts
|
|
773
|
-
function
|
|
774
|
+
function He(e) {
|
|
774
775
|
let t = S(null), n = S({
|
|
775
776
|
top: 0,
|
|
776
777
|
left: 0
|
|
@@ -822,7 +823,7 @@ function Ve(e) {
|
|
|
822
823
|
}
|
|
823
824
|
//#endregion
|
|
824
825
|
//#region src/composables/useToolbarFontSize.ts
|
|
825
|
-
function
|
|
826
|
+
function Ue(e) {
|
|
826
827
|
let t = S(!1), n = (t) => e.execCommand("setFontSize", t * 2);
|
|
827
828
|
function r() {
|
|
828
829
|
t.value = !1, e.openDropdown.value = "size", e.recomputeDropdownPos("size");
|
|
@@ -842,11 +843,11 @@ function He(e) {
|
|
|
842
843
|
}
|
|
843
844
|
function s() {
|
|
844
845
|
let t = e.currentFontSize.value;
|
|
845
|
-
n(
|
|
846
|
+
n(Re.find((e) => e > t) || t + 1);
|
|
846
847
|
}
|
|
847
848
|
function c() {
|
|
848
849
|
let t = e.currentFontSize.value;
|
|
849
|
-
n([...
|
|
850
|
+
n([...Re].reverse().find((e) => e < t) || Math.max(1, t - 1));
|
|
850
851
|
}
|
|
851
852
|
return {
|
|
852
853
|
onSizeFocus: r,
|
|
@@ -859,7 +860,7 @@ function He(e) {
|
|
|
859
860
|
}
|
|
860
861
|
//#endregion
|
|
861
862
|
//#region src/utils/stylePreview.ts
|
|
862
|
-
var
|
|
863
|
+
var We = {
|
|
863
864
|
Title: 26,
|
|
864
865
|
Subtitle: 18,
|
|
865
866
|
Heading1: 24,
|
|
@@ -869,22 +870,22 @@ var Ue = {
|
|
|
869
870
|
Heading5: 13,
|
|
870
871
|
Heading6: 13,
|
|
871
872
|
Normal: 14
|
|
872
|
-
},
|
|
873
|
+
}, Ge = /* @__PURE__ */ new Set([
|
|
873
874
|
"Title",
|
|
874
875
|
"Heading1",
|
|
875
876
|
"Heading2",
|
|
876
877
|
"Heading3"
|
|
877
|
-
]),
|
|
878
|
-
function
|
|
879
|
-
let t =
|
|
878
|
+
]), Ke = { Subtitle: "666666" }, qe = "#4a6c8c";
|
|
879
|
+
function Je(e) {
|
|
880
|
+
let t = We[e.styleId], n = {
|
|
880
881
|
fontSize: t ? `${t}px` : `${Math.min(Math.max(e.fontSize ? e.fontSize / 2 : 11, 11), 20)}px`,
|
|
881
882
|
lineHeight: "1.3"
|
|
882
883
|
};
|
|
883
|
-
(e.bold ??
|
|
884
|
-
let r = e.color ??
|
|
885
|
-
return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color =
|
|
884
|
+
(e.bold ?? Ge.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
|
|
885
|
+
let r = e.color ?? Ke[e.styleId];
|
|
886
|
+
return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = qe), n;
|
|
886
887
|
}
|
|
887
|
-
function
|
|
888
|
+
function Ye(e) {
|
|
888
889
|
return !e || e.length === 0 ? [] : e.filter((e) => e.type === "paragraph").filter((e) => e.qFormat ? !0 : !(e.hidden || e.semiHidden)).map((e) => ({
|
|
889
890
|
styleId: e.styleId,
|
|
890
891
|
name: e.name || e.styleId,
|
|
@@ -897,20 +898,20 @@ function Je(e) {
|
|
|
897
898
|
}
|
|
898
899
|
//#endregion
|
|
899
900
|
//#region src/composables/useParagraphStyleOptions.ts
|
|
900
|
-
function
|
|
901
|
+
function Xe(e) {
|
|
901
902
|
let t = o(() => {
|
|
902
|
-
let t =
|
|
903
|
+
let t = Ye(e.documentStyles());
|
|
903
904
|
return t.length > 0 ? t.map((t) => {
|
|
904
|
-
let n =
|
|
905
|
+
let n = ze.find((e) => e.id === t.styleId);
|
|
905
906
|
return {
|
|
906
907
|
id: t.styleId,
|
|
907
908
|
label: n ? e.t(n.nameKey) : t.name,
|
|
908
|
-
previewStyle:
|
|
909
|
+
previewStyle: Je(t)
|
|
909
910
|
};
|
|
910
|
-
}) :
|
|
911
|
+
}) : ze.map((t) => ({
|
|
911
912
|
id: t.id,
|
|
912
913
|
label: e.t(t.nameKey),
|
|
913
|
-
previewStyle:
|
|
914
|
+
previewStyle: Je({ styleId: t.id })
|
|
914
915
|
}));
|
|
915
916
|
});
|
|
916
917
|
return {
|
|
@@ -923,41 +924,41 @@ function Ye(e) {
|
|
|
923
924
|
}
|
|
924
925
|
//#endregion
|
|
925
926
|
//#region src/components/Toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
926
|
-
var
|
|
927
|
+
var Ze = {
|
|
927
928
|
key: 0,
|
|
928
929
|
class: "basic-toolbar"
|
|
929
|
-
},
|
|
930
|
+
}, Qe = [
|
|
930
931
|
"title",
|
|
931
932
|
"aria-label",
|
|
932
933
|
"disabled"
|
|
933
|
-
],
|
|
934
|
+
], $e = [
|
|
934
935
|
"title",
|
|
935
936
|
"aria-label",
|
|
936
937
|
"disabled"
|
|
937
|
-
],
|
|
938
|
+
], et = ["disabled", "title"], tt = ["aria-expanded", "title"], nt = ["disabled", "title"], rt = ["onMousedown"], it = ["aria-expanded", "title"], at = ["onMousedown"], ot = ["aria-expanded", "title"], st = {
|
|
938
939
|
key: 0,
|
|
939
940
|
class: "toolbar-dropdown__group-label"
|
|
940
|
-
},
|
|
941
|
+
}, ct = ["onMousedown"], lt = ["title"], ut = [
|
|
941
942
|
"value",
|
|
942
943
|
"title",
|
|
943
944
|
"aria-expanded"
|
|
944
|
-
],
|
|
945
|
+
], dt = ["title"], ft = ["onMousedown"], pt = ["title", "aria-label"], mt = ["title", "aria-label"], ht = ["title", "aria-label"], gt = ["title", "aria-label"], _t = ["title", "aria-label"], vt = ["title", "aria-label"], yt = ["title", "aria-label"], bt = ["aria-expanded", "title"], xt = ["title"], St = ["title"], Ct = ["title"], wt = ["title"], Tt = ["title", "aria-label"], Et = ["title", "aria-label"], Dt = [
|
|
945
946
|
"title",
|
|
946
947
|
"aria-label",
|
|
947
948
|
"disabled"
|
|
948
|
-
],
|
|
949
|
+
], Ot = ["title", "aria-label"], kt = ["aria-expanded", "title"], At = ["onMousedown"], jt = ["title", "aria-label"], Mt = [
|
|
949
950
|
"title",
|
|
950
951
|
"aria-label",
|
|
951
952
|
"aria-pressed"
|
|
952
|
-
],
|
|
953
|
+
], Nt = [
|
|
953
954
|
"title",
|
|
954
955
|
"aria-label",
|
|
955
956
|
"aria-pressed"
|
|
956
|
-
],
|
|
957
|
+
], Pt = {
|
|
957
958
|
key: 0,
|
|
958
959
|
"data-testid": "toolbar-comments-count",
|
|
959
960
|
class: "basic-toolbar__comment-count"
|
|
960
|
-
},
|
|
961
|
+
}, Ft = ["title", "aria-label"], It = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
961
962
|
__name: "Toolbar",
|
|
962
963
|
props: {
|
|
963
964
|
view: { default: null },
|
|
@@ -1022,7 +1023,7 @@ var Xe = {
|
|
|
1022
1023
|
"image-transform"
|
|
1023
1024
|
],
|
|
1024
1025
|
setup(e, { emit: t }) {
|
|
1025
|
-
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 ??
|
|
1026
|
+
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 ?? Ve), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), R = S(null), B = S(null), { openDropdown: V, dropdownMenuStyle: H, toggleDropdown: U, recomputeDropdownPos: W } = He({
|
|
1026
1027
|
zoom: B,
|
|
1027
1028
|
style: A,
|
|
1028
1029
|
font: j,
|
|
@@ -1047,67 +1048,67 @@ var Xe = {
|
|
|
1047
1048
|
}), K = o(() => {
|
|
1048
1049
|
let e = G.value.textFormatting.fontFamily;
|
|
1049
1050
|
return e?.ascii || e?.hAnsi || "Arial";
|
|
1050
|
-
}),
|
|
1051
|
+
}), Y = o(() => {
|
|
1051
1052
|
let e = G.value.textFormatting.fontSize;
|
|
1052
1053
|
return e ? e / 2 : 11;
|
|
1053
|
-
}),
|
|
1054
|
-
switch (
|
|
1054
|
+
}), X = o(() => G.value.paragraphFormatting.alignment || "left"), ne = o(() => {
|
|
1055
|
+
switch (X.value) {
|
|
1055
1056
|
case "center": return "format_align_center";
|
|
1056
1057
|
case "right": return "format_align_right";
|
|
1057
1058
|
case "both": return "format_align_justify";
|
|
1058
1059
|
default: return "format_align_left";
|
|
1059
1060
|
}
|
|
1060
|
-
}), { resolvedParagraphStyles:
|
|
1061
|
+
}), { resolvedParagraphStyles: Z, currentStyleLabel: re } = Xe({
|
|
1061
1062
|
documentStyles: () => m.documentStyles,
|
|
1062
1063
|
currentStyleId: () => G.value.paragraphFormatting.styleId || "Normal",
|
|
1063
1064
|
t: h
|
|
1064
|
-
}),
|
|
1065
|
+
}), ie = o(() => {
|
|
1065
1066
|
if (m.stateTick, m.canUndo !== void 0) return m.canUndo;
|
|
1066
1067
|
let e = m.view;
|
|
1067
1068
|
return e ? te(e.state) > 0 : !1;
|
|
1068
|
-
}),
|
|
1069
|
+
}), ae = o(() => {
|
|
1069
1070
|
if (m.stateTick, m.canRedo !== void 0) return m.canRedo;
|
|
1070
1071
|
let e = m.view;
|
|
1071
1072
|
return e ? ee(e.state) > 0 : !1;
|
|
1072
|
-
}),
|
|
1073
|
+
}), oe = o(() => {
|
|
1073
1074
|
let e = G.value, t = L(e.listState) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
|
|
1074
1075
|
return t || n;
|
|
1075
|
-
}),
|
|
1076
|
+
}), se = o(() => {
|
|
1076
1077
|
let e = G.value.textFormatting.color?.rgb;
|
|
1077
1078
|
return e ? e.replace(/^#/, "").toUpperCase() : void 0;
|
|
1078
|
-
}),
|
|
1079
|
+
}), ce = o(() => {
|
|
1079
1080
|
let e = G.value.textFormatting.highlight;
|
|
1080
1081
|
if (!(!e || e === "none")) return e.replace(/^#/, "").toUpperCase();
|
|
1081
|
-
}),
|
|
1082
|
+
}), le = o(() => Pe(m.fontFamilies) ?? Le), ue = o(() => Ie(m.documentFonts, le.value.map((e) => e.name))), de = o(() => [
|
|
1082
1083
|
{
|
|
1083
1084
|
label: h("font.documentFonts"),
|
|
1084
|
-
fonts:
|
|
1085
|
+
fonts: ue.value
|
|
1085
1086
|
},
|
|
1086
1087
|
{
|
|
1087
1088
|
label: h("font.sansSerif"),
|
|
1088
|
-
fonts:
|
|
1089
|
+
fonts: le.value.filter((e) => e.category === "sans-serif")
|
|
1089
1090
|
},
|
|
1090
1091
|
{
|
|
1091
1092
|
label: h("font.serif"),
|
|
1092
|
-
fonts:
|
|
1093
|
+
fonts: le.value.filter((e) => e.category === "serif")
|
|
1093
1094
|
},
|
|
1094
1095
|
{
|
|
1095
1096
|
label: h("font.monospace"),
|
|
1096
|
-
fonts:
|
|
1097
|
+
fonts: le.value.filter((e) => e.category === "monospace")
|
|
1097
1098
|
},
|
|
1098
1099
|
{
|
|
1099
1100
|
label: h("font.other"),
|
|
1100
|
-
fonts:
|
|
1101
|
+
fonts: le.value.filter((e) => !e.category || e.category === "other")
|
|
1101
1102
|
}
|
|
1102
1103
|
]);
|
|
1103
|
-
function
|
|
1104
|
+
function fe() {
|
|
1104
1105
|
if (m.onUndo) {
|
|
1105
1106
|
m.onUndo();
|
|
1106
1107
|
return;
|
|
1107
1108
|
}
|
|
1108
1109
|
Q("undo");
|
|
1109
1110
|
}
|
|
1110
|
-
function
|
|
1111
|
+
function pe() {
|
|
1111
1112
|
if (m.onRedo) {
|
|
1112
1113
|
m.onRedo();
|
|
1113
1114
|
return;
|
|
@@ -1122,54 +1123,54 @@ var Xe = {
|
|
|
1122
1123
|
typeof console < "u" && console.warn("[Toolbar] command not found:", e);
|
|
1123
1124
|
return;
|
|
1124
1125
|
}
|
|
1125
|
-
|
|
1126
|
+
J(n, r(...t)), n.hasFocus() || n.focus(), V.value = null;
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
+
function me(e) {
|
|
1128
1129
|
Q("setFontFamily", e);
|
|
1129
1130
|
}
|
|
1130
|
-
let { onSizeFocus:
|
|
1131
|
-
currentFontSize:
|
|
1131
|
+
let { onSizeFocus: he, onSizeInput: ve, commitFontSize: ye, pickFontSize: be, increaseFontSize: xe, decreaseFontSize: Se } = Ue({
|
|
1132
|
+
currentFontSize: Y,
|
|
1132
1133
|
openDropdown: V,
|
|
1133
1134
|
recomputeDropdownPos: W,
|
|
1134
1135
|
execCommand: Q
|
|
1135
1136
|
});
|
|
1136
|
-
function
|
|
1137
|
+
function Ce(e) {
|
|
1137
1138
|
if (typeof e == "object" && e.auto) {
|
|
1138
1139
|
Q("clearTextColor");
|
|
1139
1140
|
return;
|
|
1140
1141
|
}
|
|
1141
1142
|
Q("setTextColor", typeof e == "string" ? { rgb: e } : e);
|
|
1142
1143
|
}
|
|
1143
|
-
function
|
|
1144
|
+
function we() {
|
|
1144
1145
|
let e = m.view;
|
|
1145
|
-
e && (
|
|
1146
|
+
e && (J(e, q), e.hasFocus() || e.focus());
|
|
1146
1147
|
}
|
|
1147
|
-
function
|
|
1148
|
+
function Ee(e) {
|
|
1148
1149
|
Q("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
|
|
1149
1150
|
}
|
|
1150
|
-
function
|
|
1151
|
+
function De(e) {
|
|
1151
1152
|
v("apply-style", e), V.value = null;
|
|
1152
1153
|
}
|
|
1153
|
-
function
|
|
1154
|
+
function Oe(e) {
|
|
1154
1155
|
Q("setLineSpacing", e);
|
|
1155
1156
|
}
|
|
1156
|
-
function
|
|
1157
|
+
function ke(e) {
|
|
1157
1158
|
let t = G.value.paragraphFormatting.lineSpacing;
|
|
1158
1159
|
return t ? Math.abs(t - e) < 10 : e === 240;
|
|
1159
1160
|
}
|
|
1160
|
-
return (t, n) => e.view ? (b(), l("div",
|
|
1161
|
+
return (t, n) => e.view ? (b(), l("div", Ze, [
|
|
1161
1162
|
u("button", {
|
|
1162
1163
|
title: O(h)("undoShortcut"),
|
|
1163
1164
|
"aria-label": O(h)("undo"),
|
|
1164
|
-
disabled: !
|
|
1165
|
-
onMousedown: F(
|
|
1166
|
-
}, [f(r, { name: "undo" })], 40,
|
|
1165
|
+
disabled: !ie.value,
|
|
1166
|
+
onMousedown: F(fe, ["prevent"])
|
|
1167
|
+
}, [f(r, { name: "undo" })], 40, Qe),
|
|
1167
1168
|
u("button", {
|
|
1168
1169
|
title: O(h)("redoShortcut"),
|
|
1169
1170
|
"aria-label": O(h)("redo"),
|
|
1170
|
-
disabled: !
|
|
1171
|
-
onMousedown: F(
|
|
1172
|
-
}, [f(r, { name: "redo" })], 40,
|
|
1171
|
+
disabled: !ae.value,
|
|
1172
|
+
onMousedown: F(pe, ["prevent"])
|
|
1173
|
+
}, [f(r, { name: "redo" })], 40, $e),
|
|
1173
1174
|
n[43] ||= u("span", { class: "divider" }, null, -1),
|
|
1174
1175
|
k.value ? (b(), l("div", {
|
|
1175
1176
|
key: 0,
|
|
@@ -1182,7 +1183,7 @@ var Xe = {
|
|
|
1182
1183
|
onMousedown: n[0] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
|
|
1183
1184
|
disabled: x.value,
|
|
1184
1185
|
title: O(h)("zoom.zoomOut")
|
|
1185
|
-
}, " − ", 40,
|
|
1186
|
+
}, " − ", 40, et),
|
|
1186
1187
|
u("button", {
|
|
1187
1188
|
class: "toolbar-dropdown__trigger zoom-trigger",
|
|
1188
1189
|
onMousedown: n[1] ||= F((e) => O(U)("zoom"), ["prevent"]),
|
|
@@ -1193,13 +1194,13 @@ var Xe = {
|
|
|
1193
1194
|
class: "chevron",
|
|
1194
1195
|
name: "arrow_drop_down",
|
|
1195
1196
|
size: 16
|
|
1196
|
-
})], 40,
|
|
1197
|
+
})], 40, tt),
|
|
1197
1198
|
u("button", {
|
|
1198
1199
|
class: "size-btn",
|
|
1199
1200
|
onMousedown: n[2] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
|
|
1200
1201
|
disabled: T.value,
|
|
1201
1202
|
title: O(h)("zoom.zoomIn")
|
|
1202
|
-
}, " + ", 40,
|
|
1203
|
+
}, " + ", 40, nt),
|
|
1203
1204
|
O(V) === "zoom" ? (b(), l("div", {
|
|
1204
1205
|
key: 0,
|
|
1205
1206
|
style: _(O(H)),
|
|
@@ -1208,7 +1209,7 @@ var Xe = {
|
|
|
1208
1209
|
key: e,
|
|
1209
1210
|
class: g(["toolbar-dropdown__item", { active: y.value === Math.round(e * 100) }]),
|
|
1210
1211
|
onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
|
|
1211
|
-
}, E(Math.round(e * 100)) + "% ", 43,
|
|
1212
|
+
}, E(Math.round(e * 100)) + "% ", 43, rt))), 128))], 4)) : c("", !0)
|
|
1212
1213
|
], 512)) : c("", !0),
|
|
1213
1214
|
n[44] ||= u("span", { class: "divider" }, null, -1),
|
|
1214
1215
|
u("div", {
|
|
@@ -1221,19 +1222,19 @@ var Xe = {
|
|
|
1221
1222
|
"aria-expanded": O(V) === "style",
|
|
1222
1223
|
"aria-haspopup": "listbox",
|
|
1223
1224
|
title: O(h)("styles.selectAriaLabel")
|
|
1224
|
-
}, [d(E(O(
|
|
1225
|
+
}, [d(E(O(re)) + " ", 1), f(r, {
|
|
1225
1226
|
class: "chevron",
|
|
1226
1227
|
name: "arrow_drop_down",
|
|
1227
1228
|
size: 16
|
|
1228
|
-
})], 40,
|
|
1229
|
+
})], 40, it), O(V) === "style" ? (b(), l("div", {
|
|
1229
1230
|
key: 0,
|
|
1230
1231
|
style: _(O(H)),
|
|
1231
1232
|
class: "toolbar-dropdown__menu style-menu"
|
|
1232
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1233
|
+
}, [(b(!0), l(a, null, C(O(Z), (e) => (b(), l("button", {
|
|
1233
1234
|
key: e.id,
|
|
1234
1235
|
class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
|
|
1235
|
-
onMousedown: F((t) =>
|
|
1236
|
-
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42,
|
|
1236
|
+
onMousedown: F((t) => De(e.id), ["prevent"])
|
|
1237
|
+
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, at))), 128))], 4)) : c("", !0)], 512),
|
|
1237
1238
|
n[45] ||= u("span", { class: "divider" }, null, -1),
|
|
1238
1239
|
u("div", {
|
|
1239
1240
|
class: "toolbar-dropdown",
|
|
@@ -1249,16 +1250,16 @@ var Xe = {
|
|
|
1249
1250
|
class: "chevron",
|
|
1250
1251
|
name: "arrow_drop_down",
|
|
1251
1252
|
size: 16
|
|
1252
|
-
})], 40,
|
|
1253
|
+
})], 40, ot), O(V) === "font" ? (b(), l("div", {
|
|
1253
1254
|
key: 0,
|
|
1254
1255
|
style: _(O(H)),
|
|
1255
1256
|
class: "toolbar-dropdown__menu font-menu"
|
|
1256
|
-
}, [(b(!0), l(a, null, C(
|
|
1257
|
+
}, [(b(!0), l(a, null, C(de.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", st, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
|
|
1257
1258
|
key: e.name,
|
|
1258
1259
|
class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
|
|
1259
1260
|
style: _({ fontFamily: e.fontFamily }),
|
|
1260
|
-
onMousedown: F((t) =>
|
|
1261
|
-
}, E(e.name), 47,
|
|
1261
|
+
onMousedown: F((t) => me(e.name), ["prevent"])
|
|
1262
|
+
}, E(e.name), 47, ct))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
|
|
1262
1263
|
u("div", {
|
|
1263
1264
|
class: "toolbar-dropdown font-size-group",
|
|
1264
1265
|
ref_key: "sizeDropdownRef",
|
|
@@ -1266,40 +1267,40 @@ var Xe = {
|
|
|
1266
1267
|
}, [
|
|
1267
1268
|
u("button", {
|
|
1268
1269
|
class: "size-btn",
|
|
1269
|
-
onMousedown: n[5] ||= F((...e) => O(
|
|
1270
|
+
onMousedown: n[5] ||= F((...e) => O(Se) && O(Se)(...e), ["prevent"]),
|
|
1270
1271
|
title: O(h)("decreaseFontSize")
|
|
1271
|
-
}, " − ", 40,
|
|
1272
|
+
}, " − ", 40, lt),
|
|
1272
1273
|
u("input", {
|
|
1273
1274
|
class: "size-trigger size-input",
|
|
1274
1275
|
type: "text",
|
|
1275
|
-
value:
|
|
1276
|
+
value: Y.value,
|
|
1276
1277
|
title: O(h)("fontSize"),
|
|
1277
1278
|
onMousedown: n[6] ||= F(() => {}, ["stop"]),
|
|
1278
|
-
onFocus: n[7] ||= (...e) => O(
|
|
1279
|
+
onFocus: n[7] ||= (...e) => O(he) && O(he)(...e),
|
|
1279
1280
|
"aria-expanded": O(V) === "size",
|
|
1280
1281
|
"aria-haspopup": "listbox",
|
|
1281
|
-
onInput: n[8] ||= (...e) => O(
|
|
1282
|
+
onInput: n[8] ||= (...e) => O(ve) && O(ve)(...e),
|
|
1282
1283
|
onKeydown: [
|
|
1283
|
-
n[9] ||= P(F((e) => O(
|
|
1284
|
-
n[10] ||= P(F((e) => O(
|
|
1285
|
-
n[11] ||= P(F((e) => O(
|
|
1284
|
+
n[9] ||= P(F((e) => O(xe)(), ["prevent", "stop"]), ["up"]),
|
|
1285
|
+
n[10] ||= P(F((e) => O(Se)(), ["prevent", "stop"]), ["down"]),
|
|
1286
|
+
n[11] ||= P(F((e) => O(ye)(e), ["prevent"]), ["enter"])
|
|
1286
1287
|
],
|
|
1287
|
-
onBlur: n[12] ||= (e) => O(
|
|
1288
|
-
}, null, 40,
|
|
1288
|
+
onBlur: n[12] ||= (e) => O(ye)(e)
|
|
1289
|
+
}, null, 40, ut),
|
|
1289
1290
|
u("button", {
|
|
1290
1291
|
class: "size-btn",
|
|
1291
|
-
onMousedown: n[13] ||= F((...e) => O(
|
|
1292
|
+
onMousedown: n[13] ||= F((...e) => O(xe) && O(xe)(...e), ["prevent"]),
|
|
1292
1293
|
title: O(h)("increaseFontSize")
|
|
1293
|
-
}, " + ", 40,
|
|
1294
|
+
}, " + ", 40, dt),
|
|
1294
1295
|
O(V) === "size" ? (b(), l("div", {
|
|
1295
1296
|
key: 0,
|
|
1296
1297
|
style: _(O(H)),
|
|
1297
1298
|
class: "toolbar-dropdown__menu size-menu"
|
|
1298
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1299
|
+
}, [(b(!0), l(a, null, C(O(Re), (e) => (b(), l("button", {
|
|
1299
1300
|
key: e,
|
|
1300
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1301
|
-
onMousedown: F((t) => O(
|
|
1302
|
-
}, E(e), 43,
|
|
1301
|
+
class: g(["toolbar-dropdown__item", { active: Y.value === e }]),
|
|
1302
|
+
onMousedown: F((t) => O(be)(e), ["prevent"])
|
|
1303
|
+
}, E(e), 43, ft))), 128))], 4)) : c("", !0)
|
|
1303
1304
|
], 512),
|
|
1304
1305
|
n[46] ||= u("span", { class: "divider" }, null, -1),
|
|
1305
1306
|
u("button", {
|
|
@@ -1307,54 +1308,54 @@ var Xe = {
|
|
|
1307
1308
|
"aria-label": O(h)("bold"),
|
|
1308
1309
|
class: g({ active: G.value.textFormatting.bold }),
|
|
1309
1310
|
onMousedown: n[14] ||= F((e) => Q("toggleBold"), ["prevent"])
|
|
1310
|
-
}, [f(r, { name: "format_bold" })], 42,
|
|
1311
|
+
}, [f(r, { name: "format_bold" })], 42, pt),
|
|
1311
1312
|
u("button", {
|
|
1312
1313
|
title: O(h)("italicShortcut"),
|
|
1313
1314
|
"aria-label": O(h)("italic"),
|
|
1314
1315
|
class: g({ active: G.value.textFormatting.italic }),
|
|
1315
1316
|
onMousedown: n[15] ||= F((e) => Q("toggleItalic"), ["prevent"])
|
|
1316
|
-
}, [f(r, { name: "format_italic" })], 42,
|
|
1317
|
+
}, [f(r, { name: "format_italic" })], 42, mt),
|
|
1317
1318
|
u("button", {
|
|
1318
1319
|
title: O(h)("underlineShortcut"),
|
|
1319
1320
|
"aria-label": O(h)("underline"),
|
|
1320
1321
|
class: g({ active: !!G.value.textFormatting.underline }),
|
|
1321
1322
|
onMousedown: n[16] ||= F((e) => Q("toggleUnderline"), ["prevent"])
|
|
1322
|
-
}, [f(r, { name: "format_underlined" })], 42,
|
|
1323
|
+
}, [f(r, { name: "format_underlined" })], 42, ht),
|
|
1323
1324
|
u("button", {
|
|
1324
1325
|
title: O(h)("formattingBar.strikethrough"),
|
|
1325
1326
|
"aria-label": O(h)("formattingBar.strikethrough"),
|
|
1326
1327
|
class: g({ active: G.value.textFormatting.strike }),
|
|
1327
1328
|
onMousedown: n[17] ||= F((e) => Q("toggleStrike"), ["prevent"])
|
|
1328
|
-
}, [f(r, { name: "strikethrough_s" })], 42,
|
|
1329
|
+
}, [f(r, { name: "strikethrough_s" })], 42, gt),
|
|
1329
1330
|
f(O(p), {
|
|
1330
1331
|
mode: "text",
|
|
1331
|
-
value:
|
|
1332
|
+
value: se.value,
|
|
1332
1333
|
theme: e.theme ?? null,
|
|
1333
|
-
onChange:
|
|
1334
|
+
onChange: Ce
|
|
1334
1335
|
}, null, 8, ["value", "theme"]),
|
|
1335
1336
|
f(O(p), {
|
|
1336
1337
|
mode: "highlight",
|
|
1337
|
-
value:
|
|
1338
|
+
value: ce.value,
|
|
1338
1339
|
theme: e.theme ?? null,
|
|
1339
|
-
onChange:
|
|
1340
|
+
onChange: Ee
|
|
1340
1341
|
}, null, 8, ["value", "theme"]),
|
|
1341
1342
|
u("button", {
|
|
1342
1343
|
title: O(h)("formattingBar.insertLinkShortcut"),
|
|
1343
1344
|
"aria-label": O(h)("formattingBar.insertLink"),
|
|
1344
1345
|
onMousedown: n[18] ||= F((e) => t.$emit("insert-link"), ["prevent"])
|
|
1345
|
-
}, [f(r, { name: "link" })], 40,
|
|
1346
|
+
}, [f(r, { name: "link" })], 40, _t),
|
|
1346
1347
|
u("button", {
|
|
1347
1348
|
title: O(h)("formattingBar.superscriptShortcut"),
|
|
1348
1349
|
"aria-label": O(h)("formattingBar.superscript"),
|
|
1349
1350
|
class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
|
|
1350
1351
|
onMousedown: n[19] ||= F((e) => Q("toggleSuperscript"), ["prevent"])
|
|
1351
|
-
}, [f(r, { name: "superscript" })], 42,
|
|
1352
|
+
}, [f(r, { name: "superscript" })], 42, vt),
|
|
1352
1353
|
u("button", {
|
|
1353
1354
|
title: O(h)("formattingBar.subscriptShortcut"),
|
|
1354
1355
|
"aria-label": O(h)("formattingBar.subscript"),
|
|
1355
1356
|
class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
|
|
1356
1357
|
onMousedown: n[20] ||= F((e) => Q("toggleSubscript"), ["prevent"])
|
|
1357
|
-
}, [f(r, { name: "subscript" })], 42,
|
|
1358
|
+
}, [f(r, { name: "subscript" })], 42, yt),
|
|
1358
1359
|
n[47] ||= u("span", { class: "divider" }, null, -1),
|
|
1359
1360
|
u("div", {
|
|
1360
1361
|
class: "toolbar-dropdown",
|
|
@@ -1366,17 +1367,17 @@ var Xe = {
|
|
|
1366
1367
|
"aria-expanded": O(V) === "align",
|
|
1367
1368
|
"aria-haspopup": "listbox",
|
|
1368
1369
|
title: O(h)("alignmentGroup")
|
|
1369
|
-
}, [f(r, { name:
|
|
1370
|
+
}, [f(r, { name: ne.value }, null, 8, ["name"]), f(r, {
|
|
1370
1371
|
class: "chevron",
|
|
1371
1372
|
name: "arrow_drop_down",
|
|
1372
1373
|
size: 16
|
|
1373
|
-
})], 40,
|
|
1374
|
+
})], 40, bt), O(V) === "align" ? (b(), l("div", {
|
|
1374
1375
|
key: 0,
|
|
1375
1376
|
style: _(O(H)),
|
|
1376
1377
|
class: "toolbar-dropdown__menu align-strip"
|
|
1377
1378
|
}, [
|
|
1378
1379
|
u("button", {
|
|
1379
|
-
class: g(["align-strip__btn", { active:
|
|
1380
|
+
class: g(["align-strip__btn", { active: X.value === "left" }]),
|
|
1380
1381
|
title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
|
|
1381
1382
|
onMousedown: n[22] ||= F((e) => {
|
|
1382
1383
|
Q("alignLeft"), V.value = null;
|
|
@@ -1384,9 +1385,9 @@ var Xe = {
|
|
|
1384
1385
|
}, [f(r, {
|
|
1385
1386
|
name: "format_align_left",
|
|
1386
1387
|
size: 18
|
|
1387
|
-
})], 42,
|
|
1388
|
+
})], 42, xt),
|
|
1388
1389
|
u("button", {
|
|
1389
|
-
class: g(["align-strip__btn", { active:
|
|
1390
|
+
class: g(["align-strip__btn", { active: X.value === "center" }]),
|
|
1390
1391
|
title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
|
|
1391
1392
|
onMousedown: n[23] ||= F((e) => {
|
|
1392
1393
|
Q("alignCenter"), V.value = null;
|
|
@@ -1394,9 +1395,9 @@ var Xe = {
|
|
|
1394
1395
|
}, [f(r, {
|
|
1395
1396
|
name: "format_align_center",
|
|
1396
1397
|
size: 18
|
|
1397
|
-
})], 42,
|
|
1398
|
+
})], 42, St),
|
|
1398
1399
|
u("button", {
|
|
1399
|
-
class: g(["align-strip__btn", { active:
|
|
1400
|
+
class: g(["align-strip__btn", { active: X.value === "right" }]),
|
|
1400
1401
|
title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
|
|
1401
1402
|
onMousedown: n[24] ||= F((e) => {
|
|
1402
1403
|
Q("alignRight"), V.value = null;
|
|
@@ -1404,9 +1405,9 @@ var Xe = {
|
|
|
1404
1405
|
}, [f(r, {
|
|
1405
1406
|
name: "format_align_right",
|
|
1406
1407
|
size: 18
|
|
1407
|
-
})], 42,
|
|
1408
|
+
})], 42, Ct),
|
|
1408
1409
|
u("button", {
|
|
1409
|
-
class: g(["align-strip__btn", { active:
|
|
1410
|
+
class: g(["align-strip__btn", { active: X.value === "both" }]),
|
|
1410
1411
|
title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
|
|
1411
1412
|
onMousedown: n[25] ||= F((e) => {
|
|
1412
1413
|
Q("alignJustify"), V.value = null;
|
|
@@ -1414,31 +1415,31 @@ var Xe = {
|
|
|
1414
1415
|
}, [f(r, {
|
|
1415
1416
|
name: "format_align_justify",
|
|
1416
1417
|
size: 18
|
|
1417
|
-
})], 42,
|
|
1418
|
+
})], 42, wt)
|
|
1418
1419
|
], 4)) : c("", !0)], 512),
|
|
1419
1420
|
u("button", {
|
|
1420
1421
|
title: O(h)("bulletList"),
|
|
1421
1422
|
"aria-label": O(h)("bulletList"),
|
|
1422
1423
|
class: g({ active: G.value.listState.type === "bullet" }),
|
|
1423
1424
|
onMousedown: n[26] ||= F((e) => Q("toggleBulletList"), ["prevent"])
|
|
1424
|
-
}, [f(r, { name: "format_list_bulleted" })], 42,
|
|
1425
|
+
}, [f(r, { name: "format_list_bulleted" })], 42, Tt),
|
|
1425
1426
|
u("button", {
|
|
1426
1427
|
title: O(h)("numberedList"),
|
|
1427
1428
|
"aria-label": O(h)("numberedList"),
|
|
1428
1429
|
class: g({ active: G.value.listState.type === "numbered" }),
|
|
1429
1430
|
onMousedown: n[27] ||= F((e) => Q("toggleNumberedList"), ["prevent"])
|
|
1430
|
-
}, [f(r, { name: "format_list_numbered" })], 42,
|
|
1431
|
+
}, [f(r, { name: "format_list_numbered" })], 42, Et),
|
|
1431
1432
|
u("button", {
|
|
1432
1433
|
title: O(h)("decreaseIndent"),
|
|
1433
1434
|
"aria-label": O(h)("decreaseIndent"),
|
|
1434
|
-
disabled: !
|
|
1435
|
+
disabled: !oe.value,
|
|
1435
1436
|
onMousedown: n[28] ||= F((e) => Q("outdent"), ["prevent"])
|
|
1436
|
-
}, [f(r, { name: "format_indent_decrease" })], 40,
|
|
1437
|
+
}, [f(r, { name: "format_indent_decrease" })], 40, Dt),
|
|
1437
1438
|
u("button", {
|
|
1438
1439
|
title: O(h)("increaseIndent"),
|
|
1439
1440
|
"aria-label": O(h)("increaseIndent"),
|
|
1440
1441
|
onMousedown: n[29] ||= F((e) => Q("indent"), ["prevent"])
|
|
1441
|
-
}, [f(r, { name: "format_indent_increase" })], 40,
|
|
1442
|
+
}, [f(r, { name: "format_indent_increase" })], 40, Ot),
|
|
1442
1443
|
u("div", {
|
|
1443
1444
|
class: "toolbar-dropdown",
|
|
1444
1445
|
ref_key: "spacingDropdownRef",
|
|
@@ -1453,20 +1454,20 @@ var Xe = {
|
|
|
1453
1454
|
class: "chevron",
|
|
1454
1455
|
name: "arrow_drop_down",
|
|
1455
1456
|
size: 16
|
|
1456
|
-
})], 40,
|
|
1457
|
+
})], 40, kt), O(V) === "spacing" ? (b(), l("div", {
|
|
1457
1458
|
key: 0,
|
|
1458
1459
|
style: _(O(H)),
|
|
1459
1460
|
class: "toolbar-dropdown__menu"
|
|
1460
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1461
|
+
}, [(b(!0), l(a, null, C(O(Be), (e) => (b(), l("button", {
|
|
1461
1462
|
key: e.value,
|
|
1462
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1463
|
-
onMousedown: F((t) =>
|
|
1464
|
-
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43,
|
|
1463
|
+
class: g(["toolbar-dropdown__item", { active: ke(e.value) }]),
|
|
1464
|
+
onMousedown: F((t) => Oe(e.value), ["prevent"])
|
|
1465
|
+
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, At))), 128))], 4)) : c("", !0)], 512),
|
|
1465
1466
|
u("button", {
|
|
1466
1467
|
title: O(h)("formattingBar.clearFormatting"),
|
|
1467
1468
|
"aria-label": O(h)("formattingBar.clearFormatting"),
|
|
1468
|
-
onMousedown: F(
|
|
1469
|
-
}, [f(r, { name: "format_clear" })], 40,
|
|
1469
|
+
onMousedown: F(we, ["prevent"])
|
|
1470
|
+
}, [f(r, { name: "format_clear" })], 40, jt),
|
|
1470
1471
|
n[48] ||= u("span", { class: "divider" }, null, -1),
|
|
1471
1472
|
e.outlineDrawer ? (b(), l("button", {
|
|
1472
1473
|
key: 1,
|
|
@@ -1478,7 +1479,7 @@ var Xe = {
|
|
|
1478
1479
|
class: g({ active: e.outlineDrawerOpen }),
|
|
1479
1480
|
onMousedown: n[31] ||= F(() => {}, ["prevent"]),
|
|
1480
1481
|
onClick: n[32] ||= (e) => t.$emit("toggle-outline")
|
|
1481
|
-
}, [f(r, { name: "format_list_bulleted" })], 42,
|
|
1482
|
+
}, [f(r, { name: "format_list_bulleted" })], 42, Mt)) : c("", !0),
|
|
1482
1483
|
u("button", {
|
|
1483
1484
|
type: "button",
|
|
1484
1485
|
"data-testid": "toolbar-comments-toggle",
|
|
@@ -1488,22 +1489,22 @@ var Xe = {
|
|
|
1488
1489
|
class: g({ active: e.commentsSidebarOpen }),
|
|
1489
1490
|
onMousedown: n[33] ||= F(() => {}, ["prevent"]),
|
|
1490
1491
|
onClick: n[34] ||= (e) => t.$emit("toggle-sidebar")
|
|
1491
|
-
}, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span",
|
|
1492
|
+
}, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span", Pt, E(e.commentCount > 99 ? "99+" : e.commentCount), 1)) : c("", !0)], 42, Nt),
|
|
1492
1493
|
e.imageContext ? (b(), l(a, { key: 2 }, [
|
|
1493
1494
|
n[41] ||= u("span", { class: "divider" }, null, -1),
|
|
1494
|
-
f(
|
|
1495
|
+
f(ge, {
|
|
1495
1496
|
"image-context": e.imageContext,
|
|
1496
1497
|
onChange: n[35] ||= (e) => t.$emit("image-wrap-type", e)
|
|
1497
1498
|
}, null, 8, ["image-context"]),
|
|
1498
|
-
f(
|
|
1499
|
+
f(_e, { onTransform: n[36] ||= (e) => t.$emit("image-transform", e) }),
|
|
1499
1500
|
u("button", {
|
|
1500
1501
|
title: O(h)("formattingBar.imagePropertiesShortcut"),
|
|
1501
1502
|
"aria-label": O(h)("formattingBar.imageProperties"),
|
|
1502
1503
|
onMousedown: n[37] ||= F((e) => t.$emit("image-properties"), ["prevent"])
|
|
1503
|
-
}, [f(r, { name: "tune" })], 40,
|
|
1504
|
+
}, [f(r, { name: "tune" })], 40, Ft)
|
|
1504
1505
|
], 64)) : c("", !0),
|
|
1505
1506
|
w(t.$slots, "table-context", {}, void 0, !0),
|
|
1506
|
-
e.showReviewControls ? (b(), l(a, { key: 3 }, [n[42] ||= u("span", { class: "divider" }, null, -1), f(
|
|
1507
|
+
e.showReviewControls ? (b(), l(a, { key: 3 }, [n[42] ||= u("span", { class: "divider" }, null, -1), f(Ne, {
|
|
1507
1508
|
"track-changes-on": e.trackChangesOn,
|
|
1508
1509
|
"display-mode": e.displayMode,
|
|
1509
1510
|
"read-only": e.readOnly,
|
|
@@ -1515,7 +1516,7 @@ var Xe = {
|
|
|
1515
1516
|
"read-only"
|
|
1516
1517
|
])], 64)) : c("", !0),
|
|
1517
1518
|
n[49] ||= u("span", { class: "divider" }, null, -1),
|
|
1518
|
-
e.editorMode ? (b(), s(
|
|
1519
|
+
e.editorMode ? (b(), s(Te, {
|
|
1519
1520
|
key: 4,
|
|
1520
1521
|
"model-value": e.editorMode,
|
|
1521
1522
|
"onUpdate:modelValue": n[40] ||= (e) => t.$emit("mode-change", e)
|
|
@@ -1523,7 +1524,7 @@ var Xe = {
|
|
|
1523
1524
|
w(t.$slots, "toolbar-extra", {}, void 0, !0)
|
|
1524
1525
|
])) : c("", !0);
|
|
1525
1526
|
}
|
|
1526
|
-
}), [["__scopeId", "data-v-
|
|
1527
|
+
}), [["__scopeId", "data-v-1ad51d76"]]), Lt = ["aria-valuemax"], Rt = { class: "docx-horizontal-ruler__ticks" }, zt = ["title", "onDblclick"], Bt = 12240, Vt = 1440, Ht = 1440, Ut = 567, Wt = "var(--doc-primary)", Gt = "var(--doc-primary)", Kt = "var(--doc-primary-hover)", qt = 5, Jt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1527
1528
|
__name: "HorizontalRuler",
|
|
1528
1529
|
props: {
|
|
1529
1530
|
sectionProps: {},
|
|
@@ -1555,14 +1556,14 @@ var Xe = {
|
|
|
1555
1556
|
"tab-stop-remove"
|
|
1556
1557
|
],
|
|
1557
1558
|
setup(e, { emit: t }) {
|
|
1558
|
-
let n = e, r = t, i = Math.round(
|
|
1559
|
+
let n = e, r = t, i = Math.round(qt * 1.6), s = S(null), d = S(null), f = S(null), p = S(0), m = S("");
|
|
1559
1560
|
function h(e) {
|
|
1560
1561
|
return G(e) * n.zoom;
|
|
1561
1562
|
}
|
|
1562
1563
|
function g(e) {
|
|
1563
1564
|
return Math.round(W(e / n.zoom));
|
|
1564
1565
|
}
|
|
1565
|
-
let y = o(() => n.sectionProps?.pageWidth ??
|
|
1566
|
+
let y = o(() => n.sectionProps?.pageWidth ?? Bt), x = o(() => n.sectionProps?.marginLeft ?? Vt), w = o(() => n.sectionProps?.marginRight ?? Vt), 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(() => ({
|
|
1566
1567
|
position: "relative",
|
|
1567
1568
|
width: D.value + "px",
|
|
1568
1569
|
height: "22px",
|
|
@@ -1593,7 +1594,7 @@ var Xe = {
|
|
|
1593
1594
|
})), V = o(() => {
|
|
1594
1595
|
let e = [];
|
|
1595
1596
|
if (n.unit === "inch") {
|
|
1596
|
-
let t =
|
|
1597
|
+
let t = Ht / 8, n = Math.ceil(y.value / t);
|
|
1597
1598
|
for (let r = 0; r <= n; r++) {
|
|
1598
1599
|
let n = r * t;
|
|
1599
1600
|
if (n > y.value) break;
|
|
@@ -1614,7 +1615,7 @@ var Xe = {
|
|
|
1614
1615
|
});
|
|
1615
1616
|
}
|
|
1616
1617
|
} else {
|
|
1617
|
-
let t =
|
|
1618
|
+
let t = Ut / 10, n = Math.ceil(y.value / t);
|
|
1618
1619
|
for (let r = 0; r <= n; r++) {
|
|
1619
1620
|
let n = r * t;
|
|
1620
1621
|
if (n > y.value) break;
|
|
@@ -1642,15 +1643,15 @@ var Xe = {
|
|
|
1642
1643
|
};
|
|
1643
1644
|
}) : []);
|
|
1644
1645
|
function U(e) {
|
|
1645
|
-
return n.unit === "cm" ? (e /
|
|
1646
|
+
return n.unit === "cm" ? (e / Ut).toFixed(1) + " cm" : (e / Ht).toFixed(2) + "\"";
|
|
1646
1647
|
}
|
|
1647
1648
|
function K(e) {
|
|
1648
|
-
return d.value === e ?
|
|
1649
|
+
return d.value === e ? Kt : f.value === e ? Gt : Wt;
|
|
1649
1650
|
}
|
|
1650
1651
|
function ee(e, t, r) {
|
|
1651
1652
|
return {
|
|
1652
1653
|
position: "absolute",
|
|
1653
|
-
left: t -
|
|
1654
|
+
left: t - qt + "px",
|
|
1654
1655
|
width: "10px",
|
|
1655
1656
|
height: "10px",
|
|
1656
1657
|
cursor: n.editable ? "ew-resize" : "default",
|
|
@@ -1665,8 +1666,8 @@ var Xe = {
|
|
|
1665
1666
|
left: 0,
|
|
1666
1667
|
width: 0,
|
|
1667
1668
|
height: 0,
|
|
1668
|
-
borderLeft: `${
|
|
1669
|
-
borderRight: `${
|
|
1669
|
+
borderLeft: `${qt}px solid transparent`,
|
|
1670
|
+
borderRight: `${qt}px solid transparent`,
|
|
1670
1671
|
borderTop: `${i}px solid ${t}`,
|
|
1671
1672
|
transition: "border-top-color 0.1s"
|
|
1672
1673
|
} : {
|
|
@@ -1675,8 +1676,8 @@ var Xe = {
|
|
|
1675
1676
|
left: 0,
|
|
1676
1677
|
width: 0,
|
|
1677
1678
|
height: 0,
|
|
1678
|
-
borderLeft: `${
|
|
1679
|
-
borderRight: `${
|
|
1679
|
+
borderLeft: `${qt}px solid transparent`,
|
|
1680
|
+
borderRight: `${qt}px solid transparent`,
|
|
1680
1681
|
borderBottom: `${i}px solid ${t}`,
|
|
1681
1682
|
transition: "border-bottom-color 0.1s"
|
|
1682
1683
|
};
|
|
@@ -1758,7 +1759,7 @@ var Xe = {
|
|
|
1758
1759
|
style: _(B.value),
|
|
1759
1760
|
onMousedown: n[1] ||= F((t) => e.editable ? J("rightMargin", t) : null, ["prevent", "stop"])
|
|
1760
1761
|
}, null, 36),
|
|
1761
|
-
u("div",
|
|
1762
|
+
u("div", Rt, [(b(!0), l(a, null, C(V.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
1762
1763
|
class: "docx-horizontal-ruler__tick-line",
|
|
1763
1764
|
style: _({
|
|
1764
1765
|
left: e.position + "px",
|
|
@@ -1799,15 +1800,15 @@ var Xe = {
|
|
|
1799
1800
|
style: _({ left: e.px + "px" }),
|
|
1800
1801
|
title: `${e.label}`,
|
|
1801
1802
|
onDblclick: F((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
|
|
1802
|
-
}, " L ", 44,
|
|
1803
|
+
}, " L ", 44, zt))), 128)),
|
|
1803
1804
|
d.value && m.value ? (b(), l("div", {
|
|
1804
1805
|
key: 3,
|
|
1805
1806
|
class: "docx-horizontal-ruler__tooltip",
|
|
1806
1807
|
style: _({ left: p.value + "px" })
|
|
1807
1808
|
}, E(m.value), 5)) : c("", !0)
|
|
1808
|
-
], 12,
|
|
1809
|
+
], 12, Lt));
|
|
1809
1810
|
}
|
|
1810
|
-
}), [["__scopeId", "data-v-6f3ea48c"]]),
|
|
1811
|
+
}), [["__scopeId", "data-v-6f3ea48c"]]), Yt = ["disabled", "onClick"], Xt = { class: "docx-tbp__panel" }, Zt = ["title", "onClick"], Qt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1811
1812
|
__name: "TableBorderPicker",
|
|
1812
1813
|
props: { disabled: { type: Boolean } },
|
|
1813
1814
|
emits: ["change"],
|
|
@@ -1881,8 +1882,8 @@ var Xe = {
|
|
|
1881
1882
|
}, [f(r, {
|
|
1882
1883
|
name: "border_all",
|
|
1883
1884
|
size: 20
|
|
1884
|
-
})], 8,
|
|
1885
|
-
panel: M(() => [u("div",
|
|
1885
|
+
})], 8, Yt)]),
|
|
1886
|
+
panel: M(() => [u("div", Xt, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1886
1887
|
key: e.value,
|
|
1887
1888
|
type: "button",
|
|
1888
1889
|
class: "docx-tbp__option",
|
|
@@ -1891,11 +1892,11 @@ var Xe = {
|
|
|
1891
1892
|
}, [f(r, {
|
|
1892
1893
|
name: e.icon,
|
|
1893
1894
|
size: 20
|
|
1894
|
-
}, null, 8, ["name"])], 8,
|
|
1895
|
+
}, null, 8, ["name"])], 8, Zt)), 64))])]),
|
|
1895
1896
|
_: 1
|
|
1896
1897
|
}, 8, ["open"]));
|
|
1897
1898
|
}
|
|
1898
|
-
}), [["__scopeId", "data-v-4e30a014"]]),
|
|
1899
|
+
}), [["__scopeId", "data-v-4e30a014"]]), $t = /* @__PURE__ */ p({
|
|
1899
1900
|
__name: "TableBorderColorPicker",
|
|
1900
1901
|
props: {
|
|
1901
1902
|
disabled: { type: Boolean },
|
|
@@ -1922,7 +1923,7 @@ var Xe = {
|
|
|
1922
1923
|
"title"
|
|
1923
1924
|
]));
|
|
1924
1925
|
}
|
|
1925
|
-
}),
|
|
1926
|
+
}), en = ["disabled", "onClick"], tn = { class: "docx-tbwidth__panel" }, nn = ["onClick"], rn = { class: "docx-tbwidth__label" }, an = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1926
1927
|
__name: "TableBorderWidthPicker",
|
|
1927
1928
|
props: { disabled: { type: Boolean } },
|
|
1928
1929
|
emits: ["change"],
|
|
@@ -1986,8 +1987,8 @@ var Xe = {
|
|
|
1986
1987
|
}, [f(r, {
|
|
1987
1988
|
name: "line_weight",
|
|
1988
1989
|
size: 20
|
|
1989
|
-
})], 8,
|
|
1990
|
-
panel: M(() => [u("div",
|
|
1990
|
+
})], 8, en)]),
|
|
1991
|
+
panel: M(() => [u("div", tn, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1991
1992
|
key: e.eighths,
|
|
1992
1993
|
type: "button",
|
|
1993
1994
|
class: "docx-tbwidth__option",
|
|
@@ -1995,11 +1996,11 @@ var Xe = {
|
|
|
1995
1996
|
}, [u("span", {
|
|
1996
1997
|
class: "docx-tbwidth__preview",
|
|
1997
1998
|
style: _({ borderTopWidth: e.previewPx + "px" })
|
|
1998
|
-
}, null, 4), u("span",
|
|
1999
|
+
}, null, 4), u("span", rn, E(e.label), 1)], 8, nn)), 64))])]),
|
|
1999
2000
|
_: 1
|
|
2000
2001
|
}, 8, ["open"]));
|
|
2001
2002
|
}
|
|
2002
|
-
}), [["__scopeId", "data-v-42a746ba"]]),
|
|
2003
|
+
}), [["__scopeId", "data-v-42a746ba"]]), on = /* @__PURE__ */ p({
|
|
2003
2004
|
__name: "TableCellFillPicker",
|
|
2004
2005
|
props: {
|
|
2005
2006
|
disabled: { type: Boolean },
|
|
@@ -2029,23 +2030,23 @@ var Xe = {
|
|
|
2029
2030
|
"auto-label"
|
|
2030
2031
|
]));
|
|
2031
2032
|
}
|
|
2032
|
-
}),
|
|
2033
|
+
}), sn = [
|
|
2033
2034
|
"disabled",
|
|
2034
2035
|
"title",
|
|
2035
2036
|
"onClick"
|
|
2036
|
-
],
|
|
2037
|
+
], cn = ["aria-label"], ln = ["disabled"], un = ["disabled"], dn = ["disabled"], fn = ["disabled"], pn = { class: "docx-tmore__section-label" }, mn = { class: "docx-tmore__icon-row" }, hn = ["title"], gn = ["title"], _n = ["title"], vn = { class: "docx-tmore__section-label" }, yn = { class: "docx-tmore__icon-row" }, bn = ["title"], xn = ["title"], Sn = ["title"], Cn = { class: "docx-tmore__grow" }, wn = {
|
|
2037
2038
|
key: 0,
|
|
2038
2039
|
class: "docx-tmore__sub"
|
|
2039
|
-
},
|
|
2040
|
+
}, Tn = { class: "docx-tmore__margin-grid" }, En = { class: "docx-tmore__field-label" }, Dn = ["onUpdate:modelValue"], On = { class: "docx-tmore__grow" }, kn = {
|
|
2040
2041
|
key: 1,
|
|
2041
2042
|
class: "docx-tmore__sub"
|
|
2042
|
-
},
|
|
2043
|
+
}, An = { class: "docx-tmore__row-field" }, jn = { class: "docx-tmore__field-label" }, Mn = { value: "auto" }, Nn = { value: "atLeast" }, Pn = { value: "exact" }, Fn = {
|
|
2043
2044
|
key: 0,
|
|
2044
2045
|
class: "docx-tmore__row-field"
|
|
2045
|
-
},
|
|
2046
|
+
}, In = { class: "docx-tmore__field-label" }, Ln = { class: "docx-tmore__grow" }, Rn = {
|
|
2046
2047
|
key: 2,
|
|
2047
2048
|
class: "docx-tmore__sub docx-tmore__sub--list"
|
|
2048
|
-
},
|
|
2049
|
+
}, zn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2049
2050
|
__name: "TableMoreDropdown",
|
|
2050
2051
|
props: {
|
|
2051
2052
|
disabled: {
|
|
@@ -2123,7 +2124,7 @@ var Xe = {
|
|
|
2123
2124
|
}, [f(r, {
|
|
2124
2125
|
name: "more_vert",
|
|
2125
2126
|
size: 20
|
|
2126
|
-
})], 10,
|
|
2127
|
+
})], 10, sn)]),
|
|
2127
2128
|
panel: M(() => [u("div", {
|
|
2128
2129
|
class: "docx-tmore__panel",
|
|
2129
2130
|
role: "menu",
|
|
@@ -2170,7 +2171,7 @@ var Xe = {
|
|
|
2170
2171
|
}, [f(r, {
|
|
2171
2172
|
name: "call_merge",
|
|
2172
2173
|
size: 18
|
|
2173
|
-
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8,
|
|
2174
|
+
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, ln),
|
|
2174
2175
|
u("button", {
|
|
2175
2176
|
type: "button",
|
|
2176
2177
|
class: "docx-tmore__item",
|
|
@@ -2179,7 +2180,7 @@ var Xe = {
|
|
|
2179
2180
|
}, [f(r, {
|
|
2180
2181
|
name: "call_split",
|
|
2181
2182
|
size: 18
|
|
2182
|
-
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8,
|
|
2183
|
+
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8, un),
|
|
2183
2184
|
n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2184
2185
|
u("button", {
|
|
2185
2186
|
type: "button",
|
|
@@ -2198,7 +2199,7 @@ var Xe = {
|
|
|
2198
2199
|
}, [f(r, {
|
|
2199
2200
|
name: "delete",
|
|
2200
2201
|
size: 18
|
|
2201
|
-
}), u("span", null, E(O(m)("deleteRow")), 1)], 8,
|
|
2202
|
+
}), u("span", null, E(O(m)("deleteRow")), 1)], 8, dn),
|
|
2202
2203
|
u("button", {
|
|
2203
2204
|
type: "button",
|
|
2204
2205
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
@@ -2207,7 +2208,7 @@ var Xe = {
|
|
|
2207
2208
|
}, [f(r, {
|
|
2208
2209
|
name: "delete",
|
|
2209
2210
|
size: 18
|
|
2210
|
-
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8,
|
|
2211
|
+
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8, fn),
|
|
2211
2212
|
u("button", {
|
|
2212
2213
|
type: "button",
|
|
2213
2214
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
@@ -2217,8 +2218,8 @@ var Xe = {
|
|
|
2217
2218
|
size: 18
|
|
2218
2219
|
}), u("span", null, E(O(m)("table.deleteTable")), 1)]),
|
|
2219
2220
|
n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2220
|
-
u("div",
|
|
2221
|
-
u("div",
|
|
2221
|
+
u("div", pn, E(O(m)("tableAdvanced.verticalAlignment")), 1),
|
|
2222
|
+
u("div", mn, [
|
|
2222
2223
|
u("button", {
|
|
2223
2224
|
type: "button",
|
|
2224
2225
|
class: "docx-tmore__icon-btn",
|
|
@@ -2228,7 +2229,7 @@ var Xe = {
|
|
|
2228
2229
|
}, [f(r, {
|
|
2229
2230
|
name: "vertical_align_top",
|
|
2230
2231
|
size: 16
|
|
2231
|
-
})], 40,
|
|
2232
|
+
})], 40, hn),
|
|
2232
2233
|
u("button", {
|
|
2233
2234
|
type: "button",
|
|
2234
2235
|
class: "docx-tmore__icon-btn",
|
|
@@ -2238,7 +2239,7 @@ var Xe = {
|
|
|
2238
2239
|
}, [f(r, {
|
|
2239
2240
|
name: "vertical_align_center",
|
|
2240
2241
|
size: 16
|
|
2241
|
-
})], 40,
|
|
2242
|
+
})], 40, gn),
|
|
2242
2243
|
u("button", {
|
|
2243
2244
|
type: "button",
|
|
2244
2245
|
class: "docx-tmore__icon-btn",
|
|
@@ -2248,11 +2249,11 @@ var Xe = {
|
|
|
2248
2249
|
}, [f(r, {
|
|
2249
2250
|
name: "vertical_align_bottom",
|
|
2250
2251
|
size: 16
|
|
2251
|
-
})], 40,
|
|
2252
|
+
})], 40, _n)
|
|
2252
2253
|
]),
|
|
2253
2254
|
n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2254
|
-
u("div",
|
|
2255
|
-
u("div",
|
|
2255
|
+
u("div", vn, E(O(m)("tableAdvanced.tableAlignment")), 1),
|
|
2256
|
+
u("div", yn, [
|
|
2256
2257
|
u("button", {
|
|
2257
2258
|
type: "button",
|
|
2258
2259
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
|
|
@@ -2262,7 +2263,7 @@ var Xe = {
|
|
|
2262
2263
|
}, [f(r, {
|
|
2263
2264
|
name: "format_align_left",
|
|
2264
2265
|
size: 16
|
|
2265
|
-
})], 42,
|
|
2266
|
+
})], 42, bn),
|
|
2266
2267
|
u("button", {
|
|
2267
2268
|
type: "button",
|
|
2268
2269
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
|
|
@@ -2272,7 +2273,7 @@ var Xe = {
|
|
|
2272
2273
|
}, [f(r, {
|
|
2273
2274
|
name: "format_align_center",
|
|
2274
2275
|
size: 16
|
|
2275
|
-
})], 42,
|
|
2276
|
+
})], 42, xn),
|
|
2276
2277
|
u("button", {
|
|
2277
2278
|
type: "button",
|
|
2278
2279
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
|
|
@@ -2282,7 +2283,7 @@ var Xe = {
|
|
|
2282
2283
|
}, [f(r, {
|
|
2283
2284
|
name: "format_align_right",
|
|
2284
2285
|
size: 16
|
|
2285
|
-
})], 42,
|
|
2286
|
+
})], 42, Sn)
|
|
2286
2287
|
]),
|
|
2287
2288
|
n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2288
2289
|
u("button", {
|
|
@@ -2294,13 +2295,13 @@ var Xe = {
|
|
|
2294
2295
|
name: "padding",
|
|
2295
2296
|
size: 18
|
|
2296
2297
|
}),
|
|
2297
|
-
u("span",
|
|
2298
|
+
u("span", Cn, E(O(m)("tableAdvanced.cellMargins")), 1),
|
|
2298
2299
|
f(r, {
|
|
2299
2300
|
name: _.value ? "expand_less" : "expand_more",
|
|
2300
2301
|
size: 18
|
|
2301
2302
|
}, null, 8, ["name"])
|
|
2302
2303
|
]),
|
|
2303
|
-
_.value ? (b(), l("div",
|
|
2304
|
+
_.value ? (b(), l("div", wn, [u("div", Tn, [(b(), l(a, null, C([
|
|
2304
2305
|
"top",
|
|
2305
2306
|
"bottom",
|
|
2306
2307
|
"left",
|
|
@@ -2309,14 +2310,14 @@ var Xe = {
|
|
|
2309
2310
|
key: e,
|
|
2310
2311
|
class: "docx-tmore__field"
|
|
2311
2312
|
}, [
|
|
2312
|
-
u("span",
|
|
2313
|
+
u("span", En, E(e), 1),
|
|
2313
2314
|
N(u("input", {
|
|
2314
2315
|
type: "number",
|
|
2315
2316
|
min: "0",
|
|
2316
2317
|
step: "20",
|
|
2317
2318
|
"onUpdate:modelValue": (t) => w[e] = t,
|
|
2318
2319
|
class: "docx-tmore__input"
|
|
2319
|
-
}, null, 8,
|
|
2320
|
+
}, null, 8, Dn), [[
|
|
2320
2321
|
A,
|
|
2321
2322
|
w[e],
|
|
2322
2323
|
void 0,
|
|
@@ -2337,23 +2338,23 @@ var Xe = {
|
|
|
2337
2338
|
name: "height",
|
|
2338
2339
|
size: 18
|
|
2339
2340
|
}),
|
|
2340
|
-
u("span",
|
|
2341
|
+
u("span", On, E(O(m)("tableAdvanced.rowHeight")), 1),
|
|
2341
2342
|
f(r, {
|
|
2342
2343
|
name: v.value ? "expand_less" : "expand_more",
|
|
2343
2344
|
size: 18
|
|
2344
2345
|
}, null, 8, ["name"])
|
|
2345
2346
|
]),
|
|
2346
|
-
v.value ? (b(), l("div",
|
|
2347
|
-
u("label",
|
|
2347
|
+
v.value ? (b(), l("div", kn, [
|
|
2348
|
+
u("label", An, [u("span", jn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
|
|
2348
2349
|
"onUpdate:modelValue": n[24] ||= (e) => D.value = e,
|
|
2349
2350
|
class: "docx-tmore__select"
|
|
2350
2351
|
}, [
|
|
2351
|
-
u("option",
|
|
2352
|
-
u("option",
|
|
2353
|
-
u("option",
|
|
2352
|
+
u("option", Mn, E(O(m)("tableAdvanced.heightRules.auto")), 1),
|
|
2353
|
+
u("option", Nn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
|
|
2354
|
+
u("option", Pn, E(O(m)("tableAdvanced.heightRules.exact")), 1)
|
|
2354
2355
|
], 512), [[k, D.value]])]),
|
|
2355
|
-
D.value === "auto" ? c("", !0) : (b(), l("label",
|
|
2356
|
-
u("span",
|
|
2356
|
+
D.value === "auto" ? c("", !0) : (b(), l("label", Fn, [
|
|
2357
|
+
u("span", In, E(O(m)("tableAdvanced.height")), 1),
|
|
2357
2358
|
N(u("input", {
|
|
2358
2359
|
type: "number",
|
|
2359
2360
|
min: "0",
|
|
@@ -2383,13 +2384,13 @@ var Xe = {
|
|
|
2383
2384
|
name: "text_rotation_none",
|
|
2384
2385
|
size: 18
|
|
2385
2386
|
}),
|
|
2386
|
-
u("span",
|
|
2387
|
+
u("span", Ln, E(O(m)("textDirection")), 1),
|
|
2387
2388
|
f(r, {
|
|
2388
2389
|
name: y.value ? "expand_less" : "expand_more",
|
|
2389
2390
|
size: 18
|
|
2390
2391
|
}, null, 8, ["name"])
|
|
2391
2392
|
]),
|
|
2392
|
-
y.value ? (b(), l("div",
|
|
2393
|
+
y.value ? (b(), l("div", Rn, [
|
|
2393
2394
|
u("button", {
|
|
2394
2395
|
type: "button",
|
|
2395
2396
|
class: "docx-tmore__sub-item",
|
|
@@ -2448,11 +2449,11 @@ var Xe = {
|
|
|
2448
2449
|
name: "settings",
|
|
2449
2450
|
size: 18
|
|
2450
2451
|
}), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
|
|
2451
|
-
], 8,
|
|
2452
|
+
], 8, cn)]),
|
|
2452
2453
|
_: 1
|
|
2453
2454
|
}, 8, ["open"]));
|
|
2454
2455
|
}
|
|
2455
|
-
}), [["__scopeId", "data-v-5d357bc4"]]),
|
|
2456
|
+
}), [["__scopeId", "data-v-5d357bc4"]]), Bn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2456
2457
|
__name: "TableToolbar",
|
|
2457
2458
|
props: {
|
|
2458
2459
|
view: {},
|
|
@@ -2579,14 +2580,14 @@ var Xe = {
|
|
|
2579
2580
|
onRowHeight: N
|
|
2580
2581
|
}), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
|
|
2581
2582
|
n[0] ||= u("span", { class: "divider" }, null, -1),
|
|
2582
|
-
f(
|
|
2583
|
-
f(
|
|
2584
|
-
f(
|
|
2585
|
-
f(
|
|
2583
|
+
f(Qt, { onChange: w }),
|
|
2584
|
+
f($t, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
|
|
2585
|
+
f(an, { onChange: E }),
|
|
2586
|
+
f(on, {
|
|
2586
2587
|
theme: e.theme ?? null,
|
|
2587
2588
|
onChange: D
|
|
2588
2589
|
}, null, 8, ["theme"]),
|
|
2589
|
-
f(
|
|
2590
|
+
f(zn, {
|
|
2590
2591
|
"can-split": p.value,
|
|
2591
2592
|
"can-merge": _.value,
|
|
2592
2593
|
"row-count": v.value,
|
|
@@ -2605,7 +2606,7 @@ var Xe = {
|
|
|
2605
2606
|
])
|
|
2606
2607
|
], 64)) : c("", !0);
|
|
2607
2608
|
}
|
|
2608
|
-
}), [["__scopeId", "data-v-c73a7e43"]]),
|
|
2609
|
+
}), [["__scopeId", "data-v-c73a7e43"]]), Vn = { class: "docx-vertical-ruler__ticks" }, Hn = 15840, Un = 1440, Wn = 1440, Gn = 567, Kn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2609
2610
|
__name: "VerticalRuler",
|
|
2610
2611
|
props: {
|
|
2611
2612
|
sectionProps: {},
|
|
@@ -2625,7 +2626,7 @@ var Xe = {
|
|
|
2625
2626
|
function f(e) {
|
|
2626
2627
|
return Math.round(W(e / n.zoom));
|
|
2627
2628
|
}
|
|
2628
|
-
let p = o(() => n.sectionProps?.pageHeight ??
|
|
2629
|
+
let p = o(() => n.sectionProps?.pageHeight ?? Hn), m = o(() => n.sectionProps?.marginTop ?? Un), h = o(() => n.sectionProps?.marginBottom ?? Un), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
|
|
2629
2630
|
position: "relative",
|
|
2630
2631
|
width: "20px",
|
|
2631
2632
|
height: g.value + "px",
|
|
@@ -2636,7 +2637,7 @@ var Xe = {
|
|
|
2636
2637
|
})), T = o(() => {
|
|
2637
2638
|
let e = [];
|
|
2638
2639
|
if (n.unit === "inch") {
|
|
2639
|
-
let t =
|
|
2640
|
+
let t = Wn / 8, n = Math.ceil(p.value / t);
|
|
2640
2641
|
for (let r = 0; r <= n; r++) {
|
|
2641
2642
|
let n = r * t;
|
|
2642
2643
|
if (n > p.value) break;
|
|
@@ -2657,7 +2658,7 @@ var Xe = {
|
|
|
2657
2658
|
});
|
|
2658
2659
|
}
|
|
2659
2660
|
} else {
|
|
2660
|
-
let t =
|
|
2661
|
+
let t = Gn / 10, n = Math.ceil(p.value / t);
|
|
2661
2662
|
for (let r = 0; r <= n; r++) {
|
|
2662
2663
|
let n = r * t;
|
|
2663
2664
|
if (n > p.value) break;
|
|
@@ -2723,7 +2724,7 @@ var Xe = {
|
|
|
2723
2724
|
"aria-label": "Vertical ruler",
|
|
2724
2725
|
"aria-orientation": "vertical"
|
|
2725
2726
|
}, [
|
|
2726
|
-
u("div",
|
|
2727
|
+
u("div", Vn, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
2727
2728
|
class: "docx-vertical-ruler__tick-line",
|
|
2728
2729
|
style: _({
|
|
2729
2730
|
top: e.position + "px",
|
|
@@ -2755,10 +2756,10 @@ var Xe = {
|
|
|
2755
2756
|
}), [["__scopeId", "data-v-f7ccbd38"]]);
|
|
2756
2757
|
//#endregion
|
|
2757
2758
|
//#region src/utils/comments.ts
|
|
2758
|
-
function
|
|
2759
|
+
function qn(e) {
|
|
2759
2760
|
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("") : "";
|
|
2760
2761
|
}
|
|
2761
|
-
function
|
|
2762
|
+
function Jn(e) {
|
|
2762
2763
|
return e ? new Date(e).toLocaleString(void 0, {
|
|
2763
2764
|
hour: "numeric",
|
|
2764
2765
|
minute: "2-digit",
|
|
@@ -2766,10 +2767,10 @@ function qn(e) {
|
|
|
2766
2767
|
day: "numeric"
|
|
2767
2768
|
}) : "";
|
|
2768
2769
|
}
|
|
2769
|
-
function
|
|
2770
|
+
function Yn(e) {
|
|
2770
2771
|
return e.split(/\s+/).map((e) => e[0]).join("").toUpperCase().slice(0, 2);
|
|
2771
2772
|
}
|
|
2772
|
-
var
|
|
2773
|
+
var Xn = [
|
|
2773
2774
|
"#6DCCB1",
|
|
2774
2775
|
"#79AAD9",
|
|
2775
2776
|
"#EE789D",
|
|
@@ -2783,28 +2784,28 @@ var Yn = [
|
|
|
2783
2784
|
"#E15759",
|
|
2784
2785
|
"#76B7B2"
|
|
2785
2786
|
];
|
|
2786
|
-
function
|
|
2787
|
+
function Zn(e) {
|
|
2787
2788
|
let t = 0;
|
|
2788
2789
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
2789
|
-
return
|
|
2790
|
+
return Xn[Math.abs(t) % Xn.length] ?? "#888888";
|
|
2790
2791
|
}
|
|
2791
2792
|
function $(e, t = 50) {
|
|
2792
2793
|
return e.length > t ? e.slice(0, t) + "..." : e;
|
|
2793
2794
|
}
|
|
2794
2795
|
//#endregion
|
|
2795
2796
|
//#region src/components/sidebar/Avatar.vue
|
|
2796
|
-
var
|
|
2797
|
+
var Qn = /* @__PURE__ */ p({
|
|
2797
2798
|
__name: "Avatar",
|
|
2798
2799
|
props: {
|
|
2799
2800
|
name: { default: "U" },
|
|
2800
2801
|
size: { default: 32 }
|
|
2801
2802
|
},
|
|
2802
2803
|
setup(e) {
|
|
2803
|
-
let t = e, n = o(() =>
|
|
2804
|
+
let t = e, n = o(() => Yn(t.name || "U")), r = o(() => ({
|
|
2804
2805
|
width: t.size + "px",
|
|
2805
2806
|
height: t.size + "px",
|
|
2806
2807
|
borderRadius: "50%",
|
|
2807
|
-
backgroundColor:
|
|
2808
|
+
backgroundColor: Zn(t.name || "U"),
|
|
2808
2809
|
color: "#fff",
|
|
2809
2810
|
display: "flex",
|
|
2810
2811
|
alignItems: "center",
|
|
@@ -2818,13 +2819,13 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2818
2819
|
style: _(r.value)
|
|
2819
2820
|
}, E(n.value), 5));
|
|
2820
2821
|
}
|
|
2821
|
-
}),
|
|
2822
|
+
}), $n = {
|
|
2822
2823
|
key: 0,
|
|
2823
2824
|
class: "reply-thread"
|
|
2824
|
-
},
|
|
2825
|
+
}, er = {
|
|
2825
2826
|
key: 0,
|
|
2826
2827
|
class: "reply-thread__more"
|
|
2827
|
-
},
|
|
2828
|
+
}, tr = { class: "reply-thread__header" }, nr = { class: "reply-thread__author-block" }, rr = { class: "reply-thread__author" }, ir = { class: "reply-thread__date" }, ar = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2828
2829
|
__name: "ReplyThread",
|
|
2829
2830
|
props: {
|
|
2830
2831
|
replies: {},
|
|
@@ -2832,15 +2833,15 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2832
2833
|
},
|
|
2833
2834
|
setup(e) {
|
|
2834
2835
|
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));
|
|
2835
|
-
return (t, i) => e.replies.length > 0 ? (b(), l("div",
|
|
2836
|
+
return (t, i) => e.replies.length > 0 ? (b(), l("div", $n, [r.value > 0 ? (b(), l("div", er, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
|
|
2836
2837
|
key: t.id,
|
|
2837
2838
|
class: g(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
|
|
2838
|
-
}, [u("div",
|
|
2839
|
+
}, [u("div", tr, [f(Qn, {
|
|
2839
2840
|
name: t.author,
|
|
2840
2841
|
size: 28
|
|
2841
|
-
}, null, 8, ["name"]), u("div",
|
|
2842
|
+
}, null, 8, ["name"]), u("div", nr, [u("div", rr, E(t.author || "Unknown"), 1), u("div", ir, E(O(Jn)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, E(O(qn)(t.content)), 3)], 2))), 128))])) : c("", !0);
|
|
2842
2843
|
}
|
|
2843
|
-
}), [["__scopeId", "data-v-06331fac"]]),
|
|
2844
|
+
}), [["__scopeId", "data-v-06331fac"]]), or = ["onKeydown"], sr = { class: "reply-input__actions" }, cr = ["disabled"], lr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2844
2845
|
__name: "ReplyInput",
|
|
2845
2846
|
emits: ["submit"],
|
|
2846
2847
|
setup(e, { emit: t }) {
|
|
@@ -2872,14 +2873,14 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2872
2873
|
P(F(p, ["prevent"]), ["enter"]),
|
|
2873
2874
|
P(f, ["esc"])
|
|
2874
2875
|
]
|
|
2875
|
-
}, null, 40,
|
|
2876
|
+
}, null, 40, or), [[A, i.value]]), u("div", sr, [u("button", {
|
|
2876
2877
|
class: "reply-input__cancel",
|
|
2877
2878
|
onClick: F(f, ["stop"])
|
|
2878
2879
|
}, "Cancel"), u("button", {
|
|
2879
2880
|
class: g(["reply-input__submit", { "reply-input__submit--active": c.value }]),
|
|
2880
2881
|
disabled: !c.value,
|
|
2881
2882
|
onClick: F(p, ["stop"])
|
|
2882
|
-
}, " Reply ", 10,
|
|
2883
|
+
}, " Reply ", 10, cr)])], 64)) : (b(), l("input", {
|
|
2883
2884
|
key: 0,
|
|
2884
2885
|
readonly: "",
|
|
2885
2886
|
placeholder: "Reply",
|
|
@@ -2888,13 +2889,13 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2888
2889
|
onClick: F(d, ["stop"])
|
|
2889
2890
|
}, null, 32))], 32));
|
|
2890
2891
|
}
|
|
2891
|
-
}), [["__scopeId", "data-v-fea8646c"]]),
|
|
2892
|
+
}), [["__scopeId", "data-v-fea8646c"]]), ur = ["data-comment-id"], dr = {
|
|
2892
2893
|
key: 0,
|
|
2893
2894
|
class: "comment-card__resolved"
|
|
2894
|
-
},
|
|
2895
|
+
}, fr = { class: "comment-card__head" }, pr = { class: "comment-card__author-block" }, mr = { class: "comment-card__author" }, hr = { class: "comment-card__date" }, gr = {
|
|
2895
2896
|
key: 0,
|
|
2896
2897
|
class: "comment-card__actions"
|
|
2897
|
-
},
|
|
2898
|
+
}, _r = ["title"], vr = { class: "comment-card__body" }, yr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2898
2899
|
__name: "CommentCard",
|
|
2899
2900
|
props: {
|
|
2900
2901
|
comment: {},
|
|
@@ -2919,17 +2920,17 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2919
2920
|
onClick: n[5] ||= (e) => t.$emit("click"),
|
|
2920
2921
|
onMousedown: n[6] ||= F(() => {}, ["stop"])
|
|
2921
2922
|
}, [
|
|
2922
|
-
e.comment.done ? (b(), l("div",
|
|
2923
|
+
e.comment.done ? (b(), l("div", dr, [f(r, {
|
|
2923
2924
|
name: "check",
|
|
2924
2925
|
size: 12
|
|
2925
2926
|
}), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
|
|
2926
|
-
u("div",
|
|
2927
|
-
f(
|
|
2927
|
+
u("div", fr, [
|
|
2928
|
+
f(Qn, {
|
|
2928
2929
|
name: e.comment.author,
|
|
2929
2930
|
size: 32
|
|
2930
2931
|
}, null, 8, ["name"]),
|
|
2931
|
-
u("div",
|
|
2932
|
-
e.expanded ? (b(), l("div",
|
|
2932
|
+
u("div", pr, [u("div", mr, E(e.comment.author || "Unknown"), 1), u("div", hr, E(O(Jn)(e.comment.date)), 1)]),
|
|
2933
|
+
e.expanded ? (b(), l("div", gr, [
|
|
2933
2934
|
u("button", {
|
|
2934
2935
|
class: "comment-card__icon-btn",
|
|
2935
2936
|
title: e.comment.done ? "Reopen" : "Resolve",
|
|
@@ -2937,7 +2938,7 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2937
2938
|
}, [f(r, {
|
|
2938
2939
|
name: e.comment.done ? "undo" : "check",
|
|
2939
2940
|
size: 20
|
|
2940
|
-
}, null, 8, ["name"])], 8,
|
|
2941
|
+
}, null, 8, ["name"])], 8, _r),
|
|
2941
2942
|
u("button", {
|
|
2942
2943
|
class: "comment-card__icon-btn",
|
|
2943
2944
|
title: "More options",
|
|
@@ -2957,18 +2958,18 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2957
2958
|
}, "Delete")], 32)) : c("", !0)
|
|
2958
2959
|
])) : c("", !0)
|
|
2959
2960
|
]),
|
|
2960
|
-
u("div",
|
|
2961
|
-
f(
|
|
2961
|
+
u("div", vr, E(O(qn)(e.comment.content)), 1),
|
|
2962
|
+
f(ar, {
|
|
2962
2963
|
replies: e.replies,
|
|
2963
2964
|
"is-expanded": e.expanded
|
|
2964
2965
|
}, null, 8, ["replies", "is-expanded"]),
|
|
2965
|
-
e.expanded && !e.comment.done ? (b(), s(
|
|
2966
|
+
e.expanded && !e.comment.done ? (b(), s(lr, {
|
|
2966
2967
|
key: 1,
|
|
2967
2968
|
onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
|
|
2968
2969
|
})) : c("", !0)
|
|
2969
|
-
], 42,
|
|
2970
|
+
], 42, ur));
|
|
2970
2971
|
}
|
|
2971
|
-
}), [["__scopeId", "data-v-7a3ee7ac"]]),
|
|
2972
|
+
}), [["__scopeId", "data-v-7a3ee7ac"]]), br = ["data-comment-id"], xr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2972
2973
|
__name: "ResolvedCommentMarker",
|
|
2973
2974
|
props: { comment: {} },
|
|
2974
2975
|
emits: ["toggle-expand"],
|
|
@@ -2982,39 +2983,39 @@ var Zn = /* @__PURE__ */ p({
|
|
|
2982
2983
|
}, [f(r, {
|
|
2983
2984
|
name: "chat_bubble_check",
|
|
2984
2985
|
size: 20
|
|
2985
|
-
})], 40,
|
|
2986
|
+
})], 40, br));
|
|
2986
2987
|
}
|
|
2987
|
-
}), [["__scopeId", "data-v-d0c228f6"]]),
|
|
2988
|
+
}), [["__scopeId", "data-v-d0c228f6"]]), Sr = { class: "tc-card__head" }, Cr = { class: "tc-card__author-block" }, wr = { class: "tc-card__author" }, Tr = {
|
|
2988
2989
|
key: 0,
|
|
2989
2990
|
class: "tc-card__date"
|
|
2990
|
-
},
|
|
2991
|
+
}, Er = {
|
|
2991
2992
|
key: 0,
|
|
2992
2993
|
class: "tc-card__actions"
|
|
2993
|
-
},
|
|
2994
|
+
}, Dr = ["title"], Or = ["title"], kr = { class: "tc-card__body" }, Ar = { class: "tc-card__deleted" }, jr = { class: "tc-card__inserted" }, Mr = { class: "tc-card__inserted" }, Nr = { class: "tc-card__deleted" }, Pr = {
|
|
2994
2995
|
key: 0,
|
|
2995
2996
|
class: "tc-card__changed"
|
|
2996
|
-
},
|
|
2997
|
+
}, Fr = { class: "tc-card__changed" }, Ir = { class: "tc-card__changed" }, Lr = {
|
|
2997
2998
|
key: 5,
|
|
2998
2999
|
class: "tc-card__inserted"
|
|
2999
|
-
},
|
|
3000
|
+
}, Rr = {
|
|
3000
3001
|
key: 6,
|
|
3001
3002
|
class: "tc-card__deleted"
|
|
3002
|
-
},
|
|
3003
|
+
}, zr = {
|
|
3003
3004
|
key: 7,
|
|
3004
3005
|
class: "tc-card__inserted"
|
|
3005
|
-
},
|
|
3006
|
+
}, Br = {
|
|
3006
3007
|
key: 8,
|
|
3007
3008
|
class: "tc-card__deleted"
|
|
3008
|
-
},
|
|
3009
|
+
}, Vr = {
|
|
3009
3010
|
key: 9,
|
|
3010
3011
|
class: "tc-card__changed"
|
|
3011
|
-
},
|
|
3012
|
+
}, Hr = {
|
|
3012
3013
|
key: 10,
|
|
3013
3014
|
class: "tc-card__inserted"
|
|
3014
|
-
},
|
|
3015
|
+
}, Ur = {
|
|
3015
3016
|
key: 11,
|
|
3016
3017
|
class: "tc-card__deleted"
|
|
3017
|
-
},
|
|
3018
|
+
}, Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3018
3019
|
__name: "TrackedChangeCard",
|
|
3019
3020
|
props: {
|
|
3020
3021
|
change: {},
|
|
@@ -3077,45 +3078,45 @@ var Zn = /* @__PURE__ */ p({
|
|
|
3077
3078
|
onClick: n[1] ||= (e) => t.$emit("click"),
|
|
3078
3079
|
onMousedown: n[2] ||= F(() => {}, ["stop"])
|
|
3079
3080
|
}, [
|
|
3080
|
-
u("div",
|
|
3081
|
-
f(
|
|
3081
|
+
u("div", Sr, [
|
|
3082
|
+
f(Qn, {
|
|
3082
3083
|
name: h.value,
|
|
3083
3084
|
size: 32
|
|
3084
3085
|
}, null, 8, ["name"]),
|
|
3085
|
-
u("div",
|
|
3086
|
-
e.expanded ? (b(), l("div",
|
|
3086
|
+
u("div", Cr, [u("div", wr, E(h.value), 1), e.change.date ? (b(), l("div", Tr, E(O(Jn)(e.change.date)), 1)) : c("", !0)]),
|
|
3087
|
+
e.expanded ? (b(), l("div", Er, [u("button", {
|
|
3087
3088
|
class: "tc-card__icon-btn",
|
|
3088
3089
|
title: O(i)("acceptChange"),
|
|
3089
3090
|
onClick: F(x, ["stop"])
|
|
3090
3091
|
}, [f(r, {
|
|
3091
3092
|
name: "check",
|
|
3092
3093
|
size: 20
|
|
3093
|
-
})], 8,
|
|
3094
|
+
})], 8, Dr), u("button", {
|
|
3094
3095
|
class: "tc-card__icon-btn",
|
|
3095
3096
|
title: O(i)("rejectChange"),
|
|
3096
3097
|
onClick: F(S, ["stop"])
|
|
3097
3098
|
}, [f(r, {
|
|
3098
3099
|
name: "close",
|
|
3099
3100
|
size: 20
|
|
3100
|
-
})], 8,
|
|
3101
|
+
})], 8, Or)])) : c("", !0)
|
|
3101
3102
|
]),
|
|
3102
|
-
u("div",
|
|
3103
|
+
u("div", kr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
|
|
3103
3104
|
d(E(O(i)("trackedChanges.replaced")) + " ", 1),
|
|
3104
|
-
u("span",
|
|
3105
|
+
u("span", Ar, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
|
|
3105
3106
|
d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
|
|
3106
|
-
u("span",
|
|
3107
|
-
], 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",
|
|
3108
|
-
f(
|
|
3107
|
+
u("span", jr, "\"" + E(O($)(e.change.text)) + "\"", 1)
|
|
3108
|
+
], 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", Mr, "\"" + 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", Nr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : v.value ? (b(), l(a, { key: 3 }, [v.value.shape === "label-only" ? (b(), l("span", Pr, E(v.value.label), 1)) : (b(), l(a, { key: 1 }, [d(E(v.value.label), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", Fr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64))], 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", Ir, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Lr, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", Rr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", zr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", Br, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Vr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Hr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Ur, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 12 }, [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))]),
|
|
3109
|
+
f(ar, {
|
|
3109
3110
|
replies: e.replies,
|
|
3110
3111
|
"is-expanded": e.expanded
|
|
3111
3112
|
}, null, 8, ["replies", "is-expanded"]),
|
|
3112
|
-
e.expanded ? (b(), s(
|
|
3113
|
+
e.expanded ? (b(), s(lr, {
|
|
3113
3114
|
key: 0,
|
|
3114
3115
|
onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
|
|
3115
3116
|
})) : c("", !0)
|
|
3116
3117
|
], 34));
|
|
3117
3118
|
}
|
|
3118
|
-
}), [["__scopeId", "data-v-b19a1fcd"]]),
|
|
3119
|
+
}), [["__scopeId", "data-v-b19a1fcd"]]), Gr = ["onKeydown"], Kr = { class: "add-comment-card__actions" }, qr = ["disabled"], Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3119
3120
|
__name: "AddCommentCard",
|
|
3120
3121
|
emits: ["submit", "cancel"],
|
|
3121
3122
|
setup(e, { emit: t }) {
|
|
@@ -3144,19 +3145,19 @@ var Zn = /* @__PURE__ */ p({
|
|
|
3144
3145
|
P(F(s, ["exact", "prevent"]), ["enter"]),
|
|
3145
3146
|
P(c, ["esc"])
|
|
3146
3147
|
]
|
|
3147
|
-
}, null, 40,
|
|
3148
|
+
}, null, 40, Gr), [[A, r.value]]), u("div", Kr, [u("button", {
|
|
3148
3149
|
class: "add-comment-card__cancel",
|
|
3149
3150
|
onClick: c
|
|
3150
3151
|
}, "Cancel"), u("button", {
|
|
3151
3152
|
class: g(["add-comment-card__submit", { "add-comment-card__submit--active": a.value }]),
|
|
3152
3153
|
disabled: !a.value,
|
|
3153
3154
|
onClick: s
|
|
3154
|
-
}, " Comment ", 10,
|
|
3155
|
+
}, " Comment ", 10, qr)])], 32));
|
|
3155
3156
|
}
|
|
3156
3157
|
}), [["__scopeId", "data-v-2939f9cd"]]);
|
|
3157
3158
|
//#endregion
|
|
3158
3159
|
//#region src/composables/useCommentSidebarItems.ts
|
|
3159
|
-
function
|
|
3160
|
+
function Yr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
|
|
3160
3161
|
return o(() => {
|
|
3161
3162
|
let a = [];
|
|
3162
3163
|
r?.value && i?.value != null && a.push({
|
|
@@ -3199,7 +3200,7 @@ function Jr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment:
|
|
|
3199
3200
|
}
|
|
3200
3201
|
//#endregion
|
|
3201
3202
|
//#region src/components/UnifiedSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
3202
|
-
var
|
|
3203
|
+
var Xr = ["data-folio-comments-surface", "tabindex"], Zr = ["data-card-id"], Qr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3203
3204
|
__name: "UnifiedSidebar",
|
|
3204
3205
|
props: {
|
|
3205
3206
|
isOpen: { type: Boolean },
|
|
@@ -3241,7 +3242,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3241
3242
|
let t = e.target;
|
|
3242
3243
|
t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") || p.value !== null && (f.value = null, r("update:activeItemId", null));
|
|
3243
3244
|
}
|
|
3244
|
-
let x =
|
|
3245
|
+
let x = Yr({
|
|
3245
3246
|
comments: D(n, "comments"),
|
|
3246
3247
|
trackedChanges: D(n, "trackedChanges"),
|
|
3247
3248
|
showResolved: o(() => n.showResolved ?? !1),
|
|
@@ -3301,7 +3302,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3301
3302
|
t && u.set(t, e.offsetHeight);
|
|
3302
3303
|
}
|
|
3303
3304
|
let f = /* @__PURE__ */ new Map();
|
|
3304
|
-
for (let { item: n, y: r } of
|
|
3305
|
+
for (let { item: n, y: r } of Y({
|
|
3305
3306
|
items: t,
|
|
3306
3307
|
anchorPositions: c,
|
|
3307
3308
|
renderedDomContext: V(e),
|
|
@@ -3390,10 +3391,10 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3390
3391
|
transition: "top 0.15s ease"
|
|
3391
3392
|
};
|
|
3392
3393
|
}
|
|
3393
|
-
let
|
|
3394
|
+
let J = !1;
|
|
3394
3395
|
function X() {
|
|
3395
|
-
|
|
3396
|
-
|
|
3396
|
+
J || (J = !0, requestAnimationFrame(() => {
|
|
3397
|
+
J = !1, L();
|
|
3397
3398
|
}));
|
|
3398
3399
|
}
|
|
3399
3400
|
j(() => [
|
|
@@ -3460,15 +3461,15 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3460
3461
|
class: "unified-sidebar__card-slot",
|
|
3461
3462
|
"data-card-id": e.id,
|
|
3462
3463
|
style: _(q(e.id))
|
|
3463
|
-
}, [e.kind === "add-comment" ? (b(), s(
|
|
3464
|
+
}, [e.kind === "add-comment" ? (b(), s(Jr, {
|
|
3464
3465
|
key: 0,
|
|
3465
3466
|
onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
|
|
3466
3467
|
onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
|
|
3467
|
-
})) : e.kind === "comment" && e.comment.done && p.value !== e.id ? (b(), s(
|
|
3468
|
+
})) : e.kind === "comment" && e.comment.done && p.value !== e.id ? (b(), s(xr, {
|
|
3468
3469
|
key: 1,
|
|
3469
3470
|
comment: e.comment,
|
|
3470
3471
|
onToggleExpand: (t) => m(e.id)
|
|
3471
|
-
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(
|
|
3472
|
+
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(yr, {
|
|
3472
3473
|
key: 2,
|
|
3473
3474
|
comment: e.comment,
|
|
3474
3475
|
replies: e.replies,
|
|
@@ -3483,7 +3484,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3483
3484
|
"replies",
|
|
3484
3485
|
"expanded",
|
|
3485
3486
|
"onClick"
|
|
3486
|
-
])) : e.kind === "tracked-change" ? (b(), s(
|
|
3487
|
+
])) : e.kind === "tracked-change" ? (b(), s(Wr, {
|
|
3487
3488
|
key: 3,
|
|
3488
3489
|
change: e.change,
|
|
3489
3490
|
replies: e.replies ?? [],
|
|
@@ -3499,9 +3500,9 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3499
3500
|
"replies",
|
|
3500
3501
|
"expanded",
|
|
3501
3502
|
"onClick"
|
|
3502
|
-
])) : c("", !0)], 12,
|
|
3503
|
+
])) : c("", !0)], 12, Zr))), 128))], 4)], 46, Xr)) : c("", !0)], 64));
|
|
3503
3504
|
}
|
|
3504
|
-
}), [["__scopeId", "data-v-071b08b5"]]),
|
|
3505
|
+
}), [["__scopeId", "data-v-071b08b5"]]), $r = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3505
3506
|
__name: "StylePicker",
|
|
3506
3507
|
props: {
|
|
3507
3508
|
value: {},
|
|
@@ -3560,12 +3561,12 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3560
3561
|
"class"
|
|
3561
3562
|
]));
|
|
3562
3563
|
}
|
|
3563
|
-
}), [["__scopeId", "data-v-06469e2c"]]),
|
|
3564
|
+
}), [["__scopeId", "data-v-06469e2c"]]), ei = [
|
|
3564
3565
|
"disabled",
|
|
3565
3566
|
"title",
|
|
3566
3567
|
"aria-expanded",
|
|
3567
3568
|
"onClick"
|
|
3568
|
-
],
|
|
3569
|
+
], ti = { class: "docx-align__panel" }, ni = ["title", "onClick"], ri = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3569
3570
|
__name: "AlignmentButtons",
|
|
3570
3571
|
props: {
|
|
3571
3572
|
value: { default: "left" },
|
|
@@ -3624,8 +3625,8 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3624
3625
|
}, null, 8, ["name"]), f(r, {
|
|
3625
3626
|
name: "arrow_drop_down",
|
|
3626
3627
|
size: 14
|
|
3627
|
-
})], 10,
|
|
3628
|
-
panel: M(() => [u("div",
|
|
3628
|
+
})], 10, ei)]),
|
|
3629
|
+
panel: M(() => [u("div", ti, [(b(), l(a, null, C(m, (t) => u("button", {
|
|
3629
3630
|
key: t.value,
|
|
3630
3631
|
type: "button",
|
|
3631
3632
|
class: g(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
|
|
@@ -3634,11 +3635,11 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3634
3635
|
}, [f(r, {
|
|
3635
3636
|
name: t.icon,
|
|
3636
3637
|
size: 20
|
|
3637
|
-
}, null, 8, ["name"])], 10,
|
|
3638
|
+
}, null, 8, ["name"])], 10, ni)), 64))])]),
|
|
3638
3639
|
_: 1
|
|
3639
3640
|
}, 8, ["open"]));
|
|
3640
3641
|
}
|
|
3641
|
-
}), [["__scopeId", "data-v-088792b0"]]),
|
|
3642
|
+
}), [["__scopeId", "data-v-088792b0"]]), ii = { class: "docx-list-btns" }, ai = ["disabled"], oi = ["disabled"], si = ["disabled"], ci = ["disabled"], li = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3642
3643
|
__name: "ListButtons",
|
|
3643
3644
|
props: {
|
|
3644
3645
|
listState: {},
|
|
@@ -3662,7 +3663,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3662
3663
|
"outdent"
|
|
3663
3664
|
],
|
|
3664
3665
|
setup(e) {
|
|
3665
|
-
return (t, n) => (b(), l("span",
|
|
3666
|
+
return (t, n) => (b(), l("span", ii, [
|
|
3666
3667
|
u("button", {
|
|
3667
3668
|
type: "button",
|
|
3668
3669
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "bullet" }]),
|
|
@@ -3672,7 +3673,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3672
3673
|
}, [f(r, {
|
|
3673
3674
|
name: "format_list_bulleted",
|
|
3674
3675
|
size: 20
|
|
3675
|
-
})], 10,
|
|
3676
|
+
})], 10, ai),
|
|
3676
3677
|
u("button", {
|
|
3677
3678
|
type: "button",
|
|
3678
3679
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "numbered" }]),
|
|
@@ -3682,7 +3683,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3682
3683
|
}, [f(r, {
|
|
3683
3684
|
name: "format_list_numbered",
|
|
3684
3685
|
size: 20
|
|
3685
|
-
})], 10,
|
|
3686
|
+
})], 10, oi),
|
|
3686
3687
|
e.showIndentButtons ? (b(), l(a, { key: 0 }, [u("button", {
|
|
3687
3688
|
type: "button",
|
|
3688
3689
|
class: "docx-list-btns__btn",
|
|
@@ -3692,7 +3693,7 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3692
3693
|
}, [f(r, {
|
|
3693
3694
|
name: "format_indent_decrease",
|
|
3694
3695
|
size: 20
|
|
3695
|
-
})], 8,
|
|
3696
|
+
})], 8, si), u("button", {
|
|
3696
3697
|
type: "button",
|
|
3697
3698
|
class: "docx-list-btns__btn",
|
|
3698
3699
|
disabled: e.disabled,
|
|
@@ -3701,9 +3702,9 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3701
3702
|
}, [f(r, {
|
|
3702
3703
|
name: "format_indent_increase",
|
|
3703
3704
|
size: 20
|
|
3704
|
-
})], 8,
|
|
3705
|
+
})], 8, ci)], 64)) : c("", !0)
|
|
3705
3706
|
]));
|
|
3706
3707
|
}
|
|
3707
3708
|
}), [["__scopeId", "data-v-7cc21148"]]);
|
|
3708
3709
|
//#endregion
|
|
3709
|
-
export {
|
|
3710
|
+
export { he as C, ne as D, ae as E, ge as S, ce as T, Qt as _, Jr as a, Te as b, yr as c, Kn as d, Bn as f, $t as g, an as h, Qr as i, lr as l, on as m, ri as n, Wr as o, zn as p, $r as r, xr as s, li as t, ar as u, Jt as v, fe as w, _e as x, It as y };
|