@jiaozhiye/qm-design-react 1.10.10 → 1.10.12
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/lib/cropper/src/cropper.d.ts +4 -165
- package/lib/form/src/fields-filter.d.ts +2 -22
- package/lib/form/src/types.d.ts +2 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/search-tree/src/search-tree.d.ts +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/table/src/edit/index.d.ts +1 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +3 -4
- package/lib/table/src/table/types.d.ts +1 -1
- package/lib/table/src/utils/index.d.ts +4 -1
- package/lib/upload-file/src/upload-file.d.ts +1 -1
- package/package.json +139 -139
package/lib/scrollbar/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
3
3
|
import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
|
|
4
|
-
import type
|
|
4
|
+
import { type TreeProps } from '../../antd';
|
|
5
5
|
type IProps = TreeProps<IRecord> & {
|
|
6
6
|
size?: ComponentSize;
|
|
7
7
|
filterable?: boolean;
|
package/lib/signature/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
|
-
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps,
|
|
3
|
+
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IDerivedRowKeys } from '../table/types';
|
|
4
4
|
import type { ComponentSize } from '../../../_utils/types';
|
|
5
5
|
type IExtra = {
|
|
6
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -8,14 +8,13 @@ type IExtra = {
|
|
|
8
8
|
$size: ComponentSize;
|
|
9
9
|
scrollX: boolean;
|
|
10
10
|
pagination: IPagination;
|
|
11
|
-
selectionKeys:
|
|
12
|
-
rowExpandedKeys:
|
|
11
|
+
selectionKeys: IDerivedRowKeys;
|
|
12
|
+
rowExpandedKeys: IDerivedRowKeys;
|
|
13
13
|
highlightKey: IRowKey;
|
|
14
14
|
summationRows: Record<string, number | string>[];
|
|
15
15
|
showSummary: boolean;
|
|
16
16
|
isWebPagination: boolean;
|
|
17
17
|
isScrollPagination: boolean;
|
|
18
|
-
isTreeTable: boolean;
|
|
19
18
|
checkDataIndex: () => void;
|
|
20
19
|
toLastPage: () => void;
|
|
21
20
|
toFirstPage: () => void;
|
|
@@ -15,7 +15,7 @@ export type IRecord<T = any> = {
|
|
|
15
15
|
};
|
|
16
16
|
export type getRowKeyType = (row: IRecord, index: number) => string | number;
|
|
17
17
|
export type IRowKey = ReturnType<getRowKeyType>;
|
|
18
|
-
export type
|
|
18
|
+
export type IDerivedRowKeys = IRowKey[] & {
|
|
19
19
|
__prevent__?: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare const DEFAULT_DISTANCE = 10;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import dayjs, { Dayjs } from 'dayjs';
|
|
3
|
-
import type { IColumn, IDerivedRowKey, IRecord, IRowKey, ISorter } from '../table/types';
|
|
3
|
+
import type { IColumn, IDerivedRowKey, IDerivedRowKeys, IRecord, IRowKey, ISorter } from '../table/types';
|
|
4
4
|
import type { Nullable, AnyObject } from '../../../_utils/types';
|
|
5
5
|
export declare const columnsFlatMap: (columns: IColumn[]) => IColumn[];
|
|
6
6
|
export declare const createFilterColumns: (columns: IColumn[]) => IColumn[];
|
|
@@ -14,6 +14,9 @@ export declare const deepFindRowKey: (rowKeys: IDerivedRowKey[], mark: IRowKey)
|
|
|
14
14
|
export declare const tableDataFlatMap: (list: IRecord[]) => IRecord[];
|
|
15
15
|
export declare const getAllTableData: (list: IRecord[]) => IRecord[];
|
|
16
16
|
export declare const convertToRows: (columns: IColumn[]) => IColumn[][];
|
|
17
|
+
export declare const deepGetTreeRows: (treeData: IRecord[], fn: (row: IRecord) => boolean) => IRecord<any>[];
|
|
18
|
+
export declare const createPreventKeys: (rowKeys: IDerivedRowKeys) => IDerivedRowKeys;
|
|
19
|
+
export declare const deletePreventKey: (rowKeys: IDerivedRowKeys) => void;
|
|
17
20
|
export declare const getNodeOffset: (el: Nullable<HTMLElement>, container: HTMLElement, rest?: {
|
|
18
21
|
left: number;
|
|
19
22
|
top: number;
|
|
@@ -17,7 +17,7 @@ type IProps = Omit<UploadProps, 'onPreview'> & {
|
|
|
17
17
|
readOnly?: boolean;
|
|
18
18
|
draggable?: boolean;
|
|
19
19
|
editable?: boolean;
|
|
20
|
-
batchDownload?: (fileList: UploadFile[]) => Promise<void> | boolean;
|
|
20
|
+
batchDownload?: ((fileList: UploadFile[]) => Promise<void>) | boolean;
|
|
21
21
|
fileDirection?: 'horizontal' | 'vertical';
|
|
22
22
|
downloadWithHeaders?: boolean | HttpRequestHeader;
|
|
23
23
|
button?: {
|
package/package.json
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.10.
|
|
4
|
-
"description": "A Component Library for React",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"React",
|
|
7
|
-
"components",
|
|
8
|
-
"typescript"
|
|
9
|
-
],
|
|
10
|
-
"author": "jiaozhiye",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
|
|
14
|
-
"build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
|
|
15
|
-
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
|
|
16
|
-
"build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
|
|
17
|
-
"build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
|
|
18
|
-
"build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
|
|
19
|
-
"build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
|
|
20
|
-
"clean:lib": "rimraf lib",
|
|
21
|
-
"lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
|
|
22
|
-
"lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
|
|
23
|
-
"format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
|
|
24
|
-
},
|
|
25
|
-
"husky": {
|
|
26
|
-
"hooks": {
|
|
27
|
-
"pre-commit": "lint-staged"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"packages/**/*.{js,ts,jsx,tsx}": [
|
|
32
|
-
"npm run lint-fix",
|
|
33
|
-
"git add"
|
|
34
|
-
],
|
|
35
|
-
"packages/**/*.{less}": "prettier --write"
|
|
36
|
-
},
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"registry": "https://registry.npmjs.org/"
|
|
39
|
-
},
|
|
40
|
-
"files": [
|
|
41
|
-
"lib"
|
|
42
|
-
],
|
|
43
|
-
"main": "lib/index.js",
|
|
44
|
-
"module": "lib/index.esm.js",
|
|
45
|
-
"unpkg": "lib/index.full.js",
|
|
46
|
-
"types": "lib/index.d.ts",
|
|
47
|
-
"style": "lib/style/index.css",
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"react": ">=16.14.0",
|
|
50
|
-
"react-dom": ">=16.14.0"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@rc-component/portal": "^1.1.2",
|
|
54
|
-
"@rc-component/trigger": "^2.2.0",
|
|
55
|
-
"add-dom-event-listener": "^1.1.0",
|
|
56
|
-
"antd": "4.24.16",
|
|
57
|
-
"big.js": "^6.2.1",
|
|
58
|
-
"china-area-data": "^5.0.1",
|
|
59
|
-
"classnames": "^2.3.2",
|
|
60
|
-
"copy-to-clipboard": "^3.3.2",
|
|
61
|
-
"cropperjs": "^1.5.12",
|
|
62
|
-
"dayjs": "1.x",
|
|
63
|
-
"exceljs": "^4.4.0",
|
|
64
|
-
"html2canvas": "^1.4.1",
|
|
65
|
-
"localforage": "^1.10.0",
|
|
66
|
-
"lodash-es": "^4.17.21",
|
|
67
|
-
"memoize-one": "^6.0.0",
|
|
68
|
-
"prop-types": "^15.8.1",
|
|
69
|
-
"react-countup": "^6.4.0",
|
|
70
|
-
"react-draggable": "^4.4.6",
|
|
71
|
-
"react-sortablejs": "^6.1.4",
|
|
72
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
73
|
-
"scroll-into-view-if-needed": "^2.2.31",
|
|
74
|
-
"sortablejs": "^1.15.2"
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.24.7",
|
|
78
|
-
"@babel/core": "^7.24.7",
|
|
79
|
-
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
80
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
81
|
-
"@babel/plugin-transform-class-properties": "^7.24.7",
|
|
82
|
-
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
83
|
-
"@babel/preset-env": "^7.24.7",
|
|
84
|
-
"@babel/preset-react": "^7.24.7",
|
|
85
|
-
"@babel/preset-typescript": "^7.24.7",
|
|
86
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
87
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
88
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
89
|
-
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
90
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
91
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
92
|
-
"@rollup/plugin-typescript": "^8.5.0",
|
|
93
|
-
"@types/lodash-es": "^4.17.6",
|
|
94
|
-
"@types/react": "^18.3.0",
|
|
95
|
-
"@types/react-dom": "^18.3.0",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
97
|
-
"@typescript-eslint/parser": "^5.30.0",
|
|
98
|
-
"autoprefixer": "^10.4.14",
|
|
99
|
-
"axios": "^0.27.2",
|
|
100
|
-
"babel-loader": "^9.1.3",
|
|
101
|
-
"core-js": "^3.32.0",
|
|
102
|
-
"cp-cli": "^2.0.0",
|
|
103
|
-
"cross-env": "^7.0.3",
|
|
104
|
-
"css-loader": "^6.11.0",
|
|
105
|
-
"eslint": "^8.40.0",
|
|
106
|
-
"eslint-plugin-prettier": "^4.2.0",
|
|
107
|
-
"eslint-plugin-react": "^7.32.0",
|
|
108
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
109
|
-
"eslint-webpack-plugin": "^3.2.0",
|
|
110
|
-
"gulp": "^4.0.2",
|
|
111
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
112
|
-
"gulp-clean-css": "^4.3.0",
|
|
113
|
-
"gulp-ignore": "^3.0.0",
|
|
114
|
-
"gulp-less": "^5.0.0",
|
|
115
|
-
"gulp-rename": "^2.0.0",
|
|
116
|
-
"gulp-typescript": "^6.0.0-alpha.1",
|
|
117
|
-
"html-webpack-plugin": "^5.6.0",
|
|
118
|
-
"husky": "^4.3.8",
|
|
119
|
-
"less": "^4.2.0",
|
|
120
|
-
"less-loader": "^11.1.4",
|
|
121
|
-
"lint-staged": "^10.5.4",
|
|
122
|
-
"mockjs": "^1.1.0",
|
|
123
|
-
"prettier": "^2.8.8",
|
|
124
|
-
"react": "^17.0.2",
|
|
125
|
-
"react-dom": "^17.0.2",
|
|
126
|
-
"rimraf": "^3.0.2",
|
|
127
|
-
"rollup": "^2.79.1",
|
|
128
|
-
"style-loader": "^3.3.4",
|
|
129
|
-
"ts-loader": "^9.4.4",
|
|
130
|
-
"typescript": "^4.9.5",
|
|
131
|
-
"webpack": "^5.94.0",
|
|
132
|
-
"webpack-cli": "^5.1.4",
|
|
133
|
-
"webpack-dev-server": "^4.15.2",
|
|
134
|
-
"webpack-node-externals": "^3.0.0"
|
|
135
|
-
},
|
|
136
|
-
"engines": {
|
|
137
|
-
"node": ">= 14"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
+
"version": "1.10.12",
|
|
4
|
+
"description": "A Component Library for React",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"React",
|
|
7
|
+
"components",
|
|
8
|
+
"typescript"
|
|
9
|
+
],
|
|
10
|
+
"author": "jiaozhiye",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
|
|
14
|
+
"build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
|
|
15
|
+
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
|
|
16
|
+
"build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
|
|
17
|
+
"build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
|
|
18
|
+
"build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
|
|
19
|
+
"build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
|
|
20
|
+
"clean:lib": "rimraf lib",
|
|
21
|
+
"lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
|
|
22
|
+
"lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
|
|
23
|
+
"format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "lint-staged"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"packages/**/*.{js,ts,jsx,tsx}": [
|
|
32
|
+
"npm run lint-fix",
|
|
33
|
+
"git add"
|
|
34
|
+
],
|
|
35
|
+
"packages/**/*.{less}": "prettier --write"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"lib"
|
|
42
|
+
],
|
|
43
|
+
"main": "lib/index.js",
|
|
44
|
+
"module": "lib/index.esm.js",
|
|
45
|
+
"unpkg": "lib/index.full.js",
|
|
46
|
+
"types": "lib/index.d.ts",
|
|
47
|
+
"style": "lib/style/index.css",
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=16.14.0",
|
|
50
|
+
"react-dom": ">=16.14.0"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@rc-component/portal": "^1.1.2",
|
|
54
|
+
"@rc-component/trigger": "^2.2.0",
|
|
55
|
+
"add-dom-event-listener": "^1.1.0",
|
|
56
|
+
"antd": "4.24.16",
|
|
57
|
+
"big.js": "^6.2.1",
|
|
58
|
+
"china-area-data": "^5.0.1",
|
|
59
|
+
"classnames": "^2.3.2",
|
|
60
|
+
"copy-to-clipboard": "^3.3.2",
|
|
61
|
+
"cropperjs": "^1.5.12",
|
|
62
|
+
"dayjs": "1.x",
|
|
63
|
+
"exceljs": "^4.4.0",
|
|
64
|
+
"html2canvas": "^1.4.1",
|
|
65
|
+
"localforage": "^1.10.0",
|
|
66
|
+
"lodash-es": "^4.17.21",
|
|
67
|
+
"memoize-one": "^6.0.0",
|
|
68
|
+
"prop-types": "^15.8.1",
|
|
69
|
+
"react-countup": "^6.4.0",
|
|
70
|
+
"react-draggable": "^4.4.6",
|
|
71
|
+
"react-sortablejs": "^6.1.4",
|
|
72
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
73
|
+
"scroll-into-view-if-needed": "^2.2.31",
|
|
74
|
+
"sortablejs": "^1.15.2"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/cli": "^7.24.7",
|
|
78
|
+
"@babel/core": "^7.24.7",
|
|
79
|
+
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
80
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
81
|
+
"@babel/plugin-transform-class-properties": "^7.24.7",
|
|
82
|
+
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
83
|
+
"@babel/preset-env": "^7.24.7",
|
|
84
|
+
"@babel/preset-react": "^7.24.7",
|
|
85
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
86
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
87
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
88
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
89
|
+
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
90
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
91
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
92
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
93
|
+
"@types/lodash-es": "^4.17.6",
|
|
94
|
+
"@types/react": "^18.3.0",
|
|
95
|
+
"@types/react-dom": "^18.3.0",
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
97
|
+
"@typescript-eslint/parser": "^5.30.0",
|
|
98
|
+
"autoprefixer": "^10.4.14",
|
|
99
|
+
"axios": "^0.27.2",
|
|
100
|
+
"babel-loader": "^9.1.3",
|
|
101
|
+
"core-js": "^3.32.0",
|
|
102
|
+
"cp-cli": "^2.0.0",
|
|
103
|
+
"cross-env": "^7.0.3",
|
|
104
|
+
"css-loader": "^6.11.0",
|
|
105
|
+
"eslint": "^8.40.0",
|
|
106
|
+
"eslint-plugin-prettier": "^4.2.0",
|
|
107
|
+
"eslint-plugin-react": "^7.32.0",
|
|
108
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
109
|
+
"eslint-webpack-plugin": "^3.2.0",
|
|
110
|
+
"gulp": "^4.0.2",
|
|
111
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
112
|
+
"gulp-clean-css": "^4.3.0",
|
|
113
|
+
"gulp-ignore": "^3.0.0",
|
|
114
|
+
"gulp-less": "^5.0.0",
|
|
115
|
+
"gulp-rename": "^2.0.0",
|
|
116
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
117
|
+
"html-webpack-plugin": "^5.6.0",
|
|
118
|
+
"husky": "^4.3.8",
|
|
119
|
+
"less": "^4.2.0",
|
|
120
|
+
"less-loader": "^11.1.4",
|
|
121
|
+
"lint-staged": "^10.5.4",
|
|
122
|
+
"mockjs": "^1.1.0",
|
|
123
|
+
"prettier": "^2.8.8",
|
|
124
|
+
"react": "^17.0.2",
|
|
125
|
+
"react-dom": "^17.0.2",
|
|
126
|
+
"rimraf": "^3.0.2",
|
|
127
|
+
"rollup": "^2.79.1",
|
|
128
|
+
"style-loader": "^3.3.4",
|
|
129
|
+
"ts-loader": "^9.4.4",
|
|
130
|
+
"typescript": "^4.9.5",
|
|
131
|
+
"webpack": "^5.94.0",
|
|
132
|
+
"webpack-cli": "^5.1.4",
|
|
133
|
+
"webpack-dev-server": "^4.15.2",
|
|
134
|
+
"webpack-node-externals": "^3.0.0"
|
|
135
|
+
},
|
|
136
|
+
"engines": {
|
|
137
|
+
"node": ">= 14"
|
|
138
|
+
}
|
|
139
|
+
}
|