@odoo/o-spreadsheet 19.5.0-alpha.0 → 19.5.0-alpha.10

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 (177) hide show
  1. package/dist/o_spreadsheet.cjs +54635 -52850
  2. package/dist/o_spreadsheet.css +95 -44
  3. package/dist/o_spreadsheet.esm.js +54380 -52595
  4. package/dist/o_spreadsheet.iife.js +54407 -52622
  5. package/dist/o_spreadsheet.min.iife.js +403 -403
  6. package/dist/o_spreadsheet.xml +290 -167
  7. package/dist/types/actions/action.d.ts +1 -7
  8. package/dist/types/actions/data_actions.d.ts +1 -0
  9. package/dist/types/actions/menu_items_actions.d.ts +2 -0
  10. package/dist/types/clipboard_handlers/default_clipboard.d.ts +1 -1
  11. package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
  12. package/dist/types/components/autofill/autofill.d.ts +3 -0
  13. package/dist/types/{plugins/ui_feature/autofill.d.ts → components/autofill/autofill_store.d.ts} +7 -12
  14. package/dist/types/components/autofill/table_autofill_store.d.ts +6 -0
  15. package/dist/types/components/border_editor/border_editor_widget.d.ts +1 -0
  16. package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
  17. package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +2 -0
  18. package/dist/types/components/composer/composer/abstract_composer_store.d.ts +3 -2
  19. package/dist/types/components/composer/composer/composer.d.ts +2 -1
  20. package/dist/types/components/composer/grid_composer/grid_composer.d.ts +1 -0
  21. package/dist/types/components/dashboard/clickable_cell_store.d.ts +1 -0
  22. package/dist/types/components/dashboard/dashboard.d.ts +7 -12
  23. package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
  24. package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
  25. package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +1 -0
  26. package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +3 -0
  27. package/dist/types/components/figures/figure/figure.d.ts +8 -9
  28. package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +7 -2
  29. package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
  30. package/dist/types/components/figures/figure_container/figure_container.d.ts +4 -2
  31. package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -2
  32. package/dist/types/components/filters/filter_menu/filter_menu.d.ts +1 -0
  33. package/dist/types/components/grid/grid.d.ts +8 -0
  34. package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -0
  35. package/dist/types/components/grid_overlay/grid_overlay.d.ts +6 -4
  36. package/dist/types/components/grid_popover/grid_popover.d.ts +1 -0
  37. package/dist/types/components/header_group/header_group_container.d.ts +2 -0
  38. package/dist/types/components/headers_overlay/headers_overlay.d.ts +3 -0
  39. package/dist/types/components/headers_overlay/unhide_headers.d.ts +4 -0
  40. package/dist/types/components/helpers/dom_helpers.d.ts +2 -0
  41. package/dist/types/components/helpers/figure_snap_helper.d.ts +3 -3
  42. package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
  43. package/dist/types/components/helpers/zoom.d.ts +1 -5
  44. package/dist/types/components/highlight/border/border.d.ts +2 -0
  45. package/dist/types/components/highlight/corner/corner.d.ts +1 -0
  46. package/dist/types/components/highlight/highlight/highlight.d.ts +3 -0
  47. package/dist/types/components/link/link_display/link_display.d.ts +1 -0
  48. package/dist/types/components/link/link_editor/link_editor.d.ts +1 -0
  49. package/dist/types/components/paint_format_button/paint_format_store.d.ts +1 -1
  50. package/dist/types/components/popover/cell_popover_store.d.ts +2 -1
  51. package/dist/types/components/props_validation.d.ts +7 -7
  52. package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +3 -0
  53. package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -1
  54. package/dist/types/components/selection_input/selection_input_store.d.ts +1 -1
  55. package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
  56. package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +1 -0
  57. package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +5 -18
  58. package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +64 -0
  59. package/dist/types/components/side_panel/chart/common.d.ts +1 -1
  60. package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +1 -1
  61. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +1 -1
  62. package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +1 -1
  63. package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +1 -1
  64. package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +1 -1
  65. package/dist/types/components/side_panel/criterion_form/calendar_button/calendar_button.d.ts +13 -0
  66. package/dist/types/components/side_panel/criterion_form/date_criterion/date_criterion.d.ts +2 -0
  67. package/dist/types/components/side_panel/criterion_form/double_input_criterion/double_input_criterion.d.ts +3 -0
  68. package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +28 -0
  69. package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup_store.d.ts +13 -0
  70. package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +1 -0
  71. package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +0 -2
  72. package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.d.ts +1 -0
  73. package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +3 -10
  74. package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +1 -1
  75. package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -11
  76. package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_store.d.ts +33 -0
  77. package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +1 -0
  78. package/dist/types/components/spreadsheet/spreadsheet.d.ts +2 -0
  79. package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +2 -1
  80. package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +56 -0
  81. package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +28 -0
  82. package/dist/types/components/tables/hovered_table_store.d.ts +3 -6
  83. package/dist/types/components/tables/table_resizer/table_resizer.d.ts +1 -0
  84. package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +2 -1
  85. package/dist/types/constants.d.ts +4 -0
  86. package/dist/types/formulas/code_builder.d.ts +2 -1
  87. package/dist/types/formulas/compiler.d.ts +7 -0
  88. package/dist/types/functions/create_compute_function.d.ts +4 -3
  89. package/dist/types/functions/function_registry.d.ts +1 -5
  90. package/dist/types/functions/helper_matrices.d.ts +1 -0
  91. package/dist/types/functions/helper_statistical.d.ts +6 -0
  92. package/dist/types/functions/module_array.d.ts +41 -23
  93. package/dist/types/functions/module_database.d.ts +18 -6
  94. package/dist/types/functions/module_date.d.ts +70 -22
  95. package/dist/types/functions/module_engineering.d.ts +3 -1
  96. package/dist/types/functions/module_filter.d.ts +2 -2
  97. package/dist/types/functions/module_financial.d.ts +105 -35
  98. package/dist/types/functions/module_info.d.ts +33 -11
  99. package/dist/types/functions/module_logical.d.ts +16 -8
  100. package/dist/types/functions/module_lookup.d.ts +23 -15
  101. package/dist/types/functions/module_math.d.ts +125 -43
  102. package/dist/types/functions/module_operators.d.ts +7 -3
  103. package/dist/types/functions/module_statistical.d.ts +78 -22
  104. package/dist/types/functions/module_text.d.ts +70 -24
  105. package/dist/types/functions/module_web.d.ts +3 -1
  106. package/dist/types/helpers/carousel_helpers.d.ts +8 -3
  107. package/dist/types/helpers/figures/chart.d.ts +2 -0
  108. package/dist/types/helpers/figures/charts/chart_common.d.ts +0 -2
  109. package/dist/types/helpers/figures/charts/scorecard_chart_config_builder.d.ts +2 -0
  110. package/dist/types/helpers/figures/figure/figure.d.ts +3 -2
  111. package/dist/types/helpers/internal_viewport.d.ts +20 -10
  112. package/dist/types/helpers/misc.d.ts +2 -0
  113. package/dist/types/helpers/pivot/pivot_helpers.d.ts +2 -2
  114. package/dist/types/helpers/pivot/pivot_highlight.d.ts +2 -2
  115. package/dist/types/helpers/rectangle.d.ts +4 -0
  116. package/dist/types/helpers/text_helper.d.ts +6 -1
  117. package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
  118. package/dist/types/helpers/viewport_collection.d.ts +51 -21
  119. package/dist/types/helpers/zones.d.ts +1 -0
  120. package/dist/types/index.d.ts +29 -3
  121. package/dist/types/model.d.ts +1 -0
  122. package/dist/types/plugins/core/carousel.d.ts +8 -4
  123. package/dist/types/plugins/core/cell.d.ts +1 -0
  124. package/dist/types/plugins/core/chart.d.ts +2 -0
  125. package/dist/types/plugins/core/conditional_format.d.ts +2 -0
  126. package/dist/types/plugins/core/data_validation.d.ts +2 -0
  127. package/dist/types/plugins/core/formulas_provider.d.ts +8 -0
  128. package/dist/types/plugins/core/pivot.d.ts +1 -0
  129. package/dist/types/plugins/core/squisher.d.ts +1 -0
  130. package/dist/types/plugins/core_plugin.d.ts +7 -3
  131. package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +10 -3
  132. package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +3 -0
  133. package/dist/types/plugins/ui_feature/collaborative.d.ts +2 -1
  134. package/dist/types/plugins/ui_feature/ui_options.d.ts +1 -7
  135. package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
  136. package/dist/types/plugins/ui_stateful/carousel_ui.d.ts +2 -2
  137. package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +4 -0
  138. package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +2 -3
  139. package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
  140. package/dist/types/registries/chart_registry.d.ts +3 -0
  141. package/dist/types/registries/data_source_registry.d.ts +15 -0
  142. package/dist/types/registries/figures_registry.d.ts +4 -1
  143. package/dist/types/store_engine/dependency_container.d.ts +5 -0
  144. package/dist/types/store_engine/store_hooks.d.ts +6 -0
  145. package/dist/types/store_engine/store_registries.d.ts +4 -0
  146. package/dist/types/stores/array_formula_highlight.d.ts +1 -1
  147. package/dist/types/{plugins/ui_feature/automatic_sum.d.ts → stores/automatic_sum_store.d.ts} +5 -4
  148. package/dist/types/stores/checkbox_toggle.d.ts +9 -0
  149. package/dist/types/stores/client_focus_store.d.ts +1 -0
  150. package/dist/types/stores/data_cleanup_store.d.ts +31 -0
  151. package/dist/types/stores/main_viewport_store.d.ts +11 -0
  152. package/dist/types/stores/spreadsheet_store.d.ts +1 -1
  153. package/dist/types/stores/table_resize_store.d.ts +6 -0
  154. package/dist/types/stores/trim_whitespace_store.d.ts +9 -0
  155. package/dist/types/stores/viewports_store.d.ts +87 -0
  156. package/dist/types/stores/zoom_store.d.ts +14 -0
  157. package/dist/types/types/chart/radar_chart.d.ts +1 -1
  158. package/dist/types/types/chart/scorecard_chart.d.ts +2 -0
  159. package/dist/types/types/commands.d.ts +25 -58
  160. package/dist/types/types/core_getters.d.ts +3 -1
  161. package/dist/types/types/figure.d.ts +26 -3
  162. package/dist/types/types/functions.d.ts +14 -4
  163. package/dist/types/types/getters.d.ts +28 -11
  164. package/dist/types/types/misc.d.ts +19 -1
  165. package/dist/types/types/range.d.ts +1 -0
  166. package/dist/types/types/rendering.d.ts +1 -0
  167. package/dist/types/types/store_engine.d.ts +10 -3
  168. package/package.json +2 -2
  169. package/dist/types/plugins/ui_feature/checkbox_toggle.d.ts +0 -9
  170. package/dist/types/plugins/ui_feature/data_cleanup.d.ts +0 -16
  171. package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
  172. package/dist/types/plugins/ui_feature/table_autofill.d.ts +0 -6
  173. package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
  174. package/dist/types/plugins/ui_stateful/sheetview.d.ts +0 -123
  175. /package/dist/types/plugins/{ui_feature → ui_stateful}/cell_computed_style.d.ts +0 -0
  176. /package/dist/types/plugins/{ui_feature → ui_stateful}/header_visibility_ui.d.ts +0 -0
  177. /package/dist/types/plugins/{ui_feature → ui_stateful}/table_computed_style.d.ts +0 -0
