@gridsheet/preact-core 3.0.0-rc.1 → 3.0.0-rc.3
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/components/ColumnMenuFilterSection.d.ts +5 -0
- package/dist/components/ColumnMenuLabelSection.d.ts +5 -0
- package/dist/components/ColumnMenuSortSection.d.ts +5 -0
- package/dist/components/ContextMenu.d.ts +0 -19
- package/dist/components/FunctionGuide.d.ts +3 -2
- package/dist/components/GridSheet.d.ts +6 -4
- package/dist/components/MenuItem.d.ts +18 -0
- package/dist/components/PluginBase.d.ts +2 -2
- package/dist/components/StoreObserver.d.ts +7 -4
- package/dist/constants.d.ts +4 -0
- package/dist/formula/evaluator.d.ts +36 -40
- package/dist/formula/formula-error.d.ts +10 -0
- package/dist/formula/functions/__async.d.ts +17 -12
- package/dist/formula/functions/__base.d.ts +82 -23
- package/dist/formula/functions/__utils.d.ts +4 -0
- package/dist/formula/functions/abs.d.ts +5 -5
- package/dist/formula/functions/add.d.ts +6 -6
- package/dist/formula/functions/and.d.ts +5 -5
- package/dist/formula/functions/arrayformula.d.ts +12 -0
- package/dist/formula/functions/average.d.ts +5 -5
- package/dist/formula/functions/concat.d.ts +5 -5
- package/dist/formula/functions/count.d.ts +4 -4
- package/dist/formula/functions/counta.d.ts +4 -4
- package/dist/formula/functions/divide.d.ts +5 -4
- package/dist/formula/functions/eq.d.ts +4 -4
- package/dist/formula/functions/gt.d.ts +5 -5
- package/dist/formula/functions/gte.d.ts +5 -5
- package/dist/formula/functions/if.d.ts +5 -5
- package/dist/formula/functions/iferror.d.ts +7 -9
- package/dist/formula/functions/len.d.ts +5 -5
- package/dist/formula/functions/lt.d.ts +5 -5
- package/dist/formula/functions/lte.d.ts +5 -5
- package/dist/formula/functions/max.d.ts +5 -5
- package/dist/formula/functions/min.d.ts +5 -5
- package/dist/formula/functions/minus.d.ts +6 -6
- package/dist/formula/functions/multiply.d.ts +5 -5
- package/dist/formula/functions/ne.d.ts +4 -4
- package/dist/formula/functions/not.d.ts +5 -5
- package/dist/formula/functions/now.d.ts +4 -4
- package/dist/formula/functions/or.d.ts +5 -5
- package/dist/formula/functions/power.d.ts +5 -5
- package/dist/formula/functions/sum.d.ts +5 -5
- package/dist/formula/functions/uminus.d.ts +5 -5
- package/dist/formula/mapping.d.ts +4 -3
- package/dist/formula/solver.d.ts +28 -15
- package/dist/index.d.ts +25 -23
- package/dist/index.js +7883 -7796
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts +3 -3
- package/dist/lib/{hub.d.ts → book.d.ts} +30 -45
- package/dist/lib/cell.d.ts +6 -4
- package/dist/lib/clipboard.d.ts +16 -1
- package/dist/lib/coords.d.ts +13 -1
- package/dist/lib/dom.d.ts +7 -0
- package/dist/lib/input.d.ts +11 -2
- package/dist/lib/label.d.ts +4 -0
- package/dist/lib/menu.d.ts +99 -0
- package/dist/lib/operation.d.ts +0 -3
- package/dist/lib/popup.d.ts +24 -0
- package/dist/lib/reference.d.ts +10 -4
- package/dist/lib/sheet.d.ts +507 -2
- package/dist/lib/sheet_utils.d.ts +55 -0
- package/dist/lib/spatial.d.ts +5 -20
- package/dist/lib/time.d.ts +19 -15
- package/dist/lib/virtualization.d.ts +4 -4
- package/dist/policy/checkbox.d.ts +3 -0
- package/dist/policy/core.d.ts +128 -18
- package/dist/policy/thousand_separator.d.ts +4 -0
- package/dist/sentinels.d.ts +21 -4
- package/dist/store/actions.d.ts +3 -3
- package/dist/store/dispatchers.d.ts +38 -34
- package/dist/store/helpers.d.ts +13 -4
- package/dist/styles/minified.d.ts +2 -2
- package/dist/types.d.ts +59 -55
- package/package.json +1 -1
- package/dist/formula/functions/acos.d.ts +0 -9
- package/dist/formula/functions/asin.d.ts +0 -9
- package/dist/formula/functions/atan.d.ts +0 -9
- package/dist/formula/functions/atan2.d.ts +0 -9
- package/dist/formula/functions/col.d.ts +0 -9
- package/dist/formula/functions/concatenate.d.ts +0 -9
- package/dist/formula/functions/cos.d.ts +0 -9
- package/dist/formula/functions/countif.d.ts +0 -10
- package/dist/formula/functions/exp.d.ts +0 -9
- package/dist/formula/functions/hlookup.d.ts +0 -10
- package/dist/formula/functions/index.d.ts +0 -10
- package/dist/formula/functions/lenb.d.ts +0 -9
- package/dist/formula/functions/ln.d.ts +0 -9
- package/dist/formula/functions/log.d.ts +0 -9
- package/dist/formula/functions/log10.d.ts +0 -9
- package/dist/formula/functions/match.d.ts +0 -10
- package/dist/formula/functions/match.test.d.ts +0 -2
- package/dist/formula/functions/mod.d.ts +0 -9
- package/dist/formula/functions/pi.d.ts +0 -9
- package/dist/formula/functions/product.d.ts +0 -9
- package/dist/formula/functions/radians.d.ts +0 -9
- package/dist/formula/functions/rand.d.ts +0 -9
- package/dist/formula/functions/round.d.ts +0 -9
- package/dist/formula/functions/rounddown.d.ts +0 -9
- package/dist/formula/functions/roundup.d.ts +0 -9
- package/dist/formula/functions/row.d.ts +0 -9
- package/dist/formula/functions/sin.d.ts +0 -9
- package/dist/formula/functions/sqrt.d.ts +0 -9
- package/dist/formula/functions/sumif.d.ts +0 -10
- package/dist/formula/functions/tan.d.ts +0 -9
- package/dist/formula/functions/vlookup.d.ts +0 -10
- package/dist/lib/table.d.ts +0 -463
- package/dist/parsers/core.d.ts +0 -38
- package/dist/renderers/checkbox.d.ts +0 -5
- package/dist/renderers/core.d.ts +0 -66
- package/dist/renderers/thousand_separator.d.ts +0 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class DivideFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected validate(args: any[]): any[];
|
|
7
8
|
protected main(divided: number, divisor: number): number;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=divide.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class EqFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
7
|
protected main(v1: any, v2: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=eq.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class GtFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any, v2: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=gt.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class GteFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any, v2: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=gte.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class IfFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(condition:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(condition: any, v1: any, v2?: any): any;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=if.d.ts.map
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class IfErrorFunction {
|
|
1
|
+
import { FunctionArgumentDefinition, BaseFunction, FunctionCategory } from './__base';
|
|
2
|
+
export declare class IfErrorFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
protected validate(): void;
|
|
10
|
-
call(): any;
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected broadcastDisabled: boolean;
|
|
8
|
+
protected main(value: any, valueIfError?: any): any;
|
|
11
9
|
}
|
|
12
10
|
//# sourceMappingURL=iferror.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class LenFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(text:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(text: any): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=len.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class LtFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any, v2: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=lt.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class LteFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any, v2: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=lte.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class MaxFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(...values:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: any[]): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=max.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class MinFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(...values:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: any[]): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=min.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseFunction,
|
|
1
|
+
import { Time } from '../../lib/time';
|
|
2
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
3
3
|
export declare class MinusFunction extends BaseFunction {
|
|
4
4
|
example: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
protected main(v1: number | Date |
|
|
5
|
+
description: string;
|
|
6
|
+
defs: FunctionArgumentDefinition[];
|
|
7
|
+
category: FunctionCategory;
|
|
8
|
+
protected main(v1: number | Date | Time, v2: number | Date | Time): number | Date | Time;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=minus.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class MultiplyFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any, v2: any): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=multiply.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class NeFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
7
|
protected main(v1: number, v2: number): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=ne.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class NotFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=not.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class NowFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
7
|
protected main(): Date;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=now.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class OrFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(...values:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: any[]): boolean;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=or.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class PowerFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(base:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(base: any, exponent: any): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=power.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class SumFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(...values:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(...values: any[]): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=sum.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction,
|
|
1
|
+
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
2
|
export declare class UminusFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
protected main(v1:
|
|
4
|
+
description: string;
|
|
5
|
+
defs: FunctionArgumentDefinition[];
|
|
6
|
+
category: FunctionCategory;
|
|
7
|
+
protected main(v1: any): number;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=uminus.d.ts.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FunctionMapping,
|
|
1
|
+
import { FunctionCategory, FunctionMapping, FunctionArgumentDefinition } from './functions/__base';
|
|
2
2
|
export declare const functions: FunctionMapping;
|
|
3
3
|
export type FunctionHelp = {
|
|
4
4
|
name: string;
|
|
5
|
+
category: FunctionCategory;
|
|
5
6
|
example: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
description: string;
|
|
8
|
+
defs: FunctionArgumentDefinition[];
|
|
8
9
|
};
|
|
9
10
|
export declare const getFunctionHelps: (customFunctions?: FunctionMapping) => FunctionHelp[];
|
|
10
11
|
//# sourceMappingURL=mapping.d.ts.map
|
package/dist/formula/solver.d.ts
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Id, MatrixType, PointType,
|
|
1
|
+
import { Sheet } from '../lib/sheet';
|
|
2
|
+
import { Id, MatrixType, PointType, Resolution } from '../types';
|
|
3
|
+
export type SolveOptions = {
|
|
4
|
+
raise?: boolean;
|
|
5
|
+
resolution?: Resolution;
|
|
6
|
+
};
|
|
3
7
|
type SolveFormulaProps = {
|
|
4
8
|
value: any;
|
|
5
|
-
|
|
9
|
+
sheet: Sheet;
|
|
10
|
+
point: PointType;
|
|
6
11
|
raise?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
resolution?: Resolution;
|
|
13
|
+
at?: Id;
|
|
9
14
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Evaluates a single cell value (formula or literal) within the context of a sheet.
|
|
17
|
+
* Handles caching, circular reference detection, spilling, and async pending states.
|
|
18
|
+
* Returns the resolved scalar value (or error) for the given cell.
|
|
19
|
+
*/
|
|
20
|
+
export declare const solveFormula: ({ value, sheet, point, raise, resolution, at }: SolveFormulaProps) => any;
|
|
21
|
+
export type SolveSheetProps = {
|
|
22
|
+
sheet: Sheet;
|
|
13
23
|
raise?: boolean;
|
|
14
|
-
|
|
24
|
+
at?: Id;
|
|
15
25
|
};
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Evaluates all cells in a Sheet and returns the results as a 2D array (MatrixType).
|
|
28
|
+
* Each cell formula is resolved in order, with caching to avoid redundant computation.
|
|
29
|
+
* Use this when you need the full evaluated contents of a range.
|
|
30
|
+
*/
|
|
31
|
+
export declare const solveSheet: ({ sheet, raise, at }: SolveSheetProps) => MatrixType;
|
|
32
|
+
export type StripSheetProps = {
|
|
18
33
|
value: any;
|
|
19
|
-
|
|
20
|
-
x?: number;
|
|
34
|
+
at?: Id;
|
|
21
35
|
raise?: boolean;
|
|
22
|
-
history?: Set<Id>;
|
|
23
36
|
};
|
|
24
|
-
export declare const
|
|
37
|
+
export declare const stripSheet: ({ value, at, raise }: StripSheetProps) => any;
|
|
25
38
|
export {};
|
|
26
39
|
//# sourceMappingURL=solver.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
export { GridSheet,
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, addressesToAreas, addressesToCols, addressesToRows, } from './lib/spatial';
|
|
7
|
-
export { TimeDelta } from './lib/time';
|
|
8
|
-
export { x2c, c2x, y2r, r2y, p2a, a2p } from './lib/coords';
|
|
9
|
-
export { updateTable } from './store/actions';
|
|
1
|
+
export { GridSheet, createSheetRef, useSheetRef, createStoreRef, useStoreRef } from './components/GridSheet';
|
|
2
|
+
export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, matrixShape, addressesToAreas, addressesToCols, addressesToRows, } from './lib/spatial';
|
|
3
|
+
export { Time } from './lib/time';
|
|
4
|
+
export { x2c, c2x, y2r, r2y, p2a, a2p, rh, ch } from './lib/coords';
|
|
5
|
+
export { updateSheet } from './store/actions';
|
|
10
6
|
export { PluginBase, useInitialPluginContext, usePluginContext } from './components/PluginBase';
|
|
11
|
-
export
|
|
12
|
-
export type {
|
|
13
|
-
export {
|
|
7
|
+
export { MenuItem, MenuDivider } from './components/MenuItem';
|
|
8
|
+
export type { MatrixType, CellType, System, Address, AsyncCache, FilterCondition, FilterConditionMethod, FilterConfig, FeedbackType, OptionsType, WriterType, CellsByAddressType, CellsByIdType, SystemsByIdType, ModeType, HeadersType, HistoryType, HistorySortRowsType, StoreType, PointType, AreaType, ZoneType, Props, SheetHandle, StoreHandle, EditorEvent, CursorStateType, } from './types';
|
|
9
|
+
export type { BookType, BookProps, RegistryProps, TransmitProps } from './lib/book';
|
|
10
|
+
export { Registry, useBook, createBook } from './lib/book';
|
|
14
11
|
export type { Dispatcher } from './store';
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { BaseFunction,
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
12
|
+
export { ThousandSeparatorPolicyMixin } from './policy/thousand_separator';
|
|
13
|
+
export { CheckboxPolicyMixin } from './policy/checkbox';
|
|
14
|
+
export { BaseFunction, BaseFunctionAsync } from './formula/functions/__base';
|
|
15
|
+
export type { FunctionProps, FunctionArgumentDefinition as FunctionArgumentDefinition, FunctionCategory, FunctionMapping, } from './formula/functions/__base';
|
|
16
|
+
export { Lexer, FormulaParser, RefEntity, ValueEntity, RangeEntity } from './formula/evaluator';
|
|
17
|
+
export { FormulaError } from './formula/formula-error';
|
|
18
|
+
export { Sheet, type UserSheet, type SheetLimits } from './lib/sheet';
|
|
19
|
+
export { toValueMatrix, toValueObject, toValueRows, toValueCols, toCellMatrix, toCellObject, toCellRows, toCellCols, type ToValueMatrixProps, type ToValueObjectProps, type ToValueRowsProps, type ToValueColsProps, type ToCellMatrixProps, type ToCellObjectProps, type ToCellRowsProps, type ToCellColsProps, } from './lib/sheet_utils';
|
|
20
20
|
export { Policy } from './policy/core';
|
|
21
|
-
export type { PolicyType, AutocompleteOption, PolicyMixinType } from './policy/core';
|
|
21
|
+
export type { PolicyType, AutocompleteOption, PolicyMixinType, RenderProps, SerializeProps, SelectProps, SelectFallbackProps, SerializeForClipboardProps, } from './policy/core';
|
|
22
22
|
export * as operations from './lib/operation';
|
|
23
23
|
export { DEFAULT_HISTORY_LIMIT } from './constants';
|
|
24
|
-
export { Pending } from './sentinels';
|
|
24
|
+
export { Pending, Spilling } from './sentinels';
|
|
25
25
|
export { userActions } from './store/actions';
|
|
26
|
-
export { clip } from './lib/clipboard';
|
|
26
|
+
export { clip, sheet2csv } from './lib/clipboard';
|
|
27
27
|
export { makeBorder } from './styles/utils';
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
28
|
+
export { applyers } from './store/dispatchers';
|
|
29
|
+
export type { MenuContext, MenuItemBase, MenuComponentItem, ContextMenuItemDescriptor, RowMenuItemDescriptor, ColMenuItemDescriptor, MenuDividerItem, ContextMenuSectionProps, RowMenuSectionProps, ColMenuSectionProps, } from './lib/menu';
|
|
30
|
+
export { defaultContextMenuDescriptors, defaultRowMenuDescriptors, defaultColMenuDescriptors, registerMenuComponent, } from './lib/menu';
|
|
31
|
+
export { ensureString, ensureNumber, ensureBoolean, check, eachMatrix, createBooleanMask, } from './formula/functions/__utils';
|
|
30
32
|
export type { EnsureNumberOptions, EnsureBooleanOptions } from './formula/functions/__utils';
|
|
31
|
-
export {
|
|
33
|
+
export { conditionArg, stripMatrix } from './formula/functions/__base';
|
|
32
34
|
//# sourceMappingURL=index.d.ts.map
|
|
33
35
|
export { h, render } from "preact";
|
|
34
36
|
export {
|