devextreme-planit-treegrid-react 1.2.9 → 1.3.1
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/README.md +4 -0
- package/dist/DxPlanitTreeGrid.js +5 -6
- package/package.json +4 -3
package/README.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
DevExtreme Planit Tree Grid는 Devextreme의 PivotGrid에 Colspan과 컬러 지정 기능 등의 몇 가지 추가 기능을 설정한 React Wrapper입니다.
|
4
4
|
코드는 React와 typescript로 작성되었으며, DevExtreme 22.1 버전에서 테스트 되었습니다.
|
5
5
|
|
6
|
+
## Demo
|
7
|
+
|
8
|
+
[DEMO](https://bcahn.github.io/dxTreeGrid/)
|
9
|
+
|
6
10
|
## Dependecies
|
7
11
|
|
8
12
|
엑셀 다운로드 기능을 위해 아래의 두 의존성을 반드시 설치해야 합니다.
|
package/dist/DxPlanitTreeGrid.js
CHANGED
@@ -234,7 +234,7 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
|
|
234
234
|
* @returns
|
235
235
|
*/
|
236
236
|
var modifyChildren = function modifyChildren(child, index) {
|
237
|
-
if (child.type.
|
237
|
+
if (child.type.OptionName.toLowerCase() === 'fieldpanel') {
|
238
238
|
var _child$props$visible, _child$props$allowFie, _child$props$showRowF;
|
239
239
|
warnDisableProps(child);
|
240
240
|
return /*#__PURE__*/ _react.createElement(_pivotGrid.FieldPanel, {
|
@@ -701,13 +701,13 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
|
|
701
701
|
var getStateStorageKey = function getStateStorageKey(child) {
|
702
702
|
if (Array.isArray(child)) {
|
703
703
|
var stateStoring = child.filter(function (node) {
|
704
|
-
return node.type.
|
704
|
+
return node.type.OptionName.toLowerCase() === 'statestoring';
|
705
705
|
});
|
706
706
|
if (stateStoring !== null && stateStoring !== void 0 && stateStoring.length) {
|
707
707
|
return stateStoring[0].props.storageKey;
|
708
708
|
}
|
709
709
|
return null;
|
710
|
-
} else if (child.type.
|
710
|
+
} else if (child.type.OptionName.toLowerCase() === 'statestoring') {
|
711
711
|
return child.props.storageKey;
|
712
712
|
}
|
713
713
|
return null;
|
@@ -741,9 +741,8 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
|
|
741
741
|
* devextreme Raise Event
|
742
742
|
*/
|
743
743
|
var onContentReadyChild = function onContentReadyChild(e) {
|
744
|
-
|
745
|
-
|
746
|
-
}, 0);
|
744
|
+
insertRowHeaderGroup();
|
745
|
+
// setTimeout(() => insertRowHeaderGroup(), 0);
|
747
746
|
getGridSize();
|
748
747
|
return onContentReady ? onContentReady(e) : undefined;
|
749
748
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devextreme-planit-treegrid-react",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.1",
|
4
4
|
"description": "Devextreme의 DxPivotGrid를 Tree Grid처럼 보여주는 Wrapper입니다.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -18,12 +18,13 @@
|
|
18
18
|
},
|
19
19
|
"scripts": {
|
20
20
|
"start": "react-scripts start",
|
21
|
-
"build": "
|
21
|
+
"build": "react-scripts build",
|
22
22
|
"test": "react-scripts test",
|
23
23
|
"eject": "react-scripts eject",
|
24
24
|
"clean": "rimraf dist",
|
25
25
|
"compile": "npm run clean && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files --extensions .ts,.tsx"
|
26
26
|
},
|
27
|
+
"homepage": "/dxTreeGrid",
|
27
28
|
"babel": {
|
28
29
|
"presets": [
|
29
30
|
"@babel/preset-react"
|
@@ -42,7 +43,7 @@
|
|
42
43
|
],
|
43
44
|
"dependencies": {
|
44
45
|
"devextreme": "^22.1.6",
|
45
|
-
"devextreme-planit-treegrid-react": "^1.
|
46
|
+
"devextreme-planit-treegrid-react": "^1.3.0",
|
46
47
|
"devextreme-react": "^22.1.6",
|
47
48
|
"exceljs": "^4.3.0",
|
48
49
|
"file-saver": "^2.0.5",
|