@malloydata/render 0.0.243-dev250314154947 → 0.0.243-dev250314162617
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/apply-renderer.d.ts +1 -1
- package/dist/component/bar-chart/generate-bar_chart-vega-spec.d.ts +2 -2
- package/dist/component/bar-chart/get-bar_chart-settings.d.ts +3 -3
- package/dist/component/bar-chart/get-custom-tooltips-entries.d.ts +2 -2
- package/dist/component/chart/chart-dev-tool.d.ts +1 -1
- package/dist/component/chart/chart.d.ts +2 -2
- package/dist/component/chart/default-chart-tooltip.d.ts +1 -1
- package/dist/component/chart-layout-settings.d.ts +3 -3
- package/dist/component/copy-to-html.d.ts +1 -1
- package/dist/component/dashboard/dashboard.d.ts +1 -1
- package/dist/component/legacy-charts/legacy_chart.d.ts +1 -1
- package/dist/component/line-chart/generate-line_chart-vega-spec.d.ts +2 -2
- package/dist/component/line-chart/get-line_chart-settings.d.ts +3 -3
- package/dist/component/malloy-modal/malloy-modal-wc.d.ts +1 -1
- package/dist/component/malloy-modal/malloy-modal.d.ts +1 -1
- package/dist/component/register-webcomponent.d.ts +2 -2
- package/dist/component/render-image.d.ts +1 -1
- package/dist/component/render-link.d.ts +1 -1
- package/dist/component/render-list.d.ts +1 -1
- package/dist/component/render-numeric-field.d.ts +1 -1
- package/dist/component/render-result-metadata.d.ts +5 -5
- package/dist/component/render-time.d.ts +1 -1
- package/dist/component/render.d.ts +6 -5
- package/dist/component/result-context.d.ts +1 -1
- package/dist/component/result-store/result-store.d.ts +3 -3
- package/dist/component/table/table-context.d.ts +3 -2
- package/dist/component/table/table-layout.d.ts +2 -2
- package/dist/component/table/table.d.ts +2 -2
- package/dist/component/tag-utils.d.ts +1 -1
- package/dist/component/tooltip/tooltip.d.ts +1 -1
- package/dist/component/types.d.ts +4 -4
- package/dist/component/vega/base-vega-config.d.ts +1 -1
- package/dist/component/vega/measure-axis.d.ts +2 -2
- package/dist/component/vega/vega-chart.d.ts +3 -2
- package/dist/component/vega/vega-utils.d.ts +1 -1
- package/dist/component/vega-types.d.ts +2 -2
- package/dist/data_tree.d.ts +2 -2
- package/dist/html/area_sparkline.d.ts +5 -5
- package/dist/html/bar_chart.d.ts +4 -4
- package/dist/html/bar_sparkline.d.ts +5 -5
- package/dist/html/boolean.d.ts +4 -4
- package/dist/html/bytes.d.ts +4 -4
- package/dist/html/cartesian_chart.d.ts +2 -2
- package/dist/html/chart.d.ts +4 -4
- package/dist/html/column_sparkline.d.ts +5 -5
- package/dist/html/container.d.ts +6 -5
- package/dist/html/currency.d.ts +4 -4
- package/dist/html/dashboard.d.ts +2 -2
- package/dist/html/data_styles.d.ts +2 -2
- package/dist/html/data_volume.d.ts +4 -4
- package/dist/html/date.d.ts +4 -4
- package/dist/html/duration.d.ts +5 -4
- package/dist/html/html_view.d.ts +6 -6
- package/dist/html/image.d.ts +4 -4
- package/dist/html/json.d.ts +4 -4
- package/dist/html/line_chart.d.ts +4 -4
- package/dist/html/link.d.ts +4 -4
- package/dist/html/list.d.ts +2 -2
- package/dist/html/list_detail.d.ts +1 -1
- package/dist/html/main_renderer_factory.d.ts +6 -6
- package/dist/html/number.d.ts +4 -4
- package/dist/html/percent.d.ts +4 -4
- package/dist/html/point_map.d.ts +5 -5
- package/dist/html/renderer.d.ts +3 -3
- package/dist/html/renderer_factory.d.ts +5 -5
- package/dist/html/renderer_types.d.ts +2 -2
- package/dist/html/scatter_chart.d.ts +4 -4
- package/dist/html/segment_map.d.ts +5 -5
- package/dist/html/shape_map.d.ts +5 -5
- package/dist/html/sparkline.d.ts +5 -5
- package/dist/html/table.d.ts +3 -3
- package/dist/html/text.d.ts +4 -4
- package/dist/html/unsupported.d.ts +4 -4
- package/dist/html/utils.d.ts +4 -4
- package/dist/html/vega_spec.d.ts +5 -5
- package/dist/module/index.mjs +15654 -15569
- package/dist/module/index.umd.js +273 -273
- package/dist/register/register.mjs +16021 -15936
- package/dist/register/register.umd.js +260 -260
- package/dist/stories/themes.stories.d.ts +1 -1
- package/dist/stories/util.d.ts +4 -4
- package/dist/stories/vega-config-override.stories.d.ts +1 -1
- package/dist/util.d.ts +3 -2
- package/dist/webcomponent/malloy-render.mjs +16021 -15936
- package/dist/webcomponent/malloy-render.umd.js +260 -260
- package/package.json +5 -5
- package/vite.config.base.ts +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VegaChartProps } from '../types';
|
|
2
|
-
import { RepeatedRecordField } from '../../data_tree';
|
|
1
|
+
import type { VegaChartProps } from '../types';
|
|
2
|
+
import type { RepeatedRecordField } from '../../data_tree';
|
|
3
3
|
export declare function generateBarChartVegaSpec(explore: RepeatedRecordField): VegaChartProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
2
|
-
import { Channel } from '../types';
|
|
3
|
-
import { RepeatedRecordField } from '../../data_tree';
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
|
+
import type { Channel } from '../types';
|
|
3
|
+
import type { RepeatedRecordField } from '../../data_tree';
|
|
4
4
|
export type BarChartSettings = {
|
|
5
5
|
xChannel: Channel;
|
|
6
6
|
yChannel: Channel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MalloyVegaDataRecord } from '../types';
|
|
2
|
-
import { NestField } from '../../data_tree';
|
|
1
|
+
import type { MalloyVegaDataRecord } from '../types';
|
|
2
|
+
import type { NestField } from '../../data_tree';
|
|
3
3
|
type CustomTooltipGetterOptions = {
|
|
4
4
|
explore: NestField;
|
|
5
5
|
records: MalloyVegaDataRecord[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../../src/vega.d.ts" />
|
|
2
|
-
import { Runtime, View } from 'vega';
|
|
3
|
-
import { RepeatedRecordCell } from '../../data_tree';
|
|
2
|
+
import type { Runtime, View } from 'vega';
|
|
3
|
+
import type { RepeatedRecordCell } from '../../data_tree';
|
|
4
4
|
export type ChartProps = {
|
|
5
5
|
data: RepeatedRecordCell;
|
|
6
6
|
devMode?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../src/vega.d.ts" />
|
|
2
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
3
|
-
import { AlignValue, TextBaselineValue } from 'vega';
|
|
4
|
-
import { Field, NestField } from '../data_tree';
|
|
2
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
3
|
+
import type { AlignValue, TextBaselineValue } from 'vega';
|
|
4
|
+
import type { Field, NestField } from '../data_tree';
|
|
5
5
|
export type ChartLayoutSettings = {
|
|
6
6
|
plotWidth: number;
|
|
7
7
|
plotHeight: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MalloyRenderProps } from './render';
|
|
1
|
+
import type { MalloyRenderProps } from './render';
|
|
2
2
|
export declare function copyMalloyRenderHTML(element: HTMLElement & MalloyRenderProps): Promise<void>;
|
|
3
3
|
export declare function getMalloyRenderHTML(element: HTMLElement & MalloyRenderProps): Promise<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VegaChartProps } from '../types';
|
|
2
|
-
import { NestField } from '../../data_tree';
|
|
1
|
+
import type { VegaChartProps } from '../types';
|
|
2
|
+
import type { NestField } from '../../data_tree';
|
|
3
3
|
export declare function generateLineChartVegaSpec(explore: NestField): VegaChartProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
2
|
-
import { Channel } from '../types';
|
|
3
|
-
import { NestField } from '../../data_tree';
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
|
+
import type { Channel } from '../types';
|
|
3
|
+
import type { NestField } from '../../data_tree';
|
|
4
4
|
export type LineChartSettings = {
|
|
5
5
|
xChannel: Channel;
|
|
6
6
|
yChannel: Channel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MalloyRenderProps } from './render';
|
|
2
|
-
import { MalloyModalWCProps } from './malloy-modal/malloy-modal-wc';
|
|
1
|
+
import type { MalloyRenderProps } from './render';
|
|
2
|
+
import type { MalloyModalWCProps } from './malloy-modal/malloy-modal-wc';
|
|
3
3
|
export default function registerWebComponent({ customElements, HTMLElement, }: {
|
|
4
4
|
customElements?: CustomElementRegistry | undefined;
|
|
5
5
|
HTMLElement?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererProps } from './types';
|
|
1
|
+
import type { RendererProps } from './types';
|
|
2
2
|
export declare function renderImage(props: RendererProps): import("solid-js").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cell, Field } from '../data_tree';
|
|
1
|
+
import type { Cell, Field } from '../data_tree';
|
|
2
2
|
export declare function renderLink(f: Field, data: Cell): "∅" | import("solid-js").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererProps } from './types';
|
|
1
|
+
import type { RendererProps } from './types';
|
|
2
2
|
export declare function renderList(props: RendererProps): "∅" | import("solid-js").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Field } from '../data_tree';
|
|
1
|
+
import type { Field } from '../data_tree';
|
|
2
2
|
export declare function renderNumericField(f: Field, value: number | null | undefined): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="../../src/vega.d.ts" />
|
|
2
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
3
|
-
import { VegaChartProps, VegaConfigHandler } from './types';
|
|
4
|
-
import { ResultStore } from './result-store/result-store';
|
|
5
|
-
import { Runtime } from 'vega';
|
|
6
|
-
import { RootCell } from '../data_tree';
|
|
2
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
3
|
+
import type { VegaChartProps, VegaConfigHandler } from './types';
|
|
4
|
+
import type { ResultStore } from './result-store/result-store';
|
|
5
|
+
import type { Runtime } from 'vega';
|
|
6
|
+
import type { RootCell } from '../data_tree';
|
|
7
7
|
export type GetResultMetadataOptions = {
|
|
8
8
|
getVegaConfigOverride?: VegaConfigHandler;
|
|
9
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererProps } from './types';
|
|
1
|
+
import type { RendererProps } from './types';
|
|
2
2
|
export declare function renderTime({ dataColumn }: RendererProps): string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Accessor } from 'solid-js';
|
|
1
|
+
import type { Accessor } from 'solid-js';
|
|
2
2
|
import './render.css';
|
|
3
|
-
import { ComponentOptions, ICustomElement } from 'component-register';
|
|
4
|
-
import { DashboardConfig, DrillData, MalloyClickEventPayload, TableConfig, VegaConfigHandler } from './types';
|
|
3
|
+
import type { ComponentOptions, ICustomElement } from 'component-register';
|
|
4
|
+
import type { DashboardConfig, DrillData, MalloyClickEventPayload, TableConfig, VegaConfigHandler } from './types';
|
|
5
5
|
export type { DrillData } from './types';
|
|
6
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
7
|
-
import { ModelDef, QueryResult
|
|
6
|
+
import type * as Malloy from '@malloydata/malloy-interfaces';
|
|
7
|
+
import type { ModelDef, QueryResult } from '@malloydata/malloy';
|
|
8
|
+
import { Result } from '@malloydata/malloy';
|
|
8
9
|
export type MalloyRenderProps = {
|
|
9
10
|
malloyResult?: Malloy.Result;
|
|
10
11
|
result?: Result;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RenderMetadata } from './render-result-metadata';
|
|
1
|
+
import type { RenderMetadata } from './render-result-metadata';
|
|
2
2
|
export declare const ResultContext: import("solid-js").Context<RenderMetadata | undefined>;
|
|
3
3
|
export declare const useResultContext: () => RenderMetadata;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DrillData } from '../types';
|
|
2
|
-
import { Cell } from '../../data_tree';
|
|
3
|
-
import { RenderMetadata } from '../render-result-metadata';
|
|
1
|
+
import type { DrillData } from '../types';
|
|
2
|
+
import type { Cell } from '../../data_tree';
|
|
3
|
+
import type { RenderMetadata } from '../render-result-metadata';
|
|
4
4
|
interface BrushDataBase {
|
|
5
5
|
fieldRefId: string;
|
|
6
6
|
sourceId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { SetStoreFunction, Store } from 'solid-js/store';
|
|
2
|
+
import { createStore } from 'solid-js/store';
|
|
3
|
+
import type { TableLayout } from './table-layout';
|
|
3
4
|
type TableStore = {
|
|
4
5
|
headerSizes: Record<string, number>;
|
|
5
6
|
columnWidths: Record<string, number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Field, NestField } from '../../data_tree';
|
|
2
|
-
import { FieldHeaderRangeMap } from '../types';
|
|
1
|
+
import type { Field, NestField } from '../../data_tree';
|
|
2
|
+
import type { FieldHeaderRangeMap } from '../types';
|
|
3
3
|
type LayoutEntry = {
|
|
4
4
|
field: Field;
|
|
5
5
|
width: number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component } from 'solid-js';
|
|
2
|
-
import { RecordOrRepeatedRecordCell } from '../../data_tree';
|
|
1
|
+
import type { Component } from 'solid-js';
|
|
2
|
+
import type { RecordOrRepeatedRecordCell } from '../../data_tree';
|
|
3
3
|
declare const MalloyTable: Component<{
|
|
4
4
|
data: RecordOrRepeatedRecordCell;
|
|
5
5
|
rowLimit?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
2
|
export declare function hasAny(tag: Tag, ...paths: Array<string | string[]>): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference path="../../src/vega.d.ts" />
|
|
2
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
3
|
-
import { Item, Spec, View } from 'vega';
|
|
4
|
-
import { JSX } from 'solid-js';
|
|
5
|
-
import { Cell, DrillEntry, Field, RecordCell, RepeatedRecordCell } from '../data_tree';
|
|
2
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
3
|
+
import type { Item, Spec, View } from 'vega';
|
|
4
|
+
import type { JSX } from 'solid-js';
|
|
5
|
+
import type { Cell, DrillEntry, Field, RecordCell, RepeatedRecordCell } from '../data_tree';
|
|
6
6
|
export type RendererProps = {
|
|
7
7
|
dataColumn: Cell;
|
|
8
8
|
tag: Tag;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../../src/vega.d.ts" />
|
|
2
|
-
import { Axis, GroupMark, RectMark } from 'vega';
|
|
3
|
-
import { ChartLayoutSettings } from '../chart-layout-settings';
|
|
2
|
+
import type { Axis, GroupMark, RectMark } from 'vega';
|
|
3
|
+
import type { ChartLayoutSettings } from '../chart-layout-settings';
|
|
4
4
|
type MeasureAxisOptions = {
|
|
5
5
|
type: 'y';
|
|
6
6
|
title: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../../../src/vega.d.ts" />
|
|
2
|
-
import { EventListenerHandler,
|
|
2
|
+
import type { EventListenerHandler, SignalListenerHandler, Runtime } from 'vega';
|
|
3
|
+
import { View } from 'vega';
|
|
3
4
|
import './vega-expr-addons';
|
|
4
|
-
import { RepeatedRecordField } from '../../data_tree';
|
|
5
|
+
import type { RepeatedRecordField } from '../../data_tree';
|
|
5
6
|
type VegaChartProps = {
|
|
6
7
|
explore: RepeatedRecordField;
|
|
7
8
|
width?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../../src/vega.d.ts" />
|
|
2
|
-
import { Item, SignalListenerHandler, View } from 'vega';
|
|
2
|
+
import type { Item, SignalListenerHandler, View } from 'vega';
|
|
3
3
|
export declare function addSignalListenerIfExists(view: View, signal: string, cb: SignalListenerHandler): void;
|
|
4
4
|
export declare function setSignalIfExists(view: View, signal: string, value: unknown): void;
|
|
5
5
|
export declare function getMarkName(item: Item): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../src/vega.d.ts" />
|
|
2
|
-
import { Spec } from 'vega';
|
|
3
|
-
import { TopLevelSpec } from 'vega-lite';
|
|
2
|
+
import type { Spec } from 'vega';
|
|
3
|
+
import type { TopLevelSpec } from 'vega-lite';
|
|
4
4
|
/**
|
|
5
5
|
* TODO: create vega-lite-types package that exports types from vega-lite
|
|
6
6
|
* Because vega-lite typings are not available today, we are forced to use any
|
package/dist/data_tree.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
2
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
|
+
import type * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
3
|
export type DrillEntry = {
|
|
4
4
|
field: Field;
|
|
5
5
|
value: string | number | boolean | Date | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLSparkLineRenderer } from './sparkline';
|
|
2
|
-
import * as lite from 'vega-lite';
|
|
2
|
+
import type * as lite from 'vega-lite';
|
|
3
3
|
import { RendererFactory } from './renderer_factory';
|
|
4
|
-
import { Renderer } from './renderer';
|
|
5
|
-
import { SparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
6
|
-
import { RendererOptions } from './renderer_types';
|
|
7
|
-
import { Cell, Field } from '../data_tree';
|
|
4
|
+
import type { Renderer } from './renderer';
|
|
5
|
+
import type { SparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
6
|
+
import type { RendererOptions } from './renderer_types';
|
|
7
|
+
import type { Cell, Field } from '../data_tree';
|
|
8
8
|
export declare class HTMLAreaSparkLineRenderer extends HTMLSparkLineRenderer {
|
|
9
9
|
getVegaLiteSpec(data: Cell): lite.TopLevelSpec;
|
|
10
10
|
}
|
package/dist/html/bar_chart.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLCartesianChartRenderer } from './cartesian_chart';
|
|
2
|
-
import { BarChartRenderOptions, SparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
2
|
+
import type { BarChartRenderOptions, SparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
3
3
|
import { RendererFactory } from './renderer_factory';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import { Renderer } from './renderer';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Renderer } from './renderer';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLBarChartRenderer extends HTMLCartesianChartRenderer {
|
|
8
8
|
getMark(): 'bar';
|
|
9
9
|
getDataType(field: Field): 'temporal' | 'ordinal' | 'quantitative' | 'nominal';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as lite from 'vega-lite';
|
|
1
|
+
import type * as lite from 'vega-lite';
|
|
2
2
|
import { HTMLBarChartRenderer } from './bar_chart';
|
|
3
|
-
import { BarSparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
+
import type { BarSparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
4
4
|
import { RendererFactory } from './renderer_factory';
|
|
5
|
-
import { RendererOptions } from './renderer_types';
|
|
6
|
-
import { Renderer } from './renderer';
|
|
7
|
-
import { Cell, Field } from '../data_tree';
|
|
5
|
+
import type { RendererOptions } from './renderer_types';
|
|
6
|
+
import type { Renderer } from './renderer';
|
|
7
|
+
import type { Cell, Field } from '../data_tree';
|
|
8
8
|
export declare class HTMLBarSparkLineRenderer extends HTMLBarChartRenderer {
|
|
9
9
|
getSize(): {
|
|
10
10
|
height: number;
|
package/dist/html/boolean.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLTextRenderer } from './text';
|
|
2
2
|
import { RendererFactory } from './renderer_factory';
|
|
3
|
-
import { BooleanRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import { Renderer } from './renderer';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
3
|
+
import type { BooleanRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Renderer } from './renderer';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLBooleanRenderer extends HTMLTextRenderer {
|
|
8
8
|
getText(data: Cell): string | null;
|
|
9
9
|
}
|
package/dist/html/bytes.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLTextRenderer } from './text';
|
|
2
|
-
import { BytesRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
-
import { RendererOptions } from './renderer_types';
|
|
4
|
-
import { Renderer } from './renderer';
|
|
2
|
+
import type { BytesRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
+
import type { RendererOptions } from './renderer_types';
|
|
4
|
+
import type { Renderer } from './renderer';
|
|
5
5
|
import { RendererFactory } from './renderer_factory';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLBytesRenderer extends HTMLTextRenderer {
|
|
8
8
|
getText(_data: Cell): string | null;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as lite from 'vega-lite';
|
|
1
|
+
import type * as lite from 'vega-lite';
|
|
2
2
|
import { HTMLChartRenderer } from './chart';
|
|
3
|
-
import { Cell } from '../data_tree';
|
|
3
|
+
import type { Cell } from '../data_tree';
|
|
4
4
|
export declare abstract class HTMLCartesianChartRenderer extends HTMLChartRenderer {
|
|
5
5
|
abstract getMark(): 'bar' | 'line' | 'point';
|
|
6
6
|
getVegaLiteSpec(data: Cell): lite.TopLevelSpec;
|
package/dist/html/chart.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as lite from 'vega-lite';
|
|
2
|
-
import { Renderer } from './renderer';
|
|
3
|
-
import { RendererOptions } from './renderer_types';
|
|
4
|
-
import { ChartRenderOptions, StyleDefaults } from './data_styles';
|
|
5
|
-
import { Cell, Field, RecordCell } from '../data_tree';
|
|
2
|
+
import type { Renderer } from './renderer';
|
|
3
|
+
import type { RendererOptions } from './renderer_types';
|
|
4
|
+
import type { ChartRenderOptions, StyleDefaults } from './data_styles';
|
|
5
|
+
import type { Cell, Field, RecordCell } from '../data_tree';
|
|
6
6
|
type MappedRow = {
|
|
7
7
|
[p: string]: string | number | Date | undefined | null;
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as lite from 'vega-lite';
|
|
1
|
+
import type * as lite from 'vega-lite';
|
|
2
2
|
import { HTMLBarChartRenderer } from './bar_chart';
|
|
3
3
|
import { RendererFactory } from './renderer_factory';
|
|
4
|
-
import { ColumnSparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
5
|
-
import { RendererOptions } from './renderer_types';
|
|
6
|
-
import { Renderer } from './renderer';
|
|
7
|
-
import { Cell, Field } from '../data_tree';
|
|
4
|
+
import type { ColumnSparkLineRenderOptions, StyleDefaults } from './data_styles';
|
|
5
|
+
import type { RendererOptions } from './renderer_types';
|
|
6
|
+
import type { Renderer } from './renderer';
|
|
7
|
+
import type { Cell, Field } from '../data_tree';
|
|
8
8
|
export declare class HTMLColumnSparkLineRenderer extends HTMLBarChartRenderer {
|
|
9
9
|
getSize(): {
|
|
10
10
|
height: number;
|
package/dist/html/container.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
2
|
-
import { StyleDefaults } from './data_styles';
|
|
3
|
-
import { ChildRenderers
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
|
+
import type { StyleDefaults } from './data_styles';
|
|
3
|
+
import type { ChildRenderers } from './renderer';
|
|
4
|
+
import { RenderTree } from './renderer';
|
|
5
|
+
import type { RendererOptions } from './renderer_types';
|
|
6
|
+
import type { NestField } from '../data_tree';
|
|
6
7
|
export declare abstract class ContainerRenderer extends RenderTree {
|
|
7
8
|
childRenderers: ChildRenderers;
|
|
8
9
|
protected abstract childrenStyleDefaults: StyleDefaults;
|
package/dist/html/currency.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLTextRenderer } from './text';
|
|
2
2
|
import { RendererFactory } from './renderer_factory';
|
|
3
|
-
import { CurrencyRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import { Renderer } from './renderer';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
3
|
+
import type { CurrencyRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Renderer } from './renderer';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLCurrencyRenderer extends HTMLTextRenderer {
|
|
8
8
|
readonly options: CurrencyRenderOptions;
|
|
9
9
|
constructor(document: Document, options: CurrencyRenderOptions);
|
package/dist/html/dashboard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyleDefaults } from './data_styles';
|
|
1
|
+
import type { StyleDefaults } from './data_styles';
|
|
2
2
|
import { ContainerRenderer } from './container';
|
|
3
|
-
import { Cell } from '../data_tree';
|
|
3
|
+
import type { Cell } from '../data_tree';
|
|
4
4
|
export declare class HTMLDashboardRenderer extends ContainerRenderer {
|
|
5
5
|
protected childrenStyleDefaults: StyleDefaults;
|
|
6
6
|
render(table: Cell): Promise<HTMLElement>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLTextRenderer } from './text';
|
|
2
|
-
import { DataVolumeRenderOptions, NumberRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
-
import { RendererOptions } from './renderer_types';
|
|
4
|
-
import { Renderer } from './renderer';
|
|
2
|
+
import type { DataVolumeRenderOptions, NumberRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
+
import type { RendererOptions } from './renderer_types';
|
|
4
|
+
import type { Renderer } from './renderer';
|
|
5
5
|
import { RendererFactory } from './renderer_factory';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLDataVolumeRenderer extends HTMLTextRenderer {
|
|
8
8
|
readonly options: DataVolumeRenderOptions;
|
|
9
9
|
constructor(document: Document, options: DataVolumeRenderOptions);
|
package/dist/html/date.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Renderer } from './renderer';
|
|
2
|
-
import { StyleDefaults, TimeRenderOptions } from './data_styles';
|
|
3
|
-
import { RendererOptions } from './renderer_types';
|
|
1
|
+
import type { Renderer } from './renderer';
|
|
2
|
+
import type { StyleDefaults, TimeRenderOptions } from './data_styles';
|
|
3
|
+
import type { RendererOptions } from './renderer_types';
|
|
4
4
|
import { RendererFactory } from './renderer_factory';
|
|
5
|
-
import { Cell, Field } from '../data_tree';
|
|
5
|
+
import type { Cell, Field } from '../data_tree';
|
|
6
6
|
export declare class HTMLDateRenderer implements Renderer {
|
|
7
7
|
private readonly document;
|
|
8
8
|
private readonly queryTimezone;
|
package/dist/html/duration.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HTMLTextRenderer } from './text';
|
|
2
|
-
import { DurationRenderOptions,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { DurationRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
+
import { DurationUnit } from './data_styles';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Renderer } from './renderer';
|
|
5
6
|
import { RendererFactory } from './renderer_factory';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
7
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
8
|
export declare function formatTimeUnit(value: number, unit: DurationUnit, options?: {
|
|
8
9
|
numFormat?: string;
|
|
9
10
|
terse?: boolean;
|
package/dist/html/html_view.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Tag } from '@malloydata/malloy-tag';
|
|
2
|
-
import { StyleDefaults } from './data_styles';
|
|
3
|
-
import { Renderer } from './renderer';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
1
|
+
import type { Tag } from '@malloydata/malloy-tag';
|
|
2
|
+
import type { StyleDefaults } from './data_styles';
|
|
3
|
+
import type { Renderer } from './renderer';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type * as Malloy from '@malloydata/malloy-interfaces';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
import { Result } from '@malloydata/malloy';
|
|
8
8
|
export declare class HTMLView {
|
|
9
9
|
private document;
|
package/dist/html/image.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Renderer } from './renderer';
|
|
1
|
+
import type { Renderer } from './renderer';
|
|
2
2
|
import { RendererFactory } from './renderer_factory';
|
|
3
|
-
import { ImageRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import { Cell, Field } from '../data_tree';
|
|
3
|
+
import type { ImageRenderOptions, StyleDefaults } from './data_styles';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Cell, Field } from '../data_tree';
|
|
6
6
|
export declare class HTMLImageRenderer implements Renderer {
|
|
7
7
|
private readonly document;
|
|
8
8
|
constructor(document: Document);
|
package/dist/html/json.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Renderer } from './renderer';
|
|
2
|
-
import { JSONRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
-
import { RendererOptions } from './renderer_types';
|
|
1
|
+
import type { Renderer } from './renderer';
|
|
2
|
+
import type { JSONRenderOptions, StyleDefaults } from './data_styles';
|
|
3
|
+
import type { RendererOptions } from './renderer_types';
|
|
4
4
|
import { RendererFactory } from './renderer_factory';
|
|
5
|
-
import { Cell, Field } from '../data_tree';
|
|
5
|
+
import type { Cell, Field } from '../data_tree';
|
|
6
6
|
export declare class HTMLJSONRenderer implements Renderer {
|
|
7
7
|
private readonly document;
|
|
8
8
|
constructor(document: Document);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLCartesianChartRenderer } from './cartesian_chart';
|
|
2
|
-
import { LineChartRenderOptions, StyleDefaults } from './data_styles';
|
|
2
|
+
import type { LineChartRenderOptions, StyleDefaults } from './data_styles';
|
|
3
3
|
import { RendererFactory } from './renderer_factory';
|
|
4
|
-
import { RendererOptions } from './renderer_types';
|
|
5
|
-
import { Renderer } from './renderer';
|
|
6
|
-
import { Cell, Field } from '../data_tree';
|
|
4
|
+
import type { RendererOptions } from './renderer_types';
|
|
5
|
+
import type { Renderer } from './renderer';
|
|
6
|
+
import type { Cell, Field } from '../data_tree';
|
|
7
7
|
export declare class HTMLLineChartRenderer extends HTMLCartesianChartRenderer {
|
|
8
8
|
getMark(): 'line';
|
|
9
9
|
getDataType(field: Field): 'temporal' | 'ordinal' | 'quantitative' | 'nominal';
|