@kdcloudjs/table 1.2.2-canary.19 → 1.2.2-canary.20

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.
Files changed (69) hide show
  1. package/LICENSE +568 -568
  2. package/README.md +111 -111
  3. package/dist/@kdcloudjs/table.css +1 -1
  4. package/dist/@kdcloudjs/table.js +760 -530
  5. package/dist/@kdcloudjs/table.js.map +1 -1
  6. package/dist/kd-ui-complete.less +777 -777
  7. package/es/_utils/usePopper.d.ts +1 -1
  8. package/es/style/color/colors.less +1 -1
  9. package/es/style/core/index.less +1 -1
  10. package/es/style/core/motion/other.less +27 -27
  11. package/es/style/core/motion/slide.less +53 -53
  12. package/es/style/core/motion.less +1 -1
  13. package/es/style/core/reset.less +185 -185
  14. package/es/style/index.less +1 -1
  15. package/es/style/mixins/index.less +18 -18
  16. package/es/style/mixins/overlay.less +21 -21
  17. package/es/style/mixins/reset.less +12 -12
  18. package/es/style/themes/default.less +445 -445
  19. package/es/table/base/colgroup.d.ts +2 -2
  20. package/es/table/base/empty.d.ts +1 -1
  21. package/es/table/base/globalStyleComponent.d.ts +2 -2
  22. package/es/table/base/header.d.ts +2 -2
  23. package/es/table/base/html-table.d.ts +2 -2
  24. package/es/table/base/loading.d.ts +1 -1
  25. package/es/table/base/table.d.ts +1 -1
  26. package/es/table/common-views.d.ts +4 -4
  27. package/es/table/internals.d.ts +1 -2
  28. package/es/table/pipeline/features/colGroupExtendable.js +17 -4
  29. package/es/table/pipeline/features/filter/DefaultFilterContent.d.ts +2 -2
  30. package/es/table/pipeline/features/filter/DefaultFilterIcon.d.ts +2 -2
  31. package/es/table/pipeline/features/filter/Filter.d.ts +1 -1
  32. package/es/table/pipeline/features/filter/FilterPanel.d.ts +2 -2
  33. package/es/table/pivot/cross-table/cross-table.d.ts +1 -1
  34. package/es/table/pivot/cross-tree-table/cross-tree-table.d.ts +1 -1
  35. package/es/table/style/index.less +1 -1
  36. package/lib/_utils/usePopper.d.ts +1 -1
  37. package/lib/style/color/colors.less +1 -1
  38. package/lib/style/components.less +1 -1
  39. package/lib/style/core/index.less +1 -1
  40. package/lib/style/core/motion/other.less +27 -27
  41. package/lib/style/core/motion/slide.less +53 -53
  42. package/lib/style/core/motion.less +1 -1
  43. package/lib/style/core/reset.less +185 -185
  44. package/lib/style/index.less +1 -1
  45. package/lib/style/mixins/index.less +18 -18
  46. package/lib/style/mixins/overlay.less +21 -21
  47. package/lib/style/mixins/reset.less +12 -12
  48. package/lib/style/themes/default.less +445 -445
  49. package/lib/table/base/colgroup.d.ts +2 -2
  50. package/lib/table/base/empty.d.ts +1 -1
  51. package/lib/table/base/globalStyleComponent.d.ts +2 -2
  52. package/lib/table/base/header.d.ts +2 -2
  53. package/lib/table/base/html-table.d.ts +2 -2
  54. package/lib/table/base/loading.d.ts +1 -1
  55. package/lib/table/base/table.d.ts +1 -1
  56. package/lib/table/common-views.d.ts +4 -4
  57. package/lib/table/internals.d.ts +1 -2
  58. package/lib/table/pipeline/features/colGroupExtendable.js +17 -4
  59. package/lib/table/pipeline/features/filter/DefaultFilterContent.d.ts +2 -2
  60. package/lib/table/pipeline/features/filter/DefaultFilterIcon.d.ts +2 -2
  61. package/lib/table/pipeline/features/filter/Filter.d.ts +1 -1
  62. package/lib/table/pipeline/features/filter/FilterPanel.d.ts +2 -2
  63. package/lib/table/pivot/cross-table/cross-table.d.ts +1 -1
  64. package/lib/table/pivot/cross-tree-table/cross-tree-table.d.ts +1 -1
  65. package/lib/table/style/index.less +1 -1
  66. package/package.json +219 -219
  67. package/dist/@kdcloudjs/table.min.css +0 -9
  68. package/dist/@kdcloudjs/table.min.js +0 -209
  69. package/dist/@kdcloudjs/table.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { VisibleColumnDescriptor } from './interfaces';
