documents.js 1.84.0 → 1.85.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.
Files changed (61) hide show
  1. package/dist/edit/docx/content.cjs +10 -1
  2. package/dist/edit/docx/content.js +10 -1
  3. package/dist/edit/docx/paragraph.cjs +98 -0
  4. package/dist/edit/docx/paragraph.d.cts +12 -0
  5. package/dist/edit/docx/paragraph.d.ts +12 -0
  6. package/dist/edit/docx/paragraph.js +99 -1
  7. package/dist/edit/docx/props.cjs +1 -1
  8. package/dist/edit/docx/props.js +1 -1
  9. package/dist/edit/docx/table.cjs +119 -1
  10. package/dist/edit/docx/table.d.cts +8 -0
  11. package/dist/edit/docx/table.d.ts +8 -0
  12. package/dist/edit/docx/table.js +119 -1
  13. package/dist/edit/odg/page.d.cts +1 -1
  14. package/dist/edit/odg/page.d.ts +1 -1
  15. package/dist/edit/odp/shape.d.cts +1 -1
  16. package/dist/edit/odp/shape.d.ts +1 -1
  17. package/dist/edit/odp/slide.d.cts +2 -2
  18. package/dist/edit/odp/slide.d.ts +2 -2
  19. package/dist/edit/odt/content.cjs +7 -0
  20. package/dist/edit/odt/content.d.cts +2 -2
  21. package/dist/edit/odt/content.d.ts +2 -2
  22. package/dist/edit/odt/content.js +7 -0
  23. package/dist/edit/odt/editor.d.cts +3 -3
  24. package/dist/edit/odt/editor.d.ts +3 -3
  25. package/dist/edit/odt/list.d.cts +1 -1
  26. package/dist/edit/odt/list.d.ts +1 -1
  27. package/dist/edit/odt/paragraph.cjs +30 -0
  28. package/dist/edit/odt/paragraph.d.cts +1 -1
  29. package/dist/edit/odt/paragraph.d.ts +1 -1
  30. package/dist/edit/odt/paragraph.js +30 -0
  31. package/dist/edit/odt/table.cjs +105 -0
  32. package/dist/edit/odt/table.d.cts +2 -2
  33. package/dist/edit/odt/table.d.ts +2 -2
  34. package/dist/edit/odt/table.js +105 -2
  35. package/dist/edit/pptx/content.cjs +4 -0
  36. package/dist/edit/pptx/content.js +4 -0
  37. package/dist/edit/pptx/shape.cjs +3 -1
  38. package/dist/edit/pptx/shape.d.cts +1 -1
  39. package/dist/edit/pptx/shape.d.ts +1 -1
  40. package/dist/edit/pptx/shape.js +3 -1
  41. package/dist/edit/pptx/slide.d.cts +2 -2
  42. package/dist/edit/pptx/slide.d.ts +2 -2
  43. package/dist/edit/pptx/table.cjs +1 -1
  44. package/dist/edit/pptx/table.d.cts +1 -1
  45. package/dist/edit/pptx/table.d.ts +1 -1
  46. package/dist/edit/pptx/table.js +1 -1
  47. package/dist/index.d.cts +6 -6
  48. package/dist/index.d.ts +6 -6
  49. package/dist/{list-CYsXBdVG.d.cts → list-CxoEJwNO.d.cts} +1 -1
  50. package/dist/{list-DVRX7hm9.d.ts → list-DA1hCBVI.d.ts} +1 -1
  51. package/dist/{paragraph-Bg446o16.d.ts → paragraph-DV4_ZNGr.d.ts} +10 -0
  52. package/dist/{paragraph-BZIDHdnv.d.cts → paragraph-DXIJfPMw.d.cts} +10 -0
  53. package/dist/{shape-BhkP6HB8.d.cts → shape-BwBiRGha.d.cts} +2 -0
  54. package/dist/{shape-BjX3wlig.d.ts → shape-D5IoGzf9.d.ts} +2 -0
  55. package/dist/{shape-rvNMzcun.d.cts → shape-Dch9pDCf.d.cts} +2 -2
  56. package/dist/{shape-Be0LdJGE.d.ts → shape-DyviC6ZG.d.ts} +2 -2
  57. package/dist/{table-DIXStwnk.d.cts → table-BtMtRYqc.d.cts} +13 -2
  58. package/dist/{table-CLhAexfN.d.ts → table-BxeHHD7r.d.ts} +13 -2
  59. package/dist/{table-L5SxKy8_.d.ts → table-CCdAhdcG.d.ts} +1 -1
  60. package/dist/{table-CfRjVOFN.d.cts → table-SczxeRF0.d.cts} +1 -1
  61. package/package.json +1 -1
