@evercam/ui 0.0.62 → 0.0.63-Add-timeline-test-2d1f69478

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 (73) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +2 -2
  3. package/dist/attributes.json +471 -19
  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 +6 -5
  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 +128 -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 +18 -0
  19. package/dist/components/EToggleSwitch.vue.d.ts +3 -3
  20. package/dist/components/ETooltip.vue.d.ts +12 -0
  21. package/dist/components/EVideoPlayer.vue.d.ts +0 -1
  22. package/dist/components/EZoomSlider.vue.d.ts +5 -0
  23. package/dist/components/EZoomableImg.vue.d.ts +160 -0
  24. package/dist/components/charts/ECursor.vue.d.ts +69 -0
  25. package/dist/components/charts/ECursorBehavior.vue.d.ts +21 -0
  26. package/dist/components/charts/ETimelineSVGDefs.vue.d.ts +3 -0
  27. package/dist/components/charts/EXAxis.vue.d.ts +78 -0
  28. package/dist/components/charts/EXAxisBackground.vue.d.ts +64 -0
  29. package/dist/components/charts/EXAxisDetailed.vue.d.ts +64 -0
  30. package/dist/components/charts/EXAxisOverview.vue.d.ts +64 -0
  31. package/dist/components/charts/EZoomBehavior.vue.d.ts +58 -0
  32. package/dist/components/charts/constants.d.ts +59 -0
  33. package/dist/components/chat/EChat.vue.d.ts +52 -0
  34. package/dist/components/chat/EChatBody.vue.d.ts +21 -0
  35. package/dist/components/chat/EChatFooter.vue.d.ts +9 -0
  36. package/dist/components/chat/EChatHeader.vue.d.ts +11 -0
  37. package/dist/components/chat/EChatInput.vue.d.ts +25 -0
  38. package/dist/components/chat/EChatMessage.vue.d.ts +38 -0
  39. package/dist/components/chat/EChatMessageActions.vue.d.ts +19 -0
  40. package/dist/components/chat/EChatSuggestionCard.vue.d.ts +12 -0
  41. package/dist/components/chat/EChatWrapper.vue.d.ts +9 -0
  42. package/dist/components/chat/EMarkdown.vue.d.ts +27 -0
  43. package/dist/components/chat/MarkdownProcessor.d.ts +59 -0
  44. package/dist/components/svgIcons/Robot.vue.d.ts +3 -0
  45. package/dist/components/svgIcons/Tag.vue.d.ts +6 -0
  46. package/dist/components/svgIcons/TagPlus.vue.d.ts +6 -0
  47. package/dist/components/svgIcons/index.d.ts +8 -2
  48. package/dist/components/{ETimeline.config.d.ts → timeline/ETimeline.config.d.ts} +1 -1
  49. package/dist/components/{ETimeline.vue.d.ts → timeline/ETimeline.vue.d.ts} +44 -87
  50. package/dist/components/timeline/ETimelineCursor.vue.d.ts +9 -0
  51. package/dist/components/timeline/ETimelineMarker.vue.d.ts +17 -0
  52. package/dist/components/timeline/ETimelineMarkers.vue.d.ts +31 -0
  53. package/dist/components/{ETimelineMilestone.vue.d.ts → timeline/ETimelineMilestone.vue.d.ts} +41 -17
  54. package/dist/components/timeline/ETimelineSelectedTimestampCursor.vue.d.ts +9 -0
  55. package/dist/constants.d.ts +4 -2
  56. package/dist/directives/clickOutside.d.ts +3 -0
  57. package/dist/directives/index.d.ts +3 -2
  58. package/dist/index.d.ts +521 -96
  59. package/dist/index.mjs +15003 -5593
  60. package/dist/index.mjs.map +1 -1
  61. package/dist/index.umd.js +23 -14
  62. package/dist/index.umd.js.map +1 -1
  63. package/dist/mixins/event-listeners.d.ts +2 -0
  64. package/dist/mixins/inactivity-listener.d.ts +10 -6
  65. package/dist/style.css +1 -1
  66. package/dist/styles.css +28378 -27327
  67. package/dist/tags.json +151 -8
  68. package/dist/types.d.ts +86 -5
  69. package/dist/utils.d.ts +9 -0
  70. package/dist/web-types.json +1050 -47
  71. package/package.json +30 -15
  72. package/dist/components/charts/classNames.d.ts +0 -7
  73. /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",
@@ -113,11 +113,8 @@
113
113
  "bar-xpadding",
114
114
  "chart-min-height",
