@trebco/treb 37.1.0 → 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.
Files changed (136) hide show
  1. package/build/package.json +1 -1
  2. package/build/treb-base-types/src/evaluate-options.d.ts +1 -1
  3. package/build/treb-base-types/src/font-stack.js +2 -2
  4. package/build/treb-base-types/src/gradient.js +1 -1
  5. package/build/treb-base-types/src/import.d.ts +1 -1
  6. package/build/treb-base-types/src/theme.js +1 -1
  7. package/build/treb-calculator/src/calculator.d.ts +7 -7
  8. package/build/treb-calculator/src/calculator.js +4 -4
  9. package/build/treb-calculator/src/complex-math.d.ts +1 -1
  10. package/build/treb-calculator/src/dag/array-vertex.d.ts +1 -1
  11. package/build/treb-calculator/src/dag/graph.d.ts +3 -3
  12. package/build/treb-calculator/src/dag/graph.js +2 -2
  13. package/build/treb-calculator/src/dag/spreadsheet_vertex.d.ts +2 -2
  14. package/build/treb-calculator/src/dag/spreadsheet_vertex.js +1 -1
  15. package/build/treb-calculator/src/dag/spreadsheet_vertex_base.d.ts +1 -1
  16. package/build/treb-calculator/src/descriptors.d.ts +2 -2
  17. package/build/treb-calculator/src/expression-calculator.d.ts +4 -4
  18. package/build/treb-calculator/src/expression-calculator.js +1 -1
  19. package/build/treb-calculator/src/function-error.d.ts +1 -1
  20. package/build/treb-calculator/src/function-error.js +1 -1
  21. package/build/treb-calculator/src/functions/base-functions.js +2 -2
  22. package/build/treb-calculator/src/functions/checkbox.d.ts +1 -1
  23. package/build/treb-calculator/src/functions/complex-functions.js +1 -1
  24. package/build/treb-calculator/src/functions/date-utils.js +1 -1
  25. package/build/treb-calculator/src/functions/finance-functions.js +1 -1
  26. package/build/treb-calculator/src/functions/fp.js +1 -1
  27. package/build/treb-calculator/src/functions/function-utilities.d.ts +1 -1
  28. package/build/treb-calculator/src/functions/function-utilities.js +1 -1
  29. package/build/treb-calculator/src/functions/information-functions.js +1 -1
  30. package/build/treb-calculator/src/functions/lambda-functions.js +1 -1
  31. package/build/treb-calculator/src/functions/matrix-functions.js +1 -1
  32. package/build/treb-calculator/src/functions/regex-functions.js +1 -1
  33. package/build/treb-calculator/src/functions/sparkline.d.ts +1 -1
  34. package/build/treb-calculator/src/functions/sparkline.js +1 -1
  35. package/build/treb-calculator/src/functions/statistics-functions.js +1 -1
  36. package/build/treb-calculator/src/functions/text-functions.js +2 -2
  37. package/build/treb-calculator/src/notifier-types.d.ts +1 -1
  38. package/build/treb-calculator/src/primitives.d.ts +1 -1
  39. package/build/treb-calculator/src/primitives.js +1 -1
  40. package/build/treb-calculator/src/utilities.d.ts +1 -1
  41. package/build/treb-calculator/src/utilities.js +1 -1
  42. package/build/treb-charts/src/chart-functions.d.ts +1 -1
  43. package/build/treb-charts/src/chart-functions.js +1 -1
  44. package/build/treb-charts/src/chart-types.d.ts +3 -3
  45. package/build/treb-charts/src/chart-types.js +1 -1
  46. package/build/treb-charts/src/chart-utils.d.ts +2 -2
  47. package/build/treb-charts/src/chart-utils.js +2 -2
  48. package/build/treb-charts/src/chart.d.ts +1 -1
  49. package/build/treb-charts/src/renderer.d.ts +1 -1
  50. package/build/treb-charts/src/util.d.ts +1 -1
  51. package/build/treb-charts/src/util.js +1 -1
  52. package/build/treb-data-model/src/annotation.d.ts +2 -2
  53. package/build/treb-data-model/src/annotation.js +1 -1
  54. package/build/treb-data-model/src/conditional_format.d.ts +1 -1
  55. package/build/treb-data-model/src/data-validation.d.ts +1 -1
  56. package/build/treb-data-model/src/data_model.d.ts +3 -3
  57. package/build/treb-data-model/src/data_model.js +3 -3
  58. package/build/treb-data-model/src/named.d.ts +3 -3
  59. package/build/treb-data-model/src/named.js +1 -1
  60. package/build/treb-data-model/src/sheet.d.ts +2 -2
  61. package/build/treb-data-model/src/sheet.js +4 -4
  62. package/build/treb-data-model/src/sheet_selection.d.ts +1 -1
  63. package/build/treb-data-model/src/sheet_selection.js +1 -1
  64. package/build/treb-data-model/src/sheet_types.d.ts +1 -1
  65. package/build/treb-data-model/src/types.d.ts +3 -3
  66. package/build/treb-embed/src/custom-element/spreadsheet-constructor.d.ts +2 -2
  67. package/build/treb-embed/src/custom-element/spreadsheet-constructor.js +5 -5
  68. package/build/treb-embed/src/embedded-spreadsheet.d.ts +13 -13
  69. package/build/treb-embed/src/embedded-spreadsheet.js +10 -10
  70. package/build/treb-embed/src/options.d.ts +2 -2
  71. package/build/treb-embed/src/selection-state.d.ts +2 -2
  72. package/build/treb-embed/src/spinner.js +1 -1
  73. package/build/treb-embed/src/toolbar-message.d.ts +1 -1
  74. package/build/treb-embed/src/types.d.ts +2 -2
  75. package/build/treb-embed/tsconfig.tsbuildinfo +1 -1
  76. package/build/treb-export/src/drawing/chart.d.ts +1 -1
  77. package/build/treb-export/src/drawing/chart.js +1 -1
  78. package/build/treb-export/src/export.d.ts +4 -4
  79. package/build/treb-export/src/export.js +2 -2
  80. package/build/treb-export/src/import-export-messages.d.ts +2 -2
  81. package/build/treb-export/src/import.d.ts +4 -4
  82. package/build/treb-export/src/import.js +2 -2
  83. package/build/treb-export/src/index.worker.js +1 -1
  84. package/build/treb-export/src/workbook-style.d.ts +1 -1
  85. package/build/treb-export/src/workbook-style.js +2 -2
  86. package/build/treb-export/src/workbook.d.ts +2 -2
  87. package/build/treb-format/src/format.d.ts +1 -1
  88. package/build/treb-format/src/format.js +1 -1
  89. package/build/treb-format/src/format_parser.d.ts +1 -1
  90. package/build/treb-format/src/format_parser.js +1 -1
  91. package/build/treb-format/src/number_format_section.d.ts +1 -1
  92. package/build/treb-format/src/value_parser.d.ts +2 -2
  93. package/build/treb-format/src/value_parser.js +1 -1
  94. package/build/treb-grid/src/editors/autocomplete.d.ts +1 -1
  95. package/build/treb-grid/src/editors/autocomplete.js +1 -1
  96. package/build/treb-grid/src/editors/autocomplete_matcher.js +1 -1
  97. package/build/treb-grid/src/editors/editor.d.ts +5 -5
  98. package/build/treb-grid/src/editors/editor.js +3 -3
  99. package/build/treb-grid/src/editors/formula_bar.d.ts +1 -1
  100. package/build/treb-grid/src/editors/formula_bar.js +2 -2
  101. package/build/treb-grid/src/editors/overlay_editor.d.ts +2 -2
  102. package/build/treb-grid/src/editors/overlay_editor.js +2 -2
  103. package/build/treb-grid/src/layout/base_layout.d.ts +6 -6
  104. package/build/treb-grid/src/layout/base_layout.js +3 -3
  105. package/build/treb-grid/src/layout/grid_layout.d.ts +2 -2
  106. package/build/treb-grid/src/layout/grid_layout.js +1 -1
  107. package/build/treb-grid/src/layout/mock-layout.d.ts +1 -1
  108. package/build/treb-grid/src/render/selection-renderer.d.ts +3 -3
  109. package/build/treb-grid/src/render/selection-renderer.js +1 -1
  110. package/build/treb-grid/src/render/svg_header_overlay.d.ts +1 -1
  111. package/build/treb-grid/src/render/svg_header_overlay.js +1 -1
  112. package/build/treb-grid/src/render/svg_selection_block.d.ts +1 -1
  113. package/build/treb-grid/src/render/svg_selection_block.js +1 -1
  114. package/build/treb-grid/src/render/tile_renderer.d.ts +3 -3
  115. package/build/treb-grid/src/render/tile_renderer.js +2 -2
  116. package/build/treb-grid/src/types/clipboard_data.d.ts +1 -1
  117. package/build/treb-grid/src/types/clipboard_data2.d.ts +1 -1
  118. package/build/treb-grid/src/types/external_editor_config.d.ts +1 -1
  119. package/build/treb-grid/src/types/grid.d.ts +5 -5
  120. package/build/treb-grid/src/types/grid.js +6 -6
  121. package/build/treb-grid/src/types/grid_base.d.ts +6 -6
  122. package/build/treb-grid/src/types/grid_base.js +5 -5
  123. package/build/treb-grid/src/types/grid_command.d.ts +3 -3
  124. package/build/treb-grid/src/types/grid_events.d.ts +2 -2
  125. package/build/treb-grid/src/types/grid_options.d.ts +1 -1
  126. package/build/treb-grid/src/types/scale-control.d.ts +1 -1
  127. package/build/treb-grid/src/types/scale-control.js +4 -4
  128. package/build/treb-grid/src/types/tab_bar.d.ts +3 -3
  129. package/build/treb-grid/src/types/tab_bar.js +2 -2
  130. package/build/treb-grid/src/types/tile.d.ts +1 -1
  131. package/build/treb-grid/src/types/update_flags.d.ts +1 -1
  132. package/dist/{chunk-A2NJA5VB.mjs → chunk-UFKGUUNF.mjs} +1 -1
  133. package/dist/treb-export-worker.mjs +2 -2
  134. package/dist/treb-spreadsheet.mjs +4 -4
  135. package/package.json +1 -1
  136. package/postprocess.ts +70 -0
