@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
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { RenderPluginFactory, CoreVizPluginInstance } from '../../api/plugin-types';
|
|
2
|
-
import { NestField } from '../../data_tree';
|
|
2
|
+
import { Field, NestField } from '../../data_tree';
|
|
3
3
|
import { BarChartSettings } from './get-bar_chart-settings';
|
|
4
4
|
export interface BarChartPluginInstance extends CoreVizPluginInstance<BarChartPluginMetadata> {
|
|
5
5
|
getTopNSeries?: (maxSeries: number) => (string | number | boolean)[];
|
|
6
6
|
field: NestField;
|
|
7
|
+
syntheticSeriesField?: Field;
|
|
8
|
+
hasMultipleSeriesFields?: boolean;
|
|
7
9
|
}
|
|
8
10
|
interface BarChartPluginMetadata {
|
|
9
11
|
type: 'bar';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type ILineChartSettingsSchema, lineChartSettingsSchema, defaultLineChartSettings, type LineChartSettings, } from './line-chart/line-chart-settings';
|
|
2
2
|
export { type IBarChartSettingsSchema, barChartSettingsSchema, defaultBarChartSettings, type BarChartSettings, } from './bar-chart/bar-chart-settings';
|
|
3
3
|
export { BarChartPluginFactory, type BarChartPluginInstance, } from './bar-chart/bar-chart-plugin';
|
|
4
|
+
export { ErrorPlugin } from './error/error-plugin';
|
|
@@ -2,12 +2,14 @@ import { Field, RootField } from './data_tree';
|
|
|
2
2
|
import { RenderPluginFactory, RenderPluginInstance } from './api/plugin-types';
|
|
3
3
|
import { RenderFieldRegistryEntry } from './registry/types';
|
|
4
4
|
import type * as Malloy from '@malloydata/malloy-interfaces';
|
|
5
|
+
export type OnPluginCreateError = (error: Error, factory: RenderPluginFactory, field: Field, plugins: RenderPluginInstance[]) => void;
|
|
5
6
|
export declare class RenderFieldMetadata {
|
|
6
|
-
private registry;
|
|
7
|
-
private rootField;
|
|
8
7
|
private pluginRegistry;
|
|
9
8
|
private pluginOptions;
|
|
10
|
-
|
|
9
|
+
private onPluginCreateError?;
|
|
10
|
+
private registry;
|
|
11
|
+
private rootField;
|
|
12
|
+
constructor(result: Malloy.Result, pluginRegistry?: RenderPluginFactory[], pluginOptions?: Record<string, unknown>, onPluginCreateError?: OnPluginCreateError | undefined);
|
|
11
13
|
private instantiatePluginsForField;
|
|
12
14
|
private registerFields;
|
|
13
15
|
private populateRenderFieldProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/render",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.295",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/module/index.umd.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"generate-flow": "ts-node ../../scripts/gen-flow.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@malloydata/malloy": "0.0.
|
|
33
|
-
"@malloydata/malloy-interfaces": "0.0.
|
|
34
|
-
"@malloydata/malloy-tag": "0.0.
|
|
32
|
+
"@malloydata/malloy": "0.0.295",
|
|
33
|
+
"@malloydata/malloy-interfaces": "0.0.295",
|
|
34
|
+
"@malloydata/malloy-tag": "0.0.295",
|
|
35
35
|
"@tanstack/solid-virtual": "^3.10.4",
|
|
36
36
|
"lodash": "^4.17.20",
|
|
37
37
|
"luxon": "^2.4.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vega-lite": "^5.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@malloydata/db-duckdb": "0.0.
|
|
45
|
+
"@malloydata/db-duckdb": "0.0.295",
|
|
46
46
|
"@storybook/addon-essentials": "^8.5.8",
|
|
47
47
|
"@storybook/addon-interactions": "^8.5.8",
|
|
48
48
|
"@storybook/addon-links": "^8.5.8",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = '';
|