From f7314a30941e64d029225052a7f03e32295c4ef2 Mon Sep 17 00:00:00 2001 From: maksymkaD <52499153+maksymkaD@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:53:27 +0300 Subject: [PATCH] Support eCharts integration --- projects/flexmonster/angular/src/charts.ts | 12 ++++++++++++ projects/flexmonster/angular/src/public-api.ts | 4 ++-- projects/flexmonster/angular/ssr/charts.ts | 8 ++++++++ projects/flexmonster/angular/ssr/public-api.ts | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 projects/flexmonster/angular/src/charts.ts create mode 100644 projects/flexmonster/angular/ssr/charts.ts diff --git a/projects/flexmonster/angular/src/charts.ts b/projects/flexmonster/angular/src/charts.ts new file mode 100644 index 0000000..787cd1c --- /dev/null +++ b/projects/flexmonster/angular/src/charts.ts @@ -0,0 +1,12 @@ +import { + eCharts, + type IFMEChartsInputParams, + type IFMECharts, +} from '@flexmonster/js'; + + +export const FMCharts = { + eCharts(params: IFMEChartsInputParams): IFMECharts { + return eCharts(params); + }, +}; diff --git a/projects/flexmonster/angular/src/public-api.ts b/projects/flexmonster/angular/src/public-api.ts index 2f7b707..3821c0c 100644 --- a/projects/flexmonster/angular/src/public-api.ts +++ b/projects/flexmonster/angular/src/public-api.ts @@ -6,5 +6,5 @@ export * from './pivot-field-list.component'; export * from './toolbar.component'; export * from './filter.component'; export * from './group.component'; - -export * from './flexmonster.module'; +export * from './charts'; +export * from './flexmonster.module'; \ No newline at end of file diff --git a/projects/flexmonster/angular/ssr/charts.ts b/projects/flexmonster/angular/ssr/charts.ts new file mode 100644 index 0000000..a479228 --- /dev/null +++ b/projects/flexmonster/angular/ssr/charts.ts @@ -0,0 +1,8 @@ +import type { IFMEChartsInputParams, IFMECharts } from '@flexmonster/js'; + +export const FMCharts = { + async eCharts(params: IFMEChartsInputParams): Promise { + const { FMCharts } = await import('@flexmonster/angular'); + return FMCharts.eCharts(params); + }, +}; diff --git a/projects/flexmonster/angular/ssr/public-api.ts b/projects/flexmonster/angular/ssr/public-api.ts index 719fb5d..f9e0cba 100644 --- a/projects/flexmonster/angular/ssr/public-api.ts +++ b/projects/flexmonster/angular/ssr/public-api.ts @@ -7,3 +7,4 @@ export * from './pivot-field-list.component'; export * from './toolbar.component'; export * from './filter.component'; export * from './group.component'; +export * from './charts';