@hpcc-js/timeline 2.54.1 → 2.56.0

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.
Files changed (41) hide show
  1. package/dist/index.js +1201 -1626
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +2 -0
  4. package/dist/index.umd.cjs.map +1 -0
  5. package/package.json +36 -38
  6. package/src/MiniGantt.ts +10 -9
  7. package/src/ReactAxisGantt.ts +8 -1
  8. package/src/ReactAxisGanttSeries.ts +2 -2
  9. package/src/ReactGantt.ts +4 -0
  10. package/src/ReactTimeline.ts +23 -12
  11. package/src/ReactTimelineSeries.ts +21 -10
  12. package/src/__package__.ts +2 -2
  13. package/src/index.ts +7 -7
  14. package/types/MiniGantt.d.ts +4 -5
  15. package/types/ReactAxisGantt.d.ts +2 -2
  16. package/types/ReactAxisGanttSeries.d.ts +2 -3
  17. package/types/ReactGantt.d.ts +1 -1
  18. package/types/ReactTimeline.d.ts +2 -3
  19. package/types/ReactTimelineSeries.d.ts +1 -2
  20. package/types/__package__.d.ts +2 -3
  21. package/types/index.d.ts +7 -8
  22. package/dist/index.es6.js +0 -1625
  23. package/dist/index.es6.js.map +0 -1
  24. package/dist/index.min.js +0 -2
  25. package/dist/index.min.js.map +0 -1
  26. package/types/MiniGantt.d.ts.map +0 -1
  27. package/types/ReactAxisGantt.d.ts.map +0 -1
  28. package/types/ReactAxisGanttSeries.d.ts.map +0 -1
  29. package/types/ReactGantt.d.ts.map +0 -1
  30. package/types/ReactTimeline.d.ts.map +0 -1
  31. package/types/ReactTimelineSeries.d.ts.map +0 -1
  32. package/types/__package__.d.ts.map +0 -1
  33. package/types/index.d.ts.map +0 -1
  34. package/types-3.4/MiniGantt.d.ts +0 -106
  35. package/types-3.4/ReactAxisGantt.d.ts +0 -83
  36. package/types-3.4/ReactAxisGanttSeries.d.ts +0 -82
  37. package/types-3.4/ReactGantt.d.ts +0 -135
  38. package/types-3.4/ReactTimeline.d.ts +0 -18
  39. package/types-3.4/ReactTimelineSeries.d.ts +0 -18
  40. package/types-3.4/__package__.d.ts +0 -4
  41. package/types-3.4/index.d.ts +0 -8
