@evercam/ui 0.0.58-beta.2 → 0.0.58-beta.5

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.
Files changed (56) hide show
  1. package/README.md +0 -2
  2. package/dist/attributes.json +153 -2
  3. package/dist/index.mjs +3026 -20596
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/index.umd.js +2 -221
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/src/components/EGlobalSearch.vue.d.ts +31 -0
  8. package/dist/src/components/EHeatmapBar.vue.d.ts +19 -1
  9. package/dist/src/components/EHoursHeatmap.vue.d.ts +14 -1
  10. package/dist/src/components/EReadMore.vue.d.ts +1 -1
  11. package/dist/src/components/EVideoEmbed.vue.d.ts +10 -44
  12. package/dist/src/components/EVideoPlayer.vue.d.ts +15 -159
  13. package/dist/src/components/EZoomable.vue.d.ts +20 -47
  14. package/dist/src/constants.d.ts +1 -0
  15. package/dist/src/index.d.ts +102 -256
  16. package/dist/src/mixins/event-listeners.d.ts +7 -0
  17. package/dist/src/mixins/inactivity-listener.d.ts +7 -2
  18. package/dist/src/mixins/timeouts.d.ts +7 -1
  19. package/dist/src/types.d.ts +28 -1
  20. package/dist/src/utils.d.ts +3 -2
  21. package/dist/style.css +1 -1
  22. package/dist/styles.css +90 -3
  23. package/dist/tags.json +49 -2
  24. package/dist/web-types.json +307 -10
  25. package/package.json +77 -78
  26. package/dist/src/components/ESvgIcon.vue.d.ts +0 -7
  27. package/dist/src/components/svg-icons/BaseIcon.vue.d.ts +0 -10
  28. package/dist/src/components/svg-icons/Bim.vue.d.ts +0 -5
  29. package/dist/src/components/svg-icons/Blur.vue.d.ts +0 -5
  30. package/dist/src/components/svg-icons/Compare.vue.d.ts +0 -5
  31. package/dist/src/components/svg-icons/ConcretePump.vue.d.ts +0 -3
  32. package/dist/src/components/svg-icons/DroneView.vue.d.ts +0 -3
  33. package/dist/src/components/svg-icons/Dumper.vue.d.ts +0 -3
  34. package/dist/src/components/svg-icons/Evercam.vue.d.ts +0 -5
  35. package/dist/src/components/svg-icons/EvercamLogo.vue.d.ts +0 -3
  36. package/dist/src/components/svg-icons/Excavator.vue.d.ts +0 -3
  37. package/dist/src/components/svg-icons/FlatbedSemiTrailer.vue.d.ts +0 -3
  38. package/dist/src/components/svg-icons/FreeDrawing.vue.d.ts +0 -5
  39. package/dist/src/components/svg-icons/IModel.vue.d.ts +0 -3
  40. package/dist/src/components/svg-icons/Inspection.vue.d.ts +0 -5
  41. package/dist/src/components/svg-icons/Loader.vue.d.ts +0 -3
  42. package/dist/src/components/svg-icons/MiniModel.vue.d.ts +0 -3
  43. package/dist/src/components/svg-icons/OtherTruck.vue.d.ts +0 -3
  44. package/dist/src/components/svg-icons/RoadVehicle.vue.d.ts +0 -3
  45. package/dist/src/components/svg-icons/Roller.vue.d.ts +0 -3
  46. package/dist/src/components/svg-icons/SemiTrailer.vue.d.ts +0 -3
  47. package/dist/src/components/svg-icons/SkidSteerLoader.vue.d.ts +0 -3
  48. package/dist/src/components/svg-icons/SmallTruck.vue.d.ts +0 -3
  49. package/dist/src/components/svg-icons/TankTruck.vue.d.ts +0 -3
  50. package/dist/src/components/svg-icons/The360.vue.d.ts +0 -3
  51. package/dist/src/components/svg-icons/TippingTruck.vue.d.ts +0 -3
  52. package/dist/src/components/svg-icons/TruckHead.vue.d.ts +0 -3
  53. package/dist/src/components/svg-icons/TruckMixer.vue.d.ts +0 -3
  54. package/dist/src/components/svg-icons/Worker.vue.d.ts +0 -3
  55. package/dist/src/components/svg-icons/ZohoCrm.vue.d.ts +0 -5
  56. package/dist/src/components/svg-icons/index.d.ts +0 -19
