@gridsheet/preact-core 3.0.0-rc.1 → 3.0.0-rc.2
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/FunctionGuide.d.ts +3 -2
- package/dist/constants.d.ts +1 -0
- package/dist/formula/evaluator.d.ts +8 -15
- package/dist/formula/formula-error.d.ts +10 -0
- package/dist/formula/functions/__async.d.ts +9 -4
- package/dist/formula/functions/__base.d.ts +80 -14
- package/dist/formula/functions/__utils.d.ts +4 -0
- package/dist/formula/functions/abs.d.ts +5 -5
- package/dist/formula/functions/add.d.ts +6 -6
- package/dist/formula/functions/and.d.ts +5 -5
- package/dist/formula/functions/arrayformula.d.ts +12 -0
- package/dist/formula/functions/average.d.ts +5 -5
- package/dist/formula/functions/concat.d.ts +5 -5
- package/dist/formula/functions/count.d.ts +4 -4
- package/dist/formula/functions/counta.d.ts +4 -4
- package/dist/formula/functions/divide.d.ts +5 -4
- package/dist/formula/functions/eq.d.ts +4 -4
- package/dist/formula/functions/gt.d.ts +5 -5
- package/dist/formula/functions/gte.d.ts +5 -5
- package/dist/formula/functions/if.d.ts +5 -5
- package/dist/formula/functions/iferror.d.ts +7 -9
- package/dist/formula/functions/len.d.ts +5 -5
- package/dist/formula/functions/lt.d.ts +5 -5
- package/dist/formula/functions/lte.d.ts +5 -5
- package/dist/formula/functions/max.d.ts +5 -5
- package/dist/formula/functions/min.d.ts +5 -5
- package/dist/formula/functions/minus.d.ts +7 -6
- package/dist/formula/functions/multiply.d.ts +5 -5
- package/dist/formula/functions/ne.d.ts +4 -4
- package/dist/formula/functions/not.d.ts +5 -5
- package/dist/formula/functions/now.d.ts +4 -4
- package/dist/formula/functions/or.d.ts +5 -5
- package/dist/formula/functions/power.d.ts +5 -5
- package/dist/formula/functions/sum.d.ts +5 -5
- package/dist/formula/functions/uminus.d.ts +5 -5
- package/dist/formula/mapping.d.ts +4 -3
- package/dist/formula/solver.d.ts +6 -4
- package/dist/index.d.ts +12 -13
- package/dist/index.js +2412 -2726
- package/dist/index.js.map +1 -1
- package/dist/lib/clipboard.d.ts +16 -1
- package/dist/lib/dom.d.ts +2 -0
- package/dist/lib/hub.d.ts +5 -21
- package/dist/lib/input.d.ts +9 -0
- package/dist/lib/operation.d.ts +0 -3
- package/dist/lib/table.d.ts +71 -50
- package/dist/lib/time.d.ts +19 -15
- package/dist/policy/checkbox.d.ts +3 -0
- package/dist/policy/core.d.ts +125 -15
- package/dist/policy/thousand_separator.d.ts +4 -0
- package/dist/sentinels.d.ts +20 -4
- package/dist/store/helpers.d.ts +4 -0
- package/dist/styles/minified.d.ts +2 -2
- package/dist/types.d.ts +8 -20
- package/package.json +1 -1
- package/dist/formula/functions/acos.d.ts +0 -9
- package/dist/formula/functions/asin.d.ts +0 -9
- package/dist/formula/functions/atan.d.ts +0 -9
- package/dist/formula/functions/atan2.d.ts +0 -9
- package/dist/formula/functions/col.d.ts +0 -9
- package/dist/formula/functions/concatenate.d.ts +0 -9
- package/dist/formula/functions/cos.d.ts +0 -9
- package/dist/formula/functions/countif.d.ts +0 -10
- package/dist/formula/functions/exp.d.ts +0 -9
- package/dist/formula/functions/hlookup.d.ts +0 -10
- package/dist/formula/functions/index.d.ts +0 -10
- package/dist/formula/functions/lenb.d.ts +0 -9
- package/dist/formula/functions/ln.d.ts +0 -9
- package/dist/formula/functions/log.d.ts +0 -9
- package/dist/formula/functions/log10.d.ts +0 -9
- package/dist/formula/functions/match.d.ts +0 -10
- package/dist/formula/functions/match.test.d.ts +0 -2
- package/dist/formula/functions/mod.d.ts +0 -9
- package/dist/formula/functions/pi.d.ts +0 -9
- package/dist/formula/functions/product.d.ts +0 -9
- package/dist/formula/functions/radians.d.ts +0 -9
- package/dist/formula/functions/rand.d.ts +0 -9
- package/dist/formula/functions/round.d.ts +0 -9
- package/dist/formula/functions/rounddown.d.ts +0 -9
- package/dist/formula/functions/roundup.d.ts +0 -9
- package/dist/formula/functions/row.d.ts +0 -9
- package/dist/formula/functions/sin.d.ts +0 -9
- package/dist/formula/functions/sqrt.d.ts +0 -9
- package/dist/formula/functions/sumif.d.ts +0 -10
- package/dist/formula/functions/tan.d.ts +0 -9
- package/dist/formula/functions/vlookup.d.ts +0 -10
- package/dist/parsers/core.d.ts +0 -38
- package/dist/renderers/checkbox.d.ts +0 -5
- package/dist/renderers/core.d.ts +0 -66
- package/dist/renderers/thousand_separator.d.ts +0 -3
package/dist/renderers/core.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CellType, PointType } from '../types';
|
|
2
|
-
import { Table, UserTable } from '../lib/table';
|
|
3
|
-
import { TimeDelta } from '../lib/time';
|
|
4
|
-
type Condition = (value: any) => boolean;
|
|
5
|
-
type Stringify = (value: any) => string;
|
|
6
|
-
export type Props = {
|
|
7
|
-
condition?: Condition;
|
|
8
|
-
complement?: Stringify;
|
|
9
|
-
mixins?: RendererMixinType[];
|
|
10
|
-
};
|
|
11
|
-
export type RendererCallProps = {
|
|
12
|
-
table: Table;
|
|
13
|
-
point: PointType;
|
|
14
|
-
sync?: (table: UserTable) => void;
|
|
15
|
-
};
|
|
16
|
-
export type RenderProps<T extends any = any> = {
|
|
17
|
-
value: T;
|
|
18
|
-
cell?: CellType<T>;
|
|
19
|
-
table: Table;
|
|
20
|
-
point: PointType;
|
|
21
|
-
sync?: (table: UserTable) => void;
|
|
22
|
-
};
|
|
23
|
-
export interface RendererMixinType {
|
|
24
|
-
datetimeFormat?: string;
|
|
25
|
-
dateFormat?: string;
|
|
26
|
-
timeDeltaFormat?: string;
|
|
27
|
-
decorate?(rendered: any, props: RenderProps): any;
|
|
28
|
-
render?(props: RenderProps): any;
|
|
29
|
-
stringify?(props: RenderProps): string;
|
|
30
|
-
string?(props: RenderProps<string>): any;
|
|
31
|
-
table?(props: RenderProps<Table>): any;
|
|
32
|
-
bool?(props: RenderProps<boolean>): any;
|
|
33
|
-
number?(props: RenderProps<number>): any;
|
|
34
|
-
date?(props: RenderProps<Date>): any;
|
|
35
|
-
timedelta?(props: RenderProps<TimeDelta>): any;
|
|
36
|
-
array?(props: RenderProps<any[]>): any;
|
|
37
|
-
object?(props: RenderProps<any>): any;
|
|
38
|
-
null?(props: RenderProps<null | undefined>): any;
|
|
39
|
-
}
|
|
40
|
-
export declare class Renderer implements RendererMixinType {
|
|
41
|
-
datetimeFormat: string;
|
|
42
|
-
dateFormat: string;
|
|
43
|
-
timeDeltaFormat: string;
|
|
44
|
-
private condition?;
|
|
45
|
-
private complement?;
|
|
46
|
-
constructor(props?: Props);
|
|
47
|
-
private applyMixins;
|
|
48
|
-
call(props: RendererCallProps): any;
|
|
49
|
-
decorate(rendered: any, props: RenderProps): any;
|
|
50
|
-
render(props: RenderProps): any;
|
|
51
|
-
pending(_props: RenderProps): any;
|
|
52
|
-
stringify({ value, cell, table, point }: RenderProps): string;
|
|
53
|
-
string({ value }: RenderProps<string>): any;
|
|
54
|
-
table(props: RenderProps<Table>): any;
|
|
55
|
-
bool({ value }: RenderProps<boolean>): any;
|
|
56
|
-
number({ value }: RenderProps<number>): any;
|
|
57
|
-
date({ value }: RenderProps<Date>): any;
|
|
58
|
-
timedelta({ value }: RenderProps<TimeDelta>): string;
|
|
59
|
-
array(props: RenderProps<any[]>): any;
|
|
60
|
-
object({ value }: RenderProps<any>): any;
|
|
61
|
-
null({}: RenderProps<null | undefined>): any;
|
|
62
|
-
}
|
|
63
|
-
export type RendererType = Renderer;
|
|
64
|
-
export declare const defaultRenderer: Renderer;
|
|
65
|
-
export {};
|
|
66
|
-
//# sourceMappingURL=core.d.ts.map
|