@malloy-publisher/sdk 0.9.13 → 0.9.15

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 (148) hide show
  1. package/dist/RenderedResult-BClN_PG6.cjs.js +154 -0
  2. package/dist/{RenderedResult-DnBtf-cI.es.js → RenderedResult-YBzVMVH2.es.js} +295 -234
  3. package/dist/{ServerProvider-BV7IoDMR.es.js → ServerProvider-D7neZcTk.es.js} +283 -265
  4. package/dist/ServerProvider-e2369oom.cjs.js +1 -0
  5. package/dist/builder/index.cjs.js +80 -79
  6. package/dist/builder/index.es.js +7430 -6548
  7. package/dist/client/api.d.ts +30 -6
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +1 -1
  10. package/dist/components/Dashboard/DashboardGrid.d.ts +49 -1
  11. package/dist/components/Dashboard/DashboardTile.d.ts +5 -2
  12. package/dist/components/Dashboard/DashboardView.d.ts +9 -2
  13. package/dist/components/Dashboard/index.d.ts +1 -1
  14. package/dist/components/Dashboard/promoteMeasureRow.d.ts +5 -7
  15. package/dist/components/Dashboard/useStuck.d.ts +18 -12
  16. package/dist/components/RenderedResult/RenderedResult.d.ts +3 -2
  17. package/dist/components/RenderedResult/ResultContainer.d.ts +11 -1
  18. package/dist/components/RenderedResult/ResultPanel.d.ts +5 -1
  19. package/dist/components/RenderedResult/chartPresentation.d.ts +15 -0
  20. package/dist/components/RenderedResult/chartShapeProblem.d.ts +55 -0
  21. package/dist/components/RenderedResult/resultSizing.d.ts +42 -6
  22. package/dist/components/Report/Report.d.ts +7 -1
  23. package/dist/components/Report/ReportPage.d.ts +7 -0
  24. package/dist/components/Report/layoutRules.d.ts +45 -0
  25. package/dist/components/ReportBuilder/AddTileDialog.d.ts +2 -1
  26. package/dist/components/ReportBuilder/BuilderGrid.d.ts +14 -1
  27. package/dist/components/ReportBuilder/ChartPicker.d.ts +4 -2
  28. package/dist/components/ReportBuilder/EditorSurface.d.ts +17 -1
  29. package/dist/components/ReportBuilder/ReportEditor.d.ts +18 -0
  30. package/dist/components/ReportBuilder/TileFrame.d.ts +33 -1
  31. package/dist/components/ReportBuilder/TileMenu.d.ts +5 -2
  32. package/dist/components/ReportBuilder/catalog.d.ts +23 -0
  33. package/dist/components/ReportBuilder/chartLine.d.ts +38 -5
  34. package/dist/components/ReportBuilder/controls.d.ts +2 -2
  35. package/dist/components/ReportBuilder/document.d.ts +53 -5
  36. package/dist/components/ReportBuilder/imports.d.ts +7 -0
  37. package/dist/components/ReportBuilder/placement.d.ts +75 -0
  38. package/dist/components/ReportBuilder/preview.d.ts +59 -10
  39. package/dist/components/ReportBuilder/sortable.d.ts +3 -1
  40. package/dist/components/ReportBuilder/useTileHeight.d.ts +39 -0
  41. package/dist/components/ReportBuilder/useTileReorder.d.ts +27 -3
  42. package/dist/components/ReportBuilder/useTileResize.d.ts +8 -0
  43. package/dist/index.cjs.js +7 -7
  44. package/dist/index.es.js +3328 -3287
  45. package/dist/text/index.es.js +1 -1
  46. package/dist/{text-entry-72YFLeNk.es.js → text-entry-YKJZbRPo.es.js} +2 -2
  47. package/dist/theme/resolveTheme.d.ts +15 -0
  48. package/dist/{useCompiledDocument-B4QF1mIl.es.js → useCompiledDocument-BGk38oaW.es.js} +5097 -4805
  49. package/dist/useCompiledDocument-D9t5ry_t.cjs.js +142 -0
  50. package/dist/utils/blankQuoted.d.ts +15 -0
  51. package/package.json +1 -1
  52. package/src/components/Dashboard/DashboardGrid.tsx +127 -10
  53. package/src/components/Dashboard/DashboardTile.tsx +11 -1
  54. package/src/components/Dashboard/DashboardView.tsx +63 -10
  55. package/src/components/Dashboard/TileCard.tsx +6 -0
  56. package/src/components/Dashboard/index.ts +1 -0
  57. package/src/components/Dashboard/promoteMeasureRow.spec.ts +19 -0
  58. package/src/components/Dashboard/promoteMeasureRow.ts +15 -36
  59. package/src/components/Dashboard/tileHeight.spec.ts +72 -0
  60. package/src/components/Dashboard/useStuck.ts +76 -28
  61. package/src/components/Package/NewDocumentDialog.spec.tsx +20 -16
  62. package/src/components/Package/NewDocumentDialog.tsx +10 -11
  63. package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +167 -2
  64. package/src/components/RenderedResult/RenderedResult.tsx +21 -6
  65. package/src/components/RenderedResult/ResultContainer.tsx +60 -7
  66. package/src/components/RenderedResult/ResultPanel.tsx +21 -1
  67. package/src/components/RenderedResult/chartPresentation.spec.ts +153 -0
  68. package/src/components/RenderedResult/chartPresentation.ts +166 -0
  69. package/src/components/RenderedResult/chartShapeProblem.spec.tsx +245 -0
  70. package/src/components/RenderedResult/chartShapeProblem.ts +219 -0
  71. package/src/components/RenderedResult/resultSizing.spec.ts +75 -3
  72. package/src/components/RenderedResult/resultSizing.ts +65 -11
  73. package/src/components/Report/Report.spec.tsx +19 -0
  74. package/src/components/Report/Report.tsx +8 -1
  75. package/src/components/Report/ReportPage.tsx +13 -1
  76. package/src/components/Report/layoutRules.spec.ts +43 -3
  77. package/src/components/Report/layoutRules.ts +70 -0
  78. package/src/components/Report/tileOverflow.spec.tsx +162 -0
  79. package/src/components/ReportBuilder/AddTileDialog.spec.tsx +2 -2
  80. package/src/components/ReportBuilder/AddTileDialog.tsx +11 -6
  81. package/src/components/ReportBuilder/BuilderBar.tsx +1 -1
  82. package/src/components/ReportBuilder/BuilderDialogs.tsx +20 -0
  83. package/src/components/ReportBuilder/BuilderGrid.tsx +126 -20
  84. package/src/components/ReportBuilder/ChartPicker.spec.ts +91 -4
  85. package/src/components/ReportBuilder/ChartPicker.tsx +45 -10
  86. package/src/components/ReportBuilder/DrillDialog.tsx +8 -2
  87. package/src/components/ReportBuilder/EditorSurface.tsx +110 -28
  88. package/src/components/ReportBuilder/FilterDialog.tsx +17 -8
  89. package/src/components/ReportBuilder/FilterStrip.tsx +2 -1
  90. package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +193 -2
  91. package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
  92. package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +2 -2
  93. package/src/components/ReportBuilder/ReportBuilder.spec.tsx +143 -2
  94. package/src/components/ReportBuilder/ReportBuilder.tsx +73 -19
  95. package/src/components/ReportBuilder/ReportEditor.fileModel.spec.tsx +178 -0
  96. package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +3 -5
  97. package/src/components/ReportBuilder/ReportEditor.queryVersion.spec.tsx +292 -0
  98. package/src/components/ReportBuilder/ReportEditor.readOnlyTitle.spec.tsx +92 -0
  99. package/src/components/ReportBuilder/ReportEditor.tsx +35 -0
  100. package/src/components/ReportBuilder/TileFrame.tsx +251 -6
  101. package/src/components/ReportBuilder/TileMenu.tsx +259 -20
  102. package/src/components/ReportBuilder/ViewPicker.tsx +4 -3
  103. package/src/components/ReportBuilder/addTileToDocument.spec.ts +34 -0
  104. package/src/components/ReportBuilder/addTileToDocument.ts +26 -1
  105. package/src/components/ReportBuilder/catalog.aggregate.spec.ts +137 -1
  106. package/src/components/ReportBuilder/catalog.ts +90 -37
  107. package/src/components/ReportBuilder/chartLine.spec.ts +42 -5
  108. package/src/components/ReportBuilder/chartLine.ts +80 -2
  109. package/src/components/ReportBuilder/controls.ts +4 -3
  110. package/src/components/ReportBuilder/document.ts +65 -7
  111. package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
  112. package/src/components/ReportBuilder/entryLayout.spec.ts +151 -0
  113. package/src/components/ReportBuilder/imports.ts +1 -1
  114. package/src/components/ReportBuilder/invariants.spec.ts +18 -10
  115. package/src/components/ReportBuilder/layout.ts +3 -0
  116. package/src/components/ReportBuilder/placement.spec.ts +193 -0
  117. package/src/components/ReportBuilder/placement.ts +250 -0
  118. package/src/components/ReportBuilder/preview.shapes.spec.ts +46 -6
  119. package/src/components/ReportBuilder/preview.spec.ts +151 -11
  120. package/src/components/ReportBuilder/preview.ts +203 -40
  121. package/src/components/ReportBuilder/preview.unsaved.compile.spec.ts +190 -0
  122. package/src/components/ReportBuilder/readDocument.spec.ts +46 -2
  123. package/src/components/ReportBuilder/readDocument.ts +194 -23
  124. package/src/components/ReportBuilder/scannerShapes.spec.ts +10 -10
  125. package/src/components/ReportBuilder/sortable.tsx +4 -0
  126. package/src/components/ReportBuilder/spliceDocument.chart.spec.ts +1 -1
  127. package/src/components/ReportBuilder/spliceDocument.color.spec.ts +80 -0
  128. package/src/components/ReportBuilder/spliceDocument.colspan.spec.ts +78 -0
  129. package/src/components/ReportBuilder/spliceDocument.spec.ts +110 -18
  130. package/src/components/ReportBuilder/spliceDocument.ts +139 -52
  131. package/src/components/ReportBuilder/statementExtent.spec.ts +3 -3
  132. package/src/components/ReportBuilder/testing/reportGivenOrder.json +42 -0
  133. package/src/components/ReportBuilder/textTiles.spec.ts +2 -2
  134. package/src/components/ReportBuilder/tileDisplayTitle.ts +2 -2
  135. package/src/components/ReportBuilder/useTileEditing.ts +16 -3
  136. package/src/components/ReportBuilder/useTileHeight.ts +149 -0
  137. package/src/components/ReportBuilder/useTileReorder.ts +143 -6
  138. package/src/components/ReportBuilder/useTileResize.ts +16 -1
  139. package/src/components/given/FilterButton.spec.tsx +27 -11
  140. package/src/components/given/FilterButton.tsx +19 -6
  141. package/src/theme/resolveTheme.spec.ts +72 -1
  142. package/src/theme/resolveTheme.ts +43 -0
  143. package/src/utils/blankQuoted.spec.ts +50 -0
  144. package/src/utils/blankQuoted.ts +32 -0
  145. package/src/utils/malloyText.ts +2 -1
  146. package/dist/RenderedResult-DtQtNV0d.cjs.js +0 -153
  147. package/dist/ServerProvider-BIFPCzTD.cjs.js +0 -1
  148. package/dist/useCompiledDocument-D0OAMejE.cjs.js +0 -142
