@evercam/ui 0.0.47-beta.4 → 0.0.47-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.
- package/dist/index.mjs +70 -52
- 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 +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils.d.ts +3 -2
- package/dist/web-types.json +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3916,14 +3916,14 @@ const mt = {
|
|
|
3916
3916
|
pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
|
-
}, Ke = ht(gt), vt = Ke.theme.fontSize, yt = Ke.theme.colors,
|
|
3919
|
+
}, Ke = ht(gt), vt = Ke.theme.fontSize, yt = Ke.theme.colors, rr = [
|
|
3920
3920
|
T.dot,
|
|
3921
3921
|
T.xs,
|
|
3922
3922
|
T.sm,
|
|
3923
3923
|
T.md,
|
|
3924
3924
|
T.lg,
|
|
3925
3925
|
T.xl
|
|
3926
|
-
],
|
|
3926
|
+
], nr = [
|
|
3927
3927
|
T.xs,
|
|
3928
3928
|
T.sm,
|
|
3929
3929
|
T.md,
|
|
@@ -3945,14 +3945,14 @@ const mt = {
|
|
|
3945
3945
|
T["7xl"],
|
|
3946
3946
|
T["8xl"],
|
|
3947
3947
|
T["9xl"]
|
|
3948
|
-
],
|
|
3948
|
+
], ir = [
|
|
3949
3949
|
j.warning,
|
|
3950
3950
|
j.error,
|
|
3951
3951
|
j.info,
|
|
3952
3952
|
j.success,
|
|
3953
3953
|
j.primary,
|
|
3954
3954
|
j.default
|
|
3955
|
-
],
|
|
3955
|
+
], sr = [
|
|
3956
3956
|
"play",
|
|
3957
3957
|
"pause",
|
|
3958
3958
|
"ended",
|
|
@@ -4281,31 +4281,43 @@ var Pt = function() {
|
|
|
4281
4281
|
);
|
|
4282
4282
|
const Ht = Lt.exports;
|
|
4283
4283
|
function Qe() {
|
|
4284
|
-
|
|
4284
|
+
const e = document;
|
|
4285
|
+
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
4285
4286
|
}
|
|
4286
4287
|
function jt(e) {
|
|
4287
4288
|
if (Qe())
|
|
4288
|
-
return new Promise((
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4289
|
+
return new Promise((r) => r(null));
|
|
4290
|
+
const t = e;
|
|
4291
|
+
if (t.requestFullscreen)
|
|
4292
|
+
return t == null ? void 0 : t.requestFullscreen();
|
|
4293
|
+
if (t.mozRequestFullScreen)
|
|
4294
|
+
return t == null ? void 0 : t.mozRequestFullScreen();
|
|
4295
|
+
if (t.webkitRequestFullScreen)
|
|
4296
|
+
return t == null ? void 0 : t.webkitRequestFullScreen();
|
|
4297
|
+
if (t.msRequestFullscreen)
|
|
4298
|
+
return t == null ? void 0 : t.msRequestFullscreen();
|
|
4297
4299
|
}
|
|
4298
4300
|
function Bt() {
|
|
4299
4301
|
if (!Qe())
|
|
4300
|
-
return new Promise((
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4302
|
+
return new Promise((t) => t(null));
|
|
4303
|
+
const e = document;
|
|
4304
|
+
if (e.exitFullscreen)
|
|
4305
|
+
return e.exitFullscreen();
|
|
4306
|
+
if (e.mozCancelFullScreen)
|
|
4307
|
+
return e.mozCancelFullScreen();
|
|
4308
|
+
if (e.webkitCancelFullScreen)
|
|
4309
|
+
return e.webkitCancelFullScreen();
|
|
4310
|
+
if (e.msExitFullscreen)
|
|
4311
|
+
return e.msExitFullscreen();
|
|
4312
|
+
}
|
|
4313
|
+
function Wt(e, t) {
|
|
4314
|
+
let r = null;
|
|
4315
|
+
return function(...n) {
|
|
4316
|
+
const a = this;
|
|
4317
|
+
r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
4318
|
+
r = null, e.apply(a, n);
|
|
4319
|
+
}, t || 1e3);
|
|
4320
|
+
};
|
|
4309
4321
|
}
|
|
4310
4322
|
const le = new Intl.NumberFormat(void 0, {
|
|
4311
4323
|
minimumIntegerDigits: 2
|
|
@@ -4326,7 +4338,7 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4326
4338
|
return n === 0 ? `${r}:${le.format(t)}` : `${n}:${le.format(
|
|
4327
4339
|
r
|
|
4328
4340
|
)}:${le.format(t)}`;
|
|
4329
|
-
},
|
|
4341
|
+
}, Rt = q.extend({
|
|
4330
4342
|
name: "VideoPlayer",
|
|
4331
4343
|
components: {
|
|
4332
4344
|
ESpinner: Je
|
|
@@ -4581,7 +4593,7 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4581
4593
|
}
|
|
4582
4594
|
}
|
|
4583
4595
|
});
|
|
4584
|
-
var
|
|
4596
|
+
var Ut = function() {
|
|
4585
4597
|
var t = this, r = t._self._c;
|
|
4586
4598
|
return r("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [r("video", t._g(t._b({ ref: "player", attrs: { controls: !1, preload: "auto" }, on: { ended: t.handleEnded, click: t.togglePlay, loadedmetadata: t.getDuration, timeupdate: t.handleTimeUpdate, loadeddata: t.handleLoading } }, "video", t.videoOptions, !1), t.videoListeners), t._l(t.sourceItems, function(n) {
|
|
4587
4599
|
return r("source", { key: n.src, attrs: { src: n.src, type: n.type }, on: { error: t.handle404Error } });
|
|
@@ -4592,20 +4604,20 @@ var Rt = function() {
|
|
|
4592
4604
|
"fa-expand": !t.isFullscreen,
|
|
4593
4605
|
"fa-compress": t.isFullscreen
|
|
4594
4606
|
}, on: { click: t.toggleFullscreenMode } })])])]);
|
|
4595
|
-
},
|
|
4607
|
+
}, Nt = [function() {
|
|
4596
4608
|
var e = this, t = e._self._c;
|
|
4597
4609
|
return t("div", { staticClass: "timeline" }, [t("div", { staticClass: "thumb-indicator" })]);
|
|
4598
|
-
}],
|
|
4599
|
-
Wt,
|
|
4610
|
+
}], It = /* @__PURE__ */ X(
|
|
4600
4611
|
Rt,
|
|
4601
4612
|
Ut,
|
|
4613
|
+
Nt,
|
|
4602
4614
|
!1,
|
|
4603
4615
|
null,
|
|
4604
4616
|
"99c9162d",
|
|
4605
4617
|
null,
|
|
4606
4618
|
null
|
|
4607
4619
|
);
|
|
4608
|
-
const
|
|
4620
|
+
const Vt = It.exports, re = (e) => {
|
|
4609
4621
|
const t = u.utcFormat("%_d")(e), n = {
|
|
4610
4622
|
1: "st",
|
|
4611
4623
|
2: "nd",
|
|
@@ -4655,7 +4667,7 @@ const It = Nt.exports, re = (e) => {
|
|
|
4655
4667
|
infinity: 1 / 0
|
|
4656
4668
|
};
|
|
4657
4669
|
var Se, Te, Ee, $e, De, ke, Oe, Ae;
|
|
4658
|
-
const
|
|
4670
|
+
const qt = {
|
|
4659
4671
|
[ee.overview]: [
|
|
4660
4672
|
{
|
|
4661
4673
|
precision: S._30_seconds,
|
|
@@ -4964,7 +4976,7 @@ const Vt = {
|
|
|
4964
4976
|
unbind(e) {
|
|
4965
4977
|
e.__resizeObserver__ && (e.__resizeObserver__.disconnect(), delete e.__resizeObserver__);
|
|
4966
4978
|
}
|
|
4967
|
-
},
|
|
4979
|
+
}, Xt = [
|
|
4968
4980
|
{
|
|
4969
4981
|
name: "resize-observer",
|
|
4970
4982
|
definition: et
|
|
@@ -4987,7 +4999,7 @@ const Vt = {
|
|
|
4987
4999
|
}, Q = {
|
|
4988
5000
|
areaGradient: "area-gradient",
|
|
4989
5001
|
loadingGradient: "loading-gradient"
|
|
4990
|
-
},
|
|
5002
|
+
}, Yt = q.extend({
|
|
4991
5003
|
name: "ETimeline",
|
|
4992
5004
|
directives: {
|
|
4993
5005
|
resizeObserver: et
|
|
@@ -4999,7 +5011,7 @@ const Vt = {
|
|
|
4999
5011
|
},
|
|
5000
5012
|
xAxesConfig: {
|
|
5001
5013
|
type: Object,
|
|
5002
|
-
default: () =>
|
|
5014
|
+
default: () => qt
|
|
5003
5015
|
},
|
|
5004
5016
|
dark: {
|
|
5005
5017
|
type: Boolean,
|
|
@@ -5101,7 +5113,9 @@ const Vt = {
|
|
|
5101
5113
|
leftCurtainWidth: 50,
|
|
5102
5114
|
rightCurtainWidth: 50,
|
|
5103
5115
|
isHoveringCurtain: !1,
|
|
5104
|
-
isDraggingCurtain: !1
|
|
5116
|
+
isDraggingCurtain: !1,
|
|
5117
|
+
debouncedOnResize: () => {
|
|
5118
|
+
}
|
|
5105
5119
|
};
|
|
5106
5120
|
},
|
|
5107
5121
|
computed: {
|
|
@@ -5234,6 +5248,9 @@ const Vt = {
|
|
|
5234
5248
|
this.isHoveringTimeline = !1;
|
|
5235
5249
|
}
|
|
5236
5250
|
},
|
|
5251
|
+
created() {
|
|
5252
|
+
this.debouncedOnResize = Wt(this.handleResize, 100);
|
|
5253
|
+
},
|
|
5237
5254
|
mounted() {
|
|
5238
5255
|
this.initTimeline();
|
|
5239
5256
|
},
|
|
@@ -5342,7 +5359,7 @@ const Vt = {
|
|
|
5342
5359
|
};
|
|
5343
5360
|
},
|
|
5344
5361
|
handleResize({ contentRect: e }) {
|
|
5345
|
-
this.svg && (this.svg.attr("width", e.width), this.
|
|
5362
|
+
this.svg && (this.svg.attr("width", e.width), this.updateAndRedrawTimeline());
|
|
5346
5363
|
},
|
|
5347
5364
|
handleDarkModeChange() {
|
|
5348
5365
|
if (!this.showLabels)
|
|
@@ -5754,9 +5771,9 @@ const Vt = {
|
|
|
5754
5771
|
}
|
|
5755
5772
|
}
|
|
5756
5773
|
});
|
|
5757
|
-
var
|
|
5774
|
+
var Zt = function() {
|
|
5758
5775
|
var t = this, r = t._self._c;
|
|
5759
|
-
return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.
|
|
5776
|
+
return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.debouncedOnResize, expression: "debouncedOnResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden e-overflow-hidden" }), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isInteractingWithCurtain, expression: "isHoveringTimeline && !isInteractingWithCurtain" }], ref: "cursor", staticClass: "e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none" }), r("div", { ref: "tooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("tooltip", function() {
|
|
5760
5777
|
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isHoveringEvent && !t.isInteractingWithCurtain && !t.cursorTimestamp, expression: `
|
|
5761
5778
|
isHoveringTimeline &&
|
|
5762
5779
|
!isHoveringEvent &&
|
|
@@ -5768,50 +5785,50 @@ var Yt = function() {
|
|
|
5768
5785
|
return r("div", { key: a }, [r("strong", [t._v(t._s(n.type) + " Count")]), t._v(": " + t._s(n.count) + " ")]);
|
|
5769
5786
|
})], 2) : t.hoveredEvent ? r("div", [t.hoveredEvent.timestamp ? r("div", [r("strong", [t._v("Event time")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " ")]) : t._e(), t.hoveredEvent.startDate ? r("div", [r("strong", [t._v("From")]), t._v(":" + t._s(t.hoveredEvent.startDate) + " ")]) : t._e(), t.hoveredEvent.endDate ? r("div", [r("strong", [t._v("To")]), t._v(":" + t._s(t.hoveredEvent.endDate) + " ")]) : t._e()]) : t._e()]) : t._e()];
|
|
5770
5787
|
}, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)]);
|
|
5771
|
-
},
|
|
5772
|
-
Xt,
|
|
5788
|
+
}, Kt = [], Jt = /* @__PURE__ */ X(
|
|
5773
5789
|
Yt,
|
|
5774
5790
|
Zt,
|
|
5791
|
+
Kt,
|
|
5775
5792
|
!1,
|
|
5776
5793
|
null,
|
|
5777
5794
|
null,
|
|
5778
5795
|
null,
|
|
5779
5796
|
null
|
|
5780
5797
|
);
|
|
5781
|
-
const
|
|
5798
|
+
const Qt = Jt.exports, Ce = {
|
|
5782
5799
|
EAvatar: ut,
|
|
5783
5800
|
EBadge: Fe,
|
|
5784
5801
|
EIcon: St,
|
|
5785
5802
|
ESpinner: Je,
|
|
5786
5803
|
ERow: Mt,
|
|
5787
5804
|
ECol: Ht,
|
|
5788
|
-
EVideoPlayer:
|
|
5789
|
-
ETimeline:
|
|
5790
|
-
},
|
|
5805
|
+
EVideoPlayer: Vt,
|
|
5806
|
+
ETimeline: Qt
|
|
5807
|
+
}, ar = {
|
|
5791
5808
|
install(e) {
|
|
5792
5809
|
Object.keys(Ce).forEach((t) => {
|
|
5793
5810
|
e.component(t, Ce[t]);
|
|
5794
|
-
}),
|
|
5811
|
+
}), Xt.forEach(({ name: t, definition: r }) => {
|
|
5795
5812
|
e.directive(t, r);
|
|
5796
5813
|
});
|
|
5797
5814
|
}
|
|
5798
5815
|
};
|
|
5799
5816
|
export {
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5817
|
+
nr as AvatarSizes,
|
|
5818
|
+
ir as BadgeColors,
|
|
5819
|
+
rr as BadgeSizes,
|
|
5803
5820
|
j as BaseColor,
|
|
5804
5821
|
yt as Colors,
|
|
5805
|
-
|
|
5822
|
+
Xt as DirectivesMap,
|
|
5806
5823
|
ut as EAvatar,
|
|
5807
5824
|
Fe as EBadge,
|
|
5808
5825
|
Ht as ECol,
|
|
5809
5826
|
St as EIcon,
|
|
5810
5827
|
Mt as ERow,
|
|
5811
5828
|
Je as ESpinner,
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5829
|
+
Qt as ETimeline,
|
|
5830
|
+
sr as EVENTS,
|
|
5831
|
+
Vt as EVideoPlayer,
|
|
5815
5832
|
bt as IconSizes,
|
|
5816
5833
|
et as ResizeObserverDirective,
|
|
5817
5834
|
T as Size,
|
|
@@ -5819,7 +5836,8 @@ export {
|
|
|
5819
5836
|
ee as TimelineAxis,
|
|
5820
5837
|
te as TimelineChartType,
|
|
5821
5838
|
Ce as components,
|
|
5822
|
-
|
|
5839
|
+
Wt as debounce,
|
|
5840
|
+
ar as default,
|
|
5823
5841
|
Bt as exitFullScreen,
|
|
5824
5842
|
Ke as fullConfig,
|
|
5825
5843
|
Qe as isFullScreen,
|