@k2b/ui 0.50.0 → 0.52.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 +35 -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/Dropdown.js +43 -10
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/Toolbar.js +8 -2
- package/dist/browser/actions/Toolbar.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 +3 -5
- package/dist/browser/charts/core/area.js.map +1 -1
- package/dist/browser/charts/core/bar-labels.js +5 -0
- package/dist/browser/charts/core/bar-labels.js.map +1 -0
- package/dist/browser/charts/core/bubble.js +166 -0
- package/dist/browser/charts/core/bubble.js.map +1 -0
- package/dist/browser/charts/core/calendar.js +1 -1
- package/dist/browser/charts/core/calendar.js.map +1 -1
- 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/default-styles.js +83 -0
- package/dist/browser/charts/core/default-styles.js.map +1 -0
- package/dist/browser/charts/core/funnel-layout.js +79 -0
- package/dist/browser/charts/core/funnel-layout.js.map +1 -0
- package/dist/browser/charts/core/funnel.js +27 -0
- package/dist/browser/charts/core/funnel.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 +12 -2
- package/dist/browser/charts/core/index.js.map +1 -1
- package/dist/browser/charts/core/map.js +116 -0
- package/dist/browser/charts/core/map.js.map +1 -0
- package/dist/browser/charts/core/pareto.js +120 -0
- package/dist/browser/charts/core/pareto.js.map +1 -0
- package/dist/browser/charts/core/radar.js +101 -0
- package/dist/browser/charts/core/radar.js.map +1 -0
- package/dist/browser/charts/core/registry.js +33 -16
- package/dist/browser/charts/core/registry.js.map +1 -1
- package/dist/browser/charts/core/render-size.js +15 -0
- package/dist/browser/charts/core/render-size.js.map +1 -0
- package/dist/browser/charts/core/render.js +39 -10
- package/dist/browser/charts/core/render.js.map +1 -1
- package/dist/browser/charts/core/snapshot.js +4 -4
- package/dist/browser/charts/core/snapshot.js.map +1 -1
- package/dist/browser/charts/core/svg-barGauge.js +67 -0
- package/dist/browser/charts/core/svg-barGauge.js.map +1 -0
- package/dist/browser/charts/core/svg-boxplot.js +127 -0
- package/dist/browser/charts/core/svg-boxplot.js.map +1 -0
- package/dist/browser/charts/core/svg-common.js +1065 -0
- package/dist/browser/charts/core/svg-common.js.map +1 -0
- package/dist/browser/charts/core/svg-gauge.js +185 -0
- package/dist/browser/charts/core/svg-gauge.js.map +1 -0
- package/dist/browser/charts/core/svg-heatmap.js +80 -0
- package/dist/browser/charts/core/svg-heatmap.js.map +1 -0
- package/dist/browser/charts/core/svg-histogram.js +73 -0
- package/dist/browser/charts/core/svg-histogram.js.map +1 -0
- package/dist/browser/charts/core/svg-renderers.js +638 -0
- package/dist/browser/charts/core/svg-renderers.js.map +1 -0
- package/dist/browser/charts/core/svg-scatter.js +114 -0
- package/dist/browser/charts/core/svg-scatter.js.map +1 -0
- package/dist/browser/charts/core/svg.js +4 -2525
- package/dist/browser/charts/core/svg.js.map +1 -1
- package/dist/browser/charts/core/treemap.js +138 -0
- package/dist/browser/charts/core/treemap.js.map +1 -0
- package/dist/browser/charts/core/types.js +0 -2
- package/dist/browser/charts/core/types.js.map +1 -1
- 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.map +1 -1
- package/dist/browser/content/Chart.js +14 -628
- package/dist/browser/content/Chart.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +646 -0
- package/dist/browser/content/ChartRoot.js.map +1 -0
- package/dist/browser/content/ChartSnapshotView.js +4 -1
- 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 +186 -193
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/FileView.js +111 -61
- package/dist/browser/content/FileView.js.map +1 -1
- package/dist/browser/content/Lightbox.js +62 -30
- 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/ThumbnailStrip.js +174 -0
- package/dist/browser/content/ThumbnailStrip.js.map +1 -0
- package/dist/browser/content/chart-bar.js +344 -16
- package/dist/browser/content/chart-bar.js.map +1 -1
- package/dist/browser/content/chart-inspection-core.js +50 -29
- package/dist/browser/content/chart-inspection-core.js.map +1 -1
- package/dist/browser/content/chart-line-gaps.js +1 -1
- package/dist/browser/content/chart-line-gaps.js.map +1 -1
- package/dist/browser/content/chart-message-catalog.js +28 -0
- package/dist/browser/content/chart-message-catalog.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 +2 -1
- package/dist/browser/content/chart-svg.js.map +1 -1
- package/dist/browser/content/index.js +2 -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/content/thumbnail-strip-messages.js +24 -0
- package/dist/browser/content/thumbnail-strip-messages.js.map +1 -0
- package/dist/browser/inputs/ChoiceInputs.js +150 -76
- 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 +113 -98
- 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/index.js +5 -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/MarkdownSelectionToolbar.js +330 -0
- package/dist/browser/inputs/markdown/MarkdownSelectionToolbar.js.map +1 -0
- 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/internal/field.js +96 -77
- package/dist/browser/internal/field.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +7 -5
- 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/PanelDialog.js +92 -68
- package/dist/browser/layout/PanelDialog.js.map +1 -1
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/surfaces/DescriptionList.js +5 -2
- package/dist/browser/surfaces/DescriptionList.js.map +1 -1
- package/dist/browser/surfaces/StatCell.js +95 -78
- package/dist/browser/surfaces/StatCell.js.map +1 -1
- package/dist/browser/surfaces/delta-badge.js +16 -2
- package/dist/browser/surfaces/delta-badge.js.map +1 -1
- package/dist/browser/surfaces/stat-cell-messages.js +4 -2
- package/dist/browser/surfaces/stat-cell-messages.js.map +1 -1
- package/dist/browser/widgets/DashboardFrame.js +315 -0
- package/dist/browser/widgets/DashboardFrame.js.map +1 -0
- package/dist/browser/widgets/index.js +1 -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/Dropdown.js +43 -10
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/Toolbar.js +8 -2
- package/dist/ssr/actions/Toolbar.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 +3 -5
- package/dist/ssr/charts/core/area.js.map +1 -1
- package/dist/ssr/charts/core/bar-labels.js +5 -0
- package/dist/ssr/charts/core/bar-labels.js.map +1 -0
- package/dist/ssr/charts/core/bubble.js +166 -0
- package/dist/ssr/charts/core/bubble.js.map +1 -0
- package/dist/ssr/charts/core/calendar.js +1 -1
- package/dist/ssr/charts/core/calendar.js.map +1 -1
- 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/default-styles.js +83 -0
- package/dist/ssr/charts/core/default-styles.js.map +1 -0
- package/dist/ssr/charts/core/funnel-layout.js +79 -0
- package/dist/ssr/charts/core/funnel-layout.js.map +1 -0
- package/dist/ssr/charts/core/funnel.js +27 -0
- package/dist/ssr/charts/core/funnel.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 +12 -2
- package/dist/ssr/charts/core/index.js.map +1 -1
- package/dist/ssr/charts/core/map.js +116 -0
- package/dist/ssr/charts/core/map.js.map +1 -0
- package/dist/ssr/charts/core/pareto.js +120 -0
- package/dist/ssr/charts/core/pareto.js.map +1 -0
- package/dist/ssr/charts/core/radar.js +101 -0
- package/dist/ssr/charts/core/radar.js.map +1 -0
- package/dist/ssr/charts/core/registry.js +33 -16
- package/dist/ssr/charts/core/registry.js.map +1 -1
- package/dist/ssr/charts/core/render-size.js +15 -0
- package/dist/ssr/charts/core/render-size.js.map +1 -0
- package/dist/ssr/charts/core/render.js +39 -10
- package/dist/ssr/charts/core/render.js.map +1 -1
- package/dist/ssr/charts/core/snapshot.js +4 -4
- package/dist/ssr/charts/core/snapshot.js.map +1 -1
- package/dist/ssr/charts/core/svg-barGauge.js +67 -0
- package/dist/ssr/charts/core/svg-barGauge.js.map +1 -0
- package/dist/ssr/charts/core/svg-boxplot.js +127 -0
- package/dist/ssr/charts/core/svg-boxplot.js.map +1 -0
- package/dist/ssr/charts/core/svg-common.js +1065 -0
- package/dist/ssr/charts/core/svg-common.js.map +1 -0
- package/dist/ssr/charts/core/svg-gauge.js +185 -0
- package/dist/ssr/charts/core/svg-gauge.js.map +1 -0
- package/dist/ssr/charts/core/svg-heatmap.js +80 -0
- package/dist/ssr/charts/core/svg-heatmap.js.map +1 -0
- package/dist/ssr/charts/core/svg-histogram.js +73 -0
- package/dist/ssr/charts/core/svg-histogram.js.map +1 -0
- package/dist/ssr/charts/core/svg-renderers.js +638 -0
- package/dist/ssr/charts/core/svg-renderers.js.map +1 -0
- package/dist/ssr/charts/core/svg-scatter.js +114 -0
- package/dist/ssr/charts/core/svg-scatter.js.map +1 -0
- package/dist/ssr/charts/core/svg.js +4 -2525
- package/dist/ssr/charts/core/svg.js.map +1 -1
- package/dist/ssr/charts/core/treemap.js +138 -0
- package/dist/ssr/charts/core/treemap.js.map +1 -0
- package/dist/ssr/charts/core/types.js +0 -2
- package/dist/ssr/charts/core/types.js.map +1 -1
- 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.map +1 -1
- package/dist/ssr/content/Chart.js +14 -471
- package/dist/ssr/content/Chart.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +489 -0
- package/dist/ssr/content/ChartRoot.js.map +1 -0
- package/dist/ssr/content/ChartSnapshotView.js +1 -0
- 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 +12 -16
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/FileView.js +56 -7
- package/dist/ssr/content/FileView.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +39 -10
- 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/ThumbnailStrip.js +103 -0
- package/dist/ssr/content/ThumbnailStrip.js.map +1 -0
- package/dist/ssr/content/chart-bar.js +344 -16
- package/dist/ssr/content/chart-bar.js.map +1 -1
- package/dist/ssr/content/chart-inspection-core.js +50 -29
- package/dist/ssr/content/chart-inspection-core.js.map +1 -1
- package/dist/ssr/content/chart-line-gaps.js +1 -1
- package/dist/ssr/content/chart-line-gaps.js.map +1 -1
- package/dist/ssr/content/chart-message-catalog.js +28 -0
- package/dist/ssr/content/chart-message-catalog.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 +2 -1
- package/dist/ssr/content/chart-svg.js.map +1 -1
- package/dist/ssr/content/index.js +2 -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/content/thumbnail-strip-messages.js +24 -0
- package/dist/ssr/content/thumbnail-strip-messages.js.map +1 -0
- package/dist/ssr/inputs/ChoiceInputs.js +69 -17
- 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 +14 -9
- 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/index.js +5 -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/MarkdownSelectionToolbar.js +293 -0
- package/dist/ssr/inputs/markdown/MarkdownSelectionToolbar.js.map +1 -0
- 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/internal/field.js +36 -24
- package/dist/ssr/internal/field.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +5 -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/PanelDialog.js +40 -26
- package/dist/ssr/layout/PanelDialog.js.map +1 -1
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/surfaces/DescriptionList.js +1 -1
- package/dist/ssr/surfaces/DescriptionList.js.map +1 -1
- package/dist/ssr/surfaces/StatCell.js +31 -21
- package/dist/ssr/surfaces/StatCell.js.map +1 -1
- package/dist/ssr/surfaces/delta-badge.js +16 -2
- package/dist/ssr/surfaces/delta-badge.js.map +1 -1
- package/dist/ssr/surfaces/stat-cell-messages.js +4 -2
- package/dist/ssr/surfaces/stat-cell-messages.js.map +1 -1
- package/dist/ssr/widgets/DashboardFrame.js +195 -0
- package/dist/ssr/widgets/DashboardFrame.js.map +1 -0
- package/dist/ssr/widgets/index.js +1 -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/Toolbar.d.ts +2 -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/bar-labels.d.ts +1 -0
- package/dist/types/charts/core/bubble.d.ts +66 -0
- package/dist/types/charts/core/calendar.d.ts +1 -1
- package/dist/types/charts/core/chart-messages.d.ts +5 -0
- package/dist/types/charts/core/default-styles.d.ts +1 -0
- package/dist/types/charts/core/funnel-layout.d.ts +43 -0
- package/dist/types/charts/core/funnel.d.ts +13 -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 +12 -2
- package/dist/types/charts/core/map.d.ts +3 -0
- package/dist/types/charts/core/pareto.d.ts +40 -0
- package/dist/types/charts/core/radar.d.ts +47 -0
- package/dist/types/charts/core/registry.d.ts +27 -11
- package/dist/types/charts/core/render-size.d.ts +7 -0
- package/dist/types/charts/core/render.d.ts +1 -4
- package/dist/types/charts/core/snapshot.d.ts +2 -2
- package/dist/types/charts/core/svg-barGauge.d.ts +3 -0
- package/dist/types/charts/core/svg-boxplot.d.ts +18 -0
- package/dist/types/charts/core/svg-common.d.ts +612 -0
- package/dist/types/charts/core/svg-gauge.d.ts +6 -0
- package/dist/types/charts/core/svg-heatmap.d.ts +6 -0
- package/dist/types/charts/core/svg-histogram.d.ts +16 -0
- package/dist/types/charts/core/svg-renderers.d.ts +118 -0
- package/dist/types/charts/core/svg-scatter.d.ts +23 -0
- package/dist/types/charts/core/svg.d.ts +4 -698
- package/dist/types/charts/core/treemap.d.ts +45 -0
- package/dist/types/charts/core/types.d.ts +1 -12
- package/dist/types/charts/core/waterfall.d.ts +68 -0
- package/dist/types/charts/description.d.ts +289 -0
- package/dist/types/charts.d.ts +1 -0
- package/dist/types/content/Chart.d.ts +3 -91
- package/dist/types/content/ChartRoot.d.ts +92 -0
- package/dist/types/content/ChartSparkline.d.ts +5 -0
- package/dist/types/content/Lightbox.d.ts +2 -0
- package/dist/types/content/PdfViewer.d.ts +32 -0
- package/dist/types/content/ThumbnailStrip.d.ts +29 -0
- package/dist/types/content/chart-bar.d.ts +131 -2
- package/dist/types/content/chart-inspection-core.d.ts +7 -0
- package/dist/types/content/chart-inspection.d.ts +1 -0
- package/dist/types/content/chart-message-catalog.d.ts +8 -0
- package/dist/types/content/index.d.ts +3 -0
- 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/content/thumbnail-strip-messages.d.ts +10 -0
- package/dist/types/inputs/ChoiceInputs.d.ts +6 -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/index.d.ts +10 -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/MarkdownSelectionToolbar.d.ts +19 -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/internal/field.d.ts +2 -0
- package/dist/types/layout/DetailPanel.d.ts +12 -0
- package/dist/types/layout/PanelDialog.d.ts +5 -0
- package/dist/types/layout/index.d.ts +1 -1
- package/dist/types/surfaces/DescriptionList.d.ts +5 -0
- package/dist/types/surfaces/StatCell.d.ts +6 -1
- package/dist/types/surfaces/stat-cell-messages.d.ts +1 -0
- package/dist/types/widgets/DashboardFrame.d.ts +61 -0
- package/dist/types/widgets/index.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
/** One image in a `ThumbnailStrip`. */
|
|
3
|
+
export type ThumbnailStripItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
/** Small image URL, or a component that renders the caller's own thumbnail; a neutral tile shows until it loads. */
|
|
7
|
+
thumbnail?: string | (() => JSX.Element);
|
|
8
|
+
/** Marks an image with unsaved edits. */
|
|
9
|
+
dirty?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ThumbnailStripProps = {
|
|
12
|
+
items: readonly ThumbnailStripItem[];
|
|
13
|
+
/** The `id` of the shown image; it is ringed, scrolled into view, and the strip's one tab stop. */
|
|
14
|
+
currentItem?: string;
|
|
15
|
+
onSelectItem: (id: string) => void;
|
|
16
|
+
/** Adds a "+" tile at the end. */
|
|
17
|
+
onAddItems?: () => void;
|
|
18
|
+
/** Accessible name of the strip, such as "Images". */
|
|
19
|
+
label: string;
|
|
20
|
+
/** The host's layer class, such as `k2b-overlay-surface` where the strip floats over a picture. */
|
|
21
|
+
class?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A row of image thumbnails, 44 px high, that scrolls sideways and fades softly only on the side where more images
|
|
25
|
+
* follow. The current image is ringed and is the strip's one tab stop; the arrow keys, Home, and End move focus between
|
|
26
|
+
* images, and Enter or a click shows one. A dot marks unsaved edits. The host decides where the strip sits, also on a
|
|
27
|
+
* phone, and whether it floats over a picture.
|
|
28
|
+
*/
|
|
29
|
+
export declare function ThumbnailStrip(props: ThumbnailStripProps): JSX.Element;
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
import { type AxisOptions, type BarItem, type ReferenceLine } from "../charts/core/svg";
|
|
1
|
+
import { type AxisOptions, type BarItem, type ReferenceLine } from "../charts/core/svg-renderers";
|
|
2
2
|
/**
|
|
3
3
|
* Bar chart options: stdlib's `charts.bar` options plus a title for the category axis and a separate value format.
|
|
4
4
|
* The wrapper owns size and inspection.
|
|
5
5
|
*/
|
|
6
6
|
export type BarChartOptions = {
|
|
7
|
-
data
|
|
7
|
+
data?: BarItem[];
|
|
8
|
+
/** Aligned categories and series. Null observations are gaps. */
|
|
9
|
+
x?: string[];
|
|
10
|
+
series?: {
|
|
11
|
+
label: string;
|
|
12
|
+
data: (number | null)[];
|
|
13
|
+
}[];
|
|
14
|
+
layout?: "columns" | "rows" | "grouped" | "stacked";
|
|
15
|
+
normalize?: boolean;
|
|
16
|
+
/** Explicit rows form a ranked list; shares include every source item, including the remainder. */
|
|
17
|
+
share?: boolean;
|
|
18
|
+
limit?: number;
|
|
19
|
+
tone?: "in" | "out";
|
|
20
|
+
locale?: string;
|
|
21
|
+
compare?: {
|
|
22
|
+
label: string;
|
|
23
|
+
data: (number | null)[];
|
|
24
|
+
};
|
|
8
25
|
/** Value axis. `label` titles it, `format` writes its ticks and, without `valueFormat`, the printed values. */
|
|
9
26
|
yAxis?: AxisOptions;
|
|
10
27
|
/**
|
|
@@ -43,11 +60,23 @@ export type BarChartOptions = {
|
|
|
43
60
|
export type BarChartLayout = "columns" | "rows";
|
|
44
61
|
/** Estimated width of `text` at `size` pixels in the UI sans font with tabular figures; a little wide on purpose. */
|
|
45
62
|
export declare const chartTextWidth: (text: string, size?: number) => number;
|
|
63
|
+
/** Split a label into at most `lines` lines of `maxPx`; the last line ends with an ellipsis when the label is longer. */
|
|
64
|
+
export declare const wrapLabel: (label: string, maxPx: number, lines: number) => {
|
|
65
|
+
lines: string[];
|
|
66
|
+
truncated: boolean;
|
|
67
|
+
};
|
|
68
|
+
type Scale = {
|
|
69
|
+
domain: [number, number];
|
|
70
|
+
ticks: number[];
|
|
71
|
+
log: boolean;
|
|
72
|
+
};
|
|
73
|
+
export declare const headerHeight: (opts: Pick<BarChartOptions, "title" | "subtitle">) => number;
|
|
46
74
|
/** The layout a bar chart takes and its logical height, so server and browser reserve the same box. */
|
|
47
75
|
export declare const barChartLayout: (opts: BarChartOptions, width?: number) => {
|
|
48
76
|
layout: BarChartLayout;
|
|
49
77
|
height: number;
|
|
50
78
|
};
|
|
79
|
+
export declare const renderHeader: (opts: Pick<BarChartOptions, "title" | "subtitle">, width: number) => string;
|
|
51
80
|
/**
|
|
52
81
|
* Render a bar chart in which every category has its label. Few short labels stand below vertical columns; otherwise
|
|
53
82
|
* each category becomes a horizontal row with its label left of the bar and its value at the bar's end. Rows grow the
|
|
@@ -58,3 +87,103 @@ export declare const renderBarChartSvg: (opts: BarChartOptions & {
|
|
|
58
87
|
height: number;
|
|
59
88
|
inspect?: boolean;
|
|
60
89
|
}) => string;
|
|
90
|
+
/** Stable wrapping legend slots reserve the widest total or category value before interaction. */
|
|
91
|
+
export declare function barSeriesLegend(entries: {
|
|
92
|
+
label: string;
|
|
93
|
+
data: (number | null)[];
|
|
94
|
+
}[], format: (v: number) => string, width?: number, displayWidth?: number, maxHeight?: number): {
|
|
95
|
+
items: {
|
|
96
|
+
label: string;
|
|
97
|
+
data: (number | null)[];
|
|
98
|
+
total: number | null;
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
labelWidth: number;
|
|
102
|
+
valueX: number;
|
|
103
|
+
}[];
|
|
104
|
+
hidden: number;
|
|
105
|
+
height: number;
|
|
106
|
+
};
|
|
107
|
+
/** Category geometry shared by SVG, server snapshots and browser inspection. */
|
|
108
|
+
export declare function seriesBarLayout(opts: BarChartOptions, size?: {
|
|
109
|
+
width: number;
|
|
110
|
+
height: number;
|
|
111
|
+
}): {
|
|
112
|
+
width: number;
|
|
113
|
+
height: number;
|
|
114
|
+
columns: {
|
|
115
|
+
label: string;
|
|
116
|
+
index: number;
|
|
117
|
+
center: number;
|
|
118
|
+
current: {
|
|
119
|
+
seriesIndex: number;
|
|
120
|
+
raw: number | null | undefined;
|
|
121
|
+
value: number | null;
|
|
122
|
+
base: number;
|
|
123
|
+
}[];
|
|
124
|
+
total: number;
|
|
125
|
+
previous: number | null | undefined;
|
|
126
|
+
}[];
|
|
127
|
+
totals: (number | null)[];
|
|
128
|
+
scale: Scale;
|
|
129
|
+
left: number;
|
|
130
|
+
right: number;
|
|
131
|
+
top: number;
|
|
132
|
+
bottom: number;
|
|
133
|
+
slot: number;
|
|
134
|
+
y: (value: number) => number;
|
|
135
|
+
format: (value: number) => string;
|
|
136
|
+
units: number;
|
|
137
|
+
entries: {
|
|
138
|
+
label: string;
|
|
139
|
+
data: (number | null)[];
|
|
140
|
+
}[];
|
|
141
|
+
legend: boolean;
|
|
142
|
+
legendLayout: {
|
|
143
|
+
items: {
|
|
144
|
+
label: string;
|
|
145
|
+
data: (number | null)[];
|
|
146
|
+
total: number | null;
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
labelWidth: number;
|
|
150
|
+
valueX: number;
|
|
151
|
+
}[];
|
|
152
|
+
hidden: number;
|
|
153
|
+
height: number;
|
|
154
|
+
};
|
|
155
|
+
barWidthPx: number;
|
|
156
|
+
};
|
|
157
|
+
/** Ranked rows retain original indices. A limit changes the drawing, never the denominator or source data. */
|
|
158
|
+
export declare function rankedBarLayout(opts: BarChartOptions, size?: {
|
|
159
|
+
width: number;
|
|
160
|
+
height: number;
|
|
161
|
+
}): {
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
rows: {
|
|
165
|
+
label: string;
|
|
166
|
+
value: number;
|
|
167
|
+
colorIndex?: number;
|
|
168
|
+
index: number;
|
|
169
|
+
rank: number;
|
|
170
|
+
y: number;
|
|
171
|
+
width: number;
|
|
172
|
+
share: number | null;
|
|
173
|
+
}[];
|
|
174
|
+
total: number;
|
|
175
|
+
rest: {
|
|
176
|
+
label: string;
|
|
177
|
+
value: number;
|
|
178
|
+
colorIndex?: number;
|
|
179
|
+
index: number;
|
|
180
|
+
}[];
|
|
181
|
+
restValue: number | null;
|
|
182
|
+
top: number;
|
|
183
|
+
unit: number;
|
|
184
|
+
format: (value: number) => string;
|
|
185
|
+
percent: Intl.NumberFormat;
|
|
186
|
+
shareWidth: number;
|
|
187
|
+
labelWidth: number;
|
|
188
|
+
};
|
|
189
|
+
export {};
|
|
@@ -36,6 +36,11 @@ export declare function createChartInspector(options: {
|
|
|
36
36
|
click: (event: MouseEvent) => void;
|
|
37
37
|
focus: (event: FocusEvent) => void;
|
|
38
38
|
key: (event: KeyboardEvent) => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The page scrolled: a keyboard tooltip, or one a linked chart keeps open, follows its mark; others close. A
|
|
41
|
+
* focused chart scrolled into view would otherwise close the tooltip its focus just opened.
|
|
42
|
+
*/
|
|
43
|
+
scroll: () => void;
|
|
39
44
|
close: () => void;
|
|
40
45
|
invalidate: () => void;
|
|
41
46
|
leave: () => void;
|
|
@@ -45,6 +50,8 @@ export declare function closeChartInspectionOnOutside(options: {
|
|
|
45
50
|
container: () => HTMLElement | undefined;
|
|
46
51
|
tooltip: () => HTMLElement | undefined;
|
|
47
52
|
close: () => void;
|
|
53
|
+
/** What a page scroll does; defaults to close. An inspector passes its `scroll`, which keeps keyboard tooltips. */
|
|
54
|
+
scroll?: () => void;
|
|
48
55
|
keepScroll?: () => boolean | undefined;
|
|
49
56
|
}): () => void;
|
|
50
57
|
export type InspectChartOptions = {
|
|
@@ -22,6 +22,7 @@ export declare function createChartInspection(options: {
|
|
|
22
22
|
click: (event: MouseEvent) => void;
|
|
23
23
|
focus: (event: FocusEvent) => void;
|
|
24
24
|
key: (event: KeyboardEvent) => boolean;
|
|
25
|
+
scroll: () => void;
|
|
25
26
|
close: () => void;
|
|
26
27
|
invalidate: () => void;
|
|
27
28
|
leave: () => void;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const chartMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
chartBarStart: string;
|
|
3
|
+
chartBarMore: ({ n }: {
|
|
4
|
+
n: number;
|
|
5
|
+
}) => string;
|
|
2
6
|
chartView: string;
|
|
3
7
|
chartDiagram: string;
|
|
4
8
|
chartData: string;
|
|
@@ -41,6 +45,10 @@ export declare const chartMessages: import("@k2b/stdlib").Catalog<{
|
|
|
41
45
|
resetTimelineView: string;
|
|
42
46
|
}>;
|
|
43
47
|
export declare const resolveChartMessages: (locale: string) => {
|
|
48
|
+
chartBarStart: string;
|
|
49
|
+
chartBarMore: ({ n }: {
|
|
50
|
+
n: number;
|
|
51
|
+
}) => string;
|
|
44
52
|
chartView: string;
|
|
45
53
|
chartDiagram: string;
|
|
46
54
|
chartData: string;
|
|
@@ -60,6 +60,8 @@ export { type MarkdownLinkInput, type MarkdownReference, type MarkdownReferenceK
|
|
|
60
60
|
export { Pagination, type PaginationProps } from "./Pagination";
|
|
61
61
|
export type { PdfPreviewProps, PdfPreviewRequest } from "./PdfPreview";
|
|
62
62
|
export { default as PdfPreview } from "./PdfPreview";
|
|
63
|
+
export type { PdfViewerProps } from "./PdfViewer";
|
|
64
|
+
export { default as PdfViewer } from "./PdfViewer";
|
|
63
65
|
export type { RangeOption, RangePickerProps } from "./RangePicker";
|
|
64
66
|
export { default as RangePicker } from "./RangePicker";
|
|
65
67
|
export { ReactionBar, type ReactionBarItem, type ReactionBarProps } from "./ReactionBar";
|
|
@@ -69,6 +71,7 @@ export type { StepsProps } from "./Steps";
|
|
|
69
71
|
export { Steps } from "./Steps";
|
|
70
72
|
export type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from "./StructuredDataPreview";
|
|
71
73
|
export { default as StructuredDataPreview, isStructuredDataValue } from "./StructuredDataPreview";
|
|
74
|
+
export { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from "./ThumbnailStrip";
|
|
72
75
|
export type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from "./Timeline";
|
|
73
76
|
export { default as Timeline } from "./Timeline";
|
|
74
77
|
export { VideoPlayer, type VideoPlayerProps } from "./VideoPlayer";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type PdfDocumentHandle } from "./pdf-limits";
|
|
2
|
+
export type { PdfDocumentHandle, PdfPageImage, PdfPageSize } from "./pdf-limits";
|
|
3
|
+
export { PDF_LIMITS, PDF_TOO_LARGE, pageImageWidth } from "./pdf-limits";
|
|
4
|
+
/** Opens a PDF; `null` after an abort. Throws `PDF_TOO_LARGE` past `PDF_LIMITS`, or pdf.js's error for a broken file. */
|
|
5
|
+
export declare const openPdfDocument: (data: Blob | ArrayBuffer, signal: AbortSignal) => Promise<PdfDocumentHandle | null>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PdfDocumentHandle } from "./pdf-limits";
|
|
2
|
+
/**
|
|
3
|
+
* The PDF engine: pdf.js and the glue `PdfViewer` needs. The @k2b/ui build bundles this module on its own into
|
|
4
|
+
* `pdf-viewer-engine.js`; `openPdfDocument` loads it by address, so a host's bundle never contains pdf.js. The legacy
|
|
5
|
+
* build also runs on older Safari on iPad. Parsing never runs code from the document: there is no scripting, XFA stays
|
|
6
|
+
* off, and pdf.js loads nothing beyond the given bytes. `workerUrl` is resolved against this module, next to which the
|
|
7
|
+
* host's bundler put the worker file.
|
|
8
|
+
*/
|
|
9
|
+
export declare function openPdf(data: ArrayBuffer, signal: AbortSignal, workerUrl: string): Promise<PdfDocumentHandle | null>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Shapes and bounds shared by `PdfViewer`, its loader, and the pdf.js engine. */
|
|
2
|
+
/** A page's size in PDF points at scale 1. */
|
|
3
|
+
export type PdfPageSize = {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
/** One drawn page: an object URL the caller revokes, and its size in pixels. */
|
|
8
|
+
export type PdfPageImage = {
|
|
9
|
+
url: string;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
};
|
|
13
|
+
export type PdfDocumentHandle = {
|
|
14
|
+
pages: readonly PdfPageSize[];
|
|
15
|
+
/** Draws one page `widthPx` wide; `null` after an abort. The caller revokes the returned URL. */
|
|
16
|
+
draw: (index: number, widthPx: number, signal: AbortSignal) => Promise<PdfPageImage | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Lays the selectable, searchable text of one page into `container`. Positions are relative to the page; the font
|
|
19
|
+
* follows `--total-scale-factor` (CSS pixels per point) on the container or above, so zoom changes only that value.
|
|
20
|
+
*/
|
|
21
|
+
textLayer: (index: number, container: HTMLElement, signal: AbortSignal) => Promise<void>;
|
|
22
|
+
close: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Bounds for one document. Bytes and pages bound parsing work and memory; a larger document falls back to the
|
|
26
|
+
* browser's own viewer. Canvas pixels stay below the size Safari still draws (larger canvases come out blank).
|
|
27
|
+
*/
|
|
28
|
+
export declare const PDF_LIMITS: {
|
|
29
|
+
readonly maxBytes: number;
|
|
30
|
+
readonly maxPages: 2000;
|
|
31
|
+
readonly maxCanvasPixels: 16000000;
|
|
32
|
+
readonly maxImageWidth: 4096;
|
|
33
|
+
};
|
|
34
|
+
/** The name of the error a document past `PDF_LIMITS` raises; the host shows the browser's viewer instead. */
|
|
35
|
+
export declare const PDF_TOO_LARGE = "PdfTooLargeError";
|
|
36
|
+
export declare const pdfTooLarge: (message: string) => Error;
|
|
37
|
+
/**
|
|
38
|
+
* Pixel width for a page image shown `displayWidth` CSS pixels wide: display width times the device pixel ratio
|
|
39
|
+
* (at most 2), at least 400 px where the page allows it, at most `PDF_LIMITS.maxImageWidth`, and always small enough
|
|
40
|
+
* that the canvas stays under `PDF_LIMITS.maxCanvasPixels` for the page's height-to-width `ratio`, also for a very
|
|
41
|
+
* tall page. Very deep zoom turns slightly soft, never blank.
|
|
42
|
+
*/
|
|
43
|
+
export declare const pageImageWidth: (displayWidth: number, pixelRatio: number, ratio: number) => number;
|
|
@@ -10,6 +10,22 @@ declare const pdfMessages: import("@k2b/stdlib").Catalog<{
|
|
|
10
10
|
pdfPreviewRendering: string;
|
|
11
11
|
previewPdf: string;
|
|
12
12
|
renderPdfPreview: string;
|
|
13
|
+
pdfPage: ({ number, total }: {
|
|
14
|
+
number: number;
|
|
15
|
+
total: number;
|
|
16
|
+
}) => string;
|
|
17
|
+
pdfPageShort: ({ number, total }: {
|
|
18
|
+
number: number;
|
|
19
|
+
total: number;
|
|
20
|
+
}) => string;
|
|
21
|
+
pdfZoom: string;
|
|
22
|
+
pdfZoomOut: string;
|
|
23
|
+
pdfZoomIn: string;
|
|
24
|
+
pdfZoomPercent: ({ value }: {
|
|
25
|
+
value: number;
|
|
26
|
+
}) => string;
|
|
27
|
+
pdfFitWidth: string;
|
|
28
|
+
pdfFitWidthLabel: string;
|
|
13
29
|
}>;
|
|
14
30
|
export type PdfMessages = ReturnType<(typeof pdfMessages)["resolve"]>["t"];
|
|
15
31
|
/** Resolved from the inherited render locale. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const thumbnailStripMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
thumbnailCurrent: string;
|
|
3
|
+
thumbnailUnsaved: string;
|
|
4
|
+
thumbnailAdd: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type ThumbnailStripMessages = ReturnType<(typeof thumbnailStripMessages)["resolve"]>["t"];
|
|
7
|
+
/** Resolved from the inherited render locale. */
|
|
8
|
+
export declare const useThumbnailStripMessages: () => (() => ThumbnailStripMessages);
|
|
9
|
+
export declare const checkThumbnailStripMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
10
|
+
export {};
|
|
@@ -13,7 +13,13 @@ export type SliderProps = FieldProps & Omit<JSX.InputHTMLAttributes<HTMLInputEle
|
|
|
13
13
|
value: MaybeAccessor<number>;
|
|
14
14
|
formatValue?: (value: number) => string;
|
|
15
15
|
showValue?: boolean;
|
|
16
|
+
/** Place the value and reset beside the label. Without a label, they stay beside the track. */
|
|
17
|
+
valuePlacement?: "control" | "label";
|
|
16
18
|
center?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The value the setting starts from. With it, a changed value shows in the accent color and a reset button
|
|
21
|
+
* appears in a slot the slider always keeps, so nothing moves. Double-click resets too.
|
|
22
|
+
*/
|
|
17
23
|
defaultValue?: number;
|
|
18
24
|
};
|
|
19
25
|
export declare function Slider(props: SliderProps): JSX.Element;
|
|
@@ -34,3 +34,15 @@ export type ChoiceSliderProps = {
|
|
|
34
34
|
* never changes. Unavailable stops stay visible and are skipped.
|
|
35
35
|
*/
|
|
36
36
|
export declare function ChoiceSlider(props: ChoiceSliderProps): JSX.Element;
|
|
37
|
+
export type ChoiceSliderIndicatorProps = {
|
|
38
|
+
/** How many stops the slider it stands for has. */
|
|
39
|
+
count: number;
|
|
40
|
+
/** The chosen stop's index, or `null` (or a negative index) for a choice that is none of the stops. */
|
|
41
|
+
index: number | null;
|
|
42
|
+
class?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The slider in small and without interaction, 24 px wide: rail, fill and thumb in the same look, for a trigger that
|
|
46
|
+
* opens the real slider. It is decoration; the trigger's own label says the value.
|
|
47
|
+
*/
|
|
48
|
+
export declare function ChoiceSliderIndicator(props: ChoiceSliderIndicatorProps): JSX.Element;
|
|
@@ -52,6 +52,28 @@ export type DateRangePickerProps = DatePickerBaseProps<DateRangeValue> & {
|
|
|
52
52
|
};
|
|
53
53
|
/** `below` is a line under the trigger that the panel must not cover, such as a typed field's status line. */
|
|
54
54
|
export declare const placeDatePopover: (trigger: HTMLElement, popover: HTMLElement, wide: boolean, below?: HTMLElement) => void;
|
|
55
|
+
/** One month of days. Exported for composite pickers in this package (the period picker shows two side by side). */
|
|
56
|
+
export declare function DatePickerPanel(props: {
|
|
57
|
+
visibleMonth: () => Date;
|
|
58
|
+
setVisibleMonth: (date: Date) => void;
|
|
59
|
+
selected?: () => string | null | undefined;
|
|
60
|
+
range?: () => DateRangeValue;
|
|
61
|
+
focusDate?: () => string | null | undefined;
|
|
62
|
+
onSelect: (date: string) => void;
|
|
63
|
+
onDayPreview?: (date: string | null) => void;
|
|
64
|
+
dateConfig?: DateContext;
|
|
65
|
+
/** Earliest and latest selectable day as date keys. */
|
|
66
|
+
min?: string;
|
|
67
|
+
max?: string;
|
|
68
|
+
/** Which month steps this panel offers; a second month beside it offers the other one. */
|
|
69
|
+
nav?: "both" | "previous" | "next";
|
|
70
|
+
/** Leaves the days of neighbouring months empty (`visibility: hidden`), so two months side by side never show a day twice. */
|
|
71
|
+
hideOutside?: boolean;
|
|
72
|
+
/** Whether a day is already on screen, also in a neighbouring panel; arrow keys then move there without paging. */
|
|
73
|
+
isShown?: (date: Date) => boolean;
|
|
74
|
+
/** Where keyboard navigation looks for the day to focus; the panel itself by default. */
|
|
75
|
+
focusRoot?: () => HTMLElement | undefined;
|
|
76
|
+
}): JSX.Element;
|
|
55
77
|
export declare function DatePicker(props: DatePickerProps): JSX.Element;
|
|
56
78
|
export declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;
|
|
57
79
|
export declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import type { DateContext, MaybeAccessor, ValueFieldProps } from "./field-contract";
|
|
3
|
+
import { type PeriodPreset, type PeriodValue } from "./period";
|
|
4
|
+
export type PeriodPickerProps = Omit<ValueFieldProps<PeriodValue | null>, "value"> & {
|
|
5
|
+
/** A preset key or two explicit days; `null` or an unknown preset key shows the placeholder. */
|
|
6
|
+
value: MaybeAccessor<PeriodValue | null>;
|
|
7
|
+
/** The presets in list order, for example `periodPresets.thisMonth` or an app's own `{ key, label, resolve }`. */
|
|
8
|
+
presets: readonly PeriodPreset[];
|
|
9
|
+
/** Offers "Custom range" with a calendar in the same popover. On by default. */
|
|
10
|
+
custom?: boolean;
|
|
11
|
+
/** Time zone, week start and locale. Presets resolve "today" in `timeZone`; pass the zone the data uses. */
|
|
12
|
+
dateConfig?: DateContext;
|
|
13
|
+
/** The instant "today" is read from. Pass the server's instant so the first render and the browser agree. */
|
|
14
|
+
now?: Date;
|
|
15
|
+
/** Shows that a change is saving: the trigger keeps its size, cannot be opened, and shows a spinner. */
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* PeriodPicker — one control for the period an evaluation or dashboard shows: presets such as "This month" plus a
|
|
20
|
+
* custom range, edited in the same popover (a bottom sheet on phones). The trigger shows the preset with its days or
|
|
21
|
+
* the custom days with their count, and keeps the width of its longest text so nothing beside it moves.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PeriodPicker(props: PeriodPickerProps): JSX.Element;
|
|
24
|
+
export default PeriodPicker;
|
|
@@ -12,8 +12,8 @@ export type { ColorInputProps, PinInputProps, SliderProps, } from "./ChoiceInput
|
|
|
12
12
|
export { ColorInput, PinInput, Slider } from "./ChoiceInputs";
|
|
13
13
|
export type { ChoiceListOption, ChoiceListProps } from "./ChoiceList";
|
|
14
14
|
export { ChoiceList } from "./ChoiceList";
|
|
15
|
-
export type { ChoiceSliderOption, ChoiceSliderProps } from "./ChoiceSlider";
|
|
16
|
-
export { ChoiceSlider } from "./ChoiceSlider";
|
|
15
|
+
export type { ChoiceSliderIndicatorProps, ChoiceSliderOption, ChoiceSliderProps } from "./ChoiceSlider";
|
|
16
|
+
export { ChoiceSlider, ChoiceSliderIndicator } from "./ChoiceSlider";
|
|
17
17
|
export type { ChoiceTileOption, ChoiceTilesProps } from "./ChoiceTiles";
|
|
18
18
|
export { ChoiceTiles } from "./ChoiceTiles";
|
|
19
19
|
export type { ColorChoiceOption, ColorChoicesProps } from "./ColorChoices";
|
|
@@ -48,8 +48,16 @@ export type { MultiSelectFetchDataFn, MultiSelectInputProps, MultiSelectOption,
|
|
|
48
48
|
export { MultiSelectInput } from "./MultiSelectInput";
|
|
49
49
|
export type { MarkdownEditorProps } from "./markdown/MarkdownEditor";
|
|
50
50
|
export { MarkdownEditor } from "./markdown/MarkdownEditor";
|
|
51
|
+
export type { MarkdownSelectionToolbarProps } from "./markdown/MarkdownSelectionToolbar";
|
|
52
|
+
export { MarkdownSelectionToolbar } from "./markdown/MarkdownSelectionToolbar";
|
|
53
|
+
export type { SlashCommandsProps } from "./markdown/SlashCommands";
|
|
54
|
+
export { SlashCommands } from "./markdown/SlashCommands";
|
|
51
55
|
export type { NumberInputProps } from "./NumberInput";
|
|
52
56
|
export { NumberInput } from "./NumberInput";
|
|
57
|
+
export type { PeriodPickerProps } from "./PeriodPicker";
|
|
58
|
+
export { PeriodPicker } from "./PeriodPicker";
|
|
59
|
+
export type { PeriodClock, PeriodContext, PeriodPreset, PeriodRange, PeriodValue } from "./period";
|
|
60
|
+
export { formatPeriodDays, formatPeriodRange, isPeriodDay, parsePeriodValue, periodContext, periodDayCount, periodInstants, periodPresets, resolvePeriod, } from "./period";
|
|
53
61
|
export type { QrScannerError, QrScannerProps } from "./QrScanner";
|
|
54
62
|
export { QrScanner } from "./QrScanner";
|
|
55
63
|
export type { RichSelectFact, RichSelectFooter, RichSelectItem, RichSelectProps, RichSelectSection, RichSelectStatus, } from "./RichSelect";
|
|
@@ -9,6 +9,9 @@ declare const inputMessages: import("@k2b/stdlib").Catalog<{
|
|
|
9
9
|
index: number;
|
|
10
10
|
total: number;
|
|
11
11
|
}) => string;
|
|
12
|
+
resetTo: ({ value }: {
|
|
13
|
+
value: string;
|
|
14
|
+
}) => string;
|
|
12
15
|
}>;
|
|
13
16
|
export type InputMessages = ReturnType<(typeof inputMessages)["resolve"]>["t"];
|
|
14
17
|
/** Resolved from the inherited render locale. */
|
|
@@ -14,6 +14,11 @@ export type MarkdownEditorProps = ValueFieldProps<string> & {
|
|
|
14
14
|
completions?: readonly Completion[];
|
|
15
15
|
showStats?: boolean;
|
|
16
16
|
variant?: "default" | "paper" | "embedded";
|
|
17
|
+
/**
|
|
18
|
+
* The font of the text, its highlighting, and the placeholder together: `mono` (default) for Markdown source,
|
|
19
|
+
* `sans` for a message composer whose text later shows in the interface font.
|
|
20
|
+
*/
|
|
21
|
+
font?: "mono" | "sans";
|
|
17
22
|
fill?: boolean;
|
|
18
23
|
/** Groups save and close at the end of the toolbar. The caller owns navigation and unsaved-change confirmation. */
|
|
19
24
|
onClose?: () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
export declare const checkSelectionMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
3
|
+
/**
|
|
4
|
+
* The box of a text range's first line in the editor's mirrored presentation layer, or nothing when that line is
|
|
5
|
+
* scrolled out of the surface. The layer holds the same text as the textarea, so its text nodes map offsets to places.
|
|
6
|
+
*/
|
|
7
|
+
export declare const textRangeBox: (layer: HTMLElement, surface: HTMLElement, start: number, end: number) => DOMRect | null;
|
|
8
|
+
export type MarkdownSelectionToolbarProps = {
|
|
9
|
+
/** The editor's textarea, from `MarkdownEditor`'s `textareaRef`. The toolbar attaches once it is there. */
|
|
10
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A small formatting toolbar that floats above selected text in a `MarkdownEditor`: bold, italic, code, link, lists, and
|
|
14
|
+
* quote. Place it beside an editor with `noToolbar` and pass the editor's textarea. It appears once the pointer lets go
|
|
15
|
+
* of a selection and closes on Escape, a collapsed selection, or when the focus leaves both text and toolbar. Touch
|
|
16
|
+
* devices keep their own selection menu, so nothing of it renders there; the keyboard shortcuts work everywhere. It
|
|
17
|
+
* listens to the textarea itself, so editors without it carry none of its code.
|
|
18
|
+
*/
|
|
19
|
+
export declare function MarkdownSelectionToolbar(props: MarkdownSelectionToolbarProps): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type CommandSource } from "../../actions/command-items";
|
|
3
|
+
export type SlashCommandsProps = {
|
|
4
|
+
/** The editor's textarea, from `MarkdownEditor`'s `textareaRef`. The commands attach once it is there. */
|
|
5
|
+
textarea: HTMLTextAreaElement | undefined;
|
|
6
|
+
/** The same entries as `CommandMenu`'s `items`. */
|
|
7
|
+
items: CommandSource;
|
|
8
|
+
/**
|
|
9
|
+
* The composer box the list docks to, such as the frame around the editor and its "+" row. Defaults to the editor
|
|
10
|
+
* itself.
|
|
11
|
+
*/
|
|
12
|
+
composer?: HTMLElement;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Slash commands for a `MarkdownEditor`: `/` at the start of a line or after a space opens the entries docked above the
|
|
16
|
+
* composer, as wide as it is. Place it beside the editor and pass the editor's textarea. It listens to the textarea itself, so editors without
|
|
17
|
+
* commands carry none of it: native listeners run before the editor's own, and a key it uses is marked handled with
|
|
18
|
+
* `preventDefault`, which the editor respects.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SlashCommands(props: SlashCommandsProps): JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Labels of the built-in period presets and the picker's own words. */
|
|
2
|
+
declare const periodPickerMessages: import("@k2b/stdlib").Catalog<{
|
|
3
|
+
period: string;
|
|
4
|
+
choosePeriod: string;
|
|
5
|
+
custom: string;
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
backToPresets: string;
|
|
9
|
+
since: ({ date }: {
|
|
10
|
+
date: string;
|
|
11
|
+
}) => string;
|
|
12
|
+
days: ({ count }: {
|
|
13
|
+
count: number;
|
|
14
|
+
}) => string;
|
|
15
|
+
today: string;
|
|
16
|
+
yesterday: string;
|
|
17
|
+
"this-week": string;
|
|
18
|
+
"last-week": string;
|
|
19
|
+
"this-month": string;
|
|
20
|
+
"last-month": string;
|
|
21
|
+
"this-quarter": string;
|
|
22
|
+
"last-quarter": string;
|
|
23
|
+
"this-year": string;
|
|
24
|
+
"last-year": string;
|
|
25
|
+
all: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type PeriodPickerMessages = ReturnType<(typeof periodPickerMessages)["resolve"]>["t"];
|
|
28
|
+
/** The translated label of a built-in preset key, if it is one. */
|
|
29
|
+
export declare const builtInPresetLabel: (t: PeriodPickerMessages, key: string) => string | undefined;
|
|
30
|
+
/** Resolved from the inherited render locale. */
|
|
31
|
+
export declare const usePeriodPickerMessages: () => (() => PeriodPickerMessages);
|
|
32
|
+
export declare const resolvePeriodPickerMessages: (locale?: string) => PeriodPickerMessages;
|
|
33
|
+
export declare const checkPeriodPickerMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
34
|
+
export {};
|