@@ -30,7 +30,7 @@ export declare class SidePanelStore extends SpreadsheetStore {
30
30
  }) | undefined;
31
31
  secondaryPanel: PanelInfo | undefined;
32
32
  availableWidth: number;
33
- screenWidthStore: import("../../../types/store_engine").CQS<Pick<ScreenWidthStore, "setSmallThreshhold"> & import("../../../types/store_engine").OmitFunctions<ScreenWidthStore>>;
33
+ screenWidthStore: import("../../../types/store_engine").Store<ScreenWidthStore>;
34
34
  get isMainPanelOpen(): boolean;
35
35
  get isSecondaryPanelOpen(): boolean;
36
36
  get mainPanelProps(): SidePanelComponentProps | undefined;
@@ -1,17 +1,12 @@
1
- import { NEWLINE } from "../../../constants";
2
1
  import { Component } from "../../../owl3_compatibility_layer";
3
2
  import { ValueAndLabel } from "../../../types/misc";
4
3
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
4
+ import { Store } from "../../../types/store_engine";
5
5
  import { Select } from "../../select/select";
6
6
  import { ValidationMessages } from "../../validation_messages/validation_messages";
7
7
  import { Checkbox } from "../components/checkbox/checkbox";
8
8
  import { Section } from "../components/section/section";
