bitz-react-admin-ui 2.5.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- 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/BitzFluentTimePicker/index.mjs +1 -1
- 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 +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +48 -93
- 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 +170 -207
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +43 -91
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +37 -59
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +1 -2
- 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 +336 -513
- 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 +28 -92
- 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 +148 -256
- 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 +21 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +52 -106
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
- 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 +13 -57
- 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 +84 -235
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +21 -84
- 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.d.ts +9 -0
- package/dist/components/BitzText/index.less.mjs +4 -0
- package/dist/components/BitzText/index.mjs +37 -0
- package/dist/components/BitzText/utils.d.ts +4 -0
- package/dist/components/BitzText/utils.mjs +5 -0
- 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.d.ts +17 -0
- package/dist/components/BitzTooltip/index.mjs +66 -0
- package/dist/components/BitzTooltip/style.d.ts +4 -0
- package/dist/components/BitzTooltip/style.mjs +47 -0
- package/dist/components/BitzTooltip/utils.d.ts +2 -0
- package/dist/components/BitzTooltip/utils.mjs +4 -0
- 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/index.d.ts +2 -0
- package/dist/index.mjs +42 -38
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
- package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +7 -28
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Table as
|
|
3
|
-
import
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { genColumnKey as
|
|
6
|
-
import { getUuid as
|
|
7
|
-
import { BitzConfigContext as
|
|
1
|
+
import { j as ve } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Table as fe } from "antd";
|
|
3
|
+
import z from "../../../hooks/useMergedState.mjs";
|
|
4
|
+
import { createContext as ze, useRef as Ne, useState as K, useContext as Ee, useEffect as d, useMemo as g, useCallback as N } from "react";
|
|
5
|
+
import { genColumnKey as E } from "./utils/index.mjs";
|
|
6
|
+
import { getUuid as Ie } from "../../../utils/uuid.mjs";
|
|
7
|
+
import { BitzConfigContext as Je } from "../../BitzConfigProvider/context.mjs";
|
|
8
8
|
import m from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
|
|
9
|
-
const
|
|
9
|
+
const Be = {
|
|
10
10
|
fixed: "left",
|
|
11
11
|
className: "sorterCol",
|
|
12
12
|
isDragSorterCol: !0,
|
|
@@ -16,41 +16,35 @@ const Je = {
|
|
|
16
16
|
onCell: () => ({
|
|
17
17
|
"data-column-name": "dragSorterCell"
|
|
18
18
|
})
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
}, je = [
|
|
20
|
+
Be,
|
|
21
|
+
fe.SELECTION_COLUMN,
|
|
22
|
+
fe.EXPAND_COLUMN
|
|
23
23
|
];
|
|
24
|
-
function
|
|
25
|
-
var
|
|
26
|
-
const T =
|
|
27
|
-
size:
|
|
28
|
-
zebra:
|
|
29
|
-
bordered:
|
|
30
|
-
}, [y,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
(c = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : c.defaultValue
|
|
42
|
-
) : JSON.parse(r);
|
|
43
|
-
} catch (r) {
|
|
44
|
-
console.warn(r);
|
|
45
|
-
}
|
|
24
|
+
function Me(e) {
|
|
25
|
+
var H, R, L, P, U, D, _, F, G, W, Z, A, X, q, Q, Y, $, p, ee, te, ne, ie, ae, oe, le;
|
|
26
|
+
const T = Ne(Ie()), [re, se] = K(!1), [ue, de] = K(!1), [ye, Se] = K(0), s = Ee(Je).Table, Ce = s == null ? void 0 : s.defaultSize, I = e.size ?? e.defaultSize ?? Ce ?? "lg", ge = e.zebra ?? e.defaultZebra ?? (s == null ? void 0 : s.zebra) ?? !0, me = e.bordered ?? e.defaultBordered ?? (s == null ? void 0 : s.bordered) ?? "row-column", O = e.defaultStylesConfig || {
|
|
27
|
+
size: I,
|
|
28
|
+
zebra: ge,
|
|
29
|
+
bordered: me
|
|
30
|
+
}, [y, J] = z(() => {
|
|
31
|
+
var n, l, c, a;
|
|
32
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: o } = 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 ? m(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);
|
|
46
41
|
}
|
|
47
|
-
return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
value: ((k = e.stylesConfigState) == null ? void 0 : k.value) || e.stylesConfig,
|
|
51
|
-
onChange: ((H = e.stylesConfigState) == null ? void 0 : H.onChange) || e.onStylesConfigChange
|
|
52
42
|
}
|
|
53
|
-
|
|
43
|
+
return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
|
|
44
|
+
}, {
|
|
45
|
+
value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
|
|
46
|
+
onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
|
|
47
|
+
});
|
|
54
48
|
d(() => {
|
|
55
49
|
var o, n;
|
|
56
50
|
if (!((o = e.stylesConfigState) != null && o.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
|
|
@@ -61,35 +55,33 @@ function je(e) {
|
|
|
61
55
|
// onlineChange
|
|
62
56
|
} = e.stylesConfigState;
|
|
63
57
|
if (t !== "online") {
|
|
64
|
-
const
|
|
58
|
+
const l = window[t];
|
|
65
59
|
try {
|
|
66
|
-
|
|
67
|
-
} catch (
|
|
68
|
-
console.warn(
|
|
60
|
+
l == null || l.setItem(i, JSON.stringify(y));
|
|
61
|
+
} catch (c) {
|
|
62
|
+
console.warn(c), j();
|
|
69
63
|
}
|
|
70
64
|
}
|
|
71
65
|
}, [
|
|
72
|
-
(
|
|
66
|
+
(L = e.stylesConfigState) == null ? void 0 : L.persistenceKey,
|
|
73
67
|
y,
|
|
74
|
-
(
|
|
68
|
+
(P = e.stylesConfigState) == null ? void 0 : P.persistenceType
|
|
75
69
|
]), d(() => {
|
|
76
70
|
var t, i, o;
|
|
77
71
|
if ((t = e.stylesConfigState) != null && t.persistenceKey && ((i = e.stylesConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
78
|
-
const { onlineGet: n, persistenceKey:
|
|
72
|
+
const { onlineGet: n, persistenceKey: l } = e.stylesConfigState;
|
|
79
73
|
try {
|
|
80
|
-
(o = n == null ? void 0 : n(
|
|
74
|
+
(o = n == null ? void 0 : n(l)) == null || o.then((c) => {
|
|
81
75
|
var f;
|
|
82
|
-
const a = m(
|
|
83
|
-
|
|
84
|
-
Object.keys(a).length ? a : O
|
|
85
|
-
);
|
|
76
|
+
const a = m(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
|
|
77
|
+
J(Object.keys(a).length ? a : O);
|
|
86
78
|
});
|
|
87
|
-
} catch (
|
|
88
|
-
console.warn(
|
|
79
|
+
} catch (c) {
|
|
80
|
+
console.warn(c);
|
|
89
81
|
}
|
|
90
82
|
}
|
|
91
83
|
}, []);
|
|
92
|
-
const u = g(() => (e.columns ?? []).filter((t) => !
|
|
84
|
+
const u = g(() => (e.columns ?? []).filter((t) => !je.includes(t)), [e.columns]), h = g(() => {
|
|
93
85
|
var i;
|
|
94
86
|
if ((i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue)
|
|
95
87
|
return e.exportConfigState.defaultValue;
|
|
@@ -101,58 +93,47 @@ function je(e) {
|
|
|
101
93
|
}
|
|
102
94
|
};
|
|
103
95
|
return u.forEach((o, n) => {
|
|
104
|
-
const { title:
|
|
105
|
-
a && !
|
|
96
|
+
const { title: l, isOperationCol: c } = o, a = E(o, n);
|
|
97
|
+
a && !c && t.fields.push({
|
|
106
98
|
field: a,
|
|
107
|
-
title:
|
|
99
|
+
title: l,
|
|
108
100
|
show: !0
|
|
109
101
|
});
|
|
110
102
|
}), t;
|
|
111
|
-
}, [u]), [V,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
(c = e == null ? void 0 : e.exportConfigState) == null ? void 0 : c.defaultValue
|
|
123
|
-
) : JSON.parse(r);
|
|
124
|
-
} catch (r) {
|
|
125
|
-
console.warn(r);
|
|
126
|
-
}
|
|
103
|
+
}, [u]), [V, x] = z(() => {
|
|
104
|
+
var n, l, c, a;
|
|
105
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
|
|
106
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
107
|
+
const f = window[t];
|
|
108
|
+
try {
|
|
109
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
110
|
+
if (r)
|
|
111
|
+
return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
|
|
112
|
+
} catch (r) {
|
|
113
|
+
console.warn(r);
|
|
127
114
|
}
|
|
128
|
-
return e.exportConfig || ((l = e.exportConfigState) == null ? void 0 : l.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || x;
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
|
|
132
|
-
onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
|
|
133
115
|
}
|
|
134
|
-
|
|
116
|
+
return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || h;
|
|
117
|
+
}, {
|
|
118
|
+
value: ((U = e.exportConfigState) == null ? void 0 : U.value) || e.exportConfig,
|
|
119
|
+
onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
|
|
120
|
+
});
|
|
135
121
|
d(() => {
|
|
136
|
-
var n,
|
|
122
|
+
var n, l;
|
|
137
123
|
const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
|
|
138
124
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
139
|
-
const
|
|
125
|
+
const c = window[t];
|
|
140
126
|
try {
|
|
141
|
-
const a =
|
|
142
|
-
a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? h
|
|
143
|
-
m(
|
|
144
|
-
JSON.parse(a),
|
|
145
|
-
(c = e == null ? void 0 : e.exportConfigState) == null ? void 0 : c.defaultValue
|
|
146
|
-
)
|
|
147
|
-
) : h(JSON.parse(a)) : h(x);
|
|
127
|
+
const a = c == null ? void 0 : c.getItem(i);
|
|
128
|
+
a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(m(JSON.parse(a), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue)) : x(JSON.parse(a)) : x(h);
|
|
148
129
|
} catch (a) {
|
|
149
130
|
console.warn(a);
|
|
150
131
|
}
|
|
151
132
|
}
|
|
152
133
|
}, [
|
|
153
|
-
(
|
|
154
|
-
(
|
|
155
|
-
|
|
134
|
+
(_ = e.exportConfigState) == null ? void 0 : _.persistenceKey,
|
|
135
|
+
(F = e.exportConfigState) == null ? void 0 : F.persistenceType,
|
|
136
|
+
h
|
|
156
137
|
]), d(() => {
|
|
157
138
|
var o, n;
|
|
158
139
|
if (!((o = e.exportConfigState) != null && o.persistenceKey) || !((n = e.exportConfigState) != null && n.persistenceType) || typeof window > "u")
|
|
@@ -163,100 +144,82 @@ function je(e) {
|
|
|
163
144
|
// onlineChange
|
|
164
145
|
} = e.exportConfigState;
|
|
165
146
|
if (t !== "online") {
|
|
166
|
-
const
|
|
147
|
+
const l = window[t];
|
|
167
148
|
try {
|
|
168
|
-
|
|
169
|
-
} catch (
|
|
170
|
-
console.warn(
|
|
149
|
+
l == null || l.setItem(i, JSON.stringify(V));
|
|
150
|
+
} catch (c) {
|
|
151
|
+
console.warn(c), M();
|
|
171
152
|
}
|
|
172
153
|
}
|
|
173
154
|
}, [
|
|
174
|
-
(
|
|
155
|
+
(G = e.exportConfigState) == null ? void 0 : G.persistenceKey,
|
|
175
156
|
V,
|
|
176
|
-
(
|
|
157
|
+
(W = e.exportConfigState) == null ? void 0 : W.persistenceType
|
|
177
158
|
]), d(() => {
|
|
178
159
|
var t, i, o;
|
|
179
160
|
if ((t = e.exportConfigState) != null && t.persistenceKey && ((i = e.exportConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
180
|
-
const { onlineGet: n, persistenceKey:
|
|
161
|
+
const { onlineGet: n, persistenceKey: l } = e.exportConfigState;
|
|
181
162
|
try {
|
|
182
|
-
(o = n == null ? void 0 : n(
|
|
163
|
+
(o = n == null ? void 0 : n(l)) == null || o.then((c) => {
|
|
183
164
|
var f;
|
|
184
|
-
const a = m(
|
|
185
|
-
h
|
|
186
|
-
Object.keys(a).length ? a : x
|
|
187
|
-
);
|
|
165
|
+
const a = m(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
|
|
166
|
+
x(Object.keys(a).length ? a : h);
|
|
188
167
|
});
|
|
189
|
-
} catch (
|
|
190
|
-
console.warn(
|
|
168
|
+
} catch (c) {
|
|
169
|
+
console.warn(c);
|
|
191
170
|
}
|
|
192
171
|
}
|
|
193
172
|
}, []);
|
|
194
173
|
const S = g(() => {
|
|
195
|
-
var
|
|
196
|
-
if ((
|
|
174
|
+
var c;
|
|
175
|
+
if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
|
|
197
176
|
return e.columnsState.defaultValue;
|
|
198
|
-
const t = u.filter((a) => a.fixed === "left").map((a, f) => ({ ...a, order: f })), i = u.filter((a) => a.fixed === "right").map((a, f) => ({ ...a, order: f })), o = u.filter((a) => !["left", "right"].includes(a.fixed)).map((a, f) => ({ ...a, order: f })), n = [...t, ...o, ...i],
|
|
177
|
+
const t = u.filter((a) => a.fixed === "left").map((a, f) => ({ ...a, order: f })), i = u.filter((a) => a.fixed === "right").map((a, f) => ({ ...a, order: f })), o = u.filter((a) => !["left", "right"].includes(a.fixed)).map((a, f) => ({ ...a, order: f })), n = [...t, ...o, ...i], l = {};
|
|
199
178
|
return n.forEach((a, f) => {
|
|
200
|
-
const {
|
|
201
|
-
|
|
202
|
-
/*width,*/
|
|
203
|
-
fixed: Ke,
|
|
204
|
-
disabled: Oe
|
|
205
|
-
} = a, ce = N(a, f);
|
|
206
|
-
ce && (c[ce] = {
|
|
179
|
+
const { order: r, width: ce, fixed: Oe, disabled: Ve } = a, v = E(a, f);
|
|
180
|
+
v && (l[v] = {
|
|
207
181
|
show: !0,
|
|
208
182
|
order: r,
|
|
209
|
-
fixed:
|
|
210
|
-
disabled:
|
|
211
|
-
});
|
|
212
|
-
}),
|
|
213
|
-
}, [u]), [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
(c = e == null ? void 0 : e.columnsState) == null ? void 0 : c.defaultValue
|
|
225
|
-
) : JSON.parse(r);
|
|
226
|
-
} catch (r) {
|
|
227
|
-
console.warn(r);
|
|
228
|
-
}
|
|
183
|
+
fixed: Oe,
|
|
184
|
+
disabled: Ve
|
|
185
|
+
}, typeof ce == "number" && (l[v].width = ce));
|
|
186
|
+
}), l;
|
|
187
|
+
}, [u]), [we, he] = K(!1), [C, w] = z(() => {
|
|
188
|
+
var n, l, c, a;
|
|
189
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
|
|
190
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
191
|
+
const f = window[t];
|
|
192
|
+
try {
|
|
193
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
194
|
+
if (r)
|
|
195
|
+
return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
|
|
196
|
+
} catch (r) {
|
|
197
|
+
console.warn(r);
|
|
229
198
|
}
|
|
230
|
-
return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
value: ((W = e.columnsState) == null ? void 0 : W.value) || e.columnsStateMap,
|
|
234
|
-
onChange: ((Z = e.columnsState) == null ? void 0 : Z.onChange) || e.onColumnsStateChange
|
|
235
199
|
}
|
|
236
|
-
|
|
200
|
+
return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
|
|
201
|
+
}, {
|
|
202
|
+
value: ((Z = e.columnsState) == null ? void 0 : Z.value) || e.columnsStateMap,
|
|
203
|
+
onChange: ((A = e.columnsState) == null ? void 0 : A.onChange) || e.onColumnsStateChange
|
|
204
|
+
});
|
|
237
205
|
d(() => {
|
|
238
|
-
var n,
|
|
206
|
+
var n, l;
|
|
239
207
|
const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
|
|
240
208
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
241
|
-
const
|
|
209
|
+
const c = window[t];
|
|
242
210
|
try {
|
|
243
|
-
const a =
|
|
244
|
-
a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(
|
|
245
|
-
m(
|
|
246
|
-
JSON.parse(a),
|
|
247
|
-
(c = e == null ? void 0 : e.columnsState) == null ? void 0 : c.defaultValue
|
|
248
|
-
)
|
|
249
|
-
) : w(JSON.parse(a)) : w(S);
|
|
211
|
+
const a = c == null ? void 0 : c.getItem(i);
|
|
212
|
+
a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(m(JSON.parse(a), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue)) : w(JSON.parse(a)) : w(S);
|
|
250
213
|
} catch (a) {
|
|
251
214
|
console.warn(a);
|
|
252
215
|
}
|
|
253
216
|
}
|
|
254
217
|
}, [
|
|
255
|
-
(
|
|
256
|
-
(
|
|
218
|
+
(X = e.columnsState) == null ? void 0 : X.persistenceKey,
|
|
219
|
+
(q = e.columnsState) == null ? void 0 : q.persistenceType,
|
|
257
220
|
S
|
|
258
221
|
]);
|
|
259
|
-
const
|
|
222
|
+
const B = N(() => {
|
|
260
223
|
const { persistenceType: t, persistenceKey: i } = e.columnsState || {};
|
|
261
224
|
if (!i || !t || typeof window > "u")
|
|
262
225
|
return;
|
|
@@ -266,7 +229,7 @@ function je(e) {
|
|
|
266
229
|
} catch (n) {
|
|
267
230
|
console.warn(n);
|
|
268
231
|
}
|
|
269
|
-
}, [e.columnsState]),
|
|
232
|
+
}, [e.columnsState]), j = N(() => {
|
|
270
233
|
const { persistenceType: t, persistenceKey: i } = e.stylesConfigState || {};
|
|
271
234
|
if (!i || !t || typeof window > "u")
|
|
272
235
|
return;
|
|
@@ -276,7 +239,7 @@ function je(e) {
|
|
|
276
239
|
} catch (n) {
|
|
277
240
|
console.warn(n);
|
|
278
241
|
}
|
|
279
|
-
}, [e.stylesConfigState]),
|
|
242
|
+
}, [e.stylesConfigState]), M = N(() => {
|
|
280
243
|
const { persistenceType: t, persistenceKey: i } = e.exportConfigState || {};
|
|
281
244
|
if (!i || !t || typeof window > "u")
|
|
282
245
|
return;
|
|
@@ -297,93 +260,93 @@ function je(e) {
|
|
|
297
260
|
// onlineChange
|
|
298
261
|
} = e.columnsState;
|
|
299
262
|
if (t !== "online") {
|
|
300
|
-
const
|
|
263
|
+
const l = window[t];
|
|
301
264
|
try {
|
|
302
|
-
|
|
303
|
-
} catch (
|
|
304
|
-
console.warn(
|
|
265
|
+
l == null || l.setItem(i, JSON.stringify(C));
|
|
266
|
+
} catch (c) {
|
|
267
|
+
console.warn(c), B();
|
|
305
268
|
}
|
|
306
269
|
}
|
|
307
270
|
}, [
|
|
308
|
-
(
|
|
271
|
+
(Q = e.columnsState) == null ? void 0 : Q.persistenceKey,
|
|
309
272
|
C,
|
|
310
|
-
(
|
|
273
|
+
(Y = e.columnsState) == null ? void 0 : Y.persistenceType
|
|
311
274
|
]), d(() => {
|
|
312
275
|
var t, i, o;
|
|
313
276
|
if ((t = e.columnsState) != null && t.persistenceKey && ((i = e.columnsState) == null ? void 0 : i.persistenceType) === "online") {
|
|
314
|
-
const { onlineGet: n, persistenceKey:
|
|
277
|
+
const { onlineGet: n, persistenceKey: l } = e.columnsState;
|
|
315
278
|
try {
|
|
316
|
-
(o = n == null ? void 0 : n(
|
|
279
|
+
(o = n == null ? void 0 : n(l)) == null || o.then((c) => {
|
|
317
280
|
var f;
|
|
318
|
-
const a = m(
|
|
319
|
-
w(a),
|
|
281
|
+
const a = m(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
|
|
282
|
+
w(a), he(!0);
|
|
320
283
|
});
|
|
321
|
-
} catch (
|
|
322
|
-
console.warn(
|
|
284
|
+
} catch (c) {
|
|
285
|
+
console.warn(c);
|
|
323
286
|
}
|
|
324
287
|
}
|
|
325
288
|
}, []), d(() => {
|
|
326
289
|
var i, o;
|
|
327
290
|
const t = u.findIndex((n) => n == null ? void 0 : n.isOperationCol);
|
|
328
291
|
if (t >= 0) {
|
|
329
|
-
const n = u[t],
|
|
330
|
-
!(((i = C == null ? void 0 : C[
|
|
292
|
+
const n = u[t], l = E(n, t);
|
|
293
|
+
!(((i = C == null ? void 0 : C[l]) == null ? void 0 : i.fixed) === ((o = S == null ? void 0 : S[l]) == null ? void 0 : o.fixed)) && Object.keys(C ?? {}).length === 0 && w(S);
|
|
331
294
|
}
|
|
332
295
|
}, [S, C]);
|
|
333
|
-
const xe = g(() => (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]),
|
|
296
|
+
const xe = g(() => (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]), Te = g(() => e.zebra ?? y.zebra, [e.zebra, y.zebra]), b = g(() => e.bordered ?? y.bordered, [e.bordered, y.bordered]), be = g(() => ["column", "row-column"].includes(b), [b]), Ke = g(() => {
|
|
334
297
|
let t = !1;
|
|
335
298
|
return ["hide", "column"].includes(b) && (t = !0), t;
|
|
336
|
-
}, [b]),
|
|
299
|
+
}, [b]), k = {
|
|
337
300
|
loading: e.loading ?? !1,
|
|
338
301
|
uuid: T.current,
|
|
339
|
-
fullscreen:
|
|
340
|
-
setFullscreen:
|
|
341
|
-
selected:
|
|
342
|
-
setSelected:
|
|
343
|
-
toolbarWidth:
|
|
344
|
-
setToolbarWidth:
|
|
302
|
+
fullscreen: re,
|
|
303
|
+
setFullscreen: se,
|
|
304
|
+
selected: ue,
|
|
305
|
+
setSelected: de,
|
|
306
|
+
toolbarWidth: ye,
|
|
307
|
+
setToolbarWidth: Se,
|
|
345
308
|
columns: e.columns,
|
|
346
309
|
baseColumns: u,
|
|
347
|
-
persistenceType: (
|
|
348
|
-
persistenceKey: (
|
|
349
|
-
onlineChange: (
|
|
350
|
-
finish:
|
|
310
|
+
persistenceType: ($ = e.columnsState) == null ? void 0 : $.persistenceType,
|
|
311
|
+
persistenceKey: (p = e.columnsState) == null ? void 0 : p.persistenceKey,
|
|
312
|
+
onlineChange: (ee = e.columnsState) == null ? void 0 : ee.onlineChange,
|
|
313
|
+
finish: we,
|
|
351
314
|
columnsMap: C,
|
|
352
315
|
setColumnsMap: w,
|
|
353
316
|
defaultColumnKeyMap: S,
|
|
354
|
-
clearPersistenceStorage:
|
|
317
|
+
clearPersistenceStorage: B,
|
|
355
318
|
stylesConfig: y,
|
|
356
|
-
setTableStylesConfig:
|
|
357
|
-
defaultTableSize:
|
|
319
|
+
setTableStylesConfig: J,
|
|
320
|
+
defaultTableSize: I,
|
|
358
321
|
tableSize: y.size,
|
|
359
|
-
stylesStorageType: (
|
|
360
|
-
stylesStorageKey: (
|
|
361
|
-
onlineStylesConfigChange: (
|
|
362
|
-
clearStylesConfigCache:
|
|
322
|
+
stylesStorageType: (te = e.stylesConfigState) == null ? void 0 : te.persistenceType,
|
|
323
|
+
stylesStorageKey: (ne = e.stylesConfigState) == null ? void 0 : ne.persistenceKey,
|
|
324
|
+
onlineStylesConfigChange: (ie = e.stylesConfigState) == null ? void 0 : ie.onlineChange,
|
|
325
|
+
clearStylesConfigCache: j,
|
|
363
326
|
defaultTableStylesConfig: O,
|
|
364
327
|
exportConfig: V,
|
|
365
|
-
setTableExportConfig:
|
|
366
|
-
defaultTableExportConfig:
|
|
367
|
-
exportStorageType: (
|
|
368
|
-
exportStorageKey: (
|
|
369
|
-
onlineExportConfigChange: (
|
|
370
|
-
clearExportConfigCache:
|
|
371
|
-
zebra:
|
|
328
|
+
setTableExportConfig: x,
|
|
329
|
+
defaultTableExportConfig: h,
|
|
330
|
+
exportStorageType: (ae = e.exportConfigState) == null ? void 0 : ae.persistenceType,
|
|
331
|
+
exportStorageKey: (oe = e.exportConfigState) == null ? void 0 : oe.persistenceKey,
|
|
332
|
+
onlineExportConfigChange: (le = e.exportConfigState) == null ? void 0 : le.onlineChange,
|
|
333
|
+
clearExportConfigCache: M,
|
|
334
|
+
zebra: Te,
|
|
372
335
|
rowHoverable: xe,
|
|
373
|
-
showColumnBorder:
|
|
374
|
-
hideRowBorder:
|
|
336
|
+
showColumnBorder: be,
|
|
337
|
+
hideRowBorder: Ke
|
|
375
338
|
};
|
|
376
|
-
return Object.defineProperty(
|
|
339
|
+
return Object.defineProperty(k, "uuid", {
|
|
377
340
|
get: () => T.current
|
|
378
|
-
}),
|
|
341
|
+
}), k;
|
|
379
342
|
}
|
|
380
|
-
const
|
|
381
|
-
const T =
|
|
382
|
-
return
|
|
343
|
+
const ke = ze({}), Ge = (e) => {
|
|
344
|
+
const T = Me(e.initValue);
|
|
345
|
+
return ve.jsx(ke.Provider, { value: T, children: e.children });
|
|
383
346
|
};
|
|
384
347
|
export {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
348
|
+
ke as BitzTableContext,
|
|
349
|
+
Be as SORTER_COLUMN,
|
|
350
|
+
Ge as default,
|
|
351
|
+
je as toolCols
|
|
389
352
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
const l = (
|
|
2
|
-
const s =
|
|
3
|
-
return
|
|
4
|
-
...
|
|
5
|
-
...
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const l = (r, d, x) => ((i, o) => i.map((e) => {
|
|
2
|
+
const s = c(e, e.index), f = o[s];
|
|
3
|
+
return f && f.show === !1 ? !1 : {
|
|
4
|
+
...e,
|
|
5
|
+
...f,
|
|
6
|
+
...(e == null ? void 0 : e.isOperationCol) && !x && {
|
|
7
|
+
width: e == null ? void 0 : e.width
|
|
8
|
+
}
|
|
9
9
|
};
|
|
10
|
-
}))(
|
|
11
|
-
var
|
|
12
|
-
const { fixed:
|
|
13
|
-
if (
|
|
10
|
+
}))(r, d).filter(Boolean), c = (r, d) => "key" in r && r.key !== void 0 && r.key !== null ? r.key : r.dataIndex ? Array.isArray(r.dataIndex) ? r.dataIndex.join("-") : r.dataIndex : `${d}`, h = (r) => (d, x) => {
|
|
11
|
+
var n, a, y, u;
|
|
12
|
+
const { fixed: t, index: i } = d, { fixed: o, index: e } = x;
|
|
13
|
+
if (t === "left" && o !== "left" || o === "right" && t !== "right")
|
|
14
14
|
return -2;
|
|
15
|
-
if (
|
|
15
|
+
if (o === "left" && t !== "left" || t === "right" && o !== "right")
|
|
16
16
|
return 2;
|
|
17
|
-
const s =
|
|
18
|
-
return (
|
|
17
|
+
const s = d.key || `${i}`, f = x.key || `${e}`;
|
|
18
|
+
return (n = r[s]) != null && n.order || (a = r[f]) != null && a.order ? (((y = r[s]) == null ? void 0 : y.order) || 0) - (((u = r[f]) == null ? void 0 : u.order) || 0) : (d.index || 0) - (x.index || 0);
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
for (const
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
...
|
|
29
|
-
[s]:
|
|
20
|
+
function k(r, d, x) {
|
|
21
|
+
const t = {};
|
|
22
|
+
let i = "";
|
|
23
|
+
const o = (e, s, f) => {
|
|
24
|
+
for (const n in e)
|
|
25
|
+
if (e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && (i = n, t[n] = { ...e[n] }, o(e[n], s, f)), n === s)) {
|
|
26
|
+
const a = t[i];
|
|
27
|
+
t[i] = {
|
|
28
|
+
...a,
|
|
29
|
+
[s]: f
|
|
30
30
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
31
|
-
},
|
|
31
|
+
}, i = "";
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
return
|
|
34
|
+
return o(r, d, x), t;
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
h as columnSort,
|
|
38
|
+
c as genColumnKey,
|
|
39
39
|
l as loopFilter,
|
|
40
|
-
|
|
40
|
+
k as updateNestedObject
|
|
41
41
|
};
|