@evercam/ui 0.0.55-beta.21 → 0.0.55-beta.22

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, TimelineInterval, 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;
@@ -61,8 +61,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
61
61
  selectedMilestoneId: any;
62
62
  isInitialized: boolean;
63
63
  lastValidTransform: d3.ZoomTransform;
64
- lastPanTransform: d3.ZoomTransform;
65
- isZoomingInterval: boolean;
66
64
  }, {
67
65
  updateTimeline(): void;
68
66
  initTimeline(startDate?: string, endDate?: string): void;
@@ -77,8 +75,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
77
75
  updateYScaleDomain(): void;
78
76
  initZoomBehavior(): void;
79
77
  zoomToFitMarkers(): void;
80
- zoomToTargetInterval(start?: string | number, end?: string | number): void;
81
- translateIntervalIntoView(minTimestamp: number, maxTimestamp: number, scaleFactor: number): void;
78
+ translateMarkersIntoView(minTimestamp: number, maxTimestamp: number, scaleFactor: number): void;
82
79
  initSelectedTimestampCursor(): void;
83
80
  updateMarkers(): void;
84
81
  updateAndRedrawTimeline(): void;
@@ -141,7 +138,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
141
138
  initCurtains(): void;
142
139
  createCurtains(): void;
143
140
  updateCurtains(): void;
144
- updateForbiddenIntervals(reset?: boolean): void;
141
+ initForbiddenIntervals(): void;
142
+ updateForbiddenIntervals(): void;
145
143
  drawEventsGroups(): void;
146
144
  drawLineGraphEventsGroups(): void;
147
145
  drawLineGraph({ events, gElement, color, type, }: {
@@ -156,13 +154,14 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
156
154
  color: string;
157
155
  type: string;
158
156
  }): void;
159
- drawSingleBarEventsGroup({ type, eventsGroup, milestone, dots, dotsSize, bottom, }: {
157
+ drawSingleBarEventsGroup({ type, eventsGroup, index, milestone, height, dots, dotsSize, }: {
160
158
  type: string;
161
159
  eventsGroup: TimelineEventsGroup;
160
+ index?: number | undefined;
162
161
  milestone?: boolean | undefined;
162
+ height?: number | undefined;
163
163
  dots?: boolean | undefined;
164
164
  dotsSize?: number | undefined;
165
- bottom?: boolean | undefined;
166
165
  }): void;
167
166
  drawBarEventsGroups(): void;
168
167
  drawMilestonesPlaceholder(): void;
@@ -172,8 +171,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
172
171
  border: string;
173
172
  };
174
173
  getMilestoneGroupYPosition(groupName: string): number;
175
- getBarGroupYPosition(groupName: string, bottom?: boolean): number;
176
- getBarGroupHeight(eventsGroup: TimelineEventsGroup): number;
177
174
  updateMilestonesPositions(): void;
178
175
  drawBarChartEventsGroups(): void;
179
176
  drawProgressIndicator({ yPosition, type, isLoading, }: {
@@ -188,7 +185,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
188
185
  color: string;
189
186
  height?: number | undefined;
190
187
  }): void;
191
- drawBars({ events, gElement, yPosition, color, type, dots, dotsSize, height, barBorderRadius, }: {
188
+ drawBars({ events, gElement, yPosition, color, type, dots, dotsSize, }: {
192
189
  events: TimelineEvent[];
193
190
  gElement: d3.Selection<SVGGElement, any, any, any>;
194
191
  yPosition: number;
@@ -196,8 +193,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
196
193
  type: string;
197
194
  dots?: boolean | undefined;
198
195
  dotsSize?: number | undefined;
199
- height?: number | undefined;
200
- barBorderRadius?: number | undefined;
201
196
  }): void;
202
197
  drawBarsChart({ events, gElement, color, yOffset, type, index, }: {
203
198
  events: TimelineEvent[];
@@ -251,7 +246,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
251
246
  getSortedEvents(events: TimelineEvent[]): TimelineEvent[];
252
247
  }, {
253
248
  combinedBarsHeight: number;
254
- combinedBottomBarsHeight: number;
255
249
  combinedMilestonesHeight: number;
256
250
  milestonesYOffset: number;
257
251
  chartsYOffset: number;
@@ -298,11 +292,12 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
298
292
  barYPadding: number;
299
293
  barXPadding: number;
300
294
  chartMinHeight: number;
301
- chartMinLabelHeight: number;
302
295
  minZoom: number;
303
296
  maxZoom: number;
304
297
  minDate: string;
305
298
  maxDate: string;
299
+ minVisibleDate: string;
300
+ maxVisibleDate: string;
306
301
  cursorTimestamp: string | undefined;
307
302
  selectedClass: string | undefined;
308
303
  panOnDateClick: boolean;
@@ -312,13 +307,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
312
307
  markers: TimelineMarker[];
313
308
  stickyMarkers: boolean;
314
309
  fitMarkersOnChange: boolean;
315
- zoomToIntervalTransitionDuration: number;
310
+ fitMarkersTransitionDuration: number;
316
311
  zoomToBoundariesTransitionDuration: number;
317
312
  milestoneBulletSize: number;
318
313
  milestonesFirst: boolean;
319
- forbiddenIntervals: TimelineInterval[];
320
- forbiddenIntervalColor: string;
321
- focusedInterval: TimelineInterval | undefined;
322
- locked: boolean;
323
314
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
324
315
  export default _default;
@@ -0,0 +1,34 @@
1
+ import Vue from "vue";
2
+ import { Size } from '../types';
3
+ export interface EToggleSwitchOption {
4
+ title: string;
5
+ value: any;
6
+ }
7
+ export type CssClassMap = Record<string, boolean>;
8
+ type SizeClasses = {
9
+ container: CssClassMap;
10
+ button: CssClassMap;
11
+ text: CssClassMap;
12
+ };
13
+ 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>>, {
14
+ value: any;
15
+ }, {
16
+ getButtonClasses(optionValue: any): {
17
+ "e-bg-inherit": boolean;
18
+ "e-bg-brand-600": boolean;
19
+ "e-bg-gray-600": boolean;
20
+ "e-bg-[#629efc] e-text-gray-900 e-font-normal": boolean;
21
+ };
22
+ handleClick(value: any): void;
23
+ }, {
24
+ sizeClasses: SizeClasses;
25
+ containerClasses: CssClassMap;
26
+ textClasses: CssClassMap;
27
+ buttonBaseClasses: CssClassMap;
28
+ }, {
29
+ options: EToggleSwitchOption[];
30
+ color: string;
31
+ size: Size;
32
+ defaultValue: string | number | boolean;
33
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
34
+ export default _default;
@@ -1,11 +1,83 @@
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
+ pauseOnClick: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ isHlsLoading: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ isPlaying: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ selectedResolution: {
53
+ type: PropType<EdgeVideoResolution | undefined>;
54
+ default: undefined;
55
+ };
56
+ isZoomable: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ zoomableIgnorePointerEvents: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ timezone: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ playPauseAnimation: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ disablePlayPauseAnimation: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ isWebRtc: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ }, {}, {
9
81
  playing: boolean;
10
82
  percentagePlayed: number;
11
83
  videoLength: string;
@@ -20,10 +92,23 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
20
92
  isLoading: boolean;
21
93
  isError: boolean;
22
94
  player: Hls;
95
+ playbackRetries: number;
96
+ preloadedSeconds: number;
97
+ preloadedInterval: {
98
+ start: string;
99
+ end: string;
100
+ };
101
+ }, {
102
+ sourceItems(): VideoSource[];
103
+ hasStartedOrFinished(): boolean;
104
+ withControls(): "" | "hide";
23
105
  }, {
24
106
  initHls(): void;
107
+ onContainerClick(): void;
25
108
  handle404Error(): void;
109
+ handleHlsError(_: Events.ERROR, data: ErrorData): void;
26
110
  bindEvents(): void;
111
+ onProgress(): void;
27
112
  unbindEvents(): void;
28
113
  bindVideoEvent(which: string): void;
29
114
  initializePlayer(): void;
@@ -35,9 +120,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
35
120
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
36
121
  handleEnded(): void;
37
122
  handleLoading(): void;
38
- play(): void;
123
+ play(): Promise<void>;
39
124
  pause(): void;
40
- togglePlay(): void;
125
+ togglePlay(): Promise<void>;
41
126
  setPlaying(state: boolean): void;
42
127
  seekToPercentage(percentage: number): void;
43
128
  convertTimeToDuration(seconds: number): string;
@@ -50,16 +135,86 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
50
135
  skip(duration?: number): void;
51
136
  toggleScrubbing(e: MouseEvent): Promise<void>;
52
137
  handleKeyDown(e: KeyboardEvent): void;
53
- }, {
54
- sourceItems: VideoSource[];
55
- hasStartedOrFinished: boolean;
56
- withControls: "" | "hide";
57
- }, {
58
- sources: string | VideoSource[];
59
- videoListeners: {};
60
- videoOptions: {};
138
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
139
+ targetTimestamp: {
140
+ type: (StringConstructor | DateConstructor)[];
141
+ default: undefined;
142
+ };
143
+ sources: {
144
+ type: PropType<string | VideoSource[]>;
145
+ required: true;
146
+ };
147
+ videoListeners: {
148
+ type: PropType<Partial<HTMLVideoElement>>;
149
+ default: () => {};
150
+ };
151
+ videoOptions: {
152
+ type: PropType<Partial<HTMLVideoElement>>;
153
+ default: () => {};
154
+ };
155
+ isHls: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ streamingToken: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ pauseOnClick: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ isHlsLoading: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ isPlaying: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ selectedResolution: {
176
+ type: PropType<EdgeVideoResolution | undefined>;
177
+ default: undefined;
178
+ };
179
+ isZoomable: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ zoomableIgnorePointerEvents: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ timezone: {
188
+ type: StringConstructor;
189
+ default: string;
190
+ };
191
+ playPauseAnimation: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ disablePlayPauseAnimation: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ isWebRtc: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ }>>, {
204
+ timezone: string;
205
+ isPlaying: boolean;
206
+ targetTimestamp: string | Date;
207
+ videoListeners: Partial<HTMLVideoElement>;
208
+ videoOptions: Partial<HTMLVideoElement>;
61
209
  isHls: boolean;
62
210
  streamingToken: string;
63
- isLiveView: boolean;
64
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
211
+ pauseOnClick: boolean;
212
+ isHlsLoading: boolean;
213
+ selectedResolution: EdgeVideoResolution | undefined;
214
+ isZoomable: boolean;
215
+ zoomableIgnorePointerEvents: boolean;
216
+ playPauseAnimation: boolean;
217
+ disablePlayPauseAnimation: boolean;
218
+ isWebRtc: boolean;
219
+ }>;
65
220
  export default _default;
@@ -0,0 +1,64 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ ignorePointerEvents: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ withOverlay: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, {}, {
11
+ scale: number;
12
+ minScale: number;
13
+ maxScale: number;
14
+ top: number;
15
+ left: number;
16
+ isPanning: boolean;
17
+ panStart: {
18
+ x: number;
19
+ y: number;
20
+ };
21
+ isPinching: boolean;
22
+ previousPinchDistance: number;
23
+ pinchDistance: number;
24
+ pointers: {};
25
+ transform: string;
26
+ }, {
27
+ contentStyle(): {
28
+ transform: string;
29
+ };
30
+ isZoomed(): boolean;
31
+ }, {
32
+ updateZoomScale(): void;
33
+ handleZoom(e: any): void;
34
+ handleMouseDown(e: any): void;
35
+ handleMouseUp(): void;
36
+ handleMouseLeave(): void;
37
+ handleMouseMove(e: any): void;
38
+ applyBoundsCorrection(): void;
39
+ updateTransform(): void;
40
+ getPointersDistance(a: any, b: any): number;
41
+ getPointersMidPoint(a: any, b: any): {
42
+ x: any;
43
+ y: any;
44
+ };
45
+ updatePointerEvent(e: any): void;
46
+ clearPointerEvent(e: any): void;
47
+ updatePinchDistance(): void;
48
+ handlePointerDown(e: any): void;
49
+ handlePointerMove(e: any): void;
50
+ handlePointerUp(e: any): void;
51
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
52
+ ignorePointerEvents: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ withOverlay: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ }>>, {
61
+ ignorePointerEvents: boolean;
62
+ withOverlay: boolean;
63
+ }>;
64
+ export default _default;
@@ -5,6 +5,7 @@ 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.md, Size.lg];
8
9
  export declare const BadgeColors: readonly [BaseColor.warning, BaseColor.error, BaseColor.info, BaseColor.success, BaseColor.primary, BaseColor.default];
9
10
  export declare const EVENTS: string[];
10
11
  declare const _default: {};