@json-to-office/core-docx 3.0.0 → 3.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/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin/example/index.js +14 -1
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/quality/facts.d.ts +6 -0
- package/dist/quality/facts.d.ts.map +1 -1
- package/dist/quality/rules.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -12574,6 +12574,7 @@ function tableDesignFact(props, path3, theme, themeName, authored) {
|
|
|
12574
12574
|
alignment: alignments.size === 1 ? [...alignments][0] : alignments.size === 0 ? "left" : "mixed",
|
|
12575
12575
|
hasCellDefaults: asRecord(authoredColumn.cellDefaults) !== void 0,
|
|
12576
12576
|
hasHeader: asRecord(authoredColumn.header) !== void 0,
|
|
12577
|
+
generated: false,
|
|
12577
12578
|
cellsWithOwnAlignment: cells.flatMap((cell, cellIndex) => {
|
|
12578
12579
|
const alignment2 = asRecord(cell)?.horizontalAlignment;
|
|
12579
12580
|
return typeof alignment2 === "string" && DOCX_ALIGNMENTS.has(alignment2) && alignment2 !== "right" ? [cellIndex] : [];
|
|
@@ -12923,7 +12924,19 @@ function prepareDocxQualityDocument(document, options = {}) {
|
|
|
12923
12924
|
context.themeName,
|
|
12924
12925
|
authoredPropsAt(path3)
|
|
12925
12926
|
);
|
|
12926
|
-
if (design)
|
|
12927
|
+
if (design)
|
|
12928
|
+
addFact({
|
|
12929
|
+
...design,
|
|
12930
|
+
columns: design.columns.map((column) => {
|
|
12931
|
+
const authored = authoredPath(column.path);
|
|
12932
|
+
const table2 = /^(.*)\/props\/columns\/\d+$/.exec(authored)?.[1];
|
|
12933
|
+
return {
|
|
12934
|
+
...column,
|
|
12935
|
+
path: authored,
|
|
12936
|
+
generated: table2 === void 0 || asRecord(nodeAtPointer(themed.document, table2))?.name !== "table"
|
|
12937
|
+
};
|
|
12938
|
+
})
|
|
12939
|
+
});
|
|
12927
12940
|
}
|
|
12928
12941
|
if (node.name === "chart" || node.name === "highcharts") {
|
|
12929
12942
|
const fact = chartFact(node, props, path3, paletteTokens);
|