@evercam/ui 0.0.52-beta.5 → 0.0.52-beta.7
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 +10 -0
- package/dist/index.mjs +48 -33
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/tags.json +3 -1
- package/dist/web-types.json +19 -1
- package/package.json +1 -1
package/dist/attributes.json
CHANGED
|
@@ -278,5 +278,15 @@
|
|
|
278
278
|
"ETimeline/cursor-timestamp": {
|
|
279
279
|
"type": "string|any",
|
|
280
280
|
"description": ""
|
|
281
|
+
},
|
|
282
|
+
"ETimeline/pan-on-date-click": {
|
|
283
|
+
"type": "boolean",
|
|
284
|
+
"description": "",
|
|
285
|
+
"default": false
|
|
286
|
+
},
|
|
287
|
+
"ETimeline/pan-transition-duration": {
|
|
288
|
+
"type": "number",
|
|
289
|
+
"description": "",
|
|
290
|
+
"default": 500
|
|
281
291
|
}
|
|
282
292
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -167,7 +167,7 @@ const ct = ut.exports;
|
|
|
167
167
|
function dt(e) {
|
|
168
168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var ze = {}, Pe = {}, me = {};
|
|
171
171
|
(function(e) {
|
|
172
172
|
Object.defineProperty(e, "__esModule", {
|
|
173
173
|
value: !0
|
|
@@ -398,8 +398,8 @@ var Le = {};
|
|
|
398
398
|
];
|
|
399
399
|
}
|
|
400
400
|
})(Le);
|
|
401
|
-
var pe = {}, ne = {}, ge = { exports: {} },
|
|
402
|
-
return { isColorSupported: !1, reset:
|
|
401
|
+
var pe = {}, ne = {}, ge = { exports: {} }, z = String, Ge = function() {
|
|
402
|
+
return { isColorSupported: !1, reset: z, bold: z, dim: z, italic: z, underline: z, inverse: z, hidden: z, strikethrough: z, black: z, red: z, green: z, yellow: z, blue: z, magenta: z, cyan: z, white: z, gray: z, bgBlack: z, bgRed: z, bgGreen: z, bgYellow: z, bgBlue: z, bgMagenta: z, bgCyan: z, bgWhite: z };
|
|
403
403
|
};
|
|
404
404
|
ge.exports = Ge();
|
|
405
405
|
ge.exports.createColors = Ge;
|
|
@@ -912,8 +912,8 @@ var We = {}, ie = {};
|
|
|
912
912
|
return v.future === "all" || ((k = (b = v == null || (E = v.future) === null || E === void 0 ? void 0 : E[f]) !== null && b !== void 0 ? b : o[f]) !== null && k !== void 0 ? k : !1);
|
|
913
913
|
}
|
|
914
914
|
if (i.experimental.includes(f)) {
|
|
915
|
-
var A,
|
|
916
|
-
return v.experimental === "all" || ((H = (
|
|
915
|
+
var A, P, H;
|
|
916
|
+
return v.experimental === "all" || ((H = (P = v == null || (A = v.experimental) === null || A === void 0 ? void 0 : A[f]) !== null && P !== void 0 ? P : o[f]) !== null && H !== void 0 ? H : !1);
|
|
917
917
|
}
|
|
918
918
|
return !1;
|
|
919
919
|
}
|
|
@@ -1045,8 +1045,8 @@ var We = {}, ie = {};
|
|
|
1045
1045
|
})(),
|
|
1046
1046
|
extract: (() => {
|
|
1047
1047
|
let a = (() => {
|
|
1048
|
-
var f, E, b, k, A,
|
|
1049
|
-
return !((f = i.purge) === null || f === void 0) && f.extract ? i.purge.extract : !((E = i.content) === null || E === void 0) && E.extract ? i.content.extract : !((b = i.purge) === null || b === void 0 || (k = b.extract) === null || k === void 0) && k.DEFAULT ? i.purge.extract.DEFAULT : !((A = i.content) === null || A === void 0 || (
|
|
1048
|
+
var f, E, b, k, A, P, H, M, L, G;
|
|
1049
|
+
return !((f = i.purge) === null || f === void 0) && f.extract ? i.purge.extract : !((E = i.content) === null || E === void 0) && E.extract ? i.content.extract : !((b = i.purge) === null || b === void 0 || (k = b.extract) === null || k === void 0) && k.DEFAULT ? i.purge.extract.DEFAULT : !((A = i.content) === null || A === void 0 || (P = A.extract) === null || P === void 0) && P.DEFAULT ? i.content.extract.DEFAULT : !((H = i.purge) === null || H === void 0 || (M = H.options) === null || M === void 0) && M.extractors ? i.purge.options.extractors : !((L = i.content) === null || L === void 0 || (G = L.options) === null || G === void 0) && G.extractors ? i.content.options.extractors : {};
|
|
1050
1050
|
})(), u = {}, v = (() => {
|
|
1051
1051
|
var f, E, b, k;
|
|
1052
1052
|
if (!((f = i.purge) === null || f === void 0 || (E = f.options) === null || E === void 0) && E.defaultExtractor)
|
|
@@ -1911,7 +1911,7 @@ var ve = {}, ye = {}, Xe = {};
|
|
|
1911
1911
|
}
|
|
1912
1912
|
let s = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, o = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, i = /(?:\d+|\d*\.\d+)%?/, d = /(?:\s*,\s*|\s+)/, l = /\s*[,/]\s*/, a = /var\(--(?:[^ )]*?)\)/, u = new RegExp(`^(rgba?)\\(\\s*(${i.source}|${a.source})(?:${d.source}(${i.source}|${a.source}))?(?:${d.source}(${i.source}|${a.source}))?(?:${l.source}(${i.source}|${a.source}))?\\s*\\)$`), v = new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${a.source})(?:${d.source}(${i.source}|${a.source}))?(?:${d.source}(${i.source}|${a.source}))?(?:${l.source}(${i.source}|${a.source}))?\\s*\\)$`);
|
|
1913
1913
|
function f(b, { loose: k = !1 } = {}) {
|
|
1914
|
-
var A,
|
|
1914
|
+
var A, P;
|
|
1915
1915
|
if (typeof b != "string")
|
|
1916
1916
|
return null;
|
|
1917
1917
|
if (b = b.trim(), b === "transparent")
|
|
@@ -1967,12 +1967,12 @@ var ve = {}, ye = {}, Xe = {};
|
|
|
1967
1967
|
} : !k && G.length !== 3 || G.length < 3 && !G.some((R) => /^var\(.*?\)$/.test(R)) ? null : {
|
|
1968
1968
|
mode: L[1],
|
|
1969
1969
|
color: G,
|
|
1970
|
-
alpha: (A = L[5]) === null || A === void 0 || (
|
|
1970
|
+
alpha: (A = L[5]) === null || A === void 0 || (P = A.toString) === null || P === void 0 ? void 0 : P.call(A)
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
function E({ mode: b, color: k, alpha: A }) {
|
|
1974
|
-
let
|
|
1975
|
-
return b === "rgba" || b === "hsla" ? `${b}(${k.join(", ")}${
|
|
1974
|
+
let P = A !== void 0;
|
|
1975
|
+
return b === "rgba" || b === "hsla" ? `${b}(${k.join(", ")}${P ? `, ${A}` : ""})` : `${b}(${k.join(" ")}${P ? ` / ${A}` : ""})`;
|
|
1976
1976
|
}
|
|
1977
1977
|
})(ye);
|
|
1978
1978
|
(function(e) {
|
|
@@ -2230,13 +2230,13 @@ var be = {}, qe = {}, se = {};
|
|
|
2230
2230
|
function A(h) {
|
|
2231
2231
|
return h === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(h) || i(h);
|
|
2232
2232
|
}
|
|
2233
|
-
let
|
|
2233
|
+
let P = /* @__PURE__ */ new Set([
|
|
2234
2234
|
"thin",
|
|
2235
2235
|
"medium",
|
|
2236
2236
|
"thick"
|
|
2237
2237
|
]);
|
|
2238
2238
|
function H(h) {
|
|
2239
|
-
return
|
|
2239
|
+
return P.has(h);
|
|
2240
2240
|
}
|
|
2241
2241
|
function M(h) {
|
|
2242
2242
|
let w = (0, n.parseBoxShadowValue)(a(h));
|
|
@@ -2373,7 +2373,7 @@ var Ye = {};
|
|
|
2373
2373
|
return k;
|
|
2374
2374
|
},
|
|
2375
2375
|
asColor: function() {
|
|
2376
|
-
return
|
|
2376
|
+
return P;
|
|
2377
2377
|
},
|
|
2378
2378
|
asLookupValue: function() {
|
|
2379
2379
|
return H;
|
|
@@ -2446,7 +2446,7 @@ var Ye = {};
|
|
|
2446
2446
|
function A(y) {
|
|
2447
2447
|
return (0, s.normalize)(y.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function P(y, D = {}, { tailwindConfig: C = {} } = {}) {
|
|
2450
2450
|
var m;
|
|
2451
2451
|
if (((m = D.values) === null || m === void 0 ? void 0 : m[y]) !== void 0) {
|
|
2452
2452
|
var x;
|
|
@@ -2473,7 +2473,7 @@ var Ye = {};
|
|
|
2473
2473
|
}
|
|
2474
2474
|
let L = {
|
|
2475
2475
|
any: f,
|
|
2476
|
-
color:
|
|
2476
|
+
color: P,
|
|
2477
2477
|
url: M(s.url),
|
|
2478
2478
|
image: M(s.image),
|
|
2479
2479
|
length: M(s.length),
|
|
@@ -2605,7 +2605,7 @@ var Ze = {};
|
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function
|
|
2608
|
+
function P(m, ...x) {
|
|
2609
2609
|
return b(m) ? m(...x) : m;
|
|
2610
2610
|
}
|
|
2611
2611
|
function H(m) {
|
|
@@ -2642,7 +2642,7 @@ var Ze = {};
|
|
|
2642
2642
|
return k(x, m, (_, g) => !b(_) && !g.some(b) ? k({}, _, ...g, L) : ($, h) => k({}, ...[
|
|
2643
2643
|
_,
|
|
2644
2644
|
...g
|
|
2645
|
-
].map((w) =>
|
|
2645
|
+
].map((w) => P(w, $, h)), L));
|
|
2646
2646
|
}
|
|
2647
2647
|
function* R(m) {
|
|
2648
2648
|
let x = (0, i.toPath)(m);
|
|
@@ -2727,7 +2727,7 @@ var Ze = {};
|
|
|
2727
2727
|
plugins: D(m.map(($) => (g = $ == null ? void 0 : $.plugins) !== null && g !== void 0 ? g : []))
|
|
2728
2728
|
}, ...x));
|
|
2729
2729
|
}
|
|
2730
|
-
})(
|
|
2730
|
+
})(Pe);
|
|
2731
2731
|
var Ke = {}, ft = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
@@ -3775,7 +3775,7 @@ var Ke = {}, ft = {
|
|
|
3775
3775
|
return s;
|
|
3776
3776
|
}
|
|
3777
3777
|
});
|
|
3778
|
-
const t = /* @__PURE__ */ n(
|
|
3778
|
+
const t = /* @__PURE__ */ n(Pe), r = /* @__PURE__ */ n(Ke);
|
|
3779
3779
|
function n(o) {
|
|
3780
3780
|
return o && o.__esModule ? o : {
|
|
3781
3781
|
default: o
|
|
@@ -3788,8 +3788,8 @@ var Ke = {}, ft = {
|
|
|
3788
3788
|
...i
|
|
3789
3789
|
]);
|
|
3790
3790
|
}
|
|
3791
|
-
})(
|
|
3792
|
-
let ae =
|
|
3791
|
+
})(ze);
|
|
3792
|
+
let ae = ze;
|
|
3793
3793
|
var ht = (ae.__esModule ? ae : { default: ae }).default;
|
|
3794
3794
|
const mt = /* @__PURE__ */ dt(ht);
|
|
3795
3795
|
let oe = pe;
|
|
@@ -4162,7 +4162,7 @@ var At = function() {
|
|
|
4162
4162
|
null,
|
|
4163
4163
|
null
|
|
4164
4164
|
);
|
|
4165
|
-
const
|
|
4165
|
+
const zt = Mt.exports, Pt = q.extend({
|
|
4166
4166
|
props: {
|
|
4167
4167
|
alignSelf: {
|
|
4168
4168
|
type: String,
|
|
@@ -4270,7 +4270,7 @@ var Ht = function() {
|
|
|
4270
4270
|
var t = this, r = t._self._c;
|
|
4271
4271
|
return r("div", { staticClass: "e-col", class: t.colClasses }, [t._t("default")], 2);
|
|
4272
4272
|
}, Lt = [], Gt = /* @__PURE__ */ I(
|
|
4273
|
-
|
|
4273
|
+
Pt,
|
|
4274
4274
|
Ht,
|
|
4275
4275
|
Lt,
|
|
4276
4276
|
!1,
|
|
@@ -5090,6 +5090,14 @@ const qt = {
|
|
|
5090
5090
|
cursorTimestamp: {
|
|
5091
5091
|
type: [String, void 0],
|
|
5092
5092
|
default: void 0
|
|
5093
|
+
},
|
|
5094
|
+
panOnDateClick: {
|
|
5095
|
+
type: Boolean,
|
|
5096
|
+
default: !1
|
|
5097
|
+
},
|
|
5098
|
+
panTransitionDuration: {
|
|
5099
|
+
type: Number,
|
|
5100
|
+
default: 500
|
|
5093
5101
|
}
|
|
5094
5102
|
},
|
|
5095
5103
|
data() {
|
|
@@ -5408,6 +5416,13 @@ const qt = {
|
|
|
5408
5416
|
interval: t
|
|
5409
5417
|
};
|
|
5410
5418
|
},
|
|
5419
|
+
panToTimestamp(e) {
|
|
5420
|
+
const t = this.tzStringToDate(e), r = this.timeScale(t), n = c.zoomTransform(this.svg.node()), s = n.x - r + this.timeline.offsetWidth / 2;
|
|
5421
|
+
this.svg.transition().duration(this.panTransitionDuration).call(
|
|
5422
|
+
this.zoomBehavior.transform,
|
|
5423
|
+
c.zoomIdentity.translate(s, 0).scale(n.k)
|
|
5424
|
+
);
|
|
5425
|
+
},
|
|
5411
5426
|
onResize(e) {
|
|
5412
5427
|
this.isFirstPaint ? (this.handleResize(e), this.isFirstPaint = !1) : this.debouncedOnResize(e);
|
|
5413
5428
|
},
|
|
@@ -5452,7 +5467,7 @@ const qt = {
|
|
|
5452
5467
|
this.$emit("date-clicked", n), this.isHoveringEvent && this.$emit("event-clicked", {
|
|
5453
5468
|
event: this.hoveredEvent,
|
|
5454
5469
|
type: this.hoveredEventType
|
|
5455
|
-
});
|
|
5470
|
+
}), this.panOnDateClick && this.panToTimestamp(n);
|
|
5456
5471
|
},
|
|
5457
5472
|
handleLineMouseOver(e, t, r) {
|
|
5458
5473
|
this.hoveredCounts = Object.entries(
|
|
@@ -5571,12 +5586,12 @@ const qt = {
|
|
|
5571
5586
|
this.svg.selectAll(t).attr("x", (r) => this.getEventRectX(r) + this.textPadding).text(this.getEventText);
|
|
5572
5587
|
},
|
|
5573
5588
|
updateBarChart() {
|
|
5574
|
-
const e = (d) => this.getEventRectX(d) + this.barXPadding, t = (d) => this.yScale(d.count), r = (d) => this.getEventRectWidth(d) - this.barXPadding * 2, n = (d) => this.yScale.range()[0] - this.yScale(d.count), s = `.${p.barChartGroup} > rect.${p.
|
|
5575
|
-
this.svg.selectAll(s).attr("x", e).attr("width", r)
|
|
5576
|
-
const o = `.${p.barChartGroup} > rect.${p.
|
|
5577
|
-
this.svg.selectAll(o).attr("x", e).attr("width", r).attr("y", t);
|
|
5578
|
-
const i = `.${p.barChartGroup} > rect.${p.
|
|
5579
|
-
this.svg.selectAll(i).attr("x", e).attr("width", r);
|
|
5589
|
+
const e = (d) => this.getEventRectX(d) + this.barXPadding, t = (d) => this.yScale(d.count), r = (d) => this.getEventRectWidth(d) - this.barXPadding * 2, n = (d) => this.yScale.range()[0] - this.yScale(d.count), s = `.${p.barChartGroup} > rect.${p.eventBarHoverZone}`;
|
|
5590
|
+
this.svg.selectAll(s).attr("x", e).attr("width", r);
|
|
5591
|
+
const o = `.${p.barChartGroup} > rect.${p.eventBar}`;
|
|
5592
|
+
this.svg.selectAll(o).attr("x", e).attr("width", r).attr("y", t).attr("height", n);
|
|
5593
|
+
const i = `.${p.barChartGroup} > rect.${p.eventBarCap}`;
|
|
5594
|
+
this.svg.selectAll(i).attr("x", e).attr("width", r).attr("y", t);
|
|
5580
5595
|
},
|
|
5581
5596
|
updateLineGraphs() {
|
|
5582
5597
|
Object.entries(this.lineGraphGroups).forEach(([e]) => {
|
|
@@ -5989,7 +6004,7 @@ const sr = ir.exports, Se = {
|
|
|
5989
6004
|
EBadge: Me,
|
|
5990
6005
|
EIcon: Tt,
|
|
5991
6006
|
ESpinner: Qe,
|
|
5992
|
-
ERow:
|
|
6007
|
+
ERow: zt,
|
|
5993
6008
|
ECol: Bt,
|
|
5994
6009
|
EVideoPlayer: Xt,
|
|
5995
6010
|
ETimeline: er,
|
|
@@ -6014,7 +6029,7 @@ export {
|
|
|
6014
6029
|
Me as EBadge,
|
|
6015
6030
|
Bt as ECol,
|
|
6016
6031
|
Tt as EIcon,
|
|
6017
|
-
|
|
6032
|
+
zt as ERow,
|
|
6018
6033
|
Qe as ESpinner,
|
|
6019
6034
|
er as ETimeline,
|
|
6020
6035
|
dr as EVENTS,
|