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

Changes from @folkehelseinstituttet/angular-highcharts/v/4.5.0 #726

Merged
merged 6 commits into from
Oct 15, 2024
Merged
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
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';
Loading