@malloydata/render 0.0.215-dev241114221505 → 0.0.215-dev241115210726

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.
@@ -0,0 +1,5 @@
1
+ import { ComponentOptions } from 'component-register';
2
+ export type MalloyModalWCProps = {
3
+ stylesheet?: CSSStyleSheet;
4
+ };
5
+ export declare function MalloyModalWC(props: MalloyModalWCProps, { element }: ComponentOptions): import("solid-js").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { JSX, JSXElement } from 'solid-js';
2
+ export declare function MalloyModal(props: {
3
+ style?: string | JSX.CSSProperties;
4
+ children?: JSXElement;
5
+ ref?: HTMLDivElement | ((el: HTMLDivElement) => void);
6
+ }): JSX.Element;
7
+ declare module 'solid-js' {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'malloy-modal': any;
11
+ }
12
+ }
13
+ }
@@ -1,4 +1,5 @@
1
1
  import { MalloyRenderProps } from './render';
2
+ import { MalloyModalWCProps } from './malloy-modal/malloy-modal-wc';
2
3
  export default function registerWebComponent({ customElements, HTMLElement, }: {
3
4
  customElements?: CustomElementRegistry | undefined;
4
5
  HTMLElement?: {
@@ -9,5 +10,6 @@ export default function registerWebComponent({ customElements, HTMLElement, }: {
9
10
  declare global {
10
11
  interface HTMLElementTagNameMap {
11
12
  'malloy-render': HTMLElement & MalloyRenderProps;
13
+ 'malloy-modal': HTMLElement & MalloyModalWCProps;
12
14
  }
13
15
  }
@@ -8,6 +8,7 @@ export type MalloyRenderProps = {
8
8
  queryResult?: QueryResult;
9
9
  modelDef?: ModelDef;
10
10
  scrollEl?: HTMLElement;
11
+ modalElement?: HTMLElement;
11
12
  onClick?: (payload: MalloyClickEventPayload) => void;
12
13
  vegaConfigOverride?: VegaConfigHandler;
13
14
  tableConfig?: Partial<TableConfig>;
@@ -17,10 +18,12 @@ export declare const useConfig: () => {
17
18
  tableConfig: Accessor<TableConfig>;
18
19
  dashboardConfig: Accessor<DashboardConfig>;
19
20
  element: ICustomElement;
21
+ stylesheet: CSSStyleSheet;
20
22
  addCSSToShadowRoot: (css: string) => void;
21
23
  addCSSToDocument: (id: string, css: string) => void;
22
24
  onClick?: ((payload: MalloyClickEventPayload) => void) | undefined;
23
25
  vegaConfigOverride?: VegaConfigHandler | undefined;
26
+ modalElement?: HTMLElement | undefined;
24
27
  };
25
28
  export declare function MalloyRender(props: MalloyRenderProps, { element }: ComponentOptions): import("solid-js").JSX.Element;
26
29
  export declare function MalloyRenderInner(props: {