es-grid-template 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/grid-component/AdvanceFilter.d.ts +11 -7
- package/es/grid-component/AdvanceFilter.js +419 -509
- package/es/grid-component/EditableCell.d.ts +2 -2
- package/es/grid-component/TableGrid.js +11 -2
- package/es/grid-component/checkbox-control/index.d.ts +13 -0
- package/es/grid-component/checkbox-control/index.js +40 -0
- package/es/grid-component/hooks/columns/index.d.ts +2 -2
- package/es/grid-component/hooks/columns/index.js +6 -1
- package/es/grid-component/hooks/utils.d.ts +6 -5
- package/es/grid-component/hooks/utils.js +7 -1
- package/es/grid-component/type.d.ts +3 -17
- package/lib/grid-component/AdvanceFilter.d.ts +11 -7
- package/lib/grid-component/AdvanceFilter.js +415 -506
- package/lib/grid-component/EditableCell.d.ts +2 -2
- package/lib/grid-component/TableGrid.js +11 -2
- package/lib/grid-component/checkbox-control/index.d.ts +13 -0
- package/lib/grid-component/checkbox-control/index.js +48 -0
- package/lib/grid-component/hooks/columns/index.d.ts +2 -2
- package/lib/grid-component/hooks/columns/index.js +6 -1
- package/lib/grid-component/hooks/utils.d.ts +6 -5
- package/lib/grid-component/hooks/utils.js +10 -3
- package/lib/grid-component/type.d.ts +3 -17
- package/package.json +108 -108
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ColumnTable, IFormat } from "./type";
|
|
3
3
|
import type { EditType } from "rc-master-ui";
|
|
4
4
|
interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
t?: any;
|
|
@@ -10,7 +10,7 @@ interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement>
|
|
|
10
10
|
record: DataType;
|
|
11
11
|
index: number;
|
|
12
12
|
format?: IFormat;
|
|
13
|
-
column:
|
|
13
|
+
column: ColumnTable<DataType>;
|
|
14
14
|
indexRow: number;
|
|
15
15
|
indexCol: number;
|
|
16
16
|
rowKey: any;
|
|
@@ -20,6 +20,7 @@ var _pagination = _interopRequireDefault(require("rc-master-ui/es/pagination"));
|
|
|
20
20
|
var _LoadingSpinner = _interopRequireDefault(require("./LoadingSpinner"));
|
|
21
21
|
var _ColumnsChoose = require("./ColumnsChoose");
|
|
22
22
|
var _useMergedState = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));
|
|
23
|
+
var _AdvanceFilter = _interopRequireDefault(require("./AdvanceFilter"));
|
|
23
24
|
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); }
|
|
24
25
|
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; }
|
|
25
26
|
// import {ConfigProvider} from "antd";
|
|
@@ -112,6 +113,7 @@ const TableGrid = props => {
|
|
|
112
113
|
recordDoubleClick,
|
|
113
114
|
toolbarItems,
|
|
114
115
|
showColumnChoose,
|
|
116
|
+
showAdvanceFilter,
|
|
115
117
|
onFilter,
|
|
116
118
|
selectionSettings,
|
|
117
119
|
rowSelection,
|
|
@@ -403,7 +405,8 @@ const TableGrid = props => {
|
|
|
403
405
|
style: {
|
|
404
406
|
display: 'flex',
|
|
405
407
|
justifyContent: 'space-between',
|
|
406
|
-
alignItems: 'center'
|
|
408
|
+
alignItems: 'center',
|
|
409
|
+
gap: '.75rem'
|
|
407
410
|
}
|
|
408
411
|
}, groupAble && groupToolbar?.(), toolbarItems && toolbarItems?.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
409
412
|
style: {
|
|
@@ -420,7 +423,8 @@ const TableGrid = props => {
|
|
|
420
423
|
style: {
|
|
421
424
|
display: 'flex',
|
|
422
425
|
justifyContent: 'space-between',
|
|
423
|
-
alignItems: 'center'
|
|
426
|
+
alignItems: 'center',
|
|
427
|
+
gap: '.75rem'
|
|
424
428
|
}
|
|
425
429
|
}, pagination && pagination.onChange && pagination?.position && pagination?.position[0] === 'topRight' && /*#__PURE__*/_react.default.createElement(_pagination.default, (0, _extends2.default)({
|
|
426
430
|
showSizeChanger: true,
|
|
@@ -435,6 +439,11 @@ const TableGrid = props => {
|
|
|
435
439
|
t: t,
|
|
436
440
|
columnsGroup: groupColumns,
|
|
437
441
|
triggerChangeColumns: triggerChangeColumns
|
|
442
|
+
}), showAdvanceFilter && /*#__PURE__*/_react.default.createElement(_AdvanceFilter.default, {
|
|
443
|
+
columns: columns,
|
|
444
|
+
t: t
|
|
445
|
+
// columnsGroup={groupColumns}
|
|
446
|
+
// triggerChangeColumns={triggerChangeColumns}
|
|
438
447
|
}))));
|
|
439
448
|
},
|
|
440
449
|
expandable: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type OptionType = {
|
|
3
|
+
value: any;
|
|
4
|
+
label: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
type Props<T> = {
|
|
8
|
+
options: T[];
|
|
9
|
+
value: any[];
|
|
10
|
+
onChange?: (value: any[]) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const CheckboxControl: <T extends OptionType>(props: Props<T>) => React.JSX.Element;
|
|
13
|
+
export default CheckboxControl;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _rcMasterUi = require("rc-master-ui");
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
const CheckboxControl = props => {
|
|
12
|
+
const {
|
|
13
|
+
options,
|
|
14
|
+
value,
|
|
15
|
+
onChange
|
|
16
|
+
} = props;
|
|
17
|
+
const selected = (0, _react.useMemo)(() => {
|
|
18
|
+
return value ? value : [];
|
|
19
|
+
}, [value]);
|
|
20
|
+
const list = (0, _react.useMemo)(() => {
|
|
21
|
+
return options ? options : [];
|
|
22
|
+
}, [options]);
|
|
23
|
+
const onChangeValue = val => {
|
|
24
|
+
const findIndex = selected.findIndex(it => it === val);
|
|
25
|
+
if (findIndex > -1) {
|
|
26
|
+
const newVal = selected.filter(it => it !== val);
|
|
27
|
+
onChange?.(newVal);
|
|
28
|
+
} else {
|
|
29
|
+
const newVal = [...selected, val];
|
|
30
|
+
onChange?.(newVal);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: "d-flex flex-column gap-50",
|
|
35
|
+
style: {}
|
|
36
|
+
}, list.map((it, index) => {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
key: index,
|
|
39
|
+
className: "d-flex align-items-center"
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_rcMasterUi.Checkbox, {
|
|
41
|
+
checked: selected.includes(it.value),
|
|
42
|
+
type: "checkbox",
|
|
43
|
+
className: "cursor-pointer me-50",
|
|
44
|
+
onChange: () => onChangeValue(it.value)
|
|
45
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, it.label));
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = CheckboxControl;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ColumnType, IFormat } from "../../type";
|
|
1
|
+
import type { ColumnTable, ColumnType, IFormat } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { TableLocale } from "rc-master-ui/lib/table/interface";
|
|
4
4
|
import type { ColumnsTable } from "../../type";
|
|
5
5
|
export declare function flatColumns<RecordType>(columns: ColumnsTable<RecordType>, parentKey?: string): ColumnsTable<RecordType>;
|
|
6
6
|
export declare function flatColumns2<RecordType>(columns: ColumnsTable<RecordType>): ColumnsTable<RecordType>;
|
|
7
7
|
export declare const getValueCell: <T>(column: ColumnType<T>, value: any, format?: IFormat) => any;
|
|
8
|
-
export declare const renderContent: (column:
|
|
8
|
+
export declare const renderContent: (column: ColumnTable, value: any, record: any, index: number, format?: IFormat) => React.JSX.Element;
|
|
9
9
|
export declare const renderFilter: <RecordType>(column: ColumnType<RecordType>, selectedKeys: string[], setSelectedKeys: any, confirm: any, visible: boolean, searchValue: string, setSearchValue: any, dataSourceFilter: any[], buddhistLocale: any, locale?: TableLocale, t?: any) => React.JSX.Element;
|
|
@@ -130,7 +130,12 @@ exports.getValueCell = getValueCell;
|
|
|
130
130
|
const renderContent = (column, value, record, index, format) => {
|
|
131
131
|
const cellValue = value instanceof Date ? (0, _utils.getDateString)(column, value) : value;
|
|
132
132
|
const content = getValueCell(column, cellValue, format);
|
|
133
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, column?.template ? typeof column.template === "function" ? column.template(
|
|
133
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, column?.template ? typeof column.template === "function" ? column.template({
|
|
134
|
+
value,
|
|
135
|
+
index,
|
|
136
|
+
rowData: record,
|
|
137
|
+
field: column.field
|
|
138
|
+
}) : column.template : content);
|
|
134
139
|
};
|
|
135
140
|
exports.renderContent = renderContent;
|
|
136
141
|
const renderFilter = (column, selectedKeys, setSelectedKeys, confirm, visible, searchValue, setSearchValue, dataSourceFilter, buddhistLocale, locale, t) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
3
|
import type { EditType, IColumnType, TypeFilter } from "rc-master-ui";
|
|
4
|
-
import type {
|
|
4
|
+
import type { ColumnsType, ColumnTable, GetRowKey } from "../type";
|
|
5
5
|
import type { SelectionSettings } from "../type";
|
|
6
6
|
import type { AnyObject } from "../type";
|
|
7
7
|
import type { Key } from "react";
|
|
@@ -26,8 +26,8 @@ export declare const customWeekStartEndFormat: (value: any, weekFormat: string)
|
|
|
26
26
|
export declare const getTypeFilter: (col: ColumnTable<any>) => TypeFilter;
|
|
27
27
|
export declare const updateArrayByKey: (arr: any[], element: any, key: string) => any[];
|
|
28
28
|
export declare const getDateString: <T>(column: ColumnTable<T>, value: any) => string;
|
|
29
|
-
export declare const getEditType: <T>(column:
|
|
30
|
-
export declare const isDisable: <T>(column:
|
|
29
|
+
export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
|
|
30
|
+
export declare const isDisable: <T>(column: ColumnTable<T>, rowData?: any) => boolean;
|
|
31
31
|
export declare const checkFieldKey: (key: string | undefined) => string;
|
|
32
32
|
export declare const convertLabelToTitle: (data: any[]) => any[];
|
|
33
33
|
export declare const convertArrayWithIndent: (inputArray: any[], parentIndent?: number) => any[];
|
|
@@ -64,8 +64,9 @@ export declare function addRows8(arr: any, n: number): {
|
|
|
64
64
|
};
|
|
65
65
|
export declare const transformColumns: <RecordType>(cols: ColumnsTable<RecordType>, convertColumns: any[], t?: any) => ColumnsTable<RecordType>;
|
|
66
66
|
export declare const transformColumns1: <RecordType>(cols: ColumnsTable<RecordType>, sortMultiple?: boolean) => ColumnsTable<RecordType>;
|
|
67
|
-
export declare const removeColumns: <RecordType>(columns:
|
|
67
|
+
export declare const removeColumns: <RecordType>(columns: ColumnTable<RecordType>[], groupColumns: string[]) => ColumnsTable<RecordType>;
|
|
68
68
|
export declare const convertFlatColumn: (array: ColumnsTable) => ColumnsTable[];
|
|
69
69
|
export declare const convertColumns: <RecordType>(cols: ColumnsTable<RecordType>) => ColumnsTable<RecordType>;
|
|
70
70
|
export declare const checkChild: (inputArray: any[]) => boolean;
|
|
71
|
-
export declare const isEditable: <RecordType>(column:
|
|
71
|
+
export declare const isEditable: <RecordType>(column: ColumnTable, rowData: RecordType) => boolean | ((rowData: any) => boolean);
|
|
72
|
+
export declare const isArraysEqual: (arr1: any[], arr2: any[]) => boolean;
|
|
@@ -10,7 +10,7 @@ exports.customWeekStartEndFormat = exports.countItemsBeforeIndex = exports.conve
|
|
|
10
10
|
exports.findAllChildrenKeys = findAllChildrenKeys;
|
|
11
11
|
exports.getFirstSelectCell = exports.getEditType = exports.getDefaultValue = exports.getDatepickerFormat = exports.getDateString = exports.getColumnsVisible = exports.getAllVisibleKeys = exports.genPresets = exports.flattenData = exports.flattenArray = exports.findItemByKey = void 0;
|
|
12
12
|
exports.getHiddenParentKeys = getHiddenParentKeys;
|
|
13
|
-
exports.updateData = exports.updateColumnsByGroup = exports.updateColumns = exports.updateArrayByKey = exports.transformColumns1 = exports.transformColumns = exports.totalFixedWidth = exports.sumDataByField = exports.removeColumns = exports.parseBooleanToValue = exports.newGuid = exports.isObjEmpty = exports.isNullOrUndefined = exports.isNameColor = exports.isEmpty = exports.isEditable = exports.isDisable = exports.isColor = exports.getVisibleColumnKeys = exports.getTypeFilter = exports.getTemplate = exports.getRowsPasteIndex = exports.getRowNumber = exports.getLastSelectCell = void 0;
|
|
13
|
+
exports.updateData = exports.updateColumnsByGroup = exports.updateColumns = exports.updateArrayByKey = exports.transformColumns1 = exports.transformColumns = exports.totalFixedWidth = exports.sumDataByField = exports.removeColumns = exports.parseBooleanToValue = exports.newGuid = exports.isObjEmpty = exports.isNullOrUndefined = exports.isNameColor = exports.isEmpty = exports.isEditable = exports.isDisable = exports.isColor = exports.isArraysEqual = exports.getVisibleColumnKeys = exports.getTypeFilter = exports.getTemplate = exports.getRowsPasteIndex = exports.getRowNumber = exports.getLastSelectCell = void 0;
|
|
14
14
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
15
15
|
var _moment = _interopRequireDefault(require("moment/moment"));
|
|
16
16
|
var _uuid = require("uuid");
|
|
@@ -760,7 +760,7 @@ const removeColumns = (columns, groupColumns) => {
|
|
|
760
760
|
const newCol = {
|
|
761
761
|
...column
|
|
762
762
|
};
|
|
763
|
-
if (newCol.
|
|
763
|
+
if (newCol?.children && newCol?.children.length > 0) {
|
|
764
764
|
newCol.children = removeColumns(newCol.children, groupColumns);
|
|
765
765
|
}
|
|
766
766
|
return newCol;
|
|
@@ -839,4 +839,11 @@ const isEditable = (column, rowData) => {
|
|
|
839
839
|
}
|
|
840
840
|
return column?.editEnable;
|
|
841
841
|
};
|
|
842
|
-
exports.isEditable = isEditable;
|
|
842
|
+
exports.isEditable = isEditable;
|
|
843
|
+
const isArraysEqual = (arr1, arr2) => {
|
|
844
|
+
if (arr1.length !== arr2.length) {
|
|
845
|
+
return false;
|
|
846
|
+
}
|
|
847
|
+
return arr1.every((element, index) => element === arr2[index]);
|
|
848
|
+
};
|
|
849
|
+
exports.isArraysEqual = isArraysEqual;
|
|
@@ -133,24 +133,9 @@ export type ColumnTemplate<RecordType> = {
|
|
|
133
133
|
index: number;
|
|
134
134
|
field: string;
|
|
135
135
|
};
|
|
136
|
-
export type ColumnEditType<RecordType = AnyObject> = Omit<ColumnType<RecordType>, 'children'> & {
|
|
137
|
-
editType?: EditType | ((rowData?: RecordType) => EditType);
|
|
138
|
-
disable?: boolean | ((rowData: any) => boolean);
|
|
139
|
-
editEnable?: boolean | ((rowData: any) => boolean);
|
|
140
|
-
isClearable?: boolean;
|
|
141
|
-
maxDate?: any;
|
|
142
|
-
minDate?: any;
|
|
143
|
-
maxTime?: any;
|
|
144
|
-
minTime?: any;
|
|
145
|
-
max?: number;
|
|
146
|
-
min?: number;
|
|
147
|
-
editSelectSettings?: IEditSelectSettings;
|
|
148
|
-
children?: ColumnEditType<RecordType>[];
|
|
149
|
-
};
|
|
150
136
|
export type ColumnsType<RecordType = AnyObject> = ColumnType<RecordType>[];
|
|
151
|
-
export type
|
|
152
|
-
export type
|
|
153
|
-
export type ColumnsTable<RecordType = AnyObject> = (ColumnType<RecordType> | ColumnEditType<RecordType>)[];
|
|
137
|
+
export type ColumnTable<RecordType = AnyObject> = ColumnType<RecordType>;
|
|
138
|
+
export type ColumnsTable<RecordType = AnyObject> = ColumnTable<RecordType>[];
|
|
154
139
|
export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, 'columns' | 'rowSelection' | 'loading' | 'dataSource' | 'summary'> {
|
|
155
140
|
editAble?: boolean;
|
|
156
141
|
groupAble?: boolean;
|
|
@@ -172,6 +157,7 @@ export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, '
|
|
|
172
157
|
recordDoubleClick?: (args: RecordDoubleClickEventArgs<RecordType>) => void;
|
|
173
158
|
toolbarItems?: ToolbarItem[];
|
|
174
159
|
showColumnChoose?: boolean;
|
|
160
|
+
showAdvanceFilter?: boolean;
|
|
175
161
|
onFilter?: (query: {
|
|
176
162
|
field: string;
|
|
177
163
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
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/*.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.22",
|
|
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
|
-
"sweetalert2": "^11.4.14",
|
|
75
|
-
"sweetalert2-react-content": "^5.0.0",
|
|
76
|
-
"throttle-debounce": "^5.0.2",
|
|
77
|
-
"vitest": "^2.0.5"
|
|
78
|
-
},
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@babel/cli": "^7.26.4",
|
|
81
|
-
"@babel/preset-env": "^7.26.9",
|
|
82
|
-
"@rc-component/np": "^1.0.3",
|
|
83
|
-
"@testing-library/react": "^14.0.0",
|
|
84
|
-
"@types/jest": "^29.4.0",
|
|
85
|
-
"@types/react": "^18.0.26",
|
|
86
|
-
"@types/react-dom": "^18.0.10",
|
|
87
|
-
"@types/warning": "^3.0.0",
|
|
88
|
-
"cross-env": "^7.0.0",
|
|
89
|
-
"dumi": "^2.2.13",
|
|
90
|
-
"eslint": "^8.56.0",
|
|
91
|
-
"eslint-plugin-unicorn": "^55.0.0",
|
|
92
|
-
"father": "^4.0.0",
|
|
93
|
-
"gh-pages": "^3.1.0",
|
|
94
|
-
"less": "^4.1.1",
|
|
95
|
-
"np": "^7.1.0",
|
|
96
|
-
"rc-test": "^7.0.9",
|
|
97
|
-
"react": "^18.2.0",
|
|
98
|
-
"react-dom": "^18.2.0",
|
|
99
|
-
"typescript": "^4.0.5"
|
|
100
|
-
},
|
|
101
|
-
"peerDependencies": {
|
|
102
|
-
"react": ">=16.9.0",
|
|
103
|
-
"react-dom": ">=16.9.0"
|
|
104
|
-
},
|
|
105
|
-
"umi": {
|
|
106
|
-
"configFile": "config.ts"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "es-grid-template",
|
|
3
|
+
"version": "1.2.8",
|
|
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.22",
|
|
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
|
+
"sweetalert2": "^11.4.14",
|
|
75
|
+
"sweetalert2-react-content": "^5.0.0",
|
|
76
|
+
"throttle-debounce": "^5.0.2",
|
|
77
|
+
"vitest": "^2.0.5"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@babel/cli": "^7.26.4",
|
|
81
|
+
"@babel/preset-env": "^7.26.9",
|
|
82
|
+
"@rc-component/np": "^1.0.3",
|
|
83
|
+
"@testing-library/react": "^14.0.0",
|
|
84
|
+
"@types/jest": "^29.4.0",
|
|
85
|
+
"@types/react": "^18.0.26",
|
|
86
|
+
"@types/react-dom": "^18.0.10",
|
|
87
|
+
"@types/warning": "^3.0.0",
|
|
88
|
+
"cross-env": "^7.0.0",
|
|
89
|
+
"dumi": "^2.2.13",
|
|
90
|
+
"eslint": "^8.56.0",
|
|
91
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
92
|
+
"father": "^4.0.0",
|
|
93
|
+
"gh-pages": "^3.1.0",
|
|
94
|
+
"less": "^4.1.1",
|
|
95
|
+
"np": "^7.1.0",
|
|
96
|
+
"rc-test": "^7.0.9",
|
|
97
|
+
"react": "^18.2.0",
|
|
98
|
+
"react-dom": "^18.2.0",
|
|
99
|
+
"typescript": "^4.0.5"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"react": ">=16.9.0",
|
|
103
|
+
"react-dom": ">=16.9.0"
|
|
104
|
+
},
|
|
105
|
+
"umi": {
|
|
106
|
+
"configFile": "config.ts"
|
|
107
|
+
}
|
|
108
|
+
}
|