@k2b/ui 0.49.0 → 0.51.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/dist/base.css +70 -1
- package/dist/browser/actions/Button.js.map +1 -1
- package/dist/browser/actions/CommandList.js +861 -0
- package/dist/browser/actions/CommandList.js.map +1 -0
- package/dist/browser/actions/CommandMenu.js +237 -0
- package/dist/browser/actions/CommandMenu.js.map +1 -0
- package/dist/browser/actions/ContextMenu.js +3 -0
- package/dist/browser/actions/ContextMenu.js.map +1 -1
- package/dist/browser/actions/Dropdown.js +43 -10
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/command-dock.js +47 -0
- package/dist/browser/actions/command-dock.js.map +1 -0
- package/dist/browser/actions/command-items.js +84 -0
- package/dist/browser/actions/command-items.js.map +1 -0
- package/dist/browser/actions/command-messages.js +42 -0
- package/dist/browser/actions/command-messages.js.map +1 -0
- package/dist/browser/actions/index.js +1 -0
- package/dist/browser/actions/index.js.map +1 -1
- package/dist/browser/charts/core/area.js +188 -0
- package/dist/browser/charts/core/area.js.map +1 -0
- package/dist/browser/charts/core/calendar.js +186 -0
- package/dist/browser/charts/core/calendar.js.map +1 -0
- package/dist/browser/charts/core/chart-map-data.js +9 -0
- package/dist/browser/charts/core/chart-map-data.js.map +1 -0
- package/dist/browser/charts/core/chart-messages.js +17 -0
- package/dist/browser/charts/core/chart-messages.js.map +1 -0
- package/dist/browser/charts/core/hbar-layout.js +118 -0
- package/dist/browser/charts/core/hbar-layout.js.map +1 -0
- package/dist/browser/charts/core/hbar.js +39 -0
- package/dist/browser/charts/core/hbar.js.map +1 -0
- package/dist/browser/charts/core/index.js +17 -0
- package/dist/browser/charts/core/index.js.map +1 -0
- package/dist/browser/charts/core/inspection.js +9 -0
- package/dist/browser/charts/core/inspection.js.map +1 -0
- package/dist/browser/charts/core/map.js +116 -0
- package/dist/browser/charts/core/map.js.map +1 -0
- package/dist/browser/charts/core/registry.js +35 -0
- package/dist/browser/charts/core/registry.js.map +1 -0
- package/dist/browser/charts/core/render-size.js +13 -0
- package/dist/browser/charts/core/render-size.js.map +1 -0
- package/dist/browser/charts/core/render.js +113 -0
- package/dist/browser/charts/core/render.js.map +1 -0
- package/dist/browser/charts/core/snapshot.js +65 -0
- package/dist/browser/charts/core/snapshot.js.map +1 -0
- package/dist/browser/charts/core/svg-renderers.js +2406 -0
- package/dist/browser/charts/core/svg-renderers.js.map +1 -0
- package/dist/browser/charts/core/svg.js +21 -0
- package/dist/browser/charts/core/svg.js.map +1 -0
- package/dist/browser/charts/core/termination.test-fixture.js +162 -0
- package/dist/browser/charts/core/termination.test-fixture.js.map +1 -0
- package/dist/browser/charts/core/text.js +13 -0
- package/dist/browser/charts/core/text.js.map +1 -0
- package/dist/browser/charts/core/types.js +6 -0
- package/dist/browser/charts/core/types.js.map +1 -0
- package/dist/browser/charts/core/waterfall.js +162 -0
- package/dist/browser/charts/core/waterfall.js.map +1 -0
- package/dist/browser/charts/description.js +2 -0
- package/dist/browser/charts/description.js.map +1 -0
- package/dist/browser/charts.js +4 -2
- package/dist/browser/charts.js.map +1 -1
- package/dist/browser/content/BalanceSummary.js +106 -0
- package/dist/browser/content/BalanceSummary.js.map +1 -0
- package/dist/browser/content/Chart.js +21 -616
- package/dist/browser/content/Chart.js.map +1 -1
- package/dist/browser/content/ChartExplorer.js +366 -122
- package/dist/browser/content/ChartExplorer.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +632 -0
- package/dist/browser/content/ChartRoot.js.map +1 -0
- package/dist/browser/content/ChartSnapshotView.js +16 -9
- package/dist/browser/content/ChartSnapshotView.js.map +1 -1
- package/dist/browser/content/ChartSparkline.js +24 -0
- package/dist/browser/content/ChartSparkline.js.map +1 -0
- package/dist/browser/content/DataTable.js +676 -293
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/DataTableTools.js +119 -0
- package/dist/browser/content/DataTableTools.js.map +1 -0
- package/dist/browser/content/FileView.js +111 -61
- package/dist/browser/content/FileView.js.map +1 -1
- package/dist/browser/content/FlowAmount.js +82 -0
- package/dist/browser/content/FlowAmount.js.map +1 -0
- package/dist/browser/content/Lightbox.js +8 -8
- package/dist/browser/content/Lightbox.js.map +1 -1
- package/dist/browser/content/MapView.js +30 -28
- package/dist/browser/content/MapView.js.map +1 -1
- package/dist/browser/content/PdfPreview.js +84 -52
- package/dist/browser/content/PdfPreview.js.map +1 -1
- package/dist/browser/content/PdfViewer.js +588 -0
- package/dist/browser/content/PdfViewer.js.map +1 -0
- package/dist/browser/content/balance-summary-messages.js +26 -0
- package/dist/browser/content/balance-summary-messages.js.map +1 -0
- package/dist/browser/content/chart-bar.js +251 -21
- package/dist/browser/content/chart-bar.js.map +1 -1
- package/dist/browser/content/chart-calendar.js +43 -0
- package/dist/browser/content/chart-calendar.js.map +1 -0
- package/dist/browser/content/chart-inspection-core.js +178 -50
- package/dist/browser/content/chart-inspection-core.js.map +1 -1
- package/dist/browser/content/chart-inspection.js.map +1 -1
- package/dist/browser/content/chart-line-gaps.js +2 -2
- package/dist/browser/content/chart-line-gaps.js.map +1 -1
- package/dist/browser/content/chart-map-viewport.js.map +1 -1
- package/dist/browser/content/chart-message-catalog.js +174 -0
- package/dist/browser/content/chart-message-catalog.js.map +1 -0
- package/dist/browser/content/chart-messages.js +2 -138
- package/dist/browser/content/chart-messages.js.map +1 -1
- package/dist/browser/content/chart-snapshot.js +1 -62
- package/dist/browser/content/chart-snapshot.js.map +1 -1
- package/dist/browser/content/chart-state-timeline.js +1 -1
- package/dist/browser/content/chart-state-timeline.js.map +1 -1
- package/dist/browser/content/chart-svg.js +4 -2
- package/dist/browser/content/chart-svg.js.map +1 -1
- package/dist/browser/content/chart-time-axis.js +139 -0
- package/dist/browser/content/chart-time-axis.js.map +1 -0
- package/dist/browser/content/data-table-columns.js +160 -0
- package/dist/browser/content/data-table-columns.js.map +1 -0
- package/dist/browser/content/data-table-messages.js +38 -2
- package/dist/browser/content/data-table-messages.js.map +1 -1
- package/dist/browser/content/flow-amount-messages.js +26 -0
- package/dist/browser/content/flow-amount-messages.js.map +1 -0
- package/dist/browser/content/index.js +5 -0
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/pdf-document.js +29 -0
- package/dist/browser/content/pdf-document.js.map +1 -0
- package/dist/browser/content/pdf-limits.js +31 -0
- package/dist/browser/content/pdf-limits.js.map +1 -0
- package/dist/browser/content/pdf-messages.js +34 -2
- package/dist/browser/content/pdf-messages.js.map +1 -1
- package/dist/browser/content/pdf-viewer-engine.js +57 -0
- package/dist/browser/content/pdf-viewer-worker.js +28 -0
- package/dist/browser/inputs/ChoiceInputs.js +94 -51
- package/dist/browser/inputs/ChoiceInputs.js.map +1 -1
- package/dist/browser/inputs/ChoiceSlider.js +75 -58
- package/dist/browser/inputs/ChoiceSlider.js.map +1 -1
- package/dist/browser/inputs/DatePicker.js +118 -102
- package/dist/browser/inputs/DatePicker.js.map +1 -1
- package/dist/browser/inputs/PeriodPicker.js +874 -0
- package/dist/browser/inputs/PeriodPicker.js.map +1 -0
- package/dist/browser/inputs/SelectChip.js +50 -17
- package/dist/browser/inputs/SelectChip.js.map +1 -1
- package/dist/browser/inputs/date-picker.js +13 -0
- package/dist/browser/inputs/date-picker.js.map +1 -1
- package/dist/browser/inputs/index.js +4 -1
- package/dist/browser/inputs/index.js.map +1 -1
- package/dist/browser/inputs/input-messages.js +8 -2
- package/dist/browser/inputs/input-messages.js.map +1 -1
- package/dist/browser/inputs/markdown/MarkdownEditor.js +14 -10
- package/dist/browser/inputs/markdown/MarkdownEditor.js.map +1 -1
- package/dist/browser/inputs/markdown/SlashCommands.js +402 -0
- package/dist/browser/inputs/markdown/SlashCommands.js.map +1 -0
- package/dist/browser/inputs/period-picker-messages.js +71 -0
- package/dist/browser/inputs/period-picker-messages.js.map +1 -0
- package/dist/browser/inputs/period.js +263 -0
- package/dist/browser/inputs/period.js.map +1 -0
- package/dist/browser/intl/Format.js +31 -8
- package/dist/browser/intl/Format.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +7 -1
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/DetailPanel.js +147 -120
- package/dist/browser/layout/DetailPanel.js.map +1 -1
- package/dist/browser/layout/Discussion.js +101 -108
- package/dist/browser/layout/Discussion.js.map +1 -1
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/surfaces/BudgetList.js +281 -0
- package/dist/browser/surfaces/BudgetList.js.map +1 -0
- package/dist/browser/surfaces/DescriptionList.js +5 -2
- package/dist/browser/surfaces/DescriptionList.js.map +1 -1
- package/dist/browser/surfaces/ProgressBar.js +134 -21
- package/dist/browser/surfaces/ProgressBar.js.map +1 -1
- package/dist/browser/surfaces/StatCell.js +327 -146
- package/dist/browser/surfaces/StatCell.js.map +1 -1
- package/dist/browser/surfaces/StatGrid.js +75 -57
- package/dist/browser/surfaces/StatGrid.js.map +1 -1
- package/dist/browser/surfaces/budget-messages.js +64 -0
- package/dist/browser/surfaces/budget-messages.js.map +1 -0
- package/dist/browser/surfaces/delta-badge.js +79 -0
- package/dist/browser/surfaces/delta-badge.js.map +1 -0
- package/dist/browser/surfaces/index.js +2 -1
- package/dist/browser/surfaces/index.js.map +1 -1
- package/dist/browser/surfaces/person-color.js +2 -2
- package/dist/browser/surfaces/person-color.js.map +1 -1
- package/dist/browser/surfaces/stat-cell-messages.js +41 -0
- package/dist/browser/surfaces/stat-cell-messages.js.map +1 -0
- package/dist/browser/widgets/Dashboard.js +137 -0
- package/dist/browser/widgets/Dashboard.js.map +1 -0
- package/dist/browser/widgets/DashboardFrame.js +310 -0
- package/dist/browser/widgets/DashboardFrame.js.map +1 -0
- package/dist/browser/widgets/index.js +2 -0
- package/dist/browser/widgets/index.js.map +1 -1
- package/dist/licenses/pdfjs-dist.txt +177 -0
- package/dist/ssr/actions/Button.js.map +1 -1
- package/dist/ssr/actions/CommandList.js +638 -0
- package/dist/ssr/actions/CommandList.js.map +1 -0
- package/dist/ssr/actions/CommandMenu.js +197 -0
- package/dist/ssr/actions/CommandMenu.js.map +1 -0
- package/dist/ssr/actions/ContextMenu.js +3 -0
- package/dist/ssr/actions/ContextMenu.js.map +1 -1
- package/dist/ssr/actions/Dropdown.js +43 -10
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/command-dock.js +47 -0
- package/dist/ssr/actions/command-dock.js.map +1 -0
- package/dist/ssr/actions/command-items.js +84 -0
- package/dist/ssr/actions/command-items.js.map +1 -0
- package/dist/ssr/actions/command-messages.js +42 -0
- package/dist/ssr/actions/command-messages.js.map +1 -0
- package/dist/ssr/actions/index.js +1 -0
- package/dist/ssr/actions/index.js.map +1 -1
- package/dist/ssr/charts/core/area.js +188 -0
- package/dist/ssr/charts/core/area.js.map +1 -0
- package/dist/ssr/charts/core/calendar.js +186 -0
- package/dist/ssr/charts/core/calendar.js.map +1 -0
- package/dist/ssr/charts/core/chart-map-data.js +9 -0
- package/dist/ssr/charts/core/chart-map-data.js.map +1 -0
- package/dist/ssr/charts/core/chart-messages.js +17 -0
- package/dist/ssr/charts/core/chart-messages.js.map +1 -0
- package/dist/ssr/charts/core/hbar-layout.js +118 -0
- package/dist/ssr/charts/core/hbar-layout.js.map +1 -0
- package/dist/ssr/charts/core/hbar.js +39 -0
- package/dist/ssr/charts/core/hbar.js.map +1 -0
- package/dist/ssr/charts/core/index.js +17 -0
- package/dist/ssr/charts/core/index.js.map +1 -0
- package/dist/ssr/charts/core/inspection.js +9 -0
- package/dist/ssr/charts/core/inspection.js.map +1 -0
- package/dist/ssr/charts/core/map.js +116 -0
- package/dist/ssr/charts/core/map.js.map +1 -0
- package/dist/ssr/charts/core/registry.js +35 -0
- package/dist/ssr/charts/core/registry.js.map +1 -0
- package/dist/ssr/charts/core/render-size.js +13 -0
- package/dist/ssr/charts/core/render-size.js.map +1 -0
- package/dist/ssr/charts/core/render.js +113 -0
- package/dist/ssr/charts/core/render.js.map +1 -0
- package/dist/ssr/charts/core/snapshot.js +65 -0
- package/dist/ssr/charts/core/snapshot.js.map +1 -0
- package/dist/ssr/charts/core/svg-renderers.js +2406 -0
- package/dist/ssr/charts/core/svg-renderers.js.map +1 -0
- package/dist/ssr/charts/core/svg.js +21 -0
- package/dist/ssr/charts/core/svg.js.map +1 -0
- package/dist/ssr/charts/core/termination.test-fixture.js +162 -0
- package/dist/ssr/charts/core/termination.test-fixture.js.map +1 -0
- package/dist/ssr/charts/core/text.js +13 -0
- package/dist/ssr/charts/core/text.js.map +1 -0
- package/dist/ssr/charts/core/types.js +6 -0
- package/dist/ssr/charts/core/types.js.map +1 -0
- package/dist/ssr/charts/core/waterfall.js +162 -0
- package/dist/ssr/charts/core/waterfall.js.map +1 -0
- package/dist/ssr/charts/description.js +2 -0
- package/dist/ssr/charts/description.js.map +1 -0
- package/dist/ssr/charts.js +4 -2
- package/dist/ssr/charts.js.map +1 -1
- package/dist/ssr/content/BalanceSummary.js +75 -0
- package/dist/ssr/content/BalanceSummary.js.map +1 -0
- package/dist/ssr/content/Chart.js +21 -483
- package/dist/ssr/content/Chart.js.map +1 -1
- package/dist/ssr/content/ChartExplorer.js +190 -46
- package/dist/ssr/content/ChartExplorer.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +475 -0
- package/dist/ssr/content/ChartRoot.js.map +1 -0
- package/dist/ssr/content/ChartSnapshotView.js +5 -1
- package/dist/ssr/content/ChartSnapshotView.js.map +1 -1
- package/dist/ssr/content/ChartSparkline.js +24 -0
- package/dist/ssr/content/ChartSparkline.js.map +1 -0
- package/dist/ssr/content/DataTable.js +287 -78
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/DataTableTools.js +106 -0
- package/dist/ssr/content/DataTableTools.js.map +1 -0
- package/dist/ssr/content/FileView.js +56 -7
- package/dist/ssr/content/FileView.js.map +1 -1
- package/dist/ssr/content/FlowAmount.js +58 -0
- package/dist/ssr/content/FlowAmount.js.map +1 -0
- package/dist/ssr/content/Lightbox.js +8 -8
- package/dist/ssr/content/Lightbox.js.map +1 -1
- package/dist/ssr/content/MapView.js +9 -9
- package/dist/ssr/content/MapView.js.map +1 -1
- package/dist/ssr/content/PdfPreview.js +49 -20
- package/dist/ssr/content/PdfPreview.js.map +1 -1
- package/dist/ssr/content/PdfViewer.js +484 -0
- package/dist/ssr/content/PdfViewer.js.map +1 -0
- package/dist/ssr/content/balance-summary-messages.js +26 -0
- package/dist/ssr/content/balance-summary-messages.js.map +1 -0
- package/dist/ssr/content/chart-bar.js +251 -21
- package/dist/ssr/content/chart-bar.js.map +1 -1
- package/dist/ssr/content/chart-calendar.js +43 -0
- package/dist/ssr/content/chart-calendar.js.map +1 -0
- package/dist/ssr/content/chart-inspection-core.js +178 -50
- package/dist/ssr/content/chart-inspection-core.js.map +1 -1
- package/dist/ssr/content/chart-inspection.js.map +1 -1
- package/dist/ssr/content/chart-line-gaps.js +2 -2
- package/dist/ssr/content/chart-line-gaps.js.map +1 -1
- package/dist/ssr/content/chart-map-viewport.js.map +1 -1
- package/dist/ssr/content/chart-message-catalog.js +174 -0
- package/dist/ssr/content/chart-message-catalog.js.map +1 -0
- package/dist/ssr/content/chart-messages.js +2 -138
- package/dist/ssr/content/chart-messages.js.map +1 -1
- package/dist/ssr/content/chart-snapshot.js +1 -62
- package/dist/ssr/content/chart-snapshot.js.map +1 -1
- package/dist/ssr/content/chart-state-timeline.js +1 -1
- package/dist/ssr/content/chart-state-timeline.js.map +1 -1
- package/dist/ssr/content/chart-svg.js +4 -2
- package/dist/ssr/content/chart-svg.js.map +1 -1
- package/dist/ssr/content/chart-time-axis.js +139 -0
- package/dist/ssr/content/chart-time-axis.js.map +1 -0
- package/dist/ssr/content/data-table-columns.js +160 -0
- package/dist/ssr/content/data-table-columns.js.map +1 -0
- package/dist/ssr/content/data-table-messages.js +38 -2
- package/dist/ssr/content/data-table-messages.js.map +1 -1
- package/dist/ssr/content/flow-amount-messages.js +26 -0
- package/dist/ssr/content/flow-amount-messages.js.map +1 -0
- package/dist/ssr/content/index.js +5 -0
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/pdf-document.js +29 -0
- package/dist/ssr/content/pdf-document.js.map +1 -0
- package/dist/ssr/content/pdf-limits.js +31 -0
- package/dist/ssr/content/pdf-limits.js.map +1 -0
- package/dist/ssr/content/pdf-messages.js +34 -2
- package/dist/ssr/content/pdf-messages.js.map +1 -1
- package/dist/ssr/inputs/ChoiceInputs.js +49 -12
- package/dist/ssr/inputs/ChoiceInputs.js.map +1 -1
- package/dist/ssr/inputs/ChoiceSlider.js +17 -12
- package/dist/ssr/inputs/ChoiceSlider.js.map +1 -1
- package/dist/ssr/inputs/DatePicker.js +19 -13
- package/dist/ssr/inputs/DatePicker.js.map +1 -1
- package/dist/ssr/inputs/PeriodPicker.js +598 -0
- package/dist/ssr/inputs/PeriodPicker.js.map +1 -0
- package/dist/ssr/inputs/SelectChip.js +26 -9
- package/dist/ssr/inputs/SelectChip.js.map +1 -1
- package/dist/ssr/inputs/date-picker.js +13 -0
- package/dist/ssr/inputs/date-picker.js.map +1 -1
- package/dist/ssr/inputs/index.js +4 -1
- package/dist/ssr/inputs/index.js.map +1 -1
- package/dist/ssr/inputs/input-messages.js +8 -2
- package/dist/ssr/inputs/input-messages.js.map +1 -1
- package/dist/ssr/inputs/markdown/MarkdownEditor.js +3 -2
- package/dist/ssr/inputs/markdown/MarkdownEditor.js.map +1 -1
- package/dist/ssr/inputs/markdown/SlashCommands.js +339 -0
- package/dist/ssr/inputs/markdown/SlashCommands.js.map +1 -0
- package/dist/ssr/inputs/period-picker-messages.js +71 -0
- package/dist/ssr/inputs/period-picker-messages.js.map +1 -0
- package/dist/ssr/inputs/period.js +263 -0
- package/dist/ssr/inputs/period.js.map +1 -0
- package/dist/ssr/intl/Format.js +22 -2
- package/dist/ssr/intl/Format.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +7 -1
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/DetailPanel.js +27 -4
- package/dist/ssr/layout/DetailPanel.js.map +1 -1
- package/dist/ssr/layout/Discussion.js +16 -2
- package/dist/ssr/layout/Discussion.js.map +1 -1
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/surfaces/BudgetList.js +170 -0
- package/dist/ssr/surfaces/BudgetList.js.map +1 -0
- package/dist/ssr/surfaces/DescriptionList.js +1 -1
- package/dist/ssr/surfaces/DescriptionList.js.map +1 -1
- package/dist/ssr/surfaces/ProgressBar.js +96 -5
- package/dist/ssr/surfaces/ProgressBar.js.map +1 -1
- package/dist/ssr/surfaces/StatCell.js +157 -52
- package/dist/ssr/surfaces/StatCell.js.map +1 -1
- package/dist/ssr/surfaces/StatGrid.js +24 -35
- package/dist/ssr/surfaces/StatGrid.js.map +1 -1
- package/dist/ssr/surfaces/budget-messages.js +64 -0
- package/dist/ssr/surfaces/budget-messages.js.map +1 -0
- package/dist/ssr/surfaces/delta-badge.js +55 -0
- package/dist/ssr/surfaces/delta-badge.js.map +1 -0
- package/dist/ssr/surfaces/index.js +2 -1
- package/dist/ssr/surfaces/index.js.map +1 -1
- package/dist/ssr/surfaces/person-color.js +2 -2
- package/dist/ssr/surfaces/person-color.js.map +1 -1
- package/dist/ssr/surfaces/stat-cell-messages.js +41 -0
- package/dist/ssr/surfaces/stat-cell-messages.js.map +1 -0
- package/dist/ssr/widgets/Dashboard.js +84 -0
- package/dist/ssr/widgets/Dashboard.js.map +1 -0
- package/dist/ssr/widgets/DashboardFrame.js +200 -0
- package/dist/ssr/widgets/DashboardFrame.js.map +1 -0
- package/dist/ssr/widgets/index.js +2 -0
- package/dist/ssr/widgets/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/Button.d.ts +1 -1
- package/dist/types/actions/CommandList.d.ts +120 -0
- package/dist/types/actions/CommandMenu.d.ts +39 -0
- package/dist/types/actions/Dropdown.d.ts +17 -0
- package/dist/types/actions/command-dock.d.ts +8 -0
- package/dist/types/actions/command-items.d.ts +134 -0
- package/dist/types/actions/command-messages.d.ts +19 -0
- package/dist/types/actions/index.d.ts +3 -0
- package/dist/types/charts/core/area.d.ts +62 -0
- package/dist/types/charts/core/calendar.d.ts +57 -0
- package/dist/types/charts/core/chart-map-data.d.ts +3 -0
- package/dist/types/charts/core/chart-messages.d.ts +5 -0
- package/dist/types/charts/core/hbar-layout.d.ts +74 -0
- package/dist/types/charts/core/hbar.d.ts +13 -0
- package/dist/types/charts/core/index.d.ts +16 -0
- package/dist/types/charts/core/inspection.d.ts +16 -0
- package/dist/types/charts/core/map.d.ts +3 -0
- package/dist/types/charts/core/registry.d.ts +33 -0
- package/dist/types/charts/core/render-size.d.ts +7 -0
- package/dist/types/charts/core/render.d.ts +37 -0
- package/dist/types/charts/core/snapshot.d.ts +27 -0
- package/dist/types/charts/core/svg-renderers.d.ts +722 -0
- package/dist/types/charts/core/svg.d.ts +20 -0
- package/dist/types/charts/core/termination.test-fixture.d.ts +1 -0
- package/dist/types/charts/core/text.d.ts +5 -0
- package/dist/types/charts/core/types.d.ts +20 -0
- package/dist/types/charts/core/waterfall.d.ts +68 -0
- package/dist/types/charts/description.d.ts +226 -0
- package/dist/types/charts.d.ts +5 -2
- package/dist/types/content/BalanceSummary.d.ts +29 -0
- package/dist/types/content/Chart.d.ts +19 -117
- package/dist/types/content/ChartExplorer.d.ts +43 -2
- package/dist/types/content/ChartRoot.d.ts +92 -0
- package/dist/types/content/ChartSnapshotView.d.ts +1 -0
- package/dist/types/content/ChartSparkline.d.ts +5 -0
- package/dist/types/content/DataTable.d.ts +28 -0
- package/dist/types/content/DataTableTools.d.ts +44 -0
- package/dist/types/content/FlowAmount.d.ts +28 -0
- package/dist/types/content/PdfViewer.d.ts +32 -0
- package/dist/types/content/balance-summary-messages.d.ts +11 -0
- package/dist/types/content/chart-bar.d.ts +95 -2
- package/dist/types/content/chart-calendar.d.ts +4 -0
- package/dist/types/content/chart-inspection-core.d.ts +21 -16
- package/dist/types/content/chart-inspection.d.ts +5 -1
- package/dist/types/content/chart-map-viewport.d.ts +1 -1
- package/dist/types/content/chart-message-catalog.d.ts +84 -0
- package/dist/types/content/chart-messages.d.ts +2 -33
- package/dist/types/content/chart-snapshot.d.ts +1 -26
- package/dist/types/content/chart-svg.d.ts +1 -1
- package/dist/types/content/chart-time-axis.d.ts +26 -0
- package/dist/types/content/data-table-columns.d.ts +72 -0
- package/dist/types/content/data-table-messages.d.ts +18 -0
- package/dist/types/content/flow-amount-messages.d.ts +11 -0
- package/dist/types/content/index.d.ts +12 -2
- package/dist/types/content/pdf-document.d.ts +5 -0
- package/dist/types/content/pdf-engine.d.ts +9 -0
- package/dist/types/content/pdf-limits.d.ts +43 -0
- package/dist/types/content/pdf-messages.d.ts +16 -0
- package/dist/types/inputs/ChoiceInputs.d.ts +4 -0
- package/dist/types/inputs/ChoiceSlider.d.ts +12 -0
- package/dist/types/inputs/DatePicker.d.ts +22 -0
- package/dist/types/inputs/PeriodPicker.d.ts +24 -0
- package/dist/types/inputs/SelectChip.d.ts +2 -0
- package/dist/types/inputs/date-picker.d.ts +6 -0
- package/dist/types/inputs/index.d.ts +8 -2
- package/dist/types/inputs/input-messages.d.ts +3 -0
- package/dist/types/inputs/markdown/MarkdownEditor.d.ts +5 -0
- package/dist/types/inputs/markdown/SlashCommands.d.ts +20 -0
- package/dist/types/inputs/period-picker-messages.d.ts +34 -0
- package/dist/types/inputs/period.d.ts +134 -0
- package/dist/types/intl/Format.d.ts +5 -0
- package/dist/types/layout/AppWorkspace.d.ts +5 -0
- package/dist/types/layout/DetailPanel.d.ts +12 -0
- package/dist/types/layout/index.d.ts +1 -1
- package/dist/types/surfaces/BudgetList.d.ts +42 -0
- package/dist/types/surfaces/DescriptionList.d.ts +5 -0
- package/dist/types/surfaces/ProgressBar.d.ts +38 -2
- package/dist/types/surfaces/StatCell.d.ts +40 -2
- package/dist/types/surfaces/StatGrid.d.ts +3 -1
- package/dist/types/surfaces/budget-messages.d.ts +30 -0
- package/dist/types/surfaces/delta-badge.d.ts +10 -0
- package/dist/types/surfaces/index.d.ts +4 -3
- package/dist/types/surfaces/person-color.d.ts +2 -2
- package/dist/types/surfaces/stat-cell-messages.d.ts +19 -0
- package/dist/types/widgets/Dashboard.d.ts +42 -0
- package/dist/types/widgets/DashboardFrame.d.ts +58 -0
- package/dist/types/widgets/index.d.ts +2 -0
- package/package.json +8 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type LinkNavigateEvent, type NavigationScrollMode } from "@k2b/ssr/nav";
|
|
2
2
|
import { type JSX } from "solid-js";
|
|
3
3
|
import { type TooltipPlacement } from "../feedback/Tooltip";
|
|
4
|
-
export type ButtonVariant = "primary" | "secondary" | "ghost" | "text" | "subtle" | "input" | "warning" | "danger" | "success" | "ai";
|
|
4
|
+
export type ButtonVariant = "primary" | "secondary" | "ghost" | "text" | "link" | "subtle" | "input" | "warning" | "danger" | "success" | "ai";
|
|
5
5
|
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
6
6
|
export type ButtonAlign = "center" | "start";
|
|
7
7
|
export type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type Accessor, type JSX } from "solid-js";
|
|
2
|
+
import { type CommandContext, type CommandGroup, type CommandItem, type CommandSource } from "./command-items";
|
|
3
|
+
/** The state of one open command list: its steps, the shown entries, and the marked one. */
|
|
4
|
+
export type CommandNavigator = ReturnType<typeof createCommandNavigator>;
|
|
5
|
+
/** The context without what the list adds itself: the query, the path, the signal, and the reports. */
|
|
6
|
+
export type CommandPlace = Omit<CommandContext, "query" | "path" | "signal" | "success" | "error">;
|
|
7
|
+
/** A list whose entries come from a promise: pending, or failed with the message of its rejection. */
|
|
8
|
+
export type CommandListLoad = {
|
|
9
|
+
state: "ready";
|
|
10
|
+
} | {
|
|
11
|
+
state: "loading";
|
|
12
|
+
} | {
|
|
13
|
+
state: "failed";
|
|
14
|
+
message?: string;
|
|
15
|
+
};
|
|
16
|
+
/** A command that returned a promise, busy while it runs. */
|
|
17
|
+
export type CommandStatus = {
|
|
18
|
+
key: string;
|
|
19
|
+
label: string;
|
|
20
|
+
state: "running";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* What a finished command reported, shown in the list's place: a confirmation, an error (with a way to try again when
|
|
24
|
+
* the command threw or rejected), or the command running again after a retry.
|
|
25
|
+
*/
|
|
26
|
+
export type CommandOutcome = {
|
|
27
|
+
state: "success";
|
|
28
|
+
message: string;
|
|
29
|
+
} | {
|
|
30
|
+
state: "error";
|
|
31
|
+
message?: string;
|
|
32
|
+
retry?: () => void;
|
|
33
|
+
} | {
|
|
34
|
+
state: "running";
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
/** A confirmation or an error stays at least this long, even when the person types on at once. */
|
|
38
|
+
export declare const COMMAND_OUTCOME_MIN_MS = 1200;
|
|
39
|
+
/** A confirmation goes by itself after this long; an error stays until the person types, retries, or presses Escape. */
|
|
40
|
+
export declare const COMMAND_OUTCOME_SUCCESS_MS = 4000;
|
|
41
|
+
/**
|
|
42
|
+
* Keeps the steps, the marked entry, and the running command of a command list. The host owns the query and the
|
|
43
|
+
* effects: `onText` places an entry's text; for an entry with `onSelect`, `beforeRun` lets the host remove its query,
|
|
44
|
+
* `context` describes the text the command acts on, and `afterRun` closes the list once the command finished.
|
|
45
|
+
* `onStep` runs after a further list opened or closed, with the new depth, so the host clears its query.
|
|
46
|
+
*/
|
|
47
|
+
export declare const createCommandNavigator: (options: {
|
|
48
|
+
items: Accessor<CommandSource>;
|
|
49
|
+
query: Accessor<string>;
|
|
50
|
+
onText: (item: CommandItem) => void;
|
|
51
|
+
/** The part of the context the host knows: the text and where the list is in it. */
|
|
52
|
+
context: () => CommandPlace;
|
|
53
|
+
/** Whether the list is open; a closed list asks no source. */
|
|
54
|
+
active: () => boolean;
|
|
55
|
+
beforeRun?: () => void;
|
|
56
|
+
/** Runs once a command finished, before its outcome shows; `outcome` tells the host to keep its place for it. */
|
|
57
|
+
afterRun: (outcome: boolean) => void;
|
|
58
|
+
onStep?: (depth: number) => void;
|
|
59
|
+
}) => {
|
|
60
|
+
query: Accessor<string>;
|
|
61
|
+
step: () => CommandItem | undefined;
|
|
62
|
+
groups: Accessor<CommandGroup[]>;
|
|
63
|
+
entries: Accessor<CommandItem[]>;
|
|
64
|
+
active: Accessor<number>;
|
|
65
|
+
setActive: (index: number) => void;
|
|
66
|
+
/** Marks the next or previous entry, wrapping; unavailable entries are passed over, as in a searchable menu. */
|
|
67
|
+
move: (delta: 1 | -1) => void;
|
|
68
|
+
edge: (which: "first" | "last") => void;
|
|
69
|
+
status: Accessor<CommandStatus | undefined>;
|
|
70
|
+
load: Accessor<CommandListLoad>;
|
|
71
|
+
/** Asks a source whose promise failed again. */
|
|
72
|
+
retry: () => number;
|
|
73
|
+
/** Whether a command's promise is pending; the list then waits for it. */
|
|
74
|
+
busy: () => boolean;
|
|
75
|
+
choose: (index?: number) => void;
|
|
76
|
+
/** Enter while entries load: chooses the first entry of this query once it arrives. */
|
|
77
|
+
chooseWhenLoaded: () => string;
|
|
78
|
+
/** Whether a choice waits for entries on their way. */
|
|
79
|
+
awaitingChoice: () => boolean;
|
|
80
|
+
/** Stops a running command: its signal aborts, and its result no longer reaches the list. */
|
|
81
|
+
abort: () => void;
|
|
82
|
+
/** What the last command reported, shown in the list's place until it clears. */
|
|
83
|
+
outcome: Accessor<CommandOutcome | undefined>;
|
|
84
|
+
/** The person typed on: the outcome clears, but not before it showed for `COMMAND_OUTCOME_MIN_MS`. */
|
|
85
|
+
typedOn: () => void;
|
|
86
|
+
/** Clears the outcome at once, for Escape or a new list; a retry still running is stopped. */
|
|
87
|
+
clearOutcome: () => void;
|
|
88
|
+
/** Leaves the second list; `false` when the first list shows. */
|
|
89
|
+
back: () => boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Forgets steps, mark, and status. A running command goes on, but its result no longer reaches the list, so a
|
|
92
|
+
* retry's running line goes too; a reported outcome stays until it clears.
|
|
93
|
+
*/
|
|
94
|
+
reset: () => void;
|
|
95
|
+
};
|
|
96
|
+
export declare const commandOptionId: (listId: string, index: number) => string;
|
|
97
|
+
/**
|
|
98
|
+
* The rows of a command list as a list box, with the menu's own rows and headings. The focus stays in the host's
|
|
99
|
+
* field, which points at the marked row as its active descendant; the rows only answer the pointer.
|
|
100
|
+
*/
|
|
101
|
+
export declare function CommandList(props: {
|
|
102
|
+
navigator: CommandNavigator;
|
|
103
|
+
id: string;
|
|
104
|
+
/** Names the first list; a second list is named by its step. */
|
|
105
|
+
label: string;
|
|
106
|
+
/** Shows the step's label beside the back control, for a host without its own search field. */
|
|
107
|
+
stepHint?: boolean;
|
|
108
|
+
/** Says how many entries match, after the query changed. */
|
|
109
|
+
query: Accessor<string>;
|
|
110
|
+
/** Content between the back control and the list, such as a search field. */
|
|
111
|
+
header?: JSX.Element;
|
|
112
|
+
/** Runs after Retry or Close on an outcome, so the host puts the focus back where the person writes. */
|
|
113
|
+
onOutcomeAction?: () => void;
|
|
114
|
+
}): JSX.Element;
|
|
115
|
+
/**
|
|
116
|
+
* The keys of a command list in its host's field: Up, Down, Home, and End mark; Enter and Tab choose; Escape and
|
|
117
|
+
* Backspace on an empty query leave a second list. Returns whether the key was used; Escape in the first list is left
|
|
118
|
+
* to the host, which closes.
|
|
119
|
+
*/
|
|
120
|
+
export declare const commandListKey: (nav: CommandNavigator, event: KeyboardEvent, query: string) => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type CommandSource } from "./command-items";
|
|
3
|
+
import { Dropdown, type DropdownAnchor, type DropdownPosition, type DropdownReturnFocus } from "./Dropdown";
|
|
4
|
+
export type CommandMenuProps = {
|
|
5
|
+
/** The same entries as `MarkdownEditor`'s `commands`, so the slash menu, a "+" button, and a chip offer one list. */
|
|
6
|
+
items: CommandSource;
|
|
7
|
+
/** Names the menu and its first list, such as "Add to message". */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Names the search field and is its hint, such as "Search commands". A second list shows its own label there. */
|
|
10
|
+
search: string;
|
|
11
|
+
/**
|
|
12
|
+
* The field the commands act on, such as the composer's textarea beside a "+" button. Its text and selection are the
|
|
13
|
+
* `context` of an `onSelect`, and `context.insert` and entries with `text` write into it as typing would.
|
|
14
|
+
*/
|
|
15
|
+
target?: HTMLTextAreaElement | HTMLInputElement;
|
|
16
|
+
/**
|
|
17
|
+
* The composer box the menu docks to, as the slash list does: as wide as the box, just above it, or below it when
|
|
18
|
+
* there is more room there. Without it, the menu opens beside its trigger.
|
|
19
|
+
*/
|
|
20
|
+
dock?: HTMLElement;
|
|
21
|
+
/** Receives inserted text when there is no `target`, such as a snippet the host places itself. */
|
|
22
|
+
onInsert?: (text: string) => void;
|
|
23
|
+
/** The `CommandMenu.Trigger`; leave it out for a menu opened through `openAt` or `attach`. */
|
|
24
|
+
children?: JSX.Element;
|
|
25
|
+
position?: DropdownPosition;
|
|
26
|
+
align?: "start" | "end";
|
|
27
|
+
/** Receives `open`, which shows the menu beside `anchor` without its trigger; focus returns to `returnFocus`. */
|
|
28
|
+
openAt?: (open: (anchor: DropdownAnchor, returnFocus?: DropdownReturnFocus) => void) => void;
|
|
29
|
+
/** Adopts an element rendered elsewhere, such as a server-rendered chip, as the trigger. */
|
|
30
|
+
attach?: () => HTMLElement | null | undefined;
|
|
31
|
+
onOpenChange?: (open: boolean) => void;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
class?: string;
|
|
34
|
+
};
|
|
35
|
+
type CommandMenuComponent = ((props: CommandMenuProps) => JSX.Element) & {
|
|
36
|
+
Trigger: typeof Dropdown.Trigger;
|
|
37
|
+
};
|
|
38
|
+
export declare const CommandMenu: CommandMenuComponent;
|
|
39
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import { type TooltipPlacement } from "../feedback/Tooltip";
|
|
3
3
|
import { type ButtonProps, type ButtonSize, type ButtonVariant } from "./Button";
|
|
4
|
+
import { type MenuSearchApi } from "./menu-search";
|
|
4
5
|
export type DropdownPosition = "bottom-right" | "bottom-left" | "top-right" | "top-left" | "right-start";
|
|
5
6
|
/** Where a menu opened without its trigger appears: an element, or any box such as a point inside one. */
|
|
6
7
|
export type DropdownAnchor = {
|
|
@@ -198,10 +199,26 @@ export declare function DropdownItems(props: {
|
|
|
198
199
|
close: (restoreFocus?: boolean) => void;
|
|
199
200
|
role?: "menuitem" | "option";
|
|
200
201
|
}): JSX.Element;
|
|
202
|
+
/**
|
|
203
|
+
* Internal: content in place of the entries, as `CommandMenu` renders its command list. It reports where the focus
|
|
204
|
+
* goes as the menu opens, like the search field, and `open` tells it when the menu closed.
|
|
205
|
+
*/
|
|
206
|
+
export type DropdownBody = (props: {
|
|
207
|
+
close: (restoreFocus?: boolean) => void;
|
|
208
|
+
open: () => boolean;
|
|
209
|
+
api: (api: MenuSearchApi) => void;
|
|
210
|
+
}) => JSX.Element;
|
|
211
|
+
/** Accessible top-layer menu with explicit trigger ownership. */
|
|
212
|
+
declare function DropdownRoot(props: DropdownProps & {
|
|
213
|
+
body?: DropdownBody;
|
|
214
|
+
placeMenu?: (menu: HTMLElement) => void;
|
|
215
|
+
}): JSX.Element;
|
|
201
216
|
type DropdownComponent = ((props: DropdownProps) => JSX.Element) & {
|
|
202
217
|
Root: (props: DropdownProps) => JSX.Element;
|
|
203
218
|
Trigger: (props: DropdownTriggerProps) => JSX.Element;
|
|
204
219
|
Item: (props: DropdownItemProps) => JSX.Element;
|
|
205
220
|
};
|
|
221
|
+
/** Internal: the menu with a `body`, for `CommandMenu`. */
|
|
222
|
+
export declare const DropdownShell: typeof DropdownRoot;
|
|
206
223
|
export declare const Dropdown: DropdownComponent;
|
|
207
224
|
export default Dropdown;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docks a command list to its composer: exactly as wide as the composer and flush with its edges, just above it, or
|
|
3
|
+
* below it when the visible viewport leaves more room there, as for a composer at the top. The visible viewport counts,
|
|
4
|
+
* so a phone's open keyboard does not hide the list. The list scrolls within the room it gets.
|
|
5
|
+
*/
|
|
6
|
+
export declare const dockCommandList: (list: HTMLElement, composer: Element) => void;
|
|
7
|
+
/** Calls `follow` whenever the composer or the visible viewport moves or changes size; returns the cleanup. */
|
|
8
|
+
export declare const followComposer: (composer: Element, follow: () => void) => () => void;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
/**
|
|
3
|
+
* One entry of a command list: the slash menu of `MarkdownEditor` and `CommandMenu` read the same entries, so a
|
|
4
|
+
* composer's `/`, its "+" button, and a chip offer one list.
|
|
5
|
+
*/
|
|
6
|
+
/** Where a slash at `start` stands in `value`: the text before it and whether only whitespace precedes it, overall or on its line. */
|
|
7
|
+
export declare const commandPlace: (value: string, start: number, end: number) => {
|
|
8
|
+
text: string;
|
|
9
|
+
before: string;
|
|
10
|
+
atStart: boolean;
|
|
11
|
+
lineStart: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type CommandItem = {
|
|
14
|
+
label: string;
|
|
15
|
+
/** Heading above the entry. Entries of one group stand together, in the order the groups first appear. */
|
|
16
|
+
group?: string;
|
|
17
|
+
/** One quiet line of what the entry does, after the label on the same line, such as "Preis aus dem Text prüfen". */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** Quiet text at the end of the row, such as what a person can type: `/telefonat`. It is searched, too. */
|
|
20
|
+
hint?: string;
|
|
21
|
+
/** Tabler icon class, such as `ti ti-phone`. */
|
|
22
|
+
icon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* An image at icon size in place of the icon, such as a service's logo: a URL, or one for each theme when the logo
|
|
25
|
+
* needs a light variant on dark surfaces. It is decorative; the label names the entry.
|
|
26
|
+
*/
|
|
27
|
+
image?: string | {
|
|
28
|
+
light: string;
|
|
29
|
+
dark: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Renders the start of the row in place of the icon, such as an avatar or a tag's color. A function, so each row
|
|
33
|
+
* gets its own element.
|
|
34
|
+
*/
|
|
35
|
+
leading?: () => JSX.Element;
|
|
36
|
+
/** Further words that find the entry, such as "anruf" for "Phone call". */
|
|
37
|
+
keywords?: readonly string[];
|
|
38
|
+
/** Unavailable now: the entry stays in the list, greyed, with this one-line reason, and cannot be chosen. */
|
|
39
|
+
disabled?: string;
|
|
40
|
+
/** Stable key, when two entries share group and label. */
|
|
41
|
+
id?: string;
|
|
42
|
+
} & ({
|
|
43
|
+
/**
|
|
44
|
+
* Runs when the entry is chosen, with the text it acts on. In the editor, the typed `/query` has left the text
|
|
45
|
+
* first. A returned promise keeps the list open with the entry busy; any other result counts as done; a rejection shows its message on the entry,
|
|
46
|
+
* which can then run again, and Escape aborts `context.signal`.
|
|
47
|
+
*/
|
|
48
|
+
onSelect: (context: CommandContext) => unknown;
|
|
49
|
+
text?: never;
|
|
50
|
+
next?: never;
|
|
51
|
+
} | {
|
|
52
|
+
/** Text that takes the place of the typed `/query`; `CommandMenu` hands it to `onInsert`. */
|
|
53
|
+
text: string;
|
|
54
|
+
onSelect?: never;
|
|
55
|
+
next?: never;
|
|
56
|
+
} | {
|
|
57
|
+
/** A second list in the same popover, such as people to assign. */
|
|
58
|
+
next: CommandStep;
|
|
59
|
+
onSelect?: never;
|
|
60
|
+
text?: never;
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* Where a command list is and what it acts on: one context for the entries of every level and for `onSelect`. In
|
|
64
|
+
* `SlashCommands` the text is the editor's, without the typed `/query`; in `CommandMenu` it is the text of its `target`
|
|
65
|
+
* field, or empty without one.
|
|
66
|
+
*/
|
|
67
|
+
export type CommandContext = {
|
|
68
|
+
/** What the person typed after `/`, or into the menu's search field. */
|
|
69
|
+
query: string;
|
|
70
|
+
/** The whole text without the typed `/query`. */
|
|
71
|
+
text: string;
|
|
72
|
+
/** The text before the slash, or before the caret in `CommandMenu`. */
|
|
73
|
+
before: string;
|
|
74
|
+
/** Whether the slash is the first character of the text, leading whitespace aside. */
|
|
75
|
+
atStart: boolean;
|
|
76
|
+
/** Whether the slash starts a line, leading whitespace aside. */
|
|
77
|
+
lineStart: boolean;
|
|
78
|
+
/** The selection in `text`; `start === end` is the caret. */
|
|
79
|
+
selection: {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
};
|
|
83
|
+
/** The entries chosen so far on the way to this level, such as `[assign, person]` on the third. */
|
|
84
|
+
path: readonly CommandItem[];
|
|
85
|
+
/**
|
|
86
|
+
* Puts text at the caret in place of the selection, as typing would, so undo keeps working. Without a `target`,
|
|
87
|
+
* `CommandMenu` hands it to `onInsert`. Meant for `onSelect`.
|
|
88
|
+
*/
|
|
89
|
+
insert: (text: string) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Reports what a command did, such as "Valentin Brandt zugewiesen": after the command finished, the list gives way to
|
|
92
|
+
* a short confirmation in the same place. Meant for `onSelect`; an entry source has its own loading and failure.
|
|
93
|
+
*/
|
|
94
|
+
success: (message: string) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Reports why a command could not do it, such as "Keine Artikelnummer im Text"; it stays until the person types on
|
|
97
|
+
* or presses Escape. A command that throws or rejects reports its error itself, with a way to try again.
|
|
98
|
+
*/
|
|
99
|
+
error: (message: string) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Aborts when the result is no longer wanted: a new query replaces a pending list, or the person closes the list
|
|
102
|
+
* with Escape before a command's promise settled.
|
|
103
|
+
*/
|
|
104
|
+
signal: AbortSignal;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* The entries of a list: a list, or a function of the context that decides which entries there are in this place, at
|
|
108
|
+
* once or as a promise, such as templates only at the start of the text or people from a server search. Either way the
|
|
109
|
+
* list filters them by the query; give server matches the words they matched on as `keywords`.
|
|
110
|
+
*/
|
|
111
|
+
export type CommandSource = readonly CommandItem[] | ((context: CommandContext) => readonly CommandItem[] | Promise<readonly CommandItem[]>);
|
|
112
|
+
/** A further list in the same place, as deep as needed. Escape, or Backspace on an empty query, goes back. */
|
|
113
|
+
export type CommandStep = {
|
|
114
|
+
/** Names the list and is the search hint, such as "Search person". */
|
|
115
|
+
label: string;
|
|
116
|
+
items: CommandSource;
|
|
117
|
+
};
|
|
118
|
+
export type CommandGroup = {
|
|
119
|
+
label?: string;
|
|
120
|
+
entries: {
|
|
121
|
+
item: CommandItem;
|
|
122
|
+
index: number;
|
|
123
|
+
}[];
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* The entries whose label, hint, or keywords contain every word of the query, ignoring case and accents, in their
|
|
127
|
+
* order. A blank query keeps all.
|
|
128
|
+
*/
|
|
129
|
+
export declare const filterCommandItems: (items: readonly CommandItem[], query: string) => readonly CommandItem[];
|
|
130
|
+
/** The entries of a source in a context, filtered by its query; a promise resolves to the filtered entries. */
|
|
131
|
+
export declare const resolveCommandSource: (source: CommandSource, context: CommandContext) => readonly CommandItem[] | Promise<readonly CommandItem[]>;
|
|
132
|
+
/** Groups in the order they first appear; `index` is the entry's place in the order the list shows. */
|
|
133
|
+
export declare const groupCommandItems: (items: readonly CommandItem[]) => CommandGroup[];
|
|
134
|
+
export declare const commandKey: (item: CommandItem) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const commandMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
commands: string;
|
|
3
|
+
back: ({ label }: {
|
|
4
|
+
label: string;
|
|
5
|
+
}) => string;
|
|
6
|
+
running: ({ label }: {
|
|
7
|
+
label: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
failed: string;
|
|
10
|
+
loading: string;
|
|
11
|
+
loadingChoice: string;
|
|
12
|
+
loadFailed: string;
|
|
13
|
+
done: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type CommandMessages = ReturnType<(typeof commandMessages)["resolve"]>["t"];
|
|
16
|
+
/** Resolved from the inherited render locale. */
|
|
17
|
+
export declare const useCommandMessages: () => (() => CommandMessages);
|
|
18
|
+
export declare const checkCommandMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export type { ButtonAlign, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant, IconButtonLinkProps, IconButtonProps } from "./Button";
|
|
2
2
|
export { Button, ButtonLink, IconButton, IconButtonLink } from "./Button";
|
|
3
|
+
export type { CommandMenuProps } from "./CommandMenu";
|
|
4
|
+
export { CommandMenu } from "./CommandMenu";
|
|
3
5
|
export type { ContextMenuProps } from "./ContextMenu";
|
|
4
6
|
export { ContextMenu } from "./ContextMenu";
|
|
5
7
|
export type { CopyButtonProps, CopyButtonValue } from "./CopyButton";
|
|
6
8
|
export { CopyButton } from "./CopyButton";
|
|
9
|
+
export type { CommandContext, CommandItem, CommandSource, CommandStep } from "./command-items";
|
|
7
10
|
export type { DisclosureProps } from "./Disclosure";
|
|
8
11
|
export { Disclosure } from "./Disclosure";
|
|
9
12
|
export type { DragPayload, DragSourceProps, DropTargetProps } from "./DragAndDrop";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type AreaOptions = {
|
|
2
|
+
layout: "stacked";
|
|
3
|
+
normalize?: boolean;
|
|
4
|
+
x: (string | number)[];
|
|
5
|
+
series: {
|
|
6
|
+
label: string;
|
|
7
|
+
data: (number | null)[];
|
|
8
|
+
}[];
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
legend?: boolean;
|
|
13
|
+
format?: (value: number) => string;
|
|
14
|
+
locale?: string;
|
|
15
|
+
/** Narrowest displayed width in CSS pixels; measured hosts pass their actual width. */
|
|
16
|
+
displayWidth?: number;
|
|
17
|
+
};
|
|
18
|
+
export type AreaPoint = {
|
|
19
|
+
index: number;
|
|
20
|
+
amount: number;
|
|
21
|
+
share: number;
|
|
22
|
+
lower: number;
|
|
23
|
+
upper: number;
|
|
24
|
+
};
|
|
25
|
+
/** Missing observations interrupt the entire stack; zero-sum columns are gaps only in normalized mode. */
|
|
26
|
+
export declare function areaLayout(spec: AreaOptions, size: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}): {
|
|
30
|
+
layers: (AreaPoint | null)[][];
|
|
31
|
+
totals: (number | null)[];
|
|
32
|
+
max: number;
|
|
33
|
+
ticks: number[];
|
|
34
|
+
format: {
|
|
35
|
+
(value: number): string;
|
|
36
|
+
(value: number | bigint): string;
|
|
37
|
+
(value: number | bigint | Intl.StringNumericLiteral): string;
|
|
38
|
+
};
|
|
39
|
+
percent: {
|
|
40
|
+
(value: number): string;
|
|
41
|
+
(value: number | bigint): string;
|
|
42
|
+
(value: number | bigint | Intl.StringNumericLiteral): string;
|
|
43
|
+
};
|
|
44
|
+
axisFormat: {
|
|
45
|
+
(value: number): string;
|
|
46
|
+
(value: number | bigint): string;
|
|
47
|
+
(value: number | bigint | Intl.StringNumericLiteral): string;
|
|
48
|
+
};
|
|
49
|
+
xFormat: (value: string | number) => string;
|
|
50
|
+
ratio: number;
|
|
51
|
+
left: number;
|
|
52
|
+
right: number;
|
|
53
|
+
top: number;
|
|
54
|
+
bottom: number;
|
|
55
|
+
projectX: (index: number) => number;
|
|
56
|
+
projectY: (value: number) => number;
|
|
57
|
+
};
|
|
58
|
+
export declare function renderAreaSvg(spec: AreaOptions & {
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
|
+
inspect?: boolean;
|
|
62
|
+
}): string;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type ChartOptions, type HeatmapOptions } from "./svg-renderers";
|
|
2
|
+
export type CalendarHeatmapOptions = ChartOptions & {
|
|
3
|
+
layout: "calendar";
|
|
4
|
+
data: [string, number | null][];
|
|
5
|
+
scale: "sequential" | "diverging";
|
|
6
|
+
/** Unit shown beside each tooltip value. */
|
|
7
|
+
label?: string;
|
|
8
|
+
locale?: string;
|
|
9
|
+
format?: (value: number) => string;
|
|
10
|
+
displayWidth?: number;
|
|
11
|
+
};
|
|
12
|
+
export type HeatmapChartOptions = (HeatmapOptions & {
|
|
13
|
+
layout?: undefined;
|
|
14
|
+
}) | CalendarHeatmapOptions;
|
|
15
|
+
/** Bound sparse inputs too: three leap years of daily observations. */
|
|
16
|
+
export declare const CALENDAR_MAX_DAYS = 1098;
|
|
17
|
+
export declare function calendarDay(value: string): number;
|
|
18
|
+
/** Intl uses 1..7, JS dates use 0..6. Old engines use an explicit locale fallback. */
|
|
19
|
+
export declare function calendarWeekStart(locale?: string): number;
|
|
20
|
+
export declare const calendarWords: (locale?: string) => {
|
|
21
|
+
day: string;
|
|
22
|
+
less: string;
|
|
23
|
+
more: string;
|
|
24
|
+
moreIn: string;
|
|
25
|
+
moreOut: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function calendarLayout(spec: CalendarHeatmapOptions, size?: {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}): {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
minWidth: number;
|
|
34
|
+
firstMonday: number;
|
|
35
|
+
weekStart: number;
|
|
36
|
+
weeks: number;
|
|
37
|
+
min: number;
|
|
38
|
+
max: number;
|
|
39
|
+
absMax: number;
|
|
40
|
+
cell: number;
|
|
41
|
+
cellWidth: number;
|
|
42
|
+
top: number;
|
|
43
|
+
cells: {
|
|
44
|
+
date: string;
|
|
45
|
+
value: number;
|
|
46
|
+
index: number;
|
|
47
|
+
time: number;
|
|
48
|
+
week: number;
|
|
49
|
+
weekday: number;
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
intensity: number;
|
|
53
|
+
color: string;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
export declare function renderCalendarSvg(spec: CalendarHeatmapOptions): string;
|
|
57
|
+
export declare const renderHeatmapSvg: (spec: HeatmapChartOptions) => string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const WORLD_MAP_WIDTH = 1000;
|
|
2
|
+
export declare const WORLD_MAP_HEIGHT = 500;
|
|
3
|
+
export declare const WORLD_LAND_PATH = "M312 400L319 402L318 403L314 402L311 404L308 404L299 401L293 397L302 400L305 397L307 396L310 397ZM337 392L340 393L339 394L335 395L334 394L331 395L330 394L333 392L336 393ZM695 388L691 388L691 385L696 387ZM904 363L907 364L912 364L911 370L910 369L908 371L906 371L902 363ZM981 364L981 365L983 364L984 365L980 370L981 372L976 373L974 378L970 380L963 378L964 375L974 370L980 362ZM985 350L987 353L987 351L989 354L991 355L996 355L994 359L992 359L989 365L987 366L985 365L987 362L986 361L983 360L985 358L985 354L980 346L984 348ZM964 312L963 312L960 310L956 306L963 310ZM995 298L996 300L993 300L994 298L995 299ZM998 297L996 297L996 296L1000 295L1000 296ZM0 296L1 295ZM966 296L965 296L964 294ZM964 291L965 294L963 294L963 291ZM639 288L640 294L639 294L639 293L638 294L638 297L631 319L626 321L622 319L620 311L623 306L622 298L623 295L629 294L633 291L633 288L634 288L637 283L638 286ZM899 288L900 290L902 289L904 292L907 303L913 307L916 312L919 312L919 315L925 320L925 322L925 326L927 328L925 338L918 349L917 354L912 355L906 358L902 357L903 355L899 358L891 356L888 350L884 349L885 348L884 346L883 347L880 348L883 343L883 341L878 347L876 346L873 341L865 337L850 339L845 342L843 344L833 344L828 347L824 347L820 345L820 343L821 342L821 338L815 323L816 324L815 321L817 323L815 318L817 310L817 313L818 311L824 308L836 305L840 301L840 298L842 296L843 298L844 297L843 296L844 295L845 295L845 293L849 290L853 288L857 291L860 292L859 290L863 285L868 284L868 282L866 281L876 284L879 283L880 284L878 287L876 292L889 299L891 298L892 296L894 284L896 280L899 287ZM950 279L951 280L949 280L948 278L950 279ZM835 278L830 277L833 276L835 278ZM947 277L944 277L944 276L946 277ZM949 277L946 273L948 275ZM846 278L843 278L844 276L847 274L854 273L847 276ZM828 272L831 274L824 275L825 273L827 273ZM841 272L841 274L833 274L833 273L835 273L839 274ZM944 273L939 271L943 272ZM938 270L935 268L937 270ZM802 269L807 269L808 268L821 273L818 274L801 272L793 269L795 266L801 268ZM874 267L873 269L873 267L874 265L874 266ZM933 269L931 268L929 264L933 268ZM922 265L917 268L912 266L912 265L916 265L917 264L917 265L919 265L921 263L921 262L923 262L923 264ZM853 260L852 261L850 259L853 259ZM862 259L863 261L855 259L856 258L859 258ZM925 262L925 263L923 261L919 258L921 258L925 261ZM873 253L873 258L876 259L879 256L884 255L902 261L906 265L910 267L911 268L908 269L909 271L913 275L915 275L915 276L919 279L911 278L906 272L902 271L898 273L898 275L896 276L892 275L889 273L886 272L882 273L885 270L883 265L871 260L869 261L869 259L867 258L871 256L867 256L863 253L868 251L872 252ZM848 246L846 249L844 249L834 249L833 251L836 254L843 252L842 253L841 253L838 255L840 259L842 265L841 266L840 265L841 262L838 263L837 263L838 262L836 260L836 257L834 258L835 265L832 265L832 260L830 258L833 248L836 246L845 247L847 245ZM857 247L857 249L856 249L856 252L854 247L855 244L856 245L857 246ZM794 266L791 266L785 262L776 249L774 245L765 235L771 235L780 244L782 244L785 246L788 250L787 252L790 253L791 257L793 257L795 259L794 262ZM827 245L831 247L827 248L826 252L824 254L823 261L822 260L819 261L818 260L815 259L811 260L810 258L806 258L806 254L803 251L803 246L805 244L809 245L809 243L814 241L824 231L827 233L831 235L826 241L828 244ZM851 227L851 230L851 233L850 230L848 231L849 233L848 234L845 233L844 231L845 230L843 228L839 231L839 230L840 228L843 226L844 227L849 225L848 223L851 226ZM726 233L723 233L722 231L721 227L723 223L727 229L727 232ZM331 222L328 222L329 220L331 220ZM844 221L842 225L840 223L842 220L843 220L843 221L845 219ZM829 224L825 227L832 218L832 221L831 222ZM839 217L842 218L839 221L839 218ZM849 216L849 219L847 219L848 221L847 222L845 218L847 218L847 217L845 215L848 215ZM838 214L837 216L834 213L837 213ZM837 199L840 199L840 203L838 206L838 210L844 212L845 215L841 212L841 213L839 212L835 212L836 210L835 209L835 210L834 208L833 205L834 205L835 199ZM318 199L313 200L314 199L317 199ZM286 200L282 199L286 199L288 200ZM298 195L306 195L310 198L309 199L304 199L302 201L299 199L295 200L293 198L299 198L298 196L296 195L297 195ZM806 198L804 199L802 199L802 196L808 194L808 195L807 197ZM68 197L67 197L67 194L70 196L69 197ZM66 193L65 192L67 192ZM65 191L63 191ZM62 191L61 191L61 190ZM57 189L56 189L57 188ZM279 187L282 187L290 192L294 194L284 195L286 193L283 192L281 190L272 188L273 187L264 189L269 186L276 186ZM285 184L282 182L283 180L285 182ZM837 187L835 189L834 185L837 180L839 181L838 182ZM284 176L281 177L281 176L284 175ZM286 176L286 178L284 175ZM874 155L873 158L872 157L869 159L868 158L869 155L872 155ZM596 151L592 154L590 152L594 152ZM566 151L573 152L569 153L565 152ZM543 144L542 148L535 146L535 144L541 144ZM526 136L527 137L527 141L524 142L523 136L524 136ZM892 147L890 152L881 154L877 157L875 156L875 154L864 156L867 158L865 163L863 164L862 163L862 160L859 158L868 152L877 151L880 146L882 148L887 144L889 140L889 137L890 136L893 135L894 141L892 144ZM527 133L526 135L524 133L526 131ZM900 127L902 128L904 127L904 130L900 131L898 133L893 131L892 134L889 135L888 132L890 130L893 129L894 123L898 126ZM323 121L328 121L325 122L322 121L321 120L322 119ZM328 114L321 111L328 113ZM157 115L151 114L143 110L151 110L156 114ZM344 109L342 112L344 111L346 111L345 112L351 113L351 115L353 115L354 118L353 120L350 120L349 117L346 120L344 120L346 118L344 118L335 118L335 117L337 116L335 115L341 109L345 107L346 107ZM131 100L134 100L133 103L136 105L130 102L130 100ZM899 109L902 114L898 113L896 117L899 120L899 122L897 120L895 122L895 108L893 106L894 102L896 101L895 99L896 99L898 106ZM481 105L476 106L472 106L475 103L473 100L479 97L481 97L484 98L483 100L483 102ZM535 96L534 98L531 96L530 95L534 94ZM75 91L72 92L70 90L74 89L77 90ZM492 87L489 90L495 90L491 95L494 95L497 98L499 99L501 103L505 104L503 106L504 108L502 109L492 109L485 111L484 111L491 107L486 107L485 106L488 105L487 103L487 101L491 102L492 100L490 98L487 98L486 95L484 96L484 94L483 92L486 87L488 87ZM40 84L35 83L40 83ZM280 77L279 79L277 78L279 77ZM273 76L269 77L267 77L269 75L273 75ZM23 73L31 74L29 75L23 74ZM263 68L264 69L265 68L277 73L275 74L269 72L262 75L261 73L258 73L260 72L261 67ZM460 65L459 67L462 69L459 71L448 74L437 72L440 71L433 70L438 69L438 68L432 68L434 66L439 66L443 67L455 65ZM289 63L286 64L285 62L287 61L289 60L291 61L291 63ZM14 65L16 66L15 64L23 64L28 67L21 68L21 71L20 72L11 70L11 68L5 68L3 67L4 66L0 67L2 68L0 70L0 58L14 63ZM234 58L233 59L223 57L227 55L233 57ZM1000 53L996 53L1000 51ZM4 53L0 53L0 51L6 52ZM248 57L248 60L252 58L256 59L255 61L257 63L262 59L262 56L270 57L274 58L274 59L272 61L274 62L274 64L268 66L262 65L257 70L254 72L250 72L248 73L248 75L245 75L241 78L238 81L237 86L241 87L244 91L248 91L264 96L271 97L272 102L274 105L278 108L280 107L282 104L280 100L278 98L283 97L287 93L285 89L282 87L285 84L283 77L295 77L302 80L307 80L308 86L312 88L316 87L321 82L329 92L328 94L341 98L342 101L345 102L345 105L333 110L316 110L310 114L302 120L305 119L309 116L319 113L322 115L319 116L321 122L325 123L329 123L332 119L332 121L334 122L318 129L316 129L316 126L321 124L314 125L314 126L305 129L304 130L303 132L306 134L295 136L300 136L295 137L292 142L290 140L292 143L289 147L290 145L288 141L288 144L286 144L288 145L290 151L288 153L280 157L274 163L274 167L278 175L277 180L275 180L273 178L270 173L270 169L266 166L264 168L260 166L252 166L251 166L252 169L250 169L245 168L239 167L232 171L230 174L230 178L228 188L233 196L238 200L244 198L248 196L249 192L258 190L259 192L257 195L256 199L255 199L255 204L253 206L264 206L268 208L269 210L267 219L272 225L274 226L279 223L287 226L290 224L290 221L292 219L296 219L301 215L302 216L302 218L300 218L301 221L300 223L301 225L302 225L303 223L302 220L305 218L306 216L311 221L316 220L320 222L321 220L328 220L326 221L327 222L331 224L331 226L336 228L338 231L341 233L350 234L357 238L360 245L361 245L361 247L359 249L360 250L365 251L365 253L367 252L375 254L377 256L376 257L379 257L389 258L397 263L401 264L404 270L402 275L393 286L391 300L386 311L383 314L376 315L368 319L365 322L364 330L351 346L347 347L344 347L338 344L338 346L341 348L341 350L342 351L342 353L340 356L335 358L327 358L327 363L326 364L319 364L320 367L321 368L323 367L324 368L319 371L318 375L313 377L312 379L318 381L317 384L313 385L312 389L308 391L311 395L307 395L303 397L303 400L298 399L292 395L290 385L291 383L294 380L290 380L293 377L293 373L297 373L298 368L296 367L295 370L294 370L297 359L296 353L297 353L302 340L301 330L303 327L305 305L305 301L301 298L289 291L278 270L274 267L275 266L274 263L278 257L278 256L277 257L275 256L275 253L278 248L281 246L282 243L284 243L286 239L285 239L285 231L283 229L283 227L279 225L276 228L278 229L275 230L275 228L268 227L268 225L264 222L264 223L262 222L262 219L256 214L257 214L257 213L254 213L247 211L237 205L232 207L212 199L207 195L206 193L208 190L205 187L196 179L196 177L193 175L193 173L188 170L186 163L181 162L181 166L190 176L193 183L194 183L196 186L194 187L188 181L188 178L180 173L182 173L183 171L179 168L174 158L171 155L165 154L154 138L154 131L156 124L154 116L158 117L159 119L159 114L146 109L144 106L145 105L141 103L141 101L133 96L133 93L129 91L128 89L120 88L111 85L100 83L91 81L88 81L89 83L79 86L79 81L82 80L72 85L74 86L72 88L66 90L60 94L42 99L62 90L64 86L58 88L55 86L50 87L50 84L49 83L45 84L41 82L41 80L39 79L43 75L47 75L53 73L51 71L53 70L42 71L38 70L33 68L43 65L45 65L45 66L51 66L37 60L38 59L47 57L50 55L65 52L71 54L101 55L121 59L127 57L131 57L139 55L141 56L144 54L151 57L154 55L155 57L163 56L184 60L180 61L195 61L198 63L201 61L198 60L200 59L205 59L210 61L218 62L227 62L226 60L229 60L233 60L233 63L235 61L237 61L238 58L232 55L232 52L236 50L242 52L246 55L243 56ZM183 47L181 48L188 47L192 49L195 47L197 48L199 51L201 50L199 47L204 47L207 48L210 53L219 55L219 57L215 57L216 58L215 59L206 58L185 60L184 58L177 58L174 56L188 55L172 54L171 53L177 52L168 51L173 48L180 46ZM210 46L207 48L203 46L208 45ZM288 47L288 48L279 48L275 46L277 45L283 45ZM260 47L262 49L264 46L271 45L276 48L276 50L284 48L294 51L294 52L299 51L302 53L309 54L314 58L309 59L320 62L324 64L328 64L327 66L322 69L315 66L311 66L311 68L319 71L320 74L319 76L309 73L316 78L303 75L299 74L300 73L292 70L292 71L284 72L282 71L284 69L295 68L294 67L298 63L297 62L286 59L288 58L281 55L274 56L264 56L254 54L251 53L254 52L250 52L249 49L252 47L262 45ZM221 45L230 45L230 46L228 47L232 48L231 51L224 52L215 49L215 48L221 48L218 46ZM899 47L889 46L895 45L899 46ZM241 48L238 50L235 50L233 46L237 44L249 45L244 47ZM165 52L158 53L150 50L156 45L153 44L173 44L179 46L165 51ZM919 41L915 43L906 41L907 40L912 41ZM240 42L238 43L231 42L237 40L239 41ZM903 40L901 42L886 43L880 41L882 39L893 39ZM226 37L229 38L227 42L223 42L220 42L220 40L215 40L215 38L226 37ZM199 38L201 39L206 39L206 40L205 42L188 43L184 43L184 42L189 41L173 41L179 38L197 40L193 38L198 37ZM660 54L649 53L648 52L643 51L643 50L646 49L646 48L651 45L649 45L655 43L655 41L670 38L689 36L691 37L662 44L654 49L655 51ZM237 36L246 37L248 38L247 39L252 40L275 40L278 42L272 43L255 43L243 42L242 39L230 37L231 36ZM177 34L177 36L175 37L163 39L159 39L169 35L173 35ZM797 36L798 38L809 37L817 39L816 41L804 44L814 45L815 46L821 45L842 47L842 45L853 46L857 47L858 49L857 50L865 53L867 50L872 52L889 51L887 49L890 48L915 49L925 53L942 53L944 54L944 56L947 57L966 57L971 59L974 58L972 57L973 55L988 56L1000 58L1000 70L993 71L998 75L998 77L993 76L982 79L973 84L969 82L962 84L961 83L958 84L954 84L950 88L950 89L953 90L953 94L950 94L949 96L950 98L945 99L945 102L940 103L940 106L936 108L932 96L933 92L936 89L940 89L955 80L957 76L953 76L952 79L945 82L943 78L935 79L928 84L931 86L920 87L920 85L916 84L913 86L895 86L875 98L880 98L881 100L884 101L886 99L889 99L893 103L893 105L891 108L889 115L884 121L875 129L871 131L867 130L861 133L860 136L854 140L854 141L857 143L860 148L859 153L851 154L850 148L852 148L850 145L848 145L846 144L848 140L845 139L836 142L839 138L838 136L831 141L828 141L826 142L828 144L830 145L830 146L833 147L836 145L840 146L840 147L836 148L831 153L834 155L839 162L839 164L837 165L839 167L838 172L836 172L830 182L822 187L817 188L816 187L808 191L807 193L805 194L805 191L801 190L794 195L794 197L802 208L804 213L803 218L792 226L791 224L792 222L787 220L785 216L780 215L780 213L778 213L776 224L777 224L779 229L786 235L790 246L788 247L782 242L778 232L774 227L773 228L774 218L770 203L765 206L762 205L762 199L760 195L757 193L754 187L751 187L751 189L747 189L747 190L742 190L742 192L740 194L736 196L728 203L728 204L723 206L722 221L720 221L719 223L720 224L717 225L715 228L713 225L707 209L704 206L702 191L696 192L692 189L693 188L693 187L687 183L684 179L671 180L659 179L658 175L657 175L652 176L643 173L639 166L633 167L636 173L639 176L641 181L642 178L643 178L643 182L644 183L650 183L657 177L657 181L658 183L663 185L666 188L662 193L661 194L660 197L654 201L654 202L646 204L645 207L635 211L627 213L625 215L621 215L618 208L618 203L614 196L609 191L607 184L604 183L598 172L596 172L597 168L594 173L590 167L595 177L599 184L599 186L602 189L604 198L607 200L609 206L620 216L619 217L624 221L642 217L642 220L637 231L633 238L612 257L609 263L608 268L610 269L609 274L612 280L613 291L610 296L604 299L597 305L599 316L597 318L590 321L591 323L589 330L578 341L572 344L563 344L554 347L551 345L550 341L551 338L542 325L540 311L533 300L533 294L535 288L538 283L538 280L536 275L537 274L533 264L524 253L527 241L526 240L524 237L516 238L512 233L505 233L495 237L487 236L479 238L475 237L465 230L459 220L454 216L454 212L451 209L454 205L455 200L455 194L453 192L453 189L458 182L460 177L465 172L468 172L473 167L473 163L474 160L481 155L484 151L494 152L504 148L523 147L526 146L528 147L528 148L531 147L529 149L530 151L530 153L528 155L529 156L542 160L544 163L553 166L556 164L556 160L560 159L570 162L580 164L586 162L589 164L589 163L594 164L596 162L600 154L600 150L599 149L600 148L596 148L595 149L590 150L588 148L585 148L583 150L577 148L573 144L574 142L573 140L576 138L580 138L581 135L587 136L593 133L598 133L607 136L612 136L616 133L615 132L602 124L606 122L605 120L609 119L597 121L597 123L601 124L601 125L594 127L593 126L593 125L590 124L593 123L592 122L588 121L588 120L585 121L582 125L580 125L577 132L578 134L581 135L580 136L577 136L573 138L572 137L569 136L566 137L568 139L566 139L563 138L565 141L564 142L567 144L567 145L564 145L565 146L563 146L564 149L562 149L560 148L559 144L554 138L554 134L544 129L541 125L540 124L539 126L538 125L539 123L537 123L534 124L535 128L542 133L544 133L544 135L551 138L551 139L547 138L546 139L548 140L547 142L545 144L544 145L545 142L543 139L534 134L529 131L528 128L525 127L518 130L513 129L509 130L508 134L502 136L499 141L500 142L494 148L488 148L485 150L482 147L475 148L475 144L474 142L476 137L474 130L478 128L495 129L496 128L497 122L492 118L488 117L487 115L496 115L495 112L497 113L504 111L505 108L511 107L513 103L520 101L523 101L524 100L523 96L522 93L524 91L529 90L528 92L530 93L527 96L528 98L530 99L530 100L535 99L539 101L549 98L555 99L555 98L559 97L559 92L560 91L563 90L565 92L567 92L568 88L565 87L565 86L578 85L581 83L578 82L564 84L559 81L560 79L558 76L560 74L571 69L570 68L566 67L562 67L559 69L559 71L550 76L548 80L552 83L550 86L547 87L544 94L541 94L539 96L536 96L529 85L523 88L520 89L516 87L514 78L529 71L541 62L553 56L564 55L568 53L578 52L587 54L583 55L586 57L589 56L601 58L614 63L614 64L607 67L592 65L597 67L597 71L603 73L603 71L601 70L603 69L610 71L612 70L610 68L617 65L622 66L624 65L621 63L623 61L621 60L628 60L630 62L627 62L627 64L629 65L633 64L634 62L649 59L651 59L649 61L663 59L667 60L670 58L667 57L668 56L676 57L690 61L692 59L689 57L686 57L687 56L685 53L690 50L692 48L702 48L702 49L700 52L702 54L702 58L705 60L698 66L701 66L708 62L707 60L708 58L705 58L704 57L707 54L703 52L708 50L707 48L710 49L709 52L712 52L711 50L715 49L721 49L726 51L724 48L724 45L741 45L739 43L742 41L759 39L769 39L780 38L783 35L790 34L795 35L791 36ZM636 135L640 138L638 138L636 142L637 146L641 148L650 147L650 142L648 141L648 139L646 139L647 136L652 136L649 133L647 134L647 136L646 131L643 130L640 126L642 126L643 124L647 124L647 120L642 119L636 121L630 126L635 134ZM239 35L232 34L240 34ZM194 34L189 35L185 34L195 33ZM569 34L562 35L558 34L559 34L558 33L564 32L565 33ZM195 32L187 32L192 31ZM234 33L227 33L226 31L235 32ZM222 32L223 34L208 32L211 31L207 31L207 30L220 31ZM792 32L776 34L781 30L784 30L793 31ZM551 29L560 31L553 32L551 34L549 34L548 37L544 37L538 35L541 34L531 31L529 29L547 28ZM571 27L576 28L572 29L564 29L556 29L548 27L564 26ZM642 26L632 28L629 27L631 26L625 26L643 26ZM778 31L764 30L753 27L767 24L778 28ZM258 29L262 30L253 33L248 33L242 32L239 31L241 29L236 30L231 27L238 25L237 24L243 24L256 27ZM310 19L328 20L312 24L318 24L307 26L302 28L286 30L290 30L288 31L291 32L278 36L284 37L276 38L251 38L251 36L256 36L255 34L264 35L256 32L264 30L259 27L268 28L273 26L257 26L246 23L263 20L269 21L271 20L280 19L304 19ZM425 18L442 20L437 21L411 22L431 23L436 22L439 23L436 25L456 22L465 23L466 24L444 27L451 27L445 31L445 34L449 36L440 37L445 39L446 41L443 41L446 44L440 44L443 45L442 46L435 46L438 48L438 49L433 48L431 49L439 51L440 54L435 54L429 52L430 53L427 55L438 55L423 60L412 61L405 65L389 68L387 70L386 74L381 76L382 78L380 83L376 83L371 81L366 81L357 73L355 69L351 66L352 64L350 63L353 60L357 59L359 56L352 58L348 57L349 53L357 54L350 51L345 51L348 48L341 42L337 41L337 40L330 39L310 39L302 36L315 35L296 33L297 32L317 29L319 28L311 27L327 24L326 23L341 22L353 23L360 21L376 23L370 22L370 20L379 19L403 18Z";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ChartDatum } from "./types";
|
|
2
|
+
export type HorizontalBarOptions = {
|
|
3
|
+
series: string[];
|
|
4
|
+
rows: {
|
|
5
|
+
group?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
values: (number | null)[];
|
|
8
|
+
}[];
|
|
9
|
+
valueFormat?: (value: number) => string;
|
|
10
|
+
legend?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
/** Stacks start at zero, group headings keep their first-appearance order. */
|
|
17
|
+
export declare function hbarLayout(spec: HorizontalBarOptions, size?: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
}): {
|
|
21
|
+
width: number;
|
|
22
|
+
header: number;
|
|
23
|
+
height: number;
|
|
24
|
+
top: number;
|
|
25
|
+
left: number;
|
|
26
|
+
right: number;
|
|
27
|
+
rows: {
|
|
28
|
+
group?: string;
|
|
29
|
+
label: string;
|
|
30
|
+
values: (number | null)[];
|
|
31
|
+
labelLines: string[];
|
|
32
|
+
groupHeading: string | undefined;
|
|
33
|
+
index: number;
|
|
34
|
+
center: number;
|
|
35
|
+
segments: {
|
|
36
|
+
value: number | null;
|
|
37
|
+
seriesIndex: number;
|
|
38
|
+
x: number;
|
|
39
|
+
width: number;
|
|
40
|
+
label: string;
|
|
41
|
+
showLabel: boolean;
|
|
42
|
+
}[];
|
|
43
|
+
total: number;
|
|
44
|
+
valueText: string;
|
|
45
|
+
datum: ChartDatum;
|
|
46
|
+
title: string;
|
|
47
|
+
groupY: number;
|
|
48
|
+
}[];
|
|
49
|
+
groups: (string | undefined)[];
|
|
50
|
+
pitch: number;
|
|
51
|
+
x: (v: number) => number;
|
|
52
|
+
scale: {
|
|
53
|
+
domain: [number, number];
|
|
54
|
+
ticks: number[];
|
|
55
|
+
};
|
|
56
|
+
format: (value: number) => string;
|
|
57
|
+
unit: number;
|
|
58
|
+
legend: {
|
|
59
|
+
hidden: number;
|
|
60
|
+
height: number;
|
|
61
|
+
items: {
|
|
62
|
+
label: string;
|
|
63
|
+
data: (number | null)[];
|
|
64
|
+
total: number | null;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
labelWidth: number;
|
|
68
|
+
valueX: number;
|
|
69
|
+
valueText: string;
|
|
70
|
+
text: string;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type HorizontalBarLayout = ReturnType<typeof hbarLayout>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type HorizontalBarLayout, type HorizontalBarOptions } from "./hbar-layout";
|
|
2
|
+
export { type HorizontalBarLayout, type HorizontalBarOptions, hbarLayout } from "./hbar-layout";
|
|
3
|
+
export declare function renderHbarSvg(spec: HorizontalBarOptions & {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
inspect?: boolean;
|
|
7
|
+
}): string;
|
|
8
|
+
/** Draw an already prepared layout; lazy hosts reuse the geometry reserved before loading. */
|
|
9
|
+
export declare function renderHbarLayoutSvg(spec: HorizontalBarOptions & {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
inspect?: boolean;
|
|
13
|
+
}, g: HorizontalBarLayout): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Portable chart contracts. This entry never imports Solid or browser APIs. */
|
|
2
|
+
export { type BarChartLayout, type BarChartOptions, barChartLayout, renderBarChartSvg, seriesBarLayout } from "../../content/chart-bar";
|
|
3
|
+
export { renderStateTimelineSvg, type StateTimelineChartOptions, type StateTimelineDomain, stateTimelineDomain, stateTimelineHeight, } from "../../content/chart-state-timeline";
|
|
4
|
+
export { type ChartTimeAxis } from "../../content/chart-time-axis";
|
|
5
|
+
export { type AreaOptions, areaLayout, renderAreaSvg } from "./area";
|
|
6
|
+
export * from "./calendar";
|
|
7
|
+
export { type HorizontalBarLayout, type HorizontalBarOptions, hbarLayout, renderHbarLayoutSvg, renderHbarSvg } from "./hbar";
|
|
8
|
+
export * from "./inspection";
|
|
9
|
+
export { map } from "./map";
|
|
10
|
+
export * from "./render";
|
|
11
|
+
export { chartRenderHeight, preservesAspectRatio } from "./render-size";
|
|
12
|
+
export * from "./snapshot";
|
|
13
|
+
export { charts } from "./svg";
|
|
14
|
+
export { type AxisOptions, arcPathD, autoBin, type BarItem, bar, barGauge, boxplot, type ChartOptions, chartDatumSvg, computeBoxStats, computeDomain, donut, escapeXml, extendDomainToNice, gauge, heatmap, histogram, type LineStyle, line, linearRegression, linePathD, type MapOptions, type MapPoint, type MapSeries, type MapViewport, type MarkerShape, mapLog, mapRange, markerPath, niceLogTicks, niceStep, normalizePadding, type Padding, type Point, pie, type ReferenceLine, type Series, type SliceItem, scatter, smoothPathD, sparkline, stat, stateTimeline, stepPathD, svgRoot, } from "./svg-renderers";
|
|
15
|
+
export { type ChartDateFormat, type ChartDatum, type ChartDatumRole, type ChartFormat, type ChartKind, type ChartNumberFormat, chartDatumRoles, } from "./types";
|
|
16
|
+
export { renderWaterfallLayoutSvg, renderWaterfallSvg, type WaterfallLayout, type WaterfallOptions, waterfallLayout } from "./waterfall";
|