@stll/folio-vue 0.20.0 → 0.21.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-BSRd6dsB.cjs +4 -0
- package/dist/{ListButtons-BXF-tbt2.js → ListButtons-CSyBR9KM.js} +530 -435
- package/dist/{SplitCellDialog-Cp5O_btz.js → SplitCellDialog-Id6nLwrR.js} +626 -531
- package/dist/SplitCellDialog-NOmSMMla.cjs +15 -0
- package/dist/components/DocxEditor/types.d.ts +6 -2
- package/dist/composables/useCommentManagement.d.ts +2 -0
- package/dist/composables/useContextMenus.d.ts +5 -0
- package/dist/composables/useDocxEditor.d.ts +6 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +20 -7
- package/dist/composables/usePagesPointer.d.ts +1 -0
- package/dist/composables/useSelectionSync.d.ts +3 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +1 -1
- package/dist/folio-vue.css +212 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1909 -1572
- package/dist/ui/folio-ui.d.ts +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/useZoom-6bPW9fn6.cjs +1 -0
- package/dist/useZoom-BDu7b2tv.js +797 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +11 -3
- package/dist/ListButtons-h2cB3ivL.cjs +0 -4
- package/dist/SplitCellDialog-DuxO5ttQ.cjs +0 -15
- package/dist/useZoom-BIGvxjCH.cjs +0 -1
- package/dist/useZoom-C8y44V_P.js +0 -780
- package/dist/utils/sidebarConstants.d.ts +0 -8
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-
|
|
1
|
+
import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-Id6nLwrR.js";
|
|
2
2
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, toRef as D, unref as O, vModelSelect as k, vModelText as A, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
|
|
3
3
|
import { NO_LIST_STATE as I, listStateLevel as L } from "@stll/folio-core/prosemirror";
|
|
4
4
|
import { getTableContext as R } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
|
|
5
|
-
import { extractSelectionContext as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { extractSelectionContext as z } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
|
|
6
|
+
import { PANEL_METRICS as B } from "@stll/folio-core/panel-layout";
|
|
7
|
+
import { createRenderedDomContext as V } from "@stll/folio-core/render-dom/RenderedDomContext";
|
|
8
|
+
import { commentAnchorSelector as H, indexCommentAnchors as U } from "@stll/folio-core/render-dom/commentAnchorAttributes";
|
|
9
|
+
import { pixelsToTwips as W, twipsToPixels as G } from "@stll/folio-core/utils/units";
|
|
10
|
+
import { DISPLAY_MODES as K } from "@stll/folio-core/managers/EditorModeManager";
|
|
11
|
+
import { redoDepth as ee, undoDepth as te } from "prosemirror-history";
|
|
12
|
+
import { clearFormatting as q } from "@stll/folio-core/prosemirror/commands/formatting";
|
|
13
|
+
import { resolveSidebarItemPositions as J } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
|
|
13
14
|
//#region src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
15
|
+
var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
15
16
|
__name: "CommentMarginMarkers",
|
|
16
17
|
props: {
|
|
17
18
|
comments: {},
|
|
@@ -27,7 +28,7 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
27
28
|
if (t.sidebarOpen) return [];
|
|
28
29
|
let e = t.pagesContainer;
|
|
29
30
|
if (!e) return [];
|
|
30
|
-
let n = e.getBoundingClientRect(), r =
|
|
31
|
+
let n = e.getBoundingClientRect(), r = U(e), i = [];
|
|
31
32
|
for (let a of t.comments) {
|
|
32
33
|
if (a.parentId != null) continue;
|
|
33
34
|
let o = r.get(String(a.id));
|
|
@@ -61,12 +62,12 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
61
62
|
}, [f(r, {
|
|
62
63
|
name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
|
|
63
64
|
size: 18
|
|
64
|
-
}, null, 8, ["name"])], 12,
|
|
65
|
+
}, null, 8, ["name"])], 12, Y))), 128))], 36)) : c("", !0);
|
|
65
66
|
}
|
|
66
|
-
}), [["__scopeId", "data-v-bf75a017"]]), ne = { class: "doc-name" },
|
|
67
|
+
}), [["__scopeId", "data-v-bf75a017"]]), ne = { class: "doc-name" }, Z = ["value"], re = {
|
|
67
68
|
key: 1,
|
|
68
69
|
class: "doc-name__text"
|
|
69
|
-
},
|
|
70
|
+
}, ie = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
70
71
|
__name: "DocumentName",
|
|
71
72
|
props: {
|
|
72
73
|
modelValue: {},
|
|
@@ -95,9 +96,9 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
95
96
|
placeholder: "Untitled document",
|
|
96
97
|
onInput: a,
|
|
97
98
|
onBlur: s
|
|
98
|
-
}, null, 40,
|
|
99
|
+
}, null, 40, Z)) : (b(), l("span", re, E(i.value || "Untitled document"), 1))]));
|
|
99
100
|
}
|
|
100
|
-
}), [["__scopeId", "data-v-ae6cb472"]]),
|
|
101
|
+
}), [["__scopeId", "data-v-ae6cb472"]]), ae = ["aria-selected", "onMouseenter"], oe = { class: "docx-table-grid-inline__label" }, se = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
101
102
|
__name: "TableGridInline",
|
|
102
103
|
props: {
|
|
103
104
|
gridRows: { default: 6 },
|
|
@@ -133,15 +134,15 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
133
134
|
i.value = e.r, s.value = e.c;
|
|
134
135
|
},
|
|
135
136
|
onClick: F(d, ["prevent"])
|
|
136
|
-
}, null, 42,
|
|
137
|
+
}, null, 42, ae))), 128))], 36), u("div", oe, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
|
|
137
138
|
}
|
|
138
|
-
}), [["__scopeId", "data-v-79c593ca"]]),
|
|
139
|
+
}), [["__scopeId", "data-v-79c593ca"]]), ce = {
|
|
139
140
|
class: "menu-bar",
|
|
140
141
|
role: "menubar"
|
|
141
|
-
},
|
|
142
|
+
}, le = {
|
|
142
143
|
key: 1,
|
|
143
144
|
class: "menu-bar__break-submenu"
|
|
144
|
-
}, ue = ["onClick"],
|
|
145
|
+
}, ue = ["onClick"], Q = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
145
146
|
__name: "MenuBar",
|
|
146
147
|
props: {
|
|
147
148
|
showFileOpen: {
|
|
@@ -237,7 +238,7 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
237
238
|
label: h("toolbar.reportIssue"),
|
|
238
239
|
onClick: g("reportIssue")
|
|
239
240
|
}]);
|
|
240
|
-
return (t, n) => (b(), l("div",
|
|
241
|
+
return (t, n) => (b(), l("div", ce, [
|
|
241
242
|
f(O(d), {
|
|
242
243
|
label: O(h)("toolbar.file"),
|
|
243
244
|
items: _.value
|
|
@@ -250,12 +251,12 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
250
251
|
label: O(h)("toolbar.insert"),
|
|
251
252
|
items: y.value
|
|
252
253
|
}, {
|
|
253
|
-
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(
|
|
254
|
+
submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(se, {
|
|
254
255
|
key: 0,
|
|
255
256
|
onInsert: (e, n) => {
|
|
256
257
|
m("insert-table", e, n), t();
|
|
257
258
|
}
|
|
258
|
-
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div",
|
|
259
|
+
}, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div", le, [(b(!0), l(a, null, C(x.value, (e) => (b(), l("button", {
|
|
259
260
|
key: e.action,
|
|
260
261
|
type: "button",
|
|
261
262
|
class: "menu-bar__break-item",
|
|
@@ -275,7 +276,7 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
275
276
|
}, null, 8, ["label", "items"])) : c("", !0)
|
|
276
277
|
]));
|
|
277
278
|
}
|
|
278
|
-
}), [["__scopeId", "data-v-bd3f3f2c"]]),
|
|
279
|
+
}), [["__scopeId", "data-v-bd3f3f2c"]]), de = [
|
|
279
280
|
"disabled",
|
|
280
281
|
"aria-label",
|
|
281
282
|
"title",
|
|
@@ -317,7 +318,7 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
317
318
|
}, null, 8, ["name"]), f(r, {
|
|
318
319
|
name: "arrow_drop_down",
|
|
319
320
|
size: 14
|
|
320
|
-
})], 10,
|
|
321
|
+
})], 10, de)]),
|
|
321
322
|
panel: M(() => [u("div", fe, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
|
|
322
323
|
key: t.value,
|
|
323
324
|
type: "button",
|
|
@@ -587,7 +588,7 @@ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
587
588
|
panel: M(() => [u("div", {
|
|
588
589
|
class: "review-controls__panel",
|
|
589
590
|
onMousedown: n[3] ||= F(() => {}, ["prevent"])
|
|
590
|
-
}, [(b(!0), l(a, null, C(O(
|
|
591
|
+
}, [(b(!0), l(a, null, C(O(K), (t) => (b(), l("button", {
|
|
591
592
|
key: t,
|
|
592
593
|
type: "button",
|
|
593
594
|
class: "review-controls__option",
|
|
@@ -944,7 +945,19 @@ var Xe = {
|
|
|
944
945
|
"title",
|
|
945
946
|
"aria-label",
|
|
946
947
|
"disabled"
|
|
947
|
-
], Dt = ["title", "aria-label"], Ot = ["aria-expanded", "title"], kt = ["onMousedown"], At = ["title", "aria-label"], jt = [
|
|
948
|
+
], Dt = ["title", "aria-label"], Ot = ["aria-expanded", "title"], kt = ["onMousedown"], At = ["title", "aria-label"], jt = [
|
|
949
|
+
"title",
|
|
950
|
+
"aria-label",
|
|
951
|
+
"aria-pressed"
|
|
952
|
+
], Mt = [
|
|
953
|
+
"title",
|
|
954
|
+
"aria-label",
|
|
955
|
+
"aria-pressed"
|
|
956
|
+
], Nt = {
|
|
957
|
+
key: 0,
|
|
958
|
+
"data-testid": "toolbar-comments-count",
|
|
959
|
+
class: "basic-toolbar__comment-count"
|
|
960
|
+
}, Pt = ["title", "aria-label"], Ft = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
948
961
|
__name: "Toolbar",
|
|
949
962
|
props: {
|
|
950
963
|
view: { default: null },
|
|
@@ -973,6 +986,9 @@ var Xe = {
|
|
|
973
986
|
default: !1
|
|
974
987
|
},
|
|
975
988
|
commentsSidebarOpen: { type: Boolean },
|
|
989
|
+
outlineDrawer: { type: Boolean },
|
|
990
|
+
outlineDrawerOpen: { type: Boolean },
|
|
991
|
+
commentCount: { default: 0 },
|
|
976
992
|
imageContext: {},
|
|
977
993
|
theme: {},
|
|
978
994
|
fontFamilies: {},
|
|
@@ -1002,17 +1018,17 @@ var Xe = {
|
|
|
1002
1018
|
"image-transform"
|
|
1003
1019
|
],
|
|
1004
1020
|
setup(e, { emit: t }) {
|
|
1005
|
-
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 ?? Be), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), R = S(null),
|
|
1006
|
-
zoom:
|
|
1021
|
+
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 ?? Be), 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 } = Ve({
|
|
1022
|
+
zoom: B,
|
|
1007
1023
|
style: A,
|
|
1008
1024
|
font: j,
|
|
1009
1025
|
size: M,
|
|
1010
1026
|
align: N,
|
|
1011
1027
|
spacing: R
|
|
1012
|
-
}),
|
|
1028
|
+
}), G = o(() => {
|
|
1013
1029
|
m.stateTick;
|
|
1014
1030
|
let e = m.view;
|
|
1015
|
-
return e ?
|
|
1031
|
+
return e ? z(e.state) : {
|
|
1016
1032
|
hasSelection: !1,
|
|
1017
1033
|
isMultiParagraph: !1,
|
|
1018
1034
|
textFormatting: {},
|
|
@@ -1024,63 +1040,63 @@ var Xe = {
|
|
|
1024
1040
|
inInsertion: !1,
|
|
1025
1041
|
inDeletion: !1
|
|
1026
1042
|
};
|
|
1027
|
-
}),
|
|
1028
|
-
let e =
|
|
1043
|
+
}), K = o(() => {
|
|
1044
|
+
let e = G.value.textFormatting.fontFamily;
|
|
1029
1045
|
return e?.ascii || e?.hAnsi || "Arial";
|
|
1030
1046
|
}), J = o(() => {
|
|
1031
|
-
let e =
|
|
1047
|
+
let e = G.value.textFormatting.fontSize;
|
|
1032
1048
|
return e ? e / 2 : 11;
|
|
1033
|
-
}), Y = o(() =>
|
|
1049
|
+
}), Y = o(() => G.value.paragraphFormatting.alignment || "left"), X = o(() => {
|
|
1034
1050
|
switch (Y.value) {
|
|
1035
1051
|
case "center": return "format_align_center";
|
|
1036
1052
|
case "right": return "format_align_right";
|
|
1037
1053
|
case "both": return "format_align_justify";
|
|
1038
1054
|
default: return "format_align_left";
|
|
1039
1055
|
}
|
|
1040
|
-
}), { resolvedParagraphStyles:
|
|
1056
|
+
}), { resolvedParagraphStyles: ne, currentStyleLabel: Z } = Ye({
|
|
1041
1057
|
documentStyles: () => m.documentStyles,
|
|
1042
|
-
currentStyleId: () =>
|
|
1058
|
+
currentStyleId: () => G.value.paragraphFormatting.styleId || "Normal",
|
|
1043
1059
|
t: h
|
|
1044
|
-
}),
|
|
1060
|
+
}), re = o(() => {
|
|
1045
1061
|
m.stateTick;
|
|
1046
1062
|
let e = m.view;
|
|
1047
|
-
return e ?
|
|
1048
|
-
}),
|
|
1063
|
+
return e ? te(e.state) > 0 : !1;
|
|
1064
|
+
}), ie = o(() => {
|
|
1049
1065
|
m.stateTick;
|
|
1050
1066
|
let e = m.view;
|
|
1051
|
-
return e ?
|
|
1052
|
-
}),
|
|
1053
|
-
let e =
|
|
1067
|
+
return e ? ee(e.state) > 0 : !1;
|
|
1068
|
+
}), ae = o(() => {
|
|
1069
|
+
let e = G.value, t = L(e.listState) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
|
|
1054
1070
|
return t || n;
|
|
1055
|
-
}),
|
|
1056
|
-
let e =
|
|
1071
|
+
}), oe = o(() => {
|
|
1072
|
+
let e = G.value.textFormatting.color?.rgb;
|
|
1057
1073
|
return e ? e.replace(/^#/, "").toUpperCase() : void 0;
|
|
1058
|
-
}),
|
|
1059
|
-
let e =
|
|
1074
|
+
}), se = o(() => {
|
|
1075
|
+
let e = G.value.textFormatting.highlight;
|
|
1060
1076
|
if (!(!e || e === "none")) return e.replace(/^#/, "").toUpperCase();
|
|
1061
|
-
}),
|
|
1077
|
+
}), ce = o(() => Ne(m.fontFamilies) ?? Ie), le = o(() => Fe(m.documentFonts, ce.value.map((e) => e.name))), ue = o(() => [
|
|
1062
1078
|
{
|
|
1063
1079
|
label: h("font.documentFonts"),
|
|
1064
|
-
fonts:
|
|
1080
|
+
fonts: le.value
|
|
1065
1081
|
},
|
|
1066
1082
|
{
|
|
1067
1083
|
label: h("font.sansSerif"),
|
|
1068
|
-
fonts:
|
|
1084
|
+
fonts: ce.value.filter((e) => e.category === "sans-serif")
|
|
1069
1085
|
},
|
|
1070
1086
|
{
|
|
1071
1087
|
label: h("font.serif"),
|
|
1072
|
-
fonts:
|
|
1088
|
+
fonts: ce.value.filter((e) => e.category === "serif")
|
|
1073
1089
|
},
|
|
1074
1090
|
{
|
|
1075
1091
|
label: h("font.monospace"),
|
|
1076
|
-
fonts:
|
|
1092
|
+
fonts: ce.value.filter((e) => e.category === "monospace")
|
|
1077
1093
|
},
|
|
1078
1094
|
{
|
|
1079
1095
|
label: h("font.other"),
|
|
1080
|
-
fonts:
|
|
1096
|
+
fonts: ce.value.filter((e) => !e.category || e.category === "other")
|
|
1081
1097
|
}
|
|
1082
1098
|
]);
|
|
1083
|
-
function
|
|
1099
|
+
function Q(e, ...t) {
|
|
1084
1100
|
let n = m.view;
|
|
1085
1101
|
if (!n) return;
|
|
1086
1102
|
let r = m.getCommands()[e];
|
|
@@ -1088,60 +1104,60 @@ var Xe = {
|
|
|
1088
1104
|
typeof console < "u" && console.warn("[Toolbar] command not found:", e);
|
|
1089
1105
|
return;
|
|
1090
1106
|
}
|
|
1091
|
-
r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(),
|
|
1107
|
+
r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), V.value = null;
|
|
1092
1108
|
}
|
|
1093
|
-
function
|
|
1094
|
-
|
|
1109
|
+
function de(e) {
|
|
1110
|
+
Q("setFontFamily", e);
|
|
1095
1111
|
}
|
|
1096
|
-
let { onSizeFocus:
|
|
1112
|
+
let { onSizeFocus: fe, onSizeInput: pe, commitFontSize: me, pickFontSize: _e, increaseFontSize: ve, decreaseFontSize: ye } = He({
|
|
1097
1113
|
currentFontSize: J,
|
|
1098
|
-
openDropdown:
|
|
1099
|
-
recomputeDropdownPos:
|
|
1100
|
-
execCommand:
|
|
1114
|
+
openDropdown: V,
|
|
1115
|
+
recomputeDropdownPos: W,
|
|
1116
|
+
execCommand: Q
|
|
1101
1117
|
});
|
|
1102
|
-
function
|
|
1118
|
+
function be(e) {
|
|
1103
1119
|
if (typeof e == "object" && e.auto) {
|
|
1104
|
-
|
|
1120
|
+
Q("clearTextColor");
|
|
1105
1121
|
return;
|
|
1106
1122
|
}
|
|
1107
|
-
|
|
1123
|
+
Q("setTextColor", typeof e == "string" ? { rgb: e } : e);
|
|
1108
1124
|
}
|
|
1109
|
-
function
|
|
1125
|
+
function xe() {
|
|
1110
1126
|
let e = m.view;
|
|
1111
|
-
e && (
|
|
1127
|
+
e && (q(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
|
|
1128
|
+
}
|
|
1129
|
+
function Se(e) {
|
|
1130
|
+
Q("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
|
|
1112
1131
|
}
|
|
1113
1132
|
function Ce(e) {
|
|
1114
|
-
|
|
1133
|
+
v("apply-style", e), V.value = null;
|
|
1115
1134
|
}
|
|
1116
1135
|
function Te(e) {
|
|
1117
|
-
|
|
1136
|
+
Q("setLineSpacing", e);
|
|
1118
1137
|
}
|
|
1119
1138
|
function Ee(e) {
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1122
|
-
function De(e) {
|
|
1123
|
-
let t = W.value.paragraphFormatting.lineSpacing;
|
|
1139
|
+
let t = G.value.paragraphFormatting.lineSpacing;
|
|
1124
1140
|
return t ? Math.abs(t - e) < 10 : e === 240;
|
|
1125
1141
|
}
|
|
1126
1142
|
return (t, n) => e.view ? (b(), l("div", Xe, [
|
|
1127
1143
|
u("button", {
|
|
1128
1144
|
title: O(h)("undoShortcut"),
|
|
1129
1145
|
"aria-label": O(h)("undo"),
|
|
1130
|
-
disabled: !
|
|
1131
|
-
onMousedown: n[0] ||= F((e) =>
|
|
1146
|
+
disabled: !re.value,
|
|
1147
|
+
onMousedown: n[0] ||= F((e) => Q("undo"), ["prevent"])
|
|
1132
1148
|
}, [f(r, { name: "undo" })], 40, Ze),
|
|
1133
1149
|
u("button", {
|
|
1134
1150
|
title: O(h)("redoShortcut"),
|
|
1135
1151
|
"aria-label": O(h)("redo"),
|
|
1136
|
-
disabled: !
|
|
1137
|
-
onMousedown: n[1] ||= F((e) =>
|
|
1152
|
+
disabled: !ie.value,
|
|
1153
|
+
onMousedown: n[1] ||= F((e) => Q("redo"), ["prevent"])
|
|
1138
1154
|
}, [f(r, { name: "redo" })], 40, Qe),
|
|
1139
|
-
n[
|
|
1155
|
+
n[45] ||= u("span", { class: "divider" }, null, -1),
|
|
1140
1156
|
k.value ? (b(), l("div", {
|
|
1141
1157
|
key: 0,
|
|
1142
1158
|
class: "toolbar-dropdown zoom-group",
|
|
1143
1159
|
ref_key: "zoomDropdownRef",
|
|
1144
|
-
ref:
|
|
1160
|
+
ref: B
|
|
1145
1161
|
}, [
|
|
1146
1162
|
u("button", {
|
|
1147
1163
|
class: "size-btn",
|
|
@@ -1151,8 +1167,8 @@ var Xe = {
|
|
|
1151
1167
|
}, " − ", 40, $e),
|
|
1152
1168
|
u("button", {
|
|
1153
1169
|
class: "toolbar-dropdown__trigger zoom-trigger",
|
|
1154
|
-
onMousedown: n[3] ||= F((e) => O(
|
|
1155
|
-
"aria-expanded": O(
|
|
1170
|
+
onMousedown: n[3] ||= F((e) => O(U)("zoom"), ["prevent"]),
|
|
1171
|
+
"aria-expanded": O(V) === "zoom",
|
|
1156
1172
|
"aria-haspopup": "listbox",
|
|
1157
1173
|
title: O(h)("zoom.zoomLevel")
|
|
1158
1174
|
}, [d(E(y.value) + "% ", 1), f(r, {
|
|
@@ -1166,9 +1182,9 @@ var Xe = {
|
|
|
1166
1182
|
disabled: T.value,
|
|
1167
1183
|
title: O(h)("zoom.zoomIn")
|
|
1168
1184
|
}, " + ", 40, tt),
|
|
1169
|
-
O(
|
|
1185
|
+
O(V) === "zoom" ? (b(), l("div", {
|
|
1170
1186
|
key: 0,
|
|
1171
|
-
style: _(O(
|
|
1187
|
+
style: _(O(H)),
|
|
1172
1188
|
class: "toolbar-dropdown__menu zoom-menu"
|
|
1173
1189
|
}, [(b(!0), l(a, null, C(D.value, (e) => (b(), l("button", {
|
|
1174
1190
|
key: e,
|
|
@@ -1176,54 +1192,54 @@ var Xe = {
|
|
|
1176
1192
|
onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
|
|
1177
1193
|
}, E(Math.round(e * 100)) + "% ", 43, nt))), 128))], 4)) : c("", !0)
|
|
1178
1194
|
], 512)) : c("", !0),
|
|
1179
|
-
n[
|
|
1195
|
+
n[46] ||= u("span", { class: "divider" }, null, -1),
|
|
1180
1196
|
u("div", {
|
|
1181
1197
|
class: "toolbar-dropdown",
|
|
1182
1198
|
ref_key: "styleDropdownRef",
|
|
1183
1199
|
ref: A
|
|
1184
1200
|
}, [u("button", {
|
|
1185
1201
|
class: "toolbar-dropdown__trigger style-trigger",
|
|
1186
|
-
onMousedown: n[5] ||= F((e) => O(
|
|
1187
|
-
"aria-expanded": O(
|
|
1202
|
+
onMousedown: n[5] ||= F((e) => O(U)("style"), ["prevent"]),
|
|
1203
|
+
"aria-expanded": O(V) === "style",
|
|
1188
1204
|
"aria-haspopup": "listbox",
|
|
1189
1205
|
title: O(h)("styles.selectAriaLabel")
|
|
1190
|
-
}, [d(E(O(
|
|
1206
|
+
}, [d(E(O(Z)) + " ", 1), f(r, {
|
|
1191
1207
|
class: "chevron",
|
|
1192
1208
|
name: "arrow_drop_down",
|
|
1193
1209
|
size: 16
|
|
1194
|
-
})], 40, rt), O(
|
|
1210
|
+
})], 40, rt), O(V) === "style" ? (b(), l("div", {
|
|
1195
1211
|
key: 0,
|
|
1196
|
-
style: _(O(
|
|
1212
|
+
style: _(O(H)),
|
|
1197
1213
|
class: "toolbar-dropdown__menu style-menu"
|
|
1198
|
-
}, [(b(!0), l(a, null, C(O(
|
|
1214
|
+
}, [(b(!0), l(a, null, C(O(ne), (e) => (b(), l("button", {
|
|
1199
1215
|
key: e.id,
|
|
1200
|
-
class: g(["toolbar-dropdown__item", { active: (
|
|
1201
|
-
onMousedown: F((t) =>
|
|
1216
|
+
class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
|
|
1217
|
+
onMousedown: F((t) => Ce(e.id), ["prevent"])
|
|
1202
1218
|
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, it))), 128))], 4)) : c("", !0)], 512),
|
|
1203
|
-
n[
|
|
1219
|
+
n[47] ||= u("span", { class: "divider" }, null, -1),
|
|
1204
1220
|
u("div", {
|
|
1205
1221
|
class: "toolbar-dropdown",
|
|
1206
1222
|
ref_key: "fontDropdownRef",
|
|
1207
1223
|
ref: j
|
|
1208
1224
|
}, [u("button", {
|
|
1209
1225
|
class: "toolbar-dropdown__trigger font-trigger",
|
|
1210
|
-
onMousedown: n[6] ||= F((e) => O(
|
|
1211
|
-
"aria-expanded": O(
|
|
1226
|
+
onMousedown: n[6] ||= F((e) => O(U)("font"), ["prevent"]),
|
|
1227
|
+
"aria-expanded": O(V) === "font",
|
|
1212
1228
|
"aria-haspopup": "listbox",
|
|
1213
1229
|
title: O(h)("font.selectAriaLabel")
|
|
1214
|
-
}, [d(E(
|
|
1230
|
+
}, [d(E(K.value) + " ", 1), f(r, {
|
|
1215
1231
|
class: "chevron",
|
|
1216
1232
|
name: "arrow_drop_down",
|
|
1217
1233
|
size: 16
|
|
1218
|
-
})], 40, at), O(
|
|
1234
|
+
})], 40, at), O(V) === "font" ? (b(), l("div", {
|
|
1219
1235
|
key: 0,
|
|
1220
|
-
style: _(O(
|
|
1236
|
+
style: _(O(H)),
|
|
1221
1237
|
class: "toolbar-dropdown__menu font-menu"
|
|
1222
|
-
}, [(b(!0), l(a, null, C(
|
|
1238
|
+
}, [(b(!0), l(a, null, C(ue.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", ot, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
|
|
1223
1239
|
key: e.name,
|
|
1224
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1240
|
+
class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
|
|
1225
1241
|
style: _({ fontFamily: e.fontFamily }),
|
|
1226
|
-
onMousedown: F((t) =>
|
|
1242
|
+
onMousedown: F((t) => de(e.name), ["prevent"])
|
|
1227
1243
|
}, E(e.name), 47, st))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
|
|
1228
1244
|
u("div", {
|
|
1229
1245
|
class: "toolbar-dropdown font-size-group",
|
|
@@ -1232,7 +1248,7 @@ var Xe = {
|
|
|
1232
1248
|
}, [
|
|
1233
1249
|
u("button", {
|
|
1234
1250
|
class: "size-btn",
|
|
1235
|
-
onMousedown: n[7] ||= F((...e) => O(
|
|
1251
|
+
onMousedown: n[7] ||= F((...e) => O(ye) && O(ye)(...e), ["prevent"]),
|
|
1236
1252
|
title: O(h)("decreaseFontSize")
|
|
1237
1253
|
}, " − ", 40, ct),
|
|
1238
1254
|
u("input", {
|
|
@@ -1241,68 +1257,68 @@ var Xe = {
|
|
|
1241
1257
|
value: J.value,
|
|
1242
1258
|
title: O(h)("fontSize"),
|
|
1243
1259
|
onMousedown: n[8] ||= F(() => {}, ["stop"]),
|
|
1244
|
-
onFocus: n[9] ||= (...e) => O(
|
|
1245
|
-
"aria-expanded": O(
|
|
1260
|
+
onFocus: n[9] ||= (...e) => O(fe) && O(fe)(...e),
|
|
1261
|
+
"aria-expanded": O(V) === "size",
|
|
1246
1262
|
"aria-haspopup": "listbox",
|
|
1247
|
-
onInput: n[10] ||= (...e) => O(
|
|
1263
|
+
onInput: n[10] ||= (...e) => O(pe) && O(pe)(...e),
|
|
1248
1264
|
onKeydown: [
|
|
1249
|
-
n[11] ||= P(F((e) => O(
|
|
1250
|
-
n[12] ||= P(F((e) => O(
|
|
1251
|
-
n[13] ||= P(F((e) => O(
|
|
1265
|
+
n[11] ||= P(F((e) => O(ve)(), ["prevent", "stop"]), ["up"]),
|
|
1266
|
+
n[12] ||= P(F((e) => O(ye)(), ["prevent", "stop"]), ["down"]),
|
|
1267
|
+
n[13] ||= P(F((e) => O(me)(e), ["prevent"]), ["enter"])
|
|
1252
1268
|
],
|
|
1253
|
-
onBlur: n[14] ||= (e) => O(
|
|
1269
|
+
onBlur: n[14] ||= (e) => O(me)(e)
|
|
1254
1270
|
}, null, 40, lt),
|
|
1255
1271
|
u("button", {
|
|
1256
1272
|
class: "size-btn",
|
|
1257
|
-
onMousedown: n[15] ||= F((...e) => O(
|
|
1273
|
+
onMousedown: n[15] ||= F((...e) => O(ve) && O(ve)(...e), ["prevent"]),
|
|
1258
1274
|
title: O(h)("increaseFontSize")
|
|
1259
1275
|
}, " + ", 40, ut),
|
|
1260
|
-
O(
|
|
1276
|
+
O(V) === "size" ? (b(), l("div", {
|
|
1261
1277
|
key: 0,
|
|
1262
|
-
style: _(O(
|
|
1278
|
+
style: _(O(H)),
|
|
1263
1279
|
class: "toolbar-dropdown__menu size-menu"
|
|
1264
1280
|
}, [(b(!0), l(a, null, C(O(Le), (e) => (b(), l("button", {
|
|
1265
1281
|
key: e,
|
|
1266
1282
|
class: g(["toolbar-dropdown__item", { active: J.value === e }]),
|
|
1267
|
-
onMousedown: F((t) => O(
|
|
1283
|
+
onMousedown: F((t) => O(_e)(e), ["prevent"])
|
|
1268
1284
|
}, E(e), 43, dt))), 128))], 4)) : c("", !0)
|
|
1269
1285
|
], 512),
|
|
1270
|
-
n[
|
|
1286
|
+
n[48] ||= u("span", { class: "divider" }, null, -1),
|
|
1271
1287
|
u("button", {
|
|
1272
1288
|
title: O(h)("boldShortcut"),
|
|
1273
1289
|
"aria-label": O(h)("bold"),
|
|
1274
|
-
class: g({ active:
|
|
1275
|
-
onMousedown: n[16] ||= F((e) =>
|
|
1290
|
+
class: g({ active: G.value.textFormatting.bold }),
|
|
1291
|
+
onMousedown: n[16] ||= F((e) => Q("toggleBold"), ["prevent"])
|
|
1276
1292
|
}, [f(r, { name: "format_bold" })], 42, ft),
|
|
1277
1293
|
u("button", {
|
|
1278
1294
|
title: O(h)("italicShortcut"),
|
|
1279
1295
|
"aria-label": O(h)("italic"),
|
|
1280
|
-
class: g({ active:
|
|
1281
|
-
onMousedown: n[17] ||= F((e) =>
|
|
1296
|
+
class: g({ active: G.value.textFormatting.italic }),
|
|
1297
|
+
onMousedown: n[17] ||= F((e) => Q("toggleItalic"), ["prevent"])
|
|
1282
1298
|
}, [f(r, { name: "format_italic" })], 42, pt),
|
|
1283
1299
|
u("button", {
|
|
1284
1300
|
title: O(h)("underlineShortcut"),
|
|
1285
1301
|
"aria-label": O(h)("underline"),
|
|
1286
|
-
class: g({ active: !!
|
|
1287
|
-
onMousedown: n[18] ||= F((e) =>
|
|
1302
|
+
class: g({ active: !!G.value.textFormatting.underline }),
|
|
1303
|
+
onMousedown: n[18] ||= F((e) => Q("toggleUnderline"), ["prevent"])
|
|
1288
1304
|
}, [f(r, { name: "format_underlined" })], 42, mt),
|
|
1289
1305
|
u("button", {
|
|
1290
1306
|
title: O(h)("formattingBar.strikethrough"),
|
|
1291
1307
|
"aria-label": O(h)("formattingBar.strikethrough"),
|
|
1292
|
-
class: g({ active:
|
|
1293
|
-
onMousedown: n[19] ||= F((e) =>
|
|
1308
|
+
class: g({ active: G.value.textFormatting.strike }),
|
|
1309
|
+
onMousedown: n[19] ||= F((e) => Q("toggleStrike"), ["prevent"])
|
|
1294
1310
|
}, [f(r, { name: "strikethrough_s" })], 42, ht),
|
|
1295
1311
|
f(O(p), {
|
|
1296
1312
|
mode: "text",
|
|
1297
|
-
value:
|
|
1313
|
+
value: oe.value,
|
|
1298
1314
|
theme: e.theme ?? null,
|
|
1299
|
-
onChange:
|
|
1315
|
+
onChange: be
|
|
1300
1316
|
}, null, 8, ["value", "theme"]),
|
|
1301
1317
|
f(O(p), {
|
|
1302
1318
|
mode: "highlight",
|
|
1303
|
-
value:
|
|
1319
|
+
value: se.value,
|
|
1304
1320
|
theme: e.theme ?? null,
|
|
1305
|
-
onChange:
|
|
1321
|
+
onChange: Se
|
|
1306
1322
|
}, null, 8, ["value", "theme"]),
|
|
1307
1323
|
u("button", {
|
|
1308
1324
|
title: O(h)("formattingBar.insertLinkShortcut"),
|
|
@@ -1312,40 +1328,40 @@ var Xe = {
|
|
|
1312
1328
|
u("button", {
|
|
1313
1329
|
title: O(h)("formattingBar.superscriptShortcut"),
|
|
1314
1330
|
"aria-label": O(h)("formattingBar.superscript"),
|
|
1315
|
-
class: g({ active:
|
|
1316
|
-
onMousedown: n[21] ||= F((e) =>
|
|
1331
|
+
class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
|
|
1332
|
+
onMousedown: n[21] ||= F((e) => Q("toggleSuperscript"), ["prevent"])
|
|
1317
1333
|
}, [f(r, { name: "superscript" })], 42, _t),
|
|
1318
1334
|
u("button", {
|
|
1319
1335
|
title: O(h)("formattingBar.subscriptShortcut"),
|
|
1320
1336
|
"aria-label": O(h)("formattingBar.subscript"),
|
|
1321
|
-
class: g({ active:
|
|
1322
|
-
onMousedown: n[22] ||= F((e) =>
|
|
1337
|
+
class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
|
|
1338
|
+
onMousedown: n[22] ||= F((e) => Q("toggleSubscript"), ["prevent"])
|
|
1323
1339
|
}, [f(r, { name: "subscript" })], 42, vt),
|
|
1324
|
-
n[
|
|
1340
|
+
n[49] ||= u("span", { class: "divider" }, null, -1),
|
|
1325
1341
|
u("div", {
|
|
1326
1342
|
class: "toolbar-dropdown",
|
|
1327
1343
|
ref_key: "alignDropdownRef",
|
|
1328
1344
|
ref: N
|
|
1329
1345
|
}, [u("button", {
|
|
1330
1346
|
class: "toolbar-dropdown__trigger align-trigger",
|
|
1331
|
-
onMousedown: n[23] ||= F((e) => O(
|
|
1332
|
-
"aria-expanded": O(
|
|
1347
|
+
onMousedown: n[23] ||= F((e) => O(U)("align"), ["prevent"]),
|
|
1348
|
+
"aria-expanded": O(V) === "align",
|
|
1333
1349
|
"aria-haspopup": "listbox",
|
|
1334
1350
|
title: O(h)("alignmentGroup")
|
|
1335
|
-
}, [f(r, { name:
|
|
1351
|
+
}, [f(r, { name: X.value }, null, 8, ["name"]), f(r, {
|
|
1336
1352
|
class: "chevron",
|
|
1337
1353
|
name: "arrow_drop_down",
|
|
1338
1354
|
size: 16
|
|
1339
|
-
})], 40, yt), O(
|
|
1355
|
+
})], 40, yt), O(V) === "align" ? (b(), l("div", {
|
|
1340
1356
|
key: 0,
|
|
1341
|
-
style: _(O(
|
|
1357
|
+
style: _(O(H)),
|
|
1342
1358
|
class: "toolbar-dropdown__menu align-strip"
|
|
1343
1359
|
}, [
|
|
1344
1360
|
u("button", {
|
|
1345
1361
|
class: g(["align-strip__btn", { active: Y.value === "left" }]),
|
|
1346
1362
|
title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
|
|
1347
1363
|
onMousedown: n[24] ||= F((e) => {
|
|
1348
|
-
|
|
1364
|
+
Q("alignLeft"), V.value = null;
|
|
1349
1365
|
}, ["prevent"])
|
|
1350
1366
|
}, [f(r, {
|
|
1351
1367
|
name: "format_align_left",
|
|
@@ -1355,7 +1371,7 @@ var Xe = {
|
|
|
1355
1371
|
class: g(["align-strip__btn", { active: Y.value === "center" }]),
|
|
1356
1372
|
title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
|
|
1357
1373
|
onMousedown: n[25] ||= F((e) => {
|
|
1358
|
-
|
|
1374
|
+
Q("alignCenter"), V.value = null;
|
|
1359
1375
|
}, ["prevent"])
|
|
1360
1376
|
}, [f(r, {
|
|
1361
1377
|
name: "format_align_center",
|
|
@@ -1365,7 +1381,7 @@ var Xe = {
|
|
|
1365
1381
|
class: g(["align-strip__btn", { active: Y.value === "right" }]),
|
|
1366
1382
|
title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
|
|
1367
1383
|
onMousedown: n[26] ||= F((e) => {
|
|
1368
|
-
|
|
1384
|
+
Q("alignRight"), V.value = null;
|
|
1369
1385
|
}, ["prevent"])
|
|
1370
1386
|
}, [f(r, {
|
|
1371
1387
|
name: "format_align_right",
|
|
@@ -1375,7 +1391,7 @@ var Xe = {
|
|
|
1375
1391
|
class: g(["align-strip__btn", { active: Y.value === "both" }]),
|
|
1376
1392
|
title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
|
|
1377
1393
|
onMousedown: n[27] ||= F((e) => {
|
|
1378
|
-
|
|
1394
|
+
Q("alignJustify"), V.value = null;
|
|
1379
1395
|
}, ["prevent"])
|
|
1380
1396
|
}, [f(r, {
|
|
1381
1397
|
name: "format_align_justify",
|
|
@@ -1385,25 +1401,25 @@ var Xe = {
|
|
|
1385
1401
|
u("button", {
|
|
1386
1402
|
title: O(h)("bulletList"),
|
|
1387
1403
|
"aria-label": O(h)("bulletList"),
|
|
1388
|
-
class: g({ active:
|
|
1389
|
-
onMousedown: n[28] ||= F((e) =>
|
|
1404
|
+
class: g({ active: G.value.listState.type === "bullet" }),
|
|
1405
|
+
onMousedown: n[28] ||= F((e) => Q("toggleBulletList"), ["prevent"])
|
|
1390
1406
|
}, [f(r, { name: "format_list_bulleted" })], 42, wt),
|
|
1391
1407
|
u("button", {
|
|
1392
1408
|
title: O(h)("numberedList"),
|
|
1393
1409
|
"aria-label": O(h)("numberedList"),
|
|
1394
|
-
class: g({ active:
|
|
1395
|
-
onMousedown: n[29] ||= F((e) =>
|
|
1410
|
+
class: g({ active: G.value.listState.type === "numbered" }),
|
|
1411
|
+
onMousedown: n[29] ||= F((e) => Q("toggleNumberedList"), ["prevent"])
|
|
1396
1412
|
}, [f(r, { name: "format_list_numbered" })], 42, Tt),
|
|
1397
1413
|
u("button", {
|
|
1398
1414
|
title: O(h)("decreaseIndent"),
|
|
1399
1415
|
"aria-label": O(h)("decreaseIndent"),
|
|
1400
|
-
disabled: !
|
|
1401
|
-
onMousedown: n[30] ||= F((e) =>
|
|
1416
|
+
disabled: !ae.value,
|
|
1417
|
+
onMousedown: n[30] ||= F((e) => Q("outdent"), ["prevent"])
|
|
1402
1418
|
}, [f(r, { name: "format_indent_decrease" })], 40, Et),
|
|
1403
1419
|
u("button", {
|
|
1404
1420
|
title: O(h)("increaseIndent"),
|
|
1405
1421
|
"aria-label": O(h)("increaseIndent"),
|
|
1406
|
-
onMousedown: n[31] ||= F((e) =>
|
|
1422
|
+
onMousedown: n[31] ||= F((e) => Q("indent"), ["prevent"])
|
|
1407
1423
|
}, [f(r, { name: "format_indent_increase" })], 40, Dt),
|
|
1408
1424
|
u("div", {
|
|
1409
1425
|
class: "toolbar-dropdown",
|
|
@@ -1411,70 +1427,85 @@ var Xe = {
|
|
|
1411
1427
|
ref: R
|
|
1412
1428
|
}, [u("button", {
|
|
1413
1429
|
class: "toolbar-dropdown__trigger",
|
|
1414
|
-
onMousedown: n[32] ||= F((e) => O(
|
|
1415
|
-
"aria-expanded": O(
|
|
1430
|
+
onMousedown: n[32] ||= F((e) => O(U)("spacing"), ["prevent"]),
|
|
1431
|
+
"aria-expanded": O(V) === "spacing",
|
|
1416
1432
|
"aria-haspopup": "listbox",
|
|
1417
1433
|
title: O(h)("lineSpacing.label")
|
|
1418
1434
|
}, [f(r, { name: "format_line_spacing" }), f(r, {
|
|
1419
1435
|
class: "chevron",
|
|
1420
1436
|
name: "arrow_drop_down",
|
|
1421
1437
|
size: 16
|
|
1422
|
-
})], 40, Ot), O(
|
|
1438
|
+
})], 40, Ot), O(V) === "spacing" ? (b(), l("div", {
|
|
1423
1439
|
key: 0,
|
|
1424
|
-
style: _(O(
|
|
1440
|
+
style: _(O(H)),
|
|
1425
1441
|
class: "toolbar-dropdown__menu"
|
|
1426
1442
|
}, [(b(!0), l(a, null, C(O(ze), (e) => (b(), l("button", {
|
|
1427
1443
|
key: e.value,
|
|
1428
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1429
|
-
onMousedown: F((t) =>
|
|
1444
|
+
class: g(["toolbar-dropdown__item", { active: Ee(e.value) }]),
|
|
1445
|
+
onMousedown: F((t) => Te(e.value), ["prevent"])
|
|
1430
1446
|
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, kt))), 128))], 4)) : c("", !0)], 512),
|
|
1431
1447
|
u("button", {
|
|
1432
1448
|
title: O(h)("formattingBar.clearFormatting"),
|
|
1433
1449
|
"aria-label": O(h)("formattingBar.clearFormatting"),
|
|
1434
|
-
onMousedown: F(
|
|
1450
|
+
onMousedown: F(xe, ["prevent"])
|
|
1435
1451
|
}, [f(r, { name: "format_clear" })], 40, At),
|
|
1436
|
-
n[
|
|
1452
|
+
n[50] ||= u("span", { class: "divider" }, null, -1),
|
|
1453
|
+
e.outlineDrawer ? (b(), l("button", {
|
|
1454
|
+
key: 1,
|
|
1455
|
+
type: "button",
|
|
1456
|
+
"data-testid": "toolbar-outline-toggle",
|
|
1457
|
+
title: O(h)("editor.showDocumentOutline"),
|
|
1458
|
+
"aria-label": O(h)("editor.showDocumentOutline"),
|
|
1459
|
+
"aria-pressed": e.outlineDrawerOpen,
|
|
1460
|
+
class: g({ active: e.outlineDrawerOpen }),
|
|
1461
|
+
onMousedown: n[33] ||= F(() => {}, ["prevent"]),
|
|
1462
|
+
onClick: n[34] ||= (e) => t.$emit("toggle-outline")
|
|
1463
|
+
}, [f(r, { name: "format_list_bulleted" })], 42, jt)) : c("", !0),
|
|
1437
1464
|
u("button", {
|
|
1465
|
+
type: "button",
|
|
1466
|
+
"data-testid": "toolbar-comments-toggle",
|
|
1438
1467
|
title: O(h)("formattingBar.commentsAndChanges"),
|
|
1439
1468
|
"aria-label": O(h)("formattingBar.commentsAndChanges"),
|
|
1469
|
+
"aria-pressed": e.commentsSidebarOpen,
|
|
1440
1470
|
class: g({ active: e.commentsSidebarOpen }),
|
|
1441
|
-
onMousedown: n[
|
|
1442
|
-
|
|
1443
|
-
e.
|
|
1444
|
-
|
|
1471
|
+
onMousedown: n[35] ||= F(() => {}, ["prevent"]),
|
|
1472
|
+
onClick: n[36] ||= (e) => t.$emit("toggle-sidebar")
|
|
1473
|
+
}, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span", Nt, E(e.commentCount > 99 ? "99+" : e.commentCount), 1)) : c("", !0)], 42, Mt),
|
|
1474
|
+
e.imageContext ? (b(), l(a, { key: 2 }, [
|
|
1475
|
+
n[43] ||= u("span", { class: "divider" }, null, -1),
|
|
1445
1476
|
f(he, {
|
|
1446
1477
|
"image-context": e.imageContext,
|
|
1447
|
-
onChange: n[
|
|
1478
|
+
onChange: n[37] ||= (e) => t.$emit("image-wrap-type", e)
|
|
1448
1479
|
}, null, 8, ["image-context"]),
|
|
1449
|
-
f(ge, { onTransform: n[
|
|
1480
|
+
f(ge, { onTransform: n[38] ||= (e) => t.$emit("image-transform", e) }),
|
|
1450
1481
|
u("button", {
|
|
1451
1482
|
title: O(h)("formattingBar.imagePropertiesShortcut"),
|
|
1452
1483
|
"aria-label": O(h)("formattingBar.imageProperties"),
|
|
1453
|
-
onMousedown: n[
|
|
1454
|
-
}, [f(r, { name: "tune" })], 40,
|
|
1484
|
+
onMousedown: n[39] ||= F((e) => t.$emit("image-properties"), ["prevent"])
|
|
1485
|
+
}, [f(r, { name: "tune" })], 40, Pt)
|
|
1455
1486
|
], 64)) : c("", !0),
|
|
1456
1487
|
w(t.$slots, "table-context", {}, void 0, !0),
|
|
1457
|
-
e.showReviewControls ? (b(), l(a, { key:
|
|
1488
|
+
e.showReviewControls ? (b(), l(a, { key: 3 }, [n[44] ||= u("span", { class: "divider" }, null, -1), f(Me, {
|
|
1458
1489
|
"track-changes-on": e.trackChangesOn,
|
|
1459
1490
|
"display-mode": e.displayMode,
|
|
1460
1491
|
"read-only": e.readOnly,
|
|
1461
|
-
onToggleTrackChanges: n[
|
|
1462
|
-
"onUpdate:displayMode": n[
|
|
1492
|
+
onToggleTrackChanges: n[40] ||= (e) => t.$emit("toggle-track-changes"),
|
|
1493
|
+
"onUpdate:displayMode": n[41] ||= (e) => t.$emit("update:display-mode", e)
|
|
1463
1494
|
}, null, 8, [
|
|
1464
1495
|
"track-changes-on",
|
|
1465
1496
|
"display-mode",
|
|
1466
1497
|
"read-only"
|
|
1467
1498
|
])], 64)) : c("", !0),
|
|
1468
|
-
n[
|
|
1499
|
+
n[51] ||= u("span", { class: "divider" }, null, -1),
|
|
1469
1500
|
e.editorMode ? (b(), s(we, {
|
|
1470
|
-
key:
|
|
1501
|
+
key: 4,
|
|
1471
1502
|
"model-value": e.editorMode,
|
|
1472
|
-
"onUpdate:modelValue": n[
|
|
1503
|
+
"onUpdate:modelValue": n[42] ||= (e) => t.$emit("mode-change", e)
|
|
1473
1504
|
}, null, 8, ["model-value"])) : c("", !0),
|
|
1474
1505
|
w(t.$slots, "toolbar-extra", {}, void 0, !0)
|
|
1475
1506
|
])) : c("", !0);
|
|
1476
1507
|
}
|
|
1477
|
-
}), [["__scopeId", "data-v-
|
|
1508
|
+
}), [["__scopeId", "data-v-2c05e3c0"]]), It = ["aria-valuemax"], Lt = { class: "docx-horizontal-ruler__ticks" }, Rt = ["title", "onDblclick"], zt = 12240, Bt = 1440, Vt = 1440, Ht = 567, Ut = "var(--doc-primary)", Wt = "var(--doc-primary)", Gt = "var(--doc-primary-hover)", Kt = 5, qt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1478
1509
|
__name: "HorizontalRuler",
|
|
1479
1510
|
props: {
|
|
1480
1511
|
sectionProps: {},
|
|
@@ -1506,14 +1537,14 @@ var Xe = {
|
|
|
1506
1537
|
"tab-stop-remove"
|
|
1507
1538
|
],
|
|
1508
1539
|
setup(e, { emit: t }) {
|
|
1509
|
-
let n = e, r = t, i = Math.round(
|
|
1540
|
+
let n = e, r = t, i = Math.round(Kt * 1.6), s = S(null), d = S(null), f = S(null), p = S(0), m = S("");
|
|
1510
1541
|
function h(e) {
|
|
1511
|
-
return
|
|
1542
|
+
return G(e) * n.zoom;
|
|
1512
1543
|
}
|
|
1513
1544
|
function g(e) {
|
|
1514
|
-
return Math.round(
|
|
1545
|
+
return Math.round(W(e / n.zoom));
|
|
1515
1546
|
}
|
|
1516
|
-
let y = o(() => n.sectionProps?.pageWidth ??
|
|
1547
|
+
let y = o(() => n.sectionProps?.pageWidth ?? zt), x = o(() => n.sectionProps?.marginLeft ?? Bt), w = o(() => n.sectionProps?.marginRight ?? Bt), 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(() => ({
|
|
1517
1548
|
position: "relative",
|
|
1518
1549
|
width: D.value + "px",
|
|
1519
1550
|
height: "22px",
|
|
@@ -1521,7 +1552,7 @@ var Xe = {
|
|
|
1521
1552
|
overflow: "visible",
|
|
1522
1553
|
userSelect: "none",
|
|
1523
1554
|
cursor: d.value ? "ew-resize" : "default"
|
|
1524
|
-
})),
|
|
1555
|
+
})), z = o(() => ({
|
|
1525
1556
|
position: "absolute",
|
|
1526
1557
|
top: 0,
|
|
1527
1558
|
left: 0,
|
|
@@ -1531,7 +1562,7 @@ var Xe = {
|
|
|
1531
1562
|
borderRight: "1px solid var(--doc-shadow-subtle)",
|
|
1532
1563
|
cursor: n.editable ? "ew-resize" : "default",
|
|
1533
1564
|
zIndex: 1
|
|
1534
|
-
})),
|
|
1565
|
+
})), B = o(() => ({
|
|
1535
1566
|
position: "absolute",
|
|
1536
1567
|
top: 0,
|
|
1537
1568
|
right: 0,
|
|
@@ -1541,10 +1572,10 @@ var Xe = {
|
|
|
1541
1572
|
borderLeft: "1px solid var(--doc-shadow-subtle)",
|
|
1542
1573
|
cursor: n.editable ? "ew-resize" : "default",
|
|
1543
1574
|
zIndex: 1
|
|
1544
|
-
})),
|
|
1575
|
+
})), V = o(() => {
|
|
1545
1576
|
let e = [];
|
|
1546
1577
|
if (n.unit === "inch") {
|
|
1547
|
-
let t =
|
|
1578
|
+
let t = Vt / 8, n = Math.ceil(y.value / t);
|
|
1548
1579
|
for (let r = 0; r <= n; r++) {
|
|
1549
1580
|
let n = r * t;
|
|
1550
1581
|
if (n > y.value) break;
|
|
@@ -1565,7 +1596,7 @@ var Xe = {
|
|
|
1565
1596
|
});
|
|
1566
1597
|
}
|
|
1567
1598
|
} else {
|
|
1568
|
-
let t =
|
|
1599
|
+
let t = Ht / 10, n = Math.ceil(y.value / t);
|
|
1569
1600
|
for (let r = 0; r <= n; r++) {
|
|
1570
1601
|
let n = r * t;
|
|
1571
1602
|
if (n > y.value) break;
|
|
@@ -1584,24 +1615,24 @@ var Xe = {
|
|
|
1584
1615
|
}
|
|
1585
1616
|
}
|
|
1586
1617
|
return e;
|
|
1587
|
-
}),
|
|
1618
|
+
}), H = o(() => n.tabStops?.length ? n.tabStops.map((e) => {
|
|
1588
1619
|
let t = e.position;
|
|
1589
1620
|
return {
|
|
1590
1621
|
px: h(t),
|
|
1591
1622
|
twips: t,
|
|
1592
|
-
label:
|
|
1623
|
+
label: U(t)
|
|
1593
1624
|
};
|
|
1594
1625
|
}) : []);
|
|
1595
|
-
function
|
|
1596
|
-
return n.unit === "cm" ? (e /
|
|
1626
|
+
function U(e) {
|
|
1627
|
+
return n.unit === "cm" ? (e / Ht).toFixed(1) + " cm" : (e / Vt).toFixed(2) + "\"";
|
|
1597
1628
|
}
|
|
1598
|
-
function
|
|
1599
|
-
return d.value === e ?
|
|
1629
|
+
function K(e) {
|
|
1630
|
+
return d.value === e ? Gt : f.value === e ? Wt : Ut;
|
|
1600
1631
|
}
|
|
1601
|
-
function
|
|
1632
|
+
function ee(e, t, r) {
|
|
1602
1633
|
return {
|
|
1603
1634
|
position: "absolute",
|
|
1604
|
-
left: t -
|
|
1635
|
+
left: t - Kt + "px",
|
|
1605
1636
|
width: "10px",
|
|
1606
1637
|
height: "10px",
|
|
1607
1638
|
cursor: n.editable ? "ew-resize" : "default",
|
|
@@ -1616,8 +1647,8 @@ var Xe = {
|
|
|
1616
1647
|
left: 0,
|
|
1617
1648
|
width: 0,
|
|
1618
1649
|
height: 0,
|
|
1619
|
-
borderLeft: `${
|
|
1620
|
-
borderRight: `${
|
|
1650
|
+
borderLeft: `${Kt}px solid transparent`,
|
|
1651
|
+
borderRight: `${Kt}px solid transparent`,
|
|
1621
1652
|
borderTop: `${i}px solid ${t}`,
|
|
1622
1653
|
transition: "border-top-color 0.1s"
|
|
1623
1654
|
} : {
|
|
@@ -1626,15 +1657,15 @@ var Xe = {
|
|
|
1626
1657
|
left: 0,
|
|
1627
1658
|
width: 0,
|
|
1628
1659
|
height: 0,
|
|
1629
|
-
borderLeft: `${
|
|
1630
|
-
borderRight: `${
|
|
1660
|
+
borderLeft: `${Kt}px solid transparent`,
|
|
1661
|
+
borderRight: `${Kt}px solid transparent`,
|
|
1631
1662
|
borderBottom: `${i}px solid ${t}`,
|
|
1632
1663
|
transition: "border-bottom-color 0.1s"
|
|
1633
1664
|
};
|
|
1634
1665
|
}
|
|
1635
1666
|
let q = 0;
|
|
1636
1667
|
function J(e, t) {
|
|
1637
|
-
n.editable && (d.value = e, e === "leftMargin" ? q = x.value : e === "rightMargin" ? q = w.value : e === "leftIndent" ? q = n.indentLeft : e === "rightIndent" ? q = n.indentRight : e === "firstLineIndent" && (q = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value =
|
|
1668
|
+
n.editable && (d.value = e, e === "leftMargin" ? q = x.value : e === "rightMargin" ? q = w.value : e === "leftIndent" ? q = n.indentLeft : e === "rightIndent" ? q = n.indentRight : e === "firstLineIndent" && (q = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value = U(q), document.addEventListener("mousemove", Y), document.addEventListener("mouseup", X));
|
|
1638
1669
|
}
|
|
1639
1670
|
function Y(e) {
|
|
1640
1671
|
if (!d.value || !s.value) return;
|
|
@@ -1642,13 +1673,13 @@ var Xe = {
|
|
|
1642
1673
|
if (!t) return;
|
|
1643
1674
|
let n = e.clientX - t.left;
|
|
1644
1675
|
p.value = n;
|
|
1645
|
-
let r = g(n), i =
|
|
1646
|
-
m.value =
|
|
1676
|
+
let r = g(n), i = ne(d.value, r);
|
|
1677
|
+
m.value = U(i), Z(d.value, i);
|
|
1647
1678
|
}
|
|
1648
|
-
function
|
|
1649
|
-
d.value = null, document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup",
|
|
1679
|
+
function X(e) {
|
|
1680
|
+
d.value = null, document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", X);
|
|
1650
1681
|
}
|
|
1651
|
-
function
|
|
1682
|
+
function ne(e, t) {
|
|
1652
1683
|
if (e === "leftMargin") {
|
|
1653
1684
|
let e = y.value - w.value - 720;
|
|
1654
1685
|
return Math.round(Math.max(0, Math.min(t, e)));
|
|
@@ -1668,7 +1699,7 @@ var Xe = {
|
|
|
1668
1699
|
let r = y.value - w.value - t, i = T.value - n.indentLeft - 720;
|
|
1669
1700
|
return Math.round(Math.max(0, Math.min(r, i)));
|
|
1670
1701
|
}
|
|
1671
|
-
function
|
|
1702
|
+
function Z(e, t) {
|
|
1672
1703
|
switch (e) {
|
|
1673
1704
|
case "leftMargin":
|
|
1674
1705
|
r("left-margin-change", t);
|
|
@@ -1688,7 +1719,7 @@ var Xe = {
|
|
|
1688
1719
|
}
|
|
1689
1720
|
}
|
|
1690
1721
|
return v(() => {
|
|
1691
|
-
document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup",
|
|
1722
|
+
document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", X);
|
|
1692
1723
|
}), (t, n) => (b(), l("div", {
|
|
1693
1724
|
ref_key: "rulerRef",
|
|
1694
1725
|
ref: s,
|
|
@@ -1701,15 +1732,15 @@ var Xe = {
|
|
|
1701
1732
|
}, [
|
|
1702
1733
|
u("div", {
|
|
1703
1734
|
class: "docx-horizontal-ruler__margin",
|
|
1704
|
-
style: _(
|
|
1735
|
+
style: _(z.value),
|
|
1705
1736
|
onMousedown: n[0] ||= F((t) => e.editable ? J("leftMargin", t) : null, ["prevent", "stop"])
|
|
1706
1737
|
}, null, 36),
|
|
1707
1738
|
u("div", {
|
|
1708
1739
|
class: "docx-horizontal-ruler__margin",
|
|
1709
|
-
style: _(
|
|
1740
|
+
style: _(B.value),
|
|
1710
1741
|
onMousedown: n[1] ||= F((t) => e.editable ? J("rightMargin", t) : null, ["prevent", "stop"])
|
|
1711
1742
|
}, null, 36),
|
|
1712
|
-
u("div",
|
|
1743
|
+
u("div", Lt, [(b(!0), l(a, null, C(V.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
1713
1744
|
class: "docx-horizontal-ruler__tick-line",
|
|
1714
1745
|
style: _({
|
|
1715
1746
|
left: e.position + "px",
|
|
@@ -1723,42 +1754,42 @@ var Xe = {
|
|
|
1723
1754
|
e.showFirstLineIndent ? (b(), l("div", {
|
|
1724
1755
|
key: 0,
|
|
1725
1756
|
class: "docx-ruler-indent",
|
|
1726
|
-
style: _(
|
|
1757
|
+
style: _(ee("down", L.value, d.value === "firstLineIndent")),
|
|
1727
1758
|
onMousedown: n[2] ||= F((t) => e.editable ? J("firstLineIndent", t) : null, ["prevent", "stop"]),
|
|
1728
1759
|
onMouseenter: n[3] ||= (e) => f.value = "firstLineIndent",
|
|
1729
1760
|
onMouseleave: n[4] ||= (e) => f.value = null
|
|
1730
|
-
}, [u("div", { style: _(te("down",
|
|
1761
|
+
}, [u("div", { style: _(te("down", K("firstLineIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1731
1762
|
e.editable ? (b(), l("div", {
|
|
1732
1763
|
key: 1,
|
|
1733
1764
|
class: "docx-ruler-indent",
|
|
1734
|
-
style: _(
|
|
1765
|
+
style: _(ee("up", P.value, d.value === "leftIndent")),
|
|
1735
1766
|
onMousedown: n[5] ||= F((e) => J("leftIndent", e), ["prevent", "stop"]),
|
|
1736
1767
|
onMouseenter: n[6] ||= (e) => f.value = "leftIndent",
|
|
1737
1768
|
onMouseleave: n[7] ||= (e) => f.value = null
|
|
1738
|
-
}, [u("div", { style: _(te("up",
|
|
1769
|
+
}, [u("div", { style: _(te("up", K("leftIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1739
1770
|
e.editable ? (b(), l("div", {
|
|
1740
1771
|
key: 2,
|
|
1741
1772
|
class: "docx-ruler-indent",
|
|
1742
|
-
style: _(
|
|
1773
|
+
style: _(ee("down", I.value, d.value === "rightIndent")),
|
|
1743
1774
|
onMousedown: n[8] ||= F((e) => J("rightIndent", e), ["prevent", "stop"]),
|
|
1744
1775
|
onMouseenter: n[9] ||= (e) => f.value = "rightIndent",
|
|
1745
1776
|
onMouseleave: n[10] ||= (e) => f.value = null
|
|
1746
|
-
}, [u("div", { style: _(te("down",
|
|
1747
|
-
(b(!0), l(a, null, C(
|
|
1777
|
+
}, [u("div", { style: _(te("down", K("rightIndent"))) }, null, 4)], 36)) : c("", !0),
|
|
1778
|
+
(b(!0), l(a, null, C(H.value, (e, n) => (b(), l("div", {
|
|
1748
1779
|
key: n,
|
|
1749
1780
|
class: "docx-horizontal-ruler__tab",
|
|
1750
1781
|
style: _({ left: e.px + "px" }),
|
|
1751
1782
|
title: `${e.label}`,
|
|
1752
1783
|
onDblclick: F((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
|
|
1753
|
-
}, " L ", 44,
|
|
1784
|
+
}, " L ", 44, Rt))), 128)),
|
|
1754
1785
|
d.value && m.value ? (b(), l("div", {
|
|
1755
1786
|
key: 3,
|
|
1756
1787
|
class: "docx-horizontal-ruler__tooltip",
|
|
1757
1788
|
style: _({ left: p.value + "px" })
|
|
1758
1789
|
}, E(m.value), 5)) : c("", !0)
|
|
1759
|
-
], 12,
|
|
1790
|
+
], 12, It));
|
|
1760
1791
|
}
|
|
1761
|
-
}), [["__scopeId", "data-v-6f3ea48c"]]),
|
|
1792
|
+
}), [["__scopeId", "data-v-6f3ea48c"]]), Jt = ["disabled", "onClick"], Yt = { class: "docx-tbp__panel" }, Xt = ["title", "onClick"], Zt = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1762
1793
|
__name: "TableBorderPicker",
|
|
1763
1794
|
props: { disabled: { type: Boolean } },
|
|
1764
1795
|
emits: ["change"],
|
|
@@ -1832,8 +1863,8 @@ var Xe = {
|
|
|
1832
1863
|
}, [f(r, {
|
|
1833
1864
|
name: "border_all",
|
|
1834
1865
|
size: 20
|
|
1835
|
-
})], 8,
|
|
1836
|
-
panel: M(() => [u("div",
|
|
1866
|
+
})], 8, Jt)]),
|
|
1867
|
+
panel: M(() => [u("div", Yt, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1837
1868
|
key: e.value,
|
|
1838
1869
|
type: "button",
|
|
1839
1870
|
class: "docx-tbp__option",
|
|
@@ -1842,11 +1873,11 @@ var Xe = {
|
|
|
1842
1873
|
}, [f(r, {
|
|
1843
1874
|
name: e.icon,
|
|
1844
1875
|
size: 20
|
|
1845
|
-
}, null, 8, ["name"])], 8,
|
|
1876
|
+
}, null, 8, ["name"])], 8, Xt)), 64))])]),
|
|
1846
1877
|
_: 1
|
|
1847
1878
|
}, 8, ["open"]));
|
|
1848
1879
|
}
|
|
1849
|
-
}), [["__scopeId", "data-v-4e30a014"]]),
|
|
1880
|
+
}), [["__scopeId", "data-v-4e30a014"]]), Qt = /* @__PURE__ */ p({
|
|
1850
1881
|
__name: "TableBorderColorPicker",
|
|
1851
1882
|
props: {
|
|
1852
1883
|
disabled: { type: Boolean },
|
|
@@ -1873,7 +1904,7 @@ var Xe = {
|
|
|
1873
1904
|
"title"
|
|
1874
1905
|
]));
|
|
1875
1906
|
}
|
|
1876
|
-
}),
|
|
1907
|
+
}), $t = ["disabled", "onClick"], en = { class: "docx-tbwidth__panel" }, tn = ["onClick"], nn = { class: "docx-tbwidth__label" }, rn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
1877
1908
|
__name: "TableBorderWidthPicker",
|
|
1878
1909
|
props: { disabled: { type: Boolean } },
|
|
1879
1910
|
emits: ["change"],
|
|
@@ -1937,8 +1968,8 @@ var Xe = {
|
|
|
1937
1968
|
}, [f(r, {
|
|
1938
1969
|
name: "line_weight",
|
|
1939
1970
|
size: 20
|
|
1940
|
-
})], 8,
|
|
1941
|
-
panel: M(() => [u("div",
|
|
1971
|
+
})], 8, $t)]),
|
|
1972
|
+
panel: M(() => [u("div", en, [(b(), l(a, null, C(d, (e) => u("button", {
|
|
1942
1973
|
key: e.eighths,
|
|
1943
1974
|
type: "button",
|
|
1944
1975
|
class: "docx-tbwidth__option",
|
|
@@ -1946,11 +1977,11 @@ var Xe = {
|
|
|
1946
1977
|
}, [u("span", {
|
|
1947
1978
|
class: "docx-tbwidth__preview",
|
|
1948
1979
|
style: _({ borderTopWidth: e.previewPx + "px" })
|
|
1949
|
-
}, null, 4), u("span",
|
|
1980
|
+
}, null, 4), u("span", nn, E(e.label), 1)], 8, tn)), 64))])]),
|
|
1950
1981
|
_: 1
|
|
1951
1982
|
}, 8, ["open"]));
|
|
1952
1983
|
}
|
|
1953
|
-
}), [["__scopeId", "data-v-42a746ba"]]),
|
|
1984
|
+
}), [["__scopeId", "data-v-42a746ba"]]), an = /* @__PURE__ */ p({
|
|
1954
1985
|
__name: "TableCellFillPicker",
|
|
1955
1986
|
props: {
|
|
1956
1987
|
disabled: { type: Boolean },
|
|
@@ -1980,23 +2011,23 @@ var Xe = {
|
|
|
1980
2011
|
"auto-label"
|
|
1981
2012
|
]));
|
|
1982
2013
|
}
|
|
1983
|
-
}),
|
|
2014
|
+
}), on = [
|
|
1984
2015
|
"disabled",
|
|
1985
2016
|
"title",
|
|
1986
2017
|
"onClick"
|
|
1987
|
-
],
|
|
2018
|
+
], sn = ["aria-label"], cn = ["disabled"], ln = ["disabled"], un = ["disabled"], dn = ["disabled"], fn = { class: "docx-tmore__section-label" }, pn = { class: "docx-tmore__icon-row" }, mn = ["title"], hn = ["title"], gn = ["title"], _n = { class: "docx-tmore__section-label" }, vn = { class: "docx-tmore__icon-row" }, yn = ["title"], bn = ["title"], xn = ["title"], Sn = { class: "docx-tmore__grow" }, Cn = {
|
|
1988
2019
|
key: 0,
|
|
1989
2020
|
class: "docx-tmore__sub"
|
|
1990
|
-
},
|
|
2021
|
+
}, wn = { class: "docx-tmore__margin-grid" }, Tn = { class: "docx-tmore__field-label" }, En = ["onUpdate:modelValue"], Dn = { class: "docx-tmore__grow" }, On = {
|
|
1991
2022
|
key: 1,
|
|
1992
2023
|
class: "docx-tmore__sub"
|
|
1993
|
-
},
|
|
2024
|
+
}, kn = { class: "docx-tmore__row-field" }, An = { class: "docx-tmore__field-label" }, jn = { value: "auto" }, Mn = { value: "atLeast" }, Nn = { value: "exact" }, Pn = {
|
|
1994
2025
|
key: 0,
|
|
1995
2026
|
class: "docx-tmore__row-field"
|
|
1996
|
-
},
|
|
2027
|
+
}, Fn = { class: "docx-tmore__field-label" }, In = { class: "docx-tmore__grow" }, Ln = {
|
|
1997
2028
|
key: 2,
|
|
1998
2029
|
class: "docx-tmore__sub docx-tmore__sub--list"
|
|
1999
|
-
},
|
|
2030
|
+
}, Rn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2000
2031
|
__name: "TableMoreDropdown",
|
|
2001
2032
|
props: {
|
|
2002
2033
|
disabled: {
|
|
@@ -2049,14 +2080,14 @@ var Xe = {
|
|
|
2049
2080
|
right: L(w.right)
|
|
2050
2081
|
}), h.value = !1;
|
|
2051
2082
|
}
|
|
2052
|
-
function
|
|
2083
|
+
function z() {
|
|
2053
2084
|
let e = L(T.value);
|
|
2054
2085
|
D.value === "auto" || e <= 0 ? p("row-height", { height: null }) : p("row-height", {
|
|
2055
2086
|
height: e,
|
|
2056
2087
|
rule: D.value
|
|
2057
2088
|
}), h.value = !1;
|
|
2058
2089
|
}
|
|
2059
|
-
function
|
|
2090
|
+
function B(e) {
|
|
2060
2091
|
p("cell-text-direction", e), h.value = !1;
|
|
2061
2092
|
}
|
|
2062
2093
|
return (t, n) => (b(), s(O(o), {
|
|
@@ -2074,7 +2105,7 @@ var Xe = {
|
|
|
2074
2105
|
}, [f(r, {
|
|
2075
2106
|
name: "more_vert",
|
|
2076
2107
|
size: 20
|
|
2077
|
-
})], 10,
|
|
2108
|
+
})], 10, on)]),
|
|
2078
2109
|
panel: M(() => [u("div", {
|
|
2079
2110
|
class: "docx-tmore__panel",
|
|
2080
2111
|
role: "menu",
|
|
@@ -2121,7 +2152,7 @@ var Xe = {
|
|
|
2121
2152
|
}, [f(r, {
|
|
2122
2153
|
name: "call_merge",
|
|
2123
2154
|
size: 18
|
|
2124
|
-
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8,
|
|
2155
|
+
}), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, cn),
|
|
2125
2156
|
u("button", {
|
|
2126
2157
|
type: "button",
|
|
2127
2158
|
class: "docx-tmore__item",
|
|
@@ -2130,7 +2161,7 @@ var Xe = {
|
|
|
2130
2161
|
}, [f(r, {
|
|
2131
2162
|
name: "call_split",
|
|
2132
2163
|
size: 18
|
|
2133
|
-
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8,
|
|
2164
|
+
}), u("span", null, E(O(m)("table.splitCell")), 1)], 8, ln),
|
|
2134
2165
|
n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2135
2166
|
u("button", {
|
|
2136
2167
|
type: "button",
|
|
@@ -2149,7 +2180,7 @@ var Xe = {
|
|
|
2149
2180
|
}, [f(r, {
|
|
2150
2181
|
name: "delete",
|
|
2151
2182
|
size: 18
|
|
2152
|
-
}), u("span", null, E(O(m)("deleteRow")), 1)], 8,
|
|
2183
|
+
}), u("span", null, E(O(m)("deleteRow")), 1)], 8, un),
|
|
2153
2184
|
u("button", {
|
|
2154
2185
|
type: "button",
|
|
2155
2186
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
@@ -2158,7 +2189,7 @@ var Xe = {
|
|
|
2158
2189
|
}, [f(r, {
|
|
2159
2190
|
name: "delete",
|
|
2160
2191
|
size: 18
|
|
2161
|
-
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8,
|
|
2192
|
+
}), u("span", null, E(O(m)("deleteColumn")), 1)], 8, dn),
|
|
2162
2193
|
u("button", {
|
|
2163
2194
|
type: "button",
|
|
2164
2195
|
class: "docx-tmore__item docx-tmore__item--danger",
|
|
@@ -2168,8 +2199,8 @@ var Xe = {
|
|
|
2168
2199
|
size: 18
|
|
2169
2200
|
}), u("span", null, E(O(m)("table.deleteTable")), 1)]),
|
|
2170
2201
|
n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2171
|
-
u("div",
|
|
2172
|
-
u("div",
|
|
2202
|
+
u("div", fn, E(O(m)("tableAdvanced.verticalAlignment")), 1),
|
|
2203
|
+
u("div", pn, [
|
|
2173
2204
|
u("button", {
|
|
2174
2205
|
type: "button",
|
|
2175
2206
|
class: "docx-tmore__icon-btn",
|
|
@@ -2179,7 +2210,7 @@ var Xe = {
|
|
|
2179
2210
|
}, [f(r, {
|
|
2180
2211
|
name: "vertical_align_top",
|
|
2181
2212
|
size: 16
|
|
2182
|
-
})], 40,
|
|
2213
|
+
})], 40, mn),
|
|
2183
2214
|
u("button", {
|
|
2184
2215
|
type: "button",
|
|
2185
2216
|
class: "docx-tmore__icon-btn",
|
|
@@ -2189,7 +2220,7 @@ var Xe = {
|
|
|
2189
2220
|
}, [f(r, {
|
|
2190
2221
|
name: "vertical_align_center",
|
|
2191
2222
|
size: 16
|
|
2192
|
-
})], 40,
|
|
2223
|
+
})], 40, hn),
|
|
2193
2224
|
u("button", {
|
|
2194
2225
|
type: "button",
|
|
2195
2226
|
class: "docx-tmore__icon-btn",
|
|
@@ -2199,11 +2230,11 @@ var Xe = {
|
|
|
2199
2230
|
}, [f(r, {
|
|
2200
2231
|
name: "vertical_align_bottom",
|
|
2201
2232
|
size: 16
|
|
2202
|
-
})], 40,
|
|
2233
|
+
})], 40, gn)
|
|
2203
2234
|
]),
|
|
2204
2235
|
n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2205
|
-
u("div",
|
|
2206
|
-
u("div",
|
|
2236
|
+
u("div", _n, E(O(m)("tableAdvanced.tableAlignment")), 1),
|
|
2237
|
+
u("div", vn, [
|
|
2207
2238
|
u("button", {
|
|
2208
2239
|
type: "button",
|
|
2209
2240
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
|
|
@@ -2213,7 +2244,7 @@ var Xe = {
|
|
|
2213
2244
|
}, [f(r, {
|
|
2214
2245
|
name: "format_align_left",
|
|
2215
2246
|
size: 16
|
|
2216
|
-
})], 42,
|
|
2247
|
+
})], 42, yn),
|
|
2217
2248
|
u("button", {
|
|
2218
2249
|
type: "button",
|
|
2219
2250
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
|
|
@@ -2223,7 +2254,7 @@ var Xe = {
|
|
|
2223
2254
|
}, [f(r, {
|
|
2224
2255
|
name: "format_align_center",
|
|
2225
2256
|
size: 16
|
|
2226
|
-
})], 42,
|
|
2257
|
+
})], 42, bn),
|
|
2227
2258
|
u("button", {
|
|
2228
2259
|
type: "button",
|
|
2229
2260
|
class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
|
|
@@ -2233,7 +2264,7 @@ var Xe = {
|
|
|
2233
2264
|
}, [f(r, {
|
|
2234
2265
|
name: "format_align_right",
|
|
2235
2266
|
size: 16
|
|
2236
|
-
})], 42,
|
|
2267
|
+
})], 42, xn)
|
|
2237
2268
|
]),
|
|
2238
2269
|
n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
2239
2270
|
u("button", {
|
|
@@ -2245,13 +2276,13 @@ var Xe = {
|
|
|
2245
2276
|
name: "padding",
|
|
2246
2277
|
size: 18
|
|
2247
2278
|
}),
|
|
2248
|
-
u("span",
|
|
2279
|
+
u("span", Sn, E(O(m)("tableAdvanced.cellMargins")), 1),
|
|
2249
2280
|
f(r, {
|
|
2250
2281
|
name: _.value ? "expand_less" : "expand_more",
|
|
2251
2282
|
size: 18
|
|
2252
2283
|
}, null, 8, ["name"])
|
|
2253
2284
|
]),
|
|
2254
|
-
_.value ? (b(), l("div",
|
|
2285
|
+
_.value ? (b(), l("div", Cn, [u("div", wn, [(b(), l(a, null, C([
|
|
2255
2286
|
"top",
|
|
2256
2287
|
"bottom",
|
|
2257
2288
|
"left",
|
|
@@ -2260,14 +2291,14 @@ var Xe = {
|
|
|
2260
2291
|
key: e,
|
|
2261
2292
|
class: "docx-tmore__field"
|
|
2262
2293
|
}, [
|
|
2263
|
-
u("span",
|
|
2294
|
+
u("span", Tn, E(e), 1),
|
|
2264
2295
|
N(u("input", {
|
|
2265
2296
|
type: "number",
|
|
2266
2297
|
min: "0",
|
|
2267
2298
|
step: "20",
|
|
2268
2299
|
"onUpdate:modelValue": (t) => w[e] = t,
|
|
2269
2300
|
class: "docx-tmore__input"
|
|
2270
|
-
}, null, 8,
|
|
2301
|
+
}, null, 8, En), [[
|
|
2271
2302
|
A,
|
|
2272
2303
|
w[e],
|
|
2273
2304
|
void 0,
|
|
@@ -2288,23 +2319,23 @@ var Xe = {
|
|
|
2288
2319
|
name: "height",
|
|
2289
2320
|
size: 18
|
|
2290
2321
|
}),
|
|
2291
|
-
u("span",
|
|
2322
|
+
u("span", Dn, E(O(m)("tableAdvanced.rowHeight")), 1),
|
|
2292
2323
|
f(r, {
|
|
2293
2324
|
name: v.value ? "expand_less" : "expand_more",
|
|
2294
2325
|
size: 18
|
|
2295
2326
|
}, null, 8, ["name"])
|
|
2296
2327
|
]),
|
|
2297
|
-
v.value ? (b(), l("div",
|
|
2298
|
-
u("label",
|
|
2328
|
+
v.value ? (b(), l("div", On, [
|
|
2329
|
+
u("label", kn, [u("span", An, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
|
|
2299
2330
|
"onUpdate:modelValue": n[24] ||= (e) => D.value = e,
|
|
2300
2331
|
class: "docx-tmore__select"
|
|
2301
2332
|
}, [
|
|
2302
|
-
u("option",
|
|
2303
|
-
u("option",
|
|
2304
|
-
u("option",
|
|
2333
|
+
u("option", jn, E(O(m)("tableAdvanced.heightRules.auto")), 1),
|
|
2334
|
+
u("option", Mn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
|
|
2335
|
+
u("option", Nn, E(O(m)("tableAdvanced.heightRules.exact")), 1)
|
|
2305
2336
|
], 512), [[k, D.value]])]),
|
|
2306
|
-
D.value === "auto" ? c("", !0) : (b(), l("label",
|
|
2307
|
-
u("span",
|
|
2337
|
+
D.value === "auto" ? c("", !0) : (b(), l("label", Pn, [
|
|
2338
|
+
u("span", Fn, E(O(m)("tableAdvanced.height")), 1),
|
|
2308
2339
|
N(u("input", {
|
|
2309
2340
|
type: "number",
|
|
2310
2341
|
min: "0",
|
|
@@ -2322,7 +2353,7 @@ var Xe = {
|
|
|
2322
2353
|
u("button", {
|
|
2323
2354
|
type: "button",
|
|
2324
2355
|
class: "docx-tmore__apply",
|
|
2325
|
-
onClick: F(
|
|
2356
|
+
onClick: F(z, ["prevent"])
|
|
2326
2357
|
}, E(O(m)("common.apply")), 1)
|
|
2327
2358
|
])) : c("", !0),
|
|
2328
2359
|
u("button", {
|
|
@@ -2334,27 +2365,27 @@ var Xe = {
|
|
|
2334
2365
|
name: "text_rotation_none",
|
|
2335
2366
|
size: 18
|
|
2336
2367
|
}),
|
|
2337
|
-
u("span",
|
|
2368
|
+
u("span", In, E(O(m)("textDirection")), 1),
|
|
2338
2369
|
f(r, {
|
|
2339
2370
|
name: y.value ? "expand_less" : "expand_more",
|
|
2340
2371
|
size: 18
|
|
2341
2372
|
}, null, 8, ["name"])
|
|
2342
2373
|
]),
|
|
2343
|
-
y.value ? (b(), l("div",
|
|
2374
|
+
y.value ? (b(), l("div", Ln, [
|
|
2344
2375
|
u("button", {
|
|
2345
2376
|
type: "button",
|
|
2346
2377
|
class: "docx-tmore__sub-item",
|
|
2347
|
-
onClick: n[27] ||= F((e) =>
|
|
2378
|
+
onClick: n[27] ||= F((e) => B(null), ["prevent"])
|
|
2348
2379
|
}, E(O(m)("tableAdvanced.textDirections.horizontal")), 1),
|
|
2349
2380
|
u("button", {
|
|
2350
2381
|
type: "button",
|
|
2351
2382
|
class: "docx-tmore__sub-item",
|
|
2352
|
-
onClick: n[28] ||= F((e) =>
|
|
2383
|
+
onClick: n[28] ||= F((e) => B("tbRl"), ["prevent"])
|
|
2353
2384
|
}, E(O(m)("tableAdvanced.textDirections.verticalRL")), 1),
|
|
2354
2385
|
u("button", {
|
|
2355
2386
|
type: "button",
|
|
2356
2387
|
class: "docx-tmore__sub-item",
|
|
2357
|
-
onClick: n[29] ||= F((e) =>
|
|
2388
|
+
onClick: n[29] ||= F((e) => B("btLr"), ["prevent"])
|
|
2358
2389
|
}, E(O(m)("tableAdvanced.textDirections.verticalLR")), 1)
|
|
2359
2390
|
])) : c("", !0),
|
|
2360
2391
|
n[45] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
|
|
@@ -2399,11 +2430,11 @@ var Xe = {
|
|
|
2399
2430
|
name: "settings",
|
|
2400
2431
|
size: 18
|
|
2401
2432
|
}), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
|
|
2402
|
-
], 8,
|
|
2433
|
+
], 8, sn)]),
|
|
2403
2434
|
_: 1
|
|
2404
2435
|
}, 8, ["open"]));
|
|
2405
2436
|
}
|
|
2406
|
-
}), [["__scopeId", "data-v-5d357bc4"]]),
|
|
2437
|
+
}), [["__scopeId", "data-v-5d357bc4"]]), zn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2407
2438
|
__name: "TableToolbar",
|
|
2408
2439
|
props: {
|
|
2409
2440
|
view: {},
|
|
@@ -2530,14 +2561,14 @@ var Xe = {
|
|
|
2530
2561
|
onRowHeight: N
|
|
2531
2562
|
}), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
|
|
2532
2563
|
n[0] ||= u("span", { class: "divider" }, null, -1),
|
|
2533
|
-
f(
|
|
2534
|
-
f(
|
|
2535
|
-
f(
|
|
2536
|
-
f(
|
|
2564
|
+
f(Zt, { onChange: w }),
|
|
2565
|
+
f(Qt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
|
|
2566
|
+
f(rn, { onChange: E }),
|
|
2567
|
+
f(an, {
|
|
2537
2568
|
theme: e.theme ?? null,
|
|
2538
2569
|
onChange: D
|
|
2539
2570
|
}, null, 8, ["theme"]),
|
|
2540
|
-
f(
|
|
2571
|
+
f(Rn, {
|
|
2541
2572
|
"can-split": p.value,
|
|
2542
2573
|
"can-merge": _.value,
|
|
2543
2574
|
"row-count": v.value,
|
|
@@ -2556,7 +2587,7 @@ var Xe = {
|
|
|
2556
2587
|
])
|
|
2557
2588
|
], 64)) : c("", !0);
|
|
2558
2589
|
}
|
|
2559
|
-
}), [["__scopeId", "data-v-c73a7e43"]]),
|
|
2590
|
+
}), [["__scopeId", "data-v-c73a7e43"]]), Bn = { class: "docx-vertical-ruler__ticks" }, Vn = 15840, Hn = 1440, Un = 1440, Wn = 567, Gn = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2560
2591
|
__name: "VerticalRuler",
|
|
2561
2592
|
props: {
|
|
2562
2593
|
sectionProps: {},
|
|
@@ -2571,12 +2602,12 @@ var Xe = {
|
|
|
2571
2602
|
setup(e, { emit: t }) {
|
|
2572
2603
|
let n = e, r = t, i = S(null), s = S(null);
|
|
2573
2604
|
function d(e) {
|
|
2574
|
-
return
|
|
2605
|
+
return G(e) * n.zoom;
|
|
2575
2606
|
}
|
|
2576
2607
|
function f(e) {
|
|
2577
|
-
return Math.round(
|
|
2608
|
+
return Math.round(W(e / n.zoom));
|
|
2578
2609
|
}
|
|
2579
|
-
let p = o(() => n.sectionProps?.pageHeight ??
|
|
2610
|
+
let p = o(() => n.sectionProps?.pageHeight ?? Vn), m = o(() => n.sectionProps?.marginTop ?? Hn), h = o(() => n.sectionProps?.marginBottom ?? Hn), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
|
|
2580
2611
|
position: "relative",
|
|
2581
2612
|
width: "20px",
|
|
2582
2613
|
height: g.value + "px",
|
|
@@ -2587,7 +2618,7 @@ var Xe = {
|
|
|
2587
2618
|
})), T = o(() => {
|
|
2588
2619
|
let e = [];
|
|
2589
2620
|
if (n.unit === "inch") {
|
|
2590
|
-
let t =
|
|
2621
|
+
let t = Un / 8, n = Math.ceil(p.value / t);
|
|
2591
2622
|
for (let r = 0; r <= n; r++) {
|
|
2592
2623
|
let n = r * t;
|
|
2593
2624
|
if (n > p.value) break;
|
|
@@ -2608,7 +2639,7 @@ var Xe = {
|
|
|
2608
2639
|
});
|
|
2609
2640
|
}
|
|
2610
2641
|
} else {
|
|
2611
|
-
let t =
|
|
2642
|
+
let t = Wn / 10, n = Math.ceil(p.value / t);
|
|
2612
2643
|
for (let r = 0; r <= n; r++) {
|
|
2613
2644
|
let n = r * t;
|
|
2614
2645
|
if (n > p.value) break;
|
|
@@ -2674,7 +2705,7 @@ var Xe = {
|
|
|
2674
2705
|
"aria-label": "Vertical ruler",
|
|
2675
2706
|
"aria-orientation": "vertical"
|
|
2676
2707
|
}, [
|
|
2677
|
-
u("div",
|
|
2708
|
+
u("div", Bn, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
|
|
2678
2709
|
class: "docx-vertical-ruler__tick-line",
|
|
2679
2710
|
style: _({
|
|
2680
2711
|
top: e.position + "px",
|
|
@@ -2706,10 +2737,10 @@ var Xe = {
|
|
|
2706
2737
|
}), [["__scopeId", "data-v-f7ccbd38"]]);
|
|
2707
2738
|
//#endregion
|
|
2708
2739
|
//#region src/utils/comments.ts
|
|
2709
|
-
function
|
|
2740
|
+
function Kn(e) {
|
|
2710
2741
|
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("") : "";
|
|
2711
2742
|
}
|
|
2712
|
-
function
|
|
2743
|
+
function qn(e) {
|
|
2713
2744
|
return e ? new Date(e).toLocaleString(void 0, {
|
|
2714
2745
|
hour: "numeric",
|
|
2715
2746
|
minute: "2-digit",
|
|
@@ -2717,10 +2748,10 @@ function Wn(e) {
|
|
|
2717
2748
|
day: "numeric"
|
|
2718
2749
|
}) : "";
|
|
2719
2750
|
}
|
|
2720
|
-
function
|
|
2751
|
+
function Jn(e) {
|
|
2721
2752
|
return e.split(/\s+/).map((e) => e[0]).join("").toUpperCase().slice(0, 2);
|
|
2722
2753
|
}
|
|
2723
|
-
var
|
|
2754
|
+
var Yn = [
|
|
2724
2755
|
"#6DCCB1",
|
|
2725
2756
|
"#79AAD9",
|
|
2726
2757
|
"#EE789D",
|
|
@@ -2734,28 +2765,28 @@ var Kn = [
|
|
|
2734
2765
|
"#E15759",
|
|
2735
2766
|
"#76B7B2"
|
|
2736
2767
|
];
|
|
2737
|
-
function
|
|
2768
|
+
function Xn(e) {
|
|
2738
2769
|
let t = 0;
|
|
2739
2770
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
2740
|
-
return
|
|
2771
|
+
return Yn[Math.abs(t) % Yn.length] ?? "#888888";
|
|
2741
2772
|
}
|
|
2742
2773
|
function $(e, t = 50) {
|
|
2743
2774
|
return e.length > t ? e.slice(0, t) + "..." : e;
|
|
2744
2775
|
}
|
|
2745
2776
|
//#endregion
|
|
2746
2777
|
//#region src/components/sidebar/Avatar.vue
|
|
2747
|
-
var
|
|
2778
|
+
var Zn = /* @__PURE__ */ p({
|
|
2748
2779
|
__name: "Avatar",
|
|
2749
2780
|
props: {
|
|
2750
2781
|
name: { default: "U" },
|
|
2751
2782
|
size: { default: 32 }
|
|
2752
2783
|
},
|
|
2753
2784
|
setup(e) {
|
|
2754
|
-
let t = e, n = o(() =>
|
|
2785
|
+
let t = e, n = o(() => Jn(t.name || "U")), r = o(() => ({
|
|
2755
2786
|
width: t.size + "px",
|
|
2756
2787
|
height: t.size + "px",
|
|
2757
2788
|
borderRadius: "50%",
|
|
2758
|
-
backgroundColor:
|
|
2789
|
+
backgroundColor: Xn(t.name || "U"),
|
|
2759
2790
|
color: "#fff",
|
|
2760
2791
|
display: "flex",
|
|
2761
2792
|
alignItems: "center",
|
|
@@ -2769,13 +2800,13 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2769
2800
|
style: _(r.value)
|
|
2770
2801
|
}, E(n.value), 5));
|
|
2771
2802
|
}
|
|
2772
|
-
}),
|
|
2803
|
+
}), Qn = {
|
|
2773
2804
|
key: 0,
|
|
2774
2805
|
class: "reply-thread"
|
|
2775
|
-
},
|
|
2806
|
+
}, $n = {
|
|
2776
2807
|
key: 0,
|
|
2777
2808
|
class: "reply-thread__more"
|
|
2778
|
-
},
|
|
2809
|
+
}, er = { class: "reply-thread__header" }, tr = { class: "reply-thread__author-block" }, nr = { class: "reply-thread__author" }, rr = { class: "reply-thread__date" }, ir = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2779
2810
|
__name: "ReplyThread",
|
|
2780
2811
|
props: {
|
|
2781
2812
|
replies: {},
|
|
@@ -2783,15 +2814,15 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2783
2814
|
},
|
|
2784
2815
|
setup(e) {
|
|
2785
2816
|
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));
|
|
2786
|
-
return (t, i) => e.replies.length > 0 ? (b(), l("div",
|
|
2817
|
+
return (t, i) => e.replies.length > 0 ? (b(), l("div", Qn, [r.value > 0 ? (b(), l("div", $n, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
|
|
2787
2818
|
key: t.id,
|
|
2788
2819
|
class: g(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
|
|
2789
|
-
}, [u("div",
|
|
2820
|
+
}, [u("div", er, [f(Zn, {
|
|
2790
2821
|
name: t.author,
|
|
2791
2822
|
size: 28
|
|
2792
|
-
}, null, 8, ["name"]), u("div",
|
|
2823
|
+
}, null, 8, ["name"]), u("div", tr, [u("div", nr, E(t.author || "Unknown"), 1), u("div", rr, E(O(qn)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, E(O(Kn)(t.content)), 3)], 2))), 128))])) : c("", !0);
|
|
2793
2824
|
}
|
|
2794
|
-
}), [["__scopeId", "data-v-06331fac"]]),
|
|
2825
|
+
}), [["__scopeId", "data-v-06331fac"]]), ar = ["onKeydown"], or = { class: "reply-input__actions" }, sr = ["disabled"], cr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2795
2826
|
__name: "ReplyInput",
|
|
2796
2827
|
emits: ["submit"],
|
|
2797
2828
|
setup(e, { emit: t }) {
|
|
@@ -2823,14 +2854,14 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2823
2854
|
P(F(p, ["prevent"]), ["enter"]),
|
|
2824
2855
|
P(f, ["esc"])
|
|
2825
2856
|
]
|
|
2826
|
-
}, null, 40,
|
|
2857
|
+
}, null, 40, ar), [[A, i.value]]), u("div", or, [u("button", {
|
|
2827
2858
|
class: "reply-input__cancel",
|
|
2828
2859
|
onClick: F(f, ["stop"])
|
|
2829
2860
|
}, "Cancel"), u("button", {
|
|
2830
2861
|
class: g(["reply-input__submit", { "reply-input__submit--active": c.value }]),
|
|
2831
2862
|
disabled: !c.value,
|
|
2832
2863
|
onClick: F(p, ["stop"])
|
|
2833
|
-
}, " Reply ", 10,
|
|
2864
|
+
}, " Reply ", 10, sr)])], 64)) : (b(), l("input", {
|
|
2834
2865
|
key: 0,
|
|
2835
2866
|
readonly: "",
|
|
2836
2867
|
placeholder: "Reply",
|
|
@@ -2839,13 +2870,13 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2839
2870
|
onClick: F(d, ["stop"])
|
|
2840
2871
|
}, null, 32))], 32));
|
|
2841
2872
|
}
|
|
2842
|
-
}), [["__scopeId", "data-v-fea8646c"]]),
|
|
2873
|
+
}), [["__scopeId", "data-v-fea8646c"]]), lr = ["data-comment-id"], ur = {
|
|
2843
2874
|
key: 0,
|
|
2844
2875
|
class: "comment-card__resolved"
|
|
2845
|
-
},
|
|
2876
|
+
}, dr = { class: "comment-card__head" }, fr = { class: "comment-card__author-block" }, pr = { class: "comment-card__author" }, mr = { class: "comment-card__date" }, hr = {
|
|
2846
2877
|
key: 0,
|
|
2847
2878
|
class: "comment-card__actions"
|
|
2848
|
-
},
|
|
2879
|
+
}, gr = ["title"], _r = { class: "comment-card__body" }, vr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2849
2880
|
__name: "CommentCard",
|
|
2850
2881
|
props: {
|
|
2851
2882
|
comment: {},
|
|
@@ -2870,17 +2901,17 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2870
2901
|
onClick: n[5] ||= (e) => t.$emit("click"),
|
|
2871
2902
|
onMousedown: n[6] ||= F(() => {}, ["stop"])
|
|
2872
2903
|
}, [
|
|
2873
|
-
e.comment.done ? (b(), l("div",
|
|
2904
|
+
e.comment.done ? (b(), l("div", ur, [f(r, {
|
|
2874
2905
|
name: "check",
|
|
2875
2906
|
size: 12
|
|
2876
2907
|
}), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
|
|
2877
|
-
u("div",
|
|
2878
|
-
f(
|
|
2908
|
+
u("div", dr, [
|
|
2909
|
+
f(Zn, {
|
|
2879
2910
|
name: e.comment.author,
|
|
2880
2911
|
size: 32
|
|
2881
2912
|
}, null, 8, ["name"]),
|
|
2882
|
-
u("div",
|
|
2883
|
-
e.expanded ? (b(), l("div",
|
|
2913
|
+
u("div", fr, [u("div", pr, E(e.comment.author || "Unknown"), 1), u("div", mr, E(O(qn)(e.comment.date)), 1)]),
|
|
2914
|
+
e.expanded ? (b(), l("div", hr, [
|
|
2884
2915
|
u("button", {
|
|
2885
2916
|
class: "comment-card__icon-btn",
|
|
2886
2917
|
title: e.comment.done ? "Reopen" : "Resolve",
|
|
@@ -2888,7 +2919,7 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2888
2919
|
}, [f(r, {
|
|
2889
2920
|
name: e.comment.done ? "undo" : "check",
|
|
2890
2921
|
size: 20
|
|
2891
|
-
}, null, 8, ["name"])], 8,
|
|
2922
|
+
}, null, 8, ["name"])], 8, gr),
|
|
2892
2923
|
u("button", {
|
|
2893
2924
|
class: "comment-card__icon-btn",
|
|
2894
2925
|
title: "More options",
|
|
@@ -2908,18 +2939,18 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2908
2939
|
}, "Delete")], 32)) : c("", !0)
|
|
2909
2940
|
])) : c("", !0)
|
|
2910
2941
|
]),
|
|
2911
|
-
u("div",
|
|
2912
|
-
f(
|
|
2942
|
+
u("div", _r, E(O(Kn)(e.comment.content)), 1),
|
|
2943
|
+
f(ir, {
|
|
2913
2944
|
replies: e.replies,
|
|
2914
2945
|
"is-expanded": e.expanded
|
|
2915
2946
|
}, null, 8, ["replies", "is-expanded"]),
|
|
2916
|
-
e.expanded && !e.comment.done ? (b(), s(
|
|
2947
|
+
e.expanded && !e.comment.done ? (b(), s(cr, {
|
|
2917
2948
|
key: 1,
|
|
2918
2949
|
onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
|
|
2919
2950
|
})) : c("", !0)
|
|
2920
|
-
], 42,
|
|
2951
|
+
], 42, lr));
|
|
2921
2952
|
}
|
|
2922
|
-
}), [["__scopeId", "data-v-7a3ee7ac"]]),
|
|
2953
|
+
}), [["__scopeId", "data-v-7a3ee7ac"]]), yr = ["data-comment-id"], br = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2923
2954
|
__name: "ResolvedCommentMarker",
|
|
2924
2955
|
props: { comment: {} },
|
|
2925
2956
|
emits: ["toggle-expand"],
|
|
@@ -2933,39 +2964,39 @@ var Jn = /* @__PURE__ */ p({
|
|
|
2933
2964
|
}, [f(r, {
|
|
2934
2965
|
name: "chat_bubble_check",
|
|
2935
2966
|
size: 20
|
|
2936
|
-
})], 40,
|
|
2967
|
+
})], 40, yr));
|
|
2937
2968
|
}
|
|
2938
|
-
}), [["__scopeId", "data-v-d0c228f6"]]),
|
|
2969
|
+
}), [["__scopeId", "data-v-d0c228f6"]]), xr = { class: "tc-card__head" }, Sr = { class: "tc-card__author-block" }, Cr = { class: "tc-card__author" }, wr = {
|
|
2939
2970
|
key: 0,
|
|
2940
2971
|
class: "tc-card__date"
|
|
2941
|
-
},
|
|
2972
|
+
}, Tr = {
|
|
2942
2973
|
key: 0,
|
|
2943
2974
|
class: "tc-card__actions"
|
|
2944
|
-
},
|
|
2975
|
+
}, Er = ["title"], Dr = ["title"], Or = { class: "tc-card__body" }, kr = { class: "tc-card__deleted" }, Ar = { class: "tc-card__inserted" }, jr = { class: "tc-card__inserted" }, Mr = { class: "tc-card__deleted" }, Nr = {
|
|
2945
2976
|
key: 0,
|
|
2946
2977
|
class: "tc-card__changed"
|
|
2947
|
-
},
|
|
2978
|
+
}, Pr = { class: "tc-card__changed" }, Fr = { class: "tc-card__changed" }, Ir = {
|
|
2948
2979
|
key: 5,
|
|
2949
2980
|
class: "tc-card__inserted"
|
|
2950
|
-
},
|
|
2981
|
+
}, Lr = {
|
|
2951
2982
|
key: 6,
|
|
2952
2983
|
class: "tc-card__deleted"
|
|
2953
|
-
},
|
|
2984
|
+
}, Rr = {
|
|
2954
2985
|
key: 7,
|
|
2955
2986
|
class: "tc-card__inserted"
|
|
2956
|
-
},
|
|
2987
|
+
}, zr = {
|
|
2957
2988
|
key: 8,
|
|
2958
2989
|
class: "tc-card__deleted"
|
|
2959
|
-
},
|
|
2990
|
+
}, Br = {
|
|
2960
2991
|
key: 9,
|
|
2961
2992
|
class: "tc-card__changed"
|
|
2962
|
-
},
|
|
2993
|
+
}, Vr = {
|
|
2963
2994
|
key: 10,
|
|
2964
2995
|
class: "tc-card__inserted"
|
|
2965
|
-
},
|
|
2996
|
+
}, Hr = {
|
|
2966
2997
|
key: 11,
|
|
2967
2998
|
class: "tc-card__deleted"
|
|
2968
|
-
},
|
|
2999
|
+
}, Ur = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
2969
3000
|
__name: "TrackedChangeCard",
|
|
2970
3001
|
props: {
|
|
2971
3002
|
change: {},
|
|
@@ -3028,45 +3059,45 @@ var Jn = /* @__PURE__ */ p({
|
|
|
3028
3059
|
onClick: n[1] ||= (e) => t.$emit("click"),
|
|
3029
3060
|
onMousedown: n[2] ||= F(() => {}, ["stop"])
|
|
3030
3061
|
}, [
|
|
3031
|
-
u("div",
|
|
3032
|
-
f(
|
|
3062
|
+
u("div", xr, [
|
|
3063
|
+
f(Zn, {
|
|
3033
3064
|
name: h.value,
|
|
3034
3065
|
size: 32
|
|
3035
3066
|
}, null, 8, ["name"]),
|
|
3036
|
-
u("div",
|
|
3037
|
-
e.expanded ? (b(), l("div",
|
|
3067
|
+
u("div", Sr, [u("div", Cr, E(h.value), 1), e.change.date ? (b(), l("div", wr, E(O(qn)(e.change.date)), 1)) : c("", !0)]),
|
|
3068
|
+
e.expanded ? (b(), l("div", Tr, [u("button", {
|
|
3038
3069
|
class: "tc-card__icon-btn",
|
|
3039
3070
|
title: O(i)("acceptChange"),
|
|
3040
3071
|
onClick: F(x, ["stop"])
|
|
3041
3072
|
}, [f(r, {
|
|
3042
3073
|
name: "check",
|
|
3043
3074
|
size: 20
|
|
3044
|
-
})], 8,
|
|
3075
|
+
})], 8, Er), u("button", {
|
|
3045
3076
|
class: "tc-card__icon-btn",
|
|
3046
3077
|
title: O(i)("rejectChange"),
|
|
3047
3078
|
onClick: F(S, ["stop"])
|
|
3048
3079
|
}, [f(r, {
|
|
3049
3080
|
name: "close",
|
|
3050
3081
|
size: 20
|
|
3051
|
-
})], 8,
|
|
3082
|
+
})], 8, Dr)])) : c("", !0)
|
|
3052
3083
|
]),
|
|
3053
|
-
u("div",
|
|
3084
|
+
u("div", Or, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
|
|
3054
3085
|
d(E(O(i)("trackedChanges.replaced")) + " ", 1),
|
|
3055
|
-
u("span",
|
|
3086
|
+
u("span", kr, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
|
|
3056
3087
|
d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
|
|
3057
|
-
u("span",
|
|
3058
|
-
], 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",
|
|
3059
|
-
f(
|
|
3088
|
+
u("span", Ar, "\"" + E(O($)(e.change.text)) + "\"", 1)
|
|
3089
|
+
], 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", jr, "\"" + 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", Mr, "\"" + 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", Nr, 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", Pr, "\"" + 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", Fr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Ir, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", Lr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Rr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", zr, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Br, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Vr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Hr, 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))]),
|
|
3090
|
+
f(ir, {
|
|
3060
3091
|
replies: e.replies,
|
|
3061
3092
|
"is-expanded": e.expanded
|
|
3062
3093
|
}, null, 8, ["replies", "is-expanded"]),
|
|
3063
|
-
e.expanded ? (b(), s(
|
|
3094
|
+
e.expanded ? (b(), s(cr, {
|
|
3064
3095
|
key: 0,
|
|
3065
3096
|
onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
|
|
3066
3097
|
})) : c("", !0)
|
|
3067
3098
|
], 34));
|
|
3068
3099
|
}
|
|
3069
|
-
}), [["__scopeId", "data-v-b19a1fcd"]]),
|
|
3100
|
+
}), [["__scopeId", "data-v-b19a1fcd"]]), Wr = ["onKeydown"], Gr = { class: "add-comment-card__actions" }, Kr = ["disabled"], qr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3070
3101
|
__name: "AddCommentCard",
|
|
3071
3102
|
emits: ["submit", "cancel"],
|
|
3072
3103
|
setup(e, { emit: t }) {
|
|
@@ -3095,19 +3126,19 @@ var Jn = /* @__PURE__ */ p({
|
|
|
3095
3126
|
P(F(s, ["exact", "prevent"]), ["enter"]),
|
|
3096
3127
|
P(c, ["esc"])
|
|
3097
3128
|
]
|
|
3098
|
-
}, null, 40,
|
|
3129
|
+
}, null, 40, Wr), [[A, r.value]]), u("div", Gr, [u("button", {
|
|
3099
3130
|
class: "add-comment-card__cancel",
|
|
3100
3131
|
onClick: c
|
|
3101
3132
|
}, "Cancel"), u("button", {
|
|
3102
3133
|
class: g(["add-comment-card__submit", { "add-comment-card__submit--active": a.value }]),
|
|
3103
3134
|
disabled: !a.value,
|
|
3104
3135
|
onClick: s
|
|
3105
|
-
}, " Comment ", 10,
|
|
3136
|
+
}, " Comment ", 10, Kr)])], 32));
|
|
3106
3137
|
}
|
|
3107
3138
|
}), [["__scopeId", "data-v-2939f9cd"]]);
|
|
3108
3139
|
//#endregion
|
|
3109
3140
|
//#region src/composables/useCommentSidebarItems.ts
|
|
3110
|
-
function
|
|
3141
|
+
function Jr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
|
|
3111
3142
|
return o(() => {
|
|
3112
3143
|
let a = [];
|
|
3113
3144
|
r?.value && i?.value != null && a.push({
|
|
@@ -3150,10 +3181,11 @@ function Gr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment:
|
|
|
3150
3181
|
}
|
|
3151
3182
|
//#endregion
|
|
3152
3183
|
//#region src/components/UnifiedSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
3153
|
-
var
|
|
3184
|
+
var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3154
3185
|
__name: "UnifiedSidebar",
|
|
3155
3186
|
props: {
|
|
3156
3187
|
isOpen: { type: Boolean },
|
|
3188
|
+
surface: {},
|
|
3157
3189
|
comments: {},
|
|
3158
3190
|
trackedChanges: {},
|
|
3159
3191
|
isAddingComment: { type: Boolean },
|
|
@@ -3166,6 +3198,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3166
3198
|
},
|
|
3167
3199
|
emits: [
|
|
3168
3200
|
"close",
|
|
3201
|
+
"dismiss",
|
|
3169
3202
|
"add-comment",
|
|
3170
3203
|
"cancel-add-comment",
|
|
3171
3204
|
"comment-reply",
|
|
@@ -3180,110 +3213,154 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3180
3213
|
"update:activeItemId"
|
|
3181
3214
|
],
|
|
3182
3215
|
setup(e, { emit: t }) {
|
|
3183
|
-
let n = e, r = t, i = S(null),
|
|
3184
|
-
function p(e) {
|
|
3185
|
-
let t = f.value === e ? null : e;
|
|
3186
|
-
i.value = t, r("update:activeItemId", t);
|
|
3187
|
-
}
|
|
3216
|
+
let n = e, r = t, i = o(() => n.surface === "drawer"), f = S(null), p = o(() => n.activeItemId === void 0 ? f.value : n.activeItemId);
|
|
3188
3217
|
function m(e) {
|
|
3218
|
+
let t = p.value === e ? null : e;
|
|
3219
|
+
f.value = t, r("update:activeItemId", t);
|
|
3220
|
+
}
|
|
3221
|
+
function h(e) {
|
|
3189
3222
|
e.stopPropagation();
|
|
3190
3223
|
let t = e.target;
|
|
3191
|
-
t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") ||
|
|
3224
|
+
t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") || p.value !== null && (f.value = null, r("update:activeItemId", null));
|
|
3192
3225
|
}
|
|
3193
|
-
let
|
|
3226
|
+
let x = Jr({
|
|
3194
3227
|
comments: D(n, "comments"),
|
|
3195
3228
|
trackedChanges: D(n, "trackedChanges"),
|
|
3196
3229
|
showResolved: o(() => n.showResolved ?? !1),
|
|
3197
3230
|
isAddingComment: o(() => n.isAddingComment ?? !1),
|
|
3198
3231
|
addCommentYPosition: o(() => n.addCommentYPosition ?? null)
|
|
3199
|
-
}),
|
|
3200
|
-
function
|
|
3201
|
-
let e =
|
|
3202
|
-
if (!e || !
|
|
3232
|
+
}), w = S(null), k = S(/* @__PURE__ */ new Map()), A = /* @__PURE__ */ new Map(), N = null, P = null, F = /* @__PURE__ */ new Set();
|
|
3233
|
+
function I() {
|
|
3234
|
+
let e = w.value;
|
|
3235
|
+
if (!e || !P) return;
|
|
3203
3236
|
let t = new Set(e.querySelectorAll("[data-card-id]"));
|
|
3204
|
-
if (!(t.size ===
|
|
3205
|
-
|
|
3206
|
-
for (let e of t)
|
|
3207
|
-
|
|
3237
|
+
if (!(t.size === F.size && [...t].every((e) => F.has(e)))) {
|
|
3238
|
+
P.disconnect();
|
|
3239
|
+
for (let e of t) P.observe(e);
|
|
3240
|
+
F = t;
|
|
3208
3241
|
}
|
|
3209
3242
|
}
|
|
3210
|
-
function
|
|
3211
|
-
|
|
3243
|
+
function L() {
|
|
3244
|
+
if (G(), i.value) {
|
|
3245
|
+
k.value = /* @__PURE__ */ new Map();
|
|
3246
|
+
return;
|
|
3247
|
+
}
|
|
3248
|
+
let e = n.pagesContainer, t = x.value;
|
|
3212
3249
|
if (!e || t.length === 0) {
|
|
3213
|
-
|
|
3250
|
+
k.value = /* @__PURE__ */ new Map();
|
|
3214
3251
|
return;
|
|
3215
3252
|
}
|
|
3216
|
-
let r = e.getBoundingClientRect(),
|
|
3253
|
+
let r = e.getBoundingClientRect(), a = U(e), o = /* @__PURE__ */ new Map();
|
|
3217
3254
|
for (let t of e.querySelectorAll(".docx-insertion[data-revision-id]")) {
|
|
3218
3255
|
let e = t.dataset.revisionId;
|
|
3219
|
-
e && !
|
|
3256
|
+
e && !o.has(e) && o.set(e, t);
|
|
3220
3257
|
}
|
|
3221
|
-
let
|
|
3258
|
+
let s = /* @__PURE__ */ new Map();
|
|
3222
3259
|
for (let t of e.querySelectorAll(".docx-deletion[data-revision-id]")) {
|
|
3223
3260
|
let e = t.dataset.revisionId;
|
|
3224
|
-
e && !
|
|
3261
|
+
e && !s.has(e) && s.set(e, t);
|
|
3225
3262
|
}
|
|
3226
3263
|
for (let t of e.querySelectorAll(".ep-revision-table[data-revision-id], .ep-revision-row[data-revision-id], .ep-revision-cell[data-revision-id], .layout-revision-pmark[data-revision-id]")) {
|
|
3227
3264
|
let e = t.dataset.revisionId;
|
|
3228
3265
|
if (!e) continue;
|
|
3229
|
-
let n = t.classList.contains("ep-revision-ins") || t.classList.contains("layout-revision-ins") ?
|
|
3266
|
+
let n = t.classList.contains("ep-revision-ins") || t.classList.contains("layout-revision-ins") ? o : s;
|
|
3230
3267
|
n.has(e) || n.set(e, t);
|
|
3231
3268
|
}
|
|
3232
|
-
let
|
|
3269
|
+
let c = /* @__PURE__ */ new Map(), l = (t) => t.getBoundingClientRect().top - r.top + e.scrollTop;
|
|
3233
3270
|
for (let e of t) {
|
|
3234
3271
|
if (!e.anchorKey) continue;
|
|
3235
3272
|
let t;
|
|
3236
|
-
if (e.kind === "comment") t =
|
|
3273
|
+
if (e.kind === "comment") t = a.get(String(e.comment.id));
|
|
3237
3274
|
else if (e.kind === "tracked-change") {
|
|
3238
3275
|
let n = e.change;
|
|
3239
|
-
t = n.type === "deletion" ?
|
|
3276
|
+
t = n.type === "deletion" ? s.get(String(n.revisionId)) : o.get(String(n.insertionRevisionId ?? n.revisionId));
|
|
3240
3277
|
}
|
|
3241
|
-
t &&
|
|
3278
|
+
t && c.set(e.anchorKey, l(t));
|
|
3242
3279
|
}
|
|
3243
|
-
let
|
|
3244
|
-
if (
|
|
3280
|
+
let u = /* @__PURE__ */ new Map(), d = w.value;
|
|
3281
|
+
if (d) for (let e of d.querySelectorAll("[data-card-id]")) {
|
|
3245
3282
|
let t = e.dataset.cardId;
|
|
3246
|
-
t &&
|
|
3283
|
+
t && u.set(t, e.offsetHeight);
|
|
3247
3284
|
}
|
|
3248
|
-
let
|
|
3249
|
-
for (let { item: n, y: r } of
|
|
3285
|
+
let f = /* @__PURE__ */ new Map();
|
|
3286
|
+
for (let { item: n, y: r } of J({
|
|
3250
3287
|
items: t,
|
|
3251
|
-
anchorPositions:
|
|
3252
|
-
renderedDomContext:
|
|
3288
|
+
anchorPositions: c,
|
|
3289
|
+
renderedDomContext: V(e),
|
|
3253
3290
|
zoom: 1,
|
|
3254
|
-
cardHeights:
|
|
3255
|
-
lastKnown:
|
|
3256
|
-
}))
|
|
3257
|
-
|
|
3291
|
+
cardHeights: u,
|
|
3292
|
+
lastKnown: A
|
|
3293
|
+
})) f.set(n.id, r);
|
|
3294
|
+
k.value = f, I();
|
|
3258
3295
|
}
|
|
3259
|
-
let
|
|
3296
|
+
let R = o(() => {
|
|
3260
3297
|
let e = 0;
|
|
3261
|
-
for (let t of
|
|
3298
|
+
for (let t of k.value.values()) e = Math.max(e, t);
|
|
3262
3299
|
return e + 200;
|
|
3263
|
-
}),
|
|
3264
|
-
|
|
3300
|
+
}), z = S(null), W = S({
|
|
3301
|
+
top: 0,
|
|
3302
|
+
width: B.drawerWidth,
|
|
3303
|
+
height: 0
|
|
3304
|
+
});
|
|
3305
|
+
function G() {
|
|
3306
|
+
let e = w.value?.offsetParent, t = ne(n.pagesContainer);
|
|
3307
|
+
if (!(e instanceof HTMLElement) || !t) return;
|
|
3308
|
+
let r = e.getBoundingClientRect(), a = t.getBoundingClientRect();
|
|
3309
|
+
if (i.value) {
|
|
3310
|
+
let e = Math.max(0, Math.min(B.drawerWidth, t.clientWidth - 16));
|
|
3311
|
+
W.value = {
|
|
3312
|
+
top: a.top - r.top,
|
|
3313
|
+
width: e,
|
|
3314
|
+
height: t.clientHeight
|
|
3315
|
+
}, z.value = a.left + t.clientWidth - r.left - e;
|
|
3316
|
+
return;
|
|
3317
|
+
}
|
|
3318
|
+
let o = n.pagesContainer?.querySelector(".layout-page");
|
|
3319
|
+
if (!o) {
|
|
3320
|
+
z.value = null;
|
|
3321
|
+
return;
|
|
3322
|
+
}
|
|
3323
|
+
let s = o.getBoundingClientRect().right - r.left + B.commentsGap, c = Math.max(8, e.clientWidth - B.commentsWidth - 8);
|
|
3324
|
+
z.value = Math.max(8, Math.min(s, c));
|
|
3325
|
+
}
|
|
3326
|
+
let K = o(() => ({
|
|
3327
|
+
position: "sticky",
|
|
3328
|
+
top: 0,
|
|
3329
|
+
maxHeight: W.value.height || void 0,
|
|
3330
|
+
overflowY: "auto",
|
|
3331
|
+
paddingBlock: B.commentsGap + "px",
|
|
3332
|
+
boxSizing: "border-box"
|
|
3333
|
+
})), ee = o(() => {
|
|
3334
|
+
let e = p.value;
|
|
3265
3335
|
if (!e) return "";
|
|
3266
|
-
if (e.startsWith("comment-")) return `${
|
|
3336
|
+
if (e.startsWith("comment-")) return `${H(e.slice(8), ".paged-editor__pages ")} { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
|
|
3267
3337
|
if (e.startsWith("tc-")) {
|
|
3268
3338
|
let t = e.split("-").at(1) ?? "";
|
|
3269
3339
|
return `
|
|
3270
|
-
.paged-editor__pages .docx-insertion[data-revision-id="${
|
|
3340
|
+
.paged-editor__pages .docx-insertion[data-revision-id="${x.value.find((t) => t.id === e)?.change?.insertionRevisionId ?? Number(t)}"] { background-color: rgba(52, 168, 83, 0.2) !important; border-bottom: 2px solid #2e7d32 !important; }
|
|
3271
3341
|
.paged-editor__pages .docx-deletion[data-revision-id="${t}"] { background-color: rgba(211, 47, 47, 0.2) !important; text-decoration-thickness: 2px !important; }
|
|
3272
3342
|
`;
|
|
3273
3343
|
}
|
|
3274
3344
|
return "";
|
|
3275
|
-
}),
|
|
3276
|
-
let e =
|
|
3345
|
+
}), te = o(() => {
|
|
3346
|
+
let e = i.value, t = e ? z.value !== null : k.value.size > 0 || x.value.length === 0;
|
|
3277
3347
|
return {
|
|
3278
3348
|
position: "absolute",
|
|
3279
|
-
top: "0",
|
|
3280
|
-
left: `calc(50% + ${
|
|
3281
|
-
width: "
|
|
3282
|
-
|
|
3349
|
+
top: e ? W.value.top + "px" : "0",
|
|
3350
|
+
left: z.value === null ? `calc(50% + ${n.pageWidthPx / 2 + B.commentsGap}px)` : z.value + "px",
|
|
3351
|
+
width: (e ? W.value.width : B.commentsWidth) + "px",
|
|
3352
|
+
paddingInline: e ? B.commentsGap + "px" : void 0,
|
|
3353
|
+
bottom: e ? void 0 : 0,
|
|
3354
|
+
opacity: +!!t,
|
|
3355
|
+
pointerEvents: t ? "auto" : "none"
|
|
3283
3356
|
};
|
|
3284
3357
|
});
|
|
3285
|
-
function
|
|
3286
|
-
|
|
3358
|
+
function q(e) {
|
|
3359
|
+
if (i.value) return {
|
|
3360
|
+
position: "relative",
|
|
3361
|
+
marginBottom: "8px"
|
|
3362
|
+
};
|
|
3363
|
+
let t = k.value.get(e);
|
|
3287
3364
|
return t == null ? {
|
|
3288
3365
|
position: "static",
|
|
3289
3366
|
marginBottom: "8px"
|
|
@@ -3295,22 +3372,24 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3295
3372
|
transition: "top 0.15s ease"
|
|
3296
3373
|
};
|
|
3297
3374
|
}
|
|
3298
|
-
let
|
|
3299
|
-
function
|
|
3300
|
-
|
|
3301
|
-
|
|
3375
|
+
let Y = !1;
|
|
3376
|
+
function X() {
|
|
3377
|
+
Y || (Y = !0, requestAnimationFrame(() => {
|
|
3378
|
+
Y = !1, L();
|
|
3302
3379
|
}));
|
|
3303
3380
|
}
|
|
3304
3381
|
j(() => [
|
|
3305
|
-
|
|
3306
|
-
|
|
3382
|
+
x.value,
|
|
3383
|
+
p.value,
|
|
3307
3384
|
n.pagesContainer,
|
|
3308
3385
|
n.pageWidthPx,
|
|
3309
3386
|
n.zoom,
|
|
3310
3387
|
n.isAddingComment,
|
|
3311
|
-
n.addCommentYPosition
|
|
3312
|
-
|
|
3313
|
-
|
|
3388
|
+
n.addCommentYPosition,
|
|
3389
|
+
n.surface,
|
|
3390
|
+
n.isOpen
|
|
3391
|
+
], () => X(), { immediate: !0 });
|
|
3392
|
+
function ne(e) {
|
|
3314
3393
|
let t = e?.parentElement ?? null;
|
|
3315
3394
|
for (; t;) {
|
|
3316
3395
|
let e = getComputedStyle(t).overflowY;
|
|
@@ -3319,48 +3398,64 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3319
3398
|
}
|
|
3320
3399
|
return null;
|
|
3321
3400
|
}
|
|
3322
|
-
let
|
|
3323
|
-
function
|
|
3324
|
-
|
|
3401
|
+
let Z = null;
|
|
3402
|
+
function re() {
|
|
3403
|
+
Z && Z.removeEventListener("scroll", X), Z = ne(n.pagesContainer), Z && (Z.addEventListener("scroll", X, { passive: !0 }), N?.observe(Z));
|
|
3325
3404
|
}
|
|
3326
3405
|
return y(() => {
|
|
3327
|
-
|
|
3406
|
+
P = new ResizeObserver(() => X()), X(), n.pagesContainer && (N = new ResizeObserver(() => X()), N.observe(n.pagesContainer), re()), window.addEventListener("resize", X);
|
|
3328
3407
|
}), j(() => n.pagesContainer, (e) => {
|
|
3329
|
-
|
|
3408
|
+
N?.disconnect(), N = null, e && (N = new ResizeObserver(() => X()), N.observe(e)), re(), X();
|
|
3330
3409
|
}), v(() => {
|
|
3331
|
-
|
|
3332
|
-
}), (
|
|
3333
|
-
|
|
3410
|
+
N?.disconnect(), P?.disconnect(), Z && Z.removeEventListener("scroll", X), window.removeEventListener("resize", X);
|
|
3411
|
+
}), j(() => n.isOpen && i.value, (e, t, n) => {
|
|
3412
|
+
if (!e || typeof document > "u") return;
|
|
3413
|
+
let i = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
3414
|
+
w.value?.focus({ preventScroll: !0 });
|
|
3415
|
+
let a = (e) => {
|
|
3416
|
+
e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), r("dismiss"));
|
|
3417
|
+
};
|
|
3418
|
+
document.addEventListener("keydown", a), n(() => {
|
|
3419
|
+
document.removeEventListener("keydown", a), i?.isConnected && i.focus({ preventScroll: !0 });
|
|
3420
|
+
});
|
|
3421
|
+
}, {
|
|
3422
|
+
immediate: !0,
|
|
3423
|
+
flush: "post"
|
|
3424
|
+
}), (t, n) => (b(), l(a, null, [ee.value ? (b(), s(T("style"), { key: 0 }, {
|
|
3425
|
+
default: M(() => [d(E(ee.value), 1)]),
|
|
3334
3426
|
_: 1
|
|
3335
3427
|
})) : c("", !0), e.isOpen ? (b(), l("aside", {
|
|
3336
3428
|
key: 1,
|
|
3337
3429
|
ref_key: "rootRef",
|
|
3338
|
-
ref:
|
|
3339
|
-
class: "unified-sidebar",
|
|
3340
|
-
|
|
3341
|
-
|
|
3430
|
+
ref: w,
|
|
3431
|
+
class: g(["unified-sidebar", { "unified-sidebar--drawer": i.value }]),
|
|
3432
|
+
"data-folio-comments-surface": e.surface ?? "column",
|
|
3433
|
+
"data-testid": "folio-comments",
|
|
3434
|
+
tabindex: i.value ? -1 : void 0,
|
|
3435
|
+
style: _(te.value),
|
|
3436
|
+
onMousedown: h
|
|
3342
3437
|
}, [u("div", {
|
|
3343
3438
|
class: "unified-sidebar__inner",
|
|
3344
|
-
style: _({ minHeight:
|
|
3345
|
-
}, [(b(!0), l(a, null, C(O(
|
|
3439
|
+
style: _(i.value ? K.value : { minHeight: R.value + "px" })
|
|
3440
|
+
}, [(b(!0), l(a, null, C(O(x), (e) => (b(), l("div", {
|
|
3346
3441
|
key: e.id,
|
|
3347
3442
|
class: "unified-sidebar__card-slot",
|
|
3348
3443
|
"data-card-id": e.id,
|
|
3349
|
-
style: _(
|
|
3350
|
-
}, [e.kind === "add-comment" ? (b(), s(
|
|
3444
|
+
style: _(q(e.id))
|
|
3445
|
+
}, [e.kind === "add-comment" ? (b(), s(qr, {
|
|
3351
3446
|
key: 0,
|
|
3352
3447
|
onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
|
|
3353
3448
|
onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
|
|
3354
|
-
})) : e.kind === "comment" && e.comment.done &&
|
|
3449
|
+
})) : e.kind === "comment" && e.comment.done && p.value !== e.id ? (b(), s(br, {
|
|
3355
3450
|
key: 1,
|
|
3356
3451
|
comment: e.comment,
|
|
3357
|
-
onToggleExpand: (t) =>
|
|
3358
|
-
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(
|
|
3452
|
+
onToggleExpand: (t) => m(e.id)
|
|
3453
|
+
}, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(vr, {
|
|
3359
3454
|
key: 2,
|
|
3360
3455
|
comment: e.comment,
|
|
3361
3456
|
replies: e.replies,
|
|
3362
|
-
expanded:
|
|
3363
|
-
onClick: (t) =>
|
|
3457
|
+
expanded: p.value === e.id,
|
|
3458
|
+
onClick: (t) => m(e.id),
|
|
3364
3459
|
onReply: n[2] ||= (e, n) => t.$emit("comment-reply", e, n),
|
|
3365
3460
|
onResolve: n[3] ||= (e) => t.$emit("comment-resolve", e),
|
|
3366
3461
|
onUnresolve: n[4] ||= (e) => t.$emit("comment-unresolve", e),
|
|
@@ -3370,12 +3465,12 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3370
3465
|
"replies",
|
|
3371
3466
|
"expanded",
|
|
3372
3467
|
"onClick"
|
|
3373
|
-
])) : e.kind === "tracked-change" ? (b(), s(
|
|
3468
|
+
])) : e.kind === "tracked-change" ? (b(), s(Ur, {
|
|
3374
3469
|
key: 3,
|
|
3375
3470
|
change: e.change,
|
|
3376
3471
|
replies: e.replies ?? [],
|
|
3377
|
-
expanded:
|
|
3378
|
-
onClick: (t) =>
|
|
3472
|
+
expanded: p.value === e.id,
|
|
3473
|
+
onClick: (t) => m(e.id),
|
|
3379
3474
|
onAccept: n[6] ||= (e, n) => t.$emit("accept-change", e, n),
|
|
3380
3475
|
onReject: n[7] ||= (e, n) => t.$emit("reject-change", e, n),
|
|
3381
3476
|
onAcceptById: n[8] ||= (e) => t.$emit("accept-change-by-id", e),
|
|
@@ -3386,9 +3481,9 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3386
3481
|
"replies",
|
|
3387
3482
|
"expanded",
|
|
3388
3483
|
"onClick"
|
|
3389
|
-
])) : c("", !0)], 12,
|
|
3484
|
+
])) : c("", !0)], 12, Xr))), 128))], 4)], 46, Yr)) : c("", !0)], 64));
|
|
3390
3485
|
}
|
|
3391
|
-
}), [["__scopeId", "data-v-
|
|
3486
|
+
}), [["__scopeId", "data-v-071b08b5"]]), Qr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3392
3487
|
__name: "StylePicker",
|
|
3393
3488
|
props: {
|
|
3394
3489
|
value: {},
|
|
@@ -3447,12 +3542,12 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3447
3542
|
"class"
|
|
3448
3543
|
]));
|
|
3449
3544
|
}
|
|
3450
|
-
}), [["__scopeId", "data-v-06469e2c"]]),
|
|
3545
|
+
}), [["__scopeId", "data-v-06469e2c"]]), $r = [
|
|
3451
3546
|
"disabled",
|
|
3452
3547
|
"title",
|
|
3453
3548
|
"aria-expanded",
|
|
3454
3549
|
"onClick"
|
|
3455
|
-
],
|
|
3550
|
+
], ei = { class: "docx-align__panel" }, ti = ["title", "onClick"], ni = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3456
3551
|
__name: "AlignmentButtons",
|
|
3457
3552
|
props: {
|
|
3458
3553
|
value: { default: "left" },
|
|
@@ -3511,8 +3606,8 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3511
3606
|
}, null, 8, ["name"]), f(r, {
|
|
3512
3607
|
name: "arrow_drop_down",
|
|
3513
3608
|
size: 14
|
|
3514
|
-
})], 10,
|
|
3515
|
-
panel: M(() => [u("div",
|
|
3609
|
+
})], 10, $r)]),
|
|
3610
|
+
panel: M(() => [u("div", ei, [(b(), l(a, null, C(m, (t) => u("button", {
|
|
3516
3611
|
key: t.value,
|
|
3517
3612
|
type: "button",
|
|
3518
3613
|
class: g(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
|
|
@@ -3521,11 +3616,11 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3521
3616
|
}, [f(r, {
|
|
3522
3617
|
name: t.icon,
|
|
3523
3618
|
size: 20
|
|
3524
|
-
}, null, 8, ["name"])], 10,
|
|
3619
|
+
}, null, 8, ["name"])], 10, ti)), 64))])]),
|
|
3525
3620
|
_: 1
|
|
3526
3621
|
}, 8, ["open"]));
|
|
3527
3622
|
}
|
|
3528
|
-
}), [["__scopeId", "data-v-088792b0"]]),
|
|
3623
|
+
}), [["__scopeId", "data-v-088792b0"]]), ri = { class: "docx-list-btns" }, ii = ["disabled"], ai = ["disabled"], oi = ["disabled"], si = ["disabled"], ci = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
3529
3624
|
__name: "ListButtons",
|
|
3530
3625
|
props: {
|
|
3531
3626
|
listState: {},
|
|
@@ -3549,7 +3644,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3549
3644
|
"outdent"
|
|
3550
3645
|
],
|
|
3551
3646
|
setup(e) {
|
|
3552
|
-
return (t, n) => (b(), l("span",
|
|
3647
|
+
return (t, n) => (b(), l("span", ri, [
|
|
3553
3648
|
u("button", {
|
|
3554
3649
|
type: "button",
|
|
3555
3650
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "bullet" }]),
|
|
@@ -3559,7 +3654,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3559
3654
|
}, [f(r, {
|
|
3560
3655
|
name: "format_list_bulleted",
|
|
3561
3656
|
size: 20
|
|
3562
|
-
})], 10,
|
|
3657
|
+
})], 10, ii),
|
|
3563
3658
|
u("button", {
|
|
3564
3659
|
type: "button",
|
|
3565
3660
|
class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "numbered" }]),
|
|
@@ -3569,7 +3664,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3569
3664
|
}, [f(r, {
|
|
3570
3665
|
name: "format_list_numbered",
|
|
3571
3666
|
size: 20
|
|
3572
|
-
})], 10,
|
|
3667
|
+
})], 10, ai),
|
|
3573
3668
|
e.showIndentButtons ? (b(), l(a, { key: 0 }, [u("button", {
|
|
3574
3669
|
type: "button",
|
|
3575
3670
|
class: "docx-list-btns__btn",
|
|
@@ -3579,7 +3674,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3579
3674
|
}, [f(r, {
|
|
3580
3675
|
name: "format_indent_decrease",
|
|
3581
3676
|
size: 20
|
|
3582
|
-
})], 8,
|
|
3677
|
+
})], 8, oi), u("button", {
|
|
3583
3678
|
type: "button",
|
|
3584
3679
|
class: "docx-list-btns__btn",
|
|
3585
3680
|
disabled: e.disabled,
|
|
@@ -3588,9 +3683,9 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
3588
3683
|
}, [f(r, {
|
|
3589
3684
|
name: "format_indent_increase",
|
|
3590
3685
|
size: 20
|
|
3591
|
-
})], 8,
|
|
3686
|
+
})], 8, si)], 64)) : c("", !0)
|
|
3592
3687
|
]));
|
|
3593
3688
|
}
|
|
3594
3689
|
}), [["__scopeId", "data-v-7cc21148"]]);
|
|
3595
3690
|
//#endregion
|
|
3596
|
-
export { me as C,
|
|
3691
|
+
export { me as C, X as D, ie as E, he as S, se as T, Zt as _, qr as a, we as b, vr as c, Gn as d, zn as f, Qt as g, rn as h, Zr as i, cr as l, an as m, ni as n, Ur as o, Rn as p, Qr as r, br as s, ci as t, ir as u, qt as v, Q as w, ge as x, Ft as y };
|