bitz-react-admin-ui 2.4.6 → 2.4.8

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 (45) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index6.mjs +4 -0
  11. package/dist/_virtual/log.mjs +4 -0
  12. package/dist/_virtual/positionFns.mjs +4 -0
  13. package/dist/_virtual/propTypes.mjs +4 -0
  14. package/dist/_virtual/shims.mjs +4 -0
  15. package/dist/_virtual/utils.mjs +4 -0
  16. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +67 -0
  17. package/dist/components/BitzTable/Table/index.d.ts +26 -26
  18. package/dist/components/BitzTable/Table/index.mjs +393 -368
  19. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +6 -6
  20. package/dist/components/BitzTable/index.d.ts +3 -0
  21. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +1 -1
  22. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +50 -49
  23. package/dist/components/BitzTableSelect/TextBlock/index.mjs +4 -4
  24. package/dist/components/BitzTableSelect/index.d.ts +0 -1
  25. package/dist/components/BitzTableSelect/index.mjs +17 -19
  26. package/dist/components/BitzTableSelect/utils.d.ts +4 -0
  27. package/dist/components/BitzTableSelect/utils.mjs +5 -0
  28. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  29. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
  30. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  31. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  32. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  33. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  34. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  35. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  36. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  37. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  38. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  39. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  40. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  41. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  42. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  43. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  44. package/dist/style.css +1 -1
  45. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { css as r } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
2
- import { columnsSortStyles as l, appearanceConfigStyles as n, exportConfigStyles as d } from "../ColConfigIcon/style.mjs";
1
+ import { css as n } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
2
+ import { columnsSortStyles as l, appearanceConfigStyles as r, exportConfigStyles as i } from "../ColConfigIcon/style.mjs";
3
3
  const f = (o) => {
4
4
  var t, a, e;
5
- return r`
5
+ return n`
6
6
  &.tableConfigModal {
7
7
  .ant-modal-content {
8
8
  max-height: calc(100vh - 200px);
@@ -35,9 +35,9 @@ const f = (o) => {
35
35
 
36
36
  ${l(o)}
37
37
 
38
- ${n(o)}
38
+ ${r(o)}
39
39
 
40
- ${d(o)}
40
+ ${i(o)}
41
41
  }
42
42
  }
43
43
  }
@@ -47,7 +47,7 @@ const f = (o) => {
47
47
  align-self: flex-end;
48
48
  text-align: left;
49
49
  margin: 0;
50
- padding: 20px;
50
+ padding-inline: 24px;
51
51
  background-color: ${(e = o.Modal) == null ? void 0 : e.footerBg};
52
52
  }
53
53
  }
