@evercam/ui 0.0.52-beta.1 → 0.0.52-beta.11
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/dist/attributes.json +14 -0
- package/dist/index.mjs +795 -745
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +11 -4
- package/dist/src/index.d.ts +9 -2
- package/dist/src/types.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/tags.json +4 -1
- package/dist/web-types.json +31 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as d3 from "d3";
|
|
2
|
-
import Vue from "vue";
|
|
3
2
|
import { D3ZoomEvent } from "d3";
|
|
4
|
-
import
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
import { TimelineAxesConfig, TimelineAxis, TimelineCountEvent, TimelineEvent, TimelineEventsByType, TimelineIntervalChangeTrigger, TimelinePrecision, TimelineTicksConfig, Timestamp } from '../types';
|
|
5
5
|
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>>, {
|
|
6
6
|
tooltip: HTMLElement;
|
|
7
7
|
cursor: HTMLElement;
|
|
@@ -87,6 +87,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
87
87
|
handleLabelMouseOver(groupType: string): void;
|
|
88
88
|
handleLabelMouseLeave(groupType: string): void;
|
|
89
89
|
handleZoom(event: D3ZoomEvent<SVGSVGElement, any>): void;
|
|
90
|
+
panToTimestamp(targetTimestamp: string): void;
|
|
90
91
|
emitCurtainChange(): void;
|
|
91
92
|
calculateDateRangeFromCurtains(): {
|
|
92
93
|
startDate: Date;
|
|
@@ -142,12 +143,15 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
142
143
|
color: string;
|
|
143
144
|
type: string;
|
|
144
145
|
}): void;
|
|
145
|
-
drawBarsChart({ events, gElement, color, type, }: {
|
|
146
|
+
drawBarsChart({ events, gElement, color, yOffset, type, }: {
|
|
146
147
|
events: TimelineEvent[];
|
|
147
148
|
gElement: d3.Selection<SVGGElement, any, any, any>;
|
|
148
149
|
color: string;
|
|
150
|
+
yOffset: number;
|
|
149
151
|
type: string;
|
|
150
152
|
}): void;
|
|
153
|
+
onBarChartBarMouseOver(container: d3.Selection<SVGGElement, any, any, any>, eventType: string, color: any): void;
|
|
154
|
+
onBarChartBarMouseOut(container: d3.Selection<SVGGElement, any, any, any>, eventType: string): void;
|
|
151
155
|
drawTextLabel({ gElement, yPosition, color, label, }: {
|
|
152
156
|
gElement: d3.Selection<SVGGElement, any, any, any>;
|
|
153
157
|
yPosition: number;
|
|
@@ -163,7 +167,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
163
167
|
endDate: string;
|
|
164
168
|
};
|
|
165
169
|
getFormattedTimestamp(timestamp: Timestamp): string;
|
|
166
|
-
fillTimeGaps(events: TimelineEvent[]): (import('../types').TimelineBarEvent | import('../types').TimelineRangeEvent | {
|
|
170
|
+
fillTimeGaps(events: TimelineEvent[]): (import('../types').TimelineBarEvent | import('../types').TimelineRangeEvent | TimelineCountEvent | {
|
|
167
171
|
timestamp: any;
|
|
168
172
|
count: number;
|
|
169
173
|
})[];
|
|
@@ -209,5 +213,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
209
213
|
minZoom: number;
|
|
210
214
|
maxZoom: number;
|
|
211
215
|
cursorTimestamp: string | undefined;
|
|
216
|
+
selectedClass: string | undefined;
|
|
217
|
+
panOnDateClick: boolean;
|
|
218
|
+
panTransitionDuration: number;
|
|
212
219
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
213
220
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -256,6 +256,7 @@ export declare const components: {
|
|
|
256
256
|
handleLabelMouseOver(groupType: string): void;
|
|
257
257
|
handleLabelMouseLeave(groupType: string): void;
|
|
258
258
|
handleZoom(event: import("d3-zoom").D3ZoomEvent<SVGSVGElement, any>): void;
|
|
259
|
+
panToTimestamp(targetTimestamp: string): void;
|
|
259
260
|
emitCurtainChange(): void;
|
|
260
261
|
calculateDateRangeFromCurtains(): {
|
|
261
262
|
startDate: Date;
|
|
@@ -311,12 +312,15 @@ export declare const components: {
|
|
|
311
312
|
color: string;
|
|
312
313
|
type: string;
|
|
313
314
|
}): void;
|
|
314
|
-
drawBarsChart({ events, gElement, color, type, }: {
|
|
315
|
+
drawBarsChart({ events, gElement, color, yOffset, type, }: {
|
|
315
316
|
events: import('./types').TimelineEvent[];
|
|
316
317
|
gElement: import("d3-selection").Selection<SVGGElement, any, any, any>;
|
|
317
318
|
color: string;
|
|
319
|
+
yOffset: number;
|
|
318
320
|
type: string;
|
|
319
321
|
}): void;
|
|
322
|
+
onBarChartBarMouseOver(container: import("d3-selection").Selection<SVGGElement, any, any, any>, eventType: string, color: any): void;
|
|
323
|
+
onBarChartBarMouseOut(container: import("d3-selection").Selection<SVGGElement, any, any, any>, eventType: string): void;
|
|
320
324
|
drawTextLabel({ gElement, yPosition, color, label, }: {
|
|
321
325
|
gElement: import("d3-selection").Selection<SVGGElement, any, any, any>;
|
|
322
326
|
yPosition: number;
|
|
@@ -332,7 +336,7 @@ export declare const components: {
|
|
|
332
336
|
endDate: string;
|
|
333
337
|
};
|
|
334
338
|
getFormattedTimestamp(timestamp: import('./types').Timestamp): string;
|
|
335
|
-
fillTimeGaps(events: import('./types').TimelineEvent[]): (import('./types').TimelineBarEvent | import('./types').TimelineRangeEvent | {
|
|
339
|
+
fillTimeGaps(events: import('./types').TimelineEvent[]): (import('./types').TimelineBarEvent | import('./types').TimelineRangeEvent | import('./types').TimelineCountEvent | {
|
|
336
340
|
timestamp: any;
|
|
337
341
|
count: number;
|
|
338
342
|
})[];
|
|
@@ -378,6 +382,9 @@ export declare const components: {
|
|
|
378
382
|
minZoom: number;
|
|
379
383
|
maxZoom: number;
|
|
380
384
|
cursorTimestamp: string | undefined;
|
|
385
|
+
selectedClass: string | undefined;
|
|
386
|
+
panOnDateClick: boolean;
|
|
387
|
+
panTransitionDuration: number;
|
|
381
388
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
382
389
|
EVideoEmbed: import("vue").DefineComponent<{
|
|
383
390
|
videoUrl: {
|
package/dist/src/types.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type Timestamp = Date | string | number;
|
|
|
51
51
|
export type TimelineBarEvent = {
|
|
52
52
|
timestamp: string | Date;
|
|
53
53
|
color?: string;
|
|
54
|
+
className?: string;
|
|
54
55
|
text?: string;
|
|
55
56
|
[key: string]: any;
|
|
56
57
|
};
|
|
@@ -62,6 +63,7 @@ export type TimelineRangeEvent = {
|
|
|
62
63
|
export type TimelineCountEvent = {
|
|
63
64
|
timestamp: string | Date;
|
|
64
65
|
count: number;
|
|
66
|
+
className?: string;
|
|
65
67
|
[key: string]: any;
|
|
66
68
|
};
|
|
67
69
|
export type TimelineEvent = TimelineBarEvent | TimelineRangeEvent | TimelineCountEvent;
|
|
@@ -85,6 +87,7 @@ export type TimelineEventsByType = {
|
|
|
85
87
|
export type TimelinePrecision = "hour" | "day" | "week" | "month" | "year";
|
|
86
88
|
export declare enum TimelineIntervalChangeTrigger {
|
|
87
89
|
zoom = "zoom",
|
|
90
|
+
autoPan = "autoPan",
|
|
88
91
|
initial = "initial"
|
|
89
92
|
}
|
|
90
93
|
declare const _default: {};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-dd8ff405]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-dd8ff405]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-dd8ff405]{max-width:initial;width:100%;max-height:100vh}video[data-v-dd8ff405]{width:100%;height:inherit}.video-controls-container[data-v-dd8ff405]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-dd8ff405]{display:none}.video-controls-container[data-v-dd8ff405]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-dd8ff405],.video-container:focus-within .video-controls-container[data-v-dd8ff405],.video-container.paused .video-controls-container[data-v-dd8ff405]{opacity:1}.video-controls-container .controls[data-v-dd8ff405]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-dd8ff405]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-dd8ff405]:hover{opacity:1}.duration-container[data-v-dd8ff405]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-dd8ff405]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-dd8ff405]{width:50px}.timeline-container[data-v-dd8ff405]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-dd8ff405]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-dd8ff405]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-dd8ff405]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-dd8ff405]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-dd8ff405]{display:block}.video-container.scrubbing .timeline[data-v-dd8ff405]:before,.timeline-container:hover .timeline[data-v-dd8ff405]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-dd8ff405],.timeline-container:hover .thumb-indicator[data-v-dd8ff405]{--scale: 1}.video-container.scrubbing .timeline[data-v-dd8ff405],.timeline-container:hover .timeline[data-v-dd8ff405]{height:100%}.e-timeline svg{display:block}.e-timeline .x-axis-overview .domain,.e-timeline .x-axis-detailed .domain,.e-timeline .x-axis-overviewBackground .domain,.e-timeline .x-axis-detailedBackground .domain{display:none}.e-timeline .x-axis-detailedBackground .domain,.e-timeline .x-axis-detailedBackground text{display:none}.e-timeline .x-axis-overview>g.tick>line{opacity:.1;stroke-width:3;stroke-linecap:round}.e-timeline .x-axis-detailed>g.tick>line{opacity:.1;stroke-linecap:round}.e-timeline .x-axis-detailedBackground>g.tick>line{opacity:.075;stroke-linecap:round}.e-timeline--dark .tick line{stroke:#fff}.e-timeline--dark .tick text{fill:#fff}@keyframes moveGradient{0%{transform:translate(-50%)}to{transform:translate(100%)}}@keyframes pulse-rect{0%{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}50%{filter:saturate(.5) drop-shadow(0 0 0 #0000)}to{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}}@keyframes pulse-circle{0%{r:4px}50%{r:1px}to{r:4px}}.loading-indicator{animation:moveGradient 1.5s ease-in infinite}.line-graph-dot--active{animation:pulse-circle 1s ease-in-out infinite}.event-rect--hovered{animation:pulse-rect 1s ease-in-out infinite}
|
|
1
|
+
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-dd8ff405]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-dd8ff405]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-dd8ff405]{max-width:initial;width:100%;max-height:100vh}video[data-v-dd8ff405]{width:100%;height:inherit}.video-controls-container[data-v-dd8ff405]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-dd8ff405]{display:none}.video-controls-container[data-v-dd8ff405]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-dd8ff405],.video-container:focus-within .video-controls-container[data-v-dd8ff405],.video-container.paused .video-controls-container[data-v-dd8ff405]{opacity:1}.video-controls-container .controls[data-v-dd8ff405]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-dd8ff405]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-dd8ff405]:hover{opacity:1}.duration-container[data-v-dd8ff405]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-dd8ff405]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-dd8ff405]{width:50px}.timeline-container[data-v-dd8ff405]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-dd8ff405]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-dd8ff405]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-dd8ff405]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-dd8ff405]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-dd8ff405]{display:block}.video-container.scrubbing .timeline[data-v-dd8ff405]:before,.timeline-container:hover .timeline[data-v-dd8ff405]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-dd8ff405],.timeline-container:hover .thumb-indicator[data-v-dd8ff405]{--scale: 1}.video-container.scrubbing .timeline[data-v-dd8ff405],.timeline-container:hover .timeline[data-v-dd8ff405]{height:100%}.e-timeline svg{display:block}.e-timeline .x-axis-overview .domain,.e-timeline .x-axis-detailed .domain,.e-timeline .x-axis-overviewBackground .domain,.e-timeline .x-axis-detailedBackground .domain{display:none}.e-timeline .x-axis-detailedBackground .domain,.e-timeline .x-axis-detailedBackground text{display:none}.e-timeline .x-axis-overview>g.tick>line{opacity:.1;stroke-width:3;stroke-linecap:round}.e-timeline .x-axis-detailed>g.tick>line{opacity:.1;stroke-linecap:round}.e-timeline .x-axis-detailedBackground>g.tick>line{opacity:.075;stroke-linecap:round}.e-timeline--dark .tick line{stroke:#fff}.e-timeline--dark .tick text{fill:#fff}@keyframes moveGradient{0%{transform:translate(-50%)}to{transform:translate(100%)}}@keyframes pulse-rect{0%{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}50%{filter:saturate(.5) drop-shadow(0 0 0 #0000)}to{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}}@keyframes pulse-circle{0%{r:4px}50%{r:1px}to{r:4px}}.loading-indicator{animation:moveGradient 1.5s ease-in infinite}.line-graph-dot--active{animation:pulse-circle 1s ease-in-out infinite}.event-rect--hovered{animation:pulse-rect 1s ease-in-out infinite}@keyframes dash{0%{filter:saturate(1) drop-shadow(0 0 0 #0000)}50%{stroke-width:2px;filter:saturate(2.5) drop-shadow(0 0 0 #0006)}to{filter:saturate(1) drop-shadow(0 0 0 #0000)}}.line-graph-group--highlighted path{animation:dash 1s ease-in-out infinite}.e-timeline--dragging{cursor:ew-resize}.curtain{cursor:ew-resize;fill:#3332;stroke-width:1px;stroke:#3338;transition:stroke-width .2s}.e-timeline--dragging .curtain{stroke-width:3px}.e-timeline--dark .curtain{fill:#fff3;stroke:#fff7}.event-bar-hover-zone{cursor:pointer}.video-embed[data-v-0ecf4a71]{position:relative;width:100%!important;padding-bottom:56.25%}.video-embed iframe[data-v-0ecf4a71]{position:absolute;top:0;left:0;width:100%;height:100%}
|
package/dist/tags.json
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@evercam/ui",
|
|
5
|
-
"version": "0.0.52-beta.
|
|
5
|
+
"version": "0.0.52-beta.11",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -705,6 +705,36 @@
|
|
|
705
705
|
"any"
|
|
706
706
|
]
|
|
707
707
|
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "selected-class",
|
|
711
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
712
|
+
"default": "undefined",
|
|
713
|
+
"value": {
|
|
714
|
+
"kind": "expression",
|
|
715
|
+
"type": [
|
|
716
|
+
"string",
|
|
717
|
+
"any"
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "pan-on-date-click",
|
|
723
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
724
|
+
"default": "false",
|
|
725
|
+
"value": {
|
|
726
|
+
"kind": "expression",
|
|
727
|
+
"type": "boolean"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "pan-transition-duration",
|
|
732
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
733
|
+
"default": "500",
|
|
734
|
+
"value": {
|
|
735
|
+
"kind": "expression",
|
|
736
|
+
"type": "number"
|
|
737
|
+
}
|
|
708
738
|
}
|
|
709
739
|
]
|
|
710
740
|
},
|