js.documents 14.4.32 → 14.4.33
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/{blr-types-CMN0QKUE.d.cts → blr-types-deHhtYjv.d.cts} +2 -1
- package/dist/{blr-types-CMN0QKUE.d.ts → blr-types-deHhtYjv.d.ts} +2 -1
- package/dist/convert/composition.cjs +65 -65
- package/dist/convert/composition.d.cts +1 -1
- package/dist/convert/composition.d.ts +1 -1
- package/dist/convert/composition.js +65 -65
- package/dist/edit/docx/table.cjs +1 -1
- package/dist/edit/docx/table.js +1 -1
- package/dist/edit/odg/page.d.cts +1 -1
- package/dist/edit/odg/page.d.ts +1 -1
- package/dist/edit/odg/vector.cjs +5 -0
- package/dist/edit/odg/vector.d.cts +2 -2
- package/dist/edit/odg/vector.d.ts +2 -2
- package/dist/edit/odg/vector.js +5 -1
- package/dist/edit/odp/slide.d.cts +1 -1
- package/dist/edit/odp/slide.d.ts +1 -1
- package/dist/edit/odt/automatic-styles.cjs +1 -1
- package/dist/edit/odt/automatic-styles.js +1 -1
- package/dist/edit/odt/content.cjs +32 -32
- package/dist/edit/odt/content.js +32 -32
- package/dist/edit/odt/table.cjs +1 -1
- package/dist/edit/odt/table.js +1 -1
- package/dist/edit/pdf/item.cjs +5 -0
- package/dist/edit/pdf/item.d.cts +2 -2
- package/dist/edit/pdf/item.d.ts +2 -2
- package/dist/edit/pdf/item.js +5 -1
- package/dist/edit/pdf/page.d.cts +1 -1
- package/dist/edit/pdf/page.d.ts +1 -1
- package/dist/evaluate-BbOsgdmN.d.cts +15 -0
- package/dist/evaluate-C7fmk69X.d.ts +15 -0
- package/dist/firebird/backup.d.cts +1 -1
- package/dist/firebird/backup.d.ts +1 -1
- package/dist/firebird/blr-types.cjs +5 -0
- package/dist/firebird/blr-types.d.cts +2 -2
- package/dist/firebird/blr-types.d.ts +2 -2
- package/dist/firebird/blr-types.js +5 -1
- package/dist/firebird/schema.d.cts +1 -1
- package/dist/firebird/schema.d.ts +1 -1
- 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/script.cjs +5 -0
- package/dist/hsqldb/script.d.cts +2 -2
- package/dist/hsqldb/script.d.ts +2 -2
- package/dist/hsqldb/script.js +5 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/{item-SUC4uKDO.d.cts → item-B5d6CCqq.d.cts} +2 -1
- package/dist/{item-SUC4uKDO.d.ts → item-B5d6CCqq.d.ts} +2 -1
- package/dist/latex/lower.cjs +2 -2
- package/dist/latex/lower.js +2 -2
- package/dist/layout/lattice.cjs +1 -1
- package/dist/layout/lattice.js +1 -1
- package/dist/layout/reconstruct.cjs +3 -3
- package/dist/layout/reconstruct.js +3 -3
- package/dist/markdown/render.cjs +5 -0
- package/dist/markdown/render.d.cts +2 -1
- package/dist/markdown/render.d.ts +2 -1
- package/dist/markdown/render.js +5 -1
- package/dist/model/embedded-drawing.cjs +5 -0
- package/dist/model/embedded-drawing.d.cts +2 -1
- package/dist/model/embedded-drawing.d.ts +2 -1
- package/dist/model/embedded-drawing.js +5 -1
- package/dist/odb/csv.d.cts +1 -1
- package/dist/odb/csv.d.ts +1 -1
- package/dist/odb/formula/evaluate.cjs +5 -0
- package/dist/odb/formula/evaluate.d.cts +3 -2
- package/dist/odb/formula/evaluate.d.ts +3 -2
- package/dist/odb/formula/evaluate.js +5 -1
- package/dist/odb/formula/parser.d.cts +1 -1
- package/dist/odb/formula/parser.d.ts +1 -1
- package/dist/odb/read.d.cts +1 -1
- package/dist/odb/read.d.ts +1 -1
- package/dist/odb/report/render.cjs +5 -0
- package/dist/odb/report/render.d.cts +3 -2
- package/dist/odb/report/render.d.ts +3 -2
- package/dist/odb/report/render.js +5 -1
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/spreadsheet.d.cts +1 -1
- package/dist/odb/spreadsheet.d.ts +1 -1
- package/dist/odb/sql/evaluate.cjs +21 -1
- package/dist/odb/sql/evaluate.d.cts +2 -2
- package/dist/odb/sql/evaluate.d.ts +2 -2
- package/dist/odb/sql/evaluate.js +18 -2
- package/dist/odb/sql/parser.cjs +12 -7
- package/dist/odb/sql/parser.d.cts +2 -2
- package/dist/odb/sql/parser.d.ts +2 -2
- package/dist/odb/sql/parser.js +12 -8
- package/dist/odb/values.cjs +5 -0
- package/dist/odb/values.d.cts +2 -2
- package/dist/odb/values.d.ts +2 -2
- package/dist/odb/values.js +5 -1
- package/dist/{parser-Oq6zLQsu.d.cts → parser-BTA1wXPd.d.cts} +2 -1
- package/dist/{parser-CfMvvMT1.d.ts → parser-CoIi0l9I.d.ts} +2 -1
- package/dist/ppt/write.cjs +5 -0
- package/dist/ppt/write.d.cts +2 -1
- package/dist/ppt/write.d.ts +2 -1
- package/dist/ppt/write.js +5 -1
- package/dist/{script-DsGGIzGU.d.cts → script-pkZ2Kor4.d.cts} +2 -1
- package/dist/{script-DsGGIzGU.d.ts → script-pkZ2Kor4.d.ts} +2 -1
- package/dist/svg/transform.cjs +5 -0
- package/dist/svg/transform.d.cts +2 -1
- package/dist/svg/transform.d.ts +2 -1
- package/dist/svg/transform.js +5 -1
- package/dist/svg/write.cjs +5 -0
- package/dist/svg/write.d.cts +2 -1
- package/dist/svg/write.d.ts +2 -1
- package/dist/svg/write.js +5 -1
- package/dist/{values-BBN9E8dV.d.cts → values-DcupkLKg.d.cts} +2 -1
- package/dist/{values-BBN9E8dV.d.ts → values-DcupkLKg.d.ts} +2 -1
- package/dist/{vector-DDP7hgvm.d.cts → vector-DWSXN_G2.d.cts} +2 -1
- package/dist/{vector-DDP7hgvm.d.ts → vector-DWSXN_G2.d.ts} +2 -1
- package/package.json +13 -13
- package/dist/evaluate-BnRKjJ1G.d.ts +0 -11
- package/dist/evaluate-CYYLwKtR.d.cts +0 -11
package/dist/edit/pdf/item.cjs
CHANGED
|
@@ -504,6 +504,10 @@ function wrapItem(container, node, images) {
|
|
|
504
504
|
case "path": return new PdfPathItem(container, node);
|
|
505
505
|
case "link": return new PdfLinkItem(container, node);
|
|
506
506
|
}
|
|
507
|
+
return assertNeverNodeKind(node);
|
|
508
|
+
}
|
|
509
|
+
function assertNeverNodeKind(value) {
|
|
510
|
+
throw new Error(`documents.js: unhandled node ${JSON.stringify(value)}`);
|
|
507
511
|
}
|
|
508
512
|
//#endregion
|
|
509
513
|
exports.PdfEllipseItem = PdfEllipseItem;
|
|
@@ -514,6 +518,7 @@ exports.PdfLinkItem = PdfLinkItem;
|
|
|
514
518
|
exports.PdfPathItem = PdfPathItem;
|
|
515
519
|
exports.PdfRectItem = PdfRectItem;
|
|
516
520
|
exports.PdfTextItem = PdfTextItem;
|
|
521
|
+
exports.assertNeverNodeKind = assertNeverNodeKind;
|
|
517
522
|
exports.buildEllipseItem = buildEllipseItem;
|
|
518
523
|
exports.buildImageItem = buildImageItem;
|
|
519
524
|
exports.buildLineItem = buildLineItem;
|
package/dist/edit/pdf/item.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
|
1
|
+
import { C as buildRectItem, S as buildPathItem, T as wrapItem, _ as assertNeverNodeKind, a as PdfInternalLinkItem, b as buildLineItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem, v as buildEllipseItem, w as buildTextItem, x as buildLinkItem, y as buildImageItem } from "../../item-B5d6CCqq.cjs";
|
|
2
|
+
export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, assertNeverNodeKind, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
package/dist/edit/pdf/item.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
|
1
|
+
import { C as buildRectItem, S as buildPathItem, T as wrapItem, _ as assertNeverNodeKind, a as PdfInternalLinkItem, b as buildLineItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem, v as buildEllipseItem, w as buildTextItem, x as buildLinkItem, y as buildImageItem } from "../../item-B5d6CCqq.js";
|
|
2
|
+
export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, assertNeverNodeKind, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
package/dist/edit/pdf/item.js
CHANGED
|
@@ -503,6 +503,10 @@ function wrapItem(container, node, images) {
|
|
|
503
503
|
case "path": return new PdfPathItem(container, node);
|
|
504
504
|
case "link": return new PdfLinkItem(container, node);
|
|
505
505
|
}
|
|
506
|
+
return assertNeverNodeKind(node);
|
|
507
|
+
}
|
|
508
|
+
function assertNeverNodeKind(value) {
|
|
509
|
+
throw new Error(`documents.js: unhandled node ${JSON.stringify(value)}`);
|
|
506
510
|
}
|
|
507
511
|
//#endregion
|
|
508
|
-
export { PdfEllipseItem, PdfImageItem, PdfInternalLinkItem, PdfLineItem, PdfLinkItem, PdfPathItem, PdfRectItem, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
|
512
|
+
export { PdfEllipseItem, PdfImageItem, PdfInternalLinkItem, PdfLineItem, PdfLinkItem, PdfPathItem, PdfRectItem, PdfTextItem, assertNeverNodeKind, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
|
package/dist/edit/pdf/page.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-
|
|
1
|
+
import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-B5d6CCqq.cjs";
|
|
2
2
|
import { LayoutImageAsset, LayoutPage } from "pdf-codec";
|
|
3
3
|
//#region src/edit/pdf/page.d.ts
|
|
4
4
|
interface PageInit {
|
package/dist/edit/pdf/page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-
|
|
1
|
+
import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-B5d6CCqq.js";
|
|
2
2
|
import { LayoutImageAsset, LayoutPage } from "pdf-codec";
|
|
3
3
|
//#region src/edit/pdf/page.d.ts
|
|
4
4
|
interface PageInit {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as HsqldbTable } from "./script-pkZ2Kor4.cjs";
|
|
2
|
+
import { h as SqlSelectStatement } from "./parser-BTA1wXPd.cjs";
|
|
3
|
+
import { ContentCellValue } from "document-schema.js";
|
|
4
|
+
//#region src/odb/sql/evaluate.d.ts
|
|
5
|
+
interface SqlResultSet {
|
|
6
|
+
readonly columns: readonly string[];
|
|
7
|
+
readonly rows: readonly (readonly ContentCellValue[])[];
|
|
8
|
+
}
|
|
9
|
+
declare function evaluateSelect(statement: SqlSelectStatement, tables: readonly HsqldbTable[]): SqlResultSet;
|
|
10
|
+
declare function assertNeverOperator(value: never): never;
|
|
11
|
+
declare function assertNeverLiteralKind(value: never): never;
|
|
12
|
+
declare function assertNeverPredicateKind(value: never): never;
|
|
13
|
+
declare function assertNeverValueKind(value: never): never;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { assertNeverValueKind as a, assertNeverPredicateKind as i, assertNeverLiteralKind as n, evaluateSelect as o, assertNeverOperator as r, SqlResultSet as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as HsqldbTable } from "./script-pkZ2Kor4.js";
|
|
2
|
+
import { h as SqlSelectStatement } from "./parser-CoIi0l9I.js";
|
|
3
|
+
import { ContentCellValue } from "document-schema.js";
|
|
4
|
+
//#region src/odb/sql/evaluate.d.ts
|
|
5
|
+
interface SqlResultSet {
|
|
6
|
+
readonly columns: readonly string[];
|
|
7
|
+
readonly rows: readonly (readonly ContentCellValue[])[];
|
|
8
|
+
}
|
|
9
|
+
declare function evaluateSelect(statement: SqlSelectStatement, tables: readonly HsqldbTable[]): SqlResultSet;
|
|
10
|
+
declare function assertNeverOperator(value: never): never;
|
|
11
|
+
declare function assertNeverLiteralKind(value: never): never;
|
|
12
|
+
declare function assertNeverPredicateKind(value: never): never;
|
|
13
|
+
declare function assertNeverValueKind(value: never): never;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { assertNeverValueKind as a, assertNeverPredicateKind as i, assertNeverLiteralKind as n, evaluateSelect as o, assertNeverOperator as r, SqlResultSet as t };
|
|
@@ -86,6 +86,10 @@ function describeFieldType(physical, lengthBytes, scale, characterLength, subTyp
|
|
|
86
86
|
case "dec128": return "DECFLOAT(34)";
|
|
87
87
|
case "unsupported-tz": return "TIMESTAMP/TIME WITH TIME ZONE";
|
|
88
88
|
}
|
|
89
|
+
return assertNeverPhysical(physical);
|
|
90
|
+
}
|
|
91
|
+
function assertNeverPhysical(value) {
|
|
92
|
+
throw new Error(`documents.js: unhandled physical ${JSON.stringify(value)}`);
|
|
89
93
|
}
|
|
90
94
|
//#endregion
|
|
91
95
|
exports.BLR_BLOB = BLR_BLOB;
|
|
@@ -114,5 +118,6 @@ exports.BLR_TIMESTAMP_TZ = BLR_TIMESTAMP_TZ;
|
|
|
114
118
|
exports.BLR_VARYING = BLR_VARYING;
|
|
115
119
|
exports.BLR_VARYING2 = BLR_VARYING2;
|
|
116
120
|
exports.FirebirdUnsupportedFieldTypeError = FirebirdUnsupportedFieldTypeError;
|
|
121
|
+
exports.assertNeverPhysical = assertNeverPhysical;
|
|
117
122
|
exports.decodeBlrType = decodeBlrType;
|
|
118
123
|
exports.describeFieldType = describeFieldType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as BLR_TIMESTAMP_TZ, D as FirebirdUnsupportedFieldTypeError, E as FirebirdPhysicalType, O as
|
|
2
|
-
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdPhysicalType, FirebirdUnsupportedFieldTypeError, decodeBlrType, describeFieldType };
|
|
1
|
+
import { A as describeFieldType, C as BLR_TIMESTAMP_TZ, D as FirebirdUnsupportedFieldTypeError, E as FirebirdPhysicalType, O as assertNeverPhysical, S as BLR_TIMESTAMP, T as BLR_VARYING2, _ as BLR_SQL_DATE, a as BLR_DEC128, b as BLR_TEXT, c as BLR_D_FLOAT, d as BLR_FLOAT, f as BLR_INT128, g as BLR_SHORT, h as BLR_QUAD, i as BLR_CSTRING2, k as decodeBlrType, l as BLR_EX_TIMESTAMP_TZ, m as BLR_LONG, n as BLR_BOOL, o as BLR_DEC64, p as BLR_INT64, r as BLR_CSTRING, s as BLR_DOUBLE, t as BLR_BLOB, u as BLR_EX_TIME_TZ, v as BLR_SQL_TIME, w as BLR_VARYING, x as BLR_TEXT2, y as BLR_SQL_TIME_TZ } from "../blr-types-deHhtYjv.cjs";
|
|
2
|
+
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdPhysicalType, FirebirdUnsupportedFieldTypeError, assertNeverPhysical, decodeBlrType, describeFieldType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as BLR_TIMESTAMP_TZ, D as FirebirdUnsupportedFieldTypeError, E as FirebirdPhysicalType, O as
|
|
2
|
-
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdPhysicalType, FirebirdUnsupportedFieldTypeError, decodeBlrType, describeFieldType };
|
|
1
|
+
import { A as describeFieldType, C as BLR_TIMESTAMP_TZ, D as FirebirdUnsupportedFieldTypeError, E as FirebirdPhysicalType, O as assertNeverPhysical, S as BLR_TIMESTAMP, T as BLR_VARYING2, _ as BLR_SQL_DATE, a as BLR_DEC128, b as BLR_TEXT, c as BLR_D_FLOAT, d as BLR_FLOAT, f as BLR_INT128, g as BLR_SHORT, h as BLR_QUAD, i as BLR_CSTRING2, k as decodeBlrType, l as BLR_EX_TIMESTAMP_TZ, m as BLR_LONG, n as BLR_BOOL, o as BLR_DEC64, p as BLR_INT64, r as BLR_CSTRING, s as BLR_DOUBLE, t as BLR_BLOB, u as BLR_EX_TIME_TZ, v as BLR_SQL_TIME, w as BLR_VARYING, x as BLR_TEXT2, y as BLR_SQL_TIME_TZ } from "../blr-types-deHhtYjv.js";
|
|
2
|
+
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdPhysicalType, FirebirdUnsupportedFieldTypeError, assertNeverPhysical, decodeBlrType, describeFieldType };
|
|
@@ -85,6 +85,10 @@ function describeFieldType(physical, lengthBytes, scale, characterLength, subTyp
|
|
|
85
85
|
case "dec128": return "DECFLOAT(34)";
|
|
86
86
|
case "unsupported-tz": return "TIMESTAMP/TIME WITH TIME ZONE";
|
|
87
87
|
}
|
|
88
|
+
return assertNeverPhysical(physical);
|
|
89
|
+
}
|
|
90
|
+
function assertNeverPhysical(value) {
|
|
91
|
+
throw new Error(`documents.js: unhandled physical ${JSON.stringify(value)}`);
|
|
88
92
|
}
|
|
89
93
|
//#endregion
|
|
90
|
-
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdUnsupportedFieldTypeError, decodeBlrType, describeFieldType };
|
|
94
|
+
export { BLR_BLOB, BLR_BOOL, BLR_CSTRING, BLR_CSTRING2, BLR_DEC128, BLR_DEC64, BLR_DOUBLE, BLR_D_FLOAT, BLR_EX_TIMESTAMP_TZ, BLR_EX_TIME_TZ, BLR_FLOAT, BLR_INT128, BLR_INT64, BLR_LONG, BLR_QUAD, BLR_SHORT, BLR_SQL_DATE, BLR_SQL_TIME, BLR_SQL_TIME_TZ, BLR_TEXT, BLR_TEXT2, BLR_TIMESTAMP, BLR_TIMESTAMP_TZ, BLR_VARYING, BLR_VARYING2, FirebirdUnsupportedFieldTypeError, assertNeverPhysical, decodeBlrType, describeFieldType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../rowformat-Cl2exlEh.cjs";
|
|
2
|
-
import { r as HsqldbTable } from "../script-
|
|
2
|
+
import { r as HsqldbTable } from "../script-pkZ2Kor4.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 { r as HsqldbTable } from "../script-
|
|
2
|
+
import { r as HsqldbTable } from "../script-pkZ2Kor4.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 { r as HsqldbTable, t as HsqldbColumn } from "../script-
|
|
2
|
+
import { r as HsqldbTable, t as HsqldbColumn } from "../script-pkZ2Kor4.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 { r as HsqldbTable, t as HsqldbColumn } from "../script-
|
|
2
|
+
import { r as HsqldbTable, t as HsqldbColumn } from "../script-pkZ2Kor4.js";
|
|
3
3
|
import { ContentCellValue } from "document-schema.js";
|
|
4
4
|
//#region src/hsqldb/cache.d.ts
|
|
5
5
|
interface HsqldbCacheFileInfo {
|
package/dist/hsqldb/script.cjs
CHANGED
|
@@ -25,6 +25,7 @@ function displayTextFor(value) {
|
|
|
25
25
|
case "error": return value.value;
|
|
26
26
|
case "empty": return "";
|
|
27
27
|
}
|
|
28
|
+
return assertNeverValueKind(value);
|
|
28
29
|
}
|
|
29
30
|
const IGNORABLE_STATEMENT_PREFIXES = [
|
|
30
31
|
"SET DATABASE",
|
|
@@ -452,7 +453,11 @@ function parseHsqldbScript(bytes) {
|
|
|
452
453
|
};
|
|
453
454
|
});
|
|
454
455
|
}
|
|
456
|
+
function assertNeverValueKind(value) {
|
|
457
|
+
throw new Error(`documents.js: unhandled value ${JSON.stringify(value)}`);
|
|
458
|
+
}
|
|
455
459
|
//#endregion
|
|
456
460
|
exports.HsqldbScriptParseError = HsqldbScriptParseError;
|
|
461
|
+
exports.assertNeverValueKind = assertNeverValueKind;
|
|
457
462
|
exports.displayTextFor = displayTextFor;
|
|
458
463
|
exports.parseHsqldbScript = parseHsqldbScript;
|
package/dist/hsqldb/script.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, displayTextFor, parseHsqldbScript };
|
|
1
|
+
import { a as displayTextFor, i as assertNeverValueKind, n as HsqldbScriptParseError, o as parseHsqldbScript, r as HsqldbTable, t as HsqldbColumn } from "../script-pkZ2Kor4.cjs";
|
|
2
|
+
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, assertNeverValueKind, displayTextFor, parseHsqldbScript };
|
package/dist/hsqldb/script.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, displayTextFor, parseHsqldbScript };
|
|
1
|
+
import { a as displayTextFor, i as assertNeverValueKind, n as HsqldbScriptParseError, o as parseHsqldbScript, r as HsqldbTable, t as HsqldbColumn } from "../script-pkZ2Kor4.js";
|
|
2
|
+
export { HsqldbColumn, HsqldbScriptParseError, HsqldbTable, assertNeverValueKind, displayTextFor, parseHsqldbScript };
|
package/dist/hsqldb/script.js
CHANGED
|
@@ -24,6 +24,7 @@ function displayTextFor(value) {
|
|
|
24
24
|
case "error": return value.value;
|
|
25
25
|
case "empty": return "";
|
|
26
26
|
}
|
|
27
|
+
return assertNeverValueKind(value);
|
|
27
28
|
}
|
|
28
29
|
const IGNORABLE_STATEMENT_PREFIXES = [
|
|
29
30
|
"SET DATABASE",
|
|
@@ -451,5 +452,8 @@ function parseHsqldbScript(bytes) {
|
|
|
451
452
|
};
|
|
452
453
|
});
|
|
453
454
|
}
|
|
455
|
+
function assertNeverValueKind(value) {
|
|
456
|
+
throw new Error(`documents.js: unhandled value ${JSON.stringify(value)}`);
|
|
457
|
+
}
|
|
454
458
|
//#endregion
|
|
455
|
-
export { HsqldbScriptParseError, displayTextFor, parseHsqldbScript };
|
|
459
|
+
export { HsqldbScriptParseError, assertNeverValueKind, displayTextFor, parseHsqldbScript };
|
package/dist/index.d.cts
CHANGED
|
@@ -42,7 +42,7 @@ import { n as RunInit$2, t as OdtRun } from "./run-mzBHuFWz.cjs";
|
|
|
42
42
|
import { n as ParagraphInit$2, t as OdtParagraph } from "./paragraph-CRaLSzWz.cjs";
|
|
43
43
|
import { n as OdtListItem, t as OdtList } from "./list-C_UPIZWM.cjs";
|
|
44
44
|
import { t as OdpShape } from "./shape-Kmmxib5z.cjs";
|
|
45
|
-
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-
|
|
45
|
+
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-DWSXN_G2.cjs";
|
|
46
46
|
import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
47
47
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
48
48
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
|
|
@@ -59,7 +59,7 @@ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.cjs";
|
|
|
59
59
|
import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.cjs";
|
|
60
60
|
import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.cjs";
|
|
61
61
|
import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.cjs";
|
|
62
|
-
import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "./item-
|
|
62
|
+
import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "./item-B5d6CCqq.cjs";
|
|
63
63
|
import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
|
|
64
64
|
import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
|
|
65
65
|
import { PptShape, PptSlide } from "./edit/ppt/slide.cjs";
|
|
@@ -73,9 +73,9 @@ import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
|
|
|
73
73
|
import { n as displayTextOfValue, t as XlsCell } from "./cell-BK7EyvRu.cjs";
|
|
74
74
|
import { XlsSheet } from "./edit/xls/sheet.cjs";
|
|
75
75
|
import { CreateXlsOptions, XlsEditor, createXls, openXls } from "./edit/xls/editor.cjs";
|
|
76
|
-
import { a as
|
|
76
|
+
import { a as displayTextFor, n as HsqldbScriptParseError, o as parseHsqldbScript, r as HsqldbTable, t as HsqldbColumn } from "./script-pkZ2Kor4.cjs";
|
|
77
77
|
import { FirebirdBackupFormatError, FirebirdBackupSummary, ReadFirebirdBackupResult, SUPPORTED_BACKUP_FORMAT_VERSION, readFirebirdBackup } from "./firebird/backup.cjs";
|
|
78
|
-
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-
|
|
78
|
+
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-deHhtYjv.cjs";
|
|
79
79
|
import { FirebirdBackupParseError } from "./firebird/reader.cjs";
|
|
80
80
|
import { FirebirdSchemaParseError } from "./firebird/schema.cjs";
|
|
81
81
|
import { FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError } from "./firebird/data.cjs";
|
|
@@ -125,8 +125,8 @@ import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.cjs";
|
|
|
125
125
|
import { readOdbForms, readOdbReports } from "./odb/components.cjs";
|
|
126
126
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.cjs";
|
|
127
127
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.cjs";
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
128
|
+
import { a as SqlFromSource, d as SqlOperand, f as SqlOrderByTerm, g as SqlSortDirection, h as SqlSelectStatement, i as SqlFromClause, l as SqlLiteral, m as SqlSelectItem, n as SqlAggregateFunction, o as SqlJoinClause, p as SqlPredicate, r as SqlColumnRef, t as SqlAggregateArgument, u as SqlNameRef, v as parseSelect } from "./parser-BTA1wXPd.cjs";
|
|
129
|
+
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-BbOsgdmN.cjs";
|
|
130
130
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.cjs";
|
|
131
131
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.cjs";
|
|
132
132
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import { n as RunInit$2, t as OdtRun } from "./run-mzBHuFWz.js";
|
|
|
42
42
|
import { n as ParagraphInit$2, t as OdtParagraph } from "./paragraph-D4f705GG.js";
|
|
43
43
|
import { n as OdtListItem, t as OdtList } from "./list-C2GWIe6E.js";
|
|
44
44
|
import { t as OdpShape } from "./shape-ZAfNsCC5.js";
|
|
45
|
-
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-
|
|
45
|
+
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-DWSXN_G2.js";
|
|
46
46
|
import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
|
|
47
47
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
|
|
48
48
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
|
|
@@ -59,7 +59,7 @@ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.js";
|
|
|
59
59
|
import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.js";
|
|
60
60
|
import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.js";
|
|
61
61
|
import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.js";
|
|
62
|
-
import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "./item-
|
|
62
|
+
import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "./item-B5d6CCqq.js";
|
|
63
63
|
import { PageInit, PdfPage } from "./edit/pdf/page.js";
|
|
64
64
|
import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.js";
|
|
65
65
|
import { PptShape, PptSlide } from "./edit/ppt/slide.js";
|
|
@@ -73,9 +73,9 @@ import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
|
|
|
73
73
|
import { n as displayTextOfValue, t as XlsCell } from "./cell-BK7EyvRu.js";
|
|
74
74
|
import { XlsSheet } from "./edit/xls/sheet.js";
|
|
75
75
|
import { CreateXlsOptions, XlsEditor, createXls, openXls } from "./edit/xls/editor.js";
|
|
76
|
-
import { a as
|
|
76
|
+
import { a as displayTextFor, n as HsqldbScriptParseError, o as parseHsqldbScript, r as HsqldbTable, t as HsqldbColumn } from "./script-pkZ2Kor4.js";
|
|
77
77
|
import { FirebirdBackupFormatError, FirebirdBackupSummary, ReadFirebirdBackupResult, SUPPORTED_BACKUP_FORMAT_VERSION, readFirebirdBackup } from "./firebird/backup.js";
|
|
78
|
-
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-
|
|
78
|
+
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-deHhtYjv.js";
|
|
79
79
|
import { FirebirdBackupParseError } from "./firebird/reader.js";
|
|
80
80
|
import { FirebirdSchemaParseError } from "./firebird/schema.js";
|
|
81
81
|
import { FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError } from "./firebird/data.js";
|
|
@@ -125,8 +125,8 @@ import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.js";
|
|
|
125
125
|
import { readOdbForms, readOdbReports } from "./odb/components.js";
|
|
126
126
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.js";
|
|
127
127
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.js";
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
128
|
+
import { a as SqlFromSource, d as SqlOperand, f as SqlOrderByTerm, g as SqlSortDirection, h as SqlSelectStatement, i as SqlFromClause, l as SqlLiteral, m as SqlSelectItem, n as SqlAggregateFunction, o as SqlJoinClause, p as SqlPredicate, r as SqlColumnRef, t as SqlAggregateArgument, u as SqlNameRef, v as parseSelect } from "./parser-CoIi0l9I.js";
|
|
129
|
+
import { o as evaluateSelect, t as SqlResultSet } from "./evaluate-C7fmk69X.js";
|
|
130
130
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.js";
|
|
131
131
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.js";
|
|
132
132
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.js";
|
|
@@ -236,5 +236,6 @@ declare class PdfLinkItem extends PdfItemBase<LayoutLink> {
|
|
|
236
236
|
}
|
|
237
237
|
type PdfItem = PdfTextItem | PdfImageItem | PdfRectItem | PdfEllipseItem | PdfLineItem | PdfPathItem | PdfLinkItem | PdfInternalLinkItem;
|
|
238
238
|
declare function wrapItem(container: LayoutItem[], node: LayoutItem, images: Record<string, LayoutImageAsset>): PdfItem;
|
|
239
|
+
declare function assertNeverNodeKind(value: never): never;
|
|
239
240
|
//#endregion
|
|
240
|
-
export {
|
|
241
|
+
export { buildRectItem as C, buildPathItem as S, wrapItem as T, assertNeverNodeKind as _, PdfInternalLinkItem as a, buildLineItem as b, PdfLineItem as c, PdfPathInit as d, PdfPathItem as f, PdfTextItem as g, PdfTextInit as h, PdfImageItem as i, PdfLinkInit as l, PdfRectItem as m, PdfEllipseItem as n, PdfItem as o, PdfRectInit as p, PdfImageInit as r, PdfLineInit as s, PdfEllipseInit as t, PdfLinkItem as u, buildEllipseItem as v, buildTextItem as w, buildLinkItem as x, buildImageItem as y };
|
|
@@ -236,5 +236,6 @@ declare class PdfLinkItem extends PdfItemBase<LayoutLink> {
|
|
|
236
236
|
}
|
|
237
237
|
type PdfItem = PdfTextItem | PdfImageItem | PdfRectItem | PdfEllipseItem | PdfLineItem | PdfPathItem | PdfLinkItem | PdfInternalLinkItem;
|
|
238
238
|
declare function wrapItem(container: LayoutItem[], node: LayoutItem, images: Record<string, LayoutImageAsset>): PdfItem;
|
|
239
|
+
declare function assertNeverNodeKind(value: never): never;
|
|
239
240
|
//#endregion
|
|
240
|
-
export {
|
|
241
|
+
export { buildRectItem as C, buildPathItem as S, wrapItem as T, assertNeverNodeKind as _, PdfInternalLinkItem as a, buildLineItem as b, PdfLineItem as c, PdfPathInit as d, PdfPathItem as f, PdfTextItem as g, PdfTextInit as h, PdfImageItem as i, PdfLinkInit as l, PdfRectItem as m, PdfEllipseItem as n, PdfItem as o, PdfRectInit as p, PdfImageInit as r, PdfLineInit as s, PdfEllipseInit as t, PdfLinkItem as u, buildEllipseItem as v, buildTextItem as w, buildLinkItem as x, buildImageItem as y };
|
package/dist/latex/lower.cjs
CHANGED
|
@@ -133,8 +133,8 @@ function lowerNodeList(nodes, context) {
|
|
|
133
133
|
diagnose(context, "latex/operator-unmapped", detail);
|
|
134
134
|
return unparsed(detail);
|
|
135
135
|
}
|
|
136
|
-
const normalised = normaliseUnaryMinus(operators, segments.map((
|
|
137
|
-
nodes,
|
|
136
|
+
const normalised = normaliseUnaryMinus(operators, segments.map((segmentNodes) => ({
|
|
137
|
+
nodes: segmentNodes,
|
|
138
138
|
negated: false
|
|
139
139
|
})));
|
|
140
140
|
const [firstSegment, ...restSegments] = normalised.segments;
|
package/dist/latex/lower.js
CHANGED
|
@@ -132,8 +132,8 @@ function lowerNodeList(nodes, context) {
|
|
|
132
132
|
diagnose(context, "latex/operator-unmapped", detail);
|
|
133
133
|
return unparsed(detail);
|
|
134
134
|
}
|
|
135
|
-
const normalised = normaliseUnaryMinus(operators, segments.map((
|
|
136
|
-
nodes,
|
|
135
|
+
const normalised = normaliseUnaryMinus(operators, segments.map((segmentNodes) => ({
|
|
136
|
+
nodes: segmentNodes,
|
|
137
137
|
negated: false
|
|
138
138
|
})));
|
|
139
139
|
const [firstSegment, ...restSegments] = normalised.segments;
|
package/dist/layout/lattice.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/layout/lattice.ts
|
|
3
|
+
const RECT_LINE_THICKNESS_TOLERANCE_PT = 3;
|
|
3
4
|
function extractLineCandidates(items) {
|
|
4
5
|
const segments = [];
|
|
5
6
|
for (const item of items) {
|
|
@@ -54,7 +55,6 @@ function extractLineCandidates(items) {
|
|
|
54
55
|
}
|
|
55
56
|
const AXIS_ALIGNMENT_TOLERANCE_PT = .5;
|
|
56
57
|
const MIN_GRIDLINE_LENGTH_PT = 4;
|
|
57
|
-
const RECT_LINE_THICKNESS_TOLERANCE_PT = 3;
|
|
58
58
|
function classifyAxisLine(seg) {
|
|
59
59
|
const dx = Math.abs(seg.x2Pt - seg.x1Pt);
|
|
60
60
|
const dy = Math.abs(seg.y2Pt - seg.y1Pt);
|
package/dist/layout/lattice.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region src/layout/lattice.ts
|
|
2
|
+
const RECT_LINE_THICKNESS_TOLERANCE_PT = 3;
|
|
2
3
|
function extractLineCandidates(items) {
|
|
3
4
|
const segments = [];
|
|
4
5
|
for (const item of items) {
|
|
@@ -53,7 +54,6 @@ function extractLineCandidates(items) {
|
|
|
53
54
|
}
|
|
54
55
|
const AXIS_ALIGNMENT_TOLERANCE_PT = .5;
|
|
55
56
|
const MIN_GRIDLINE_LENGTH_PT = 4;
|
|
56
|
-
const RECT_LINE_THICKNESS_TOLERANCE_PT = 3;
|
|
57
57
|
function classifyAxisLine(seg) {
|
|
58
58
|
const dx = Math.abs(seg.x2Pt - seg.x1Pt);
|
|
59
59
|
const dy = Math.abs(seg.y2Pt - seg.y1Pt);
|
|
@@ -10,6 +10,9 @@ let pdf_codec_fonts = require("pdf-codec/fonts");
|
|
|
10
10
|
let pdf_codec_afm_widths = require("pdf-codec/afm-widths");
|
|
11
11
|
let pdf_codec_text_group = require("pdf-codec/text-group");
|
|
12
12
|
//#region src/layout/reconstruct.ts
|
|
13
|
+
const DEFAULT_COLUMN_WIDTH_FALLBACK_PT = 40;
|
|
14
|
+
const NO_ITEMS = /* @__PURE__ */ new Set();
|
|
15
|
+
const LARGE_GAP_EM_MULTIPLIER = 2;
|
|
13
16
|
const ZERO_MARGINS = {
|
|
14
17
|
topPt: 0,
|
|
15
18
|
rightPt: 0,
|
|
@@ -238,7 +241,6 @@ function modalLineGap(gaps) {
|
|
|
238
241
|
}
|
|
239
242
|
return bestCount > 1 ? bestBucket : Math.min(...gaps);
|
|
240
243
|
}
|
|
241
|
-
const LARGE_GAP_EM_MULTIPLIER = 2;
|
|
242
244
|
const PARAGRAPH_GAP_MULTIPLIER = 1.25;
|
|
243
245
|
const NOMINAL_LINE_SPACING_RATIO = 1.2;
|
|
244
246
|
const MIN_LINES_FOR_GAP_MODE = 3;
|
|
@@ -1337,7 +1339,6 @@ function recoverTable(page, pageIndex) {
|
|
|
1337
1339
|
latticeItems: lattice.sourceItems
|
|
1338
1340
|
};
|
|
1339
1341
|
}
|
|
1340
|
-
const NO_ITEMS = /* @__PURE__ */ new Set();
|
|
1341
1342
|
function joinCellText(items) {
|
|
1342
1343
|
const sorted = [...items].sort((a, b) => a.xPt - b.xPt);
|
|
1343
1344
|
let text = "";
|
|
@@ -1446,7 +1447,6 @@ function nearestColumnIndex(positions, xPt) {
|
|
|
1446
1447
|
});
|
|
1447
1448
|
return bestIndex;
|
|
1448
1449
|
}
|
|
1449
|
-
const DEFAULT_COLUMN_WIDTH_FALLBACK_PT = 40;
|
|
1450
1450
|
function lastColumnWidthPt(groups, columnIndex, anchorXPt) {
|
|
1451
1451
|
let maxWidthPt = 0;
|
|
1452
1452
|
for (const [key, items] of groups) {
|
|
@@ -9,6 +9,9 @@ import { resolveStandardFont } from "pdf-codec/fonts";
|
|
|
9
9
|
import { STANDARD_METRICS } from "pdf-codec/afm-widths";
|
|
10
10
|
import { runGapPt, runsShareBaseline } from "pdf-codec/text-group";
|
|
11
11
|
//#region src/layout/reconstruct.ts
|
|
12
|
+
const DEFAULT_COLUMN_WIDTH_FALLBACK_PT = 40;
|
|
13
|
+
const NO_ITEMS = /* @__PURE__ */ new Set();
|
|
14
|
+
const LARGE_GAP_EM_MULTIPLIER = 2;
|
|
12
15
|
const ZERO_MARGINS = {
|
|
13
16
|
topPt: 0,
|
|
14
17
|
rightPt: 0,
|
|
@@ -237,7 +240,6 @@ function modalLineGap(gaps) {
|
|
|
237
240
|
}
|
|
238
241
|
return bestCount > 1 ? bestBucket : Math.min(...gaps);
|
|
239
242
|
}
|
|
240
|
-
const LARGE_GAP_EM_MULTIPLIER = 2;
|
|
241
243
|
const PARAGRAPH_GAP_MULTIPLIER = 1.25;
|
|
242
244
|
const NOMINAL_LINE_SPACING_RATIO = 1.2;
|
|
243
245
|
const MIN_LINES_FOR_GAP_MODE = 3;
|
|
@@ -1336,7 +1338,6 @@ function recoverTable(page, pageIndex) {
|
|
|
1336
1338
|
latticeItems: lattice.sourceItems
|
|
1337
1339
|
};
|
|
1338
1340
|
}
|
|
1339
|
-
const NO_ITEMS = /* @__PURE__ */ new Set();
|
|
1340
1341
|
function joinCellText(items) {
|
|
1341
1342
|
const sorted = [...items].sort((a, b) => a.xPt - b.xPt);
|
|
1342
1343
|
let text = "";
|
|
@@ -1445,7 +1446,6 @@ function nearestColumnIndex(positions, xPt) {
|
|
|
1445
1446
|
});
|
|
1446
1447
|
return bestIndex;
|
|
1447
1448
|
}
|
|
1448
|
-
const DEFAULT_COLUMN_WIDTH_FALLBACK_PT = 40;
|
|
1449
1449
|
function lastColumnWidthPt(groups, columnIndex, anchorXPt) {
|
|
1450
1450
|
let maxWidthPt = 0;
|
|
1451
1451
|
for (const [key, items] of groups) {
|
package/dist/markdown/render.cjs
CHANGED
|
@@ -158,12 +158,17 @@ function degradedBlocksFor(document, sink) {
|
|
|
158
158
|
case "drawing": return drawingBlocks(document, sink);
|
|
159
159
|
case "formula": return formulaBlocks(document, sink);
|
|
160
160
|
}
|
|
161
|
+
return assertNeverDocumentKind(document);
|
|
161
162
|
}
|
|
162
163
|
function renderContentDocumentToMarkdown(document, options) {
|
|
163
164
|
if (document.kind === "wordprocessing") return require_markdown_write.buildMarkdownText(document, options);
|
|
164
165
|
const blocks = degradedBlocksFor(document, options?.onDiagnostic ?? NOOP_RENDER_DIAGNOSTIC_SINK);
|
|
165
166
|
return require_markdown_write.buildMarkdownText(wrapAsWordprocessing(document.metadata, blocks), options);
|
|
166
167
|
}
|
|
168
|
+
function assertNeverDocumentKind(value) {
|
|
169
|
+
throw new Error(`documents.js: unhandled document ${JSON.stringify(value)}`);
|
|
170
|
+
}
|
|
167
171
|
//#endregion
|
|
168
172
|
exports.MarkdownRenderDiagnosticCodes = MarkdownRenderDiagnosticCodes;
|
|
173
|
+
exports.assertNeverDocumentKind = assertNeverDocumentKind;
|
|
169
174
|
exports.renderContentDocumentToMarkdown = renderContentDocumentToMarkdown;
|
|
@@ -23,5 +23,6 @@ interface RenderMarkdownOptions extends WriteMarkdownOptions {
|
|
|
23
23
|
readonly onDiagnostic?: MarkdownRenderDiagnosticSink;
|
|
24
24
|
}
|
|
25
25
|
declare function renderContentDocumentToMarkdown(document: ContentDocument, options?: RenderMarkdownOptions): string;
|
|
26
|
+
declare function assertNeverDocumentKind(value: never): never;
|
|
26
27
|
//#endregion
|
|
27
|
-
export { MarkdownRenderDiagnostic, MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, MarkdownRenderDiagnosticSeverity, MarkdownRenderDiagnosticSink, RenderMarkdownOptions, renderContentDocumentToMarkdown };
|
|
28
|
+
export { MarkdownRenderDiagnostic, MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, MarkdownRenderDiagnosticSeverity, MarkdownRenderDiagnosticSink, RenderMarkdownOptions, assertNeverDocumentKind, renderContentDocumentToMarkdown };
|
|
@@ -23,5 +23,6 @@ interface RenderMarkdownOptions extends WriteMarkdownOptions {
|
|
|
23
23
|
readonly onDiagnostic?: MarkdownRenderDiagnosticSink;
|
|
24
24
|
}
|
|
25
25
|
declare function renderContentDocumentToMarkdown(document: ContentDocument, options?: RenderMarkdownOptions): string;
|
|
26
|
+
declare function assertNeverDocumentKind(value: never): never;
|
|
26
27
|
//#endregion
|
|
27
|
-
export { MarkdownRenderDiagnostic, MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, MarkdownRenderDiagnosticSeverity, MarkdownRenderDiagnosticSink, RenderMarkdownOptions, renderContentDocumentToMarkdown };
|
|
28
|
+
export { MarkdownRenderDiagnostic, MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, MarkdownRenderDiagnosticSeverity, MarkdownRenderDiagnosticSink, RenderMarkdownOptions, assertNeverDocumentKind, renderContentDocumentToMarkdown };
|
package/dist/markdown/render.js
CHANGED
|
@@ -157,11 +157,15 @@ function degradedBlocksFor(document, sink) {
|
|
|
157
157
|
case "drawing": return drawingBlocks(document, sink);
|
|
158
158
|
case "formula": return formulaBlocks(document, sink);
|
|
159
159
|
}
|
|
160
|
+
return assertNeverDocumentKind(document);
|
|
160
161
|
}
|
|
161
162
|
function renderContentDocumentToMarkdown(document, options) {
|
|
162
163
|
if (document.kind === "wordprocessing") return buildMarkdownText(document, options);
|
|
163
164
|
const blocks = degradedBlocksFor(document, options?.onDiagnostic ?? NOOP_RENDER_DIAGNOSTIC_SINK);
|
|
164
165
|
return buildMarkdownText(wrapAsWordprocessing(document.metadata, blocks), options);
|
|
165
166
|
}
|
|
167
|
+
function assertNeverDocumentKind(value) {
|
|
168
|
+
throw new Error(`documents.js: unhandled document ${JSON.stringify(value)}`);
|
|
169
|
+
}
|
|
166
170
|
//#endregion
|
|
167
|
-
export { MarkdownRenderDiagnosticCodes, renderContentDocumentToMarkdown };
|
|
171
|
+
export { MarkdownRenderDiagnosticCodes, assertNeverDocumentKind, renderContentDocumentToMarkdown };
|
|
@@ -51,6 +51,7 @@ function translateVector(vector, dxPt, dyPt) {
|
|
|
51
51
|
frame: shiftBox(vector.frame, dxPt, dyPt)
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
+
return assertNeverVectorKind(vector);
|
|
54
55
|
}
|
|
55
56
|
const FLOW_CONTAINER_ORIGIN = {
|
|
56
57
|
xPt: 0,
|
|
@@ -63,8 +64,12 @@ function embeddedDrawingVectors(block, containerOriginPt) {
|
|
|
63
64
|
const dyPt = block.frame.yPt + containerOriginPt.yPt;
|
|
64
65
|
return drawing.pages.flatMap((page) => page.vectors.map((vector) => translateVector(vector, dxPt, dyPt)));
|
|
65
66
|
}
|
|
67
|
+
function assertNeverVectorKind(value) {
|
|
68
|
+
throw new Error(`documents.js: unhandled vector ${JSON.stringify(value)}`);
|
|
69
|
+
}
|
|
66
70
|
//#endregion
|
|
67
71
|
exports.FLOW_CONTAINER_ORIGIN = FLOW_CONTAINER_ORIGIN;
|
|
72
|
+
exports.assertNeverVectorKind = assertNeverVectorKind;
|
|
68
73
|
exports.buildDrawingBlock = buildDrawingBlock;
|
|
69
74
|
exports.drawingOfBlock = drawingOfBlock;
|
|
70
75
|
exports.embeddedDrawingVectors = embeddedDrawingVectors;
|
|
@@ -6,5 +6,6 @@ declare function drawingOfBlock(block: ContentEmbeddedObjectBlock): Extract<Cont
|
|
|
6
6
|
}> | undefined;
|
|
7
7
|
declare const FLOW_CONTAINER_ORIGIN: ContentPathPoint;
|
|
8
8
|
declare function embeddedDrawingVectors(block: ContentEmbeddedObjectBlock, containerOriginPt: ContentPathPoint): ContentVector[];
|
|
9
|
+
declare function assertNeverVectorKind(value: never): never;
|
|
9
10
|
//#endregion
|
|
10
|
-
export { FLOW_CONTAINER_ORIGIN, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|
|
11
|
+
export { FLOW_CONTAINER_ORIGIN, assertNeverVectorKind, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|
|
@@ -6,5 +6,6 @@ declare function drawingOfBlock(block: ContentEmbeddedObjectBlock): Extract<Cont
|
|
|
6
6
|
}> | undefined;
|
|
7
7
|
declare const FLOW_CONTAINER_ORIGIN: ContentPathPoint;
|
|
8
8
|
declare function embeddedDrawingVectors(block: ContentEmbeddedObjectBlock, containerOriginPt: ContentPathPoint): ContentVector[];
|
|
9
|
+
declare function assertNeverVectorKind(value: never): never;
|
|
9
10
|
//#endregion
|
|
10
|
-
export { FLOW_CONTAINER_ORIGIN, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|
|
11
|
+
export { FLOW_CONTAINER_ORIGIN, assertNeverVectorKind, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|
|
@@ -50,6 +50,7 @@ function translateVector(vector, dxPt, dyPt) {
|
|
|
50
50
|
frame: shiftBox(vector.frame, dxPt, dyPt)
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
+
return assertNeverVectorKind(vector);
|
|
53
54
|
}
|
|
54
55
|
const FLOW_CONTAINER_ORIGIN = {
|
|
55
56
|
xPt: 0,
|
|
@@ -62,5 +63,8 @@ function embeddedDrawingVectors(block, containerOriginPt) {
|
|
|
62
63
|
const dyPt = block.frame.yPt + containerOriginPt.yPt;
|
|
63
64
|
return drawing.pages.flatMap((page) => page.vectors.map((vector) => translateVector(vector, dxPt, dyPt)));
|
|
64
65
|
}
|
|
66
|
+
function assertNeverVectorKind(value) {
|
|
67
|
+
throw new Error(`documents.js: unhandled vector ${JSON.stringify(value)}`);
|
|
68
|
+
}
|
|
65
69
|
//#endregion
|
|
66
|
-
export { FLOW_CONTAINER_ORIGIN, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|
|
70
|
+
export { FLOW_CONTAINER_ORIGIN, assertNeverVectorKind, buildDrawingBlock, drawingOfBlock, embeddedDrawingVectors };
|