@@ -773,7 +773,7 @@ export interface DashboardTile {
773
773
  */
774
774
  'query'?: string;
775
775
  /**
776
- * Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query` and nothing derived from the source: no `givenNames`, no layout tags.
776
+ * Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query`, the layout its own entry in `tiles=[…]` sets, and nothing derived from the source: no `givenNames`, no tags from the view.
777
777
  */
778
778
  'restricted'?: boolean;
779
779
  /**
@@ -789,17 +789,29 @@ export interface DashboardTile {
789
789
  */
790
790
  'subtitle'?: string;
791
791
  /**
792
- * Grid columns this tile spans, from a `# colspan=N` on the view or query it names, or from `colspan=N` on a text tile\'s entry in `tiles=[…]`. Clamped to `dashboardColumns` at render time. Absent means one column.
792
+ * Grid columns this tile spans, from `colspan=N` on the tile\'s entry in `tiles=[…]`, or else from a `# colspan=N` on the view or query it names. The entry wins, so one view can sit at a different width on each report. Clamped to `dashboardColumns` at render time. Absent means one column.
793
793
  */
794
794
  'colspan'?: number;
795
795
  /**
796
- * Start a new grid row at this tile, from a `# break` on the view or query it names, or from `break` on a text tile\'s entry in `tiles=[…]`. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
796
+ * Start a new grid row at this tile, from `break` on the tile\'s entry in `tiles=[…]`, or else from a `# break` on the view or query it names; `break=false` on the entry turns off the view\'s. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
797
797
  */
798
798
  'break'?: boolean;
799
799
  /**
800
800
  * Draw the result with no card around it, from a `# borderless` on the view or query it names. Together with `label`, `subtitle`, `colspan` and `break` this is the whole per-child tag set `@malloydata/render` resolves for a `# dashboard` nest child, read the same way here so one view presents identically as a tile and as a nest.
801
801
  */
802
802
  'borderless'?: boolean;
803
+ /**
804
+ * The tile\'s height in grid rows, from `rowspan=N` on its entry in `tiles=[…]`; only the entry sets it. A row is 80px, and a tile N rows tall also spans the N-1 row gaps between them. Absent, the tile is as tall as its result, up to the viewer\'s cap; on a placed report (see `row`), 5 rows for a query tile and 2 for a text tile. A grid report only.
805
+ */
806
+ 'rowspan'?: number;
807
+ /**
808
+ * The grid row the tile\'s top sits in, counted from 1, from `row=N` on its entry in `tiles=[…]`. A report where any tile has a `row` is placed: its rows are fixed 80px tracks, and each tile sits at its `row` and `col` rather than flowing. A placed tile with no `row` or `col` fills the first free cell. On a narrow screen tiles stack in one column, ordered by row then column.
809
+ */
810
+ 'row'?: number;
811
+ /**
812
+ * The grid column the tile\'s left edge sits in, counted from 1, from `col=N` on its entry in `tiles=[…]`. See `row`.
813
+ */
814
+ 'col'?: number;
803
815
  }
