@hybridcore/ui 1.1.2 → 1.2.0
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/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- 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/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +119 -48
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +140 -0
- package/dist/main.js +1 -1
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
package/dist/index-wW2D1aTG.js
DELETED
|
@@ -1,957 +0,0 @@
|
|
|
1
|
-
import { jsx as T, jsxs as ge } from "react/jsx-runtime";
|
|
2
|
-
import Ne from "./components/treeview-filter/item-label/index.js";
|
|
3
|
-
import pe from "lodash";
|
|
4
|
-
import * as d from "react";
|
|
5
|
-
import { l as ue, P as o } from "./createTheme-agWfFD64.js";
|
|
6
|
-
import { u as Oe, d as Se, a as he, e as be } from "./ButtonBase-BYmh3G5j.js";
|
|
7
|
-
import { g as ye, u as Re, c as Me, a as xe } from "./chainPropTypes-DtBfUj5o.js";
|
|
8
|
-
import { c as Pe, d as ke, T as ze, g as Ee, s as K, b as je } from "./styled-Iq9jsO4F.js";
|
|
9
|
-
import { a as I, _ as _e } from "./extends-C3382pL0.js";
|
|
10
|
-
import { T as Fe, g as fe } from "./utils-DLpkeyhZ.js";
|
|
11
|
-
import { u as Ae } from "./useTheme-CeyGVuQP.js";
|
|
12
|
-
import { u as Ue } from "./useThemeProps-CzAjOL6F.js";
|
|
13
|
-
import { o as Ve } from "./ownerDocument-CUrv0DIK.js";
|
|
14
|
-
function Le(e, n = 0, r = 1) {
|
|
15
|
-
return process.env.NODE_ENV !== "production" && (e < n || e > r) && console.error(`MUI: The value provided ${e} is out of range [${n}, ${r}].`), Pe(e, n, r);
|
|
16
|
-
}
|
|
17
|
-
function We(e) {
|
|
18
|
-
e = e.slice(1);
|
|
19
|
-
const n = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
20
|
-
let r = e.match(n);
|
|
21
|
-
return r && r[0].length === 1 && (r = r.map((t) => t + t)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((t, i) => i < 3 ? parseInt(t, 16) : Math.round(parseInt(t, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
22
|
-
}
|
|
23
|
-
function Ce(e) {
|
|
24
|
-
if (e.type)
|
|
25
|
-
return e;
|
|
26
|
-
if (e.charAt(0) === "#")
|
|
27
|
-
return Ce(We(e));
|
|
28
|
-
const n = e.indexOf("("), r = e.substring(0, n);
|
|
29
|
-
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
|
|
30
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
31
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ue(9, e));
|
|
32
|
-
let t = e.substring(n + 1, e.length - 1), i;
|
|
33
|
-
if (r === "color") {
|
|
34
|
-
if (t = t.split(" "), i = t.shift(), t.length === 4 && t[3].charAt(0) === "/" && (t[3] = t[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(i) === -1)
|
|
35
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${i}\` color space.
|
|
36
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ue(10, i));
|
|
37
|
-
} else
|
|
38
|
-
t = t.split(",");
|
|
39
|
-
return t = t.map((p) => parseFloat(p)), {
|
|
40
|
-
type: r,
|
|
41
|
-
values: t,
|
|
42
|
-
colorSpace: i
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function Ke(e) {
|
|
46
|
-
const {
|
|
47
|
-
type: n,
|
|
48
|
-
colorSpace: r
|
|
49
|
-
} = e;
|
|
50
|
-
let {
|
|
51
|
-
values: t
|
|
52
|
-
} = e;
|
|
53
|
-
return n.indexOf("rgb") !== -1 ? t = t.map((i, p) => p < 3 ? parseInt(i, 10) : i) : n.indexOf("hsl") !== -1 && (t[1] = `${t[1]}%`, t[2] = `${t[2]}%`), n.indexOf("color") !== -1 ? t = `${r} ${t.join(" ")}` : t = `${t.join(", ")}`, `${n}(${t})`;
|
|
54
|
-
}
|
|
55
|
-
function Y(e, n) {
|
|
56
|
-
return e = Ce(e), n = Le(n), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${n}` : e.values[3] = n, Ke(e);
|
|
57
|
-
}
|
|
58
|
-
function He(e, n, r, t, i) {
|
|
59
|
-
if (process.env.NODE_ENV === "production")
|
|
60
|
-
return null;
|
|
61
|
-
const p = i || n;
|
|
62
|
-
return typeof e[n] < "u" ? new Error(`The prop \`${p}\` is not supported. Please remove it.`) : null;
|
|
63
|
-
}
|
|
64
|
-
function Ge({
|
|
65
|
-
props: e,
|
|
66
|
-
name: n
|
|
67
|
-
}) {
|
|
68
|
-
return Ue({
|
|
69
|
-
props: e,
|
|
70
|
-
name: n,
|
|
71
|
-
defaultTheme: ke,
|
|
72
|
-
themeId: ze
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function Te(e) {
|
|
76
|
-
var n, r, t = "";
|
|
77
|
-
if (typeof e == "string" || typeof e == "number") t += e;
|
|
78
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (n = 0; n < e.length; n++) e[n] && (r = Te(e[n])) && (t && (t += " "), t += r);
|
|
79
|
-
else for (n in e) e[n] && (t && (t += " "), t += n);
|
|
80
|
-
return t;
|
|
81
|
-
}
|
|
82
|
-
function ve() {
|
|
83
|
-
for (var e, n, r = 0, t = ""; r < arguments.length; ) (e = arguments[r++]) && (n = Te(e)) && (t && (t += " "), t += n);
|
|
84
|
-
return t;
|
|
85
|
-
}
|
|
86
|
-
const le = /* @__PURE__ */ d.createContext({});
|
|
87
|
-
process.env.NODE_ENV !== "production" && (le.displayName = "TreeViewContext");
|
|
88
|
-
function qe(e, n) {
|
|
89
|
-
for (let r = 0; r < e.length; r += 1)
|
|
90
|
-
if (n(e[r]))
|
|
91
|
-
return r;
|
|
92
|
-
return -1;
|
|
93
|
-
}
|
|
94
|
-
function Be(e, n) {
|
|
95
|
-
let r = 0, t = e.length - 1;
|
|
96
|
-
for (; r <= t; ) {
|
|
97
|
-
const i = Math.floor((r + t) / 2);
|
|
98
|
-
if (e[i].element === n)
|
|
99
|
-
return i;
|
|
100
|
-
e[i].element.compareDocumentPosition(n) & Node.DOCUMENT_POSITION_PRECEDING ? t = i - 1 : r = i + 1;
|
|
101
|
-
}
|
|
102
|
-
return r;
|
|
103
|
-
}
|
|
104
|
-
const ce = /* @__PURE__ */ d.createContext({});
|
|
105
|
-
process.env.NODE_ENV !== "production" && (ce.displayName = "DescendantContext");
|
|
106
|
-
function Je(e) {
|
|
107
|
-
const n = d.useRef(null);
|
|
108
|
-
return d.useEffect(() => {
|
|
109
|
-
n.current = e;
|
|
110
|
-
}, [e]), n.current;
|
|
111
|
-
}
|
|
112
|
-
const me = () => {
|
|
113
|
-
};
|
|
114
|
-
function Qe(e) {
|
|
115
|
-
const [, n] = d.useState(), {
|
|
116
|
-
registerDescendant: r = me,
|
|
117
|
-
unregisterDescendant: t = me,
|
|
118
|
-
descendants: i = [],
|
|
119
|
-
parentId: p = null
|
|
120
|
-
} = d.useContext(ce), h = qe(i, (u) => u.element === e.element), f = Je(i), m = i.some((u, l) => f && f[l] && f[l].element !== u.element);
|
|
121
|
-
return Oe(() => {
|
|
122
|
-
if (e.element)
|
|
123
|
-
return r({
|
|
124
|
-
...e,
|
|
125
|
-
index: h
|
|
126
|
-
}), () => {
|
|
127
|
-
t(e.element);
|
|
128
|
-
};
|
|
129
|
-
n({});
|
|
130
|
-
}, [r, t, h, m, e]), {
|
|
131
|
-
parentId: p,
|
|
132
|
-
index: h
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function Ie(e) {
|
|
136
|
-
const {
|
|
137
|
-
children: n,
|
|
138
|
-
id: r
|
|
139
|
-
} = e, [t, i] = d.useState([]), p = d.useCallback(({
|
|
140
|
-
element: m,
|
|
141
|
-
...u
|
|
142
|
-
}) => {
|
|
143
|
-
i((l) => {
|
|
144
|
-
let g;
|
|
145
|
-
if (l.length === 0)
|
|
146
|
-
return [{
|
|
147
|
-
...u,
|
|
148
|
-
element: m,
|
|
149
|
-
index: 0
|
|
150
|
-
}];
|
|
151
|
-
const x = Be(l, m);
|
|
152
|
-
if (l[x] && l[x].element === m)
|
|
153
|
-
g = l;
|
|
154
|
-
else {
|
|
155
|
-
const b = {
|
|
156
|
-
...u,
|
|
157
|
-
element: m,
|
|
158
|
-
index: x
|
|
159
|
-
};
|
|
160
|
-
g = l.slice(), g.splice(x, 0, b);
|
|
161
|
-
}
|
|
162
|
-
return g.forEach((b, E) => {
|
|
163
|
-
b.index = E;
|
|
164
|
-
}), g;
|
|
165
|
-
});
|
|
166
|
-
}, []), h = d.useCallback((m) => {
|
|
167
|
-
i((u) => u.filter((l) => m !== l.element));
|
|
168
|
-
}, []), f = d.useMemo(() => ({
|
|
169
|
-
descendants: t,
|
|
170
|
-
registerDescendant: p,
|
|
171
|
-
unregisterDescendant: h,
|
|
172
|
-
parentId: r
|
|
173
|
-
}), [t, p, h, r]);
|
|
174
|
-
return /* @__PURE__ */ T(ce.Provider, {
|
|
175
|
-
value: f,
|
|
176
|
-
children: n
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
process.env.NODE_ENV !== "production" && (Ie.propTypes = {
|
|
180
|
-
children: o.node,
|
|
181
|
-
id: o.string
|
|
182
|
-
});
|
|
183
|
-
function Xe(e) {
|
|
184
|
-
return Ee("MuiCollapse", e);
|
|
185
|
-
}
|
|
186
|
-
ye("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
187
|
-
const Ye = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], Ze = (e) => {
|
|
188
|
-
const {
|
|
189
|
-
orientation: n,
|
|
190
|
-
classes: r
|
|
191
|
-
} = e, t = {
|
|
192
|
-
root: ["root", `${n}`],
|
|
193
|
-
entered: ["entered"],
|
|
194
|
-
hidden: ["hidden"],
|
|
195
|
-
wrapper: ["wrapper", `${n}`],
|
|
196
|
-
wrapperInner: ["wrapperInner", `${n}`]
|
|
197
|
-
};
|
|
198
|
-
return xe(t, Xe, r);
|
|
199
|
-
}, en = K("div", {
|
|
200
|
-
name: "MuiCollapse",
|
|
201
|
-
slot: "Root",
|
|
202
|
-
overridesResolver: (e, n) => {
|
|
203
|
-
const {
|
|
204
|
-
ownerState: r
|
|
205
|
-
} = e;
|
|
206
|
-
return [n.root, n[r.orientation], r.state === "entered" && n.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && n.hidden];
|
|
207
|
-
}
|
|
208
|
-
})(({
|
|
209
|
-
theme: e,
|
|
210
|
-
ownerState: n
|
|
211
|
-
}) => I({
|
|
212
|
-
height: 0,
|
|
213
|
-
overflow: "hidden",
|
|
214
|
-
transition: e.transitions.create("height")
|
|
215
|
-
}, n.orientation === "horizontal" && {
|
|
216
|
-
height: "auto",
|
|
217
|
-
width: 0,
|
|
218
|
-
transition: e.transitions.create("width")
|
|
219
|
-
}, n.state === "entered" && I({
|
|
220
|
-
height: "auto",
|
|
221
|
-
overflow: "visible"
|
|
222
|
-
}, n.orientation === "horizontal" && {
|
|
223
|
-
width: "auto"
|
|
224
|
-
}), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
|
|
225
|
-
visibility: "hidden"
|
|
226
|
-
})), nn = K("div", {
|
|
227
|
-
name: "MuiCollapse",
|
|
228
|
-
slot: "Wrapper",
|
|
229
|
-
overridesResolver: (e, n) => n.wrapper
|
|
230
|
-
})(({
|
|
231
|
-
ownerState: e
|
|
232
|
-
}) => I({
|
|
233
|
-
// Hack to get children with a negative margin to not falsify the height computation.
|
|
234
|
-
display: "flex",
|
|
235
|
-
width: "100%"
|
|
236
|
-
}, e.orientation === "horizontal" && {
|
|
237
|
-
width: "auto",
|
|
238
|
-
height: "100%"
|
|
239
|
-
})), tn = K("div", {
|
|
240
|
-
name: "MuiCollapse",
|
|
241
|
-
slot: "WrapperInner",
|
|
242
|
-
overridesResolver: (e, n) => n.wrapperInner
|
|
243
|
-
})(({
|
|
244
|
-
ownerState: e
|
|
245
|
-
}) => I({
|
|
246
|
-
width: "100%"
|
|
247
|
-
}, e.orientation === "horizontal" && {
|
|
248
|
-
width: "auto",
|
|
249
|
-
height: "100%"
|
|
250
|
-
})), Z = /* @__PURE__ */ d.forwardRef(function(n, r) {
|
|
251
|
-
const t = Re({
|
|
252
|
-
props: n,
|
|
253
|
-
name: "MuiCollapse"
|
|
254
|
-
}), {
|
|
255
|
-
addEndListener: i,
|
|
256
|
-
children: p,
|
|
257
|
-
className: h,
|
|
258
|
-
collapsedSize: f = "0px",
|
|
259
|
-
component: m,
|
|
260
|
-
easing: u,
|
|
261
|
-
in: l,
|
|
262
|
-
onEnter: g,
|
|
263
|
-
onEntered: x,
|
|
264
|
-
onEntering: b,
|
|
265
|
-
onExit: E,
|
|
266
|
-
onExited: c,
|
|
267
|
-
onExiting: U,
|
|
268
|
-
orientation: V = "vertical",
|
|
269
|
-
style: M,
|
|
270
|
-
timeout: a = je.standard,
|
|
271
|
-
// eslint-disable-next-line react/prop-types
|
|
272
|
-
TransitionComponent: P = Fe
|
|
273
|
-
} = t, k = _e(t, Ye), z = I({}, t, {
|
|
274
|
-
orientation: V,
|
|
275
|
-
collapsedSize: f
|
|
276
|
-
}), C = Ze(z), H = Ae(), J = Se(), w = d.useRef(null), G = d.useRef(), L = typeof f == "number" ? `${f}px` : f, D = V === "horizontal", N = D ? "width" : "height", j = d.useRef(null), q = he(r, j), $ = (s) => (y) => {
|
|
277
|
-
if (s) {
|
|
278
|
-
const v = j.current;
|
|
279
|
-
y === void 0 ? s(v) : s(v, y);
|
|
280
|
-
}
|
|
281
|
-
}, O = () => w.current ? w.current[D ? "clientWidth" : "clientHeight"] : 0, Q = $((s, y) => {
|
|
282
|
-
w.current && D && (w.current.style.position = "absolute"), s.style[N] = L, g && g(s, y);
|
|
283
|
-
}), ee = $((s, y) => {
|
|
284
|
-
const v = O();
|
|
285
|
-
w.current && D && (w.current.style.position = "");
|
|
286
|
-
const {
|
|
287
|
-
duration: S,
|
|
288
|
-
easing: _
|
|
289
|
-
} = fe({
|
|
290
|
-
style: M,
|
|
291
|
-
timeout: a,
|
|
292
|
-
easing: u
|
|
293
|
-
}, {
|
|
294
|
-
mode: "enter"
|
|
295
|
-
});
|
|
296
|
-
if (a === "auto") {
|
|
297
|
-
const W = H.transitions.getAutoHeightDuration(v);
|
|
298
|
-
s.style.transitionDuration = `${W}ms`, G.current = W;
|
|
299
|
-
} else
|
|
300
|
-
s.style.transitionDuration = typeof S == "string" ? S : `${S}ms`;
|
|
301
|
-
s.style[N] = `${v}px`, s.style.transitionTimingFunction = _, b && b(s, y);
|
|
302
|
-
}), X = $((s, y) => {
|
|
303
|
-
s.style[N] = "auto", x && x(s, y);
|
|
304
|
-
}), ne = $((s) => {
|
|
305
|
-
s.style[N] = `${O()}px`, E && E(s);
|
|
306
|
-
}), te = $(c), B = $((s) => {
|
|
307
|
-
const y = O(), {
|
|
308
|
-
duration: v,
|
|
309
|
-
easing: S
|
|
310
|
-
} = fe({
|
|
311
|
-
style: M,
|
|
312
|
-
timeout: a,
|
|
313
|
-
easing: u
|
|
314
|
-
}, {
|
|
315
|
-
mode: "exit"
|
|
316
|
-
});
|
|
317
|
-
if (a === "auto") {
|
|
318
|
-
const _ = H.transitions.getAutoHeightDuration(y);
|
|
319
|
-
s.style.transitionDuration = `${_}ms`, G.current = _;
|
|
320
|
-
} else
|
|
321
|
-
s.style.transitionDuration = typeof v == "string" ? v : `${v}ms`;
|
|
322
|
-
s.style[N] = L, s.style.transitionTimingFunction = S, U && U(s);
|
|
323
|
-
});
|
|
324
|
-
return /* @__PURE__ */ T(P, I({
|
|
325
|
-
in: l,
|
|
326
|
-
onEnter: Q,
|
|
327
|
-
onEntered: X,
|
|
328
|
-
onEntering: ee,
|
|
329
|
-
onExit: ne,
|
|
330
|
-
onExited: te,
|
|
331
|
-
onExiting: B,
|
|
332
|
-
addEndListener: (s) => {
|
|
333
|
-
a === "auto" && J.start(G.current || 0, s), i && i(j.current, s);
|
|
334
|
-
},
|
|
335
|
-
nodeRef: j,
|
|
336
|
-
timeout: a === "auto" ? null : a
|
|
337
|
-
}, k, {
|
|
338
|
-
children: (s, y) => /* @__PURE__ */ T(en, I({
|
|
339
|
-
as: m,
|
|
340
|
-
className: Me(C.root, h, {
|
|
341
|
-
entered: C.entered,
|
|
342
|
-
exited: !l && L === "0px" && C.hidden
|
|
343
|
-
}[s]),
|
|
344
|
-
style: I({
|
|
345
|
-
[D ? "minWidth" : "minHeight"]: L
|
|
346
|
-
}, M),
|
|
347
|
-
ref: q
|
|
348
|
-
}, y, {
|
|
349
|
-
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
350
|
-
// that might have been forwarded from the Transition component.
|
|
351
|
-
ownerState: I({}, z, {
|
|
352
|
-
state: s
|
|
353
|
-
}),
|
|
354
|
-
children: /* @__PURE__ */ T(nn, {
|
|
355
|
-
ownerState: I({}, z, {
|
|
356
|
-
state: s
|
|
357
|
-
}),
|
|
358
|
-
className: C.wrapper,
|
|
359
|
-
ref: w,
|
|
360
|
-
children: /* @__PURE__ */ T(tn, {
|
|
361
|
-
ownerState: I({}, z, {
|
|
362
|
-
state: s
|
|
363
|
-
}),
|
|
364
|
-
className: C.wrapperInner,
|
|
365
|
-
children: p
|
|
366
|
-
})
|
|
367
|
-
})
|
|
368
|
-
}))
|
|
369
|
-
}));
|
|
370
|
-
});
|
|
371
|
-
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
372
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
373
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
374
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
375
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
376
|
-
/**
|
|
377
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
378
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
379
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
380
|
-
*/
|
|
381
|
-
addEndListener: o.func,
|
|
382
|
-
/**
|
|
383
|
-
* The content node to be collapsed.
|
|
384
|
-
*/
|
|
385
|
-
children: o.node,
|
|
386
|
-
/**
|
|
387
|
-
* Override or extend the styles applied to the component.
|
|
388
|
-
*/
|
|
389
|
-
classes: o.object,
|
|
390
|
-
/**
|
|
391
|
-
* @ignore
|
|
392
|
-
*/
|
|
393
|
-
className: o.string,
|
|
394
|
-
/**
|
|
395
|
-
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
396
|
-
* @default '0px'
|
|
397
|
-
*/
|
|
398
|
-
collapsedSize: o.oneOfType([o.number, o.string]),
|
|
399
|
-
/**
|
|
400
|
-
* The component used for the root node.
|
|
401
|
-
* Either a string to use a HTML element or a component.
|
|
402
|
-
*/
|
|
403
|
-
component: be,
|
|
404
|
-
/**
|
|
405
|
-
* The transition timing function.
|
|
406
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
407
|
-
*/
|
|
408
|
-
easing: o.oneOfType([o.shape({
|
|
409
|
-
enter: o.string,
|
|
410
|
-
exit: o.string
|
|
411
|
-
}), o.string]),
|
|
412
|
-
/**
|
|
413
|
-
* If `true`, the component will transition in.
|
|
414
|
-
*/
|
|
415
|
-
in: o.bool,
|
|
416
|
-
/**
|
|
417
|
-
* @ignore
|
|
418
|
-
*/
|
|
419
|
-
onEnter: o.func,
|
|
420
|
-
/**
|
|
421
|
-
* @ignore
|
|
422
|
-
*/
|
|
423
|
-
onEntered: o.func,
|
|
424
|
-
/**
|
|
425
|
-
* @ignore
|
|
426
|
-
*/
|
|
427
|
-
onEntering: o.func,
|
|
428
|
-
/**
|
|
429
|
-
* @ignore
|
|
430
|
-
*/
|
|
431
|
-
onExit: o.func,
|
|
432
|
-
/**
|
|
433
|
-
* @ignore
|
|
434
|
-
*/
|
|
435
|
-
onExited: o.func,
|
|
436
|
-
/**
|
|
437
|
-
* @ignore
|
|
438
|
-
*/
|
|
439
|
-
onExiting: o.func,
|
|
440
|
-
/**
|
|
441
|
-
* The transition orientation.
|
|
442
|
-
* @default 'vertical'
|
|
443
|
-
*/
|
|
444
|
-
orientation: o.oneOf(["horizontal", "vertical"]),
|
|
445
|
-
/**
|
|
446
|
-
* @ignore
|
|
447
|
-
*/
|
|
448
|
-
style: o.object,
|
|
449
|
-
/**
|
|
450
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
451
|
-
*/
|
|
452
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
453
|
-
/**
|
|
454
|
-
* The duration for the transition, in milliseconds.
|
|
455
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
456
|
-
*
|
|
457
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
458
|
-
* @default duration.standard
|
|
459
|
-
*/
|
|
460
|
-
timeout: o.oneOfType([o.oneOf(["auto"]), o.number, o.shape({
|
|
461
|
-
appear: o.number,
|
|
462
|
-
enter: o.number,
|
|
463
|
-
exit: o.number
|
|
464
|
-
})])
|
|
465
|
-
});
|
|
466
|
-
Z.muiSupportAuto = !0;
|
|
467
|
-
function on(e) {
|
|
468
|
-
const {
|
|
469
|
-
focus: n,
|
|
470
|
-
isExpanded: r,
|
|
471
|
-
isExpandable: t,
|
|
472
|
-
isFocused: i,
|
|
473
|
-
isDisabled: p,
|
|
474
|
-
isSelected: h,
|
|
475
|
-
multiSelect: f,
|
|
476
|
-
selectNode: m,
|
|
477
|
-
selectRange: u,
|
|
478
|
-
toggleExpansion: l
|
|
479
|
-
} = d.useContext(le), g = t ? t(e) : !1, x = r ? r(e) : !1, b = i ? i(e) : !1, E = p ? p(e) : !1, c = h ? h(e) : !1;
|
|
480
|
-
return {
|
|
481
|
-
disabled: E,
|
|
482
|
-
expanded: x,
|
|
483
|
-
selected: c,
|
|
484
|
-
focused: b,
|
|
485
|
-
handleExpansion: (a) => {
|
|
486
|
-
if (!E) {
|
|
487
|
-
b || n(a, e);
|
|
488
|
-
const P = f && (a.shiftKey || a.ctrlKey || a.metaKey);
|
|
489
|
-
g && !(P && r(e)) && l(a, e);
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
handleSelection: (a) => {
|
|
493
|
-
E || (b || n(a, e), f && (a.shiftKey || a.ctrlKey || a.metaKey) ? a.shiftKey ? u(a, {
|
|
494
|
-
end: e
|
|
495
|
-
}) : m(a, e, !0) : m(a, e));
|
|
496
|
-
},
|
|
497
|
-
preventSelection: (a) => {
|
|
498
|
-
(a.shiftKey || a.ctrlKey || a.metaKey || E) && a.preventDefault();
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
const de = /* @__PURE__ */ d.forwardRef(function(n, r) {
|
|
503
|
-
const {
|
|
504
|
-
classes: t,
|
|
505
|
-
className: i,
|
|
506
|
-
displayIcon: p,
|
|
507
|
-
expansionIcon: h,
|
|
508
|
-
icon: f,
|
|
509
|
-
label: m,
|
|
510
|
-
nodeId: u,
|
|
511
|
-
onClick: l,
|
|
512
|
-
onMouseDown: g,
|
|
513
|
-
...x
|
|
514
|
-
} = n, {
|
|
515
|
-
disabled: b,
|
|
516
|
-
expanded: E,
|
|
517
|
-
selected: c,
|
|
518
|
-
focused: U,
|
|
519
|
-
handleExpansion: V,
|
|
520
|
-
handleSelection: M,
|
|
521
|
-
preventSelection: a
|
|
522
|
-
} = on(u), P = f || h || p, k = (C) => {
|
|
523
|
-
a(C), g && g(C);
|
|
524
|
-
}, z = (C) => {
|
|
525
|
-
V(C), M(C), l && l(C);
|
|
526
|
-
};
|
|
527
|
-
return (
|
|
528
|
-
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
|
|
529
|
-
/* @__PURE__ */ ge("div", {
|
|
530
|
-
className: ve(i, t.root, E && t.expanded, c && t.selected, U && t.focused, b && t.disabled),
|
|
531
|
-
onClick: z,
|
|
532
|
-
onMouseDown: k,
|
|
533
|
-
ref: r,
|
|
534
|
-
...x,
|
|
535
|
-
children: [/* @__PURE__ */ T("div", {
|
|
536
|
-
className: t.iconContainer,
|
|
537
|
-
children: P
|
|
538
|
-
}), /* @__PURE__ */ T("div", {
|
|
539
|
-
className: t.label,
|
|
540
|
-
children: m
|
|
541
|
-
})]
|
|
542
|
-
})
|
|
543
|
-
);
|
|
544
|
-
});
|
|
545
|
-
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
546
|
-
// ----------------------------- Warning --------------------------------
|
|
547
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
548
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
549
|
-
// ----------------------------------------------------------------------
|
|
550
|
-
/**
|
|
551
|
-
* Override or extend the styles applied to the component.
|
|
552
|
-
* See [CSS API](#css) below for more details.
|
|
553
|
-
*/
|
|
554
|
-
classes: o.object,
|
|
555
|
-
/**
|
|
556
|
-
* className applied to the root element.
|
|
557
|
-
*/
|
|
558
|
-
className: o.string,
|
|
559
|
-
/**
|
|
560
|
-
* The icon to display next to the tree node's label. Either a parent or end icon.
|
|
561
|
-
*/
|
|
562
|
-
displayIcon: o.node,
|
|
563
|
-
/**
|
|
564
|
-
* The icon to display next to the tree node's label. Either an expansion or collapse icon.
|
|
565
|
-
*/
|
|
566
|
-
expansionIcon: o.node,
|
|
567
|
-
/**
|
|
568
|
-
* The icon to display next to the tree node's label.
|
|
569
|
-
*/
|
|
570
|
-
icon: o.node,
|
|
571
|
-
/**
|
|
572
|
-
* The tree node label.
|
|
573
|
-
*/
|
|
574
|
-
label: o.node,
|
|
575
|
-
/**
|
|
576
|
-
* The id of the node.
|
|
577
|
-
*/
|
|
578
|
-
nodeId: o.string.isRequired,
|
|
579
|
-
/**
|
|
580
|
-
* @ignore
|
|
581
|
-
*/
|
|
582
|
-
onClick: o.func,
|
|
583
|
-
/**
|
|
584
|
-
* @ignore
|
|
585
|
-
*/
|
|
586
|
-
onMouseDown: o.func
|
|
587
|
-
});
|
|
588
|
-
function rn(e) {
|
|
589
|
-
return Ee("MuiTreeItem", e);
|
|
590
|
-
}
|
|
591
|
-
const A = ye("MuiTreeItem", ["root", "group", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label"]), sn = (e) => {
|
|
592
|
-
const {
|
|
593
|
-
classes: n
|
|
594
|
-
} = e;
|
|
595
|
-
return xe({
|
|
596
|
-
root: ["root"],
|
|
597
|
-
content: ["content"],
|
|
598
|
-
expanded: ["expanded"],
|
|
599
|
-
selected: ["selected"],
|
|
600
|
-
focused: ["focused"],
|
|
601
|
-
disabled: ["disabled"],
|
|
602
|
-
iconContainer: ["iconContainer"],
|
|
603
|
-
label: ["label"],
|
|
604
|
-
group: ["group"]
|
|
605
|
-
}, rn, n);
|
|
606
|
-
}, an = K("li", {
|
|
607
|
-
name: "MuiTreeItem",
|
|
608
|
-
slot: "Root",
|
|
609
|
-
overridesResolver: (e, n) => n.root
|
|
610
|
-
})({
|
|
611
|
-
listStyle: "none",
|
|
612
|
-
margin: 0,
|
|
613
|
-
padding: 0,
|
|
614
|
-
outline: 0
|
|
615
|
-
}), ln = K(de, {
|
|
616
|
-
name: "MuiTreeItem",
|
|
617
|
-
slot: "Content",
|
|
618
|
-
overridesResolver: (e, n) => [n.content, n.iconContainer && {
|
|
619
|
-
[`& .${A.iconContainer}`]: n.iconContainer
|
|
620
|
-
}, n.label && {
|
|
621
|
-
[`& .${A.label}`]: n.label
|
|
622
|
-
}]
|
|
623
|
-
})(({
|
|
624
|
-
theme: e
|
|
625
|
-
}) => ({
|
|
626
|
-
padding: "0 8px",
|
|
627
|
-
width: "100%",
|
|
628
|
-
display: "flex",
|
|
629
|
-
alignItems: "center",
|
|
630
|
-
cursor: "pointer",
|
|
631
|
-
WebkitTapHighlightColor: "transparent",
|
|
632
|
-
"&:hover": {
|
|
633
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
634
|
-
// Reset on touch devices, it doesn't add specificity
|
|
635
|
-
"@media (hover: none)": {
|
|
636
|
-
backgroundColor: "transparent"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
[`&.${A.disabled}`]: {
|
|
640
|
-
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
641
|
-
backgroundColor: "transparent"
|
|
642
|
-
},
|
|
643
|
-
[`&.${A.focused}`]: {
|
|
644
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
645
|
-
},
|
|
646
|
-
[`&.${A.selected}`]: {
|
|
647
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : Y(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
648
|
-
"&:hover": {
|
|
649
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : Y(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
650
|
-
// Reset on touch devices, it doesn't add specificity
|
|
651
|
-
"@media (hover: none)": {
|
|
652
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : Y(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
|
-
[`&.${A.focused}`]: {
|
|
656
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Y(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
[`& .${A.iconContainer}`]: {
|
|
660
|
-
marginRight: 4,
|
|
661
|
-
width: 15,
|
|
662
|
-
display: "flex",
|
|
663
|
-
flexShrink: 0,
|
|
664
|
-
justifyContent: "center",
|
|
665
|
-
"& svg": {
|
|
666
|
-
fontSize: 18
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
[`& .${A.label}`]: {
|
|
670
|
-
width: "100%",
|
|
671
|
-
// fixes overflow - see https://github.com/mui/material-ui/issues/27372
|
|
672
|
-
minWidth: 0,
|
|
673
|
-
paddingLeft: 4,
|
|
674
|
-
position: "relative",
|
|
675
|
-
...e.typography.body1
|
|
676
|
-
}
|
|
677
|
-
})), cn = K(Z, {
|
|
678
|
-
name: "MuiTreeItem",
|
|
679
|
-
slot: "Group",
|
|
680
|
-
overridesResolver: (e, n) => n.group
|
|
681
|
-
})({
|
|
682
|
-
margin: 0,
|
|
683
|
-
padding: 0,
|
|
684
|
-
marginLeft: 17
|
|
685
|
-
}), we = /* @__PURE__ */ d.forwardRef(function(n, r) {
|
|
686
|
-
const t = Ge({
|
|
687
|
-
props: n,
|
|
688
|
-
name: "MuiTreeItem"
|
|
689
|
-
}), {
|
|
690
|
-
children: i,
|
|
691
|
-
className: p,
|
|
692
|
-
collapseIcon: h,
|
|
693
|
-
ContentComponent: f = de,
|
|
694
|
-
ContentProps: m,
|
|
695
|
-
endIcon: u,
|
|
696
|
-
expandIcon: l,
|
|
697
|
-
disabled: g,
|
|
698
|
-
icon: x,
|
|
699
|
-
id: b,
|
|
700
|
-
label: E,
|
|
701
|
-
nodeId: c,
|
|
702
|
-
onClick: U,
|
|
703
|
-
onMouseDown: V,
|
|
704
|
-
TransitionComponent: M = Z,
|
|
705
|
-
TransitionProps: a,
|
|
706
|
-
...P
|
|
707
|
-
} = t, {
|
|
708
|
-
icons: k = {},
|
|
709
|
-
focus: z,
|
|
710
|
-
isExpanded: C,
|
|
711
|
-
isFocused: H,
|
|
712
|
-
isSelected: J,
|
|
713
|
-
isDisabled: w,
|
|
714
|
-
multiSelect: G,
|
|
715
|
-
disabledItemsFocusable: L,
|
|
716
|
-
mapFirstChar: D,
|
|
717
|
-
unMapFirstChar: N,
|
|
718
|
-
registerNode: j,
|
|
719
|
-
unregisterNode: q,
|
|
720
|
-
treeId: $
|
|
721
|
-
} = d.useContext(le);
|
|
722
|
-
let O = null;
|
|
723
|
-
b != null ? O = b : $ && c && (O = `${$}-${c}`);
|
|
724
|
-
const [Q, ee] = d.useState(null), X = d.useRef(null), ne = he(ee, r), te = d.useMemo(() => ({
|
|
725
|
-
element: Q,
|
|
726
|
-
id: c
|
|
727
|
-
}), [c, Q]), {
|
|
728
|
-
index: B,
|
|
729
|
-
parentId: oe
|
|
730
|
-
} = Qe(te), s = !!(Array.isArray(i) ? i.length : i), y = C ? C(c) : !1, v = H ? H(c) : !1, S = J ? J(c) : !1, _ = w ? w(c) : !1, W = {
|
|
731
|
-
...t,
|
|
732
|
-
expanded: y,
|
|
733
|
-
focused: v,
|
|
734
|
-
selected: S,
|
|
735
|
-
disabled: _
|
|
736
|
-
}, R = sn(W);
|
|
737
|
-
let re, ie;
|
|
738
|
-
s && (y ? ie = h || k.defaultCollapseIcon : ie = l || k.defaultExpandIcon), s ? re = k.defaultParentIcon : re = u || k.defaultEndIcon, d.useEffect(() => {
|
|
739
|
-
if (j && q && B !== -1)
|
|
740
|
-
return j({
|
|
741
|
-
id: c,
|
|
742
|
-
idAttribute: O,
|
|
743
|
-
index: B,
|
|
744
|
-
parentId: oe,
|
|
745
|
-
expandable: s,
|
|
746
|
-
disabled: g
|
|
747
|
-
}), () => {
|
|
748
|
-
q(c);
|
|
749
|
-
};
|
|
750
|
-
}, [j, q, oe, B, c, s, g, O]), d.useEffect(() => {
|
|
751
|
-
if (D && N && E)
|
|
752
|
-
return D(c, X.current.textContent.substring(0, 1).toLowerCase()), () => {
|
|
753
|
-
N(c);
|
|
754
|
-
};
|
|
755
|
-
}, [D, N, c, E]);
|
|
756
|
-
let se;
|
|
757
|
-
G ? se = S : S && (se = !0);
|
|
758
|
-
function $e(F) {
|
|
759
|
-
if (F.target === F.currentTarget) {
|
|
760
|
-
let ae;
|
|
761
|
-
typeof F.target.getRootNode == "function" ? ae = F.target.getRootNode() : ae = Ve(F.target), ae.getElementById($).focus({
|
|
762
|
-
preventScroll: !0
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
const De = !L && _;
|
|
766
|
-
!v && F.currentTarget === F.target && !De && z(F, c);
|
|
767
|
-
}
|
|
768
|
-
return /* @__PURE__ */ ge(an, {
|
|
769
|
-
className: ve(R.root, p),
|
|
770
|
-
role: "treeitem",
|
|
771
|
-
"aria-expanded": s ? y : null,
|
|
772
|
-
"aria-selected": se,
|
|
773
|
-
"aria-disabled": _ || null,
|
|
774
|
-
ref: ne,
|
|
775
|
-
id: O,
|
|
776
|
-
tabIndex: -1,
|
|
777
|
-
...P,
|
|
778
|
-
ownerState: W,
|
|
779
|
-
onFocus: $e,
|
|
780
|
-
children: [/* @__PURE__ */ T(ln, {
|
|
781
|
-
as: f,
|
|
782
|
-
ref: X,
|
|
783
|
-
classes: {
|
|
784
|
-
root: R.content,
|
|
785
|
-
expanded: R.expanded,
|
|
786
|
-
selected: R.selected,
|
|
787
|
-
focused: R.focused,
|
|
788
|
-
disabled: R.disabled,
|
|
789
|
-
iconContainer: R.iconContainer,
|
|
790
|
-
label: R.label
|
|
791
|
-
},
|
|
792
|
-
label: E,
|
|
793
|
-
nodeId: c,
|
|
794
|
-
onClick: U,
|
|
795
|
-
onMouseDown: V,
|
|
796
|
-
icon: x,
|
|
797
|
-
expansionIcon: ie,
|
|
798
|
-
displayIcon: re,
|
|
799
|
-
ownerState: W,
|
|
800
|
-
...m
|
|
801
|
-
}), i && /* @__PURE__ */ T(Ie, {
|
|
802
|
-
id: c,
|
|
803
|
-
children: /* @__PURE__ */ T(cn, {
|
|
804
|
-
as: M,
|
|
805
|
-
unmountOnExit: !0,
|
|
806
|
-
className: R.group,
|
|
807
|
-
in: y,
|
|
808
|
-
component: "ul",
|
|
809
|
-
role: "group",
|
|
810
|
-
...a,
|
|
811
|
-
children: i
|
|
812
|
-
})
|
|
813
|
-
})]
|
|
814
|
-
});
|
|
815
|
-
});
|
|
816
|
-
process.env.NODE_ENV !== "production" && (we.propTypes = {
|
|
817
|
-
// ----------------------------- Warning --------------------------------
|
|
818
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
819
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
820
|
-
// ----------------------------------------------------------------------
|
|
821
|
-
/**
|
|
822
|
-
* The content of the component.
|
|
823
|
-
*/
|
|
824
|
-
children: o.node,
|
|
825
|
-
/**
|
|
826
|
-
* Override or extend the styles applied to the component.
|
|
827
|
-
*/
|
|
828
|
-
classes: o.object,
|
|
829
|
-
/**
|
|
830
|
-
* @ignore
|
|
831
|
-
*/
|
|
832
|
-
className: o.string,
|
|
833
|
-
/**
|
|
834
|
-
* The icon used to collapse the node.
|
|
835
|
-
*/
|
|
836
|
-
collapseIcon: o.node,
|
|
837
|
-
/**
|
|
838
|
-
* The component used for the content node.
|
|
839
|
-
* @default TreeItemContent
|
|
840
|
-
*/
|
|
841
|
-
ContentComponent: be,
|
|
842
|
-
/**
|
|
843
|
-
* Props applied to ContentComponent
|
|
844
|
-
*/
|
|
845
|
-
ContentProps: o.object,
|
|
846
|
-
/**
|
|
847
|
-
* If `true`, the node is disabled.
|
|
848
|
-
* @default false
|
|
849
|
-
*/
|
|
850
|
-
disabled: o.bool,
|
|
851
|
-
/**
|
|
852
|
-
* The icon displayed next to a end node.
|
|
853
|
-
*/
|
|
854
|
-
endIcon: o.node,
|
|
855
|
-
/**
|
|
856
|
-
* The icon used to expand the node.
|
|
857
|
-
*/
|
|
858
|
-
expandIcon: o.node,
|
|
859
|
-
/**
|
|
860
|
-
* The icon to display next to the tree node's label.
|
|
861
|
-
*/
|
|
862
|
-
icon: o.node,
|
|
863
|
-
/**
|
|
864
|
-
* @ignore
|
|
865
|
-
*/
|
|
866
|
-
id: o.string,
|
|
867
|
-
/**
|
|
868
|
-
* The tree node label.
|
|
869
|
-
*/
|
|
870
|
-
label: o.node,
|
|
871
|
-
/**
|
|
872
|
-
* The id of the node.
|
|
873
|
-
*/
|
|
874
|
-
nodeId: o.string.isRequired,
|
|
875
|
-
/**
|
|
876
|
-
* @ignore
|
|
877
|
-
*/
|
|
878
|
-
onClick: o.func,
|
|
879
|
-
/**
|
|
880
|
-
* This prop isn't supported.
|
|
881
|
-
* Use the `onNodeFocus` callback on the tree if you need to monitor a node's focus.
|
|
882
|
-
*/
|
|
883
|
-
onFocus: He,
|
|
884
|
-
/**
|
|
885
|
-
* @ignore
|
|
886
|
-
*/
|
|
887
|
-
onMouseDown: o.func,
|
|
888
|
-
/**
|
|
889
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
890
|
-
*/
|
|
891
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
892
|
-
/**
|
|
893
|
-
* The component used for the transition.
|
|
894
|
-
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
895
|
-
* @default Collapse
|
|
896
|
-
*/
|
|
897
|
-
TransitionComponent: o.elementType,
|
|
898
|
-
/**
|
|
899
|
-
* Props applied to the transition element.
|
|
900
|
-
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
901
|
-
*/
|
|
902
|
-
TransitionProps: o.object
|
|
903
|
-
});
|
|
904
|
-
function dn({
|
|
905
|
-
id: e,
|
|
906
|
-
idKey: n,
|
|
907
|
-
name: r,
|
|
908
|
-
checked: t,
|
|
909
|
-
disabled: i,
|
|
910
|
-
disabledIds: p,
|
|
911
|
-
onChange: h,
|
|
912
|
-
children: f,
|
|
913
|
-
defaultSelected: m
|
|
914
|
-
}) {
|
|
915
|
-
return /* @__PURE__ */ T(
|
|
916
|
-
we,
|
|
917
|
-
{
|
|
918
|
-
nodeId: String(e),
|
|
919
|
-
label: /* @__PURE__ */ T(
|
|
920
|
-
Ne,
|
|
921
|
-
{
|
|
922
|
-
id: e,
|
|
923
|
-
name: r,
|
|
924
|
-
checked: t,
|
|
925
|
-
disabled: i,
|
|
926
|
-
onChange: h
|
|
927
|
-
}
|
|
928
|
-
),
|
|
929
|
-
children: f && f.map((u, l) => {
|
|
930
|
-
const g = String(u[n]), x = pe.includes(m, g), b = pe.includes(p, g);
|
|
931
|
-
return /* @__PURE__ */ T(
|
|
932
|
-
dn,
|
|
933
|
-
{
|
|
934
|
-
id: g,
|
|
935
|
-
idKey: n,
|
|
936
|
-
name: u.name,
|
|
937
|
-
checked: x,
|
|
938
|
-
disabled: b,
|
|
939
|
-
disabledIds: p,
|
|
940
|
-
children: u.children,
|
|
941
|
-
onChange: h,
|
|
942
|
-
defaultSelected: m
|
|
943
|
-
},
|
|
944
|
-
l
|
|
945
|
-
);
|
|
946
|
-
})
|
|
947
|
-
}
|
|
948
|
-
);
|
|
949
|
-
}
|
|
950
|
-
export {
|
|
951
|
-
Ie as D,
|
|
952
|
-
dn as I,
|
|
953
|
-
le as T,
|
|
954
|
-
Ge as a,
|
|
955
|
-
ve as c,
|
|
956
|
-
He as u
|
|
957
|
-
};
|