Skip to content

Commit

Permalink
Add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlandsman committed Apr 2, 2024
1 parent 4664e26 commit a32cc29
Show file tree
Hide file tree
Showing 658 changed files with 224,878 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist
tmp

# dependencies
Expand Down
Binary file added dist/packages/ag-charts-angular.tgz
Binary file not shown.
Binary file added dist/packages/ag-charts-community.tgz
Binary file not shown.
Binary file added dist/packages/ag-charts-enterprise.tgz
Binary file not shown.
Binary file added dist/packages/ag-charts-react.tgz
Binary file not shown.
Binary file added dist/packages/ag-charts-vue.tgz
Binary file not shown.
Binary file added dist/packages/ag-charts-vue3.tgz
Binary file not shown.
21 changes: 21 additions & 0 deletions dist/packages/contents/ag-charts-angular/package/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2015-2019 AG GRID LTD

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
76 changes: 76 additions & 0 deletions dist/packages/contents/ag-charts-angular/package/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<picture><source media="(prefers-color-scheme: dark)" srcset="./.github/banner-dark.png"><source media="(prefers-color-scheme: light)" srcset="./.github/banner-light.png"><img alt="AG Charts canvas-based charting trusted by the community, built for enterprise." src="./.github/banner-light.png"></picture>

[![Github Stars](https://img.shields.io/github/stars/ag-grid/ag-charts?style=social)](https://github.com/ag-grid/ag-charts) [![Twitter](https://img.shields.io/twitter/follow/ag_grid?style=social)](https://twitter.com/ag_grid)

| Module | Info |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| ag-charts-community | [![npm](https://img.shields.io/npm/dm/ag-charts-community)](https://www.npmjs.com/package/ag-charts-community) <br> [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ag-charts-community&metric=alert_status)](https://sonarcloud.io/dashboard?id=ag-charts-community) <br> |
| ag-charts-enterprise | [![npm](https://img.shields.io/npm/dm/ag-charts-enterprise)](https://www.npmjs.com/package/ag-charts-enterprise) <br> [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ag-charts-community&metric=alert_status)](https://sonarcloud.io/dashboard?id=ag-charts-community) |
| ag-charts-angular | [![npm](https://img.shields.io/npm/dm/ag-charts-angular.svg)](https://www.npmjs.com/package/ag-charts-angular) <br> [![npm](https://img.shields.io/npm/dt/ag-charts-angular.svg)](https://www.npmjs.com/package/ag-charts-angular) |

# AG Charts Angular Community

AG Charts is a fully-featured and highly customizable JavaScript charting library. The professional choice for developers building enterprise applications

It delivers [outstanding performance](https://charts.ag-grid.com/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github), has no third-party dependencies and [integrates smoothly with all major JavaScript frameworks](https://charts.ag-grid.com/angular/quick-start?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github).

## Features

Here are some of the features that make AG Charts stand out:

- Modern, lightweight and performant
- Thin, easy-to-use wrappers for all popular frameworks: React, Angular, Vue
- Framework agnostic, easy to use from plain JavaScript or TypeScript
- Zero dependencies
- Support for many chart types:
- Line
- Bar
- Area
- Scatter
- Bubble
- Pie
- Donut
- Histogram
- Box Plot \*
- Heatmap \*
- Nightingale \*
- Range
- Bar \*
- Area \*
- Radar
- Area \*
- Line \*
- Bar \*
- Column \*
- Bullet \*
- Reactive - property changes are automatically batched to take effect on next frame
- Simple, clean API
- Interactive documentation

\* The features marked with an asterisk are available in the [Enterprise version](https://charts.ag-grid.com/license-pricing/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) only.

Check out the [developer documentation](https://charts.ag-grid.com/angular/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) for a complete list of features or visit [our official docs](https://charts.ag-grid.com/gallery/?utm_source=ag-grid-readme&utm_medium=repository&utm_campaign=github) for tutorials and feature demos.

## Getting started

See [Get Started with Angular](https://charts.ag-grid.com/angular/quick-start/?utm_source=ag-charts-readme&utm_medium=repository&utm_campaign=github).

### Installation

See [Installation for Angular](https://charts.ag-grid.com/angular/installation/).

## Issue Reporting

If you have found a bug, please report it in this repository's [issues](https://github.com/ag-grid/ag-charts/issues) section. If you're using the Enterprise version, please use the [private ticketing](https://ag-grid.zendesk.com/) system to do that.

## Asking Questions

Look for similar problems on [StackOverflow](https://stackoverflow.com/questions/tagged/ag-charts) using the `ag-charts` tag. If nothing seems related, post a new message there. Do not use GitHub issues to ask questions.

## Contributing

AG Charts is developed by a team of co-located developers in London. If you want to join the team send your application to [email protected].

## License

This project is licensed under the MIT license. See the [LICENSE file](./LICENSE.txt) for more info.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Generated bundle index. Do not edit.
*/
export * from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWctY2hhcnRzLWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9hZy1jaGFydHMtYW5ndWxhci9zcmMvYWctY2hhcnRzLWFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
import { AgCharts, } from 'ag-charts-community';
import * as i0 from "@angular/core";
// noinspection AngularIncorrectTemplateDefinition
export class AgChartsAngular {
constructor(elementDef, ngZone) {
this.ngZone = ngZone;
this._initialised = false;
this.options = {};
this.onChartReady = new EventEmitter();
this._nativeElement = elementDef.nativeElement;
}
ngAfterViewInit() {
const options = this.patchChartOptions(this.options);
this.chart = this.runOutsideAngular(() => AgCharts.create(options));
this._initialised = true;
this.chart.chart.waitForUpdate().then(() => {
this.onChartReady.emit(this.chart);
});
}
// noinspection JSUnusedGlobalSymbols,JSUnusedLocalSymbols
ngOnChanges(changes) {
this.runOutsideAngular(() => {
if (!this._initialised || !this.chart) {
return;
}
AgCharts.update(this.chart, this.patchChartOptions(this.options));
});
}
ngOnDestroy() {
if (this._initialised && this.chart) {
this.chart.destroy();
this.chart = undefined;
this._initialised = false;
}
}
patchChartOptions(propsOptions) {
const patchListeners = (listenerConfig) => {
const config = listenerConfig ?? {};
for (const [listenerName, listener] of Object.entries(config)) {
if (!listener || typeof listener !== 'function')
continue;
config[listenerName] = (...args) => {
this.runInsideAngular(() => listener(...args));
};
}
};
patchListeners(propsOptions?.legend?.listeners);
patchListeners(propsOptions?.listeners);
propsOptions.series?.forEach((series) => {
patchListeners(series.listeners);
});
if (propsOptions.container) {
return propsOptions;
}
return { ...propsOptions, container: this._nativeElement };
}
runOutsideAngular(callback) {
return this.ngZone ? this.ngZone.runOutsideAngular(callback) : callback();
}
runInsideAngular(callback) {
return this.ngZone ? this.ngZone.run(callback) : callback();
}
}
AgChartsAngular.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AgChartsAngular, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
AgChartsAngular.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AgChartsAngular, isStandalone: true, selector: "ag-charts-angular", inputs: { options: "options" }, outputs: { onChartReady: "onChartReady" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AgChartsAngular, decorators: [{
type: Component,
args: [{
selector: 'ag-charts-angular',
standalone: true,
template: '',
encapsulation: ViewEncapsulation.None,
}]
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { options: [{
type: Input
}], onChartReady: [{
type: Output
}] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWctY2hhcnRzLWFuZ3VsYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYWctY2hhcnRzLWFuZ3VsYXIvc3JjL2xpYi9hZy1jaGFydHMtYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVILFNBQVMsRUFFVCxZQUFZLEVBQ1osS0FBSyxFQUlMLE1BQU0sRUFDTixpQkFBaUIsR0FDcEIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUtILFFBQVEsR0FFWCxNQUFNLHFCQUFxQixDQUFDOztBQUU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GNhbGxiYWNrKCk7XG4gICAgfVxufVxuIl19
Loading

0 comments on commit a32cc29

Please sign in to comment.