bitz-react-admin-ui 2.3.0 → 2.3.2

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 (75) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +4 -26
  2. package/dist/_virtual/dayjs.min.mjs +2 -5
  3. package/dist/_virtual/index.mjs +2 -2
  4. package/dist/_virtual/index2.mjs +2 -2
  5. package/dist/components/BitzCalendar/index.mjs +1 -1
  6. package/dist/components/BitzConfigProvider/context.d.ts +1 -0
  7. package/dist/components/BitzConfigProvider/context.mjs +4 -3
  8. package/dist/components/BitzDayJs/index.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
  13. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  14. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  15. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  16. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  17. package/dist/components/BitzHighlight/style.mjs +12 -12
  18. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  19. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  20. package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
  21. package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
  22. package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
  23. package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
  24. package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
  25. package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
  26. package/dist/components/BitzTable/Store/index.mjs +37 -37
  27. package/dist/components/BitzTable/SubTable/index.mjs +94 -94
  28. package/dist/components/BitzTable/Table/index.mjs +306 -306
  29. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
  30. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
  31. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
  32. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
  33. package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
  34. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +14 -15
  35. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +14 -15
  36. package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
  37. package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
  38. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  39. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  40. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  41. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -9
  42. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  43. package/dist/style.css +1 -1
  44. package/dist/utils/time.mjs +1 -1
  45. package/package.json +1 -1
  46. package/dist/_virtual/Draggable.mjs +0 -4
  47. package/dist/_virtual/DraggableCore.mjs +0 -4
  48. package/dist/_virtual/Resizable.mjs +0 -4
  49. package/dist/_virtual/ResizableBox.mjs +0 -4
  50. package/dist/_virtual/cjs.mjs +0 -4
  51. package/dist/_virtual/clsx.m.mjs +0 -6
  52. package/dist/_virtual/dayjs.min2.mjs +0 -4
  53. package/dist/_virtual/domFns.mjs +0 -4
  54. package/dist/_virtual/getPrefix.mjs +0 -4
  55. package/dist/_virtual/index6.mjs +0 -4
  56. package/dist/_virtual/log.mjs +0 -4
  57. package/dist/_virtual/positionFns.mjs +0 -4
  58. package/dist/_virtual/propTypes.mjs +0 -4
  59. package/dist/_virtual/shims.mjs +0 -4
  60. package/dist/_virtual/utils.mjs +0 -4
  61. package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
  62. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
  63. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
  64. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
  65. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
  66. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
  67. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
  68. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
  69. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
  70. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
  71. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
  72. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
  73. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
  74. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
  75. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +0 -13
@@ -1,30 +1,8 @@
1
- var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function f(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
2
  function l(e) {
6
- if (e.__esModule)
7
- return e;
8
- var r = e.default;
9
- if (typeof r == "function") {
10
- var t = function o() {
11
- return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
- };
13
- t.prototype = r.prototype;
14
- } else
15
- t = {};
16
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
17
- var n = Object.getOwnPropertyDescriptor(e, o);
18
- Object.defineProperty(t, o, n.get ? n : {
19
- enumerable: !0,
20
- get: function() {
21
- return e[o];
22
- }
23
- });
24
- }), t;
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
25
4
  }
26
5
  export {
27
- u as commonjsGlobal,
28
- l as getAugmentedNamespace,
29
- f as getDefaultExportFromCjs
6
+ o as commonjsGlobal,
7
+ l as getDefaultExportFromCjs
30
8
  };
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
2
- import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ var a = { exports: {} };
5
2
  export {
6
- s as default
3
+ a as __module
7
4
  };
@@ -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
  };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as O, useEffect as R } from "react";
3
3
  import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
4
- import N from "../../_virtual/dayjs.min.mjs";
4
+ import N from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
6
6
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
7
7
  N.extend(B);
@@ -36,3 +36,4 @@ export interface BitzConfigProviderContextProps {
36
36
  TableSelect?: TableSelectComponentContextProps;
37
37
  }
38
38
  export declare const BitzConfigContext: import("react").Context<BitzConfigProviderContextProps>;
39
+ export declare const tablePaddingInline = 10;
@@ -1,7 +1,8 @@
1
1
  import { createContext as t } from "react";
2
- const e = t(
2
+ const o = t(
3
3
  {}
4
- );
4
+ ), e = 10;
5
5
  export {
6
- e as BitzConfigContext
6
+ o as BitzConfigContext,
7
+ e as tablePaddingInline
7
8
  };
