@cj-tech-master/excelts 3.1.0-canary.20260102041828.82ed571 → 3.1.0-canary.20260102043356.6791d4e
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/excelts.esm.js +1 -1
- package/dist/browser/excelts.esm.min.js +1 -1
- package/dist/browser/excelts.iife.js +1 -1
- package/dist/browser/excelts.iife.min.js +1 -1
- package/dist/cjs/index.js +18 -18
- package/dist/cjs/modules/archive/compress.base.js +1 -1
- package/dist/cjs/modules/archive/compress.browser.js +3 -3
- package/dist/cjs/modules/archive/compress.js +3 -3
- package/dist/cjs/modules/archive/crc32.browser.js +1 -1
- package/dist/cjs/modules/archive/crc32.js +2 -2
- package/dist/cjs/modules/archive/deflate-fallback.js +1 -1
- package/dist/cjs/modules/archive/extract.js +2 -2
- package/dist/cjs/modules/archive/index.base.js +3 -3
- package/dist/cjs/modules/archive/index.browser.js +5 -5
- package/dist/cjs/modules/archive/index.js +5 -5
- package/dist/cjs/modules/archive/parse.base.js +8 -8
- package/dist/cjs/modules/archive/parse.browser.js +8 -8
- package/dist/cjs/modules/archive/parse.js +3 -3
- package/dist/cjs/modules/archive/streaming-compress.browser.js +6 -6
- package/dist/cjs/modules/archive/streaming-compress.js +2 -2
- package/dist/cjs/modules/archive/streaming-zip.js +6 -6
- package/dist/cjs/modules/archive/utils/binary.js +1 -1
- package/dist/cjs/modules/archive/utils/timestamps.js +1 -1
- package/dist/cjs/modules/archive/utils/zip-extra-fields.js +1 -1
- package/dist/cjs/modules/archive/zip-builder.js +7 -7
- package/dist/cjs/modules/archive/zip-entry-metadata.js +3 -3
- package/dist/cjs/modules/archive/zip-parser.js +5 -5
- package/dist/cjs/modules/archive/zip-records.js +1 -1
- package/dist/cjs/modules/csv/csv-core.js +1 -1
- package/dist/cjs/modules/csv/csv-stream.js +3 -3
- package/dist/cjs/modules/csv/csv.browser.js +7 -7
- package/dist/cjs/modules/csv/csv.js +3 -3
- package/dist/cjs/modules/excel/anchor.js +1 -1
- package/dist/cjs/modules/excel/cell.js +5 -5
- package/dist/cjs/modules/excel/column.js +3 -3
- package/dist/cjs/modules/excel/data-validations.js +1 -1
- package/dist/cjs/modules/excel/defined-names.js +3 -3
- package/dist/cjs/modules/excel/image.js +2 -2
- package/dist/cjs/modules/excel/note.js +1 -1
- package/dist/cjs/modules/excel/pivot-table.js +2 -2
- package/dist/cjs/modules/excel/range.js +1 -1
- package/dist/cjs/modules/excel/row.js +3 -3
- package/dist/cjs/modules/excel/stream/hyperlink-reader.js +4 -4
- package/dist/cjs/modules/excel/stream/sheet-comments-writer.js +6 -6
- package/dist/cjs/modules/excel/stream/sheet-rels-writer.js +3 -3
- package/dist/cjs/modules/excel/stream/workbook-reader.browser.js +10 -10
- package/dist/cjs/modules/excel/stream/workbook-reader.js +4 -4
- package/dist/cjs/modules/excel/stream/workbook-writer.browser.js +17 -17
- package/dist/cjs/modules/excel/stream/workbook-writer.js +3 -3
- package/dist/cjs/modules/excel/stream/worksheet-reader.js +7 -7
- package/dist/cjs/modules/excel/stream/worksheet-writer.js +29 -29
- package/dist/cjs/modules/excel/table.js +1 -1
- package/dist/cjs/modules/excel/utils/cell-format.js +1 -1
- package/dist/cjs/modules/excel/utils/cell-matrix.js +1 -1
- package/dist/cjs/modules/excel/utils/encryptor.browser.js +2 -2
- package/dist/cjs/modules/excel/utils/encryptor.js +2 -2
- package/dist/cjs/modules/excel/utils/parse-sax.js +1 -1
- package/dist/cjs/modules/excel/utils/shared-formula.js +1 -1
- package/dist/cjs/modules/excel/utils/sheet-utils.js +4 -4
- package/dist/cjs/modules/excel/utils/stream-buf.js +2 -2
- package/dist/cjs/modules/excel/utils/xml-stream.js +1 -1
- package/dist/cjs/modules/excel/workbook.js +6 -6
- package/dist/cjs/modules/excel/worksheet.js +12 -12
- package/dist/cjs/modules/excel/xlsx/xform/base-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/book/defined-name-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/book/sheet-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-calc-properties-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-pivot-cache-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-properties-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-view-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-xform.js +11 -11
- package/dist/cjs/modules/excel/xlsx/xform/comment/comment-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/comment/comments-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/comment/style/vml-position-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/style/vml-protection-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-client-data-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-notes-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-shape-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/comment/vml-textbox-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/composite-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/core/app-heading-pairs-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/core/app-titles-of-parts-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/core/app-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/core/content-types-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/core/core-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/core/relationship-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/core/relationships-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/blip-fill-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/drawing/blip-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/c-nv-pic-pr-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/drawing/cell-position-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/drawing/drawing-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/drawing/ext-lst-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/hlink-click-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/drawing/pic-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/list-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/cache-field-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/cache-field.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/auto-filter-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cell-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.js +8 -8
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/cfvo-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/conditional-formatting-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/conditional-formattings-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/databar-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/formula-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf/icon-set-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/cf-icon-ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.js +5 -5
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/cfvo-ext-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formattings-ext-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/f-ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/cf-ext/sqref-ext-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/col-breaks-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/col-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/data-validations-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/dimension-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/drawing-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/header-footer-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/hyperlink-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/merge-cell-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/merges.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/sheet/outline-properties-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/page-breaks-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/page-margins-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/page-setup-properties-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/page-setup-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/picture-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/print-options-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/row-breaks-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/row-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/sheet-format-properties-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/sheet-properties-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/sheet/sheet-protection-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/sheet-view-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/table-part-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/sheet/worksheet-xform.js +29 -29
- package/dist/cjs/modules/excel/xlsx/xform/simple/boolean-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/simple/date-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/simple/float-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/simple/integer-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/simple/string-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/static-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/strings/phonetic-text-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/strings/rich-text-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/strings/shared-string-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/strings/shared-strings-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/strings/text-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/style/alignment-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/style/border-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/style/color-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/style/dxf-xform.js +7 -7
- package/dist/cjs/modules/excel/xlsx/xform/style/fill-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/style/font-xform.js +6 -6
- package/dist/cjs/modules/excel/xlsx/xform/style/numfmt-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/style/protection-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/style/style-xform.js +3 -3
- package/dist/cjs/modules/excel/xlsx/xform/style/styles-xform.js +11 -11
- package/dist/cjs/modules/excel/xlsx/xform/style/underline-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/auto-filter-xform.js +2 -2
- package/dist/cjs/modules/excel/xlsx/xform/table/custom-filter-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/filter-column-xform.js +4 -4
- package/dist/cjs/modules/excel/xlsx/xform/table/filter-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-column-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-style-info-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-xform.js +6 -6
- package/dist/cjs/modules/excel/xlsx/xlsx.browser.js +24 -24
- package/dist/cjs/modules/excel/xlsx/xlsx.js +4 -4
- package/dist/cjs/modules/stream/base-transform.js +1 -1
- package/dist/cjs/modules/stream/buffered-stream.js +2 -2
- package/dist/cjs/modules/stream/chunked-builder.js +1 -1
- package/dist/cjs/modules/stream/index.browser.js +5 -5
- package/dist/cjs/modules/stream/index.js +5 -5
- package/dist/cjs/modules/stream/pull-stream.js +2 -2
- package/dist/cjs/modules/stream/streams.browser.js +4 -4
- package/dist/cjs/modules/stream/streams.js +3 -3
- package/dist/cjs/modules/stream/utils.js +2 -2
- package/dist/cjs/utils/utils.base.js +1 -1
- package/dist/cjs/utils/utils.browser.js +1 -1
- package/dist/cjs/utils/utils.js +1 -1
- package/dist/esm/index.browser.js +18 -18
- package/dist/esm/index.js +18 -18
- package/dist/esm/modules/archive/compress.base.js +1 -1
- package/dist/esm/modules/archive/compress.browser.js +3 -3
- package/dist/esm/modules/archive/compress.js +3 -3
- package/dist/esm/modules/archive/crc32.browser.js +1 -1
- package/dist/esm/modules/archive/crc32.js +2 -2
- package/dist/esm/modules/archive/deflate-fallback.js +1 -1
- package/dist/esm/modules/archive/extract.js +2 -2
- package/dist/esm/modules/archive/index.base.js +3 -3
- package/dist/esm/modules/archive/index.browser.js +5 -5
- package/dist/esm/modules/archive/index.js +5 -5
- package/dist/esm/modules/archive/parse.base.js +8 -8
- package/dist/esm/modules/archive/parse.browser.js +8 -8
- package/dist/esm/modules/archive/parse.js +3 -3
- package/dist/esm/modules/archive/streaming-compress.browser.js +6 -6
- package/dist/esm/modules/archive/streaming-compress.js +2 -2
- package/dist/esm/modules/archive/streaming-zip.js +6 -6
- package/dist/esm/modules/archive/utils/binary.js +1 -1
- package/dist/esm/modules/archive/utils/timestamps.js +1 -1
- package/dist/esm/modules/archive/utils/zip-extra-fields.js +1 -1
- package/dist/esm/modules/archive/zip-builder.js +8 -8
- package/dist/esm/modules/archive/zip-entry-metadata.js +3 -3
- package/dist/esm/modules/archive/zip-parser.js +5 -5
- package/dist/esm/modules/archive/zip-records.js +1 -1
- package/dist/esm/modules/csv/csv-core.js +1 -1
- package/dist/esm/modules/csv/csv-stream.js +3 -3
- package/dist/esm/modules/csv/csv.browser.js +7 -7
- package/dist/esm/modules/csv/csv.js +3 -3
- package/dist/esm/modules/excel/anchor.js +1 -1
- package/dist/esm/modules/excel/cell.js +5 -5
- package/dist/esm/modules/excel/column.js +3 -3
- package/dist/esm/modules/excel/data-validations.js +1 -1
- package/dist/esm/modules/excel/defined-names.js +3 -3
- package/dist/esm/modules/excel/image.js +2 -2
- package/dist/esm/modules/excel/note.js +1 -1
- package/dist/esm/modules/excel/pivot-table.js +2 -2
- package/dist/esm/modules/excel/range.js +1 -1
- package/dist/esm/modules/excel/row.js +3 -3
- package/dist/esm/modules/excel/stream/hyperlink-reader.js +4 -4
- package/dist/esm/modules/excel/stream/sheet-comments-writer.js +6 -6
- package/dist/esm/modules/excel/stream/sheet-rels-writer.js +3 -3
- package/dist/esm/modules/excel/stream/workbook-reader.browser.js +10 -10
- package/dist/esm/modules/excel/stream/workbook-reader.js +4 -4
- package/dist/esm/modules/excel/stream/workbook-writer.browser.js +17 -17
- package/dist/esm/modules/excel/stream/workbook-writer.js +3 -3
- package/dist/esm/modules/excel/stream/worksheet-reader.js +7 -7
- package/dist/esm/modules/excel/stream/worksheet-writer.js +29 -29
- package/dist/esm/modules/excel/table.js +1 -1
- package/dist/esm/modules/excel/utils/cell-format.js +1 -1
- package/dist/esm/modules/excel/utils/cell-matrix.js +1 -1
- package/dist/esm/modules/excel/utils/encryptor.browser.js +2 -2
- package/dist/esm/modules/excel/utils/encryptor.js +2 -2
- package/dist/esm/modules/excel/utils/parse-sax.js +1 -1
- package/dist/esm/modules/excel/utils/shared-formula.js +1 -1
- package/dist/esm/modules/excel/utils/sheet-utils.js +4 -4
- package/dist/esm/modules/excel/utils/stream-buf.js +2 -2
- package/dist/esm/modules/excel/utils/xml-stream.js +1 -1
- package/dist/esm/modules/excel/workbook.js +6 -6
- package/dist/esm/modules/excel/worksheet.js +12 -12
- package/dist/esm/modules/excel/xlsx/xform/base-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/book/defined-name-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/book/sheet-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-calc-properties-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-pivot-cache-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-properties-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-view-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-xform.js +11 -11
- package/dist/esm/modules/excel/xlsx/xform/comment/comment-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/comment/comments-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/comment/style/vml-position-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/style/vml-protection-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-client-data-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-notes-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-shape-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/comment/vml-textbox-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/composite-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/core/app-heading-pairs-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/core/app-titles-of-parts-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/core/app-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/core/content-types-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/core/core-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/core/relationship-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/core/relationships-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/blip-fill-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/drawing/blip-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/c-nv-pic-pr-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/drawing/cell-position-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/drawing/drawing-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/drawing/ext-lst-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/hlink-click-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/drawing/pic-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/list-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/cache-field-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/cache-field.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/auto-filter-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cell-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.js +8 -8
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/cfvo-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/conditional-formatting-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/conditional-formattings-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/databar-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/formula-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf/icon-set-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/cf-icon-ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.js +5 -5
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/cfvo-ext-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formattings-ext-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/f-ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/cf-ext/sqref-ext-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/col-breaks-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/col-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/data-validations-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/dimension-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/drawing-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/header-footer-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/hyperlink-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/merge-cell-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/merges.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/sheet/outline-properties-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/page-breaks-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/page-margins-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/page-setup-properties-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/page-setup-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/picture-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/print-options-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/row-breaks-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/row-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/sheet-format-properties-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/sheet-properties-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/sheet/sheet-protection-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/sheet-view-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/table-part-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/sheet/worksheet-xform.js +29 -29
- package/dist/esm/modules/excel/xlsx/xform/simple/boolean-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/simple/date-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/simple/float-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/simple/integer-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/simple/string-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/static-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/strings/phonetic-text-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/strings/rich-text-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/strings/shared-string-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/strings/shared-strings-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/strings/text-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/style/alignment-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/style/border-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/style/color-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/style/dxf-xform.js +7 -7
- package/dist/esm/modules/excel/xlsx/xform/style/fill-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/style/font-xform.js +6 -6
- package/dist/esm/modules/excel/xlsx/xform/style/numfmt-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/style/protection-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/style/style-xform.js +3 -3
- package/dist/esm/modules/excel/xlsx/xform/style/styles-xform.js +11 -11
- package/dist/esm/modules/excel/xlsx/xform/style/underline-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/auto-filter-xform.js +2 -2
- package/dist/esm/modules/excel/xlsx/xform/table/custom-filter-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/filter-column-xform.js +4 -4
- package/dist/esm/modules/excel/xlsx/xform/table/filter-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-column-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-style-info-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-xform.js +6 -6
- package/dist/esm/modules/excel/xlsx/xlsx.browser.js +24 -24
- package/dist/esm/modules/excel/xlsx/xlsx.js +4 -4
- package/dist/esm/modules/stream/base-transform.js +1 -1
- package/dist/esm/modules/stream/buffered-stream.js +2 -2
- package/dist/esm/modules/stream/chunked-builder.js +1 -1
- package/dist/esm/modules/stream/index.browser.js +5 -5
- package/dist/esm/modules/stream/index.js +5 -5
- package/dist/esm/modules/stream/pull-stream.js +2 -2
- package/dist/esm/modules/stream/streams.browser.js +4 -4
- package/dist/esm/modules/stream/streams.js +3 -3
- package/dist/esm/modules/stream/utils.js +2 -2
- package/dist/esm/utils/utils.base.js +1 -1
- package/dist/esm/utils/utils.browser.js +1 -1
- package/dist/esm/utils/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { range, toSortedArray } from "
|
|
2
|
-
import { colCache } from "
|
|
1
|
+
import { range, toSortedArray } from "../../utils/utils.js";
|
|
2
|
+
import { colCache } from "./utils/col-cache.js";
|
|
3
3
|
// TK(2023-10-10): turn this into a class constructor.
|
|
4
4
|
/**
|
|
5
5
|
* Creates a PivotTableSource adapter from a Table object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Enums } from "
|
|
2
|
-
import { colCache } from "
|
|
3
|
-
import { Cell } from "
|
|
1
|
+
import { Enums } from "./enums.js";
|
|
2
|
+
import { colCache } from "./utils/col-cache.js";
|
|
3
|
+
import { Cell } from "./cell.js";
|
|
4
4
|
class Row {
|
|
5
5
|
constructor(worksheet, number) {
|
|
6
6
|
this._worksheet = worksheet;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Cross-platform implementation.
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from "
|
|
7
|
-
import { parseSax } from "
|
|
8
|
-
import { Enums } from "
|
|
9
|
-
import { RelType } from "
|
|
6
|
+
import { EventEmitter } from "../../stream/index.js";
|
|
7
|
+
import { parseSax } from "../utils/parse-sax.js";
|
|
8
|
+
import { Enums } from "../enums.js";
|
|
9
|
+
import { RelType } from "../xlsx/rel-type.js";
|
|
10
10
|
class HyperlinkReader extends EventEmitter {
|
|
11
11
|
constructor({ workbook, id, iterator, options }) {
|
|
12
12
|
super();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { XmlStream } from "
|
|
2
|
-
import { RelType } from "
|
|
3
|
-
import { colCache } from "
|
|
4
|
-
import { CommentXform } from "
|
|
5
|
-
import { VmlShapeXform } from "
|
|
6
|
-
import { commentsPath, commentsRelTargetFromWorksheet, vmlDrawingPath, vmlDrawingRelTargetFromWorksheet } from "
|
|
1
|
+
import { XmlStream } from "../utils/xml-stream.js";
|
|
2
|
+
import { RelType } from "../xlsx/rel-type.js";
|
|
3
|
+
import { colCache } from "../utils/col-cache.js";
|
|
4
|
+
import { CommentXform } from "../xlsx/xform/comment/comment-xform.js";
|
|
5
|
+
import { VmlShapeXform } from "../xlsx/xform/comment/vml-shape-xform.js";
|
|
6
|
+
import { commentsPath, commentsRelTargetFromWorksheet, vmlDrawingPath, vmlDrawingRelTargetFromWorksheet } from "../utils/ooxml-paths.js";
|
|
7
7
|
class SheetCommentsWriter {
|
|
8
8
|
constructor(worksheet, sheetRelsWriter, options) {
|
|
9
9
|
// in a workbook, each sheet will have a number
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { xmlEncode } from "
|
|
2
|
-
import { RelType } from "
|
|
3
|
-
import { worksheetRelsPath } from "
|
|
1
|
+
import { xmlEncode } from "../../../utils/utils.js";
|
|
2
|
+
import { RelType } from "../xlsx/rel-type.js";
|
|
3
|
+
import { worksheetRelsPath } from "../utils/ooxml-paths.js";
|
|
4
4
|
class HyperlinksProxy {
|
|
5
5
|
constructor(sheetRelsWriter) {
|
|
6
6
|
this.writer = sheetRelsWriter;
|
|
@@ -8,16 +8,16 @@
|
|
|
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 "
|
|
12
|
-
import { createParse } from "
|
|
13
|
-
import { iterateStream } from "
|
|
14
|
-
import { getWorksheetNoFromWorksheetPath, getWorksheetNoFromWorksheetRelsPath, normalizeZipPath, OOXML_PATHS, worksheetRelTarget } from "
|
|
15
|
-
import { parseSax } from "
|
|
16
|
-
import { StylesXform } from "
|
|
17
|
-
import { WorkbookXform } from "
|
|
18
|
-
import { RelationshipsXform } from "
|
|
19
|
-
import { WorksheetReader } from "
|
|
20
|
-
import { HyperlinkReader } from "
|
|
11
|
+
import { EventEmitter, Readable } from "../../stream/index.js";
|
|
12
|
+
import { createParse } from "../../archive/parse.js";
|
|
13
|
+
import { iterateStream } from "../utils/iterate-stream.js";
|
|
14
|
+
import { getWorksheetNoFromWorksheetPath, getWorksheetNoFromWorksheetRelsPath, normalizeZipPath, OOXML_PATHS, worksheetRelTarget } from "../utils/ooxml-paths.js";
|
|
15
|
+
import { parseSax } from "../utils/parse-sax.js";
|
|
16
|
+
import { StylesXform } from "../xlsx/xform/style/styles-xform.js";
|
|
17
|
+
import { WorkbookXform } from "../xlsx/xform/book/workbook-xform.js";
|
|
18
|
+
import { RelationshipsXform } from "../xlsx/xform/core/relationships-xform.js";
|
|
19
|
+
import { WorksheetReader } from "./worksheet-reader.js";
|
|
20
|
+
import { HyperlinkReader } from "./hyperlink-reader.js";
|
|
21
21
|
// ============================================================================
|
|
22
22
|
// Base Class
|
|
23
23
|
// ============================================================================
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import fs from "fs";
|
|
7
7
|
import os from "os";
|
|
8
8
|
import { join } from "path";
|
|
9
|
-
import { iterateStream } from "
|
|
10
|
-
import { WorksheetReader } from "
|
|
11
|
-
import { HyperlinkReader } from "
|
|
12
|
-
import { WorkbookReaderBase, WorkbookReaderOptionsSchema } from "
|
|
9
|
+
import { iterateStream } from "../utils/iterate-stream.js";
|
|
10
|
+
import { WorksheetReader } from "./worksheet-reader.js";
|
|
11
|
+
import { HyperlinkReader } from "./hyperlink-reader.js";
|
|
12
|
+
import { WorkbookReaderBase, WorkbookReaderOptionsSchema } from "./workbook-reader.browser.js";
|
|
13
13
|
class WorkbookReader extends WorkbookReaderBase {
|
|
14
14
|
constructor(input, options = {}) {
|
|
15
15
|
super(input, options, WorksheetReader, HyperlinkReader);
|
|
@@ -7,23 +7,23 @@
|
|
|
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, ZipDeflate } from "
|
|
11
|
-
import { StreamBuf } from "
|
|
12
|
-
import { base64ToUint8Array } from "
|
|
13
|
-
import { RelType } from "
|
|
14
|
-
import { StylesXform } from "
|
|
15
|
-
import { SharedStrings } from "
|
|
16
|
-
import { DefinedNames } from "
|
|
17
|
-
import { CoreXform } from "
|
|
18
|
-
import { RelationshipsXform } from "
|
|
19
|
-
import { ContentTypesXform } from "
|
|
20
|
-
import { AppXform } from "
|
|
21
|
-
import { WorkbookXform } from "
|
|
22
|
-
import { SharedStringsXform } from "
|
|
23
|
-
import { theme1Xml } from "
|
|
24
|
-
import { Writeable, stringToUint8Array } from "
|
|
25
|
-
import { mediaPath, OOXML_PATHS, OOXML_REL_TARGETS, worksheetRelTarget } from "
|
|
26
|
-
import { WorksheetWriter } from "
|
|
10
|
+
import { Zip, ZipDeflate } from "../../archive/streaming-zip.js";
|
|
11
|
+
import { StreamBuf } from "../utils/stream-buf.js";
|
|
12
|
+
import { base64ToUint8Array } from "../../../utils/utils.js";
|
|
13
|
+
import { RelType } from "../xlsx/rel-type.js";
|
|
14
|
+
import { StylesXform } from "../xlsx/xform/style/styles-xform.js";
|
|
15
|
+
import { SharedStrings } from "../utils/shared-strings.js";
|
|
16
|
+
import { DefinedNames } from "../defined-names.js";
|
|
17
|
+
import { CoreXform } from "../xlsx/xform/core/core-xform.js";
|
|
18
|
+
import { RelationshipsXform } from "../xlsx/xform/core/relationships-xform.js";
|
|
19
|
+
import { ContentTypesXform } from "../xlsx/xform/core/content-types-xform.js";
|
|
20
|
+
import { AppXform } from "../xlsx/xform/core/app-xform.js";
|
|
21
|
+
import { WorkbookXform } from "../xlsx/xform/book/workbook-xform.js";
|
|
22
|
+
import { SharedStringsXform } from "../xlsx/xform/strings/shared-strings-xform.js";
|
|
23
|
+
import { theme1Xml } from "../xlsx/xml/theme1.js";
|
|
24
|
+
import { Writeable, stringToUint8Array } from "../../stream/index.js";
|
|
25
|
+
import { mediaPath, OOXML_PATHS, OOXML_REL_TARGETS, worksheetRelTarget } from "../utils/ooxml-paths.js";
|
|
26
|
+
import { WorksheetWriter } from "./worksheet-writer.js";
|
|
27
27
|
const EMPTY_U8 = new Uint8Array(0);
|
|
28
28
|
const TEXT_DECODER = new TextDecoder();
|
|
29
29
|
// ============================================================================
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Extends base with file path support and file system image loading.
|
|
5
5
|
*/
|
|
6
6
|
import fs from "fs";
|
|
7
|
-
import { WorksheetWriter } from "
|
|
8
|
-
import { WorkbookWriterBase } from "
|
|
9
|
-
import { mediaPath } from "
|
|
7
|
+
import { WorksheetWriter } from "./worksheet-writer.js";
|
|
8
|
+
import { WorkbookWriterBase } from "./workbook-writer.browser.js";
|
|
9
|
+
import { mediaPath } from "../utils/ooxml-paths.js";
|
|
10
10
|
class WorkbookWriter extends WorkbookWriterBase {
|
|
11
11
|
constructor(options = {}) {
|
|
12
12
|
super(options, WorksheetWriter);
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Works in both Node.js and Browser.
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from "
|
|
7
|
-
import { parseSax } from "
|
|
8
|
-
import { xmlDecode, isDateFmt, excelToDate } from "
|
|
9
|
-
import { colCache } from "
|
|
10
|
-
import { Dimensions } from "
|
|
11
|
-
import { Row } from "
|
|
12
|
-
import { Column } from "
|
|
6
|
+
import { EventEmitter } from "../../stream/index.js";
|
|
7
|
+
import { parseSax } from "../utils/parse-sax.js";
|
|
8
|
+
import { xmlDecode, isDateFmt, excelToDate } from "../../../utils/utils.js";
|
|
9
|
+
import { colCache } from "../utils/col-cache.js";
|
|
10
|
+
import { Dimensions } from "../range.js";
|
|
11
|
+
import { Row } from "../row.js";
|
|
12
|
+
import { Column } from "../column.js";
|
|
13
13
|
class WorksheetReader extends EventEmitter {
|
|
14
14
|
constructor({ workbook, id, iterator, options }) {
|
|
15
15
|
super();
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { RelType } from "
|
|
2
|
-
import { colCache } from "
|
|
3
|
-
import { Encryptor } from "
|
|
4
|
-
import { uint8ArrayToBase64 } from "
|
|
5
|
-
import { Dimensions } from "
|
|
6
|
-
import { StringBuf } from "
|
|
7
|
-
import { Row } from "
|
|
8
|
-
import { Column } from "
|
|
9
|
-
import { SheetRelsWriter } from "
|
|
10
|
-
import { SheetCommentsWriter } from "
|
|
11
|
-
import { DataValidations } from "
|
|
12
|
-
import { mediaRelTargetFromRels, worksheetPath } from "
|
|
1
|
+
import { RelType } from "../xlsx/rel-type.js";
|
|
2
|
+
import { colCache } from "../utils/col-cache.js";
|
|
3
|
+
import { Encryptor } from "../utils/encryptor.js";
|
|
4
|
+
import { uint8ArrayToBase64 } from "../../../utils/utils.js";
|
|
5
|
+
import { Dimensions } from "../range.js";
|
|
6
|
+
import { StringBuf } from "../utils/string-buf.js";
|
|
7
|
+
import { Row } from "../row.js";
|
|
8
|
+
import { Column } from "../column.js";
|
|
9
|
+
import { SheetRelsWriter } from "./sheet-rels-writer.js";
|
|
10
|
+
import { SheetCommentsWriter } from "./sheet-comments-writer.js";
|
|
11
|
+
import { DataValidations } from "../data-validations.js";
|
|
12
|
+
import { mediaRelTargetFromRels, worksheetPath } from "../utils/ooxml-paths.js";
|
|
13
13
|
const xmlBuffer = new StringBuf();
|
|
14
14
|
// ============================================================================================
|
|
15
15
|
// Xforms
|
|
16
|
-
import { ListXform } from "
|
|
17
|
-
import { DataValidationsXform } from "
|
|
18
|
-
import { SheetPropertiesXform } from "
|
|
19
|
-
import { SheetFormatPropertiesXform } from "
|
|
20
|
-
import { ColXform } from "
|
|
21
|
-
import { RowXform } from "
|
|
22
|
-
import { HyperlinkXform } from "
|
|
23
|
-
import { SheetViewXform } from "
|
|
24
|
-
import { SheetProtectionXform } from "
|
|
25
|
-
import { PageMarginsXform } from "
|
|
26
|
-
import { PageSetupXform } from "
|
|
27
|
-
import { AutoFilterXform } from "
|
|
28
|
-
import { PictureXform } from "
|
|
29
|
-
import { ConditionalFormattingsXform } from "
|
|
30
|
-
import { HeaderFooterXform } from "
|
|
31
|
-
import { RowBreaksXform } from "
|
|
32
|
-
import { ColBreaksXform } from "
|
|
16
|
+
import { ListXform } from "../xlsx/xform/list-xform.js";
|
|
17
|
+
import { DataValidationsXform } from "../xlsx/xform/sheet/data-validations-xform.js";
|
|
18
|
+
import { SheetPropertiesXform } from "../xlsx/xform/sheet/sheet-properties-xform.js";
|
|
19
|
+
import { SheetFormatPropertiesXform } from "../xlsx/xform/sheet/sheet-format-properties-xform.js";
|
|
20
|
+
import { ColXform } from "../xlsx/xform/sheet/col-xform.js";
|
|
21
|
+
import { RowXform } from "../xlsx/xform/sheet/row-xform.js";
|
|
22
|
+
import { HyperlinkXform } from "../xlsx/xform/sheet/hyperlink-xform.js";
|
|
23
|
+
import { SheetViewXform } from "../xlsx/xform/sheet/sheet-view-xform.js";
|
|
24
|
+
import { SheetProtectionXform } from "../xlsx/xform/sheet/sheet-protection-xform.js";
|
|
25
|
+
import { PageMarginsXform } from "../xlsx/xform/sheet/page-margins-xform.js";
|
|
26
|
+
import { PageSetupXform } from "../xlsx/xform/sheet/page-setup-xform.js";
|
|
27
|
+
import { AutoFilterXform } from "../xlsx/xform/sheet/auto-filter-xform.js";
|
|
28
|
+
import { PictureXform } from "../xlsx/xform/sheet/picture-xform.js";
|
|
29
|
+
import { ConditionalFormattingsXform } from "../xlsx/xform/sheet/cf/conditional-formattings-xform.js";
|
|
30
|
+
import { HeaderFooterXform } from "../xlsx/xform/sheet/header-footer-xform.js";
|
|
31
|
+
import { RowBreaksXform } from "../xlsx/xform/sheet/row-breaks-xform.js";
|
|
32
|
+
import { ColBreaksXform } from "../xlsx/xform/sheet/col-breaks-xform.js";
|
|
33
33
|
// since prepare and render are functional, we can use singletons
|
|
34
34
|
const xform = {
|
|
35
35
|
dataValidations: new DataValidationsXform(),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Supports: General, percentages, decimals, thousands separators, dates, currencies,
|
|
6
6
|
* scientific notation, fractions, elapsed time, and more
|
|
7
7
|
*/
|
|
8
|
-
import { excelToDate } from "
|
|
8
|
+
import { excelToDate } from "../../../utils/utils.js";
|
|
9
9
|
// =============================================================================
|
|
10
10
|
// Built-in Format Table (Excel numFmtId to format string mapping)
|
|
11
11
|
// =============================================================================
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Browser-only Encryptor
|
|
3
3
|
* Uses Web Crypto API (hardware accelerated)
|
|
4
4
|
*/
|
|
5
|
-
import { base64ToUint8Array, uint8ArrayToBase64, stringToUtf16Le } from "
|
|
6
|
-
import { concatUint8Arrays } from "
|
|
5
|
+
import { base64ToUint8Array, uint8ArrayToBase64, stringToUtf16Le } from "../../../utils/utils.base.js";
|
|
6
|
+
import { concatUint8Arrays } from "../../stream/index.js";
|
|
7
7
|
// Helper to convert number to little-endian Uint8Array
|
|
8
8
|
function uint32ToLe(num) {
|
|
9
9
|
const arr = new Uint8Array(4);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Node.js Encryptor - uses native crypto module
|
|
3
3
|
*/
|
|
4
4
|
import crypto from "crypto";
|
|
5
|
-
import { base64ToUint8Array, uint8ArrayToBase64, stringToUtf16Le } from "
|
|
6
|
-
import { concatUint8Arrays } from "
|
|
5
|
+
import { base64ToUint8Array, uint8ArrayToBase64, stringToUtf16Le } from "../../../utils/utils.base.js";
|
|
6
|
+
import { concatUint8Arrays } from "../../stream/index.js";
|
|
7
7
|
function uint32ToLe(num) {
|
|
8
8
|
const arr = new Uint8Array(4);
|
|
9
9
|
arr[0] = num & 0xff;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Based on XML 1.0 specification with optimizations for common Excel XML patterns.
|
|
9
9
|
*/
|
|
10
|
-
import { bufferToString } from "
|
|
10
|
+
import { bufferToString } from "../../../utils/utils.js";
|
|
11
11
|
// ============================================================================
|
|
12
12
|
// Character codes (for fast comparison)
|
|
13
13
|
// ============================================================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colCache } from "
|
|
1
|
+
import { colCache } from "./col-cache.js";
|
|
2
2
|
// const cellRefRegex = /(([a-z_\-0-9]*)!)?[$]?([a-z]+)[$]?([1-9][0-9]*)/i;
|
|
3
3
|
const replacementCandidateRx = /(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi;
|
|
4
4
|
const CRrx = /^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Utility functions for ExcelTS
|
|
3
3
|
* Provides convenient helper functions for common spreadsheet operations
|
|
4
4
|
*/
|
|
5
|
-
import { Workbook } from "
|
|
6
|
-
import { colCache } from "
|
|
7
|
-
import { format as cellFormat } from "
|
|
8
|
-
import { dateToExcel } from "
|
|
5
|
+
import { Workbook } from "../workbook.js";
|
|
6
|
+
import { colCache } from "./col-cache.js";
|
|
7
|
+
import { format as cellFormat } from "./cell-format.js";
|
|
8
|
+
import { dateToExcel } from "../../../utils/utils.base.js";
|
|
9
9
|
/**
|
|
10
10
|
* Check if format is a pure time format (no date components like y, m for month, d)
|
|
11
11
|
* Time formats only contain: h, m (minutes in time context), s, AM/PM
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* - As StreamHub: pipe to multiple writable streams
|
|
10
10
|
* - As readable stream: feed data into writable part and read from it
|
|
11
11
|
*/
|
|
12
|
-
import { EventEmitter } from "
|
|
13
|
-
import { StringBuf } from "
|
|
12
|
+
import { EventEmitter } from "../../stream/index.js";
|
|
13
|
+
import { StringBuf } from "./string-buf.js";
|
|
14
14
|
class StringChunk {
|
|
15
15
|
constructor(data) {
|
|
16
16
|
this._data = data;
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* Note: Browser build uses rolldown aliases to swap in browser-specific
|
|
10
10
|
* implementations for xlsx, csv, and stream modules.
|
|
11
11
|
*/
|
|
12
|
-
import { Worksheet } from "
|
|
13
|
-
import { DefinedNames } from "
|
|
14
|
-
import { XLSX } from "
|
|
15
|
-
import { CSV } from "
|
|
16
|
-
import { WorkbookWriter } from "
|
|
17
|
-
import { WorkbookReader } from "
|
|
12
|
+
import { Worksheet } from "./worksheet.js";
|
|
13
|
+
import { DefinedNames } from "./defined-names.js";
|
|
14
|
+
import { XLSX } from "./xlsx/xlsx.js";
|
|
15
|
+
import { CSV } from "../csv/csv.js";
|
|
16
|
+
import { WorkbookWriter } from "./stream/workbook-writer.js";
|
|
17
|
+
import { WorkbookReader } from "./stream/workbook-reader.js";
|
|
18
18
|
// =============================================================================
|
|
19
19
|
// Workbook Class
|
|
20
20
|
// =============================================================================
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { colCache } from "
|
|
2
|
-
import { Range } from "
|
|
3
|
-
import { Row } from "
|
|
4
|
-
import { Column } from "
|
|
5
|
-
import { Enums } from "
|
|
6
|
-
import { Image } from "
|
|
7
|
-
import { Table } from "
|
|
8
|
-
import { DataValidations } from "
|
|
9
|
-
import { Encryptor } from "
|
|
10
|
-
import { uint8ArrayToBase64 } from "
|
|
11
|
-
import { makePivotTable } from "
|
|
12
|
-
import { copyStyle } from "
|
|
1
|
+
import { colCache } from "./utils/col-cache.js";
|
|
2
|
+
import { Range } from "./range.js";
|
|
3
|
+
import { Row } from "./row.js";
|
|
4
|
+
import { Column } from "./column.js";
|
|
5
|
+
import { Enums } from "./enums.js";
|
|
6
|
+
import { Image } from "./image.js";
|
|
7
|
+
import { Table } from "./table.js";
|
|
8
|
+
import { DataValidations } from "./data-validations.js";
|
|
9
|
+
import { Encryptor } from "./utils/encryptor.js";
|
|
10
|
+
import { uint8ArrayToBase64 } from "../../utils/utils.js";
|
|
11
|
+
import { makePivotTable } from "./pivot-table.js";
|
|
12
|
+
import { copyStyle } from "./utils/copy-style.js";
|
|
13
13
|
// Worksheet requirements
|
|
14
14
|
// Operate as sheet inside workbook or standalone
|
|
15
15
|
// Load and Save from file and stream
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseSax } from "
|
|
2
|
-
import { XmlStream } from "
|
|
1
|
+
import { parseSax } from "../../utils/parse-sax.js";
|
|
2
|
+
import { XmlStream } from "../../utils/xml-stream.js";
|
|
3
3
|
// Base class for Xforms
|
|
4
4
|
class BaseXform {
|
|
5
5
|
// ============================================================
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseXform } from "
|
|
2
|
-
import { colCache } from "
|
|
1
|
+
import { BaseXform } from "../base-xform.js";
|
|
2
|
+
import { colCache } from "../../../utils/col-cache.js";
|
|
3
3
|
class DefinedNamesXform extends BaseXform {
|
|
4
4
|
constructor() {
|
|
5
5
|
super();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { xmlDecode } from "
|
|
2
|
-
import { BaseXform } from "
|
|
1
|
+
import { xmlDecode } from "../../../../../utils/utils.js";
|
|
2
|
+
import { BaseXform } from "../base-xform.js";
|
|
3
3
|
class WorksheetXform extends BaseXform {
|
|
4
4
|
render(xmlStream, model) {
|
|
5
5
|
xmlStream.leafNode("sheet", {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { colCache } from "
|
|
2
|
-
import { XmlStream } from "
|
|
3
|
-
import { BaseXform } from "
|
|
4
|
-
import { StaticXform } from "
|
|
5
|
-
import { ListXform } from "
|
|
6
|
-
import { DefinedNamesXform } from "
|
|
7
|
-
import { WorksheetXform } from "
|
|
8
|
-
import { WorkbookViewXform } from "
|
|
9
|
-
import { WorkbookPropertiesXform } from "
|
|
10
|
-
import { WorkbookCalcPropertiesXform } from "
|
|
11
|
-
import { WorkbookPivotCacheXform } from "
|
|
1
|
+
import { colCache } from "../../../utils/col-cache.js";
|
|
2
|
+
import { XmlStream } from "../../../utils/xml-stream.js";
|
|
3
|
+
import { BaseXform } from "../base-xform.js";
|
|
4
|
+
import { StaticXform } from "../static-xform.js";
|
|
5
|
+
import { ListXform } from "../list-xform.js";
|
|
6
|
+
import { DefinedNamesXform } from "./defined-name-xform.js";
|
|
7
|
+
import { WorksheetXform } from "./sheet-xform.js";
|
|
8
|
+
import { WorkbookViewXform } from "./workbook-view-xform.js";
|
|
9
|
+
import { WorkbookPropertiesXform } from "./workbook-properties-xform.js";
|
|
10
|
+
import { WorkbookCalcPropertiesXform } from "./workbook-calc-properties-xform.js";
|
|
11
|
+
import { WorkbookPivotCacheXform } from "./workbook-pivot-cache-xform.js";
|
|
12
12
|
class WorkbookXform extends BaseXform {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RichTextXform } from "
|
|
2
|
-
import { BaseXform } from "
|
|
1
|
+
import { RichTextXform } from "../strings/rich-text-xform.js";
|
|
2
|
+
import { BaseXform } from "../base-xform.js";
|
|
3
3
|
class CommentXform extends BaseXform {
|
|
4
4
|
constructor(model) {
|
|
5
5
|
super();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { XmlStream } from "
|
|
2
|
-
import { BaseXform } from "
|
|
3
|
-
import { CommentXform } from "
|
|
1
|
+
import { XmlStream } from "../../../utils/xml-stream.js";
|
|
2
|
+
import { BaseXform } from "../base-xform.js";
|
|
3
|
+
import { CommentXform } from "./comment-xform.js";
|
|
4
4
|
class CommentsXform extends BaseXform {
|
|
5
5
|
constructor() {
|
|
6
6
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseXform } from "
|
|
2
|
-
import { VmlAnchorXform } from "
|
|
3
|
-
import { VmlProtectionXform } from "
|
|
4
|
-
import { VmlPositionXform } from "
|
|
1
|
+
import { BaseXform } from "../base-xform.js";
|
|
2
|
+
import { VmlAnchorXform } from "./vml-anchor-xform.js";
|
|
3
|
+
import { VmlProtectionXform } from "./style/vml-protection-xform.js";
|
|
4
|
+
import { VmlPositionXform } from "./style/vml-position-xform.js";
|
|
5
5
|
const POSITION_TYPE = ["twoCells", "oneCells", "absolute"];
|
|
6
6
|
class VmlClientDataXform extends BaseXform {
|
|
7
7
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { XmlStream } from "
|
|
2
|
-
import { BaseXform } from "
|
|
3
|
-
import { VmlShapeXform } from "
|
|
1
|
+
import { XmlStream } from "../../../utils/xml-stream.js";
|
|
2
|
+
import { BaseXform } from "../base-xform.js";
|
|
3
|
+
import { VmlShapeXform } from "./vml-shape-xform.js";
|
|
4
4
|
// This class is (currently) single purposed to insert the triangle
|
|
5
5
|
// drawing icons on commented cells
|
|
6
6
|
class VmlNotesXform extends BaseXform {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseXform } from "
|
|
2
|
-
import { VmlTextboxXform } from "
|
|
3
|
-
import { VmlClientDataXform } from "
|
|
1
|
+
import { BaseXform } from "../base-xform.js";
|
|
2
|
+
import { VmlTextboxXform } from "./vml-textbox-xform.js";
|
|
3
|
+
import { VmlClientDataXform } from "./vml-client-data-xform.js";
|
|
4
4
|
class VmlShapeXform extends BaseXform {
|
|
5
5
|
constructor() {
|
|
6
6
|
super();
|