@m4l/gclick 0.21.0 → 0.22.0
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/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/ReportsViewerChartSeries.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/ReportsViewerChartSeries.js +17 -16
- package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.d.ts +4 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.js +70 -55
- package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.d.ts +5 -5
- package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.js +55 -41
- package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.d.ts +2 -2
- package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.js +16 -9
- package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.d.ts +1 -1
- package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.js +6 -5
- package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/types.d.ts +1 -0
- package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/types.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.d.ts +6 -6
- package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.js +82 -49
- package/components/VideoTimeLineSelector/helpers/playbackRange/types.d.ts +1 -0
- package/components/VideoTimeLineSelector/helpers/playbackRange/types.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/subcomponents/BaseVideoTimeLineSelector/BaseVideoTimeLineSelector.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/subcomponents/BaseVideoTimeLineSelector/BaseVideoTimeLineSelector.js +69 -64
- package/components/VideoTimeLineSelector/subcomponents/ChartTimeLine/ChartTimeLine.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/subcomponents/ChartTimeLine/ChartTimeLine.js +205 -192
- package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.d.ts +2 -2
- package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.d.ts.map +1 -1
- package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.js +32 -24
- package/package.json +2 -2
|
@@ -1,48 +1,53 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { memo as E } from "react";
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { EventClusterStyled as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import { useModuleDictionary as
|
|
7
|
-
import { VIDEO_TIME_LINE_SELECTOR_DICTIONARY_KEYS as
|
|
8
|
-
import { useVideoTimeLineSelectorStore as
|
|
9
|
-
import { VIDEO_TIME_LINE_SELECTOR_CLASSES as
|
|
10
|
-
const
|
|
11
|
-
const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } =
|
|
12
|
-
o && s && (o(r[0].startTime), c &&
|
|
13
|
-
},
|
|
3
|
+
import { Tooltip as d, Typography as n } from "@m4l/base";
|
|
4
|
+
import { EventClusterStyled as v, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
|
|
5
|
+
import { useTheme as x } from "@mui/material";
|
|
6
|
+
import { useModuleDictionary as C, useUserPreferences as _, getPropertyByString as g } from "@m4l/core";
|
|
7
|
+
import { VIDEO_TIME_LINE_SELECTOR_DICTIONARY_KEYS as D } from "../../dictionary.js";
|
|
8
|
+
import { useVideoTimeLineSelectorStore as L } from "../../store/useVideoTimeLineSelectorStore.js";
|
|
9
|
+
import { VIDEO_TIME_LINE_SELECTOR_CLASSES as N } from "../../constants.js";
|
|
10
|
+
const I = E(({ clusteredEvent: p, onEventClick: o }) => {
|
|
11
|
+
const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } = p, { getLabel: u } = C(), { formatDate: m } = _(), { setTimeVisible: f } = L((e) => e.actions), T = x(), h = () => {
|
|
12
|
+
o && s && (o(r[0].startTime), c && f(c));
|
|
13
|
+
}, y = (e) => {
|
|
14
14
|
o && o(e);
|
|
15
15
|
};
|
|
16
16
|
if (s)
|
|
17
17
|
return /* @__PURE__ */ t(
|
|
18
|
-
|
|
18
|
+
d,
|
|
19
19
|
{
|
|
20
20
|
arrow: !0,
|
|
21
21
|
title: /* @__PURE__ */ i("div", { children: [
|
|
22
22
|
/* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", fontWeight: "bold", children: [
|
|
23
23
|
r.length,
|
|
24
24
|
" ",
|
|
25
|
-
|
|
25
|
+
u(D.event_cluster)
|
|
26
26
|
] }),
|
|
27
27
|
r.map((e, S) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ i(n, { variant: "captionStandard", color: "text.contrastText", children: [
|
|
28
|
-
/* @__PURE__ */ t("span", { style: { color:
|
|
28
|
+
/* @__PURE__ */ t("span", { style: { color: g(T.vars.palette, e.color, "text.primary") }, children: "•" }),
|
|
29
29
|
" ",
|
|
30
30
|
e.label,
|
|
31
|
-
"
|
|
32
|
-
|
|
31
|
+
" ",
|
|
32
|
+
"-",
|
|
33
|
+
" ",
|
|
34
|
+
m({
|
|
35
|
+
presentationType: "time",
|
|
36
|
+
value: e.startTime
|
|
37
|
+
})
|
|
33
38
|
] }) }, S))
|
|
34
39
|
] }),
|
|
35
40
|
placement: "top",
|
|
36
41
|
children: /* @__PURE__ */ t(
|
|
37
|
-
|
|
42
|
+
v,
|
|
38
43
|
{
|
|
39
|
-
className:
|
|
44
|
+
className: N.eventCluster,
|
|
40
45
|
role: "button",
|
|
41
46
|
"aria-label": "Event cluster",
|
|
42
47
|
style: {
|
|
43
48
|
left: a.left
|
|
44
49
|
},
|
|
45
|
-
onDoubleClick:
|
|
50
|
+
onDoubleClick: h,
|
|
46
51
|
children: /* @__PURE__ */ t(
|
|
47
52
|
n,
|
|
48
53
|
{
|
|
@@ -56,13 +61,16 @@ const N = E(({ clusteredEvent: d, onEventClick: o }) => {
|
|
|
56
61
|
);
|
|
57
62
|
const l = r[0];
|
|
58
63
|
return /* @__PURE__ */ t(
|
|
59
|
-
|
|
64
|
+
d,
|
|
60
65
|
{
|
|
61
66
|
arrow: !0,
|
|
62
67
|
title: /* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", children: [
|
|
63
68
|
l.label,
|
|
64
69
|
/* @__PURE__ */ t("br", {}),
|
|
65
|
-
|
|
70
|
+
m({
|
|
71
|
+
presentationType: "datetime",
|
|
72
|
+
value: l.startTime
|
|
73
|
+
})
|
|
66
74
|
] }),
|
|
67
75
|
placement: "top",
|
|
68
76
|
children: /* @__PURE__ */ t(
|
|
@@ -72,13 +80,13 @@ const N = E(({ clusteredEvent: d, onEventClick: o }) => {
|
|
|
72
80
|
style: {
|
|
73
81
|
left: a.left
|
|
74
82
|
},
|
|
75
|
-
onClick: () =>
|
|
83
|
+
onClick: () => y(l.startTime)
|
|
76
84
|
}
|
|
77
85
|
)
|
|
78
86
|
}
|
|
79
87
|
);
|
|
80
88
|
});
|
|
81
|
-
|
|
89
|
+
I.displayName = "EventCluster";
|
|
82
90
|
export {
|
|
83
|
-
|
|
91
|
+
I as EventCluster
|
|
84
92
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/gclick",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@mui/material": "5.16.7",
|
|
51
51
|
"immer": "9.0.21",
|
|
52
52
|
"react-hook-form": "7.71.1",
|
|
53
|
-
"@googlemaps/js-api-loader": "1.16.10",
|
|
54
53
|
"leaflet.markercluster": "1.5.3",
|
|
54
|
+
"@googlemaps/js-api-loader": "1.16.10",
|
|
55
55
|
"yup": "0.32.11"
|
|
56
56
|
}
|
|
57
57
|
}
|