@evercam/ui 0.0.62 → 0.0.63-Add-timeline-tests-1aaeb4ea7

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 (78) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +0 -2
  3. package/dist/attributes.json +530 -25
  4. package/dist/components/EActionButton.vue.d.ts +17 -0
  5. package/dist/components/EAvatar.vue.d.ts +2 -0
  6. package/dist/components/ECopyToClipboardBtn.vue.d.ts +31 -0
  7. package/dist/components/EDialog.vue.d.ts +3 -0
  8. package/dist/components/EEvercamLogo.vue.d.ts +6 -0
  9. package/dist/components/EExpandableMenu.vue.d.ts +10 -7
  10. package/dist/components/EFadeTransition.vue.d.ts +7 -0
  11. package/dist/components/EFeedackButton.vue.d.ts +38 -0
  12. package/dist/components/EFlagIcon.vue.d.ts +3 -0
  13. package/dist/components/EGlobalSearch.vue.d.ts +1 -0
  14. package/dist/components/EHeatmapBar.vue.d.ts +13 -2
  15. package/dist/components/EImagePlayer.vue.d.ts +127 -0
  16. package/dist/components/EImagesComparator.vue.d.ts +31 -0
  17. package/dist/components/ELayout.vue.d.ts +32 -0
  18. package/dist/components/EPulsatingDot.vue.d.ts +19 -0
  19. package/dist/components/ERadioGroup.vue.d.ts +22 -0
  20. package/dist/components/EToggleSwitch.vue.d.ts +11 -13
  21. package/dist/components/ETooltip.vue.d.ts +12 -0
  22. package/dist/components/EVideoPlayer.vue.d.ts +0 -1
  23. package/dist/components/EVoiceInput.vue.d.ts +49 -0
  24. package/dist/components/EVoiceInputVolumeIndicator.vue.d.ts +13 -0
  25. package/dist/components/EZoomSlider.vue.d.ts +5 -0
  26. package/dist/components/EZoomableImg.vue.d.ts +160 -0
  27. package/dist/components/charts/ECursor.vue.d.ts +74 -0
  28. package/dist/components/charts/ECursorBehavior.vue.d.ts +21 -0
  29. package/dist/components/charts/ETimelineGroupContainer.vue.d.ts +90 -0
  30. package/dist/components/charts/ETimelineRectsChart.vue.d.ts +111 -0
  31. package/dist/components/charts/ETimelineSVGDefs.vue.d.ts +3 -0
  32. package/dist/components/charts/EXAxis.vue.d.ts +83 -0
  33. package/dist/components/charts/EXAxisBackground.vue.d.ts +69 -0
  34. package/dist/components/charts/EXAxisDetailed.vue.d.ts +69 -0
  35. package/dist/components/charts/EXAxisOverview.vue.d.ts +69 -0
  36. package/dist/components/charts/EZoomBehavior.vue.d.ts +58 -0
  37. package/dist/components/charts/constants.d.ts +64 -0
  38. package/dist/components/chat/EChat.vue.d.ts +54 -0
  39. package/dist/components/chat/EChatBody.vue.d.ts +21 -0
  40. package/dist/components/chat/EChatFooter.vue.d.ts +9 -0
  41. package/dist/components/chat/EChatHeader.vue.d.ts +11 -0
  42. package/dist/components/chat/EChatInput.vue.d.ts +28 -0
  43. package/dist/components/chat/EChatMessage.vue.d.ts +38 -0
  44. package/dist/components/chat/EChatMessageActions.vue.d.ts +19 -0
  45. package/dist/components/chat/EChatSuggestionCard.vue.d.ts +13 -0
  46. package/dist/components/chat/EChatWrapper.vue.d.ts +9 -0
  47. package/dist/components/chat/EMarkdown.vue.d.ts +27 -0
  48. package/dist/components/chat/MarkdownProcessor.d.ts +59 -0
  49. package/dist/components/svgIcons/Robot.vue.d.ts +3 -0
  50. package/dist/components/svgIcons/Tag.vue.d.ts +6 -0
  51. package/dist/components/svgIcons/TagPlus.vue.d.ts +6 -0
  52. package/dist/components/svgIcons/index.d.ts +8 -2
  53. package/dist/components/{ETimeline.config.d.ts → timeline/ETimeline.config.d.ts} +1 -1
  54. package/dist/components/{ETimeline.vue.d.ts → timeline/ETimeline.vue.d.ts} +43 -139
  55. package/dist/components/timeline/ETimelineCursor.vue.d.ts +9 -0
  56. package/dist/components/timeline/ETimelineMarker.vue.d.ts +17 -0
  57. package/dist/components/timeline/ETimelineMarkers.vue.d.ts +31 -0
  58. package/dist/components/{ETimelineMilestone.vue.d.ts → timeline/ETimelineMilestone.vue.d.ts} +53 -17
  59. package/dist/components/timeline/ETimelineSelectedTimestampCursor.vue.d.ts +9 -0
  60. package/dist/constants.d.ts +4 -2
  61. package/dist/directives/clickOutside.d.ts +3 -0
  62. package/dist/directives/index.d.ts +3 -2
  63. package/dist/index.d.ts +604 -160
  64. package/dist/index.mjs +15505 -5592
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/index.umd.js +22 -14
  67. package/dist/index.umd.js.map +1 -1
  68. package/dist/mixins/event-listeners.d.ts +2 -0
  69. package/dist/mixins/inactivity-listener.d.ts +10 -6
  70. package/dist/style.css +1 -1
  71. package/dist/styles.css +28386 -27327
  72. package/dist/tags.json +173 -9
  73. package/dist/types.d.ts +98 -5
  74. package/dist/utils.d.ts +9 -0
  75. package/dist/web-types.json +1181 -57
  76. package/package.json +30 -15
  77. package/dist/components/charts/classNames.d.ts +0 -7
  78. /package/dist/directives/{resize-observer.d.ts → resizeObserver.d.ts} +0 -0