804
816
  export declare const DashboardTileKindEnum: {
805
817
  readonly Query: "query";
@@ -2563,7 +2575,7 @@ export interface ReportTile {
2563
2575
  */
2564
2576
  'query'?: string;
2565
2577
  /**
2566
- * Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query` and nothing derived from the source: no `givenNames`, no layout tags.
2578
+ * Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query`, the layout its own entry in `tiles=[…]` sets, and nothing derived from the source: no `givenNames`, no tags from the view.
2567
2579
  */
2568
2580
  'restricted'?: boolean;
2569
2581
  /**
@@ -2579,17 +2591,29 @@ export interface ReportTile {
2579
2591
  */
2580
2592
  'subtitle'?: string;
2581
2593
  /**
2582
- * Grid columns this tile spans, from a `# colspan=N` on the view or query it names, or from `colspan=N` on a text tile\'s entry in `tiles=[…]`. Clamped to `dashboardColumns` at render time. Absent means one column.
2594
+ * Grid columns this tile spans, from `colspan=N` on the tile\'s entry in `tiles=[…]`, or else from a `# colspan=N` on the view or query it names. The entry wins, so one view can sit at a different width on each report. Clamped to `dashboardColumns` at render time. Absent means one column.
2583
2595
  */
2584
2596
  'colspan'?: number;
2585
2597
  /**
2586
- * Start a new grid row at this tile, from a `# break` on the view or query it names, or from `break` on a text tile\'s entry in `tiles=[…]`. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
2598
+ * Start a new grid row at this tile, from `break` on the tile\'s entry in `tiles=[…]`, or else from a `# break` on the view or query it names; `break=false` on the entry turns off the view\'s. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
2587
2599
  */
2588
2600
  'break'?: boolean;
2589
2601
  /**
2590
2602
  * Draw the result with no card around it, from a `# borderless` on the view or query it names. Together with `label`, `subtitle`, `colspan` and `break` this is the whole per-child tag set `@malloydata/render` resolves for a `# dashboard` nest child, read the same way here so one view presents identically as a tile and as a nest.
2591
2603
  */
2592
2604
  'borderless'?: boolean;
2605
+ /**
2606
+ * The tile\'s height in grid rows, from `rowspan=N` on its entry in `tiles=[…]`; only the entry sets it. A row is 80px, and a tile N rows tall also spans the N-1 row gaps between them. Absent, the tile is as tall as its result, up to the viewer\'s cap; on a placed report (see `row`), 5 rows for a query tile and 2 for a text tile. A grid report only.
2607
+ */
2608
+ 'rowspan'?: number;
2609
+ /**
2610
+ * The grid row the tile\'s top sits in, counted from 1, from `row=N` on its entry in `tiles=[…]`. A report where any tile has a `row` is placed: its rows are fixed 80px tracks, and each tile sits at its `row` and `col` rather than flowing. A placed tile with no `row` or `col` fills the first free cell. On a narrow screen tiles stack in one column, ordered by row then column.
2611
+ */
2612
+ 'row'?: number;
2613
+ /**
2614
+ * The grid column the tile\'s left edge sits in, counted from 1, from `col=N` on its entry in `tiles=[…]`. See `row`.
2615
+ */
2616
+ 'col'?: number;
2593
2617
  }
2594
2618
  export declare const ReportTileKindEnum: {
2595
2619
  readonly Query: "query";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-BIFPCzTD.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-e2369oom.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as b, m as y, n as C, o as d, p as g, q as F, r as P, s as S, t as k, u as D, D as M, v as R, w as h, x, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ba, ae as ya, af as Ca, ag as da, ah as ga, ai as Fa, aj as Pa, ak as Sa, al as ka, am as Da, an as Ma, ao as Ra, ap as ha, aq as xa, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as bs, b4 as ys, b5 as Cs, b6 as ds, b7 as gs, b8 as Fs, b9 as Ps } from "../ServerProvider-BV7IoDMR.es.js";
1
+ import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as b, m as y, n as C, o as d, p as g, q as F, r as P, s as S, t as k, u as D, D as M, v as R, w as h, x, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ba, ae as ya, af as Ca, ag as da, ah as ga, ai as Fa, aj as Pa, ak as Sa, al as ka, am as Da, an as Ma, ao as Ra, ap as ha, aq as xa, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as bs, b4 as ys, b5 as Cs, b6 as ds, b7 as gs, b8 as Fs, b9 as Ps } from "../ServerProvider-D7neZcTk.es.js";
2
2
  export {
3
3
  e as AgentsApi,
4
4
  i as AgentsApiAxiosParamCreator,
@@ -31,6 +31,24 @@ export declare function tileGridColumn(tile: {
31
31
  colspan?: number;
32
32
  break?: boolean;
33
33
  }, columns: number): string;
34
+ /** One grid row, in px: the unit `rowspan=N` on a tile's entry counts in. */
35
+ export declare const TILE_ROW_PX = 80;
36
+ /**
37
+ * Fewest and most rows the builder offers for a tile's height; a hand-written
38
+ * file may go outside them. A query tile's floor is the shortest a chart still
39
+ * draws its plot in: at 2 rows a line chart had no plot area left under its
40
+ * heading and axes, and the renderer failed on it. Prose fits in one.
41
+ */
42
+ export declare const MIN_TILE_ROWS = 3;
43
+ export declare const MIN_TEXT_TILE_ROWS = 1;
44
+ export declare const MAX_TILE_ROWS = 16;
45
+ /**
46
+ * A tile `rows` grid rows tall, in px: the rows and the gaps between them, so
47
+ * a tile placed on explicit rows later lands on exactly this height.
48
+ */
49
+ export declare const tileHeightPx: (rows: number) => number;
50
+ /** The rows a tile `px` tall is closest to, held to what the builder offers. */
51
+ export declare const rowsForHeight: (px: number, min?: number) => number;
34
52
  /** Narrowest a tile that sets no `colspan` is drawn, by the reader and the builder alike. */
35
53
  export declare const MIN_TILE_PX = 240;
36
54
  /**
@@ -52,7 +70,35 @@ export declare function defaultTileSpan(columns: number, containerPx: number, mi
52
70
  export interface GridTile {
53
71
  colspan?: number;
54
72
  break?: boolean;
73
+ /** `rowspan=N` on its entry: the grid rows it is tall. Absent, the tile is as tall as its row. */
74
+ rowspan?: number;
75
+ /** `row=N` and `col=N` on its entry: where it sits, which makes the report placed. */
76
+ row?: number;
77
+ col?: number;
55
78
  }