@@ -1,83 +0,0 @@
1
- import { Axis } from "@hpcc-js/chart";
2
- import { SVGWidget } from "@hpcc-js/common";
3
- import { ReactGantt } from "./ReactGantt";
4
- export type IAxisGanttData = [
5
- string,
6
- number | string,
7
- number | string,
8
- any?
9
- ] | any[];
10
- export declare class ReactAxisGantt extends SVGWidget {
11
- protected _topAxis: Axis;
12
- protected _gantt: ReactGantt;
13
- protected _bottomAxis: Axis;
14
- protected _topAxisElement: any;
15
- protected _contentElement: any;
16
- protected _bottomAxisElement: any;
17
- protected _topRect: any;
18
- protected _contentRect: any;
19
- protected _bottomRect: any;
20
- protected rangeRenderer: any;
21
- constructor();
22
- selection(_: any[]): this;
23
- selection(): any[];
24
- resizeWrappers(): void;
25
- enter(domNode: any, element: any): void;
26
- onzoom(transform: any): void;
27
- update(domNode: any, element: any): void;
28
- columns(): string[];
29
- columns(_: string[]): this;
30
- data(): IAxisGanttData[];
31
- data(_: IAxisGanttData[]): this;
32
- resize(_size?: {
33
- width: number;
34
- height: number;
35
- }): any;
36
- click(row: any, col: any, sel: any): void;
37
- dblclick(row: any, col: any, sel: any): void;
38
- tooltip(): any;
39
- }
40
- export interface ReactAxisGantt {
41
- tickFormat(): string;
42
- tickFormat(_: string): this;
43
- tickFormat_exists(): boolean;
44
- overlapTolerence(): number;
45
- overlapTolerence(_: number): this;
46
- smallestRangeWidth(): number;
47
- smallestRangeWidth(_: number): this;
48
- scaleMode(): boolean;
49
- scaleMode(_: boolean): this;
50
- fontSize(): number;
51
- fontSize(_: number): this;
52
- fontFamily(): string;
53
- fontFamily(_: string): this;
54
- strokeWidth(): number;
55
- strokeWidth(_: number): this;
56
- stroke(): string;
57
- stroke(_: string): this;
58
- cornerRadius(): number;
59
- cornerRadius(_: number): this;
60
- axisFontSize(): number;
61
- axisFontSize(_: number): this;
62
- axisFontFamily(): string;
63
- axisFontFamily(_: string): this;
64
- axisTickLength(): number;
65
- axisTickLength(_: number): this;
66
- axisHeight(): number;
67
- axisHeight(_: number): this;
68
- titleColumn(): string;
69
- titleColumn(_: string): this;
70
- startDateColumn(): string;
71
- startDateColumn(_: string): this;
72
- endDateColumn(): string;
73
- endDateColumn(_: string): this;
74
- iconColumn(): string;
75
- iconColumn(_: string): this;
76
- colorColumn(): string;
77
- colorColumn(_: string): this;
78
- bucketColumn(): string;
79
- bucketColumn(_: string): this;
80
- maxZoom(): number;
81
- maxZoom(_: number): this;
82
- }
83
- //# sourceMappingURL=ReactAxisGantt.d.ts.map
@@ -1,82 +0,0 @@
1
- import { Axis } from "@hpcc-js/chart";
2
- import { Border2 } from "@hpcc-js/layout";
3
- import { ReactGantt } from "./ReactGantt";
4
- import { IAxisGanttData } from "./ReactAxisGantt";
5
- import { React } from "@hpcc-js/react";
6
- export declare class ReactAxisGanttSeries extends Border2 {
7
- protected _topAxis: Axis;
8
- protected _gantt: ReactGantt;
9
- protected _bottomAxis: Axis;
10
- protected _topAxisElement: any;
11
- protected _contentElement: any;
12
- protected _bottomAxisElement: any;
13
- protected _topRect: any;
14
- protected _contentRect: any;
15
- protected _bottomRect: any;
16
- constructor();
17
- selection(_: any[]): this;
18
- selection(): any[];
19
- rangeRenderer(): React.FunctionComponent;
20
- rangeRenderer(_: React.FunctionComponent): this;
21
- resizeWrappers(): void;
22
- enter(domNode: any, element: any): void;
23
- onzoom(transform: any): void;
24
- update(domNode: any, element: any): void;
25
- columns(): string[];
26
- columns(_: string[]): this;
27
- data(): IAxisGanttData[];
28
- data(_: IAxisGanttData[]): this;
29
- resize(_size?: {
30
- width: number;
31
- height: number;
32
- }): any;
33
- click(row: any, col: any, sel: any): void;
34
- dblclick(row: any, col: any, sel: any): void;
35
- tooltip(): any;
36
- }
37
- export interface ReactAxisGanttSeries {
38
- tickFormat(): string;
39
- tickFormat(_: string): this;
40
- tickFormat_exists(): boolean;
41
- overlapTolerence(): number;
42
- overlapTolerence(_: number): this;
43
- smallestRangeWidth(): number;
44
- smallestRangeWidth(_: number): this;
45
- scaleMode(): boolean;
46
- scaleMode(_: boolean): this;
47
- fontSize(): number;
48
- fontSize(_: number): this;
49
- fontFamily(): string;
50
- fontFamily(_: string): this;
51
- strokeWidth(): number;
52
- strokeWidth(_: number): this;
53
- stroke(): string;
54
- stroke(_: string): this;
55
- cornerRadius(): number;
56
- cornerRadius(_: number): this;
57
- axisFontSize(): number;
58
- axisFontSize(_: number): this;
59
- axisFontFamily(): string;
60
- axisFontFamily(_: string): this;
61
- axisTickLength(): number;
62
- axisTickLength(_: number): this;
63
- axisHeight(): number;
64
- axisHeight(_: number): this;
65
- titleColumn(): string;
66
- titleColumn(_: string): this;
67
- startDateColumn(): string;
68
- startDateColumn(_: string): this;
69
- endDateColumn(): string;
70
- endDateColumn(_: string): this;
71
- iconColumn(): string;
72
- iconColumn(_: string): this;
73
- colorColumn(): string;
74
- colorColumn(_: string): this;
75
- seriesColumn(): string;
76
- seriesColumn(_: string): this;
77
- bucketColumn(): string;
78
- bucketColumn(_: string): this;
79
- maxZoom(): number;
80
- maxZoom(_: number): this;
81
- }
82
- //# sourceMappingURL=ReactAxisGanttSeries.d.ts.map
@@ -1,135 +0,0 @@
1
- import { SVGZoomWidget, Utility } from "@hpcc-js/common";
2
- import { React } from "@hpcc-js/react";
3
- export type IGanttData = [
4
- string,
5
- number,
6
- number,
7
- any?
8
- ];
9
- export interface IRangeOptions {
10
- rangePadding: number;
11
- fontFamily: string;
12
- fontSize: number;
13
- strokeWidth?: number;
14
- fill: string;
15
- stroke: string;
16
- textFill: string;
17
- cornerRadius: number;
18
- }
19
- export declare class ReactGantt extends SVGZoomWidget {
20
- protected _selection: Utility.SelectionBag;
21
- protected _buckets: any;
22
- protected _interpolateX: any;
23
- protected _interpolateY: any;
24
- protected _bucketsBySeries: any;
25
- protected _dataBySeries: any;
26
- protected _origIdxMap: any;
27
- private _seriesBackgrounds;
28
- protected _maxFontSize: any;
29
- _tooltip: any;
30
- _minStart: number;
31
- _maxEnd: number;
32
- protected _title_idx: number;
33
- protected _startDate_idx: number;
34
- protected _endDate_idx: number;
35
- protected _icon_idx: number;
36
- protected _color_idx: number;
37
- protected _series_idx: number;
38
- protected _bucket_idx: number;
39
- protected _yoffset_idx: number;
40
- protected _maxX: number;
41
- protected _maxY: number;
42
- private _rangeOptions;
43
- constructor(drawStartPosition?: "origin" | "center");
44
- selection(_: any[]): this;
45
- selection(): any[];
46
- private _rangeRenderer;
47
- rangeRenderer(): React.FunctionComponent;
48
- rangeRenderer(_: React.FunctionComponent): this;
49
- enter(domNode: any, element: any): void;
50
- update(domNode: any, element: any): void;
51
- renderRangeElement(d: any, i: any, transformEach?: boolean, options?: any, seriesKey?: string): void;
52
- setRangeOptions(): void;
53
- _transform: {
54
- k: number;
55
- x: number;
56
- y: number;
57
- };
58
- zoomed(transform: any): void;
59
- zoomedHook(transform: any): void;
60
- private calcBuckets;
61
- data(): IGanttData[];
62
- data(_: IGanttData[]): this;
63
- protected _textWidths: any;
64
- protected _maxFontScale: any;
65
- protected _characterWidths: any;
66
- protected _prevFontFamily: any;
67
- protected _prevFontSize: any;
68
- measureDataText(forceMeasure?: boolean): void;
69
- truncateText(text: any, width: any, scale?: number): any;
70
- resize(_size?: {
71
- width: number;
72
- height: number;
73
- }): any;
74
- selectionChanged(): void;
75
- highlightItem(_element: any, d: any): void;
76
- click(row: any, _col: any, sel: any): void;
77
- dblclick(row: any, _col: any, sel: any): void;
78
- mousein(row: any, _col: any, sel: any): void;
79
- mouseover(row: any, _col: any, sel: any): void;
80
- mouseout(row: any, _col: any, sel: any): void;
81
- }
82
- export interface ReactGantt {
83
- titleColumn(): string;
84
- titleColumn(_: string): this;
85
- startDateColumn(): string;
86
- startDateColumn(_: string): this;
87
- endDateColumn(): string;
88
- endDateColumn(_: string): this;
89
- iconColumn(): string;
90
- iconColumn(_: string): this;
91
- colorColumn(): string;
92
- colorColumn(_: string): this;
93
- seriesColumn(): string;
94
- seriesColumn(_: string): this;
95
- bucketColumn(): string;
96
- bucketColumn(_: string): this;
97
- overlapTolerence(): number;
98
- overlapTolerence(_: number): this;
99
- smallestRangeWidth(): number;
100
- smallestRangeWidth(_: number): this;
101
- bucketHeight(): number;
102
- bucketHeight(_: number): this;
103
- gutter(): number;
104
- gutter(_: number): this;
105
- showToolbar_default(_: boolean): this;
106
- fontSize(): number;
107
- fontSize(_: number): this;
108
- fontFamily(): string;
109
- fontFamily(_: string): this;
110
- strokeWidth(): number;
111
- strokeWidth(_: number): this;
112
- stroke(): string;
113
- stroke(_: string): this;
114
- cornerRadius(): number;
115
- cornerRadius(_: number): this;
116
- fill(): string;
117
- fill(_: string): this;
118
- rangeFontColor(): string;
119
- rangeFontColor(_: string): this;
120
- rangePadding(): number;
121
- rangePadding(_: number): this;
122
- renderMode(): "default" | "scale-all";
123
- renderMode(_: "default" | "scale-all"): this;
124
- maxZoom(): number;
125
- maxZoom(_: number): this;
126
- fitWidthToContent(): boolean;
127
- fitWidthToContent(_: boolean): this;
128
- fitHeightToContent(): boolean;
129
- fitHeightToContent(_: boolean): this;
130
- evenSeriesBackground(): string;
131
- evenSeriesBackground(_: string): this;
132
- oddSeriesBackground(): string;
133
- oddSeriesBackground(_: string): this;
134
- }
135
- //# sourceMappingURL=ReactGantt.d.ts.map
@@ -1,18 +0,0 @@
1
- import { ReactAxisGantt } from "./ReactAxisGantt";
2
- export declare class ReactTimeline extends ReactAxisGantt {
3
- protected _axisLabelFormatter: any;
4
- constructor();
5
- update(domNode: any, element: any): void;
6
- tooltipHTML(callback: any): this;
7
- parseAxisValue(v: any): string;
8
- onzoom(transform: any): void;
9
- _tooltipHTML: (_: any) => string;
10
- }
11
- export interface ReactTimeline {
12
- timePattern(): string;
13
- timePattern(_: string): this;
14
- timePattern_exists(): boolean;
15
- tooltipTimeFormat(): string;
16
- tooltipTimeFormat(_: string): this;
17
- }
18
- //# sourceMappingURL=ReactTimeline.d.ts.map
@@ -1,18 +0,0 @@
1
- import { ReactAxisGanttSeries } from "./ReactAxisGanttSeries";
2
- export declare class ReactTimelineSeries extends ReactAxisGanttSeries {
3
- protected _axisLabelFormatter: any;
4
- constructor();
5
- update(domNode: any, element: any): void;
6
- tooltipHTML(callback: any): this;
7
- parseAxisValue(v: any): string;
8
- onzoom(transform: any): void;
9
- _tooltipHTML: (_: any) => string;
10
- }
11
- export interface ReactTimelineSeries {
12
- timePattern(): string;
13
- timePattern(_: string): this;
14
- timePattern_exists(): boolean;
15
- tooltipTimeFormat(): string;
16
- tooltipTimeFormat(_: string): this;
17
- }
18
- //# sourceMappingURL=ReactTimelineSeries.d.ts.map
@@ -1,4 +0,0 @@
1
- export declare const PKG_NAME = "@hpcc-js/timeline";
2
- export declare const PKG_VERSION = "2.54.1";
3
- export declare const BUILD_VERSION = "2.108.2";
4
- //# sourceMappingURL=__package__.d.ts.map
@@ -1,8 +0,0 @@
1
- export * from "./__package__";
2
- export * from "./MiniGantt";
3
- export * from "./ReactGantt";
4
- export * from "./ReactAxisGantt";
5
- export * from "./ReactAxisGanttSeries";
6
- export * from "./ReactTimeline";
7
- export * from "./ReactTimelineSeries";
8
- //# sourceMappingURL=index.d.ts.map