@hybridcore/ui 1.3.7 → 1.4.1

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 (126) hide show
  1. package/dist/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +341 -179
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  36. package/dist/components/data-security-selectors/security-level/index.js +42 -40
  37. package/dist/components/date-time-picker/index.js +18 -19
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +3 -3
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/icon-button/index.js +1 -1
  48. package/dist/components/icon-button/styled.js +0 -2
  49. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  50. package/dist/components/instance-form/components/variable/index.js +19 -0
  51. package/dist/components/instance-form/components/variables/index.js +40 -0
  52. package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
  53. package/dist/components/instance-hierarchy-table/index.js +58 -0
  54. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  55. package/dist/components/instance-table/index.js +125 -0
  56. package/dist/components/instance-table/styled.js +13 -0
  57. package/dist/components/map/helpers/ol.js +1 -1
  58. package/dist/components/map/index.js +1 -1
  59. package/dist/components/map/logic.js +1 -1
  60. package/dist/components/map/styled.js +1 -1
  61. package/dist/components/phone-input/index.js +1 -1
  62. package/dist/components/property-mapping/index.js +558 -0
  63. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  64. package/dist/components/range-selector/components/date-range/index.js +9 -0
  65. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  66. package/dist/components/range-selector/components/number-range/index.js +86 -0
  67. package/dist/components/range-selector/components/string-range/index.js +31 -0
  68. package/dist/components/range-selector/index.js +59 -0
  69. package/dist/components/search-input/index.js +4 -4
  70. package/dist/components/tabs/appleTabs.style.js +55 -0
  71. package/dist/components/tabs/index.js +93 -0
  72. package/dist/components/tabs/tab-panel.js +18 -0
  73. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  74. package/dist/components/template-form/components/property-list/index.js +72 -0
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  76. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  77. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  78. package/dist/components/template-form/components/property-list/types.js +8 -0
  79. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  80. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  81. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  83. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  84. package/dist/components/template-form/components/select-icon/index.js +186 -0
  85. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  86. package/dist/components/template-form/index.js +338 -0
  87. package/dist/components/template-property-filters/property.js +48 -46
  88. package/dist/components/tree-select/index.js +16 -15
  89. package/dist/components/tree-select/styled.js +2 -2
  90. package/dist/components/treeview-filter/index.js +8 -8
  91. package/dist/components/treeview-filter/item/index.js +1 -1
  92. package/dist/components/treeview-filter/item-label/index.js +18 -17
  93. package/dist/constants/index.js +41 -0
  94. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  95. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  96. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  97. package/dist/dialog-v5-nL5yy.js +153 -0
  98. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  99. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  100. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  101. package/dist/index-C1fczHEW.js +11042 -0
  102. package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
  103. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  104. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  105. package/dist/main.d.ts +562 -78
  106. package/dist/main.js +157 -157
  107. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  108. package/dist/property-list-form-BfP9gzSo.js +391 -0
  109. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  110. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  111. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  112. package/dist/useControlled-BYdyS7Pn.js +31 -0
  113. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  114. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  115. package/dist/utils/ontology.js +52 -30
  116. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  117. package/package.json +2 -1
  118. package/dist/DialogContent-BCYm_d1s.js +0 -864
  119. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  120. package/dist/Typography-Dg-ROiTA.js +0 -201
  121. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  122. package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
  123. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  124. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
  125. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  126. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -2,17 +2,19 @@ import { jsxs as C, Fragment as P, jsx as n } from "react/jsx-runtime";
2
2
  import T from "lodash";
3
3
  import F from "dayjs";
4
4
  import { Typography as B, Chip as j, Dialog as N, DialogTitle as S, DialogContent as W, DialogActions as Y, Button as w, InputAdornment as v, Tooltip as O } from "@mui/material";
5
- import { Container as _, Values as y, MiniButton as E } from "./components/data-management/instance-form/components/composite-list/styled.js";
5
+ import { Container as _, Values as y, MiniButton as E } from "./components/instance-form/components/composite-list/styled.js";
6
6
  import { Add as G, LockOutlined as H } from "@mui/icons-material";
7
7
  import R from "./hooks/useToggle.js";
8
8
  import { GeometryPicker as $ } from "./components/geometry-picker/index.js";
9
9
  import { PhoneInput as q } from "./components/phone-input/index.js";
10
10
  import { DateTimePicker as J } from "./components/date-time-picker/index.js";
11
- import { T as D, F as K } from "./FormControlLabel-DENNVXWL.js";
12
- import { B as b, C as Q } from "./Checkbox-BFWhj3s-.js";
13
- import { F as U, I as X } from "./FormControl-BMRUQKHh.js";
14
- import { S as Z } from "./Select-NDq3WyLt.js";
15
- import { M } from "./MenuItem-DstAFfik.js";
11
+ import { T as D } from "./TextField-D87qTh1k.js";
12
+ import { B as b } from "./Box-BPyg-Ybm.js";
13
+ import { F as K } from "./FormControlLabel-D9KFjcIx.js";
14
+ import { C as Q } from "./Checkbox-qy3cjvnb.js";
15
+ import { F as U, I as X } from "./InputLabel-CWkW8NtU.js";
16
+ import { S as Z } from "./Select-ClaBvSqf.js";
17
+ import { M } from "./MenuItem-D-INSvZa.js";
16
18
  import { useState as z } from "react";
