bitboss-ui 2.1.16 → 2.1.18
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/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index19.js +8 -8
- package/dist/index21.js +16 -16
- package/dist/index212.js +5 -4
- package/dist/index213.js +5 -13
- package/dist/index214.js +5 -11
- package/dist/index215.js +5 -20
- package/dist/index216.js +5 -197
- package/dist/index217.js +7 -0
- package/dist/index218.js +2 -72
- package/dist/index219.js +4 -0
- package/dist/index220.js +2 -13
- package/dist/index221.js +12 -113
- package/dist/index222.js +13 -0
- package/dist/index223.js +20 -5
- package/dist/index224.js +72 -5
- package/dist/index226.js +13 -5
- package/dist/index227.js +114 -5
- package/dist/index229.js +86 -5
- package/dist/index23.js +15 -15
- package/dist/index231.js +29 -2
- package/dist/index232.js +16 -8
- package/dist/index233.js +17 -250
- package/dist/index234.js +49 -50
- package/dist/index235.js +15 -44
- package/dist/index236.js +3 -5
- package/dist/index237.js +12 -60
- package/dist/index238.js +33 -12
- package/dist/index239.js +2 -86
- package/dist/index241.js +6 -28
- package/dist/index242.js +7 -17
- package/dist/index243.js +181 -49
- package/dist/index244.js +106 -15
- package/dist/index246.js +100 -16
- package/dist/index248.js +4 -34
- package/dist/index249.js +197 -2
- package/dist/index25.js +3 -3
- package/dist/index251.js +3 -7
- package/dist/index252.js +5 -3
- package/dist/index253.js +5 -5
- package/dist/index254.js +8 -2
- package/dist/index255.js +250 -2
- package/dist/index256.js +50 -181
- package/dist/index257.js +39 -101
- package/dist/index258.js +7 -0
- package/dist/index259.js +55 -95
- package/dist/index260.js +15 -0
- package/dist/index261.js +1 -1
- package/dist/index264.js +45 -47
- package/dist/index267.js +6 -9
- package/dist/index268.js +16 -23
- package/dist/index269.js +9 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -6
- package/dist/index271.js +23 -16
- package/dist/index272.js +3 -9
- package/dist/index273.js +2 -9
- package/dist/index274.js +9 -8
- package/dist/index275.js +8 -5
- package/dist/index276.js +1 -1
- package/dist/index277.js +5 -2
- package/dist/index278.js +7 -4
- package/dist/index279.js +5 -8
- package/dist/index281.js +280 -3
- package/dist/index282.js +2 -3
- package/dist/index283.js +127 -0
- package/dist/index284.js +2 -7
- package/dist/index285.js +15 -3
- package/dist/index286.js +2 -7
- package/dist/index287.js +15 -10
- package/dist/index288.js +2 -280
- package/dist/index289.js +16 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -16
- package/dist/index291.js +19 -2
- package/dist/index292.js +2 -16
- package/dist/index293.js +3 -2
- package/dist/index295.js +7 -2
- package/dist/index296.js +3 -15
- package/dist/index297.js +7 -2
- package/dist/index298.js +10 -18
- package/dist/index299.js +4 -2
- package/dist/index300.js +3 -27
- package/dist/index301.js +17 -2
- package/dist/index302.js +28 -2
- package/dist/index303.js +6 -2
- package/dist/index304.js +1 -1
- package/dist/index305.js +3 -2
- package/dist/index306.js +3 -28
- package/dist/index307.js +3 -22
- package/dist/index308.js +7 -0
- package/dist/index309.js +18 -3
- package/dist/index310.js +2 -3
- package/dist/index311.js +27 -17
- package/dist/index312.js +2 -6
- package/dist/index313.js +1 -1
- package/dist/index314.js +2 -5
- package/dist/index315.js +2 -125
- package/dist/index316.js +2 -2
- package/dist/index317.js +22 -3
- package/dist/index320.js +718 -5
- package/dist/index321.js +363 -715
- package/dist/index322.js +58 -366
- package/dist/index323.js +5 -58
- package/dist/index325.js +32 -7
- package/dist/index326.js +28 -6
- package/dist/index328.js +227 -6
- package/dist/index329.js +57 -18
- package/dist/index33.js +8 -8
- package/dist/index330.js +33 -33
- package/dist/index331.js +8 -58
- package/dist/index332.js +5 -6
- package/dist/index333.js +7 -32
- package/dist/index334.js +47 -28
- package/dist/index335.js +9 -0
- package/dist/index336.js +2 -2
- package/dist/index337.js +3 -3
- package/dist/index338.js +6 -227
- package/dist/index339.js +17 -45
- package/dist/index340.js +1 -1
- package/dist/index342.js +1 -1
- package/dist/index343.js +483 -124
- package/dist/index344.js +120 -427
- package/dist/index345.js +48 -125
- package/dist/index346.js +421 -473
- package/dist/index347.js +125 -48
- package/dist/index35.js +2 -2
- package/dist/index37.js +15 -15
- package/dist/index39.js +6 -6
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/package.json +2 -2
- package/dist/index225.js +0 -7
- package/dist/index228.js +0 -7
- package/dist/index230.js +0 -5
- package/dist/index245.js +0 -14
- package/dist/index250.js +0 -9
- package/dist/index294.js +0 -21
- package/dist/index318.js +0 -5
- package/dist/index327.js +0 -10
- /package/dist/{index247.js → index240.js} +0 -0
package/dist/index264.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as U, ref as f, computed as x, watch as D, createElementBlock as d, openBlock as p, withModifiers as X, normalizeStyle as h, normalizeClass as $, createElementVNode as
|
2
|
-
import { isNil as b } from "./
|
3
|
-
import { useVirtualizer as te } from "./
|
1
|
+
import { defineComponent as U, ref as f, computed as x, watch as D, createElementBlock as d, openBlock as p, withModifiers as X, normalizeStyle as h, normalizeClass as $, createElementVNode as v, renderSlot as m, createTextVNode as z, toDisplayString as g, unref as H, Fragment as Z, renderList as ee } from "vue";
|
2
|
+
import { isNil as b } from "./index240.js";
|
3
|
+
import { useVirtualizer as te } from "./index334.js";
|
4
4
|
import { isNotNil as oe } from "./index140.js";
|
5
|
-
import { hash as L } from "./
|
6
|
-
import { useLocale as ne } from "./
|
5
|
+
import { hash as L } from "./index236.js";
|
6
|
+
import { useLocale as ne } from "./index221.js";
|
7
7
|
const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
8
8
|
key: 0,
|
9
9
|
class: "bb-listbox__loading"
|
10
10
|
}, se = {
|
11
11
|
key: 1,
|
12
12
|
class: "bb-listbox__no-data"
|
13
|
-
}, ae = ["aria-selected", "data-index"], ue = { class: "autocomplete-
|
13
|
+
}, ae = ["aria-selected", "data-index"], ue = { class: "autocomplete-option__label" }, be = /* @__PURE__ */ U({
|
14
14
|
__name: "ListBox",
|
15
15
|
props: {
|
16
16
|
compact: { type: Boolean },
|
@@ -24,30 +24,30 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
24
24
|
},
|
25
25
|
emits: ["option:selected", "option:unselected"],
|
26
26
|
setup(N, { expose: V, emit: O }) {
|
27
|
-
const o = N,
|
27
|
+
const o = N, y = O, { t: I } = ne(), s = f(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = x(
|
28
28
|
() => o.options.map((e) => ({ ...e, id: C(e.value) }))
|
29
|
-
),
|
29
|
+
), c = te({
|
30
30
|
get count() {
|
31
31
|
return o.options.length;
|
32
32
|
},
|
33
33
|
getScrollElement: () => s.value ? s.value : null,
|
34
|
-
estimateSize: () => o.compact ?
|
34
|
+
estimateSize: () => o.compact ? 32 : 40,
|
35
35
|
overscan: 5,
|
36
|
-
measureElement: () => o.compact ?
|
36
|
+
measureElement: () => o.compact ? 32 : 40,
|
37
37
|
useAnimationFrameWithResizeObserver: !0
|
38
38
|
}), F = (e) => {
|
39
|
-
e &&
|
40
|
-
}, M = x(() =>
|
39
|
+
e && c.value.measureElement(e);
|
40
|
+
}, M = x(() => c.value.getVirtualItems()), A = x(() => c.value.getTotalSize()), n = f(null), a = x(
|
41
41
|
() => o.open && o.options.some((e) => !e.disabled)
|
42
|
-
),
|
42
|
+
), _ = (e = 1) => {
|
43
43
|
const l = b(n.value) ? -1 : n.value;
|
44
44
|
let t = (l + e) % o.options.length;
|
45
45
|
for (; o.options[t].disabled && t !== l; )
|
46
|
-
t =
|
46
|
+
t = _(e + 1);
|
47
47
|
return t;
|
48
48
|
}, R = () => {
|
49
49
|
if (!a.value) return;
|
50
|
-
const e =
|
50
|
+
const e = _();
|
51
51
|
n.value = e, u();
|
52
52
|
}, S = (e = 1) => {
|
53
53
|
const l = b(n.value) ? 0 : n.value;
|
@@ -92,14 +92,14 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
92
92
|
}, k = () => {
|
93
93
|
n.value = null;
|
94
94
|
}, u = () => {
|
95
|
-
s.value && oe(n.value) &&
|
95
|
+
s.value && oe(n.value) && c.value.scrollToIndex(n.value, {
|
96
96
|
align: "center",
|
97
97
|
behavior: "smooth"
|
98
98
|
});
|
99
99
|
}, w = () => {
|
100
100
|
if (b(n.value) || !o.open) return;
|
101
101
|
const e = o.options[n.value];
|
102
|
-
e.selected ?
|
102
|
+
e.selected ? y("option:unselected", e) : y("option:selected", e);
|
103
103
|
}, B = f(0), E = () => {
|
104
104
|
s.value && (B.value = s.value.scrollHeight);
|
105
105
|
}, G = (e) => !e.disabled, K = (e) => {
|
@@ -124,7 +124,7 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
124
124
|
), D(
|
125
125
|
() => o.options,
|
126
126
|
(e, l) => {
|
127
|
-
L(e.map((t) => t.valueHash)) !== L(l.map((t) => t.valueHash)) && (
|
127
|
+
L(e.map((t) => t.valueHash)) !== L(l.map((t) => t.valueHash)) && (c.value.calculateRange(), E(), k());
|
128
128
|
},
|
129
129
|
{
|
130
130
|
flush: "post"
|
@@ -154,8 +154,8 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
154
154
|
}),
|
155
155
|
onClick: X(K, ["stop"])
|
156
156
|
}, [
|
157
|
-
|
158
|
-
|
157
|
+
v("span", le, [
|
158
|
+
v("span", {
|
159
159
|
ref_key: "inner",
|
160
160
|
ref: s,
|
161
161
|
class: "bb-listbox__inner-container",
|
@@ -164,7 +164,7 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
164
164
|
m(e.$slots, "options:prepend"),
|
165
165
|
e.loading && !e.options.length ? (p(), d("span", ie, [
|
166
166
|
m(e.$slots, "loading", {}, () => [
|
167
|
-
z(g(e.loadingText || H(
|
167
|
+
z(g(e.loadingText || H(I)("common.loadingText").value), 1)
|
168
168
|
])
|
169
169
|
])) : e.options.length ? (p(), d("span", {
|
170
170
|
key: 2,
|
@@ -191,35 +191,33 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
191
191
|
transform: `translateY(${t.start}px)`
|
192
192
|
})
|
193
193
|
}, [
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
c("span", re, g(i.value[t.index].text), 1)
|
217
|
-
])
|
194
|
+
m(e.$slots, "option", {
|
195
|
+
disabled: !!i.value[t.index].disabled,
|
196
|
+
focused: n.value === t.index,
|
197
|
+
index: t.index,
|
198
|
+
item: i.value[t.index].item,
|
199
|
+
selected: !!i.value[t.index].selected,
|
200
|
+
text: i.value[t.index].text,
|
201
|
+
value: i.value[t.index].value
|
202
|
+
}, () => [
|
203
|
+
l[0] || (l[0] = v("svg", {
|
204
|
+
class: "autocomplete-option__checkbox",
|
205
|
+
role: "presentation",
|
206
|
+
viewBox: "276.411 158.834 114.971 114.97"
|
207
|
+
}, [
|
208
|
+
v("path", {
|
209
|
+
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
210
|
+
fill: "none",
|
211
|
+
"stroke-linecap": "round",
|
212
|
+
"stroke-width": "14px"
|
213
|
+
})
|
214
|
+
], -1)),
|
215
|
+
v("span", ue, g(i.value[t.index].text), 1)
|
218
216
|
])
|
219
217
|
], 14, ae))), 128))
|
220
218
|
], 4)) : (p(), d("span", se, [
|
221
219
|
m(e.$slots, "no-data", {}, () => [
|
222
|
-
z(g(e.noDataText || H(
|
220
|
+
z(g(e.noDataText || H(I)("common.noDataText").value), 1)
|
223
221
|
])
|
224
222
|
])),
|
225
223
|
m(e.$slots, "options:append")
|
@@ -229,5 +227,5 @@ const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
229
227
|
}
|
230
228
|
});
|
231
229
|
export {
|
232
|
-
|
230
|
+
be as default
|
233
231
|
};
|
package/dist/index267.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return e;
|
6
|
-
}
|
7
|
-
return -1;
|
8
|
-
};
|
1
|
+
import e from "./index320.js";
|
2
|
+
import o from "./index321.js";
|
3
|
+
import r from "./index322.js";
|
4
|
+
const f = new r(o, e)._freeze();
|
9
5
|
export {
|
10
|
-
|
6
|
+
r as Mime,
|
7
|
+
f as default
|
11
8
|
};
|
package/dist/index268.js
CHANGED
@@ -1,25 +1,18 @@
|
|
1
|
-
const e = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
-
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
-
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
-
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
-
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
-
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
-
];
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
2
|
+
if (t) return t;
|
3
|
+
if (f(n))
|
4
|
+
return n;
|
5
|
+
if (r in n) {
|
6
|
+
const i = e(
|
7
|
+
[].concat(n[r]),
|
8
|
+
r,
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
13
|
+
}
|
14
|
+
return t;
|
15
|
+
}, null);
|
23
16
|
export {
|
24
|
-
|
17
|
+
e as findInTree
|
25
18
|
};
|
package/dist/index269.js
CHANGED
package/dist/index27.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as S, computed as n, createElementBlock as c, openBlock as r, normalizeClass as T, createBlock as w, createVNode as B, createElementVNode as p, resolveDynamicComponent as E, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as P, createTextVNode as V, toDisplayString as d, unref as m, Fragment as D, renderList as I } from "vue";
|
2
|
-
import { deburr as N } from "./
|
2
|
+
import { deburr as N } from "./index251.js";
|
3
3
|
import { getAsPercentage as $ } from "./index136.js";
|
4
4
|
import { useId as F } from "./index8.js";
|
5
5
|
import R from "./index69.js";
|
package/dist/index270.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
const o = (n, t) => {
|
2
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
3
|
+
const i = n[e];
|
4
|
+
if (t(i, e, n))
|
5
|
+
return e;
|
6
|
+
}
|
7
|
+
return -1;
|
8
|
+
};
|
5
9
|
export {
|
6
|
-
|
7
|
-
f as default
|
10
|
+
o as findRightIndex
|
8
11
|
};
|
package/dist/index271.js
CHANGED
@@ -1,18 +1,25 @@
|
|
1
|
-
const e =
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
|
1
|
+
const e = {
|
2
|
+
inert: ":not([inert]):not([inert] *)",
|
3
|
+
negTabIndex: ':not([tabindex^="-"])',
|
4
|
+
disabled: ":not(:disabled)"
|
5
|
+
}, n = [
|
6
|
+
`a[href]${e.inert}${e.negTabIndex}`,
|
7
|
+
`area[href]${e.inert}${e.negTabIndex}`,
|
8
|
+
`input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
|
9
|
+
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
10
|
+
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
11
|
+
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
12
|
+
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
13
|
+
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
14
|
+
// Discard until Firefox supports `:has()`
|
15
|
+
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
16
|
+
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
+
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
+
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
+
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
+
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
+
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
+
];
|
16
23
|
export {
|
17
|
-
|
24
|
+
n as default
|
18
25
|
};
|
package/dist/index272.js
CHANGED
package/dist/index273.js
CHANGED
@@ -1,11 +1,4 @@
|
|
1
|
-
|
2
|
-
const e = () => ({
|
3
|
-
getItemValue(n, f) {
|
4
|
-
if (typeof f > "u") return n;
|
5
|
-
if (typeof f == "function") return f(n);
|
6
|
-
if (typeof f == "string") return o(n, f);
|
7
|
-
}
|
8
|
-
});
|
1
|
+
const t = (d, o) => +d + +o;
|
9
2
|
export {
|
10
|
-
|
3
|
+
t as add
|
11
4
|
};
|
package/dist/index274.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { get as o } from "./index298.js";
|
2
|
+
const e = () => ({
|
3
|
+
getItemValue(n, f) {
|
4
|
+
if (typeof f > "u") return n;
|
5
|
+
if (typeof f == "function") return f(n);
|
6
|
+
if (typeof f == "string") return o(n, f);
|
7
|
+
}
|
8
|
+
});
|
8
9
|
export {
|
9
|
-
|
10
|
+
e as useItemValue
|
10
11
|
};
|
package/dist/index275.js
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
]
|
1
|
+
const u = (t, r) => t.reduce(
|
2
|
+
(e, n, o, d) => {
|
3
|
+
const s = r(n, o, d);
|
4
|
+
return e[s] = n, e;
|
5
|
+
},
|
6
|
+
{}
|
7
|
+
);
|
5
8
|
export {
|
6
|
-
|
9
|
+
u as indexBy
|
7
10
|
};
|
package/dist/index276.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
|
2
|
-
import { useLocale as k } from "./
|
2
|
+
import { useLocale as k } from "./index221.js";
|
3
3
|
import h from "./index13.js";
|
4
4
|
/* empty css */
|
5
5
|
import C from "./index85.js";
|
package/dist/index277.js
CHANGED
package/dist/index278.js
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
import { getType as
|
2
|
-
function
|
3
|
-
|
1
|
+
import { getType as o } from "./index299.js";
|
2
|
+
function c(e) {
|
3
|
+
if (o(e) !== "Object")
|
4
|
+
return !1;
|
5
|
+
const t = Object.getPrototypeOf(e);
|
6
|
+
return !!t && t.constructor === Object && t === Object.prototype;
|
4
7
|
}
|
5
8
|
export {
|
6
|
-
|
9
|
+
c as isPlainObject
|
7
10
|
};
|
package/dist/index279.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const t = Object.getPrototypeOf(e);
|
6
|
-
return !!t && t.constructor === Object && t === Object.prototype;
|
7
|
-
}
|
1
|
+
const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
|
2
|
+
f(r, u),
|
3
|
+
...o(r[n], n, f, f(r, u))
|
4
|
+
] : [f(r, u)]).flat();
|
8
5
|
export {
|
9
|
-
|
6
|
+
o as flattenTree
|
10
7
|
};
|