@hybridcore/ui 1.6.1 → 1.6.2

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 (231) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/Button-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1054 -330
  194. package/dist/main.js +163 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -1,67 +1,67 @@
1
- import { jsxs as r, jsx as n, Fragment as M } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as i, Fragment as R } from "react/jsx-runtime";
2
2
  import D, { useState as k } from "react";
3
- import { Dialog as R, DialogContent as K, Box as o, Typography as x, DialogActions as F, Button as d } from "@mui/material";
4
- import P from "../map/index.js";
5
- import b from "../parser/index.js";
6
- import { c as _ } from "../../../ol-yOE-NV0X.js";
7
- import { Button as l } from "../styled.js";
3
+ import { Dialog as B, DialogContent as K, Box as t, Typography as x, DialogActions as F, Button as d } from "@mui/material";
4
+ import { Map as P } from "../map/index.js";
5
+ import { Parser as b } from "../parser/index.js";
6
+ import { c as G } from "../../../ol-yOE-NV0X.js";
7
+ import { GeometryPickerActionButton as l } from "../styled.js";
8
8
  import { HorizontalRule as j, ShowChart as O, CircleOutlined as I } from "@mui/icons-material";
9
9
  import L from "./map-overlay.js";
10
- function N({
11
- mapId: p,
12
- mapboxAccessToken: C,
10
+ const Q = ({
11
+ mapId: m,
12
+ mapboxAccessToken: u,
13
13
  value: S,
14
14
  disableActions: T = !1,
15
15
  variant: W = "inline",
16
- defaultExtent: m,
16
+ defaultExtent: C,
17
17
  onCancel: s,
18
18
  onSubmit: v,
19
19
  onChange: h
20
- }) {
21
- const f = D.useRef(null), [i, u] = k(S), [e, B] = k(), y = () => {
22
- v && i && v(i);
23
- }, g = (t) => {
24
- if (t.length > 0) {
25
- const c = _({ features: t });
26
- u(c);
27
- } else u(void 0);
28
- }, w = (t) => {
29
- u(t);
30
- }, a = (t) => () => {
20
+ }) => {
21
+ const f = D.useRef(null), [n, p] = k(S), [e, M] = k(), y = () => {
22
+ v && n && v(n);
23
+ }, g = (o) => {
24
+ if (o.length > 0) {
25
+ const c = G({ features: o });
26
+ p(c);
27
+ } else p(void 0);
28
+ }, w = (o) => {
29
+ p(o);
30
+ }, a = (o) => () => {
31
31
  var c;
32
- B(t), (c = f.current) == null || c.addInteractions(t);
32
+ M(o), (c = f.current) == null || c.addInteractions(o);
33
33
  };
34
- return D.useEffect(() => (i !== void 0 && h !== void 0 && h(i), () => {
35
- }), [i, h]), W === "dialog" ? /* @__PURE__ */ r(R, { open: !0, maxWidth: "sm", fullWidth: !0, onClose: s, children: [
34
+ return D.useEffect(() => (n !== void 0 && h !== void 0 && h(n), () => {
35
+ }), [n, h]), W === "dialog" ? /* @__PURE__ */ r(B, { open: !0, maxWidth: "sm", fullWidth: !0, onClose: s, children: [
36
36
  /* @__PURE__ */ r(K, { children: [
37
- /* @__PURE__ */ r(o, { display: "flex", justifyContent: "space-between", children: [
38
- /* @__PURE__ */ n(x, { variant: "subtitle2", children: "Draw On Map" }),
39
- /* @__PURE__ */ r(o, { display: "flex", justifyContent: "flex-end", mb: 1, children: [
40
- /* @__PURE__ */ n(
37
+ /* @__PURE__ */ r(t, { display: "flex", justifyContent: "space-between", children: [
38
+ /* @__PURE__ */ i(x, { variant: "subtitle2", children: "Draw On Map" }),
39
+ /* @__PURE__ */ r(t, { display: "flex", justifyContent: "flex-end", mb: 1, children: [
40
+ /* @__PURE__ */ i(
41
41
  l,
42
42
  {
43
43
  color: "inherit",
44
- startIcon: /* @__PURE__ */ n(j, {}),
44
+ startIcon: /* @__PURE__ */ i(j, {}),
45
45
  onClick: a("LineString"),
46
46
  ...e === "LineString" && { variant: "contained" },
47
47
  children: "Draw Line"
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ n(
50
+ /* @__PURE__ */ i(
51
51
  l,
52
52
  {
53
53
  color: "inherit",
54
- startIcon: /* @__PURE__ */ n(O, {}),
54
+ startIcon: /* @__PURE__ */ i(O, {}),
55
55
  onClick: a("Polygon"),
56
56
  ...e === "Polygon" && { variant: "contained" },
57
57
  children: "Draw Polygon"
58
58
  }
59
59
  ),
60
- /* @__PURE__ */ n(
60
+ /* @__PURE__ */ i(
61
61
  l,
62
62
  {
63
63
  color: "inherit",
64
- startIcon: /* @__PURE__ */ n(I, {}),
64
+ startIcon: /* @__PURE__ */ i(I, {}),
65
65
  onClick: a("Circle"),
66
66
  ...e === "Circle" && { variant: "contained" },
67
67
  children: "Draw Circle"
@@ -69,55 +69,55 @@ function N({
69
69
  )
70
70
  ] })
71
71
  ] }),
72
- /* @__PURE__ */ r(o, { position: "relative", children: [
73
- /* @__PURE__ */ n(
72
+ /* @__PURE__ */ r(t, { position: "relative", children: [
73
+ /* @__PURE__ */ i(
74
74
  P,
75
75
  {
76
- id: p,
76
+ id: m,
77
77
  ref: f,
78
- mapboxAccessToken: C,
79
- drawingWKTData: i,
80
- defaultExtent: m,
78
+ mapboxAccessToken: u,
79
+ drawingWKTData: n,
80
+ defaultExtent: C,
81
81
  onDrawEnd: g
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ n(L, { show: e === void 0 })
84
+ /* @__PURE__ */ i(L, { show: e === void 0 })
85
85
  ] }),
86
- i !== void 0 && /* @__PURE__ */ n(b, { value: i, onChange: w })
86
+ n !== void 0 && /* @__PURE__ */ i(b, { value: n, onChange: w })
87
87
  ] }),
88
88
  /* @__PURE__ */ r(F, { children: [
89
- /* @__PURE__ */ n(d, { color: "inherit", variant: "contained", onClick: s, children: "Cancel" }),
90
- /* @__PURE__ */ n(d, { variant: "contained", onClick: y, children: "Ok" })
89
+ /* @__PURE__ */ i(d, { color: "inherit", variant: "contained", onClick: s, children: "Cancel" }),
90
+ /* @__PURE__ */ i(d, { variant: "contained", onClick: y, children: "Ok" })
91
91
  ] })
92
- ] }) : /* @__PURE__ */ r(M, { children: [
93
- /* @__PURE__ */ r(o, { display: "flex", justifyContent: "space-between", children: [
94
- /* @__PURE__ */ n(x, { variant: "subtitle2", children: "Draw On Map" }),
95
- /* @__PURE__ */ r(o, { display: "flex", justifyContent: "flex-end", mb: 1, children: [
96
- /* @__PURE__ */ n(
92
+ ] }) : /* @__PURE__ */ r(R, { children: [
93
+ /* @__PURE__ */ r(t, { display: "flex", justifyContent: "space-between", children: [
94
+ /* @__PURE__ */ i(x, { variant: "subtitle2", children: "Draw On Map" }),
95
+ /* @__PURE__ */ r(t, { display: "flex", justifyContent: "flex-end", mb: 1, children: [
96
+ /* @__PURE__ */ i(
97
97
  l,
98
98
  {
99
99
  color: "inherit",
100
- startIcon: /* @__PURE__ */ n(j, {}),
100
+ startIcon: /* @__PURE__ */ i(j, {}),
101
101
  onClick: a("LineString"),
102
102
  ...e === "LineString" && { variant: "contained" },
103
103
  children: "Draw Line"
104
104
  }
105
105
  ),
106
- /* @__PURE__ */ n(
106
+ /* @__PURE__ */ i(
107
107
  l,
108
108
  {
109
109
  color: "inherit",
110
- startIcon: /* @__PURE__ */ n(O, {}),
110
+ startIcon: /* @__PURE__ */ i(O, {}),
111
111
  onClick: a("Polygon"),
112
112
  ...e === "Polygon" && { variant: "contained" },
113
113
  children: "Draw Polygon"
114
114
  }
115
115
  ),
116
- /* @__PURE__ */ n(
116
+ /* @__PURE__ */ i(
117
117
  l,
118
118
  {
119
119
  color: "inherit",
120
- startIcon: /* @__PURE__ */ n(I, {}),
120
+ startIcon: /* @__PURE__ */ i(I, {}),
121
121
  onClick: a("Circle"),
122
122
  ...e === "Circle" && { variant: "contained" },
123
123
  children: "Draw Circle"
@@ -125,36 +125,36 @@ function N({
125
125
  )
126
126
  ] })
127
127
  ] }),
128
- /* @__PURE__ */ r(o, { position: "relative", children: [
129
- /* @__PURE__ */ n(
128
+ /* @__PURE__ */ r(t, { position: "relative", children: [
129
+ /* @__PURE__ */ i(
130
130
  P,
131
131
  {
132
- id: p,
132
+ id: m,
133
133
  ref: f,
134
- mapboxAccessToken: C,
135
- drawingWKTData: i,
136
- defaultExtent: m,
134
+ mapboxAccessToken: u,
135
+ drawingWKTData: n,
136
+ defaultExtent: C,
137
137
  onDrawEnd: g
138
138
  }
139
139
  ),
140
- /* @__PURE__ */ n(L, { show: e === void 0 })
140
+ /* @__PURE__ */ i(L, { show: e === void 0 })
141
141
  ] }),
142
- i !== void 0 && /* @__PURE__ */ n(b, { value: i, onChange: w }),
143
- !T && /* @__PURE__ */ r(o, { display: "flex", justifyContent: "space-between", mt: 3, children: [
144
- /* @__PURE__ */ n(d, { color: "primary", onClick: s, children: "Cancel" }),
145
- /* @__PURE__ */ n(
142
+ n !== void 0 && /* @__PURE__ */ i(b, { value: n, onChange: w }),
143
+ !T && /* @__PURE__ */ r(t, { display: "flex", justifyContent: "space-between", mt: 3, children: [
144
+ /* @__PURE__ */ i(d, { color: "primary", onClick: s, children: "Cancel" }),
145
+ /* @__PURE__ */ i(
146
146
  d,
147
147
  {
148
148
  color: "primary",
149
149
  variant: "contained",
150
150
  onClick: y,
151
- disabled: i === void 0,
151
+ disabled: n === void 0,
152
152
  children: "Ok"
153
153
  }
154
154
  )
155
155
  ] })
156
156
  ] });
157
- }
157
+ };
158
158
  export {
159
- N as default
159
+ Q as Geometry
160
160
  };
@@ -1,22 +1,22 @@
1
1
  import { jsx as t, Fragment as o, jsxs as a } from "react/jsx-runtime";
2
2
  import { Box as e, Typography as i } from "@mui/material";
3
- const n = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='544.605'%20height='568.76'%20viewBox='0%200%20544.605%20568.76'%3e%3cg%20id='Group_160607'%20data-name='Group%20160607'%20transform='translate(-1185.395%20-688.133)'%3e%3cpath%20id='Polygon_2'%20data-name='Polygon%202'%20d='M34.5,0,69,59H0Z'%20transform='translate(1661%20688.133)'%20fill='%23fff'/%3e%3cpath%20id='Path_84395'%20data-name='Path%2084395'%20d='M914.667,851.733s-51.2-206.933,182.4-264.533,308.266-52.267,317.867-145.067,0-121.6,0-121.6'%20transform='translate(278%20402.133)'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='5'/%3e%3c/g%3e%3c/svg%3e";
4
- function d({ show: r }) {
3
+ import { GeometryPickerGeometryMapOverlay as n } from "../styled.js";
4
+ const s = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='544.605'%20height='568.76'%20viewBox='0%200%20544.605%20568.76'%3e%3cg%20id='Group_160607'%20data-name='Group%20160607'%20transform='translate(-1185.395%20-688.133)'%3e%3cpath%20id='Polygon_2'%20data-name='Polygon%202'%20d='M34.5,0,69,59H0Z'%20transform='translate(1661%20688.133)'%20fill='%23fff'/%3e%3cpath%20id='Path_84395'%20data-name='Path%2084395'%20d='M914.667,851.733s-51.2-206.933,182.4-264.533,308.266-52.267,317.867-145.067,0-121.6,0-121.6'%20transform='translate(278%20402.133)'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='5'/%3e%3c/g%3e%3c/svg%3e";
5
+ function g({ show: r }) {
5
6
  return r ? /* @__PURE__ */ a(e, { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, children: [
6
7
  /* @__PURE__ */ t(
7
- e,
8
+ n,
8
9
  {
9
10
  display: "flex",
10
11
  height: "100%",
11
12
  justifyContent: "center",
12
13
  alignItems: "center",
13
- sx: { backgroundColor: "rgba(0,0,0,0.5)" },
14
14
  children: /* @__PURE__ */ t(i, { color: "white", children: "Select drawing type to start drawing" })
15
15
  }
16
16
  ),
17
- /* @__PURE__ */ t(e, { position: "absolute", top: 10, right: 0, width: "50%", children: /* @__PURE__ */ t("img", { src: n, width: "75%", height: 220 }) })
17
+ /* @__PURE__ */ t(e, { position: "absolute", top: 10, right: 0, width: "50%", children: /* @__PURE__ */ t("img", { src: s, width: "75%", height: 220 }) })
18
18
  ] }) : /* @__PURE__ */ t(o, {});
19
19
  }
20
20
  export {
21
- d as default
21
+ g as default
22
22
  };
@@ -1,138 +1,121 @@
1
- import { jsx as o, jsxs as i, Fragment as p } from "react/jsx-runtime";
2
- import { EditOutlined as D, DeleteOutline as I, AddLocationOutlined as A, DrawOutlined as k, LayersOutlined as u } from "@mui/icons-material";
3
- import { Container as O, Actions as y, Button as l } from "./styled.js";
4
- import S from "./logic.js";
5
- import b from "./coordinate/index.js";
6
- import E from "./edit/index.js";
7
- import g from "./geometry/index.js";
8
- import L from "./kml/index.js";
9
- import W from "./wkt/index.js";
10
- import { IconButton as h, OutlinedInput as F, FilledInput as K, Dialog as z, DialogTitle as B, DialogContent as G } from "@mui/material";
11
- import { I as T } from "../../InputAdornment-C7PEvvYr.js";
12
- import { F as w, I as M } from "../../InputLabel-rEwwnD4_.js";
13
- import { F as j, I as x } from "../../FormControl-BCurCxRj.js";
14
- const $ = ({
15
- label: r,
16
- mapboxAccessToken: c,
17
- value: e = "",
18
- disableAddCoordinate: f = !1,
19
- defaultExtent: s,
20
- variant: d = "outlined",
21
- labelPosition: m = "top",
22
- onChange: C
23
- }) => {
24
- const { state: t, action: n } = S({
25
- label: r,
26
- value: e,
27
- onChange: C
28
- }), a = /* @__PURE__ */ o(T, { position: "end", children: e !== "" && /* @__PURE__ */ i(p, { children: [
29
- /* @__PURE__ */ o(h, { size: "small", onClick: n.onEdit, children: /* @__PURE__ */ o(D, { fontSize: "small" }) }),
30
- /* @__PURE__ */ o(h, { size: "small", onClick: n.onDelete, children: /* @__PURE__ */ o(I, { fontSize: "small" }) })
1
+ import { jsx as e, jsxs as i, Fragment as f } from "react/jsx-runtime";
2
+ import { EditOutlined as C, DeleteOutline as A, AddLocationOutlined as G, DrawOutlined as b, LayersOutlined as p } from "@mui/icons-material";
3
+ import { Coordinate as D } from "./coordinate/index.js";
4
+ import { Edit as P } from "./edit/index.js";
5
+ import { Geometry as S } from "./geometry/index.js";
6
+ import { Kml as O } from "./kml/index.js";
7
+ import { Wkt as I } from "./wkt/index.js";
8
+ import { useGeometryPickerLogic as E } from "./logic.js";
9
+ import { GeometryPickerEndAdornment as M, GeometryPickerEndAdornmentButton as y, GeometryPickerRoot as x, GeometryPickerTopLabel as T, GeometryPickerContainer as g, GeometryPickerActions as L, GeometryPickerActionButton as c, GeometryPickerFormControl as W, GeometryPickerInputLabel as K, GeometryPickerInputStandard as v, GeometryPickerInputOutlined as w, GeometryPickerInputFilled as z, GeometryPickerDialog as B, GeometryPickerDialogTitle as R, GeometryPickerDialogContent as F } from "./styled.js";
10
+ const X = (s) => {
11
+ const { label: r, mapboxAccessToken: d, value: n = "", defaultExtent: u } = s, { refs: h, state: t, actions: o } = E(s), { ownerState: k, variant: l, labelPosition: a } = t, m = /* @__PURE__ */ e(M, { position: "end", children: n !== "" && /* @__PURE__ */ i(f, { children: [
12
+ /* @__PURE__ */ e(y, { size: "small", onClick: o.onEdit, children: /* @__PURE__ */ e(C, { fontSize: "small" }) }),
13
+ /* @__PURE__ */ e(y, { size: "small", onClick: o.onDelete, children: /* @__PURE__ */ e(A, { fontSize: "small" }) })
31
14
  ] }) });
32
- return /* @__PURE__ */ i(p, { children: [
33
- m === "top" && r !== void 0 && /* @__PURE__ */ o(w, { sx: { display: "block", mb: 0.5 }, children: r }),
34
- /* @__PURE__ */ i(O, { children: [
35
- /* @__PURE__ */ i(y, { variant: d, children: [
36
- f === !1 && /* @__PURE__ */ o(
37
- l,
15
+ return /* @__PURE__ */ i(x, { ref: h.rootRef, sx: t.sx, children: [
16
+ a === "top" && r !== void 0 && /* @__PURE__ */ e(T, { children: r }),
17
+ /* @__PURE__ */ i(g, { children: [
18
+ /* @__PURE__ */ i(L, { ownerState: k, children: [
19
+ k.disableAddCoordinate === !1 && /* @__PURE__ */ e(
20
+ c,
38
21
  {
39
22
  color: "inherit",
40
- startIcon: /* @__PURE__ */ o(A, {}),
41
- onClick: n.onAddCoordinate,
23
+ startIcon: /* @__PURE__ */ e(G, {}),
24
+ onClick: o.onAddCoordinate,
42
25
  children: "Add Coordinate"
43
26
  }
44
27
  ),
45
- /* @__PURE__ */ o(
46
- l,
28
+ /* @__PURE__ */ e(
29
+ c,
47
30
  {
48
31
  color: "inherit",
49
- startIcon: /* @__PURE__ */ o(k, {}),
50
- onClick: n.onDraw,
32
+ startIcon: /* @__PURE__ */ e(b, {}),
33
+ onClick: o.onDraw,
51
34
  children: "Draw"
52
35
  }
53
36
  ),
54
- /* @__PURE__ */ o(
55
- l,
37
+ /* @__PURE__ */ e(
38
+ c,
56
39
  {
57
40
  color: "inherit",
58
- startIcon: /* @__PURE__ */ o(u, {}),
59
- onClick: n.onAddKml,
41
+ startIcon: /* @__PURE__ */ e(p, {}),
42
+ onClick: o.onAddKml,
60
43
  children: "Add KML"
61
44
  }
62
45
  ),
63
- /* @__PURE__ */ o(
64
- l,
46
+ /* @__PURE__ */ e(
47
+ c,
65
48
  {
66
49
  color: "inherit",
67
- startIcon: /* @__PURE__ */ o(u, {}),
68
- onClick: n.onAddWkt,
50
+ startIcon: /* @__PURE__ */ e(p, {}),
51
+ onClick: o.onAddWkt,
69
52
  children: "Add WKT"
70
53
  }
71
54
  )
72
55
  ] }),
73
56
  /* @__PURE__ */ i(
74
- j,
57
+ W,
75
58
  {
76
59
  fullWidth: !0,
77
- variant: d,
60
+ variant: l,
78
61
  contentEditable: !1,
79
- onClick: n.onClick,
62
+ onClick: o.onClick,
80
63
  children: [
81
- m === "default" && /* @__PURE__ */ o(M, { shrink: !!e, children: r }),
82
- d === "standard" && /* @__PURE__ */ o(x, { value: e, readOnly: !0, endAdornment: a }),
83
- d === "outlined" && /* @__PURE__ */ o(
84
- F,
64
+ a === "default" && /* @__PURE__ */ e(K, { shrink: !!n, children: r }),
65
+ l === "standard" && /* @__PURE__ */ e(v, { value: n, readOnly: !0, endAdornment: m }),
66
+ l === "outlined" && /* @__PURE__ */ e(
67
+ w,
85
68
  {
86
- label: m === "default" ? r : void 0,
87
- value: e,
69
+ label: a === "default" ? r : void 0,
70
+ value: n,
88
71
  readOnly: !0,
89
- endAdornment: a
72
+ endAdornment: m
90
73
  }
91
74
  ),
92
- d === "filled" && /* @__PURE__ */ o(K, { value: e, readOnly: !0, endAdornment: a })
75
+ l === "filled" && /* @__PURE__ */ e(z, { value: n, readOnly: !0, endAdornment: m })
93
76
  ]
94
77
  }
95
78
  )
96
79
  ] }),
97
80
  /* @__PURE__ */ i(
98
- z,
81
+ B,
99
82
  {
100
83
  open: t.modal.isOpen,
101
- onClose: n.modal.close,
84
+ onClose: o.closeModal,
102
85
  fullWidth: !0,
103
86
  maxWidth: "md",
104
87
  children: [
105
- /* @__PURE__ */ o(B, { children: t.content.title }),
106
- /* @__PURE__ */ i(G, { children: [
107
- t.content.action === "ADD" && t.content.type === "COORDINATE" && /* @__PURE__ */ o(
108
- b,
88
+ /* @__PURE__ */ e(R, { children: t.content.title }),
89
+ /* @__PURE__ */ i(F, { children: [
90
+ t.content.action === "ADD" && t.content.type === "COORDINATE" && /* @__PURE__ */ e(
91
+ D,
109
92
  {
110
- mapboxAccessToken: c,
111
- defaultExtent: s,
112
- onCancel: n.modal.close,
113
- onSubmit: n.onSubmit
93
+ mapboxAccessToken: d,
94
+ defaultExtent: u,
95
+ onCancel: o.closeModal,
96
+ onSubmit: o.onSubmit
114
97
  }
115
98
  ),
116
- t.content.action === "ADD" && t.content.type === "GEOMETRY" && /* @__PURE__ */ o(
117
- g,
99
+ t.content.action === "ADD" && t.content.type === "GEOMETRY" && /* @__PURE__ */ e(
100
+ S,
118
101
  {
119
102
  mapId: "map-geo-picker-001",
120
- mapboxAccessToken: c,
121
- defaultExtent: s,
122
- onCancel: n.modal.close,
123
- onSubmit: n.onSubmit
103
+ mapboxAccessToken: d,
104
+ defaultExtent: u,
105
+ onCancel: o.closeModal,
106
+ onSubmit: o.onSubmit
124
107
  }
125
108
  ),
126
- t.content.action === "ADD" && t.content.type === "KML" && /* @__PURE__ */ o(L, { onCancel: n.modal.close, onSubmit: n.onSubmit }),
127
- t.content.action === "ADD" && t.content.type === "WKT" && /* @__PURE__ */ o(W, { onCancel: n.modal.close, onSubmit: n.onSubmit }),
128
- t.content.action === "EDIT" && !!e && /* @__PURE__ */ o(
129
- E,
109
+ t.content.action === "ADD" && t.content.type === "KML" && /* @__PURE__ */ e(O, { onCancel: o.closeModal, onSubmit: o.onSubmit }),
110
+ t.content.action === "ADD" && t.content.type === "WKT" && /* @__PURE__ */ e(I, { onCancel: o.closeModal, onSubmit: o.onSubmit }),
111
+ t.content.action === "EDIT" && !!n && /* @__PURE__ */ e(
112
+ P,
130
113
  {
131
114
  mapId: "map-geo-edit-001",
132
- value: e,
133
- mapboxAccessToken: c,
134
- onCancel: n.modal.close,
135
- onSubmit: n.onSubmit
115
+ value: n,
116
+ mapboxAccessToken: d,
117
+ onCancel: o.closeModal,
118
+ onSubmit: o.onSubmit
136
119
  }
137
120
  )
138
121
  ] })
@@ -142,5 +125,5 @@ const $ = ({
142
125
  ] });
143
126
  };
144
127
  export {
145
- $ as GeometryPicker
128
+ X as GeometryPicker
146
129
  };
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
3
  import M from "./select-input-method.js";
4
- import { Box as d, TextField as b, Button as m } from "@mui/material";
4
+ import { Box as m, TextField as b, Button as d } from "@mui/material";
5
5
  import { validate as C } from "../../map/helpers/kml.js";
6
6
  import { a as L, c as T } from "../../../ol-yOE-NV0X.js";
7
- function W({ onCancel: f, onSubmit: a }) {
8
- const [t, l] = i(), [o, p] = i(), [s, n] = i(), h = (e) => {
9
- l(e);
7
+ const W = ({ onCancel: f, onSubmit: a }) => {
8
+ const [t, s] = i(), [o, p] = i(), [l, n] = i(), h = (e) => {
9
+ s(e);
10
10
  }, v = (e) => {
11
- l(e.target.value);
12
- }, u = () => {
11
+ s(e.target.value);
12
+ }, c = () => {
13
13
  if (t && t.trim().length > 0)
14
14
  if (C(t)) {
15
15
  const e = L(t);
@@ -21,8 +21,8 @@ function W({ onCancel: f, onSubmit: a }) {
21
21
  }, x = () => {
22
22
  a && o && a(o);
23
23
  };
24
- return k(() => (u(), () => {
25
- }), [t, u]), t === void 0 ? /* @__PURE__ */ r(M, { onSubmit: h }) : /* @__PURE__ */ c(d, { pt: 1, children: [
24
+ return k(() => (c(), () => {
25
+ }), [t, c]), t === void 0 ? /* @__PURE__ */ r(M, { onSubmit: h }) : /* @__PURE__ */ u(m, { pt: 1, children: [
26
26
  /* @__PURE__ */ r(
27
27
  b,
28
28
  {
@@ -36,16 +36,16 @@ function W({ onCancel: f, onSubmit: a }) {
36
36
  autoFocus: !0,
37
37
  InputLabelProps: { shrink: !0 },
38
38
  onChange: v,
39
- ...s !== void 0 && {
39
+ ...l !== void 0 && {
40
40
  error: !0,
41
- helperText: s
41
+ helperText: l
42
42
  }
43
43
  }
44
44
  ),
45
- /* @__PURE__ */ c(d, { display: "flex", justifyContent: "space-between", mt: 3, children: [
46
- /* @__PURE__ */ r(m, { color: "primary", onClick: f, children: "Cancel" }),
45
+ /* @__PURE__ */ u(m, { display: "flex", justifyContent: "space-between", mt: 3, children: [
46
+ /* @__PURE__ */ r(d, { color: "primary", onClick: f, children: "Cancel" }),
47
47
  /* @__PURE__ */ r(
48
- m,
48
+ d,
49
49
  {
50
50
  color: "primary",
51
51
  variant: "contained",
@@ -56,7 +56,7 @@ function W({ onCancel: f, onSubmit: a }) {
56
56
  )
57
57
  ] })
58
58
  ] });
59
- }
59
+ };
60
60
  export {
61
- W as default
61
+ W as Kml
62
62
  };