@hybridcore/ui 1.1.3 → 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 +3 -3
  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 +138 -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,7 +3,7 @@ import "@mui/material";
3
3
  import "./styled.js";
4
4
  import "@mui/icons-material";
5
5
  import "../../../../../hooks/useToggle.js";
6
- import { C as l } from "../../../../../index-Bw_m9ult.js";
6
+ import { C as l } from "../../../../../index-DHnXB0CB.js";
7
7
  import "react";
8
8
  import "lodash";
9
9
  import "dayjs";
@@ -1,15 +1,17 @@
1
1
  import "react/jsx-runtime";
2
2
  import "lodash";
3
3
  import "dayjs";
4
- import { V as x } from "../../../../../index-Bw_m9ult.js";
4
+ import { V as b } from "../../../../../index-DHnXB0CB.js";
5
5
  import "@mui/material";
6
6
  import "@mui/icons-material";
7
7
  import "../../../../geometry-picker/index.js";
8
8
  import "../../../../phone-input/index.js";
9
9
  import "../../../../date-time-picker/index.js";
10
- import "../../../../../Checkbox-DostZSwR.js";
11
- import "../../../../../FormControl-BiAFm76F.js";
12
- import "../../../../../Select-DxpxZbJp.js";
10
+ import "../../../../../FormControlLabel-j_atSYQA.js";
11
+ import "../../../../../Checkbox-DP6_qp1v.js";
12
+ import "../../../../../FormControl-Cj5nc-Nv.js";
13
+ import "../../../../../Select-BGt6e73I.js";
14
+ import "../../../../../MenuItem-BejUFNIP.js";
13
15
  export {
14
- x as default
16
+ b as default
15
17
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as i } from "react/jsx-runtime";
2
2
  import l from "react";
3
- import { V as m } from "../../../../../index-Bw_m9ult.js";
3
+ import { V as m } from "../../../../../index-DHnXB0CB.js";
4
4
  import d from "lodash";
