@evercam/ui 0.0.55-beta.21 → 0.0.55-beta.23
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/README.md +1 -0
- package/dist/attributes.json +9 -45
- package/dist/index.mjs +1503 -1163
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EToggleSwitch.vue.d.ts +34 -0
- package/dist/src/components/EVideoPlayer.vue.d.ts +170 -15
- package/dist/src/components/EZoomable.vue.d.ts +64 -0
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/index.d.ts +248 -33
- package/dist/src/types.d.ts +9 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +108 -4
- package/dist/tags.json +5 -18
- package/dist/web-types.json +30 -95
- package/package.json +1 -1
- package/dist/src/components/EReadMore.vue.d.ts +0 -24
|
@@ -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
|
|
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
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
sources:
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
64
|
-
|
|
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;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -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: {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import ECol from './components/ECol.vue';
|
|
|
7
7
|
import EVideoPlayer from './components/EVideoPlayer.vue';
|
|
8
8
|
import ETimeline from './components/ETimeline.vue';
|
|
9
9
|
import EVideoEmbed from './components/EVideoEmbed.vue';
|
|
10
|
-
import
|
|
10
|
+
import EToggleSwitch from './components/EToggleSwitch.vue';
|
|
11
|
+
import EZoomable from './components/EZoomable.vue';
|
|
11
12
|
import { VueConstructor } from "vue";
|
|
12
13
|
export declare const components: {
|
|
13
14
|
EAvatar: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
@@ -119,7 +120,72 @@ export declare const components: {
|
|
|
119
120
|
xs: string | number | boolean;
|
|
120
121
|
xl: string | number | boolean;
|
|
121
122
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
122
|
-
EVideoPlayer: import("vue
|
|
123
|
+
EVideoPlayer: import("vue").DefineComponent<{
|
|
124
|
+
targetTimestamp: {
|
|
125
|
+
type: (StringConstructor | DateConstructor)[];
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
sources: {
|
|
129
|
+
type: import("vue").PropType<string | import('./components/EVideoPlayer.vue').VideoSource[]>;
|
|
130
|
+
required: true;
|
|
131
|
+
};
|
|
132
|
+
videoListeners: {
|
|
133
|
+
type: import("vue").PropType<Partial<HTMLVideoElement>>;
|
|
134
|
+
default: () => {};
|
|
135
|
+
};
|
|
136
|
+
videoOptions: {
|
|
137
|
+
type: import("vue").PropType<Partial<HTMLVideoElement>>;
|
|
138
|
+
default: () => {};
|
|
139
|
+
};
|
|
140
|
+
isHls: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
streamingToken: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
pauseOnClick: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
isHlsLoading: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
isPlaying: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
selectedResolution: {
|
|
161
|
+
type: import("vue").PropType<import('./components/EVideoPlayer.vue').EdgeVideoResolution | undefined>;
|
|
162
|
+
default: undefined;
|
|
163
|
+
};
|
|
164
|
+
isZoomable: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
zoomableIgnorePointerEvents: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
timezone: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
playPauseAnimation: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
disablePlayPauseAnimation: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
isWebRtc: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
}, {}, {
|
|
123
189
|
playing: boolean;
|
|
124
190
|
percentagePlayed: number;
|
|
125
191
|
videoLength: string;
|
|
@@ -134,10 +200,23 @@ export declare const components: {
|
|
|
134
200
|
isLoading: boolean;
|
|
135
201
|
isError: boolean;
|
|
136
202
|
player: import("hls.js").default;
|
|
203
|
+
playbackRetries: number;
|
|
204
|
+
preloadedSeconds: number;
|
|
205
|
+
preloadedInterval: {
|
|
206
|
+
start: string;
|
|
207
|
+
end: string;
|
|
208
|
+
};
|
|
209
|
+
}, {
|
|
210
|
+
sourceItems(): import('./components/EVideoPlayer.vue').VideoSource[];
|
|
211
|
+
hasStartedOrFinished(): boolean;
|
|
212
|
+
withControls(): "" | "hide";
|
|
137
213
|
}, {
|
|
138
214
|
initHls(): void;
|
|
215
|
+
onContainerClick(): void;
|
|
139
216
|
handle404Error(): void;
|
|
217
|
+
handleHlsError(_: import("hls.js").Events.ERROR, data: import("hls.js").ErrorData): void;
|
|
140
218
|
bindEvents(): void;
|
|
219
|
+
onProgress(): void;
|
|
141
220
|
unbindEvents(): void;
|
|
142
221
|
bindVideoEvent(which: string): void;
|
|
143
222
|
initializePlayer(): void;
|
|
@@ -149,9 +228,9 @@ export declare const components: {
|
|
|
149
228
|
handleScrubbingOnMouseEnd(e: MouseEvent): void;
|
|
150
229
|
handleEnded(): void;
|
|
151
230
|
handleLoading(): void;
|
|
152
|
-
play(): void
|
|
231
|
+
play(): Promise<void>;
|
|
153
232
|
pause(): void;
|
|
154
|
-
togglePlay(): void
|
|
233
|
+
togglePlay(): Promise<void>;
|
|
155
234
|
setPlaying(state: boolean): void;
|
|
156
235
|
seekToPercentage(percentage: number): void;
|
|
157
236
|
convertTimeToDuration(seconds: number): string;
|
|
@@ -164,18 +243,88 @@ export declare const components: {
|
|
|
164
243
|
skip(duration?: number): void;
|
|
165
244
|
toggleScrubbing(e: MouseEvent): Promise<void>;
|
|
166
245
|
handleKeyDown(e: KeyboardEvent): void;
|
|
167
|
-
}, {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
sources:
|
|
173
|
-
|
|
174
|
-
|
|
246
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
247
|
+
targetTimestamp: {
|
|
248
|
+
type: (StringConstructor | DateConstructor)[];
|
|
249
|
+
default: undefined;
|
|
250
|
+
};
|
|
251
|
+
sources: {
|
|
252
|
+
type: import("vue").PropType<string | import('./components/EVideoPlayer.vue').VideoSource[]>;
|
|
253
|
+
required: true;
|
|
254
|
+
};
|
|
255
|
+
videoListeners: {
|
|
256
|
+
type: import("vue").PropType<Partial<HTMLVideoElement>>;
|
|
257
|
+
default: () => {};
|
|
258
|
+
};
|
|
259
|
+
videoOptions: {
|
|
260
|
+
type: import("vue").PropType<Partial<HTMLVideoElement>>;
|
|
261
|
+
default: () => {};
|
|
262
|
+
};
|
|
263
|
+
isHls: {
|
|
264
|
+
type: BooleanConstructor;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
streamingToken: {
|
|
268
|
+
type: StringConstructor;
|
|
269
|
+
default: string;
|
|
270
|
+
};
|
|
271
|
+
pauseOnClick: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
275
|
+
isHlsLoading: {
|
|
276
|
+
type: BooleanConstructor;
|
|
277
|
+
default: boolean;
|
|
278
|
+
};
|
|
279
|
+
isPlaying: {
|
|
280
|
+
type: BooleanConstructor;
|
|
281
|
+
default: boolean;
|
|
282
|
+
};
|
|
283
|
+
selectedResolution: {
|
|
284
|
+
type: import("vue").PropType<import('./components/EVideoPlayer.vue').EdgeVideoResolution | undefined>;
|
|
285
|
+
default: undefined;
|
|
286
|
+
};
|
|
287
|
+
isZoomable: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
zoomableIgnorePointerEvents: {
|
|
292
|
+
type: BooleanConstructor;
|
|
293
|
+
default: boolean;
|
|
294
|
+
};
|
|
295
|
+
timezone: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
default: string;
|
|
298
|
+
};
|
|
299
|
+
playPauseAnimation: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
disablePlayPauseAnimation: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
|
+
isWebRtc: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: boolean;
|
|
310
|
+
};
|
|
311
|
+
}>>, {
|
|
312
|
+
timezone: string;
|
|
313
|
+
isPlaying: boolean;
|
|
314
|
+
targetTimestamp: string | Date;
|
|
315
|
+
videoListeners: Partial<HTMLVideoElement>;
|
|
316
|
+
videoOptions: Partial<HTMLVideoElement>;
|
|
175
317
|
isHls: boolean;
|
|
176
318
|
streamingToken: string;
|
|
177
|
-
|
|
178
|
-
|
|
319
|
+
pauseOnClick: boolean;
|
|
320
|
+
isHlsLoading: boolean;
|
|
321
|
+
selectedResolution: import('./components/EVideoPlayer.vue').EdgeVideoResolution | undefined;
|
|
322
|
+
isZoomable: boolean;
|
|
323
|
+
zoomableIgnorePointerEvents: boolean;
|
|
324
|
+
playPauseAnimation: boolean;
|
|
325
|
+
disablePlayPauseAnimation: boolean;
|
|
326
|
+
isWebRtc: boolean;
|
|
327
|
+
}>;
|
|
179
328
|
ETimeline: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
180
329
|
tooltip: HTMLElement;
|
|
181
330
|
cursor: HTMLElement;
|
|
@@ -540,34 +689,100 @@ export declare const components: {
|
|
|
540
689
|
}>;
|
|
541
690
|
EHeatmapBar: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
542
691
|
EHoursHeatmap: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
543
|
-
|
|
544
|
-
|
|
692
|
+
EToggleSwitch: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
693
|
+
value: any;
|
|
545
694
|
}, {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
695
|
+
getButtonClasses(optionValue: any): {
|
|
696
|
+
"e-bg-inherit": boolean;
|
|
697
|
+
"e-bg-brand-600": boolean;
|
|
698
|
+
"e-bg-gray-600": boolean;
|
|
699
|
+
"e-bg-[#629efc] e-text-gray-900 e-font-normal": boolean;
|
|
700
|
+
};
|
|
701
|
+
handleClick(value: any): void;
|
|
550
702
|
}, {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
703
|
+
sizeClasses: {
|
|
704
|
+
container: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
705
|
+
button: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
706
|
+
text: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
707
|
+
};
|
|
708
|
+
containerClasses: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
709
|
+
textClasses: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
710
|
+
buttonBaseClasses: import('./components/EToggleSwitch.vue').CssClassMap;
|
|
557
711
|
}, {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
collapseText: string;
|
|
563
|
-
moreTextWithPlaceholder: string;
|
|
712
|
+
options: import('./components/EToggleSwitch.vue').EToggleSwitchOption[];
|
|
713
|
+
color: string;
|
|
714
|
+
size: import('./types').Size;
|
|
715
|
+
defaultValue: string | number | boolean;
|
|
564
716
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
717
|
+
EZoomable: import("vue").DefineComponent<{
|
|
718
|
+
ignorePointerEvents: {
|
|
719
|
+
type: BooleanConstructor;
|
|
720
|
+
default: boolean;
|
|
721
|
+
};
|
|
722
|
+
withOverlay: {
|
|
723
|
+
type: BooleanConstructor;
|
|
724
|
+
default: boolean;
|
|
725
|
+
};
|
|
726
|
+
}, {}, {
|
|
727
|
+
scale: number;
|
|
728
|
+
minScale: number;
|
|
729
|
+
maxScale: number;
|
|
730
|
+
top: number;
|
|
731
|
+
left: number;
|
|
732
|
+
isPanning: boolean;
|
|
733
|
+
panStart: {
|
|
734
|
+
x: number;
|
|
735
|
+
y: number;
|
|
736
|
+
};
|
|
737
|
+
isPinching: boolean;
|
|
738
|
+
previousPinchDistance: number;
|
|
739
|
+
pinchDistance: number;
|
|
740
|
+
pointers: {};
|
|
741
|
+
transform: string;
|
|
742
|
+
}, {
|
|
743
|
+
contentStyle(): {
|
|
744
|
+
transform: string;
|
|
745
|
+
};
|
|
746
|
+
isZoomed(): boolean;
|
|
747
|
+
}, {
|
|
748
|
+
updateZoomScale(): void;
|
|
749
|
+
handleZoom(e: any): void;
|
|
750
|
+
handleMouseDown(e: any): void;
|
|
751
|
+
handleMouseUp(): void;
|
|
752
|
+
handleMouseLeave(): void;
|
|
753
|
+
handleMouseMove(e: any): void;
|
|
754
|
+
applyBoundsCorrection(): void;
|
|
755
|
+
updateTransform(): void;
|
|
756
|
+
getPointersDistance(a: any, b: any): number;
|
|
757
|
+
getPointersMidPoint(a: any, b: any): {
|
|
758
|
+
x: any;
|
|
759
|
+
y: any;
|
|
760
|
+
};
|
|
761
|
+
updatePointerEvent(e: any): void;
|
|
762
|
+
clearPointerEvent(e: any): void;
|
|
763
|
+
updatePinchDistance(): void;
|
|
764
|
+
handlePointerDown(e: any): void;
|
|
765
|
+
handlePointerMove(e: any): void;
|
|
766
|
+
handlePointerUp(e: any): void;
|
|
767
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
768
|
+
ignorePointerEvents: {
|
|
769
|
+
type: BooleanConstructor;
|
|
770
|
+
default: boolean;
|
|
771
|
+
};
|
|
772
|
+
withOverlay: {
|
|
773
|
+
type: BooleanConstructor;
|
|
774
|
+
default: boolean;
|
|
775
|
+
};
|
|
776
|
+
}>>, {
|
|
777
|
+
ignorePointerEvents: boolean;
|
|
778
|
+
withOverlay: boolean;
|
|
779
|
+
}>;
|
|
565
780
|
};
|
|
566
781
|
declare const _default: {
|
|
567
782
|
install(Vue: VueConstructor): void;
|
|
568
783
|
};
|
|
569
784
|
export default _default;
|
|
570
|
-
export { EAvatar, EBadge, EIcon, ESpinner, ERow, ECol, EVideoPlayer, ETimeline, EVideoEmbed,
|
|
785
|
+
export { EAvatar, EBadge, EIcon, ESpinner, ERow, ECol, EVideoPlayer, ETimeline, EVideoEmbed, EToggleSwitch, EZoomable, };
|
|
571
786
|
export * from './constants';
|
|
572
787
|
export * from './types';
|
|
573
788
|
export * from './utils';
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BadgeSizes, AvatarSizes, IconSizes, BadgeColors } from './constants';
|
|
1
|
+
import { BadgeSizes, AvatarSizes, IconSizes, BadgeColors, ToggleSwitchSizes } from './constants';
|
|
2
2
|
export declare enum Size {
|
|
3
3
|
dot = "dot",
|
|
4
4
|
xs = "xs",
|
|
@@ -25,9 +25,17 @@ export declare enum BaseColor {
|
|
|
25
25
|
brand = "brand",
|
|
26
26
|
default = "default"
|
|
27
27
|
}
|
|
28
|
+
export declare enum ImageQuality {
|
|
29
|
+
_360 = "360",
|
|
30
|
+
_480 = "480",
|
|
31
|
+
_720 = "720",
|
|
32
|
+
_1080 = "1080",
|
|
33
|
+
auto = "auto"
|
|
34
|
+
}
|
|
28
35
|
export type TBadgeSize = (typeof BadgeSizes)[number];
|
|
29
36
|
export type TAvatarSize = (typeof AvatarSizes)[number];
|
|
30
37
|
export type TIconSize = (typeof IconSizes)[number];
|
|
38
|
+
export type TToggleSwitchSize = (typeof ToggleSwitchSizes)[number];
|
|
31
39
|
export type TBadgeColor = (typeof BadgeColors)[number];
|
|
32
40
|
export type TailwindColorClass = string;
|
|
33
41
|
export type FlexJustifyContent = "around" | "between" | "center" | "end" | "evenly" | "normal" | "start" | "stretch";
|