fluency-v8-components 1.7.0 → 1.7.2
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/fluency-v8-components.es.js +1 -1
- package/dist/fluency-v8-components.umd.js +35 -35
- package/dist/{index-Dn9PcLrp.mjs → index-CEQyB0DW.mjs} +1687 -1675
- package/dist/{index.es-lCJ9d2up.mjs → index.es-BVtr1w7l.mjs} +1 -1
- package/package.json +1 -1
- package/src/components/charts/RangeSlider.vue +13 -0
- package/src/components/dialogs/NameDescDialog.vue +1 -0
package/package.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<div class="text-sm">
|
|
3
|
+
<span>{{ events }} Events in Selected Range</span>
|
|
4
|
+
</div>
|
|
2
5
|
<div
|
|
3
6
|
:id="chartID"
|
|
4
7
|
class="rangeslider-container"
|
|
@@ -14,6 +17,7 @@ import { scaleLinear, scaleTime } from 'd3-scale'
|
|
|
14
17
|
import { pointer, select } from 'd3-selection'
|
|
15
18
|
import { timeHour } from 'd3-time'
|
|
16
19
|
import { timeFormat } from 'd3-time-format'
|
|
20
|
+
import { humanCount } from '@/utils/formatOutput'
|
|
17
21
|
|
|
18
22
|
const ONE_HOUR_MS = 60 * 60 * 1000;
|
|
19
23
|
const ONE_DAY_MS = 24 * 60 * 60 * 1000;
|
|
@@ -77,6 +81,15 @@ export default {
|
|
|
77
81
|
isDark () {
|
|
78
82
|
return this.theme === "dark"
|
|
79
83
|
},
|
|
84
|
+
events () {
|
|
85
|
+
return humanCount(this.chartData.reduce((total, d) => {
|
|
86
|
+
const time = d[0]
|
|
87
|
+
if (time >= this.start && time <= this.end) {
|
|
88
|
+
return total + d[1]
|
|
89
|
+
}
|
|
90
|
+
return total
|
|
91
|
+
}, 0))
|
|
92
|
+
}
|
|
80
93
|
},
|
|
81
94
|
watch: {
|
|
82
95
|
chartData () {
|