import { DataResponse, LoadDataRequest } from '@embeddable.com/core'; import { Inputs } from '@embeddable.com/react'; import { ThemeClientContext } from '../../../../theme/theme.types'; declare const meta: { readonly name: "PivotTablePro"; readonly label: "Pivot Table"; readonly description: "Cross-tabulated table — row and column dimensions intersected by one or more measures."; readonly category: "Table Charts"; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly label: "Measures to display"; readonly inputs: [...any[], { readonly name: "showColumnTotal"; readonly label: "Show column total"; readonly type: "boolean"; }, { readonly name: "showRowTotal"; readonly label: "Show row total"; readonly type: "boolean"; }, { readonly name: "showAsPercentage"; readonly label: "Show as percentage"; readonly description: "If turned on, other measures may be ignored"; readonly defaultValue: false; readonly type: "boolean"; }]; readonly name: "measures"; readonly type: "measure"; readonly array: true; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; }, { readonly label: "Column dimension"; readonly name: "columnDimension"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly label: "Primary row dimension"; readonly name: "rowDimension"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly label: "Secondary row dimension (optional)"; readonly name: "subRowDimension"; readonly required: false; readonly description: "When set, each primary row becomes expandable. Clicking a row loads a breakdown by the second dimension."; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "title"; readonly type: "string"; readonly label: "Title"; readonly category: "Component Header"; }, { readonly name: "description"; readonly type: "string"; readonly label: "Description"; readonly category: "Component Header"; }, { readonly name: "tooltip"; readonly type: "string"; readonly label: "Tooltip"; readonly category: "Component Header"; }, { readonly name: "displayNullAs"; readonly label: "Display null as"; readonly category: "Component Settings"; readonly type: "string"; }, { readonly name: "firstColumnWidth"; readonly label: "First column width"; readonly description: "Set the width in px (e.g. 200)"; readonly category: "Component Settings"; readonly type: "number"; }, { readonly name: "columnWidth"; readonly label: "Column width"; readonly description: "Set the width in px (e.g. 200)"; readonly category: "Component Settings"; readonly type: "number"; }, { readonly name: "maxResults"; readonly type: "number"; readonly label: "Max results"; readonly category: "Component Settings"; readonly defaultValue: 1000; }, { readonly name: "menuOptions"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly label: "Menu options"; readonly array: true; readonly defaultValue: readonly ["csv", "xlsx", "png"]; readonly category: "Component Settings"; }]; }; export type PivotTableProState = { expandedRowKeys?: string[]; }; export declare const pivotTablePro: { readonly Component: (props: import("./index").PivotTableProProps) => import("react").JSX.Element; readonly meta: { readonly name: "PivotTablePro"; readonly label: "Pivot Table"; readonly description: "Cross-tabulated table — row and column dimensions intersected by one or more measures."; readonly category: "Table Charts"; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly label: "Measures to display"; readonly inputs: [...any[], { readonly name: "showColumnTotal"; readonly label: "Show column total"; readonly type: "boolean"; }, { readonly name: "showRowTotal"; readonly label: "Show row total"; readonly type: "boolean"; }, { readonly name: "showAsPercentage"; readonly label: "Show as percentage"; readonly description: "If turned on, other measures may be ignored"; readonly defaultValue: false; readonly type: "boolean"; }]; readonly name: "measures"; readonly type: "measure"; readonly array: true; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; }, { readonly label: "Column dimension"; readonly name: "columnDimension"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly label: "Primary row dimension"; readonly name: "rowDimension"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly label: "Secondary row dimension (optional)"; readonly name: "subRowDimension"; readonly required: false; readonly description: "When set, each primary row becomes expandable. Clicking a row loads a breakdown by the second dimension."; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "title"; readonly type: "string"; readonly label: "Title"; readonly category: "Component Header"; }, { readonly name: "description"; readonly type: "string"; readonly label: "Description"; readonly category: "Component Header"; }, { readonly name: "tooltip"; readonly type: "string"; readonly label: "Tooltip"; readonly category: "Component Header"; }, { readonly name: "displayNullAs"; readonly label: "Display null as"; readonly category: "Component Settings"; readonly type: "string"; }, { readonly name: "firstColumnWidth"; readonly label: "First column width"; readonly description: "Set the width in px (e.g. 200)"; readonly category: "Component Settings"; readonly type: "number"; }, { readonly name: "columnWidth"; readonly label: "Column width"; readonly description: "Set the width in px (e.g. 200)"; readonly category: "Component Settings"; readonly type: "number"; }, { readonly name: "maxResults"; readonly type: "number"; readonly label: "Max results"; readonly category: "Component Settings"; readonly defaultValue: 1000; }, { readonly name: "menuOptions"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly label: "Menu options"; readonly array: true; readonly defaultValue: readonly ["csv", "xlsx", "png"]; readonly category: "Component Settings"; }]; }; readonly preview: { ({ embeddableTheme, }: { embeddableTheme: any; }): React.JSX.Element; displayName: string; }; readonly previewConfig: { measures: { inputs: { showRowTotal: boolean; showColumnTotal: boolean; }; name: string; title: string; nativeType: import("@embeddable.com/core").TCubeMeasureType; description?: string; meta?: object; __type__: typeof import("@embeddable.com/core/lib/loadData.utils").MEASURE_TYPE; }[]; rowDimension: import("@embeddable.com/core").Dimension; columnDimension: import("@embeddable.com/core").Dimension; results: DataResponse; hideMenu: boolean; expandedRowKeys: never[]; setExpandedRowKey: () => void; }; readonly config: { readonly props: (inputs: Inputs, [state, setState]: [PivotTableProState, (state: PivotTableProState) => void], clientContext: ThemeClientContext) => { state: PivotTableProState; expandedRowKeys: string[]; setExpandedRowKey: (rowKey: string) => void; results: DataResponse; resultsSubRows: DataResponse | undefined; title: string; description: string; tooltip: string; dataset: import("@embeddable.com/core").Dataset; maxResults: number; displayNullAs: string; menuOptions: unknown[]; measures: import("@embeddable.com/core").Measure[]; columnDimension: import("@embeddable.com/core").Dimension; rowDimension: import("@embeddable.com/core").Dimension; subRowDimension: import("@embeddable.com/core").Dimension; firstColumnWidth: number; columnWidth: number; }; }; readonly results: { readonly loadDataArgs: (inputs: Inputs, clientContext?: ThemeClientContext) => LoadDataRequest; readonly loadData: (inputs: Inputs, clientContext?: ThemeClientContext) => DataResponse; }; readonly resultsSubRows: { readonly loadDataArgs: (inputs: Inputs, expandedRowKeys: string[], clientContext?: ThemeClientContext) => LoadDataRequest; readonly loadData: (inputs: Inputs, expandedRowKeys: string[], clientContext?: ThemeClientContext) => DataResponse | undefined; }; }; export {}; //# sourceMappingURL=definition.d.ts.map