Skip to content

Commit

Permalink
Migration to Angular 16
Browse files Browse the repository at this point in the history
  • Loading branch information
jagomf committed Dec 11, 2023
1 parent 4061ff0 commit d9e5c30
Show file tree
Hide file tree
Showing 23 changed files with 17,691 additions and 2,532 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Jago MF
Copyright (c) 2023 Jago MF

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class AppModule { }

In your templates, use the `<countries-map>` component like this:
```html
<countries-map [data]="mapData"></countries-map>
<countries-map [data]="mapData"/>
```
and in the corresponding `.ts` file:
```ts
Expand Down Expand Up @@ -124,7 +124,7 @@ The `chartReady` event is fired when a chart is completely loaded.

Bind the `chartReady` event in the `countries-map` component like this:
```html
<countries-map [data]="mapData" (chartReady)="ready()"></countries-map>
<countries-map [data]="mapData" (chartReady)="ready()"/>
```

Your `ready()` function receives no parameters. You can use it like:
Expand All @@ -140,7 +140,7 @@ The `chartError` event is fired if there are some errors with a chart.

Bind the `chartError` event in the `countries-map` component, like this:
```html
<countries-map [data]="mapData" (chartError)="error($event)"></countries-map>
<countries-map [data]="mapData" (chartError)="error($event)"/>
```

Your `error()` function is passed an event which interface looks like this:
Expand Down Expand Up @@ -176,7 +176,7 @@ The `chartSelect` event is fired when a chart is selected/clicked.

Bind the `chartSelect` event in the `countries-map` component, like this:
```html
<countries-map [data]="mapData" (chartSelect)="select($event)"></countries-map>
<countries-map [data]="mapData" (chartSelect)="select($event)"/>
```

Your `select()` function is passed an event whose interface looks like this:
Expand Down
2 changes: 1 addition & 1 deletion dist/countries-map/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Jago MF
Copyright (c) 2023 Jago MF

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions dist/countries-map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class AppModule { }

In your templates, use the `<countries-map>` component like this:
```html
<countries-map [data]="mapData"></countries-map>
<countries-map [data]="mapData"/>
```
and in the corresponding `.ts` file:
```ts
Expand Down Expand Up @@ -124,7 +124,7 @@ The `chartReady` event is fired when a chart is completely loaded.

Bind the `chartReady` event in the `countries-map` component like this:
```html
<countries-map [data]="mapData" (chartReady)="ready()"></countries-map>
<countries-map [data]="mapData" (chartReady)="ready()"/>
```

Your `ready()` function receives no parameters. You can use it like:
Expand All @@ -140,7 +140,7 @@ The `chartError` event is fired if there are some errors with a chart.

Bind the `chartError` event in the `countries-map` component, like this:
```html
<countries-map [data]="mapData" (chartError)="error($event)"></countries-map>
<countries-map [data]="mapData" (chartError)="error($event)"/>
```

Your `error()` function is passed an event which interface looks like this:
Expand Down Expand Up @@ -176,7 +176,7 @@ The `chartSelect` event is fired when a chart is selected/clicked.

Bind the `chartSelect` event in the `countries-map` component, like this:
```html
<countries-map [data]="mapData" (chartSelect)="select($event)"></countries-map>
<countries-map [data]="mapData" (chartSelect)="select($event)"/>
```

