ooxml-core 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -14
- package/dist/docx/load/index.cjs +11 -11
- package/dist/docx/load/index.mjs +11 -11
- package/dist/index.cjs +34 -1
- package/dist/index.mjs +34 -1
- package/dist/opc/index.cjs +18 -1
- package/dist/opc/index.mjs +18 -1
- package/dist/opc/relationship-types.d.ts +17 -0
- package/dist/opc/relationship-types.d.ts.map +1 -1
- package/dist/pptx/cli/index.cjs +122 -105
- package/dist/pptx/cli/index.mjs +122 -105
- package/dist/pptx/index.cjs +144 -127
- package/dist/pptx/index.d.ts +8 -8
- package/dist/pptx/index.d.ts.map +1 -1
- package/dist/pptx/index.mjs +144 -127
- package/dist/visio/geometry.d.ts.map +1 -1
- package/dist/visio/index.cjs +66 -6
- package/dist/visio/index.mjs +66 -6
- package/dist/visio/rounded-geometry.d.ts +9 -0
- package/dist/visio/rounded-geometry.d.ts.map +1 -1
- package/dist/xlsx/address.d.ts +42 -0
- package/dist/xlsx/address.d.ts.map +1 -0
- package/dist/xlsx/cell-styles.d.ts +25 -0
- package/dist/xlsx/cell-styles.d.ts.map +1 -0
- package/dist/xlsx/cells.d.ts +25 -0
- package/dist/xlsx/cells.d.ts.map +1 -0
- package/dist/xlsx/edit/annotations.d.ts +17 -0
- package/dist/xlsx/edit/annotations.d.ts.map +1 -0
- package/dist/xlsx/edit/band-formulas.d.ts +9 -0
- package/dist/xlsx/edit/band-formulas.d.ts.map +1 -0
- package/dist/xlsx/edit/borders.d.ts +8 -0
- package/dist/xlsx/edit/borders.d.ts.map +1 -0
- package/dist/xlsx/edit/calc-mode.d.ts +11 -0
- package/dist/xlsx/edit/calc-mode.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-shift.d.ts +11 -0
- package/dist/xlsx/edit/cell-shift.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-style.d.ts +9 -0
- package/dist/xlsx/edit/cell-style.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts +21 -0
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -0
- package/dist/xlsx/edit/charts.d.ts +22 -0
- package/dist/xlsx/edit/charts.d.ts.map +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +12 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -0
- package/dist/xlsx/edit/clipboard-html.d.ts +8 -0
- package/dist/xlsx/edit/clipboard-html.d.ts.map +1 -0
- package/dist/xlsx/edit/clipboard-text.d.ts +8 -0
- package/dist/xlsx/edit/clipboard-text.d.ts.map +1 -0
- package/dist/xlsx/edit/clipboard.d.ts +16 -0
- package/dist/xlsx/edit/clipboard.d.ts.map +1 -0
- package/dist/xlsx/edit/columns.d.ts +11 -0
- package/dist/xlsx/edit/columns.d.ts.map +1 -0
- package/dist/xlsx/edit/conditional-formats.d.ts +17 -0
- package/dist/xlsx/edit/conditional-formats.d.ts.map +1 -0
- package/dist/xlsx/edit/context.d.ts +42 -0
- package/dist/xlsx/edit/context.d.ts.map +1 -0
- package/dist/xlsx/edit/deps.d.ts +4 -0
- package/dist/xlsx/edit/deps.d.ts.map +1 -0
- package/dist/xlsx/edit/dimensions.d.ts +13 -0
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -0
- package/dist/xlsx/edit/drawings.d.ts +10 -0
- package/dist/xlsx/edit/drawings.d.ts.map +1 -0
- package/dist/xlsx/edit/duplicates.d.ts +17 -0
- package/dist/xlsx/edit/duplicates.d.ts.map +1 -0
- package/dist/xlsx/edit/fill-series.d.ts +16 -0
- package/dist/xlsx/edit/fill-series.d.ts.map +1 -0
- package/dist/xlsx/edit/fill.d.ts +14 -0
- package/dist/xlsx/edit/fill.d.ts.map +1 -0
- package/dist/xlsx/edit/filter.d.ts +17 -0
- package/dist/xlsx/edit/filter.d.ts.map +1 -0
- package/dist/xlsx/edit/find.d.ts +17 -0
- package/dist/xlsx/edit/find.d.ts.map +1 -0
- package/dist/xlsx/edit/format.d.ts +13 -0
- package/dist/xlsx/edit/format.d.ts.map +1 -0
- package/dist/xlsx/edit/history.d.ts +75 -0
- package/dist/xlsx/edit/history.d.ts.map +1 -0
- package/dist/xlsx/edit/index.d.ts +23 -0
- package/dist/xlsx/edit/index.d.ts.map +1 -0
- package/dist/xlsx/edit/merge.d.ts +11 -0
- package/dist/xlsx/edit/merge.d.ts.map +1 -0
- package/dist/xlsx/edit/outline.d.ts +14 -0
- package/dist/xlsx/edit/outline.d.ts.map +1 -0
- package/dist/xlsx/edit/page.d.ts +11 -0
- package/dist/xlsx/edit/page.d.ts.map +1 -0
- package/dist/xlsx/edit/protection.d.ts +26 -0
- package/dist/xlsx/edit/protection.d.ts.map +1 -0
- package/dist/xlsx/edit/range-math.d.ts +33 -0
- package/dist/xlsx/edit/range-math.d.ts.map +1 -0
- package/dist/xlsx/edit/row-autofit.d.ts +17 -0
- package/dist/xlsx/edit/row-autofit.d.ts.map +1 -0
- package/dist/xlsx/edit/session-calc.d.ts +24 -0
- package/dist/xlsx/edit/session-calc.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts +5 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -0
- package/dist/xlsx/edit/sheets.d.ts +19 -0
- package/dist/xlsx/edit/sheets.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-formulas.d.ts +14 -0
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-sheet.d.ts +15 -0
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -0
- package/dist/xlsx/edit/sort.d.ts +17 -0
- package/dist/xlsx/edit/sort.d.ts.map +1 -0
- package/dist/xlsx/edit/structure.d.ts +10 -0
- package/dist/xlsx/edit/structure.d.ts.map +1 -0
- package/dist/xlsx/edit/table-edits.d.ts +25 -0
- package/dist/xlsx/edit/table-edits.d.ts.map +1 -0
- package/dist/xlsx/edit/table-rows.d.ts +11 -0
- package/dist/xlsx/edit/table-rows.d.ts.map +1 -0
- package/dist/xlsx/edit/tables.d.ts +11 -0
- package/dist/xlsx/edit/tables.d.ts.map +1 -0
- package/dist/xlsx/edit/test-context.d.ts +15 -0
- package/dist/xlsx/edit/test-context.d.ts.map +1 -0
- package/dist/xlsx/edit/types-clipboard.d.ts +66 -0
- package/dist/xlsx/edit/types-clipboard.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +188 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -0
- package/dist/xlsx/edit/validation.d.ts +21 -0
- package/dist/xlsx/edit/validation.d.ts.map +1 -0
- package/dist/xlsx/edit/view.d.ts +12 -0
- package/dist/xlsx/edit/view.d.ts.map +1 -0
- package/dist/xlsx/formula/array-context.d.ts +7 -0
- package/dist/xlsx/formula/array-context.d.ts.map +1 -0
- package/dist/xlsx/formula/ast.d.ts +108 -0
- package/dist/xlsx/formula/ast.d.ts.map +1 -0
- package/dist/xlsx/formula/call.d.ts +13 -0
- package/dist/xlsx/formula/call.d.ts.map +1 -0
- package/dist/xlsx/formula/coerce.d.ts +22 -0
- package/dist/xlsx/formula/coerce.d.ts.map +1 -0
- package/dist/xlsx/formula/context.d.ts +74 -0
- package/dist/xlsx/formula/context.d.ts.map +1 -0
- package/dist/xlsx/formula/date-serial.d.ts +26 -0
- package/dist/xlsx/formula/date-serial.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-core.d.ts +19 -0
- package/dist/xlsx/formula/engine-core.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-host.d.ts +51 -0
- package/dist/xlsx/formula/engine-host.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-types.d.ts +31 -0
- package/dist/xlsx/formula/engine-types.d.ts.map +1 -0
- package/dist/xlsx/formula/engine-util.d.ts +10 -0
- package/dist/xlsx/formula/engine-util.d.ts.map +1 -0
- package/dist/xlsx/formula/engine.d.ts +6 -0
- package/dist/xlsx/formula/engine.d.ts.map +1 -0
- package/dist/xlsx/formula/evaluator.d.ts +17 -0
- package/dist/xlsx/formula/evaluator.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/array-shape.d.ts +3 -0
- package/dist/xlsx/formula/functions/array-shape.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/array.d.ts +6 -0
- package/dist/xlsx/formula/functions/array.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/criteria.d.ts +22 -0
- package/dist/xlsx/formula/functions/criteria.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/date-calc.d.ts +14 -0
- package/dist/xlsx/formula/functions/date-calc.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/datetime.d.ts +3 -0
- package/dist/xlsx/formula/functions/datetime.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/depreciation.d.ts +4 -0
- package/dist/xlsx/formula/functions/depreciation.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/dist-core.d.ts +22 -0
- package/dist/xlsx/formula/functions/dist-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/distributions-more.d.ts +4 -0
- package/dist/xlsx/formula/functions/distributions-more.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/distributions.d.ts +3 -0
- package/dist/xlsx/formula/functions/distributions.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/engineering.d.ts +3 -0
- package/dist/xlsx/formula/functions/engineering.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/financial-core.d.ts +8 -0
- package/dist/xlsx/formula/functions/financial-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/financial.d.ts +3 -0
- package/dist/xlsx/formula/functions/financial.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/helpers.d.ts +44 -0
- package/dist/xlsx/formula/functions/helpers.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/info.d.ts +3 -0
- package/dist/xlsx/formula/functions/info.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/lambda.d.ts +3 -0
- package/dist/xlsx/formula/functions/lambda.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/logical.d.ts +7 -0
- package/dist/xlsx/formula/functions/logical.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/lookup-core.d.ts +32 -0
- package/dist/xlsx/formula/functions/lookup-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/lookup.d.ts +8 -0
- package/dist/xlsx/formula/functions/lookup.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-combin.d.ts +5 -0
- package/dist/xlsx/formula/functions/math-combin.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-more.d.ts +4 -0
- package/dist/xlsx/formula/functions/math-more.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts +6 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math.d.ts +7 -0
- package/dist/xlsx/formula/functions/math.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/matrix.d.ts +3 -0
- package/dist/xlsx/formula/functions/matrix.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/reference.d.ts +3 -0
- package/dist/xlsx/formula/functions/reference.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/registry.d.ts +8 -0
- package/dist/xlsx/formula/functions/registry.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical-count.d.ts +3 -0
- package/dist/xlsx/formula/functions/statistical-count.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical-more.d.ts +10 -0
- package/dist/xlsx/formula/functions/statistical-more.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical-shape.d.ts +4 -0
- package/dist/xlsx/formula/functions/statistical-shape.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical-spread.d.ts +4 -0
- package/dist/xlsx/formula/functions/statistical-spread.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical.d.ts +3 -0
- package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/stats-core.d.ts +30 -0
- package/dist/xlsx/formula/functions/stats-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/text-convert.d.ts +4 -0
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/text-extra.d.ts +3 -0
- package/dist/xlsx/formula/functions/text-extra.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/text.d.ts +3 -0
- package/dist/xlsx/formula/functions/text.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/types.d.ts +30 -0
- package/dist/xlsx/formula/functions/types.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/workdays.d.ts +3 -0
- package/dist/xlsx/formula/functions/workdays.d.ts.map +1 -0
- package/dist/xlsx/formula/graph.d.ts +50 -0
- package/dist/xlsx/formula/graph.d.ts.map +1 -0
- package/dist/xlsx/formula/index.d.ts +14 -0
- package/dist/xlsx/formula/index.d.ts.map +1 -0
- package/dist/xlsx/formula/lexemes.d.ts +41 -0
- package/dist/xlsx/formula/lexemes.d.ts.map +1 -0
- package/dist/xlsx/formula/move.d.ts +23 -0
- package/dist/xlsx/formula/move.d.ts.map +1 -0
- package/dist/xlsx/formula/operators.d.ts +15 -0
- package/dist/xlsx/formula/operators.d.ts.map +1 -0
- package/dist/xlsx/formula/parser.d.ts +4 -0
- package/dist/xlsx/formula/parser.d.ts.map +1 -0
- package/dist/xlsx/formula/references.d.ts +36 -0
- package/dist/xlsx/formula/references.d.ts.map +1 -0
- package/dist/xlsx/formula/scc.d.ts +6 -0
- package/dist/xlsx/formula/scc.d.ts.map +1 -0
- package/dist/xlsx/formula/sheet-scan.d.ts +10 -0
- package/dist/xlsx/formula/sheet-scan.d.ts.map +1 -0
- package/dist/xlsx/formula/spill.d.ts +32 -0
- package/dist/xlsx/formula/spill.d.ts.map +1 -0
- package/dist/xlsx/formula/store.d.ts +10 -0
- package/dist/xlsx/formula/store.d.ts.map +1 -0
- package/dist/xlsx/formula/structured-to-a1.d.ts +18 -0
- package/dist/xlsx/formula/structured-to-a1.d.ts.map +1 -0
- package/dist/xlsx/formula/structured.d.ts +4 -0
- package/dist/xlsx/formula/structured.d.ts.map +1 -0
- package/dist/xlsx/formula/table-refs.d.ts +7 -0
- package/dist/xlsx/formula/table-refs.d.ts.map +1 -0
- package/dist/xlsx/formula/test-helpers.d.ts +32 -0
- package/dist/xlsx/formula/test-helpers.d.ts.map +1 -0
- package/dist/xlsx/formula/text-number.d.ts +11 -0
- package/dist/xlsx/formula/text-number.d.ts.map +1 -0
- package/dist/xlsx/formula/tokenizer.d.ts +21 -0
- package/dist/xlsx/formula/tokenizer.d.ts.map +1 -0
- package/dist/xlsx/formula/transform.d.ts +49 -0
- package/dist/xlsx/formula/transform.d.ts.map +1 -0
- package/dist/xlsx/formula/values.d.ts +63 -0
- package/dist/xlsx/formula/values.d.ts.map +1 -0
- package/dist/xlsx/index.cjs +20579 -0
- package/dist/xlsx/index.d.ts +14 -0
- package/dist/xlsx/index.d.ts.map +1 -0
- package/dist/xlsx/index.mjs +20396 -0
- package/dist/xlsx/layout/autofit.d.ts +12 -0
- package/dist/xlsx/layout/autofit.d.ts.map +1 -0
- package/dist/xlsx/layout/axis-metrics.d.ts +39 -0
- package/dist/xlsx/layout/axis-metrics.d.ts.map +1 -0
- package/dist/xlsx/layout/cell-view.d.ts +21 -0
- package/dist/xlsx/layout/cell-view.d.ts.map +1 -0
- package/dist/xlsx/layout/cf-evaluator.d.ts +26 -0
- package/dist/xlsx/layout/cf-evaluator.d.ts.map +1 -0
- package/dist/xlsx/layout/cf-helpers.d.ts +8 -0
- package/dist/xlsx/layout/cf-helpers.d.ts.map +1 -0
- package/dist/xlsx/layout/cf-values.d.ts +25 -0
- package/dist/xlsx/layout/cf-values.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-colors.d.ts +6 -0
- package/dist/xlsx/layout/chart-colors.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-scale.d.ts +25 -0
- package/dist/xlsx/layout/chart-scale.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-svg-cartesian.d.ts +5 -0
- package/dist/xlsx/layout/chart-svg-cartesian.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-svg-radial.d.ts +7 -0
- package/dist/xlsx/layout/chart-svg-radial.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-svg-util.d.ts +29 -0
- package/dist/xlsx/layout/chart-svg-util.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-svg.d.ts +7 -0
- package/dist/xlsx/layout/chart-svg.d.ts.map +1 -0
- package/dist/xlsx/layout/chart-view.d.ts +42 -0
- package/dist/xlsx/layout/chart-view.d.ts.map +1 -0
- package/dist/xlsx/layout/colors.d.ts +20 -0
- package/dist/xlsx/layout/colors.d.ts.map +1 -0
- package/dist/xlsx/layout/index.d.ts +21 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -0
- package/dist/xlsx/layout/metrics.d.ts +41 -0
- package/dist/xlsx/layout/metrics.d.ts.map +1 -0
- package/dist/xlsx/layout/navigate.d.ts +6 -0
- package/dist/xlsx/layout/navigate.d.ts.map +1 -0
- package/dist/xlsx/layout/ref-evaluator.d.ts +16 -0
- package/dist/xlsx/layout/ref-evaluator.d.ts.map +1 -0
- package/dist/xlsx/layout/row-autofit.d.ts +17 -0
- package/dist/xlsx/layout/row-autofit.d.ts.map +1 -0
- package/dist/xlsx/layout/sheet-queries.d.ts +37 -0
- package/dist/xlsx/layout/sheet-queries.d.ts.map +1 -0
- package/dist/xlsx/layout/style-view.d.ts +18 -0
- package/dist/xlsx/layout/style-view.d.ts.map +1 -0
- package/dist/xlsx/layout/tint.d.ts +26 -0
- package/dist/xlsx/layout/tint.d.ts.map +1 -0
- package/dist/xlsx/layout/types.d.ts +106 -0
- package/dist/xlsx/layout/types.d.ts.map +1 -0
- package/dist/xlsx/layout/units.d.ts +37 -0
- package/dist/xlsx/layout/units.d.ts.map +1 -0
- package/dist/xlsx/layout/viewport.d.ts +27 -0
- package/dist/xlsx/layout/viewport.d.ts.map +1 -0
- package/dist/xlsx/load/csv.d.ts +29 -0
- package/dist/xlsx/load/csv.d.ts.map +1 -0
- package/dist/xlsx/load/detect.d.ts +22 -0
- package/dist/xlsx/load/detect.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +15619 -0
- package/dist/xlsx/load/index.d.ts +4 -0
- package/dist/xlsx/load/index.d.ts.map +1 -0
- package/dist/xlsx/load/index.mjs +15603 -0
- package/dist/xlsx/load/legacy-xls-sheet.d.ts +14 -0
- package/dist/xlsx/load/legacy-xls-sheet.d.ts.map +1 -0
- package/dist/xlsx/load/legacy-xls-styles.d.ts +9 -0
- package/dist/xlsx/load/legacy-xls-styles.d.ts.map +1 -0
- package/dist/xlsx/load/legacy-xls.d.ts +10 -0
- package/dist/xlsx/load/legacy-xls.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +535 -0
- package/dist/xlsx/model.d.ts.map +1 -0
- package/dist/xlsx/numfmt/builtins.d.ts +15 -0
- package/dist/xlsx/numfmt/builtins.d.ts.map +1 -0
- package/dist/xlsx/numfmt/compile.d.ts +26 -0
- package/dist/xlsx/numfmt/compile.d.ts.map +1 -0
- package/dist/xlsx/numfmt/date.d.ts +34 -0
- package/dist/xlsx/numfmt/date.d.ts.map +1 -0
- package/dist/xlsx/numfmt/decimal.d.ts +27 -0
- package/dist/xlsx/numfmt/decimal.d.ts.map +1 -0
- package/dist/xlsx/numfmt/decimals.d.ts +10 -0
- package/dist/xlsx/numfmt/decimals.d.ts.map +1 -0
- package/dist/xlsx/numfmt/format.d.ts +13 -0
- package/dist/xlsx/numfmt/format.d.ts.map +1 -0
- package/dist/xlsx/numfmt/fraction.d.ts +38 -0
- package/dist/xlsx/numfmt/fraction.d.ts.map +1 -0
- package/dist/xlsx/numfmt/general.d.ts +8 -0
- package/dist/xlsx/numfmt/general.d.ts.map +1 -0
- package/dist/xlsx/numfmt/index.d.ts +8 -0
- package/dist/xlsx/numfmt/index.d.ts.map +1 -0
- package/dist/xlsx/numfmt/input-date.d.ts +16 -0
- package/dist/xlsx/numfmt/input-date.d.ts.map +1 -0
- package/dist/xlsx/numfmt/input.d.ts +23 -0
- package/dist/xlsx/numfmt/input.d.ts.map +1 -0
- package/dist/xlsx/numfmt/number.d.ts +38 -0
- package/dist/xlsx/numfmt/number.d.ts.map +1 -0
- package/dist/xlsx/numfmt/tokenizer.d.ts +6 -0
- package/dist/xlsx/numfmt/tokenizer.d.ts.map +1 -0
- package/dist/xlsx/numfmt/types.d.ts +87 -0
- package/dist/xlsx/numfmt/types.d.ts.map +1 -0
- package/dist/xlsx/read/builtin-formats.d.ts +10 -0
- package/dist/xlsx/read/builtin-formats.d.ts.map +1 -0
- package/dist/xlsx/read/chart.d.ts +7 -0
- package/dist/xlsx/read/chart.d.ts.map +1 -0
- package/dist/xlsx/read/comments.d.ts +10 -0
- package/dist/xlsx/read/comments.d.ts.map +1 -0
- package/dist/xlsx/read/conditional.d.ts +6 -0
- package/dist/xlsx/read/conditional.d.ts.map +1 -0
- package/dist/xlsx/read/dates.d.ts +6 -0
- package/dist/xlsx/read/dates.d.ts.map +1 -0
- package/dist/xlsx/read/drawing.d.ts +10 -0
- package/dist/xlsx/read/drawing.d.ts.map +1 -0
- package/dist/xlsx/read/formula-storage.d.ts +5 -0
- package/dist/xlsx/read/formula-storage.d.ts.map +1 -0
- package/dist/xlsx/read/formula-text.d.ts +15 -0
- package/dist/xlsx/read/formula-text.d.ts.map +1 -0
- package/dist/xlsx/read/index.d.ts +3 -0
- package/dist/xlsx/read/index.d.ts.map +1 -0
- package/dist/xlsx/read/load.d.ts +7 -0
- package/dist/xlsx/read/load.d.ts.map +1 -0
- package/dist/xlsx/read/metadata.d.ts +8 -0
- package/dist/xlsx/read/metadata.d.ts.map +1 -0
- package/dist/xlsx/read/package.d.ts +60 -0
- package/dist/xlsx/read/package.d.ts.map +1 -0
- package/dist/xlsx/read/print-options.d.ts +7 -0
- package/dist/xlsx/read/print-options.d.ts.map +1 -0
- package/dist/xlsx/read/shared-strings.d.ts +13 -0
- package/dist/xlsx/read/shared-strings.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-data.d.ts +15 -0
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-props.d.ts +21 -0
- package/dist/xlsx/read/sheet-props.d.ts.map +1 -0
- package/dist/xlsx/read/style-parts.d.ts +20 -0
- package/dist/xlsx/read/style-parts.d.ts.map +1 -0
- package/dist/xlsx/read/styles.d.ts +17 -0
- package/dist/xlsx/read/styles.d.ts.map +1 -0
- package/dist/xlsx/read/tables.d.ts +4 -0
- package/dist/xlsx/read/tables.d.ts.map +1 -0
- package/dist/xlsx/read/theme.d.ts +11 -0
- package/dist/xlsx/read/theme.d.ts.map +1 -0
- package/dist/xlsx/read/workbook-part.d.ts +23 -0
- package/dist/xlsx/read/workbook-part.d.ts.map +1 -0
- package/dist/xlsx/read/worksheet.d.ts +18 -0
- package/dist/xlsx/read/worksheet.d.ts.map +1 -0
- package/dist/xlsx/read/xml-util.d.ts +28 -0
- package/dist/xlsx/read/xml-util.d.ts.map +1 -0
- package/dist/xlsx/styles.d.ts +27 -0
- package/dist/xlsx/styles.d.ts.map +1 -0
- package/dist/xlsx/time-period.d.ts +9 -0
- package/dist/xlsx/time-period.d.ts.map +1 -0
- package/dist/xlsx/workbook.d.ts +26 -0
- package/dist/xlsx/workbook.d.ts.map +1 -0
- package/dist/xlsx/write/chart-patch.d.ts +9 -0
- package/dist/xlsx/write/chart-patch.d.ts.map +1 -0
- package/dist/xlsx/write/chart.d.ts +9 -0
- package/dist/xlsx/write/chart.d.ts.map +1 -0
- package/dist/xlsx/write/comments.d.ts +23 -0
- package/dist/xlsx/write/comments.d.ts.map +1 -0
- package/dist/xlsx/write/conditional.d.ts +5 -0
- package/dist/xlsx/write/conditional.d.ts.map +1 -0
- package/dist/xlsx/write/drawing.d.ts +10 -0
- package/dist/xlsx/write/drawing.d.ts.map +1 -0
- package/dist/xlsx/write/dynamic-array.d.ts +16 -0
- package/dist/xlsx/write/dynamic-array.d.ts.map +1 -0
- package/dist/xlsx/write/index.d.ts +2 -0
- package/dist/xlsx/write/index.d.ts.map +1 -0
- package/dist/xlsx/write/package-writer.d.ts +31 -0
- package/dist/xlsx/write/package-writer.d.ts.map +1 -0
- package/dist/xlsx/write/save.d.ts +8 -0
- package/dist/xlsx/write/save.d.ts.map +1 -0
- package/dist/xlsx/write/shared-strings.d.ts +13 -0
- package/dist/xlsx/write/shared-strings.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-data.d.ts +19 -0
- package/dist/xlsx/write/sheet-data.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-parts.d.ts +34 -0
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-props.d.ts +16 -0
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -0
- package/dist/xlsx/write/snapshot.d.ts +9 -0
- package/dist/xlsx/write/snapshot.d.ts.map +1 -0
- package/dist/xlsx/write/style-xml.d.ts +13 -0
- package/dist/xlsx/write/style-xml.d.ts.map +1 -0
- package/dist/xlsx/write/styles.d.ts +24 -0
- package/dist/xlsx/write/styles.d.ts.map +1 -0
- package/dist/xlsx/write/tables.d.ts +18 -0
- package/dist/xlsx/write/tables.d.ts.map +1 -0
- package/dist/xlsx/write/theme.d.ts +9 -0
- package/dist/xlsx/write/theme.d.ts.map +1 -0
- package/dist/xlsx/write/workbook-part.d.ts +16 -0
- package/dist/xlsx/write/workbook-part.d.ts.map +1 -0
- package/dist/xlsx/write/worksheet.d.ts +6 -0
- package/dist/xlsx/write/worksheet.d.ts.map +1 -0
- package/dist/xlsx/write/xml-out.d.ts +25 -0
- package/dist/xlsx/write/xml-out.d.ts.map +1 -0
- package/dist/xml/index.cjs +16 -0
- package/dist/xml/index.mjs +16 -0
- package/dist/xml/namespaces.d.ts +16 -0
- package/dist/xml/namespaces.d.ts.map +1 -1
- package/package.json +16 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ooxml-core
|
|
4
4
|
|
|
5
5
|
**Read, edit, validate and write Office Open XML documents in TypeScript.**
|
|
6
|
-
One package, one XML model, every format: Word, PowerPoint and the shared building blocks beneath them.
|
|
6
|
+
One package, one XML model, every format: Word, PowerPoint, Excel and the shared building blocks beneath them. Visio and more are planned.
|
|
7
7
|
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
[](https://github.com/ChristopherVR/ooxml/actions/workflows/ci.yml)
|
|
@@ -28,24 +28,25 @@ One package, one XML model, every format: Word, PowerPoint and the shared buildi
|
|
|
28
28
|
|
|
29
29
|
## One package, many areas
|
|
30
30
|
|
|
31
|
-
`ooxml-core` is a **single published package**. Every area is a subpath import, so you only load what you use, and the formats are symmetrical: `docx` and `
|
|
31
|
+
`ooxml-core` is a **single published package**. Every area is a subpath import, so you only load what you use, and the formats are symmetrical: `docx`, `pptx` and `xlsx` are each imported through their own subpaths, and the root entry groups only the shared building blocks by namespace.
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
import { parseXml } from 'ooxml-core/xml'; // one area
|
|
35
35
|
import { xml, opc } from 'ooxml-core'; // or by namespace (shared building blocks)
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
| Area | What it is
|
|
39
|
-
| ---------- |
|
|
40
|
-
| `xml` | The shared XML model: strict DOM parsing and serialization, namespaces, namespace-aware helpers.
|
|
41
|
-
| `opc` | Open Packaging Conventions: relationships, content types, part paths, zip helpers, safe hyperlinks.
|
|
42
|
-
| `units` | Branded EMU, twip and point types, constants and conversions.
|
|
43
|
-
| `color` | Hex, RGB, HSL and linear colour primitives, OOXML percent and angle parsing.
|
|
44
|
-
| `geometry` | DrawingML preset shapes, connection sites, clip paths, callouts and boolean shape operations.
|
|
45
|
-
| `diagram` | SmartArt (DiagramML), format-neutral: data model, layout/colour/quick-style parts, the cached `dsp:drawing` shape tree, relationship resolution and a loader. Used by `docx`; `pptx` re-imports its parsers.
|
|
46
|
-
| `collab` | Format-neutral real-time collaboration on Yjs: session and provider lifecycle, awareness/presence, transport-neutral sync (WebSocket, in-memory, any byte channel), update codecs, ordering helpers, asset sync and the product adapter seam. See `docs/collab-area.md`.
|
|
47
|
-
| `docx` | WordprocessingML: model, parser, preserving serializer, editing, validation. Also `/docx/embedded`. `/docx/layout` is the DOM-free pagination engine (an approximation of Word, not parity) and `/docx/load` detects and loads DOCX and legacy .doc (ole2 inlined).
|
|
48
|
-
| `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`.
|
|
38
|
+
| Area | What it is |
|
|
39
|
+
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
40
|
+
| `xml` | The shared XML model: strict DOM parsing and serialization, namespaces, namespace-aware helpers. |
|
|
41
|
+
| `opc` | Open Packaging Conventions: relationships, content types, part paths, zip helpers, safe hyperlinks. |
|
|
42
|
+
| `units` | Branded EMU, twip and point types, constants and conversions. |
|
|
43
|
+
| `color` | Hex, RGB, HSL and linear colour primitives, OOXML percent and angle parsing. |
|
|
44
|
+
| `geometry` | DrawingML preset shapes, connection sites, clip paths, callouts and boolean shape operations. |
|
|
45
|
+
| `diagram` | SmartArt (DiagramML), format-neutral: data model, layout/colour/quick-style parts, the cached `dsp:drawing` shape tree, relationship resolution and a loader. Used by `docx`; `pptx` re-imports its parsers. |
|
|
46
|
+
| `collab` | Format-neutral real-time collaboration on Yjs: session and provider lifecycle, awareness/presence, transport-neutral sync (WebSocket, in-memory, any byte channel), update codecs, ordering helpers, asset sync and the product adapter seam. See `docs/collab-area.md`. |
|
|
47
|
+
| `docx` | WordprocessingML: model, parser, preserving serializer, editing, validation. Also `/docx/embedded`. `/docx/layout` is the DOM-free pagination engine (an approximation of Word, not parity) and `/docx/load` detects and loads DOCX and legacy .doc (ole2 inlined). |
|
|
48
|
+
| `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`. |
|
|
49
|
+
| `xlsx` | SpreadsheetML: workbook model, `.xlsx`/`.xlsm` reader and preserving writer, formula engine (dependency graph, dynamic arrays, 380+ functions), Excel number formats, editing commands with undo, and the DOM-free grid layout (sizes, colours, conditional formats, charts as SVG). `/xlsx/load` detects and loads `.xlsx`, `.xlsm`, legacy `.xls` (ole2 inlined) and CSV. An approximation of Excel, not parity. |
|
|
49
50
|
|
|
50
51
|
Legacy binary formats (`.doc`, `.xls`, `.ppt`) and the compound-file container live in the sibling package [`ole2`](https://github.com/ChristopherVR/ole2); this package never contains binary codecs, and `ole2` never contains modern OOXML.
|
|
51
52
|
|
|
@@ -96,7 +97,7 @@ const part = resolvePartPath('word/document.xml', rels.get('rId5')!.target);
|
|
|
96
97
|
The shared areas come first, then more formats on the same foundation:
|
|
97
98
|
|
|
98
99
|
- **Shared layers:** DrawingML (fills, lines, effects, text, theme), charts, diagrams (SmartArt), maths, encryption primitives and schema-generated types, each as an area, written once for every format.
|
|
99
|
-
- **More formats:**
|
|
100
|
+
- **More formats:** Visio (`.vsdx`, also an OPC package), and further Office Open XML parts as they are needed. Each arrives as its own area.
|
|
100
101
|
- **One XML model:** the `pptx` area still uses its own XML object model and is compiled with relaxed TypeScript flags while it is migrated onto the shared `xml` area and tightened. New code is strict.
|
|
101
102
|
- **Collaboration:** the Yjs and sync protocol that the viewers share will live here as a `collab` area.
|
|
102
103
|
|
package/dist/docx/load/index.cjs
CHANGED
|
@@ -7634,7 +7634,7 @@ function createDocument() {
|
|
|
7634
7634
|
};
|
|
7635
7635
|
}
|
|
7636
7636
|
|
|
7637
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7637
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
|
|
7638
7638
|
var FC_LCB_INDEX = {
|
|
7639
7639
|
plcfbteChpx: 12,
|
|
7640
7640
|
plcfbtePapx: 13,
|
|
@@ -7703,7 +7703,7 @@ function patchDocFib(wordDoc, fib, patch) {
|
|
|
7703
7703
|
view.setUint32(papxOff + 4, patch.plcfbtePapx.lcb, true);
|
|
7704
7704
|
}
|
|
7705
7705
|
|
|
7706
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7706
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
|
|
7707
7707
|
var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
|
|
7708
7708
|
var ENDOFCHAIN = 4294967294;
|
|
7709
7709
|
var FREESECT = 4294967295;
|
|
@@ -7721,7 +7721,7 @@ var Ole2ParseError = class extends Error {
|
|
|
7721
7721
|
}
|
|
7722
7722
|
};
|
|
7723
7723
|
|
|
7724
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7724
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
|
|
7725
7725
|
function parseOle2(buffer) {
|
|
7726
7726
|
const data = new Uint8Array(buffer);
|
|
7727
7727
|
const view = new DataView(buffer);
|
|
@@ -7899,7 +7899,7 @@ function parseOle2(buffer) {
|
|
|
7899
7899
|
return { entries, getStream };
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7902
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
|
|
7903
7903
|
function compareDirEntryNames(a, b) {
|
|
7904
7904
|
if (a.length !== b.length) {
|
|
7905
7905
|
return a.length - b.length;
|
|
@@ -7945,7 +7945,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
|
|
|
7945
7945
|
}
|
|
7946
7946
|
}
|
|
7947
7947
|
|
|
7948
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7948
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
|
|
7949
7949
|
function writeHeader(outView, outBytes, params) {
|
|
7950
7950
|
outBytes.set(OLE_MAGIC, 0);
|
|
7951
7951
|
outView.setUint16(24, 62, true);
|
|
@@ -8037,7 +8037,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
|
|
|
8037
8037
|
}
|
|
8038
8038
|
}
|
|
8039
8039
|
|
|
8040
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8040
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
|
|
8041
8041
|
function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
|
|
8042
8042
|
const sectorSize = 512;
|
|
8043
8043
|
const miniSectorSize = 64;
|
|
@@ -8203,7 +8203,7 @@ function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
|
|
|
8203
8203
|
return output;
|
|
8204
8204
|
}
|
|
8205
8205
|
|
|
8206
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8206
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
|
|
8207
8207
|
function unwrapDocBytes(bytes) {
|
|
8208
8208
|
if (bytes.length < 8 || bytes[0] !== 208 || bytes[1] !== 207 || bytes[2] !== 17 || bytes[3] !== 224 || bytes[4] !== 161 || bytes[5] !== 177 || bytes[6] !== 26 || bytes[7] !== 225) {
|
|
8209
8209
|
return void 0;
|
|
@@ -8244,7 +8244,7 @@ function unwrapDocBytes(bytes) {
|
|
|
8244
8244
|
}
|
|
8245
8245
|
}
|
|
8246
8246
|
|
|
8247
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8247
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
|
|
8248
8248
|
var PAGE_SIZE = 512;
|
|
8249
8249
|
function parseBteTable(tableStream, at) {
|
|
8250
8250
|
const view = new DataView(tableStream.buffer, tableStream.byteOffset, tableStream.byteLength);
|
|
@@ -8352,7 +8352,7 @@ function buildSingleRunChpxPage(fcStart, fcEnd, blob) {
|
|
|
8352
8352
|
return page;
|
|
8353
8353
|
}
|
|
8354
8354
|
|
|
8355
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8355
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
|
|
8356
8356
|
var CP1252_HIGH_BLOCK = [
|
|
8357
8357
|
8364,
|
|
8358
8358
|
129,
|
|
@@ -8420,7 +8420,7 @@ function encodeCp1252(text) {
|
|
|
8420
8420
|
return Uint8Array.from(bytes);
|
|
8421
8421
|
}
|
|
8422
8422
|
|
|
8423
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8423
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
|
|
8424
8424
|
var CLXT_PRC = 1;
|
|
8425
8425
|
var CLXT_PCDT = 2;
|
|
8426
8426
|
function parsePieceTable(tableStream, clx) {
|
|
@@ -8582,7 +8582,7 @@ function buildClxBytes(pieces) {
|
|
|
8582
8582
|
return bytes;
|
|
8583
8583
|
}
|
|
8584
8584
|
|
|
8585
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8585
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
|
|
8586
8586
|
var RISKY_PLCF_INDICES = [3, 4, 5, 16, 17, 18, 19, 20];
|
|
8587
8587
|
var RISKY_STTB_INDICES = [21, 22, 23];
|
|
8588
8588
|
function hasUnsupportedFeatures(wordDoc, fib) {
|
package/dist/docx/load/index.mjs
CHANGED
|
@@ -7628,7 +7628,7 @@ function createDocument() {
|
|
|
7628
7628
|
};
|
|
7629
7629
|
}
|
|
7630
7630
|
|
|
7631
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7631
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fib.js
|
|
7632
7632
|
var FC_LCB_INDEX = {
|
|
7633
7633
|
plcfbteChpx: 12,
|
|
7634
7634
|
plcfbtePapx: 13,
|
|
@@ -7697,7 +7697,7 @@ function patchDocFib(wordDoc, fib, patch) {
|
|
|
7697
7697
|
view.setUint32(papxOff + 4, patch.plcfbtePapx.lcb, true);
|
|
7698
7698
|
}
|
|
7699
7699
|
|
|
7700
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7700
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-types.js
|
|
7701
7701
|
var OLE_MAGIC = new Uint8Array([208, 207, 17, 224, 161, 177, 26, 225]);
|
|
7702
7702
|
var ENDOFCHAIN = 4294967294;
|
|
7703
7703
|
var FREESECT = 4294967295;
|
|
@@ -7715,7 +7715,7 @@ var Ole2ParseError = class extends Error {
|
|
|
7715
7715
|
}
|
|
7716
7716
|
};
|
|
7717
7717
|
|
|
7718
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7718
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-read.js
|
|
7719
7719
|
function parseOle2(buffer) {
|
|
7720
7720
|
const data = new Uint8Array(buffer);
|
|
7721
7721
|
const view = new DataView(buffer);
|
|
@@ -7893,7 +7893,7 @@ function parseOle2(buffer) {
|
|
|
7893
7893
|
return { entries, getStream };
|
|
7894
7894
|
}
|
|
7895
7895
|
|
|
7896
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7896
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-helpers.js
|
|
7897
7897
|
function compareDirEntryNames(a, b) {
|
|
7898
7898
|
if (a.length !== b.length) {
|
|
7899
7899
|
return a.length - b.length;
|
|
@@ -7939,7 +7939,7 @@ function writeInt32Sectors(outBytes, int32Data, firstSector, numSectors, sectorS
|
|
|
7939
7939
|
}
|
|
7940
7940
|
}
|
|
7941
7941
|
|
|
7942
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
7942
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write-serialize.js
|
|
7943
7943
|
function writeHeader(outView, outBytes, params) {
|
|
7944
7944
|
outBytes.set(OLE_MAGIC, 0);
|
|
7945
7945
|
outView.setUint16(24, 62, true);
|
|
@@ -8031,7 +8031,7 @@ function writeStreamSectors(outBytes, streamData, chain, sectorSize) {
|
|
|
8031
8031
|
}
|
|
8032
8032
|
}
|
|
8033
8033
|
|
|
8034
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8034
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole2-parser-write.js
|
|
8035
8035
|
function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
|
|
8036
8036
|
const sectorSize = 512;
|
|
8037
8037
|
const miniSectorSize = 64;
|
|
@@ -8197,7 +8197,7 @@ function buildOle2(streams, rootClsid, miniStreamCutoff = 4096) {
|
|
|
8197
8197
|
return output;
|
|
8198
8198
|
}
|
|
8199
8199
|
|
|
8200
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8200
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cfb.js
|
|
8201
8201
|
function unwrapDocBytes(bytes) {
|
|
8202
8202
|
if (bytes.length < 8 || bytes[0] !== 208 || bytes[1] !== 207 || bytes[2] !== 17 || bytes[3] !== 224 || bytes[4] !== 161 || bytes[5] !== 177 || bytes[6] !== 26 || bytes[7] !== 225) {
|
|
8203
8203
|
return void 0;
|
|
@@ -8238,7 +8238,7 @@ function unwrapDocBytes(bytes) {
|
|
|
8238
8238
|
}
|
|
8239
8239
|
}
|
|
8240
8240
|
|
|
8241
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8241
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-fkp.js
|
|
8242
8242
|
var PAGE_SIZE = 512;
|
|
8243
8243
|
function parseBteTable(tableStream, at) {
|
|
8244
8244
|
const view = new DataView(tableStream.buffer, tableStream.byteOffset, tableStream.byteLength);
|
|
@@ -8346,7 +8346,7 @@ function buildSingleRunChpxPage(fcStart, fcEnd, blob) {
|
|
|
8346
8346
|
return page;
|
|
8347
8347
|
}
|
|
8348
8348
|
|
|
8349
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8349
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-cp1252.js
|
|
8350
8350
|
var CP1252_HIGH_BLOCK = [
|
|
8351
8351
|
8364,
|
|
8352
8352
|
129,
|
|
@@ -8414,7 +8414,7 @@ function encodeCp1252(text) {
|
|
|
8414
8414
|
return Uint8Array.from(bytes);
|
|
8415
8415
|
}
|
|
8416
8416
|
|
|
8417
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8417
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-pieces.js
|
|
8418
8418
|
var CLXT_PRC = 1;
|
|
8419
8419
|
var CLXT_PCDT = 2;
|
|
8420
8420
|
function parsePieceTable(tableStream, clx) {
|
|
@@ -8576,7 +8576,7 @@ function buildClxBytes(pieces) {
|
|
|
8576
8576
|
return bytes;
|
|
8577
8577
|
}
|
|
8578
8578
|
|
|
8579
|
-
// node_modules/.bun/@christophervr+ole2@0.
|
|
8579
|
+
// node_modules/.bun/@christophervr+ole2@0.4.0/node_modules/@christophervr/ole2/dist/ole-document-doc-editor.js
|
|
8580
8580
|
var RISKY_PLCF_INDICES = [3, 4, 5, 16, 17, 18, 19, 20];
|
|
8581
8581
|
var RISKY_STTB_INDICES = [21, 22, 23];
|
|
8582
8582
|
function hasUnsupportedFeatures(wordDoc, fib) {
|
package/dist/index.cjs
CHANGED
|
@@ -391,7 +391,24 @@ var RELATIONSHIP_TYPES = {
|
|
|
391
391
|
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
|
|
392
392
|
coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
|
|
393
393
|
extendedProperties: `${BASE}/extended-properties`,
|
|
394
|
-
customXml: `${BASE}/customXml
|
|
394
|
+
customXml: `${BASE}/customXml`,
|
|
395
|
+
worksheet: `${BASE}/worksheet`,
|
|
396
|
+
chartsheet: `${BASE}/chartsheet`,
|
|
397
|
+
dialogsheet: `${BASE}/dialogsheet`,
|
|
398
|
+
xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
|
|
399
|
+
sharedStrings: `${BASE}/sharedStrings`,
|
|
400
|
+
drawing: `${BASE}/drawing`,
|
|
401
|
+
table: `${BASE}/table`,
|
|
402
|
+
threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
|
|
403
|
+
person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
404
|
+
vmlDrawing: `${BASE}/vmlDrawing`,
|
|
405
|
+
calcChain: `${BASE}/calcChain`,
|
|
406
|
+
vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
|
|
407
|
+
pivotTable: `${BASE}/pivotTable`,
|
|
408
|
+
pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
|
|
409
|
+
externalLink: `${BASE}/externalLink`,
|
|
410
|
+
printerSettings: `${BASE}/printerSettings`,
|
|
411
|
+
sheetMetadata: `${BASE}/sheetMetadata`
|
|
395
412
|
};
|
|
396
413
|
|
|
397
414
|
// src/xml/index.ts
|
|
@@ -453,6 +470,22 @@ var NS = {
|
|
|
453
470
|
o: "urn:schemas-microsoft-com:office:office",
|
|
454
471
|
/** Word VML extensions. */
|
|
455
472
|
w10: "urn:schemas-microsoft-com:office:word",
|
|
473
|
+
/** SpreadsheetML drawing (`xdr:wsDr`, cell anchors). */
|
|
474
|
+
xdr: "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
|
|
475
|
+
/** SpreadsheetML 2009 extensions (`x14:conditionalFormatting`, `x14:dataBar`). */
|
|
476
|
+
x14: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",
|
|
477
|
+
/** SpreadsheetML 2009 attribute extensions (`x14ac:dyDescent`). */
|
|
478
|
+
x14ac: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
|
|
479
|
+
/** SpreadsheetML revision ids (`xr:uid`). */
|
|
480
|
+
xr: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
|
|
481
|
+
/** Excel threaded comments and persons. */
|
|
482
|
+
tc: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",
|
|
483
|
+
/** Legacy VML Excel client data (`x:ClientData`). */
|
|
484
|
+
xv: "urn:schemas-microsoft-com:office:excel",
|
|
485
|
+
/** Extended (app) properties. */
|
|
486
|
+
extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
487
|
+
/** Dublin Core terms (`dcterms:created`). */
|
|
488
|
+
dcterms: "http://purl.org/dc/terms/",
|
|
456
489
|
/** XML itself (`xml:space`). */
|
|
457
490
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
458
491
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -389,7 +389,24 @@ var RELATIONSHIP_TYPES = {
|
|
|
389
389
|
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
|
|
390
390
|
coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
|
|
391
391
|
extendedProperties: `${BASE}/extended-properties`,
|
|
392
|
-
customXml: `${BASE}/customXml
|
|
392
|
+
customXml: `${BASE}/customXml`,
|
|
393
|
+
worksheet: `${BASE}/worksheet`,
|
|
394
|
+
chartsheet: `${BASE}/chartsheet`,
|
|
395
|
+
dialogsheet: `${BASE}/dialogsheet`,
|
|
396
|
+
xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
|
|
397
|
+
sharedStrings: `${BASE}/sharedStrings`,
|
|
398
|
+
drawing: `${BASE}/drawing`,
|
|
399
|
+
table: `${BASE}/table`,
|
|
400
|
+
threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
|
|
401
|
+
person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
402
|
+
vmlDrawing: `${BASE}/vmlDrawing`,
|
|
403
|
+
calcChain: `${BASE}/calcChain`,
|
|
404
|
+
vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
|
|
405
|
+
pivotTable: `${BASE}/pivotTable`,
|
|
406
|
+
pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
|
|
407
|
+
externalLink: `${BASE}/externalLink`,
|
|
408
|
+
printerSettings: `${BASE}/printerSettings`,
|
|
409
|
+
sheetMetadata: `${BASE}/sheetMetadata`
|
|
393
410
|
};
|
|
394
411
|
|
|
395
412
|
// src/xml/index.ts
|
|
@@ -451,6 +468,22 @@ var NS = {
|
|
|
451
468
|
o: "urn:schemas-microsoft-com:office:office",
|
|
452
469
|
/** Word VML extensions. */
|
|
453
470
|
w10: "urn:schemas-microsoft-com:office:word",
|
|
471
|
+
/** SpreadsheetML drawing (`xdr:wsDr`, cell anchors). */
|
|
472
|
+
xdr: "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
|
|
473
|
+
/** SpreadsheetML 2009 extensions (`x14:conditionalFormatting`, `x14:dataBar`). */
|
|
474
|
+
x14: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",
|
|
475
|
+
/** SpreadsheetML 2009 attribute extensions (`x14ac:dyDescent`). */
|
|
476
|
+
x14ac: "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
|
|
477
|
+
/** SpreadsheetML revision ids (`xr:uid`). */
|
|
478
|
+
xr: "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
|
|
479
|
+
/** Excel threaded comments and persons. */
|
|
480
|
+
tc: "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",
|
|
481
|
+
/** Legacy VML Excel client data (`x:ClientData`). */
|
|
482
|
+
xv: "urn:schemas-microsoft-com:office:excel",
|
|
483
|
+
/** Extended (app) properties. */
|
|
484
|
+
extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
485
|
+
/** Dublin Core terms (`dcterms:created`). */
|
|
486
|
+
dcterms: "http://purl.org/dc/terms/",
|
|
454
487
|
/** XML itself (`xml:space`). */
|
|
455
488
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
456
489
|
};
|
package/dist/opc/index.cjs
CHANGED
|
@@ -33,7 +33,24 @@ var RELATIONSHIP_TYPES = {
|
|
|
33
33
|
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
|
|
34
34
|
coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
|
|
35
35
|
extendedProperties: `${BASE}/extended-properties`,
|
|
36
|
-
customXml: `${BASE}/customXml
|
|
36
|
+
customXml: `${BASE}/customXml`,
|
|
37
|
+
worksheet: `${BASE}/worksheet`,
|
|
38
|
+
chartsheet: `${BASE}/chartsheet`,
|
|
39
|
+
dialogsheet: `${BASE}/dialogsheet`,
|
|
40
|
+
xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
|
|
41
|
+
sharedStrings: `${BASE}/sharedStrings`,
|
|
42
|
+
drawing: `${BASE}/drawing`,
|
|
43
|
+
table: `${BASE}/table`,
|
|
44
|
+
threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
|
|
45
|
+
person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
46
|
+
vmlDrawing: `${BASE}/vmlDrawing`,
|
|
47
|
+
calcChain: `${BASE}/calcChain`,
|
|
48
|
+
vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
|
|
49
|
+
pivotTable: `${BASE}/pivotTable`,
|
|
50
|
+
pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
|
|
51
|
+
externalLink: `${BASE}/externalLink`,
|
|
52
|
+
printerSettings: `${BASE}/printerSettings`,
|
|
53
|
+
sheetMetadata: `${BASE}/sheetMetadata`
|
|
37
54
|
};
|
|
38
55
|
|
|
39
56
|
// src/xml/namespaces.ts
|
package/dist/opc/index.mjs
CHANGED
|
@@ -31,7 +31,24 @@ var RELATIONSHIP_TYPES = {
|
|
|
31
31
|
diagramDrawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
|
|
32
32
|
coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
|
|
33
33
|
extendedProperties: `${BASE}/extended-properties`,
|
|
34
|
-
customXml: `${BASE}/customXml
|
|
34
|
+
customXml: `${BASE}/customXml`,
|
|
35
|
+
worksheet: `${BASE}/worksheet`,
|
|
36
|
+
chartsheet: `${BASE}/chartsheet`,
|
|
37
|
+
dialogsheet: `${BASE}/dialogsheet`,
|
|
38
|
+
xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",
|
|
39
|
+
sharedStrings: `${BASE}/sharedStrings`,
|
|
40
|
+
drawing: `${BASE}/drawing`,
|
|
41
|
+
table: `${BASE}/table`,
|
|
42
|
+
threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",
|
|
43
|
+
person: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
44
|
+
vmlDrawing: `${BASE}/vmlDrawing`,
|
|
45
|
+
calcChain: `${BASE}/calcChain`,
|
|
46
|
+
vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject",
|
|
47
|
+
pivotTable: `${BASE}/pivotTable`,
|
|
48
|
+
pivotCacheDefinition: `${BASE}/pivotCacheDefinition`,
|
|
49
|
+
externalLink: `${BASE}/externalLink`,
|
|
50
|
+
printerSettings: `${BASE}/printerSettings`,
|
|
51
|
+
sheetMetadata: `${BASE}/sheetMetadata`
|
|
35
52
|
};
|
|
36
53
|
|
|
37
54
|
// src/xml/namespaces.ts
|
|
@@ -29,6 +29,23 @@ export declare const RELATIONSHIP_TYPES: {
|
|
|
29
29
|
readonly coreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
|
|
30
30
|
readonly extendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
|
|
31
31
|
readonly customXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
|
|
32
|
+
readonly worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
|
|
33
|
+
readonly chartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";
|
|
34
|
+
readonly dialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";
|
|
35
|
+
readonly xlMacrosheet: "http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";
|
|
36
|
+
readonly sharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";
|
|
37
|
+
readonly drawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
|
|
38
|
+
readonly table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table";
|
|
39
|
+
readonly threadedComment: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
|
|
40
|
+
readonly person: "http://schemas.microsoft.com/office/2017/10/relationships/person";
|
|
41
|
+
readonly vmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing";
|
|
42
|
+
readonly calcChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain";
|
|
43
|
+
readonly vbaProject: "http://schemas.microsoft.com/office/2006/relationships/vbaProject";
|
|
44
|
+
readonly pivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";
|
|
45
|
+
readonly pivotCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";
|
|
46
|
+
readonly externalLink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
|
|
47
|
+
readonly printerSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings";
|
|
48
|
+
readonly sheetMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";
|
|
32
49
|
};
|
|
33
50
|
export type RelationshipTypeKey = keyof typeof RELATIONSHIP_TYPES;
|
|
34
51
|
//# sourceMappingURL=relationship-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationship-types.d.ts","sourceRoot":"","sources":["../../src/opc/relationship-types.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"relationship-types.d.ts","sourceRoot":"","sources":["../../src/opc/relationship-types.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDrB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC"}
|