├── .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 | [](https://www.flexmonster.com?r=wrap_ang)
3 | Website: [flexmonster.com](https://www.flexmonster.com?r=wrap_ang)
4 |
5 | [](https://www.npmjs.com/package/ng-flexmonster)
6 | [](https://github.com/flexmonster) [](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 | [](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 | [](https://linkedin.com/company/flexmonster) [](https://youtube.com/user/FlexMonsterPivot) [](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 | [](https://www.flexmonster.com?r=wrap_ang)
3 | Website: [flexmonster.com](https://www.flexmonster.com?r=wrap_ang)
4 |
5 | [](https://www.npmjs.com/package/ng-flexmonster)
6 | [](https://github.com/flexmonster) [](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 | [](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 | [](https://linkedin.com/company/flexmonster) [](https://youtube.com/user/FlexMonsterPivot) [](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