devextreme-planit-treegrid-react 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -74,7 +74,9 @@ value가 0 | '0' | '0%' 인 데이터를 하이픈('-')으로 보여줍니다.
74
74
  groupField는 그리드 상단에 colspan 된 새로운 column을 생성합니다. 자세한 사용법은 github의 demo 폴더를 확인하십시오.
75
75
 
76
76
  ```
77
- export const TreeDataGroup: IGroupField[] = [
77
+ import { TypeDxPlanit } from 'devextreme-planit-treegrid-react';
78
+
79
+ export const TreeDataGroup: TypeDxPlanit.IGroupField[] = [
78
80
  {
79
81
  groupCaption: '진료 수입 (백만원)',
80
82
  groupName: 'mediIncome',
@@ -132,6 +132,17 @@ 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
+
135
146
  var grandTotalCssNm = 'data-grand-total';
136
147
  var DxPlanitTreeGrid = /*#__PURE__*/ (0, _react.forwardRef)(function (props, ref) {
137
148
  var _props$id = props.id,
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
+ import DevExpress from 'devextreme';
2
+ import { Format } from 'devextreme/localization';
3
+
1
4
  export declare const DxPlanitTreeGrid;
2
5
  export default DxPlanitTreeGrid;
3
6
 
4
- export declare module DxPlanit {
7
+ export declare module TypeDxPlanit {
5
8
  export interface IGroupField {
6
9
  groupCaption: string;
7
10
  groupName?: string;
@@ -10,6 +13,18 @@ export declare module DxPlanit {
10
13
  colspan: number;
11
14
  }
12
15
 
16
+ export interface ColumnField {
17
+ colspan: number;
18
+ text: string;
19
+ type: string;
20
+ }
21
+
22
+ export interface IColorInfo {
23
+ format: Format;
24
+ color: string;
25
+ condition: string;
26
+ }
27
+
13
28
  export interface Props extends DevExpress.ui.dxPivotGrid.Properties {
14
29
  id?: string;
15
30
  dataSource?: any;
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "devextreme-planit-treegrid-react",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Devextreme의 DxPivotGrid를 Tree Grid처럼 보여주는 Wrapper입니다.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
7
11
  "repository": "https://github.com/hsquare-analytics/ui-tree-grid.git",
8
12
  "author": "bcahn <antonio1926@gmail.com>",
9
13
  "license": "MIT",
@@ -36,7 +40,7 @@
36
40
  ],
37
41
  "dependencies": {
38
42
  "devextreme": "^22.1.6",
39
- "devextreme-planit-treegrid-react": "^1.1.1",
43
+ "devextreme-planit-treegrid-react": "^1.1.0",
40
44
  "devextreme-react": "^22.1.6",
41
45
  "exceljs": "^4.3.0",
42
46
  "file-saver": "^2.0.5",
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
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>
@@ -1,9 +0,0 @@
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 DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
package/.prettierrc DELETED
@@ -1,12 +0,0 @@
1
- # Prettier configuration
2
-
3
- printWidth: 140
4
- singleQuote: true
5
- tabWidth: 2
6
- useTabs: false
7
-
8
- # js and ts rules:
9
- arrowParens: avoid
10
-
11
- # jsx and tsx rules:
12
- jsxBracketSameLine: false
@@ -1,3 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules\\typescript\\lib"
3
- }
package/babel.config.js DELETED
@@ -1,11 +0,0 @@
1
- module.exports = function (api) {
2
- api.cache(true);
3
-
4
- const presets = ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-typescript'];
5
- const plugins = ['macros'];
6
-
7
- return {
8
- presets,
9
- plugins,
10
- };
11
- };
Binary file
package/public/index.html DELETED
@@ -1,43 +0,0 @@
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
@@ -1,25 +0,0 @@
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
- }
package/public/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/webpack.config.js DELETED
@@ -1,27 +0,0 @@
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
- };