@malloy-publisher/sdk 0.9.14 → 0.9.16
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/RenderedResult-5hOs5XnV.cjs.js +171 -0
- package/dist/RenderedResult-DxmHGZNQ.es.js +671 -0
- package/dist/{ServerProvider-BV7IoDMR.es.js → ServerProvider-D7neZcTk.es.js} +283 -265
- package/dist/ServerProvider-e2369oom.cjs.js +1 -0
- package/dist/builder/index.cjs.js +80 -79
- package/dist/builder/index.es.js +7732 -6717
- package/dist/builder-entry.d.ts +1 -1
- package/dist/client/api.d.ts +31 -7
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +51 -1
- package/dist/components/Dashboard/DashboardTile.d.ts +7 -2
- package/dist/components/Dashboard/DashboardView.d.ts +9 -2
- package/dist/components/Dashboard/index.d.ts +1 -1
- package/dist/components/Dashboard/promoteMeasureRow.d.ts +5 -7
- package/dist/components/Dashboard/useStuck.d.ts +18 -12
- package/dist/components/RenderedResult/RenderedResult.d.ts +3 -2
- package/dist/components/RenderedResult/ResultContainer.d.ts +18 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +7 -1
- package/dist/components/RenderedResult/chartPresentation.d.ts +15 -0
- package/dist/components/RenderedResult/chartShapeProblem.d.ts +55 -0
- package/dist/components/RenderedResult/resultSizing.d.ts +47 -6
- package/dist/components/Report/Report.d.ts +7 -1
- package/dist/components/Report/ReportPage.d.ts +7 -0
- package/dist/components/Report/layoutRules.d.ts +45 -0
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +2 -1
- package/dist/components/ReportBuilder/ArrangeMenu.d.ts +9 -0
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +15 -4
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +3 -1
- package/dist/components/ReportBuilder/ChartPicker.d.ts +4 -2
- package/dist/components/ReportBuilder/EditorSurface.d.ts +10 -1
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +1 -1
- package/dist/components/ReportBuilder/TileFrame.d.ts +54 -10
- package/dist/components/ReportBuilder/TileMenu.d.ts +5 -2
- package/dist/components/ReportBuilder/builderControls.d.ts +19 -0
- package/dist/components/ReportBuilder/catalog.d.ts +23 -0
- package/dist/components/ReportBuilder/chartLine.d.ts +38 -5
- package/dist/components/ReportBuilder/controls.d.ts +2 -2
- package/dist/components/ReportBuilder/document.d.ts +53 -5
- package/dist/components/ReportBuilder/imports.d.ts +7 -0
- package/dist/components/ReportBuilder/placement.d.ts +121 -0
- package/dist/components/ReportBuilder/preview.d.ts +59 -10
- package/dist/components/ReportBuilder/sortable.d.ts +12 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
- package/dist/components/ReportBuilder/useBuilderShortcuts.d.ts +9 -1
- package/dist/components/ReportBuilder/useEdgeResize.d.ts +84 -0
- package/dist/components/ReportBuilder/useTileReorder.d.ts +30 -3
- package/dist/index.cjs.js +7 -7
- package/dist/index.es.js +3349 -3307
- package/dist/text/index.es.js +1 -1
- package/dist/{text-entry-72YFLeNk.es.js → text-entry-YKJZbRPo.es.js} +2 -2
- package/dist/theme/classes.d.ts +1 -1
- package/dist/theme/resolveTheme.d.ts +15 -0
- package/dist/{useCompiledDocument-B4QF1mIl.es.js → useCompiledDocument-CaYP_OYG.es.js} +6353 -6047
- package/dist/useCompiledDocument-zYEfLogf.cjs.js +142 -0
- package/dist/utils/blankQuoted.d.ts +15 -0
- package/package.json +1 -1
- package/src/builder-entry.ts +1 -0
- package/src/components/Dashboard/DashboardGrid.tsx +129 -10
- package/src/components/Dashboard/DashboardTile.tsx +15 -1
- package/src/components/Dashboard/DashboardView.tsx +64 -10
- package/src/components/Dashboard/TileCard.tsx +6 -0
- package/src/components/Dashboard/index.ts +1 -0
- package/src/components/Dashboard/promoteMeasureRow.spec.ts +19 -0
- package/src/components/Dashboard/promoteMeasureRow.ts +15 -36
- package/src/components/Dashboard/tileHeight.spec.ts +72 -0
- package/src/components/Dashboard/useStuck.ts +76 -28
- package/src/components/Package/NewDocumentDialog.spec.tsx +20 -16
- package/src/components/Package/NewDocumentDialog.tsx +10 -11
- package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +167 -2
- package/src/components/RenderedResult/RenderedResult.tsx +39 -6
- package/src/components/RenderedResult/ResultContainer.tsx +99 -10
- package/src/components/RenderedResult/ResultPanel.tsx +25 -1
- package/src/components/RenderedResult/chartPresentation.spec.ts +153 -0
- package/src/components/RenderedResult/chartPresentation.ts +166 -0
- package/src/components/RenderedResult/chartShapeProblem.spec.tsx +245 -0
- package/src/components/RenderedResult/chartShapeProblem.ts +219 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +75 -3
- package/src/components/RenderedResult/resultSizing.ts +71 -11
- package/src/components/Report/Report.spec.tsx +19 -0
- package/src/components/Report/Report.tsx +8 -1
- package/src/components/Report/ReportPage.tsx +13 -1
- package/src/components/Report/layoutRules.spec.ts +43 -3
- package/src/components/Report/layoutRules.ts +70 -0
- package/src/components/Report/tileOverflow.spec.tsx +162 -0
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +2 -2
- package/src/components/ReportBuilder/AddTileDialog.tsx +11 -6
- package/src/components/ReportBuilder/ArrangeMenu.tsx +80 -0
- package/src/components/ReportBuilder/BuilderBar.tsx +5 -1
- package/src/components/ReportBuilder/BuilderDialogs.tsx +28 -1
- package/src/components/ReportBuilder/BuilderGrid.tsx +142 -35
- package/src/components/ReportBuilder/BuilderToolbar.tsx +4 -0
- package/src/components/ReportBuilder/ChartPicker.spec.ts +91 -4
- package/src/components/ReportBuilder/ChartPicker.tsx +45 -10
- package/src/components/ReportBuilder/DrillDialog.tsx +8 -2
- package/src/components/ReportBuilder/EditorSurface.tsx +101 -20
- package/src/components/ReportBuilder/FilterDialog.tsx +17 -8
- package/src/components/ReportBuilder/FilterStrip.tsx +2 -1
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +193 -2
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +2 -2
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +242 -2
- package/src/components/ReportBuilder/ReportBuilder.tsx +161 -27
- package/src/components/ReportBuilder/ReportEditor.fileModel.spec.tsx +178 -0
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +3 -5
- package/src/components/ReportBuilder/ReportEditor.readOnlyTitle.spec.tsx +92 -0
- package/src/components/ReportBuilder/ReportEditor.tsx +13 -0
- package/src/components/ReportBuilder/TileFrame.tsx +366 -170
- package/src/components/ReportBuilder/TileMenu.tsx +259 -20
- package/src/components/ReportBuilder/ViewPicker.tsx +4 -3
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +34 -0
- package/src/components/ReportBuilder/addTileToDocument.ts +26 -1
- package/src/components/ReportBuilder/builderControls.ts +34 -0
- package/src/components/ReportBuilder/catalog.aggregate.spec.ts +137 -1
- package/src/components/ReportBuilder/catalog.ts +90 -37
- package/src/components/ReportBuilder/chartLine.spec.ts +42 -5
- package/src/components/ReportBuilder/chartLine.ts +80 -2
- package/src/components/ReportBuilder/controls.ts +4 -3
- package/src/components/ReportBuilder/document.ts +65 -7
- package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
- package/src/components/ReportBuilder/entryLayout.spec.ts +151 -0
- package/src/components/ReportBuilder/imports.ts +1 -1
- package/src/components/ReportBuilder/invariants.spec.ts +18 -10
- package/src/components/ReportBuilder/layout.ts +3 -0
- package/src/components/ReportBuilder/placement.spec.ts +401 -0
- package/src/components/ReportBuilder/placement.ts +416 -0
- package/src/components/ReportBuilder/preview.shapes.spec.ts +46 -6
- package/src/components/ReportBuilder/preview.spec.ts +151 -11
- package/src/components/ReportBuilder/preview.ts +203 -40
- package/src/components/ReportBuilder/preview.unsaved.compile.spec.ts +190 -0
- package/src/components/ReportBuilder/readDocument.spec.ts +53 -19
- package/src/components/ReportBuilder/readDocument.ts +197 -29
- package/src/components/ReportBuilder/scannerShapes.spec.ts +10 -10
- package/src/components/ReportBuilder/sortable.tsx +30 -2
- package/src/components/ReportBuilder/spliceDocument.chart.spec.ts +1 -1
- package/src/components/ReportBuilder/spliceDocument.color.spec.ts +80 -0
- package/src/components/ReportBuilder/spliceDocument.colspan.spec.ts +78 -0
- package/src/components/ReportBuilder/spliceDocument.spec.ts +110 -58
- package/src/components/ReportBuilder/spliceDocument.ts +139 -91
- package/src/components/ReportBuilder/statementExtent.spec.ts +3 -3
- package/src/components/ReportBuilder/testing/reportGivenOrder.json +42 -0
- package/src/components/ReportBuilder/textTiles.spec.ts +2 -2
- package/src/components/ReportBuilder/tileDisplayTitle.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +7 -2
- package/src/components/ReportBuilder/useBuilderShortcuts.ts +25 -1
- package/src/components/ReportBuilder/useEdgeResize.spec.tsx +324 -0
- package/src/components/ReportBuilder/useEdgeResize.ts +397 -0
- package/src/components/ReportBuilder/useTileEditing.ts +16 -3
- package/src/components/ReportBuilder/useTileReorder.ts +143 -6
- package/src/components/given/FilterButton.spec.tsx +27 -11
- package/src/components/given/FilterButton.tsx +19 -6
- package/src/theme/classes.ts +1 -1
- package/src/theme/resolveTheme.spec.ts +72 -1
- package/src/theme/resolveTheme.ts +43 -0
- package/src/utils/blankQuoted.spec.ts +50 -0
- package/src/utils/blankQuoted.ts +32 -0
- package/src/utils/malloyText.ts +2 -1
- package/dist/RenderedResult-DnBtf-cI.es.js +0 -593
- package/dist/RenderedResult-DtQtNV0d.cjs.js +0 -153
- package/dist/ServerProvider-BIFPCzTD.cjs.js +0 -1
- package/dist/components/ReportBuilder/useTileResize.d.ts +0 -32
- package/dist/useCompiledDocument-D0OAMejE.cjs.js +0 -142
- package/src/components/ReportBuilder/useTileResize.spec.tsx +0 -146
- package/src/components/ReportBuilder/useTileResize.ts +0 -133
package/dist/builder-entry.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ReportBuilder } from './components/ReportBuilder/ReportBuilder';
|
|
2
2
|
export type { FixedFilter } from './components/ReportBuilder/FilterStrip';
|
|
3
3
|
export { BuilderBar, type BuilderBarProps, } from './components/ReportBuilder/BuilderBar';
|
|
4
|
-
export type { BuilderControls, BuilderControlsHandler, } from './components/ReportBuilder/builderControls';
|
|
4
|
+
export type { ArrangeActions, BuilderControls, BuilderControlsHandler, } from './components/ReportBuilder/builderControls';
|
|
5
5
|
export type { RestoredDraft } from './components/ReportBuilder/useReportDraft';
|
|
6
6
|
export type { BuilderGiven, ReportBuilderProps, } from './components/ReportBuilder/ReportBuilder';
|
|
7
7
|
export { ReportEditor, type ReportEditorProps, type TextSourceOptions, } from './components/ReportBuilder/ReportEditor';
|
package/dist/client/api.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
|
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";
|
|
@@ -1663,7 +1675,7 @@ export interface Package {
|
|
|
1663
1675
|
*/
|
|
1664
1676
|
'exploresWarnings'?: Array<string>;
|
|
1665
1677
|
/**
|
|
1666
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. These codes are `error` and fail `/compile`: `notebook-
|
|
1678
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. These codes are `error` and fail `/compile`: `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write), `report-cells-removed` (a linear tag that lists no `tiles`, the retired `run:` cell format, so the file is not a report; the fix is to list its tiles in `tiles=[…]`) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1667
1679
|
*/
|
|
1668
1680
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1669
1681
|
/**
|
|
@@ -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
|
|
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,
|
|
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
|
|
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";
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
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;
|
package/dist/client/index.es.js
CHANGED
|
@@ -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-
|
|
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,26 @@ 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
|
+
/** A query tile that draws no chart (value cards, a table) goes down to two rows. */
|
|
44
|
+
export declare const MIN_VALUE_TILE_ROWS = 2;
|
|
45
|
+
export declare const MIN_TEXT_TILE_ROWS = 1;
|
|
46
|
+
export declare const MAX_TILE_ROWS = 16;
|
|
47
|
+
/**
|
|
48
|
+
* A tile `rows` grid rows tall, in px: the rows and the gaps between them, so
|
|
49
|
+
* a tile placed on explicit rows later lands on exactly this height.
|
|
50
|
+
*/
|
|
51
|
+
export declare const tileHeightPx: (rows: number) => number;
|
|
52
|
+
/** The rows a tile `px` tall is closest to, held to what the builder offers. */
|
|
53
|
+
export declare const rowsForHeight: (px: number, min?: number) => number;
|
|
34
54
|
/** Narrowest a tile that sets no `colspan` is drawn, by the reader and the builder alike. */
|
|
35
55
|
export declare const MIN_TILE_PX = 240;
|
|
36
56
|
/**
|
|
@@ -52,7 +72,35 @@ export declare function defaultTileSpan(columns: number, containerPx: number, mi
|
|
|
52
72
|
export interface GridTile {
|
|
53
73
|
colspan?: number;
|
|
54
74
|
break?: boolean;
|
|
75
|
+
/** `rowspan=N` on its entry: the grid rows it is tall. Absent, the tile is as tall as its row. */
|
|
76
|
+
rowspan?: number;
|
|
77
|
+
/** `row=N` and `col=N` on its entry: where it sits, which makes the report placed. */
|
|
78
|
+
row?: number;
|
|
79
|
+
col?: number;
|
|
55
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Rows a tile with no `rowspan` takes on a placed report, whose rows are
|
|
83
|
+
* fixed tracks: about the height it is drawn at unplaced. Kept equal to the
|
|
84
|
+
* server's `PLACED_DEFAULT_ROWSPAN`, whose overlap lint counts these rows.
|
|
85
|
+
*/
|
|
86
|
+
export declare const PLACED_DEFAULT_ROWSPAN: {
|
|
87
|
+
readonly query: 5;
|
|
88
|
+
readonly text: 2;
|
|
89
|
+
};
|
|
90
|
+
/** Whether a report is placed: any tile says which row it sits in. */
|
|
91
|
+
export declare const isPlaced: (tiles: readonly GridTile[]) => boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Where one tile sits on a placed report. A tile with no `row` or `col` is
|
|
94
|
+
* left to the grid's own auto-placement, which puts it in the first free cell
|
|
95
|
+
* after the placed ones; a `col` too far right for its span is pulled in so
|
|
96
|
+
* the tile stays on the grid, as a colspan wider than the grid is clamped.
|
|
97
|
+
*/
|
|
98
|
+
export declare function placedArea(tile: GridTile, columns: number, rows: number): {
|
|
99
|
+
gridRow: string;
|
|
100
|
+
gridColumn: string;
|
|
101
|
+
};
|
|
102
|
+
/** A placed tile's place in reading order, top to bottom and then left to right: its order when the grid is one column. */
|
|
103
|
+
export declare const readingOrder: (tile: GridTile) => number;
|
|
56
104
|
/**
|
|
57
105
|
* The composite dashboard's grid: the column track, and each tile's place on
|
|
58
106
|
* it.
|
|
@@ -76,7 +124,7 @@ export interface GridTile {
|
|
|
76
124
|
* builder wraps one in its selection outline. Anything this component rendered
|
|
77
125
|
* on their behalf would be a third opinion about what a tile looks like.
|
|
78
126
|
*/
|
|
79
|
-
export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, minTilePx, rowGapPx, }: {
|
|
127
|
+
export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, minTilePx, rowGapPx, defaultRowspan, }: {
|
|
80
128
|
tiles: readonly T[];
|
|
81
129
|
/** Track count — `# dashboard { columns=N }`, or {@link DEFAULT_COLUMNS}. */
|
|
82
130
|
columns: number;
|
|
@@ -95,4 +143,6 @@ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyO
|
|
|
95
143
|
minTilePx?: number;
|
|
96
144
|
/** The space between rows. */
|
|
97
145
|
rowGapPx?: number;
|
|
146
|
+
/** Rows a tile with no `rowspan` takes on a placed report; by default its kind's {@link PLACED_DEFAULT_ROWSPAN}. */
|
|
147
|
+
defaultRowspan?: (tile: T) => number;
|
|
98
148
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,7 +38,12 @@ 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:
|
|
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;
|
|
45
|
+
/** The tile has a set height (rows of its own): a result taller than it is drawn compact. */
|
|
46
|
+
fixedHeight?: boolean;
|
|
42
47
|
maxResultSize?: number;
|
|
43
48
|
/** Cell clicks and their affordance, for the dashboard's `# drill`. */
|
|
44
49
|
drill?: DrillBinding;
|
|
@@ -87,4 +92,4 @@ export declare function tileTitle(tile: string): string;
|
|
|
87
92
|
* tile: the broken one shows its error in place and the rest of the grid still
|
|
88
93
|
* renders, rather than one failure blanking the page.
|
|
89
94
|
*/
|
|
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;
|
|
95
|
+
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, tableMaxHeight, fixedHeight, 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
|
-
|
|
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
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
|
|
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
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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;
|
|
@@ -19,6 +29,13 @@ interface ResultContainerProps {
|
|
|
19
29
|
* tile's card is. Leave it off wherever the result sets the surface's height.
|
|
20
30
|
*/
|
|
21
31
|
fill?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The cell's height is set (a tile given rows), not its content's: only
|
|
34
|
+
* then is a result taller than it drawn compact to fit. A cell that grows
|
|
35
|
+
* with its content is briefly shorter than a result that just grew, and
|
|
36
|
+
* compact there would be a mistake that never undoes itself.
|
|
37
|
+
*/
|
|
38
|
+
compactToFit?: boolean;
|
|
22
39
|
}
|
|
23
|
-
export default function ResultContainer({ result, maxHeight, maxResultSize, renderLogs, drill, fill, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export default function ResultContainer({ result, maxHeight, tableMaxHeight, firstPaintHeight, maxResultSize, renderLogs, drill, fill, compactToFit, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
24
41
|
export {};
|
|
@@ -7,10 +7,16 @@ 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. */
|
|
13
17
|
fill?: boolean;
|
|
18
|
+
/** The cell has a set height: a result taller than it is drawn compact (see `ResultContainer`). */
|
|
19
|
+
compactToFit?: boolean;
|
|
14
20
|
/**
|
|
15
21
|
* Rewrites the result before it is rendered — a dashboard tile promotes a
|
|
16
22
|
* one-row measure result to KPI cards this way. Memoized on the result
|
|
@@ -29,4 +35,4 @@ export interface ResultPanelProps {
|
|
|
29
35
|
* survive a bad tile: the broken one shows its error in place and the rest of
|
|
30
36
|
* the grid still renders.
|
|
31
37
|
*/
|
|
32
|
-
export declare function ResultPanel({ state, context, loadingText, maxHeight, maxResultSize, drill, fill, transform, }: ResultPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function ResultPanel({ state, context, loadingText, maxHeight, tableMaxHeight, firstPaintHeight, maxResultSize, drill, fill, compactToFit, 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
|
-
/**
|
|
171
|
-
|
|
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,25 @@ 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
|
|
183
|
-
*
|
|
184
|
-
*
|
|
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;
|
|
228
|
+
/**
|
|
229
|
+
* On a result's box while it is drawn compact to fit a cell shorter than it
|
|
230
|
+
* (`ResultContainer` sets it); the renderer overrides in `RenderedResult` read it.
|
|
231
|
+
*/
|
|
232
|
+
export declare const TIGHT_ATTR = "data-publisher-tight";
|