@evercam/ui 0.0.55-beta.11 → 0.0.55-beta.12
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/attributes.json +41 -8
- package/dist/index.mjs +2805 -3786
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +13 -9
- package/dist/src/components/EVideoPlayer.vue.d.ts +14 -253
- package/dist/src/index.d.ts +25 -361
- package/dist/src/types.d.ts +6 -7
- package/dist/style.css +1 -1
- package/dist/styles.css +0 -335
- package/dist/tags.json +15 -3
- package/dist/web-types.json +88 -41
- package/package.json +1 -1
- package/dist/src/components/EToggleSwitch.vue.d.ts +0 -49
- package/dist/src/components/EVideoPlayerActions.vue.d.ts +0 -193
- package/dist/src/components/EVideoPlayerControls.vue.d.ts +0 -146
- package/dist/src/components/EVideoPlayerProgressBar.vue.d.ts +0 -100
- package/dist/src/components/EVideoPlayerThumbnailPreview.vue.d.ts +0 -68
- package/dist/src/components/EZoomable.vue.d.ts +0 -64
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d3 from "d3";
|
|
2
2
|
import { D3ZoomEvent } from "d3";
|
|
3
3
|
import Vue from "vue";
|
|
4
|
-
import { TimelineAxesConfig, TimelineAxis, TimelineCountEvent, TimelineEvent, TimelineEventsByType, TimelineEventsGroup, TimelineIntervalChangeTrigger, TimelineMarker, TimelinePrecision, TimelineTicksConfig, Timestamp } from '../types';
|
|
4
|
+
import { TimelineAxesConfig, TimelineAxis, TimelineCountEvent, TimelineEvent, TimelineEventsByType, TimelineEventsGroup, TimelineForbiddenInterval, TimelineIntervalChangeTrigger, TimelineMarker, TimelinePrecision, TimelineTicksConfig, Timestamp } from '../types';
|
|
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
6
|
tooltip: HTMLElement;
|
|
7
7
|
cursor: HTMLElement;
|
|
@@ -138,8 +138,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
138
138
|
initCurtains(): void;
|
|
139
139
|
createCurtains(): void;
|
|
140
140
|
updateCurtains(): void;
|
|
141
|
-
|
|
142
|
-
updateForbiddenIntervals(): void;
|
|
141
|
+
updateForbiddenIntervals(reset?: boolean): void;
|
|
143
142
|
drawEventsGroups(): void;
|
|
144
143
|
drawLineGraphEventsGroups(): void;
|
|
145
144
|
drawLineGraph({ events, gElement, color, type, }: {
|
|
@@ -154,14 +153,13 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
154
153
|
color: string;
|
|
155
154
|
type: string;
|
|
156
155
|
}): void;
|
|
157
|
-
drawSingleBarEventsGroup({ type, eventsGroup,
|
|
156
|
+
drawSingleBarEventsGroup({ type, eventsGroup, milestone, dots, dotsSize, bottom, }: {
|
|
158
157
|
type: string;
|
|
159
158
|
eventsGroup: TimelineEventsGroup;
|
|
160
|
-
index?: number | undefined;
|
|
161
159
|
milestone?: boolean | undefined;
|
|
162
|
-
height?: number | undefined;
|
|
163
160
|
dots?: boolean | undefined;
|
|
164
161
|
dotsSize?: number | undefined;
|
|
162
|
+
bottom?: boolean | undefined;
|
|
165
163
|
}): void;
|
|
166
164
|
drawBarEventsGroups(): void;
|
|
167
165
|
drawMilestonesPlaceholder(): void;
|
|
@@ -171,6 +169,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
171
169
|
border: string;
|
|
172
170
|
};
|
|
173
171
|
getMilestoneGroupYPosition(groupName: string): number;
|
|
172
|
+
getBarGroupYPosition(groupName: string, bottom?: boolean): number;
|
|
173
|
+
getBarGroupHeight(eventsGroup: TimelineEventsGroup): number;
|
|
174
174
|
updateMilestonesPositions(): void;
|
|
175
175
|
drawBarChartEventsGroups(): void;
|
|
176
176
|
drawProgressIndicator({ yPosition, type, isLoading, }: {
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
185
185
|
color: string;
|
|
186
186
|
height?: number | undefined;
|
|
187
187
|
}): void;
|
|
188
|
-
drawBars({ events, gElement, yPosition, color, type, dots, dotsSize, }: {
|
|
188
|
+
drawBars({ events, gElement, yPosition, color, type, dots, dotsSize, height, barBorderRadius, }: {
|
|
189
189
|
events: TimelineEvent[];
|
|
190
190
|
gElement: d3.Selection<SVGGElement, any, any, any>;
|
|
191
191
|
yPosition: number;
|
|
@@ -193,6 +193,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
193
193
|
type: string;
|
|
194
194
|
dots?: boolean | undefined;
|
|
195
195
|
dotsSize?: number | undefined;
|
|
196
|
+
height?: number | undefined;
|
|
197
|
+
barBorderRadius?: number | undefined;
|
|
196
198
|
}): void;
|
|
197
199
|
drawBarsChart({ events, gElement, color, yOffset, type, index, }: {
|
|
198
200
|
events: TimelineEvent[];
|
|
@@ -246,6 +248,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
246
248
|
getSortedEvents(events: TimelineEvent[]): TimelineEvent[];
|
|
247
249
|
}, {
|
|
248
250
|
combinedBarsHeight: number;
|
|
251
|
+
combinedBottomBarsHeight: number;
|
|
249
252
|
combinedMilestonesHeight: number;
|
|
250
253
|
milestonesYOffset: number;
|
|
251
254
|
chartsYOffset: number;
|
|
@@ -292,12 +295,11 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
292
295
|
barYPadding: number;
|
|
293
296
|
barXPadding: number;
|
|
294
297
|
chartMinHeight: number;
|
|
298
|
+
chartMinLabelHeight: number;
|
|
295
299
|
minZoom: number;
|
|
296
300
|
maxZoom: number;
|
|
297
301
|
minDate: string;
|
|
298
302
|
maxDate: string;
|
|
299
|
-
minVisibleDate: string;
|
|
300
|
-
maxVisibleDate: string;
|
|
301
303
|
cursorTimestamp: string | undefined;
|
|
302
304
|
selectedClass: string | undefined;
|
|
303
305
|
panOnDateClick: boolean;
|
|
@@ -311,5 +313,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
311
313
|
zoomToBoundariesTransitionDuration: number;
|
|
312
314
|
milestoneBulletSize: number;
|
|
313
315
|
milestonesFirst: boolean;
|
|
316
|
+
forbiddenIntervals: TimelineForbiddenInterval[];
|
|
317
|
+
forbiddenIntervalColor: string;
|
|
314
318
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
315
319
|
export default _default;
|
|
@@ -1,122 +1,11 @@
|
|
|
1
|
-
import Hls
|
|
2
|
-
import
|
|
1
|
+
import Hls from "hls.js";
|
|
2
|
+
import Vue from "vue";
|
|
3
3
|
export type VideoSource = {
|
|
4
4
|
type: string;
|
|
5
5
|
src: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const VIDEO_PLAYER_EVENTS: string[];
|
|
8
|
-
|
|
9
|
-
_240 = 240,
|
|
10
|
-
_480 = 480,
|
|
11
|
-
_640 = 640,
|
|
12
|
-
_720 = 720,
|
|
13
|
-
_1080 = 1080
|
|
14
|
-
}
|
|
15
|
-
declare const _default: import("vue").DefineComponent<{
|
|
16
|
-
targetTimestamp: {
|
|
17
|
-
type: (StringConstructor | DateConstructor)[];
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
|
-
sources: {
|
|
21
|
-
type: PropType<string | VideoSource[]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
videoListeners: {
|
|
25
|
-
type: PropType<Partial<HTMLVideoElement>>;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
videoOptions: {
|
|
29
|
-
type: PropType<Partial<HTMLVideoElement>>;
|
|
30
|
-
default: () => {};
|
|
31
|
-
};
|
|
32
|
-
isHls: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
streamingToken: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
isLiveView: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
pauseOnClick: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
isHlsLoading: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
isPlaying: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
preloadedInterval: {
|
|
57
|
-
type: PropType<{
|
|
58
|
-
start: string;
|
|
59
|
-
end: string;
|
|
60
|
-
}>;
|
|
61
|
-
default: () => {};
|
|
62
|
-
};
|
|
63
|
-
selectedResolution: {
|
|
64
|
-
type: PropType<EdgeVideoResolution | undefined>;
|
|
65
|
-
default: undefined;
|
|
66
|
-
};
|
|
67
|
-
isLive: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
isZoomable: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
zoomableIgnorePointerEvents: {
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
blurBackground: {
|
|
80
|
-
type: BooleanConstructor;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
isRecordings: {
|
|
84
|
-
type: BooleanConstructor;
|
|
85
|
-
default: boolean;
|
|
86
|
-
};
|
|
87
|
-
progressBarEvents: {
|
|
88
|
-
type: ArrayConstructor;
|
|
89
|
-
default: () => never[];
|
|
90
|
-
};
|
|
91
|
-
progressBarFrames: {
|
|
92
|
-
type: ArrayConstructor;
|
|
93
|
-
default: () => never[];
|
|
94
|
-
};
|
|
95
|
-
progressBarFrameIndex: {
|
|
96
|
-
type: NumberConstructor;
|
|
97
|
-
default: number;
|
|
98
|
-
};
|
|
99
|
-
progressBarPreloadedFrames: {
|
|
100
|
-
type: ArrayConstructor;
|
|
101
|
-
default: () => never[];
|
|
102
|
-
};
|
|
103
|
-
thumbnailsUrls: {
|
|
104
|
-
type: PropType<string[]>;
|
|
105
|
-
default: () => never[];
|
|
106
|
-
};
|
|
107
|
-
timezone: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
default: string;
|
|
110
|
-
};
|
|
111
|
-
playPauseAnimation: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: boolean;
|
|
114
|
-
};
|
|
115
|
-
disablePlayPauseAnimation: {
|
|
116
|
-
type: BooleanConstructor;
|
|
117
|
-
default: boolean;
|
|
118
|
-
};
|
|
119
|
-
}, {}, {
|
|
8
|
+
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>>, {
|
|
120
9
|
playing: boolean;
|
|
121
10
|
percentagePlayed: number;
|
|
122
11
|
videoLength: string;
|
|
@@ -131,16 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
20
|
isLoading: boolean;
|
|
132
21
|
isError: boolean;
|
|
133
22
|
player: Hls;
|
|
134
|
-
playbackRetries: number;
|
|
135
|
-
}, {
|
|
136
|
-
sourceItems(): VideoSource[];
|
|
137
|
-
hasStartedOrFinished(): boolean;
|
|
138
|
-
withControls(): "" | "hide";
|
|
139
23
|
}, {
|
|
140
24
|
initHls(): void;
|
|
141
|
-
onContainerClick(): void;
|
|
142
25
|
handle404Error(): void;
|
|
143
|
-
handleHlsError(_: Events.ERROR, data: ErrorData): void;
|
|
144
26
|
bindEvents(): void;
|
|
145
27
|
unbindEvents(): void;
|
|
146
28
|
bindVideoEvent(which: string): void;
|
|
@@ -153,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
35
|
handleScrubbingOnMouseEnd(e: MouseEvent): void;
|
|
154
36
|
handleEnded(): void;
|
|
155
37
|
handleLoading(): void;
|
|
156
|
-
play():
|
|
38
|
+
play(): void;
|
|
157
39
|
pause(): void;
|
|
158
|
-
togglePlay():
|
|
40
|
+
togglePlay(): void;
|
|
159
41
|
setPlaying(state: boolean): void;
|
|
160
42
|
seekToPercentage(percentage: number): void;
|
|
161
43
|
convertTimeToDuration(seconds: number): string;
|
|
@@ -168,137 +50,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
50
|
skip(duration?: number): void;
|
|
169
51
|
toggleScrubbing(e: MouseEvent): Promise<void>;
|
|
170
52
|
handleKeyDown(e: KeyboardEvent): void;
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
sources:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
videoListeners: {
|
|
181
|
-
type: PropType<Partial<HTMLVideoElement>>;
|
|
182
|
-
default: () => {};
|
|
183
|
-
};
|
|
184
|
-
videoOptions: {
|
|
185
|
-
type: PropType<Partial<HTMLVideoElement>>;
|
|
186
|
-
default: () => {};
|
|
187
|
-
};
|
|
188
|
-
isHls: {
|
|
189
|
-
type: BooleanConstructor;
|
|
190
|
-
default: boolean;
|
|
191
|
-
};
|
|
192
|
-
streamingToken: {
|
|
193
|
-
type: StringConstructor;
|
|
194
|
-
default: string;
|
|
195
|
-
};
|
|
196
|
-
isLiveView: {
|
|
197
|
-
type: BooleanConstructor;
|
|
198
|
-
default: boolean;
|
|
199
|
-
};
|
|
200
|
-
pauseOnClick: {
|
|
201
|
-
type: BooleanConstructor;
|
|
202
|
-
default: boolean;
|
|
203
|
-
};
|
|
204
|
-
isHlsLoading: {
|
|
205
|
-
type: BooleanConstructor;
|
|
206
|
-
default: boolean;
|
|
207
|
-
};
|
|
208
|
-
isPlaying: {
|
|
209
|
-
type: BooleanConstructor;
|
|
210
|
-
default: boolean;
|
|
211
|
-
};
|
|
212
|
-
preloadedInterval: {
|
|
213
|
-
type: PropType<{
|
|
214
|
-
start: string;
|
|
215
|
-
end: string;
|
|
216
|
-
}>;
|
|
217
|
-
default: () => {};
|
|
218
|
-
};
|
|
219
|
-
selectedResolution: {
|
|
220
|
-
type: PropType<EdgeVideoResolution | undefined>;
|
|
221
|
-
default: undefined;
|
|
222
|
-
};
|
|
223
|
-
isLive: {
|
|
224
|
-
type: BooleanConstructor;
|
|
225
|
-
default: boolean;
|
|
226
|
-
};
|
|
227
|
-
isZoomable: {
|
|
228
|
-
type: BooleanConstructor;
|
|
229
|
-
default: boolean;
|
|
230
|
-
};
|
|
231
|
-
zoomableIgnorePointerEvents: {
|
|
232
|
-
type: BooleanConstructor;
|
|
233
|
-
default: boolean;
|
|
234
|
-
};
|
|
235
|
-
blurBackground: {
|
|
236
|
-
type: BooleanConstructor;
|
|
237
|
-
default: boolean;
|
|
238
|
-
};
|
|
239
|
-
isRecordings: {
|
|
240
|
-
type: BooleanConstructor;
|
|
241
|
-
default: boolean;
|
|
242
|
-
};
|
|
243
|
-
progressBarEvents: {
|
|
244
|
-
type: ArrayConstructor;
|
|
245
|
-
default: () => never[];
|
|
246
|
-
};
|
|
247
|
-
progressBarFrames: {
|
|
248
|
-
type: ArrayConstructor;
|
|
249
|
-
default: () => never[];
|
|
250
|
-
};
|
|
251
|
-
progressBarFrameIndex: {
|
|
252
|
-
type: NumberConstructor;
|
|
253
|
-
default: number;
|
|
254
|
-
};
|
|
255
|
-
progressBarPreloadedFrames: {
|
|
256
|
-
type: ArrayConstructor;
|
|
257
|
-
default: () => never[];
|
|
258
|
-
};
|
|
259
|
-
thumbnailsUrls: {
|
|
260
|
-
type: PropType<string[]>;
|
|
261
|
-
default: () => never[];
|
|
262
|
-
};
|
|
263
|
-
timezone: {
|
|
264
|
-
type: StringConstructor;
|
|
265
|
-
default: string;
|
|
266
|
-
};
|
|
267
|
-
playPauseAnimation: {
|
|
268
|
-
type: BooleanConstructor;
|
|
269
|
-
default: boolean;
|
|
270
|
-
};
|
|
271
|
-
disablePlayPauseAnimation: {
|
|
272
|
-
type: BooleanConstructor;
|
|
273
|
-
default: boolean;
|
|
274
|
-
};
|
|
275
|
-
}>>, {
|
|
276
|
-
timezone: string;
|
|
277
|
-
isPlaying: boolean;
|
|
278
|
-
isLive: boolean;
|
|
279
|
-
targetTimestamp: string | Date;
|
|
280
|
-
thumbnailsUrls: string[];
|
|
281
|
-
selectedResolution: EdgeVideoResolution | undefined;
|
|
282
|
-
isHlsLoading: boolean;
|
|
283
|
-
videoListeners: Partial<HTMLVideoElement>;
|
|
284
|
-
videoOptions: Partial<HTMLVideoElement>;
|
|
53
|
+
}, {
|
|
54
|
+
sourceItems: VideoSource[];
|
|
55
|
+
hasStartedOrFinished: boolean;
|
|
56
|
+
withControls: "" | "hide";
|
|
57
|
+
}, {
|
|
58
|
+
sources: string | VideoSource[];
|
|
59
|
+
videoListeners: {};
|
|
60
|
+
videoOptions: {};
|
|
285
61
|
isHls: boolean;
|
|
286
62
|
streamingToken: string;
|
|
287
63
|
isLiveView: boolean;
|
|
288
|
-
|
|
289
|
-
preloadedInterval: {
|
|
290
|
-
start: string;
|
|
291
|
-
end: string;
|
|
292
|
-
};
|
|
293
|
-
isZoomable: boolean;
|
|
294
|
-
zoomableIgnorePointerEvents: boolean;
|
|
295
|
-
blurBackground: boolean;
|
|
296
|
-
isRecordings: boolean;
|
|
297
|
-
progressBarEvents: unknown[];
|
|
298
|
-
progressBarFrames: unknown[];
|
|
299
|
-
progressBarFrameIndex: number;
|
|
300
|
-
progressBarPreloadedFrames: unknown[];
|
|
301
|
-
playPauseAnimation: boolean;
|
|
302
|
-
disablePlayPauseAnimation: boolean;
|
|
303
|
-
}>;
|
|
64
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
304
65
|
export default _default;
|