bitz-react-admin-ui 2.1.6 → 2.1.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 (40) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/components/BitzCalendar/index.mjs +1 -1
  4. package/dist/components/BitzConfigProvider/context.d.ts +6 -0
  5. package/dist/components/BitzConfigProvider/index.d.ts +2 -0
  6. package/dist/components/BitzDayJs/index.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTable/Store/index.d.ts +2 -2
  16. package/dist/components/BitzTable/Store/index.mjs +35 -35
  17. package/dist/components/BitzTable/Store/utils/index.mjs +24 -24
  18. package/dist/components/BitzTable/Table/index.d.ts +3 -1
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +4 -2
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +116 -109
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +24 -25
  23. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
  24. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
  25. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
  26. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
  27. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
  28. package/dist/components/BitzTable/ToolBar/index.d.ts +3 -3
  29. package/dist/components/BitzTable/index.d.ts +2 -2
  30. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
  31. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
  32. package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
  33. package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
  34. package/dist/components/BitzTableSelect/index.d.ts +1 -0
  35. package/dist/components/BitzTableSelect/index.mjs +33 -31
  36. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  37. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  38. package/dist/style.css +1 -1
  39. package/dist/utils/time.mjs +1 -1
  40. package/package.json +1 -1
@@ -1,50 +1,52 @@
1
1
  import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useMemo as i, useState as m } from "react";
3
- import { theme as c, Input as d } from "antd";
4
- import p from "../TextBlock/index.mjs";
5
- import s from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
2
+ import { useMemo as c, useState as p } from "react";
3
+ import { Input as d } from "antd";
4
+ import u from "../TextBlock/index.mjs";
5
+ import t from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import x from "../../BitzTheme/index.mjs";
6
7
  import "./index.less.mjs";
