├── .editorconfig ├── .gitignore ├── README.md ├── angular.json ├── e2e ├── app.e2e-spec.ts ├── app.po.ts └── tsconfig.e2e.json ├── karma.conf.js ├── ng-flexmonster ├── README.md ├── package.json └── src │ ├── flexmonster.component.ts │ ├── flexmonster.module.ts │ └── public_api.ts ├── package.json ├── protractor.conf.js ├── src ├── app │ ├── app.component.css │ ├── app.component.html │ ├── app.component.spec.ts │ ├── app.component.ts │ └── app.module.ts ├── assets │ └── .gitkeep ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills.ts ├── styles.css ├── test.ts ├── tsconfig.app.json ├── tsconfig.spec.json └── typings.d.ts ├── tsconfig.json └── tslint.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /dist-server 6 | /tmp 7 | /out-tsc 8 | 9 | # dependencies 10 | /node_modules 11 | /ng-flexmonster/node_modules 12 | 13 | # IDEs and editors 14 | /.idea 15 | .project 16 | .classpath 17 | .c9/ 18 | *.launch 19 | .settings/ 20 | *.sublime-workspace 21 | 22 | # IDE - VSCode 23 | .vscode/* 24 | !.vscode/settings.json 25 | !.vscode/tasks.json 26 | !.vscode/launch.json 27 | !.vscode/extensions.json 28 | 29 | # misc 30 | /.sass-cache 31 | /connect.lock 32 | /coverage 33 | /libpeerconnection.log 34 | npm-debug.log 35 | yarn-error.log 36 | testem.log 37 | /typings 38 | 39 | # e2e 40 | /e2e/*.js 41 | /e2e/*.map 42 | 43 | # System Files 44 | .DS_Store 45 | Thumbs.db 46 | /.ng_pkg_build 47 | /dist.tgz 48 | /package-lock.json 49 | ng-flexmonster/package-lock.json 50 | .npmrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular pivot table | Flexmonster Pivot Table & Charts wrapper for Angular 5-15 2 | [![Flexmonster Pivot Table & Charts](https://cdn.flexmonster.com/readmes/angular.webp)](https://www.flexmonster.com?r=wrap_ang) 3 | Website: [flexmonster.com](https://www.flexmonster.com?r=wrap_ang) 4 | 5 | [![NPM](https://img.shields.io/npm/v/ng-flexmonster)](https://www.npmjs.com/package/ng-flexmonster) 6 | [![Github Stars](https://img.shields.io/github/stars/flexmonster?style=social)](https://github.com/flexmonster) [![Twitter](https://img.shields.io/twitter/follow/Flexmonster?style=social)](https://twitter.com/Flexmonster) 7 | 8 | 9 | ## Flexmonster Pivot Table & Charts 10 | 11 | Flexmonster Pivot Table & Charts is a powerful and fully customizable JavaScript component for web reporting. It is packed with all core features for data analysis and can easily become a part of your Angular data visualization project. The tool supports popular frameworks like React, Vue, Blazor, Angular, and [more](https://www.flexmonster.com/doc/available-tutorials-integration?r=wrap_ang). Also, Flexmonster connects to any data source, including SQL and NoSQL databases, JSON and CSV files, OLAP cubes, and Elasticsearch. 12 | 13 | This package is a [Flexmonster Pivot](https://www.flexmonster.com?r=wrap_ang) wrapper for [Angular](https://angular.io) applications. It can be used in applications based on Angular versions 5–15. 14 | 15 | For newer Angular versions, use the Ivy-compatible [ngx-flexmonster](https://www.npmjs.com/package/ngx-flexmonster). It works with versions 14 and later. 16 | 17 | Table of contents: 18 | 19 | * [Integration](#integration) 20 | * [Usage](#usage) 21 | * [Sample project](#sample-project) 22 | * [Support and feedback](#support-and-feedback) 23 | * [License](#license) 24 | * [Social media](#social-media) 25 | 26 | ## Integration 27 | 28 | Flexmonster documentation provides a detailed step-by-step guide on [іntegration with Angular](https://www.flexmonster.com/doc/integration-with-angular?r=wrap_ang). 29 | 30 | This tutorial is also available in video format on our YouTube channel: 31 | 32 | [![Angular video tutorial](https://static.flexmonster.com/uploads/2023/09/07144220/Screenshot-2023-09-07-at-17.42.09.png)](https://www.youtube.com/watch?v=hbaVewUYZRE&list=PLh8M6vKONZ5WCQu0gUmlvvttH9xUpN-Cs&index=4) 33 | 34 | ## Usage 35 | 36 | The wrapper provides the `FlexmonsterPivot` component to add the pivot table to the Angular project. Read more about the available input properties and how to use them in the [FlexmonsterPivot component](https://www.flexmonster.com/doc/fm-pivot-directive-for-angular?r=wrap_ang) documentation. 37 | 38 | Explore the available [methods and events](https://www.flexmonster.com/doc/using-methods-and-events-angular?r=wrap_ang) to learn the specifics of using and customizing Flexmonster in an Angular application. 39 | 40 | ## Sample project 41 | 42 | If you look for some reference examples, our team prepared a ready-to-use [Angular pivot grid sample project](https://github.com/flexmonster/pivot-angular?r=wrap_ang) with live demos of the most popular use cases. Visit the [usage examples documentation](https://www.flexmonster.com/doc/usage-examples-angular?r=wrap_ang) page to learn more about how the cases were implemented in an Angular project. 43 | 44 | In our documentation, you can find [a guide for the sample Angular application](https://www.flexmonster.com/doc/sample-angular-project?r=wrap_ang). There you can learn how to run it and what's inside. 45 | 46 | 47 | ## Support and feedback 48 | 49 | In case of any issues, visit our [troubleshooting section](https://www.flexmonster.com/doc/typical-errors?r=wrap_ang). You can also search among the [resolved cases](https://www.flexmonster.com/technical-support?r=wrap_ang) for a solution to your problem. 50 | 51 | To share your feedback or ask questions, contact our Tech team by raising a ticket on [Flexmonster Help Center](https://www.flexmonster.com/help-center?r=wrap_ang). You can also find a list of samples, technical specifications, and a user interface guide there. 52 | 53 | If you need any help with your license, fill out our [Contact form](https://www.flexmonster.com/contact-our-team?r=wrap_ang), and we will get in touch with you. 54 | 55 | ## License 56 | 57 | Flexmonster Angular wrapper is released as an MIT-licensed (free and open-source) add-on to Flexmonster Pivot. 58 | 59 | To learn about Flexmonster Pivot licenses, visit the [Flexmonster licensing page](https://www.flexmonster.com/pivot-table-editions-and-pricing?r=wrap_ang). 60 | If you want to test our product, we provide a 30-day free trial. 61 | 62 | ## Social media 63 | 64 | Follow us on social media and stay updated on our development process! 65 | 66 | [![LinkedIn](https://img.shields.io/badge/LinkedIn-blue?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/company/flexmonster) [![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=youtube&logoColor=white)](https://youtube.com/user/FlexMonsterPivot) [![Twitter](https://img.shields.io/badge/Twitter-blue?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/flexmonster) 67 | -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "projects": { 6 | "ng-flexmonster": { 7 | "root": "", 8 | "sourceRoot": "src", 9 | "projectType": "application", 10 | "architect": { 11 | "build": { 12 | "builder": "@angular-devkit/build-angular:browser", 13 | "options": { 14 | "outputPath": "dist", 15 | "index": "src/index.html", 16 | "main": "src/main.ts", 17 | "tsConfig": "src/tsconfig.app.json", 18 | "polyfills": "src/polyfills.ts", 19 | "assets": [ 20 | "src/assets", 21 | "src/favicon.ico" 22 | ], 23 | "styles": [ 24 | "src/styles.css", 25 | "node_modules/flexmonster/flexmonster.min.css" 26 | ], 27 | "scripts": [ 28 | "node_modules/flexmonster/flexmonster.full.js" 29 | ] 30 | }, 31 | "configurations": { 32 | "production": { 33 | "optimization": true, 34 | "outputHashing": "all", 35 | "sourceMap": false, 36 | "extractCss": true, 37 | "namedChunks": false, 38 | "aot": true, 39 | "extractLicenses": true, 40 | "vendorChunk": false, 41 | "buildOptimizer": true, 42 | "fileReplacements": [ 43 | { 44 | "replace": "src/environments/environment.ts", 45 | "with": "src/environments/environment.prod.ts" 46 | } 47 | ] 48 | } 49 | } 50 | }, 51 | "serve": { 52 | "builder": "@angular-devkit/build-angular:dev-server", 53 | "options": { 54 | "browserTarget": "ng-flexmonster:build" 55 | }, 56 | "configurations": { 57 | "production": { 58 | "browserTarget": "ng-flexmonster:build:production" 59 | } 60 | } 61 | }, 62 | "extract-i18n": { 63 | "builder": "@angular-devkit/build-angular:extract-i18n", 64 | "options": { 65 | "browserTarget": "ng-flexmonster:build" 66 | } 67 | }, 68 | "test": { 69 | "builder": "@angular-devkit/build-angular:karma", 70 | "options": { 71 | "main": "src/test.ts", 72 | "karmaConfig": "./karma.conf.js", 73 | "polyfills": "src/polyfills.ts", 74 | "tsConfig": "src/tsconfig.spec.json", 75 | "scripts": [ 76 | "node_modules/flexmonster/flexmonster.full.js" 77 | ], 78 | "styles": [ 79 | "src/styles.css", 80 | "node_modules/flexmonster/flexmonster.min.css" 81 | ], 82 | "assets": [ 83 | "src/assets", 84 | "src/favicon.ico" 85 | ] 86 | } 87 | }, 88 | "lint": { 89 | "builder": "@angular-devkit/build-angular:tslint", 90 | "options": { 91 | "tsConfig": [ 92 | "src/tsconfig.app.json", 93 | "src/tsconfig.spec.json" 94 | ], 95 | "exclude": [ 96 | "**/node_modules/**" 97 | ] 98 | } 99 | } 100 | } 101 | }, 102 | "ng-flexmonster-e2e": { 103 | "root": "", 104 | "sourceRoot": "", 105 | "projectType": "application", 106 | "architect": { 107 | "e2e": { 108 | "builder": "@angular-devkit/build-angular:protractor", 109 | "options": { 110 | "protractorConfig": "./protractor.conf.js", 111 | "devServerTarget": "ng-flexmonster:serve" 112 | } 113 | }, 114 | "lint": { 115 | "builder": "@angular-devkit/build-angular:tslint", 116 | "options": { 117 | "tsConfig": [ 118 | "e2e/tsconfig.e2e.json" 119 | ], 120 | "exclude": [ 121 | "**/node_modules/**" 122 | ] 123 | } 124 | } 125 | } 126 | } 127 | }, 128 | "defaultProject": "ng-flexmonster", 129 | "schematics": { 130 | "@schematics/angular:component": { 131 | "prefix": "app", 132 | "styleext": "css" 133 | }, 134 | "@schematics/angular:directive": { 135 | "prefix": "app" 136 | } 137 | } 138 | } -------------------------------------------------------------------------------- /e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('ng-flexmonster App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('Welcome to app!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /e2e/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es5", 8 | "types": [ 9 | "jasmine", 10 | "jasminewd2", 11 | "node" 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client:{ 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ], 20 | fixWebpackSourcePaths: true 21 | }, 22 | angularCli: { 23 | environment: 'dev' 24 | }, 25 | reporters: ['progress', 'kjhtml'], 26 | port: 9876, 27 | colors: true, 28 | logLevel: config.LOG_INFO, 29 | autoWatch: true, 30 | browsers: ['Chrome'], 31 | singleRun: false 32 | }); 33 | }; 34 | -------------------------------------------------------------------------------- /ng-flexmonster/README.md: -------------------------------------------------------------------------------- 1 | # Angular pivot table | Flexmonster Pivot Table & Charts wrapper for Angular 5-15 2 | [![Flexmonster Pivot Table & Charts](https://static.flexmonster.com/uploads/2023/09/07151104/angular.png)](https://www.flexmonster.com?r=wrap_ang) 3 | Website: [flexmonster.com](https://www.flexmonster.com?r=wrap_ang) 4 | 5 | [![NPM](https://img.shields.io/npm/v/ng-flexmonster)](https://www.npmjs.com/package/ng-flexmonster) 6 | [![Github Stars](https://img.shields.io/github/stars/flexmonster?style=social)](https://github.com/flexmonster) [![Twitter](https://img.shields.io/twitter/follow/Flexmonster?style=social)](https://twitter.com/Flexmonster) 7 | 8 | 9 | ## Flexmonster Pivot Table & Charts 10 | 11 | Flexmonster Pivot Table & Charts is a powerful and fully customizable JavaScript component for web reporting. It is packed with all core features for data analysis and can easily become a part of your Angular data visualization project. The tool supports popular frameworks like React, Vue, Blazor, Angular, and [more](https://www.flexmonster.com/doc/available-tutorials-integration?r=wrap_ang). Also, Flexmonster connects to any data source, including SQL and NoSQL databases, JSON and CSV files, OLAP cubes, and Elasticsearch. 12 | 13 | This package is a [Flexmonster Pivot](https://www.flexmonster.com?r=wrap_ang) wrapper for [Angular](https://angular.io) applications. It can be used in applications based on Angular versions 5–15. 14 | 15 | For newer Angular versions, use the Ivy-compatible [ngx-flexmonster](https://www.npmjs.com/package/ngx-flexmonster). It works with versions 14 and later. 16 | 17 | 18 | Table of contents: 19 | 20 | * [Integration](#integration) 21 | * [Usage](#usage) 22 | * [Sample project](#sample-project) 23 | * [Support and feedback](#support-and-feedback) 24 | * [License](#license) 25 | * [Social media](#social-media) 26 | 27 | ## Integration 28 | 29 | Flexmonster documentation provides a detailed step-by-step guide on [іntegration with Angular](https://www.flexmonster.com/doc/integration-with-angular?r=wrap_ang). 30 | 31 | This tutorial is also available in video format on our YouTube channel: 32 | 33 | [![Angular video tutorial](https://static.flexmonster.com/uploads/2023/09/07144220/Screenshot-2023-09-07-at-17.42.09.png)](https://www.youtube.com/watch?v=hbaVewUYZRE&list=PLh8M6vKONZ5WCQu0gUmlvvttH9xUpN-Cs&index=4) 34 | 35 | 36 | ## Usage 37 | 38 | The wrapper provides the `FlexmonsterPivot` component to add the pivot table to the Angular project. Read more about the available input properties and how to use them in the [FlexmonsterPivot component](https://www.flexmonster.com/doc/fm-pivot-directive-for-angular?r=wrap_ang) documentation. 39 | 40 | Explore the available [methods and events](https://www.flexmonster.com/doc/using-methods-and-events-angular?r=wrap_ang) to learn the specifics of using and customizing Flexmonster in an Angular application. 41 | 42 | ## Sample project 43 | 44 | If you look for some reference examples, our team prepared a ready-to-use [Angular pivot grid sample project](https://github.com/flexmonster/pivot-angular?r=wrap_ang) with live demos of the most popular use cases. Visit the [usage examples documentation](https://www.flexmonster.com/doc/usage-examples-angular?r=wrap_ang) page to learn more about how the cases were implemented in an Angular project. 45 | 46 | In our documentation, you can find [a guide for the sample Angular application](https://www.flexmonster.com/doc/sample-angular-project?r=wrap_ang). There you can learn how to run it and what's inside. 47 | 48 | 49 | 50 | ## Support and feedback 51 | 52 | In case of any issues, visit our [troubleshooting section](https://www.flexmonster.com/doc/typical-errors?r=wrap_ang). You can also search among the [resolved cases](https://www.flexmonster.com/technical-support?r=wrap_ang) for a solution to your problem. 53 | 54 | To share your feedback or ask questions, contact our Tech team by raising a ticket on [Flexmonster Help Center](https://www.flexmonster.com/help-center?r=wrap_ang). You can also find a list of samples, technical specifications, and a user interface guide there. 55 | 56 | If you need any help with your license, fill out our [Contact form](https://www.flexmonster.com/contact-our-team?r=wrap_ang), and we will get in touch with you. 57 | 58 | ## License 59 | 60 | Flexmonster Angular wrapper is released as an MIT-licensed (free and open-source) add-on to Flexmonster Pivot. 61 | 62 | To learn about Flexmonster Pivot licenses, visit the [Flexmonster licensing page](https://www.flexmonster.com/pivot-table-editions-and-pricing?r=wrap_ang). 63 | If you want to test our product, we provide a 30-day free trial. 64 | 65 | ## Social media 66 | 67 | Follow us on social media and stay updated on our development process! 68 | 69 | [![LinkedIn](https://img.shields.io/badge/LinkedIn-blue?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/company/flexmonster) [![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=youtube&logoColor=white)](https://youtube.com/user/FlexMonsterPivot) [![Twitter](https://img.shields.io/badge/Twitter-blue?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/flexmonster) 70 | -------------------------------------------------------------------------------- /ng-flexmonster/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ng-flexmonster", 3 | "version": "2.9.105", 4 | "license": "MIT", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/flexmonster/ng-flexmonster.git" 8 | }, 9 | "keywords": [ 10 | "pivot", 11 | "html5", 12 | "grid", 13 | "table", 14 | "pivottable", 15 | "pivotgrid", 16 | "pivotchart", 17 | "angular" 18 | ], 19 | "description": "Angular 4+ Module for Flexmonster Pivot Table & Charts", 20 | "private": false, 21 | "peerDependencies": { 22 | "@angular/core": ">=4.0.0", 23 | "@angular/common": ">=4.0.0" 24 | }, 25 | "dependencies": { 26 | "flexmonster": "2.9.105" 27 | }, 28 | "ngPackage": { 29 | "$schema": "./node_modules/ng-packagr/ng-package.schema.json", 30 | "lib": { 31 | "entryFile": "./src/public_api.ts" 32 | }, 33 | "dest": "../dist/ng-flexmonster", 34 | "whitelistedNonPeerDependencies": [ 35 | "flexmonster" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /ng-flexmonster/src/flexmonster.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ElementRef, Input, Output, EventEmitter, OnDestroy } from '@angular/core'; 2 | import * as Flexmonster from 'flexmonster'; 3 | 4 | @Component({ 5 | selector: 'fm-pivot', 6 | template: '
' 7 | }) 8 | export class FlexmonsterPivot implements OnDestroy { 9 | // params 10 | @Input() toolbar: boolean; 11 | @Input() licenseKey: string | string[]; 12 | @Input() licenseFilePath: string; 13 | @Input() width: string | number; 14 | @Input() height: string | number; 15 | @Input() componentFolder: string; 16 | @Input() report: Flexmonster.Report | string; 17 | @Input() shareReportConnection: Flexmonster.APIClientOptions; 18 | @Input() global: Flexmonster.Report; 19 | @Input() accessibility: Flexmonster.AccessibilityOptions; 20 | @Input() customizeAPIRequest: (request: Object) => Object; 21 | @Input() customizeCell: (cell: Flexmonster.CellBuilder, data: Flexmonster.CellData) => void; 22 | @Input() customizeChartElement: (element: Element, data: Flexmonster.ChartData | Flexmonster.ChartLegendItemData) => void; 23 | @Input() customizeContextMenu: (cell: Flexmonster.ContextMenuItem[], data: Flexmonster.CellData | Flexmonster.ChartData, viewType: string) => Flexmonster.ContextMenuItem[]; 24 | @Input() sortFieldsList: (first: Flexmonster.FieldsListSortingItem, second: Flexmonster.FieldsListSortingItem, fieldsListType: string) => number; 25 | 26 | // events 27 | @Output() cellclick: EventEmitter = new EventEmitter(); 28 | @Output() celldoubleclick: EventEmitter = new EventEmitter(); 29 | @Output() chartclick: EventEmitter = new EventEmitter(); 30 | @Output() dataerror: EventEmitter = new EventEmitter(); 31 | @Output() datafilecancelled: EventEmitter = new EventEmitter(); 32 | @Output() dataloaded: EventEmitter = new EventEmitter(); 33 | @Output() datachanged: EventEmitter = new EventEmitter(); 34 | @Output() fieldslistclose: EventEmitter = new EventEmitter(); 35 | @Output() fieldslistopen: EventEmitter = new EventEmitter(); 36 | @Output() filterclose: EventEmitter = new EventEmitter(); 37 | @Output() filteropen: EventEmitter = new EventEmitter(); 38 | @Output() drillthroughopen: EventEmitter = new EventEmitter(); 39 | @Output() exportcomplete: EventEmitter = new EventEmitter(); 40 | @Output() exportstart: EventEmitter = new EventEmitter(); 41 | @Output() drillthroughclose: EventEmitter = new EventEmitter(); 42 | @Output() fullscreen: EventEmitter = new EventEmitter(); 43 | @Output() loadingdata: EventEmitter = new EventEmitter(); 44 | @Output() loadinglocalization: EventEmitter = new EventEmitter(); 45 | @Output() loadingolapstructure: EventEmitter = new EventEmitter(); 46 | @Output() loadingreportfile: EventEmitter = new EventEmitter(); 47 | @Output() localizationerror: EventEmitter = new EventEmitter(); 48 | @Output() localizationloaded: EventEmitter = new EventEmitter(); 49 | @Output() olapstructureerror: EventEmitter = new EventEmitter(); 50 | @Output() olapstructureloaded: EventEmitter = new EventEmitter(); 51 | @Output() openingreportfile: EventEmitter = new EventEmitter(); 52 | @Output() printcomplete: EventEmitter = new EventEmitter(); 53 | @Output() printstart: EventEmitter = new EventEmitter(); 54 | @Output() querycomplete: EventEmitter = new EventEmitter(); 55 | @Output() queryerror: EventEmitter = new EventEmitter(); 56 | @Output() ready: EventEmitter = new EventEmitter(); 57 | @Output() reportchange: EventEmitter = new EventEmitter(); 58 | @Output() reportcomplete: EventEmitter = new EventEmitter(); 59 | @Output() reportfilecancelled: EventEmitter = new EventEmitter(); 60 | @Output() reportfileerror: EventEmitter = new EventEmitter(); 61 | @Output() runningquery: EventEmitter = new EventEmitter(); 62 | @Output() unauthorizederror: EventEmitter = new EventEmitter(); 63 | @Output() update: EventEmitter = new EventEmitter(); 64 | @Output() beforetoolbarcreated: EventEmitter = new EventEmitter(); 65 | @Output() beforegriddraw: EventEmitter = new EventEmitter(); 66 | @Output() aftergriddraw: EventEmitter = new EventEmitter(); 67 | @Output() afterchartdraw: EventEmitter = new EventEmitter(); 68 | // api 69 | public flexmonster: Flexmonster.Pivot; 70 | // private 71 | private root: HTMLElement; 72 | 73 | constructor(el: ElementRef) { 74 | this.root = el.nativeElement; 75 | } 76 | 77 | ngOnInit() { 78 | this.flexmonster = new Flexmonster({ 79 | container: this.root.getElementsByClassName('fm-ng-wrapper')[0], 80 | componentFolder: this.componentFolder, 81 | width: this.width, 82 | height: this.height, 83 | toolbar: this.toolbar, 84 | licenseKey: this.licenseKey, 85 | licenseFilePath: this.licenseFilePath, 86 | report: this.report, 87 | global: this.global, 88 | accessibility: this.accessibility, 89 | shareReportConnection: this.shareReportConnection, 90 | customizeAPIRequest: this.customizeAPIRequest, 91 | customizeCell: this.customizeCell, 92 | customizeChartElement: this.customizeChartElement, 93 | customizeContextMenu: this.customizeContextMenu, 94 | sortFieldsList: this.sortFieldsList, 95 | cellclick: (cell: Flexmonster.CellData) => this.cellclick.next(cell), 96 | celldoubleclick: (cell: Flexmonster.CellData) => this.celldoubleclick.next(cell), 97 | chartclick: (event: Flexmonster.ChartData) => this.chartclick.next(event), 98 | datachanged: (event: Object) => this.datachanged.next(event), 99 | dataerror: (event: Object) => this.dataerror.next(event), 100 | datafilecancelled: () => this.datafilecancelled.next(), 101 | dataloaded: () => this.dataloaded.next(), 102 | fieldslistclose: () => this.fieldslistclose.next(), 103 | fieldslistopen: () => this.fieldslistopen.next(), 104 | filterclose: () => this.filterclose.next(), 105 | filteropen: (event: Object) => this.filteropen.next(event), 106 | drillthroughopen: (cell: Flexmonster.CellData | Flexmonster.ChartData) => this.drillthroughopen.next(cell), 107 | exportcomplete: () => this.exportcomplete.next(), 108 | exportstart: () => this.exportstart.next(), 109 | drillthroughclose: () => this.drillthroughclose.next(), 110 | loadingdata: () => this.loadingdata.next(), 111 | loadinglocalization: () => this.loadinglocalization.next(), 112 | loadingolapstructure: () => this.loadingolapstructure.next(), 113 | loadingreportfile: () => this.loadingreportfile.next(), 114 | localizationerror: () => this.localizationerror.next(), 115 | localizationloaded: () => this.localizationloaded.next(), 116 | olapstructureerror: (event: Flexmonster.ErrorEvent) => this.olapstructureerror.next(event), 117 | olapstructureloaded: () => this.olapstructureloaded.next(), 118 | openingreportfile: () => this.openingreportfile.next(), 119 | printcomplete: () => this.printcomplete.next(), 120 | printstart: () => this.printstart.next(), 121 | querycomplete: () => this.querycomplete.next(), 122 | queryerror: (event: Flexmonster.ErrorEvent) => this.queryerror.next(event), 123 | ready: () => this.ready.next(this.flexmonster), 124 | reportchange: () => this.reportchange.next(), 125 | reportcomplete: () => this.reportcomplete.next(), 126 | reportfilecancelled: () => this.reportfilecancelled.next(), 127 | reportfileerror: () => this.reportfileerror.next(), 128 | runningquery: () => this.runningquery.next(), 129 | unauthorizederror: (done: Flexmonster.UnauthorizedErrorHandler) => this.unauthorizederror.next(done), 130 | update: () => this.update.next(), 131 | beforetoolbarcreated: (toolbar: Flexmonster.Toolbar) => this.beforetoolbarcreated.next(toolbar), 132 | beforegriddraw: (event: Object) => this.beforegriddraw.next(event), 133 | aftergriddraw: (event: Object) => this.aftergriddraw.next(event), 134 | afterchartdraw: () => this.afterchartdraw.next() 135 | }); 136 | } 137 | 138 | ngOnDestroy(): void { 139 | if (this.flexmonster) { 140 | this.flexmonster.dispose(); 141 | this.flexmonster = null; 142 | } 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /ng-flexmonster/src/flexmonster.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FlexmonsterPivot } from './flexmonster.component'; 4 | 5 | @NgModule({ 6 | imports: [ 7 | CommonModule 8 | ], 9 | declarations: [FlexmonsterPivot], 10 | exports: [FlexmonsterPivot] 11 | }) 12 | export class FlexmonsterPivotModule { } 13 | -------------------------------------------------------------------------------- /ng-flexmonster/src/public_api.ts: -------------------------------------------------------------------------------- 1 | export { FlexmonsterPivotModule } from './flexmonster.module'; 2 | export { FlexmonsterPivot } from './flexmonster.component'; 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ng-flexmonster", 3 | "version": "0.0.0", 4 | "license": "MIT", 5 | "description": "Angular 5–Angular 15 wrapper for Flexmonster Pivot Table and Charts", 6 | "scripts": { 7 | "ng": "ng", 8 | "start": "ng serve", 9 | "build": "ng build --prod", 10 | "test": "ng test", 11 | "lint": "ng lint", 12 | "e2e": "ng e2e", 13 | "packagr": "ng-packagr -p ng-flexmonster/package.json" 14 | }, 15 | "private": true, 16 | "dependencies": { 17 | "@angular/animations": "^6.0.3", 18 | "@angular/common": "^6.0.3", 19 | "@angular/compiler": "^6.0.3", 20 | "@angular/core": "^6.0.3", 21 | "@angular/forms": "^6.0.3", 22 | "@angular/http": "^6.0.3", 23 | "@angular/platform-browser": "^6.0.3", 24 | "@angular/platform-browser-dynamic": "^6.0.3", 25 | "@angular/router": "^6.0.3", 26 | "core-js": "^2.5.4", 27 | "flexmonster": "^2.9.105", 28 | "rxjs": "^6.0.0", 29 | "zone.js": "^0.8.26" 30 | }, 31 | "devDependencies": { 32 | "@angular-devkit/build-angular": "~0.6.6", 33 | "@angular/cli": "~6.0.7", 34 | "@angular/compiler-cli": "^6.0.3", 35 | "@angular/language-service": "^6.0.3", 36 | "@types/jasmine": "~2.8.6", 37 | "@types/jasminewd2": "~2.0.3", 38 | "@types/node": "~8.9.4", 39 | "codelyzer": "~4.2.1", 40 | "jasmine-core": "~2.99.1", 41 | "jasmine-spec-reporter": "~4.2.1", 42 | "karma": "^3.1.1", 43 | "karma-chrome-launcher": "~2.2.0", 44 | "karma-coverage-istanbul-reporter": "~2.0.0", 45 | "karma-jasmine": "~1.1.1", 46 | "karma-jasmine-html-reporter": "^0.2.2", 47 | "ng-packagr": "^3.0.6", 48 | "protractor": "^5.4.1", 49 | "ts-node": "~5.0.1", 50 | "tsickle": "^0.33.1", 51 | "tslint": "~5.9.1", 52 | "typescript": "^2.9.2" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './e2e/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: 'e2e/tsconfig.e2e.json' 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flexmonster/ng-flexmonster/716eaa133187f0c7397bbfea0b1c6f5468b19281/src/app/app.component.css -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed, async } from '@angular/core/testing'; 2 | import { AppComponent } from './app.component'; 3 | describe('AppComponent', () => { 4 | beforeEach(async(() => { 5 | TestBed.configureTestingModule({ 6 | declarations: [ 7 | AppComponent 8 | ], 9 | }).compileComponents(); 10 | })); 11 | it('should create the app', async(() => { 12 | const fixture = TestBed.createComponent(AppComponent); 13 | const app = fixture.debugElement.componentInstance; 14 | expect(app).toBeTruthy(); 15 | })); 16 | it(`should have as title 'app'`, async(() => { 17 | const fixture = TestBed.createComponent(AppComponent); 18 | const app = fixture.debugElement.componentInstance; 19 | expect(app.title).toEqual('app'); 20 | })); 21 | it('should render title in a h1 tag', async(() => { 22 | const fixture = TestBed.createComponent(AppComponent); 23 | fixture.detectChanges(); 24 | const compiled = fixture.debugElement.nativeElement; 25 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); 26 | })); 27 | }); 28 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'app'; 10 | } 11 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | 4 | import { AppComponent } from './app.component'; 5 | import { FlexmonsterPivotModule } from '../../dist/ng-flexmonster'; 6 | 7 | @NgModule({ 8 | declarations: [ 9 | AppComponent 10 | ], 11 | imports: [ 12 | BrowserModule, 13 | FlexmonsterPivotModule 14 | ], 15 | providers: [], 16 | bootstrap: [AppComponent] 17 | }) 18 | export class AppModule { } 19 | -------------------------------------------------------------------------------- /src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flexmonster/ng-flexmonster/716eaa133187f0c7397bbfea0b1c6f5468b19281/src/assets/.gitkeep -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flexmonster/ng-flexmonster/716eaa133187f0c7397bbfea0b1c6f5468b19281/src/favicon.ico -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NgFlexmonster 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 22 | // import 'core-js/es6/symbol'; 23 | // import 'core-js/es6/object'; 24 | // import 'core-js/es6/function'; 25 | // import 'core-js/es6/parse-int'; 26 | // import 'core-js/es6/parse-float'; 27 | // import 'core-js/es6/number'; 28 | // import 'core-js/es6/math'; 29 | // import 'core-js/es6/string'; 30 | // import 'core-js/es6/date'; 31 | // import 'core-js/es6/array'; 32 | // import 'core-js/es6/regexp'; 33 | // import 'core-js/es6/map'; 34 | // import 'core-js/es6/weak-map'; 35 | // import 'core-js/es6/set'; 36 | 37 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 38 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 39 | 40 | /** IE10 and IE11 requires the following for the Reflect API. */ 41 | // import 'core-js/es6/reflect'; 42 | 43 | 44 | /** Evergreen browsers require these. **/ 45 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. 46 | import 'core-js/es7/reflect'; 47 | 48 | 49 | /** 50 | * Required to support Web Animations `@angular/platform-browser/animations`. 51 | * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation 52 | **/ 53 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 54 | 55 | /** 56 | * By default, zone.js will patch all possible macroTask and DomEvents 57 | * user can disable parts of macroTask/DomEvents patch by setting following flags 58 | */ 59 | 60 | // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 61 | // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 62 | // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 63 | 64 | /* 65 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 66 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 67 | */ 68 | // (window as any).__Zone_enable_cross_context_check = true; 69 | 70 | /*************************************************************************************************** 71 | * Zone JS is required by default for Angular itself. 72 | */ 73 | import 'zone.js/dist/zone'; // Included with Angular CLI. 74 | 75 | 76 | 77 | /*************************************************************************************************** 78 | * APPLICATION IMPORTS 79 | */ 80 | -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "types": [ 8 | "jasmine", 9 | "node" 10 | ] 11 | }, 12 | "files": [ 13 | "test.ts", 14 | "polyfills.ts" 15 | ], 16 | "include": [ 17 | "**/*.spec.ts", 18 | "**/*.d.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "sourceMap": true, 6 | "declaration": false, 7 | "moduleResolution": "node", 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "target": "es5", 11 | "typeRoots": [ 12 | "node_modules/@types" 13 | ], 14 | "lib": [ 15 | "es2017", 16 | "dom" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/codelyzer" 4 | ], 5 | "rules": { 6 | "arrow-return-shorthand": true, 7 | "callable-types": true, 8 | "class-name": true, 9 | "comment-format": [ 10 | true, 11 | "check-space" 12 | ], 13 | "curly": true, 14 | "deprecation": { 15 | "severity": "warn" 16 | }, 17 | "eofline": true, 18 | "forin": true, 19 | "import-blacklist": [ 20 | true, 21 | "rxjs/Rx" 22 | ], 23 | "import-spacing": true, 24 | "indent": [ 25 | true, 26 | "spaces" 27 | ], 28 | "interface-over-type-literal": true, 29 | "label-position": true, 30 | "max-line-length": [ 31 | true, 32 | 140 33 | ], 34 | "member-access": false, 35 | "member-ordering": [ 36 | true, 37 | { 38 | "order": [ 39 | "static-field", 40 | "instance-field", 41 | "static-method", 42 | "instance-method" 43 | ] 44 | } 45 | ], 46 | "no-arg": true, 47 | "no-bitwise": true, 48 | "no-console": [ 49 | true, 50 | "debug", 51 | "info", 52 | "time", 53 | "timeEnd", 54 | "trace" 55 | ], 56 | "no-construct": true, 57 | "no-debugger": true, 58 | "no-duplicate-super": true, 59 | "no-empty": false, 60 | "no-empty-interface": true, 61 | "no-eval": true, 62 | "no-inferrable-types": [ 63 | true, 64 | "ignore-params" 65 | ], 66 | "no-misused-new": true, 67 | "no-non-null-assertion": true, 68 | "no-shadowed-variable": true, 69 | "no-string-literal": false, 70 | "no-string-throw": true, 71 | "no-switch-case-fall-through": true, 72 | "no-trailing-whitespace": true, 73 | "no-unnecessary-initializer": true, 74 | "no-unused-expression": true, 75 | "no-use-before-declare": true, 76 | "no-var-keyword": true, 77 | "object-literal-sort-keys": false, 78 | "one-line": [ 79 | true, 80 | "check-open-brace", 81 | "check-catch", 82 | "check-else", 83 | "check-whitespace" 84 | ], 85 | "prefer-const": true, 86 | "quotemark": [ 87 | true, 88 | "single" 89 | ], 90 | "radix": true, 91 | "semicolon": [ 92 | true, 93 | "always" 94 | ], 95 | "triple-equals": [ 96 | true, 97 | "allow-null-check" 98 | ], 99 | "typedef-whitespace": [ 100 | true, 101 | { 102 | "call-signature": "nospace", 103 | "index-signature": "nospace", 104 | "parameter": "nospace", 105 | "property-declaration": "nospace", 106 | "variable-declaration": "nospace" 107 | } 108 | ], 109 | "unified-signatures": true, 110 | "variable-name": false, 111 | "whitespace": [ 112 | true, 113 | "check-branch", 114 | "check-decl", 115 | "check-operator", 116 | "check-separator", 117 | "check-type" 118 | ], 119 | "directive-selector": [ 120 | true, 121 | "attribute", 122 | "app", 123 | "camelCase" 124 | ], 125 | "component-selector": [ 126 | true, 127 | "element", 128 | "app", 129 | "kebab-case" 130 | ], 131 | "no-output-on-prefix": true, 132 | "use-input-property-decorator": true, 133 | "use-output-property-decorator": true, 134 | "use-host-property-decorator": true, 135 | "no-input-rename": true, 136 | "no-output-rename": true, 137 | "use-life-cycle-interface": true, 138 | "use-pipe-transform-interface": true, 139 | "component-class-suffix": true, 140 | "directive-class-suffix": true 141 | } 142 | } 143 | --------------------------------------------------------------------------------