documents.js 1.63.0 → 1.65.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/README.md +124 -25
- package/dist/convert/convert.cjs +3 -3
- package/dist/convert/convert.d.cts +5 -2
- package/dist/convert/convert.d.ts +4 -1
- package/dist/convert/convert.js +3 -3
- package/dist/edit/docx/content.d.cts +1 -1
- package/dist/edit/docx/content.d.ts +1 -1
- package/dist/edit/docx/paragraph.d.cts +3 -3
- package/dist/edit/docx/paragraph.d.ts +3 -3
- package/dist/edit/ods/address.cjs +42 -24
- package/dist/edit/ods/address.d.cts +12 -2
- package/dist/edit/ods/address.d.ts +12 -2
- package/dist/edit/ods/address.js +39 -25
- package/dist/edit/ods/column-row.cjs +68 -6
- package/dist/edit/ods/column-row.d.cts +5 -1
- package/dist/edit/ods/column-row.d.ts +5 -1
- package/dist/edit/ods/column-row.js +68 -10
- package/dist/edit/ods/content.cjs +10 -2
- package/dist/edit/ods/content.js +10 -2
- package/dist/edit/ods/floating.cjs +90 -0
- package/dist/edit/ods/floating.d.cts +7 -0
- package/dist/edit/ods/floating.d.ts +7 -0
- package/dist/edit/ods/floating.js +88 -0
- package/dist/edit/ods/print-settings.cjs +158 -2
- package/dist/edit/ods/print-settings.js +159 -3
- package/dist/edit/ods/sheet.cjs +13 -0
- package/dist/edit/ods/sheet.d.cts +5 -1
- package/dist/edit/ods/sheet.d.ts +5 -1
- package/dist/edit/ods/sheet.js +14 -1
- package/dist/edit/odt/content.cjs +8 -4
- package/dist/edit/odt/content.js +8 -4
- package/dist/edit/odt/editor.cjs +7 -0
- package/dist/edit/odt/editor.d.cts +3 -0
- package/dist/edit/odt/editor.d.ts +3 -0
- package/dist/edit/odt/editor.js +7 -0
- package/dist/edit/odt/formula.cjs +19 -0
- package/dist/edit/odt/formula.d.cts +8 -0
- package/dist/edit/odt/formula.d.ts +8 -0
- package/dist/edit/odt/formula.js +17 -0
- package/dist/evaluate-BU5N1Jk1.d.ts +11 -0
- package/dist/evaluate-BhMXY6DM.d.cts +11 -0
- package/dist/firebird/backup.d.cts +1 -1
- package/dist/firebird/backup.d.ts +1 -1
- package/dist/firebird/data.cjs +30 -16
- package/dist/firebird/data.d.cts +3 -2
- package/dist/firebird/data.d.ts +3 -2
- package/dist/firebird/data.js +30 -17
- package/dist/fonts/ooxml.d.cts +1 -1
- package/dist/fonts/registry.d.cts +1 -1
- package/dist/formula-CgydMiTt.d.ts +10 -0
- package/dist/formula-CiwPw8nY.d.cts +10 -0
- package/dist/hsqldb/binary-script.d.cts +1 -1
- package/dist/hsqldb/binary-script.d.ts +1 -1
- package/dist/hsqldb/cache.d.cts +1 -1
- package/dist/hsqldb/cache.d.ts +1 -1
- package/dist/hsqldb/rowformat.cjs +22 -13
- package/dist/hsqldb/rowformat.js +22 -13
- package/dist/hsqldb/script.d.cts +1 -18
- package/dist/hsqldb/script.d.ts +1 -18
- package/dist/index.cjs +56 -0
- package/dist/index.d.cts +24 -10
- package/dist/index.d.ts +23 -9
- package/dist/index.js +15 -2
- package/dist/layout/sheets.cjs +30 -24
- package/dist/layout/sheets.js +31 -25
- package/dist/layout/slides.cjs +6 -4
- package/dist/layout/slides.js +7 -5
- package/dist/lexer-DGPWx_f2.d.cts +42 -0
- package/dist/lexer-DGPWx_f2.d.ts +42 -0
- package/dist/mathml/compose.cjs +8 -0
- package/dist/mathml/compose.js +8 -0
- package/dist/mathml/layout-types.d.cts +14 -2
- package/dist/mathml/layout-types.d.ts +14 -2
- package/dist/mathml/layout.cjs +62 -3
- package/dist/mathml/layout.d.cts +1 -1
- package/dist/mathml/layout.d.ts +1 -1
- package/dist/mathml/layout.js +62 -3
- package/dist/mathml/metrics.d.cts +17 -1
- package/dist/mathml/metrics.d.ts +17 -1
- package/dist/mathml/operators.cjs +1 -1
- package/dist/mathml/operators.js +1 -1
- package/dist/mathml/variant.d.cts +1 -6
- package/dist/mathml/variant.d.ts +1 -6
- package/dist/odb/csv.d.cts +1 -1
- package/dist/odb/csv.d.ts +1 -1
- package/dist/odb/formula/definition.cjs +49 -0
- package/dist/odb/formula/definition.d.cts +8 -0
- package/dist/odb/formula/definition.d.ts +8 -0
- package/dist/odb/formula/definition.js +46 -0
- package/dist/odb/formula/errors.cjs +47 -0
- package/dist/odb/formula/errors.d.cts +21 -0
- package/dist/odb/formula/errors.d.ts +21 -0
- package/dist/odb/formula/errors.js +43 -0
- package/dist/odb/formula/evaluate.cjs +283 -0
- package/dist/odb/formula/evaluate.d.cts +43 -0
- package/dist/odb/formula/evaluate.d.ts +43 -0
- package/dist/odb/formula/evaluate.js +281 -0
- package/dist/odb/formula/parser.cjs +198 -0
- package/dist/odb/formula/parser.d.cts +29 -0
- package/dist/odb/formula/parser.d.ts +29 -0
- package/dist/odb/formula/parser.js +197 -0
- package/dist/odb/read.d.cts +1 -1
- package/dist/odb/read.d.ts +1 -1
- package/dist/odb/report/content.cjs +27 -0
- package/dist/odb/report/content.d.cts +14 -0
- package/dist/odb/report/content.d.ts +14 -0
- package/dist/odb/report/content.js +25 -0
- package/dist/odb/report/render.cjs +106 -0
- package/dist/odb/report/render.d.cts +7 -0
- package/dist/odb/report/render.d.ts +7 -0
- package/dist/odb/report/render.js +106 -0
- package/dist/odb/report/source.cjs +45 -0
- package/dist/odb/report/source.d.cts +14 -0
- package/dist/odb/report/source.d.ts +14 -0
- package/dist/odb/report/source.js +42 -0
- package/dist/odb/spreadsheet.d.cts +1 -1
- package/dist/odb/spreadsheet.d.ts +1 -1
- package/dist/odb/sql/errors.cjs +38 -0
- package/dist/odb/sql/errors.d.cts +17 -0
- package/dist/odb/sql/errors.d.ts +17 -0
- package/dist/odb/sql/errors.js +35 -0
- package/dist/odb/sql/evaluate.cjs +312 -0
- package/dist/odb/sql/evaluate.d.cts +2 -0
- package/dist/odb/sql/evaluate.d.ts +2 -0
- package/dist/odb/sql/evaluate.js +311 -0
- package/dist/odb/sql/lexer.cjs +282 -0
- package/dist/odb/sql/lexer.d.cts +2 -0
- package/dist/odb/sql/lexer.d.ts +2 -0
- package/dist/odb/sql/lexer.js +281 -0
- package/dist/odb/sql/parser.cjs +479 -0
- package/dist/odb/sql/parser.d.cts +2 -0
- package/dist/odb/sql/parser.d.ts +2 -0
- package/dist/odb/sql/parser.js +478 -0
- package/dist/odb/values.cjs +75 -0
- package/dist/odb/values.d.cts +2 -0
- package/dist/odb/values.d.ts +2 -0
- package/dist/odb/values.js +69 -0
- package/dist/odf/odt/read.cjs +43 -21
- package/dist/odf/odt/read.js +43 -21
- package/dist/odf-package/formula.cjs +59 -0
- package/dist/odf-package/formula.d.cts +11 -0
- package/dist/odf-package/formula.d.ts +11 -0
- package/dist/odf-package/formula.js +58 -0
- package/dist/odf-package/manifest.cjs +29 -0
- package/dist/odf-package/manifest.d.cts +5 -2
- package/dist/odf-package/manifest.d.ts +5 -2
- package/dist/odf-package/manifest.js +30 -2
- package/dist/odf-package/media.cjs +2 -1
- package/dist/odf-package/media.js +2 -2
- package/dist/omml/read.cjs +265 -0
- package/dist/omml/read.d.cts +12 -0
- package/dist/omml/read.d.ts +12 -0
- package/dist/omml/read.js +263 -0
- package/dist/omml/shared.cjs +67 -0
- package/dist/omml/shared.d.cts +2 -0
- package/dist/omml/shared.d.ts +2 -0
- package/dist/omml/shared.js +64 -0
- package/dist/omml/write.cjs +3 -51
- package/dist/omml/write.d.cts +2 -2
- package/dist/omml/write.d.ts +2 -2
- package/dist/omml/write.js +1 -49
- package/dist/ooxml/docx/extras.cjs +15 -0
- package/dist/ooxml/docx/extras.d.cts +12 -0
- package/dist/ooxml/docx/extras.d.ts +12 -0
- package/dist/ooxml/docx/extras.js +14 -0
- package/dist/ooxml/docx/formula.cjs +109 -0
- package/dist/ooxml/docx/formula.d.cts +2 -0
- package/dist/ooxml/docx/formula.d.ts +2 -0
- package/dist/ooxml/docx/formula.js +108 -0
- package/dist/ooxml/docx/read.cjs +10 -2
- package/dist/ooxml/docx/read.d.cts +6 -2
- package/dist/ooxml/docx/read.d.ts +6 -2
- package/dist/ooxml/docx/read.js +11 -3
- package/dist/parser-B9vC1T6T.d.cts +101 -0
- package/dist/parser-DQSgYJzQ.d.ts +101 -0
- package/dist/{registry-CtPhMD0f.d.cts → registry-lqJej0Jr.d.cts} +1 -1
- package/dist/script-DsGGIzGU.d.cts +19 -0
- package/dist/script-DsGGIzGU.d.ts +19 -0
- package/dist/shared-DLZ3IQUl.d.cts +15 -0
- package/dist/shared-DUOzjwcL.d.ts +15 -0
- package/dist/values-BetetbaH.d.cts +23 -0
- package/dist/values-BetetbaH.d.ts +23 -0
- package/dist/variant-BMrebjMw.d.cts +7 -0
- package/dist/variant-BMrebjMw.d.ts +7 -0
- package/dist/{write-DuyfnbL_.d.cts → write-BQ6SK8r8.d.cts} +2 -6
- package/dist/{write-Zqwx6pka.d.ts → write-THs7ipBq.d.ts} +2 -6
- package/package.json +2 -2
package/dist/firebird/data.js
CHANGED
|
@@ -88,32 +88,45 @@ function blobCellValue(field, bytes) {
|
|
|
88
88
|
function storedFieldsOf(fields) {
|
|
89
89
|
return fields.filter((field) => !field.computed);
|
|
90
90
|
}
|
|
91
|
+
function exactDecimalDigits(unscaled, decimalScale) {
|
|
92
|
+
const isNegative = unscaled < 0n;
|
|
93
|
+
const magnitudeDigits = (isNegative ? -unscaled : unscaled).toString();
|
|
94
|
+
const sign = isNegative ? "-" : "";
|
|
95
|
+
if (decimalScale <= 0) return `${sign}${magnitudeDigits}${"0".repeat(-decimalScale)}`;
|
|
96
|
+
const padded = magnitudeDigits.padStart(decimalScale + 1, "0");
|
|
97
|
+
return `${sign}${padded.slice(0, padded.length - decimalScale)}.${padded.slice(padded.length - decimalScale)}`;
|
|
98
|
+
}
|
|
99
|
+
function trimTrailingFractionZeros(digits) {
|
|
100
|
+
if (!digits.includes(".")) return digits;
|
|
101
|
+
const trimmed = digits.replace(/0+$/, "");
|
|
102
|
+
return trimmed.endsWith(".") ? trimmed.slice(0, -1) : trimmed;
|
|
103
|
+
}
|
|
104
|
+
function numericCellValue(unscaled, decimalScale) {
|
|
105
|
+
const exact = trimTrailingFractionZeros(exactDecimalDigits(unscaled, decimalScale));
|
|
106
|
+
const value = Number(exact);
|
|
107
|
+
return String(value) === exact ? {
|
|
108
|
+
kind: "number",
|
|
109
|
+
value
|
|
110
|
+
} : {
|
|
111
|
+
kind: "number",
|
|
112
|
+
value,
|
|
113
|
+
exactValue: exact
|
|
114
|
+
};
|
|
115
|
+
}
|
|
91
116
|
function decodeRowValues(fields, payload) {
|
|
92
117
|
const storedFields = storedFieldsOf(fields);
|
|
93
118
|
const xdr = new XdrReader(payload);
|
|
94
119
|
const rawValues = [];
|
|
95
120
|
for (const field of storedFields) switch (field.physicalType) {
|
|
96
121
|
case "short":
|
|
97
|
-
rawValues.push(
|
|
98
|
-
kind: "number",
|
|
99
|
-
value: field.scale === 0 ? xdr.readInt16() : xdr.readInt16() * 10 ** field.scale
|
|
100
|
-
});
|
|
122
|
+
rawValues.push(numericCellValue(BigInt(xdr.readInt16()), -field.scale));
|
|
101
123
|
break;
|
|
102
124
|
case "long":
|
|
103
|
-
rawValues.push(
|
|
104
|
-
kind: "number",
|
|
105
|
-
value: field.scale === 0 ? xdr.readInt32() : xdr.readInt32() * 10 ** field.scale
|
|
106
|
-
});
|
|
125
|
+
rawValues.push(numericCellValue(BigInt(xdr.readInt32()), -field.scale));
|
|
107
126
|
break;
|
|
108
|
-
case "int64":
|
|
109
|
-
|
|
110
|
-
const scaled = field.scale === 0 ? Number(raw) : Number(raw) * 10 ** field.scale;
|
|
111
|
-
rawValues.push({
|
|
112
|
-
kind: "number",
|
|
113
|
-
value: scaled
|
|
114
|
-
});
|
|
127
|
+
case "int64":
|
|
128
|
+
rawValues.push(numericCellValue(xdr.readInt64(), -field.scale));
|
|
115
129
|
break;
|
|
116
|
-
}
|
|
117
130
|
case "real":
|
|
118
131
|
rawValues.push({
|
|
119
132
|
kind: "number",
|
|
@@ -279,4 +292,4 @@ function readRelationData(reader, schema, compressed) {
|
|
|
279
292
|
};
|
|
280
293
|
}
|
|
281
294
|
//#endregion
|
|
282
|
-
export { FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, readRelationData };
|
|
295
|
+
export { FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, decodeRowValues, readRelationData };
|
package/dist/fonts/ooxml.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "../registry-
|
|
1
|
+
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "../registry-lqJej0Jr.cjs";
|
|
2
2
|
export { DocumentFontRegistryOptions, FontSourcePackage, createDocumentFontRegistry, extractSourceFonts };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-DUOzjwcL.js";
|
|
2
|
+
import { XmlNode } from "ooxml.js";
|
|
3
|
+
import { ContentSection } from "document-schema.js";
|
|
4
|
+
//#region src/ooxml/docx/formula.d.ts
|
|
5
|
+
type OmmlDiagnosticSink = (diagnostic: OmmlDiagnostic, context: {
|
|
6
|
+
readonly sourcePath?: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
declare function spliceDocxFormulas(sections: readonly ContentSection[], bodyChildren: readonly XmlNode[], onMathDiagnostic?: OmmlDiagnosticSink): ContentSection[];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { spliceDocxFormulas as n, OmmlDiagnosticSink as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-DLZ3IQUl.cjs";
|
|
2
|
+
import { ContentSection } from "document-schema.js";
|
|
3
|
+
import { XmlNode } from "ooxml.js";
|
|
4
|
+
//#region src/ooxml/docx/formula.d.ts
|
|
5
|
+
type OmmlDiagnosticSink = (diagnostic: OmmlDiagnostic, context: {
|
|
6
|
+
readonly sourcePath?: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
declare function spliceDocxFormulas(sections: readonly ContentSection[], bodyChildren: readonly XmlNode[], onMathDiagnostic?: OmmlDiagnosticSink): ContentSection[];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { spliceDocxFormulas as n, OmmlDiagnosticSink as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.cjs";
|
|
2
|
-
import { HsqldbTable } from "
|
|
2
|
+
import { r as HsqldbTable } from "../script-DsGGIzGU.cjs";
|
|
3
3
|
//#region src/hsqldb/binary-script.d.ts
|
|
4
4
|
declare class HsqldbBinaryScriptParseError extends Error {
|
|
5
5
|
readonly offset: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.js";
|
|
2
|
-
import { HsqldbTable } from "
|
|
2
|
+
import { r as HsqldbTable } from "../script-DsGGIzGU.js";
|
|
3
3
|
//#region src/hsqldb/binary-script.d.ts
|
|
4
4
|
declare class HsqldbBinaryScriptParseError extends Error {
|
|
5
5
|
readonly offset: number;
|
package/dist/hsqldb/cache.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { r as HsqldbTable, t as HsqldbColumn } from "../script-DsGGIzGU.cjs";
|
|
3
3
|
import { ContentCellValue } from "document-schema.js";
|
|
4
4
|
//#region src/hsqldb/cache.d.ts
|
|
5
5
|
interface HsqldbCacheFileInfo {
|
package/dist/hsqldb/cache.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as HsqldbTable, t as HsqldbColumn } from "../script-DsGGIzGU.js";
|
|
3
3
|
import { ContentCellValue } from "document-schema.js";
|
|
4
4
|
//#region src/hsqldb/cache.d.ts
|
|
5
5
|
interface HsqldbCacheFileInfo {
|
|
@@ -124,15 +124,30 @@ function signedBigIntFromBytes(bytes) {
|
|
|
124
124
|
const firstByte = bytes[0];
|
|
125
125
|
return firstByte !== void 0 && (firstByte & 128) !== 0 ? magnitude - (1n << BigInt(8 * bytes.length)) : magnitude;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function exactDecimalDigits(unscaled, scale) {
|
|
128
128
|
const isNegative = unscaled < 0n;
|
|
129
129
|
const magnitudeDigits = (isNegative ? -unscaled : unscaled).toString();
|
|
130
130
|
const sign = isNegative ? "-" : "";
|
|
131
|
-
if (scale <= 0) return
|
|
131
|
+
if (scale <= 0) return `${sign}${magnitudeDigits}${"0".repeat(-scale)}`;
|
|
132
132
|
const padded = magnitudeDigits.padStart(scale + 1, "0");
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
return `${sign}${padded.slice(0, padded.length - scale)}.${padded.slice(padded.length - scale)}`;
|
|
134
|
+
}
|
|
135
|
+
function trimTrailingFractionZeros(digits) {
|
|
136
|
+
if (!digits.includes(".")) return digits;
|
|
137
|
+
const trimmed = digits.replace(/0+$/, "");
|
|
138
|
+
return trimmed.endsWith(".") ? trimmed.slice(0, -1) : trimmed;
|
|
139
|
+
}
|
|
140
|
+
function numericCellValue(unscaled, scale) {
|
|
141
|
+
const exact = trimTrailingFractionZeros(exactDecimalDigits(unscaled, scale));
|
|
142
|
+
const value = Number(exact);
|
|
143
|
+
return String(value) === exact ? {
|
|
144
|
+
kind: "number",
|
|
145
|
+
value
|
|
146
|
+
} : {
|
|
147
|
+
kind: "number",
|
|
148
|
+
value,
|
|
149
|
+
exactValue: exact
|
|
150
|
+
};
|
|
136
151
|
}
|
|
137
152
|
function pad2(n) {
|
|
138
153
|
return String(n).padStart(2, "0");
|
|
@@ -219,10 +234,7 @@ function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
|
219
234
|
kind: "number",
|
|
220
235
|
value: cursor.readInt32()
|
|
221
236
|
};
|
|
222
|
-
case -5: return
|
|
223
|
-
kind: "number",
|
|
224
|
-
value: Number(cursor.readBigInt64())
|
|
225
|
-
};
|
|
237
|
+
case -5: return numericCellValue(cursor.readBigInt64(), 0);
|
|
226
238
|
case 6:
|
|
227
239
|
case 7:
|
|
228
240
|
case 8: return {
|
|
@@ -234,10 +246,7 @@ function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
|
234
246
|
const byteLength = cursor.readInt32();
|
|
235
247
|
const magnitudeBytes = cursor.readBytes(byteLength);
|
|
236
248
|
const scale = cursor.readInt32();
|
|
237
|
-
return
|
|
238
|
-
kind: "number",
|
|
239
|
-
value: decimalNumberFromUnscaled(signedBigIntFromBytes(magnitudeBytes), scale)
|
|
240
|
-
};
|
|
249
|
+
return numericCellValue(signedBigIntFromBytes(magnitudeBytes), scale);
|
|
241
250
|
}
|
|
242
251
|
case 16: return {
|
|
243
252
|
kind: "boolean",
|
package/dist/hsqldb/rowformat.js
CHANGED
|
@@ -123,15 +123,30 @@ function signedBigIntFromBytes(bytes) {
|
|
|
123
123
|
const firstByte = bytes[0];
|
|
124
124
|
return firstByte !== void 0 && (firstByte & 128) !== 0 ? magnitude - (1n << BigInt(8 * bytes.length)) : magnitude;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function exactDecimalDigits(unscaled, scale) {
|
|
127
127
|
const isNegative = unscaled < 0n;
|
|
128
128
|
const magnitudeDigits = (isNegative ? -unscaled : unscaled).toString();
|
|
129
129
|
const sign = isNegative ? "-" : "";
|
|
130
|
-
if (scale <= 0) return
|
|
130
|
+
if (scale <= 0) return `${sign}${magnitudeDigits}${"0".repeat(-scale)}`;
|
|
131
131
|
const padded = magnitudeDigits.padStart(scale + 1, "0");
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
return `${sign}${padded.slice(0, padded.length - scale)}.${padded.slice(padded.length - scale)}`;
|
|
133
|
+
}
|
|
134
|
+
function trimTrailingFractionZeros(digits) {
|
|
135
|
+
if (!digits.includes(".")) return digits;
|
|
136
|
+
const trimmed = digits.replace(/0+$/, "");
|
|
137
|
+
return trimmed.endsWith(".") ? trimmed.slice(0, -1) : trimmed;
|
|
138
|
+
}
|
|
139
|
+
function numericCellValue(unscaled, scale) {
|
|
140
|
+
const exact = trimTrailingFractionZeros(exactDecimalDigits(unscaled, scale));
|
|
141
|
+
const value = Number(exact);
|
|
142
|
+
return String(value) === exact ? {
|
|
143
|
+
kind: "number",
|
|
144
|
+
value
|
|
145
|
+
} : {
|
|
146
|
+
kind: "number",
|
|
147
|
+
value,
|
|
148
|
+
exactValue: exact
|
|
149
|
+
};
|
|
135
150
|
}
|
|
136
151
|
function pad2(n) {
|
|
137
152
|
return String(n).padStart(2, "0");
|
|
@@ -218,10 +233,7 @@ function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
|
218
233
|
kind: "number",
|
|
219
234
|
value: cursor.readInt32()
|
|
220
235
|
};
|
|
221
|
-
case -5: return
|
|
222
|
-
kind: "number",
|
|
223
|
-
value: Number(cursor.readBigInt64())
|
|
224
|
-
};
|
|
236
|
+
case -5: return numericCellValue(cursor.readBigInt64(), 0);
|
|
225
237
|
case 6:
|
|
226
238
|
case 7:
|
|
227
239
|
case 8: return {
|
|
@@ -233,10 +245,7 @@ function readHsqldbColumnValue(cursor, typeCode, options) {
|
|
|
233
245
|
const byteLength = cursor.readInt32();
|
|
234
246
|
const magnitudeBytes = cursor.readBytes(byteLength);
|
|
235
247
|
const scale = cursor.readInt32();
|
|
236
|
-
return
|
|
237
|
-
kind: "number",
|
|
238
|
-
value: decimalNumberFromUnscaled(signedBigIntFromBytes(magnitudeBytes), scale)
|
|
239
|
-
};
|
|
248
|
+
return numericCellValue(signedBigIntFromBytes(magnitudeBytes), scale);
|
|
240
249
|
}
|
|
241
250
|
case 16: return {
|
|
242
251
|
kind: "boolean",
|
package/dist/hsqldb/script.d.cts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/hsqldb/script.d.ts
|
|
3
|
-
declare class HsqldbScriptParseError extends Error {
|
|
4
|
-
readonly statement: string;
|
|
5
|
-
constructor(message: string, statement: string);
|
|
6
|
-
}
|
|
7
|
-
interface HsqldbColumn {
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly type: string;
|
|
10
|
-
}
|
|
11
|
-
interface HsqldbTable {
|
|
12
|
-
readonly tableName: string;
|
|
13
|
-
readonly columns: readonly HsqldbColumn[];
|
|
14
|
-
readonly rows: readonly (readonly ContentCellValue[])[];
|
|
15
|
-
}
|
|
16
|
-
declare function displayTextFor(value: ContentCellValue): string;
|
|
17
|
-
declare function parseHsqldbScript(bytes: Uint8Array): HsqldbTable[];
|
|
18
|
-
//#endregion
|
|
1
|
+
import { a as parseHsqldbScript, i as displayTextFor, n as HsqldbScriptParseError, r as HsqldbTable, t as HsqldbColumn } from "../script-DsGGIzGU.cjs";
|
|
19
2
|
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, displayTextFor, parseHsqldbScript };
|
package/dist/hsqldb/script.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/hsqldb/script.d.ts
|
|
3
|
-
declare class HsqldbScriptParseError extends Error {
|
|
4
|
-
readonly statement: string;
|
|
5
|
-
constructor(message: string, statement: string);
|
|
6
|
-
}
|
|
7
|
-
interface HsqldbColumn {
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly type: string;
|
|
10
|
-
}
|
|
11
|
-
interface HsqldbTable {
|
|
12
|
-
readonly tableName: string;
|
|
13
|
-
readonly columns: readonly HsqldbColumn[];
|
|
14
|
-
readonly rows: readonly (readonly ContentCellValue[])[];
|
|
15
|
-
}
|
|
16
|
-
declare function displayTextFor(value: ContentCellValue): string;
|
|
17
|
-
declare function parseHsqldbScript(bytes: Uint8Array): HsqldbTable[];
|
|
18
|
-
//#endregion
|
|
1
|
+
import { a as parseHsqldbScript, i as displayTextFor, n as HsqldbScriptParseError, r as HsqldbTable, t as HsqldbColumn } from "../script-DsGGIzGU.js";
|
|
19
2
|
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, displayTextFor, parseHsqldbScript };
|
package/dist/index.cjs
CHANGED
|
@@ -40,7 +40,9 @@ const require_fonts_odf = require("./fonts/odf.cjs");
|
|
|
40
40
|
const require_fonts_ooxml = require("./fonts/ooxml.cjs");
|
|
41
41
|
const require_fonts_registry = require("./fonts/registry.cjs");
|
|
42
42
|
const require_mathml_layout = require("./mathml/layout.cjs");
|
|
43
|
+
const require_omml_read = require("./omml/read.cjs");
|
|
43
44
|
const require_ooxml_docx_read = require("./ooxml/docx/read.cjs");
|
|
45
|
+
const require_ooxml_docx_extras = require("./ooxml/docx/extras.cjs");
|
|
44
46
|
const require_ooxml_pptx_read = require("./ooxml/pptx/read.cjs");
|
|
45
47
|
const require_odf_formula_read = require("./odf/formula/read.cjs");
|
|
46
48
|
const require_odf_odt_read = require("./odf/odt/read.cjs");
|
|
@@ -73,6 +75,17 @@ const require_odb_spreadsheet = require("./odb/spreadsheet.cjs");
|
|
|
73
75
|
const require_convert_convert = require("./convert/convert.cjs");
|
|
74
76
|
const require_convert_codec = require("./convert/codec.cjs");
|
|
75
77
|
const require_odb_components = require("./odb/components.cjs");
|
|
78
|
+
const require_odb_sql_errors = require("./odb/sql/errors.cjs");
|
|
79
|
+
const require_odb_sql_evaluate = require("./odb/sql/evaluate.cjs");
|
|
80
|
+
const require_odb_sql_lexer = require("./odb/sql/lexer.cjs");
|
|
81
|
+
const require_odb_sql_parser = require("./odb/sql/parser.cjs");
|
|
82
|
+
const require_odb_formula_errors = require("./odb/formula/errors.cjs");
|
|
83
|
+
const require_odb_formula_parser = require("./odb/formula/parser.cjs");
|
|
84
|
+
const require_odb_formula_evaluate = require("./odb/formula/evaluate.cjs");
|
|
85
|
+
const require_odb_formula_definition = require("./odb/formula/definition.cjs");
|
|
86
|
+
const require_odb_report_render = require("./odb/report/render.cjs");
|
|
87
|
+
const require_odb_report_source = require("./odb/report/source.cjs");
|
|
88
|
+
const require_odb_report_content = require("./odb/report/content.cjs");
|
|
76
89
|
const require_convert_local = require("./convert/local.cjs");
|
|
77
90
|
const require_ports_clock = require("./ports/clock.cjs");
|
|
78
91
|
let ooxml_js = require("ooxml.js");
|
|
@@ -316,9 +329,18 @@ exports.FirebirdDataParseError = require_firebird_data.FirebirdDataParseError;
|
|
|
316
329
|
exports.FirebirdSchemaParseError = require_firebird_schema.FirebirdSchemaParseError;
|
|
317
330
|
exports.FirebirdUnsupportedFieldTypeError = require_firebird_blr_types.FirebirdUnsupportedFieldTypeError;
|
|
318
331
|
exports.FontDeobfuscationError = require_fonts_obfuscation.FontDeobfuscationError;
|
|
332
|
+
Object.defineProperty(exports, "FootnoteSchema", {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function() {
|
|
335
|
+
return ooxml_js.FootnoteSchema;
|
|
336
|
+
}
|
|
337
|
+
});
|
|
319
338
|
exports.HsqldbBinaryScriptParseError = require_hsqldb_binary_script.HsqldbBinaryScriptParseError;
|
|
320
339
|
exports.HsqldbRowFormatError = require_hsqldb_rowformat.HsqldbRowFormatError;
|
|
321
340
|
exports.HsqldbScriptParseError = require_hsqldb_script.HsqldbScriptParseError;
|
|
341
|
+
exports.HsqldbSqlEvaluationError = require_odb_sql_errors.HsqldbSqlEvaluationError;
|
|
342
|
+
exports.HsqldbSqlParseError = require_odb_sql_errors.HsqldbSqlParseError;
|
|
343
|
+
exports.HsqldbSqlUnsupportedError = require_odb_sql_errors.HsqldbSqlUnsupportedError;
|
|
322
344
|
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
323
345
|
enumerable: true,
|
|
324
346
|
get: function() {
|
|
@@ -338,7 +360,21 @@ Object.defineProperty(exports, "NOOP_DIAGNOSTIC_SINK", {
|
|
|
338
360
|
return pdf_codec.NOOP_DIAGNOSTIC_SINK;
|
|
339
361
|
}
|
|
340
362
|
});
|
|
363
|
+
Object.defineProperty(exports, "NumberingDefinitionSchema", {
|
|
364
|
+
enumerable: true,
|
|
365
|
+
get: function() {
|
|
366
|
+
return ooxml_js.NumberingDefinitionSchema;
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
Object.defineProperty(exports, "NumberingLevelSchema", {
|
|
370
|
+
enumerable: true,
|
|
371
|
+
get: function() {
|
|
372
|
+
return ooxml_js.NumberingLevelSchema;
|
|
373
|
+
}
|
|
374
|
+
});
|
|
341
375
|
exports.OdbNoEmbeddedDataSourceError = require_odb_read.OdbNoEmbeddedDataSourceError;
|
|
376
|
+
exports.OdbReportDataSourceError = require_odb_report_source.OdbReportDataSourceError;
|
|
377
|
+
exports.OdbReportNotSpecifiedError = require_odb_report_content.OdbReportNotSpecifiedError;
|
|
342
378
|
exports.OdbTableNotFoundError = require_odb_csv.OdbTableNotFoundError;
|
|
343
379
|
exports.OdbTableNotSpecifiedError = require_odb_csv.OdbTableNotSpecifiedError;
|
|
344
380
|
exports.OdbUnsupportedFormatError = require_odb_read.OdbUnsupportedFormatError;
|
|
@@ -412,6 +448,10 @@ exports.PptxSlide = require_edit_pptx_slide.PptxSlide;
|
|
|
412
448
|
exports.PptxTable = require_edit_pptx_table.PptxTable;
|
|
413
449
|
exports.PptxTableCell = require_edit_pptx_table.PptxTableCell;
|
|
414
450
|
exports.PptxTableRow = require_edit_pptx_table.PptxTableRow;
|
|
451
|
+
exports.RptFormulaEvaluationError = require_odb_formula_errors.RptFormulaEvaluationError;
|
|
452
|
+
exports.RptFormulaParseError = require_odb_formula_errors.RptFormulaParseError;
|
|
453
|
+
exports.RptFormulaUnsupportedError = require_odb_formula_errors.RptFormulaUnsupportedError;
|
|
454
|
+
exports.RptReportStructureError = require_odb_formula_errors.RptReportStructureError;
|
|
415
455
|
Object.defineProperty(exports, "SLIDE_SIZE_STANDARD", {
|
|
416
456
|
enumerable: true,
|
|
417
457
|
get: function() {
|
|
@@ -521,6 +561,7 @@ Object.defineProperty(exports, "childrenWithTag", {
|
|
|
521
561
|
return ooxml_js.childrenWithTag;
|
|
522
562
|
}
|
|
523
563
|
});
|
|
564
|
+
exports.collectOfficeMathElements = require_omml_read.collectOfficeMathElements;
|
|
524
565
|
Object.defineProperty(exports, "compactCodec", {
|
|
525
566
|
enumerable: true,
|
|
526
567
|
get: function() {
|
|
@@ -636,6 +677,8 @@ Object.defineProperty(exports, "encodePackage", {
|
|
|
636
677
|
return ooxml_js.encodePackage;
|
|
637
678
|
}
|
|
638
679
|
});
|
|
680
|
+
exports.evaluateRptBandOutsideData = require_odb_formula_evaluate.evaluateRptBandOutsideData;
|
|
681
|
+
exports.evaluateSelect = require_odb_sql_evaluate.evaluateSelect;
|
|
639
682
|
exports.extractOdfEmbeddedFonts = require_fonts_odf.extractOdfEmbeddedFonts;
|
|
640
683
|
exports.extractOoxmlEmbeddedFonts = require_fonts_ooxml.extractOoxmlEmbeddedFonts;
|
|
641
684
|
exports.extractSourceFonts = require_fonts_registry.extractSourceFonts;
|
|
@@ -697,6 +740,8 @@ exports.markdownToDocx = require_convert_convert.markdownToDocx;
|
|
|
697
740
|
exports.markdownToOdt = require_convert_convert.markdownToOdt;
|
|
698
741
|
exports.markdownToPdf = require_convert_convert.markdownToPdf;
|
|
699
742
|
exports.mathMlTextContent = require_mathml_nodes.textContent;
|
|
743
|
+
exports.odbReportCommandSql = require_odb_report_source.odbReportCommandSql;
|
|
744
|
+
exports.odbReportGroupChain = require_odb_formula_definition.odbReportGroupChain;
|
|
700
745
|
exports.odbTablesToSpreadsheetDocument = require_odb_spreadsheet.odbTablesToSpreadsheetDocument;
|
|
701
746
|
exports.odbToCsv = require_convert_convert.odbToCsv;
|
|
702
747
|
exports.odbToXlsx = require_convert_convert.odbToXlsx;
|
|
@@ -738,6 +783,8 @@ Object.defineProperty(exports, "parsePackage", {
|
|
|
738
783
|
return ooxml_js.parsePackage;
|
|
739
784
|
}
|
|
740
785
|
});
|
|
786
|
+
exports.parseRptFormula = require_odb_formula_parser.parseRptFormula;
|
|
787
|
+
exports.parseSelect = require_odb_sql_parser.parseSelect;
|
|
741
788
|
Object.defineProperty(exports, "parseXml", {
|
|
742
789
|
enumerable: true,
|
|
743
790
|
get: function() {
|
|
@@ -762,6 +809,7 @@ exports.pptxPdfCodec = require_convert_codec.pptxPdfCodec;
|
|
|
762
809
|
exports.pptxToOdp = require_convert_convert.pptxToOdp;
|
|
763
810
|
exports.pptxToPdf = require_convert_convert.pptxToPdf;
|
|
764
811
|
exports.readDocxContent = require_ooxml_docx_read.readDocxContent;
|
|
812
|
+
exports.readDocxExtras = require_ooxml_docx_extras.readDocxExtras;
|
|
765
813
|
exports.readFirebirdBackup = require_firebird_backup.readFirebirdBackup;
|
|
766
814
|
exports.readMarkdownContent = require_markdown_read.readMarkdownContent;
|
|
767
815
|
Object.defineProperty(exports, "readOdbForm", {
|
|
@@ -783,6 +831,7 @@ Object.defineProperty(exports, "readOdbReport", {
|
|
|
783
831
|
return odf_js.readOdbReport;
|
|
784
832
|
}
|
|
785
833
|
});
|
|
834
|
+
exports.readOdbReportContent = require_odb_report_content.readOdbReportContent;
|
|
786
835
|
exports.readOdbReports = require_odb_components.readOdbReports;
|
|
787
836
|
exports.readOdbTables = require_odb_read.readOdbTables;
|
|
788
837
|
exports.readOdfEmbeddedFormula = require_odf_formula_read.readOdfEmbeddedFormula;
|
|
@@ -791,6 +840,7 @@ exports.readOdgContent = require_odf_odg_read.readOdgContent;
|
|
|
791
840
|
exports.readOdpContent = require_odf_odp_read.readOdpContent;
|
|
792
841
|
exports.readOdsContent = require_odf_ods_read.readOdsContent;
|
|
793
842
|
exports.readOdtContent = require_odf_odt_read.readOdtContent;
|
|
843
|
+
exports.readOfficeMath = require_omml_read.readOfficeMath;
|
|
794
844
|
Object.defineProperty(exports, "readPdf", {
|
|
795
845
|
enumerable: true,
|
|
796
846
|
get: function() {
|
|
@@ -802,12 +852,14 @@ exports.reconstructDrawing = require_layout_reconstruct.reconstructDrawing;
|
|
|
802
852
|
exports.reconstructPresentation = require_layout_reconstruct.reconstructPresentation;
|
|
803
853
|
exports.reconstructSpreadsheet = require_layout_reconstruct.reconstructSpreadsheet;
|
|
804
854
|
exports.reconstructWordprocessing = require_layout_reconstruct.reconstructWordprocessing;
|
|
855
|
+
exports.renderOdbReportContent = require_odb_report_render.renderOdbReportContent;
|
|
805
856
|
Object.defineProperty(exports, "resolveOdbComponent", {
|
|
806
857
|
enumerable: true,
|
|
807
858
|
get: function() {
|
|
808
859
|
return odf_js.resolveOdbComponent;
|
|
809
860
|
}
|
|
810
861
|
});
|
|
862
|
+
exports.resolveOdbReportRows = require_odb_report_source.resolveOdbReportRows;
|
|
811
863
|
Object.defineProperty(exports, "resolveRelationships", {
|
|
812
864
|
enumerable: true,
|
|
813
865
|
get: function() {
|
|
@@ -826,6 +878,9 @@ Object.defineProperty(exports, "rootElement", {
|
|
|
826
878
|
return ooxml_js.rootElement;
|
|
827
879
|
}
|
|
828
880
|
});
|
|
881
|
+
exports.rptBandDefinition = require_odb_formula_definition.rptBandDefinition;
|
|
882
|
+
exports.rptDefinitionFromReport = require_odb_formula_definition.rptDefinitionFromReport;
|
|
883
|
+
exports.runRptReport = require_odb_formula_evaluate.runRptReport;
|
|
829
884
|
Object.defineProperty(exports, "schemaUriFor", {
|
|
830
885
|
enumerable: true,
|
|
831
886
|
get: function() {
|
|
@@ -852,6 +907,7 @@ Object.defineProperty(exports, "toCompact", {
|
|
|
852
907
|
return ooxml_js.toCompact;
|
|
853
908
|
}
|
|
854
909
|
});
|
|
910
|
+
exports.tokenizeSql = require_odb_sql_lexer.tokenizeSql;
|
|
855
911
|
Object.defineProperty(exports, "unzipPackage", {
|
|
856
912
|
enumerable: true,
|
|
857
913
|
get: function() {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions, r as HsqldbRowFormatError } from "./rowformat-Cl2exlEh.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-
|
|
2
|
+
import { i as mapMathVariant, n as applyMathVariant, r as isMathVariant, t as MathVariant } from "./variant-BMrebjMw.cjs";
|
|
3
|
+
import { n as OmmlDiagnosticKind, t as OmmlDiagnostic } from "./shared-DLZ3IQUl.cjs";
|
|
4
|
+
import { i as extractSourceFonts, n as FontSourcePackage, r as createDocumentFontRegistry, t as DocumentFontRegistryOptions } from "./registry-lqJej0Jr.cjs";
|
|
5
5
|
import { DocumentBridgeOptions, DocumentToPdfOptions, OdbConversionOptions, OdbToCsvOptions, OdmToPdfOptions, OdmUnresolvedSectionError, PdfToDocumentOptions, docxToMarkdown, docxToOdt, docxToPdf, markdownToDocx, markdownToOdt, markdownToPdf, odbToCsv, odbToXlsx, odfToPdf, odgToPdf, odmToPdf, odpToPdf, odpToPptx, odsToPdf, odsToXlsx, odtToDocx, odtToMarkdown, odtToPdf, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxToOdp, pptxToPdf, xlsxToOds, xlsxToPdf } from "./convert/convert.cjs";
|
|
6
6
|
import { ConversionOptions, ConversionRequest, ConversionResult, Diagnostic, DocumentConverter, DocumentFormat, DocumentPayload } from "./convert/port.cjs";
|
|
7
7
|
import { docxPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odpPdfCodec, odpPptxCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptxPdfCodec, xlsxPdfCodec } from "./convert/codec.cjs";
|
|
8
8
|
import { createLocalDocumentConverter } from "./convert/local.cjs";
|
|
9
9
|
import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.cjs";
|
|
10
|
+
import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.cjs";
|
|
11
|
+
import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-BQ6SK8r8.cjs";
|
|
10
12
|
import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-71eoF1Up.cjs";
|
|
11
13
|
import { t as DocxRun } from "./run-B3GNScJH.cjs";
|
|
12
14
|
import { DocxParagraph } from "./edit/docx/paragraph.cjs";
|
|
@@ -37,7 +39,7 @@ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "
|
|
|
37
39
|
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-C3CPZ--2.cjs";
|
|
38
40
|
import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
|
|
39
41
|
import { PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
|
|
40
|
-
import {
|
|
42
|
+
import { a as parseHsqldbScript, i as displayTextFor, n as HsqldbScriptParseError, r as HsqldbTable, t as HsqldbColumn } from "./script-DsGGIzGU.cjs";
|
|
41
43
|
import { t as FirebirdBackupParseError } from "./reader-DP0Mbaj4.cjs";
|
|
42
44
|
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-DVgO1DQ9.cjs";
|
|
43
45
|
import { r as FirebirdSchemaParseError } from "./schema-BeR_KJ0X.cjs";
|
|
@@ -49,12 +51,13 @@ import { OoxmlEmbeddedFontError, extractOoxmlEmbeddedFonts } from "./fonts/ooxml
|
|
|
49
51
|
import { HsqldbBinaryScript, HsqldbBinaryScriptParseError, inflateHsqldbCompressedScript, parseHsqldbBinaryScript } from "./hsqldb/binary-script.cjs";
|
|
50
52
|
import { decodeHsqldbCachedTables } from "./hsqldb/cache.cjs";
|
|
51
53
|
import { DocxBytesSchema, MarkdownBytesSchema, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, OdtBytesSchema, PdfBytesSchema, PptxBytesSchema, XlsxBytesSchema } from "./model/bytes.cjs";
|
|
52
|
-
import { MathBox, MathColor, MathDiagnostic, MathDiagnosticKind, MathGlyphRun, MathLayoutItem, MathLayoutResult, MathRule, MathStroke } from "./mathml/layout-types.cjs";
|
|
53
|
-
import { MathFontMetrics, MathGlyphMetrics } from "./mathml/metrics.cjs";
|
|
54
|
-
import { MathVariant, applyMathVariant, isMathVariant, mapMathVariant } from "./mathml/variant.cjs";
|
|
54
|
+
import { MathAssembledGlyphs, MathBox, MathColor, MathDiagnostic, MathDiagnosticKind, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathLayoutResult, MathRule, MathStroke } from "./mathml/layout-types.cjs";
|
|
55
|
+
import { MathFontMetrics, MathGlyphMetrics, MathStretchAxis, MathStretchGlyph, MathStretchResult } from "./mathml/metrics.cjs";
|
|
55
56
|
import { LayoutFormulaOptions, layoutFormula } from "./mathml/layout.cjs";
|
|
56
57
|
import { OperatorProperties, operatorProperties } from "./mathml/operators.cjs";
|
|
57
|
-
import {
|
|
58
|
+
import { OmmlReadResult, collectOfficeMathElements, readOfficeMath } from "./omml/read.cjs";
|
|
59
|
+
import { ReadDocxContentOptions, readDocxContent } from "./ooxml/docx/read.cjs";
|
|
60
|
+
import { DocxExtras, readDocxExtras } from "./ooxml/docx/extras.cjs";
|
|
58
61
|
import { readPptxContent } from "./ooxml/pptx/read.cjs";
|
|
59
62
|
import { readOdtContent } from "./odf/odt/read.cjs";
|
|
60
63
|
import { readOdpContent } from "./odf/odp/read.cjs";
|
|
@@ -77,10 +80,21 @@ import { OdbNoEmbeddedDataSourceError, OdbUnsupportedFormat, OdbUnsupportedForma
|
|
|
77
80
|
import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.cjs";
|
|
78
81
|
import { readOdbForms, readOdbReports } from "./odb/components.cjs";
|
|
79
82
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.cjs";
|
|
83
|
+
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DGPWx_f2.cjs";
|
|
84
|
+
import { a as SqlNameRef, c as SqlPredicate, d as SqlSortDirection, f as parseSelect, i as SqlLiteral, l as SqlSelectItem, n as SqlAggregateFunction, o as SqlOperand, r as SqlColumnRef, s as SqlOrderByTerm, t as SqlAggregateArgument, u as SqlSelectStatement } from "./parser-B9vC1T6T.cjs";
|
|
85
|
+
import { n as evaluateSelect, t as SqlResultSet } from "./evaluate-BhMXY6DM.cjs";
|
|
86
|
+
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.cjs";
|
|
87
|
+
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.cjs";
|
|
88
|
+
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.cjs";
|
|
89
|
+
import { odbReportGroupChain, rptBandDefinition, rptDefinitionFromReport } from "./odb/formula/definition.cjs";
|
|
90
|
+
import { RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError } from "./odb/formula/errors.cjs";
|
|
91
|
+
import { OdbReportContentOptions, OdbReportNotSpecifiedError, readOdbReportContent } from "./odb/report/content.cjs";
|
|
92
|
+
import { renderOdbReportContent } from "./odb/report/render.cjs";
|
|
93
|
+
import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.cjs";
|
|
80
94
|
import { ClockPort, fixedClock, systemClock } from "./ports/clock.cjs";
|
|
81
95
|
import { throwIfAborted } from "./ports/abort.cjs";
|
|
82
96
|
import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
|
|
83
97
|
import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
|
|
84
|
-
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
85
98
|
import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
|
|
86
|
-
|
|
99
|
+
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
100
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|