5
5
  function h({
6
6
  template: o,
@@ -2,7 +2,7 @@ import { jsxs as l, Fragment as p, jsx as o } from "react/jsx-runtime";
2
2
  import { Button as a, Box as f } from "@mui/material";
3
3
  import u from "../map/index.js";
4
4
  import C from "../parser/index.js";
5
- import { g as y, c as g } from "../../../ol-DXmSLlWv.js";
5
+ import { g as y, c as g } from "../../../ol-q6vTiF_t.js";
6
6
  import { useState as h } from "react";
7
7
  import { Add as P } from "@mui/icons-material";
8
8
  import { parse as v, convert as x } from "../../map/helpers/wkt.js";
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as e, Fragment as x } from "react/jsx-runtime";
2
2
  import E, { useState as F, useEffect as T } from "react";
3
3
  import { Dialog as w, DialogContent as K, DialogActions as j, Button as c, Box as O } from "@mui/material";
4
4
  import C from "../map/index.js";
5
- import { c as P, a as R } from "../../../ol-DXmSLlWv.js";
5
+ import { c as P, a as R } from "../../../ol-q6vTiF_t.js";
6
6
  import { parse as S } from "../../map/helpers/wkt.js";
7
7
  import _ from "lodash";
8
8
  import { t as B } from "../../../Source-CnCcu5UP.js";
@@ -3,7 +3,7 @@ import D, { useState as k } from "react";
3
3
  import { Dialog as R, DialogContent as K, Box as t, Typography as x, DialogActions as F, Button as d } from "@mui/material";
4
4
  import P from "../map/index.js";
5
5
  import b from "../parser/index.js";
6
- import { c as _ } from "../../../ol-DXmSLlWv.js";
6
+ import { c as _ } from "../../../ol-q6vTiF_t.js";
7
7
  import { Button as l } from "../styled.js";
8
8
  import { HorizontalRule as j, ShowChart as O, CircleOutlined as I } from "@mui/icons-material";
9
9
  import L from "./map-overlay.js";
@@ -8,8 +8,8 @@ import y from "./geometry/index.js";
8
8
  import b from "./kml/index.js";
9
9
  import g from "./wkt/index.js";
10
10
  import { IconButton as s, Dialog as E, DialogTitle as W, DialogContent as K } from "@mui/material";
11
- import { F as L, I as z, a as G } from "../../FormControl-BiAFm76F.js";
12
- import { I as w } from "../../Input-Bf5G3tFN.js";
11
+ import { F as L, I as z, a as G } from "../../FormControl-Cj5nc-Nv.js";
12
+ import { I as w } from "../../Input-BY_yKOrF.js";
13
13
  const J = ({
14
14
  label: c,
15
15
  mapboxAccessToken: r,
@@ -3,7 +3,7 @@ import { useState as i, useEffect as b } from "react";
3
3
  import k from "./select-input-method.js";
4
4
  import { Box as c, TextField as M, Button as d } from "@mui/material";
5
5
  import { validate as C } from "../../map/helpers/kml.js";
6
- import { b as L, c as T } from "../../../ol-DXmSLlWv.js";
6
+ import { b as L, c as T } from "../../../ol-q6vTiF_t.js";
7
7
  function W({ onCancel: m, onSubmit: a }) {
8
8
  const [t, l] = i(), [o, f] = i(), [s, n] = i(), p = (e) => {
9
9
  l(e);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
2
  import n from "react";
3
- import { O as u } from "../../../index-IvOfmM1F.js";
3
+ import { O as u } from "../../../index-JrtqxUdI.js";
4
4
  import d from "./logic.js";
5
5
  import { Box as m } from "@mui/material";
6
6
  import { ContextMenu as p } from "../../context-menu/index.js";
@@ -1,6 +1,6 @@
1
1
  import k from "react";
2
2
  import { createMapboxLayer as Xe } from "../../map/helpers/mapbox.js";
3
- import { I as $e, s as ke, n as ge, e as ve, C as fe, f as v, V as se, F as L, P as me, p as Ze, h as ze, i as _e, R as Ge, j as ye, k as J, M as D, l as Je, m as Qe, o as et, q as tt, L as z, r as it, t as Ie, u as Re, G as st, v as nt, b as Fe, a as rt } from "../../../ol-DXmSLlWv.js";
3
+ import { I as $e, s as ke, n as ge, e as ve, C as fe, f as v, V as se, F as L, P as me, p as Ze, h as ze, i as _e, R as Ge, j as ye, k as J, M as D, l as Je, m as Qe, o as et, q as tt, L as z, r as it, t as Ie, u as Re, G as st, v as nt, b as Fe, a as rt } from "../../../ol-q6vTiF_t.js";
4
4
  import { T as Q, g as F, c as ot, e as Te, B as ne, E as ee, a as at, F as Ae, t as ht, s as be, b as ct, l as q, u as oe } from "../../../has-9_asnBxn.js";
5
5
  import { c as xe } from "../../../Text-BT5kPHOo.js";
6
6
  import { defaultStyle as lt, selectStyleFunction as dt, markerStyle as ut } from "./style.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { VerticalButton as m, MiniButton as c } from "./styled.js";
3
- import { I as e } from "../../IconButton-CQJ8wZE8.js";
3
+ import { I as e } from "../../IconButton-2FRFauye.js";
4
4
  const a = ({
5
5
  variant: i = "default",
6
6
  startIcon: f,
@@ -1,9 +1,9 @@
1
1
  import "lodash";
2
2
  import "../../../Source-CnCcu5UP.js";
3
- import { x as K, c as n, D as T, E as i, b as p, a as u, z as M, y as L, d as l, w as k, B as W, g as f, J as g, A as x, H as C } from "../../../ol-DXmSLlWv.js";
3
+ import { x as K, c as n, D as T, E as i, b as p, a as u, z as M, y as L, d as l, w as k, B as W, g as f, J as g, A as x, H as C } from "../../../ol-q6vTiF_t.js";
4
4
  import "ol";
5
5
  import "./kml.js";
6
- import "../../../styled-C43K9x7T.js";
6
+ import "../styled.js";
7
7
  import "./wkt.js";
8
8
  import "../../../Text-BT5kPHOo.js";
9
9
  export {
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "./logic.js";
4
- import "../../styled-C43K9x7T.js";
5
- import { O as a } from "../../index-IvOfmM1F.js";
4
+ import "./styled.js";
5
+ import { O as a } from "../../index-JrtqxUdI.js";
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import a from "react";
2
- import { d as R } from "../../ol-DXmSLlWv.js";
2
+ import { d as R } from "../../ol-q6vTiF_t.js";
3
3
  import { a as _ } from "../../Source-CnCcu5UP.js";
4
4
  function U({
5
5
  id: l = "map",
@@ -1,8 +1,91 @@
1
- import "../../Text-BT5kPHOo.js";
2
- import { M as l, d as s, a as d, b as o } from "../../styled-C43K9x7T.js";
1
+ import { S as r, F as t, a, C as s, I as c, T as f } from "../../Text-BT5kPHOo.js";
2
+ import { s as d } from "../../styled-CHMAYxVs.js";
3
+ const i = 0.4, g = d("div")(
4
+ ({ theme: o, cssPosition: n = "absolute" }) => ({
5
+ position: n,
6
+ width: "100%",
7
+ height: "100%",
8
+ // minHeight: 500,
9
+ backgroundColor: o.palette.background.paper,
10
+ "& .ol-zoom": {
11
+ backgroundColor: "transparent",
12
+ "& button": {
13
+ borderRadius: "50%",
14
+ fontSize: 20,
15
+ width: 34,
16
+ height: 34,
17
+ marginTop: 3
18
+ }
19
+ }
20
+ })
21
+ ), p = new r({
22
+ fill: new t({
23
+ color: "rgba(255, 255, 255, 0.2)"
24
+ }),
25
+ stroke: new a({
26
+ color: "#2daae1",
27
+ width: 2
28
+ }),
29
+ image: new s({
30
+ radius: 7,
31
+ fill: new t({
32
+ color: "#2daae1"
33
+ })
34
+ })
35
+ }), w = new r({
36
+ fill: new t({
37
+ color: "rgba(255, 255, 255, 0.4)"
38
+ }),
39
+ stroke: new a({
40
+ color: "#0f70b7",
41
+ width: 2
42
+ }),
43
+ image: new s({
44
+ radius: 7,
45
+ fill: new t({
46
+ color: "#0f70b7"
47
+ })
48
+ })
49
+ }), b = (o) => {
50
+ const n = o.get("icon");
51
+ if (n)
52
+ return new r({
53
+ image: new c({
54
+ anchor: [0.5, 0.5],
55
+ src: n,
56
+ scale: i
57
+ }),
58
+ zIndex: 2
59
+ });
60
+ const e = o.get("features");
61
+ if (e) {
62
+ const l = e.length > 1 ? e[0].get("clusterIcon") : e[0].get("icon");
63
+ if (l)
64
+ return new r({
65
+ image: new c({
66
+ anchor: [0.5, 0.5],
67
+ src: l,
68
+ scale: i
69
+ }),
70
+ ...e.length > 1 && {
71
+ text: new f({
72
+ text: e.length.toString(),
73
+ font: "14px sans-serif",
74
+ fill: new t({
75
+ color: "#fff"
76
+ })
77
+ })
78
+ },
79
+ zIndex: 2
80
+ });
81
+ }
82
+ return w;
83
+ }, m = {
84
+ Container: g
85
+ };
3
86
  export {
4
- l as default,
5
- s as defaultStyle,
6
- d as selectStyleFunction,
7
- o as selectedStyle
87
+ m as default,
88
+ p as defaultStyle,
89
+ b as selectStyleFunction,
90
+ w as selectedStyle
8
91
  };
@@ -2,9 +2,9 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import k, { useState as O } from "react";
3
3
  import { Close as m, Search as u } from "@mui/icons-material";
4
4
  import { FilledInput as b, Input as R } from "@mui/material";
5
- import { F as _, I as j, a as g } from "../../FormControl-BiAFm76F.js";
6
- import { O as v } from "../../OutlinedInput-BEVE8VZQ.js";
7
- import { I as t } from "../../IconButton-CQJ8wZE8.js";
5
+ import { F as _, I as j, a as g } from "../../FormControl-Cj5nc-Nv.js";
6
+ import { O as v } from "../../OutlinedInput-CnzESIDi.js";
7
+ import { I as t } from "../../IconButton-2FRFauye.js";
8
8
  const z = ({
9
9
  defaultValue: x = "",
10
10
  label: C = "Search",
@@ -0,0 +1,78 @@
1
+ import { jsx as s, Fragment as c } from "react/jsx-runtime";
2
+ import a from "lodash";
3
+ import { CollapsibleCard as g } from "../collapsible-card/index.js";
4
+ import p from "./property.js";
5
+ const K = ({
6
+ values: f,
7
+ templates: d,
8
+ onChange: u
9
+ }) => {
10
+ const m = (t) => (r) => {
11
+ if (t) {
12
+ let e = f.find((l) => l.templateKey === t);
13
+ if (e) {
14
+ const l = a.keys(r)[0];
15
+ let i = e.filters.findIndex(
16
+ (o) => o.fieldName === l
17
+ );
18
+ const n = a.get(r, l);
19
+ a.values(n).filter((o) => o !== "").length === 0 && i !== -1 ? e.filters.splice(i, 1) : i !== -1 ? e.filters[i] = {
20
+ fieldName: l,
21
+ value: n
22
+ } : e.filters.push({
23
+ fieldName: l,
24
+ value: n
25
+ });
26
+ }
27
+ u(f);
28
+ } else console.warn("Template could not be found!");
29
+ };
30
+ if (f.length === 1) {
31
+ const t = f[0], r = d.get(t.templateKey);
32
+ return /* @__PURE__ */ s(c, { children: r == null ? void 0 : r.properties.map((e, l) => {
33
+ let i = {};
34
+ const n = t.filters.find(
35
+ (o) => o.fieldName === e.propertyId
36
+ );
37
+ return n && (i = n.value), /* @__PURE__ */ s(
38
+ p,
39
+ {
40
+ property: e,
41
+ value: i,
42
+ size: "small",
43
+ onChange: m(r == null ? void 0 : r.templateKey)
44
+ },
45
+ l
46
+ );
47
+ }) });
48
+ }
49
+ return f.map((t, r) => {
50
+ const e = d.get(t.templateKey);
51
+ return /* @__PURE__ */ s(
52
+ g,
53
+ {
54
+ header: e == null ? void 0 : e.name,
55
+ content: /* @__PURE__ */ s(c, { children: e == null ? void 0 : e.properties.map((l, i) => {
56
+ let n = {};
57
+ const o = t.filters.find(
58
+ (h) => h.fieldName === l.propertyId
59
+ );
60
+ return o && (n = o.value), /* @__PURE__ */ s(
61
+ p,
62
+ {
63
+ property: l,
64
+ value: n,
65
+ size: "small",
66
+ onChange: m(e == null ? void 0 : e.templateKey)
67
+ },
68
+ i
69
+ );
70
+ }) })
71
+ },
72
+ r
73
+ );
74
+ });
75
+ };
76
+ export {
77
+ K as TemplatePropertyFilters
78
+ };