igniteui-cli 14.9.2 → 14.10.0-alpha.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/README.md +2 -2
- package/lib/PromptSession.js +1 -3
- package/lib/TemplateManager.js +3 -7
- package/lib/cli.js +1 -0
- package/lib/commands/build.js +0 -3
- package/lib/commands/generate.js +0 -1
- package/lib/commands/index.d.ts +1 -0
- package/lib/commands/index.js +3 -1
- package/lib/commands/mcp.d.ts +3 -0
- package/lib/commands/mcp.js +98 -0
- package/lib/commands/start.js +3 -16
- package/lib/commands/types.d.ts +1 -0
- package/lib/commands/types.js +4 -2
- package/lib/templates/IgniteUIForReactTemplate.d.ts +0 -3
- package/lib/templates/IgniteUIForReactTemplate.js +0 -24
- package/lib/templates/jQueryTemplate.js +0 -2
- package/migrations/update-13_1_0/index.spec.js +0 -2
- package/migrations/update-2/index.spec.js +0 -2
- package/migrations/update-3/index.spec.js +0 -2
- package/migrations/update-3_2/index.js +0 -1
- package/migrations/update-3_2/index.spec.js +0 -2
- package/migrations/update-4_2_3/index.js +0 -1
- package/migrations/update-4_2_3/index.spec.js +0 -2
- package/migrations/update-5_0_0/index.js +0 -1
- package/migrations/update-5_0_0/index.spec.js +0 -2
- package/migrations/update-5_0_3/index.js +0 -1
- package/migrations/update-5_0_3/index.spec.js +0 -2
- package/package.json +8 -8
- package/scripts/install.js +1 -2
- package/scripts/uninstall.js +1 -2
- package/templates/angular/index.js +0 -1
- package/templates/jquery/index.js +0 -1
- package/templates/jquery/js/hierarchical-grid/hierarchical-grid/index.js +0 -2
- package/templates/jquery/js/index.js +0 -2
- package/templates/react/igr-ts/generate/files/src/app/__path__/__filePrefix__.test.tsx +13 -0
- package/templates/react/igr-ts/generate/files/src/app/__path__/__filePrefix__.tsx +12 -0
- package/templates/react/igr-ts/generate/files/src/app/__path__/style.module.css +3 -0
- package/templates/react/{es6 → igr-ts}/generate/template.json +1 -1
- package/templates/react/igr-ts/index.js +1 -2
- package/templates/react/igr-ts/projects/_base/files/AGENTS.md +111 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__claude/CLAUDE.md +3 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__github/copilot-instructions.md +3 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__vscode/mcp.json +12 -0
- package/templates/react/index.js +0 -2
- package/templates/webcomponents/igc-ts/projects/_base/files/AGENTS.md +33 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__claude/CLAUDE.md +3 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/copilot-instructions.md +3 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__vscode/mcp.json +12 -0
- package/lib/templates/AngularTemplate.d.ts +0 -39
- package/lib/templates/AngularTemplate.js +0 -207
- package/lib/templates/ReactTemplate.d.ts +0 -36
- package/lib/templates/ReactTemplate.js +0 -149
- package/templates/angular/ig-ts/bar-chart/default/files/src/app/assets/world-energy-production.ts +0 -54
- package/templates/angular/ig-ts/bar-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -83
- package/templates/angular/ig-ts/bar-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/bar-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/bar-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/bar-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/bar-chart/index.js +0 -15
- package/templates/angular/ig-ts/column-chart/default/files/src/app/assets/world-energy-production.ts +0 -54
- package/templates/angular/ig-ts/column-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -87
- package/templates/angular/ig-ts/column-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/column-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/column-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/column-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/column-chart/index.js +0 -15
- package/templates/angular/ig-ts/combo/combo/files/src/app/components/__path__/__filePrefix__.component.ts +0 -45
- package/templates/angular/ig-ts/combo/combo/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/combo/combo/index.d.ts +0 -1
- package/templates/angular/ig-ts/combo/combo/index.js +0 -16
- package/templates/angular/ig-ts/combo/index.d.ts +0 -1
- package/templates/angular/ig-ts/combo/index.js +0 -16
- package/templates/angular/ig-ts/custom-templates/editors-calculation-form/files/src/app/assets/logo.jpg +0 -0
- package/templates/angular/ig-ts/custom-templates/editors-calculation-form/files/src/app/components/__path__/__filePrefix__.component.ts +0 -368
- package/templates/angular/ig-ts/custom-templates/editors-calculation-form/index.d.ts +0 -1
- package/templates/angular/ig-ts/custom-templates/editors-calculation-form/index.js +0 -18
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/files/src/app/assets/data-fe.ts +0 -88
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/files/src/app/assets/folder.png +0 -0
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/files/src/app/assets/opened_folder.png +0 -0
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/files/src/app/components/__path__/__filePrefix__.component.ts +0 -50
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/index.d.ts +0 -1
- package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/index.js +0 -62
- package/templates/angular/ig-ts/doughnut-chart/default/files/src/app/assets/doughnut-data.ts +0 -10
- package/templates/angular/ig-ts/doughnut-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -38
- package/templates/angular/ig-ts/doughnut-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/doughnut-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/doughnut-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/doughnut-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/doughnut-chart/index.js +0 -16
- package/templates/angular/ig-ts/editors/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -19
- package/templates/angular/ig-ts/editors/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/editors/index.d.ts +0 -1
- package/templates/angular/ig-ts/editors/index.js +0 -58
- package/templates/angular/ig-ts/financial-chart/default/files/src/app/assets/financial-data.ts +0 -115
- package/templates/angular/ig-ts/financial-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -152
- package/templates/angular/ig-ts/financial-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/financial-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/financial-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/financial-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/financial-chart/index.js +0 -15
- package/templates/angular/ig-ts/funnel-chart/default/files/src/app/assets/funnel-data.ts +0 -12
- package/templates/angular/ig-ts/funnel-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -69
- package/templates/angular/ig-ts/funnel-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/funnel-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/funnel-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/funnel-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/funnel-chart/index.js +0 -15
- package/templates/angular/ig-ts/generate/files/src/app/components/__path__/__filePrefix__.component.ts +0 -14
- package/templates/angular/ig-ts/generate/template.json +0 -13
- package/templates/angular/ig-ts/grid/basic/files/src/app/assets/northwindProducts.ts +0 -12
- package/templates/angular/ig-ts/grid/basic/files/src/app/components/__path__/__filePrefix__.component.ts +0 -28
- package/templates/angular/ig-ts/grid/basic/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/grid/basic/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/basic/index.js +0 -41
- package/templates/angular/ig-ts/grid/grid-custom/files/src/app/assets/northwindProducts.ts +0 -12
- package/templates/angular/ig-ts/grid/grid-custom/files/src/app/components/__path__/__filePrefix__.component.ts +0 -32
- package/templates/angular/ig-ts/grid/grid-custom/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/grid/grid-custom/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/grid-custom/index.js +0 -45
- package/templates/angular/ig-ts/grid/grid-editing/files/src/app/assets/northwindProducts.ts +0 -12
- package/templates/angular/ig-ts/grid/grid-editing/files/src/app/components/__path__/__filePrefix__.component.ts +0 -30
- package/templates/angular/ig-ts/grid/grid-editing/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/grid/grid-editing/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/grid-editing/index.js +0 -42
- package/templates/angular/ig-ts/grid/grid-export/files/src/app/assets/employees.ts +0 -15
- package/templates/angular/ig-ts/grid/grid-export/files/src/app/components/__path__/__filePrefix__.component.ts +0 -88
- package/templates/angular/ig-ts/grid/grid-export/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/grid/grid-export/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/grid-export/index.js +0 -42
- package/templates/angular/ig-ts/grid/grid-templating/files/src/app/assets/northwindProductsFlat.ts +0 -13
- package/templates/angular/ig-ts/grid/grid-templating/files/src/app/components/__path__/__filePrefix__.component.ts +0 -34
- package/templates/angular/ig-ts/grid/grid-templating/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/grid/grid-templating/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/grid-templating/index.js +0 -42
- package/templates/angular/ig-ts/grid/index.d.ts +0 -1
- package/templates/angular/ig-ts/grid/index.js +0 -12
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/files/src/app/assets/northwind.ts +0 -12626
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/files/src/app/components/__path__/__filePrefix__.component.ts +0 -75
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/index.d.ts +0 -1
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/index.js +0 -42
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/files/src/app/assets/northwind.ts +0 -12626
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/files/src/app/components/__path__/__filePrefix__.component.ts +0 -76
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/index.d.ts +0 -1
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/index.js +0 -45
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/files/src/app/assets/northwind.ts +0 -12626
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/files/src/app/components/__path__/__filePrefix__.component.ts +0 -76
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/index.d.ts +0 -1
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/index.js +0 -43
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/files/src/app/assets/northwind.ts +0 -12626
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/files/src/app/components/__path__/__filePrefix__.component.ts +0 -99
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/index.d.ts +0 -1
- package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/index.js +0 -43
- package/templates/angular/ig-ts/hierarchical-grid/index.d.ts +0 -1
- package/templates/angular/ig-ts/hierarchical-grid/index.js +0 -12
- package/templates/angular/ig-ts/index.d.ts +0 -1
- package/templates/angular/ig-ts/index.js +0 -17
- package/templates/angular/ig-ts/line-chart/default/files/src/app/assets/line-chart-data.ts +0 -9
- package/templates/angular/ig-ts/line-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -109
- package/templates/angular/ig-ts/line-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/line-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/line-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/line-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/line-chart/index.js +0 -15
- package/templates/angular/ig-ts/pie-chart/default/files/src/app/assets/data.ts +0 -9
- package/templates/angular/ig-ts/pie-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -28
- package/templates/angular/ig-ts/pie-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/pie-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/pie-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/pie-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/pie-chart/index.js +0 -15
- package/templates/angular/ig-ts/projects/empty/files/README.md +0 -39
- package/templates/angular/ig-ts/projects/empty/files/__dot__browserslistrc +0 -17
- package/templates/angular/ig-ts/projects/empty/files/__dot__editorconfig +0 -16
- package/templates/angular/ig-ts/projects/empty/files/__dot__gitignore +0 -51
- package/templates/angular/ig-ts/projects/empty/files/angular.json +0 -105
- package/templates/angular/ig-ts/projects/empty/files/ignite-ui-cli.json +0 -22
- package/templates/angular/ig-ts/projects/empty/files/karma.conf.js +0 -55
- package/templates/angular/ig-ts/projects/empty/files/package.json +0 -45
- package/templates/angular/ig-ts/projects/empty/files/src/app/app-routing.module.ts +0 -17
- package/templates/angular/ig-ts/projects/empty/files/src/app/app.component.css +0 -6
- package/templates/angular/ig-ts/projects/empty/files/src/app/app.component.html +0 -5
- package/templates/angular/ig-ts/projects/empty/files/src/app/app.component.spec.ts +0 -22
- package/templates/angular/ig-ts/projects/empty/files/src/app/app.component.ts +0 -10
- package/templates/angular/ig-ts/projects/empty/files/src/app/app.module.ts +0 -22
- package/templates/angular/ig-ts/projects/empty/files/src/app/home.component.ts +0 -12
- package/templates/angular/ig-ts/projects/empty/files/src/app/shared/nav-menu.component.css +0 -36
- package/templates/angular/ig-ts/projects/empty/files/src/app/shared/nav-menu.component.ts +0 -34
- package/templates/angular/ig-ts/projects/empty/files/src/assets/Ignite-header-apps-960.png +0 -0
- package/templates/angular/ig-ts/projects/empty/files/src/assets/css/variables.scss +0 -7
- package/templates/angular/ig-ts/projects/empty/files/src/assets/lines-bottom-right.svg +0 -56
- package/templates/angular/ig-ts/projects/empty/files/src/environments/environment.prod.ts +0 -3
- package/templates/angular/ig-ts/projects/empty/files/src/environments/environment.ts +0 -16
- package/templates/angular/ig-ts/projects/empty/files/src/favicon.ico +0 -0
- package/templates/angular/ig-ts/projects/empty/files/src/index.html +0 -14
- package/templates/angular/ig-ts/projects/empty/files/src/main.ts +0 -11
- package/templates/angular/ig-ts/projects/empty/files/src/polyfills.ts +0 -53
- package/templates/angular/ig-ts/projects/empty/files/src/styles.css +0 -23
- package/templates/angular/ig-ts/projects/empty/files/src/test.ts +0 -23
- package/templates/angular/ig-ts/projects/empty/files/tsconfig.app.json +0 -15
- package/templates/angular/ig-ts/projects/empty/files/tsconfig.json +0 -34
- package/templates/angular/ig-ts/projects/empty/files/tsconfig.spec.json +0 -18
- package/templates/angular/ig-ts/projects/empty/index.d.ts +0 -1
- package/templates/angular/ig-ts/projects/empty/index.js +0 -126
- package/templates/angular/ig-ts/radial-chart/default/files/src/app/assets/temperature.ts +0 -16
- package/templates/angular/ig-ts/radial-chart/default/files/src/app/components/__path__/__filePrefix__.component.ts +0 -64
- package/templates/angular/ig-ts/radial-chart/default/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -29
- package/templates/angular/ig-ts/radial-chart/default/index.d.ts +0 -1
- package/templates/angular/ig-ts/radial-chart/default/index.js +0 -17
- package/templates/angular/ig-ts/radial-chart/index.d.ts +0 -1
- package/templates/angular/ig-ts/radial-chart/index.js +0 -15
- package/templates/angular/ig-ts/tree-grid/index.d.ts +0 -1
- package/templates/angular/ig-ts/tree-grid/index.js +0 -12
- package/templates/angular/ig-ts/tree-grid/tree-grid/files/src/app/assets/data-basic.ts +0 -28
- package/templates/angular/ig-ts/tree-grid/tree-grid/files/src/app/components/__path__/__filePrefix__.component.ts +0 -37
- package/templates/angular/ig-ts/tree-grid/tree-grid/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/tree-grid/tree-grid/index.d.ts +0 -1
- package/templates/angular/ig-ts/tree-grid/tree-grid/index.js +0 -42
- package/templates/angular/ig-ts/tree-grid/tree-grid-custom/files/src/app/assets/data-custom.ts +0 -28
- package/templates/angular/ig-ts/tree-grid/tree-grid-custom/files/src/app/components/__path__/__filePrefix__.component.ts +0 -38
- package/templates/angular/ig-ts/tree-grid/tree-grid-custom/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/tree-grid/tree-grid-custom/index.d.ts +0 -1
- package/templates/angular/ig-ts/tree-grid/tree-grid-custom/index.js +0 -42
- package/templates/angular/ig-ts/tree-grid/tree-grid-editing/files/src/app/assets/data-editing.ts +0 -28
- package/templates/angular/ig-ts/tree-grid/tree-grid-editing/files/src/app/components/__path__/__filePrefix__.component.ts +0 -38
- package/templates/angular/ig-ts/tree-grid/tree-grid-editing/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/tree-grid/tree-grid-editing/index.d.ts +0 -1
- package/templates/angular/ig-ts/tree-grid/tree-grid-editing/index.js +0 -61
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/files/src/app/assets/data-flat.ts +0 -33
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/files/src/app/assets/data-hierarchical.ts +0 -28
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/files/src/app/components/__path__/__filePrefix__.component.ts +0 -91
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/files/src/app/components/__path__/__filePrefix__.spec.ts +0 -30
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/index.d.ts +0 -1
- package/templates/angular/ig-ts/tree-grid/tree-grid-export/index.js +0 -43
- package/templates/react/es6/bar-chart/default/files/src/components/__path__/index.js +0 -89
- package/templates/react/es6/bar-chart/default/files/src/data/world-energy-production.js +0 -55
- package/templates/react/es6/bar-chart/default/index.d.ts +0 -1
- package/templates/react/es6/bar-chart/default/index.js +0 -21
- package/templates/react/es6/bar-chart/index.d.ts +0 -1
- package/templates/react/es6/bar-chart/index.js +0 -15
- package/templates/react/es6/column-chart/default/files/src/components/__path__/index.js +0 -88
- package/templates/react/es6/column-chart/default/files/src/data/world-energy-production.js +0 -55
- package/templates/react/es6/column-chart/default/index.d.ts +0 -1
- package/templates/react/es6/column-chart/default/index.js +0 -21
- package/templates/react/es6/column-chart/index.d.ts +0 -1
- package/templates/react/es6/column-chart/index.js +0 -15
- package/templates/react/es6/combo/combo/files/src/components/__path__/index.js +0 -45
- package/templates/react/es6/combo/combo/index.d.ts +0 -1
- package/templates/react/es6/combo/combo/index.js +0 -21
- package/templates/react/es6/combo/index.d.ts +0 -1
- package/templates/react/es6/combo/index.js +0 -15
- package/templates/react/es6/doughnut-chart/doughnut-chart/files/src/components/__path__/index.js +0 -44
- package/templates/react/es6/doughnut-chart/doughnut-chart/index.d.ts +0 -1
- package/templates/react/es6/doughnut-chart/doughnut-chart/index.js +0 -21
- package/templates/react/es6/doughnut-chart/index.d.ts +0 -1
- package/templates/react/es6/doughnut-chart/index.js +0 -16
- package/templates/react/es6/editors/editors/files/src/components/__path__/index.js +0 -17
- package/templates/react/es6/editors/index.d.ts +0 -1
- package/templates/react/es6/editors/index.js +0 -58
- package/templates/react/es6/financial-chart/financial-chart/files/src/components/__path__/index.js +0 -154
- package/templates/react/es6/financial-chart/financial-chart/files/src/data/financial-data.js +0 -118
- package/templates/react/es6/financial-chart/financial-chart/index.d.ts +0 -1
- package/templates/react/es6/financial-chart/financial-chart/index.js +0 -21
- package/templates/react/es6/financial-chart/index.d.ts +0 -1
- package/templates/react/es6/financial-chart/index.js +0 -15
- package/templates/react/es6/funnel-chart/funnel-chart/files/src/components/__path__/index.js +0 -41
- package/templates/react/es6/funnel-chart/funnel-chart/index.d.ts +0 -1
- package/templates/react/es6/funnel-chart/funnel-chart/index.js +0 -21
- package/templates/react/es6/funnel-chart/index.d.ts +0 -1
- package/templates/react/es6/funnel-chart/index.js +0 -15
- package/templates/react/es6/generate/files/src/components/__path__/index.js +0 -10
- package/templates/react/es6/grid/basic/files/src/components/__path__/index.js +0 -39
- package/templates/react/es6/grid/basic/index.d.ts +0 -1
- package/templates/react/es6/grid/basic/index.js +0 -40
- package/templates/react/es6/grid/grid-custom/files/src/components/__path__/index.js +0 -40
- package/templates/react/es6/grid/grid-custom/index.d.ts +0 -1
- package/templates/react/es6/grid/grid-custom/index.js +0 -43
- package/templates/react/es6/grid/grid-editing/files/src/components/__path__/index.js +0 -47
- package/templates/react/es6/grid/grid-editing/index.d.ts +0 -1
- package/templates/react/es6/grid/grid-editing/index.js +0 -41
- package/templates/react/es6/grid/grid-export/files/src/components/__path__/index.js +0 -124
- package/templates/react/es6/grid/grid-export/files/src/components/__path__/styles.css +0 -13
- package/templates/react/es6/grid/grid-export/index.d.ts +0 -1
- package/templates/react/es6/grid/grid-export/index.js +0 -41
- package/templates/react/es6/grid/grid-templating/files/src/components/__path__/index.js +0 -38
- package/templates/react/es6/grid/grid-templating/files/src/components/__path__/northwind.js +0 -605
- package/templates/react/es6/grid/grid-templating/index.d.ts +0 -1
- package/templates/react/es6/grid/grid-templating/index.js +0 -40
- package/templates/react/es6/grid/index.d.ts +0 -1
- package/templates/react/es6/grid/index.js +0 -15
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/src/components/__path__/index.js +0 -79
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/files/src/components/__path__/northwind.js +0 -12626
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/index.d.ts +0 -1
- package/templates/react/es6/hierarchical-grid/hierarchical-grid/index.js +0 -41
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/src/components/__path__/index.js +0 -82
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/files/src/components/__path__/northwind.js +0 -12626
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.d.ts +0 -1
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.js +0 -44
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/src/components/__path__/index.js +0 -81
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/files/src/components/__path__/northwind.js +0 -12626
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.d.ts +0 -1
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.js +0 -42
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/index.js +0 -112
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/northwind.js +0 -12626
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/files/src/components/__path__/styles.css +0 -13
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.d.ts +0 -1
- package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.js +0 -42
- package/templates/react/es6/hierarchical-grid/index.d.ts +0 -1
- package/templates/react/es6/hierarchical-grid/index.js +0 -15
- package/templates/react/es6/index.d.ts +0 -1
- package/templates/react/es6/index.js +0 -20
- package/templates/react/es6/line-chart/default/files/src/components/__path__/index.js +0 -76
- package/templates/react/es6/line-chart/default/index.d.ts +0 -1
- package/templates/react/es6/line-chart/default/index.js +0 -21
- package/templates/react/es6/line-chart/index.d.ts +0 -1
- package/templates/react/es6/line-chart/index.js +0 -15
- package/templates/react/es6/pie-chart/index.d.ts +0 -1
- package/templates/react/es6/pie-chart/index.js +0 -15
- package/templates/react/es6/pie-chart/pie-chart/files/src/components/__path__/index.js +0 -38
- package/templates/react/es6/pie-chart/pie-chart/index.d.ts +0 -1
- package/templates/react/es6/pie-chart/pie-chart/index.js +0 -21
- package/templates/react/es6/projects/empty/files/README.md +0 -36
- package/templates/react/es6/projects/empty/files/__dot__editorconfig +0 -3
- package/templates/react/es6/projects/empty/files/__dot__env +0 -1
- package/templates/react/es6/projects/empty/files/__dot__eslintrc.json +0 -6
- package/templates/react/es6/projects/empty/files/__dot__gitignore +0 -23
- package/templates/react/es6/projects/empty/files/ignite-ui-cli.json +0 -21
- package/templates/react/es6/projects/empty/files/package.json +0 -36
- package/templates/react/es6/projects/empty/files/public/favicon.ico +0 -0
- package/templates/react/es6/projects/empty/files/public/index.html +0 -42
- package/templates/react/es6/projects/empty/files/public/manifest.json +0 -15
- package/templates/react/es6/projects/empty/files/public/robots.txt +0 -3
- package/templates/react/es6/projects/empty/files/src/App.css +0 -52
- package/templates/react/es6/projects/empty/files/src/App.js +0 -39
- package/templates/react/es6/projects/empty/files/src/components/home/index.js +0 -25
- package/templates/react/es6/projects/empty/files/src/components/navigation-header/index.js +0 -47
- package/templates/react/es6/projects/empty/files/src/hoc/asyncComponent.js +0 -50
- package/templates/react/es6/projects/empty/files/src/igniteuiResources.js +0 -7
- package/templates/react/es6/projects/empty/files/src/index.css +0 -13
- package/templates/react/es6/projects/empty/files/src/index.js +0 -23
- package/templates/react/es6/projects/empty/files/src/reportWebVitals.js +0 -13
- package/templates/react/es6/projects/empty/files/src/routes.json +0 -7
- package/templates/react/es6/projects/empty/index.d.ts +0 -1
- package/templates/react/es6/projects/empty/index.js +0 -78
- package/templates/react/es6/radial-chart/index.d.ts +0 -1
- package/templates/react/es6/radial-chart/index.js +0 -15
- package/templates/react/es6/radial-chart/radial-chart/files/src/components/__path__/index.js +0 -68
- package/templates/react/es6/radial-chart/radial-chart/files/src/data/temperature.js +0 -16
- package/templates/react/es6/radial-chart/radial-chart/index.d.ts +0 -1
- package/templates/react/es6/radial-chart/radial-chart/index.js +0 -21
- package/templates/react/es6/scatter-chart/index.d.ts +0 -1
- package/templates/react/es6/scatter-chart/index.js +0 -16
- package/templates/react/es6/scatter-chart/scatter-chart/files/src/components/__path__/index.js +0 -59
- package/templates/react/es6/scatter-chart/scatter-chart/files/src/data/temperature.js +0 -58
- package/templates/react/es6/scatter-chart/scatter-chart/index.d.ts +0 -1
- package/templates/react/es6/scatter-chart/scatter-chart/index.js +0 -21
- package/templates/react/es6/tree-grid/index.d.ts +0 -1
- package/templates/react/es6/tree-grid/index.js +0 -15
- package/templates/react/es6/tree-grid/tree-grid/files/src/components/__path__/index.js +0 -61
- package/templates/react/es6/tree-grid/tree-grid/index.d.ts +0 -1
- package/templates/react/es6/tree-grid/tree-grid/index.js +0 -41
- package/templates/react/es6/tree-grid/tree-grid-custom/files/src/components/__path__/index.js +0 -62
- package/templates/react/es6/tree-grid/tree-grid-custom/index.d.ts +0 -1
- package/templates/react/es6/tree-grid/tree-grid-custom/index.js +0 -41
- package/templates/react/es6/tree-grid/tree-grid-editing/files/src/components/__path__/index.js +0 -62
- package/templates/react/es6/tree-grid/tree-grid-editing/index.d.ts +0 -1
- package/templates/react/es6/tree-grid/tree-grid-editing/index.js +0 -42
- package/templates/react/es6/tree-grid/tree-grid-export/files/src/components/__path__/index.js +0 -161
- package/templates/react/es6/tree-grid/tree-grid-export/index.d.ts +0 -1
- package/templates/react/es6/tree-grid/tree-grid-export/index.js +0 -42
- package/templates/react/igr-es6/bullet-graph/default/files/src/views/__path__/index.js +0 -62
- package/templates/react/igr-es6/bullet-graph/default/files/src/views/__path__/style.css +0 -12
- package/templates/react/igr-es6/bullet-graph/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/bullet-graph/default/index.d.ts +0 -1
- package/templates/react/igr-es6/bullet-graph/default/index.js +0 -17
- package/templates/react/igr-es6/bullet-graph/index.d.ts +0 -1
- package/templates/react/igr-es6/bullet-graph/index.js +0 -15
- package/templates/react/igr-es6/category-chart/default/files/src/views/__path__/index.js +0 -45
- package/templates/react/igr-es6/category-chart/default/files/src/views/__path__/style.css +0 -9
- package/templates/react/igr-es6/category-chart/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/category-chart/default/index.d.ts +0 -1
- package/templates/react/igr-es6/category-chart/default/index.js +0 -18
- package/templates/react/igr-es6/category-chart/index.d.ts +0 -1
- package/templates/react/igr-es6/category-chart/index.js +0 -16
- package/templates/react/igr-es6/doughnut-chart/default/files/src/views/__path__/index.js +0 -85
- package/templates/react/igr-es6/doughnut-chart/default/files/src/views/__path__/style.css +0 -9
- package/templates/react/igr-es6/doughnut-chart/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/doughnut-chart/default/index.d.ts +0 -1
- package/templates/react/igr-es6/doughnut-chart/default/index.js +0 -17
- package/templates/react/igr-es6/doughnut-chart/index.d.ts +0 -1
- package/templates/react/igr-es6/doughnut-chart/index.js +0 -15
- package/templates/react/igr-es6/financial-chart/default/files/src/views/__path__/index.js +0 -55
- package/templates/react/igr-es6/financial-chart/default/files/src/views/__path__/style.css +0 -10
- package/templates/react/igr-es6/financial-chart/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/financial-chart/default/index.d.ts +0 -1
- package/templates/react/igr-es6/financial-chart/default/index.js +0 -19
- package/templates/react/igr-es6/financial-chart/index.d.ts +0 -1
- package/templates/react/igr-es6/financial-chart/index.js +0 -16
- package/templates/react/igr-es6/grid/basic/files/src/views/__path__/data.js +0 -46
- package/templates/react/igr-es6/grid/basic/files/src/views/__path__/index.js +0 -46
- package/templates/react/igr-es6/grid/basic/files/src/views/__path__/style.css +0 -17
- package/templates/react/igr-es6/grid/basic/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/grid/basic/index.d.ts +0 -1
- package/templates/react/igr-es6/grid/basic/index.js +0 -23
- package/templates/react/igr-es6/grid/index.d.ts +0 -1
- package/templates/react/igr-es6/grid/index.js +0 -15
- package/templates/react/igr-es6/groups.json +0 -5
- package/templates/react/igr-es6/index.d.ts +0 -1
- package/templates/react/igr-es6/index.js +0 -17
- package/templates/react/igr-es6/linear-gauge/default/files/src/views/__path__/index.js +0 -62
- package/templates/react/igr-es6/linear-gauge/default/files/src/views/__path__/style.css +0 -12
- package/templates/react/igr-es6/linear-gauge/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/linear-gauge/default/index.d.ts +0 -1
- package/templates/react/igr-es6/linear-gauge/default/index.js +0 -17
- package/templates/react/igr-es6/linear-gauge/index.d.ts +0 -1
- package/templates/react/igr-es6/linear-gauge/index.js +0 -15
- package/templates/react/igr-es6/pie-chart/default/files/src/views/__path__/index.js +0 -83
- package/templates/react/igr-es6/pie-chart/default/files/src/views/__path__/style.css +0 -9
- package/templates/react/igr-es6/pie-chart/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/pie-chart/default/index.d.ts +0 -1
- package/templates/react/igr-es6/pie-chart/default/index.js +0 -17
- package/templates/react/igr-es6/pie-chart/index.d.ts +0 -1
- package/templates/react/igr-es6/pie-chart/index.js +0 -15
- package/templates/react/igr-es6/projects/_base/__dot__eslintrc.json +0 -3
- package/templates/react/igr-es6/projects/_base/files/README.md +0 -48
- package/templates/react/igr-es6/projects/_base/files/__dot__editorconfig +0 -3
- package/templates/react/igr-es6/projects/_base/files/__dot__env +0 -1
- package/templates/react/igr-es6/projects/_base/files/__dot__gitignore +0 -23
- package/templates/react/igr-es6/projects/_base/files/ignite-ui-cli.json +0 -16
- package/templates/react/igr-es6/projects/_base/files/package.json +0 -30
- package/templates/react/igr-es6/projects/_base/files/public/favicon.ico +0 -0
- package/templates/react/igr-es6/projects/_base/files/public/index.html +0 -41
- package/templates/react/igr-es6/projects/_base/files/public/manifest.json +0 -15
- package/templates/react/igr-es6/projects/_base/files/src/App.test.js +0 -9
- package/templates/react/igr-es6/projects/_base/files/src/hoc/asyncComponent.js +0 -50
- package/templates/react/igr-es6/projects/_base/files/src/index.css +0 -14
- package/templates/react/igr-es6/projects/_base/files/src/index.js +0 -19
- package/templates/react/igr-es6/projects/_base/files/src/routes.json +0 -7
- package/templates/react/igr-es6/projects/_base/files/src/serviceWorker.js +0 -135
- package/templates/react/igr-es6/projects/_base/files/src/views/home/index.js +0 -27
- package/templates/react/igr-es6/projects/_base/files/src/views/home/logo.svg +0 -7
- package/templates/react/igr-es6/projects/_base/files/src/views/home/style.css +0 -28
- package/templates/react/igr-es6/projects/_base/index.d.ts +0 -29
- package/templates/react/igr-es6/projects/_base/index.js +0 -81
- package/templates/react/igr-es6/projects/top-nav/files/src/App.css +0 -59
- package/templates/react/igr-es6/projects/top-nav/files/src/App.js +0 -36
- package/templates/react/igr-es6/projects/top-nav/files/src/components/navigation-header/index.js +0 -37
- package/templates/react/igr-es6/projects/top-nav/files/src/setupTests.js +0 -4
- package/templates/react/igr-es6/projects/top-nav/index.d.ts +0 -14
- package/templates/react/igr-es6/projects/top-nav/index.js +0 -45
- package/templates/react/igr-es6/radial-gauge/default/files/src/views/__path__/index.js +0 -66
- package/templates/react/igr-es6/radial-gauge/default/files/src/views/__path__/style.css +0 -12
- package/templates/react/igr-es6/radial-gauge/default/files/src/views/__path__/test.js +0 -9
- package/templates/react/igr-es6/radial-gauge/default/index.d.ts +0 -1
- package/templates/react/igr-es6/radial-gauge/default/index.js +0 -18
- package/templates/react/igr-es6/radial-gauge/index.d.ts +0 -1
- package/templates/react/igr-es6/radial-gauge/index.js +0 -16
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
3
|
-
|
|
4
|
-
export default class $(ClassName) extends Component {
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
this.state = {
|
|
8
|
-
hierarchicalDS : [
|
|
9
|
-
{
|
|
10
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
11
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
12
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
13
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
14
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
15
|
-
{ "id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
16
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
17
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
18
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
19
|
-
]},
|
|
20
|
-
{
|
|
21
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
22
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
23
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
24
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
25
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (
|
|
36
|
-
<div className="App">
|
|
37
|
-
<div className="App-header">
|
|
38
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
39
|
-
</div>
|
|
40
|
-
<$(Control)
|
|
41
|
-
id="checkboxModeTreeGrid"
|
|
42
|
-
width="100%"
|
|
43
|
-
dataSource={this.state.hierarchicalDS}
|
|
44
|
-
autoGenerateColumns={false}
|
|
45
|
-
height="500"
|
|
46
|
-
primaryKey="id"
|
|
47
|
-
columns={[
|
|
48
|
-
{ headerText: "ID", key: "id", width: "10%", dataType: "number", hidden: true },
|
|
49
|
-
{ headerText: "Tasks", key: "tasks", width: "30%", dataType: "string" },
|
|
50
|
-
{ headerText: "Start", key: "start", width: "20%", dataType: "string" },
|
|
51
|
-
{ headerText: "Finish", key: "finish", width: "20%", dataType: "string" },
|
|
52
|
-
{ headerText: "Duration", key: "duration", width: "20%", dataType: "string" },
|
|
53
|
-
{ headerText: "Progress", key: "progress", width: "10%", dataType: "string" }
|
|
54
|
-
]}
|
|
55
|
-
childDataKey="products"
|
|
56
|
-
features={$(treeGridFeatures)}
|
|
57
|
-
/>
|
|
58
|
-
</div>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const GridHelper_1 = require("../../../../../lib/project-utility/GridHelper");
|
|
4
|
-
const ReactTemplate_1 = require("../../../../../lib/templates/ReactTemplate");
|
|
5
|
-
class TreeGridTemplate extends ReactTemplate_1.ReactTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.extraConfigurations = [];
|
|
9
|
-
this.userExtraConfiguration = {};
|
|
10
|
-
this.id = "tree-grid";
|
|
11
|
-
this.name = "Tree Grid";
|
|
12
|
-
this.widget = "igTreeGrid";
|
|
13
|
-
this.description = "igTreeGrid default template for React";
|
|
14
|
-
this.projectType = "es6";
|
|
15
|
-
this.components = ["Tree Grid"];
|
|
16
|
-
this.controlGroup = "Data Grids";
|
|
17
|
-
this.dependencies = ["igTreeGrid"];
|
|
18
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
19
|
-
this.gridHelper.tree = true;
|
|
20
|
-
this.hasExtraConfiguration = true;
|
|
21
|
-
this.extraConfigurations.push({
|
|
22
|
-
choices: ["Sorting", "Selection", "Filtering"],
|
|
23
|
-
default: "",
|
|
24
|
-
key: "features",
|
|
25
|
-
message: "Select features for the igTreeGrid",
|
|
26
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
generateConfig(name, ...options) {
|
|
30
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 5);
|
|
31
|
-
const config = { treeGridFeatures: features };
|
|
32
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
33
|
-
}
|
|
34
|
-
getExtraConfiguration() {
|
|
35
|
-
return this.extraConfigurations;
|
|
36
|
-
}
|
|
37
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
38
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
module.exports = new TreeGridTemplate();
|
package/templates/react/es6/tree-grid/tree-grid-custom/files/src/components/__path__/index.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
3
|
-
|
|
4
|
-
export default class $(ClassName) extends Component {
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
this.state = {
|
|
8
|
-
hierarchicalDS : [
|
|
9
|
-
{
|
|
10
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
11
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
12
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
13
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
14
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
15
|
-
{ "id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
16
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
17
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
18
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
19
|
-
]},
|
|
20
|
-
{
|
|
21
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
22
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
23
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
24
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
25
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (
|
|
36
|
-
<div className="App">
|
|
37
|
-
<div className="App-header">
|
|
38
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
39
|
-
</div>
|
|
40
|
-
<$(Control)
|
|
41
|
-
id="checkboxModeTreeGrid"
|
|
42
|
-
width="100%"
|
|
43
|
-
dataSource={this.state.hierarchicalDS}
|
|
44
|
-
autoGenerateColumns={false}
|
|
45
|
-
autoCommit={true}
|
|
46
|
-
height="500"
|
|
47
|
-
primaryKey="id"
|
|
48
|
-
columns={[
|
|
49
|
-
{ headerText: "ID", key: "id", width: "10%", dataType: "number", hidden: true },
|
|
50
|
-
{ headerText: "Tasks", key: "tasks", width: "30%", dataType: "string" },
|
|
51
|
-
{ headerText: "Start", key: "start", width: "20%", dataType: "string" },
|
|
52
|
-
{ headerText: "Finish", key: "finish", width: "20%", dataType: "string" },
|
|
53
|
-
{ headerText: "Duration", key: "duration", width: "20%", dataType: "string" },
|
|
54
|
-
{ headerText: "Progress", key: "progress", width: "10%", dataType: "string" }
|
|
55
|
-
]}
|
|
56
|
-
childDataKey="products"
|
|
57
|
-
features={$(treeGridFeatures)}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const GridHelper_1 = require("../../../../../lib/project-utility/GridHelper");
|
|
4
|
-
const ReactTemplate_1 = require("../../../../../lib/templates/ReactTemplate");
|
|
5
|
-
class TreeGridCustomTemplate extends ReactTemplate_1.ReactTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.extraConfigurations = [];
|
|
9
|
-
this.userExtraConfiguration = {};
|
|
10
|
-
this.id = "tree-grid-custom";
|
|
11
|
-
this.name = "Custom Tree Grid";
|
|
12
|
-
this.description = "igTreeGrid custom template for React";
|
|
13
|
-
this.projectType = "es6";
|
|
14
|
-
this.widget = "igTreeGrid";
|
|
15
|
-
this.components = ["Tree Grid"];
|
|
16
|
-
this.controlGroup = "Data Grids";
|
|
17
|
-
this.dependencies = ["igTreeGrid"];
|
|
18
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
19
|
-
this.gridHelper.tree = true;
|
|
20
|
-
this.hasExtraConfiguration = true;
|
|
21
|
-
this.extraConfigurations.push({
|
|
22
|
-
choices: ["Sorting", "Selection", "Filtering", "Updating", "ColumnMoving", "Resizing", "Hiding"],
|
|
23
|
-
default: "",
|
|
24
|
-
key: "features",
|
|
25
|
-
message: "Select features for the igTreeGrid",
|
|
26
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
generateConfig(name, ...options) {
|
|
30
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 5);
|
|
31
|
-
const config = { treeGridFeatures: features };
|
|
32
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
33
|
-
}
|
|
34
|
-
getExtraConfiguration() {
|
|
35
|
-
return this.extraConfigurations;
|
|
36
|
-
}
|
|
37
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
38
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
module.exports = new TreeGridCustomTemplate();
|
package/templates/react/es6/tree-grid/tree-grid-editing/files/src/components/__path__/index.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
3
|
-
|
|
4
|
-
export default class $(ClassName) extends Component {
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
this.state = {
|
|
8
|
-
hierarchicalDS : [
|
|
9
|
-
{
|
|
10
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
11
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
12
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
13
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
14
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
15
|
-
{ "id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
16
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
17
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
18
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
19
|
-
]},
|
|
20
|
-
{
|
|
21
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
22
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
23
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
24
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
25
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (
|
|
36
|
-
<div className="App">
|
|
37
|
-
<div className="App-header">
|
|
38
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
39
|
-
</div>
|
|
40
|
-
<$(Control)
|
|
41
|
-
id="checkboxModeTreeGrid"
|
|
42
|
-
width="100%"
|
|
43
|
-
dataSource={this.state.hierarchicalDS}
|
|
44
|
-
autoGenerateColumns={false}
|
|
45
|
-
autoCommit={true}
|
|
46
|
-
height="500"
|
|
47
|
-
primaryKey="id"
|
|
48
|
-
columns={[
|
|
49
|
-
{ headerText: "ID", key: "id", width: "10%", dataType: "number", hidden: true },
|
|
50
|
-
{ headerText: "Tasks", key: "tasks", width: "30%", dataType: "string" },
|
|
51
|
-
{ headerText: "Start", key: "start", width: "20%", dataType: "string" },
|
|
52
|
-
{ headerText: "Finish", key: "finish", width: "20%", dataType: "string" },
|
|
53
|
-
{ headerText: "Duration", key: "duration", width: "20%", dataType: "string" },
|
|
54
|
-
{ headerText: "Progress", key: "progress", width: "10%", dataType: "string" }
|
|
55
|
-
]}
|
|
56
|
-
childDataKey="products"
|
|
57
|
-
features={$(treeGridFeatures)}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const GridHelper_1 = require("../../../../../lib/project-utility/GridHelper");
|
|
4
|
-
const ReactTemplate_1 = require("../../../../../lib/templates/ReactTemplate");
|
|
5
|
-
class TreeGridEditingTemplate extends ReactTemplate_1.ReactTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.extraConfigurations = [];
|
|
9
|
-
this.userExtraConfiguration = {};
|
|
10
|
-
this.id = "tree-grid-editing";
|
|
11
|
-
this.name = "Editing Tree Grid";
|
|
12
|
-
this.description = "igTreeGrid editing template for React";
|
|
13
|
-
this.projectType = "es6";
|
|
14
|
-
this.widget = "igTreeGrid";
|
|
15
|
-
this.components = ["Tree Grid"];
|
|
16
|
-
this.controlGroup = "Data Grids";
|
|
17
|
-
this.dependencies = ["igTreeGrid"];
|
|
18
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
19
|
-
this.gridHelper.tree = true;
|
|
20
|
-
this.hasExtraConfiguration = true;
|
|
21
|
-
this.extraConfigurations.push({
|
|
22
|
-
choices: ["Sorting", "Filtering"],
|
|
23
|
-
default: "",
|
|
24
|
-
key: "features",
|
|
25
|
-
message: "Select features for the igTreeGrid",
|
|
26
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
generateConfig(name, ...options) {
|
|
30
|
-
this.gridHelper.addFeature("Updating");
|
|
31
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 5);
|
|
32
|
-
const config = { treeGridFeatures: features };
|
|
33
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
34
|
-
}
|
|
35
|
-
getExtraConfiguration() {
|
|
36
|
-
return this.extraConfigurations;
|
|
37
|
-
}
|
|
38
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
39
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
module.exports = new TreeGridEditingTemplate();
|
package/templates/react/es6/tree-grid/tree-grid-export/files/src/components/__path__/index.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import * as $ from 'jquery';
|
|
3
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_core.js";
|
|
4
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_collections.js";
|
|
5
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_text.js";
|
|
6
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_io.js";
|
|
7
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_ui.js";
|
|
8
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.documents.core_core.js";
|
|
9
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_collectionsextended.js";
|
|
10
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.excel_core.js";
|
|
11
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_threading.js";
|
|
12
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.ext_web.js";
|
|
13
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.xml.js";
|
|
14
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.documents.core_openxml.js";
|
|
15
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.excel_serialization_openxml.js";
|
|
16
|
-
import "@infragistics/ignite-ui-full/en/js/modules/infragistics.gridexcelexporter.js";
|
|
17
|
-
import "file-saver";
|
|
18
|
-
import $(Control) from "igniteui-react/ui/$(widget).js";
|
|
19
|
-
import IgButton from "igniteui-react/ui/igButton.js"
|
|
20
|
-
|
|
21
|
-
export default class $(ClassName) extends Component {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props);
|
|
24
|
-
this.state = {
|
|
25
|
-
flatDS : [
|
|
26
|
-
{ "employeeID": 0, "PID": -1, "firstName": "Andrew", "lastName": "Fuller", "reportsTo": null },
|
|
27
|
-
{ "employeeID": 1, "PID": -1, "firstName": "Jonathan", "lastName": "Smith", "reportsTo": null },
|
|
28
|
-
{ "employeeID": 2, "PID": -1, "firstName": "Nancy", "lastName": "Davolio", "reportsTo": null },
|
|
29
|
-
{ "employeeID": 3, "PID": -1, "firstName": "Steven", "lastName": "Buchanan", "reportsTo": null },
|
|
30
|
-
// sub of ID 1
|
|
31
|
-
{ "employeeID": 4, "PID": 0, "firstName": "Janet", "lastName": "Leverling", "reportsTo": 0 },
|
|
32
|
-
{ "employeeID": 5, "PID": 0, "firstName": "Laura", "lastName": "Callahan", "reportsTo": 0 },
|
|
33
|
-
{ "employeeID": 6, "PID": 0, "firstName": "Margaret", "lastName": "Peacock", "reportsTo": 0 },
|
|
34
|
-
{ "employeeID": 7, "PID": 0, "firstName": "Michael", "lastName": "Suyama", "reportsTo": 0 },
|
|
35
|
-
// sub of ID 4
|
|
36
|
-
{ "employeeID": 8, "PID": 4, "firstName": "Anne", "lastName": "Dodsworth", "reportsTo": 4 },
|
|
37
|
-
{ "employeeID": 9, "PID": 4, "firstName": "Danielle", "lastName": "Davis", "reportsTo": 4 },
|
|
38
|
-
{ "employeeID": 10, "PID": 4, "firstName": "Robert", "lastName": "King", "reportsTo": 4 },
|
|
39
|
-
// sub of ID 2
|
|
40
|
-
{ "employeeID": 11, "PID": 2, "firstName": "Peter", "lastName": "Lewis", "reportsTo": 2 },
|
|
41
|
-
{ "employeeID": 12, "PID": 2, "firstName": "Ryder", "lastName": "Zenaida", "reportsTo": 2 },
|
|
42
|
-
{ "employeeID": 13, "PID": 2, "firstName": "Wang", "lastName": "Mercedes", "reportsTo": 2 },
|
|
43
|
-
// sub of ID 3
|
|
44
|
-
{ "employeeID": 14, "PID": 3, "firstName": "Theodore", "lastName": "Zia", "reportsTo": 3 },
|
|
45
|
-
{ "employeeID": 15, "PID": 3, "firstName": "Lacota", "lastName": "Mufutau", "reportsTo": 3 },
|
|
46
|
-
// sub of ID 16
|
|
47
|
-
{ "employeeID": 16, "PID": 15, "firstName": "Jin", "lastName": "Elliott", "reportsTo": 16 },
|
|
48
|
-
{ "employeeID": 17, "PID": 15, "firstName": "Armand", "lastName": "Ross", "reportsTo": 16 },
|
|
49
|
-
{ "employeeID": 18, "PID": 15, "firstName": "Dane", "lastName": "Rodriquez", "reportsTo": 16 },
|
|
50
|
-
// sub of ID 19
|
|
51
|
-
{ "employeeID": 19, "PID": 18, "firstName": "Declan", "lastName": "Lester", "reportsTo": 19 },
|
|
52
|
-
{ "employeeID": 20, "PID": 18, "firstName": "Bernard", "lastName": "Jarvis", "reportsTo": 19 },
|
|
53
|
-
// sub of ID 20
|
|
54
|
-
{ "employeeID": 21, "PID": 20, "firstName": "Jeremy", "lastName": "Donaldson", "reportsTo": 2 }
|
|
55
|
-
],
|
|
56
|
-
hierarchicalDS : [
|
|
57
|
-
{
|
|
58
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
59
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
60
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
61
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
62
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
63
|
-
{
|
|
64
|
-
"id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
65
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
66
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
67
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
72
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
73
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
74
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
75
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
this.exportFlatDS = () => {
|
|
85
|
-
$.ig.GridExcelExporter.exportGrid($("#treegrid1"), {
|
|
86
|
-
fileName: "igTreeGrid1",
|
|
87
|
-
worksheetName: 'Sheet1',
|
|
88
|
-
gridStyling: "none"
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.exportHierarchicalDS = () => {
|
|
93
|
-
$.ig.GridExcelExporter.exportGrid($("#treegrid2"), {
|
|
94
|
-
fileName: "igTreeGrid2",
|
|
95
|
-
worksheetName: 'Sheet1',
|
|
96
|
-
gridStyling: "none"
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
render() {
|
|
102
|
-
return (
|
|
103
|
-
<div className="App">
|
|
104
|
-
<div className="App-header">
|
|
105
|
-
<h2 style={{textAlign: "center"}}>$(description)</h2>
|
|
106
|
-
</div>
|
|
107
|
-
<div style={{display: "flex", flexFlow: "column", alignItems: "center", marginBottom: "1vw"}}>
|
|
108
|
-
<$(Control)
|
|
109
|
-
id="treegrid1"
|
|
110
|
-
width="100%"
|
|
111
|
-
dataSource={this.state.flatDS}
|
|
112
|
-
autoGenerateColumns={false}
|
|
113
|
-
primaryKey="employeeID"
|
|
114
|
-
foreignKey="PID"
|
|
115
|
-
initialExpandDepth="1"
|
|
116
|
-
columns={[
|
|
117
|
-
{ headerText: "Employee ID", key: "employeeID", width: "200px", dataType: "number" },
|
|
118
|
-
{ headerText: "First Name", key: "firstName", width: "220px", dataType: "string" },
|
|
119
|
-
{ headerText: "Last Name", key: "lastName", width: "220px", dataType: "string" },
|
|
120
|
-
{ headerText: "Reports To", key: "reportsTo", width: "130px", dataType: "number" }
|
|
121
|
-
]}
|
|
122
|
-
features={$(treeGridFeatures)}
|
|
123
|
-
/>
|
|
124
|
-
|
|
125
|
-
<IgButton
|
|
126
|
-
click={this.exportFlatDS}
|
|
127
|
-
onClick={this.exportFlatDS}
|
|
128
|
-
labelText="Export Flat Data"
|
|
129
|
-
/>
|
|
130
|
-
</div>
|
|
131
|
-
<div style={{display: "flex", flexFlow: "column", alignItems: "center"}}>
|
|
132
|
-
<$(Control)
|
|
133
|
-
id="treegrid2"
|
|
134
|
-
width="100%"
|
|
135
|
-
dataSource={this.state.hierarchicalDS}
|
|
136
|
-
autoGenerateColumns={false}
|
|
137
|
-
primaryKey="id"
|
|
138
|
-
columns={[
|
|
139
|
-
{ headerText: "ID", key: "id", width: "120px", dataType: "number" },
|
|
140
|
-
{ headerText: "Tasks", key: "tasks", width: "250px", dataType: "string" },
|
|
141
|
-
{ headerText: "Start", key: "start", width: "130px", dataType: "string" },
|
|
142
|
-
{ headerText: "Finish", key: "finish", width: "130px", dataType: "string" },
|
|
143
|
-
{ headerText: "Duration", key: "duration", width: "100px", dataType: "string" },
|
|
144
|
-
{ headerText: "Progress", key: "progress", width: "130px", dataType: "string" }
|
|
145
|
-
]}
|
|
146
|
-
childDataKey="products"
|
|
147
|
-
initialExpandDepth="1"
|
|
148
|
-
renderExpansionIndicatorColumn={true}
|
|
149
|
-
features={$(treeGridFeatures)}
|
|
150
|
-
/>
|
|
151
|
-
|
|
152
|
-
<IgButton
|
|
153
|
-
click={this.exportHierarchicalDS}
|
|
154
|
-
onClick={this.exportHierarchicalDS}
|
|
155
|
-
labelText="Export Hierarchical Data"
|
|
156
|
-
/>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const GridHelper_1 = require("../../../../../lib/project-utility/GridHelper");
|
|
4
|
-
const ReactTemplate_1 = require("../../../../../lib/templates/ReactTemplate");
|
|
5
|
-
class TreeGridExportTemplate extends ReactTemplate_1.ReactTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.extraConfigurations = [];
|
|
9
|
-
this.userExtraConfiguration = {};
|
|
10
|
-
this.id = "tree-grid-export";
|
|
11
|
-
this.name = "Tree Grid Exporting";
|
|
12
|
-
this.description = "igTreeGrid exporting template for React";
|
|
13
|
-
this.projectType = "es6";
|
|
14
|
-
this.components = ["Tree Grid"];
|
|
15
|
-
this.widget = "igTreeGrid";
|
|
16
|
-
this.controlGroup = "Data Grids";
|
|
17
|
-
this.dependencies = ["igTreeGrid"];
|
|
18
|
-
this.packages = ["file-saver@^2.0.5"];
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
this.gridHelper.tree = true;
|
|
21
|
-
this.hasExtraConfiguration = true;
|
|
22
|
-
this.extraConfigurations.push({
|
|
23
|
-
choices: ["Paging", "Hiding"],
|
|
24
|
-
default: "",
|
|
25
|
-
key: "features",
|
|
26
|
-
message: "Select features for the igTreeGrid",
|
|
27
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
generateConfig(name, ...options) {
|
|
31
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 5);
|
|
32
|
-
const config = { treeGridFeatures: features };
|
|
33
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
34
|
-
}
|
|
35
|
-
getExtraConfiguration() {
|
|
36
|
-
return this.extraConfigurations;
|
|
37
|
-
}
|
|
38
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
39
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
module.exports = new TreeGridExportTemplate();
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import { IgrBulletGraphModule } from 'igniteui-react-gauges';
|
|
3
|
-
import { IgrBulletGraph } from 'igniteui-react-gauges';
|
|
4
|
-
import style from './style.css';
|
|
5
|
-
|
|
6
|
-
IgrBulletGraphModule.register();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default class $(ClassName) extends Component {
|
|
10
|
-
title = 'Bullet Graph'
|
|
11
|
-
state = {
|
|
12
|
-
data: []
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
render() {
|
|
16
|
-
return (
|
|
17
|
-
<div>
|
|
18
|
-
<h1 className={style.title}>{this.title}</h1>
|
|
19
|
-
<div>
|
|
20
|
-
Read more on the
|
|
21
|
-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
|
|
22
|
-
official documentation page
|
|
23
|
-
</a>
|
|
24
|
-
</div>
|
|
25
|
-
<div className={style.container}>
|
|
26
|
-
<div className={style.graph}>
|
|
27
|
-
<IgrBulletGraph
|
|
28
|
-
height="80px" width="400px"
|
|
29
|
-
minimumValue={0} value={70} interval={10}
|
|
30
|
-
maximumValue={100} targetValue={90}
|
|
31
|
-
isScaleInverted={false}
|
|
32
|
-
scaleBackgroundBrush="DodgerBlue"
|
|
33
|
-
scaleBackgroundOutline="DarkViolet"
|
|
34
|
-
scaleBackgroundThickness={2}
|
|
35
|
-
scaleStartExtent={0.05}
|
|
36
|
-
scaleEndExtent={0.95}>
|
|
37
|
-
</IgrBulletGraph>
|
|
38
|
-
</div>
|
|
39
|
-
<div className={style.graph}>
|
|
40
|
-
<IgrBulletGraph
|
|
41
|
-
value={50}
|
|
42
|
-
valueBrush="DodgerBlue"
|
|
43
|
-
valueStrokeThickness={1}
|
|
44
|
-
valueInnerExtent={0.5}
|
|
45
|
-
valueOuterExtent={0.65}
|
|
46
|
-
targetValue={80}
|
|
47
|
-
targetValueBreadth={10}
|
|
48
|
-
targetValueBrush="LimeGreen"
|
|
49
|
-
targetValueOutline="LimeGreen"
|
|
50
|
-
targetValueStrokeThickness={1}
|
|
51
|
-
targetValueInnerExtent={0.3}
|
|
52
|
-
targetValueOuterExtent={0.85}
|
|
53
|
-
height="80px" width="400px"
|
|
54
|
-
minimumValue={0}
|
|
55
|
-
maximumValue={100}>
|
|
56
|
-
</IgrBulletGraph>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
)
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import $(ClassName) from './index';
|
|
3
|
-
import { shallow } from 'enzyme';
|
|
4
|
-
|
|
5
|
-
it('$(ClassName) renders without crashing', () => {
|
|
6
|
-
const wrapperComponent = shallow(<$(ClassName) />);
|
|
7
|
-
expect(wrapperComponent).toBeDefined();
|
|
8
|
-
expect(wrapperComponent).toBeTruthy();
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|