UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

279 lines (278 loc) 9.49 kB
import type { ViewModel } from '../../main/view-model.js'; export declare const addModelViewsToContext: (host: ViewModel) => (_: any, context: any) => any; export declare function getUsageRenderConfig(host: ViewModel): { view: string; className: string; context: (_: any, context: any) => any; data({ name, options }: { name: any; options: any; }, context: any): any; content: (string | { view: string; modifiers: ({ view: string; when: string; content: ({ when: ({ beforeDemo }: { beforeDemo: any; }) => boolean; content: string; } | { content: { view: string; config: string; context: string; }; when?: undefined; })[]; className?: undefined; postRender?: undefined; } | { view: string; when: string; className: string; postRender(el: HTMLElement, { onInit }: { onInit: any; }, { demoFixed }: { demoFixed: any; }, ctx: any): void; content: { view: string; config: string; data: string; context: string; }; } | { view: string; when: string; content: ({ when: ({ afterDemo }: { afterDemo: any; }) => boolean; content: string; } | { content: { view: string; config: string; context: string; }; when?: undefined; })[]; className?: undefined; postRender?: undefined; })[]; content: { view: string; when: string; className: string; name: string; tabs: { value: string; text: string; }[]; content: { view: string; content: ({ when: string; content: ({ view: string; when: string; header: string; content: { view: string; expanded: number; data: string; }; className?: undefined; data?: undefined; } | { view: string; className: string; data: (data: any) => { syntax: string; content: string; refs: { range: [number, number]; }[]; }; when?: undefined; header?: undefined; content?: undefined; })[]; } | { when: string; content: ({ view: string; when: string; header: string; content: { view: string; expanded: number; data: string; }; data?: undefined; } | { view: string; data: (data: any) => { syntax: string; content: string; refs: { range: [number, number]; }[]; }; when?: undefined; header?: undefined; content?: undefined; })[]; } | { when: string; content: { view: string; data: (data: any, context: any) => { syntax: string; content: string; }; }; })[]; }; }; } | { view: string; data: string; whenData: boolean; itemConfig: { className: string; }; item: (string | { view: string; modifiers: ({ view: string; when: string; content: ({ when: ({ beforeDemo }: { beforeDemo: any; }) => boolean; content: string; } | { content: { view: string; config: string; context: string; }; when?: undefined; })[]; className?: undefined; postRender?: undefined; } | { view: string; when: string; className: string; postRender(el: HTMLElement, { onInit }: { onInit: any; }, { demoFixed }: { demoFixed: any; }, ctx: any): void; content: { view: string; config: string; data: string; context: string; }; } | { view: string; when: string; content: ({ when: ({ afterDemo }: { afterDemo: any; }) => boolean; content: string; } | { content: { view: string; config: string; context: string; }; when?: undefined; })[]; className?: undefined; postRender?: undefined; })[]; content: { view: string; when: string; className: string; name: string; tabs: { value: string; text: string; }[]; content: { view: string; content: ({ when: string; content: ({ view: string; when: string; header: string; content: { view: string; expanded: number; data: string; }; className?: undefined; data?: undefined; } | { view: string; className: string; data: (data: any) => { syntax: string; content: string; refs: { range: [number, number]; }[]; }; when?: undefined; header?: undefined; content?: undefined; })[]; } | { when: string; content: ({ view: string; when: string; header: string; content: { view: string; expanded: number; data: string; }; data?: undefined; } | { view: string; data: (data: any) => { syntax: string; content: string; refs: { range: [number, number]; }[]; }; when?: undefined; header?: undefined; content?: undefined; })[]; } | { when: string; content: { view: string; data: (data: any, context: any) => { syntax: string; content: string; }; }; })[]; }; }; })[]; })[]; };