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,368 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: "$(filePrefix)",
|
|
5
|
-
template: `
|
|
6
|
-
<h2>$(description)</h2>
|
|
7
|
-
<p>To calculate the approximate cost of your monthly installment you can use our credit calculator.</p>
|
|
8
|
-
<div id="container">
|
|
9
|
-
<div id="igCheckboxEditorsContainer">
|
|
10
|
-
<form id="form" (ngSubmit)="onSubmit()">
|
|
11
|
-
<table>
|
|
12
|
-
<tr>
|
|
13
|
-
<td>
|
|
14
|
-
<ig-text-editor class="divHeight" [options]="firstNameOptions" [disabled]="!editorsEnabled" [(ngModel)]="firstNameOptions.value"
|
|
15
|
-
[ngModelOptions]="{standalone: true}" widgetId="firstName"></ig-text-editor>
|
|
16
|
-
</td>
|
|
17
|
-
<td>
|
|
18
|
-
First name
|
|
19
|
-
</td>
|
|
20
|
-
</tr>
|
|
21
|
-
<tr>
|
|
22
|
-
<td>
|
|
23
|
-
<ig-text-editor class="divHeight" [options]="lastNameOptions" [disabled]="!editorsEnabled" [(ngModel)]="lastNameOptions.value"
|
|
24
|
-
[ngModelOptions]="{standalone: true}" widgetId="lastName" ></ig-text-editor>
|
|
25
|
-
</td>
|
|
26
|
-
<td>
|
|
27
|
-
Last name
|
|
28
|
-
</td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr>
|
|
31
|
-
<td>
|
|
32
|
-
<ig-numeric-editor class="divHeight" [options]="creditAmountOptions" [disabled]="!editorsEnabled" [(ngModel)]="creditAmountOptions.value"
|
|
33
|
-
[ngModelOptions]="{standalone: true}" widgetId="creditAmount"></ig-numeric-editor>
|
|
34
|
-
</td>
|
|
35
|
-
<td>
|
|
36
|
-
Credit amount
|
|
37
|
-
</td>
|
|
38
|
-
</tr>
|
|
39
|
-
<tr>
|
|
40
|
-
<td>
|
|
41
|
-
<ig-text-editor class="divHeight" [options]="currencyOptions" [disabled]="!editorsEnabled" [(ngModel)]="currencyOptions.value"
|
|
42
|
-
[ngModelOptions]="{standalone: true}" widgetId="currency"></ig-text-editor>
|
|
43
|
-
</td>
|
|
44
|
-
<td>
|
|
45
|
-
Currency
|
|
46
|
-
</td>
|
|
47
|
-
</tr>
|
|
48
|
-
<tr>
|
|
49
|
-
<td>
|
|
50
|
-
<ig-percent-editor class="divHeight" [options]="interestRateOptions" [disabled]="!editorsEnabled" [(ngModel)]="interestRateOptions.value"
|
|
51
|
-
[ngModelOptions]="{standalone: true}" widgetId="interestRate"></ig-percent-editor>
|
|
52
|
-
</td>
|
|
53
|
-
<td>
|
|
54
|
-
Interest rate
|
|
55
|
-
</td>
|
|
56
|
-
</tr>
|
|
57
|
-
<tr>
|
|
58
|
-
<td>
|
|
59
|
-
<ig-date-picker class="divHeight" [options]="startDateOfCreditOptions" [disabled]="!editorsEnabled" [(ngModel)]="startDateOfCreditOptions.value"
|
|
60
|
-
[ngModelOptions]="{standalone: true}" widgetId="startDateOfCredit"></ig-date-picker>
|
|
61
|
-
</td>
|
|
62
|
-
<td>
|
|
63
|
-
Start date of the credit
|
|
64
|
-
</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td>
|
|
68
|
-
<ig-numeric-editor class="divHeight" [options]="termOptions" [disabled]="!editorsEnabled" [(ngModel)]="termOptions.value"
|
|
69
|
-
[ngModelOptions]="{standalone: true}" widgetId="term"></ig-numeric-editor>
|
|
70
|
-
</td>
|
|
71
|
-
<td>
|
|
72
|
-
Term
|
|
73
|
-
</td>
|
|
74
|
-
</tr>
|
|
75
|
-
<tr>
|
|
76
|
-
<td>
|
|
77
|
-
<ig-checkbox-editor class="divHeight" [options]="salaryInBankOptions" [disabled]="!editorsEnabled" [(ngModel)]="salaryInBankOptions.value"
|
|
78
|
-
[ngModelOptions]="{standalone: true}" widgetId="salaryInBank" (click)="checkboxClicked()"></ig-checkbox-editor>
|
|
79
|
-
<label> Is your salary transferred in the bank</label>
|
|
80
|
-
</td>
|
|
81
|
-
</tr>
|
|
82
|
-
<tr>
|
|
83
|
-
<td>
|
|
84
|
-
<ig-mask-editor class="divHeight" [options]="pinOptions" [disabled]="!editorsEnabled" [(ngModel)]="pinOptions.value"
|
|
85
|
-
[ngModelOptions]="{standalone: true}" widgetId="pin" [hidden]="!show"></ig-mask-editor>
|
|
86
|
-
</td>
|
|
87
|
-
</tr>
|
|
88
|
-
<tr>
|
|
89
|
-
<td>
|
|
90
|
-
<div class="divHeight"><input id="btnReset" type="button" value="Reset" (click)="reset()" />
|
|
91
|
-
<input id="btnEnable" type="button" value="Enable" [disabled] = "!btnEnabled" (click)="disableEditors(false)"/>
|
|
92
|
-
<input type="submit" id="submitBtn" value="Submit" /></div>
|
|
93
|
-
</td>
|
|
94
|
-
</tr>
|
|
95
|
-
</table>
|
|
96
|
-
</form>
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
<div id="valuesContainer" [hidden]="!showValuesContainer">
|
|
100
|
-
<h3>Credit Details:</h3>
|
|
101
|
-
<p>Dear Madam / Sir {{lastNameOptions.value}}, following are the details for your loan: </p>
|
|
102
|
-
<br>
|
|
103
|
-
<table class="creditTable">
|
|
104
|
-
<tr>
|
|
105
|
-
<td>
|
|
106
|
-
Your credit:
|
|
107
|
-
</td>
|
|
108
|
-
<td>
|
|
109
|
-
<div class="divHeight">
|
|
110
|
-
<ig-currency-editor [options]="resultOptions" [(ngModel)]="resultOptions.value"
|
|
111
|
-
[ngModelOptions]="{standalone: true}" widgetId="resultCredit" ></ig-currency-editor>
|
|
112
|
-
</div>
|
|
113
|
-
</td>
|
|
114
|
-
</tr>
|
|
115
|
-
<tr>
|
|
116
|
-
<td>
|
|
117
|
-
You will have to return
|
|
118
|
-
</td>
|
|
119
|
-
<td>
|
|
120
|
-
<div class="divHeight">
|
|
121
|
-
<ig-currency-editor [options]="returnValueOptions" [(ngModel)]="returnValueOptions.value"
|
|
122
|
-
[ngModelOptions]="{standalone: true}" widgetId="returnValue"></ig-currency-editor>
|
|
123
|
-
</div>
|
|
124
|
-
</td>
|
|
125
|
-
</tr>
|
|
126
|
-
<tr>
|
|
127
|
-
<td>
|
|
128
|
-
Your monthly payment will be
|
|
129
|
-
</td>
|
|
130
|
-
<td>
|
|
131
|
-
<div class="divHeight">
|
|
132
|
-
<ig-currency-editor [options]="monthlyPaymentOptions" [(ngModel)]="monthlyPaymentOptions.value"
|
|
133
|
-
[ngModelOptions]="{standalone: true}" widgetId="monthlyPaymentValue"></ig-currency-editor>
|
|
134
|
-
</div>
|
|
135
|
-
</td>
|
|
136
|
-
</tr>
|
|
137
|
-
</table>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
`,
|
|
141
|
-
styles: [`
|
|
142
|
-
#container {
|
|
143
|
-
width: 100%;
|
|
144
|
-
min-width: 900px;
|
|
145
|
-
max-width: 900px;
|
|
146
|
-
display: inline-block;
|
|
147
|
-
background-image: url("src/app/assets/logo.jpg");
|
|
148
|
-
background-size: 90%;
|
|
149
|
-
background-repeat: no-repeat;
|
|
150
|
-
background-position: right bottom;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
#igCheckboxEditorsContainer {
|
|
154
|
-
top: 0px;
|
|
155
|
-
left: 0px;
|
|
156
|
-
height: 500px;
|
|
157
|
-
width: 480px;
|
|
158
|
-
padding-top: 15px;
|
|
159
|
-
float: left;
|
|
160
|
-
font-size: 14px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
#valuesContainer {
|
|
164
|
-
top: 0px;
|
|
165
|
-
right: 0px;
|
|
166
|
-
height: 500px;
|
|
167
|
-
width: 100%;
|
|
168
|
-
padding-top: 15px;
|
|
169
|
-
font-size: 14px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
#valuesContainer.p {
|
|
173
|
-
font-size: 14px;
|
|
174
|
-
}
|
|
175
|
-
@media only screen and (max-width:780px){
|
|
176
|
-
#igCheckboxEditorsContainer
|
|
177
|
-
{
|
|
178
|
-
float: none;
|
|
179
|
-
height: auto;
|
|
180
|
-
}
|
|
181
|
-
#valuesContainer{
|
|
182
|
-
margin-top: 20px;
|
|
183
|
-
}
|
|
184
|
-
#container{
|
|
185
|
-
background-image:none;
|
|
186
|
-
}
|
|
187
|
-
}`]
|
|
188
|
-
})
|
|
189
|
-
export class $(ClassName)Component {
|
|
190
|
-
public show = false;
|
|
191
|
-
public showValuesContainer = false;
|
|
192
|
-
public btnEnabled = false;
|
|
193
|
-
public editorsEnabled = true;
|
|
194
|
-
public listData = ["EUR", "USD", "GBP"];
|
|
195
|
-
|
|
196
|
-
public doOnLoad: any;
|
|
197
|
-
public getResult: any;
|
|
198
|
-
public reset: any;
|
|
199
|
-
public onSubmit: any;
|
|
200
|
-
public disableEditors: any;
|
|
201
|
-
public checkboxClicked: any;
|
|
202
|
-
|
|
203
|
-
public firstNameOptions: IgTextEditor;
|
|
204
|
-
public lastNameOptions: IgTextEditor;
|
|
205
|
-
public creditAmountOptions: IgNumericEditor;
|
|
206
|
-
public currencyOptions: IgTextEditor;
|
|
207
|
-
public interestRateOptions: IgPercentEditor;
|
|
208
|
-
public startDateOfCreditOptions: IgDatePicker;
|
|
209
|
-
public termOptions: IgNumericEditor;
|
|
210
|
-
public salaryInBankOptions: IgCheckboxEditor;
|
|
211
|
-
public pinOptions: IgMaskEditor;
|
|
212
|
-
public resultOptions: IgCurrencyEditor;
|
|
213
|
-
public returnValueOptions: IgCurrencyEditor;
|
|
214
|
-
public monthlyPaymentOptions: IgCurrencyEditor;
|
|
215
|
-
|
|
216
|
-
constructor() {
|
|
217
|
-
this.firstNameOptions = {
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
this.lastNameOptions = {
|
|
221
|
-
toUpper: true
|
|
222
|
-
};
|
|
223
|
-
this.creditAmountOptions = {
|
|
224
|
-
placeHolder: "e.g. 3000",
|
|
225
|
-
value: 1000,
|
|
226
|
-
minValue: 500,
|
|
227
|
-
maxValue: 10000
|
|
228
|
-
};
|
|
229
|
-
this.currencyOptions = {
|
|
230
|
-
buttonType: "dropdown",
|
|
231
|
-
listItems: this.listData,
|
|
232
|
-
visibleItemsCount: 2,
|
|
233
|
-
value: "EUR"
|
|
234
|
-
};
|
|
235
|
-
this.interestRateOptions = {
|
|
236
|
-
placeHolder: "Interest rate",
|
|
237
|
-
displayFactor: 1,
|
|
238
|
-
value: 8.70,
|
|
239
|
-
minValue: 6.70,
|
|
240
|
-
maxValue: 16
|
|
241
|
-
};
|
|
242
|
-
this.startDateOfCreditOptions = {
|
|
243
|
-
placeHolder: "e.g. " + new Date().getDay() + "/10/" + new Date().getFullYear(),
|
|
244
|
-
minValue: new Date(2015, 5, 1),
|
|
245
|
-
maxValue: new Date(2020, 11, 31),
|
|
246
|
-
value: new Date(),
|
|
247
|
-
locale: "en",
|
|
248
|
-
regional: "en"
|
|
249
|
-
};
|
|
250
|
-
this.termOptions = {
|
|
251
|
-
placeHolder: "Term (months)",
|
|
252
|
-
value: 24,
|
|
253
|
-
minValue: 6,
|
|
254
|
-
maxValue: 120,
|
|
255
|
-
buttonType: "spin",
|
|
256
|
-
spinDelta: 6
|
|
257
|
-
};
|
|
258
|
-
this.salaryInBankOptions = {
|
|
259
|
-
value: false,
|
|
260
|
-
checked: false
|
|
261
|
-
};
|
|
262
|
-
this.pinOptions = {
|
|
263
|
-
placeHolder: "Enter your PIN",
|
|
264
|
-
inputMask: "LL-000",
|
|
265
|
-
show: this.show
|
|
266
|
-
};
|
|
267
|
-
this.resultOptions = {
|
|
268
|
-
readOnly: true,
|
|
269
|
-
width: 150,
|
|
270
|
-
currencySymbol: "€"
|
|
271
|
-
};
|
|
272
|
-
this.returnValueOptions = {
|
|
273
|
-
readOnly: true,
|
|
274
|
-
width: 150,
|
|
275
|
-
currencySymbol: "€"
|
|
276
|
-
};
|
|
277
|
-
this.monthlyPaymentOptions = {
|
|
278
|
-
readOnly: true,
|
|
279
|
-
width: 150,
|
|
280
|
-
currencySymbol: "€"
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
this.checkboxClicked = () => {
|
|
284
|
-
this.show = !this.show;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
this.doOnLoad = () => {
|
|
288
|
-
this.showValuesContainer = false;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
this.onSubmit = () => {
|
|
292
|
-
// calculate the total amount of the credit
|
|
293
|
-
const sumToGive = this.creditAmountOptions.value;
|
|
294
|
-
const loanPeriod = this.termOptions.value;
|
|
295
|
-
const salaryIsInBank = this.salaryInBankOptions.value;
|
|
296
|
-
let selectedInterestRate = this.interestRateOptions.value;
|
|
297
|
-
|
|
298
|
-
if (salaryIsInBank) {
|
|
299
|
-
selectedInterestRate -= 1;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
const monthlyPaymentNoInterestRate = sumToGive / loanPeriod;
|
|
303
|
-
const interestRate = parseFloat(selectedInterestRate) / 100.0;
|
|
304
|
-
const monthlyInterestRate = monthlyPaymentNoInterestRate * interestRate;
|
|
305
|
-
const monthlyPaymentInterestRate = monthlyPaymentNoInterestRate + monthlyInterestRate;
|
|
306
|
-
const sumToReceive = monthlyPaymentInterestRate * loanPeriod;
|
|
307
|
-
|
|
308
|
-
this.getResult(sumToGive, sumToReceive, monthlyPaymentInterestRate);
|
|
309
|
-
this.disableEditors(true);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
this.reset = () => {
|
|
313
|
-
this.firstNameOptions.value = "";
|
|
314
|
-
this.lastNameOptions.value = "";
|
|
315
|
-
this.creditAmountOptions.value = 1000;
|
|
316
|
-
this.currencyOptions.value = "EUR";
|
|
317
|
-
this.interestRateOptions.value = 8.70;
|
|
318
|
-
this.startDateOfCreditOptions.value = new Date();
|
|
319
|
-
this.termOptions.value = 24;
|
|
320
|
-
this.salaryInBankOptions.value = false; //has value() for both IgCheckboxEditor and IgCheckboxEditorComponent.
|
|
321
|
-
this.pinOptions.value = "";
|
|
322
|
-
this.disableEditors(false);
|
|
323
|
-
this.show = false;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
this.disableEditors = (disable: boolean) => {
|
|
327
|
-
this.editorsEnabled = !disable;
|
|
328
|
-
this.btnEnabled = disable;
|
|
329
|
-
|
|
330
|
-
if (!disable) {
|
|
331
|
-
this.resultOptions.value = null;
|
|
332
|
-
this.returnValueOptions.value = null;
|
|
333
|
-
this.monthlyPaymentOptions.value = null;
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
this.getResult = (creditAmount: any, getSumToReceive: any, getMonthlyPaymentInterestRate: any) => {
|
|
338
|
-
this.showValuesContainer = true;
|
|
339
|
-
let currencySymbol;
|
|
340
|
-
const selectedCurrency = this.currencyOptions.value;
|
|
341
|
-
const returnAmount = Math.round(getSumToReceive).toFixed(2);
|
|
342
|
-
const monthlyPayment = Math.round(getMonthlyPaymentInterestRate).toFixed(2);
|
|
343
|
-
|
|
344
|
-
switch (selectedCurrency) {
|
|
345
|
-
case "EUR":
|
|
346
|
-
currencySymbol = "€";
|
|
347
|
-
break;
|
|
348
|
-
case "USD":
|
|
349
|
-
currencySymbol = "$";
|
|
350
|
-
break;
|
|
351
|
-
case "GBP":
|
|
352
|
-
currencySymbol = "£";
|
|
353
|
-
break;
|
|
354
|
-
default:
|
|
355
|
-
currencySymbol = "€";
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
this.resultOptions.currencySymbol = currencySymbol;
|
|
359
|
-
this.resultOptions.value = creditAmount;
|
|
360
|
-
|
|
361
|
-
this.returnValueOptions.currencySymbol = currencySymbol;
|
|
362
|
-
this.returnValueOptions.value = returnAmount;
|
|
363
|
-
|
|
364
|
-
this.monthlyPaymentOptions.currencySymbol = currencySymbol;
|
|
365
|
-
this.monthlyPaymentOptions.value = monthlyPayment;
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const AngularTemplate_1 = require("../../../../../lib/templates/AngularTemplate");
|
|
4
|
-
class EditorsCalculationForm extends AngularTemplate_1.AngularTemplate {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(__dirname);
|
|
7
|
-
this.userExtraConfiguration = {};
|
|
8
|
-
this.id = "editors-calculation-form";
|
|
9
|
-
this.projectType = "ig-ts";
|
|
10
|
-
this.listInComponentTemplates = false;
|
|
11
|
-
this.listInCustomTemplates = true;
|
|
12
|
-
this.name = "Editors Data Calculation Form";
|
|
13
|
-
this.description = "shows basic options of the igNumericEditor, igTextEditor, igCheckbox, " +
|
|
14
|
-
"igPercentEditor, igMaskEditor and igDateEditor, demonstrated with a loan calculator.";
|
|
15
|
-
this.dependencies = ["igEditors", "igCombo", "igValidator"];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
module.exports = new EditorsCalculationForm();
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
const files = [
|
|
2
|
-
{
|
|
3
|
-
"name": "Documents", "dateModified": "9/12/2013", "type": "File Folder", "size": 4480, "files": [
|
|
4
|
-
{ "name": "To do list.txt", "dateModified": "11/5/2013", "type": "TXT File", "size": 4448 },
|
|
5
|
-
{ "name": "Work.txt", "dateModified": "9/12/2013", "type": "TXT File", "size": 32 }
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"name": "Music", "dateModified": "6/10/2014", "type": "File Folder", "size": 5594, "files": [
|
|
10
|
-
{
|
|
11
|
-
"name": "AC/DC", "dateModified": "6/10/2014", "type": "File Folder", "size": 2726, "files": [
|
|
12
|
-
{ "name": "Stand Up.mp3", "dateModified": "6/10/2014", "type": "MP3 File", "size": 456 },
|
|
13
|
-
{ "name": "T.N.T.mp3", "dateModified": "6/10/2014", "type": "MP3 File", "size": 1155 },
|
|
14
|
-
{ "name": "The Jack.mp3", "dateModified": "6/10/2014", "type": "MP3 File", "size": 1115 }
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "WhiteSnake", "dateModified": "6/11/2014", "type": "File Folder", "size": 2868, "files": [
|
|
19
|
-
{ "name": "Trouble.mp3", "dateModified": "6/11/2014", "type": "MP3 File", "size": 1234 },
|
|
20
|
-
{ "name": "Bad Boys.mp3", "dateModified": "6/11/2014", "type": "MP3 File", "size": 522 },
|
|
21
|
-
{ "name": "Is This Love.mp3", "dateModified": "6/11/2014", "type": "MP3 File", "size": 1112 },
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "Pictures", "dateModified": "1/9/2014", "type": "File Folder", "size": 1825, "files": [
|
|
28
|
-
{
|
|
29
|
-
"name": "Jacks Birthday", "dateModified": "6/9/2014", "type": "File Folder", "size": 631, "files": [
|
|
30
|
-
{ "name": "Picture11.png", "dateModified": "6/9/2014", "type": "PNG image", "size": 493 },
|
|
31
|
-
{ "name": "Picture12.png", "dateModified": "6/9/2014", "type": "PNG image", "size": 88 },
|
|
32
|
-
{ "name": "Picture13.gif", "dateModified": "6/9/2014", "type": "GIF File", "size": 50 },
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "Trip to London", "dateModified": "3/10/2014", "type": "File Folder", "size": 1194, "files": [
|
|
37
|
-
{ "name": "Picture1.png", "dateModified": "3/10/2014", "type": "PNG image", "size": 974 },
|
|
38
|
-
{ "name": "Picture2.png", "dateModified": "3/10/2014", "type": "PNG image", "size": 142 },
|
|
39
|
-
{ "name": "Picture3.png", "dateModified": "3/10/2014", "type": "PNG image", "size": 41 },
|
|
40
|
-
{ "name": "Picture4.png", "dateModified": "3/10/2014", "type": "PNG image", "size": 25 },
|
|
41
|
-
{ "name": "Picture5.png", "dateModified": "3/10/2014", "type": "PNG image", "size": 12 },
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "Videos", "dateModified": "1/4/2014", "type": "File Folder", "size": 0
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "Books", "dateModified": "1/4/2014", "type": "File Folder", "size": 99376, "files": [
|
|
52
|
-
{
|
|
53
|
-
"name": "James Rollins", "dateModified": "6/2/2014", "type": "File Folder", "size": 34228, "files": [
|
|
54
|
-
{ "name": "Alter of Eden.pdf", "dateModified": "6/5/2014", "type": "Adobe Acrobat Document", "size": 8894 },
|
|
55
|
-
{ "name": "Amazonia.pdf", "dateModified": "3/2/2014", "type": "Adobe Acrobat Document", "size": 6212 },
|
|
56
|
-
{ "name": "Subterranean.pdf", "dateModified": "1/4/2014", "type": "Adobe Acrobat Document", "size": 4820 },
|
|
57
|
-
{ "name": "Sandstorm.pdf", "dateModified": "2/2/2014", "type": "Adobe Acrobat Document", "size": 14302 }
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "Stephen King", "dateModified": "3/10/2014", "type": "File Folder", "size": 65148, "files": [
|
|
62
|
-
{ "name": "It.pdf", "dateModified": "3/10/2014", "type": "Adobe Acrobat Document", "size": 9987 },
|
|
63
|
-
{ "name": "Misery.pdf", "dateModified": "3/10/2014", "type": "Adobe Acrobat Document", "size": 32313 },
|
|
64
|
-
{ "name": "Pet Sematary.pdf", "dateModified": "3/10/2014", "type": "Adobe Acrobat Document", "size": 22848 }
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{ "name": "Games", "dateModified": "8/8/2014", "type": "File Folder", "size": 0 },
|
|
70
|
-
{
|
|
71
|
-
"name": "Projects", "dateModified": "7/4/2014", "type": "File Folder", "size": 4, "files": [
|
|
72
|
-
{
|
|
73
|
-
"name": "Visual Studio 2012", "dateModified": "7/4/2014", "type": "File Folder", "size": 1, "files": [
|
|
74
|
-
{ "name": "Project10.sln", "dateModified": "7/4/2014", "type": "Microsoft Visual Studio Solution", "size": 1 }
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "Visual Studio 2013", "dateModified": "9/6/2014", "type": "File Folder", "size": 3, "files": [
|
|
79
|
-
{ "name": "Project1.sln", "dateModified": "9/6/2014", "type": "Microsoft Visual Studio Solution", "size": 1 },
|
|
80
|
-
{ "name": "Project2.sln", "dateModified": "9/6/2014", "type": "Microsoft Visual Studio Solution", "size": 1 },
|
|
81
|
-
{ "name": "Project3.sln", "dateModified": "9/6/2014", "type": "Microsoft Visual Studio Solution", "size": 1 }
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
];
|
|
87
|
-
|
|
88
|
-
export { files };
|
|
Binary file
|
|
Binary file
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { files } from "../../assets/data-fe";
|
|
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
|
-
styles: [`
|
|
10
|
-
:host /deep/ .ui-icon.ui-igtreegrid-expansion-indicator.ui-icon-minus {
|
|
11
|
-
background: url(src/app/assets/opened_folder.png) !important;
|
|
12
|
-
background-repeat: no-repeat;
|
|
13
|
-
}
|
|
14
|
-
:host /deep/ .ui-icon.ui-igtreegrid-expansion-indicator.ui-icon-plus {
|
|
15
|
-
background: url(src/app/assets/folder.png) !important;
|
|
16
|
-
background-repeat: no-repeat;
|
|
17
|
-
}
|
|
18
|
-
:host /deep/ .ui-icon-plus:before {
|
|
19
|
-
content: '' !important;
|
|
20
|
-
}
|
|
21
|
-
:host /deep/ .ui-icon-minus:before{
|
|
22
|
-
content: '' !important;
|
|
23
|
-
}
|
|
24
|
-
`]
|
|
25
|
-
})
|
|
26
|
-
export class $(ClassName)Component {
|
|
27
|
-
public gridOptions: IgTreeGrid;
|
|
28
|
-
public items: any[];
|
|
29
|
-
|
|
30
|
-
constructor() {
|
|
31
|
-
this.items = files;
|
|
32
|
-
this.gridOptions = {
|
|
33
|
-
id: "basicTreeGrid",
|
|
34
|
-
width: "800px",
|
|
35
|
-
height: "400px",
|
|
36
|
-
dataSource: this.items,
|
|
37
|
-
autoGenerateColumns: false,
|
|
38
|
-
primaryKey: "name",
|
|
39
|
-
columns: [
|
|
40
|
-
{ headerText: "Name", key: "name", width: "250px", dataType: "string" },
|
|
41
|
-
{ headerText: "Date Modified", key: "dateModified", width: "130px", dataType: "date" },
|
|
42
|
-
{ headerText: "Type", key: "type", width: "230px", dataType: "string" },
|
|
43
|
-
{ headerText: "Size in KB", key: "size", width: "130px", dataType: "number" }
|
|
44
|
-
],
|
|
45
|
-
childDataKey: "files",
|
|
46
|
-
initialExpandDepth: 2,
|
|
47
|
-
features: $(treeGridFeatures)
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -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,62 +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 TreeGridFileExplorerTemplate extends AngularTemplate_1.AngularTemplate {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(__dirname);
|
|
8
|
-
this.userExtraConfiguration = {};
|
|
9
|
-
this.id = "tree-grid-file-explorer";
|
|
10
|
-
this.name = "Tree Grid File Explorer";
|
|
11
|
-
this.widget = "igTreeGrid";
|
|
12
|
-
this.controlGroup = "Data Grids";
|
|
13
|
-
this.description = "igTreeGrid file explorer template for Angular";
|
|
14
|
-
this.dependencies = ["igTreeGrid"];
|
|
15
|
-
this.projectType = "ig-ts";
|
|
16
|
-
this.listInComponentTemplates = false;
|
|
17
|
-
this.listInCustomTemplates = true;
|
|
18
|
-
this.hasExtraConfiguration = true;
|
|
19
|
-
this.extraConfigurations = [];
|
|
20
|
-
this.gridHelper = new GridHelper_1.GridHelper();
|
|
21
|
-
this.gridHelper.tree = true;
|
|
22
|
-
const featureConfiguration = {
|
|
23
|
-
choices: ["Sorting"],
|
|
24
|
-
default: "",
|
|
25
|
-
key: "features",
|
|
26
|
-
message: "Select features for the igTreeGrid",
|
|
27
|
-
type: 1 /* ControlExtraConfigType.MultiChoice */
|
|
28
|
-
};
|
|
29
|
-
this.extraConfigurations.push(featureConfiguration);
|
|
30
|
-
}
|
|
31
|
-
setExtraConfiguration(extraConfigKeys) {
|
|
32
|
-
this.userExtraConfiguration = extraConfigKeys;
|
|
33
|
-
}
|
|
34
|
-
generateConfig(name, ...options) {
|
|
35
|
-
this.gridHelper.addFeature("Selection", { multipleSelection: true });
|
|
36
|
-
this.gridHelper.updateFeature("RowSelectors", {
|
|
37
|
-
checkBoxMode: "biState",
|
|
38
|
-
enableCheckBoxes: true,
|
|
39
|
-
enableRowNumbering: false,
|
|
40
|
-
enableSelectAllForPaging: true,
|
|
41
|
-
rowSelectorColumnWidth: null
|
|
42
|
-
});
|
|
43
|
-
this.gridHelper.addFeature("Filtering", {
|
|
44
|
-
columnSettings: [{
|
|
45
|
-
columnKey: "dateModified",
|
|
46
|
-
condition: "after"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
columnKey: "size",
|
|
50
|
-
condition: "greaterThan"
|
|
51
|
-
}]
|
|
52
|
-
});
|
|
53
|
-
this.gridHelper.addFeature("Paging", { pageSize: 4, mode: "rootLevelOnly" });
|
|
54
|
-
const features = this.gridHelper.generateFeatures(this.userExtraConfiguration["features"], 3);
|
|
55
|
-
const config = { treeGridFeatures: features };
|
|
56
|
-
return super.generateConfig(name, { extraConfig: config });
|
|
57
|
-
}
|
|
58
|
-
getExtraConfiguration() {
|
|
59
|
-
return this.extraConfigurations;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
module.exports = new TreeGridFileExplorerTemplate();
|
package/templates/angular/ig-ts/doughnut-chart/default/files/src/app/assets/doughnut-data.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const doughnutData = {
|
|
2
|
-
data: [
|
|
3
|
-
{ "CountryName": "China", "Pop1990": 1141 },
|
|
4
|
-
{ "CountryName": "India", "Pop1990": 849 },
|
|
5
|
-
{ "CountryName": "United States", "Pop1990": 250 },
|
|
6
|
-
{ "CountryName": "Indonesia", "Pop1990": 178 },
|
|
7
|
-
{ "CountryName": "Brazil", "Pop1990": 150 }]
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { doughnutData };
|