115
115
  "chart-min-label-height",
116
- "min-zoom",
117
- "max-zoom",
118
116
  "min-date",
119
117
  "max-date",
120
- "cursor-timestamp",
121
118
  "selected-class",
122
119
  "pan-on-date-click",
123
120
  "pan-transition-duration",
@@ -135,7 +132,10 @@
135
132
  "focused-interval",
136
133
  "locked",
137
134
  "timezone",
138
- "stop-click-propagation"
135
+ "stop-click-propagation",
136
+ "tooltip-position",
137
+ "max-domain-padding",
138
+ "show-cursor"
139
139
  ],
140
140
  "description": ""
141
141
  },
@@ -153,10 +153,13 @@
153
153
  "items",
154
154
  "selected-value",
155
155
  "show-counts",
156
+ "names-only",
156
157
  "show-names",
157
158
  "colors",
159
+ "colors-dark",
158
160
  "label",
159
- "dense"
161
+ "dense",
162
+ "dark"
160
163
  ],
161
164
  "description": ""
162
165
  },
@@ -195,12 +198,21 @@
195
198
  ],
196
199
  "description": ""
197
200
  },
201
+ "EImagesComparator": {
202
+ "attributes": [
203
+ "before-image-src",
204
+ "after-image-src",
205
+ "is-loading"
206
+ ],
207
+ "description": ""
208
+ },
198
209
  "EToggleSwitch": {
199
210
  "attributes": [
200
211
  "options",
201
212
  "color",
202
213
  "size",
203
- "default-value"
214
+ "default-value",
215
+ "value"
204
216
  ],
205
217
  "description": ""
206
218
  },
@@ -238,5 +250,136 @@
238
250
  "icon"
239
251
  ],
240
252
  "description": ""
253
+ },
254
+ "EFlagIcon": {
255
+ "attributes": [
256
+ "code"
257
+ ],
258
+ "description": ""
259
+ },
260
+ "EImagePlayer": {
261
+ "attributes": [
262
+ "frames",
263
+ "time-per-frame",
264
+ "is-playing",
265
+ "frame-index",
266
+ "height",
267
+ "initial-quality",
268
+ "preload",
269
+ "preload-size",
270
+ "reset-index-on-frames-change",
271
+ "preload-while-playing",
272
+ "with-controls",
273
+ "play-on-click",
274
+ "disable-play-pause-animation",
275
+ "disable-play-button",
276
+ "is-live",
277
+ "selected-snapshot-quality",
278
+ "placeholder-image",
279
+ "is-mobile",
280
+ "is-zoomable",
281
+ "is-annotation-active",
282
+ "aspect-ratio"
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
+ ],
371
+ "description": ""
372
+ },
373
+ "ECopyToClipboardBtn": {
374
+ "attributes": [
375
+ "text",
376
+ "button-text",
377
+ "button-classes",
378
+ "description",
379
+ "icon-type",
380
+ "text-only-button",
381
+ "dark"
382
+ ],
383
+ "description": ""
241
384
  }
242
385
  }
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,90 @@ 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
+ PROGRESS = "progress",
244
+ STOP = "stop",
245
+ ERROR = "error"
246
+ }
247
+ export type ChatMessageAnnotation = {
248
+ index: number;
249
+ text: string;
250
+ url?: string;
251
+ [key: string]: unknown;
252
+ };
253
+ export interface ChatMessage {
254
+ id: number;
255
+ role: ChatMessageRole;
256
+ content: string | string[];
257
+ timestamp?: Timestamp;
258
+ isLoading?: boolean;
259
+ type?: ChatMessageType;
260
+ annotations?: ChatMessageAnnotation[];
261
+ }
262
+ export interface ChatSuggestion {
263
+ type: string;
264
+ text: string;
265
+ icon: string;
266
+ color?: string;
267
+ width?: number;
268
+ }
269
+ export declare enum FeedbackType {
270
+ positive = "positive",
271
+ negative = "negative"
272
+ }
273
+ export type DialogAction = {
274
+ label: string;
275
+ id?: string | number;
276
+ closeOnClick?: boolean;
277
+ };
278
+ export type Feedback = {
279
+ type: FeedbackType;
280
+ message: string;
281
+ [key: string]: unknown;
282
+ };
283
+ export type EMarkdownRegex = {
284
+ regex: RegExp;
285
+ type: string;
286
+ };
287
+ export type EMarkdownRegexMatch = {
288
+ match: string;
289
+ type: string;
290
+ };
210
291
  declare const _default: {};
211
292
  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[];