odf.js 2.7.1 → 2.7.2

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.
Files changed (88) hide show
  1. package/dist/a1-5e9veCyu.d.ts +18 -0
  2. package/dist/base64--HuymRl_.d.ts +5 -0
  3. package/dist/build-Z1KRkSEB.d.ts +5 -0
  4. package/dist/cascade-8u4q16_U.d.ts +22 -0
  5. package/dist/codec-C0HcLUmU.d.ts +107 -0
  6. package/dist/codec.d.ts +1 -71
  7. package/dist/color-CqXjt_to.d.ts +6 -0
  8. package/dist/embedded-CNMqOrnt.d.ts +13 -0
  9. package/dist/entities-BZlXvHqu.d.ts +5 -0
  10. package/dist/form-DcGOX5RW.d.ts +31 -0
  11. package/dist/fragment-B1ZV7T5Z.d.ts +6 -0
  12. package/dist/geometry-DnhkIhAM.d.ts +12 -0
  13. package/dist/image/sniff.d.ts +1 -4
  14. package/dist/index.d.ts +43 -44
  15. package/dist/manifest-xxJ4FpSe.d.ts +40 -0
  16. package/dist/manifest.d.ts +1 -39
  17. package/dist/masterpage-7nBnqFj-.d.ts +8 -0
  18. package/dist/media-type-BOLkcHkJ.d.ts +20 -0
  19. package/dist/media-type.d.ts +1 -19
  20. package/dist/metadata-32LoP2TK.d.ts +7 -0
  21. package/dist/mimetype-uF-RHNpR.d.ts +6 -0
  22. package/dist/mimetype.d.ts +1 -5
  23. package/dist/ns-Cihto3Fx.d.ts +33 -0
  24. package/dist/ns.d.ts +1 -32
  25. package/dist/package-io/read.d.ts +1 -4
  26. package/dist/package-io/write.d.ts +1 -6
  27. package/dist/paragraph-DWNnedIE.d.ts +7 -0
  28. package/dist/parse-A8_8sdpX.d.ts +5 -0
  29. package/dist/path-DE7wkIcz.d.ts +34 -0
  30. package/dist/properties-DjAIdPry.d.ts +44 -0
  31. package/dist/query-sECN-7vU.d.ts +9 -0
  32. package/dist/read-B0aBfNRf.d.ts +10 -0
  33. package/dist/read-BkFbEves.d.ts +15 -0
  34. package/dist/read-Bleh4LfR.d.ts +14 -0
  35. package/dist/read-BoIUENWq.d.ts +28 -0
  36. package/dist/read-C7gT8wtc.d.ts +10 -0
  37. package/dist/read-CxdHrV1m.d.ts +10 -0
  38. package/dist/read-DhLNXgiM.d.ts +5 -0
  39. package/dist/read-Dn9qyBBs.d.ts +10 -0
  40. package/dist/registry-R43n1hcL.d.ts +37 -0
  41. package/dist/report-MpwUgXbA.d.ts +48 -0
  42. package/dist/serialize-DvaE_t5D.d.ts +7 -0
  43. package/dist/shapes-BJAtBY24.d.ts +18 -0
  44. package/dist/sniff-DjpnUZRp.d.ts +5 -0
  45. package/dist/span-KXroEGuH.d.ts +5 -0
  46. package/dist/styles/properties.d.ts +1 -43
  47. package/dist/styles/registry.d.ts +1 -36
  48. package/dist/styles/serialize.d.ts +1 -6
  49. package/dist/styles/span.d.ts +1 -4
  50. package/dist/subdocument-DQNQF7wV.d.ts +8 -0
  51. package/dist/table-D81TZyBn.d.ts +14 -0
  52. package/dist/text-CkNojpZm.d.ts +8 -0
  53. package/dist/transform-C7GrZZdR.d.ts +26 -0
  54. package/dist/typed/draw/embedded.d.ts +1 -12
  55. package/dist/typed/draw/shapes.d.ts +1 -17
  56. package/dist/typed/formula/read.d.ts +1 -13
  57. package/dist/typed/odb/form.d.ts +1 -30
  58. package/dist/typed/odb/read.d.ts +1 -27
  59. package/dist/typed/odb/report.d.ts +1 -47
  60. package/dist/typed/odb/subdocument.d.ts +1 -7
  61. package/dist/typed/odg/read.d.ts +1 -9
  62. package/dist/typed/odm/read.d.ts +1 -14
  63. package/dist/typed/odp/read.d.ts +1 -9
  64. package/dist/typed/ods/read.d.ts +1 -9
  65. package/dist/typed/odt/read.d.ts +1 -9
  66. package/dist/typed/shared/a1.d.ts +1 -17
  67. package/dist/typed/shared/cascade.d.ts +1 -21
  68. package/dist/typed/shared/color.d.ts +1 -5
  69. package/dist/typed/shared/geometry.d.ts +1 -11
  70. package/dist/typed/shared/masterpage.d.ts +1 -7
  71. package/dist/typed/shared/metadata.d.ts +1 -6
  72. package/dist/typed/shared/paragraph.d.ts +1 -6
  73. package/dist/typed/shared/path.d.ts +1 -33
  74. package/dist/typed/shared/table.d.ts +1 -13
  75. package/dist/typed/shared/text.d.ts +1 -7
  76. package/dist/typed/shared/transform.d.ts +1 -25
  77. package/dist/typed/shared/units.d.ts +1 -5
  78. package/dist/units-7pCiECuP.d.ts +6 -0
  79. package/dist/util/base64.d.ts +1 -4
  80. package/dist/write-C0nwVuPI.d.ts +7 -0
  81. package/dist/xml/build.d.ts +1 -4
  82. package/dist/xml/entities.d.ts +1 -4
  83. package/dist/xml/fragment.d.ts +1 -5
  84. package/dist/xml/parse.d.ts +1 -4
  85. package/dist/xml/query.d.ts +1 -8
  86. package/dist/zip-ie17sOo5.d.ts +9 -0
  87. package/dist/zip.d.ts +1 -8
  88. package/package.json +1 -1
