@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,442 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* grid base is a superclass for grid that takes over all (most) of the
|
|
3
|
+
* data operations, leaving UI operations (painting and interacting, plus
|
|
4
|
+
* layout) in the grid subclass.
|
|
5
|
+
*
|
|
6
|
+
* this is part of an effort to support running outside of the browser,
|
|
7
|
+
* but still using the command log to handle deltas.
|
|
8
|
+
*
|
|
9
|
+
* this turns out to be a little like the (old) layout where we had modern
|
|
10
|
+
* and legacy layouts -- a lot of stuff can be reused, but a lot can't.
|
|
11
|
+
*
|
|
12
|
+
* calling this "grid" doesn't really make sense anymore, but we're not in
|
|
13
|
+
* a hurry to change it either.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import { EventSource } from 'treb-utils';
|
|
17
|
+
import type { DataModel, ConditionalFormat, // MacroFunction, SerializedModel, SerializedNamedExpression,
|
|
18
|
+
ViewModel } from 'treb-data-model';
|
|
19
|
+
import type { Parser } from 'treb-parser';
|
|
20
|
+
import { Area } from 'treb-base-types';
|
|
21
|
+
import type { ICellAddress, IArea, Cell, CellValue, Table, TableSortOptions, TableTheme, PatchOptions as PatchAreaOptions, Color } from 'treb-base-types';
|
|
22
|
+
import { Sheet, type Annotation } from 'treb-data-model';
|
|
23
|
+
import type { FunctionDescriptor } from '../editors/autocomplete_matcher';
|
|
24
|
+
import { AutocompleteMatcher } from '../editors/autocomplete_matcher';
|
|
25
|
+
import type { GridEvent } from './grid_events';
|
|
26
|
+
import { ErrorCode } from './grid_events';
|
|
27
|
+
import type { CommandRecord, CreateAnnotationCommand, DataValidationCommand, FreezeCommand, InsertColumnsCommand, InsertRowsCommand, RemoveAnnotationCommand, ResizeColumnsCommand, ResizeRowsCommand, SelectCommand, SetRangeCommand, ShowSheetCommand, SortTableCommand } from './grid_command';
|
|
28
|
+
import { type GridOptions } from './grid_options';
|
|
29
|
+
import type { Command, ActivateSheetCommand, DeleteSheetCommand, UpdateBordersCommand, SheetSelection } from './grid_command';
|
|
30
|
+
import type { UpdateFlags } from './update_flags';
|
|
31
|
+
import type { FreezePane, LegacySerializedSheet } from 'treb-data-model';
|
|
32
|
+
interface PatchOptions extends PatchAreaOptions {
|
|
33
|
+
sheet: Sheet;
|
|
34
|
+
}
|
|
35
|
+
export declare class GridBase {
|
|
36
|
+
/** events */
|
|
37
|
+
grid_events: EventSource<GridEvent>;
|
|
38
|
+
/** for recording */
|
|
39
|
+
command_log: EventSource<CommandRecord>;
|
|
40
|
+
readonly model: DataModel;
|
|
41
|
+
readonly view: ViewModel;
|
|
42
|
+
get active_sheet(): Sheet;
|
|
43
|
+
set active_sheet(sheet: Sheet);
|
|
44
|
+
/** access the view index, if needed */
|
|
45
|
+
get view_index(): number;
|
|
46
|
+
/**
|
|
47
|
+
* switching to a stack, in case batching is nested. we don't need
|
|
48
|
+
* actual data so (atm) just count the depth.
|
|
49
|
+
*/
|
|
50
|
+
protected batch: number;
|
|
51
|
+
/**
|
|
52
|
+
* if any batch method along the way requests a paint update, we
|
|
53
|
+
* want to toll it until the last batch call is complete, but we don't
|
|
54
|
+
* want to lose it. just remember to reset. [FIXME: isn't tolling this
|
|
55
|
+
* paint implicit, since it's async? ...]
|
|
56
|
+
*/
|
|
57
|
+
protected batch_paint: boolean;
|
|
58
|
+
protected batch_events: GridEvent[];
|
|
59
|
+
/**
|
|
60
|
+
* single instance of AC. editors (function bar, ICE) have references.
|
|
61
|
+
* this is in base, instead of subclass, because we use it to check
|
|
62
|
+
* for valid names.
|
|
63
|
+
*/
|
|
64
|
+
protected autocomplete_matcher: AutocompleteMatcher;
|
|
65
|
+
/**
|
|
66
|
+
* flags/state (used for some recordkeeping -- not super important)
|
|
67
|
+
*/
|
|
68
|
+
protected flags: Record<string, boolean>;
|
|
69
|
+
/** */
|
|
70
|
+
protected options: GridOptions;
|
|
71
|
+
/**
|
|
72
|
+
* spreadsheet language parser. used to pull out address
|
|
73
|
+
* references from functions, for highlighting
|
|
74
|
+
*
|
|
75
|
+
* ...
|
|
76
|
+
*
|
|
77
|
+
* it's used for lots of stuff now, in addition to highlighting.
|
|
78
|
+
* copy/paste with translation; csv; defines; and some other stuff.
|
|
79
|
+
* still would like to share w/ parent though, if possible.
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* FIXME: need a way to share/pass parser flags
|
|
83
|
+
* UPDATE: sharing parser w/ owner (embedded sheet)
|
|
84
|
+
*/
|
|
85
|
+
protected parser: Parser;
|
|
86
|
+
constructor(options: GridOptions | undefined, model: DataModel);
|
|
87
|
+
RemoveConditionalFormat(options: {
|
|
88
|
+
format?: ConditionalFormat;
|
|
89
|
+
area?: IArea;
|
|
90
|
+
}): void;
|
|
91
|
+
AddConditionalFormat(format: ConditionalFormat): void;
|
|
92
|
+
/** remove a table. doesn't remove any data, just removes the overlay. */
|
|
93
|
+
RemoveTable(table: Table): void;
|
|
94
|
+
/**
|
|
95
|
+
* create a table in the given area. the area cannot contain any
|
|
96
|
+
* merge cells, arrays, or be part of another table. if you add a table
|
|
97
|
+
* with a totals row, we don't insert a new row -- allocate enough space
|
|
98
|
+
* when you create it.
|
|
99
|
+
*
|
|
100
|
+
* @param area - the total area for the table, including headers and totals
|
|
101
|
+
* @param totals - set true to include a totals row. tables have different
|
|
102
|
+
* formatting and slightly different behavior when there's a totals row.
|
|
103
|
+
*/
|
|
104
|
+
InsertTable(area: IArea, totals?: boolean, sortable?: boolean | undefined, theme?: TableTheme): void;
|
|
105
|
+
/**
|
|
106
|
+
* activate sheet, by name or index number
|
|
107
|
+
* @param sheet number (index into the array) or string (name)
|
|
108
|
+
*/
|
|
109
|
+
ActivateSheet(sheet: number | string, user?: boolean): void;
|
|
110
|
+
/**
|
|
111
|
+
* activate sheet, by ID
|
|
112
|
+
*/
|
|
113
|
+
ActivateSheetID(id: number): void;
|
|
114
|
+
/**
|
|
115
|
+
* duplicate sheet by index or (omitting index) the current active sheet
|
|
116
|
+
*/
|
|
117
|
+
DuplicateSheet(index?: number, name?: string, insert_before?: number | string): void;
|
|
118
|
+
AddSheet(name?: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* delete sheet, by index or (omitting index) the current active sheet
|
|
121
|
+
*/
|
|
122
|
+
DeleteSheet(index?: number): void;
|
|
123
|
+
/** insert sheet at the given index (or current index) */
|
|
124
|
+
InsertSheet(index?: number, name?: string): void;
|
|
125
|
+
DeleteSheetID(id: number): void;
|
|
126
|
+
/**
|
|
127
|
+
* clear sheet, reset all data
|
|
128
|
+
*/
|
|
129
|
+
Reset(): void;
|
|
130
|
+
/**
|
|
131
|
+
* set hyperlink, like set note
|
|
132
|
+
*/
|
|
133
|
+
SetLink(address: ICellAddress, reference?: string): void;
|
|
134
|
+
ShowAll(): void;
|
|
135
|
+
ShowSheet(index?: number | string, show?: boolean): void;
|
|
136
|
+
/**
|
|
137
|
+
* sort table. column is absolute.
|
|
138
|
+
*/
|
|
139
|
+
SortTable(table: Table, options?: Partial<TableSortOptions>): void;
|
|
140
|
+
/** return freeze area */
|
|
141
|
+
GetFreeze(): FreezePane;
|
|
142
|
+
/**
|
|
143
|
+
* insert rows(s) at some specific point
|
|
144
|
+
*/
|
|
145
|
+
InsertRows(before_row?: number, count?: number): void;
|
|
146
|
+
/**
|
|
147
|
+
* return the table (if any) at the given address
|
|
148
|
+
*/
|
|
149
|
+
GetTableReference(address: ICellAddress): Table | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* reset sheet, set data from CSV
|
|
152
|
+
*
|
|
153
|
+
* FIXME: this is problematic, because it runs around the exec command
|
|
154
|
+
* system. however it doesn't seem like a good candidate for a separate
|
|
155
|
+
* command. it should maybe move to the import class? (...)
|
|
156
|
+
*
|
|
157
|
+
* one problem with that is that import is really, really heavy (jszip).
|
|
158
|
+
* it seems wasteful to require all that just to import csv.
|
|
159
|
+
*/
|
|
160
|
+
FromCSV(text: string): void;
|
|
161
|
+
/**
|
|
162
|
+
* insert column(s) at some specific point
|
|
163
|
+
*/
|
|
164
|
+
InsertColumns(before_column?: number, count?: number): void;
|
|
165
|
+
/** move sheet (X) before sheet (Y) */
|
|
166
|
+
ReorderSheet(index: number, move_before: number): void;
|
|
167
|
+
/**
|
|
168
|
+
* rename active sheet
|
|
169
|
+
*/
|
|
170
|
+
RenameSheet(sheet: Sheet, name: string): void;
|
|
171
|
+
/**
|
|
172
|
+
* freeze rows or columns. set to 0 (or call with no arguments) to un-freeze.
|
|
173
|
+
*
|
|
174
|
+
* highglight is shown by default, but we can hide it(mostly for document load)
|
|
175
|
+
*/
|
|
176
|
+
Freeze(rows?: number, columns?: number, highlight_transition?: boolean): void;
|
|
177
|
+
/**
|
|
178
|
+
* API method
|
|
179
|
+
*/
|
|
180
|
+
SetRowHeight(row?: number | number[], height?: number, shrink?: boolean): void;
|
|
181
|
+
/**
|
|
182
|
+
* API method
|
|
183
|
+
*
|
|
184
|
+
* @param column - column, columns, or undefined means all columns
|
|
185
|
+
* @param width - target width, or undefined means auto-size
|
|
186
|
+
* @param allow_shrinking - for auto-size, allow shrinking. defaults to true.
|
|
187
|
+
* set false to disallow shrinking.
|
|
188
|
+
*/
|
|
189
|
+
SetColumnWidth(column?: number | number[], width?: number, allow_shrinking?: boolean): void;
|
|
190
|
+
/**
|
|
191
|
+
* filter table. what this means is "show the rows that match the filter
|
|
192
|
+
* and hide the other rows". it doesn't actually change data, but it does
|
|
193
|
+
* show/hide rows which (now) has some data effects.
|
|
194
|
+
*
|
|
195
|
+
* note that we don't pass the filter command through the command queue.
|
|
196
|
+
* it uses a callback, so that would not work. rather we filter first,
|
|
197
|
+
* then send hide/show row commands through the command queue. that will
|
|
198
|
+
* propagate updates.
|
|
199
|
+
*/
|
|
200
|
+
FilterTable(table: Table, column: number, filter: (cell: Cell) => boolean): void;
|
|
201
|
+
/**
|
|
202
|
+
* UpdateSheets means "set these as the sheets, drop any old stuff". there's
|
|
203
|
+
* an implicit reset (in fact we may do that twice in some cases).
|
|
204
|
+
*
|
|
205
|
+
* this is non-UI; specialization should handle the UI part
|
|
206
|
+
*/
|
|
207
|
+
UpdateSheets(data: LegacySerializedSheet[], render?: boolean, activate_sheet?: number | string): void;
|
|
208
|
+
/**
|
|
209
|
+
* set functions for AC matcher. should be called by calculator on init,
|
|
210
|
+
* or when any functions are added/removed.
|
|
211
|
+
*
|
|
212
|
+
* FIXME: we should use this to normalize function names, on insert and
|
|
213
|
+
* on paste (if we're doing that).
|
|
214
|
+
*
|
|
215
|
+
* FIXME: are named expressions included here? (this function predates
|
|
216
|
+
* named expressions).
|
|
217
|
+
*
|
|
218
|
+
*
|
|
219
|
+
* this moved to grid base because we use the list to check for conflicts
|
|
220
|
+
* when setting names.
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
SetAutocompleteFunctions(functions: FunctionDescriptor[]): void;
|
|
224
|
+
ResetMetadata(): void;
|
|
225
|
+
/**
|
|
226
|
+
* see ResizeRowsInternal
|
|
227
|
+
*/
|
|
228
|
+
protected ResizeColumnsInternal(command: ResizeColumnsCommand): void;
|
|
229
|
+
protected RemoveAnnotationInternal(command: RemoveAnnotationCommand): void;
|
|
230
|
+
/** placeholder */
|
|
231
|
+
protected CreateAnnotationInternal(command: CreateAnnotationCommand): void;
|
|
232
|
+
/**
|
|
233
|
+
* resize rows. this supports auto size, but that will fail in !ui grid,
|
|
234
|
+
* because it uses HTML. also non-ui doesn't really need to worry about
|
|
235
|
+
* scale... we should split.
|
|
236
|
+
*/
|
|
237
|
+
protected ResizeRowsInternal(command: ResizeRowsCommand): IArea | undefined;
|
|
238
|
+
protected ResetInternal(): void;
|
|
239
|
+
/**
|
|
240
|
+
* check if we can paste into the target area(s). this will
|
|
241
|
+
* return false if the areas contain locked cells, or part of
|
|
242
|
+
* an array or merge but not the whole array or merge.
|
|
243
|
+
*
|
|
244
|
+
* @param areas
|
|
245
|
+
* @returns
|
|
246
|
+
*/
|
|
247
|
+
protected ValidatePasteAreas(areas: Area[]): boolean;
|
|
248
|
+
protected SetValidationInternal(command: DataValidationCommand): void;
|
|
249
|
+
/**
|
|
250
|
+
* get values from a range of data
|
|
251
|
+
* @param area
|
|
252
|
+
*/
|
|
253
|
+
protected GetValidationRange(area: IArea): CellValue[] | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* @returns true if we need a recalc, because references have broken.
|
|
256
|
+
*/
|
|
257
|
+
protected DeleteSheetInternal(command: DeleteSheetCommand): boolean;
|
|
258
|
+
/**
|
|
259
|
+
* rename a sheet. this requires changing any formulae that refer to the
|
|
260
|
+
* old name to refer to the new name. if there are any references by ID
|
|
261
|
+
* those don't have to change.
|
|
262
|
+
*
|
|
263
|
+
* FIXME: can we do this using the dependency graph? (...)
|
|
264
|
+
*/
|
|
265
|
+
protected RenameSheetInternal(target: Sheet, name: string): void;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
protected SortTableInternal(command: SortTableCommand): Area | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* update all columns of a table (collect column names). this
|
|
272
|
+
* method rebuilds all columns; that's probably unecessary in
|
|
273
|
+
* many cases, but we'll start here and we can drill down later.
|
|
274
|
+
*
|
|
275
|
+
* we do two things here: we normalize column header values, and
|
|
276
|
+
* we collect them for table headers.
|
|
277
|
+
*
|
|
278
|
+
* @param table
|
|
279
|
+
*/
|
|
280
|
+
protected UpdateTableColumns(table: Table): IArea;
|
|
281
|
+
/**
|
|
282
|
+
* set range, via command. returns affected area.
|
|
283
|
+
*
|
|
284
|
+
* Adding a flags parameter (in/out) to support indicating
|
|
285
|
+
* that we need to update layout.
|
|
286
|
+
*/
|
|
287
|
+
protected SetRangeInternal(command: SetRangeCommand, flags?: UpdateFlags): Area | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* basic implementation does not handle any UI, painting, or layout.
|
|
290
|
+
*/
|
|
291
|
+
protected ActivateSheetInternal(command: ActivateSheetCommand): void;
|
|
292
|
+
protected ShowSheetInternal(command: ShowSheetCommand): void;
|
|
293
|
+
/**
|
|
294
|
+
* normalize commands. for co-editing support we need to ensure that
|
|
295
|
+
* commands properly have sheet IDs in areas/addresses (and explicit
|
|
296
|
+
* fields in some cases).
|
|
297
|
+
*
|
|
298
|
+
* at the same time we're editing the commands a little bit to make
|
|
299
|
+
* them a little more consistent (within reason).
|
|
300
|
+
*
|
|
301
|
+
* @param commands
|
|
302
|
+
*/
|
|
303
|
+
protected NormalizeCommands(commands: Command | Command[]): Command[];
|
|
304
|
+
TabColor(sheet: Sheet, color?: Color): void;
|
|
305
|
+
/**
|
|
306
|
+
* add sheet. data only.
|
|
307
|
+
*/
|
|
308
|
+
protected AddSheetInternal(name?: string, insert_index?: number): number | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* resolve sheet in a command that uses the SheetSelection interface;
|
|
311
|
+
* that allows sheet selection by name, id or index.
|
|
312
|
+
*/
|
|
313
|
+
protected ResolveSheet(command: SheetSelection): Sheet | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* find sheet matching sheet_id in area.start, or active sheet
|
|
316
|
+
*
|
|
317
|
+
* FIXME: should return undefined on !match
|
|
318
|
+
* FIXME: should be in model, which should be a class
|
|
319
|
+
*/
|
|
320
|
+
protected FindSheet(identifier: number | IArea | ICellAddress | undefined): Sheet;
|
|
321
|
+
/**
|
|
322
|
+
* this function now works for both rows and columns, and can handle
|
|
323
|
+
* sheets other than the active sheet. it does assume that you only ever
|
|
324
|
+
* add rows/columns on the active sheet, but since that's all parameterized
|
|
325
|
+
* you could get it to work either way.
|
|
326
|
+
*
|
|
327
|
+
* in fact we should change the names of those parameters so it's a little
|
|
328
|
+
* more generic.
|
|
329
|
+
*/
|
|
330
|
+
protected PatchFormulasInternal(source: string, before_row: number, row_count: number, before_column: number, column_count: number, target_sheet_name: string, is_target: boolean): string | undefined;
|
|
331
|
+
protected PatchExpressionSheetName(expression: string, old_name: string, name: string): string | undefined;
|
|
332
|
+
/**
|
|
333
|
+
* splitting this logic into a new function so we can reuse it
|
|
334
|
+
* for invalidating broken references. generally we'll call this
|
|
335
|
+
* on all sheets, but I wanted to leave the option open.
|
|
336
|
+
*
|
|
337
|
+
* @returns count of changes made. it's useful for the delete routine,
|
|
338
|
+
* so we can force a recalc.
|
|
339
|
+
*/
|
|
340
|
+
protected RenameSheetReferences(sheets: Sheet[], old_name: string, name: string): number;
|
|
341
|
+
/**
|
|
342
|
+
* these are all addative except for "none", which removes all borders.
|
|
343
|
+
*
|
|
344
|
+
* we no longer put borders into two cells at once (hurrah!). however
|
|
345
|
+
* we still need to do some maintenance on the mirror cells -- because
|
|
346
|
+
* if you apply a border to cell A1, then that should take precedence
|
|
347
|
+
* over any border previously applied to cell A2.
|
|
348
|
+
*
|
|
349
|
+
* FIXME: is that right? perhaps we should just leave whatever the user
|
|
350
|
+
* did -- with the exception of clearing, which should always mirror.
|
|
351
|
+
*
|
|
352
|
+
*
|
|
353
|
+
* UPDATE: modifying function for use with ExecCommand. runs the style
|
|
354
|
+
* updates and returns the affected area.
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
protected ApplyBordersInternal(command: UpdateBordersCommand): Area;
|
|
358
|
+
protected TranslateR1C1(address: ICellAddress, value: CellValue): CellValue;
|
|
359
|
+
protected ClearAreaInternal(area: Area): void;
|
|
360
|
+
/**
|
|
361
|
+
* send an error message. subscriber can figure out how to communicate it
|
|
362
|
+
* to users.
|
|
363
|
+
*
|
|
364
|
+
* dropping strings, now we only allow error constants (via enum)
|
|
365
|
+
*
|
|
366
|
+
* @param message
|
|
367
|
+
*/
|
|
368
|
+
protected Error(message: ErrorCode): void;
|
|
369
|
+
/**
|
|
370
|
+
* this breaks (or doesn't work) if the add_tab option is false; that's
|
|
371
|
+
* fine, although we might want to make a distinction between UI add-tab
|
|
372
|
+
* and API add-tab. And allow it from the API.
|
|
373
|
+
*
|
|
374
|
+
* @param command
|
|
375
|
+
* @returns
|
|
376
|
+
*/
|
|
377
|
+
private DuplicateSheetInternal;
|
|
378
|
+
/**
|
|
379
|
+
* this is the callback method for the command-log select command
|
|
380
|
+
* (which is not widely used). it does nothing. the specialization
|
|
381
|
+
* should do something.
|
|
382
|
+
*
|
|
383
|
+
* @param command
|
|
384
|
+
*/
|
|
385
|
+
protected SelectInternal(command: SelectCommand): void;
|
|
386
|
+
protected FreezeInternal(command: FreezeCommand): void;
|
|
387
|
+
/**
|
|
388
|
+
* patch an expression for insert/delete row/column operations.
|
|
389
|
+
* FIXME: should move, maybe to parser? (...)
|
|
390
|
+
*
|
|
391
|
+
* NOTE: did I write this twice? we only need one. check which one is better.
|
|
392
|
+
* @see PatchFormulasInternal
|
|
393
|
+
*
|
|
394
|
+
* @returns the updated expression, or `undefined` if no changes were made.
|
|
395
|
+
*/
|
|
396
|
+
protected PatchExpression(expression: string, options: PatchOptions): string | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* patch sheet conditionals for insert/delete row/column operations.
|
|
399
|
+
* some of them may be deleted.
|
|
400
|
+
*
|
|
401
|
+
* UPDATE: using this routine to also patch data validations
|
|
402
|
+
*/
|
|
403
|
+
protected PatchConditionalsAndValidations(options: PatchOptions): void;
|
|
404
|
+
/**
|
|
405
|
+
* FIXME: should be API method
|
|
406
|
+
* FIXME: need to handle annotations that are address-based
|
|
407
|
+
*
|
|
408
|
+
* @see InsertColumns for inline comments
|
|
409
|
+
*/
|
|
410
|
+
protected InsertRowsInternal(command: InsertRowsCommand): {
|
|
411
|
+
error?: boolean;
|
|
412
|
+
update_annotations_list?: Annotation[];
|
|
413
|
+
resize_annotations_list?: Annotation[];
|
|
414
|
+
delete_annotations_list?: Annotation[];
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
*/
|
|
419
|
+
protected InsertColumnsInternal(command: InsertColumnsCommand): {
|
|
420
|
+
error?: boolean;
|
|
421
|
+
update_annotations_list?: Annotation[];
|
|
422
|
+
resize_annotations_list?: Annotation[];
|
|
423
|
+
delete_annotations_list?: Annotation[];
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* pass all data/style/structure operations through a command mechanism.
|
|
427
|
+
* this method should optimally act as a dispatcher, so try to minimize
|
|
428
|
+
* inline code in favor of method calls.
|
|
429
|
+
*
|
|
430
|
+
* [NOTE: don't go crazy with that, some simple operations can be inlined]
|
|
431
|
+
*
|
|
432
|
+
* NOTE: working on coediting. we will need to handle different sheets.
|
|
433
|
+
* going to work one command at a time...
|
|
434
|
+
*
|
|
435
|
+
* @param queue -- push on the command log. this is default true so it
|
|
436
|
+
* doesn't change existing behavior, but you can turn it off if the message
|
|
437
|
+
* comes from a remote queue.
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
ExecCommand(commands: Command | Command[], queue?: boolean): UpdateFlags;
|
|
441
|
+
}
|
|
442
|
+
export {};
|