@gridsheet/react-core 2.0.0-rc.0 → 2.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/ContextMenu.d.ts.map +1 -1
- package/dist/components/Editor.d.ts +2 -3
- package/dist/components/Editor.d.ts.map +1 -1
- package/dist/components/Emitter.d.ts +1 -7
- package/dist/components/Emitter.d.ts.map +1 -1
- package/dist/components/FormulaBar.d.ts.map +1 -1
- package/dist/components/GridSheet.d.ts +4 -2
- 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/PluginBase.d.ts +2 -2
- package/dist/components/PluginBase.d.ts.map +1 -1
- package/dist/components/Resizer.d.ts +1 -1
- package/dist/components/Resizer.d.ts.map +1 -1
- package/dist/components/ScrollHandle.d.ts +2 -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 +1 -7
- package/dist/components/Tabular.d.ts.map +1 -1
- package/dist/formula/evaluator.d.ts +31 -17
- package/dist/formula/evaluator.d.ts.map +1 -1
- package/dist/formula/functions/__utils.d.ts +10 -3
- 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 +17 -7
- package/dist/formula/solver.d.ts.map +1 -1
- package/dist/index.d.ts +13 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7021 -5966
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts.map +1 -1
- package/dist/lib/clipboard.d.ts.map +1 -1
- package/dist/lib/converters.d.ts.map +1 -1
- package/dist/lib/hub.d.ts +95 -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 +9 -3
- package/dist/lib/structs.d.ts.map +1 -1
- package/dist/lib/table.d.ts +77 -98
- 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 +16 -13
- 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 +261 -1
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/dispatchers.d.ts +24 -11
- package/dist/store/dispatchers.d.ts.map +1 -1
- 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/styles/utils.d.ts +52 -0
- package/dist/styles/utils.d.ts.map +1 -0
- package/dist/types.d.ts +34 -39
- 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":"
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI1D,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,CA0TzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;AAqBpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,WAAW,0BAyBvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gBAElD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,gBAAgB,gBAS9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,gBAS/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,gBAAgB,gBAShD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,gBASzD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,OAAO,gBAAgB,uBAMnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBA4BzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBAazD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAmBzD,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ModeType } from '../types';
|
|
3
3
|
type Props = {
|
|
4
4
|
mode: ModeType;
|
|
5
|
-
handleKeyUp?: (e: KeyboardEvent<HTMLTextAreaElement>, points: CursorStateType) => void;
|
|
6
5
|
};
|
|
7
6
|
export declare const Editor: FC<Props>;
|
|
8
7
|
export declare const editorStyle: (text: string) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AA6B/C,OAAO,EAA6D,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK/F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAqnB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
onChange?: FeedbackType;
|
|
5
|
-
onSelect?: FeedbackType;
|
|
6
|
-
};
|
|
7
|
-
export declare const Emitter: FC<Props>;
|
|
8
|
-
export {};
|
|
2
|
+
export declare const Emitter: FC;
|
|
9
3
|
//# sourceMappingURL=Emitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Emitter.d.ts","sourceRoot":"","sources":["../../src/components/Emitter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Emitter.d.ts","sourceRoot":"","sources":["../../src/components/Emitter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,eAAO,MAAM,OAAO,EAAE,EA+BrB,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,mBAuMtB,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { Props } from '../types';
|
|
2
|
-
export declare
|
|
1
|
+
import { Connector, Props } from '../types';
|
|
2
|
+
export declare const createConnector: () => import('react').RefObject<Connector | null>;
|
|
3
|
+
export declare const useConnector: () => import('react').MutableRefObject<Connector | null>;
|
|
4
|
+
export declare function GridSheet({ initialCells, sheetName, connector: initialConnector, options, className, style, hub: initialHub, }: Props): JSX.Element;
|
|
3
5
|
//# 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,
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,SAAS,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAmB7F,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0DAAuC,CAAC;AAEjE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,SAAS,EAAE,gBAAgB,EAC3B,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,eAsJP"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAkNnC,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;
|
|
1
|
+
{"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAuNlC,CAAC"}
|
|
@@ -4,9 +4,9 @@ import { Dispatcher } from '../store';
|
|
|
4
4
|
export type PluginContextType = {
|
|
5
5
|
provided: boolean;
|
|
6
6
|
store?: StoreType;
|
|
7
|
-
|
|
7
|
+
sync?: Dispatcher;
|
|
8
8
|
setStore: (store: StoreType) => void;
|
|
9
|
-
|
|
9
|
+
setSync: (sync: Dispatcher) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const PluginContext: import('react').Context<PluginContextType>;
|
|
12
12
|
export declare function useInitialPluginContext(): PluginContextType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginBase.d.ts","sourceRoot":"","sources":["../../src/components/PluginBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"PluginBase.d.ts","sourceRoot":"","sources":["../../src/components/PluginBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,aAAa,4CAAyC,CAAC;AAEpE,wBAAgB,uBAAuB,IAAI,iBAAiB,CAU3D;AAED,wBAAgB,gBAAgB,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAM/D;AAED,wBAAgB,iBAAiB,kCAMhC;AAED,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,eAMtD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const Resizer: () => JSX.Element
|
|
1
|
+
export declare const Resizer: () => JSX.Element;
|
|
2
2
|
//# sourceMappingURL=Resizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/components/Resizer.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/components/Resizer.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO,mBAkHnB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
type Props = {
|
|
3
|
+
className?: string;
|
|
3
4
|
style: CSSProperties;
|
|
4
5
|
horizontal?: number;
|
|
5
6
|
vertical?: number;
|
|
6
7
|
};
|
|
7
|
-
export declare function ScrollHandle({ style, horizontal, vertical }: Props): JSX.Element
|
|
8
|
+
export declare function ScrollHandle({ style, horizontal, vertical, className }: Props): JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=ScrollHandle.d.ts.map
|
|
@@ -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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,SAAc,EAAE,EAAE,KAAK,eAsL1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS,0BAoGrB,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { OptionsType } from '../types';
|
|
3
|
-
type
|
|
1
|
+
import { FC, MutableRefObject } from 'react';
|
|
2
|
+
import { OptionsType, Connector } from '../types';
|
|
3
|
+
type StoreObserverProps = OptionsType & {
|
|
4
4
|
sheetName?: string;
|
|
5
|
+
connector?: MutableRefObject<Connector | null>;
|
|
5
6
|
};
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const createConnector: () => import('react').RefObject<Connector | null>;
|
|
8
|
+
export declare const useConnector: () => MutableRefObject<Connector | null>;
|
|
9
|
+
export declare const StoreObserver: FC<StoreObserverProps>;
|
|
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,SAAS,EAAE,MAAM,UAAU,CAAC;AAQ9D,KAAK,kBAAkB,GAAG,WAAW,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0CAAuC,CAAC;AACjE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAwFhD,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type Props = {
|
|
3
|
-
tableRef: React.MutableRefObject<TableRef | null> | undefined;
|
|
4
|
-
};
|
|
5
|
-
export declare const createTableRef: () => import('react').MutableRefObject<TableRef | null>;
|
|
6
|
-
export declare const Tabular: ({ tableRef }: Props) => JSX.Element | null;
|
|
7
|
-
export {};
|
|
1
|
+
export declare const Tabular: () => JSX.Element | null;
|
|
8
2
|
//# sourceMappingURL=Tabular.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,OAAO,0BAsMnB,CAAC"}
|
|
@@ -1,8 +1,23 @@
|
|
|
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
|
+
operation?: 'move' | 'removeRows' | 'removeCols';
|
|
11
|
+
dependency: string;
|
|
12
|
+
idMap?: {
|
|
13
|
+
[id: string]: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type DisplayProps = {
|
|
17
|
+
table: Table;
|
|
18
|
+
slideY?: number;
|
|
19
|
+
slideX?: number;
|
|
20
|
+
};
|
|
6
21
|
export declare class FormulaError {
|
|
7
22
|
code: string;
|
|
8
23
|
message: string;
|
|
@@ -26,24 +41,24 @@ export declare class RefEntity extends Entity<string> {
|
|
|
26
41
|
constructor(value: string);
|
|
27
42
|
stringify(): string;
|
|
28
43
|
evaluate({ table }: EvaluateProps): Table;
|
|
29
|
-
|
|
44
|
+
identify(props: IdentifyProps): string;
|
|
30
45
|
}
|
|
31
46
|
export declare class RangeEntity extends Entity<string> {
|
|
32
47
|
stringify(): string;
|
|
33
48
|
evaluate({ table }: EvaluateProps): Table;
|
|
34
|
-
|
|
49
|
+
identify(props: IdentifyProps): string;
|
|
35
50
|
}
|
|
36
51
|
export declare class IdEntity extends Entity<string> {
|
|
37
52
|
private parse;
|
|
38
53
|
evaluate({ table }: EvaluateProps): Table;
|
|
39
|
-
|
|
40
|
-
|
|
54
|
+
display({ table, slideY, slideX }: DisplayProps): string;
|
|
55
|
+
identify(props: IdentifyProps): string;
|
|
41
56
|
}
|
|
42
57
|
export declare class IdRangeEntity extends Entity<string> {
|
|
43
58
|
private parse;
|
|
44
59
|
evaluate({ table }: EvaluateProps): Table;
|
|
45
|
-
|
|
46
|
-
|
|
60
|
+
display({ table, slideY, slideX }: DisplayProps): string;
|
|
61
|
+
identify(props: IdentifyProps): string | undefined;
|
|
47
62
|
}
|
|
48
63
|
export declare class FunctionEntity {
|
|
49
64
|
args: Expression[];
|
|
@@ -67,6 +82,9 @@ export declare class Token {
|
|
|
67
82
|
}
|
|
68
83
|
type LexerOption = {
|
|
69
84
|
origin?: PointType;
|
|
85
|
+
idMap?: {
|
|
86
|
+
[id: Id]: Id;
|
|
87
|
+
};
|
|
70
88
|
};
|
|
71
89
|
export declare class Lexer {
|
|
72
90
|
private index;
|
|
@@ -74,6 +92,7 @@ export declare class Lexer {
|
|
|
74
92
|
tokens: Token[];
|
|
75
93
|
foreign: boolean;
|
|
76
94
|
private origin?;
|
|
95
|
+
private idMap;
|
|
77
96
|
constructor(formula: string, options?: LexerOption);
|
|
78
97
|
private isWhiteSpace;
|
|
79
98
|
private next;
|
|
@@ -82,11 +101,12 @@ export declare class Lexer {
|
|
|
82
101
|
getTokenIndexByCharPosition(pos: number): [number, boolean];
|
|
83
102
|
getTokenPositionRange(index: number, slide?: number): [number, number];
|
|
84
103
|
stringify(): string;
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
identify(props: IdentifyProps): string;
|
|
105
|
+
display({ table }: DisplayProps): string;
|
|
87
106
|
tokenize(): void;
|
|
88
107
|
private skipSpaces;
|
|
89
108
|
private getString;
|
|
109
|
+
private resolveIdRange;
|
|
90
110
|
}
|
|
91
111
|
export declare class Parser {
|
|
92
112
|
index: number;
|
|
@@ -96,19 +116,13 @@ export declare class Parser {
|
|
|
96
116
|
build(): Expression | undefined;
|
|
97
117
|
private parse;
|
|
98
118
|
}
|
|
99
|
-
export declare const identifyFormula: (
|
|
100
|
-
value: any;
|
|
101
|
-
table: Table;
|
|
102
|
-
originPath: string;
|
|
103
|
-
slideY?: number;
|
|
104
|
-
slideX?: number;
|
|
105
|
-
}) => any;
|
|
119
|
+
export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
|
|
106
120
|
export declare const stripSheetName: (sheetName: string) => string;
|
|
107
121
|
export declare function splitRef(ref: string): {
|
|
108
122
|
sheetName: string | undefined;
|
|
109
123
|
addresses: string[];
|
|
110
124
|
};
|
|
111
|
-
export declare const parseRef: (
|
|
125
|
+
export declare const parseRef: (ref: string, { table, operation, dependency }: IdentifyProps) => {
|
|
112
126
|
table: Table;
|
|
113
127
|
sheetId?: number;
|
|
114
128
|
formula?: string;
|
|
@@ -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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IAKZ,OAAO,CAAC,KAAK;CAqGd;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,EAAE,qBAAqB,aAAa,QAU7E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,WAQ/C,CAAC;AAEF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CA0C5F;AAED,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,kCAAkC,aAAa,KAC9C;IACD,KAAK,EAAE,KAAK,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;CA2Cf,CAAC"}
|
|
@@ -4,9 +4,16 @@ 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 type EnsureBooleanOptions = {
|
|
12
|
+
alternative?: boolean;
|
|
13
|
+
ignore?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const ensureNumber: (value: any, options?: EnsureNumberOptions) => number;
|
|
8
16
|
export declare const ensureString: (value: any) => string;
|
|
9
|
-
export declare const ensureBoolean: (value: any,
|
|
10
|
-
export declare const stripTable: (value: any, y?: number, x?: number) => any;
|
|
17
|
+
export declare const ensureBoolean: (value: any, options?: EnsureBooleanOptions) => boolean;
|
|
11
18
|
export declare const check: (value: any, condition: string) => boolean;
|
|
12
19
|
//# 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,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,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,GAAI,OAAO,GAAG,EAAE,UAAU,oBAAoB,KAAG,OAuB1E,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,26 @@
|
|
|
1
1
|
import { Table } from '../lib/table';
|
|
2
|
-
import { MatrixType, PointType } from '../types';
|
|
3
|
-
type
|
|
2
|
+
import { Id, 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 type StripTableProps = {
|
|
18
|
+
value: any;
|
|
19
|
+
y?: number;
|
|
20
|
+
x?: number;
|
|
21
|
+
raise?: boolean;
|
|
22
|
+
history?: Set<Id>;
|
|
23
|
+
};
|
|
24
|
+
export declare const stripTable: ({ value, y, x, raise, history }: StripTableProps) => any;
|
|
15
25
|
export {};
|
|
16
26
|
//# 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,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKpE,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,QAgC9G,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,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,GAAG,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,iCAA4D,eAAe,KAAG,GAiBxG,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
export { GridSheet } from './components/GridSheet';
|
|
2
|
-
export { createTableRef } from './components/Tabular';
|
|
1
|
+
export { GridSheet, createConnector, useConnector } from './components/GridSheet';
|
|
3
2
|
export { Renderer } from './renderers/core';
|
|
4
3
|
export type { RendererMixinType, RendererCallProps, RenderProps } from './renderers/core';
|
|
5
4
|
export { Parser } from './parsers/core';
|
|
6
5
|
export type { ParserMixinType } from './parsers/core';
|
|
7
|
-
export { oa2aa, aa2oa, buildInitialCells,
|
|
6
|
+
export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, } from './lib/structs';
|
|
8
7
|
export { TimeDelta } from './lib/time';
|
|
9
8
|
export { x2c, c2x, y2r, r2y, p2a, a2p } from './lib/converters';
|
|
10
9
|
export { updateTable } from './store/actions';
|
|
11
10
|
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,
|
|
13
|
-
export type {
|
|
14
|
-
export {
|
|
11
|
+
export type { MatrixType, CellType, FeedbackType, OptionsType, WriterType, CellsByAddressType, CellsByIdType, ModeType, HeadersType, HistoryType, StoreType, PointType, AreaType, ZoneType, Props, Connector, EditorEvent, CursorStateType, } from './types';
|
|
12
|
+
export type { HubType, WireProps, TransmitProps } from './lib/hub';
|
|
13
|
+
export { Wire, useHub, createHub } from './lib/hub';
|
|
15
14
|
export type { Dispatcher } from './store';
|
|
16
15
|
export { ThousandSeparatorRendererMixin } from './renderers/thousand_separator';
|
|
17
16
|
export { CheckboxRendererMixin } from './renderers/checkbox';
|
|
18
17
|
export { BaseFunction } from './formula/functions/__base';
|
|
19
|
-
export {
|
|
18
|
+
export { FormulaError } from './formula/evaluator';
|
|
19
|
+
export { Table, type UserTable } from './lib/table';
|
|
20
20
|
export { Policy } from './policy/core';
|
|
21
21
|
export type { PolicyType, PolicyOption, PolicyMixinType } from './policy/core';
|
|
22
22
|
export * as operations from './lib/operation';
|
|
23
23
|
export { DEFAULT_HISTORY_LIMIT } from './constants';
|
|
24
|
+
export { userActions } from './store/actions';
|
|
25
|
+
export { clip } from './lib/clipboard';
|
|
26
|
+
export { makeBorder } from './styles/utils';
|
|
27
|
+
export { syncers } from './store/dispatchers';
|
|
28
|
+
export { ensureString, ensureNumber, ensureBoolean } from './formula/functions/__utils';
|
|
29
|
+
export type { EnsureNumberOptions, EnsureBooleanOptions } from './formula/functions/__utils';
|
|
24
30
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClF,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,2BAA2B,EAC3B,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,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,WAAW,EACX,eAAe,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