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.
@@ -1,4 +1,7 @@
1
- var a = { exports: {} };
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
- a as __module
6
+ s as default
4
7
  };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
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/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 "../../node_modules/dayjs/dayjs.min.mjs";
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,4 +1,4 @@
1
- import t from "../../node_modules/dayjs/dayjs.min.mjs";
1
+ import t from "../../_virtual/dayjs.min.mjs";
2
2
  import "../../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/zustand/esm/index.mjs";
2
- import o from "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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 "../../node_modules/dayjs/dayjs.min.mjs";
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, fe, re;
26
- const K = Re(Ae()), [ye, Se] = h(!1), [ge, Ce] = h(!1), [me, we] = h(0), f = Le(De).Table, I = e.defaultSize ?? (f == null ? void 0 : f.defaultSize) ?? "lg", he = e.defaultZebra ?? (f == null ? void 0 : f.zebra) ?? !0, xe = e.defaultBordered ?? (f == null ? void 0 : f.bordered) ?? "row-column", Te = e.defaultPageSize ?? (f == null ? void 0 : f.pageSize) ?? 10, Ke = e.defaultOrderBy ?? (f == null ? void 0 : f.orderBy) ?? "desc", z = S(() => {
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
- f == null ? void 0 : f.defaultSize,
40
+ s == null ? void 0 : s.defaultSize,
41
41
  e.defaultZebra,
42
- f == null ? void 0 : f.zebra,
42
+ s == null ? void 0 : s.zebra,
43
43
  e.defaultBordered,
44
- f == null ? void 0 : f.bordered,
44
+ s == null ? void 0 : s.bordered,
45
45
  e.defaultPageSize,
46
- f == null ? void 0 : f.pageSize,
46
+ s == null ? void 0 : s.pageSize,
47
47
  e.defaultOrderBy,
48
- f == null ? void 0 : f.orderBy,
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 r = o == null ? void 0 : o.getItem(a);
58
- if (r)
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(r),
60
+ JSON.parse(f),
61
61
  (n = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : n.defaultValue
62
- ) : JSON.parse(r);
63
- } catch (r) {
64
- console.warn(r);
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) || z;
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 r;
102
- const o = u(l ?? {}, (r = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : r.value);
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 : z
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 s = S(() => (e.columns ?? []).filter(
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 = s.find((n) => {
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 = s.filter((n) => !n.isOperationCol);
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 r = E(l, o);
132
- r && !l.exportHidden && n.push({
133
- field: r,
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
- }, [s]), [b, T] = N(
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 r = o == null ? void 0 : o.getItem(a);
148
- if (r)
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(r),
150
+ JSON.parse(f),
151
151
  (n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue
152
- ) : JSON.parse(r);
153
- } catch (r) {
154
- console.warn(r);
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 r;
213
- const o = u(l ?? {}, (r = e == null ? void 0 : e.exportConfigState) == null ? void 0 : r.value);
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 = s.filter((o) => o.fixed === "left").map((o, r) => ({ ...o, order: r })), a = s.filter((o) => o.fixed === "right").map((o, r) => ({ ...o, order: r })), c = s.filter((o) => !["left", "right"].includes(o.fixed)).map((o, r) => ({ ...o, order: r })), i = [...t, ...c, ...a], n = {};
228
- return i.forEach((o, r) => {
229
- const { order: w, width: We, fixed: Me, disabled: Pe } = o, se = E(o, r);
230
- se && (n[se] = {
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
- }, [s]), [Oe, Ve] = h(!1), [y, m] = N(
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 r = window[t];
242
+ const f = window[t];
243
243
  try {
244
- const w = r == null ? void 0 : r.getItem(a);
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 r;
342
- const o = u(l ?? {}, (r = e == null ? void 0 : e.columnsState) == null ? void 0 : r.value);
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 = s.findIndex((n) => n == null ? void 0 : n.isOperationCol), a = Object.keys(y ?? {}).length === 0;
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 = s[t], l = E(n, t);
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) ?? (f == null ? void 0 : f.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, f == null ? void 0 : f.rowHoverable]), be = S(() => e.zebra ?? C.zebra, [e.zebra, C.zebra]), O = S(() => e.bordered ?? C.bordered, [e.bordered, C.bordered]), ve = S(() => ["column", "row-column"].includes(O), [O]), Ne = S(() => {
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(O) && (t = !0), t;
361
- }, [O]), [Be, v] = h(!1), [Ee, V] = h(de), Ie = () => {
362
- v(!0), V(de);
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), V(0);
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), V(0);
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: V,
389
+ setCountdown: z,
390
390
  columns: e.columns,
391
- baseColumns: s,
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: z,
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: (fe = e.exportConfigState) == null ? void 0 : fe.onlineChange,
414
+ onlineExportConfigChange: (se = e.exportConfigState) == null ? void 0 : se.onlineChange,
415
415
  clearExportConfigCache: P,
416
- exportConfigHardCodedValue: (re = e.exportConfigState) == null ? void 0 : re.hardCodedValue,
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 I, Button as q } from "antd";
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 S, useEffect as p, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
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 y, g;
28
- const { token: o } = Y.useToken(), j = S(null);
29
- p(() => {
27
+ var g, z;
28
+ const { token: o } = Y.useToken(), y = P(null);
29
+ j(() => {
30
30
  var l;
31
- f((l = j.current) == null ? void 0 : l.clientHeight);
31
+ f((l = y.current) == null ? void 0 : l.clientHeight);
32
32
  }, []);
33
- const P = X(() => ({
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]), C = {
44
+ }), [s]), w = {
45
45
  size: 26,
46
46
  color: o.colorPrimary
47
- }, [a] = i.useForm(), w = (y = h(M).Table) == null ? void 0 : y.stylesScope, { defaultTableSize: H, stylesConfig: R, defaultTableStylesConfig: b } = h(O), t = (g = h(re).config) == null ? void 0 : g.stylesConfig, c = (l, m) => {
48
- var z, v;
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 (z = t == null ? void 0 : t[l]) != null && z.disabled && (d = Q(m, "disabledControl")), {
51
- disabled: (v = t == null ? void 0 : t[l]) == null ? void 0 : v.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
- p(() => {
56
- a.setFieldsValue({
57
- ...b,
58
- ...R,
59
- stylesScope: w === "global"
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
- ...b,
64
+ ...p,
65
65
  stylesScope: !1
66
66
  });
67
67
  }, F = ie({
68
- defaultSize: H,
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 x = S(null), [T, G] = ee("auto");
101
- return p(() => {
102
- x && G(x.current.clientWidth + 10);
103
- }, []), /* @__PURE__ */ e.jsx("div", { style: P, ref: j, children: /* @__PURE__ */ e.jsxs(
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, { ...C }) }, l)) }) }),
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(I, { ref: x, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
183
- /* @__PURE__ */ e.jsx(I, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__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/index2.mjs";
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