@gridsheet/react-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/Cell.d.ts.map +1 -1
- package/dist/components/ColumnMenu.d.ts.map +1 -1
- package/dist/components/ColumnMenuFilterSection.d.ts +5 -0
- package/dist/components/ColumnMenuFilterSection.d.ts.map +1 -0
- package/dist/components/ColumnMenuLabelSection.d.ts +5 -0
- package/dist/components/ColumnMenuLabelSection.d.ts.map +1 -0
- package/dist/components/ColumnMenuSortSection.d.ts +5 -0
- package/dist/components/ColumnMenuSortSection.d.ts.map +1 -0
- package/dist/components/ContextMenu.d.ts +0 -19
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/Editor.d.ts.map +1 -1
- package/dist/components/EditorOptions.d.ts.map +1 -1
- package/dist/components/FormulaBar.d.ts.map +1 -1
- package/dist/components/FunctionGuide.d.ts +3 -2
- package/dist/components/FunctionGuide.d.ts.map +1 -1
- package/dist/components/GridSheet.d.ts +6 -4
- package/dist/components/GridSheet.d.ts.map +1 -1
- package/dist/components/HeaderCellLeft.d.ts.map +1 -1
- package/dist/components/HeaderCellTop.d.ts.map +1 -1
- package/dist/components/MenuItem.d.ts +18 -0
- package/dist/components/MenuItem.d.ts.map +1 -0
- package/dist/components/PluginBase.d.ts +2 -2
- package/dist/components/PluginBase.d.ts.map +1 -1
- package/dist/components/Resizer.d.ts.map +1 -1
- package/dist/components/RowMenu.d.ts.map +1 -1
- package/dist/components/ScrollHandle.d.ts.map +1 -1
- package/dist/components/SearchBar.d.ts.map +1 -1
- package/dist/components/StoreObserver.d.ts +7 -4
- package/dist/components/StoreObserver.d.ts.map +1 -1
- package/dist/components/Tabular.d.ts.map +1 -1
- package/dist/components/useAutocomplete.d.ts.map +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/formula/evaluator.d.ts +36 -40
- package/dist/formula/evaluator.d.ts.map +1 -1
- package/dist/formula/formula-error.d.ts +10 -0
- package/dist/formula/formula-error.d.ts.map +1 -0
- package/dist/formula/functions/__async.d.ts +17 -12
- package/dist/formula/functions/__async.d.ts.map +1 -1
- package/dist/formula/functions/__base.d.ts +82 -23
- package/dist/formula/functions/__base.d.ts.map +1 -1
- package/dist/formula/functions/__utils.d.ts +4 -0
- package/dist/formula/functions/__utils.d.ts.map +1 -1
- package/dist/formula/functions/abs.d.ts +5 -5
- package/dist/formula/functions/abs.d.ts.map +1 -1
- package/dist/formula/functions/add.d.ts +6 -6
- package/dist/formula/functions/add.d.ts.map +1 -1
- package/dist/formula/functions/and.d.ts +5 -5
- package/dist/formula/functions/and.d.ts.map +1 -1
- package/dist/formula/functions/arrayformula.d.ts +12 -0
- package/dist/formula/functions/arrayformula.d.ts.map +1 -0
- package/dist/formula/functions/average.d.ts +5 -5
- package/dist/formula/functions/average.d.ts.map +1 -1
- package/dist/formula/functions/concat.d.ts +5 -5
- package/dist/formula/functions/concat.d.ts.map +1 -1
- package/dist/formula/functions/count.d.ts +4 -4
- package/dist/formula/functions/count.d.ts.map +1 -1
- package/dist/formula/functions/counta.d.ts +4 -4
- package/dist/formula/functions/counta.d.ts.map +1 -1
- package/dist/formula/functions/divide.d.ts +5 -4
- package/dist/formula/functions/divide.d.ts.map +1 -1
- package/dist/formula/functions/eq.d.ts +4 -4
- package/dist/formula/functions/eq.d.ts.map +1 -1
- package/dist/formula/functions/gt.d.ts +5 -5
- package/dist/formula/functions/gt.d.ts.map +1 -1
- package/dist/formula/functions/gte.d.ts +5 -5
- package/dist/formula/functions/gte.d.ts.map +1 -1
- package/dist/formula/functions/if.d.ts +5 -5
- package/dist/formula/functions/if.d.ts.map +1 -1
- package/dist/formula/functions/iferror.d.ts +7 -9
- package/dist/formula/functions/iferror.d.ts.map +1 -1
- package/dist/formula/functions/len.d.ts +5 -5
- package/dist/formula/functions/len.d.ts.map +1 -1
- package/dist/formula/functions/lt.d.ts +5 -5
- package/dist/formula/functions/lt.d.ts.map +1 -1
- package/dist/formula/functions/lte.d.ts +5 -5
- package/dist/formula/functions/lte.d.ts.map +1 -1
- package/dist/formula/functions/max.d.ts +5 -5
- package/dist/formula/functions/max.d.ts.map +1 -1
- package/dist/formula/functions/min.d.ts +5 -5
- package/dist/formula/functions/min.d.ts.map +1 -1
- package/dist/formula/functions/minus.d.ts +6 -6
- package/dist/formula/functions/minus.d.ts.map +1 -1
- package/dist/formula/functions/multiply.d.ts +5 -5
- package/dist/formula/functions/multiply.d.ts.map +1 -1
- package/dist/formula/functions/ne.d.ts +4 -4
- package/dist/formula/functions/ne.d.ts.map +1 -1
- package/dist/formula/functions/not.d.ts +5 -5
- package/dist/formula/functions/not.d.ts.map +1 -1
- package/dist/formula/functions/now.d.ts +4 -4
- package/dist/formula/functions/now.d.ts.map +1 -1
- package/dist/formula/functions/or.d.ts +5 -5
- package/dist/formula/functions/or.d.ts.map +1 -1
- package/dist/formula/functions/power.d.ts +5 -5
- package/dist/formula/functions/power.d.ts.map +1 -1
- package/dist/formula/functions/sum.d.ts +5 -5
- package/dist/formula/functions/sum.d.ts.map +1 -1
- package/dist/formula/functions/uminus.d.ts +5 -5
- package/dist/formula/functions/uminus.d.ts.map +1 -1
- package/dist/formula/mapping.d.ts +4 -3
- package/dist/formula/mapping.d.ts.map +1 -1
- package/dist/formula/solver.d.ts +28 -15
- package/dist/formula/solver.d.ts.map +1 -1
- package/dist/index.d.ts +25 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7875 -8226
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts +3 -3
- package/dist/lib/autofill.d.ts.map +1 -1
- package/dist/lib/{hub.d.ts → book.d.ts} +30 -45
- package/dist/lib/book.d.ts.map +1 -0
- package/dist/lib/cell.d.ts +6 -4
- package/dist/lib/cell.d.ts.map +1 -1
- package/dist/lib/clipboard.d.ts +16 -1
- package/dist/lib/clipboard.d.ts.map +1 -1
- package/dist/lib/coords.d.ts +13 -1
- package/dist/lib/coords.d.ts.map +1 -1
- package/dist/lib/dom.d.ts +7 -0
- package/dist/lib/dom.d.ts.map +1 -0
- package/dist/lib/input.d.ts +11 -2
- package/dist/lib/input.d.ts.map +1 -1
- package/dist/lib/label.d.ts +4 -0
- package/dist/lib/label.d.ts.map +1 -0
- package/dist/lib/menu.d.ts +99 -0
- package/dist/lib/menu.d.ts.map +1 -0
- package/dist/lib/operation.d.ts +0 -3
- package/dist/lib/operation.d.ts.map +1 -1
- package/dist/lib/popup.d.ts +24 -0
- package/dist/lib/popup.d.ts.map +1 -0
- package/dist/lib/reference.d.ts +10 -4
- package/dist/lib/reference.d.ts.map +1 -1
- package/dist/lib/sheet.d.ts +507 -2
- package/dist/lib/sheet.d.ts.map +1 -1
- package/dist/lib/sheet_utils.d.ts +55 -0
- package/dist/lib/sheet_utils.d.ts.map +1 -0
- package/dist/lib/spatial.d.ts +5 -20
- package/dist/lib/spatial.d.ts.map +1 -1
- package/dist/lib/time.d.ts +19 -15
- package/dist/lib/time.d.ts.map +1 -1
- package/dist/lib/virtualization.d.ts +4 -4
- package/dist/policy/checkbox.d.ts +3 -0
- package/dist/policy/checkbox.d.ts.map +1 -0
- package/dist/policy/core.d.ts +128 -18
- package/dist/policy/core.d.ts.map +1 -1
- package/dist/policy/thousand_separator.d.ts +4 -0
- package/dist/policy/thousand_separator.d.ts.map +1 -0
- package/dist/sentinels.d.ts +21 -4
- package/dist/sentinels.d.ts.map +1 -1
- package/dist/store/actions.d.ts +3 -3
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/dispatchers.d.ts +38 -34
- package/dist/store/dispatchers.d.ts.map +1 -1
- package/dist/store/helpers.d.ts +13 -4
- package/dist/store/helpers.d.ts.map +1 -1
- package/dist/styles/minified.d.ts +2 -2
- package/dist/styles/minified.d.ts.map +1 -1
- package/dist/types.d.ts +59 -55
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/formula/functions/acos.d.ts +0 -9
- package/dist/formula/functions/acos.d.ts.map +0 -1
- package/dist/formula/functions/asin.d.ts +0 -9
- package/dist/formula/functions/asin.d.ts.map +0 -1
- package/dist/formula/functions/atan.d.ts +0 -9
- package/dist/formula/functions/atan.d.ts.map +0 -1
- package/dist/formula/functions/atan2.d.ts +0 -9
- package/dist/formula/functions/atan2.d.ts.map +0 -1
- package/dist/formula/functions/col.d.ts +0 -9
- package/dist/formula/functions/col.d.ts.map +0 -1
- package/dist/formula/functions/concatenate.d.ts +0 -9
- package/dist/formula/functions/concatenate.d.ts.map +0 -1
- package/dist/formula/functions/cos.d.ts +0 -9
- package/dist/formula/functions/cos.d.ts.map +0 -1
- package/dist/formula/functions/countif.d.ts +0 -10
- package/dist/formula/functions/countif.d.ts.map +0 -1
- package/dist/formula/functions/exp.d.ts +0 -9
- package/dist/formula/functions/exp.d.ts.map +0 -1
- package/dist/formula/functions/hlookup.d.ts +0 -10
- package/dist/formula/functions/hlookup.d.ts.map +0 -1
- package/dist/formula/functions/index.d.ts +0 -10
- package/dist/formula/functions/index.d.ts.map +0 -1
- package/dist/formula/functions/lenb.d.ts +0 -9
- package/dist/formula/functions/lenb.d.ts.map +0 -1
- package/dist/formula/functions/ln.d.ts +0 -9
- package/dist/formula/functions/ln.d.ts.map +0 -1
- package/dist/formula/functions/log.d.ts +0 -9
- package/dist/formula/functions/log.d.ts.map +0 -1
- package/dist/formula/functions/log10.d.ts +0 -9
- package/dist/formula/functions/log10.d.ts.map +0 -1
- package/dist/formula/functions/match.d.ts +0 -10
- package/dist/formula/functions/match.d.ts.map +0 -1
- package/dist/formula/functions/match.test.d.ts +0 -2
- package/dist/formula/functions/match.test.d.ts.map +0 -1
- package/dist/formula/functions/mod.d.ts +0 -9
- package/dist/formula/functions/mod.d.ts.map +0 -1
- package/dist/formula/functions/pi.d.ts +0 -9
- package/dist/formula/functions/pi.d.ts.map +0 -1
- package/dist/formula/functions/product.d.ts +0 -9
- package/dist/formula/functions/product.d.ts.map +0 -1
- package/dist/formula/functions/radians.d.ts +0 -9
- package/dist/formula/functions/radians.d.ts.map +0 -1
- package/dist/formula/functions/rand.d.ts +0 -9
- package/dist/formula/functions/rand.d.ts.map +0 -1
- package/dist/formula/functions/round.d.ts +0 -9
- package/dist/formula/functions/round.d.ts.map +0 -1
- package/dist/formula/functions/rounddown.d.ts +0 -9
- package/dist/formula/functions/rounddown.d.ts.map +0 -1
- package/dist/formula/functions/roundup.d.ts +0 -9
- package/dist/formula/functions/roundup.d.ts.map +0 -1
- package/dist/formula/functions/row.d.ts +0 -9
- package/dist/formula/functions/row.d.ts.map +0 -1
- package/dist/formula/functions/sin.d.ts +0 -9
- package/dist/formula/functions/sin.d.ts.map +0 -1
- package/dist/formula/functions/sqrt.d.ts +0 -9
- package/dist/formula/functions/sqrt.d.ts.map +0 -1
- package/dist/formula/functions/sumif.d.ts +0 -10
- package/dist/formula/functions/sumif.d.ts.map +0 -1
- package/dist/formula/functions/tan.d.ts +0 -9
- package/dist/formula/functions/tan.d.ts.map +0 -1
- package/dist/formula/functions/vlookup.d.ts +0 -10
- package/dist/formula/functions/vlookup.d.ts.map +0 -1
- package/dist/lib/hub.d.ts.map +0 -1
- package/dist/lib/table.d.ts +0 -463
- package/dist/lib/table.d.ts.map +0 -1
- package/dist/parsers/core.d.ts +0 -38
- package/dist/parsers/core.d.ts.map +0 -1
- package/dist/renderers/checkbox.d.ts +0 -5
- package/dist/renderers/checkbox.d.ts.map +0 -1
- package/dist/renderers/core.d.ts +0 -66
- package/dist/renderers/core.d.ts.map +0 -1
- package/dist/renderers/thousand_separator.d.ts +0 -3
- package/dist/renderers/thousand_separator.d.ts.map +0 -1
package/dist/lib/time.d.ts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare class TimeDelta {
|
|
5
|
-
gsType: string;
|
|
6
|
-
protected diff: Diff;
|
|
7
|
-
private date1;
|
|
8
|
-
private date2;
|
|
1
|
+
export declare class Time {
|
|
2
|
+
readonly __gsType: "Time";
|
|
3
|
+
readonly days: number;
|
|
9
4
|
format: string;
|
|
10
|
-
constructor(
|
|
5
|
+
constructor(days: number, format?: string);
|
|
11
6
|
add(date: Date): Date;
|
|
12
7
|
sub(date: Date): Date;
|
|
13
8
|
stringify(format?: string): string;
|
|
14
9
|
toMilliseconds(): number;
|
|
15
|
-
|
|
10
|
+
toDate(): Date;
|
|
11
|
+
toJSON(): {
|
|
12
|
+
__gsType: 'Time';
|
|
13
|
+
days: number;
|
|
14
|
+
format: string;
|
|
15
|
+
};
|
|
16
16
|
toString(): string;
|
|
17
|
-
static create(hours?: number, minutes?: number, seconds?: number, milliseconds?: number):
|
|
17
|
+
static create(hours?: number, minutes?: number, seconds?: number, milliseconds?: number): Time;
|
|
18
|
+
static fromDate(date: Date): Time;
|
|
19
|
+
static fromDates(date1: Date, date2: Date): Time;
|
|
20
|
+
static fromObject(obj: {
|
|
21
|
+
days: number;
|
|
22
|
+
format?: string;
|
|
23
|
+
}): Time;
|
|
18
24
|
static is(obj: any): boolean;
|
|
19
|
-
static ensure(obj: any):
|
|
20
|
-
static
|
|
21
|
-
static parse(value: string, format?: string, strict?: boolean): TimeDelta | undefined;
|
|
25
|
+
static ensure(obj: any): Time;
|
|
26
|
+
static parse(value: string, format?: string, strict?: boolean): Time | undefined;
|
|
22
27
|
}
|
|
23
28
|
export declare const safeQueueMicrotask: typeof queueMicrotask;
|
|
24
|
-
export {};
|
|
25
29
|
//# sourceMappingURL=time.d.ts.map
|
package/dist/lib/time.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/lib/time.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/lib/time.ts"],"names":[],"mappings":"AAIA,qBAAa,IAAI;IACf,SAAgB,QAAQ,EAAG,MAAM,CAAU;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAA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getCellRectPositions: (
|
|
3
|
+
export declare const getCellRectPositions: (sheet: Sheet, { y, x }: PointType) => {
|
|
4
4
|
top: number;
|
|
5
5
|
left: number;
|
|
6
6
|
bottom: number;
|
|
@@ -16,7 +16,7 @@ export declare const getScreenRect: (e: HTMLDivElement) => {
|
|
|
16
16
|
height: number;
|
|
17
17
|
width: number;
|
|
18
18
|
};
|
|
19
|
-
export declare const virtualize: (
|
|
20
|
-
export declare const smartScroll: (
|
|
19
|
+
export declare const virtualize: (sheet: Sheet, e: HTMLDivElement | null) => Virtualization | null;
|
|
20
|
+
export declare const smartScroll: (sheet: Sheet, e: HTMLDivElement | null, targetPoint: PointType, behavior?: ScrollBehavior) => void;
|
|
21
21
|
export declare const getAreaInTabular: (tabularElement: HTMLDivElement) => AreaType;
|
|
22
22
|
//# sourceMappingURL=virtualization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/policy/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,QAAQ,CAAC;AAE3D,eAAO,MAAM,mBAAmB,EAAE,eAejC,CAAC"}
|
package/dist/policy/core.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { UserTable } from '../lib/table';
|
|
3
2
|
import { CellPatchType, CellType, OperationType, PointType } from '../types';
|
|
3
|
+
import { Sheet, UserSheet } from '../lib/sheet';
|
|
4
|
+
import { FormulaError } from '../formula/formula-error';
|
|
5
|
+
import { Time } from '../lib/time';
|
|
4
6
|
export type AutocompleteOption = {
|
|
5
7
|
value: any;
|
|
6
8
|
label?: any;
|
|
@@ -9,28 +11,91 @@ export type AutocompleteOption = {
|
|
|
9
11
|
value?: any;
|
|
10
12
|
}>;
|
|
11
13
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
+
export type SelectProps = {
|
|
15
|
+
sheet: UserSheet;
|
|
14
16
|
point: PointType;
|
|
15
17
|
current?: CellType;
|
|
16
18
|
next?: CellType;
|
|
17
19
|
operation: OperationType;
|
|
18
20
|
};
|
|
19
|
-
export type
|
|
20
|
-
|
|
21
|
+
export type SerializeForClipboardProps = {
|
|
22
|
+
sheet: UserSheet;
|
|
21
23
|
point: PointType;
|
|
22
24
|
};
|
|
23
|
-
export type
|
|
24
|
-
|
|
25
|
+
export type SelectFallbackProps = {
|
|
26
|
+
sheet: UserSheet;
|
|
25
27
|
point: PointType;
|
|
26
28
|
value: any;
|
|
27
29
|
};
|
|
30
|
+
export type Scalar = string | number | boolean | null | undefined;
|
|
31
|
+
export type ScalarProps<T = any> = {
|
|
32
|
+
value?: T;
|
|
33
|
+
cell?: CellType<T>;
|
|
34
|
+
sheet: Sheet;
|
|
35
|
+
point: PointType;
|
|
36
|
+
};
|
|
37
|
+
export type RenderProps<T = any> = {
|
|
38
|
+
value: T;
|
|
39
|
+
cell?: CellType<T>;
|
|
40
|
+
sheet: Sheet;
|
|
41
|
+
point: PointType;
|
|
42
|
+
apply?: (sheet: UserSheet) => void;
|
|
43
|
+
};
|
|
44
|
+
export type SerializeProps<T = any> = {
|
|
45
|
+
value: T;
|
|
46
|
+
cell?: CellType<T>;
|
|
47
|
+
sheet: Sheet;
|
|
48
|
+
point: PointType;
|
|
49
|
+
};
|
|
28
50
|
export type PolicyMixinType = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
datetimeFormat?: string;
|
|
52
|
+
dateFormat?: string;
|
|
53
|
+
timeFormat?: string;
|
|
54
|
+
decimalPrecision?: number;
|
|
55
|
+
render?: (props: RenderProps) => any;
|
|
56
|
+
renderCallback?: (rendered: any, props: RenderProps) => any;
|
|
57
|
+
renderString?: (props: RenderProps<string>) => any;
|
|
58
|
+
renderNumber?: (props: RenderProps<number>) => any;
|
|
59
|
+
renderBool?: (props: RenderProps<boolean>) => any;
|
|
60
|
+
renderDate?: (props: RenderProps<Date>) => any;
|
|
61
|
+
renderTime?: (props: RenderProps<Time>) => any;
|
|
62
|
+
renderArray?: (props: RenderProps<any[]>) => any;
|
|
63
|
+
renderObject?: (props: RenderProps<any>) => any;
|
|
64
|
+
renderNull?: (props: RenderProps<null | undefined>) => any;
|
|
65
|
+
renderSheet?: (props: RenderProps<UserSheet>) => any;
|
|
66
|
+
renderRowHeaderLabel?: (n: number) => string | null;
|
|
67
|
+
renderColHeaderLabel?: (n: number) => string | null;
|
|
68
|
+
serialize?: (props: SerializeProps) => string;
|
|
69
|
+
serializeString?: (props: SerializeProps<string>) => string;
|
|
70
|
+
serializeNumber?: (props: SerializeProps<number>) => string;
|
|
71
|
+
serializeBool?: (props: SerializeProps<boolean>) => string;
|
|
72
|
+
serializeDate?: (props: SerializeProps<Date>) => string;
|
|
73
|
+
serializeTime?: (props: SerializeProps<Time>) => string;
|
|
74
|
+
serializeArray?: (props: SerializeProps<any[]>) => string;
|
|
75
|
+
serializeNull?: (props: SerializeProps<null | undefined>) => string;
|
|
76
|
+
serializeFormulaError?: (props: SerializeProps<FormulaError>) => string;
|
|
77
|
+
serializeError?: (props: SerializeProps<Error>) => string;
|
|
78
|
+
deserialize?: (value: string, cell?: CellType) => CellType;
|
|
79
|
+
deserializeRaw?: (value: any, cell?: CellType) => CellType;
|
|
80
|
+
deserializeCallback?: (parsed: any, cell?: CellType) => CellType;
|
|
81
|
+
deserializeFirst?: (value: string, cell?: CellType) => CellPatchType<any>;
|
|
82
|
+
deserializeNumber?: (value: string, cell?: CellType) => CellPatchType<number | undefined>;
|
|
83
|
+
deserializeBool?: (value: string, cell?: CellType) => CellPatchType<boolean | undefined>;
|
|
84
|
+
deserializeDate?: (value: string, cell?: CellType) => CellPatchType<Date | undefined>;
|
|
85
|
+
deserializeTime?: (value: string, cell?: CellType) => CellPatchType<Time | undefined>;
|
|
86
|
+
deserializeAny?: (value: string, cell?: CellType) => CellPatchType<string | undefined>;
|
|
87
|
+
toScalar?: (props: ScalarProps) => Scalar;
|
|
88
|
+
toScalarString?: (props: ScalarProps<string>) => Scalar;
|
|
89
|
+
toScalarNumber?: (props: ScalarProps<number>) => Scalar;
|
|
90
|
+
toScalarBool?: (props: ScalarProps<boolean>) => Scalar;
|
|
91
|
+
toScalarDate?: (props: ScalarProps<Date>) => Scalar;
|
|
92
|
+
toScalarTime?: (props: ScalarProps<Time>) => Scalar;
|
|
93
|
+
toScalarArray?: (props: ScalarProps<any[]>) => Scalar;
|
|
94
|
+
toScalarNull?: (props: ScalarProps<null | undefined>) => Scalar;
|
|
95
|
+
getSelectOptions?: () => AutocompleteOption[];
|
|
96
|
+
getSelectFallback?: (props: SelectFallbackProps) => CellType | undefined;
|
|
97
|
+
select?: (props: SelectProps) => CellType | undefined;
|
|
98
|
+
serializeForClipboard?: (props: SerializeForClipboardProps) => string;
|
|
34
99
|
};
|
|
35
100
|
type PolicyProps = {
|
|
36
101
|
mixins?: PolicyMixinType[];
|
|
@@ -38,14 +103,59 @@ type PolicyProps = {
|
|
|
38
103
|
};
|
|
39
104
|
export declare class Policy implements PolicyMixinType {
|
|
40
105
|
priority: number;
|
|
106
|
+
datetimeFormat: string;
|
|
107
|
+
dateFormat: string;
|
|
108
|
+
timeFormat: string;
|
|
109
|
+
decimalPrecision: number;
|
|
110
|
+
deserializeFunctions: ((value: string, cell?: CellType) => CellPatchType<any>)[];
|
|
111
|
+
deserializeCallback?: (parsed: any, cell?: CellType) => CellType;
|
|
112
|
+
deserializeFirst?: (value: string, cell?: CellType) => CellPatchType<any>;
|
|
113
|
+
renderCallback?: (rendered: any, props: RenderProps) => any;
|
|
41
114
|
constructor(props?: PolicyProps);
|
|
115
|
+
private registerDeserializeFunctions;
|
|
42
116
|
private applyMixins;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
117
|
+
render(props: RenderProps): any;
|
|
118
|
+
renderString({ value }: RenderProps<string>): any;
|
|
119
|
+
renderBool({ value }: RenderProps<boolean>): any;
|
|
120
|
+
renderNumber({ value }: RenderProps<number>): any;
|
|
121
|
+
renderDate({ value }: RenderProps<Date>): any;
|
|
122
|
+
renderTime({ value }: RenderProps<Time>): any;
|
|
123
|
+
renderArray(props: RenderProps<any[]>): any;
|
|
124
|
+
renderObject({ value }: RenderProps<any>): any;
|
|
125
|
+
renderNull(_props: RenderProps<null | undefined>): any;
|
|
126
|
+
renderSheet({ value: childSheet, ...rest }: RenderProps<UserSheet>): any;
|
|
127
|
+
renderRowHeaderLabel(_n: number): string | null;
|
|
128
|
+
renderColHeaderLabel(_n: number): string | null;
|
|
129
|
+
toScalar(props: ScalarProps): Scalar;
|
|
130
|
+
toScalarString({ value }: ScalarProps<string>): Scalar;
|
|
131
|
+
toScalarNumber({ value }: ScalarProps<number>): Scalar;
|
|
132
|
+
toScalarBool({ value }: ScalarProps<boolean>): Scalar;
|
|
133
|
+
toScalarDate({ value }: ScalarProps<Date>): Scalar;
|
|
134
|
+
toScalarTime({ value }: ScalarProps<Time>): Scalar;
|
|
135
|
+
toScalarArray({ value, cell, sheet, point }: ScalarProps<any[]>): Scalar;
|
|
136
|
+
toScalarNull(_props: ScalarProps<null | undefined>): Scalar;
|
|
137
|
+
serialize({ value, cell, sheet, point }: SerializeProps): string;
|
|
138
|
+
serializeString({ value }: SerializeProps<string>): string;
|
|
139
|
+
serializeBool({ value }: SerializeProps<boolean>): string;
|
|
140
|
+
serializeNumber({ value }: SerializeProps<number>): string;
|
|
141
|
+
serializeDate({ value }: SerializeProps<Date>): string;
|
|
142
|
+
serializeTime({ value }: SerializeProps<Time>): string;
|
|
143
|
+
serializeArray(props: SerializeProps<any[]>): string;
|
|
144
|
+
serializeNull(_props: SerializeProps<null | undefined>): string;
|
|
145
|
+
serializeFormulaError({ value }: SerializeProps<FormulaError>): string;
|
|
146
|
+
serializeError(_props: SerializeProps<Error>): string;
|
|
147
|
+
serializeForClipboard(props: SerializeForClipboardProps): string;
|
|
148
|
+
deserializeValue(value: any, cell: CellType): CellType;
|
|
149
|
+
deserializeRaw(value: any, cell?: CellType): CellType;
|
|
150
|
+
deserialize(value: string, cell?: CellType): CellPatchType<any>;
|
|
151
|
+
deserializeAny(value: string, _cell?: CellType): CellPatchType<string | undefined>;
|
|
152
|
+
deserializeBool(value: string, _cell?: CellType): CellPatchType<boolean | undefined>;
|
|
153
|
+
deserializeNumber(value: string, _cell?: CellType): CellPatchType<number | undefined>;
|
|
154
|
+
deserializeTime(value: string, _cell?: CellType): CellPatchType<Time | undefined>;
|
|
155
|
+
deserializeDate(value: string, _cell?: CellType): CellPatchType<Date | undefined>;
|
|
156
|
+
getSelectFallback(_props: SelectFallbackProps): any;
|
|
157
|
+
getSelectOptions(): AutocompleteOption[];
|
|
158
|
+
select(props: SelectProps): CellType | undefined;
|
|
49
159
|
}
|
|
50
160
|
export type PolicyType = Policy;
|
|
51
161
|
export declare const DEFAULT_POLICY_NAME = "default";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/policy/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/policy/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,MAAM,MAAM,kBAAkB,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CAYxD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,UAAU,QAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thousand_separator.d.ts","sourceRoot":"","sources":["../../src/policy/thousand_separator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,QAAQ,CAAC;AAgB3D,eAAO,MAAM,4BAA4B,EAAE,eAAiD,CAAC;AAC7F,eAAO,MAAM,iCAAiC,EAAE,eAAiD,CAAC"}
|
package/dist/sentinels.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class Sentinel {
|
|
2
2
|
readonly code: string;
|
|
3
|
-
readonly
|
|
3
|
+
readonly __gsType: "Sentinel";
|
|
4
4
|
constructor(code: string);
|
|
5
5
|
is(obj: any): obj is this;
|
|
6
6
|
static is(obj: any, code?: string): obj is Sentinel;
|
|
@@ -12,12 +12,29 @@ export declare const SOLVING: Sentinel;
|
|
|
12
12
|
* Dependent cells that encounter a Pending value also become pending.
|
|
13
13
|
*/
|
|
14
14
|
export declare class Pending<T = unknown> {
|
|
15
|
-
private
|
|
16
|
-
private readonly id;
|
|
15
|
+
private readonly timestamp;
|
|
17
16
|
readonly promise: Promise<T>;
|
|
18
|
-
readonly
|
|
17
|
+
readonly __gsType: "Pending";
|
|
19
18
|
constructor(promise: Promise<T>);
|
|
20
19
|
static is(obj: any): obj is Pending;
|
|
21
20
|
toString(): string;
|
|
22
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Returned by functions that want to spill a 2D result into adjacent cells.
|
|
24
|
+
*
|
|
25
|
+
* Usage in a function:
|
|
26
|
+
* return new Spilling([[1, 2], [3, 4]]);
|
|
27
|
+
*
|
|
28
|
+
* The solver detects Spilling via `Spilling.is()` and calls
|
|
29
|
+
* `sheet.spill(origin, result.matrix)` to perform obstruction checks
|
|
30
|
+
* and write values into the solvedCaches.
|
|
31
|
+
*/
|
|
32
|
+
export declare class Spilling {
|
|
33
|
+
readonly __gsType: "Spilling";
|
|
34
|
+
/** The 2D matrix of resolved values. matrix[row][col] */
|
|
35
|
+
readonly matrix: any[][];
|
|
36
|
+
constructor(matrix: any[] | any[][]);
|
|
37
|
+
private ensure2D;
|
|
38
|
+
static is(obj: any): obj is Spilling;
|
|
39
|
+
}
|
|
23
40
|
//# sourceMappingURL=sentinels.d.ts.map
|
package/dist/sentinels.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinels.d.ts","sourceRoot":"","sources":["../src/sentinels.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;aAES,IAAI,EAAE,MAAM;IADxC,SAAgB,
|
|
1
|
+
{"version":3,"file":"sentinels.d.ts","sourceRoot":"","sources":["../src/sentinels.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;aAES,IAAI,EAAE,MAAM;IADxC,SAAgB,QAAQ,EAAG,UAAU,CAAU;gBACnB,IAAI,EAAE,MAAM;IAExC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI;IAIzB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,IAAI,QAAQ;CAOpD;AAED,eAAO,MAAM,OAAO,UAA0B,CAAC;AAE/C;;;;GAIG;AACH,qBAAa,OAAO,CAAC,CAAC,GAAG,OAAO;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAEnC,SAAgB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,SAAgB,QAAQ,EAAG,SAAS,CAAU;gBAElC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAK/B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO;IAInC,QAAQ,IAAI,MAAM;CAGnB;AAED;;;;;;;;;GASG;AACH,qBAAa,QAAQ;IACnB,SAAgB,QAAQ,EAAG,UAAU,CAAU;IAC/C,yDAAyD;IACzD,SAAgB,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;gBAEpB,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE,EAAE;IAInC,OAAO,CAAC,QAAQ;IAahB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;CAGrC"}
|
package/dist/store/actions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreType, RectType, ZoneType, PointType, RangeType, PositionType, RawCellType, OperatorType, FilterConfig } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Sheet } from '../lib/sheet';
|
|
3
3
|
type StoreWithCallback = StoreType & {
|
|
4
4
|
callback?: (store: StoreType) => void;
|
|
5
5
|
};
|
|
@@ -64,9 +64,9 @@ export declare const setEntering: (payload: boolean) => {
|
|
|
64
64
|
type: number;
|
|
65
65
|
value: boolean;
|
|
66
66
|
};
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const updateSheet: (payload: Sheet) => {
|
|
68
68
|
type: number;
|
|
69
|
-
value:
|
|
69
|
+
value: Sheet;
|
|
70
70
|
};
|
|
71
71
|
export declare const setEditorRect: (payload: RectType) => {
|
|
72
72
|
type: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EAIT,YAAY,EAEZ,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAarC,KAAK,iBAAiB,GAAG,SAAS,GAAG;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,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YAAY;;cA3pCjC,MAAM;;gBA2pCF,MAAM;qBAAW,YAAY;;;CA4GnE,CAAC"}
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const copier: ({ store, dispatch }:
|
|
3
|
-
export declare const cutter: ({ store, dispatch }:
|
|
4
|
-
export declare const paster: ({ store, dispatch }:
|
|
5
|
-
export declare const undoer: ({ store, dispatch }:
|
|
6
|
-
export declare const redoer: ({ store, dispatch }:
|
|
7
|
-
export declare const rowsInserterAbove: ({ store, dispatch }:
|
|
8
|
-
export declare const rowsInserterBelow: ({ store, dispatch }:
|
|
9
|
-
export declare const colsInserterLeft: ({ store, dispatch }:
|
|
10
|
-
export declare const colsInserterRight: ({ store, dispatch }:
|
|
11
|
-
export declare const rowsRemover: ({ store, dispatch }:
|
|
12
|
-
export declare const colsRemover: ({ store, dispatch }:
|
|
13
|
-
export declare const rowsSorterAsc: ({ store, dispatch }:
|
|
14
|
-
export declare const rowsSorterDesc: ({ store, dispatch }:
|
|
15
|
-
export declare const rowsFilterer: ({ store, dispatch }:
|
|
16
|
-
export declare const rowsFilterClearer: ({ store, dispatch }:
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { StoreDispatchType, FilterConfig } from '../types';
|
|
2
|
+
export declare const copier: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
3
|
+
export declare const cutter: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
4
|
+
export declare const paster: ({ store, dispatch }: StoreDispatchType, onlyValue?: boolean) => Promise<void>;
|
|
5
|
+
export declare const undoer: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
6
|
+
export declare const redoer: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
7
|
+
export declare const rowsInserterAbove: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
8
|
+
export declare const rowsInserterBelow: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
9
|
+
export declare const colsInserterLeft: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
10
|
+
export declare const colsInserterRight: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
11
|
+
export declare const rowsRemover: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
12
|
+
export declare const colsRemover: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
13
|
+
export declare const rowsSorterAsc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
|
|
14
|
+
export declare const rowsSorterDesc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
|
|
15
|
+
export declare const rowsFilterer: ({ store, dispatch }: StoreDispatchType, x: number, filter: FilterConfig) => Promise<void>;
|
|
16
|
+
export declare const rowsFilterClearer: ({ store, dispatch }: StoreDispatchType, x?: number) => Promise<void>;
|
|
17
|
+
export declare const rowSortFixedToggler: ({ store, dispatch }: StoreDispatchType, y: number) => void;
|
|
18
|
+
export declare const rowFilterFixedToggler: ({ store, dispatch }: StoreDispatchType, y: number) => void;
|
|
19
|
+
export declare const searcher: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
20
|
+
export declare const applyers: {
|
|
21
|
+
copy: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
22
|
+
cut: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
23
|
+
paste: ({ store, dispatch }: StoreDispatchType, onlyValue?: boolean) => Promise<void>;
|
|
24
|
+
undo: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
25
|
+
redo: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
26
|
+
insertRowsAbove: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
27
|
+
insertRowsBelow: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
28
|
+
insertColsLeft: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
29
|
+
insertColsRight: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
30
|
+
removeRows: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
31
|
+
removeCols: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
32
|
+
sortRowsAsc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
|
|
33
|
+
sortRowsDesc: ({ store, dispatch }: StoreDispatchType, x: number) => Promise<void>;
|
|
34
|
+
filterRows: ({ store, dispatch }: StoreDispatchType, x: number, filter: FilterConfig) => Promise<void>;
|
|
35
|
+
clearFilter: ({ store, dispatch }: StoreDispatchType, x?: number) => Promise<void>;
|
|
36
|
+
toggleSortFixed: ({ store, dispatch }: StoreDispatchType, y: number) => void;
|
|
37
|
+
toggleFilterFixed: ({ store, dispatch }: StoreDispatchType, y: number) => void;
|
|
38
|
+
search: ({ store, dispatch }: StoreDispatchType) => Promise<void>;
|
|
35
39
|
};
|
|
36
40
|
//# sourceMappingURL=dispatchers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchers.d.ts","sourceRoot":"","sources":["../../src/store/dispatchers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dispatchers.d.ts","sourceRoot":"","sources":["../../src/store/dispatchers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAe,MAAM,UAAU,CAAC;AAyB7E,eAAO,MAAM,MAAM,GAAU,qBAAqB,iBAAiB,kBAKlE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,qBAAqB,iBAAiB,kBAKlE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,qBAAqB,iBAAiB,EAAE,mBAAiB,kBAwBrF,C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AQhB,iBAAiB;sCAQvB,iBAAiB;sCAQjB,iBAAiB;uCAQf,iBAAiB,KAAK,MAAM;wCAS3B,iBAAiB,KAAK,MAAM;sCAS9B,iBAAiB,KAAK,MAAM,UAAU,YAAY;uCAS7C,iBAAiB,MAAM,MAAM;2CAKjC,iBAAiB,KAAK,MAAM;6CAa1B,iBAAiB,KAAK,MAAM;kCAanC,iBAAiB;CA2BpE,CAAC"}
|
package/dist/store/helpers.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PointType, StoreType } from '../types';
|
|
3
|
-
|
|
1
|
+
import { Sheet } from '../lib/sheet';
|
|
2
|
+
import { PointType, StorePatchType, StoreType } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Strip redundant fields from a StorePatchType before recording in history.
|
|
5
|
+
* - selectingZone with endY === -1 && endX === -1 is a no-selection sentinel and need not be stored.
|
|
6
|
+
*/
|
|
7
|
+
export declare const compactReflection: (reflection: StorePatchType) => StorePatchType;
|
|
8
|
+
export declare const restrictPoints: (store: StoreType, sheet: Sheet) => {
|
|
4
9
|
choosing: PointType;
|
|
5
10
|
selectingZone: {
|
|
6
11
|
startY: number;
|
|
@@ -9,8 +14,12 @@ export declare const restrictPoints: (store: StoreType, table: Table) => {
|
|
|
9
14
|
endX: number;
|
|
10
15
|
};
|
|
11
16
|
};
|
|
17
|
+
export declare const flashSheet: (el: HTMLElement | null) => void;
|
|
18
|
+
export declare const flashWithCallback: (store: StoreType, sheet: Sheet, callback: ((s: StoreType) => void) | undefined) => StoreType & {
|
|
19
|
+
callback?: (store: StoreType) => void;
|
|
20
|
+
};
|
|
12
21
|
export declare const shouldTracking: (operation: string) => boolean;
|
|
13
|
-
export declare const initSearchStatement: (
|
|
22
|
+
export declare const initSearchStatement: (sheet: Sheet, store: StoreType) => {
|
|
14
23
|
matchingCells: never[];
|
|
15
24
|
searchQuery?: undefined;
|
|
16
25
|
matchingCellIndex?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/store/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,EAAW,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/store/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,EAAW,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,cAAc,KAAG,cAM9D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,EAAE,OAAO,KAAK;cAwBnC,SAAS;;;;;;;CAGlC,CAAC;AAIF,eAAO,MAAM,UAAU,GAAI,IAAI,WAAW,GAAG,IAAI,SAShD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,EAChB,OAAO,KAAK,EACZ,UAAU,CAAC,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC,GAAG,SAAS,KAC7C,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;CAOpD,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,YAgB/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,OAAO,SAAS;;;;;;;;;;CAwDjE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,YAU/C,CAAC"}
|