@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
@@ -0,0 +1,156 @@
1
+ import { useThemeProps as O } from "@mui/material";
2
+ import u from "lodash";
3
+ import { useRef as V, useState as T, useEffect as I } from "react";
4
+ const _ = 2e3, H = (R) => {
5
+ const v = O({ props: R, name: "HCPropertyMapping" }), {
6
+ open: b,
7
+ data: M,
8
+ agent: i,
9
+ objectInstance: h,
10
+ catalogueInstances: l,
11
+ enableValueInput: m = !1,
12
+ onSubmit: y
13
+ } = v, k = V(null), [g, S] = T(M), [C, $] = T(
14
+ /* @__PURE__ */ new Map()
15
+ );
16
+ I(() => {
17
+ $(/* @__PURE__ */ new Map());
18
+ }, [b]), I(() => {
19
+ S(M);
20
+ }, [M]);
21
+ const w = () => {
22
+ i ? y(i, !0) : y(g);
23
+ }, x = (a) => (n) => {
24
+ i && y({ ...i, [a]: n });
25
+ }, A = (a) => {
26
+ const { name: n, value: c } = a.target;
27
+ let e = c;
28
+ n === "criticalityScore" && (e = e.replace(",", "."), e = e.replace(/[^\d.-]+/g, "")), x(n)(e);
29
+ }, d = (a, n, c, e) => (r) => {
30
+ if (!i) return;
31
+ const t = [...i.propertyInfoMap], o = t.findIndex(
32
+ (p) => p.policyKey === a && p.key === n
33
+ );
34
+ t[o] && (t.splice(o, 1, {
35
+ ...t[o],
36
+ value: r.value,
37
+ source: c ? c || "" : t[o].source,
38
+ sourceField: e !== void 0 ? e || "" : t[o].sourceField
39
+ }), y({ ...i, propertyInfoMap: t }));
40
+ }, D = (a) => () => {
41
+ const { policyKey: n, key: c, source: e, sourceField: r } = a;
42
+ let t = "";
43
+ if (e === "OBJECT")
44
+ t = u.get(
45
+ h,
46
+ `variables.${a.dataType.type}.${r}`
47
+ );
48
+ else if (e) {
49
+ const p = parseInt(String(e), 10), s = l == null ? void 0 : l.find((f) => f.id === p);
50
+ s ? t = u.get(
51
+ s.variables,
52
+ `${a.dataType.type}.${r}`
53
+ ) : console.warn(
54
+ "Catalogue instance could not be found!",
55
+ e,
56
+ l
57
+ );
58
+ }
59
+ if (!t) return;
60
+ d(n, c)({ value: t });
61
+ const o = `${u.get(i, "referenceObjectInstanceId")}:${n}:${c}`;
62
+ $((p) => {
63
+ const s = new Map(p);
64
+ return s.set(o, "Updated"), s;
65
+ }), setTimeout(() => {
66
+ $((p) => {
67
+ const s = new Map(p);
68
+ return s.set(o, "Default"), s;
69
+ });
70
+ }, _);
71
+ }, E = (a, n) => (c) => {
72
+ if (!i) return;
73
+ const e = [...i.propertyInfoMap], r = e.findIndex(
74
+ (t) => t.policyKey === a && t.key === n
75
+ );
76
+ e[r] && (e.splice(r, 1, {
77
+ ...e[r],
78
+ randomInfo: c
79
+ }), y({ ...i, propertyInfoMap: e }));
80
+ }, F = (a) => (n) => {
81
+ const c = n.target.name, e = [...g], r = e[a], t = r.propertyMappings.findIndex(
82
+ (p) => p.key === c
83
+ ), o = r.propertyMappings[t];
84
+ u.set(
85
+ e,
86
+ `${a}.propertyMappings.${t}.source`,
87
+ n.target.value
88
+ ), u.set(
89
+ e,
90
+ `${a}.propertyMappings.${t}.sourceField`,
91
+ ""
92
+ ), S(e), i && d(
93
+ r.key,
94
+ o.key,
95
+ String(n.target.value),
96
+ ""
97
+ )({ value: "" });
98
+ }, K = (a) => (n) => {
99
+ const c = n.target.name, e = [...g], r = e[a], t = r.propertyMappings.findIndex(
100
+ (s) => s.key === c
101
+ ), o = r.propertyMappings[t];
102
+ if (u.set(
103
+ e,
104
+ `${a}.propertyMappings.${t}.sourceField`,
105
+ n.target.value
106
+ ), S(e), !m || !i) return;
107
+ const p = u.get(
108
+ e,
109
+ `${a}.propertyMappings.${t}.source`
110
+ );
111
+ if (p === "OBJECT" && h) {
112
+ const s = u.get(
113
+ h.variables,
114
+ `${o.dataType.type}.${n.target.value}`
115
+ ) || "";
116
+ d(r.key, o.key, void 0, n.target.value)({
117
+ value: s
118
+ });
119
+ } else if (p && !["STATIC", "RANDOM", "SMART_RANDOM"].includes(String(p))) {
120
+ const s = l == null ? void 0 : l.find((f) => f.id === Number(p));
121
+ if (s) {
122
+ const f = u.get(
123
+ s.variables,
124
+ `${o.dataType.type}.${n.target.value}`
125
+ ) || "";
126
+ d(r.key, o.key, void 0, n.target.value)({
127
+ value: f
128
+ });
129
+ }
130
+ }
131
+ };
132
+ return {
133
+ refs: { rootRef: k },
134
+ state: {
135
+ ownerState: {
136
+ hasAgent: i !== void 0,
137
+ enableValueInput: m
138
+ },
139
+ data: g,
140
+ valueRefreshStatus: C,
141
+ sx: v.sx
142
+ },
143
+ actions: {
144
+ handleSubmit: w,
145
+ handleInputChange: A,
146
+ handleValueChange: d,
147
+ handleValueRefresh: D,
148
+ handleRandomInfoChange: E,
149
+ handleSourceChange: F,
150
+ handleSourceFieldChange: K
151
+ }
152
+ };
153
+ };
154
+ export {
155
+ H as usePropertyMappingLogic
156
+ };
@@ -0,0 +1,199 @@
1
+ import { styled as t, Dialog as i, DialogTitle as a, Box as n, Typography as p, TextField as o, IconButton as l, DialogContent as s, DialogActions as g } from "@mui/material";
2
+ import { DataGrid as y } from "@mui/x-data-grid";
3
+ const c = (e) => e !== "ownerState", C = t(i, {
4
+ name: "HCPropertyMapping",
5
+ slot: "root"
6
+ })({}), M = t(a, {
7
+ name: "HCPropertyMapping",
8
+ slot: "title"
9
+ })({
10
+ lineHeight: 1,
11
+ display: "flex",
12
+ justifyContent: "space-between"
13
+ }), m = t(n, {
14
+ name: "HCPropertyMapping",
15
+ slot: "titleContent"
16
+ })({}), u = t(p, {
17
+ name: "HCPropertyMapping",
18
+ slot: "titleHeading"
19
+ })({}), H = t(p, {
20
+ name: "HCPropertyMapping",
21
+ slot: "titleSubtitle"
22
+ })({}), f = t(n, {
23
+ name: "HCPropertyMapping",
24
+ slot: "titleAgentForm"
25
+ })({
26
+ display: "flex",
27
+ flex: 1,
28
+ alignItems: "flex-start"
29
+ }), w = t(n, {
30
+ name: "HCPropertyMapping",
31
+ slot: "titleAgentFields"
32
+ })({
33
+ display: "flex",
34
+ flexDirection: "column",
35
+ flex: 1,
36
+ minWidth: 200
37
+ }), r = {
38
+ "& .MuiInputBase-root:before": {
39
+ border: "none"
40
+ }
41
+ }, x = t(o, {
42
+ name: "HCPropertyMapping",
43
+ slot: "titleAgentNameInput"
44
+ })(r), A = t(o, {
45
+ name: "HCPropertyMapping",
46
+ slot: "titleAgentDescriptionInput"
47
+ })(r), I = t(n, {
48
+ name: "HCPropertyMapping",
49
+ slot: "titleAgentMetaRow"
50
+ })(({ theme: e }) => ({
51
+ marginLeft: e.spacing(4)
52
+ })), T = t(o, {
53
+ name: "HCPropertyMapping",
54
+ slot: "titleAgentCountInput"
55
+ })(({ theme: e }) => ({
56
+ width: 100,
57
+ marginRight: e.spacing(1)
58
+ })), h = t(o, {
59
+ name: "HCPropertyMapping",
60
+ slot: "titleAgentCriticalityInput"
61
+ })({
62
+ width: 150
63
+ }), b = t(n, {
64
+ name: "HCPropertyMapping",
65
+ slot: "titleClose"
66
+ })({
67
+ flex: 1,
68
+ textAlign: "end"
69
+ }), D = t(l, {
70
+ name: "HCPropertyMapping",
71
+ slot: "titleCloseButton"
72
+ })({}), v = t(s, {
73
+ name: "HCPropertyMapping",
74
+ slot: "content"
75
+ })({
76
+ minHeight: 300
77
+ }), R = t(n, {
78
+ name: "HCPropertyMapping",
79
+ slot: "policyCard"
80
+ })(({ theme: e }) => ({
81
+ boxShadow: e.shadows[1],
82
+ marginTop: e.spacing(0.0125),
83
+ marginBottom: e.spacing(2),
84
+ overflow: "hidden",
85
+ borderRadius: e.shape.borderRadius
86
+ })), B = t(n, {
87
+ name: "HCPropertyMapping",
88
+ slot: "policyCardHeader"
89
+ })(({ theme: e }) => ({
90
+ display: "flex",
91
+ alignItems: "center",
92
+ padding: e.spacing(2)
93
+ })), N = t(p, {
94
+ name: "HCPropertyMapping",
95
+ slot: "policyCardCatalogueNames"
96
+ })({}), F = t(n, {
97
+ name: "HCPropertyMapping",
98
+ slot: "policyCardArrow"
99
+ })(({ theme: e }) => ({
100
+ display: "inline-flex",
101
+ marginLeft: e.spacing(1),
102
+ marginRight: e.spacing(1)
103
+ })), S = t(p, {
104
+ name: "HCPropertyMapping",
105
+ slot: "policyCardPolicyName"
106
+ })(({ theme: e }) => ({
107
+ color: e.palette.text.secondary
108
+ })), G = t(y, {
109
+ name: "HCPropertyMapping",
110
+ slot: "policyDataGrid",
111
+ shouldForwardProp: c
112
+ })(({ theme: e }) => ({
113
+ border: "none",
114
+ "& .MuiDataGrid-columnHeadersInner": {
115
+ backgroundColor: e.palette.action.hover
116
+ }
117
+ })), L = t(n, {
118
+ name: "HCPropertyMapping",
119
+ slot: "nameCell"
120
+ })({
121
+ overflow: "hidden",
122
+ whiteSpace: "nowrap",
123
+ textOverflow: "ellipsis",
124
+ width: "100%"
125
+ }), V = t(p, {
126
+ name: "HCPropertyMapping",
127
+ slot: "requiredAsterisk"
128
+ })(({ theme: e }) => ({
129
+ display: "inline",
130
+ marginLeft: e.spacing(1),
131
+ color: e.palette.error.main
132
+ })), k = t(n, {
133
+ name: "HCPropertyMapping",
134
+ slot: "dataTypeCell"
135
+ })({
136
+ overflow: "hidden",
137
+ whiteSpace: "nowrap",
138
+ textOverflow: "ellipsis",
139
+ width: "100%"
140
+ }), j = t(n, {
141
+ name: "HCPropertyMapping",
142
+ slot: "valueCell"
143
+ })({
144
+ display: "flex",
145
+ justifyContent: "space-between",
146
+ alignItems: "center",
147
+ width: "100%"
148
+ }), q = t(n, {
149
+ name: "HCPropertyMapping",
150
+ slot: "valueCellInner"
151
+ })({
152
+ flex: 1
153
+ }), E = t(n, {
154
+ name: "HCPropertyMapping",
155
+ slot: "valueErrorIcon"
156
+ })(({ theme: e }) => ({
157
+ display: "inline-flex",
158
+ marginLeft: e.spacing(1)
159
+ })), O = t(n, {
160
+ name: "HCPropertyMapping",
161
+ slot: "valueUpdatedIcon"
162
+ })(({ theme: e }) => ({
163
+ display: "inline-flex",
164
+ marginRight: e.spacing(1)
165
+ })), U = t(g, {
166
+ name: "HCPropertyMapping",
167
+ slot: "actions"
168
+ })({});
169
+ export {
170
+ U as PropertyMappingActions,
171
+ v as PropertyMappingContent,
172
+ G as PropertyMappingDataGrid,
173
+ k as PropertyMappingDataTypeCell,
174
+ L as PropertyMappingNameCell,
175
+ R as PropertyMappingPolicyCard,
176
+ F as PropertyMappingPolicyCardArrow,
177
+ N as PropertyMappingPolicyCardCatalogueNames,
178
+ B as PropertyMappingPolicyCardHeader,
179
+ S as PropertyMappingPolicyCardPolicyName,
180
+ V as PropertyMappingRequiredAsterisk,
181
+ C as PropertyMappingRoot,
182
+ M as PropertyMappingTitle,
183
+ T as PropertyMappingTitleAgentCountInput,
184
+ h as PropertyMappingTitleAgentCriticalityInput,
185
+ A as PropertyMappingTitleAgentDescriptionInput,
186
+ w as PropertyMappingTitleAgentFields,
187
+ f as PropertyMappingTitleAgentForm,
188
+ I as PropertyMappingTitleAgentMetaRow,
189
+ x as PropertyMappingTitleAgentNameInput,
190
+ b as PropertyMappingTitleClose,
191
+ D as PropertyMappingTitleCloseButton,
192
+ m as PropertyMappingTitleContent,
193
+ u as PropertyMappingTitleHeading,
194
+ H as PropertyMappingTitleSubtitle,
195
+ j as PropertyMappingValueCell,
196
+ q as PropertyMappingValueCellInner,
197
+ E as PropertyMappingValueErrorIcon,
198
+ O as PropertyMappingValueUpdatedIcon
199
+ };
@@ -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
  };
