@gridsheet/react-core 3.0.0-rc.0 → 3.0.0-rc.1
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/CellStateOverlay.d.ts.map +1 -1
- package/dist/components/ColumnMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu.d.ts +1 -0
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/Editor.d.ts.map +1 -1
- package/dist/components/EditorOptions.d.ts +11 -0
- package/dist/components/EditorOptions.d.ts.map +1 -0
- package/dist/components/FormulaBar.d.ts.map +1 -1
- package/dist/components/FunctionGuide.d.ts +19 -0
- package/dist/components/FunctionGuide.d.ts.map +1 -0
- package/dist/components/GridSheet.d.ts.map +1 -1
- package/dist/components/HeaderCellLeft.d.ts.map +1 -1
- package/dist/components/RowMenu.d.ts.map +1 -1
- package/dist/components/SearchBar.d.ts.map +1 -1
- package/dist/components/Tabular.d.ts.map +1 -1
- package/dist/components/useAutocomplete.d.ts +25 -0
- package/dist/components/useAutocomplete.d.ts.map +1 -0
- package/dist/constants.d.ts +0 -13
- package/dist/constants.d.ts.map +1 -1
- package/dist/formula/evaluator.d.ts +2 -0
- package/dist/formula/evaluator.d.ts.map +1 -1
- package/dist/formula/functions/__async.d.ts +9 -6
- package/dist/formula/functions/__async.d.ts.map +1 -1
- package/dist/formula/functions/__base.d.ts +27 -5
- package/dist/formula/functions/__base.d.ts.map +1 -1
- package/dist/formula/functions/__utils.d.ts.map +1 -1
- package/dist/formula/functions/abs.d.ts +2 -5
- package/dist/formula/functions/abs.d.ts.map +1 -1
- package/dist/formula/functions/acos.d.ts +2 -5
- package/dist/formula/functions/acos.d.ts.map +1 -1
- package/dist/formula/functions/add.d.ts +2 -5
- package/dist/formula/functions/add.d.ts.map +1 -1
- package/dist/formula/functions/and.d.ts +2 -12
- package/dist/formula/functions/and.d.ts.map +1 -1
- package/dist/formula/functions/asin.d.ts +2 -5
- package/dist/formula/functions/asin.d.ts.map +1 -1
- package/dist/formula/functions/atan.d.ts +2 -5
- package/dist/formula/functions/atan.d.ts.map +1 -1
- package/dist/formula/functions/atan2.d.ts +2 -5
- package/dist/formula/functions/atan2.d.ts.map +1 -1
- package/dist/formula/functions/average.d.ts +2 -12
- package/dist/formula/functions/average.d.ts.map +1 -1
- package/dist/formula/functions/col.d.ts +2 -6
- package/dist/formula/functions/col.d.ts.map +1 -1
- package/dist/formula/functions/concat.d.ts +2 -5
- package/dist/formula/functions/concat.d.ts.map +1 -1
- package/dist/formula/functions/concatenate.d.ts +2 -12
- package/dist/formula/functions/concatenate.d.ts.map +1 -1
- package/dist/formula/functions/cos.d.ts +2 -5
- package/dist/formula/functions/cos.d.ts.map +1 -1
- package/dist/formula/functions/count.d.ts +2 -12
- package/dist/formula/functions/count.d.ts.map +1 -1
- package/dist/formula/functions/counta.d.ts +2 -12
- package/dist/formula/functions/counta.d.ts.map +1 -1
- package/dist/formula/functions/countif.d.ts +2 -5
- package/dist/formula/functions/countif.d.ts.map +1 -1
- package/dist/formula/functions/divide.d.ts +2 -5
- package/dist/formula/functions/divide.d.ts.map +1 -1
- package/dist/formula/functions/eq.d.ts +2 -5
- package/dist/formula/functions/eq.d.ts.map +1 -1
- package/dist/formula/functions/exp.d.ts +2 -5
- package/dist/formula/functions/exp.d.ts.map +1 -1
- package/dist/formula/functions/gt.d.ts +2 -5
- package/dist/formula/functions/gt.d.ts.map +1 -1
- package/dist/formula/functions/gte.d.ts +2 -5
- package/dist/formula/functions/gte.d.ts.map +1 -1
- package/dist/formula/functions/hlookup.d.ts +2 -10
- package/dist/formula/functions/hlookup.d.ts.map +1 -1
- package/dist/formula/functions/if.d.ts +2 -10
- package/dist/formula/functions/if.d.ts.map +1 -1
- package/dist/formula/functions/iferror.d.ts +2 -10
- package/dist/formula/functions/iferror.d.ts.map +1 -1
- package/dist/formula/functions/index.d.ts +2 -10
- package/dist/formula/functions/index.d.ts.map +1 -1
- package/dist/formula/functions/len.d.ts +2 -5
- package/dist/formula/functions/len.d.ts.map +1 -1
- package/dist/formula/functions/lenb.d.ts +2 -5
- package/dist/formula/functions/lenb.d.ts.map +1 -1
- package/dist/formula/functions/ln.d.ts +2 -5
- package/dist/formula/functions/ln.d.ts.map +1 -1
- package/dist/formula/functions/log.d.ts +2 -5
- package/dist/formula/functions/log.d.ts.map +1 -1
- package/dist/formula/functions/log10.d.ts +2 -5
- package/dist/formula/functions/log10.d.ts.map +1 -1
- package/dist/formula/functions/lt.d.ts +2 -5
- package/dist/formula/functions/lt.d.ts.map +1 -1
- package/dist/formula/functions/lte.d.ts +2 -5
- package/dist/formula/functions/lte.d.ts.map +1 -1
- package/dist/formula/functions/match.d.ts +2 -10
- package/dist/formula/functions/match.d.ts.map +1 -1
- package/dist/formula/functions/max.d.ts +2 -12
- package/dist/formula/functions/max.d.ts.map +1 -1
- package/dist/formula/functions/min.d.ts +2 -12
- package/dist/formula/functions/min.d.ts.map +1 -1
- package/dist/formula/functions/minus.d.ts +2 -5
- package/dist/formula/functions/minus.d.ts.map +1 -1
- package/dist/formula/functions/mod.d.ts +2 -5
- package/dist/formula/functions/mod.d.ts.map +1 -1
- package/dist/formula/functions/multiply.d.ts +2 -5
- package/dist/formula/functions/multiply.d.ts.map +1 -1
- package/dist/formula/functions/ne.d.ts +2 -5
- package/dist/formula/functions/ne.d.ts.map +1 -1
- package/dist/formula/functions/not.d.ts +2 -5
- package/dist/formula/functions/not.d.ts.map +1 -1
- package/dist/formula/functions/now.d.ts +2 -2
- package/dist/formula/functions/now.d.ts.map +1 -1
- package/dist/formula/functions/or.d.ts +2 -12
- package/dist/formula/functions/or.d.ts.map +1 -1
- package/dist/formula/functions/pi.d.ts +2 -2
- package/dist/formula/functions/pi.d.ts.map +1 -1
- package/dist/formula/functions/power.d.ts +2 -5
- package/dist/formula/functions/power.d.ts.map +1 -1
- package/dist/formula/functions/product.d.ts +2 -12
- package/dist/formula/functions/product.d.ts.map +1 -1
- package/dist/formula/functions/radians.d.ts +2 -5
- package/dist/formula/functions/radians.d.ts.map +1 -1
- package/dist/formula/functions/rand.d.ts +2 -2
- package/dist/formula/functions/rand.d.ts.map +1 -1
- package/dist/formula/functions/round.d.ts +2 -10
- package/dist/formula/functions/round.d.ts.map +1 -1
- package/dist/formula/functions/rounddown.d.ts +2 -10
- package/dist/formula/functions/rounddown.d.ts.map +1 -1
- package/dist/formula/functions/roundup.d.ts +2 -10
- package/dist/formula/functions/roundup.d.ts.map +1 -1
- package/dist/formula/functions/row.d.ts +2 -6
- package/dist/formula/functions/row.d.ts.map +1 -1
- package/dist/formula/functions/sin.d.ts +2 -5
- package/dist/formula/functions/sin.d.ts.map +1 -1
- package/dist/formula/functions/sqrt.d.ts +2 -5
- package/dist/formula/functions/sqrt.d.ts.map +1 -1
- package/dist/formula/functions/sum.d.ts +2 -12
- package/dist/formula/functions/sum.d.ts.map +1 -1
- package/dist/formula/functions/sumif.d.ts +2 -10
- package/dist/formula/functions/sumif.d.ts.map +1 -1
- package/dist/formula/functions/tan.d.ts +2 -5
- package/dist/formula/functions/tan.d.ts.map +1 -1
- package/dist/formula/functions/uminus.d.ts +2 -5
- package/dist/formula/functions/uminus.d.ts.map +1 -1
- package/dist/formula/functions/vlookup.d.ts +2 -10
- package/dist/formula/functions/vlookup.d.ts.map +1 -1
- package/dist/formula/mapping.d.ts +8 -1
- package/dist/formula/mapping.d.ts.map +1 -1
- package/dist/formula/solver.d.ts.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7572 -6553
- package/dist/index.js.map +1 -1
- package/dist/lib/cell.d.ts +13 -1
- package/dist/lib/cell.d.ts.map +1 -1
- package/dist/lib/coords.d.ts +1 -1
- package/dist/lib/coords.d.ts.map +1 -1
- package/dist/lib/hub.d.ts +8 -4
- package/dist/lib/hub.d.ts.map +1 -1
- package/dist/lib/spatial.d.ts +2 -0
- package/dist/lib/spatial.d.ts.map +1 -1
- package/dist/lib/table.d.ts +6 -1
- package/dist/lib/table.d.ts.map +1 -1
- package/dist/policy/core.d.ts +16 -9
- package/dist/policy/core.d.ts.map +1 -1
- package/dist/sentinels.d.ts +23 -0
- package/dist/sentinels.d.ts.map +1 -0
- package/dist/store/actions.d.ts +12 -0
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/dispatchers.d.ts +2 -0
- package/dist/store/dispatchers.d.ts.map +1 -1
- package/dist/store/helpers.d.ts +0 -6
- 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 +19 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +14 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAwTzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAkRtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAmCtF,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAmCtF,eAAO,MAAM,UAAU,EAAE,EA0iBxB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { ContextMenuProps } from '../types';
|
|
|
3
3
|
export declare const ContextMenu: () => JSX.Element | null;
|
|
4
4
|
export declare const DividerItem: (props: ContextMenuProps) => JSX.Element;
|
|
5
5
|
export declare const CutItem: (props: ContextMenuProps) => JSX.Element;
|
|
6
|
+
export declare const SearchItem: (props: ContextMenuProps) => JSX.Element;
|
|
6
7
|
export declare const CopyItem: (props: ContextMenuProps) => JSX.Element;
|
|
7
8
|
export declare const PasteItem: (props: ContextMenuProps) => JSX.Element;
|
|
8
9
|
export declare const PasteOnlyValueItem: (props: ContextMenuProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;AAsBpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,WAAW,0BAyBvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gBAElD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,gBAAgB,gBAS9C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,gBAAgB,gBASjD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,gBAS/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,gBAAgB,gBAShD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,gBAazD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,OAAO,gBAAgB,uBAMnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBA4BzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,uBA4B1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,uBA4BrD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,gBAAgB,uBAazD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,uBAoB/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAsBzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6ChC,OAAO,EAA6D,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK/F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAypB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EditorOptionsProps {
|
|
3
|
+
filteredOptions: any[];
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
selected: number;
|
|
7
|
+
onOptionMouseDown: (e: React.MouseEvent<HTMLLIElement>, i: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const EditorOptions: React.FC<EditorOptionsProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=EditorOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorOptions.d.ts","sourceRoot":"","sources":["../../src/components/EditorOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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,CA4BtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAcA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBA2WpD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FunctionHelp } from '../formula/mapping';
|
|
3
|
+
import { AutocompleteOption } from '../policy/core';
|
|
4
|
+
type OptionWithGuide = AutocompleteOption & {
|
|
5
|
+
isFunction?: boolean;
|
|
6
|
+
example?: string;
|
|
7
|
+
helpTexts?: string[];
|
|
8
|
+
helpArgs?: any[];
|
|
9
|
+
};
|
|
10
|
+
export interface FunctionGuideProps {
|
|
11
|
+
option?: OptionWithGuide;
|
|
12
|
+
activeFunctionGuide?: FunctionHelp;
|
|
13
|
+
activeArgIndex?: number;
|
|
14
|
+
top?: number;
|
|
15
|
+
left?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const FunctionGuide: React.FC<FunctionGuideProps>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=FunctionGuide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;CAClB,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,CA+GtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,SAAS,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAqB7F,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0DAAuC,CAAC;AAEjE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,SAAS,EAAE,gBAAgB,EAC3B,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,SAAS,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAqB7F,eAAO,MAAM,eAAe,mDAAsC,CAAC;AACnE,eAAO,MAAM,YAAY,0DAAuC,CAAC;AAEjE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,SAAS,EAAE,gBAAgB,EAC3B,OAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,EAAE,UAAU,GAChB,EAAE,KAAK,eAoKP"}
|
|
@@ -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;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"HeaderCellLeft.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellLeft.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA2BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAuPnC,CAAC"}
|
|
@@ -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;AAS5C,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AAS5C,eAAO,MAAM,OAAO,EAAE,EA4JrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../src/components/SearchBar.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS,0BAuMrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,0BA+NnB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FunctionHelp } from '../formula/mapping';
|
|
2
|
+
import { FunctionMapping } from '../formula/functions/__base';
|
|
3
|
+
import { AutocompleteOption } from '../policy/core';
|
|
4
|
+
type UseAutocompleteProps = {
|
|
5
|
+
inputting: string;
|
|
6
|
+
selectionStart: number;
|
|
7
|
+
optionsAll: AutocompleteOption[];
|
|
8
|
+
functions?: FunctionMapping;
|
|
9
|
+
};
|
|
10
|
+
export declare const useAutocomplete: ({ inputting, selectionStart, optionsAll, functions }: UseAutocompleteProps) => {
|
|
11
|
+
filteredOptions: any[];
|
|
12
|
+
selected: number;
|
|
13
|
+
setSelected: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
14
|
+
replaceWithOption: (option: any) => {
|
|
15
|
+
value: string;
|
|
16
|
+
selectionStart: any;
|
|
17
|
+
};
|
|
18
|
+
handleArrowUp: (e: React.KeyboardEvent<HTMLTextAreaElement>) => boolean;
|
|
19
|
+
handleArrowDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => boolean;
|
|
20
|
+
isFormula: boolean;
|
|
21
|
+
activeFunctionHelp: FunctionHelp | null;
|
|
22
|
+
activeArgIndex: number;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=useAutocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../src/components/useAutocomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sDAAsD,oBAAoB;;;;gCAwL7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -11,19 +11,6 @@ export declare const MIN_HEIGHT = 5;
|
|
|
11
11
|
export declare const OVERSCAN_X = 5;
|
|
12
12
|
export declare const OVERSCAN_Y = 10;
|
|
13
13
|
export declare const DEFAULT_ALPHABET_CACHE_SIZE = 1000;
|
|
14
|
-
export declare class Special {
|
|
15
|
-
name: string;
|
|
16
|
-
constructor(name: string);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Sentinel value representing an in-flight async formula computation.
|
|
20
|
-
* Cells whose solved cache contains a Pending will render a loading indicator.
|
|
21
|
-
* Dependent cells that encounter a Pending value also become pending.
|
|
22
|
-
*/
|
|
23
|
-
export declare class Pending {
|
|
24
|
-
promise: Promise<any>;
|
|
25
|
-
constructor(promise: Promise<any>);
|
|
26
|
-
}
|
|
27
14
|
export declare const SECONDS_IN_DAY = 86400;
|
|
28
15
|
export declare const FULLDATE_FORMAT_UTC = "YYYY-MM-DDTHH:mm:ss.SSSZ";
|
|
29
16
|
export declare const RESET_ZONE: ZoneType;
|
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;AAEhC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,
|
|
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;AAEhC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,eAAO,MAAM,UAAU,EAAE,QAKxB,CAAC"}
|
|
@@ -118,6 +118,8 @@ export declare class Parser {
|
|
|
118
118
|
build(): Expression | undefined;
|
|
119
119
|
private parse;
|
|
120
120
|
}
|
|
121
|
+
/** Alias for Parser, exported for external tooling (e.g. Debugger). */
|
|
122
|
+
export declare const FormulaParser: typeof Parser;
|
|
121
123
|
export declare const identifyFormula: (value: any, { idMap, ...props }: IdentifyProps) => any;
|
|
122
124
|
export declare const stripSheetName: (sheetName: string) => string;
|
|
123
125
|
export declare function splitRef(ref: 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,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE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jB,OAAO,CAAC,cAAc;CA8BvB;AAED,qBAAa,MAAM;IACV,KAAK,SAAK;IACV,KAAK,SAAK;IACV,MAAM,EAAE,KAAK,EAAE,CAAC;gBACX,MAAM,EAAE,KAAK,EAAE;IAGpB,KAAK;IAKZ,OAAO,CAAC,KAAK;CAqGd;AAED,uEAAuE;AACvE,eAAO,MAAM,aAAa,eAAS,CAAC;AAIpC,eAAO,MAAM,eAAe,GAAI,OAAO,GAAG,EAAE,qBAAqB,aAAa,QAU7E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,WAQ/C,CAAC;AAEF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CA0C5F;AAED,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,kCAAkC,aAAa,KAC9C;IACD,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,EAAE,CAAC;CA2Cf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pending,
|
|
1
|
+
import { Pending, Sentinel } from '../../sentinels';
|
|
2
2
|
import { Wire } from '../../lib/hub';
|
|
3
3
|
import { PointType } from '../../types';
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import { PointType } from '../../types';
|
|
|
6
6
|
* Since user functions can return undefined or null, we need a special marker
|
|
7
7
|
* to indicate "no cache entry found" vs "cache entry is undefined".
|
|
8
8
|
*/
|
|
9
|
-
export declare const asyncCacheMiss:
|
|
9
|
+
export declare const asyncCacheMiss: Sentinel;
|
|
10
10
|
/** Returns true if any element of `args` is a Pending sentinel. */
|
|
11
11
|
export declare const hasPendingArg: (args: any[]) => boolean;
|
|
12
12
|
/**
|
|
@@ -32,25 +32,28 @@ export declare const buildAsyncCacheKey: (funcName: string, bareArgs: any[], has
|
|
|
32
32
|
export declare const getAsyncCache: (table: {
|
|
33
33
|
wire: Wire;
|
|
34
34
|
getId: (p: PointType) => string;
|
|
35
|
-
}, origin: PointType, key: string) => any;
|
|
35
|
+
}, origin: PointType, key: string, useInflight?: boolean) => any;
|
|
36
36
|
/**
|
|
37
37
|
* Handle an async (Promise) result returned by BaseFunction.main().
|
|
38
38
|
*
|
|
39
39
|
* Cache is stored per-cell in cell.asyncCache.
|
|
40
40
|
* In-flight tracking uses Wire.asyncPending (keyed by cell ID).
|
|
41
|
+
* If useInflight is true, also tracks by cache key in Wire.asyncInflight.
|
|
41
42
|
*
|
|
42
43
|
* Flow:
|
|
43
44
|
* 1. If cell has asyncCache and the key matches (inputs unchanged) and not expired → return cached value
|
|
44
45
|
* 2. If there is already an in-flight promise for this cell → return its Pending
|
|
45
|
-
* 3.
|
|
46
|
+
* 3. If useInflight is true and there is an in-flight promise for this key → return its Pending
|
|
47
|
+
* 4. Otherwise start the async work, return a new Pending, and on completion
|
|
46
48
|
* write the result into cell.asyncCache and trigger a re-render.
|
|
47
49
|
*
|
|
48
50
|
* @param ttlMilliseconds - Cache time-to-live in **milliseconds**. undefined = never expires.
|
|
51
|
+
* @param useInflight - If true, reuse the same promise for matching cache keys across different cells.
|
|
49
52
|
*/
|
|
50
|
-
export declare const
|
|
53
|
+
export declare const awaitAndSave: (promise: Promise<any>, table: {
|
|
51
54
|
wire: Wire;
|
|
52
55
|
getId: (p: PointType) => string;
|
|
53
|
-
}, origin: PointType, key: string, ttlMilliseconds?: number) =>
|
|
56
|
+
}, origin: PointType, key: string, ttlMilliseconds?: number, useInflight?: boolean) => Pending;
|
|
54
57
|
/**
|
|
55
58
|
* Create a Pending sentinel that resolves immediately.
|
|
56
59
|
* Used when an argument is already pending — the result is propagated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"__async.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAiC,CAAC;AAE7D,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,EAAE,KAAG,OAE3C,CAAC;AAwBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,gBAAe,MAAU,KAAG,MAYjG,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EACtD,QAAQ,SAAS,EACjB,KAAK,MAAM,EACX,cAAa,OAAe,KAC3B,GAgEF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,OAAO,CAAC,GAAG,CAAC,EACrB,OAAO;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAA;CAAE,EACtD,QAAQ,SAAS,EACjB,KAAK,MAAM,EACX,kBAAkB,MAAM,EACxB,cAAa,OAAe,KAC3B,OAsDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAE1C,CAAC"}
|
|
@@ -6,25 +6,47 @@ export type FunctionProps = {
|
|
|
6
6
|
table: Table;
|
|
7
7
|
origin?: PointType;
|
|
8
8
|
};
|
|
9
|
+
export type HelpArg = {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
optional?: boolean;
|
|
13
|
+
iterable?: boolean;
|
|
14
|
+
type?: ('number' | 'string' | 'boolean' | 'date' | 'time' | 'range' | 'reference' | 'any')[];
|
|
15
|
+
};
|
|
16
|
+
export declare const conditionArg: HelpArg;
|
|
9
17
|
export declare class BaseFunction {
|
|
10
18
|
example: string;
|
|
11
19
|
helpTexts: string[];
|
|
12
|
-
helpArgs:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}[];
|
|
20
|
+
helpArgs: HelpArg[];
|
|
21
|
+
/** Indicates if this function is async. Override in subclass or use BaseFunctionAsync. */
|
|
22
|
+
protected isAsync: boolean;
|
|
16
23
|
/** Cache TTL in milliseconds. Override in subclass to set expiry. undefined = never expires. */
|
|
17
24
|
protected ttlMilliseconds?: number;
|
|
18
25
|
/** Hash precision for cache key generation. Higher values reduce collision risk. Default: 1 */
|
|
19
26
|
protected hashPrecision: number;
|
|
27
|
+
/** If true, reuse the same in-flight promise for matching cache keys across different cells. */
|
|
28
|
+
protected useInflight: boolean;
|
|
20
29
|
protected bareArgs: any[];
|
|
21
30
|
protected table: Table;
|
|
22
31
|
protected origin?: PointType;
|
|
23
32
|
constructor({ args, table, origin }: FunctionProps);
|
|
24
33
|
protected validate(): void;
|
|
25
|
-
private get isMainAsync();
|
|
26
34
|
call(): any;
|
|
27
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Base class for sync functions.
|
|
38
|
+
* Extend this class to create sync functions that support caching.
|
|
39
|
+
*/
|
|
40
|
+
export declare class BaseFunctionSync extends BaseFunction {
|
|
41
|
+
protected isAsync: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Base class for async functions.
|
|
45
|
+
* Extend this class to create async functions that support caching.
|
|
46
|
+
*/
|
|
47
|
+
export declare class BaseFunctionAsync extends BaseFunction {
|
|
48
|
+
protected isAsync: boolean;
|
|
49
|
+
}
|
|
28
50
|
export type FunctionMapping = {
|
|
29
51
|
[functionName: string]: typeof BaseFunction;
|
|
30
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__base.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU1C,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,qBAAa,YAAY;IAChB,OAAO,SAAa;IACpB,SAAS,WAA+B;IACxC,QAAQ
|
|
1
|
+
{"version":3,"file":"__base.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU1C,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC;CAC9F,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAK1B,CAAC;AAEF,qBAAa,YAAY;IAChB,OAAO,SAAa;IACpB,SAAS,WAA+B;IACxC,QAAQ,EAAE,OAAO,EAAE,CAAM;IAChC,0FAA0F;IAC1F,SAAS,CAAC,OAAO,EAAE,OAAO,CAAS;IACnC,gGAAgG;IAChG,SAAS,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACnC,+FAA+F;IAC/F,SAAS,CAAC,aAAa,EAAE,MAAM,CAAK;IACpC,gGAAgG;IAChG,SAAS,CAAC,WAAW,EAAE,OAAO,CAAQ;IACtC,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;IAC1B,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IACvB,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;gBAEjB,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa;IAKlD,SAAS,CAAC,QAAQ;IAEX,IAAI;CAyBZ;AAED;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,SAAS,CAAC,OAAO,EAAE,OAAO,CAAS;CACpC;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,SAAS,CAAC,OAAO,EAAE,OAAO,CAAQ;CACnC;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"__utils.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/__utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAS3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE3C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,KAAG,OAE1C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,EAAE,UAAU,mBAAmB,KAAG,MAmCxE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,KAAG,MAsBzC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,UAAU,oBAAoB,KAAG,OA0B1E,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,OAAO,GAAG,EAAE,WAAW,MAAM,KAAG,OAqCrD,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AbsFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(value: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abs.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/abs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"abs.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/abs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAA8C;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAuE;IAE1F,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AcosFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(value: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/acos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"acos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/acos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
import { TimeDelta } from '../../lib/time';
|
|
3
3
|
export declare class AddFunction extends BaseFunction {
|
|
4
4
|
example: string;
|
|
5
5
|
helpText: string[];
|
|
6
|
-
helpArgs:
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
}[];
|
|
6
|
+
helpArgs: HelpArg[];
|
|
10
7
|
protected validate(): void;
|
|
11
8
|
protected main(v1: number | Date | TimeDelta, v2: number | Date | TimeDelta): number | Date;
|
|
12
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/add.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAe;IACtB,QAAQ,WAAgF;IACxF,QAAQ,EAAE,OAAO,EAAE,CAGjB;IAEF,SAAS,CAAC,QAAQ;IAYlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CA0B5E"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AndFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
optional?: undefined;
|
|
9
|
-
iterable?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
optional: boolean;
|
|
14
|
-
iterable: boolean;
|
|
15
|
-
})[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
16
6
|
protected validate(): void;
|
|
17
7
|
protected main(...values: boolean[]): boolean;
|
|
18
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAqB;IAC5B,QAAQ,WAA8G;IACtH,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE;CAGpC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AsinFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(value: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asin.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/asin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"asin.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/asin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAUlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AtanFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(value: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atan.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"atan.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,SAAa;IACpB,QAAQ,WAAwD;IAChE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class Atan2Function extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(x: number, y: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atan2.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"atan2.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/atan2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,SAAgB;IACvB,QAAQ,WAEN;IACF,QAAQ,EAAE,OAAO,EAAE,CAWjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAGpC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class AverageFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
optional?: undefined;
|
|
9
|
-
iterable?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
optional: boolean;
|
|
14
|
-
iterable: boolean;
|
|
15
|
-
})[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
16
6
|
protected validate(): void;
|
|
17
7
|
protected main(...values: number[]): number;
|
|
18
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/average.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"average.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/average.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,SAA2B;IAClC,QAAQ,WAA4D;IACpE,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAmBlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class ColFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
option: boolean;
|
|
9
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
10
6
|
protected validate(): void;
|
|
11
7
|
protected main(left: number): number;
|
|
12
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/col.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/col.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAa;IACpB,QAAQ,WAAmD;IAC3D,QAAQ,EAAE,OAAO,EAAE,CAOjB;IAEF,SAAS,CAAC,QAAQ;IAWlB,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM;CAG5B"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class ConcatFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(v1: string, v2: string): string;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,SAA8B;IACrC,QAAQ,WAAyF;IACjG,QAAQ,EAAE,OAAO,EAAE,CAGjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAGtC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class ConcatenateFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
optional?: undefined;
|
|
9
|
-
iterable?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
optional: boolean;
|
|
14
|
-
iterable: boolean;
|
|
15
|
-
})[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
16
6
|
protected validate(): void;
|
|
17
7
|
protected main(...values: string[]): string;
|
|
18
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concatenate.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concatenate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"concatenate.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/concatenate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,OAAO,SAAmC;IAC1C,QAAQ,WAAgD;IACxD,QAAQ,EAAE,OAAO,EAAE,CASjB;IAEF,SAAS,CAAC,QAAQ;IAIlB,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE;CAGnC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from './__base';
|
|
1
|
+
import { BaseFunction, HelpArg } from './__base';
|
|
2
2
|
export declare class CosFunction extends BaseFunction {
|
|
3
3
|
example: string;
|
|
4
4
|
helpText: string[];
|
|
5
|
-
helpArgs:
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
helpArgs: HelpArg[];
|
|
9
6
|
protected validate(): void;
|
|
10
7
|
protected main(angle: number): number;
|
|
11
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/cos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cos.d.ts","sourceRoot":"","sources":["../../../src/formula/functions/cos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,SAAiB;IACxB,QAAQ,WAA0D;IAClE,QAAQ,EAAE,OAAO,EAAE,CAMjB;IAEF,SAAS,CAAC,QAAQ;IAOlB,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM;CAG7B"}
|