@hybridcore/ui 1.6.13 → 1.6.16

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 (100) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/_common/tooltip.js +44 -35
  31. package/dist/components/charts/chart-wrapper/index.js +44 -43
  32. package/dist/components/charts/donut-chart/logic.js +53 -40
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  34. package/dist/components/charts/xy-chart/logic.js +135 -134
  35. package/dist/components/collapsible-card/index.js +30 -21
  36. package/dist/components/collapsible-card/styled.js +14 -16
  37. package/dist/components/color-picker/index.js +3358 -2228
  38. package/dist/components/color-picker/styled.js +7 -87
  39. package/dist/components/confirm/dialog.js +7 -89
  40. package/dist/components/confirm/index.js +1 -1
  41. package/dist/components/data-map/index.js +1 -1
  42. package/dist/components/data-map/logic.js +20 -20
  43. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  44. package/dist/components/date-range-picker/index.js +454 -466
  45. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  46. package/dist/components/duration-select/index.js +10 -10
  47. package/dist/components/duration-select/styled.js +1 -1
  48. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  49. package/dist/components/geometry-picker/edit/index.js +1 -1
  50. package/dist/components/geometry-picker/geometry/index.js +1 -1
  51. package/dist/components/geometry-picker/kml/index.js +11 -11
  52. package/dist/components/geometry-picker/map/logic.js +3656 -145
  53. package/dist/components/geometry-picker/map/style.js +17 -18
  54. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  55. package/dist/components/heat-map/index.js +1 -1
  56. package/dist/components/heat-map/logic.js +1924 -77
  57. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
  58. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  59. package/dist/components/map/helpers/mapbox.js +15 -17
  60. package/dist/components/map/helpers/ol.js +27 -386
  61. package/dist/components/map/index.js +10 -11
  62. package/dist/components/map/logic.js +22 -22
  63. package/dist/components/map/styled.js +27 -31
  64. package/dist/components/phone-input/index.js +9 -10
  65. package/dist/components/property-mapping/index.js +1 -1
  66. package/dist/components/prr-map/index.js +1 -1
  67. package/dist/components/prr-map/logic.js +26 -27
  68. package/dist/components/raster-grid-map/index.js +1 -1
  69. package/dist/components/raster-grid-map/logic.js +57 -60
  70. package/dist/components/sortable-list/index.js +1264 -1091
  71. package/dist/components/template-form/components/property-list/index.js +32 -36
  72. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  73. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  74. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  75. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  76. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  77. package/dist/components/tree-select/index.js +16 -16
  78. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  79. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  80. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  81. package/dist/debounce-46wSf_lW.js +15 -0
  82. package/dist/dialog-BtJhjyF5.js +664 -0
  83. package/dist/extends-C3382pL0.js +22 -0
  84. package/dist/formControlState-vgaj2ksH.js +10 -0
  85. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  86. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  87. package/dist/index-DH6qsPBn.js +153 -0
  88. package/dist/index.esm-DAf19hyR.js +318 -0
  89. package/dist/main.d.ts +9 -1
  90. package/dist/math-Bvt2Ubuz.js +704 -0
  91. package/dist/ol-yOE-NV0X.js +7465 -0
  92. package/dist/ownerWindow-wg6foiOE.js +10 -0
  93. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  94. package/dist/styled-DD4BkuVf.js +350 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useFormControl-CatNKXAi.js +10 -0
  97. package/dist/useId-BW-oWmul.js +19 -0
  98. package/dist/useSlot-u4t0X96G.js +42 -0
  99. package/package.json +1 -1
  100. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -1,20 +1,17 @@
1
1
  import { useThemeProps as gt, useTheme as xt } from "@mui/material";
2
2
  import { uniqueId as ht } from "lodash";
3
3
  import { Feature as yt } from "ol";
