@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,462 +1,30 @@
1
- import { jsx as p, jsxs as S, Fragment as M } from "react/jsx-runtime";
2
- import { ClickAwayListener as U } from "@mui/material";
3
- import { L as T, a as G } from "../../List-tqElle9C.js";
4
- import { l as v, g as D, L as W } from "../../ListItem-CfjsIg4B.js";
5
- import { a as d, _ as k } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
6
- import * as f from "react";
7
- import { P as t } from "../../index-C__OZmYy.js";
8
- import { u as R, c as h, a as P } from "../../useThemeProps-BzzHcQyd.js";
9
- import { alpha as I } from "@mui/system";
10
- import { s as B, r as A } from "../../styled-eZwjUruw.js";
11
- import { B as z, u as q, a as H } from "../../ButtonBase-2bPw77UP.js";
12
- import { g as J, l as w, b as K } from "../../listItemTextClasses-C3lndiXO.js";
13
- import { T as C } from "../../Typography-CxbneZy_.js";
14
- const Q = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], X = (e, o) => {
15
- const {
16
- ownerState: s
17
- } = e;
18
- return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
19
- }, Y = (e) => {
20
- const {
21
- alignItems: o,
22
- classes: s,
23
- dense: a,
24
- disabled: n,
25
- disableGutters: i,
26
- divider: c,
27
- selected: r
28
- } = e, u = P({
29
- root: ["root", a && "dense", !i && "gutters", c && "divider", n && "disabled", o === "flex-start" && "alignItemsFlexStart", r && "selected"]
30
- }, D, s);
31
- return d({}, s, u);
32
- }, Z = B(z, {
33
- shouldForwardProp: (e) => A(e) || e === "classes",
34
- name: "MuiListItemButton",
35
- slot: "Root",
36
- overridesResolver: X
37
- })(({
38
- theme: e,
39
- ownerState: o
40
- }) => d({
41
- display: "flex",
42
- flexGrow: 1,
43
- justifyContent: "flex-start",
44
- alignItems: "center",
45
- position: "relative",
46
- textDecoration: "none",
47
- minWidth: 0,
48
- boxSizing: "border-box",
49
- textAlign: "left",
50
- paddingTop: 8,
51
- paddingBottom: 8,
52
- transition: e.transitions.create("background-color", {
53
- duration: e.transitions.duration.shortest
54
- }),
55
- "&:hover": {
56
- textDecoration: "none",
57
- backgroundColor: (e.vars || e).palette.action.hover,
58
- // Reset on touch devices, it doesn't add specificity
59
- "@media (hover: none)": {
60
- backgroundColor: "transparent"
61
- }
62
- },
63
- [`&.${v.selected}`]: {
64
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity),
65
- [`&.${v.focusVisible}`]: {
66
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
67
- }
68
- },
69
- [`&.${v.selected}:hover`]: {
70
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
71
- // Reset on touch devices, it doesn't add specificity
72
- "@media (hover: none)": {
73
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity)
74
- }
75
- },
76
- [`&.${v.focusVisible}`]: {
77
- backgroundColor: (e.vars || e).palette.action.focus
78
- },
79
- [`&.${v.disabled}`]: {
80
- opacity: (e.vars || e).palette.action.disabledOpacity
81
- }
82
- }, o.divider && {
83
- borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
84
- backgroundClip: "padding-box"
85
- }, o.alignItems === "flex-start" && {
86
- alignItems: "flex-start"
87
- }, !o.disableGutters && {
88
- paddingLeft: 16,
89
- paddingRight: 16
90
- }, o.dense && {
91
- paddingTop: 4,
92
- paddingBottom: 4
93
- })), F = /* @__PURE__ */ f.forwardRef(function(o, s) {
94
- const a = R({
95
- props: o,
96
- name: "MuiListItemButton"
97
- }), {
98
- alignItems: n = "center",
99
- autoFocus: i = !1,
100
- component: c = "div",
101
- children: r,
102
- dense: m = !1,
103
- disableGutters: u = !1,
104
- divider: L = !1,
105
- focusVisibleClassName: O,
106
- selected: N = !1,
107
- className: x
108
- } = a, l = k(a, Q), y = f.useContext(T), g = f.useMemo(() => ({
109
- dense: m || y.dense || !1,
110
- alignItems: n,
111
- disableGutters: u
112
- }), [n, y.dense, m, u]), b = f.useRef(null);
113
- q(() => {
114
- i && (b.current ? b.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
115
- }, [i]);
116
- const j = d({}, a, {
117
- alignItems: n,
118
- dense: g.dense,
119
- disableGutters: u,
120
- divider: L,
121
- selected: N
122
- }), $ = Y(j), _ = H(b, s);
123
- return /* @__PURE__ */ p(T.Provider, {
124
- value: g,
125
- children: /* @__PURE__ */ p(Z, d({
126
- ref: _,
127
- href: l.href || l.to,
128
- component: (l.href || l.to) && c === "div" ? "a" : c,
129
- focusVisibleClassName: h($.focusVisible, O),
130
- ownerState: j,
131
- className: h($.root, x)
132
- }, l, {
133
- classes: $,
134
- children: r
135
- }))
136
- });
137
- });
138
- process.env.NODE_ENV !== "production" && (F.propTypes = {
139
- // ----------------------------- Warning --------------------------------
140
- // | These PropTypes are generated from the TypeScript type definitions |
141
- // | To update them edit the d.ts file and run "yarn proptypes" |
142
- // ----------------------------------------------------------------------
143
- /**
144
- * Defines the `align-items` style property.
145
- * @default 'center'
146
- */
147
- alignItems: t.oneOf(["center", "flex-start"]),
148
- /**
149
- * If `true`, the list item is focused during the first mount.
150
- * Focus will also be triggered if the value changes from false to true.
151
- * @default false
152
- */
153
- autoFocus: t.bool,
154
- /**
155
- * The content of the component if a `ListItemSecondaryAction` is used it must
156
- * be the last child.
157
- */
158
- children: t.node,
159
- /**
160
- * Override or extend the styles applied to the component.
161
- */
162
- classes: t.object,
163
- /**
164
- * @ignore
165
- */
166
- className: t.string,
167
- /**
168
- * The component used for the root node.
169
- * Either a string to use a HTML element or a component.
170
- */
171
- component: t.elementType,
172
- /**
173
- * If `true`, compact vertical padding designed for keyboard and mouse input is used.
174
- * The prop defaults to the value inherited from the parent List component.
175
- * @default false
176
- */
177
- dense: t.bool,
178
- /**
179
- * If `true`, the component is disabled.
180
- * @default false
181
- */
182
- disabled: t.bool,
183
- /**
184
- * If `true`, the left and right padding is removed.
185
- * @default false
186
- */
187
- disableGutters: t.bool,
188
- /**
189
- * If `true`, a 1px light border is added to the bottom of the list item.
190
- * @default false
191
- */
192
- divider: t.bool,
193
- /**
194
- * This prop can help identify which element has keyboard focus.
195
- * The class name will be applied when the element gains the focus through keyboard interaction.
196
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
197
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
198
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
199
- * if needed.
200
- */
201
- focusVisibleClassName: t.string,
202
- /**
203
- * @ignore
204
- */
205
- href: t.string,
206
- /**
207
- * Use to apply selected styling.
208
- * @default false
209
- */
210
- selected: t.bool,
211
- /**
212
- * The system prop that allows defining system overrides as well as additional CSS styles.
213
- */
214
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
215
- });
216
- const ee = ["className"], te = (e) => {
217
- const {
218
- alignItems: o,
219
- classes: s
220
- } = e;
221
- return P({
222
- root: ["root", o === "flex-start" && "alignItemsFlexStart"]
223
- }, J, s);
224
- }, oe = B("div", {
225
- name: "MuiListItemIcon",
226
- slot: "Root",
227
- overridesResolver: (e, o) => {
228
- const {
229
- ownerState: s
230
- } = e;
231
- return [o.root, s.alignItems === "flex-start" && o.alignItemsFlexStart];
232
- }
233
- })(({
234
- theme: e,
235
- ownerState: o
236
- }) => d({
237
- minWidth: 56,
238
- color: (e.vars || e).palette.action.active,
239
- flexShrink: 0,
240
- display: "inline-flex"
241
- }, o.alignItems === "flex-start" && {
242
- marginTop: 8
243
- })), V = /* @__PURE__ */ f.forwardRef(function(o, s) {
244
- const a = R({
245
- props: o,
246
- name: "MuiListItemIcon"
247
- }), {
248
- className: n
249
- } = a, i = k(a, ee), c = f.useContext(T), r = d({}, a, {
250
- alignItems: c.alignItems
251
- }), m = te(r);
252
- return /* @__PURE__ */ p(oe, d({
253
- className: h(m.root, n),
254
- ownerState: r,
255
- ref: s
256
- }, i));
257
- });
258
- process.env.NODE_ENV !== "production" && (V.propTypes = {
259
- // ----------------------------- Warning --------------------------------
260
- // | These PropTypes are generated from the TypeScript type definitions |
261
- // | To update them edit the d.ts file and run "yarn proptypes" |
262
- // ----------------------------------------------------------------------
263
- /**
264
- * The content of the component, normally `Icon`, `SvgIcon`,
265
- * or a `@mui/icons-material` SVG icon element.
266
- */
267
- children: t.node,
268
- /**
269
- * Override or extend the styles applied to the component.
270
- */
271
- classes: t.object,
272
- /**
273
- * @ignore
274
- */
275
- className: t.string,
276
- /**
277
- * The system prop that allows defining system overrides as well as additional CSS styles.
278
- */
279
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
280
- });
281
- const se = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], ae = (e) => {
282
- const {
283
- classes: o,
284
- inset: s,
285
- primary: a,
286
- secondary: n,
287
- dense: i
288
- } = e;
289
- return P({
290
- root: ["root", s && "inset", i && "dense", a && n && "multiline"],
291
- primary: ["primary"],
292
- secondary: ["secondary"]
293
- }, K, o);
294
- }, re = B("div", {
295
- name: "MuiListItemText",
296
- slot: "Root",
297
- overridesResolver: (e, o) => {
298
- const {
299
- ownerState: s
300
- } = e;
301
- return [{
302
- [`& .${w.primary}`]: o.primary
303
- }, {
304
- [`& .${w.secondary}`]: o.secondary
305
- }, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
306
- }
307
- })(({
308
- ownerState: e
309
- }) => d({
310
- flex: "1 1 auto",
311
- minWidth: 0,
312
- marginTop: 4,
313
- marginBottom: 4
314
- }, e.primary && e.secondary && {
315
- marginTop: 6,
316
- marginBottom: 6
317
- }, e.inset && {
318
- paddingLeft: 56
319
- })), E = /* @__PURE__ */ f.forwardRef(function(o, s) {
320
- const a = R({
321
- props: o,
322
- name: "MuiListItemText"
323
- }), {
324
- children: n,
325
- className: i,
326
- disableTypography: c = !1,
327
- inset: r = !1,
328
- primary: m,
329
- primaryTypographyProps: u,
330
- secondary: L,
331
- secondaryTypographyProps: O
332
- } = a, N = k(a, se), {
333
- dense: x
334
- } = f.useContext(T);
335
- let l = m ?? n, y = L;
336
- const g = d({}, a, {
337
- disableTypography: c,
338
- inset: r,
339
- primary: !!l,
340
- secondary: !!y,
341
- dense: x
342
- }), b = ae(g);
343
- return l != null && l.type !== C && !c && (l = /* @__PURE__ */ p(C, d({
344
- variant: x ? "body2" : "body1",
345
- className: b.primary,
346
- component: u != null && u.variant ? void 0 : "span",
347
- display: "block"
348
- }, u, {
349
- children: l
350
- }))), y != null && y.type !== C && !c && (y = /* @__PURE__ */ p(C, d({
351
- variant: "body2",
352
- className: b.secondary,
353
- color: "text.secondary",
354
- display: "block"
355
- }, O, {
356
- children: y
357
- }))), /* @__PURE__ */ S(re, d({
358
- className: h(b.root, i),
359
- ownerState: g,
360
- ref: s
361
- }, N, {
362
- children: [l, y]
363
- }));
364
- });
365
- process.env.NODE_ENV !== "production" && (E.propTypes = {
366
- // ----------------------------- Warning --------------------------------
367
- // | These PropTypes are generated from the TypeScript type definitions |
368
- // | To update them edit the d.ts file and run "yarn proptypes" |
369
- // ----------------------------------------------------------------------
370
- /**
371
- * Alias for the `primary` prop.
372
- */
373
- children: t.node,
374
- /**
375
- * Override or extend the styles applied to the component.
376
- */
377
- classes: t.object,
378
- /**
379
- * @ignore
380
- */
381
- className: t.string,
382
- /**
383
- * If `true`, the children won't be wrapped by a Typography component.
384
- * This can be useful to render an alternative Typography variant by wrapping
385
- * the `children` (or `primary`) text, and optional `secondary` text
386
- * with the Typography component.
387
- * @default false
388
- */
389
- disableTypography: t.bool,
390
- /**
391
- * If `true`, the children are indented.
392
- * This should be used if there is no left avatar or left icon.
393
- * @default false
394
- */
395
- inset: t.bool,
396
- /**
397
- * The main content element.
398
- */
399
- primary: t.node,
400
- /**
401
- * These props will be forwarded to the primary typography component
402
- * (as long as disableTypography is not `true`).
403
- */
404
- primaryTypographyProps: t.object,
405
- /**
406
- * The secondary content element.
407
- */
408
- secondary: t.node,
409
- /**
410
- * These props will be forwarded to the secondary typography component
411
- * (as long as disableTypography is not `true`).
412
- */
413
- secondaryTypographyProps: t.object,
414
- /**
415
- * The system prop that allows defining system overrides as well as additional CSS styles.
416
- */
417
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
418
- });
419
- const ve = ({
420
- open: e,
421
- buttons: o,
422
- position: s,
423
- width: a = 160,
424
- sx: n,
425
- onClose: i
426
- }) => {
427
- const c = () => {
428
- i && i();
429
- };
430
- return e ? /* @__PURE__ */ p(U, { onClickAway: c, children: /* @__PURE__ */ p(
431
- G,
1
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
+ import { ClickAwayListener as a } from "@mui/material";
3
+ import { useContextMenuLogic as d } from "./logic.js";
4
+ import { ContextMenuList as u, ContextMenuItem as x, ContextMenuItemButton as C, ContextMenuItemIcon as m, ContextMenuItemText as I } from "./styled.js";
5
+ const y = (e) => {
6
+ const { state: o, actions: r } = d(e), { ownerState: i, open: c } = o;
7
+ return c ? /* @__PURE__ */ t(a, { onClickAway: r.handleClickAway, children: /* @__PURE__ */ t(u, { ownerState: i, sx: e.sx, disablePadding: !0, children: e.buttons.map((n, l) => /* @__PURE__ */ t(
8
+ x,
432
9
  {
433
- sx: {
434
- position: "absolute",
435
- zIndex: 9999999,
436
- width: a,
437
- maxWidth: 360,
438
- bgcolor: "background.paper",
439
- left: s == null ? void 0 : s.left,
440
- top: s == null ? void 0 : s.top,
441
- borderRadius: 0.5,
442
- ...n
443
- },
10
+ secondaryAction: n.endIcon,
444
11
  disablePadding: !0,
445
- children: o.map((r, m) => /* @__PURE__ */ p(W, { secondaryAction: r.endIcon, disablePadding: !0, children: /* @__PURE__ */ S(F, { role: void 0, onClick: r.onClick, dense: !0, children: [
446
- r.startIcon !== void 0 && /* @__PURE__ */ p(V, { sx: { minWidth: "auto", mr: 1 }, children: r.startIcon }),
447
- /* @__PURE__ */ p(
448
- E,
449
- {
450
- primary: r.label,
451
- primaryTypographyProps: {
452
- fontSize: "12px"
453
- }
454
- }
455
- )
456
- ] }) }, m))
457
- }
458
- ) }) : /* @__PURE__ */ p(M, {});
12
+ children: /* @__PURE__ */ s(
13
+ C,
14
+ {
15
+ role: void 0,
16
+ onClick: n.onClick,
17
+ dense: !0,
18
+ children: [
19
+ n.startIcon !== void 0 && /* @__PURE__ */ t(m, { children: n.startIcon }),
20
+ /* @__PURE__ */ t(I, { primary: n.label })
21
+ ]
22
+ }
23
+ )
24
+ },
25
+ l
26
+ )) }) }) : null;
459
27
  };
460
28
  export {
461
- ve as ContextMenu
29
+ y as ContextMenu
462
30
  };
@@ -0,0 +1,14 @@
1
+ import { useThemeProps as p } from "@mui/material";
2
+ const a = (t) => {
3
+ const o = p({ props: t, name: "HCContextMenu" }), { width: n = 160, onClose: e } = o, s = { ...o, width: n }, r = () => {
4
+ e && e();
5
+ };
6
+ return {
7
+ refs: {},
8
+ state: { ownerState: s, open: o.open },
9
+ actions: { handleClickAway: r }
10
+ };
11
+ };
12
+ export {
13
+ a as useContextMenuLogic
14
+ };
@@ -0,0 +1,40 @@
1
+ import { styled as o, List as n, ListItem as i, ListItemButton as s, ListItemIcon as m, ListItemText as u } from "@mui/material";
2
+ const a = (t) => t !== "ownerState", C = o(n, {
3
+ name: "HCContextMenu",
4
+ slot: "list",
5
+ shouldForwardProp: a
6
+ })(({ theme: t, ownerState: e }) => ({
7
+ position: "absolute",
8
+ zIndex: 9999999,
9
+ width: e.width ?? 160,
10
+ maxWidth: 360,
11
+ backgroundColor: t.palette.background.paper,
12
+ borderRadius: t.shape.borderRadius * 0.5,
13
+ ...e.position ? { left: e.position.left, top: e.position.top } : {}
14
+ })), p = o(i, {
15
+ name: "HCContextMenu",
16
+ slot: "item"
17
+ })({}), r = o(s, {
18
+ name: "HCContextMenu",
19
+ slot: "itemButton"
20
+ })({}), d = o(m, {
21
+ name: "HCContextMenu",
22
+ slot: "itemIcon"
23
+ })(({ theme: t }) => ({
24
+ minWidth: "auto",
25
+ marginRight: t.spacing(1)
26
+ })), l = o(u, {
27
+ name: "HCContextMenu",
28
+ slot: "itemText"
29
+ })({
30
+ "& .MuiListItemText-primary": {
31
+ fontSize: 12
32
+ }
33
+ });
34
+ export {
35
+ p as ContextMenuItem,
36
+ r as ContextMenuItemButton,
37
+ d as ContextMenuItemIcon,
38
+ l as ContextMenuItemText,
39
+ C as ContextMenuList
40
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useDataGridLogic as i } from "./logic.js";
3
+ import { DataGridRoot as s } from "./styled.js";
4
+ const u = (o) => {
5
+ const { state: e } = i(o), { props: t } = e;
6
+ return /* @__PURE__ */ r(
7
+ s,
8
+ {
9
+ ...t,
10
+ columns: t.columns,
11
+ density: t.density ?? "standard",
12
+ hideFooter: t.hideFooter ?? !0,
13
+ autoHeight: t.autoHeight ?? !0,
14
+ loading: t.loading ?? !1,
15
+ disableRowSelectionOnClick: !0,
16
+ sx: t.sx
17
+ }
18
+ );
19
+ };
20
+ export {
21
+ u as DataGrid
22
+ };
@@ -0,0 +1,15 @@
1
+ import { useThemeProps as e } from "@mui/material";
2
+ const a = (o) => {
3
+ const t = e({
4
+ props: o,
5
+ name: "HCDataGrid"
6
+ }), r = { ...t };
7
+ return {
8
+ refs: {},
9
+ state: { ownerState: r, props: t },
10
+ actions: {}
11
+ };
12
+ };
13
+ export {
14
+ a as useDataGridLogic
15
+ };
@@ -0,0 +1,20 @@
1
+ import { styled as r } from "@mui/material";
2
+ import { DataGrid as t } from "@mui/x-data-grid";
3
+ const d = r(t, {
4
+ name: "HCDataGrid",
5
+ slot: "root"
6
+ })(({ theme: o }) => ({
7
+ border: `1px solid ${o.palette.divider}`,
8
+ "& .MuiDataGrid-columnHeaders": {
9
+ borderBottom: `1px solid ${o.palette.divider}`
10
+ },
11
+ "& .MuiDataGrid-footerContainer": {
12
+ borderTop: `1px solid ${o.palette.divider}`
13
+ },
14
+ "& .MuiDataGrid-row:hover": {
15
+ backgroundColor: o.palette.action.hover
16
+ }
17
+ }));
18
+ export {
19
+ d as DataGridRoot
20
+ };
@@ -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
  };
