@trebco/treb 37.0.1 → 37.1.2
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 +1 -1
- package/build/treb-base-types/src/evaluate-options.d.ts +1 -1
- package/build/treb-base-types/src/font-stack.js +2 -2
- package/build/treb-base-types/src/gradient.js +1 -1
- package/build/treb-base-types/src/import.d.ts +1 -1
- package/build/treb-base-types/src/theme.js +1 -1
- package/build/treb-calculator/src/calculator.d.ts +7 -7
- package/build/treb-calculator/src/calculator.js +4 -4
- package/build/treb-calculator/src/complex-math.d.ts +1 -1
- package/build/treb-calculator/src/dag/array-vertex.d.ts +1 -1
- package/build/treb-calculator/src/dag/graph.d.ts +3 -3
- package/build/treb-calculator/src/dag/graph.js +2 -2
- package/build/treb-calculator/src/dag/spreadsheet_vertex.d.ts +2 -2
- package/build/treb-calculator/src/dag/spreadsheet_vertex.js +1 -1
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.d.ts +1 -1
- package/build/treb-calculator/src/descriptors.d.ts +2 -2
- package/build/treb-calculator/src/expression-calculator.d.ts +4 -4
- package/build/treb-calculator/src/expression-calculator.js +1 -1
- package/build/treb-calculator/src/function-error.d.ts +1 -1
- package/build/treb-calculator/src/function-error.js +1 -1
- package/build/treb-calculator/src/functions/base-functions.js +2 -2
- package/build/treb-calculator/src/functions/checkbox.d.ts +1 -1
- package/build/treb-calculator/src/functions/complex-functions.js +1 -1
- package/build/treb-calculator/src/functions/date-utils.js +1 -1
- package/build/treb-calculator/src/functions/finance-functions.js +1 -1
- package/build/treb-calculator/src/functions/fp.js +1 -1
- package/build/treb-calculator/src/functions/function-utilities.d.ts +1 -1
- package/build/treb-calculator/src/functions/function-utilities.js +1 -1
- package/build/treb-calculator/src/functions/information-functions.js +1 -1
- package/build/treb-calculator/src/functions/lambda-functions.js +1 -1
- package/build/treb-calculator/src/functions/matrix-functions.js +1 -1
- package/build/treb-calculator/src/functions/regex-functions.js +1 -1
- package/build/treb-calculator/src/functions/sparkline.d.ts +1 -1
- package/build/treb-calculator/src/functions/sparkline.js +1 -1
- package/build/treb-calculator/src/functions/statistics-functions.js +1 -1
- package/build/treb-calculator/src/functions/text-functions.js +2 -2
- package/build/treb-calculator/src/notifier-types.d.ts +1 -1
- package/build/treb-calculator/src/primitives.d.ts +1 -1
- package/build/treb-calculator/src/primitives.js +1 -1
- package/build/treb-calculator/src/utilities.d.ts +1 -1
- package/build/treb-calculator/src/utilities.js +1 -1
- package/build/treb-charts/src/chart-functions.d.ts +1 -1
- package/build/treb-charts/src/chart-functions.js +1 -1
- package/build/treb-charts/src/chart-types.d.ts +3 -3
- package/build/treb-charts/src/chart-types.js +1 -1
- package/build/treb-charts/src/chart-utils.d.ts +2 -2
- package/build/treb-charts/src/chart-utils.js +2 -2
- package/build/treb-charts/src/chart.d.ts +1 -1
- package/build/treb-charts/src/renderer.d.ts +1 -1
- package/build/treb-charts/src/util.d.ts +1 -1
- package/build/treb-charts/src/util.js +1 -1
- package/build/treb-data-model/src/annotation.d.ts +2 -2
- package/build/treb-data-model/src/annotation.js +1 -1
- package/build/treb-data-model/src/conditional_format.d.ts +1 -1
- package/build/treb-data-model/src/data-validation.d.ts +1 -1
- package/build/treb-data-model/src/data_model.d.ts +3 -3
- package/build/treb-data-model/src/data_model.js +3 -3
- package/build/treb-data-model/src/named.d.ts +3 -3
- package/build/treb-data-model/src/named.js +1 -1
- package/build/treb-data-model/src/sheet.d.ts +2 -2
- package/build/treb-data-model/src/sheet.js +4 -4
- package/build/treb-data-model/src/sheet_selection.d.ts +1 -1
- package/build/treb-data-model/src/sheet_selection.js +1 -1
- package/build/treb-data-model/src/sheet_types.d.ts +1 -1
- package/build/treb-data-model/src/types.d.ts +3 -3
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.d.ts +2 -2
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.js +5 -5
- package/build/treb-embed/src/embedded-spreadsheet.d.ts +13 -13
- package/build/treb-embed/src/embedded-spreadsheet.js +10 -10
- package/build/treb-embed/src/options.d.ts +2 -2
- package/build/treb-embed/src/selection-state.d.ts +2 -2
- package/build/treb-embed/src/spinner.js +1 -1
- package/build/treb-embed/src/toolbar-message.d.ts +1 -1
- package/build/treb-embed/src/types.d.ts +2 -2
- package/build/treb-embed/tsconfig.tsbuildinfo +1 -1
- package/build/treb-export/src/drawing/chart.d.ts +1 -1
- package/build/treb-export/src/drawing/chart.js +1 -1
- package/build/treb-export/src/export.d.ts +4 -4
- package/build/treb-export/src/export.js +2 -2
- package/build/treb-export/src/import-export-messages.d.ts +2 -2
- package/build/treb-export/src/import.d.ts +4 -4
- package/build/treb-export/src/import.js +2 -2
- package/build/treb-export/src/index.worker.js +1 -1
- package/build/treb-export/src/workbook-style.d.ts +1 -1
- package/build/treb-export/src/workbook-style.js +2 -2
- package/build/treb-export/src/workbook.d.ts +2 -2
- package/build/treb-format/src/format.d.ts +1 -1
- package/build/treb-format/src/format.js +1 -1
- package/build/treb-format/src/format_parser.d.ts +1 -1
- package/build/treb-format/src/format_parser.js +1 -1
- package/build/treb-format/src/number_format_section.d.ts +1 -1
- package/build/treb-format/src/value_parser.d.ts +2 -2
- package/build/treb-format/src/value_parser.js +1 -1
- package/build/treb-grid/src/editors/autocomplete.d.ts +1 -1
- package/build/treb-grid/src/editors/autocomplete.js +1 -1
- package/build/treb-grid/src/editors/autocomplete_matcher.js +1 -1
- package/build/treb-grid/src/editors/editor.d.ts +5 -5
- package/build/treb-grid/src/editors/editor.js +3 -3
- package/build/treb-grid/src/editors/formula_bar.d.ts +1 -1
- package/build/treb-grid/src/editors/formula_bar.js +2 -2
- package/build/treb-grid/src/editors/overlay_editor.d.ts +2 -2
- package/build/treb-grid/src/editors/overlay_editor.js +2 -2
- package/build/treb-grid/src/layout/base_layout.d.ts +6 -6
- package/build/treb-grid/src/layout/base_layout.js +3 -3
- package/build/treb-grid/src/layout/grid_layout.d.ts +2 -2
- package/build/treb-grid/src/layout/grid_layout.js +1 -1
- package/build/treb-grid/src/layout/mock-layout.d.ts +1 -1
- package/build/treb-grid/src/render/selection-renderer.d.ts +3 -3
- package/build/treb-grid/src/render/selection-renderer.js +1 -1
- package/build/treb-grid/src/render/svg_header_overlay.d.ts +1 -1
- package/build/treb-grid/src/render/svg_header_overlay.js +1 -1
- package/build/treb-grid/src/render/svg_selection_block.d.ts +1 -1
- package/build/treb-grid/src/render/svg_selection_block.js +1 -1
- package/build/treb-grid/src/render/tile_renderer.d.ts +3 -3
- package/build/treb-grid/src/render/tile_renderer.js +2 -2
- package/build/treb-grid/src/types/clipboard_data.d.ts +1 -1
- package/build/treb-grid/src/types/clipboard_data2.d.ts +1 -1
- package/build/treb-grid/src/types/external_editor_config.d.ts +1 -1
- package/build/treb-grid/src/types/grid.d.ts +5 -5
- package/build/treb-grid/src/types/grid.js +6 -6
- package/build/treb-grid/src/types/grid_base.d.ts +6 -6
- package/build/treb-grid/src/types/grid_base.js +5 -5
- package/build/treb-grid/src/types/grid_command.d.ts +3 -3
- package/build/treb-grid/src/types/grid_events.d.ts +2 -2
- package/build/treb-grid/src/types/grid_options.d.ts +1 -1
- package/build/treb-grid/src/types/scale-control.d.ts +1 -1
- package/build/treb-grid/src/types/scale-control.js +4 -4
- package/build/treb-grid/src/types/tab_bar.d.ts +3 -3
- package/build/treb-grid/src/types/tab_bar.js +2 -2
- package/build/treb-grid/src/types/tile.d.ts +1 -1
- package/build/treb-grid/src/types/update_flags.d.ts +1 -1
- package/dist/{chunk-E35ONJUS.mjs → chunk-UFKGUUNF.mjs} +1 -1
- package/dist/treb-export-worker.mjs +2 -2
- package/dist/treb-spreadsheet.mjs +4 -4
- package/dist/treb.d.ts +1 -1
- package/package.json +1 -1
- package/postprocess.ts +70 -0
package/build/package.json
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { UA } from 'treb-grid';
|
|
22
|
-
import { Measurement } from 'treb-utils';
|
|
21
|
+
import { UA } from '../../treb-grid/src/index';
|
|
22
|
+
import { Measurement } from '../../treb-utils/src/index';
|
|
23
23
|
import { Style } from './style';
|
|
24
24
|
/**
|
|
25
25
|
* these are the stacks we're currently supporting.
|
|
@@ -3,7 +3,7 @@ import type { SerializedValueType } from './value-type';
|
|
|
3
3
|
import type { IArea } from './area';
|
|
4
4
|
import type { AnnotationLayout } from './layout';
|
|
5
5
|
import type { Table } from './table';
|
|
6
|
-
import type { DataValidation, AnnotationType, ConditionalFormat } from 'treb-data-model';
|
|
6
|
+
import type { DataValidation, AnnotationType, ConditionalFormat } from '../../treb-data-model/src/index';
|
|
7
7
|
export interface CellParseResult {
|
|
8
8
|
row: number;
|
|
9
9
|
column: number;
|
|
@@ -22,7 +22,7 @@ import { IsHTMLColor, IsThemeColor, ThemeColorIndex } from './style';
|
|
|
22
22
|
import { ColorFunctions } from './color';
|
|
23
23
|
// import * as LCHColorFunctions from './color2';
|
|
24
24
|
import { DOMContext } from './dom-utilities';
|
|
25
|
-
import { Measurement } from 'treb-utils';
|
|
25
|
+
import { Measurement } from '../../treb-utils/src/index';
|
|
26
26
|
import { font_stack_names, GenerateFontStack } from './font-stack';
|
|
27
27
|
/**
|
|
28
28
|
* @internal
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { Cell, ICellAddress, ICellAddress2, UnionValue, EvaluateOptions, ArrayUnion, IArea, CellDataWithAddress, CellValue, Cells } from 'treb-base-types';
|
|
2
|
-
import { Area } from 'treb-base-types';
|
|
3
|
-
import type { ExpressionUnit, DependencyList, UnitRange, UnitAddress, UnitIdentifier } from 'treb-parser';
|
|
4
|
-
import { Parser, DecimalMarkType } from 'treb-parser';
|
|
1
|
+
import type { Cell, ICellAddress, ICellAddress2, UnionValue, EvaluateOptions, ArrayUnion, IArea, CellDataWithAddress, CellValue, Cells } from '../../treb-base-types/src/index';
|
|
2
|
+
import { Area } from '../../treb-base-types/src/index';
|
|
3
|
+
import type { ExpressionUnit, DependencyList, UnitRange, UnitAddress, UnitIdentifier } from '../../treb-parser/src/index';
|
|
4
|
+
import { Parser, DecimalMarkType } from '../../treb-parser/src/index';
|
|
5
5
|
import { Graph } from './dag/graph';
|
|
6
6
|
import type { SpreadsheetVertex } from './dag/spreadsheet_vertex';
|
|
7
7
|
import type { CalculationResult } from './dag/spreadsheet_vertex_base';
|
|
8
8
|
import { ExpressionCalculator } from './expression-calculator';
|
|
9
9
|
import { FunctionLibrary } from './function-library';
|
|
10
10
|
import type { FunctionMap } from './descriptors';
|
|
11
|
-
import type { FunctionDescriptor } from 'treb-grid';
|
|
11
|
+
import type { FunctionDescriptor } from '../../treb-grid/src/index';
|
|
12
12
|
import type { LeafVertex } from './dag/graph';
|
|
13
13
|
import { StateLeafVertex } from './dag/state_leaf_vertex';
|
|
14
|
-
import { Sheet } from 'treb-data-model';
|
|
15
|
-
import type { Annotation, DataModel, ConnectedElementType, ConditionalFormat } from 'treb-data-model';
|
|
14
|
+
import { Sheet } from '../../treb-data-model/src/index';
|
|
15
|
+
import type { Annotation, DataModel, ConnectedElementType, ConditionalFormat } from '../../treb-data-model/src/index';
|
|
16
16
|
/**
|
|
17
17
|
* we're providing a runtime option for how to handle complex numbers.
|
|
18
18
|
* we will need to pass that into the calculator when it's created to
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { Localization, Area, ValueType, IsCellAddress } from 'treb-base-types';
|
|
22
|
-
import { Parser, DecimalMarkType, QuotedSheetNameRegex } from 'treb-parser';
|
|
21
|
+
import { Localization, Area, ValueType, IsCellAddress } from '../../treb-base-types/src/index';
|
|
22
|
+
import { Parser, DecimalMarkType, QuotedSheetNameRegex } from '../../treb-parser/src/index';
|
|
23
23
|
import { Graph } from './dag/graph';
|
|
24
24
|
import { ExpressionCalculator, UnionIsMetadata } from './expression-calculator';
|
|
25
25
|
import * as Utilities from './utilities';
|
|
@@ -41,8 +41,8 @@ import * as Primitives from './primitives';
|
|
|
41
41
|
import { ArgumentError, ReferenceError, UnknownError, ValueError, ExpressionError, NAError, DivideByZeroError, NotImplError } from './function-error';
|
|
42
42
|
import { StateLeafVertex } from './dag/state_leaf_vertex';
|
|
43
43
|
import { CalculationLeafVertex } from './dag/calculation_leaf_vertex';
|
|
44
|
-
import { Sheet } from 'treb-data-model';
|
|
45
|
-
import { ValueParser } from 'treb-format';
|
|
44
|
+
import { Sheet } from '../../treb-data-model/src/index';
|
|
45
|
+
import { ValueParser } from '../../treb-format/src/index';
|
|
46
46
|
/**
|
|
47
47
|
* breaking this out so we can use it for export (TODO)
|
|
48
48
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Vertex } from './vertex';
|
|
2
2
|
import { type GraphCallbacks, SpreadsheetVertexBase } from './spreadsheet_vertex_base';
|
|
3
|
-
import type { Area, ICellAddress2 } from 'treb-base-types';
|
|
3
|
+
import type { Area, ICellAddress2 } from '../../../treb-base-types/src/index';
|
|
4
4
|
/**
|
|
5
5
|
* this is a new cut at array vertices. unlike the old version, we are not
|
|
6
6
|
* trying to reduce the number of vertices (and in fact we won't). this is
|
|
@@ -2,9 +2,9 @@ import type { Vertex } from './vertex';
|
|
|
2
2
|
import { SpreadsheetVertex } from './spreadsheet_vertex';
|
|
3
3
|
import type { SpreadsheetVertexBase, CalculationResult, GraphCallbacks } from './spreadsheet_vertex_base';
|
|
4
4
|
import type { StateLeafVertex } from './state_leaf_vertex';
|
|
5
|
-
import type { ICellAddress, IArea, UnionValue } from 'treb-base-types';
|
|
6
|
-
import { Area } from 'treb-base-types';
|
|
7
|
-
import type { DataModel } from 'treb-data-model';
|
|
5
|
+
import type { ICellAddress, IArea, UnionValue } from '../../../treb-base-types/src/index';
|
|
6
|
+
import { Area } from '../../../treb-base-types/src/index';
|
|
7
|
+
import type { DataModel } from '../../../treb-data-model/src/index';
|
|
8
8
|
import { CalculationLeafVertex } from './calculation_leaf_vertex';
|
|
9
9
|
export type LeafVertex = StateLeafVertex | CalculationLeafVertex;
|
|
10
10
|
export type { StateLeafVertex };
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
import { Color } from './vertex';
|
|
22
22
|
import { SpreadsheetVertex } from './spreadsheet_vertex';
|
|
23
23
|
import { ArrayVertex } from './array-vertex';
|
|
24
|
-
import { Area } from 'treb-base-types';
|
|
24
|
+
import { Area } from '../../../treb-base-types/src/index';
|
|
25
25
|
import { CalculationLeafVertex } from './calculation_leaf_vertex';
|
|
26
|
-
import { AreaUtils } from 'treb-base-types';
|
|
26
|
+
import { AreaUtils } from '../../../treb-base-types/src/index';
|
|
27
27
|
// FIXME: this is a bad habit if you're testing on falsy for OK.
|
|
28
28
|
export var GraphStatus;
|
|
29
29
|
(function (GraphStatus) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GraphCallbacks } from './spreadsheet_vertex_base';
|
|
2
2
|
import { SpreadsheetVertexBase } from './spreadsheet_vertex_base';
|
|
3
|
-
import type { Cell, ICellAddress, UnionValue } from 'treb-base-types';
|
|
4
|
-
import type { ExpressionUnit } from 'treb-parser';
|
|
3
|
+
import type { Cell, ICellAddress, UnionValue } from '../../../treb-base-types/src/index';
|
|
4
|
+
import type { ExpressionUnit } from '../../../treb-parser/src/index';
|
|
5
5
|
export declare enum SpreadsheetError {
|
|
6
6
|
None = 0,
|
|
7
7
|
CalculationError = 1
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
import { SpreadsheetVertexBase } from './spreadsheet_vertex_base';
|
|
22
|
-
import { Box, ValueType } from 'treb-base-types';
|
|
22
|
+
import { Box, ValueType } from '../../../treb-base-types/src/index';
|
|
23
23
|
import { Color } from './vertex';
|
|
24
24
|
import { ErrorType } from '../function-error';
|
|
25
25
|
export var SpreadsheetError;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RenderFunction, ClickFunction, UnionValue, ICellAddress, IArea, FunctionUnion } from 'treb-base-types';
|
|
2
|
-
import type { ExpressionUnit } from 'treb-parser';
|
|
1
|
+
import type { RenderFunction, ClickFunction, UnionValue, ICellAddress, IArea, FunctionUnion } from '../../treb-base-types/src/index';
|
|
2
|
+
import type { ExpressionUnit } from '../../treb-parser/src/index';
|
|
3
3
|
/**
|
|
4
4
|
* FIXME: possible to add stuff in here if we need it
|
|
5
5
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FunctionLibrary } from './function-library';
|
|
2
|
-
import type { Cell, ICellAddress, UnionValue, CellValue, ArrayUnion, IArea, FunctionUnion } from 'treb-base-types';
|
|
3
|
-
import { ValueType } from 'treb-base-types';
|
|
4
|
-
import type { Parser, ExpressionUnit, UnitBinary, UnitIdentifier, UnitGroup, UnitUnary, UnitAddress, UnitCall, UnitDimensionedQuantity, UnitStructuredReference, UnitImplicitCall } from 'treb-parser';
|
|
5
|
-
import type { DataModel, MacroFunction } from 'treb-data-model';
|
|
2
|
+
import type { Cell, ICellAddress, UnionValue, CellValue, ArrayUnion, IArea, FunctionUnion } from '../../treb-base-types/src/index';
|
|
3
|
+
import { ValueType } from '../../treb-base-types/src/index';
|
|
4
|
+
import type { Parser, ExpressionUnit, UnitBinary, UnitIdentifier, UnitGroup, UnitUnary, UnitAddress, UnitCall, UnitDimensionedQuantity, UnitStructuredReference, UnitImplicitCall } from '../../treb-parser/src/index';
|
|
5
|
+
import type { DataModel, MacroFunction } from '../../treb-data-model/src/index';
|
|
6
6
|
import * as Primitives from './primitives';
|
|
7
7
|
/**
|
|
8
8
|
* dynamically adding a user data field to the expression so we can
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType, GetValueType, Area } from 'treb-base-types';
|
|
21
|
+
import { ValueType, GetValueType, Area } from '../../treb-base-types/src/index';
|
|
22
22
|
import { NameError, ReferenceError, ExpressionError, UnknownError, SpillError, ValueError, ArgumentError } from './function-error';
|
|
23
23
|
import * as Primitives from './primitives';
|
|
24
24
|
// FIXME: move
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
import * as Utils from '../utilities';
|
|
22
22
|
// import { StringUnion, NumberUnion } from '../utilities';
|
|
23
23
|
import { ReferenceError, NAError, ArgumentError, DivideByZeroError, ValueError } from '../function-error';
|
|
24
|
-
import { Box, ValueType, GetValueType, ComplexOrReal, IsComplex, Area } from 'treb-base-types';
|
|
24
|
+
import { Box, ValueType, GetValueType, ComplexOrReal, IsComplex, Area } from '../../../treb-base-types/src/index';
|
|
25
25
|
import { Sparkline } from './sparkline';
|
|
26
|
-
import { LotusDate, UnlotusDate } from 'treb-format';
|
|
26
|
+
import { LotusDate, UnlotusDate } from '../../../treb-format/src/index';
|
|
27
27
|
import { ClickCheckbox, RenderCheckbox } from './checkbox';
|
|
28
28
|
import { UnionIsMetadata } from '../expression-calculator';
|
|
29
29
|
import { Exp as ComplexExp, Power as ComplexPower, Multiply as ComplexMultply } from '../complex-math';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RenderFunctionOptions, ClickFunctionOptions, ClickFunctionResult, RenderFunctionResult } from 'treb-base-types';
|
|
1
|
+
import type { RenderFunctionOptions, ClickFunctionOptions, ClickFunctionResult, RenderFunctionResult } from '../../../treb-base-types/src/index';
|
|
2
2
|
export declare const ClickCheckbox: (options: ClickFunctionOptions) => ClickFunctionResult;
|
|
3
3
|
export declare const RenderCheckbox: (options: RenderFunctionOptions) => RenderFunctionResult;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { IsComplex, ValueType } from 'treb-base-types';
|
|
21
|
+
import { IsComplex, ValueType } from '../../../treb-base-types/src/index';
|
|
22
22
|
// import * as Utils from '../utilities';
|
|
23
23
|
import { ValueError } from '../function-error';
|
|
24
24
|
import { RectangularToPolar } from '../complex-math';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { UnlotusDate } from 'treb-format';
|
|
21
|
+
import { UnlotusDate } from '../../../treb-format/src/index';
|
|
22
22
|
export const DaysInYear = (year) => {
|
|
23
23
|
return (year % 4 === 0 && (year % 100 !== 0 || year === 1900)) ? 366 : 365;
|
|
24
24
|
};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType } from 'treb-base-types';
|
|
21
|
+
import { ValueType } from '../../../treb-base-types/src/index';
|
|
22
22
|
import { FlattenCellValues } from '../utilities';
|
|
23
23
|
import { ArgumentError, ValueError } from '../function-error';
|
|
24
24
|
// use a single, static object for base functions
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { Box, ValueType } from 'treb-base-types';
|
|
21
|
+
import { Box, ValueType } from '../../../treb-base-types/src/index';
|
|
22
22
|
import { ArgumentError, ValueError } from '../function-error';
|
|
23
23
|
import { FlattenCellValues } from '../utilities';
|
|
24
24
|
export const FPFunctionLibrary = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UnionValue, Complex } from 'treb-base-types';
|
|
1
|
+
import type { UnionValue, Complex } from '../../../treb-base-types/src/index';
|
|
2
2
|
export declare const CoerceComplex: (value: UnionValue) => Complex | false;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType } from 'treb-base-types';
|
|
21
|
+
import { ValueType } from '../../../treb-base-types/src/index';
|
|
22
22
|
export const LambdaFunctionLibrary = {
|
|
23
23
|
Lambda: {
|
|
24
24
|
// FIXME: we could use the create_binding_context callback
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType, ComplexOrReal } from 'treb-base-types';
|
|
21
|
+
import { ValueType, ComplexOrReal } from '../../../treb-base-types/src/index';
|
|
22
22
|
import { ValueError } from '../function-error';
|
|
23
23
|
import * as ComplexMath from '../complex-math';
|
|
24
24
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ever used in spreadsheets.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import { type Cell, type CellStyle } from 'treb-base-types';
|
|
10
|
+
import { type Cell, type CellStyle } from '../../../treb-base-types/src/index';
|
|
11
11
|
export interface SparklineRenderOptions {
|
|
12
12
|
context: CanvasRenderingContext2D;
|
|
13
13
|
width: number;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* ever used in spreadsheets.
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
import { IsHTMLColor } from 'treb-base-types';
|
|
30
|
+
import { IsHTMLColor } from '../../../treb-base-types/src/index';
|
|
31
31
|
var LineOperation;
|
|
32
32
|
(function (LineOperation) {
|
|
33
33
|
LineOperation[LineOperation["move"] = 0] = "move";
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import * as Utils from '../utilities';
|
|
22
22
|
import { ValueError, ArgumentError, NAError } from '../function-error';
|
|
23
|
-
import { ValueType, ComplexOrReal } from 'treb-base-types';
|
|
23
|
+
import { ValueType, ComplexOrReal } from '../../../treb-base-types/src/index';
|
|
24
24
|
import * as ComplexMath from '../complex-math';
|
|
25
25
|
import { BetaCDF, BetaPDF, InverseBeta, LnGamma } from './beta';
|
|
26
26
|
import { gamma_p } from './gamma';
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { NumberFormatCache, ValueParser } from 'treb-format';
|
|
22
|
-
import { Localization, ValueType } from 'treb-base-types';
|
|
21
|
+
import { NumberFormatCache, ValueParser } from '../../../treb-format/src/index';
|
|
22
|
+
import { Localization, ValueType } from '../../../treb-base-types/src/index';
|
|
23
23
|
import * as Utils from '../utilities';
|
|
24
24
|
import { ArgumentError, ValueError } from '../function-error';
|
|
25
25
|
export const TextFunctionLibrary = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UnionValue } from 'treb-base-types';
|
|
1
|
+
import type { UnionValue } from '../../treb-base-types/src/index';
|
|
2
2
|
export type PrimitiveBinaryExpression = (a: UnionValue, b: UnionValue) => UnionValue;
|
|
3
3
|
export declare const Add: (a: UnionValue, b: UnionValue) => UnionValue;
|
|
4
4
|
export declare const Subtract: (a: UnionValue, b: UnionValue) => UnionValue;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType } from 'treb-base-types';
|
|
21
|
+
import { ValueType } from '../../treb-base-types/src/index';
|
|
22
22
|
import { DivideByZeroError, ValueError } from './function-error';
|
|
23
23
|
import * as ComplexLib from './complex-math';
|
|
24
24
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellValue, UnionValue } from 'treb-base-types';
|
|
1
|
+
import type { CellValue, UnionValue } from '../../treb-base-types/src/index';
|
|
2
2
|
export declare const DAY_MS: number;
|
|
3
3
|
export declare const IsArrayOrTypedArray: (test: unknown) => boolean;
|
|
4
4
|
export declare const Transpose2: <T>(arr: T[][]) => T[][];
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType } from 'treb-base-types';
|
|
21
|
+
import { ValueType } from '../../treb-base-types/src/index';
|
|
22
22
|
export const DAY_MS = 1000 * 60 * 60 * 24;
|
|
23
23
|
export const IsArrayOrTypedArray = (test) => {
|
|
24
24
|
return Array.isArray(test) || (test instanceof Float64Array) || (test instanceof Float64Array);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompositeFunctionDescriptor } from 'treb-calculator/src/descriptors';
|
|
1
|
+
import type { CompositeFunctionDescriptor } from '../../treb-calculator/src/descriptors';
|
|
2
2
|
export type ChartFunction = 'Bar.Chart' | 'Line.Chart' | 'Area.Chart' | 'Column.Chart' | 'Bubble.Chart' | 'Donut.Chart' | 'Pie.Chart' | 'Scatter.Line' | 'Scatter.Plot' | 'Box.Plot';
|
|
3
3
|
type SupportFunction = 'Group' | 'Series';
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { RangeScale } from 'treb-utils';
|
|
1
|
+
import type { RangeScale } from '../../treb-utils/src/index';
|
|
2
2
|
import type { Area } from './rectangle';
|
|
3
|
-
import type { UnitAddress } from 'treb-parser';
|
|
4
|
-
import { type ArrayUnion, type CellValue, type ExtendedUnion, type UnionValue } from 'treb-base-types';
|
|
3
|
+
import type { UnitAddress } from '../../treb-parser/src/index';
|
|
4
|
+
import { type ArrayUnion, type CellValue, type ExtendedUnion, type UnionValue } from '../../treb-base-types/src/index';
|
|
5
5
|
export interface ReferenceMetadata {
|
|
6
6
|
type: 'metadata';
|
|
7
7
|
address: UnitAddress;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType } from 'treb-base-types';
|
|
21
|
+
import { ValueType } from '../../treb-base-types/src/index';
|
|
22
22
|
export const IsMetadata = (value) => {
|
|
23
23
|
return (!!value && (typeof value === 'object')
|
|
24
24
|
&& value.key === 'metadata'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type UnionValue, type ArrayUnion } from 'treb-base-types';
|
|
1
|
+
import { type UnionValue, type ArrayUnion } from '../../treb-base-types/src/index';
|
|
2
2
|
import type { SeriesType, ChartData } from './chart-types';
|
|
3
3
|
import type { ReferenceSeries } from './chart-types';
|
|
4
|
-
import type { RangeScale } from 'treb-utils';
|
|
4
|
+
import type { RangeScale } from '../../treb-utils/src/index';
|
|
5
5
|
export declare const ArrayMinMax: (data: number[]) => {
|
|
6
6
|
min: number;
|
|
7
7
|
max: number;
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { ValueType, IsComplex } from 'treb-base-types';
|
|
21
|
+
import { ValueType, IsComplex } from '../../treb-base-types/src/index';
|
|
22
22
|
import { IsArrayUnion, IsMetadata, IsSeries, LegendStyle } from './chart-types';
|
|
23
|
-
import { NumberFormatCache } from 'treb-format';
|
|
23
|
+
import { NumberFormatCache } from '../../treb-format/src/index';
|
|
24
24
|
import { Util } from './util';
|
|
25
25
|
import { QuickSort } from './quicksort';
|
|
26
26
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChartRenderer } from './renderer-type';
|
|
2
2
|
import type { ChartData } from './chart-types';
|
|
3
|
-
import type { ExtendedUnion } from 'treb-base-types';
|
|
3
|
+
import type { ExtendedUnion } from '../../treb-base-types/src/index';
|
|
4
4
|
import type { ChartFunction } from './chart-functions';
|
|
5
5
|
/**
|
|
6
6
|
* transitioning to new structure, this should mirror the old chart
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Size, Point } from './rectangle';
|
|
2
2
|
import { Area } from './rectangle';
|
|
3
3
|
import type { BoxPlotData, DonutSlice, LegendOptions, SeriesType } from './chart-types';
|
|
4
|
-
import type { RangeScale } from 'treb-utils';
|
|
4
|
+
import type { RangeScale } from '../../treb-utils/src/index';
|
|
5
5
|
export interface Metrics {
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICellAddress, AnnotationLayout, IRectangle, CellStyle } from 'treb-base-types';
|
|
2
|
-
import { Rectangle } from 'treb-base-types';
|
|
1
|
+
import type { ICellAddress, AnnotationLayout, IRectangle, CellStyle } from '../../treb-base-types/src/index';
|
|
2
|
+
import { Rectangle } from '../../treb-base-types/src/index';
|
|
3
3
|
/**
|
|
4
4
|
* moving view-specific data into a separate interface to support split.
|
|
5
5
|
* nothing in view is serialized.
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* info@treb.app
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
import { Rectangle } from 'treb-base-types';
|
|
21
|
+
import { Rectangle } from '../../treb-base-types/src/index';
|
|
22
22
|
/**
|
|
23
23
|
* new annotation class. annotations are arbitrary content
|
|
24
24
|
* inserted into the sheet, using a floating div element. the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CellStyle, EvaluateOptions, IArea, Color, Gradient, GradientStop, UnionValue } from 'treb-base-types';
|
|
1
|
+
import type { CellStyle, EvaluateOptions, IArea, Color, Gradient, GradientStop, UnionValue } from '../../treb-base-types/src/index';
|
|
2
2
|
interface VertexPlaceholder {
|
|
3
3
|
result: UnionValue;
|
|
4
4
|
updated: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Sheet } from './sheet';
|
|
2
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';
|
|
3
|
+
import { type UnitAddress, type UnitStructuredReference, type UnitRange, Parser } from '../../treb-parser/src/index';
|
|
4
|
+
import type { IArea, ICellAddress, Table, CellStyle, CellValue } from '../../treb-base-types/src/index';
|
|
5
|
+
import { Area } from '../../treb-base-types/src/index';
|
|
6
6
|
import type { SerializedNamed } from './named';
|
|
7
7
|
import { NamedRangeManager } from './named';
|
|
8
8
|
import type { ConnectedElementType, MacroFunction } from './types';
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
import { SheetCollection } from './sheet_collection';
|
|
22
|
-
import { Parser, QuotedSheetNameRegex, DecimalMarkType, ArgumentSeparatorType } from 'treb-parser';
|
|
23
|
-
import { Is2DArray } from 'treb-base-types';
|
|
24
|
-
import { Area, IsCellAddress, Style } from 'treb-base-types';
|
|
22
|
+
import { Parser, QuotedSheetNameRegex, DecimalMarkType, ArgumentSeparatorType } from '../../treb-parser/src/index';
|
|
23
|
+
import { Is2DArray } from '../../treb-base-types/src/index';
|
|
24
|
+
import { Area, IsCellAddress, Style } from '../../treb-base-types/src/index';
|
|
25
25
|
import { NamedRangeManager } from './named';
|
|
26
26
|
/**
|
|
27
27
|
*
|