Skip to content

Commit

Permalink
feat: angular 18
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Nov 5, 2024
1 parent ff89cfe commit 1ba50f9
Show file tree
Hide file tree
Showing 28 changed files with 75 additions and 28,934 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
28,860 changes: 0 additions & 28,860 deletions package-lock.json

This file was deleted.

79 changes: 41 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"fix:lint": "ng lint --fix"
},
"dependencies": {
"@angular/animations": "~13.1.0",
"@angular/cdk": "^13.1.0",
"@angular/common": "~13.1.0",
"@angular/compiler": "~13.1.0",
"@angular/core": "~13.1.0",
"@angular/flex-layout": "13.0.0-beta.36",
"@angular/forms": "~13.1.0",
"@angular/platform-browser": "~13.1.0",
"@angular/platform-browser-dynamic": "~13.1.0",
"@angular/router": "~13.1.0",
"@swimlane/ngx-ui": "^35.6.5",
"@angular/animations": "~18.1.0",
"@angular/cdk": "~18.1.0",
"@angular/common": "~18.1.0",
"@angular/compiler": "~18.1.0",
"@angular/core": "~18.1.0",
"@angular/flex-layout": "15.0.0-beta.42",
"@angular/forms": "~18.1.0",
"@angular/platform-browser": "~18.1.0",
"@angular/platform-browser-dynamic": "~18.1.0",
"@angular/router": "~18.1.0",
"@swimlane/ngx-ui": "48.0.5",
"codemirror": "^5.49.2",
"d3-array": "^3.1.1",
"d3-brush": "^3.0.0",
Expand All @@ -61,21 +61,24 @@
"ng-in-viewport": "^6.1.5",
"ngx-moment": "^5.0.0",
"resize-observer-polyfill": "^1.5.1",
"rxjs": "^6.5.3 || ^7.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
"rxjs": "^7.8.1",
"tslib": "^2.3.1",
"zone.js": "~0.14.7"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.1.1",
"@angular-devkit/build-ng-packagr": "~0.1002.0",
"@angular-eslint/builder": "13.1.0",
"@angular-eslint/eslint-plugin": "13.1.0",
"@angular-eslint/eslint-plugin-template": "13.1.0",
"@angular-eslint/schematics": "13.1.0",
"@angular-eslint/template-parser": "13.1.0",
"@angular/cli": "^13.1.1",
"@angular/compiler-cli": "~13.1.0",
"@angular/language-service": "~13.1.0",
"@angular-devkit/architect": "^0.1802.11",
"@angular-devkit/build-angular": "~18.1.0",
"@angular-devkit/build-ng-packagr": "0.1002.0",
"@angular-devkit/core": "~18.1.0",
"@angular-devkit/schematics": "~18.1.0",
"@angular-eslint/builder": "~18.1.0",
"@angular-eslint/eslint-plugin": "^18.4.0",
"@angular-eslint/eslint-plugin-template": "^18.4.0",
"@angular-eslint/schematics": "~18.1.0",
"@angular-eslint/template-parser": "^18.4.0",
"@angular/cli": "~18.1.0",
"@angular/compiler-cli": "~18.1.0",
"@angular/language-service": "~18.1.0",
"@swimlane/eslint-config": "^2.0.0",
"@swimlane/prettier-config-swimlane": "^3.0.2",
"@types/d3-array": "^2.12.1",
Expand All @@ -89,30 +92,30 @@
"@types/jasminewd2": "~2.0.3",
"@types/json-schema": "^7.0.4",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "5.11.0",
"@typescript-eslint/parser": "5.11.0",
"@typescript-eslint/eslint-plugin": "^8.12.1",
"@typescript-eslint/parser": "^8.0.0",
"angular-cli-ghpages": "^0.6.2",
"codelyzer": "^6.0.0",
"cross-env": "^7.0.2",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.4.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-security": "^1.4.0",
"jasmine-core": "~3.6.0",
"jasmine-core": ">=3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.3.16",
"karma": "~6.3.14",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^13.1.1",
"ng-packagr": "~18.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"protractor": "~7.0.0",
"ts-node": "^8.8.2",
"tslint": "~6.1.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-security": "^1.16.0",
"tslint-config-swimlane": "^5.0.0",
"typescript": "~4.5.3"
}
"typescript": "~5.5.2"
},
"volta": {
"node": "20.17.0",
"yarn": "4.5.1"
},
"packageManager": "[email protected]"
}
21 changes: 10 additions & 11 deletions projects/swimlane/ngx-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swimlane/ngx-charts",
"version": "20.5.0",
"version": "21.0.0-beta.0",
"description": "Declarative Charting Framework for Angular",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,14 +30,14 @@
},
"homepage": "https://github.com/swimlane/ngx-charts#readme",
"peerDependencies": {
"@angular/animations": ">=12.0.0",
"@angular/cdk": ">=12.0.0",
"@angular/core": ">=12.0.0",
"@angular/common": ">=12.0.0",
"@angular/forms": ">=12.0.0",
"@angular/platform-browser": ">=12.0.0",
"@angular/platform-browser-dynamic": ">=12.0.0",
"rxjs": "^6.5.3 || ^7.4.0"
"@angular/animations": "15.x || 16.x || 17.x || 18.x",
"@angular/cdk": "15.x || 16.x || 17.x || 18.x",
"@angular/core": "15.x || 16.x || 17.x || 18.x",
"@angular/common": "15.x || 16.x || 17.x || 18.x",
"@angular/forms": "15.x || 16.x || 17.x || 18.x",
"@angular/platform-browser": "15.x || 16.x || 17.x || 18.x",
"@angular/platform-browser-dynamic": "15.x || 16.x || 17.x || 18.x",
"rxjs": "7.x"
},
"dependencies": {
"d3-array": "^3.1.1",
Expand All @@ -53,8 +53,7 @@
"d3-shape": "^3.2.0",
"d3-time-format": "^3.0.0",
"d3-transition": "^3.0.1",
"rfdc": "^1.3.0",
"tslib": "^2.0.0"
"rfdc": "^1.3.0"
},
"devDependencies": {
"@types/d3-shape": "^2.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class AreaChartNormalizedComponent extends BaseChartComponent {
@Input() showGridLines: boolean = true;
@Input() curve: any = curveLinear;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class AreaChartStackedComponent extends BaseChartComponent {
@Input() showGridLines: boolean = true;
@Input() curve: any = curveLinear;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class AreaChartComponent extends BaseChartComponent {
@Input() showGridLines: boolean = true;
@Input() curve: CurveFactory = curveLinear;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class BarHorizontal2DComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class BarHorizontalNormalizedComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class BarHorizontalStackedComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class BarHorizontalComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class BarVertical2DComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class BarVerticalNormalizedComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class BarVerticalStackedComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class BarVerticalComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
@Input() rotateXAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class BoxChartComponent extends BaseChartComponent {
@ContentChild('tooltipTemplate', { static: false }) tooltipTemplate: TemplateRef<any>;

/** Input Data, this came from Base Chart Component. */
results: BoxChartMultiSeries;
declare results: BoxChartMultiSeries;
/** Chart Dimensions, this came from Base Chart Component. */
dims: ViewDimensions;
/** Color data. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ViewDimensions } from './types/view-dimension.interface';
template: ` <div></div> `
})
export class BaseChartComponent implements OnChanges, AfterViewInit, OnDestroy, OnInit {
@Input() results: any;
@Input() declare results: any;
@Input() view: [number, number];
@Input() scheme: string | Color = 'cool';
@Input() schemeType: ScaleType = ScaleType.Ordinal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { ViewDimensions } from '../types/view-dimension.interface';
})
export class Timeline implements OnChanges {
@Input() view: [number, number];
@Input() results; // type this
@Input() declare results; // type this
@Input() scheme; // type this
@Input() customColors; // type this
@Input() legend: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class TooltipArea {
@Input() xSet: any[];
@Input() xScale;
@Input() yScale;
@Input() results: any[];
@Input() declare results: any[];
@Input() colors: ColorHelper;
@Input() showPercentage: boolean = false;
@Input() tooltipDisabled: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { InjectionService } from './injection.service';
declarations: [TooltipContentComponent, TooltipDirective],
providers: [InjectionService, TooltipService],
exports: [TooltipContentComponent, TooltipDirective],
imports: [CommonModule],
entryComponents: [TooltipContentComponent]
imports: [CommonModule]
})
export class TooltipModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GaugeComponent extends BaseChartComponent implements AfterViewInit
@Input() units: string;
@Input() bigSegments: number = 10;
@Input() smallSegments: number = 5;
@Input() results: any[];
@Input() declare results: any[];
@Input() showAxis: boolean = true;
@Input() startAngle: number = -120;
@Input() angleSpan: number = 240;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class LineChartComponent extends BaseChartComponent implements OnInit {
@Input() showGridLines: boolean = true;
@Input() curve: any = curveLinear;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() rangeFillOpacity: number;
@Input() trimXAxisTicks: boolean = true;
@Input() trimYAxisTicks: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class PolarChartComponent extends BaseChartComponent implements OnInit {
@Input() showGridLines: boolean = true;
@Input() curve: any = curveCardinalClosed;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() rangeFillOpacity: number = 0.15;
@Input() trimYAxisTicks: boolean = true;
@Input() maxYAxisTickLength: number = 16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { ScaleType } from '../common/types/scale-type.enum';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class TreeMapComponent extends BaseChartComponent {
@Input() results: DataItem[];
@Input() declare results: DataItem[];
@Input() tooltipDisabled: boolean = false;
@Input() valueFormatting: any;
@Input() labelFormatting: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class BubbleChartInteractiveComponent extends BaseChartComponent {
@Input() maxRadius = 10;
@Input() minRadius = 3;
@Input() autoScale: boolean;
@Input() schemeType: ScaleType = ScaleType.Ordinal;
@Input() declare schemeType: ScaleType = ScaleType.Ordinal;
@Input() legendPosition: string = 'right';
@Input() tooltipDisabled: boolean = false;
@Input() xScaleMin: any;
Expand Down
2 changes: 1 addition & 1 deletion src/app/custom-charts/combo-chart/combo-chart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ComboChartComponent extends BaseChartComponent {
@Input() gradient: boolean;
@Input() showGridLines: boolean = true;
@Input() activeEntries: any[] = [];
@Input() schemeType: ScaleType;
@Input() declare schemeType: ScaleType;
@Input() xAxisTickFormatting: any;
@Input() yAxisTickFormatting: any;
@Input() yRightAxisTickFormatting: any;
Expand Down
2 changes: 1 addition & 1 deletion src/app/custom-charts/sparkline/sparkline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
export class SparklineComponent extends BaseChartComponent {
@Input() autoScale = false;
@Input() curve: any = curveLinear;
@Input() schemeType: ScaleType = ScaleType.Linear;
@Input() declare schemeType: ScaleType = ScaleType.Linear;
@Input() valueDomain: number[];
@Input() animations: boolean = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import {
})
export class TimelineFilterBarChartComponent extends BaseChartComponent {
@Input() autoScale = false;
@Input() schemeType: ScaleType = ScaleType.Ordinal;
@Input() declare schemeType: ScaleType = ScaleType.Ordinal;
@Input() valueDomain: number[];
@Input() xAxis;
@Input() yAxis;
Expand Down

0 comments on commit 1ba50f9

Please sign in to comment.