@@ -39,6 +39,9 @@ interface BitzTableActionProps<T = any> {
39
39
  type ActionGroupFunType<T> = (record: T, index: number) => Action<T>[];
40
40
  type CustomActionsProps<T> = {
41
41
  custom: CustomActionsFunType<T>;
42
+ fieldsName?: {
43
+ label?: string;
44
+ };
42
45
  request?: (record: T, index: number) => Promise<CustomAction[]>;
43
46
  onClick?: (key: any) => void;
44
47
  };
@@ -2,7 +2,7 @@ import { j as i } from "../../../node_modules/.store/react@18.3.1/node_modules/r
2
2
  import p from "../../BitzDescriptions/index.mjs";
3
3
  import m from "../TableCell/index.mjs";
4
4
  import u from "../TextBlock/index.mjs";
5
- import { defaultValue as a } from "../index.mjs";
5
+ import { defaultValue as a } from "../utils.mjs";
6
6
  const R = (o, n, e) => {
7
7
  const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
8
8
  ...r,
@@ -1,46 +1,47 @@
1
1
  import { j as x } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as c, useEffect as b } from "react";
3
- import { Select as W } from "antd";
4
- import X from "../SelectPopup/index.mjs";
5
- function a({
3
+ import { Select as U } from "antd";
4
+ import W from "../SelectPopup/index.mjs";
5
+ import { isNotFalsy as X } from "../utils.mjs";
6
+ function P({
6
7
  value: S,
7
- options: l,
8
+ options: s,
8
9
  columns: j,
9
10
  tableData: k,
10
11
  total: v,
11
12
  loading: w,
12
- loadingFailed: B,
13
- loadAgain: D,
14
- page: E,
15
- onPageChange: T,
16
- searchInput: y,
17
- showToolTagSelect: N,
18
- toolTags: O,
19
- onToolTagChange: V,
20
- lrLayout: q,
21
- parentRender: z,
22
- mode: A = "single",
23
- placeholder: F = "请选择",
13
+ loadingFailed: y,
14
+ loadAgain: B,
15
+ page: D,
16
+ onPageChange: E,
17
+ searchInput: N,
18
+ showToolTagSelect: T,
19
+ toolTags: F,
20
+ onToolTagChange: O,
21
+ lrLayout: V,
22
+ parentRender: a,
23
+ mode: q = "single",
24
+ placeholder: z = "请选择",
24
25
  fieldNames: p,
25
26
  onChange: e,
26
27
  onPopupVisibleChange: f,
27
- ...G
28
+ ...A
28
29
  }) {
29
- const [o, H] = c(), [u, r] = c(), [i, m] = c(!1), [I, J] = c(!1), K = () => {
30
+ const [o, G] = c(), [u, r] = c(), [i, m] = c(!1), [H, I] = c(!1), J = () => {
30
31
  r([]), e == null || e([], []);
31
- }, L = (t, s, U) => {
32
- U === "confirm" ? m(!1) : (r(s), e == null || e(t, s));
33
- }, M = (t, s) => {
34
- r(s), e == null || e(t, s);
35
- }, Q = (t) => {
36
- !i && t && m(!0), !I && !t && i && m(!1), f == null || f(t);
32
+ }, K = (t, l, Q) => {
33
+ Q === "confirm" ? m(!1) : (r(l), e == null || e(t, l));
34
+ }, L = (t, l) => {
35
+ r(l), e == null || e(t, l);
36
+ }, M = (t) => {
37
+ !i && t && m(!0), !H && !t && i && m(!1), f == null || f(t);
37
38
  };
38
39
  return b(() => {
39
- H(S);
40
+ G(S);
40
41
  }, [S]), b(() => {
41
- l != null && l.length && r(l);
42
- }, [l]), /* @__PURE__ */ x.jsx(
43
- W,
42
+ s != null && s.length && r(s);
43
+ }, [s]), /* @__PURE__ */ x.jsx(
44
+ U,
44
45
  {
45
46
  allowClear: !0,
46
47
  className: "tableSelectBlock",
@@ -49,40 +50,40 @@ function a({
49
50
  fieldNames: p,
50
51
  showSearch: !1,
51
52
  open: i,
52
- placeholder: F,
53
+ placeholder: z,
53
54
  popupClassName: "tableSelectPopupBlock",
54
55
  dropdownRender: () => /* @__PURE__ */ x.jsx(
55
- X,
56
+ W,
56
57
  {
57
58
  columns: j,
58
59
  tableData: k,
59
60
  total: v,
60
- page: E,
61
- onPageChange: T,
62
- searchInput: y,
61
+ page: D,
62
+ onPageChange: E,
63
+ searchInput: N,
63
64
  loading: w,
64
- loadingFailed: B,
65
- loadAgain: D,
66
- keys: o ? [o] : [],
65
+ loadingFailed: y,
66
+ loadAgain: B,
67
+ keys: X(o) ? [o] : [],
67
68
  rows: u,
68
69
  fieldNames: p,
69
- onChange: L,
70
- onDropdownVisibleChange: J,
71
- showToolTagSelect: N,
72
- toolTags: O,
73
- onToolTagChange: V,
74
- lrLayout: q,
75
- parentRender: z,
76
- mode: A
70
+ onChange: K,
71
+ onDropdownVisibleChange: I,
72
+ showToolTagSelect: T,
73
+ toolTags: F,
74
+ onToolTagChange: O,
75
+ lrLayout: V,
76
+ parentRender: a,
77
+ mode: q
77
78
  }
78
79
  ),
79
- onClear: K,
80
- onDropdownVisibleChange: Q,
81
- onChange: M,
82
- ...G
80
+ onClear: J,
81
+ onDropdownVisibleChange: M,
82
+ onChange: L,
83
+ ...A
83
84
  }
84
85
  );
85
86
  }
86
87
  export {
87
- a as default
88
+ P as default
88
89
  };
@@ -1,9 +1,9 @@
1
1
  import { j as m } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { theme as c, Input as p } from "antd";
3
3
  import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
- import { defaultValue as f } from "../index.mjs";
4
+ import { tablePaddingInline as f } from "../../BitzConfigProvider/context.mjs";
5
+ import { defaultValue as x } from "../utils.mjs";
5
6
  import "./index.less.mjs";
6
- import { tablePaddingInline as x } from "../../BitzConfigProvider/context.mjs";
7
7
  const { TextArea: u } = p, h = ({
8
8
  maxRows: t = 1,
9
9
  minRows: s,
@@ -12,12 +12,12 @@ const { TextArea: u } = p, h = ({
12
12
  className: r
13
13
  }) => {
14
14
  var n;
15
- const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? x, l = {
15
+ const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? f, l = {
16
16
  "--cell-text-maxRows": t,
17
17
  ...o && {
18
18
  fontWeight: o
19
19
  },
20
- ...e === f && {
20
+ ...e === x && {
21
21
  paddingInline: i
22
22
  }
23
23
  };
@@ -67,5 +67,4 @@ export interface BitzTableSelectProps<T extends BaseOptionType, ValueType extend
67
67
  }
68
68
  /** 下拉表格组件 */
69
69
  declare function BitzTableSelect<T extends BaseOptionType>({ columns, tableData, loading, loadingFailed, loadAgain, total, page, onPageChange, onSearch, showToolTagSelect, placeholder, mode, fieldNames, onChange, popupAppendWidth: w, ...rest }: BitzTableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
70
- export declare const defaultValue = "-";
71
70
  export default BitzTableSelect;
@@ -1,30 +1,30 @@
1
1
  import { j as m } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useMemo as s } from "react";
2
+ import { useMemo as p } from "react";
3
3
  import { isMobile as A } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
4
  import L from "./Select/index.mjs";
5
5
  import W from "./Picker/index.mjs";
6
6
  import z from "./SingleSelect/index.mjs";
7
- function $({
8
- columns: p,
7
+ function k({
8
+ columns: s,
9
9
  tableData: a,
10
- loading: d,
11
- loadingFailed: b,
10
+ loading: b,
11
+ loadingFailed: d,
12
12
  loadAgain: x,
13
13
  total: j,
14
- page: u,
14
+ page: o,
15
15
  onPageChange: F,
16
16
  onSearch: M,
17
17
  showToolTagSelect: e = !1,
18
- placeholder: o = "请选择",
18
+ placeholder: u = "请选择",
19
19
  mode: f,
20
20
  fieldNames: c,
21
21
  onChange: t,
22
22
  popupAppendWidth: r,
23
23
  ...i
24
24
  }) {
25
- const S = s(() => i.lrLayout ? e ? 900 + (r || 0) : 830 + (r || 0) : e ? 750 + (r || 0) : 700 + (r || 0), [i.lrLayout, e, r]), E = (l, n) => {
25
+ const S = p(() => i.lrLayout ? e ? 900 + (r || 0) : 830 + (r || 0) : e ? 750 + (r || 0) : 700 + (r || 0), [i.lrLayout, e, r]), E = (l, n) => {
26
26
  f === "single" ? t == null || t(l == null ? void 0 : l[0], n == null ? void 0 : n[0]) : t == null || t(l, n);
27
- }, y = s(() => f === "single" ? z : L, [f]);
27
+ }, y = p(() => f === "single" ? z : L, [f]);
28
28
  return /* @__PURE__ */ m.jsx(m.Fragment, { children: A ? /* @__PURE__ */ m.jsx(
29
29
  W,
30
30
  {
@@ -36,27 +36,27 @@ function $({
36
36
  throw new Error("Function not implemented.");
37
37
  },
38
38
  total: 0,
39
- page: u,
39
+ page: o,
40
40
  onPageChange: function() {
41
41
  throw new Error("Function not implemented.");
42
42
  },
43
- placeholder: o,
43
+ placeholder: u,
44
44
  fieldNames: c,
45
45
  ...i
46
46
  }
47
47
  ) : /* @__PURE__ */ m.jsx(
48
48
  y,
49
49
  {
50
- columns: p,
50
+ columns: s,
51
51
  tableData: a,
52
- loading: d,
53
- loadingFailed: b,
52
+ loading: b,
53
+ loadingFailed: d,
54
54
  loadAgain: x,
55
55
  total: j,
56
- page: u,
56
+ page: o,
57
57
  onPageChange: F,
58
58
  onSearch: M,
59
- placeholder: o,
59
+ placeholder: u,
60
60
  fieldNames: c,
61
61
  onChange: E,
62
62
  popupMatchSelectWidth: S,
@@ -65,8 +65,6 @@ function $({
65
65
  }
66
66
  ) });
67
67
  }
68
- const k = "-";
69
68
  export {
70
- $ as default,
71
- k as defaultValue
69
+ k as default
72
70
  };
@@ -0,0 +1,4 @@
1
+ /** 排除null、undefined,其他情况都返回true */
2
+ export declare const isNotFalsy: (val: any) => boolean;
3
+ /** 缺省值 */
4
+ export declare const defaultValue = "-";
@@ -0,0 +1,5 @@
1
+ const o = (t) => t != null, e = "-";
2
+ export {
3
+ e as defaultValue,
4
+ o as isNotFalsy
5
+ };
@@ -0,0 +1,22 @@
1
+ function o(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number")
4
+ t += r;
5
+ else if (typeof r == "object")
6
+ if (Array.isArray(r))
7
+ for (f = 0; f < r.length; f++)
8
+ r[f] && (n = o(r[f])) && (t && (t += " "), t += n);
9
+ else
10
+ for (f in r)
11
+ r[f] && (t && (t += " "), t += f);
12
+ return t;
13
+ }
14
+ function a() {
15
+ for (var r, f, n = 0, t = ""; n < arguments.length; )
16
+ (r = arguments[n++]) && (f = o(r)) && (t && (t += " "), t += f);
17
+ return t;
18
+ }
19
+ export {
20
+ a as clsx,
21
+ a as default
22
+ };
@@ -1,15 +1,16 @@
1
1
  import { getDefaultExportFromCjs as e } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
2
  import { __module as r } from "../../../../../_virtual/index.mjs";
3
3
  import { __require as o } from "../../../react-is@16.13.1/node_modules/react-is/index.mjs";
4
- import { __require as t } from "./factoryWithTypeCheckers.mjs";
5
- import { __require as p } from "./factoryWithThrowingShims.mjs";
4
+ import { __require as p } from "./factoryWithTypeCheckers.mjs";
5
+ import { __require as t } from "./factoryWithThrowingShims.mjs";
6
6
  if (process.env.NODE_ENV !== "production") {
7
7
  var s = o(), i = !0;
8
- r.exports = t()(s.isElement, i);
8
+ r.exports = p()(s.isElement, i);
9
9
  } else
10
- r.exports = p()();
11
- var m = r.exports;
12
- const q = /* @__PURE__ */ e(m);
10
+ r.exports = t()();
11
+ var a = r.exports;
12
+ const q = /* @__PURE__ */ e(a);
13
13
  export {
14
- q as default
14
+ q as default,
15
+ a as p
15
16
  };