@stll/folio-vue 0.21.0 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ListButtons-CSyBR9KM.js → ListButtons-FnvTojEG.js} +95 -77
- package/dist/ListButtons-zX6wbhzG.cjs +4 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +0 -2
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1287 -1293
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/dist/useZoom-BBc7l-x-.cjs +1 -0
- package/dist/useZoom-z65xujSb.js +799 -0
- package/dist/utils/domQueries.d.ts +2 -6
- package/dist/utils/viewportPosition.d.ts +11 -0
- package/package.json +3 -3
- package/dist/ListButtons-BSRd6dsB.cjs +0 -4
- package/dist/useZoom-6bPW9fn6.cjs +0 -1
- package/dist/useZoom-BDu7b2tv.js +0 -797
|
@@ -142,7 +142,7 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
142
142
|
}, le = {
|
|
143
143
|
key: 1,
|
|
144
144
|
class: "menu-bar__break-submenu"
|
|
145
|
-
}, ue = ["onClick"],
|
|
145
|
+
}, ue = ["onClick"], de = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
146
146
|
__name: "MenuBar",
|
|
147
147
|
props: {
|
|
148
148
|
showFileOpen: {
|
|
@@ -276,13 +276,13 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
276
276
|
}, null, 8, ["label", "items"])) : c("", !0)
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
}), [["__scopeId", "data-v-bd3f3f2c"]]),
|
|
279
|
+
}), [["__scopeId", "data-v-bd3f3f2c"]]), fe = [
|
|
280
280
|
"disabled",
|
|
281
281
|
"aria-label",
|
|
282
282
|
"title",
|
|
283
283
|
"aria-expanded",
|
|
284
284
|
"onClick"
|
|
285
|
-
],
|
|
285
|
+
], Q = { class: "docx-icon-grid__panel" }, pe = ["title", "onClick"], me = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
286
286
|
__name: "IconGridDropdown",
|
|
287
287
|
props: {
|
|
288
288
|
options: {},
|
|
@@ -318,8 +318,8 @@ var Y = ["title", "onClick"], X = /*#__PURE__*/ t(/* @__PURE__ */ p({
|
|
|
318
318
|
}, null, 8, ["name"]), f(r, {
|
|
319
319
|
name: "arrow_drop_down",
|
|
320
320
|
size: 14
|
|
321
|
-
})], 10,
|
|
322
|
-
panel: M(() => [u("div",
|
|
321
|
+
})], 10, fe)]),
|
|
322
|
+
panel: M(() => [u("div", Q, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
|
|
323
323
|
key: t.value,
|
|
324
324
|
type: "button",
|
|
325
325
|
class: g(["docx-icon-grid__option", { "docx-icon-grid__option--active": e.activeValue === t.value }]),
|
|
@@ -966,6 +966,10 @@ var Xe = {
|
|
|
966
966
|
default: () => ({})
|
|
967
967
|
},
|
|
968
968
|
stateTick: { default: 0 },
|
|
969
|
+
canUndo: { type: Boolean },
|
|
970
|
+
canRedo: { type: Boolean },
|
|
971
|
+
onUndo: {},
|
|
972
|
+
onRedo: {},
|
|
969
973
|
zoomPercent: {},
|
|
970
974
|
isMinZoom: { type: Boolean },
|
|
971
975
|
isMaxZoom: { type: Boolean },
|
|
@@ -1058,11 +1062,11 @@ var Xe = {
|
|
|
1058
1062
|
currentStyleId: () => G.value.paragraphFormatting.styleId || "Normal",
|
|
1059
1063
|
t: h
|
|
1060
1064
|
}), re = o(() => {
|
|
1061
|
-
m.stateTick;
|
|
1065
|
+
if (m.stateTick, m.canUndo !== void 0) return m.canUndo;
|
|
1062
1066
|
let e = m.view;
|
|
1063
1067
|
return e ? te(e.state) > 0 : !1;
|
|
1064
1068
|
}), ie = o(() => {
|
|
1065
|
-
m.stateTick;
|
|
1069
|
+
if (m.stateTick, m.canRedo !== void 0) return m.canRedo;
|
|
1066
1070
|
let e = m.view;
|
|
1067
1071
|
return e ? ee(e.state) > 0 : !1;
|
|
1068
1072
|
}), ae = o(() => {
|
|
@@ -1096,6 +1100,20 @@ var Xe = {
|
|
|
1096
1100
|
fonts: ce.value.filter((e) => !e.category || e.category === "other")
|
|
1097
1101
|
}
|
|
1098
1102
|
]);
|
|
1103
|
+
function de() {
|
|
1104
|
+
if (m.onUndo) {
|
|
1105
|
+
m.onUndo();
|
|
1106
|
+
return;
|
|
1107
|
+
}
|
|
1108
|
+
Q("undo");
|
|
1109
|
+
}
|
|
1110
|
+
function fe() {
|
|
1111
|
+
if (m.onRedo) {
|
|
1112
|
+
m.onRedo();
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
Q("redo");
|
|
1116
|
+
}
|
|
1099
1117
|
function Q(e, ...t) {
|
|
1100
1118
|
let n = m.view;
|
|
1101
1119
|
if (!n) return;
|
|
@@ -1106,36 +1124,36 @@ var Xe = {
|
|
|
1106
1124
|
}
|
|
1107
1125
|
r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), V.value = null;
|
|
1108
1126
|
}
|
|
1109
|
-
function
|
|
1127
|
+
function pe(e) {
|
|
1110
1128
|
Q("setFontFamily", e);
|
|
1111
1129
|
}
|
|
1112
|
-
let { onSizeFocus:
|
|
1130
|
+
let { onSizeFocus: me, onSizeInput: _e, commitFontSize: ve, pickFontSize: ye, increaseFontSize: be, decreaseFontSize: xe } = He({
|
|
1113
1131
|
currentFontSize: J,
|
|
1114
1132
|
openDropdown: V,
|
|
1115
1133
|
recomputeDropdownPos: W,
|
|
1116
1134
|
execCommand: Q
|
|
1117
1135
|
});
|
|
1118
|
-
function
|
|
1136
|
+
function Se(e) {
|
|
1119
1137
|
if (typeof e == "object" && e.auto) {
|
|
1120
1138
|
Q("clearTextColor");
|
|
1121
1139
|
return;
|
|
1122
1140
|
}
|
|
1123
1141
|
Q("setTextColor", typeof e == "string" ? { rgb: e } : e);
|
|
1124
1142
|
}
|
|
1125
|
-
function
|
|
1143
|
+
function Ce() {
|
|
1126
1144
|
let e = m.view;
|
|
1127
1145
|
e && (q(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
|
|
1128
1146
|
}
|
|
1129
|
-
function
|
|
1147
|
+
function Te(e) {
|
|
1130
1148
|
Q("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
|
|
1131
1149
|
}
|
|
1132
|
-
function
|
|
1150
|
+
function Ee(e) {
|
|
1133
1151
|
v("apply-style", e), V.value = null;
|
|
1134
1152
|
}
|
|
1135
|
-
function
|
|
1153
|
+
function De(e) {
|
|
1136
1154
|
Q("setLineSpacing", e);
|
|
1137
1155
|
}
|
|
1138
|
-
function
|
|
1156
|
+
function Oe(e) {
|
|
1139
1157
|
let t = G.value.paragraphFormatting.lineSpacing;
|
|
1140
1158
|
return t ? Math.abs(t - e) < 10 : e === 240;
|
|
1141
1159
|
}
|
|
@@ -1144,15 +1162,15 @@ var Xe = {
|
|
|
1144
1162
|
title: O(h)("undoShortcut"),
|
|
1145
1163
|
"aria-label": O(h)("undo"),
|
|
1146
1164
|
disabled: !re.value,
|
|
1147
|
-
onMousedown:
|
|
1165
|
+
onMousedown: F(de, ["prevent"])
|
|
1148
1166
|
}, [f(r, { name: "undo" })], 40, Ze),
|
|
1149
1167
|
u("button", {
|
|
1150
1168
|
title: O(h)("redoShortcut"),
|
|
1151
1169
|
"aria-label": O(h)("redo"),
|
|
1152
1170
|
disabled: !ie.value,
|
|
1153
|
-
onMousedown:
|
|
1171
|
+
onMousedown: F(fe, ["prevent"])
|
|
1154
1172
|
}, [f(r, { name: "redo" })], 40, Qe),
|
|
1155
|
-
n[
|
|
1173
|
+
n[43] ||= u("span", { class: "divider" }, null, -1),
|
|
1156
1174
|
k.value ? (b(), l("div", {
|
|
1157
1175
|
key: 0,
|
|
1158
1176
|
class: "toolbar-dropdown zoom-group",
|
|
@@ -1161,13 +1179,13 @@ var Xe = {
|
|
|
1161
1179
|
}, [
|
|
1162
1180
|
u("button", {
|
|
1163
1181
|
class: "size-btn",
|
|
1164
|
-
onMousedown: n[
|
|
1182
|
+
onMousedown: n[0] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
|
|
1165
1183
|
disabled: x.value,
|
|
1166
1184
|
title: O(h)("zoom.zoomOut")
|
|
1167
1185
|
}, " − ", 40, $e),
|
|
1168
1186
|
u("button", {
|
|
1169
1187
|
class: "toolbar-dropdown__trigger zoom-trigger",
|
|
1170
|
-
onMousedown: n[
|
|
1188
|
+
onMousedown: n[1] ||= F((e) => O(U)("zoom"), ["prevent"]),
|
|
1171
1189
|
"aria-expanded": O(V) === "zoom",
|
|
1172
1190
|
"aria-haspopup": "listbox",
|
|
1173
1191
|
title: O(h)("zoom.zoomLevel")
|
|
@@ -1178,7 +1196,7 @@ var Xe = {
|
|
|
1178
1196
|
})], 40, et),
|
|
1179
1197
|
u("button", {
|
|
1180
1198
|
class: "size-btn",
|
|
1181
|
-
onMousedown: n[
|
|
1199
|
+
onMousedown: n[2] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
|
|
1182
1200
|
disabled: T.value,
|
|
1183
1201
|
title: O(h)("zoom.zoomIn")
|
|
1184
1202
|
}, " + ", 40, tt),
|
|
@@ -1192,14 +1210,14 @@ var Xe = {
|
|
|
1192
1210
|
onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
|
|
1193
1211
|
}, E(Math.round(e * 100)) + "% ", 43, nt))), 128))], 4)) : c("", !0)
|
|
1194
1212
|
], 512)) : c("", !0),
|
|
1195
|
-
n[
|
|
1213
|
+
n[44] ||= u("span", { class: "divider" }, null, -1),
|
|
1196
1214
|
u("div", {
|
|
1197
1215
|
class: "toolbar-dropdown",
|
|
1198
1216
|
ref_key: "styleDropdownRef",
|
|
1199
1217
|
ref: A
|
|
1200
1218
|
}, [u("button", {
|
|
1201
1219
|
class: "toolbar-dropdown__trigger style-trigger",
|
|
1202
|
-
onMousedown: n[
|
|
1220
|
+
onMousedown: n[3] ||= F((e) => O(U)("style"), ["prevent"]),
|
|
1203
1221
|
"aria-expanded": O(V) === "style",
|
|
1204
1222
|
"aria-haspopup": "listbox",
|
|
1205
1223
|
title: O(h)("styles.selectAriaLabel")
|
|
@@ -1214,16 +1232,16 @@ var Xe = {
|
|
|
1214
1232
|
}, [(b(!0), l(a, null, C(O(ne), (e) => (b(), l("button", {
|
|
1215
1233
|
key: e.id,
|
|
1216
1234
|
class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
|
|
1217
|
-
onMousedown: F((t) =>
|
|
1235
|
+
onMousedown: F((t) => Ee(e.id), ["prevent"])
|
|
1218
1236
|
}, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, it))), 128))], 4)) : c("", !0)], 512),
|
|
1219
|
-
n[
|
|
1237
|
+
n[45] ||= u("span", { class: "divider" }, null, -1),
|
|
1220
1238
|
u("div", {
|
|
1221
1239
|
class: "toolbar-dropdown",
|
|
1222
1240
|
ref_key: "fontDropdownRef",
|
|
1223
1241
|
ref: j
|
|
1224
1242
|
}, [u("button", {
|
|
1225
1243
|
class: "toolbar-dropdown__trigger font-trigger",
|
|
1226
|
-
onMousedown: n[
|
|
1244
|
+
onMousedown: n[4] ||= F((e) => O(U)("font"), ["prevent"]),
|
|
1227
1245
|
"aria-expanded": O(V) === "font",
|
|
1228
1246
|
"aria-haspopup": "listbox",
|
|
1229
1247
|
title: O(h)("font.selectAriaLabel")
|
|
@@ -1239,7 +1257,7 @@ var Xe = {
|
|
|
1239
1257
|
key: e.name,
|
|
1240
1258
|
class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
|
|
1241
1259
|
style: _({ fontFamily: e.fontFamily }),
|
|
1242
|
-
onMousedown: F((t) =>
|
|
1260
|
+
onMousedown: F((t) => pe(e.name), ["prevent"])
|
|
1243
1261
|
}, E(e.name), 47, st))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
|
|
1244
1262
|
u("div", {
|
|
1245
1263
|
class: "toolbar-dropdown font-size-group",
|
|
@@ -1248,7 +1266,7 @@ var Xe = {
|
|
|
1248
1266
|
}, [
|
|
1249
1267
|
u("button", {
|
|
1250
1268
|
class: "size-btn",
|
|
1251
|
-
onMousedown: n[
|
|
1269
|
+
onMousedown: n[5] ||= F((...e) => O(xe) && O(xe)(...e), ["prevent"]),
|
|
1252
1270
|
title: O(h)("decreaseFontSize")
|
|
1253
1271
|
}, " − ", 40, ct),
|
|
1254
1272
|
u("input", {
|
|
@@ -1256,21 +1274,21 @@ var Xe = {
|
|
|
1256
1274
|
type: "text",
|
|
1257
1275
|
value: J.value,
|
|
1258
1276
|
title: O(h)("fontSize"),
|
|
1259
|
-
onMousedown: n[
|
|
1260
|
-
onFocus: n[
|
|
1277
|
+
onMousedown: n[6] ||= F(() => {}, ["stop"]),
|
|
1278
|
+
onFocus: n[7] ||= (...e) => O(me) && O(me)(...e),
|
|
1261
1279
|
"aria-expanded": O(V) === "size",
|
|
1262
1280
|
"aria-haspopup": "listbox",
|
|
1263
|
-
onInput: n[
|
|
1281
|
+
onInput: n[8] ||= (...e) => O(_e) && O(_e)(...e),
|
|
1264
1282
|
onKeydown: [
|
|
1265
|
-
n[
|
|
1266
|
-
n[
|
|
1267
|
-
n[
|
|
1283
|
+
n[9] ||= P(F((e) => O(be)(), ["prevent", "stop"]), ["up"]),
|
|
1284
|
+
n[10] ||= P(F((e) => O(xe)(), ["prevent", "stop"]), ["down"]),
|
|
1285
|
+
n[11] ||= P(F((e) => O(ve)(e), ["prevent"]), ["enter"])
|
|
1268
1286
|
],
|
|
1269
|
-
onBlur: n[
|
|
1287
|
+
onBlur: n[12] ||= (e) => O(ve)(e)
|
|
1270
1288
|
}, null, 40, lt),
|
|
1271
1289
|
u("button", {
|
|
1272
1290
|
class: "size-btn",
|
|
1273
|
-
onMousedown: n[
|
|
1291
|
+
onMousedown: n[13] ||= F((...e) => O(be) && O(be)(...e), ["prevent"]),
|
|
1274
1292
|
title: O(h)("increaseFontSize")
|
|
1275
1293
|
}, " + ", 40, ut),
|
|
1276
1294
|
O(V) === "size" ? (b(), l("div", {
|
|
@@ -1280,71 +1298,71 @@ var Xe = {
|
|
|
1280
1298
|
}, [(b(!0), l(a, null, C(O(Le), (e) => (b(), l("button", {
|
|
1281
1299
|
key: e,
|
|
1282
1300
|
class: g(["toolbar-dropdown__item", { active: J.value === e }]),
|
|
1283
|
-
onMousedown: F((t) => O(
|
|
1301
|
+
onMousedown: F((t) => O(ye)(e), ["prevent"])
|
|
1284
1302
|
}, E(e), 43, dt))), 128))], 4)) : c("", !0)
|
|
1285
1303
|
], 512),
|
|
1286
|
-
n[
|
|
1304
|
+
n[46] ||= u("span", { class: "divider" }, null, -1),
|
|
1287
1305
|
u("button", {
|
|
1288
1306
|
title: O(h)("boldShortcut"),
|
|
1289
1307
|
"aria-label": O(h)("bold"),
|
|
1290
1308
|
class: g({ active: G.value.textFormatting.bold }),
|
|
1291
|
-
onMousedown: n[
|
|
1309
|
+
onMousedown: n[14] ||= F((e) => Q("toggleBold"), ["prevent"])
|
|
1292
1310
|
}, [f(r, { name: "format_bold" })], 42, ft),
|
|
1293
1311
|
u("button", {
|
|
1294
1312
|
title: O(h)("italicShortcut"),
|
|
1295
1313
|
"aria-label": O(h)("italic"),
|
|
1296
1314
|
class: g({ active: G.value.textFormatting.italic }),
|
|
1297
|
-
onMousedown: n[
|
|
1315
|
+
onMousedown: n[15] ||= F((e) => Q("toggleItalic"), ["prevent"])
|
|
1298
1316
|
}, [f(r, { name: "format_italic" })], 42, pt),
|
|
1299
1317
|
u("button", {
|
|
1300
1318
|
title: O(h)("underlineShortcut"),
|
|
1301
1319
|
"aria-label": O(h)("underline"),
|
|
1302
1320
|
class: g({ active: !!G.value.textFormatting.underline }),
|
|
1303
|
-
onMousedown: n[
|
|
1321
|
+
onMousedown: n[16] ||= F((e) => Q("toggleUnderline"), ["prevent"])
|
|
1304
1322
|
}, [f(r, { name: "format_underlined" })], 42, mt),
|
|
1305
1323
|
u("button", {
|
|
1306
1324
|
title: O(h)("formattingBar.strikethrough"),
|
|
1307
1325
|
"aria-label": O(h)("formattingBar.strikethrough"),
|
|
1308
1326
|
class: g({ active: G.value.textFormatting.strike }),
|
|
1309
|
-
onMousedown: n[
|
|
1327
|
+
onMousedown: n[17] ||= F((e) => Q("toggleStrike"), ["prevent"])
|
|
1310
1328
|
}, [f(r, { name: "strikethrough_s" })], 42, ht),
|
|
1311
1329
|
f(O(p), {
|
|
1312
1330
|
mode: "text",
|
|
1313
1331
|
value: oe.value,
|
|
1314
1332
|
theme: e.theme ?? null,
|
|
1315
|
-
onChange:
|
|
1333
|
+
onChange: Se
|
|
1316
1334
|
}, null, 8, ["value", "theme"]),
|
|
1317
1335
|
f(O(p), {
|
|
1318
1336
|
mode: "highlight",
|
|
1319
1337
|
value: se.value,
|
|
1320
1338
|
theme: e.theme ?? null,
|
|
1321
|
-
onChange:
|
|
1339
|
+
onChange: Te
|
|
1322
1340
|
}, null, 8, ["value", "theme"]),
|
|
1323
1341
|
u("button", {
|
|
1324
1342
|
title: O(h)("formattingBar.insertLinkShortcut"),
|
|
1325
1343
|
"aria-label": O(h)("formattingBar.insertLink"),
|
|
1326
|
-
onMousedown: n[
|
|
1344
|
+
onMousedown: n[18] ||= F((e) => t.$emit("insert-link"), ["prevent"])
|
|
1327
1345
|
}, [f(r, { name: "link" })], 40, gt),
|
|
1328
1346
|
u("button", {
|
|
1329
1347
|
title: O(h)("formattingBar.superscriptShortcut"),
|
|
1330
1348
|
"aria-label": O(h)("formattingBar.superscript"),
|
|
1331
1349
|
class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
|
|
1332
|
-
onMousedown: n[
|
|
1350
|
+
onMousedown: n[19] ||= F((e) => Q("toggleSuperscript"), ["prevent"])
|
|
1333
1351
|
}, [f(r, { name: "superscript" })], 42, _t),
|
|
1334
1352
|
u("button", {
|
|
1335
1353
|
title: O(h)("formattingBar.subscriptShortcut"),
|
|
1336
1354
|
"aria-label": O(h)("formattingBar.subscript"),
|
|
1337
1355
|
class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
|
|
1338
|
-
onMousedown: n[
|
|
1356
|
+
onMousedown: n[20] ||= F((e) => Q("toggleSubscript"), ["prevent"])
|
|
1339
1357
|
}, [f(r, { name: "subscript" })], 42, vt),
|
|
1340
|
-
n[
|
|
1358
|
+
n[47] ||= u("span", { class: "divider" }, null, -1),
|
|
1341
1359
|
u("div", {
|
|
1342
1360
|
class: "toolbar-dropdown",
|
|
1343
1361
|
ref_key: "alignDropdownRef",
|
|
1344
1362
|
ref: N
|
|
1345
1363
|
}, [u("button", {
|
|
1346
1364
|
class: "toolbar-dropdown__trigger align-trigger",
|
|
1347
|
-
onMousedown: n[
|
|
1365
|
+
onMousedown: n[21] ||= F((e) => O(U)("align"), ["prevent"]),
|
|
1348
1366
|
"aria-expanded": O(V) === "align",
|
|
1349
1367
|
"aria-haspopup": "listbox",
|
|
1350
1368
|
title: O(h)("alignmentGroup")
|
|
@@ -1360,7 +1378,7 @@ var Xe = {
|
|
|
1360
1378
|
u("button", {
|
|
1361
1379
|
class: g(["align-strip__btn", { active: Y.value === "left" }]),
|
|
1362
1380
|
title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
|
|
1363
|
-
onMousedown: n[
|
|
1381
|
+
onMousedown: n[22] ||= F((e) => {
|
|
1364
1382
|
Q("alignLeft"), V.value = null;
|
|
1365
1383
|
}, ["prevent"])
|
|
1366
1384
|
}, [f(r, {
|
|
@@ -1370,7 +1388,7 @@ var Xe = {
|
|
|
1370
1388
|
u("button", {
|
|
1371
1389
|
class: g(["align-strip__btn", { active: Y.value === "center" }]),
|
|
1372
1390
|
title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
|
|
1373
|
-
onMousedown: n[
|
|
1391
|
+
onMousedown: n[23] ||= F((e) => {
|
|
1374
1392
|
Q("alignCenter"), V.value = null;
|
|
1375
1393
|
}, ["prevent"])
|
|
1376
1394
|
}, [f(r, {
|
|
@@ -1380,7 +1398,7 @@ var Xe = {
|
|
|
1380
1398
|
u("button", {
|
|
1381
1399
|
class: g(["align-strip__btn", { active: Y.value === "right" }]),
|
|
1382
1400
|
title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
|
|
1383
|
-
onMousedown: n[
|
|
1401
|
+
onMousedown: n[24] ||= F((e) => {
|
|
1384
1402
|
Q("alignRight"), V.value = null;
|
|
1385
1403
|
}, ["prevent"])
|
|
1386
1404
|
}, [f(r, {
|
|
@@ -1390,7 +1408,7 @@ var Xe = {
|
|
|
1390
1408
|
u("button", {
|
|
1391
1409
|
class: g(["align-strip__btn", { active: Y.value === "both" }]),
|
|
1392
1410
|
title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
|
|
1393
|
-
onMousedown: n[
|
|
1411
|
+
onMousedown: n[25] ||= F((e) => {
|
|
1394
1412
|
Q("alignJustify"), V.value = null;
|
|
1395
1413
|
}, ["prevent"])
|
|
1396
1414
|
}, [f(r, {
|
|
@@ -1402,24 +1420,24 @@ var Xe = {
|
|
|
1402
1420
|
title: O(h)("bulletList"),
|
|
1403
1421
|
"aria-label": O(h)("bulletList"),
|
|
1404
1422
|
class: g({ active: G.value.listState.type === "bullet" }),
|
|
1405
|
-
onMousedown: n[
|
|
1423
|
+
onMousedown: n[26] ||= F((e) => Q("toggleBulletList"), ["prevent"])
|
|
1406
1424
|
}, [f(r, { name: "format_list_bulleted" })], 42, wt),
|
|
1407
1425
|
u("button", {
|
|
1408
1426
|
title: O(h)("numberedList"),
|
|
1409
1427
|
"aria-label": O(h)("numberedList"),
|
|
1410
1428
|
class: g({ active: G.value.listState.type === "numbered" }),
|
|
1411
|
-
onMousedown: n[
|
|
1429
|
+
onMousedown: n[27] ||= F((e) => Q("toggleNumberedList"), ["prevent"])
|
|
1412
1430
|
}, [f(r, { name: "format_list_numbered" })], 42, Tt),
|
|
1413
1431
|
u("button", {
|
|
1414
1432
|
title: O(h)("decreaseIndent"),
|
|
1415
1433
|
"aria-label": O(h)("decreaseIndent"),
|
|
1416
1434
|
disabled: !ae.value,
|
|
1417
|
-
onMousedown: n[
|
|
1435
|
+
onMousedown: n[28] ||= F((e) => Q("outdent"), ["prevent"])
|
|
1418
1436
|
}, [f(r, { name: "format_indent_decrease" })], 40, Et),
|
|
1419
1437
|
u("button", {
|
|
1420
1438
|
title: O(h)("increaseIndent"),
|
|
1421
1439
|
"aria-label": O(h)("increaseIndent"),
|
|
1422
|
-
onMousedown: n[
|
|
1440
|
+
onMousedown: n[29] ||= F((e) => Q("indent"), ["prevent"])
|
|
1423
1441
|
}, [f(r, { name: "format_indent_increase" })], 40, Dt),
|
|
1424
1442
|
u("div", {
|
|
1425
1443
|
class: "toolbar-dropdown",
|
|
@@ -1427,7 +1445,7 @@ var Xe = {
|
|
|
1427
1445
|
ref: R
|
|
1428
1446
|
}, [u("button", {
|
|
1429
1447
|
class: "toolbar-dropdown__trigger",
|
|
1430
|
-
onMousedown: n[
|
|
1448
|
+
onMousedown: n[30] ||= F((e) => O(U)("spacing"), ["prevent"]),
|
|
1431
1449
|
"aria-expanded": O(V) === "spacing",
|
|
1432
1450
|
"aria-haspopup": "listbox",
|
|
1433
1451
|
title: O(h)("lineSpacing.label")
|
|
@@ -1441,15 +1459,15 @@ var Xe = {
|
|
|
1441
1459
|
class: "toolbar-dropdown__menu"
|
|
1442
1460
|
}, [(b(!0), l(a, null, C(O(ze), (e) => (b(), l("button", {
|
|
1443
1461
|
key: e.value,
|
|
1444
|
-
class: g(["toolbar-dropdown__item", { active:
|
|
1445
|
-
onMousedown: F((t) =>
|
|
1462
|
+
class: g(["toolbar-dropdown__item", { active: Oe(e.value) }]),
|
|
1463
|
+
onMousedown: F((t) => De(e.value), ["prevent"])
|
|
1446
1464
|
}, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, kt))), 128))], 4)) : c("", !0)], 512),
|
|
1447
1465
|
u("button", {
|
|
1448
1466
|
title: O(h)("formattingBar.clearFormatting"),
|
|
1449
1467
|
"aria-label": O(h)("formattingBar.clearFormatting"),
|
|
1450
|
-
onMousedown: F(
|
|
1468
|
+
onMousedown: F(Ce, ["prevent"])
|
|
1451
1469
|
}, [f(r, { name: "format_clear" })], 40, At),
|
|
1452
|
-
n[
|
|
1470
|
+
n[48] ||= u("span", { class: "divider" }, null, -1),
|
|
1453
1471
|
e.outlineDrawer ? (b(), l("button", {
|
|
1454
1472
|
key: 1,
|
|
1455
1473
|
type: "button",
|
|
@@ -1458,8 +1476,8 @@ var Xe = {
|
|
|
1458
1476
|
"aria-label": O(h)("editor.showDocumentOutline"),
|
|
1459
1477
|
"aria-pressed": e.outlineDrawerOpen,
|
|
1460
1478
|
class: g({ active: e.outlineDrawerOpen }),
|
|
1461
|
-
onMousedown: n[
|
|
1462
|
-
onClick: n[
|
|
1479
|
+
onMousedown: n[31] ||= F(() => {}, ["prevent"]),
|
|
1480
|
+
onClick: n[32] ||= (e) => t.$emit("toggle-outline")
|
|
1463
1481
|
}, [f(r, { name: "format_list_bulleted" })], 42, jt)) : c("", !0),
|
|
1464
1482
|
u("button", {
|
|
1465
1483
|
type: "button",
|
|
@@ -1468,44 +1486,44 @@ var Xe = {
|
|
|
1468
1486
|
"aria-label": O(h)("formattingBar.commentsAndChanges"),
|
|
1469
1487
|
"aria-pressed": e.commentsSidebarOpen,
|
|
1470
1488
|
class: g({ active: e.commentsSidebarOpen }),
|
|
1471
|
-
onMousedown: n[
|
|
1472
|
-
onClick: n[
|
|
1489
|
+
onMousedown: n[33] ||= F(() => {}, ["prevent"]),
|
|
1490
|
+
onClick: n[34] ||= (e) => t.$emit("toggle-sidebar")
|
|
1473
1491
|
}, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span", Nt, E(e.commentCount > 99 ? "99+" : e.commentCount), 1)) : c("", !0)], 42, Mt),
|
|
1474
1492
|
e.imageContext ? (b(), l(a, { key: 2 }, [
|
|
1475
|
-
n[
|
|
1493
|
+
n[41] ||= u("span", { class: "divider" }, null, -1),
|
|
1476
1494
|
f(he, {
|
|
1477
1495
|
"image-context": e.imageContext,
|
|
1478
|
-
onChange: n[
|
|
1496
|
+
onChange: n[35] ||= (e) => t.$emit("image-wrap-type", e)
|
|
1479
1497
|
}, null, 8, ["image-context"]),
|
|
1480
|
-
f(ge, { onTransform: n[
|
|
1498
|
+
f(ge, { onTransform: n[36] ||= (e) => t.$emit("image-transform", e) }),
|
|
1481
1499
|
u("button", {
|
|
1482
1500
|
title: O(h)("formattingBar.imagePropertiesShortcut"),
|
|
1483
1501
|
"aria-label": O(h)("formattingBar.imageProperties"),
|
|
1484
|
-
onMousedown: n[
|
|
1502
|
+
onMousedown: n[37] ||= F((e) => t.$emit("image-properties"), ["prevent"])
|
|
1485
1503
|
}, [f(r, { name: "tune" })], 40, Pt)
|
|
1486
1504
|
], 64)) : c("", !0),
|
|
1487
1505
|
w(t.$slots, "table-context", {}, void 0, !0),
|
|
1488
|
-
e.showReviewControls ? (b(), l(a, { key: 3 }, [n[
|
|
1506
|
+
e.showReviewControls ? (b(), l(a, { key: 3 }, [n[42] ||= u("span", { class: "divider" }, null, -1), f(Me, {
|
|
1489
1507
|
"track-changes-on": e.trackChangesOn,
|
|
1490
1508
|
"display-mode": e.displayMode,
|
|
1491
1509
|
"read-only": e.readOnly,
|
|
1492
|
-
onToggleTrackChanges: n[
|
|
1493
|
-
"onUpdate:displayMode": n[
|
|
1510
|
+
onToggleTrackChanges: n[38] ||= (e) => t.$emit("toggle-track-changes"),
|
|
1511
|
+
"onUpdate:displayMode": n[39] ||= (e) => t.$emit("update:display-mode", e)
|
|
1494
1512
|
}, null, 8, [
|
|
1495
1513
|
"track-changes-on",
|
|
1496
1514
|
"display-mode",
|
|
1497
1515
|
"read-only"
|
|
1498
1516
|
])], 64)) : c("", !0),
|
|
1499
|
-
n[
|
|
1517
|
+
n[49] ||= u("span", { class: "divider" }, null, -1),
|
|
1500
1518
|
e.editorMode ? (b(), s(we, {
|
|
1501
1519
|
key: 4,
|
|
1502
1520
|
"model-value": e.editorMode,
|
|
1503
|
-
"onUpdate:modelValue": n[
|
|
1521
|
+
"onUpdate:modelValue": n[40] ||= (e) => t.$emit("mode-change", e)
|
|
1504
1522
|
}, null, 8, ["model-value"])) : c("", !0),
|
|
1505
1523
|
w(t.$slots, "toolbar-extra", {}, void 0, !0)
|
|
1506
1524
|
])) : c("", !0);
|
|
1507
1525
|
}
|
|
1508
|
-
}), [["__scopeId", "data-v-
|
|
1526
|
+
}), [["__scopeId", "data-v-016e3ca9"]]), 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({
|
|
1509
1527
|
__name: "HorizontalRuler",
|
|
1510
1528
|
props: {
|
|
1511
1529
|
sectionProps: {},
|
|
@@ -3688,4 +3706,4 @@ var Yr = ["data-folio-comments-surface", "tabindex"], Xr = ["data-card-id"], Zr
|
|
|
3688
3706
|
}
|
|
3689
3707
|
}), [["__scopeId", "data-v-7cc21148"]]);
|
|
3690
3708
|
//#endregion
|
|
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,
|
|
3709
|
+
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, de as w, ge as x, Ft as y };
|