js.documents 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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { t as SqlComparisonOperator } from "./lexer-DGPWx_f2.cjs";
|
|
2
|
+
//#region src/odb/sql/parser.d.ts
|
|
3
|
+
type SqlAggregateFunction = 'COUNT' | 'SUM' | 'AVG' | 'MIN' | 'MAX';
|
|
4
|
+
interface SqlNameRef {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly quoted: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface SqlColumnRef {
|
|
9
|
+
readonly qualifier: SqlNameRef | undefined;
|
|
10
|
+
readonly column: SqlNameRef;
|
|
11
|
+
readonly text: string;
|
|
12
|
+
}
|
|
13
|
+
type SqlLiteral = {
|
|
14
|
+
readonly kind: 'number';
|
|
15
|
+
readonly value: number;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'string';
|
|
18
|
+
readonly value: string;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'boolean';
|
|
21
|
+
readonly value: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'null';
|
|
24
|
+
};
|
|
25
|
+
type SqlOperand = {
|
|
26
|
+
readonly kind: 'column';
|
|
27
|
+
readonly column: SqlColumnRef;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: 'literal';
|
|
30
|
+
readonly literal: SqlLiteral;
|
|
31
|
+
};
|
|
32
|
+
type SqlPredicate = {
|
|
33
|
+
readonly kind: 'comparison';
|
|
34
|
+
readonly operator: SqlComparisonOperator;
|
|
35
|
+
readonly left: SqlOperand;
|
|
36
|
+
readonly right: SqlOperand;
|
|
37
|
+
} | {
|
|
38
|
+
readonly kind: 'isNull';
|
|
39
|
+
readonly operand: SqlOperand;
|
|
40
|
+
readonly negated: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
readonly kind: 'like';
|
|
43
|
+
readonly operand: SqlOperand;
|
|
44
|
+
readonly pattern: string;
|
|
45
|
+
readonly negated: boolean;
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: 'in';
|
|
48
|
+
readonly operand: SqlOperand;
|
|
49
|
+
readonly values: readonly SqlLiteral[];
|
|
50
|
+
readonly negated: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: 'between';
|
|
53
|
+
readonly operand: SqlOperand;
|
|
54
|
+
readonly lower: SqlOperand;
|
|
55
|
+
readonly upper: SqlOperand;
|
|
56
|
+
readonly negated: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
readonly kind: 'not';
|
|
59
|
+
readonly predicate: SqlPredicate;
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: 'and';
|
|
62
|
+
readonly left: SqlPredicate;
|
|
63
|
+
readonly right: SqlPredicate;
|
|
64
|
+
} | {
|
|
65
|
+
readonly kind: 'or';
|
|
66
|
+
readonly left: SqlPredicate;
|
|
67
|
+
readonly right: SqlPredicate;
|
|
68
|
+
};
|
|
69
|
+
type SqlAggregateArgument = {
|
|
70
|
+
readonly kind: 'star';
|
|
71
|
+
} | {
|
|
72
|
+
readonly kind: 'column';
|
|
73
|
+
readonly column: SqlColumnRef;
|
|
74
|
+
};
|
|
75
|
+
type SqlSelectItem = {
|
|
76
|
+
readonly kind: 'star';
|
|
77
|
+
} | {
|
|
78
|
+
readonly kind: 'column';
|
|
79
|
+
readonly column: SqlColumnRef;
|
|
80
|
+
} | {
|
|
81
|
+
readonly kind: 'aggregate';
|
|
82
|
+
readonly aggregate: SqlAggregateFunction;
|
|
83
|
+
readonly argument: SqlAggregateArgument;
|
|
84
|
+
readonly outputName: string;
|
|
85
|
+
};
|
|
86
|
+
type SqlSortDirection = 'asc' | 'desc';
|
|
87
|
+
interface SqlOrderByTerm {
|
|
88
|
+
readonly column: SqlColumnRef;
|
|
89
|
+
readonly direction: SqlSortDirection;
|
|
90
|
+
}
|
|
91
|
+
interface SqlSelectStatement {
|
|
92
|
+
readonly sql: string;
|
|
93
|
+
readonly items: readonly SqlSelectItem[];
|
|
94
|
+
readonly from: SqlNameRef;
|
|
95
|
+
readonly where: SqlPredicate | undefined;
|
|
96
|
+
readonly groupBy: readonly SqlColumnRef[];
|
|
97
|
+
readonly orderBy: readonly SqlOrderByTerm[];
|
|
98
|
+
}
|
|
99
|
+
declare function parseSelect(sql: string): SqlSelectStatement;
|
|
100
|
+
//#endregion
|
|
101
|
+
export { SqlNameRef as a, SqlPredicate as c, SqlSortDirection as d, parseSelect as f, SqlLiteral as i, SqlSelectItem as l, SqlAggregateFunction as n, SqlOperand as o, SqlColumnRef as r, SqlOrderByTerm as s, SqlAggregateArgument as t, SqlSelectStatement as u };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { t as SqlComparisonOperator } from "./lexer-DGPWx_f2.js";
|
|
2
|
+
//#region src/odb/sql/parser.d.ts
|
|
3
|
+
type SqlAggregateFunction = 'COUNT' | 'SUM' | 'AVG' | 'MIN' | 'MAX';
|
|
4
|
+
interface SqlNameRef {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly quoted: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface SqlColumnRef {
|
|
9
|
+
readonly qualifier: SqlNameRef | undefined;
|
|
10
|
+
readonly column: SqlNameRef;
|
|
11
|
+
readonly text: string;
|
|
12
|
+
}
|
|
13
|
+
type SqlLiteral = {
|
|
14
|
+
readonly kind: 'number';
|
|
15
|
+
readonly value: number;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'string';
|
|
18
|
+
readonly value: string;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'boolean';
|
|
21
|
+
readonly value: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'null';
|
|
24
|
+
};
|
|
25
|
+
type SqlOperand = {
|
|
26
|
+
readonly kind: 'column';
|
|
27
|
+
readonly column: SqlColumnRef;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: 'literal';
|
|
30
|
+
readonly literal: SqlLiteral;
|
|
31
|
+
};
|
|
32
|
+
type SqlPredicate = {
|
|
33
|
+
readonly kind: 'comparison';
|
|
34
|
+
readonly operator: SqlComparisonOperator;
|
|
35
|
+
readonly left: SqlOperand;
|
|
36
|
+
readonly right: SqlOperand;
|
|
37
|
+
} | {
|
|
38
|
+
readonly kind: 'isNull';
|
|
39
|
+
readonly operand: SqlOperand;
|
|
40
|
+
readonly negated: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
readonly kind: 'like';
|
|
43
|
+
readonly operand: SqlOperand;
|
|
44
|
+
readonly pattern: string;
|
|
45
|
+
readonly negated: boolean;
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: 'in';
|
|
48
|
+
readonly operand: SqlOperand;
|
|
49
|
+
readonly values: readonly SqlLiteral[];
|
|
50
|
+
readonly negated: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: 'between';
|
|
53
|
+
readonly operand: SqlOperand;
|
|
54
|
+
readonly lower: SqlOperand;
|
|
55
|
+
readonly upper: SqlOperand;
|
|
56
|
+
readonly negated: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
readonly kind: 'not';
|
|
59
|
+
readonly predicate: SqlPredicate;
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: 'and';
|
|
62
|
+
readonly left: SqlPredicate;
|
|
63
|
+
readonly right: SqlPredicate;
|
|
64
|
+
} | {
|
|
65
|
+
readonly kind: 'or';
|
|
66
|
+
readonly left: SqlPredicate;
|
|
67
|
+
readonly right: SqlPredicate;
|
|
68
|
+
};
|
|
69
|
+
type SqlAggregateArgument = {
|
|
70
|
+
readonly kind: 'star';
|
|
71
|
+
} | {
|
|
72
|
+
readonly kind: 'column';
|
|
73
|
+
readonly column: SqlColumnRef;
|
|
74
|
+
};
|
|
75
|
+
type SqlSelectItem = {
|
|
76
|
+
readonly kind: 'star';
|
|
77
|
+
} | {
|
|
78
|
+
readonly kind: 'column';
|
|
79
|
+
readonly column: SqlColumnRef;
|
|
80
|
+
} | {
|
|
81
|
+
readonly kind: 'aggregate';
|
|
82
|
+
readonly aggregate: SqlAggregateFunction;
|
|
83
|
+
readonly argument: SqlAggregateArgument;
|
|
84
|
+
readonly outputName: string;
|
|
85
|
+
};
|
|
86
|
+
type SqlSortDirection = 'asc' | 'desc';
|
|
87
|
+
interface SqlOrderByTerm {
|
|
88
|
+
readonly column: SqlColumnRef;
|
|
89
|
+
readonly direction: SqlSortDirection;
|
|
90
|
+
}
|
|
91
|
+
interface SqlSelectStatement {
|
|
92
|
+
readonly sql: string;
|
|
93
|
+
readonly items: readonly SqlSelectItem[];
|
|
94
|
+
readonly from: SqlNameRef;
|
|
95
|
+
readonly where: SqlPredicate | undefined;
|
|
96
|
+
readonly groupBy: readonly SqlColumnRef[];
|
|
97
|
+
readonly orderBy: readonly SqlOrderByTerm[];
|
|
98
|
+
}
|
|
99
|
+
declare function parseSelect(sql: string): SqlSelectStatement;
|
|
100
|
+
//#endregion
|
|
101
|
+
export { SqlNameRef as a, SqlPredicate as c, SqlSortDirection as d, parseSelect as f, SqlLiteral as i, SqlSelectItem as l, SqlAggregateFunction as n, SqlOperand as o, SqlColumnRef as r, SqlOrderByTerm as s, SqlAggregateArgument as t, SqlSelectStatement as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Package } from "odf.js";
|
|
2
|
-
import { Package as Package$1 } from "ooxml.js";
|
|
3
2
|
import { FontRegistry, FontSubstitution, ProvidedFont } from "pdf-codec";
|
|
3
|
+
import { Package as Package$1 } from "ooxml.js";
|
|
4
4
|
//#region src/fonts/registry.d.ts
|
|
5
5
|
type FontSourcePackage = {
|
|
6
6
|
readonly kind: 'docx' | 'pptx';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ContentCellValue } from "document-schema.js";
|
|
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
|
|
19
|
+
export { parseHsqldbScript as a, displayTextFor as i, HsqldbScriptParseError as n, HsqldbTable as r, HsqldbColumn as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ContentCellValue } from "document-schema.js";
|
|
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
|
|
19
|
+
export { parseHsqldbScript as a, displayTextFor as i, HsqldbScriptParseError as n, HsqldbTable as r, HsqldbColumn as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as MathVariant } from "./variant-BMrebjMw.cjs";
|
|
2
|
+
//#region src/omml/shared.d.ts
|
|
3
|
+
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
4
|
+
interface OmmlDiagnostic {
|
|
5
|
+
readonly kind: OmmlDiagnosticKind;
|
|
6
|
+
readonly detail: string;
|
|
7
|
+
}
|
|
8
|
+
declare const VARIANT_RUN_PROPERTIES: Record<MathVariant, {
|
|
9
|
+
readonly scr?: string;
|
|
10
|
+
readonly sty: string;
|
|
11
|
+
}>;
|
|
12
|
+
declare function variantFromRunProperties(script: string | undefined, style: string | undefined): MathVariant | undefined;
|
|
13
|
+
declare function miIntrinsicDefault(content: string): MathVariant;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { variantFromRunProperties as a, miIntrinsicDefault as i, OmmlDiagnosticKind as n, VARIANT_RUN_PROPERTIES as r, OmmlDiagnostic as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as MathVariant } from "./variant-BMrebjMw.js";
|
|
2
|
+
//#region src/omml/shared.d.ts
|
|
3
|
+
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
4
|
+
interface OmmlDiagnostic {
|
|
5
|
+
readonly kind: OmmlDiagnosticKind;
|
|
6
|
+
readonly detail: string;
|
|
7
|
+
}
|
|
8
|
+
declare const VARIANT_RUN_PROPERTIES: Record<MathVariant, {
|
|
9
|
+
readonly scr?: string;
|
|
10
|
+
readonly sty: string;
|
|
11
|
+
}>;
|
|
12
|
+
declare function variantFromRunProperties(script: string | undefined, style: string | undefined): MathVariant | undefined;
|
|
13
|
+
declare function miIntrinsicDefault(content: string): MathVariant;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { variantFromRunProperties as a, miIntrinsicDefault as i, OmmlDiagnosticKind as n, VARIANT_RUN_PROPERTIES as r, OmmlDiagnostic as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ContentCellValue } from "document-schema.js";
|
|
2
|
+
//#region src/odb/values.d.ts
|
|
3
|
+
type CellValueClass = 'numeric' | 'boolean' | 'text';
|
|
4
|
+
type CellComparisonKey = {
|
|
5
|
+
readonly valueClass: 'numeric';
|
|
6
|
+
readonly numeric: number;
|
|
7
|
+
} | {
|
|
8
|
+
readonly valueClass: 'boolean';
|
|
9
|
+
readonly boolean: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
readonly valueClass: 'text';
|
|
12
|
+
readonly text: string;
|
|
13
|
+
};
|
|
14
|
+
type CellAggregateFunction = 'COUNT' | 'SUM' | 'AVG' | 'MIN' | 'MAX';
|
|
15
|
+
type CellValueFailure = (message: string) => Error;
|
|
16
|
+
declare const CELL_NULL: ContentCellValue;
|
|
17
|
+
declare function cellComparisonKey(value: ContentCellValue): CellComparisonKey | undefined;
|
|
18
|
+
declare function compareCellKeys(left: CellComparisonKey, right: CellComparisonKey, fail: CellValueFailure): number;
|
|
19
|
+
declare function compareCellValues(left: ContentCellValue, right: ContentCellValue, fail: CellValueFailure): number;
|
|
20
|
+
declare function cellValuesEqual(left: ContentCellValue, right: ContentCellValue): boolean;
|
|
21
|
+
declare function aggregateCellValues(aggregate: CellAggregateFunction, values: readonly ContentCellValue[], fail: CellValueFailure): ContentCellValue;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CellValueFailure as a, cellValuesEqual as c, CellValueClass as i, compareCellKeys as l, CellAggregateFunction as n, aggregateCellValues as o, CellComparisonKey as r, cellComparisonKey as s, CELL_NULL as t, compareCellValues as u };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ContentCellValue } from "document-schema.js";
|
|
2
|
+
//#region src/odb/values.d.ts
|
|
3
|
+
type CellValueClass = 'numeric' | 'boolean' | 'text';
|
|
4
|
+
type CellComparisonKey = {
|
|
5
|
+
readonly valueClass: 'numeric';
|
|
6
|
+
readonly numeric: number;
|
|
7
|
+
} | {
|
|
8
|
+
readonly valueClass: 'boolean';
|
|
9
|
+
readonly boolean: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
readonly valueClass: 'text';
|
|
12
|
+
readonly text: string;
|
|
13
|
+
};
|
|
14
|
+
type CellAggregateFunction = 'COUNT' | 'SUM' | 'AVG' | 'MIN' | 'MAX';
|
|
15
|
+
type CellValueFailure = (message: string) => Error;
|
|
16
|
+
declare const CELL_NULL: ContentCellValue;
|
|
17
|
+
declare function cellComparisonKey(value: ContentCellValue): CellComparisonKey | undefined;
|
|
18
|
+
declare function compareCellKeys(left: CellComparisonKey, right: CellComparisonKey, fail: CellValueFailure): number;
|
|
19
|
+
declare function compareCellValues(left: ContentCellValue, right: ContentCellValue, fail: CellValueFailure): number;
|
|
20
|
+
declare function cellValuesEqual(left: ContentCellValue, right: ContentCellValue): boolean;
|
|
21
|
+
declare function aggregateCellValues(aggregate: CellAggregateFunction, values: readonly ContentCellValue[], fail: CellValueFailure): ContentCellValue;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CellValueFailure as a, cellValuesEqual as c, CellValueClass as i, compareCellKeys as l, CellAggregateFunction as n, aggregateCellValues as o, CellComparisonKey as r, cellComparisonKey as s, CELL_NULL as t, compareCellValues as u };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/mathml/variant.d.ts
|
|
2
|
+
type MathVariant = 'normal' | 'bold' | 'italic' | 'bold-italic' | 'double-struck' | 'bold-fraktur' | 'script' | 'bold-script' | 'fraktur' | 'sans-serif' | 'bold-sans-serif' | 'sans-serif-italic' | 'sans-serif-bold-italic' | 'monospace';
|
|
3
|
+
declare function mapMathVariant(codePoint: number, variant: MathVariant): number;
|
|
4
|
+
declare function applyMathVariant(text: string, variant: MathVariant): string;
|
|
5
|
+
declare function isMathVariant(value: string): value is MathVariant;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { mapMathVariant as i, applyMathVariant as n, isMathVariant as r, MathVariant as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/mathml/variant.d.ts
|
|
2
|
+
type MathVariant = 'normal' | 'bold' | 'italic' | 'bold-italic' | 'double-struck' | 'bold-fraktur' | 'script' | 'bold-script' | 'fraktur' | 'sans-serif' | 'bold-sans-serif' | 'sans-serif-italic' | 'sans-serif-bold-italic' | 'monospace';
|
|
3
|
+
declare function mapMathVariant(codePoint: number, variant: MathVariant): number;
|
|
4
|
+
declare function applyMathVariant(text: string, variant: MathVariant): string;
|
|
5
|
+
declare function isMathVariant(value: string): value is MathVariant;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { mapMathVariant as i, applyMathVariant as n, isMathVariant as r, MathVariant as t };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-DLZ3IQUl.cjs";
|
|
1
2
|
import { r as MathMlNode } from "./nodes-pArN9ilm.cjs";
|
|
2
3
|
import { XmlElement } from "ooxml.js";
|
|
3
4
|
//#region src/omml/write.d.ts
|
|
4
|
-
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
5
|
-
interface OmmlDiagnostic {
|
|
6
|
-
readonly kind: OmmlDiagnosticKind;
|
|
7
|
-
readonly detail: string;
|
|
8
|
-
}
|
|
9
5
|
interface OmmlWriteResult {
|
|
10
6
|
readonly element: XmlElement | undefined;
|
|
11
7
|
readonly diagnostics: readonly OmmlDiagnostic[];
|
|
@@ -13,4 +9,4 @@ interface OmmlWriteResult {
|
|
|
13
9
|
declare function buildOfficeMath(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
14
10
|
declare function buildOfficeMathParagraph(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
15
11
|
//#endregion
|
|
16
|
-
export {
|
|
12
|
+
export { buildOfficeMath as n, buildOfficeMathParagraph as r, OmmlWriteResult as t };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { t as OmmlDiagnostic } from "./shared-DUOzjwcL.js";
|
|
1
2
|
import { r as MathMlNode } from "./nodes-pArN9ilm.js";
|
|
2
3
|
import { XmlElement } from "ooxml.js";
|
|
3
4
|
//#region src/omml/write.d.ts
|
|
4
|
-
type OmmlDiagnosticKind = 'unsupported-element' | 'approximated-element';
|
|
5
|
-
interface OmmlDiagnostic {
|
|
6
|
-
readonly kind: OmmlDiagnosticKind;
|
|
7
|
-
readonly detail: string;
|
|
8
|
-
}
|
|
9
5
|
interface OmmlWriteResult {
|
|
10
6
|
readonly element: XmlElement | undefined;
|
|
11
7
|
readonly diagnostics: readonly OmmlDiagnostic[];
|
|
@@ -13,4 +9,4 @@ interface OmmlWriteResult {
|
|
|
13
9
|
declare function buildOfficeMath(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
14
10
|
declare function buildOfficeMathParagraph(mathml: readonly MathMlNode[]): OmmlWriteResult;
|
|
15
11
|
//#endregion
|
|
16
|
-
export {
|
|
12
|
+
export { buildOfficeMath as n, buildOfficeMathParagraph as r, OmmlWriteResult as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.documents",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.65.0",
|
|
4
4
|
"description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"markdown-codec": "github:ExaDev/markdown-codec#beda0a89d92fffd153d5dcd05d767b404b721cda",
|
|
64
64
|
"odf.js": "^2.0.0",
|
|
65
65
|
"ooxml.js": "^2.6.1",
|
|
66
|
-
"pdf-codec": "^1.
|
|
66
|
+
"pdf-codec": "^1.8.0",
|
|
67
67
|
"zod": "^4.4.3"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|