@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.
Files changed (29) hide show
  1. package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/ReportsViewerChartSeries.d.ts.map +1 -1
  2. package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/ReportsViewerChartSeries.js +17 -16
  3. package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.d.ts +4 -1
  4. package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.d.ts.map +1 -1
  5. package/components/ReportsViewer/subcomponents/SectionRenderer/SeriesChartSectionRenderer/helpers/generateReportsViewerChartSeriesOptions.js +70 -55
  6. package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.d.ts +5 -5
  7. package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.d.ts.map +1 -1
  8. package/components/VideoTimeLineSelector/helpers/clusterEvents/clusterEvents.js +55 -41
  9. package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.d.ts +2 -2
  10. package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.d.ts.map +1 -1
  11. package/components/VideoTimeLineSelector/helpers/getIntersectedSegments/getIntersectedSegments.js +16 -9
  12. package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.d.ts +1 -1
  13. package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.d.ts.map +1 -1
  14. package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/getTimeLinePosition.js +6 -5
  15. package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/types.d.ts +1 -0
  16. package/components/VideoTimeLineSelector/helpers/getTimeLinePosition/types.d.ts.map +1 -1
  17. package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.d.ts +6 -6
  18. package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.d.ts.map +1 -1
  19. package/components/VideoTimeLineSelector/helpers/playbackRange/playbackRange.js +82 -49
  20. package/components/VideoTimeLineSelector/helpers/playbackRange/types.d.ts +1 -0
  21. package/components/VideoTimeLineSelector/helpers/playbackRange/types.d.ts.map +1 -1
  22. package/components/VideoTimeLineSelector/subcomponents/BaseVideoTimeLineSelector/BaseVideoTimeLineSelector.d.ts.map +1 -1
  23. package/components/VideoTimeLineSelector/subcomponents/BaseVideoTimeLineSelector/BaseVideoTimeLineSelector.js +69 -64
  24. package/components/VideoTimeLineSelector/subcomponents/ChartTimeLine/ChartTimeLine.d.ts.map +1 -1
  25. package/components/VideoTimeLineSelector/subcomponents/ChartTimeLine/ChartTimeLine.js +205 -192
  26. package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.d.ts +2 -2
  27. package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.d.ts.map +1 -1
  28. package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.js +32 -24
  29. 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 m, Typography as n } from "@m4l/base";
4
- import { EventClusterStyled as y, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
5
- import { useTheme as v } from "@mui/material";
6
- import { useModuleDictionary as x, getPropertyByString as C } from "@m4l/core";
7
- import { VIDEO_TIME_LINE_SELECTOR_DICTIONARY_KEYS as _ } from "../../dictionary.js";
8
- import { useVideoTimeLineSelectorStore as g } from "../../store/useVideoTimeLineSelectorStore.js";
9
- import { VIDEO_TIME_LINE_SELECTOR_CLASSES as L } from "../../constants.js";
10
- const N = E(({ clusteredEvent: d, onEventClick: o }) => {
11
- const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } = d, { getLabel: p } = x(), { setTimeVisible: u } = g((e) => e.actions), T = v(), f = () => {
12
- o && s && (o(r[0].startTime), c && u(c));
13
- }, h = (e) => {
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
- m,
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
- p(_.event_cluster)
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: C(T.vars.palette, e.color, "text.primary") }, children: "•" }),
28
+ /* @__PURE__ */ t("span", { style: { color: g(T.vars.palette, e.color, "text.primary") }, children: "•" }),
29
29
  " ",
30
30
  e.label,
31
- " - ",
32
- e.startTime.toLocaleTimeString()
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
- y,
42
+ v,
38
43
  {
39
- className: L.eventCluster,
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: f,
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
- m,
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
- l.startTime.toLocaleString()
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: () => h(l.startTime)
83
+ onClick: () => y(l.startTime)
76
84
  }
77
85
  )
78
86
  }
79
87
  );
80
88
  });
81
- N.displayName = "EventCluster";
89
+ I.displayName = "EventCluster";
82
90
  export {
83
- N as EventCluster
91
+ I as EventCluster
84
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.21.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
  }