@hybridcore/ui 1.5.80 → 1.5.83

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 (98) hide show
  1. package/dist/{AccordionDetails-mpRYHtGq.js → AccordionDetails-DhriPVPP.js} +9 -9
  2. package/dist/{Add-Cjs72ewI.js → Add-CMz4N2zT.js} +36 -35
  3. package/dist/{AxisRendererY-CFo972D5.js → AxisRendererY-kADUad00.js} +2464 -3363
  4. package/dist/{Box-SSMZuKnS.js → Box-B1AVyJ_s.js} +17 -16
  5. package/dist/{Button-jy67CcTH.js → Button-eqWvpDuh.js} +12 -11
  6. package/dist/{ButtonBase-CgQC8DUB.js → ButtonBase-DsX-jMQJ.js} +4 -4
  7. package/dist/{CardContent-CCq4R1KS.js → CardContent-DsYqqPeJ.js} +4 -4
  8. package/dist/{Checkbox-B0P8LhCl.js → Checkbox-CrU2hpWB.js} +13 -12
  9. package/dist/ColumnSeries-BTcqshjB.js +399 -0
  10. package/dist/DateAxis-CMum47iz.js +924 -0
  11. package/dist/{Delete-6rKk6pCT.js → Delete-86TO0fMo.js} +1 -1
  12. package/dist/{DialogContent-WDuguvBY.js → DialogContent-CqTojymQ.js} +10 -9
  13. package/dist/{FormControlLabel-BNT5EI0b.js → FormControlLabel-DzNokgFD.js} +8 -7
  14. package/dist/{IconButton-DekcZv4i.js → IconButton-DJ-31-Fd.js} +11 -10
  15. package/dist/{Input-BAbDr3Tk.js → Input-B7ry6o4t.js} +23 -22
  16. package/dist/{InputAdornment-BAVRrRts.js → InputAdornment-B7qEA4kN.js} +6 -5
  17. package/dist/{InputLabel-ClDXuWBr.js → InputLabel-rrSJo8M_.js} +10 -9
  18. package/dist/LineSeries-CfcpoYla.js +549 -0
  19. package/dist/{List-CNeRnfGL.js → List-DOD5kSk3.js} +4 -4
  20. package/dist/{ListItem-N_dSd02S.js → ListItem-r8PbsvCz.js} +6 -6
  21. package/dist/{MenuItem-Lcjh1XlV.js → MenuItem-C6qlUyV3.js} +7 -7
  22. package/dist/{Modal-Csc9jNOg.js → Modal-CkcFEpHa.js} +8 -8
  23. package/dist/{OutlinedInput-De2keFJK.js → OutlinedInput-BDK6qOwW.js} +6 -6
  24. package/dist/{Paper-DRRYGupP.js → Paper-CjqLScHA.js} +5 -5
  25. package/dist/{Select-BQ4C15bt.js → Select-jjAc5JX1.js} +102 -101
  26. package/dist/{Tabs-DqdkJU6b.js → Tabs-Cn42Z5QI.js} +8 -8
  27. package/dist/{TextField-Db_pNPbv.js → TextField-Bf46COnQ.js} +24 -23
  28. package/dist/{Typography-CLq43OVQ.js → Typography-D1t7XuLN.js} +6 -5
  29. package/dist/components/card/index.js +6 -6
  30. package/dist/components/card/styled.js +1 -1
  31. package/dist/components/charts/candlestick/logic.js +133 -526
  32. package/dist/components/charts/highlighting-line-data/logic.js +152 -695
  33. package/dist/components/collapsible-card/style.js +3 -3
  34. package/dist/components/confirm/dialog.js +3 -3
  35. package/dist/components/confirm/index.js +1 -1
  36. package/dist/components/container/index.js +7 -7
  37. package/dist/components/context-menu/index.js +10 -10
  38. package/dist/components/flex-col/index.js +10 -0
  39. package/dist/components/flex-row/index.js +10 -0
  40. package/dist/components/geometry-picker/index.js +3 -3
  41. package/dist/components/icon-button/index.js +1 -1
  42. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  43. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +93 -0
  44. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +87 -0
  45. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +1 -0
  46. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +105 -0
  47. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +20551 -0
  48. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +56 -0
  49. package/dist/components/instance-form/components/composite-matrix/index.js +52 -0
  50. package/dist/components/instance-form/components/composite-matrix/styled.js +69 -0
  51. package/dist/components/instance-form/components/variable/index.js +10 -9
  52. package/dist/components/instance-form/components/variables/index.js +1 -1
  53. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  54. package/dist/components/map/styled.js +1 -1
  55. package/dist/components/metric-card/MetricChart.js +525 -0
  56. package/dist/components/metric-card/index.js +88 -45
  57. package/dist/components/metric-card/logic.js +82 -37
  58. package/dist/components/metric-card/styled.js +109 -90
  59. package/dist/components/paginated-list/styled.js +3 -3
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  62. package/dist/components/range-selector/components/date-range/index.js +1 -1
  63. package/dist/components/range-selector/index.js +1 -1
  64. package/dist/components/search-input/index.js +4 -4
  65. package/dist/components/tabs/index.js +1 -1
  66. package/dist/components/template-filters/components/tab-panel/index.js +1 -1
  67. package/dist/components/template-form/components/property-list/index.js +7 -7
  68. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  69. package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
  70. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  71. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  72. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  73. package/dist/components/template-form/index.js +5 -5
  74. package/dist/components/template-property-filters/property.js +5 -5
  75. package/dist/components/tree-select/index.js +5 -5
  76. package/dist/components/treeview-filter/item-label/index.js +3 -3
  77. package/dist/{createStyled-CUatW1r9.js → createStyled-BGx1I94c.js} +1 -1
  78. package/dist/{createSvgIcon-CsckVnG-.js → createSvgIcon-DLPYMuH1.js} +25 -24
  79. package/dist/{createSvgIcon-CBoAEepv.js → createSvgIcon-OuwzpcaC.js} +15 -14
  80. package/dist/{createTheme-DVoJnXAT.js → createTheme-CNnKNxwL.js} +1 -1
  81. package/dist/createTheme-CyC5HawC.js +879 -0
  82. package/dist/{dialog-D6oTCUrm.js → dialog-BE4D6swf.js} +6 -6
  83. package/dist/{exactProp-H1i70prd.js → exactProp-cjT0t_Pt.js} +2 -2
  84. package/dist/{extendSxProp-BmK2hLmq.js → extendSxProp-FEpqY5_S.js} +1 -1
  85. package/dist/index-DMSHuq6l.js +688 -0
  86. package/dist/{index-BmlSd3mA.js → index-MMaYBAn0.js} +138 -128
  87. package/dist/{index-R_b1ETBe.js → index-NNOChRJ7.js} +25 -24
  88. package/dist/{listItemTextClasses-CC7nbQWN.js → listItemTextClasses-CNjn41Of.js} +2 -2
  89. package/dist/main.d.ts +48 -14
  90. package/dist/main.js +47 -43
  91. package/dist/{property-list-form-B7SCqmD0.js → property-list-form-BvnaooEW.js} +13 -13
  92. package/dist/{styled-DkqItiLo.js → styled-B8ugzvji.js} +2 -2
  93. package/dist/{useTheme-GN5Dc3mG.js → useTheme-C15Eq8KG.js} +1 -1
  94. package/dist/{useTheme-B6oa3v5u.js → useTheme-D-uii9iX.js} +2 -2
  95. package/dist/{useThemeProps-BlXpIqSE.js → useThemeProps-DRP1dikX.js} +3 -3
  96. package/dist/{utils-BRsEqTye.js → utils-CsOZUsQj.js} +2 -2
  97. package/package.json +2 -1
  98. package/dist/createTheme-DrgvKMA_.js +0 -1563
