@malloydata/render 0.0.294 → 0.0.295
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/.storybook/malloy-stories-indexer.ts +4 -0
- package/dist/module/component/render-numeric-field.d.ts +2 -0
- package/dist/module/data_tree/fields/base.d.ts +1 -1
- package/dist/module/data_tree/utils.d.ts +2 -1
- package/dist/module/index.mjs +35339 -36094
- package/dist/module/index.umd.js +609 -604
- package/dist/module/plugins/bar-chart/bar-chart-plugin.d.ts +3 -1
- package/dist/module/plugins/error/error-plugin.d.ts +4 -0
- package/dist/module/plugins/index.d.ts +1 -0
- package/dist/module/render-field-metadata.d.ts +5 -3
- package/package.json +5 -5
- package/test/mocks/cssMock.js +1 -0
|
@@ -168,6 +168,10 @@ export function viteMalloyStoriesPlugin(): PluginOption {
|
|
|
168
168
|
DummyPluginFactory,
|
|
169
169
|
DummyDOMPluginFactory,
|
|
170
170
|
],
|
|
171
|
+
onDrill: console.log,
|
|
172
|
+
tableConfig: {
|
|
173
|
+
enableDrill: true,
|
|
174
|
+
},
|
|
171
175
|
});
|
|
172
176
|
const viz = renderer.createViz({
|
|
173
177
|
onError: error => {
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RenderTimeStringOptions } from '../util';
|
|
1
2
|
import { Field } from '../data_tree';
|
|
2
3
|
export declare function renderNumericField(f: Field, value: number | null | undefined): string;
|
|
4
|
+
export declare function renderDateTimeField(f: Field, value: Date | null | undefined, options?: RenderTimeStringOptions): string;
|
|
@@ -17,7 +17,7 @@ export declare abstract class FieldBase {
|
|
|
17
17
|
constructor(field: Malloy.DimensionInfo, parent: Field | undefined);
|
|
18
18
|
isRoot(): boolean;
|
|
19
19
|
root(): RootField;
|
|
20
|
-
get
|
|
20
|
+
get drillStableExpression(): Malloy.Expression | undefined;
|
|
21
21
|
get sourceName(): string;
|
|
22
22
|
get sourceArguments(): Malloy.ParameterValue[] | undefined;
|
|
23
23
|
get name(): string;
|
|
@@ -18,5 +18,6 @@ export declare function shouldRenderAs({ field, tagOverride, }: {
|
|
|
18
18
|
tagOverride?: Tag;
|
|
19
19
|
}): string;
|
|
20
20
|
export declare function tagFor(field: Malloy.DimensionInfo, prefix?: string): Tag;
|
|
21
|
-
export declare function
|
|
21
|
+
export declare function extractExpressionFromTag(tag: Tag): Malloy.Expression | undefined;
|
|
22
|
+
export declare function extractLiteralFromTag(tag: Tag): Malloy.LiteralValue | undefined;
|
|
22
23
|
export declare function getFieldType(field: Field): FieldType;
|