@@ -57,6 +57,8 @@ function appendShape(slide, shape) {
57
57
  text: run.text,
58
58
  bold: run.bold,
59
59
  italic: run.italic,
60
+ underline: run.underline,
61
+ strike: run.strike,
60
62
  fontFamily: run.fontFamily,
61
63
  sizePt: run.sizePt,
62
64
  color: run.color
@@ -80,6 +82,8 @@ function populateCellParagraphs(cell, blocks) {
80
82
  text: run.text,
81
83
  bold: run.bold,
82
84
  italic: run.italic,
85
+ underline: run.underline,
86
+ strike: run.strike,
83
87
  fontFamily: run.fontFamily,
84
88
  sizePt: run.sizePt,
85
89
  color: run.color
@@ -56,6 +56,8 @@ function appendShape(slide, shape) {
56
56
  text: run.text,
57
57
  bold: run.bold,
58
58
  italic: run.italic,
59
+ underline: run.underline,
60
+ strike: run.strike,
59
61
  fontFamily: run.fontFamily,
60
62
  sizePt: run.sizePt,
61
63
  color: run.color
@@ -79,6 +81,8 @@ function populateCellParagraphs(cell, blocks) {
79
81
  text: run.text,
80
82
  bold: run.bold,
81
83
  italic: run.italic,
84
+ underline: run.underline,
85
+ strike: run.strike,
82
86
  fontFamily: run.fontFamily,
83
87
  sizePt: run.sizePt,
84
88
  color: run.color
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_xml_fragment = require("../../xml/fragment.cjs");
3
3
  const require_xml_entities = require("../../xml/entities.cjs");
4
- const require_xml_edit = require("../../xml/edit.cjs");
5
4
  const require_model_units = require("../../model/units.cjs");
5
+ const require_xml_edit = require("../../xml/edit.cjs");
6
6
  const require_edit_drawingml_vector = require("../drawingml/vector.cjs");
7
7
  let ooxml_js = require("ooxml.js");
8
8
  //#region src/edit/pptx/shape.ts
@@ -128,6 +128,8 @@ function buildDrawingRun(init) {
128
128
  const rPrAttrs = {};
129
129
  if (init.bold === true) rPrAttrs.b = "1";
130
130
  if (init.italic === true) rPrAttrs.i = "1";
131
+ if (init.underline === true) rPrAttrs.u = "sng";
132
+ if (init.strike === true) rPrAttrs.strike = "sngStrike";
131
133
  if (init.sizePt !== void 0) rPrAttrs.sz = String(Math.round(init.sizePt * HUNDREDTHS_POINT_PER_POINT));
132
134
  const rPrChildren = [];
133
135
  if (init.color !== void 0) rPrChildren.push(require_xml_fragment.el("a:solidFill", {}, [require_xml_fragment.el("a:srgbClr", { val: require_edit_drawingml_vector.drawingMlColorHex(init.color) })]));
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-BhkP6HB8.cjs";
1
+ import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-BwBiRGha.cjs";
2
2
  export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-BjX3wlig.js";
1
+ import { a as buildDrawingParagraph, i as ROTATION_UNITS_PER_DEGREE, n as DrawingRunInit, o as buildPictureShape, r as PptxShape, s as buildTextBoxShape, t as DrawingParagraphInit } from "../../shape-D5IoGzf9.js";
2
2
  export { DrawingParagraphInit, DrawingRunInit, PptxShape, ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph, buildPictureShape, buildTextBoxShape };
@@ -1,7 +1,7 @@
1
1
  import { el, txt } from "../../xml/fragment.js";
2
2
  import { encodeXmlText, needsSpacePreserve } from "../../xml/entities.js";
3
- import { removeAttr, removeChild, setAttr } from "../../xml/edit.js";
4
3
  import { emuToPt, ptToEmu } from "../../model/units.js";
4
+ import { removeAttr, removeChild, setAttr } from "../../xml/edit.js";
5
5
  import { drawingMlColorHex } from "../drawingml/vector.js";
6
6
  import { attr, textContent } from "ooxml.js";
7
7
  //#region src/edit/pptx/shape.ts
@@ -127,6 +127,8 @@ function buildDrawingRun(init) {
127
127
  const rPrAttrs = {};
128
128
  if (init.bold === true) rPrAttrs.b = "1";
129
129
  if (init.italic === true) rPrAttrs.i = "1";
130
+ if (init.underline === true) rPrAttrs.u = "sng";
131
+ if (init.strike === true) rPrAttrs.strike = "sngStrike";
130
132
  if (init.sizePt !== void 0) rPrAttrs.sz = String(Math.round(init.sizePt * HUNDREDTHS_POINT_PER_POINT));
131
133
  const rPrChildren = [];
132
134
  if (init.color !== void 0) rPrChildren.push(el("a:solidFill", {}, [el("a:srgbClr", { val: drawingMlColorHex(init.color) })]));
@@ -1,7 +1,7 @@
1
1
  import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
2
2
  import { t as ImageInit } from "../../image-7snmKIxn.cjs";
3
- import { r as PptxShape } from "../../shape-BhkP6HB8.cjs";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-CfRjVOFN.cjs";
3
+ import { r as PptxShape } from "../../shape-BwBiRGha.cjs";
4
+ import { r as PptxTableInit, t as PptxTable } from "../../table-SczxeRF0.cjs";
5
5
  import { ContentVector } from "document-schema.js";
6
6
  import { Package, XmlElement, XmlNode } from "ooxml.js";
7
7
  //#region src/edit/pptx/slide.d.ts
@@ -1,7 +1,7 @@
1
1
  import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
2
2
  import { t as ImageInit } from "../../image-Cs8xF753.js";
3
- import { r as PptxShape } from "../../shape-BjX3wlig.js";
4
- import { r as PptxTableInit, t as PptxTable } from "../../table-L5SxKy8_.js";
3
+ import { r as PptxShape } from "../../shape-D5IoGzf9.js";
4
+ import { r as PptxTableInit, t as PptxTable } from "../../table-CCdAhdcG.js";
5
5
  import { Package, XmlElement, XmlNode } from "ooxml.js";
6
6
  import { ContentVector } from "document-schema.js";
7
7
  //#region src/edit/pptx/slide.d.ts
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_xml_fragment = require("../../xml/fragment.cjs");
3
- const require_xml_edit = require("../../xml/edit.cjs");
4
3
  const require_model_units = require("../../model/units.cjs");
4
+ const require_xml_edit = require("../../xml/edit.cjs");
5
5
  const require_edit_pptx_shape = require("./shape.cjs");
6
6
  let ooxml_js = require("ooxml.js");
7
7
  //#region src/edit/pptx/table.ts
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-CfRjVOFN.cjs";
1
+ import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-SczxeRF0.cjs";
2
2
  export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
@@ -1,2 +1,2 @@
1
- import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-L5SxKy8_.js";
1
+ import { a as buildDrawingTable, i as PptxTableRow, n as PptxTableCell, o as buildTableGraphicFrame, r as PptxTableInit, s as findGraphicFrameTable, t as PptxTable } from "../../table-CCdAhdcG.js";
2
2
  export { PptxTable, PptxTableCell, PptxTableInit, PptxTableRow, buildDrawingTable, buildTableGraphicFrame, findGraphicFrameTable };
@@ -1,6 +1,6 @@
1
1
  import { el } from "../../xml/fragment.js";
2
- import { directChildElement, removeAttr, setAttr } from "../../xml/edit.js";
3
2
  import { ptToEmu } from "../../model/units.js";
3
+ import { directChildElement, removeAttr, setAttr } from "../../xml/edit.js";
4
4
  import { ROTATION_UNITS_PER_DEGREE, buildDrawingParagraph } from "./shape.js";
5
5
  import { attr } from "ooxml.js";
6
6
  //#region src/edit/pptx/table.ts
package/dist/index.d.cts CHANGED
@@ -27,15 +27,15 @@ import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdo
27
27
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs";
28
28
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
29
29
  import { n as RunInit$1, t as OdtRun } from "./run-DQtEGilU.cjs";
30
- import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
31
- import { n as OdtListItem, t as OdtList } from "./list-CYsXBdVG.cjs";
32
- import { t as OdpShape } from "./shape-rvNMzcun.cjs";
30
+ import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-DXIJfPMw.cjs";
31
+ import { n as OdtListItem, t as OdtList } from "./list-CxoEJwNO.cjs";
32
+ import { t as OdpShape } from "./shape-Dch9pDCf.cjs";
33
33
  import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-D03KX8Ux.cjs";
34
34
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
35
35
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
36
36
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
37
37
  import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
38
- import { i as TableInit$1, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-DIXStwnk.cjs";
38
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-BtMtRYqc.cjs";
39
39
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
40
40
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
41
41
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
@@ -51,8 +51,8 @@ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h a
51
51
  import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
52
52
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
53
53
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.cjs";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-BhkP6HB8.cjs";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-CfRjVOFN.cjs";
54
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-BwBiRGha.cjs";
55
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-SczxeRF0.cjs";
56
56
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
57
57
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
58
58
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
package/dist/index.d.ts CHANGED
@@ -27,15 +27,15 @@ import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdo
27
27
  import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.js";
28
28
  import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.js";
29
29
  import { n as RunInit$1, t as OdtRun } from "./run-SLSPO-4y.js";
30
- import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-Bg446o16.js";
31
- import { n as OdtListItem, t as OdtList } from "./list-DVRX7hm9.js";
32
- import { t as OdpShape } from "./shape-Be0LdJGE.js";
30
+ import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-DV4_ZNGr.js";
31
+ import { n as OdtListItem, t as OdtList } from "./list-DA1hCBVI.js";
32
+ import { t as OdpShape } from "./shape-DyviC6ZG.js";
33
33
  import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-D03KX8Ux.js";
34
34
  import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
35
35
  import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
36
36
  import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
37
37
  import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.js";
38
- import { i as TableInit$1, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-CLhAexfN.js";
38
+ import { a as TableInit$1, i as OdtTableRow, n as OdtTable, r as OdtTableCell } from "./table-BxeHHD7r.js";
39
39
  import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
40
40
  import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
41
41
  import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
@@ -51,8 +51,8 @@ import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h a
51
51
  import { PageInit, PdfPage } from "./edit/pdf/page.js";
52
52
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.js";
53
53
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.js";
54
- import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-BjX3wlig.js";
55
- import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-L5SxKy8_.js";
54
+ import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-D5IoGzf9.js";
55
+ import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-CCdAhdcG.js";
56
56
  import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.js";
57
57
  import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.js";
58
58
  import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.js";
@@ -1,4 +1,4 @@
1
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
1
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DXIJfPMw.cjs";
2
2
  import { Package, XmlElement, XmlNode } from "odf.js";
3
3
  //#region src/edit/odt/list.d.ts
4
4
  declare class OdtListItem {
@@ -1,4 +1,4 @@
1
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
1
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DV4_ZNGr.js";
2
2
  import { Package, XmlElement, XmlNode } from "odf.js";
3
3
  //#region src/edit/odt/list.d.ts
4
4
  declare class OdtListItem {
@@ -24,6 +24,16 @@ declare class OdtParagraph {
24
24
  set styleId(value: string | undefined);
25
25
  get alignment(): Alignment | undefined;
26
26
  set alignment(value: Alignment | undefined);
27
+ get spacingBeforePt(): number | undefined;
28
+ set spacingBeforePt(value: number | undefined);
29
+ get spacingAfterPt(): number | undefined;
30
+ set spacingAfterPt(value: number | undefined);
31
+ get lineSpacing(): number | undefined;
32
+ set lineSpacing(value: number | undefined);
33
+ get indentLeftPt(): number | undefined;
34
+ set indentLeftPt(value: number | undefined);
35
+ get indentFirstLinePt(): number | undefined;
36
+ set indentFirstLinePt(value: number | undefined);
27
37
  insertImageAfter(image: ImageInit): void;
28
38
  remove(): void;
29
39
  }
@@ -24,6 +24,16 @@ declare class OdtParagraph {
24
24
  set styleId(value: string | undefined);
25
25
  get alignment(): Alignment | undefined;
26
26
  set alignment(value: Alignment | undefined);
27
+ get spacingBeforePt(): number | undefined;
28
+ set spacingBeforePt(value: number | undefined);
29
+ get spacingAfterPt(): number | undefined;
30
+ set spacingAfterPt(value: number | undefined);
31
+ get lineSpacing(): number | undefined;
32
+ set lineSpacing(value: number | undefined);
33
+ get indentLeftPt(): number | undefined;
34
+ set indentLeftPt(value: number | undefined);
35
+ get indentFirstLinePt(): number | undefined;
36
+ set indentFirstLinePt(value: number | undefined);
27
37
  insertImageAfter(image: ImageInit): void;
28
38
  remove(): void;
29
39
  }
@@ -24,6 +24,8 @@ interface DrawingRunInit {
24
24
  readonly text: string;
25
25
  readonly bold?: boolean;
26
26
  readonly italic?: boolean;
27
+ readonly underline?: boolean;
28
+ readonly strike?: boolean;
27
29
  readonly fontFamily?: string;
28
30
  readonly sizePt?: number;
29
31
  readonly color?: LayoutColor;
@@ -24,6 +24,8 @@ interface DrawingRunInit {
24
24
  readonly text: string;
25
25
  readonly bold?: boolean;
26
26
  readonly italic?: boolean;
27
+ readonly underline?: boolean;
28
+ readonly strike?: boolean;
27
29
  readonly fontFamily?: string;
28
30
  readonly sizePt?: number;
29
31
  readonly color?: LayoutColor;
@@ -1,6 +1,6 @@
1
1
  import { t as Box } from "./geometry-DaJr8yQW.cjs";
2
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
3
- import { t as OdtList } from "./list-CYsXBdVG.cjs";
2
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DXIJfPMw.cjs";
3
+ import { t as OdtList } from "./list-CxoEJwNO.cjs";
4
4
  import { Package, XmlElement, XmlNode } from "odf.js";
5
5
  //#region src/edit/odp/shape.d.ts
6
6
  declare class OdpShape {
@@ -1,6 +1,6 @@
1
1
  import { t as Box } from "./geometry-DaJr8yQW.js";
2
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
3
- import { t as OdtList } from "./list-DVRX7hm9.js";
2
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DV4_ZNGr.js";
3
+ import { t as OdtList } from "./list-DA1hCBVI.js";
4
4
  import { Package, XmlElement, XmlNode } from "odf.js";
5
5
  //#region src/edit/odp/shape.d.ts
6
6
  declare class OdpShape {
@@ -1,4 +1,5 @@
1
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
1
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DXIJfPMw.cjs";
2
+ import { Color, ContentCellBorders } from "document-schema.js";
2
3
  import { Package, XmlElement, XmlNode } from "odf.js";
3
4
  //#region src/edit/odt/table.d.ts
4
5
  interface TableInit {
@@ -6,6 +7,12 @@ interface TableInit {
6
7
  readonly columns: number;
7
8
  readonly columnWidthsPt?: readonly number[];
8
9
  }
10
+ interface CellDecoration {
11
+ readonly background?: Color;
12
+ readonly borders?: ContentCellBorders;
13
+ }
14
+ declare function readCellDecoration(pkg: Package, element: XmlElement): CellDecoration;
15
+ declare function buildCellStyle(pkg: Package, decoration: CellDecoration): string;
9
16
  declare class OdtTableCell {
10
17
  private readonly node;
11
18
  private readonly pkg;
@@ -17,6 +24,10 @@ declare class OdtTableCell {
17
24
  set colSpan(value: number | undefined);
18
25
  get rowSpan(): number | undefined;
19
26
  set rowSpan(value: number | undefined);
27
+ get background(): Color | undefined;
28
+ set background(value: Color | undefined);
29
+ get borders(): ContentCellBorders | undefined;
30
+ set borders(value: ContentCellBorders | undefined);
20
31
  }
21
32
  declare class OdtTableRow {
22
33
  private readonly node;
@@ -45,4 +56,4 @@ declare class OdtTable {
45
56
  }
46
57
  declare function buildTable(pkg: Package, init: TableInit): XmlElement;
47
58
  //#endregion
48
- export { buildTable as a, TableInit as i, OdtTableCell as n, OdtTableRow as r, OdtTable as t };
59
+ export { TableInit as a, readCellDecoration as c, OdtTableRow as i, OdtTable as n, buildCellStyle as o, OdtTableCell as r, buildTable as s, CellDecoration as t };
@@ -1,4 +1,5 @@
1
- import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
1
+ import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-DV4_ZNGr.js";
2
+ import { Color, ContentCellBorders } from "document-schema.js";
2
3
  import { Package, XmlElement, XmlNode } from "odf.js";
3
4
  //#region src/edit/odt/table.d.ts
4
5
  interface TableInit {
@@ -6,6 +7,12 @@ interface TableInit {
6
7
  readonly columns: number;
7
8
  readonly columnWidthsPt?: readonly number[];
8
9
  }
10
+ interface CellDecoration {
11
+ readonly background?: Color;
12
+ readonly borders?: ContentCellBorders;
13
+ }
14
+ declare function readCellDecoration(pkg: Package, element: XmlElement): CellDecoration;
15
+ declare function buildCellStyle(pkg: Package, decoration: CellDecoration): string;
9
16
  declare class OdtTableCell {
10
17
  private readonly node;
11
18
  private readonly pkg;
@@ -17,6 +24,10 @@ declare class OdtTableCell {
17
24
  set colSpan(value: number | undefined);
18
25
  get rowSpan(): number | undefined;
19
26
  set rowSpan(value: number | undefined);
27
+ get background(): Color | undefined;
28
+ set background(value: Color | undefined);
29
+ get borders(): ContentCellBorders | undefined;
30
+ set borders(value: ContentCellBorders | undefined);
20
31
  }
21
32
  declare class OdtTableRow {
22
33
  private readonly node;
@@ -45,4 +56,4 @@ declare class OdtTable {
45
56
  }
46
57
  declare function buildTable(pkg: Package, init: TableInit): XmlElement;
47
58
  //#endregion
48
- export { buildTable as a, TableInit as i, OdtTableCell as n, OdtTableRow as r, OdtTable as t };
59
+ export { TableInit as a, readCellDecoration as c, OdtTableRow as i, OdtTable as n, buildCellStyle as o, OdtTableCell as r, buildTable as s, CellDecoration as t };
@@ -1,5 +1,5 @@
1
1
  import { t as Box } from "./geometry-DaJr8yQW.js";
2
- import { t as DrawingParagraphInit } from "./shape-BjX3wlig.js";
2
+ import { t as DrawingParagraphInit } from "./shape-D5IoGzf9.js";
3
3
  import { XmlElement } from "ooxml.js";
4
4
  //#region src/edit/pptx/table.d.ts
5
5
  interface PptxTableInit {
@@ -1,5 +1,5 @@
1
1
  import { t as Box } from "./geometry-DaJr8yQW.cjs";
2
- import { t as DrawingParagraphInit } from "./shape-BhkP6HB8.cjs";
2
+ import { t as DrawingParagraphInit } from "./shape-BwBiRGha.cjs";
3
3
  import { XmlElement } from "ooxml.js";
4
4
  //#region src/edit/pptx/table.d.ts
5
5
  interface PptxTableInit {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "documents.js",
3
- "version": "1.84.0",
3
+ "version": "1.85.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": {