@evercam/ui 0.0.62 → 0.0.63-Add-timeline-test-2d1f69478
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/CHANGELOG.md +24 -0
- package/README.md +2 -2
- package/dist/attributes.json +471 -19
- package/dist/components/EActionButton.vue.d.ts +17 -0
- package/dist/components/EAvatar.vue.d.ts +2 -0
- package/dist/components/ECopyToClipboardBtn.vue.d.ts +31 -0
- package/dist/components/EDialog.vue.d.ts +3 -0
- package/dist/components/EEvercamLogo.vue.d.ts +6 -0
- package/dist/components/EExpandableMenu.vue.d.ts +6 -5
- package/dist/components/EFadeTransition.vue.d.ts +7 -0
- package/dist/components/EFeedackButton.vue.d.ts +38 -0
- package/dist/components/EFlagIcon.vue.d.ts +3 -0
- package/dist/components/EGlobalSearch.vue.d.ts +1 -0
- package/dist/components/EHeatmapBar.vue.d.ts +13 -2
- package/dist/components/EImagePlayer.vue.d.ts +128 -0
- package/dist/components/EImagesComparator.vue.d.ts +31 -0
- package/dist/components/ELayout.vue.d.ts +32 -0
- package/dist/components/EPulsatingDot.vue.d.ts +18 -0
- package/dist/components/EToggleSwitch.vue.d.ts +3 -3
- package/dist/components/ETooltip.vue.d.ts +12 -0
- package/dist/components/EVideoPlayer.vue.d.ts +0 -1
- package/dist/components/EZoomSlider.vue.d.ts +5 -0
- package/dist/components/EZoomableImg.vue.d.ts +160 -0
- package/dist/components/charts/ECursor.vue.d.ts +69 -0
- package/dist/components/charts/ECursorBehavior.vue.d.ts +21 -0
- package/dist/components/charts/ETimelineSVGDefs.vue.d.ts +3 -0
- package/dist/components/charts/EXAxis.vue.d.ts +78 -0
- package/dist/components/charts/EXAxisBackground.vue.d.ts +64 -0
- package/dist/components/charts/EXAxisDetailed.vue.d.ts +64 -0
- package/dist/components/charts/EXAxisOverview.vue.d.ts +64 -0
- package/dist/components/charts/EZoomBehavior.vue.d.ts +58 -0
- package/dist/components/charts/constants.d.ts +59 -0
- package/dist/components/chat/EChat.vue.d.ts +52 -0
- package/dist/components/chat/EChatBody.vue.d.ts +21 -0
- package/dist/components/chat/EChatFooter.vue.d.ts +9 -0
- package/dist/components/chat/EChatHeader.vue.d.ts +11 -0
- package/dist/components/chat/EChatInput.vue.d.ts +25 -0
- package/dist/components/chat/EChatMessage.vue.d.ts +38 -0
- package/dist/components/chat/EChatMessageActions.vue.d.ts +19 -0
- package/dist/components/chat/EChatSuggestionCard.vue.d.ts +12 -0
- package/dist/components/chat/EChatWrapper.vue.d.ts +9 -0
- package/dist/components/chat/EMarkdown.vue.d.ts +27 -0
- package/dist/components/chat/MarkdownProcessor.d.ts +59 -0
- package/dist/components/svgIcons/Robot.vue.d.ts +3 -0
- package/dist/components/svgIcons/Tag.vue.d.ts +6 -0
- package/dist/components/svgIcons/TagPlus.vue.d.ts +6 -0
- package/dist/components/svgIcons/index.d.ts +8 -2
- package/dist/components/{ETimeline.config.d.ts → timeline/ETimeline.config.d.ts} +1 -1
- package/dist/components/{ETimeline.vue.d.ts → timeline/ETimeline.vue.d.ts} +44 -87
- package/dist/components/timeline/ETimelineCursor.vue.d.ts +9 -0
- package/dist/components/timeline/ETimelineMarker.vue.d.ts +17 -0
- package/dist/components/timeline/ETimelineMarkers.vue.d.ts +31 -0
- package/dist/components/{ETimelineMilestone.vue.d.ts → timeline/ETimelineMilestone.vue.d.ts} +41 -17
- package/dist/components/timeline/ETimelineSelectedTimestampCursor.vue.d.ts +9 -0
- package/dist/constants.d.ts +4 -2
- package/dist/directives/clickOutside.d.ts +3 -0
- package/dist/directives/index.d.ts +3 -2
- package/dist/index.d.ts +521 -96
- package/dist/index.mjs +15003 -5593
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +23 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/mixins/event-listeners.d.ts +2 -0
- package/dist/mixins/inactivity-listener.d.ts +10 -6
- package/dist/style.css +1 -1
- package/dist/styles.css +28378 -27327
- package/dist/tags.json +151 -8
- package/dist/types.d.ts +86 -5
- package/dist/utils.d.ts +9 -0
- package/dist/web-types.json +1050 -47
- package/package.json +30 -15
- package/dist/components/charts/classNames.d.ts +0 -7
- /package/dist/directives/{resize-observer.d.ts → resizeObserver.d.ts} +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { UnistNode, UnistParent } from "unist-util-visit/lib";
|
|
2
|
+
import { Processor as UnifiedJsProcessor } from "unified";
|
|
3
|
+
import Typewriter from "typewriter-effect/dist/core";
|
|
4
|
+
import { EMarkdownRegex, EMarkdownRegexMatch } from '../../types';
|
|
5
|
+
export declare class MarkdownProcessor {
|
|
6
|
+
container: HTMLElement;
|
|
7
|
+
htmlRenderingTarget: HTMLElement;
|
|
8
|
+
processor: UnifiedJsProcessor | null;
|
|
9
|
+
accumulator: string;
|
|
10
|
+
totalMarkdown: string;
|
|
11
|
+
lastProcessedLength: number;
|
|
12
|
+
exposedRegexes: EMarkdownRegex[];
|
|
13
|
+
regexRenderTargetsById: Record<string, EMarkdownRegexMatch>;
|
|
14
|
+
isRenderingTable: boolean;
|
|
15
|
+
isFirstTableRender: boolean;
|
|
16
|
+
mdTableHeaderString: string;
|
|
17
|
+
isIncompleteTableRow: boolean;
|
|
18
|
+
pendingRowString: string;
|
|
19
|
+
tableId: number;
|
|
20
|
+
rowId: number;
|
|
21
|
+
animated: boolean;
|
|
22
|
+
useTableProcessor: boolean;
|
|
23
|
+
onAnimationStart: () => void;
|
|
24
|
+
onAnimationEnd: () => void;
|
|
25
|
+
typewriter: Typewriter | null;
|
|
26
|
+
constructor(container: HTMLElement, config: {
|
|
27
|
+
exposedRegexes?: {
|
|
28
|
+
regex: RegExp;
|
|
29
|
+
type: string;
|
|
30
|
+
}[];
|
|
31
|
+
animated?: boolean;
|
|
32
|
+
onAnimationStart?: () => void;
|
|
33
|
+
onAnimationEnd?: () => void;
|
|
34
|
+
useTableProcessor?: boolean;
|
|
35
|
+
});
|
|
36
|
+
initProcessor(): void;
|
|
37
|
+
remarkCheckIncompleteTableRows(): (tree: UnistNode) => void;
|
|
38
|
+
setIsRenderingTable(v: boolean): void;
|
|
39
|
+
startNewRenderingCycle(): void;
|
|
40
|
+
extractTableHeaderString(node: UnistParent): string;
|
|
41
|
+
processMarkdown(newMarkdown: string): Promise<boolean>;
|
|
42
|
+
handleNewMarkdown(newMarkdown: string): Promise<string>;
|
|
43
|
+
render(processedHtml: string): Promise<void>;
|
|
44
|
+
updateTableContent(processedHtml: string): void;
|
|
45
|
+
processTextNode(node: UnistNode, nodeIndex: number, parent: UnistParent, regex: RegExp, type: string): void;
|
|
46
|
+
replaceRegexTargets(parts: string[], regex: RegExp, type: string, node: any, nodeIndex: number): import("unist").Node[];
|
|
47
|
+
ensureTableExists(container: HTMLElement): HTMLTableElement;
|
|
48
|
+
ensureTBodyExists(table: HTMLTableElement): HTMLTableSectionElement;
|
|
49
|
+
copyTableHead(sourceTable: HTMLTableElement, destinationTable: HTMLTableElement): void;
|
|
50
|
+
copyTableBodyRows(sourceTBody: HTMLTableSectionElement, destinationTBody: HTMLTableSectionElement): void;
|
|
51
|
+
removeEmptyTableRows(tableElement: HTMLTableElement): void;
|
|
52
|
+
getRegexRenderTargets(): Record<string, EMarkdownRegexMatch>;
|
|
53
|
+
clearRegexRenderTargets(): void;
|
|
54
|
+
extractTableFromHtml(processedHtml: string): HTMLTableElement | null;
|
|
55
|
+
updateContent(processedHtml: string): void;
|
|
56
|
+
initTypewriter(): any;
|
|
57
|
+
animateNewChunk(processedHtml: string): Promise<void>;
|
|
58
|
+
getNewContent(processedHtml: string): string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
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>>, unknown, unknown, unknown, Record<never, any>, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
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>>, unknown, unknown, unknown, {
|
|
3
|
+
color: string;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
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>>, unknown, unknown, unknown, {
|
|
3
|
+
color: string;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
6
|
+
export default _default;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
export declare const eSvgIcons: {
|
|
2
|
-
[k: string]: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
2
|
+
[k: string]: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, Record<never, any>, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
3
3
|
color: string;
|
|
4
4
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
5
5
|
color: string;
|
|
6
6
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
7
7
|
color: string;
|
|
8
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown,
|
|
8
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
9
|
+
color: string;
|
|
10
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
11
|
+
color: string;
|
|
12
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
9
13
|
color: string;
|
|
10
14
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
11
15
|
color: string;
|
|
12
16
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
13
17
|
color: string;
|
|
18
|
+
backgroundColor: string;
|
|
14
19
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin> | import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
|
|
15
20
|
color: string;
|
|
21
|
+
backgroundColor: string;
|
|
16
22
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
17
23
|
};
|
|
18
24
|
declare const _default: {};
|
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
import * as d3 from "d3";
|
|
2
|
-
import { D3ZoomEvent } from "d3";
|
|
3
2
|
import Vue from "vue";
|
|
4
|
-
import {
|
|
3
|
+
import { TimelineCountEvent, TimelineEvent, TimelineEventsByType, TimelineEventsGroup, TimelineInterval, TimelineIntervalChangeTrigger, TimelineMarker, TimelinePrecision, Timestamp, TimelineDomain } from '../../types';
|
|
4
|
+
import { NormalizedScopedSlot } from "vue/types/vnode";
|
|
5
5
|
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>>, {
|
|
6
|
+
mainContainer: HTMLElement;
|
|
6
7
|
tooltip: HTMLElement;
|
|
7
|
-
cursor: HTMLElement;
|
|
8
8
|
timeline: HTMLElement;
|
|
9
9
|
wrapperDiv: HTMLElement;
|
|
10
|
-
|
|
10
|
+
svgElement: SVGSVGElement;
|
|
11
11
|
svg: d3.Selection<SVGSVGElement, any, any, any>;
|
|
12
|
-
axesContainer: d3.Selection<SVGGElement, any, any, any>;
|
|
13
|
-
xAxes: Record<TimelineAxis, d3.Axis<Date>>;
|
|
14
12
|
timeScale: d3.ScaleTime<any, any, unknown>;
|
|
15
|
-
initialTimeScale: d3.ScaleTime<any, any, unknown>;
|
|
16
13
|
currentTimeScaleDensity: number;
|
|
17
|
-
zoomBehavior: d3.ZoomBehavior<SVGSVGElement, unknown>;
|
|
18
|
-
isMouseDown: boolean;
|
|
19
14
|
axisHeight: number;
|
|
20
15
|
isHoveringEvent: boolean;
|
|
21
16
|
hoveredEvent: TimelineEvent;
|
|
22
|
-
isHoveringTimeline: boolean;
|
|
23
|
-
hoveredTimestamp: string;
|
|
24
17
|
eventTooltipStyle: {};
|
|
25
18
|
hoveredEventType: string;
|
|
26
19
|
utcOffset: number;
|
|
27
|
-
lastTransform: {
|
|
28
|
-
x: number;
|
|
29
|
-
k: number;
|
|
30
|
-
};
|
|
31
|
-
transformDiff: {
|
|
32
|
-
translation: number;
|
|
33
|
-
scale: number;
|
|
34
|
-
};
|
|
35
20
|
yScale: d3.ScaleLinear<any, any, never>;
|
|
36
21
|
hoveredCounts: {
|
|
37
22
|
count: number;
|
|
38
23
|
type: string;
|
|
24
|
+
label?: string | undefined;
|
|
39
25
|
}[];
|
|
40
26
|
countsByTimestamp: Record<string, Record<string, number>>;
|
|
41
27
|
dotsByTimestamp: Record<string, d3.Selection<SVGCircleElement, any, any, any>[]>;
|
|
@@ -52,60 +38,41 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
52
38
|
isFirstPaint: boolean;
|
|
53
39
|
timeouts: number[];
|
|
54
40
|
groupsVisibility: Record<string, boolean>;
|
|
55
|
-
markersPositions: Record<string, {
|
|
56
|
-
position: number;
|
|
57
|
-
isHidden: boolean;
|
|
58
|
-
}>;
|
|
59
|
-
markersDragBehavior: d3.DragBehavior<HTMLElement, TimelineMarker, any>;
|
|
60
|
-
initialMarkerDragMouseOffset: number;
|
|
61
41
|
selectedMilestoneId: any;
|
|
62
42
|
isInitialized: boolean;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
defs: {
|
|
67
|
-
transparencyGradient: string;
|
|
68
|
-
transparencyGradientLight: string;
|
|
69
|
-
loadingGradient: string;
|
|
70
|
-
stripedPattern: string;
|
|
43
|
+
transformDiff: {
|
|
44
|
+
translation: number;
|
|
45
|
+
scale: number;
|
|
71
46
|
};
|
|
47
|
+
isZoomingInterval: boolean;
|
|
48
|
+
hoveredMilestone: TimelineEvent;
|
|
49
|
+
focusedDomain: TimelineDomain;
|
|
50
|
+
transitionDuration: number;
|
|
51
|
+
focusedTimestamp: string | Date;
|
|
72
52
|
}, {
|
|
53
|
+
validateProps(): void;
|
|
73
54
|
updateTimeline(): void;
|
|
74
|
-
initTimeline(
|
|
55
|
+
initTimeline(): void;
|
|
75
56
|
initRefs(): void;
|
|
76
57
|
initOrUpdateSvg(): void;
|
|
77
|
-
initDefs(): void;
|
|
78
58
|
initUtcOffset(): void;
|
|
79
|
-
initTimeScale(start?: string, end?: string): void;
|
|
80
|
-
initXAxes(): void;
|
|
81
|
-
updateXAxes(): void;
|
|
82
59
|
initYScale(): void;
|
|
83
|
-
|
|
84
|
-
initZoomBehavior(): void;
|
|
60
|
+
updateYScale(): void;
|
|
85
61
|
zoomToFitMarkers(): void;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
62
|
+
selectOrAppend({ parent, targetId, targetType, }: {
|
|
63
|
+
parent: d3.Selection<any, any, any, any>;
|
|
64
|
+
targetId: string;
|
|
65
|
+
targetType: string;
|
|
66
|
+
}): d3.Selection<d3.BaseType, any, any, any>;
|
|
91
67
|
clearTimeline(): void;
|
|
92
|
-
repositionSelectedTimestampCursor(): void;
|
|
93
68
|
updateCurrentTimeScaleDensity(): void;
|
|
94
|
-
registerEventsListeners(): void;
|
|
95
69
|
emitVisibleInterval(trigger: TimelineIntervalChangeTrigger): void;
|
|
96
|
-
createAxis(axisName: TimelineAxis): d3.Axis<Date>;
|
|
97
|
-
getAxisTicksConfig(configs: TimelineTicksConfig[]): {
|
|
98
|
-
formatFn: (d: Date) => string;
|
|
99
|
-
interval: any;
|
|
100
|
-
};
|
|
101
70
|
onResize(resizeObserverEntry: ResizeObserverEntry): void;
|
|
102
71
|
handleResize({ contentRect }: ResizeObserverEntry): void;
|
|
103
72
|
handleDarkModeChange(): void;
|
|
104
|
-
handleMouseDown(): void;
|
|
105
|
-
handleDocumentMouseUp(_e: MouseEvent): void;
|
|
106
73
|
handleMouseLeave(): void;
|
|
107
|
-
handleMouseMove(
|
|
108
|
-
handleClick(
|
|
74
|
+
handleMouseMove(mouseX: number, timestamp: string): void;
|
|
75
|
+
handleClick(timestamp: string, target: HTMLElement): void;
|
|
109
76
|
handleMarkerClick(marker: TimelineMarker): void;
|
|
110
77
|
handleLineMouseOver(_event: MouseEvent, eventData: TimelineCountEvent, eventType: string): void;
|
|
111
78
|
handleLineMouseOut(): void;
|
|
@@ -113,9 +80,11 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
113
80
|
handleBarMouseOut(): void;
|
|
114
81
|
handleLabelMouseOver(groupType: string): void;
|
|
115
82
|
handleLabelMouseLeave(groupType: string): void;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
83
|
+
handleTransformChange(transform: {
|
|
84
|
+
translation: number;
|
|
85
|
+
scale: number;
|
|
86
|
+
}): void;
|
|
87
|
+
handleTimeScaleChange(ts: d3.ScaleTime<any, any, unknown>): void;
|
|
119
88
|
emitCurtainChange(): void;
|
|
120
89
|
calculateDateRangeFromCurtains(): {
|
|
121
90
|
startDate: Date;
|
|
@@ -126,8 +95,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
126
95
|
handleLeftDrag(event: d3.D3DragEvent<SVGRectElement, any, any>): void;
|
|
127
96
|
handleRightDrag(event: d3.D3DragEvent<SVGRectElement, any, any>): void;
|
|
128
97
|
zoomToStartAndEndDates(): void;
|
|
129
|
-
rescaleAxis(axisName: string, newScale: d3.ScaleTime<any, any, unknown>): void;
|
|
130
|
-
translateTicksText(axisName: string): void;
|
|
131
98
|
updateEventsBars(): void;
|
|
132
99
|
updateBarChart(): void;
|
|
133
100
|
updateLineGraphs(): void;
|
|
@@ -136,14 +103,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
136
103
|
getEventRectWidth(d: TimelineEvent): number;
|
|
137
104
|
getEventText(e: TimelineEvent): string;
|
|
138
105
|
getElementLeftPosition(element: HTMLElement): number;
|
|
139
|
-
isTimestampAllowedForMarker(timestamp: Date | number, marker: TimelineMarker): boolean;
|
|
140
|
-
handleMarkerDrag({ marker, markerElement, dragEvent, }: {
|
|
141
|
-
marker: TimelineMarker;
|
|
142
|
-
markerElement: d3.Selection<any, TimelineMarker, any, any>;
|
|
143
|
-
dragEvent: d3.D3DragEvent<any, TimelineMarker, any>;
|
|
144
|
-
}): void;
|
|
145
|
-
removeMarkersDragBehavior(): void;
|
|
146
|
-
initMarkersDragBehavior(): void;
|
|
147
106
|
initCurtains(): void;
|
|
148
107
|
createCurtains(): void;
|
|
149
108
|
updateCurtains(): void;
|
|
@@ -231,30 +190,21 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
231
190
|
background: string;
|
|
232
191
|
color: string;
|
|
233
192
|
};
|
|
193
|
+
getExternalLabelText(type: string): string;
|
|
234
194
|
getExternalLabelWrapperStyles(type: string): {
|
|
235
195
|
borderColor: string;
|
|
236
196
|
};
|
|
237
|
-
getMarkerClass(marker: TimelineMarker): {
|
|
238
|
-
"marker--hidden": boolean;
|
|
239
|
-
"marker--draggable": boolean | undefined;
|
|
240
|
-
};
|
|
241
|
-
getMarkerContainerStyle(marker: TimelineMarker): Record<string, string>;
|
|
242
|
-
getMarkerLabelStyle(marker: TimelineMarker): Record<string, string>;
|
|
243
|
-
getMarkerLineStyle(marker: TimelineMarker): Record<string, string>;
|
|
244
197
|
tzStringToDate(timestamp: Timestamp): Date;
|
|
245
198
|
dateToTzString(date: Date): string;
|
|
246
|
-
getCurrentTimeBounds(): {
|
|
247
|
-
startDate: string;
|
|
248
|
-
endDate: string;
|
|
249
|
-
};
|
|
250
199
|
getFormattedTimestamp(timestamp: Timestamp): string;
|
|
251
|
-
fillTimeGaps(events: TimelineEvent[]): (import('
|
|
200
|
+
fillTimeGaps(events: TimelineEvent[]): (import('../../types').TimelineBarEvent | import('../../types').TimelineRangeEvent | TimelineCountEvent | {
|
|
252
201
|
timestamp: string;
|
|
253
202
|
count: number;
|
|
254
203
|
})[];
|
|
255
204
|
fillEvents(events: TimelineEvent[]): TimelineEvent[];
|
|
256
205
|
onMilestoneClick(milestone: TimelineEvent, milestoneType: any): void;
|
|
257
206
|
getSortedEvents(events: TimelineEvent[]): TimelineEvent[];
|
|
207
|
+
onHoverMilestone(milestone: TimelineEvent): void;
|
|
258
208
|
}, {
|
|
259
209
|
combinedBarsHeight: number;
|
|
260
210
|
combinedBottomBarsHeight: number;
|
|
@@ -264,7 +214,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
264
214
|
barsYOffset: number;
|
|
265
215
|
hasMilestones: boolean;
|
|
266
216
|
barChartHeight: number;
|
|
267
|
-
|
|
217
|
+
computedClasses: Record<string, string | Record<string, boolean>>;
|
|
268
218
|
lineGraphGroups: TimelineEventsByType;
|
|
269
219
|
chartHeight: number;
|
|
270
220
|
barGroups: TimelineEventsByType;
|
|
@@ -273,6 +223,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
273
223
|
hasChart: boolean;
|
|
274
224
|
labelRectWidth: number;
|
|
275
225
|
combinedXAxesHeight: number;
|
|
226
|
+
timelineWidth: number;
|
|
276
227
|
timelineHeight: number;
|
|
277
228
|
filteredEventsGroups: TimelineEventsByType;
|
|
278
229
|
allEventsSorted: TimelineEvent[];
|
|
@@ -286,9 +237,15 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
286
237
|
hiddenGroupsLabels: string[];
|
|
287
238
|
minHoverZone: number;
|
|
288
239
|
sortedMarkers: TimelineMarker[];
|
|
240
|
+
maxVisibleCount: number;
|
|
241
|
+
defaultMaxDomain: string[];
|
|
242
|
+
defaultFocusedDomain: string[];
|
|
243
|
+
domain: TimelineDomain;
|
|
244
|
+
svgLeft: number;
|
|
245
|
+
markersScopedSlots: Record<string, NormalizedScopedSlot | undefined>;
|
|
246
|
+
isHoveringMilestone: Boolean;
|
|
289
247
|
}, {
|
|
290
|
-
eventsGroups:
|
|
291
|
-
xAxesConfig: TimelineAxesConfig;
|
|
248
|
+
eventsGroups: TimelineEventsByType;
|
|
292
249
|
dark: boolean;
|
|
293
250
|
startDate: string;
|
|
294
251
|
endDate: string;
|
|
@@ -305,11 +262,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
305
262
|
barXPadding: number;
|
|
306
263
|
chartMinHeight: number;
|
|
307
264
|
chartMinLabelHeight: number;
|
|
308
|
-
minZoom: number;
|
|
309
|
-
maxZoom: number;
|
|
310
265
|
minDate: string;
|
|
311
266
|
maxDate: string;
|
|
312
|
-
cursorTimestamp: string | undefined;
|
|
313
267
|
selectedClass: string | undefined;
|
|
314
268
|
panOnDateClick: boolean;
|
|
315
269
|
panTransitionDuration: number;
|
|
@@ -328,5 +282,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
328
282
|
locked: boolean;
|
|
329
283
|
timezone: string | undefined;
|
|
330
284
|
stopClickPropagation: boolean;
|
|
285
|
+
tooltipPosition: string;
|
|
286
|
+
maxDomainPadding: number;
|
|
287
|
+
showCursor: boolean;
|
|
331
288
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
332
289
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as d3 from "d3";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
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>>, unknown, unknown, unknown, {
|
|
4
|
+
timeScale: d3.ScaleTime<any, any, unknown>;
|
|
5
|
+
selectedTimestamp: string;
|
|
6
|
+
timezone: string;
|
|
7
|
+
height: number;
|
|
8
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TimelineMarker } from '../../types';
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
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>>, unknown, {
|
|
4
|
+
getMarkerClass(marker: TimelineMarker): {
|
|
5
|
+
"marker--hidden": Boolean | undefined;
|
|
6
|
+
"marker--draggable": boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
getMarkerContainerStyle(): Record<string, string>;
|
|
9
|
+
getMarkerLabelStyle(marker: TimelineMarker): Record<string, string>;
|
|
10
|
+
getMarkerLineStyle(marker: TimelineMarker): Record<string, string>;
|
|
11
|
+
}, unknown, {
|
|
12
|
+
marker: TimelineMarker;
|
|
13
|
+
height: number;
|
|
14
|
+
hidden: Boolean | undefined;
|
|
15
|
+
position: Number | undefined;
|
|
16
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as d3 from "d3";
|
|
2
|
+
import { TimelineMarker, Timestamp } from '../../types';
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
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>>, {
|
|
5
|
+
markersPositions: Record<string, {
|
|
6
|
+
position: number;
|
|
7
|
+
isHidden: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
markersDragBehavior: d3.DragBehavior<HTMLElement, TimelineMarker, any>;
|
|
10
|
+
initialMarkerDragMouseOffset: number;
|
|
11
|
+
}, {
|
|
12
|
+
initMarkersDragBehavior(): void;
|
|
13
|
+
removeMarkersDragBehavior(): void;
|
|
14
|
+
handleMarkerDrag({ marker, markerElement, dragEvent, }: {
|
|
15
|
+
marker: TimelineMarker;
|
|
16
|
+
markerElement: d3.Selection<any, TimelineMarker, any, any>;
|
|
17
|
+
dragEvent: d3.D3DragEvent<any, TimelineMarker, any>;
|
|
18
|
+
}): void;
|
|
19
|
+
updateMarkers(): void;
|
|
20
|
+
isTimestampAllowedForMarker(timestamp: Date | number, marker: TimelineMarker): boolean;
|
|
21
|
+
tzStringToDate(timestamp: Timestamp): Date;
|
|
22
|
+
dateToTzString(date: Date): string;
|
|
23
|
+
}, unknown, {
|
|
24
|
+
markers: TimelineMarker[];
|
|
25
|
+
timeScale: d3.ScaleTime<any, any, unknown>;
|
|
26
|
+
timeZone: string | undefined;
|
|
27
|
+
height: number;
|
|
28
|
+
svgLeft: number;
|
|
29
|
+
stickyMarkers: boolean;
|
|
30
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
31
|
+
export default _default;
|
package/dist/components/{ETimelineMilestone.vue.d.ts → timeline/ETimelineMilestone.vue.d.ts}
RENAMED
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import { TimelineMilestoneEvent } from '
|
|
3
|
-
export declare const milestoneClasses: {
|
|
4
|
-
milestone: string;
|
|
5
|
-
milestoneBullet: string;
|
|
6
|
-
milestoneDot: string;
|
|
7
|
-
milestoneContent: string;
|
|
8
|
-
milestoneLine: string;
|
|
9
|
-
milestonesContainer: string;
|
|
10
|
-
milestoneHovered: string;
|
|
11
|
-
milestoneSelected: string;
|
|
12
|
-
milestoneLabel: string;
|
|
13
|
-
milestoneDotContainer: string;
|
|
14
|
-
milestoneDotLine: string;
|
|
15
|
-
milestoneDotDot: string;
|
|
16
|
-
milestoneDotHovered: string;
|
|
17
|
-
};
|
|
2
|
+
import { TimelineMilestoneEvent } from '../../types';
|
|
18
3
|
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>>, {
|
|
19
|
-
|
|
4
|
+
classNames: {
|
|
5
|
+
xAxis: string;
|
|
6
|
+
xAxisDark: string;
|
|
7
|
+
xAxisOverview: string;
|
|
8
|
+
xAxisDetailed: string;
|
|
9
|
+
xAxisBackground: string;
|
|
10
|
+
eventGroup: string;
|
|
11
|
+
eventGroupBg: string;
|
|
12
|
+
eventGroupContent: string;
|
|
13
|
+
eventRect: string;
|
|
14
|
+
eventRectContainer: string;
|
|
15
|
+
eventBarContainer: string;
|
|
16
|
+
eventBarContainerHovered: string;
|
|
17
|
+
eventBarContainerSelected: string;
|
|
18
|
+
eventBar: string;
|
|
19
|
+
eventBarHoverZone: string;
|
|
20
|
+
eventBarCap: string;
|
|
21
|
+
eventRectText: string;
|
|
22
|
+
eventRectHovered: string;
|
|
23
|
+
eventRectSelected: string;
|
|
24
|
+
labelGroup: string;
|
|
25
|
+
labelBg: string;
|
|
26
|
+
labelBgFill: string;
|
|
27
|
+
labelText: string;
|
|
28
|
+
loadingIndicator: string;
|
|
29
|
+
selectedTimestampCursor: string;
|
|
30
|
+
marker: string;
|
|
31
|
+
markerLabel: string;
|
|
32
|
+
markerLine: string;
|
|
33
|
+
markerDragged: string;
|
|
20
34
|
milestone: string;
|
|
21
35
|
milestoneBullet: string;
|
|
22
36
|
milestoneDot: string;
|
|
@@ -30,10 +44,20 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
30
44
|
milestoneDotLine: string;
|
|
31
45
|
milestoneDotDot: string;
|
|
32
46
|
milestoneDotHovered: string;
|
|
47
|
+
barChartGroup: string;
|
|
48
|
+
lineGraphGroup: string;
|
|
49
|
+
lineGraphGroupLabel: string;
|
|
50
|
+
lineGraphPath: string;
|
|
51
|
+
lineGraphHoverZone: string;
|
|
52
|
+
lineGraphDot: string;
|
|
53
|
+
curtain: string;
|
|
54
|
+
forbiddenInterval: string;
|
|
33
55
|
};
|
|
34
56
|
timeouts: number[];
|
|
35
57
|
isInitialRender: boolean;
|
|
36
58
|
isMouseOver: boolean;
|
|
59
|
+
containerWidth: string;
|
|
60
|
+
containerHeight: string;
|
|
37
61
|
}, {
|
|
38
62
|
onMilestoneMouseOver(e?: MouseEvent): void;
|
|
39
63
|
onMilestoneMouseMove(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as d3 from "d3";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
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>>, unknown, unknown, unknown, {
|
|
4
|
+
timeScale: d3.ScaleTime<any, any, unknown>;
|
|
5
|
+
selectedTimestamp: string;
|
|
6
|
+
timezone: string;
|
|
7
|
+
height: number;
|
|
8
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
9
|
+
export default _default;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Size, BaseColor } from './types';
|
|
1
|
+
import { Size, BaseColor, Position } from './types';
|
|
2
2
|
export declare const fullConfig: any;
|
|
3
3
|
export declare const TextSizes: any;
|
|
4
4
|
export declare const Colors: any;
|
|
5
5
|
export declare const BadgeSizes: readonly [Size.dot, Size.xs, Size.sm, Size.md, Size.lg, Size.xl];
|
|
6
6
|
export declare const AvatarSizes: readonly [Size.xs, Size.sm, Size.md, Size.lg, Size.xl, (typeof Size)["2xl"]];
|
|
7
7
|
export declare const IconSizes: readonly [Size.xs, Size.sm, Size.md, Size.md, Size.lg, Size.xl, (typeof Size)["2xl"], (typeof Size)["3xl"], (typeof Size)["4xl"], (typeof Size)["5xl"], (typeof Size)["6xl"], (typeof Size)["7xl"], (typeof Size)["8xl"], (typeof Size)["9xl"]];
|
|
8
|
-
export declare const ToggleSwitchSizes: readonly [Size.sm, Size.md, Size.
|
|
8
|
+
export declare const ToggleSwitchSizes: readonly [Size.sm, Size.md, Size.lg];
|
|
9
9
|
export declare const BadgeColors: readonly [BaseColor.warning, BaseColor.error, BaseColor.info, BaseColor.success, BaseColor.primary, BaseColor.default];
|
|
10
|
+
export declare const TooltipColors: readonly [BaseColor.warning, BaseColor.error, BaseColor.info, BaseColor.success, BaseColor.primary, BaseColor.default];
|
|
11
|
+
export declare const TooltipPositions: readonly [Position.top, Position.bottom, Position.right, Position.left];
|
|
10
12
|
export declare const EVENTS: string[];
|
|
11
13
|
declare const _default: {};
|
|
12
14
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import ResizeObserverDirective from '../directives/
|
|
1
|
+
import ResizeObserverDirective from '../directives/resizeObserver';
|
|
2
|
+
import ClickOutsideDirective from '../directives/clickOutside';
|
|
2
3
|
export declare const DirectivesMap: {
|
|
3
4
|
name: string;
|
|
4
5
|
definition: import("vue").DirectiveOptions;
|
|
5
6
|
}[];
|
|
6
|
-
export { ResizeObserverDirective };
|
|
7
|
+
export { ResizeObserverDirective, ClickOutsideDirective };
|