@malloydata/render 0.0.135-dev240322231911 → 0.0.135-dev240326020414
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.
- package/dist/component/render-webcomponent.d.ts +6 -0
- package/dist/component/render.d.ts +7 -17
- package/dist/component/result-context.d.ts +2 -3
- package/dist/component/table/table-context.d.ts +9 -0
- package/dist/component/{table-layout.d.ts → table/table-layout.d.ts} +2 -2
- package/dist/component/table/table.d.ts +9 -0
- package/dist/html/html_view.d.ts +1 -1
- package/dist/module/index.mjs +145001 -0
- package/dist/module/index.umd.js +1643 -0
- package/dist/module/style.css +1 -0
- package/dist/stories/bars.stories.d.ts +1 -1
- package/dist/stories/tables.stories.d.ts +1 -1
- package/dist/stories/themes.stories.d.ts +1 -1
- package/dist/webcomponent/malloy-render.mjs +90572 -0
- package/dist/webcomponent/malloy-render.umd.js +1491 -0
- package/dist/webcomponent/style.css +1 -0
- package/package.json +21 -7
- package/vite.config.ts +25 -0
- package/vite.config.webcomponent.ts +25 -0
- package/dist/bundle/bundled_renderer.js +0 -139374
- package/dist/bundle/bundled_renderer.min.js +0 -2374
- package/dist/bundle/main.js +0 -29
- package/dist/bundle/renderer.js +0 -71
- package/dist/component/bar-chart.js +0 -130
- package/dist/component/chart-settings.js +0 -152
- package/dist/component/render-numeric-field.js +0 -104
- package/dist/component/render-result-metadata.js +0 -91
- package/dist/component/render.js +0 -155
- package/dist/component/result-context.js +0 -28
- package/dist/component/table-layout.js +0 -83
- package/dist/component/table.d.ts +0 -35
- package/dist/component/table.js +0 -375
- package/dist/component/util.js +0 -53
- package/dist/component/vega-chart.js +0 -105
- package/dist/component/vega-lite-base-spec.js +0 -61
- package/dist/component/vega-types.js +0 -34
- package/dist/data_styles.js +0 -50
- package/dist/drill.js +0 -124
- package/dist/html/area_sparkline.js +0 -118
- package/dist/html/bar_chart.js +0 -70
- package/dist/html/bar_sparkline.js +0 -119
- package/dist/html/boolean.js +0 -53
- package/dist/html/bytes.js +0 -47
- package/dist/html/cartesian_chart.js +0 -110
- package/dist/html/chart.js +0 -120
- package/dist/html/column_sparkline.js +0 -120
- package/dist/html/container.js +0 -44
- package/dist/html/currency.js +0 -75
- package/dist/html/dashboard.js +0 -242
- package/dist/html/data_volume.js +0 -94
- package/dist/html/date.js +0 -66
- package/dist/html/duration.js +0 -108
- package/dist/html/html_view.js +0 -187
- package/dist/html/image.js +0 -77
- package/dist/html/index.js +0 -28
- package/dist/html/json.js +0 -52
- package/dist/html/line_chart.js +0 -72
- package/dist/html/link.js +0 -57
- package/dist/html/list.js +0 -73
- package/dist/html/list_detail.js +0 -33
- package/dist/html/number.js +0 -73
- package/dist/html/percent.js +0 -50
- package/dist/html/point_map.js +0 -182
- package/dist/html/scatter_chart.js +0 -72
- package/dist/html/segment_map.js +0 -151
- package/dist/html/shape_map.js +0 -194
- package/dist/html/sparkline.js +0 -120
- package/dist/html/state_codes.js +0 -137
- package/dist/html/table.js +0 -475
- package/dist/html/text.js +0 -65
- package/dist/html/unsupported.js +0 -72
- package/dist/html/utils.js +0 -277
- package/dist/html/vega_spec.js +0 -544
- package/dist/index.js +0 -47
- package/dist/main_renderer_factory.js +0 -101
- package/dist/renderer.js +0 -34
- package/dist/renderer_factory.js +0 -57
- package/dist/renderer_types.js +0 -25
- package/dist/stories/bars.stories.js +0 -52
- package/dist/stories/basic.stories.js +0 -34
- package/dist/stories/image.stories.js +0 -34
- package/dist/stories/render-malloy-legacy.js +0 -27
- package/dist/stories/tables.stories.js +0 -65
- package/dist/stories/themes.stories.js +0 -47
- package/dist/stories/util.js +0 -25
- package/dist/tags_utils.js +0 -30
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import { ModelDef, QueryResult, Result
|
|
2
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
3
|
-
import './table';
|
|
1
|
+
import { ModelDef, QueryResult, Result } from '@malloydata/malloy';
|
|
4
2
|
import './bar-chart';
|
|
5
|
-
import
|
|
6
|
-
export
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
3
|
+
import './render.css';
|
|
4
|
+
export type MalloyRenderProps = {
|
|
8
5
|
result?: Result;
|
|
9
6
|
queryResult?: QueryResult;
|
|
10
7
|
modelDef?: ModelDef;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
}
|
|
17
|
-
declare global {
|
|
18
|
-
interface HTMLElementTagNameMap {
|
|
19
|
-
'malloy-render': MalloyRender;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
8
|
+
};
|
|
9
|
+
export declare function MalloyRender(props: MalloyRenderProps, { element }: {
|
|
10
|
+
element: any;
|
|
11
|
+
}): import("solid-js").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { RenderResultMetadata } from './render-result-metadata';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
};
|
|
2
|
+
export declare const ResultContext: import("solid-js").Context<RenderResultMetadata | undefined>;
|
|
3
|
+
export declare const useResultContext: () => RenderResultMetadata;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TableLayout } from './table-layout';
|
|
2
|
+
type TableContext = {
|
|
3
|
+
root: boolean;
|
|
4
|
+
pinnedHeader: boolean;
|
|
5
|
+
layout: TableLayout;
|
|
6
|
+
};
|
|
7
|
+
export declare const TableContext: import("solid-js").Context<TableContext | undefined>;
|
|
8
|
+
export declare const useTableContext: () => TableContext | undefined;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldRenderMetadata, RenderResultMetadata } from '
|
|
2
|
-
import { ChartSettings } from '
|
|
1
|
+
import { FieldRenderMetadata, RenderResultMetadata } from '../render-result-metadata';
|
|
2
|
+
import { ChartSettings } from '../chart-settings';
|
|
3
3
|
type LayoutEntry = {
|
|
4
4
|
metadata: FieldRenderMetadata;
|
|
5
5
|
width: number;
|
package/dist/html/html_view.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DataArray, Explore, Field, Result, Tag } from '@malloydata/malloy';
|
|
|
2
2
|
import { StyleDefaults } from '../data_styles';
|
|
3
3
|
import { Renderer } from '../renderer';
|
|
4
4
|
import { RendererOptions } from '../renderer_types';
|
|
5
|
-
import '../component/render';
|
|
5
|
+
import '../component/render-webcomponent';
|
|
6
6
|
export declare class HTMLView {
|
|
7
7
|
private document;
|
|
8
8
|
constructor(document: Document);
|