@@ -0,0 +1,31 @@
1
+ import Vue from "vue";
2
+ import { GlobalSearchResultInput, GlobalSearchResult, GlobalSearchMatch } from '../types';
3
+ 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>>, {
4
+ search: string;
5
+ isSearching: boolean;
6
+ }, {
7
+ onInput(event: InputEvent): void;
8
+ searchObjectsByQuery(objects: Array<GlobalSearchResultInput>, query: string): Array<GlobalSearchResult>;
9
+ findMatchesInObject(obj: GlobalSearchResultInput, query: string, path: string[]): GlobalSearchMatch[];
10
+ matchesQuery(value: any, query: string): boolean;
11
+ isValidDate(date: string | Date): boolean;
12
+ formattedTimestamp(timestamp: string): string;
13
+ onKeyHandler(event: unknown): void;
14
+ }, {
15
+ inputClasses: Record<string, boolean>;
16
+ }, {
17
+ dark: boolean;
18
+ items: GlobalSearchResultInput;
19
+ timezone: string;
20
+ convertedDateFormat: string;
21
+ currentDateFormat: string;
22
+ isFixedPosition: boolean;
23
+ isHidden: boolean;
24
+ deep: boolean;
25
+ }, {}, 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>>, {
26
+ eventListeners: import("../mixins/event-listeners").IEventListener[];
27
+ }, {
28
+ $addEventListener(event: string, cb: () => void, element?: Window & typeof globalThis): void;
29
+ $removeEventListeners(): void;
30
+ }, unknown, Record<never, any>, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>, import("vue").ComponentOptionsMixin>;
31
+ export default _default;
@@ -1,3 +1,21 @@
1
1
  import Vue from "vue";
