@malloydata/render 0.0.135-dev240325191847 → 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.
Files changed (86) hide show
  1. package/dist/component/render-webcomponent.d.ts +6 -0
  2. package/dist/component/render.d.ts +7 -17
  3. package/dist/component/result-context.d.ts +2 -3
  4. package/dist/component/table/table-context.d.ts +9 -0
  5. package/dist/component/{table-layout.d.ts → table/table-layout.d.ts} +2 -2
  6. package/dist/component/table/table.d.ts +9 -0
  7. package/dist/html/html_view.d.ts +1 -1
  8. package/dist/module/index.mjs +145001 -0
  9. package/dist/module/index.umd.js +1643 -0
  10. package/dist/module/style.css +1 -0
  11. package/dist/stories/bars.stories.d.ts +1 -1
  12. package/dist/stories/tables.stories.d.ts +1 -1
  13. package/dist/stories/themes.stories.d.ts +1 -1
  14. package/dist/webcomponent/malloy-render.mjs +90572 -0
  15. package/dist/webcomponent/malloy-render.umd.js +1491 -0
  16. package/dist/webcomponent/style.css +1 -0
  17. package/package.json +21 -7
  18. package/vite.config.ts +25 -0
  19. package/vite.config.webcomponent.ts +25 -0
  20. package/dist/bundle/bundled_renderer.js +0 -139374
  21. package/dist/bundle/bundled_renderer.min.js +0 -2374
  22. package/dist/bundle/main.js +0 -29
  23. package/dist/bundle/renderer.js +0 -71
  24. package/dist/component/bar-chart.js +0 -130
  25. package/dist/component/chart-settings.js +0 -152
  26. package/dist/component/render-numeric-field.js +0 -104
  27. package/dist/component/render-result-metadata.js +0 -91
  28. package/dist/component/render.js +0 -155
  29. package/dist/component/result-context.js +0 -28
  30. package/dist/component/table-layout.js +0 -83
  31. package/dist/component/table.d.ts +0 -35
  32. package/dist/component/table.js +0 -375
  33. package/dist/component/util.js +0 -53
  34. package/dist/component/vega-chart.js +0 -105
  35. package/dist/component/vega-lite-base-spec.js +0 -61
  36. package/dist/component/vega-types.js +0 -34
  37. package/dist/data_styles.js +0 -50
  38. package/dist/drill.js +0 -124
  39. package/dist/html/area_sparkline.js +0 -118
  40. package/dist/html/bar_chart.js +0 -70
  41. package/dist/html/bar_sparkline.js +0 -119
  42. package/dist/html/boolean.js +0 -53
  43. package/dist/html/bytes.js +0 -47
  44. package/dist/html/cartesian_chart.js +0 -110
  45. package/dist/html/chart.js +0 -120
  46. package/dist/html/column_sparkline.js +0 -120
  47. package/dist/html/container.js +0 -44
  48. package/dist/html/currency.js +0 -75
  49. package/dist/html/dashboard.js +0 -242
  50. package/dist/html/data_volume.js +0 -94
  51. package/dist/html/date.js +0 -66
  52. package/dist/html/duration.js +0 -108
  53. package/dist/html/html_view.js +0 -187
  54. package/dist/html/image.js +0 -77
  55. package/dist/html/index.js +0 -28
  56. package/dist/html/json.js +0 -52
  57. package/dist/html/line_chart.js +0 -72
  58. package/dist/html/link.js +0 -57
  59. package/dist/html/list.js +0 -73
  60. package/dist/html/list_detail.js +0 -33
  61. package/dist/html/number.js +0 -73
  62. package/dist/html/percent.js +0 -50
  63. package/dist/html/point_map.js +0 -182
  64. package/dist/html/scatter_chart.js +0 -72
  65. package/dist/html/segment_map.js +0 -151
  66. package/dist/html/shape_map.js +0 -194
  67. package/dist/html/sparkline.js +0 -120
  68. package/dist/html/state_codes.js +0 -137
  69. package/dist/html/table.js +0 -475
  70. package/dist/html/text.js +0 -65
  71. package/dist/html/unsupported.js +0 -72
  72. package/dist/html/utils.js +0 -277
  73. package/dist/html/vega_spec.js +0 -544
  74. package/dist/index.js +0 -47
  75. package/dist/main_renderer_factory.js +0 -101
  76. package/dist/renderer.js +0 -34
  77. package/dist/renderer_factory.js +0 -57
  78. package/dist/renderer_types.js +0 -25
  79. package/dist/stories/bars.stories.js +0 -52
  80. package/dist/stories/basic.stories.js +0 -34
  81. package/dist/stories/image.stories.js +0 -34
  82. package/dist/stories/render-malloy-legacy.js +0 -27
  83. package/dist/stories/tables.stories.js +0 -65
  84. package/dist/stories/themes.stories.js +0 -47
  85. package/dist/stories/util.js +0 -25
  86. package/dist/tags_utils.js +0 -30
@@ -0,0 +1,6 @@
1
+ import { MalloyRenderProps } from './render';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'malloy-render': HTMLElement & MalloyRenderProps;
5
+ }
6
+ }
@@ -1,21 +1,11 @@
1
- import { ModelDef, QueryResult, Result, Tag } from '@malloydata/malloy';
2
- import { LitElement, PropertyValues } from 'lit';
3
- import './table';
1
+ import { ModelDef, QueryResult, Result } from '@malloydata/malloy';
4
2
  import './bar-chart';
5
- import { RenderResultMetadata } from './render-result-metadata';
6
- export declare class MalloyRender extends LitElement {
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
- private _result;
12
- metadata: RenderResultMetadata;
13
- willUpdate(changedProperties: PropertyValues<this>): void;
14
- updateTheme(modelTheme?: Tag, localTheme?: Tag): void;
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 resultContext: {
3
- __context__: RenderResultMetadata;
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 './render-result-metadata';
2
- import { ChartSettings } from './chart-settings';
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;
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import { DataArray } from '@malloydata/malloy';
3
+ import './table.css';
4
+ declare const MalloyTable: Component<{
5
+ data: DataArray;
6
+ rowLimit?: number;
7
+ pinnedHeader?: boolean;
8
+ }>;
9
+ export default MalloyTable;
@@ -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);