package/dist/tags.json CHANGED
@@ -6,7 +6,8 @@
6
6
  "badge-color",
7
7
  "badge-text",
8
8
  "badge-size",
9
- "image"
9
+ "image",
10
+ "background-classes"
10
11
  ],
11
12
  "description": ""
12
13
  },
@@ -96,7 +97,6 @@
96
97
  "ETimeline": {
97
98
  "attributes": [
98
99
  "events-groups",
99
- "x-axes-config",
100
100
  "dark",
101
101
  "start-date",
102
102
  "end-date",
@@ -105,7 +105,6 @@
105
105
  "disable-zoom",
106
106
  "insert-zeros-at-interval",
107
107
  "flatten-line-graph-ends",
108
- "curtains",
109
108
  "show-labels",
110
109
  "rect-min-width",
111
110
  "bar-height",
@@ -113,11 +112,8 @@
113
112
  "bar-xpadding",
114
113
  "chart-min-height",
115
114
  "chart-min-label-height",
116
- "min-zoom",
117
- "max-zoom",
118
115
  "min-date",
119
116
  "max-date",
120
- "cursor-timestamp",
121
117
  "selected-class",
122
118
  "pan-on-date-click",
123
119
  "pan-transition-duration",
@@ -135,7 +131,10 @@
135
131
  "focused-interval",
136
132
  "locked",
137
133
  "timezone",
138
- "stop-click-propagation"
134
+ "stop-click-propagation",
135
+ "tooltip-position",
136
+ "max-domain-padding",
137
+ "show-cursor"
139
138
  ],
140
139
  "description": ""
141
140
  },
@@ -153,10 +152,13 @@
153
152
  "items",
154
153
  "selected-value",
155
154
  "show-counts",
155
+ "names-only",
156
156
  "show-names",
157
157
  "colors",
158
+ "colors-dark",
158
159
  "label",
159
- "dense"
160
+ "dense",
161
+ "dark"
160
162
  ],
161
163
  "description": ""
162
164
  },
@@ -195,12 +197,21 @@
195
197
  ],
196
198
  "description": ""
197
199
  },
200
+ "EImagesComparator": {
201
+ "attributes": [
202
+ "before-image-src",
203
+ "after-image-src",
204
+ "is-loading"
205
+ ],
206
+ "description": ""
207
+ },
198
208
  "EToggleSwitch": {
199
209
  "attributes": [
200
210
  "options",
201
211
  "color",
202
212
  "size",
203
- "default-value"
213
+ "value",
214
+ "disabled"
204
215
  ],
205
216
  "description": ""
206
217
  },
@@ -238,5 +249,158 @@
238
249
  "icon"
239
250
  ],
240
251
  "description": ""
