UNPKG

drizzle-cube

Version:

Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.

25 lines (24 loc) 974 B
import { FieldModalMode } from '../stores/analysisBuilderStore'; import { QueryPanelTab } from '../components/AnalysisBuilder/types'; export interface UseAnalysisUIStateResult { /** Active tab in query panel */ activeTab: QueryPanelTab; /** Active view (table or chart) */ activeView: 'table' | 'chart'; /** Display limit for table */ displayLimit: number; /** Whether field modal is open */ showFieldModal: boolean; /** Field modal mode */ fieldModalMode: FieldModalMode; /** Active table index for multi-query */ activeTableIndex: number; /** User manually selected chart */ userManuallySelectedChart: boolean; setActiveTab: (tab: QueryPanelTab) => void; setActiveView: (view: 'table' | 'chart') => void; setDisplayLimit: (limit: number) => void; closeFieldModal: () => void; setActiveTableIndex: (index: number) => void; } export declare function useAnalysisUIState(): UseAnalysisUIStateResult;