js.documents 1.82.0 → 1.84.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/dist/edit/docx/content.cjs +1 -0
- package/dist/edit/docx/content.js +1 -0
- package/dist/edit/docx/paragraph.d.cts +1 -1
- package/dist/edit/docx/paragraph.d.ts +1 -1
- package/dist/edit/docx/run.cjs +7 -0
- package/dist/edit/docx/run.d.cts +1 -1
- package/dist/edit/docx/run.d.ts +1 -1
- package/dist/edit/docx/run.js +7 -0
- package/dist/edit/odg/page.d.cts +1 -1
- package/dist/edit/odg/page.d.ts +1 -1
- package/dist/edit/odp/shape.d.cts +1 -1
- package/dist/edit/odp/shape.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +2 -2
- package/dist/edit/odp/slide.d.ts +2 -2
- package/dist/edit/odt/content.cjs +1 -0
- package/dist/edit/odt/content.d.cts +2 -2
- package/dist/edit/odt/content.d.ts +2 -2
- package/dist/edit/odt/content.js +1 -0
- package/dist/edit/odt/editor.d.cts +3 -3
- package/dist/edit/odt/editor.d.ts +3 -3
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/run.cjs +6 -0
- package/dist/edit/odt/run.d.cts +1 -1
- package/dist/edit/odt/run.d.ts +1 -1
- package/dist/edit/odt/run.js +6 -0
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/{list-DXRaCcT1.d.cts → list-CYsXBdVG.d.cts} +1 -1
- package/dist/{list-7hZydHAV.d.ts → list-DVRX7hm9.d.ts} +1 -1
- package/dist/model/bytes.cjs +12 -9
- package/dist/model/bytes.js +12 -9
- package/dist/{paragraph-Dlly6_E9.d.cts → paragraph-BZIDHdnv.d.cts} +1 -1
- package/dist/{paragraph-kMJVZhAi.d.ts → paragraph-Bg446o16.d.ts} +1 -1
- package/dist/{run-DDe7miD5.d.ts → run-BYJGK31k.d.ts} +3 -0
- package/dist/{run-P0b2pDdX.d.cts → run-DEPVf5ZJ.d.cts} +3 -0
- package/dist/{run-F8JN7Vy4.d.cts → run-DQtEGilU.d.cts} +3 -0
- package/dist/{run-wB22_F5w.d.ts → run-SLSPO-4y.d.ts} +3 -0
- package/dist/{shape-DeP-P4Nh.d.ts → shape-Be0LdJGE.d.ts} +2 -2
- package/dist/{shape-BR8GL8XC.d.cts → shape-rvNMzcun.d.cts} +2 -2
- package/dist/{table-AT4t4VUy.d.ts → table-CLhAexfN.d.ts} +1 -1
- package/dist/{table-DSFcqJ7C.d.cts → table-DIXStwnk.d.cts} +1 -1
- package/package.json +1 -1
|
@@ -59,6 +59,7 @@ function populateParagraph(paragraph, block) {
|
|
|
59
59
|
if (run.bold === true) docxRun.bold = true;
|
|
60
60
|
if (run.italic === true) docxRun.italic = true;
|
|
61
61
|
if (run.underline === true) docxRun.underline = true;
|
|
62
|
+
if (run.strike === true) docxRun.strike = true;
|
|
62
63
|
if (run.fontFamily !== void 0) docxRun.fontFamily = run.fontFamily;
|
|
63
64
|
if (run.sizePt !== void 0) docxRun.sizePt = run.sizePt;
|
|
64
65
|
if (run.color !== void 0) docxRun.color = run.color;
|
|
@@ -58,6 +58,7 @@ function populateParagraph(paragraph, block) {
|
|
|
58
58
|
if (run.bold === true) docxRun.bold = true;
|
|
59
59
|
if (run.italic === true) docxRun.italic = true;
|
|
60
60
|
if (run.underline === true) docxRun.underline = true;
|
|
61
|
+
if (run.strike === true) docxRun.strike = true;
|
|
61
62
|
if (run.fontFamily !== void 0) docxRun.fontFamily = run.fontFamily;
|
|
62
63
|
if (run.sizePt !== void 0) docxRun.sizePt = run.sizePt;
|
|
63
64
|
if (run.color !== void 0) docxRun.color = run.color;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as MathMlNode$1 } from "../../nodes-pArN9ilm.cjs";
|
|
2
2
|
import { t as OmmlWriteResult } from "../../write-BQ6SK8r8.cjs";
|
|
3
3
|
import { n as MediaContext, t as ImageInit } from "../../image-DRqXQmEg.cjs";
|
|
4
|
-
import { n as RunInit, t as DocxRun } from "../../run-
|
|
4
|
+
import { n as RunInit, t as DocxRun } from "../../run-DEPVf5ZJ.cjs";
|
|
5
5
|
import { ContentListMembership, ContentVector } from "document-schema.js";
|
|
6
6
|
import { Package, XmlElement, XmlNode } from "ooxml.js";
|
|
7
7
|
//#region src/edit/docx/paragraph.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as MathMlNode$1 } from "../../nodes-pArN9ilm.js";
|
|
2
2
|
import { t as OmmlWriteResult } from "../../write-THs7ipBq.js";
|
|
3
3
|
import { n as MediaContext, t as ImageInit } from "../../image-DRqXQmEg.js";
|
|
4
|
-
import { n as RunInit, t as DocxRun } from "../../run-
|
|
4
|
+
import { n as RunInit, t as DocxRun } from "../../run-BYJGK31k.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "ooxml.js";
|
|
6
6
|
import { ContentListMembership, ContentVector } from "document-schema.js";
|
|
7
7
|
//#region src/edit/docx/paragraph.d.ts
|
package/dist/edit/docx/run.cjs
CHANGED
|
@@ -63,6 +63,12 @@ var DocxRun = class {
|
|
|
63
63
|
set italic(value) {
|
|
64
64
|
require_edit_docx_props.setToggle(this.rPr(true), "w:i", value, require_edit_docx_props.RPR_ORDER);
|
|
65
65
|
}
|
|
66
|
+
get strike() {
|
|
67
|
+
return require_edit_docx_props.getToggle(this.rPr(false), "w:strike");
|
|
68
|
+
}
|
|
69
|
+
set strike(value) {
|
|
70
|
+
require_edit_docx_props.setToggle(this.rPr(true), "w:strike", value, require_edit_docx_props.RPR_ORDER);
|
|
71
|
+
}
|
|
66
72
|
get underline() {
|
|
67
73
|
const rPr = this.rPr(false);
|
|
68
74
|
const uElement = rPr === void 0 ? void 0 : directChild(rPr, "w:u");
|
|
@@ -123,6 +129,7 @@ function buildRun(init = {}) {
|
|
|
123
129
|
const rPrChildren = [];
|
|
124
130
|
if (init.bold === true) rPrChildren.push(require_xml_fragment.el("w:b"));
|
|
125
131
|
if (init.italic === true) rPrChildren.push(require_xml_fragment.el("w:i"));
|
|
132
|
+
if (init.strike === true) rPrChildren.push(require_xml_fragment.el("w:strike"));
|
|
126
133
|
if (init.fontFamily !== void 0) rPrChildren.push(require_xml_fragment.el("w:rFonts", {
|
|
127
134
|
"w:ascii": init.fontFamily,
|
|
128
135
|
"w:hAnsi": init.fontFamily
|
package/dist/edit/docx/run.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as wordprocessingText, n as RunInit, r as buildRun, t as DocxRun } from "../../run-
|
|
1
|
+
import { i as wordprocessingText, n as RunInit, r as buildRun, t as DocxRun } from "../../run-DEPVf5ZJ.cjs";
|
|
2
2
|
export { DocxRun, RunInit, buildRun, wordprocessingText };
|
package/dist/edit/docx/run.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as wordprocessingText, n as RunInit, r as buildRun, t as DocxRun } from "../../run-
|
|
1
|
+
import { i as wordprocessingText, n as RunInit, r as buildRun, t as DocxRun } from "../../run-BYJGK31k.js";
|
|
2
2
|
export { DocxRun, RunInit, buildRun, wordprocessingText };
|
package/dist/edit/docx/run.js
CHANGED
|
@@ -62,6 +62,12 @@ var DocxRun = class {
|
|
|
62
62
|
set italic(value) {
|
|
63
63
|
setToggle(this.rPr(true), "w:i", value, RPR_ORDER);
|
|
64
64
|
}
|
|
65
|
+
get strike() {
|
|
66
|
+
return getToggle(this.rPr(false), "w:strike");
|
|
67
|
+
}
|
|
68
|
+
set strike(value) {
|
|
69
|
+
setToggle(this.rPr(true), "w:strike", value, RPR_ORDER);
|
|
70
|
+
}
|
|
65
71
|
get underline() {
|
|
66
72
|
const rPr = this.rPr(false);
|
|
67
73
|
const uElement = rPr === void 0 ? void 0 : directChild(rPr, "w:u");
|
|
@@ -122,6 +128,7 @@ function buildRun(init = {}) {
|
|
|
122
128
|
const rPrChildren = [];
|
|
123
129
|
if (init.bold === true) rPrChildren.push(el("w:b"));
|
|
124
130
|
if (init.italic === true) rPrChildren.push(el("w:i"));
|
|
131
|
+
if (init.strike === true) rPrChildren.push(el("w:strike"));
|
|
125
132
|
if (init.fontFamily !== void 0) rPrChildren.push(el("w:rFonts", {
|
|
126
133
|
"w:ascii": init.fontFamily,
|
|
127
134
|
"w:hAnsi": init.fontFamily
|
package/dist/edit/odg/page.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-M5SezZVI.cjs";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-rvNMzcun.cjs";
|
|
3
3
|
import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-D03KX8Ux.cjs";
|
|
4
4
|
import { Box, ContentVector } from "document-schema.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
package/dist/edit/odg/page.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-DHcA9kaK.js";
|
|
2
|
-
import { t as OdpShape } from "../../shape-
|
|
2
|
+
import { t as OdpShape } from "../../shape-Be0LdJGE.js";
|
|
3
3
|
import { a as OdgLineVector, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "../../vector-D03KX8Ux.js";
|
|
4
4
|
import { Box, ContentVector } from "document-schema.js";
|
|
5
5
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-
|
|
1
|
+
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-rvNMzcun.cjs";
|
|
2
2
|
export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
|
package/dist/edit/odp/shape.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-
|
|
1
|
+
import { i as buildTextBoxFrame, n as buildImageFrame, r as buildTableFrame, t as OdpShape } from "../../shape-Be0LdJGE.js";
|
|
2
2
|
export { OdpShape, buildImageFrame, buildTableFrame, buildTextBoxFrame };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
|
|
2
2
|
import { t as ImageInit } from "../../image-M5SezZVI.cjs";
|
|
3
|
-
import { t as OdpShape } from "../../shape-
|
|
3
|
+
import { t as OdpShape } from "../../shape-rvNMzcun.cjs";
|
|
4
4
|
import { s as OdgVector } from "../../vector-D03KX8Ux.cjs";
|
|
5
|
-
import { i as TableInit, t as OdtTable } from "../../table-
|
|
5
|
+
import { i as TableInit, t as OdtTable } from "../../table-DIXStwnk.cjs";
|
|
6
6
|
import { ContentVector } from "document-schema.js";
|
|
7
7
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
8
8
|
//#region src/edit/odp/slide.d.ts
|
package/dist/edit/odp/slide.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
|
|
2
2
|
import { t as ImageInit } from "../../image-DHcA9kaK.js";
|
|
3
|
-
import { t as OdpShape } from "../../shape-
|
|
3
|
+
import { t as OdpShape } from "../../shape-Be0LdJGE.js";
|
|
4
4
|
import { s as OdgVector } from "../../vector-D03KX8Ux.js";
|
|
5
|
-
import { i as TableInit, t as OdtTable } from "../../table-
|
|
5
|
+
import { i as TableInit, t as OdtTable } from "../../table-CLhAexfN.js";
|
|
6
6
|
import { ContentVector } from "document-schema.js";
|
|
7
7
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
8
8
|
//#region src/edit/odp/slide.d.ts
|
|
@@ -99,6 +99,7 @@ function populateParagraph(paragraph, block) {
|
|
|
99
99
|
if (run.bold === true) odtRun.bold = true;
|
|
100
100
|
if (run.italic === true) odtRun.italic = true;
|
|
101
101
|
if (run.underline === true) odtRun.underline = true;
|
|
102
|
+
if (run.strike === true) odtRun.strike = true;
|
|
102
103
|
if (run.fontFamily !== void 0) odtRun.fontFamily = run.fontFamily;
|
|
103
104
|
if (run.sizePt !== void 0) odtRun.sizePt = run.sizePt;
|
|
104
105
|
if (run.color !== void 0) odtRun.color = run.color;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClockPort } from "../../ports/clock.cjs";
|
|
2
|
-
import { t as OdtParagraph } from "../../paragraph-
|
|
3
|
-
import { t as OdtTable } from "../../table-
|
|
2
|
+
import { t as OdtParagraph } from "../../paragraph-BZIDHdnv.cjs";
|
|
3
|
+
import { t as OdtTable } from "../../table-DIXStwnk.cjs";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClockPort } from "../../ports/clock.js";
|
|
2
|
-
import { t as OdtParagraph } from "../../paragraph-
|
|
3
|
-
import { t as OdtTable } from "../../table-
|
|
2
|
+
import { t as OdtParagraph } from "../../paragraph-Bg446o16.js";
|
|
3
|
+
import { t as OdtTable } from "../../table-CLhAexfN.js";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
package/dist/edit/odt/content.js
CHANGED
|
@@ -98,6 +98,7 @@ function populateParagraph(paragraph, block) {
|
|
|
98
98
|
if (run.bold === true) odtRun.bold = true;
|
|
99
99
|
if (run.italic === true) odtRun.italic = true;
|
|
100
100
|
if (run.underline === true) odtRun.underline = true;
|
|
101
|
+
if (run.strike === true) odtRun.strike = true;
|
|
101
102
|
if (run.fontFamily !== void 0) odtRun.fontFamily = run.fontFamily;
|
|
102
103
|
if (run.sizePt !== void 0) odtRun.sizePt = run.sizePt;
|
|
103
104
|
if (run.color !== void 0) odtRun.color = run.color;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ClockPort } from "../../ports/clock.cjs";
|
|
2
2
|
import { t as Box$1 } from "../../geometry-DaJr8yQW.cjs";
|
|
3
|
-
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-
|
|
4
|
-
import { t as OdtList } from "../../list-
|
|
5
|
-
import { i as TableInit, t as OdtTable } from "../../table-
|
|
3
|
+
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-BZIDHdnv.cjs";
|
|
4
|
+
import { t as OdtList } from "../../list-CYsXBdVG.cjs";
|
|
5
|
+
import { i as TableInit, t as OdtTable } from "../../table-DIXStwnk.cjs";
|
|
6
6
|
import { ContentFormula, ContentVector } from "document-schema.js";
|
|
7
7
|
import { Package } from "odf.js";
|
|
8
8
|
//#region src/edit/odt/editor.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ClockPort } from "../../ports/clock.js";
|
|
2
2
|
import { t as Box$1 } from "../../geometry-DaJr8yQW.js";
|
|
3
|
-
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-
|
|
4
|
-
import { t as OdtList } from "../../list-
|
|
5
|
-
import { i as TableInit, t as OdtTable } from "../../table-
|
|
3
|
+
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-Bg446o16.js";
|
|
4
|
+
import { t as OdtList } from "../../list-DVRX7hm9.js";
|
|
5
|
+
import { i as TableInit, t as OdtTable } from "../../table-CLhAexfN.js";
|
|
6
6
|
import { ContentFormula, ContentVector } from "document-schema.js";
|
|
7
7
|
import { Package } from "odf.js";
|
|
8
8
|
//#region src/edit/odt/editor.d.ts
|
package/dist/edit/odt/list.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-
|
|
1
|
+
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-CYsXBdVG.cjs";
|
|
2
2
|
export { OdtList, OdtListItem, buildList };
|
package/dist/edit/odt/list.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-
|
|
1
|
+
import { n as OdtListItem, r as buildList, t as OdtList } from "../../list-DVRX7hm9.js";
|
|
2
2
|
export { OdtList, OdtListItem, buildList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-
|
|
1
|
+
import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-BZIDHdnv.cjs";
|
|
2
2
|
export { OdtParagraph, ParagraphInit, buildParagraph };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-
|
|
1
|
+
import { n as ParagraphInit, r as buildParagraph, t as OdtParagraph } from "../../paragraph-Bg446o16.js";
|
|
2
2
|
export { OdtParagraph, ParagraphInit, buildParagraph };
|
package/dist/edit/odt/run.cjs
CHANGED
|
@@ -42,6 +42,12 @@ var OdtRun = class {
|
|
|
42
42
|
set underline(value) {
|
|
43
43
|
require_edit_odt_props.applyStyleChange(this.pkg, this.live(), "text", { underline: value });
|
|
44
44
|
}
|
|
45
|
+
get strike() {
|
|
46
|
+
return require_edit_odt_props.readCurrentStyleProperties(this.pkg, this.live(), "text").strike ?? false;
|
|
47
|
+
}
|
|
48
|
+
set strike(value) {
|
|
49
|
+
require_edit_odt_props.applyStyleChange(this.pkg, this.live(), "text", { strike: value });
|
|
50
|
+
}
|
|
45
51
|
get fontFamily() {
|
|
46
52
|
return require_edit_odt_props.readCurrentStyleProperties(this.pkg, this.live(), "text").fontFamily;
|
|
47
53
|
}
|
package/dist/edit/odt/run.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-
|
|
1
|
+
import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-DQtEGilU.cjs";
|
|
2
2
|
export { OdtRun, RunInit, buildRun };
|
package/dist/edit/odt/run.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-
|
|
1
|
+
import { n as RunInit, r as buildRun, t as OdtRun } from "../../run-SLSPO-4y.js";
|
|
2
2
|
export { OdtRun, RunInit, buildRun };
|
package/dist/edit/odt/run.js
CHANGED
|
@@ -41,6 +41,12 @@ var OdtRun = class {
|
|
|
41
41
|
set underline(value) {
|
|
42
42
|
applyStyleChange(this.pkg, this.live(), "text", { underline: value });
|
|
43
43
|
}
|
|
44
|
+
get strike() {
|
|
45
|
+
return readCurrentStyleProperties(this.pkg, this.live(), "text").strike ?? false;
|
|
46
|
+
}
|
|
47
|
+
set strike(value) {
|
|
48
|
+
applyStyleChange(this.pkg, this.live(), "text", { strike: value });
|
|
49
|
+
}
|
|
44
50
|
get fontFamily() {
|
|
45
51
|
return readCurrentStyleProperties(this.pkg, this.live(), "text").fontFamily;
|
|
46
52
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-
|
|
1
|
+
import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-DIXStwnk.cjs";
|
|
2
2
|
export { OdtTable, OdtTableCell, OdtTableRow, TableInit, buildTable };
|
package/dist/edit/odt/table.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-
|
|
1
|
+
import { a as buildTable, i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "../../table-CLhAexfN.js";
|
|
2
2
|
export { OdtTable, OdtTableCell, OdtTableRow, TableInit, buildTable };
|
package/dist/index.d.cts
CHANGED
|
@@ -13,7 +13,7 @@ import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.c
|
|
|
13
13
|
import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.cjs";
|
|
14
14
|
import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-BQ6SK8r8.cjs";
|
|
15
15
|
import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-71eoF1Up.cjs";
|
|
16
|
-
import { t as DocxRun } from "./run-
|
|
16
|
+
import { t as DocxRun } from "./run-DEPVf5ZJ.cjs";
|
|
17
17
|
import { DocxParagraph } from "./edit/docx/paragraph.cjs";
|
|
18
18
|
import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.cjs";
|
|
19
19
|
import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
|
|
@@ -26,16 +26,16 @@ import { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit } from ".
|
|
|
26
26
|
import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdownEditor, openMarkdown } from "./edit/markdown/editor.cjs";
|
|
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
|
-
import { n as RunInit$1, t as OdtRun } from "./run-
|
|
30
|
-
import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-
|
|
31
|
-
import { n as OdtListItem, t as OdtList } from "./list-
|
|
32
|
-
import { t as OdpShape } from "./shape-
|
|
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";
|
|
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-
|
|
38
|
+
import { i as TableInit$1, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-DIXStwnk.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";
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.j
|
|
|
13
13
|
import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.js";
|
|
14
14
|
import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-THs7ipBq.js";
|
|
15
15
|
import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-BHhGSqAh.js";
|
|
16
|
-
import { t as DocxRun } from "./run-
|
|
16
|
+
import { t as DocxRun } from "./run-BYJGK31k.js";
|
|
17
17
|
import { DocxParagraph } from "./edit/docx/paragraph.js";
|
|
18
18
|
import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.js";
|
|
19
19
|
import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.js";
|
|
@@ -26,16 +26,16 @@ import { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit } from ".
|
|
|
26
26
|
import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdownEditor, openMarkdown } from "./edit/markdown/editor.js";
|
|
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
|
-
import { n as RunInit$1, t as OdtRun } from "./run-
|
|
30
|
-
import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-
|
|
31
|
-
import { n as OdtListItem, t as OdtList } from "./list-
|
|
32
|
-
import { t as OdpShape } from "./shape-
|
|
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";
|
|
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-
|
|
38
|
+
import { i as TableInit$1, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-CLhAexfN.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.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-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/list.d.ts
|
|
4
4
|
declare class OdtListItem {
|
package/dist/model/bytes.cjs
CHANGED
|
@@ -63,20 +63,23 @@ function readAsciiSlice(bytes, offset, length) {
|
|
|
63
63
|
if (bytes.length < offset + length) return;
|
|
64
64
|
return new TextDecoder().decode(bytes.subarray(offset, offset + length));
|
|
65
65
|
}
|
|
66
|
-
function hasOdfMimetypeEntry(bytes,
|
|
66
|
+
function hasOdfMimetypeEntry(bytes, mediaTypes) {
|
|
67
67
|
if (!startsWithBytes(bytes, ZIP_LOCAL_FILE_HEADER)) return false;
|
|
68
68
|
if (readUint16LE(bytes, COMPRESSION_METHOD_OFFSET) !== 0) return false;
|
|
69
69
|
if (readAsciiSlice(bytes, MIMETYPE_FILENAME_OFFSET, 8) !== MIMETYPE_ENTRY_FILENAME) return false;
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
return mediaTypes.some((mediaType) => {
|
|
71
|
+
if (readUint32LE(bytes, COMPRESSED_SIZE_OFFSET) !== mediaType.length) return false;
|
|
72
|
+
return readAsciiSlice(bytes, MIMETYPE_CONTENT_OFFSET, mediaType.length) === mediaType;
|
|
73
|
+
});
|
|
72
74
|
}
|
|
73
|
-
function odfBytesSchema(label,
|
|
74
|
-
|
|
75
|
+
function odfBytesSchema(label, mediaTypes) {
|
|
76
|
+
const accepted = mediaTypes.map((type) => `"${type}"`).join(" or ");
|
|
77
|
+
return zod.z.instanceof(Uint8Array).refine((bytes) => hasOdfMimetypeEntry(bytes, mediaTypes), { message: `not a valid ${label} file: the first zip entry is not a stored "mimetype" part declaring ${accepted}` });
|
|
75
78
|
}
|
|
76
|
-
const OdtBytesSchema = odfBytesSchema("odt", odf_js.ODF_MEDIA_TYPES.odt);
|
|
77
|
-
const OdsBytesSchema = odfBytesSchema("ods", odf_js.ODF_MEDIA_TYPES.ods);
|
|
78
|
-
const OdpBytesSchema = odfBytesSchema("odp", odf_js.ODF_MEDIA_TYPES.odp);
|
|
79
|
-
const OdgBytesSchema = odfBytesSchema("odg", odf_js.ODF_MEDIA_TYPES.odg);
|
|
79
|
+
const OdtBytesSchema = odfBytesSchema("odt", [odf_js.ODF_MEDIA_TYPES.odt, odf_js.ODF_MEDIA_TYPES.ott]);
|
|
80
|
+
const OdsBytesSchema = odfBytesSchema("ods", [odf_js.ODF_MEDIA_TYPES.ods, odf_js.ODF_MEDIA_TYPES.ots]);
|
|
81
|
+
const OdpBytesSchema = odfBytesSchema("odp", [odf_js.ODF_MEDIA_TYPES.odp, odf_js.ODF_MEDIA_TYPES.otp]);
|
|
82
|
+
const OdgBytesSchema = odfBytesSchema("odg", [odf_js.ODF_MEDIA_TYPES.odg, odf_js.ODF_MEDIA_TYPES.otg]);
|
|
80
83
|
function isWellFormedUtf8Text(bytes) {
|
|
81
84
|
try {
|
|
82
85
|
new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
package/dist/model/bytes.js
CHANGED
|
@@ -62,20 +62,23 @@ function readAsciiSlice(bytes, offset, length) {
|
|
|
62
62
|
if (bytes.length < offset + length) return;
|
|
63
63
|
return new TextDecoder().decode(bytes.subarray(offset, offset + length));
|
|
64
64
|
}
|
|
65
|
-
function hasOdfMimetypeEntry(bytes,
|
|
65
|
+
function hasOdfMimetypeEntry(bytes, mediaTypes) {
|
|
66
66
|
if (!startsWithBytes(bytes, ZIP_LOCAL_FILE_HEADER)) return false;
|
|
67
67
|
if (readUint16LE(bytes, COMPRESSION_METHOD_OFFSET) !== 0) return false;
|
|
68
68
|
if (readAsciiSlice(bytes, MIMETYPE_FILENAME_OFFSET, 8) !== MIMETYPE_ENTRY_FILENAME) return false;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
return mediaTypes.some((mediaType) => {
|
|
70
|
+
if (readUint32LE(bytes, COMPRESSED_SIZE_OFFSET) !== mediaType.length) return false;
|
|
71
|
+
return readAsciiSlice(bytes, MIMETYPE_CONTENT_OFFSET, mediaType.length) === mediaType;
|
|
72
|
+
});
|
|
71
73
|
}
|
|
72
|
-
function odfBytesSchema(label,
|
|
73
|
-
|
|
74
|
+
function odfBytesSchema(label, mediaTypes) {
|
|
75
|
+
const accepted = mediaTypes.map((type) => `"${type}"`).join(" or ");
|
|
76
|
+
return z.instanceof(Uint8Array).refine((bytes) => hasOdfMimetypeEntry(bytes, mediaTypes), { message: `not a valid ${label} file: the first zip entry is not a stored "mimetype" part declaring ${accepted}` });
|
|
74
77
|
}
|
|
75
|
-
const OdtBytesSchema = odfBytesSchema("odt", ODF_MEDIA_TYPES.odt);
|
|
76
|
-
const OdsBytesSchema = odfBytesSchema("ods", ODF_MEDIA_TYPES.ods);
|
|
77
|
-
const OdpBytesSchema = odfBytesSchema("odp", ODF_MEDIA_TYPES.odp);
|
|
78
|
-
const OdgBytesSchema = odfBytesSchema("odg", ODF_MEDIA_TYPES.odg);
|
|
78
|
+
const OdtBytesSchema = odfBytesSchema("odt", [ODF_MEDIA_TYPES.odt, ODF_MEDIA_TYPES.ott]);
|
|
79
|
+
const OdsBytesSchema = odfBytesSchema("ods", [ODF_MEDIA_TYPES.ods, ODF_MEDIA_TYPES.ots]);
|
|
80
|
+
const OdpBytesSchema = odfBytesSchema("odp", [ODF_MEDIA_TYPES.odp, ODF_MEDIA_TYPES.otp]);
|
|
81
|
+
const OdgBytesSchema = odfBytesSchema("odg", [ODF_MEDIA_TYPES.odg, ODF_MEDIA_TYPES.otg]);
|
|
79
82
|
function isWellFormedUtf8Text(bytes) {
|
|
80
83
|
try {
|
|
81
84
|
new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Alignment } from "./style-DkamR3aY.cjs";
|
|
2
2
|
import { t as ImageInit } from "./image-m_rfpuY8.cjs";
|
|
3
|
-
import { n as RunInit, t as OdtRun } from "./run-
|
|
3
|
+
import { n as RunInit, t as OdtRun } from "./run-DQtEGilU.cjs";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odt/paragraph.d.ts
|
|
6
6
|
interface ParagraphInit {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Alignment } from "./style-DkamR3aY.js";
|
|
2
2
|
import { t as ImageInit } from "./image-DwrOnL_Z.js";
|
|
3
|
-
import { n as RunInit, t as OdtRun } from "./run-
|
|
3
|
+
import { n as RunInit, t as OdtRun } from "./run-SLSPO-4y.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odt/paragraph.d.ts
|
|
6
6
|
interface ParagraphInit {
|
|
@@ -7,6 +7,7 @@ interface RunInit {
|
|
|
7
7
|
readonly bold?: boolean;
|
|
8
8
|
readonly italic?: boolean;
|
|
9
9
|
readonly underline?: boolean;
|
|
10
|
+
readonly strike?: boolean;
|
|
10
11
|
readonly fontFamily?: string;
|
|
11
12
|
readonly sizePt?: number;
|
|
12
13
|
readonly color?: LayoutColor;
|
|
@@ -24,6 +25,8 @@ declare class DocxRun {
|
|
|
24
25
|
set bold(value: boolean);
|
|
25
26
|
get italic(): boolean;
|
|
26
27
|
set italic(value: boolean);
|
|
28
|
+
get strike(): boolean;
|
|
29
|
+
set strike(value: boolean);
|
|
27
30
|
get underline(): boolean;
|
|
28
31
|
set underline(value: boolean);
|
|
29
32
|
get fontFamily(): string | undefined;
|
|
@@ -7,6 +7,7 @@ interface RunInit {
|
|
|
7
7
|
readonly bold?: boolean;
|
|
8
8
|
readonly italic?: boolean;
|
|
9
9
|
readonly underline?: boolean;
|
|
10
|
+
readonly strike?: boolean;
|
|
10
11
|
readonly fontFamily?: string;
|
|
11
12
|
readonly sizePt?: number;
|
|
12
13
|
readonly color?: LayoutColor;
|
|
@@ -24,6 +25,8 @@ declare class DocxRun {
|
|
|
24
25
|
set bold(value: boolean);
|
|
25
26
|
get italic(): boolean;
|
|
26
27
|
set italic(value: boolean);
|
|
28
|
+
get strike(): boolean;
|
|
29
|
+
set strike(value: boolean);
|
|
27
30
|
get underline(): boolean;
|
|
28
31
|
set underline(value: boolean);
|
|
29
32
|
get fontFamily(): string | undefined;
|
|
@@ -6,6 +6,7 @@ interface RunInit {
|
|
|
6
6
|
readonly bold?: boolean;
|
|
7
7
|
readonly italic?: boolean;
|
|
8
8
|
readonly underline?: boolean;
|
|
9
|
+
readonly strike?: boolean;
|
|
9
10
|
readonly fontFamily?: string;
|
|
10
11
|
readonly sizePt?: number;
|
|
11
12
|
readonly color?: LayoutColor;
|
|
@@ -25,6 +26,8 @@ declare class OdtRun {
|
|
|
25
26
|
set italic(value: boolean);
|
|
26
27
|
get underline(): boolean;
|
|
27
28
|
set underline(value: boolean);
|
|
29
|
+
get strike(): boolean;
|
|
30
|
+
set strike(value: boolean);
|
|
28
31
|
get fontFamily(): string | undefined;
|
|
29
32
|
set fontFamily(value: string);
|
|
30
33
|
get sizePt(): number | undefined;
|
|
@@ -6,6 +6,7 @@ interface RunInit {
|
|
|
6
6
|
readonly bold?: boolean;
|
|
7
7
|
readonly italic?: boolean;
|
|
8
8
|
readonly underline?: boolean;
|
|
9
|
+
readonly strike?: boolean;
|
|
9
10
|
readonly fontFamily?: string;
|
|
10
11
|
readonly sizePt?: number;
|
|
11
12
|
readonly color?: LayoutColor;
|
|
@@ -25,6 +26,8 @@ declare class OdtRun {
|
|
|
25
26
|
set italic(value: boolean);
|
|
26
27
|
get underline(): boolean;
|
|
27
28
|
set underline(value: boolean);
|
|
29
|
+
get strike(): boolean;
|
|
30
|
+
set strike(value: boolean);
|
|
28
31
|
get fontFamily(): string | undefined;
|
|
29
32
|
set fontFamily(value: string);
|
|
30
33
|
get sizePt(): number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Box } from "./geometry-DaJr8yQW.js";
|
|
2
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
3
|
-
import { t as OdtList } from "./list-
|
|
2
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
|
|
3
|
+
import { t as OdtList } from "./list-DVRX7hm9.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,6 +1,6 @@
|
|
|
1
1
|
import { t as Box } from "./geometry-DaJr8yQW.cjs";
|
|
2
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
3
|
-
import { t as OdtList } from "./list-
|
|
2
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
|
|
3
|
+
import { t as OdtList } from "./list-CYsXBdVG.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,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Bg446o16.js";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/table.d.ts
|
|
4
4
|
interface TableInit {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BZIDHdnv.cjs";
|
|
2
2
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
3
3
|
//#region src/edit/odt/table.d.ts
|
|
4
4
|
interface TableInit {
|
package/package.json
CHANGED