@surfaces-ui/components 0.0.0-stage → 0.2.0
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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +48 -2
- package/dist/appComponents.d.ts +86 -0
- package/dist/appComponents.js +555 -0
- package/dist/appComponents.js.map +1 -0
- package/dist/chart/BulletGraph.d.ts +44 -0
- package/dist/chart/BulletGraph.js +40 -0
- package/dist/chart/BulletGraph.js.map +1 -0
- package/dist/chart/Chart.d.ts +177 -0
- package/dist/chart/Chart.js +279 -0
- package/dist/chart/Chart.js.map +1 -0
- package/dist/chart/Sparkline.d.ts +35 -0
- package/dist/chart/Sparkline.js +37 -0
- package/dist/chart/Sparkline.js.map +1 -0
- package/dist/chart/advice.d.ts +28 -0
- package/dist/chart/advice.js +39 -0
- package/dist/chart/advice.js.map +1 -0
- package/dist/chart/option.d.ts +90 -0
- package/dist/chart/option.js +252 -0
- package/dist/chart/option.js.map +1 -0
- package/dist/controls/Combobox.d.ts +39 -0
- package/dist/controls/Combobox.js +75 -0
- package/dist/controls/Combobox.js.map +1 -0
- package/dist/controls/ConfirmDialog.d.ts +35 -0
- package/dist/controls/ConfirmDialog.js +84 -0
- package/dist/controls/ConfirmDialog.js.map +1 -0
- package/dist/controls/ItemControls.d.ts +115 -0
- package/dist/controls/ItemControls.js +109 -0
- package/dist/controls/ItemControls.js.map +1 -0
- package/dist/controls/Popover.d.ts +31 -0
- package/dist/controls/Popover.js +114 -0
- package/dist/controls/Popover.js.map +1 -0
- package/dist/controls/ResizeHandle.d.ts +48 -0
- package/dist/controls/ResizeHandle.js +91 -0
- package/dist/controls/ResizeHandle.js.map +1 -0
- package/dist/controls/SegmentedControl.d.ts +27 -0
- package/dist/controls/SegmentedControl.js +17 -0
- package/dist/controls/SegmentedControl.js.map +1 -0
- package/dist/controls/StatusBadge.d.ts +17 -0
- package/dist/controls/StatusBadge.js +10 -0
- package/dist/controls/StatusBadge.js.map +1 -0
- package/dist/controls/context.d.ts +17 -0
- package/dist/controls/context.js +2 -0
- package/dist/controls/context.js.map +1 -0
- package/dist/controls/placement.d.ts +43 -0
- package/dist/controls/placement.js +19 -0
- package/dist/controls/placement.js.map +1 -0
- package/dist/controls/resize.d.ts +23 -0
- package/dist/controls/resize.js +49 -0
- package/dist/controls/resize.js.map +1 -0
- package/dist/data/DataSourceProvider.d.ts +11 -0
- package/dist/data/DataSourceProvider.js +21 -0
- package/dist/data/DataSourceProvider.js.map +1 -0
- package/dist/data/export.d.ts +33 -0
- package/dist/data/export.js +77 -0
- package/dist/data/export.js.map +1 -0
- package/dist/data/format.d.ts +44 -0
- package/dist/data/format.js +127 -0
- package/dist/data/format.js.map +1 -0
- package/dist/data/messages.d.ts +13 -0
- package/dist/data/messages.js +2 -0
- package/dist/data/messages.js.map +1 -0
- package/dist/data/useRowWindow.d.ts +70 -0
- package/dist/data/useRowWindow.js +175 -0
- package/dist/data/useRowWindow.js.map +1 -0
- package/dist/discovery/AskData.d.ts +22 -0
- package/dist/discovery/AskData.js +48 -0
- package/dist/discovery/AskData.js.map +1 -0
- package/dist/discovery/ContextBuilder.d.ts +49 -0
- package/dist/discovery/ContextBuilder.js +167 -0
- package/dist/discovery/ContextBuilder.js.map +1 -0
- package/dist/discovery/DataSearch.d.ts +27 -0
- package/dist/discovery/DataSearch.js +73 -0
- package/dist/discovery/DataSearch.js.map +1 -0
- package/dist/discovery/ObjectDetail.d.ts +38 -0
- package/dist/discovery/ObjectDetail.js +129 -0
- package/dist/discovery/ObjectDetail.js.map +1 -0
- package/dist/discovery/RelationshipGraph.d.ts +19 -0
- package/dist/discovery/RelationshipGraph.js +64 -0
- package/dist/discovery/RelationshipGraph.js.map +1 -0
- package/dist/discovery/shared.d.ts +38 -0
- package/dist/discovery/shared.js +64 -0
- package/dist/discovery/shared.js.map +1 -0
- package/dist/editor/SqlEditor.d.ts +41 -0
- package/dist/editor/SqlEditor.js +181 -0
- package/dist/editor/SqlEditor.js.map +1 -0
- package/dist/explore/Explorer.d.ts +110 -0
- package/dist/explore/Explorer.js +471 -0
- package/dist/explore/Explorer.js.map +1 -0
- package/dist/explore/ModelLineage.d.ts +22 -0
- package/dist/explore/ModelLineage.js +70 -0
- package/dist/explore/ModelLineage.js.map +1 -0
- package/dist/explore/ReportBuilder.d.ts +39 -0
- package/dist/explore/ReportBuilder.js +98 -0
- package/dist/explore/ReportBuilder.js.map +1 -0
- package/dist/explore/SemanticModelEditor.d.ts +60 -0
- package/dist/explore/SemanticModelEditor.js +220 -0
- package/dist/explore/SemanticModelEditor.js.map +1 -0
- package/dist/explore/SemanticRows.d.ts +42 -0
- package/dist/explore/SemanticRows.js +117 -0
- package/dist/explore/SemanticRows.js.map +1 -0
- package/dist/explore/SemanticsProvider.d.ts +31 -0
- package/dist/explore/SemanticsProvider.js +72 -0
- package/dist/explore/SemanticsProvider.js.map +1 -0
- package/dist/explore/model.d.ts +151 -0
- package/dist/explore/model.js +344 -0
- package/dist/explore/model.js.map +1 -0
- package/dist/explore/report.d.ts +60 -0
- package/dist/explore/report.js +92 -0
- package/dist/explore/report.js.map +1 -0
- package/dist/explore/semantic-proposal.d.ts +44 -0
- package/dist/explore/semantic-proposal.js +67 -0
- package/dist/explore/semantic-proposal.js.map +1 -0
- package/dist/explore/semantic.d.ts +44 -0
- package/dist/explore/semantic.js +154 -0
- package/dist/explore/semantic.js.map +1 -0
- package/dist/files/FileBrowser.d.ts +42 -0
- package/dist/files/FileBrowser.js +314 -0
- package/dist/files/FileBrowser.js.map +1 -0
- package/dist/files/files.d.ts +65 -0
- package/dist/files/files.js +165 -0
- package/dist/files/files.js.map +1 -0
- package/dist/filter/FilterBar.d.ts +49 -0
- package/dist/filter/FilterBar.js +153 -0
- package/dist/filter/FilterBar.js.map +1 -0
- package/dist/filter/QueryFilters.d.ts +25 -0
- package/dist/filter/QueryFilters.js +58 -0
- package/dist/filter/QueryFilters.js.map +1 -0
- package/dist/form/Form.d.ts +76 -0
- package/dist/form/Form.js +131 -0
- package/dist/form/Form.js.map +1 -0
- package/dist/graph/NodeGraph.d.ts +30 -0
- package/dist/graph/NodeGraph.js +86 -0
- package/dist/graph/NodeGraph.js.map +1 -0
- package/dist/graph/model.d.ts +68 -0
- package/dist/graph/model.js +122 -0
- package/dist/graph/model.js.map +1 -0
- package/dist/grid/DataGrid.d.ts +98 -0
- package/dist/grid/DataGrid.js +399 -0
- package/dist/grid/DataGrid.js.map +1 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/locale/SurfacesText.d.ts +17 -0
- package/dist/locale/SurfacesText.js +17 -0
- package/dist/locale/SurfacesText.js.map +1 -0
- package/dist/locale/locale.d.ts +305 -0
- package/dist/locale/locale.js +359 -0
- package/dist/locale/locale.js.map +1 -0
- package/dist/menu/ContextMenu.d.ts +31 -0
- package/dist/menu/ContextMenu.js +95 -0
- package/dist/menu/ContextMenu.js.map +1 -0
- package/dist/metric/Metric.d.ts +33 -0
- package/dist/metric/Metric.js +63 -0
- package/dist/metric/Metric.js.map +1 -0
- package/dist/metric/useMeasure.d.ts +23 -0
- package/dist/metric/useMeasure.js +43 -0
- package/dist/metric/useMeasure.js.map +1 -0
- package/dist/model/ModelDiagram.d.ts +142 -0
- package/dist/model/ModelDiagram.js +699 -0
- package/dist/model/ModelDiagram.js.map +1 -0
- package/dist/panzoom/usePanZoom.d.ts +117 -0
- package/dist/panzoom/usePanZoom.js +313 -0
- package/dist/panzoom/usePanZoom.js.map +1 -0
- package/dist/pipeline/DatasetReview.d.ts +48 -0
- package/dist/pipeline/DatasetReview.js +157 -0
- package/dist/pipeline/DatasetReview.js.map +1 -0
- package/dist/pipeline/IngestWizard.d.ts +51 -0
- package/dist/pipeline/IngestWizard.js +79 -0
- package/dist/pipeline/IngestWizard.js.map +1 -0
- package/dist/pipeline/Pipeline.d.ts +171 -0
- package/dist/pipeline/Pipeline.js +203 -0
- package/dist/pipeline/Pipeline.js.map +1 -0
- package/dist/pipeline/PipelineView.d.ts +63 -0
- package/dist/pipeline/PipelineView.js +239 -0
- package/dist/pipeline/PipelineView.js.map +1 -0
- package/dist/pivot/PivotTable.d.ts +94 -0
- package/dist/pivot/PivotTable.js +171 -0
- package/dist/pivot/PivotTable.js.map +1 -0
- package/dist/plan/QueryPlan.d.ts +29 -0
- package/dist/plan/QueryPlan.js +79 -0
- package/dist/plan/QueryPlan.js.map +1 -0
- package/dist/result/QueryResult.d.ts +51 -0
- package/dist/result/QueryResult.js +255 -0
- package/dist/result/QueryResult.js.map +1 -0
- package/dist/review/ActionReceipt.d.ts +52 -0
- package/dist/review/ActionReceipt.js +32 -0
- package/dist/review/ActionReceipt.js.map +1 -0
- package/dist/review/PiiReview.d.ts +37 -0
- package/dist/review/PiiReview.js +29 -0
- package/dist/review/PiiReview.js.map +1 -0
- package/dist/review/PlanReview.d.ts +42 -0
- package/dist/review/PlanReview.js +37 -0
- package/dist/review/PlanReview.js.map +1 -0
- package/dist/review/StepFlow.d.ts +25 -0
- package/dist/review/StepFlow.js +21 -0
- package/dist/review/StepFlow.js.map +1 -0
- package/dist/review/pii.d.ts +21 -0
- package/dist/review/pii.js +67 -0
- package/dist/review/pii.js.map +1 -0
- package/dist/rows/RowList.d.ts +41 -0
- package/dist/rows/RowList.js +71 -0
- package/dist/rows/RowList.js.map +1 -0
- package/dist/schema/ObjectBrowser.d.ts +78 -0
- package/dist/schema/ObjectBrowser.js +467 -0
- package/dist/schema/ObjectBrowser.js.map +1 -0
- package/dist/schema/ObjectInfo.d.ts +25 -0
- package/dist/schema/ObjectInfo.js +69 -0
- package/dist/schema/ObjectInfo.js.map +1 -0
- package/dist/schema/SchemaExplorer.d.ts +32 -0
- package/dist/schema/SchemaExplorer.js +175 -0
- package/dist/schema/SchemaExplorer.js.map +1 -0
- package/dist/schema/refs.d.ts +32 -0
- package/dist/schema/refs.js +65 -0
- package/dist/schema/refs.js.map +1 -0
- package/dist/site/Site.d.ts +191 -0
- package/dist/site/Site.js +138 -0
- package/dist/site/Site.js.map +1 -0
- package/dist/source/ConnectionBuilder.d.ts +54 -0
- package/dist/source/ConnectionBuilder.js +115 -0
- package/dist/source/ConnectionBuilder.js.map +1 -0
- package/dist/source/SourceList.d.ts +17 -0
- package/dist/source/SourceList.js +71 -0
- package/dist/source/SourceList.js.map +1 -0
- package/dist/styles.css +9882 -0
- package/dist/styles.layer.css +9886 -0
- package/dist/table/DataTable.d.ts +72 -0
- package/dist/table/DataTable.js +68 -0
- package/dist/table/DataTable.js.map +1 -0
- package/dist/table/Pagination.d.ts +20 -0
- package/dist/table/Pagination.js +16 -0
- package/dist/table/Pagination.js.map +1 -0
- package/dist/table/SelectionBar.d.ts +43 -0
- package/dist/table/SelectionBar.js +18 -0
- package/dist/table/SelectionBar.js.map +1 -0
- package/dist/text/Markdown.d.ts +71 -0
- package/dist/text/Markdown.js +187 -0
- package/dist/text/Markdown.js.map +1 -0
- package/dist/text/highlight.d.ts +23 -0
- package/dist/text/highlight.js +196 -0
- package/dist/text/highlight.js.map +1 -0
- package/dist/theme/ThemePicker.d.ts +16 -0
- package/dist/theme/ThemePicker.js +49 -0
- package/dist/theme/ThemePicker.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +43 -0
- package/dist/theme/ThemeProvider.js +107 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/workspace/NavBar.d.ts +23 -0
- package/dist/workspace/NavBar.js +171 -0
- package/dist/workspace/NavBar.js.map +1 -0
- package/dist/workspace/SideNav.d.ts +61 -0
- package/dist/workspace/SideNav.js +149 -0
- package/dist/workspace/SideNav.js.map +1 -0
- package/dist/workspace/Workspace.d.ts +50 -0
- package/dist/workspace/Workspace.js +243 -0
- package/dist/workspace/Workspace.js.map +1 -0
- package/dist/workspace/icons.d.ts +34 -0
- package/dist/workspace/icons.js +37 -0
- package/dist/workspace/icons.js.map +1 -0
- package/dist/workspace/layout.d.ts +74 -0
- package/dist/workspace/layout.js +276 -0
- package/dist/workspace/layout.js.map +1 -0
- package/package.json +85 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appComponents.js","sourceRoot":"","sources":["../src/appComponents.ts"],"names":[],"mappings":"AAuEA,6GAA6G;AAC7G,MAAM,UAAU,oBAAoB;IAClC,OAAO,CAAC,GAQP,EAAmB,EAAE,CAAC,GAAsB,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAC7C,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAElG,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,EAAoB,CAAC;IACrE,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,wQAAwQ;IAC1Q,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE;SAC7G;KACF;IACD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,uEAAuE,EAAE,CAAC;IAC7I,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,EAA0B,CAAC;IACjF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,6NAA6N;IAC/N,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;gBAC3C,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C,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjH,CAAC","sourcesContent":["import type { CertificationBadge } from \"./discovery/shared.js\";\nimport type { ConnectionBuilderProps } from \"./source/ConnectionBuilder.js\";\nimport type { ItemControlsProps } from \"./controls/ItemControls.js\";\nimport type { ResizeHandleProps } from \"./controls/ResizeHandle.js\";\nimport type { SegmentedControlProps } from \"./controls/SegmentedControl.js\";\nimport type { ComboboxProps } from \"./controls/Combobox.js\";\nimport type { ConfirmDialogProps } from \"./controls/ConfirmDialog.js\";\nimport type { PopoverProps } from \"./controls/Popover.js\";\nimport type { StatusBadgeProps } from \"./controls/StatusBadge.js\";\nimport type { DataTableProps } from \"./table/DataTable.js\";\nimport type { PaginationProps } from \"./table/Pagination.js\";\nimport type { SelectionBarProps } from \"./table/SelectionBar.js\";\nimport type { ModelLineageProps } from \"./explore/ModelLineage.js\";\nimport type { ObjectInfoProps } from \"./schema/ObjectInfo.js\";\nimport type { ChecksPanelProps } from \"./pipeline/Pipeline.js\";\nimport type { ThemePickerProps } from \"./theme/ThemePicker.js\";\nimport type { NavBarProps } from \"./workspace/NavBar.js\";\n\n/*\n * Components an app places itself, as opposed to the catalog's, which an\n * agent draws. Each is described once here, as data: what it is for, its\n * props that are plain data (as JSON Schema), the props that take code (a\n * backend, a store, a callback the host must write) and an example. The\n * playground draws a page for each from this, and `pnpm docs:gen` writes\n * docs/components. `describeAppComponent<Props>()` checks every prop named\n * here against the component's own props type, so neither can name a prop\n * the component does not have.\n *\n * Nothing here imports React or a component, so a script can read it.\n */\n\n/** One prop that is plain data, as JSON Schema. */\nexport interface PropSchema {\n type?: \"string\" | \"number\" | \"integer\" | \"boolean\" | \"object\" | \"array\";\n description?: string;\n enum?: readonly unknown[];\n items?: PropSchema;\n properties?: Record<string, PropSchema>;\n required?: string[];\n minimum?: number;\n maximum?: number;\n default?: unknown;\n}\n\n/** A prop that takes code the host writes: switched on or off on the component's page, where the playground fills it with a working demo. */\nexport interface AppComponentPart {\n prop: string;\n label: string;\n description: string;\n /** Required by the component, so always on. */\n required?: boolean;\n /** On when the page opens. */\n on?: boolean;\n}\n\nexport interface AppComponentDoc {\n name: string;\n /** The package it is imported from. */\n from: string;\n description: string;\n /** Its props that are plain data. */\n props: { type: \"object\"; properties: Record<string, PropSchema>; required?: string[] };\n parts: AppComponentPart[];\n /** Callbacks a host passes to hear what happens. */\n callbacks: { prop: string; description: string }[];\n /** Plain-data props to start from. */\n example: Record<string, unknown>;\n}\n\ntype Keys<P> = Extract<keyof P, string>;\n\n/** Checks a description against the component's props type `P`: every prop it names must be one of `P`'s. */\nexport function describeAppComponent<P>() {\n return (doc: {\n name: string;\n from: string;\n description: string;\n props: { type: \"object\"; properties: Partial<Record<Keys<P>, PropSchema>>; required?: Keys<P>[] };\n parts: (AppComponentPart & { prop: Keys<P> })[];\n callbacks: { prop: Keys<P>; description: string }[];\n example: Partial<Record<Keys<P>, unknown>>;\n }): AppComponentDoc => doc as AppComponentDoc;\n}\n\nconst COMPONENTS = \"@surfaces-ui/components\";\nconst PRESET_HIDE = [\"mode\", \"presets\", \"accent\", \"charts\", \"radius\", \"font\", \"density\"] as const;\n\nexport const themePickerDoc = describeAppComponent<ThemePickerProps>()({\n name: \"ThemePicker\",\n from: COMPONENTS,\n description:\n \"Lets a person choose how everything looks: a preset, light or dark, the accent, chart colours, corner radius, font and density. It changes the theme held by the `ThemeProvider` above it, which keeps the choice. Hide the controls a product does not want to offer.\",\n props: {\n type: \"object\",\n properties: {\n hide: { type: \"array\", description: \"Controls to leave out.\", items: { type: \"string\", enum: PRESET_HIDE } },\n },\n },\n parts: [{ prop: \"presets\", label: \"Your own presets\", description: \"Themes offered as one-click choices in place of the built-in presets.\" }],\n callbacks: [],\n example: { hide: [] },\n});\n\nexport const connectionBuilderDoc = describeAppComponent<ConnectionBuilderProps>()({\n name: \"ConnectionBuilder\",\n from: COMPONENTS,\n description:\n \"Sets up Parquet, Delta or Iceberg data on S3, GCS, Azure, https or disk, and writes the configuration for the server with the names of the environment variables to set. It holds the name of a secret, never a credential.\",\n props: {\n type: \"object\",\n properties: {\n value: {\n type: \"object\",\n description: \"The connection being set up.\",\n properties: {\n sourceId: { type: \"string\", description: \"The source's id.\" },\n storage: { type: \"string\", enum: [\"s3\", \"gcs\", \"azure\", \"http\", \"local\"], description: \"Where the files are.\" },\n scope: { type: \"string\", description: \"The bucket or prefix the connection covers, e.g. s3://acme-lake/sales.\" },\n credentials: { type: \"string\", enum: [\"secret\", \"ambient\", \"public\"], description: \"A named secret, the machine's own role, or public data with none.\" },\n secret: { type: \"string\", description: \"The name of the server-side secret, e.g. LAKE.\" },\n region: { type: \"string\" },\n endpoint: { type: \"string\", description: \"For S3-compatible stores such as MinIO.\" },\n },\n },\n },\n required: [\"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"Every change to the connection, as the whole draft. Required: the host holds the draft.\" }],\n example: { value: { sourceId: \"lake\", storage: \"s3\", scope: \"s3://acme-lake/sales\", credentials: \"secret\", secret: \"LAKE\", region: \"eu-west-1\", endpoint: \"\", tables: [{ name: \"orders\", format: \"delta\", path: \"s3://acme-lake/sales/orders\" }], catalogUri: \"\", catalogWarehouse: \"\" } },\n});\n\nexport const modelLineageDoc = describeAppComponent<ModelLineageProps>()({\n name: \"ModelLineage\",\n from: COMPONENTS,\n description:\n \"Where a semantic model's rows come from when a pipeline builds them: the dataset, when it was last built, the latest run's checks, whether its key was checked and what it reads. One line over an explorer or a report, or a panel. Display only: it queries nothing.\",\n props: {\n type: \"object\",\n properties: {\n model: {\n type: \"object\",\n description: \"A model whose rows are a pipeline's dataset (`dataset`); anything else draws nothing.\",\n properties: {\n sourceId: { type: \"string\" },\n sql: { type: \"string\" },\n grain: { type: \"string\" },\n primaryKey: { type: \"array\", items: { type: \"string\" } },\n dataset: { type: \"object\", properties: { pipelineId: { type: \"string\" }, dataset: { type: \"string\" } } },\n },\n },\n compact: { type: \"boolean\", description: \"One line, for above an explorer or a report.\" },\n },\n required: [\"model\"],\n },\n parts: [{ prop: \"pipelines\", label: \"Pipelines backend\", description: \"Where the dataset's definition and runs come from. Without it (or a PipelinesProvider) only the dataset's name is shown.\", on: true }],\n callbacks: [\n { prop: \"onUseDataset\", description: \"Offered when the model's grain or key differs from the dataset's.\" },\n { prop: \"onOpenDataset\", description: \"Opens the dataset in the host's pipeline view.\" },\n ],\n example: { compact: false },\n});\n\nexport const checksPanelDoc = describeAppComponent<ChecksPanelProps>()({\n name: \"ChecksPanel\",\n from: COMPONENTS,\n description: \"A dataset's checks (unique, not null, relationships, accepted values, row count) with their latest results, failures first. Display only: the counts come from the engine.\",\n props: {\n type: \"object\",\n properties: {\n checks: {\n type: \"array\",\n description: \"Each check with its latest outcome.\",\n items: { type: \"object\", properties: { name: { type: \"string\" }, description: { type: \"string\", description: \"The check in words.\" }, severity: { type: \"string\", enum: [\"fail\", \"warn\"] }, failedRecords: { type: \"integer\", description: \"Rows that break it; absent when not run since it was added.\" }, summary: { type: \"string\" } }, required: [\"name\", \"description\", \"severity\"] },\n },\n },\n required: [\"checks\"],\n },\n parts: [],\n callbacks: [{ prop: \"onOpenFailing\", description: \"Look at what breaks a check. Nothing runs unless the host runs it.\" }],\n example: {\n checks: [\n { name: \"order_id_unique\", description: \"order_id never repeats\", severity: \"fail\", failedRecords: 0, fromKey: true },\n { name: \"status_values\", description: \"status is one of placed, shipped, returned\", severity: \"warn\", failedRecords: 12, summary: \"12 rows have another status.\" },\n ],\n },\n});\n\nexport const objectInfoDoc = describeAppComponent<ObjectInfoProps>()({\n name: \"ObjectInfo\",\n from: COMPONENTS,\n description: \"What the backend knows about a database, schema or table: its kind, format, size, columns and keys. Names only, never values.\",\n props: {\n type: \"object\",\n properties: {\n sourceId: { type: \"string\", description: \"The source to ask.\" },\n catalog: { type: \"string\", description: \"A catalog (database).\" },\n schema: { type: \"string\" },\n table: { type: \"string\", description: \"With a table, it describes the table; without, the schema or catalog.\" },\n },\n required: [\"sourceId\"],\n },\n parts: [{ prop: \"dataSource\", label: \"Its own data source\", description: \"Left out, the one from `DataSourceProvider`.\" }],\n callbacks: [{ prop: \"onClose\", description: \"Shows a close button.\" }],\n example: {},\n});\n\nexport const certificationBadgeDoc = describeAppComponent<Parameters<typeof CertificationBadge>[0]>()({\n name: \"CertificationBadge\",\n from: COMPONENTS,\n description: \"Marks certified or deprecated data wherever an object is shown, with a symbol and words as well as colour. Who certified it, when and why show on hover and focus.\",\n props: {\n type: \"object\",\n properties: {\n certification: {\n type: \"object\",\n description: \"The verdict a person recorded with `setCertification`; none draws nothing.\",\n properties: {\n status: { type: \"integer\", enum: [1, 2], description: \"1 certified, 2 deprecated.\" },\n setBy: { type: \"string\" },\n setAt: { type: \"string\" },\n note: { type: \"string\" },\n },\n },\n },\n },\n parts: [],\n callbacks: [],\n example: { certification: { status: 1, setBy: \"Ada Lovelace\", setAt: \"2026-11-01T10:00:00Z\", note: \"Reconciled with finance.\" } },\n});\n\nexport const itemControlsDoc = describeAppComponent<ItemControlsProps>()({\n name: \"ItemControls\",\n from: COMPONENTS,\n description:\n \"The controls of one item (a tile, a framed component) as a row of icons: quiet until the item is pointed at or focused, each named at once in a tooltip, one tab stop with arrows between them. Build the shared actions with `standardControls(name, actions)` so their order, wording and icons are the same everywhere.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'Names the group: \"Refund rate by category controls\".' },\n show: { type: \"string\", enum: [\"hover\", \"always\"], description: \"Shown on hover and focus (and always on touch), or always.\" },\n quietable: { type: \"boolean\", description: \"Whether an outer layer of controls can hide these.\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"controls\", label: \"Controls\", description: \"The actions, from `standardControls`. On the page: change, wider, narrower, earlier, later, duplicate and remove.\", required: true }],\n callbacks: [],\n example: { label: \"Revenue by month controls\", show: \"always\" },\n});\n\nexport const navBarDoc = describeAppComponent<NavBarProps>()({\n name: \"NavBar\",\n from: COMPONENTS,\n description:\n \"Navigation across the top of a site, after Apple's: the sections on a glass bar that stays at the top, and beneath it the current section's name and its pages. Content scrolls under both and an edge appears once it does. On a narrow screen the sections fold into a menu that covers the screen as a dialog. It takes the same groups as `SideNav`, so a site can move between the two.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the navigation is for, for assistive technology: \"Surfaces UI\".' },\n groups: {\n type: \"array\",\n description: \"The sections, each with its pages. A section goes to its first page.\",\n items: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The section's name in the bar.\" },\n items: { type: \"array\", items: { type: \"object\", properties: { id: { type: \"string\" }, label: { type: \"string\" }, href: { type: \"string\" } }, required: [\"id\", \"label\"] } },\n },\n required: [\"items\"],\n },\n },\n current: { type: \"string\", description: \"The id of the page being shown.\" },\n },\n required: [\"label\", \"groups\"],\n },\n parts: [\n { prop: \"brand\", label: \"Brand\", description: \"A name or mark at the bar's start.\", on: true },\n { prop: \"actions\", label: \"Actions\", description: \"A status or a picker at the bar's end; it moves into the menu on a narrow screen.\" },\n ],\n callbacks: [{ prop: \"onSelect\", description: \"The id of the page a person chose.\" }],\n example: {\n label: \"Acme analytics\",\n current: \"revenue\",\n groups: [\n { label: \"Reports\", items: [{ id: \"revenue\", label: \"Revenue\" }, { id: \"refunds\", label: \"Refunds\" }, { id: \"stores\", label: \"Stores\" }] },\n { label: \"Data\", items: [{ id: \"tables\", label: \"Tables\" }, { id: \"models\", label: \"Models\" }] },\n { label: \"Settings\", items: [{ id: \"people\", label: \"People\" }] },\n ],\n },\n});\n\nexport const resizeHandleDoc = describeAppComponent<ResizeHandleProps>()({\n name: \"ResizeHandle\",\n from: COMPONENTS,\n description:\n \"A handle on the right or bottom edge of something, dragged to change its width or height: the same handle Arrange draws between a Grid's columns and under a component, for an app to place between two panes of its own. A focusable separator that says its value and bounds; dragged with pointer events, so a mouse, a pen and a finger all work; moved by the arrow keys (Shift for bigger steps), Home and End; put back by Enter or a double click. It holds no size of its own: the host keeps `value`, draws each change from `onChange` and keeps the size on `onChangeEnd`. Its parent must be positioned, since it sits on that parent's edge.\",\n props: {\n type: \"object\",\n properties: {\n edge: { type: \"string\", enum: [\"right\", \"bottom\"], description: '\"right\" sizes a width, dragged left and right; \"bottom\" a height, dragged up and down.' },\n value: { type: \"number\", description: \"The size it stands for, in any unit: pixels, a share, a percentage. Left out when no size is set yet.\" },\n min: { type: \"number\", description: \"The least it can be.\" },\n max: { type: \"number\", description: \"The most it can be.\" },\n snap: { type: \"number\", description: \"Values land on multiples of this (10 rounds to ten pixels).\" },\n step: { type: \"number\", description: \"How far an arrow key moves it; Shift moves five steps. A twentieth of the range by default.\" },\n unitPixels: { type: \"number\", description: \"How many pixels on screen one unit is: 1 for pixels, a pane's width for a share of it. A function of the handle is read when a drag starts.\" },\n label: { type: \"string\", description: 'What it resizes, for assistive technology: \"Resize the map and the list\".' },\n valueText: { type: \"string\", description: 'The value in words, when a number alone does not say it: \"40% and 60%\".' },\n always: { type: \"boolean\", description: \"Shown all the time, rather than when its parent is pointed at or it has focus (it always shows on touch).\" },\n },\n required: [\"edge\", \"label\"],\n },\n parts: [\n { prop: \"onReset\", label: \"Reset\", description: \"Enter or a double click puts the size back. On the page: back to half and half.\", on: true },\n { prop: \"startFrom\", label: \"Start from what is drawn\", description: \"Where a drag starts when no `value` is set, such as the height drawn now.\" },\n ],\n callbacks: [\n { prop: \"onChange\", description: \"Each new value while it is dragged, and after each key.\" },\n { prop: \"onChangeEnd\", description: \"When a drag ends (committed, or cancelled by Escape back where it started) and after each key: where to keep the size.\" },\n ],\n example: { edge: \"right\", value: 0.5, min: 0.25, max: 0.75, step: 0.05, label: \"Resize the map and the list\", valueText: \"50% and 50%\" },\n});\n\nexport const segmentedControlDoc = describeAppComponent<SegmentedControlProps>()({\n name: \"SegmentedControl\",\n from: COMPONENTS,\n description:\n \"A few equal choices of which exactly one holds, as one bar: build or view, chart or table, light or dark. It is the bar `ReportBuilder` switches modes with. A radio group, so it is one tab stop and the arrow keys move the choice; the chosen segment is one thumb that slides between the options. It holds no choice of its own: the host keeps `value` and sets it from `onChange`. Use it to switch what is shown in place, for two to eight short options; for actions use buttons, and for many or long options a select.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What is being chosen, for assistive technology: \"Mode\", \"Preview mode\".' },\n options: {\n type: \"array\",\n description: \"The choices, in order. They share the width equally.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What `onChange` reports.\" },\n label: { type: \"string\", description: \"The words on the segment.\" },\n disabled: { type: \"boolean\", description: \"Greyed and still reachable, for a choice that makes no sense right now.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n value: { type: \"string\", description: \"The chosen option's value.\" },\n fit: { type: \"string\", enum: [\"content\", \"fill\"], description: '\"content\" is as wide as its options need; \"fill\" takes its parent\\'s width.' },\n name: { type: \"string\", description: \"The radio group's name, when a form reads it. Made up otherwise.\" },\n },\n required: [\"label\", \"options\", \"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The value of the option a person chose.\" }],\n example: {\n label: \"Preview mode\",\n value: \"page\",\n fit: \"content\",\n options: [\n { value: \"page\", label: \"As the page\" },\n { value: \"light\", label: \"Light\" },\n { value: \"dark\", label: \"Dark\" },\n ],\n },\n});\n\nconst PEOPLE_EXAMPLE = [\n { id: \"u1\", name: \"Ana Admin\", email: \"ana@example.com\", status: \"On\", owns: 4, signedIn: \"Today\" },\n { id: \"u2\", name: \"Ben Brook\", email: \"ben@example.com\", status: \"Turned off\", owns: 0, signedIn: \"3 May\" },\n { id: \"u3\", name: \"Cleo Chen\", email: \"cleo@example.com\", status: \"On\", owns: 12, signedIn: \"Yesterday\" },\n { id: \"u4\", name: \"Dev Diaz\", email: \"dev@example.com\", status: \"On\", owns: 1, signedIn: \"Never\" },\n];\n\nexport const dataTableDoc = describeAppComponent<DataTableProps<Record<string, unknown>>>()({\n name: \"DataTable\",\n from: COMPONENTS,\n description:\n \"The rows an app holds, as a table: people, invitations, jobs, keys. Headings ask the host to sort; check boxes say which rows are chosen (with `SelectionBar` for what to do with them); each row can carry its everyday actions as `ItemControls` and a menu on a right click. It sorts, filters and pages nothing itself: the host asks its own server and hands over one page, with `Pagination` beneath. Columns marked `medium` or `wide` give way as the table, not the window, narrows. For the rows of a query use `DataGrid`, which asks the engine.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the rows are, for assistive technology: \"People\".' },\n columns: {\n type: \"array\",\n description: \"The columns, in order. A column's `cell` function draws it; without one the row's value under `id` is shown as text.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\", description: \"Tells columns apart, and names the sort the table reports.\" },\n label: { type: \"string\", description: \"The heading.\" },\n sortable: { type: \"boolean\", description: \"Whether a press on the heading asks the host to sort by it.\" },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: '\"end\" for numbers.' },\n show: { type: \"string\", enum: [\"always\", \"medium\", \"wide\"], description: \"From what width of the table the column is shown: always, 36rem, or 52rem.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n rows: { type: \"array\", description: \"One page of rows, already sorted and filtered by the host, shown in the order given.\", items: { type: \"object\" } },\n rowHeader: { type: \"string\", description: \"The column that names each row, drawn as its header. Defaults to the first.\" },\n sort: {\n type: \"object\",\n description: \"How the host has sorted the rows.\",\n properties: { column: { type: \"string\" }, desc: { type: \"boolean\" } },\n required: [\"column\", \"desc\"],\n },\n allSelected: { type: \"boolean\", description: \"Every row that matches is chosen, past this page too (see `SelectionBar`).\" },\n controlsShow: { type: \"string\", enum: [\"always\", \"hover\"], description: \"Whether a row's controls are always shown (the default) or on hover and focus.\" },\n loading: { type: \"boolean\", description: \"The rows are being fetched.\" },\n },\n required: [\"label\", \"columns\", \"rows\"],\n },\n parts: [\n { prop: \"rowKey\", label: \"Row key\", description: \"A function giving each row a value that tells it apart: an id.\", required: true },\n { prop: \"rowName\", label: \"Row name\", description: 'A function giving the row\\'s name, for its check box and controls: \"Select Ana Admin\". Defaults to the first column\\'s text.' },\n { prop: \"selected\", label: \"Selection\", description: \"The keys of the rows ticked, with `onSelectedChange`: adds a check box to each row and the heading.\", on: true },\n { prop: \"selectable\", label: \"Who can be chosen\", description: \"A function saying whether a row can be ticked: one that cannot shows no box.\" },\n { prop: \"rowControls\", label: \"Row controls\", description: \"A function giving a row's everyday actions, drawn with `ItemControls`.\", on: true },\n { prop: \"rowMenu\", label: \"Row menu\", description: \"A function giving a row's menu, opened by a right click, a long press or the Menu key.\" },\n { prop: \"rowState\", label: \"Row state\", description: 'A function giving a word put on the row as `data-state` for the host\\'s own styling: \"off\".' },\n { prop: \"empty\", label: \"When empty\", description: \"What to show in place of rows when there are none.\" },\n ],\n callbacks: [\n { prop: \"onSortChange\", description: \"The column and direction a person asked to sort by. Fetch the rows in that order and pass them back.\" },\n { prop: \"onSelectedChange\", description: \"The keys now ticked.\" },\n ],\n example: {\n label: \"People\",\n rowHeader: \"name\",\n sort: { column: \"name\", desc: false },\n columns: [\n { id: \"name\", label: \"Name\", sortable: true },\n { id: \"email\", label: \"Email\", sortable: true, show: \"medium\" },\n { id: \"status\", label: \"Status\" },\n { id: \"signedIn\", label: \"Last signed in\", show: \"wide\" },\n { id: \"owns\", label: \"Owns\", sortable: true, align: \"end\", show: \"wide\" },\n ],\n rows: PEOPLE_EXAMPLE,\n },\n});\n\nexport const selectionBarDoc = describeAppComponent<SelectionBarProps>()({\n name: \"SelectionBar\",\n from: COMPONENTS,\n description:\n \"What to do with the rows a person chose in a `DataTable`: how many, the actions, and Clear. When the whole page is ticked and more rows match, it offers to take every row that matches, so an action can reach rows on pages never opened; the host then acts on its search and filters, not on a list of keys. An action that takes something away comes last, after a gap. It runs nothing itself: ask first for anything hard to undo with `useConfirm`, and report what happened, and whom it left alone, with `ActionReceipt`. Nothing is drawn with nothing chosen.\",\n props: {\n type: \"object\",\n properties: {\n count: { type: \"integer\", minimum: 0, description: \"How many rows are chosen: those ticked, or all that match when `allMatching`.\" },\n actions: {\n type: \"array\",\n description: \"What can be done to them, in order; one with `danger` is moved last.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\" },\n label: { type: \"string\", description: 'The button\\'s words: \"Turn off\".' },\n danger: { type: \"boolean\", description: \"For an action that takes something away.\" },\n disabled: { type: \"boolean\" },\n expanded: { type: \"boolean\", description: \"For an action that opens a form below the bar: whether it is open.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n label: { type: \"string\", description: 'Names the bar for assistive technology. Defaults to \"With the selected rows\".' },\n pageSelected: { type: \"boolean\", description: \"Every row on this page is ticked.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows match in all, across every page.\" },\n allMatching: { type: \"boolean\", description: \"Every row that matches is chosen, not only those ticked.\" },\n busy: { type: \"boolean\", description: \"An action is running: every button waits.\" },\n },\n required: [\"count\", \"actions\"],\n },\n parts: [{ prop: \"children\", label: \"Form below\", description: \"Drawn under the actions: a form an action opened, such as who to hand the rows to.\" }],\n callbacks: [\n { prop: \"onClear\", description: \"Untick everything.\" },\n { prop: \"onAllMatchingChange\", description: \"True when a person chooses every row that matches; false to go back to this page. Without it nothing is offered past the page.\" },\n ],\n example: {\n count: 50,\n total: 126,\n pageSelected: true,\n actions: [\n { id: \"turn-off\", label: \"Turn off\", danger: true },\n { id: \"turn-on\", label: \"Turn back on\" },\n { id: \"sign-out\", label: \"Sign out everywhere\" },\n ],\n },\n});\n\nexport const paginationDoc = describeAppComponent<PaginationProps>()({\n name: \"Pagination\",\n from: COMPONENTS,\n description:\n 'Which rows are shown, \"51–100 of 126\", with Previous and Next, under a `DataTable` a host pages on its server. It holds no page of its own: the host keeps `offset` and fetches the page `onChange` asks for. Nothing is drawn when every row fits on one page.',\n props: {\n type: \"object\",\n properties: {\n offset: { type: \"integer\", minimum: 0, description: \"Where this page starts, counting from 0.\" },\n pageSize: { type: \"integer\", minimum: 1, description: \"How many rows a page holds.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows there are in all.\" },\n label: { type: \"string\", description: 'Names the navigation. Defaults to \"Pages\".' },\n busy: { type: \"boolean\", description: \"A page is being fetched.\" },\n },\n required: [\"offset\", \"pageSize\", \"total\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The offset of the page a person moved to.\" }],\n example: { offset: 50, pageSize: 50, total: 126 },\n});\n\nexport const confirmDialogDoc = describeAppComponent<ConfirmDialogProps>()({\n name: \"ConfirmDialog\",\n from: COMPONENTS,\n description:\n 'Asks a person to confirm one action before it runs, as a modal dialog: the page behind cannot be used, focus starts inside (on Cancel for something that takes away) and returns where it was, and Escape or a press outside cancels. Name the button for the action (\"Turn off\"), never \"OK\", and say what cannot be undone. From an event handler, `useConfirm()` gives `confirm({ title, body, confirmLabel, danger })`, which resolves true or false. For something that can be undone, prefer doing it and offering Undo with `ActionReceipt`.',\n props: {\n type: \"object\",\n properties: {\n open: { type: \"boolean\", description: \"Whether the dialog is showing.\" },\n title: { type: \"string\", description: 'The question: \"Turn off 5 accounts?\"' },\n confirmLabel: { type: \"string\", description: 'The button that goes ahead, named for what it does. Defaults to \"Confirm\".' },\n cancelLabel: { type: \"string\", description: 'Defaults to \"Cancel\".' },\n danger: { type: \"boolean\", description: \"For something that takes away or cannot be undone.\" },\n },\n required: [\"open\", \"title\"],\n },\n parts: [{ prop: \"body\", label: \"What will happen\", description: \"A sentence or two on what the action does and what cannot be undone.\", on: true }],\n callbacks: [\n { prop: \"onConfirm\", description: \"The person went ahead.\" },\n { prop: \"onCancel\", description: \"Cancel, Escape, or a press outside the dialog.\" },\n ],\n example: { open: false, title: \"Turn off 5 accounts?\", confirmLabel: \"Turn off\", danger: true },\n});\n\nexport const statusBadgeDoc = describeAppComponent<StatusBadgeProps>()({\n name: \"StatusBadge\",\n from: COMPONENTS,\n description:\n \"A short status beside the thing it describes: an account on or turned off, a job running or failed, an invitation waiting. Its words carry the meaning; the tone backs them up with a colour and a shape (a ring, a dot, a diamond, a square), so it reads the same without colour. For data that is certified or deprecated use `CertificationBadge`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'The status in a word or two: \"Turned off\".' },\n tone: { type: \"string\", enum: [\"neutral\", \"info\", \"success\", \"warning\", \"danger\"], description: \"How it should strike a person. Defaults to neutral.\" },\n description: { type: \"string\", description: 'A sentence more, shown on hover and read after the label: \"by Ana on 3 May\".' },\n },\n required: [\"label\"],\n },\n parts: [],\n callbacks: [],\n example: { label: \"Turned off\", tone: \"danger\", description: \"by Ana on 3 May\" },\n});\n\nexport const comboboxDoc = describeAppComponent<ComboboxProps>()({\n name: \"Combobox\",\n from: COMPONENTS,\n description:\n \"A text box that suggests as a person types: a person to hand work to, a table, a tag. Anything may be typed; a suggestion is a shortcut. The host searches (on its server, for a long list) and passes the matches back as `options`; the box filters nothing. The ARIA 1.2 combobox: Down and Up move through the suggestions with focus kept in the box, Enter chooses (and with none highlighted, leaves Enter to the form), Escape closes the list and then clears the box. How many suggestions there are is announced.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The field's name, shown above it.\" },\n value: { type: \"string\", description: \"The text in the box.\" },\n options: {\n type: \"array\",\n description: \"The suggestions for the text as it is now, best first.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What choosing it puts in the box: an email, an id.\" },\n label: { type: \"string\", description: \"The words shown for it: a name.\" },\n detail: { type: \"string\", description: \"A second line.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n loading: { type: \"boolean\", description: \"Suggestions are being fetched.\" },\n type: { type: \"string\", enum: [\"text\", \"email\", \"search\"], description: \"The input's type.\" },\n placeholder: { type: \"string\" },\n required: { type: \"boolean\" },\n disabled: { type: \"boolean\" },\n name: { type: \"string\", description: \"The input's name, when a form reads it.\" },\n help: { type: \"string\", description: \"A sentence under the field.\" },\n },\n required: [\"label\", \"value\", \"options\"],\n },\n parts: [],\n callbacks: [\n { prop: \"onChange\", description: \"Every change to the text, typed or chosen. Search with it.\" },\n { prop: \"onPick\", description: \"The suggestion a person chose.\" },\n ],\n example: {\n label: \"Hand their work to\",\n type: \"email\",\n value: \"\",\n placeholder: \"Their name or email\",\n options: [\n { value: \"ana@example.com\", label: \"Ana Admin\", detail: \"ana@example.com\" },\n { value: \"cleo@example.com\", label: \"Cleo Chen\", detail: \"cleo@example.com\" },\n ],\n },\n});\n\n/** Every app component of `@surfaces-ui/components`. */\nexport const popoverDoc = describeAppComponent<PopoverProps>()({\n name: \"Popover\",\n from: COMPONENTS,\n description:\n \"A button that opens a small panel of controls beneath it: a view's width, zoom and data state behind one View button on a crowded toolbar. The button carries its label and, optionally, a short summary of what is set now. The panel is a non-modal dialog opened by a disclosure button (`aria-expanded`, `aria-controls`): opening moves focus to its first control, Tab moves through it and on past it (which closes it), Escape closes it and puts focus back on the button, and a press or focus anywhere else closes it. It sits below the button, lined up with its start or end edge, moves along to stay inside the window and goes above the button only when there is no room below. It holds its own open state unless the host passes `open`. For a list of actions use `useContextMenu`; for a question that must be answered first, `ConfirmDialog`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the button says, and the panel\\'s name for assistive technology: \"View\".' },\n summary: { type: \"string\", description: 'A few words after the label saying what is set now: \"Fit · 100% · Real data\". Part of the button\\'s name.' },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: \"Line the panel up with the button's start edge (the default) or its end edge.\" },\n open: { type: \"boolean\", description: \"Open, when the host holds it. Leave out to let the popover hold it.\" },\n defaultOpen: { type: \"boolean\", description: \"Open at first, when the popover holds it. Being open when first drawn takes no focus from the page.\" },\n disabled: { type: \"boolean\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"children\", label: \"The panel's controls\", description: \"What the panel holds: selects, a `SegmentedControl`, check boxes. On the page: width, zoom and data state.\", required: true }],\n callbacks: [{ prop: \"onOpenChange\", description: \"Every change asked for: the button, Escape, a press or focus outside. Set `open` from it when the host holds it.\" }],\n example: { label: \"View\", summary: \"Fit · 100% · Real data\", align: \"end\" },\n});\n\nexport const componentsAppComponents: AppComponentDoc[] = [themePickerDoc, connectionBuilderDoc, modelLineageDoc, checksPanelDoc, objectInfoDoc, certificationBadgeDoc, itemControlsDoc, resizeHandleDoc, segmentedControlDoc, dataTableDoc, selectionBarDoc, paginationDoc, confirmDialogDoc, statusBadgeDoc, comboboxDoc, popoverDoc, navBarDoc];\n\n/** A component's reference page, as Markdown: what it is for, its props, the parts a host supplies and an example. */\nexport function appComponentMarkdown(doc: AppComponentDoc): string {\n const required = new Set(doc.props.required ?? []);\n const typeOf = (schema: PropSchema): string => (schema.enum ? schema.enum.map((v) => JSON.stringify(v)).join(\" | \") : schema.type === \"array\" ? `${schema.items ? typeOf(schema.items) : \"unknown\"}[]` : (schema.type ?? \"object\"));\n const cell = (text = \"\") => text.replace(/\\|/g, \"\\\\|\").replace(/\\n/g, \" \");\n const lines = [`# ${doc.name}`, \"\", `\\`import { ${doc.name} } from \"${doc.from}\";\\``, \"\", doc.description, \"\"];\n const props = Object.entries(doc.props.properties);\n if (props.length > 0) {\n lines.push(\"## Props\", \"\", \"| Prop | Type | Required | What it is |\", \"|---|---|---|---|\");\n for (const [name, schema] of props) lines.push(`| \\`${name}\\` | ${cell(typeOf(schema))} | ${required.has(name) ? \"yes\" : \"\"} | ${cell(schema.description)} |`);\n lines.push(\"\");\n }\n if (doc.parts.length > 0) {\n lines.push(\"## Parts the host supplies\", \"\", \"Props that take code. Each is optional unless marked; the component leaves out what it needs it for.\", \"\");\n for (const part of doc.parts) lines.push(`- \\`${part.prop}\\`${part.required ? \" (required)\" : \"\"}: **${part.label}.** ${part.description}`);\n lines.push(\"\");\n }\n if (doc.callbacks.length > 0) {\n lines.push(\"## Callbacks\", \"\");\n for (const callback of doc.callbacks) lines.push(`- \\`${callback.prop}\\`: ${callback.description}`);\n lines.push(\"\");\n }\n lines.push(\"## Example\", \"\", \"```tsx\", appComponentCode(doc, doc.example, doc.parts.filter((p) => p.required || p.on).map((p) => p.prop)), \"```\", \"\");\n return lines.join(\"\\n\");\n}\n\n/** The JSX for a component with these plain props and these parts switched on: what a page shows as its code. */\nexport function appComponentCode(doc: AppComponentDoc, props: Record<string, unknown>, parts: string[]): string {\n const attribute = (name: string, value: unknown) =>\n value === true ? name : typeof value === \"string\" ? `${name}=${JSON.stringify(value)}` : `${name}={${JSON.stringify(value)}}`;\n const attributes = [\n ...Object.entries(props)\n .filter(([, value]) => value !== undefined && value !== false && !(Array.isArray(value) && value.length === 0))\n .map(([name, value]) => attribute(name, value)),\n ...doc.parts.filter((part) => parts.includes(part.prop)).map((part) => `${part.prop}={${part.prop}}`),\n ...doc.callbacks.map((callback) => `${callback.prop}={…}`),\n ];\n const oneLine = `<${doc.name} ${attributes.join(\" \")} />`;\n return oneLine.length <= 100 ? oneLine : [`<${doc.name}`, ...attributes.map((a) => ` ${a}`), \"/>\"].join(\"\\n\");\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { DataSource } from "@surfaces-ui/data";
|
|
2
|
+
import type { DataMessages } from "../data/messages.js";
|
|
3
|
+
import type { FilterInit } from "../data/useRowWindow.js";
|
|
4
|
+
import { type MetricProps } from "../metric/Metric.js";
|
|
5
|
+
import type { ChartAggregate } from "./Chart.js";
|
|
6
|
+
export interface BulletGraphProps extends DataMessages {
|
|
7
|
+
sourceId: string;
|
|
8
|
+
sql: string;
|
|
9
|
+
column?: string;
|
|
10
|
+
aggregate: ChartAggregate;
|
|
11
|
+
label: string;
|
|
12
|
+
/** The value to compare against, drawn as a tick across the bar. */
|
|
13
|
+
target?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Where the qualitative bands end, lowest first, with a name for each:
|
|
16
|
+
* `[{ to: 50, label: "Poor" }, { to: 80, label: "Fair" }, { to: 100, label: "Good" }]`.
|
|
17
|
+
* The last band's end is the end of the scale. Up to five.
|
|
18
|
+
*/
|
|
19
|
+
ranges: {
|
|
20
|
+
to: number;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
format?: MetricProps["format"];
|
|
24
|
+
currency?: string;
|
|
25
|
+
filters?: FilterInit[];
|
|
26
|
+
notBefore?: string;
|
|
27
|
+
dataSource?: DataSource;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/** The band a value falls in, or the last one when it is past the end. */
|
|
31
|
+
export declare function bulletBand(value: number, ranges: {
|
|
32
|
+
to: number;
|
|
33
|
+
label: string;
|
|
34
|
+
}[]): {
|
|
35
|
+
to: number;
|
|
36
|
+
label: string;
|
|
37
|
+
} | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Stephen Few's bullet graph: one measure as a bar from zero, a tick for the
|
|
40
|
+
* target, and shaded bands that say whether the value is poor, fair or good.
|
|
41
|
+
* It replaces a gauge in a fraction of the space. The bands differ in
|
|
42
|
+
* lightness only, and the reading is also written out in words.
|
|
43
|
+
*/
|
|
44
|
+
export declare function BulletGraph(props: BulletGraphProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useDataSource } from "../data/DataSourceProvider.js";
|
|
3
|
+
import { label as text } from "../locale/locale.js";
|
|
4
|
+
import { formatMetric } from "../metric/Metric.js";
|
|
5
|
+
import { useMeasure } from "../metric/useMeasure.js";
|
|
6
|
+
/** The band a value falls in, or the last one when it is past the end. */
|
|
7
|
+
export function bulletBand(value, ranges) {
|
|
8
|
+
return ranges.find((r) => value <= r.to) ?? ranges.at(-1);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Stephen Few's bullet graph: one measure as a bar from zero, a tick for the
|
|
12
|
+
* target, and shaded bands that say whether the value is poor, fair or good.
|
|
13
|
+
* It replaces a gauge in a fraction of the space. The bands differ in
|
|
14
|
+
* lightness only, and the reading is also written out in words.
|
|
15
|
+
*/
|
|
16
|
+
export function BulletGraph(props) {
|
|
17
|
+
const { sourceId, sql, column, aggregate, label, target, format, currency, filters, notBefore } = props;
|
|
18
|
+
const ranges = [...props.ranges].sort((a, b) => a.to - b.to).slice(0, 5);
|
|
19
|
+
const dataSource = useDataSource(props.dataSource);
|
|
20
|
+
const state = useMeasure(dataSource, { sourceId, sql, column, aggregate, filters, notBefore });
|
|
21
|
+
const value = state.values?.[0] ?? undefined;
|
|
22
|
+
const write = (n) => formatMetric(n, format, currency);
|
|
23
|
+
const end = Math.max(ranges.at(-1)?.to ?? 0, target ?? 0, value ?? 0) || 1;
|
|
24
|
+
const pct = (n) => `${Math.max(0, Math.min(100, (n / end) * 100))}%`;
|
|
25
|
+
const band = value == null ? undefined : bulletBand(value, ranges);
|
|
26
|
+
const reading = value == null
|
|
27
|
+
? state.loading
|
|
28
|
+
? text("bullet.loading", { label })
|
|
29
|
+
: props.emptyMessage
|
|
30
|
+
? `${label}: ${props.emptyMessage}`
|
|
31
|
+
: text("bullet.empty", { label })
|
|
32
|
+
: text("bullet.reading", {
|
|
33
|
+
label,
|
|
34
|
+
value: write(value),
|
|
35
|
+
band: band ? `, ${band.label.toLowerCase()}` : "",
|
|
36
|
+
target: target !== undefined ? text(value >= target ? "bullet.targetMet" : "bullet.targetNotMet", { target: write(target) }) : "",
|
|
37
|
+
});
|
|
38
|
+
return (_jsxs("div", { className: ["sf-bullet", props.className].filter(Boolean).join(" "), "aria-busy": state.loading, children: [_jsxs("div", { className: "sf-bullet-head", children: [_jsx("span", { className: "sf-bullet-label", children: label }), state.error ? (_jsx("span", { className: "sf-metric-error", role: "alert", "data-error": state.error, children: props.errorMessage ?? state.error })) : (_jsxs("span", { className: "sf-bullet-value", children: [value == null ? (state.loading ? text("metric.loading") : (props.emptyMessage ?? text("metric.none"))) : write(value), band && _jsxs("span", { className: "sf-bullet-band", children: [" ", band.label] })] }))] }), _jsxs("div", { className: "sf-bullet-track", role: "img", "aria-label": reading, children: [ranges.map((range, i) => (_jsx("span", { className: "sf-bullet-range", "data-band": i + 1, style: { left: pct(ranges[i - 1]?.to ?? 0), right: `calc(100% - ${pct(range.to)})` } }, range.to))), value != null && _jsx("span", { className: "sf-bullet-bar", style: { width: pct(value) } }), target !== undefined && _jsx("span", { className: "sf-bullet-target", style: { left: pct(target) } })] }), _jsxs("div", { className: "sf-bullet-scale", "aria-hidden": "true", children: [_jsx("span", { children: write(0) }), target !== undefined && _jsx("span", { children: text("bullet.target", { target: write(target) }) }), _jsx("span", { children: write(end) })] })] }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=BulletGraph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulletGraph.js","sourceRoot":"","sources":["../../src/chart/BulletGraph.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,EAAE,KAAK,IAAI,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAoB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAyBrD,0EAA0E;AAC1E,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,MAAuC;IAC/E,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAuB;IACjD,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACxG,MAAM,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC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AC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACrH,IAAI,IAAI,gBAAM,SAAS,EAAC,gBAAgB,kBAAG,IAAI,CAAC,KAAK,IAAQ,IACzD,CACR,IACG,EACN,eAAK,SAAS,EAAC,iBAAiB,EAAC,IAAI,EAAC,KAAK,gBAAa,OAAO,aAC5D,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,eAAqB,SAAS,EAAC,iBAAiB,eAAY,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,IAA5I,KAAK,CAAC,EAAE,CAAwI,CAC5J,CAAC,EACD,KAAK,IAAI,IAAI,IAAI,eAAM,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,GAAI,EACjF,MAAM,KAAK,SAAS,IAAI,eAAM,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,GAAI,IACxF,EACN,eAAK,SAAS,EAAC,iBAAiB,iBAAa,MAAM,aACjD,yBAAO,KAAK,CAAC,CAAC,CAAC,GAAQ,EACtB,MAAM,KAAK,SAAS,IAAI,yBAAO,IAAI,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAQ,EACxF,yBAAO,KAAK,CAAC,GAAG,CAAC,GAAQ,IACrB,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import type { DataSource } from \"@surfaces-ui/data\";\nimport { useDataSource } from \"../data/DataSourceProvider.js\";\nimport type { DataMessages } from \"../data/messages.js\";\nimport type { FilterInit } from \"../data/useRowWindow.js\";\nimport { label as text } from \"../locale/locale.js\";\nimport { type MetricProps, formatMetric } from \"../metric/Metric.js\";\nimport { useMeasure } from \"../metric/useMeasure.js\";\nimport type { ChartAggregate } from \"./Chart.js\";\n\nexport interface BulletGraphProps extends DataMessages {\n sourceId: string;\n sql: string;\n column?: string;\n aggregate: ChartAggregate;\n label: string;\n /** The value to compare against, drawn as a tick across the bar. */\n target?: number;\n /**\n * Where the qualitative bands end, lowest first, with a name for each:\n * `[{ to: 50, label: \"Poor\" }, { to: 80, label: \"Fair\" }, { to: 100, label: \"Good\" }]`.\n * The last band's end is the end of the scale. Up to five.\n */\n ranges: { to: number; label: string }[];\n format?: MetricProps[\"format\"];\n currency?: string;\n filters?: FilterInit[];\n notBefore?: string;\n dataSource?: DataSource;\n className?: string;\n}\n\n/** The band a value falls in, or the last one when it is past the end. */\nexport function bulletBand(value: number, ranges: { to: number; label: string }[]): { to: number; label: string } | undefined {\n return ranges.find((r) => value <= r.to) ?? ranges.at(-1);\n}\n\n/**\n * Stephen Few's bullet graph: one measure as a bar from zero, a tick for the\n * target, and shaded bands that say whether the value is poor, fair or good.\n * It replaces a gauge in a fraction of the space. The bands differ in\n * lightness only, and the reading is also written out in words.\n */\nexport function BulletGraph(props: BulletGraphProps) {\n const { sourceId, sql, column, aggregate, label, target, format, currency, filters, notBefore } = props;\n const ranges = [...props.ranges].sort((a, b) => a.to - b.to).slice(0, 5);\n const dataSource = useDataSource(props.dataSource);\n const state = useMeasure(dataSource, { sourceId, sql, column, aggregate, filters, notBefore });\n const value = state.values?.[0] ?? undefined;\n const write = (n: number) => formatMetric(n, format, currency);\n const end = Math.max(ranges.at(-1)?.to ?? 0, target ?? 0, value ?? 0) || 1;\n const pct = (n: number) => `${Math.max(0, Math.min(100, (n / end) * 100))}%`;\n const band = value == null ? undefined : bulletBand(value, ranges);\n const reading =\n value == null\n ? state.loading\n ? text(\"bullet.loading\", { label })\n : props.emptyMessage\n ? `${label}: ${props.emptyMessage}`\n : text(\"bullet.empty\", { label })\n : text(\"bullet.reading\", {\n label,\n value: write(value),\n band: band ? `, ${band.label.toLowerCase()}` : \"\",\n target: target !== undefined ? text(value >= target ? \"bullet.targetMet\" : \"bullet.targetNotMet\", { target: write(target) }) : \"\",\n });\n\n return (\n <div className={[\"sf-bullet\", props.className].filter(Boolean).join(\" \")} aria-busy={state.loading}>\n <div className=\"sf-bullet-head\">\n <span className=\"sf-bullet-label\">{label}</span>\n {state.error ? (\n <span className=\"sf-metric-error\" role=\"alert\" data-error={state.error}>\n {props.errorMessage ?? state.error}\n </span>\n ) : (\n <span className=\"sf-bullet-value\">\n {value == null ? (state.loading ? text(\"metric.loading\") : (props.emptyMessage ?? text(\"metric.none\"))) : write(value)}\n {band && <span className=\"sf-bullet-band\"> {band.label}</span>}\n </span>\n )}\n </div>\n <div className=\"sf-bullet-track\" role=\"img\" aria-label={reading}>\n {ranges.map((range, i) => (\n <span key={range.to} className=\"sf-bullet-range\" data-band={i + 1} style={{ left: pct(ranges[i - 1]?.to ?? 0), right: `calc(100% - ${pct(range.to)})` }} />\n ))}\n {value != null && <span className=\"sf-bullet-bar\" style={{ width: pct(value) }} />}\n {target !== undefined && <span className=\"sf-bullet-target\" style={{ left: pct(target) }} />}\n </div>\n <div className=\"sf-bullet-scale\" aria-hidden=\"true\">\n <span>{write(0)}</span>\n {target !== undefined && <span>{text(\"bullet.target\", { target: write(target) })}</span>}\n <span>{write(end)}</span>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { type DataSource } from "@surfaces-ui/data";
|
|
2
|
+
import type { MessageInitShape } from "@bufbuild/protobuf";
|
|
3
|
+
import type { DataType } from "apache-arrow";
|
|
4
|
+
import { AggregateFunction, TimeGrain, type ViewQuerySchema } from "@surfaces-ui/proto";
|
|
5
|
+
import type { DataMessages } from "../data/messages.js";
|
|
6
|
+
import { type FilterInit, type TimeTravelInit, type ValueInit } from "../data/useRowWindow.js";
|
|
7
|
+
import { type ChartShape } from "./advice.js";
|
|
8
|
+
import { type AxisFormat, type ChartOptionInput, type ChartType, type LegendPlacement, type SeriesType } from "./option.js";
|
|
9
|
+
export type ChartAggregate = "sum" | "avg" | "count" | "count_distinct" | "min" | "max" | "median" | "stddev" | "variance" | "percentile";
|
|
10
|
+
export type ChartGrain = "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
11
|
+
export interface ChartMeasure {
|
|
12
|
+
/** Column to plot. Optional only for `count`, which then counts rows. */
|
|
13
|
+
column?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Summarise the column per x value in the engine. Without it the chart
|
|
16
|
+
* plots raw rows: all of them when the result is small, otherwise a random
|
|
17
|
+
* sample.
|
|
18
|
+
*/
|
|
19
|
+
aggregate?: ChartAggregate;
|
|
20
|
+
/** For `percentile`: a fraction from 0 to 1. Defaults to 0.9. */
|
|
21
|
+
percentile?: number;
|
|
22
|
+
/**
|
|
23
|
+
* A calculation instead of a column: arithmetic over the measures named in
|
|
24
|
+
* `terms`, such as `refunded / revenue`. The engine works it out after
|
|
25
|
+
* summarising, so it is right for any number of rows and can be sorted by.
|
|
26
|
+
*/
|
|
27
|
+
expression?: string;
|
|
28
|
+
/** The measures an `expression` names, by the name it uses for them. */
|
|
29
|
+
terms?: Record<string, {
|
|
30
|
+
column?: string;
|
|
31
|
+
aggregate: ChartAggregate;
|
|
32
|
+
percentile?: number;
|
|
33
|
+
}>;
|
|
34
|
+
/** Name for the legend. Defaults to e.g. "sum of amount". */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** Draw this series differently from the chart's `type`, e.g. a line over bars. */
|
|
37
|
+
type?: SeriesType;
|
|
38
|
+
/** The y axis this series is measured on. Use "right" for a measure on another scale. Defaults to "left". */
|
|
39
|
+
axis?: "left" | "right";
|
|
40
|
+
/** Series with the same stack name are stacked on each other. */
|
|
41
|
+
stack?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Which of the theme's series colours to use, counting from 1. Give a
|
|
44
|
+
* measure the same slot wherever it appears and it keeps its colour across
|
|
45
|
+
* charts. Without it, series take the theme's colours in order.
|
|
46
|
+
*/
|
|
47
|
+
slot?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ChartProps extends DataMessages {
|
|
50
|
+
sourceId: string;
|
|
51
|
+
/** The base SQL. Grouping and aggregation are applied around it by the backend. */
|
|
52
|
+
sql: string;
|
|
53
|
+
/** How series are drawn unless a measure sets its own `type`. */
|
|
54
|
+
type: ChartType;
|
|
55
|
+
/** Column for the x axis, or the slices of a pie. */
|
|
56
|
+
x: string;
|
|
57
|
+
/** Group a date or time x column into buckets of this size, so a time series has one point per bucket. */
|
|
58
|
+
xGrain?: ChartGrain;
|
|
59
|
+
/** Group a numeric x column into bins of this width (a histogram). */
|
|
60
|
+
xBinWidth?: number;
|
|
61
|
+
/** Group a numeric x column into about this many bins; the width is chosen from the column's range. */
|
|
62
|
+
xBins?: number;
|
|
63
|
+
/** One entry per series. */
|
|
64
|
+
y: ChartMeasure[];
|
|
65
|
+
/** Split each measure into one series per distinct value of this column. */
|
|
66
|
+
splitBy?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The theme colour slot for particular values of `splitBy`, by value, e.g.
|
|
69
|
+
* `{ Europe: 1, "Asia Pacific": 2 }`. A value then keeps its colour when a
|
|
70
|
+
* filter removes other values.
|
|
71
|
+
*/
|
|
72
|
+
splitSlots?: Record<string, number>;
|
|
73
|
+
/** Stack the series. */
|
|
74
|
+
stacked?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The order of bars. "value" (the default for a bar chart over categories)
|
|
77
|
+
* puts the largest first, and with a row limit keeps the largest. "x" keeps
|
|
78
|
+
* the order of the x column. Dates, bins and numbers always keep their own order.
|
|
79
|
+
*/
|
|
80
|
+
sort?: "value" | "x";
|
|
81
|
+
/** Show advice when the chart's shape is one that misleads or cannot be read. Defaults to true. */
|
|
82
|
+
advice?: boolean;
|
|
83
|
+
/** Where the legend goes. Defaults to "top" when there is more than one series. */
|
|
84
|
+
legend?: LegendPlacement;
|
|
85
|
+
/** Axis titles. */
|
|
86
|
+
xTitle?: string;
|
|
87
|
+
yTitle?: string;
|
|
88
|
+
yRightTitle?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Turn the bars on their side: categories down the left, largest at the
|
|
91
|
+
* top, values along the bottom. Easier to read with long category names or
|
|
92
|
+
* many of them. Only for bars on one scale; ignored otherwise.
|
|
93
|
+
*/
|
|
94
|
+
horizontal?: boolean;
|
|
95
|
+
/** How the left axis writes its numbers: "percent" for a rate (6%, not 0.06), "currency" for money. Labels only; the values are untouched. */
|
|
96
|
+
yFormat?: AxisFormat;
|
|
97
|
+
filters?: FilterInit[];
|
|
98
|
+
parameters?: ValueInit[];
|
|
99
|
+
timeTravel?: TimeTravelInit;
|
|
100
|
+
/** ISO 8601 time of the run this chart belongs to; see `RowWindowQuery.notBefore`. */
|
|
101
|
+
notBefore?: string;
|
|
102
|
+
/** Most points fetched. Defaults to 5,000; the chart says when it was cut off or sampled. */
|
|
103
|
+
limit?: number;
|
|
104
|
+
/** Height in px. Defaults to 320. */
|
|
105
|
+
height?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Called when a point, bar or slice is clicked, with its x value and
|
|
108
|
+
* series name. Use it to filter other views (cross-filtering).
|
|
109
|
+
*/
|
|
110
|
+
onPointClick?(point: {
|
|
111
|
+
x: string | number | null;
|
|
112
|
+
series: string;
|
|
113
|
+
value: number | null;
|
|
114
|
+
}): void;
|
|
115
|
+
/** Adjust the generated ECharts option before it is applied. */
|
|
116
|
+
option?(option: Record<string, unknown>): Record<string, unknown>;
|
|
117
|
+
/** Accessible description of what the chart shows. */
|
|
118
|
+
label?: string;
|
|
119
|
+
dataSource?: DataSource;
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
/** The contract's function for each aggregate name. */
|
|
123
|
+
export declare const AGGREGATE_FUNCTIONS: Record<ChartAggregate, AggregateFunction>;
|
|
124
|
+
/** The contract's grain for each grain name. */
|
|
125
|
+
export declare const TIME_GRAINS: Record<ChartGrain, TimeGrain>;
|
|
126
|
+
/** Output column and label for each measure. */
|
|
127
|
+
export declare function measureOutputs(y: ChartMeasure[]): {
|
|
128
|
+
column: string;
|
|
129
|
+
label: string;
|
|
130
|
+
measure: ChartMeasure;
|
|
131
|
+
}[];
|
|
132
|
+
export type ChartQueryInput = Pick<ChartProps, "sql" | "type" | "x" | "xGrain" | "y" | "splitBy" | "filters" | "parameters" | "sort"> & {
|
|
133
|
+
/** Bin width for a numeric x, already resolved from `xBinWidth` or `xBins`. */
|
|
134
|
+
binWidth?: number;
|
|
135
|
+
limit: number;
|
|
136
|
+
};
|
|
137
|
+
/** The shape of a loaded chart, in the terms `chartAdvice` checks. Nothing drawn gives no advice. */
|
|
138
|
+
export declare function drawnShape(input: Pick<ChartProps, "type" | "x" | "y" | "stacked"> & Pick<ChartOptionInput, "fields" | "rows"> & {
|
|
139
|
+
seriesCount: number;
|
|
140
|
+
binned: boolean;
|
|
141
|
+
}): ChartShape;
|
|
142
|
+
/** How a chart's categories are ordered when not told: bars by size, everything else along x. */
|
|
143
|
+
export declare function chartSort(input: Pick<ChartQueryInput, "type" | "xGrain" | "binWidth" | "sort" | "y">): "value" | "x";
|
|
144
|
+
/**
|
|
145
|
+
* The query a chart sends. With aggregated measures the engine groups by x
|
|
146
|
+
* (bucketed by time grain or bin width when asked) and by the split column;
|
|
147
|
+
* otherwise it returns a random sample of raw rows.
|
|
148
|
+
*/
|
|
149
|
+
export declare function buildChartQuery(input: ChartQueryInput): MessageInitShape<typeof ViewQuerySchema>;
|
|
150
|
+
/**
|
|
151
|
+
* An ECharts chart bound to a query. With aggregated measures the engine
|
|
152
|
+
* groups the data, so the chart receives one row per point however large the
|
|
153
|
+
* table is. Each measure is a series and can have its own type and y axis,
|
|
154
|
+
* which makes compound charts (bars with a line, two scales). Colours, fonts
|
|
155
|
+
* and radius follow the theme.
|
|
156
|
+
*/
|
|
157
|
+
/** The columns a range query returns, as Arrow gives them: each column's values and its type. */
|
|
158
|
+
interface RangeTable {
|
|
159
|
+
schema: {
|
|
160
|
+
fields: {
|
|
161
|
+
name: string;
|
|
162
|
+
type: DataType;
|
|
163
|
+
}[];
|
|
164
|
+
};
|
|
165
|
+
getChild(name: string): {
|
|
166
|
+
get(index: number): unknown;
|
|
167
|
+
} | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The bin width for `bins` bins over the lowest and highest values the engine
|
|
171
|
+
* found (`lo` and `hi`). Read with the column's type: a DECIMAL arrives as its
|
|
172
|
+
* digits without the point, and read as a plain number it widens the range a
|
|
173
|
+
* hundredfold or more, putting every value in one bin.
|
|
174
|
+
*/
|
|
175
|
+
export declare function rangeBinWidth(table: RangeTable, bins: number): number;
|
|
176
|
+
export declare function Chart(props: ChartProps): import("react").JSX.Element;
|
|
177
|
+
export {};
|