bitz-react-admin-ui 2.10.4 → 2.10.5
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/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.mjs +55 -55
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +27 -27
- package/dist/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
|
|
2
|
+
import { __require as o } from "../node_modules/dayjs/dayjs.min.mjs";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
package/dist/_virtual/index.mjs
CHANGED
package/dist/_virtual/index2.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../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 "../../
|
|
4
|
+
import N from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import B from "../../node_modules/dayjs/plugin/weekOfYear.mjs";
|
|
6
6
|
import "../../node_modules/dayjs/locale/zh-cn.mjs";
|
|
7
7
|
N.extend(B);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as a } from "../../node_modules/zustand/esm/index.mjs";
|
|
2
|
-
import o from "../../
|
|
2
|
+
import o from "../../_virtual/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/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/dayjs/plugin/isToday.mjs";
|
|
4
|
-
import n from "../../
|
|
4
|
+
import n from "../../_virtual/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/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 "../../
|
|
4
|
+
import r from "../../_virtual/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/react/jsx-runtime.mjs";
|
|
|
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 "../../
|
|
5
|
+
import j from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import x from "../../node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
j.extend(x);
|
|
8
8
|
const N = (n) => {
|
|
@@ -2,7 +2,7 @@ import { j as i } from "../../node_modules/react/jsx-runtime.mjs";
|
|
|
2
2
|
import m from "./CalendarHeadItem.mjs";
|
|
3
3
|
import { useMemo as d } from "react";
|
|
4
4
|
import { useBitzFuiCalendarStore as u, CalendarTypeEnum as s } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import f from "../../
|
|
5
|
+
import f from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import p from "../../node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
f.extend(p);
|
|
8
8
|
const j = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as m, useMemo as r } from "react";
|
|
3
|
-
import d from "../../
|
|
3
|
+
import d from "../../_virtual/dayjs.min.mjs";
|
|
4
4
|
import i from "../../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/react/jsx-runtime.mjs";
|
|
|
2
2
|
import { useMemo as s } from "react";
|
|
3
3
|
import { Space as c, Button as i, DatePicker as h, Dropdown as C } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as b, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import w from "../../
|
|
5
|
+
import w from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import g from "../../node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
|
|
8
8
|
import T from "../../node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
|
|
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
|
|
|
4
4
|
import b from "../../node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import F from "../../node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
6
6
|
import M from "../../node_modules/dayjs/plugin/utc.mjs";
|
|
7
|
-
import r from "../../
|
|
7
|
+
import r from "../../_virtual/dayjs.min.mjs";
|
|
8
8
|
import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
|
|
9
9
|
r.extend(M);
|
|
10
10
|
r.extend(F);
|
|
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
|
|
|
3
3
|
import A from "../../node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import H from "../../node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import D from "../../node_modules/dayjs/plugin/utc.mjs";
|
|
6
|
-
import e from "../../
|
|
6
|
+
import e from "../../_virtual/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/react/jsx-runtime.mjs";
|
|
|
2
2
|
import { useMemo as d } from "react";
|
|
3
3
|
import p from "../../node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import T from "./BitzMeetingTimeItem.mjs";
|
|
5
|
-
import m from "../../
|
|
5
|
+
import m from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
m.extend(p);
|
|
8
8
|
const x = (a) => {
|
|
@@ -22,8 +22,8 @@ const Ge = {
|
|
|
22
22
|
ue.EXPAND_COLUMN
|
|
23
23
|
], de = 5;
|
|
24
24
|
function _e(e) {
|
|
25
|
-
var k, R, L, U, A, D, G, Z, _, F, W, X, q, Q, Y, $, p, ee, te, ne, ie, ae, oe, le, ce,
|
|
26
|
-
const K = Re(Ae()), [ye, Se] = h(!1), [ge, Ce] = h(!1), [me, we] = h(0),
|
|
25
|
+
var k, R, L, U, A, D, G, Z, _, F, W, X, q, Q, Y, $, p, ee, te, ne, ie, ae, oe, le, ce, se, fe;
|
|
26
|
+
const K = Re(Ae()), [ye, Se] = h(!1), [ge, Ce] = h(!1), [me, we] = h(0), s = Le(De).Table, I = e.defaultSize ?? (s == null ? void 0 : s.defaultSize) ?? "lg", he = e.defaultZebra ?? (s == null ? void 0 : s.zebra) ?? !0, xe = e.defaultBordered ?? (s == null ? void 0 : s.bordered) ?? "row-column", Te = e.defaultPageSize ?? (s == null ? void 0 : s.pageSize) ?? 10, Ke = e.defaultOrderBy ?? (s == null ? void 0 : s.orderBy) ?? "desc", O = S(() => {
|
|
27
27
|
var t;
|
|
28
28
|
return u(
|
|
29
29
|
{
|
|
@@ -37,34 +37,34 @@ function _e(e) {
|
|
|
37
37
|
);
|
|
38
38
|
}, [
|
|
39
39
|
e.defaultSize,
|
|
40
|
-
|
|
40
|
+
s == null ? void 0 : s.defaultSize,
|
|
41
41
|
e.defaultZebra,
|
|
42
|
-
|
|
42
|
+
s == null ? void 0 : s.zebra,
|
|
43
43
|
e.defaultBordered,
|
|
44
|
-
|
|
44
|
+
s == null ? void 0 : s.bordered,
|
|
45
45
|
e.defaultPageSize,
|
|
46
|
-
|
|
46
|
+
s == null ? void 0 : s.pageSize,
|
|
47
47
|
e.defaultOrderBy,
|
|
48
|
-
|
|
48
|
+
s == null ? void 0 : s.orderBy,
|
|
49
49
|
(k = e.stylesConfigState) == null ? void 0 : k.defaultValue
|
|
50
50
|
]), [C, J] = N(
|
|
51
51
|
() => {
|
|
52
52
|
var i, n, l;
|
|
53
53
|
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.stylesConfigState || {};
|
|
54
|
-
if (a && t && typeof window < "u" && t !== "online") {
|
|
54
|
+
if (a && t && typeof window < "u" && (console.log("persistenceType", t), t !== "online")) {
|
|
55
55
|
const o = window[t];
|
|
56
56
|
try {
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const f = o == null ? void 0 : o.getItem(a);
|
|
58
|
+
if (f)
|
|
59
59
|
return (i = e == null ? void 0 : e.stylesConfigState) != null && i.defaultValue ? u(
|
|
60
|
-
JSON.parse(
|
|
60
|
+
JSON.parse(f),
|
|
61
61
|
(n = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : n.defaultValue
|
|
62
|
-
) : JSON.parse(
|
|
63
|
-
} catch (
|
|
64
|
-
console.warn(
|
|
62
|
+
) : JSON.parse(f);
|
|
63
|
+
} catch (f) {
|
|
64
|
+
console.warn(f);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) ||
|
|
67
|
+
return console.log("--->>", e.stylesConfig, e.stylesConfigState, O), e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || O;
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
value: ((R = e.stylesConfigState) == null ? void 0 : R.value) || e.stylesConfig,
|
|
@@ -98,10 +98,10 @@ function _e(e) {
|
|
|
98
98
|
const { onlineGet: i, persistenceKey: n } = e.stylesConfigState;
|
|
99
99
|
try {
|
|
100
100
|
(c = i == null ? void 0 : i(n)) == null || c.then((l) => {
|
|
101
|
-
var
|
|
102
|
-
const o = u(l ?? {}, (
|
|
101
|
+
var f;
|
|
102
|
+
const o = u(l ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
|
|
103
103
|
J(
|
|
104
|
-
Object.keys(o).length ? o :
|
|
104
|
+
Object.keys(o).length ? o : O
|
|
105
105
|
);
|
|
106
106
|
});
|
|
107
107
|
} catch (l) {
|
|
@@ -109,7 +109,7 @@ function _e(e) {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}, []);
|
|
112
|
-
const
|
|
112
|
+
const r = S(() => (e.columns ?? []).filter(
|
|
113
113
|
(t) => !Ze.includes(t) && t.title
|
|
114
114
|
), [e.columns]), x = S(() => {
|
|
115
115
|
var i;
|
|
@@ -119,39 +119,39 @@ function _e(e) {
|
|
|
119
119
|
key: "current",
|
|
120
120
|
info: void 0
|
|
121
121
|
}
|
|
122
|
-
}, a =
|
|
122
|
+
}, a = r.find((n) => {
|
|
123
123
|
var l;
|
|
124
124
|
return (l = n == null ? void 0 : n.children) == null ? void 0 : l.length;
|
|
125
|
-
}), c =
|
|
125
|
+
}), c = r.filter((n) => !n.isOperationCol);
|
|
126
126
|
if (a)
|
|
127
127
|
t.fields = Ue(c);
|
|
128
128
|
else {
|
|
129
129
|
const n = [];
|
|
130
130
|
c.forEach((l, o) => {
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
field:
|
|
131
|
+
const f = E(l, o);
|
|
132
|
+
f && !l.exportHidden && n.push({
|
|
133
|
+
field: f,
|
|
134
134
|
title: l.title,
|
|
135
135
|
show: !0
|
|
136
136
|
});
|
|
137
137
|
}), t.fields = n;
|
|
138
138
|
}
|
|
139
139
|
return (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? u(t, e.exportConfigState.defaultValue) : t;
|
|
140
|
-
}, [
|
|
140
|
+
}, [r]), [b, T] = N(
|
|
141
141
|
() => {
|
|
142
142
|
var i, n, l;
|
|
143
143
|
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.exportConfigState || {};
|
|
144
144
|
if (a && t && typeof window < "u" && t !== "online") {
|
|
145
145
|
const o = window[t];
|
|
146
146
|
try {
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
147
|
+
const f = o == null ? void 0 : o.getItem(a);
|
|
148
|
+
if (f)
|
|
149
149
|
return (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? u(
|
|
150
|
-
JSON.parse(
|
|
150
|
+
JSON.parse(f),
|
|
151
151
|
(n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue
|
|
152
|
-
) : JSON.parse(
|
|
153
|
-
} catch (
|
|
154
|
-
console.warn(
|
|
152
|
+
) : JSON.parse(f);
|
|
153
|
+
} catch (f) {
|
|
154
|
+
console.warn(f);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
return e.exportConfig || ((l = e.exportConfigState) == null ? void 0 : l.value) || x;
|
|
@@ -209,8 +209,8 @@ function _e(e) {
|
|
|
209
209
|
const { onlineGet: i, persistenceKey: n } = e.exportConfigState;
|
|
210
210
|
try {
|
|
211
211
|
(c = i == null ? void 0 : i(n)) == null || c.then((l) => {
|
|
212
|
-
var
|
|
213
|
-
const o = u(l ?? {}, (
|
|
212
|
+
var f;
|
|
213
|
+
const o = u(l ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
|
|
214
214
|
T(
|
|
215
215
|
Object.keys(o).length ? o : x
|
|
216
216
|
);
|
|
@@ -224,24 +224,24 @@ function _e(e) {
|
|
|
224
224
|
var l;
|
|
225
225
|
if ((l = e == null ? void 0 : e.columnsState) != null && l.defaultValue)
|
|
226
226
|
return e.columnsState.defaultValue;
|
|
227
|
-
const t =
|
|
228
|
-
return i.forEach((o,
|
|
229
|
-
const { order: w, width: We, fixed: Me, disabled: Pe } = o,
|
|
230
|
-
|
|
227
|
+
const t = r.filter((o) => o.fixed === "left").map((o, f) => ({ ...o, order: f })), a = r.filter((o) => o.fixed === "right").map((o, f) => ({ ...o, order: f })), c = r.filter((o) => !["left", "right"].includes(o.fixed)).map((o, f) => ({ ...o, order: f })), i = [...t, ...c, ...a], n = {};
|
|
228
|
+
return i.forEach((o, f) => {
|
|
229
|
+
const { order: w, width: We, fixed: Me, disabled: Pe } = o, re = E(o, f);
|
|
230
|
+
re && (n[re] = {
|
|
231
231
|
show: !0,
|
|
232
232
|
order: w,
|
|
233
233
|
fixed: Me,
|
|
234
234
|
disabled: Pe
|
|
235
235
|
});
|
|
236
236
|
}), n;
|
|
237
|
-
}, [
|
|
237
|
+
}, [r]), [Oe, Ve] = h(!1), [y, m] = N(
|
|
238
238
|
() => {
|
|
239
239
|
var i, n, l, o;
|
|
240
240
|
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.columnsState || {};
|
|
241
241
|
if (a && t && typeof window < "u" && t !== "online") {
|
|
242
|
-
const
|
|
242
|
+
const f = window[t];
|
|
243
243
|
try {
|
|
244
|
-
const w =
|
|
244
|
+
const w = f == null ? void 0 : f.getItem(a);
|
|
245
245
|
if (w)
|
|
246
246
|
return (i = e == null ? void 0 : e.columnsState) != null && i.defaultValue ? u(
|
|
247
247
|
JSON.parse(w),
|
|
@@ -338,8 +338,8 @@ function _e(e) {
|
|
|
338
338
|
const { onlineGet: i, persistenceKey: n } = e.columnsState;
|
|
339
339
|
try {
|
|
340
340
|
(c = i == null ? void 0 : i(n)) == null || c.then((l) => {
|
|
341
|
-
var
|
|
342
|
-
const o = u(l ?? {}, (
|
|
341
|
+
var f;
|
|
342
|
+
const o = u(l ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
|
|
343
343
|
m(o), Ve(!0);
|
|
344
344
|
});
|
|
345
345
|
} catch (l) {
|
|
@@ -348,27 +348,27 @@ function _e(e) {
|
|
|
348
348
|
}
|
|
349
349
|
}, []), g(() => {
|
|
350
350
|
var c, i;
|
|
351
|
-
const t =
|
|
351
|
+
const t = r.findIndex((n) => n == null ? void 0 : n.isOperationCol), a = Object.keys(y ?? {}).length === 0;
|
|
352
352
|
if (t >= 0) {
|
|
353
|
-
const n =
|
|
353
|
+
const n = r[t], l = E(n, t);
|
|
354
354
|
!(((c = y == null ? void 0 : y[l]) == null ? void 0 : c.fixed) === ((i = d == null ? void 0 : d[l]) == null ? void 0 : i.fixed)) && a && m(d);
|
|
355
355
|
} else
|
|
356
356
|
a && m(d);
|
|
357
357
|
}, [d, y]);
|
|
358
|
-
const ze = S(() => (e == null ? void 0 : e.rowHoverable) ?? (
|
|
358
|
+
const ze = S(() => (e == null ? void 0 : e.rowHoverable) ?? (s == null ? void 0 : s.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, s == null ? void 0 : s.rowHoverable]), be = S(() => e.zebra ?? C.zebra, [e.zebra, C.zebra]), V = S(() => e.bordered ?? C.bordered, [e.bordered, C.bordered]), ve = S(() => ["column", "row-column"].includes(V), [V]), Ne = S(() => {
|
|
359
359
|
let t = !1;
|
|
360
|
-
return ["hide", "column"].includes(
|
|
361
|
-
}, [
|
|
362
|
-
v(!0),
|
|
360
|
+
return ["hide", "column"].includes(V) && (t = !0), t;
|
|
361
|
+
}, [V]), [Be, v] = h(!1), [Ee, z] = h(de), Ie = () => {
|
|
362
|
+
v(!0), z(de);
|
|
363
363
|
}, Je = () => {
|
|
364
|
-
v(!1),
|
|
364
|
+
v(!1), z(0);
|
|
365
365
|
}, He = () => {
|
|
366
366
|
var t, a, c;
|
|
367
367
|
(c = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || c.call(
|
|
368
368
|
t,
|
|
369
369
|
(a = e.columnsState) == null ? void 0 : a.persistenceKey,
|
|
370
370
|
y
|
|
371
|
-
), v(!1),
|
|
371
|
+
), v(!1), z(0);
|
|
372
372
|
}, j = {
|
|
373
373
|
loading: e.loading ?? !1,
|
|
374
374
|
dataSource: e.dataSource,
|
|
@@ -386,9 +386,9 @@ function _e(e) {
|
|
|
386
386
|
countdown: Ee,
|
|
387
387
|
cancelAutoSave: Je,
|
|
388
388
|
immediateSave: He,
|
|
389
|
-
setCountdown:
|
|
389
|
+
setCountdown: z,
|
|
390
390
|
columns: e.columns,
|
|
391
|
-
baseColumns:
|
|
391
|
+
baseColumns: r,
|
|
392
392
|
persistenceType: (ee = e.columnsState) == null ? void 0 : ee.persistenceType,
|
|
393
393
|
persistenceKey: (te = e.columnsState) == null ? void 0 : te.persistenceKey,
|
|
394
394
|
onlineChange: (ne = e.columnsState) == null ? void 0 : ne.onlineChange,
|
|
@@ -405,15 +405,15 @@ function _e(e) {
|
|
|
405
405
|
stylesStorageKey: (ae = e.stylesConfigState) == null ? void 0 : ae.persistenceKey,
|
|
406
406
|
onlineStylesConfigChange: (oe = e.stylesConfigState) == null ? void 0 : oe.onlineChange,
|
|
407
407
|
clearStylesConfigCache: M,
|
|
408
|
-
defaultTableStylesConfig:
|
|
408
|
+
defaultTableStylesConfig: O,
|
|
409
409
|
exportConfig: b,
|
|
410
410
|
setTableExportConfig: T,
|
|
411
411
|
defaultTableExportConfig: x,
|
|
412
412
|
exportStorageType: (le = e.exportConfigState) == null ? void 0 : le.persistenceType,
|
|
413
413
|
exportStorageKey: (ce = e.exportConfigState) == null ? void 0 : ce.persistenceKey,
|
|
414
|
-
onlineExportConfigChange: (
|
|
414
|
+
onlineExportConfigChange: (se = e.exportConfigState) == null ? void 0 : se.onlineChange,
|
|
415
415
|
clearExportConfigCache: P,
|
|
416
|
-
exportConfigHardCodedValue: (
|
|
416
|
+
exportConfigHardCodedValue: (fe = e.exportConfigState) == null ? void 0 : fe.hardCodedValue,
|
|
417
417
|
zebra: be,
|
|
418
418
|
rowHoverable: ze,
|
|
419
419
|
showColumnBorder: ve,
|
|
@@ -13,9 +13,9 @@ import L from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
|
|
|
13
13
|
import { BitzConfigContext as M } from "../../../../BitzConfigProvider/context.mjs";
|
|
14
14
|
import { BitzTableContext as O } from "../../../Store/index.mjs";
|
|
15
15
|
import Y from "../../../../BitzTheme/index.mjs";
|
|
16
|
-
import { Form as i, Radio as u, Row as Z, Col as
|
|
16
|
+
import { Form as i, Radio as u, Row as Z, Col as S, Button as q } from "antd";
|
|
17
17
|
import Q from "../../../../../node_modules/classnames/index.mjs";
|
|
18
|
-
import { forwardRef as U, useRef as
|
|
18
|
+
import { forwardRef as U, useRef as P, useEffect as j, useMemo as X, useContext as b, useImperativeHandle as _, useState as ee, memo as oe } from "react";
|
|
19
19
|
import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
|
|
20
20
|
import r from "./RadioCard.mjs";
|
|
21
21
|
import le from "./ScopeSwitch.mjs";
|
|
@@ -24,13 +24,13 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
24
24
|
...n,
|
|
25
25
|
label: `${n.label}(默认)`
|
|
26
26
|
} : n), ne = U(({ display: s, postHeight: f }, n) => {
|
|
27
|
-
var
|
|
28
|
-
const { token: o } = Y.useToken(),
|
|
29
|
-
|
|
27
|
+
var g, z;
|
|
28
|
+
const { token: o } = Y.useToken(), y = P(null);
|
|
29
|
+
j(() => {
|
|
30
30
|
var l;
|
|
31
|
-
f((l =
|
|
31
|
+
f((l = y.current) == null ? void 0 : l.clientHeight);
|
|
32
32
|
}, []);
|
|
33
|
-
const
|
|
33
|
+
const C = X(() => ({
|
|
34
34
|
display: "flex",
|
|
35
35
|
width: s ? "100%" : 0,
|
|
36
36
|
pointerEvents: s ? "auto" : "none",
|
|
@@ -41,31 +41,31 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
41
41
|
left: 0,
|
|
42
42
|
right: 0
|
|
43
43
|
}
|
|
44
|
-
}), [s]),
|
|
44
|
+
}), [s]), w = {
|
|
45
45
|
size: 26,
|
|
46
46
|
color: o.colorPrimary
|
|
47
|
-
}, [a] = i.useForm(),
|
|
48
|
-
var
|
|
47
|
+
}, [a] = i.useForm(), H = (g = b(M).Table) == null ? void 0 : g.stylesScope, { defaultTableSize: R, stylesConfig: x, defaultTableStylesConfig: p } = b(O), t = (z = b(re).config) == null ? void 0 : z.stylesConfig, c = (l, m) => {
|
|
48
|
+
var v, I;
|
|
49
49
|
let d = m;
|
|
50
|
-
return (
|
|
51
|
-
disabled: (
|
|
50
|
+
return (v = t == null ? void 0 : t[l]) != null && v.disabled && (d = Q(m, "disabledControl")), {
|
|
51
|
+
disabled: (I = t == null ? void 0 : t[l]) == null ? void 0 : I.disabled,
|
|
52
52
|
className: d
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
a.setFieldsValue({
|
|
57
|
-
...
|
|
58
|
-
...
|
|
59
|
-
stylesScope:
|
|
55
|
+
j(() => {
|
|
56
|
+
console.log("ui -> stylesConfig", x), a.setFieldsValue({
|
|
57
|
+
...p,
|
|
58
|
+
...x,
|
|
59
|
+
stylesScope: H === "global"
|
|
60
60
|
});
|
|
61
|
-
}, []);
|
|
61
|
+
}, [x, p]);
|
|
62
62
|
const k = () => {
|
|
63
63
|
a.setFieldsValue({
|
|
64
|
-
...
|
|
64
|
+
...p,
|
|
65
65
|
stylesScope: !1
|
|
66
66
|
});
|
|
67
67
|
}, F = ie({
|
|
68
|
-
defaultSize:
|
|
68
|
+
defaultSize: R,
|
|
69
69
|
items: [
|
|
70
70
|
{
|
|
71
71
|
key: "xs",
|
|
@@ -97,10 +97,10 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
97
97
|
_(n, () => ({
|
|
98
98
|
getFormInstance: () => a
|
|
99
99
|
}));
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
}, []), /* @__PURE__ */ e.jsx("div", { style:
|
|
100
|
+
const h = P(null), [T, G] = ee("auto");
|
|
101
|
+
return j(() => {
|
|
102
|
+
h && G(h.current.clientWidth + 10);
|
|
103
|
+
}, []), /* @__PURE__ */ e.jsx("div", { style: C, ref: y, children: /* @__PURE__ */ e.jsxs(
|
|
104
104
|
i,
|
|
105
105
|
{
|
|
106
106
|
form: a,
|
|
@@ -110,7 +110,7 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
110
110
|
colon: !1,
|
|
111
111
|
className: "stylesConfigFormContent",
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */ e.jsx(i.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: F.map(({ key: l, label: m, icon: d }) => /* @__PURE__ */ e.jsx(r, { label: m, value: l, children: /* @__PURE__ */ e.jsx(d, { ...
|
|
113
|
+
/* @__PURE__ */ e.jsx(i.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: F.map(({ key: l, label: m, icon: d }) => /* @__PURE__ */ e.jsx(r, { label: m, value: l, children: /* @__PURE__ */ e.jsx(d, { ...w }) }, l)) }) }),
|
|
114
114
|
/* @__PURE__ */ e.jsx(i.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
|
|
115
115
|
u.Group,
|
|
116
116
|
{
|
|
@@ -179,8 +179,8 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
|
|
|
179
179
|
/* @__PURE__ */ e.jsx(r, { label: "100条", value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
|
|
180
180
|
] }) }),
|
|
181
181
|
/* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
|
|
182
|
-
/* @__PURE__ */ e.jsx(
|
|
183
|
-
/* @__PURE__ */ e.jsx(
|
|
182
|
+
/* @__PURE__ */ e.jsx(S, { ref: h, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
|
|
183
|
+
/* @__PURE__ */ e.jsx(S, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
|
|
184
184
|
q,
|
|
185
185
|
{
|
|
186
186
|
type: "link",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../_virtual/
|
|
2
|
+
import { __module as i } from "../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|