@trebco/treb 27.5.3 → 27.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/treb-spreadsheet.mjs +14 -14
- package/dist/treb.d.ts +37 -23
- package/notes/conditional-fomratring.md +29 -0
- package/package.json +3 -3
- package/treb-base-types/src/area.ts +181 -0
- package/treb-base-types/src/evaluate-options.ts +21 -0
- package/treb-base-types/src/gradient.ts +97 -0
- package/treb-base-types/src/import.ts +2 -1
- package/treb-base-types/src/index.ts +2 -0
- package/treb-calculator/src/calculator.ts +205 -132
- package/treb-calculator/src/dag/calculation_leaf_vertex.ts +97 -0
- package/treb-calculator/src/dag/graph.ts +10 -22
- package/treb-calculator/src/dag/{leaf_vertex.ts → state_leaf_vertex.ts} +3 -3
- package/treb-calculator/src/descriptors.ts +10 -3
- package/treb-calculator/src/expression-calculator.ts +1 -1
- package/treb-calculator/src/function-library.ts +25 -22
- package/treb-calculator/src/functions/base-functions.ts +166 -5
- package/treb-calculator/src/index.ts +6 -6
- package/treb-calculator/src/notifier-types.ts +1 -1
- package/treb-calculator/src/utilities.ts +2 -2
- package/treb-charts/src/util.ts +2 -2
- package/treb-embed/src/embedded-spreadsheet.ts +382 -71
- package/treb-embed/style/formula-bar.scss +2 -0
- package/treb-embed/style/theme-defaults.scss +46 -15
- package/treb-export/src/export-worker/export-worker.ts +0 -13
- package/treb-export/src/export2.ts +187 -2
- package/treb-export/src/import2.ts +169 -4
- package/treb-export/src/workbook-style2.ts +56 -8
- package/treb-export/src/workbook2.ts +10 -1
- package/treb-grid/src/editors/editor.ts +1276 -0
- package/treb-grid/src/editors/external_editor.ts +113 -0
- package/treb-grid/src/editors/formula_bar.ts +450 -474
- package/treb-grid/src/editors/overlay_editor.ts +437 -512
- package/treb-grid/src/index.ts +2 -1
- package/treb-grid/src/layout/base_layout.ts +24 -16
- package/treb-grid/src/render/tile_renderer.ts +2 -1
- package/treb-grid/src/types/conditional_format.ts +168 -0
- package/treb-grid/src/types/data_model.ts +130 -3
- package/treb-grid/src/types/external_editor_config.ts +47 -0
- package/treb-grid/src/types/grid.ts +96 -45
- package/treb-grid/src/types/grid_base.ts +187 -35
- package/treb-grid/src/types/scale-control.ts +1 -1
- package/treb-grid/src/types/sheet.ts +330 -26
- package/treb-grid/src/types/sheet_types.ts +4 -0
- package/treb-grid/src/util/dom_utilities.ts +58 -25
- package/treb-grid/src/editors/formula_editor_base.ts +0 -912
- package/treb-grid/src/types/external_editor.ts +0 -27
- /package/{README-shadow-DOM.md → notes/shadow-DOM.md} +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { IArea, ICellAddress } from "treb-base-types";
|
|
3
|
-
|
|
4
|
-
export type DependencyList = Array<IArea|ICellAddress|undefined>;
|
|
5
|
-
export type ExternalEditorCallback = (selection?: string) => DependencyList|undefined;
|
|
6
|
-
|
|
7
|
-
export interface ExternalEditorType {
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* list of dependencies to highlight. we support undefined entries in
|
|
11
|
-
* this list so you can use the result of `EmbeddedSpreadsheet.Resolve`,
|
|
12
|
-
* which may return undefined.
|
|
13
|
-
*/
|
|
14
|
-
dependencies: DependencyList;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* this callback will be called when the selection changes in the
|
|
18
|
-
* spreadsheet and this external editor is active. return an updated
|
|
19
|
-
* list of dependencies to highlight.
|
|
20
|
-
*
|
|
21
|
-
* NOTE: this is currently synchronous, but don't rely on that. it
|
|
22
|
-
* might switch to async in the future depending on how it works in
|
|
23
|
-
* practice.
|
|
24
|
-
*/
|
|
25
|
-
update: ExternalEditorCallback;
|
|
26
|
-
|
|
27
|
-
}
|
|
File without changes
|