devextreme-planit-treegrid-react 1.1.0 → 1.1.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/.idea/modules.xml +8 -0
- package/.idea/ui-tree-grid.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/.prettierrc +12 -0
- package/.vscode/settings.json +3 -0
- package/README.md +5 -1
- package/babel.config.js +11 -0
- package/dist/DxPlanitTreeGrid.js +0 -18
- package/dist/index.d.ts +23 -2
- package/package.json +4 -7
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/webpack.config.js +27 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/ui-tree-grid.iml" filepath="$PROJECT_DIR$/.idea/ui-tree-grid.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="inheritedJdk" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
</component>
|
9
|
+
</module>
|
package/.idea/vcs.xml
ADDED
package/.prettierrc
ADDED
package/README.md
CHANGED
@@ -18,7 +18,7 @@ npm install file-saver
|
|
18
18
|
DevExtreme이 설치되어 있어야 합니다.
|
19
19
|
|
20
20
|
```
|
21
|
-
npm install devextreme
|
21
|
+
npm install devextreme devextreme-react
|
22
22
|
```
|
23
23
|
|
24
24
|
```
|
@@ -47,6 +47,10 @@ import DxPlanitTreeGrid from 'devextreme-planit-treegrid-react'
|
|
47
47
|
/>
|
48
48
|
```
|
49
49
|
|
50
|
+
```
|
51
|
+
**Note: id가 필수사항은 아니지만 가급적 사용할 것을 권고합니다. id를 사용하지 않으면 한 페이지에 여러 개의 Tree Grid를 생성할 경우 DevExtreme의 Load Pannel이 의도치 않은 곳에 생성될 수 있습니다.
|
52
|
+
```
|
53
|
+
|
50
54
|
DevExtreme PivotGrid에 몇몇 기능이 추가되었습니다. 추가된 기능은 아래와 같습니다.
|
51
55
|
|
52
56
|
### 1. dataColor
|
package/babel.config.js
ADDED
package/dist/DxPlanitTreeGrid.js
CHANGED
@@ -132,17 +132,6 @@ function _iterableToArrayLimit(arr, i) {
|
|
132
132
|
function _arrayWithHoles(arr) {
|
133
133
|
if (Array.isArray(arr)) return arr;
|
134
134
|
}
|
135
|
-
/**
|
136
|
-
* devextreme pivotgrid Configrations 중 사용 불가 항목 : id, width, height, showColumnGrandTotals, showColumnTotals, showRowGrandTotals, FieldChooser
|
137
|
-
* devextreme pivotgrid Configrations 중 사용 방법 변경 항목 : stateStoring, Export
|
138
|
-
* onExported, onFileSaving 이벤트 사용하지 않음.
|
139
|
-
*/
|
140
|
-
/**
|
141
|
-
* todoList:
|
142
|
-
* 2) columIndex 초기화 기능이 있어야 함(column 개수 변할 때)
|
143
|
-
* 3) 헤더에 테이블 삽입되면서 그리드 크기가 늘어남. height에 그리드 크기 늘어난 만큼 반영되어야 함.
|
144
|
-
*/
|
145
|
-
|
146
135
|
var grandTotalCssNm = 'data-grand-total';
|
147
136
|
var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref) {
|
148
137
|
var _props$id = props.id,
|
@@ -696,13 +685,6 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
|
|
696
685
|
var onOptionChangedChild = function onOptionChangedChild(e) {
|
697
686
|
return onOptionChanged ? onOptionChanged(e) : undefined;
|
698
687
|
};
|
699
|
-
(0, _react.useEffect)(
|
700
|
-
function () {
|
701
|
-
if (customExcelButton) {
|
702
|
-
}
|
703
|
-
},
|
704
|
-
[customExcelButton]
|
705
|
-
);
|
706
688
|
(0, _react.useEffect)(
|
707
689
|
function () {
|
708
690
|
setGridDataSource(dataSource);
|
package/dist/index.d.ts
CHANGED
@@ -1,2 +1,23 @@
|
|
1
|
-
export declare const DxPlanitTreeGrid;
|
2
|
-
export default DxPlanitTreeGrid;
|
1
|
+
export declare const DxPlanitTreeGrid;
|
2
|
+
export default DxPlanitTreeGrid;
|
3
|
+
|
4
|
+
export declare module DxPlanit {
|
5
|
+
export interface IGroupField {
|
6
|
+
groupCaption: string;
|
7
|
+
groupName?: string;
|
8
|
+
html?: string;
|
9
|
+
depth: number;
|
10
|
+
colspan: number;
|
11
|
+
}
|
12
|
+
|
13
|
+
export interface Props extends DevExpress.ui.dxPivotGrid.Properties {
|
14
|
+
id?: string;
|
15
|
+
dataSource?: any;
|
16
|
+
groupField?: IGroupField[];
|
17
|
+
dataColor?: IColorInfo[];
|
18
|
+
convertNullToHipen?: boolean;
|
19
|
+
convertZeroToHipen?: boolean;
|
20
|
+
stateStoringKey?: string;
|
21
|
+
customExcelButton?: boolean;
|
22
|
+
}
|
23
|
+
}
|
package/package.json
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "devextreme-planit-treegrid-react",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"description": "Devextreme의 DxPivotGrid를 Tree Grid처럼 보여주는 Wrapper입니다.",
|
5
5
|
"main": "dist/index.js",
|
6
|
-
"
|
7
|
-
"dist",
|
8
|
-
"README.md"
|
9
|
-
],
|
6
|
+
"types": "dist/index.d.ts",
|
10
7
|
"repository": "https://github.com/hsquare-analytics/ui-tree-grid.git",
|
11
8
|
"author": "bcahn <antonio1926@gmail.com>",
|
12
9
|
"license": "MIT",
|
@@ -15,7 +12,7 @@
|
|
15
12
|
},
|
16
13
|
"scripts": {
|
17
14
|
"start": "react-scripts start",
|
18
|
-
"build": "
|
15
|
+
"build": "tsc",
|
19
16
|
"test": "react-scripts test",
|
20
17
|
"eject": "react-scripts eject",
|
21
18
|
"clean": "rimraf dist",
|
@@ -39,7 +36,7 @@
|
|
39
36
|
],
|
40
37
|
"dependencies": {
|
41
38
|
"devextreme": "^22.1.6",
|
42
|
-
"devextreme-planit-treegrid-react": "^
|
39
|
+
"devextreme-planit-treegrid-react": "^1.1.1",
|
43
40
|
"devextreme-react": "^22.1.6",
|
44
41
|
"exceljs": "^4.3.0",
|
45
42
|
"file-saver": "^2.0.5",
|
Binary file
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<meta name="theme-color" content="#000000" />
|
8
|
+
<meta
|
9
|
+
name="description"
|
10
|
+
content="Web site created using create-react-app"
|
11
|
+
/>
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
13
|
+
<!--
|
14
|
+
manifest.json provides metadata used when your web app is installed on a
|
15
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
16
|
+
-->
|
17
|
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
18
|
+
<!--
|
19
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
20
|
+
It will be replaced with the URL of the `public` folder during the build.
|
21
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
22
|
+
|
23
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
24
|
+
work correctly both with client-side routing and a non-root public URL.
|
25
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
26
|
+
-->
|
27
|
+
<title>React App</title>
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
31
|
+
<div id="root"></div>
|
32
|
+
<!--
|
33
|
+
This HTML file is a template.
|
34
|
+
If you open it directly in the browser, you will see an empty page.
|
35
|
+
|
36
|
+
You can add webfonts, meta tags, or analytics to this file.
|
37
|
+
The build step will place the bundled scripts into the <body> tag.
|
38
|
+
|
39
|
+
To begin the development, run `npm start` or `yarn start`.
|
40
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
41
|
+
-->
|
42
|
+
</body>
|
43
|
+
</html>
|
Binary file
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"short_name": "React App",
|
3
|
+
"name": "Create React App Sample",
|
4
|
+
"icons": [
|
5
|
+
{
|
6
|
+
"src": "favicon.ico",
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
8
|
+
"type": "image/x-icon"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"src": "logo192.png",
|
12
|
+
"type": "image/png",
|
13
|
+
"sizes": "192x192"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"src": "logo512.png",
|
17
|
+
"type": "image/png",
|
18
|
+
"sizes": "512x512"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"start_url": ".",
|
22
|
+
"display": "standalone",
|
23
|
+
"theme_color": "#000000",
|
24
|
+
"background_color": "#ffffff"
|
25
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module.exports = {
|
2
|
+
entry: './server.js',
|
3
|
+
output: {
|
4
|
+
filename: 'compiled.js',
|
5
|
+
},
|
6
|
+
resolve: {
|
7
|
+
extensions: ['ts', 'tsx'],
|
8
|
+
},
|
9
|
+
module: {
|
10
|
+
rules: [
|
11
|
+
{
|
12
|
+
test: /\.(ts|tsx)$/,
|
13
|
+
exclude: /(node_modules)/,
|
14
|
+
use: {
|
15
|
+
loader: 'babel-loader',
|
16
|
+
},
|
17
|
+
query: {
|
18
|
+
presets: ['react'],
|
19
|
+
},
|
20
|
+
},
|
21
|
+
{
|
22
|
+
test: /\.css$/i,
|
23
|
+
use: ['style-loader', 'css-loader'],
|
24
|
+
},
|
25
|
+
],
|
26
|
+
},
|
27
|
+
};
|