@hybridcore/ui 1.6.18 → 1.6.20

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 (57) hide show
  1. package/dist/{AccordionSummary-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
  2. package/dist/Add-CB4mPrke.js +77 -0
  3. package/dist/Alert-BsT46Tgd.js +334 -0
  4. package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
  5. package/dist/ButtonBase-DG5J0YgP.js +823 -0
  6. package/dist/Delete-ofipLwkd.js +23 -0
  7. package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
  8. package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
  9. package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
  10. package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
  11. package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
  12. package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
  13. package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
  14. package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
  15. package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
  16. package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
  17. package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
  18. package/dist/components/button/styled.js +1 -1
  19. package/dist/components/charts/forecast-cone/index.js +108 -48
  20. package/dist/components/charts/forecast-cone/logic.js +271 -191
  21. package/dist/components/charts/forecast-cone/styled.js +26 -5
  22. package/dist/components/collapsible-card/index.js +2 -2
  23. package/dist/components/collapsible-card/styled.js +1 -1
  24. package/dist/components/color-picker/index.js +5 -5
  25. package/dist/components/color-picker/styled.js +1 -1
  26. package/dist/components/confirm/dialog.js +2 -2
  27. package/dist/components/confirm/index.js +1 -1
  28. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  29. package/dist/components/duration-select/index.js +1 -1
  30. package/dist/components/duration-select/styled.js +1 -1
  31. package/dist/components/geometry-picker/index.js +95 -81
  32. package/dist/components/geometry-picker/logic.js +58 -41
  33. package/dist/components/geometry-picker/map/logic.js +446 -448
  34. package/dist/components/geometry-picker/styled.js +62 -40
  35. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  36. package/dist/components/sortable-list/index.js +3 -3
  37. package/dist/components/template-form/components/property-list/index.js +30 -28
  38. package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
  39. package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
  40. package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
  41. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
  42. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  43. package/dist/components/tree-select/index.js +1 -1
  44. package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
  45. package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
  46. package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
  47. package/dist/main.d.ts +29 -1
  48. package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
  49. package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
  50. package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
  51. package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
  52. package/dist/useTimeout-CM6EsHyp.js +60 -0
  53. package/package.json +1 -1
  54. package/dist/Add-Bk8R160M.js +0 -403
  55. package/dist/ButtonBase-DObmf4Q_.js +0 -886
  56. package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
  57. package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
@@ -1,8 +1,8 @@
1
- import { styled as o, Box as n, FormLabel as i, Button as r, FormControl as a, InputLabel as c, Input as m, OutlinedInput as l, FilledInput as s, InputAdornment as d, IconButton as p, Dialog as y, DialogTitle as k, DialogContent as u } from "@mui/material";
2
- const G = (e) => e !== "ownerState", g = o(n, {
1
+ import { styled as o, Box as n, FormLabel as a, Button as r, FormControl as c, InputLabel as m, Input as l, OutlinedInput as s, FilledInput as d, InputAdornment as p, IconButton as y, Dialog as k, DialogTitle as g, DialogContent as u } from "@mui/material";
2
+ const i = (e) => e !== "ownerState", G = o(n, {
3
3
  name: "HCGeometryPicker",
4
4
  slot: "root"
5
- })({}), C = o(i, {
5
+ })({}), C = o(a, {
6
6
  name: "HCGeometryPicker",
7
7
  slot: "topLabel"
8
8
  })(({ theme: e }) => ({
@@ -10,25 +10,46 @@ const G = (e) => e !== "ownerState", g = o(n, {
10
10
  marginBottom: e.spacing(0.5)
11
11
  })), b = o(n, {
12
12
  name: "HCGeometryPicker",
13
- slot: "container"
13
+ slot: "header"
14
14
  })(({ theme: e }) => ({
15
- position: "relative",
16
- paddingTop: e.spacing(1),
17
- width: "100%"
15
+ display: "flex",
16
+ alignItems: "center",
17
+ justifyContent: "space-between",
18
+ gap: e.spacing(1),
19
+ marginBottom: e.spacing(0.5),
20
+ minHeight: 28,
21
+ "& > .MuiFormLabel-root": {
22
+ marginBottom: 0
23
+ }
18
24
  })), H = o(n, {
25
+ name: "HCGeometryPicker",
26
+ slot: "container",
27
+ shouldForwardProp: i
28
+ })(({ ownerState: e, theme: t }) => ({
29
+ position: "relative",
30
+ width: "100%",
31
+ paddingTop: e.labelPosition === "top" ? 0 : t.spacing(1)
32
+ })), f = o(n, {
19
33
  name: "HCGeometryPicker",
20
34
  slot: "actions",
21
- shouldForwardProp: G
35
+ shouldForwardProp: i
22
36
  })(({ ownerState: e, theme: t }) => ({
23
- position: "absolute",
24
- top: 0,
25
- right: 0,
26
- zIndex: 9,
27
- ...e.variant === "outlined" && {
28
- padding: t.spacing(0.25),
29
- top: t.spacing(-0.75),
30
- right: t.spacing(1),
31
- background: t.palette.background.default
37
+ display: "flex",
38
+ alignItems: "center",
39
+ ...e.labelPosition === "top" ? {
40
+ flexWrap: "wrap",
41
+ justifyContent: "flex-end"
42
+ } : {
43
+ position: "absolute",
44
+ top: 0,
45
+ right: 0,
46
+ zIndex: 9,
47
+ ...e.variant === "outlined" && {
48
+ padding: t.spacing(0.25),
49
+ top: t.spacing(-0.75),
50
+ right: t.spacing(1),
51
+ background: t.palette.background.default
52
+ }
32
53
  }
33
54
  })), I = o(r, {
34
55
  name: "HCGeometryPicker",
@@ -53,31 +74,31 @@ const G = (e) => e !== "ownerState", g = o(n, {
53
74
  boxShadow: e.shadows[1]
54
75
  }
55
76
  }
56
- })), B = o(a, {
77
+ })), x = o(c, {
57
78
  name: "HCGeometryPicker",
58
79
  slot: "formControl"
59
- })({}), f = o(c, {
80
+ })({}), B = o(m, {
60
81
  name: "HCGeometryPicker",
61
82
  slot: "inputLabel"
62
- })({}), x = o(m, {
83
+ })({}), h = o(l, {
63
84
  name: "HCGeometryPicker",
64
85
  slot: "input"
65
- })({}), S = o(l, {
86
+ })({}), w = o(s, {
66
87
  name: "HCGeometryPicker",
67
88
  slot: "input"
68
- })({}), T = o(s, {
89
+ })({}), L = o(d, {
69
90
  name: "HCGeometryPicker",
70
91
  slot: "input"
71
- })({}), h = o(d, {
92
+ })({}), T = o(p, {
72
93
  name: "HCGeometryPicker",
73
94
  slot: "endAdornment"
74
- })({}), w = o(p, {
95
+ })({}), A = o(y, {
75
96
  name: "HCGeometryPicker",
76
97
  slot: "endAdornmentButton"
77
- })({}), A = o(y, {
98
+ })({}), F = o(k, {
78
99
  name: "HCGeometryPicker",
79
100
  slot: "dialog"
80
- })({}), L = o(k, {
101
+ })({}), S = o(g, {
81
102
  name: "HCGeometryPicker",
82
103
  slot: "dialogTitle"
83
104
  })({}), v = o(u, {
@@ -89,7 +110,7 @@ const G = (e) => e !== "ownerState", g = o(n, {
89
110
  })(({ theme: e }) => ({
90
111
  textTransform: "none",
91
112
  marginTop: e.spacing(1)
92
- })), F = o(n, {
113
+ })), M = o(n, {
93
114
  name: "HCGeometryPicker",
94
115
  slot: "geometryMapOverlay"
95
116
  })(({ theme: e }) => ({
@@ -97,20 +118,21 @@ const G = (e) => e !== "ownerState", g = o(n, {
97
118
  }));
98
119
  export {
99
120
  I as GeometryPickerActionButton,
100
- H as GeometryPickerActions,
101
- b as GeometryPickerContainer,
121
+ f as GeometryPickerActions,
122
+ H as GeometryPickerContainer,
102
123
  D as GeometryPickerCoordinateSubmit,
103
- A as GeometryPickerDialog,
124
+ F as GeometryPickerDialog,
104
125
  v as GeometryPickerDialogContent,
105
- L as GeometryPickerDialogTitle,
106
- h as GeometryPickerEndAdornment,
107
- w as GeometryPickerEndAdornmentButton,
108
- B as GeometryPickerFormControl,
109
- F as GeometryPickerGeometryMapOverlay,
110
- T as GeometryPickerInputFilled,
111
- f as GeometryPickerInputLabel,
112
- S as GeometryPickerInputOutlined,
113
- x as GeometryPickerInputStandard,
114
- g as GeometryPickerRoot,
126
+ S as GeometryPickerDialogTitle,
127
+ T as GeometryPickerEndAdornment,
128
+ A as GeometryPickerEndAdornmentButton,
129
+ x as GeometryPickerFormControl,
130
+ M as GeometryPickerGeometryMapOverlay,
131
+ b as GeometryPickerHeader,
132
+ L as GeometryPickerInputFilled,
133
+ B as GeometryPickerInputLabel,
134
+ w as GeometryPickerInputOutlined,
135
+ h as GeometryPickerInputStandard,
136
+ G as GeometryPickerRoot,
115
137
  C as GeometryPickerTopLabel
116
138
  };
@@ -1,5 +1,5 @@
1
1
  import { styled as a, Box as n, Typography as o, Chip as r } from "@mui/material";
2
- import { A as t, a as c, b as i } from "../../AccordionSummary-DUtr16g6.js";
2
+ import { A as t, a as c, b as i } from "../../AccordionSummary-c6-Buzbq.js";
3
3
  const s = (e) => e !== "ownerState", l = a(n, {
4
4
  name: "HCInstanceHierarchyTable",
5
5
  slot: "root",
@@ -7,11 +7,11 @@ import * as gn from "react";
7
7
  import mn from "react";
8
8
  import { useSortableListLogic as bn } from "./logic.js";
9
9
  import { SortableListRoot as vn, SortableListItem as yn } from "./styled.js";
10
- import { a as Me, _ as wn } from "../../extends-C3382pL0.js";
10
+ import { a as Me, _ as wn } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
11
11
  import { P as z } from "../../index-CblbdqjE.js";
12
12
  import { c as En } from "../../clsx-OuTLNxxd.js";
13
- import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../generateUtilityClasses-Cc-owZ4J.js";
14
- import { T as We } from "../../Typography-D3X-Y5fh.js";
13
+ import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../styled-Ckq8ALHh.js";
14
+ import { T as We } from "../../Typography-B_LKrxyI.js";
15
15
  function xn(n) {
16
16
  return Dn("MuiCardHeader", n);
17
17
  }
@@ -1,41 +1,42 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { DataGrid as d } from "@mui/x-data-grid";
3
- import { A as n, a as s, d as m } from "../../../../Add-Bk8R160M.js";
4
- import p from "./property-list-columns.js";
5
- import c from "./property-list-form.js";
6
- import u from "./property-list-logic.js";
7
- import { B as y } from "../../../../TextField-Ca9ykixI.js";
8
- import { T as h } from "../../../../Typography-D3X-Y5fh.js";
9
- import { B as f } from "../../../../Button-Cem3nbwc.js";
10
- import { a as g, b, c as P } from "../../../../dialog-BtJhjyF5.js";
11
- const T = (t) => {
3
+ import { A as n, d as m } from "../../../../Add-CB4mPrke.js";
4
+ import s from "./property-list-columns.js";
5
+ import p from "./property-list-form.js";
6
+ import c from "./property-list-logic.js";
7
+ import { B as u } from "../../../../TextField-Db63_GNb.js";
8
+ import { T as y } from "../../../../Typography-B_LKrxyI.js";
9
+ import { A as h } from "../../../../Alert-BsT46Tgd.js";
10
+ import { B as f } from "../../../../Button-BMUZn0cT.js";
11
+ import { a as g, b, c as I } from "../../../../dialog-CNxZ7uox.js";
12
+ const v = (e) => {
12
13
  var l;
13
- const { state: r, action: o } = u(t);
14
- return /* @__PURE__ */ i(y, { children: [
15
- /* @__PURE__ */ e(h, { variant: "h6", marginY: 2, children: "Properties" }),
16
- t.list.length > 0 ? /* @__PURE__ */ e(
14
+ const { state: r, action: o } = c(e);
15
+ return /* @__PURE__ */ i(u, { children: [
16
+ /* @__PURE__ */ t(y, { variant: "h6", marginY: 2, children: "Properties" }),
17
+ e.list.length > 0 ? /* @__PURE__ */ t(
17
18
  d,
18
19
  {
19
- rows: t.list,
20
- columns: p({
21
- templateId: t.templateId,
20
+ rows: e.list,
21
+ columns: s({
22
+ templateId: e.templateId,
22
23
  onEdit: o.handleOnEditClick,
23
24
  onDelete: o.handleOnDeleteClick
24
25
  }),
25
26
  getRowId: (a) => a.id || a.propertyId,
26
27
  autoHeight: !0
27
28
  }
28
- ) : /* @__PURE__ */ i(n, { severity: "info", children: [
29
- /* @__PURE__ */ e(s, { children: "No Property Added!" }),
29
+ ) : /* @__PURE__ */ i(h, { severity: "info", children: [
30
+ /* @__PURE__ */ t(n, { children: "No Property Added!" }),
30
31
  "Add least one property before save the template!"
31
32
  ] }),
32
- /* @__PURE__ */ e(
33
+ /* @__PURE__ */ t(
33
34
  f,
34
35
  {
35
36
  color: "primary",
36
37
  onClick: o.handleOnAddClick,
37
38
  sx: { mt: 2 },
38
- startIcon: /* @__PURE__ */ e(m, {}),
39
+ startIcon: /* @__PURE__ */ t(m, {}),
39
40
  children: "Add Property"
40
41
  }
41
42
  ),
@@ -50,14 +51,15 @@ const T = (t) => {
50
51
  maxWidth: "sm",
51
52
  scroll: "body",
52
53
  children: [
53
- /* @__PURE__ */ e(b, { id: "alert-dialog-title", children: r.propertyForm.title }),
54
- /* @__PURE__ */ e(P, { className: "pb-30", children: /* @__PURE__ */ e(
55
- c,
54
+ /* @__PURE__ */ t(b, { id: "alert-dialog-title", children: r.propertyForm.title }),
55
+ /* @__PURE__ */ t(I, { className: "pb-30", children: /* @__PURE__ */ t(
56
+ p,
56
57
  {
57
- inputVariant: t.inputVariant,
58
- labelPosition: t.labelPosition,
58
+ inputVariant: e.inputVariant,
59
+ labelPosition: e.labelPosition,
60
+ templateId: e.templateId,
59
61
  defaultValues: r.propertyForm.defaultValues,
60
- disablePropertyId: t.disablePropertyId && r.propertyForm.type === "edit" && !!((l = r.propertyForm.defaultValues) != null && l.id),
62
+ disablePropertyId: e.disablePropertyId && r.propertyForm.type === "edit" && !!((l = r.propertyForm.defaultValues) != null && l.id),
61
63
  onSubmit: o.handleSubmit,
62
64
  onCancel: o.dialog.close
63
65
  }
@@ -68,5 +70,5 @@ const T = (t) => {
68
70
  ] });
69
71
  };
70
72
  export {
71
- T as PropertyList
73
+ v as PropertyList
72
74
  };
@@ -1,7 +1,8 @@
1
- import { jsxs as d, jsx as r, Fragment as s } from "react/jsx-runtime";
2
- import { I as p, d as u, a as b } from "../../../../Delete-CVJ6FeDn.js";
3
- import { T as l } from "../../../../Typography-D3X-Y5fh.js";
4
- const v = (o) => [
1
+ import { jsxs as i, jsx as o, Fragment as p } from "react/jsx-runtime";
2
+ import { d as u, a as w } from "../../../../Delete-ofipLwkd.js";
3
+ import { T as l } from "../../../../Typography-B_LKrxyI.js";
4
+ import { I as s } from "../../../../IconButton-SJfF1cr9.js";
5
+ const y = (d) => [
5
6
  { field: "name", headerName: "Name", flex: 1 },
6
7
  { field: "propertyId", headerName: "Property ID", flex: 1 },
7
8
  {
@@ -11,20 +12,20 @@ const v = (o) => [
11
12
  renderCell: (t) => {
12
13
  var n, m, f, h;
13
14
  const { dataTypeInfo: e, defaultValue: a } = t.row;
14
- let i = t.value;
15
- return e != null && e.datePattern && (i += ` ${e.datePattern}`), e != null && e.coordinateFormat && (i += ` ${e.coordinateFormat}`), e != null && e.enumValues && (i += ` ${e.enumValues.join(",")}`), a && (i += ` ${a}`), /* @__PURE__ */ d("div", { className: "MuiDataGrid-cellContent", title: i, children: [
15
+ let r = t.value;
16
+ return e != null && e.datePattern && (r += ` ${e.datePattern}`), e != null && e.coordinateFormat && (r += ` ${e.coordinateFormat}`), e != null && e.enumValues && (r += ` ${e.enumValues.join(",")}`), a && (r += ` ${a}`), /* @__PURE__ */ i("div", { className: "MuiDataGrid-cellContent", title: r, children: [
16
17
  t.value,
17
- ((n = t.row.dataTypeInfo) == null ? void 0 : n.datePattern) && /* @__PURE__ */ d(l, { variant: "caption", ml: 1, children: [
18
+ ((n = t.row.dataTypeInfo) == null ? void 0 : n.datePattern) && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
18
19
  "(",
19
20
  (m = t.row.dataTypeInfo) == null ? void 0 : m.datePattern,
20
21
  ")"
21
22
  ] }),
22
- ((f = t.row.dataTypeInfo) == null ? void 0 : f.coordinateFormat) && /* @__PURE__ */ d(l, { variant: "caption", ml: 1, children: [
23
+ ((f = t.row.dataTypeInfo) == null ? void 0 : f.coordinateFormat) && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
23
24
  "(",
24
25
  (h = t.row.dataTypeInfo) == null ? void 0 : h.coordinateFormat,
25
26
  ")"
26
27
  ] }),
27
- t.row.defaultValue !== null && t.row.defaultValue !== "" && /* @__PURE__ */ d(l, { variant: "caption", ml: 1, children: [
28
+ t.row.defaultValue !== null && t.row.defaultValue !== "" && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
28
29
  "(",
29
30
  t.row.defaultValue,
30
31
  ")"
@@ -38,7 +39,7 @@ const v = (o) => [
38
39
  width: 120,
39
40
  renderCell: (t) => {
40
41
  var e, a;
41
- return /* @__PURE__ */ r(
42
+ return /* @__PURE__ */ o(
42
43
  "div",
43
44
  {
44
45
  className: "MuiDataGrid-cellContent",
@@ -97,28 +98,28 @@ const v = (o) => [
97
98
  sortable: !1,
98
99
  filterable: !1,
99
100
  renderCell: (t) => {
100
- const { inheritedFrom: e } = t.row;
101
- return !e || !e.templateId || e.templateId === o.templateId ? /* @__PURE__ */ d(s, { children: [
102
- /* @__PURE__ */ r(
103
- p,
101
+ const { inheritedFrom: e } = t.row, a = !!(e != null && e.templateId) && e.templateId !== d.templateId;
102
+ return /* @__PURE__ */ i(p, { children: [
103
+ /* @__PURE__ */ o(
104
+ s,
104
105
  {
105
106
  size: "medium",
106
- onClick: () => o.onEdit(t.row),
107
- children: /* @__PURE__ */ r(u, { color: "primary" })
107
+ onClick: () => d.onEdit(t.row),
108
+ children: /* @__PURE__ */ o(u, { color: "primary" })
108
109
  }
109
110
  ),
110
- /* @__PURE__ */ r(
111
- p,
111
+ !a && /* @__PURE__ */ o(
112
+ s,
112
113
  {
113
114
  size: "medium",
114
- onClick: () => o.onDelete(t.row),
115
- children: /* @__PURE__ */ r(b, {})
115
+ onClick: () => d.onDelete(t.row),
116
+ children: /* @__PURE__ */ o(w, {})
116
117
  }
117
118
  )
118
- ] }) : /* @__PURE__ */ r(s, {});
119
+ ] });
119
120
  }
120
121
  }
121
122
  ];
122
123
  export {
123
- v as default
124
+ y as default
124
125
  };