@@ -1,14 +1,2 @@
1
- import { d as XmlNode, l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- import { ContentDocument, LayoutMetadata } from "document-schema.js";
4
- //#region src/typed/formula/read.d.ts
5
- interface OdfFormulaDocument {
6
- starMath?: string;
7
- mathml: XmlNode[];
8
- metadata: LayoutMetadata;
9
- }
10
- declare function findMathRoot(nodes: readonly XmlNode[]): XmlElement | undefined;
11
- declare function readOdfFormula(pkg: Package): OdfFormulaDocument;
12
- declare function readOdfFormulaDocument(pkg: Package): ContentDocument;
13
- //#endregion
1
+ import { i as readOdfFormulaDocument, n as findMathRoot, r as readOdfFormula, t as OdfFormulaDocument } from "../../read-Bleh4LfR.js";
14
2
  export { OdfFormulaDocument, findMathRoot, readOdfFormula, readOdfFormulaDocument };
@@ -1,31 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { OdtDocument } from "../odt/read.js";
3
- //#region src/typed/odb/form.d.ts
4
- interface OdbFormControl {
5
- tag: string;
6
- name?: string;
7
- controlImplementation?: string;
8
- dataField?: string;
9
- id?: string;
10
- label?: string;
11
- controls: OdbFormControl[];
12
- }
13
- interface OdbFormDefinition {
14
- name?: string;
15
- command?: string;
16
- commandType?: string;
17
- datasource?: string;
18
- filter?: string;
19
- order?: string;
20
- controls: OdbFormControl[];
21
- subForms: OdbFormDefinition[];
22
- }
23
- interface OdbForm {
24
- name: string;
25
- href: string;
26
- document: OdtDocument;
27
- forms: OdbFormDefinition[];
28
- }
29
- declare function readOdbForm(pkg: Package, formName: string): OdbForm;
30
- //#endregion
1
+ import { i as readOdbForm, n as OdbFormControl, r as OdbFormDefinition, t as OdbForm } from "../../form-DcGOX5RW.js";
31
2
  export { OdbForm, OdbFormControl, OdbFormDefinition, readOdbForm };
@@ -1,28 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- //#region src/typed/odb/read.d.ts
3
- interface OdbConnectionInfo {
4
- type: 'embedded' | 'external';
5
- driverClass?: string;
6
- url?: string;
7
- }
8
- interface OdbQueryInfo {
9
- name: string;
10
- command: string;
11
- escapeProcessing?: boolean;
12
- }
13
- interface OdbComponentInfo {
14
- name: string;
15
- href: string;
16
- asTemplate?: boolean;
17
- }
18
- interface OdbInventory {
19
- connection: OdbConnectionInfo | undefined;
20
- tables: string[];
21
- queries: OdbQueryInfo[];
22
- forms: OdbComponentInfo[];
23
- reports: OdbComponentInfo[];
24
- }
25
- declare function resolveOdbComponent(pkg: Package, kind: 'form' | 'report', name: string): OdbComponentInfo;
26
- declare function readOdbInventory(pkg: Package): OdbInventory;
27
- //#endregion
1
+ import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "../../read-BoIUENWq.js";
28
2
  export { OdbComponentInfo, OdbConnectionInfo, OdbInventory, OdbQueryInfo, readOdbInventory, resolveOdbComponent };
@@ -1,48 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- //#region src/typed/odb/report.d.ts
3
- interface OdbReportElement {
4
- tag: string;
5
- name?: string;
6
- text?: string;
7
- formula?: string;
8
- dataField?: string;
9
- }
10
- interface OdbReportBand {
11
- kind: 'report-header' | 'page-header' | 'group-header' | 'detail' | 'group-footer' | 'page-footer' | 'report-footer';
12
- name?: string;
13
- elements: OdbReportElement[];
14
- }
15
- interface OdbReportFunction {
16
- name: string;
17
- formula: string;
18
- }
19
- interface OdbReportGroup {
20
- groupExpression?: string;
21
- sortExpression?: string;
22
- sortAscending?: boolean;
23
- startNewColumn?: boolean;
24
- resetPageNumber?: boolean;
25
- keepTogether?: string;
26
- header?: OdbReportBand;
27
- footer?: OdbReportBand;
28
- functions: OdbReportFunction[];
29
- groups: OdbReportGroup[];
30
- }
31
- interface OdbReport {
32
- name: string;
33
- href: string;
34
- command?: string;
35
- commandType?: string;
36
- caption?: string;
37
- mimeType?: string;
38
- reportHeader?: OdbReportBand;
39
- pageHeader?: OdbReportBand;
40
- groups: OdbReportGroup[];
41
- detail?: OdbReportBand;
42
- pageFooter?: OdbReportBand;
43
- reportFooter?: OdbReportBand;
44
- functions: OdbReportFunction[];
45
- }
46
- declare function readOdbReport(pkg: Package, reportName: string): OdbReport;
47
- //#endregion
1
+ import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "../../report-MpwUgXbA.js";
48
2
  export { OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbReport };
@@ -1,8 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- //#region src/typed/odb/subdocument.d.ts
3
- interface SubDocumentPackageOptions {
4
- allowMissingContent?: boolean;
5
- }
6
- declare function subDocumentPackage(pkg: Package, prefix: string, options?: SubDocumentPackageOptions): Package;
7
- //#endregion
1
+ import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "../../subdocument-DQNQF7wV.js";
8
2
  export { SubDocumentPackageOptions, subDocumentPackage };
@@ -1,10 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { ContentDrawPage, LayoutMetadata } from "document-schema.js";
3
- //#region src/typed/odg/read.d.ts
4
- interface OdgDocument {
5
- metadata: LayoutMetadata;
6
- pages: ContentDrawPage[];
7
- }
8
- declare function readOdg(pkg: Package): OdgDocument;
9
- //#endregion
1
+ import { n as readOdg, t as OdgDocument } from "../../read-C7gT8wtc.js";
10
2
  export { OdgDocument, readOdg };
@@ -1,15 +1,2 @@
1
- import { d as XmlNode } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- //#region src/typed/odm/read.d.ts
4
- interface OdmSection {
5
- name: string;
6
- href: string;
7
- filterName?: string;
8
- inlineContent?: readonly XmlNode[];
9
- }
10
- interface OdmDocument {
11
- sections: readonly OdmSection[];
12
- }
13
- declare function readOdm(pkg: Package): OdmDocument;
14
- //#endregion
1
+ import { n as OdmSection, r as readOdm, t as OdmDocument } from "../../read-BkFbEves.js";
15
2
  export { OdmDocument, OdmSection, readOdm };
@@ -1,10 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { ContentSlide, LayoutMetadata } from "document-schema.js";
3
- //#region src/typed/odp/read.d.ts
4
- interface OdpDocument {
5
- metadata: LayoutMetadata;
6
- slides: ContentSlide[];
7
- }
8
- declare function readOdp(pkg: Package): OdpDocument;
9
- //#endregion
1
+ import { n as readOdp, t as OdpDocument } from "../../read-CxdHrV1m.js";
10
2
  export { OdpDocument, readOdp };
@@ -1,10 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { ContentSheet, LayoutMetadata } from "document-schema.js";
3
- //#region src/typed/ods/read.d.ts
4
- interface OdsDocument {
5
- metadata: LayoutMetadata;
6
- sheets: ContentSheet[];
7
- }
8
- declare function readOds(pkg: Package): OdsDocument;
9
- //#endregion
1
+ import { n as readOds, t as OdsDocument } from "../../read-B0aBfNRf.js";
10
2
  export { OdsDocument, readOds };
@@ -1,10 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { ContentSection, LayoutMetadata } from "document-schema.js";
3
- //#region src/typed/odt/read.d.ts
4
- interface OdtDocument {
5
- metadata: LayoutMetadata;
6
- sections: ContentSection[];
7
- }
8
- declare function readOdt(pkg: Package): OdtDocument;
9
- //#endregion
1
+ import { n as readOdt, t as OdtDocument } from "../../read-Dn9qyBBs.js";
10
2
  export { OdtDocument, readOdt };
@@ -1,18 +1,2 @@
1
- //#region src/typed/shared/a1.d.ts
2
- declare function columnIndexToLetters(index: number): string;
3
- declare function cellReference(columnIndex: number, rowIndex: number): string;
4
- declare function columnLettersToIndex(letters: string): number | undefined;
5
- declare function parseCellReference(reference: string): {
6
- column: number;
7
- row: number;
8
- } | undefined;
9
- declare class TableCursor {
10
- private columnCursor;
11
- private rowCursor;
12
- get columnIndex(): number;
13
- get rowIndex(): number;
14
- nextCell(repeatCount?: number): string;
15
- nextRow(repeatCount?: number): void;
16
- }
17
- //#endregion
1
+ import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "../../a1-5e9veCyu.js";
18
2
  export { TableCursor, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference };
@@ -1,22 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- import { StyleProperties } from "../../styles/properties.js";
4
- import { StyleFamily } from "../../styles/registry.js";
5
- //#region src/typed/shared/cascade.d.ts
6
- interface CascadeDiagnostic {
7
- severity: 'warning';
8
- message: string;
9
- }
10
- interface StyleCascadeResult {
11
- properties: StyleProperties;
12
- diagnostics: CascadeDiagnostic[];
13
- }
14
- interface StyleElementChainResult {
15
- elements: XmlElement[];
16
- diagnostics: CascadeDiagnostic[];
17
- }
18
- declare function resolveStyleElementChain(styleName: string | undefined, family: StyleFamily, pkg: Package): StyleElementChainResult;
19
- declare function resolveStyle(styleName: string | undefined, family: StyleFamily, pkg: Package): StyleCascadeResult;
20
- declare function findStyleElement(styleName: string, family: StyleFamily, pkg: Package): XmlElement | undefined;
21
- //#endregion
1
+ import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "../../cascade-8u4q16_U.js";
22
2
  export { CascadeDiagnostic, StyleCascadeResult, StyleElementChainResult, findStyleElement, resolveStyle, resolveStyleElementChain };
@@ -1,6 +1,2 @@
1
- import { Color } from "document-schema.js";
2
- //#region src/typed/shared/color.d.ts
3
- declare function parseOdfColor(value: string): Color | undefined;
4
- declare function formatOdfColor(color: Color): string;
5
- //#endregion
1
+ import { n as parseOdfColor, t as formatOdfColor } from "../../color-CqXjt_to.js";
6
2
  export { formatOdfColor, parseOdfColor };
@@ -1,12 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Box, ContentPathPoint, Margins, PageSize } from "document-schema.js";
3
- //#region src/typed/shared/geometry.d.ts
4
- declare function parsePageSize(pageLayoutProperties: XmlElement): PageSize | undefined;
5
- declare function parseMargins(pageLayoutProperties: XmlElement): Margins | undefined;
6
- declare function parseBox(element: XmlElement): Box | undefined;
7
- declare function parseLinePoints(element: XmlElement): {
8
- from: ContentPathPoint;
9
- to: ContentPathPoint;
10
- } | undefined;
11
- //#endregion
1
+ import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "../../geometry-DnhkIhAM.js";
12
2
  export { parseBox, parseLinePoints, parseMargins, parsePageSize };
