js.documents 14.4.56 → 14.4.57
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/codecs/read.cjs +2 -2
- package/dist/codecs/read.js +1 -1
- package/dist/composition-plan-CfvhXeOC.cjs +627 -0
- package/dist/composition-plan-DU9nPPN7.d.cts +102 -0
- package/dist/composition-plan-f0zaExUW.js +508 -0
- package/dist/composition-plan-l6QPO4FX.d.ts +102 -0
- package/dist/convert/composition-plan.cjs +7 -0
- package/dist/convert/composition-plan.d.cts +2 -0
- package/dist/convert/composition-plan.d.ts +2 -0
- package/dist/convert/composition-plan.js +2 -0
- package/dist/convert/composition-to-pdf.cjs +12 -12
- package/dist/convert/composition-to-pdf.d.cts +1 -1
- package/dist/convert/composition-to-pdf.d.ts +1 -1
- package/dist/convert/composition-to-pdf.js +2 -2
- package/dist/convert/composition.cjs +16 -511
- package/dist/convert/composition.d.cts +2 -85
- package/dist/convert/composition.d.ts +2 -85
- package/dist/convert/composition.js +2 -502
- package/dist/convert/convert.cjs +2 -2
- package/dist/convert/convert.js +1 -1
- package/dist/convert/from-package.cjs +3 -3
- package/dist/convert/from-package.js +2 -2
- package/dist/convert/from-pdf.cjs +18 -18
- package/dist/convert/from-pdf.js +2 -2
- package/dist/convert/local.cjs +3 -3
- package/dist/convert/local.js +1 -1
- package/dist/edit/odp/slide.cjs +4 -4
- package/dist/edit/odp/slide.d.cts +1 -1
- package/dist/edit/odp/slide.d.ts +1 -1
- package/dist/edit/odp/slide.js +1 -1
- package/dist/edit/odt/content.d.cts +1 -1
- package/dist/edit/odt/content.d.ts +1 -1
- package/dist/edit/odt/editor.cjs +4 -4
- package/dist/edit/odt/editor.d.cts +1 -1
- package/dist/edit/odt/editor.d.ts +1 -1
- package/dist/edit/odt/editor.js +1 -1
- package/dist/edit/odt/table-grid.cjs +23 -0
- package/dist/edit/odt/table-grid.d.cts +54 -0
- package/dist/edit/odt/table-grid.d.ts +54 -0
- package/dist/edit/odt/table-grid.js +2 -0
- package/dist/edit/odt/table.cjs +12 -653
- package/dist/edit/odt/table.d.cts +2 -2
- package/dist/edit/odt/table.d.ts +2 -2
- package/dist/edit/odt/table.js +2 -647
- package/dist/{evaluate-BbOsgdmN.d.cts → evaluate-BSEUxiUK.d.cts} +3 -1
- package/dist/evaluate-CEzsBx3w.cjs +564 -0
- package/dist/{evaluate-C7fmk69X.d.ts → evaluate-D8fG2ZeB.d.ts} +3 -1
- package/dist/evaluate-IK-3aMv5.js +445 -0
- package/dist/evaluate-columns-CyqKHkIW.d.cts +41 -0
- package/dist/evaluate-columns-cOo8fOfT.d.ts +41 -0
- package/dist/index.cjs +24 -24
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +8 -8
- package/dist/latex/lint.cjs +2 -2
- package/dist/latex/lint.js +1 -1
- package/dist/latex/lower-fold.cjs +6 -0
- package/dist/latex/lower-fold.d.cts +17 -0
- package/dist/latex/lower-fold.d.ts +17 -0
- package/dist/latex/lower-fold.js +2 -0
- package/dist/latex/lower.cjs +11 -617
- package/dist/latex/lower.d.cts +18 -1
- package/dist/latex/lower.d.ts +18 -1
- package/dist/latex/lower.js +2 -616
- package/dist/latex/symbols.d.cts +1 -15
- package/dist/latex/symbols.d.ts +1 -15
- package/dist/latex/temml.d.cts +1 -24
- package/dist/latex/temml.d.ts +1 -24
- package/dist/layout/engine.cjs +2 -2
- package/dist/layout/engine.js +1 -1
- package/dist/layout/reconstruct-lines.cjs +315 -0
- package/dist/layout/reconstruct-lines.d.cts +2 -0
- package/dist/layout/reconstruct-lines.d.ts +2 -0
- package/dist/layout/reconstruct-lines.js +297 -0
- package/dist/layout/reconstruct-presentations-prod.cjs +9 -0
- package/dist/layout/reconstruct-presentations-prod.d.cts +26 -0
- package/dist/layout/reconstruct-presentations-prod.d.ts +26 -0
- package/dist/layout/reconstruct-presentations-prod.js +2 -0
- package/dist/layout/reconstruct-tables.cjs +5 -0
- package/dist/layout/reconstruct-tables.d.cts +22 -0
- package/dist/layout/reconstruct-tables.d.ts +22 -0
- package/dist/layout/reconstruct-tables.js +2 -0
- package/dist/layout/reconstruct.cjs +11 -1545
- package/dist/layout/reconstruct.d.cts +2 -14
- package/dist/layout/reconstruct.d.ts +2 -14
- package/dist/layout/reconstruct.js +2 -1542
- package/dist/layout/shared.cjs +2 -2
- package/dist/layout/shared.js +1 -1
- package/dist/layout/sheets-render.cjs +19 -0
- package/dist/layout/sheets-render.d.cts +41 -0
- package/dist/layout/sheets-render.d.ts +41 -0
- package/dist/layout/sheets-render.js +2 -0
- package/dist/layout/sheets.cjs +10 -544
- package/dist/layout/sheets.d.cts +13 -2
- package/dist/layout/sheets.d.ts +13 -2
- package/dist/layout/sheets.js +2 -543
- package/dist/layout/slides.cjs +2 -2
- package/dist/layout/slides.js +1 -1
- package/dist/layout-DIJzJk4x.js +526 -0
- package/dist/layout-iuiyl_Fk.cjs +621 -0
- package/dist/layout-types-oSbHvZid.d.cts +13 -0
- package/dist/layout-types-oSbHvZid.d.ts +13 -0
- package/dist/lower-DCs3rWI7.js +618 -0
- package/dist/lower-DzOb13w4.cjs +701 -0
- package/dist/markdown/math.cjs +2 -2
- package/dist/markdown/math.js +1 -1
- package/dist/mathml/layout-stretch.cjs +16 -0
- package/dist/mathml/layout-stretch.d.cts +24 -0
- package/dist/mathml/layout-stretch.d.ts +24 -0
- package/dist/mathml/layout-stretch.js +2 -0
- package/dist/mathml/layout-types.d.cts +1 -12
- package/dist/mathml/layout-types.d.ts +1 -12
- package/dist/mathml/layout.cjs +3 -525
- package/dist/mathml/layout.d.cts +2 -2
- package/dist/mathml/layout.d.ts +2 -2
- package/dist/mathml/layout.js +1 -523
- package/dist/odb/formula/evaluate.d.cts +1 -1
- package/dist/odb/formula/evaluate.d.ts +1 -1
- package/dist/odb/report/render.d.cts +1 -1
- package/dist/odb/report/render.d.ts +1 -1
- package/dist/odb/report/source.cjs +2 -2
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/report/source.js +1 -1
- package/dist/odb/sql/evaluate-columns.cjs +122 -0
- package/dist/odb/sql/evaluate-columns.d.cts +2 -0
- package/dist/odb/sql/evaluate-columns.d.ts +2 -0
- package/dist/odb/sql/evaluate-columns.js +114 -0
- package/dist/odb/sql/evaluate-predicates.cjs +16 -0
- package/dist/odb/sql/evaluate-predicates.d.cts +23 -0
- package/dist/odb/sql/evaluate-predicates.d.ts +23 -0
- package/dist/odb/sql/evaluate-predicates.js +2 -0
- package/dist/odb/sql/evaluate.cjs +7 -556
- package/dist/odb/sql/evaluate.d.cts +2 -2
- package/dist/odb/sql/evaluate.d.ts +2 -2
- package/dist/odb/sql/evaluate.js +2 -552
- package/dist/read-BSH--XB4.js +682 -0
- package/dist/read-CahCZMwG.cjs +759 -0
- package/dist/reconstruct-BKOCAedo.d.ts +29 -0
- package/dist/reconstruct-D4TEteZ6.d.cts +29 -0
- package/dist/reconstruct-lines-B7t66ICm.d.cts +33 -0
- package/dist/reconstruct-lines-B7t66ICm.d.ts +33 -0
- package/dist/reconstruct-presentations-prod-B5fkPiRZ.js +1256 -0
- package/dist/reconstruct-presentations-prod-X315aBmI.cjs +1375 -0
- package/dist/sheets-BQCpNXsE.cjs +700 -0
- package/dist/sheets-DWDvGN-g.js +545 -0
- package/dist/svg/read-geometry.cjs +10 -0
- package/dist/svg/read-geometry.d.cts +24 -0
- package/dist/svg/read-geometry.d.ts +24 -0
- package/dist/svg/read-geometry.js +2 -0
- package/dist/svg/read.cjs +6 -680
- package/dist/svg/read.d.cts +17 -2
- package/dist/svg/read.d.ts +17 -2
- package/dist/svg/read.js +2 -679
- package/dist/symbols-BlzXfLEe.d.cts +16 -0
- package/dist/symbols-CKm2r4D0.d.ts +16 -0
- package/dist/table-B5gSMY7w.js +649 -0
- package/dist/{table-DrE6jEWv.d.cts → table-BK_Ao-Y6.d.cts} +9 -1
- package/dist/{table-B5htMG3g.d.ts → table-CxY85YUj.d.ts} +9 -1
- package/dist/table-DqUIOSPV.cjs +840 -0
- package/dist/temml-1-I9N9DD.d.cts +25 -0
- package/dist/temml-1-I9N9DD.d.ts +25 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_reconstruct_presentations_prod = require("../reconstruct-presentations-prod-X315aBmI.cjs");
|
|
3
3
|
const require_convert_pdf_package_tables = require("./pdf-package-tables.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_composition_plan = require("../composition-plan-CfvhXeOC.cjs");
|
|
5
5
|
const require_codecs_read = require("../codecs/read.cjs");
|
|
6
6
|
let document_schema_js = require("document-schema.js");
|
|
7
7
|
let pdf_codec_read = require("pdf-codec/read");
|
|
@@ -17,7 +17,7 @@ function readNativeContent(format, bytes, options) {
|
|
|
17
17
|
sink: options?.sink
|
|
18
18
|
});
|
|
19
19
|
return {
|
|
20
|
-
content:
|
|
20
|
+
content: require_reconstruct_presentations_prod.reconstructWordprocessing(layout, { signal: options?.signal }),
|
|
21
21
|
layout
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -43,49 +43,49 @@ function readContentDocument(format, bytes, options) {
|
|
|
43
43
|
return readNativeContent(format, bytes, options).content;
|
|
44
44
|
}
|
|
45
45
|
function pdfToDocx(bytes, options) {
|
|
46
|
-
return
|
|
46
|
+
return require_composition_plan.convertDocumentFromPdf("docx", bytes, options);
|
|
47
47
|
}
|
|
48
48
|
function pdfToPptx(bytes, options) {
|
|
49
|
-
return
|
|
49
|
+
return require_composition_plan.convertDocumentFromPdf("pptx", bytes, options);
|
|
50
50
|
}
|
|
51
51
|
function pdfToOdt(bytes, options) {
|
|
52
|
-
return
|
|
52
|
+
return require_composition_plan.convertDocumentFromPdf("odt", bytes, options);
|
|
53
53
|
}
|
|
54
54
|
function pdfToOdp(bytes, options) {
|
|
55
|
-
return
|
|
55
|
+
return require_composition_plan.convertDocumentFromPdf("odp", bytes, options);
|
|
56
56
|
}
|
|
57
57
|
function pdfToOdg(bytes, options) {
|
|
58
|
-
return
|
|
58
|
+
return require_composition_plan.convertDocumentFromPdf("odg", bytes, options);
|
|
59
59
|
}
|
|
60
60
|
function pdfToOds(bytes, options) {
|
|
61
|
-
return
|
|
61
|
+
return require_composition_plan.convertDocumentFromPdf("ods", bytes, options);
|
|
62
62
|
}
|
|
63
63
|
function pdfToMarkdown(bytes, options) {
|
|
64
|
-
return
|
|
64
|
+
return require_composition_plan.convertDocumentFromPdf("markdown", bytes, options);
|
|
65
65
|
}
|
|
66
66
|
function pdfToCsv(bytes, options) {
|
|
67
|
-
return
|
|
67
|
+
return require_composition_plan.convertDocumentFromPdf("csv", bytes, options);
|
|
68
68
|
}
|
|
69
69
|
function pdfToSvg(bytes, options) {
|
|
70
|
-
return
|
|
70
|
+
return require_composition_plan.convertDocumentFromPdf("svg", bytes, options);
|
|
71
71
|
}
|
|
72
72
|
function pdfToXlsx(bytes, options) {
|
|
73
|
-
return
|
|
73
|
+
return require_composition_plan.convertDocumentFromPdf("xlsx", bytes, options);
|
|
74
74
|
}
|
|
75
75
|
function pdfToRtf(bytes, options) {
|
|
76
|
-
return
|
|
76
|
+
return require_composition_plan.convertDocumentFromPdf("rtf", bytes, options);
|
|
77
77
|
}
|
|
78
78
|
function pdfToDoc(bytes, options) {
|
|
79
|
-
return
|
|
79
|
+
return require_composition_plan.convertDocumentFromPdf("doc", bytes, options);
|
|
80
80
|
}
|
|
81
81
|
function pdfToXls(bytes, options) {
|
|
82
|
-
return
|
|
82
|
+
return require_composition_plan.convertDocumentFromPdf("xls", bytes, options);
|
|
83
83
|
}
|
|
84
84
|
function pdfToPpt(bytes, options) {
|
|
85
|
-
return
|
|
85
|
+
return require_composition_plan.convertDocumentFromPdf("ppt", bytes, options);
|
|
86
86
|
}
|
|
87
87
|
function pdfToEpub(bytes, options) {
|
|
88
|
-
return
|
|
88
|
+
return require_composition_plan.convertDocumentFromPdf("epub", bytes, options);
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
91
|
exports.pdfToCsv = pdfToCsv;
|
package/dist/convert/from-pdf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { reconstructWordprocessing } from "../
|
|
1
|
+
import { _ as reconstructWordprocessing } from "../reconstruct-presentations-prod-B5fkPiRZ.js";
|
|
2
2
|
import { stampPdfPackageTables } from "./pdf-package-tables.js";
|
|
3
|
-
import { convertDocumentFromPdf } from "
|
|
3
|
+
import { h as convertDocumentFromPdf } from "../composition-plan-f0zaExUW.js";
|
|
4
4
|
import { CONTENT_READERS, readDocumentLayout } from "../codecs/read.js";
|
|
5
5
|
import { assembleTree } from "document-schema.js";
|
|
6
6
|
import { readPdf } from "pdf-codec/read";
|
package/dist/convert/local.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_convert_capability = require("./capability.cjs");
|
|
3
3
|
const require_convert_port = require("./port.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_composition_plan = require("../composition-plan-CfvhXeOC.cjs");
|
|
5
5
|
const require_convert_composition_to_pdf = require("./composition-to-pdf.cjs");
|
|
6
6
|
const require_convert_convert = require("./convert.cjs");
|
|
7
7
|
//#region src/convert/local.ts
|
|
@@ -9,7 +9,7 @@ const SUPPORTED_CONVERSIONS = (() => {
|
|
|
9
9
|
const pairs = [];
|
|
10
10
|
for (const source of require_convert_port.DOCUMENT_FORMATS) for (const target of require_convert_port.DOCUMENT_FORMATS) {
|
|
11
11
|
if (source === target) continue;
|
|
12
|
-
if (
|
|
12
|
+
if (require_composition_plan.resolveCompositionPlan(source, target) !== void 0) pairs.push({
|
|
13
13
|
source,
|
|
14
14
|
target
|
|
15
15
|
});
|
|
@@ -76,7 +76,7 @@ function createLocalDocumentConverter() {
|
|
|
76
76
|
package: documentPackage
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
if (
|
|
79
|
+
if (require_composition_plan.resolveCompositionPlan(source.format, targetFormat) === void 0) return Promise.reject(new require_convert_capability.UnsupportedConversionError(source.format, targetFormat));
|
|
80
80
|
const bytes = require_convert_composition_to_pdf.convertDocument(source.format, targetFormat, source.bytes, {
|
|
81
81
|
signal: options.signal,
|
|
82
82
|
fonts: options.fonts,
|
package/dist/convert/local.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnsupportedConversionError } from "./capability.js";
|
|
2
2
|
import { DOCUMENT_FORMATS } from "./port.js";
|
|
3
|
-
import { resolveCompositionPlan } from "
|
|
3
|
+
import { i as resolveCompositionPlan } from "../composition-plan-f0zaExUW.js";
|
|
4
4
|
import { convertDocument } from "./composition-to-pdf.js";
|
|
5
5
|
import { odfToPdf } from "./convert.js";
|
|
6
6
|
//#region src/convert/local.ts
|
package/dist/edit/odp/slide.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_xml_edit = require("../../xml/edit.cjs");
|
|
|
4
4
|
const require_edit_odg_vector = require("../odg/vector.cjs");
|
|
5
5
|
const require_xml_odf_text = require("../../xml/odf-text.cjs");
|
|
6
6
|
const require_edit_odt_paragraph = require("../odt/paragraph.cjs");
|
|
7
|
-
const
|
|
7
|
+
const require_table = require("../../table-DqUIOSPV.cjs");
|
|
8
8
|
const require_edit_odp_formula = require("./formula.cjs");
|
|
9
9
|
const require_edit_odp_shape = require("./shape.cjs");
|
|
10
10
|
const require_edit_odp_image = require("./image.cjs");
|
|
@@ -70,12 +70,12 @@ var OdpSlide = class {
|
|
|
70
70
|
}
|
|
71
71
|
addTable(init) {
|
|
72
72
|
const node = this.live();
|
|
73
|
-
const tableElement =
|
|
73
|
+
const tableElement = require_table.buildTable(this.context.pkg, init.table);
|
|
74
74
|
const frameElement = require_edit_odp_shape.buildTableFrame(init.frame, tableElement);
|
|
75
75
|
node.children.push(frameElement);
|
|
76
76
|
return {
|
|
77
77
|
shape: new require_edit_odp_shape.OdpShape(node.children, frameElement, this.context.pkg),
|
|
78
|
-
table: new
|
|
78
|
+
table: new require_table.OdtTable(frameElement.children, tableElement, this.context.pkg)
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
tables() {
|
|
@@ -87,7 +87,7 @@ var OdpSlide = class {
|
|
|
87
87
|
if (tableElement === void 0) continue;
|
|
88
88
|
out.push({
|
|
89
89
|
shape: new require_edit_odp_shape.OdpShape(node.children, child, this.context.pkg),
|
|
90
|
-
table: new
|
|
90
|
+
table: new require_table.OdtTable(child.children, tableElement, this.context.pkg)
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
return out;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-D1z0T9Za.cjs";
|
|
2
2
|
import { t as OdpShape } from "../../shape-Kmmxib5z.cjs";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DWSXN_G2.cjs";
|
|
4
|
-
import {
|
|
4
|
+
import { r as OdtTable, s as TableInit } from "../../table-BK_Ao-Y6.cjs";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
|
6
6
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
7
7
|
//#region src/edit/odp/slide.d.ts
|
package/dist/edit/odp/slide.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-D1z0T9Za.js";
|
|
2
2
|
import { t as OdpShape } from "../../shape-ZAfNsCC5.js";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DWSXN_G2.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as OdtTable, s as TableInit } from "../../table-CxY85YUj.js";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
|
6
6
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
7
7
|
//#region src/edit/odp/slide.d.ts
|
package/dist/edit/odp/slide.js
CHANGED
|
@@ -3,7 +3,7 @@ import { removeChild } from "../../xml/edit.js";
|
|
|
3
3
|
import { appendVectorTo } from "../odg/vector.js";
|
|
4
4
|
import { decodeOdfText as decodeOdfText$1 } from "../../xml/odf-text.js";
|
|
5
5
|
import { buildParagraph } from "../odt/paragraph.js";
|
|
6
|
-
import { OdtTable, buildTable } from "
|
|
6
|
+
import { n as OdtTable, s as buildTable } from "../../table-B5gSMY7w.js";
|
|
7
7
|
import { insertFormulaFrameMedia } from "./formula.js";
|
|
8
8
|
import { OdpShape, buildTableFrame, buildTextBoxFrame } from "./shape.js";
|
|
9
9
|
import { insertImageFrameMedia } from "./image.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { r as OdtTable, s as TableInit } from "../../table-BK_Ao-Y6.cjs";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as OdtTable, s as TableInit } from "../../table-CxY85YUj.js";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
package/dist/edit/odt/editor.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const require_edit_odt_formula = require("./formula.cjs");
|
|
|
9
9
|
const require_edit_odt_paragraph = require("./paragraph.cjs");
|
|
10
10
|
const require_edit_odt_list = require("./list.cjs");
|
|
11
11
|
const require_edit_odt_scaffold = require("./scaffold.cjs");
|
|
12
|
-
const
|
|
12
|
+
const require_table = require("../../table-DqUIOSPV.cjs");
|
|
13
13
|
let odf_js = require("odf.js");
|
|
14
14
|
//#region src/edit/odt/editor.ts
|
|
15
15
|
const CONTENT_PART_PATH = "content.xml";
|
|
@@ -46,10 +46,10 @@ var OdtBodyImpl = class {
|
|
|
46
46
|
return new require_edit_odt_paragraph.OdtParagraph(container, paragraphElement, this.pkg);
|
|
47
47
|
}
|
|
48
48
|
appendTable(init) {
|
|
49
|
-
const tableElement =
|
|
49
|
+
const tableElement = require_table.buildTable(this.pkg, init);
|
|
50
50
|
const container = this.containerChildren();
|
|
51
51
|
container.push(tableElement);
|
|
52
|
-
return new
|
|
52
|
+
return new require_table.OdtTable(container, tableElement, this.pkg);
|
|
53
53
|
}
|
|
54
54
|
appendList() {
|
|
55
55
|
const listElement = require_edit_odt_list.buildList(this.pkg);
|
|
@@ -213,7 +213,7 @@ var OdtEditor = class {
|
|
|
213
213
|
tables() {
|
|
214
214
|
const officeText = findOfficeText(findContentRoot(this.pkg));
|
|
215
215
|
const out = [];
|
|
216
|
-
for (const child of officeText.children) if (child.type === "element" && child.tag === "table:table") out.push(new
|
|
216
|
+
for (const child of officeText.children) if (child.type === "element" && child.tag === "table:table") out.push(new require_table.OdtTable(officeText.children, child, this.pkg));
|
|
217
217
|
return out;
|
|
218
218
|
}
|
|
219
219
|
lists() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-Cewekmhw.cjs";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
3
|
import { t as OdtList } from "../../list-C_UPIZWM.cjs";
|
|
4
|
-
import {
|
|
4
|
+
import { r as OdtTable, s as TableInit } from "../../table-BK_Ao-Y6.cjs";
|
|
5
5
|
import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionDescriptor, LayoutMetadata } from "document-schema.js";
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-Cewekmhw.js";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
3
|
import { t as OdtList } from "../../list-C2GWIe6E.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as OdtTable, s as TableInit } from "../../table-CxY85YUj.js";
|
|
5
5
|
import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionDescriptor, LayoutMetadata } from "document-schema.js";
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
package/dist/edit/odt/editor.js
CHANGED
|
@@ -8,7 +8,7 @@ import { insertFormulaFrameMedia } from "./formula.js";
|
|
|
8
8
|
import { OdtParagraph, buildParagraph } from "./paragraph.js";
|
|
9
9
|
import { OdtList, buildList } from "./list.js";
|
|
10
10
|
import { createEmptyOdtPackage } from "./scaffold.js";
|
|
11
|
-
import { OdtTable, buildTable } from "
|
|
11
|
+
import { n as OdtTable, s as buildTable } from "../../table-B5gSMY7w.js";
|
|
12
12
|
import { decodePackage, encodePackage, odfIndexWrapperTag, readOdfMetadata, writeEmbeddedObject } from "odf.js";
|
|
13
13
|
//#region src/edit/odt/editor.ts
|
|
14
14
|
const CONTENT_PART_PATH = "content.xml";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_table = require("../../table-DqUIOSPV.cjs");
|
|
3
|
+
exports.anchorRegions = require_table.anchorRegions;
|
|
4
|
+
exports.applyMerge = require_table.applyMerge;
|
|
5
|
+
exports.cloneCurrentRowProperties = require_table.cloneCurrentRowProperties;
|
|
6
|
+
exports.currentRowPropertiesElement = require_table.currentRowPropertiesElement;
|
|
7
|
+
exports.describeRegionAnchor = require_table.describeRegionAnchor;
|
|
8
|
+
exports.gridColumnElements = require_table.gridColumnElements;
|
|
9
|
+
exports.individuateGridColumn = require_table.individuateGridColumn;
|
|
10
|
+
exports.internTableRowProperties = require_table.internTableRowProperties;
|
|
11
|
+
exports.isUnchangedAnchor = require_table.isUnchangedAnchor;
|
|
12
|
+
exports.locateGridColumnElement = require_table.locateGridColumnElement;
|
|
13
|
+
exports.placedCells = require_table.placedCells;
|
|
14
|
+
exports.planMerge = require_table.planMerge;
|
|
15
|
+
exports.refuseMerge = require_table.refuseMerge;
|
|
16
|
+
exports.regionContains = require_table.regionContains;
|
|
17
|
+
exports.regionCovers = require_table.regionCovers;
|
|
18
|
+
exports.regionsIntersect = require_table.regionsIntersect;
|
|
19
|
+
exports.resolveOdtGrid = require_table.resolveOdtGrid;
|
|
20
|
+
exports.rowGridColumnCount = require_table.rowGridColumnCount;
|
|
21
|
+
exports.tableRowElements = require_table.tableRowElements;
|
|
22
|
+
exports.xmlElementsEqual = require_table.xmlElementsEqual;
|
|
23
|
+
exports.xmlNodesEqual = require_table.xmlNodesEqual;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { n as PlacedLiveCell, t as LiveTableGrid } from "../../table-grid-Xbaddzz3.cjs";
|
|
2
|
+
import { i as OdtTableCell } from "../../table-BK_Ao-Y6.cjs";
|
|
3
|
+
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
|
+
//#region src/edit/odt/table-grid.d.ts
|
|
5
|
+
declare function gridColumnElements(row: XmlElement): {
|
|
6
|
+
readonly columnIndex: number;
|
|
7
|
+
readonly element: XmlElement;
|
|
8
|
+
}[];
|
|
9
|
+
declare function rowGridColumnCount(row: XmlElement): number;
|
|
10
|
+
declare function locateGridColumnElement(row: XmlElement, columnIndex: number): XmlElement | undefined;
|
|
11
|
+
declare function individuateGridColumn(row: XmlElement, columnIndex: number): XmlElement;
|
|
12
|
+
declare function tableRowElements(table: XmlElement): XmlElement[];
|
|
13
|
+
declare function placedCells(row: XmlElement, pkg: Package): PlacedLiveCell<OdtTableCell>[];
|
|
14
|
+
declare function resolveOdtGrid(table: XmlElement, pkg: Package): LiveTableGrid<OdtTableCell>;
|
|
15
|
+
interface GridRegion {
|
|
16
|
+
readonly row: number;
|
|
17
|
+
readonly column: number;
|
|
18
|
+
readonly rowSpan: number;
|
|
19
|
+
readonly columnSpan: number;
|
|
20
|
+
}
|
|
21
|
+
declare function regionCovers(region: GridRegion, rowIndex: number, columnIndex: number): boolean;
|
|
22
|
+
declare function regionsIntersect(a: GridRegion, b: GridRegion): boolean;
|
|
23
|
+
declare function regionContains(outer: GridRegion, inner: GridRegion): boolean;
|
|
24
|
+
declare function anchorRegions(grid: LiveTableGrid<OdtTableCell>): GridRegion[];
|
|
25
|
+
declare function isUnchangedAnchor(region: GridRegion, target: GridRegion): boolean;
|
|
26
|
+
declare function describeRegionAnchor(region: GridRegion): string;
|
|
27
|
+
interface GridPosition {
|
|
28
|
+
readonly row: XmlElement;
|
|
29
|
+
readonly column: number;
|
|
30
|
+
}
|
|
31
|
+
interface MergeAllowed {
|
|
32
|
+
readonly anchor: GridPosition;
|
|
33
|
+
readonly consumed: readonly GridPosition[];
|
|
34
|
+
readonly refusal?: never;
|
|
35
|
+
}
|
|
36
|
+
interface MergeRefused {
|
|
37
|
+
readonly refusal: {
|
|
38
|
+
readonly rowIndex: number;
|
|
39
|
+
readonly reason: string;
|
|
40
|
+
};
|
|
41
|
+
readonly anchor?: never;
|
|
42
|
+
readonly consumed?: never;
|
|
43
|
+
}
|
|
44
|
+
type MergePlan = MergeAllowed | MergeRefused;
|
|
45
|
+
declare function refuseMerge(rowIndex: number, reason: string): MergeRefused;
|
|
46
|
+
declare function planMerge(table: XmlElement, pkg: Package, target: GridRegion, rows: readonly [XmlElement, ...XmlElement[]]): MergePlan;
|
|
47
|
+
declare function applyMerge(plan: MergeAllowed, target: GridRegion, pkg: Package): OdtTableCell;
|
|
48
|
+
declare function currentRowPropertiesElement(pkg: Package, rowElement: XmlElement): XmlElement | undefined;
|
|
49
|
+
declare function cloneCurrentRowProperties(pkg: Package, rowElement: XmlElement): XmlElement;
|
|
50
|
+
declare function xmlNodesEqual(a: XmlNode, b: XmlNode): boolean;
|
|
51
|
+
declare function xmlElementsEqual(a: XmlElement, b: XmlElement): boolean;
|
|
52
|
+
declare function internTableRowProperties(pkg: Package, properties: XmlElement): string;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { GridPosition, GridRegion, MergeAllowed, MergePlan, MergeRefused, anchorRegions, applyMerge, cloneCurrentRowProperties, currentRowPropertiesElement, describeRegionAnchor, gridColumnElements, individuateGridColumn, internTableRowProperties, isUnchangedAnchor, locateGridColumnElement, placedCells, planMerge, refuseMerge, regionContains, regionCovers, regionsIntersect, resolveOdtGrid, rowGridColumnCount, tableRowElements, xmlElementsEqual, xmlNodesEqual };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { n as PlacedLiveCell, t as LiveTableGrid } from "../../table-grid-Xbaddzz3.js";
|
|
2
|
+
import { i as OdtTableCell } from "../../table-CxY85YUj.js";
|
|
3
|
+
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
4
|
+
//#region src/edit/odt/table-grid.d.ts
|
|
5
|
+
declare function gridColumnElements(row: XmlElement): {
|
|
6
|
+
readonly columnIndex: number;
|
|
7
|
+
readonly element: XmlElement;
|
|
8
|
+
}[];
|
|
9
|
+
declare function rowGridColumnCount(row: XmlElement): number;
|
|
10
|
+
declare function locateGridColumnElement(row: XmlElement, columnIndex: number): XmlElement | undefined;
|
|
11
|
+
declare function individuateGridColumn(row: XmlElement, columnIndex: number): XmlElement;
|
|
12
|
+
declare function tableRowElements(table: XmlElement): XmlElement[];
|
|
13
|
+
declare function placedCells(row: XmlElement, pkg: Package): PlacedLiveCell<OdtTableCell>[];
|
|
14
|
+
declare function resolveOdtGrid(table: XmlElement, pkg: Package): LiveTableGrid<OdtTableCell>;
|
|
15
|
+
interface GridRegion {
|
|
16
|
+
readonly row: number;
|
|
17
|
+
readonly column: number;
|
|
18
|
+
readonly rowSpan: number;
|
|
19
|
+
readonly columnSpan: number;
|
|
20
|
+
}
|
|
21
|
+
declare function regionCovers(region: GridRegion, rowIndex: number, columnIndex: number): boolean;
|
|
22
|
+
declare function regionsIntersect(a: GridRegion, b: GridRegion): boolean;
|
|
23
|
+
declare function regionContains(outer: GridRegion, inner: GridRegion): boolean;
|
|
24
|
+
declare function anchorRegions(grid: LiveTableGrid<OdtTableCell>): GridRegion[];
|
|
25
|
+
declare function isUnchangedAnchor(region: GridRegion, target: GridRegion): boolean;
|
|
26
|
+
declare function describeRegionAnchor(region: GridRegion): string;
|
|
27
|
+
interface GridPosition {
|
|
28
|
+
readonly row: XmlElement;
|
|
29
|
+
readonly column: number;
|
|
30
|
+
}
|
|
31
|
+
interface MergeAllowed {
|
|
32
|
+
readonly anchor: GridPosition;
|
|
33
|
+
readonly consumed: readonly GridPosition[];
|
|
34
|
+
readonly refusal?: never;
|
|
35
|
+
}
|
|
36
|
+
interface MergeRefused {
|
|
37
|
+
readonly refusal: {
|
|
38
|
+
readonly rowIndex: number;
|
|
39
|
+
readonly reason: string;
|
|
40
|
+
};
|
|
41
|
+
readonly anchor?: never;
|
|
42
|
+
readonly consumed?: never;
|
|
43
|
+
}
|
|
44
|
+
type MergePlan = MergeAllowed | MergeRefused;
|
|
45
|
+
declare function refuseMerge(rowIndex: number, reason: string): MergeRefused;
|
|
46
|
+
declare function planMerge(table: XmlElement, pkg: Package, target: GridRegion, rows: readonly [XmlElement, ...XmlElement[]]): MergePlan;
|
|
47
|
+
declare function applyMerge(plan: MergeAllowed, target: GridRegion, pkg: Package): OdtTableCell;
|
|
48
|
+
declare function currentRowPropertiesElement(pkg: Package, rowElement: XmlElement): XmlElement | undefined;
|
|
49
|
+
declare function cloneCurrentRowProperties(pkg: Package, rowElement: XmlElement): XmlElement;
|
|
50
|
+
declare function xmlNodesEqual(a: XmlNode, b: XmlNode): boolean;
|
|
51
|
+
declare function xmlElementsEqual(a: XmlElement, b: XmlElement): boolean;
|
|
52
|
+
declare function internTableRowProperties(pkg: Package, properties: XmlElement): string;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { GridPosition, GridRegion, MergeAllowed, MergePlan, MergeRefused, anchorRegions, applyMerge, cloneCurrentRowProperties, currentRowPropertiesElement, describeRegionAnchor, gridColumnElements, individuateGridColumn, internTableRowProperties, isUnchangedAnchor, locateGridColumnElement, placedCells, planMerge, refuseMerge, regionContains, regionCovers, regionsIntersect, resolveOdtGrid, rowGridColumnCount, tableRowElements, xmlElementsEqual, xmlNodesEqual };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as tableRowElements, C as planMerge, D as regionsIntersect, E as regionCovers, M as xmlNodesEqual, O as resolveOdtGrid, S as placedCells, T as regionContains, _ as gridColumnElements, b as isUnchangedAnchor, f as anchorRegions, g as describeRegionAnchor, h as currentRowPropertiesElement, j as xmlElementsEqual, k as rowGridColumnCount, m as cloneCurrentRowProperties, p as applyMerge, v as individuateGridColumn, w as refuseMerge, x as locateGridColumnElement, y as internTableRowProperties } from "../../table-B5gSMY7w.js";
|
|
2
|
+
export { anchorRegions, applyMerge, cloneCurrentRowProperties, currentRowPropertiesElement, describeRegionAnchor, gridColumnElements, individuateGridColumn, internTableRowProperties, isUnchangedAnchor, locateGridColumnElement, placedCells, planMerge, refuseMerge, regionContains, regionCovers, regionsIntersect, resolveOdtGrid, rowGridColumnCount, tableRowElements, xmlElementsEqual, xmlNodesEqual };
|