@@ -28,13 +28,13 @@ import * as Base64JS from 'base64-js';
28
28
  import { PixelsToColumnWidth } from './column-width';
29
29
  const XMLDeclaration = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n`;
30
30
  import { template } from './template-2';
31
- import { Area, Cells, ValueType, Style, IsHTMLColor, IsThemeColor, ThemeColorIndex } from 'treb-base-types';
31
+ import { Area, Cells, ValueType, Style, IsHTMLColor, IsThemeColor, ThemeColorIndex } from '../../treb-base-types/src/index';
32
32
  import { SharedStrings } from './shared-strings';
33
33
  import { StyleCache } from './workbook-style';
34
34
  import { Theme } from './workbook-theme';
35
35
  import { AddRel } from './relationship';
36
36
  import { PatchXMLBuilder } from './xml-utils';
37
- import { Parser } from 'treb-parser';
37
+ import { Parser } from '../../treb-parser/src/index';
38
38
  import { Chart } from './drawing/chart';
39
39
  import { Drawing } from './drawing/drawing';
40
40
  import { ConditionalFormatOperators } from './workbook';
@@ -1,5 +1,5 @@
1
- import type { ImportedSheetData } from 'treb-base-types';
2
- import type { SerializedModel, SerializedNamed } from 'treb-data-model';
1
+ import type { ImportedSheetData } from '../../treb-base-types/src/index';
2
+ import type { SerializedModel, SerializedNamed } from '../../treb-data-model/src/index';
3
3
  export type ExportMessage = {
4
4
  type: 'export';
5
5
  sheet: SerializedModel;
@@ -1,11 +1,11 @@
1
1
  import { Workbook } from './workbook';
2
- import type { ParseResult } from 'treb-parser';
3
- import { Parser } from 'treb-parser';
2
+ import type { ParseResult } from '../../treb-parser/src/index';
3
+ import { Parser } from '../../treb-parser/src/index';
4
4
  import type { RangeType, AddressType, HyperlinkType } from './address-type';
5
- import { type ImportedSheetData, type CellParseResult, type IArea } from 'treb-base-types';
5
+ import { type ImportedSheetData, type CellParseResult, type IArea } from '../../treb-base-types/src/index';
6
6
  import type { Sheet } from './workbook-sheet';
7
7
  import { ZipWrapper } from './zip-wrapper';
8
- import type { ConditionalFormat } from 'treb-data-model';
8
+ import type { ConditionalFormat } from '../../treb-data-model/src/index';
9
9
  import * as OOXML from 'ooxml-types';
10
10
  interface SharedFormula {
11
11
  row: number;
@@ -22,9 +22,9 @@
22
22
  // import UZip from 'uzip';
23
23
  import Base64JS from 'base64-js';
24
24
  import { ChartType, ConditionalFormatOperators, Workbook } from './workbook';
25
- import { DecimalMarkType, Parser } from 'treb-parser';
25
+ import { DecimalMarkType, Parser } from '../../treb-parser/src/index';
26
26
  import { is_range, ShiftRange, InRange, is_address } from './address-type';
27
- import { Area } from 'treb-base-types';
27
+ import { Area } from '../../treb-base-types/src/index';
28
28
  import { VisibleState } from './workbook-sheet';
29
29
  // import { type GenericDOMElement, XMLUtils } from './xml-utils';
30
30
  // import { one_hundred_pixels } from './constants';
@@ -21,7 +21,7 @@
21
21
  import * as Messages from './import-export-messages';
22
22
  import { Exporter } from './export';
23
23
  import { Importer } from './import';
24
- import { GetWorkerContext } from 'treb-base-types';
24
+ import { GetWorkerContext } from '../../treb-base-types/src/index';
25
25
  export function AttachInProcess() {
26
26
  console.info("AOP");
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import * as OOXML from 'ooxml-types';
2
- import { type CellStyle } from 'treb-base-types';
2
+ import { type CellStyle } from '../../treb-base-types/src/index';
3
3
  import { Theme } from './workbook-theme';
4
4
  export interface Font {
5
5
  size?: number;
@@ -22,9 +22,9 @@ import * as OOXML from 'ooxml-types';
22
22
  import { MapTags } from './ooxml';
23
23
  // import * as ElementTree from 'elementtree';
24
24
  // import { Element, ElementTree as Tree } from 'elementtree';
25
- import { Style, IsHTMLColor, IsThemeColor, ThemeColorIndex } from 'treb-base-types';
25
+ import { Style, IsHTMLColor, IsThemeColor, ThemeColorIndex } from '../../treb-base-types/src/index';
26
26
  import { Theme } from './workbook-theme';
27
- import { NumberFormatCache } from 'treb-format';
27
+ import { NumberFormatCache } from '../../treb-format/src/index';
28
28
  // import { XMLUtils } from './xml-utils';
29
29
  import { Unescape } from './unescape_xml';
30
30
  // what's the default font size? ... 11pt?
@@ -5,8 +5,8 @@ import { Theme } from './workbook-theme';
5
5
  import { Sheet } from './workbook-sheet';
6
6
  import type { RelationshipMap } from './relationship';
7
7
  import { ZipWrapper } from './zip-wrapper';
8
- import type { CellStyle } from 'treb-base-types';
9
- import type { SerializedNamed } from 'treb-data-model';
8
+ import type { CellStyle } from '../../treb-base-types/src/index';
9
+ import type { SerializedNamed } from '../../treb-data-model/src/index';
10
10
  import { type Metadata } from './metadata';
11
11
  /**
12
12
  * @privateRemarks -- FIXME: not sure about the equal/equals thing. need to check.
@@ -1,5 +1,5 @@
1
1
  import { NumberFormatSection } from './number_format_section';
2
- import type { TextPart, Complex, DimensionedQuantity, CellValue } from 'treb-base-types';
2
+ import type { TextPart, Complex, DimensionedQuantity, CellValue } from '../../treb-base-types/src/index';
3
3
  /** convert cell value -> date, using the rules above */
4
4
  export declare const LotusDate: (value: number) => Date;
5
5
  /** convert date (as number, utc millis) -> lotus date value */
@@ -21,7 +21,7 @@
21
21
  /* eslint-disable no-irregular-whitespace */
22
22
  import { FormatParser } from './format_parser';
23
23
  import { NumberFormatSection } from './number_format_section';
24
- import { Localization, TextPartFlag, IsDimensionedQuantity, } from 'treb-base-types';
24
+ import { Localization, TextPartFlag, IsDimensionedQuantity, } from '../../treb-base-types/src/index';
25
25
  //
26
26
  // excel time is explicitly universal, so we need all dates in and out
27
27
  // to be UTC. we can't use local time because of daylight savings (which
@@ -1,5 +1,5 @@
1
1
  import { NumberFormatSection } from './number_format_section';
2
- import type { TextPart } from 'treb-base-types';
2
+ import type { TextPart } from '../../treb-base-types/src/index';
3
3
  export declare class FormatParser {
4
4
  protected static date_pattern: boolean;
5
5
  protected static pattern: string;
@@ -19,7 +19,7 @@
19
19
  *
20
20
  */
21
21
  import { NumberFormatSection } from './number_format_section';
22
- import { TextPartFlag } from 'treb-base-types';
22
+ import { TextPartFlag } from '../../treb-base-types/src/index';
23
23
  // import { NumberFormat } from './format';
24
24
  const ASTERISK = 0x2A; // TODO
25
25
  const UNDERSCORE = 0x5F; // TODO
@@ -1,4 +1,4 @@
1
- import type { TextPart } from 'treb-base-types';
1
+ import type { TextPart } from '../../treb-base-types/src/index';
2
2
  /**
3
3
  * essentially number formats have a core section with the number
4
4
  * (possibly scaled), and some representation before and after.
@@ -1,5 +1,5 @@
1
- import type { Complex } from 'treb-base-types';
2
- import { ValueType } from 'treb-base-types';
1
+ import type { Complex } from '../../treb-base-types/src/index';
2
+ import { ValueType } from '../../treb-base-types/src/index';
3
3
  /**
4
4
  * this is code that was in the old number format class, which was superceded
5
5
  * by the new treb-format module. we still need to do rough value parsing,
@@ -18,7 +18,7 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { ValueType, Localization } from 'treb-base-types';
21
+ import { ValueType, Localization } from '../../treb-base-types/src/index';
22
22
  import { UnlotusDate } from './format';
23
23
  const this_year = new Date().getUTCFullYear();
24
24
  /**
@@ -1,4 +1,4 @@
1
- import type { Theme, Rectangle } from 'treb-base-types';
1
+ import type { Theme, Rectangle } from '../../../treb-base-types/src/index';
2
2
  import type { AutocompleteExecResult, FunctionDescriptor } from './autocomplete_matcher';
3
3
  export interface AutocompleteResult {
4
4
  handled: boolean;
@@ -18,7 +18,7 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { DOMContext } from 'treb-base-types';
21
+ import { DOMContext } from '../../../treb-base-types/src/index';
22
22
  export class Autocomplete {
23
23
  options;
24
24
  completion_list_visible = false;
@@ -33,7 +33,7 @@
33
33
  * [I think they may have been developed independently and them converged...]
34
34
  *
35
35
  */
36
- import { Localization } from 'treb-base-types';
36
+ import { Localization } from '../../../treb-base-types/src/index';
37
37
  export class AutocompleteMatcher {
38
38
  function_names = [];
39
39
  // private function_map: {[index: string]: FunctionDescriptor} = {};
@@ -18,12 +18,12 @@
18
18
  * for everything. this is going to be extremely confusing.
19
19
  *
20
20
  */
21
- import { Area, type ICellAddress, type Cell } from 'treb-base-types';
22
- import type { ParseResult } from 'treb-parser';
23
- import { Parser } from 'treb-parser';
24
- import type { DataModel, ViewModel } from 'treb-data-model';
21
+ import { Area, type ICellAddress, type Cell } from '../../../treb-base-types/src/index';
22
+ import type { ParseResult } from '../../../treb-parser/src/index';
23
+ import { Parser } from '../../../treb-parser/src/index';
24
+ import type { DataModel, ViewModel } from '../../../treb-data-model/src/index';
25
25
  import type { Autocomplete, AutocompleteResult } from './autocomplete';
26
- import { EventSource } from 'treb-utils';
26
+ import { EventSource } from '../../../treb-utils/src/index';
27
27
  import { type AutocompleteExecResult, AutocompleteMatcher } from './autocomplete_matcher';
28
28
  export interface UpdateTextOptions {
29
29
  rewrite_addresses: boolean;
@@ -38,9 +38,9 @@
38
38
  * for everything. this is going to be extremely confusing.
39
39
  *
40
40
  */
41
- import { Area, IsCellAddress, Localization, Rectangle, DOMContext } from 'treb-base-types';
42
- import { Parser } from 'treb-parser';
43
- import { EventSource } from 'treb-utils';
41
+ import { Area, IsCellAddress, Localization, Rectangle, DOMContext } from '../../../treb-base-types/src/index';
42
+ import { Parser } from '../../../treb-parser/src/index';
43
+ import { EventSource } from '../../../treb-utils/src/index';
44
44
  import { AutocompleteMatcher } from './autocomplete_matcher';
45
45
  export class Editor extends EventSource {
46
46
  model;
@@ -1,5 +1,5 @@
1
1
  import { Editor, type FormulaEditorEvent } from './editor';
2
- import type { DataModel, ViewModel } from 'treb-data-model';
2
+ import type { DataModel, ViewModel } from '../../../treb-data-model/src/index';
3
3
  import type { GridOptions } from '../types/grid_options';
4
4
  import { Autocomplete } from './autocomplete';
5
5
  export interface FormulaButtonEvent {
@@ -18,10 +18,10 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- // import type { Area, Cell, Theme } from 'treb-base-types';
21
+ // import type { Area, Cell, Theme } from '../../../treb-base-types/src/index';
22
22
  import { Editor } from './editor';
23
23
  import { Autocomplete } from './autocomplete';
24
- import { DOMContext } from 'treb-base-types';
24
+ import { DOMContext } from '../../../treb-base-types/src/index';
25
25
  // ---
26
26
  export class FormulaBar extends Editor {
27
27
  options;
@@ -1,6 +1,6 @@
1
1
  import { Editor } from './editor';
2
- import { Cell, type CellStyle, type CellValue, Rectangle, type Theme } from 'treb-base-types';
3
- import { DataModel, type ViewModel, type GridSelection } from 'treb-data-model';
2
+ import { Cell, type CellStyle, type CellValue, Rectangle, type Theme } from '../../../treb-base-types/src/index';
3
+ import { DataModel, type ViewModel, type GridSelection } from '../../../treb-data-model/src/index';
4
4
  import { Autocomplete } from './autocomplete';
5
5
  export type OverlayEditorResult = 'handled' | 'commit' | 'discard';
6
6
  /**
@@ -19,8 +19,8 @@
19
19
  *
20
20
  */
21
21
  import { Editor } from './editor';
22
- import { Area, Cell, Rectangle, Style, ResolveThemeColor } from 'treb-base-types';
23
- import { DataModel } from 'treb-data-model';
22
+ import { Area, Cell, Rectangle, Style, ResolveThemeColor } from '../../../treb-base-types/src/index';
23
+ import { DataModel } from '../../../treb-data-model/src/index';
24
24
  import { Autocomplete } from './autocomplete';
25
25
  import { UA } from '../util/ua';
26
26
  export class OverlayEditor extends Editor {
@@ -1,11 +1,11 @@
1
- import { DOMContext } from 'treb-base-types';
2
- import type { DataModel, ViewModel, Annotation } from 'treb-data-model';
1
+ import { DOMContext } from '../../../treb-base-types/src/index';
2
+ import type { DataModel, ViewModel, Annotation } from '../../../treb-data-model/src/index';
3
3
  import type { Tile } from '../types/tile';
4
- import type { Theme, Point, Extent, Size, Position, ICellAddress, Table, IArea } from 'treb-base-types';
5
- import { Area, Rectangle } from 'treb-base-types';
4
+ import type { Theme, Point, Extent, Size, Position, ICellAddress, Table, IArea } from '../../../treb-base-types/src/index';
5
+ import { Area, Rectangle } from '../../../treb-base-types/src/index';
6
6
  import type { GridEvent } from '../types/grid_events';
7
- import type { CellValue, AnnotationLayout, Corner } from 'treb-base-types';
8
- import { Area as TileRange } from 'treb-base-types';
7
+ import type { CellValue, AnnotationLayout, Corner } from '../../../treb-base-types/src/index';
8
+ import { Area as TileRange } from '../../../treb-base-types/src/index';
9
9
  export { Area as TileRange } from 'treb-base-types';
10
10
  export interface TooltipOptions {
11
11
  up?: true;
@@ -18,10 +18,10 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { DOMContext } from 'treb-base-types';
22
- import { Style, Area, Rectangle, ResolveThemeColor } from 'treb-base-types';
21
+ import { DOMContext } from '../../../treb-base-types/src/index';
22
+ import { Style, Area, Rectangle, ResolveThemeColor } from '../../../treb-base-types/src/index';
23
23
  import { MouseDrag } from '../types/drag_mask';
24
- import { Area as TileRange } from 'treb-base-types';
24
+ import { Area as TileRange } from '../../../treb-base-types/src/index';
25
25
  export { Area as TileRange } from 'treb-base-types';
26
26
  /**
27
27
  * layout structure and management functions
@@ -1,7 +1,7 @@
1
1
  import { BaseLayout } from './base_layout';
2
2
  import type { Tile } from '../types/tile';
3
- import { DOMContext } from 'treb-base-types';
4
- import type { DataModel, ViewModel } from 'treb-data-model';
3
+ import { DOMContext } from '../../../treb-base-types/src/index';
4
+ import type { DataModel, ViewModel } from '../../../treb-data-model/src/index';
5
5
  /**
6
6
  * we used to have two layouts, this one and a legacy layout for IE11.
7
7
  * since we dropped that one we could merge this with the base layout
@@ -19,7 +19,7 @@
19
19
  *
20
20
  */
21
21
  import { BaseLayout } from './base_layout';
22
- import { DOMContext } from 'treb-base-types';
22
+ import { DOMContext } from '../../../treb-base-types/src/index';
23
23
  /**
24
24
  * we used to have two layouts, this one and a legacy layout for IE11.
25
25
  * since we dropped that one we could merge this with the base layout
@@ -1,4 +1,4 @@
1
- import type { DataModel, ViewModel } from 'treb-data-model';
1
+ import type { DataModel, ViewModel } from '../../../treb-data-model/src/index';
2
2
  import { BaseLayout } from './base_layout';
3
3
  export declare class MockLayout extends BaseLayout {
4
4
  constructor(model: DataModel, view: ViewModel);
@@ -1,7 +1,7 @@
1
- import type { Theme } from 'treb-base-types';
2
- import { Rectangle } from 'treb-base-types';
1
+ import type { Theme } from '../../../treb-base-types/src/index';
2
+ import { Rectangle } from '../../../treb-base-types/src/index';
3
3
  import type { BaseLayout } from '../layout/base_layout';
4
- import type { GridSelection, DataModel, ViewModel } from 'treb-data-model';
4
+ import type { GridSelection, DataModel, ViewModel } from '../../../treb-data-model/src/index';
5
5
  export declare class SelectionRenderer {
6
6
  private theme;
7
7
  private layout;
@@ -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
  import { SVGSelectionBlock } from './svg_selection_block';
23
23
  import { HeaderOverlay, Orientation } from './svg_header_overlay';
24
24
  // const SVGNS = 'http://www.w3.org/2000/svg';
@@ -1,4 +1,4 @@
1
- import { type Theme } from 'treb-base-types';
1
+ import { type Theme } from '../../../treb-base-types/src/index';
2
2
  export declare enum Orientation {
3
3
  Horizontal = 0,
4
4
  Vertical = 1
@@ -18,7 +18,7 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { DOMContext } from 'treb-base-types';
21
+ import { DOMContext } from '../../../treb-base-types/src/index';
22
22
  export var Orientation;
23
23
  (function (Orientation) {
24
24
  Orientation[Orientation["Horizontal"] = 0] = "Horizontal";
@@ -1,4 +1,4 @@
1
- import { type Theme, type Rectangle } from 'treb-base-types';
1
+ import { type Theme, type Rectangle } from '../../../treb-base-types/src/index';
2
2
  /**
3
3
  * the original selections -- a canvas overlaid over the tile canvases --
4
4
  * broke android chrome, hard. so we are switching to an svg overlay (seems
@@ -18,7 +18,7 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { DOMContext } from 'treb-base-types';
21
+ import { DOMContext } from '../../../treb-base-types/src/index';
22
22
  export class SVGSelectionBlock {
23
23
  theme;
24
24
  offset;
@@ -1,8 +1,8 @@
1
- import type { ICellAddress, PreparedText, Cell, Size, CellStyle, Theme } from 'treb-base-types';
2
- import { Area } from 'treb-base-types';
1
+ import type { ICellAddress, PreparedText, Cell, Size, CellStyle, Theme } from '../../../treb-base-types/src/index';
2
+ import { Area } from '../../../treb-base-types/src/index';
3
3
  import type { Tile } from '../types/tile';
4
4
  import { BaseLayout, TileRange } from '../layout/base_layout';
5
- import type { DataModel, ViewModel } from 'treb-data-model';
5
+ import type { DataModel, ViewModel } from '../../../treb-data-model/src/index';
6
6
  import type { GridOptions } from '../types/grid_options';
7
7
  interface FontSet {
8
8
  base: string;
@@ -18,8 +18,8 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { TextPartFlag, Style, ValueType, Area, Rectangle, ResolveThemeColor, IsDefinedColor } from 'treb-base-types';
22
- import { MDParser } from 'treb-parser';
21
+ import { TextPartFlag, Style, ValueType, Area, Rectangle, ResolveThemeColor, IsDefinedColor } from '../../../treb-base-types/src/index';
22
+ import { MDParser } from '../../../treb-parser/src/index';
23
23
  import { BaseLayout, TileRange } from '../layout/base_layout';
24
24
  import { Get as GetFontMetrics } from '../util/fontmetrics';
25
25
  const DEFAULT_INDENT = ' '; // two spaces in the current font
@@ -1,4 +1,4 @@
1
- import type { ICellAddress, CellValue, ValueType, CellStyle } from 'treb-base-types';
1
+ import type { ICellAddress, CellValue, ValueType, CellStyle } from '../../../treb-base-types/src/index';
2
2
  export interface ClipboardCellData {
3
3
  address: ICellAddress;
4
4
  data: CellValue;
@@ -1,4 +1,4 @@
1
- import type { CellValue, IArea, CellStyle } from 'treb-base-types';
1
+ import type { CellValue, IArea, CellStyle } from '../../../treb-base-types/src/index';
2
2
  /**
3
3
  * this is a structure for copy/paste data. clipboard data may include
4
4
  * relative formauls and resolved styles, so it's suitable for pasting into
@@ -1,4 +1,4 @@
1
- import type { IArea, ICellAddress } from 'treb-base-types';
1
+ import type { IArea, ICellAddress } from '../../../treb-base-types/src/index';
2
2
  export type DependencyList = Array<IArea | ICellAddress | undefined>;
3
3
  export type ExternalEditorCallback = (selection?: string) => DependencyList | undefined;
4
4
  export interface ExternalEditorConfig {
@@ -1,14 +1,14 @@
1
- import type { Theme, IArea, Extent, CellValue, ICellAddress, ImportedSheetData, Color, CellStyle, IRectangle } from 'treb-base-types';
2
- import { Area } from 'treb-base-types';
1
+ import type { Theme, IArea, Extent, CellValue, ICellAddress, ImportedSheetData, Color, CellStyle, IRectangle } from '../../../treb-base-types/src/index';
2
+ import { Area } from '../../../treb-base-types/src/index';
3
3
  import type { StatsEntry } from './tab_bar';
4
4
  import type { GridEvent, GridSelectionEvent } from './grid_events';
5
- import type { SerializedNamed, DataModel, GridSelection, LegacySerializedSheet } from 'treb-data-model';
6
- import { Annotation, type AnnotationData, Sheet } from 'treb-data-model';
5
+ import type { SerializedNamed, DataModel, GridSelection, LegacySerializedSheet } from '../../../treb-data-model/src/index';
6
+ import { Annotation, type AnnotationData, Sheet } from '../../../treb-data-model/src/index';
7
7
  import { FormulaBar } from '../editors/formula_bar';
8
8
  import type { GridOptions } from './grid_options';
9
9
  import { BorderConstants } from './border_constants';
10
10
  import type { Command, FreezeCommand, InsertRowsCommand, InsertColumnsCommand, ActivateSheetCommand, ResizeRowsCommand, ResizeColumnsCommand, SelectCommand, CreateAnnotationCommand, RemoveAnnotationCommand } from './grid_command';
11
- import { DOMContext } from 'treb-base-types';
11
+ import { DOMContext } from '../../../treb-base-types/src/index';
12
12
  import { GridBase } from './grid_base';
13
13
  import type { SetRangeOptions } from './set_range_options';
14
14
  import type { ExternalEditorConfig } from './external_editor_config';
@@ -18,10 +18,10 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { Area, Is2DArray, Rectangle, ValueType, Localization, IsCellAddress, LoadThemeProperties, DefaultTheme, ComplexToString, IsComplex, TextPartFlag, IsArea, Style, } from 'treb-base-types';
22
- import { DecimalMarkType, ArgumentSeparatorType, QuotedSheetNameRegex, MDParser, } from 'treb-parser';
23
- import { SerializeHTML } from 'treb-utils';
24
- import { NumberFormatCache, LotusDate, ValueParser, NumberFormat } from 'treb-format';
21
+ import { Area, Is2DArray, Rectangle, ValueType, Localization, IsCellAddress, LoadThemeProperties, DefaultTheme, ComplexToString, IsComplex, TextPartFlag, IsArea, Style, } from '../../../treb-base-types/src/index';
22
+ import { DecimalMarkType, ArgumentSeparatorType, QuotedSheetNameRegex, MDParser, } from '../../../treb-parser/src/index';
23
+ import { SerializeHTML } from '../../../treb-utils/src/index';
24
+ import { NumberFormatCache, LotusDate, ValueParser, NumberFormat } from '../../../treb-format/src/index';
25
25
  import { SelectionRenderer } from '../render/selection-renderer';
26
26
  import { TabBar } from './tab_bar';
27
27
  import { MockLayout } from '../layout/mock-layout';
@@ -34,14 +34,14 @@ import { GridLayout } from '../layout/grid_layout';
34
34
  import { OverlayEditor } from '../editors/overlay_editor';
35
35
  import { TileRenderer } from '../render/tile_renderer';
36
36
  import { ErrorCode } from './grid_events';
37
- import { Annotation, Sheet } from 'treb-data-model';
37
+ import { Annotation, Sheet } from '../../../treb-data-model/src/index';
38
38
  import { FormulaBar } from '../editors/formula_bar';
39
39
  import { BorderConstants } from './border_constants';
40
40
  import { UA } from '../util/ua';
41
41
  import { Autocomplete } from '../editors/autocomplete';
42
42
  import { MouseDrag } from './drag_mask';
43
43
  import { CommandKey } from './grid_command';
44
- import { DOMContext } from 'treb-base-types';
44
+ import { DOMContext } from '../../../treb-base-types/src/index';
45
45
  import { GridBase } from './grid_base';
46
46
  import { ExternalEditor } from '../editors/external_editor';
47
47
  var EditingState;
@@ -13,13 +13,13 @@
13
13
  * a hurry to change it either.
14
14
  *
15
15
  */
16
- import { EventSource } from 'treb-utils';
16
+ import { EventSource } from '../../../treb-utils/src/index';
17
17
  import type { DataModel, ConditionalFormat, // MacroFunction, SerializedModel, SerializedNamedExpression,
18
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';
19
+ import type { Parser } from '../../../treb-parser/src/index';
20
+ import { Area } from '../../../treb-base-types/src/index';
21
+ import type { ICellAddress, IArea, Cell, CellValue, Table, TableSortOptions, TableTheme, PatchOptions as PatchAreaOptions, Color } from '../../../treb-base-types/src/index';
22
+ import { Sheet, type Annotation } from '../../../treb-data-model/src/index';
23
23
  import type { FunctionDescriptor } from '../editors/autocomplete_matcher';
24
24
  import { AutocompleteMatcher } from '../editors/autocomplete_matcher';
25
25
  import type { GridEvent } from './grid_events';
@@ -28,7 +28,7 @@ import type { CommandRecord, CreateAnnotationCommand, DataValidationCommand, Fre
28
28
  import { type GridOptions } from './grid_options';
29
29
  import type { Command, ActivateSheetCommand, DeleteSheetCommand, UpdateBordersCommand, SheetSelection } from './grid_command';
30
30
  import type { UpdateFlags } from './update_flags';
31
- import type { FreezePane, LegacySerializedSheet } from 'treb-data-model';
31
+ import type { FreezePane, LegacySerializedSheet } from '../../../treb-data-model/src/index';
32
32
  interface PatchOptions extends PatchAreaOptions {
33
33
  sheet: Sheet;
34
34
  }
@@ -33,12 +33,12 @@
33
33
  * a hurry to change it either.
34
34
  *
35
35
  */
36
- import { EventSource } from 'treb-utils';
37
- import { IllegalSheetNameRegex, ParseCSV, DecimalMarkType } from 'treb-parser';
38
- import { Area, IsCellAddress, ValueType, DefaultTableSortOptions } from 'treb-base-types';
39
- import { Sheet } from 'treb-data-model';
36
+ import { EventSource } from '../../../treb-utils/src/index';
37
+ import { IllegalSheetNameRegex, ParseCSV, DecimalMarkType } from '../../../treb-parser/src/index';
38
+ import { Area, IsCellAddress, ValueType, DefaultTableSortOptions } from '../../../treb-base-types/src/index';
39
+ import { Sheet } from '../../../treb-data-model/src/index';
40
40
  import { AutocompleteMatcher } from '../editors/autocomplete_matcher';
41
- import { NumberFormat, ValueParser } from 'treb-format';
41
+ import { NumberFormat, ValueParser } from '../../../treb-format/src/index';
42
42
  import { ErrorCode } from './grid_events';
43
43
  import { DefaultGridOptions } from './grid_options';
44
44
  import { BorderConstants } from './border_constants';
@@ -1,7 +1,7 @@
1
- import type { ICellAddress, IArea, CellStyle, Color, CellValue, Table, TableSortType, TableTheme, IRectangle } from 'treb-base-types';
2
- import type { ExpressionUnit } from 'treb-parser';
1
+ import type { ICellAddress, IArea, CellStyle, Color, CellValue, Table, TableSortType, TableTheme, IRectangle } from '../../../treb-base-types/src/index';
2
+ import type { ExpressionUnit } from '../../../treb-parser/src/index';
3
3
  import type { BorderConstants } from './border_constants';
4
- import type { Annotation, AnnotationData, ConditionalFormat, Sheet } from 'treb-data-model';
4
+ import type { Annotation, AnnotationData, ConditionalFormat, Sheet } from '../../../treb-data-model/src/index';
5
5
  /**
6
6
  * switching to an exec-command based model, so we can serialize
7
7
  * data, layout and style changes; the intent is to support recording,
@@ -1,5 +1,5 @@
1
- import type { Annotation, GridSelection, Sheet } from 'treb-data-model';
2
- import type { Area } from 'treb-base-types';
1
+ import type { Annotation, GridSelection, Sheet } from '../../../treb-data-model/src/index';
2
+ import type { Area } from '../../../treb-base-types/src/index';
3
3
  export declare enum ErrorCode {
4
4
  /** no error: zero so it's falsy */
5
5
  none = 0,
@@ -1,4 +1,4 @@
1
- import type { CellValue } from 'treb-base-types';
1
+ import type { CellValue } from '../../../treb-base-types/src/index';
2
2
  import type { StatsEntry } from './tab_bar';
3
3
  export type StatsFunction = (data: CellValue | CellValue[][] | undefined) => StatsEntry[];
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { EventSource } from 'treb-utils';
1
+ import { EventSource } from '../../../treb-utils/src/index';
2
2
  export interface ScaleEvent {
3
3
  type: 'scale';
4
4
  value: number;
@@ -18,10 +18,10 @@
18
18
  * info@treb.app
19
19
  *
20
20
  */
21
- import { DOMContext } from 'treb-base-types';
22
- import { NumberFormat, NumberFormatCache, ValueParser } from 'treb-format';
23
- import { ValueType } from 'treb-base-types';
24
- import { EventSource } from 'treb-utils';
21
+ import { DOMContext } from '../../../treb-base-types/src/index';
22
+ import { NumberFormat, NumberFormatCache, ValueParser } from '../../../treb-format/src/index';
23
+ import { ValueType } from '../../../treb-base-types/src/index';
24
+ import { EventSource } from '../../../treb-utils/src/index';
25
25
  /**
26
26
  * updated scale control, broken out. this is based on what we did for
27
27
  * project planning, which worked out rather nicely.