79
+ /**
80
+ * Rows a tile with no `rowspan` takes on a placed report, whose rows are
81
+ * fixed tracks: about the height it is drawn at unplaced. Kept equal to the
82
+ * server's `PLACED_DEFAULT_ROWSPAN`, whose overlap lint counts these rows.
83
+ */
84
+ export declare const PLACED_DEFAULT_ROWSPAN: {
85
+ readonly query: 5;
86
+ readonly text: 2;
87
+ };
88
+ /** Whether a report is placed: any tile says which row it sits in. */
89
+ export declare const isPlaced: (tiles: readonly GridTile[]) => boolean;
90
+ /**
91
+ * Where one tile sits on a placed report. A tile with no `row` or `col` is
92
+ * left to the grid's own auto-placement, which puts it in the first free cell
93
+ * after the placed ones; a `col` too far right for its span is pulled in so
94
+ * the tile stays on the grid, as a colspan wider than the grid is clamped.
95
+ */
96
+ export declare function placedArea(tile: GridTile, columns: number, rows: number): {
97
+ gridRow: string;
98
+ gridColumn: string;
99
+ };
100
+ /** A placed tile's place in reading order, top to bottom and then left to right: its order when the grid is one column. */
101
+ export declare const readingOrder: (tile: GridTile) => number;
56
102
  /**
57
103
  * The composite dashboard's grid: the column track, and each tile's place on
58
104
  * it.
@@ -76,7 +122,7 @@ export interface GridTile {
76
122
  * builder wraps one in its selection outline. Anything this component rendered
77
123
  * on their behalf would be a third opinion about what a tile looks like.
78
124
  */