@@ -1,8 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- import { PageSize } from "document-schema.js";
4
- //#region src/typed/shared/masterpage.d.ts
5
- declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
6
- declare function resolveDrawPageSize(page: XmlElement, pkg: Package): PageSize | undefined;
7
- //#endregion
1
+ import { n as resolvePageLayoutProperties, t as resolveDrawPageSize } from "../../masterpage-7nBnqFj-.js";
8
2
  export { resolveDrawPageSize, resolvePageLayoutProperties };
@@ -1,7 +1,2 @@
1
- import { Package } from "../../model/package.js";
2
- import { LayoutMetadata } from "document-schema.js";
3
- //#region src/typed/shared/metadata.d.ts
4
- declare const META_PART = "meta.xml";
5
- declare function readOdfMetadata(pkg: Package): LayoutMetadata;
6
- //#endregion
1
+ import { n as readOdfMetadata, t as META_PART } from "../../metadata-32LoP2TK.js";
7
2
  export { META_PART, readOdfMetadata };
@@ -1,7 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- import { ContentParagraph } from "document-schema.js";
4
- //#region src/typed/shared/paragraph.d.ts
5
- declare function readOdfParagraph(pElement: XmlElement, pkg: Package): ContentParagraph;
6
- //#endregion
1
+ import { t as readOdfParagraph } from "../../paragraph-DWNnedIE.js";
7
2
  export { readOdfParagraph };
