@stll/folio-vue 0.26.2 → 0.26.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/index.js
CHANGED
|
@@ -2624,16 +2624,17 @@ var Xa = (e) => {
|
|
|
2624
2624
|
let t = e.currentTarget.value;
|
|
2625
2625
|
t === "all" ? o("outlineDepthChange", "all") : o("outlineDepthChange", t === "3" ? 3 : 2);
|
|
2626
2626
|
}, f = w(() => r[a.surface]), p = w(() => a.headings.map((e) => ({
|
|
2627
|
-
id:
|
|
2627
|
+
id: e.id,
|
|
2628
2628
|
label: e.text,
|
|
2629
2629
|
level: e.level,
|
|
2630
2630
|
...typeof e.pageNumber == "number" ? { meta: String(e.pageNumber) } : {}
|
|
2631
2631
|
}))), m = w(() => {
|
|
2632
2632
|
let e = /* @__PURE__ */ new Map();
|
|
2633
|
-
if (a.docSize > 0) for (let t of a.headings) e.set(
|
|
2633
|
+
if (a.docSize > 0) for (let t of a.headings) e.set(t.id, Math.min(99, Math.max(1, t.pmPos / a.docSize * 100)));
|
|
2634
2634
|
return e;
|
|
2635
2635
|
}), h = (e) => m.value.get(e) ?? null, g = (e) => {
|
|
2636
|
-
|
|
2636
|
+
let t = a.headings.find((t) => t.id === e);
|
|
2637
|
+
t && (o("navigate", t), a.surface === "drawer" && o("close"));
|
|
2637
2638
|
};
|
|
2638
2639
|
return (t, n) => e.available ? (L(), D("nav", {
|
|
2639
2640
|
key: 0,
|
|
@@ -2696,7 +2697,7 @@ var Xa = (e) => {
|
|
|
2696
2697
|
"aria-label"
|
|
2697
2698
|
])], 14, po)) : E("", !0);
|
|
2698
2699
|
}
|
|
2699
|
-
}), [["__scopeId", "data-v-
|
|
2700
|
+
}), [["__scopeId", "data-v-8d435a01"]]), To = { class: "dialog__header" }, Eo = { class: "dialog__body" }, Do = { class: "field" }, Oo = { class: "field__label" }, ko = { class: "dialog__footer" }, Ao = 0, jo = 32767, Mo = 1, No = /*#__PURE__*/ e(/* @__PURE__ */ M({
|
|
2700
2701
|
__name: "SetNumberingValueDialog",
|
|
2701
2702
|
props: { isOpen: { type: Boolean } },
|
|
2702
2703
|
emits: ["close", "apply"],
|
|
@@ -4735,7 +4736,7 @@ var ps = ["data-handle", "onMousedown"], ms = ["title"], hs = {
|
|
|
4735
4736
|
})).filter(({ pm: e }) => Number.isFinite(e)).sort((e, t) => e.pm - t.pm), a = null;
|
|
4736
4737
|
for (let e of xt.value) {
|
|
4737
4738
|
let t = i.find(({ pm: t }) => t >= e.pmPos);
|
|
4738
|
-
t && t.top <= r && (a =
|
|
4739
|
+
t && t.top <= r && (a = e.id);
|
|
4739
4740
|
}
|
|
4740
4741
|
Sr.value = a;
|
|
4741
4742
|
}
|
|
@@ -4753,8 +4754,8 @@ var ps = ["data-handle", "onMousedown"], ms = ["title"], hs = {
|
|
|
4753
4754
|
function Dr() {
|
|
4754
4755
|
G.value = G.value === "outline" ? "none" : "outline";
|
|
4755
4756
|
}
|
|
4756
|
-
function Or(e) {
|
|
4757
|
-
Sr.value =
|
|
4757
|
+
function Or({ id: e, pmPos: t }) {
|
|
4758
|
+
Sr.value = e, Cr = Date.now() + 900, Gn.handleOutlineNavigate(t);
|
|
4758
4759
|
}
|
|
4759
4760
|
H($, (e) => {
|
|
4760
4761
|
G.value === "outline" && e.outline !== "rail" && e.outline !== "drawer" && (G.value = "none"), G.value === "comments" && e.comments !== "drawer" && (G.value = "none");
|
|
@@ -5633,7 +5634,7 @@ var ps = ["data-handle", "onMousedown"], ms = ["title"], hs = {
|
|
|
5633
5634
|
}, null, 8, ["event-root", "view"])
|
|
5634
5635
|
], 6));
|
|
5635
5636
|
}
|
|
5636
|
-
}), [["__scopeId", "data-v-
|
|
5637
|
+
}), [["__scopeId", "data-v-e209de76"]]);
|
|
5637
5638
|
//#endregion
|
|
5638
5639
|
//#region src/utils/listState.ts
|
|
5639
5640
|
function ac() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-vue",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@fontsource/noto-sans-arabic": "^5.2.7",
|
|
88
88
|
"@fontsource/source-sans-3": "^5.3.1",
|
|
89
89
|
"@fontsource/tinos": "^5.2.7",
|
|
90
|
-
"@stll/folio-core": "^0.
|
|
90
|
+
"@stll/folio-core": "^0.64.0",
|
|
91
91
|
"@stll/utf8-boundaries": "0.1.2",
|
|
92
92
|
"better-result": "3.0.1",
|
|
93
93
|
"use-intl": "^4.14.9"
|