js.documents 6.0.1 → 6.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 +283 -115
- package/dist/bin-dispatch.d.cts +2 -2
- package/dist/bin-dispatch.d.ts +2 -2
- package/dist/{blr-types-DVgO1DQ9.d.cts → blr-types-CMN0QKUE.d.cts} +1 -1
- package/dist/{blr-types-DVgO1DQ9.d.ts → blr-types-CMN0QKUE.d.ts} +1 -1
- package/dist/{capability-an5gSNsu.d.cts → capability-BZ3iNsWh.d.cts} +1 -1
- package/dist/{capability-DX0lCSiI.d.ts → capability-D-a4okp0.d.ts} +1 -1
- package/dist/{cell-typing-CEWlywIc.d.cts → cell-typing-BQ-xQ5X5.d.cts} +4 -4
- package/dist/{cell-typing-CEWlywIc.d.ts → cell-typing-BQ-xQ5X5.d.ts} +4 -4
- package/dist/codecs/read.d.cts +1 -1
- package/dist/codecs/read.d.ts +1 -1
- package/dist/convert/capability.d.cts +1 -1
- package/dist/convert/capability.d.ts +1 -1
- package/dist/convert/composition.d.cts +8 -8
- package/dist/convert/composition.d.ts +8 -8
- package/dist/convert/convert.d.cts +3 -3
- package/dist/convert/convert.d.ts +3 -3
- package/dist/convert/port.d.cts +1 -1
- package/dist/convert/port.d.ts +1 -1
- package/dist/convert/variant-bridges.d.cts +3 -3
- package/dist/convert/variant-bridges.d.ts +3 -3
- package/dist/csv/read.d.cts +1 -1
- package/dist/csv/read.d.ts +1 -1
- package/dist/csv/records.cjs +1 -1
- package/dist/csv/records.js +1 -1
- package/dist/csv/write.d.cts +2 -2
- package/dist/csv/write.d.ts +2 -2
- package/dist/{diagnostics-C5-bG09J.d.cts → diagnostics-DdO0xPGy.d.cts} +1 -1
- package/dist/{diagnostics-C5-bG09J.d.ts → diagnostics-DdO0xPGy.d.ts} +1 -1
- package/dist/edit/docx/content.d.cts +1 -1
- package/dist/edit/docx/content.d.ts +1 -1
- package/dist/edit/docx/image.d.cts +1 -1
- package/dist/edit/docx/image.d.ts +1 -1
- package/dist/edit/docx/paragraph.cjs +1 -1
- package/dist/edit/docx/paragraph.d.cts +6 -6
- package/dist/edit/docx/paragraph.d.ts +6 -6
- package/dist/edit/docx/paragraph.js +1 -1
- package/dist/edit/docx/props.d.cts +4 -4
- package/dist/edit/docx/props.d.ts +4 -4
- package/dist/edit/docx/table.d.cts +1 -1
- package/dist/edit/docx/table.d.ts +1 -1
- package/dist/edit/markdown/list.d.cts +1 -1
- package/dist/edit/markdown/list.d.ts +1 -1
- package/dist/edit/odg/page.d.cts +3 -3
- package/dist/edit/odg/page.d.ts +3 -3
- package/dist/edit/odg/vector.d.cts +1 -1
- package/dist/edit/odg/vector.d.ts +1 -1
- package/dist/edit/odp/image.d.cts +1 -1
- package/dist/edit/odp/image.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 +4 -4
- package/dist/edit/odp/slide.d.ts +4 -4
- package/dist/edit/odt/content.d.cts +3 -3
- package/dist/edit/odt/content.d.ts +3 -3
- package/dist/edit/odt/editor.d.cts +3 -3
- package/dist/edit/odt/editor.d.ts +3 -3
- package/dist/edit/odt/image.d.cts +1 -1
- package/dist/edit/odt/image.d.ts +1 -1
- package/dist/edit/odt/list.d.cts +1 -1
- package/dist/edit/odt/list.d.ts +1 -1
- package/dist/edit/odt/paragraph.cjs +1 -1
- package/dist/edit/odt/paragraph.d.cts +1 -1
- package/dist/edit/odt/paragraph.d.ts +1 -1
- package/dist/edit/odt/paragraph.js +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pdf/item.cjs +1 -1
- package/dist/edit/pdf/item.d.cts +1 -1
- package/dist/edit/pdf/item.d.ts +1 -1
- package/dist/edit/pdf/item.js +1 -1
- package/dist/edit/pdf/page.d.cts +1 -1
- package/dist/edit/pdf/page.d.ts +1 -1
- package/dist/edit/pdf/util.d.cts +1 -1
- package/dist/edit/pdf/util.d.ts +1 -1
- package/dist/edit/pptx/content.cjs +1 -1
- package/dist/edit/pptx/content.d.cts +1 -1
- package/dist/edit/pptx/content.d.ts +1 -1
- package/dist/edit/pptx/content.js +1 -1
- package/dist/edit/pptx/editor.cjs +1 -1
- package/dist/edit/pptx/editor.js +1 -1
- package/dist/edit/pptx/image.d.cts +1 -1
- package/dist/edit/pptx/image.d.ts +1 -1
- package/dist/edit/pptx/shape.d.cts +1 -1
- package/dist/edit/pptx/shape.d.ts +1 -1
- package/dist/edit/pptx/slide.d.cts +3 -3
- package/dist/edit/pptx/slide.d.ts +3 -3
- package/dist/edit/pptx/table.d.cts +1 -1
- package/dist/edit/pptx/table.d.ts +1 -1
- package/dist/{evaluate-BU5N1Jk1.d.ts → evaluate-Cu7iEnxX.d.ts} +1 -1
- package/dist/{evaluate-BhMXY6DM.d.cts → evaluate-Rl9P68se.d.cts} +1 -1
- package/dist/firebird/blr-types.d.cts +1 -1
- package/dist/firebird/blr-types.d.ts +1 -1
- package/dist/firebird/schema.d.cts +1 -1
- package/dist/firebird/schema.d.ts +1 -1
- package/dist/fonts/ooxml.d.cts +1 -1
- package/dist/fonts/ooxml.d.ts +1 -1
- package/dist/fonts/registry.d.cts +1 -1
- package/dist/fonts/registry.d.ts +1 -1
- package/dist/{formula-Cs0IexVi.d.cts → formula-BH1FBblm.d.cts} +1 -1
- package/dist/{formula-_8feXQH7.d.cts → formula-BpuJ3ae0.d.cts} +1 -1
- package/dist/{formula-DDSYieJg.d.ts → formula-Cb-LRoIE.d.ts} +1 -1
- package/dist/{formula-BKgIMfhi.d.ts → formula-DF4R1QEJ.d.ts} +1 -1
- package/dist/{image-DRqXQmEg.d.cts → image-BQ7F9xxz.d.cts} +1 -1
- package/dist/{image-DRqXQmEg.d.ts → image-BQ7F9xxz.d.ts} +1 -1
- package/dist/{image-CRgc_j2Q.d.cts → image-CwbCQ49u.d.ts} +2 -2
- package/dist/{image-Biwtr667.d.ts → image-DQxA-zGN.d.cts} +1 -1
- package/dist/{image-Biwtr667.d.cts → image-DQxA-zGN.d.ts} +1 -1
- package/dist/{image-3ql9_z1y.d.ts → image-DzqEWMDw.d.cts} +1 -1
- package/dist/{image-3ql9_z1y.d.cts → image-DzqEWMDw.d.ts} +1 -1
- package/dist/{image-CyYr22TE.d.ts → image-fah3VkZg.d.cts} +2 -2
- package/dist/index.d.cts +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/{item-DhXpJNAQ.d.cts → item-SUC4uKDO.d.cts} +5 -5
- package/dist/{item-DhXpJNAQ.d.ts → item-SUC4uKDO.d.ts} +5 -5
- package/dist/latex/diagnostics.d.cts +1 -1
- package/dist/latex/diagnostics.d.ts +1 -1
- package/dist/latex/lint.cjs +4 -6
- package/dist/latex/lint.d.cts +1 -1
- package/dist/latex/lint.d.ts +1 -1
- package/dist/latex/lint.js +4 -6
- package/dist/latex/lower.cjs +1 -1
- package/dist/latex/lower.d.cts +1 -1
- package/dist/latex/lower.d.ts +1 -1
- package/dist/latex/lower.js +1 -1
- package/dist/latex/symbols.d.cts +1 -1
- package/dist/latex/symbols.d.ts +1 -1
- package/dist/latex/temml.d.cts +2 -2
- package/dist/latex/temml.d.ts +2 -2
- package/dist/layout/cell-typing.d.cts +1 -1
- package/dist/layout/cell-typing.d.ts +1 -1
- package/dist/layout/drawing.d.cts +1 -1
- package/dist/layout/drawing.d.ts +1 -1
- package/dist/layout/engine.d.cts +1 -1
- package/dist/layout/engine.d.ts +1 -1
- package/dist/layout/reconstruct.cjs +1 -1
- package/dist/layout/reconstruct.d.cts +1 -1
- package/dist/layout/reconstruct.d.ts +1 -1
- package/dist/layout/reconstruct.js +1 -1
- package/dist/layout/sheets.d.cts +1 -1
- package/dist/layout/sheets.d.ts +1 -1
- package/dist/layout/slides.d.cts +1 -1
- package/dist/layout/slides.d.ts +1 -1
- package/dist/layout/text-layout.d.cts +1 -1
- package/dist/layout/text-layout.d.ts +1 -1
- package/dist/{lexer-DGPWx_f2.d.cts → lexer-DgsW7jMA.d.cts} +9 -9
- package/dist/{lexer-DGPWx_f2.d.ts → lexer-DgsW7jMA.d.ts} +9 -9
- package/dist/{list-C55W_YCp.d.ts → list-B_Sy668f.d.ts} +1 -1
- package/dist/{list-lTB3eDLC.d.cts → list-BiTN6oop.d.cts} +1 -1
- package/dist/markdown/math.d.cts +1 -1
- package/dist/markdown/math.d.ts +1 -1
- package/dist/markdown/render.d.cts +1 -1
- package/dist/markdown/render.d.ts +1 -1
- package/dist/mathml/layout-types.d.cts +1 -1
- package/dist/mathml/layout-types.d.ts +1 -1
- package/dist/mathml/layout.d.cts +2 -2
- package/dist/mathml/layout.d.ts +2 -2
- package/dist/mathml/nodes.d.cts +1 -1
- package/dist/mathml/nodes.d.ts +1 -1
- package/dist/mathml/variant.d.cts +1 -1
- package/dist/mathml/variant.d.ts +1 -1
- package/dist/model/embedded-drawing.d.cts +1 -1
- package/dist/model/embedded-drawing.d.ts +1 -1
- package/dist/model/paint-order.d.cts +2 -2
- package/dist/model/paint-order.d.ts +2 -2
- package/dist/{nodes-pArN9ilm.d.cts → nodes-jrlUmrNs.d.cts} +3 -3
- package/dist/{nodes-pArN9ilm.d.ts → nodes-jrlUmrNs.d.ts} +3 -3
- package/dist/odb/formula/evaluate.d.cts +4 -4
- package/dist/odb/formula/evaluate.d.ts +4 -4
- package/dist/odb/formula/parser.d.cts +6 -6
- package/dist/odb/formula/parser.d.ts +6 -6
- package/dist/odb/read.d.cts +1 -1
- package/dist/odb/read.d.ts +1 -1
- package/dist/odb/report/render.d.cts +1 -1
- package/dist/odb/report/render.d.ts +1 -1
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/sql/evaluate.d.cts +1 -1
- package/dist/odb/sql/evaluate.d.ts +1 -1
- package/dist/odb/sql/lexer.d.cts +1 -1
- package/dist/odb/sql/lexer.d.ts +1 -1
- package/dist/odb/sql/parser.d.cts +1 -1
- package/dist/odb/sql/parser.d.ts +1 -1
- package/dist/odb/values.d.cts +1 -1
- package/dist/odb/values.d.ts +1 -1
- package/dist/odf/vector/detect.cjs +1 -1
- package/dist/odf/vector/detect.js +1 -1
- package/dist/odf-package/media.d.cts +1 -1
- package/dist/odf-package/media.d.ts +1 -1
- package/dist/omml/read.d.cts +1 -1
- package/dist/omml/read.d.ts +1 -1
- package/dist/omml/shared.d.cts +1 -1
- package/dist/omml/shared.d.ts +1 -1
- package/dist/omml/write.d.cts +1 -1
- package/dist/omml/write.d.ts +1 -1
- package/dist/ooxml/docx/embedded-objects.cjs +10 -24
- package/dist/ooxml/docx/embedded-objects.d.cts +1 -1
- package/dist/ooxml/docx/embedded-objects.d.ts +1 -1
- package/dist/ooxml/docx/embedded-objects.js +10 -24
- package/dist/ooxml/docx/formula.d.cts +1 -1
- package/dist/ooxml/docx/formula.d.ts +1 -1
- package/dist/ooxml/docx/read.d.cts +1 -1
- package/dist/ooxml/docx/read.d.ts +1 -1
- package/dist/ooxml/pptx/formula.d.cts +1 -1
- package/dist/ooxml/pptx/formula.d.ts +1 -1
- package/dist/ooxml/pptx/read.d.cts +1 -1
- package/dist/ooxml/pptx/read.d.ts +1 -1
- package/dist/ooxml/pptx/vector.cjs +1 -1
- package/dist/ooxml/pptx/vector.js +1 -1
- package/dist/opc/media.d.cts +1 -1
- package/dist/opc/media.d.ts +1 -1
- package/dist/opc/rels.d.cts +1 -1
- package/dist/opc/rels.d.ts +1 -1
- package/dist/{paragraph-CoPeTuHR.d.cts → paragraph-BBmkECjw.d.cts} +1 -1
- package/dist/{paragraph--69uh-Ys.d.ts → paragraph-D_fDin5K.d.ts} +1 -1
- package/dist/{parser-DQSgYJzQ.d.ts → parser-D0IJI7LA.d.ts} +22 -22
- package/dist/{parser-B9vC1T6T.d.cts → parser-DYfiAasj.d.cts} +22 -22
- package/dist/{registry-BcBT-bnX.d.cts → registry-913jEe6-.d.ts} +3 -3
- package/dist/{registry-D1Pu5XxB.d.ts → registry-Bs4IHqVQ.d.cts} +3 -3
- package/dist/{shape-DyIjuKE9.d.ts → shape-BY5P8kDn.d.ts} +2 -2
- package/dist/{shape-CaG-RPiz.d.cts → shape-Ca-xsrde.d.cts} +2 -2
- package/dist/{shape-CLHm7U8Y.d.cts → shape-DqkYq1OL.d.cts} +2 -2
- package/dist/{shape-Dnz6-wmG.d.ts → shape-xpgICOEx.d.ts} +2 -2
- package/dist/{shared-DUOzjwcL.d.ts → shared-DHu5jDJf.d.ts} +2 -2
- package/dist/{shared-DLZ3IQUl.d.cts → shared-c0Lp3_iY.d.cts} +2 -2
- package/dist/svg/paint.d.cts +5 -5
- package/dist/svg/paint.d.ts +5 -5
- package/dist/svg/path.d.cts +2 -2
- package/dist/svg/path.d.ts +2 -2
- package/dist/svg/write.d.cts +2 -2
- package/dist/svg/write.d.ts +2 -2
- package/dist/{table-CTeOe_vm.d.ts → table-C3VWWdjr.d.ts} +1 -1
- package/dist/{table-DH0lJRVv.d.cts → table-C_KDsX5R.d.cts} +1 -1
- package/dist/{table-BxMiEZXd.d.ts → table-Ck0fyr8d.d.ts} +1 -1
- package/dist/{table-C_tSXnbt.d.cts → table-CpEmblWG.d.cts} +1 -1
- package/dist/{values-BetetbaH.d.cts → values-BBN9E8dV.d.cts} +5 -5
- package/dist/{values-BetetbaH.d.ts → values-BBN9E8dV.d.ts} +5 -5
- package/dist/{variant-BMrebjMw.d.cts → variant-uwYyRetr.d.cts} +1 -1
- package/dist/{variant-BMrebjMw.d.ts → variant-uwYyRetr.d.ts} +1 -1
- package/dist/{vector-D03KX8Ux.d.cts → vector-DDP7hgvm.d.cts} +2 -2
- package/dist/{vector-D03KX8Ux.d.ts → vector-DDP7hgvm.d.ts} +2 -2
- package/dist/{write-BQ6SK8r8.d.cts → write-DWupt1QI.d.cts} +2 -2
- package/dist/{write-THs7ipBq.d.ts → write-qKlz1R0J.d.ts} +2 -2
- package/dist/xml/odf-text.cjs +1 -1
- package/dist/xml/odf-text.js +1 -1
- package/package.json +7 -16
|
@@ -85,7 +85,6 @@ function spliceContainerBlocks(blocks, containerChildren, pageSize, sourcePathPr
|
|
|
85
85
|
require_ooxml_docx_formula.collectBodyTables(containerChildren, tableElements);
|
|
86
86
|
let paragraphOrdinal = 0;
|
|
87
87
|
let tableOrdinal = 0;
|
|
88
|
-
let mutated = false;
|
|
89
88
|
const placements = [];
|
|
90
89
|
const consumedIndices = /* @__PURE__ */ new Set();
|
|
91
90
|
const rebuiltBlocks = blocks.map((block, blockIndex) => {
|
|
@@ -95,28 +94,22 @@ function spliceContainerBlocks(blocks, containerChildren, pageSize, sourcePathPr
|
|
|
95
94
|
if (paragraph === void 0) return block;
|
|
96
95
|
const { placements: paragraphPlacements, consume } = paragraphEmbeddings(block, paragraph, blockIndex, onMathDiagnostic);
|
|
97
96
|
if (paragraphPlacements.length > 0) placements.push(...paragraphPlacements);
|
|
98
|
-
if (consume)
|
|
99
|
-
consumedIndices.add(blockIndex);
|
|
100
|
-
mutated = true;
|
|
101
|
-
}
|
|
97
|
+
if (consume) consumedIndices.add(blockIndex);
|
|
102
98
|
return block;
|
|
103
99
|
}
|
|
104
100
|
if (block.kind === "table") {
|
|
105
101
|
const tableElement = tableElements[tableOrdinal];
|
|
106
102
|
tableOrdinal += 1;
|
|
107
103
|
if (tableElement === void 0) return block;
|
|
108
|
-
|
|
109
|
-
if (rebuilt !== block) mutated = true;
|
|
110
|
-
return rebuilt;
|
|
104
|
+
return rebuildTable(block, tableElement, pageSize, `${sourcePathPrefix}[${blockIndex}]`, onMathDiagnostic);
|
|
111
105
|
}
|
|
112
106
|
return block;
|
|
113
107
|
});
|
|
114
|
-
if (!
|
|
108
|
+
if (!(consumedIndices.size > 0 || rebuiltBlocks.some((block, index) => block !== blocks[index])) && placements.length === 0) return [...blocks];
|
|
115
109
|
return require_model_block_splice.spliceBlocks(rebuiltBlocks, placements, consumedIndices, (position) => `${sourcePathPrefix}[${position}]`);
|
|
116
110
|
}
|
|
117
111
|
function rebuildTable(table, tblElement, pageSize, blockPath, onMathDiagnostic) {
|
|
118
112
|
const rowElements = (0, ooxml_js.childrenWithTag)(tblElement, "w:tr");
|
|
119
|
-
let changed = false;
|
|
120
113
|
const rows = table.rows.map((row, rowIndex) => {
|
|
121
114
|
const rowElement = rowElements[rowIndex];
|
|
122
115
|
const cellElements = rowElement === void 0 ? [] : (0, ooxml_js.childrenWithTag)(rowElement, "w:tc");
|
|
@@ -124,19 +117,17 @@ function rebuildTable(table, tblElement, pageSize, blockPath, onMathDiagnostic)
|
|
|
124
117
|
const cellElement = cellElements[cellIndex];
|
|
125
118
|
if (cellElement === void 0) return cell;
|
|
126
119
|
const blocks = spliceContainerBlocks(cell.blocks, cellElement.children, pageSize, `${blockPath}.rows[${rowIndex}].cells[${cellIndex}].blocks`, onMathDiagnostic);
|
|
127
|
-
|
|
128
|
-
changed = true;
|
|
129
|
-
return {
|
|
120
|
+
return blocks === cell.blocks ? cell : {
|
|
130
121
|
...cell,
|
|
131
122
|
blocks
|
|
132
123
|
};
|
|
133
124
|
});
|
|
134
|
-
return
|
|
125
|
+
return cells.some((cell, index) => cell !== row.cells[index]) ? {
|
|
135
126
|
...row,
|
|
136
127
|
cells
|
|
137
128
|
} : row;
|
|
138
129
|
});
|
|
139
|
-
return
|
|
130
|
+
return rows.some((row, index) => row !== table.rows[index]) ? {
|
|
140
131
|
...table,
|
|
141
132
|
rows
|
|
142
133
|
} : table;
|
|
@@ -152,7 +143,6 @@ function spliceDocxEmbeddedObjects(sections, bodyChildren, onMathDiagnostic) {
|
|
|
152
143
|
for (const [sectionIndex, section] of sections.entries()) {
|
|
153
144
|
const placements = [];
|
|
154
145
|
const consumedIndices = /* @__PURE__ */ new Set();
|
|
155
|
-
let mutated = false;
|
|
156
146
|
const rebuiltBlocks = section.blocks.map((block, blockIndex) => {
|
|
157
147
|
if (block.kind === "paragraph") {
|
|
158
148
|
const paragraph = paragraphElements[paragraphOrdinal];
|
|
@@ -160,23 +150,19 @@ function spliceDocxEmbeddedObjects(sections, bodyChildren, onMathDiagnostic) {
|
|
|
160
150
|
if (paragraph === void 0) return block;
|
|
161
151
|
const { placements: paragraphPlacements, consume } = paragraphEmbeddings(block, paragraph, blockIndex, onMathDiagnostic);
|
|
162
152
|
if (paragraphPlacements.length > 0) placements.push(...paragraphPlacements);
|
|
163
|
-
if (consume)
|
|
164
|
-
consumedIndices.add(blockIndex);
|
|
165
|
-
mutated = true;
|
|
166
|
-
}
|
|
153
|
+
if (consume) consumedIndices.add(blockIndex);
|
|
167
154
|
return block;
|
|
168
155
|
}
|
|
169
156
|
if (block.kind === "table") {
|
|
170
157
|
const tableElement = tableElements[tableOrdinal];
|
|
171
158
|
tableOrdinal += 1;
|
|
172
159
|
if (tableElement === void 0) return block;
|
|
173
|
-
|
|
174
|
-
if (rebuilt !== block) mutated = true;
|
|
175
|
-
return rebuilt;
|
|
160
|
+
return rebuildTable(block, tableElement, section.pageSize, `sections[${sectionIndex}].blocks`, onMathDiagnostic);
|
|
176
161
|
}
|
|
177
162
|
return block;
|
|
178
163
|
});
|
|
179
|
-
|
|
164
|
+
const rebuiltAnyBlock = rebuiltBlocks.some((block, index) => block !== section.blocks[index]);
|
|
165
|
+
if (placements.length === 0 && consumedIndices.size === 0 && !rebuiltAnyBlock) {
|
|
180
166
|
out.push(section);
|
|
181
167
|
continue;
|
|
182
168
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { t as OmmlDiagnosticSink } from "../../formula-BpuJ3ae0.cjs";
|
|
2
2
|
import { ContentSection } from "document-schema.js";
|
|
3
3
|
import { XmlNode } from "ooxml.js";
|
|
4
4
|
//#region src/ooxml/docx/embedded-objects.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { t as OmmlDiagnosticSink } from "../../formula-Cb-LRoIE.js";
|
|
2
2
|
import { XmlNode } from "ooxml.js";
|
|
3
3
|
import { ContentSection } from "document-schema.js";
|
|
4
4
|
//#region src/ooxml/docx/embedded-objects.d.ts
|
|
@@ -84,7 +84,6 @@ function spliceContainerBlocks(blocks, containerChildren, pageSize, sourcePathPr
|
|
|
84
84
|
collectBodyTables(containerChildren, tableElements);
|
|
85
85
|
let paragraphOrdinal = 0;
|
|
86
86
|
let tableOrdinal = 0;
|
|
87
|
-
let mutated = false;
|
|
88
87
|
const placements = [];
|
|
89
88
|
const consumedIndices = /* @__PURE__ */ new Set();
|
|
90
89
|
const rebuiltBlocks = blocks.map((block, blockIndex) => {
|
|
@@ -94,28 +93,22 @@ function spliceContainerBlocks(blocks, containerChildren, pageSize, sourcePathPr
|
|
|
94
93
|
if (paragraph === void 0) return block;
|
|
95
94
|
const { placements: paragraphPlacements, consume } = paragraphEmbeddings(block, paragraph, blockIndex, onMathDiagnostic);
|
|
96
95
|
if (paragraphPlacements.length > 0) placements.push(...paragraphPlacements);
|
|
97
|
-
if (consume)
|
|
98
|
-
consumedIndices.add(blockIndex);
|
|
99
|
-
mutated = true;
|
|
100
|
-
}
|
|
96
|
+
if (consume) consumedIndices.add(blockIndex);
|
|
101
97
|
return block;
|
|
102
98
|
}
|
|
103
99
|
if (block.kind === "table") {
|
|
104
100
|
const tableElement = tableElements[tableOrdinal];
|
|
105
101
|
tableOrdinal += 1;
|
|
106
102
|
if (tableElement === void 0) return block;
|
|
107
|
-
|
|
108
|
-
if (rebuilt !== block) mutated = true;
|
|
109
|
-
return rebuilt;
|
|
103
|
+
return rebuildTable(block, tableElement, pageSize, `${sourcePathPrefix}[${blockIndex}]`, onMathDiagnostic);
|
|
110
104
|
}
|
|
111
105
|
return block;
|
|
112
106
|
});
|
|
113
|
-
if (!
|
|
107
|
+
if (!(consumedIndices.size > 0 || rebuiltBlocks.some((block, index) => block !== blocks[index])) && placements.length === 0) return [...blocks];
|
|
114
108
|
return spliceBlocks(rebuiltBlocks, placements, consumedIndices, (position) => `${sourcePathPrefix}[${position}]`);
|
|
115
109
|
}
|
|
116
110
|
function rebuildTable(table, tblElement, pageSize, blockPath, onMathDiagnostic) {
|
|
117
111
|
const rowElements = childrenWithTag(tblElement, "w:tr");
|
|
118
|
-
let changed = false;
|
|
119
112
|
const rows = table.rows.map((row, rowIndex) => {
|
|
120
113
|
const rowElement = rowElements[rowIndex];
|
|
121
114
|
const cellElements = rowElement === void 0 ? [] : childrenWithTag(rowElement, "w:tc");
|
|
@@ -123,19 +116,17 @@ function rebuildTable(table, tblElement, pageSize, blockPath, onMathDiagnostic)
|
|
|
123
116
|
const cellElement = cellElements[cellIndex];
|
|
124
117
|
if (cellElement === void 0) return cell;
|
|
125
118
|
const blocks = spliceContainerBlocks(cell.blocks, cellElement.children, pageSize, `${blockPath}.rows[${rowIndex}].cells[${cellIndex}].blocks`, onMathDiagnostic);
|
|
126
|
-
|
|
127
|
-
changed = true;
|
|
128
|
-
return {
|
|
119
|
+
return blocks === cell.blocks ? cell : {
|
|
129
120
|
...cell,
|
|
130
121
|
blocks
|
|
131
122
|
};
|
|
132
123
|
});
|
|
133
|
-
return
|
|
124
|
+
return cells.some((cell, index) => cell !== row.cells[index]) ? {
|
|
134
125
|
...row,
|
|
135
126
|
cells
|
|
136
127
|
} : row;
|
|
137
128
|
});
|
|
138
|
-
return
|
|
129
|
+
return rows.some((row, index) => row !== table.rows[index]) ? {
|
|
139
130
|
...table,
|
|
140
131
|
rows
|
|
141
132
|
} : table;
|
|
@@ -151,7 +142,6 @@ function spliceDocxEmbeddedObjects(sections, bodyChildren, onMathDiagnostic) {
|
|
|
151
142
|
for (const [sectionIndex, section] of sections.entries()) {
|
|
152
143
|
const placements = [];
|
|
153
144
|
const consumedIndices = /* @__PURE__ */ new Set();
|
|
154
|
-
let mutated = false;
|
|
155
145
|
const rebuiltBlocks = section.blocks.map((block, blockIndex) => {
|
|
156
146
|
if (block.kind === "paragraph") {
|
|
157
147
|
const paragraph = paragraphElements[paragraphOrdinal];
|
|
@@ -159,23 +149,19 @@ function spliceDocxEmbeddedObjects(sections, bodyChildren, onMathDiagnostic) {
|
|
|
159
149
|
if (paragraph === void 0) return block;
|
|
160
150
|
const { placements: paragraphPlacements, consume } = paragraphEmbeddings(block, paragraph, blockIndex, onMathDiagnostic);
|
|
161
151
|
if (paragraphPlacements.length > 0) placements.push(...paragraphPlacements);
|
|
162
|
-
if (consume)
|
|
163
|
-
consumedIndices.add(blockIndex);
|
|
164
|
-
mutated = true;
|
|
165
|
-
}
|
|
152
|
+
if (consume) consumedIndices.add(blockIndex);
|
|
166
153
|
return block;
|
|
167
154
|
}
|
|
168
155
|
if (block.kind === "table") {
|
|
169
156
|
const tableElement = tableElements[tableOrdinal];
|
|
170
157
|
tableOrdinal += 1;
|
|
171
158
|
if (tableElement === void 0) return block;
|
|
172
|
-
|
|
173
|
-
if (rebuilt !== block) mutated = true;
|
|
174
|
-
return rebuilt;
|
|
159
|
+
return rebuildTable(block, tableElement, section.pageSize, `sections[${sectionIndex}].blocks`, onMathDiagnostic);
|
|
175
160
|
}
|
|
176
161
|
return block;
|
|
177
162
|
});
|
|
178
|
-
|
|
163
|
+
const rebuiltAnyBlock = rebuiltBlocks.some((block, index) => block !== section.blocks[index]);
|
|
164
|
+
if (placements.length === 0 && consumedIndices.size === 0 && !rebuiltAnyBlock) {
|
|
179
165
|
out.push(section);
|
|
180
166
|
continue;
|
|
181
167
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as equationFrame, i as collectBodyTables, n as PARAGRAPH_NON_CONTENT_TAGS, r as collectBodyParagraphs, t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { a as equationFrame, i as collectBodyTables, n as PARAGRAPH_NON_CONTENT_TAGS, r as collectBodyParagraphs, t as OmmlDiagnosticSink } from "../../formula-BpuJ3ae0.cjs";
|
|
2
2
|
export { OmmlDiagnosticSink, PARAGRAPH_NON_CONTENT_TAGS, collectBodyParagraphs, collectBodyTables, equationFrame };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as equationFrame, i as collectBodyTables, n as PARAGRAPH_NON_CONTENT_TAGS, r as collectBodyParagraphs, t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { a as equationFrame, i as collectBodyTables, n as PARAGRAPH_NON_CONTENT_TAGS, r as collectBodyParagraphs, t as OmmlDiagnosticSink } from "../../formula-Cb-LRoIE.js";
|
|
2
2
|
export { OmmlDiagnosticSink, PARAGRAPH_NON_CONTENT_TAGS, collectBodyParagraphs, collectBodyTables, equationFrame };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { t as OmmlDiagnosticSink } from "../../formula-BpuJ3ae0.cjs";
|
|
2
2
|
import { ContentDocument } from "document-schema.js";
|
|
3
3
|
import { Package } from "ooxml.js";
|
|
4
4
|
//#region src/ooxml/docx/read.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as spliceSlideFormulas, t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { n as spliceSlideFormulas, t as OmmlDiagnosticSink } from "../../formula-BH1FBblm.cjs";
|
|
2
2
|
export { OmmlDiagnosticSink, spliceSlideFormulas };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as spliceSlideFormulas, t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { n as spliceSlideFormulas, t as OmmlDiagnosticSink } from "../../formula-DF4R1QEJ.js";
|
|
2
2
|
export { OmmlDiagnosticSink, spliceSlideFormulas };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as OmmlDiagnosticSink } from "../../formula-
|
|
1
|
+
import { t as OmmlDiagnosticSink } from "../../formula-BH1FBblm.cjs";
|
|
2
2
|
import { ContentDocument } from "document-schema.js";
|
|
3
3
|
import { Package } from "ooxml.js";
|
|
4
4
|
//#region src/ooxml/pptx/read.d.ts
|
|
@@ -60,7 +60,7 @@ function collapseVectorShapeRuns(slide, slideIndex, spTreeChildren) {
|
|
|
60
60
|
let groupIndex = 0;
|
|
61
61
|
while (index < slide.shapes.length) {
|
|
62
62
|
const group = groups[groupIndex];
|
|
63
|
-
if (group?.insertAt === index
|
|
63
|
+
if (group?.insertAt === index) {
|
|
64
64
|
const sourcePath = `slides[${slideIndex}].shapes[${shapes.length}]`;
|
|
65
65
|
shapes.push({
|
|
66
66
|
frame: {
|
|
@@ -59,7 +59,7 @@ function collapseVectorShapeRuns(slide, slideIndex, spTreeChildren) {
|
|
|
59
59
|
let groupIndex = 0;
|
|
60
60
|
while (index < slide.shapes.length) {
|
|
61
61
|
const group = groups[groupIndex];
|
|
62
|
-
if (group?.insertAt === index
|
|
62
|
+
if (group?.insertAt === index) {
|
|
63
63
|
const sourcePath = `slides[${slideIndex}].shapes[${shapes.length}]`;
|
|
64
64
|
shapes.push({
|
|
65
65
|
frame: {
|
package/dist/opc/media.d.cts
CHANGED
|
@@ -5,6 +5,6 @@ interface AddedMedia {
|
|
|
5
5
|
readonly relationshipId: string;
|
|
6
6
|
}
|
|
7
7
|
declare function addImageMedia(pkg: Package, fromPartPath: string, mediaDir: string // e.g. 'word/media' or 'ppt/media'
|
|
8
|
-
, format:
|
|
8
|
+
, format: "png" | "jpeg", bytes: Uint8Array<ArrayBuffer>): AddedMedia;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AddedMedia, addImageMedia };
|
package/dist/opc/media.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ interface AddedMedia {
|
|
|
5
5
|
readonly relationshipId: string;
|
|
6
6
|
}
|
|
7
7
|
declare function addImageMedia(pkg: Package, fromPartPath: string, mediaDir: string // e.g. 'word/media' or 'ppt/media'
|
|
8
|
-
, format:
|
|
8
|
+
, format: "png" | "jpeg", bytes: Uint8Array<ArrayBuffer>): AddedMedia;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AddedMedia, addImageMedia };
|
package/dist/opc/rels.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Package } from "ooxml.js";
|
|
|
3
3
|
interface NewRelationship {
|
|
4
4
|
readonly type: string;
|
|
5
5
|
readonly target: string;
|
|
6
|
-
readonly targetMode?:
|
|
6
|
+
readonly targetMode?: "External";
|
|
7
7
|
}
|
|
8
8
|
declare function addRelationship(pkg: Package, partPath: string, rel: NewRelationship): string;
|
|
9
9
|
declare function addRootRelationship(pkg: Package, rel: NewRelationship): string;
|
package/dist/opc/rels.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Package } from "ooxml.js";
|
|
|
3
3
|
interface NewRelationship {
|
|
4
4
|
readonly type: string;
|
|
5
5
|
readonly target: string;
|
|
6
|
-
readonly targetMode?:
|
|
6
|
+
readonly targetMode?: "External";
|
|
7
7
|
}
|
|
8
8
|
declare function addRelationship(pkg: Package, partPath: string, rel: NewRelationship): string;
|
|
9
9
|
declare function addRootRelationship(pkg: Package, rel: NewRelationship): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ImageInit } from "./image-
|
|
1
|
+
import { t as ImageInit } from "./image-DQxA-zGN.cjs";
|
|
2
2
|
import { n as RunInit, t as OdtRun } from "./run-mzBHuFWz.cjs";
|
|
3
3
|
import { Alignment } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ImageInit } from "./image-
|
|
1
|
+
import { t as ImageInit } from "./image-DQxA-zGN.js";
|
|
2
2
|
import { n as RunInit, t as OdtRun } from "./run-mzBHuFWz.js";
|
|
3
3
|
import { Alignment } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as SqlComparisonOperator } from "./lexer-
|
|
1
|
+
import { t as SqlComparisonOperator } from "./lexer-DgsW7jMA.js";
|
|
2
2
|
//#region src/odb/sql/parser.d.ts
|
|
3
|
-
type SqlAggregateFunction =
|
|
3
|
+
type SqlAggregateFunction = "COUNT" | "SUM" | "AVG" | "MIN" | "MAX";
|
|
4
4
|
interface SqlNameRef {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly quoted: boolean;
|
|
@@ -11,79 +11,79 @@ interface SqlColumnRef {
|
|
|
11
11
|
readonly text: string;
|
|
12
12
|
}
|
|
13
13
|
type SqlLiteral = {
|
|
14
|
-
readonly kind:
|
|
14
|
+
readonly kind: "number";
|
|
15
15
|
readonly value: number;
|
|
16
16
|
} | {
|
|
17
|
-
readonly kind:
|
|
17
|
+
readonly kind: "string";
|
|
18
18
|
readonly value: string;
|
|
19
19
|
} | {
|
|
20
|
-
readonly kind:
|
|
20
|
+
readonly kind: "boolean";
|
|
21
21
|
readonly value: boolean;
|
|
22
22
|
} | {
|
|
23
|
-
readonly kind:
|
|
23
|
+
readonly kind: "null";
|
|
24
24
|
};
|
|
25
25
|
type SqlOperand = {
|
|
26
|
-
readonly kind:
|
|
26
|
+
readonly kind: "column";
|
|
27
27
|
readonly column: SqlColumnRef;
|
|
28
28
|
} | {
|
|
29
|
-
readonly kind:
|
|
29
|
+
readonly kind: "literal";
|
|
30
30
|
readonly literal: SqlLiteral;
|
|
31
31
|
};
|
|
32
32
|
type SqlPredicate = {
|
|
33
|
-
readonly kind:
|
|
33
|
+
readonly kind: "comparison";
|
|
34
34
|
readonly operator: SqlComparisonOperator;
|
|
35
35
|
readonly left: SqlOperand;
|
|
36
36
|
readonly right: SqlOperand;
|
|
37
37
|
} | {
|
|
38
|
-
readonly kind:
|
|
38
|
+
readonly kind: "isNull";
|
|
39
39
|
readonly operand: SqlOperand;
|
|
40
40
|
readonly negated: boolean;
|
|
41
41
|
} | {
|
|
42
|
-
readonly kind:
|
|
42
|
+
readonly kind: "like";
|
|
43
43
|
readonly operand: SqlOperand;
|
|
44
44
|
readonly pattern: string;
|
|
45
45
|
readonly negated: boolean;
|
|
46
46
|
} | {
|
|
47
|
-
readonly kind:
|
|
47
|
+
readonly kind: "in";
|
|
48
48
|
readonly operand: SqlOperand;
|
|
49
49
|
readonly values: readonly SqlLiteral[];
|
|
50
50
|
readonly negated: boolean;
|
|
51
51
|
} | {
|
|
52
|
-
readonly kind:
|
|
52
|
+
readonly kind: "between";
|
|
53
53
|
readonly operand: SqlOperand;
|
|
54
54
|
readonly lower: SqlOperand;
|
|
55
55
|
readonly upper: SqlOperand;
|
|
56
56
|
readonly negated: boolean;
|
|
57
57
|
} | {
|
|
58
|
-
readonly kind:
|
|
58
|
+
readonly kind: "not";
|
|
59
59
|
readonly predicate: SqlPredicate;
|
|
60
60
|
} | {
|
|
61
|
-
readonly kind:
|
|
61
|
+
readonly kind: "and";
|
|
62
62
|
readonly left: SqlPredicate;
|
|
63
63
|
readonly right: SqlPredicate;
|
|
64
64
|
} | {
|
|
65
|
-
readonly kind:
|
|
65
|
+
readonly kind: "or";
|
|
66
66
|
readonly left: SqlPredicate;
|
|
67
67
|
readonly right: SqlPredicate;
|
|
68
68
|
};
|
|
69
69
|
type SqlAggregateArgument = {
|
|
70
|
-
readonly kind:
|
|
70
|
+
readonly kind: "star";
|
|
71
71
|
} | {
|
|
72
|
-
readonly kind:
|
|
72
|
+
readonly kind: "column";
|
|
73
73
|
readonly column: SqlColumnRef;
|
|
74
74
|
};
|
|
75
75
|
type SqlSelectItem = {
|
|
76
|
-
readonly kind:
|
|
76
|
+
readonly kind: "star";
|
|
77
77
|
} | {
|
|
78
|
-
readonly kind:
|
|
78
|
+
readonly kind: "column";
|
|
79
79
|
readonly column: SqlColumnRef;
|
|
80
80
|
} | {
|
|
81
|
-
readonly kind:
|
|
81
|
+
readonly kind: "aggregate";
|
|
82
82
|
readonly aggregate: SqlAggregateFunction;
|
|
83
83
|
readonly argument: SqlAggregateArgument;
|
|
84
84
|
readonly outputName: string;
|
|
85
85
|
};
|
|
86
|
-
type SqlSortDirection =
|
|
86
|
+
type SqlSortDirection = "asc" | "desc";
|
|
87
87
|
interface SqlOrderByTerm {
|
|
88
88
|
readonly column: SqlColumnRef;
|
|
89
89
|
readonly direction: SqlSortDirection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as SqlComparisonOperator } from "./lexer-
|
|
1
|
+
import { t as SqlComparisonOperator } from "./lexer-DgsW7jMA.cjs";
|
|
2
2
|
//#region src/odb/sql/parser.d.ts
|
|
3
|
-
type SqlAggregateFunction =
|
|
3
|
+
type SqlAggregateFunction = "COUNT" | "SUM" | "AVG" | "MIN" | "MAX";
|
|
4
4
|
interface SqlNameRef {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly quoted: boolean;
|
|
@@ -11,79 +11,79 @@ interface SqlColumnRef {
|
|
|
11
11
|
readonly text: string;
|
|
12
12
|
}
|
|
13
13
|
type SqlLiteral = {
|
|
14
|
-
readonly kind:
|
|
14
|
+
readonly kind: "number";
|
|
15
15
|
readonly value: number;
|
|
16
16
|
} | {
|
|
17
|
-
readonly kind:
|
|
17
|
+
readonly kind: "string";
|
|
18
18
|
readonly value: string;
|
|
19
19
|
} | {
|
|
20
|
-
readonly kind:
|
|
20
|
+
readonly kind: "boolean";
|
|
21
21
|
readonly value: boolean;
|
|
22
22
|
} | {
|
|
23
|
-
readonly kind:
|
|
23
|
+
readonly kind: "null";
|
|
24
24
|
};
|
|
25
25
|
type SqlOperand = {
|
|
26
|
-
readonly kind:
|
|
26
|
+
readonly kind: "column";
|
|
27
27
|
readonly column: SqlColumnRef;
|
|
28
28
|
} | {
|
|
29
|
-
readonly kind:
|
|
29
|
+
readonly kind: "literal";
|
|
30
30
|
readonly literal: SqlLiteral;
|
|
31
31
|
};
|
|
32
32
|
type SqlPredicate = {
|
|
33
|
-
readonly kind:
|
|
33
|
+
readonly kind: "comparison";
|
|
34
34
|
readonly operator: SqlComparisonOperator;
|
|
35
35
|
readonly left: SqlOperand;
|
|
36
36
|
readonly right: SqlOperand;
|
|
37
37
|
} | {
|
|
38
|
-
readonly kind:
|
|
38
|
+
readonly kind: "isNull";
|
|
39
39
|
readonly operand: SqlOperand;
|
|
40
40
|
readonly negated: boolean;
|
|
41
41
|
} | {
|
|
42
|
-
readonly kind:
|
|
42
|
+
readonly kind: "like";
|
|
43
43
|
readonly operand: SqlOperand;
|
|
44
44
|
readonly pattern: string;
|
|
45
45
|
readonly negated: boolean;
|
|
46
46
|
} | {
|
|
47
|
-
readonly kind:
|
|
47
|
+
readonly kind: "in";
|
|
48
48
|
readonly operand: SqlOperand;
|
|
49
49
|
readonly values: readonly SqlLiteral[];
|
|
50
50
|
readonly negated: boolean;
|
|
51
51
|
} | {
|
|
52
|
-
readonly kind:
|
|
52
|
+
readonly kind: "between";
|
|
53
53
|
readonly operand: SqlOperand;
|
|
54
54
|
readonly lower: SqlOperand;
|
|
55
55
|
readonly upper: SqlOperand;
|
|
56
56
|
readonly negated: boolean;
|
|
57
57
|
} | {
|
|
58
|
-
readonly kind:
|
|
58
|
+
readonly kind: "not";
|
|
59
59
|
readonly predicate: SqlPredicate;
|
|
60
60
|
} | {
|
|
61
|
-
readonly kind:
|
|
61
|
+
readonly kind: "and";
|
|
62
62
|
readonly left: SqlPredicate;
|
|
63
63
|
readonly right: SqlPredicate;
|
|
64
64
|
} | {
|
|
65
|
-
readonly kind:
|
|
65
|
+
readonly kind: "or";
|
|
66
66
|
readonly left: SqlPredicate;
|
|
67
67
|
readonly right: SqlPredicate;
|
|
68
68
|
};
|
|
69
69
|
type SqlAggregateArgument = {
|
|
70
|
-
readonly kind:
|
|
70
|
+
readonly kind: "star";
|
|
71
71
|
} | {
|
|
72
|
-
readonly kind:
|
|
72
|
+
readonly kind: "column";
|
|
73
73
|
readonly column: SqlColumnRef;
|
|
74
74
|
};
|
|
75
75
|
type SqlSelectItem = {
|
|
76
|
-
readonly kind:
|
|
76
|
+
readonly kind: "star";
|
|
77
77
|
} | {
|
|
78
|
-
readonly kind:
|
|
78
|
+
readonly kind: "column";
|
|
79
79
|
readonly column: SqlColumnRef;
|
|
80
80
|
} | {
|
|
81
|
-
readonly kind:
|
|
81
|
+
readonly kind: "aggregate";
|
|
82
82
|
readonly aggregate: SqlAggregateFunction;
|
|
83
83
|
readonly argument: SqlAggregateArgument;
|
|
84
84
|
readonly outputName: string;
|
|
85
85
|
};
|
|
86
|
-
type SqlSortDirection =
|
|
86
|
+
type SqlSortDirection = "asc" | "desc";
|
|
87
87
|
interface SqlOrderByTerm {
|
|
88
88
|
readonly column: SqlColumnRef;
|
|
89
89
|
readonly direction: SqlSortDirection;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { Package } from "ooxml.js";
|
|
1
2
|
import { FontSubstitution, ProvidedFont } from "document-schema.js";
|
|
2
3
|
import { FontRegistry } from "pdf-codec";
|
|
3
|
-
import { Package } from "ooxml.js";
|
|
4
4
|
import { Package as Package$1 } from "odf.js";
|
|
5
5
|
//#region src/fonts/registry.d.ts
|
|
6
6
|
type FontSourcePackage = {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "docx" | "pptx";
|
|
8
8
|
readonly package: Package;
|
|
9
9
|
} | {
|
|
10
|
-
readonly kind:
|
|
10
|
+
readonly kind: "odf";
|
|
11
11
|
readonly package: Package$1;
|
|
12
12
|
};
|
|
13
13
|
interface DocumentFontRegistryOptions {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Package } from "ooxml.js";
|
|
2
1
|
import { FontSubstitution, ProvidedFont } from "document-schema.js";
|
|
3
2
|
import { FontRegistry } from "pdf-codec";
|
|
3
|
+
import { Package } from "ooxml.js";
|
|
4
4
|
import { Package as Package$1 } from "odf.js";
|
|
5
5
|
//#region src/fonts/registry.d.ts
|
|
6
6
|
type FontSourcePackage = {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: "docx" | "pptx";
|
|
8
8
|
readonly package: Package;
|
|
9
9
|
} | {
|
|
10
|
-
readonly kind:
|
|
10
|
+
readonly kind: "odf";
|
|
11
11
|
readonly package: Package$1;
|
|
12
12
|
};
|
|
13
13
|
interface DocumentFontRegistryOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as MathMlNode$1 } from "./nodes-
|
|
2
|
-
import { t as OmmlWriteResult } from "./write-
|
|
1
|
+
import { r as MathMlNode$1 } from "./nodes-jrlUmrNs.js";
|
|
2
|
+
import { t as OmmlWriteResult } from "./write-qKlz1R0J.js";
|
|
3
3
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
4
4
|
import { Alignment, Box, Color } from "document-schema.js";
|
|
5
5
|
//#region src/edit/pptx/shape.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as MathMlNode$1 } from "./nodes-
|
|
2
|
-
import { t as OmmlWriteResult } from "./write-
|
|
1
|
+
import { r as MathMlNode$1 } from "./nodes-jrlUmrNs.cjs";
|
|
2
|
+
import { t as OmmlWriteResult } from "./write-DWupt1QI.cjs";
|
|
3
3
|
import { Alignment, Box, Color } from "document-schema.js";
|
|
4
4
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
5
5
|
//#region src/edit/pptx/shape.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-
|
|
2
|
-
import { t as OdtList } from "./list-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BBmkECjw.cjs";
|
|
2
|
+
import { t as OdtList } from "./list-BiTN6oop.cjs";
|
|
3
3
|
import { Box } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odp/shape.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph
|
|
2
|
-
import { t as OdtList } from "./list-
|
|
1
|
+
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-D_fDin5K.js";
|
|
2
|
+
import { t as OdtList } from "./list-B_Sy668f.js";
|
|
3
3
|
import { Box } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
5
5
|
//#region src/edit/odp/shape.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as MathVariant } from "./variant-
|
|
1
|
+
import { t as MathVariant } from "./variant-uwYyRetr.js";
|
|
2
2
|
//#region src/omml/shared.d.ts
|
|
3
|
-
type OmmlDiagnosticKind =
|
|
3
|
+
type OmmlDiagnosticKind = "unsupported-element" | "approximated-element";
|
|
4
4
|
interface OmmlDiagnostic {
|
|
5
5
|
readonly kind: OmmlDiagnosticKind;
|
|
6
6
|
readonly detail: string;
|