@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,69 +1,62 @@
1
- import { useState as m } from "react";
2
- import y from "../../hooks/useToggle.js";
3
- function E({
4
- value: c,
5
- disableAddCoordinate: d,
6
- onChange: n
7
- }) {
8
- const o = y(!1), [e, i] = m({
1
+ import { useThemeProps as C } from "@mui/material";
2
+ import { useRef as P, useState as K } from "react";
3
+ import E from "../../hooks/useToggle.js";
4
+ const k = (f) => {
5
+ const c = C({ props: f, name: "HCGeometryPicker" }), {
6
+ value: a = "",
7
+ disableAddCoordinate: p = !1,
8
+ variant: r = "outlined",
9
+ labelPosition: l = "top",
10
+ onChange: e
11
+ } = c, m = P(null), t = E(!1), [i, n] = K({
9
12
  title: "",
10
13
  type: "COORDINATE",
11
14
  action: "ADD"
12
- }), s = () => {
13
- i({
14
- title: "Add Coordinate",
15
- type: "COORDINATE",
16
- action: "ADD"
17
- }), o.action.open();
18
- }, l = () => {
19
- i({
20
- title: "Add KML",
21
- type: "KML",
22
- action: "ADD"
23
- }), o.action.open();
24
- }, D = () => {
25
- i({
26
- title: "Add WKT",
27
- type: "WKT",
28
- action: "ADD"
29
- }), o.action.open();
30
- }, a = (t) => {
31
- t && t.stopPropagation(), i({
32
- title: "Edit",
33
- type: "WKT",
34
- action: "EDIT"
35
- }), o.action.open();
36
- }, p = (t) => {
37
- t && t.stopPropagation(), i({
38
- title: "Draw Geometry",
39
- type: "GEOMETRY",
40
- action: "ADD"
41
- }), o.action.open();
42
- }, r = (t) => {
43
- o.action.close(), n && n(t), e.action === "ADD" && (e.type === "KML" || e.type === "WKT") && a();
15
+ }), d = () => {
16
+ n({ title: "Add Coordinate", type: "COORDINATE", action: "ADD" }), t.action.open();
44
17
  }, A = () => {
45
- c !== void 0 && c !== "" ? a() : d === !1 ? s() : p();
46
- }, f = (t) => {
47
- t.stopPropagation(), n && n("");
18
+ n({ title: "Add KML", type: "KML", action: "ADD" }), t.action.open();
19
+ }, u = () => {
20
+ n({ title: "Add WKT", type: "WKT", action: "ADD" }), t.action.open();
21
+ }, s = (o) => {
22
+ o != null && o.stopPropagation && o.stopPropagation(), n({ title: "Edit", type: "WKT", action: "EDIT" }), t.action.open();
23
+ }, D = (o) => {
24
+ o != null && o.stopPropagation && o.stopPropagation(), n({ title: "Draw Geometry", type: "GEOMETRY", action: "ADD" }), t.action.open();
25
+ }, y = (o) => {
26
+ t.action.close(), e && e(o), i.action === "ADD" && (i.type === "KML" || i.type === "WKT") && s();
27
+ }, T = () => {
28
+ a !== void 0 && a !== "" ? s() : p === !1 ? d() : D();
29
+ }, g = (o) => {
30
+ o.stopPropagation(), e && e("");
48
31
  };
49
32
  return {
33
+ refs: { rootRef: m },
50
34
  state: {
51
- content: e,
52
- modal: o.state
35
+ ownerState: {
36
+ variant: r,
37
+ labelPosition: l,
38
+ hasValue: a !== "",
39
+ disableAddCoordinate: p
40
+ },
41
+ content: i,
42
+ modal: t.state,
43
+ variant: r,
44
+ labelPosition: l,
45
+ sx: c.sx
53
46
  },
54
- action: {
55
- onAddCoordinate: s,
56
- onSubmit: r,
57
- onClick: A,
58
- onDelete: f,
59
- onEdit: a,
60
- onDraw: p,
61
- onAddKml: l,
62
- onAddWkt: D,
63
- modal: o.action
47
+ actions: {
48
+ onAddCoordinate: d,
49
+ onAddKml: A,
50
+ onAddWkt: u,
51
+ onSubmit: y,
52
+ onClick: T,
53
+ onDelete: g,
54
+ onEdit: s,
55
+ onDraw: D,
56
+ closeModal: t.action.close
64
57
  }
65
58
  };
66
- }
59
+ };
67
60
  export {
68
- E as default
61
+ k as useGeometryPickerLogic
69
62
  };
@@ -1,12 +1,12 @@
1
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import n from "react";
3
- import { M as u } from "../../../index-kCJ_Zvl8.js";
3
+ import { Map as u } from "../../map/index.js";
4
4
  import d from "./logic.js";
5
5
  import { Box as m } from "@mui/material";
6
6
  import { ContextMenu as p } from "../../context-menu/index.js";
7
- const f = (t, r) => {
7
+ const M = (t, a) => {
8
8
  const { refs: i, state: o, action: e } = d(t);
9
- return n.useImperativeHandle(r, () => ({
9
+ return n.useImperativeHandle(a, () => ({
10
10
  addInteractions: e.addInteractions,
11
11
  clearDrawingSource: e.clearDrawingSource,
12
12
  addDrawingSourceKMLData: e.addDrawingSourceKMLData,
@@ -16,7 +16,7 @@ const f = (t, r) => {
16
16
  setCenter: e.setCenter,
17
17
  setZoomLevel: e.setZoomLevel
18
18
  })), /* @__PURE__ */ s(m, { position: "relative", height: 500, children: [
19
- /* @__PURE__ */ a(
19
+ /* @__PURE__ */ r(
20
20
  u,
21
21
  {
22
22
  id: t.id,
@@ -26,7 +26,7 @@ const f = (t, r) => {
26
26
  onInit: e.onMapInit
27
27
  }
28
28
  ),
29
- !t.disableContextMenu && /* @__PURE__ */ a(
29
+ !t.disableContextMenu && /* @__PURE__ */ r(
30
30
  p,
31
31
  {
32
32
  open: o.contextMenu.open,
@@ -36,7 +36,7 @@ const f = (t, r) => {
36
36
  }
37
37
  )
38
38
  ] });
39
- }, C = n.memo(n.forwardRef(f));
39
+ }, C = n.memo(n.forwardRef(M));
40
40
  export {
41
- C as default
41
+ C as Map
42
42
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as r, Fragment as i, jsx as e } from "react/jsx-runtime";
2
2
  import { Grid as t, TextField as n, FormControl as m, InputLabel as h, Select as s, MenuItem as o } from "@mui/material";
3
3
  import c from "./logic.js";
4
- function L({ coordinate: u, onChange: d }) {
5
- const { state: l, action: a } = c({ coordinate: u, onChange: d });
4
+ const M = ({ coordinate: d, onChange: u }) => {
5
+ const { state: l, action: a } = c({ coordinate: d, onChange: u });
6
6
  return /* @__PURE__ */ r(t, { container: !0, spacing: 2, mt: 1, children: [
7
7
  l.format === "LATLON" && /* @__PURE__ */ r(i, { children: [
8
8
  /* @__PURE__ */ e(t, { item: !0, xs: 4, children: /* @__PURE__ */ e(
@@ -72,7 +72,7 @@ function L({ coordinate: u, onChange: d }) {
72
72
  )
73
73
  ] }) })
74
74
  ] });
75
- }
75
+ };
76
76
  export {
77
- L as default
77
+ M as CoordinateInput
78
78
  };
@@ -1,22 +1,22 @@
1
1
  import { jsx as e, Fragment as w, jsxs as o } from "react/jsx-runtime";
2
- import { AccordionSummary as c, Box as a, Typography as s, Tooltip as d, IconButton as h, AccordionDetails as p } from "@mui/material";
3
- import m from "./coordinate-input/index.js";
4
- import P from "./logic.js";
5
- import { GridExpandMoreIcon as f } from "@mui/x-data-grid";
6
- import { Accordion as u } from "./styled.js";
2
+ import { AccordionSummary as c, Box as a, Tooltip as d, IconButton as s, AccordionDetails as h } from "@mui/material";
3
+ import { CoordinateInput as p } from "./coordinate-input/index.js";
4
+ import z from "./logic.js";
5
+ import { GridExpandMoreIcon as m } from "@mui/x-data-grid";
6
+ import { Accordion as f, ParserLineLabel as u, ParserRemoveSlot as C } from "./styled.js";
7
7
  import { Close as g } from "@mui/icons-material";
8
- import { ConditionalWrapper as z } from "../../conditional-wrapper/index.js";
9
- function R(C) {
10
- var I;
11
- const { state: y, action: t } = P(C);
12
- return /* @__PURE__ */ e(w, { children: (I = y.parsed) == null ? void 0 : I.map((r, n) => {
8
+ import { ConditionalWrapper as S } from "../../conditional-wrapper/index.js";
9
+ const A = (I) => {
10
+ var y;
11
+ const { state: P, action: t } = z(I);
12
+ return /* @__PURE__ */ e(w, { children: (y = P.parsed) == null ? void 0 : y.map((r, n) => {
13
13
  if (r.type === "Point")
14
14
  return /* @__PURE__ */ e(
15
- z,
15
+ S,
16
16
  {
17
- condition: !C.disableGrouping,
18
- wrapper: (i) => /* @__PURE__ */ o(u, { defaultExpanded: !0, children: [
19
- /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(f, {}), children: /* @__PURE__ */ o(
17
+ condition: !I.disableGrouping,
18
+ wrapper: (i) => /* @__PURE__ */ o(f, { defaultExpanded: !0, children: [
19
+ /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ o(
20
20
  a,
21
21
  {
22
22
  display: "flex",
@@ -24,27 +24,26 @@ function R(C) {
24
24
  justifyContent: "space-between",
25
25
  width: "100%",
26
26
  children: [
27
- /* @__PURE__ */ o(s, { sx: { width: 120 }, children: [
27
+ /* @__PURE__ */ o(u, { children: [
28
28
  "Coordinate ",
29
29
  n + 1
30
30
  ] }),
31
- /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
32
- h,
31
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
32
+ s,
33
33
  {
34
34
  size: "small",
35
35
  color: "error",
36
- sx: { ml: 1 },
37
36
  onClick: t.onRemoveItem(n),
38
37
  children: /* @__PURE__ */ e(g, { fontSize: "small" })
39
38
  }
40
- ) })
39
+ ) }) })
41
40
  ]
42
41
  }
43
42
  ) }),
44
- /* @__PURE__ */ e(p, { children: i })
43
+ /* @__PURE__ */ e(h, { children: i })
45
44
  ] }, n),
46
45
  children: /* @__PURE__ */ e(
47
- m,
46
+ p,
48
47
  {
49
48
  coordinate: r.coordinates,
50
49
  onChange: t.onCoordinateInputChange(n)
@@ -54,8 +53,8 @@ function R(C) {
54
53
  n
55
54
  );
56
55
  if (r.type === "Polygon")
57
- return /* @__PURE__ */ o(u, { children: [
58
- /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(f, {}), children: /* @__PURE__ */ o(
56
+ return /* @__PURE__ */ o(f, { children: [
57
+ /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ o(
59
58
  a,
60
59
  {
61
60
  display: "flex",
@@ -63,25 +62,24 @@ function R(C) {
63
62
  justifyContent: "space-between",
64
63
  width: "100%",
65
64
  children: [
66
- /* @__PURE__ */ o(s, { sx: { width: 120 }, children: [
65
+ /* @__PURE__ */ o(u, { children: [
67
66
  "Polygon ",
68
67
  n + 1
69
68
  ] }),
70
- /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
71
- h,
69
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
70
+ s,
72
71
  {
73
72
  size: "small",
74
73
  color: "error",
75
- sx: { ml: 1 },
76
74
  onClick: t.onRemoveItem(n),
77
75
  children: /* @__PURE__ */ e(g, { fontSize: "small" })
78
76
  }
79
- ) })
77
+ ) }) })
80
78
  ]
81
79
  }
82
80
  ) }),
83
- /* @__PURE__ */ e(p, { children: r.coordinates[0].map((i, l) => /* @__PURE__ */ e(
84
- m,
81
+ /* @__PURE__ */ e(h, { children: r.coordinates[0].map((i, l) => /* @__PURE__ */ e(
82
+ p,
85
83
  {
86
84
  coordinate: i,
87
85
  onChange: t.onPolygonInputChange(
@@ -94,8 +92,8 @@ function R(C) {
94
92
  )) })
95
93
  ] }, n);
96
94
  if (r.type === "MultiPoint")
97
- return /* @__PURE__ */ o(u, { children: [
98
- /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(f, {}), children: /* @__PURE__ */ o(
95
+ return /* @__PURE__ */ o(f, { children: [
96
+ /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ o(
99
97
  a,
100
98
  {
101
99
  display: "flex",
@@ -103,25 +101,24 @@ function R(C) {
103
101
  justifyContent: "space-between",
104
102
  width: "100%",
105
103
  children: [
106
- /* @__PURE__ */ o(s, { sx: { width: 120 }, children: [
104
+ /* @__PURE__ */ o(u, { children: [
107
105
  "Multi-Point ",
108
106
  n + 1
109
107
  ] }),
110
- /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
111
- h,
108
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
109
+ s,
112
110
  {
113
111
  size: "small",
114
112
  color: "error",
115
- sx: { ml: 1 },
116
113
  onClick: t.onRemoveItem(n),
117
114
  children: /* @__PURE__ */ e(g, { fontSize: "small" })
118
115
  }
119
- ) })
116
+ ) }) })
120
117
  ]
121
118
  }
122
119
  ) }),
123
- /* @__PURE__ */ e(p, { children: r.coordinates.map((i, l) => /* @__PURE__ */ e(
124
- m,
120
+ /* @__PURE__ */ e(h, { children: r.coordinates.map((i, l) => /* @__PURE__ */ e(
121
+ p,
125
122
  {
126
123
  coordinate: i,
127
124
  onChange: t.onMultiPointInputChange(
@@ -134,8 +131,8 @@ function R(C) {
134
131
  )) })
135
132
  ] }, n);
136
133
  if (r.type === "LineString")
137
- return /* @__PURE__ */ o(u, { children: [
138
- /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(f, {}), children: /* @__PURE__ */ o(
134
+ return /* @__PURE__ */ o(f, { children: [
135
+ /* @__PURE__ */ e(c, { expandIcon: /* @__PURE__ */ e(m, {}), children: /* @__PURE__ */ o(
139
136
  a,
140
137
  {
141
138
  display: "flex",
@@ -143,25 +140,24 @@ function R(C) {
143
140
  justifyContent: "space-between",
144
141
  width: "100%",
145
142
  children: [
146
- /* @__PURE__ */ o(s, { sx: { width: 120 }, children: [
143
+ /* @__PURE__ */ o(u, { children: [
147
144
  "Line ",
148
145
  n + 1
149
146
  ] }),
150
- /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
151
- h,
147
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(d, { title: "Delete", children: /* @__PURE__ */ e(
148
+ s,
152
149
  {
153
150
  size: "small",
154
151
  color: "error",
155
- sx: { ml: 1 },
156
152
  onClick: t.onRemoveItem(n),
157
153
  children: /* @__PURE__ */ e(g, { fontSize: "small" })
158
154
  }
159
- ) })
155
+ ) }) })
160
156
  ]
161
157
  }
162
158
  ) }),
163
- /* @__PURE__ */ e(p, { children: r.coordinates.map((i, l) => /* @__PURE__ */ e(
164
- m,
159
+ /* @__PURE__ */ e(h, { children: r.coordinates.map((i, l) => /* @__PURE__ */ e(
160
+ p,
165
161
  {
166
162
  coordinate: i,
167
163
  onChange: t.onLineStringInputChange(
@@ -174,7 +170,7 @@ function R(C) {
174
170
  )) })
175
171
  ] }, n);
176
172
  }) });
177
- }
173
+ };
178
174
  export {
179
- R as default
175
+ A as Parser
180
176
  };
@@ -1,5 +1,8 @@
1
- import { styled as i, Accordion as r } from "@mui/material";
2
- const n = i(r)(({ theme: o }) => ({
1
+ import { styled as r, Accordion as e, Typography as i, Box as n } from "@mui/material";
2
+ const t = r(e, {
3
+ name: "HCGeometryPicker",
4
+ slot: "parserAccordion"
5
+ })(({ theme: o }) => ({
3
6
  borderRadius: 10,
4
7
  margin: "16px 0",
5
8
  boxShadow: o.shadows[4],
@@ -9,7 +12,9 @@ const n = i(r)(({ theme: o }) => ({
9
12
  ".MuiAccordionSummary-root, .MuiAccordionSummary-root.Mui-expanded": {
10
13
  minHeight: 42
11
14
  },
12
- "& .MuiAccordionSummary-content, & .MuiAccordionSummary-content.Mui-expanded": { margin: 0 },
15
+ "& .MuiAccordionSummary-content, & .MuiAccordionSummary-content.Mui-expanded": {
16
+ margin: 0
17
+ },
13
18
  "& .MuiAccordionDetails-root": {
14
19
  paddingTop: 0
15
20
  },
@@ -19,7 +24,20 @@ const n = i(r)(({ theme: o }) => ({
19
24
  paddingTop: 8
20
25
  }
21
26
  }
27
+ })), c = r(i, {
28
+ name: "HCGeometryPicker",
29
+ slot: "parserLineLabel"
30
+ })({
31
+ width: 120
32
+ }), d = r(n, {
33
+ name: "HCGeometryPicker",
34
+ slot: "parserRemoveButton"
35
+ })(({ theme: o }) => ({
36
+ display: "inline-flex",
37
+ marginLeft: o.spacing(1)
22
38
  }));
23
39
  export {
24
- n as Accordion
40
+ t as Accordion,
41
+ c as ParserLineLabel,
42
+ d as ParserRemoveSlot
25
43
  };
@@ -1,29 +1,46 @@
1
- import { styled as n, Box as i, Button as a } from "@mui/material";
2
- const s = n(i)(({ theme: o }) => ({
1
+ import { styled as o, Box as n, FormLabel as i, Button as r, FormControl as a, InputLabel as c, Input as m, OutlinedInput as l, FilledInput as s, InputAdornment as d, IconButton as p, Dialog as y, DialogTitle as k, DialogContent as u } from "@mui/material";
2
+ const G = (e) => e !== "ownerState", g = o(n, {
3
+ name: "HCGeometryPicker",
4
+ slot: "root"
5
+ })({}), C = o(i, {
6
+ name: "HCGeometryPicker",
7
+ slot: "topLabel"
8
+ })(({ theme: e }) => ({
9
+ display: "block",
10
+ marginBottom: e.spacing(0.5)
11
+ })), b = o(n, {
12
+ name: "HCGeometryPicker",
13
+ slot: "container"
14
+ })(({ theme: e }) => ({
3
15
  position: "relative",
4
- paddingTop: o.spacing(1),
16
+ paddingTop: e.spacing(1),
5
17
  width: "100%"
6
- })), p = n(i)(
7
- ({ variant: o = "standard", theme: t }) => ({
8
- position: "absolute",
9
- top: 0,
10
- right: 0,
11
- zIndex: 9,
12
- ...o === "outlined" && {
13
- padding: t.spacing(0.25),
14
- top: t.spacing(-0.75),
15
- right: t.spacing(1),
16
- background: t.palette.background.default
17
- }
18
- })
19
- ), r = n(a)(({ theme: o, variant: t }) => ({
18
+ })), H = o(n, {
19
+ name: "HCGeometryPicker",
20
+ slot: "actions",
21
+ shouldForwardProp: G
22
+ })(({ ownerState: e, theme: t }) => ({
23
+ position: "absolute",
24
+ top: 0,
25
+ right: 0,
26
+ zIndex: 9,
27
+ ...e.variant === "outlined" && {
28
+ padding: t.spacing(0.25),
29
+ top: t.spacing(-0.75),
30
+ right: t.spacing(1),
31
+ background: t.palette.background.default
32
+ }
33
+ })), I = o(r, {
34
+ name: "HCGeometryPicker",
35
+ slot: "actionButton"
36
+ })(({ theme: e, variant: t }) => ({
20
37
  fontSize: 10,
21
38
  padding: "3px 8px",
22
39
  minWidth: "auto",
23
- boxShadow: o.shadows[1],
40
+ boxShadow: e.shadows[1],
24
41
  textTransform: "none",
25
42
  borderRadius: 13,
26
- marginLeft: o.spacing(0.5),
43
+ marginLeft: e.spacing(0.5),
27
44
  "& .MuiButton-startIcon": {
28
45
  marginRight: 0.25,
29
46
  "& > :nth-of-type(1)": {
@@ -32,25 +49,68 @@ const s = n(i)(({ theme: o }) => ({
32
49
  },
33
50
  ...t === "contained" && {
34
51
  "&:hover": {
35
- backgroundColor: o.palette.grey[300],
36
- boxShadow: o.shadows[1]
52
+ backgroundColor: e.palette.action.hover,
53
+ boxShadow: e.shadows[1]
37
54
  }
38
55
  }
39
- })), g = n(i)({
40
- position: "absolute",
41
- top: 0,
42
- left: 0,
43
- right: 0,
44
- zIndex: 10,
45
- display: "flex",
46
- minHeight: "100%",
47
- "& .MuiPaper-root": {
48
- flex: 1
49
- }
50
- });
56
+ })), B = o(a, {
57
+ name: "HCGeometryPicker",
58
+ slot: "formControl"
59
+ })({}), f = o(c, {
60
+ name: "HCGeometryPicker",
61
+ slot: "inputLabel"
62
+ })({}), x = o(m, {
63
+ name: "HCGeometryPicker",
64
+ slot: "input"
65
+ })({}), S = o(l, {
66
+ name: "HCGeometryPicker",
67
+ slot: "input"
68
+ })({}), T = o(s, {
69
+ name: "HCGeometryPicker",
70
+ slot: "input"
71
+ })({}), h = o(d, {
72
+ name: "HCGeometryPicker",
73
+ slot: "endAdornment"
74
+ })({}), w = o(p, {
75
+ name: "HCGeometryPicker",
76
+ slot: "endAdornmentButton"
77
+ })({}), A = o(y, {
78
+ name: "HCGeometryPicker",
79
+ slot: "dialog"
80
+ })({}), L = o(k, {
81
+ name: "HCGeometryPicker",
82
+ slot: "dialogTitle"
83
+ })({}), v = o(u, {
84
+ name: "HCGeometryPicker",
85
+ slot: "dialogContent"
86
+ })({}), D = o(r, {
87
+ name: "HCGeometryPicker",
88
+ slot: "coordinateSubmit"
89
+ })(({ theme: e }) => ({
90
+ textTransform: "none",
91
+ marginTop: e.spacing(1)
92
+ })), F = o(n, {
93
+ name: "HCGeometryPicker",
94
+ slot: "geometryMapOverlay"
95
+ })(({ theme: e }) => ({
96
+ backgroundColor: e.palette.action.disabledBackground
97
+ }));
51
98
  export {
52
- p as Actions,
53
- r as Button,
54
- s as Container,
55
- g as Modal
99
+ I as GeometryPickerActionButton,
100
+ H as GeometryPickerActions,
101
+ b as GeometryPickerContainer,
102
+ D as GeometryPickerCoordinateSubmit,
103
+ A as GeometryPickerDialog,
104
+ v as GeometryPickerDialogContent,
105
+ L as GeometryPickerDialogTitle,
106
+ h as GeometryPickerEndAdornment,
107
+ w as GeometryPickerEndAdornmentButton,
108
+ B as GeometryPickerFormControl,
109
+ F as GeometryPickerGeometryMapOverlay,
110
+ T as GeometryPickerInputFilled,
111
+ f as GeometryPickerInputLabel,
112
+ S as GeometryPickerInputOutlined,
113
+ x as GeometryPickerInputStandard,
114
+ g as GeometryPickerRoot,
115
+ C as GeometryPickerTopLabel
56
116
  };
@@ -1,25 +1,25 @@
1
- import { jsx as e, jsxs as s, Fragment as v } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as u, Fragment as v } from "react/jsx-runtime";
2
2
  import { useState as o, useEffect as x } from "react";
3
3
  import k from "./select-input-method.js";
4
4
  import { TextField as b, Box as C, Button as c } from "@mui/material";
5
5
  import { parse as T } from "../../map/helpers/wkt.js";
6
- function E({ onCancel: d, onSubmit: n }) {
7
- const [t, i] = o(), [a, l] = o(), [W, u] = o(), m = (r) => {
6
+ const E = ({ onCancel: d, onSubmit: n }) => {
7
+ const [t, i] = o(), [a, l] = o(), [W, s] = o(), m = (r) => {
8
8
  i(r);
9
9
  }, p = (r) => {
10
10
  i(r.target.value);
11
- }, f = () => {
11
+ }, h = () => {
12
12
  if (t && t.trim().length > 0)
13
13
  try {
14
- T(t), u(t), l(void 0);
14
+ T(t), s(t), l(void 0);
15
15
  } catch {
16
- u(void 0), l("Error in WKT data!");
16
+ s(void 0), l("Error in WKT data!");
17
17
  }
18
- }, h = () => {
18
+ }, f = () => {
19
19
  n && t && n(t);
20
20
  };
21
- return x(() => (f(), () => {
22
- }), [t]), t === void 0 ? /* @__PURE__ */ e(k, { onSubmit: m }) : /* @__PURE__ */ s(v, { children: [
21
+ return x(() => (h(), () => {
22
+ }), [t]), t === void 0 ? /* @__PURE__ */ e(k, { onSubmit: m }) : /* @__PURE__ */ u(v, { children: [
23
23
  /* @__PURE__ */ e(
24
24
  b,
25
25
  {
@@ -39,7 +39,7 @@ function E({ onCancel: d, onSubmit: n }) {
39
39
  }
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ s(C, { display: "flex", justifyContent: "space-between", mt: 3, children: [
42
+ /* @__PURE__ */ u(C, { display: "flex", justifyContent: "space-between", mt: 3, children: [
43
43
  /* @__PURE__ */ e(c, { color: "primary", onClick: d, children: "Cancel" }),
44
44
  /* @__PURE__ */ e(
45
45
  c,
@@ -47,13 +47,13 @@ function E({ onCancel: d, onSubmit: n }) {
47
47
  color: "primary",
48
48
  variant: "contained",
49
49
  disabled: t === void 0,
50
- onClick: h,
50
+ onClick: f,
51
51
  children: "Ok"
52
52
  }
53
53
  )
54
54
  ] })
55
55
  ] });
56
- }
56
+ };
57
57
  export {
58
- E as default
58
+ E as Wkt
59
59
  };
@@ -1,12 +1,10 @@
1
1
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
2
  import { Container as t, Button as r } from "./styled.js";
3
3
  import { I as s, a as l } from "../../../../IconPlus-yPkff_Vj.js";
4
- function m({ mapRef: n }) {
5
- return n ? /* @__PURE__ */ i(t, { children: [
6
- /* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
7
- /* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
8
- ] }) : null;
9
- }
4
+ const m = ({ mapRef: n }) => n ? /* @__PURE__ */ i(t, { children: [
5
+ /* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
6
+ /* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
7
+ ] }) : null;
10
8
  export {
11
9
  m as Controls
12
10
  };