@@ -3,34 +3,32 @@ import { Typography as e } from "@mui/material";
3
3
  import { FlexCol as l } from "../../../flex-col/index.js";
4
4
  import { FlexRow as i } from "../../../flex-row/index.js";
5
5
  import { Container as c, ColorBox as n } from "./styled.js";
6
- function p() {
7
- return /* @__PURE__ */ r(c, { children: /* @__PURE__ */ o(l, { children: [
8
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
9
- /* @__PURE__ */ r(n, { bgcolor: "#CF3655" }),
10
- /* @__PURE__ */ r(e, { variant: "overline", children: "> 1000 (Very High)" })
11
- ] }),
12
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
13
- /* @__PURE__ */ r(n, { bgcolor: "#FA665A" }),
14
- /* @__PURE__ */ r(e, { variant: "overline", children: "500 - 999" })
15
- ] }),
16
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
17
- /* @__PURE__ */ r(n, { bgcolor: "#FAAC3D" }),
18
- /* @__PURE__ */ r(e, { variant: "overline", children: "220 - 499" })
19
- ] }),
20
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
21
- /* @__PURE__ */ r(n, { bgcolor: "#FAE742" }),
22
- /* @__PURE__ */ r(e, { variant: "overline", children: "100 - 219" })
23
- ] }),
24
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
25
- /* @__PURE__ */ r(n, { bgcolor: "#DAED77" }),
26
- /* @__PURE__ */ r(e, { variant: "overline", children: "50 - 99" })
27
- ] }),
28
- /* @__PURE__ */ o(i, { gap: 0.5, children: [
29
- /* @__PURE__ */ r(n, { bgcolor: "#A0EE77" }),
30
- /* @__PURE__ */ r(e, { variant: "overline", children: "< 49 (Very Low)" })
31
- ] })
32
- ] }) });
33
- }
6
+ const p = () => /* @__PURE__ */ r(c, { children: /* @__PURE__ */ o(l, { children: [
7
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
8
+ /* @__PURE__ */ r(n, { bgcolor: "#CF3655" }),
9
+ /* @__PURE__ */ r(e, { variant: "overline", children: "> 1000 (Very High)" })
10
+ ] }),
11
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
12
+ /* @__PURE__ */ r(n, { bgcolor: "#FA665A" }),
13
+ /* @__PURE__ */ r(e, { variant: "overline", children: "500 - 999" })
14
+ ] }),
15
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
16
+ /* @__PURE__ */ r(n, { bgcolor: "#FAAC3D" }),
17
+ /* @__PURE__ */ r(e, { variant: "overline", children: "220 - 499" })
18
+ ] }),
19
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
20
+ /* @__PURE__ */ r(n, { bgcolor: "#FAE742" }),
21
+ /* @__PURE__ */ r(e, { variant: "overline", children: "100 - 219" })
22
+ ] }),
23
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
24
+ /* @__PURE__ */ r(n, { bgcolor: "#DAED77" }),
25
+ /* @__PURE__ */ r(e, { variant: "overline", children: "50 - 99" })
26
+ ] }),
27
+ /* @__PURE__ */ o(i, { gap: 0.5, children: [
28
+ /* @__PURE__ */ r(n, { bgcolor: "#A0EE77" }),
29
+ /* @__PURE__ */ r(e, { variant: "overline", children: "< 49 (Very Low)" })
30
+ ] })
31
+ ] }) });
34
32
  export {
35
33
  p as Legend
36
34
  };
