@evercam/ui 0.0.55-beta.6 → 0.0.55-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 +5 -0
- package/dist/index.mjs +46 -19
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +7 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/tags.json +2 -1
- package/dist/web-types.json +10 -1
- package/package.json +1 -1
package/dist/attributes.json
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -22309,6 +22309,10 @@ const Ih = _h.exports, G = {
|
|
|
22309
22309
|
milestoneBulletSize: {
|
|
22310
22310
|
type: Number,
|
|
22311
22311
|
default: 18
|
|
22312
|
+
},
|
|
22313
|
+
milestonesFirst: {
|
|
22314
|
+
type: Boolean,
|
|
22315
|
+
default: !0
|
|
22312
22316
|
}
|
|
22313
22317
|
},
|
|
22314
22318
|
data() {
|
|
@@ -22363,6 +22367,30 @@ const Ih = _h.exports, G = {
|
|
|
22363
22367
|
};
|
|
22364
22368
|
},
|
|
22365
22369
|
computed: {
|
|
22370
|
+
combinedBarsHeight() {
|
|
22371
|
+
return Object.values(this.barGroups).reduce(
|
|
22372
|
+
(s, e) => s + (e.height || this.barChartHeight),
|
|
22373
|
+
0
|
|
22374
|
+
);
|
|
22375
|
+
},
|
|
22376
|
+
combinedMilestonesHeight() {
|
|
22377
|
+
return Object.values(this.milestonesGroups).reduce(
|
|
22378
|
+
(s, e) => s + (e.height || this.barChartHeight),
|
|
22379
|
+
0
|
|
22380
|
+
);
|
|
22381
|
+
},
|
|
22382
|
+
milestonesYOffset() {
|
|
22383
|
+
return this.milestonesFirst ? 0 : this.combinedBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22384
|
+
},
|
|
22385
|
+
chartsYOffset() {
|
|
22386
|
+
return this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0;
|
|
22387
|
+
},
|
|
22388
|
+
barsYOffset() {
|
|
22389
|
+
return (this.hasChart ? this.chartHeight : 0) + (this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0);
|
|
22390
|
+
},
|
|
22391
|
+
hasMilestones() {
|
|
22392
|
+
return Object.keys(this.milestonesGroups).length > 0;
|
|
22393
|
+
},
|
|
22366
22394
|
barChartHeight() {
|
|
22367
22395
|
return this.barHeight + this.barYPadding;
|
|
22368
22396
|
},
|
|
@@ -23077,7 +23105,7 @@ const Ih = _h.exports, G = {
|
|
|
23077
23105
|
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();
|
|
23078
23106
|
},
|
|
23079
23107
|
drawLineGraphEventsGroups() {
|
|
23080
|
-
const s = this.combinedXAxesHeight, e = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
23108
|
+
const s = this.combinedXAxesHeight + this.chartsYOffset, e = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
23081
23109
|
Object.entries(e).forEach(([t, i]) => {
|
|
23082
23110
|
const r = this.svg.append("g").classed(
|
|
23083
23111
|
`${G.lineGraphGroup} ${G.lineGraphGroup}-${t}`,
|
|
@@ -23160,29 +23188,29 @@ const Ih = _h.exports, G = {
|
|
|
23160
23188
|
dots: n,
|
|
23161
23189
|
dotsSize: a
|
|
23162
23190
|
}) {
|
|
23163
|
-
const { color: o, bgColor: l, label: c, events: u, isLoading: h } = e
|
|
23164
|
-
let
|
|
23165
|
-
i && (
|
|
23166
|
-
yPosition:
|
|
23191
|
+
const { color: o, bgColor: l, label: c, events: u, isLoading: h } = e;
|
|
23192
|
+
let d = t * this.barChartHeight + this.combinedXAxesHeight + this.barsYOffset;
|
|
23193
|
+
i && (d = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
|
|
23194
|
+
yPosition: d,
|
|
23167
23195
|
type: s,
|
|
23168
23196
|
color: o,
|
|
23169
23197
|
isLoading: h
|
|
23170
23198
|
});
|
|
23171
|
-
const
|
|
23199
|
+
const f = this.svg.append("g").attr("data-color", o).classed(G.eventGroup, !0).classed(`${G.eventGroup}-${s}`, !0);
|
|
23172
23200
|
if (this.drawBackground({
|
|
23173
23201
|
color: l || o,
|
|
23174
|
-
gElement:
|
|
23175
|
-
yPosition:
|
|
23202
|
+
gElement: f,
|
|
23203
|
+
yPosition: d,
|
|
23176
23204
|
height: r
|
|
23177
23205
|
}), i || n) {
|
|
23178
|
-
const
|
|
23179
|
-
|
|
23206
|
+
const m = n ? 0.5 : 2, g = d + this.barChartHeight / 2;
|
|
23207
|
+
f.append("line").classed(je.milestoneLine, !0).attr("x1", 0).attr("x2", this.timeline.offsetWidth).attr("y1", g).attr("y2", g).style("stroke", o).style("stroke-width", m);
|
|
23180
23208
|
}
|
|
23181
23209
|
this.drawBars({
|
|
23182
23210
|
events: u,
|
|
23183
23211
|
color: o,
|
|
23184
|
-
gElement:
|
|
23185
|
-
yPosition:
|
|
23212
|
+
gElement: f,
|
|
23213
|
+
yPosition: d,
|
|
23186
23214
|
type: s,
|
|
23187
23215
|
dots: n,
|
|
23188
23216
|
dotsSize: a
|
|
@@ -23190,8 +23218,8 @@ const Ih = _h.exports, G = {
|
|
|
23190
23218
|
color: o,
|
|
23191
23219
|
label: c,
|
|
23192
23220
|
type: s,
|
|
23193
|
-
gElement:
|
|
23194
|
-
yPosition:
|
|
23221
|
+
gElement: f,
|
|
23222
|
+
yPosition: d,
|
|
23195
23223
|
height: r
|
|
23196
23224
|
});
|
|
23197
23225
|
},
|
|
@@ -23236,13 +23264,12 @@ const Ih = _h.exports, G = {
|
|
|
23236
23264
|
},
|
|
23237
23265
|
getMilestoneGroupYPosition(s) {
|
|
23238
23266
|
let e = 0;
|
|
23239
|
-
for (const [
|
|
23240
|
-
if (
|
|
23267
|
+
for (const [t, i] of Object.entries(this.milestonesGroups)) {
|
|
23268
|
+
if (t === s)
|
|
23241
23269
|
break;
|
|
23242
|
-
e +=
|
|
23270
|
+
e += i.height || this.barChartHeight;
|
|
23243
23271
|
}
|
|
23244
|
-
|
|
23245
|
-
return Object.keys(this.barGroups).length * this.barChartHeight + this.combinedXAxesHeight + t + e;
|
|
23272
|
+
return this.combinedXAxesHeight + this.milestonesYOffset + e;
|
|
23246
23273
|
},
|
|
23247
23274
|
updateMilestonesPositions() {
|
|
23248
23275
|
Object.entries(this.milestonesGroups).forEach(([s, e]) => {
|