Skip to content

Commit

Permalink
Changes from @folkehelseinstituttet/angular-highcharts/v/4.5.0 (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
proand authored Oct 15, 2024
1 parent 7935566 commit 985f309
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/fhi-angular-highcharts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Unreleased

> Oct 11, 2024
> Oct 15, 2024
* :tada: **Enhancement** Add a custom version of the diagram type class and expose it in the public API Surface
* :bug: **Bugfix** Remove deprecated property DiagramTypeIds.map which should have been removed in [(#693)](https://github.com/folkehelseinstituttet/Fhi.Frontend.Demo/pull/693)
* :bug: **Bugfix** Fix so that table don't break if flagged data in the data set. [(#702)](https://github.com/folkehelseinstituttet/Fhi.Frontend.Demo/pull/702)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,51 @@ export const AllDiagramTypes = [

export const ChartTypes = [line, column, bar, columnStacked, barStacked, pie, columnAndLine];
export const MapTypes = [mapFylker, mapFylker2019, mapFylker2023];

// For the public API Surface
export class FhiDiagramTypes {
static bar = {
id: bar.id,
name: bar.name,
};
static barStacked = {
id: barStacked.id,
name: barStacked.name,
};
static column = {
id: column.id,
name: column.name,
};
static columnAndLine = {
id: columnAndLine.id,
name: columnAndLine.name,
};
static columnStacked = {
id: columnStacked.id,
name: columnStacked.name,
};
static line = {
id: line.id,
name: line.name,
};
static mapFylker = {
id: mapFylker.id,
name: mapFylker.name,
};
static mapFylker2019 = {
id: mapFylker2019.id,
name: mapFylker2019.name,
};
static mapFylker2023 = {
id: mapFylker2023.id,
name: mapFylker2023.name,
};
static pie = {
id: pie.id,
name: pie.name,
};
static table = {
id: table.id,
name: table.name,
};
}
2 changes: 2 additions & 0 deletions projects/fhi-angular-highcharts/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export * from './lib/models/fhi-diagram-flag.model';
export * from './lib/models/fhi-diagram-options.model';
export * from './lib/models/fhi-diagram-serie.model';
export * from './lib/models/fhi-diagram-serie-data.model';

export { FhiDiagramTypes } from './lib/constants-and-enums/fhi-diagram-types';

0 comments on commit 985f309

Please sign in to comment.