@@ -1,4 +1,4 @@
1
- import t from "../../_virtual/dayjs.min.mjs";
1
+ import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -1,5 +1,5 @@
1
1
  import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
2
- import o from "../../_virtual/dayjs.min.mjs";
2
+ import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
3
  var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
4
4
  const i = a((e, k) => ({
5
5
  colHeight: 0,
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as y, useEffect as g, useMemo as j } from "react";
3
3
  import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
4
- import n from "../../_virtual/dayjs.min.mjs";
4
+ import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { useBitzFuiCalendarStore as M, CalendarTypeEnum as S } from "./BitzFuiCalendarStore.mjs";
6
6
  import C from "./CalendarAgendumItem.mjs";
7
7
  import x from "./CalendarAgendum.module.less.mjs";
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as c } from "react";
3
3
  import e from "./CalendarAgendum.module.less.mjs";
4
- import r from "../../_virtual/dayjs.min.mjs";
4
+ import r from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { Button as a } from "antd";
6
6
  const d = (_, s) => {
7
7
  const t = s.diff(_, "minute");
@@ -2,7 +2,7 @@ import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { useState as _, useEffect as y, useMemo as f } from "react";
3
3
  import C from "./ColumnData.mjs";
4
4
  import { useBitzFuiCalendarStore as h, CalendarTypeEnum as o } from "./BitzFuiCalendarStore.mjs";
5
- import j from "../../_virtual/dayjs.min.mjs";
5
+ import j from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import x from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isoWeek.mjs";
7
7
  j.extend(x);
8
8
  const N = (n) => {
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import m from "./CalendarHeadItem.mjs";
3
3
  import { useMemo as d } from "react";
4
4
  import { useBitzFuiCalendarStore as u, CalendarTypeEnum as n } from "./BitzFuiCalendarStore.mjs";
5
- import f from "../../_virtual/dayjs.min.mjs";
5
+ import f from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isoWeek.mjs";
7
7
  f.extend(l);
8
8
  const x = () => {
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { memo as m, useMemo as r } from "react";
3
- import d from "../../_virtual/dayjs.min.mjs";
3
+ import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
4
  import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const n = (t) => {
6
6
  const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { memo as C, useMemo as i } from "react";
3
3
  import { Space as c, Button as s, DatePicker as b, Dropdown as h } from "antd";
4
4
  import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
5
- import g from "../../_virtual/dayjs.min.mjs";
5
+ import g from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import T from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import _ from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
@@ -4,7 +4,7 @@ import M from "./FuiCalendarItem.mjs";
4
4
  import E from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import Y from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
6
6
  import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
7
- import n from "../../_virtual/dayjs.min.mjs";
7
+ import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
8
8
  import { useBitzFuiCalendarStore as F } from "./BitzFuiCalendarStore.mjs";
9
9
  n.extend(b);
10
10
  n.extend(Y);
@@ -8,42 +8,42 @@ import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-d
8
8
  import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
9
9
  import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
10
10
  import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
11
- import S from "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
11
+ import d from "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
12
12
  import "../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
13
13
  import c from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
14
- import d from "../BitzTheme/index.mjs";
14
+ import f from "../BitzTheme/index.mjs";
15
15
  const R = ({
16
16
  tagClass: a = "",
17
17
  highlightClass: p = ""
18
18
  }) => {
19
- const { theme: h, token: i, hashId: t } = d.useToken(), r = "bitzHighlightBlock", e = "bitzHighlightTag", s = "bitzHighlightSecondary", n = (m, f, l, o) => [
19
+ const { theme: h, token: i, hashId: t } = f.useToken(), r = "bitzHighlightBlock", e = "bitzHighlightTag", s = "bitzHighlightSecondary", g = (l, S, m, o) => [
20
20
  {
21
- [`.${m}`]: {
21
+ [`.${l}`]: {
22
22
  color: o.colorText,
23
23
  fontSize: o.fontSize
24
24
  }
25
25
  },
26
26
  {
27
- [`.${l}`]: {
27
+ [`.${m}`]: {
28
28
  color: o.colorPrimary
29
29
  }
30
30
  },
31
31
  {
32
- [`.${m}.${f}`]: {
33
- color: o.colorSecondaryHighlightText,
34
- [`.${l}`]: {
32
+ [`.${l}.${S}`]: {
33
+ color: (o == null ? void 0 : o.colorSecondaryHighlightText) ?? o.colorTextSecondary,
34
+ [`.${m}`]: {
35
35
  color: o.colorText,
36
36
  margin: "0 6px"
37
37
  }
38
38
  }
39
39
  }
40
40
  ];
41
- S({ theme: h, token: i, hashId: t, path: [r] }, () => [
42
- n(r, s, e, i)
41
+ d({ theme: h, token: i, hashId: t, path: [r] }, () => [
42
+ g(r, s, e, i)
43
43
  ]);
44
- const g = c(r, t, a), y = c(e, t, p);
44
+ const n = c(r, t, a), y = c(e, t, p);
45
45
  return {
46
- tagClassName: g,
46
+ tagClassName: n,
47
47
  secondaryClassName: s,
48
48
  highlightClassName: y
49
49
  };
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
3
3
  import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
6
- import e from "../../_virtual/dayjs.min.mjs";
6
+ import e from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
7
7
  import "./index.less.mjs";
8
8
  e.extend(A);
9
9
  e.extend(H);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { useMemo as d } from "react";
3
3
  import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import T from "./BitzMeetingTimeItem.mjs";
5
- import m from "../../_virtual/dayjs.min.mjs";
5
+ import m from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -1,4 +1,4 @@
1
- import { useContext as D, useMemo as v } from "react";
1
+ import { useContext as R, useMemo as C } from "react";
2
2
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
3
3
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
4
4
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
@@ -8,14 +8,14 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@an
8
8
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
9
9
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
10
10
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
11
- import A from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
11
+ import G from "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
12
12
  import "../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
13
- import { BitzTableContext as N } from "../Store/index.mjs";
14
- import f from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
- import w from "../../BitzTheme/index.mjs";
16
- const Q = (m) => {
17
- const { theme: g, hashId: n, token: i } = w.useToken(), { tableSize: s } = D(N), u = v(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn", B = (o, l, t, e) => {
18
- var $, b, T, S, z;
13
+ import { BitzTableContext as I } from "../Store/index.mjs";
14
+ import x from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
+ import M from "../../BitzTheme/index.mjs";
16
+ const Y = (m) => {
17
+ const { theme: y, hashId: n, token: i } = M.useToken(), { tableSize: s } = R(I), D = C(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn", v = (o, l, t, e) => {
18
+ var $, b, T, S, z, f, g, u, B, h;
19
19
  return [
20
20
  {
21
21
  [`.${o} .${l}`]: {
@@ -30,31 +30,31 @@ const Q = (m) => {
30
30
  },
31
31
  {
32
32
  [`.${o} .xl${t}`]: {
33
- fontSize: ($ = e.Table.xlTable) == null ? void 0 : $.fontSize
33
+ fontSize: (b = ($ = e.Table) == null ? void 0 : $.xlTable) == null ? void 0 : b.fontSize
34
34
  }
35
35
  },
36
36
  {
37
37
  [`.${o} .lg${t}`]: {
38
- fontSize: (b = e.Table.lgTable) == null ? void 0 : b.fontSize
38
+ fontSize: (S = (T = e.Table) == null ? void 0 : T.lgTable) == null ? void 0 : S.fontSize
39
39
  }
40
40
  },
41
41
  {
42
42
  [`.${o} .md${t}`]: {
43
- fontSize: (T = e.Table.mdTable) == null ? void 0 : T.fontSize
43
+ fontSize: (f = (z = e.Table) == null ? void 0 : z.mdTable) == null ? void 0 : f.fontSize
44
44
  }
45
45
  },
46
46
  {
47
47
  [`.${o} .sm${t}`]: {
48
- fontSize: (S = e.Table.smTable) == null ? void 0 : S.fontSize
48
+ fontSize: (u = (g = e.Table) == null ? void 0 : g.smTable) == null ? void 0 : u.fontSize
49
49
  }
50
50
  },
51
51
  {
52
52
  [`.${o} .xs${t}`]: {
53
- fontSize: (z = e.Table.xsTable) == null ? void 0 : z.fontSize
53
+ fontSize: (h = (B = e.Table) == null ? void 0 : B.xsTable) == null ? void 0 : h.fontSize
54
54
  }
55
55
  }
56
56
  ];
57
- }, h = (o, l, t) => [
57
+ }, A = (o, l, t) => [
58
58
  {
59
59
  [`.${o} .${l}`]: {
60
60
  "&:hover": {
@@ -72,21 +72,21 @@ const Q = (m) => {
72
72
  }
73
73
  }
74
74
  ];
75
- A(
75
+ G(
76
76
  {
77
- theme: g,
77
+ theme: y,
78
78
  token: i,
79
79
  hashId: n,
80
80
  path: [r]
81
81
  },
82
82
  () => [
83
- B(r, a, c, i),
84
- h(r, p, i)
83
+ v(r, a, c, i),
84
+ A(r, p, i)
85
85
  ]
86
86
  );
87
- const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
88
- return { blockCls: r, addBtnClassName: x, btnClassName: y };
87
+ const d = `${D}${c}`, N = x(a, d, n), w = x(a, p, d, n);
88
+ return { blockCls: r, addBtnClassName: N, btnClassName: w };
89
89
  };
90
90
  export {
91
- Q as default
91
+ Y as default
92
92
  };
@@ -1,19 +1,20 @@
1
1
  import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import y from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
3
- import { Space as z, Skeleton as S } from "antd";
4
- import { useRef as I, useMemo as u, useContext as R } from "react";
2
+ import B from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
3
+ import { theme as w, Space as y, Skeleton as z } from "antd";
4
+ import { useRef as I, useMemo as u, useContext as S } from "react";
5
5
  import h from "../../BitzButton/index.mjs";
6
- import w from "./style.mjs";
6
+ import T, { actionColBtnGap as P } from "./style.mjs";
7
7
  import "../index.mjs";
8
- import b from "../Dropdown/index.mjs";
9
- import { BitzTableContext as T } from "../Store/index.mjs";
10
- const B = ({
8
+ import k from "../Dropdown/index.mjs";
9
+ import { tablePaddingInline as R } from "../../BitzConfigProvider/context.mjs";
10
+ import { BitzTableContext as A } from "../Store/index.mjs";
11
+ const b = ({
11
12
  skeletonCls: l,
12
13
  ...n
13
14
  }) => /* @__PURE__ */ t.jsxs(h, { type: "text", ...n, children: [
14
15
  /* @__PURE__ */ t.jsx("span", { children: n.children }),
15
16
  /* @__PURE__ */ t.jsx(
16
- S,
17
+ z,
17
18
  {
18
19
  active: !0,
19
20
  title: !1,
@@ -25,74 +26,74 @@ const B = ({
25
26
  }
26
27
  )
27
28
  ] });
28
- function A({
29
+ function E({
29
30
  loading: l,
30
31
  actionGroup: n,
31
- refInstance: a
32
+ refInstance: c
32
33
  }) {
33
- const { loading: i, fullscreen: x } = R(T), s = u(() => l ?? i, [l, i]), {
34
- gap: o,
35
- primaryBtnClassName: r,
36
- dangerBtnClassName: f,
37
- dropdownBtnClassName: k,
38
- maskClassName: g,
39
- skeletonBtnClassName: c,
40
- skeletonClassName: m
41
- } = w(), C = u(() => {
42
- const d = n.length >= 4 ? 2 : n.length, p = n.slice(0, d), j = [];
43
- if (p != null && p.length && p.forEach((e, N) => {
44
- j.push(
45
- s ? /* @__PURE__ */ t.jsx(
46
- B,
34
+ const { loading: d, fullscreen: x } = S(A), o = u(() => l ?? d, [l, d]), {
35
+ primaryBtnClassName: s,
36
+ dangerBtnClassName: i,
37
+ dropdownBtnClassName: N,
38
+ maskClassName: m,
39
+ skeletonBtnClassName: f,
40
+ skeletonClassName: p
41
+ } = T(), g = u(() => {
42
+ const r = n.length >= 4 ? 2 : n.length, a = n.slice(0, r), C = [];
43
+ if (a != null && a.length && a.forEach((e, j) => {
44
+ C.push(
45
+ o ? /* @__PURE__ */ t.jsx(
46
+ b,
47
47
  {
48
- className: c,
49
- skeletonCls: m,
48
+ className: f,
49
+ skeletonCls: p,
50
50
  children: e == null ? void 0 : e.label
51
51
  },
52
- N
53
- ) : e.children ? /* @__PURE__ */ t.jsx(b, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
52
+ j
53
+ ) : e.children ? /* @__PURE__ */ t.jsx(k, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
54
54
  h,
55
55
  {
56
56
  type: "text",
57
- className: e.danger ? f : r,
57
+ className: e.danger ? i : s,
58
58
  children: e == null ? void 0 : e.label
59
59
  }
60
- ) }, N) : /* @__PURE__ */ t.jsx(
60
+ ) }, j) : /* @__PURE__ */ t.jsx(
61
61
  h,
62
62
  {
63
63
  type: "text",
64
- className: e.danger ? f : r,
64
+ className: e.danger ? i : s,
65
65
  onClick: e == null ? void 0 : e.onClick,
66
66
  children: e == null ? void 0 : e.label
67
67
  },
68
- N
68
+ j
69
69
  )
70
70
  );
71
- }), d === 2 && n.length >= 4) {
71
+ }), r === 2 && n.length >= 4) {
72
72
  const e = n.slice(2, n.length);
73
- j.push(
74
- s ? /* @__PURE__ */ t.jsx(
75
- B,
73
+ C.push(
74
+ o ? /* @__PURE__ */ t.jsx(
75
+ b,
76
76
  {
77
- className: c,
78
- skeletonCls: m,
77
+ className: f,
78
+ skeletonCls: p,
79
79
  children: "更多"
80
80
  },
81
81
  5
82
- ) : /* @__PURE__ */ t.jsx(b, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: k, children: "更多" }) }, 5)
82
+ ) : /* @__PURE__ */ t.jsx(k, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: N, children: "更多" }) }, 5)
83
83
  );
84
84
  }
85
- return j;
86
- }, [s, n]);
87
- return /* @__PURE__ */ t.jsxs("div", { onClick: (d) => d.stopPropagation(), children: [
88
- /* @__PURE__ */ t.jsx(z, { size: o, ref: a, className: "actionGroup", children: C }),
89
- /* @__PURE__ */ t.jsx("div", { className: g })
85
+ return C;
86
+ }, [o, n]);
87
+ return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
88
+ /* @__PURE__ */ t.jsx(y, { size: P, ref: c, className: "actionGroup", children: g }),
89
+ /* @__PURE__ */ t.jsx("div", { className: m })
90
90
  ] });
91
91
  }
92
- function F(l) {
93
- const { actionGroup: n, loading: a, ...i } = l, { gap: x } = w(), s = I(null), o = y(s), r = u(() => o != null && o.width ? o.width + x * 2 + 1 : 181, [o, x]);
92
+ function K(l) {
93
+ var m;
94
+ const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 : 181, [s, x]);
94
95
  return u(() => ({
95
- width: Math.floor(r),
96
+ width: Math.floor(i),
96
97
  mobileHide: !0,
97
98
  isOperationCol: !0,
98
99
  title: "操作",
@@ -101,23 +102,23 @@ function F(l) {
101
102
  dataIndex: "operationCol",
102
103
  className: "operationCol",
103
104
  disabled: !0,
104
- render: (k, g, c) => {
105
- const m = n(g, c).filter(
106
- (C) => C.type != "detail"
105
+ render: (f, p, g) => {
106
+ const r = n(p, g).filter(
107
+ (a) => a.type != "detail"
107
108
  );
108
109
  return /* @__PURE__ */ t.jsx(
109
- A,
110
+ E,
110
111
  {
111
- actionGroup: m,
112
- loading: a,
113
- refInstance: s
112
+ actionGroup: r,
113
+ loading: c,
114
+ refInstance: o
114
115
  }
115
116
  );
116
117
  },
117
- ...i
118
- }), [r, s, a, n]);
118
+ ...d
119
+ }), [i, o, c, n]);
119
120
  }
120
121
  export {
121
- A as BitzTableAction,
122
- F as default
122
+ E as BitzTableAction,
123
+ K as default
123
124
  };
@@ -1,5 +1,4 @@
1
1
  declare const useGenStyle: () => {
2
- gap: number;
3
2
  defaultCls: string;
4
3
  primaryBtnClassName: string;
5
4
  dangerBtnClassName: string;
@@ -8,4 +7,5 @@ declare const useGenStyle: () => {
8
7
  skeletonClassName: string;
9
8
  maskClassName: string;
10
9
  };
10
+ export declare const actionColBtnGap = 18;
11
11
  export default useGenStyle;