@hybridcore/ui 1.6.17 → 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 (56) 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/range-selector/components/enum-range/index.js +66 -0
  33. package/dist/components/range-selector/index.js +40 -30
  34. package/dist/components/range-selector/styled.js +11 -11
  35. package/dist/components/sortable-list/index.js +3 -3
  36. package/dist/components/template-form/components/property-list/index.js +30 -28
  37. package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
  38. package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
  39. package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
  40. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
  41. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  42. package/dist/components/tree-select/index.js +1 -1
  43. package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
  44. package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
  45. package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
  46. package/dist/main.d.ts +44 -1
  47. package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
  48. package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
  49. package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
  50. package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
  51. package/dist/useTimeout-CM6EsHyp.js +60 -0
  52. package/package.json +1 -1
  53. package/dist/Add-Bk8R160M.js +0 -403
  54. package/dist/ButtonBase-DObmf4Q_.js +0 -886
  55. package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
  56. 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",
@@ -0,0 +1,66 @@
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { Select as y, MenuItem as u, Checkbox as o, ListItemText as h } from "@mui/material";
3
+ const c = "__ALL__", P = (d) => {
4
+ const { value: m, options: l, onChange: a, variant: p = "outlined" } = d, t = m.listOfPossibleValues ?? [], r = l.length > 0 && t.length === l.length, g = t.length > 0 && !r;
5
+ return /* @__PURE__ */ s(
6
+ y,
7
+ {
8
+ multiple: !0,
9
+ size: "small",
10
+ fullWidth: !0,
11
+ displayEmpty: !0,
12
+ variant: p,
13
+ value: t,
14
+ onChange: (e) => {
15
+ const i = e.target.value;
16
+ if (i.includes(c)) {
17
+ a({ listOfPossibleValues: r ? [] : [...l] });
18
+ return;
19
+ }
20
+ a({ listOfPossibleValues: i });
21
+ },
22
+ MenuProps: { PaperProps: { sx: { maxHeight: 320 } } },
23
+ renderValue: (e) => e.length === 0 ? "Select values" : e.length === l.length ? "All values" : e.length <= 2 ? e.join(", ") : `${e.length} of ${l.length} selected`,
24
+ children: [
25
+ /* @__PURE__ */ s(u, { dense: !0, value: c, children: [
26
+ /* @__PURE__ */ n(
27
+ o,
28
+ {
29
+ size: "small",
30
+ sx: { py: 0.25, pl: 0, mr: 0.5 },
31
+ checked: r,
32
+ indeterminate: g
33
+ }
34
+ ),
35
+ /* @__PURE__ */ n(
36
+ h,
37
+ {
38
+ primary: "Select All",
39
+ primaryTypographyProps: { variant: "body2" }
40
+ }
41
+ )
42
+ ] }),
43
+ l.map((e) => /* @__PURE__ */ s(u, { dense: !0, value: e, children: [
44
+ /* @__PURE__ */ n(
45
+ o,
46
+ {
47
+ size: "small",
48
+ sx: { py: 0.25, pl: 0, mr: 0.5 },
49
+ checked: t.includes(e)
50
+ }
51
+ ),
52
+ /* @__PURE__ */ n(
53
+ h,
54
+ {
55
+ primary: e,
56
+ primaryTypographyProps: { variant: "body2" }
57
+ }
58
+ )
59
+ ] }, e))
60
+ ]
61
+ }
62
+ );
63
+ };
64
+ export {
65
+ P as EnumRange
66
+ };
@@ -1,65 +1,75 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import s from "lodash";
3
- import { CompositeListRange as f } from "./components/composite-list-range/index.js";
4
- import { DateRange as u } from "./components/date-range/index.js";
5
- import { GeometryRange as c } from "./components/geometry-range/index.js";
6
- import { NumberRange as R } from "./components/number-range/index.js";
7
- import { StringRange as D } from "./components/string-range/index.js";
8
- import { useRangeSelectorLogic as x } from "./logic.js";
9
- import { RangeSelectorRoot as y } from "./styled.js";
10
- const C = (t) => {
11
- const { state: r } = x(t), { ownerState: l } = r, { type: e, value: o, mapboxAccessToken: m, onChange: i, sx: g } = t;
2
+ import g from "lodash";
3
+ import { CompositeListRange as u } from "./components/composite-list-range/index.js";
4
+ import { DateRange as f } from "./components/date-range/index.js";
5
+ import { EnumRange as c } from "./components/enum-range/index.js";
6
+ import { GeometryRange as R } from "./components/geometry-range/index.js";
7
+ import { NumberRange as D } from "./components/number-range/index.js";
8
+ import { StringRange as x } from "./components/string-range/index.js";
9
+ import { useRangeSelectorLogic as y } from "./logic.js";
10
+ import { RangeSelectorRoot as b } from "./styled.js";
11
+ const L = (t) => {
12
+ const { state: r } = y(t), { ownerState: l } = r, { type: e, value: i, mapboxAccessToken: o, onChange: m, sx: s } = t;
12
13
  let a = null;
13
14
  return e === "byte" || e === "double" || e === "integer" || e === "long" ? a = /* @__PURE__ */ n(
14
- R,
15
+ D,
15
16
  {
16
- value: o || {
17
+ value: i || {
17
18
  minValue: "",
18
19
  maxValue: ""
19
20
  },
20
- onChange: i
21
+ onChange: m
21
22
  }
22
23
  ) : e === "string" || e === "text" ? a = /* @__PURE__ */ n(
23
- D,
24
+ x,
24
25
  {
25
- value: o || {
26
+ value: i || {
26
27
  listOfPossibleValues: []
27
28
  },
28
- onChange: i
29
+ onChange: m
29
30
  }
30
- ) : e === "geometry" ? a = /* @__PURE__ */ n(
31
+ ) : e === "enum" ? a = /* @__PURE__ */ n(
31
32
  c,
32
33
  {
33
- value: o || { geometryArea: "" },
34
- mapboxAccessToken: m,
35
- onChange: i
34
+ value: i || {
35
+ listOfPossibleValues: []
36
+ },
37
+ options: t.enumValues || [],
38
+ onChange: m
39
+ }
40
+ ) : e === "geometry" ? a = /* @__PURE__ */ n(
41
+ R,
42
+ {
43
+ value: i || { geometryArea: "" },
44
+ mapboxAccessToken: o,
45
+ onChange: m
36
46
  }
37
47
  ) : e === "date" ? a = /* @__PURE__ */ n(
38
- u,
48
+ f,
39
49
  {
40
- value: o || {
41
- startDate: s.get(t, "minDate", ""),
50
+ value: i || {
51
+ startDate: g.get(t, "minDate", ""),
42
52
  timeUnit: "MINUTE",
43
53
  endRange: 0,
44
54
  startRange: 0,
45
55
  limitForScenarioTimeRange: !1
46
56
  },
47
- onChange: i,
57
+ onChange: m,
48
58
  minDate: t.minDate || "",
49
59
  maxDate: t.maxDate || ""
50
60
  }
51
61
  ) : e === "composite-list" && (a = /* @__PURE__ */ n(
52
- f,
62
+ u,
53
63
  {
54
- value: o || { count: "" },
55
- mapboxAccessToken: m,
56
- onChange: i,
64
+ value: i || { count: "" },
65
+ mapboxAccessToken: o,
66
+ onChange: m,
57
67
  innerType: t.innerType,
58
68
  minDate: t.minDate,
59
69
  maxDate: t.maxDate
60
70
  }
61
- )), /* @__PURE__ */ n(y, { ownerState: l, sx: g, children: a });
71
+ )), /* @__PURE__ */ n(b, { ownerState: l, sx: s, children: a });
62
72
  };
63
73
  export {
64
- C as RangeSelector
74
+ L as RangeSelector
65
75
  };
@@ -1,11 +1,11 @@
1
1
  import { styled as t, Box as o, TextField as n, Typography as a, IconButton as i, FormControl as r } from "@mui/material";
2
2
  import { ArrowForward as g } from "@mui/icons-material";
3
3
  import { DateTimePicker as s } from "@mui/x-date-pickers/DateTimePicker";
4
- const l = (e) => e !== "ownerState", d = t(o, {
4
+ const l = (e) => e !== "ownerState", p = t(o, {
5
5
  name: "HCRangeSelector",
6
6
  slot: "root",
7
7
  shouldForwardProp: l
8
- })({}), R = t(o, {
8
+ })({ width: "100%", minWidth: 0 }), R = t(o, {
9
9
  name: "HCRangeSelector",
10
10
  slot: "numberRow"
11
11
  })({
@@ -17,12 +17,12 @@ const l = (e) => e !== "ownerState", d = t(o, {
17
17
  })({
18
18
  display: "flex",
19
19
  width: "100%"
20
- }), u = t(n, {
20
+ }), w = t(n, {
21
21
  name: "HCRangeSelector",
22
22
  slot: "numberInput"
23
23
  })(({ theme: e }) => ({
24
24
  marginRight: e.spacing(0.25)
25
- })), w = t(n, {
25
+ })), u = t(n, {
26
26
  name: "HCRangeSelector",
27
27
  slot: "numberInput"
28
28
  })(({ theme: e }) => ({
@@ -47,13 +47,13 @@ const l = (e) => e !== "ownerState", d = t(o, {
47
47
  marginRight: e.spacing(0.5),
48
48
  minWidth: 50,
49
49
  width: 85
50
- })), H = t(o, {
50
+ })), h = t(o, {
51
51
  name: "HCRangeSelector",
52
52
  slot: "compositeChild"
53
53
  })({
54
54
  flex: 1,
55
55
  maxWidth: 300
56
- }), h = t(o, {
56
+ }), H = t(o, {
57
57
  name: "HCRangeSelector",
58
58
  slot: "dateTrigger"
59
59
  })(({ theme: e }) => ({
@@ -110,22 +110,22 @@ const l = (e) => e !== "ownerState", d = t(o, {
110
110
  marginLeft: e.spacing(1)
111
111
  }));
112
112
  export {
113
- H as CompositeChild,
113
+ h as CompositeChild,
114
114
  x as CompositeCount,
115
115
  S as CompositeRow,
116
116
  I as DateLimitCaption,
117
117
  y as DatePicker,
118
118
  B as DateRangeInput,
119
- h as DateTrigger,
119
+ H as DateTrigger,
120
120
  b as DateTriggerArrow,
121
121
  D as DateTriggerEditButton,
122
122
  T as DateTriggerText,
123
123
  N as DateUnitControl,
124
124
  L as DateUnitRow,
125
125
  f as ModeColumn,
126
- w as NumberInputMax,
127
- u as NumberInputMin,
126
+ u as NumberInputMax,
127
+ w as NumberInputMin,
128
128
  C as NumberRangeRow,
129
129
  R as NumberRow,
130
- d as RangeSelectorRoot
130
+ p as RangeSelectorRoot
131
131
  };
@@ -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
  };