3
3
  export declare function Colgroup({ descriptors }: {
4
4
  descriptors: VisibleColumnDescriptor[];
5
- }): JSX.Element;
5
+ }): React.JSX.Element;
@@ -6,4 +6,4 @@ export interface EmptyTableProps {
6
6
  emptyCellHeight?: number;
7
7
  EmptyContent?: React.ComponentType;
8
8
  }
9
- export declare function EmptyHtmlTable({ descriptors, isLoading, emptyCellHeight, EmptyContent }: EmptyTableProps): JSX.Element;
9
+ export declare function EmptyHtmlTable({ descriptors, isLoading, emptyCellHeight, EmptyContent }: EmptyTableProps): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import { PureComponent } from 'react';
1
+ import React, { PureComponent } from 'react';
2
2
  interface GlobalStyleComponentProps {
3
3
  direction: string;
4
4
  }
5
5
  export default class GlobalStyleComponent extends PureComponent<GlobalStyleComponentProps> {
6
- render(): JSX.Element;
6
+ render(): React.JSX.Element;
7
7
  }
8
8
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { RenderInfo } from './interfaces';
3
3
  interface TableHeaderProps {
4
4
  info: RenderInfo;
@@ -6,5 +6,5 @@ interface TableHeaderProps {
6
6
  rowCount?: number;
7
7
  stickyRightOffset?: number;
8
8
  }
9
- export default function TableHeader({ info, theaderPosition, rowCount: _rowCount, stickyRightOffset }: TableHeaderProps): JSX.Element;
9
+ export default function TableHeader({ info, theaderPosition, rowCount: _rowCount, stickyRightOffset }: TableHeaderProps): React.JSX.Element;
10
10
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { RenderInfo } from './interfaces';
3
3
  import { BaseTableProps } from './table';
4
4
  export interface HtmlTableProps extends Required<Pick<BaseTableProps, 'getRowProps' | 'primaryKey'>> {
@@ -14,4 +14,4 @@ export interface HtmlTableProps extends Required<Pick<BaseTableProps, 'getRowPro
14
14
  };
15
15
  tbodyPosition?: 'left' | 'center' | 'right';
16
16
  }
17
- export declare function HtmlTable({ tbodyHtmlTag, getRowProps, primaryKey, stickyRightOffset, data, verticalRenderInfo: verInfo, horizontalRenderInfo: hozInfo, tbodyPosition }: HtmlTableProps): JSX.Element;
17
+ export declare function HtmlTable({ tbodyHtmlTag, getRowProps, primaryKey, stickyRightOffset, data, verticalRenderInfo: verInfo, horizontalRenderInfo: hozInfo, tbodyPosition }: HtmlTableProps): React.JSX.Element;
@@ -9,5 +9,5 @@ interface LoadingProps {
9
9
  LoadingContentWrapper?: React.ComponentType<LoadingContentWrapperProps>;
10
10
  LoadingIcon?: React.ComponentType;
11
11
  }
12
- export default function Loading({ visible, children, LoadingContentWrapper, LoadingIcon }: LoadingProps): JSX.Element;
12
+ export default function Loading({ visible, children, LoadingContentWrapper, LoadingIcon }: LoadingProps): React.JSX.Element;
13
13
  export {};
@@ -170,7 +170,7 @@ export declare class BaseTable extends React.Component<BaseTableProps, BaseTable
170
170
  private renderStickyScroll;
171
171
  private getScrollBarWidth;
172
172
  private getStickyScrollContainerStyle;
173
- render(): JSX.Element;
173
+ render(): React.JSX.Element;
174
174
  componentDidMount(): void;
175
175
  componentDidUpdate(prevProps: Readonly<BaseTableProps>, prevState: Readonly<BaseTableState>): void;
176
176
  private didMountOrUpdate;
@@ -10,10 +10,10 @@ interface IconProps extends React.SVGProps<SVGElement> {
10
10
  xmlns?: string;
11
11
  ref?: any;
12
12
  }
