@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,155 @@
|
|
|
1
|
+
import type { CellStyle, EvaluateOptions, IArea, Color, Gradient, GradientStop, UnionValue } from 'treb-base-types';
|
|
2
|
+
interface VertexPlaceholder {
|
|
3
|
+
result: UnionValue;
|
|
4
|
+
updated: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface CondifionalFormatExpressionOptions {
|
|
7
|
+
style: CellStyle;
|
|
8
|
+
expression: string;
|
|
9
|
+
options?: EvaluateOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* conditional format predicated on an expression. if the expression
|
|
13
|
+
* evaluates to true, we apply the style. otherwise no.
|
|
14
|
+
*/
|
|
15
|
+
export interface ConditionalFormatExpression extends CondifionalFormatExpressionOptions {
|
|
16
|
+
type: 'expression';
|
|
17
|
+
area: IArea;
|
|
18
|
+
/** @internal */
|
|
19
|
+
internal?: {
|
|
20
|
+
vertex?: VertexPlaceholder;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ConditionalFormatGradientOptions {
|
|
24
|
+
/** property defaults to fill */
|
|
25
|
+
property?: 'fill' | 'text';
|
|
26
|
+
/** defaults to RGB */
|
|
27
|
+
color_space?: 'HSL' | 'RGB';
|
|
28
|
+
/** gradient stops, required */
|
|
29
|
+
stops: Array<{
|
|
30
|
+
value: number;
|
|
31
|
+
color: Color;
|
|
32
|
+
}>;
|
|
33
|
+
/** min and max are optional. if not provided, we use the min/max of the range of data. */
|
|
34
|
+
min?: number;
|
|
35
|
+
/** min and max are optional. if not provided, we use the min/max of the range of data. */
|
|
36
|
+
max?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*
|
|
42
|
+
* @privateRemarks
|
|
43
|
+
*
|
|
44
|
+
* this is marked internal temporarily while I figure out why our API
|
|
45
|
+
* generator is not exporting the gradient stop type
|
|
46
|
+
*/
|
|
47
|
+
export declare const StandardGradientsList: {
|
|
48
|
+
readonly 'red-green': {
|
|
49
|
+
readonly color_space: "RGB";
|
|
50
|
+
readonly stops: GradientStop[];
|
|
51
|
+
};
|
|
52
|
+
readonly 'red-yellow-green': {
|
|
53
|
+
readonly color_space: "RGB";
|
|
54
|
+
readonly stops: GradientStop[];
|
|
55
|
+
};
|
|
56
|
+
readonly 'green-red': {
|
|
57
|
+
readonly color_space: "RGB";
|
|
58
|
+
readonly stops: GradientStop[];
|
|
59
|
+
};
|
|
60
|
+
readonly 'green-yellow-red': {
|
|
61
|
+
readonly color_space: "RGB";
|
|
62
|
+
readonly stops: GradientStop[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type StandardGradient = 'red-green' | 'green-red' | 'red-yellow-green' | 'green-yellow-red';
|
|
66
|
+
export interface ConditionalFormatGradient extends ConditionalFormatGradientOptions {
|
|
67
|
+
type: 'gradient';
|
|
68
|
+
area: IArea;
|
|
69
|
+
/** @internal */
|
|
70
|
+
internal?: {
|
|
71
|
+
gradient?: Gradient;
|
|
72
|
+
vertex?: VertexPlaceholder;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface ConditionalFormatDataBarOptions {
|
|
76
|
+
/** min and max are optional. if not provided, we use the min/max of the range of data. */
|
|
77
|
+
min?: number;
|
|
78
|
+
/** min and max are optional. if not provided, we use the min/max of the range of data. */
|
|
79
|
+
max?: number;
|
|
80
|
+
/** */
|
|
81
|
+
fill: Color;
|
|
82
|
+
/** */
|
|
83
|
+
negative?: Color;
|
|
84
|
+
/** */
|
|
85
|
+
hide_values?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface ConditionalFormatDataBar extends ConditionalFormatDataBarOptions {
|
|
88
|
+
type: 'data-bar';
|
|
89
|
+
area: IArea;
|
|
90
|
+
/** @internal */
|
|
91
|
+
internal?: {
|
|
92
|
+
vertex?: VertexPlaceholder;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export interface ConditionalFormatCellMatchOptions {
|
|
96
|
+
style: CellStyle;
|
|
97
|
+
expression: string;
|
|
98
|
+
options?: EvaluateOptions;
|
|
99
|
+
}
|
|
100
|
+
export interface ConditionalFormatCellMatch extends ConditionalFormatCellMatchOptions {
|
|
101
|
+
type: 'cell-match';
|
|
102
|
+
area: IArea;
|
|
103
|
+
/** @internal */
|
|
104
|
+
internal?: {
|
|
105
|
+
vertex?: VertexPlaceholder;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface ConditionalFormatCellMatchOptions {
|
|
109
|
+
style: CellStyle;
|
|
110
|
+
expression: string;
|
|
111
|
+
between?: [number, number];
|
|
112
|
+
options?: EvaluateOptions;
|
|
113
|
+
}
|
|
114
|
+
export interface ConditionalFormatCellMatch extends ConditionalFormatCellMatchOptions {
|
|
115
|
+
type: 'cell-match';
|
|
116
|
+
area: IArea;
|
|
117
|
+
/** @internal */
|
|
118
|
+
internal?: {
|
|
119
|
+
vertex?: VertexPlaceholder;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface ConditionalFormatDuplicateValuesOptions {
|
|
123
|
+
style: CellStyle;
|
|
124
|
+
/** true to highlight unique cells, false to highlight duplicates. defaults to false. */
|
|
125
|
+
unique?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface ConditionalFormatDuplicateValues extends ConditionalFormatDuplicateValuesOptions {
|
|
128
|
+
type: 'duplicate-values';
|
|
129
|
+
area: IArea;
|
|
130
|
+
/** @internal */
|
|
131
|
+
internal?: {
|
|
132
|
+
vertex?: VertexPlaceholder;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* union, plus we're adding a state used to track application.
|
|
137
|
+
* that state is serialized if it's true.
|
|
138
|
+
* we also add an internal field that will be type-specific, and not serialized.
|
|
139
|
+
*
|
|
140
|
+
* ...everybody has a vertex now, we could standardize it
|
|
141
|
+
*
|
|
142
|
+
* update: adding a priority field, optional
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
export type ConditionalFormat = {
|
|
146
|
+
internal?: unknown;
|
|
147
|
+
priority?: number;
|
|
148
|
+
} & (ConditionalFormatDuplicateValues | ConditionalFormatExpression | ConditionalFormatCellMatch | ConditionalFormatGradient | ConditionalFormatDataBar);
|
|
149
|
+
/**
|
|
150
|
+
* the list of formats, in reverse order of precedence. as a starting
|
|
151
|
+
* point we're using the naive approach, just applying everything in
|
|
152
|
+
* order. that may change.
|
|
153
|
+
*/
|
|
154
|
+
export type ConditionalFormatList = ConditionalFormat[];
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of TREB.
|
|
3
|
+
*
|
|
4
|
+
* TREB is free software: you can redistribute it and/or modify it under the
|
|
5
|
+
* terms of the GNU General Public License as published by the Free Software
|
|
6
|
+
* Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
+
* later version.
|
|
8
|
+
*
|
|
9
|
+
* TREB is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
10
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
+
* details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License along
|
|
15
|
+
* with TREB. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* Copyright 2022-2026 trebco, llc.
|
|
18
|
+
* info@treb.app
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*
|
|
25
|
+
* @privateRemarks
|
|
26
|
+
*
|
|
27
|
+
* this is marked internal temporarily while I figure out why our API
|
|
28
|
+
* generator is not exporting the gradient stop type
|
|
29
|
+
*/
|
|
30
|
+
export const StandardGradientsList = {
|
|
31
|
+
'red-green': {
|
|
32
|
+
color_space: 'RGB',
|
|
33
|
+
stops: [
|
|
34
|
+
{ value: 0, color: { theme: 5, tint: .5 } },
|
|
35
|
+
{ value: 1, color: { theme: 9, tint: .5 } },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
'red-yellow-green': {
|
|
39
|
+
color_space: 'RGB',
|
|
40
|
+
stops: [
|
|
41
|
+
{ value: 0, color: { theme: 5, tint: .5 } },
|
|
42
|
+
{ value: 0.5, color: { theme: 7, tint: .5 } },
|
|
43
|
+
{ value: 1, color: { theme: 9, tint: .5 } },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
'green-red': {
|
|
47
|
+
color_space: 'RGB',
|
|
48
|
+
stops: [
|
|
49
|
+
{ value: 0, color: { theme: 9, tint: .5 } },
|
|
50
|
+
{ value: 1, color: { theme: 5, tint: .5 } },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
'green-yellow-red': {
|
|
54
|
+
color_space: 'RGB',
|
|
55
|
+
stops: [
|
|
56
|
+
{ value: 0, color: { theme: 9, tint: .5 } },
|
|
57
|
+
{ value: 0.5, color: { theme: 7, tint: .5 } },
|
|
58
|
+
{ value: 1, color: { theme: 5, tint: .5 } },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=conditional_format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditional_format.js","sourceRoot":"","sources":["../../../treb-data-model/src/conditional_format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAkDH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,WAAW,EAAE;QACX,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC1C,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;SACzB;KACpB;IACD,kBAAkB,EAAE;QAClB,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC1C,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;SACzB;KACpB;IACD,WAAW,EAAE;QACX,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC1C,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;SACzB;KACpB;IACD,kBAAkB,EAAE;QAClB,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC1C,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;YAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;SACzB;KACpB;CACO,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IArea, CellValue } from 'treb-base-types';
|
|
2
|
+
/** @internal */
|
|
3
|
+
export interface DataValidationRange {
|
|
4
|
+
type: 'range';
|
|
5
|
+
area: IArea;
|
|
6
|
+
}
|
|
7
|
+
/** @internal */
|
|
8
|
+
export interface DataValidationList {
|
|
9
|
+
type: 'list';
|
|
10
|
+
list: CellValue[];
|
|
11
|
+
}
|
|
12
|
+
/** @internal */
|
|
13
|
+
export interface DataValidationDate {
|
|
14
|
+
type: 'date';
|
|
15
|
+
}
|
|
16
|
+
/** @internal */
|
|
17
|
+
export interface DataValidationNumber {
|
|
18
|
+
type: 'number';
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
export interface DataValidationBoolean {
|
|
22
|
+
type: 'boolean';
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type DataValidation = (DataValidationList | DataValidationRange | DataValidationNumber | DataValidationDate | DataValidationBoolean) & {
|
|
26
|
+
error?: boolean;
|
|
27
|
+
target: IArea[];
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of TREB.
|
|
3
|
+
*
|
|
4
|
+
* TREB is free software: you can redistribute it and/or modify it under the
|
|
5
|
+
* terms of the GNU General Public License as published by the Free Software
|
|
6
|
+
* Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
+
* later version.
|
|
8
|
+
*
|
|
9
|
+
* TREB is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
10
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
+
* details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License along
|
|
15
|
+
* with TREB. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* Copyright 2022-2026 trebco, llc.
|
|
18
|
+
* info@treb.app
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=data-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-validation.js","sourceRoot":"","sources":["../../../treb-data-model/src/data-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { Sheet } from './sheet';
|
|
2
|
+
import { SheetCollection } from './sheet_collection';
|
|
3
|
+
import { type UnitAddress, type UnitStructuredReference, type UnitRange, Parser } from 'treb-parser';
|
|
4
|
+
import type { IArea, ICellAddress, Table, CellStyle, CellValue } from 'treb-base-types';
|
|
5
|
+
import { Area } from 'treb-base-types';
|
|
6
|
+
import type { SerializedNamed } from './named';
|
|
7
|
+
import { NamedRangeManager } from './named';
|
|
8
|
+
import type { ConnectedElementType, MacroFunction } from './types';
|
|
9
|
+
import type { LanguageModel } from './language-model';
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class DataModel {
|
|
14
|
+
readonly parser: Parser;
|
|
15
|
+
/** moved from embedded spreadsheet */
|
|
16
|
+
language_model?: LanguageModel;
|
|
17
|
+
/** document metadata */
|
|
18
|
+
document_name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* document metadata. this is opaque to everyone except the user, so
|
|
21
|
+
* we're intentionally leaving it as unknown except where users have
|
|
22
|
+
* direct access (embedded spreadsheet).
|
|
23
|
+
*/
|
|
24
|
+
user_data?: unknown;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
readonly sheets: SheetCollection;
|
|
29
|
+
/** new composite collection (TODO: add macro functions too?) */
|
|
30
|
+
readonly named: NamedRangeManager;
|
|
31
|
+
/** macro functions are functions written in spreadsheet language */
|
|
32
|
+
readonly macro_functions: Map<string, MacroFunction>;
|
|
33
|
+
/** index for views */
|
|
34
|
+
view_count: number;
|
|
35
|
+
/**
|
|
36
|
+
* base style properties moved to model, so we can have a single
|
|
37
|
+
* and consistent reference.
|
|
38
|
+
*/
|
|
39
|
+
theme_style_properties: CellStyle;
|
|
40
|
+
/**
|
|
41
|
+
* tables are global, because we need to reference them by name; and they
|
|
42
|
+
* need unique names, so we need to keep track of names. name matching is
|
|
43
|
+
* icase so we lc the names before inserting.
|
|
44
|
+
*/
|
|
45
|
+
tables: Map<string, Table>;
|
|
46
|
+
/**
|
|
47
|
+
* we're wrapping up the get name method so we can check for a sheet
|
|
48
|
+
* name -- we have the list of sheet names. we could pass that to the
|
|
49
|
+
* name list manager but it's easier for us to intercept the call.
|
|
50
|
+
* I thought about wrapping up more API functions here, but that seems
|
|
51
|
+
* unecessary atm.
|
|
52
|
+
*/
|
|
53
|
+
GetName(name: string, scope: number): import("./named").Named | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* @param force_locale - always parse assuming a locale like en-us (comma
|
|
56
|
+
* argument separators). the current thinking is that this is required for
|
|
57
|
+
* XLSX import, although that might be incorrect.
|
|
58
|
+
*/
|
|
59
|
+
UnserializeNames(names: SerializedNamed[], active_sheet?: Sheet, force_locale?: boolean): void;
|
|
60
|
+
/**
|
|
61
|
+
* serialize names. ranges are easy, but make sure there's a sheet name
|
|
62
|
+
* in each address (and remove the ID). expressions are a little more
|
|
63
|
+
* complicated.
|
|
64
|
+
*/
|
|
65
|
+
SerializeNames(active_sheet?: Sheet): SerializedNamed[];
|
|
66
|
+
/**
|
|
67
|
+
* putting this here temporarily. it should probably move into a table
|
|
68
|
+
* manager class or something like that.
|
|
69
|
+
*/
|
|
70
|
+
ResolveStructuredReference(ref: UnitStructuredReference, context: ICellAddress): UnitAddress | UnitRange | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* return an address label for this address (single cell or range).
|
|
73
|
+
*
|
|
74
|
+
* this is doing something unexpected: for dynamic arrays, it seems
|
|
75
|
+
* to be filling out the full array. this could be an issue with how
|
|
76
|
+
* we're calling it in the specific case of external editors.
|
|
77
|
+
*
|
|
78
|
+
* there should be no case where this is actually intended, because
|
|
79
|
+
* the resulting label is garbage. nevertheless, I don't want to change
|
|
80
|
+
* any existing behavior so we will move it behind a flag and default to
|
|
81
|
+
* prior behavior. if necessary later we can change the default/remove the
|
|
82
|
+
* old behavior.
|
|
83
|
+
*
|
|
84
|
+
* @param address
|
|
85
|
+
* @param active_sheet
|
|
86
|
+
*/
|
|
87
|
+
AddressToLabel(address: ICellAddress | IArea, correct_dynamic_arrays?: boolean): string;
|
|
88
|
+
/**
|
|
89
|
+
* returns false if the sheet cannot be resolved, which probably
|
|
90
|
+
* means the name changed (that's the case we are working on with
|
|
91
|
+
* this fix).
|
|
92
|
+
*/
|
|
93
|
+
ResolveSheetID(expr: UnitAddress | UnitRange, context?: ICellAddress, active_sheet?: Sheet): boolean;
|
|
94
|
+
/** wrapper method ensures it always returns an Area (instance, not interface) */
|
|
95
|
+
ResolveArea(address: string | ICellAddress | IArea, active_sheet: Sheet, options?: {
|
|
96
|
+
r1c1?: boolean;
|
|
97
|
+
}): Area;
|
|
98
|
+
/**
|
|
99
|
+
* moved from embedded sheet. also modified to preserve ranges, so it
|
|
100
|
+
* might return a range (area). if you are expecting the old behavior
|
|
101
|
+
* you need to check (perhaps we could have a wrapper, or make it optional?)
|
|
102
|
+
*
|
|
103
|
+
* Q: why does this not go in grid? or model? (...)
|
|
104
|
+
* Q: why are we not preserving absoute/relative? (...)
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
ResolveAddress(address: string | ICellAddress | IArea, active_sheet: Sheet, options?: {
|
|
108
|
+
r1c1?: boolean;
|
|
109
|
+
}): ICellAddress | IArea;
|
|
110
|
+
AddConnectedElement(connected_element: ConnectedElementType): number;
|
|
111
|
+
RemoveConnectedElement(id: number): ConnectedElementType | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* identifier for connected elements, used to manage. these need to be
|
|
114
|
+
* unique in the lifetime of a model instance, but no more than that.
|
|
115
|
+
*/
|
|
116
|
+
protected connected_element_id: number;
|
|
117
|
+
/**
|
|
118
|
+
* these are intentionally NOT serialized. they're ephemeral, created
|
|
119
|
+
* at runtime and not persistent.
|
|
120
|
+
*
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
connected_elements: Map<number, ConnectedElementType>;
|
|
124
|
+
/**
|
|
125
|
+
* maps common language (english) -> local language. this should
|
|
126
|
+
* be passed in (actually set via a function).
|
|
127
|
+
*/
|
|
128
|
+
private language_map?;
|
|
129
|
+
/**
|
|
130
|
+
* maps local language -> common (english). this should be constructed
|
|
131
|
+
* when the forward function is passed in, so there's a 1-1 correspondence.
|
|
132
|
+
*/
|
|
133
|
+
private reverse_language_map?;
|
|
134
|
+
/**
|
|
135
|
+
* set the language translation map. this is a set of function names
|
|
136
|
+
* (in english) -> the local equivalent. both should be in canonical form,
|
|
137
|
+
* as that will be used when we translate one way or the other.
|
|
138
|
+
*/
|
|
139
|
+
SetLanguageMap(language_map?: Record<string, string>): void;
|
|
140
|
+
/**
|
|
141
|
+
* translate function from common (english) -> local language. this could
|
|
142
|
+
* be inlined (assuming it's only called in one place), but we are breaking
|
|
143
|
+
* it out so we can develop/test/manage it.
|
|
144
|
+
*/
|
|
145
|
+
TranslateFunction(value: string, options?: {
|
|
146
|
+
r1c1?: boolean;
|
|
147
|
+
}): string;
|
|
148
|
+
/**
|
|
149
|
+
* translate from local language -> common (english).
|
|
150
|
+
* @see TranslateFunction
|
|
151
|
+
*/
|
|
152
|
+
UntranslateFunction(value: string, options?: {
|
|
153
|
+
r1c1?: boolean;
|
|
154
|
+
}): string;
|
|
155
|
+
UntranslateData(value: CellValue | CellValue[] | CellValue[][], options?: {
|
|
156
|
+
r1c1?: boolean;
|
|
157
|
+
}): CellValue | CellValue[] | CellValue[][];
|
|
158
|
+
/**
|
|
159
|
+
* translation back and forth is the same operation, with a different
|
|
160
|
+
* (inverted) map. although it still might be worth inlining depending
|
|
161
|
+
* on cost.
|
|
162
|
+
*
|
|
163
|
+
* FIXME: it's about time we started using proper maps, we dropped
|
|
164
|
+
* support for IE11 some time ago.
|
|
165
|
+
*/
|
|
166
|
+
private TranslateInternal;
|
|
167
|
+
/**
|
|
168
|
+
* this is not public _yet_
|
|
169
|
+
*
|
|
170
|
+
* @internal
|
|
171
|
+
*/
|
|
172
|
+
SetLanguage(model?: LanguageModel): void;
|
|
173
|
+
}
|