@evercam/ui 0.0.55-beta.32 → 0.0.55-beta.34

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,95 @@
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
+ withColoredLoader: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ loaderSize: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ withOverlayOnBackground: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ }, {}, {
9
93
  playing: boolean;
10
94
  percentagePlayed: number;
11
95
  videoLength: string;
@@ -20,10 +104,23 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
20
104
  isLoading: boolean;
21
105
  isError: boolean;
22
106
  player: Hls;
107
+ playbackRetries: number;
108
+ preloadedSeconds: number;
109
+ preloadedInterval: {
110
+ start: string;
111
+ end: string;
112
+ };
113
+ }, {
114
+ sourceItems(): VideoSource[];
115
+ hasStartedOrFinished(): boolean;
116
+ withControls(): "" | "hide";
23
117
  }, {
24
118
  initHls(): void;
119
+ onContainerClick(): void;
25
120
  handle404Error(): void;
121
+ handleHlsError(_: Events.ERROR, data: ErrorData): void;
26
122
  bindEvents(): void;
123
+ onProgress(): void;
27
124
  unbindEvents(): void;
28
125
  bindVideoEvent(which: string): void;
29
126
  initializePlayer(): void;
@@ -35,9 +132,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
35
132
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
36
133
  handleEnded(): void;
37
134
  handleLoading(): void;
38
- play(): void;
135
+ play(): Promise<void>;
39
136
  pause(): void;
40
- togglePlay(): void;
137
+ togglePlay(): Promise<void>;
41
138
  setPlaying(state: boolean): void;
42
139
  seekToPercentage(percentage: number): void;
43
140
  convertTimeToDuration(seconds: number): string;
@@ -50,16 +147,101 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
50
147
  skip(duration?: number): void;
51
148
  toggleScrubbing(e: MouseEvent): Promise<void>;
52
149
  handleKeyDown(e: KeyboardEvent): void;
53
- }, {
54
- sourceItems: VideoSource[];
55
- hasStartedOrFinished: boolean;
56
- withControls: "" | "hide";
57
- }, {
58
- sources: string | VideoSource[];
59
- videoListeners: {};
60
- videoOptions: {};
150
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
151
+ targetTimestamp: {
152
+ type: (StringConstructor | DateConstructor)[];
153
+ default: undefined;
154
+ };
155
+ sources: {
156
+ type: PropType<string | VideoSource[]>;
157
+ required: true;
158
+ };
159
+ videoListeners: {
160
+ type: PropType<Partial<HTMLVideoElement>>;
161
+ default: () => {};
162
+ };
163
+ videoOptions: {
164
+ type: PropType<Partial<HTMLVideoElement>>;
165
+ default: () => {};
166
+ };
167
+ isHls: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ streamingToken: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ pauseOnClick: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ isHlsLoading: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ isPlaying: {
184
+ type: BooleanConstructor;
185
+ default: boolean;
186
+ };
187
+ selectedResolution: {
188
+ type: PropType<EdgeVideoResolution | undefined>;
189
+ default: undefined;
190
+ };
191
+ isZoomable: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ zoomableIgnorePointerEvents: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ timezone: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ };
203
+ playPauseAnimation: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ disablePlayPauseAnimation: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ isWebRtc: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ withColoredLoader: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ loaderSize: {
220
+ type: StringConstructor;
221
+ default: string;
222
+ };
223
+ withOverlayOnBackground: {
224
+ type: BooleanConstructor;
225
+ default: boolean;
226
+ };
227
+ }>>, {
228
+ timezone: string;
229
+ isPlaying: boolean;
230
+ targetTimestamp: string | Date;
231
+ videoListeners: Partial<HTMLVideoElement>;
232
+ videoOptions: Partial<HTMLVideoElement>;
61
233
  isHls: boolean;
62
234
  streamingToken: string;
63
- isLiveView: boolean;
64
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
235
+ pauseOnClick: boolean;
236
+ isHlsLoading: boolean;
237
+ selectedResolution: EdgeVideoResolution | undefined;
238
+ isZoomable: boolean;
239
+ zoomableIgnorePointerEvents: boolean;
240
+ playPauseAnimation: boolean;
241
+ disablePlayPauseAnimation: boolean;
242
+ isWebRtc: boolean;
243
+ withColoredLoader: boolean;
244
+ loaderSize: string;
245
+ withOverlayOnBackground: boolean;
246
+ }>;
65
247
  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: {};