es-grid-template 1.2.0 → 1.2.2
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/assets/index.css +695 -0
- package/assets/index.scss +1063 -0
- package/es/grid-component/ColumnsChoose.d.ts +1 -0
- package/es/grid-component/ColumnsChoose.js +63 -28
- package/es/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/es/grid-component/ColumnsGroup/ColumnsGroup.js +223 -0
- package/es/grid-component/ColumnsGroup/index.d.ts +1 -0
- package/es/grid-component/ColumnsGroup/index.js +1 -0
- package/es/grid-component/ConvertColumnTable.d.ts +7 -0
- package/es/grid-component/ConvertColumnTable.js +143 -0
- package/es/grid-component/EditableCell.js +1 -1
- package/es/grid-component/GridStyle.js +1 -1
- package/es/grid-component/InternalTable.d.ts +1 -0
- package/es/grid-component/InternalTable.js +150 -249
- package/es/grid-component/TableGrid.d.ts +4 -1
- package/es/grid-component/TableGrid.js +31 -70
- package/es/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
- package/es/grid-component/hooks/{useColumns → columns}/index.js +20 -16
- package/es/grid-component/hooks/content/HeaderContent.d.ts +11 -0
- package/es/grid-component/hooks/content/HeaderContent.js +79 -0
- package/es/grid-component/hooks/content/TooltipContent.d.ts +13 -0
- package/es/grid-component/hooks/content/TooltipContent.js +74 -0
- package/es/grid-component/hooks/useColumns.d.ts +16 -0
- package/es/grid-component/hooks/useColumns.js +280 -0
- package/es/grid-component/hooks/utils.d.ts +26 -1
- package/es/grid-component/hooks/utils.js +331 -1
- package/es/grid-component/index.js +3 -1
- package/es/grid-component/styles.scss +365 -68
- package/es/grid-component/table/Grid.d.ts +2 -0
- package/es/grid-component/table/Grid.js +18 -6
- package/es/grid-component/table/GridEdit.d.ts +4 -1
- package/es/grid-component/table/GridEdit.js +941 -307
- package/es/grid-component/table/Group.d.ts +13 -0
- package/es/grid-component/table/Group.js +154 -0
- package/es/grid-component/type.d.ts +39 -2
- package/lib/grid-component/ColumnsChoose.d.ts +1 -0
- package/lib/grid-component/ColumnsChoose.js +62 -27
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +234 -0
- package/lib/grid-component/ColumnsGroup/index.d.ts +1 -0
- package/lib/grid-component/ColumnsGroup/index.js +16 -0
- package/lib/grid-component/ConvertColumnTable.d.ts +7 -0
- package/lib/grid-component/ConvertColumnTable.js +152 -0
- package/lib/grid-component/EditableCell.js +1 -1
- package/lib/grid-component/GridStyle.js +1 -1
- package/lib/grid-component/InternalTable.d.ts +1 -0
- package/lib/grid-component/InternalTable.js +144 -249
- package/lib/grid-component/TableGrid.d.ts +4 -1
- package/lib/grid-component/TableGrid.js +26 -68
- package/lib/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
- package/lib/grid-component/hooks/{useColumns → columns}/index.js +20 -16
- package/lib/grid-component/hooks/content/HeaderContent.d.ts +11 -0
- package/lib/grid-component/hooks/content/HeaderContent.js +86 -0
- package/lib/grid-component/hooks/content/TooltipContent.d.ts +13 -0
- package/lib/grid-component/hooks/content/TooltipContent.js +81 -0
- package/lib/grid-component/hooks/useColumns.d.ts +16 -0
- package/lib/grid-component/hooks/useColumns.js +291 -0
- package/lib/grid-component/hooks/utils.d.ts +26 -1
- package/lib/grid-component/hooks/utils.js +347 -5
- package/lib/grid-component/index.js +2 -1
- package/lib/grid-component/styles.scss +365 -68
- package/lib/grid-component/table/Grid.d.ts +2 -0
- package/lib/grid-component/table/Grid.js +18 -6
- package/lib/grid-component/table/GridEdit.d.ts +4 -1
- package/lib/grid-component/table/GridEdit.js +939 -305
- package/lib/grid-component/table/Group.d.ts +13 -0
- package/lib/grid-component/table/Group.js +163 -0
- package/lib/grid-component/type.d.ts +39 -2
- package/package.json +106 -105
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColumnsTable, GridTableProps } from "../type";
|
|
3
|
+
import type { GetRowKey } from "../type";
|
|
4
|
+
type Props<T> = GridTableProps<T> & {
|
|
5
|
+
tableRef: any;
|
|
6
|
+
triggerChangeColumns?: (columns: ColumnsTable<T>, type: string) => void;
|
|
7
|
+
triggerChangeData?: (newData: T[], type: string) => void;
|
|
8
|
+
getRowKey: GetRowKey<T>;
|
|
9
|
+
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
10
|
+
triggerPaste?: (pastedRows: T[], pastedColumnsArray: string[], newData: T[]) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Group: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
|
|
13
|
+
export default Group;
|
|
@@ -0,0 +1,163 @@
|
|
|
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 _GridStyle = require("../GridStyle");
|
|
11
|
+
var _TableGrid = _interopRequireDefault(require("../TableGrid"));
|
|
12
|
+
var _hooks = require("../hooks");
|
|
13
|
+
var _ColumnsGroup = require("../ColumnsGroup/ColumnsGroup");
|
|
14
|
+
var _columns = require("../hooks/columns");
|
|
15
|
+
var _becoxyIcons = require("becoxy-icons");
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
// import type {ColumnsTable} from "../type";
|
|
19
|
+
|
|
20
|
+
const Group = props => {
|
|
21
|
+
const {
|
|
22
|
+
t,
|
|
23
|
+
columns,
|
|
24
|
+
height,
|
|
25
|
+
style,
|
|
26
|
+
rowHoverable,
|
|
27
|
+
groupAble,
|
|
28
|
+
expandable,
|
|
29
|
+
dataSource,
|
|
30
|
+
getRowKey,
|
|
31
|
+
groupSetting,
|
|
32
|
+
groupColumns,
|
|
33
|
+
triggerGroupColumns,
|
|
34
|
+
...rest
|
|
35
|
+
} = props;
|
|
36
|
+
const {
|
|
37
|
+
defaultExpandedRowKeys,
|
|
38
|
+
defaultExpandAllRows
|
|
39
|
+
} = expandable || {};
|
|
40
|
+
const childrenColumnName = 'children';
|
|
41
|
+
const [innerExpandedKeys, setInnerExpandedKeys] = _react.default.useState(() => {
|
|
42
|
+
if (defaultExpandedRowKeys) {
|
|
43
|
+
return defaultExpandedRowKeys;
|
|
44
|
+
}
|
|
45
|
+
if (defaultExpandAllRows) {
|
|
46
|
+
return (0, _hooks.findAllChildrenKeys)(dataSource, getRowKey, childrenColumnName) ?? [];
|
|
47
|
+
}
|
|
48
|
+
return [];
|
|
49
|
+
});
|
|
50
|
+
const mergedExpandedKeys = _react.default.useMemo(() => new Set(innerExpandedKeys || []), [innerExpandedKeys]);
|
|
51
|
+
const onTriggerExpand = _react.default.useCallback(record => {
|
|
52
|
+
const key = getRowKey(record, dataSource.indexOf(record));
|
|
53
|
+
let newExpandedKeys;
|
|
54
|
+
const hasKey = mergedExpandedKeys.has(key);
|
|
55
|
+
if (hasKey) {
|
|
56
|
+
mergedExpandedKeys.delete(key);
|
|
57
|
+
newExpandedKeys = [...mergedExpandedKeys];
|
|
58
|
+
} else {
|
|
59
|
+
newExpandedKeys = [...mergedExpandedKeys, key];
|
|
60
|
+
}
|
|
61
|
+
setInnerExpandedKeys(newExpandedKeys);
|
|
62
|
+
}, [getRowKey, mergedExpandedKeys, dataSource]);
|
|
63
|
+
const handleExpandAllGroup = () => {
|
|
64
|
+
setInnerExpandedKeys((0, _hooks.findAllChildrenKeys)(dataSource, getRowKey, childrenColumnName) ?? []);
|
|
65
|
+
};
|
|
66
|
+
const handleCollapseAllGroup = () => {
|
|
67
|
+
setInnerExpandedKeys([]);
|
|
68
|
+
};
|
|
69
|
+
const handleOnGroup = value => {
|
|
70
|
+
triggerGroupColumns?.(value);
|
|
71
|
+
};
|
|
72
|
+
const groupToolbar = () => {
|
|
73
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
+
style: {
|
|
75
|
+
display: 'flex',
|
|
76
|
+
gap: '10px',
|
|
77
|
+
marginRight: 10
|
|
78
|
+
}
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_ColumnsGroup.ColumnsGroup, {
|
|
80
|
+
t: t
|
|
81
|
+
// defaultGroupColumns={['name']}
|
|
82
|
+
,
|
|
83
|
+
unClearableLevel: groupSetting?.unClearableLevel
|
|
84
|
+
// unClearableLevel={2}
|
|
85
|
+
,
|
|
86
|
+
columns: columns ? (0, _columns.flatColumns2)(columns) : [],
|
|
87
|
+
columnsGrouped: groupColumns,
|
|
88
|
+
onSubmit: handleOnGroup
|
|
89
|
+
}), /*#__PURE__*/_react.default.createElement(_react.Fragment, null, innerExpandedKeys.length > 0 ? /*#__PURE__*/_react.default.createElement(_becoxyIcons.Collapse2, {
|
|
90
|
+
fontSize: 18,
|
|
91
|
+
color: '#555555',
|
|
92
|
+
onClick: handleCollapseAllGroup
|
|
93
|
+
}) : /*#__PURE__*/_react.default.createElement(_becoxyIcons.Expand2, {
|
|
94
|
+
fontSize: 18,
|
|
95
|
+
color: '#555555',
|
|
96
|
+
onClick: handleExpandAllGroup
|
|
97
|
+
})));
|
|
98
|
+
};
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
|
|
100
|
+
heightTable: height,
|
|
101
|
+
style: {
|
|
102
|
+
position: 'relative'
|
|
103
|
+
}
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement(_TableGrid.default, (0, _extends2.default)({}, rest, {
|
|
105
|
+
t: t,
|
|
106
|
+
columns: columns,
|
|
107
|
+
style: {
|
|
108
|
+
...style,
|
|
109
|
+
minHeight: height
|
|
110
|
+
},
|
|
111
|
+
rowHoverable: rowHoverable ?? true,
|
|
112
|
+
dataSource: dataSource,
|
|
113
|
+
getRowKey: getRowKey,
|
|
114
|
+
groupAble: groupAble,
|
|
115
|
+
groupSetting: groupSetting,
|
|
116
|
+
expandable: {
|
|
117
|
+
expandIconColumnIndex: 3,
|
|
118
|
+
defaultExpandAllRows: true,
|
|
119
|
+
indentSize: 25,
|
|
120
|
+
expandIcon: args => {
|
|
121
|
+
const {
|
|
122
|
+
record,
|
|
123
|
+
expanded,
|
|
124
|
+
onExpand
|
|
125
|
+
} = args;
|
|
126
|
+
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
if (record?.children?.length > 0 || record?.isChildren) {
|
|
129
|
+
return expanded ? /*#__PURE__*/_react.default.createElement("button", {
|
|
130
|
+
onClick: e => {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
e.stopPropagation();
|
|
133
|
+
onExpand(record, e);
|
|
134
|
+
if (groupAble) {
|
|
135
|
+
onTriggerExpand(record);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
className: 'ui-rc-table-row-expand-icon ui-rc-table-row-expand-icon-expanded'
|
|
139
|
+
}) : /*#__PURE__*/_react.default.createElement("button", {
|
|
140
|
+
onClick: e => {
|
|
141
|
+
e.preventDefault();
|
|
142
|
+
e.stopPropagation();
|
|
143
|
+
onExpand(record, e);
|
|
144
|
+
if (groupAble) {
|
|
145
|
+
onTriggerExpand(record);
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
className: 'ui-rc-table-row-expand-icon ui-rc-table-row-expand-icon-collapsed'
|
|
149
|
+
});
|
|
150
|
+
} else {
|
|
151
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
152
|
+
className: 'ui-rc-table-row-expand-icon ui-rc-table-row-expand-icon-spaced'
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
expandedRowKeys: groupAble ? innerExpandedKeys : undefined,
|
|
157
|
+
...expandable
|
|
158
|
+
},
|
|
159
|
+
groupToolbar: groupToolbar,
|
|
160
|
+
groupColumns: groupColumns
|
|
161
|
+
}))));
|
|
162
|
+
};
|
|
163
|
+
var _default = exports.default = Group;
|
|
@@ -82,8 +82,9 @@ export type ToolbarClick = {
|
|
|
82
82
|
item: any;
|
|
83
83
|
column: any;
|
|
84
84
|
};
|
|
85
|
-
export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTemplate'> & {
|
|
85
|
+
export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTemplate' | 'title'> & {
|
|
86
86
|
field?: string;
|
|
87
|
+
key?: any;
|
|
87
88
|
type?: IColumnType;
|
|
88
89
|
isSummary?: boolean;
|
|
89
90
|
summaryTemplate?: (data: number, key: string) => ReactElement | ReactNode;
|
|
@@ -96,8 +97,11 @@ export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTempl
|
|
|
96
97
|
placeholder?: string;
|
|
97
98
|
showInColumnChoose?: boolean;
|
|
98
99
|
typeFilter?: TypeFilter;
|
|
100
|
+
source?: any[];
|
|
99
101
|
showFilterSearch?: boolean;
|
|
100
102
|
headerText?: string;
|
|
103
|
+
headerTooltip?: boolean | string | (() => ReactNode | ReactElement);
|
|
104
|
+
columnGroupText?: string;
|
|
101
105
|
textAlign?: ITextAlign;
|
|
102
106
|
frozen?: Frozen;
|
|
103
107
|
template?: ReactNode | ReactElement | ((value: any, record: RecordType, index: number) => ReactNode | ReactElement);
|
|
@@ -107,7 +111,7 @@ export type ColumnType<RecordType> = Omit<RcColumnType<RecordType>, 'headerTempl
|
|
|
107
111
|
commandItems?: CommandItem[];
|
|
108
112
|
children?: ColumnType<RecordType>[];
|
|
109
113
|
};
|
|
110
|
-
export type ColumnEditType<RecordType> = Omit<ColumnType<RecordType>, 'children'> & {
|
|
114
|
+
export type ColumnEditType<RecordType = AnyObject> = Omit<ColumnType<RecordType>, 'children'> & {
|
|
111
115
|
editType?: EditType | ((rowData?: RecordType) => EditType);
|
|
112
116
|
disable?: boolean | ((rowData: any) => boolean);
|
|
113
117
|
isClearable?: boolean;
|
|
@@ -126,6 +130,11 @@ export type ColumnTable<RecordType = AnyObject> = ColumnEditType<RecordType> | C
|
|
|
126
130
|
export type ColumnsTable<RecordType = AnyObject> = (ColumnType<RecordType> | ColumnEditType<RecordType>)[];
|
|
127
131
|
export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, 'columns' | 'rowSelection' | 'loading' | 'dataSource' | 'summary'> {
|
|
128
132
|
editAble?: boolean;
|
|
133
|
+
groupAble?: boolean;
|
|
134
|
+
groupColumns?: string[];
|
|
135
|
+
groupSetting?: IGroupSetting;
|
|
136
|
+
onChooseColumns?: (props: IOnChooseColumns) => void;
|
|
137
|
+
showCustomTooltip?: boolean;
|
|
129
138
|
sortMultiple?: boolean;
|
|
130
139
|
dataSource: RecordType[];
|
|
131
140
|
columns: ColumnsTable<RecordType>;
|
|
@@ -167,13 +176,24 @@ export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, '
|
|
|
167
176
|
allowResizing?: boolean;
|
|
168
177
|
showToolbar?: boolean;
|
|
169
178
|
onDataChange?: (data: RecordType[]) => void;
|
|
179
|
+
defaultValue?: AnyObject | (() => AnyObject);
|
|
170
180
|
summary?: boolean | ((data: readonly RecordType[]) => React.ReactNode);
|
|
171
181
|
}
|
|
172
182
|
export interface TableEditProps<RecordType = AnyObject> extends Omit<TableProps<RecordType>, 'columns'> {
|
|
173
183
|
columns: ColumnsTable<RecordType>;
|
|
174
184
|
onCellPaste?: ICellPasteModel<RecordType>;
|
|
175
185
|
onCellChange?: (args: CellChangeArgs<RecordType>, handleCallback: (rowData: any, index: any, value?: any) => void) => void;
|
|
186
|
+
onCellClick?: (args: ICellClick, callback?: any) => void;
|
|
176
187
|
}
|
|
188
|
+
export type ICellClick = {
|
|
189
|
+
index: number;
|
|
190
|
+
indexCol?: number;
|
|
191
|
+
rowId: string | number;
|
|
192
|
+
type: 'Editing' | 'Default';
|
|
193
|
+
field: string;
|
|
194
|
+
cellValue: any;
|
|
195
|
+
rowData: any;
|
|
196
|
+
};
|
|
177
197
|
export type GridTableProps<RecordType = AnyObject> = TableProps<RecordType> | TableEditProps<RecordType>;
|
|
178
198
|
export interface CommandItem {
|
|
179
199
|
id: string;
|
|
@@ -187,6 +207,22 @@ export interface CommandItem {
|
|
|
187
207
|
client?: boolean;
|
|
188
208
|
confirmDialog?: boolean;
|
|
189
209
|
}
|
|
210
|
+
export type IGroupSetting = {
|
|
211
|
+
client?: boolean;
|
|
212
|
+
onGroup?: (props: IOnGroup) => void;
|
|
213
|
+
hiddenColumnGroup?: boolean;
|
|
214
|
+
unClearableLevel?: 1 | 2 | 3 | undefined;
|
|
215
|
+
};
|
|
216
|
+
type IOnGroup = {
|
|
217
|
+
columnGrouped: string[];
|
|
218
|
+
columns: ColumnsTable;
|
|
219
|
+
flattenColumns: ColumnsTable;
|
|
220
|
+
};
|
|
221
|
+
export type IOnChooseColumns = {
|
|
222
|
+
columns: ColumnsTable;
|
|
223
|
+
showColumns: ColumnsTable;
|
|
224
|
+
flattenColumns: ColumnsTable;
|
|
225
|
+
};
|
|
190
226
|
export type CellChangeArgs<T> = {
|
|
191
227
|
type: 'onPaste' | 'onChange' | 'onCellPaste';
|
|
192
228
|
value: any;
|
|
@@ -250,3 +286,4 @@ export type IFormat = {
|
|
|
250
286
|
};
|
|
251
287
|
export type GetRowKey<RecordType> = (record: RecordType, index?: number) => Key;
|
|
252
288
|
export type Presets = Required<ColorPickerProps>['presets'][number];
|
|
289
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,105 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "es-grid-template",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "es-grid-template",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"react",
|
|
7
|
-
"react-component",
|
|
8
|
-
"grid",
|
|
9
|
-
"table"
|
|
10
|
-
],
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"main": "lib/index",
|
|
13
|
-
"module": "es/index",
|
|
14
|
-
"files": [
|
|
15
|
-
"lib",
|
|
16
|
-
"es",
|
|
17
|
-
"assets/*.css",
|
|
18
|
-
"assets/*.
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@ant-design/
|
|
37
|
-
"@ant-design/cssinjs
|
|
38
|
-
"@ant-design/
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@rc-component/
|
|
46
|
-
"@rc-component/
|
|
47
|
-
"@rc-component/
|
|
48
|
-
"@
|
|
49
|
-
"@types/
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"antd
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"rc-
|
|
61
|
-
"rc-
|
|
62
|
-
"rc-
|
|
63
|
-
"rc-
|
|
64
|
-
"rc-
|
|
65
|
-
"rc-
|
|
66
|
-
"rc-tree
|
|
67
|
-
"
|
|
68
|
-
"react-
|
|
69
|
-
"react-
|
|
70
|
-
"react-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"@babel/
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@types/
|
|
83
|
-
"@types/react
|
|
84
|
-
"@types/
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"eslint
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"react
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"react
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "es-grid-template",
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "es-grid-template",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-component",
|
|
8
|
+
"grid",
|
|
9
|
+
"table"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"main": "lib/index",
|
|
13
|
+
"module": "es/index",
|
|
14
|
+
"files": [
|
|
15
|
+
"lib",
|
|
16
|
+
"es",
|
|
17
|
+
"assets/*.css",
|
|
18
|
+
"assets/*.scss"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"__compile": "father build && ",
|
|
22
|
+
"compile": "father build && sass assets/index.scss assets/index.css",
|
|
23
|
+
"docs:build": "dumi build",
|
|
24
|
+
"__docs:deploy": "gh-pages -d dist",
|
|
25
|
+
"lint": "eslint src/ --ext .tsx,.ts,.jsx,.js",
|
|
26
|
+
"now-build": "npm run docs:build",
|
|
27
|
+
"prepare": "dumi setup",
|
|
28
|
+
"prepublishOnly": "npm run compile",
|
|
29
|
+
"postpublish": "npm run docs:build",
|
|
30
|
+
"__postpublish": "npm run docs:build && npm run docs:deploy",
|
|
31
|
+
"start": "dumi dev",
|
|
32
|
+
"test": "vitest --watch false",
|
|
33
|
+
"coverage": "vitest run --coverage"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@ant-design/colors": "^8.0.0",
|
|
37
|
+
"@ant-design/cssinjs": "^1.22.0",
|
|
38
|
+
"@ant-design/cssinjs-utils": "^1.1.1",
|
|
39
|
+
"@ant-design/icons": "^5.5.2",
|
|
40
|
+
"@babel/runtime": "^7.11.2",
|
|
41
|
+
"@core-rc/rc-select": "^0.0.8",
|
|
42
|
+
"@ctrl/tinycolor": "^3.6.1",
|
|
43
|
+
"@faker-js/faker": "^9.5.0",
|
|
44
|
+
"@floating-ui/react": "^0.27.5",
|
|
45
|
+
"@rc-component/color-picker": "^2.0.1",
|
|
46
|
+
"@rc-component/father-plugin": "^2.0.1",
|
|
47
|
+
"@rc-component/trigger": "^2.0.0",
|
|
48
|
+
"@rc-component/util": "^1.0.1",
|
|
49
|
+
"@types/react-resizable": "^3.0.8",
|
|
50
|
+
"@types/styled-components": "^5.1.34",
|
|
51
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
52
|
+
"antd": "^5.24.1",
|
|
53
|
+
"antd-style": "^3.7.1",
|
|
54
|
+
"becoxy-icons": "^2.0.1",
|
|
55
|
+
"classnames": "^2.3.1",
|
|
56
|
+
"dayjs": "^1.11.13",
|
|
57
|
+
"lodash": "^4.17.21",
|
|
58
|
+
"moment": "^2.30.1",
|
|
59
|
+
"postcss": "^8.4.35",
|
|
60
|
+
"rc-checkbox": "^3.5.0",
|
|
61
|
+
"rc-dropdown": "^4.2.1",
|
|
62
|
+
"rc-field-form": "^2.6.0",
|
|
63
|
+
"rc-master-ui": "^1.1.21",
|
|
64
|
+
"rc-select": "^14.16.3",
|
|
65
|
+
"rc-tooltip": "^6.3.0",
|
|
66
|
+
"rc-tree": "^5.10.1",
|
|
67
|
+
"rc-tree-select": "^5.24.5",
|
|
68
|
+
"react-hook-form": "^7.54.2",
|
|
69
|
+
"react-hot-toast": "^2.5.2",
|
|
70
|
+
"react-numeric-component": "^1.0.7",
|
|
71
|
+
"react-resizable": "^3.0.5",
|
|
72
|
+
"sass": "^1.81.0",
|
|
73
|
+
"styled-components": "^6.1.15",
|
|
74
|
+
"throttle-debounce": "^5.0.2",
|
|
75
|
+
"vitest": "^2.0.5"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/cli": "^7.26.4",
|
|
79
|
+
"@babel/preset-env": "^7.26.9",
|
|
80
|
+
"@rc-component/np": "^1.0.3",
|
|
81
|
+
"@testing-library/react": "^14.0.0",
|
|
82
|
+
"@types/jest": "^29.4.0",
|
|
83
|
+
"@types/react": "^18.0.26",
|
|
84
|
+
"@types/react-dom": "^18.0.10",
|
|
85
|
+
"@types/warning": "^3.0.0",
|
|
86
|
+
"cross-env": "^7.0.0",
|
|
87
|
+
"dumi": "^2.2.13",
|
|
88
|
+
"eslint": "^8.56.0",
|
|
89
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
90
|
+
"father": "^4.0.0",
|
|
91
|
+
"gh-pages": "^3.1.0",
|
|
92
|
+
"less": "^4.1.1",
|
|
93
|
+
"np": "^7.1.0",
|
|
94
|
+
"rc-test": "^7.0.9",
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0",
|
|
97
|
+
"typescript": "^4.0.5"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"react": ">=16.9.0",
|
|
101
|
+
"react-dom": ">=16.9.0"
|
|
102
|
+
},
|
|
103
|
+
"umi": {
|
|
104
|
+
"configFile": "config.ts"
|
|
105
|
+
}
|
|
106
|
+
}
|