@evercam/ui 0.0.55-beta.12 → 0.0.55-beta.13

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.
@@ -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, TimelineForbiddenInterval, TimelineIntervalChangeTrigger, TimelineMarker, TimelinePrecision, TimelineTicksConfig, Timestamp } from '../types';
4
+ import { TimelineAxesConfig, TimelineAxis, TimelineCountEvent, TimelineEvent, TimelineEventsByType, TimelineEventsGroup, 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,7 +138,8 @@ 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
- updateForbiddenIntervals(reset?: boolean): void;
141
+ initForbiddenIntervals(): void;
142
+ updateForbiddenIntervals(): void;
142
143
  drawEventsGroups(): void;
143
144
  drawLineGraphEventsGroups(): void;
144
145
  drawLineGraph({ events, gElement, color, type, }: {
@@ -153,13 +154,14 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
153
154
  color: string;
154
155
  type: string;
155
156
  }): void;
156
- drawSingleBarEventsGroup({ type, eventsGroup, milestone, dots, dotsSize, bottom, }: {
157
+ drawSingleBarEventsGroup({ type, eventsGroup, index, milestone, height, dots, dotsSize, }: {
157
158
  type: string;
158
159
  eventsGroup: TimelineEventsGroup;
160
+ index?: number | undefined;
159
161
  milestone?: boolean | undefined;
162
+ height?: number | undefined;
160
163
  dots?: boolean | undefined;
161
164
  dotsSize?: number | undefined;
162
- bottom?: boolean | undefined;
163
165
  }): void;
164
166
  drawBarEventsGroups(): void;
165
167
  drawMilestonesPlaceholder(): void;
@@ -169,8 +171,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
169
171
  border: string;
170
172
  };
171
173
  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, height, barBorderRadius, }: {
188
+ drawBars({ events, gElement, yPosition, color, type, dots, dotsSize, }: {
189
189
  events: TimelineEvent[];
190
190
  gElement: d3.Selection<SVGGElement, any, any, any>;
191
191
  yPosition: number;
@@ -193,8 +193,6 @@ 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;
198
196
  }): void;
199
197
  drawBarsChart({ events, gElement, color, yOffset, type, index, }: {
200
198
  events: TimelineEvent[];
@@ -248,7 +246,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
248
246
  getSortedEvents(events: TimelineEvent[]): TimelineEvent[];
249
247
  }, {
250
248
  combinedBarsHeight: number;
251
- combinedBottomBarsHeight: number;
252
249
  combinedMilestonesHeight: number;
253
250
  milestonesYOffset: number;
254
251
  chartsYOffset: number;
@@ -295,11 +292,12 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
295
292
  barYPadding: number;
296
293
  barXPadding: number;
297
294
  chartMinHeight: number;
298
- chartMinLabelHeight: number;
299
295
  minZoom: number;
300
296
  maxZoom: number;
301
297
  minDate: string;
302
298
  maxDate: string;
299
+ minVisibleDate: string;
300
+ maxVisibleDate: string;
303
301
  cursorTimestamp: string | undefined;
304
302
  selectedClass: string | undefined;
305
303
  panOnDateClick: boolean;
@@ -313,7 +311,5 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
313
311
  zoomToBoundariesTransitionDuration: number;
314
312
  milestoneBulletSize: number;
315
313
  milestonesFirst: boolean;
316
- forbiddenIntervals: TimelineForbiddenInterval[];
317
- forbiddenIntervalColor: string;
318
314
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
319
315
  export default _default;
@@ -0,0 +1,49 @@
1
+ import { PropType } from "vue";
2
+ export interface EToggleSwitchOptions {
3
+ title: string;
4
+ value: any;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<{
7
+ options: {
8
+ type: PropType<EToggleSwitchOptions[]>;
9
+ required: true;
10
+ };
11
+ color: {
12
+ type: PropType<"primary" | "brand" | "gray">;
13
+ default: string;
14
+ };
15
+ size: {
16
+ type: PropType<"lg" | "md" | "sm">;
17
+ default: string;
18
+ };
19
+ defaultValue: {
20
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
21
+ default: null;
22
+ };
23
+ }, {}, {
24
+ value: any;
25
+ }, {}, {
26
+ handleClick(value: any): void;
27
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
28
+ options: {
29
+ type: PropType<EToggleSwitchOptions[]>;
30
+ required: true;
31
+ };
32
+ color: {
33
+ type: PropType<"primary" | "brand" | "gray">;
34
+ default: string;
35
+ };
36
+ size: {
37
+ type: PropType<"lg" | "md" | "sm">;
38
+ default: string;
39
+ };
40
+ defaultValue: {
41
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
42
+ default: null;
43
+ };
44
+ }>>, {
45
+ color: "primary" | "brand" | "gray";
46
+ size: "lg" | "md" | "sm";
47
+ defaultValue: string | number | boolean;
48
+ }>;
49
+ export default _default;
@@ -1,11 +1,126 @@
1
- import Hls from "hls.js";
2
- import Vue from "vue";
1
+ import Hls, { ErrorData, Events } from "hls.js";
2
+ import { PropType } 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
- 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>>, {
8
+ export declare enum EdgeVideoResolution {
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
+ isWebRtc: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ }, {}, {
9
124
  playing: boolean;
10
125
  percentagePlayed: number;
11
126
  videoLength: string;
@@ -20,9 +135,16 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
20
135
  isLoading: boolean;
21
136
  isError: boolean;
22
137
  player: Hls;
138
+ playbackRetries: number;
139
+ }, {
140
+ sourceItems(): VideoSource[];
141
+ hasStartedOrFinished(): boolean;
142
+ withControls(): "" | "hide";
23
143
  }, {
24
144
  initHls(): void;
145
+ onContainerClick(): void;
25
146
  handle404Error(): void;
147
+ handleHlsError(_: Events.ERROR, data: ErrorData): void;
26
148
  bindEvents(): void;
27
149
  unbindEvents(): void;
28
150
  bindVideoEvent(which: string): void;
@@ -35,9 +157,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
35
157
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
36
158
  handleEnded(): void;
37
159
  handleLoading(): void;
38
- play(): void;
160
+ play(): Promise<void>;
39
161
  pause(): void;
40
- togglePlay(): void;
162
+ togglePlay(): Promise<void>;
41
163
  setPlaying(state: boolean): void;
42
164
  seekToPercentage(percentage: number): void;
43
165
  convertTimeToDuration(seconds: number): string;
@@ -50,16 +172,142 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
50
172
  skip(duration?: number): void;
51
173
  toggleScrubbing(e: MouseEvent): Promise<void>;
52
174
  handleKeyDown(e: KeyboardEvent): void;
53
- }, {
54
- sourceItems: VideoSource[];
55
- hasStartedOrFinished: boolean;
56
- withControls: "" | "hide";
57
- }, {
58
- sources: string | VideoSource[];
59
- videoListeners: {};
60
- videoOptions: {};
175
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
176
+ targetTimestamp: {
177
+ type: (StringConstructor | DateConstructor)[];
178
+ default: undefined;
179
+ };
180
+ sources: {
181
+ type: PropType<string | VideoSource[]>;
182
+ required: true;
183
+ };
184
+ videoListeners: {
185
+ type: PropType<Partial<HTMLVideoElement>>;
186
+ default: () => {};
187
+ };
188
+ videoOptions: {
189
+ type: PropType<Partial<HTMLVideoElement>>;
190
+ default: () => {};
191
+ };
192
+ isHls: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ streamingToken: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ isLiveView: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ pauseOnClick: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ isHlsLoading: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ isPlaying: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ preloadedInterval: {
217
+ type: PropType<{
218
+ start: string;
219
+ end: string;
220
+ }>;
221
+ default: () => {};
222
+ };
223
+ selectedResolution: {
224
+ type: PropType<EdgeVideoResolution | undefined>;
225
+ default: undefined;
226
+ };
227
+ isLive: {
228
+ type: BooleanConstructor;
229
+ default: boolean;
230
+ };
231
+ isZoomable: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ zoomableIgnorePointerEvents: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ blurBackground: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ isRecordings: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
247
+ progressBarEvents: {
248
+ type: ArrayConstructor;
249
+ default: () => never[];
250
+ };
251
+ progressBarFrames: {
252
+ type: ArrayConstructor;
253
+ default: () => never[];
254
+ };
255
+ progressBarFrameIndex: {
256
+ type: NumberConstructor;
257
+ default: number;
258
+ };
259
+ progressBarPreloadedFrames: {
260
+ type: ArrayConstructor;
261
+ default: () => never[];
262
+ };
263
+ thumbnailsUrls: {
264
+ type: PropType<string[]>;
265
+ default: () => never[];
266
+ };
267
+ timezone: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ playPauseAnimation: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ disablePlayPauseAnimation: {
276
+ type: BooleanConstructor;
277
+ default: boolean;
278
+ };
279
+ isWebRtc: {
280
+ type: BooleanConstructor;
281
+ default: boolean;
282
+ };
283
+ }>>, {
284
+ timezone: string;
285
+ isPlaying: boolean;
286
+ isLive: boolean;
287
+ targetTimestamp: string | Date;
288
+ thumbnailsUrls: string[];
289
+ selectedResolution: EdgeVideoResolution | undefined;
290
+ isHlsLoading: boolean;
291
+ videoListeners: Partial<HTMLVideoElement>;
292
+ videoOptions: Partial<HTMLVideoElement>;
61
293
  isHls: boolean;
62
294
  streamingToken: string;
63
295
  isLiveView: boolean;
64
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
296
+ pauseOnClick: boolean;
297
+ preloadedInterval: {
298
+ start: string;
299
+ end: string;
300
+ };
301
+ isZoomable: boolean;
302
+ zoomableIgnorePointerEvents: boolean;
303
+ blurBackground: boolean;
304
+ isRecordings: boolean;
305
+ progressBarEvents: unknown[];
306
+ progressBarFrames: unknown[];
307
+ progressBarFrameIndex: number;
308
+ progressBarPreloadedFrames: unknown[];
309
+ playPauseAnimation: boolean;
310
+ disablePlayPauseAnimation: boolean;
311
+ isWebRtc: boolean;
312
+ }>;
65
313
  export default _default;
@@ -0,0 +1,193 @@
1
+ import { PropType } from "vue";
2
+ import { ImageQuality } from '../types';
3
+ import { EToggleSwitchOptions } from '../components/EToggleSwitch.vue';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ frames: {
6
+ type: ArrayConstructor;
7
+ default: () => never[];
8
+ };
9
+ frameIndex: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ isLastFrame: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ timePerFrame: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ isFullscreen: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ isPlaying: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ infoText: {
30
+ type: ObjectConstructor;
31
+ default: () => {
32
+ index: string;
33
+ label: string;
34
+ };
35
+ };
36
+ hasLive: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ isLive: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ disablePlayButton: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ isRecordingWidget: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ initialSnapshotQuality: {
53
+ type: (StringConstructor | NumberConstructor)[];
54
+ default: ImageQuality;
55
+ };
56
+ showSnapshotQuality: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ isVideo: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ hasEdgeVideo: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ size: {
69
+ type: PropType<"lg" | "md" | "sm">;
70
+ default: string;
71
+ };
72
+ allowedToChangeSpeed: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ allowedToChangeQuality: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ }, {}, {
81
+ recordingType: string;
82
+ allowedSpeeds: number[];
83
+ selectedSpeed: number;
84
+ allowedQualities: string[];
85
+ selectedQuality: string;
86
+ }, {
87
+ isEdgeVideoEnabled(): boolean;
88
+ switchOptions(): EToggleSwitchOptions[];
89
+ }, {
90
+ toggleLive(): void;
91
+ initPlayerSettings(): void;
92
+ updateFrameIndex(amount: number): void;
93
+ updateTimePerFrame(): void;
94
+ updateQuality(): void;
95
+ toggleFullscreen(): void;
96
+ togglePlaying(): void;
97
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
98
+ frames: {
99
+ type: ArrayConstructor;
100
+ default: () => never[];
101
+ };
102
+ frameIndex: {
103
+ type: NumberConstructor;
104
+ default: number;
105
+ };
106
+ isLastFrame: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ timePerFrame: {
111
+ type: NumberConstructor;
112
+ default: number;
113
+ };
114
+ isFullscreen: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ isPlaying: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ infoText: {
123
+ type: ObjectConstructor;
124
+ default: () => {
125
+ index: string;
126
+ label: string;
127
+ };
128
+ };
129
+ hasLive: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ isLive: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ disablePlayButton: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ isRecordingWidget: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ initialSnapshotQuality: {
146
+ type: (StringConstructor | NumberConstructor)[];
147
+ default: ImageQuality;
148
+ };
149
+ showSnapshotQuality: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ isVideo: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ hasEdgeVideo: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ size: {
162
+ type: PropType<"lg" | "md" | "sm">;
163
+ default: string;
164
+ };
165
+ allowedToChangeSpeed: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ allowedToChangeQuality: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ }>>, {
174
+ size: "lg" | "md" | "sm";
175
+ isVideo: boolean;
176
+ frames: unknown[];
177
+ frameIndex: number;
178
+ isLastFrame: boolean;
179
+ timePerFrame: number;
180
+ isFullscreen: boolean;
181
+ isPlaying: boolean;
182
+ infoText: Record<string, any>;
183
+ hasLive: boolean;
184
+ isLive: boolean;
185
+ disablePlayButton: boolean;
186
+ isRecordingWidget: boolean;
187
+ initialSnapshotQuality: string | number;
188
+ showSnapshotQuality: boolean;
189
+ hasEdgeVideo: boolean;
190
+ allowedToChangeSpeed: boolean;
191
+ allowedToChangeQuality: boolean;
192
+ }>;
193
+ export default _default;