@gridsheet/react-core 3.0.0-rc.7 → 3.0.0-rc.9
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/LICENSE +190 -0
- package/dist/hooks-6pHKH3g9.mjs +1109 -0
- package/dist/hooks-6pHKH3g9.mjs.map +1 -0
- package/dist/index.d.ts +2 -34
- package/dist/index.js +2227 -7975
- package/dist/index.js.map +1 -1
- package/dist/react-core/src/components/Cell.d.ts.map +1 -0
- package/dist/react-core/src/components/CellStateOverlay.d.ts.map +1 -0
- package/dist/react-core/src/components/ColumnMenu.d.ts.map +1 -0
- package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts.map +1 -0
- package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts.map +1 -0
- package/dist/react-core/src/components/ColumnMenuSortSection.d.ts.map +1 -0
- package/dist/react-core/src/components/ContextMenu.d.ts.map +1 -0
- package/dist/react-core/src/components/Editor.d.ts.map +1 -0
- package/dist/react-core/src/components/EditorOptions.d.ts.map +1 -0
- package/dist/react-core/src/components/Emitter.d.ts.map +1 -0
- package/dist/react-core/src/components/Fixed.d.ts.map +1 -0
- package/dist/react-core/src/components/FormulaBar.d.ts.map +1 -0
- package/dist/{components → react-core/src/components}/FunctionGuide.d.ts +2 -2
- package/dist/react-core/src/components/FunctionGuide.d.ts.map +1 -0
- package/dist/react-core/src/components/GridSheet.d.ts.map +1 -0
- package/dist/react-core/src/components/HeaderCellLeft.d.ts.map +1 -0
- package/dist/react-core/src/components/HeaderCellTop.d.ts.map +1 -0
- package/dist/react-core/src/components/MenuItem.d.ts.map +1 -0
- package/dist/react-core/src/components/PluginBase.d.ts.map +1 -0
- package/dist/react-core/src/components/Resizer.d.ts.map +1 -0
- package/dist/react-core/src/components/RowMenu.d.ts.map +1 -0
- package/dist/react-core/src/components/ScrollHandle.d.ts.map +1 -0
- package/dist/react-core/src/components/SearchBar.d.ts.map +1 -0
- package/dist/react-core/src/components/StoreObserver.d.ts.map +1 -0
- package/dist/react-core/src/components/Tabular.d.ts.map +1 -0
- package/dist/react-core/src/components/svg/AddIcon.d.ts.map +1 -0
- package/dist/react-core/src/components/svg/Base.d.ts.map +1 -0
- package/dist/react-core/src/components/svg/CloseIcon.d.ts.map +1 -0
- package/dist/react-core/src/components/svg/SearchIcon.d.ts.map +1 -0
- package/dist/{components → react-core/src/components}/useAutocomplete.d.ts +3 -3
- package/dist/react-core/src/components/useAutocomplete.d.ts.map +1 -0
- package/dist/react-core/src/index.d.ts +17 -0
- package/dist/react-core/src/index.d.ts.map +1 -0
- package/dist/{lib → react-core/src/lib}/clipboard.d.ts +1 -1
- package/dist/react-core/src/lib/clipboard.d.ts.map +1 -0
- package/dist/react-core/src/lib/events.d.ts.map +1 -0
- package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
- package/dist/react-core/src/lib/hooks.d.ts.map +1 -0
- package/dist/{lib → react-core/src/lib}/menu.d.ts +1 -1
- package/dist/react-core/src/lib/menu.d.ts.map +1 -0
- package/dist/react-core/src/lib/paste.d.ts.map +1 -0
- package/dist/react-core/src/lib/style.d.ts +12 -0
- package/dist/react-core/src/lib/style.d.ts.map +1 -0
- package/dist/react-core/src/policy/checkbox.d.ts +3 -0
- package/dist/react-core/src/policy/checkbox.d.ts.map +1 -0
- package/dist/react-core/src/spellbook.d.ts +6 -0
- package/dist/react-core/src/spellbook.d.ts.map +1 -0
- package/dist/{store → react-core/src/store}/actions.d.ts +1 -1
- package/dist/react-core/src/store/actions.d.ts.map +1 -0
- package/dist/{store/dispatchers.d.ts → react-core/src/store/applyers.d.ts} +1 -1
- package/dist/{store/dispatchers.d.ts.map → react-core/src/store/applyers.d.ts.map} +1 -1
- package/dist/{store → react-core/src/store}/helpers.d.ts +1 -2
- package/dist/react-core/src/store/helpers.d.ts.map +1 -0
- package/dist/react-core/src/store/index.d.ts.map +1 -0
- package/dist/react-core/src/types.d.ts +104 -0
- package/dist/react-core/src/types.d.ts.map +1 -0
- package/dist/spellbook.d.ts +2 -0
- package/dist/spellbook.js +9 -0
- package/dist/spellbook.js.map +1 -0
- package/package.json +16 -10
- package/dist/components/Cell.d.ts.map +0 -1
- package/dist/components/CellStateOverlay.d.ts.map +0 -1
- package/dist/components/ColumnMenu.d.ts.map +0 -1
- package/dist/components/ColumnMenuFilterSection.d.ts.map +0 -1
- package/dist/components/ColumnMenuLabelSection.d.ts.map +0 -1
- package/dist/components/ColumnMenuSortSection.d.ts.map +0 -1
- package/dist/components/ContextMenu.d.ts.map +0 -1
- package/dist/components/Editor.d.ts.map +0 -1
- package/dist/components/EditorOptions.d.ts.map +0 -1
- package/dist/components/Emitter.d.ts.map +0 -1
- package/dist/components/Fixed.d.ts.map +0 -1
- package/dist/components/FormulaBar.d.ts.map +0 -1
- package/dist/components/FunctionGuide.d.ts.map +0 -1
- package/dist/components/GridSheet.d.ts.map +0 -1
- package/dist/components/HeaderCellLeft.d.ts.map +0 -1
- package/dist/components/HeaderCellTop.d.ts.map +0 -1
- package/dist/components/MenuItem.d.ts.map +0 -1
- package/dist/components/PluginBase.d.ts.map +0 -1
- package/dist/components/Resizer.d.ts.map +0 -1
- package/dist/components/RowMenu.d.ts.map +0 -1
- package/dist/components/ScrollHandle.d.ts.map +0 -1
- package/dist/components/SearchBar.d.ts.map +0 -1
- package/dist/components/StoreObserver.d.ts.map +0 -1
- package/dist/components/Tabular.d.ts.map +0 -1
- package/dist/components/hooks.d.ts.map +0 -1
- package/dist/components/svg/AddIcon.d.ts.map +0 -1
- package/dist/components/svg/Base.d.ts.map +0 -1
- package/dist/components/svg/CloseIcon.d.ts.map +0 -1
- package/dist/components/svg/SearchIcon.d.ts.map +0 -1
- package/dist/components/useAutocomplete.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -21
- package/dist/constants.d.ts.map +0 -1
- package/dist/formula/evaluator.d.ts +0 -134
- package/dist/formula/evaluator.d.ts.map +0 -1
- package/dist/formula/formula-error.d.ts +0 -10
- package/dist/formula/formula-error.d.ts.map +0 -1
- package/dist/formula/functions/__async.d.ts +0 -67
- package/dist/formula/functions/__async.d.ts.map +0 -1
- package/dist/formula/functions/__base.d.ts +0 -112
- package/dist/formula/functions/__base.d.ts.map +0 -1
- package/dist/formula/functions/__utils.d.ts +0 -23
- package/dist/formula/functions/__utils.d.ts.map +0 -1
- package/dist/formula/functions/abs.d.ts +0 -9
- package/dist/formula/functions/abs.d.ts.map +0 -1
- package/dist/formula/functions/add.d.ts +0 -10
- package/dist/formula/functions/add.d.ts.map +0 -1
- package/dist/formula/functions/and.d.ts +0 -9
- package/dist/formula/functions/and.d.ts.map +0 -1
- package/dist/formula/functions/arrayformula.d.ts +0 -12
- package/dist/formula/functions/arrayformula.d.ts.map +0 -1
- package/dist/formula/functions/average.d.ts +0 -9
- package/dist/formula/functions/average.d.ts.map +0 -1
- package/dist/formula/functions/concat.d.ts +0 -9
- package/dist/formula/functions/concat.d.ts.map +0 -1
- package/dist/formula/functions/count.d.ts +0 -9
- package/dist/formula/functions/count.d.ts.map +0 -1
- package/dist/formula/functions/counta.d.ts +0 -9
- package/dist/formula/functions/counta.d.ts.map +0 -1
- package/dist/formula/functions/divide.d.ts +0 -10
- package/dist/formula/functions/divide.d.ts.map +0 -1
- package/dist/formula/functions/eq.d.ts +0 -9
- package/dist/formula/functions/eq.d.ts.map +0 -1
- package/dist/formula/functions/gt.d.ts +0 -9
- package/dist/formula/functions/gt.d.ts.map +0 -1
- package/dist/formula/functions/gte.d.ts +0 -9
- package/dist/formula/functions/gte.d.ts.map +0 -1
- package/dist/formula/functions/if.d.ts +0 -9
- package/dist/formula/functions/if.d.ts.map +0 -1
- package/dist/formula/functions/iferror.d.ts +0 -10
- package/dist/formula/functions/iferror.d.ts.map +0 -1
- package/dist/formula/functions/len.d.ts +0 -9
- package/dist/formula/functions/len.d.ts.map +0 -1
- package/dist/formula/functions/lt.d.ts +0 -9
- package/dist/formula/functions/lt.d.ts.map +0 -1
- package/dist/formula/functions/lte.d.ts +0 -9
- package/dist/formula/functions/lte.d.ts.map +0 -1
- package/dist/formula/functions/max.d.ts +0 -9
- package/dist/formula/functions/max.d.ts.map +0 -1
- package/dist/formula/functions/min.d.ts +0 -9
- package/dist/formula/functions/min.d.ts.map +0 -1
- package/dist/formula/functions/minus.d.ts +0 -10
- package/dist/formula/functions/minus.d.ts.map +0 -1
- package/dist/formula/functions/multiply.d.ts +0 -9
- package/dist/formula/functions/multiply.d.ts.map +0 -1
- package/dist/formula/functions/ne.d.ts +0 -9
- package/dist/formula/functions/ne.d.ts.map +0 -1
- package/dist/formula/functions/not.d.ts +0 -9
- package/dist/formula/functions/not.d.ts.map +0 -1
- package/dist/formula/functions/now.d.ts +0 -9
- package/dist/formula/functions/now.d.ts.map +0 -1
- package/dist/formula/functions/or.d.ts +0 -9
- package/dist/formula/functions/or.d.ts.map +0 -1
- package/dist/formula/functions/power.d.ts +0 -9
- package/dist/formula/functions/power.d.ts.map +0 -1
- package/dist/formula/functions/sum.d.ts +0 -9
- package/dist/formula/functions/sum.d.ts.map +0 -1
- package/dist/formula/functions/uminus.d.ts +0 -9
- package/dist/formula/functions/uminus.d.ts.map +0 -1
- package/dist/formula/mapping.d.ts +0 -11
- package/dist/formula/mapping.d.ts.map +0 -1
- package/dist/formula/solver.d.ts +0 -39
- package/dist/formula/solver.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/autofill.d.ts +0 -17
- package/dist/lib/autofill.d.ts.map +0 -1
- package/dist/lib/book.d.ts +0 -127
- package/dist/lib/book.d.ts.map +0 -1
- package/dist/lib/cell.d.ts +0 -17
- package/dist/lib/cell.d.ts.map +0 -1
- package/dist/lib/clipboard.d.ts.map +0 -1
- package/dist/lib/coords.d.ts +0 -22
- package/dist/lib/coords.d.ts.map +0 -1
- package/dist/lib/date.d.ts +0 -2
- package/dist/lib/date.d.ts.map +0 -1
- package/dist/lib/dom.d.ts +0 -7
- package/dist/lib/dom.d.ts.map +0 -1
- package/dist/lib/events.d.ts.map +0 -1
- package/dist/lib/filter.d.ts +0 -7
- package/dist/lib/filter.d.ts.map +0 -1
- package/dist/lib/input.d.ts +0 -24
- package/dist/lib/input.d.ts.map +0 -1
- package/dist/lib/label.d.ts +0 -4
- package/dist/lib/label.d.ts.map +0 -1
- package/dist/lib/menu.d.ts.map +0 -1
- package/dist/lib/operation.d.ts +0 -31
- package/dist/lib/operation.d.ts.map +0 -1
- package/dist/lib/palette.d.ts +0 -2
- package/dist/lib/palette.d.ts.map +0 -1
- package/dist/lib/paste.d.ts.map +0 -1
- package/dist/lib/popup.d.ts +0 -24
- package/dist/lib/popup.d.ts.map +0 -1
- package/dist/lib/reference.d.ts +0 -19
- package/dist/lib/reference.d.ts.map +0 -1
- package/dist/lib/sheet.d.ts +0 -508
- package/dist/lib/sheet.d.ts.map +0 -1
- package/dist/lib/sheet_utils.d.ts +0 -55
- package/dist/lib/sheet_utils.d.ts.map +0 -1
- package/dist/lib/spatial.d.ts +0 -79
- package/dist/lib/spatial.d.ts.map +0 -1
- package/dist/lib/time.d.ts +0 -29
- package/dist/lib/time.d.ts.map +0 -1
- package/dist/lib/virtualization.d.ts +0 -22
- package/dist/lib/virtualization.d.ts.map +0 -1
- package/dist/policy/checkbox.d.ts +0 -3
- package/dist/policy/checkbox.d.ts.map +0 -1
- package/dist/policy/core.d.ts +0 -164
- package/dist/policy/core.d.ts.map +0 -1
- package/dist/policy/thousand_separator.d.ts +0 -4
- package/dist/policy/thousand_separator.d.ts.map +0 -1
- package/dist/sentinels.d.ts +0 -40
- package/dist/sentinels.d.ts.map +0 -1
- package/dist/store/actions.d.ts.map +0 -1
- package/dist/store/helpers.d.ts.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/styles/embedder.d.ts +0 -2
- package/dist/styles/embedder.d.ts.map +0 -1
- package/dist/styles/minified.d.ts +0 -3
- package/dist/styles/minified.d.ts.map +0 -1
- package/dist/styles/utils.d.ts +0 -52
- package/dist/styles/utils.d.ts.map +0 -1
- package/dist/types.d.ts +0 -369
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -2
- package/dist/utils.d.ts.map +0 -1
- /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ColumnMenuFilterSection.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ColumnMenuLabelSection.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ColumnMenuSortSection.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ContextMenu.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/EditorOptions.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/GridSheet.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/MenuItem.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/PluginBase.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/StoreObserver.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
- /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
- /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
- /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
- /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class GtFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any, v2: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=gt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gt.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/gt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class GteFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any, v2: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=gte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gte.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/gte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class IfFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(condition: any, v1: any, v2?: any): any;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=if.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/if.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAwC;IAC/C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAahC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,GAAE,GAAW;CAGxD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionArgumentDefinition, BaseFunction, FunctionCategory } from './__base';
|
|
2
|
-
export declare class IfErrorFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected broadcastDisabled: boolean;
|
|
8
|
-
protected main(value: any, valueIfError?: any): any;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=iferror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iferror.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/iferror.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAIjB,MAAM,UAAU,CAAC;AAIlB,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAAqC;IAC5C,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAahC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IACvC,SAAS,CAAC,iBAAiB,UAAQ;IAEnC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG;CAM9C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class LenFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(text: any): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=len.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/len.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG;CAGzB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class LtFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any, v2: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=lt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lt.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/lt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class LteFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any, v2: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=lte.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lte.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/lte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class MaxFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(...values: any[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=max.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"max.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/max.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAY,MAAM,UAAU,CAAC;AAKhG,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAuB;IAC9B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CA2BhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class MinFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(...values: any[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=min.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"min.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/min.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAY,MAAM,UAAU,CAAC;AAKhG,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAuB;IAC9B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAgB;IAE1C,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CA2BhC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Time } from '../../lib/time';
|
|
2
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
3
|
-
export declare class MinusFunction extends BaseFunction {
|
|
4
|
-
example: string;
|
|
5
|
-
description: string;
|
|
6
|
-
defs: FunctionArgumentDefinition[];
|
|
7
|
-
category: FunctionCategory;
|
|
8
|
-
protected main(v1: number | Date | Time, v2: number | Date | Time): number | Date | Time;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=minus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class MultiplyFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any, v2: any): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=multiply.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multiply.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/multiply.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class NeFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: number, v2: number): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=ne.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ne.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/ne.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAc;IACrB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAGtC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class NotFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=not.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/not.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAMhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG;CAGvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class NowFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(): Date;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=now.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"now.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/now.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAItF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAW;IAClB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAAM;IACxC,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI;CAGf"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class OrFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(...values: any[]): boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=or.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"or.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/or.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtF,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,SAAoB;IAC3B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAOhC;IACF,QAAQ,EAAE,gBAAgB,CAAa;IAEvC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAGhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class PowerFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(base: any, exponent: any): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=power.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"power.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/power.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAkB;IACzB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAGhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;CAGxC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class SumFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(...values: any[]): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=sum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sum.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/sum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAuB;IAC9B,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAQhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE;CAgBhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseFunction, FunctionCategory, FunctionArgumentDefinition } from './__base';
|
|
2
|
-
export declare class UminusFunction extends BaseFunction {
|
|
3
|
-
example: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defs: FunctionArgumentDefinition[];
|
|
6
|
-
category: FunctionCategory;
|
|
7
|
-
protected main(v1: any): number;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=uminus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uminus.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/uminus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAKtF,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAAe;IACtB,WAAW,SAAe;IAC1B,IAAI,EAAE,0BAA0B,EAAE,CAEhC;IACF,QAAQ,EAAE,gBAAgB,CAAU;IAEpC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG;CAGvB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FunctionCategory, FunctionMapping, FunctionArgumentDefinition } from './functions/__base';
|
|
2
|
-
export declare const functions: FunctionMapping;
|
|
3
|
-
export type FunctionHelp = {
|
|
4
|
-
name: string;
|
|
5
|
-
category: FunctionCategory;
|
|
6
|
-
example: string;
|
|
7
|
-
description: string;
|
|
8
|
-
defs: FunctionArgumentDefinition[];
|
|
9
|
-
};
|
|
10
|
-
export declare const getFunctionHelps: (customFunctions?: FunctionMapping) => FunctionHelp[];
|
|
11
|
-
//# sourceMappingURL=mapping.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../src/formula/mapping.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAExG,eAAO,MAAM,SAAS,EAAE,eAyCvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,0BAA0B,EAAE,CAAC;CACpC,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,kBAAiB,eAA2B,KAAG,YAAY,EAiB3F,CAAC"}
|
package/dist/formula/solver.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
};
|
|
7
|
-
type SolveFormulaProps = {
|
|
8
|
-
value: any;
|
|
9
|
-
sheet: Sheet;
|
|
10
|
-
point: PointType;
|
|
11
|
-
raise?: boolean;
|
|
12
|
-
resolution?: Resolution;
|
|
13
|
-
at?: Id;
|
|
14
|
-
};
|
|
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;
|
|
23
|
-
raise?: boolean;
|
|
24
|
-
at?: Id;
|
|
25
|
-
};
|
|
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 = {
|
|
33
|
-
value: any;
|
|
34
|
-
at?: Id;
|
|
35
|
-
raise?: boolean;
|
|
36
|
-
};
|
|
37
|
-
export declare const stripSheet: ({ value, at, raise }: StripSheetProps) => any;
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=solver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,QAAQ,EACR,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAA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AAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,YAAY,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,KAAK,EACL,UAAU,EACV,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/lib/autofill.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AreaType, PointType, StoreType } from '../types';
|
|
2
|
-
import { Sheet } from './sheet';
|
|
3
|
-
import { CSSProperties } from 'react';
|
|
4
|
-
export declare class Autofill {
|
|
5
|
-
private readonly src;
|
|
6
|
-
private readonly dst;
|
|
7
|
-
private readonly direction;
|
|
8
|
-
private readonly sheet;
|
|
9
|
-
constructor(store: StoreType, draggingTo: PointType);
|
|
10
|
-
get applied(): Sheet;
|
|
11
|
-
get wholeArea(): AreaType;
|
|
12
|
-
getCellStyle(target: PointType): CSSProperties;
|
|
13
|
-
private getDestinationArea;
|
|
14
|
-
private suggestDirection;
|
|
15
|
-
private getChangePatterns;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=autofill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autofill.d.ts","sourceRoot":"","sources":["../../src/lib/autofill.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAgC,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAgBtC,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;gBAClB,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS;IAYnD,IAAW,OAAO,IAAI,KAAK,CAiE1B;IAED,IAAW,SAAS,aAEnB;IAEM,YAAY,CAAC,MAAM,EAAE,SAAS;IAmErC,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,iBAAiB;CA4F1B"}
|
package/dist/lib/book.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Pending } from '../sentinels';
|
|
2
|
-
import { HistoryType, RefPaletteType, SheetIdsByName, ContextsBySheetId, ZoneType, CellsByIdType, SystemsByIdType, Id, FeedbackType, EditorEvent, CursorStateType } from '../types';
|
|
3
|
-
import { UserSheet } from './sheet';
|
|
4
|
-
import { FunctionMapping } from '../formula/functions/__base';
|
|
5
|
-
import { PolicyType } from '../policy/core';
|
|
6
|
-
export type RegistryProps = {
|
|
7
|
-
historyLimit?: number;
|
|
8
|
-
additionalFunctions?: FunctionMapping;
|
|
9
|
-
policies?: {
|
|
10
|
-
[policyName: string]: PolicyType | null;
|
|
11
|
-
};
|
|
12
|
-
onSave?: FeedbackType;
|
|
13
|
-
onChange?: FeedbackType;
|
|
14
|
-
onRemoveRows?: (args: {
|
|
15
|
-
sheet: UserSheet;
|
|
16
|
-
ys: number[];
|
|
17
|
-
}) => void;
|
|
18
|
-
onRemoveCols?: (args: {
|
|
19
|
-
sheet: UserSheet;
|
|
20
|
-
xs: number[];
|
|
21
|
-
}) => void;
|
|
22
|
-
onInsertRows?: (args: {
|
|
23
|
-
sheet: UserSheet;
|
|
24
|
-
y: number;
|
|
25
|
-
numRows: number;
|
|
26
|
-
}) => void;
|
|
27
|
-
onInsertCols?: (args: {
|
|
28
|
-
sheet: UserSheet;
|
|
29
|
-
x: number;
|
|
30
|
-
numCols: number;
|
|
31
|
-
}) => void;
|
|
32
|
-
onSelect?: FeedbackType;
|
|
33
|
-
onKeyUp?: (args: {
|
|
34
|
-
e: EditorEvent;
|
|
35
|
-
points: CursorStateType;
|
|
36
|
-
}) => void;
|
|
37
|
-
onInit?: (args: {
|
|
38
|
-
sheet: UserSheet;
|
|
39
|
-
}) => void;
|
|
40
|
-
};
|
|
41
|
-
export type BookProps = RegistryProps;
|
|
42
|
-
export declare class Registry {
|
|
43
|
-
sheetHead: number;
|
|
44
|
-
cellHead: number;
|
|
45
|
-
data: CellsByIdType;
|
|
46
|
-
systems: SystemsByIdType;
|
|
47
|
-
sheetIdsByName: SheetIdsByName;
|
|
48
|
-
contextsBySheetId: ContextsBySheetId;
|
|
49
|
-
choosingSheetId: number;
|
|
50
|
-
choosingAddress: string;
|
|
51
|
-
editingSheetId: number;
|
|
52
|
-
editingAddress: string;
|
|
53
|
-
paletteBySheetName: {
|
|
54
|
-
[sheetName: string]: RefPaletteType;
|
|
55
|
-
};
|
|
56
|
-
lastFocused: HTMLTextAreaElement | null;
|
|
57
|
-
solvedCaches: Map<Id, any>;
|
|
58
|
-
/** IDs of non-origin cells that received spilled values (populated in spill(), cleared in clearSolvedCaches()). */
|
|
59
|
-
lastSpilledTargetIds: Set<Id>;
|
|
60
|
-
/** Currently in-flight async formula Pending sentinels (keyed by cell ID). */
|
|
61
|
-
asyncPending: Map<string, Pending>;
|
|
62
|
-
/** In-flight async formulas shared by cache key (for useInflight). */
|
|
63
|
-
asyncInflight?: Map<string, {
|
|
64
|
-
pending: Pending;
|
|
65
|
-
expireTime?: number;
|
|
66
|
-
}>;
|
|
67
|
-
copyingSheetId: number;
|
|
68
|
-
copyingZone: ZoneType;
|
|
69
|
-
cutting: boolean;
|
|
70
|
-
histories: HistoryType[];
|
|
71
|
-
historyIndex: number;
|
|
72
|
-
historyLimit: number;
|
|
73
|
-
lastHistory?: HistoryType;
|
|
74
|
-
currentHistory?: HistoryType;
|
|
75
|
-
/** StrictMode guard: Map from action object (identity) to cached reducer result.
|
|
76
|
-
* Using a Map instead of a single slot allows multiple batched dispatches to coexist. */
|
|
77
|
-
_strictModeCache?: Map<unknown, unknown>;
|
|
78
|
-
/** StrictMode guard: Map from useId component key to assigned sheetId.
|
|
79
|
-
* Prevents double-increment of sheetHead when useState initializer runs twice in Strict Mode. */
|
|
80
|
-
_componentSheetIds: Map<string, number>;
|
|
81
|
-
ready: boolean;
|
|
82
|
-
functions: FunctionMapping;
|
|
83
|
-
policies: {
|
|
84
|
-
[policyName: string]: PolicyType | null;
|
|
85
|
-
};
|
|
86
|
-
onSave?: FeedbackType;
|
|
87
|
-
onChange?: FeedbackType;
|
|
88
|
-
onRemoveRows?: (args: {
|
|
89
|
-
sheet: UserSheet;
|
|
90
|
-
ys: number[];
|
|
91
|
-
}) => void;
|
|
92
|
-
onRemoveCols?: (args: {
|
|
93
|
-
sheet: UserSheet;
|
|
94
|
-
xs: number[];
|
|
95
|
-
}) => void;
|
|
96
|
-
onInsertRows?: (args: {
|
|
97
|
-
sheet: UserSheet;
|
|
98
|
-
y: number;
|
|
99
|
-
numRows: number;
|
|
100
|
-
}) => void;
|
|
101
|
-
onInsertCols?: (args: {
|
|
102
|
-
sheet: UserSheet;
|
|
103
|
-
x: number;
|
|
104
|
-
numCols: number;
|
|
105
|
-
}) => void;
|
|
106
|
-
onSelect?: FeedbackType;
|
|
107
|
-
onKeyUp?: (args: {
|
|
108
|
-
e: EditorEvent;
|
|
109
|
-
points: CursorStateType;
|
|
110
|
-
}) => void;
|
|
111
|
-
onInit?: (args: {
|
|
112
|
-
sheet: UserSheet;
|
|
113
|
-
}) => void;
|
|
114
|
-
transmit: (newBook?: TransmitProps) => void;
|
|
115
|
-
boot(): void;
|
|
116
|
-
constructor({ historyLimit, additionalFunctions, policies, onSave, onChange, onRemoveRows, onRemoveCols, onInsertRows, onInsertCols, onSelect, onKeyUp, onInit, }?: RegistryProps);
|
|
117
|
-
}
|
|
118
|
-
export type TransmitProps = Partial<Registry>;
|
|
119
|
-
export declare const createRegistry: (props?: RegistryProps) => Registry;
|
|
120
|
-
/** @deprecated use createRegistry */
|
|
121
|
-
export declare const createBinding: (props?: RegistryProps) => Registry;
|
|
122
|
-
export type BookType = {
|
|
123
|
-
registry: Registry;
|
|
124
|
-
};
|
|
125
|
-
export declare const createBook: (props?: RegistryProps) => BookType;
|
|
126
|
-
export declare const useBook: (props?: RegistryProps) => BookType;
|
|
127
|
-
//# sourceMappingURL=book.d.ts.map
|
package/dist/lib/book.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"book.d.ts","sourceRoot":"","sources":["../../src/lib/book.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,eAAe,EAEf,EAAE,EAEF,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,KAAK,EAAE,eAAe,EA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,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,MAAM,GACP,GAAE,aAAkB;CAuBtB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE9C,eAAO,MAAM,cAAc,GAAI,QAAO,aAAkB,aAEvD,CAAC;AAEF,qCAAqC;AACrC,eAAO,MAAM,aAAa,WALY,aAAa,aAKR,CAAC;AAE5C,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAO,aAAkB,KAAG,QAEtD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAO,aAAkB,aAchD,CAAC"}
|
package/dist/lib/cell.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AsyncCache, CellType, System } from '../types';
|
|
2
|
-
export declare const filterCellFields: (cell: CellType, ignoreFields: (keyof CellType)[]) => CellType;
|
|
3
|
-
/**
|
|
4
|
-
* Ensure that `registry.systems[id]` exists, initialising it with sensible
|
|
5
|
-
* defaults when missing. Any keys present in `defaults` that are absent on
|
|
6
|
-
* the existing System object are filled in.
|
|
7
|
-
* Returns the (possibly freshly-created) `System` object.
|
|
8
|
-
*/
|
|
9
|
-
export declare const ensureSys: (registry: {
|
|
10
|
-
systems: Record<string, System>;
|
|
11
|
-
}, id: string, defaults?: Partial<System>) => System;
|
|
12
|
-
/**
|
|
13
|
-
* Write an `AsyncCache` entry into `cell.asyncCaches[key]`, creating the
|
|
14
|
-
* `asyncCaches` record if it does not yet exist.
|
|
15
|
-
*/
|
|
16
|
-
export declare const setAsyncCache: (cell: CellType, key: string, ac: AsyncCache) => void;
|
|
17
|
-
//# sourceMappingURL=cell.d.ts.map
|
package/dist/lib/cell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../src/lib/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AAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;IACxD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,OAAO,SAAS,EAChB,8DAMG,cAAmB,KACrB,MA8BF,CAAC"}
|
package/dist/lib/coords.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Address, ExtraPointType } from '../types';
|
|
2
|
-
export declare const x2c: (x: number) => string;
|
|
3
|
-
export declare const c2x: (col: string, absolute?: boolean) => number;
|
|
4
|
-
export declare const y2r: (y: number) => string;
|
|
5
|
-
export declare const r2y: (row: number | string, absolute?: boolean) => number;
|
|
6
|
-
export declare const p2a: ({ y, x, absX, absY }: Partial<ExtraPointType>) => string;
|
|
7
|
-
export declare const a2p: (address: Address) => ExtraPointType;
|
|
8
|
-
export declare const grantAddressAbsolute: (address: Address, absCol: boolean, absRow: boolean) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Returns the row header cell address for a given row number by prepending `0`.
|
|
11
|
-
* e.g. rh(6) → '06', rh(1) → '01'
|
|
12
|
-
*/
|
|
13
|
-
export declare const rh: (y: number) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Returns the column header cell address for a given column letter or column index
|
|
16
|
-
* (1-based, same as point.x) by appending `0`.
|
|
17
|
-
* e.g. ch('A') → 'A0', ch(1) → 'A0'
|
|
18
|
-
*/
|
|
19
|
-
export declare const ch: (col: string | number) => string;
|
|
20
|
-
export declare const stripAddressAbsolute: (address: Address) => string;
|
|
21
|
-
export declare const buildIdentifiedRef: (id: string, absX?: boolean, absY?: boolean) => string;
|
|
22
|
-
//# sourceMappingURL=coords.d.ts.map
|
package/dist/lib/coords.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coords.d.ts","sourceRoot":"","sources":["../../src/lib/coords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,cAAc,EAAE,MAAM,UAAU,CAAC;AAwDnE,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,KAAG,MAM/B,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,EAAE,kBAAgB,KAAG,MAGnD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,WAK5B,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,GAAG,MAAM,EAAE,kBAAgB,WAKzD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,sBAAsB,OAAO,CAAC,cAAc,CAAC,WAOhE,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,SAAS,OAAO,KAAG,cAWtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,EAAE,QAAQ,OAAO,EAAE,QAAQ,OAAO,WAOtF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,KAAG,MAAiB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,EAAE,GAAI,KAAK,MAAM,GAAG,MAAM,KAAG,MAC0B,CAAC;AAErE,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,WAEpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,EAAE,cAAY,EAAE,cAAY,KAAG,MAE3E,CAAC"}
|
package/dist/lib/date.d.ts
DELETED
package/dist/lib/date.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/lib/date.ts"],"names":[],"mappings":"AA+EA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAyBzD"}
|
package/dist/lib/dom.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const focus: (el: HTMLElement | null | undefined) => void;
|
|
2
|
-
/**
|
|
3
|
-
* Prevents Safari elastic bounce (rubber-band) at scroll boundaries.
|
|
4
|
-
* No-op on non-Safari browsers. Returns a cleanup function to remove the listeners.
|
|
5
|
-
*/
|
|
6
|
-
export declare const preventSafariBounce: (el: HTMLDivElement) => (() => void);
|
|
7
|
-
//# sourceMappingURL=dom.d.ts.map
|
package/dist/lib/dom.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,GAAI,IAAI,WAAW,GAAG,IAAI,GAAG,SAAS,SAEvD,CAAC;AAKF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,cAAc,KAAG,CAAC,MAAM,IAAI,CAmDnE,CAAC"}
|
package/dist/lib/events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/lib/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,OAUnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,IAI3E,CAAC"}
|
package/dist/lib/filter.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FilterCondition, FilterConditionMethod, FilterConfig } from '../types';
|
|
2
|
-
type FilterFunction = (condition: FilterCondition, cellValue: any) => boolean;
|
|
3
|
-
export declare const filterFunctions: Record<FilterConditionMethod, FilterFunction>;
|
|
4
|
-
export declare function evaluateFilterCondition(condition: FilterCondition, cellValue: any): boolean;
|
|
5
|
-
export declare function evaluateFilterConfig(filter: FilterConfig, cellValue: any): boolean;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=filter.d.ts.map
|
package/dist/lib/filter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/lib/filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIrF,KAAK,cAAc,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC;AA+J9E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,cAAc,CAWzE,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAG3F;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAUlF"}
|
package/dist/lib/input.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PointType } from '../types';
|
|
2
|
-
import { Sheet } from './sheet';
|
|
3
|
-
export declare const insertTextAtCursor: (input: HTMLTextAreaElement, text: string) => void;
|
|
4
|
-
type InsertRefProps = {
|
|
5
|
-
input: HTMLTextAreaElement | null;
|
|
6
|
-
ref: string;
|
|
7
|
-
dryRun?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const insertRef: ({ input, ref, dryRun }: InsertRefProps) => boolean;
|
|
10
|
-
export declare const isRefInsertable: (input: HTMLTextAreaElement | null) => boolean;
|
|
11
|
-
export declare const expandInput: (input: HTMLTextAreaElement | null) => void;
|
|
12
|
-
export declare const resetInput: (input: HTMLTextAreaElement | null, sheet: Sheet, point: PointType) => void;
|
|
13
|
-
export declare const isFocus: (input: HTMLTextAreaElement | null) => boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Handles auto-close behavior for double quotes in formula editing.
|
|
16
|
-
* - Typing `"` inserts `""` and places cursor between them.
|
|
17
|
-
* - Typing `"` when cursor is right before an auto-closed `"` skips over it.
|
|
18
|
-
* - Backspace between empty `""` deletes both quotes.
|
|
19
|
-
*
|
|
20
|
-
* Returns true if the event was handled (caller should preventDefault), false otherwise.
|
|
21
|
-
*/
|
|
22
|
-
export declare const handleFormulaQuoteAutoClose: (e: React.KeyboardEvent<HTMLTextAreaElement>, inputting: string) => boolean;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=input.d.ts.map
|