@hybridcore/ui 1.6.11 → 1.6.13

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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,7 +1,7 @@
1
- import a from "react";
2
- import { b as Q } from "../../ol-yOE-NV0X.js";
3
- import { t as U } from "../../Source-BSZST_GH.js";
4
- function $({
1
+ import i from "react";
2
+ import { createMap as Q } from "./helpers/ol.js";
3
+ import * as U from "ol/proj";
4
+ function Y({
5
5
  id: g = "map",
6
6
  layers: u = [],
7
7
  center: { latitude: m = 0, longitude: d = 0 } = { latitude: 0, longitude: 0 },
@@ -9,7 +9,7 @@ function $({
9
9
  options: o,
10
10
  onInit: s
11
11
  }) {
12
- const t = a.useRef(null), f = a.useRef(null), y = () => {
12
+ const t = i.useRef(null), f = i.useRef(null), y = () => {
13
13
  t.current === null && (t.current = Q(
14
14
  u,
15
15
  {
@@ -29,12 +29,12 @@ function $({
29
29
  t.current.addOverlay(e);
30
30
  }, E = (e) => {
31
31
  t.current.removeOverlay(e);
32
- }, V = (e) => {
32
+ }, P = (e) => {
33
33
  const r = t.current.getOverlayById(e);
34
34
  t.current.removeOverlay(r);
35
- }, z = (e, r) => {
35
+ }, V = (e, r) => {
36
36
  t.current.getLayers().insertAt(e, r);
37
- }, P = () => t.current.getAllLayers(), p = () => t.current.getLayerGroup(), C = () => t.current.getLayers(), F = () => t.current.getView().getZoom(), R = (e) => t.current.getView().setZoom(e), O = (e) => {
37
+ }, z = () => t.current.getAllLayers(), p = () => t.current.getLayerGroup(), C = () => t.current.getLayers(), F = () => t.current.getView().getZoom(), R = (e) => t.current.getView().setZoom(e), O = (e) => {
38
38
  t.current.removeLayer(e);
39
39
  }, Z = (e) => {
40
40
  t.current.setLayerGroup(e);
@@ -46,9 +46,9 @@ function $({
46
46
  t.current.removeInteraction(e);
47
47
  }, A = (e, r) => {
48
48
  t.current.on(e, r);
49
- }, i = () => t.current.getView(), I = (e) => t.current.getEventPixel(e), T = (e) => t.current.getEventCoordinate(e), B = () => {
49
+ }, a = () => t.current.getView(), I = (e) => t.current.getEventPixel(e), T = (e) => t.current.getEventCoordinate(e), B = () => {
50
50
  let e = t.current.getView().calculateExtent();
51
- return e = U(e, "EPSG:3857", "EPSG:4326"), {
51
+ return e = U.transformExtent(e, "EPSG:3857", "EPSG:4326"), {
52
52
  bottomLeft: {
53
53
  latitude: e[1],
54
54
  longitude: e[0]
@@ -79,13 +79,13 @@ function $({
79
79
  minResolution: r,
80
80
  padding: n
81
81
  });
82
- }, b = (e, r = [0, 0, 0, 0]) => {
82
+ }, _ = (e, r = [0, 0, 0, 0]) => {
83
83
  const n = e.getGeometry();
84
84
  if (n) {
85
85
  const c = n.getExtent();
86
86
  l(c, 12, r);
87
87
  }
88
- }, _ = (e) => {
88
+ }, b = (e) => {
89
89
  t.current.getView().setCenter(e);
90
90
  }, j = () => {
91
91
  t.current.updateSize();
@@ -99,13 +99,13 @@ function $({
99
99
  zoom: t.current.getView().getZoom() - 1,
100
100
  duration: 250
101
101
  });
102
- }, D = (e) => t.current.getCoordinateFromPixel(e), H = (e) => t.current.getPixelFromCoordinate(e), J = () => t.current.getSize(), K = () => i().getResolution(), N = (e) => i().getResolutionForZoom(e);
103
- return a.useEffect(() => {
102
+ }, D = (e) => t.current.getCoordinateFromPixel(e), H = (e) => t.current.getPixelFromCoordinate(e), J = () => t.current.getSize(), K = () => a().getResolution(), N = (e) => a().getResolutionForZoom(e);
103
+ return i.useEffect(() => {
104
104
  const e = setTimeout(y, 50);
105
105
  return () => {
106
106
  e ? clearTimeout(e) : L();
107
107
  };
108
- }, []), a.useEffect(() => (u.length > 0 && t.current && t.current.setLayers(u), () => {
108
+ }, []), i.useEffect(() => (u.length > 0 && t.current && t.current.setLayers(u), () => {
109
109
  }), [u]), {
110
110
  refs: {
111
111
  map: t,
@@ -115,9 +115,9 @@ function $({
115
115
  addInteraction: S,
116
116
  addLayer: w,
117
117
  centerToExtent: l,
118
- centerToFeature: b,
118
+ centerToFeature: _,
119
119
  forEachFeatureAtPixel: M,
120
- getAllLayers: P,
120
+ getAllLayers: z,
121
121
  getBoundingBox: B,
122
122
  getCoordinateFromPixel: D,
123
123
  getEventCoordinate: T,
@@ -128,25 +128,25 @@ function $({
128
128
  getResolution: K,
129
129
  getResolutionForZoom: N,
130
130
  getSize: J,
131
- getView: i,
131
+ getView: a,
132
132
  getZoomLevel: F,
133
- insertLayerAt: z,
133
+ insertLayerAt: V,
134
134
  on: A,
135
135
  removeInteraction: h,
136
136
  removeLayer: O,
137
137
  setLayerGroup: Z,
138
138
  setLayers: G,
139
- setCenter: _,
139
+ setCenter: b,
140
140
  setZoomLevel: R,
141
141
  addOverlay: x,
142
142
  updateSize: j,
143
143
  zoomIn: k,
144
144
  zoomOut: q,
145
145
  removeOverlay: E,
146
- removeOverlayById: V
146
+ removeOverlayById: P
147
147
  }
148
148
  };
149
149
  }
150
150
  export {
151
- $ as default
151
+ Y as default
152
152
  };
@@ -1,11 +1,15 @@
1
1
  import { styled as f } from "@mui/material";
2
- import { S as r, F as t, a, C as s, I as c, T as d } from "../../Text-ChJRuaD8.js";
3
- const i = 0.4, g = f("div")(({ theme: o, cssPosition: n = "absolute" }) => ({
2
+ import { Icon as l, Text as d } from "ol/style";
3
+ import a from "ol/style/Circle";
4
+ import o from "ol/style/Fill";
5
+ import s from "ol/style/Stroke";
6
+ import r from "ol/style/Style";
7
+ const c = 0.4, g = f("div")(({ theme: t, cssPosition: n = "absolute" }) => ({
4
8
  position: n,
5
9
  width: "100%",
6
10
  height: "100%",
7
11
  // minHeight: 500,
8
- backgroundColor: o.palette.background.paper,
12
+ backgroundColor: t.palette.background.paper,
9
13
  "& .ol-zoom": {
10
14
  backgroundColor: "transparent",
11
15
  "& button": {
@@ -16,60 +20,60 @@ const i = 0.4, g = f("div")(({ theme: o, cssPosition: n = "absolute" }) => ({
16
20
  marginTop: 3
17
21
  }
18
22
  }
19
- })), p = new r({
20
- fill: new t({
23
+ })), x = new r({
24
+ fill: new o({
21
25
  color: "rgba(255, 255, 255, 0.2)"
22
26
  }),
23
- stroke: new a({
27
+ stroke: new s({
24
28
  color: "#2daae1",
25
29
  width: 2
26
30
  }),
27
- image: new s({
31
+ image: new a({
28
32
  radius: 7,
29
- fill: new t({
33
+ fill: new o({
30
34
  color: "#2daae1"
31
35
  })
32
36
  })
33
37
  }), w = new r({
34
- fill: new t({
38
+ fill: new o({
35
39
  color: "rgba(255, 255, 255, 0.4)"
36
40
  }),
37
- stroke: new a({
41
+ stroke: new s({
38
42
  color: "#0f70b7",
39
43
  width: 2
40
44
  }),
41
- image: new s({
45
+ image: new a({
42
46
  radius: 7,
43
- fill: new t({
47
+ fill: new o({
44
48
  color: "#0f70b7"
45
49
  })
46
50
  })
47
- }), b = (o) => {
48
- const n = o.get("icon");
51
+ }), C = (t) => {
52
+ const n = t.get("icon");
49
53
  if (n)
50
54
  return new r({
51
- image: new c({
55
+ image: new l({
52
56
  anchor: [0.5, 0.5],
53
57
  src: n,
54
- scale: i
58
+ scale: c
55
59
  }),
56
60
  zIndex: 2
57
61
  });
58
- const e = o.get("features");
62
+ const e = t.get("features");
59
63
  if (e) {
60
- const l = e.length > 1 ? e[0].get("clusterIcon") : e[0].get("icon");
61
- if (l)
64
+ const i = e.length > 1 ? e[0].get("clusterIcon") : e[0].get("icon");
65
+ if (i)
62
66
  return new r({
63
- image: new c({
67
+ image: new l({
64
68
  anchor: [0.5, 0.5],
65
- src: l,
66
- scale: i
69
+ src: i,
70
+ scale: c
67
71
  }),
68
72
  ...e.length > 1 && {
69
73
  text: new d({
70
74
  text: e.length.toString(),
71
75
  font: "14px sans-serif",
72
- fill: new t({
76
+ fill: new o({
73
77
  color: "#fff"
74
78
  })
75
79
  })
@@ -78,12 +82,12 @@ const i = 0.4, g = f("div")(({ theme: o, cssPosition: n = "absolute" }) => ({
78
82
  });
79
83
  }
80
84
  return w;
81
- }, m = {
85
+ }, k = {
82
86
  Container: g
83
87
  };
84
88
  export {
85
- m as default,
86
- p as defaultStyle,
87
- b as selectStyleFunction,
89
+ k as default,
90
+ x as defaultStyle,
91
+ C as selectStyleFunction,
88
92
  w as selectedStyle
89
93
  };
@@ -1,15 +1,15 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
- import { R as u, A } from "../../AnimatedTheme-D3VZKKNV.js";
2
+ import { R as u, A } from "../../AnimatedTheme-ktdO3Bel.js";
3
3
  import { useTheme as g, alpha as v } from "@mui/material";
4
4
  import { useRef as w, useLayoutEffect as x } from "react";
5
- import { X as y, V as R } from "../../AxisRenderer-Doyw-FTI.js";
6
- import { C as L } from "../../CategoryAxis-B5uTZjhL.js";
7
- import { A as T, a as b } from "../../AxisRendererY-BylCU67e.js";
8
- import { T as X } from "../../Tooltip-RhAldW7s.js";
9
- import { C } from "../../ColumnSeries-CqJ-563p.js";
10
- import { c as a } from "../../Entity-4Lr2piVN.js";
11
- import { L as Y } from "../../LineSeries-Dg1aytHA.js";
12
- import { L as F } from "../../LinearGradient-D1hzMjaW.js";
5
+ import { X as y, V as R } from "../../AxisRenderer-BCQoUJw6.js";
6
+ import { C as L } from "../../CategoryAxis-B6NqW8qd.js";
7
+ import { A as T, a as b } from "../../AxisRendererY-AXWvGU6r.js";
8
+ import { T as X } from "../../Tooltip-vyZRZWih.js";
9
+ import { C } from "../../ColumnSeries-CtRTsn-E.js";
10
+ import { c as a } from "../../Entity-BJCuhdq_.js";
11
+ import { L as Y } from "../../LineSeries-D_IL2qGF.js";
12
+ import { L as F } from "../../LinearGradient-CxQyCSEB.js";
13
13
  const z = ({
14
14
  data: o,
15
15
  type: p,
@@ -1,99 +1,96 @@
1
1
  import { useThemeProps as K } from "@mui/material";
2
- import { formatValue as $, resolveConditionalStyle as B } from "../charts/_common/format.js";
3
- import { c as y } from "../../createReactComponent-C7L-DMHj.js";
2
+ import { formatValue as B, resolveConditionalStyle as D } from "../charts/_common/format.js";
3
+ import { c as m } from "../../createReactComponent-C7L-DMHj.js";
4
4
  /**
5
5
  * @license @tabler/icons-react v3.44.0 - MIT
6
6
  *
7
7
  * This source code is licensed under the MIT license.
8
8
  * See the LICENSE file in the root directory of this source tree.
9
9
  */
10
- const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = y("outline", "arrow-right", "ArrowRight", Q);
10
+ const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = m("outline", "arrow-right", "ArrowRight", Q);
11
11
  /**
12
12
  * @license @tabler/icons-react v3.44.0 - MIT
13
13
  *
14
14
  * This source code is licensed under the MIT license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
16
  */
17
- const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = y("outline", "trending-down", "TrendingDown", X);
17
+ const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = m("outline", "trending-down", "TrendingDown", X);
18
18
  /**
19
19
  * @license @tabler/icons-react v3.44.0 - MIT
20
20
  *
21
21
  * This source code is licensed under the MIT license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
23
  */
24
- const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = y("outline", "trending-up", "TrendingUp", ee), ce = (D) => {
25
- const r = K({ props: D, name: "HCMetricCard" }), {
24
+ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = m("outline", "trending-up", "TrendingUp", ee), ce = (F) => {
25
+ const i = K({ props: F, name: "HCMetricCard" }), {
26
26
  value: c = [],
27
- secondValue: C = [],
28
- secondValueFormat: F,
29
- variant: P = "default",
27
+ secondValue: y = [],
28
+ secondValueFormat: P,
29
+ variant: R = "default",
30
30
  layout: w = "overlay",
31
31
  valuePrefix: A,
32
32
  valueSuffix: O,
33
- format: e,
33
+ format: o,
34
34
  showChange: U = !1,
35
- changeType: s = "percentage",
35
+ changeType: a = "percentage",
36
36
  showTrend: Z = !1,
37
- showIcon: b = !1,
37
+ showIcon: C = !1,
38
38
  icon: d,
39
39
  iconPosition: u = "right"
40
- } = r, H = c.length > 0, g = c[c.length - 1], k = c[c.length - 2], o = g ? Number(g.v) : NaN, t = k ? Number(k.v) : NaN, m = !isNaN(o) && !isNaN(t), p = {
41
- prefix: (e == null ? void 0 : e.prefix) ?? A,
42
- suffix: (e == null ? void 0 : e.suffix) ?? O,
43
- decimals: e == null ? void 0 : e.decimals,
44
- color: e == null ? void 0 : e.color,
45
- backgroundColor: e == null ? void 0 : e.backgroundColor,
46
- conditionalRules: e == null ? void 0 : e.conditionalRules
40
+ } = i, H = c.length > 0, g = c[c.length - 1], S = c[c.length - 2], e = g ? Number(g.v) : NaN, t = S ? Number(S.v) : NaN, b = !isNaN(e) && !isNaN(t), p = {
41
+ ...o,
42
+ prefix: (o == null ? void 0 : o.prefix) ?? A,
43
+ suffix: (o == null ? void 0 : o.suffix) ?? O
47
44
  };
48
- let i = "—", S = "", M, V;
49
- if (!isNaN(o)) {
50
- i = $(o, p), S = g.t;
51
- const l = B(o, p);
52
- M = l.color, V = l.backgroundColor;
45
+ let r = "—", M = "", V, k;
46
+ if (!isNaN(e)) {
47
+ r = B(e, p), M = g.t;
48
+ const l = D(e, p);
49
+ V = l.color, k = l.backgroundColor;
53
50
  }
54
- const I = F ?? p;
51
+ const I = P ?? p;
55
52
  let h, T, x;
56
- const _ = C[C.length - 1], f = _ ? Number(_.v) : NaN;
53
+ const _ = y[y.length - 1], f = _ ? Number(_.v) : NaN;
57
54
  if (!isNaN(f)) {
58
- h = $(f, I);
59
- const l = B(f, I);
55
+ h = B(f, I);
56
+ const l = D(f, I);
60
57
  T = l.color, x = l.backgroundColor;
61
58
  }
62
- let a;
59
+ let s;
63
60
  if (U)
64
- if (m && !(t === 0 && s === "percentage")) {
65
- const N = s === "absolute" ? o - t : (o - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = s === "percentage" ? 1 : 2, G = s === "percentage" ? "%" : "";
66
- a = `${z}${Math.abs(N).toFixed(E)}${G}`;
61
+ if (b && !(t === 0 && a === "percentage")) {
62
+ const N = a === "absolute" ? e - t : (e - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = a === "percentage" ? 1 : 2, G = a === "percentage" ? "%" : "";
63
+ s = `${z}${Math.abs(N).toFixed(E)}${G}`;
67
64
  } else
68
- a = "—";
65
+ s = "—";
69
66
  let n;
70
- Z && m && (o > t ? n = "up" : o < t ? n = "down" : n = "neutral");
67
+ Z && b && (e > t ? n = "up" : e < t ? n = "down" : n = "neutral");
71
68
  let v = W;
72
69
  n === "up" ? v = oe : n === "down" && (v = Y);
73
- const R = [
70
+ const $ = [
74
71
  "top-left",
75
72
  "top-right",
76
73
  "bottom-left",
77
74
  "bottom-right"
78
- ].includes(u), J = b && !!d && R, L = b && !!d && !R, j = JSON.stringify({
79
- metric: r.label,
80
- value: i,
81
- change: a,
82
- asOf: S
75
+ ].includes(u), J = C && !!d && $, L = C && !!d && !$, j = JSON.stringify({
76
+ metric: i.label,
77
+ value: r,
78
+ change: s,
79
+ asOf: M
83
80
  }), q = {
84
- ...r,
85
- variant: P,
81
+ ...i,
82
+ variant: R,
86
83
  layout: w,
87
- changeType: s,
84
+ changeType: a,
88
85
  iconPosition: u,
89
- calculatedValue: i,
86
+ calculatedValue: r,
90
87
  calculatedSecondValue: h,
91
88
  calculatedSecondValueColor: T,
92
89
  calculatedSecondValueBg: x,
93
- calculatedChange: a,
90
+ calculatedChange: s,
94
91
  calculatedTrend: n,
95
- calculatedValueColor: M,
96
- calculatedValueBg: V,
92
+ calculatedValueColor: V,
93
+ calculatedValueBg: k,
97
94
  hasData: H
98
95
  };
99
96
  return {
@@ -101,9 +98,9 @@ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d:
101
98
  state: {
102
99
  ownerState: q,
103
100
  layout: w,
104
- calculatedValue: i,
101
+ calculatedValue: r,
105
102
  calculatedSecondValue: h,
106
- calculatedChange: a,
103
+ calculatedChange: s,
107
104
  TrendIcon: v,
108
105
  Icon: d,
109
106
  showCornerIcon: J,
@@ -1,13 +1,14 @@
1
1
  import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
- import h from "react-phone-number-input";
3
- import { usePhoneInputLogic as r } from "./logic.js";
4
- import { PhoneInputRoot as u, PhoneInputLabel as c } from "./styled.js";
5
- import '../../assets/index2.css';const x = (e) => {
6
- const { state: o, actions: t } = r(e), { ownerState: l } = o;
7
- return /* @__PURE__ */ a(u, { ownerState: l, sx: e.sx, children: [
8
- e.label && /* @__PURE__ */ n(c, { children: e.label }),
2
+ import r from "react-phone-number-input";
3
+ import "react-phone-number-input/style.css";
4
+ import { usePhoneInputLogic as h } from "./logic.js";
5
+ import { PhoneInputRoot as m, PhoneInputLabel as u } from "./styled.js";
6
+ const I = (e) => {
7
+ const { state: o, actions: t } = h(e), { ownerState: l } = o;
8
+ return /* @__PURE__ */ a(m, { ownerState: l, sx: e.sx, children: [
9
+ e.label && /* @__PURE__ */ n(u, { children: e.label }),
9
10
  /* @__PURE__ */ n(
10
- h,
11
+ r,
11
12
  {
12
13
  value: e.value,
13
14
  placeholder: e.placeholder,
@@ -17,5 +18,5 @@ import '../../assets/index2.css';const x = (e) => {
17
18
  ] });
18
19
  };
19
20
  export {
20
- x as PhoneInput
21
+ I as PhoneInput
21
22
  };
@@ -3,7 +3,7 @@ import { CloseOutlined as W, ChevronRight as $, ErrorOutline as q, Refresh as J,
3
3
  import { Button as N, IconButton as _, FormControl as O, Select as D, MenuItem as C, Typography as H } from "@mui/material";
4
4
  import F from "lodash";
5
5
  import { V as G } from "../../index-BtlzPygz.js";
6
- import { d as L } from "../../ol-yOE-NV0X.js";
6
+ import { getWKTExtent as L } from "../map/helpers/ol.js";
7
7
  import { RangeSelector as Q } from "../range-selector/index.js";
8
8
  import { usePropertyMappingLogic as X } from "./logic.js";
9
9
  import { PropertyMappingRoot as Y, PropertyMappingTitle as Z, PropertyMappingTitleContent as ee, PropertyMappingTitleHeading as te, PropertyMappingTitleSubtitle as re, PropertyMappingTitleAgentForm as ne, PropertyMappingTitleAgentFields as le, PropertyMappingTitleAgentNameInput as ae, PropertyMappingTitleAgentDescriptionInput as ie, PropertyMappingTitleAgentMetaRow as oe, PropertyMappingTitleAgentCountInput as pe, PropertyMappingTitleAgentCriticalityInput as de, PropertyMappingTitleClose as ce, PropertyMappingTitleCloseButton as ue, PropertyMappingContent as se, PropertyMappingPolicyCard as ye, PropertyMappingPolicyCardHeader as he, PropertyMappingPolicyCardCatalogueNames as ge, PropertyMappingPolicyCardArrow as fe, PropertyMappingPolicyCardPolicyName as me, PropertyMappingDataGrid as Ce, PropertyMappingActions as Me, PropertyMappingValueErrorIcon as Te, PropertyMappingValueCell as be, PropertyMappingValueCellInner as ve, PropertyMappingNameCell as Pe, PropertyMappingRequiredAsterisk as Ie, PropertyMappingDataTypeCell as Ae, PropertyMappingValueUpdatedIcon as Se } from "./styled.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { Typography as c } from "@mui/material";
3
3
  import { useEffect as l } from "react";
4
- import { u } from "../../index.esm-BLLrbTzY.js";
4
+ import { u } from "../../index.esm-UfGMjYOL.js";
5
5
  import { Map as d } from "../map/index.js";
6
6
  import { Controls as h } from "./components/controls/index.js";
7
7
  import { Legend as M } from "./components/legend/index.js";