@@ -1,16 +1,16 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { Typography as f, Paper as d } from "@mui/material";
3
- import { useEffect as u } from "react";
4
- import { u as h } from "../../index.esm-BLLrbTzY.js";
5
- import { M as x } from "../../index-kCJ_Zvl8.js";
2
+ import { Typography as m, Paper as d } from "@mui/material";
3
+ import { useEffect as h } from "react";
4
+ import { u } from "../../index.esm-BLLrbTzY.js";
5
+ import { Map as x } from "../map/index.js";
6
6
  import { Controls as M } from "./components/controls/index.js";
7
7
  import { useDataMapLogic as R } from "./logic.js";
8
8
  import { DataMapRoot as z, DataMapHeader as D, DataMapContent as y } from "./styled.js";
9
- function H(i) {
10
- const { refs: e, actions: a, state: o, ownerState: r, sx: m, other: l } = R(i), { width: n, height: p, ref: c } = h();
11
- return u(() => (n && p && a.onMapResize(), () => {
12
- }), [n, p]), /* @__PURE__ */ s(z, { ownerState: r, sx: m, ref: c, ...l, children: [
13
- /* @__PURE__ */ t(D, { ownerState: r, children: /* @__PURE__ */ t(f, { variant: "h3", children: i.title }) }),
9
+ const H = (i) => {
10
+ const { refs: e, actions: a, state: o, ownerState: r, sx: f, other: l } = R(i), { width: n, height: p, ref: c } = u();
11
+ return h(() => (n && p && a.onMapResize(), () => {
12
+ }), [n, p]), /* @__PURE__ */ s(z, { ownerState: r, sx: f, ref: c, ...l, children: [
13
+ /* @__PURE__ */ t(D, { ownerState: r, children: /* @__PURE__ */ t(m, { variant: "h3", children: i.title }) }),
14
14
  /* @__PURE__ */ s(y, { ownerState: r, children: [
15
15
  /* @__PURE__ */ t(
16
16
  x,
@@ -40,12 +40,12 @@ function H(i) {
40
40
  pointerEvents: "none",
41
41
  zIndex: 1e3
42
42
  },
43
- children: /* @__PURE__ */ t(f, { variant: "body2", children: o.tooltip.text })
43
+ children: /* @__PURE__ */ t(m, { variant: "body2", children: o.tooltip.text })
44
44
  }
45
45
  )
46
46
  ] })
47
47
  ] });
48
- }
48
+ };
49
49
  export {
50
50
  H as DataMap
51
51
  };