Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 15 #296

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- restore_cache:
keys:
- node-{{ checksum "package-lock.json" }}
- run: npm install
- run: npm install --no-save
- save_cache:
key: node-{{ checksum "package-lock.json" }}
paths:
Expand Down
35 changes: 17 additions & 18 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@
"name": "playground",
"private": false,
"dependencies": {
"@angular/common": "^14.0.3",
"@angular/compiler": "^14.0.3",
"@angular/core": "^14.0.3",
"@angular/platform-browser": "^14.0.3",
"@angular/platform-browser-dynamic": "^14.0.3",
"@angular/router": "^14.0.3",
"core-js": "^3.23.3",
"rxjs": "^7.5.5",
"tslib": "^2.4.0",
"zone.js": "^0.11.6"
"@angular/common": "^12.0.4",
"@angular/compiler": "^12.0.4",
"@angular/core": "^12.0.4",
"@angular/platform-browser": "^12.0.4",
"@angular/platform-browser-dynamic": "^12.0.4",
"@angular/router": "^12.0.4",
"core-js": "^3.10.1",
"rxjs": "^6.6.7",
"tslib": "^2.2.0",
"zone.js": "^0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.3",
"@angular-builders/jest": "14.0.0",
"@angular/cli": "^14.0.3",
"@angular/compiler-cli": "^14.0.3",
"@types/node": "^18.0.0",
"codelyzer": "^6.0.2",
"ts-node": "^10.8.1",
"@angular-devkit/build-angular": "^12.0.4",
"@angular/cli": "^12.0.4",
"@angular/compiler-cli": "^12.0.4",
"@types/node": "^12.20.7",
"codelyzer": "^6.0.0",
"ts-node": "^8.10.2",
"tslint": "^6.1.3",
"tslint-angular": "^3.0.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "~4.7.4"
"typescript": "~4.2.4"
}
}
15 changes: 15 additions & 0 deletions apps/playground/src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,21 @@ export class MainComponent implements OnInit {
}
}
});

this.charts.push({
title: 'WordTree',
type: ChartType.WordTree,
// type: 'WordTree' as ChartType,
columns: ['Phrases'],
data: [['This is a test'], ['This is not a test'], ['This is an actual test']],
options: {
wordtree: {
format: 'implicit',
type: 'double',
word: 'test'
}
}
});
}

public onReady() {
Expand Down
1 change: 0 additions & 1 deletion libs/angular-google-charts/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/src/setup-tests.ts'],
globalSetup: 'jest-preset-angular/global-setup',
resetMocks: true,
globals: {
'ts-jest': {
Expand Down
37 changes: 18 additions & 19 deletions libs/angular-google-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,31 @@
},
"dependencies": {
"@types/google.visualization": "0.0.68",
"tslib": "^2.4.0"
"tslib": "^2.2.0"
},
"peerDependencies": {
"@angular/common": ">=6.0.0 <=14.x.x",
"@angular/core": ">=6.0.0 <=14.x.x"
"@angular/common": ">=6.0.0 <=15.x.x",
"@angular/core": ">=6.0.0 <=15.x.x"
},
"devDependencies": {
"@angular-builders/jest": "14.0.0",
"@angular-devkit/build-angular": "^14.0.3",
"@angular/cli": "^14.0.3",
"@angular/compiler-cli": "^14.0.3",
"@types/jest": "^28.1.3",
"@types/node": "^18.0.0",
"codelyzer": "^6.0.2",
"jest": "28.1.1",
"jest-junit": "^14.0.0",
"jest-preset-angular": "12.1.0",
"ng-packagr": "^14.0.2",
"standard-version": "^9.5.0",
"ts-jest": "28.0.5",
"rxjs": "^7.5.5",
"ts-node": "^10.8.1",
"@angular-builders/jest": "^12.1.0",
"@angular-devkit/build-angular": "^12.0.4",
"@angular/cli": "^12.0.4",
"@angular/compiler-cli": "^12.0.4",
"@types/jest": "^26.0.22",
"@types/node": "^12.20.7",
"codelyzer": "^6.0.0",
"jest": "^27.0.0",
"jest-junit": "^12.2.0",
"jest-preset-angular": "^9.0.3",
"ng-packagr": "^12.0.5",
"standard-version": "^9.2.0",
"ts-jest": "^27.0.0",
"ts-node": "^10.0.0",
"tslint": "^6.1.3",
"tslint-angular": "^3.0.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "~4.7.4"
"typescript": "~4.2.4"
},
"main": "src/index.ts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
import { ChartErrorEvent, ChartReadyEvent, ChartSelectionChangedEvent } from '../../types/events';

export type Column = string | google.visualization.ColumnSpec;
export type Row = (string | number | Date | null)[];
export type Row = (string | number | Date | { v: string | number | Date | null; f: string | null } | null)[];

export interface ChartBase {
/**
Expand Down
2 changes: 1 addition & 1 deletion libs/angular-google-charts/src/lib/types/chart-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export enum ChartType {
Table = 'Table',
Timeline = 'Timeline',
TreeMap = 'TreeMap',
WordTree = 'wordtree'
WordTree = 'WordTree'
}
Loading