@hybridcore/ui 1.4.36 → 1.4.38
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/{DialogContent-B0_-g7B0.js → DialogContent-CtA2aNum.js} +1 -1
- package/dist/{Modal-CJn-Bqyo.js → Modal-DzZo-vlm.js} +1 -0
- package/dist/{Select-DwAJxKTN.js → Select-ush_fSWy.js} +1 -1
- package/dist/{TextField-BAXUnwnR.js → TextField-BjFXx91l.js} +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/context-menu/index.js +118 -118
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +3 -3
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +1 -1
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/template-filters/components/filter/index.js +27 -23
- package/dist/components/template-form/components/property-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
- package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
- package/dist/components/template-form/index.js +2 -2
- package/dist/components/template-property-filters/property.js +1 -1
- package/dist/components/tree-select/index.js +51 -48
- package/dist/components/treeview-filter/index.js +55 -591
- package/dist/components/treeview-filter/item/index.js +30 -34
- package/dist/components/treeview-filter/item/styled.js +14 -13
- package/dist/components/treeview-filter/item-label/index.js +1 -1
- package/dist/{dialog-DPGR2gik.js → dialog-DrVArHYg.js} +1 -1
- package/dist/{index-RfDWDd66.js → index-CAaDu0NI.js} +1979 -2071
- package/dist/{index-B_GNCJdV.js → index-D2tF2-ya.js} +2 -2
- package/dist/main.d.ts +6 -1
- package/dist/main.js +1 -1
- package/dist/{property-list-form-DgmTiBvu.js → property-list-form-CLSTkOmv.js} +2 -2
- package/package.json +2 -2
|
@@ -1,53 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import I from "../item-label/index.js";
|
|
3
3
|
import a from "lodash";
|
|
4
|
-
import { ArrowRight as I } from "@mui/icons-material";
|
|
5
4
|
import { TreeItem as h } from "./styled.js";
|
|
6
5
|
function x({
|
|
7
|
-
id:
|
|
8
|
-
idKey:
|
|
9
|
-
name:
|
|
6
|
+
id: m,
|
|
7
|
+
idKey: n,
|
|
8
|
+
name: p,
|
|
10
9
|
checked: i,
|
|
11
|
-
disabled:
|
|
12
|
-
disabledIds:
|
|
13
|
-
onChange:
|
|
14
|
-
children:
|
|
15
|
-
defaultSelected:
|
|
10
|
+
disabled: d,
|
|
11
|
+
disabledIds: o,
|
|
12
|
+
onChange: c,
|
|
13
|
+
children: s,
|
|
14
|
+
defaultSelected: l
|
|
16
15
|
}) {
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ e(
|
|
18
17
|
h,
|
|
19
18
|
{
|
|
20
|
-
|
|
21
|
-
label: /* @__PURE__ */
|
|
22
|
-
|
|
19
|
+
itemId: String(m),
|
|
20
|
+
label: /* @__PURE__ */ e(
|
|
21
|
+
I,
|
|
23
22
|
{
|
|
24
|
-
id:
|
|
25
|
-
name:
|
|
23
|
+
id: m,
|
|
24
|
+
name: p,
|
|
26
25
|
checked: i,
|
|
27
|
-
disabled:
|
|
28
|
-
onChange:
|
|
26
|
+
disabled: d,
|
|
27
|
+
onChange: c
|
|
29
28
|
}
|
|
30
29
|
),
|
|
31
30
|
checked: i,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children: r && r.map((t, u) => {
|
|
36
|
-
const m = String(t[e]), d = a.includes(p, m), b = a.includes(c, m);
|
|
37
|
-
return /* @__PURE__ */ o(
|
|
31
|
+
children: s && s.map((r, f) => {
|
|
32
|
+
const t = String(r[n]), u = a.includes(l, t), b = a.includes(o, t);
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
38
34
|
x,
|
|
39
35
|
{
|
|
40
|
-
id:
|
|
41
|
-
idKey:
|
|
42
|
-
name:
|
|
43
|
-
checked:
|
|
36
|
+
id: t,
|
|
37
|
+
idKey: n,
|
|
38
|
+
name: r.name,
|
|
39
|
+
checked: u,
|
|
44
40
|
disabled: b,
|
|
45
|
-
disabledIds:
|
|
46
|
-
children:
|
|
47
|
-
onChange:
|
|
48
|
-
defaultSelected:
|
|
41
|
+
disabledIds: o,
|
|
42
|
+
children: r.children,
|
|
43
|
+
onChange: c,
|
|
44
|
+
defaultSelected: l
|
|
49
45
|
},
|
|
50
|
-
|
|
46
|
+
f
|
|
51
47
|
);
|
|
52
48
|
})
|
|
53
49
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { TreeItem as
|
|
2
|
-
import { styled as
|
|
3
|
-
const
|
|
4
|
-
({ theme:
|
|
1
|
+
import { TreeItem as r } from "@mui/x-tree-view";
|
|
2
|
+
import { styled as t, alpha as i } from "@mui/material";
|
|
3
|
+
const l = t(r)(
|
|
4
|
+
({ theme: o, checked: e }) => ({
|
|
5
5
|
position: "relative",
|
|
6
6
|
"& .MuiTreeItem-content": {
|
|
7
7
|
flexDirection: "row-reverse",
|
|
8
8
|
borderBottom: "1px solid",
|
|
9
|
-
borderBottomColor:
|
|
10
|
-
boxSizing: "border-box"
|
|
9
|
+
borderBottomColor: o.palette.divider,
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
borderRadius: 0
|
|
11
12
|
},
|
|
12
13
|
"& .MuiTreeItem-iconContainer": {
|
|
13
14
|
transition: ".3s all",
|
|
@@ -15,10 +16,10 @@ const m = r(t)(
|
|
|
15
16
|
fontSize: "20px !important"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
|
-
"& .MuiTreeItem-content.Mui-expanded .MuiTreeItem-iconContainer": {
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
...
|
|
19
|
+
// "& .MuiTreeItem-content.Mui-expanded .MuiTreeItem-iconContainer": {
|
|
20
|
+
// // transform: "rotate(90deg)",
|
|
21
|
+
// },
|
|
22
|
+
...e && {
|
|
22
23
|
"&:before": {
|
|
23
24
|
content: '""',
|
|
24
25
|
position: "absolute",
|
|
@@ -27,12 +28,12 @@ const m = r(t)(
|
|
|
27
28
|
bottom: 0,
|
|
28
29
|
right: 0,
|
|
29
30
|
borderLeft: "1px solid",
|
|
30
|
-
borderLeftColor:
|
|
31
|
-
backgroundColor: i(
|
|
31
|
+
borderLeftColor: o.palette.primary.main,
|
|
32
|
+
backgroundColor: i(o.palette.primary.main, 0.1)
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
})
|
|
35
36
|
);
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
l as TreeItem
|
|
38
39
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { confirmable as x } from "react-confirm";
|
|
3
3
|
import { IconButton as h } from "@mui/material";
|
|
4
4
|
import { Close as C } from "@mui/icons-material";
|
|
5
|
-
import { c as D, g as T, D as b, a as y, b as B } from "./DialogContent-
|
|
5
|
+
import { c as D, g as T, D as b, a as y, b as B } from "./DialogContent-CtA2aNum.js";
|
|
6
6
|
import { _ as j, a as v } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
7
7
|
import * as d from "react";
|
|
8
8
|
import { P as o } from "./createTheme-DrgvKMA_.js";
|