@evercam/ui 0.0.63-preview-ui-add-wrapper-classes-8ff2abf40 → 0.0.63-preview-ui-add-wrapper-classes-741d112b9
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/README.md +1 -0
- package/dist/components/charts/ETimelineLinesChart.vue.d.ts +3 -2
- package/dist/components/charts/ETimelineRectsChart.vue.d.ts +13 -4
- package/dist/components/charts/ETimelineRectsChartGroupedDots.vue.d.ts +83 -0
- package/dist/components/timeline/ETimeline.vue.d.ts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +2084 -1900
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as d3 from "d3";
|
|
2
2
|
import Vue from "vue";
|
|
3
|
-
import { TimelineEventsGroup, Timestamp } from '../../types';
|
|
3
|
+
import { TimelineEvent, TimelineEventsGroup, Timestamp } from '../../types';
|
|
4
4
|
type ComputedEventRect = {
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
@@ -78,10 +78,11 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
78
78
|
characterWidth: number;
|
|
79
79
|
}, {
|
|
80
80
|
updateLine(): void;
|
|
81
|
+
getEventRectX(d: TimelineEvent, timeScale: d3.ScaleTime<any, any, unknown>): any;
|
|
81
82
|
tzStringToDate(timestamp: Timestamp): Date;
|
|
82
83
|
}, {
|
|
83
84
|
lineGradient: string;
|
|
84
|
-
lineDots:
|
|
85
|
+
lineDots: TimelineEvent[];
|
|
85
86
|
hoverZones: ComputedEventRect[];
|
|
86
87
|
yScale: d3.ScaleLinear<number, number, never>;
|
|
87
88
|
}, {
|
|
@@ -11,6 +11,7 @@ type ComputedEventRect = {
|
|
|
11
11
|
textY: number;
|
|
12
12
|
textColor: string;
|
|
13
13
|
textContent: string;
|
|
14
|
+
groupedEvents?: TimelineEvent[];
|
|
14
15
|
};
|
|
15
16
|
declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
16
17
|
classNames: {
|
|
@@ -72,23 +73,29 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
72
73
|
characterWidth: number;
|
|
73
74
|
textPadding: number;
|
|
74
75
|
}, {
|
|
75
|
-
onMouseOver(e: MouseEvent,
|
|
76
|
+
onMouseOver(e: MouseEvent, event: TimelineEvent | ComputedEventRect, type: string): void;
|
|
76
77
|
onMouseLeave(e: MouseEvent): void;
|
|
78
|
+
onGroupedEventsMouseOver(e: MouseEvent, events: (TimelineEvent | ComputedEventRect)[], type: string): void;
|
|
77
79
|
getEventText(e: TimelineEvent, textPadding: number, characterWidth: number): string;
|
|
78
80
|
getEventRectWidth(d: TimelineEvent, timeScale: d3.ScaleTime<any, any, unknown>, rectMinWidth: number): number;
|
|
79
81
|
getEventRectX(d: TimelineEvent, timeScale: d3.ScaleTime<any, any, unknown>): any;
|
|
80
82
|
tzStringToDate(timestamp: Timestamp): Date;
|
|
81
83
|
dateToTzString(date: Date): string;
|
|
84
|
+
convertEventTzStringToDate(event: TimelineEvent | ComputedEventRect): TimelineEvent;
|
|
85
|
+
convertEventDateToTzString(event: TimelineEvent | ComputedEventRect): TimelineEvent;
|
|
82
86
|
getFillColor(baseColor: string, k?: number, dark?: boolean): string;
|
|
83
87
|
}, {
|
|
84
88
|
rectStrokeWidth: number;
|
|
85
|
-
rectRx: number
|
|
86
|
-
rectRy: number
|
|
89
|
+
rectRx: number;
|
|
90
|
+
rectRy: number;
|
|
91
|
+
computedHeight: number;
|
|
87
92
|
yPosition: number;
|
|
88
|
-
rectStroke: string
|
|
93
|
+
rectStroke: string;
|
|
89
94
|
rectHeight: number;
|
|
95
|
+
preprocessedEvents: TimelineEvent[];
|
|
90
96
|
computedEvents: ComputedEventRect[];
|
|
91
97
|
timeScaleDensity: number;
|
|
98
|
+
groupedEvents: TimelineEvent[][];
|
|
92
99
|
}, {
|
|
93
100
|
timeScale: d3.ScaleTime<any, any, unknown>;
|
|
94
101
|
eventsGroup: TimelineEventsGroup;
|
|
@@ -106,5 +113,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
106
113
|
dots: boolean;
|
|
107
114
|
dotsSize: number;
|
|
108
115
|
barBorderRadius: number;
|
|
116
|
+
groupOverlappingDots: boolean;
|
|
117
|
+
groupingThreshold: number;
|
|
109
118
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
110
119
|
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { TimelineEvent } from '../../types';
|
|
3
|
+
type EventRect = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
color: string;
|
|
9
|
+
groupedEvents?: TimelineEvent[];
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
12
|
+
classNames: {
|
|
13
|
+
xAxis: string;
|
|
14
|
+
xAxisDark: string;
|
|
15
|
+
xAxisOverview: string;
|
|
16
|
+
xAxisDetailed: string;
|
|
17
|
+
xAxisBackground: string;
|
|
18
|
+
eventGroup: string;
|
|
19
|
+
eventGroupBg: string;
|
|
20
|
+
eventGroupContent: string;
|
|
21
|
+
eventRect: string;
|
|
22
|
+
eventRectContainer: string;
|
|
23
|
+
eventBarContainer: string;
|
|
24
|
+
eventBarContainerHovered: string;
|
|
25
|
+
eventBarContainerSelected: string;
|
|
26
|
+
eventBar: string;
|
|
27
|
+
eventBarHoverZone: string;
|
|
28
|
+
eventRectText: string;
|
|
29
|
+
eventRectHovered: string;
|
|
30
|
+
eventRectSelected: string;
|
|
31
|
+
labelGroup: string;
|
|
32
|
+
labelBg: string;
|
|
33
|
+
labelBgFill: string;
|
|
34
|
+
labelText: string;
|
|
35
|
+
loadingIndicator: string;
|
|
36
|
+
_legacyLabelGroup: string;
|
|
37
|
+
_legacyLabelBg: string;
|
|
38
|
+
_legacyLabelBgFill: string;
|
|
39
|
+
_legacyLabelText: string;
|
|
40
|
+
_legacyLoadingIndicator: string;
|
|
41
|
+
selectedTimestampCursor: string;
|
|
42
|
+
marker: string;
|
|
43
|
+
markerLabel: string;
|
|
44
|
+
markerLine: string;
|
|
45
|
+
markerDragged: string;
|
|
46
|
+
milestone: string;
|
|
47
|
+
milestoneBullet: string;
|
|
48
|
+
milestoneDot: string;
|
|
49
|
+
milestoneContent: string;
|
|
50
|
+
milestoneLine: string;
|
|
51
|
+
milestonesContainer: string;
|
|
52
|
+
milestoneHovered: string;
|
|
53
|
+
milestoneSelected: string;
|
|
54
|
+
milestoneLabel: string;
|
|
55
|
+
milestoneDotContainer: string;
|
|
56
|
+
milestoneDotLine: string;
|
|
57
|
+
milestoneDotDot: string;
|
|
58
|
+
milestoneDotHovered: string;
|
|
59
|
+
barChartGroup: string;
|
|
60
|
+
lineGraphGroup: string;
|
|
61
|
+
lineGraphGroupLabel: string;
|
|
62
|
+
areaGraphPath: string;
|
|
63
|
+
lineGraphPath: string;
|
|
64
|
+
lineGraphHoverZone: string;
|
|
65
|
+
lineGraphDot: string;
|
|
66
|
+
forbiddenInterval: string;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
getBackgroundX(offset: number): number;
|
|
70
|
+
getBackgroundY(offset: number): number;
|
|
71
|
+
getBackgroundSize(offset: number): number;
|
|
72
|
+
getBackgroundOpacity(offset: number): number;
|
|
73
|
+
}, {
|
|
74
|
+
numberOfBackgroundDots: number;
|
|
75
|
+
}, {
|
|
76
|
+
event: EventRect;
|
|
77
|
+
rectStroke: string;
|
|
78
|
+
rectStrokeWidth: number;
|
|
79
|
+
rectRx: number;
|
|
80
|
+
rectRy: number;
|
|
81
|
+
groupId: string;
|
|
82
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
83
|
+
export default _default;
|
|
@@ -10,6 +10,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
10
10
|
svg: d3.Selection<SVGSVGElement, any, any, any>;
|
|
11
11
|
axisHeight: number;
|
|
12
12
|
isHoveringEvent: boolean;
|
|
13
|
+
isHoveringGroupedEvents: boolean;
|
|
14
|
+
isAnimating: boolean;
|
|
13
15
|
hoveredEvent: TimelineEvent;
|
|
14
16
|
eventTooltipStyle: {};
|
|
15
17
|
hoveredEventType: string;
|
|
@@ -32,6 +34,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
32
34
|
focusedDomain: TimelineDomain;
|
|
33
35
|
transitionDuration: number;
|
|
34
36
|
focusedTimestamp: string | Date;
|
|
37
|
+
hoveredGroupedEvents: TimelineEvent[];
|
|
35
38
|
TimelineChartType: typeof TimelineChartType;
|
|
36
39
|
}, {
|
|
37
40
|
handleVisibleIntervalChange({ fromDate, toDate, trigger, transform }: {
|
|
@@ -55,9 +58,12 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
55
58
|
handleChartMouseOver(_event: MouseEvent, eventData: TimelineCountEvent, eventType: string): void;
|
|
56
59
|
handleChartMouseOut(): void;
|
|
57
60
|
handleBarMouseOver(event: MouseEvent, eventData: TimelineEvent, eventType: string): void;
|
|
61
|
+
handleBarGroupedEventsMouseOver(event: MouseEvent, events: TimelineEvent[], eventType: string): void;
|
|
58
62
|
handleBarMouseOut(): void;
|
|
59
63
|
handleTimeScaleChange(ts: d3.ScaleTime<any, any, unknown>): void;
|
|
60
64
|
zoomToStartAndEndDates(): void;
|
|
65
|
+
onAnimationStart(): void;
|
|
66
|
+
onAnimationEnd(): void;
|
|
61
67
|
getMilestoneClass(milestone: TimelineEvent): Record<string, boolean>;
|
|
62
68
|
getMilestoneColors(milestoneColor: string | undefined, groupColor: string): {
|
|
63
69
|
background: string;
|
|
@@ -80,7 +86,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
80
86
|
};
|
|
81
87
|
tzStringToDate(timestamp: Timestamp): Date;
|
|
82
88
|
getFormattedTimestamp(timestamp: Timestamp): string;
|
|
83
|
-
fillTimeGaps(events: TimelineEvent[]): (import('../../types').TimelineBarEvent | import('../../types').TimelineRangeEvent | TimelineCountEvent | {
|
|
89
|
+
fillTimeGaps(events: TimelineEvent[]): (import('../../types').TimelineBarEvent | import('../../types').TimelineRangeEvent | TimelineCountEvent | import('../../types').TimelineMilestoneEvent | {
|
|
84
90
|
timestamp: string;
|
|
85
91
|
count: number;
|
|
86
92
|
})[];
|
package/dist/index.d.ts
CHANGED
|
@@ -231,6 +231,8 @@ export declare const components: {
|
|
|
231
231
|
svg: import("d3-selection").Selection<SVGSVGElement, any, any, any>;
|
|
232
232
|
axisHeight: number;
|
|
233
233
|
isHoveringEvent: boolean;
|
|
234
|
+
isHoveringGroupedEvents: boolean;
|
|
235
|
+
isAnimating: boolean;
|
|
234
236
|
hoveredEvent: import('./types').TimelineEvent;
|
|
235
237
|
eventTooltipStyle: {};
|
|
236
238
|
hoveredEventType: string;
|
|
@@ -253,6 +255,7 @@ export declare const components: {
|
|
|
253
255
|
focusedDomain: import('./types').TimelineDomain;
|
|
254
256
|
transitionDuration: number;
|
|
255
257
|
focusedTimestamp: string | Date;
|
|
258
|
+
hoveredGroupedEvents: import('./types').TimelineEvent[];
|
|
256
259
|
TimelineChartType: typeof import('./types').TimelineChartType;
|
|
257
260
|
}, {
|
|
258
261
|
handleVisibleIntervalChange({ fromDate, toDate, trigger, transform }: {
|
|
@@ -276,9 +279,12 @@ export declare const components: {
|
|
|
276
279
|
handleChartMouseOver(_event: MouseEvent, eventData: import('./types').TimelineCountEvent, eventType: string): void;
|
|
277
280
|
handleChartMouseOut(): void;
|
|
278
281
|
handleBarMouseOver(event: MouseEvent, eventData: import('./types').TimelineEvent, eventType: string): void;
|
|
282
|
+
handleBarGroupedEventsMouseOver(event: MouseEvent, events: import('./types').TimelineEvent[], eventType: string): void;
|
|
279
283
|
handleBarMouseOut(): void;
|
|
280
284
|
handleTimeScaleChange(ts: import("d3-scale").ScaleTime<any, any, unknown>): void;
|
|
281
285
|
zoomToStartAndEndDates(): void;
|
|
286
|
+
onAnimationStart(): void;
|
|
287
|
+
onAnimationEnd(): void;
|
|
282
288
|
getMilestoneClass(milestone: import('./types').TimelineEvent): Record<string, boolean>;
|
|
283
289
|
getMilestoneColors(milestoneColor: string | undefined, groupColor: string): {
|
|
284
290
|
background: string;
|
|
@@ -301,7 +307,7 @@ export declare const components: {
|
|
|
301
307
|
};
|
|
302
308
|
tzStringToDate(timestamp: import('./types').Timestamp): Date;
|
|
303
309
|
getFormattedTimestamp(timestamp: import('./types').Timestamp): string;
|
|
304
|
-
fillTimeGaps(events: import('./types').TimelineEvent[]): (import('./types').TimelineBarEvent | import('./types').TimelineRangeEvent | import('./types').TimelineCountEvent | {
|
|
310
|
+
fillTimeGaps(events: import('./types').TimelineEvent[]): (import('./types').TimelineBarEvent | import('./types').TimelineRangeEvent | import('./types').TimelineCountEvent | import('./types').TimelineMilestoneEvent | {
|
|
305
311
|
timestamp: string;
|
|
306
312
|
count: number;
|
|
307
313
|
})[];
|