@gridsheet/react-core 2.0.0-rc.0 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Cell.d.ts.map +1 -1
- package/dist/components/Editor.d.ts.map +1 -1
- package/dist/components/FormulaBar.d.ts.map +1 -1
- package/dist/components/GridSheet.d.ts +1 -1
- 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/ScrollHandle.d.ts.map +1 -1
- package/dist/components/StoreObserver.d.ts +5 -2
- package/dist/components/StoreObserver.d.ts.map +1 -1
- package/dist/components/Tabular.d.ts +2 -1
- package/dist/components/Tabular.d.ts.map +1 -1
- package/dist/formula/evaluator.d.ts +29 -16
- package/dist/formula/evaluator.d.ts.map +1 -1
- package/dist/formula/functions/__utils.d.ts +5 -2
- package/dist/formula/functions/__utils.d.ts.map +1 -1
- package/dist/formula/functions/add.d.ts +1 -1
- package/dist/formula/functions/add.d.ts.map +1 -1
- package/dist/formula/functions/hlookup.d.ts.map +1 -1
- package/dist/formula/functions/index.d.ts +18 -0
- package/dist/formula/functions/index.d.ts.map +1 -0
- package/dist/formula/functions/match.d.ts +18 -0
- package/dist/formula/functions/match.d.ts.map +1 -0
- package/dist/formula/functions/match.test.d.ts +2 -0
- package/dist/formula/functions/match.test.d.ts.map +1 -0
- package/dist/formula/functions/minus.d.ts.map +1 -1
- package/dist/formula/functions/sumif.d.ts.map +1 -1
- package/dist/formula/functions/vlookup.d.ts.map +1 -1
- package/dist/formula/mapping.d.ts.map +1 -1
- package/dist/formula/solver.d.ts +10 -7
- package/dist/formula/solver.d.ts.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6259 -5843
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts.map +1 -1
- package/dist/lib/hub.d.ts +43 -10
- package/dist/lib/hub.d.ts.map +1 -1
- package/dist/lib/reference.d.ts +13 -0
- package/dist/lib/reference.d.ts.map +1 -0
- package/dist/lib/structs.d.ts +6 -1
- package/dist/lib/structs.d.ts.map +1 -1
- package/dist/lib/table.d.ts +34 -34
- package/dist/lib/table.d.ts.map +1 -1
- package/dist/parsers/core.d.ts +2 -0
- package/dist/parsers/core.d.ts.map +1 -1
- package/dist/policy/core.d.ts +3 -3
- package/dist/policy/core.d.ts.map +1 -1
- package/dist/renderers/checkbox.d.ts +1 -1
- package/dist/renderers/checkbox.d.ts.map +1 -1
- package/dist/renderers/core.d.ts +12 -9
- package/dist/renderers/core.d.ts.map +1 -1
- package/dist/renderers/thousand_separator.d.ts +2 -3
- package/dist/renderers/thousand_separator.d.ts.map +1 -1
- package/dist/store/actions.d.ts +116 -0
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/styles/minified.d.ts +2 -2
- package/dist/styles/minified.d.ts.map +1 -1
- package/dist/styles/utils.d.ts +52 -0
- package/dist/styles/utils.d.ts.map +1 -0
- package/dist/types.d.ts +20 -21
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CA2P1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA6B/C,OAAO,EAAE,eAAe,EAA8B,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIjF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACxF,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA6B/C,OAAO,EAAE,eAAe,EAA8B,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIjF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACxF,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAkjB5B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAuCvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,mBA0JtB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Props } from '../types';
|
|
2
|
-
export declare function GridSheet({ initialCells, sheetName, tableRef, options, className, style,
|
|
2
|
+
export declare function GridSheet({ initialCells, sheetName, tableRef, storeRef, options, className, style, hub: initialHub, }: Props): JSX.Element;
|
|
3
3
|
//# sourceMappingURL=GridSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmC,KAAK,EAAa,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmC,KAAK,EAAa,MAAM,UAAU,CAAC;AAmBlF,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,eA2JP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAyBhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAyBhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAuLpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAyBhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAyBhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAwLnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,EAAE,KAAK,sBA+I1E"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { OptionsType } from '../types';
|
|
1
|
+
import { FC, MutableRefObject } from 'react';
|
|
2
|
+
import { OptionsType, StoreRef } from '../types';
|
|
3
3
|
type StoreInitializerProps = OptionsType & {
|
|
4
4
|
sheetName?: string;
|
|
5
|
+
storeRef?: MutableRefObject<StoreRef | null>;
|
|
5
6
|
};
|
|
7
|
+
export declare const createStoreRef: () => import('react').RefObject<StoreRef | null>;
|
|
8
|
+
export declare const useStoreRef: () => MutableRefObject<StoreRef | null>;
|
|
6
9
|
export declare const StoreObserver: FC<StoreInitializerProps>;
|
|
7
10
|
export {};
|
|
8
11
|
//# sourceMappingURL=StoreObserver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreObserver.d.ts","sourceRoot":"","sources":["../../src/components/StoreObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StoreObserver.d.ts","sourceRoot":"","sources":["../../src/components/StoreObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAS,QAAQ,EAAE,MAAM,UAAU,CAAC;AAQ7D,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,cAAc,kDAAqC,CAAC;AACjE,eAAO,MAAM,WAAW,yCAAsC,CAAC;AAC/D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,qBAAqB,CA0FnD,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { TableRef } from '../types';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
tableRef: React.MutableRefObject<TableRef | null> | undefined;
|
|
4
4
|
};
|
|
5
|
-
export declare const createTableRef: () => import('react').
|
|
5
|
+
export declare const createTableRef: () => import('react').RefObject<TableRef | null>;
|
|
6
|
+
export declare const useTableRef: () => import('react').MutableRefObject<TableRef | null>;
|
|
6
7
|
export declare const Tabular: ({ tableRef }: Props) => JSX.Element | null;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=Tabular.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAwC,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAS/F,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,eAAO,MAAM,cAAc,yDAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAwC,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAS/F,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,eAAO,MAAM,cAAc,kDAAqC,CAAC;AACjE,eAAO,MAAM,WAAW,yDAAsC,CAAC;AAC/D,eAAO,MAAM,OAAO,GAAI,cAAc,KAAK,uBA0L1C,CAAC"}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import { Table } from '../lib/table';
|
|
2
|
-
import { PointType } from '../types';
|
|
2
|
+
import { Id, PointType } from '../types';
|
|
3
3
|
type EvaluateProps = {
|
|
4
4
|
table: Table;
|
|
5
5
|
};
|
|
6
|
+
export type IdentifyProps = {
|
|
7
|
+
table: Table;
|
|
8
|
+
slideY?: number;
|
|
9
|
+
slideX?: number;
|
|
10
|
+
dependency: string;
|
|
11
|
+
idMap?: {
|
|
12
|
+
[id: string]: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type DisplayProps = {
|
|
16
|
+
table: Table;
|
|
17
|
+
slideY?: number;
|
|
18
|
+
slideX?: number;
|
|
19
|
+
};
|
|
6
20
|
export declare class FormulaError {
|
|
7
21
|
code: string;
|
|
8
22
|
message: string;
|
|
@@ -26,24 +40,24 @@ export declare class RefEntity extends Entity<string> {
|
|
|
26
40
|
constructor(value: string);
|
|
27
41
|
stringify(): string;
|
|
28
42
|
evaluate({ table }: EvaluateProps): Table;
|
|
29
|
-
|
|
43
|
+
identify({ table, dependency, slideY, slideX }: IdentifyProps): string;
|
|
30
44
|
}
|
|
31
45
|
export declare class RangeEntity extends Entity<string> {
|
|
32
46
|
stringify(): string;
|
|
33
47
|
evaluate({ table }: EvaluateProps): Table;
|
|
34
|
-
|
|
48
|
+
identify({ table, dependency, slideY, slideX }: IdentifyProps): string;
|
|
35
49
|
}
|
|
36
50
|
export declare class IdEntity extends Entity<string> {
|
|
37
51
|
private parse;
|
|
38
52
|
evaluate({ table }: EvaluateProps): Table;
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
display({ table, slideY, slideX }: DisplayProps): string;
|
|
54
|
+
identify({ table, dependency, slideX, slideY }: IdentifyProps): string;
|
|
41
55
|
}
|
|
42
56
|
export declare class IdRangeEntity extends Entity<string> {
|
|
43
57
|
private parse;
|
|
44
58
|
evaluate({ table }: EvaluateProps): Table;
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
display({ table, slideY, slideX }: DisplayProps): string;
|
|
60
|
+
identify({ table, dependency, slideY, slideX }: IdentifyProps): string | undefined;
|
|
47
61
|
}
|
|
48
62
|
export declare class FunctionEntity {
|
|
49
63
|
args: Expression[];
|
|
@@ -67,6 +81,9 @@ export declare class Token {
|
|
|
67
81
|
}
|
|
68
82
|
type LexerOption = {
|
|
69
83
|
origin?: PointType;
|
|
84
|
+
idMap?: {
|
|
85
|
+
[id: Id]: Id;
|
|
86
|
+
};
|
|
70
87
|
};
|
|
71
88
|
export declare class Lexer {
|
|
72
89
|
private index;
|
|
@@ -74,6 +91,7 @@ export declare class Lexer {
|
|
|
74
91
|
tokens: Token[];
|
|
75
92
|
foreign: boolean;
|
|
76
93
|
private origin?;
|
|
94
|
+
private idMap;
|
|
77
95
|
constructor(formula: string, options?: LexerOption);
|
|
78
96
|
private isWhiteSpace;
|
|
79
97
|
private next;
|
|
@@ -82,11 +100,12 @@ export declare class Lexer {
|
|
|
82
100
|
getTokenIndexByCharPosition(pos: number): [number, boolean];
|
|
83
101
|
getTokenPositionRange(index: number, slide?: number): [number, number];
|
|
84
102
|
stringify(): string;
|
|
85
|
-
|
|
86
|
-
|
|
103
|
+
identify(props: IdentifyProps): string;
|
|
104
|
+
display({ table }: DisplayProps): string;
|
|
87
105
|
tokenize(): void;
|
|
88
106
|
private skipSpaces;
|
|
89
107
|
private getString;
|
|
108
|
+
private resolveIdRange;
|
|
90
109
|
}
|
|
91
110
|
export declare class Parser {
|
|
92
111
|
index: number;
|
|
@@ -96,13 +115,7 @@ export declare class Parser {
|
|
|
96
115
|
build(): Expression | undefined;
|
|
97
116
|
private parse;
|
|
98
117
|
}
|
|
99
|
-
export declare const identifyFormula: (
|
|
100
|
-
value: any;
|
|
101
|
-
table: Table;
|
|
102
|
-
originPath: string;
|
|
103
|
-
slideY?: number;
|
|
104
|
-
slideX?: number;
|
|
105
|
-
}) => any;
|
|
118
|
+
export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
|
|
106
119
|
export declare const stripSheetName: (sheetName: string) => string;
|
|
107
120
|
export declare function splitRef(ref: string): {
|
|
108
121
|
sheetName: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/formula/evaluator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/formula/evaluator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF,qBAAa,YAAY;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;gBACT,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAKzD;AAED,cAAM,MAAM,CAAC,C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AK,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;CAiCf,CAAC"}
|
|
@@ -4,9 +4,12 @@ export declare const lt: (left: any, right: any) => boolean;
|
|
|
4
4
|
export declare const lte: (left: any, right: any) => boolean;
|
|
5
5
|
export declare const eq: (left: any, right: any) => boolean;
|
|
6
6
|
export declare const ne: (left: any, right: any) => boolean;
|
|
7
|
-
export
|
|
7
|
+
export type EnsureNumberOptions = {
|
|
8
|
+
alternative?: number;
|
|
9
|
+
ignore?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const ensureNumber: (value: any, options?: EnsureNumberOptions) => number;
|
|
8
12
|
export declare const ensureString: (value: any) => string;
|
|
9
13
|
export declare const ensureBoolean: (value: any, alternative?: boolean) => boolean;
|
|
10
|
-
export declare const stripTable: (value: any, y?: number, x?: number) => any;
|
|
11
14
|
export declare const check: (value: any, condition: string) => boolean;
|
|
12
15
|
//# sourceMappingURL=__utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,EAAE,UAAU,mBAAmB,KAAG,MAgCxE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,KAAG,MAmBzC,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,GAAG,EAEV,cAAc,OAAO,KACpB,OAmBF,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,OAAO,GAAG,EAAE,WAAW,MAAM,KAAG,OAqCrD,CAAC"}
|
|
@@ -8,6 +8,6 @@ export declare class AddFunction extends BaseFunction {
|
|
|
8
8
|
description: string;
|
|
9
9
|
}[];
|
|
10
10
|
protected validate(): void;
|
|
11
|
-
protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date
|
|
11
|
+
protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=add.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,QAAQ,WAAgF;IACxF,QAAQ;;;QAGN;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CA0B5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hlookup.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/hlookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"hlookup.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/hlookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAqC;IAC5C,QAAQ,WAEN;IACF,QAAQ;;;;;;;;SAgBN;IAEF,SAAS,CAAC,QAAQ;IAclB,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;CA2BxE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Table } from '../../lib/table';
|
|
2
|
+
import { BaseFunction } from './__base';
|
|
3
|
+
export declare class IndexFunction extends BaseFunction {
|
|
4
|
+
example: string;
|
|
5
|
+
helpText: string[];
|
|
6
|
+
helpArgs: ({
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
optional?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
optional: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
protected validate(): void;
|
|
16
|
+
protected main(table: Table, y?: number, x?: number): Table;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAyB;IAChC,QAAQ,WAGN;IACF,QAAQ;;;;;;;;SAIN;IAEF,SAAS,CAAC,QAAQ;IAwBlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM;CAgBpD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Table } from '../../lib/table';
|
|
2
|
+
import { BaseFunction } from './__base';
|
|
3
|
+
export declare class MatchFunction extends BaseFunction {
|
|
4
|
+
example: string;
|
|
5
|
+
helpText: string[];
|
|
6
|
+
helpArgs: ({
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
optional?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
optional: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
protected validate(): void;
|
|
16
|
+
protected main(searchKey: any, range: Table, searchType?: number): number;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/match.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAA+B;IACtC,QAAQ,WAGN;IACF,QAAQ;;;;;;;;SAQN;IAEF,SAAS,CAAC,QAAQ;IAuBlB,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,MAAU;CA+CpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.test.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/match.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/minus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/minus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAMxC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAiB;IACxB,QAAQ,WAAuF;IAC/F,QAAQ;;;QAGN;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CAwB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sumif.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/sumif.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"sumif.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/sumif.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKxC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAyB;IAChC,QAAQ,WAA6C;IACrD,QAAQ;;;;;;;;SAWN;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK;CA2BhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vlookup.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/vlookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"vlookup.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/vlookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAsC;IAC7C,QAAQ,WAEN;IACF,QAAQ;;;;;;;;SAgBN;IAEF,SAAS,CAAC,QAAQ;IAclB,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;CA2BxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../src/formula/mapping.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../src/formula/mapping.ts"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,SAAS,EAAE,eA6DvB,CAAC"}
|
package/dist/formula/solver.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Table } from '../lib/table';
|
|
2
|
-
import { MatrixType, PointType } from '../types';
|
|
3
|
-
type
|
|
2
|
+
import { MatrixType, PointType, RefEvaluation } from '../types';
|
|
3
|
+
type SolveFormulaProps = {
|
|
4
4
|
value: any;
|
|
5
5
|
table: Table;
|
|
6
6
|
raise?: boolean;
|
|
7
|
-
|
|
8
|
-
origin
|
|
7
|
+
refEvaluation?: RefEvaluation;
|
|
8
|
+
origin: PointType;
|
|
9
9
|
};
|
|
10
|
-
export declare const solveFormula: ({ value, table, raise,
|
|
11
|
-
|
|
10
|
+
export declare const solveFormula: ({ value, table, raise, refEvaluation, origin }: SolveFormulaProps) => any;
|
|
11
|
+
type SolveTableProps = {
|
|
12
12
|
table: Table;
|
|
13
13
|
raise?: boolean;
|
|
14
|
-
|
|
14
|
+
refEvaluation?: RefEvaluation;
|
|
15
|
+
};
|
|
16
|
+
export declare const solveTable: ({ table, raise }: SolveTableProps) => MatrixType;
|
|
17
|
+
export declare const stripTable: (value: any, y?: number, x?: number, raise?: boolean) => any;
|
|
15
18
|
export {};
|
|
16
19
|
//# sourceMappingURL=solver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solver.d.ts","sourceRoot":"","sources":["../../src/formula/solver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"solver.d.ts","sourceRoot":"","sources":["../../src/formula/solver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKhE,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,gDAAiE,iBAAiB,QA+B9G,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,kBAAyB,eAAe,KAAG,UA8BrE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,EAAE,UAAK,EAAE,UAAK,EAAE,eAAY,QAYhE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { GridSheet } from './components/GridSheet';
|
|
2
|
-
export { createTableRef } from './components/Tabular';
|
|
2
|
+
export { useTableRef, createTableRef } from './components/Tabular';
|
|
3
|
+
export { useStoreRef, createStoreRef } from './components/StoreObserver';
|
|
3
4
|
export { Renderer } from './renderers/core';
|
|
4
5
|
export type { RendererMixinType, RendererCallProps, RenderProps } from './renderers/core';
|
|
5
6
|
export { Parser } from './parsers/core';
|
|
@@ -9,16 +10,20 @@ export { TimeDelta } from './lib/time';
|
|
|
9
10
|
export { x2c, c2x, y2r, r2y, p2a, a2p } from './lib/converters';
|
|
10
11
|
export { updateTable } from './store/actions';
|
|
11
12
|
export { PluginBase, useInitialPluginContext, usePluginContext } from './components/PluginBase';
|
|
12
|
-
export type { MatrixType, CellType, FeedbackType, OptionsType, WriterType, CellsByAddressType, CellsByIdType, ModeType, HeadersType, HistoryType, StoreType, PointType, AreaType, ZoneType, Props, TableRef,
|
|
13
|
-
export type {
|
|
14
|
-
export {
|
|
13
|
+
export type { MatrixType, CellType, FeedbackType, OptionsType, WriterType, CellsByAddressType, CellsByIdType, ModeType, HeadersType, HistoryType, StoreType, PointType, AreaType, ZoneType, Props, TableRef, } from './types';
|
|
14
|
+
export type { HubType, WireProps, TransmitProps } from './lib/hub';
|
|
15
|
+
export { Wire, useHub, createHub } from './lib/hub';
|
|
15
16
|
export type { Dispatcher } from './store';
|
|
16
17
|
export { ThousandSeparatorRendererMixin } from './renderers/thousand_separator';
|
|
17
18
|
export { CheckboxRendererMixin } from './renderers/checkbox';
|
|
18
19
|
export { BaseFunction } from './formula/functions/__base';
|
|
20
|
+
export { FormulaError } from './formula/evaluator';
|
|
19
21
|
export { Table } from './lib/table';
|
|
20
22
|
export { Policy } from './policy/core';
|
|
21
23
|
export type { PolicyType, PolicyOption, PolicyMixinType } from './policy/core';
|
|
22
24
|
export * as operations from './lib/operation';
|
|
23
25
|
export { DEFAULT_HISTORY_LIMIT } from './constants';
|
|
26
|
+
export { userActions } from './store/actions';
|
|
27
|
+
export { clip } from './lib/clipboard';
|
|
28
|
+
export { makeBorder } from './styles/utils';
|
|
24
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACL,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,uBAAuB,EACvB,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChG,YAAY,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,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