@evercam/ui 0.0.55-beta.24 → 0.0.55-beta.25

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.
@@ -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,91 @@
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
+ loaderColor: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ loaderSize: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ }, {}, {
9
89
  playing: boolean;
10
90
  percentagePlayed: number;
11
91
  videoLength: string;
@@ -20,10 +100,23 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
20
100
  isLoading: boolean;
21
101
  isError: boolean;
22
102
  player: Hls;
103
+ playbackRetries: number;
104
+ preloadedSeconds: number;
105
+ preloadedInterval: {
106
+ start: string;
107
+ end: string;
108
+ };
109
+ }, {
110
+ sourceItems(): VideoSource[];
111
+ hasStartedOrFinished(): boolean;
112
+ withControls(): "" | "hide";
23
113
  }, {
24
114
  initHls(): void;
115
+ onContainerClick(): void;
25
116
  handle404Error(): void;
117
+ handleHlsError(_: Events.ERROR, data: ErrorData): void;
26
118
  bindEvents(): void;
119
+ onProgress(): void;
27
120
  unbindEvents(): void;
28
121
  bindVideoEvent(which: string): void;
29
122
  initializePlayer(): void;
@@ -35,9 +128,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
35
128
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
36
129
  handleEnded(): void;
37
130
  handleLoading(): void;
38
- play(): void;
131
+ play(): Promise<void>;
39
132
  pause(): void;
40
- togglePlay(): void;
133
+ togglePlay(): Promise<void>;
41
134
  setPlaying(state: boolean): void;
42
135
  seekToPercentage(percentage: number): void;
43
136
  convertTimeToDuration(seconds: number): string;
@@ -50,16 +143,96 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
50
143
  skip(duration?: number): void;
51
144
  toggleScrubbing(e: MouseEvent): Promise<void>;
52
145
  handleKeyDown(e: KeyboardEvent): void;
53
- }, {
54
- sourceItems: VideoSource[];
55
- hasStartedOrFinished: boolean;
56
- withControls: "" | "hide";
57
- }, {
58
- sources: string | VideoSource[];
59
- videoListeners: {};
60
- videoOptions: {};
146
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
147
+ targetTimestamp: {
148
+ type: (StringConstructor | DateConstructor)[];
149
+ default: undefined;
150
+ };
151
+ sources: {
152
+ type: PropType<string | VideoSource[]>;
153
+ required: true;
154
+ };
155
+ videoListeners: {
156
+ type: PropType<Partial<HTMLVideoElement>>;
157
+ default: () => {};
158
+ };
159
+ videoOptions: {
160
+ type: PropType<Partial<HTMLVideoElement>>;
161
+ default: () => {};
162
+ };
163
+ isHls: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ streamingToken: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ pauseOnClick: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ isHlsLoading: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ isPlaying: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ selectedResolution: {
184
+ type: PropType<EdgeVideoResolution | undefined>;
185
+ default: undefined;
186
+ };
187
+ isZoomable: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ zoomableIgnorePointerEvents: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ timezone: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ playPauseAnimation: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ disablePlayPauseAnimation: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ isWebRtc: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ loaderColor: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ loaderSize: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ }>>, {
220
+ timezone: string;
221
+ isPlaying: boolean;
222
+ targetTimestamp: string | Date;
223
+ videoListeners: Partial<HTMLVideoElement>;
224
+ videoOptions: Partial<HTMLVideoElement>;
61
225
  isHls: boolean;
62
226
  streamingToken: string;
63
- isLiveView: boolean;
64
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
227
+ pauseOnClick: boolean;
228
+ isHlsLoading: boolean;
229
+ selectedResolution: EdgeVideoResolution | undefined;
230
+ isZoomable: boolean;
231
+ zoomableIgnorePointerEvents: boolean;
232
+ playPauseAnimation: boolean;
233
+ disablePlayPauseAnimation: boolean;
234
+ isWebRtc: boolean;
235
+ loaderColor: string;
236
+ loaderSize: string;
237
+ }>;
65
238
  export default _default;
@@ -0,0 +1,73 @@
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
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }, {}, {
15
+ scale: number;
16
+ minScale: number;
17
+ maxScale: number;
18
+ top: number;
19
+ left: number;
20
+ isPanning: boolean;
21
+ panStart: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ isPinching: boolean;
26
+ previousPinchDistance: number;
27
+ pinchDistance: number;
28
+ pointers: {};
29
+ transform: string;
30
+ }, {
31
+ contentStyle(): {
32
+ transform: string;
33
+ };
34
+ isZoomed(): boolean;
35
+ }, {
36
+ updateZoomScale(): void;
37
+ handleZoom(e: any): void;
38
+ handleMouseDown(e: any): void;
39
+ handleMouseUp(): void;
40
+ handleMouseLeave(): void;
41
+ handleMouseMove(e: any): void;
42
+ applyBoundsCorrection(): void;
43
+ updateTransform(): void;
44
+ getPointersDistance(a: any, b: any): number;
45
+ getPointersMidPoint(a: any, b: any): {
46
+ x: any;
47
+ y: any;
48
+ };
49
+ updatePointerEvent(e: any): void;
50
+ clearPointerEvent(e: any): void;
51
+ updatePinchDistance(): void;
52
+ handlePointerDown(e: any): void;
53
+ handlePointerMove(e: any): void;
54
+ handlePointerUp(e: any): void;
55
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
56
+ ignorePointerEvents: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ withOverlay: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ disabled: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>>, {
69
+ ignorePointerEvents: boolean;
70
+ withOverlay: boolean;
71
+ disabled: boolean;
72
+ }>;
73
+ 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: {};