@evercam/ui 0.0.61 → 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.
- package/CHANGELOG.md +18 -19
- package/README.md +2 -2
- package/dist/attributes.json +471 -19
- package/dist/components/EActionButton.vue.d.ts +17 -0
- package/dist/{src/components → components}/EAvatar.vue.d.ts +2 -0
- package/dist/components/ECopyToClipboardBtn.vue.d.ts +31 -0
- package/dist/components/EEvercamLogo.vue.d.ts +6 -0
- package/dist/{src/components → components}/EExpandableMenu.vue.d.ts +6 -5
- package/dist/components/EFadeTransition.vue.d.ts +7 -0
- package/dist/components/EFeedackButton.vue.d.ts +38 -0
- package/dist/components/EFlagIcon.vue.d.ts +3 -0
- package/dist/{src/components → components}/EGlobalSearch.vue.d.ts +1 -0
- package/dist/{src/components → components}/EHeatmapBar.vue.d.ts +13 -2
- package/dist/components/EImagePlayer.vue.d.ts +128 -0
- package/dist/components/EImagesComparator.vue.d.ts +31 -0
- package/dist/components/ELayout.vue.d.ts +32 -0
- package/dist/components/EPulsatingDot.vue.d.ts +18 -0
- package/dist/{src/components → components}/EToggleSwitch.vue.d.ts +4 -3
- package/dist/components/ETooltip.vue.d.ts +12 -0
- package/dist/{src/components → components}/EVideoPlayer.vue.d.ts +0 -1
- package/dist/components/EZoomSlider.vue.d.ts +5 -0
- package/dist/components/EZoomableImg.vue.d.ts +160 -0
- package/dist/components/charts/ECursor.vue.d.ts +69 -0
- package/dist/components/charts/ECursorBehavior.vue.d.ts +21 -0
- package/dist/components/charts/ETimelineSVGDefs.vue.d.ts +3 -0
- package/dist/components/charts/EXAxis.vue.d.ts +78 -0
- package/dist/components/charts/EXAxisBackground.vue.d.ts +64 -0
- package/dist/components/charts/EXAxisDetailed.vue.d.ts +64 -0
- package/dist/components/charts/EXAxisOverview.vue.d.ts +64 -0
- package/dist/components/charts/EZoomBehavior.vue.d.ts +58 -0
- package/dist/components/charts/constants.d.ts +59 -0
- package/dist/components/charts/utils.d.ts +3 -0
- package/dist/components/chat/EChat.vue.d.ts +52 -0
- package/dist/components/chat/EChatBody.vue.d.ts +21 -0
- package/dist/components/chat/EChatFooter.vue.d.ts +9 -0
- package/dist/components/chat/EChatHeader.vue.d.ts +11 -0
- package/dist/components/chat/EChatInput.vue.d.ts +25 -0
- package/dist/components/chat/EChatMessage.vue.d.ts +38 -0
- package/dist/components/chat/EChatMessageActions.vue.d.ts +19 -0
- package/dist/components/chat/EChatSuggestionCard.vue.d.ts +12 -0
- package/dist/components/chat/EChatWrapper.vue.d.ts +9 -0
- package/dist/components/chat/EMarkdown.vue.d.ts +27 -0
- package/dist/components/chat/MarkdownProcessor.d.ts +59 -0
- package/dist/components/svgIcons/Tag.vue.d.ts +6 -0
- package/dist/components/svgIcons/TagPlus.vue.d.ts +6 -0
- package/dist/components/svgIcons/TruckMixer.vue.d.ts +3 -0
- package/dist/components/svgIcons/Worker.vue.d.ts +3 -0
- package/dist/{src/components → components}/svgIcons/index.d.ts +8 -2
- package/dist/{src/components → components/timeline}/ETimeline.config.d.ts +1 -1
- package/dist/{src/components → components/timeline}/ETimeline.vue.d.ts +44 -81
- package/dist/components/timeline/ETimelineCursor.vue.d.ts +9 -0
- package/dist/components/timeline/ETimelineMarker.vue.d.ts +17 -0
- package/dist/components/timeline/ETimelineMarkers.vue.d.ts +31 -0
- package/dist/{src/components → components/timeline}/ETimelineMilestone.vue.d.ts +41 -17
- package/dist/components/timeline/ETimelineSelectedTimestampCursor.vue.d.ts +9 -0
- package/dist/{src/constants.d.ts → constants.d.ts} +4 -2
- package/dist/directives/clickOutside.d.ts +3 -0
- package/dist/directives/index.d.ts +7 -0
- package/dist/index.d.ts +1175 -3
- package/dist/index.mjs +14917 -5283
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +23 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/{src/mixins → mixins}/event-listeners.d.ts +2 -0
- package/dist/{src/mixins → mixins}/inactivity-listener.d.ts +10 -6
- package/dist/style.css +1 -1
- package/dist/styles.css +38311 -1829
- package/dist/tags.json +151 -8
- package/dist/{src/types.d.ts → types.d.ts} +128 -1
- package/dist/utils.d.ts +14 -0
- package/dist/web-types.json +1050 -47
- package/package.json +46 -14
- package/dist/src/directives/index.d.ts +0 -6
- package/dist/src/index.d.ts +0 -743
- package/dist/src/utils.d.ts +0 -4
- /package/dist/{src/components → components}/EBadge.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ECol.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ECompareSeparator.vue.d.ts +0 -0
- /package/dist/{src/components/svgIcons/ConcretePump.vue.d.ts → components/EDialog.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/EHoursHeatmap.vue.d.ts +0 -0
- /package/dist/{src/components → components}/EIcon.vue.d.ts +0 -0
- /package/dist/{src/components → components}/EReadMore.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ERow.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ESpinner.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ESvgIcon.vue.d.ts +0 -0
- /package/dist/{src/components → components}/ETruncatedDiv.vue.d.ts +0 -0
- /package/dist/{src/components → components}/EVideoEmbed.vue.d.ts +0 -0
- /package/dist/{src/components → components}/EZoomable.vue.d.ts +0 -0
- /package/dist/{src/components → components}/svgIcons/BaseIcon.vue.d.ts +0 -0
- /package/dist/{src/components → components}/svgIcons/Bim.vue.d.ts +0 -0
- /package/dist/{src/components → components}/svgIcons/Blur.vue.d.ts +0 -0
- /package/dist/{src/components → components}/svgIcons/Compare.vue.d.ts +0 -0
- /package/dist/{src/components/svgIcons/DroneView.vue.d.ts → components/svgIcons/ConcretePump.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/Dumper.vue.d.ts → components/svgIcons/DroneView.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/EvercamLogo.vue.d.ts → components/svgIcons/Dumper.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/svgIcons/Evercam.vue.d.ts +0 -0
- /package/dist/{src/components/svgIcons/Excavator.vue.d.ts → components/svgIcons/EvercamLogo.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/FlatbedSemiTrailer.vue.d.ts → components/svgIcons/Excavator.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/IModel.vue.d.ts → components/svgIcons/FlatbedSemiTrailer.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/svgIcons/FreeDrawing.vue.d.ts +0 -0
- /package/dist/{src/components/svgIcons/Loader.vue.d.ts → components/svgIcons/IModel.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/svgIcons/Inspection.vue.d.ts +0 -0
- /package/dist/{src/components/svgIcons/MiniModel.vue.d.ts → components/svgIcons/Loader.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/OtherTruck.vue.d.ts → components/svgIcons/MiniModel.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/RoadVehicle.vue.d.ts → components/svgIcons/OtherTruck.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/Roller.vue.d.ts → components/svgIcons/RoadVehicle.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/SemiTrailer.vue.d.ts → components/svgIcons/Robot.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/SkidSteerLoader.vue.d.ts → components/svgIcons/Roller.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/SmallTruck.vue.d.ts → components/svgIcons/SemiTrailer.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/TankTruck.vue.d.ts → components/svgIcons/SkidSteerLoader.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/The360.vue.d.ts → components/svgIcons/SmallTruck.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/TippingTruck.vue.d.ts → components/svgIcons/TankTruck.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/TruckHead.vue.d.ts → components/svgIcons/The360.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/TruckMixer.vue.d.ts → components/svgIcons/TippingTruck.vue.d.ts} +0 -0
- /package/dist/{src/components/svgIcons/Worker.vue.d.ts → components/svgIcons/TruckHead.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/svgIcons/ZohoCrm.vue.d.ts +0 -0
- /package/dist/{src/directives/resize-observer.d.ts → directives/resizeObserver.d.ts} +0 -0
- /package/dist/{src/mixins → mixins}/index.d.ts +0 -0
- /package/dist/{src/mixins → mixins}/timeouts.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
|
}
|
|
@@ -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,12 +24,28 @@ 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
|
}
|
|
30
|
+
/**
|
|
31
|
+
* {@link Size}
|
|
32
|
+
* */
|
|
28
33
|
export type TBadgeSize = (typeof BadgeSizes)[number];
|
|
34
|
+
/**
|
|
35
|
+
* {@link Size}
|
|
36
|
+
* */
|
|
29
37
|
export type TAvatarSize = (typeof AvatarSizes)[number];
|
|
38
|
+
/**
|
|
39
|
+
* {@link Size}
|
|
40
|
+
* */
|
|
30
41
|
export type TIconSize = (typeof IconSizes)[number];
|
|
42
|
+
/**
|
|
43
|
+
* {@link Size}
|
|
44
|
+
* */
|
|
31
45
|
export type TToggleSwitchSize = (typeof ToggleSwitchSizes)[number];
|
|
46
|
+
/**
|
|
47
|
+
* {@link BaseColor}
|
|
48
|
+
* */
|
|
32
49
|
export type TBadgeColor = (typeof BadgeColors)[number];
|
|
33
50
|
export type TailwindColorClass = string;
|
|
34
51
|
export type FlexJustifyContent = "around" | "between" | "center" | "end" | "evenly" | "normal" | "start" | "stretch";
|
|
@@ -45,6 +62,10 @@ export type TimelineTicksConfig = {
|
|
|
45
62
|
interval: any;
|
|
46
63
|
format: string | ((d: Date) => string);
|
|
47
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* {@link TimelineAxis}
|
|
67
|
+
* {@link TimelineTicksConfig}
|
|
68
|
+
* */
|
|
48
69
|
export type TimelineAxesConfig = {
|
|
49
70
|
[key in TimelineAxis]: TimelineTicksConfig[];
|
|
50
71
|
};
|
|
@@ -77,6 +98,12 @@ export type TimelineMilestoneEvent = {
|
|
|
77
98
|
size?: number;
|
|
78
99
|
[key: string]: any;
|
|
79
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* {@link TimelineBarEvent}
|
|
103
|
+
* {@link TimelineRangeEvent}
|
|
104
|
+
* {@link TimelineCountEvent}
|
|
105
|
+
* {@link TimelineMilestoneEvent}
|
|
106
|
+
*/
|
|
80
107
|
export type TimelineEvent = TimelineBarEvent | TimelineRangeEvent | TimelineCountEvent | TimelineMilestoneEvent;
|
|
81
108
|
export declare enum TimelineChartType {
|
|
82
109
|
bars = "bars",
|
|
@@ -85,6 +112,10 @@ export declare enum TimelineChartType {
|
|
|
85
112
|
barChart = "barGraph",
|
|
86
113
|
milestones = "milestones"
|
|
87
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* {@link TimelineEvent}
|
|
117
|
+
* {@link TimelineChartType}
|
|
118
|
+
* */
|
|
88
119
|
export type TimelineEventsGroup = {
|
|
89
120
|
events: Array<TimelineEvent>;
|
|
90
121
|
label: string;
|
|
@@ -102,6 +133,9 @@ export type TimelineEventsGroup = {
|
|
|
102
133
|
bottom?: boolean;
|
|
103
134
|
barBorderRadius?: number;
|
|
104
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* {@link TimelineEventsGroup}
|
|
138
|
+
* */
|
|
105
139
|
export type TimelineEventsByType = {
|
|
106
140
|
[eventsType: string]: TimelineEventsGroup;
|
|
107
141
|
};
|
|
@@ -128,9 +162,11 @@ export type TimelineInterval = {
|
|
|
128
162
|
endDate: Date | string | number;
|
|
129
163
|
};
|
|
130
164
|
export type HeatmapBarItem = {
|
|
165
|
+
id?: string | number;
|
|
131
166
|
name: string;
|
|
132
167
|
count: number;
|
|
133
168
|
value: string | number;
|
|
169
|
+
itemClass?: string | Record<string, boolean>;
|
|
134
170
|
};
|
|
135
171
|
export type HoursHeatmapChartItem = {
|
|
136
172
|
count: number;
|
|
@@ -140,16 +176,21 @@ export type GlobalSearchMatch = {
|
|
|
140
176
|
path: Array<string>;
|
|
141
177
|
value: string | number | boolean;
|
|
142
178
|
};
|
|
179
|
+
/**
|
|
180
|
+
* {@link GlobalSearchMatch}
|
|
181
|
+
* */
|
|
143
182
|
export type GlobalSearchResult = {
|
|
144
183
|
index: number;
|
|
145
184
|
matches: Array<GlobalSearchMatch>;
|
|
146
185
|
};
|
|
147
186
|
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
187
|
+
/** @ignore */
|
|
148
188
|
export interface FullscreenHTMLElement extends HTMLElement {
|
|
149
189
|
mozRequestFullScreen?: () => Promise<void>;
|
|
150
190
|
webkitRequestFullScreen?: () => Promise<void>;
|
|
151
191
|
msRequestFullscreen?: () => Promise<void>;
|
|
152
192
|
}
|
|
193
|
+
/** @ignore */
|
|
153
194
|
export interface FullscreenDocument extends Document {
|
|
154
195
|
mozCancelFullScreen?: () => Promise<void>;
|
|
155
196
|
webkitCancelFullScreen?: () => Promise<void>;
|
|
@@ -161,5 +202,91 @@ export interface FullscreenDocument extends Document {
|
|
|
161
202
|
msFullscreenEnabled: boolean;
|
|
162
203
|
mozFullScreenEnabled: boolean;
|
|
163
204
|
}
|
|
205
|
+
export type D3TimestampParams = {
|
|
206
|
+
timestamp: string | Date | number;
|
|
207
|
+
timezone?: string;
|
|
208
|
+
};
|
|
209
|
+
export type D3DateParams = {
|
|
210
|
+
date: Date | string;
|
|
211
|
+
timezone?: string;
|
|
212
|
+
};
|
|
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
|
+
};
|
|
164
291
|
declare const _default: {};
|
|
165
292
|
export default _default;
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function isFullScreen(): boolean;
|
|
2
|
+
export declare function makeFullScreen(element: HTMLElement): Promise<unknown>;
|
|
3
|
+
export declare function exitFullScreen(): Promise<void | null>;
|
|
4
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;
|
|
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[];
|