13
- declare function CaretDownIcon(props: IconProps): JSX.Element;
14
- declare function InfoIcon(props: IconProps): JSX.Element;
15
- declare function CaretRightIcon(props: IconProps): JSX.Element;
16
- declare function LoadingIcon(props: IconProps): JSX.Element;
13
+ declare function CaretDownIcon(props: IconProps): React.JSX.Element;
14
+ declare function InfoIcon(props: IconProps): React.JSX.Element;
15
+ declare function CaretRightIcon(props: IconProps): React.JSX.Element;
16
+ declare function LoadingIcon(props: IconProps): React.JSX.Element;
17
17
  export declare const icons: {
18
18
  Loading: typeof LoadingIcon;
19
19
  CaretDown: typeof CaretDownIcon;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ArtColumn } from './interfaces';
3
- declare function safeRenderHeader(column: ArtColumn): number | boolean | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactFragment;
2
+ declare function safeRenderHeader(column: ArtColumn): {};
4
3
  declare function safeGetValue(column: ArtColumn, record: any, rowIndex: number): any;
5
4
  declare function safeGetRowKey(primaryKey: string | ((record: any) => string), record: any, rowIndex: number): string;
6
5
  declare function safeGetCellProps(column: ArtColumn, record: any, rowIndex: number): import("./interfaces").CellProps;
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.colGroupExtendable = void 0;
8
- var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/splice"));
8
+ var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
9
+ var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
10
+ var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
9
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
10
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
11
13
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/taggedTemplateLiteral"));
@@ -86,11 +88,22 @@ var colGroupExtendable = exports.colGroupExtendable = function colGroupExtendabl
86
88
  return (0, _utils.makeRecursiveMapper)(function (col) {
87
89
  var _a;
88
90
  var _ref2 = (col === null || col === void 0 ? void 0 : col.features) || {},
89
- showExtendIcon = _ref2.showExtendIcon;
91
+ showExtendIcon = _ref2.showExtendIcon,
92
+ collapseDisplayFields = _ref2.collapseDisplayFields;
90
93
  if (showExtendIcon === true && ((_a = col.children) === null || _a === void 0 ? void 0 : _a.length) > 1) {
91
- var _context;
92
94
  col = addIcon(col);
93
- curState[col.code] === false && (0, _splice.default)(_context = col.children).call(_context, 1, col.children.length);
95
+ if (curState[col.code] === false) {
96
+ if (Array.isArray(collapseDisplayFields) && collapseDisplayFields.length > 0) {
97
+ var _context, _context2;
98
+ var filtered = (0, _filter.default)(_context = col.children).call(_context, function (child) {
99
+ return (0, _includes.default)(collapseDisplayFields).call(collapseDisplayFields, child.code);
100
+ });
101
+ col.children = filtered.length > 0 ? filtered : (0, _slice.default)(_context2 = col.children).call(_context2, 0, 1);
102
+ } else {
103
+ var _context3;
104
+ col.children = (0, _slice.default)(_context3 = col.children).call(_context3, 0, 1);
105
+ }
106
+ }
94
107
  }
95
108
  return col;
96
109
  })(columns);
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DefaultFilterPanelProps } from '../../../interfaces';
3
- declare function DefaultFilterContent({ setFilterModel, filterModel, hidePanel, localeText }: DefaultFilterPanelProps): JSX.Element;
3
+ declare function DefaultFilterContent({ setFilterModel, filterModel, hidePanel, localeText }: DefaultFilterPanelProps): React.JSX.Element;
4
4
  export default DefaultFilterContent;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export default function DefaultFilterIcon({ width, height }: {
3
3
  width: string | number;
4
4
  height: string | number;
5
- }): JSX.Element;
5
+ }): React.JSX.Element;
@@ -20,5 +20,5 @@ interface FilterProps {
20
20
  };
21
21
  direction?: string;
22
22
  }
23
- declare function Filter({ size, style, className, FilterPanelContent, filterIcon, setFilter, setFilterModel, filterModel, isFilterActive, stopClickEventPropagation, stopESCKeyDownEventPropagation, hideFilterPopupHeader, getPopupParent, localeText, direction }: FilterProps): JSX.Element;
23
+ declare function Filter({ size, style, className, FilterPanelContent, filterIcon, setFilter, setFilterModel, filterModel, isFilterActive, stopClickEventPropagation, stopESCKeyDownEventPropagation, hideFilterPopupHeader, getPopupParent, localeText, direction }: FilterProps): React.JSX.Element;
24
24
  export default Filter;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  interface PositionType {
3
3
  x: number;
4
4
  y: number;
@@ -19,5 +19,5 @@ declare function FilterPanel({ style, children, position, filterIcon, onClose, h
19
19
  onClose: any;
20
20
  hideFilterPopupHeader: any;
21
21
  direction: any;
22
- }): JSX.Element;
22
+ }): React.JSX.Element;
23
23
  export default FilterPanel;