252
+ },
253
+ "EFlagIcon": {
254
+ "attributes": [
255
+ "code"
256
+ ],
257
+ "description": ""
258
+ },
259
+ "EImagePlayer": {
260
+ "attributes": [
261
+ "frames",
262
+ "time-per-frame",
263
+ "is-playing",
264
+ "frame-index",
265
+ "height",
266
+ "initial-quality",
267
+ "preload",
268
+ "preload-size",
269
+ "reset-index-on-frames-change",
270
+ "preload-while-playing",
271
+ "with-controls",
272
+ "play-on-click",
273
+ "disable-play-pause-animation",
274
+ "disable-play-button",
275
+ "is-live",
276
+ "selected-snapshot-quality",
277
+ "placeholder-image",
278
+ "is-mobile",
279
+ "is-zoomable",
280
+ "is-annotation-active",
281
+ "aspect-ratio",
282
+ "preloading-queue-id"
283
+ ],
284
+ "description": ""
285
+ },
286
+ "EZoomableImg": {
287
+ "attributes": [
288
+ "src",
289
+ "alt",
290
+ "allow-zoom",
291
+ "img-props",
292
+ "slider",
293
+ "disabled",
294
+ "hide-content-on-blur",
295
+ "initial-params",
296
+ "embedded",
297
+ "overlay-style",
298
+ "foreground-style",
299
+ "pan",
300
+ "slot-transition",
301
+ "height",
302
+ "is-calendar-active",
303
+ "blur-background",
304
+ "cover",
305
+ "is-widget",
306
+ "is-annotation-active",
307
+ "is-mobile",
308
+ "placeholder-image",
309
+ "show-miniature",
310
+ "miniature-width"
311
+ ],
312
+ "description": ""
313
+ },
314
+ "EZoomSlider": {
315
+ "attributes": [
316
+ "dark"
317
+ ],
318
+ "description": ""
319
+ },
320
+ "EActionButton": {
321
+ "attributes": [
322
+ "tooltip-text",
323
+ "tooltip-color",
324
+ "tooltip-position",
325
+ "button-classes",
326
+ "icon",
327
+ "icon-size",
328
+ "icon-color",
329
+ "dark"
330
+ ],
331
+ "description": ""
332
+ },
333
+ "ETooltip": {
334
+ "attributes": [
335
+ "text",
336
+ "position",
337
+ "color",
338
+ "dark"
339
+ ],
340
+ "description": ""
341
+ },
342
+ "ELayout": {
343
+ "attributes": [
344
+ "height",
345
+ "with-overlay"
346
+ ],
347
+ "description": ""
348
+ },
349
+ "EChat": {
350
+ "attributes": [
351
+ "dark",
352
+ "messages",
353
+ "user",
354
+ "embedded",
355
+ "show-header",
356
+ "inline-footer",
357
+ "height",
358
+ "width",
359
+ "show-user-avatar",
360
+ "show-copilot-avatar",
361
+ "readonly",
362
+ "is-loading",
363
+ "is-disabled",
364
+ "header-text",
365
+ "input-placeholder",
366
+ "loading-message",
367
+ "suggestions",
368
+ "exposed-regexes",
369
+ "e-markdown-props",
370
+ "silence-timeout"
371
+ ],
372
+ "description": ""
373
+ },
374
+ "ECopyToClipboardBtn": {
375
+ "attributes": [
376
+ "text",
377
+ "button-text",
378
+ "button-classes",
379
+ "description",
380
+ "icon-type",
381
+ "text-only-button",
382
+ "dark"
383
+ ],
384
+ "description": ""
385
+ },
386
+ "EVoiceRecorderToText": {
387
+ "attributes": [
388
+ "value",
389
+ "dark",
390
+ "disabled",
391
+ "icon-size",
392
+ "silence-timeout"
393
+ ],
394
+ "description": ""
395
+ },
396
+ "ERadioGroup": {
397
+ "attributes": [
398
+ "dark",
399
+ "value",
400
+ "options",
401
+ "disabled",
402
+ "with-description"
403
+ ],
404
+ "description": ""
241
405
  }
