@m4l/gclick 0.4.4 → 0.4.5

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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as c } from "@emotion/react/jsx-runtime";
2
- import { Typography as f } from "@m4l/base";
3
- import { GroupCellWithTotalRootStyled as g } from "../../slots/ReportsViewerSlots.js";
2
+ import { Typography as u } from "@m4l/base";
3
+ import { GroupCellWithTotalRootStyled as f } from "../../slots/ReportsViewerSlots.js";
4
4
  function y(p) {
5
- const { childRows: n, column: r, groupTotalsMap: i, row: s } = p, u = r.align;
5
+ const { childRows: n, column: r, groupTotalsMap: i, row: s } = p, d = r.align;
6
6
  let o;
7
7
  const l = r.key, a = s?.id;
8
8
  if (a && i && l) {
@@ -14,7 +14,7 @@ function y(p) {
14
14
  o = n.length;
15
15
  } else
16
16
  o = n.length;
17
- return /* @__PURE__ */ c(g, { ownerState: { align: u }, children: /* @__PURE__ */ c(f, { variant: "body", children: o }) });
17
+ return /* @__PURE__ */ c(f, { ownerState: { align: d }, children: /* @__PURE__ */ c(u, { variant: "bodyStandard", children: o }) });
18
18
  }
19
19
  export {
20
20
  y as GroupCellWithTotal
@@ -4,7 +4,7 @@ import { useModuleDictionary as a } from "@m4l/core";
4
4
  import { ErrorContainerStyled as n } from "../../slots/ReportsViewerSlots.js";
5
5
  function s({ ownerState: e, dictionaryKey: o }) {
6
6
  const { getLabel: t } = a();
7
- return /* @__PURE__ */ r(n, { ownerState: e, children: /* @__PURE__ */ r(i, { variant: "body", color: "text.secondary", children: t(o) }) });
7
+ return /* @__PURE__ */ r(n, { ownerState: e, children: /* @__PURE__ */ r(i, { variant: "bodyStandard", color: "text.secondary", children: t(o) }) });
8
8
  }
9
9
  s.displayName = "ReportsViewerMessage";
10
10
  export {
@@ -1,17 +1,17 @@
1
1
  import { jsx as r } from "@emotion/react/jsx-runtime";
2
2
  import { ContainerChannelCheckboxStyled as m } from "../../slots/VideoTimeLineSelectorSlots.js";
3
- import { FormControlLabel as c, Radio as s } from "@mui/material";
4
- import { useVideoTimeLineSelectorStore as h } from "../../store/useVideoTimeLineSelectorStore.js";
5
- import { shallow as p } from "zustand/shallow";
6
- import { useComponentSize as d } from "@m4l/graphics";
3
+ import { FormControlLabel as c, Radio as d } from "@mui/material";
4
+ import { useVideoTimeLineSelectorStore as s } from "../../store/useVideoTimeLineSelectorStore.js";
5
+ import { shallow as h } from "zustand/shallow";
6
+ import { useComponentSize as p } from "@m4l/graphics";
7
7
  import { Typography as C } from "@m4l/base";
8
8
  const g = (n) => {
9
- const { channel: e, onChange: t } = n, i = h((o) => o.activeChannels, p), { currentSize: l } = d();
9
+ const { channel: e, onChange: t } = n, i = s((o) => o.activeChannels, h), { currentSize: l } = p();
10
10
  return !e || !e.id || !e.label || e.label.trim() === "" ? null : /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(
11
11
  c,
12
12
  {
13
- control: /* @__PURE__ */ r(s, { value: e.id }),
14
- label: /* @__PURE__ */ r(C, { variant: "body", color: "text.primary", ellipsis: !0, size: l, children: e.label }),
13
+ control: /* @__PURE__ */ r(d, { value: e.id }),
14
+ label: /* @__PURE__ */ r(C, { variant: "bodyStandard", color: "text.primary", ellipsis: !0, size: l, children: e.label }),
15
15
  checked: i.some((o) => o === e.id),
16
16
  onChange: (o, a) => {
17
17
  t(e.id, a);
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, jsxs as i } from "@emotion/react/jsx-runtime";
2
- import { memo as y } from "react";
2
+ import { memo as E } from "react";
3
3
  import { Tooltip as m, Typography as n } from "@m4l/base";
4
- import { EventClusterStyled as S, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
4
+ import { EventClusterStyled as y, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
5
5
  import { useTheme as v } from "@mui/material";
6
6
  import { useModuleDictionary as x, getPropertyByString as C } from "@m4l/core";
7
7
  import { VIDEO_TIME_LINE_SELECTOR_DICTIONARY_KEYS as _ } from "../../dictionary.js";
8
8
  import { useVideoTimeLineSelectorStore as g } from "../../store/useVideoTimeLineSelectorStore.js";
9
9
  import { VIDEO_TIME_LINE_SELECTOR_CLASSES as L } from "../../constants.js";
10
- const N = y(({ clusteredEvent: p, onEventClick: o }) => {
11
- const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } = p, { getLabel: d } = x(), { setTimeVisible: u } = g((e) => e.actions), T = v(), f = () => {
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
12
  o && s && (o(r[0].startTime), c && u(c));
13
13
  }, h = (e) => {
14
14
  o && o(e);
@@ -19,22 +19,22 @@ const N = y(({ clusteredEvent: p, onEventClick: o }) => {
19
19
  {
20
20
  arrow: !0,
21
21
  title: /* @__PURE__ */ i("div", { children: [
22
- /* @__PURE__ */ i(n, { variant: "body", color: "text.contrastText", fontWeight: "bold", children: [
22
+ /* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", fontWeight: "bold", children: [
23
23
  r.length,
24
24
  " ",
25
- d(_.event_cluster)
25
+ p(_.event_cluster)
26
26
  ] }),
27
- r.map((e, E) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ i(n, { variant: "caption", color: "text.contrastText", children: [
27
+ r.map((e, S) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ i(n, { variant: "captionStandard", color: "text.contrastText", children: [
28
28
  /* @__PURE__ */ t("span", { style: { color: C(T.vars.palette, e.color, "text.primary") }, children: "•" }),
29
29
  " ",
30
30
  e.label,
31
31
  " - ",
32
32
  e.startTime.toLocaleTimeString()
33
- ] }) }, E))
33
+ ] }) }, S))
34
34
  ] }),
35
35
  placement: "top",
36
36
  children: /* @__PURE__ */ t(
37
- S,
37
+ y,
38
38
  {
39
39
  className: L.eventCluster,
40
40
  role: "button",
@@ -46,7 +46,7 @@ const N = y(({ clusteredEvent: p, onEventClick: o }) => {
46
46
  children: /* @__PURE__ */ t(
47
47
  n,
48
48
  {
49
- variant: "caption",
49
+ variant: "captionStandard",
50
50
  children: r.length
51
51
  }
52
52
  )
@@ -59,7 +59,7 @@ const N = y(({ clusteredEvent: p, onEventClick: o }) => {
59
59
  m,
60
60
  {
61
61
  arrow: !0,
62
- title: /* @__PURE__ */ i(n, { variant: "body", color: "text.contrastText", children: [
62
+ title: /* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", children: [
63
63
  l.label,
64
64
  /* @__PURE__ */ t("br", {}),
65
65
  l.startTime.toLocaleString()
@@ -1,15 +1,15 @@
1
1
  import { jsx as t, jsxs as e, Fragment as x } from "@emotion/react/jsx-runtime";
2
- import { IndicatorBatteryRootStyled as N, TitleStyled as p, ContentStyled as _, StatusVoltageContainerStyled as B, StatusContainerStyled as g, VoltageContainerStyled as f, ContainerTitleBatteryPorcentageStyled as E, ContainerIconPercentageStyled as R, ContainerStatusVoltageStyled as V } from "./slots/IndicatorBaterySlots.js";
2
+ import { IndicatorBatteryRootStyled as N, TitleStyled as p, ContentStyled as _, StatusVoltageContainerStyled as B, StatusContainerStyled as S, VoltageContainerStyled as g, ContainerTitleBatteryPorcentageStyled as E, ContainerIconPercentageStyled as R, ContainerStatusVoltageStyled as V } from "./slots/IndicatorBaterySlots.js";
3
3
  import { useModuleDictionary as M, useEnvironment as O } from "@m4l/core";
4
4
  import { INDICATOR_BATTERY_DICTIONARY as o } from "./dictionary.js";
5
- import { Chip as C } from "@m4l/components";
6
- import { Icon as I, Typography as r } from "@m4l/base";
5
+ import { Chip as f } from "@m4l/components";
6
+ import { Icon as C, Typography as r } from "@m4l/base";
7
7
  import { useBatteryStatus as $ } from "./hooks/useBatteryStatus/useBatteryStatus.js";
8
8
  import { INDICATOR_BATTERY_CLASSES as s, INDICATOR_BATTERY_KEY_COMPONENT as F } from "./constants.js";
9
9
  import Y from "clsx";
10
10
  import { IndicatorBatterySlots as P } from "./slots/IndicatorBatteryEnum.js";
11
11
  import { getPropDataTestId as w } from "../../../utils/testIds.js";
12
- import { INDICATOR_BATTERY_ICONS as S } from "./icons.js";
12
+ import { INDICATOR_BATTERY_ICONS as I } from "./icons.js";
13
13
  import { useMemo as b } from "react";
14
14
  import { GaugeCircular as j } from "../../GaugeCircular/GaugeCircular.js";
15
15
  const rt = (a) => {
@@ -21,7 +21,7 @@ const rt = (a) => {
21
21
  valueAcceptable: a.valueAcceptable,
22
22
  valueGood: a.valueGood,
23
23
  valueExcellent: a.valueExcellent
24
- }, [a]), { label: u, color: d, maxVoltage: l } = $(T), h = { color: d }, { value: n, className: k, variant: W = "standard", batteryType: v = "main", dataTestId: A } = a, c = b(() => {
24
+ }, [a]), { label: u, color: c, maxVoltage: l } = $(T), h = { color: c }, { value: n, className: k, variant: W = "standard", batteryType: v = "main", dataTestId: A } = a, d = b(() => {
25
25
  if (n == null || n < 0)
26
26
  return 0;
27
27
  if (l && l > 0) {
@@ -37,7 +37,7 @@ const rt = (a) => {
37
37
  variant: "text",
38
38
  role: "progressbar",
39
39
  "aria-label": "indicator-battery",
40
- "aria-valuenow": c,
40
+ "aria-valuenow": d,
41
41
  "aria-valuemin": 0,
42
42
  "aria-valuemax": 100,
43
43
  direction: "column",
@@ -46,20 +46,20 @@ const rt = (a) => {
46
46
  children: W === "standard" ? /* @__PURE__ */ e(x, { children: [
47
47
  /* @__PURE__ */ t(p, { variant: "captionDens", skeletonWidth: "80px", children: i(v === "main" ? o.titleMain : o.titleBackup) }),
48
48
  /* @__PURE__ */ e(_, { ownerState: h, children: [
49
- /* @__PURE__ */ e(j, { value: c, children: [
50
- /* @__PURE__ */ t(I, { src: `${m}/${y}/${S.batteryStandard}` }),
49
+ /* @__PURE__ */ e(j, { value: d, children: [
50
+ /* @__PURE__ */ t(C, { src: `${m}/${y}/${I.batteryStandard}` }),
51
51
  /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "flex-end", justifyContent: "center", gap: "2px" }, children: [
52
- /* @__PURE__ */ t(r, { variant: "subtitle", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${c ?? 0}` }),
53
- /* @__PURE__ */ t(r, { variant: "body", fontFamily: "Jura", color: "text.primary", skeletonWidth: "10px", children: "%" })
52
+ /* @__PURE__ */ t(r, { variant: "subtitleStandard", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${d ?? 0}` }),
53
+ /* @__PURE__ */ t(r, { variant: "bodyStandard", fontFamily: "Jura", color: "text.primary", skeletonWidth: "10px", children: "%" })
54
54
  ] })
55
55
  ] }),
56
56
  /* @__PURE__ */ e(B, { children: [
57
- /* @__PURE__ */ e(g, { direction: "row", children: [
58
- /* @__PURE__ */ t(r, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
59
- /* @__PURE__ */ t(C, { label: u, color: d, variant: "contained", skeletonWidth: "70px" })
57
+ /* @__PURE__ */ e(S, { direction: "row", children: [
58
+ /* @__PURE__ */ t(r, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
59
+ /* @__PURE__ */ t(f, { label: u, color: c, variant: "contained", skeletonWidth: "70px" })
60
60
  ] }),
61
- /* @__PURE__ */ e(f, { direction: "row", children: [
62
- /* @__PURE__ */ t(r, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
61
+ /* @__PURE__ */ e(g, { direction: "row", children: [
62
+ /* @__PURE__ */ t(r, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
63
63
  /* @__PURE__ */ t(r, { variant: "bodyDens", fontFamily: "Inter", color: "text.primary", skeletonWidth: "20px", children: n })
64
64
  ] })
65
65
  ] })
@@ -68,17 +68,17 @@ const rt = (a) => {
68
68
  /* @__PURE__ */ e(E, { ownerState: h, children: [
69
69
  /* @__PURE__ */ t(p, { variant: "captionDens", skeletonWidth: "80px", children: i(v === "main" ? o.titleMain : o.titleBackup) }),
70
70
  /* @__PURE__ */ e(R, { children: [
71
- /* @__PURE__ */ t(I, { src: `${m}/${y}/${S.batteryCompact}` }),
72
- /* @__PURE__ */ t(r, { variant: "subtitleDens", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${c ?? 0}%` })
71
+ /* @__PURE__ */ t(C, { src: `${m}/${y}/${I.batteryCompact}` }),
72
+ /* @__PURE__ */ t(r, { variant: "subtitleDens", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${d ?? 0}%` })
73
73
  ] })
74
74
  ] }),
75
75
  /* @__PURE__ */ e(V, { children: [
76
- /* @__PURE__ */ e(g, { className: s.statusContainer, children: [
77
- /* @__PURE__ */ t(r, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
78
- /* @__PURE__ */ t(C, { label: u, color: d, variant: "contained", skeletonWidth: "70px" })
76
+ /* @__PURE__ */ e(S, { className: s.statusContainer, children: [
77
+ /* @__PURE__ */ t(r, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
78
+ /* @__PURE__ */ t(f, { label: u, color: c, variant: "contained", skeletonWidth: "70px" })
79
79
  ] }),
80
- /* @__PURE__ */ e(f, { className: s.voltageContainer, children: [
81
- /* @__PURE__ */ t(r, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
80
+ /* @__PURE__ */ e(g, { className: s.voltageContainer, children: [
81
+ /* @__PURE__ */ t(r, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
82
82
  /* @__PURE__ */ t(r, { variant: "bodyDens", fontFamily: "Inter", color: "text.primary", skeletonWidth: "20px", children: n })
83
83
  ] })
84
84
  ] })
@@ -6,7 +6,7 @@ const y = (n) => {
6
6
  /* @__PURE__ */ t(a, { variant: "subtitleDens", fontFamily: "Jura", color: "text.secondary", ellipsis: !0, skeletonWidth: "30px", ownerState: {
7
7
  minWidth: r
8
8
  }, children: i }),
9
- e && /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(s, { variant: "body", fontFamily: "Jura", skeletonWidth: "15px", ellipsis: !0, children: e }) })
9
+ e && /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(s, { variant: "bodyStandard", fontFamily: "Jura", skeletonWidth: "15px", ellipsis: !0, children: e }) })
10
10
  ] });
11
11
  };
12
12
  export {
@@ -4,17 +4,17 @@ import { Typography as u } from "@m4l/base";
4
4
  import { IndicatorValueStatusRootStyled as y, ContainerTitleIconStyled as x, IconStyled as h, ContainerValueStatusStyled as C, ContainerValueStyled as I } from "./slots/IndicatorValueStatusSlots.js";
5
5
  import { INDICATOR_VALUE_STATUS_CLASSES as f } from "./constants.js";
6
6
  import T from "clsx";
7
- const _ = (a) => {
8
- const { title: s, iconUrl: o, value: r, status: l, className: c, dataTestId: d, size: S, tooltipContent: m } = a, { currentSize: n } = p(S), i = {
7
+ const _ = (i) => {
8
+ const { title: s, iconUrl: o, value: r, status: l, className: c, dataTestId: d, size: S, tooltipContent: m } = i, { currentSize: n } = p(S), a = {
9
9
  size: n
10
10
  };
11
11
  return /* @__PURE__ */ t(y, { className: T(c, f.root), "data-testid": d, variant: "text", children: [
12
12
  /* @__PURE__ */ t(x, { children: [
13
- /* @__PURE__ */ e(u, { variant: "body", color: "text.secondary", ellipsis: !0, size: n, skeletonWidth: "80px", children: s }),
14
- o && /* @__PURE__ */ e(h, { src: o, ownerState: i, color: "text.secondary", tooltipContent: m })
13
+ /* @__PURE__ */ e(u, { variant: "bodyStandard", color: "text.secondary", ellipsis: !0, size: n, skeletonWidth: "80px", children: s }),
14
+ o && /* @__PURE__ */ e(h, { src: o, ownerState: a, color: "text.secondary", tooltipContent: m })
15
15
  ] }),
16
16
  /* @__PURE__ */ t(C, { children: [
17
- r && /* @__PURE__ */ e(I, { ownerState: i, children: r }),
17
+ r && /* @__PURE__ */ e(I, { ownerState: a, children: r }),
18
18
  l
19
19
  ] })
20
20
  ] });
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as r } from "@emotion/react/jsx-runtime";
2
- import { Card as S, ToggleIconButton as p } from "@m4l/components";
2
+ import { Card as g, ToggleIconButton as p } from "@m4l/components";
3
3
  import { Typography as f } from "@m4l/base";
4
4
  import { useModuleDictionary as I, useEnvironment as u } from "@m4l/core";
5
5
  import { GpsMapSourceToolCardIconTitleContainerStyled as M, GpsMapSourceToolCardIconStyled as E, GpsMapSourceToolCardRoadOptionsContainerStyled as $ } from "../slots/styled.js";
@@ -19,8 +19,8 @@ function U(T) {
19
19
  label: O,
20
20
  setCurrentMapSourceLayer: R,
21
21
  setMapSourceLayerRoadOptions: c
22
- } = T, { getLabel: n } = I(), { host_static_assets: s, environment_assets: i } = u(), g = y || m || L;
23
- return /* @__PURE__ */ d(S, { direction: "row", selected: o, onClick: () => {
22
+ } = T, { getLabel: n } = I(), { host_static_assets: s, environment_assets: i } = u(), S = y || m || L;
23
+ return /* @__PURE__ */ d(g, { direction: "row", selected: o, onClick: () => {
24
24
  R(t, a);
25
25
  }, padding: "compact", children: [
26
26
  /* @__PURE__ */ d(M, { children: [
@@ -34,14 +34,14 @@ function U(T) {
34
34
  /* @__PURE__ */ r(
35
35
  f,
36
36
  {
37
- variant: "caption",
37
+ variant: "captionStandard",
38
38
  color: o ? "primary.semanticText" : "text.secondary",
39
39
  ellipsis: !0,
40
40
  children: O || n(C)
41
41
  }
42
42
  )
43
43
  ] }),
44
- g && /* @__PURE__ */ d($, { children: [
44
+ S && /* @__PURE__ */ d($, { children: [
45
45
  y && /* @__PURE__ */ r(
46
46
  p,
47
47
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },