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,69 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { funnelData } from "../../assets/funnel-data";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<div style="float: left">
|
|
9
|
-
<ig-funnel-chart [options]="normalOptions" widgetId="chartNormal">
|
|
10
|
-
</ig-funnel-chart>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div style="float: left; width: 500px; height: 500px;">
|
|
14
|
-
<ig-funnel-chart [options]="weightedOptions" widgetId="chartWeighted">
|
|
15
|
-
</ig-funnel-chart>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div style="float: left; width: 500px; height: 500px;">
|
|
19
|
-
<ig-funnel-chart [options]="invertedOptions" widgetId="chartInverted">
|
|
20
|
-
</ig-funnel-chart>
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
`
|
|
24
|
-
})
|
|
25
|
-
export class $(ClassName)Component {
|
|
26
|
-
public normalOptions: IgDataChart;
|
|
27
|
-
public weightedOptions: IgDataChart;
|
|
28
|
-
public invertedOptions: IgDataChart;
|
|
29
|
-
public data: any;
|
|
30
|
-
|
|
31
|
-
constructor() {
|
|
32
|
-
this.data = funnelData;
|
|
33
|
-
this.normalOptions = {
|
|
34
|
-
width: "325px",
|
|
35
|
-
height: "450px",
|
|
36
|
-
dataSource: this.data,
|
|
37
|
-
responseDataKey: "data",
|
|
38
|
-
valueMemberPath: "Budget",
|
|
39
|
-
innerLabelMemberPath: "Budget",
|
|
40
|
-
innerLabelVisibility: "visible",
|
|
41
|
-
outerLabelMemberPath: "Department",
|
|
42
|
-
outerLabelVisibility: "visible"
|
|
43
|
-
};
|
|
44
|
-
this.weightedOptions = {
|
|
45
|
-
width: "325px",
|
|
46
|
-
height: "450px",
|
|
47
|
-
leftMargin: 20,
|
|
48
|
-
dataSource: this.data,
|
|
49
|
-
responseDataKey: "data",
|
|
50
|
-
valueMemberPath: "Budget",
|
|
51
|
-
innerLabelMemberPath: "Budget",
|
|
52
|
-
innerLabelVisibility: "visible",
|
|
53
|
-
outerLabelMemberPath: "Department",
|
|
54
|
-
outerLabelVisibility: "visible",
|
|
55
|
-
funnelSliceDisplay: "weighted"
|
|
56
|
-
};
|
|
57
|
-
this.invertedOptions = {
|
|
58
|
-
width: "325px",
|
|
59
|
-
height: "450px",
|
|
60
|
-
leftMargin: 20,
|
|
61
|
-
dataSource: this.data,
|
|
62
|
-
responseDataKey: "data",
|
|
63
|
-
valueMemberPath: "Budget",
|
|
64
|
-
innerLabelMemberPath: "Budget",
|
|
65
|
-
innerLabelVisibility: "visible",
|
|
66
|
-
isInverted: true
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -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 FunnelChartTemplate extends AngularTemplate_1.AngularTemplate {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(__dirname);
|
|
7
|
-
this.components = ["Funnel Chart"];
|
|
8
|
-
this.controlGroup = "Charts";
|
|
9
|
-
this.listInComponentTemplates = true;
|
|
10
|
-
this.id = "funnel-chart";
|
|
11
|
-
this.projectType = "ig-ts";
|
|
12
|
-
this.name = "Funnel Chart";
|
|
13
|
-
this.description = "igFunnelChart template";
|
|
14
|
-
this.dependencies = ["igFunnelChart"];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
module.exports = new FunnelChartTemplate();
|
|
@@ -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 FunnelChartComponent extends cli_core_1.BaseComponent {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
constructor() {
|
|
9
|
-
super(__dirname);
|
|
10
|
-
this.name = "Funnel Chart";
|
|
11
|
-
this.group = "Charts";
|
|
12
|
-
this.description = "displays funnel chart in HTML5 web applications and is based on the canvas element.";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
module.exports = new FunnelChartComponent();
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "$(templateName)",
|
|
3
|
-
"name": "$(templateName)",
|
|
4
|
-
"description": "Ignite UI wrappers for Angular template created with Ignite UI CLI",
|
|
5
|
-
"framework": "$(templateFramework)",
|
|
6
|
-
"projectType": "$(templateType)",
|
|
7
|
-
"components": [],
|
|
8
|
-
"controlGroup": "",
|
|
9
|
-
"listInCustomTemplates": true,
|
|
10
|
-
"listInComponentTemplates": false,
|
|
11
|
-
"dependencies": [],
|
|
12
|
-
"packages": []
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var products = [
|
|
2
|
-
{ "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
|
|
3
|
-
{ "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
|
|
4
|
-
{ "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
|
|
5
|
-
{ "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
|
|
6
|
-
{ "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
|
|
7
|
-
{ "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
|
|
8
|
-
{ "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
|
|
9
|
-
{ "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
|
|
10
|
-
{ "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
|
|
11
|
-
];
|
|
12
|
-
export { products };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { products } from "../../assets/northwindProducts";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<ig-grid [options]="gridOptions" widgetId="grid"></ig-grid>
|
|
9
|
-
`
|
|
10
|
-
})
|
|
11
|
-
export class $(ClassName)Component {
|
|
12
|
-
public gridOptions: IgGrid;
|
|
13
|
-
public products: any[];
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this.products = products;
|
|
17
|
-
this.gridOptions = {
|
|
18
|
-
columns: [
|
|
19
|
-
{ headerText: "Product ID", key: "ProductID", dataType: "number" },
|
|
20
|
-
{ headerText: "Product Name", key: "Name", dataType: "string" },
|
|
21
|
-
{ headerText: "Product Number", key: "ProductNumber", dataType: "string" }
|
|
22
|
-
],
|
|
23
|
-
width: "500px",
|
|
24
|
-
dataSource: this.products,
|
|
25
|
-
features: $(gridFeatures)
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
package/templates/angular/ig-ts/grid/basic/files/src/app/components/__path__/__filePrefix__.spec.ts
DELETED
|
@@ -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,41 +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 GridTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "grid";
|
|
10
|
-
this.widget = "igGrid";
|
|
11
|
-
this.name = "Grid";
|
|
12
|
-
this.controlGroup = "Data Grids";
|
|
13
|
-
this.description = "igGrid default template";
|
|
14
|
-
this.dependencies = ["igGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.extraConfigurations = [];
|
|
17
|
-
this.hasExtraConfiguration = true;
|
|
18
|
-
this.listInComponentTemplates = true;
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
const featureConfiguration = {
|
|
21
|
-
choices: ["Sorting", "Paging", "Filtering"],
|
|
22
|
-
default: "",
|
|
23
|
-
key: "features",
|
|
24
|
-
message: "Select features for the igGrid",
|
|
25
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
26
|
-
};
|
|
27
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
28
|
-
}
|
|
29
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
30
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
31
|
-
}
|
|
32
|
-
generateConfig(name, ...options) {
|
|
33
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
34
|
-
const config = { gridFeatures: features };
|
|
35
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
36
|
-
}
|
|
37
|
-
getExtraConfiguration() {
|
|
38
|
-
return this.extraConfigurations;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
module.exports = new GridTemplate();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var products = [
|
|
2
|
-
{ "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
|
|
3
|
-
{ "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
|
|
4
|
-
{ "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
|
|
5
|
-
{ "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
|
|
6
|
-
{ "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
|
|
7
|
-
{ "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
|
|
8
|
-
{ "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
|
|
9
|
-
{ "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
|
|
10
|
-
{ "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
|
|
11
|
-
];
|
|
12
|
-
export { products };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { products } from "../../assets/northwindProducts";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<ig-grid [options]="gridOptions" widgetId="grid-custom"></ig-grid>
|
|
9
|
-
`
|
|
10
|
-
})
|
|
11
|
-
export class $(ClassName)Component {
|
|
12
|
-
public gridOptions: IgGrid;
|
|
13
|
-
public products: any[];
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this.products = products;
|
|
17
|
-
this.gridOptions = {
|
|
18
|
-
columns: [
|
|
19
|
-
{ headerText: "Product ID", key: "ProductID", dataType: "number" },
|
|
20
|
-
{ headerText: "Product Name", key: "Name", dataType: "string" },
|
|
21
|
-
{ headerText: "Product Number", key: "ProductNumber", dataType: "string" }
|
|
22
|
-
],
|
|
23
|
-
autofitLastColumn: false,
|
|
24
|
-
autoGenerateColumns: false,
|
|
25
|
-
width: "900px",
|
|
26
|
-
dataSource: this.products,
|
|
27
|
-
autoCommit: true,
|
|
28
|
-
primaryKey: "ProductID",
|
|
29
|
-
features: $(gridFeatures)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -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,45 +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 GridCustomTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "grid-custom";
|
|
10
|
-
this.name = "Custom Grid";
|
|
11
|
-
this.widget = "igGrid";
|
|
12
|
-
this.controlGroup = "Data Grids";
|
|
13
|
-
this.description = "igGrid custom template for Angular";
|
|
14
|
-
this.dependencies = ["igGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.extraConfigurations = [];
|
|
17
|
-
this.hasExtraConfiguration = true;
|
|
18
|
-
this.listInComponentTemplates = true;
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
const featureConfiguration = {
|
|
21
|
-
choices: [
|
|
22
|
-
"Sorting", "Selection", "Updating", "Filtering", "ColumnMoving",
|
|
23
|
-
"Summaries", "GroupBy", "Resizing", "Hiding"
|
|
24
|
-
],
|
|
25
|
-
default: "",
|
|
26
|
-
key: "features",
|
|
27
|
-
message: "Select features for the igGrid",
|
|
28
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
29
|
-
};
|
|
30
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
31
|
-
}
|
|
32
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
33
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
34
|
-
}
|
|
35
|
-
generateConfig(name, ...options) {
|
|
36
|
-
this.gridHelper.addFeature("Updating");
|
|
37
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
38
|
-
const config = { gridFeatures: features };
|
|
39
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
40
|
-
}
|
|
41
|
-
getExtraConfiguration() {
|
|
42
|
-
return this.extraConfigurations;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
module.exports = new GridCustomTemplate();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var products = [
|
|
2
|
-
{ "ProductID": 1, "Name": "Adjustable Race", "ProductNumber": "AR-5381", "Category": { "ID": 0, "Name": "Food", "Active": true, "Date": "\/Date(1059660800000)\/" } },
|
|
3
|
-
{ "ProductID": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1159660800000)\/" } },
|
|
4
|
-
{ "ProductID": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1259660800000)\/" } },
|
|
5
|
-
{ "ProductID": 4, "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908", "Category": { "ID": 1, "Name": "Beverages", "Active": true, "Date": "\/Date(1359660800000)\/" } },
|
|
6
|
-
{ "ProductID": 316, "Name": "Blade", "ProductNumber": "BL-2036", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1459660800000)\/" } },
|
|
7
|
-
{ "ProductID": 317, "Name": "LL Crankarm", "ProductNumber": "CA-5965", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1559660800000)\/" } },
|
|
8
|
-
{ "ProductID": 318, "Name": "ML Crankarm", "ProductNumber": "CA-6738", "Category": { "ID": 1, "Name": "Beverages", "Active": false, "Date": "\/Date(1659660800000)\/" } },
|
|
9
|
-
{ "ProductID": 319, "Name": "HL Crankarm", "ProductNumber": "CA-7457", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1759660800000)\/" } },
|
|
10
|
-
{ "ProductID": 320, "Name": "Chainring Bolts", "ProductNumber": "CB-2903", "Category": { "ID": 2, "Name": "Electronics", "Active": false, "Date": "\/Date(1859660800000)\/" } }
|
|
11
|
-
];
|
|
12
|
-
export { products };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { products } from "../../assets/northwindProducts";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "$(filePrefix)",
|
|
6
|
-
template: `
|
|
7
|
-
<h1>$(description)</h1>
|
|
8
|
-
<ig-grid [options]="gridOptions" widgetId="grid-editing"></ig-grid>
|
|
9
|
-
`
|
|
10
|
-
})
|
|
11
|
-
export class $(ClassName)Component {
|
|
12
|
-
public gridOptions: IgGrid;
|
|
13
|
-
public products: any[];
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this.products = products;
|
|
17
|
-
this.gridOptions = {
|
|
18
|
-
columns: [
|
|
19
|
-
{ headerText: "Product ID", key: "ProductID", dataType: "number" },
|
|
20
|
-
{ headerText: "Product Name", key: "Name", dataType: "string" },
|
|
21
|
-
{ headerText: "Product Number", key: "ProductNumber", dataType: "string" }
|
|
22
|
-
],
|
|
23
|
-
width: "500px",
|
|
24
|
-
dataSource: this.products,
|
|
25
|
-
autoCommit: true,
|
|
26
|
-
primaryKey: "ProductID",
|
|
27
|
-
features: $(gridFeatures)
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -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 GridEditingTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "grid-editing";
|
|
10
|
-
this.name = "Grid Editing";
|
|
11
|
-
this.widget = "igGrid";
|
|
12
|
-
this.controlGroup = "Data Grids";
|
|
13
|
-
this.description = "igGrid editing template for Angular";
|
|
14
|
-
this.dependencies = ["igGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.extraConfigurations = [];
|
|
17
|
-
this.hasExtraConfiguration = true;
|
|
18
|
-
this.listInComponentTemplates = true;
|
|
19
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
20
|
-
const featureConfiguration = {
|
|
21
|
-
choices: ["Sorting", "Filtering"],
|
|
22
|
-
default: "",
|
|
23
|
-
key: "features",
|
|
24
|
-
message: "Select features for the igGrid",
|
|
25
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
26
|
-
};
|
|
27
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
28
|
-
}
|
|
29
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
30
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
31
|
-
}
|
|
32
|
-
generateConfig(name, ...options) {
|
|
33
|
-
this.gridHelper.addFeature("Updating");
|
|
34
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
35
|
-
const config = { gridFeatures: features };
|
|
36
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
37
|
-
}
|
|
38
|
-
getExtraConfiguration() {
|
|
39
|
-
return this.extraConfigurations;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
module.exports = new GridEditingTemplate();
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var employees = [
|
|
2
|
-
{ "EmployeeID": "56250fa57ab1535722e564a6", "FirstName": "Downs", "LastName": "Holcomb", "Country": "Italy", "Age": 35, "RegistererDate": "07/25/2015", "IsActive": false },
|
|
3
|
-
{ "EmployeeID": "56250fa5c0fd04f12555d44d", "FirstName": "Mckenzie", "LastName": "Calderon", "Country": "USA", "Age": 26, "RegistererDate": "09/22/2014", "IsActive": false },
|
|
4
|
-
{ "EmployeeID": "56250fa565a7bcc21f6bd15e", "FirstName": "Howell", "LastName": "Hawkins", "Country": "Canada", "Age": 25, "RegistererDate": "08/08/2015", "IsActive": false },
|
|
5
|
-
{ "EmployeeID": "56250fa5d71a83c33f3f6479", "FirstName": "Sheppard", "LastName": "Nicholson", "Country": "Italy", "Age": 49, "RegistererDate": "06/28/2014", "IsActive": false },
|
|
6
|
-
{ "EmployeeID": "56250fa546abbe8c616d37eb", "FirstName": "Bettye", "LastName": "Trujillo", "Country": "Canada", "Age": 37, "RegistererDate": "04/19/2015", "IsActive": false },
|
|
7
|
-
{ "EmployeeID": "56250fa535809820f2c44291", "FirstName": "Joyce", "LastName": "Vaughan", "Country": "USA", "Age": 48, "RegistererDate": "04/24/2014", "IsActive": false },
|
|
8
|
-
{ "EmployeeID": "56250fa5732f6adc0b52ace0", "FirstName": "Janine", "LastName": "Munoz", "Country": "USA", "Age": 59, "RegistererDate": "02/09/2014", "IsActive": true },
|
|
9
|
-
{ "EmployeeID": "56250fa540b15dfd507cffb9", "FirstName": "Betsy", "LastName": "Short", "Country": "USA", "Age": 26, "RegistererDate": "06/04/2015", "IsActive": false },
|
|
10
|
-
{ "EmployeeID": "56250fa5a33146a85fdeda66", "FirstName": "Tanisha", "LastName": "Harrington", "Country": "USA", "Age": 31, "RegistererDate": "11/25/2014", "IsActive": false },
|
|
11
|
-
{ "EmployeeID": "56250fa572bea435113bb3be", "FirstName": "French", "LastName": "Sullivan", "Country": "Italy", "Age": 37, "RegistererDate": "08/16/2015", "IsActive": true },
|
|
12
|
-
{ "EmployeeID": "56250fa55f17965b7b19e3cf", "FirstName": "Gomez", "LastName": "Sandoval", "Country": "Italy", "Age": 24, "RegistererDate": "06/19/2014", "IsActive": true },
|
|
13
|
-
{ "EmployeeID": "56250fa5f630e559e163de06", "FirstName": "Estes", "LastName": "Soto", "Country": "Canada", "Age": 24, "RegistererDate": "03/28/2015", "IsActive": false }
|
|
14
|
-
];
|
|
15
|
-
export { employees };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { employees } from "../../assets/employees";
|
|
3
|
-
import 'file-saver';
|
|
4
|
-
|
|
5
|
-
declare var $: any;
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: "$(filePrefix)",
|
|
9
|
-
template: `
|
|
10
|
-
<h1>$(description)</h1>
|
|
11
|
-
<h2>Select columns to ignore</h2>
|
|
12
|
-
<div>
|
|
13
|
-
<ig-combo [options]="comboOptions" widgetId="combo"></ig-combo>
|
|
14
|
-
<input type="button" id="exportBtn" value="Export grid" (click)="export($event)" />
|
|
15
|
-
</div>
|
|
16
|
-
<ig-grid [options]="gridOptions" widgetId="grid-export"></ig-grid>
|
|
17
|
-
`,
|
|
18
|
-
styles: [`
|
|
19
|
-
.ui-igcombo-wrapper {
|
|
20
|
-
margin: 1px;
|
|
21
|
-
height: 30px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
#exportBtn {
|
|
25
|
-
height: 30px;
|
|
26
|
-
vertical-align: top;
|
|
27
|
-
}`
|
|
28
|
-
]
|
|
29
|
-
})
|
|
30
|
-
export class $(ClassName)Component {
|
|
31
|
-
public comboOptions: IgCombo;
|
|
32
|
-
public gridOptions: IgGrid;
|
|
33
|
-
public data: any[];
|
|
34
|
-
public export: any;
|
|
35
|
-
public keys: any[];
|
|
36
|
-
public columnsToSkip: any[];
|
|
37
|
-
|
|
38
|
-
constructor() {
|
|
39
|
-
this.keys = ["EmployeeID", "LastName", "Country", "Age", "IsActive", "Company", "RegistererDate"];
|
|
40
|
-
this.comboOptions = {
|
|
41
|
-
width: "200px",
|
|
42
|
-
height: "30px",
|
|
43
|
-
mode: "dropdown",
|
|
44
|
-
dataSource: this.keys,
|
|
45
|
-
multiSelection: {
|
|
46
|
-
enabled: true,
|
|
47
|
-
showCheckboxes: true
|
|
48
|
-
},
|
|
49
|
-
selectionChanged: function (evt, ui) {
|
|
50
|
-
this.columnsToSkip = [];
|
|
51
|
-
let selection = ui.items;
|
|
52
|
-
for (let entry of selection) {
|
|
53
|
-
this.columnsToSkip.push(entry.data.text);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
this.columnsToSkip = [];
|
|
58
|
-
|
|
59
|
-
this.data = employees;
|
|
60
|
-
this.gridOptions = {
|
|
61
|
-
columns: [
|
|
62
|
-
{ headerText: "Employee ID", key: "EmployeeID", dataType: "string", hidden: true },
|
|
63
|
-
{ headerText: "Last Name", key: "LastName", width: "15%", dataType: "string" },
|
|
64
|
-
{ headerText: "Country", key: "Country", width: "15%", dataType: "string" },
|
|
65
|
-
{ headerText: "Age", key: "Age", width: "15%", dataType: "number" },
|
|
66
|
-
{ headerText: "Is Active", key: "IsActive", width: "15%", dataType: "bool", format: "checkbox" },
|
|
67
|
-
{ headerText: "Company", key: "Company", width: "20%", dataType: "string", unbound: true, formula: function () { return "http://infragistics.com/"; } },
|
|
68
|
-
{ headerText: "Register Date", key: "RegistererDate", width: "20%", dataType: "date" }
|
|
69
|
-
],
|
|
70
|
-
autofitLastColumn: true,
|
|
71
|
-
autoGenerateColumns: false,
|
|
72
|
-
width: "100%",
|
|
73
|
-
dataSource: this.data,
|
|
74
|
-
autoCommit: true,
|
|
75
|
-
primaryKey: "EmployeeID",
|
|
76
|
-
features: $(gridFeatures)
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
this.export = () => {
|
|
80
|
-
$.ig.GridExcelExporter.exportGrid($("#grid-export"), {
|
|
81
|
-
fileName: "igGrid",
|
|
82
|
-
worksheetName: "Page1",
|
|
83
|
-
gridStyling: "none",
|
|
84
|
-
columnsToSkip: this.columnsToSkip
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|