9
- type SeparatorValue = "auto" | "custom" | " " | "," | ";" | typeof NEWLINE;
10
- interface State {
11
- separatorValue: SeparatorValue;
12
- customSeparator: string;
13
- addNewColumns: boolean;
14
- }
9
+ import { SplitToColumnsSeparatorValue, SplitToColumnsStore } from "./split_to_columns_store";
15
10
  export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv> {
16
11
  static template: string;
17
12
  static components: {
@@ -23,16 +18,14 @@ export declare class SplitIntoColumnsPanel extends Component<SpreadsheetChildEnv
23
18
  protected props: import("@odoo/owl").Props<{
24
19
  onCloseSidePanel: () => void;
25
20
  }>;
26
- state: State;
21
+ store: Store<SplitToColumnsStore>;
27
22
  setup(): void;
28
- onSeparatorChange(value: SeparatorValue): void;
23
+ onSeparatorChange(value: SplitToColumnsSeparatorValue): void;
29
24
  updateCustomSeparator(ev: InputEvent): void;
30
25
  updateAddNewColumnsCheckbox(addNewColumns: boolean): void;
31
26
  confirm(): void;
32
27
  get errorMessages(): string[];
33
28
  get warningMessages(): string[];
34
- get separatorValue(): string;
35
29
  get separators(): ValueAndLabel[];
36
30
  get isConfirmDisabled(): boolean;
37
31
  }
38
- export {};
@@ -0,0 +1,33 @@
1
+ import { NEWLINE } from "../../../constants";
2
+ import { SpreadsheetStore } from "../../../stores/spreadsheet_store";
3
+ import { Command, DispatchResult } from "../../../types/commands";
4
+ export type SplitToColumnsSeparatorValue = "auto" | "custom" | " " | "," | ";" | typeof NEWLINE;
5
+ export declare class SplitToColumnsStore extends SpreadsheetStore {
6
+ mutators: readonly ["setSeparatorValue", "setCustomSeparator", "setShouldAddNewColumns"];
7
+ storeGetters: readonly ["canSplitIntoColumns"];
8
+ separatorValue: SplitToColumnsSeparatorValue;
9
+ customSeparator: string;
10
+ addNewColumns: boolean;
11
+ setSeparatorValue(separatorValue: SplitToColumnsSeparatorValue): void;
12
+ setCustomSeparator(customSeparator: string): void;
13
+ setShouldAddNewColumns(addNewColumns: boolean): void;
14
+ canSplitIntoColumns(args: {
15
+ force: boolean;
16
+ }): DispatchResult;
17
+ handle(cmd: Command): void;
18
+ get automaticSeparatorOfSelection(): string;
19
+ private getAutoSeparatorForString;
20
+ private splitIntoColumns;
21
+ private getSplittedCols;
22
+ private splitAndRemoveTrailingEmpty;
23
+ private willSplittedColsOverwriteContent;
24
+ private removeMergesInSplitZone;
25
+ private addColsToAvoidCollisions;
26
+ private getColsToAddToAvoidCollision;
27
+ private addColumnsToNotOverflowSheet;
28
+ private checkSingleColSelected;
29
+ private checkNonEmptySelector;
30
+ private checkNotOverwritingContent;
31
+ private checkSeparatorInSelection;
32
+ get separatorString(): string;
33
+ }
@@ -20,6 +20,7 @@ export declare class SmallBottomBar extends Component<SpreadsheetChildEnv> {
20
20
  }>;
21
21
  private composerFocusStore;
22
22
  private composerStore;
23
+ private viewStore;
23
24
  private composerInterface;
24
25
  private composerRef;
25
26
  private menuState;
@@ -43,6 +43,8 @@ export declare class Spreadsheet extends Component<SpreadsheetChildEnv> {
43
43
  private isViewportTooSmall;
44
44
  private notificationStore;
45
45
  private composerFocusStore;
46
+ private viewStore;
47
+ private zoomStore;
46
48
  get model(): Model;
47
49
  getStyle(): string;
48
50
  setup(): void;
@@ -11,9 +11,10 @@ export declare class StandaloneGridCanvas extends Component<SpreadsheetChildEnv>
11
11
  renderingCtx: {
12
12
  sheetId: import("../..").UID;
13
13
  hideGridLines?: boolean | undefined;
14
- selectedZones: import("../..").Zone[];
15
14
  viewports: import("../../helpers/viewport_collection").ViewportCollection;
15
+ selectedZones: import("../..").Zone[];
16
16
  dpr: number;
17
+ hideFrozenPaneBorder?: boolean | undefined;
17
18
  activeCols: Set<number>;
18
19
  activeRows: Set<number>;
19
20
  activePosition: import("../..").CellPosition | undefined;
@@ -0,0 +1,56 @@
1
+ import { Component } from "../../owl3_compatibility_layer";
2
+ import { RendererStore } from "../../stores/renderer_store";
3
+ import { ViewportsStore } from "../../stores/viewports_store";
4
+ import { ZoomStore } from "../../stores/zoom_store";
5
+ import { HeaderIndex } from "../../types/misc";
6
+ import { Rect } from "../../types/rendering";
7
+ import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
8
+ import { Store } from "../../types/store_engine";
9
+ import { ClickableCellsOverlay } from "../clickable_cells_overlay/clickable_cells_overlay";
10
+ import { GridOverlay } from "../grid_overlay/grid_overlay";
11
+ import { GridPopover } from "../grid_popover/grid_popover";
12
+ import { CellPopoverStore } from "../popover/cell_popover_store";
13
+ import { VerticalScrollBar } from "../scrollbar/scrollbar_vertical";
14
+ interface ColResizer {
15
+ col: HeaderIndex;
16
+ style: string;
17
+ }
18
+ interface DnDResizeState {
19
+ col: HeaderIndex | undefined;
20
+ }
21
+ export declare class StandaloneViewport extends Component<SpreadsheetChildEnv> {
22
+ static template: string;
23
+ static components: {
24
+ VerticalScrollBar: typeof VerticalScrollBar;
25
+ GridOverlay: typeof GridOverlay;
26
+ ClickableCellsOverlay: typeof ClickableCellsOverlay;
27
+ GridPopover: typeof GridPopover;
28
+ };
29
+ protected props: import("@odoo/owl").PropsWithDefaults<{
30
+ range: import("../..").Range;
31
+ canResizeColumns: boolean;
32
+ onResizeColumns?: ((columnWeights: number[] | undefined) => void) | undefined;
33
+ columnWeights?: number[] | undefined;
34
+ }, "canResizeColumns">;
35
+ private canvasRef;
36
+ private containerRef;
37
+ private store;
38
+ dndState: DnDResizeState;
39
+ onMouseWheel: (ev: WheelEvent) => void;
40
+ rendererStore: Store<RendererStore>;
41
+ viewStore: Store<ViewportsStore>;
42
+ zoomStore: Store<ZoomStore>;
43
+ cellPopoverStore: Store<CellPopoverStore>;
44
+ setup(): void;
45
+ get containerWidth(): number;
46
+ get containerHeight(): number;
47
+ get hasVerticalScrollBar(): boolean | 0;
48
+ get scrollBarContainerStyle(): string;
49
+ onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex, ev: MouseEvent): void;
50
+ get gridOverlayDimensions(): string;
51
+ get colResizers(): ColResizer[];
52
+ onResizerPointerDown(ev: MouseEvent, resizer: ColResizer): void;
53
+ onResizerDoubleClick(): void;
54
+ getGridRect(): Rect;
55
+ }
56
+ export {};
@@ -0,0 +1,28 @@
1
+ import { SpreadsheetStore } from "../../stores/spreadsheet_store";
2
+ import { Command } from "../../types/commands";
3
+ import { HeaderDimensions, HeaderIndex, UID } from "../../types/misc";
4
+ import { Range } from "../../types/range";
5
+ import { GridRenderingContext } from "../../types/rendering";
6
+ import { Get } from "../../types/store_engine";
7
+ export declare class StandaloneViewportStore extends SpreadsheetStore {
8
+ mutators: readonly ["setContainerSize", "setRange", "resizeColumn", "setCustomColWeights"];
9
+ cachedColDimensions: Record<HeaderIndex, HeaderDimensions> | undefined;
10
+ private containerWidth;
11
+ private containerHeight;
12
+ private range;
13
+ private customColWeights;
14
+ private viewStore;
15
+ constructor(get: Get, range: Range, customColWeights?: number[]);
16
+ handle(cmd: Command): void;
17
+ setContainerSize(width: number, height: number): "noStateChange" | undefined;
18
+ setRange(range: Range): "noStateChange" | undefined;
19
+ setCustomColWeights(weights: number[] | undefined): "noStateChange" | undefined;
20
+ resizeColumn(resizedCol: HeaderIndex, weightDelta: number, weightsAtStartOfDrag: number[]): void;
21
+ private changeColumnWeights;
22
+ get renderingContext(): Omit<GridRenderingContext, "ctx" | "thinLineWidth">;
23
+ get headerDimensionsCallback(): (sheetId: UID, dimension: "COL" | "ROW", index: number) => HeaderDimensions;
24
+ getHeaderDimensions(sheetId: UID, dimension: "COL" | "ROW", index: number): HeaderDimensions;
25
+ get columnWeights(): number[];
26
+ private computeColDimensions;
27
+ private normalizeWeights;
28
+ }
@@ -1,14 +1,11 @@
1
1
  import { PositionMap } from "../../helpers/cells/position_map";
2
2
  import { SpreadsheetStore } from "../../stores/spreadsheet_store";
3
- import { Command } from "../../types/commands";
4
- import { Color, Position } from "../../types/misc";
3
+ import { CellPosition, Color } from "../../types/misc";
5
4
  export declare class HoveredTableStore extends SpreadsheetStore {
6
5
  mutators: readonly ["clear", "hover"];
7
- col: number | undefined;
8
- row: number | undefined;
6
+ position: CellPosition | undefined;
9
7
  overlayColors: PositionMap<Color>;
10
- handle(cmd: Command): void;
11
- hover(position: Partial<Position>): "noStateChange" | undefined;
8
+ hover(position: CellPosition | undefined): "noStateChange" | undefined;
12
9
  clear(): void;
13
10
  private computeOverlay;
14
11
  }
@@ -16,6 +16,7 @@ export declare class TableResizer extends Component<SpreadsheetChildEnv> {
16
16
  clientY: number;
17
17
  }, onPointerMove: (col: HeaderIndex, row: HeaderIndex, ev: MouseEvent) => void, onPointerUp: () => void, startScrollDirection?: import("../../helpers/drag_and_drop_grid_hook").DnDDirection) => void;
18
18
  };
