@hybridcore/ui 1.6.0 → 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 (291) 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-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
  12. package/dist/InputLabel-Dd8RrneV.js +341 -0
  13. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
  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-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
  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/index.js +8 -15
  26. package/dist/components/access/logic.js +25 -0
  27. package/dist/components/button/index.js +10 -0
  28. package/dist/components/button/logic.js +26 -0
  29. package/dist/components/button/styled.js +9 -0
  30. package/dist/components/card/index.js +158 -498
  31. package/dist/components/card/logic.js +24 -0
  32. package/dist/components/card/styled.js +226 -51
  33. package/dist/components/card-alternate/index.js +111 -139
  34. package/dist/components/card-alternate/logic.js +17 -0
  35. package/dist/components/card-alternate/styled.js +113 -19
  36. package/dist/components/charts/_common/chart-error.js +19 -0
  37. package/dist/components/charts/candlestick/index.js +3 -3
  38. package/dist/components/charts/candlestick/logic.js +123 -113
  39. package/dist/components/charts/chart-wrapper/index.js +5 -5
  40. package/dist/components/charts/column-line-mix/index.js +9 -8
  41. package/dist/components/charts/column-line-mix/logic.js +68 -71
  42. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  43. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  44. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  45. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  46. package/dist/components/charts/heatmap/index.js +9 -8
  47. package/dist/components/charts/heatmap/logic.js +167 -173
  48. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  49. package/dist/components/charts/line/index.js +9 -8
  50. package/dist/components/charts/line/logic.js +74 -79
  51. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  52. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  53. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  54. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  55. package/dist/components/charts/nested-pie/index.js +9 -8
  56. package/dist/components/charts/nested-pie/logic.js +62 -68
  57. package/dist/components/charts/packed-circles/index.js +7 -6
  58. package/dist/components/charts/packed-circles/logic.js +50 -56
  59. package/dist/components/charts/pie-chart/index.js +9 -8
  60. package/dist/components/charts/pie-chart/logic.js +49 -54
  61. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  62. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  63. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  64. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  65. package/dist/components/charts/xy-chart/index.js +9 -8
  66. package/dist/components/charts/xy-chart/logic.js +56 -60
  67. package/dist/components/collapsible-card/index.js +11 -10
  68. package/dist/components/collapsible-card/styled.js +1 -1
  69. package/dist/components/color-picker/index.js +7120 -0
  70. package/dist/components/color-picker/logic.js +18 -0
  71. package/dist/components/color-picker/styled.js +7 -0
  72. package/dist/components/confirm/dialog.js +3 -3
  73. package/dist/components/confirm/index.js +1 -1
  74. package/dist/components/container/index.js +28 -269
  75. package/dist/components/container/logic.js +12 -0
  76. package/dist/components/container/styled.js +29 -0
  77. package/dist/components/context-menu/index.js +25 -457
  78. package/dist/components/context-menu/logic.js +14 -0
  79. package/dist/components/context-menu/styled.js +40 -0
  80. package/dist/components/data-grid/index.js +22 -0
  81. package/dist/components/data-grid/logic.js +15 -0
  82. package/dist/components/data-grid/styled.js +20 -0
  83. package/dist/components/data-map/components/controls/index.js +4 -6
  84. package/dist/components/data-map/index.js +11 -11
  85. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  86. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  87. package/dist/components/data-security-selectors/security-level/index.js +39 -91
  88. package/dist/components/data-security-selectors/security-level/logic.js +28 -0
  89. package/dist/components/data-security-selectors/security-level/styled.js +53 -0
  90. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +2748 -0
  92. package/dist/components/date-range-picker/styled.js +14 -0
  93. package/dist/components/date-time-picker/index.js +45 -46
  94. package/dist/components/divider/index.js +11 -11
  95. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  96. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  97. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  98. package/dist/components/document-viewer/index.js +31 -39
  99. package/dist/components/document-viewer/logic.js +41 -34
  100. package/dist/components/document-viewer/styled.js +115 -27
  101. package/dist/components/duration-select/index.js +27 -0
  102. package/dist/components/duration-select/logic.js +21 -0
  103. package/dist/components/duration-select/styled.js +26 -0
  104. package/dist/components/editable-text/index.js +20 -0
  105. package/dist/components/editable-text/logic.js +18 -0
  106. package/dist/components/editable-text/styled.js +22 -0
  107. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  108. package/dist/components/geometry-picker/edit/index.js +18 -18
  109. package/dist/components/geometry-picker/geometry/index.js +67 -67
  110. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  111. package/dist/components/geometry-picker/index.js +69 -85
  112. package/dist/components/geometry-picker/kml/index.js +16 -16
  113. package/dist/components/geometry-picker/logic.js +50 -57
  114. package/dist/components/geometry-picker/map/index.js +8 -8
  115. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  116. package/dist/components/geometry-picker/parser/index.js +46 -50
  117. package/dist/components/geometry-picker/parser/styled.js +22 -4
  118. package/dist/components/geometry-picker/styled.js +97 -37
  119. package/dist/components/geometry-picker/wkt/index.js +13 -13
  120. package/dist/components/heat-map/components/controls/index.js +4 -6
  121. package/dist/components/heat-map/components/legend/index.js +15 -17
  122. package/dist/components/heat-map/index.js +7 -7
  123. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  124. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  125. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  126. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  127. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  128. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  129. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  130. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  131. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  132. package/dist/components/instance-form/components/variable/index.js +6 -11
  133. package/dist/components/instance-form/components/variables/index.js +48 -55
  134. package/dist/components/instance-form/helpers.js +9 -0
  135. package/dist/components/instance-form/index.js +402 -518
  136. package/dist/components/instance-form/logic.js +115 -0
  137. package/dist/components/instance-form/styled.js +487 -0
  138. package/dist/components/instance-hierarchy-table/index.js +32 -37
  139. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  140. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  141. package/dist/components/instance-table/index.js +30 -135
  142. package/dist/components/instance-table/logic.js +122 -0
  143. package/dist/components/instance-table/styled.js +53 -11
  144. package/dist/components/instance-variable-list/index.js +11 -11
  145. package/dist/components/loading/index.js +15 -9
  146. package/dist/components/loading/logic.js +15 -0
  147. package/dist/components/loading/styled.js +26 -19
  148. package/dist/components/map/index.js +28 -6
  149. package/dist/components/map/styled.js +1 -1
  150. package/dist/components/notification/index.js +67 -0
  151. package/dist/components/notification/logic.js +30 -0
  152. package/dist/components/notification/store.js +23 -0
  153. package/dist/components/notification/styled.js +52 -0
  154. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  155. package/dist/components/object-profile-card/index.js +19 -20
  156. package/dist/components/paginated-list/index.js +2 -3
  157. package/dist/components/phone-input/index.js +18 -22
  158. package/dist/components/phone-input/logic.js +14 -0
  159. package/dist/components/phone-input/styled.js +12 -4
  160. package/dist/components/placeholder/index.js +10 -0
  161. package/dist/components/placeholder/logic.js +12 -0
  162. package/dist/components/placeholder/styled.js +32 -0
  163. package/dist/components/positional-tooltip/index.js +24 -0
  164. package/dist/components/positional-tooltip/styled.js +17 -0
  165. package/dist/components/property-mapping/index.js +204 -423
  166. package/dist/components/property-mapping/logic.js +156 -0
  167. package/dist/components/property-mapping/styled.js +199 -0
  168. package/dist/components/prr-map/components/controls/index.js +4 -6
  169. package/dist/components/prr-map/components/legend/index.js +26 -28
  170. package/dist/components/prr-map/index.js +5 -5
  171. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  172. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  173. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  174. package/dist/components/range-selector/components/number-range/index.js +48 -53
  175. package/dist/components/range-selector/components/string-range/index.js +15 -17
  176. package/dist/components/range-selector/index.js +63 -57
  177. package/dist/components/range-selector/logic.js +12 -0
  178. package/dist/components/range-selector/styled.js +4294 -0
  179. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  180. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  181. package/dist/components/raster-grid-map/index.js +5 -5
  182. package/dist/components/scroll-drag/index.js +22 -0
  183. package/dist/components/scroll-drag/logic.js +39 -0
  184. package/dist/components/scroll-drag/styled.js +17 -0
  185. package/dist/components/search-input/logic.js +35 -33
  186. package/dist/components/simple-pivot-table/index.js +12 -12
  187. package/dist/components/sortable-list/index.js +599 -0
  188. package/dist/components/sortable-list/logic.js +18 -0
  189. package/dist/components/sortable-list/styled.js +38 -0
  190. package/dist/components/static-text/index.js +6 -6
  191. package/dist/components/stats-box/index.js +12 -0
  192. package/dist/components/stats-box/styled.js +36 -0
  193. package/dist/components/template-filters/components/filter/index.js +13 -18
  194. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  195. package/dist/components/template-filters/index.js +21 -29
  196. package/dist/components/template-filters/logic.js +18 -0
  197. package/dist/components/template-filters/styled.js +44 -1
  198. package/dist/components/template-form/components/property-list/index.js +27 -26
  199. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  200. package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
  201. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  202. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  203. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
  204. package/dist/components/template-form/components/select-icon/index.js +24 -24
  205. package/dist/components/template-form/helpers.js +17 -0
  206. package/dist/components/template-form/index.js +270 -309
  207. package/dist/components/template-form/logic.js +69 -0
  208. package/dist/components/template-form/styled.js +84 -0
  209. package/dist/components/template-property-filters/index.js +45 -95
  210. package/dist/components/template-property-filters/logic.js +27 -0
  211. package/dist/components/template-property-filters/property.js +105 -165
  212. package/dist/components/template-property-filters/styled.js +121 -20
  213. package/dist/components/text-overflow/index.js +6 -0
  214. package/dist/components/text-overflow/styled.js +13 -0
  215. package/dist/components/timeline/index.js +12 -12
  216. package/dist/components/toggle-view-button/index.js +35 -0
  217. package/dist/components/toggle-view-button/logic.js +22 -0
  218. package/dist/components/toggle-view-button/styled.js +11 -0
  219. package/dist/components/tree-select/index.js +52 -67
  220. package/dist/components/tree-select/logic.js +59 -0
  221. package/dist/components/tree-select/styled.js +45 -62
  222. package/dist/components/treeview-filter/index.js +43 -65
  223. package/dist/components/treeview-filter/item/index.js +43 -42
  224. package/dist/components/treeview-filter/item-label/index.js +17 -37
  225. package/dist/components/treeview-filter/logic.js +28 -0
  226. package/dist/components/treeview-filter/styled.js +86 -0
  227. package/dist/components/uploader/index.js +532 -567
  228. package/dist/components/uploader/logic.js +74 -0
  229. package/dist/components/uploader/styled.js +93 -46
  230. package/dist/components/visually-hidden-input/index.js +4 -0
  231. package/dist/components/visually-hidden-input/styled.js +18 -0
  232. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  233. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
  234. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  235. package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
  236. package/dist/formControlState-vgaj2ksH.js +10 -0
  237. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  238. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  239. package/dist/index-BtlzPygz.js +470 -0
  240. package/dist/index-DH6qsPBn.js +153 -0
  241. package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
  242. package/dist/main.d.ts +1722 -562
  243. package/dist/main.js +161 -128
  244. package/dist/ownerWindow-wg6foiOE.js +10 -0
  245. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  246. package/dist/styled-Db1RdcPA.js +323 -0
  247. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  248. package/dist/useId-BW-oWmul.js +19 -0
  249. package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
  250. package/dist/useSlot-B_Q4vnX5.js +42 -0
  251. package/package.json +15 -7
  252. package/dist/AccordionSummary-DgAwVTk8.js +0 -742
  253. package/dist/Add-DJLrrVHm.js +0 -382
  254. package/dist/Box-p6OtTUEo.js +0 -30
  255. package/dist/ButtonBase-2bPw77UP.js +0 -961
  256. package/dist/CardContent-CSHh-ZlM.js +0 -74
  257. package/dist/Checkbox-CWRMFTBp.js +0 -421
  258. package/dist/FormControl-BLbrq4C7.js +0 -1636
  259. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  260. package/dist/InputAdornment-DLxWUE6H.js +0 -157
  261. package/dist/List-tqElle9C.js +0 -121
  262. package/dist/ListItem-CfjsIg4B.js +0 -430
  263. package/dist/Modal-DhPpOoGB.js +0 -1299
  264. package/dist/Paper-2B03OBmZ.js +0 -169
  265. package/dist/Select-BgYwkZgI.js +0 -2613
  266. package/dist/TextField-1yCesIbH.js +0 -457
  267. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  268. package/dist/capitalize-ciszXJ7R.js +0 -9
  269. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  270. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  271. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  272. package/dist/components/key-protection/index.js +0 -4
  273. package/dist/components/key-protection/menu.js +0 -85
  274. package/dist/components/key-protection/utils.js +0 -10
  275. package/dist/components/treeview-filter/item/styled.js +0 -39
  276. package/dist/createSvgIcon-BjpIhJ30.js +0 -71
  277. package/dist/createTheme-DYxDnE9u.js +0 -612
  278. package/dist/index-BMS1Otro.js +0 -183
  279. package/dist/index-CcdvNlgr.js +0 -503
  280. package/dist/index-kCJ_Zvl8.js +0 -34
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  283. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  284. package/dist/property-list-form-zZQfpR0X.js +0 -386
  285. package/dist/styled-eZwjUruw.js +0 -12
  286. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  287. package/dist/useId-B4-oF9Mq.js +0 -34
  288. package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
  289. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  290. package/dist/utils-BDNynJcd.js +0 -365
  291. package/dist/utils-Bq0ye5vf.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,137 +1,121 @@