7
- import u from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
8
- const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
9
- const { token: n } = c.useToken(), a = i(() => ({
10
- paddingBlock: 12,
8
+ import f from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
9
+ const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
10
+ var r;
11
+ const { token: o } = x.useToken(), a = ((r = o == null ? void 0 : o.BitzTableSelect) == null ? void 0 : r.paddingBlock) ?? 10, i = c(() => ({
12
+ paddingBlock: a,
11
13
  paddingInline: 24
12
- }), [n]), [r, o] = m(!1);
14
+ }), [o]), [m, s] = p(!1);
13
15
  return /* @__PURE__ */ e.jsxs(
14
16
  "div",
15
17
  {
16
18
  className: "cellBlock",
17
- style: a,
18
- onFocus: () => o(!0),
19
- onBlur: () => o(!1),
19
+ style: i,
20
+ onFocus: () => s(!0),
21
+ onBlur: () => s(!1),
20
22
  children: [
21
- /* @__PURE__ */ e.jsx(p, { className: s("cellText"), value: t }),
23
+ /* @__PURE__ */ e.jsx(u, { className: t("cellText"), value: l }),
22
24
  /* @__PURE__ */ e.jsxs(
23
25
  "div",
24
26
  {
25
- className: s(
27
+ className: t(
26
28
  "tipBlock",
27
- l ? "toTop" : "toBottom",
28
- r ? "show" : ""
29
+ n ? "toTop" : "toBottom",
30
+ m ? "show" : ""
29
31
  ),
30
32
  style: {
31
33
  paddingInlineStart: 24 - 2,
32
34
  paddingInlineEnd: 24 - 4,
33
- paddingBlock: 12
35
+ paddingBlock: a
34
36
  },
35
37
  children: [
36
38
  /* @__PURE__ */ e.jsx(
37
- u,
39
+ f,
38
40
  {
39
- className: s("closeIcon", l ? "top" : "bottom"),
40
- onClick: () => o(!1)
41
+ className: t("closeIcon", n ? "top" : "bottom"),
42
+ onClick: () => s(!1)
41
43
  }
42
44
  ),
43
45
  /* @__PURE__ */ e.jsx(
44
- x,
46
+ B,
45
47
  {
46
48
  className: "tipText",
47
- value: t,
49
+ value: l,
48
50
  autoSize: {
49
51
  minRows: 1,
50
52
  maxRows: 100
@@ -61,5 +63,5 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
61
63
  );
62
64
  };
63
65
  export {
64
- g as default
66
+ b as default
65
67
  };
@@ -1,40 +1,41 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Input as a } from "antd";
3
- import l from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
2
+ import { Input as l } from "antd";
3
+ import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { defaultValue as n } from "../index.mjs";
4
5
  import "./index.less.mjs";
5
- const { TextArea: m } = a, d = ({
6
- maxRows: e = 1,
6
+ const { TextArea: p } = l, j = ({
7
+ maxRows: t = 1,
7
8
  minRows: o,
8
9
  bold: s,
9
- value: t,
10
+ value: e,
10
11
  className: r
11
12
  }) => {
12
- const n = {
13
- "--cell-text-maxRows": e,
13
+ const a = {
14
+ "--cell-text-maxRows": t,
14
15
  ...s && {
15
16
  fontWeight: s
16
17
  },
17
- ...!t && !["number", "boolean"].includes(typeof t) && {
18
+ ...e === n && {
18
19
  paddingInline: 24
19
20
  }
20
21
  };
21
22
  return /* @__PURE__ */ i.jsx(
22
- m,
23
+ p,
23
24
  {
24
- className: l("textBlock", r),
25
- title: t,
26
- value: t,
25
+ className: m("textBlock", r),
26
+ title: e,
27
+ value: e,
27
28
  readOnly: !0,
28
29
  size: "small",
29
30
  variant: "borderless",
30
31
  autoSize: {
31
- minRows: o ?? e,
32
- maxRows: e
32
+ minRows: o ?? t,
33
+ maxRows: t
33
34
  },
34
- style: n
35
+ style: a
35
36
  }
36
37
  );
37
38
  };
38
39
  export {
39
- d as default
40
+ j as default
40
41
  };
@@ -65,4 +65,5 @@ export interface BitzTableSelectProps<T extends BaseOptionType> extends AntSelec
65
65
  }
66
66
  /** 下拉表格组件 */
67
67
  declare function BitzTableSelect<T extends BaseOptionType>({ columns, tableData, loading, loadingFailed, loadAgain, total, page, onPageChange, onSearch, showToolTagSelect, placeholder, fieldNames, offsetWidth, ...rest }: BitzTableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
68
+ export declare const defaultValue = "-";
68
69
  export default BitzTableSelect;
@@ -1,27 +1,27 @@
1
1
  import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as j } from "react";
3
- import { isMobile as F } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import M from "./Select/index.mjs";
5
- import d from "./Picker/index.mjs";
3
+ import { isMobile as d } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import F from "./Select/index.mjs";
5
+ import M from "./Picker/index.mjs";
6
6
  function z({
7
7
  columns: l,
8
- tableData: m,
9
- loading: u,
10
- loadingFailed: p,
11
- loadAgain: c,
8
+ tableData: u,
9
+ loading: m,
10
+ loadingFailed: c,
11
+ loadAgain: p,
12
12
  total: s,
13
- page: i,
14
- onPageChange: b,
15
- onSearch: f,
16
- showToolTagSelect: r = !1,
17
- placeholder: o = "请选择",
13
+ page: o,
14
+ onPageChange: f,
15
+ onSearch: b,
16
+ showToolTagSelect: e = !1,
17
+ placeholder: i = "请选择",
18
18
  fieldNames: a,
19
19
  offsetWidth: n,
20
- ...e
20
+ ...r
21
21
  }) {
22
- const x = j(() => e.lrLayout ? r ? 900 + (n || 0) : 830 + (n || 0) : r ? 750 + (n || 0) : 700 + (n || 0), [e.lrLayout, r, n]);
23
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: F ? /* @__PURE__ */ t.jsx(
24
- d,
22
+ const x = j(() => r.lrLayout ? e ? 900 + (n || 0) : 830 + (n || 0) : e ? 750 + (n || 0) : 700 + (n || 0), [r.lrLayout, e, n]);
23
+ return /* @__PURE__ */ t.jsx(t.Fragment, { children: d ? /* @__PURE__ */ t.jsx(
24
+ M,
25
25
  {
26
26
  columns: [],
27
27
  tableData: [],
@@ -31,34 +31,36 @@ function z({
31
31
  throw new Error("Function not implemented.");
32
32
  },
33
33
  total: 0,
34
- page: i,
34
+ page: o,
35
35
  onPageChange: function() {
36
36
  throw new Error("Function not implemented.");
37
37
  },
38
- placeholder: o,
38
+ placeholder: i,
39
39
  fieldNames: a,
40
- ...e
40
+ ...r
41
41
  }
42
42
  ) : /* @__PURE__ */ t.jsx(
43
- M,
43
+ F,
44
44
  {
45
45
  columns: l,
46
- tableData: m,
47
- loading: u,
48
- loadingFailed: p,
49
- loadAgain: c,
46
+ tableData: u,
47
+ loading: m,
48
+ loadingFailed: c,
49
+ loadAgain: p,
50
50
  total: s,
51
- page: i,
52
- onPageChange: b,
53
- onSearch: f,
54
- placeholder: o,
51
+ page: o,
52
+ onPageChange: f,
53
+ onSearch: b,
54
+ placeholder: i,
55
55
  fieldNames: a,
56
56
  popupMatchSelectWidth: x,
57
- showToolTagSelect: r,
58
- ...e
57
+ showToolTagSelect: e,
58
+ ...r
59
59
  }
60
60
  ) });
61
61
  }
62
+ const A = "-";
62
63
  export {
63
- z as default
64
+ z as default,
65
+ A as defaultValue
64
66
  };