@gridsheet/react-core 3.0.0-rc.2 → 3.0.0-rc.4
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.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/RowMenu.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/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/formula/evaluator.d.ts +28 -25
- package/dist/formula/evaluator.d.ts.map +1 -1
- package/dist/formula/formula-error.d.ts +1 -1
- package/dist/formula/formula-error.d.ts.map +1 -1
- package/dist/formula/functions/__async.d.ts +9 -9
- package/dist/formula/functions/__async.d.ts.map +1 -1
- package/dist/formula/functions/__base.d.ts +14 -21
- package/dist/formula/functions/__base.d.ts.map +1 -1
- package/dist/formula/functions/__utils.d.ts +2 -2
- package/dist/formula/functions/__utils.d.ts.map +1 -1
- package/dist/formula/functions/add.d.ts.map +1 -1
- package/dist/formula/functions/minus.d.ts +0 -1
- package/dist/formula/functions/minus.d.ts.map +1 -1
- package/dist/formula/solver.d.ts +25 -14
- package/dist/formula/solver.d.ts.map +1 -1
- package/dist/index.d.ts +16 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4487 -4524
- 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} +28 -27
- 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 +7 -7
- package/dist/lib/coords.d.ts +13 -1
- package/dist/lib/coords.d.ts.map +1 -1
- package/dist/lib/dom.d.ts +5 -0
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/lib/input.d.ts +2 -2
- 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/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/virtualization.d.ts +4 -4
- package/dist/policy/core.d.ts +13 -13
- package/dist/policy/core.d.ts.map +1 -1
- package/dist/sentinels.d.ts +3 -2
- 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 +10 -5
- 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 +51 -35
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/lib/hub.d.ts.map +0 -1
- package/dist/lib/table.d.ts +0 -484
- package/dist/lib/table.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAyWzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAqC,MAAM,OAAO,CAAC;AAWnE,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,EA0GxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnMenuFilterSection.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenuFilterSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAK9E,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAwB9E,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,CA+O1C,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnMenuLabelSection.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenuLabelSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAMtF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,mBAAmB,CA6EzC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnMenuSortSection.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenuSortSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAI9E,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAO9E,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,mBAAmB,CA0FxC,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ContextMenuProps } from '../types';
|
|
3
1
|
export declare const ContextMenu: () => JSX.Element | null;
|
|
4
|
-
export declare const DividerItem: (props: ContextMenuProps) => JSX.Element;
|
|
5
|
-
export declare const CutItem: (props: ContextMenuProps) => JSX.Element;
|
|
6
|
-
export declare const SearchItem: (props: ContextMenuProps) => JSX.Element;
|
|
7
|
-
export declare const CopyItem: (props: ContextMenuProps) => JSX.Element;
|
|
8
|
-
export declare const PasteItem: (props: ContextMenuProps) => JSX.Element;
|
|
9
|
-
export declare const PasteOnlyValueItem: (props: ContextMenuProps) => JSX.Element;
|
|
10
|
-
export declare const RowsColsOperationDividerItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
11
|
-
export declare const InsertRowsAboveItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
12
|
-
export declare const InsertRowsBelowItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
13
|
-
export declare const InsertColsLeftItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
14
|
-
export declare const InsertColsRightItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
15
|
-
export declare const RemoveRowsItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
16
|
-
export declare const RemoveColsItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
17
|
-
export declare const HistoryDeviderItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
18
|
-
export declare const UndoItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
19
|
-
export declare const RedoItem: (props: ContextMenuProps) => JSX.Element | null;
|
|
20
|
-
export declare const defaultContextMenuItems: FC<ContextMenuProps>[];
|
|
21
2
|
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,0BAgEvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0ChC,OAAO,EAA4C,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK9E,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAssB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorOptions.d.ts","sourceRoot":"","sources":["../../src/components/EditorOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"EditorOptions.d.ts","sourceRoot":"","sources":["../../src/components/EditorOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,UAAU,kBAAkB;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuCtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBA8XpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIzD,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAEjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8JtD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare
|
|
1
|
+
import { SheetHandle, StoreHandle, Props } from '../types';
|
|
2
|
+
export declare const createSheetRef: () => import('react').RefObject<SheetHandle | null>;
|
|
3
|
+
export declare const useSheetRef: () => import('react').MutableRefObject<SheetHandle | null>;
|
|
4
|
+
export declare const createStoreRef: () => import('react').RefObject<StoreHandle | null>;
|
|
5
|
+
export declare const useStoreRef: () => import('react').MutableRefObject<StoreHandle | null>;
|
|
6
|
+
export declare function GridSheet({ initialCells, sheetName, sheetRef: initialSheetRef, storeRef: initialStoreRef, options, className, style, book: initialBook, }: Props): JSX.Element;
|
|
5
7
|
//# 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,EAAsB,
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,WAAW,EAAE,WAAW,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AA+B5G,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAElE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,eAAe,EACzB,OAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,EAAE,WAAW,GAClB,EAAE,KAAK,eAsKP"}
|
|
@@ -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;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAkQnC,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;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAmRlC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type MenuItemProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
shortcuts?: string[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* undefined → no check column
|
|
8
|
+
* true/false → displayed as a toggle row with a checkmark
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const MenuItem: FC<MenuItemProps>;
|
|
16
|
+
export declare const MenuDivider: FC;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=MenuItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../src/components/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA0CtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAA6C,CAAC"}
|
|
@@ -4,9 +4,9 @@ import { Dispatcher } from '../store';
|
|
|
4
4
|
export type PluginContextType = {
|
|
5
5
|
provided: boolean;
|
|
6
6
|
store?: StoreType;
|
|
7
|
-
|
|
7
|
+
apply?: Dispatcher;
|
|
8
8
|
setStore: (store: StoreType) => void;
|
|
9
|
-
|
|
9
|
+
setApply: (apply: 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,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AA8C5C,eAAO,MAAM,OAAO,EAAE,EAmCrB,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { FC, MutableRefObject } from 'react';
|
|
2
|
-
import { OptionsType,
|
|
2
|
+
import { OptionsType, SheetHandle, StoreHandle } from '../types';
|
|
3
3
|
type StoreObserverProps = OptionsType & {
|
|
4
4
|
sheetName?: string;
|
|
5
|
-
|
|
5
|
+
sheetRef?: MutableRefObject<SheetHandle | null>;
|
|
6
|
+
storeRef?: MutableRefObject<StoreHandle | null>;
|
|
6
7
|
};
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const createSheetRef: () => import('react').RefObject<SheetHandle | null>;
|
|
9
|
+
export declare const useSheetRef: () => MutableRefObject<SheetHandle | null>;
|
|
10
|
+
export declare const createStoreRef: () => import('react').RefObject<StoreHandle | null>;
|
|
11
|
+
export declare const useStoreRef: () => MutableRefObject<StoreHandle | null>;
|
|
9
12
|
export declare const StoreObserver: FC<StoreObserverProps>;
|
|
10
13
|
export {};
|
|
11
14
|
//# 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,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAS,
|
|
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,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ7E,KAAK,kBAAkB,GAAG,WAAW,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqFhD,CAAC"}
|
|
@@ -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":"AAiBA,eAAO,MAAM,OAAO,0BAuOnB,CAAC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -15,4 +15,7 @@ export declare const SECONDS_IN_DAY = 86400;
|
|
|
15
15
|
export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
|
|
16
16
|
export declare const RESET_ZONE: ZoneType;
|
|
17
17
|
export declare const BASE_DATE: Date;
|
|
18
|
+
export declare const DEFAULT_KEY = "default";
|
|
19
|
+
export declare const DEFAULT_COL_KEY = "defaultCol";
|
|
20
|
+
export declare const DEFAULT_ROW_KEY = "defaultRow";
|
|
18
21
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,aAAa,KAAK,CAAC;AAEh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AAE9C,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,eAAe,eAAe,CAAC"}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sheet } from '../lib/sheet';
|
|
2
2
|
import { Id } from '../types';
|
|
3
3
|
type EvaluateProps = {
|
|
4
|
-
|
|
4
|
+
sheet: Sheet;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
table: Table;
|
|
6
|
+
type IdentityBaseProps = {
|
|
8
7
|
slideY?: number;
|
|
9
8
|
slideX?: number;
|
|
10
9
|
operation?: 'move' | 'removeRows' | 'removeCols';
|
|
11
|
-
dependency:
|
|
10
|
+
dependency: Id;
|
|
11
|
+
};
|
|
12
|
+
export type ProcessFormulaProps = IdentityBaseProps & {
|
|
12
13
|
idMap?: {
|
|
13
14
|
[id: string]: string;
|
|
14
15
|
};
|
|
15
16
|
};
|
|
17
|
+
export type IdentifyProps = IdentityBaseProps & {
|
|
18
|
+
sheet: Sheet;
|
|
19
|
+
};
|
|
16
20
|
export type DisplayProps = {
|
|
17
|
-
|
|
21
|
+
sheet: Sheet;
|
|
18
22
|
slideY?: number;
|
|
19
23
|
slideX?: number;
|
|
20
24
|
};
|
|
21
25
|
declare class Entity<T = any> {
|
|
22
26
|
value: T;
|
|
27
|
+
ids: string[];
|
|
23
28
|
constructor(value: T);
|
|
24
29
|
}
|
|
25
30
|
export declare class ValueEntity extends Entity {
|
|
@@ -34,25 +39,25 @@ export declare class InvalidRefEntity extends Entity<string> {
|
|
|
34
39
|
export declare class RefEntity extends Entity<string> {
|
|
35
40
|
constructor(value: string);
|
|
36
41
|
stringify(): string;
|
|
37
|
-
evaluate({
|
|
42
|
+
evaluate({ sheet }: EvaluateProps): Sheet;
|
|
38
43
|
identify(props: IdentifyProps): string;
|
|
39
44
|
}
|
|
40
45
|
export declare class RangeEntity extends Entity<string> {
|
|
41
46
|
stringify(): string;
|
|
42
|
-
evaluate({
|
|
47
|
+
evaluate({ sheet }: EvaluateProps): Sheet;
|
|
43
48
|
identify(props: IdentifyProps): string;
|
|
44
49
|
}
|
|
45
50
|
export declare class IdEntity extends Entity<string> {
|
|
46
51
|
private parse;
|
|
47
|
-
evaluate({
|
|
48
|
-
display({
|
|
52
|
+
evaluate({ sheet }: EvaluateProps): Sheet;
|
|
53
|
+
display({ sheet, slideY, slideX }: DisplayProps): string;
|
|
49
54
|
identify(props: IdentifyProps): string;
|
|
50
55
|
}
|
|
51
56
|
export declare class IdRangeEntity extends Entity<string> {
|
|
52
57
|
private parse;
|
|
53
|
-
evaluate({
|
|
54
|
-
display({
|
|
55
|
-
identify(props: IdentifyProps): string
|
|
58
|
+
evaluate({ sheet }: EvaluateProps): Sheet;
|
|
59
|
+
display({ sheet, slideY, slideX }: DisplayProps): string;
|
|
60
|
+
identify(props: IdentifyProps): string;
|
|
56
61
|
}
|
|
57
62
|
export declare class FunctionEntity {
|
|
58
63
|
args: Expression[];
|
|
@@ -60,7 +65,7 @@ export declare class FunctionEntity {
|
|
|
60
65
|
precedence: number;
|
|
61
66
|
private at?;
|
|
62
67
|
constructor(name: string, precedence?: number, args?: Expression[], at?: Id);
|
|
63
|
-
evaluate({
|
|
68
|
+
evaluate({ sheet }: EvaluateProps): any;
|
|
64
69
|
}
|
|
65
70
|
export type Expression = ValueEntity | RefEntity | RangeEntity | IdEntity | IdRangeEntity | FunctionEntity | UnreferencedEntity | InvalidRefEntity;
|
|
66
71
|
export type TokenType = 'VALUE' | 'REF' | 'RANGE' | 'ID' | 'ID_RANGE' | 'FUNCTION' | 'PREFIX_OPERATOR' | 'INFIX_OPERATOR' | 'POSTFIX_OPERATOR' | 'OPEN' | 'CLOSE' | 'COMMA' | 'SPACE' | 'UNREFERENCED' | 'INVALID_REF';
|
|
@@ -77,17 +82,15 @@ export declare class Token {
|
|
|
77
82
|
}
|
|
78
83
|
type LexerOption = {
|
|
79
84
|
at?: Id;
|
|
80
|
-
idMap?: {
|
|
81
|
-
[id: Id]: Id;
|
|
82
|
-
};
|
|
83
85
|
};
|
|
84
86
|
export declare class Lexer {
|
|
85
87
|
private index;
|
|
86
88
|
private formula;
|
|
87
89
|
tokens: Token[];
|
|
88
90
|
foreign: boolean;
|
|
91
|
+
identifiedFormula: string;
|
|
92
|
+
dependencyIds: string[];
|
|
89
93
|
private at?;
|
|
90
|
-
private idMap;
|
|
91
94
|
constructor(formula: string, options?: LexerOption);
|
|
92
95
|
private isWhiteSpace;
|
|
93
96
|
private next;
|
|
@@ -96,12 +99,13 @@ export declare class Lexer {
|
|
|
96
99
|
getTokenIndexByCharPosition(pos: number): [number, boolean];
|
|
97
100
|
getTokenPositionRange(index: number, slide?: number): [number, number];
|
|
98
101
|
stringify(): string;
|
|
99
|
-
identify(props: IdentifyProps):
|
|
100
|
-
display({
|
|
101
|
-
tokenize(
|
|
102
|
+
identify(props: IdentifyProps): void;
|
|
103
|
+
display({ sheet }: DisplayProps): string;
|
|
104
|
+
tokenize(idMap?: {
|
|
105
|
+
[id: Id]: Id;
|
|
106
|
+
}): void;
|
|
102
107
|
private skipSpaces;
|
|
103
108
|
private getString;
|
|
104
|
-
private resolveIdRange;
|
|
105
109
|
}
|
|
106
110
|
export declare class Parser {
|
|
107
111
|
index: number;
|
|
@@ -113,14 +117,13 @@ export declare class Parser {
|
|
|
113
117
|
}
|
|
114
118
|
/** Alias for Parser, exported for external tooling (e.g. Debugger). */
|
|
115
119
|
export declare const FormulaParser: typeof Parser;
|
|
116
|
-
export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
|
|
117
120
|
export declare const stripSheetName: (sheetName: string) => string;
|
|
118
121
|
export declare function splitRef(ref: string): {
|
|
119
122
|
sheetName: string | undefined;
|
|
120
123
|
addresses: string[];
|
|
121
124
|
};
|
|
122
|
-
export declare const parseRef: (ref: string, {
|
|
123
|
-
|
|
125
|
+
export declare const parseRef: (ref: string, { sheet, operation, dependency }: IdentifyProps) => {
|
|
126
|
+
sheet: Sheet;
|
|
124
127
|
sheetId?: number;
|
|
125
128
|
formula?: string;
|
|
126
129
|
sheetName?: 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,EAAE,EAAE,EAAa,MAAM,UAAU,CAAC;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,
|
|
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,EAAa,MAAM,UAAU,CAAC;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;IACjD,UAAU,EAAE,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACpD,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG;IAC9C,KAAK,EAAE,KAAK,CAAC;CACd,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,cAAM,MAAM,CAAC,CAAC,GAAG,GAAG;IACX,K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,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;CA2Cf,CAAC"}
|
|
@@ -2,7 +2,7 @@ export declare class FormulaError {
|
|
|
2
2
|
code: string;
|
|
3
3
|
message: string;
|
|
4
4
|
error?: Error;
|
|
5
|
-
|
|
5
|
+
readonly __gsType: "FormulaError";
|
|
6
6
|
constructor(code: string, message: string, error?: Error);
|
|
7
7
|
static is(obj: any): obj is FormulaError;
|
|
8
8
|
toString(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formula-error.d.ts","sourceRoot":"","sources":["../../src/formula/formula-error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"formula-error.d.ts","sourceRoot":"","sources":["../../src/formula/formula-error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACrB,SAAgB,QAAQ,EAAG,cAAc,CAAU;gBACvC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAKxD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;IAGxC,QAAQ;CAGT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pending, Sentinel } from '../../sentinels';
|
|
2
|
-
import {
|
|
2
|
+
import { Registry } from '../../lib/book';
|
|
3
3
|
import { Id, PointType } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Sentinel value to distinguish cache miss from user-returned undefined/null.
|
|
@@ -11,7 +11,7 @@ export declare const asyncCacheMiss: Sentinel;
|
|
|
11
11
|
export declare const hasPendingArg: (args: any[]) => boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Recursively check whether any value in the structure is a Pending sentinel.
|
|
14
|
-
* Handles flat values, nested arrays, and
|
|
14
|
+
* Handles flat values, nested arrays, and Sheet objects (via getFieldMatrix).
|
|
15
15
|
*/
|
|
16
16
|
export declare const hasDeepPending: (values: any[], at: Id) => boolean;
|
|
17
17
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const hasDeepPending: (values: any[], at: Id) => boolean;
|
|
|
21
21
|
* - length: byte length of the JSON-serialised args
|
|
22
22
|
* - hash: cyrb53 hash of the JSON string, repeated hashPrecision times with different seeds
|
|
23
23
|
*
|
|
24
|
-
* When a
|
|
24
|
+
* When a Sheet appears as an argument its trimmed area is converted to a
|
|
25
25
|
* value matrix (`any[][]`) via `getFieldMatrix()` so the key reflects the
|
|
26
26
|
* actual cell values the function will operate on.
|
|
27
27
|
*/
|
|
@@ -34,16 +34,16 @@ export declare const buildAsyncCacheKey: (funcName: string, args: any[], hashPre
|
|
|
34
34
|
* - Pending if there is an in-flight promise for this cell
|
|
35
35
|
* - asyncCacheMiss if no cache/pending exists (distinguishes from user-returned undefined/null)
|
|
36
36
|
*/
|
|
37
|
-
export declare const getAsyncCache: (
|
|
38
|
-
|
|
37
|
+
export declare const getAsyncCache: (sheet: {
|
|
38
|
+
registry: Registry;
|
|
39
39
|
getId: (p: PointType) => string;
|
|
40
40
|
}, id: Id, key: string, useInflight?: boolean) => any;
|
|
41
41
|
/**
|
|
42
42
|
* Handle an async (Promise) result returned by BaseFunction.main().
|
|
43
43
|
*
|
|
44
44
|
* Cache is stored per-cell in cell.asyncCache.
|
|
45
|
-
* In-flight tracking uses
|
|
46
|
-
* If useInflight is true, also tracks by cache key in
|
|
45
|
+
* In-flight tracking uses Binding.asyncPending (keyed by cell ID).
|
|
46
|
+
* If useInflight is true, also tracks by cache key in Binding.asyncInflight.
|
|
47
47
|
*
|
|
48
48
|
* Flow:
|
|
49
49
|
* 1. If cell has asyncCache and the key matches (inputs unchanged) and not expired → return cached value
|
|
@@ -55,8 +55,8 @@ export declare const getAsyncCache: (table: {
|
|
|
55
55
|
* @param ttlMilliseconds - Cache time-to-live in **milliseconds**. undefined = never expires.
|
|
56
56
|
* @param useInflight - If true, reuse the same promise for matching cache keys across different cells.
|
|
57
57
|
*/
|
|
58
|
-
export declare const awaitAndSave: (promise: Promise<any>,
|
|
59
|
-
|
|
58
|
+
export declare const awaitAndSave: (promise: Promise<any>, sheet: {
|
|
59
|
+
registry: Registry;
|
|
60
60
|
getId: (p: PointType) => string;
|
|
61
61
|
}, id: Id, key: string, ttlMilliseconds?: number, useInflight?: boolean) => Pending;
|
|
62
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAG9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAG9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAY,EAAE,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI3D;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAiC,CAAC;AAE7D,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,EAAE,KAAG,OAE3C,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,EAAE,EAAE,IAAI,EAAE,KAAG,OAsBtD,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,gBAAe,MAAU,KAAG,MAY7F,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EAC9D,IAAI,EAAE,EACN,KAAK,MAAM,EACX,cAAa,OAAe,KAC3B,GA6DF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,OAAO,CAAC,GAAG,CAAC,EACrB,OAAO;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EAC9D,IAAI,EAAE,EACN,KAAK,MAAM,EACX,kBAAkB,MAAM,EACxB,cAAa,OAAe,KAC3B,OAmDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAE1C,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sheet } from '../../lib/sheet';
|
|
2
2
|
import { Id } from '../../types';
|
|
3
3
|
import { Expression } from '../evaluator';
|
|
4
|
-
/** Duck-type check for
|
|
5
|
-
export declare const
|
|
4
|
+
/** Duck-type check for Sheet instances (avoids runtime import cycle). */
|
|
5
|
+
export declare const isSheet: (v: any) => v is Sheet;
|
|
6
6
|
export type FunctionCategory = 'math' | 'statistics' | 'text' | 'time' | 'lookup' | 'information' | 'finance' | 'engineering' | 'logical' | 'other';
|
|
7
7
|
export type FunctionProps = {
|
|
8
8
|
args: Expression[];
|
|
9
|
-
|
|
9
|
+
sheet: Sheet;
|
|
10
10
|
at?: Id;
|
|
11
11
|
};
|
|
12
12
|
export type FunctionArgumentType = 'number' | 'string' | 'boolean' | 'date' | 'time' | 'matrix' | 'reference' | 'any';
|
|
@@ -23,11 +23,11 @@ export type FunctionArgumentDefinition = {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const conditionArg: FunctionArgumentDefinition;
|
|
25
25
|
/**
|
|
26
|
-
* Check if a value is a "matrix" (
|
|
26
|
+
* Check if a value is a "matrix" (Sheet, Spilling, or 2D array).
|
|
27
27
|
*/
|
|
28
28
|
export declare const isMatrix: (value: any) => boolean;
|
|
29
29
|
/**
|
|
30
|
-
* Extract the scalar from a 1×1 matrix (
|
|
30
|
+
* Extract the scalar from a 1×1 matrix (Sheet, Spilling, or plain 2D array).
|
|
31
31
|
* Returns the value unchanged if it is not a matrix.
|
|
32
32
|
*/
|
|
33
33
|
export declare const stripMatrix: (value: any, at: Id) => any;
|
|
@@ -52,10 +52,10 @@ export declare class BaseFunction {
|
|
|
52
52
|
protected broadcastDisabled: boolean;
|
|
53
53
|
protected args: any[];
|
|
54
54
|
protected autoSpilling: boolean;
|
|
55
|
-
|
|
55
|
+
sheet: Sheet;
|
|
56
56
|
at: Id;
|
|
57
57
|
static __name: string;
|
|
58
|
-
constructor({ args,
|
|
58
|
+
constructor({ args, sheet, at }: FunctionProps);
|
|
59
59
|
private _main;
|
|
60
60
|
/**
|
|
61
61
|
* Validate and normalise arguments before `main()` is called.
|
|
@@ -69,16 +69,16 @@ export declare class BaseFunction {
|
|
|
69
69
|
protected validate(args: any[]): any[];
|
|
70
70
|
eachMatrix: (value: any, callback: (v: any) => void) => void;
|
|
71
71
|
/**
|
|
72
|
-
* Extract a 2D array from a matrix value (Spilling,
|
|
73
|
-
* Default behavior for
|
|
74
|
-
* this to preserve
|
|
72
|
+
* Extract a 2D array from a matrix value (Spilling, Sheet, or nested array).
|
|
73
|
+
* Default behavior for Sheet is value.solve(). Functions like COL can override
|
|
74
|
+
* this to preserve Sheet metadata per cell.
|
|
75
75
|
*/
|
|
76
76
|
protected toMatrix(value: any): any[][];
|
|
77
77
|
/**
|
|
78
|
-
* Collapse a 1×1 matrix value (
|
|
78
|
+
* Collapse a 1×1 matrix value (Sheet, Spilling, or 2D array) to a scalar.
|
|
79
79
|
* Non-matrix values pass through unchanged.
|
|
80
80
|
*
|
|
81
|
-
* Override in sub-classes that need the original
|
|
81
|
+
* Override in sub-classes that need the original Sheet / reference
|
|
82
82
|
* metadata (e.g. COL, ROW) — for instance, to extract position
|
|
83
83
|
* information before collapsing.
|
|
84
84
|
*/
|
|
@@ -92,20 +92,13 @@ export declare class BaseFunction {
|
|
|
92
92
|
* Rules:
|
|
93
93
|
* - broadcastDisabled = true → never broadcast
|
|
94
94
|
* - An arg is broadcastable when its corresponding args[].takesMatrix is not true
|
|
95
|
-
* - A
|
|
95
|
+
* - A Sheet/Spilling/2D-array whose size is (1,1) is treated as a scalar
|
|
96
96
|
* (not broadcast); only multi-cell matrices trigger broadcast
|
|
97
97
|
* - For variadic args, extra args are assigned round-robin
|
|
98
98
|
* across the variadic helpArg positions
|
|
99
99
|
*/
|
|
100
100
|
private broadcast;
|
|
101
101
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Base class for sync functions.
|
|
104
|
-
* Extend this class to create sync functions that support caching.
|
|
105
|
-
*/
|
|
106
|
-
export declare class BaseFunctionSync extends BaseFunction {
|
|
107
|
-
protected isAsync: boolean;
|
|
108
|
-
}
|
|
109
102
|
/**
|
|
110
103
|
* Base class for async functions.
|
|
111
104
|
* Extend this class to create async functions that support caching.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__base.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,yEAAyE;AACzE,eAAO,MAAM,OAAO,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"__base.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,yEAAyE;AACzE,eAAO,MAAM,OAAO,GAAI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,eAAe,GAAG;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,CAAA;CAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sheet } from '../../lib/sheet';
|
|
2
2
|
import { Id, PointType } from '../../types';
|
|
3
3
|
export declare const gt: (left: any, right: any) => boolean;
|
|
4
4
|
export declare const gte: (left: any, right: any) => boolean;
|
|
@@ -19,5 +19,5 @@ export declare const ensureString: (value: any) => string;
|
|
|
19
19
|
export declare const ensureBoolean: (value: any, options?: EnsureBooleanOptions) => boolean;
|
|
20
20
|
export declare const check: (value: any, condition: string) => boolean;
|
|
21
21
|
export declare const eachMatrix: (value: any, callback: (v: any, relativePoint: PointType) => void, at: Id) => void;
|
|
22
|
-
export declare const createBooleanMask: (
|
|
22
|
+
export declare const createBooleanMask: (sheets: Sheet[], conditions: string[], at: Id) => boolean[][];
|
|
23
23
|
//# sourceMappingURL=__utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAKxC,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAKxC,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGjD,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,MA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|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEhG,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMtC,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CA0BlE"}
|
|
@@ -5,7 +5,6 @@ export declare class MinusFunction extends BaseFunction {
|
|
|
5
5
|
description: string;
|
|
6
6
|
defs: FunctionArgumentDefinition[];
|
|
7
7
|
category: FunctionCategory;
|
|
8
|
-
protected validate(args: any[]): any[];
|
|
9
8
|
protected main(v1: number | Date | Time, v2: number | Date | Time): number | Date | Time;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=minus.d.ts.map
|