@evercam/ui 0.0.55-beta.7 → 0.0.55-beta.9
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 -8
- package/dist/index.mjs +175 -145
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +15 -8
- package/dist/src/index.d.ts +15 -8
- package/dist/src/types.d.ts +4 -1
- package/dist/tags.json +4 -3
- package/dist/web-types.json +28 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Ve from "vue";
|
|
2
2
|
import * as I from "d3";
|
|
3
3
|
import Ke from "moment-timezone";
|
|
4
|
-
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}),
|
|
4
|
+
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), Ae = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s.exclusion = "exclusion", s))(Ae || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
5
|
const ma = Ve.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
@@ -5238,17 +5238,17 @@ function wo(s) {
|
|
|
5238
5238
|
case "dvh1":
|
|
5239
5239
|
case "dvhe": {
|
|
5240
5240
|
const a = X(t, ["dvcC"])[0], o = a[2] >> 1 & 127, l = a[2] << 5 & 32 | a[3] >> 3 & 31;
|
|
5241
|
-
r += "." +
|
|
5241
|
+
r += "." + De(o) + "." + De(l);
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
case "vp09": {
|
|
5245
5245
|
const a = X(t, ["vpcC"])[0], o = a[4], l = a[5], c = a[6] >> 4 & 15;
|
|
5246
|
-
r += "." +
|
|
5246
|
+
r += "." + De(o) + "." + De(l) + "." + De(c);
|
|
5247
5247
|
break;
|
|
5248
5248
|
}
|
|
5249
5249
|
case "av01": {
|
|
5250
5250
|
const a = X(t, ["av1C"])[0], o = a[1] >>> 5, l = a[1] & 31, c = a[2] >>> 7 ? "H" : "M", u = (a[2] & 64) >> 6, h = (a[2] & 32) >> 5, d = o === 2 && u ? h ? 12 : 10 : u ? 10 : 8, f = (a[2] & 16) >> 4, m = (a[2] & 8) >> 3, g = (a[2] & 4) >> 2, y = a[2] & 3, v = 1, T = 1, x = 1, L = 0;
|
|
5251
|
-
r += "." + o + "." +
|
|
5251
|
+
r += "." + o + "." + De(l) + c + "." + De(d) + "." + f + "." + m + g + y + "." + De(v) + "." + De(T) + "." + De(x) + "." + L;
|
|
5252
5252
|
break;
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
@@ -5266,7 +5266,7 @@ function ui(s, e) {
|
|
|
5266
5266
|
function St(s) {
|
|
5267
5267
|
return ("0" + s.toString(16).toUpperCase()).slice(-2);
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function De(s) {
|
|
5270
5270
|
return (s < 10 ? "0" : "") + s;
|
|
5271
5271
|
}
|
|
5272
5272
|
function ko(s, e) {
|
|
@@ -6746,7 +6746,7 @@ function Ot(s) {
|
|
|
6746
6746
|
}
|
|
6747
6747
|
return e;
|
|
6748
6748
|
}
|
|
6749
|
-
var
|
|
6749
|
+
var Ce = {
|
|
6750
6750
|
audioId3: "org.id3",
|
|
6751
6751
|
dateRange: "com.apple.quicktime.HLS",
|
|
6752
6752
|
emsg: "https://aomedia.org/emsg/ID3"
|
|
@@ -6846,7 +6846,7 @@ class nl {
|
|
|
6846
6846
|
if (a)
|
|
6847
6847
|
for (let o = 0; o < n.length; o++) {
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
|
-
if (l ===
|
|
6849
|
+
if (l === Ce.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
6851
|
const c = hn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
@@ -6892,7 +6892,7 @@ class nl {
|
|
|
6892
6892
|
} = a;
|
|
6893
6893
|
if (n && (o || l)) {
|
|
6894
6894
|
let c;
|
|
6895
|
-
r === "audio" ? c = (u) => u.type ===
|
|
6895
|
+
r === "audio" ? c = (u) => u.type === Ce.audioId3 && l : r === "video" ? c = (u) => u.type === Ce.emsg && o : c = (u) => u.type === Ce.audioId3 && l || u.type === Ce.emsg && o, Fi(n, t, i, c);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
onLevelUpdated(e, {
|
|
@@ -6951,7 +6951,7 @@ class nl {
|
|
|
6951
6951
|
const B = $s(c, f, v, {
|
|
6952
6952
|
key: E,
|
|
6953
6953
|
data: R
|
|
6954
|
-
},
|
|
6954
|
+
}, Ce.dateRange);
|
|
6955
6955
|
B && (B.id = h, this.id3Track.addCue(B), g[E] = B);
|
|
6956
6956
|
}
|
|
6957
6957
|
}
|
|
@@ -7466,7 +7466,7 @@ var me = {
|
|
|
7466
7466
|
RemoveAlternatePermanently: 3,
|
|
7467
7467
|
InsertDiscontinuity: 4,
|
|
7468
7468
|
RetryRequest: 5
|
|
7469
|
-
},
|
|
7469
|
+
}, Le = {
|
|
7470
7470
|
None: 0,
|
|
7471
7471
|
MoveAllAlternatesMatchingHost: 1,
|
|
7472
7472
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7517,7 +7517,7 @@ class Tl {
|
|
|
7517
7517
|
if ((i = t.frag) != null && i.gap) {
|
|
7518
7518
|
t.errorAction = {
|
|
7519
7519
|
action: me.DoNothing,
|
|
7520
|
-
flags:
|
|
7520
|
+
flags: Le.None
|
|
7521
7521
|
};
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7545,7 +7545,7 @@ class Tl {
|
|
|
7545
7545
|
if (a) {
|
|
7546
7546
|
const c = n.levels[n.loadLevel];
|
|
7547
7547
|
if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
|
|
7548
|
-
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags =
|
|
7548
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = Le.MoveAllAlternatesMatchingHost;
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
@@ -7555,7 +7555,7 @@ class Tl {
|
|
|
7555
7555
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7556
7556
|
u ? t.errorAction = {
|
|
7557
7557
|
action: me.SendAlternateToPenaltyBox,
|
|
7558
|
-
flags:
|
|
7558
|
+
flags: Le.MoveAllAlternatesMatchingHDCP,
|
|
7559
7559
|
hdcpLevel: u
|
|
7560
7560
|
} : this.keySystemError(t);
|
|
7561
7561
|
}
|
|
@@ -7574,7 +7574,7 @@ class Tl {
|
|
|
7574
7574
|
case _.BUFFER_NUDGE_ON_STALL:
|
|
7575
7575
|
t.errorAction = {
|
|
7576
7576
|
action: me.DoNothing,
|
|
7577
|
-
flags:
|
|
7577
|
+
flags: Le.None
|
|
7578
7578
|
};
|
|
7579
7579
|
return;
|
|
7580
7580
|
}
|
|
@@ -7589,7 +7589,7 @@ class Tl {
|
|
|
7589
7589
|
if (Yt(r, n, zt(e), e.response))
|
|
7590
7590
|
return {
|
|
7591
7591
|
action: me.RetryRequest,
|
|
7592
|
-
flags:
|
|
7592
|
+
flags: Le.None,
|
|
7593
7593
|
retryConfig: r,
|
|
7594
7594
|
retryCount: n
|
|
7595
7595
|
};
|
|
@@ -7604,7 +7604,7 @@ class Tl {
|
|
|
7604
7604
|
if (r && (e.details !== _.FRAG_GAP && r.fragmentError++, Yt(o, l, zt(e), e.response)))
|
|
7605
7605
|
return {
|
|
7606
7606
|
action: me.RetryRequest,
|
|
7607
|
-
flags:
|
|
7607
|
+
flags: Le.None,
|
|
7608
7608
|
retryConfig: o,
|
|
7609
7609
|
retryCount: l
|
|
7610
7610
|
};
|
|
@@ -7661,13 +7661,13 @@ class Tl {
|
|
|
7661
7661
|
if (u > -1 && i.loadLevel !== u)
|
|
7662
7662
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7663
7663
|
action: me.SendAlternateToPenaltyBox,
|
|
7664
|
-
flags:
|
|
7664
|
+
flags: Le.None,
|
|
7665
7665
|
nextAutoLevel: u
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return {
|
|
7669
7669
|
action: me.SendAlternateToPenaltyBox,
|
|
7670
|
-
flags:
|
|
7670
|
+
flags: Le.MoveAllAlternatesMatchingHost
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
7673
|
onErrorOut(e, t) {
|
|
@@ -7694,10 +7694,10 @@ class Tl {
|
|
|
7694
7694
|
nextAutoLevel: a
|
|
7695
7695
|
} = i;
|
|
7696
7696
|
switch (r) {
|
|
7697
|
-
case
|
|
7697
|
+
case Le.None:
|
|
7698
7698
|
this.switchLevel(e, a);
|
|
7699
7699
|
break;
|
|
7700
|
-
case
|
|
7700
|
+
case Le.MoveAllAlternatesMatchingHDCP:
|
|
7701
7701
|
n && (t.maxHdcpLevel = Ni[Ni.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
|
|
7702
7702
|
break;
|
|
7703
7703
|
}
|
|
@@ -10129,7 +10129,7 @@ class cs {
|
|
|
10129
10129
|
pts: this.lastPTS,
|
|
10130
10130
|
dts: this.lastPTS,
|
|
10131
10131
|
data: i,
|
|
10132
|
-
type:
|
|
10132
|
+
type: Ce.audioId3,
|
|
10133
10133
|
duration: Number.POSITIVE_INFINITY
|
|
10134
10134
|
}); r < c; ) {
|
|
10135
10135
|
if (this.canParse(e, r)) {
|
|
@@ -10140,7 +10140,7 @@ class cs {
|
|
|
10140
10140
|
pts: this.lastPTS,
|
|
10141
10141
|
dts: this.lastPTS,
|
|
10142
10142
|
data: i,
|
|
10143
|
-
type:
|
|
10143
|
+
type: Ce.audioId3,
|
|
10144
10144
|
duration: Number.POSITIVE_INFINITY
|
|
10145
10145
|
}), r += i.length, n = r) : r++;
|
|
10146
10146
|
if (r === c && n !== c) {
|
|
@@ -10513,7 +10513,7 @@ class uc {
|
|
|
10513
10513
|
len: c.byteLength,
|
|
10514
10514
|
dts: o,
|
|
10515
10515
|
pts: o,
|
|
10516
|
-
type:
|
|
10516
|
+
type: Ce.emsg,
|
|
10517
10517
|
duration: l
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
@@ -11296,7 +11296,7 @@ class ze {
|
|
|
11296
11296
|
return;
|
|
11297
11297
|
}
|
|
11298
11298
|
const i = oe({}, t, {
|
|
11299
|
-
type: this._videoTrack ?
|
|
11299
|
+
type: this._videoTrack ? Ce.emsg : Ce.audioId3,
|
|
11300
11300
|
duration: Number.POSITIVE_INFINITY
|
|
11301
11301
|
});
|
|
11302
11302
|
e.samples.push(i);
|
|
@@ -15596,7 +15596,7 @@ const or = {
|
|
|
15596
15596
|
}, jn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
|
|
15599
|
-
},
|
|
15599
|
+
}, Re = 15, $e = 100, Bc = {
|
|
15600
15600
|
17: 1,
|
|
15601
15601
|
18: 3,
|
|
15602
15602
|
21: 5,
|
|
@@ -15781,19 +15781,19 @@ class Wc {
|
|
|
15781
15781
|
}
|
|
15782
15782
|
class xi {
|
|
15783
15783
|
constructor(e) {
|
|
15784
|
-
this.rows = [], this.currRow =
|
|
15785
|
-
for (let t = 0; t <
|
|
15784
|
+
this.rows = [], this.currRow = Re - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15785
|
+
for (let t = 0; t < Re; t++)
|
|
15786
15786
|
this.rows.push(new Wc(e));
|
|
15787
15787
|
this.logger = e;
|
|
15788
15788
|
}
|
|
15789
15789
|
reset() {
|
|
15790
|
-
for (let e = 0; e <
|
|
15790
|
+
for (let e = 0; e < Re; e++)
|
|
15791
15791
|
this.rows[e].clear();
|
|
15792
|
-
this.currRow =
|
|
15792
|
+
this.currRow = Re - 1;
|
|
15793
15793
|
}
|
|
15794
15794
|
equals(e) {
|
|
15795
15795
|
let t = !0;
|
|
15796
|
-
for (let i = 0; i <
|
|
15796
|
+
for (let i = 0; i < Re; i++)
|
|
15797
15797
|
if (!this.rows[i].equals(e.rows[i])) {
|
|
15798
15798
|
t = !1;
|
|
15799
15799
|
break;
|
|
@@ -15801,12 +15801,12 @@ class xi {
|
|
|
15801
15801
|
return t;
|
|
15802
15802
|
}
|
|
15803
15803
|
copy(e) {
|
|
15804
|
-
for (let t = 0; t <
|
|
15804
|
+
for (let t = 0; t < Re; t++)
|
|
15805
15805
|
this.rows[t].copy(e.rows[t]);
|
|
15806
15806
|
}
|
|
15807
15807
|
isEmpty() {
|
|
15808
15808
|
let e = !0;
|
|
15809
|
-
for (let t = 0; t <
|
|
15809
|
+
for (let t = 0; t < Re; t++)
|
|
15810
15810
|
if (!this.rows[t].isEmpty()) {
|
|
15811
15811
|
e = !1;
|
|
15812
15812
|
break;
|
|
@@ -15838,7 +15838,7 @@ class xi {
|
|
|
15838
15838
|
this.logger.log(2, () => "pacData = " + JSON.stringify(e));
|
|
15839
15839
|
let t = e.row - 1;
|
|
15840
15840
|
if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
|
|
15841
|
-
for (let o = 0; o <
|
|
15841
|
+
for (let o = 0; o < Re; o++)
|
|
15842
15842
|
this.rows[o].clear();
|
|
15843
15843
|
const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
|
|
15844
15844
|
if (a) {
|
|
@@ -15888,7 +15888,7 @@ class xi {
|
|
|
15888
15888
|
e = e || !1;
|
|
15889
15889
|
const t = [];
|
|
15890
15890
|
let i = "", r = -1;
|
|
15891
|
-
for (let n = 0; n <
|
|
15891
|
+
for (let n = 0; n < Re; n++) {
|
|
15892
15892
|
const a = this.rows[n].getTextString();
|
|
15893
15893
|
a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
|
|
15894
15894
|
}
|
|
@@ -15901,10 +15901,10 @@ class xi {
|
|
|
15901
15901
|
}
|
|
15902
15902
|
class lr {
|
|
15903
15903
|
constructor(e, t, i) {
|
|
15904
|
-
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[
|
|
15904
|
+
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15905
15905
|
}
|
|
15906
15906
|
reset() {
|
|
15907
|
-
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[
|
|
15907
|
+
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15908
15908
|
}
|
|
15909
15909
|
getHandler() {
|
|
15910
15910
|
return this.outputFilter;
|
|
@@ -18363,7 +18363,7 @@ class Wu {
|
|
|
18363
18363
|
const {
|
|
18364
18364
|
errorAction: i
|
|
18365
18365
|
} = t;
|
|
18366
|
-
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags ===
|
|
18366
|
+
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === Le.MoveAllAlternatesMatchingHost) {
|
|
18367
18367
|
const r = this.levels;
|
|
18368
18368
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18369
18369
|
if (t.context) {
|
|
@@ -22156,7 +22156,7 @@ const Ih = _h.exports, G = {
|
|
|
22156
22156
|
lineGraphDot: "line-graph-dot",
|
|
22157
22157
|
curtain: "curtain",
|
|
22158
22158
|
forbiddenInterval: "forbidden-interval"
|
|
22159
|
-
},
|
|
22159
|
+
}, Ue = {
|
|
22160
22160
|
transparencyGradient: "transparency-gradient",
|
|
22161
22161
|
transparencyGradientLight: "transparency-gradient-light",
|
|
22162
22162
|
loadingGradient: "loading-gradient",
|
|
@@ -22238,6 +22238,10 @@ const Ih = _h.exports, G = {
|
|
|
22238
22238
|
type: Number,
|
|
22239
22239
|
default: 60
|
|
22240
22240
|
},
|
|
22241
|
+
chartMinLabelHeight: {
|
|
22242
|
+
type: Number,
|
|
22243
|
+
default: 18
|
|
22244
|
+
},
|
|
22241
22245
|
minZoom: {
|
|
22242
22246
|
type: Number,
|
|
22243
22247
|
default: 1e-4
|
|
@@ -22254,14 +22258,6 @@ const Ih = _h.exports, G = {
|
|
|
22254
22258
|
type: String,
|
|
22255
22259
|
default: void 0
|
|
22256
22260
|
},
|
|
22257
|
-
minVisibleDate: {
|
|
22258
|
-
type: String,
|
|
22259
|
-
default: void 0
|
|
22260
|
-
},
|
|
22261
|
-
maxVisibleDate: {
|
|
22262
|
-
type: String,
|
|
22263
|
-
default: void 0
|
|
22264
|
-
},
|
|
22265
22261
|
cursorTimestamp: {
|
|
22266
22262
|
type: [String, void 0],
|
|
22267
22263
|
default: void 0
|
|
@@ -22313,6 +22309,14 @@ const Ih = _h.exports, G = {
|
|
|
22313
22309
|
milestonesFirst: {
|
|
22314
22310
|
type: Boolean,
|
|
22315
22311
|
default: !0
|
|
22312
|
+
},
|
|
22313
|
+
forbiddenIntervals: {
|
|
22314
|
+
type: Array,
|
|
22315
|
+
default: () => []
|
|
22316
|
+
},
|
|
22317
|
+
forbiddenIntervalColor: {
|
|
22318
|
+
type: String,
|
|
22319
|
+
default: "#ddd"
|
|
22316
22320
|
}
|
|
22317
22321
|
},
|
|
22318
22322
|
data() {
|
|
@@ -22369,7 +22373,13 @@ const Ih = _h.exports, G = {
|
|
|
22369
22373
|
computed: {
|
|
22370
22374
|
combinedBarsHeight() {
|
|
22371
22375
|
return Object.values(this.barGroups).reduce(
|
|
22372
|
-
(s, e) => s + (e
|
|
22376
|
+
(s, e) => s + (this.getBarGroupHeight(e) || this.barChartHeight),
|
|
22377
|
+
0
|
|
22378
|
+
);
|
|
22379
|
+
},
|
|
22380
|
+
combinedBottomBarsHeight() {
|
|
22381
|
+
return Object.values(this.barGroups).reduce(
|
|
22382
|
+
(s, e) => s + (e.bottom ? this.getBarGroupHeight(e) : 0),
|
|
22373
22383
|
0
|
|
22374
22384
|
);
|
|
22375
22385
|
},
|
|
@@ -22380,7 +22390,7 @@ const Ih = _h.exports, G = {
|
|
|
22380
22390
|
);
|
|
22381
22391
|
},
|
|
22382
22392
|
milestonesYOffset() {
|
|
22383
|
-
return this.milestonesFirst ? 0 : this.combinedBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22393
|
+
return this.milestonesFirst ? 0 : this.combinedBarsHeight - this.combinedBottomBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22384
22394
|
},
|
|
22385
22395
|
chartsYOffset() {
|
|
22386
22396
|
return this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0;
|
|
@@ -22408,7 +22418,7 @@ const Ih = _h.exports, G = {
|
|
|
22408
22418
|
},
|
|
22409
22419
|
lineGraphGroups() {
|
|
22410
22420
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22411
|
-
(s, [e, t]) => t.chartType ===
|
|
22421
|
+
(s, [e, t]) => t.chartType === Ae.lineGraph ? { ...s, [e]: t } : s,
|
|
22412
22422
|
{}
|
|
22413
22423
|
);
|
|
22414
22424
|
},
|
|
@@ -22420,7 +22430,7 @@ const Ih = _h.exports, G = {
|
|
|
22420
22430
|
},
|
|
22421
22431
|
barGroups() {
|
|
22422
22432
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22423
|
-
(s, [e, t]) => !t.chartType || [
|
|
22433
|
+
(s, [e, t]) => !t.chartType || [Ae.bars, Ae.dots].includes(
|
|
22424
22434
|
t.chartType
|
|
22425
22435
|
) ? { ...s, [e]: t } : s,
|
|
22426
22436
|
{}
|
|
@@ -22428,13 +22438,13 @@ const Ih = _h.exports, G = {
|
|
|
22428
22438
|
},
|
|
22429
22439
|
barChartGroups() {
|
|
22430
22440
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22431
|
-
(s, [e, t]) => t.chartType ===
|
|
22441
|
+
(s, [e, t]) => t.chartType === Ae.barChart ? { ...s, [e]: t } : s,
|
|
22432
22442
|
{}
|
|
22433
22443
|
);
|
|
22434
22444
|
},
|
|
22435
22445
|
milestonesGroups() {
|
|
22436
22446
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22437
|
-
(s, [e, t]) => t.chartType ===
|
|
22447
|
+
(s, [e, t]) => t.chartType === Ae.milestones ? { ...s, [e]: t } : s,
|
|
22438
22448
|
{}
|
|
22439
22449
|
);
|
|
22440
22450
|
},
|
|
@@ -22454,10 +22464,7 @@ const Ih = _h.exports, G = {
|
|
|
22454
22464
|
return this.axisHeight * s;
|
|
22455
22465
|
},
|
|
22456
22466
|
timelineHeight() {
|
|
22457
|
-
|
|
22458
|
-
this.milestonesGroups
|
|
22459
|
-
).reduce((r, n) => r + (n.height || this.barChartHeight), 0), e = Object.keys(this.barGroups).length, t = this.barChartHeight * e, i = this.hasChart ? this.chartHeight : 0;
|
|
22460
|
-
return this.combinedXAxesHeight + i + t + s;
|
|
22467
|
+
return (this.hasChart ? this.chartHeight : 0) + this.combinedXAxesHeight + this.combinedBarsHeight + this.combinedMilestonesHeight;
|
|
22461
22468
|
},
|
|
22462
22469
|
filteredEventsGroups() {
|
|
22463
22470
|
const s = Object.entries(this.eventsGroups).filter(
|
|
@@ -22546,12 +22553,6 @@ const Ih = _h.exports, G = {
|
|
|
22546
22553
|
startDate() {
|
|
22547
22554
|
this.zoomToStartAndEndDates();
|
|
22548
22555
|
},
|
|
22549
|
-
minDate() {
|
|
22550
|
-
this.updateForbiddenIntervals();
|
|
22551
|
-
},
|
|
22552
|
-
maxDate() {
|
|
22553
|
-
this.updateForbiddenIntervals();
|
|
22554
|
-
},
|
|
22555
22556
|
endDate() {
|
|
22556
22557
|
this.zoomToStartAndEndDates();
|
|
22557
22558
|
},
|
|
@@ -22571,6 +22572,9 @@ const Ih = _h.exports, G = {
|
|
|
22571
22572
|
},
|
|
22572
22573
|
groupsVisibility() {
|
|
22573
22574
|
this.updateAndRedrawTimeline();
|
|
22575
|
+
},
|
|
22576
|
+
forbiddenIntervals() {
|
|
22577
|
+
this.updateForbiddenIntervals(!0);
|
|
22574
22578
|
}
|
|
22575
22579
|
},
|
|
22576
22580
|
created() {
|
|
@@ -22593,7 +22597,7 @@ const Ih = _h.exports, G = {
|
|
|
22593
22597
|
);
|
|
22594
22598
|
return;
|
|
22595
22599
|
}
|
|
22596
|
-
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.
|
|
22600
|
+
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.updateMarkers(), this.registerEventsListeners(), this.emitVisibleInterval(Pt.initial), this.selectedDate && this.panOnDateClick && this.panToTimestamp(this.selectedDate), this.isInitialized = !0;
|
|
22597
22601
|
},
|
|
22598
22602
|
initRefs() {
|
|
22599
22603
|
this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp, this.wrapperDiv = this.$refs.wrapperDiv;
|
|
@@ -22605,17 +22609,17 @@ const Ih = _h.exports, G = {
|
|
|
22605
22609
|
const s = this.svg.append("defs");
|
|
22606
22610
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
22607
22611
|
([t, i]) => {
|
|
22608
|
-
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${
|
|
22609
|
-
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [
|
|
22612
|
+
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${Ue.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
22613
|
+
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [Ae.lineGraph, Ae.barChart].includes(
|
|
22610
22614
|
n
|
|
22611
22615
|
) && [
|
|
22612
22616
|
{
|
|
22613
|
-
id:
|
|
22617
|
+
id: Ue.transparencyGradientLight,
|
|
22614
22618
|
stop: 38,
|
|
22615
22619
|
opacity: 0.3
|
|
22616
22620
|
},
|
|
22617
22621
|
{
|
|
22618
|
-
id:
|
|
22622
|
+
id: Ue.transparencyGradient,
|
|
22619
22623
|
stop: 130,
|
|
22620
22624
|
opacity: 0.4
|
|
22621
22625
|
}
|
|
@@ -22624,7 +22628,7 @@ const Ih = _h.exports, G = {
|
|
|
22624
22628
|
h.append("stop").attr("offset", "0%").style("stop-color", r).style("stop-opacity", u), h.append("stop").attr("offset", `${c}%`).style("stop-color", r).style("stop-opacity", 0);
|
|
22625
22629
|
});
|
|
22626
22630
|
}
|
|
22627
|
-
), s.append("pattern").attr("id",
|
|
22631
|
+
), s.append("pattern").attr("id", Ue.stripedPattern).attr("width", 5).attr("height", 3).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("rect").attr("width", 1).attr("height", 4).attr("transform", "translate(0,0)").attr("fill", this.forbiddenIntervalColor);
|
|
22628
22632
|
},
|
|
22629
22633
|
initUtcOffset() {
|
|
22630
22634
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate;
|
|
@@ -22857,7 +22861,7 @@ const Ih = _h.exports, G = {
|
|
|
22857
22861
|
);
|
|
22858
22862
|
},
|
|
22859
22863
|
isZoomAllowed(s) {
|
|
22860
|
-
const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.
|
|
22864
|
+
const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minDate ? this.tzStringToDate(this.minDate) : void 0, r = this.maxDate ? this.tzStringToDate(this.maxDate) : void 0;
|
|
22861
22865
|
return (!i || t[0] >= i) && (!r || t[1] <= r);
|
|
22862
22866
|
},
|
|
22863
22867
|
handleZoom(s) {
|
|
@@ -23004,7 +23008,7 @@ const Ih = _h.exports, G = {
|
|
|
23004
23008
|
return parseInt(e.left);
|
|
23005
23009
|
},
|
|
23006
23010
|
isTimestampAllowedForMarker(s, e) {
|
|
23007
|
-
return (
|
|
23011
|
+
return (e.minDate ? s >= this.tzStringToDate(e.minDate) : !0) && (e.maxDate ? s <= this.tzStringToDate(e.maxDate) : !0);
|
|
23008
23012
|
},
|
|
23009
23013
|
handleMarkerDrag({
|
|
23010
23014
|
marker: s,
|
|
@@ -23081,25 +23085,17 @@ const Ih = _h.exports, G = {
|
|
|
23081
23085
|
s - this.rightCurtainWidth + this.curtainHandleWidth
|
|
23082
23086
|
).attr("y", -this.curtainHandleWidth).attr("width", this.rightCurtainWidth + this.curtainHandleWidth * 2).attr("height", e + this.curtainHandleWidth * 2);
|
|
23083
23087
|
},
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23090
|
-
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
|
|
23095
|
-
if (s) {
|
|
23096
|
-
const t = this.timeScale(s);
|
|
23097
|
-
this.svg.select(`.${G.forbiddenInterval}--min`).attr("x", 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${De.stripedPattern})`);
|
|
23098
|
-
}
|
|
23099
|
-
if (e) {
|
|
23100
|
-
const t = this.timeline.offsetWidth - this.timeScale(e), i = this.timeScale(e);
|
|
23101
|
-
this.svg.select(`.${G.forbiddenInterval}--max`).attr("x", i > 0 ? i : 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${De.stripedPattern})`);
|
|
23102
|
-
}
|
|
23088
|
+
updateForbiddenIntervals(s = !1) {
|
|
23089
|
+
s && this.svg.selectAll(`.${G.forbiddenInterval}`).remove();
|
|
23090
|
+
const e = this.timeScale.domain();
|
|
23091
|
+
this.forbiddenIntervals.forEach((t, i) => {
|
|
23092
|
+
const r = t.startDate === -1 / 0 ? e[0] : this.tzStringToDate(t.startDate), n = t.endDate === 1 / 0 ? e[1] : this.tzStringToDate(t.endDate), a = this.timeScale(r), o = this.timeScale(n), l = Math.max(o - a, 0);
|
|
23093
|
+
let c = this.svg.select(`.${G.forbiddenInterval}-${i}`);
|
|
23094
|
+
c.empty() && (c = this.svg.append("rect").attr(
|
|
23095
|
+
"class",
|
|
23096
|
+
`${G.forbiddenInterval} ${G.forbiddenInterval}-${i}`
|
|
23097
|
+
).attr("fill", `url(#${Ue.stripedPattern})`)), c.attr("x", a).attr("y", 0).attr("width", l).attr("height", this.timelineHeight);
|
|
23098
|
+
});
|
|
23103
23099
|
},
|
|
23104
23100
|
drawEventsGroups() {
|
|
23105
23101
|
this.svg.selectAll(`g.${G.eventGroup}`).remove(), this.svg.selectAll(`.${G.barChartGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroupLabel}`).remove(), this.svg.selectAll(`.${G.loadingIndicator}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups(), this.drawMilestonesPlaceholder();
|
|
@@ -23124,18 +23120,22 @@ const Ih = _h.exports, G = {
|
|
|
23124
23120
|
});
|
|
23125
23121
|
}), Object.entries(this.lineGraphGroups).forEach(
|
|
23126
23122
|
([t, i], r) => {
|
|
23127
|
-
const { color: n, isLoading: a, label: o } = i, l =
|
|
23123
|
+
const { color: n, isLoading: a, label: o } = i, l = Math.max(
|
|
23124
|
+
this.chartMinLabelHeight,
|
|
23125
|
+
this.barChartHeight
|
|
23126
|
+
), c = this.chartHeight - l * (r + 1), u = s + this.chartHeight - l, h = this.svg.append("g").classed(G.lineGraphGroupLabel, !0).attr("transform", `translate(0,${s})`).on("mouseover", () => this.handleLabelMouseOver(t)).on("mouseleave", () => this.handleLabelMouseLeave(t));
|
|
23128
23127
|
this.drawProgressIndicator({
|
|
23129
23128
|
type: t,
|
|
23130
23129
|
color: n,
|
|
23131
23130
|
isLoading: a,
|
|
23132
|
-
yPosition:
|
|
23131
|
+
yPosition: u
|
|
23133
23132
|
}), this.drawTextLabel({
|
|
23134
23133
|
color: n,
|
|
23135
23134
|
label: o,
|
|
23136
23135
|
type: t,
|
|
23137
|
-
|
|
23138
|
-
|
|
23136
|
+
height: l,
|
|
23137
|
+
yPosition: c,
|
|
23138
|
+
gElement: h
|
|
23139
23139
|
});
|
|
23140
23140
|
}
|
|
23141
23141
|
);
|
|
@@ -23147,7 +23147,7 @@ const Ih = _h.exports, G = {
|
|
|
23147
23147
|
type: i
|
|
23148
23148
|
}) {
|
|
23149
23149
|
const r = I.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(I.curveMonotoneX), n = `clip-${i}`;
|
|
23150
|
-
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${
|
|
23150
|
+
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${Ue.transparencyGradientLight}-${i})`).attr("stroke", t).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (a) => r(a)).attr("clip-path", `url(#${n})`);
|
|
23151
23151
|
},
|
|
23152
23152
|
drawLineGraphHoverZones({
|
|
23153
23153
|
events: s,
|
|
@@ -23182,54 +23182,69 @@ const Ih = _h.exports, G = {
|
|
|
23182
23182
|
drawSingleBarEventsGroup({
|
|
23183
23183
|
type: s,
|
|
23184
23184
|
eventsGroup: e,
|
|
23185
|
-
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
|
-
dotsSize: a
|
|
23185
|
+
milestone: t,
|
|
23186
|
+
dots: i,
|
|
23187
|
+
dotsSize: r,
|
|
23188
|
+
bottom: n
|
|
23190
23189
|
}) {
|
|
23191
|
-
const {
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23190
|
+
const {
|
|
23191
|
+
color: a,
|
|
23192
|
+
bgColor: o,
|
|
23193
|
+
label: l,
|
|
23194
|
+
events: c,
|
|
23195
|
+
barBorderRadius: u,
|
|
23196
|
+
isLoading: h,
|
|
23197
|
+
height: d,
|
|
23198
|
+
chartType: f
|
|
23199
|
+
} = e;
|
|
23200
|
+
let m = this.getBarGroupYPosition(s, n);
|
|
23201
|
+
const y = [
|
|
23202
|
+
Ae.bars,
|
|
23203
|
+
Ae.dots,
|
|
23204
|
+
void 0
|
|
23205
|
+
].includes(f) ? this.getBarGroupHeight(e) : d;
|
|
23206
|
+
t && (m = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
|
|
23207
|
+
yPosition: m,
|
|
23195
23208
|
type: s,
|
|
23196
|
-
color:
|
|
23209
|
+
color: a,
|
|
23197
23210
|
isLoading: h
|
|
23198
23211
|
});
|
|
23199
|
-
const
|
|
23212
|
+
const v = this.svg.append("g").attr("data-color", a).classed(G.eventGroup, !0).classed(`${G.eventGroup}-${s}`, !0);
|
|
23200
23213
|
if (this.drawBackground({
|
|
23201
|
-
color:
|
|
23202
|
-
gElement:
|
|
23203
|
-
yPosition:
|
|
23204
|
-
height:
|
|
23205
|
-
}),
|
|
23206
|
-
const
|
|
23207
|
-
|
|
23214
|
+
color: o || a,
|
|
23215
|
+
gElement: v,
|
|
23216
|
+
yPosition: m,
|
|
23217
|
+
height: y
|
|
23218
|
+
}), t || i) {
|
|
23219
|
+
const T = i ? 0.5 : 2, x = m + y / 2;
|
|
23220
|
+
v.append("line").classed(je.milestoneLine, !0).attr("x1", 0).attr("x2", this.timeline.offsetWidth).attr("y1", x).attr("y2", x).style("stroke", a).style("stroke-width", T);
|
|
23208
23221
|
}
|
|
23209
23222
|
this.drawBars({
|
|
23210
|
-
events:
|
|
23211
|
-
color:
|
|
23212
|
-
gElement:
|
|
23213
|
-
yPosition:
|
|
23223
|
+
events: c,
|
|
23224
|
+
color: a,
|
|
23225
|
+
gElement: v,
|
|
23226
|
+
yPosition: m,
|
|
23214
23227
|
type: s,
|
|
23215
|
-
dots:
|
|
23216
|
-
dotsSize:
|
|
23217
|
-
|
|
23218
|
-
|
|
23219
|
-
|
|
23228
|
+
dots: i,
|
|
23229
|
+
dotsSize: r,
|
|
23230
|
+
height: d,
|
|
23231
|
+
barBorderRadius: u
|
|
23232
|
+
}), l && this.drawTextLabel({
|
|
23233
|
+
color: a,
|
|
23234
|
+
label: l,
|
|
23220
23235
|
type: s,
|
|
23221
|
-
gElement:
|
|
23222
|
-
yPosition:
|
|
23223
|
-
height:
|
|
23236
|
+
gElement: v,
|
|
23237
|
+
yPosition: m,
|
|
23238
|
+
height: d
|
|
23224
23239
|
});
|
|
23225
23240
|
},
|
|
23226
23241
|
drawBarEventsGroups() {
|
|
23227
23242
|
Object.entries(this.barGroups).forEach(
|
|
23228
|
-
([s, e]
|
|
23243
|
+
([s, e]) => this.drawSingleBarEventsGroup({
|
|
23229
23244
|
type: s,
|
|
23230
23245
|
eventsGroup: e,
|
|
23231
|
-
|
|
23232
|
-
dots: e.chartType ===
|
|
23246
|
+
bottom: e.bottom,
|
|
23247
|
+
dots: e.chartType === Ae.dots,
|
|
23233
23248
|
dotsSize: e.dotsSize || 3
|
|
23234
23249
|
})
|
|
23235
23250
|
);
|
|
@@ -23243,8 +23258,7 @@ const Ih = _h.exports, G = {
|
|
|
23243
23258
|
events: [],
|
|
23244
23259
|
isLoading: !1
|
|
23245
23260
|
},
|
|
23246
|
-
milestone: !0
|
|
23247
|
-
height: e.height
|
|
23261
|
+
milestone: !0
|
|
23248
23262
|
})
|
|
23249
23263
|
), this.updateMilestonesPositions();
|
|
23250
23264
|
},
|
|
@@ -23271,6 +23285,19 @@ const Ih = _h.exports, G = {
|
|
|
23271
23285
|
}
|
|
23272
23286
|
return this.combinedXAxesHeight + this.milestonesYOffset + e;
|
|
23273
23287
|
},
|
|
23288
|
+
getBarGroupYPosition(s, e) {
|
|
23289
|
+
let t = this.combinedXAxesHeight;
|
|
23290
|
+
e ? t += (this.hasChart ? this.chartHeight : 0) + (this.hasMilestones ? this.combinedMilestonesHeight : 0) : t += this.barsYOffset;
|
|
23291
|
+
for (const [i, r] of Object.entries(this.barGroups)) {
|
|
23292
|
+
if (i === s)
|
|
23293
|
+
break;
|
|
23294
|
+
!e && r.bottom || (t += this.getBarGroupHeight(r));
|
|
23295
|
+
}
|
|
23296
|
+
return t;
|
|
23297
|
+
},
|
|
23298
|
+
getBarGroupHeight(s) {
|
|
23299
|
+
return s.height ? Math.max(s.height + this.barYPadding, 1) : this.barChartHeight;
|
|
23300
|
+
},
|
|
23274
23301
|
updateMilestonesPositions() {
|
|
23275
23302
|
Object.entries(this.milestonesGroups).forEach(([s, e]) => {
|
|
23276
23303
|
const t = this.getMilestoneGroupYPosition(s), i = this.svg.select(
|
|
@@ -23315,7 +23342,7 @@ const Ih = _h.exports, G = {
|
|
|
23315
23342
|
this.svg.append("rect").classed(
|
|
23316
23343
|
`${G.loadingIndicator} ${G.loadingIndicator}-${e}`,
|
|
23317
23344
|
!0
|
|
23318
|
-
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${
|
|
23345
|
+
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Ue.loadingGradient}-${e})`).style("visibility", t ? "visible" : "hidden");
|
|
23319
23346
|
},
|
|
23320
23347
|
drawBackground({
|
|
23321
23348
|
color: s,
|
|
@@ -23332,22 +23359,25 @@ const Ih = _h.exports, G = {
|
|
|
23332
23359
|
color: i,
|
|
23333
23360
|
type: r,
|
|
23334
23361
|
dots: n,
|
|
23335
|
-
dotsSize: a
|
|
23362
|
+
dotsSize: a,
|
|
23363
|
+
height: o,
|
|
23364
|
+
barBorderRadius: l = 1.5
|
|
23336
23365
|
}) {
|
|
23337
|
-
const
|
|
23338
|
-
|
|
23366
|
+
const c = this, u = t + this.barYPadding / 2, h = n ? ((o || this.barChartHeight) - a) / 2 : 0;
|
|
23367
|
+
let d = Math.max(
|
|
23368
|
+
(o != null ? o : this.barChartHeight) - this.barYPadding,
|
|
23369
|
+
1
|
|
23370
|
+
);
|
|
23371
|
+
n && (d = a), e.selectAll(G.eventRect).data(s).enter().append("rect").attr(
|
|
23339
23372
|
"class",
|
|
23340
|
-
(
|
|
23341
|
-
).attr("x", this.getEventRectX).attr("y",
|
|
23342
|
-
|
|
23343
|
-
n ? a : this.barChartHeight - this.barYPadding
|
|
23344
|
-
).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (u) => u.color || i).on("mouseover", function(u, h) {
|
|
23345
|
-
I.select(this).classed(G.eventRectHovered, !0), o.handleBarMouseOver(u, h, r);
|
|
23373
|
+
(f) => G.eventRect + (n ? ` ${G.eventRect}--dot` : "") + (f.className ? ` ${f.className}` : "")
|
|
23374
|
+
).attr("x", this.getEventRectX).attr("y", u + h).attr("ry", n ? a : l).attr("rx", n ? a : l).attr("width", n ? a : this.getEventRectWidth).attr("height", d).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (f) => f.color || i).on("mouseover", function(f, m) {
|
|
23375
|
+
I.select(this).classed(G.eventRectHovered, !0), c.handleBarMouseOver(f, m, r);
|
|
23346
23376
|
}).on("mouseout", function() {
|
|
23347
|
-
I.select(this).classed(G.eventRectHovered, !1),
|
|
23348
|
-
}), e.selectAll(G.eventRectText).data(s.filter((
|
|
23377
|
+
I.select(this).classed(G.eventRectHovered, !1), c.handleBarMouseOut();
|
|
23378
|
+
}), e.selectAll(G.eventRectText).data(s.filter((f) => !!f.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (f) => this.getEventRectX(f) + this.textPadding).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
|
|
23349
23379
|
"fill",
|
|
23350
|
-
(
|
|
23380
|
+
(f) => this.getTextFillColor(f.color || i, 0.75)
|
|
23351
23381
|
).text(this.getEventText);
|
|
23352
23382
|
},
|
|
23353
23383
|
drawBarsChart({
|
|
@@ -23368,7 +23398,7 @@ const Ih = _h.exports, G = {
|
|
|
23368
23398
|
).attr("x", u).attr("y", -i).attr("width", l).attr("height", this.yScale.range()[0] + i).attr("fill", (f) => f.color || t).attr("fill-opacity", 0), d.append("rect").attr(
|
|
23369
23399
|
"class",
|
|
23370
23400
|
(f) => G.eventBar + (f.className ? ` ${f.className}` : "")
|
|
23371
|
-
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${
|
|
23401
|
+
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Ue.transparencyGradient}-${r})`), d.append("rect").attr(
|
|
23372
23402
|
"class",
|
|
23373
23403
|
(f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
|
|
23374
23404
|
).attr("x", u).attr("y", h).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (f) => f.color || t), d.on("mouseover", function(f, m) {
|
|
@@ -23389,7 +23419,7 @@ const Ih = _h.exports, G = {
|
|
|
23389
23419
|
onBarChartBarMouseOut(s, e) {
|
|
23390
23420
|
s.classed(G.eventBarContainerHovered, !1), s.selectAll(`.${G.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
23391
23421
|
const i = s.selectAll(`.${G.eventBar}`);
|
|
23392
|
-
i.attr("fill", `url(#${
|
|
23422
|
+
i.attr("fill", `url(#${Ue.transparencyGradient}-${e})`), i.attr("fill-opacity", 1);
|
|
23393
23423
|
},
|
|
23394
23424
|
drawTextLabel({
|
|
23395
23425
|
gElement: s,
|
|
@@ -23679,7 +23709,7 @@ export {
|
|
|
23679
23709
|
Y as Size,
|
|
23680
23710
|
Ia as TextSizes,
|
|
23681
23711
|
kt as TimelineAxis,
|
|
23682
|
-
|
|
23712
|
+
Ae as TimelineChartType,
|
|
23683
23713
|
Pt as TimelineIntervalChangeTrigger,
|
|
23684
23714
|
Cr as components,
|
|
23685
23715
|
vh as debounce,
|