19
+ private viewStore;
19
20
  setup(): void;
20
21
  get containerStyle(): string;
21
22
  onMouseDown(ev: PointerEvent): void;
@@ -1,7 +1,7 @@
1
+ import { Component } from "../../../owl3_compatibility_layer";
1
2
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
2
3
  import { ToolBarDropdownStore } from "../../helpers/top_bar_tool_hook";
3
4
  import { NumberEditor } from "../../number_editor/number_editor";
4
- import { Component } from "../../../owl3_compatibility_layer";
5
5
  export declare class ToolBarZoom extends Component<SpreadsheetChildEnv> {
6
6
  static template: string;
7
7
  static components: {
@@ -11,6 +11,7 @@ export declare class ToolBarZoom extends Component<SpreadsheetChildEnv> {
11
11
  class: string;
12
12
  }>;
13
13
  topBarToolStore: ToolBarDropdownStore;
14
+ private zoomStore;
14
15
  valueList: number[];
15
16
  setup(): void;
16
17
  get currentFontSize(): number;
@@ -64,6 +64,9 @@ export declare const MENU_SEPARATOR_BORDER_WIDTH = 1;
64
64
  export declare const MENU_SEPARATOR_PADDING = 5;
65
65
  export declare const MENU_SEPARATOR_HEIGHT: number;
66
66
  export declare const ZOOM_VALUES: number[];
67
+ export declare const MIN_ZOOM = 0.5;
68
+ export declare const MAX_ZOOM = 2;
69
+ export declare const DEFAULT_ZOOM = 1;
67
70
  export declare const DEFAULT_STYLE: {
68
71
  align: "default";
69
72
  verticalAlign: "bottom";
@@ -95,6 +98,7 @@ export declare const DEFAULT_NUMBER_STYLE: {
95
98
  };
96
99
  export declare const DEFAULT_VERTICAL_ALIGN: "bottom";
97
100
  export declare const DEFAULT_WRAPPING_MODE: "overflow";
101
+ export declare const DEFAULT_TEXT_HIGHLIGHT_PERCENT = 0.25;
98
102
  export declare const DEFAULT_FONT_WEIGHT = "400";
99
103
  export declare const DEFAULT_FONT_SIZE: number;
100
104
  export declare const HEADER_FONT_SIZE = 11;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface FunctionCode {
5
5
  readonly returnExpression: JsString;
6
+ readonly returnsMatrix: boolean;
6
7
  /**
7
8
  * Return the same function code but with the return expression assigned to a variable.
8
9
  */
@@ -26,7 +27,7 @@ export declare class FunctionCodeBuilder {
26
27
  private code;
27
28
  constructor(scope?: Scope);
28
29
  append(...lines: (JsString | FunctionCode)[]): void;
29
- return(expression: JsString): FunctionCode;
30
+ return(expression: JsString, returnsMatrix?: boolean): FunctionCode;
30
31
  toString(): string;
31
32
  }
32
33
  export declare class Scope {
@@ -1,4 +1,5 @@
1
1
  import { CoreGetters } from "../types/core_getters";
2
+ import { ComputeFunction } from "../types/functions";
2
3
  import { ApplyRangeChange, ApplyRenameNamedRange, FormulaToExecute, LiteralValues, NamedRange, UID } from "../types/misc";
3
4
  import { Range, RangeStringOptions } from "../types/range";
4
5
  import { AST } from "./parser";
@@ -25,6 +26,7 @@ export declare const UNARY_OPERATOR_MAP: {
25
26
  };
26
27
  interface ICompiledFormula {
27
28
  execute: FormulaToExecute;
29
+ computeFunctions: ComputeFunction[];
28
30
  tokens: Token[];
29
31
  dependencies: string[];
30
32
  isBadExpression: boolean;
@@ -35,6 +37,9 @@ interface ICompiledFormula {
35
37
  export declare const functionCache: {
36
38
  [key: string]: FormulaToExecute;
37
39
  };
40
+ export declare const computeFunctionsCache: {
41
+ [key: string]: ComputeFunction[];
42
+ };
38
43
  /**
39
44
  * A compiled formula is the result of the compilation of a formula string.
40
45
  * It contains all the information needed to execute the formula, as well as some metadata
@@ -49,6 +54,7 @@ export declare class CompiledFormula implements Omit<ICompiledFormula, "tokens"
49
54
  readonly isBadExpression: boolean;
50
55
  readonly normalizedFormula: string;
51
56
  readonly execute: FormulaToExecute;
57
+ readonly computeFunctions: ComputeFunction[];
52
58
  readonly rangeDependencies: Range[];
53
59
  hasDependencies: boolean;
54
60
  private constructor();
@@ -92,6 +98,7 @@ export declare class CompiledFormula implements Omit<ICompiledFormula, "tokens"
92
98
  * Make a new instance of CompiledFormula by compiling the formula string as input by the user.
93
99
  * */
94
100
  static Compile(formula: string, sheetId: UID, getters: CoreGetters): CompiledFormula;
101
+ areRangeShapesInLineWithNormalizedFormula(): boolean;
95
102
  }
96
103
  /**
97
104
  * A compiled formula serialized
@@ -1,4 +1,4 @@
1
- import { ComputeFunction, EvalContext, FunctionDescription } from "../types/functions";
1
+ import { ArgDefinition, ComputeFunction, EvalContext, FunctionDescription } from "../types/functions";
2
2
  import { Arg, FunctionResultObject, Matrix } from "../types/misc";
3
3
  /**
4
4
  * Enables a formula function to accept matrix or vector inputs instead of simple value, computing results across multiple dimensions.
@@ -36,7 +36,8 @@ import { Arg, FunctionResultObject, Matrix } from "../types/misc";
36
36
  * - For special behaviors (e.g. the `IF` function), you may declare all arguments
37
37
  * as ranges and invoke this helper directly within your `compute` implementation.
38
38
  */
39
- export declare function applyVectorization(context: EvalContext, descr: FunctionDescription, args: Arg[], acceptToVectorize?: boolean[] | undefined): FunctionResultObject | Matrix<FunctionResultObject>;
40
- export declare function createComputeFunction(descr: FunctionDescription): ComputeFunction<Matrix<FunctionResultObject> | FunctionResultObject>;
39
+ export declare function applyVectorization(context: EvalContext, descr: FunctionDescription, args: Arg[], argDefinitions: ArgDefinition[], vectorizedArgsIndices: number[]): FunctionResultObject | Matrix<FunctionResultObject>;
40
+ export declare function getFunctionArgDefinitions(descr: FunctionDescription, argCount: number): ArgDefinition[];
41
+ export declare function createComputeFunction(descr: FunctionDescription, argCount: number, vectorizedArgsIndices?: number[]): ComputeFunction;
41
42
  export declare function handleError(e: unknown, functionName: string): FunctionResultObject;
42
43
  export declare const implementationErrorMessage: string;
@@ -1,10 +1,6 @@
1
1
  import { Registry } from "../registries/registry";
2
- import { AddFunctionDescription, ComputeFunction, FunctionDescription } from "../types/functions";
3
- import { FunctionResultObject, Matrix } from "../types/misc";
2
+ import { AddFunctionDescription, FunctionDescription } from "../types/functions";
4
3
  export declare class FunctionRegistry extends Registry<FunctionDescription> {
5
- mapping: {
6
- [key: string]: ComputeFunction<Matrix<FunctionResultObject> | FunctionResultObject>;
7
- };
8
4
  add(name: string, addDescr: AddFunctionDescription): this;
9
5
  replace(name: string, addDescr: AddFunctionDescription): this;
10
6
  }
@@ -22,3 +22,4 @@ export declare function multiplyMatrices(matrix1: Matrix<number>, matrix2: Matri
22
22
  */
23
23
  export declare function toScalar<T>(arg: Matrix<T> | T): T;
24
24
  export declare function isMultipleElementMatrix(arg: any): boolean;
25
+ export declare function getMatrixArgIndices(args: unknown[]): number[];
@@ -19,3 +19,9 @@ export declare function expM(M: Matrix<number>): Matrix<number>;
19
19
  export declare function logM(M: Matrix<number>): Matrix<number>;
20
20
  export declare function predictLinearValues(Y: Matrix<number>, X: Matrix<number>, newX: Matrix<number>, computeIntercept: boolean): Matrix<number>;
21
21
  export declare function getMovingAverageValues(dataset: number[], labels: number[], windowSize?: number): Point[];
22
+ export declare function lnGamma(z: number): number;
23
+ export declare function regularizedGammaUpper(a: number, x: number): number;
24
+ export declare function regularizedBeta(x: number, a: number, b: number): number;
25
+ export declare function normInv(p: number): number;
26
+ export declare function tDistTwoTail(t: number, df: number): number;
27
+ export declare function tInv2T(alpha: number, df: number): number;
@@ -3,135 +3,151 @@ import { Arg, FunctionResultObject, Matrix, Maybe } from "../types/misc";
3
3
  export declare const ARRAY_CONSTRAIN: {
4
4
  description: string;
5
5
  args: import("..").ArgDefinition[];
6
- compute: (this: import("..").EvalContext, array: Arg, rows: Maybe<FunctionResultObject>, columns: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
6
+ computeArray: (this: import("..").EvalContext, array: Arg, rows: Maybe<FunctionResultObject>, columns: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
7
7
  isExported: false;
8
8
  };
9
9
  export declare const ARRAY_LITERAL: {
10
10
  description: string;
11
11
  args: import("..").ArgDefinition[];
12
- compute: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
12
+ computeArray: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
13
13
  isExported: false;
14
14
  hidden: true;
15
15
  };
16
16
  export declare const ARRAY_ROW: {
17
17
  description: string;
18
18
  args: import("..").ArgDefinition[];
19
- compute: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
19
+ computeArray: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
20
20
  isExported: false;
21
21
  hidden: true;
22
22
  };
23
23
  export declare const CHOOSECOLS: {
24
24
  description: string;
25
25
  args: import("..").ArgDefinition[];
26
- compute: (this: import("..").EvalContext, array: Arg, ...columns: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
26
+ computeArray: (this: import("..").EvalContext, array: Arg, ...columns: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
27
27
  isExported: true;
28
28
  };
29
29
  export declare const CHOOSEROWS: {
30
30
  description: string;
31
31
  args: import("..").ArgDefinition[];
32
- compute: (this: import("..").EvalContext, array: Arg, ...rows: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
32
+ computeArray: (this: import("..").EvalContext, array: Arg, ...rows: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
33
33
  isExported: true;
34
34
  };
35
35
  export declare const EXPAND: {
36
36
  description: string;
37
37
  args: import("..").ArgDefinition[];
38
- compute: (this: import("..").EvalContext, arg: Arg, rows: Maybe<FunctionResultObject>, columns?: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
38
+ computeArray: (this: import("..").EvalContext, arg: Arg, rows: Maybe<FunctionResultObject>, columns?: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
39
39
  isExported: true;
40
40
  };
41
41
  export declare const FLATTEN: {
42
42
  description: string;
43
43
  args: import("..").ArgDefinition[];
44
- compute: (...ranges: Arg[]) => Matrix<FunctionResultObject>;
44
+ computeArray: (...ranges: Arg[]) => Matrix<FunctionResultObject>;
45
45
  isExported: false;
46
46
  };
47
47
  export declare const FREQUENCY: {
48
48
  description: string;
49
49
  args: import("..").ArgDefinition[];
50
- compute: (data: Matrix<FunctionResultObject>, classes: Matrix<FunctionResultObject>) => Matrix<number>;
50
+ computeArray: (data: Matrix<FunctionResultObject>, classes: Matrix<FunctionResultObject>) => {
51
+ value: number;
52
+ }[][];
51
53
  isExported: true;
52
54
  };
53
55
  export declare const HSTACK: {
54
56
  description: string;
55
57
  args: import("..").ArgDefinition[];
56
- compute: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
58
+ computeArray: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
57
59
  isExported: true;
58
60
  };
59
61
  export declare const MDETERM: {
60
62
  description: string;
61
63
  args: import("..").ArgDefinition[];
62
- compute: (matrix: Arg) => number | EvaluationError;
64
+ compute: (matrix: Arg) => EvaluationError | {
65
+ value: number;
66
+ };
63
67
  isExported: true;
64
68
  };
65
69
  export declare const MINVERSE: {
66
70
  description: string;
67
71
  args: import("..").ArgDefinition[];
68
- compute: (matrix: Arg) => EvaluationError | Matrix<number>;
72
+ computeArray: (matrix: Arg) => EvaluationError | Matrix<{
73
+ value: number;
74
+ }>;
69
75
  isExported: true;
70
76
  };
71
77
  export declare const MMULT: {
72
78
  description: string;
73
79
  args: import("..").ArgDefinition[];
74
- compute: (matrix1: Arg, matrix2: Arg) => EvaluationError | Matrix<number>;
80
+ computeArray: (matrix1: Arg, matrix2: Arg) => EvaluationError | Matrix<{
81
+ value: number;
82
+ }>;
75
83
  isExported: true;
76
84
  };
77
85
  export declare const SUMPRODUCT: {
78
86
  description: string;
79
87
  args: import("..").ArgDefinition[];
80
- compute: (this: import("..").EvalContext, ...args: Arg[]) => number | EvaluationError;
88
+ compute: (this: import("..").EvalContext, ...args: Arg[]) => EvaluationError | {
89
+ value: number;
90
+ };
81
91
  isExported: true;
82
92
  };
83
93
  export declare const SUMX2MY2: {
84
94
  description: string;
85
95
  args: import("..").ArgDefinition[];
86
- compute: (arrayX: Arg, arrayY: Arg) => number | EvaluationError;
96
+ compute: (arrayX: Arg, arrayY: Arg) => EvaluationError | {
97
+ value: number;
98
+ };
87
99
  isExported: true;
88
100
  };
89
101
  export declare const SUMX2PY2: {
90
102
  description: string;
91
103
  args: import("..").ArgDefinition[];
92
- compute: (arrayX: Arg, arrayY: Arg) => number | EvaluationError;
104
+ compute: (arrayX: Arg, arrayY: Arg) => EvaluationError | {
105
+ value: number;
106
+ };
93
107
  isExported: true;
94
108
  };
95
109
  export declare const SUMXMY2: {
96
110
  description: string;
97
111
  args: import("..").ArgDefinition[];
98
- compute: (arrayX: Arg, arrayY: Arg) => number | EvaluationError;
112
+ compute: (arrayX: Arg, arrayY: Arg) => EvaluationError | {
113
+ value: number;
114
+ };
99
115
  isExported: true;
100
116
  };
101
117
  export declare const TOCOL: {
102
118
  description: string;
103
119
  args: import("..").ArgDefinition[];
104
- compute: (this: import("..").EvalContext, array: Arg, ignore?: Maybe<FunctionResultObject>, scanByColumn?: Maybe<FunctionResultObject>) => NotAvailableError | FunctionResultObject[][];
120
+ computeArray: (this: import("..").EvalContext, array: Arg, ignore?: Maybe<FunctionResultObject>, scanByColumn?: Maybe<FunctionResultObject>) => NotAvailableError | FunctionResultObject[][];
105
121
  isExported: true;
106
122
  };
107
123
  export declare const TOROW: {
108
124
  description: string;
109
125
  args: import("..").ArgDefinition[];
110
- compute: (this: import("..").EvalContext, array: Arg, ignore?: Maybe<FunctionResultObject>, scanByColumn?: Maybe<FunctionResultObject>) => NotAvailableError | FunctionResultObject[][];
126
+ computeArray: (this: import("..").EvalContext, array: Arg, ignore?: Maybe<FunctionResultObject>, scanByColumn?: Maybe<FunctionResultObject>) => NotAvailableError | FunctionResultObject[][];
111
127
  isExported: true;
112
128
  };
113
129
  export declare const TRANSPOSE: {
114
130
  description: string;
115
131
  args: import("..").ArgDefinition[];
116
- compute: (arg: Arg) => Matrix<FunctionResultObject>;
132
+ computeArray: (arg: Arg) => Matrix<FunctionResultObject>;
117
133
  isExported: true;
118
134
  };
119
135
  export declare const VSTACK: {
120
136
  description: string;
121
137
  args: import("..").ArgDefinition[];
122
- compute: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
138
+ computeArray: (...ranges: Arg[]) => EvaluationError | Matrix<FunctionResultObject>;
123
139
  isExported: true;
124
140
  };
125
141
  export declare const WRAPCOLS: {
126
142
  description: string;
127
143
  args: import("..").ArgDefinition[];
128
- compute: (this: import("..").EvalContext, range: Arg, wrapCount: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
144
+ computeArray: (this: import("..").EvalContext, range: Arg, wrapCount: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
129
145
  isExported: true;
130
146
  };
131
147
  export declare const WRAPROWS: {
132
148
  description: string;
133
149
  args: import("..").ArgDefinition[];
134
- compute: (this: import("..").EvalContext, range: Arg, wrapCount: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
150
+ computeArray: (this: import("..").EvalContext, range: Arg, wrapCount: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | Matrix<FunctionResultObject>;
135
151
  isExported: true;
136
152
  };
137
153
  export declare const ARRAYTOTEXT: {
@@ -139,6 +155,8 @@ export declare const ARRAYTOTEXT: {
139
155
  args: import("..").ArgDefinition[];
140
156
  compute: (this: import("..").EvalContext, array: Matrix<{
141
157
  value: string;
142
- }>, format?: Maybe<FunctionResultObject>) => string | EvaluationError;
158
+ }>, format?: Maybe<FunctionResultObject>) => EvaluationError | {
159
+ value: string;
160
+ };
143
161
  isExported: true;
144
162
  };
@@ -8,13 +8,17 @@ export declare const DAVERAGE: {
8
8
  export declare const DCOUNT: {
9
9
  description: string;
10
10
  args: import("..").ArgDefinition[];
11
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
11
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
12
+ value: number;
13
+ };
12
14
  isExported: true;
13
15
  };
14
16
  export declare const DCOUNTA: {
15
17
  description: string;
16
18
  args: import("..").ArgDefinition[];
17
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
19
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
20
+ value: number;
21
+ };
18
22
  isExported: true;
19
23
  };
20
24
  export declare const DGET: {
@@ -44,13 +48,17 @@ export declare const DPRODUCT: {
44
48
  export declare const DSTDEV: {
45
49
  description: string;
46
50
  args: import("..").ArgDefinition[];
47
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
51
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
52
+ value: number;
53
+ };
48
54
  isExported: true;
49
55
  };
50
56
  export declare const DSTDEVP: {
51
57
  description: string;
52
58
  args: import("..").ArgDefinition[];
53
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
59
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
60
+ value: number;
61
+ };
54
62
  isExported: true;
55
63
  };
56
64
  export declare const DSUM: {
@@ -62,12 +70,16 @@ export declare const DSUM: {
62
70
  export declare const DVAR: {
63
71
  description: string;
64
72
  args: import("..").ArgDefinition[];
65
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
73
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
74
+ value: number;
75
+ };
66
76
  isExported: true;
67
77
  };
68
78
  export declare const DVARP: {
69
79
  description: string;
70
80
  args: import("..").ArgDefinition[];
71
- compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => number;
81
+ compute: (this: import("..").EvalContext, database: Matrix<FunctionResultObject>, field: Maybe<FunctionResultObject>, criteria: Matrix<FunctionResultObject>) => {
82
+ value: number;
83
+ };
72
84
  isExported: true;
73
85
  };