242
406
  }
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BadgeSizes, AvatarSizes, IconSizes, BadgeColors, ToggleSwitchSizes } from './constants';
2
2
  export declare enum Size {
3
3
  dot = "dot",
4
+ "2xs" = "2xs",
4
5
  xs = "xs",
5
6
  sm = "sm",
6
7
  md = "base",
@@ -23,7 +24,8 @@ export declare enum BaseColor {
23
24
  success = "success",
24
25
  primary = "primary",
25
26
  brand = "brand",
26
- default = "default"
27
+ default = "default",
28
+ gray = "gray"
27
29
  }
28
30
  /**
29
31
  * {@link Size}
@@ -160,9 +162,11 @@ export type TimelineInterval = {
160
162
  endDate: Date | string | number;
161
163
  };
162
164
  export type HeatmapBarItem = {
165
+ id?: string | number;
163
166
  name: string;
164
167
  count: number;
165
168
  value: string | number;
169
+ itemClass?: string | Record<string, boolean>;
166
170
  };
167
171
  export type HoursHeatmapChartItem = {
168
172
  count: number;
@@ -199,13 +203,102 @@ export interface FullscreenDocument extends Document {
199
203
  mozFullScreenEnabled: boolean;
200
204
  }
201
205
  export type D3TimestampParams = {
202
- timestamp: string | Date;
203
- timezone: string;
206
+ timestamp: string | Date | number;
207
+ timezone?: string;
204
208
  };
205
209
  export type D3DateParams = {
206
- date: Date;
207
- timezone: string;
210
+ date: Date | string;
211
+ timezone?: string;
208
212
  };
209
213
  export type TimelineDomain = Date[] | string[];
214
+ export declare enum ImageQuality {
215
+ _360 = "360",
216
+ _480 = "480",
217
+ _720 = "720",
218
+ _1080 = "1080",
219
+ auto = "auto"
220
+ }
221
+ export type SrcSet = {
222
+ [q in ImageQuality]: string;
223
+ };
224
+ export interface Frame {
225
+ label: string;
226
+ src: string;
227
+ srcSet?: SrcSet;
228
+ timestamp: Timestamp;
229
+ }
230
+ export declare enum Position {
231
+ top = "top",
232
+ right = "right",
233
+ bottom = "bottom",
234
+ left = "left"
235
+ }
236
+ export declare enum ChatMessageRole {
237
+ System = "system",
238
+ Copilot = "copilot",
239
+ User = "user"
240
+ }
241
+ export declare enum ChatMessageType {
242
+ Text = "text",
243
+ Error = "error",
244
+ Json = "json"
245
+ }
246
+ export type ChatMessageAnnotation = {
247
+ index: number;
248
+ text: string;
249
+ url?: string;
250
+ [key: string]: unknown;
251
+ };
252
+ export interface ChatMessage {
253
+ id: number;
254
+ role: ChatMessageRole;
255
+ content: string | string[] | Record<string, unknown>;
256
+ timestamp?: Timestamp;
257
+ isLoading?: boolean;
258
+ type?: ChatMessageType;
259
+ data?: unknown;
260
+ annotations?: ChatMessageAnnotation[];
261
+ withActions?: boolean;
262
+ }
263
+ export interface ChatSuggestion {
264
+ type: string;
265
+ text: string;
266
+ icon: string;
267
+ color?: string;
268
+ width?: number;
269
+ display?: "row" | "column";
270
+ }
271
+ export declare enum FeedbackType {
272
+ positive = "positive",
273
+ negative = "negative"
274
+ }
275
+ export type DialogAction = {
276
+ label: string;
277
+ id?: string | number;
278
+ closeOnClick?: boolean;
279
+ };
280
+ export type Feedback = {
281
+ type: FeedbackType;
282
+ message: string;
283
+ [key: string]: unknown;
284
+ };
285
+ export type EMarkdownRegex = {
286
+ regex: RegExp;
287
+ type: string;
288
+ };
289
+ export type EMarkdownRegexMatch = {
290
+ match: string;
291
+ type: string;
292
+ };
293
+ export type ESelectionGroupOption = {
294
+ label: string;
295
+ value: unknown;
296
+ disabled?: boolean;
297
+ };
298
+ export type ERadioGroupOption = ESelectionGroupOption & {
299
+ description?: string;
300
+ };
301
+ export type EToggleSwitchOption = ESelectionGroupOption;
302
+ export type CssClassMap = Record<string, boolean>;
210
303
  declare const _default: {};
211
304
  export default _default;
package/dist/utils.d.ts CHANGED
@@ -3,3 +3,12 @@ export declare function makeFullScreen(element: HTMLElement): Promise<unknown>;
3
3
  export declare function exitFullScreen(): Promise<void | null>;
4
4
  export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;
5
5
  export declare function getRandomChars(length?: number): string;
6
+ export declare function getImageData(image: HTMLImageElement, x?: number, y?: number, width?: number, height?: number): string;
7
+ export declare function isValidDate(dateString?: string): boolean;
8
+ export declare function hexToRgba(hex: string, alpha?: number): string;
9
+ export declare function rgbToRgba(rgb: string, alpha?: number): string | null;
10
+ export declare function isRgba(color: string): boolean;
11
+ export declare function toRgba(color: string, alpha?: number): string | null;
12
+ export declare function generateUniqueId(obj: Record<string, unknown>): string;
13
+ export declare function hashCode(str: string): number;
14
+ export declare function getGradientColors(startColor: string, endColor: string, length: number): string[];