/*! * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. */ import { base } from './base'; import { PositionedColumnMapProps } from './clickableTextLayer'; import { DataScopeId, SelectedItemIndex } from './controls/dataScope'; import { AutoCompleteDistinctValues } from './controls/searchTerm'; import { HistoricInsight, HistoryAction, HistoryItem } from './dialogs/history'; import { InputSearchExpressionGroup } from './dialogs/search'; import { TransitionEdits } from './dialogs/transition'; import { ChangeColumnMappingOptions, DataContent, DataExportHandler, DataFile, ImageHolder, SettingsGroup, SideTabId, SnapshotProps } from './interfaces'; import { Prefs } from './partialInsight'; import { FluentUITypes } from '@msrvida/fluentui-react-cdn-typings'; import { SandDance } from '@msrvida/sanddance-react'; import Snapshot = SandDance.types.Snapshot; export interface Options { chartPrefs?: Prefs; tooltipExclusions?: string[]; setup?: SandDance.types.Setup; columnTypes?: SandDance.types.ColumnTypeMap; } export interface Props { compactUI?: boolean; hideSidebarControls?: boolean; logoClickUrl?: string; logoClickTarget?: string; bingSearchDisabled?: boolean; searchORDisabled?: boolean; theme?: string; viewerOptions?: Partial; initialView?: SandDance.types.View; mounted?: (explorer: Explorer_Class) => any; datasetElement?: JSX.Element; dataExportHandler?: DataExportHandler; topBarButtonProps?: FluentUITypes.ICommandBarItemProps[]; topBarIconButtonProps?: FluentUITypes.ICommandBarItemProps[]; snapshotProps?: SnapshotProps; onSnapshotClick?: (snapshot: Snapshot, selectedSnaphotIndex: number) => void | boolean; onSnapshotsChanged?: (snapshots: Snapshot[]) => void; onView?: () => void; onError?: (e: any) => void; onSignalChanged?: (signalName: string, signalValue: any) => void; onTooltipExclusionsChanged?: (tooltipExclusions: string[]) => void; onSetupOptionsChanged?: (setup: SandDance.types.Setup) => void; additionalSettings?: SettingsGroup[]; systemInfoChildren?: React.ReactNode; initialRenderer?: Partial; initialSidebarClosed?: boolean; initialSidebarPinned?: boolean; renderOptions?: SandDance.types.RenderOptions; } export interface UIState { calculating: () => void; errors: string[]; autoCompleteDistinctValues: AutoCompleteDistinctValues; search: InputSearchExpressionGroup[]; filteredData: object[]; sidebarClosed: boolean; sidebarPinned: boolean; dataFile: DataFile; dataContent: DataContent; specCapabilities: SandDance.specs.SpecCapabilities; sideTabId: SideTabId; dataScopeId: DataScopeId; selectedItemIndex: SelectedItemIndex; snapshots: Snapshot[]; selectedSnapshotIndex: number; tooltipExclusions: string[]; positionedColumnMapProps: PositionedColumnMapProps; note: string; historyIndex: number; historyItems: HistoryItem[]; camera?: SandDance.types.Camera; holdCamera?: boolean; renderer: SandDance.VegaMorphCharts.types.MorphChartsRendererOptions; } export interface State extends HistoricInsight, UIState, TransitionEdits { } export declare const Explorer: typeof Explorer_Class; export declare class Explorer_Class extends base.react.Component { dialogFocusHandler: { focus?: () => void; }; imageHolder: ImageHolder; viewer: SandDance.Viewer; viewerOptions: Partial; discardColorContextUpdates: boolean; prefs: Prefs; div: HTMLElement; snapshotThumbWidth: number; constructor(props: Props); finalize(): void; updateViewerOptions(viewerOptions: Partial): void; signal(signalName: string, signalValue: any, newViewStateTarget?: boolean): void; getInsight(): SandDance.specs.Insight; getSetup(): SandDance.types.Setup; setInsight(historyAction: HistoryAction, newState: Partial, partialInsight: Partial, rebaseFilter: boolean, setup?: SandDance.types.Setup): void; reviveSnapshot(snapshotOrIndex: Snapshot | number): void; load(data: DataFile | object[], getPartialInsight?: (columns: SandDance.types.Column[]) => Partial, optionsOrPrefs?: Prefs | Options): Promise; changeChartType(chart: SandDance.specs.Chart): SandDance.specs.InsightColumns; calculate(calculating: () => any): void; changeView(view: SandDance.types.View): void; addHistory(historicInsight: Partial, historyAction: HistoryAction, additionalUIState?: Partial): void; undo(): void; redo(historyIndex?: number): void; changespecCapabilities(specCapabilities: SandDance.specs.SpecCapabilities): void; changeColumnMapping(role: SandDance.specs.InsightColumnRoles, column: SandDance.types.Column, options?: ChangeColumnMappingOptions): void; sidebar(sidebarClosed: boolean, sidebarPinned: boolean): void; resize(): void; scrollSnapshotIntoView(selectedSnapshotIndex: number): void; componentDidMount(): void; render(): JSX.Element; }