@3sc/common-component 0.0.586 → 0.0.588
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-C0_QMaXz.js → index-Bg46FZB_.js} +26 -19
- package/dist/{index-C0_QMaXz.js.map → index-Bg46FZB_.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/{nl-DJhVGE01.js → nl-aEuVQjAn.js} +2 -2
- package/dist/{nl-DJhVGE01.js.map → nl-aEuVQjAn.js.map} +1 -1
- package/dist/{tr-DAgjGztB.js → tr-D43sgt4i.js} +2 -2
- package/dist/{tr-DAgjGztB.js.map → tr-D43sgt4i.js.map} +1 -1
- package/package.json +1 -1
|
@@ -30561,9 +30561,9 @@ const UD = Q(jf)(({ theme: e }) => ({
|
|
|
30561
30561
|
async function JD(e) {
|
|
30562
30562
|
switch (e.split("-")[0]) {
|
|
30563
30563
|
case "tr":
|
|
30564
|
-
return (await import("./tr-
|
|
30564
|
+
return (await import("./tr-D43sgt4i.js")).tr;
|
|
30565
30565
|
case "nl":
|
|
30566
|
-
return (await import("./nl-
|
|
30566
|
+
return (await import("./nl-aEuVQjAn.js")).nl;
|
|
30567
30567
|
default:
|
|
30568
30568
|
return (await Promise.resolve().then(() => e4)).enUS;
|
|
30569
30569
|
}
|
|
@@ -40648,26 +40648,32 @@ const J$ = ({
|
|
|
40648
40648
|
} catch (r) {
|
|
40649
40649
|
console.error("saveColumnSettings failed:", r);
|
|
40650
40650
|
}
|
|
40651
|
-
}, rB = async ({ groupBy: e, gridPath: t, baseUrl: n }) => {
|
|
40651
|
+
}, rB = async ({ groupBy: e, gridPath: t, baseUrl: n, childUniqueKey: r }) => {
|
|
40652
40652
|
if (!(!t || !Array.isArray(e)))
|
|
40653
40653
|
try {
|
|
40654
|
-
const
|
|
40654
|
+
const o = JSON.parse(localStorage.getItem(wn.SETTINGS)) ?? {
|
|
40655
40655
|
platform: { theme: "light" }
|
|
40656
|
-
},
|
|
40657
|
-
let
|
|
40658
|
-
for (let
|
|
40659
|
-
const
|
|
40660
|
-
if (
|
|
40661
|
-
const c =
|
|
40662
|
-
if (Array.isArray(
|
|
40656
|
+
}, s = t.split("/").filter(Boolean);
|
|
40657
|
+
let a = o;
|
|
40658
|
+
for (let l = 0; l < s.length; l++) {
|
|
40659
|
+
const c = s[l];
|
|
40660
|
+
if (l === s.length - 1) {
|
|
40661
|
+
const d = a[c]?.groupBy, u = r ? a[c]?.groupByFilters?.[r] : null;
|
|
40662
|
+
if (r && Array.isArray(u) && JSON.stringify(u) === JSON.stringify(e) || !r && Array.isArray(d) && JSON.stringify(d) === JSON.stringify(e) || !d && e.length === 0)
|
|
40663
40663
|
return;
|
|
40664
|
-
|
|
40664
|
+
a[c] = {
|
|
40665
|
+
...a[c] ?? {},
|
|
40666
|
+
groupByFilters: {
|
|
40667
|
+
...a[c]?.groupByFilters || {},
|
|
40668
|
+
[r]: e
|
|
40669
|
+
}
|
|
40670
|
+
};
|
|
40665
40671
|
} else
|
|
40666
|
-
|
|
40672
|
+
a[c] = { ...a[c] ?? {} }, a = a[c];
|
|
40667
40673
|
}
|
|
40668
|
-
localStorage.setItem(wn.SETTINGS, JSON.stringify(
|
|
40669
|
-
} catch (
|
|
40670
|
-
console.error("saveGroupBySettings failed:",
|
|
40674
|
+
localStorage.setItem(wn.SETTINGS, JSON.stringify(o)), n && await Ls({ baseUrl: n, payload: o });
|
|
40675
|
+
} catch (o) {
|
|
40676
|
+
console.error("saveGroupBySettings failed:", o);
|
|
40671
40677
|
}
|
|
40672
40678
|
}, oB = (e) => {
|
|
40673
40679
|
if (!e) return null;
|
|
@@ -41991,9 +41997,10 @@ function yL(e) {
|
|
|
41991
41997
|
z !== S.current && (S.current = z, rB({
|
|
41992
41998
|
groupBy: C,
|
|
41993
41999
|
gridPath: c,
|
|
41994
|
-
baseUrl: d
|
|
42000
|
+
baseUrl: d,
|
|
42001
|
+
childUniqueKey: l
|
|
41995
42002
|
}));
|
|
41996
|
-
}, [C, c, d]);
|
|
42003
|
+
}, [C, c, d, l]);
|
|
41997
42004
|
const E = fe(l);
|
|
41998
42005
|
E.current !== l && (E.current = l, w.current = b, x.current = null);
|
|
41999
42006
|
const O = (z) => {
|
|
@@ -45129,4 +45136,4 @@ export {
|
|
|
45129
45136
|
qB as t,
|
|
45130
45137
|
xL as u
|
|
45131
45138
|
};
|
|
45132
|
-
//# sourceMappingURL=index-
|
|
45139
|
+
//# sourceMappingURL=index-Bg46FZB_.js.map
|