@@ -14,5 +14,5 @@ export interface CrossTableProps extends Omit<TableProps, 'dataSource' | 'column
14
14
  render?(value: any, leftNode: LeftCrossTreeNode, topNode: TopCrossTreeNode, leftDepth: number, topDepth: number): React.ReactNode;
15
15
  getCellProps?(value: any, leftNode: LeftCrossTreeNode, topNode: TopCrossTreeNode, leftDepth: number, topDepth: number): CellProps;
16
16
  }
17
- declare const _default: ({ BaseTableComponent, leftTree, leftTotalNode, topTree, topTotalNode, getValue, getCellProps, leftMetaColumns, render, baseTableRef, ...others }: CrossTableProps) => JSX.Element;
17
+ declare const _default: ({ BaseTableComponent, leftTree, leftTotalNode, topTree, topTotalNode, getValue, getCellProps, leftMetaColumns, render, baseTableRef, ...others }: CrossTableProps) => React.JSX.Element;
18
18
  export default _default;
@@ -34,5 +34,5 @@ export default class CrossTreeTable extends React.Component<CrossTreeTableProps,
34
34
  };
35
35
  constructor(props: Readonly<CrossTreeTableProps>);
36
36
  onChangeOpenKeys: (nextOpenKeys: string[]) => void;
37
- render(): JSX.Element;
37
+ render(): React.JSX.Element;
38
38
  }
