doculi 5.12.196 → 5.12.198
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/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as odbFormSummary, c as presentMetadataEntries, d as resolveDefaultOutputPath, f as writeOutput, g as isDocumentFormat, h as inferFormatFromExtension, i as formatOdbReportLines, l as formatDocxExtrasLines, n as describeOdbReport, o as formatMetadataLines, p as loadProvidedFonts, r as formatOdbFormLines, t as describeOdbForm, u as readInput } from "./odb-structure-
|
|
2
|
+
import { a as odbFormSummary, c as presentMetadataEntries, d as resolveDefaultOutputPath, f as writeOutput, g as isDocumentFormat, h as inferFormatFromExtension, i as formatOdbReportLines, l as formatDocxExtrasLines, n as describeOdbReport, o as formatMetadataLines, p as loadProvidedFonts, r as formatOdbFormLines, t as describeOdbForm, u as readInput } from "./odb-structure-uKcHeqJ9.js";
|
|
3
3
|
import { Command, CommanderError, InvalidArgumentError } from "commander";
|
|
4
4
|
import { writeFile } from "node:fs/promises";
|
|
5
5
|
import { basename, dirname, extname, join, resolve } from "node:path";
|
|
@@ -533,8 +533,7 @@ function registerMetadataCommand(program) {
|
|
|
533
533
|
const COLUMN_GAP = " ";
|
|
534
534
|
function columnWidths(columns, cells) {
|
|
535
535
|
return columns.map((column, index) => {
|
|
536
|
-
|
|
537
|
-
return Math.max(column.length, ...cellWidths);
|
|
536
|
+
return cells.map((row) => row[index]?.length ?? 0).reduce((greatest, value) => Math.max(greatest, value), column.length);
|
|
538
537
|
});
|
|
539
538
|
}
|
|
540
539
|
function formatRow(values, widths) {
|
|
@@ -1195,7 +1194,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1195
1194
|
}
|
|
1196
1195
|
//#endregion
|
|
1197
1196
|
//#region package.json
|
|
1198
|
-
var version = "5.12.
|
|
1197
|
+
var version = "5.12.198";
|
|
1199
1198
|
//#endregion
|
|
1200
1199
|
//#region src/program.ts
|
|
1201
1200
|
function createProgram() {
|
|
@@ -1223,7 +1222,7 @@ function createProgram() {
|
|
|
1223
1222
|
//#region src/cli-main.ts
|
|
1224
1223
|
async function launchTui(startPath, signal) {
|
|
1225
1224
|
try {
|
|
1226
|
-
const { runTui } = await import("./tui-
|
|
1225
|
+
const { runTui } = await import("./tui-CSXBc3AM.js");
|
|
1227
1226
|
await runTui({
|
|
1228
1227
|
startPath,
|
|
1229
1228
|
signal
|
package/dist/index.cjs
CHANGED
|
@@ -796,8 +796,8 @@ function formDefinitionLines(definition, depth, kindLabel) {
|
|
|
796
796
|
if (definition.filter !== void 0) lines.push(`${indent(depth + 1)}filter: ${definition.filter}`);
|
|
797
797
|
if (definition.order !== void 0) lines.push(`${indent(depth + 1)}order: ${definition.order}`);
|
|
798
798
|
if (definition.controls.length === 0) lines.push(`${indent(depth + 1)}(no controls)`);
|
|
799
|
-
for (const control of definition.controls)
|
|
800
|
-
for (const subForm of definition.subForms)
|
|
799
|
+
for (const control of definition.controls) for (const value of formControlLines(control, depth + 1)) lines.push(value);
|
|
800
|
+
for (const subForm of definition.subForms) for (const value of formDefinitionLines(subForm, depth + 1, "subform")) lines.push(value);
|
|
801
801
|
return lines;
|
|
802
802
|
}
|
|
803
803
|
function formatOdbFormLines(form) {
|
|
@@ -870,13 +870,13 @@ function formatOdbReportLines(report) {
|
|
|
870
870
|
if (dataSource !== void 0) lines.push(`data source: ${dataSource}`);
|
|
871
871
|
if (report.caption !== void 0) lines.push(`caption: ${report.caption}`);
|
|
872
872
|
if (report.mimeType !== void 0) lines.push(`mime type: ${report.mimeType}`);
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
873
|
+
for (const value of reportBandLines(report.reportHeader, 0)) lines.push(value);
|
|
874
|
+
for (const value of reportBandLines(report.pageHeader, 0)) lines.push(value);
|
|
875
|
+
for (const value of report.groups.flatMap((group) => reportGroupLines(group, 0))) lines.push(value);
|
|
876
|
+
for (const value of reportBandLines(report.detail, 0)) lines.push(value);
|
|
877
|
+
for (const value of reportBandLines(report.pageFooter, 0)) lines.push(value);
|
|
878
|
+
for (const value of reportBandLines(report.reportFooter, 0)) lines.push(value);
|
|
879
|
+
for (const value of reportFunctionLines(report.functions, 0)) lines.push(value);
|
|
880
880
|
return lines;
|
|
881
881
|
}
|
|
882
882
|
//#endregion
|
|
@@ -884,8 +884,7 @@ function formatOdbReportLines(report) {
|
|
|
884
884
|
const COLUMN_GAP = " ";
|
|
885
885
|
function columnWidths(columns, cells) {
|
|
886
886
|
return columns.map((column, index) => {
|
|
887
|
-
|
|
888
|
-
return Math.max(column.length, ...cellWidths);
|
|
887
|
+
return cells.map((row) => row[index]?.length ?? 0).reduce((greatest, value) => Math.max(greatest, value), column.length);
|
|
889
888
|
});
|
|
890
889
|
}
|
|
891
890
|
function formatRow(values, widths) {
|
|
@@ -1546,7 +1545,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1546
1545
|
}
|
|
1547
1546
|
//#endregion
|
|
1548
1547
|
//#region package.json
|
|
1549
|
-
var version = "5.12.
|
|
1548
|
+
var version = "5.12.198";
|
|
1550
1549
|
//#endregion
|
|
1551
1550
|
//#region src/program.ts
|
|
1552
1551
|
function createProgram() {
|
package/dist/index.js
CHANGED
|
@@ -795,8 +795,8 @@ function formDefinitionLines(definition, depth, kindLabel) {
|
|
|
795
795
|
if (definition.filter !== void 0) lines.push(`${indent(depth + 1)}filter: ${definition.filter}`);
|
|
796
796
|
if (definition.order !== void 0) lines.push(`${indent(depth + 1)}order: ${definition.order}`);
|
|
797
797
|
if (definition.controls.length === 0) lines.push(`${indent(depth + 1)}(no controls)`);
|
|
798
|
-
for (const control of definition.controls)
|
|
799
|
-
for (const subForm of definition.subForms)
|
|
798
|
+
for (const control of definition.controls) for (const value of formControlLines(control, depth + 1)) lines.push(value);
|
|
799
|
+
for (const subForm of definition.subForms) for (const value of formDefinitionLines(subForm, depth + 1, "subform")) lines.push(value);
|
|
800
800
|
return lines;
|
|
801
801
|
}
|
|
802
802
|
function formatOdbFormLines(form) {
|
|
@@ -869,13 +869,13 @@ function formatOdbReportLines(report) {
|
|
|
869
869
|
if (dataSource !== void 0) lines.push(`data source: ${dataSource}`);
|
|
870
870
|
if (report.caption !== void 0) lines.push(`caption: ${report.caption}`);
|
|
871
871
|
if (report.mimeType !== void 0) lines.push(`mime type: ${report.mimeType}`);
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
872
|
+
for (const value of reportBandLines(report.reportHeader, 0)) lines.push(value);
|
|
873
|
+
for (const value of reportBandLines(report.pageHeader, 0)) lines.push(value);
|
|
874
|
+
for (const value of report.groups.flatMap((group) => reportGroupLines(group, 0))) lines.push(value);
|
|
875
|
+
for (const value of reportBandLines(report.detail, 0)) lines.push(value);
|
|
876
|
+
for (const value of reportBandLines(report.pageFooter, 0)) lines.push(value);
|
|
877
|
+
for (const value of reportBandLines(report.reportFooter, 0)) lines.push(value);
|
|
878
|
+
for (const value of reportFunctionLines(report.functions, 0)) lines.push(value);
|
|
879
879
|
return lines;
|
|
880
880
|
}
|
|
881
881
|
//#endregion
|
|
@@ -883,8 +883,7 @@ function formatOdbReportLines(report) {
|
|
|
883
883
|
const COLUMN_GAP = " ";
|
|
884
884
|
function columnWidths(columns, cells) {
|
|
885
885
|
return columns.map((column, index) => {
|
|
886
|
-
|
|
887
|
-
return Math.max(column.length, ...cellWidths);
|
|
886
|
+
return cells.map((row) => row[index]?.length ?? 0).reduce((greatest, value) => Math.max(greatest, value), column.length);
|
|
888
887
|
});
|
|
889
888
|
}
|
|
890
889
|
function formatRow(values, widths) {
|
|
@@ -1545,7 +1544,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1545
1544
|
}
|
|
1546
1545
|
//#endregion
|
|
1547
1546
|
//#region package.json
|
|
1548
|
-
var version = "5.12.
|
|
1547
|
+
var version = "5.12.198";
|
|
1549
1548
|
//#endregion
|
|
1550
1549
|
//#region src/program.ts
|
|
1551
1550
|
function createProgram() {
|
|
@@ -261,8 +261,8 @@ function formDefinitionLines(definition, depth, kindLabel) {
|
|
|
261
261
|
if (definition.filter !== void 0) lines.push(`${indent(depth + 1)}filter: ${definition.filter}`);
|
|
262
262
|
if (definition.order !== void 0) lines.push(`${indent(depth + 1)}order: ${definition.order}`);
|
|
263
263
|
if (definition.controls.length === 0) lines.push(`${indent(depth + 1)}(no controls)`);
|
|
264
|
-
for (const control of definition.controls)
|
|
265
|
-
for (const subForm of definition.subForms)
|
|
264
|
+
for (const control of definition.controls) for (const value of formControlLines(control, depth + 1)) lines.push(value);
|
|
265
|
+
for (const subForm of definition.subForms) for (const value of formDefinitionLines(subForm, depth + 1, "subform")) lines.push(value);
|
|
266
266
|
return lines;
|
|
267
267
|
}
|
|
268
268
|
function formatOdbFormLines(form) {
|
|
@@ -335,13 +335,13 @@ function formatOdbReportLines(report) {
|
|
|
335
335
|
if (dataSource !== void 0) lines.push(`data source: ${dataSource}`);
|
|
336
336
|
if (report.caption !== void 0) lines.push(`caption: ${report.caption}`);
|
|
337
337
|
if (report.mimeType !== void 0) lines.push(`mime type: ${report.mimeType}`);
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
338
|
+
for (const value of reportBandLines(report.reportHeader, 0)) lines.push(value);
|
|
339
|
+
for (const value of reportBandLines(report.pageHeader, 0)) lines.push(value);
|
|
340
|
+
for (const value of report.groups.flatMap((group) => reportGroupLines(group, 0))) lines.push(value);
|
|
341
|
+
for (const value of reportBandLines(report.detail, 0)) lines.push(value);
|
|
342
|
+
for (const value of reportBandLines(report.pageFooter, 0)) lines.push(value);
|
|
343
|
+
for (const value of reportBandLines(report.reportFooter, 0)) lines.push(value);
|
|
344
|
+
for (const value of reportFunctionLines(report.functions, 0)) lines.push(value);
|
|
345
345
|
return lines;
|
|
346
346
|
}
|
|
347
347
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as inferFormatFromExtension, i as formatOdbReportLines, l as formatDocxExtrasLines, m as formatToExtension, n as describeOdbReport, o as formatMetadataLines, p as loadProvidedFonts, r as formatOdbFormLines, s as formatMetadataValue, t as describeOdbForm, u as readInput } from "./odb-structure-
|
|
1
|
+
import { h as inferFormatFromExtension, i as formatOdbReportLines, l as formatDocxExtrasLines, m as formatToExtension, n as describeOdbReport, o as formatMetadataLines, p as loadProvidedFonts, r as formatOdbFormLines, s as formatMetadataValue, t as describeOdbForm, u as readInput } from "./odb-structure-uKcHeqJ9.js";
|
|
2
2
|
import { readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { basename, dirname, extname, join } from "node:path";
|
|
4
4
|
import { bytesToBase64, cellReference, columnIndexToLetters, convertDocument, createDoc, createDocx, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createXls, csvToPdf, decodeMarkdownText, decodeOdbPackage, docToPdf, docxToPdf, encodeMarkdownText, epubToPdf, hsqldbCellDisplayText, markdownToPdf, odbReportToDocx, odbReportToOdt, odbReportToPdf, odgToPdf, odpToPdf, odsToPdf, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, parseXml, pptToPdf, pptxToPdf, readDocxContent, readDocxExtras, readMarkdownContent, readOdbForms, readOdbReportContent, readOdbReports, readOdbTables, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readPdf, readPptxContent, rgbHexToColor, rtfToPdf, svgToPdf, xlsToPdf, xlsxToPdf } from "documents.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doculi",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.198",
|
|
4
4
|
"description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/csv/svg/markdown/rtf conversion, bridge, and editor as a scriptable command or a terminal app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"commander": "15.0.0",
|
|
71
|
-
"document-outline.js": "3.10.
|
|
72
|
-
"document-schema.js": "7.16.
|
|
73
|
-
"documents.js": "14.12.
|
|
71
|
+
"document-outline.js": "3.10.94",
|
|
72
|
+
"document-schema.js": "7.16.6",
|
|
73
|
+
"documents.js": "14.12.13",
|
|
74
74
|
"ink": "8.0.0",
|
|
75
75
|
"ink-text-input": "6.0.0",
|
|
76
76
|
"react": "19.2.8"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint": "10.8.1",
|
|
88
88
|
"husky": "9.1.7",
|
|
89
89
|
"ink-testing-library": "4.0.0",
|
|
90
|
-
"odf.js": "11.2.
|
|
90
|
+
"odf.js": "11.2.10",
|
|
91
91
|
"publint": "0.3.22",
|
|
92
92
|
"semantic-release": "25.0.9",
|
|
93
93
|
"tsdown": "0.22.14",
|