bitz-react-admin-ui 2.8.5 → 2.9.1

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.
Files changed (52) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/_virtual/lodash.mjs +4 -0
  4. package/dist/components/BitzTable/Store/utils/index.d.ts +3 -1
  5. package/dist/components/BitzTable/Store/utils/index.mjs +26 -38
  6. package/dist/components/BitzTable/Table/index.mjs +433 -430
  7. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +144 -142
  8. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +55 -49
  9. package/dist/components/BitzTable/ToolBar/index.d.ts +3 -0
  10. package/dist/node_modules/classnames/index.mjs +1 -1
  11. package/dist/node_modules/lodash/lodash.mjs +3680 -0
  12. package/dist/node_modules/lodash-es/_SetCache.mjs +13 -0
  13. package/dist/node_modules/lodash-es/_arrayIncludes.mjs +8 -0
  14. package/dist/node_modules/lodash-es/_arrayIncludesWith.mjs +9 -0
  15. package/dist/node_modules/lodash-es/_arraySome.mjs +9 -0
  16. package/dist/node_modules/lodash-es/_baseFindIndex.mjs +9 -0
  17. package/dist/node_modules/lodash-es/_baseForOwn.mjs +8 -0
  18. package/dist/node_modules/lodash-es/_baseHasIn.mjs +6 -0
  19. package/dist/node_modules/lodash-es/_baseIndexOf.mjs +9 -0
  20. package/dist/node_modules/lodash-es/_baseIsEqual.mjs +8 -0
  21. package/dist/node_modules/lodash-es/_baseIsEqualDeep.mjs +32 -0
  22. package/dist/node_modules/lodash-es/_baseIsMatch.mjs +31 -0
  23. package/dist/node_modules/lodash-es/_baseIsNaN.mjs +6 -0
  24. package/dist/node_modules/lodash-es/_baseIteratee.mjs +11 -0
  25. package/dist/node_modules/lodash-es/_baseMatches.mjs +12 -0
  26. package/dist/node_modules/lodash-es/_baseMatchesProperty.mjs +17 -0
  27. package/dist/node_modules/lodash-es/_baseProperty.mjs +8 -0
  28. package/dist/node_modules/lodash-es/_basePropertyDeep.mjs +9 -0
  29. package/dist/node_modules/lodash-es/_baseUniq.mjs +34 -0
  30. package/dist/node_modules/lodash-es/_cacheHas.mjs +6 -0
  31. package/dist/node_modules/lodash-es/_createSet.mjs +10 -0
  32. package/dist/node_modules/lodash-es/_equalArrays.mjs +40 -0
  33. package/dist/node_modules/lodash-es/_equalByTag.mjs +45 -0
  34. package/dist/node_modules/lodash-es/_equalObjects.mjs +36 -0
  35. package/dist/node_modules/lodash-es/_getMatchData.mjs +12 -0
  36. package/dist/node_modules/lodash-es/_hasPath.mjs +19 -0
  37. package/dist/node_modules/lodash-es/_isStrictComparable.mjs +7 -0
  38. package/dist/node_modules/lodash-es/_mapToArray.mjs +9 -0
  39. package/dist/node_modules/lodash-es/_matchesStrictComparable.mjs +8 -0
  40. package/dist/node_modules/lodash-es/_setCacheAdd.mjs +7 -0
  41. package/dist/node_modules/lodash-es/_setCacheHas.mjs +6 -0
  42. package/dist/node_modules/lodash-es/_setToArray.mjs +9 -0
  43. package/dist/node_modules/lodash-es/_strictIndexOf.mjs +9 -0
  44. package/dist/node_modules/lodash-es/hasIn.mjs +8 -0
  45. package/dist/node_modules/lodash-es/isNil.mjs +6 -0
  46. package/dist/node_modules/lodash-es/mapValues.mjs +12 -0
  47. package/dist/node_modules/lodash-es/noop.mjs +5 -0
  48. package/dist/node_modules/lodash-es/property.mjs +10 -0
  49. package/dist/node_modules/lodash-es/uniq.mjs +7 -0
  50. package/dist/node_modules/prop-types/index.mjs +1 -1
  51. package/dist/style.css +1 -1
  52. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var p = { exports: {} };
