@hybridcore/ui 1.6.18 → 1.6.19

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 (53) 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/instance-hierarchy-table/styled.js +1 -1
  32. package/dist/components/sortable-list/index.js +3 -3
  33. package/dist/components/template-form/components/property-list/index.js +30 -28
  34. package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
  35. package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
  36. package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
  37. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
  38. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  39. package/dist/components/tree-select/index.js +1 -1
  40. package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
  41. package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
  42. package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
  43. package/dist/main.d.ts +28 -1
  44. package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
  45. package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
  46. package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
  47. package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
  48. package/dist/useTimeout-CM6EsHyp.js +60 -0
  49. package/package.json +1 -1
  50. package/dist/Add-Bk8R160M.js +0 -403
  51. package/dist/ButtonBase-DObmf4Q_.js +0 -886
  52. package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
  53. package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
@@ -1,5 +1,5 @@
1
1
  import "@mui/material";
2
- import { c as e, C as i, b as c, a as C, d as k } from "../../styled-DD4BkuVf.js";
2
+ import { c as e, C as i, b as c, a as C, d as k } from "../../styled-DObpn_Bi.js";
3
3
  export {
4
4
  e as ColorPickerRadio,
5
5
  i as ColorPickerRoot,
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
2
2
  import "react-confirm";
3
3
  import "@mui/material";
4
4
  import "@mui/icons-material";
5
- import { D as e } from "../../dialog-BtJhjyF5.js";
6
- import "../../Button-Cem3nbwc.js";
5
+ import { D as e } from "../../dialog-CNxZ7uox.js";
6
+ import "../../Button-BMUZn0cT.js";
7
7
  export {
8
8
  e as default
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import { createConfirmation as r } from "react-confirm";
2
- import { D as i } from "../../dialog-BtJhjyF5.js";
2
+ import { D as i } from "../../dialog-CNxZ7uox.js";
3
3
  const o = r(i);
4
4
  function f(t, n, e = {
5
5
  cancelButtonText: "Cancel",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as ke, jsx as oe } from "react/jsx-runtime";
2
- import { _ as Kt, a as A } from "../../../extends-C3382pL0.js";
2
+ import { _ as Kt, a as A } from "../../../objectWithoutPropertiesLoose-DJteAcBH.js";
3
3
  import * as V from "react";
4
4
  import { useLayoutEffect as qt, useContext as en, useRef as j, useState as te, createContext as tn, useMemo as ee, useCallback as T, Component as nn, Fragment as Ne, useEffect as It, forwardRef as un } from "react";
5
5
  import { _ as on } from "../../../setPrototypeOf-NPgp4cYc.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useDurationSelectLogic as l } from "./logic.js";
3
3
  import { DurationSelectRoot as n, DurationSelectSelect as i } from "./styled.js";
4
- import { M as c } from "../../MenuItem-BKvRGLvM.js";
4
+ import { M as c } from "../../MenuItem-BjnnhDbD.js";
5
5
  const h = (o) => {
6
6
  const { state: a, actions: r } = l(o);
7
7
  return /* @__PURE__ */ t(n, { sx: o.sx, children: /* @__PURE__ */ t(
@@ -1,5 +1,5 @@
1
1
  import { styled as t, FormControl as e } from "@mui/material";
2
- import { S as n } from "../../Select-Bfhvigsx.js";
2
+ import { S as n } from "../../Select-nL91eUH9.js";
3
3
  const a = t(e, {
4
4
  name: "HCDurationSelect",
5
5
  slot: "root"
@@ -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
  };