@@ -1 +1 @@
1
-
1
+
package/package.json CHANGED
@@ -1,219 +1,219 @@
1
- {
2
- "name": "@kdcloudjs/table",
3
- "version": "1.2.2-canary.19",
4
- "description": "金蝶 react table 组件",
5
- "title": "table",
6
- "keywords": [
7
- "table",
8
- "component",
9
- "react",
10
- "react-table",
11
- "react-component",
12
- "ui"
13
- ],
14
- "homepage": "https://react.kingdee.design/",
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/kdcloudone/table.git"
18
- },
19
- "contributors": [
20
- "kdcloudone"
21
- ],
22
- "files": [
23
- "dist",
24
- "lib",
25
- "es"
26
- ],
27
- "sideEffects": [
28
- "dist/*",
29
- "es/**/style/*",
30
- "lib/**/style/*",
31
- "*.less"
32
- ],
33
- "main": "lib/index.js",
34
- "module": "es/index.js",
35
- "unpkg": "dist/kd-ui.min.js",
36
- "typings": "lib/index.d.ts",
37
- "scripts": {
38
- "build": "npm run compile && cross-env NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
39
- "compile": "gulp compile",
40
- "dist": "node build/bin/dist.js",
41
- "clean": "rimraf _data && rimraf _site ",
42
- "site": "npm run tsc && bisheng build -c ./site/bisheng.config.js",
43
- "start": "npm run clean && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",
44
- "lint": "npm run tsc && npm run lint:script && npm run lint:style",
45
- "lint:script": "eslint --ext .tsx,.ts,.js,.jsx ./components ./site",
46
- "tsc": "tsc --noEmit",
47
- "lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
48
- "lint-fix:script": "npm run lint:script -- --fix",
49
- "lint-fix:style": "npm run lint:style -- --fix",
50
- "test": "jest --config .jest.js --cache=false",
51
- "test:all": "npm run lint && npm run test",
52
- "test:coverage": "npm run test -- --coverage",
53
- "test:report": "jest --config .jest.js --coverage & open ./coverage/lcov-report/index.html",
54
- "test:update": "jest --config .jest.js --cache=false -u",
55
- "test:ci": "jest --config .jest.js --coverage --ci --update-snapshot",
56
- "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --skip-unstable",
57
- "pub": "npm run test:all && npm run build && cross-env PUB_ENV=pub np --no-cleanup --no-tests",
58
- "pub:canary": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canary",
59
- "pub:canary-hotfix": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canaryHotFix",
60
- "new": "node scripts/create-component.js",
61
- "kd-ui": "npm install @kingdee-ui/kui --registry http://npm.kingdee.com/"
62
- },
63
- "browserslist": [
64
- "last 2 versions",
65
- "Firefox ESR",
66
- "> 1%",
67
- "ie >= 11"
68
- ],
69
- "dependencies": {
70
- "@babel/runtime": "^7.10.4",
71
- "@babel/runtime-corejs3": "^7.11.2",
72
- "@popperjs/core": "^2.9.1",
73
- "classnames": "^2.2.6",
74
- "core-js": "^3.16.1",
75
- "css-vars-ponyfill": "^2.4.3",
76
- "lodash": "^4.17.20",
77
- "regenerator-runtime": "^0.13.9",
78
- "resize-observer-polyfill": "^1.5.1",
79
- "rxjs": "^6.6.3",
80
- "styled-components": "^5.2.1"
81
- },
82
- "devDependencies": {
83
- "@babel/core": "^7.11.1",
84
- "@babel/plugin-proposal-export-namespace-from": "^7.10.4",
85
- "@babel/plugin-proposal-private-methods": "^7.10.4",
86
- "@babel/plugin-transform-object-assign": "^7.10.4",
87
- "@babel/plugin-transform-runtime": "^7.11.0",
88
- "@babel/preset-env": "^7.11.0",
89
- "@babel/preset-react": "^7.10.4",
90
- "@babel/preset-typescript": "^7.10.4",
91
- "@commitlint/config-conventional": "^9.1.2",
92
- "@kdcloudjs/kdesign": "^1.3.1",
93
- "@testing-library/react-hooks": "^7.0.2",
94
- "@types/classnames": "^2.2.10",
95
- "@types/enzyme": "^3.10.7",
96
- "@types/jest": "^26.0.14",
97
- "@types/jest-image-snapshot": "^4.1.0",
98
- "@types/lodash": "^4.14.159",
99
- "@types/puppeteer": "^3.0.2",
100
- "@types/react": "^16.9.21",
101
- "@types/react-dom": "^16.9.5",
102
- "@typescript-eslint/eslint-plugin": "^3.0.0",
103
- "@typescript-eslint/parser": "^3.0.0",
104
- "algoliasearch": "^4.5.1",
105
- "autoprefixer": "^9.8.6",
106
- "babel-eslint": "^10.0.1",
107
- "babel-loader": "^8.1.0",
108
- "babel-plugin-add-react-displayname": "^0.0.5",
109
- "babel-plugin-transform-class-properties": "^6.24.1",
110
- "bisheng": "^1.5.3",
111
- "bisheng-plugin-description": "^0.1.4",
112
- "bisheng-plugin-toc": "^0.4.4",
113
- "case-sensitive-paths-webpack-plugin": "^2.3.0",
114
- "chalk": "^4.1.0",
115
- "commitlint": "^9.1.2",
116
- "conventional-changelog-cli": "^2.1.0",
117
- "cross-env": "^7.0.2",
118
- "css-loader": "^4.2.1",
119
- "cz-customizable": "^6.3.0",
120
- "dekko": "^0.2.1",
121
- "enzyme": "^3.11.0",
122
- "enzyme-adapter-react-16": "^1.15.5",
123
- "enzyme-to-json": "^3.5.0",
124
- "esbuild-webpack-plugin": "^1.0.5",
125
- "eslint": "^7.6.0",
126
- "eslint-config-prettier": "^6.11.0",
127
- "eslint-config-prettier-standard": "^3.0.1",
128
- "eslint-config-standard": "^14.1.1",
129
- "eslint-loader": "^4.0.2",
130
- "eslint-plugin-babel": "^5.3.1",
131
- "eslint-plugin-import": "^2.22.0",
132
- "eslint-plugin-jest": "^23.20.0",
133
- "eslint-plugin-jsx-a11y": "^6.3.1",
134
- "eslint-plugin-markdown": "^2.0.0-rc.0",
135
- "eslint-plugin-node": "^11.1.0",
136
- "eslint-plugin-prettier": "^3.1.4",
137
- "eslint-plugin-promise": "^4.2.1",
138
- "eslint-plugin-react": "^7.20.5",
139
- "eslint-plugin-react-hooks": "^4.0.8",
140
- "eslint-plugin-standard": "^4.0.1",
141
- "file-loader": "^6.0.0",
142
- "gulp": "^4.0.2",
143
- "gulp-babel": "^8.0.0",
144
- "gulp-strip-code": "^0.1.4",
145
- "gulp-typescript": "^6.0.0-alpha.1",
146
- "husky": "^4.2.5",
147
- "identity-obj-proxy": "^3.0.0",
148
- "intersection-observer": "^0.11.0",
149
- "jest": "^26.4.2",
150
- "jest-environment-enzyme": "^7.1.2",
151
- "jest-enzyme": "^7.1.2",
152
- "jest-image-snapshot": "^4.2.0",
153
- "jest-stare": "^2.2.0",
154
- "jsonml.js": "^0.1.0",
155
- "less": "^3.12.2",
156
- "less-loader": "^6.2.0",
157
- "less-plugin-npm-import": "^2.1.0",
158
- "less-vars-to-js": "^1.3.0",
159
- "lint-staged": "^10.2.13",
160
- "merge2": "^1.4.1",
161
- "mini-css-extract-plugin": "^0.10.0",
162
- "mockdate": "^3.0.2",
163
- "node-fetch": "^2.6.1",
164
- "np": "^6.5.0",
165
- "omit.js": "^2.0.2",
166
- "optimize-css-assets-webpack-plugin": "^5.0.3",
167
- "post-loader": "^2.0.0",
168
- "postcss": "^7.0.32",
169
- "prettier": "^2.1.0",
170
- "prism-react-renderer": "^1.3.3",
171
- "react": "^16.13.0",
172
- "react-dom": "^16.13.0",
173
- "react-live": "^2.2.2",
174
- "rimraf": "^3.0.2",
175
- "scrollama": "^2.2.1",
176
- "simple-git": "^2.20.1",
177
- "standard-version": "^9.0.0",
178
- "stylelint": "^13.7.1",
179
- "stylelint-config-prettier": "^8.0.2",
180
- "stylelint-config-standard": "^20.0.0",
181
- "stylelint-declaration-block-no-ignored-properties": "^2.3.0",
182
- "through2": "^4.0.2",
183
- "ts-jest": "^26.4.0",
184
- "typescript": "~3.9.2",
185
- "uglifyjs-webpack-plugin": "^2.2.0",
186
- "url-loader": "^4.1.0",
187
- "webpack-bundle-analyzer": "^3.8.0",
188
- "webpack-cli": "^3.3.12",
189
- "webpack-dev-server": "^3.11.0",
190
- "webpack-filter-warnings-plugin": "^1.2.1",
191
- "webpack-merge": "^5.1.2",
192
- "webpackbar": "^4.0.0"
193
- },
194
- "peerDependencies": {
195
- "react": ">=16.9.0",
196
- "react-dom": ">=16.9.0"
197
- },
198
- "publishConfig": {
199
- "registry": "https://registry.npmjs.org/"
200
- },
201
- "tnpm": {
202
- "mode": "npm"
203
- },
204
- "lint-staged": {
205
- "*.{ts,tsx,js,jsx}": [
206
- "npm run lint:script",
207
- "prettier .prettierrc.js --write"
208
- ],
209
- "*.less": [
210
- "npm run lint:style"
211
- ]
212
- },
213
- "config": {
214
- "commitizen": {
215
- "path": "./node_modules/cz-customizable"
216
- }
217
- },
218
- "license": "Apache-2.0"
219
- }
1
+ {
2
+ "name": "@kdcloudjs/table",
3
+ "version": "1.2.2-canary.20",
4
+ "description": "金蝶 react table 组件",
5
+ "title": "table",
6
+ "keywords": [
7
+ "table",
8
+ "component",
9
+ "react",
10
+ "react-table",
11
+ "react-component",
12
+ "ui"
13
+ ],
14
+ "homepage": "https://react.kingdee.design/",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/kdcloudone/table.git"
18
+ },
19
+ "contributors": [
20
+ "kdcloudone"
21
+ ],
22
+ "files": [
23
+ "dist",
24
+ "lib",
25
+ "es"
26
+ ],
27
+ "sideEffects": [
28
+ "dist/*",
29
+ "es/**/style/*",
30
+ "lib/**/style/*",
31
+ "*.less"
32
+ ],
33
+ "main": "lib/index.js",
34
+ "module": "es/index.js",
35
+ "unpkg": "dist/kd-ui.min.js",
36
+ "typings": "lib/index.d.ts",
37
+ "scripts": {
38
+ "build": "npm run compile && cross-env NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
39
+ "compile": "gulp compile",
40
+ "dist": "node build/bin/dist.js",
41
+ "clean": "rimraf _data && rimraf _site ",
42
+ "site": "npm run tsc && bisheng build -c ./site/bisheng.config.js",
43
+ "start": "npm run clean && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",
44
+ "lint": "npm run tsc && npm run lint:script && npm run lint:style",
45
+ "lint:script": "eslint --ext .tsx,.ts,.js,.jsx ./components ./site",
46
+ "tsc": "tsc --noEmit",
47
+ "lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
48
+ "lint-fix:script": "npm run lint:script -- --fix",
49
+ "lint-fix:style": "npm run lint:style -- --fix",
50
+ "test": "jest --config .jest.js --cache=false",
51
+ "test:all": "npm run lint && npm run test",
52
+ "test:coverage": "npm run test -- --coverage",
53
+ "test:report": "jest --config .jest.js --coverage & open ./coverage/lcov-report/index.html",
54
+ "test:update": "jest --config .jest.js --cache=false -u",
55
+ "test:ci": "jest --config .jest.js --coverage --ci --update-snapshot",
56
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --skip-unstable",
57
+ "pub": "npm run test:all && npm run build && cross-env PUB_ENV=pub np --no-cleanup --no-tests",
58
+ "pub:canary": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canary --no-publish && echo. && echo ======================================== && echo 已完成构建、版本更新、git commit/tag/push && echo 请手动执行: npm publish --tag canary && echo ========================================",
59
+ "pub:canary-hotfix": "npm run build && cross-env PUB_ENV=pub np --no-cleanup --anyBranch --no-tests --tag=canaryHotFix",
60
+ "new": "node scripts/create-component.js",
61
+ "kd-ui": "npm install @kingdee-ui/kui --registry http://npm.kingdee.com/"
62
+ },
63
+ "browserslist": [
64
+ "last 2 versions",
65
+ "Firefox ESR",
66
+ "> 1%",
67
+ "ie >= 11"
68
+ ],
69
+ "dependencies": {
70
+ "@babel/runtime": "^7.10.4",
71
+ "@babel/runtime-corejs3": "^7.11.2",
72
+ "@popperjs/core": "^2.9.1",
73
+ "classnames": "^2.2.6",
74
+ "core-js": "^3.16.1",
75
+ "css-vars-ponyfill": "^2.4.3",
76
+ "lodash": "^4.17.20",
77
+ "regenerator-runtime": "^0.13.9",
78
+ "resize-observer-polyfill": "^1.5.1",
79
+ "rxjs": "^6.6.3",
80
+ "styled-components": "^5.2.1"
81
+ },
82
+ "devDependencies": {
83
+ "@babel/core": "^7.11.1",
84
+ "@babel/plugin-proposal-export-namespace-from": "^7.10.4",
85
+ "@babel/plugin-proposal-private-methods": "^7.10.4",
86
+ "@babel/plugin-transform-object-assign": "^7.10.4",
87
+ "@babel/plugin-transform-runtime": "^7.11.0",
88
+ "@babel/preset-env": "^7.11.0",
89
+ "@babel/preset-react": "^7.10.4",
90
+ "@babel/preset-typescript": "^7.10.4",
91
+ "@commitlint/config-conventional": "^9.1.2",
92
+ "@kdcloudjs/kdesign": "^1.3.1",
93
+ "@testing-library/react-hooks": "^7.0.2",
94
+ "@types/classnames": "^2.2.10",
95
+ "@types/enzyme": "^3.10.7",
96
+ "@types/jest": "^26.0.14",
97
+ "@types/jest-image-snapshot": "^4.1.0",
98
+ "@types/lodash": "^4.14.159",
99
+ "@types/puppeteer": "^3.0.2",
100
+ "@types/react": "^16.9.21",
101
+ "@types/react-dom": "^16.9.5",
102
+ "@typescript-eslint/eslint-plugin": "^3.0.0",
103
+ "@typescript-eslint/parser": "^3.0.0",
104
+ "algoliasearch": "^4.5.1",
105
+ "autoprefixer": "^9.8.6",
106
+ "babel-eslint": "^10.0.1",
107
+ "babel-loader": "^8.1.0",
108
+ "babel-plugin-add-react-displayname": "^0.0.5",
109
+ "babel-plugin-transform-class-properties": "^6.24.1",
110
+ "bisheng": "^1.5.3",
111
+ "bisheng-plugin-description": "^0.1.4",
112
+ "bisheng-plugin-toc": "^0.4.4",
113
+ "case-sensitive-paths-webpack-plugin": "^2.3.0",
114
+ "chalk": "^4.1.0",
115
+ "commitlint": "^9.1.2",
116
+ "conventional-changelog-cli": "^2.1.0",
117
+ "cross-env": "^7.0.2",
118
+ "css-loader": "^4.2.1",
119
+ "cz-customizable": "^6.3.0",
120
+ "dekko": "^0.2.1",
121
+ "enzyme": "^3.11.0",
122
+ "enzyme-adapter-react-16": "^1.15.5",
123
+ "enzyme-to-json": "^3.5.0",
124
+ "esbuild-webpack-plugin": "^1.0.5",
125
+ "eslint": "^7.6.0",
126
+ "eslint-config-prettier": "^6.11.0",
127
+ "eslint-config-prettier-standard": "^3.0.1",
128
+ "eslint-config-standard": "^14.1.1",
129
+ "eslint-loader": "^4.0.2",
130
+ "eslint-plugin-babel": "^5.3.1",
131
+ "eslint-plugin-import": "^2.22.0",
132
+ "eslint-plugin-jest": "^23.20.0",
133
+ "eslint-plugin-jsx-a11y": "^6.3.1",
134
+ "eslint-plugin-markdown": "^2.0.0-rc.0",
135
+ "eslint-plugin-node": "^11.1.0",
136
+ "eslint-plugin-prettier": "^3.1.4",
137
+ "eslint-plugin-promise": "^4.2.1",
138
+ "eslint-plugin-react": "^7.20.5",
139
+ "eslint-plugin-react-hooks": "^4.0.8",
140
+ "eslint-plugin-standard": "^4.0.1",
141
+ "file-loader": "^6.0.0",
142
+ "gulp": "^4.0.2",
143
+ "gulp-babel": "^8.0.0",
144
+ "gulp-strip-code": "^0.1.4",
145
+ "gulp-typescript": "^6.0.0-alpha.1",
146
+ "husky": "^4.2.5",
147
+ "identity-obj-proxy": "^3.0.0",
148
+ "intersection-observer": "^0.11.0",
149
+ "jest": "^26.4.2",
150
+ "jest-environment-enzyme": "^7.1.2",
151
+ "jest-enzyme": "^7.1.2",
152
+ "jest-image-snapshot": "^4.2.0",
153
+ "jest-stare": "^2.2.0",
154
+ "jsonml.js": "^0.1.0",
155
+ "less": "^3.12.2",
156
+ "less-loader": "^6.2.0",
157
+ "less-plugin-npm-import": "^2.1.0",
158
+ "less-vars-to-js": "^1.3.0",
159
+ "lint-staged": "^10.2.13",
160
+ "merge2": "^1.4.1",
161
+ "mini-css-extract-plugin": "^0.10.0",
162
+ "mockdate": "^3.0.2",
163
+ "node-fetch": "^2.6.1",
164
+ "np": "^6.5.0",
165
+ "omit.js": "^2.0.2",
166
+ "optimize-css-assets-webpack-plugin": "^5.0.3",
167
+ "post-loader": "^2.0.0",
168
+ "postcss": "^7.0.32",
169
+ "prettier": "^2.1.0",
170
+ "prism-react-renderer": "^1.3.3",
171
+ "react": "^16.13.0",
172
+ "react-dom": "^16.13.0",
173
+ "react-live": "^2.2.2",
174
+ "rimraf": "^3.0.2",
175
+ "scrollama": "^2.2.1",
176
+ "simple-git": "^2.20.1",
177
+ "standard-version": "^9.0.0",
178
+ "stylelint": "^13.7.1",
179
+ "stylelint-config-prettier": "^8.0.2",
180
+ "stylelint-config-standard": "^20.0.0",
181
+ "stylelint-declaration-block-no-ignored-properties": "^2.3.0",
182
+ "through2": "^4.0.2",
183
+ "ts-jest": "^26.4.0",
184
+ "typescript": "~3.9.2",
185
+ "uglifyjs-webpack-plugin": "^2.2.0",
186
+ "url-loader": "^4.1.0",
187
+ "webpack-bundle-analyzer": "^3.8.0",
188
+ "webpack-cli": "^3.3.12",
189
+ "webpack-dev-server": "^3.11.0",
190
+ "webpack-filter-warnings-plugin": "^1.2.1",
191
+ "webpack-merge": "^5.1.2",
192
+ "webpackbar": "^4.0.0"
193
+ },
194
+ "peerDependencies": {
195
+ "react": ">=16.9.0",
196
+ "react-dom": ">=16.9.0"
197
+ },
198
+ "publishConfig": {
199
+ "registry": "https://registry.npmjs.org/"
200
+ },
201
+ "tnpm": {
202
+ "mode": "npm"
203
+ },
204
+ "lint-staged": {
205
+ "*.{ts,tsx,js,jsx}": [
206
+ "npm run lint:script",
207
+ "prettier .prettierrc.js --write"
208
+ ],
209
+ "*.less": [
210
+ "npm run lint:style"
211
+ ]
212
+ },
213
+ "config": {
214
+ "commitizen": {
215
+ "path": "./node_modules/cz-customizable"
216
+ }
217
+ },
218
+ "license": "Apache-2.0"
219
+ }