@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
@@ -0,0 +1,96 @@
1
+ import { P as u } from "./index-C__OZmYy.js";
2
+ import * as r from "react";
3
+ import p from "react";
4
+ import { _ as d } from "./setPrototypeOf-NPgp4cYc.js";
5
+ const _ = u.oneOfType([u.func, u.object]);
6
+ function m(e, t) {
7
+ return process.env.NODE_ENV === "production" ? () => null : function(...o) {
8
+ return e(...o) || t(...o);
9
+ };
10
+ }
11
+ function y(e) {
12
+ const {
13
+ prototype: t = {}
14
+ } = e;
15
+ return !!t.isReactComponent;
16
+ }
17
+ function h(e, t, n, o, a) {
18
+ const c = e[t], l = a || t;
19
+ if (c == null || // When server-side rendering React doesn't warn either.
20
+ // This is not an accurate check for SSR.
21
+ // This is only in place for emotion compat.
22
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
23
+ typeof window > "u")
24
+ return null;
25
+ let s;
26
+ return typeof c == "function" && !y(c) && (s = "Did you accidentally provide a plain function component instead?"), s !== void 0 ? new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
27
+ }
28
+ const O = m(u.elementType, h);
29
+ function E(e, t) {
30
+ typeof e == "function" ? e(t) : e && (e.current = t);
31
+ }
32
+ function $(...e) {
33
+ return r.useMemo(() => e.every((t) => t == null) ? null : (t) => {
34
+ e.forEach((n) => {
35
+ E(n, t);
36
+ });
37
+ }, e);
38
+ }
39
+ const T = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
40
+ function b(e) {
41
+ const t = r.useRef(e);
42
+ return T(() => {
43
+ t.current = e;
44
+ }), r.useRef((...n) => (
45
+ // @ts-expect-error hide `this`
46
+ (0, t.current)(...n)
47
+ )).current;
48
+ }
49
+ const f = {};
50
+ function I(e, t) {
51
+ const n = r.useRef(f);
52
+ return n.current === f && (n.current = e(t)), n;
53
+ }
54
+ const R = [];
55
+ function w(e) {
56
+ r.useEffect(e, R);
57
+ }
58
+ class i {
59
+ constructor() {
60
+ this.currentId = null, this.clear = () => {
61
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
62
+ }, this.disposeEffect = () => this.clear;
63
+ }
64
+ static create() {
65
+ return new i();
66
+ }
67
+ /**
68
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
69
+ */
70
+ start(t, n) {
71
+ this.clear(), this.currentId = setTimeout(() => {
72
+ this.currentId = null, n();
73
+ }, t);
74
+ }
75
+ }
76
+ function x() {
77
+ const e = I(i.create).current;
78
+ return w(e.disposeEffect), e;
79
+ }
80
+ function L(e, t) {
81
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, d(e, t);
82
+ }
83
+ const N = p.createContext(null);
84
+ export {
85
+ i as T,
86
+ L as _,
87
+ T as a,
88
+ b,
89
+ m as c,
90
+ N as d,
91
+ x as e,
92
+ O as f,
93
+ _ as r,
94
+ E as s,
95
+ $ as u
96
+ };
@@ -1,51 +1,51 @@
1
1
  import { a as s, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as W from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { g as C, u as M, c as O, a as j } from "./useThemeProps-BzzHcQyd.js";
5
- import { unstable_extendSxProp as P } from "@mui/system";
6
- import { s as N } from "./styled-eZwjUruw.js";
7
- import { g as R } from "./createTheme-DYxDnE9u.js";
3
+ import { P as t } from "./index-C__OZmYy.js";
4
+ import { c as C } from "./clsx-OuTLNxxd.js";
5
+ import { a as M, g as O, s as j, b as f, u as P, e as N, c as R } from "./generateUtilityClasses-C3ivN9Ie.js";
8
6
  import { jsx as _ } from "react/jsx-runtime";
9
- import { c as f } from "./capitalize-ciszXJ7R.js";
10
- function U(r) {
11
- return R("MuiTypography", r);
7
+ function U(a) {
8
+ return M("MuiTypography", a);
12
9
  }
13
- C("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
14
- const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (r) => {
10
+ O("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
11
+ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
15
12
  const {
16
- align: t,
17
- gutterBottom: a,
18
- noWrap: n,
13
+ align: o,
14
+ gutterBottom: r,
15
+ noWrap: e,
19
16
  paragraph: i,
20
- variant: e,
17
+ variant: n,
21
18
  classes: h
22
- } = r, p = {
23
- root: ["root", e, r.align !== "inherit" && `align${f(t)}`, a && "gutterBottom", n && "noWrap", i && "paragraph"]
19
+ } = a, p = {
20
+ root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
24
21
  };
25
- return j(p, U, h);
26
- }, L = N("span", {
22
+ return R(p, U, h);
23
+ }, L = j("span", {
27
24
  name: "MuiTypography",
28
25
  slot: "Root",
29
- overridesResolver: (r, t) => {
26
+ overridesResolver: (a, o) => {
30
27
  const {
31
- ownerState: a
32
- } = r;
33
- return [t.root, a.variant && t[a.variant], a.align !== "inherit" && t[`align${f(a.align)}`], a.noWrap && t.noWrap, a.gutterBottom && t.gutterBottom, a.paragraph && t.paragraph];
28
+ ownerState: r
29
+ } = a;
30
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
34
31
  }
35
32
  })(({
36
- theme: r,
37
- ownerState: t
33
+ theme: a,
34
+ ownerState: o
38
35
  }) => s({
39
36
  margin: 0
40
- }, t.variant && r.typography[t.variant], t.align !== "inherit" && {
41
- textAlign: t.align
42
- }, t.noWrap && {
37
+ }, o.variant === "inherit" && {
38
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
39
+ font: "inherit"
40
+ }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
41
+ textAlign: o.align
42
+ }, o.noWrap && {
43
43
  overflow: "hidden",
44
44
  textOverflow: "ellipsis",
45
45
  whiteSpace: "nowrap"
46
- }, t.gutterBottom && {
46
+ }, o.gutterBottom && {
47
47
  marginBottom: "0.35em"
48
- }, t.paragraph && {
48
+ }, o.paragraph && {
49
49
  marginBottom: 16
50
50
  })), u = {
51
51
  h1: "h1",
@@ -65,11 +65,11 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
65
65
  secondary: "secondary.main",
66
66
  textSecondary: "text.secondary",
67
67
  error: "error.main"
68
- }, $ = (r) => V[r] || r, w = /* @__PURE__ */ W.forwardRef(function(t, a) {
69
- const n = M({
70
- props: t,
68
+ }, $ = (a) => V[a] || a, z = /* @__PURE__ */ W.forwardRef(function(o, r) {
69
+ const e = P({
70
+ props: o,
71
71
  name: "MuiTypography"
72
- }), i = $(n.color), e = P(s({}, n, {
72
+ }), i = $(e.color), n = N(s({}, e, {
73
73
  color: i
74
74
  })), {
75
75
  align: h = "inherit",
@@ -80,7 +80,7 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
80
80
  paragraph: c = !1,
81
81
  variant: l = "body1",
82
82
  variantMapping: m = u
83
- } = e, v = B(e, D), y = s({}, e, {
83
+ } = n, v = B(n, D), y = s({}, n, {
84
84
  align: h,
85
85
  color: i,
86
86
  className: p,
@@ -93,43 +93,43 @@ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragra
93
93
  }), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
94
94
  return /* @__PURE__ */ _(L, s({
95
95
  as: T,
96
- ref: a,
96
+ ref: r,
97
97
  ownerState: y,
98
- className: O(x.root, p)
98
+ className: C(x.root, p)
99
99
  }, v));
100
100
  });
101
- process.env.NODE_ENV !== "production" && (w.propTypes = {
102
- // ----------------------------- Warning --------------------------------
103
- // | These PropTypes are generated from the TypeScript type definitions |
104
- // | To update them edit the d.ts file and run "yarn proptypes" |
105
- // ----------------------------------------------------------------------
101
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
102
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
103
+ // These PropTypes are generated from the TypeScript type definitions.
104
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
105
+ // └─────────────────────────────────────────────────────────────────────┘
106
106
  /**
107
107
  * Set the text-align on the component.
108
108
  * @default 'inherit'
109
109
  */
110
- align: o.oneOf(["center", "inherit", "justify", "left", "right"]),
110
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
111
111
  /**
112
112
  * The content of the component.
113
113
  */
114
- children: o.node,
114
+ children: t.node,
115
115
  /**
116
116
  * Override or extend the styles applied to the component.
117
117
  */
118
- classes: o.object,
118
+ classes: t.object,
119
119
  /**
120
120
  * @ignore
121
121
  */
122
- className: o.string,
122
+ className: t.string,
123
123
  /**
124
124
  * The component used for the root node.
125
125
  * Either a string to use a HTML element or a component.
126
126
  */
127
- component: o.elementType,
127
+ component: t.elementType,
128
128
  /**
129
129
  * If `true`, the text will have a bottom margin.
130
130
  * @default false
131
131
  */
132
- gutterBottom: o.bool,
132
+ gutterBottom: t.bool,
133
133
  /**
134
134
  * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
135
135
  *
@@ -137,21 +137,21 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
137
137
  * (the element needs to have a width in order to overflow).
138
138
  * @default false
139
139
  */
140
- noWrap: o.bool,
140
+ noWrap: t.bool,
141
141
  /**
142
142
  * If `true`, the element will be a paragraph element.
143
143
  * @default false
144
144
  */
145
- paragraph: o.bool,
145
+ paragraph: t.bool,
146
146
  /**
147
147
  * The system prop that allows defining system overrides as well as additional CSS styles.
148
148
  */
149
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
149
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
150
150
  /**
151
151
  * Applies the theme typography styles.
152
152
  * @default 'body1'
153
153
  */
154
- variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string]),
154
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
155
155
  /**
156
156
  * The component maps the variant prop to a range of different HTML element types.
157
157
  * For instance, subtitle1 to `<h6>`.
@@ -171,8 +171,8 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
171
171
  * inherit: 'p',
172
172
  * }
173
173
  */
174
- variantMapping: o.object
174
+ variantMapping: t.object
175
175
  });
176
176
  export {
177
- w as T
177
+ z as T
178
178
  };
@@ -0,0 +1,7 @@
1
+ function i(e) {
2
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3
+ return e;
4
+ }
5
+ export {
6
+ i as _
7
+ };
@@ -0,0 +1 @@
1
+ .react-daterange-picker{display:inline-flex;position:relative}.react-daterange-picker,.react-daterange-picker *,.react-daterange-picker *:before,.react-daterange-picker *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-daterange-picker--disabled{background-color:#f0f0f0;color:#6d6d6d}.react-daterange-picker__wrapper{display:flex;flex-grow:1;flex-shrink:0;align-items:center;border:thin solid gray}.react-daterange-picker__inputGroup{min-width:calc((4px * 3) + .54em * 8 + .217em * 2);height:100%;flex-grow:1;padding:0 2px;box-sizing:content-box}.react-daterange-picker__inputGroup__divider{padding:1px 0;white-space:pre}.react-daterange-picker__inputGroup__divider,.react-daterange-picker__inputGroup__leadingZero{display:inline-block}.react-daterange-picker__inputGroup__input{min-width:.54em;height:100%;position:relative;padding:0 1px;border:0;background:none;color:currentColor;font:inherit;box-sizing:content-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.react-daterange-picker__inputGroup__input::-webkit-outer-spin-button,.react-daterange-picker__inputGroup__input::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.react-daterange-picker__inputGroup__input:invalid{background:#ff00001a}.react-daterange-picker__inputGroup__input--hasLeadingZero{margin-left:-.54em;padding-left:calc(1px + .54em)}.react-daterange-picker__button{border:0;background:transparent;padding:4px 6px}.react-daterange-picker__button:enabled{cursor:pointer}.react-daterange-picker__button:enabled:hover .react-daterange-picker__button__icon,.react-daterange-picker__button:enabled:focus .react-daterange-picker__button__icon{stroke:#0078d7}.react-daterange-picker__button:disabled .react-daterange-picker__button__icon{stroke:#6d6d6d}.react-daterange-picker__button svg{display:inherit}.react-daterange-picker__calendar{width:350px;max-width:100vw;z-index:1}.react-daterange-picker__calendar--closed{display:none}.react-daterange-picker__calendar .react-calendar{border-width:thin}.react-calendar{width:350px;max-width:100%;background:#fff;border:1px solid #a0a096;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar *:before,.react-calendar *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-calendar button{margin:0;border:0;outline:none}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:44px;margin-bottom:1em}.react-calendar__navigation button{min-width:44px;background:none}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{display:flex;align-items:center;justify-content:center;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth,.react-calendar__decade-view__years__year--neighboringDecade,.react-calendar__century-view__decades__decade--neighboringCentury{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{max-width:100%;padding:10px 6.6667px;background:none;text-align:center;line-height:16px;font:inherit;font-size:.833em}.react-calendar__tile:disabled{background-color:#f0f0f0;color:#ababab}.react-calendar__month-view__days__day--neighboringMonth:disabled,.react-calendar__decade-view__years__year--neighboringDecade:disabled,.react-calendar__century-view__decades__decade--neighboringCentury:disabled{color:#cdcdcd}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{background:#006edc;color:#fff}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}.react-daterange-picker .react-daterange-picker__wrapper{height:40px;border-radius:4px;padding:4px 8px;border:1px solid rgba(0,0,0,.23)}.react-daterange-picker .react-daterange-picker__wrapper:hover{border-color:#000000de}.MuiTypography-root.react-daterange-picker__label{position:absolute;display:block;top:-6px;left:9px;font-size:12px;color:#0009;background-color:#fff;z-index:9;padding:0 4px;line-height:.75rem}
@@ -0,0 +1,16 @@
1
+ function a(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) {
5
+ var o = r.length;
6
+ for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
+ } else for (n in r) r[n] && (t && (t += " "), t += n);
8
+ return t;
9
+ }
10
+ function i() {
11
+ for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
+ return t;
13
+ }
14
+ export {
15
+ i as c
16
+ };
@@ -1,5 +1,5 @@
1
1
  import "lodash";
2
- import { c as e, b as h, a as o } from "../../helpers-B4UL9NMD.js";
2
+ import { b as e, c as h, a as o } from "../../helpers-D4uXfBfO.js";
3
3
  export {
4
4
  e as hasAccess,
5
5
  h as hasDataAccess,
@@ -1,17 +1,10 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { a as m } from "../../helpers-B4UL9NMD.js";
3
- import n from "lodash";
4
- import { Loading as d } from "../loading/index.js";
5
- function x({
6
- pagePath: s,
7
- feature: o,
8
- appRoles: t,
9
- fallback: i,
10
- loading: e = !1,
11
- children: r
12
- }) {
13
- return s && (s = s.split("/").slice(1)[0] || "dashboard", s === "dashboard" ? o = "MAIN" : s === "agent-based-simulations" ? o = "SIMULATION" : o = n.toUpper(n.snakeCase(s))), s && e ? /* @__PURE__ */ f(d, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : o && m(o, t) && r ? r : i || null;
14
- }
1
+ import { jsx as t, Fragment as n } from "react/jsx-runtime";
2
+ import { Loading as l } from "../loading/index.js";
3
+ import { useAccessLogic as a } from "./logic.js";
4
+ const m = (e) => {
5
+ const { state: r } = a(e), { loading: i, granted: c, isPagePath: o } = r;
6
+ return o && i ? /* @__PURE__ */ t(l, { show: !0, position: "fixed", top: 0, left: 0, zIndex: 99999 }) : c && e.children ? /* @__PURE__ */ t(n, { children: e.children }) : e.fallback ? /* @__PURE__ */ t(n, { children: e.fallback }) : null;
7
+ };
15
8
  export {
16
- x as Access
9
+ m as Access
17
10
  };
@@ -0,0 +1,25 @@
1
+ import { useThemeProps as l } from "@mui/material";
2
+ import r from "lodash";
3
+ import { a as m } from "../../helpers-D4uXfBfO.js";
4
+ const h = (n) => {
5
+ const e = l({ props: n, name: "HCAccess" }), { pagePath: o, appRoles: c, loading: t = !1 } = e;
6
+ let { feature: s } = e;
7
+ if (o) {
8
+ const a = o.split("/").slice(1)[0] || "dashboard";
9
+ a === "dashboard" ? s = "MAIN" : a === "agent-based-simulations" ? s = "SIMULATION" : s = r.toUpper(r.snakeCase(a));
10
+ }
11
+ const p = !!(s && m(s, c)), i = { ...e, loading: t };
12
+ return {
13
+ refs: {},
14
+ state: {
15
+ ownerState: i,
16
+ loading: t,
17
+ granted: p,
18
+ isPagePath: !!o
19
+ },
20
+ actions: {}
21
+ };
22
+ };
23
+ export {
24
+ h as useAccessLogic
25
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useButtonLogic as i } from "./logic.js";
3
+ import { ButtonRoot as s } from "./styled.js";
4
+ const u = (t) => {
5
+ const { state: o, actions: r } = i(t);
6
+ return /* @__PURE__ */ n(s, { ...o.rest, onClick: r.handleClick });
7
+ };
8
+ export {
9
+ u as Button
10
+ };
@@ -0,0 +1,26 @@
1
+ import { useThemeProps as f } from "@mui/material";
2
+ const m = (c) => {
3
+ const n = f({ props: c, name: "HCButton" }), { to: t, state: i, onNavigate: r, onNavigateBack: s, onClick: e, ...p } = n, u = { ...n };
4
+ return {
5
+ refs: {},
6
+ state: { ownerState: u, rest: p },
7
+ actions: { handleClick: (o) => {
8
+ if (t !== void 0) {
9
+ if (t === "go-back") {
10
+ s == null || s();
11
+ return;
12
+ }
13
+ if (o.metaKey || o.ctrlKey || o.shiftKey) {
14
+ window.open(t, "_blank");
15
+ return;
16
+ }
17
+ r == null || r(t, { state: i });
18
+ return;
19
+ }
20
+ e == null || e(o);
21
+ } }
22
+ };
23
+ };
24
+ export {
25
+ m as useButtonLogic
26
+ };
@@ -0,0 +1,9 @@
1
+ import { styled as o } from "@mui/material";
2
+ import { B as t } from "../../Button-C5yquWAB.js";
3
+ const n = o(t, {
4
+ name: "HCButton",
5
+ slot: "root"
6
+ })({});
7
+ export {
8
+ n as ButtonRoot
9
+ };