@harbour-enterprises/superdoc 0.13.0-RC2 → 0.13.0-next.0
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/chunks/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
- package/dist/chunks/{index-CMBtuT02.cjs → index-B4J7wgs6.cjs} +2 -2
- package/dist/chunks/{index-B1MhwjTC.cjs → index-Cdsq63Xq.cjs} +4 -4
- package/dist/chunks/{index-SKpROzLW.es.js → index-Diu6UKHt.es.js} +4 -4
- package/dist/chunks/{index-BrSjd1Id.es.js → index-Hr3Um-Bg.es.js} +2 -2
- package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
- package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
- package/dist/chunks/{super-editor.es-CG_E8Uh1.cjs → super-editor.es-B4lFJKTF.cjs} +3765 -1629
- package/dist/chunks/{super-editor.es-B6M3d3ew.es.js → super-editor.es-C-QroPG4.es.js} +3765 -1629
- package/dist/chunks/{url-DuggQ5JR.cjs → url-BIzg4y2i.cjs} +2 -2
- package/dist/chunks/{url-CAZQTNP3.es.js → url-CHayXMZH.es.js} +2 -2
- package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
- package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
- package/dist/chunks/{xml-js-B7Vccv2s.cjs → xml-js-BjqmFOSP.cjs} +2 -2
- package/dist/chunks/{xml-js-BV-kCPOA.es.js → xml-js-CfClL-1b.es.js} +2 -2
- package/dist/core/SuperDoc.d.ts +0 -6
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/collaboration/collaboration.d.ts +0 -9
- package/dist/core/collaboration/collaboration.d.ts.map +1 -1
- package/dist/core/collaboration/helpers.d.ts.map +1 -1
- package/dist/style.css +246 -147
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DdMoUfYl.js → converter-Bwa99qcs.js} +571 -336
- package/dist/super-editor/chunks/{docx-zipper-CaPhHWh0.js → docx-zipper-CVKlI3mU.js} +1 -1
- package/dist/super-editor/chunks/{editor-DfrK7LO9.js → editor-BdaZqkkS.js} +3590 -1911
- package/dist/super-editor/chunks/{toolbar-h35AzYvu.js → toolbar-BNg5l9RP.js} +130 -37
- package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +1 -8
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/InputRule.d.ts +7 -0
- package/dist/super-editor/core/InputRule.d.ts.map +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
- package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
- package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
- package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts +4 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +5 -32
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/imageHelpers/index.d.ts +1 -0
- package/dist/super-editor/extensions/image/imageHelpers/processUploadedImage.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/index.d.ts +1 -0
- package/dist/super-editor/extensions/index.d.ts +2 -1
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/noderesizer/index.d.ts +2 -0
- package/dist/super-editor/extensions/noderesizer/index.d.ts.map +1 -0
- package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts +7 -0
- package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts.map +1 -0
- package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
- package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +219 -120
- package/dist/super-editor/super-editor.es.js +325 -200
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +1590 -367
- package/dist/superdoc.es.js +1575 -368
- package/dist/superdoc.umd.js +5248 -1904
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +3 -2
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +0 -235
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +0 -1
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +0 -56
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +0 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +0 -2
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives,
|
|
2
|
-
import { x as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
1
|
+
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
+
import { x as process$1 } from "./converter-Bwa99qcs.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BdaZqkkS.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -191,16 +191,20 @@ const _sfc_main$5 = {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
const ToolbarButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6d7523ab"]]);
|
|
194
|
-
const _hoisted_1$3 = ["role"];
|
|
195
|
-
const _hoisted_2$2 = ["data-item"
|
|
194
|
+
const _hoisted_1$3 = ["role", "aria-label", "onKeydown"];
|
|
195
|
+
const _hoisted_2$2 = ["data-item"];
|
|
196
196
|
const _hoisted_3$2 = {
|
|
197
197
|
key: 1,
|
|
198
198
|
class: "button-label"
|
|
199
199
|
};
|
|
200
|
-
const _hoisted_4 = { key: 2 };
|
|
200
|
+
const _hoisted_4$1 = { key: 2 };
|
|
201
201
|
const _hoisted_5 = ["placeholder", "onKeydown", "id"];
|
|
202
202
|
const _hoisted_6 = ["placeholder", "onKeydown", "id"];
|
|
203
203
|
const _hoisted_7 = ["innerHTML"];
|
|
204
|
+
const _hoisted_8 = {
|
|
205
|
+
"aria-live": "polite",
|
|
206
|
+
class: "visually-hidden"
|
|
207
|
+
};
|
|
204
208
|
const _sfc_main$4 = {
|
|
205
209
|
__name: "ToolbarButton",
|
|
206
210
|
props: {
|
|
@@ -283,14 +287,15 @@ const _sfc_main$4 = {
|
|
|
283
287
|
return openBlock(), createElementBlock("div", {
|
|
284
288
|
class: normalizeClass(["toolbar-item", unref(attributes).className]),
|
|
285
289
|
style: normalizeStyle(getStyle.value),
|
|
286
|
-
role: __props.isOverflowItem ? "menuitem" : ""
|
|
290
|
+
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
291
|
+
"aria-label": unref(attributes).ariaLabel,
|
|
292
|
+
onClick: handleClick,
|
|
293
|
+
onKeydown: withKeys(withModifiers(handleClick, ["stop"]), ["enter"]),
|
|
294
|
+
tabindex: "0"
|
|
287
295
|
}, [
|
|
288
296
|
createElementVNode("div", {
|
|
289
|
-
onClick: handleClick,
|
|
290
297
|
class: normalizeClass(["toolbar-button", { active: unref(active), disabled: unref(disabled), narrow: __props.isNarrow, wide: __props.isWide, "has-inline-text-input": unref(hasInlineTextInput), "high-contrast": unref(isHighContrastMode) }]),
|
|
291
|
-
"data-item": `btn-${unref(name) || ""}
|
|
292
|
-
"aria-label": unref(attributes).ariaLabel,
|
|
293
|
-
role: "button"
|
|
298
|
+
"data-item": `btn-${unref(name) || ""}`
|
|
294
299
|
}, [
|
|
295
300
|
unref(icon) ? (openBlock(), createBlock(ToolbarButtonIcon, {
|
|
296
301
|
key: 0,
|
|
@@ -300,7 +305,7 @@ const _sfc_main$4 = {
|
|
|
300
305
|
name: unref(name)
|
|
301
306
|
}, null, 8, ["color", "icon", "name"])) : createCommentVNode("", true),
|
|
302
307
|
unref(label) && !unref(hideLabel) && !unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
|
|
303
|
-
unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
308
|
+
unref(inlineTextInputVisible) ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
|
|
304
309
|
unref(name) === "fontSize" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
305
310
|
key: 0,
|
|
306
311
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inlineTextInput.value = $event),
|
|
@@ -310,7 +315,7 @@ const _sfc_main$4 = {
|
|
|
310
315
|
type: "text",
|
|
311
316
|
class: normalizeClass(["button-text-input", { "high-contrast": unref(isHighContrastMode) }]),
|
|
312
317
|
id: "inlineTextInput-" + unref(name),
|
|
313
|
-
|
|
318
|
+
autocomplete: "off",
|
|
314
319
|
ref_key: "inlineInput",
|
|
315
320
|
ref: inlineInput
|
|
316
321
|
}, null, 42, _hoisted_5)), [
|
|
@@ -323,7 +328,7 @@ const _sfc_main$4 = {
|
|
|
323
328
|
type: "text",
|
|
324
329
|
class: "button-text-input",
|
|
325
330
|
id: "inlineTextInput-" + unref(name),
|
|
326
|
-
|
|
331
|
+
autocomplete: "off",
|
|
327
332
|
ref_key: "inlineInput",
|
|
328
333
|
ref: inlineInput
|
|
329
334
|
}, null, 40, _hoisted_6)), [
|
|
@@ -335,13 +340,14 @@ const _sfc_main$4 = {
|
|
|
335
340
|
class: "dropdown-caret",
|
|
336
341
|
innerHTML: caretIcon.value,
|
|
337
342
|
style: normalizeStyle({ opacity: unref(disabled) ? 0.6 : 1 })
|
|
338
|
-
}, null, 12, _hoisted_7)) : createCommentVNode("", true)
|
|
343
|
+
}, null, 12, _hoisted_7)) : createCommentVNode("", true),
|
|
344
|
+
createElementVNode("div", _hoisted_8, toDisplayString(`${unref(attributes).ariaLabel} ${unref(active) ? "selected" : "unset"}`), 1)
|
|
339
345
|
], 10, _hoisted_2$2)
|
|
340
|
-
],
|
|
346
|
+
], 46, _hoisted_1$3);
|
|
341
347
|
};
|
|
342
348
|
}
|
|
343
349
|
};
|
|
344
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
350
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2518a3d1"]]);
|
|
345
351
|
const _hoisted_1$2 = {
|
|
346
352
|
class: "toolbar-separator",
|
|
347
353
|
role: "separator",
|
|
@@ -394,16 +400,18 @@ const _sfc_main$2 = {
|
|
|
394
400
|
required: true
|
|
395
401
|
}
|
|
396
402
|
},
|
|
397
|
-
|
|
403
|
+
emits: ["buttonClick"],
|
|
404
|
+
setup(__props, { emit: __emit }) {
|
|
398
405
|
const { proxy } = getCurrentInstance();
|
|
406
|
+
const emit = __emit;
|
|
399
407
|
const props = __props;
|
|
400
|
-
const isDropdownOpened =
|
|
408
|
+
const isDropdownOpened = computed(() => props.toolbarItem.expand.value);
|
|
401
409
|
const overflowToolbarItem = computed(() => ({
|
|
402
410
|
...props.toolbarItem,
|
|
403
|
-
active: isDropdownOpened
|
|
411
|
+
active: isDropdownOpened.value
|
|
404
412
|
}));
|
|
405
413
|
const toggleOverflowMenu = () => {
|
|
406
|
-
|
|
414
|
+
emit("buttonClick", props.toolbarItem);
|
|
407
415
|
};
|
|
408
416
|
const handleCommand = ({ item, argument }) => {
|
|
409
417
|
proxy.$toolbar.emitCommand({ item, argument });
|
|
@@ -428,7 +436,7 @@ const _sfc_main$2 = {
|
|
|
428
436
|
};
|
|
429
437
|
}
|
|
430
438
|
};
|
|
431
|
-
const OverflowMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
439
|
+
const OverflowMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-53852ffa"]]);
|
|
432
440
|
function plugin$1(options) {
|
|
433
441
|
let _bPrefix = ".";
|
|
434
442
|
let _ePrefix = "__";
|
|
@@ -9759,9 +9767,10 @@ const NSkeleton = defineComponent({
|
|
|
9759
9767
|
return child;
|
|
9760
9768
|
}
|
|
9761
9769
|
});
|
|
9762
|
-
const _hoisted_1 =
|
|
9770
|
+
const _hoisted_1 = ["onKeydown", "tabindex"];
|
|
9763
9771
|
const _hoisted_2 = { key: 0 };
|
|
9764
9772
|
const _hoisted_3 = { key: 0 };
|
|
9773
|
+
const _hoisted_4 = { key: 0 };
|
|
9765
9774
|
const _sfc_main$1 = {
|
|
9766
9775
|
__name: "ButtonGroup",
|
|
9767
9776
|
props: {
|
|
@@ -9785,6 +9794,7 @@ const _sfc_main$1 = {
|
|
|
9785
9794
|
emits: ["command"],
|
|
9786
9795
|
setup(__props, { emit: __emit }) {
|
|
9787
9796
|
const emit = __emit;
|
|
9797
|
+
const toolbarItemRefs = ref([]);
|
|
9788
9798
|
const props = __props;
|
|
9789
9799
|
const currentItem = ref(null);
|
|
9790
9800
|
const { isHighContrastMode } = useHighContrastMode();
|
|
@@ -9813,7 +9823,7 @@ const _sfc_main$1 = {
|
|
|
9813
9823
|
const isOverflow = (item) => item.type === "overflow";
|
|
9814
9824
|
const handleToolbarButtonClick = (item, argument = null) => {
|
|
9815
9825
|
currentItem.value = item;
|
|
9816
|
-
currentItem.value.expand =
|
|
9826
|
+
currentItem.value.expand = !currentItem.value.expand;
|
|
9817
9827
|
if (item.disabled.value) return;
|
|
9818
9828
|
emit("command", { item, argument });
|
|
9819
9829
|
};
|
|
@@ -9855,19 +9865,97 @@ const _sfc_main$1 = {
|
|
|
9855
9865
|
const handleClickOutside = (e) => {
|
|
9856
9866
|
closeDropdowns();
|
|
9857
9867
|
};
|
|
9868
|
+
const moveToNextButton = (e) => {
|
|
9869
|
+
const currentButton = e.target;
|
|
9870
|
+
const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
|
|
9871
|
+
if (nextButton) {
|
|
9872
|
+
currentButton.setAttribute("tabindex", "-1");
|
|
9873
|
+
nextButton.setAttribute("tabindex", "0");
|
|
9874
|
+
nextButton.focus();
|
|
9875
|
+
}
|
|
9876
|
+
};
|
|
9877
|
+
const moveToPreviousButton = (e) => {
|
|
9878
|
+
const currentButton = e.target;
|
|
9879
|
+
const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
|
|
9880
|
+
if (previousButton) {
|
|
9881
|
+
currentButton.setAttribute("tabindex", "-1");
|
|
9882
|
+
previousButton.setAttribute("tabindex", "0");
|
|
9883
|
+
previousButton.focus();
|
|
9884
|
+
}
|
|
9885
|
+
};
|
|
9886
|
+
const moveToNextButtonGroup = (e) => {
|
|
9887
|
+
const nextButtonGroup = e.target.closest(".button-group").nextElementSibling;
|
|
9888
|
+
if (nextButtonGroup) {
|
|
9889
|
+
nextButtonGroup.setAttribute("tabindex", "0");
|
|
9890
|
+
nextButtonGroup.focus();
|
|
9891
|
+
} else {
|
|
9892
|
+
const editor = document.querySelector(".ProseMirror");
|
|
9893
|
+
if (editor) {
|
|
9894
|
+
editor.focus();
|
|
9895
|
+
}
|
|
9896
|
+
}
|
|
9897
|
+
};
|
|
9898
|
+
const moveToPreviousButtonGroup = (e) => {
|
|
9899
|
+
const previousButtonGroup = e.target.closest(".button-group").previousElementSibling;
|
|
9900
|
+
if (previousButtonGroup) {
|
|
9901
|
+
previousButtonGroup.setAttribute("tabindex", "0");
|
|
9902
|
+
previousButtonGroup.focus();
|
|
9903
|
+
}
|
|
9904
|
+
};
|
|
9905
|
+
const handleKeyDown = (e, item) => {
|
|
9906
|
+
e.preventDefault();
|
|
9907
|
+
switch (e.key) {
|
|
9908
|
+
case "Enter":
|
|
9909
|
+
console.log("Enter");
|
|
9910
|
+
handleToolbarButtonClick(item, null);
|
|
9911
|
+
break;
|
|
9912
|
+
case "Escape":
|
|
9913
|
+
closeDropdowns();
|
|
9914
|
+
break;
|
|
9915
|
+
case "ArrowRight":
|
|
9916
|
+
closeDropdowns();
|
|
9917
|
+
moveToNextButton(e);
|
|
9918
|
+
break;
|
|
9919
|
+
case "ArrowLeft":
|
|
9920
|
+
closeDropdowns();
|
|
9921
|
+
moveToPreviousButton(e);
|
|
9922
|
+
break;
|
|
9923
|
+
case "Tab":
|
|
9924
|
+
if (e.shiftKey) {
|
|
9925
|
+
moveToPreviousButtonGroup(e);
|
|
9926
|
+
} else {
|
|
9927
|
+
moveToNextButtonGroup(e);
|
|
9928
|
+
}
|
|
9929
|
+
break;
|
|
9930
|
+
}
|
|
9931
|
+
};
|
|
9932
|
+
const handleFocus = (e) => {
|
|
9933
|
+
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
|
|
9934
|
+
if (firstButton) {
|
|
9935
|
+
firstButton.setAttribute("tabindex", "0");
|
|
9936
|
+
firstButton.focus();
|
|
9937
|
+
}
|
|
9938
|
+
};
|
|
9858
9939
|
return (_ctx, _cache) => {
|
|
9859
9940
|
return openBlock(), createElementBlock("div", {
|
|
9860
9941
|
style: normalizeStyle(getPositionStyle.value),
|
|
9861
9942
|
class: "button-group",
|
|
9862
|
-
role: "group"
|
|
9943
|
+
role: "group",
|
|
9944
|
+
onFocus: handleFocus
|
|
9863
9945
|
}, [
|
|
9864
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.toolbarItems, (item) => {
|
|
9946
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.toolbarItems, (item, index) => {
|
|
9865
9947
|
return openBlock(), createElementBlock("div", {
|
|
9866
9948
|
key: item.id.value,
|
|
9867
9949
|
class: normalizeClass([{
|
|
9868
9950
|
narrow: item.isNarrow.value,
|
|
9869
|
-
wide: item.isWide.value
|
|
9870
|
-
|
|
9951
|
+
wide: item.isWide.value,
|
|
9952
|
+
disabled: item.disabled.value
|
|
9953
|
+
}, "toolbar-item-ctn"]),
|
|
9954
|
+
onKeydown: (e) => handleKeyDown(e, item),
|
|
9955
|
+
ref_for: true,
|
|
9956
|
+
ref_key: "toolbarItemRefs",
|
|
9957
|
+
ref: toolbarItemRefs,
|
|
9958
|
+
tabindex: index === 0 ? 0 : -1
|
|
9871
9959
|
}, [
|
|
9872
9960
|
isSeparator(item) ? (openBlock(), createBlock(ToolbarSeparator, {
|
|
9873
9961
|
key: 0,
|
|
@@ -9897,14 +9985,15 @@ const _sfc_main$1 = {
|
|
|
9897
9985
|
trigger: withCtx(() => [
|
|
9898
9986
|
createVNode(ToolbarButton, {
|
|
9899
9987
|
"toolbar-item": item,
|
|
9988
|
+
disabled: item.disabled.value,
|
|
9900
9989
|
onTextSubmit: ($event) => handleToolbarButtonTextSubmit(item, $event),
|
|
9901
9990
|
onButtonClick: ($event) => handleToolbarButtonClick(item)
|
|
9902
|
-
}, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
|
|
9991
|
+
}, null, 8, ["toolbar-item", "disabled", "onTextSubmit", "onButtonClick"])
|
|
9903
9992
|
]),
|
|
9904
9993
|
default: withCtx(() => [
|
|
9905
9994
|
createElementVNode("div", null, [
|
|
9906
9995
|
createTextVNode(toDisplayString(item.tooltip) + " ", 1),
|
|
9907
|
-
item.disabled.value ? (openBlock(), createElementBlock("span",
|
|
9996
|
+
item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_2, "(disabled)")) : createCommentVNode("", true)
|
|
9908
9997
|
])
|
|
9909
9998
|
]),
|
|
9910
9999
|
_: 2
|
|
@@ -9925,9 +10014,9 @@ const _sfc_main$1 = {
|
|
|
9925
10014
|
}, null, 8, ["toolbar-item", "is-overflow-item", "onTextSubmit", "onButtonClick"])
|
|
9926
10015
|
]),
|
|
9927
10016
|
default: withCtx(() => [
|
|
9928
|
-
item.tooltip ? (openBlock(), createElementBlock("div",
|
|
10017
|
+
item.tooltip ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
9929
10018
|
createTextVNode(toDisplayString(item.tooltip) + " ", 1),
|
|
9930
|
-
item.disabled.value ? (openBlock(), createElementBlock("span",
|
|
10019
|
+
item.disabled.value ? (openBlock(), createElementBlock("span", _hoisted_4, "(disabled)")) : createCommentVNode("", true)
|
|
9931
10020
|
])) : createCommentVNode("", true)
|
|
9932
10021
|
]),
|
|
9933
10022
|
_: 2
|
|
@@ -9935,15 +10024,16 @@ const _sfc_main$1 = {
|
|
|
9935
10024
|
isOverflow(item) && __props.overflowItems.length ? (openBlock(), createBlock(OverflowMenu, {
|
|
9936
10025
|
key: 3,
|
|
9937
10026
|
"toolbar-item": item,
|
|
10027
|
+
onButtonClick: ($event) => handleToolbarButtonClick(item),
|
|
9938
10028
|
"overflow-items": __props.overflowItems
|
|
9939
|
-
}, null, 8, ["toolbar-item", "overflow-items"])) : createCommentVNode("", true)
|
|
9940
|
-
],
|
|
10029
|
+
}, null, 8, ["toolbar-item", "onButtonClick", "overflow-items"])) : createCommentVNode("", true)
|
|
10030
|
+
], 42, _hoisted_1);
|
|
9941
10031
|
}), 128))
|
|
9942
|
-
],
|
|
10032
|
+
], 36);
|
|
9943
10033
|
};
|
|
9944
10034
|
}
|
|
9945
10035
|
};
|
|
9946
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
10036
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d4f36abf"]]);
|
|
9947
10037
|
const _sfc_main = {
|
|
9948
10038
|
__name: "Toolbar",
|
|
9949
10039
|
emits: ["command", "toggle", "select"],
|
|
@@ -9994,12 +10084,14 @@ const _sfc_main = {
|
|
|
9994
10084
|
}, [
|
|
9995
10085
|
unref(showLeftSide) ? (openBlock(), createBlock(ButtonGroup, {
|
|
9996
10086
|
key: 0,
|
|
10087
|
+
tabindex: "0",
|
|
9997
10088
|
"toolbar-items": getFilteredItems("left"),
|
|
9998
10089
|
position: "left",
|
|
9999
10090
|
onCommand: handleCommand,
|
|
10000
10091
|
class: "superdoc-toolbar-group-side"
|
|
10001
10092
|
}, null, 8, ["toolbar-items"])) : createCommentVNode("", true),
|
|
10002
10093
|
createVNode(ButtonGroup, {
|
|
10094
|
+
tabindex: "0",
|
|
10003
10095
|
"toolbar-items": getFilteredItems("center"),
|
|
10004
10096
|
"overflow-items": unref(proxy).$toolbar.overflowItems,
|
|
10005
10097
|
position: "center",
|
|
@@ -10007,6 +10099,7 @@ const _sfc_main = {
|
|
|
10007
10099
|
}, null, 8, ["toolbar-items", "overflow-items"]),
|
|
10008
10100
|
unref(showRightSide) ? (openBlock(), createBlock(ButtonGroup, {
|
|
10009
10101
|
key: 1,
|
|
10102
|
+
tabindex: "0",
|
|
10010
10103
|
"toolbar-items": getFilteredItems("right"),
|
|
10011
10104
|
position: "right",
|
|
10012
10105
|
onCommand: handleCommand,
|
|
@@ -10016,7 +10109,7 @@ const _sfc_main = {
|
|
|
10016
10109
|
};
|
|
10017
10110
|
}
|
|
10018
10111
|
};
|
|
10019
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
10112
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d38c912"]]);
|
|
10020
10113
|
export {
|
|
10021
10114
|
NSkeleton as N,
|
|
10022
10115
|
Toolbar as T,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,
|
|
1
|
+
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAyBhB"}
|
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
* @property {string} email The user's email
|
|
16
16
|
* @property {string | null} image The user's photo
|
|
17
17
|
*/
|
|
18
|
-
/**
|
|
19
|
-
* @typedef {Object} DocxNode A JSON representation of a docx node
|
|
20
|
-
*/
|
|
21
18
|
/**
|
|
22
19
|
* @typedef {Object} EditorOptions
|
|
23
20
|
* @property {HTMLElement} [element] - The container element for the editor
|
|
@@ -412,7 +409,7 @@ export class Editor extends EventEmitter {
|
|
|
412
409
|
* @param {boolean} [options.getUpdatedDocs=false] - When set to true return only updated docx files
|
|
413
410
|
* @returns {Promise<Blob|ArrayBuffer|Object>} The exported DOCX file or updated docx files
|
|
414
411
|
*/
|
|
415
|
-
exportDocx({ isFinalDoc, commentsType,
|
|
412
|
+
exportDocx({ isFinalDoc, commentsType, comments, getUpdatedDocs }?: {
|
|
416
413
|
isFinalDoc?: boolean;
|
|
417
414
|
commentsType?: string;
|
|
418
415
|
comments?: any[];
|
|
@@ -511,10 +508,6 @@ export type User = {
|
|
|
511
508
|
*/
|
|
512
509
|
image: string | null;
|
|
513
510
|
};
|
|
514
|
-
/**
|
|
515
|
-
* A JSON representation of a docx node
|
|
516
|
-
*/
|
|
517
|
-
export type DocxNode = any;
|
|
518
511
|
export type EditorOptions = {
|
|
519
512
|
/**
|
|
520
513
|
* - The container element for the editor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cleans and sanitizes HTML content by removing unnecessary tags, entities, and extra whitespace.
|
|
3
|
+
*
|
|
4
|
+
* @param {String} html The HTML string to be processed.
|
|
5
|
+
* @returns {String} The processed HTML string with em units converted to pt units.
|
|
6
|
+
*/
|
|
7
|
+
export function cleanHtmlUnnecessaryTags(html: string): string;
|
|
1
8
|
export class InputRule {
|
|
2
9
|
constructor(config: any);
|
|
3
10
|
match: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"AAwSA;;;;;GAKG;AACH,+DAOC;AA3SD;IAIE,yBAGC;IAND,WAAM;IACN,aAAQ;CAMT;AAgHM;;;gBAyHN;AAkCM,oDASN;uBAtSiC,mBAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function splitListItem(typeOrName: any
|
|
1
|
+
export function splitListItem(typeOrName: any): (props: any) => boolean;
|
|
2
2
|
//# sourceMappingURL=splitListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"splitListItem.d.ts","sourceRoot":"","sources":["../../../src/core/commands/splitListItem.js"],"names":[],"mappings":"AAcO,iDAAuC,UAAK,aAwGlD"}
|
|
@@ -12,6 +12,7 @@ export function annotateDocument({ annotationValues, hiddenFieldIds, removeEmpty
|
|
|
12
12
|
tr: any;
|
|
13
13
|
editor: any;
|
|
14
14
|
}): any;
|
|
15
|
+
export function cleanUpListsWithAnnotations(fieldsToDelete: any[], editor: any): void;
|
|
15
16
|
export namespace AnnotatorHelpers {
|
|
16
17
|
export { getFieldAttrs };
|
|
17
18
|
export { processTables };
|
|
@@ -20,6 +21,7 @@ export namespace AnnotatorHelpers {
|
|
|
20
21
|
export { getAllHeaderFooterEditors };
|
|
21
22
|
export { updateHeaderFooterFieldAnnotations };
|
|
22
23
|
export { deleteHeaderFooterFieldAnnotations };
|
|
24
|
+
export { cleanUpListsWithAnnotations };
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Annotate headers and footers in the document
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAYO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;AA+DM,sFAkFN;;;;;;;;;;;AAhQD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAuHD;;;;SAeC;AAED;;;SAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findWordBounds.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/findWordBounds.js"],"names":[],"mappings":"AAMO;;;EAmBN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setWordSelection.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/setWordSelection.js"],"names":[],"mappings":"AAGO,4DAKN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"AAaO,sCANI,MAAM,UACN,MAAM,+BAoDhB"}
|
|
@@ -101,12 +101,15 @@ export class SuperConverter {
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
getThemeInfo(themeName: any): {
|
|
104
|
+
typeface?: undefined;
|
|
105
|
+
panose?: undefined;
|
|
106
|
+
} | {
|
|
104
107
|
typeface: any;
|
|
105
108
|
panose: any;
|
|
106
109
|
};
|
|
107
110
|
getSchema(editor: any): import("./v2/importer/docxImporter.js").PmNodeJson;
|
|
108
111
|
schemaToXml(data: any, debug?: boolean): string;
|
|
109
|
-
exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any
|
|
112
|
+
exportToDocx(jsonData: any, editorSchema: any, documentMedia: any, isFinalDoc: boolean, commentsExportType: any, comments: any[], editor: any): Promise<string>;
|
|
110
113
|
exportToXmlJson({ data, editorSchema, comments, commentDefinitions, commentsExportType, isFinalDoc, editor, isHeaderFooter, }: {
|
|
111
114
|
data: any;
|
|
112
115
|
editorSchema: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;;;;MAiBC;IAED,2EAeC;IAED,gDAGC;IAED,gKA4DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAwCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAs5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAwEF;;;;;;;;;;;;;mBA5vEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;EAMC;AAED,qEAwBC;AAED,0EAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH,wCAGE;AAsBF;;GAEG;AACH,2CAGE"}
|
|
@@ -5,27 +5,6 @@
|
|
|
5
5
|
* @returns {boolean} Whether the node is a list or not.
|
|
6
6
|
*/
|
|
7
7
|
export function testForList(node: XmlNode, docx: any): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Get the style tag from the style ID
|
|
10
|
-
*
|
|
11
|
-
* @param {string} styleId The style ID to search for
|
|
12
|
-
* @param {Object} docx The docx data
|
|
13
|
-
* @returns {Object} The style tag
|
|
14
|
-
*/
|
|
15
|
-
export function getStyleTagFromStyleId(styleId: string, docx: any): any;
|
|
16
|
-
/**
|
|
17
|
-
* Get the num ID from the style definition
|
|
18
|
-
* This is a recursive function that will check the style definition for the numId
|
|
19
|
-
* If it doesn't exist, it will check the basedOn style definition for the numId
|
|
20
|
-
* This will continue until we find a numId or we run out of basedOn styles
|
|
21
|
-
*
|
|
22
|
-
* @param {Object} node The node to check
|
|
23
|
-
* @param {string} styleId The style ID to check
|
|
24
|
-
* @param {Object} docx The docx data
|
|
25
|
-
* @param {Set} seenStyleIds The set of style IDs we've already seen to avoid circular references
|
|
26
|
-
* @returns {string|null} The numId or null if not found
|
|
27
|
-
*/
|
|
28
|
-
export function getNumPrRecursive({ node, styleId, docx, seenStyleIds }: any): string | null;
|
|
29
8
|
/**
|
|
30
9
|
* Main function to get list item information from numbering.xml
|
|
31
10
|
*
|
|
@@ -37,6 +16,8 @@ export function getNumPrRecursive({ node, styleId, docx, seenStyleIds }: any): s
|
|
|
37
16
|
export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDocx): {
|
|
38
17
|
listType?: undefined;
|
|
39
18
|
listOrderingType?: undefined;
|
|
19
|
+
ilvl?: undefined;
|
|
20
|
+
numId?: undefined;
|
|
40
21
|
listrPrs?: undefined;
|
|
41
22
|
listpPrs?: undefined;
|
|
42
23
|
start?: undefined;
|
|
@@ -45,21 +26,14 @@ export function getNodeNumberingDefinition(item: any, level: int, docx: ParsedDo
|
|
|
45
26
|
} | {
|
|
46
27
|
listType: string;
|
|
47
28
|
listOrderingType: any;
|
|
29
|
+
ilvl: any;
|
|
30
|
+
numId: any;
|
|
48
31
|
listrPrs: {};
|
|
49
|
-
listpPrs: {
|
|
50
|
-
indent: {};
|
|
51
|
-
justify: {
|
|
52
|
-
val: any;
|
|
53
|
-
};
|
|
54
|
-
tabStops: any[];
|
|
55
|
-
};
|
|
32
|
+
listpPrs: {};
|
|
56
33
|
start: any;
|
|
57
34
|
lvlText: any;
|
|
58
35
|
lvlJc: any;
|
|
59
36
|
};
|
|
60
|
-
export function getDefinitionForLevel(data: any, level: any): any;
|
|
61
|
-
export function parseIndentElement(indElem: any): {};
|
|
62
|
-
export function combineIndents(ind1: any, ind2: any): {};
|
|
63
37
|
/**
|
|
64
38
|
* @type {import("docxImporter").NodeHandler}
|
|
65
39
|
*/
|
|
@@ -68,5 +42,4 @@ export const handleListNode: any;
|
|
|
68
42
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
69
43
|
*/
|
|
70
44
|
export const listHandlerEntity: any;
|
|
71
|
-
export function getAbstractDefinition(numId: any, docx: any): any;
|
|
72
45
|
//# sourceMappingURL=listImporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAqUA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EA8CpB;AAzlBD;;GAEG;AACH,iCA0CE;AAEF;;GAEG;AACH,oCAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA0SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA9bD;;;;;;;GAOG;AACH,sCAqIE;AAEK;;;;;;EAwCN;AAEM;;;;;EAkDN;AAgDD;;GAEG;AACH,6CAGE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-BdaZqkkS.js";
|
|
2
|
+
import "./chunks/converter-Bwa99qcs.js";
|
|
3
|
+
import "./chunks/docx-zipper-CVKlI3mU.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;
|
|
1
|
+
{"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;IAqOZ,wCAYC;IAED,8CAYC;IA/CD;;;aAmBC;IA9MD,kBAgBC;IAED,sBAQC;IAED,uBAwBC;IAED,2BA2BC;IAED,0BAQC;IAED,sBAeC;IAED,sBAqBC;IA4CD,6BAIC;IAED,6BAIC;IAmDD,+BAOC;IAID,kCAEC;IAED,uCAKC;IAED,gBAEC;IAED,wCAQC;;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,
|
|
1
|
+
{"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCA68BG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imagePositionPlugin.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image/imageHelpers/imagePositionPlugin.js"],"names":[],"mappings":"AAKO;;
|
|
1
|
+
{"version":3,"file":"imagePositionPlugin.d.ts","sourceRoot":"","sources":["../../../../src/extensions/image/imageHelpers/imagePositionPlugin.js"],"names":[],"mappings":"AAKO;;0BAyCN;8BA7CyC,kBAAkB;uBAD1B,mBAAmB"}
|