@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.
- package/dist/{AccordionSummary-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
- package/dist/Add-CB4mPrke.js +77 -0
- package/dist/Alert-BsT46Tgd.js +334 -0
- package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
- package/dist/ButtonBase-DG5J0YgP.js +823 -0
- package/dist/Delete-ofipLwkd.js +23 -0
- package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
- package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
- package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
- package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
- package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
- package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
- package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
- package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
- package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
- package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
- package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +108 -48
- package/dist/components/charts/forecast-cone/logic.js +271 -191
- package/dist/components/charts/forecast-cone/styled.js +26 -5
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/range-selector/components/enum-range/index.js +66 -0
- package/dist/components/range-selector/index.js +40 -30
- package/dist/components/range-selector/styled.js +11 -11
- package/dist/components/sortable-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/index.js +30 -28
- package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
- package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/tree-select/index.js +1 -1
- package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
- package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
- package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
- package/dist/main.d.ts +44 -1
- package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
- package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
- package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
- package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
- package/dist/useTimeout-CM6EsHyp.js +60 -0
- package/package.json +1 -1
- package/dist/Add-Bk8R160M.js +0 -403
- package/dist/ButtonBase-DObmf4Q_.js +0 -886
- package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
- package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
|
@@ -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-
|
|
6
|
-
import "../../Button-
|
|
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 { jsxs as ke, jsx as oe } from "react/jsx-runtime";
|
|
2
|
-
import { _ as Kt, a as A } from "../../../
|
|
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-
|
|
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 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-
|
|
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
|
|
3
|
-
import { CompositeListRange as
|
|
4
|
-
import { DateRange as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
15
|
+
D,
|
|
15
16
|
{
|
|
16
|
-
value:
|
|
17
|
+
value: i || {
|
|
17
18
|
minValue: "",
|
|
18
19
|
maxValue: ""
|
|
19
20
|
},
|
|
20
|
-
onChange:
|
|
21
|
+
onChange: m
|
|
21
22
|
}
|
|
22
23
|
) : e === "string" || e === "text" ? a = /* @__PURE__ */ n(
|
|
23
|
-
|
|
24
|
+
x,
|
|
24
25
|
{
|
|
25
|
-
value:
|
|
26
|
+
value: i || {
|
|
26
27
|
listOfPossibleValues: []
|
|
27
28
|
},
|
|
28
|
-
onChange:
|
|
29
|
+
onChange: m
|
|
29
30
|
}
|
|
30
|
-
) : e === "
|
|
31
|
+
) : e === "enum" ? a = /* @__PURE__ */ n(
|
|
31
32
|
c,
|
|
32
33
|
{
|
|
33
|
-
value:
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
48
|
+
f,
|
|
39
49
|
{
|
|
40
|
-
value:
|
|
41
|
-
startDate:
|
|
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:
|
|
57
|
+
onChange: m,
|
|
48
58
|
minDate: t.minDate || "",
|
|
49
59
|
maxDate: t.maxDate || ""
|
|
50
60
|
}
|
|
51
61
|
) : e === "composite-list" && (a = /* @__PURE__ */ n(
|
|
52
|
-
|
|
62
|
+
u,
|
|
53
63
|
{
|
|
54
|
-
value:
|
|
55
|
-
mapboxAccessToken:
|
|
56
|
-
onChange:
|
|
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(
|
|
71
|
+
)), /* @__PURE__ */ n(b, { ownerState: l, sx: s, children: a });
|
|
62
72
|
};
|
|
63
73
|
export {
|
|
64
|
-
|
|
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",
|
|
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
|
-
}),
|
|
20
|
+
}), w = t(n, {
|
|
21
21
|
name: "HCRangeSelector",
|
|
22
22
|
slot: "numberInput"
|
|
23
23
|
})(({ theme: e }) => ({
|
|
24
24
|
marginRight: e.spacing(0.25)
|
|
25
|
-
})),
|
|
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
|
-
})),
|
|
50
|
+
})), h = t(o, {
|
|
51
51
|
name: "HCRangeSelector",
|
|
52
52
|
slot: "compositeChild"
|
|
53
53
|
})({
|
|
54
54
|
flex: 1,
|
|
55
55
|
maxWidth: 300
|
|
56
|
-
}),
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
127
|
-
|
|
126
|
+
u as NumberInputMax,
|
|
127
|
+
w as NumberInputMin,
|
|
128
128
|
C as NumberRangeRow,
|
|
129
129
|
R as NumberRow,
|
|
130
|
-
|
|
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 "../../
|
|
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 "../../
|
|
14
|
-
import { T as We } from "../../Typography-
|
|
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
|
|
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,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { B as
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
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 } =
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
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:
|
|
20
|
-
columns:
|
|
21
|
-
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(
|
|
29
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
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:
|
|
58
|
-
labelPosition:
|
|
58
|
+
inputVariant: e.inputVariant,
|
|
59
|
+
labelPosition: e.labelPosition,
|
|
60
|
+
templateId: e.templateId,
|
|
59
61
|
defaultValues: r.propertyForm.defaultValues,
|
|
60
|
-
disablePropertyId:
|
|
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
|
-
|
|
73
|
+
v as PropertyList
|
|
72
74
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { T as l } from "../../../../Typography-
|
|
4
|
-
|
|
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
|
|
15
|
-
return e != null && e.datePattern && (
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
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: () =>
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
onClick: () => d.onEdit(t.row),
|
|
108
|
+
children: /* @__PURE__ */ o(u, { color: "primary" })
|
|
108
109
|
}
|
|
109
110
|
),
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
111
|
+
!a && /* @__PURE__ */ o(
|
|
112
|
+
s,
|
|
112
113
|
{
|
|
113
114
|
size: "medium",
|
|
114
|
-
onClick: () =>
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
onClick: () => d.onDelete(t.row),
|
|
116
|
+
children: /* @__PURE__ */ o(w, {})
|
|
116
117
|
}
|
|
117
118
|
)
|
|
118
|
-
] })
|
|
119
|
+
] });
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
];
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
y as default
|
|
124
125
|
};
|