igniteui-cli 14.9.1 → 14.10.0-alpha.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 +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 +6 -19
- 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,34 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"compileOnSave": false,
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"baseUrl": "./",
|
|
6
|
-
"outDir": "./dist/out-tsc",
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"noImplicitOverride": true,
|
|
9
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
10
|
-
"noImplicitReturns": true,
|
|
11
|
-
"noFallthroughCasesInSwitch": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"declaration": false,
|
|
17
|
-
"downlevelIteration": true,
|
|
18
|
-
"experimentalDecorators": true,
|
|
19
|
-
"moduleResolution": "Bundler",
|
|
20
|
-
"importHelpers": true,
|
|
21
|
-
"target": "ES2022",
|
|
22
|
-
"module": "preserve",
|
|
23
|
-
"lib": [
|
|
24
|
-
"ES2022",
|
|
25
|
-
"dom"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"angularCompilerOptions": {
|
|
29
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
30
|
-
"strictInjectionParameters": true,
|
|
31
|
-
"strictInputAccessModifiers": true,
|
|
32
|
-
"strictTemplates": true
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./out-tsc/spec",
|
|
6
|
-
"types": [
|
|
7
|
-
"jasmine"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"src/test.ts",
|
|
12
|
-
"src/polyfills.ts"
|
|
13
|
-
],
|
|
14
|
-
"include": [
|
|
15
|
-
"src/**/*.spec.ts",
|
|
16
|
-
"src/**/*.d.ts"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const cli_core_1 = require("@igniteui/cli-core");
|
|
36
|
-
const path = __importStar(require("path"));
|
|
37
|
-
class EmptyAngularProject {
|
|
38
|
-
constructor() {
|
|
39
|
-
this.id = "angular";
|
|
40
|
-
this.name = "empty";
|
|
41
|
-
this.description = "Ignite UI CLI Default empty project structure for Angular";
|
|
42
|
-
this.dependencies = [];
|
|
43
|
-
this.framework = "angular";
|
|
44
|
-
this.projectType = "ig-ts";
|
|
45
|
-
this.hasExtraConfiguration = false;
|
|
46
|
-
this.delimiters = cli_core_1.defaultDelimiters;
|
|
47
|
-
this.fileSystem = new cli_core_1.FsFileSystem();
|
|
48
|
-
}
|
|
49
|
-
get templatePaths() {
|
|
50
|
-
return [path.join(__dirname, "files")];
|
|
51
|
-
}
|
|
52
|
-
installModules() {
|
|
53
|
-
throw new Error("Method not implemented.");
|
|
54
|
-
}
|
|
55
|
-
upgradeIgniteUIPackages(projectPath, packagePath) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
var _a, _b, _c, _d;
|
|
58
|
-
const config = cli_core_1.ProjectConfig.getConfig();
|
|
59
|
-
const files = config.project.sourceFiles;
|
|
60
|
-
config.project.sourceFiles = files.map(x => {
|
|
61
|
-
if (x === "infragistics.core-lite.js") {
|
|
62
|
-
return "infragistics.core.js";
|
|
63
|
-
}
|
|
64
|
-
else if (x === "infragistics.lob-lite.js") {
|
|
65
|
-
return "infragistics.lob.js";
|
|
66
|
-
}
|
|
67
|
-
return x;
|
|
68
|
-
});
|
|
69
|
-
cli_core_1.ProjectConfig.setConfig(config);
|
|
70
|
-
// update angular.json to use and refer to the installed @ignite-ui-full package
|
|
71
|
-
let workspaceConfigObj;
|
|
72
|
-
const workspacePath = path.join(projectPath, "angular.json");
|
|
73
|
-
if (this.fileSystem.fileExists(workspacePath)) {
|
|
74
|
-
workspaceConfigObj = JSON.parse(this.fileSystem.readFile(workspacePath));
|
|
75
|
-
const workspace = workspaceConfigObj.projects[Object.keys(workspaceConfigObj.projects)[0]];
|
|
76
|
-
const styles = workspace.architect.build.options.styles;
|
|
77
|
-
const scripts = workspace.architect.build.options.scripts;
|
|
78
|
-
const freeVersionPath = "ignite-ui";
|
|
79
|
-
const fullVersionPath = "@infragistics/ignite-ui-full/en";
|
|
80
|
-
// update free to full packages - resource location + resource name (if it is different for the full version)
|
|
81
|
-
// optionally: can safely strip ./node_modules/ from path
|
|
82
|
-
for (const script of scripts) {
|
|
83
|
-
if (!!script.input && ((_a = script.input) === null || _a === void 0 ? void 0 : _a.includes(freeVersionPath))) {
|
|
84
|
-
script.input = script.input.replace(freeVersionPath, fullVersionPath);
|
|
85
|
-
script.input = script.input.replace("-lite", "");
|
|
86
|
-
}
|
|
87
|
-
if (!!script.bundleName && ((_b = script.bundleName) === null || _b === void 0 ? void 0 : _b.includes("-lite"))) {
|
|
88
|
-
script.bundleName = script.bundleName.replace("-lite", "");
|
|
89
|
-
}
|
|
90
|
-
// edge case: Strip modules/ path from "bundleName": "modules/infragistics.gridexcelexporter.js"
|
|
91
|
-
if (!!script.bundleName && ((_c = script.bundleName) === null || _c === void 0 ? void 0 : _c.includes("modules/"))) {
|
|
92
|
-
script.bundleName = script.bundleName.replace("modules/", "");
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
for (const style of styles) {
|
|
96
|
-
if (!!style.input && ((_d = style.input) === null || _d === void 0 ? void 0 : _d.includes(freeVersionPath))) {
|
|
97
|
-
style.input = style.input.replace(freeVersionPath, fullVersionPath);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
this.fileSystem.writeFile(workspacePath, cli_core_1.Util.formatAngularJsonOptions(workspaceConfigObj));
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
cli_core_1.Util.log(`No angular.json file found! May have to manually add igniteui-angular-wrappers styles and scripts
|
|
105
|
-
(infragistics.core.js, infragistics.lob.js, etc.) to the corresponding angular.json styles and scripts collections`);
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
getExtraConfiguration() {
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
setExtraConfiguration(extraConfigKeys) { }
|
|
114
|
-
generateConfig(name, theme, ...options) {
|
|
115
|
-
return {
|
|
116
|
-
"cliVersion": cli_core_1.Util.version(),
|
|
117
|
-
"dash-name": cli_core_1.Util.lowerDashed(name),
|
|
118
|
-
"description": this.description,
|
|
119
|
-
"dot": ".",
|
|
120
|
-
"name": name,
|
|
121
|
-
"path": name,
|
|
122
|
-
"theme": theme
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
module.exports = new EmptyAngularProject();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const temperature = [
|
|
2
|
-
{ "Date": "2013.07.16", "Time": "1:00", "NewYorkCityTemp": 85.46, "PhiladelphiaTemp": 86.72 },
|
|
3
|
-
{ "Date": "2013.07.16", "Time": "3:00", "NewYorkCityTemp": 82.76, "PhiladelphiaTemp": 84.74 },
|
|
4
|
-
{ "Date": "2013.07.16", "Time": "5:00", "NewYorkCityTemp": 80.6, "PhiladelphiaTemp": 82.94 },
|
|
5
|
-
{ "Date": "2013.07.16", "Time": "7:00", "NewYorkCityTemp": 79.34, "PhiladelphiaTemp": 82.22 },
|
|
6
|
-
{ "Date": "2013.07.16", "Time": "9:00", "NewYorkCityTemp": 82.76, "PhiladelphiaTemp": 86 },
|
|
7
|
-
{ "Date": "2013.07.16", "Time": "11:00", "NewYorkCityTemp": 86.54, "PhiladelphiaTemp": 88.88 },
|
|
8
|
-
{ "Date": "2013.07.16", "Time": "13:00", "NewYorkCityTemp": 89.78, "PhiladelphiaTemp": 93.38 },
|
|
9
|
-
{ "Date": "2013.07.16", "Time": "15:00", "NewYorkCityTemp": 92.48, "PhiladelphiaTemp": 93.2 },
|
|
10
|
-
{ "Date": "2013.07.16", "Time": "17:00", "NewYorkCityTemp": 93.2, "PhiladelphiaTemp": 92.3 },
|
|
11
|
-
{ "Date": "2013.07.16", "Time": "19:00", "NewYorkCityTemp": 91.4, "PhiladelphiaTemp": 92.48 },
|
|
12
|
-
{ "Date": "2013.07.16", "Time": "21:00", "NewYorkCityTemp": 88.52, "PhiladelphiaTemp": 89.78 },
|
|
13
|
-
{ "Date": "2013.07.16", "Time": "23:00", "NewYorkCityTemp": 88.16, "PhiladelphiaTemp": 86.72 }
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export { temperature };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { temperature } from "../../assets/temperature";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<div style="float: left">
|
|
9
|
-
<ig-data-chart [options]="options" widgetId="radialChart"></ig-data-chart>
|
|
10
|
-
</div>
|
|
11
|
-
<div id="radialLegend" style="float: left"></div>`
|
|
12
|
-
})
|
|
13
|
-
export class $(ClassName)Component {
|
|
14
|
-
public options: IgDataChart;
|
|
15
|
-
public data: any[];
|
|
16
|
-
|
|
17
|
-
constructor() {
|
|
18
|
-
this.data = temperature;
|
|
19
|
-
this.options = {
|
|
20
|
-
id: "radialChart",
|
|
21
|
-
width: "400px",
|
|
22
|
-
height: "400px",
|
|
23
|
-
dataSource: this.data,
|
|
24
|
-
title: "New York City vs. Philadelphia",
|
|
25
|
-
subtitle: "A comparison of daily temperatures",
|
|
26
|
-
legend: { element: "radialLegend" },
|
|
27
|
-
horizontalZoomable: true,
|
|
28
|
-
verticalZoomable: true,
|
|
29
|
-
windowResponse: "immediate",
|
|
30
|
-
axes: [{
|
|
31
|
-
name: "angleAxis",
|
|
32
|
-
type: "categoryAngle",
|
|
33
|
-
label: "Time",
|
|
34
|
-
startAngleOffset: -90,
|
|
35
|
-
interval: 1
|
|
36
|
-
}, {
|
|
37
|
-
name: "radiusAxis",
|
|
38
|
-
type: "numericRadius",
|
|
39
|
-
innerRadiusExtentScale: .1,
|
|
40
|
-
maximumValue: 95,
|
|
41
|
-
minimumValue: 75,
|
|
42
|
-
interval: 5,
|
|
43
|
-
radiusExtentScale: .6
|
|
44
|
-
}],
|
|
45
|
-
series: [{
|
|
46
|
-
name: "series1",
|
|
47
|
-
title: 'Philadelphia',
|
|
48
|
-
type: "radialArea",
|
|
49
|
-
angleAxis: "angleAxis",
|
|
50
|
-
valueAxis: "radiusAxis",
|
|
51
|
-
valueMemberPath: "PhiladelphiaTemp",
|
|
52
|
-
markerType: "circle"
|
|
53
|
-
}, {
|
|
54
|
-
name: "series2",
|
|
55
|
-
title: 'New York City',
|
|
56
|
-
type: "radialArea",
|
|
57
|
-
angleAxis: "angleAxis",
|
|
58
|
-
valueAxis: "radiusAxis",
|
|
59
|
-
valueMemberPath: "NewYorkCityTemp",
|
|
60
|
-
markerType: "circle"
|
|
61
|
-
}]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { $(ClassName)Component } from './$(filePrefix).component';
|
|
4
|
-
import { IgniteUIModule } from 'igniteui-angular-wrappers';
|
|
5
|
-
|
|
6
|
-
declare var $: any;
|
|
7
|
-
|
|
8
|
-
describe('$(ClassName)Component', () => {
|
|
9
|
-
let component: $(ClassName)Component;
|
|
10
|
-
let fixture: ComponentFixture<$(ClassName)Component>;
|
|
11
|
-
|
|
12
|
-
beforeEach(waitForAsync(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
declarations: [$(ClassName)Component],
|
|
15
|
-
imports: [IgniteUIModule]
|
|
16
|
-
})
|
|
17
|
-
.compileComponents();
|
|
18
|
-
}));
|
|
19
|
-
|
|
20
|
-
beforeEach(() => {
|
|
21
|
-
fixture = TestBed.createComponent($(ClassName)Component);
|
|
22
|
-
component = fixture.componentInstance;
|
|
23
|
-
fixture.detectChanges();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('should create', () => {
|
|
27
|
-
expect(component).toBeTruthy();
|
|
28
|
-
});
|
|
29
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const AngularTemplate_1 = require("../../../../../lib/templates/AngularTemplate");
|
|
4
|
-
class RadialChartTemplate extends AngularTemplate_1.AngularTemplate {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(__dirname);
|
|
7
|
-
this.components = ["Radial Chart"];
|
|
8
|
-
this.controlGroup = "Charts";
|
|
9
|
-
this.listInComponentTemplates = true;
|
|
10
|
-
this.id = "radial-chart";
|
|
11
|
-
this.projectType = "ig-ts";
|
|
12
|
-
this.name = "Radial Chart";
|
|
13
|
-
this.description = "igDataChart radial series template for Angular";
|
|
14
|
-
this.dependencies = ["igDataChart"];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
module.exports = new RadialChartTemplate();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
-
class RadialChartComponent extends cli_core_1.BaseComponent {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
constructor() {
|
|
9
|
-
super(__dirname);
|
|
10
|
-
this.name = "Radial Chart";
|
|
11
|
-
this.group = "Charts";
|
|
12
|
-
this.description = "igDataChart with different radial series types.";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
module.exports = new RadialChartComponent();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
-
class TreeGridComponent extends cli_core_1.BaseComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(__dirname);
|
|
7
|
-
this.name = "Tree Grid";
|
|
8
|
-
this.group = "Data Grids";
|
|
9
|
-
this.description = "pick from tree grids: basic, custom, editing, export.";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
module.exports = new TreeGridComponent();
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const hierarchicalDS = [
|
|
2
|
-
{
|
|
3
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
4
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
5
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
6
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
7
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
8
|
-
{
|
|
9
|
-
"id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
10
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
11
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
12
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
17
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
18
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
19
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
20
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
export { hierarchicalDS };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { hierarchicalDS } from "../../assets/data-basic";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<ig-tree-grid [options]="gridOptions" widgetId="tree-grid"></ig-tree-grid>
|
|
9
|
-
`
|
|
10
|
-
})
|
|
11
|
-
export class $(ClassName)Component {
|
|
12
|
-
public gridOptions: IgTreeGrid;
|
|
13
|
-
public products: any[];
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this.products = hierarchicalDS;
|
|
17
|
-
this.gridOptions = {
|
|
18
|
-
id: "basicTreeGrid",
|
|
19
|
-
width: "100%",
|
|
20
|
-
dataSource: this.products,
|
|
21
|
-
autoGenerateColumns: false,
|
|
22
|
-
height: "500",
|
|
23
|
-
primaryKey: "id",
|
|
24
|
-
childDataKey: "products",
|
|
25
|
-
columns: [
|
|
26
|
-
{ headerText: "ID", key: "id", width: "10%", dataType: "number", hidden: true },
|
|
27
|
-
{ headerText: "Tasks", key: "tasks", width: "30%", dataType: "string" },
|
|
28
|
-
{ headerText: "Start", key: "start", width: "20%", dataType: "string" },
|
|
29
|
-
{ headerText: "Finish", key: "finish", width: "20%", dataType: "string" },
|
|
30
|
-
{ headerText: "Duration", key: "duration", width: "20%", dataType: "string" },
|
|
31
|
-
{ headerText: "Progress", key: "progress", width: "10%", dataType: "string" }
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
features: $(treeGridFeatures)
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { $(ClassName)Component } from './$(filePrefix).component';
|
|
4
|
-
import { IgniteUIModule } from 'igniteui-angular-wrappers';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
|
|
7
|
-
declare var $: any;
|
|
8
|
-
|
|
9
|
-
describe('$(ClassName)Component', () => {
|
|
10
|
-
let component: $(ClassName)Component;
|
|
11
|
-
let fixture: ComponentFixture<$(ClassName)Component>;
|
|
12
|
-
|
|
13
|
-
beforeEach(waitForAsync(() => {
|
|
14
|
-
TestBed.configureTestingModule({
|
|
15
|
-
declarations: [$(ClassName)Component],
|
|
16
|
-
imports: [IgniteUIModule, FormsModule]
|
|
17
|
-
})
|
|
18
|
-
.compileComponents();
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
beforeEach(() => {
|
|
22
|
-
fixture = TestBed.createComponent($(ClassName)Component);
|
|
23
|
-
component = fixture.componentInstance;
|
|
24
|
-
fixture.detectChanges();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should create', () => {
|
|
28
|
-
expect(component).toBeTruthy();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -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 AngularTemplate_1 = require("../../../../../lib/templates/AngularTemplate");
|
|
5
|
-
class TreeGridTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "tree-grid";
|
|
10
|
-
this.name = "Tree Grid";
|
|
11
|
-
this.widget = "igTreeGrid";
|
|
12
|
-
this.controlGroup = "Data Grids";
|
|
13
|
-
this.description = "igTreeGrid default template for Angular";
|
|
14
|
-
this.dependencies = ["igTreeGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.listInComponentTemplates = true;
|
|
17
|
-
this.hasExtraConfiguration = true;
|
|
18
|
-
this.extraConfigurations = [];
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
this.gridHelper.tree = true;
|
|
21
|
-
const featureConfiguration = {
|
|
22
|
-
choices: ["Sorting", "Selection", "Filtering"],
|
|
23
|
-
default: "",
|
|
24
|
-
key: "features",
|
|
25
|
-
message: "Select features for the igTreeGrid",
|
|
26
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
27
|
-
};
|
|
28
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
29
|
-
}
|
|
30
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
31
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
32
|
-
}
|
|
33
|
-
generateConfig(name, ...options) {
|
|
34
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
35
|
-
const config = { treeGridFeatures: features };
|
|
36
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
37
|
-
}
|
|
38
|
-
getExtraConfiguration() {
|
|
39
|
-
return this.extraConfigurations;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
module.exports = new TreeGridTemplate();
|
package/templates/angular/ig-ts/tree-grid/tree-grid-custom/files/src/app/assets/data-custom.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const hierarchicalDS = [
|
|
2
|
-
{
|
|
3
|
-
"id": 0, "tasks": "Project Plan", "start": "6/2/2014", "finish": "8/22/2014", "duration": "60d", "progress": "32%", "products": [
|
|
4
|
-
{ "id": 1, "tasks": "Planning", "start": "6/2/2014", "finish": "6/4/2014", "duration": "3d", "progress": "100%" },
|
|
5
|
-
{ "id": 2, "tasks": "Write a specification", "start": "6/5/2014", "finish": "6/6/2014", "duration": "2d", "progress": "100%" },
|
|
6
|
-
{ "id": 3, "tasks": "Create a demo application", "start": "6/9/2014", "finish": "6/11/2014", "duration": "3d", "progress": "100%" },
|
|
7
|
-
{ "id": 4, "tasks": "Collect a feedback", "start": "6/12/2014", "finish": "6/12/2014", "duration": "1d", "progress": "100%" },
|
|
8
|
-
{
|
|
9
|
-
"id": 5, "tasks": "Design", "start": "6/13/2014", "finish": "6/19/2014", "duration": "5d", "progress": "60%", "products": [
|
|
10
|
-
{ "id": 8, "tasks": "Conceptual Design", "start": "6/13/2014", "finish": "6/16/2014", "duration": "2d", "progress": "100%" },
|
|
11
|
-
{ "id": 9, "tasks": "Preliminary Design", "start": "6/17/2014", "finish": "6/18/2014", "duration": "2d", "progress": "65%" },
|
|
12
|
-
{ "id": 10, "tasks": "Final Design", "start": "6/19/2014", "finish": "6/19/2014", "duration": "1d", "progress": "15%" }
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": 6, "tasks": "Development", "start": "6/20/2014", "finish": "8/20/2014", "duration": "44d", "progress": "5%", "products": [
|
|
17
|
-
{ "id": 11, "tasks": "Implementation", "start": "6/20/2014", "finish": "7/17/2014", "duration": "20d", "progress": "5%" },
|
|
18
|
-
{ "id": 12, "tasks": "Testing", "start": "7/18/2014", "finish": "7/31/2014", "duration": "10d", "progress": "0%" },
|
|
19
|
-
{ "id": 13, "tasks": "Bug fixing", "start": "8/1/2014", "finish": "8/14/2014", "duration": "10d", "progress": "0%" },
|
|
20
|
-
{ "id": 14, "tasks": "Documenting", "start": "8/15/2014", "finish": "8/20/2014", "duration": "4d", "progress": "0%" }
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{ "id": 7, "tasks": "Project Complete", "start": "8/21/2014", "finish": "8/22/2014", "duration": "2d", "progress": "0%" }
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
export { hierarchicalDS };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { hierarchicalDS } from "../../assets/data-custom";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<ig-tree-grid [options]="gridOptions" widgetId="tree-grid"></ig-tree-grid>
|
|
9
|
-
`
|
|
10
|
-
})
|
|
11
|
-
export class $(ClassName)Component {
|
|
12
|
-
public gridOptions: IgTreeGrid;
|
|
13
|
-
public products: any[];
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this.products = hierarchicalDS;
|
|
17
|
-
this.gridOptions = {
|
|
18
|
-
id: "customTreeGrid",
|
|
19
|
-
width: "100%",
|
|
20
|
-
dataSource: this.products,
|
|
21
|
-
autoGenerateColumns: false,
|
|
22
|
-
height: "500",
|
|
23
|
-
primaryKey: "id",
|
|
24
|
-
childDataKey: "products",
|
|
25
|
-
autoCommit: true,
|
|
26
|
-
columns: [
|
|
27
|
-
{ headerText: "ID", key: "id", width: "10%", dataType: "number", hidden: true },
|
|
28
|
-
{ headerText: "Tasks", key: "tasks", width: "30%", dataType: "string" },
|
|
29
|
-
{ headerText: "Start", key: "start", width: "20%", dataType: "string" },
|
|
30
|
-
{ headerText: "Finish", key: "finish", width: "20%", dataType: "string" },
|
|
31
|
-
{ headerText: "Duration", key: "duration", width: "20%", dataType: "string" },
|
|
32
|
-
{ headerText: "Progress", key: "progress", width: "10%", dataType: "string" }
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
features: $(treeGridFeatures)
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { $(ClassName)Component } from './$(filePrefix).component';
|
|
4
|
-
import { IgniteUIModule } from 'igniteui-angular-wrappers';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
|
|
7
|
-
declare var $: any;
|
|
8
|
-
|
|
9
|
-
describe('$(ClassName)Component', () => {
|
|
10
|
-
let component: $(ClassName)Component;
|
|
11
|
-
let fixture: ComponentFixture<$(ClassName)Component>;
|
|
12
|
-
|
|
13
|
-
beforeEach(waitForAsync(() => {
|
|
14
|
-
TestBed.configureTestingModule({
|
|
15
|
-
declarations: [$(ClassName)Component],
|
|
16
|
-
imports: [IgniteUIModule, FormsModule]
|
|
17
|
-
})
|
|
18
|
-
.compileComponents();
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
beforeEach(() => {
|
|
22
|
-
fixture = TestBed.createComponent($(ClassName)Component);
|
|
23
|
-
component = fixture.componentInstance;
|
|
24
|
-
fixture.detectChanges();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('should create', () => {
|
|
28
|
-
expect(component).toBeTruthy();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -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 AngularTemplate_1 = require("../../../../../lib/templates/AngularTemplate");
|
|
5
|
-
class TreeGridCustomTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "tree-grid-custom";
|
|
10
|
-
this.name = "Custom TreeGrid";
|
|
11
|
-
this.controlGroup = "Data Grids";
|
|
12
|
-
this.widget = "igTreeGrid";
|
|
13
|
-
this.description = "igTreeGrid custom template for Angular";
|
|
14
|
-
this.dependencies = ["igTreeGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.listInComponentTemplates = true;
|
|
17
|
-
this.hasExtraConfiguration = true;
|
|
18
|
-
this.extraConfigurations = [];
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
this.gridHelper.tree = true;
|
|
21
|
-
const featureConfiguration = {
|
|
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
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
29
|
-
}
|
|
30
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
31
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
32
|
-
}
|
|
33
|
-
generateConfig(name, ...options) {
|
|
34
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
35
|
-
const config = { treeGridFeatures: features };
|
|
36
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
37
|
-
}
|
|
38
|
-
getExtraConfiguration() {
|
|
39
|
-
return this.extraConfigurations;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
module.exports = new TreeGridCustomTemplate();
|