@@ -0,0 +1,56 @@
1
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
+ import { TableContainer as T, Paper as b, Table as u, TableHead as v, TableRow as g, TableCell as e, TableBody as x } from "@mui/material";
3
+ const j = ({
4
+ data: m,
5
+ rowLabels: o,
6
+ colLabels: h,
7
+ renderCell: p,
8
+ onCellClick: i,
9
+ showHeaderCornerCell: s = !0
10
+ }) => {
11
+ const f = (n, t, a) => () => {
12
+ i == null || i(n, t, a);
13
+ };
14
+ return /* @__PURE__ */ r(
15
+ T,
16
+ {
17
+ component: b,
18
+ variant: "outlined",
19
+ sx: { width: "100%", "*": { fontSize: 11 } },
20
+ children: /* @__PURE__ */ d(u, { size: "small", children: [
21
+ h && h.length > 0 && /* @__PURE__ */ r(v, { children: /* @__PURE__ */ d(g, { children: [
22
+ s && /* @__PURE__ */ r(e, { sx: { fontWeight: 600, backgroundColor: "action.hover" } }),
23
+ h.map((n, t) => /* @__PURE__ */ r(
24
+ e,
25
+ {
26
+ sx: { fontWeight: 600, backgroundColor: "action.hover" },
27
+ align: "center",
28
+ children: n
29
+ },
30
+ t
31
+ ))
32
+ ] }) }),
33
+ /* @__PURE__ */ r(x, { children: m.map((n, t) => /* @__PURE__ */ d(g, { children: [
34
+ o && o[t] !== void 0 && /* @__PURE__ */ r(e, { sx: { fontWeight: 600, backgroundColor: "action.hover" }, children: o[t] }),
35
+ n.map((a, c) => /* @__PURE__ */ r(
36
+ e,
37
+ {
38
+ align: "center",
39
+ onClick: i ? f(a, t, c) : void 0,
40
+ sx: {
41
+ cursor: i ? "pointer" : "default",
42
+ px: 1.5,
43
+ py: 0.75
44
+ },
45
+ children: p ? p(a, t, c) : String(a)
46
+ },
47
+ c
48
+ ))
49
+ ] }, t)) })
50
+ ] })
51
+ }
52
+ );
53
+ };
54
+ export {
55
+ j as MatrixTable
56
+ };
@@ -0,0 +1,52 @@
1
+ import { jsxs as i, Fragment as l, jsx as t } from "react/jsx-runtime";
2
+ import { Edit as p, Add as f } from "@mui/icons-material";
3
+ import { Typography as u } from "@mui/material";
4
+ import { useState as g } from "react";
5
+ import h from "./components/editor/index.js";
6
+ import { Container as x, Values as C, MiniButton as b } from "./styled.js";
7
+ import w from "../../../../hooks/useToggle.js";
8
+ const y = {
9
+ columnLabels: [],
10
+ rowLabels: [],
11
+ data: []
12
+ };
13
+ function L({
14
+ property: r,
15
+ value: o,
16
+ variant: s = "standard",
17
+ onChange: d
18
+ }) {
19
+ const n = w(!1), [e, m] = g(
20
+ o || y
21
+ ), a = o && o.data, c = () => {
22
+ d(e), n.action.close();
23
+ };
24
+ return /* @__PURE__ */ i(l, { children: [
25
+ /* @__PURE__ */ i(x, { variant: s, children: [
26
+ /* @__PURE__ */ t(u, { children: r.name }),
27
+ /* @__PURE__ */ t(C, { children: a ? JSON.stringify(o.data) : null }),
28
+ /* @__PURE__ */ t(
29
+ b,
30
+ {
31
+ startIcon: a ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(f, {}),
32
+ variant: "text",
33
+ onClick: n.action.open,
34
+ children: a ? "Edit" : "Add"
35
+ }
36
+ )
37
+ ] }),
38
+ /* @__PURE__ */ t(
39
+ h,
40
+ {
41
+ data: e,
42
+ onChange: m,
43
+ open: n.state.isOpen,
44
+ onClose: n.action.close,
45
+ onSubmit: c
46
+ }
47
+ )
48
+ ] });
49
+ }
50
+ export {
51
+ L as default
52
+ };
@@ -0,0 +1,69 @@
1
+ import { styled as t, Box as n, Button as r } from "@mui/material";
2
+ const p = t(n)(({ theme: o, variant: i }) => ({
3
+ position: "relative",
4
+ width: "100%",
5
+ height: "100%",
6
+ ...i === "outlined" ? {
7
+ border: "1px solid",
8
+ padding: "2.5px 60px 2.5px 2.5px",
9
+ borderRadius: o.spacing(0.5),
10
+ "& .MuiButton-root": {
11
+ margin: "7px 8px"
12
+ }
13
+ } : {
14
+ borderBottom: "1px solid",
15
+ paddingBottom: o.spacing(0.5)
16
+ },
17
+ borderColor: o.palette.action.disabled,
18
+ "&:hover": {
19
+ borderColor: o.palette.action.active
20
+ }
21
+ })), d = t(n)(({ theme: o }) => ({
22
+ minHeight: 33,
23
+ paddingTop: o.spacing(1),
24
+ paddingBottom: o.spacing(1),
25
+ overflow: "hidden",
26
+ whiteSpace: "nowrap",
27
+ textOverflow: "ellipsis",
28
+ "& .MuiChip-root": {
29
+ marginRight: o.spacing(0.5),
30
+ marginTop: o.spacing(0.5)
31
+ },
32
+ "& .MuiChip-root:first-of-type": {
33
+ marginLeft: 0
34
+ }
35
+ })), e = t(r)(({ theme: o, variant: i }) => ({
36
+ position: "absolute",
37
+ top: 0,
38
+ right: 0,
39
+ fontSize: 10,
40
+ padding: "3px 8px",
41
+ minWidth: "auto",
42
+ boxShadow: o.shadows[1],
43
+ textTransform: "none",
44
+ borderRadius: 13,
45
+ marginLeft: o.spacing(0.5),
46
+ "& .MuiButton-startIcon": {
47
+ marginRight: 0.25,
48
+ "& > :nth-of-type(1)": {
49
+ fontSize: 14
50
+ }
51
+ },
52
+ ...i === "contained" && {
53
+ "&:hover": {
54
+ backgroundColor: o.palette.grey[300],
55
+ boxShadow: o.shadows[1]
56
+ }
57
+ },
58
+ ...i === "text" && {
59
+ backgroundColor: o.palette.common.white,
60
+ "&:hover": {
61
+ backgroundColor: o.palette.grey[300]
62
+ }
63
+ }
64
+ }));
65
+ export {
66
+ p as Container,
67
+ e as MiniButton,
68
+ d as Values
69
+ };
@@ -3,19 +3,20 @@ import "@mui/icons-material";
3
3
  import "@mui/material";
4
4
  import "dayjs";
5
5
  import "lodash";
6
- import { V as j } from "../../../../index-BmlSd3mA.js";
6
+ import { V as k } from "../../../../index-MMaYBAn0.js";
7
7
  import "../../../date-time-picker/index.js";
8
8
  import "../../../geometry-picker/index.js";
9
9
  import "../../../phone-input/index.js";
10
10
  import "../../../conditional-wrapper/index.js";
11
11
  import "../TopLabelWrapper.js";
12
- import "../../../../Box-SSMZuKnS.js";
13
- import "../../../../TextField-Db_pNPbv.js";
14
- import "../../../../FormControlLabel-BNT5EI0b.js";
15
- import "../../../../Checkbox-B0P8LhCl.js";
16
- import "../../../../InputLabel-ClDXuWBr.js";
17
- import "../../../../Select-BQ4C15bt.js";
18
- import "../../../../MenuItem-Lcjh1XlV.js";
12
+ import "../composite-matrix/index.js";
13
+ import "../../../../Box-B1AVyJ_s.js";
14
+ import "../../../../TextField-Bf46COnQ.js";
15
+ import "../../../../FormControlLabel-DzNokgFD.js";
16
+ import "../../../../Checkbox-CrU2hpWB.js";
17
+ import "../../../../InputLabel-rrSJo8M_.js";
18
+ import "../../../../Select-jjAc5JX1.js";
19
+ import "../../../../MenuItem-C6qlUyV3.js";
19
20
  export {
20
- j as default
21
+ k as default
21
22
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, Fragment as I, jsxs as _ } from "react/jsx-runtime";
2
2
  import b from "react";
3
- import { V as g } from "../../../../index-BmlSd3mA.js";
3
+ import { V as g } from "../../../../index-MMaYBAn0.js";
4
4
  import p from "lodash";
5
5
  import { Box as i } from "@mui/material";
6
6
  function C({
@@ -1,5 +1,5 @@
1
1
  import { styled as r } from "@mui/material";
2
- import { A as e, a as i, b as n } from "../../AccordionDetails-mpRYHtGq.js";
2
+ import { A as e, a as i, b as n } from "../../AccordionDetails-DhriPVPP.js";
3
3
  const c = r(e)(({ theme: o }) => ({
4
4
  borderBottom: `1px solid ${o.palette.divider}`,
5
5
  "&:before": {
@@ -1,5 +1,5 @@
1
1
  import { S as c, F as t, a, C as i, I as r, T as f } from "../../Text-Cl1H4b0h.js";
2
- import { c as w } from "../../createStyled-CUatW1r9.js";
2
+ import { c as w } from "../../createStyled-BGx1I94c.js";
3
3
  const d = w(), s = 0.4, g = d("div")(
4
4
  ({ theme: n, cssPosition: o = "absolute" }) => ({
5
5
  position: o,