@malloydata/render 0.0.179-dev240904162152 → 0.0.179-dev240904180903

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,16 @@
1
1
  import { ModelDef, QueryResult, Result } from '@malloydata/malloy';
2
2
  import './render.css';
3
3
  import { ComponentOptions, ICustomElement } from 'component-register';
4
+ import { MalloyClickEventPayload } from './types';
4
5
  export type MalloyRenderProps = {
5
6
  result?: Result;
6
7
  queryResult?: QueryResult;
7
8
  modelDef?: ModelDef;
8
9
  scrollEl?: HTMLElement;
10
+ onClick?: (payload: MalloyClickEventPayload) => void;
11
+ };
12
+ export declare const useConfig: () => {
13
+ onClick?: ((payload: MalloyClickEventPayload) => void) | undefined;
9
14
  };
10
15
  export declare function MalloyRender(props: MalloyRenderProps, { element }: ComponentOptions): import("solid-js").JSX.Element;
11
16
  export declare function MalloyRenderInner(props: {
@@ -5,5 +5,6 @@ declare const MalloyTable: Component<{
5
5
  data: DataArrayOrRecord;
6
6
  rowLimit?: number;
7
7
  scrollEl?: HTMLElement;
8
+ disableVirtualization?: boolean;
8
9
  }>;
9
10
  export default MalloyTable;
@@ -33,3 +33,12 @@ export interface RenderResultMetadata {
33
33
  resultTag: Tag;
34
34
  rootField: Field | Explore;
35
35
  }
36
+ export type MalloyClickEventPayload = {
37
+ field: Field;
38
+ displayValue: unknown;
39
+ value: unknown;
40
+ fieldPath: string[];
41
+ isHeader: boolean;
42
+ event: MouseEvent;
43
+ type: 'dashboard-item' | 'table-cell';
44
+ };