es-grid-template 1.8.65 → 1.8.67
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/es/grid-component/TempTable.d.ts +2 -2
- package/es/grid-component/TempTable.js +3 -3
- package/es/grid-component/hooks/constant.d.ts +1 -0
- package/es/grid-component/hooks/constant.js +2 -1
- package/es/grid-component/hooks/index.js +0 -1
- package/es/grid-component/hooks/useLazyKVMap.d.ts +1 -1
- package/es/grid-component/hooks/useLazyKVMap.js +0 -4
- package/es/grid-component/hooks/utils.d.ts +3 -4
- package/es/grid-component/hooks/utils.js +2 -1
- package/es/grid-component/styles.scss +1394 -1394
- package/es/grid-component/type.d.ts +0 -414
- package/es/grid-component/type.js +490 -1
- package/es/table-component/TableContainerEdit.js +2 -127
- package/es/table-component/body/TableBodyCellEdit.js +2 -9
- package/es/table-component/header/TableHeadCell.js +1 -10
- package/es/table-component/header/TableHeadCell2.js +1 -1
- package/es/table-component/type.d.ts +3 -1
- package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.js +1 -3
- package/es/table-virtuoso/InternalTable.js +6 -28
- package/es/table-virtuoso/body/TableBodyCell.js +0 -9
- package/es/table-virtuoso/body/TableBodyRow.js +0 -4
- package/es/table-virtuoso/style.js +2 -1
- package/es/table-virtuoso/style.scss +2 -1
- package/es/table-virtuoso/table/Grid.js +0 -4
- package/es/table-virtuoso/table/TableContainer.js +31 -44
- package/es/table-virtuoso/table/TableWrapper.d.ts +2 -0
- package/es/table-virtuoso/table/TableWrapper.js +5 -2
- package/lib/grid-component/TempTable.d.ts +2 -2
- package/lib/grid-component/TempTable.js +3 -5
- package/lib/grid-component/hooks/constant.d.ts +1 -0
- package/lib/grid-component/hooks/constant.js +3 -2
- package/lib/grid-component/hooks/useLazyKVMap.d.ts +1 -1
- package/lib/grid-component/hooks/useLazyKVMap.js +0 -3
- package/lib/grid-component/hooks/utils.d.ts +3 -4
- package/lib/grid-component/hooks/utils.js +3 -0
- package/lib/grid-component/styles.scss +1394 -1394
- package/lib/grid-component/type.d.ts +0 -414
- package/lib/grid-component/type.js +490 -4
- package/lib/table-component/TableContainerEdit.js +1 -126
- package/lib/table-component/body/TableBodyCellEdit.js +5 -11
- package/lib/table-component/header/TableHeadCell.js +4 -13
- package/lib/table-component/header/TableHeadCell2.js +4 -4
- package/lib/table-component/type.d.ts +3 -1
- package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.js +1 -3
- package/lib/table-virtuoso/InternalTable.js +6 -28
- package/lib/table-virtuoso/body/TableBodyCell.js +0 -9
- package/lib/table-virtuoso/body/TableBodyRow.js +0 -5
- package/lib/table-virtuoso/style.js +2 -1
- package/lib/table-virtuoso/style.scss +2 -1
- package/lib/table-virtuoso/table/Grid.js +0 -4
- package/lib/table-virtuoso/table/TableContainer.js +29 -42
- package/lib/table-virtuoso/table/TableWrapper.d.ts +2 -0
- package/lib/table-virtuoso/table/TableWrapper.js +4 -2
- package/package.json +1 -1
- package/es/grid-component/AdvanceFilter.d.ts +0 -14
- package/es/grid-component/AdvanceFilter.js +0 -454
- package/es/grid-component/CheckboxFilter.d.ts +0 -20
- package/es/grid-component/CheckboxFilter.js +0 -244
- package/es/grid-component/CheckboxFilter2.d.ts +0 -20
- package/es/grid-component/CheckboxFilter2.js +0 -244
- package/es/grid-component/ColumnsChoose.d.ts +0 -10
- package/es/grid-component/ColumnsChoose.js +0 -230
- package/es/grid-component/ColumnsGroup/ColumnsGroup.d.ts +0 -12
- package/es/grid-component/ColumnsGroup/ColumnsGroup.js +0 -232
- package/es/grid-component/ColumnsGroup/index.d.ts +0 -1
- package/es/grid-component/ColumnsGroup/index.js +0 -1
- package/es/grid-component/Command.d.ts +0 -8
- package/es/grid-component/Command.js +0 -80
- package/es/grid-component/ContextMenu.d.ts +0 -20
- package/es/grid-component/ContextMenu.js +0 -130
- package/es/grid-component/EditForm/EditForm.d.ts +0 -27
- package/es/grid-component/EditForm/EditForm.js +0 -394
- package/es/grid-component/EditForm/index.d.ts +0 -1
- package/es/grid-component/EditForm/index.js +0 -1
- package/es/grid-component/EditableCell.d.ts +0 -20
- package/es/grid-component/EditableCell.js +0 -1030
- package/es/grid-component/FilterSearch.d.ts +0 -12
- package/es/grid-component/FilterSearch.js +0 -33
- package/es/grid-component/GridStyle.d.ts +0 -8
- package/es/grid-component/GridStyle.js +0 -5
- package/es/grid-component/TableGrid.d.ts +0 -21
- package/es/grid-component/TableGrid.js +0 -493
- package/es/grid-component/async-select/index.d.ts +0 -11
- package/es/grid-component/async-select/index.js +0 -38
- package/es/grid-component/async-table-select/index.d.ts +0 -11
- package/es/grid-component/async-table-select/index.js +0 -40
- package/es/grid-component/checkbox-control/index.d.ts +0 -13
- package/es/grid-component/checkbox-control/index.js +0 -40
- package/es/grid-component/hooks/columns/index.d.ts +0 -10
- package/es/grid-component/hooks/columns/index.js +0 -503
- package/es/grid-component/hooks/content/ControlCheckbox.d.ts +0 -13
- package/es/grid-component/hooks/content/ControlCheckbox.js +0 -87
- package/es/grid-component/hooks/content/HeaderContent.d.ts +0 -14
- package/es/grid-component/hooks/content/HeaderContent.js +0 -44
- package/es/grid-component/hooks/content/TooltipContent.d.ts +0 -13
- package/es/grid-component/hooks/content/TooltipContent.js +0 -74
- package/es/grid-component/hooks/useColumns.d.ts +0 -19
- package/es/grid-component/hooks/useColumns.js +0 -317
- package/es/grid-component/number/index.d.ts +0 -10
- package/es/grid-component/number/index.js +0 -39
- package/es/grid-component/number-range/index.d.ts +0 -11
- package/es/grid-component/number-range/index.js +0 -63
- package/es/grid-component/useContext.d.ts +0 -34
- package/es/grid-component/useContext.js +0 -8
- package/es/table-component/hook/constant.d.ts +0 -73
- package/es/table-component/hook/constant.js +0 -240
- package/es/table-virtuoso/body/TableBody.d.ts +0 -14
- package/es/table-virtuoso/body/TableBody.js +0 -84
- package/lib/grid-component/AdvanceFilter.d.ts +0 -14
- package/lib/grid-component/AdvanceFilter.js +0 -463
- package/lib/grid-component/CheckboxFilter.d.ts +0 -20
- package/lib/grid-component/CheckboxFilter.js +0 -253
- package/lib/grid-component/CheckboxFilter2.d.ts +0 -20
- package/lib/grid-component/CheckboxFilter2.js +0 -253
- package/lib/grid-component/ColumnsChoose.d.ts +0 -10
- package/lib/grid-component/ColumnsChoose.js +0 -240
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.d.ts +0 -12
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +0 -243
- package/lib/grid-component/ColumnsGroup/index.d.ts +0 -1
- package/lib/grid-component/ColumnsGroup/index.js +0 -16
- package/lib/grid-component/Command.d.ts +0 -8
- package/lib/grid-component/Command.js +0 -88
- package/lib/grid-component/ContextMenu.d.ts +0 -20
- package/lib/grid-component/ContextMenu.js +0 -140
- package/lib/grid-component/EditForm/EditForm.d.ts +0 -27
- package/lib/grid-component/EditForm/EditForm.js +0 -404
- package/lib/grid-component/EditForm/index.d.ts +0 -1
- package/lib/grid-component/EditForm/index.js +0 -16
- package/lib/grid-component/EditableCell.d.ts +0 -20
- package/lib/grid-component/EditableCell.js +0 -1032
- package/lib/grid-component/FilterSearch.d.ts +0 -12
- package/lib/grid-component/FilterSearch.js +0 -42
- package/lib/grid-component/GridStyle.d.ts +0 -8
- package/lib/grid-component/GridStyle.js +0 -12
- package/lib/grid-component/TableGrid.d.ts +0 -21
- package/lib/grid-component/TableGrid.js +0 -493
- package/lib/grid-component/async-select/index.d.ts +0 -11
- package/lib/grid-component/async-select/index.js +0 -47
- package/lib/grid-component/async-table-select/index.d.ts +0 -11
- package/lib/grid-component/async-table-select/index.js +0 -49
- package/lib/grid-component/checkbox-control/index.d.ts +0 -13
- package/lib/grid-component/checkbox-control/index.js +0 -48
- package/lib/grid-component/hooks/columns/index.d.ts +0 -10
- package/lib/grid-component/hooks/columns/index.js +0 -518
- package/lib/grid-component/hooks/content/ControlCheckbox.d.ts +0 -13
- package/lib/grid-component/hooks/content/ControlCheckbox.js +0 -95
- package/lib/grid-component/hooks/content/HeaderContent.d.ts +0 -14
- package/lib/grid-component/hooks/content/HeaderContent.js +0 -53
- package/lib/grid-component/hooks/content/TooltipContent.d.ts +0 -13
- package/lib/grid-component/hooks/content/TooltipContent.js +0 -81
- package/lib/grid-component/hooks/useColumns.d.ts +0 -19
- package/lib/grid-component/hooks/useColumns.js +0 -328
- package/lib/grid-component/number/index.d.ts +0 -10
- package/lib/grid-component/number/index.js +0 -47
- package/lib/grid-component/number-range/index.d.ts +0 -11
- package/lib/grid-component/number-range/index.js +0 -71
- package/lib/grid-component/useContext.d.ts +0 -34
- package/lib/grid-component/useContext.js +0 -13
- package/lib/table-component/hook/constant.d.ts +0 -73
- package/lib/table-component/hook/constant.js +0 -247
- package/lib/table-virtuoso/body/TableBody.d.ts +0 -14
- package/lib/table-virtuoso/body/TableBody.js +0 -95
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ColumnsChoose = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
var _becoxyIcons = require("becoxy-icons");
|
|
12
|
-
var _hooks = require("./hooks");
|
|
13
|
-
var _tree = _interopRequireDefault(require("rc-master-ui/es/tree"));
|
|
14
|
-
var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/SearchOutlined"));
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
// import type {TableColumnsType} from "rc-master-ui";
|
|
18
|
-
|
|
19
|
-
const BoxAction = _styledComponents.default.div.withConfig({
|
|
20
|
-
displayName: "BoxAction",
|
|
21
|
-
componentId: "es-grid-template__sc-1ix8yky-0"
|
|
22
|
-
})(["border-top:1px solid #c4c4c4;padding-top:.75rem;display:flex;justify-content:end;gap:10px;.btn-action{background:none !important;border:none !important;&.btn-action-submit{color:#df4318;&:disabled{background-color:#f0f0f0 !important;}&:hover{color:#df4318 !important;}}&:hover{background-color:#f0f0f0 !important;}}"]);
|
|
23
|
-
const ColumnsChoose = props => {
|
|
24
|
-
const {
|
|
25
|
-
columns: propsColumns,
|
|
26
|
-
triggerChangeColumns,
|
|
27
|
-
triggerChangeKeys,
|
|
28
|
-
t,
|
|
29
|
-
columnsGroup
|
|
30
|
-
} = props;
|
|
31
|
-
|
|
32
|
-
// const dataList: { key: React.Key; title: string }[] = [];
|
|
33
|
-
|
|
34
|
-
// const defaultColumns = useMemo(() => {
|
|
35
|
-
// return propsColumns.filter((it) => it.key || it.dataIndex && it.showColumnChoose !== false)
|
|
36
|
-
// }, [propsColumns])
|
|
37
|
-
|
|
38
|
-
// const columnsChooseRef: any = useRef()
|
|
39
|
-
// const searchRef: any = useRef()
|
|
40
|
-
|
|
41
|
-
// const [columns, setColumns] = useState<TableColumnsType>([])
|
|
42
|
-
const [selectedKeys, setSelectedKeys] = (0, _react.useState)([]);
|
|
43
|
-
const [isManualUpdate, setIsManualUpdate] = (0, _react.useState)(false);
|
|
44
|
-
|
|
45
|
-
// useEffect(() => {
|
|
46
|
-
//
|
|
47
|
-
// const defaultColumns = propsColumns.filter((it) => it.key || it.dataIndex && it.showInColumnChoose !== false)
|
|
48
|
-
// setColumns(defaultColumns as TableColumnsType)
|
|
49
|
-
//
|
|
50
|
-
// }, [propsColumns])
|
|
51
|
-
|
|
52
|
-
const columns = (0, _react.useMemo)(() => {
|
|
53
|
-
return propsColumns.filter(it => it.key || it.dataIndex && it.showInColumnChoose !== false);
|
|
54
|
-
// setColumns(defaultColumns as TableColumnsType)
|
|
55
|
-
}, [propsColumns]);
|
|
56
|
-
(0, _react.useEffect)(() => {
|
|
57
|
-
// const defaultColumns = propsColumns.filter((it) => it.key || it.dataIndex && it.showInColumnChoose !== false)
|
|
58
|
-
const defaultColumns = propsColumns.filter(it => (it.key || it.dataIndex) && it.showInColumnChoose !== false && !columnsGroup?.includes(it.field));
|
|
59
|
-
const defaultSelectedKeys = (0, _hooks.getVisibleColumnKeys)(defaultColumns);
|
|
60
|
-
if (!isManualUpdate) {
|
|
61
|
-
setSelectedKeys(defaultSelectedKeys);
|
|
62
|
-
}
|
|
63
|
-
setIsManualUpdate(false);
|
|
64
|
-
}, [propsColumns]);
|
|
65
|
-
const defaultSelectedKeys = (0, _react.useMemo)(() => {
|
|
66
|
-
const defaultColumns = propsColumns.filter(it => (it.key || it.dataIndex) && it.showInColumnChoose !== false && !columnsGroup?.includes(it.field));
|
|
67
|
-
return (0, _hooks.getVisibleColumnKeys)(defaultColumns);
|
|
68
|
-
}, [columnsGroup, propsColumns]);
|
|
69
|
-
const [clicked, setClicked] = (0, _react.useState)(false);
|
|
70
|
-
const [autoExpandParent, setAutoExpandParent] = (0, _react.useState)(true);
|
|
71
|
-
|
|
72
|
-
// const treeData = useMemo(() => {
|
|
73
|
-
// const loop = (data: TreeDataNode[]): TreeDataNode[] =>
|
|
74
|
-
// data.map((item) => {
|
|
75
|
-
// const strTitle = item.title as string;
|
|
76
|
-
// const index = strTitle.indexOf(searchValue);
|
|
77
|
-
// const beforeStr = strTitle.substring(0, index);
|
|
78
|
-
// const afterStr = strTitle.slice(index + searchValue.length);
|
|
79
|
-
// const title =
|
|
80
|
-
// index > -1 ? (
|
|
81
|
-
// <span key={item.key}>
|
|
82
|
-
// {beforeStr}
|
|
83
|
-
// <span className="site-tree-search-value">{searchValue}</span>
|
|
84
|
-
// {afterStr}
|
|
85
|
-
// </span>
|
|
86
|
-
// ) : (
|
|
87
|
-
// <span key={item.key}>{strTitle}</span>
|
|
88
|
-
// );
|
|
89
|
-
// if (item.children) {
|
|
90
|
-
// return { title, key: item.key, children: loop(item.children) };
|
|
91
|
-
// }
|
|
92
|
-
//
|
|
93
|
-
// return {
|
|
94
|
-
// title,
|
|
95
|
-
// key: item.key,
|
|
96
|
-
// };
|
|
97
|
-
// });
|
|
98
|
-
//
|
|
99
|
-
// // return loop(defaultData);
|
|
100
|
-
// return loop(columns as any);
|
|
101
|
-
// }, [searchValue, columns]);
|
|
102
|
-
|
|
103
|
-
const hide = () => {
|
|
104
|
-
setClicked(false);
|
|
105
|
-
};
|
|
106
|
-
const handleClickChange = open => {
|
|
107
|
-
setClicked(open);
|
|
108
|
-
};
|
|
109
|
-
const onExpand = () => {
|
|
110
|
-
// setExpandedKeys(newExpandedKeys)
|
|
111
|
-
setAutoExpandParent(false);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// const getParentKey = (key: React.Key, tree: TreeDataNode[]): React.Key => {
|
|
115
|
-
// let parentKey: React.Key
|
|
116
|
-
// for (let i = 0; i < tree.length; i++) {
|
|
117
|
-
// const node = tree[i]
|
|
118
|
-
// if (node.children) {
|
|
119
|
-
// if (node.children.some((item) => item.key === key)) {
|
|
120
|
-
// parentKey = node.key
|
|
121
|
-
// } else if (getParentKey(key, node.children)) {
|
|
122
|
-
// parentKey = getParentKey(key, node.children)
|
|
123
|
-
// }
|
|
124
|
-
// }
|
|
125
|
-
// }
|
|
126
|
-
// return parentKey!
|
|
127
|
-
// }
|
|
128
|
-
|
|
129
|
-
// const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
130
|
-
const onChange = () => {
|
|
131
|
-
// const { value } = e.target
|
|
132
|
-
// const newExpandedKeys = dataList
|
|
133
|
-
// .map((item) => {
|
|
134
|
-
// if (item.title.indexOf(value) > -1) {
|
|
135
|
-
// return getParentKey(item.key, defaultData)
|
|
136
|
-
// }
|
|
137
|
-
// return null
|
|
138
|
-
// })
|
|
139
|
-
// .filter((item, i, self): item is React.Key => !!(item && self.indexOf(item) === i))
|
|
140
|
-
// setExpandedKeys(newExpandedKeys)
|
|
141
|
-
|
|
142
|
-
// setSearchValue(value)
|
|
143
|
-
setAutoExpandParent(true);
|
|
144
|
-
};
|
|
145
|
-
const onCheck = keys => {
|
|
146
|
-
setSelectedKeys(keys);
|
|
147
|
-
setIsManualUpdate(true);
|
|
148
|
-
};
|
|
149
|
-
const handleAccept = () => {
|
|
150
|
-
const rs1 = (0, _hooks.updateColumns)(propsColumns, selectedKeys);
|
|
151
|
-
triggerChangeKeys?.(selectedKeys);
|
|
152
|
-
triggerChangeColumns?.(rs1, 'columnChoose');
|
|
153
|
-
hide();
|
|
154
|
-
};
|
|
155
|
-
const handleCancel = () => {
|
|
156
|
-
setSelectedKeys(defaultSelectedKeys);
|
|
157
|
-
hide();
|
|
158
|
-
};
|
|
159
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_antd.Popover, {
|
|
160
|
-
placement: 'bottomLeft',
|
|
161
|
-
content: /*#__PURE__*/_react.default.createElement("div", {
|
|
162
|
-
style: {
|
|
163
|
-
minWidth: 250,
|
|
164
|
-
maxWidth: 320
|
|
165
|
-
}
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
167
|
-
style: {
|
|
168
|
-
marginBottom: 8
|
|
169
|
-
},
|
|
170
|
-
placeholder: t ? t("Search") : 'Search',
|
|
171
|
-
prefix: /*#__PURE__*/_react.default.createElement(_SearchOutlined.default, null),
|
|
172
|
-
onChange: onChange
|
|
173
|
-
}), /*#__PURE__*/_react.default.createElement(_tree.default, {
|
|
174
|
-
onExpand: onExpand
|
|
175
|
-
// expandedKeys={expandedKeys}
|
|
176
|
-
,
|
|
177
|
-
autoExpandParent: autoExpandParent
|
|
178
|
-
// treeData={treeData}
|
|
179
|
-
,
|
|
180
|
-
treeData: columns.filter(it => !columnsGroup?.includes(it.field)),
|
|
181
|
-
defaultExpandAll: true,
|
|
182
|
-
checkable: true
|
|
183
|
-
// onSelect={(keys, info) => {
|
|
184
|
-
// const key = info.node.key
|
|
185
|
-
//
|
|
186
|
-
// const find = findItemByKey(columns, 'key', key)
|
|
187
|
-
//
|
|
188
|
-
// // const tmpColumn
|
|
189
|
-
//
|
|
190
|
-
// // if (selectedKeys.includes(key as string)) {
|
|
191
|
-
// // const rssss = findKeyPath(columns, key as string)
|
|
192
|
-
// // const rs = selectedKeys.filter(item => !rssss.includes(item));
|
|
193
|
-
// //
|
|
194
|
-
// // setSelectedKeys(rs)
|
|
195
|
-
// // } else {
|
|
196
|
-
//
|
|
197
|
-
// // const rs = [...selectedKeys, keys[0]]
|
|
198
|
-
//
|
|
199
|
-
// // setSelectedKeys(keys)
|
|
200
|
-
// // }
|
|
201
|
-
// }}
|
|
202
|
-
,
|
|
203
|
-
onCheck: keys => onCheck(keys),
|
|
204
|
-
multiple: true,
|
|
205
|
-
checkedKeys: selectedKeys,
|
|
206
|
-
defaultCheckedKeys: selectedKeys
|
|
207
|
-
// defaultCheckedKeys={defaultSelectedKeys}
|
|
208
|
-
,
|
|
209
|
-
selectedKeys: []
|
|
210
|
-
|
|
211
|
-
// height={window.innerHeight - 200}
|
|
212
|
-
,
|
|
213
|
-
height: window.innerHeight / 2 > 450 ? 450 : window.innerHeight / 2 - 110
|
|
214
|
-
// style={{height: 300}}
|
|
215
|
-
}), /*#__PURE__*/_react.default.createElement(BoxAction, {
|
|
216
|
-
className: 'px-1'
|
|
217
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button
|
|
218
|
-
// className={classnames('btn-action btn-action-submit', {
|
|
219
|
-
// // disable: !columns.find((item) => item.visible !== false || item.visible)
|
|
220
|
-
// })}
|
|
221
|
-
, {
|
|
222
|
-
onClick: handleAccept
|
|
223
|
-
// disabled={!columns.find((item) => item.visible !== false || item.visible)}
|
|
224
|
-
}, t ? t('OK') : 'OK'), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
225
|
-
className: 'btn-action btn-action-cancel',
|
|
226
|
-
onClick: handleCancel
|
|
227
|
-
}, t ? t('Cancel') : 'Cancel'))),
|
|
228
|
-
trigger: "click",
|
|
229
|
-
open: clicked,
|
|
230
|
-
onOpenChange: handleClickChange,
|
|
231
|
-
arrow: false,
|
|
232
|
-
zIndex: 1065
|
|
233
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
234
|
-
arrow: false,
|
|
235
|
-
title: 'Cài đặt'
|
|
236
|
-
}, /*#__PURE__*/_react.default.createElement(_becoxyIcons.Settings, {
|
|
237
|
-
fontSize: 16
|
|
238
|
-
}))));
|
|
239
|
-
};
|
|
240
|
-
exports.ColumnsChoose = ColumnsChoose;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type IColumnsGroup = {
|
|
3
|
-
columns: any[];
|
|
4
|
-
dataSource?: string[];
|
|
5
|
-
onSubmit: (value: any) => void;
|
|
6
|
-
t?: any;
|
|
7
|
-
columnsGrouped?: string[];
|
|
8
|
-
unClearableLevel?: number;
|
|
9
|
-
defaultGroupColumns?: string[];
|
|
10
|
-
};
|
|
11
|
-
export declare const ColumnsGroup: (props: IColumnsGroup) => React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ColumnsGroup = void 0;
|
|
8
|
-
var _becoxyIcons = require("becoxy-icons");
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _antd = require("antd");
|
|
11
|
-
var _rcMasterUi = require("rc-master-ui");
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
var _hooks = require("../hooks");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
// import {
|
|
17
|
-
// // groupArrayByColumns,
|
|
18
|
-
// // ungroupArray,
|
|
19
|
-
// // useOnClickOutside
|
|
20
|
-
// } from "../../hooks"
|
|
21
|
-
|
|
22
|
-
// import {SettingOutlined} from "@ant-design/icons";
|
|
23
|
-
|
|
24
|
-
const BoxAction = _styledComponents.default.div.withConfig({
|
|
25
|
-
displayName: "BoxAction",
|
|
26
|
-
componentId: "es-grid-template__sc-1uj3tyy-0"
|
|
27
|
-
})(["padding-top:.75rem;display:flex;justify-content:end;gap:10px;.btn-action{background:none !important;border:none !important;&.btn-action-submit{color:#df4318;&:disabled{background-color:#f0f0f0 !important;}&:hover{color:#df4318 !important;}}&:hover{background-color:#f0f0f0 !important;}}"]);
|
|
28
|
-
const ColumnsGroup = props => {
|
|
29
|
-
const {
|
|
30
|
-
columns,
|
|
31
|
-
columnsGrouped,
|
|
32
|
-
onSubmit,
|
|
33
|
-
unClearableLevel,
|
|
34
|
-
defaultGroupColumns,
|
|
35
|
-
t
|
|
36
|
-
} = props;
|
|
37
|
-
const menuRef = (0, _react.useRef)();
|
|
38
|
-
const [tempGroup, setTempGroup] = (0, _react.useState)([]);
|
|
39
|
-
const [clicked, setClicked] = (0, _react.useState)(false);
|
|
40
|
-
console.log('columns', columns);
|
|
41
|
-
console.log('columnsGrouped', columnsGrouped);
|
|
42
|
-
const rsCol = _react.default.useMemo(() => {
|
|
43
|
-
return columns.filter(it => it.visible !== false && !tempGroup.includes(it.field) && it.field !== '#' && it.field !== 'selection_column' && it.field !== 'command');
|
|
44
|
-
}, [columns, tempGroup]);
|
|
45
|
-
console.log('rsCol', rsCol);
|
|
46
|
-
const options = _react.default.useMemo(() => {
|
|
47
|
-
return rsCol.map(it => ({
|
|
48
|
-
...it,
|
|
49
|
-
value: it.field,
|
|
50
|
-
label: t ? t(it?.columnGroupText ?? it?.headerText) : it?.columnGroupText ?? it?.headerText
|
|
51
|
-
}));
|
|
52
|
-
}, [rsCol, t]);
|
|
53
|
-
|
|
54
|
-
// React.useEffect(() => {
|
|
55
|
-
// if(columnsGrouped) {
|
|
56
|
-
// setTempGroup([...columnsGrouped])
|
|
57
|
-
// }
|
|
58
|
-
//
|
|
59
|
-
// }, [!!columnsGrouped])
|
|
60
|
-
|
|
61
|
-
const onChangeGroupColumns = (option, index) => {
|
|
62
|
-
// if (option) {
|
|
63
|
-
// tempGroup[index] = option
|
|
64
|
-
// } else {
|
|
65
|
-
// tempGroup.splice(index, 1)
|
|
66
|
-
// }
|
|
67
|
-
// setTempGroup([...tempGroup])
|
|
68
|
-
|
|
69
|
-
const cloneTemp = [...tempGroup];
|
|
70
|
-
if (option) {
|
|
71
|
-
cloneTemp[index] = option;
|
|
72
|
-
} else {
|
|
73
|
-
cloneTemp.splice(index, 1);
|
|
74
|
-
}
|
|
75
|
-
setTempGroup([...cloneTemp]);
|
|
76
|
-
};
|
|
77
|
-
const handleGroup = () => {
|
|
78
|
-
// setColumnsGrouped([...tempGroup])
|
|
79
|
-
setClicked(false);
|
|
80
|
-
// const dt = ungroupArray(dataSource)
|
|
81
|
-
|
|
82
|
-
// const rs = groupArrayByColumns(dt, [...tempGroup])
|
|
83
|
-
|
|
84
|
-
// setResource([...rs])
|
|
85
|
-
onSubmit([...tempGroup]);
|
|
86
|
-
};
|
|
87
|
-
const handleClear = () => {
|
|
88
|
-
// setColumnsGrouped([])
|
|
89
|
-
setTempGroup(defaultGroupColumns ? defaultGroupColumns : []);
|
|
90
|
-
// setIsOpen(false)
|
|
91
|
-
setClicked(false);
|
|
92
|
-
// const dt = ungroupArray(dataSource)
|
|
93
|
-
|
|
94
|
-
// const rs = groupArrayByColumns(dt, [])
|
|
95
|
-
|
|
96
|
-
// setResource([...rs])
|
|
97
|
-
onSubmit(defaultGroupColumns ? defaultGroupColumns : []);
|
|
98
|
-
};
|
|
99
|
-
const handleClickChange = open => {
|
|
100
|
-
setClicked(open);
|
|
101
|
-
if (open) {
|
|
102
|
-
if (columnsGrouped) {
|
|
103
|
-
setTempGroup([...columnsGrouped]);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (!open) {
|
|
107
|
-
setTempGroup([]);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_antd.Popover, {
|
|
111
|
-
placement: 'bottomLeft',
|
|
112
|
-
content: /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
style: {
|
|
114
|
-
minWidth: 250
|
|
115
|
-
}
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
ref: menuRef,
|
|
118
|
-
style: {
|
|
119
|
-
position: 'relative'
|
|
120
|
-
}
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
122
|
-
className: 'fw-bold'
|
|
123
|
-
}, "Nh\xF3m d\u1EEF li\u1EC7u theo c\u1ED9t"), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
-
className: 'mb-1',
|
|
125
|
-
style: {
|
|
126
|
-
marginBottom: '1rem'
|
|
127
|
-
}
|
|
128
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
129
|
-
className: 'm-0',
|
|
130
|
-
style: {
|
|
131
|
-
margin: 0
|
|
132
|
-
}
|
|
133
|
-
}, "M\u1EE9c 1"), /*#__PURE__*/_react.default.createElement(_rcMasterUi.Select, {
|
|
134
|
-
style: {
|
|
135
|
-
width: '100%'
|
|
136
|
-
},
|
|
137
|
-
showSearch: true
|
|
138
|
-
// labelInValue={true}
|
|
139
|
-
// options={columns.filter((it: any) => !tempGroup.includes(it.field))}
|
|
140
|
-
// options={columns && columns.length > 0 ? options : []}
|
|
141
|
-
,
|
|
142
|
-
options: options,
|
|
143
|
-
value: tempGroup?.[0],
|
|
144
|
-
onChange: val => onChangeGroupColumns(val, 0),
|
|
145
|
-
allowClear: !tempGroup?.[1] && !(unClearableLevel && unClearableLevel - 1 >= 0)
|
|
146
|
-
// fieldNames={{
|
|
147
|
-
// value: 'field',
|
|
148
|
-
// label: 'headerText'
|
|
149
|
-
// }}
|
|
150
|
-
,
|
|
151
|
-
labelRender: labelProps => {
|
|
152
|
-
const it = columns.find(col => col.field === labelProps.value);
|
|
153
|
-
return t ? t(it?.columnGroupText ?? it?.headerText) : it?.columnGroupText ?? it?.headerText;
|
|
154
|
-
},
|
|
155
|
-
filterOption: _hooks.customFilterOption
|
|
156
|
-
// hideSelectedOptions
|
|
157
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
158
|
-
className: 'mb-1',
|
|
159
|
-
style: {
|
|
160
|
-
marginBottom: '1rem'
|
|
161
|
-
}
|
|
162
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
163
|
-
className: 'm-0',
|
|
164
|
-
style: {
|
|
165
|
-
margin: 0
|
|
166
|
-
}
|
|
167
|
-
}, "M\u1EE9c 2"), /*#__PURE__*/_react.default.createElement(_rcMasterUi.Select, {
|
|
168
|
-
showSearch: true,
|
|
169
|
-
style: {
|
|
170
|
-
width: '100%'
|
|
171
|
-
},
|
|
172
|
-
options: options,
|
|
173
|
-
value: tempGroup?.[1],
|
|
174
|
-
onChange: val => onChangeGroupColumns(val, 1),
|
|
175
|
-
allowClear: !tempGroup?.[2] && !(unClearableLevel && unClearableLevel - 2 >= 0)
|
|
176
|
-
// hideSelectedOptions
|
|
177
|
-
// fieldNames={{
|
|
178
|
-
// value: 'field',
|
|
179
|
-
// label: 'headerText'
|
|
180
|
-
// }}
|
|
181
|
-
,
|
|
182
|
-
labelRender: labelProps => {
|
|
183
|
-
const it = columns.find(col => col.field === labelProps.value);
|
|
184
|
-
return t ? t(it?.columnGroupText ?? it?.headerText) : it?.columnGroupText ?? it?.headerText;
|
|
185
|
-
},
|
|
186
|
-
filterOption: _hooks.customFilterOption
|
|
187
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
188
|
-
className: 'mb-1',
|
|
189
|
-
style: {
|
|
190
|
-
marginBottom: '1rem'
|
|
191
|
-
}
|
|
192
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
193
|
-
className: 'm-0',
|
|
194
|
-
style: {
|
|
195
|
-
margin: 0
|
|
196
|
-
}
|
|
197
|
-
}, "M\u1EE9c 3"), /*#__PURE__*/_react.default.createElement(_rcMasterUi.Select, {
|
|
198
|
-
style: {
|
|
199
|
-
width: '100%'
|
|
200
|
-
},
|
|
201
|
-
options: options,
|
|
202
|
-
showSearch: true,
|
|
203
|
-
value: tempGroup?.[2],
|
|
204
|
-
onChange: val => onChangeGroupColumns(val, 2),
|
|
205
|
-
allowClear: !!tempGroup?.[2] && !(unClearableLevel && unClearableLevel - 3 >= 0)
|
|
206
|
-
// fieldNames={{
|
|
207
|
-
// value: 'field',
|
|
208
|
-
// label: 'headerText'
|
|
209
|
-
// }}
|
|
210
|
-
,
|
|
211
|
-
labelRender: labelProps => {
|
|
212
|
-
const it = columns.find(col => col.field === labelProps.value);
|
|
213
|
-
return t ? t(it?.columnGroupText ?? it?.headerText) : it?.columnGroupText ?? it?.headerText;
|
|
214
|
-
},
|
|
215
|
-
filterOption: _hooks.customFilterOption
|
|
216
|
-
}))), /*#__PURE__*/_react.default.createElement(BoxAction, {
|
|
217
|
-
className: 'px-1'
|
|
218
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button
|
|
219
|
-
// className={classnames('btn-action btn-action-submit', {
|
|
220
|
-
// // disable: !columns.find((item) => item.visible !== false || item.visible)
|
|
221
|
-
// })}
|
|
222
|
-
, {
|
|
223
|
-
onClick: handleGroup
|
|
224
|
-
// disabled={!columns.find((item) => item.visible !== false || item.visible)}
|
|
225
|
-
}, t ? t('Thực hiện') : 'Thực hiện'), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
226
|
-
className: 'btn-action btn-action-cancel',
|
|
227
|
-
onClick: handleClear
|
|
228
|
-
}, t ? t('Clear') : 'Clear'))),
|
|
229
|
-
trigger: "click",
|
|
230
|
-
open: clicked,
|
|
231
|
-
onOpenChange: handleClickChange,
|
|
232
|
-
arrow: false
|
|
233
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
234
|
-
arrow: false,
|
|
235
|
-
title: 'Nhóm dữ liệu'
|
|
236
|
-
}, /*#__PURE__*/_react.default.createElement(_becoxyIcons.Group, {
|
|
237
|
-
fontSize: 18,
|
|
238
|
-
style: {
|
|
239
|
-
cursor: 'pointer'
|
|
240
|
-
}
|
|
241
|
-
}))));
|
|
242
|
-
};
|
|
243
|
-
exports.ColumnsGroup = ColumnsGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ColumnsGroup';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _ColumnsGroup = require("./ColumnsGroup");
|
|
7
|
-
Object.keys(_ColumnsGroup).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _ColumnsGroup[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _ColumnsGroup[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _react2 = require("@floating-ui/react");
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
var _hooks = require("./hooks");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
// import {Button} from "antd";
|
|
17
|
-
|
|
18
|
-
const TooltipStyle = _styledComponents.default.div.withConfig({
|
|
19
|
-
displayName: "TooltipStyle",
|
|
20
|
-
componentId: "es-grid-template__sc-1iotu11-0"
|
|
21
|
-
})(["width:max-content;background-color:#444;color:white;font-size:90%;padding:4px 8px;border-radius:4px;opacity:0.9;z-index:9999;max-width:450px;"]);
|
|
22
|
-
const Command = props => {
|
|
23
|
-
const {
|
|
24
|
-
item,
|
|
25
|
-
onClick
|
|
26
|
-
} = props;
|
|
27
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
28
|
-
const {
|
|
29
|
-
refs,
|
|
30
|
-
floatingStyles,
|
|
31
|
-
context
|
|
32
|
-
} = (0, _react2.useFloating)({
|
|
33
|
-
open: isOpen,
|
|
34
|
-
onOpenChange: setIsOpen,
|
|
35
|
-
placement: "top",
|
|
36
|
-
whileElementsMounted: _react2.autoUpdate,
|
|
37
|
-
middleware: [(0, _react2.offset)(5), (0, _react2.flip)({
|
|
38
|
-
fallbackAxisSideDirection: "start"
|
|
39
|
-
}), (0, _react2.shift)()]
|
|
40
|
-
});
|
|
41
|
-
const hover = (0, _react2.useHover)(context, {
|
|
42
|
-
move: false
|
|
43
|
-
});
|
|
44
|
-
const focus = (0, _react2.useFocus)(context);
|
|
45
|
-
const dismiss = (0, _react2.useDismiss)(context);
|
|
46
|
-
const role = (0, _react2.useRole)(context, {
|
|
47
|
-
role: "tooltip"
|
|
48
|
-
});
|
|
49
|
-
const {
|
|
50
|
-
getReferenceProps,
|
|
51
|
-
getFloatingProps
|
|
52
|
-
} = (0, _react2.useInteractions)([hover, focus, dismiss, role]);
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, item.template ? /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
54
|
-
ref: refs.setReference
|
|
55
|
-
}, getReferenceProps(), {
|
|
56
|
-
id: item.id,
|
|
57
|
-
onClick: onClick
|
|
58
|
-
}), (0, _hooks.getTemplate)(item.template)) : /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
59
|
-
ref: refs.setReference
|
|
60
|
-
}, getReferenceProps(), {
|
|
61
|
-
tabIndex: -1,
|
|
62
|
-
style: {
|
|
63
|
-
padding: '3px',
|
|
64
|
-
maxWidth: 45,
|
|
65
|
-
height: '100%',
|
|
66
|
-
display: 'flex',
|
|
67
|
-
cursor: 'pointer'
|
|
68
|
-
},
|
|
69
|
-
className: (0, _classnames.default)('command-item', {
|
|
70
|
-
'btn-icon': item.title === ''
|
|
71
|
-
}),
|
|
72
|
-
color: item.color ? item.color : 'primary',
|
|
73
|
-
onClick: onClick
|
|
74
|
-
}), item.icon ? (0, _hooks.getTemplate)(item.icon) : item.title)
|
|
75
|
-
|
|
76
|
-
// <span>{item.title}</span>
|
|
77
|
-
, isOpen && item.tooltip && /*#__PURE__*/_react.default.createElement(_react2.FloatingPortal, {
|
|
78
|
-
root: document.body
|
|
79
|
-
}, /*#__PURE__*/_react.default.createElement(TooltipStyle, (0, _extends2.default)({
|
|
80
|
-
className: "Tooltip",
|
|
81
|
-
ref: refs.setFloating,
|
|
82
|
-
style: {
|
|
83
|
-
...floatingStyles,
|
|
84
|
-
zIndex: 1999
|
|
85
|
-
}
|
|
86
|
-
}, getFloatingProps()), item.tooltip)));
|
|
87
|
-
};
|
|
88
|
-
var _default = exports.default = Command;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ContextInfo } from "./type";
|
|
3
|
-
import type { ContextMenuItem } from "./type";
|
|
4
|
-
export declare const findItemByKey: (array: any[], key: string, value: any) => any;
|
|
5
|
-
type Props<RecordType> = {
|
|
6
|
-
rowData: RecordType | null;
|
|
7
|
-
contextMenuItems: ContextMenuItem[];
|
|
8
|
-
contextMenuClick?: (args: ContextInfo<RecordType>) => void;
|
|
9
|
-
open: boolean;
|
|
10
|
-
menuRef?: any;
|
|
11
|
-
setOpen: (open: boolean) => void;
|
|
12
|
-
pos: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
viewportWidth: number;
|
|
16
|
-
viewportHeight: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
|
|
20
|
-
export default ContextMenu;
|