@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":"minus.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/minus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/minus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAOtF,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAiB;IACxB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;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;CAwBlE"}
|
package/dist/formula/solver.d.ts
CHANGED
|
@@ -1,28 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Id, MatrixType, PointType,
|
|
1
|
+
import { Sheet } from '../lib/sheet';
|
|
2
|
+
import { Id, MatrixType, PointType, Resolution } from '../types';
|
|
3
|
+
export type SolveOptions = {
|
|
4
|
+
raise?: boolean;
|
|
5
|
+
resolution?: Resolution;
|
|
6
|
+
};
|
|
3
7
|
type SolveFormulaProps = {
|
|
4
8
|
value: any;
|
|
5
|
-
|
|
9
|
+
sheet: Sheet;
|
|
6
10
|
point: PointType;
|
|
7
11
|
raise?: boolean;
|
|
8
|
-
|
|
12
|
+
resolution?: Resolution;
|
|
9
13
|
at?: Id;
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Evaluates a single cell value (formula or literal) within the context of a sheet.
|
|
17
|
+
* Handles caching, circular reference detection, spilling, and async pending states.
|
|
18
|
+
* Returns the resolved scalar value (or error) for the given cell.
|
|
19
|
+
*/
|
|
20
|
+
export declare const solveFormula: ({ value, sheet, point, raise, resolution, at }: SolveFormulaProps) => any;
|
|
21
|
+
export type SolveSheetProps = {
|
|
22
|
+
sheet: Sheet;
|
|
14
23
|
raise?: boolean;
|
|
15
24
|
at?: Id;
|
|
16
|
-
refEvaluation?: RefEvaluation;
|
|
17
25
|
};
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Evaluates all cells in a Sheet and returns the results as a 2D array (MatrixType).
|
|
28
|
+
* Each cell formula is resolved in order, with caching to avoid redundant computation.
|
|
29
|
+
* Use this when you need the full evaluated contents of a range.
|
|
30
|
+
*/
|
|
31
|
+
export declare const solveSheet: ({ sheet, raise, at }: SolveSheetProps) => MatrixType;
|
|
32
|
+
export type StripSheetProps = {
|
|
20
33
|
value: any;
|
|
21
|
-
|
|
22
|
-
x?: number;
|
|
34
|
+
at?: Id;
|
|
23
35
|
raise?: boolean;
|
|
24
|
-
history?: Set<Id>;
|
|
25
36
|
};
|
|
26
|
-
export declare const
|
|
37
|
+
export declare const stripSheet: ({ value, at, raise }: StripSheetProps) => any;
|
|
27
38
|
export {};
|
|
28
39
|
//# 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,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,
|
|
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,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItE,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,EAAE,CAAC;CACT,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,gDAAoE,iBAAiB,QA+DjH,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,EAAE,CAAC,EAAE,EAAE,CAAC;CACT,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,sBAA6B,eAAe,KAAG,UAgCzE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,GAAG,CAAC;IACX,EAAE,CAAC,EAAE,EAAE,CAAC;IACR,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,sBAA6B,eAAe,KAAG,GAKzE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
export { GridSheet,
|
|
2
|
-
export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, addressesToAreas, addressesToCols, addressesToRows, } from './lib/spatial';
|
|
1
|
+
export { GridSheet, createSheetRef, useSheetRef, createStoreRef, useStoreRef } from './components/GridSheet';
|
|
2
|
+
export { oa2aa, aa2oa, buildInitialCells, buildInitialCellsFromOrigin, zoneToArea, areaToZone, areaToRange, matrixShape, addressesToAreas, addressesToCols, addressesToRows, } from './lib/spatial';
|
|
3
3
|
export { Time } from './lib/time';
|
|
4
|
-
export { x2c, c2x, y2r, r2y, p2a, a2p } from './lib/coords';
|
|
5
|
-
export {
|
|
4
|
+
export { x2c, c2x, y2r, r2y, p2a, a2p, rh, ch } from './lib/coords';
|
|
5
|
+
export { updateSheet } from './store/actions';
|
|
6
6
|
export { PluginBase, useInitialPluginContext, usePluginContext } from './components/PluginBase';
|
|
7
|
-
export
|
|
8
|
-
export type {
|
|
9
|
-
export {
|
|
7
|
+
export { MenuItem, MenuDivider } from './components/MenuItem';
|
|
8
|
+
export type { MatrixType, CellType, System, Address, AsyncCache, FilterCondition, FilterConditionMethod, FilterConfig, FeedbackType, OptionsType, WriterType, CellsByAddressType, CellsByIdType, SystemsByIdType, ModeType, HeadersType, HistoryType, HistorySortRowsType, StoreType, PointType, AreaType, ZoneType, Props, SheetHandle, StoreHandle, EditorEvent, CursorStateType, } from './types';
|
|
9
|
+
export type { BookType, BookProps, RegistryProps, TransmitProps } from './lib/book';
|
|
10
|
+
export { Registry, useBook, createBook } from './lib/book';
|
|
10
11
|
export type { Dispatcher } from './store';
|
|
11
12
|
export { ThousandSeparatorPolicyMixin } from './policy/thousand_separator';
|
|
12
13
|
export { CheckboxPolicyMixin } from './policy/checkbox';
|
|
13
|
-
export { BaseFunction,
|
|
14
|
+
export { BaseFunction, BaseFunctionAsync } from './formula/functions/__base';
|
|
14
15
|
export type { FunctionProps, FunctionArgumentDefinition as FunctionArgumentDefinition, FunctionCategory, FunctionMapping, } from './formula/functions/__base';
|
|
15
16
|
export { Lexer, FormulaParser, RefEntity, ValueEntity, RangeEntity } from './formula/evaluator';
|
|
16
17
|
export { FormulaError } from './formula/formula-error';
|
|
17
|
-
export {
|
|
18
|
+
export { Sheet, type UserSheet, type SheetLimits } from './lib/sheet';
|
|
19
|
+
export { toValueMatrix, toValueObject, toValueRows, toValueCols, toCellMatrix, toCellObject, toCellRows, toCellCols, type ToValueMatrixProps, type ToValueObjectProps, type ToValueRowsProps, type ToValueColsProps, type ToCellMatrixProps, type ToCellObjectProps, type ToCellRowsProps, type ToCellColsProps, } from './lib/sheet_utils';
|
|
18
20
|
export { Policy } from './policy/core';
|
|
19
21
|
export type { PolicyType, AutocompleteOption, PolicyMixinType, RenderProps, SerializeProps, SelectProps, SelectFallbackProps, SerializeForClipboardProps, } from './policy/core';
|
|
20
22
|
export * as operations from './lib/operation';
|
|
21
23
|
export { DEFAULT_HISTORY_LIMIT } from './constants';
|
|
22
24
|
export { Pending, Spilling } from './sentinels';
|
|
23
25
|
export { userActions } from './store/actions';
|
|
24
|
-
export { clip,
|
|
26
|
+
export { clip, sheet2csv } from './lib/clipboard';
|
|
25
27
|
export { makeBorder } from './styles/utils';
|
|
26
|
-
export {
|
|
28
|
+
export { applyers } from './store/dispatchers';
|
|
29
|
+
export type { MenuContext, MenuItemBase, MenuComponentItem, ContextMenuItemDescriptor, RowMenuItemDescriptor, ColMenuItemDescriptor, MenuDividerItem, ContextMenuSectionProps, RowMenuSectionProps, ColMenuSectionProps, } from './lib/menu';
|
|
30
|
+
export { defaultContextMenuDescriptors, defaultRowMenuDescriptors, defaultColMenuDescriptors, registerMenuComponent, } from './lib/menu';
|
|
27
31
|
export { ensureString, ensureNumber, ensureBoolean, check, eachMatrix, createBooleanMask, } from './formula/functions/__utils';
|
|
28
32
|
export type { EnsureNumberOptions, EnsureBooleanOptions } from './formula/functions/__utils';
|
|
29
|
-
export { conditionArg } from './formula/functions/__base';
|
|
30
|
-
export { solveTable, stripTable } from './formula/solver';
|
|
33
|
+
export { conditionArg, stripMatrix } from './formula/functions/__base';
|
|
31
34
|
//# 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,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EACL,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,2BAA2B,EAC3B,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EACV,UAAU,EACV,QAAQ,EACR,MAAM,EACN,OAAO,EACP,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAA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