17
19
  function ee({
18
20
  property: m,
@@ -25,27 +27,27 @@ function ee({
25
27
  var x;
26
28
  const s = R(!1), [d, g] = z(), V = (u) => {
27
29
  g(T.get(u, m.propertyId));
28
- }, k = () => {
30
+ }, p = () => {
29
31
  a([...l || [], d]), g(""), s.action.close();
30
- }, A = (u) => () => {
32
+ }, k = (u) => () => {
31
33
  if (l) {
32
- let h = [...l];
33
- h.splice(u, 1), a(h);
34
+ const r = [...l];
35
+ r.splice(u, 1), a(r);
34
36
  }
35
37
  };
36
38
  return /* @__PURE__ */ C(P, { children: [
37
39
  /* @__PURE__ */ C(_, { variant: c, children: [
38
40
  /* @__PURE__ */ n(B, { children: m.name }),
39
- /* @__PURE__ */ n(y, { children: T.isArray(l) && l.map((u, h) => {
40
- var r, t;
41
+ /* @__PURE__ */ n(y, { children: T.isArray(l) && l.map((u, r) => {
42
+ var h, t;
41
43
  return /* @__PURE__ */ n(
42
44
  j,
43
45
  {
44
- label: ((t = (r = m.dataTypeInfo) == null ? void 0 : r.innerType) == null ? void 0 : t.type) === "date" ? F(u).format("DD/MM/YYYY HH:mm:ss") : u,
46
+ label: ((t = (h = m.dataTypeInfo) == null ? void 0 : h.innerType) == null ? void 0 : t.type) === "date" ? F(u).format("DD/MM/YYYY HH:mm:ss") : u,
45
47
  size: i,
46
- onDelete: A(h)
48
+ onDelete: k(r)
47
49
  },
48
- h
50
+ r
49
51
  );
50
52
  }) }),
51
53
  /* @__PURE__ */ n(
@@ -90,7 +92,7 @@ function ee({
90
92
  children: "Cancel"
91
93
  }
92
94
  ),
93
- /* @__PURE__ */ n(w, { variant: "contained", color: "primary", onClick: k, children: "Ok" })
95
+ /* @__PURE__ */ n(w, { variant: "contained", color: "primary", onClick: p, children: "Ok" })
94
96
  ] })
95
97
  ]
96
98
  }
@@ -108,23 +110,23 @@ function ne({
108
110
  // keyAuth,
109
111
  onChange: d
110
112
  }) {
111
- var r;
113
+ var h;
112
114
  const g = (t) => {
113
- const f = t.target.value.split(",").map((p) => p.trimStart());
115
+ const f = t.target.value.split(",").map((A) => A.trimStart());
114
116
  d({
115
117
  [e.propertyId]: f
116
118
  });
117
119
  }, V = (t) => {
118
- const { name: o, type: f, checked: p, value: L } = t.target;
120
+ const { name: o, type: f, checked: A, value: L } = t.target;
119
121
  let I = L;
120
122
  e.type === "double" && (I = I.replace(",", "."), I = I.replace(/[^\d.-]+/g, "")), d({
121
- [o]: f === "checkbox" ? p : I
123
+ [o]: f === "checkbox" ? A : I
122
124
  });
123
- }, k = (t) => {
125
+ }, p = (t) => {
124
126
  d({
125
127
  [e.propertyId]: t
126
128
  });
127
- }, A = (t) => {
129
+ }, k = (t) => {
128
130
  d({
129
131
  [e.propertyId]: t.target.value
130
132
  });
@@ -136,7 +138,7 @@ function ne({
136
138
  d({
137
139
  [t]: o
138
140
  });
139
- }, h = (t) => (o) => {
141
+ }, r = (t) => (o) => {
140
142
  d({
141
143
  [t]: o
142
144
  });
@@ -182,7 +184,7 @@ function ne({
182
184
  variant: c,
183
185
  size: i,
184
186
  name: e.propertyId,
185
- onChange: k
187
+ onChange: p
186
188
  }
187
189
  ) });
188
190
  }
@@ -225,7 +227,7 @@ function ne({
225
227
  ) });
226
228
  if (e.type === "enum") {
227
229
  let t = [];
228
- return (r = e.dataTypeInfo) != null && r.enumValues && (t = e.dataTypeInfo.enumValues), /* @__PURE__ */ C(
230
+ return (h = e.dataTypeInfo) != null && h.enumValues && (t = e.dataTypeInfo.enumValues), /* @__PURE__ */ C(
229
231
  U,
230
232
  {
231
233
  fullWidth: !0,
@@ -242,7 +244,7 @@ function ne({
242
244
  labelId: `${e.propertyId}-label`,
243
245
  id: e.propertyId,
244
246
  value: l ?? "",
245
- onChange: A,
247
+ onChange: k,
246
248
  children: t.map((o, f) => /* @__PURE__ */ n(M, { value: o, children: o }, f))
247
249
  }
248
250
  )
@@ -276,7 +278,7 @@ function ne({
276
278
  variant: c,
277
279
  size: i,
278
280
  mapboxAccessToken: m,
279
- onChange: h(e.propertyId)
281
+ onChange: r(e.propertyId)
280
282
  }
281
283
  ) }) : /* @__PURE__ */ n(P, {});
282
284
  }
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import f from "./components/map/logic.js";
4
4
  import a from "./components/map/styled.js";
5
- import './assets/index.css';const l = (e, i) => {
5
+ import './assets/index2.css';const l = (e, i) => {
6
6
  var t, r;
7
7
  const { refs: s, action: m } = f(e);
8
8
  return o.useImperativeHandle(i, () => m), /* @__PURE__ */ n(
@@ -1,5 +1,5 @@
1
- import { g as s } from "./useThemeProps-DeftUmqJ.js";
2
- import { g as e } from "./styled-cPJbqF0E.js";
1
+ import { g as s } from "./useThemeProps-uYx_RkOH.js";
2
+ import { g as e } from "./styled-LNCprp4n.js";
3
3
  function n(t) {
4
4
  return e("MuiListItemIcon", t);
5
5
  }