UNPKG

drizzle-cube

Version:

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

26 lines (25 loc) 1.03 kB
import { PortletConfig, ColorPalette } from '../types'; interface PortletAnalysisModalProps { isOpen: boolean; onClose: () => void; onSave: (portlet: PortletConfig | Omit<PortletConfig, 'id' | 'x' | 'y'>) => void; portlet?: PortletConfig | null; /** Initial data to display (avoids re-fetching when editing) */ initialData?: any[]; title: string; submitText: string; colorPalette?: ColorPalette; } /** * PortletAnalysisModal - A modal wrapper around AnalysisBuilder for portlet editing * * This replaces PortletEditModal with the modern AnalysisBuilder interface. * Features: * - Two-panel layout with results and query builder * - Auto-execution of queries * - Smart chart defaults * - Title input in header * - Initial data support (no re-fetch when editing) */ export default function PortletAnalysisModal({ isOpen, onClose, onSave, portlet, initialData, title: modalTitle, submitText, colorPalette }: PortletAnalysisModalProps): import("react/jsx-runtime").JSX.Element; export {};