@3sc/common-component 0.0.474 → 0.0.476
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.es.js +23 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -43686,11 +43686,11 @@ const jw = {
|
|
|
43686
43686
|
) || null;
|
|
43687
43687
|
const m = Tr((y == null ? void 0 : y.columns) || []);
|
|
43688
43688
|
if (!r && t && l) {
|
|
43689
|
-
let k = (u && qu({
|
|
43689
|
+
let k = (u && qu({ col: u, childUniqueKey: i, definitions: c })) ?? qu({ col: c, childUniqueKey: i });
|
|
43690
43690
|
const E = k.filter((P) => !m[P.key]), R = y && ((w = y == null ? void 0 : y.columns) == null ? void 0 : w.some(
|
|
43691
43691
|
(P) => (P == null ? void 0 : P.children) && P.children[i]
|
|
43692
43692
|
));
|
|
43693
|
-
if (
|
|
43693
|
+
if (l && (E.length || R === !1)) {
|
|
43694
43694
|
if (R == !1) {
|
|
43695
43695
|
const P = Tr(k);
|
|
43696
43696
|
k = (O = y == null ? void 0 : y.columns) == null ? void 0 : O.map((I) => {
|
|
@@ -43728,7 +43728,7 @@ const jw = {
|
|
|
43728
43728
|
m,
|
|
43729
43729
|
u,
|
|
43730
43730
|
i
|
|
43731
|
-
)) ?? u ?? qu({
|
|
43731
|
+
)) ?? u ?? qu({ col: c });
|
|
43732
43732
|
const b = [], x = Tr(u);
|
|
43733
43733
|
for (const k of c) {
|
|
43734
43734
|
const E = x[k.key] || {}, R = f[k.key] || {}, P = m[k.key], I = Tr(E.children || []), j = Tr(R.children || []);
|
|
@@ -43745,18 +43745,24 @@ const jw = {
|
|
|
43745
43745
|
}))), b.push(M);
|
|
43746
43746
|
}
|
|
43747
43747
|
return b.sort((k, E) => k.sequenceId - E.sequenceId);
|
|
43748
|
-
}, UW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), na = (
|
|
43749
|
-
|
|
43750
|
-
|
|
43751
|
-
|
|
43752
|
-
|
|
43753
|
-
|
|
43754
|
-
|
|
43755
|
-
|
|
43756
|
-
|
|
43757
|
-
|
|
43758
|
-
|
|
43759
|
-
|
|
43748
|
+
}, UW = (e) => e.sort((t, n) => t.sequenceId - n.sequenceId), na = ({ columns: e, childUniqueKey: t, definitions: n }) => {
|
|
43749
|
+
let r = n || e;
|
|
43750
|
+
return e == null ? void 0 : e.map((o) => {
|
|
43751
|
+
let i = r == null ? void 0 : r.find((a) => (a == null ? void 0 : a.key) === (o == null ? void 0 : o.key));
|
|
43752
|
+
return {
|
|
43753
|
+
id: o.id,
|
|
43754
|
+
key: o.key,
|
|
43755
|
+
sequenceId: o.sequenceId || o.id,
|
|
43756
|
+
isHidden: o.isHidden || !1,
|
|
43757
|
+
style: o.style || (i == null ? void 0 : i.style) || {},
|
|
43758
|
+
...(o == null ? void 0 : o.children) && {
|
|
43759
|
+
children: t ? {
|
|
43760
|
+
[t]: na({ columns: o.children, definitions: i == null ? void 0 : i.children })
|
|
43761
|
+
} : na({ columns: o.children, definitions: i == null ? void 0 : i.children })
|
|
43762
|
+
}
|
|
43763
|
+
};
|
|
43764
|
+
});
|
|
43765
|
+
}, Tr = (e) => Array.isArray(e) && (e == null ? void 0 : e.reduce((t, n) => (t[n.key] = n, t), {})), qu = ({ col: e, childUniqueKey: t, definitions: n }) => na({ columns: e, childUniqueKey: t, definitions: n }), HW = (e, t, n) => t.map((o) => {
|
|
43760
43766
|
const i = e[o.key], a = o.children ? o.children.map((l) => {
|
|
43761
43767
|
var d;
|
|
43762
43768
|
const c = Tr(Array.isArray(i == null ? void 0 : i.children) ? i == null ? void 0 : i.children : (d = i == null ? void 0 : i.children) == null ? void 0 : d[n]), u = c == null ? void 0 : c[l.key];
|
|
@@ -44242,7 +44248,7 @@ const QW = ve.memo(
|
|
|
44242
44248
|
let m = h.reduce(
|
|
44243
44249
|
(k, E) => k == null ? void 0 : k[E],
|
|
44244
44250
|
y
|
|
44245
|
-
) || null, b = na(p, i);
|
|
44251
|
+
) || null, b = na({ columns: p, childUniqueKey: i });
|
|
44246
44252
|
const x = Tr(m == null ? void 0 : m.columns);
|
|
44247
44253
|
b = b == null ? void 0 : b.map((k) => {
|
|
44248
44254
|
var P, I;
|
|
@@ -44308,7 +44314,7 @@ const QW = ve.memo(
|
|
|
44308
44314
|
let i = o.reduce(
|
|
44309
44315
|
(u, d) => u == null ? void 0 : u[d],
|
|
44310
44316
|
e
|
|
44311
|
-
) || null, a = na(t == null ? void 0 : t.grid, r);
|
|
44317
|
+
) || null, a = na({ columns: t == null ? void 0 : t.grid, childUniqueKey: r });
|
|
44312
44318
|
const l = Tr(i == null ? void 0 : i.columns);
|
|
44313
44319
|
a = a == null ? void 0 : a.map((u) => {
|
|
44314
44320
|
var p, h;
|