1
+ var s = { exports: {} };
2
2
  export {
3
- p as __module
3
+ s as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var s = { exports: {} };
1
+ var p = { exports: {} };
2
2
  export {
3
- s as __module
3
+ p as __module
4
4
  };
@@ -0,0 +1,4 @@
1
+ var o = { exports: {} };
2
+ export {
3
+ o as __module
4
+ };
@@ -10,5 +10,7 @@ export declare const loopFilter: (columns: any[], columnsMap: any) => any[];
10
10
  export declare const genColumnKey: (column: any, defaultKey?: any) => any;
11
11
  export declare const flattenColumns: (columns: any) => any[];
12
12
  export declare const columnSort: (columnsMap: Record<string, ColumnsConfigProps>) => (a: any, b: any) => number;
13
- export declare function updateNestedObject(obj: any, prop: any, val: any): {};
13
+ export declare function updateNestedObject(obj: any, prop: any, val: any): {
14
+ [x: string]: any;
15
+ };
14
16
  export declare const removePropertiesWithoutMutation: (obj: any, without: any) => {};
@@ -1,62 +1,50 @@
1
- const h = (e, r) => ((t, n) => t.map((d) => {
2
- const o = u(d, d.index), s = n[o];
3
- return s && s.show === !1 ? !1 : {
1
+ import { l as y } from "../../../../node_modules/lodash/lodash.mjs";
2
+ const I = (e, r) => ((t, i) => t.map((d) => {
3
+ const f = h(d, d.index), o = i[f];
4
+ return o && o.show === !1 ? !1 : {
4
5
  ...d,
5
- ...s
6
+ ...o
6
7
  // ...item?.isOperationCol && {
7
8
  // width: finish ? config?.width ?? item?.width : item?.width
8
9
  // },
9
10
  };
10
- }))(e, r).filter(Boolean), u = (e, r) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${r}`, k = (e) => {
11
+ }))(e, r).filter(Boolean), h = (e, r) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${r}`, k = (e) => {
11
12
  const r = [];
12
- function i(t) {
13
- t.children ? t.children.forEach(i) : t.dataIndex && !t.exportHidden && r.push({
13
+ function n(t) {
14
+ t.children ? t.children.forEach(n) : t.dataIndex && !t.exportHidden && r.push({
14
15
  field: t.dataIndex,
15
16
  title: t.title,
16
17
  show: !0
17
18
  });
18
19
  }
19
- return e.forEach(i), r;
20
- }, p = (e) => (r, i) => {
21
- var f, l, x, y;
22
- const { fixed: t, index: n } = r, { fixed: d, index: o } = i;
20
+ return e.forEach(n), r;
21
+ }, g = (e) => (r, n) => {
22
+ var s, l, x, u;
23
+ const { fixed: t, index: i } = r, { fixed: d, index: f } = n;
23
24
  if (t === "left" && d !== "left" || d === "right" && t !== "right")
24
25
  return -2;
25
26
  if (d === "left" && t !== "left" || t === "right" && d !== "right")
26
27
  return 2;
27
- const s = r.key || `${n}`, a = i.key || `${o}`;
28
- return (f = e[s]) != null && f.order || (l = e[a]) != null && l.order ? (((x = e[s]) == null ? void 0 : x.order) || 0) - (((y = e[a]) == null ? void 0 : y.order) || 0) : (r.index || 0) - (i.index || 0);
28
+ const o = r.key || `${i}`, a = n.key || `${f}`;
29
+ return (s = e[o]) != null && s.order || (l = e[a]) != null && l.order ? (((x = e[o]) == null ? void 0 : x.order) || 0) - (((u = e[a]) == null ? void 0 : u.order) || 0) : (r.index || 0) - (n.index || 0);
29
30
  };
30
- function I(e, r, i) {
31
- const t = {};
32
- let n = "";
33
- const d = (o, s, a) => {
34
- for (const f in o)
35
- if (o.hasOwnProperty(f) && (typeof o[f] == "object" && o[f] !== null && (n = f, t[f] = { ...o[f] }, d(o[f], s, a)), f === s)) {
36
- const l = t[n];
37
- t[n] = {
38
- ...l,
39
- [s]: a
40
- // [prop]: current.disabled || current.fixed ? true : val,
41
- }, n = "";
42
- }
43
- };
44
- return d(e, r, i), t;
31
+ function K(e, r, n) {
32
+ return y.mapValues(e, (t) => ({ ...t, [r]: n }));
45
33
  }
46
- const c = (e, r) => {
47
- let i = {};
34
+ const p = (e, r) => {
35
+ let n = {};
48
36
  for (let t in e)
49
37
  if (e.hasOwnProperty(t)) {
50
- let n = e[t];
51
- typeof n == "object" && n !== null && (n = c(n, r)), r.includes(t) || (i[t] = n);
38
+ let i = e[t];
39
+ typeof i == "object" && i !== null && (i = p(i, r)), r.includes(t) || (n[t] = i);
52
40
  }
53
- return i;
41
+ return n;
54
42
  };
55
43
  export {
56
- p as columnSort,
44
+ g as columnSort,
57
45
  k as flattenColumns,
58
- u as genColumnKey,
59
- h as loopFilter,
60
- c as removePropertiesWithoutMutation,
61
- I as updateNestedObject
46
+ h as genColumnKey,
47
+ I as loopFilter,
48
+ p as removePropertiesWithoutMutation,
49
+ K as updateNestedObject
62
50
  };