From 29a2ce836e5df5f4ae7b91bd9bbe4ad27efe9a9d Mon Sep 17 00:00:00 2001 From: Flexmonster Team <53529064+flexmonsterteam@users.noreply.github.com> Date: Tue, 22 Oct 2019 20:59:48 +0300 Subject: [PATCH] [@types/flexmonster] Updates for Flexmonster Pivot Table v2.7.17 (#39304) * Added options.chart.axisShortNumberFormat * validateFormulas option in Flexmonster * new option properties were added showFieldListSearch strictDataTypes * Added ContextMenuItem.class * ExportOptions.fontUrl * Options.caseSensitiveMembers * new API call added new API call openCalculatedValueEditor * requestHeader was renamed into requestHeaders * Update index.d.ts simplifyFieldListFolders * Update index.d.ts validateReportFiles * Update index.d.ts filter.liveSearch * update getData callbacks * Update index.d.ts * added levels for getAllHierarchies() API * Level definition update * CellData properties update (+ recordID, + rowData) * Added dataSource.type * "Definitions by" were updated * report object extended with "version" and "creationDate" * updateData() API call update (added options parameter) * Added chartclick event --- types/flexmonster/index.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/types/flexmonster/index.d.ts b/types/flexmonster/index.d.ts index 90c1f9cc38..7d4bde22e0 100644 --- a/types/flexmonster/index.d.ts +++ b/types/flexmonster/index.d.ts @@ -37,6 +37,7 @@ declare namespace Flexmonster { beforetoolbarcreated?: (toolbar: Toolbar) => void; cellclick?: (cell: CellData) => void; celldoubleclick?: (cell: CellData) => void; + chartclick?: (data: ChartData) => void; datachanged?: (param: object) => void; dataerror?: (param: object) => void; datafilecancelled?: () => void; @@ -63,6 +64,7 @@ declare namespace Flexmonster { ready?: () => void; reportchange?: () => void; reportcomplete?: () => void; + reportfileloaded?: () => void; reportfilecancelled?: () => void; reportfileerror?: () => void; runningquery?: () => void; @@ -116,7 +118,7 @@ declare namespace Flexmonster { off(eventType: string, handler?: ((...args: any[]) => any) | string): void; on(eventType: string, handler: ((...args: any[]) => any) | string): void; open(): void; - openCalculatedValueEditor(uniqueName?: string, callbackHandler?: ((response: {uniqueName: string, isRemoved: boolean}) => void) | string): void; + openCalculatedValueEditor(uniqueName?: string, callbackHandler?: ((response: { uniqueName: string, isRemoved: boolean }) => void) | string): void; openFieldsList(): void; openFilter(hierarchyName: string): void; print(options?: PrintOptions): void; @@ -181,7 +183,7 @@ declare namespace Flexmonster { } interface DataSource { - type?: string; + type?: string; dataSourceType?: string; browseForFile?: boolean; catalog?: string; @@ -553,11 +555,12 @@ declare namespace Flexmonster { } interface ChartData { - columnTuple?: number[]; + element: any; + columns?: object[]; id?: string; label?: string; measure?: MeasureObject; - rawTuple?: number[]; + rows?: object[]; value?: number; }