@cj-tech-master/excelts 4.0.2 → 4.0.3-canary.20260106020433.b618378
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/browser/modules/excel/table.d.ts +1 -0
- package/dist/browser/modules/excel/table.js +12 -7
- package/dist/browser/modules/excel/types.d.ts +7 -0
- package/dist/cjs/modules/excel/table.js +12 -7
- package/dist/esm/modules/excel/table.js +12 -7
- package/dist/iife/excelts.iife.js +8 -5
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +2 -2
- package/dist/types/index.browser.d.ts +20 -20
- package/dist/types/index.d.ts +23 -23
- package/dist/types/modules/archive/compress.browser.d.ts +1 -1
- package/dist/types/modules/archive/compress.d.ts +2 -2
- package/dist/types/modules/archive/crc32.browser.d.ts +1 -1
- package/dist/types/modules/archive/crc32.d.ts +1 -1
- package/dist/types/modules/archive/defaults.d.ts +1 -1
- package/dist/types/modules/archive/extract.d.ts +6 -6
- package/dist/types/modules/archive/index.base.d.ts +4 -4
- package/dist/types/modules/archive/index.browser.d.ts +5 -5
- package/dist/types/modules/archive/index.d.ts +5 -5
- package/dist/types/modules/archive/parse.base.d.ts +3 -3
- package/dist/types/modules/archive/parse.browser.d.ts +2 -2
- package/dist/types/modules/archive/parse.d.ts +3 -3
- package/dist/types/modules/archive/streaming-compress.browser.d.ts +2 -2
- package/dist/types/modules/archive/streaming-compress.d.ts +2 -2
- package/dist/types/modules/archive/streaming-zip.d.ts +2 -2
- package/dist/types/modules/archive/zip-builder.d.ts +2 -2
- package/dist/types/modules/archive/zip-entry-metadata.d.ts +1 -1
- package/dist/types/modules/archive/zip-parser.d.ts +1 -1
- package/dist/types/modules/csv/csv-stream.d.ts +3 -3
- package/dist/types/modules/csv/csv.browser.d.ts +9 -9
- package/dist/types/modules/csv/csv.d.ts +4 -4
- package/dist/types/modules/excel/anchor.d.ts +1 -1
- package/dist/types/modules/excel/cell.d.ts +7 -7
- package/dist/types/modules/excel/column.d.ts +3 -3
- package/dist/types/modules/excel/defined-names.d.ts +4 -4
- package/dist/types/modules/excel/image.d.ts +2 -2
- package/dist/types/modules/excel/pivot-table.d.ts +1 -1
- package/dist/types/modules/excel/range.d.ts +1 -1
- package/dist/types/modules/excel/row.d.ts +3 -3
- package/dist/types/modules/excel/stream/hyperlink-reader.d.ts +2 -2
- package/dist/types/modules/excel/stream/workbook-reader.browser.d.ts +6 -6
- package/dist/types/modules/excel/stream/workbook-reader.d.ts +5 -5
- package/dist/types/modules/excel/stream/workbook-writer.browser.d.ts +8 -8
- package/dist/types/modules/excel/stream/workbook-writer.d.ts +2 -2
- package/dist/types/modules/excel/stream/worksheet-reader.d.ts +6 -6
- package/dist/types/modules/excel/stream/worksheet-writer.d.ts +9 -9
- package/dist/types/modules/excel/table.d.ts +3 -2
- package/dist/types/modules/excel/types.d.ts +7 -0
- package/dist/types/modules/excel/utils/col-cache.d.ts +1 -1
- package/dist/types/modules/excel/utils/sheet-utils.d.ts +3 -3
- package/dist/types/modules/excel/utils/stream-buf.d.ts +2 -2
- package/dist/types/modules/excel/workbook.d.ts +9 -9
- package/dist/types/modules/excel/worksheet.d.ts +10 -10
- package/dist/types/modules/excel/xlsx/xform/base-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/defined-name-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/sheet-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-calc-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-pivot-cache-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-view-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/comment/comment-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/comment/comments-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/comment/style/vml-position-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/style/vml-protection-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/vml-anchor-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/vml-client-data-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/vml-notes-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/vml-shape-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/comment/vml-textbox-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/composite-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/app-heading-pairs-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/app-titles-of-parts-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/app-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/content-types-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/core-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/relationship-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/core/relationships-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/blip-fill-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/drawing/blip-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/c-nv-pic-pr-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/cell-position-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/drawing/drawing-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/ext-lst-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/hlink-click-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/pic-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/list-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/pivot-table/cache-field-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/auto-filter-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cell-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.d.ts +6 -6
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/cfvo-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/conditional-formatting-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/conditional-formattings-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/databar-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/formula-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf/icon-set-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/cf-icon-ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/cfvo-ext-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formattings-ext-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/f-ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/sheet/cf-ext/sqref-ext-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/col-breaks-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/col-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/data-validations-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/dimension-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/drawing-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/ext-lst-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/header-footer-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/hyperlink-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/merge-cell-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/outline-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/page-breaks-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/page-margins-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/page-setup-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/page-setup-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/picture-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/print-options-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/row-breaks-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/row-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/sheet-format-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/sheet-properties-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/sheet-protection-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/sheet-view-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/table-part-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/sheet/worksheet-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/simple/boolean-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/simple/date-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/simple/float-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/simple/integer-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/simple/string-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/static-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/strings/phonetic-text-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/strings/rich-text-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/strings/shared-string-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/strings/shared-strings-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/strings/text-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/alignment-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/border-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/style/color-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/dxf-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/fill-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/style/font-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/numfmt-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/protection-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/style/style-xform.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xform/style/styles-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/style/underline-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/table/auto-filter-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/table/custom-filter-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/table/filter-column-xform.d.ts +2 -2
- package/dist/types/modules/excel/xlsx/xform/table/filter-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/table/table-column-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/table/table-style-info-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/table/table-xform.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xlsx.browser.d.ts +3 -3
- package/dist/types/modules/excel/xlsx/xlsx.d.ts +1 -1
- package/dist/types/modules/stream/base-transform.d.ts +1 -1
- package/dist/types/modules/stream/buffered-stream.d.ts +1 -1
- package/dist/types/modules/stream/index.browser.d.ts +8 -8
- package/dist/types/modules/stream/index.d.ts +9 -9
- package/dist/types/modules/stream/pull-stream.d.ts +1 -1
- package/dist/types/modules/stream/streams.browser.d.ts +4 -4
- package/dist/types/modules/stream/streams.d.ts +3 -3
- package/dist/types/modules/stream/utils.d.ts +1 -1
- package/dist/types/utils/utils.browser.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +3 -2
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
* Browser entry point - No Node.js dependencies
|
|
3
3
|
* This version is optimized for browser environments with minimal bundle size
|
|
4
4
|
*/
|
|
5
|
-
export { Workbook } from "./modules/excel/workbook";
|
|
6
|
-
export { Worksheet } from "./modules/excel/worksheet";
|
|
7
|
-
export { Row } from "./modules/excel/row";
|
|
8
|
-
export { Column } from "./modules/excel/column";
|
|
9
|
-
export { Cell } from "./modules/excel/cell";
|
|
10
|
-
export { Range } from "./modules/excel/range";
|
|
11
|
-
export { Image } from "./modules/excel/image";
|
|
12
|
-
export * from "./modules/excel/anchor";
|
|
13
|
-
export { Table } from "./modules/excel/table";
|
|
14
|
-
export { DataValidations } from "./modules/excel/data-validations";
|
|
15
|
-
export * from "./modules/excel/enums";
|
|
16
|
-
export * from "./modules/excel/types";
|
|
17
|
-
export type { PivotTable, PivotTableModel, PivotTableSource, CacheField, DataField, PivotTableSubtotal, ParsedCacheDefinition, ParsedCacheRecords } from "./modules/excel/pivot-table";
|
|
18
|
-
import { WorkbookWriter } from "./modules/excel/stream/workbook-writer.browser";
|
|
19
|
-
import { WorkbookReader } from "./modules/excel/stream/workbook-reader.browser";
|
|
20
|
-
import { WorksheetWriter } from "./modules/excel/stream/worksheet-writer";
|
|
21
|
-
import { WorksheetReader } from "./modules/excel/stream/worksheet-reader";
|
|
5
|
+
export { Workbook } from "./modules/excel/workbook.js";
|
|
6
|
+
export { Worksheet } from "./modules/excel/worksheet.js";
|
|
7
|
+
export { Row } from "./modules/excel/row.js";
|
|
8
|
+
export { Column } from "./modules/excel/column.js";
|
|
9
|
+
export { Cell } from "./modules/excel/cell.js";
|
|
10
|
+
export { Range } from "./modules/excel/range.js";
|
|
11
|
+
export { Image } from "./modules/excel/image.js";
|
|
12
|
+
export * from "./modules/excel/anchor.js";
|
|
13
|
+
export { Table } from "./modules/excel/table.js";
|
|
14
|
+
export { DataValidations } from "./modules/excel/data-validations.js";
|
|
15
|
+
export * from "./modules/excel/enums.js";
|
|
16
|
+
export * from "./modules/excel/types.js";
|
|
17
|
+
export type { PivotTable, PivotTableModel, PivotTableSource, CacheField, DataField, PivotTableSubtotal, ParsedCacheDefinition, ParsedCacheRecords } from "./modules/excel/pivot-table.js";
|
|
18
|
+
import { WorkbookWriter } from "./modules/excel/stream/workbook-writer.browser.js";
|
|
19
|
+
import { WorkbookReader } from "./modules/excel/stream/workbook-reader.browser.js";
|
|
20
|
+
import { WorksheetWriter } from "./modules/excel/stream/worksheet-writer.js";
|
|
21
|
+
import { WorksheetReader } from "./modules/excel/stream/worksheet-reader.js";
|
|
22
22
|
export { WorkbookWriter, WorkbookReader, WorksheetWriter, WorksheetReader };
|
|
23
|
-
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./modules/csv/csv.browser";
|
|
24
|
-
export { CsvParserStream, CsvFormatterStream } from "./modules/csv/csv.browser";
|
|
25
|
-
export * from "./modules/excel/utils/sheet-utils";
|
|
23
|
+
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./modules/csv/csv.browser.js";
|
|
24
|
+
export { CsvParserStream, CsvFormatterStream } from "./modules/csv/csv.browser.js";
|
|
25
|
+
export * from "./modules/excel/utils/sheet-utils.js";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { Workbook } from "./modules/excel/workbook";
|
|
2
|
-
export { Worksheet } from "./modules/excel/worksheet";
|
|
3
|
-
export { Row } from "./modules/excel/row";
|
|
4
|
-
export { Column } from "./modules/excel/column";
|
|
5
|
-
export { Cell } from "./modules/excel/cell";
|
|
6
|
-
export { Range } from "./modules/excel/range";
|
|
7
|
-
export { Image } from "./modules/excel/image";
|
|
8
|
-
export * from "./modules/excel/anchor";
|
|
9
|
-
export { Table } from "./modules/excel/table";
|
|
10
|
-
export { DataValidations } from "./modules/excel/data-validations";
|
|
11
|
-
export { WorkbookWriter } from "./modules/excel/stream/workbook-writer";
|
|
12
|
-
export { WorkbookReader } from "./modules/excel/stream/workbook-reader";
|
|
13
|
-
export { WorksheetWriter } from "./modules/excel/stream/worksheet-writer";
|
|
14
|
-
export { WorksheetReader } from "./modules/excel/stream/worksheet-reader";
|
|
15
|
-
export * from "./modules/excel/enums";
|
|
16
|
-
export * from "./modules/excel/types";
|
|
17
|
-
export type { PivotTable, PivotTableModel, PivotTableSource, CacheField, DataField, PivotTableSubtotal, ParsedCacheDefinition, ParsedCacheRecords } from "./modules/excel/pivot-table";
|
|
18
|
-
export type { WorkbookReaderOptions, ParseEvent, SharedStringEvent, WorksheetReadyEvent, HyperlinksEvent } from "./modules/excel/stream/workbook-reader";
|
|
19
|
-
export type { WorksheetReaderOptions, WorksheetEvent, RowEvent, HyperlinkEvent, WorksheetHyperlink } from "./modules/excel/stream/worksheet-reader";
|
|
20
|
-
export type { WorkbookWriterOptions, ZipOptions, ZlibOptions } from "./modules/excel/stream/workbook-writer";
|
|
21
|
-
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./modules/csv/csv";
|
|
22
|
-
export { CsvParserStream, CsvFormatterStream } from "./modules/csv/csv";
|
|
23
|
-
export * from "./modules/excel/utils/sheet-utils";
|
|
1
|
+
export { Workbook } from "./modules/excel/workbook.js";
|
|
2
|
+
export { Worksheet } from "./modules/excel/worksheet.js";
|
|
3
|
+
export { Row } from "./modules/excel/row.js";
|
|
4
|
+
export { Column } from "./modules/excel/column.js";
|
|
5
|
+
export { Cell } from "./modules/excel/cell.js";
|
|
6
|
+
export { Range } from "./modules/excel/range.js";
|
|
7
|
+
export { Image } from "./modules/excel/image.js";
|
|
8
|
+
export * from "./modules/excel/anchor.js";
|
|
9
|
+
export { Table } from "./modules/excel/table.js";
|
|
10
|
+
export { DataValidations } from "./modules/excel/data-validations.js";
|
|
11
|
+
export { WorkbookWriter } from "./modules/excel/stream/workbook-writer.js";
|
|
12
|
+
export { WorkbookReader } from "./modules/excel/stream/workbook-reader.js";
|
|
13
|
+
export { WorksheetWriter } from "./modules/excel/stream/worksheet-writer.js";
|
|
14
|
+
export { WorksheetReader } from "./modules/excel/stream/worksheet-reader.js";
|
|
15
|
+
export * from "./modules/excel/enums.js";
|
|
16
|
+
export * from "./modules/excel/types.js";
|
|
17
|
+
export type { PivotTable, PivotTableModel, PivotTableSource, CacheField, DataField, PivotTableSubtotal, ParsedCacheDefinition, ParsedCacheRecords } from "./modules/excel/pivot-table.js";
|
|
18
|
+
export type { WorkbookReaderOptions, ParseEvent, SharedStringEvent, WorksheetReadyEvent, HyperlinksEvent } from "./modules/excel/stream/workbook-reader.js";
|
|
19
|
+
export type { WorksheetReaderOptions, WorksheetEvent, RowEvent, HyperlinkEvent, WorksheetHyperlink } from "./modules/excel/stream/worksheet-reader.js";
|
|
20
|
+
export type { WorkbookWriterOptions, ZipOptions, ZlibOptions } from "./modules/excel/stream/workbook-writer.js";
|
|
21
|
+
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./modules/csv/csv.js";
|
|
22
|
+
export { CsvParserStream, CsvFormatterStream } from "./modules/csv/csv.js";
|
|
23
|
+
export * from "./modules/excel/utils/sheet-utils.js";
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - Safari >= 14.1
|
|
11
11
|
* - Edge >= 89
|
|
12
12
|
*/
|
|
13
|
-
import { type CompressOptions } from "./compress.base";
|
|
13
|
+
import { type CompressOptions } from "./compress.base.js";
|
|
14
14
|
export { type CompressOptions };
|
|
15
15
|
/**
|
|
16
16
|
* Check if CompressionStream is available in this environment.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Uses zlib module (C++ implementation, fastest) with "deflate-raw" format
|
|
5
5
|
* (raw DEFLATE without zlib header/trailer, required for ZIP files)
|
|
6
6
|
*/
|
|
7
|
-
export { type CompressOptions, hasCompressionStream } from "./compress.base";
|
|
8
|
-
import type { CompressOptions } from "./compress.base";
|
|
7
|
+
export { type CompressOptions, hasCompressionStream } from "./compress.base.js";
|
|
8
|
+
import type { CompressOptions } from "./compress.base.js";
|
|
9
9
|
/**
|
|
10
10
|
* Compress data using Node.js native zlib
|
|
11
11
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1
|
|
8
8
|
* Represented as 0xEDB88320 in reversed (LSB-first) form
|
|
9
9
|
*/
|
|
10
|
-
export { crc32JS as crc32, crc32UpdateJS as crc32Update, crc32Finalize } from "./crc32.base";
|
|
10
|
+
export { crc32JS as crc32, crc32UpdateJS as crc32Update, crc32Finalize } from "./crc32.base.js";
|
|
11
11
|
/**
|
|
12
12
|
* Ensure CRC32 is ready (no-op in browser, for API compatibility)
|
|
13
13
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1
|
|
9
9
|
* Represented as 0xEDB88320 in reversed (LSB-first) form
|
|
10
10
|
*/
|
|
11
|
-
import { crc32Finalize } from "./crc32.base";
|
|
11
|
+
import { crc32Finalize } from "./crc32.base.js";
|
|
12
12
|
/**
|
|
13
13
|
* Calculate CRC32 checksum for the given data
|
|
14
14
|
* Uses native zlib.crc32 in Node.js for ~100x better performance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ZipTimestampMode } from "./utils/timestamps";
|
|
1
|
+
import type { ZipTimestampMode } from "./utils/timestamps.js";
|
|
2
2
|
export declare const DEFAULT_COMPRESS_LEVEL = 6;
|
|
3
3
|
export declare const DEFAULT_ZIP_LEVEL = 6;
|
|
4
4
|
export declare const DEFAULT_ZIP_TIMESTAMPS: ZipTimestampMode;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provides easy-to-use Promise-based API for extracting ZIP files
|
|
4
4
|
* Works in both Node.js and browser environments
|
|
5
5
|
*/
|
|
6
|
-
import { type ZipEntryInfo } from "./zip-parser";
|
|
6
|
+
import { type ZipEntryInfo } from "./zip-parser.js";
|
|
7
7
|
/**
|
|
8
8
|
* Extracted file entry
|
|
9
9
|
*/
|
|
@@ -25,7 +25,7 @@ export interface ExtractedFile {
|
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
28
|
-
* import { extractAll } from "./utils/unzip/extract";
|
|
28
|
+
* import { extractAll } from "./utils/unzip/extract.js";
|
|
29
29
|
*
|
|
30
30
|
* const zipData = fs.readFileSync("archive.zip");
|
|
31
31
|
* const files = await extractAll(zipData);
|
|
@@ -45,7 +45,7 @@ export declare function extractAll(zipData: Uint8Array | ArrayBuffer): Promise<M
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
48
|
-
* import { extractFile } from "./utils/unzip/extract";
|
|
48
|
+
* import { extractFile } from "./utils/unzip/extract.js";
|
|
49
49
|
*
|
|
50
50
|
* const zipData = fs.readFileSync("archive.zip");
|
|
51
51
|
* const content = await extractFile(zipData, "readme.txt");
|
|
@@ -63,7 +63,7 @@ export declare function extractFile(zipData: Uint8Array | ArrayBuffer, filePath:
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
66
|
-
* import { listFiles } from "./utils/unzip/extract";
|
|
66
|
+
* import { listFiles } from "./utils/unzip/extract.js";
|
|
67
67
|
*
|
|
68
68
|
* const zipData = fs.readFileSync("archive.zip");
|
|
69
69
|
* const paths = await listFiles(zipData);
|
|
@@ -79,7 +79,7 @@ export declare function listFiles(zipData: Uint8Array | ArrayBuffer): Promise<st
|
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```ts
|
|
82
|
-
* import { forEachEntry } from "./utils/unzip/extract";
|
|
82
|
+
* import { forEachEntry } from "./utils/unzip/extract.js";
|
|
83
83
|
*
|
|
84
84
|
* await forEachEntry(zipData, async (path, getData) => {
|
|
85
85
|
* if (path.endsWith(".xml")) {
|
|
@@ -91,4 +91,4 @@ export declare function listFiles(zipData: Uint8Array | ArrayBuffer): Promise<st
|
|
|
91
91
|
* ```
|
|
92
92
|
*/
|
|
93
93
|
export declare function forEachEntry(zipData: Uint8Array | ArrayBuffer, callback: (path: string, getData: () => Promise<Uint8Array>, entry: ZipEntryInfo) => Promise<boolean | void>): Promise<void>;
|
|
94
|
-
export { ZipParser, type ZipEntryInfo, type ZipParseOptions } from "./zip-parser";
|
|
94
|
+
export { ZipParser, type ZipEntryInfo, type ZipParseOptions } from "./zip-parser.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform-specific entrypoints (index.ts / index.browser.ts) should re-export
|
|
6
6
|
* from this file and then layer their platform-specific bindings.
|
|
7
7
|
*/
|
|
8
|
-
export { createZip, createZipSync, ZipBuilder, type ZipEntry, type ZipOptions } from "./zip-builder";
|
|
9
|
-
export { StreamingZip, ZipDeflateFile, Zip, ZipDeflate } from "./streaming-zip";
|
|
10
|
-
export { extractAll, extractFile, listFiles, forEachEntry, ZipParser, type ExtractedFile, type ZipParseOptions } from "./extract";
|
|
11
|
-
export type { ZipEntryInfo } from "./zip-entry-info";
|
|
8
|
+
export { createZip, createZipSync, ZipBuilder, type ZipEntry, type ZipOptions } from "./zip-builder.js";
|
|
9
|
+
export { StreamingZip, ZipDeflateFile, Zip, ZipDeflate } from "./streaming-zip.js";
|
|
10
|
+
export { extractAll, extractFile, listFiles, forEachEntry, ZipParser, type ExtractedFile, type ZipParseOptions } from "./extract.js";
|
|
11
|
+
export type { ZipEntryInfo } from "./zip-entry-info.js";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* This file mirrors [src/modules/archive/index.ts] but explicitly re-exports
|
|
5
5
|
* browser-specific implementations so we can enforce export-surface parity.
|
|
6
6
|
*/
|
|
7
|
-
export * from "./index.base";
|
|
8
|
-
export { crc32, crc32Update, crc32Finalize } from "./crc32.browser";
|
|
9
|
-
export { compress, compressSync, decompress, decompressSync, hasCompressionStream, type CompressOptions } from "./compress.browser";
|
|
10
|
-
export { createDeflateStream, createInflateStream, hasDeflateRaw, type StreamCompressOptions } from "./streaming-compress.browser";
|
|
11
|
-
export { Parse, createParse, type ParseOptions, type ZipEntry as StreamZipEntry } from "./parse.browser";
|
|
7
|
+
export * from "./index.base.js";
|
|
8
|
+
export { crc32, crc32Update, crc32Finalize } from "./crc32.browser.js";
|
|
9
|
+
export { compress, compressSync, decompress, decompressSync, hasCompressionStream, type CompressOptions } from "./compress.browser.js";
|
|
10
|
+
export { createDeflateStream, createInflateStream, hasDeflateRaw, type StreamCompressOptions } from "./streaming-compress.browser.js";
|
|
11
|
+
export { Parse, createParse, type ParseOptions, type ZipEntry as StreamZipEntry } from "./parse.browser.js";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* This module is intended to be extractable as a standalone package.
|
|
5
5
|
* It groups all ZIP creation and extraction utilities in one place.
|
|
6
6
|
*/
|
|
7
|
-
export * from "./index.base";
|
|
8
|
-
export { crc32, crc32Update, crc32Finalize } from "./crc32";
|
|
9
|
-
export { compress, compressSync, decompress, decompressSync, hasCompressionStream, type CompressOptions } from "./compress";
|
|
10
|
-
export { createDeflateStream, createInflateStream, hasDeflateRaw, type StreamCompressOptions } from "./streaming-compress";
|
|
11
|
-
export { Parse, createParse, type ParseOptions, type ZipEntry as StreamZipEntry } from "./parse";
|
|
7
|
+
export * from "./index.base.js";
|
|
8
|
+
export { crc32, crc32Update, crc32Finalize } from "./crc32.js";
|
|
9
|
+
export { compress, compressSync, decompress, decompressSync, hasCompressionStream, type CompressOptions } from "./compress.js";
|
|
10
|
+
export { createDeflateStream, createInflateStream, hasDeflateRaw, type StreamCompressOptions } from "./streaming-compress.js";
|
|
11
|
+
export { Parse, createParse, type ParseOptions, type ZipEntry as StreamZipEntry } from "./parse.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Duplex, PassThrough, Transform, type Readable } from "../stream/index";
|
|
2
|
-
import { ByteQueue } from "./byte-queue";
|
|
3
|
-
import { parseZipExtraFields, type ZipExtraFields, type ZipVars } from "./utils/zip-extra-fields";
|
|
1
|
+
import { Duplex, PassThrough, Transform, type Readable } from "../stream/index.js";
|
|
2
|
+
import { ByteQueue } from "./byte-queue.js";
|
|
3
|
+
import { parseZipExtraFields, type ZipExtraFields, type ZipVars } from "./utils/zip-extra-fields.js";
|
|
4
4
|
export declare const CRX_HEADER_FORMAT: [string, number][];
|
|
5
5
|
export declare const LOCAL_FILE_HEADER_FORMAT: [string, number][];
|
|
6
6
|
export declare const DATA_DESCRIPTOR_FORMAT: [string, number][];
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Falls back to pure JavaScript implementation for older browsers.
|
|
6
6
|
* Uses the browser Duplex stream implementation for compatibility.
|
|
7
7
|
*/
|
|
8
|
-
import { Duplex } from "../stream/index";
|
|
9
|
-
import { type CrxHeader, type PullStreamPublicApi, type EntryProps, type EntryVars, type InflateFactory, type ParseOptions, type ZipEntry } from "./parse.base";
|
|
8
|
+
import { Duplex } from "../stream/index.js";
|
|
9
|
+
import { type CrxHeader, type PullStreamPublicApi, type EntryProps, type EntryVars, type InflateFactory, type ParseOptions, type ZipEntry } from "./parse.base.js";
|
|
10
10
|
export type { CrxHeader, EntryProps, EntryVars, ParseOptions, ZipEntry };
|
|
11
11
|
export type ParseStream = Duplex & {
|
|
12
12
|
promise(): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Duplex } from "../stream/index";
|
|
2
|
-
import { type PullStreamPublicApi, type CrxHeader, type EntryProps, type EntryVars, type InflateFactory, type ParseOptions, type ZipEntry } from "./parse.base";
|
|
3
|
-
export type { CrxHeader } from "./parse.base";
|
|
1
|
+
import type { Duplex } from "../stream/index.js";
|
|
2
|
+
import { type PullStreamPublicApi, type CrxHeader, type EntryProps, type EntryVars, type InflateFactory, type ParseOptions, type ZipEntry } from "./parse.base.js";
|
|
3
|
+
export type { CrxHeader } from "./parse.base.js";
|
|
4
4
|
export type { EntryProps, EntryVars, ParseOptions, ZipEntry };
|
|
5
5
|
export type ParseStream = Duplex & {
|
|
6
6
|
promise(): Promise<void>;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* API compatible with Node.js version - supports .on("data"), .on("end"), .write(callback), .end()
|
|
8
8
|
*/
|
|
9
|
-
export type { StreamCompressOptions } from "./streaming-compress.base";
|
|
10
|
-
import { type DeflateStream, type InflateStream, type StreamCompressOptions } from "./streaming-compress.base";
|
|
9
|
+
export type { StreamCompressOptions } from "./streaming-compress.base.js";
|
|
10
|
+
import { type DeflateStream, type InflateStream, type StreamCompressOptions } from "./streaming-compress.base.js";
|
|
11
11
|
/**
|
|
12
12
|
* Check if deflate-raw streaming compression is supported by this library.
|
|
13
13
|
*
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Uses zlib.createDeflateRaw() with explicit flush() calls for real chunk-by-chunk streaming.
|
|
5
5
|
* Each write() immediately produces compressed output without waiting for end().
|
|
6
6
|
*/
|
|
7
|
-
export type { DeflateStream, InflateStream, StreamCompressOptions, StreamingCodec } from "./streaming-compress.base";
|
|
8
|
-
import type { DeflateStream, InflateStream, StreamCompressOptions } from "./streaming-compress.base";
|
|
7
|
+
export type { DeflateStream, InflateStream, StreamCompressOptions, StreamingCodec } from "./streaming-compress.base.js";
|
|
8
|
+
import type { DeflateStream, InflateStream, StreamCompressOptions } from "./streaming-compress.base.js";
|
|
9
9
|
/**
|
|
10
10
|
* Create a true streaming DEFLATE compressor
|
|
11
11
|
* Returns a Transform stream that emits compressed data immediately after each write
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* - In Node builds it uses `./crc32` + `./streaming-compress` (zlib-backed).
|
|
6
6
|
* - In browser builds the bundler aliases those imports to their browser variants.
|
|
7
7
|
*/
|
|
8
|
-
import type { ZipTimestampMode } from "./utils/timestamps";
|
|
9
|
-
import type { ZipEntryInfo as UnzipZipEntryInfo } from "./zip-entry-info";
|
|
8
|
+
import type { ZipTimestampMode } from "./utils/timestamps.js";
|
|
9
|
+
import type { ZipEntryInfo as UnzipZipEntryInfo } from "./zip-entry-info.js";
|
|
10
10
|
/**
|
|
11
11
|
* Internal entry info for central directory
|
|
12
12
|
*/
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* │ End of Central Directory │
|
|
22
22
|
* └──────────────────────────┘
|
|
23
23
|
*/
|
|
24
|
-
import { type CompressOptions } from "./compress";
|
|
25
|
-
import { type ZipTimestampMode } from "./utils/timestamps";
|
|
24
|
+
import { type CompressOptions } from "./compress.js";
|
|
25
|
+
import { type ZipTimestampMode } from "./utils/timestamps.js";
|
|
26
26
|
/**
|
|
27
27
|
* ZIP file entry
|
|
28
28
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Works in both Node.js and browser environments
|
|
4
4
|
* No dependency on Node.js stream module
|
|
5
5
|
*/
|
|
6
|
-
import type { ZipEntryInfo } from "./zip-entry-info";
|
|
6
|
+
import type { ZipEntryInfo } from "./zip-entry-info.js";
|
|
7
7
|
export type { ZipEntryInfo };
|
|
8
8
|
/**
|
|
9
9
|
* ZIP parsing options
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Provides true streaming CSV parsing and formatting using our cross-platform stream module.
|
|
5
5
|
* Works identically in both Node.js and Browser environments.
|
|
6
6
|
*/
|
|
7
|
-
import { Transform } from "../stream/index";
|
|
8
|
-
import type { IReadable } from "../stream/types";
|
|
9
|
-
import type { CsvParseOptions, CsvFormatOptions, RowTransformFunction, RowValidateFunction, Row } from "./csv-core";
|
|
7
|
+
import { Transform } from "../stream/index.js";
|
|
8
|
+
import type { IReadable } from "../stream/types.js";
|
|
9
|
+
import type { CsvParseOptions, CsvFormatOptions, RowTransformFunction, RowValidateFunction, Row } from "./csv-core.js";
|
|
10
10
|
/**
|
|
11
11
|
* Transform stream that parses CSV data row by row
|
|
12
12
|
*
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Provides CSV read/write functionality for both Node.js and Browser.
|
|
5
5
|
* Node.js version (csv.ts) extends this with file system support.
|
|
6
6
|
*/
|
|
7
|
-
import { type DateFormat } from "../../utils/datetime";
|
|
8
|
-
import { type CsvParseOptions, type CsvFormatOptions } from "./csv-core";
|
|
9
|
-
import { type DecimalSeparator } from "./csv-number";
|
|
10
|
-
import type { IReadable, IWritable } from "../stream/types";
|
|
11
|
-
import type { Workbook } from "../excel/workbook";
|
|
12
|
-
import type { Worksheet } from "../excel/worksheet";
|
|
7
|
+
import { type DateFormat } from "../../utils/datetime.js";
|
|
8
|
+
import { type CsvParseOptions, type CsvFormatOptions } from "./csv-core.js";
|
|
9
|
+
import { type DecimalSeparator } from "./csv-number.js";
|
|
10
|
+
import type { IReadable, IWritable } from "../stream/types.js";
|
|
11
|
+
import type { Workbook } from "../excel/workbook.js";
|
|
12
|
+
import type { Worksheet } from "../excel/worksheet.js";
|
|
13
13
|
export interface CsvReadOptions {
|
|
14
14
|
dateFormats?: readonly DateFormat[];
|
|
15
15
|
map?(value: any, index: number): any;
|
|
@@ -55,6 +55,6 @@ declare class CSV {
|
|
|
55
55
|
export declare function parseCsvToWorksheet(content: string, workbook: Workbook, options?: CsvReadOptions): Worksheet;
|
|
56
56
|
export declare function formatWorksheetToCsv(worksheet: Worksheet | undefined, options?: CsvWriteOptions): string;
|
|
57
57
|
export { CSV };
|
|
58
|
-
export { CsvParserStream, CsvFormatterStream } from "./csv-stream";
|
|
59
|
-
export { parseCsv, formatCsv } from "./csv-core";
|
|
60
|
-
export type { CsvParseOptions, CsvFormatOptions } from "./csv-core";
|
|
58
|
+
export { CsvParserStream, CsvFormatterStream } from "./csv-stream.js";
|
|
59
|
+
export { parseCsv, formatCsv } from "./csv-core.js";
|
|
60
|
+
export type { CsvParseOptions, CsvFormatOptions } from "./csv-core.js";
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extends browser CSV class with file system support.
|
|
5
5
|
*/
|
|
6
|
-
import { CSV as CSVBrowser, type CsvStreamReadOptions, type CsvStreamWriteOptions } from "./csv.browser";
|
|
7
|
-
import type { Worksheet } from "../excel/worksheet";
|
|
6
|
+
import { CSV as CSVBrowser, type CsvStreamReadOptions, type CsvStreamWriteOptions } from "./csv.browser.js";
|
|
7
|
+
import type { Worksheet } from "../excel/worksheet.js";
|
|
8
8
|
declare class CSV extends CSVBrowser {
|
|
9
9
|
readFile(filename: string, options?: CsvStreamReadOptions): Promise<Worksheet>;
|
|
10
10
|
writeFile(filename: string, options?: CsvStreamWriteOptions): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export { CSV };
|
|
13
|
-
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./csv.browser";
|
|
14
|
-
export { CsvParserStream, CsvFormatterStream } from "./csv-stream";
|
|
13
|
+
export type { CsvReadOptions, CsvWriteOptions, CsvStreamReadOptions, CsvStreamWriteOptions } from "./csv.browser.js";
|
|
14
|
+
export { CsvParserStream, CsvFormatterStream } from "./csv-stream.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Note } from "./note";
|
|
2
|
-
import type { Row } from "./row";
|
|
3
|
-
import type { Column } from "./column";
|
|
4
|
-
import type { Worksheet } from "./worksheet";
|
|
5
|
-
import type { Workbook } from "./workbook";
|
|
6
|
-
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellRichTextValue, CellErrorValue, DataValidation, CellValue, CellHyperlinkValue } from "./types";
|
|
1
|
+
import { Note } from "./note.js";
|
|
2
|
+
import type { Row } from "./row.js";
|
|
3
|
+
import type { Column } from "./column.js";
|
|
4
|
+
import type { Worksheet } from "./worksheet.js";
|
|
5
|
+
import type { Workbook } from "./workbook.js";
|
|
6
|
+
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellRichTextValue, CellErrorValue, DataValidation, CellValue, CellHyperlinkValue } from "./types.js";
|
|
7
7
|
export type FormulaResult = string | number | boolean | Date | CellErrorValue;
|
|
8
8
|
export interface FormulaValueData {
|
|
9
9
|
shareType?: string;
|
|
@@ -67,7 +67,7 @@ export interface CellModel {
|
|
|
67
67
|
}
|
|
68
68
|
export type CellValueType = CellValue;
|
|
69
69
|
declare class Cell {
|
|
70
|
-
static Types: typeof import("./enums").ValueType;
|
|
70
|
+
static Types: typeof import("./enums.js").ValueType;
|
|
71
71
|
private _row;
|
|
72
72
|
private _column;
|
|
73
73
|
private _address;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Cell, CellValueType } from "./cell";
|
|
2
|
-
import type { Worksheet } from "./worksheet";
|
|
3
|
-
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellValue } from "./types";
|
|
1
|
+
import type { Cell, CellValueType } from "./cell.js";
|
|
2
|
+
import type { Worksheet } from "./worksheet.js";
|
|
3
|
+
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellValue } from "./types.js";
|
|
4
4
|
/** Header value type - can be a single value or array for multi-row headers */
|
|
5
5
|
export type ColumnHeaderValue = CellValue | CellValue[];
|
|
6
6
|
export interface ColumnDefn {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type DecodedRange } from "./utils/col-cache";
|
|
2
|
-
import { CellMatrix } from "./utils/cell-matrix";
|
|
3
|
-
import { Range } from "./range";
|
|
4
|
-
import type { Address } from "./types";
|
|
1
|
+
import { type DecodedRange } from "./utils/col-cache.js";
|
|
2
|
+
import { CellMatrix } from "./utils/cell-matrix.js";
|
|
3
|
+
import { Range } from "./range.js";
|
|
4
|
+
import type { Address } from "./types.js";
|
|
5
5
|
interface DefinedNameCell {
|
|
6
6
|
sheetName?: string;
|
|
7
7
|
address: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Anchor, type AnchorModel } from "./anchor";
|
|
2
|
-
import type { Worksheet } from "./worksheet";
|
|
1
|
+
import { Anchor, type AnchorModel } from "./anchor.js";
|
|
2
|
+
import type { Worksheet } from "./worksheet.js";
|
|
3
3
|
interface ImageHyperlinks {
|
|
4
4
|
hyperlink?: string;
|
|
5
5
|
tooltip?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Cell, type CellModel, type CellAddress } from "./cell";
|
|
2
|
-
import type { Worksheet } from "./worksheet";
|
|
3
|
-
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellValue, RowValues } from "./types";
|
|
1
|
+
import { Cell, type CellModel, type CellAddress } from "./cell.js";
|
|
2
|
+
import type { Worksheet } from "./worksheet.js";
|
|
3
|
+
import type { Style, NumFmt, Font, Alignment, Protection, Borders, Fill, CellValue, RowValues } from "./types.js";
|
|
4
4
|
interface RowDimensions {
|
|
5
5
|
min: number;
|
|
6
6
|
max: number;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Cross-platform implementation.
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from "../../stream/index";
|
|
7
|
-
import type { InternalWorksheetOptions } from "./workbook-reader.browser";
|
|
6
|
+
import { EventEmitter } from "../../stream/index.js";
|
|
7
|
+
import type { InternalWorksheetOptions } from "./workbook-reader.browser.js";
|
|
8
8
|
export interface HyperlinkReaderOptions<TWorkbook = unknown> {
|
|
9
9
|
workbook: TWorkbook;
|
|
10
10
|
id: number;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* Node.js uses `workbook-reader.ts`, which extends the same base implementation
|
|
9
9
|
* with filesystem-specific features (filename input + temp-file buffering).
|
|
10
10
|
*/
|
|
11
|
-
import { EventEmitter, Readable } from "../../stream/index";
|
|
12
|
-
import { iterateStream } from "../utils/iterate-stream";
|
|
13
|
-
import { StylesXform } from "../xlsx/xform/style/styles-xform";
|
|
14
|
-
import type { WorksheetState, Font, WorkbookProperties } from "../types";
|
|
15
|
-
import { WorksheetReader } from "./worksheet-reader";
|
|
16
|
-
import { HyperlinkReader, type Hyperlink } from "./hyperlink-reader";
|
|
11
|
+
import { EventEmitter, Readable } from "../../stream/index.js";
|
|
12
|
+
import { iterateStream } from "../utils/iterate-stream.js";
|
|
13
|
+
import { StylesXform } from "../xlsx/xform/style/styles-xform.js";
|
|
14
|
+
import type { WorksheetState, Font, WorkbookProperties } from "../types.js";
|
|
15
|
+
import { WorksheetReader } from "./worksheet-reader.js";
|
|
16
|
+
import { HyperlinkReader, type Hyperlink } from "./hyperlink-reader.js";
|
|
17
17
|
export interface InternalWorksheetOptions {
|
|
18
18
|
worksheets?: "emit" | "ignore" | "prep";
|
|
19
19
|
sharedStrings?: "cache" | "emit" | "ignore";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extends base with file path support and temp file storage for large files.
|
|
5
5
|
*/
|
|
6
|
-
import type { Readable } from "../../stream/index";
|
|
7
|
-
import { WorksheetReader } from "./worksheet-reader";
|
|
8
|
-
import { HyperlinkReader } from "./hyperlink-reader";
|
|
9
|
-
import { WorkbookReaderBase, type CommonInput, type WorkbookReaderOptions, type WorksheetReadyEvent, WorkbookReaderOptionsSchema } from "./workbook-reader.browser";
|
|
10
|
-
export type { WorkbookReaderOptions, InternalWorksheetOptions, SharedStringRichText, SharedStringValue, WorkbookRelationship, SheetMetadata, WorkbookModel, WorkbookPropertiesXform, ParseEventType, SharedStringEvent, WorksheetReadyEvent, HyperlinksEvent, ParseEvent } from "./workbook-reader.browser";
|
|
6
|
+
import type { Readable } from "../../stream/index.js";
|
|
7
|
+
import { WorksheetReader } from "./worksheet-reader.js";
|
|
8
|
+
import { HyperlinkReader } from "./hyperlink-reader.js";
|
|
9
|
+
import { WorkbookReaderBase, type CommonInput, type WorkbookReaderOptions, type WorksheetReadyEvent, WorkbookReaderOptionsSchema } from "./workbook-reader.browser.js";
|
|
10
|
+
export type { WorkbookReaderOptions, InternalWorksheetOptions, SharedStringRichText, SharedStringValue, WorkbookRelationship, SheetMetadata, WorkbookModel, WorkbookPropertiesXform, ParseEventType, SharedStringEvent, WorksheetReadyEvent, HyperlinksEvent, ParseEvent } from "./workbook-reader.browser.js";
|
|
11
11
|
export type NodeInput = string | CommonInput;
|
|
12
12
|
interface WaitingWorksheet {
|
|
13
13
|
sheetNo: string;
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* Node.js uses `workbook-writer.ts`, which extends the same base implementation
|
|
8
8
|
* with filesystem-specific features (filename output + image loading).
|
|
9
9
|
*/
|
|
10
|
-
import { Zip } from "../../archive/streaming-zip";
|
|
11
|
-
import { StreamBuf } from "../utils/stream-buf";
|
|
12
|
-
import { StylesXform } from "../xlsx/xform/style/styles-xform";
|
|
13
|
-
import { SharedStrings } from "../utils/shared-strings";
|
|
14
|
-
import { DefinedNames } from "../defined-names";
|
|
15
|
-
import type { Writable } from "../../stream/index";
|
|
16
|
-
import type { Image, WorkbookView, AddWorksheetOptions } from "../types";
|
|
17
|
-
import { WorksheetWriter } from "./worksheet-writer";
|
|
10
|
+
import { Zip } from "../../archive/streaming-zip.js";
|
|
11
|
+
import { StreamBuf } from "../utils/stream-buf.js";
|
|
12
|
+
import { StylesXform } from "../xlsx/xform/style/styles-xform.js";
|
|
13
|
+
import { SharedStrings } from "../utils/shared-strings.js";
|
|
14
|
+
import { DefinedNames } from "../defined-names.js";
|
|
15
|
+
import type { Writable } from "../../stream/index.js";
|
|
16
|
+
import type { Image, WorkbookView, AddWorksheetOptions } from "../types.js";
|
|
17
|
+
import { WorksheetWriter } from "./worksheet-writer.js";
|
|
18
18
|
interface Medium extends Image {
|
|
19
19
|
type: "image";
|
|
20
20
|
name: string;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extends base with file path support and file system image loading.
|
|
5
5
|
*/
|
|
6
|
-
import { WorksheetWriter } from "./worksheet-writer";
|
|
7
|
-
import { WorkbookWriterBase, type WorkbookWriterOptions as BaseOptions, type ZipOptions, type ZlibOptions } from "./workbook-writer.browser";
|
|
6
|
+
import { WorksheetWriter } from "./worksheet-writer.js";
|
|
7
|
+
import { WorkbookWriterBase, type WorkbookWriterOptions as BaseOptions, type ZipOptions, type ZlibOptions } from "./workbook-writer.browser.js";
|
|
8
8
|
export type { ZipOptions, ZlibOptions };
|
|
9
9
|
export interface WorkbookWriterOptions extends BaseOptions {
|
|
10
10
|
/** If stream not specified, this field specifies the path to a file to write the XLSX workbook to */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Works in both Node.js and Browser.
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from "../../stream/index";
|
|
7
|
-
import { Dimensions } from "../range";
|
|
8
|
-
import { Row } from "../row";
|
|
9
|
-
import { Column } from "../column";
|
|
10
|
-
import type { InternalWorksheetOptions } from "./workbook-reader.browser";
|
|
11
|
-
import type { WorksheetState } from "../types";
|
|
6
|
+
import { EventEmitter } from "../../stream/index.js";
|
|
7
|
+
import { Dimensions } from "../range.js";
|
|
8
|
+
import { Row } from "../row.js";
|
|
9
|
+
import { Column } from "../column.js";
|
|
10
|
+
import type { InternalWorksheetOptions } from "./workbook-reader.browser.js";
|
|
11
|
+
import type { WorksheetState } from "../types.js";
|
|
12
12
|
/** Hyperlink reference from worksheet XML */
|
|
13
13
|
export interface WorksheetHyperlink {
|
|
14
14
|
ref: string;
|