1
- import { jsx as o, jsxs as i, Fragment as p } from "react/jsx-runtime";
2
- import { EditOutlined as D, DeleteOutline as A, AddLocationOutlined as I, 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 K, FilledInput as F, Dialog as z, DialogTitle as B, DialogContent as G } from "@mui/material";
11
- import { I as T } from "../../InputAdornment-DLxWUE6H.js";
12
- import { a as w, F as M, I as j, b as x } from "../../FormControl-BLbrq4C7.js";
13
- const _ = ({
14
- label: r,
15
- mapboxAccessToken: c,
16
- value: e = "",
17
- disableAddCoordinate: f = !1,
18
- defaultExtent: s,
19
- variant: d = "outlined",
20
- labelPosition: m = "top",
21
- onChange: C
22
- }) => {
23
- const { state: t, action: n } = S({
24
- label: r,
25
- value: e,
26
- onChange: C
27
- }), a = /* @__PURE__ */ o(T, { position: "end", children: e !== "" && /* @__PURE__ */ i(p, { children: [
28
- /* @__PURE__ */ o(h, { size: "small", onClick: n.onEdit, children: /* @__PURE__ */ o(D, { fontSize: "small" }) }),
29
- /* @__PURE__ */ o(h, { size: "small", onClick: n.onDelete, children: /* @__PURE__ */ o(A, { 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" }) })
30
14
  ] }) });
31
- return /* @__PURE__ */ i(p, { children: [
32
- m === "top" && r !== void 0 && /* @__PURE__ */ o(w, { sx: { display: "block", mb: 0.5 }, children: r }),
33
- /* @__PURE__ */ i(O, { children: [
34
- /* @__PURE__ */ i(y, { variant: d, children: [
35
- f === !1 && /* @__PURE__ */ o(
36
- 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,
37
21
  {
38
22
  color: "inherit",
39
- startIcon: /* @__PURE__ */ o(I, {}),
40
- onClick: n.onAddCoordinate,
23
+ startIcon: /* @__PURE__ */ e(G, {}),
24
+ onClick: o.onAddCoordinate,
41
25
  children: "Add Coordinate"
42
26
  }
43
27
  ),
44
- /* @__PURE__ */ o(
45
- l,
28
+ /* @__PURE__ */ e(
29
+ c,
46
30
  {
47
31
  color: "inherit",
48
- startIcon: /* @__PURE__ */ o(k, {}),
49
- onClick: n.onDraw,
32
+ startIcon: /* @__PURE__ */ e(b, {}),
33
+ onClick: o.onDraw,
50
34
  children: "Draw"
51
35
  }
52
36
  ),
53
- /* @__PURE__ */ o(
54
- l,
37
+ /* @__PURE__ */ e(
38
+ c,
55
39
  {
56
40
  color: "inherit",
57
- startIcon: /* @__PURE__ */ o(u, {}),
58
- onClick: n.onAddKml,
41
+ startIcon: /* @__PURE__ */ e(p, {}),
42
+ onClick: o.onAddKml,
59
43
  children: "Add KML"
60
44
  }
61
45
  ),
62
- /* @__PURE__ */ o(
63
- l,
46
+ /* @__PURE__ */ e(
47
+ c,
64
48
  {
65
49
  color: "inherit",
66
- startIcon: /* @__PURE__ */ o(u, {}),
67
- onClick: n.onAddWkt,
50
+ startIcon: /* @__PURE__ */ e(p, {}),
51
+ onClick: o.onAddWkt,
68
52
  children: "Add WKT"
69
53
  }
70
54
  )
71
55
  ] }),
72
56
  /* @__PURE__ */ i(
73
- M,
57
+ W,
74
58
  {
75
59
  fullWidth: !0,
76
- variant: d,
60
+ variant: l,
77
61
  contentEditable: !1,
78
- onClick: n.onClick,
62
+ onClick: o.onClick,
79
63
  children: [
80
- m === "default" && /* @__PURE__ */ o(j, { shrink: !!e, children: r }),
81
- d === "standard" && /* @__PURE__ */ o(x, { value: e, readOnly: !0, endAdornment: a }),
82
- d === "outlined" && /* @__PURE__ */ o(
83
- K,
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,
84
68
  {
85
- label: m === "default" ? r : void 0,
86
- value: e,
69
+ label: a === "default" ? r : void 0,
70
+ value: n,
87
71
  readOnly: !0,
88
- endAdornment: a
72
+ endAdornment: m
89
73
  }
90
74
  ),
91
- d === "filled" && /* @__PURE__ */ o(F, { value: e, readOnly: !0, endAdornment: a })
75
+ l === "filled" && /* @__PURE__ */ e(z, { value: n, readOnly: !0, endAdornment: m })
92
76
  ]
93
77
  }
94
78
  )
95
79
  ] }),
96
80
  /* @__PURE__ */ i(
97
- z,
81
+ B,
98
82
  {
99
83
  open: t.modal.isOpen,
100
- onClose: n.modal.close,
84
+ onClose: o.closeModal,
101
85
  fullWidth: !0,
102
86
  maxWidth: "md",
103
87
  children: [
104
- /* @__PURE__ */ o(B, { children: t.content.title }),
105
- /* @__PURE__ */ i(G, { children: [
106
- t.content.action === "ADD" && t.content.type === "COORDINATE" && /* @__PURE__ */ o(
107
- 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,
108
92
  {
109
- mapboxAccessToken: c,
110
- defaultExtent: s,
111
- onCancel: n.modal.close,
112
- onSubmit: n.onSubmit
93
+ mapboxAccessToken: d,
94
+ defaultExtent: u,
95
+ onCancel: o.closeModal,
96
+ onSubmit: o.onSubmit
113
97
  }
114
98
  ),
115
- t.content.action === "ADD" && t.content.type === "GEOMETRY" && /* @__PURE__ */ o(
116
- g,
99
+ t.content.action === "ADD" && t.content.type === "GEOMETRY" && /* @__PURE__ */ e(
100
+ S,
117
101
  {
118
102
  mapId: "map-geo-picker-001",
119
- mapboxAccessToken: c,
120
- defaultExtent: s,
121
- onCancel: n.modal.close,
122
- onSubmit: n.onSubmit
103
+ mapboxAccessToken: d,
104
+ defaultExtent: u,
105
+ onCancel: o.closeModal,
106
+ onSubmit: o.onSubmit
123
107
  }
124
108
  ),
125
- t.content.action === "ADD" && t.content.type === "KML" && /* @__PURE__ */ o(L, { onCancel: n.modal.close, onSubmit: n.onSubmit }),
126
- t.content.action === "ADD" && t.content.type === "WKT" && /* @__PURE__ */ o(W, { onCancel: n.modal.close, onSubmit: n.onSubmit }),
127
- t.content.action === "EDIT" && !!e && /* @__PURE__ */ o(
128
- 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,
129
113
  {
130
114
  mapId: "map-geo-edit-001",
131
- value: e,
132
- mapboxAccessToken: c,
133
- onCancel: n.modal.close,
134
- onSubmit: n.onSubmit
115
+ value: n,
116
+ mapboxAccessToken: d,
117
+ onCancel: o.closeModal,
118
+ onSubmit: o.onSubmit
135
119
  }
136
120
  )
137
121
  ] })
@@ -141,5 +125,5 @@ const _ = ({
141
125
  ] });
142
126
  };
143
127
  export {
144
- _ as GeometryPicker
128
+ X as GeometryPicker
145
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
  };