@@ -1,34 +1,2 @@
1
- import { Box, ContentPathPoint, ContentSubpath } from "document-schema.js";
2
- //#region src/typed/shared/path.d.ts
3
- interface OdfRawPoint {
4
- readonly x: number;
5
- readonly y: number;
6
- }
7
- type OdfRawSegment = {
8
- readonly kind: 'line';
9
- readonly to: OdfRawPoint;
10
- } | {
11
- readonly kind: 'cubic';
12
- readonly control1: OdfRawPoint;
13
- readonly control2: OdfRawPoint;
14
- readonly to: OdfRawPoint;
15
- };
16
- interface OdfRawSubpath {
17
- readonly start: OdfRawPoint;
18
- readonly segments: readonly OdfRawSegment[];
19
- readonly closed: boolean;
20
- }
21
- interface OdfViewBox {
22
- readonly minX: number;
23
- readonly minY: number;
24
- readonly width: number;
25
- readonly height: number;
26
- }
27
- declare function parseOdfViewBox(value: string): OdfViewBox | undefined;
28
- declare function parseOdfPointsList(value: string): OdfRawPoint[];
29
- declare function rawSubpathFromPoints(points: readonly OdfRawPoint[], closed: boolean): OdfRawSubpath | undefined;
30
- declare function parseOdfPathData(d: string): OdfRawSubpath[];
31
- declare function scaleOdfRawPoint(point: OdfRawPoint, viewBox: OdfViewBox, frame: Box): ContentPathPoint;
32
- declare function buildOdfSubpaths(rawSubpaths: readonly OdfRawSubpath[], viewBox: OdfViewBox, frame: Box): ContentSubpath[];
33
- //#endregion
1
+ import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "../../path-DE7wkIcz.js";
34
2
  export { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint };
@@ -1,14 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Package } from "../../model/package.js";
3
- import { Alignment, Color, ContentCellBorders, ContentTable } from "document-schema.js";
4
- //#region src/typed/shared/table.d.ts
5
- interface CellStyleDecoration {
6
- background?: Color;
7
- borders?: ContentCellBorders;
8
- alignment?: Alignment;
9
- verticalAlignment?: 'top' | 'middle' | 'bottom';
10
- }
11
- declare function readCellStyleDecoration(elements: readonly XmlElement[]): CellStyleDecoration;
12
- declare function readOdfTable(tableElement: XmlElement, pkg: Package): ContentTable;
13
- //#endregion
1
+ import { n as readCellStyleDecoration, r as readOdfTable, t as CellStyleDecoration } from "../../table-D81TZyBn.js";
14
2
  export { CellStyleDecoration, readCellStyleDecoration, readOdfTable };
@@ -1,8 +1,2 @@
1
- import { d as XmlNode, l as XmlElement } from "../../node-CkBWRjNR.js";
2
- //#region src/typed/shared/text.d.ts
3
- declare function getOdfSpaceCount(element: XmlElement): number;
4
- declare function measureOdfNodeLength(node: XmlNode): number;
5
- declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
6
- declare function decodeOdfText(container: XmlElement): string;
7
- //#endregion
1
+ import { i as sumOdfNodeLength, n as getOdfSpaceCount, r as measureOdfNodeLength, t as decodeOdfText } from "../../text-CkNojpZm.js";
8
2
  export { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength };
