@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,115 +1,116 @@
1
- import de, { jsx as t, jsxs as f, Fragment as pe } from "react/jsx-runtime";
1
+ import be, { jsx as t, jsxs as f, Fragment as he } from "react/jsx-runtime";
2
2
  import * as z from "react";
3
- import V from "react";
4
- import me from "lodash";
5
- import { g as te, a as ae, s as G, r as ue, b as _, d as fe, u as Q, c as le, i as be } from "../../../../generateUtilityClasses-Cc-owZ4J.js";
6
- import { r as he } from "../../../../createSvgIcon-BghzB2Y9.js";
7
- import { DATA_TYPES as Y, COORDINATE_FORMAT as ye, PRIVACY_PRESERVATION_METHOD as ee } from "../../../../constants/index.js";
8
- import { LabeledField as I } from "../../helpers.js";
9
- import { T as B, F as A, B as ve } from "../../../../TextField-Ca9ykixI.js";
10
- import { I as W } from "../../../../InputLabel-CjD30ZHz.js";
11
- import { S as H } from "../../../../Select-Bfhvigsx.js";
12
- import { M as U } from "../../../../MenuItem-BKvRGLvM.js";
13
- import { F as Te } from "../../../../FormGroup-BRj1o7-E.js";
14
- import { a as v, _ as ne } from "../../../../extends-C3382pL0.js";
3
+ import A from "react";
4
+ import ye from "lodash";
5
+ import { g as se, a as ce, s as Y, r as ve, b as D, d as Te, u as X, c as de, i as Ce } from "../../../../styled-Ckq8ALHh.js";
6
+ import { r as xe } from "../../../../createSvgIcon-jKAqRXE2.js";
7
+ import { DATA_TYPES as K, COORDINATE_FORMAT as Ie, PRIVACY_PRESERVATION_METHOD as le } from "../../../../constants/index.js";
8
+ import { LabeledField as C } from "../../helpers.js";
9
+ import { A as ge } from "../../../../Alert-BsT46Tgd.js";
10
+ import { T as E, F as W, B as ke } from "../../../../TextField-Db63_GNb.js";
11
+ import { I as H } from "../../../../InputLabel-jPm6Xuco.js";
12
+ import { S as U } from "../../../../Select-nL91eUH9.js";
13
+ import { M as G } from "../../../../MenuItem-BjnnhDbD.js";
14
+ import { F as Oe } from "../../../../FormGroup-LH368jad.js";
15
+ import { a as x, _ as pe } from "../../../../objectWithoutPropertiesLoose-DJteAcBH.js";
15
16
  import { P as e } from "../../../../index-CblbdqjE.js";
