@trebco/treb 37.0.0 → 37.0.1
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/build/package.json +119 -0
- package/build/treb-base-types/src/api_types.d.ts +11 -0
- package/build/treb-base-types/src/api_types.js +22 -0
- package/build/treb-base-types/src/api_types.js.map +1 -0
- package/build/treb-base-types/src/area-utils.d.ts +9 -0
- package/build/treb-base-types/src/area-utils.js +50 -0
- package/build/treb-base-types/src/area-utils.js.map +1 -0
- package/build/treb-base-types/src/area.d.ts +182 -0
- package/build/treb-base-types/src/area.js +715 -0
- package/build/treb-base-types/src/area.js.map +1 -0
- package/build/treb-base-types/src/basic_types.d.ts +20 -0
- package/build/treb-base-types/src/basic_types.js +22 -0
- package/build/treb-base-types/src/basic_types.js.map +1 -0
- package/build/treb-base-types/src/cell.d.ts +167 -0
- package/build/treb-base-types/src/cell.js +432 -0
- package/build/treb-base-types/src/cell.js.map +1 -0
- package/build/treb-base-types/src/cells.d.ts +251 -0
- package/build/treb-base-types/src/cells.js +1136 -0
- package/build/treb-base-types/src/cells.js.map +1 -0
- package/build/treb-base-types/src/color.d.ts +35 -0
- package/build/treb-base-types/src/color.js +162 -0
- package/build/treb-base-types/src/color.js.map +1 -0
- package/build/treb-base-types/src/dom-utilities.d.ts +70 -0
- package/build/treb-base-types/src/dom-utilities.js +144 -0
- package/build/treb-base-types/src/dom-utilities.js.map +1 -0
- package/build/treb-base-types/src/evaluate-options.d.ts +35 -0
- package/build/treb-base-types/src/evaluate-options.js +22 -0
- package/build/treb-base-types/src/evaluate-options.js.map +1 -0
- package/build/treb-base-types/src/font-stack.d.ts +37 -0
- package/build/treb-base-types/src/font-stack.js +93 -0
- package/build/treb-base-types/src/font-stack.js.map +1 -0
- package/build/treb-base-types/src/gradient.d.ts +18 -0
- package/build/treb-base-types/src/gradient.js +86 -0
- package/build/treb-base-types/src/gradient.js.map +1 -0
- package/build/treb-base-types/src/import.d.ts +48 -0
- package/build/treb-base-types/src/import.js +22 -0
- package/build/treb-base-types/src/import.js.map +1 -0
- package/build/treb-base-types/src/index-standalone.d.ts +6 -0
- package/build/treb-base-types/src/index-standalone.js +27 -0
- package/build/treb-base-types/src/index-standalone.js.map +1 -0
- package/build/treb-base-types/src/index.d.ts +22 -0
- package/build/treb-base-types/src/index.js +45 -0
- package/build/treb-base-types/src/index.js.map +1 -0
- package/build/treb-base-types/src/layout.d.ts +22 -0
- package/build/treb-base-types/src/layout.js +22 -0
- package/build/treb-base-types/src/layout.js.map +1 -0
- package/build/treb-base-types/src/localization.d.ts +37 -0
- package/build/treb-base-types/src/localization.js +157 -0
- package/build/treb-base-types/src/localization.js.map +1 -0
- package/build/treb-base-types/src/rectangle.d.ts +51 -0
- package/build/treb-base-types/src/rectangle.js +123 -0
- package/build/treb-base-types/src/rectangle.js.map +1 -0
- package/build/treb-base-types/src/render_text.d.ts +34 -0
- package/build/treb-base-types/src/render_text.js +22 -0
- package/build/treb-base-types/src/render_text.js.map +1 -0
- package/build/treb-base-types/src/style.d.ts +214 -0
- package/build/treb-base-types/src/style.js +373 -0
- package/build/treb-base-types/src/style.js.map +1 -0
- package/build/treb-base-types/src/table.d.ts +58 -0
- package/build/treb-base-types/src/table.js +27 -0
- package/build/treb-base-types/src/table.js.map +1 -0
- package/build/treb-base-types/src/text_part.d.ts +26 -0
- package/build/treb-base-types/src/text_part.js +47 -0
- package/build/treb-base-types/src/text_part.js.map +1 -0
- package/build/treb-base-types/src/theme.d.ts +120 -0
- package/build/treb-base-types/src/theme.js +460 -0
- package/build/treb-base-types/src/theme.js.map +1 -0
- package/build/treb-base-types/src/union.d.ts +73 -0
- package/build/treb-base-types/src/union.js +61 -0
- package/build/treb-base-types/src/union.js.map +1 -0
- package/build/treb-base-types/src/value-type.d.ts +86 -0
- package/build/treb-base-types/src/value-type.js +168 -0
- package/build/treb-base-types/src/value-type.js.map +1 -0
- package/build/treb-base-types/src/worker-proxy.d.ts +95 -0
- package/build/treb-base-types/src/worker-proxy.js +221 -0
- package/build/treb-base-types/src/worker-proxy.js.map +1 -0
- package/build/treb-calculator/src/calculator.d.ts +249 -0
- package/build/treb-calculator/src/calculator.js +2755 -0
- package/build/treb-calculator/src/calculator.js.map +1 -0
- package/build/treb-calculator/src/complex-math.d.ts +75 -0
- package/build/treb-calculator/src/complex-math.js +559 -0
- package/build/treb-calculator/src/complex-math.js.map +1 -0
- package/build/treb-calculator/src/dag/array-vertex.d.ts +71 -0
- package/build/treb-calculator/src/dag/array-vertex.js +156 -0
- package/build/treb-calculator/src/dag/array-vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.d.ts +48 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.js +84 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/graph.d.ts +134 -0
- package/build/treb-calculator/src/dag/graph.js +842 -0
- package/build/treb-calculator/src/dag/graph.js.map +1 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.d.ts +58 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.js +232 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.d.ts +20 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.js +25 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.js.map +1 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.d.ts +43 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.js +81 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/vertex.d.ts +71 -0
- package/build/treb-calculator/src/dag/vertex.js +274 -0
- package/build/treb-calculator/src/dag/vertex.js.map +1 -0
- package/build/treb-calculator/src/descriptors.d.ts +189 -0
- package/build/treb-calculator/src/descriptors.js +22 -0
- package/build/treb-calculator/src/descriptors.js.map +1 -0
- package/build/treb-calculator/src/expression-calculator.d.ts +127 -0
- package/build/treb-calculator/src/expression-calculator.js +1033 -0
- package/build/treb-calculator/src/expression-calculator.js.map +1 -0
- package/build/treb-calculator/src/function-error.d.ts +35 -0
- package/build/treb-calculator/src/function-error.js +85 -0
- package/build/treb-calculator/src/function-error.js.map +1 -0
- package/build/treb-calculator/src/function-library.d.ts +22 -0
- package/build/treb-calculator/src/function-library.js +96 -0
- package/build/treb-calculator/src/function-library.js.map +1 -0
- package/build/treb-calculator/src/functions/base-functions.d.ts +7 -0
- package/build/treb-calculator/src/functions/base-functions.js +2611 -0
- package/build/treb-calculator/src/functions/base-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/beta.d.ts +17 -0
- package/build/treb-calculator/src/functions/beta.js +201 -0
- package/build/treb-calculator/src/functions/beta.js.map +1 -0
- package/build/treb-calculator/src/functions/checkbox.d.ts +3 -0
- package/build/treb-calculator/src/functions/checkbox.js +128 -0
- package/build/treb-calculator/src/functions/checkbox.js.map +1 -0
- package/build/treb-calculator/src/functions/complex-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/complex-functions.js +217 -0
- package/build/treb-calculator/src/functions/complex-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/date-utils.d.ts +3 -0
- package/build/treb-calculator/src/functions/date-utils.js +59 -0
- package/build/treb-calculator/src/functions/date-utils.js.map +1 -0
- package/build/treb-calculator/src/functions/finance-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/finance-functions.js +547 -0
- package/build/treb-calculator/src/functions/finance-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/fp.d.ts +2 -0
- package/build/treb-calculator/src/functions/fp.js +463 -0
- package/build/treb-calculator/src/functions/fp.js.map +1 -0
- package/build/treb-calculator/src/functions/function-utilities.d.ts +2 -0
- package/build/treb-calculator/src/functions/function-utilities.js +36 -0
- package/build/treb-calculator/src/functions/function-utilities.js.map +1 -0
- package/build/treb-calculator/src/functions/gamma.d.ts +20 -0
- package/build/treb-calculator/src/functions/gamma.js +142 -0
- package/build/treb-calculator/src/functions/gamma.js.map +1 -0
- package/build/treb-calculator/src/functions/information-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/information-functions.js +71 -0
- package/build/treb-calculator/src/functions/information-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/lambda-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/lambda-functions.js +85 -0
- package/build/treb-calculator/src/functions/lambda-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/matrix-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/matrix-functions.js +144 -0
- package/build/treb-calculator/src/functions/matrix-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/normal.d.ts +2 -0
- package/build/treb-calculator/src/functions/normal.js +32 -0
- package/build/treb-calculator/src/functions/normal.js.map +1 -0
- package/build/treb-calculator/src/functions/regex-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/regex-functions.js +188 -0
- package/build/treb-calculator/src/functions/regex-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/sparkline.d.ts +37 -0
- package/build/treb-calculator/src/functions/sparkline.js +264 -0
- package/build/treb-calculator/src/functions/sparkline.js.map +1 -0
- package/build/treb-calculator/src/functions/statistics-functions.d.ts +6 -0
- package/build/treb-calculator/src/functions/statistics-functions.js +989 -0
- package/build/treb-calculator/src/functions/statistics-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/students-t.d.ts +3 -0
- package/build/treb-calculator/src/functions/students-t.js +64 -0
- package/build/treb-calculator/src/functions/students-t.js.map +1 -0
- package/build/treb-calculator/src/functions/text-functions.d.ts +3 -0
- package/build/treb-calculator/src/functions/text-functions.js +320 -0
- package/build/treb-calculator/src/functions/text-functions.js.map +1 -0
- package/build/treb-calculator/src/index.d.ts +2 -0
- package/build/treb-calculator/src/index.js +22 -0
- package/build/treb-calculator/src/index.js.map +1 -0
- package/build/treb-calculator/src/notifier-types.d.ts +26 -0
- package/build/treb-calculator/src/notifier-types.js +22 -0
- package/build/treb-calculator/src/notifier-types.js.map +1 -0
- package/build/treb-calculator/src/primitives.d.ts +15 -0
- package/build/treb-calculator/src/primitives.js +398 -0
- package/build/treb-calculator/src/primitives.js.map +1 -0
- package/build/treb-calculator/src/utilities.d.ts +68 -0
- package/build/treb-calculator/src/utilities.js +324 -0
- package/build/treb-calculator/src/utilities.js.map +1 -0
- package/build/treb-charts/src/chart-functions.d.ts +8 -0
- package/build/treb-charts/src/chart-functions.js +209 -0
- package/build/treb-charts/src/chart-functions.js.map +1 -0
- package/build/treb-charts/src/chart-types.d.ts +233 -0
- package/build/treb-charts/src/chart-types.js +57 -0
- package/build/treb-charts/src/chart-types.js.map +1 -0
- package/build/treb-charts/src/chart-utils.d.ts +106 -0
- package/build/treb-charts/src/chart-utils.js +1060 -0
- package/build/treb-charts/src/chart-utils.js.map +1 -0
- package/build/treb-charts/src/chart.d.ts +23 -0
- package/build/treb-charts/src/chart.js +94 -0
- package/build/treb-charts/src/chart.js.map +1 -0
- package/build/treb-charts/src/default-chart-renderer.d.ts +16 -0
- package/build/treb-charts/src/default-chart-renderer.js +533 -0
- package/build/treb-charts/src/default-chart-renderer.js.map +1 -0
- package/build/treb-charts/src/index.d.ts +5 -0
- package/build/treb-charts/src/index.js +24 -0
- package/build/treb-charts/src/index.js.map +1 -0
- package/build/treb-charts/src/main.d.ts +1 -0
- package/build/treb-charts/src/main.js +34 -0
- package/build/treb-charts/src/main.js.map +1 -0
- package/build/treb-charts/src/quicksort.d.ts +1 -0
- package/build/treb-charts/src/quicksort.js +49 -0
- package/build/treb-charts/src/quicksort.js.map +1 -0
- package/build/treb-charts/src/rectangle.d.ts +18 -0
- package/build/treb-charts/src/rectangle.js +41 -0
- package/build/treb-charts/src/rectangle.js.map +1 -0
- package/build/treb-charts/src/renderer-type.d.ts +24 -0
- package/build/treb-charts/src/renderer-type.js +22 -0
- package/build/treb-charts/src/renderer-type.js.map +1 -0
- package/build/treb-charts/src/renderer.d.ts +127 -0
- package/build/treb-charts/src/renderer.js +1518 -0
- package/build/treb-charts/src/renderer.js.map +1 -0
- package/build/treb-charts/src/util.d.ts +18 -0
- package/build/treb-charts/src/util.js +71 -0
- package/build/treb-charts/src/util.js.map +1 -0
- package/build/treb-data-model/src/annotation.d.ts +167 -0
- package/build/treb-data-model/src/annotation.js +120 -0
- package/build/treb-data-model/src/annotation.js.map +1 -0
- package/build/treb-data-model/src/conditional_format.d.ts +155 -0
- package/build/treb-data-model/src/conditional_format.js +62 -0
- package/build/treb-data-model/src/conditional_format.js.map +1 -0
- package/build/treb-data-model/src/data-validation.d.ts +28 -0
- package/build/treb-data-model/src/data-validation.js +22 -0
- package/build/treb-data-model/src/data-validation.js.map +1 -0
- package/build/treb-data-model/src/data_model.d.ts +173 -0
- package/build/treb-data-model/src/data_model.js +637 -0
- package/build/treb-data-model/src/data_model.js.map +1 -0
- package/build/treb-data-model/src/index.d.ts +13 -0
- package/build/treb-data-model/src/index.js +28 -0
- package/build/treb-data-model/src/index.js.map +1 -0
- package/build/treb-data-model/src/language-model.d.ts +22 -0
- package/build/treb-data-model/src/language-model.js +22 -0
- package/build/treb-data-model/src/language-model.js.map +1 -0
- package/build/treb-data-model/src/named.d.ts +124 -0
- package/build/treb-data-model/src/named.js +372 -0
- package/build/treb-data-model/src/named.js.map +1 -0
- package/build/treb-data-model/src/serialize_options.d.ts +49 -0
- package/build/treb-data-model/src/serialize_options.js +22 -0
- package/build/treb-data-model/src/serialize_options.js.map +1 -0
- package/build/treb-data-model/src/sheet.d.ts +499 -0
- package/build/treb-data-model/src/sheet.js +2904 -0
- package/build/treb-data-model/src/sheet.js.map +1 -0
- package/build/treb-data-model/src/sheet_collection.d.ts +58 -0
- package/build/treb-data-model/src/sheet_collection.js +112 -0
- package/build/treb-data-model/src/sheet_collection.js.map +1 -0
- package/build/treb-data-model/src/sheet_selection.d.ts +42 -0
- package/build/treb-data-model/src/sheet_selection.js +39 -0
- package/build/treb-data-model/src/sheet_selection.js.map +1 -0
- package/build/treb-data-model/src/sheet_types.d.ts +104 -0
- package/build/treb-data-model/src/sheet_types.js +22 -0
- package/build/treb-data-model/src/sheet_types.js.map +1 -0
- package/build/treb-data-model/src/types.d.ts +59 -0
- package/build/treb-data-model/src/types.js +22 -0
- package/build/treb-data-model/src/types.js.map +1 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.d.ts +75 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.js +1144 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.js.map +1 -0
- package/build/treb-embed/src/custom-element/treb-global.d.ts +36 -0
- package/build/treb-embed/src/custom-element/treb-global.js +64 -0
- package/build/treb-embed/src/custom-element/treb-global.js.map +1 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.d.ts +1 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.js +61 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.js.map +1 -0
- package/build/treb-embed/src/embedded-spreadsheet.d.ts +1358 -0
- package/build/treb-embed/src/embedded-spreadsheet.js +5205 -0
- package/build/treb-embed/src/embedded-spreadsheet.js.map +1 -0
- package/build/treb-embed/src/index.d.ts +12 -0
- package/build/treb-embed/src/index.js +34 -0
- package/build/treb-embed/src/index.js.map +1 -0
- package/build/treb-embed/src/options.d.ts +266 -0
- package/build/treb-embed/src/options.js +56 -0
- package/build/treb-embed/src/options.js.map +1 -0
- package/build/treb-embed/src/plugin.d.ts +9 -0
- package/build/treb-embed/src/plugin.js +22 -0
- package/build/treb-embed/src/plugin.js.map +1 -0
- package/build/treb-embed/src/progress-dialog.d.ts +49 -0
- package/build/treb-embed/src/progress-dialog.js +178 -0
- package/build/treb-embed/src/progress-dialog.js.map +1 -0
- package/build/treb-embed/src/selection-state.d.ts +15 -0
- package/build/treb-embed/src/selection-state.js +22 -0
- package/build/treb-embed/src/selection-state.js.map +1 -0
- package/build/treb-embed/src/spinner.d.ts +8 -0
- package/build/treb-embed/src/spinner.js +40 -0
- package/build/treb-embed/src/spinner.js.map +1 -0
- package/build/treb-embed/src/toolbar-message.d.ts +72 -0
- package/build/treb-embed/src/toolbar-message.js +22 -0
- package/build/treb-embed/src/toolbar-message.js.map +1 -0
- package/build/treb-embed/src/types.d.ts +185 -0
- package/build/treb-embed/src/types.js +45 -0
- package/build/treb-embed/src/types.js.map +1 -0
- package/build/treb-embed/tsconfig.tsbuildinfo +1 -0
- package/build/treb-export/src/address-type.d.ts +34 -0
- package/build/treb-export/src/address-type.js +53 -0
- package/build/treb-export/src/address-type.js.map +1 -0
- package/build/treb-export/src/base-template.d.ts +1 -0
- package/build/treb-export/src/base-template.js +22 -0
- package/build/treb-export/src/base-template.js.map +1 -0
- package/build/treb-export/src/column-width.d.ts +2 -0
- package/build/treb-export/src/column-width.js +80 -0
- package/build/treb-export/src/column-width.js.map +1 -0
- package/build/treb-export/src/drawing/bubble-chart-template.d.ts +514 -0
- package/build/treb-export/src/drawing/bubble-chart-template.js +544 -0
- package/build/treb-export/src/drawing/bubble-chart-template.js.map +1 -0
- package/build/treb-export/src/drawing/chart-template-components2.d.ts +365 -0
- package/build/treb-export/src/drawing/chart-template-components2.js +386 -0
- package/build/treb-export/src/drawing/chart-template-components2.js.map +1 -0
- package/build/treb-export/src/drawing/chart.d.ts +26 -0
- package/build/treb-export/src/drawing/chart.js +247 -0
- package/build/treb-export/src/drawing/chart.js.map +1 -0
- package/build/treb-export/src/drawing/column-chart-template2.d.ts +490 -0
- package/build/treb-export/src/drawing/column-chart-template2.js +518 -0
- package/build/treb-export/src/drawing/column-chart-template2.js.map +1 -0
- package/build/treb-export/src/drawing/donut-chart-template2.d.ts +272 -0
- package/build/treb-export/src/drawing/donut-chart-template2.js +293 -0
- package/build/treb-export/src/drawing/donut-chart-template2.js.map +1 -0
- package/build/treb-export/src/drawing/drawing.d.ts +49 -0
- package/build/treb-export/src/drawing/drawing.js +193 -0
- package/build/treb-export/src/drawing/drawing.js.map +1 -0
- package/build/treb-export/src/drawing/embedded-image.d.ts +12 -0
- package/build/treb-export/src/drawing/embedded-image.js +54 -0
- package/build/treb-export/src/drawing/embedded-image.js.map +1 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.d.ts +520 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.js +551 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.js.map +1 -0
- package/build/treb-export/src/export.d.ts +72 -0
- package/build/treb-export/src/export.js +2039 -0
- package/build/treb-export/src/export.js.map +1 -0
- package/build/treb-export/src/import-export-messages.d.ts +31 -0
- package/build/treb-export/src/import-export-messages.js +22 -0
- package/build/treb-export/src/import-export-messages.js.map +1 -0
- package/build/treb-export/src/import.d.ts +33 -0
- package/build/treb-export/src/import.js +1258 -0
- package/build/treb-export/src/import.js.map +1 -0
- package/build/treb-export/src/index.worker.d.ts +1 -0
- package/build/treb-export/src/index.worker.js +93 -0
- package/build/treb-export/src/index.worker.js.map +1 -0
- package/build/treb-export/src/metadata.d.ts +51 -0
- package/build/treb-export/src/metadata.js +153 -0
- package/build/treb-export/src/metadata.js.map +1 -0
- package/build/treb-export/src/ooxml.d.ts +7 -0
- package/build/treb-export/src/ooxml.js +41 -0
- package/build/treb-export/src/ooxml.js.map +1 -0
- package/build/treb-export/src/relationship.d.ts +8 -0
- package/build/treb-export/src/relationship.js +27 -0
- package/build/treb-export/src/relationship.js.map +1 -0
- package/build/treb-export/src/shared-strings.d.ts +11 -0
- package/build/treb-export/src/shared-strings.js +105 -0
- package/build/treb-export/src/shared-strings.js.map +1 -0
- package/build/treb-export/src/template-2.d.ts +1 -0
- package/build/treb-export/src/template-2.js +22 -0
- package/build/treb-export/src/template-2.js.map +1 -0
- package/build/treb-export/src/unescape_xml.d.ts +1 -0
- package/build/treb-export/src/unescape_xml.js +61 -0
- package/build/treb-export/src/unescape_xml.js.map +1 -0
- package/build/treb-export/src/workbook-sheet.d.ts +75 -0
- package/build/treb-export/src/workbook-sheet.js +128 -0
- package/build/treb-export/src/workbook-sheet.js.map +1 -0
- package/build/treb-export/src/workbook-style.d.ts +110 -0
- package/build/treb-export/src/workbook-style.js +1134 -0
- package/build/treb-export/src/workbook-style.js.map +1 -0
- package/build/treb-export/src/workbook-theme.d.ts +13 -0
- package/build/treb-export/src/workbook-theme.js +85 -0
- package/build/treb-export/src/workbook-theme.js.map +1 -0
- package/build/treb-export/src/workbook.d.ts +123 -0
- package/build/treb-export/src/workbook.js +644 -0
- package/build/treb-export/src/workbook.js.map +1 -0
- package/build/treb-export/src/xml-test.d.ts +9 -0
- package/build/treb-export/src/xml-test.js +52 -0
- package/build/treb-export/src/xml-test.js.map +1 -0
- package/build/treb-export/src/xml-utils.d.ts +76 -0
- package/build/treb-export/src/xml-utils.js +223 -0
- package/build/treb-export/src/xml-utils.js.map +1 -0
- package/build/treb-export/src/zip-wrapper.d.ts +22 -0
- package/build/treb-export/src/zip-wrapper.js +93 -0
- package/build/treb-export/src/zip-wrapper.js.map +1 -0
- package/build/treb-format/src/format.d.ts +130 -0
- package/build/treb-format/src/format.js +805 -0
- package/build/treb-format/src/format.js.map +1 -0
- package/build/treb-format/src/format_cache.d.ts +55 -0
- package/build/treb-format/src/format_cache.js +166 -0
- package/build/treb-format/src/format_cache.js.map +1 -0
- package/build/treb-format/src/format_parser.d.ts +70 -0
- package/build/treb-format/src/format_parser.js +618 -0
- package/build/treb-format/src/format_parser.js.map +1 -0
- package/build/treb-format/src/index.d.ts +4 -0
- package/build/treb-format/src/index.js +25 -0
- package/build/treb-format/src/index.js.map +1 -0
- package/build/treb-format/src/number_format_section.d.ts +58 -0
- package/build/treb-format/src/number_format_section.js +78 -0
- package/build/treb-format/src/number_format_section.js.map +1 -0
- package/build/treb-format/src/value_parser.d.ts +48 -0
- package/build/treb-format/src/value_parser.js +244 -0
- package/build/treb-format/src/value_parser.js.map +1 -0
- package/build/treb-grid/src/editors/autocomplete.d.ts +39 -0
- package/build/treb-grid/src/editors/autocomplete.js +316 -0
- package/build/treb-grid/src/editors/autocomplete.js.map +1 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.d.ts +74 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.js +212 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.js.map +1 -0
- package/build/treb-grid/src/editors/editor.d.ts +214 -0
- package/build/treb-grid/src/editors/editor.js +879 -0
- package/build/treb-grid/src/editors/editor.js.map +1 -0
- package/build/treb-grid/src/editors/external_editor.d.ts +11 -0
- package/build/treb-grid/src/editors/external_editor.js +118 -0
- package/build/treb-grid/src/editors/external_editor.js.map +1 -0
- package/build/treb-grid/src/editors/formula_bar.d.ts +85 -0
- package/build/treb-grid/src/editors/formula_bar.js +444 -0
- package/build/treb-grid/src/editors/formula_bar.js.map +1 -0
- package/build/treb-grid/src/editors/overlay_editor.d.ts +85 -0
- package/build/treb-grid/src/editors/overlay_editor.js +353 -0
- package/build/treb-grid/src/editors/overlay_editor.js.map +1 -0
- package/build/treb-grid/src/index.d.ts +12 -0
- package/build/treb-grid/src/index.js +28 -0
- package/build/treb-grid/src/index.js.map +1 -0
- package/build/treb-grid/src/layout/base_layout.d.ts +346 -0
- package/build/treb-grid/src/layout/base_layout.js +2050 -0
- package/build/treb-grid/src/layout/base_layout.js.map +1 -0
- package/build/treb-grid/src/layout/grid_layout.d.ts +19 -0
- package/build/treb-grid/src/layout/grid_layout.js +235 -0
- package/build/treb-grid/src/layout/grid_layout.js.map +1 -0
- package/build/treb-grid/src/layout/mock-layout.d.ts +10 -0
- package/build/treb-grid/src/layout/mock-layout.js +37 -0
- package/build/treb-grid/src/layout/mock-layout.js.map +1 -0
- package/build/treb-grid/src/render/selection-renderer.d.ts +97 -0
- package/build/treb-grid/src/render/selection-renderer.js +315 -0
- package/build/treb-grid/src/render/selection-renderer.js.map +1 -0
- package/build/treb-grid/src/render/svg_header_overlay.d.ts +20 -0
- package/build/treb-grid/src/render/svg_header_overlay.js +76 -0
- package/build/treb-grid/src/render/svg_header_overlay.js.map +1 -0
- package/build/treb-grid/src/render/svg_selection_block.d.ts +27 -0
- package/build/treb-grid/src/render/svg_selection_block.js +106 -0
- package/build/treb-grid/src/render/svg_selection_block.js.map +1 -0
- package/build/treb-grid/src/render/tile_renderer.d.ts +121 -0
- package/build/treb-grid/src/render/tile_renderer.js +1609 -0
- package/build/treb-grid/src/render/tile_renderer.js.map +1 -0
- package/build/treb-grid/src/types/border_constants.d.ts +9 -0
- package/build/treb-grid/src/types/border_constants.js +34 -0
- package/build/treb-grid/src/types/border_constants.js.map +1 -0
- package/build/treb-grid/src/types/clipboard_data.d.ts +11 -0
- package/build/treb-grid/src/types/clipboard_data.js +22 -0
- package/build/treb-grid/src/types/clipboard_data.js.map +1 -0
- package/build/treb-grid/src/types/clipboard_data2.d.ts +46 -0
- package/build/treb-grid/src/types/clipboard_data2.js +22 -0
- package/build/treb-grid/src/types/clipboard_data2.js.map +1 -0
- package/build/treb-grid/src/types/drag_mask.d.ts +10 -0
- package/build/treb-grid/src/types/drag_mask.js +78 -0
- package/build/treb-grid/src/types/drag_mask.js.map +1 -0
- package/build/treb-grid/src/types/external_editor_config.d.ts +33 -0
- package/build/treb-grid/src/types/external_editor_config.js +22 -0
- package/build/treb-grid/src/types/external_editor_config.js.map +1 -0
- package/build/treb-grid/src/types/grid.d.ts +806 -0
- package/build/treb-grid/src/types/grid.js +6410 -0
- package/build/treb-grid/src/types/grid.js.map +1 -0
- package/build/treb-grid/src/types/grid_base.d.ts +442 -0
- package/build/treb-grid/src/types/grid_base.js +3523 -0
- package/build/treb-grid/src/types/grid_base.js.map +1 -0
- package/build/treb-grid/src/types/grid_command.d.ts +408 -0
- package/build/treb-grid/src/types/grid_command.js +75 -0
- package/build/treb-grid/src/types/grid_command.js.map +1 -0
- package/build/treb-grid/src/types/grid_events.d.ts +93 -0
- package/build/treb-grid/src/types/grid_events.js +36 -0
- package/build/treb-grid/src/types/grid_events.js.map +1 -0
- package/build/treb-grid/src/types/grid_options.d.ts +50 -0
- package/build/treb-grid/src/types/grid_options.js +34 -0
- package/build/treb-grid/src/types/grid_options.js.map +1 -0
- package/build/treb-grid/src/types/scale-control.d.ts +21 -0
- package/build/treb-grid/src/types/scale-control.js +148 -0
- package/build/treb-grid/src/types/scale-control.js.map +1 -0
- package/build/treb-grid/src/types/set_range_options.d.ts +24 -0
- package/build/treb-grid/src/types/set_range_options.js +22 -0
- package/build/treb-grid/src/types/set_range_options.js.map +1 -0
- package/build/treb-grid/src/types/tab_bar.d.ts +84 -0
- package/build/treb-grid/src/types/tab_bar.js +426 -0
- package/build/treb-grid/src/types/tab_bar.js.map +1 -0
- package/build/treb-grid/src/types/tile.d.ts +29 -0
- package/build/treb-grid/src/types/tile.js +22 -0
- package/build/treb-grid/src/types/tile.js.map +1 -0
- package/build/treb-grid/src/types/update_flags.d.ts +48 -0
- package/build/treb-grid/src/types/update_flags.js +22 -0
- package/build/treb-grid/src/types/update_flags.js.map +1 -0
- package/build/treb-grid/src/util/fontmetrics.d.ts +21 -0
- package/build/treb-grid/src/util/fontmetrics.js +82 -0
- package/build/treb-grid/src/util/fontmetrics.js.map +1 -0
- package/build/treb-grid/src/util/ua.d.ts +33 -0
- package/build/treb-grid/src/util/ua.js +86 -0
- package/build/treb-grid/src/util/ua.js.map +1 -0
- package/build/treb-parser/src/csv-parser.d.ts +13 -0
- package/build/treb-parser/src/csv-parser.js +107 -0
- package/build/treb-parser/src/csv-parser.js.map +1 -0
- package/build/treb-parser/src/index.d.ts +4 -0
- package/build/treb-parser/src/index.js +25 -0
- package/build/treb-parser/src/index.js.map +1 -0
- package/build/treb-parser/src/md-parser.d.ts +97 -0
- package/build/treb-parser/src/md-parser.js +403 -0
- package/build/treb-parser/src/md-parser.js.map +1 -0
- package/build/treb-parser/src/parser-types.d.ts +345 -0
- package/build/treb-parser/src/parser-types.js +53 -0
- package/build/treb-parser/src/parser-types.js.map +1 -0
- package/build/treb-parser/src/parser.d.ts +422 -0
- package/build/treb-parser/src/parser.js +2418 -0
- package/build/treb-parser/src/parser.js.map +1 -0
- package/build/treb-utils/src/event_source.d.ts +34 -0
- package/build/treb-utils/src/event_source.js +110 -0
- package/build/treb-utils/src/event_source.js.map +1 -0
- package/build/treb-utils/src/ievent_source.d.ts +9 -0
- package/build/treb-utils/src/ievent_source.js +22 -0
- package/build/treb-utils/src/ievent_source.js.map +1 -0
- package/build/treb-utils/src/index.d.ts +6 -0
- package/build/treb-utils/src/index.js +30 -0
- package/build/treb-utils/src/index.js.map +1 -0
- package/build/treb-utils/src/measurement.d.ts +42 -0
- package/build/treb-utils/src/measurement.js +145 -0
- package/build/treb-utils/src/measurement.js.map +1 -0
- package/build/treb-utils/src/scale.d.ts +16 -0
- package/build/treb-utils/src/scale.js +106 -0
- package/build/treb-utils/src/scale.js.map +1 -0
- package/build/treb-utils/src/serialize_html.d.ts +5 -0
- package/build/treb-utils/src/serialize_html.js +128 -0
- package/build/treb-utils/src/serialize_html.js.map +1 -0
- package/build/treb-utils/src/validate_uri.d.ts +20 -0
- package/build/treb-utils/src/validate_uri.js +55 -0
- package/build/treb-utils/src/validate_uri.js.map +1 -0
- package/dist/{chunk-XD5PEZBZ.mjs → chunk-E35ONJUS.mjs} +1 -1
- package/dist/treb-export-worker.mjs +2 -2
- package/dist/treb-spreadsheet.mjs +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
import { Cells, type CellStyle, type Color, Area, DOMContext } from 'treb-base-types';
|
|
2
|
+
import type { TextPart, Cell, ICellAddress, CellValue, ImportedSheetData, IArea, Table, TableTheme, Theme } from 'treb-base-types';
|
|
3
|
+
import type { FreezePane, SerializedSheet, ScrollOffset } from './sheet_types';
|
|
4
|
+
import type { SerializeOptions } from './serialize_options';
|
|
5
|
+
import type { GridSelection } from './sheet_selection';
|
|
6
|
+
import { Annotation } from './annotation';
|
|
7
|
+
import type { ConditionalFormatList } from './conditional_format';
|
|
8
|
+
import type { DataValidation } from './data-validation';
|
|
9
|
+
export declare class Sheet {
|
|
10
|
+
static base_id: number;
|
|
11
|
+
static readonly default_sheet_name = "Sheet1";
|
|
12
|
+
/**
|
|
13
|
+
* adding verbose flag so we can figure out who is publishing
|
|
14
|
+
* (and stop -- part of the ExecCommand switchover)
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* in the old model, we had a concept of "default" style properties. we then
|
|
18
|
+
* used that object for theming: we would set default properties when the theme
|
|
19
|
+
* changed.
|
|
20
|
+
*
|
|
21
|
+
* the problem is that if there are multiple instances on a single page, with
|
|
22
|
+
* different themes, they would clash.
|
|
23
|
+
*
|
|
24
|
+
* so the new concept is to have a default property set per instance, managed
|
|
25
|
+
* by the grid instance. any sheets that are loaded in/created by grid will
|
|
26
|
+
* get a reference to that property set, and grid can update it as desired.
|
|
27
|
+
*
|
|
28
|
+
* because it's a reference, it should be constant.
|
|
29
|
+
* FIXME: move to model...
|
|
30
|
+
*/
|
|
31
|
+
readonly default_style_properties: CellStyle;
|
|
32
|
+
annotations: Annotation[];
|
|
33
|
+
freeze: FreezePane;
|
|
34
|
+
/** testing */
|
|
35
|
+
visible: boolean;
|
|
36
|
+
/** standard width (FIXME: static?) */
|
|
37
|
+
default_column_width: number;
|
|
38
|
+
/** standard height (FIXME: static?) */
|
|
39
|
+
default_row_height: number;
|
|
40
|
+
/** cells data */
|
|
41
|
+
readonly cells: Cells;
|
|
42
|
+
/**
|
|
43
|
+
* selection. moved to sheet to preserve selections in multiple sheets.
|
|
44
|
+
* this instance should just be used to populate the actual selection,
|
|
45
|
+
* not used as a reference.
|
|
46
|
+
*/
|
|
47
|
+
selection: GridSelection;
|
|
48
|
+
/**
|
|
49
|
+
* cache scroll offset for flipping between sheets. should this be
|
|
50
|
+
* persisted? (...)
|
|
51
|
+
*/
|
|
52
|
+
scroll_offset: ScrollOffset;
|
|
53
|
+
/**
|
|
54
|
+
* named ranges: name -> area
|
|
55
|
+
* FIXME: this needs to move to an outer container, otherwise we
|
|
56
|
+
* may get conflicts w/ multiple sheets. unless we want to allow that...
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
tab_color?: Color;
|
|
60
|
+
background_image?: string;
|
|
61
|
+
protected _image: HTMLImageElement | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* set this flag when we need to update conditional formats even
|
|
64
|
+
* if they are not dirty (generally when one is deleted)
|
|
65
|
+
*/
|
|
66
|
+
flush_conditional_formats: boolean;
|
|
67
|
+
get image(): HTMLImageElement | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
conditional_formats: ConditionalFormatList;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
data_validation: DataValidation[];
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*
|
|
79
|
+
* testing, not serialized atm
|
|
80
|
+
*/
|
|
81
|
+
outline: number[] | undefined;
|
|
82
|
+
/** internal ID */
|
|
83
|
+
private id_;
|
|
84
|
+
private row_height_map;
|
|
85
|
+
private column_width_;
|
|
86
|
+
/**
|
|
87
|
+
* optionally, custom row headers (instead of 1...2...3...)
|
|
88
|
+
* FIXME: should maybe be a function instead?
|
|
89
|
+
* FIXME: why is this any type? just sloppiness?
|
|
90
|
+
*/
|
|
91
|
+
private row_headers;
|
|
92
|
+
/**
|
|
93
|
+
* optionally, custom column headers (instead of A...B...C...)
|
|
94
|
+
* FIXME: should maybe be a function instead?
|
|
95
|
+
* FIXME: why is this any type? just sloppiness?
|
|
96
|
+
*/
|
|
97
|
+
private column_headers;
|
|
98
|
+
/** size of header */
|
|
99
|
+
private row_header_width;
|
|
100
|
+
/** size of header */
|
|
101
|
+
private column_header_height;
|
|
102
|
+
private style_map;
|
|
103
|
+
private style_json_map;
|
|
104
|
+
private sheet_style;
|
|
105
|
+
private row_styles;
|
|
106
|
+
private column_styles;
|
|
107
|
+
private row_pattern;
|
|
108
|
+
private cell_style;
|
|
109
|
+
/**
|
|
110
|
+
* applied conditional formats are stored them in this array;
|
|
111
|
+
* they will be stacked on top of cell style when rendering.
|
|
112
|
+
* conditional formats have top priority. [FIXME: what about tables?]
|
|
113
|
+
*/
|
|
114
|
+
private conditional_format_cache;
|
|
115
|
+
/**
|
|
116
|
+
* this is a list of cells we formatted on the last pass, so we can
|
|
117
|
+
* compare when applying conditional formats .
|
|
118
|
+
*
|
|
119
|
+
* update: using areas
|
|
120
|
+
*/
|
|
121
|
+
private conditional_format_checklist;
|
|
122
|
+
get header_offset(): {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
};
|
|
126
|
+
/** accessor: now just a wrapper for the call on cells */
|
|
127
|
+
get rows(): number;
|
|
128
|
+
/** accessor: now just a wrapper for the call on cells */
|
|
129
|
+
get columns(): number;
|
|
130
|
+
get id(): number;
|
|
131
|
+
set id(id: number);
|
|
132
|
+
/**
|
|
133
|
+
* constructor is now protected. use a factory method (Blank or FromJSON).
|
|
134
|
+
*/
|
|
135
|
+
protected constructor(theme_style_properties: CellStyle);
|
|
136
|
+
static Reset(): void;
|
|
137
|
+
/**
|
|
138
|
+
* factory method creates a new sheet
|
|
139
|
+
*/
|
|
140
|
+
static Blank(style_defaults: CellStyle, name?: string, rows?: number, columns?: number, theme?: Theme): Sheet;
|
|
141
|
+
/**
|
|
142
|
+
* update old-style alignment constants to the new symbolic values.
|
|
143
|
+
* updates in place.
|
|
144
|
+
*/
|
|
145
|
+
static UpdateStyle(properties: CellStyle): void;
|
|
146
|
+
/**
|
|
147
|
+
* deserialize json representation. returns new instance or updates
|
|
148
|
+
* passed instance.
|
|
149
|
+
*
|
|
150
|
+
* FIXME: why not make this an instance method, always call on new instance?
|
|
151
|
+
*
|
|
152
|
+
* @param hints UpdateHints supports partial deserialization/replacement
|
|
153
|
+
* if we know there are only minor changes (as part of undo/redo, probably)
|
|
154
|
+
*/
|
|
155
|
+
static FromJSON(json: string | Partial<SerializedSheet>, style_defaults: CellStyle, sheet?: Sheet): Sheet;
|
|
156
|
+
/** add a data validation. */
|
|
157
|
+
AddValidation(validation: DataValidation): void;
|
|
158
|
+
/**
|
|
159
|
+
* remove validations from area. must be an exact match (FIXME).
|
|
160
|
+
* if there are multiple areas, only remove the matching area.
|
|
161
|
+
*/
|
|
162
|
+
RemoveValidations(area: IArea): void;
|
|
163
|
+
/** return data validation(s) that apply to a given address */
|
|
164
|
+
GetValidation(address: ICellAddress): DataValidation[];
|
|
165
|
+
Activate(DOM: DOMContext): void;
|
|
166
|
+
MergeCells(area: Area): void;
|
|
167
|
+
UnmergeCells(area: Area): void;
|
|
168
|
+
/**
|
|
169
|
+
* FIXME: this is called in the ctor, which made sense when sheets
|
|
170
|
+
* were more ephemeral. now that we update a single instance, rather
|
|
171
|
+
* than create new instances, we lose this behavior. we should call
|
|
172
|
+
* this when we change sheet style.
|
|
173
|
+
*
|
|
174
|
+
* actually this should just move to theme, no? as long as sheet has
|
|
175
|
+
* a reference to theme. for headless instances that would just use
|
|
176
|
+
* theme defaults, which should be appropriate.
|
|
177
|
+
*
|
|
178
|
+
* I guess the original idea was that sheet style might be used to
|
|
179
|
+
* base row height on sheet font size? not sure if that's how it actually
|
|
180
|
+
* plays out, since this is only called in the ctor (or equivalent) or when
|
|
181
|
+
* theme is updated (but not when sheet style is updated). might need some
|
|
182
|
+
* thought.
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
UpdateDefaultRowHeight(theme: Theme, scale?: number): void;
|
|
186
|
+
/**
|
|
187
|
+
* deprecated (or give me a reason to keep it)
|
|
188
|
+
* KEEP IT: just maintain flexibility, it has very low cost
|
|
189
|
+
*/
|
|
190
|
+
SetRowHeaders(headers: CellValue[]): void;
|
|
191
|
+
/**
|
|
192
|
+
* deprecated (or give me a reason to keep it)
|
|
193
|
+
* KEEP IT: just maintain flexibility, it has very low cost
|
|
194
|
+
*/
|
|
195
|
+
SetColumnHeaders(headers: CellValue[]): void;
|
|
196
|
+
/**
|
|
197
|
+
* deprecated
|
|
198
|
+
* KEEP IT: just maintain flexibility, it has very low cost
|
|
199
|
+
*/
|
|
200
|
+
RowHeader(row: number): string | number;
|
|
201
|
+
/**
|
|
202
|
+
* deprecated
|
|
203
|
+
* KEEP IT: just maintain flexibility, it has very low cost
|
|
204
|
+
* (we did drop the multiple rows, though)
|
|
205
|
+
*/
|
|
206
|
+
ColumnHeader(column: number): string;
|
|
207
|
+
GetRowHeight(row: number): number;
|
|
208
|
+
SetRowHeight(row: number, height: number): number;
|
|
209
|
+
GetColumnWidth(column: number): number;
|
|
210
|
+
SetColumnWidth(column: number, width: number): number;
|
|
211
|
+
/**
|
|
212
|
+
* returns set of properties in B that differ from A. returns
|
|
213
|
+
* property values from B.
|
|
214
|
+
*
|
|
215
|
+
* this is the function I could never get to work inline for
|
|
216
|
+
* CellStyle -- not sure why it works better with a generic
|
|
217
|
+
* function (although the partial here is new, so maybe it's that?)
|
|
218
|
+
*
|
|
219
|
+
* seems to be related to
|
|
220
|
+
* https://github.com/microsoft/TypeScript/pull/30769
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
Delta<T extends object>(A: T, B: T): Partial<T>;
|
|
224
|
+
/**
|
|
225
|
+
* updates cell styles. flushes cached style.
|
|
226
|
+
*
|
|
227
|
+
* @param delta merge with existing properties (we will win conflicts)
|
|
228
|
+
* @param inline this is part of another operation, don't do any undo/state updates
|
|
229
|
+
*/
|
|
230
|
+
UpdateCellStyle(address: ICellAddress, properties: CellStyle, delta?: boolean): void;
|
|
231
|
+
/**
|
|
232
|
+
* invalidate sets the "render dirty" flag on cells, whether there
|
|
233
|
+
* is any change or not. we are currently using it to force rendering
|
|
234
|
+
* when border/background changes, and we need to handle bleed into
|
|
235
|
+
* neighboring cells.
|
|
236
|
+
*/
|
|
237
|
+
Invalidate(area: Area): void;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @param area
|
|
241
|
+
* @param style
|
|
242
|
+
* @param delta
|
|
243
|
+
* @param render LEGACY PARAMETER NOT USED
|
|
244
|
+
*/
|
|
245
|
+
UpdateAreaStyle(area?: Area, style?: CellStyle, delta?: boolean): void;
|
|
246
|
+
/**
|
|
247
|
+
* checks if the given cell has been assigned a specific style, either for
|
|
248
|
+
* the cell itself, or for row and column.
|
|
249
|
+
*/
|
|
250
|
+
HasCellStyle(address: ICellAddress): boolean;
|
|
251
|
+
/**
|
|
252
|
+
* returns the next non-hidden column. so if you are column C (2) and columns
|
|
253
|
+
* D, E, and F are hidden, then it will return 6 (G).
|
|
254
|
+
*/
|
|
255
|
+
NextVisibleColumn(column: number): number;
|
|
256
|
+
/**
|
|
257
|
+
* @see NextVisibleColumn
|
|
258
|
+
* because this one goes left, it may return -1 meaning you are at the left edge
|
|
259
|
+
*/
|
|
260
|
+
PreviousVisibleColumn(column: number): number;
|
|
261
|
+
/**
|
|
262
|
+
* @see NextVisibleColumn
|
|
263
|
+
*/
|
|
264
|
+
NextVisibleRow(row: number): number;
|
|
265
|
+
/**
|
|
266
|
+
* @see PreviousVisibleColumn
|
|
267
|
+
*/
|
|
268
|
+
PreviousVisibleRow(row: number): number;
|
|
269
|
+
/**
|
|
270
|
+
* if this cell is part of a table, get row information -- is this
|
|
271
|
+
* an alternate row, is it the header, is it the last (visible) row
|
|
272
|
+
*
|
|
273
|
+
* @param table
|
|
274
|
+
* @param row
|
|
275
|
+
* @returns
|
|
276
|
+
*/
|
|
277
|
+
TableRow(table: Table, row: number): {
|
|
278
|
+
alternate?: boolean;
|
|
279
|
+
header?: boolean;
|
|
280
|
+
last?: boolean;
|
|
281
|
+
totals?: boolean;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* returns style properties for cells surrounding this cell,
|
|
285
|
+
* mapped like a number pad:
|
|
286
|
+
*
|
|
287
|
+
* +---+---+---+
|
|
288
|
+
* | 7 | 8 | 9 |
|
|
289
|
+
* +---+---+---+
|
|
290
|
+
* | 4 | X | 6 |
|
|
291
|
+
* +---+---+---+
|
|
292
|
+
* | 1 | 2 | 3 |
|
|
293
|
+
* +---+---+---+
|
|
294
|
+
*
|
|
295
|
+
* presuming you already have X (5). this is called by renderer, we
|
|
296
|
+
* move it here so we can inline the next/previous loops.
|
|
297
|
+
*
|
|
298
|
+
*/
|
|
299
|
+
SurroundingStyle(address: ICellAddress, table?: TableTheme): CellStyle[];
|
|
300
|
+
/**
|
|
301
|
+
* get style only. as noted in the comment to `CellData` there used to be
|
|
302
|
+
* no case where this was useful without calculated value as well; but we
|
|
303
|
+
* now have a case: fixing borders by checking neighboring cells. (testing).
|
|
304
|
+
*
|
|
305
|
+
* switching from null to undefined as "missing" type
|
|
306
|
+
*
|
|
307
|
+
* UPDATE: this is a convenient place to do table formatting. table
|
|
308
|
+
* formatting is complicated because it's variable; it depends on row
|
|
309
|
+
* visibility so we can't cache it. this is a good spot because we're
|
|
310
|
+
* already calling this function when doing border rendering; we can call
|
|
311
|
+
* it separately, if necessary, when rendering cells.
|
|
312
|
+
*
|
|
313
|
+
* table formats are applied on top of cell formats, after compositing,
|
|
314
|
+
* and we don't preserve the style.
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
CellStyleData(address: ICellAddress, default_table_theme?: TableTheme): CellStyle | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* accessor to get cell style without row pattern -- for cut/copy
|
|
320
|
+
* @param address
|
|
321
|
+
*/
|
|
322
|
+
GetCopyStyle(address: ICellAddress): CellStyle;
|
|
323
|
+
/**
|
|
324
|
+
* wrapper for getting all relevant render data.
|
|
325
|
+
* TODO: merge in "FormattedValue". restructure data so we don't have
|
|
326
|
+
* two caches (formatted and calculated).
|
|
327
|
+
*
|
|
328
|
+
* NOTE: we removed "GetCellStyle" in favor of this function. the rationale
|
|
329
|
+
* is that there are no reasonable cases where someone looks up the style
|
|
330
|
+
* without that being a next step to (or in reasonable proximity to)
|
|
331
|
+
* rendering. so it's reasonable to call this function even if it's in
|
|
332
|
+
* advance of rendering.
|
|
333
|
+
*
|
|
334
|
+
* NOTE: that applies to the "GetCellFormula" and "GetCellValue" functions
|
|
335
|
+
* as well -- so remove those too.
|
|
336
|
+
*
|
|
337
|
+
* NOTE: actually GetCellFormula resolves array formulae, so maybe not --
|
|
338
|
+
* or the caller needs to check.
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
CellData(address: ICellAddress): Cell;
|
|
342
|
+
/**
|
|
343
|
+
* format number using passed format; gets the actual format object
|
|
344
|
+
* and calls method. returns a string or array of text parts
|
|
345
|
+
* (@see treb-format).
|
|
346
|
+
*/
|
|
347
|
+
FormatNumber(value: CellValue, format?: string): string | TextPart[];
|
|
348
|
+
/**
|
|
349
|
+
* the only place this is called is in a method that shows/hides headers;
|
|
350
|
+
* it sets the size either to 1 (hidden) or undefined, which uses the
|
|
351
|
+
* defaults here. that suggests we should have a show/hide method instead.
|
|
352
|
+
*
|
|
353
|
+
* @param row_header_width
|
|
354
|
+
* @param column_header_height
|
|
355
|
+
*/
|
|
356
|
+
SetHeaderSize(row_header_width?: number, column_header_height?: number): void;
|
|
357
|
+
/** returns the style properties for a given style index */
|
|
358
|
+
GetStyle(index: number): CellStyle;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @param before_row insert before
|
|
362
|
+
* @param count number to insert
|
|
363
|
+
*/
|
|
364
|
+
InsertRows(before_row?: number, count?: number): boolean;
|
|
365
|
+
/**
|
|
366
|
+
* see InsertRow for details
|
|
367
|
+
*/
|
|
368
|
+
InsertColumns(before_column?: number, count?: number): boolean;
|
|
369
|
+
/** clear cells in area */
|
|
370
|
+
ClearArea(area: Area): void;
|
|
371
|
+
SetAreaValues2(area: Area, values: CellValue | CellValue[][]): void;
|
|
372
|
+
/**
|
|
373
|
+
* set the area as an array formula, based in the top-left cell
|
|
374
|
+
*/
|
|
375
|
+
SetArrayValue(area: Area, value: CellValue): void;
|
|
376
|
+
/**
|
|
377
|
+
* set a single value in a single cell
|
|
378
|
+
*/
|
|
379
|
+
SetCellValue(address: ICellAddress, value: CellValue): void;
|
|
380
|
+
/**
|
|
381
|
+
* FIXME: does not need to be in sheet
|
|
382
|
+
*
|
|
383
|
+
* @param headers_only - only return tables if the cell is in the
|
|
384
|
+
* header (first) row. useful if you only want to worry about headers.
|
|
385
|
+
*/
|
|
386
|
+
TablesFromArea(area: IArea | ICellAddress, headers_only?: boolean): Table[];
|
|
387
|
+
/**
|
|
388
|
+
* returns the area bounding actual content
|
|
389
|
+
* (i.e. flattening "entire row/column/sheet")
|
|
390
|
+
*
|
|
391
|
+
* FIXME: this does not clamp to actual cells... why not?
|
|
392
|
+
* FIXME: so now we are (optionally) clamping end; should clamp start, too
|
|
393
|
+
*
|
|
394
|
+
* @param clamp -- new parameter will optionally clamp to actual sheet size
|
|
395
|
+
*/
|
|
396
|
+
RealArea(area: Area, clamp?: boolean): Area;
|
|
397
|
+
/** specialization */
|
|
398
|
+
GetCellStyle(area: ICellAddress, apply_theme?: boolean): CellStyle;
|
|
399
|
+
/** specialization */
|
|
400
|
+
GetCellStyle(area: IArea, apply_theme?: boolean): CellStyle[][];
|
|
401
|
+
/** extra specialization */
|
|
402
|
+
GetCellStyle<K extends ICellAddress | IArea>(area: K, apply_theme?: boolean): CellStyle | CellStyle[][];
|
|
403
|
+
FormattedCellValue(address: ICellAddress): CellValue;
|
|
404
|
+
GetFormattedRange(from: ICellAddress, to?: ICellAddress): CellValue | CellValue[][];
|
|
405
|
+
/**
|
|
406
|
+
* get all styles used in the sheet. this is used to populate color
|
|
407
|
+
* and number format lists in the toolbar. we used to just serialize
|
|
408
|
+
* the document and use that, but that's absurdly wasteful. for this
|
|
409
|
+
* application we don't even need composites.
|
|
410
|
+
*
|
|
411
|
+
* although, this is a bit dangerous because you could (in theory)
|
|
412
|
+
* modify the results in place. so maybe we should either duplicate or
|
|
413
|
+
* just return the requested data...
|
|
414
|
+
*/
|
|
415
|
+
NumberFormatsAndColors(color_map: Record<string, number>, number_format_map: Record<string, number>): void;
|
|
416
|
+
CompressCellStyles(data: number[][]): {
|
|
417
|
+
row: number;
|
|
418
|
+
column: number;
|
|
419
|
+
ref: number;
|
|
420
|
+
rows?: number;
|
|
421
|
+
}[];
|
|
422
|
+
/**
|
|
423
|
+
* generates serializable object. given the new data semantics this
|
|
424
|
+
* has to change a bit. here is what we are storing:
|
|
425
|
+
*
|
|
426
|
+
* all style data (sheet, row/column, alternate and cell)
|
|
427
|
+
* raw value for cell
|
|
428
|
+
* array head for arrays
|
|
429
|
+
* row height and column width arrays
|
|
430
|
+
*
|
|
431
|
+
* because we have sparse arrays, we convert them to flat objects first.
|
|
432
|
+
*/
|
|
433
|
+
toJSON(options?: SerializeOptions): SerializedSheet;
|
|
434
|
+
/** flushes ALL rendered styles and caches. made public for theme API */
|
|
435
|
+
FlushCellStyles(): void;
|
|
436
|
+
ImportData(data: ImportedSheetData): void;
|
|
437
|
+
/**
|
|
438
|
+
* figure out the last row/column of the annotation. this
|
|
439
|
+
* might set it to 0/0 if there's no rect, just make sure
|
|
440
|
+
* that it gets cleared on layout changes.
|
|
441
|
+
*/
|
|
442
|
+
protected CalculateAnnotationExtent(annotation: Annotation): void;
|
|
443
|
+
/**
|
|
444
|
+
* update style properties. merge by default.
|
|
445
|
+
*
|
|
446
|
+
* this method will reverse-override properties, meaning if you have set (for
|
|
447
|
+
* example) a cell style to bold, then you set the whole sheet to unbold, we
|
|
448
|
+
* expect that the unbold style will control. instead of explicitly setting
|
|
449
|
+
* the cell style, we go up the chain and remove any matching properties.
|
|
450
|
+
*/
|
|
451
|
+
private UpdateSheetStyle;
|
|
452
|
+
/**
|
|
453
|
+
* updates row properties. reverse-overrides cells (@see UpdateSheetStyle).
|
|
454
|
+
*
|
|
455
|
+
* we also need to ensure that the desired effect takes hold, meaning if
|
|
456
|
+
* there's an overriding column property (columns have priority), we will
|
|
457
|
+
* need to update the cell property to match the desired output.
|
|
458
|
+
*/
|
|
459
|
+
private UpdateRowStyle;
|
|
460
|
+
/**
|
|
461
|
+
* updates column properties. reverse-overrides cells (@see UpdateSheetStyle).
|
|
462
|
+
*/
|
|
463
|
+
private UpdateColumnStyle;
|
|
464
|
+
BleedFlush(area: IArea): void;
|
|
465
|
+
FlushConditionalFormats(): void;
|
|
466
|
+
/**
|
|
467
|
+
* this version combines flushing the cache with building it, using
|
|
468
|
+
* the application flag in the format objects.
|
|
469
|
+
*
|
|
470
|
+
* this function was set up to support comparing the two lists and
|
|
471
|
+
* only flushing style if necessary; but that turns out to be so
|
|
472
|
+
* much additional work that I'm not sure it's preferable to just
|
|
473
|
+
* repaint. need to test.
|
|
474
|
+
*
|
|
475
|
+
* ...we're also probably looping unecessarily. since we're using
|
|
476
|
+
* those leaf nodes we can probably check if the state changed, and
|
|
477
|
+
* it not, skip the loop pass. I think we'd need to identify or map
|
|
478
|
+
* the applications though (meaning use a stack that matches the list
|
|
479
|
+
* of formats). or you could even recheck everything if one of them
|
|
480
|
+
* changed, you'd still probably save a lot in cases where nothing
|
|
481
|
+
* changed.
|
|
482
|
+
*
|
|
483
|
+
*/
|
|
484
|
+
ApplyConditionalFormats(): void;
|
|
485
|
+
private ConditionalFormatForCell;
|
|
486
|
+
/**
|
|
487
|
+
* generates the composite style for the given cell. this
|
|
488
|
+
* should only be used to generate a cache of styles (Q: really? PERF?)
|
|
489
|
+
*
|
|
490
|
+
* the "apply_cell_style" parameter is used for testing when pruning. we
|
|
491
|
+
* want to check what happens if the cell style is not applied; if nothing
|
|
492
|
+
* happens, then we can drop the cell style (or the property in the style).
|
|
493
|
+
*/
|
|
494
|
+
private CompositeStyleForCell;
|
|
495
|
+
/**
|
|
496
|
+
* can we use the rendered JSON as a key, instead?
|
|
497
|
+
*/
|
|
498
|
+
private GetStyleIndex;
|
|
499
|
+
}
|