@hybridcore/ui 1.6.13 → 1.6.14
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 +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -1,65 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import a from "
|
|
4
|
-
import
|
|
5
|
-
import m from "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ i(d, { children: [
|
|
18
|
-
/* @__PURE__ */ e(g, { variant: "h6", marginY: 2, children: "Recognition Property List" }),
|
|
19
|
-
r.list.length > 0 ? /* @__PURE__ */ e(
|
|
20
|
-
h,
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { DataGrid as a } from "@mui/x-data-grid";
|
|
3
|
+
import { A as n, a as d, d as s } from "../../../../Add-Bk8R160M.js";
|
|
4
|
+
import c from "./recognition-property-list-columns.js";
|
|
5
|
+
import m from "./recognition-property-list-form.js";
|
|
6
|
+
import g from "./recognition-property-list-logic.js";
|
|
7
|
+
import { B as p } from "../../../../TextField-Ca9ykixI.js";
|
|
8
|
+
import { T as h } from "../../../../Typography-D3X-Y5fh.js";
|
|
9
|
+
import { B as u } from "../../../../Button-Cem3nbwc.js";
|
|
10
|
+
import { a as f, b as y, c as b } from "../../../../dialog-BtJhjyF5.js";
|
|
11
|
+
const F = (i) => {
|
|
12
|
+
const { state: l, action: t } = g(i);
|
|
13
|
+
return /* @__PURE__ */ r(p, { children: [
|
|
14
|
+
/* @__PURE__ */ e(h, { variant: "h6", marginY: 2, children: "Recognition Property List" }),
|
|
15
|
+
i.list.length > 0 ? /* @__PURE__ */ e(
|
|
16
|
+
a,
|
|
21
17
|
{
|
|
22
|
-
rows:
|
|
23
|
-
columns:
|
|
24
|
-
onEdit:
|
|
25
|
-
onDelete:
|
|
18
|
+
rows: i.list,
|
|
19
|
+
columns: c({
|
|
20
|
+
onEdit: t.handleOnEditClick,
|
|
21
|
+
onDelete: t.handleOnDeleteClick
|
|
26
22
|
}),
|
|
27
|
-
getRowId: (
|
|
23
|
+
getRowId: (o) => `${o.owner}-${o.termValue}-${o.termMatch}-${o.score}-${o.type}`,
|
|
28
24
|
autoHeight: !0
|
|
29
25
|
}
|
|
30
|
-
) : /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */ e(
|
|
26
|
+
) : /* @__PURE__ */ r(n, { severity: "info", children: [
|
|
27
|
+
/* @__PURE__ */ e(d, { children: "No Recognition Property Added!" }),
|
|
32
28
|
"Add least one recognition property before save the template!"
|
|
33
29
|
] }),
|
|
34
30
|
/* @__PURE__ */ e(
|
|
35
|
-
|
|
31
|
+
u,
|
|
36
32
|
{
|
|
37
33
|
color: "primary",
|
|
38
|
-
onClick:
|
|
34
|
+
onClick: t.handleOnAddClick,
|
|
39
35
|
sx: { mt: 2 },
|
|
40
|
-
startIcon: /* @__PURE__ */ e(
|
|
36
|
+
startIcon: /* @__PURE__ */ e(s, {}),
|
|
41
37
|
children: "Add Recognition Property"
|
|
42
38
|
}
|
|
43
39
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
f,
|
|
46
42
|
{
|
|
47
43
|
open: l.dialog.isOpen,
|
|
48
|
-
onClose:
|
|
44
|
+
onClose: t.dialog.close,
|
|
49
45
|
"aria-labelledby": "alert-dialog-title",
|
|
50
46
|
"aria-describedby": "alert-dialog-description",
|
|
51
47
|
fullWidth: !0,
|
|
52
48
|
maxWidth: "sm",
|
|
53
49
|
scroll: "body",
|
|
54
50
|
children: [
|
|
55
|
-
/* @__PURE__ */ e(
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
|
|
51
|
+
/* @__PURE__ */ e(y, { id: "alert-dialog-title", children: "Add Recognition Property" }),
|
|
52
|
+
/* @__PURE__ */ e(b, { className: "pb-30", children: /* @__PURE__ */ e(
|
|
53
|
+
m,
|
|
58
54
|
{
|
|
59
55
|
defaultValues: l.recPropertyForm.defaultValues,
|
|
60
|
-
getFormValues:
|
|
61
|
-
onSubmit:
|
|
62
|
-
onCancel:
|
|
56
|
+
getFormValues: i.getFormValues,
|
|
57
|
+
onSubmit: t.handleSubmit,
|
|
58
|
+
onCancel: t.dialog.close
|
|
63
59
|
}
|
|
64
60
|
) })
|
|
65
61
|
]
|
|
@@ -68,5 +64,5 @@ const j = (r) => {
|
|
|
68
64
|
] });
|
|
69
65
|
};
|
|
70
66
|
export {
|
|
71
|
-
|
|
67
|
+
F as RecognitionPropertyList
|
|
72
68
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import d from "
|
|
3
|
-
|
|
4
|
-
import a from "@mui/icons-material/Delete";
|
|
5
|
-
const c = (r) => [
|
|
1
|
+
import { jsxs as i, Fragment as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { I as d, d as l, a as o } from "../../../../Delete-CVJ6FeDn.js";
|
|
3
|
+
const h = (r) => [
|
|
6
4
|
{ field: "ownerType", headerName: "Owner Type", width: 120 },
|
|
7
5
|
{ field: "owner", headerName: "Owner", width: 120 },
|
|
8
6
|
{
|
|
@@ -26,26 +24,26 @@ const c = (r) => [
|
|
|
26
24
|
width: 120,
|
|
27
25
|
sortable: !1,
|
|
28
26
|
filterable: !1,
|
|
29
|
-
renderCell: (
|
|
27
|
+
renderCell: (a) => /* @__PURE__ */ i(t, { children: [
|
|
30
28
|
/* @__PURE__ */ e(
|
|
31
29
|
d,
|
|
32
30
|
{
|
|
33
31
|
size: "medium",
|
|
34
|
-
onClick: () => r.onEdit(
|
|
35
|
-
children: /* @__PURE__ */ e(
|
|
32
|
+
onClick: () => r.onEdit(a.row),
|
|
33
|
+
children: /* @__PURE__ */ e(l, { color: "secondary" })
|
|
36
34
|
}
|
|
37
35
|
),
|
|
38
36
|
/* @__PURE__ */ e(
|
|
39
37
|
d,
|
|
40
38
|
{
|
|
41
39
|
size: "medium",
|
|
42
|
-
onClick: () => r.onDelete(
|
|
43
|
-
children: /* @__PURE__ */ e(
|
|
40
|
+
onClick: () => r.onDelete(a.row),
|
|
41
|
+
children: /* @__PURE__ */ e(o, {})
|
|
44
42
|
}
|
|
45
43
|
)
|
|
46
44
|
] })
|
|
47
45
|
}
|
|
48
46
|
];
|
|
49
47
|
export {
|
|
50
|
-
|
|
48
|
+
h as default
|
|
51
49
|
};
|
|
@@ -1,63 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import V, { jsxs as i, Fragment as S, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { i as C } from "../../../../generateUtilityClasses-Cc-owZ4J.js";
|
|
4
|
+
import { r as g } from "../../../../createSvgIcon-BghzB2Y9.js";
|
|
5
|
+
import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
|
|
6
|
+
import { F as c, T as b, B as M } from "../../../../TextField-Ca9ykixI.js";
|
|
7
|
+
import { I as u } from "../../../../InputLabel-CjD30ZHz.js";
|
|
8
|
+
import { S as d } from "../../../../Select-Bfhvigsx.js";
|
|
9
|
+
import { M as m } from "../../../../MenuItem-BKvRGLvM.js";
|
|
10
|
+
import { B as y } from "../../../../Button-Cem3nbwc.js";
|
|
11
|
+
var p = {}, q = C;
|
|
12
|
+
Object.defineProperty(p, "__esModule", {
|
|
13
|
+
value: !0
|
|
14
|
+
});
|
|
15
|
+
var w = p.default = void 0, N = q(g()), W = V;
|
|
16
|
+
w = p.default = (0, N.default)(/* @__PURE__ */ (0, W.jsx)("path", {
|
|
17
|
+
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
|
+
}), "Save");
|
|
19
|
+
function A({
|
|
20
|
+
defaultValues: x = {
|
|
14
21
|
owner: "",
|
|
15
|
-
ownerType:
|
|
16
|
-
type:
|
|
22
|
+
ownerType: h[0],
|
|
23
|
+
type: T[0],
|
|
17
24
|
termValue: "",
|
|
18
|
-
termMatch:
|
|
25
|
+
termMatch: v[0],
|
|
19
26
|
score: 0
|
|
20
27
|
},
|
|
21
|
-
getFormValues:
|
|
28
|
+
getFormValues: R,
|
|
22
29
|
onSubmit: E,
|
|
23
|
-
onCancel:
|
|
30
|
+
onCancel: O
|
|
24
31
|
}) {
|
|
25
|
-
const [r,
|
|
32
|
+
const [r, f] = o.useState(x), [I, _] = o.useState([]), [l, s] = o.useState({
|
|
26
33
|
termValue: !1,
|
|
27
34
|
score: !1
|
|
28
35
|
}), n = (e) => {
|
|
29
|
-
|
|
30
|
-
...
|
|
36
|
+
f((a) => ({
|
|
37
|
+
...a,
|
|
31
38
|
[e.target.name]: e.target.type === "checkbox" ? e.target.checked : e.target.value
|
|
32
39
|
}));
|
|
33
|
-
},
|
|
40
|
+
}, P = () => {
|
|
34
41
|
if (!r.termValue) {
|
|
35
|
-
|
|
42
|
+
s({ ...l, termValue: !0 });
|
|
36
43
|
return;
|
|
37
44
|
}
|
|
38
45
|
if (!r.score) {
|
|
39
|
-
|
|
46
|
+
s({ ...l, score: !0 });
|
|
40
47
|
return;
|
|
41
48
|
}
|
|
42
49
|
E(r);
|
|
43
50
|
};
|
|
44
|
-
return
|
|
45
|
-
}), [r.termValue]),
|
|
46
|
-
}), [r.score]),
|
|
51
|
+
return o.useEffect(() => (l.termValue && r.termValue && s({ ...l, termValue: !1 }), () => {
|
|
52
|
+
}), [r.termValue]), o.useEffect(() => (l.score && r.score && s({ ...l, score: !1 }), () => {
|
|
53
|
+
}), [r.score]), o.useEffect(() => {
|
|
47
54
|
if (r.ownerType === "PROPERTY") {
|
|
48
|
-
const e =
|
|
49
|
-
|
|
55
|
+
const e = R("properties");
|
|
56
|
+
_(e);
|
|
50
57
|
}
|
|
51
|
-
return r.ownerType === "EVENT" && r.owner !== "" &&
|
|
58
|
+
return r.ownerType === "EVENT" && r.owner !== "" && f((e) => ({
|
|
52
59
|
...e,
|
|
53
60
|
owner: ""
|
|
54
61
|
})), () => {
|
|
55
62
|
};
|
|
56
|
-
}, [r.ownerType]), /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */ t(
|
|
63
|
+
}, [r.ownerType]), /* @__PURE__ */ i(S, { children: [
|
|
64
|
+
/* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
65
|
+
/* @__PURE__ */ t(u, { id: "owner-type-select-label", children: "Owner Type" }),
|
|
59
66
|
/* @__PURE__ */ t(
|
|
60
|
-
|
|
67
|
+
d,
|
|
61
68
|
{
|
|
62
69
|
label: "Owner Type",
|
|
63
70
|
name: "ownerType",
|
|
@@ -65,14 +72,14 @@ function G({
|
|
|
65
72
|
id: "owner-type-select",
|
|
66
73
|
value: r.ownerType,
|
|
67
74
|
onChange: n,
|
|
68
|
-
children:
|
|
75
|
+
children: h.map((e, a) => /* @__PURE__ */ t(m, { value: e, children: e }, a))
|
|
69
76
|
}
|
|
70
77
|
)
|
|
71
78
|
] }),
|
|
72
|
-
r.ownerType === "PROPERTY" && /* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */ t(
|
|
79
|
+
r.ownerType === "PROPERTY" && /* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
80
|
+
/* @__PURE__ */ t(u, { id: "owner-select-label", children: "Owner" }),
|
|
74
81
|
/* @__PURE__ */ t(
|
|
75
|
-
|
|
82
|
+
d,
|
|
76
83
|
{
|
|
77
84
|
label: "Owner",
|
|
78
85
|
name: "owner",
|
|
@@ -80,14 +87,14 @@ function G({
|
|
|
80
87
|
id: "owner-select",
|
|
81
88
|
value: r.owner,
|
|
82
89
|
onChange: n,
|
|
83
|
-
children:
|
|
90
|
+
children: I.map((e, a) => /* @__PURE__ */ t(m, { value: e.propertyId, children: e.name }, a))
|
|
84
91
|
}
|
|
85
92
|
)
|
|
86
93
|
] }),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */ t(
|
|
94
|
+
/* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
95
|
+
/* @__PURE__ */ t(u, { id: "type-select-label", children: "Type" }),
|
|
89
96
|
/* @__PURE__ */ t(
|
|
90
|
-
|
|
97
|
+
d,
|
|
91
98
|
{
|
|
92
99
|
label: "Type",
|
|
93
100
|
name: "type",
|
|
@@ -95,14 +102,14 @@ function G({
|
|
|
95
102
|
id: "type-select",
|
|
96
103
|
value: r.type,
|
|
97
104
|
onChange: n,
|
|
98
|
-
children:
|
|
105
|
+
children: T.map((e, a) => /* @__PURE__ */ t(m, { value: e, children: e }, a))
|
|
99
106
|
}
|
|
100
107
|
)
|
|
101
108
|
] }),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */ t(
|
|
109
|
+
/* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
|
|
110
|
+
/* @__PURE__ */ t(u, { id: "term-match-select-label", children: "Term Match" }),
|
|
104
111
|
/* @__PURE__ */ t(
|
|
105
|
-
|
|
112
|
+
d,
|
|
106
113
|
{
|
|
107
114
|
label: "Type",
|
|
108
115
|
name: "termMatch",
|
|
@@ -110,12 +117,12 @@ function G({
|
|
|
110
117
|
id: "term-match-select",
|
|
111
118
|
value: r.termMatch,
|
|
112
119
|
onChange: n,
|
|
113
|
-
children:
|
|
120
|
+
children: v.map((e, a) => /* @__PURE__ */ t(m, { value: e, children: e }, a))
|
|
114
121
|
}
|
|
115
122
|
)
|
|
116
123
|
] }),
|
|
117
124
|
/* @__PURE__ */ t(
|
|
118
|
-
|
|
125
|
+
b,
|
|
119
126
|
{
|
|
120
127
|
label: "Term",
|
|
121
128
|
name: "termValue",
|
|
@@ -125,14 +132,14 @@ function G({
|
|
|
125
132
|
value: r.termValue,
|
|
126
133
|
onChange: n,
|
|
127
134
|
required: !0,
|
|
128
|
-
...
|
|
135
|
+
...l.termValue && {
|
|
129
136
|
error: !0,
|
|
130
137
|
helperText: "This field is required!"
|
|
131
138
|
}
|
|
132
139
|
}
|
|
133
140
|
),
|
|
134
141
|
/* @__PURE__ */ t(
|
|
135
|
-
|
|
142
|
+
b,
|
|
136
143
|
{
|
|
137
144
|
label: "Score",
|
|
138
145
|
name: "score",
|
|
@@ -142,20 +149,20 @@ function G({
|
|
|
142
149
|
value: r.score,
|
|
143
150
|
onChange: n,
|
|
144
151
|
required: !0,
|
|
145
|
-
...
|
|
152
|
+
...l.score && {
|
|
146
153
|
error: !0,
|
|
147
154
|
helperText: "This field is required!"
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
157
|
),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */ t(
|
|
158
|
+
/* @__PURE__ */ i(M, { display: "flex", justifyContent: "flex-end", children: [
|
|
159
|
+
/* @__PURE__ */ t(y, { variant: "contained", onClick: O, sx: { marginRight: 2 }, children: "Cancel" }),
|
|
153
160
|
/* @__PURE__ */ t(
|
|
154
|
-
|
|
161
|
+
y,
|
|
155
162
|
{
|
|
156
163
|
variant: "contained",
|
|
157
|
-
startIcon: /* @__PURE__ */ t(
|
|
158
|
-
onClick:
|
|
164
|
+
startIcon: /* @__PURE__ */ t(w, {}),
|
|
165
|
+
onClick: P,
|
|
159
166
|
children: "Save"
|
|
160
167
|
}
|
|
161
168
|
)
|
|
@@ -163,5 +170,5 @@ function G({
|
|
|
163
170
|
] });
|
|
164
171
|
}
|
|
165
172
|
export {
|
|
166
|
-
|
|
173
|
+
A as default
|
|
167
174
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import T from "@mui/material/InputLabel";
|
|
3
2
|
import c from "lodash";
|
|
4
|
-
import { TreeViewFilter as
|
|
5
|
-
import { useTreeSelectLogic as
|
|
6
|
-
import { TreeSelectRoot as
|
|
3
|
+
import { TreeViewFilter as T } from "../treeview-filter/index.js";
|
|
4
|
+
import { useTreeSelectLogic as f } from "./logic.js";
|
|
5
|
+
import { TreeSelectRoot as g, TreeSelectLabel as S, TreeSelectFormControl as x, TreeSelectInput as C, TreeSelectMenuItem as v, TreeSelectDialog as I, TreeSelectDialogContent as W, TreeSelectDialogActions as D, TreeSelectConfirmButton as L } from "./styled.js";
|
|
6
|
+
import { I as O } from "../../InputLabel-CjD30ZHz.js";
|
|
7
7
|
const K = (e) => {
|
|
8
|
-
const { state: h, actions: t } =
|
|
9
|
-
return /* @__PURE__ */ d(
|
|
10
|
-
a === "top" && e.label !== void 0 && /* @__PURE__ */ l(
|
|
11
|
-
/* @__PURE__ */ d(
|
|
12
|
-
a === "default" && e.label !== void 0 && /* @__PURE__ */ l(
|
|
8
|
+
const { state: h, actions: t } = f(e), { ownerState: s, open: u, expanded: m, selectedItems: i, idKey: o, variant: r, labelPosition: a } = h;
|
|
9
|
+
return /* @__PURE__ */ d(g, { ownerState: s, sx: e.sx, children: [
|
|
10
|
+
a === "top" && e.label !== void 0 && /* @__PURE__ */ l(S, { children: e.label }),
|
|
11
|
+
/* @__PURE__ */ d(x, { variant: r, fullWidth: !0, children: [
|
|
12
|
+
a === "default" && e.label !== void 0 && /* @__PURE__ */ l(O, { id: "select-label", children: e.label }),
|
|
13
13
|
/* @__PURE__ */ l(
|
|
14
|
-
|
|
14
|
+
C,
|
|
15
15
|
{
|
|
16
16
|
label: a === "default" ? e.label : void 0,
|
|
17
17
|
variant: r,
|
|
@@ -20,20 +20,20 @@ const K = (e) => {
|
|
|
20
20
|
value: e.selected,
|
|
21
21
|
open: !1,
|
|
22
22
|
onOpen: t.handleOpen,
|
|
23
|
-
children: i.length > 0 && i.map((n, b) => /* @__PURE__ */ l(
|
|
23
|
+
children: i.length > 0 && i.map((n, b) => /* @__PURE__ */ l(v, { value: c.get(n, o) ?? "", children: n == null ? void 0 : n.name }, b))
|
|
24
24
|
}
|
|
25
25
|
)
|
|
26
26
|
] }),
|
|
27
27
|
/* @__PURE__ */ d(
|
|
28
|
-
|
|
28
|
+
I,
|
|
29
29
|
{
|
|
30
30
|
open: u,
|
|
31
31
|
onClose: t.handleClose,
|
|
32
32
|
fullWidth: !0,
|
|
33
33
|
maxWidth: "sm",
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */ l(
|
|
36
|
-
|
|
35
|
+
/* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
|
|
36
|
+
T,
|
|
37
37
|
{
|
|
38
38
|
data: e.data,
|
|
39
39
|
selected: c.isArray(e.selected) ? e.selected : void 0,
|
|
@@ -44,8 +44,8 @@ const K = (e) => {
|
|
|
44
44
|
onChange: t.handleChange
|
|
45
45
|
}
|
|
46
46
|
) }),
|
|
47
|
-
/* @__PURE__ */ l(
|
|
48
|
-
|
|
47
|
+
/* @__PURE__ */ l(D, { children: /* @__PURE__ */ l(
|
|
48
|
+
L,
|
|
49
49
|
{
|
|
50
50
|
onClick: t.handleClose,
|
|
51
51
|
variant: "contained",
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { a as h } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
import { c as y } from "./createSvgIcon-D7U1nd99.js";
|
|
3
|
+
import { C as _, b as g } from "./generateUtilityClasses-Cc-owZ4J.js";
|
|
4
|
+
import { d as E } from "./debounce-46wSf_lW.js";
|
|
5
|
+
import { o as b, a as N } from "./ownerWindow-wg6foiOE.js";
|
|
6
|
+
import { a as S } from "./extends-C3382pL0.js";
|
|
7
|
+
import { s as $, a as C, b as I, u as T } from "./TransitionGroupContext-Ja2CgIob.js";
|
|
8
|
+
import { c as O } from "./createChainedFunction-C0nujS3O.js";
|
|
9
|
+
import * as P from "react";
|
|
10
|
+
import { u as w } from "./useId-BW-oWmul.js";
|
|
11
|
+
import { u as F } from "./useControlled-BYdyS7Pn.js";
|
|
12
|
+
import { u as V } from "./ButtonBase-DObmf4Q_.js";
|
|
13
|
+
var c = {};
|
|
14
|
+
function j(e, r) {
|
|
15
|
+
return process.env.NODE_ENV === "production" ? () => null : (o, t, u, n, a) => {
|
|
16
|
+
const s = u || "<<anonymous>>", i = a || t;
|
|
17
|
+
return typeof o[t] < "u" ? new Error(`The ${n} \`${i}\` of \`${s}\` is deprecated. ${r}`) : null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function q(e, r) {
|
|
21
|
+
var o, t;
|
|
22
|
+
return /* @__PURE__ */ P.isValidElement(e) && r.indexOf(
|
|
23
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
24
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
25
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
26
|
+
(o = e.type.muiName) != null ? o : (t = e.type) == null || (t = t._payload) == null || (t = t.value) == null ? void 0 : t.muiName
|
|
27
|
+
) !== -1;
|
|
28
|
+
}
|
|
29
|
+
function D(e, r) {
|
|
30
|
+
if (process.env.NODE_ENV === "production")
|
|
31
|
+
return () => null;
|
|
32
|
+
const o = r ? S({}, r.propTypes) : null;
|
|
33
|
+
return (u) => (n, a, s, i, l, ...v) => {
|
|
34
|
+
const m = l || a, f = o == null ? void 0 : o[m];
|
|
35
|
+
if (f) {
|
|
36
|
+
const p = f(n, a, s, i, l, ...v);
|
|
37
|
+
if (p)
|
|
38
|
+
return p;
|
|
39
|
+
}
|
|
40
|
+
return typeof n[a] < "u" && !n[u] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function R(e, r, o, t, u) {
|
|
44
|
+
if (process.env.NODE_ENV === "production")
|
|
45
|
+
return null;
|
|
46
|
+
const n = u || r;
|
|
47
|
+
return typeof e[r] < "u" ? new Error(`The prop \`${n}\` is not supported. Please remove it.`) : null;
|
|
48
|
+
}
|
|
49
|
+
const k = {
|
|
50
|
+
configure: (e) => {
|
|
51
|
+
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
52
|
+
`)), _.configure(e);
|
|
53
|
+
}
|
|
54
|
+
}, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
|
+
__proto__: null,
|
|
56
|
+
capitalize: g,
|
|
57
|
+
createChainedFunction: O,
|
|
58
|
+
createSvgIcon: y,
|
|
59
|
+
debounce: E,
|
|
60
|
+
deprecatedPropType: j,
|
|
61
|
+
isMuiElement: q,
|
|
62
|
+
ownerDocument: b,
|
|
63
|
+
ownerWindow: N,
|
|
64
|
+
requirePropFactory: D,
|
|
65
|
+
setRef: $,
|
|
66
|
+
unstable_ClassNameGenerator: k,
|
|
67
|
+
unstable_useEnhancedEffect: C,
|
|
68
|
+
unstable_useId: w,
|
|
69
|
+
unsupportedProp: R,
|
|
70
|
+
useControlled: F,
|
|
71
|
+
useEventCallback: I,
|
|
72
|
+
useForkRef: T,
|
|
73
|
+
useIsFocusVisible: V
|
|
74
|
+
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ h(G);
|
|
75
|
+
var d;
|
|
76
|
+
function Q() {
|
|
77
|
+
return d || (d = 1, function(e) {
|
|
78
|
+
"use client";
|
|
79
|
+
Object.defineProperty(e, "__esModule", {
|
|
80
|
+
value: !0
|
|
81
|
+
}), Object.defineProperty(e, "default", {
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
get: function() {
|
|
84
|
+
return r.createSvgIcon;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var r = M;
|
|
88
|
+
}(c)), c;
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
q as i,
|
|
92
|
+
Q as r
|
|
93
|
+
};
|