drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
19 lines (18 loc) • 967 B
TypeScript
import { ReactNode } from 'react';
import { ColorPalette } from '../utils/colorPalettes';
import { DashboardConfig, DashboardFilter, CubeMeta, DashboardLayoutMode } from '../types';
interface DashboardGridProps {
config: DashboardConfig;
editable?: boolean;
dashboardFilters?: DashboardFilter[];
loadingComponent?: ReactNode;
onConfigChange?: (config: DashboardConfig) => void;
onPortletRefresh?: (portletId: string) => void;
onSave?: (config: DashboardConfig) => Promise<void> | void;
colorPalette?: ColorPalette;
schema?: CubeMeta | null;
onDashboardFiltersChange?: (filters: DashboardFilter[]) => void;
dashboardModes?: DashboardLayoutMode[];
}
export default function DashboardGrid({ config, editable, dashboardFilters, loadingComponent, onConfigChange, onPortletRefresh, onSave, colorPalette, schema, onDashboardFiltersChange, dashboardModes }: DashboardGridProps): import("react/jsx-runtime").JSX.Element;
export {};