odf.js 5.0.9 → 5.1.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 +16 -2
- package/dist/{cascade-qYa3mgnE.d.cts → cascade-BmvsXcAz.d.cts} +2 -2
- package/dist/{cascade-8u4q16_U.d.ts → cascade-rhqUQrUa.d.ts} +2 -2
- package/dist/{codec-jKlS0rWl.d.cts → codec-BAz7YIru.d.cts} +26 -25
- package/dist/{codec-DqldvlN5.d.ts → codec-BxxFEqvT.d.ts} +26 -25
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/constructs-CJpDDQV0.d.ts +63 -0
- package/dist/constructs-Dy_DMFs3.d.cts +63 -0
- package/dist/embedded-BPhuSEEI.d.ts +18 -0
- package/dist/embedded-J3M3kDvY.d.cts +18 -0
- package/dist/form-BGCT81ss.d.cts +13 -0
- package/dist/form-D3H5H2NL.d.ts +13 -0
- package/dist/forms-D1-0spCe.d.ts +27 -0
- package/dist/forms-cIjw-Jf-.d.cts +27 -0
- package/dist/index.cjs +5 -2
- package/dist/index.d.cts +28 -27
- package/dist/index.d.ts +28 -27
- package/dist/index.js +4 -3
- package/dist/{list-C35tiDYU.d.cts → list-KZeXA0mR.d.cts} +1 -1
- package/dist/{list-acGU0xLo.d.ts → list-Qeuawtew.d.ts} +1 -1
- package/dist/{manifest-xxJ4FpSe.d.ts → manifest-BALwu2JR.d.cts} +1 -1
- package/dist/{manifest-CmsCOCEi.d.cts → manifest-CP1sqyGU.d.ts} +1 -1
- package/dist/manifest.d.cts +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/{masterpage-7nBnqFj-.d.ts → masterpage-C1McDhMv.d.ts} +1 -1
- package/dist/{masterpage-EmefIRgy.d.cts → masterpage-XJ2v2khe.d.cts} +1 -1
- package/dist/{metadata-32LoP2TK.d.ts → metadata-1j1zm9Cx.d.cts} +1 -1
- package/dist/{metadata-frJqeeSB.d.cts → metadata-BXpjrAS-.d.ts} +1 -1
- package/dist/{mimetype-uF-RHNpR.d.ts → mimetype-BfkwTeaW.d.ts} +1 -1
- package/dist/{mimetype-BcLX0N-N.d.cts → mimetype-CPNMj04s.d.cts} +1 -1
- package/dist/mimetype.d.cts +1 -1
- package/dist/mimetype.d.ts +1 -1
- package/dist/model/package.d.cts +1 -113
- package/dist/model/package.d.ts +1 -113
- package/dist/package-BUojjTXf.d.ts +114 -0
- package/dist/package-L24lkba-.d.cts +114 -0
- package/dist/package-io/read.d.cts +1 -1
- package/dist/package-io/read.d.ts +1 -1
- package/dist/package-io/write.d.cts +1 -1
- package/dist/package-io/write.d.ts +1 -1
- package/dist/paragraph-6hzAZpmi.d.ts +16 -0
- package/dist/paragraph-BBmSl_sK.d.cts +16 -0
- package/dist/read-B4238IGr.d.cts +12 -0
- package/dist/{read-DrdmKX0x.d.cts → read-BV2an1ok.d.cts} +1 -1
- package/dist/{read-DOuXgPhP.d.ts → read-BnN7u9Y2.d.ts} +1 -1
- package/dist/{read-DhLNXgiM.d.ts → read-CMDEXqGw.d.ts} +1 -1
- package/dist/{read-YSIwlhrk.d.ts → read-CTfeWaWq.d.cts} +1 -1
- package/dist/read-CdvX2qnz.d.ts +12 -0
- package/dist/read-Cs1ktkWB.d.cts +15 -0
- package/dist/{read-BoIUENWq.d.ts → read-CvjbdgH3.d.ts} +1 -1
- package/dist/read-DHuiGh_y.d.ts +15 -0
- package/dist/{read-BM8KaFQS.d.cts → read-DOYWO6BM.d.cts} +1 -1
- package/dist/{read-xCmo7cec.d.cts → read-DUCm1nUv.d.cts} +1 -1
- package/dist/{read-BkFbEves.d.ts → read-DYYxbvfo.d.ts} +1 -1
- package/dist/{read-KpU38maT.d.cts → read-Db_GZ0ZH.d.ts} +1 -1
- package/dist/{read-CFMsXSl7.d.cts → read-DzmMJPHd.d.cts} +1 -1
- package/dist/{read-B9zz_ax1.d.ts → read-lc0t0UHK.d.ts} +1 -1
- package/dist/{read-DNNf5_6n.d.cts → read-ydLJ8bid.d.cts} +1 -1
- package/dist/{registry-R43n1hcL.d.ts → registry-BVeEpUMI.d.ts} +1 -1
- package/dist/{registry-Dy6pjoh3.d.cts → registry-CaJpWDke.d.cts} +1 -1
- package/dist/{report-MpwUgXbA.d.ts → report-D6WNYaVn.d.cts} +1 -1
- package/dist/{report-BuCJ7_YU.d.cts → report-DbslT2OR.d.ts} +1 -1
- package/dist/{shapes-BqcccDK8.d.cts → shapes-8o3NjBLU.d.cts} +3 -3
- package/dist/{shapes-BB59aIC8.d.ts → shapes-CCB8ydqD.d.ts} +3 -3
- package/dist/styles/registry.d.cts +1 -1
- package/dist/styles/registry.d.ts +1 -1
- package/dist/{subdocument-CIxH3a5V.d.cts → subdocument-BwW3FZC_.d.ts} +1 -1
- package/dist/{subdocument-DQNQF7wV.d.ts → subdocument-yY8ASE4N.d.cts} +1 -1
- package/dist/{table-sweV3r9n.d.cts → table-BH_Q2n_N.d.cts} +1 -1
- package/dist/{table-D81TZyBn.d.ts → table-ByOoGcq_.d.ts} +1 -1
- package/dist/{text-Cal14ZaX.d.cts → text-BAi1tapc.d.cts} +3 -1
- package/dist/{text-CkNojpZm.d.ts → text-gJ5R0q3u.d.ts} +3 -1
- package/dist/typed/draw/embedded.cjs +38 -0
- package/dist/typed/draw/embedded.d.cts +2 -2
- package/dist/typed/draw/embedded.d.ts +2 -2
- package/dist/typed/draw/embedded.js +39 -2
- package/dist/typed/draw/shapes.cjs +20 -3
- package/dist/typed/draw/shapes.d.cts +1 -1
- package/dist/typed/draw/shapes.d.ts +1 -1
- package/dist/typed/draw/shapes.js +20 -3
- package/dist/typed/formula/read.d.cts +1 -1
- package/dist/typed/formula/read.d.ts +1 -1
- package/dist/typed/odb/form.cjs +2 -59
- package/dist/typed/odb/form.d.cts +2 -2
- package/dist/typed/odb/form.d.ts +2 -2
- package/dist/typed/odb/form.js +3 -60
- package/dist/typed/odb/read.d.cts +1 -1
- package/dist/typed/odb/read.d.ts +1 -1
- package/dist/typed/odb/report.d.cts +1 -1
- package/dist/typed/odb/report.d.ts +1 -1
- package/dist/typed/odb/subdocument.d.cts +1 -1
- package/dist/typed/odb/subdocument.d.ts +1 -1
- package/dist/typed/odg/read.d.cts +1 -1
- package/dist/typed/odg/read.d.ts +1 -1
- package/dist/typed/odm/read.d.cts +1 -1
- package/dist/typed/odm/read.d.ts +1 -1
- package/dist/typed/odp/read.d.cts +1 -1
- package/dist/typed/odp/read.d.ts +1 -1
- package/dist/typed/ods/read.cjs +28 -7
- package/dist/typed/ods/read.d.cts +1 -1
- package/dist/typed/ods/read.d.ts +1 -1
- package/dist/typed/ods/read.js +29 -8
- package/dist/typed/odt/read.cjs +215 -15
- package/dist/typed/odt/read.d.cts +2 -2
- package/dist/typed/odt/read.d.ts +2 -2
- package/dist/typed/odt/read.js +215 -15
- package/dist/typed/shared/cascade.d.cts +1 -1
- package/dist/typed/shared/cascade.d.ts +1 -1
- package/dist/typed/shared/constructs.cjs +392 -0
- package/dist/typed/shared/constructs.d.cts +2 -0
- package/dist/typed/shared/constructs.d.ts +2 -0
- package/dist/typed/shared/constructs.js +374 -0
- package/dist/typed/shared/forms.cjs +128 -0
- package/dist/typed/shared/forms.d.cts +2 -0
- package/dist/typed/shared/forms.d.ts +2 -0
- package/dist/typed/shared/forms.js +126 -0
- package/dist/typed/shared/list.d.cts +1 -1
- package/dist/typed/shared/list.d.ts +1 -1
- package/dist/typed/shared/masterpage.d.cts +1 -1
- package/dist/typed/shared/masterpage.d.ts +1 -1
- package/dist/typed/shared/metadata.d.cts +1 -1
- package/dist/typed/shared/metadata.d.ts +1 -1
- package/dist/typed/shared/paragraph.cjs +189 -10
- package/dist/typed/shared/paragraph.d.cts +2 -2
- package/dist/typed/shared/paragraph.d.ts +2 -2
- package/dist/typed/shared/paragraph.js +192 -13
- package/dist/typed/shared/table.d.cts +1 -1
- package/dist/typed/shared/table.d.ts +1 -1
- package/dist/typed/shared/text.cjs +57 -2
- package/dist/typed/shared/text.d.cts +2 -2
- package/dist/typed/shared/text.d.ts +2 -2
- package/dist/typed/shared/text.js +56 -3
- package/dist/{write-C0nwVuPI.d.ts → write-BxVkPZID.d.ts} +1 -1
- package/dist/{write-Dfb2tirK.d.cts → write-D3kyj1Xw.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/embedded-CNMqOrnt.d.ts +0 -13
- package/dist/embedded-D7Kr1Sce.d.cts +0 -13
- package/dist/form-BsAAx5-p.d.ts +0 -31
- package/dist/form-DSIbHxog.d.cts +0 -31
- package/dist/paragraph-9ii2naJC.d.cts +0 -7
- package/dist/paragraph-DWNnedIE.d.ts +0 -7
- package/dist/read-B4zS8bGb.d.ts +0 -11
- package/dist/read-BHpPvhzR.d.cts +0 -11
- package/dist/read-C6MhadqG.d.ts +0 -11
- package/dist/read-CszvDMMt.d.cts +0 -11
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Under active development. Built and shipped:
|
|
|
59
59
|
- **Style interning** (`src/styles/`) — `StyleRegistry` adopts existing automatic styles, finds-or-mints on `intern()`, fingerprints on canonical serialized properties (never `JSON.stringify`), collision-checked across all four style containers.
|
|
60
60
|
- **Shared typed primitives** (`src/typed/shared/`) — unit parsing, A1 cell-reference computation with repeat-count cursor advancement, colour/geometry/master-page parsing into `document-schema.js` types, whitespace-run decoding, the read-side style cascade, shared `readOdfParagraph`/`readOdfTable`, the `draw:transform`/`draw:g` group-flattening geometry resolver, an `svg:d`/`draw:points` path parser, and `meta.xml` reading.
|
|
61
61
|
- **Typed readers, at two levels** — `readOdt`/`readOdp`/`readOdg`/`readOds`/`readOdfFormula` resolve a `Package` into a `document-schema.js` **`DocumentPackage`**: the single hierarchical artefact, with a minted styles table. Beneath each sits its `*Content` sibling (`readOdtContent`, `readOdpContent`, `readOdgContent`, `readOdsContent`, `readOdfFormulaContent`) producing the flat `ContentDocument`-level shape instead. See [Reading a document](#reading-a-document).
|
|
62
|
-
- **What each reader actually covers** — wordprocessing (`readOdt`), presentation (`readOdp`), drawing (`readOdg`: vector primitives in `draw:z-index`-aware paint order), spreadsheet (`readOds`: every `office:value-type`, cell/page-anchored images, and embedded sub-documents), each expressed in `document-schema.js`'s own `ContentSection`/`ContentSlide`/`ContentDrawPage`/`ContentSheet` vocabulary.
|
|
62
|
+
- **What each reader actually covers** — wordprocessing (`readOdt`), presentation (`readOdp`), drawing (`readOdg`: vector primitives in `draw:z-index`-aware paint order), spreadsheet (`readOds`: every `office:value-type`, cell/page-anchored images, and embedded sub-documents including charts), each expressed in `document-schema.js`'s own `ContentSection`/`ContentSlide`/`ContentDrawPage`/`ContentSheet` vocabulary — plus the fidelity construct vocabulary in `readOdt` (fields, bookmarks, tracked changes, notes, annotations, divisions, index wrappers, forms, and anchored frames; see [Fidelity constructs](#fidelity-constructs)).
|
|
63
63
|
- **`readOdfFormulaMathMl`** — resolves a standalone/embedded `.odf` formula's bare-MathML `content.xml` into raw MathML nodes plus a StarMath annotation, with no pivot shaping at all. **`readOdfFormulaContent`** wraps that into a real `'formula'`-kind `ContentDocument`, and **`readOdfFormula`** into a `DocumentPackage`.
|
|
64
64
|
- **`readOdm`** — resolves a `.odm` master document into an ordered list of chapter references (`{ name, href, filterName? }`); chapters are genuinely external `.odt` files by ODF design, never cached.
|
|
65
65
|
- **`readOdbInventory`** — resolves a `.odb` into connection info, table names, query definitions (`{ name, command, escapeProcessing? }` with real SQL text), and form/report `{ name, href }` pairs. A sub-document directory is named after an opaque *persistent* name (`forms/Obj11`), not the user-visible name.
|
|
@@ -232,8 +232,22 @@ Layered from a lossless core outward, mirroring `ooxml.js`:
|
|
|
232
232
|
- **Every `ContentShape`/`ContentVector` carries a resolved `paintOrder`** so true relative paint order survives across the independently-ordered `shapes`/`vectors` arrays.
|
|
233
233
|
- **`svg:fill-rule` and `draw:stroke` map onto `ContentVector.fillRule`/`ContentStroke.style`.** A dotted pattern and `"double"` stroke have no ODF vector-stroke counterpart and remain unread.
|
|
234
234
|
- **`readOdsContent`/`readTableCell` resolve cell `background`/`borders`/`alignment`/`verticalAlignment` from the real style cascade.** An explicit `fo:border-*` of `"none"`/`"hidden"` clears an inherited edge.
|
|
235
|
-
- **`readOdsContent` reads sheet-anchored drawings** — cell-anchored `draw:frame`s (coordinates relative to the cell) and page-anchored ones (in `table:shapes`). A sheet cannot carry a floating text box
|
|
235
|
+
- **`readOdsContent` reads sheet-anchored drawings** — cell-anchored `draw:frame`s (coordinates relative to the cell) and page-anchored ones (in `table:shapes`). An embedded chart resolves as a `chart`-kind object whose document is a frame-sized drawing page carrying the chart's own cached data table, with the `chart:chart` element quarantined in residue. A sheet cannot carry a floating text box or bare vector; each is skipped.
|
|
236
236
|
- **`readDrawObjectReference` resolves a frame's embedded sub-document kind from its own `content.xml`, not the manifest.** A `draw:object` must be checked *before* the frame's preview image, since an embedded-object frame also carries a preview `draw:image`.
|
|
237
|
+
|
|
238
|
+
## Fidelity constructs
|
|
239
|
+
|
|
240
|
+
`readOdt` reads ODF's fidelity constructs into `document-schema.js`'s harmonised construct vocabulary — the semantic channel of the family's two-channel fidelity model (the quarantined residue channel is the other half). No real-producer fixture in this repository exercises these rows yet: every fixture below the unit suites is programmatic, built to the OASIS element grammar, and real-producer verification is outstanding.
|
|
241
|
+
|
|
242
|
+
- **Fields** — every inline field element (the simple set, the variable/user-field/sequence instance families, the database displays) reads as ordinary runs carrying its cached text plus a run-level field extent on the paragraph, instruction being the serialised element and `cachedResult` its own text content. Field master declarations (`text:*-decls`) read into the package-root definitions table, keyed per family.
|
|
243
|
+
- **Bookmarks and tracked changes** — paired marker halves at run scope pair inside one paragraph; halves at paragraph edges pair across blocks into `constructStart`/`constructEnd` markers. Change markers resolve their `text:change-id` against the `text:changed-region` definitions (either id spelling, `xml:id` today and ODF 1.0's `text:id`), carrying author and date as provenance.
|
|
244
|
+
- **Notes and annotations** — a `text:note`'s citation becomes a run, its body a definitions entry, an anchor extent naming both; an `office:annotation` does the same and pairs with `office:annotation-end` by `office:name` over a range, falling back to a point anchor when no end arrives.
|
|
245
|
+
- **Divisions and index wrappers** — `text:section` brackets its blocks as a division construct (name, protected, column count, and a `text:section-source`'s external-chapter link); the seven index wrappers bracket their cached `text:index-body` blocks as `index` content controls, with the wrapper's `*-source` build rules quarantined in residue.
|
|
246
|
+
- **Forms** — `office:forms` in an ordinary text document reads as point content controls in pre-order through the same form-tree walker the `.odb` reader uses; `form:properties` bags quarantine into residue.
|
|
247
|
+
- **Anchored frames** — a `draw:frame` in text flow lifts to blocks after its paragraph: images, text-box content, and embedded objects (formula, drawing, presentation, chart; a spreadsheet degrades to its preview image — reading it would need the odt→ods reader edge this package deliberately refuses).
|
|
248
|
+
- **Style-side tenants** — `number:*` data styles and `office:font-face-decls` read into the definitions table from both parts; a paragraph style's unmodellable properties quarantine as per-node residue.
|
|
249
|
+
|
|
250
|
+
Every read-side construct has no write-side counterpart because this package's typed layer is read-only — the honest asymmetry of a reader with no content writer; the lossless `encodePackage` layer remains the byte-fidelity tier.
|
|
237
251
|
- **An embedded Math object in a spreadsheet cell reads as `objectKind: 'formula'`** — its `content.xml` root *is* the MathML root, so `readDrawObjectReference` falls back to `findMathRoot` and dispatches to `readOdfFormulaContent`.
|
|
238
252
|
- **A `draw:frame`'s alternative text (`svg:title`, falling back to `svg:desc`) reads into `ContentImageBlock.altText`.**
|
|
239
253
|
- **`readOdbInventory`'s `queries` carry real `db:command` SQL text**, not just names — a breaking rename from `string[]` to `OdbQueryInfo[]`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
3
|
import { n as StyleProperties } from "./properties-BF_Fv6B3.cjs";
|
|
4
|
-
import { i as StyleFamily } from "./registry-
|
|
4
|
+
import { i as StyleFamily } from "./registry-CaJpWDke.cjs";
|
|
5
5
|
//#region src/typed/shared/cascade.d.ts
|
|
6
6
|
interface CascadeDiagnostic {
|
|
7
7
|
severity: 'warning';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
3
|
import { n as StyleProperties } from "./properties-DjAIdPry.js";
|
|
4
|
-
import { i as StyleFamily } from "./registry-
|
|
4
|
+
import { i as StyleFamily } from "./registry-BVeEpUMI.js";
|
|
5
5
|
//#region src/typed/shared/cascade.d.ts
|
|
6
6
|
interface CascadeDiagnostic {
|
|
7
7
|
severity: 'warning';
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { Package } from "./
|
|
3
|
-
import "./read-
|
|
4
|
-
import "./write-
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
+
import "./read-DzmMJPHd.cjs";
|
|
4
|
+
import "./write-D3kyj1Xw.cjs";
|
|
5
5
|
import "./parse-CP5FLZqv.cjs";
|
|
6
6
|
import "./build-XSm3I8LT.cjs";
|
|
7
|
-
import "./mimetype-
|
|
7
|
+
import "./mimetype-CPNMj04s.cjs";
|
|
8
8
|
import "./fragment-B1og_8uA.cjs";
|
|
9
|
-
import "./manifest-
|
|
9
|
+
import "./manifest-BALwu2JR.cjs";
|
|
10
10
|
import "./properties-BF_Fv6B3.cjs";
|
|
11
11
|
import "./serialize-9xvti0FF.cjs";
|
|
12
|
-
import "./registry-
|
|
12
|
+
import "./registry-CaJpWDke.cjs";
|
|
13
13
|
import "./span-BtmvlqZH.cjs";
|
|
14
14
|
import "./query-P-Y5DK0-.cjs";
|
|
15
15
|
import "./color-CqXjt_to.cjs";
|
|
16
16
|
import "./geometry-lKWJ_ifA.cjs";
|
|
17
|
-
import "./text-
|
|
18
|
-
import "./cascade-
|
|
19
|
-
import "./metadata-
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./table-
|
|
17
|
+
import "./text-BAi1tapc.cjs";
|
|
18
|
+
import "./cascade-BmvsXcAz.cjs";
|
|
19
|
+
import "./metadata-1j1zm9Cx.cjs";
|
|
20
|
+
import "./list-KZeXA0mR.cjs";
|
|
21
|
+
import "./paragraph-BBmSl_sK.cjs";
|
|
22
|
+
import "./table-BH_Q2n_N.cjs";
|
|
23
23
|
import "./transform-DKEjydnm.cjs";
|
|
24
|
-
import "./masterpage-
|
|
24
|
+
import "./masterpage-XJ2v2khe.cjs";
|
|
25
25
|
import "./path-DE7wkIcz.cjs";
|
|
26
|
-
import "./shapes-
|
|
27
|
-
import "./embedded-
|
|
28
|
-
import "./read-
|
|
29
|
-
import "./read-
|
|
30
|
-
import "./read-
|
|
31
|
-
import "./read-
|
|
32
|
-
import "./read-
|
|
33
|
-
import "./read-
|
|
34
|
-
import "./read-
|
|
35
|
-
import "./subdocument-
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
26
|
+
import "./shapes-8o3NjBLU.cjs";
|
|
27
|
+
import "./embedded-J3M3kDvY.cjs";
|
|
28
|
+
import "./read-CTfeWaWq.cjs";
|
|
29
|
+
import "./read-Cs1ktkWB.cjs";
|
|
30
|
+
import "./read-DOYWO6BM.cjs";
|
|
31
|
+
import "./read-B4238IGr.cjs";
|
|
32
|
+
import "./read-DUCm1nUv.cjs";
|
|
33
|
+
import "./read-ydLJ8bid.cjs";
|
|
34
|
+
import "./read-BV2an1ok.cjs";
|
|
35
|
+
import "./subdocument-yY8ASE4N.cjs";
|
|
36
|
+
import "./forms-cIjw-Jf-.cjs";
|
|
37
|
+
import "./form-BGCT81ss.cjs";
|
|
38
|
+
import "./report-D6WNYaVn.cjs";
|
|
38
39
|
import { z } from "zod";
|
|
39
40
|
import { Alignment as Alignment$1, AlignmentSchema, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
|
|
40
41
|
//#region src/codec.d.ts
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { Package } from "./
|
|
3
|
-
import "./read-
|
|
4
|
-
import "./write-
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
+
import "./read-CMDEXqGw.js";
|
|
4
|
+
import "./write-BxVkPZID.js";
|
|
5
5
|
import "./parse-A8_8sdpX.js";
|
|
6
6
|
import "./build-Z1KRkSEB.js";
|
|
7
|
-
import "./mimetype-
|
|
7
|
+
import "./mimetype-BfkwTeaW.js";
|
|
8
8
|
import "./fragment-B1ZV7T5Z.js";
|
|
9
|
-
import "./manifest-
|
|
9
|
+
import "./manifest-CP1sqyGU.js";
|
|
10
10
|
import "./properties-DjAIdPry.js";
|
|
11
11
|
import "./serialize-DvaE_t5D.js";
|
|
12
|
-
import "./registry-
|
|
12
|
+
import "./registry-BVeEpUMI.js";
|
|
13
13
|
import "./span-KXroEGuH.js";
|
|
14
14
|
import "./query-sECN-7vU.js";
|
|
15
15
|
import "./color-CqXjt_to.js";
|
|
16
16
|
import "./geometry-DnhkIhAM.js";
|
|
17
|
-
import "./text-
|
|
18
|
-
import "./cascade-
|
|
19
|
-
import "./metadata-
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./table-
|
|
17
|
+
import "./text-gJ5R0q3u.js";
|
|
18
|
+
import "./cascade-rhqUQrUa.js";
|
|
19
|
+
import "./metadata-BXpjrAS-.js";
|
|
20
|
+
import "./list-Qeuawtew.js";
|
|
21
|
+
import "./paragraph-6hzAZpmi.js";
|
|
22
|
+
import "./table-ByOoGcq_.js";
|
|
23
23
|
import "./transform-C7GrZZdR.js";
|
|
24
|
-
import "./masterpage-
|
|
24
|
+
import "./masterpage-C1McDhMv.js";
|
|
25
25
|
import "./path-DE7wkIcz.js";
|
|
26
|
-
import "./shapes-
|
|
27
|
-
import "./embedded-
|
|
28
|
-
import "./read-
|
|
29
|
-
import "./read-
|
|
30
|
-
import "./read-
|
|
31
|
-
import "./read-
|
|
32
|
-
import "./read-
|
|
33
|
-
import "./read-
|
|
34
|
-
import "./read-
|
|
35
|
-
import "./subdocument-
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
26
|
+
import "./shapes-CCB8ydqD.js";
|
|
27
|
+
import "./embedded-BPhuSEEI.js";
|
|
28
|
+
import "./read-Db_GZ0ZH.js";
|
|
29
|
+
import "./read-DHuiGh_y.js";
|
|
30
|
+
import "./read-lc0t0UHK.js";
|
|
31
|
+
import "./read-CdvX2qnz.js";
|
|
32
|
+
import "./read-BnN7u9Y2.js";
|
|
33
|
+
import "./read-DYYxbvfo.js";
|
|
34
|
+
import "./read-CvjbdgH3.js";
|
|
35
|
+
import "./subdocument-BwW3FZC_.js";
|
|
36
|
+
import "./forms-D1-0spCe.js";
|
|
37
|
+
import "./form-D3H5H2NL.js";
|
|
38
|
+
import "./report-DbslT2OR.js";
|
|
38
39
|
import { z } from "zod";
|
|
39
40
|
import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
|
|
40
41
|
//#region src/codec.d.ts
|
package/dist/codec.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-BAz7YIru.cjs";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
package/dist/codec.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-BxxFEqvT.js";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
+
import { AnchorDescriptor, ConstructDescriptor, ContentBlock, ContentControlDescriptor, DefinitionEntry, DivisionDescriptor, FieldDescriptor, ProvenanceDescriptor, RunConstructExtent, SourceResidue } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/constructs.d.ts
|
|
5
|
+
declare function odfFieldDescriptor(element: XmlElement): FieldDescriptor;
|
|
6
|
+
declare function odfBookmarkAnchorDescriptor(name: string): AnchorDescriptor;
|
|
7
|
+
type OdfResidueFormat = 'odt' | 'ods' | 'odp' | 'odg' | 'odm' | 'odb' | 'odf';
|
|
8
|
+
declare function odfResidue(format: OdfResidueFormat, ...elements: XmlElement[]): SourceResidue;
|
|
9
|
+
declare function odfDivisionDescriptor(sectionElement: XmlElement, pkg: Package): DivisionDescriptor;
|
|
10
|
+
declare const ODF_INDEX_WRAPPER_TAGS: ReadonlySet<string>;
|
|
11
|
+
declare function isOdfIndexWrapper(element: XmlElement): boolean;
|
|
12
|
+
declare function odfIndexControlDescriptor(wrapper: XmlElement): ContentControlDescriptor;
|
|
13
|
+
type OdfMarkerKind = 'bookmark' | 'change' | 'annotation';
|
|
14
|
+
interface OdfMarkerHalf {
|
|
15
|
+
readonly kind: OdfMarkerKind;
|
|
16
|
+
readonly side: 'start' | 'end';
|
|
17
|
+
readonly key: string;
|
|
18
|
+
readonly element: XmlElement;
|
|
19
|
+
readonly parent: XmlElement;
|
|
20
|
+
readonly runPosition: number;
|
|
21
|
+
readonly order: number;
|
|
22
|
+
readonly descriptor: () => RunConstructExtent['descriptor'] | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare function odfMarkerHalfEventIndex(half: OdfMarkerHalf, paragraphElement: XmlElement, paragraphStartIndex: number, liftedBlocksBeforeHalf?: number): number | undefined;
|
|
25
|
+
declare function isOdfBlockScopedHalf(half: OdfMarkerHalf, paragraphElement: XmlElement): boolean;
|
|
26
|
+
interface OdfDefinitionsSink {
|
|
27
|
+
readonly entries: Record<string, DefinitionEntry>;
|
|
28
|
+
nextNoteOrdinal: number;
|
|
29
|
+
nextAnnotationOrdinal: number;
|
|
30
|
+
}
|
|
31
|
+
declare function pairOdfMarkerHalves(halves: readonly OdfMarkerHalf[], paragraphElement: XmlElement): {
|
|
32
|
+
extents: RunConstructExtent[];
|
|
33
|
+
paired: Set<XmlElement>;
|
|
34
|
+
};
|
|
35
|
+
interface OdfConstructExtent {
|
|
36
|
+
readonly startIndex: number;
|
|
37
|
+
readonly endIndex: number;
|
|
38
|
+
readonly order: number;
|
|
39
|
+
readonly descriptor: ConstructDescriptor;
|
|
40
|
+
}
|
|
41
|
+
declare function insertOdfConstructMarkers(blocks: readonly ContentBlock[], extents: readonly OdfConstructExtent[]): ContentBlock[];
|
|
42
|
+
interface OdfMarkerEvent {
|
|
43
|
+
readonly kind: OdfMarkerKind;
|
|
44
|
+
readonly side: 'start' | 'end';
|
|
45
|
+
readonly key: string;
|
|
46
|
+
readonly index: number;
|
|
47
|
+
readonly qualified: boolean;
|
|
48
|
+
readonly order: number;
|
|
49
|
+
readonly descriptor: () => RunConstructExtent['descriptor'] | undefined;
|
|
50
|
+
readonly element: XmlElement;
|
|
51
|
+
}
|
|
52
|
+
declare function resolveOdfMarkerEvents(events: readonly OdfMarkerEvent[]): {
|
|
53
|
+
extents: OdfConstructExtent[];
|
|
54
|
+
paired: Set<XmlElement>;
|
|
55
|
+
};
|
|
56
|
+
declare function odfChangedRegionId(region: XmlElement): string | undefined;
|
|
57
|
+
declare function collectOdfProvenanceRegions(nodes: readonly XmlNode[], out: Map<string, ProvenanceDescriptor>): void;
|
|
58
|
+
declare function collectOdfFieldMasterDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
59
|
+
declare function collectOdfDataStyleDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
60
|
+
declare function collectOdfFontFaceDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
61
|
+
declare function collectOdfNamedExpressions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { pairOdfMarkerHalves as C, odfResidue as S, odfChangedRegionId as _, OdfMarkerHalf as a, odfIndexControlDescriptor as b, collectOdfDataStyleDefinitions as c, collectOdfNamedExpressions as d, collectOdfProvenanceRegions as f, odfBookmarkAnchorDescriptor as g, isOdfIndexWrapper as h, OdfMarkerEvent as i, collectOdfFieldMasterDefinitions as l, isOdfBlockScopedHalf as m, OdfConstructExtent as n, OdfMarkerKind as o, insertOdfConstructMarkers as p, OdfDefinitionsSink as r, OdfResidueFormat as s, ODF_INDEX_WRAPPER_TAGS as t, collectOdfFontFaceDefinitions as u, odfDivisionDescriptor as v, resolveOdfMarkerEvents as w, odfMarkerHalfEventIndex as x, odfFieldDescriptor as y };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
+
import { AnchorDescriptor, ConstructDescriptor, ContentBlock, ContentControlDescriptor, DefinitionEntry, DivisionDescriptor, FieldDescriptor, ProvenanceDescriptor, RunConstructExtent, SourceResidue } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/constructs.d.ts
|
|
5
|
+
declare function odfFieldDescriptor(element: XmlElement): FieldDescriptor;
|
|
6
|
+
declare function odfBookmarkAnchorDescriptor(name: string): AnchorDescriptor;
|
|
7
|
+
type OdfResidueFormat = 'odt' | 'ods' | 'odp' | 'odg' | 'odm' | 'odb' | 'odf';
|
|
8
|
+
declare function odfResidue(format: OdfResidueFormat, ...elements: XmlElement[]): SourceResidue;
|
|
9
|
+
declare function odfDivisionDescriptor(sectionElement: XmlElement, pkg: Package): DivisionDescriptor;
|
|
10
|
+
declare const ODF_INDEX_WRAPPER_TAGS: ReadonlySet<string>;
|
|
11
|
+
declare function isOdfIndexWrapper(element: XmlElement): boolean;
|
|
12
|
+
declare function odfIndexControlDescriptor(wrapper: XmlElement): ContentControlDescriptor;
|
|
13
|
+
type OdfMarkerKind = 'bookmark' | 'change' | 'annotation';
|
|
14
|
+
interface OdfMarkerHalf {
|
|
15
|
+
readonly kind: OdfMarkerKind;
|
|
16
|
+
readonly side: 'start' | 'end';
|
|
17
|
+
readonly key: string;
|
|
18
|
+
readonly element: XmlElement;
|
|
19
|
+
readonly parent: XmlElement;
|
|
20
|
+
readonly runPosition: number;
|
|
21
|
+
readonly order: number;
|
|
22
|
+
readonly descriptor: () => RunConstructExtent['descriptor'] | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare function odfMarkerHalfEventIndex(half: OdfMarkerHalf, paragraphElement: XmlElement, paragraphStartIndex: number, liftedBlocksBeforeHalf?: number): number | undefined;
|
|
25
|
+
declare function isOdfBlockScopedHalf(half: OdfMarkerHalf, paragraphElement: XmlElement): boolean;
|
|
26
|
+
interface OdfDefinitionsSink {
|
|
27
|
+
readonly entries: Record<string, DefinitionEntry>;
|
|
28
|
+
nextNoteOrdinal: number;
|
|
29
|
+
nextAnnotationOrdinal: number;
|
|
30
|
+
}
|
|
31
|
+
declare function pairOdfMarkerHalves(halves: readonly OdfMarkerHalf[], paragraphElement: XmlElement): {
|
|
32
|
+
extents: RunConstructExtent[];
|
|
33
|
+
paired: Set<XmlElement>;
|
|
34
|
+
};
|
|
35
|
+
interface OdfConstructExtent {
|
|
36
|
+
readonly startIndex: number;
|
|
37
|
+
readonly endIndex: number;
|
|
38
|
+
readonly order: number;
|
|
39
|
+
readonly descriptor: ConstructDescriptor;
|
|
40
|
+
}
|
|
41
|
+
declare function insertOdfConstructMarkers(blocks: readonly ContentBlock[], extents: readonly OdfConstructExtent[]): ContentBlock[];
|
|
42
|
+
interface OdfMarkerEvent {
|
|
43
|
+
readonly kind: OdfMarkerKind;
|
|
44
|
+
readonly side: 'start' | 'end';
|
|
45
|
+
readonly key: string;
|
|
46
|
+
readonly index: number;
|
|
47
|
+
readonly qualified: boolean;
|
|
48
|
+
readonly order: number;
|
|
49
|
+
readonly descriptor: () => RunConstructExtent['descriptor'] | undefined;
|
|
50
|
+
readonly element: XmlElement;
|
|
51
|
+
}
|
|
52
|
+
declare function resolveOdfMarkerEvents(events: readonly OdfMarkerEvent[]): {
|
|
53
|
+
extents: OdfConstructExtent[];
|
|
54
|
+
paired: Set<XmlElement>;
|
|
55
|
+
};
|
|
56
|
+
declare function odfChangedRegionId(region: XmlElement): string | undefined;
|
|
57
|
+
declare function collectOdfProvenanceRegions(nodes: readonly XmlNode[], out: Map<string, ProvenanceDescriptor>): void;
|
|
58
|
+
declare function collectOdfFieldMasterDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
59
|
+
declare function collectOdfDataStyleDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
60
|
+
declare function collectOdfFontFaceDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
61
|
+
declare function collectOdfNamedExpressions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { pairOdfMarkerHalves as C, odfResidue as S, odfChangedRegionId as _, OdfMarkerHalf as a, odfIndexControlDescriptor as b, collectOdfDataStyleDefinitions as c, collectOdfNamedExpressions as d, collectOdfProvenanceRegions as f, odfBookmarkAnchorDescriptor as g, isOdfIndexWrapper as h, OdfMarkerEvent as i, collectOdfFieldMasterDefinitions as l, isOdfBlockScopedHalf as m, OdfConstructExtent as n, OdfMarkerKind as o, insertOdfConstructMarkers as p, OdfDefinitionsSink as r, OdfResidueFormat as s, ODF_INDEX_WRAPPER_TAGS as t, collectOdfFontFaceDefinitions as u, odfDivisionDescriptor as v, resolveOdfMarkerEvents as w, odfMarkerHalfEventIndex as x, odfFieldDescriptor as y };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
+
import { s as OdfResidueFormat } from "./constructs-CJpDDQV0.js";
|
|
4
|
+
import { Box, ContentDocument, ContentEmbeddedObjectKind, SourceResidue } from "document-schema.js";
|
|
5
|
+
//#region src/typed/draw/embedded.d.ts
|
|
6
|
+
type EmbeddedDocumentKind = ContentEmbeddedObjectKind;
|
|
7
|
+
interface EmbeddedDrawObject {
|
|
8
|
+
objectKind: EmbeddedDocumentKind;
|
|
9
|
+
package: Package;
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
declare function readOdfChartContent(chartPackage: Package, frame: Box, format: OdfResidueFormat): {
|
|
13
|
+
document: ContentDocument;
|
|
14
|
+
residue: SourceResidue | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare function readDrawObjectReference(frame: XmlElement, pkg: Package): EmbeddedDrawObject | undefined;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { readOdfChartContent as i, EmbeddedDrawObject as n, readDrawObjectReference as r, EmbeddedDocumentKind as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
+
import { s as OdfResidueFormat } from "./constructs-Dy_DMFs3.cjs";
|
|
4
|
+
import { Box, ContentDocument, ContentEmbeddedObjectKind, SourceResidue } from "document-schema.js";
|
|
5
|
+
//#region src/typed/draw/embedded.d.ts
|
|
6
|
+
type EmbeddedDocumentKind = ContentEmbeddedObjectKind;
|
|
7
|
+
interface EmbeddedDrawObject {
|
|
8
|
+
objectKind: EmbeddedDocumentKind;
|
|
9
|
+
package: Package;
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
declare function readOdfChartContent(chartPackage: Package, frame: Box, format: OdfResidueFormat): {
|
|
13
|
+
document: ContentDocument;
|
|
14
|
+
residue: SourceResidue | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare function readDrawObjectReference(frame: XmlElement, pkg: Package): EmbeddedDrawObject | undefined;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { readOdfChartContent as i, EmbeddedDrawObject as n, readDrawObjectReference as r, EmbeddedDocumentKind as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
+
import { t as OdtDocument } from "./read-Cs1ktkWB.cjs";
|
|
3
|
+
import { n as OdbFormDefinition } from "./forms-cIjw-Jf-.cjs";
|
|
4
|
+
//#region src/typed/odb/form.d.ts
|
|
5
|
+
interface OdbForm {
|
|
6
|
+
name: string;
|
|
7
|
+
href: string;
|
|
8
|
+
document: OdtDocument;
|
|
9
|
+
forms: OdbFormDefinition[];
|
|
10
|
+
}
|
|
11
|
+
declare function readOdbForm(pkg: Package, formName: string): OdbForm;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { readOdbForm as n, OdbForm as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
+
import { t as OdtDocument } from "./read-DHuiGh_y.js";
|
|
3
|
+
import { n as OdbFormDefinition } from "./forms-D1-0spCe.js";
|
|
4
|
+
//#region src/typed/odb/form.d.ts
|
|
5
|
+
interface OdbForm {
|
|
6
|
+
name: string;
|
|
7
|
+
href: string;
|
|
8
|
+
document: OdtDocument;
|
|
9
|
+
forms: OdbFormDefinition[];
|
|
10
|
+
}
|
|
11
|
+
declare function readOdbForm(pkg: Package, formName: string): OdbForm;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { readOdbForm as n, OdbForm as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { s as OdfResidueFormat } from "./constructs-CJpDDQV0.js";
|
|
3
|
+
import { ContentBlock } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/forms.d.ts
|
|
5
|
+
interface OdbFormControl {
|
|
6
|
+
tag: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
controlImplementation?: string;
|
|
9
|
+
dataField?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
controls: OdbFormControl[];
|
|
13
|
+
}
|
|
14
|
+
interface OdbFormDefinition {
|
|
15
|
+
name?: string;
|
|
16
|
+
command?: string;
|
|
17
|
+
commandType?: string;
|
|
18
|
+
datasource?: string;
|
|
19
|
+
filter?: string;
|
|
20
|
+
order?: string;
|
|
21
|
+
controls: OdbFormControl[];
|
|
22
|
+
subForms: OdbFormDefinition[];
|
|
23
|
+
}
|
|
24
|
+
declare function readOdfFormDefinitions(formsElement: XmlElement): OdbFormDefinition[];
|
|
25
|
+
declare function readOdfFormControlConstructs(formsElement: XmlElement, format: OdfResidueFormat): ContentBlock[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { readOdfFormDefinitions as i, OdbFormDefinition as n, readOdfFormControlConstructs as r, OdbFormControl as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { s as OdfResidueFormat } from "./constructs-Dy_DMFs3.cjs";
|
|
3
|
+
import { ContentBlock } from "document-schema.js";
|
|
4
|
+
//#region src/typed/shared/forms.d.ts
|
|
5
|
+
interface OdbFormControl {
|
|
6
|
+
tag: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
controlImplementation?: string;
|
|
9
|
+
dataField?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
controls: OdbFormControl[];
|
|
13
|
+
}
|
|
14
|
+
interface OdbFormDefinition {
|
|
15
|
+
name?: string;
|
|
16
|
+
command?: string;
|
|
17
|
+
commandType?: string;
|
|
18
|
+
datasource?: string;
|
|
19
|
+
filter?: string;
|
|
20
|
+
order?: string;
|
|
21
|
+
controls: OdbFormControl[];
|
|
22
|
+
subForms: OdbFormDefinition[];
|
|
23
|
+
}
|
|
24
|
+
declare function readOdfFormDefinitions(formsElement: XmlElement): OdbFormDefinition[];
|
|
25
|
+
declare function readOdfFormControlConstructs(formsElement: XmlElement, format: OdfResidueFormat): ContentBlock[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { readOdfFormDefinitions as i, OdbFormDefinition as n, readOdfFormControlConstructs as r, OdbFormControl as t };
|
package/dist/index.cjs
CHANGED
|
@@ -27,8 +27,8 @@ const require_typed_shared_a1 = require("./typed/shared/a1.cjs");
|
|
|
27
27
|
const require_typed_shared_geometry = require("./typed/shared/geometry.cjs");
|
|
28
28
|
const require_typed_shared_cascade = require("./typed/shared/cascade.cjs");
|
|
29
29
|
const require_typed_shared_metadata = require("./typed/shared/metadata.cjs");
|
|
30
|
-
const require_typed_shared_paragraph = require("./typed/shared/paragraph.cjs");
|
|
31
30
|
const require_typed_shared_list = require("./typed/shared/list.cjs");
|
|
31
|
+
const require_typed_shared_paragraph = require("./typed/shared/paragraph.cjs");
|
|
32
32
|
const require_typed_shared_table = require("./typed/shared/table.cjs");
|
|
33
33
|
const require_typed_shared_transform = require("./typed/shared/transform.cjs");
|
|
34
34
|
const require_typed_shared_masterpage = require("./typed/shared/masterpage.cjs");
|
|
@@ -38,8 +38,9 @@ const require_typed_formula_read = require("./typed/formula/read.cjs");
|
|
|
38
38
|
const require_typed_odb_subdocument = require("./typed/odb/subdocument.cjs");
|
|
39
39
|
const require_typed_draw_embedded = require("./typed/draw/embedded.cjs");
|
|
40
40
|
const require_typed_odp_read = require("./typed/odp/read.cjs");
|
|
41
|
-
const
|
|
41
|
+
const require_typed_shared_forms = require("./typed/shared/forms.cjs");
|
|
42
42
|
const require_typed_odg_read = require("./typed/odg/read.cjs");
|
|
43
|
+
const require_typed_odt_read = require("./typed/odt/read.cjs");
|
|
43
44
|
const require_typed_ods_read = require("./typed/ods/read.cjs");
|
|
44
45
|
const require_typed_odm_read = require("./typed/odm/read.cjs");
|
|
45
46
|
const require_typed_odb_read = require("./typed/odb/read.cjs");
|
|
@@ -140,6 +141,8 @@ exports.readMimetype = require_mimetype.readMimetype;
|
|
|
140
141
|
exports.readOdbForm = require_typed_odb_form.readOdbForm;
|
|
141
142
|
exports.readOdbInventory = require_typed_odb_read.readOdbInventory;
|
|
142
143
|
exports.readOdbReport = require_typed_odb_report.readOdbReport;
|
|
144
|
+
exports.readOdfFormControlConstructs = require_typed_shared_forms.readOdfFormControlConstructs;
|
|
145
|
+
exports.readOdfFormDefinitions = require_typed_shared_forms.readOdfFormDefinitions;
|
|
143
146
|
exports.readOdfFormula = require_typed_formula_read.readOdfFormula;
|
|
144
147
|
exports.readOdfFormulaContent = require_typed_formula_read.readOdfFormulaContent;
|
|
145
148
|
exports.readOdfFormulaMathMl = require_typed_formula_read.readOdfFormulaMathMl;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as parsePackage } from "./read-
|
|
4
|
-
import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "./write-
|
|
2
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-L24lkba-.cjs";
|
|
3
|
+
import { t as parsePackage } from "./read-DzmMJPHd.cjs";
|
|
4
|
+
import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "./write-D3kyj1Xw.cjs";
|
|
5
5
|
import { t as parseXml } from "./parse-CP5FLZqv.cjs";
|
|
6
6
|
import { t as buildXml } from "./build-XSm3I8LT.cjs";
|
|
7
7
|
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.cjs";
|
|
@@ -9,39 +9,40 @@ import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.cjs";
|
|
|
9
9
|
import { n as OdfNamespacePrefix, r as xmlnsAttributes, t as ODF_NAMESPACES } from "./ns-Cihto3Fx.cjs";
|
|
10
10
|
import { n as OdfExtension, r as mediaTypeForExtension, t as ODF_MEDIA_TYPES } from "./media-type-BOLkcHkJ.cjs";
|
|
11
11
|
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DjpnUZRp.cjs";
|
|
12
|
-
import { n as writeMimetype, t as readMimetype } from "./mimetype-
|
|
12
|
+
import { n as writeMimetype, t as readMimetype } from "./mimetype-CPNMj04s.cjs";
|
|
13
13
|
import { n as txt, t as el } from "./fragment-B1og_8uA.cjs";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.cjs";
|
|
15
|
-
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-
|
|
15
|
+
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-BALwu2JR.cjs";
|
|
16
16
|
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-BF_Fv6B3.cjs";
|
|
17
17
|
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-9xvti0FF.cjs";
|
|
18
|
-
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "./registry-
|
|
18
|
+
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "./registry-CaJpWDke.cjs";
|
|
19
19
|
import { t as ensureSpan } from "./span-BtmvlqZH.cjs";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-P-Y5DK0-.cjs";
|
|
21
21
|
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./units-7pCiECuP.cjs";
|
|
22
22
|
import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "./a1-5e9veCyu.cjs";
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.cjs";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-lKWJ_ifA.cjs";
|
|
25
|
-
import {
|
|
26
|
-
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-
|
|
27
|
-
import { n as readOdfMetadata, t as META_PART } from "./metadata-
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { r as readOdfTable } from "./table-
|
|
25
|
+
import { a as measureOdfNodeLength, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount } from "./text-BAi1tapc.cjs";
|
|
26
|
+
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-BmvsXcAz.cjs";
|
|
27
|
+
import { n as readOdfMetadata, t as META_PART } from "./metadata-1j1zm9Cx.cjs";
|
|
28
|
+
import { a as resolveOdfListKind, i as readOdfListParagraphs, n as OdfListParagraphReader, r as mintOdfListNumId, t as OdfListIdState } from "./list-KZeXA0mR.cjs";
|
|
29
|
+
import { n as readOdfParagraph } from "./paragraph-BBmSl_sK.cjs";
|
|
30
|
+
import { r as readOdfTable } from "./table-BH_Q2n_N.cjs";
|
|
31
31
|
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-DKEjydnm.cjs";
|
|
32
|
-
import { n as resolvePageLayoutProperties, t as resolveDrawPageSize } from "./masterpage-
|
|
32
|
+
import { n as resolvePageLayoutProperties, t as resolveDrawPageSize } from "./masterpage-XJ2v2khe.cjs";
|
|
33
33
|
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.cjs";
|
|
34
|
-
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-
|
|
35
|
-
import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "./embedded-
|
|
36
|
-
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-
|
|
37
|
-
import { n as
|
|
38
|
-
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-
|
|
39
|
-
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-
|
|
40
|
-
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-
|
|
41
|
-
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-
|
|
42
|
-
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-
|
|
43
|
-
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-
|
|
44
|
-
import { i as
|
|
45
|
-
import {
|
|
46
|
-
import { a as
|
|
47
|
-
|
|
34
|
+
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-8o3NjBLU.cjs";
|
|
35
|
+
import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "./embedded-J3M3kDvY.cjs";
|
|
36
|
+
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-CTfeWaWq.cjs";
|
|
37
|
+
import { i as readOdtContent, n as OdtReadOptions, r as readOdt, t as OdtDocument } from "./read-Cs1ktkWB.cjs";
|
|
38
|
+
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-DOYWO6BM.cjs";
|
|
39
|
+
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-B4238IGr.cjs";
|
|
40
|
+
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-DUCm1nUv.cjs";
|
|
41
|
+
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-ydLJ8bid.cjs";
|
|
42
|
+
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-BV2an1ok.cjs";
|
|
43
|
+
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-yY8ASE4N.cjs";
|
|
44
|
+
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-cIjw-Jf-.cjs";
|
|
45
|
+
import { n as readOdbForm, t as OdbForm } from "./form-BGCT81ss.cjs";
|
|
46
|
+
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-D6WNYaVn.cjs";
|
|
47
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-BAz7YIru.cjs";
|
|
48
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtReadOptions, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|