@kedataindo/docflow-vue 0.0.28 → 0.0.30
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/components/DocsEditor.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar.vue.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.js +109 -92
- package/dist/locales/en.d.ts +3 -0
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/id.d.ts +3 -0
- package/dist/locales/id.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -204,6 +204,9 @@ const pu = {
|
|
|
204
204
|
pageNumbers: "Page numbers",
|
|
205
205
|
pageNumberInHeader: "Insert in header",
|
|
206
206
|
pageNumberInFooter: "Insert in footer",
|
|
207
|
+
break: "Break",
|
|
208
|
+
pageBreak: "Page break",
|
|
209
|
+
pageBreakShortcut: "Ctrl+Enter",
|
|
207
210
|
pagelessFormat: "Pageless format",
|
|
208
211
|
clearFormatting: "Clear formatting",
|
|
209
212
|
spellCheck: "Spell check",
|
|
@@ -729,6 +732,9 @@ const pu = {
|
|
|
729
732
|
pageNumbers: "Nomor halaman",
|
|
730
733
|
pageNumberInHeader: "Sisipkan di header",
|
|
731
734
|
pageNumberInFooter: "Sisipkan di footer",
|
|
735
|
+
break: "Pemisah",
|
|
736
|
+
pageBreak: "Pemisah halaman",
|
|
737
|
+
pageBreakShortcut: "Ctrl+Enter",
|
|
732
738
|
pagelessFormat: "Format tanpa halaman",
|
|
733
739
|
clearFormatting: "Hapus pemformatan",
|
|
734
740
|
spellCheck: "Periksa ejaan",
|
|
@@ -2696,13 +2702,29 @@ const ei = pe("x", [
|
|
|
2696
2702
|
{ label: n("header.image"), action: "insert-image" },
|
|
2697
2703
|
{ label: n("header.table"), action: "insert-table" },
|
|
2698
2704
|
{ label: n("header.codeBlock"), action: "insert-code" },
|
|
2705
|
+
{ label: n("header.horizontalLine"), action: "horizontal-line" },
|
|
2699
2706
|
{ label: "divider", divider: !0 },
|
|
2700
2707
|
{ label: n("header.link"), action: "insert-link", shortcut: A("K") },
|
|
2701
2708
|
{ label: "divider", divider: !0 },
|
|
2709
|
+
{
|
|
2710
|
+
label: n("header.break"),
|
|
2711
|
+
sub: [
|
|
2712
|
+
{ label: n("header.pageBreak"), action: "insert-page-break", shortcut: n("header.pageBreakShortcut") }
|
|
2713
|
+
]
|
|
2714
|
+
},
|
|
2715
|
+
{ label: "divider", divider: !0 },
|
|
2702
2716
|
{ label: n("header.header"), action: "insert-header" },
|
|
2703
2717
|
{ label: n("header.footer"), action: "insert-footer" },
|
|
2704
2718
|
{ label: n("header.footnote"), action: "insert-footnote" },
|
|
2705
|
-
{ label: n("header.tableOfContents"), action: "insert-toc" }
|
|
2719
|
+
{ label: n("header.tableOfContents"), action: "insert-toc" },
|
|
2720
|
+
{ label: "divider", divider: !0 },
|
|
2721
|
+
{
|
|
2722
|
+
label: n("header.pageNumbers"),
|
|
2723
|
+
sub: [
|
|
2724
|
+
{ label: n("header.pageNumberInHeader"), action: "page-numbers-header" },
|
|
2725
|
+
{ label: n("header.pageNumberInFooter"), action: "page-numbers-footer" }
|
|
2726
|
+
]
|
|
2727
|
+
}
|
|
2706
2728
|
]
|
|
2707
2729
|
},
|
|
2708
2730
|
Format: {
|
|
@@ -2734,15 +2756,6 @@ const ei = pe("x", [
|
|
|
2734
2756
|
]
|
|
2735
2757
|
},
|
|
2736
2758
|
{ label: "divider", divider: !0 },
|
|
2737
|
-
{ label: n("header.horizontalLine"), action: "horizontal-line" },
|
|
2738
|
-
{
|
|
2739
|
-
label: n("header.pageNumbers"),
|
|
2740
|
-
sub: [
|
|
2741
|
-
{ label: n("header.pageNumberInHeader"), action: "page-numbers-header" },
|
|
2742
|
-
{ label: n("header.pageNumberInFooter"), action: "page-numbers-footer" }
|
|
2743
|
-
]
|
|
2744
|
-
},
|
|
2745
|
-
{ label: "divider", divider: !0 },
|
|
2746
2759
|
{ label: n("header.pagelessFormat"), action: "toggle-pageless", checked: s.pageless },
|
|
2747
2760
|
{ label: "divider", divider: !0 },
|
|
2748
2761
|
{ label: n("header.clearFormatting"), action: "clear-formatting" }
|
|
@@ -3332,8 +3345,8 @@ const ei = pe("x", [
|
|
|
3332
3345
|
if (typeof ie == "function")
|
|
3333
3346
|
ie(P);
|
|
3334
3347
|
else {
|
|
3335
|
-
const
|
|
3336
|
-
typeof
|
|
3348
|
+
const ui = (at = (Ge = n.editor) == null ? void 0 : Ge.commands) == null ? void 0 : at[Y];
|
|
3349
|
+
typeof ui == "function" && ui(P);
|
|
3337
3350
|
}
|
|
3338
3351
|
(lt = n.editor) == null || lt.commands.focus(), D.value = null;
|
|
3339
3352
|
}
|
|
@@ -10746,10 +10759,10 @@ c.Engine.prototype.processCitationCluster = function(e, t, i, n) {
|
|
|
10746
10759
|
if (this.registry.registry[b[0].id]["citation-count"] = this.registry.citationreg.citationsByItemId[Be].length, typeof ie == "number") {
|
|
10747
10760
|
var at = ie < 2, lt = Ge < 2;
|
|
10748
10761
|
if (at !== lt)
|
|
10749
|
-
for (var Y = 0,
|
|
10762
|
+
for (var Y = 0, ui = this.registry.citationreg.citationsByItemId[Be].length; Y < ui; Y++)
|
|
10750
10763
|
J[this.registry.registry[b[0].id].ambig] = !0, this.tmp.taintedCitationIDs[this.registry.citationreg.citationsByItemId[Be][Y].citationID] = !0;
|
|
10751
10764
|
} else
|
|
10752
|
-
for (var Y = 0,
|
|
10765
|
+
for (var Y = 0, ui = this.registry.citationreg.citationsByItemId[Be].length; Y < ui; Y++)
|
|
10753
10766
|
J[this.registry.registry[b[0].id].ambig] = !0, this.tmp.taintedCitationIDs[this.registry.citationreg.citationsByItemId[Be][Y].citationID] = !0;
|
|
10754
10767
|
}
|
|
10755
10768
|
var Nt, It;
|
|
@@ -10769,8 +10782,8 @@ c.Engine.prototype.processCitationCluster = function(e, t, i, n) {
|
|
|
10769
10782
|
if (u > 0 && d === 0 && mt.properties.noteIndex !== Gi.properties.noteIndex) {
|
|
10770
10783
|
var Ki = !1, Oi = mt.sortedItems[0][0].id;
|
|
10771
10784
|
if (mt.sortedItems[0][0].legislation_id && (Oi = mt.sortedItems[0][0].legislation_id), Oi == qe && mt.properties.noteIndex >= Gi.properties.noteIndex - 1) {
|
|
10772
|
-
var gs = mt.sortedItems[0][1]["locator-extra"],
|
|
10773
|
-
(A[mt.properties.noteIndex] === 1 || mt.properties.noteIndex === 0) && gs ===
|
|
10785
|
+
var gs = mt.sortedItems[0][1]["locator-extra"], fi = Gi.sortedItems[0][1]["locator-extra"];
|
|
10786
|
+
(A[mt.properties.noteIndex] === 1 || mt.properties.noteIndex === 0) && gs === fi && (Ki = !0);
|
|
10774
10787
|
}
|
|
10775
10788
|
Ki ? Xt = !0 : Ai = !0;
|
|
10776
10789
|
} else d > 0 && Pe == qe && Kt == Le || d === 0 && u > 0 && mt.properties.noteIndex == Gi.properties.noteIndex && mt.sortedItems.length && Nt == qe && It == Le ? Xt = !0 : Ai = !0;
|
|
@@ -10783,8 +10796,8 @@ c.Engine.prototype.processCitationCluster = function(e, t, i, n) {
|
|
|
10783
10796
|
} else b[1].position !== c.POSITION_FIRST && (b[1]["near-note"] = !0);
|
|
10784
10797
|
if (he.citationID != e.citationID)
|
|
10785
10798
|
for (m = 0, g = c.POSITION_TEST_VARS.length; m < g; m += 1) {
|
|
10786
|
-
var
|
|
10787
|
-
b[1][
|
|
10799
|
+
var pi = c.POSITION_TEST_VARS[m];
|
|
10800
|
+
b[1][pi] !== P[pi] && (this.registry.registry[b[0].id] && pi === "first-reference-note-number" && (J[this.registry.registry[b[0].id].ambig] = !0, this.tmp.taintedItemIDs[b[0].id] = !0), this.tmp.taintedCitationIDs[he.citationID] = !0);
|
|
10788
10801
|
}
|
|
10789
10802
|
this.sys.variableWrapper && (b[1].index = he.properties.index, b[1].noteIndex = he.properties.noteIndex);
|
|
10790
10803
|
}
|
|
@@ -17205,7 +17218,7 @@ class Pi extends _t {
|
|
|
17205
17218
|
return ot.fromReplace(t, this.from, this.to, a);
|
|
17206
17219
|
}
|
|
17207
17220
|
invert() {
|
|
17208
|
-
return new
|
|
17221
|
+
return new oi(this.from, this.to, this.mark);
|
|
17209
17222
|
}
|
|
17210
17223
|
map(t) {
|
|
17211
17224
|
let i = t.mapResult(this.from, 1), n = t.mapResult(this.to, -1);
|
|
@@ -17232,7 +17245,7 @@ class Pi extends _t {
|
|
|
17232
17245
|
}
|
|
17233
17246
|
}
|
|
17234
17247
|
_t.jsonID("addMark", Pi);
|
|
17235
|
-
class
|
|
17248
|
+
class oi extends _t {
|
|
17236
17249
|
/**
|
|
17237
17250
|
Create a mark-removing step.
|
|
17238
17251
|
*/
|
|
@@ -17248,10 +17261,10 @@ class si extends _t {
|
|
|
17248
17261
|
}
|
|
17249
17262
|
map(t) {
|
|
17250
17263
|
let i = t.mapResult(this.from, 1), n = t.mapResult(this.to, -1);
|
|
17251
|
-
return i.deleted && n.deleted || i.pos >= n.pos ? null : new
|
|
17264
|
+
return i.deleted && n.deleted || i.pos >= n.pos ? null : new oi(i.pos, n.pos, this.mark);
|
|
17252
17265
|
}
|
|
17253
17266
|
merge(t) {
|
|
17254
|
-
return t instanceof
|
|
17267
|
+
return t instanceof oi && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new oi(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
17255
17268
|
}
|
|
17256
17269
|
toJSON() {
|
|
17257
17270
|
return {
|
|
@@ -17267,10 +17280,10 @@ class si extends _t {
|
|
|
17267
17280
|
static fromJSON(t, i) {
|
|
17268
17281
|
if (typeof i.from != "number" || typeof i.to != "number")
|
|
17269
17282
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
17270
|
-
return new
|
|
17283
|
+
return new oi(i.from, i.to, t.markFromJSON(i.mark));
|
|
17271
17284
|
}
|
|
17272
17285
|
}
|
|
17273
|
-
_t.jsonID("removeMark",
|
|
17286
|
+
_t.jsonID("removeMark", oi);
|
|
17274
17287
|
class Bi extends _t {
|
|
17275
17288
|
/**
|
|
17276
17289
|
Create a node mark step.
|
|
@@ -17484,7 +17497,7 @@ function Oy(e, t, i, n) {
|
|
|
17484
17497
|
if (!n.isInSet(d) && f.type.allowsMarkType(n.type)) {
|
|
17485
17498
|
let p = Math.max(u, t), m = Math.min(u + l.nodeSize, i), g = n.addToSet(d);
|
|
17486
17499
|
for (let h = 0; h < d.length; h++)
|
|
17487
|
-
d[h].isInSet(g) || (s && s.to == p && s.mark.eq(d[h]) ? s.to = m : r.push(s = new
|
|
17500
|
+
d[h].isInSet(g) || (s && s.to == p && s.mark.eq(d[h]) ? s.to = m : r.push(s = new oi(p, m, d[h])));
|
|
17488
17501
|
o && o.to == p ? o.to = m : a.push(o = new Pi(p, m, n));
|
|
17489
17502
|
}
|
|
17490
17503
|
}), r.forEach((l) => e.step(l)), a.forEach((l) => e.step(l));
|
|
@@ -17512,7 +17525,7 @@ function Ty(e, t, i, n) {
|
|
|
17512
17525
|
p ? (p.to = u, p.step = a) : r.push({ style: d, from: Math.max(o, t), to: u, step: a });
|
|
17513
17526
|
}
|
|
17514
17527
|
}
|
|
17515
|
-
}), r.forEach((s) => e.step(new
|
|
17528
|
+
}), r.forEach((s) => e.step(new oi(s.from, s.to, s.style)));
|
|
17516
17529
|
}
|
|
17517
17530
|
function jo(e, t, i, n = i.contentMatch, r = !0) {
|
|
17518
17531
|
let a = e.doc.nodeAt(t), s = [], o = t + 1;
|
|
@@ -17523,7 +17536,7 @@ function jo(e, t, i, n = i.contentMatch, r = !0) {
|
|
|
17523
17536
|
else {
|
|
17524
17537
|
n = d;
|
|
17525
17538
|
for (let p = 0; p < u.marks.length; p++)
|
|
17526
|
-
i.allowsMarkType(u.marks[p].type) || e.step(new
|
|
17539
|
+
i.allowsMarkType(u.marks[p].type) || e.step(new oi(o, f, u.marks[p]));
|
|
17527
17540
|
if (r && u.isText && i.whitespace != "pre") {
|
|
17528
17541
|
let p, m = /\r?\n|\r/g, g;
|
|
17529
17542
|
for (; p = m.exec(u.text); )
|
|
@@ -18917,9 +18930,9 @@ function mf(e, t) {
|
|
|
18917
18930
|
let i = document.createEvent("Event");
|
|
18918
18931
|
return i.initEvent("keydown", !0, !0), i.keyCode = e, i.key = i.code = t, i;
|
|
18919
18932
|
}
|
|
18920
|
-
const
|
|
18933
|
+
const li = typeof navigator < "u" ? navigator : null, bc = typeof document < "u" ? document : null, $i = li && li.userAgent || "", fo = /Edge\/(\d+)/.exec($i), hf = /MSIE \d/.exec($i), po = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($i), xr = !!(hf || po || fo), bf = hf ? document.documentMode : po ? +po[1] : fo ? +fo[1] : 0, ds = !xr && /gecko\/(\d+)/i.test($i);
|
|
18921
18934
|
ds && +(/Firefox\/(\d+)/.exec($i) || [0, 0])[1];
|
|
18922
|
-
const mo = !xr && /Chrome\/(\d+)/.exec($i), Ci = !!mo, gf = mo ? +mo[1] : 0, gn = !xr && !!
|
|
18935
|
+
const mo = !xr && /Chrome\/(\d+)/.exec($i), Ci = !!mo, gf = mo ? +mo[1] : 0, gn = !xr && !!li && /Apple Computer/.test(li.vendor), Wo = gn && (/Mobile\/\w+/.test($i) || !!li && li.maxTouchPoints > 2), Gt = Wo || (li ? /Mac/.test(li.platform) : !1), vf = li ? /Win/.test(li.platform) : !1, wr = /Android \d/.test($i), Go = !!bc && "webkitFontSmoothing" in bc.documentElement.style, Zy = Go ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
18923
18936
|
function Qy(e, t = null) {
|
|
18924
18937
|
let i = e.domSelectionRange(), n = e.state.doc;
|
|
18925
18938
|
if (!i.focusNode)
|
|
@@ -37826,7 +37839,7 @@ Lt.prototype = {
|
|
|
37826
37839
|
return r.j[e] = s, s;
|
|
37827
37840
|
}
|
|
37828
37841
|
};
|
|
37829
|
-
const Ie = (e, t, i, n, r) => e.ta(t, i, n, r), et = (e, t, i, n, r) => e.tr(t, i, n, r), Fc = (e, t, i, n, r) => e.ts(t, i, n, r), se = (e, t, i, n, r) => e.tt(t, i, n, r), yi = "WORD", So = "UWORD", lp = "ASCIINUMERICAL", cp = "ALPHANUMERICAL", br = "LOCALHOST", Co = "TLD", Ao = "UTLD", ma = "SCHEME", En = "SLASH_SCHEME", fl = "NUM", Oo = "WS", pl = "NL", rr = "OPENBRACE", ar = "CLOSEBRACE", Ra = "OPENBRACKET", Da = "CLOSEBRACKET", La = "OPENPAREN", Pa = "CLOSEPAREN", Ba = "OPENANGLEBRACKET", Fa = "CLOSEANGLEBRACKET", Ua = "FULLWIDTHLEFTPAREN", Ha = "FULLWIDTHRIGHTPAREN", ja = "LEFTCORNERBRACKET", qa = "RIGHTCORNERBRACKET", Va = "LEFTWHITECORNERBRACKET", $a = "RIGHTWHITECORNERBRACKET", Wa = "FULLWIDTHLESSTHAN", Ga = "FULLWIDTHGREATERTHAN", Ka = "AMPERSAND", Xa = "APOSTROPHE", Ja = "ASTERISK", Di = "AT", Za = "BACKSLASH", Qa = "BACKTICK", Ya = "CARET", sn = "COLON", dl = "COMMA", es = "DOLLAR",
|
|
37842
|
+
const Ie = (e, t, i, n, r) => e.ta(t, i, n, r), et = (e, t, i, n, r) => e.tr(t, i, n, r), Fc = (e, t, i, n, r) => e.ts(t, i, n, r), se = (e, t, i, n, r) => e.tt(t, i, n, r), yi = "WORD", So = "UWORD", lp = "ASCIINUMERICAL", cp = "ALPHANUMERICAL", br = "LOCALHOST", Co = "TLD", Ao = "UTLD", ma = "SCHEME", En = "SLASH_SCHEME", fl = "NUM", Oo = "WS", pl = "NL", rr = "OPENBRACE", ar = "CLOSEBRACE", Ra = "OPENBRACKET", Da = "CLOSEBRACKET", La = "OPENPAREN", Pa = "CLOSEPAREN", Ba = "OPENANGLEBRACKET", Fa = "CLOSEANGLEBRACKET", Ua = "FULLWIDTHLEFTPAREN", Ha = "FULLWIDTHRIGHTPAREN", ja = "LEFTCORNERBRACKET", qa = "RIGHTCORNERBRACKET", Va = "LEFTWHITECORNERBRACKET", $a = "RIGHTWHITECORNERBRACKET", Wa = "FULLWIDTHLESSTHAN", Ga = "FULLWIDTHGREATERTHAN", Ka = "AMPERSAND", Xa = "APOSTROPHE", Ja = "ASTERISK", Di = "AT", Za = "BACKSLASH", Qa = "BACKTICK", Ya = "CARET", sn = "COLON", dl = "COMMA", es = "DOLLAR", ai = "DOT", ts = "EQUALS", ml = "EXCLAMATION", Wt = "HYPHEN", sr = "PERCENT", is = "PIPE", ns = "PLUS", rs = "POUND", or = "QUERY", hl = "QUOTE", up = "FULLWIDTHMIDDLEDOT", bl = "SEMI", si = "SLASH", lr = "TILDE", as = "UNDERSCORE", fp = "EMOJI", ss = "SYM";
|
|
37830
37843
|
var pp = /* @__PURE__ */ Object.freeze({
|
|
37831
37844
|
__proto__: null,
|
|
37832
37845
|
ALPHANUMERICAL: cp,
|
|
@@ -37845,7 +37858,7 @@ var pp = /* @__PURE__ */ Object.freeze({
|
|
|
37845
37858
|
COLON: sn,
|
|
37846
37859
|
COMMA: dl,
|
|
37847
37860
|
DOLLAR: es,
|
|
37848
|
-
DOT:
|
|
37861
|
+
DOT: ai,
|
|
37849
37862
|
EMOJI: fp,
|
|
37850
37863
|
EQUALS: ts,
|
|
37851
37864
|
EXCLAMATION: ml,
|
|
@@ -37874,7 +37887,7 @@ var pp = /* @__PURE__ */ Object.freeze({
|
|
|
37874
37887
|
RIGHTWHITECORNERBRACKET: $a,
|
|
37875
37888
|
SCHEME: ma,
|
|
37876
37889
|
SEMI: bl,
|
|
37877
|
-
SLASH:
|
|
37890
|
+
SLASH: si,
|
|
37878
37891
|
SLASH_SCHEME: En,
|
|
37879
37892
|
SYM: ss,
|
|
37880
37893
|
TILDE: lr,
|
|
@@ -37892,7 +37905,7 @@ function yw(e = []) {
|
|
|
37892
37905
|
const t = {};
|
|
37893
37906
|
Lt.groups = t;
|
|
37894
37907
|
const i = new Lt();
|
|
37895
|
-
ta == null && (ta = Hc(fw)), ia == null && (ia = Hc(pw)), se(i, "'", Xa), se(i, "{", rr), se(i, "}", ar), se(i, "[", Ra), se(i, "]", Da), se(i, "(", La), se(i, ")", Pa), se(i, "<", Ba), se(i, ">", Fa), se(i, "(", Ua), se(i, ")", Ha), se(i, "「", ja), se(i, "」", qa), se(i, "『", Va), se(i, "』", $a), se(i, "<", Wa), se(i, ">", Ga), se(i, "&", Ka), se(i, "*", Ja), se(i, "@", Di), se(i, "`", Qa), se(i, "^", Ya), se(i, ":", sn), se(i, ",", dl), se(i, "$", es), se(i, ".",
|
|
37908
|
+
ta == null && (ta = Hc(fw)), ia == null && (ia = Hc(pw)), se(i, "'", Xa), se(i, "{", rr), se(i, "}", ar), se(i, "[", Ra), se(i, "]", Da), se(i, "(", La), se(i, ")", Pa), se(i, "<", Ba), se(i, ">", Fa), se(i, "(", Ua), se(i, ")", Ha), se(i, "「", ja), se(i, "」", qa), se(i, "『", Va), se(i, "』", $a), se(i, "<", Wa), se(i, ">", Ga), se(i, "&", Ka), se(i, "*", Ja), se(i, "@", Di), se(i, "`", Qa), se(i, "^", Ya), se(i, ":", sn), se(i, ",", dl), se(i, "$", es), se(i, ".", ai), se(i, "=", ts), se(i, "!", ml), se(i, "-", Wt), se(i, "%", sr), se(i, "|", is), se(i, "+", ns), se(i, "#", rs), se(i, "?", or), se(i, '"', hl), se(i, "/", si), se(i, ";", bl), se(i, "~", lr), se(i, "_", as), se(i, "\\", Za), se(i, "・", up);
|
|
37896
37909
|
const n = et(i, vi, fl, {
|
|
37897
37910
|
[xo]: !0
|
|
37898
37911
|
});
|
|
@@ -38248,32 +38261,32 @@ const ww = hs("email", {
|
|
|
38248
38261
|
function _w({
|
|
38249
38262
|
groups: e
|
|
38250
38263
|
}) {
|
|
38251
|
-
const t = e.domain.concat([Ka, Ja, Di, Za, Qa, Ya, es, ts, Wt, fl, sr, is, ns, rs,
|
|
38264
|
+
const t = e.domain.concat([Ka, Ja, Di, Za, Qa, Ya, es, ts, Wt, fl, sr, is, ns, rs, si, ss, lr, as]), i = [Xa, sn, dl, ai, ml, sr, or, hl, bl, Ba, Fa, rr, ar, Da, Ra, La, Pa, Ua, Ha, ja, qa, Va, $a, Wa, Ga], n = [Ka, Xa, Ja, Za, Qa, Ya, es, ts, Wt, rr, ar, sr, is, ns, rs, or, si, ss, lr, as], r = $t(), a = se(r, lr);
|
|
38252
38265
|
Ie(a, n, a), Ie(a, e.domain, a);
|
|
38253
38266
|
const s = $t(), o = $t(), l = $t();
|
|
38254
38267
|
Ie(r, e.domain, s), Ie(r, e.scheme, o), Ie(r, e.slashscheme, l), Ie(s, n, a), Ie(s, e.domain, s);
|
|
38255
38268
|
const u = se(s, Di);
|
|
38256
38269
|
se(a, Di, u), se(o, Di, u), se(l, Di, u);
|
|
38257
|
-
const f = se(a,
|
|
38270
|
+
const f = se(a, ai);
|
|
38258
38271
|
Ie(f, n, a), Ie(f, e.domain, a);
|
|
38259
38272
|
const d = $t();
|
|
38260
38273
|
Ie(u, e.domain, d), Ie(d, e.domain, d);
|
|
38261
|
-
const p = se(d,
|
|
38274
|
+
const p = se(d, ai);
|
|
38262
38275
|
Ie(p, e.domain, d);
|
|
38263
38276
|
const m = $t(ww);
|
|
38264
38277
|
Ie(p, e.tld, m), Ie(p, e.utld, m), se(u, br, m);
|
|
38265
38278
|
const g = se(d, Wt);
|
|
38266
|
-
se(g, Wt, g), Ie(g, e.domain, d), Ie(m, e.domain, d), se(m,
|
|
38267
|
-
const h = se(s, Wt), v = se(s,
|
|
38279
|
+
se(g, Wt, g), Ie(g, e.domain, d), Ie(m, e.domain, d), se(m, ai, p), se(m, Wt, g);
|
|
38280
|
+
const h = se(s, Wt), v = se(s, ai);
|
|
38268
38281
|
se(h, Wt, h), Ie(h, e.domain, s), Ie(v, n, a), Ie(v, e.domain, s);
|
|
38269
38282
|
const b = $t(na);
|
|
38270
|
-
Ie(v, e.tld, b), Ie(v, e.utld, b), Ie(b, e.domain, s), Ie(b, n, a), se(b,
|
|
38283
|
+
Ie(v, e.tld, b), Ie(v, e.utld, b), Ie(b, e.domain, s), Ie(b, n, a), se(b, ai, v), se(b, Wt, h), se(b, Di, u);
|
|
38271
38284
|
const y = se(b, sn), x = $t(na);
|
|
38272
38285
|
Ie(y, e.numeric, x);
|
|
38273
38286
|
const k = $t(na), A = $t();
|
|
38274
|
-
Ie(k, t, k), Ie(k, i, A), Ie(A, t, k), Ie(A, i, A), se(b,
|
|
38275
|
-
const O = se(o, sn), H = se(l, sn), _ = se(H,
|
|
38276
|
-
Ie(o, e.domain, s), se(o,
|
|
38287
|
+
Ie(k, t, k), Ie(k, i, A), Ie(A, t, k), Ie(A, i, A), se(b, si, k), se(x, si, k);
|
|
38288
|
+
const O = se(o, sn), H = se(l, sn), _ = se(H, si), C = se(_, si);
|
|
38289
|
+
Ie(o, e.domain, s), se(o, ai, v), se(o, Wt, h), Ie(l, e.domain, s), se(l, ai, v), se(l, Wt, h), Ie(O, e.domain, k), se(O, si, k), se(O, or, k), Ie(C, e.domain, k), Ie(C, t, k), se(C, si, k);
|
|
38277
38290
|
const R = [
|
|
38278
38291
|
[rr, ar],
|
|
38279
38292
|
// {}
|
|
@@ -39199,7 +39212,7 @@ function Yw(e, t, i, n) {
|
|
|
39199
39212
|
}
|
|
39200
39213
|
return n.setMeta(Qw, { fixTables: !0 });
|
|
39201
39214
|
}
|
|
39202
|
-
function
|
|
39215
|
+
function ci(e) {
|
|
39203
39216
|
const t = e.selection, i = bs(e), n = i.node(-1), r = i.start(-1), a = tt.get(n);
|
|
39204
39217
|
return {
|
|
39205
39218
|
...t instanceof Ke ? a.rectBetween(t.$anchorCell.pos - r, t.$headCell.pos - r) : a.findCell(i.pos - r),
|
|
@@ -39226,7 +39239,7 @@ function wp(e, { map: t, tableStart: i, table: n }, r) {
|
|
|
39226
39239
|
function ek(e, t) {
|
|
39227
39240
|
if (!ni(e)) return !1;
|
|
39228
39241
|
if (t) {
|
|
39229
|
-
const i =
|
|
39242
|
+
const i = ci(e);
|
|
39230
39243
|
t(wp(e.tr, i, i.left));
|
|
39231
39244
|
}
|
|
39232
39245
|
return !0;
|
|
@@ -39234,7 +39247,7 @@ function ek(e, t) {
|
|
|
39234
39247
|
function tk(e, t) {
|
|
39235
39248
|
if (!ni(e)) return !1;
|
|
39236
39249
|
if (t) {
|
|
39237
|
-
const i =
|
|
39250
|
+
const i = ci(e);
|
|
39238
39251
|
t(wp(e.tr, i, i.right));
|
|
39239
39252
|
}
|
|
39240
39253
|
return !0;
|
|
@@ -39254,7 +39267,7 @@ function ik(e, { map: t, table: i, tableStart: n }, r) {
|
|
|
39254
39267
|
function nk(e, t) {
|
|
39255
39268
|
if (!ni(e)) return !1;
|
|
39256
39269
|
if (t) {
|
|
39257
|
-
const i =
|
|
39270
|
+
const i = ci(e), n = e.tr;
|
|
39258
39271
|
if (i.left == 0 && i.right == i.map.width) return !1;
|
|
39259
39272
|
for (let r = i.right - 1; ik(n, i, r), r != i.left; r--) {
|
|
39260
39273
|
const a = i.tableStart ? n.doc.nodeAt(i.tableStart - 1) : n.doc;
|
|
@@ -39293,7 +39306,7 @@ function kp(e, { map: t, tableStart: i, table: n }, r) {
|
|
|
39293
39306
|
function ak(e, t) {
|
|
39294
39307
|
if (!ni(e)) return !1;
|
|
39295
39308
|
if (t) {
|
|
39296
|
-
const i =
|
|
39309
|
+
const i = ci(e);
|
|
39297
39310
|
t(kp(e.tr, i, i.top));
|
|
39298
39311
|
}
|
|
39299
39312
|
return !0;
|
|
@@ -39301,7 +39314,7 @@ function ak(e, t) {
|
|
|
39301
39314
|
function sk(e, t) {
|
|
39302
39315
|
if (!ni(e)) return !1;
|
|
39303
39316
|
if (t) {
|
|
39304
|
-
const i =
|
|
39317
|
+
const i = ci(e);
|
|
39305
39318
|
t(kp(e.tr, i, i.bottom));
|
|
39306
39319
|
}
|
|
39307
39320
|
return !0;
|
|
@@ -39334,7 +39347,7 @@ function ok(e, { map: t, table: i, tableStart: n }, r) {
|
|
|
39334
39347
|
function lk(e, t) {
|
|
39335
39348
|
if (!ni(e)) return !1;
|
|
39336
39349
|
if (t) {
|
|
39337
|
-
const i =
|
|
39350
|
+
const i = ci(e), n = e.tr;
|
|
39338
39351
|
if (i.top == 0 && i.bottom == i.map.height) return !1;
|
|
39339
39352
|
for (let r = i.bottom - 1; ok(n, i, r), r != i.top; r--) {
|
|
39340
39353
|
const a = i.tableStart ? n.doc.nodeAt(i.tableStart - 1) : n.doc;
|
|
@@ -39364,7 +39377,7 @@ function ck({ width: e, height: t, map: i }, n) {
|
|
|
39364
39377
|
function Wc(e, t) {
|
|
39365
39378
|
const i = e.selection;
|
|
39366
39379
|
if (!(i instanceof Ke) || i.$anchorCell.pos == i.$headCell.pos) return !1;
|
|
39367
|
-
const n =
|
|
39380
|
+
const n = ci(e), { map: r } = n;
|
|
39368
39381
|
if (ck(r, n)) return !1;
|
|
39369
39382
|
if (t) {
|
|
39370
39383
|
const a = e.tr, s = {};
|
|
@@ -39419,7 +39432,7 @@ function uk(e) {
|
|
|
39419
39432
|
...o,
|
|
39420
39433
|
colspan: 1
|
|
39421
39434
|
});
|
|
39422
|
-
const f =
|
|
39435
|
+
const f = ci(t), d = t.tr;
|
|
39423
39436
|
for (let m = 0; m < f.right - f.left; m++) l.push(u ? {
|
|
39424
39437
|
...o,
|
|
39425
39438
|
colwidth: u && u[m] ? [u[m]] : null
|
|
@@ -39468,7 +39481,7 @@ function pk(e) {
|
|
|
39468
39481
|
return function(t, i) {
|
|
39469
39482
|
if (!ni(t)) return !1;
|
|
39470
39483
|
if (i) {
|
|
39471
|
-
const n = kt(t.schema), r =
|
|
39484
|
+
const n = kt(t.schema), r = ci(t), a = t.tr, s = r.map.cellsInRect(e == "column" ? {
|
|
39472
39485
|
left: r.left,
|
|
39473
39486
|
top: 0,
|
|
39474
39487
|
right: r.right,
|
|
@@ -39503,7 +39516,7 @@ function vr(e, t) {
|
|
|
39503
39516
|
return t = t || { useDeprecatedLogic: !1 }, t.useDeprecatedLogic ? pk(e) : function(i, n) {
|
|
39504
39517
|
if (!ni(i)) return !1;
|
|
39505
39518
|
if (n) {
|
|
39506
|
-
const r = kt(i.schema), a =
|
|
39519
|
+
const r = kt(i.schema), a = ci(i), s = i.tr, o = Kc("row", a, r), l = Kc("column", a, r), u = (e === "column" ? o : e === "row" && l) ? 1 : 0, f = e == "column" ? {
|
|
39507
39520
|
left: 0,
|
|
39508
39521
|
top: u,
|
|
39509
39522
|
right: 1,
|
|
@@ -40880,7 +40893,10 @@ ct({
|
|
|
40880
40893
|
],
|
|
40881
40894
|
slashCommands: [{ name: "Page Break", command: "insertPageBreak" }],
|
|
40882
40895
|
commands: {
|
|
40883
|
-
insertPageBreak: (e) => e.chain().focus().insertContent(
|
|
40896
|
+
insertPageBreak: (e) => e.chain().focus().insertContent([
|
|
40897
|
+
{ type: "pageBreak" },
|
|
40898
|
+
{ type: "paragraph" }
|
|
40899
|
+
]).run()
|
|
40884
40900
|
}
|
|
40885
40901
|
});
|
|
40886
40902
|
var n_ = Bt.create({
|
|
@@ -42905,9 +42921,9 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
42905
42921
|
}), Ee(() => i.margins, (T) => {
|
|
42906
42922
|
T !== void 0 && (o.value = { ...T });
|
|
42907
42923
|
}), Ee(() => i.headerMarginCm, (T) => {
|
|
42908
|
-
typeof T == "number" && Number.isFinite(T) && (pi.value = l(T));
|
|
42909
|
-
}), Ee(() => i.footerMarginCm, (T) => {
|
|
42910
42924
|
typeof T == "number" && Number.isFinite(T) && (di.value = l(T));
|
|
42925
|
+
}), Ee(() => i.footerMarginCm, (T) => {
|
|
42926
|
+
typeof T == "number" && Number.isFinite(T) && (mi.value = l(T));
|
|
42911
42927
|
});
|
|
42912
42928
|
const p = le(() => {
|
|
42913
42929
|
const T = cd(f.value) ?? Os[0];
|
|
@@ -43042,7 +43058,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43042
43058
|
}, lt = (T) => {
|
|
43043
43059
|
var E;
|
|
43044
43060
|
X.value = T, (E = Y()) == null || E.setStyle(T), n("update:citation-style", T);
|
|
43045
|
-
},
|
|
43061
|
+
}, ui = (T) => {
|
|
43046
43062
|
var E, L;
|
|
43047
43063
|
fe ? (Be(T), q.value = null) : (L = (E = Ft.value).insertCitation) == null || L.call(E, { sourceId: T });
|
|
43048
43064
|
};
|
|
@@ -43124,7 +43140,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43124
43140
|
Q.value && (Oi && clearTimeout(Oi), Oi = setTimeout(() => {
|
|
43125
43141
|
Q.value && Q.value.view.dispatch(Q.value.state.tr);
|
|
43126
43142
|
}, 150));
|
|
43127
|
-
},
|
|
43143
|
+
}, fi = W(1), zt = W(1), Jt = le(() => {
|
|
43128
43144
|
const T = p.value;
|
|
43129
43145
|
return {
|
|
43130
43146
|
pageSize: { id: f.value, name: f.value.toUpperCase(), pageWidth: T.pageWidth, pageHeight: T.pageHeight },
|
|
@@ -43147,17 +43163,17 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43147
43163
|
bufferPages: 2
|
|
43148
43164
|
});
|
|
43149
43165
|
Ee([Zt, Xi], () => {
|
|
43150
|
-
h.value && Xi.value && (
|
|
43166
|
+
h.value && Xi.value && (fi.value = Zt.value);
|
|
43151
43167
|
}), Ee(h, (T) => {
|
|
43152
43168
|
T && vs();
|
|
43153
43169
|
});
|
|
43154
|
-
const
|
|
43170
|
+
const pi = () => {
|
|
43155
43171
|
if (!Q.value || !Pe.value) {
|
|
43156
|
-
|
|
43172
|
+
fi.value = 1, zt.value = 1;
|
|
43157
43173
|
return;
|
|
43158
43174
|
}
|
|
43159
43175
|
const T = Q.value.view.dom, E = T.querySelector("[data-rm-pagination]");
|
|
43160
|
-
E ?
|
|
43176
|
+
E ? fi.value = E.children.length || 1 : fi.value = 1;
|
|
43161
43177
|
try {
|
|
43162
43178
|
const { selection: L } = Q.value.state, be = Q.value.view.coordsAtPos(L.head);
|
|
43163
43179
|
if (be && E) {
|
|
@@ -43184,26 +43200,26 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43184
43200
|
bottom: T.margins.bottom,
|
|
43185
43201
|
left: T.margins.left,
|
|
43186
43202
|
right: T.margins.right
|
|
43187
|
-
}),
|
|
43203
|
+
}), pi());
|
|
43188
43204
|
});
|
|
43189
43205
|
const Ti = (T) => {
|
|
43190
43206
|
T !== d.value && (d.value = T, n("update:pageless", T), Q.value && (T ? Q.value.commands.disablePagination() : Q.value.commands.enablePagination(), setTimeout(() => {
|
|
43191
|
-
|
|
43207
|
+
pi(), Qi();
|
|
43192
43208
|
}, 60)));
|
|
43193
43209
|
};
|
|
43194
43210
|
Ee(
|
|
43195
43211
|
() => i.pageless,
|
|
43196
43212
|
(T) => Ti(T ?? !1)
|
|
43197
43213
|
);
|
|
43198
|
-
const Qt = W(!1), Ei = W(!1), Ct = W(""), At = W(""), Mi = W(""), Sr = W(""),
|
|
43214
|
+
const Qt = W(!1), Ei = W(!1), Ct = W(""), At = W(""), Mi = W(""), Sr = W(""), di = W(l(i.headerMarginCm)), mi = W(l(i.footerMarginCm)), Cr = W(!1), jn = W(di.value), qn = W(mi.value), Ar = W(!1), Or = W(!1), Tr = W(!1), Er = W("header"), Mr = W(!0), Nr = W("startAt"), Ir = W(1), vn = W("header"), zr = W(!0), yn = W("startAt"), Rr = W(1), ys = (T) => {
|
|
43199
43215
|
if (!Mr.value && T === 0) return "";
|
|
43200
43216
|
let E = T + 1;
|
|
43201
43217
|
return Nr.value === "startAt" && (E = T + Ir.value), String(E);
|
|
43202
43218
|
}, Yt = () => {
|
|
43203
43219
|
if (!Q.value || !Pe.value) return;
|
|
43204
|
-
const T = String(
|
|
43220
|
+
const T = String(fi.value), E = Q.value.view.dom, L = x.value.replace(/{total}/g, T), be = k.value.replace(/{total}/g, T), ye = A.value.replace(/{total}/g, T), De = O.value.replace(/{total}/g, T);
|
|
43205
43221
|
Q.value.commands.updateHeaderContent(L, be), Q.value.commands.updateFooterContent(ye, De);
|
|
43206
|
-
const Ve = `${Math.max(0,
|
|
43222
|
+
const Ve = `${Math.max(0, di.value) * Jn}px`, Ue = `${Math.max(0, mi.value) * Jn}px`;
|
|
43207
43223
|
E.style.setProperty("--rm-header-margin-top", Ve), E.style.setProperty("--rm-footer-margin-bottom", Ue), Q.value.view.dispatch(Q.value.state.tr), setTimeout(() => {
|
|
43208
43224
|
requestAnimationFrame(() => {
|
|
43209
43225
|
if (!Q.value || Q.value.view.dom !== E) return;
|
|
@@ -43228,9 +43244,9 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43228
43244
|
};
|
|
43229
43245
|
Ee(Qt, () => {
|
|
43230
43246
|
Yt();
|
|
43231
|
-
}), Ee([Ei,
|
|
43247
|
+
}), Ee([Ei, di, mi, Er, Mr, Nr, Ir], () => {
|
|
43232
43248
|
Yt();
|
|
43233
|
-
}), Ee(
|
|
43249
|
+
}), Ee(fi, (T) => {
|
|
43234
43250
|
Yt(), n("update:pageCount", T);
|
|
43235
43251
|
}), Ee(g, (T) => {
|
|
43236
43252
|
Q.value && (Q.value.commands.updatePageBreakBackground(T ? "#02040a" : "#f1f5f9"), Q.value.view.dispatch(Q.value.state.tr));
|
|
@@ -43241,10 +43257,10 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43241
43257
|
}, { deep: !0 }), Ee(Pe, (T) => {
|
|
43242
43258
|
var E, L, be, ye, De, Ve, Ue, Se;
|
|
43243
43259
|
T && Q.value && (!x.value && !k.value && !A.value && !O.value && (x.value = ((L = (E = Q.value.storage.PaginationPlus) == null ? void 0 : E.appliedConfig) == null ? void 0 : L.headerLeft) || "", k.value = ((ye = (be = Q.value.storage.PaginationPlus) == null ? void 0 : be.appliedConfig) == null ? void 0 : ye.headerRight) || "", A.value = ((Ve = (De = Q.value.storage.PaginationPlus) == null ? void 0 : De.appliedConfig) == null ? void 0 : Ve.footerLeft) || "", O.value = ((Se = (Ue = Q.value.storage.PaginationPlus) == null ? void 0 : Ue.appliedConfig) == null ? void 0 : Se.footerRight) || ""), Yt(), Kt.value && n("ready", Kt.value), Q.value.on("selectionUpdate", () => {
|
|
43244
|
-
Un(),
|
|
43260
|
+
Un(), pi();
|
|
43245
43261
|
}), Q.value.on("transaction", () => {
|
|
43246
|
-
|
|
43247
|
-
}), Un(), Gi(),
|
|
43262
|
+
pi(), Gi(), ue();
|
|
43263
|
+
}), Un(), Gi(), pi(), ue(), setTimeout(() => {
|
|
43248
43264
|
var ve;
|
|
43249
43265
|
return (ve = Q.value) == null ? void 0 : ve.commands.focus("start");
|
|
43250
43266
|
}, 50), [100, 300, 600, 1200, 2500].forEach((ve) => {
|
|
@@ -43262,7 +43278,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43262
43278
|
}
|
|
43263
43279
|
const Fe = Oe.closest(".rm-with-pagination, .rm-page-break, .page, .docs-editor-page");
|
|
43264
43280
|
if (Fe) {
|
|
43265
|
-
const We = Fe.getBoundingClientRect(), $e = ve.clientY - We.top, Qe =
|
|
43281
|
+
const We = Fe.getBoundingClientRect(), $e = ve.clientY - We.top, Qe = di.value * 37.795;
|
|
43266
43282
|
if ($e >= 0 && $e <= Math.max(Qe, 40) + 15) {
|
|
43267
43283
|
let ht = null;
|
|
43268
43284
|
Fe.classList.contains("rm-page-break") && (ht = Fe.querySelector(".rm-page-header")), ht || (ht = document.querySelector(".rm-page-header, .rm-first-page-header")), ht && jr(ve);
|
|
@@ -43277,7 +43293,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43277
43293
|
}
|
|
43278
43294
|
const Fe = Oe.closest(".rm-with-pagination, .rm-page-break, .page, .docs-editor-page");
|
|
43279
43295
|
if (Fe) {
|
|
43280
|
-
const $e = Fe.getBoundingClientRect().bottom - ve.clientY, Qe =
|
|
43296
|
+
const $e = Fe.getBoundingClientRect().bottom - ve.clientY, Qe = mi.value * 37.795;
|
|
43281
43297
|
$e >= 0 && $e <= Math.max(Qe, 40) + 15 && qr();
|
|
43282
43298
|
}
|
|
43283
43299
|
}));
|
|
@@ -43344,11 +43360,11 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43344
43360
|
right: Hr(ut.value.right)
|
|
43345
43361
|
}, n("update:pageSize", f.value), n("update:orientation", Ji.value), n("update:margins", { ...o.value }), Lr.value = !1;
|
|
43346
43362
|
}, _s = W(!1), Zi = { value: null }, zp = () => {
|
|
43347
|
-
jn.value =
|
|
43363
|
+
jn.value = di.value, qn.value = mi.value, Ar.value = Qt.value, Or.value = Ei.value, Cr.value = !0;
|
|
43348
43364
|
}, Rp = () => {
|
|
43349
|
-
|
|
43350
|
-
headerMarginCm:
|
|
43351
|
-
footerMarginCm:
|
|
43365
|
+
di.value = l(jn.value), mi.value = l(qn.value), jn.value = di.value, qn.value = mi.value, Qt.value = Ar.value, Ei.value = Or.value, Cr.value = !1, Yt(), n("update:header-footer-margins", {
|
|
43366
|
+
headerMarginCm: di.value,
|
|
43367
|
+
footerMarginCm: mi.value
|
|
43352
43368
|
}), ee();
|
|
43353
43369
|
}, Dp = () => {
|
|
43354
43370
|
vn.value = Er.value, zr.value = Mr.value, yn.value = Nr.value, Rr.value = Ir.value, Tr.value = !0;
|
|
@@ -43487,7 +43503,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43487
43503
|
if (!Q.value) return;
|
|
43488
43504
|
const L = Q.value.commands[T];
|
|
43489
43505
|
typeof L == "function" && L(...E), Q.value.commands.focus();
|
|
43490
|
-
},
|
|
43506
|
+
}, ri = (T, ...E) => {
|
|
43491
43507
|
if (!Q.value) return;
|
|
43492
43508
|
const L = Ft.value[T];
|
|
43493
43509
|
if (typeof L == "function")
|
|
@@ -43592,15 +43608,15 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43592
43608
|
heading2: () => Rt("toggleHeading", { level: 2 }),
|
|
43593
43609
|
heading3: () => Rt("toggleHeading", { level: 3 }),
|
|
43594
43610
|
// Format menu — align & indent (alignment plugin)
|
|
43595
|
-
"align-left": () =>
|
|
43596
|
-
"align-center": () =>
|
|
43597
|
-
"align-right": () =>
|
|
43598
|
-
"align-justify": () =>
|
|
43611
|
+
"align-left": () => ri("alignLeft"),
|
|
43612
|
+
"align-center": () => ri("alignCenter"),
|
|
43613
|
+
"align-right": () => ri("alignRight"),
|
|
43614
|
+
"align-justify": () => ri("alignJustify"),
|
|
43599
43615
|
// Format menu — bullets & numbering (StarterKit lists + lists plugin)
|
|
43600
43616
|
"bullet-list": () => Rt("toggleBulletList"),
|
|
43601
43617
|
"numbered-list": () => Rt("toggleOrderedList"),
|
|
43602
|
-
"task-list": () =>
|
|
43603
|
-
//
|
|
43618
|
+
"task-list": () => ri("toggleTaskList"),
|
|
43619
|
+
// Insert menu — horizontal line (StarterKit HorizontalRule extension)
|
|
43604
43620
|
"horizontal-line": () => Rt("setHorizontalRule"),
|
|
43605
43621
|
"page-numbers-header": () => _l("header"),
|
|
43606
43622
|
"page-numbers-footer": () => _l("footer"),
|
|
@@ -43609,10 +43625,11 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43609
43625
|
},
|
|
43610
43626
|
// Insert menu — editor-scoped inserts (template actions like meeting-notes /
|
|
43611
43627
|
// email-draft stay host-level and are still emitted).
|
|
43612
|
-
"insert-image": () =>
|
|
43613
|
-
"insert-table": () =>
|
|
43614
|
-
"insert-code": () =>
|
|
43615
|
-
"insert-
|
|
43628
|
+
"insert-image": () => ri("insertImage"),
|
|
43629
|
+
"insert-table": () => ri("insertTable", { rows: 3, cols: 3, withHeaderRow: !0 }),
|
|
43630
|
+
"insert-code": () => ri("toggleCodeBlock"),
|
|
43631
|
+
"insert-page-break": () => ri("insertPageBreak"),
|
|
43632
|
+
"insert-toc": () => ri("insertToc")
|
|
43616
43633
|
};
|
|
43617
43634
|
let Vp = (T) => {
|
|
43618
43635
|
if (T === "page-setup")
|
|
@@ -43898,7 +43915,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43898
43915
|
importing: Nt.value,
|
|
43899
43916
|
"import-message": It.value,
|
|
43900
43917
|
onClose: E[9] || (E[9] = (L) => q.value = null),
|
|
43901
|
-
onInsert:
|
|
43918
|
+
onInsert: ui,
|
|
43902
43919
|
onCreate: ie,
|
|
43903
43920
|
onUpdate: Ge,
|
|
43904
43921
|
onRemove: at,
|
|
@@ -43941,7 +43958,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
43941
43958
|
"last-saved": re.value,
|
|
43942
43959
|
"word-count": j.value,
|
|
43943
43960
|
"char-count": Z.value,
|
|
43944
|
-
"page-count":
|
|
43961
|
+
"page-count": fi.value,
|
|
43945
43962
|
"current-page": zt.value,
|
|
43946
43963
|
"page-size": f.value,
|
|
43947
43964
|
"page-sizes": S(Os),
|
|
@@ -44324,7 +44341,7 @@ const CC = { class: "docs-editor flex h-screen w-full flex-col overflow-hidden b
|
|
|
44324
44341
|
])) : ae("", !0)
|
|
44325
44342
|
]));
|
|
44326
44343
|
}
|
|
44327
|
-
}), AO = /* @__PURE__ */ Bo(jA, [["__scopeId", "data-v-
|
|
44344
|
+
}), AO = /* @__PURE__ */ Bo(jA, [["__scopeId", "data-v-b1a21a3e"]]), qA = { class: "docs-editor-pages flex flex-col items-center gap-10" }, VA = ["data-page-index"], $A = ["data-node-type", "data-from", "data-to"], WA = ["innerHTML"], GA = {
|
|
44328
44345
|
key: 1,
|
|
44329
44346
|
class: "docs-editor-page__block-fallback flex justify-between text-sm text-slate-700"
|
|
44330
44347
|
}, KA = { class: "docs-editor-page__block-type font-medium" }, XA = { class: "docs-editor-page__block-range text-slate-500" }, OO = /* @__PURE__ */ it({
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -105,6 +105,9 @@ declare const _default: {
|
|
|
105
105
|
readonly pageNumbers: "Page numbers";
|
|
106
106
|
readonly pageNumberInHeader: "Insert in header";
|
|
107
107
|
readonly pageNumberInFooter: "Insert in footer";
|
|
108
|
+
readonly break: "Break";
|
|
109
|
+
readonly pageBreak: "Page break";
|
|
110
|
+
readonly pageBreakShortcut: "Ctrl+Enter";
|
|
108
111
|
readonly pagelessFormat: "Pageless format";
|
|
109
112
|
readonly clearFormatting: "Clear formatting";
|
|
110
113
|
readonly spellCheck: "Spell check";
|
package/dist/locales/en.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAghBU"}
|
package/dist/locales/id.d.ts
CHANGED
|
@@ -105,6 +105,9 @@ declare const _default: {
|
|
|
105
105
|
readonly pageNumbers: "Nomor halaman";
|
|
106
106
|
readonly pageNumberInHeader: "Sisipkan di header";
|
|
107
107
|
readonly pageNumberInFooter: "Sisipkan di footer";
|
|
108
|
+
readonly break: "Pemisah";
|
|
109
|
+
readonly pageBreak: "Pemisah halaman";
|
|
110
|
+
readonly pageBreakShortcut: "Ctrl+Enter";
|
|
108
111
|
readonly pagelessFormat: "Format tanpa halaman";
|
|
109
112
|
readonly clearFormatting: "Hapus pemformatan";
|
|
110
113
|
readonly spellCheck: "Periksa ejaan";
|
package/dist/locales/id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/locales/id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/locales/id.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAghBU"}
|