bitz-react-admin-ui 2.7.9 → 2.7.11
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/assets/iconfont/IconChenggong.mjs +4 -25
- package/dist/assets/iconfont/IconClose.mjs +3 -24
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
- package/dist/assets/iconfont/IconCuowu.mjs +2 -23
- package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
- package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
- package/dist/assets/iconfont/IconFabu.mjs +5 -35
- package/dist/assets/iconfont/IconFanhui.mjs +4 -25
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
- package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
- package/dist/assets/iconfont/IconIcon21.mjs +4 -25
- package/dist/assets/iconfont/IconJincoude.mjs +4 -25
- package/dist/assets/iconfont/IconJinggao.mjs +4 -25
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
- package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
- package/dist/assets/iconfont/IconMore.mjs +4 -41
- package/dist/assets/iconfont/IconShanchu.mjs +6 -27
- package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
- package/dist/assets/iconfont/IconSousuo.mjs +6 -27
- package/dist/assets/iconfont/IconTejincou.mjs +4 -25
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
- package/dist/assets/iconfont/IconTishi1.mjs +6 -27
- package/dist/assets/iconfont/IconTuodong.mjs +7 -28
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
- package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
- package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
- package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
- package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +44 -182
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.mjs +62 -103
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +73 -122
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
- package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.mjs +295 -544
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +31 -105
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +159 -346
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +38 -135
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +5 -18
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +49 -121
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +18 -62
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +16 -59
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +5 -20
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -46
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
- package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
- package/dist/components/BitzTableSelect/index.mjs +14 -65
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +14 -41
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +20 -59
- package/dist/components/BitzTooltip/style.mjs +6 -9
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +3 -9
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -25,16 +25,13 @@ function _e(e) {
|
|
|
25
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
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(() => {
|
|
27
27
|
var t;
|
|
28
|
-
return u(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
(t = e.stylesConfigState) == null ? void 0 : t.defaultValue
|
|
37
|
-
);
|
|
28
|
+
return u({
|
|
29
|
+
size: I,
|
|
30
|
+
zebra: he,
|
|
31
|
+
bordered: xe,
|
|
32
|
+
pageSize: Te,
|
|
33
|
+
orderBy: Ke
|
|
34
|
+
}, (t = e.stylesConfigState) == null ? void 0 : t.defaultValue);
|
|
38
35
|
}, [
|
|
39
36
|
e.defaultSize,
|
|
40
37
|
f == null ? void 0 : f.defaultSize,
|
|
@@ -47,30 +44,24 @@ function _e(e) {
|
|
|
47
44
|
e.defaultOrderBy,
|
|
48
45
|
f == null ? void 0 : f.orderBy,
|
|
49
46
|
(k = e.stylesConfigState) == null ? void 0 : k.defaultValue
|
|
50
|
-
]), [C, J] = N(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(n = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : n.defaultValue
|
|
62
|
-
) : JSON.parse(r);
|
|
63
|
-
} catch (r) {
|
|
64
|
-
console.warn(r);
|
|
65
|
-
}
|
|
47
|
+
]), [C, J] = N(() => {
|
|
48
|
+
var i, n, l;
|
|
49
|
+
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.stylesConfigState || {};
|
|
50
|
+
if (a && t && typeof window < "u" && t !== "online") {
|
|
51
|
+
const o = window[t];
|
|
52
|
+
try {
|
|
53
|
+
const r = o == null ? void 0 : o.getItem(a);
|
|
54
|
+
if (r)
|
|
55
|
+
return (i = e == null ? void 0 : e.stylesConfigState) != null && i.defaultValue ? u(JSON.parse(r), (n = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : n.defaultValue) : JSON.parse(r);
|
|
56
|
+
} catch (r) {
|
|
57
|
+
console.warn(r);
|
|
66
58
|
}
|
|
67
|
-
return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || z;
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: ((R = e.stylesConfigState) == null ? void 0 : R.value) || e.stylesConfig,
|
|
71
|
-
onChange: ((L = e.stylesConfigState) == null ? void 0 : L.onChange) || e.onStylesConfigChange
|
|
72
59
|
}
|
|
73
|
-
|
|
60
|
+
return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || z;
|
|
61
|
+
}, {
|
|
62
|
+
value: ((R = e.stylesConfigState) == null ? void 0 : R.value) || e.stylesConfig,
|
|
63
|
+
onChange: ((L = e.stylesConfigState) == null ? void 0 : L.onChange) || e.onStylesConfigChange
|
|
64
|
+
});
|
|
74
65
|
g(() => {
|
|
75
66
|
var c, i;
|
|
76
67
|
if (!((c = e.stylesConfigState) != null && c.persistenceKey) || !((i = e.stylesConfigState) != null && i.persistenceType) || typeof window > "u")
|
|
@@ -100,18 +91,14 @@ function _e(e) {
|
|
|
100
91
|
(c = i == null ? void 0 : i(n)) == null || c.then((l) => {
|
|
101
92
|
var r;
|
|
102
93
|
const o = u(l ?? {}, (r = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : r.value);
|
|
103
|
-
J(
|
|
104
|
-
Object.keys(o).length ? o : z
|
|
105
|
-
);
|
|
94
|
+
J(Object.keys(o).length ? o : z);
|
|
106
95
|
});
|
|
107
96
|
} catch (l) {
|
|
108
97
|
console.warn(l);
|
|
109
98
|
}
|
|
110
99
|
}
|
|
111
100
|
}, []);
|
|
112
|
-
const s = S(() => (e.columns ?? []).filter(
|
|
113
|
-
(t) => !Ze.includes(t) && t.title
|
|
114
|
-
), [e.columns]), x = S(() => {
|
|
101
|
+
const s = S(() => (e.columns ?? []).filter((t) => !Ze.includes(t) && t.title), [e.columns]), x = S(() => {
|
|
115
102
|
var i;
|
|
116
103
|
const t = {
|
|
117
104
|
fields: [],
|
|
@@ -137,30 +124,24 @@ function _e(e) {
|
|
|
137
124
|
}), t.fields = n;
|
|
138
125
|
}
|
|
139
126
|
return (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? u(t, e.exportConfigState.defaultValue) : t;
|
|
140
|
-
}, [s]), [b, T] = N(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
(n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue
|
|
152
|
-
) : JSON.parse(r);
|
|
153
|
-
} catch (r) {
|
|
154
|
-
console.warn(r);
|
|
155
|
-
}
|
|
127
|
+
}, [s]), [b, T] = N(() => {
|
|
128
|
+
var i, n, l;
|
|
129
|
+
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.exportConfigState || {};
|
|
130
|
+
if (a && t && typeof window < "u" && t !== "online") {
|
|
131
|
+
const o = window[t];
|
|
132
|
+
try {
|
|
133
|
+
const r = o == null ? void 0 : o.getItem(a);
|
|
134
|
+
if (r)
|
|
135
|
+
return (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? u(JSON.parse(r), (n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue) : JSON.parse(r);
|
|
136
|
+
} catch (r) {
|
|
137
|
+
console.warn(r);
|
|
156
138
|
}
|
|
157
|
-
return e.exportConfig || ((l = e.exportConfigState) == null ? void 0 : l.value) || x;
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
value: ((D = e.exportConfigState) == null ? void 0 : D.value) || e.exportConfig,
|
|
161
|
-
onChange: ((G = e.exportConfigState) == null ? void 0 : G.onChange) || e.onExportConfigChange
|
|
162
139
|
}
|
|
163
|
-
|
|
140
|
+
return e.exportConfig || ((l = e.exportConfigState) == null ? void 0 : l.value) || x;
|
|
141
|
+
}, {
|
|
142
|
+
value: ((D = e.exportConfigState) == null ? void 0 : D.value) || e.exportConfig,
|
|
143
|
+
onChange: ((G = e.exportConfigState) == null ? void 0 : G.onChange) || e.onExportConfigChange
|
|
144
|
+
});
|
|
164
145
|
g(() => {
|
|
165
146
|
var i, n;
|
|
166
147
|
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.exportConfigState || {};
|
|
@@ -168,12 +149,7 @@ function _e(e) {
|
|
|
168
149
|
const l = window[t];
|
|
169
150
|
try {
|
|
170
151
|
const o = l == null ? void 0 : l.getItem(a);
|
|
171
|
-
o ? (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? T(
|
|
172
|
-
u(
|
|
173
|
-
JSON.parse(o),
|
|
174
|
-
(n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue
|
|
175
|
-
)
|
|
176
|
-
) : T(JSON.parse(o)) : T(x);
|
|
152
|
+
o ? (i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue ? T(u(JSON.parse(o), (n = e == null ? void 0 : e.exportConfigState) == null ? void 0 : n.defaultValue)) : T(JSON.parse(o)) : T(x);
|
|
177
153
|
} catch (o) {
|
|
178
154
|
console.warn(o);
|
|
179
155
|
}
|
|
@@ -211,9 +187,7 @@ function _e(e) {
|
|
|
211
187
|
(c = i == null ? void 0 : i(n)) == null || c.then((l) => {
|
|
212
188
|
var r;
|
|
213
189
|
const o = u(l ?? {}, (r = e == null ? void 0 : e.exportConfigState) == null ? void 0 : r.value);
|
|
214
|
-
T(
|
|
215
|
-
Object.keys(o).length ? o : x
|
|
216
|
-
);
|
|
190
|
+
T(Object.keys(o).length ? o : x);
|
|
217
191
|
});
|
|
218
192
|
} catch (l) {
|
|
219
193
|
console.warn(l);
|
|
@@ -234,30 +208,24 @@ function _e(e) {
|
|
|
234
208
|
disabled: Pe
|
|
235
209
|
});
|
|
236
210
|
}), n;
|
|
237
|
-
}, [s]), [Oe, Ve] = h(!1), [y, m] = N(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
(n = e == null ? void 0 : e.columnsState) == null ? void 0 : n.defaultValue
|
|
249
|
-
) : JSON.parse(w);
|
|
250
|
-
} catch (w) {
|
|
251
|
-
console.warn(w);
|
|
252
|
-
}
|
|
211
|
+
}, [s]), [Oe, Ve] = h(!1), [y, m] = N(() => {
|
|
212
|
+
var i, n, l, o;
|
|
213
|
+
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.columnsState || {};
|
|
214
|
+
if (a && t && typeof window < "u" && t !== "online") {
|
|
215
|
+
const r = window[t];
|
|
216
|
+
try {
|
|
217
|
+
const w = r == null ? void 0 : r.getItem(a);
|
|
218
|
+
if (w)
|
|
219
|
+
return (i = e == null ? void 0 : e.columnsState) != null && i.defaultValue ? u(JSON.parse(w), (n = e == null ? void 0 : e.columnsState) == null ? void 0 : n.defaultValue) : JSON.parse(w);
|
|
220
|
+
} catch (w) {
|
|
221
|
+
console.warn(w);
|
|
253
222
|
}
|
|
254
|
-
return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((o = e.columnsState) == null ? void 0 : o.defaultValue) || {};
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
value: ((X = e.columnsState) == null ? void 0 : X.value) || e.columnsStateMap,
|
|
258
|
-
onChange: ((q = e.columnsState) == null ? void 0 : q.onChange) || e.onColumnsStateChange
|
|
259
223
|
}
|
|
260
|
-
|
|
224
|
+
return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((o = e.columnsState) == null ? void 0 : o.defaultValue) || {};
|
|
225
|
+
}, {
|
|
226
|
+
value: ((X = e.columnsState) == null ? void 0 : X.value) || e.columnsStateMap,
|
|
227
|
+
onChange: ((q = e.columnsState) == null ? void 0 : q.onChange) || e.onColumnsStateChange
|
|
228
|
+
});
|
|
261
229
|
g(() => {
|
|
262
230
|
var i, n;
|
|
263
231
|
const { persistenceType: t, persistenceKey: a, onlineGet: c } = e.columnsState || {};
|
|
@@ -265,12 +233,7 @@ function _e(e) {
|
|
|
265
233
|
const l = window[t];
|
|
266
234
|
try {
|
|
267
235
|
const o = l == null ? void 0 : l.getItem(a);
|
|
268
|
-
o ? (i = e == null ? void 0 : e.columnsState) != null && i.defaultValue ? m(
|
|
269
|
-
u(
|
|
270
|
-
JSON.parse(o),
|
|
271
|
-
(n = e == null ? void 0 : e.columnsState) == null ? void 0 : n.defaultValue
|
|
272
|
-
)
|
|
273
|
-
) : m(JSON.parse(o)) : m(d);
|
|
236
|
+
o ? (i = e == null ? void 0 : e.columnsState) != null && i.defaultValue ? m(u(JSON.parse(o), (n = e == null ? void 0 : e.columnsState) == null ? void 0 : n.defaultValue)) : m(JSON.parse(o)) : m(d);
|
|
274
237
|
} catch (o) {
|
|
275
238
|
console.warn(o);
|
|
276
239
|
}
|
|
@@ -364,11 +327,7 @@ function _e(e) {
|
|
|
364
327
|
v(!1), V(0);
|
|
365
328
|
}, He = () => {
|
|
366
329
|
var t, a, c;
|
|
367
|
-
(c = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || c.call(
|
|
368
|
-
t,
|
|
369
|
-
(a = e.columnsState) == null ? void 0 : a.persistenceKey,
|
|
370
|
-
y
|
|
371
|
-
), v(!1), V(0);
|
|
330
|
+
(c = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || c.call(t, (a = e.columnsState) == null ? void 0 : a.persistenceKey, y), v(!1), V(0);
|
|
372
331
|
}, j = {
|
|
373
332
|
loading: e.loading ?? !1,
|
|
374
333
|
dataSource: e.dataSource,
|
|
@@ -425,7 +384,7 @@ function _e(e) {
|
|
|
425
384
|
}
|
|
426
385
|
const Fe = ke({}), nt = (e) => {
|
|
427
386
|
const K = _e(e.initValue);
|
|
428
|
-
return
|
|
387
|
+
return je.jsx(Fe.Provider, { value: K, children: e.children });
|
|
429
388
|
};
|
|
430
389
|
export {
|
|
431
390
|
Fe as BitzTableContext,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const h = (e, r) => ((t, n) => t.map((d) => {
|
|
2
|
-
const o =
|
|
2
|
+
const o = y(d, d.index), s = n[o];
|
|
3
3
|
return s && s.show === !1 ? !1 : {
|
|
4
4
|
...d,
|
|
5
5
|
...s
|
|
@@ -7,7 +7,7 @@ const h = (e, r) => ((t, n) => t.map((d) => {
|
|
|
7
7
|
// width: finish ? config?.width ?? item?.width : item?.width
|
|
8
8
|
// },
|
|
9
9
|
};
|
|
10
|
-
}))(e, r).filter(Boolean),
|
|
10
|
+
}))(e, r).filter(Boolean), y = (e, r) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${r}`, k = (e) => {
|
|
11
11
|
const r = [];
|
|
12
12
|
function i(t) {
|
|
13
13
|
t.children ? t.children.forEach(i) : t.dataIndex && !t.exportHidden && r.push({
|
|
@@ -18,14 +18,14 @@ const h = (e, r) => ((t, n) => t.map((d) => {
|
|
|
18
18
|
}
|
|
19
19
|
return e.forEach(i), r;
|
|
20
20
|
}, p = (e) => (r, i) => {
|
|
21
|
-
var f, l, x,
|
|
21
|
+
var f, l, x, u;
|
|
22
22
|
const { fixed: t, index: n } = r, { fixed: d, index: o } = i;
|
|
23
23
|
if (t === "left" && d !== "left" || d === "right" && t !== "right")
|
|
24
24
|
return -2;
|
|
25
25
|
if (d === "left" && t !== "left" || t === "right" && d !== "right")
|
|
26
26
|
return 2;
|
|
27
27
|
const s = r.key || `${n}`, a = i.key || `${o}`;
|
|
28
|
-
return (f = e[s]) != null && f.order || (l = e[a]) != null && l.order ? (((x = e[s]) == null ? void 0 : x.order) || 0) - (((
|
|
28
|
+
return (f = e[s]) != null && f.order || (l = e[a]) != null && l.order ? (((x = e[s]) == null ? void 0 : x.order) || 0) - (((u = e[a]) == null ? void 0 : u.order) || 0) : (r.index || 0) - (i.index || 0);
|
|
29
29
|
};
|
|
30
30
|
function I(e, r, i) {
|
|
31
31
|
const t = {};
|
|
@@ -55,7 +55,7 @@ const c = (e, r) => {
|
|
|
55
55
|
export {
|
|
56
56
|
p as columnSort,
|
|
57
57
|
k as flattenColumns,
|
|
58
|
-
|
|
58
|
+
y as genColumnKey,
|
|
59
59
|
h as loopFilter,
|
|
60
60
|
c as removePropertiesWithoutMutation,
|
|
61
61
|
I as updateNestedObject
|
|
@@ -1,134 +1,104 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { Table as
|
|
4
|
-
import
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as w } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as j, useRef as ee, useMemo as s, useCallback as q } from "react";
|
|
3
|
+
import { Table as te } from "antd";
|
|
4
|
+
import ne from "../../../node_modules/classnames/index.mjs";
|
|
5
|
+
import { BitzTableContext as oe, toolCols as re } from "../Store/index.mjs";
|
|
6
|
+
import se from "../../../node_modules/ahooks/es/useSize/index.mjs";
|
|
7
|
+
import ae from "../../BitzTheme/index.mjs";
|
|
8
|
+
import ie from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
|
|
9
9
|
import "../../../node_modules/antd/es/config-provider/index.mjs";
|
|
10
|
-
import
|
|
11
|
-
import { getColumnsWithTool as
|
|
12
|
-
import { tablePaddingInline as
|
|
13
|
-
import { querySelectorAll as
|
|
14
|
-
import
|
|
15
|
-
import { ConfigContext as
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
scroll: r,
|
|
21
|
-
components: f,
|
|
22
|
-
expandable: l,
|
|
23
|
-
rowSelection: m,
|
|
24
|
-
...a
|
|
25
|
-
}) {
|
|
26
|
-
var T, W, E;
|
|
27
|
-
const { token: x } = at.useToken(), q = ((T = x.Table) == null ? void 0 : T.cellPaddingInline) ?? mt, { showColumnBorder: K, rowHoverable: M } = L(rt), h = tt(null), C = st((W = h.current) == null ? void 0 : W.nativeElement), P = s(() => {
|
|
28
|
-
if (r != null && r.auto)
|
|
10
|
+
import le from "../../../node_modules/antd/locale/en_US.mjs";
|
|
11
|
+
import { getColumnsWithTool as ue, loopBuildSkeleton as ce } from "../Table/utils.mjs";
|
|
12
|
+
import { tablePaddingInline as me } from "../../BitzConfigProvider/context.mjs";
|
|
13
|
+
import { querySelectorAll as fe } from "../../../utils/select-query.mjs";
|
|
14
|
+
import de from "../../../node_modules/lodash-es/omit.mjs";
|
|
15
|
+
import { ConfigContext as he } from "../../../node_modules/antd/es/config-provider/context.mjs";
|
|
16
|
+
function Ie({ dataSource: c, columns: g, loading: i, scroll: o, components: f, expandable: l, rowSelection: m, ...a }) {
|
|
17
|
+
var B, E, S;
|
|
18
|
+
const { token: x } = ae.useToken(), K = ((B = x.Table) == null ? void 0 : B.cellPaddingInline) ?? me, { showColumnBorder: M, rowHoverable: P } = j(oe), d = ee(null), y = se((E = d.current) == null ? void 0 : E.nativeElement), v = s(() => {
|
|
19
|
+
if (o != null && o.auto)
|
|
29
20
|
return {
|
|
30
|
-
...
|
|
21
|
+
...de(o, "auto"),
|
|
31
22
|
x: void 0
|
|
32
23
|
};
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
}, [
|
|
36
|
-
var
|
|
37
|
-
const t =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return Math.ceil(Math.max(...e)) + q * 2;
|
|
48
|
-
}, $ = () => {
|
|
49
|
-
var b, v, I, N, D;
|
|
50
|
-
const t = (v = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : v.querySelector(
|
|
51
|
-
".ant-table-body"
|
|
52
|
-
), e = t == null ? void 0 : t.clientWidth, n = ((t == null ? void 0 : t.offsetWidth) || 0) - e > 0, c = (D = (N = (I = h.current) == null ? void 0 : I.nativeElement) == null ? void 0 : N.querySelector(
|
|
53
|
-
".ant-table-cell-scrollbar"
|
|
54
|
-
)) == null ? void 0 : D.offsetWidth;
|
|
55
|
-
return { tbodyWidth: e, scrollbarSize: c, hasScrollBar: n };
|
|
24
|
+
const e = (o == null ? void 0 : o.x) ?? 1e3;
|
|
25
|
+
return o != null && o.x ? { x: e, y: o.y || 400 } : o != null && o.y ? { x: e, y: o.y } : { x: e, y: 400 };
|
|
26
|
+
}, [o]), A = () => {
|
|
27
|
+
var r, n;
|
|
28
|
+
const e = fe("& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)", (n = (r = d.current) == null ? void 0 : r.nativeElement) == null ? void 0 : n.querySelectorAll), t = [];
|
|
29
|
+
if (e == null || e.forEach((u) => {
|
|
30
|
+
var h;
|
|
31
|
+
t.push(((h = u.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : h.clientWidth) || 0);
|
|
32
|
+
}), t.length)
|
|
33
|
+
return Math.ceil(Math.max(...t)) + K * 2;
|
|
34
|
+
}, H = () => {
|
|
35
|
+
var h, I, N, D, L;
|
|
36
|
+
const e = (I = (h = d.current) == null ? void 0 : h.nativeElement) == null ? void 0 : I.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, u = (L = (D = (N = d.current) == null ? void 0 : N.nativeElement) == null ? void 0 : D.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : L.offsetWidth;
|
|
37
|
+
return { tbodyWidth: t, scrollbarSize: u, hasScrollBar: n };
|
|
56
38
|
}, { hasScrollBar: R, scrollbarSize: k } = s(() => {
|
|
57
|
-
const { hasScrollBar:
|
|
39
|
+
const { hasScrollBar: e, scrollbarSize: t } = H();
|
|
58
40
|
return {
|
|
59
|
-
hasScrollBar:
|
|
60
|
-
scrollbarSize:
|
|
41
|
+
hasScrollBar: e,
|
|
42
|
+
scrollbarSize: t
|
|
61
43
|
};
|
|
62
|
-
}, [
|
|
63
|
-
const
|
|
44
|
+
}, [y == null ? void 0 : y.height]), b = s(() => {
|
|
45
|
+
const e = g ?? [], r = e.filter((n) => !re.includes(n)).map((n) => ({
|
|
64
46
|
...n,
|
|
65
47
|
width: n.useMaxWidth ? A() ?? n.width : n.width
|
|
66
48
|
}));
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
!!l
|
|
73
|
-
);
|
|
74
|
-
}, [g]), S = s(() => ut(d), [d]), F = s(() => i ? S : d, [i, d, S]), p = s(() => {
|
|
75
|
-
const t = (u == null ? void 0 : u.length) ?? 0, e = t > 4 ? t >= 8 ? 8 : t : 4;
|
|
76
|
-
return Array.from({ length: e }).map((n, c) => ({
|
|
77
|
-
key: `${Date.now()}${c}`
|
|
49
|
+
return ue(e, r, !1, !!m, !!l);
|
|
50
|
+
}, [g]), p = s(() => ce(b), [b]), $ = s(() => i ? p : b, [i, b, p]), T = s(() => {
|
|
51
|
+
const e = (c == null ? void 0 : c.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
|
|
52
|
+
return Array.from({ length: t }).map((n, u) => ({
|
|
53
|
+
key: `${Date.now()}${u}`
|
|
78
54
|
}));
|
|
79
|
-
}, [
|
|
55
|
+
}, [c]), F = s(() => i ? T : c, [i, c, T]), { table: C, locale: G = le } = j(he), _ = { ...G.Table }, J = ((S = C == null ? void 0 : C.expandable) == null ? void 0 : S.expandIcon) || (l == null ? void 0 : l.expandIcon) || ie(_), W = s(() => {
|
|
80
56
|
if (l)
|
|
81
57
|
return {
|
|
82
58
|
...l,
|
|
83
|
-
expandedRowRender: () =>
|
|
84
|
-
expandIcon: (
|
|
85
|
-
const
|
|
59
|
+
expandedRowRender: () => w.jsx(w.Fragment, {}),
|
|
60
|
+
expandIcon: (e) => {
|
|
61
|
+
const t = J(e);
|
|
86
62
|
return {
|
|
87
|
-
...
|
|
63
|
+
...t,
|
|
88
64
|
props: {
|
|
89
|
-
...
|
|
65
|
+
...t.props,
|
|
90
66
|
disabled: !0,
|
|
91
67
|
style: {
|
|
92
|
-
...
|
|
68
|
+
...t.props.style,
|
|
93
69
|
backgroundColor: x.colorBgContainerDisabled
|
|
94
70
|
}
|
|
95
71
|
}
|
|
96
72
|
};
|
|
97
73
|
}
|
|
98
74
|
};
|
|
99
|
-
}, [l]), O = s(() => i ?
|
|
75
|
+
}, [l]), O = s(() => i ? W : l, [i, l, W]), z = s(() => {
|
|
100
76
|
if (m)
|
|
101
77
|
return {
|
|
102
78
|
...m,
|
|
103
79
|
selectedRowKeys: [],
|
|
104
80
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
105
81
|
};
|
|
106
|
-
}, [m]), Q = s(() => i ?
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var o;
|
|
127
|
-
const e = { ...t };
|
|
128
|
-
return e.className.includes("ant-table-cell-fix-right") && !R && ((o = e.style) != null && o.right) && (e.style = {
|
|
129
|
-
...e.style,
|
|
130
|
-
right: e.style.right - (k || 0)
|
|
131
|
-
}), /* @__PURE__ */ y.jsx("th", { ...e });
|
|
82
|
+
}, [m]), Q = s(() => i ? z : m, [i, m, z]), U = s(() => i ? void 0 : a.rowKey, [i, a.rowKey]), V = q((e, t) => {
|
|
83
|
+
var n;
|
|
84
|
+
if (!a.onRow)
|
|
85
|
+
return {};
|
|
86
|
+
const r = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
|
|
87
|
+
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
88
|
+
}, [a.onRow]), X = q((e, t, r) => {
|
|
89
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
90
|
+
if (a.rowClassName) {
|
|
91
|
+
const u = a.rowClassName(e, t, r);
|
|
92
|
+
return ne(n, u);
|
|
93
|
+
}
|
|
94
|
+
return n;
|
|
95
|
+
}, [a.rowClassName]), Y = (e) => {
|
|
96
|
+
var r;
|
|
97
|
+
const t = { ...e };
|
|
98
|
+
return t.className.includes("ant-table-cell-fix-right") && !R && ((r = t.style) != null && r.right) && (t.style = {
|
|
99
|
+
...t.style,
|
|
100
|
+
right: t.style.right - (k || 0)
|
|
101
|
+
}), w.jsx("th", { ...t });
|
|
132
102
|
}, Z = s(() => ({
|
|
133
103
|
...f,
|
|
134
104
|
header: {
|
|
@@ -136,27 +106,8 @@ function vt({
|
|
|
136
106
|
cell: Y
|
|
137
107
|
}
|
|
138
108
|
}), [f, R, k]);
|
|
139
|
-
return
|
|
140
|
-
et,
|
|
141
|
-
{
|
|
142
|
-
...a,
|
|
143
|
-
bordered: K,
|
|
144
|
-
columns: F,
|
|
145
|
-
dataSource: G,
|
|
146
|
-
loading: !1,
|
|
147
|
-
pagination: !1,
|
|
148
|
-
scroll: P,
|
|
149
|
-
expandable: O,
|
|
150
|
-
rowSelection: Q,
|
|
151
|
-
onRow: V,
|
|
152
|
-
rowClassName: X,
|
|
153
|
-
components: Z,
|
|
154
|
-
rowKey: U,
|
|
155
|
-
rowHoverable: M,
|
|
156
|
-
ref: h
|
|
157
|
-
}
|
|
158
|
-
);
|
|
109
|
+
return w.jsx(te, { ...a, bordered: M, columns: $, dataSource: F, loading: !1, pagination: !1, scroll: v, expandable: O, rowSelection: Q, onRow: V, rowClassName: X, components: Z, rowKey: U, rowHoverable: P, ref: d });
|
|
159
110
|
}
|
|
160
111
|
export {
|
|
161
|
-
|
|
112
|
+
Ie as default
|
|
162
113
|
};
|
|
@@ -1,70 +1,48 @@
|
|
|
1
1
|
import { j as a } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Resizable as v } from "../../../node_modules/react-resizable/index.mjs";
|
|
3
|
-
import { useState as E, useMemo as b, useRef as
|
|
3
|
+
import { useState as E, useMemo as b, useRef as l } from "react";
|
|
4
4
|
import L from "../../../node_modules/classnames/index.mjs";
|
|
5
5
|
const d = 56, C = (p) => {
|
|
6
|
-
const { hasScrollBar: g, scrollbarSize: y, onResize: x, width: n, datagridref: S, stretchref: u, ...j } = p, [
|
|
6
|
+
const { hasScrollBar: g, scrollbarSize: y, onResize: x, width: n, datagridref: S, stretchref: u, ...j } = p, [w, m] = E(!1), R = b(() => {
|
|
7
7
|
var t, z;
|
|
8
8
|
const e = { ...j };
|
|
9
9
|
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !g && ((z = e.style) != null && z.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
|
|
10
|
-
}, [p]), c =
|
|
10
|
+
}, [p]), c = l(0), f = l(0), r = l(0), i = l(0), o = l(!1), h = b(() => c.current - n + d, [c.current, n]);
|
|
11
11
|
if (!n)
|
|
12
|
-
return
|
|
13
|
-
const
|
|
12
|
+
return a.jsx("th", { ...R });
|
|
13
|
+
const D = (e) => {
|
|
14
14
|
if (r.current = e.clientX - f.current, n + r.current - c.current <= d || r.current < h) {
|
|
15
15
|
o.current = !0;
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
r.current >= h && o.current && (r.current = h, o.current = !1);
|
|
19
19
|
const t = u.current;
|
|
20
|
-
|
|
21
|
-
},
|
|
20
|
+
i.current = r.current, t.style.left = `${i.current}px`;
|
|
21
|
+
}, N = (e) => {
|
|
22
22
|
m(!0);
|
|
23
23
|
const s = u.current;
|
|
24
24
|
s.style.opacity = 1, s.style.pointerEvents = "auto", f.current = S.current.getBoundingClientRect().left;
|
|
25
25
|
const t = e.clientX - f.current;
|
|
26
|
-
|
|
26
|
+
i.current = t, s.style.left = `${t}px`, c.current = t, r.current = t;
|
|
27
27
|
}, P = (e, s) => {
|
|
28
28
|
o.current = !1, m(!1);
|
|
29
29
|
const t = u.current;
|
|
30
30
|
t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
|
|
31
31
|
t.style.left = "0px";
|
|
32
|
-
}, 200), x(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...s.size,
|
|
39
|
-
width: n + l.current - c.current
|
|
40
|
-
}
|
|
32
|
+
}, 200), x(e, {
|
|
33
|
+
...s,
|
|
34
|
+
minWidth: d,
|
|
35
|
+
size: {
|
|
36
|
+
...s.size,
|
|
37
|
+
width: n + i.current - c.current
|
|
41
38
|
}
|
|
42
|
-
),
|
|
43
|
-
}, X =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
return /* @__PURE__ */ a.jsx(
|
|
53
|
-
v,
|
|
54
|
-
{
|
|
55
|
-
width: n,
|
|
56
|
-
height: 0,
|
|
57
|
-
handle: X,
|
|
58
|
-
className: L("bitzResizable", {
|
|
59
|
-
disabledUserSelect: D
|
|
60
|
-
}),
|
|
61
|
-
onResize: N,
|
|
62
|
-
onResizeStart: w,
|
|
63
|
-
onResizeStop: P,
|
|
64
|
-
draggableOpts: { enableUserSelectHack: !1 },
|
|
65
|
-
children: /* @__PURE__ */ a.jsx("th", { ...R })
|
|
66
|
-
}
|
|
67
|
-
);
|
|
39
|
+
}), i.current = 0, c.current = 0, r.current = 0;
|
|
40
|
+
}, X = a.jsx("span", { className: "bitzResizableHandle", onClick: (e) => {
|
|
41
|
+
e.stopPropagation(), e.preventDefault();
|
|
42
|
+
} });
|
|
43
|
+
return a.jsx(v, { width: n, height: 0, handle: X, className: L("bitzResizable", {
|
|
44
|
+
disabledUserSelect: w
|
|
45
|
+
}), onResize: D, onResizeStart: N, onResizeStop: P, draggableOpts: { enableUserSelectHack: !1 }, children: a.jsx("th", { ...R }) });
|
|
68
46
|
};
|
|
69
47
|
export {
|
|
70
48
|
C as default
|