4
- import * as wt from "ol/extent";
5
- import { Point as St } from "ol/geom";
6
- import Tt from "ol/layer/Vector";
7
- import * as B from "ol/proj";
8
- import Lt from "ol/source/Vector";
9
- import { Style as V, Text as vt, Fill as F, Icon as Ct, Stroke as Mt } from "ol/style";
10
- import bt from "ol/style/Circle";
4
+ import { b as wt, P as St, f as k, g as Tt } from "../../Source-BSZST_GH.js";
5
+ import { V as Ct } from "../../Vector-BmuhQO4p.js";
6
+ import { V as Lt } from "../../Vector-DfTqQEln.js";
7
+ import { S as A, T as vt, F, I as Mt, a as bt, C as Xt } from "../../Text-ChJRuaD8.js";
11
8
  import { useRef as m, useState as q, useEffect as O } from "react";
12
- import { DEFAULT_VIRIDIS_COOL as Xt } from "../charts/_common/utils.js";
13
- import { createMapboxLayer as Yt } from "../map/helpers/mapbox.js";
14
- import { createHeatMapScale as Et } from "./helpers.js";
15
- const Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='93'%20height='93'%20viewBox='0%200%2093%2093'%3e%3ccircle%20id='Ellipse_748'%20data-name='Ellipse%20748'%20cx='46.5'%20cy='46.5'%20r='46.5'%20fill='%23fff'%20opacity='0.925'/%3e%3c/svg%3e", Rt = 0.25, Bt = (r) => {
16
- const u = r.getGeometry(), i = r.get("icon"), p = r.get("iconColor"), h = r.get("iconTextColor"), y = r.get("showText"), w = r.get("title"), S = r.get("scale");
17
- return u && u.getType() === "Point" && i ? new V({
9
+ import { DEFAULT_VIRIDIS_COOL as Yt } from "../charts/_common/utils.js";
10
+ import { createMapboxLayer as Gt } from "../map/helpers/mapbox.js";
11
+ import { createHeatMapScale as Rt } from "./helpers.js";
12
+ const Et = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='93'%20height='93'%20viewBox='0%200%2093%2093'%3e%3ccircle%20id='Ellipse_748'%20data-name='Ellipse%20748'%20cx='46.5'%20cy='46.5'%20r='46.5'%20fill='%23fff'%20opacity='0.925'/%3e%3c/svg%3e", Ft = 0.25, It = (r) => {
13
+ const u = r.getGeometry(), a = r.get("icon"), p = r.get("iconColor"), h = r.get("iconTextColor"), y = r.get("showText"), w = r.get("title"), S = r.get("scale");
14
+ return u && u.getType() === "Point" && a ? new A({
18
15
  ...y && {
19
16
  text: new vt({
20
17
  text: w,
@@ -22,77 +19,77 @@ const Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
22
19
  fill: new F({ color: h ?? "#ddd" })
23
20
  })
24
21
  },
25
- image: new Ct({
22
+ image: new Mt({
26
23
  anchor: [0.5, 0.5],
27
- src: i,
28
- scale: S ?? Rt,
24
+ src: a,
25
+ scale: S ?? Ft,
29
26
  color: p ?? "#b32f5b"
30
27
  }),
31
28
  zIndex: 2
32
- }) : new V({
29
+ }) : new A({
33
30
  fill: new F({ color: "rgba(255, 255, 255, 0.25)" }),
34
- stroke: new Mt({ color: "#3069AA", width: 2 }),
35
- image: new bt({
31
+ stroke: new bt({ color: "#3069AA", width: 2 }),
32
+ image: new Xt({
36
33
  radius: 5,
37
34
  fill: new F({ color: "#444" })
38
35
  })
39
36
  });
40
37
  }, Ut = (r) => {
41
38
  const u = gt({ props: r, name: "HCRasterGridMap" }), {
42
- data: i,
39
+ data: a,
43
40
  payload: p,
44
41
  onPayloadUpdate: h,
45
42
  accessToken: y,
46
- palette: w = Xt,
43
+ palette: w = Yt,
47
44
  sx: S,
48
45
  ...U
49
- } = u, T = xt(), I = m(ht("map-")), o = m(null), s = m(null), L = m(null), a = m(null), v = m(), [z, W] = q(!1), [Z, j] = q(null), _ = () => {
46
+ } = u, T = xt(), I = m(ht("map-")), o = m(null), l = m(null), C = m(null), s = m(null), L = m(), [B, W] = q(!1), [Z, N] = q(null), z = () => {
50
47
  let t = 3;
51
48
  if (o.current) {
52
49
  const e = o.current.getZoomLevel() || 3;
53
50
  e > 11 ? t = 6 : e > 9 ? t = 5 : e > 5 && (t = 4);
54
51
  }
55
52
  return t;
56
- }, N = () => {
57
- var D, H, k;
58
- if (!z || !o.current || !i) return;
59
- const { result: t, rowCount: e, columnCount: n, minX: c, minY: l, maxX: d, maxY: f } = i, C = [c, l, d, f], [nt, rt] = wt.getSize(C), M = nt / n, b = rt / e, ct = ((D = o.current) == null ? void 0 : D.getZoomLevel()) || 3;
60
- (H = L.current) == null || H.clear();
61
- const X = Et(i, {
53
+ }, j = () => {
54
+ var P, D, H;
55
+ if (!B || !o.current || !a) return;
56
+ const { result: t, rowCount: e, columnCount: n, minX: c, minY: i, maxX: d, maxY: f } = a, v = [c, i, d, f], [nt, rt] = Tt(v), M = nt / n, b = rt / e, ct = ((P = o.current) == null ? void 0 : P.getZoomLevel()) || 3;
57
+ (D = C.current) == null || D.clear();
58
+ const X = Rt(a, {
62
59
  palette: [...w].reverse(),
63
60
  mode: "log",
64
61
  nullColor: "transparent",
65
62
  zeroColor: "transparent"
66
63
  });
67
- if (j(X), t !== null)
64
+ if (N(X), t !== null)
68
65
  for (let g = 0; g < e; g++) {
69
- const A = t[g];
70
- if (A !== null)
66
+ const V = t[g];
67
+ if (V !== null)
71
68
  for (let x = 0; x < n; x++) {
72
- const Y = A[x];
69
+ const Y = V[x];
73
70
  if (Y < 2) continue;
74
- const E = c + x * M, G = l + (e - g - 1) * b, it = E + M, at = G + b, lt = E + M / 2, st = G + b / 2, mt = B.transform(
75
- [lt, st],
71
+ const G = c + x * M, R = i + (e - g - 1) * b, at = G + M, st = R + b, it = G + M / 2, lt = R + b / 2, mt = wt(
72
+ [it, lt],
76
73
  "EPSG:4326",
77
74
  "EPSG:3857"
78
75
  ), ut = {
79
- bottomLeft: { latitude: G, longitude: E },
80
- topRight: { latitude: at, longitude: it }
81
- }, pt = ct / _(), R = X.getBin(Y), dt = (((R == null ? void 0 : R.index) || 0) + 1) * 0.1, ft = new yt({
76
+ bottomLeft: { latitude: R, longitude: G },
77
+ topRight: { latitude: st, longitude: at }
78
+ }, pt = ct / z(), E = X.getBin(Y), dt = (((E == null ? void 0 : E.index) || 0) + 1) * 0.1, ft = new yt({
82
79
  geometry: new St(mt),
83
- icon: Gt,
80
+ icon: Et,
84
81
  iconColor: X.getColor(Y),
85
82
  iconTextColor: "#fff",
86
83
  showText: pt > 1.5,
87
84
  boundingBox: ut,
88
85
  scale: dt
89
86
  });
90
- (k = L.current) == null || k.addFeature(ft);
87
+ (H = C.current) == null || H.addFeature(ft);
91
88
  }
92
89
  }
93
90
  }, J = () => {
94
91
  let t = {
95
- gridLevel: _(),
92
+ gridLevel: z(),
96
93
  minX: -180,
97
94
  minY: -180,
98
95
  maxX: 180,
@@ -109,56 +106,56 @@ const Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
109
106
  };
110
107
  }
111
108
  return t;
112
- }, P = () => {
109
+ }, _ = () => {
113
110
  const t = {
114
111
  ...p,
115
112
  heatGridMapFilter: J()
116
113
  };
117
114
  h(t);
118
115
  }, K = () => {
119
- v.current && clearTimeout(v.current), v.current = setTimeout(() => {
116
+ L.current && clearTimeout(L.current), L.current = setTimeout(() => {
120
117
  var t;
121
- (t = o.current) == null || t.updateSize(), s.current && s.current.map.resize();
118
+ (t = o.current) == null || t.updateSize(), l.current && l.current.map.resize();
122
119
  }, 100);
123
120
  }, Q = () => {
124
121
  var t, e;
125
122
  (t = o.current) == null || t.on("movestart", () => {
126
- a.current && (clearTimeout(a.current), a.current = null);
123
+ s.current && (clearTimeout(s.current), s.current = null);
127
124
  }), (e = o.current) == null || e.on("moveend", () => {
128
- a.current && (clearTimeout(a.current), a.current = null), a.current = setTimeout(P, 500);
125
+ s.current && (clearTimeout(s.current), s.current = null), s.current = setTimeout(_, 500);
129
126
  });
130
127
  };
131
128
  function $(t) {
132
- const [e, n] = B.fromLonLat([t.minX, t.minY]), [c, l] = B.fromLonLat([t.maxX, t.maxY]);
133
- return [e, n, c, l];
129
+ const [e, n] = k([t.minX, t.minY]), [c, i] = k([t.maxX, t.maxY]);
130
+ return [e, n, c, i];
134
131
  }
135
132
  const tt = () => {
136
133
  var d, f;
137
- const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = Yt({
134
+ const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = Gt({
138
135
  id: I.current,
139
136
  center: [0, 0],
140
137
  style: t,
141
138
  accessToken: y
142
139
  });
143
- (d = o.current) == null || d.addLayer(e.layer), s.current = e;
144
- const n = new Lt(), c = new Tt({
140
+ (d = o.current) == null || d.addLayer(e.layer), l.current = e;
141
+ const n = new Lt(), c = new Ct({
145
142
  source: n,
146
- style: Bt
143
+ style: It
147
144
  });
148
- (f = o.current) == null || f.addLayer(c), L.current = n, W(!0), Q(), P();
149
- const { heatGridMapFilter: l } = p;
150
- if (l && o.current) {
151
- const C = $(l);
152
- o.current.centerToExtent(C);
145
+ (f = o.current) == null || f.addLayer(c), C.current = n, W(!0), Q(), _();
146
+ const { heatGridMapFilter: i } = p;
147
+ if (i && o.current) {
148
+ const v = $(i);
149
+ o.current.centerToExtent(v);
153
150
  }
154
151
  }, et = () => {
155
152
  var n, c;
156
- if (!s.current) return;
157
- const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = ((c = (n = s.current.layer.getSource()) == null ? void 0 : n.getMapboxMap) == null ? void 0 : c.call(n)) || s.current.map;
153
+ if (!l.current) return;
154
+ const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = ((c = (n = l.current.layer.getSource()) == null ? void 0 : n.getMapboxMap) == null ? void 0 : c.call(n)) || l.current.map;
158
155
  e && e.setStyle(t);
159
156
  };
160
- O(() => (N(), () => {
161
- }), [i, z]), O(() => (et(), () => {
157
+ O(() => (j(), () => {
158
+ }), [a, B]), O(() => (et(), () => {
162
159
  }), [T.palette.mode]);
163
160
  const ot = { ...u };
164
161
  return {