@hybridcore/ui 1.1.2 → 1.2.0

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 (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +119 -48
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +140 -0
  57. package/dist/main.js +1 -1
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -3,10 +3,11 @@ import f from "react";
3
3
  import { TreeViewFilter as _ } from "../treeview-filter/index.js";
4
4
  import r from "lodash";
5
5
  import { flattenNestedTemplates as b } from "../../utils/ontology.js";
6
- import { F as A, I as E } from "../../FormControl-BiAFm76F.js";
7
- import { S as M, M as j } from "../../Select-DxpxZbJp.js";
8
- import { D as B, a as k, b as w, B as L } from "../../DialogContent-2aPOjKE7.js";
9
- const J = ({
6
+ import { F as A, I as E } from "../../FormControl-Cj5nc-Nv.js";
7
+ import { S as M } from "../../Select-BGt6e73I.js";
8
+ import { M as j } from "../../MenuItem-BejUFNIP.js";
9
+ import { D as B, a as k, b as w, B as L } from "../../DialogContent-MMUsECN2.js";
10
+ const P = ({
10
11
  data: h,
11
12
  label: s,
12
13
  selected: a,
@@ -14,22 +15,22 @@ const J = ({
14
15
  idKey: o = "id",
15
16
  onChange: v
16
17
  }) => {
17
- const [C, u] = f.useState(!1), [S, m] = f.useState([]), d = b(h), l = f.useMemo(() => r.isArray(a) ? a.map(
18
- (e) => d.find((t) => String(r.get(t, o)) === e)
19
- ) : [], [a, d]), D = (e, t) => {
18
+ const [C, m] = f.useState(!1), [S, u] = f.useState([]), i = b(h), l = f.useMemo(() => r.isArray(a) ? a.map(
19
+ (e) => i.find((t) => String(r.get(t, o)) === e)
20
+ ) : [], [a, i]), D = (e, t) => {
20
21
  v(e, t);
21
22
  }, I = () => {
22
- u(!0), F();
23
+ m(!0), F();
23
24
  }, g = () => {
24
- u(!1);
25
+ m(!1);
25
26
  }, T = (e, t) => {
26
- m(t);
27
+ u(t);
27
28
  }, F = () => {
28
29
  let e = [];
29
30
  l.length > 0 && l.forEach((t) => {
30
- const i = t == null ? void 0 : t.parentKeys, O = d.filter((c) => i == null ? void 0 : i.includes(c.templateKey)).map((c) => String(r.get(c, o)));
31
+ const d = t == null ? void 0 : t.parentKeys, O = i.filter((c) => d == null ? void 0 : d.includes(c.templateKey)).map((c) => String(r.get(c, o)));
31
32
  e.push(...O);
32
- }), m(e);
33
+ }), u(e);
33
34
  };
34
35
  return /* @__PURE__ */ p(W, { children: [
35
36
  /* @__PURE__ */ p(A, { variant: "standard", fullWidth: !0, children: [
@@ -66,5 +67,5 @@ const J = ({
66
67
  ] });
67
68
  };
68
69
  export {
69
- J as TreeSelect
70
+ P as TreeSelect
70
71
  };