79
- export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, minTilePx, rowGapPx, }: {
125
+ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, minTilePx, rowGapPx, defaultRowspan, }: {
80
126
  tiles: readonly T[];
81
127
  /** Track count — `# dashboard { columns=N }`, or {@link DEFAULT_COLUMNS}. */
82
128
  columns: number;
@@ -95,4 +141,6 @@ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyO
95
141
  minTilePx?: number;
96
142
  /** The space between rows. */
97
143
  rowGapPx?: number;
144
+ /** Rows a tile with no `rowspan` takes on a placed report; by default its kind's {@link PLACED_DEFAULT_ROWSPAN}. */
145
+ defaultRowspan?: (tile: T) => number;
98
146
  }): import("react/jsx-runtime").JSX.Element;
@@ -38,7 +38,10 @@ export interface DashboardTileProps {
38
38
  * server accepts: a surfaced given a query does not reference is ignored.
39
39
  */
40
40
  givenNames?: string[];
41
- height: number;
41
+ /** Cap on the result's height, past which it scrolls. Undefined is no cap: the tile grows to fit. */
42
+ height: number | undefined;
43
+ /** A further cap when the result is a table, past which it scrolls under its pinned header. */
44
+ tableMaxHeight?: number;
42
45
  maxResultSize?: number;
43
46
  /** Cell clicks and their affordance, for the dashboard's `# drill`. */
44
47
  drill?: DrillBinding;
@@ -87,4 +90,4 @@ export declare function tileTitle(tile: string): string;
87
90
  * tile: the broken one shows its error in place and the rest of the grid still
88
91
  * renders, rather than one failure blanking the page.
89
92
  */
90
- export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, waitingFor, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
93
+ export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, tableMaxHeight, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, waitingFor, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { DashboardManifest } from '../../client';
2
3
  import { HostGivenValue } from '../../hooks/givenValue';
3
4
  import { DrillNavigation } from '../drill';
@@ -5,7 +6,7 @@ import { GivensLayout } from '../given';
5
6
  import { NavigationClick } from '../click_helper';
6
7
  import { TileChrome } from './TileCard';
7
8
  /** Re-exported for hosts that import it from here; defined with the page parts. */
8
- export { STICKY_CONTROLS_Z } from '../Report/ReportPage';
9
+ export { STICKY_CONTROLS_Z, STICKY_TOP_VAR } from '../Report/ReportPage';
9
10
  export interface DashboardViewProps {
10
11
  /** The dashboard, or the tile layout a layout notebook carries. */
11
12
  manifest: DashboardManifest;
@@ -22,6 +23,7 @@ export interface DashboardViewProps {
22
23
  givens?: Record<string, HostGivenValue>;
23
24
  onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
24
25
  onNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
26
+ /** Height cap for a grid tile's result panel; a linear report's tiles take the layout's own. */
25
27
  height?: number;
26
28
  maxResultSize?: number;
27
29
  /**
@@ -58,6 +60,11 @@ export interface DashboardViewProps {
58
60
  * for a host with its own router. Omitted, links are plain anchors.
59
61
  */
60
62
  onLinkNavigate?: (to: string, event?: NavigationClick) => void;
63
+ /**
64
+ * The host's actions for this report (a download, a menu), drawn at the
65
+ * end of the title's line, where the builder's toolbar sits.
66
+ */
67
+ actions?: ReactNode;
61
68
  }
62
69
  /**
63
70
  * A loaded dashboard manifest, drawn: the control row and the tile grid.
@@ -65,4 +72,4 @@ export interface DashboardViewProps {
65
72
  * Split from the manifest fetch so a notebook written as a tile layout, whose
66
73
  * manifest arrives inside the notebook response, renders through the same code.
67
74
  */
68
- export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize, controlsLayout, preamble, runModelPath, hiddenGivens, literalReads, onLinkNavigate, }: DashboardViewProps): import("react/jsx-runtime").JSX.Element;
75
+ export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize, controlsLayout, preamble, runModelPath, hiddenGivens, literalReads, onLinkNavigate, actions, }: DashboardViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { DashboardView, STICKY_CONTROLS_Z, type DashboardViewProps, } from './DashboardView';
1
+ export { DashboardView, STICKY_CONTROLS_Z, STICKY_TOP_VAR, type DashboardViewProps, } from './DashboardView';
2
2
  export { TileFilterTag, tileIgnoredFilterLabels } from './TileFilterTag';
3
3
  export { DashboardTile, type DashboardTileProps } from './DashboardTile';
4
4
  export { documentPreamble, RESTRICTED_NOTICE, withPreamble, } from './textSource';