@@ -1,26 +1,2 @@
1
- import { l as XmlElement } from "../../node-CkBWRjNR.js";
2
- import { Box } from "document-schema.js";
3
- //#region src/typed/shared/transform.d.ts
4
- type OdfTransformFunction = {
5
- readonly kind: 'rotate';
6
- readonly angleRad: number;
7
- } | {
8
- readonly kind: 'translate';
9
- readonly xPt: number;
10
- readonly yPt: number;
11
- };
12
- interface OdfPoint {
13
- readonly xPt: number;
14
- readonly yPt: number;
15
- }
16
- declare function parseOdfTransform(value: string): OdfTransformFunction[];
17
- declare function applyOdfTransform(functions: readonly OdfTransformFunction[], point: OdfPoint): OdfPoint;
18
- declare function netRotationDeg(functions: readonly OdfTransformFunction[]): number;
19
- interface OdfShapeGeometry {
20
- readonly frame: Box;
21
- readonly rotationDeg: number | undefined;
22
- }
23
- declare function resolveOdfShapeGeometry(element: XmlElement): OdfShapeGeometry | undefined;
24
- declare function composeOdfGroupTransform(groupFunctions: readonly OdfTransformFunction[], child: OdfShapeGeometry): OdfShapeGeometry;
25
- //#endregion
1
+ import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "../../transform-C7GrZZdR.js";
26
2
  export { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry };
@@ -1,6 +1,2 @@
1
- //#region src/typed/shared/units.d.ts
2
- type LengthUnit = 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'px';
3
- declare function parseOdfLength(value: string): number | undefined;
4
- declare function formatOdfLength(pt: number, unit?: LengthUnit): string;
5
- //#endregion
1
+ import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "../../units-7pCiECuP.js";
6
2
  export { LengthUnit, formatOdfLength, parseOdfLength };
