devextreme-planit-treegrid-react 0.3.0 → 1.1.0

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 CHANGED
@@ -31,6 +31,7 @@ npm install devextreme-planit-treegrid-react
31
31
  import DxPlanitTreeGrid from 'devextreme-planit-treegrid-react'
32
32
 
33
33
  <DxPlanitTreeGrid
34
+ id='dx-planit-vera-pivotgrid-id'
34
35
  ref={$childRef}
35
36
  dataSource={dataSource}
36
37
  groupField={TreeDataGroup}
@@ -73,6 +74,7 @@ export const TreeDataGroup: IGroupField[] = [
73
74
  {
74
75
  groupCaption: '진료 수입 (백만원)',
75
76
  groupName: 'mediIncome',
77
+ html: '진료 수입 <em>(백만원)</em>',
76
78
  depth: 1,
77
79
  colspan: 7,
78
80
  },
@@ -89,7 +91,7 @@ export const TreeDataGroup: IGroupField[] = [
89
91
 
90
92
  \*\*Note: [DevExtreme PivotGrid](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxPivotGrid/) 중 아래의 기능은 사용 불능 처리되었습니다.
91
93
 
92
- > id, width, height, showColumnGrandTotals, showColumnTotals, showRowGrandTotals, FieldChooser
94
+ > width, height, showColumnGrandTotals, showColumnTotals, showRowGrandTotals, FieldChooser
93
95
 
94
96
  \*\*Note: [DevExtreme PivotGrid](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxPivotGrid/) 중 아래의 기능은 사용 방법이 변경되었습니다.
95
97
 
@@ -315,11 +315,9 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
315
315
  * @return
316
316
  */
317
317
  var makeColspan = function makeColspan(group, index, isLast) {
318
+ var _group$html;
318
319
  var td = document.createElement('td');
319
- var text = group.groupCaption;
320
- if (group.depth === 1) {
321
- text = ''.concat(group.groupCaption);
322
- }
320
+ var text = (_group$html = group.html) !== null && _group$html !== void 0 ? _group$html : group.groupCaption;
323
321
  td.setAttribute('colspan', group.colspan.toString());
324
322
  td.setAttribute('class', 'dx-row-total dx-grand-total dx-planit-colspan');
325
323
  if (isLast && index === 0) {
@@ -329,7 +327,7 @@ var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref
329
327
  } else if (!isLast && index === 0) {
330
328
  td.setAttribute('style', 'border-bottom: 0');
331
329
  }
332
- td.innerHTML = '<div>'.concat(text, '</div>');
330
+ td.innerHTML = '<span>'.concat(text, '</span>');
333
331
  return td;
334
332
  };
335
333
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devextreme-planit-treegrid-react",
3
- "version": "0.3.0",
3
+ "version": "1.1.0",
4
4
  "description": "Devextreme의 DxPivotGrid를 Tree Grid처럼 보여주는 Wrapper입니다.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "devextreme": "^22.1.6",
42
- "devextreme-planit-treegrid-react": "^0.2.9",
42
+ "devextreme-planit-treegrid-react": "^0.3.0",
43
43
  "devextreme-react": "^22.1.6",
44
44
  "exceljs": "^4.3.0",
45
45
  "file-saver": "^2.0.5",