16
- import { c as J } from "../../../../clsx-OuTLNxxd.js";
17
- import { f as Ce } from "../../../../formControlState-vgaj2ksH.js";
18
- import { u as xe } from "../../../../useFormControl-CatNKXAi.js";
19
- import { T as oe } from "../../../../Typography-D3X-Y5fh.js";
20
- import { createStack as Ie } from "@mui/system";
21
- import { r as ie } from "../../../../TransitionGroupContext-Ja2CgIob.js";
22
- import { S as ge } from "../../../../SwitchBase-BEK49kdS.js";
23
- import { c as X } from "../../../../createSvgIcon-D7U1nd99.js";
24
- import { B as re } from "../../../../Button-Cem3nbwc.js";
25
- const ke = X(/* @__PURE__ */ t("path", {
17
+ import { c as Q } from "../../../../clsx-OuTLNxxd.js";
18
+ import { f as Pe } from "../../../../formControlState-vgaj2ksH.js";
19
+ import { u as Re } from "../../../../useFormControl-CatNKXAi.js";
20
+ import { T as ne } from "../../../../Typography-B_LKrxyI.js";
21
+ import { createStack as Fe } from "@mui/system";
22
+ import { r as me } from "../../../../TransitionGroupContext-C_aW1Tei.js";
23
+ import { S as qe } from "../../../../SwitchBase-BcJAJYsB.js";
24
+ import { c as Z } from "../../../../createSvgIcon-Bx0mTP6n.js";
25
+ import { B as ie } from "../../../../Button-BMUZn0cT.js";
26
+ const Me = Z(/* @__PURE__ */ t("path", {
26
27
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
27
- }), "CheckBoxOutlineBlank"), Oe = X(/* @__PURE__ */ t("path", {
28
+ }), "CheckBoxOutlineBlank"), Se = Z(/* @__PURE__ */ t("path", {
28
29
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
29
- }), "CheckBox"), Pe = X(/* @__PURE__ */ t("path", {
30
+ }), "CheckBox"), _e = Z(/* @__PURE__ */ t("path", {
30
31
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
31
32
  }), "IndeterminateCheckBox");
32
- function Re(r) {
33
- return ae("MuiCheckbox", r);
33
+ function $e(r) {
34
+ return ce("MuiCheckbox", r);
34
35
  }
35
- const K = te("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Fe = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], Me = (r) => {
36
+ const J = se("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), De = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], je = (r) => {
36
37
  const {
37
38
  classes: o,
38
39
  indeterminate: i,
39
40
  color: p,
40
- size: d
41
- } = r, s = {
42
- root: ["root", i && "indeterminate", `color${_(p)}`, `size${_(d)}`]
43
- }, a = le(s, Re, o);
44
- return v({}, o, a);
45
- }, Se = G(ge, {
46
- shouldForwardProp: (r) => ue(r) || r === "classes",
41
+ size: m
42
+ } = r, c = {
43
+ root: ["root", i && "indeterminate", `color${D(p)}`, `size${D(m)}`]
44
+ }, h = de(c, $e, o);
45
+ return x({}, o, h);
46
+ }, Ee = Y(qe, {
47
+ shouldForwardProp: (r) => ve(r) || r === "classes",
47
48
  name: "MuiCheckbox",
48
49
  slot: "Root",
49
50
  overridesResolver: (r, o) => {
50
51
  const {
51
52
  ownerState: i
52
53
  } = r;
53
- return [o.root, i.indeterminate && o.indeterminate, o[`size${_(i.size)}`], i.color !== "default" && o[`color${_(i.color)}`]];
54
+ return [o.root, i.indeterminate && o.indeterminate, o[`size${D(i.size)}`], i.color !== "default" && o[`color${D(i.color)}`]];
54
55
  }
55
56
  })(({
56
57
  theme: r,
57
58
  ownerState: o
58
- }) => v({
59
+ }) => x({
59
60
  color: (r.vars || r).palette.text.secondary
60
61
  }, !o.disableRipple && {
61
62
  "&:hover": {
62
- backgroundColor: r.vars ? `rgba(${o.color === "default" ? r.vars.palette.action.activeChannel : r.vars.palette[o.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})` : fe(o.color === "default" ? r.palette.action.active : r.palette[o.color].main, r.palette.action.hoverOpacity),
63
+ backgroundColor: r.vars ? `rgba(${o.color === "default" ? r.vars.palette.action.activeChannel : r.vars.palette[o.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})` : Te(o.color === "default" ? r.palette.action.active : r.palette[o.color].main, r.palette.action.hoverOpacity),
63
64
  // Reset on touch devices, it doesn't add specificity
64
65
  "@media (hover: none)": {
65
66
  backgroundColor: "transparent"
66
67
  }
67
68
  }
68
69
  }, o.color !== "default" && {
69
- [`&.${K.checked}, &.${K.indeterminate}`]: {
70
+ [`&.${J.checked}, &.${J.indeterminate}`]: {
70
71
  color: (r.vars || r).palette[o.color].main
71
72
  },
72
- [`&.${K.disabled}`]: {
73
+ [`&.${J.disabled}`]: {
73
74
  color: (r.vars || r).palette.action.disabled
74
75
  }
75
- })), qe = /* @__PURE__ */ t(Oe, {}), _e = /* @__PURE__ */ t(ke, {}), $e = /* @__PURE__ */ t(Pe, {}), P = /* @__PURE__ */ z.forwardRef(function(o, i) {
76
- var p, d;
77
- const s = Q({
76
+ })), Ne = /* @__PURE__ */ t(Se, {}), ze = /* @__PURE__ */ t(Me, {}), we = /* @__PURE__ */ t(_e, {}), R = /* @__PURE__ */ z.forwardRef(function(o, i) {
77
+ var p, m;
78
+ const c = X({
78
79
  props: o,
79
80
  name: "MuiCheckbox"
80
81
  }), {
81
- checkedIcon: a = qe,
82
- color: g = "primary",
83
- icon: m = _e,
82
+ checkedIcon: h = Ne,
83
+ color: a = "primary",
84
+ icon: b = ze,
84
85
  indeterminate: u = !1,
85
- indeterminateIcon: n = $e,
86
- inputProps: $,
87
- size: T = "medium",
88
- className: k
89
- } = s, F = ne(s, Fe), O = u ? n : m, b = u ? n : a, C = v({}, s, {
90
- color: g,
86
+ indeterminateIcon: k = we,
87
+ inputProps: s,
88
+ size: l = "medium",
89
+ className: q
90
+ } = c, M = pe(c, De), O = u ? k : b, y = u ? k : h, I = x({}, c, {
91
+ color: a,
91
92
  indeterminate: u,
92
- size: T
93
- }), h = Me(C);
94
- return /* @__PURE__ */ t(Se, v({
93
+ size: l
94
+ }), v = je(I);
95
+ return /* @__PURE__ */ t(Ee, x({
95
96
  type: "checkbox",
96
- inputProps: v({
97
+ inputProps: x({
97
98
  "data-indeterminate": u
98
- }, $),
99
+ }, s),
99
100
  icon: /* @__PURE__ */ z.cloneElement(O, {
100
- fontSize: (p = O.props.fontSize) != null ? p : T
101
+ fontSize: (p = O.props.fontSize) != null ? p : l
101
102
  }),
102
- checkedIcon: /* @__PURE__ */ z.cloneElement(b, {
103
- fontSize: (d = b.props.fontSize) != null ? d : T
103
+ checkedIcon: /* @__PURE__ */ z.cloneElement(y, {
104
+ fontSize: (m = y.props.fontSize) != null ? m : l
104
105
  }),
105
- ownerState: C,
106
+ ownerState: I,
106
107
  ref: i,
107
- className: J(h.root, k)
108
- }, F, {
109
- classes: h
108
+ className: Q(v.root, q)
109
+ }, M, {
110
+ classes: v
110
111
  }));
111
112
  });
112
- process.env.NODE_ENV !== "production" && (P.propTypes = {
113
+ process.env.NODE_ENV !== "production" && (R.propTypes = {
113
114
  // ┌────────────────────────────── Warning ──────────────────────────────┐
114
115
  // │ These PropTypes are generated from the TypeScript type definitions. │
115
116
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -181,7 +182,7 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
181
182
  /**
182
183
  * Pass a ref to the `input` element.
183
184
  */
184
- inputRef: ie,
185
+ inputRef: me,
185
186
  /**
186
187
  * Callback fired when the state is changed.
187
188
  *
@@ -210,18 +211,18 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
210
211
  */
211
212
  value: e.any
212
213
  });
213
- const se = Ie({
214
- createStyledComponent: G("div", {
214
+ const ue = Fe({
215
+ createStyledComponent: Y("div", {
215
216
  name: "MuiStack",
216
217
  slot: "Root",
217
218
  overridesResolver: (r, o) => o.root
218
219
  }),
219
- useThemeProps: (r) => Q({
220
+ useThemeProps: (r) => X({
220
221
  props: r,
221
222
  name: "MuiStack"
222
223
  })
223
224
  });
224
- process.env.NODE_ENV !== "production" && (se.propTypes = {
225
+ process.env.NODE_ENV !== "production" && (ue.propTypes = {
225
226
  // ┌────────────────────────────── Warning ──────────────────────────────┐
226
227
  // │ These PropTypes are generated from the TypeScript type definitions. │
227
228
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -265,23 +266,23 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
265
266
  */
266
267
  useFlexGap: e.bool
267
268
  });
268
- function je(r) {
269
- return ae("MuiFormControlLabel", r);
269
+ function Le(r) {
270
+ return ce("MuiFormControlLabel", r);
270
271
  }
271
- const E = te("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), Ee = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"], ze = (r) => {
272
+ const N = se("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), Be = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"], Ve = (r) => {
272
273
  const {
273
274
  classes: o,
274
275
  disabled: i,
275
276
  labelPlacement: p,
276
- error: d,
277
- required: s
278
- } = r, a = {
279
- root: ["root", i && "disabled", `labelPlacement${_(p)}`, d && "error", s && "required"],
277
+ error: m,
278
+ required: c
279
+ } = r, h = {
280
+ root: ["root", i && "disabled", `labelPlacement${D(p)}`, m && "error", c && "required"],
280
281
  label: ["label", i && "disabled"],
281
- asterisk: ["asterisk", d && "error"]
282
+ asterisk: ["asterisk", m && "error"]
282
283
  };
283
- return le(a, je, o);
284
- }, Ne = G("label", {
284
+ return de(h, Le, o);
285
+ }, Ae = Y("label", {
285
286
  name: "MuiFormControlLabel",
286
287
  slot: "Root",
287
288
  overridesResolver: (r, o) => {
@@ -289,13 +290,13 @@ const E = te("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacem
289
290
  ownerState: i
290
291
  } = r;
291
292
  return [{
292
- [`& .${E.label}`]: o.label
293
- }, o.root, o[`labelPlacement${_(i.labelPlacement)}`]];
293
+ [`& .${N.label}`]: o.label
294
+ }, o.root, o[`labelPlacement${D(i.labelPlacement)}`]];
294
295
  }
295
296
  })(({
296
297
  theme: r,
297
298
  ownerState: o
298
- }) => v({
299
+ }) => x({
299
300
  display: "inline-flex",
300
301
  alignItems: "center",
301
302
  cursor: "pointer",
@@ -305,7 +306,7 @@ const E = te("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacem
305
306
  marginLeft: -11,
306
307
  marginRight: 16,
307
308
  // used for row presentation of radio/checkbox
308
- [`&.${E.disabled}`]: {
309
+ [`&.${N.disabled}`]: {
309
310
  cursor: "default"
310
311
  }
311
312
  }, o.labelPlacement === "start" && {
@@ -320,76 +321,76 @@ const E = te("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacem
320
321
  flexDirection: "column",
321
322
  marginLeft: 16
322
323
  }, {
323
- [`& .${E.label}`]: {
324
- [`&.${E.disabled}`]: {
324
+ [`& .${N.label}`]: {
325
+ [`&.${N.disabled}`]: {
325
326
  color: (r.vars || r).palette.text.disabled
326
327
  }
327
328
  }
328
- })), Le = G("span", {
329
+ })), We = Y("span", {
329
330
  name: "MuiFormControlLabel",
330
331
  slot: "Asterisk",
331
332
  overridesResolver: (r, o) => o.asterisk
332
333
  })(({
333
334
  theme: r
334
335
  }) => ({
335
- [`&.${E.error}`]: {
336
+ [`&.${N.error}`]: {
336
337
  color: (r.vars || r).palette.error.main
337
338
  }
338
- })), R = /* @__PURE__ */ z.forwardRef(function(o, i) {
339
- var p, d;
340
- const s = Q({
339
+ })), F = /* @__PURE__ */ z.forwardRef(function(o, i) {
340
+ var p, m;
341
+ const c = X({
341
342
  props: o,
342
343
  name: "MuiFormControlLabel"
343
344
  }), {
344
- className: a,
345
- componentsProps: g = {},
346
- control: m,
345
+ className: h,
346
+ componentsProps: a = {},
347
+ control: b,
347
348
  disabled: u,
348
- disableTypography: n,
349
- label: $,
350
- labelPlacement: T = "end",
351
- required: k,
352
- slotProps: F = {}
353
- } = s, O = ne(s, Ee), b = xe(), C = (p = u ?? m.props.disabled) != null ? p : b == null ? void 0 : b.disabled, h = k ?? m.props.required, j = {
354
- disabled: C,
355
- required: h
349
+ disableTypography: k,
350
+ label: s,
351
+ labelPlacement: l = "end",
352
+ required: q,
353
+ slotProps: M = {}
354
+ } = c, O = pe(c, Be), y = Re(), I = (p = u ?? b.props.disabled) != null ? p : y == null ? void 0 : y.disabled, v = q ?? b.props.required, j = {
355
+ disabled: I,
356
+ required: v
356
357
  };
357
- ["checked", "name", "onChange", "value", "inputRef"].forEach((l) => {
358
- typeof m.props[l] > "u" && typeof s[l] < "u" && (j[l] = s[l]);
358
+ ["checked", "name", "onChange", "value", "inputRef"].forEach((P) => {
359
+ typeof b.props[P] > "u" && typeof c[P] < "u" && (j[P] = c[P]);
359
360
  });
360
- const N = Ce({
361
- props: s,
362
- muiFormControl: b,
361
+ const w = Pe({
362
+ props: c,
363
+ muiFormControl: y,
363
364
  states: ["error"]
364
- }), M = v({}, s, {
365
- disabled: C,
366
- labelPlacement: T,
367
- required: h,
368
- error: N.error
369
- }), S = ze(M), q = (d = F.typography) != null ? d : g.typography;
370
- let y = $;
371
- return y != null && y.type !== oe && !n && (y = /* @__PURE__ */ t(oe, v({
365
+ }), S = x({}, c, {
366
+ disabled: I,
367
+ labelPlacement: l,
368
+ required: v,
369
+ error: w.error
370
+ }), _ = Ve(S), $ = (m = M.typography) != null ? m : a.typography;
371
+ let T = s;
372
+ return T != null && T.type !== ne && !k && (T = /* @__PURE__ */ t(ne, x({
372
373
  component: "span"
373
- }, q, {
374
- className: J(S.label, q == null ? void 0 : q.className),
375
- children: y
376
- }))), /* @__PURE__ */ f(Ne, v({
377
- className: J(S.root, a),
378
- ownerState: M,
374
+ }, $, {
375
+ className: Q(_.label, $ == null ? void 0 : $.className),
376
+ children: T
377
+ }))), /* @__PURE__ */ f(Ae, x({
378
+ className: Q(_.root, h),
379
+ ownerState: S,
379
380
  ref: i
380
381
  }, O, {
381
- children: [/* @__PURE__ */ z.cloneElement(m, j), h ? /* @__PURE__ */ f(se, {
382
+ children: [/* @__PURE__ */ z.cloneElement(b, j), v ? /* @__PURE__ */ f(ue, {
382
383
  display: "block",
383
- children: [y, /* @__PURE__ */ f(Le, {
384
- ownerState: M,
384
+ children: [T, /* @__PURE__ */ f(We, {
385
+ ownerState: S,
385
386
  "aria-hidden": !0,
386
- className: S.asterisk,
387
+ className: _.asterisk,
387
388
  children: [" ", "*"]
388
389
  })]
389
- }) : y]
390
+ }) : T]
390
391
  }));
391
392
  });
392
- process.env.NODE_ENV !== "production" && (R.propTypes = {
393
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
393
394
  // ┌────────────────────────────── Warning ──────────────────────────────┐
394
395
  // │ These PropTypes are generated from the TypeScript type definitions. │
395
396
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -428,7 +429,7 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
428
429
  /**
429
430
  * Pass a ref to the `input` element.
430
431
  */
431
- inputRef: ie,
432
+ inputRef: me,
432
433
  /**
433
434
  * A text or an element to be used in an enclosing label element.
434
435
  */
@@ -469,24 +470,26 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
469
470
  */
470
471
  value: e.any
471
472
  });
472
- var Z = {}, we = be;
473
- Object.defineProperty(Z, "__esModule", {
473
+ var ee = {}, He = Ce;
474
+ Object.defineProperty(ee, "__esModule", {
474
475
  value: !0
475
476
  });
476
- var ce = Z.default = void 0, De = we(he()), Ve = de;
477
- ce = Z.default = (0, De.default)(/* @__PURE__ */ (0, Ve.jsx)("path", {
477
+ var fe = ee.default = void 0, Ue = He(xe()), Ge = be;
478
+ fe = ee.default = (0, Ue.default)(/* @__PURE__ */ (0, Ge.jsx)("path", {
478
479
  d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
479
480
  }), "Check");
480
- function mo({
481
+ function To({
481
482
  inputVariant: r,
482
483
  labelPosition: o = "default",
483
- defaultValues: i = {
484
+ templateId: i,
485
+ defaultValues: p = {
484
486
  name: "",
485
487
  propertyId: "",
486
- type: Y[0],
488
+ type: K[0],
487
489
  dataTypeInfo: {},
488
490
  defaultValue: "",
489
- privacyPreservationMethod: ee[0],
491
+ description: "",
492
+ privacyPreservationMethod: le[0],
490
493
  required: !1,
491
494
  visible: !1,
492
495
  editable: !1,
@@ -494,35 +497,35 @@ function mo({
494
497
  temporal: !1,
495
498
  unique: !1
496
499
  },
497
- disablePropertyId: p,
498
- onSubmit: d,
499
- onCancel: s
500
+ disablePropertyId: m,
501
+ onSubmit: c,
502
+ onCancel: h
500
503
  }) {
501
- var T, k, F, O, b, C, h, j, N, M, S, q, y;
502
- const [a, g] = V.useState(i), [m, u] = V.useState({
504
+ var M, O, y, I, v, j, w, S, _, $, T, P, oe, re, te, ae;
505
+ const [a, b] = A.useState(p), [u, k] = A.useState({
503
506
  name: !1
504
- }), n = (l) => {
505
- var L, w;
506
- const c = l.target.name;
507
- let x = l.target.type === "checkbox" ? l.target.checked : l.target.value;
508
- if (a.type === "enum" && c === "dataTypeInfo.enumValues" && (x = x.split(",")), ((w = (L = a.dataTypeInfo) == null ? void 0 : L.innerType) == null ? void 0 : w.type) === "enum" && c === "dataTypeInfo.innerType.enumValues" && (x = x.split(",")), c.includes(".")) {
509
- let D = { ...a };
510
- me.set(D, c, x), g(D);
507
+ }), s = !!((M = p.inheritedFrom) != null && M.templateId) && ((O = p.inheritedFrom) == null ? void 0 : O.templateId) !== i, l = (n) => {
508
+ var L, B;
509
+ const d = n.target.name;
510
+ let g = n.target.type === "checkbox" ? n.target.checked : n.target.value;
511
+ if (a.type === "enum" && d === "dataTypeInfo.enumValues" && (g = g.split(",")), ((B = (L = a.dataTypeInfo) == null ? void 0 : L.innerType) == null ? void 0 : B.type) === "enum" && d === "dataTypeInfo.innerType.enumValues" && (g = g.split(",")), d.includes(".")) {
512
+ let V = { ...a };
513
+ ye.set(V, d, g), b(V);
511
514
  return;
512
515
  }
513
- g((D) => ({
514
- ...D,
515
- [c]: x
516
+ b((V) => ({
517
+ ...V,
518
+ [d]: g
516
519
  }));
517
- }, $ = () => {
520
+ }, q = () => {
518
521
  if (!a.name) {
519
- u({ ...m, name: !0 });
522
+ k({ ...u, name: !0 });
520
523
  return;
521
524
  }
522
- d(a);
525
+ c(a);
523
526
  };
524
- return V.useEffect(() => (m.name && a.name && u({ ...m, name: !1 }), () => {
525
- }), [a.name]), V.useEffect(() => {
527
+ return A.useEffect(() => (u.name && a.name && k({ ...u, name: !1 }), () => {
528
+ }), [a.name]), A.useEffect(() => {
526
529
  if (![
527
530
  "date",
528
531
  "coordinate",
@@ -531,105 +534,116 @@ function mo({
531
534
  "composite-matrix"
532
535
  ].includes(a.type)) {
533
536
  if (a.dataTypeInfo) {
534
- const { coordinateFormat: l, datePattern: c, innerType: x, enumValues: L } = a.dataTypeInfo;
535
- (l || c || x || L) && g((w) => ({ ...w, dataTypeInfo: {} }));
537
+ const { coordinateFormat: n, datePattern: d, innerType: g, enumValues: L } = a.dataTypeInfo;
538
+ (n || d || g || L) && b((B) => ({ ...B, dataTypeInfo: {} }));
536
539
  }
537
540
  return () => {
538
541
  };
539
542
  }
540
- }, [a.type]), /* @__PURE__ */ f(pe, { children: [
541
- /* @__PURE__ */ t(I, { label: "Name", required: !0, labelPosition: o, children: /* @__PURE__ */ t(
542
- B,
543
+ }, [a.type]), /* @__PURE__ */ f(he, { children: [
544
+ s && /* @__PURE__ */ f(ge, { severity: "info", sx: { mb: 2 }, children: [
545
+ "This property is inherited from",
546
+ " ",
547
+ /* @__PURE__ */ t("strong", { children: (y = p.inheritedFrom) == null ? void 0 : y.templateName }),
548
+ ". Only Default Value, Description and Required can be updated here."
549
+ ] }),
550
+ /* @__PURE__ */ t(C, { label: "Name", required: !0, labelPosition: o, children: /* @__PURE__ */ t(
551
+ E,
543
552
  {
544
553
  label: o === "default" ? "Name" : void 0,
545
554
  name: "name",
546
555
  variant: r,
547
556
  fullWidth: !0,
557
+ disabled: s,
548
558
  sx: { mb: 2, mt: 0.5 },
549
559
  value: a.name,
550
- onChange: n,
560
+ onChange: l,
551
561
  required: !0,
552
- ...m.name && {
562
+ ...u.name && {
553
563
  error: !0,
554
564
  helperText: "This field is required!"
555
565
  }
556
566
  }
557
567
  ) }),
558
- /* @__PURE__ */ t(I, { label: "Property ID", labelPosition: o, children: /* @__PURE__ */ t(
559
- B,
568
+ /* @__PURE__ */ t(C, { label: "Property ID", labelPosition: o, children: /* @__PURE__ */ t(
569
+ E,
560
570
  {
561
571
  label: o === "default" ? "Property ID" : void 0,
562
572
  name: "propertyId",
563
573
  variant: r,
564
574
  fullWidth: !0,
565
- disabled: p,
575
+ disabled: m || s,
566
576
  sx: { mb: 2 },
567
577
  value: a.propertyId,
568
- onChange: n
578
+ onChange: l
569
579
  }
570
580
  ) }),
571
- /* @__PURE__ */ t(I, { label: "Type", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
572
- o === "default" && /* @__PURE__ */ t(W, { id: "type-select-label", children: "Type" }),
581
+ /* @__PURE__ */ t(C, { label: "Type", labelPosition: o, children: /* @__PURE__ */ f(W, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
582
+ o === "default" && /* @__PURE__ */ t(H, { id: "type-select-label", children: "Type" }),
573
583
  /* @__PURE__ */ t(
574
- H,
584
+ U,
575
585
  {
576
586
  label: o === "default" ? "Type" : void 0,
577
587
  name: "type",
578
588
  labelId: "type-select-label",
579
589
  id: "type-select",
580
590
  value: a.type,
581
- onChange: n,
582
- children: Y.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
591
+ disabled: s,
592
+ onChange: l,
593
+ children: K.map((n, d) => /* @__PURE__ */ t(G, { value: n, children: n }, d))
583
594
  }
584
595
  )
585
596
  ] }) }),
586
- a.type === "coordinate" && /* @__PURE__ */ t(I, { label: "Coordinate Format", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
587
- o === "default" && /* @__PURE__ */ t(W, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
597
+ a.type === "coordinate" && /* @__PURE__ */ t(C, { label: "Coordinate Format", labelPosition: o, children: /* @__PURE__ */ f(W, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
598
+ o === "default" && /* @__PURE__ */ t(H, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
588
599
  /* @__PURE__ */ t(
589
- H,
600
+ U,
590
601
  {
591
602
  label: o === "default" ? "Coordinate Format" : void 0,
592
603
  name: "dataTypeInfo.coordinateFormat",
593
604
  labelId: "coordinate-format-select-label",
594
605
  id: "coordinate-format-select",
595
- value: (T = a.dataTypeInfo) == null ? void 0 : T.coordinateFormat,
596
- onChange: n,
597
- children: ye.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
606
+ value: (I = a.dataTypeInfo) == null ? void 0 : I.coordinateFormat,
607
+ disabled: s,
608
+ onChange: l,
609
+ children: Ie.map((n, d) => /* @__PURE__ */ t(G, { value: n, children: n }, d))
598
610
  }
599
611
  )
600
612
  ] }) }),
601
- (a.type === "composite-list" || a.type === "composite-matrix") && /* @__PURE__ */ t(I, { label: "Inner Type", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
602
- o === "default" && /* @__PURE__ */ t(W, { id: "composite-list-select-label", children: "Inner Type" }),
613
+ (a.type === "composite-list" || a.type === "composite-matrix") && /* @__PURE__ */ t(C, { label: "Inner Type", labelPosition: o, children: /* @__PURE__ */ f(W, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
614
+ o === "default" && /* @__PURE__ */ t(H, { id: "composite-list-select-label", children: "Inner Type" }),
603
615
  /* @__PURE__ */ t(
604
- H,
616
+ U,
605
617
  {
606
618
  label: o === "default" ? "Inner Type" : void 0,
607
619
  name: "dataTypeInfo.innerType.type",
608
620
  labelId: "composite-list-select-label",
609
621
  id: "composite-list-select",
610
- value: (F = (k = a.dataTypeInfo) == null ? void 0 : k.innerType) == null ? void 0 : F.type,
611
- onChange: n,
612
- children: Y.filter(
613
- (l) => l !== "composite-list" && l !== "list"
614
- ).map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
622
+ value: (j = (v = a.dataTypeInfo) == null ? void 0 : v.innerType) == null ? void 0 : j.type,
623
+ disabled: s,
624
+ onChange: l,
625
+ children: K.filter(
626
+ (n) => n !== "composite-list" && n !== "list"
627
+ ).map((n, d) => /* @__PURE__ */ t(G, { value: n, children: n }, d))
615
628
  }
616
629
  )
617
630
  ] }) }),
618
- (a.type === "enum" || ((b = (O = a.dataTypeInfo) == null ? void 0 : O.innerType) == null ? void 0 : b.type) === "enum") && /* @__PURE__ */ t(I, { label: "Enum Values", labelPosition: o, children: /* @__PURE__ */ t(
619
- B,
631
+ (a.type === "enum" || ((S = (w = a.dataTypeInfo) == null ? void 0 : w.innerType) == null ? void 0 : S.type) === "enum") && /* @__PURE__ */ t(C, { label: "Enum Values", labelPosition: o, children: /* @__PURE__ */ t(
632
+ E,
620
633
  {
621
634
  label: o === "default" ? "Enum Values" : void 0,
622
- name: ((h = (C = a.dataTypeInfo) == null ? void 0 : C.innerType) == null ? void 0 : h.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
635
+ name: (($ = (_ = a.dataTypeInfo) == null ? void 0 : _.innerType) == null ? void 0 : $.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
623
636
  variant: r,
624
637
  fullWidth: !0,
638
+ disabled: s,
625
639
  sx: { mb: 2 },
626
- value: ((N = (j = a.dataTypeInfo) == null ? void 0 : j.innerType) == null ? void 0 : N.type) === "enum" ? (S = (M = a.dataTypeInfo.innerType) == null ? void 0 : M.enumValues) == null ? void 0 : S.join(",") : (y = (q = a.dataTypeInfo) == null ? void 0 : q.enumValues) == null ? void 0 : y.join(","),
627
- onChange: n,
640
+ value: ((P = (T = a.dataTypeInfo) == null ? void 0 : T.innerType) == null ? void 0 : P.type) === "enum" ? (re = (oe = a.dataTypeInfo.innerType) == null ? void 0 : oe.enumValues) == null ? void 0 : re.join(",") : (ae = (te = a.dataTypeInfo) == null ? void 0 : te.enumValues) == null ? void 0 : ae.join(","),
641
+ onChange: l,
628
642
  helperText: "Add list values with the comma (,) separated string"
629
643
  }
630
644
  ) }),
631
- /* @__PURE__ */ t(I, { label: "Default Value", labelPosition: o, children: /* @__PURE__ */ t(
632
- B,
645
+ /* @__PURE__ */ t(C, { label: "Default Value", labelPosition: o, children: /* @__PURE__ */ t(
646
+ E,
633
647
  {
634
648
  label: o === "default" ? "Default Value" : void 0,
635
649
  name: "defaultValue",
@@ -637,117 +651,144 @@ function mo({
637
651
  fullWidth: !0,
638
652
  sx: { mb: 2 },
639
653
  value: a.defaultValue,
640
- onChange: n
654
+ onChange: l
641
655
  }
642
656
  ) }),
643
- /* @__PURE__ */ t(I, { label: "Privacy Preservation Method", labelPosition: o, children: /* @__PURE__ */ f(A, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
644
- o === "default" && /* @__PURE__ */ t(W, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
657
+ /* @__PURE__ */ t(C, { label: "Description", labelPosition: o, children: /* @__PURE__ */ t(
658
+ E,
659
+ {
660
+ label: o === "default" ? "Description" : void 0,
661
+ name: "description",
662
+ variant: r,
663
+ fullWidth: !0,
664
+ multiline: !0,
665
+ minRows: 2,
666
+ sx: { mb: 2 },
667
+ value: a.description ?? "",
668
+ onChange: l
669
+ }
670
+ ) }),
671
+ /* @__PURE__ */ t(C, { label: "Privacy Preservation Method", labelPosition: o, children: /* @__PURE__ */ f(W, { fullWidth: !0, variant: r, sx: { mb: 2 }, children: [
672
+ o === "default" && /* @__PURE__ */ t(H, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
645
673
  /* @__PURE__ */ t(
646
- H,
674
+ U,
647
675
  {
648
676
  label: o === "default" ? "Privacy Preservation Method" : void 0,
649
677
  name: "privacyPreservationMethod",
650
678
  labelId: "privacy-method-label",
651
679
  id: "privacy-method",
652
680
  value: a.privacyPreservationMethod,
653
- onChange: n,
654
- children: ee.map((l, c) => /* @__PURE__ */ t(U, { value: l, children: l }, c))
681
+ disabled: s,
682
+ onChange: l,
683
+ children: le.map((n, d) => /* @__PURE__ */ t(G, { value: n, children: n }, d))
655
684
  }
656
685
  )
657
686
  ] }) }),
658
- /* @__PURE__ */ f(Te, { row: !0, sx: { mb: 2 }, children: [
687
+ /* @__PURE__ */ f(Oe, { row: !0, sx: { mb: 2 }, children: [
659
688
  /* @__PURE__ */ t(
660
- R,
689
+ F,
661
690
  {
662
691
  label: "Required",
663
692
  control: /* @__PURE__ */ t(
664
- P,
693
+ R,
665
694
  {
666
695
  name: "required",
667
696
  checked: a.required,
668
- onChange: n
697
+ onChange: l
669
698
  }
670
699
  ),
671
700
  sx: { width: "30%" }
672
701
  }
673
702
  ),
674
703
  /* @__PURE__ */ t(
675
- R,
704
+ F,
676
705
  {
677
706
  label: "Editable",
678
707
  control: /* @__PURE__ */ t(
679
- P,
708
+ R,
680
709
  {
681
710
  name: "editable",
682
711
  checked: a.editable,
683
- onChange: n
712
+ disabled: s,
713
+ onChange: l
684
714
  }
685
715
  ),
686
716
  sx: { width: "30%" }
687
717
  }
688
718
  ),
689
719
  /* @__PURE__ */ t(
690
- R,
720
+ F,
691
721
  {
692
722
  label: "Visible",
693
723
  control: /* @__PURE__ */ t(
694
- P,
724
+ R,
695
725
  {
696
726
  name: "visible",
697
727
  checked: a.visible,
698
- onChange: n
728
+ disabled: s,
729
+ onChange: l
699
730
  }
700
731
  ),
701
732
  sx: { width: "30%" }
702
733
  }
703
734
  ),
704
735
  /* @__PURE__ */ t(
705
- R,
736
+ F,
706
737
  {
707
738
  label: "Unique",
708
- control: /* @__PURE__ */ t(P, { name: "unique", checked: a.unique, onChange: n }),
739
+ control: /* @__PURE__ */ t(
740
+ R,
741
+ {
742
+ name: "unique",
743
+ checked: a.unique,
744
+ disabled: s,
745
+ onChange: l
746
+ }
747
+ ),
709
748
  sx: { width: "30%" }
710
749
  }
711
750
  ),
712
751
  /* @__PURE__ */ t(
713
- R,
752
+ F,
714
753
  {
715
754
  label: "Distinctive",
716
755
  control: /* @__PURE__ */ t(
717
- P,
756
+ R,
718
757
  {
719
758
  name: "distinctive",
720
759
  checked: a.distinctive,
721
- onChange: n
760
+ disabled: s,
761
+ onChange: l
722
762
  }
723
763
  ),
724
764
  sx: { width: "30%" }
725
765
  }
726
766
  ),
727
767
  /* @__PURE__ */ t(
728
- R,
768
+ F,
729
769
  {
730
770
  label: "Temporal",
731
771
  control: /* @__PURE__ */ t(
732
- P,
772
+ R,
733
773
  {
734
774
  name: "temporal",
735
775
  checked: a.temporal,
736
- onChange: n
776
+ disabled: s,
777
+ onChange: l
737
778
  }
738
779
  ),
739
780
  sx: { width: "30%" }
740
781
  }
741
782
  )
742
783
  ] }),
743
- /* @__PURE__ */ f(ve, { display: "flex", justifyContent: "flex-end", children: [
744
- /* @__PURE__ */ t(re, { variant: "contained", onClick: s, sx: { marginRight: 2 }, children: "Cancel" }),
784
+ /* @__PURE__ */ f(ke, { display: "flex", justifyContent: "flex-end", children: [
785
+ /* @__PURE__ */ t(ie, { variant: "contained", onClick: h, sx: { marginRight: 2 }, children: "Cancel" }),
745
786
  /* @__PURE__ */ t(
746
- re,
787
+ ie,
747
788
  {
748
789
  variant: "contained",
749
- startIcon: /* @__PURE__ */ t(ce, {}),
750
- onClick: $,
790
+ startIcon: /* @__PURE__ */ t(fe, {}),
791
+ onClick: q,
751
792
  children: "OK"
752
793
  }
753
794
  )
@@ -755,5 +796,5 @@ function mo({
755
796
  ] });
756
797
  }
757
798
  export {
758
- mo as default
799
+ To as default
759
800
  };