@@ -0,0 +1,6 @@
1
+ //#region src/typed/shared/units.d.ts
2
+ type LengthUnit = 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'px';
3
+ declare function parseOdfLength(value: string): number | undefined;
4
+ declare function formatOdfLength(pt: number, unit?: LengthUnit): string;
5
+ //#endregion
6
+ export { formatOdfLength as n, parseOdfLength as r, LengthUnit as t };
@@ -1,5 +1,2 @@
1
- //#region src/util/base64.d.ts
2
- declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
3
- declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
4
- //#endregion
1
+ import { n as bytesToBase64, t as base64ToBytes } from "../base64--HuymRl_.js";
5
2
  export { base64ToBytes, bytesToBase64 };
@@ -0,0 +1,7 @@
1
+ import { Package } from "./model/package.js";
2
+ //#region src/package-io/write.d.ts
3
+ declare const MIMETYPE_PART = "mimetype";
4
+ declare const MANIFEST_PART = "META-INF/manifest.xml";
5
+ declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
6
+ //#endregion
7
+ export { MIMETYPE_PART as n, serializePackage as r, MANIFEST_PART as t };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.js";
2
- //#region src/xml/build.d.ts
3
- declare function buildXml(nodes: XmlNode[]): string;
4
- //#endregion
1
+ import { t as buildXml } from "../build-Z1KRkSEB.js";
5
2
  export { buildXml };
@@ -1,5 +1,2 @@
1
- //#region src/xml/entities.d.ts
2
- declare function encodeXmlText(value: string): string;
3
- declare function decodeXmlText(value: string): string;
4
- //#endregion
1
+ import { n as encodeXmlText, t as decodeXmlText } from "../entities-BZlXvHqu.js";
5
2
  export { decodeXmlText, encodeXmlText };
@@ -1,6 +1,2 @@
1
- import { d as XmlNode, h as XmlText, l as XmlElement } from "../node-CkBWRjNR.js";
2
- //#region src/xml/fragment.d.ts
3
- declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
4
- declare function txt(value: string): XmlText;
5
- //#endregion
1
+ import { n as txt, t as el } from "../fragment-B1ZV7T5Z.js";
6
2
  export { el, txt };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.js";
2
- //#region src/xml/parse.d.ts
3
- declare function parseXml(xml: string): XmlNode[];
4
- //#endregion
1
+ import { t as parseXml } from "../parse-A8_8sdpX.js";
5
2
  export { parseXml };
@@ -1,9 +1,2 @@
1
- import { d as XmlNode, l as XmlElement } from "../node-CkBWRjNR.js";
2
- //#region src/xml/query.d.ts
3
- declare function rootElement(nodes: readonly XmlNode[]): XmlElement | undefined;
4
- declare function findChildElement(nodes: readonly XmlNode[], tag: string): XmlElement | undefined;
5
- declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
6
- declare function elementsWithTag(nodes: readonly XmlNode[], tag: string): XmlElement[];
7
- declare function attrValue(element: XmlElement, name: string): string | undefined;
8
- //#endregion
1
+ import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "../query-sECN-7vU.js";
9
2
  export { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement };
@@ -0,0 +1,9 @@
1
+ //#region src/zip.d.ts
2
+ interface ZipEntry {
3
+ readonly bytes: Uint8Array<ArrayBuffer>;
4
+ readonly stored?: boolean;
5
+ }
6
+ declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
7
+ declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
8
+ //#endregion
9
+ export { unzipPackage as n, zipPackage as r, ZipEntry as t };
package/dist/zip.d.ts CHANGED
@@ -1,9 +1,2 @@
1
- //#region src/zip.d.ts
2
- interface ZipEntry {
3
- readonly bytes: Uint8Array<ArrayBuffer>;
4
- readonly stored?: boolean;
5
- }
6
- declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
7
- declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
8
- //#endregion
1
+ import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.js";
9
2
  export { ZipEntry, unzipPackage, zipPackage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odf.js",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Type-safe, lossless round-trip conversion between OpenDocument Format packages (odt, ods, odp) and JSON, hand-written and dependency-minimal, built on Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {