@hybridcore/ui 1.6.0 → 1.6.1

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 (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -1,23 +1,18 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { useMemo as p, useState as g } from "react";
3
- import { TreeViewFilter as h } from "../../../treeview-filter/index.js";
2
+ import { useMemo as p, useState as h } from "react";
3
+ import { TreeViewFilter as u } from "../../../treeview-filter/index.js";
4
4
  import { getNestedChildrenFromMap as y } from "../../../../utils/ontology.js";
5
- const O = ({
6
- templates: r,
7
- filters: a,
8
- defaultExpanded: d = [],
9
- onChange: s
10
- }) => {
11
- const m = p(() => y(r), [r]), f = p(
12
- () => a.map((n) => n.templateKey),
13
- [a]
14
- ), [c, i] = g(d);
5
+ const w = (d) => {
6
+ const { templates: a, filters: s, defaultExpanded: f = [], onChange: r } = d, m = p(() => y(a), [a]), c = p(
7
+ () => s.map((n) => n.templateKey),
8
+ [s]
9
+ ), [g, i] = h(f);
15
10
  return /* @__PURE__ */ x(
16
- h,
11
+ u,
17
12
  {
18
13
  data: m,
19
14
  onChange: (n, o) => {
20
- let e = [...a];
15
+ const e = [...s];
21
16
  if (o)
22
17
  e.push({
23
18
  templateKey: n,
@@ -29,11 +24,11 @@ const O = ({
29
24
  const t = e.findIndex((l) => l.templateKey === n);
30
25
  t !== -1 && e.splice(t, 1);
31
26
  }
32
- s && s(e);
27
+ r && r(e);
33
28
  },
34
29
  idKey: "templateKey",
35
- selected: f,
36
- expanded: c,
30
+ selected: c,
31
+ expanded: g,
37
32
  onExpansionToggle: (n, o, e) => {
38
33
  i(e ? (t) => [
39
34
  ...t.filter((l) => l !== o),
@@ -44,5 +39,5 @@ const O = ({
44
39
  );
45
40
  };
46
41
  export {
47
- O as Filter
42
+ w as Filter
48
43
  };
@@ -1,27 +1,19 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { B as t } from "../../../../Box-p6OtTUEo.js";
3
- function p(i) {
4
- const { children: r, value: a, index: e, ...n } = i;
2
+ import { TabPanelRoot as t, TabPanelInner as i } from "../../styled.js";
3
+ const p = (n) => {
4
+ const { children: r, value: a, index: e, ...o } = n;
5
5
  return /* @__PURE__ */ l(
6
- "div",
6
+ t,
7
7
  {
8
8
  role: "tabpanel",
9
9
  hidden: a !== e,
10
10
  id: `simple-tabpanel-${e}`,
11
11
  "aria-labelledby": `simple-tab-${e}`,
12
- ...n,
13
- children: a === e && /* @__PURE__ */ l(
14
- t,
15
- {
16
- sx: {
17
- py: 1
18
- },
19
- children: r
20
- }
21
- )
12
+ ...o,
13
+ children: a === e && /* @__PURE__ */ l(i, { children: r })
22
14
  }
23
15
  );
24
- }
16
+ };
25
17
  export {
26
- p as default
18
+ p as TabPanel
27
19
  };
@@ -1,39 +1,31 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { Box as i, Tabs as p, Tab as b } from "@mui/material";
3
- import { useState as c } from "react";
4
- import d from "./components/tab-panel/index.js";
5
- import { Filter as h } from "./components/filter/index.js";
6
- const g = ({
7
- tabs: a
8
- }) => {
9
- const [o, l] = c(0), n = (t, e) => {
10
- l(e);
11
- }, m = (t) => ({
12
- id: `template-filter-tab-${t}`,
13
- "aria-controls": `template-filter-tabpanel-${t}`
14
- });
15
- return /* @__PURE__ */ s(i, { sx: { width: "100%" }, children: [
16
- /* @__PURE__ */ r(i, { sx: { borderBottom: 1, borderColor: "divider" }, children: /* @__PURE__ */ r(
1
+ import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
+ import { Filter as m } from "./components/filter/index.js";
3
+ import { TabPanel as b } from "./components/tab-panel/index.js";
4
+ import { useTemplateFiltersLogic as c } from "./logic.js";
5
+ import { TemplateFiltersRoot as T, TabsContainer as h, StyledTabs as p, StyledTab as d } from "./styled.js";
6
+ const x = (t) => {
7
+ const { state: o, actions: r } = c(t), { ownerState: n, activeTab: i } = o;
8
+ return /* @__PURE__ */ s(T, { ownerState: n, sx: t.sx, children: [
9
+ /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(
17
10
  p,
18
11
  {
19
12
  variant: "fullWidth",
20
- value: o,
21
- onChange: n,
13
+ value: i,
14
+ onChange: r.handleTabChange,
22
15
  "aria-label": "Filters panel",
23
- sx: {
24
- minHeight: 42,
25
- "& .MuiButtonBase-root": {
26
- padding: "8px 17px",
27
- textTransform: "none",
28
- minHeight: 42
29
- }
30
- },
31
- children: a.map((t, e) => /* @__PURE__ */ r(b, { label: t.label, ...m(e) }, e))
16
+ children: t.tabs.map((l, e) => /* @__PURE__ */ a(
17
+ d,
18
+ {
19
+ label: l.label,
20
+ ...r.getTabA11yProps(e)
21
+ },
22
+ e
23
+ ))
32
24
  }
33
25
  ) }),
34
- a.map((t, e) => /* @__PURE__ */ r(d, { value: o, index: e, children: /* @__PURE__ */ r(h, { ...t }) }, e))
26
+ t.tabs.map((l, e) => /* @__PURE__ */ a(b, { value: i, index: e, children: /* @__PURE__ */ a(m, { ...l }) }, e))
35
27
  ] });
36
28
  };
37
29
  export {
38
- g as TemplateFilters
30
+ x as TemplateFilters
39
31
  };
@@ -0,0 +1,18 @@
1
+ import { useThemeProps as p } from "@mui/material";
2
+ import { useState as l } from "react";
3
+ const b = (t) => {
4
+ const a = p({ props: t, name: "HCTemplateFilters" }), [o, s] = l(0), r = { ...a };
5
+ return {
6
+ refs: {},
7
+ state: { ownerState: r, activeTab: o },
8
+ actions: { handleTabChange: (e, n) => {
9
+ s(n);
10
+ }, getTabA11yProps: (e) => ({
11
+ id: `template-filter-tab-${e}`,
12
+ "aria-controls": `template-filter-tabpanel-${e}`
13
+ }) }
14
+ };
15
+ };
16
+ export {
17
+ b as useTemplateFiltersLogic
18
+ };
@@ -1 +1,44 @@
1
-
1
+ import { styled as e, Box as o, Tabs as a, Tab as n } from "@mui/material";
2
+ const s = (t) => t !== "ownerState", r = e(o, {
3
+ name: "HCTemplateFilters",
4
+ slot: "root",
5
+ shouldForwardProp: s
6
+ })({
7
+ width: "100%"
8
+ }), i = e(o, {
9
+ name: "HCTemplateFilters",
10
+ slot: "tabsContainer"
11
+ })(({ theme: t }) => ({
12
+ borderBottom: "1px solid",
13
+ borderColor: t.palette.divider
14
+ })), p = e(a, {
15
+ name: "HCTemplateFilters",
16
+ slot: "tabs"
17
+ })({
18
+ minHeight: 42,
19
+ "& .MuiButtonBase-root": {
20
+ padding: "8px 17px",
21
+ textTransform: "none",
22
+ minHeight: 42
23
+ }
24
+ }), m = e(n, {
25
+ name: "HCTemplateFilters",
26
+ slot: "tab"
27
+ })({}), d = e("div", {
28
+ name: "HCTemplateFilters",
29
+ slot: "tabPanel"
30
+ })({}), T = e(o, {
31
+ name: "HCTemplateFilters",
32
+ slot: "tabPanelInner"
33
+ })(({ theme: t }) => ({
34
+ paddingTop: t.spacing(1),
35
+ paddingBottom: t.spacing(1)
36
+ }));
37
+ export {
38
+ m as StyledTab,
39
+ p as StyledTabs,
40
+ T as TabPanelInner,
41
+ d as TabPanelRoot,
42
+ i as TabsContainer,
43
+ r as TemplateFiltersRoot
44
+ };
@@ -1,14 +1,14 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { DataGrid as d } from "@mui/x-data-grid";
3
- import { A as n, a as m, d as s } from "../../../../Add-DJLrrVHm.js";
3
+ import { A as n, a as m, d as s } from "../../../../Add-DuVVJeQU.js";
4
4
  import p from "./property-list-columns.js";
5
- import { a as c } from "../../../../property-list-form-zZQfpR0X.js";
5
+ import { a as c } from "../../../../property-list-form-DL_dEoNn.js";
6
6
  import u from "./property-list-logic.js";
7
- import { B as f } from "../../../../Box-p6OtTUEo.js";
8
- import { T as y } from "../../../../Typography-CxbneZy_.js";
9
- import { B as h } from "../../../../Button-CvE2gnly.js";
10
- import { D as g, a as b } from "../../../../DialogContent-B3nbEbuv.js";
11
- import { D } from "../../../../dialog-DcwXug9J.js";
7
+ import { B as f } from "../../../../MenuItem-DrE50M_p.js";
8
+ import { T as y } from "../../../../Typography-B-Z5Y0Xq.js";
9
+ import { B as h } from "../../../../Modal-DlB6GH-f.js";
10
+ import { D as g, a as b } from "../../../../DialogContent-CGJ7alb8.js";
11
+ import { a as A } from "../../../../dialog-cf4HUXXl.js";
12
12
  function v(t) {
13
13
  var a;
14
14
  const { state: o, action: r } = u(t);
@@ -51,7 +51,7 @@ function v(t) {
51
51
  maxWidth: "sm",
52
52
  scroll: "body",
53
53
  children: [
54
- /* @__PURE__ */ e(D, { id: "alert-dialog-title", children: o.propertyForm.title }),
54
+ /* @__PURE__ */ e(A, { id: "alert-dialog-title", children: o.propertyForm.title }),
55
55
  /* @__PURE__ */ e(b, { className: "pb-30", children: /* @__PURE__ */ e(
56
56
  c,
57
57
  {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as r, Fragment as s } from "react/jsx-runtime";
2
- import { d as u, a as b } from "../../../../Delete-CW0UZv1m.js";
3
- import { T as l } from "../../../../Typography-CxbneZy_.js";
4
- import { I as p } from "../../../../IconButton-CHwRQF-g.js";
2
+ import { d as u, a as b } from "../../../../Delete-fBLhTHbF.js";
3
+ import { T as l } from "../../../../Typography-B-Z5Y0Xq.js";
4
+ import { I as p } from "../../../../IconButton-_opV1iNK.js";
5
5
  const y = (o) => [
6
6
  { field: "name", headerName: "Name", flex: 1 },
7
7
  { field: "propertyId", headerName: "Property ID", flex: 1 },
@@ -1,16 +1,14 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "lodash";
4
- import { a as b } from "../../../../property-list-form-zZQfpR0X.js";
4
+ import { a as u } from "../../../../property-list-form-DL_dEoNn.js";
5
5
  import "../../../../constants/index.js";
6
- import "../../../../TextField-1yCesIbH.js";
7
- import "../../../../FormControl-BLbrq4C7.js";
8
- import "../../../../Select-BgYwkZgI.js";
9
- import "../../../../MenuItem-xZx_w7zA.js";
10
- import "../../../../FormControlLabel-C8SPv14J.js";
11
- import "../../../../Checkbox-CWRMFTBp.js";
12
- import "../../../../Box-p6OtTUEo.js";
13
- import "../../../../Button-CvE2gnly.js";
6
+ import "../../../../TextField-DSDIEEKu.js";
7
+ import "../../../../FormControl-BCurCxRj.js";
8
+ import "../../../../InputLabel-rEwwnD4_.js";
9
+ import "../../../../MenuItem-DrE50M_p.js";
10
+ import "../../../../FormControlLabel-BkRfrhNy.js";
11
+ import "../../../../Modal-DlB6GH-f.js";
14
12
  export {
15
- b as default
13
+ u as default
16
14
  };
@@ -1,14 +1,14 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { DataGrid as a } from "@mui/x-data-grid";
3
- import { A as n, a as d, d as s } from "../../../../Add-DJLrrVHm.js";
3
+ import { A as n, a as d, d as s } from "../../../../Add-DuVVJeQU.js";
4
4
  import m from "./recognition-property-list-columns.js";
5
5
  import c from "./recognition-property-list-form.js";
6
6
  import p from "./recognition-property-list-logic.js";
7
- import { B as g } from "../../../../Box-p6OtTUEo.js";
8
- import { T as u } from "../../../../Typography-CxbneZy_.js";
9
- import { B as h } from "../../../../Button-CvE2gnly.js";
10
- import { D as f, a as y } from "../../../../DialogContent-B3nbEbuv.js";
11
- import { D as b } from "../../../../dialog-DcwXug9J.js";
7
+ import { B as g } from "../../../../MenuItem-DrE50M_p.js";
8
+ import { T as u } from "../../../../Typography-B-Z5Y0Xq.js";
9
+ import { B as h } from "../../../../Modal-DlB6GH-f.js";
10
+ import { D as f, a as y } from "../../../../DialogContent-CGJ7alb8.js";
11
+ import { a as b } from "../../../../dialog-cf4HUXXl.js";
12
12
  function L(i) {
13
13
  const { state: l, action: t } = p(i);
14
14
  return /* @__PURE__ */ r(g, { children: [
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, Fragment as t, jsx as e } from "react/jsx-runtime";
2
- import { d as o, a as l } from "../../../../Delete-CW0UZv1m.js";
3
- import { I as d } from "../../../../IconButton-CHwRQF-g.js";
2
+ import { d as o, a as l } from "../../../../Delete-fBLhTHbF.js";
3
+ import { I as d } from "../../../../IconButton-_opV1iNK.js";
4
4
  const h = (r) => [
5
5
  { field: "ownerType", headerName: "Owner Type", width: 120 },
6
6
  { field: "owner", headerName: "Owner", width: 120 },
@@ -1,13 +1,12 @@
1
1
  import V, { jsxs as i, Fragment as S, jsx as t } from "react/jsx-runtime";
2
2
  import o from "react";
3
- import { r as C, i as g } from "../../../../createSvgIcon-BjpIhJ30.js";
3
+ import { r as C, i as g } from "../../../../createSvgIcon-BM3-TsGy.js";
4
4
  import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
5
- import { F as c, I as u } from "../../../../FormControl-BLbrq4C7.js";
6
- import { S as d } from "../../../../Select-BgYwkZgI.js";
7
- import { M as m } from "../../../../MenuItem-xZx_w7zA.js";
8
- import { T as b } from "../../../../TextField-1yCesIbH.js";
9
- import { B as M } from "../../../../Box-p6OtTUEo.js";
10
- import { B as y } from "../../../../Button-CvE2gnly.js";
5
+ import { F as c } from "../../../../FormControl-BCurCxRj.js";
6
+ import { I as u } from "../../../../InputLabel-rEwwnD4_.js";
7
+ import { S as d, T as b } from "../../../../TextField-DSDIEEKu.js";
8
+ import { M as m, B as M } from "../../../../MenuItem-DrE50M_p.js";
9
+ import { B as y } from "../../../../Modal-DlB6GH-f.js";
11
10
  var p = {}, q = g;
12
11
  Object.defineProperty(p, "__esModule", {
13
12
  value: !0
@@ -16,7 +15,7 @@ var w = p.default = void 0, N = q(C()), W = V;
16
15
  w = p.default = (0, N.default)(/* @__PURE__ */ (0, W.jsx)("path", {
17
16
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
18
17
  }), "Save");
19
- function A({
18
+ function $({
20
19
  defaultValues: x = {
21
20
  owner: "",
22
21
  ownerType: h[0],
@@ -170,5 +169,5 @@ function A({
170
169
  ] });
171
170
  }
172
171
  export {
173
- A as default
172
+ $ as default
174
173
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as u, jsx as n } from "react/jsx-runtime";
2
2
  import k from "lodash";
3
3
  import f from "react";
4
- import { useForm as P, Controller as l } from "react-hook-form";
4
+ import { useForm as P, Controller as i } from "react-hook-form";
5
5
  import { CatalogueInstanceSelector as O } from "./components/catalogue-instance-selector/index.js";
6
6
  import j from "./components/property-list/index.js";
7
7
  import K from "./components/recognition-property-list/index.js";
@@ -9,16 +9,15 @@ import { FormLabel as L, Button as g } from "@mui/material";
9
9
  import { getNestedChildrenFromMap as _ } from "../../utils/ontology.js";
10
10
  import { TreeSelect as w } from "../tree-select/index.js";
11
11
  import A from "./components/select-icon/index.js";
12
- import { T as m } from "../../TextField-1yCesIbH.js";
13
- import { F as h } from "../../property-list-form-zZQfpR0X.js";
14
- import { F as d } from "../../FormControlLabel-C8SPv14J.js";
15
- import { C as c } from "../../Checkbox-CWRMFTBp.js";
16
- import { B as p } from "../../Box-p6OtTUEo.js";
17
- function B(e, x) {
12
+ import { T as m } from "../../TextField-DSDIEEKu.js";
13
+ import { F as h } from "../../property-list-form-DL_dEoNn.js";
14
+ import { F as d, C as c } from "../../FormControlLabel-BkRfrhNy.js";
15
+ import { B as x } from "../../MenuItem-DrE50M_p.js";
16
+ function B(e, p) {
18
17
  const {
19
18
  register: s,
20
19
  handleSubmit: T,
21
- control: i,
20
+ control: l,
22
21
  formState: { errors: v },
23
22
  getValues: b,
24
23
  reset: V
@@ -43,7 +42,7 @@ function B(e, x) {
43
42
  return;
44
43
  }
45
44
  };
46
- return f.useImperativeHandle(x, () => ({
45
+ return f.useImperativeHandle(p, () => ({
47
46
  getValues: b,
48
47
  resetForm() {
49
48
  V();
@@ -100,10 +99,10 @@ function B(e, x) {
100
99
  }
101
100
  ),
102
101
  /* @__PURE__ */ n(h, { sx: { mb: 2 }, children: /* @__PURE__ */ n(
103
- l,
102
+ i,
104
103
  {
105
104
  name: "parent",
106
- control: i,
105
+ control: l,
107
106
  render: ({ field: { value: t, onChange: a } }) => {
108
107
  if (e.disableParent) {
109
108
  const r = t ? e.mappedTemplates.get(t) : void 0;
@@ -138,10 +137,10 @@ function B(e, x) {
138
137
  }
139
138
  ) }),
140
139
  "agentReferenceIds" in e.defaultValues && /* @__PURE__ */ n(
141
- l,
140
+ i,
142
141
  {
143
142
  name: "agentReferenceIds",
144
- control: i,
143
+ control: l,
145
144
  render: ({ field: { onChange: t } }) => /* @__PURE__ */ n(
146
145
  O,
147
146
  {
@@ -176,10 +175,10 @@ function B(e, x) {
176
175
  d,
177
176
  {
178
177
  control: /* @__PURE__ */ n(
179
- l,
178
+ i,
180
179
  {
181
180
  name: "creatable",
182
- control: i,
181
+ control: l,
183
182
  render: ({ field: { value: t, ...a } }) => /* @__PURE__ */ n(c, { checked: t, ...a })
184
183
  }
185
184
  ),
@@ -190,10 +189,10 @@ function B(e, x) {
190
189
  d,
191
190
  {
192
191
  control: /* @__PURE__ */ n(
193
- l,
192
+ i,
194
193
  {
195
194
  name: "editable",
196
- control: i,
195
+ control: l,
197
196
  render: ({ field: { value: t, ...a } }) => /* @__PURE__ */ n(c, { checked: t, ...a })
198
197
  }
199
198
  ),
@@ -204,10 +203,10 @@ function B(e, x) {
204
203
  d,
205
204
  {
206
205
  control: /* @__PURE__ */ n(
207
- l,
206
+ i,
208
207
  {
209
208
  name: "stationary",
210
- control: i,
209
+ control: l,
211
210
  render: ({ field: { value: t, ...a } }) => /* @__PURE__ */ n(c, { checked: t, ...a })
212
211
  }
213
212
  ),
@@ -218,10 +217,10 @@ function B(e, x) {
218
217
  d,
219
218
  {
220
219
  control: /* @__PURE__ */ n(
221
- l,
220
+ i,
222
221
  {
223
222
  name: "livingObject",
224
- control: i,
223
+ control: l,
225
224
  render: ({ field: { value: t, ...a } }) => /* @__PURE__ */ n(c, { checked: t, ...a })
226
225
  }
227
226
  ),
@@ -232,10 +231,10 @@ function B(e, x) {
232
231
  d,
233
232
  {
234
233
  control: /* @__PURE__ */ n(
235
- l,
234
+ i,
236
235
  {
237
236
  name: "storeFile",
238
- control: i,
237
+ control: l,
239
238
  render: ({ field: { value: t, ...a } }) => /* @__PURE__ */ n(c, { checked: t, ...a })
240
239
  }
241
240
  ),
@@ -246,10 +245,10 @@ function B(e, x) {
246
245
  /* @__PURE__ */ u(h, { children: [
247
246
  /* @__PURE__ */ n(L, { children: "Icon" }),
248
247
  /* @__PURE__ */ n(
249
- l,
248
+ i,
250
249
  {
251
250
  name: "icon",
252
- control: i,
251
+ control: l,
253
252
  render: ({ field: { value: t, onChange: a } }) => /* @__PURE__ */ n(
254
253
  A,
255
254
  {
@@ -264,10 +263,10 @@ function B(e, x) {
264
263
  )
265
264
  ] }),
266
265
  /* @__PURE__ */ n(
267
- l,
266
+ i,
268
267
  {
269
268
  name: "properties",
270
- control: i,
269
+ control: l,
271
270
  render: ({ field: { value: t, onChange: a } }) => /* @__PURE__ */ n(
272
271
  j,
273
272
  {
@@ -281,10 +280,10 @@ function B(e, x) {
281
280
  }
282
281
  ),
283
282
  "recognitionPropertyList" in e.defaultValues && /* @__PURE__ */ n(
284
- l,
283
+ i,
285
284
  {
286
285
  name: "recognitionPropertyList",
287
- control: i,
286
+ control: l,
288
287
  render: ({ field: { value: t, onChange: a } }) => /* @__PURE__ */ n(
289
288
  K,
290
289
  {
@@ -295,7 +294,7 @@ function B(e, x) {
295
294
  )
296
295
  }
297
296
  ),
298
- /* @__PURE__ */ u(p, { display: "flex", justifyContent: "space-between", mt: 3, children: [
297
+ /* @__PURE__ */ u(x, { display: "flex", justifyContent: "space-between", mt: 3, children: [
299
298
  /* @__PURE__ */ n(
300
299
  g,
301
300
  {
@@ -307,7 +306,7 @@ function B(e, x) {
307
306
  children: "Cancel"
308
307
  }
309
308
  ),
310
- /* @__PURE__ */ n(p, { children: e.saveButtons ? e.saveButtons.map((t, a) => /* @__PURE__ */ n(
309
+ /* @__PURE__ */ n(x, { children: e.saveButtons ? e.saveButtons.map((t, a) => /* @__PURE__ */ n(
311
310
  g,
312
311
  {
313
312
  type: "submit",
@@ -334,7 +333,7 @@ function B(e, x) {
334
333
  ] })
335
334
  ] });
336
335
  }
337
- const te = f.forwardRef(B);
336
+ const ee = f.forwardRef(B);
338
337
  export {
339
- te as TemplateForm
338
+ ee as TemplateForm
340
339
  };