Your `select()` function is passed an event whose interface looks like this:
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { CountriesMapBaseComponent } from './base-map.component';
import { CountriesMapComponent } from './countries-map.component';
import * as i0 from "@angular/core";
export class CountriesMapModule {
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CountriesMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CountriesMapModule, declarations: [CountriesMapBaseComponent, CountriesMapComponent], imports: [CommonModule], exports: [CountriesMapComponent] }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CountriesMapModule, imports: [CommonModule] }); }
}
CountriesMapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountriesMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
CountriesMapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CountriesMapModule, declarations: [CountriesMapBaseComponent, CountriesMapComponent], imports: [CommonModule], exports: [CountriesMapComponent] });
CountriesMapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountriesMapModule, imports: [CommonModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountriesMapModule, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CountriesMapModule, decorators: [{
type: NgModule,
args: [{
imports: [
Expand All @@ -20,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
]
}]
}] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRyaWVzLW1hcC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9saWIvc3JjL2xpYi9jb3VudHJpZXMtbWFwLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzt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eyBDb3VudHJpZXNNYXBDb21wb25lbnQgfSBmcm9tICcuL2NvdW50cmllcy1tYXAuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZVxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtDb3VudHJpZXNNYXBCYXNlQ29tcG9uZW50LCBDb3VudHJpZXNNYXBDb21wb25lbnRdLFxuICBleHBvcnRzOiBbXG4gICAgQ291bnRyaWVzTWFwQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgQ291bnRyaWVzTWFwTW9kdWxlIHsgfVxuIl19
File renamed without changes.
230 changes: 0 additions & 230 deletions dist/countries-map/fesm2015/countries-map.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/countries-map/fesm2015/countries-map.mjs.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/countries-map/lib/countries-map.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export declare class CountriesMapComponent implements AfterViewInit, OnChanges {
target?: SVGElement;
}): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CountriesMapComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CountriesMapComponent, "countries-map", never, { "data": "data"; "countryLabel": "countryLabel"; "valueLabel": "valueLabel"; "showCaption": "showCaption"; "captionBelow": "captionBelow"; "minValue": "minValue"; "maxValue": "maxValue"; "minColor": "minColor"; "maxColor": "maxColor"; "backgroundColor": "backgroundColor"; "noDataColor": "noDataColor"; "exceptionColor": "exceptionColor"; }, { "chartReady": "chartReady"; "chartError": "chartError"; "chartSelect": "chartSelect"; }, never, never, false, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CountriesMapComponent, "countries-map", never, { "data": { "alias": "data"; "required": true; }; "countryLabel": { "alias": "countryLabel"; "required": false; }; "valueLabel": { "alias": "valueLabel"; "required": false; }; "showCaption": { "alias": "showCaption"; "required": false; }; "captionBelow": { "alias": "captionBelow"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "minColor": { "alias": "minColor"; "required": false; }; "maxColor": { "alias": "maxColor"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "noDataColor": { "alias": "noDataColor"; "required": false; }; "exceptionColor": { "alias": "exceptionColor"; "required": false; }; }, { "chartReady": "chartReady"; "chartError": "chartError"; "chartSelect": "chartSelect"; }, never, never, false, never>;
}
22 changes: 8 additions & 14 deletions dist/countries-map/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countries-map",
"version": "4.7.0",
"version": "4.8.0",
"description": "World countries datamaps component for Angular",
"license": "MIT",
"author": "Jago MF <[email protected]>",
Expand All @@ -16,31 +16,25 @@
"Charts"
],
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0"
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0"
},
"dependencies": {
"@jagomf/countrieslist": "^3.0.0",
"@jagomf/countrieslist": "^3.0.1",
"chroma-js": "^2.1.0",
"tslib": "^2.0.0"
},
"module": "fesm2015/countries-map.mjs",
"es2020": "fesm2020/countries-map.mjs",
"esm2020": "esm2020/countries-map.mjs",
"fesm2020": "fesm2020/countries-map.mjs",
"fesm2015": "fesm2015/countries-map.mjs",
"module": "fesm2022/countries-map.mjs",
"typings": "index.d.ts",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./index.d.ts",
"esm2020": "./esm2020/countries-map.mjs",
"es2020": "./fesm2020/countries-map.mjs",
"es2015": "./fesm2015/countries-map.mjs",
"node": "./fesm2015/countries-map.mjs",
"default": "./fesm2020/countries-map.mjs"
"esm2022": "./esm2022/countries-map.mjs",
"esm": "./esm2022/countries-map.mjs",
"default": "./fesm2022/countries-map.mjs"
}
},
"sideEffects": false
Expand Down
Loading

0 comments on commit d9e5c30

Please sign in to comment.