2
- 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>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
2
+ import { HeatmapBarItem } from '../types';
3
+ 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>>, unknown, {
4
+ getColorIndex(count: number): number;
5
+ getColor(count: number): string;
6
+ getItemStyle(count: number): {
7
+ background: string;
8
+ };
9
+ }, {
10
+ heatMapBarItems: HeatmapBarItem[];
11
+ maxCount: number;
12
+ }, {
13
+ items: unknown[];
14
+ selectedValue: string | number;
15
+ showCounts: boolean;
16
+ showNames: boolean;
17
+ colors: unknown[];
18
+ label: string;
19
+ dense: boolean;
20
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
3
21
  export default _default;
@@ -1,3 +1,16 @@
1
1
  import Vue from "vue";
2
- 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>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
2
+ import { HoursHeatmapChartItem } from '../types';
3
+ 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>>, unknown, {
4
+ getFormattedHour(h: number): string;
5
+ }, {
6
+ itemsByHour: Record<string, HoursHeatmapChartItem>;
7
+ heatmapBarItems: any;
8
+ }, {
9
+ items: unknown[];
10
+ selectedHour: string | number;
11
+ showHours: boolean;
12
+ colors: unknown[];
13
+ label: string;
14
+ dense: boolean;
15
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
3
16
  export default _default;
@@ -4,7 +4,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
4
4
  }, {
5
5
  displayContent(): any;
6
6
  displayArrayContent(): any;
7
- displayTextContent(): any;
7
+ displayTextContent(): string | unknown[] | (() => null);
8
8
  toggleContentExpansion(): void;
9
9
  }, {
10
10
  hiddenContentLength: number;
@@ -1,45 +1,11 @@
1
- import { PropType } from "vue";
2
- declare const _default: import("vue").DefineComponent<{
3
- videoUrl: {
4
- type: StringConstructor;
5
- required: true;
6
- };
7
- platform: {
8
- type: PropType<"youtube" | "vimeo">;
9
- required: true;
10
- validator: (value: string) => boolean;
11
- };
12
- iframeListeners: {
13
- type: PropType<Partial<HTMLIFrameElement>>;
14
- default: () => {};
15
- };
16
- iframeOptions: {
17
- type: ObjectConstructor;
18
- default: () => {};
19
- };
20
- }, {}, {}, {
21
- videoId(): string | undefined;
22
- embedUrl(): string;
23
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
24
- videoUrl: {
25
- type: StringConstructor;
26
- required: true;
27
- };
28
- platform: {
29
- type: PropType<"youtube" | "vimeo">;
30
- required: true;
31
- validator: (value: string) => boolean;
32
- };
33
- iframeListeners: {
34
- type: PropType<Partial<HTMLIFrameElement>>;
35
- default: () => {};
36
- };
37
- iframeOptions: {
38
- type: ObjectConstructor;
39
- default: () => {};
40
- };
41
- }>>, {
42
- iframeListeners: Partial<HTMLIFrameElement>;
43
- iframeOptions: Record<string, any>;
44
- }>;
1
+ import Vue from "vue";
2
+ 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>>, unknown, unknown, {
3
+ videoId: string | undefined;
4
+ embedUrl: string;
5
+ }, {
6
+ videoUrl: string;
7
+ platform: "youtube" | "vimeo";
8
+ iframeListeners: {};
9
+ iframeOptions: any;
10
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
45
11
  export default _default;
@@ -1,84 +1,11 @@
1
1
  import Hls, { ErrorData, Events } from "hls.js";
2
- import { PropType } from "vue";
2
+ import Vue 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").DefineComponent<{
9
- targetTimestamp: {
10
- type: (StringConstructor | DateConstructor)[];
11
- default: undefined;
12
- };
13
- sources: {
14
- type: PropType<string | VideoSource[]>;
15
- required: true;
16
- };
17
- videoListeners: {
18
- type: PropType<Partial<HTMLVideoElement>>;
19
- default: () => {};
20
- };
21
- videoOptions: {
22
- type: PropType<Partial<HTMLVideoElement>>;
23
- default: () => {};
24
- };
25
- isHls: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- streamingToken: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- pauseOnClick: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- isHlsLoading: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- isPlaying: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- isZoomable: {
46
- type: BooleanConstructor;
47
- default: boolean;
48
- };
49
- zoomableIgnorePointerEvents: {
50
- type: BooleanConstructor;
51
- default: boolean;
52
- };
53
- timezone: {
54
- type: StringConstructor;
55
- default: string;
56
- };
57
- playPauseAnimation: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- disablePlayPauseAnimation: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- isWebRtc: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
- withColoredLoader: {
70
- type: BooleanConstructor;
71
- default: boolean;
72
- };
73
- loaderSize: {
74
- type: StringConstructor;
75
- default: string;
76
- };
77
- withOverlayOnBackground: {
78
- type: BooleanConstructor;
79
- default: boolean;
80
- };
81
- }, {}, {
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>>, {
82
9
  playing: boolean;
83
10
  percentagePlayed: number;
84
11
  videoLength: string;
@@ -99,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
99
26
  start: string;
100
27
  end: string;
101
28
  };
102
- }, {
103
- sourceItems(): VideoSource[];
104
- hasStartedOrFinished(): boolean;
105
- withControls(): "" | "hide";
106
29
  }, {
107
30
  initHls(): void;
108
31
  onContainerClick(): void;
@@ -136,96 +59,29 @@ declare const _default: import("vue").DefineComponent<{
136
59
  skip(duration?: number): void;
137
60
  toggleScrubbing(e: MouseEvent): Promise<void>;
138
61
  handleKeyDown(e: KeyboardEvent): void;
139
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
140
- targetTimestamp: {
141
- type: (StringConstructor | DateConstructor)[];
142
- default: undefined;
143
- };
144
- sources: {
145
- type: PropType<string | VideoSource[]>;
146
- required: true;
147
- };
148
- videoListeners: {
149
- type: PropType<Partial<HTMLVideoElement>>;
150
- default: () => {};
151
- };
152
- videoOptions: {
153
- type: PropType<Partial<HTMLVideoElement>>;
154
- default: () => {};
155
- };
156
- isHls: {
157
- type: BooleanConstructor;
158
- default: boolean;
159
- };
160
- streamingToken: {
161
- type: StringConstructor;
162
- default: string;
163
- };
164
- pauseOnClick: {
165
- type: BooleanConstructor;
166
- default: boolean;
167
- };
168
- isHlsLoading: {
169
- type: BooleanConstructor;
170
- default: boolean;
171
- };
172
- isPlaying: {
173
- type: BooleanConstructor;
174
- default: boolean;
175
- };
176
- isZoomable: {
177
- type: BooleanConstructor;
178
- default: boolean;
179
- };
180
- zoomableIgnorePointerEvents: {
181
- type: BooleanConstructor;
182
- default: boolean;
183
- };
184
- timezone: {
185
- type: StringConstructor;
186
- default: string;
187
- };
188
- playPauseAnimation: {
189
- type: BooleanConstructor;
190
- default: boolean;
191
- };
192
- disablePlayPauseAnimation: {
193
- type: BooleanConstructor;
194
- default: boolean;
195
- };
196
- isWebRtc: {
197
- type: BooleanConstructor;
198
- default: boolean;
199
- };
200
- withColoredLoader: {
201
- type: BooleanConstructor;
202
- default: boolean;
203
- };
204
- loaderSize: {
205
- type: StringConstructor;
206
- default: string;
207
- };
208
- withOverlayOnBackground: {
209
- type: BooleanConstructor;
210
- default: boolean;
211
- };
212
- }>>, {
213
- timezone: string;
214
- isPlaying: boolean;
215
- targetTimestamp: string | Date;
216
- videoListeners: Partial<HTMLVideoElement>;
217
- videoOptions: Partial<HTMLVideoElement>;
62
+ }, {
63
+ posterUrl: string;
64
+ sourceItems: VideoSource[];
65
+ hasStartedOrFinished: boolean;
66
+ withControls: "" | "hide";
67
+ }, {
68
+ targetTimestamp: string;
69
+ sources: string | VideoSource[];
70
+ videoListeners: {};
71
+ videoOptions: {};
218
72
  isHls: boolean;
219
73
  streamingToken: string;
220
74
  pauseOnClick: boolean;
221
75
  isHlsLoading: boolean;
76
+ isPlaying: boolean;
222
77
  isZoomable: boolean;
223
78
  zoomableIgnorePointerEvents: boolean;
79
+ timezone: string;
224
80
  playPauseAnimation: boolean;
225
81
  disablePlayPauseAnimation: boolean;
226
82
  isWebRtc: boolean;
227
83
  withColoredLoader: boolean;
228
84
  loaderSize: string;
229
85
  withOverlayOnBackground: boolean;
230
- }>;
86
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
231
87
  export default _default;
@@ -1,17 +1,5 @@
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
- }, {}, {
1
+ import Vue, { StyleValue } from "vue";
2
+ 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>>, {
15
3
  scale: number;
16
4
  minScale: number;
17
5
  maxScale: number;
@@ -25,49 +13,34 @@ declare const _default: import("vue").DefineComponent<{
25
13
  isPinching: boolean;
26
14
  previousPinchDistance: number;
27
15
  pinchDistance: number;
28
- pointers: {};
16
+ pointers: Record<number, PointerEvent>;
29
17
  transform: string;
30
- }, {
31
- contentStyle(): {
32
- transform: string;
33
- };
34
- isZoomed(): boolean;
35
18
  }, {
36
19
  updateZoomScale(): void;
37
- handleZoom(e: any): void;
38
- handleMouseDown(e: any): void;
20
+ handleZoom(e: WheelEvent): void;
21
+ handleMouseDown(e: MouseEvent): void;
39
22
  handleMouseUp(): void;
40
23
  handleMouseLeave(): void;
41
- handleMouseMove(e: any): void;
24
+ handleMouseMove(e: MouseEvent): void;
42
25
  applyBoundsCorrection(): void;
43
26
  updateTransform(): void;
44
- getPointersDistance(a: any, b: any): number;
45
- getPointersMidPoint(a: any, b: any): {
46
- x: any;
47
- y: any;
27
+ getPointersDistance(a: PointerEvent, b: PointerEvent): number;
28
+ getPointersMidPoint(a: PointerEvent, b: PointerEvent): {
29
+ x: number;
30
+ y: number;
48
31
  };
49
- updatePointerEvent(e: any): void;
50
- clearPointerEvent(e: any): void;
32
+ updatePointerEvent(e: PointerEvent): void;
33
+ clearPointerEvent(e: PointerEvent): void;
51
34
  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
- }>>, {
35
+ handlePointerDown(e: PointerEvent): void;
36
+ handlePointerMove(e: PointerEvent): void;
37
+ handlePointerUp(e: PointerEvent): void;
38
+ }, {
39
+ contentStyle: StyleValue;
40
+ isZoomed: boolean;
41
+ }, {
69
42
  ignorePointerEvents: boolean;
70
43
  withOverlay: boolean;
71
44
  disabled: boolean;
72
- }>;
45
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
73
46
  export default _default;
@@ -7,6 +7,7 @@ export declare const AvatarSizes: readonly [Size.xs, Size.sm, Size.md, Size.lg,
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
8
  export declare const ToggleSwitchSizes: readonly [Size.sm, Size.md, Size.md, Size.lg];
9
9
  export declare const BadgeColors: readonly [BaseColor.warning, BaseColor.error, BaseColor.info, BaseColor.success, BaseColor.primary, BaseColor.default];
10
+ export declare const InputSizes: readonly [Size.xs, Size.sm, Size.md, Size.md, Size.lg, Size.xl];
10
11
  export declare const EVENTS: string[];
11
12
  declare const _default: {};
12
13
  export default _default;