@@ -2,15 +2,15 @@ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { Typography as c } from "@mui/material";
3
3
  import { useEffect as l } from "react";
4
4
  import { u } from "../../index.esm-BLLrbTzY.js";
5
- import { M as d } from "../../index-kCJ_Zvl8.js";
5
+ import { Map as d } from "../map/index.js";
6
6
  import { Controls as h } from "./components/controls/index.js";
7
7
  import { Legend as M } from "./components/legend/index.js";
8
8
  import { usePrrMapLogic as R } from "./logic.js";
9
9
  import { PrrMapRoot as g, PrrMapHeader as z, PrrMapContent as P } from "./styled.js";
10
- function D(t) {
11
- const { refs: o, actions: i, ownerState: e, sx: a, other: f } = R(t), { width: n, height: m, ref: p } = u();
10
+ const D = (t) => {
11
+ const { refs: o, actions: i, ownerState: e, sx: a, other: p } = R(t), { width: n, height: m, ref: f } = u();
12
12
  return l(() => (n && m && i.onMapResize(), () => {
13
- }), [n, m]), /* @__PURE__ */ s(g, { ownerState: e, sx: a, ref: p, ...f, children: [
13
+ }), [n, m]), /* @__PURE__ */ s(g, { ownerState: e, sx: a, ref: f, ...p, children: [
14
14
  /* @__PURE__ */ r(z, { ownerState: e, children: /* @__PURE__ */ r(c, { variant: "h3", children: t.title }) }),
15
15
  /* @__PURE__ */ s(P, { ownerState: e, children: [
16
16
  /* @__PURE__ */ r(
@@ -32,7 +32,7 @@ function D(t) {
32
32
  /* @__PURE__ */ r(h, { mapRef: o.mapRef.current })
33
33
  ] })
34
34
  ] });
35
- }
35
+ };
36
36
  export {
37
37
  D as PrrMap
38
38
  };