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

Enhancement/highcharts update api surface (v4) #720

Merged
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
8 changes: 7 additions & 1 deletion projects/fhi-angular-highcharts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 4.4.1
# Unreleased

> Oct 11, 2024

* :tada: **Enhancement** Add a custom version of the diagram type class and expose it in the public API Surface

## 4.4.1

> Sep 24, 2024

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,51 @@ export const AllDiagramTypes = [
// Diagram types used in diagram-type-navs by default. Overwritten if defined in diagramOptions.
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';