@eigenpal/docx-editor-vue 1.3.1 → 1.3.3

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