bitz-react-admin-ui 2.2.6 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- 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/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- 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/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 +19 -51
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- 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.d.ts +21 -9
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
- 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 +2 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.d.ts +5 -1
- package/dist/components/BitzTable/Store/index.mjs +189 -199
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +76 -119
- package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +257 -446
- package/dist/components/BitzTable/Table/style.mjs +1 -11
- package/dist/components/BitzTable/Table/utils.d.ts +2 -2
- package/dist/components/BitzTable/Table/utils.mjs +30 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +147 -255
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTable/index.d.ts +3 -2
- package/dist/components/BitzTable/index.mjs +17 -15
- 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 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- 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/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/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +12 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,41 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { j as ve } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Table as oe } from "antd";
|
|
3
|
+
import N from "../../../hooks/useMergedState.mjs";
|
|
4
|
+
import { createContext as Ve, useRef as Oe, useState as fe, useContext as Ne, useEffect as S, useMemo as g, useCallback as z } from "react";
|
|
4
5
|
import { genColumnKey as re } from "./utils/index.mjs";
|
|
5
|
-
import { getUuid as
|
|
6
|
+
import { getUuid as ze } from "../../../utils/uuid.mjs";
|
|
6
7
|
import { BitzConfigContext as Ee } from "../../BitzConfigProvider/context.mjs";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
8
|
+
import C from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
|
|
9
|
+
const Je = {
|
|
10
|
+
fixed: "left",
|
|
11
|
+
className: "sorterCol",
|
|
12
|
+
isDragSorterCol: !0,
|
|
13
|
+
disabled: !0,
|
|
14
|
+
mobileHide: !0,
|
|
15
|
+
width: "var(--toolCell-width)",
|
|
16
|
+
onCell: () => ({
|
|
17
|
+
"data-column-name": "dragSorterCell"
|
|
18
|
+
})
|
|
19
|
+
}, Ie = [
|
|
20
|
+
Je,
|
|
21
|
+
oe.SELECTION_COLUMN,
|
|
22
|
+
oe.EXPAND_COLUMN
|
|
23
|
+
];
|
|
24
|
+
function Me(e) {
|
|
25
|
+
var H, k, R, L, P, U, D, _, G, Z, A, F, X, q, Q, W, Y, $, p, ee, te, ne, ie, ae, ce;
|
|
26
|
+
const K = Oe(ze()), [ue, se] = fe(!1), [de, ye] = fe(!1), u = Ne(Ee).Table, Se = u == null ? void 0 : u.defaultSize, E = e.defaultSize ?? Se ?? "lg", ge = e.defaultZebra ?? (u == null ? void 0 : u.zebra) ?? !0, Ce = e.defaultBordered ?? (u == null ? void 0 : u.bordered) ?? "row-column", v = e.defaultStylesConfig || {
|
|
27
|
+
size: E,
|
|
28
|
+
zebra: ge,
|
|
29
|
+
bordered: Ce
|
|
30
|
+
}, [y, J] = N(() => {
|
|
31
|
+
var n, l, c, o;
|
|
32
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.stylesConfigState || {};
|
|
33
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
34
|
+
const f = window[t];
|
|
35
|
+
try {
|
|
36
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
37
|
+
if (r)
|
|
38
|
+
return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
|
|
39
|
+
} catch (r) {
|
|
40
|
+
console.warn(r);
|
|
30
41
|
}
|
|
31
|
-
return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((l = e.stylesConfigState) == null ? void 0 : l.defaultValue) || b;
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
value: ((j = e.stylesConfigState) == null ? void 0 : j.value) || e.stylesConfig,
|
|
35
|
-
onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
|
|
36
42
|
}
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((o = e.stylesConfigState) == null ? void 0 : o.defaultValue) || v;
|
|
44
|
+
}, {
|
|
45
|
+
value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
|
|
46
|
+
onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
|
|
47
|
+
});
|
|
48
|
+
S(() => {
|
|
39
49
|
var a, n;
|
|
40
50
|
if (!((a = e.stylesConfigState) != null && a.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
|
|
41
51
|
return;
|
|
@@ -45,36 +55,37 @@ function Be(e) {
|
|
|
45
55
|
// onlineChange
|
|
46
56
|
} = e.stylesConfigState;
|
|
47
57
|
if (t !== "online") {
|
|
48
|
-
const
|
|
58
|
+
const l = window[t];
|
|
49
59
|
try {
|
|
50
|
-
|
|
60
|
+
l == null || l.setItem(i, JSON.stringify(y));
|
|
51
61
|
} catch (c) {
|
|
52
|
-
console.warn(c),
|
|
62
|
+
console.warn(c), M();
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
65
|
}, [
|
|
56
|
-
(
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
]),
|
|
66
|
+
(R = e.stylesConfigState) == null ? void 0 : R.persistenceKey,
|
|
67
|
+
y,
|
|
68
|
+
(L = e.stylesConfigState) == null ? void 0 : L.persistenceType
|
|
69
|
+
]), S(() => {
|
|
60
70
|
var t, i, a;
|
|
61
71
|
if ((t = e.stylesConfigState) != null && t.persistenceKey && ((i = e.stylesConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
62
|
-
const { onlineGet: n, persistenceKey:
|
|
72
|
+
const { onlineGet: n, persistenceKey: l } = e.stylesConfigState;
|
|
63
73
|
try {
|
|
64
|
-
(a = n == null ? void 0 : n(
|
|
74
|
+
(a = n == null ? void 0 : n(l)) == null || a.then((c) => {
|
|
65
75
|
var f;
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
Object.keys(l).length ? l : b
|
|
69
|
-
);
|
|
76
|
+
const o = C(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
|
|
77
|
+
J(Object.keys(o).length ? o : v);
|
|
70
78
|
});
|
|
71
79
|
} catch (c) {
|
|
72
80
|
console.warn(c);
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
}, []);
|
|
76
|
-
const
|
|
77
|
-
var
|
|
84
|
+
const s = g(() => {
|
|
85
|
+
var t;
|
|
86
|
+
return (t = e.columns) == null ? void 0 : t.filter((i) => !Ie.includes(i));
|
|
87
|
+
}, [e.columns]), w = g(() => {
|
|
88
|
+
var i;
|
|
78
89
|
if ((i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue)
|
|
79
90
|
return e.exportConfigState.defaultValue;
|
|
80
91
|
const t = {
|
|
@@ -84,60 +95,49 @@ function Be(e) {
|
|
|
84
95
|
info: void 0
|
|
85
96
|
}
|
|
86
97
|
};
|
|
87
|
-
return
|
|
88
|
-
const { title:
|
|
89
|
-
|
|
90
|
-
field:
|
|
91
|
-
title:
|
|
98
|
+
return s == null || s.forEach((a, n) => {
|
|
99
|
+
const { title: l, isOperationCol: c } = a, o = re(a, n);
|
|
100
|
+
o && !c && t.fields.push({
|
|
101
|
+
field: o,
|
|
102
|
+
title: l,
|
|
92
103
|
show: !0
|
|
93
104
|
});
|
|
94
105
|
}), t;
|
|
95
|
-
}, [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
(o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
|
|
107
|
-
) : JSON.parse(u);
|
|
108
|
-
} catch (u) {
|
|
109
|
-
console.warn(u);
|
|
110
|
-
}
|
|
106
|
+
}, [s]), [V, x] = N(() => {
|
|
107
|
+
var n, l, c, o;
|
|
108
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
|
|
109
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
110
|
+
const f = window[t];
|
|
111
|
+
try {
|
|
112
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
113
|
+
if (r)
|
|
114
|
+
return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
|
|
115
|
+
} catch (r) {
|
|
116
|
+
console.warn(r);
|
|
111
117
|
}
|
|
112
|
-
return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((l = e.exportConfigState) == null ? void 0 : l.defaultValue) || m;
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
|
|
116
|
-
onChange: ((R = e.exportConfigState) == null ? void 0 : R.onChange) || e.onExportConfigChange
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((o = e.exportConfigState) == null ? void 0 : o.defaultValue) || w;
|
|
120
|
+
}, {
|
|
121
|
+
value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
|
|
122
|
+
onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
|
|
123
|
+
});
|
|
124
|
+
S(() => {
|
|
125
|
+
var n, l;
|
|
121
126
|
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
|
|
122
127
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
123
128
|
const c = window[t];
|
|
124
129
|
try {
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
(o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
|
|
130
|
-
)
|
|
131
|
-
) : w(JSON.parse(l)) : w(m);
|
|
132
|
-
} catch (l) {
|
|
133
|
-
console.warn(l);
|
|
130
|
+
const o = c == null ? void 0 : c.getItem(i);
|
|
131
|
+
o ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(C(JSON.parse(o), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue)) : x(JSON.parse(o)) : x(w);
|
|
132
|
+
} catch (o) {
|
|
133
|
+
console.warn(o);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}, [
|
|
137
|
-
(
|
|
138
|
-
(
|
|
139
|
-
|
|
140
|
-
]),
|
|
137
|
+
(D = e.exportConfigState) == null ? void 0 : D.persistenceKey,
|
|
138
|
+
(_ = e.exportConfigState) == null ? void 0 : _.persistenceType,
|
|
139
|
+
w
|
|
140
|
+
]), S(() => {
|
|
141
141
|
var a, n;
|
|
142
142
|
if (!((a = e.exportConfigState) != null && a.persistenceKey) || !((n = e.exportConfigState) != null && n.persistenceType) || typeof window > "u")
|
|
143
143
|
return;
|
|
@@ -147,93 +147,80 @@ function Be(e) {
|
|
|
147
147
|
// onlineChange
|
|
148
148
|
} = e.exportConfigState;
|
|
149
149
|
if (t !== "online") {
|
|
150
|
-
const
|
|
150
|
+
const l = window[t];
|
|
151
151
|
try {
|
|
152
|
-
|
|
152
|
+
l == null || l.setItem(i, JSON.stringify(V));
|
|
153
153
|
} catch (c) {
|
|
154
154
|
console.warn(c), B();
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}, [
|
|
158
|
-
(
|
|
158
|
+
(G = e.exportConfigState) == null ? void 0 : G.persistenceKey,
|
|
159
159
|
V,
|
|
160
|
-
(
|
|
161
|
-
]),
|
|
160
|
+
(Z = e.exportConfigState) == null ? void 0 : Z.persistenceType
|
|
161
|
+
]), S(() => {
|
|
162
162
|
var t, i, a;
|
|
163
163
|
if ((t = e.exportConfigState) != null && t.persistenceKey && ((i = e.exportConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
164
|
-
const { onlineGet: n, persistenceKey:
|
|
164
|
+
const { onlineGet: n, persistenceKey: l } = e.exportConfigState;
|
|
165
165
|
try {
|
|
166
|
-
(a = n == null ? void 0 : n(
|
|
166
|
+
(a = n == null ? void 0 : n(l)) == null || a.then((c) => {
|
|
167
167
|
var f;
|
|
168
|
-
const
|
|
169
|
-
w
|
|
170
|
-
Object.keys(l).length ? l : m
|
|
171
|
-
);
|
|
168
|
+
const o = C(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
|
|
169
|
+
x(Object.keys(o).length ? o : w);
|
|
172
170
|
});
|
|
173
171
|
} catch (c) {
|
|
174
172
|
console.warn(c);
|
|
175
173
|
}
|
|
176
174
|
}
|
|
177
175
|
}, []);
|
|
178
|
-
const
|
|
179
|
-
var c,
|
|
176
|
+
const h = g(() => {
|
|
177
|
+
var c, o, f, r;
|
|
180
178
|
if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
|
|
181
179
|
return e.columnsState.defaultValue;
|
|
182
|
-
const t = ((
|
|
183
|
-
return n == null || n.forEach((
|
|
184
|
-
const { order:
|
|
185
|
-
|
|
180
|
+
const t = ((o = s == null ? void 0 : s.filter((d) => d.fixed === "left")) == null ? void 0 : o.map((d, m) => ({ ...d, order: m }))) ?? [], i = ((f = s == null ? void 0 : s.filter((d) => d.fixed === "right")) == null ? void 0 : f.map((d, m) => ({ ...d, order: m }))) ?? [], a = ((r = s == null ? void 0 : s.filter((d) => !["left", "right"].includes(d.fixed))) == null ? void 0 : r.map((d, m) => ({ ...d, order: m }))) ?? [], n = [...t, ...a, ...i], l = {};
|
|
181
|
+
return n == null || n.forEach((d, m) => {
|
|
182
|
+
const { order: Te, fixed: Ke, disabled: be } = d, le = re(d, m);
|
|
183
|
+
le && (l[le] = {
|
|
186
184
|
show: !0,
|
|
187
|
-
order:
|
|
188
|
-
fixed:
|
|
189
|
-
disabled:
|
|
185
|
+
order: Te,
|
|
186
|
+
fixed: Ke,
|
|
187
|
+
disabled: be
|
|
190
188
|
});
|
|
191
|
-
}),
|
|
192
|
-
}, [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
(o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
|
|
204
|
-
) : JSON.parse(u);
|
|
205
|
-
} catch (u) {
|
|
206
|
-
console.warn(u);
|
|
207
|
-
}
|
|
189
|
+
}), l;
|
|
190
|
+
}, [s]), [O, T] = N(() => {
|
|
191
|
+
var n, l, c, o;
|
|
192
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
|
|
193
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
194
|
+
const f = window[t];
|
|
195
|
+
try {
|
|
196
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
197
|
+
if (r)
|
|
198
|
+
return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
|
|
199
|
+
} catch (r) {
|
|
200
|
+
console.warn(r);
|
|
208
201
|
}
|
|
209
|
-
return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((l = e.columnsState) == null ? void 0 : l.defaultValue) || x;
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
value: ((q = e.columnsState) == null ? void 0 : q.value) || e.columnsStateMap,
|
|
213
|
-
onChange: ((A = e.columnsState) == null ? void 0 : A.onChange) || e.onColumnsStateChange
|
|
214
202
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
203
|
+
return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((o = e.columnsState) == null ? void 0 : o.defaultValue) || h;
|
|
204
|
+
}, {
|
|
205
|
+
value: ((A = e.columnsState) == null ? void 0 : A.value) || e.columnsStateMap,
|
|
206
|
+
onChange: ((F = e.columnsState) == null ? void 0 : F.onChange) || e.onColumnsStateChange
|
|
207
|
+
});
|
|
208
|
+
S(() => {
|
|
209
|
+
var n, l;
|
|
218
210
|
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
|
|
219
211
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
220
212
|
const c = window[t];
|
|
221
213
|
try {
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
(o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
|
|
227
|
-
)
|
|
228
|
-
) : h(JSON.parse(l)) : h(x);
|
|
229
|
-
} catch (l) {
|
|
230
|
-
console.warn(l);
|
|
214
|
+
const o = c == null ? void 0 : c.getItem(i);
|
|
215
|
+
o ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? T(C(JSON.parse(o), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue)) : T(JSON.parse(o)) : T(h);
|
|
216
|
+
} catch (o) {
|
|
217
|
+
console.warn(o);
|
|
231
218
|
}
|
|
232
219
|
}
|
|
233
220
|
}, [
|
|
234
|
-
(
|
|
235
|
-
(
|
|
236
|
-
|
|
221
|
+
(X = e.columnsState) == null ? void 0 : X.persistenceKey,
|
|
222
|
+
(q = e.columnsState) == null ? void 0 : q.persistenceType,
|
|
223
|
+
h
|
|
237
224
|
]);
|
|
238
225
|
const I = z(() => {
|
|
239
226
|
const { persistenceType: t, persistenceKey: i } = e.columnsState || {};
|
|
@@ -245,7 +232,7 @@ function Be(e) {
|
|
|
245
232
|
} catch (n) {
|
|
246
233
|
console.warn(n);
|
|
247
234
|
}
|
|
248
|
-
}, [e.columnsState]),
|
|
235
|
+
}, [e.columnsState]), M = z(() => {
|
|
249
236
|
const { persistenceType: t, persistenceKey: i } = e.stylesConfigState || {};
|
|
250
237
|
if (!i || !t || typeof window > "u")
|
|
251
238
|
return;
|
|
@@ -266,7 +253,7 @@ function Be(e) {
|
|
|
266
253
|
console.warn(n);
|
|
267
254
|
}
|
|
268
255
|
}, [e.exportConfigState]);
|
|
269
|
-
|
|
256
|
+
S(() => {
|
|
270
257
|
var a, n;
|
|
271
258
|
if (!((a = e.columnsState) != null && a.persistenceKey) || !((n = e.columnsState) != null && n.persistenceType) || typeof window > "u")
|
|
272
259
|
return;
|
|
@@ -276,80 +263,83 @@ function Be(e) {
|
|
|
276
263
|
// onlineChange
|
|
277
264
|
} = e.columnsState;
|
|
278
265
|
if (t !== "online") {
|
|
279
|
-
const
|
|
266
|
+
const l = window[t];
|
|
280
267
|
try {
|
|
281
|
-
|
|
268
|
+
l == null || l.setItem(i, JSON.stringify(O));
|
|
282
269
|
} catch (c) {
|
|
283
270
|
console.warn(c), I();
|
|
284
271
|
}
|
|
285
272
|
}
|
|
286
273
|
}, [
|
|
287
|
-
(
|
|
288
|
-
|
|
289
|
-
(
|
|
290
|
-
]),
|
|
274
|
+
(Q = e.columnsState) == null ? void 0 : Q.persistenceKey,
|
|
275
|
+
O,
|
|
276
|
+
(W = e.columnsState) == null ? void 0 : W.persistenceType
|
|
277
|
+
]), S(() => {
|
|
291
278
|
var t, i, a;
|
|
292
279
|
if ((t = e.columnsState) != null && t.persistenceKey && ((i = e.columnsState) == null ? void 0 : i.persistenceType) === "online") {
|
|
293
|
-
const { onlineGet: n, persistenceKey:
|
|
280
|
+
const { onlineGet: n, persistenceKey: l } = e.columnsState;
|
|
294
281
|
try {
|
|
295
|
-
(a = n == null ? void 0 : n(
|
|
282
|
+
(a = n == null ? void 0 : n(l)) == null || a.then((c) => {
|
|
296
283
|
var f;
|
|
297
|
-
const
|
|
298
|
-
|
|
284
|
+
const o = C(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
|
|
285
|
+
T(Object.keys(o).length ? o : h);
|
|
299
286
|
});
|
|
300
287
|
} catch (c) {
|
|
301
288
|
console.warn(c);
|
|
302
289
|
}
|
|
303
290
|
}
|
|
304
291
|
}, []);
|
|
305
|
-
const
|
|
292
|
+
const me = g(() => (e == null ? void 0 : e.rowHoverable) ?? (u == null ? void 0 : u.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, u == null ? void 0 : u.rowHoverable]), we = g(() => e.zebra ?? y.zebra, [e.zebra, y.zebra]), b = g(() => e.bordered ?? y.bordered, [e.bordered, y.bordered]), xe = g(() => ["column", "row-column"].includes(b), [b]), he = g(() => {
|
|
306
293
|
let t = !1;
|
|
307
|
-
return ["hide", "column"].includes(
|
|
308
|
-
}, [
|
|
294
|
+
return ["hide", "column"].includes(b) && (t = !0), t;
|
|
295
|
+
}, [b]), j = {
|
|
309
296
|
loading: e.loading ?? !1,
|
|
310
|
-
uuid:
|
|
311
|
-
fullscreen:
|
|
312
|
-
setFullscreen:
|
|
313
|
-
selected:
|
|
314
|
-
setSelected:
|
|
297
|
+
uuid: K.current,
|
|
298
|
+
fullscreen: ue,
|
|
299
|
+
setFullscreen: se,
|
|
300
|
+
selected: de,
|
|
301
|
+
setSelected: ye,
|
|
315
302
|
columns: e.columns,
|
|
303
|
+
baseColumns: s,
|
|
316
304
|
persistenceType: (Y = e.columnsState) == null ? void 0 : Y.persistenceType,
|
|
317
|
-
persistenceKey: (
|
|
318
|
-
onlineChange: (
|
|
319
|
-
columnsMap:
|
|
320
|
-
setColumnsMap:
|
|
321
|
-
defaultColumnKeyMap:
|
|
305
|
+
persistenceKey: ($ = e.columnsState) == null ? void 0 : $.persistenceKey,
|
|
306
|
+
onlineChange: (p = e.columnsState) == null ? void 0 : p.onlineChange,
|
|
307
|
+
columnsMap: O,
|
|
308
|
+
setColumnsMap: T,
|
|
309
|
+
defaultColumnKeyMap: h,
|
|
322
310
|
clearPersistenceStorage: I,
|
|
323
|
-
stylesConfig:
|
|
324
|
-
setTableStylesConfig:
|
|
325
|
-
defaultTableSize:
|
|
326
|
-
tableSize:
|
|
327
|
-
stylesStorageType: (
|
|
328
|
-
stylesStorageKey: (
|
|
329
|
-
onlineStylesConfigChange: (
|
|
330
|
-
clearStylesConfigCache:
|
|
331
|
-
defaultTableStylesConfig:
|
|
311
|
+
stylesConfig: y,
|
|
312
|
+
setTableStylesConfig: J,
|
|
313
|
+
defaultTableSize: E,
|
|
314
|
+
tableSize: y.size,
|
|
315
|
+
stylesStorageType: (ee = e.stylesConfigState) == null ? void 0 : ee.persistenceType,
|
|
316
|
+
stylesStorageKey: (te = e.stylesConfigState) == null ? void 0 : te.persistenceKey,
|
|
317
|
+
onlineStylesConfigChange: (ne = e.stylesConfigState) == null ? void 0 : ne.onlineChange,
|
|
318
|
+
clearStylesConfigCache: M,
|
|
319
|
+
defaultTableStylesConfig: v,
|
|
332
320
|
exportConfig: V,
|
|
333
|
-
setTableExportConfig:
|
|
334
|
-
defaultTableExportConfig:
|
|
335
|
-
exportStorageType: (
|
|
336
|
-
exportStorageKey: (
|
|
337
|
-
onlineExportConfigChange: (
|
|
321
|
+
setTableExportConfig: x,
|
|
322
|
+
defaultTableExportConfig: w,
|
|
323
|
+
exportStorageType: (ie = e.exportConfigState) == null ? void 0 : ie.persistenceType,
|
|
324
|
+
exportStorageKey: (ae = e.exportConfigState) == null ? void 0 : ae.persistenceKey,
|
|
325
|
+
onlineExportConfigChange: (ce = e.exportConfigState) == null ? void 0 : ce.onlineChange,
|
|
338
326
|
clearExportConfigCache: B,
|
|
339
|
-
zebra:
|
|
340
|
-
rowHoverable:
|
|
341
|
-
showColumnBorder:
|
|
342
|
-
hideRowBorder:
|
|
327
|
+
zebra: we,
|
|
328
|
+
rowHoverable: me,
|
|
329
|
+
showColumnBorder: xe,
|
|
330
|
+
hideRowBorder: he
|
|
343
331
|
};
|
|
344
|
-
return Object.defineProperty(
|
|
345
|
-
get: () =>
|
|
346
|
-
}),
|
|
332
|
+
return Object.defineProperty(j, "uuid", {
|
|
333
|
+
get: () => K.current
|
|
334
|
+
}), j;
|
|
347
335
|
}
|
|
348
|
-
const
|
|
349
|
-
const
|
|
350
|
-
return
|
|
336
|
+
const Be = Ve({}), _e = (e) => {
|
|
337
|
+
const K = Me(e.initValue);
|
|
338
|
+
return ve.jsx(Be.Provider, { value: K, children: e.children });
|
|
351
339
|
};
|
|
352
340
|
export {
|
|
353
|
-
|
|
354
|
-
|
|
341
|
+
Be as BitzTableContext,
|
|
342
|
+
Je as SORTER_COLUMN,
|
|
343
|
+
_e as default,
|
|
344
|
+
Ie as toolCols
|
|
355
345
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
let o = 0,
|
|
1
|
+
const h = (e, i) => {
|
|
2
|
+
let o = 0, n = 0;
|
|
3
3
|
return {
|
|
4
|
-
filterColumns: ((
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
7
|
-
}))(e,
|
|
8
|
-
|
|
9
|
-
autoWidthColLength:
|
|
4
|
+
filterColumns: ((d, l) => d.map((r) => {
|
|
5
|
+
const t = y(r, r.index), s = l[t];
|
|
6
|
+
return s && s.show === !1 ? (typeof r.width == "number" ? o += r.width : n += 1, !1) : { ...r, ...s };
|
|
7
|
+
}))(e, i).filter(Boolean),
|
|
8
|
+
hiddenTotalWidth: Math.floor(o),
|
|
9
|
+
autoWidthColLength: n
|
|
10
10
|
};
|
|
11
|
-
},
|
|
12
|
-
var t,
|
|
13
|
-
const { fixed:
|
|
14
|
-
if (
|
|
11
|
+
}, y = (e, i) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${i}`, c = (e) => (i, o) => {
|
|
12
|
+
var t, s, u, x;
|
|
13
|
+
const { fixed: n, index: a } = i, { fixed: f, index: d } = o;
|
|
14
|
+
if (n === "left" && f !== "left" || f === "right" && n !== "right")
|
|
15
15
|
return -2;
|
|
16
|
-
if (f === "left" &&
|
|
16
|
+
if (f === "left" && n !== "left" || n === "right" && f !== "right")
|
|
17
17
|
return 2;
|
|
18
|
-
const
|
|
19
|
-
return (t = e[
|
|
18
|
+
const l = i.key || `${a}`, r = o.key || `${d}`;
|
|
19
|
+
return (t = e[l]) != null && t.order || (s = e[r]) != null && s.order ? (((u = e[l]) == null ? void 0 : u.order) || 0) - (((x = e[r]) == null ? void 0 : x.order) || 0) : (i.index || 0) - (o.index || 0);
|
|
20
20
|
};
|
|
21
|
-
function k(e,
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
const f = (
|
|
25
|
-
for (const t in
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
...
|
|
30
|
-
[
|
|
21
|
+
function k(e, i, o) {
|
|
22
|
+
const n = {};
|
|
23
|
+
let a = "";
|
|
24
|
+
const f = (d, l, r) => {
|
|
25
|
+
for (const t in d)
|
|
26
|
+
if (d.hasOwnProperty(t) && (typeof d[t] == "object" && d[t] !== null && (a = t, n[t] = { ...d[t] }, f(d[t], l, r)), t === l)) {
|
|
27
|
+
const s = n[a];
|
|
28
|
+
n[a] = {
|
|
29
|
+
...s,
|
|
30
|
+
[l]: r
|
|
31
31
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
32
|
-
},
|
|
32
|
+
}, a = "";
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
return f(e,
|
|
35
|
+
return f(e, i, o), n;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
c as columnSort,
|
|
39
|
+
y as genColumnKey,
|
|
40
|
+
h as loopFilter,
|
|
41
41
|
k as updateNestedObject
|
|
42
42
|
};
|