@@ -1,9 +1,4 @@
1
- interface ResultField {
2
- kind?: string;
3
- annotations?: Array<{
4
- value?: string;
5
- }>;
6
- }
1
+ import { ResultField } from '../RenderedResult/chartShapeProblem';
7
2
  interface ResultShape {
8
3
  schema?: {
9
4
  fields?: ResultField[];
@@ -18,7 +13,10 @@ interface ResultShape {
18
13
  }
19
14
  /**
20
15
  * True when the result is one row consisting solely of measures: the shape a
21
- * `view: kpis is { aggregate: … }` tile produces.
16
+ * `view: kpis is { aggregate: … }` tile produces. A column is a measure by
17
+ * the result panel's own rule ({@link isTotalColumn}): every output column
18
+ * comes back `kind: "dimension"`, and an aggregate is the one whose
19
+ * `#(malloy)` note carries `calculation` as a property of its own.
22
20
  */
23
21
  export declare function isMeasureRow(result: ResultShape): boolean;
24
22
  /**
@@ -1,20 +1,26 @@
1
1
  /**
2
- * How far above the scroller's edge a pinned bar sits: one pixel, so the bar
3
- * is clipped by exactly that pixel while pinned and whole while it is not,
4
- * which is what {@link useStuck} observes.
2
+ * How far above its pinning line a pinned bar sits: one pixel, so the bar's
3
+ * edge meets whatever is pinned above it (the scroller's edge, or a host's own
4
+ * pinned bar) with no hairline of content showing between them.
5
5
  */
6
6
  export declare const STUCK_TOP_PX = -1;
7
7
  /**
8
- * Whether a `position: sticky` bar (pinned at `top: {@link STUCK_TOP_PX}px`)
9
- * is currently pinned, so it can draw an edge only while content scrolls under
10
- * it. Unpinned, the bar sits in the flow and an edge would be a stray line
11
- * between it and the first tile.
8
+ * Whether a `position: sticky` bar is pinned now: the content under it has
9
+ * scrolled, and the bar sits at its pinning line (its computed `top`, below the
10
+ * scroller's top edge) rather than lower down in the flow.
11
+ */
12
+ export declare function isPinned(node: HTMLElement, scroller: HTMLElement | undefined): boolean;
13
+ /**
14
+ * Whether a `position: sticky` bar is currently pinned, so it can draw a fill
15
+ * and an edge only while content scrolls under it. Unpinned, the bar sits in
16
+ * the flow and an edge would be a stray line between it and the first tile.
12
17
  *
13
- * Observes the bar itself: pinned, its top pixel is clipped by the scroller,
14
- * so less than all of it is visible. No sentinel element, which as a sibling
15
- * in a `gap` layout cost the page a gap of its own above the bar. No explicit
16
- * root, so it works whichever ancestor scrolls: an observer with the implicit
17
- * root counts clipping by every scrolling ancestor, not just the viewport.
18
+ * Measured on scroll, against the bar's own pinning line. It used to watch for
19
+ * the bar's top pixel being clipped by the scroller, which holds only for a bar
20
+ * pinned at the scroller's edge: a host that pins its own bar above the report
21
+ * (`--publisher-sticky-top`) pins this one lower, where nothing clips it. The
22
+ * bar then never counted as pinned, stayed transparent, and its controls were
23
+ * drawn over the tile titles scrolling under it.
18
24
  */
19
25
  export declare function useStuck(): {
20
26
  stickyRef: (node: HTMLElement | null) => void;
@@ -22,9 +22,10 @@ interface RenderedResultProps {
22
22
  /**
23
23
  * Which sizing rule the rendered root follows, as soon as the renderer's
24
24
  * metadata says. Lets a caller stop treating its cap as a height for a
25
- * result that will never report one.
25
+ * result that will never report one. `renderAs` is the root's render type,
26
+ * which tells a caller with a table-only cap whether it applies.
26
27
  */
27
- onSizing?: (sizing: ResultSizing) => void;
28
+ onSizing?: (sizing: ResultSizing, renderAs: string | undefined) => void;
28
29
  /**
29
30
  * Makes `# drill` cells clickable, and makes them look it. From `useDrill`
30
31
  * on the host surface, which decides where a click may go; omitted where
@@ -1,5 +1,7 @@
1
1
  import { LogMessage } from '../../client';
2
2
  import { DrillBinding } from '../drill/useDrill';
3
+ /** The box a dashboard tile's result scrolls in when it is taller than its cap. */
4
+ export declare const RESULT_SCROLLER_CLASS = "publisher-result-scroller";
3
5
  interface ResultContainerProps {
4
6
  result: string | undefined;
5
7
  /**
@@ -9,6 +11,14 @@ interface ResultContainerProps {
9
11
  * not be clipped to tidy it.
10
12
  */
11
13
  maxHeight?: number;
14
+ /**
15
+ * A further cap for a result whose root is a table, and only then. A
16
+ * linear report sets it: its tiles grow to fit, except a long table, which
17
+ * stops here and scrolls inside itself under its pinned header row.
18
+ */
19
+ tableMaxHeight?: number;
20
+ /** The height to paint at before the result is measured, in place of the default (see `initialResultHeight`). */
21
+ firstPaintHeight?: number;
12
22
  maxResultSize?: number;
13
23
  renderLogs?: LogMessage[];
14
24
  drill?: DrillBinding;
@@ -20,5 +30,5 @@ interface ResultContainerProps {
20
30
  */
21
31
  fill?: boolean;
22
32
  }
23
- export default function ResultContainer({ result, maxHeight, maxResultSize, renderLogs, drill, fill, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
33
+ export default function ResultContainer({ result, maxHeight, tableMaxHeight, firstPaintHeight, maxResultSize, renderLogs, drill, fill, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
24
34
  export {};
@@ -7,6 +7,10 @@ export interface ResultPanelProps {
7
7
  context: string;
8
8
  loadingText?: string;
9
9
  maxHeight?: number;
10
+ /** See `ResultContainer`: a further cap for a table root only. */
11
+ tableMaxHeight?: number;
12
+ /** See `ResultContainer`: the height to paint at before the result is measured. */
13
+ firstPaintHeight?: number;
10
14
  maxResultSize?: number;
11
15
  drill?: DrillBinding;
12
16
  /** See `ResultContainer`: stretch the result to its cell. */
@@ -29,4 +33,4 @@ export interface ResultPanelProps {
29
33
  * survive a bad tile: the broken one shows its error in place and the rest of
30
34
  * the grid still renders.
31
35
  */
32
- export declare function ResultPanel({ state, context, loadingText, maxHeight, maxResultSize, drill, fill, transform, }: ResultPanelProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function ResultPanel({ state, context, loadingText, maxHeight, tableMaxHeight, firstPaintHeight, maxResultSize, drill, fill, transform, }: ResultPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ /** `total_revenue` → "Total revenue". */
2
+ export declare function humanizeFieldName(name: string): string;
3
+ /**
4
+ * The result with a human label on every unlabelled field of a chart, at the
5
+ * root or in a nest; the same object when there is nothing to label.
6
+ */
7
+ export declare function labelChartFields<T>(result: T): T;
8
+ /** The narrowest a plotted chart is drawn before its panel scrolls sideways. */
9
+ export declare const MIN_CHART_WIDTH_PX = 320;
10
+ /**
11
+ * The narrowest width a result's chart is drawn at, or undefined for a
12
+ * result that is not a plotted chart (`renderAs` in the renderer's plugin
13
+ * vocabulary: `bar`, `line`, `combo`, or the tag fallback `chart`).
14
+ */
15
+ export declare function chartMinWidth(renderAs: string | undefined, result: unknown): number | undefined;
@@ -0,0 +1,55 @@
1
+ /** An output column as a result's schema, or a view's in the catalog, describes it. */
2
+ export interface ResultField {
3
+ kind?: string;
4
+ type?: {
5
+ kind?: string;
6
+ };
7
+ annotations?: Array<{
8
+ value?: string;
9
+ }>;
10
+ }
11
+ /**
12
+ * The chart the result's lines ask for, read in order: a later line overrides,
13
+ * `-tag` takes one off.
14
+ *
15
+ * A `viz=` wins over every chart tag, as it does in the renderer, whatever its
16
+ * value. One this does not know (`viz=table`, or a quoted value, blanked to
17
+ * `""`) comes back as written, which is no chart that plots rows, so the
18
+ * result is left to the renderer rather than read as an inherited chart tag.
19
+ */
20
+ export declare function requestedChart(lines: readonly string[]): string | undefined;
21
+ /** Whether the lines ask for a chart that plots rows (bar, line, scatter, bar and line), not big numbers or a table. */
22
+ export declare function requestsRowChart(lines: readonly string[]): boolean;
23
+ /** A result's or a view's output columns by role: group-bys for the x axis, totals for the y axis. */
24
+ export interface ColumnCounts {
25
+ groupBys: number;
26
+ totals: number;
27
+ }
28
+ /** What a chart that plots rows is missing: a group-by, a total, or exactly two totals for a bar and line chart. */
29
+ export type ChartShapeGap = "no_x_axis" | "no_y_axis" | "combo_totals";
30
+ /**
31
+ * What keeps `chart` from drawing columns of this shape, or undefined when
32
+ * nothing does or `chart` does not plot rows. The one rule both the builder's
33
+ * chart picker and the result panel apply. A scatter chart plots its first
34
+ * two columns against each other, whatever they are, so two group-bys draw,
35
+ * and so do two totals with no group-by.
36
+ */
37
+ export declare function chartShapeGap(chart: string, { groupBys, totals }: ColumnCounts): ChartShapeGap | undefined;
38
+ /**
39
+ * Whether a `#(malloy)` note marks its column a total: `calculation` as one of
40
+ * the note's own properties. The note also carries a `drill_expression { … }`
41
+ * whose `name = …` can be a group-by literally named `calculation`, so only
42
+ * words outside any `{…}` or `[…]` and outside quotes count, and never a
43
+ * property's value.
44
+ */
45
+ export declare function marksCalculation(note: string): boolean;
46
+ /**
47
+ * Whether an output column is a total. The one definition: the result panel,
48
+ * the builder's catalog and the KPI promotion all read a column's role here.
49
+ */
50
+ export declare const isTotalColumn: (field: ResultField | undefined) => boolean;
51
+ /** Whether an output column is a nest, which no chart axis takes. */
52
+ export declare const isNestColumn: (field: ResultField) => boolean;
53
+ /** Output columns by role: a group-by is neither a total nor a nest. */
54
+ export declare function columnCounts(fields: readonly ResultField[]): ColumnCounts;
55
+ export declare function chartShapeProblem(result: string | undefined): string | undefined;
@@ -139,6 +139,28 @@ export declare const TILE_MAX_HEIGHT = 400;
139
139
  * page turning into one long table.
140
140
  */
141
141
  export declare const NOTEBOOK_CELL_MAX_HEIGHT = 700;
142
+ /**
143
+ * Cap for a table in a linear report, whose tiles otherwise grow to fit. A
144
+ * long table drawn at full length pushes everything after it a screen or more
145
+ * down, so it stops here and scrolls inside its tile under its own pinned
146
+ * header row. The same number as a notebook cell, the linear report's
147
+ * predecessor.
148
+ */
149
+ export declare const LINEAR_TABLE_MAX_HEIGHT = 700;
150
+ /**
151
+ * The cap a rendered root is held to: `maxHeight`, and for a table root also
152
+ * `tableMaxHeight`, whichever is lower. Undefined is no cap.
153
+ *
154
+ * Only a root that IS a table. A `# dashboard` root is not one: the renderer
155
+ * caps the tables inside it itself, at its own default or the author's
156
+ * `# dashboard { table.max_height=N | none }`. A KPI row, a list or a map keeps
157
+ * `maxHeight` alone, so a linear report still grows to show every card.
158
+ */
159
+ export declare function resultCap({ renderAs, maxHeight, tableMaxHeight, }: {
160
+ renderAs: string | undefined;
161
+ maxHeight: number | undefined;
162
+ tableMaxHeight: number | undefined;
163
+ }): number | undefined;
142
164
  /** Cap for a query result shown inside a model page's cell. */
143
165
  export declare const MODEL_CELL_MAX_HEIGHT = 600;
144
166
  /** Cap for the results dialog, which gets most of a tall viewport. */
@@ -167,8 +189,15 @@ export declare const UNCAPPED_CONTAINER_HEIGHT = 400;
167
189
  * as you like".
168
190
  */
169
191
  export declare const INITIAL_RENDER_HEIGHT = 2000;
170
- /** First-paint height, before anything is known about the result. */
171
- export declare function initialResultHeight(maxHeight: number | undefined): number;
192
+ /**
193
+ * First-paint height, before anything is known about the result.
194
+ *
195
+ * `firstPaintHeight` replaces {@link INITIAL_RENDER_HEIGHT} for a caller that
196
+ * knows better. A report tile does: uncapped in a linear report, it would
197
+ * otherwise open at 2000px and collapse once measured, jumping the page under
198
+ * the reader. It is a first paint only; the measured height still wins.
199
+ */
200
+ export declare function initialResultHeight(maxHeight: number | undefined, firstPaintHeight?: number): number;
172
201
  /**
173
202
  * The height a result panel should paint at, given what is known so far.
174
203
  *
@@ -179,13 +208,20 @@ export declare function initialResultHeight(maxHeight: number | undefined): numb
179
208
  * `fillHeight` is the room the surface has to give, for a cell that stretches
180
209
  * its result (a dashboard tile). It is a FLOOR on a measured content-sized
181
210
  * result and wins over the cap, so a short table reaches the bottom of its cell
182
- * and a long one still scrolls inside it. A container-sized result ignores it,
183
- * and so does one not measured yet, which would otherwise paint at a made-up
184
- * height.
211
+ * and a long one still scrolls inside it. A content-sized result not measured
212
+ * yet ignores it, since it would otherwise paint at a made-up height.
213
+ *
214
+ * A container-sized result (a chart) takes it only as a CEILING: drawn at its
215
+ * cap in a cell shorter than that, it ran past the cell's bottom and lost its
216
+ * x-axis labels to the card's clip, which is what a tile with a set `rowspan`
217
+ * is. It still never grows past its cap. No ratchet follows, because the chart
218
+ * sits out of flow in its cell, so the cell's height never depends on it.
185
219
  */
186
- export declare function resolveResultHeight({ sizing, contentHeight, maxHeight, fillHeight, }: {
220
+ export declare function resolveResultHeight({ sizing, contentHeight, maxHeight, fillHeight, firstPaintHeight, }: {
187
221
  sizing: ResultSizing | undefined;
188
222
  contentHeight: number | undefined;
189
223
  maxHeight: number | undefined;
190
224
  fillHeight?: number | undefined;
225
+ /** See {@link initialResultHeight}. */
226
+ firstPaintHeight?: number | undefined;
191
227
  }): number;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { NavigationClick } from '../click_helper';
2
3
  import { TileChrome } from '../Dashboard/TileCard';
3
4
  import { DrillNavigation } from '../drill';
@@ -58,6 +59,11 @@ export interface ReportProps {
58
59
  * while the builder loads over it.
59
60
  */
60
61
  manifestStaleTime?: number;
62
+ /**
63
+ * The host's actions for the report (a download, its own menu), drawn at
64
+ * the end of the title's line rather than on a row of their own above it.
65
+ */
66
+ actions?: ReactNode;
61
67
  }
62
68
  /**
63
69
  * A report of either layout, from `GET …/reports/{path}`: a grid drawn as a
@@ -67,5 +73,5 @@ export interface ReportProps {
67
73
  * Host-agnostic, like `Dashboard`: it takes props rather than reading a
68
74
  * router, and hands navigation and URL state back to whoever mounted it.
69
75
  */
70
- export declare function Report({ resourceUri, path, givens, onGivensChange, onNavigate, onLinkNavigate, height, maxResultSize, onEvent, chrome, manifestStaleTime, }: ReportProps): import("react/jsx-runtime").JSX.Element;
76
+ export declare function Report({ resourceUri, path, givens, onGivensChange, onNavigate, onLinkNavigate, height, maxResultSize, onEvent, chrome, manifestStaleTime, actions, }: ReportProps): import("react/jsx-runtime").JSX.Element;
71
77
  export default Report;
@@ -16,6 +16,13 @@ import { ReactNode } from 'react';
16
16
  * below MUI's app bar, popovers and dialogs.
17
17
  */
18
18
  export declare const STICKY_CONTROLS_Z = 4;
19
+ /**
20
+ * The CSS custom property a host sets, on any ancestor of a report, to the
21
+ * height of what it pins above the report in the same scroller. The control
22
+ * row pins that far down instead of at the scroller's edge, so the two stack
23
+ * rather than overlap. Unset, it is 0.
24
+ */
25
+ export declare const STICKY_TOP_VAR = "--publisher-sticky-top";
19
26
  /**
20
27
  * A report page, top to bottom: anything that must be said before it
21
28
  * (`notice`), the header, the control row, then the body (the tiles, and