@stll/folio-vue 0.14.1 → 0.15.1
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/index.js
CHANGED
|
@@ -1712,7 +1712,7 @@ var la = ["data-handle", "onMousedown"], ua = ["title"], da = {
|
|
|
1712
1712
|
measures: {}
|
|
1713
1713
|
},
|
|
1714
1714
|
setup(e) {
|
|
1715
|
-
let t = e, n = /* @__PURE__ */ new Set(["if", "
|
|
1715
|
+
let t = e, n = /* @__PURE__ */ new Set(["if", "for"]), r = /* @__PURE__ */ new Set(["endif", "endfor"]), i = (e) => e === "for" ? "for" : "if";
|
|
1716
1716
|
function a(e) {
|
|
1717
1717
|
let t = e - Oa - Ea - ka;
|
|
1718
1718
|
return t <= 0 ? 0 : Math.floor(t / Da);
|
|
@@ -1743,7 +1743,7 @@ var la = ["data-handle", "onMousedown"], ua = ["title"], da = {
|
|
|
1743
1743
|
});
|
|
1744
1744
|
continue;
|
|
1745
1745
|
}
|
|
1746
|
-
let t = e.kind === "endif" ? "if" : "
|
|
1746
|
+
let t = e.kind === "endif" ? "if" : "for", r, s = -1;
|
|
1747
1747
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
1748
1748
|
let n = o[e];
|
|
1749
1749
|
if (n?.range.kind === t) {
|
|
@@ -1764,7 +1764,7 @@ var la = ["data-handle", "onMousedown"], ua = ["title"], da = {
|
|
|
1764
1764
|
return a;
|
|
1765
1765
|
}
|
|
1766
1766
|
function l(e, t) {
|
|
1767
|
-
let n = e === "
|
|
1767
|
+
let n = e === "for" ? "endfor" : "endif";
|
|
1768
1768
|
return t ? `${n} · ${t}` : n;
|
|
1769
1769
|
}
|
|
1770
1770
|
function u(e, t) {
|
|
@@ -1905,7 +1905,7 @@ var la = ["data-handle", "onMousedown"], ua = ["title"], da = {
|
|
|
1905
1905
|
})
|
|
1906
1906
|
}, null, 14, Ta))), 128))], 64))), 128))], 32));
|
|
1907
1907
|
}
|
|
1908
|
-
}), [["__scopeId", "data-v-
|
|
1908
|
+
}), [["__scopeId", "data-v-101928bf"]]), Ma = ["href", "title"], Na = ["title"], Pa = ["title"], Fa = ["title"], Ia = { class: "docx-hyperlink-popup__edit-row" }, La = ["placeholder", "onKeydown"], Ra = { class: "docx-hyperlink-popup__edit-row" }, za = ["onKeydown"], Ba = ["disabled"], Va = /*#__PURE__*/ t(/* @__PURE__ */ I({
|
|
1909
1909
|
__name: "HyperlinkPopup",
|
|
1910
1910
|
props: {
|
|
1911
1911
|
data: {},
|
|
@@ -3420,8 +3420,32 @@ function zo(e, t, n, r) {
|
|
|
3420
3420
|
}
|
|
3421
3421
|
//#endregion
|
|
3422
3422
|
//#region src/composables/usePagesPointer.ts
|
|
3423
|
-
var Bo = 500
|
|
3424
|
-
|
|
3423
|
+
var Bo = 500, Vo = ({ editState: e, getDocument: t, getHfPmView: n, onDocumentChange: r, reLayout: i, setDocument: a, syncHfPMs: o }) => {
|
|
3424
|
+
let s = e.value, c = t();
|
|
3425
|
+
if (!c?.package || !s?.rId) {
|
|
3426
|
+
e.value = null;
|
|
3427
|
+
return;
|
|
3428
|
+
}
|
|
3429
|
+
let l = n(s.rId);
|
|
3430
|
+
if (!l) {
|
|
3431
|
+
e.value = null;
|
|
3432
|
+
return;
|
|
3433
|
+
}
|
|
3434
|
+
let u = s.position === "header" ? c.package.headers?.get(s.rId) : c.package.footers?.get(s.rId);
|
|
3435
|
+
if (!u) {
|
|
3436
|
+
e.value = null;
|
|
3437
|
+
return;
|
|
3438
|
+
}
|
|
3439
|
+
let d = Mn({
|
|
3440
|
+
document: c,
|
|
3441
|
+
position: s.position,
|
|
3442
|
+
isFirstPage: s.isFirstPage,
|
|
3443
|
+
activeRId: s.rId,
|
|
3444
|
+
blocks: xn(l.state.doc, u.content)
|
|
3445
|
+
});
|
|
3446
|
+
e.value = null, d && (a(d), o(), i(), r(d));
|
|
3447
|
+
};
|
|
3448
|
+
function Ho(e) {
|
|
3425
3449
|
let t = H(null), n = null;
|
|
3426
3450
|
function r() {
|
|
3427
3451
|
n !== null && (clearTimeout(n), n = null);
|
|
@@ -3604,18 +3628,15 @@ function Vo(e) {
|
|
|
3604
3628
|
});
|
|
3605
3629
|
}
|
|
3606
3630
|
function ie() {
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
activeRId: n.rId,
|
|
3616
|
-
blocks: xn(r.state.doc)
|
|
3631
|
+
Vo({
|
|
3632
|
+
editState: i,
|
|
3633
|
+
getDocument: e.getDocument,
|
|
3634
|
+
getHfPmView: e.getHfPmView,
|
|
3635
|
+
onDocumentChange: e.onDocumentChange,
|
|
3636
|
+
reLayout: e.reLayout,
|
|
3637
|
+
setDocument: e.setDocument,
|
|
3638
|
+
syncHfPMs: e.syncHfPMs
|
|
3617
3639
|
});
|
|
3618
|
-
a && (i.value = null, e.setDocument(a), e.syncHfPMs(), e.reLayout(), e.onDocumentChange(a));
|
|
3619
3640
|
}
|
|
3620
3641
|
function ae() {
|
|
3621
3642
|
let t = e.getDocument(), n = i.value;
|
|
@@ -3757,7 +3778,7 @@ function Vo(e) {
|
|
|
3757
3778
|
}
|
|
3758
3779
|
//#endregion
|
|
3759
3780
|
//#region src/composables/useRemoteSelectionSync.ts
|
|
3760
|
-
var
|
|
3781
|
+
var Uo = (e) => {
|
|
3761
3782
|
let t = new Ir(), n = null, r = () => {
|
|
3762
3783
|
n !== null && (cancelAnimationFrame(n), n = null);
|
|
3763
3784
|
let r = e.pagesRef.value;
|
|
@@ -3781,7 +3802,7 @@ var Ho = (e) => {
|
|
|
3781
3802
|
], i, { flush: "post" }), Ae(() => {
|
|
3782
3803
|
a(), r();
|
|
3783
3804
|
});
|
|
3784
|
-
},
|
|
3805
|
+
}, Wo = (e) => {
|
|
3785
3806
|
let t = new Lr(), n = null, r = () => {
|
|
3786
3807
|
n !== null && (cancelAnimationFrame(n), n = null);
|
|
3787
3808
|
let r = e.pagesRef.value;
|
|
@@ -3833,22 +3854,22 @@ var Ho = (e) => {
|
|
|
3833
3854
|
clearOverlay: r,
|
|
3834
3855
|
updateSelectionOverlay: i
|
|
3835
3856
|
};
|
|
3836
|
-
},
|
|
3857
|
+
}, Go = { class: "docx-editor-vue__toolbar-shell" }, Ko = {
|
|
3837
3858
|
key: 0,
|
|
3838
3859
|
class: "docx-editor-vue__error"
|
|
3839
|
-
},
|
|
3860
|
+
}, qo = {
|
|
3840
3861
|
key: 1,
|
|
3841
3862
|
class: "docx-editor-vue__loading"
|
|
3842
|
-
},
|
|
3863
|
+
}, Jo = {
|
|
3843
3864
|
key: 2,
|
|
3844
3865
|
class: "docx-editor-vue__placeholder"
|
|
3845
|
-
},
|
|
3866
|
+
}, Yo = { class: "docx-editor-vue__editor-area" }, Xo = {
|
|
3846
3867
|
key: 0,
|
|
3847
3868
|
class: "docx-editor-vue__ruler-h"
|
|
3848
|
-
},
|
|
3869
|
+
}, Zo = {
|
|
3849
3870
|
key: 1,
|
|
3850
3871
|
class: "docx-editor-vue__ruler-v"
|
|
3851
|
-
},
|
|
3872
|
+
}, Qo = {
|
|
3852
3873
|
class: "docx-editor-vue__editor-content-wrapper",
|
|
3853
3874
|
style: {
|
|
3854
3875
|
position: "relative",
|
|
@@ -3856,11 +3877,11 @@ var Ho = (e) => {
|
|
|
3856
3877
|
flexDirection: "column",
|
|
3857
3878
|
minHeight: "100%"
|
|
3858
3879
|
}
|
|
3859
|
-
},
|
|
3880
|
+
}, $o = {
|
|
3860
3881
|
"data-testid": "selection-overlay",
|
|
3861
3882
|
class: "docx-editor-vue__decoration-origin",
|
|
3862
3883
|
"aria-hidden": "true"
|
|
3863
|
-
},
|
|
3884
|
+
}, es = ["aria-label"], ts = { class: "docx-editor-vue__note-editor-header" }, ns = ["aria-label"], rs = ["aria-label"], is = /*#__PURE__*/ t(/* @__PURE__ */ I({
|
|
3864
3885
|
__name: "DocxEditor",
|
|
3865
3886
|
props: {
|
|
3866
3887
|
documentBuffer: { default: null },
|
|
@@ -4079,7 +4100,7 @@ var Ho = (e) => {
|
|
|
4079
4100
|
zoom: L,
|
|
4080
4101
|
stateTick: E,
|
|
4081
4102
|
getCommands: Ot
|
|
4082
|
-
}), Lt =
|
|
4103
|
+
}), Lt = Wo({
|
|
4083
4104
|
editorView: J,
|
|
4084
4105
|
hiddenContainer: C,
|
|
4085
4106
|
pagesRef: T,
|
|
@@ -4088,7 +4109,7 @@ var Ho = (e) => {
|
|
|
4088
4109
|
syncCoordinator: vt,
|
|
4089
4110
|
imageInteracting: Nt
|
|
4090
4111
|
});
|
|
4091
|
-
|
|
4112
|
+
Uo({
|
|
4092
4113
|
pagesRef: T,
|
|
4093
4114
|
remoteSelections: lt,
|
|
4094
4115
|
syncCoordinator: vt,
|
|
@@ -4097,7 +4118,7 @@ var Ho = (e) => {
|
|
|
4097
4118
|
let { hyperlinkPopupData: Rt, handleHyperlinkSubmit: Vt, handleHyperlinkRemove: Ht, handleHyperlinkPopupNavigate: Ut, handleHyperlinkPopupEdit: Wt, handleHyperlinkPopupRemove: Gt } = To({
|
|
4098
4119
|
editorView: X,
|
|
4099
4120
|
getCommands: Ot
|
|
4100
|
-
}), Kt = oe(), { tableInsertButton: qt, hfEdit: Jt, scrollPageInfo: Yt, resolvePos: Xt, setPmSelection: Zt, scrollVisiblePositionIntoView: Qt, handlePagesMouseDown: $t, handlePagesMouseMove: en, handlePagesClick: tn, handlePagesDoubleClick: nn, handleTableInsertClick: rn, handleHfSave: an, handleHfRemove: on } =
|
|
4121
|
+
}), Kt = oe(), { tableInsertButton: qt, hfEdit: Jt, scrollPageInfo: Yt, resolvePos: Xt, setPmSelection: Zt, scrollVisiblePositionIntoView: Qt, handlePagesMouseDown: $t, handlePagesMouseMove: en, handlePagesClick: tn, handlePagesDoubleClick: nn, handleTableInsertClick: rn, handleHfSave: an, handleHfRemove: on } = Ho({
|
|
4101
4122
|
editorView: J,
|
|
4102
4123
|
pagesRef: T,
|
|
4103
4124
|
pagesViewportRef: de,
|
|
@@ -4423,7 +4444,7 @@ var Ho = (e) => {
|
|
|
4423
4444
|
]),
|
|
4424
4445
|
style: z(e.style)
|
|
4425
4446
|
}, [
|
|
4426
|
-
P("div",
|
|
4447
|
+
P("div", Go, [F(Ii, {
|
|
4427
4448
|
"show-table-insert": o.showTableInsert !== !1,
|
|
4428
4449
|
onRename: n[0] ||= (e) => s("rename", e),
|
|
4429
4450
|
onMenuAction: Jn,
|
|
@@ -4562,10 +4583,10 @@ var Ho = (e) => {
|
|
|
4562
4583
|
"onHyperlinkRemove",
|
|
4563
4584
|
"onPageSetupApply"
|
|
4564
4585
|
]),
|
|
4565
|
-
G(mt) ? (V(), N("div",
|
|
4586
|
+
G(mt) ? (V(), N("div", Ko, W(G(mt)), 1)) : jt.value ? (V(), N("div", qo, [Me(t.$slots, "loading-indicator", {}, () => [e.loadingIndicator ? (V(), j(te, {
|
|
4566
4587
|
key: 0,
|
|
4567
4588
|
node: e.loadingIndicator
|
|
4568
|
-
}, null, 8, ["node"])) : (V(), N(O, { key: 1 }, [Te(W(G(ee)("loadingDocument")), 1)], 64))], !0)])) : !G(ft) && !re.value ? (V(), N("div",
|
|
4589
|
+
}, null, 8, ["node"])) : (V(), N(O, { key: 1 }, [Te(W(G(ee)("loadingDocument")), 1)], 64))], !0)])) : !G(ft) && !re.value ? (V(), N("div", Jo, [Me(t.$slots, "placeholder", {}, () => [e.placeholder ? (V(), j(te, {
|
|
4569
4590
|
key: 0,
|
|
4570
4591
|
node: e.placeholder
|
|
4571
4592
|
}, null, 8, ["node"])) : (V(), N(O, { key: 1 }, [Te("No document loaded")], 64))], !0)])) : M("", !0),
|
|
@@ -4584,8 +4605,8 @@ var Ho = (e) => {
|
|
|
4584
4605
|
ref: fe,
|
|
4585
4606
|
class: "docx-editor-vue__editor-scroll",
|
|
4586
4607
|
onScroll: er
|
|
4587
|
-
}, [P("div",
|
|
4588
|
-
me.value && !d.value ? (V(), N("div",
|
|
4608
|
+
}, [P("div", Yo, [
|
|
4609
|
+
me.value && !d.value ? (V(), N("div", Xo, [F(ne, {
|
|
4589
4610
|
"section-props": Sn.value,
|
|
4590
4611
|
zoom: G(L),
|
|
4591
4612
|
unit: e.rulerUnit ?? "inch",
|
|
@@ -4619,7 +4640,7 @@ var Ho = (e) => {
|
|
|
4619
4640
|
"onFirstLineIndentChange",
|
|
4620
4641
|
"onTabStopRemove"
|
|
4621
4642
|
])])) : M("", !0),
|
|
4622
|
-
me.value && !d.value ? (V(), N("div",
|
|
4643
|
+
me.value && !d.value ? (V(), N("div", Zo, [F(v, {
|
|
4623
4644
|
"section-props": Sn.value,
|
|
4624
4645
|
zoom: G(L),
|
|
4625
4646
|
unit: e.rulerUnit ?? "inch",
|
|
@@ -4645,7 +4666,7 @@ var Ho = (e) => {
|
|
|
4645
4666
|
onDblclick: n[28] ||= (...e) => G(nn) && G(nn)(...e),
|
|
4646
4667
|
onContextmenu: n[29] ||= q((...e) => G(mn) && G(mn)(...e), ["prevent"])
|
|
4647
4668
|
}, [
|
|
4648
|
-
P("div",
|
|
4669
|
+
P("div", Qo, [
|
|
4649
4670
|
P("div", {
|
|
4650
4671
|
ref_key: "pagesRef",
|
|
4651
4672
|
ref: T,
|
|
@@ -4665,7 +4686,7 @@ var Ho = (e) => {
|
|
|
4665
4686
|
"selection",
|
|
4666
4687
|
"zoom"
|
|
4667
4688
|
]),
|
|
4668
|
-
P("div",
|
|
4689
|
+
P("div", $o, [
|
|
4669
4690
|
F(fi, {
|
|
4670
4691
|
"get-view": () => G(J),
|
|
4671
4692
|
"get-pages-container": () => T.value,
|
|
@@ -4763,15 +4784,15 @@ var Ho = (e) => {
|
|
|
4763
4784
|
class: "docx-editor-vue__note-editor",
|
|
4764
4785
|
"aria-label": At.value,
|
|
4765
4786
|
onKeydown: n[16] ||= Re(q((...e) => G(Et) && G(Et)(...e), ["stop", "prevent"]), ["esc"])
|
|
4766
|
-
}, [P("header",
|
|
4787
|
+
}, [P("header", ts, [P("span", null, W(At.value), 1), P("button", {
|
|
4767
4788
|
type: "button",
|
|
4768
4789
|
"aria-label": G(ee)("common.closeDialog"),
|
|
4769
4790
|
onClick: n[15] ||= (...e) => G(Et) && G(Et)(...e)
|
|
4770
|
-
}, " × ", 8,
|
|
4791
|
+
}, " × ", 8, ns)]), P("div", {
|
|
4771
4792
|
ref_key: "notePmRef",
|
|
4772
4793
|
ref: I,
|
|
4773
4794
|
class: "docx-editor-vue__note-editor-host"
|
|
4774
|
-
}, null, 512)], 40,
|
|
4795
|
+
}, null, 512)], 40, es), [[Fe, G(dt)]]),
|
|
4775
4796
|
F(_a, {
|
|
4776
4797
|
"image-info": G(Mt),
|
|
4777
4798
|
zoom: G(L),
|
|
@@ -4811,7 +4832,7 @@ var Ho = (e) => {
|
|
|
4811
4832
|
}),
|
|
4812
4833
|
"aria-label": G(qt).type === "row" ? "Insert row" : "Insert column",
|
|
4813
4834
|
onMousedown: n[21] ||= (...e) => G(rn) && G(rn)(...e)
|
|
4814
|
-
}, " + ", 44,
|
|
4835
|
+
}, " + ", 44, rs)) : M("", !0),
|
|
4815
4836
|
F(g, {
|
|
4816
4837
|
comments: G(bn),
|
|
4817
4838
|
"pages-container": T.value,
|
|
@@ -4949,7 +4970,7 @@ var Ho = (e) => {
|
|
|
4949
4970
|
}), [["__scopeId", "data-v-a5e2281b"]]);
|
|
4950
4971
|
//#endregion
|
|
4951
4972
|
//#region src/utils/listState.ts
|
|
4952
|
-
function
|
|
4973
|
+
function as() {
|
|
4953
4974
|
return {
|
|
4954
4975
|
type: "none",
|
|
4955
4976
|
level: 0,
|
|
@@ -4958,30 +4979,30 @@ function is() {
|
|
|
4958
4979
|
}
|
|
4959
4980
|
//#endregion
|
|
4960
4981
|
//#region src/components/FormattingBar.vue?vue&type=script&setup=true&lang.ts
|
|
4961
|
-
var
|
|
4982
|
+
var os = ["aria-label"], ss = ["aria-label"], cs = [
|
|
4962
4983
|
"disabled",
|
|
4963
4984
|
"title",
|
|
4964
4985
|
"aria-label"
|
|
4965
|
-
],
|
|
4986
|
+
], ls = [
|
|
4966
4987
|
"disabled",
|
|
4967
4988
|
"title",
|
|
4968
4989
|
"aria-label"
|
|
4969
|
-
],
|
|
4990
|
+
], us = ["aria-label"], ds = [
|
|
4970
4991
|
"disabled",
|
|
4971
4992
|
"title",
|
|
4972
4993
|
"aria-label",
|
|
4973
4994
|
"aria-pressed"
|
|
4974
|
-
],
|
|
4995
|
+
], fs = [
|
|
4975
4996
|
"disabled",
|
|
4976
4997
|
"title",
|
|
4977
4998
|
"aria-label",
|
|
4978
4999
|
"aria-pressed"
|
|
4979
|
-
],
|
|
5000
|
+
], ps = [
|
|
4980
5001
|
"disabled",
|
|
4981
5002
|
"title",
|
|
4982
5003
|
"aria-label",
|
|
4983
5004
|
"aria-pressed"
|
|
4984
|
-
],
|
|
5005
|
+
], ms = /*#__PURE__*/ t(/* @__PURE__ */ I({
|
|
4985
5006
|
__name: "FormattingBar",
|
|
4986
5007
|
props: {
|
|
4987
5008
|
currentFormatting: {},
|
|
@@ -5023,7 +5044,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5023
5044
|
"redo"
|
|
5024
5045
|
],
|
|
5025
5046
|
setup(e, { emit: t }) {
|
|
5026
|
-
let { ColorPicker: n } = h(), a = e, o = t, { t: s } = r(), c = A(() => a.currentFormatting ?? {}), l = A(() => a.documentStyles ? { styles: a.documentStyles } : {}), u = A(() => c.value.listState ??
|
|
5047
|
+
let { ColorPicker: n } = h(), a = e, o = t, { t: s } = r(), c = A(() => a.currentFormatting ?? {}), l = A(() => a.documentStyles ? { styles: a.documentStyles } : {}), u = A(() => c.value.listState ?? as()), d = A(() => {
|
|
5027
5048
|
let e = c.value.color;
|
|
5028
5049
|
return e ? e.replace(/^#/, "").toUpperCase() : void 0;
|
|
5029
5050
|
}), f = A(() => {
|
|
@@ -5056,7 +5077,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5056
5077
|
}, [F(i, {
|
|
5057
5078
|
name: "undo",
|
|
5058
5079
|
size: 18
|
|
5059
|
-
})], 40,
|
|
5080
|
+
})], 40, cs), P("button", {
|
|
5060
5081
|
type: "button",
|
|
5061
5082
|
class: "docx-formatting-bar__btn",
|
|
5062
5083
|
disabled: e.disabled || !e.canRedo,
|
|
@@ -5066,7 +5087,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5066
5087
|
}, [F(i, {
|
|
5067
5088
|
name: "redo",
|
|
5068
5089
|
size: 18
|
|
5069
|
-
})], 40,
|
|
5090
|
+
})], 40, ls)], 8, ss),
|
|
5070
5091
|
r[13] ||= P("span", {
|
|
5071
5092
|
class: "docx-formatting-bar__divider",
|
|
5072
5093
|
role: "separator"
|
|
@@ -5097,7 +5118,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5097
5118
|
}, [F(i, {
|
|
5098
5119
|
name: "format_bold",
|
|
5099
5120
|
size: 18
|
|
5100
|
-
})], 42,
|
|
5121
|
+
})], 42, ds),
|
|
5101
5122
|
P("button", {
|
|
5102
5123
|
type: "button",
|
|
5103
5124
|
class: R(["docx-formatting-bar__btn", { "docx-formatting-bar__btn--active": c.value.italic }]),
|
|
@@ -5109,7 +5130,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5109
5130
|
}, [F(i, {
|
|
5110
5131
|
name: "format_italic",
|
|
5111
5132
|
size: 18
|
|
5112
|
-
})], 42,
|
|
5133
|
+
})], 42, fs),
|
|
5113
5134
|
P("button", {
|
|
5114
5135
|
type: "button",
|
|
5115
5136
|
class: R(["docx-formatting-bar__btn", { "docx-formatting-bar__btn--active": c.value.underline }]),
|
|
@@ -5121,8 +5142,8 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5121
5142
|
}, [F(i, {
|
|
5122
5143
|
name: "format_underlined",
|
|
5123
5144
|
size: 18
|
|
5124
|
-
})], 42,
|
|
5125
|
-
], 8,
|
|
5145
|
+
})], 42, ps)
|
|
5146
|
+
], 8, us),
|
|
5126
5147
|
e.showTextColorPicker ? (V(), N(O, { key: 1 }, [r[12] ||= P("span", {
|
|
5127
5148
|
class: "docx-formatting-bar__divider",
|
|
5128
5149
|
role: "separator"
|
|
@@ -5164,9 +5185,9 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5164
5185
|
"disabled",
|
|
5165
5186
|
"can-outdent"
|
|
5166
5187
|
])) : M("", !0)
|
|
5167
|
-
], 10,
|
|
5188
|
+
], 10, os));
|
|
5168
5189
|
}
|
|
5169
|
-
}), [["__scopeId", "data-v-fc03de2e"]]),
|
|
5190
|
+
}), [["__scopeId", "data-v-fc03de2e"]]), hs = [
|
|
5170
5191
|
{
|
|
5171
5192
|
value: .5,
|
|
5172
5193
|
label: "50%"
|
|
@@ -5191,7 +5212,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5191
5212
|
value: 2,
|
|
5192
5213
|
label: "200%"
|
|
5193
5214
|
}
|
|
5194
|
-
],
|
|
5215
|
+
], gs = /*#__PURE__*/ t(/* @__PURE__ */ I({
|
|
5195
5216
|
__name: "ZoomControl",
|
|
5196
5217
|
props: {
|
|
5197
5218
|
value: { default: 1 },
|
|
@@ -5208,7 +5229,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5208
5229
|
},
|
|
5209
5230
|
emits: ["change"],
|
|
5210
5231
|
setup(e, { emit: t }) {
|
|
5211
|
-
let { Select: n } = h(), r = e, i = t, a = A(() => r.levels ??
|
|
5232
|
+
let { Select: n } = h(), r = e, i = t, a = A(() => r.levels ?? hs), o = A(() => a.value.find((e) => Math.abs(e.value - r.value) < .001)), s = A(() => o.value ? o.value.label : `${Math.round(r.value * 100)}%`), c = A(() => o.value ? String(o.value.value) : String(r.value)), l = A(() => {
|
|
5212
5233
|
let e = a.value.map((e) => ({
|
|
5213
5234
|
value: String(e.value),
|
|
5214
5235
|
label: e.label
|
|
@@ -5236,7 +5257,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5236
5257
|
"disabled"
|
|
5237
5258
|
]));
|
|
5238
5259
|
}
|
|
5239
|
-
}), [["__scopeId", "data-v-8079e07f"]]),
|
|
5260
|
+
}), [["__scopeId", "data-v-8079e07f"]]), _s = (e, t, n = {}) => {
|
|
5240
5261
|
let { colorMode: r = C, locale: i = "en", ...a } = n;
|
|
5241
5262
|
return new Promise((n, o) => {
|
|
5242
5263
|
let s = H(null), c = null, l = !1, d = {
|
|
@@ -5262,7 +5283,7 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5262
5283
|
}
|
|
5263
5284
|
};
|
|
5264
5285
|
c = Se({ setup() {
|
|
5265
|
-
return () => Ee(
|
|
5286
|
+
return () => Ee(is, {
|
|
5266
5287
|
...a,
|
|
5267
5288
|
documentBuffer: e,
|
|
5268
5289
|
ref: s,
|
|
@@ -5277,4 +5298,4 @@ var as = ["aria-label"], os = ["aria-label"], ss = [
|
|
|
5277
5298
|
});
|
|
5278
5299
|
};
|
|
5279
5300
|
//#endregion
|
|
5280
|
-
export { gi as AutocompleteCaretOverlay, Yr as DEFAULT_AI_SUGGESTION_PRESETS, vt as DEFAULT_AUTOCOMPLETE_DEAD_ZONE_NODES, Kr as DOCUMENT_PRESET_VERSION, qr as DOCUMENT_STYLE_SET_VERSION,
|
|
5301
|
+
export { gi as AutocompleteCaretOverlay, Yr as DEFAULT_AI_SUGGESTION_PRESETS, vt as DEFAULT_AUTOCOMPLETE_DEAD_ZONE_NODES, Kr as DOCUMENT_PRESET_VERSION, qr as DOCUMENT_STYLE_SET_VERSION, is as DocxEditor, de as FindReplaceDialog, l as FolioUIProvider, fe as FootnotePropertiesDialog, ms as FormattingBar, pe as HyperlinkDialog, me as ImagePositionDialog, E as ImagePropertiesDialog, he as InsertImageDialog, D as InsertSymbolDialog, ge as InsertTableDialog, _e as PageSetupDialog, ve as PasteSpecialDialog, Ur as STELLA_STYLE_SET_NAME, ye as SplitCellDialog, be as TablePropertiesDialog, xe as WatermarkDialog, gs as ZoomControl, yt as acceptAutocompleteSuggestion, bt as acceptAutocompleteWord, pt as anonymizationDecorationsKey, xt as appendAutocompleteToken, Pn as applyFolioAIEditOperations, Xr as applySuggestions, Y as autocompleteSuggestionKey, St as autocompleteSuggestionPlugin, $r as buildPositionalText, Ct as clearAutocompleteSuggestion, Cn as clearTemplateSlashMenu, T as colorModePlugin, wn as consumeTemplateSlashQuery, ai as createAICitationDecorationsPlugin, Jr as createDocx, Rr as createEmptyDocument, Rn as createFolioAIEditSnapshot, Wr as createStellaStyleDocumentPreset, Gr as createStellaStyleSet, C as defaultColorMode, e as defaultLocale, sr as deriveBlockId, Bn as diffWordSegments, zr as extractDocumentStyleSet, Br as extractDocumentStyleSetFromDocx, wt as finishAutocompleteSuggestion, ci as fromMarkdown, mt as getAnonymizationMatches, Tt as getAutocompleteSuggestion, J as getDocumentWatermark, ri as getFolioCaretViewportRect, cr as getFolioParaIdFromBlockId, ii as getFolioSelectionViewportRect, en as getTemplateDirectives, Tn as getTemplateSlashMenu, Wn as hashFolioAIBlockText, u as i18nPlugin, He as insertImageFromFile, We as insertPageBreakInView, Ke as insertTableInView, Je as insertTableOfContentsInView, Vr as inspectDocumentStyles, Hr as inspectDocumentStylesFromDocx, ur as isFolioBlockId, dr as isSequentialFolioBlockId, Zr as isSuggestionStale, Gn as normalizeFolioAIBlockText, w as provideColorMode, n as provideLocale, _s as renderAsync, En as resetTemplateSlashQuery, Qr as resolveSuggestionAnchor, nn as scanDirectives, ni as scrollFolioPositionIntoView, oi as setAICitationsMeta, ei as setAISuggestionsMeta, si as setActiveCitationMeta, gt as setAnonymizationTermsMeta, st as setDocumentWatermark, ti as setFocusedSuggestionMeta, Sn as setTemplatePreviewValues, Dt as shouldTriggerAutocomplete, Ot as startAutocompleteSuggestion, Dn as templateSlashMenuKey, li as toMarkdown, ui as toMarkdownResult, ue as useColorMode, r as useTranslation, le as useWheelZoom };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Vue 3 editor for folio: a Word-document (.docx) editor for the browser, built on @stll/folio-core and ProseMirror.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-editor",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"test": "bun test src"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@stll/folio-core": "^0.
|
|
77
|
+
"@stll/folio-core": "^0.36.0",
|
|
78
78
|
"better-result": "3.0.1",
|
|
79
79
|
"use-intl": "^4.13.0",
|
|
80
80
|
"yjs": "^13.6.31"
|