@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
|
@@ -306,6 +306,11 @@ export type AppWorkspaceSidebarItemProps = {
|
|
|
306
306
|
scroll?: NavigationScrollMode;
|
|
307
307
|
onNavigate?: (event: LinkNavigateEvent) => void | Promise<void>;
|
|
308
308
|
onClick?: (event: MouseEvent) => void;
|
|
309
|
+
/**
|
|
310
|
+
* Makes a row without `href` a disclosure: it shows or hides the rows after
|
|
311
|
+
* it, and assistive technology hears whether they are shown.
|
|
312
|
+
*/
|
|
313
|
+
expanded?: boolean;
|
|
309
314
|
/**
|
|
310
315
|
* Marks the current page (`aria-current="page"`). On a page deeper than the
|
|
311
316
|
* sidebar lists, pass `"ancestor"` for the item that contains it: it keeps
|
|
@@ -74,12 +74,24 @@ export type DetailPanelActionSecondary = {
|
|
|
74
74
|
onClick: () => void;
|
|
75
75
|
variant?: "danger";
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* A checkbox before the row that toggles on its own, such as "done" for a task the row opens. It always shows its
|
|
79
|
+
* state, unlike a secondary action, which waits for hover.
|
|
80
|
+
*/
|
|
81
|
+
export type DetailPanelActionCheckbox = {
|
|
82
|
+
checked: boolean;
|
|
83
|
+
/** Accessible name, after the row, such as "Done: Call Mrs. Weber". */
|
|
84
|
+
label: string;
|
|
85
|
+
onChange: (checked: boolean) => void;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
};
|
|
77
88
|
type DetailPanelActionBaseProps = {
|
|
78
89
|
title: JSX.Element;
|
|
79
90
|
description?: JSX.Element;
|
|
80
91
|
leading?: JSX.Element;
|
|
81
92
|
trailing?: JSX.Element;
|
|
82
93
|
secondaryAction?: DetailPanelActionSecondary;
|
|
94
|
+
checkbox?: DetailPanelActionCheckbox;
|
|
83
95
|
/** Marks the row of the current place, such as the section in view, in the panel's accent. */
|
|
84
96
|
current?: boolean;
|
|
85
97
|
/** Lets the title wrap to two lines instead of ending with an ellipsis. */
|
|
@@ -12,7 +12,7 @@ export { APP_WORKSPACE_DETAIL_DEFAULT, APP_WORKSPACE_DETAIL_MAX, APP_WORKSPACE_D
|
|
|
12
12
|
export { type BottomSheetProps, bottomSheetAdaptiveOptions, bottomSheetOptions, default as BottomSheet } from "./BottomSheet";
|
|
13
13
|
export type { DataPanelProps } from "./DataPanel";
|
|
14
14
|
export { DataPanel } from "./DataPanel";
|
|
15
|
-
export type { DetailPanelActionButtonProps, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSectionProps, DetailPanelSummaryProps, DetailPanelTone, } from "./DetailPanel";
|
|
15
|
+
export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSectionProps, DetailPanelSummaryProps, DetailPanelTone, } from "./DetailPanel";
|
|
16
16
|
export { default as DetailPanel } from "./DetailPanel";
|
|
17
17
|
export type { DetailAccessEntry, DetailAccessProps, DetailLinkItem, DetailLinksProps, DetailPresencePerson, DetailPresenceProps, DetailPresenceState, DetailPropertiesProps, DetailProperty, DetailTag, DetailTagsProps, } from "./DetailSections";
|
|
18
18
|
export { DetailAccess, DetailLinks, DetailPresence, DetailPresenceSlot, DetailProperties, DetailTags } from "./DetailSections";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
/** One budget: `used` is booked, `expected` comes on top; over the budget is `used + expected - limit`. */
|
|
3
|
+
export type BudgetItem = {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
used: number;
|
|
7
|
+
expected?: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
};
|
|
10
|
+
export type BudgetListProps = {
|
|
11
|
+
items: readonly BudgetItem[];
|
|
12
|
+
/** ISO 4217 currency code, e.g. `"EUR"`. */
|
|
13
|
+
currency: string;
|
|
14
|
+
/** Explicit locale override; defaults to the inherited render locale. */
|
|
15
|
+
locale?: string;
|
|
16
|
+
/** Fixed fraction digits. Defaults to 0. */
|
|
17
|
+
decimals?: number;
|
|
18
|
+
/** The sentence shown when there is no budget. */
|
|
19
|
+
empty?: string;
|
|
20
|
+
/** Hides the legend under the rows when the host explains the colours elsewhere. */
|
|
21
|
+
legend?: boolean;
|
|
22
|
+
class?: string;
|
|
23
|
+
};
|
|
24
|
+
/** "near" from 80 % of the budget, "over" beyond it. */
|
|
25
|
+
export type BudgetLevel = "ok" | "near" | "over";
|
|
26
|
+
/** The figures of one budget row; the share counts booked and expected together. */
|
|
27
|
+
export declare const budgetState: (item: Pick<BudgetItem, "used" | "expected" | "limit">) => {
|
|
28
|
+
used: number;
|
|
29
|
+
expected: number;
|
|
30
|
+
limit: number;
|
|
31
|
+
total: number;
|
|
32
|
+
over: number;
|
|
33
|
+
free: number;
|
|
34
|
+
ratio: number;
|
|
35
|
+
level: BudgetLevel;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Budgets as rows: label and "spent of budget", a bar with booked (solid), expected (hatched) and over the budget
|
|
39
|
+
* (red, with a mark at the limit), and a hint that turns amber from 80 % and red beyond the budget.
|
|
40
|
+
*/
|
|
41
|
+
export declare function BudgetList(props: BudgetListProps): JSX.Element;
|
|
42
|
+
export default BudgetList;
|
|
@@ -10,6 +10,11 @@ export type DescriptionListProps = {
|
|
|
10
10
|
layout?: "grid" | "rows" | "compact";
|
|
11
11
|
size?: "sm" | "md";
|
|
12
12
|
actionVisibility?: "always" | "progressive";
|
|
13
|
+
/**
|
|
14
|
+
* Joins each term to its right-aligned value with a dotted leader, for `rows` or `compact` lists that must span a
|
|
15
|
+
* very wide container. A fallback, never the default: first keep rows within the row measure.
|
|
16
|
+
*/
|
|
17
|
+
leader?: "dotted";
|
|
13
18
|
class?: string;
|
|
14
19
|
};
|
|
15
20
|
/** Semantic key-value content with predictable responsive density. */
|
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
2
|
import type { IntentTone } from "../semantics";
|
|
3
3
|
export type ProgressBarTone = Extract<IntentTone, "info" | "success" | "warning" | "danger">;
|
|
4
|
-
|
|
4
|
+
/** One part of a segmented bar, in the unit of `limit`. `"hatched"` marks an expected, not yet booked part. */
|
|
5
|
+
export type ProgressBarSegment = {
|
|
5
6
|
value: number;
|
|
7
|
+
pattern?: "solid" | "hatched";
|
|
8
|
+
};
|
|
9
|
+
export type ProgressBarProps = {
|
|
10
|
+
/** Percent from 0 to 100. With `segments`, the share of `limit` the segments fill. */
|
|
11
|
+
value?: number;
|
|
6
12
|
size?: "xs" | "sm" | "md";
|
|
7
13
|
tone?: ProgressBarTone;
|
|
8
14
|
showValue?: boolean;
|
|
9
15
|
label: string;
|
|
16
|
+
/** Parts drawn in order, such as booked and expected spending. Negative and non-finite values count as 0. */
|
|
17
|
+
segments?: readonly ProgressBarSegment[];
|
|
18
|
+
/** The budget the segments fill. What goes beyond it is drawn red, with a mark at the limit. */
|
|
19
|
+
limit?: number;
|
|
20
|
+
/** Spoken value, such as "1,240 € of 1,500 €"; defaults to the percent. */
|
|
21
|
+
valueText?: string;
|
|
10
22
|
class?: string;
|
|
11
23
|
};
|
|
24
|
+
export type ProgressBarPart = {
|
|
25
|
+
pattern: "solid" | "hatched" | "over";
|
|
26
|
+
width: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Sum minus limit, without float residue: `0.1 + 0.2` against `0.3` is not over. Amounts within a billionth of the
|
|
30
|
+
* larger of both count as equal.
|
|
31
|
+
*/
|
|
32
|
+
export declare const budgetOverrun: (total: number, limit: number) => number;
|
|
33
|
+
/** Sum over limit; an empty budget with spending is infinitely full. */
|
|
34
|
+
export declare const budgetRatio: (total: number, limit: number) => number;
|
|
35
|
+
/**
|
|
36
|
+
* The drawn parts of a segmented bar, each as a percent of the track. The track spans the larger of the limit and the
|
|
37
|
+
* sum, so an overrun stays visible: segments fill up to the limit in order, the rest is one "over" part, and `mark`
|
|
38
|
+
* places the limit line (only when the sum goes beyond it). Without `limit` the segments fill the track; a limit of 0,
|
|
39
|
+
* below 0 or not finite is an empty budget, so any spending is over it.
|
|
40
|
+
*/
|
|
41
|
+
export declare const progressBarParts: (segments: readonly ProgressBarSegment[], limit?: number) => {
|
|
42
|
+
parts: ProgressBarPart[];
|
|
43
|
+
total: number;
|
|
44
|
+
over: number;
|
|
45
|
+
mark: number | null;
|
|
46
|
+
ratio: number;
|
|
47
|
+
};
|
|
12
48
|
export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
|
|
13
49
|
export default ProgressBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
+
import type { ChartNumberFormat } from "../charts/description";
|
|
2
3
|
import type { ChartTooltipFormatter } from "../content/chart-inspection-core";
|
|
3
4
|
import type { AccentColor } from "../semantics";
|
|
4
5
|
import { type StatGridSize } from "./StatGrid";
|
|
@@ -8,12 +9,39 @@ export type StatCellAccent = {
|
|
|
8
9
|
icon: string;
|
|
9
10
|
text?: string;
|
|
10
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* The change against a comparison period. `unit: "ratio"` (default) reads `0.082` as `+8.2 %`; `"points"` is the
|
|
14
|
+
* difference of two shares in ratio units, so `0.031` reads `+3.1 pts`. Only with `better` does the badge carry a tone
|
|
15
|
+
* and say "better" or "worse"; without it the change stays unrated.
|
|
16
|
+
*/
|
|
17
|
+
export type StatCellDelta = {
|
|
18
|
+
value: number;
|
|
19
|
+
unit?: "ratio" | "points" | "absolute";
|
|
20
|
+
/** Existing measures can express a change in their own unit instead of a ratio. */
|
|
21
|
+
format?: ChartNumberFormat;
|
|
22
|
+
better?: "up" | "down";
|
|
23
|
+
};
|
|
24
|
+
/** The value the change compares against, shown under the figure, such as "Last month 44,560". */
|
|
25
|
+
export type StatCellCompare = {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string | number;
|
|
28
|
+
};
|
|
29
|
+
export type StatCellSize = StatGridSize;
|
|
11
30
|
export type StatCellProps = {
|
|
12
31
|
label: string;
|
|
13
|
-
|
|
32
|
+
/** The figure. `null` shows the empty dash; `sub` then says why. */
|
|
33
|
+
value: string | number | JSX.Element | null;
|
|
14
34
|
sub?: string;
|
|
15
35
|
valueClass?: string;
|
|
36
|
+
/** An icon in a chip before the label, in `tone`. `"in"` and `"out"` are the money colours of `FlowAmount`. */
|
|
37
|
+
icon?: string;
|
|
38
|
+
/** The chip colour of `icon`. Defaults to zinc. */
|
|
39
|
+
tone?: StatCellTone | "in" | "out";
|
|
16
40
|
accent?: StatCellAccent;
|
|
41
|
+
delta?: StatCellDelta;
|
|
42
|
+
/** Keep the figure and change on separate rows, including while loading. Defaults to beside the figure. */
|
|
43
|
+
deltaPlacement?: "below";
|
|
44
|
+
compare?: StatCellCompare;
|
|
17
45
|
href?: string;
|
|
18
46
|
title?: string;
|
|
19
47
|
trend?: readonly number[];
|
|
@@ -22,12 +50,22 @@ export type StatCellProps = {
|
|
|
22
50
|
* `selection.datum.index` is the source index into `trend`.
|
|
23
51
|
*/
|
|
24
52
|
trendTooltip?: ChartTooltipFormatter;
|
|
25
|
-
size?:
|
|
53
|
+
size?: StatCellSize;
|
|
26
54
|
/**
|
|
27
55
|
* Wraps the label, value and support line instead of truncating them. Use it for a cell whose height nothing
|
|
28
56
|
* reserves, such as one figure on its own; cells compared in a row keep one line each.
|
|
29
57
|
*/
|
|
30
58
|
wrap?: boolean;
|
|
59
|
+
/** `"loading"` keeps the tile's size with placeholders; `"error"` says the figure did not load. */
|
|
60
|
+
status?: "loading" | "error";
|
|
61
|
+
/** Offers "Try again" after an error and "Reload" beside `stale`. */
|
|
62
|
+
onRetry?: () => void;
|
|
63
|
+
/** The figure is not current: a short note such as "As of 09:12 · not current" replaces the support line. */
|
|
64
|
+
stale?: string;
|
|
31
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* One key figure as a framed tile: icon and label, the figure with its change, and a support line with the comparison
|
|
68
|
+
* and the trend. Each state (loading, error, stale, empty) keeps the tile's place and size.
|
|
69
|
+
*/
|
|
32
70
|
export declare function StatCell(props: StatCellProps): JSX.Element;
|
|
33
71
|
export default StatCell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
export type StatGridSize = "md" | "sm";
|
|
2
|
+
export type StatGridSize = "lg" | "md" | "sm";
|
|
3
3
|
export type StatGridSurface = "white" | "muted";
|
|
4
4
|
export type StatGridColumns = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
export type StatGridAction = {
|
|
@@ -10,6 +10,7 @@ export type StatGridProps = {
|
|
|
10
10
|
children: JSX.Element;
|
|
11
11
|
title?: string;
|
|
12
12
|
action?: StatGridAction;
|
|
13
|
+
/** Tiles per row on a wide container. Defaults to 4; at 600 px or less two share a row, and five or six take three up to 900 px. */
|
|
13
14
|
columns?: StatGridColumns;
|
|
14
15
|
size?: StatGridSize;
|
|
15
16
|
surface?: StatGridSurface;
|
|
@@ -17,5 +18,6 @@ export type StatGridProps = {
|
|
|
17
18
|
};
|
|
18
19
|
export declare const useStatGridSize: () => StatGridSize;
|
|
19
20
|
export declare const useStatGridSurface: () => StatGridSurface;
|
|
21
|
+
/** A row of key figures, each a framed tile of its own; the optional title and action sit above the row. */
|
|
20
22
|
export declare function StatGrid(props: StatGridProps): JSX.Element;
|
|
21
23
|
export default StatGrid;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const budgetMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
of: ({ limit }: {
|
|
3
|
+
limit: string;
|
|
4
|
+
}) => string;
|
|
5
|
+
free: ({ amount }: {
|
|
6
|
+
amount: string;
|
|
7
|
+
}) => string;
|
|
8
|
+
near: ({ amount }: {
|
|
9
|
+
amount: string;
|
|
10
|
+
}) => string;
|
|
11
|
+
over: ({ amount }: {
|
|
12
|
+
amount: string;
|
|
13
|
+
}) => string;
|
|
14
|
+
used: string;
|
|
15
|
+
expected: string;
|
|
16
|
+
overLegend: string;
|
|
17
|
+
budget: string;
|
|
18
|
+
left: string;
|
|
19
|
+
overBy: string;
|
|
20
|
+
valueText: ({ used, expected, limit }: {
|
|
21
|
+
used: string;
|
|
22
|
+
expected?: string;
|
|
23
|
+
limit: string;
|
|
24
|
+
}) => string;
|
|
25
|
+
}>;
|
|
26
|
+
export type BudgetMessages = ReturnType<(typeof budgetMessages)["resolve"]>["t"];
|
|
27
|
+
/** Resolved from an explicit locale override, else the inherited render locale. */
|
|
28
|
+
export declare const useBudgetMessages: (override?: () => string | undefined) => (() => BudgetMessages);
|
|
29
|
+
export declare const checkBudgetMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
import type { StatCellCompare, StatCellDelta } from "./StatCell";
|
|
3
|
+
import { type StatCellMessages } from "./stat-cell-messages";
|
|
4
|
+
/** Signed with a true minus sign (U+2212), as figures are typeset. */
|
|
5
|
+
export declare const deltaText: (delta: StatCellDelta, locale: string, t: StatCellMessages) => string;
|
|
6
|
+
/** A change badge: arrow, signed text, and a spoken label that names the comparison and, with `better`, the rating. */
|
|
7
|
+
export declare function DeltaBadge(props: {
|
|
8
|
+
delta: StatCellDelta;
|
|
9
|
+
compare?: StatCellCompare;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -2,6 +2,7 @@ export type { AvatarProps, AvatarRing, AvatarShape, AvatarSize, AvatarTone } fro
|
|
|
2
2
|
export { Avatar } from "./Avatar";
|
|
3
3
|
export type { AvatarFacesPerson, AvatarFacesProps, AvatarStackPerson, AvatarStackProps } from "./AvatarStack";
|
|
4
4
|
export { AvatarFaces, AvatarStack } from "./AvatarStack";
|
|
5
|
+
export { type BudgetItem, type BudgetLevel, BudgetList, type BudgetListProps, budgetState } from "./BudgetList";
|
|
5
6
|
export type { ChangeListItem, ChangeListProps, ChangeTone } from "./ChangeList";
|
|
6
7
|
export { ChangeList } from "./ChangeList";
|
|
7
8
|
export type { DescriptionListItem, DescriptionListProps } from "./DescriptionList";
|
|
@@ -18,15 +19,15 @@ export type { PaperProps, PaperTag } from "./Paper";
|
|
|
18
19
|
export { Paper } from "./Paper";
|
|
19
20
|
export type { PlaceholderAlign, PlaceholderProps, PlaceholderState, PlaceholderSurface, PlaceholderVariant, } from "./Placeholder";
|
|
20
21
|
export { default as Placeholder } from "./Placeholder";
|
|
21
|
-
export type { ProgressBarProps, ProgressBarTone } from "./ProgressBar";
|
|
22
|
-
export { ProgressBar } from "./ProgressBar";
|
|
22
|
+
export type { ProgressBarPart, ProgressBarProps, ProgressBarSegment, ProgressBarTone } from "./ProgressBar";
|
|
23
|
+
export { ProgressBar, progressBarParts } from "./ProgressBar";
|
|
23
24
|
export type { ProgressRingProps, ProgressRingTone } from "./ProgressRing";
|
|
24
25
|
export { ProgressRing } from "./ProgressRing";
|
|
25
26
|
export { PERSON_COLORS, personColor } from "./person-color";
|
|
26
27
|
export type { ResourceCardColor, ResourceCardProps, ResourceCardState } from "./ResourceCard";
|
|
27
28
|
export { ResourceCard } from "./ResourceCard";
|
|
28
29
|
export { Skeleton, type SkeletonProps } from "./Skeleton";
|
|
29
|
-
export type { StatCellAccent, StatCellProps, StatCellTone } from "./StatCell";
|
|
30
|
+
export type { StatCellAccent, StatCellCompare, StatCellDelta, StatCellProps, StatCellSize, StatCellTone } from "./StatCell";
|
|
30
31
|
export { StatCell } from "./StatCell";
|
|
31
32
|
export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, } from "./StatGrid";
|
|
32
33
|
export { StatGrid } from "./StatGrid";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The colors that stand for a person: the tint behind avatar initials, a collaborator's cursor, and the marks and
|
|
3
|
-
* comments a person leaves. The palette leaves out
|
|
3
|
+
* comments a person leaves. The palette leaves out plum, which means AI, and yellow, which reads as a text highlight.
|
|
4
4
|
* Several people can share a color, so a person's name always appears next to it.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PERSON_COLORS: readonly ["#3b82f6", "#6366f1", "#8b5cf6", "#
|
|
6
|
+
export declare const PERSON_COLORS: readonly ["#3b82f6", "#6366f1", "#8b5cf6", "#0891b2", "#0d9488", "#e11d48", "#f97316", "#16a34a"];
|
|
7
7
|
/** The palette index for a name, the order of the `.k2b-avatar[data-tint]` rules. Surrounding spaces do not count. */
|
|
8
8
|
export declare const personTint: (name: string) => number;
|
|
9
9
|
/** A person's color from their display name, the same wherever Cloud shows that person. */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const statCellMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
points: string;
|
|
3
|
+
better: string;
|
|
4
|
+
worse: string;
|
|
5
|
+
comparedWith: ({ label }: {
|
|
6
|
+
label: string;
|
|
7
|
+
}) => string;
|
|
8
|
+
notLoaded: string;
|
|
9
|
+
retry: string;
|
|
10
|
+
reload: string;
|
|
11
|
+
loading: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type StatCellMessages = ReturnType<(typeof statCellMessages)["resolve"]>["t"];
|
|
14
|
+
/** Resolved from the inherited render locale. */
|
|
15
|
+
export declare const useStatCellMessages: () => (() => StatCellMessages);
|
|
16
|
+
/** For a caller that already holds the locale, such as table text for search and copy. */
|
|
17
|
+
export declare const resolveStatCellMessages: (locale: string) => StatCellMessages;
|
|
18
|
+
export declare const checkStatCellMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
/**
|
|
3
|
+
* A panel's share of the six dashboard columns: a third is two, a half three, two thirds four, full all six. At a
|
|
4
|
+
* dashboard width of 1000 px or less a third takes half the row and two thirds the whole row; at 600 px or less every
|
|
5
|
+
* panel takes the whole row.
|
|
6
|
+
*/
|
|
7
|
+
export type DashboardWidth = "third" | "half" | "twoThirds" | "full";
|
|
8
|
+
export type DashboardGridProps = {
|
|
9
|
+
children: JSX.Element;
|
|
10
|
+
class?: string;
|
|
11
|
+
};
|
|
12
|
+
/** The dashboard's measuring container. Panel widths and the key-figure row follow its width, not the window's. */
|
|
13
|
+
export declare function DashboardGrid(props: DashboardGridProps): JSX.Element;
|
|
14
|
+
export type DashboardSectionProps = {
|
|
15
|
+
/** Visible heading; without it the section has no heading and is named by `ariaLabel`. */
|
|
16
|
+
title?: string;
|
|
17
|
+
/** Tabler icon class shown as a plain glyph before the title, never in a tile. */
|
|
18
|
+
icon?: string;
|
|
19
|
+
/** Colour of the icon glyph; it is mixed with the text colour so it stays readable in light and dark. */
|
|
20
|
+
iconColor?: string;
|
|
21
|
+
/** Source or cadence, quiet and next to the title. */
|
|
22
|
+
description?: string;
|
|
23
|
+
headingLevel?: 2 | 3 | 4;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
class?: string;
|
|
26
|
+
/** Panels and at most one key-figure row (`StatGrid`), in reading order; the row always spans all six columns. */
|
|
27
|
+
children?: JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
/** A titled group of panels on the six-column grid. */
|
|
30
|
+
export declare function DashboardSection(props: DashboardSectionProps): JSX.Element;
|
|
31
|
+
type DashboardPanelTag = "article" | "section" | "div" | "li";
|
|
32
|
+
type DashboardPanelOwnProps<T extends DashboardPanelTag> = {
|
|
33
|
+
as?: T;
|
|
34
|
+
/** Defaults to a third. Ignored inside a key-figure row, where every tile takes one of its columns. */
|
|
35
|
+
width?: DashboardWidth;
|
|
36
|
+
class?: string;
|
|
37
|
+
children?: JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
export type DashboardPanelProps<T extends DashboardPanelTag = "article"> = DashboardPanelOwnProps<T> & Omit<JSX.IntrinsicElements[T], keyof DashboardPanelOwnProps<T>>;
|
|
40
|
+
/** One framed cell of the grid. Panels in a row share the height of the tallest. */
|
|
41
|
+
export declare function DashboardPanel<T extends DashboardPanelTag = "article">(props: DashboardPanelProps<T>): JSX.Element;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import type { DashboardWidth } from "./Dashboard";
|
|
3
|
+
/**
|
|
4
|
+
* What the host's read shows: its content (`ready`), the first read in flight (`loading`), nothing to show (`empty`),
|
|
5
|
+
* a failed first read (`error`), or content whose refresh failed (`stale`).
|
|
6
|
+
*/
|
|
7
|
+
export type DashboardFrameState = "ready" | "loading" | "empty" | "error" | "stale";
|
|
8
|
+
export type DashboardFrameProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Heading of the frame. Without it the frame is only the surface, for content that brings its own head and states,
|
|
11
|
+
* such as `ChartExplorer` with `inset="1rem"`.
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/** One line under the title; loading and stale notes take its place, so nothing moves. */
|
|
15
|
+
subtitle?: JSX.Element;
|
|
16
|
+
/** Level of the title heading; defaults to 3. */
|
|
17
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
18
|
+
/** Controls at the right of the head, such as a search field or a grouping chip. */
|
|
19
|
+
tools?: JSX.Element;
|
|
20
|
+
/** Defaults to `ready`. */
|
|
21
|
+
state?: DashboardFrameState;
|
|
22
|
+
/** When the shown content was read, formatted by the host ("09:12"); a stale note names it. */
|
|
23
|
+
asOf?: string;
|
|
24
|
+
/** Try again after a failure; without it a failure has no button. */
|
|
25
|
+
onRetry?: () => void;
|
|
26
|
+
/** The empty sentence, such as "No campaign in this period." */
|
|
27
|
+
empty?: JSX.Element;
|
|
28
|
+
/** Tabler icon of the empty state; defaults to `ti ti-chart-bar-off`. */
|
|
29
|
+
emptyIcon?: string;
|
|
30
|
+
/** An action under the empty sentence, such as "Clear search". */
|
|
31
|
+
emptyAction?: JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* The content has nothing to show right now although the read succeeded, such as a search without matches: the body
|
|
34
|
+
* shows the empty sentence and action while the head keeps its state, so a stale note stays.
|
|
35
|
+
*/
|
|
36
|
+
emptyContent?: boolean;
|
|
37
|
+
/** Height of the body, a CSS length. Every state keeps it. */
|
|
38
|
+
height?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A hidden copy of the full content that holds the body's height in every state, such as every row of a table. The
|
|
41
|
+
* body then reaches the frame's left, right and bottom edges, like a table that brings its own rows.
|
|
42
|
+
*/
|
|
43
|
+
reserve?: JSX.Element;
|
|
44
|
+
/** States as one quiet line instead of a centred message, for short content such as an amount or one bar. */
|
|
45
|
+
compact?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Share of a `DashboardSection`'s six columns, like `DashboardPanel`: the frame is the grid cell itself, so it never
|
|
48
|
+
* sits in a second frame. Defaults to a third there; ignored elsewhere.
|
|
49
|
+
*/
|
|
50
|
+
width?: DashboardWidth;
|
|
51
|
+
class?: string;
|
|
52
|
+
children?: JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* One framed dashboard panel: title, subtitle, tools and the content the host passes, with loading, empty, failure and
|
|
56
|
+
* stale in the same place and at the same height.
|
|
57
|
+
*/
|
|
58
|
+
export declare function DashboardFrame(props: DashboardFrameProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k2b/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Production-ready components for SolidJS applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
"types": "./dist/types/text-editor/markdown-table.d.ts",
|
|
55
55
|
"import": "./dist/ssr/text-editor/markdown-table.js",
|
|
56
56
|
"default": "./dist/ssr/text-editor/markdown-table.js"
|
|
57
|
+
},
|
|
58
|
+
"./charts/core": {
|
|
59
|
+
"types": "./dist/types/charts/core/index.d.ts",
|
|
60
|
+
"browser": "./dist/browser/charts/core/index.js",
|
|
61
|
+
"import": "./dist/ssr/charts/core/index.js",
|
|
62
|
+
"default": "./dist/ssr/charts/core/index.js"
|
|
57
63
|
}
|
|
58
64
|
},
|
|
59
65
|
"files": [
|
|
@@ -88,6 +94,7 @@
|
|
|
88
94
|
"maplibre-gl": "6.14.0",
|
|
89
95
|
"marked": "18.0.14",
|
|
90
96
|
"pbf": "5.1.2",
|
|
97
|
+
"pdfjs-dist": "6.3.289",
|
|
91
98
|
"qr-scanner": "1.4.2"
|
|
92
99
|
},
|
|
93
100
|
"peerDependencies": {
|