@plitzi/plitzi-ui 1.6.19 → 1.6.21
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/components/Button/Button.js +21 -19
- package/dist/components/Card/CardHeader.js +19 -17
- package/dist/components/CodeMirror/CodeMirror.js +1 -1
- package/dist/components/ContainerResizable/ContainerResizable.js +8 -6
- package/dist/components/Flex/Flex.styles.d.ts +2 -2
- package/dist/components/Form/index.js +6 -6
- package/dist/components/Input/InputContainer.js +11 -9
- package/dist/components/MenuList/MenuItem.js +23 -21
- package/dist/components/MenuList/MenuList.js +1 -1
- package/dist/components/Popup/PopupSidebar.js +1 -1
- package/dist/components/Popup/components/PopupSidePanel/PopupSidePanel.js +1 -1
- package/dist/components/QueryBuilder/QueryBuilderProvider.js +20 -20
- package/dist/components/QueryBuilder/Rule.js +4 -4
- package/dist/components/Select2/Select2.js +1 -1
- package/dist/components/Sidebar/Sidebar.js +22 -20
- package/dist/components/Tree/utils.js +1 -1
- package/dist/components/index.js +249 -249
- package/dist/helpers/lodash/omit.js +1 -1
- package/dist/index.js +112 -112
- package/package.json +1329 -80
|
@@ -27,25 +27,27 @@ var u = ({ ref: u, children: d, testId: f, className: p = "", iconPlacement: m =
|
|
|
27
27
|
e.contentChildren = n;
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
if (i(n))
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
if (i(n)) {
|
|
31
|
+
if (n.type === t) {
|
|
32
|
+
let t = n.props;
|
|
33
|
+
e.iconChildren = r(n, {
|
|
34
|
+
className: l(T.icon, t.className),
|
|
35
|
+
size: v,
|
|
36
|
+
testId: f ? `${f}-icon` : void 0,
|
|
37
|
+
...t,
|
|
38
|
+
intent: t.intent ?? "custom"
|
|
39
|
+
});
|
|
40
|
+
} else if (n.type === "i") {
|
|
41
|
+
let t = n.props;
|
|
42
|
+
e.iconChildren = r(n, {
|
|
43
|
+
className: l(T.icon, t.className),
|
|
44
|
+
size: v,
|
|
45
|
+
"data-testid": f ? `${f}-icon` : void 0,
|
|
46
|
+
...t,
|
|
47
|
+
intent: t.intent ?? "custom"
|
|
48
|
+
});
|
|
49
|
+
} else e.contentChildren = n;
|
|
50
|
+
}
|
|
49
51
|
}), e;
|
|
50
52
|
}, [
|
|
51
53
|
d,
|
|
@@ -25,23 +25,25 @@ var l = ({ ref: l, className: u, children: d, closeable: f, testId: p, intent: m
|
|
|
25
25
|
e.content.push(t);
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
if (a(t))
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
if (a(t)) {
|
|
29
|
+
if (t.type === n) {
|
|
30
|
+
let n = t.props;
|
|
31
|
+
e.icon = i(t, {
|
|
32
|
+
testId: p ? `${p}-icon` : void 0,
|
|
33
|
+
...n,
|
|
34
|
+
intent: n.intent ?? "custom",
|
|
35
|
+
size: h
|
|
36
|
+
});
|
|
37
|
+
} else if (t.type === "i") {
|
|
38
|
+
let n = t.props;
|
|
39
|
+
e.icon = i(t, {
|
|
40
|
+
"data-testid": p ? `${p}-icon` : void 0,
|
|
41
|
+
...n,
|
|
42
|
+
intent: n.intent ?? "custom",
|
|
43
|
+
size: h
|
|
44
|
+
});
|
|
45
|
+
} else e.content.push(t);
|
|
46
|
+
}
|
|
45
47
|
}), e;
|
|
46
48
|
}, [
|
|
47
49
|
d,
|
|
@@ -72,7 +72,7 @@ var _ = [], v = ({ ref: v, className: y, id: b, label: x = "", loading: S = !1,
|
|
|
72
72
|
detail: e.detail ?? "(Custom Token)"
|
|
73
73
|
}) : [], [k]), J = i((e) => {
|
|
74
74
|
let t = e.matchBefore(/[a-zA-Z0-9._-]+/);
|
|
75
|
-
if (
|
|
75
|
+
if (t && (t.from !== t.to || e.explicit) && q.length) return {
|
|
76
76
|
from: t.from,
|
|
77
77
|
options: q
|
|
78
78
|
};
|
|
@@ -14,12 +14,14 @@ var f = ["se"], p = ({ ref: p, className: m, parentRef: h, hoverMode: g = !1, au
|
|
|
14
14
|
o(p, () => W.current, [W]);
|
|
15
15
|
let G = c(null), K = s(() => A ? e(A, 150) : void 0, [A]), q = i(() => !h?.current && typeof document < "u" ? document.body : h?.current, [h]), J = i((e, t, n = !1) => {
|
|
16
16
|
let [r, i] = [[T, E], [D, O]];
|
|
17
|
-
if (w)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
if (w) {
|
|
18
|
+
if (t === F) {
|
|
19
|
+
let n = N / F;
|
|
20
|
+
t = e / n, e = t * n;
|
|
21
|
+
} else {
|
|
22
|
+
let n = F / N;
|
|
23
|
+
e = t / n, t = e * n;
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
r[0] && r[1] && (e = Math.max(r[0], e), t = Math.max(r[1], t)), i[0] && i[1] && (e = Math.min(i[0], e), t = Math.min(i[1], t));
|
|
25
27
|
let a = W.current?.getBoundingClientRect();
|
|
@@ -14,11 +14,11 @@ declare const _default: {
|
|
|
14
14
|
root: (props?: ({
|
|
15
15
|
direction?: "column" | "row" | "row-reverse" | "col-reverse" | null | undefined;
|
|
16
16
|
grow?: boolean | null | undefined;
|
|
17
|
-
basis?: 0 |
|
|
17
|
+
basis?: 0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96 | "auto" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full" | null | undefined;
|
|
18
18
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
19
19
|
items?: "start" | "end" | "center" | "baseline" | "stretch" | null | undefined;
|
|
20
20
|
justify?: "start" | "end" | "center" | "stretch" | "normal" | "between" | "around" | "evenly" | null | undefined;
|
|
21
|
-
gap?: 0 |
|
|
21
|
+
gap?: 0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 1.5 | null | undefined;
|
|
22
22
|
shrink?: 0 | 1 | null | undefined;
|
|
23
23
|
alignItems?: "start" | "end" | "center" | "baseline" | "stretch" | null | undefined;
|
|
24
24
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -9,12 +9,12 @@ import s from "./fields/FormSelect2.js";
|
|
|
9
9
|
import c from "./fields/FormSwitch.js";
|
|
10
10
|
import l from "./fields/FormTextArea.js";
|
|
11
11
|
import { fields_exports as u } from "./fields/index.js";
|
|
12
|
-
import d from "./
|
|
13
|
-
import f from "./
|
|
14
|
-
import p from "./
|
|
15
|
-
import m from "./
|
|
12
|
+
import d from "./hooks/useForm.js";
|
|
13
|
+
import f from "./hooks/useFormWatch.js";
|
|
14
|
+
import p from "./Form.js";
|
|
15
|
+
import m from "./Form.styles.js";
|
|
16
16
|
import { useFieldArray as h, useFormContext as g } from "react-hook-form";
|
|
17
17
|
//#region src/components/Form/index.ts
|
|
18
|
-
var _ =
|
|
18
|
+
var _ = p;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { e as Checkbox, t as Color, n as Conditional, r as Custom, i as FileUpload, a as Input, o as Select, s as Select2, c as Switch, l as TextArea, _ as default, u as fields,
|
|
20
|
+
export { e as Checkbox, t as Color, n as Conditional, r as Custom, i as FileUpload, a as Input, o as Select, s as Select2, c as Switch, l as TextArea, _ as default, u as fields, m as formTheme, h as useFieldArray, d as useForm, g as useFormContext, f as useFormWatch };
|
|
@@ -31,15 +31,17 @@ var f = ({ ref: f, className: p, id: m, label: h, error: g, disabled: _, intent:
|
|
|
31
31
|
inputChildren: []
|
|
32
32
|
};
|
|
33
33
|
return i.forEach(x, (n) => {
|
|
34
|
-
if (o(n))
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
if (o(n)) {
|
|
35
|
+
if (n.type === t) {
|
|
36
|
+
let t = n.props;
|
|
37
|
+
e.iconChildren = a(n, {
|
|
38
|
+
className: d(O.icon, t.className),
|
|
39
|
+
size: y,
|
|
40
|
+
...t,
|
|
41
|
+
intent: t.intent ?? "custom"
|
|
42
|
+
});
|
|
43
|
+
} else e.inputChildren.push(n);
|
|
44
|
+
}
|
|
43
45
|
}), e;
|
|
44
46
|
}, [
|
|
45
47
|
x,
|
|
@@ -35,27 +35,29 @@ var v = ({ className: v, children: y, value: b, disabled: x, testId: S, onSelect
|
|
|
35
35
|
e.content.push(n);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
if (c(n))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
if (c(n)) {
|
|
39
|
+
if (n.type === t) {
|
|
40
|
+
let t = n.props;
|
|
41
|
+
e.icon = s(n, {
|
|
42
|
+
testId: S ? `${S}-icon` : void 0,
|
|
43
|
+
...t,
|
|
44
|
+
intent: "custom"
|
|
45
|
+
});
|
|
46
|
+
} else if (n.type === a) {
|
|
47
|
+
let t = n.props;
|
|
48
|
+
e.subMenu = s(n, {
|
|
49
|
+
testId: S ? `${S}-menu` : void 0,
|
|
50
|
+
...t,
|
|
51
|
+
onSelect: C
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
let t = n.props;
|
|
55
|
+
e.content.push(s(n, {
|
|
56
|
+
key: r,
|
|
57
|
+
testId: S ? `${S}-${r}` : void 0,
|
|
58
|
+
...t
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
}), e;
|
|
61
63
|
}, [
|
|
@@ -11,7 +11,7 @@ var v = ({ ref: e, className: r, children: v, open: y, disabled: b = !1, testId:
|
|
|
11
11
|
let [T, E] = m(y ?? !1), D = p(null);
|
|
12
12
|
d(e, () => D.current, []);
|
|
13
13
|
let O = l(() => !b && y === void 0 && E((e) => !e), [b, y]), k = l((e) => {
|
|
14
|
-
|
|
14
|
+
T && D.current && y === void 0 && !D.current.contains(e.target) && !e.target.closest(".menu") && E(!1);
|
|
15
15
|
}, [T, y]), A = l((e) => {
|
|
16
16
|
w?.(e), y === void 0 && E(!1);
|
|
17
17
|
}, [w, y]), { trigger: j, menu: M } = f(() => {
|
|
@@ -34,7 +34,7 @@ var u = ({ className: o = "", value: u, canEmpty: d = !0, canHide: f = !1, place
|
|
|
34
34
|
b,
|
|
35
35
|
h
|
|
36
36
|
]), C = s((e) => y?.(e), [y]);
|
|
37
|
-
if (!
|
|
37
|
+
if (!f || b.length) return /* @__PURE__ */ l(r, {
|
|
38
38
|
value: u,
|
|
39
39
|
size: v,
|
|
40
40
|
onChange: C,
|
|
@@ -50,7 +50,7 @@ var p = s(({ className: s = "", placement: p = "right", placementTabs: m = "righ
|
|
|
50
50
|
E,
|
|
51
51
|
T
|
|
52
52
|
]);
|
|
53
|
-
if (
|
|
53
|
+
if (T.length && (E.length !== 0 || g)) return N.length === 0 && h ? /* @__PURE__ */ d(o, {
|
|
54
54
|
placement: m,
|
|
55
55
|
value: E,
|
|
56
56
|
canEmpty: h,
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { get as e } from "../../helpers/lodash/get.js";
|
|
2
2
|
import { set as t } from "../../helpers/lodash/set.js";
|
|
3
3
|
import { getQueryMap as n } from "./helpers/QueryBuilderHelper.js";
|
|
4
|
-
import r from "./
|
|
5
|
-
import
|
|
4
|
+
import { defaultCombinators as r } from "./helpers/QueryBuilderContants.js";
|
|
5
|
+
import i from "./QueryBuilderContext.js";
|
|
6
6
|
import { useCallback as a, useMemo as o, useRef as s } from "react";
|
|
7
7
|
import { jsx as c } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { produce as l } from "immer";
|
|
9
|
+
import { v4 as u } from "uuid";
|
|
10
10
|
//#region src/components/QueryBuilder/QueryBuilderProvider.tsx
|
|
11
|
-
var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSubGroups: h = !0, combinators: g =
|
|
11
|
+
var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSubGroups: h = !0, combinators: g = r, error: _ = !1, onChange: v }) => {
|
|
12
12
|
let y = s(f);
|
|
13
13
|
y.current = f;
|
|
14
14
|
let b = o(() => n(f), [f]), x = s(b);
|
|
15
15
|
x.current = b;
|
|
16
16
|
let S = a((t, n) => {
|
|
17
17
|
let { parentId: r, path: i } = e(x.current, n, {});
|
|
18
|
-
if (!
|
|
19
|
-
}, []), C = a((e) => v?.(
|
|
18
|
+
if (!r || i) return i === "" ? t : e(t, i);
|
|
19
|
+
}, []), C = a((e) => v?.(l(y.current, (t) => {
|
|
20
20
|
let n = S(t, e);
|
|
21
21
|
n && n.rules.push({
|
|
22
|
-
id:
|
|
22
|
+
id: u(),
|
|
23
23
|
field: "",
|
|
24
24
|
operator: "",
|
|
25
25
|
value: "",
|
|
26
26
|
enabled: !0
|
|
27
27
|
});
|
|
28
|
-
})), [v, S]), w = a((t) => v?.(
|
|
28
|
+
})), [v, S]), w = a((t) => v?.(l(y.current, (n) => {
|
|
29
29
|
let r = S(n, t);
|
|
30
|
-
|
|
31
|
-
id:
|
|
30
|
+
r && h && "rules" in r && r.rules.push({
|
|
31
|
+
id: u(),
|
|
32
32
|
combinator: e(g, "0.value", "and"),
|
|
33
33
|
rules: [{
|
|
34
|
-
id:
|
|
34
|
+
id: u(),
|
|
35
35
|
field: "",
|
|
36
36
|
operator: "",
|
|
37
37
|
value: "",
|
|
@@ -44,27 +44,27 @@ var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSub
|
|
|
44
44
|
g,
|
|
45
45
|
v,
|
|
46
46
|
S
|
|
47
|
-
]), T = a((n, r) => v?.(
|
|
47
|
+
]), T = a((n, r) => v?.(l(y.current, (i) => {
|
|
48
48
|
let a = S(i, n);
|
|
49
49
|
if (!a) return;
|
|
50
50
|
let { parentId: o } = e(x.current, n, {}), s = S(i, o);
|
|
51
|
-
|
|
51
|
+
s && "rules" in s && t(s, `rules.${s.rules.findIndex((e) => e.id === n)}`, {
|
|
52
52
|
...a,
|
|
53
53
|
...r
|
|
54
54
|
});
|
|
55
|
-
})), [v, S]), E = a((e, n) => v?.(
|
|
55
|
+
})), [v, S]), E = a((e, n) => v?.(l(y.current, (r) => {
|
|
56
56
|
let i = S(r, e);
|
|
57
57
|
i && t(i, "combinator", n);
|
|
58
|
-
})), [v, S]), D = a((e, n) => v?.(
|
|
58
|
+
})), [v, S]), D = a((e, n) => v?.(l(y.current, (r) => {
|
|
59
59
|
let i = S(r, e);
|
|
60
60
|
i && t(i, "enabled", n);
|
|
61
|
-
})), [v, S]), O = a((e, n) => v?.(
|
|
61
|
+
})), [v, S]), O = a((e, n) => v?.(l(y.current, (r) => {
|
|
62
62
|
let i = S(r, e);
|
|
63
63
|
i && t(i, "operator", n);
|
|
64
|
-
})), [v, S]), k = a((e, n) => v?.(
|
|
64
|
+
})), [v, S]), k = a((e, n) => v?.(l(y.current, (r) => {
|
|
65
65
|
let i = S(r, e);
|
|
66
66
|
i && t(i, "value", n);
|
|
67
|
-
})), [v, S]), A = a((t) => v?.(
|
|
67
|
+
})), [v, S]), A = a((t) => v?.(l(y.current, (n) => {
|
|
68
68
|
let r = S(n, t), i;
|
|
69
69
|
for (; r;) {
|
|
70
70
|
let { id: t, parentId: a } = e(x.current, r.id ?? "", "");
|
|
@@ -100,7 +100,7 @@ var d = ({ children: d, query: f, fields: p, allowDisableRules: m = !0, allowSub
|
|
|
100
100
|
g,
|
|
101
101
|
_
|
|
102
102
|
]);
|
|
103
|
-
return /* @__PURE__ */ c(
|
|
103
|
+
return /* @__PURE__ */ c(i, {
|
|
104
104
|
value: j,
|
|
105
105
|
children: d
|
|
106
106
|
});
|
|
@@ -4,15 +4,15 @@ import n from "../Flex/index.js";
|
|
|
4
4
|
import r from "../Button/index.js";
|
|
5
5
|
import i from "../Select2/index.js";
|
|
6
6
|
import a from "../Switch/index.js";
|
|
7
|
-
import o from "./
|
|
8
|
-
import
|
|
7
|
+
import { defaultOperators as o } from "./helpers/QueryBuilderContants.js";
|
|
8
|
+
import s from "./QueryBuilderContext.js";
|
|
9
9
|
import c from "./RuleOperator.js";
|
|
10
10
|
import l from "./RuleValue.js";
|
|
11
11
|
import { use as u, useCallback as d, useMemo as f } from "react";
|
|
12
12
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/QueryBuilder/Rule.tsx
|
|
14
14
|
var g = ({ className: g = "", id: _ = "", field: v = "", operator: y = "", value: b = "", isBinding: x = !1, enabled: S = !0, size: C, showBranches: w, direction: T, intent: E }) => {
|
|
15
|
-
let { fields: D, update: O, updateRuleOperator: k, updateRuleValue: A, updateEnabled: j, remove: M, allowDisableRules: N, error: P } = u(
|
|
15
|
+
let { fields: D, update: O, updateRuleOperator: k, updateRuleValue: A, updateEnabled: j, remove: M, allowDisableRules: N, error: P } = u(s), F = t("QueryBuilder", {
|
|
16
16
|
className: g,
|
|
17
17
|
componentKey: [
|
|
18
18
|
"rule",
|
|
@@ -63,7 +63,7 @@ var g = ({ className: g = "", id: _ = "", field: v = "", operator: y = "", value
|
|
|
63
63
|
});
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
let { value: n, defaultValue: r, operators: i } = t, a = e(i, "0.value", e(
|
|
66
|
+
let { value: n, defaultValue: r, operators: i } = t, a = e(i, "0.value", e(o, "0.value", "="));
|
|
67
67
|
O(_, {
|
|
68
68
|
field: n,
|
|
69
69
|
operator: a,
|
|
@@ -70,7 +70,7 @@ var v = [], y = c((c) => {
|
|
|
70
70
|
}, [S, Z]), u(() => {
|
|
71
71
|
H(F ? B.current?.getBoundingClientRect() : void 0);
|
|
72
72
|
}, [F]), u(() => {
|
|
73
|
-
if (
|
|
73
|
+
if (O && q && !a(q)) return q.value && !U.find((e) => "value" in e && e.value === q.value) && K((e) => {
|
|
74
74
|
if (e.find((e) => "value" in e && e.value === q.value)) return e;
|
|
75
75
|
let t = [...e];
|
|
76
76
|
return t.push({
|
|
@@ -28,26 +28,28 @@ var u = ({ className: u, children: d, value: f = [], multi: p = !1, canEmpty: m
|
|
|
28
28
|
]), { items: S } = c(() => {
|
|
29
29
|
let e = { items: [] };
|
|
30
30
|
return i.forEach(d, (n, i) => {
|
|
31
|
-
if (o(n))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
31
|
+
if (o(n)) {
|
|
32
|
+
if (n.type === t) {
|
|
33
|
+
let t = n.props, r = t.id ?? i.toString(), o = {
|
|
34
|
+
size: v,
|
|
35
|
+
...t,
|
|
36
|
+
key: i,
|
|
37
|
+
id: r
|
|
38
|
+
};
|
|
39
|
+
t.detatched || (o.active = b.includes(r)), e.items.push(a(n, o));
|
|
40
|
+
} else if (n.type === r) {
|
|
41
|
+
let t = n.props;
|
|
42
|
+
e.items.push(a(n, {
|
|
43
|
+
...t,
|
|
44
|
+
key: i
|
|
45
|
+
}));
|
|
46
|
+
} else {
|
|
47
|
+
let t = n.props;
|
|
48
|
+
e.items.push(a(n, {
|
|
49
|
+
...t,
|
|
50
|
+
key: i
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
}), e;
|
|
53
55
|
}, [
|