@k2b/ui 0.53.0 → 0.55.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 +103 -0
- package/dist/browser/actions/SortableList.js +174 -0
- package/dist/browser/actions/SortableList.js.map +1 -0
- package/dist/browser/actions/Toolbar.js +186 -101
- package/dist/browser/actions/Toolbar.js.map +1 -1
- package/dist/browser/actions/drag-and-drop.js +2 -1
- package/dist/browser/actions/drag-and-drop.js.map +1 -1
- package/dist/browser/actions/index.js +1 -0
- package/dist/browser/actions/index.js.map +1 -1
- package/dist/browser/actions/sortable-list-messages.js +35 -0
- package/dist/browser/actions/sortable-list-messages.js.map +1 -0
- package/dist/browser/chart-inspection.js +2 -1
- package/dist/browser/chart-inspection.js.map +1 -1
- package/dist/browser/charts/core/balance-flow-data.js +93 -0
- package/dist/browser/charts/core/balance-flow-data.js.map +1 -0
- package/dist/browser/charts/core/balance-flow-fields.js +19 -0
- package/dist/browser/charts/core/balance-flow-fields.js.map +1 -0
- package/dist/browser/charts/core/balance-flow-frame.js +44 -0
- package/dist/browser/charts/core/balance-flow-frame.js.map +1 -0
- package/dist/browser/charts/core/balance-flow-messages.js +49 -0
- package/dist/browser/charts/core/balance-flow-messages.js.map +1 -0
- package/dist/browser/charts/core/balance-flow-size.js +42 -0
- package/dist/browser/charts/core/balance-flow-size.js.map +1 -0
- package/dist/browser/charts/core/balance-flow.js +195 -0
- package/dist/browser/charts/core/balance-flow.js.map +1 -0
- package/dist/browser/charts/core/calendar-layout.js +105 -0
- package/dist/browser/charts/core/calendar-layout.js.map +1 -0
- package/dist/browser/charts/core/calendar.js +2 -104
- package/dist/browser/charts/core/calendar.js.map +1 -1
- package/dist/browser/charts/core/index.js +9 -1
- package/dist/browser/charts/core/index.js.map +1 -1
- package/dist/browser/charts/core/inspection.js +2 -1
- package/dist/browser/charts/core/inspection.js.map +1 -1
- package/dist/browser/charts/core/number-format.js +53 -0
- package/dist/browser/charts/core/number-format.js.map +1 -0
- package/dist/browser/charts/core/registry.js +3 -1
- package/dist/browser/charts/core/registry.js.map +1 -1
- package/dist/browser/charts/core/render-size.js +2 -0
- package/dist/browser/charts/core/render-size.js.map +1 -1
- package/dist/browser/charts/core/render.js +8 -1
- package/dist/browser/charts/core/render.js.map +1 -1
- package/dist/browser/charts/core/snapshot.js +3 -3
- package/dist/browser/charts/core/snapshot.js.map +1 -1
- package/dist/browser/charts/core/types.js.map +1 -1
- package/dist/browser/charts/description.js.map +1 -1
- package/dist/browser/charts.js +2 -0
- package/dist/browser/charts.js.map +1 -1
- package/dist/browser/content/Chart.js +3 -1
- package/dist/browser/content/Chart.js.map +1 -1
- package/dist/browser/content/ChartBalanceFlow.js +90 -0
- package/dist/browser/content/ChartBalanceFlow.js.map +1 -0
- package/dist/browser/content/ChartExplorer.js +1 -1
- package/dist/browser/content/ChartExplorer.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +1 -1
- package/dist/browser/content/ChartRoot.js.map +1 -1
- package/dist/browser/content/DataTable.js +212 -261
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/FileView.js +70 -99
- package/dist/browser/content/FileView.js.map +1 -1
- package/dist/browser/content/LoadMore.js +185 -0
- package/dist/browser/content/LoadMore.js.map +1 -0
- package/dist/browser/content/MapDialog.js +686 -0
- package/dist/browser/content/MapDialog.js.map +1 -0
- package/dist/browser/content/MapTile.js +139 -0
- package/dist/browser/content/MapTile.js.map +1 -0
- package/dist/browser/content/MapView.js +19 -8
- package/dist/browser/content/MapView.js.map +1 -1
- package/dist/browser/content/PdfPages.js +638 -0
- package/dist/browser/content/PdfPages.js.map +1 -0
- package/dist/browser/content/PdfViewer.js +264 -553
- package/dist/browser/content/PdfViewer.js.map +1 -1
- package/dist/browser/content/VirtualFeed.js +379 -89
- package/dist/browser/content/VirtualFeed.js.map +1 -1
- package/dist/browser/content/chart-balance-flow-controller.js +184 -0
- package/dist/browser/content/chart-balance-flow-controller.js.map +1 -0
- package/dist/browser/content/chart-balance-flow.js +6 -0
- package/dist/browser/content/chart-balance-flow.js.map +1 -0
- package/dist/browser/content/chart-inspection-core.js +1 -73
- package/dist/browser/content/chart-inspection-core.js.map +1 -1
- package/dist/browser/content/chart-inspection-mount.js +75 -0
- package/dist/browser/content/chart-inspection-mount.js.map +1 -0
- package/dist/browser/content/chart-svg.js +1 -1
- package/dist/browser/content/chart-svg.js.map +1 -1
- package/dist/browser/content/feed-messages.js +22 -2
- package/dist/browser/content/feed-messages.js.map +1 -1
- package/dist/browser/content/index.js +4 -1
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/map-dialog-messages.js +47 -0
- package/dist/browser/content/map-dialog-messages.js.map +1 -0
- package/dist/browser/content/map-navigation.js +15 -0
- package/dist/browser/content/map-navigation.js.map +1 -0
- package/dist/browser/content/map-view-messages.js +4 -0
- package/dist/browser/content/map-view-messages.js.map +1 -1
- package/dist/browser/content/map-view-types.js.map +1 -1
- package/dist/browser/content/pdf-messages.js +8 -8
- package/dist/browser/content/pdf-messages.js.map +1 -1
- package/dist/browser/feedback/dialog-core.js +22 -10
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/index.js.map +1 -1
- package/dist/browser/feedback/prompt-confirm.js +25 -14
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/feedback/prompts.js +46 -38
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/feedback/success-check.js +60 -0
- package/dist/browser/feedback/success-check.js.map +1 -0
- package/dist/browser/feedback/toast-hit.js +16 -0
- package/dist/browser/feedback/toast-hit.js.map +1 -0
- package/dist/browser/feedback/toast-messages.js +6 -2
- package/dist/browser/feedback/toast-messages.js.map +1 -1
- package/dist/browser/feedback/toast.js +609 -98
- package/dist/browser/feedback/toast.js.map +1 -1
- package/dist/browser/intl/messages.js +4 -0
- package/dist/browser/intl/messages.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +58 -21
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/BottomSheet.js +58 -40
- package/dist/browser/layout/BottomSheet.js.map +1 -1
- package/dist/browser/layout/Breadcrumbs.js +97 -0
- package/dist/browser/layout/Breadcrumbs.js.map +1 -0
- package/dist/browser/layout/DetailPanel.js +27 -27
- package/dist/browser/layout/DetailPanel.js.map +1 -1
- package/dist/browser/layout/Discussion.js +119 -160
- package/dist/browser/layout/Discussion.js.map +1 -1
- package/dist/browser/layout/PanelDialog.js +130 -116
- package/dist/browser/layout/PanelDialog.js.map +1 -1
- package/dist/browser/layout/index.js +1 -0
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/layout/sheet-motion.js +479 -0
- package/dist/browser/layout/sheet-motion.js.map +1 -0
- package/dist/browser/surfaces/NoticeCard.js +68 -47
- package/dist/browser/surfaces/NoticeCard.js.map +1 -1
- package/dist/browser/surfaces/Skeleton.js +32 -0
- package/dist/browser/surfaces/Skeleton.js.map +1 -1
- package/dist/browser/surfaces/index.js +1 -1
- package/dist/browser/surfaces/index.js.map +1 -1
- package/dist/browser/text-editor/TextEditor.js +7 -3
- package/dist/browser/text-editor/TextEditor.js.map +1 -1
- package/dist/browser/text-editor/clipboard-html.js +62 -26
- package/dist/browser/text-editor/clipboard-html.js.map +1 -1
- package/dist/browser/text-editor/clipboard-loading.js +44 -15
- package/dist/browser/text-editor/clipboard-loading.js.map +1 -1
- package/dist/browser/text-editor/engine.js +9 -4
- package/dist/browser/text-editor/engine.js.map +1 -1
- package/dist/browser/text-editor/format.js +37 -1
- package/dist/browser/text-editor/format.js.map +1 -1
- package/dist/browser/text-editor/paste.js +2 -1
- package/dist/browser/text-editor/paste.js.map +1 -1
- package/dist/ssr/actions/SortableList.js +116 -0
- package/dist/ssr/actions/SortableList.js.map +1 -0
- package/dist/ssr/actions/Toolbar.js +89 -35
- package/dist/ssr/actions/Toolbar.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop.js +2 -1
- package/dist/ssr/actions/drag-and-drop.js.map +1 -1
- package/dist/ssr/actions/index.js +1 -0
- package/dist/ssr/actions/index.js.map +1 -1
- package/dist/ssr/actions/sortable-list-messages.js +35 -0
- package/dist/ssr/actions/sortable-list-messages.js.map +1 -0
- package/dist/ssr/chart-inspection.js +2 -1
- package/dist/ssr/chart-inspection.js.map +1 -1
- package/dist/ssr/charts/core/balance-flow-data.js +93 -0
- package/dist/ssr/charts/core/balance-flow-data.js.map +1 -0
- package/dist/ssr/charts/core/balance-flow-fields.js +19 -0
- package/dist/ssr/charts/core/balance-flow-fields.js.map +1 -0
- package/dist/ssr/charts/core/balance-flow-frame.js +44 -0
- package/dist/ssr/charts/core/balance-flow-frame.js.map +1 -0
- package/dist/ssr/charts/core/balance-flow-messages.js +49 -0
- package/dist/ssr/charts/core/balance-flow-messages.js.map +1 -0
- package/dist/ssr/charts/core/balance-flow-size.js +42 -0
- package/dist/ssr/charts/core/balance-flow-size.js.map +1 -0
- package/dist/ssr/charts/core/balance-flow.js +195 -0
- package/dist/ssr/charts/core/balance-flow.js.map +1 -0
- package/dist/ssr/charts/core/calendar-layout.js +105 -0
- package/dist/ssr/charts/core/calendar-layout.js.map +1 -0
- package/dist/ssr/charts/core/calendar.js +2 -104
- package/dist/ssr/charts/core/calendar.js.map +1 -1
- package/dist/ssr/charts/core/index.js +9 -1
- package/dist/ssr/charts/core/index.js.map +1 -1
- package/dist/ssr/charts/core/inspection.js +2 -1
- package/dist/ssr/charts/core/inspection.js.map +1 -1
- package/dist/ssr/charts/core/number-format.js +53 -0
- package/dist/ssr/charts/core/number-format.js.map +1 -0
- package/dist/ssr/charts/core/registry.js +3 -1
- package/dist/ssr/charts/core/registry.js.map +1 -1
- package/dist/ssr/charts/core/render-size.js +2 -0
- package/dist/ssr/charts/core/render-size.js.map +1 -1
- package/dist/ssr/charts/core/render.js +8 -1
- package/dist/ssr/charts/core/render.js.map +1 -1
- package/dist/ssr/charts/core/snapshot.js +3 -3
- package/dist/ssr/charts/core/snapshot.js.map +1 -1
- package/dist/ssr/charts/core/types.js.map +1 -1
- package/dist/ssr/charts/description.js.map +1 -1
- package/dist/ssr/charts.js +2 -0
- package/dist/ssr/charts.js.map +1 -1
- package/dist/ssr/content/Chart.js +3 -1
- package/dist/ssr/content/Chart.js.map +1 -1
- package/dist/ssr/content/ChartBalanceFlow.js +69 -0
- package/dist/ssr/content/ChartBalanceFlow.js.map +1 -0
- package/dist/ssr/content/ChartExplorer.js +1 -1
- package/dist/ssr/content/ChartExplorer.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +1 -1
- package/dist/ssr/content/ChartRoot.js.map +1 -1
- package/dist/ssr/content/DataTable.js +72 -118
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/FileView.js +39 -50
- package/dist/ssr/content/FileView.js.map +1 -1
- package/dist/ssr/content/LoadMore.js +146 -0
- package/dist/ssr/content/LoadMore.js.map +1 -0
- package/dist/ssr/content/MapDialog.js +469 -0
- package/dist/ssr/content/MapDialog.js.map +1 -0
- package/dist/ssr/content/MapTile.js +92 -0
- package/dist/ssr/content/MapTile.js.map +1 -0
- package/dist/ssr/content/MapView.js +12 -8
- package/dist/ssr/content/MapView.js.map +1 -1
- package/dist/ssr/content/PdfPages.js +538 -0
- package/dist/ssr/content/PdfPages.js.map +1 -0
- package/dist/ssr/content/PdfViewer.js +226 -457
- package/dist/ssr/content/PdfViewer.js.map +1 -1
- package/dist/ssr/content/VirtualFeed.js +292 -44
- package/dist/ssr/content/VirtualFeed.js.map +1 -1
- package/dist/ssr/content/chart-balance-flow-controller.js +184 -0
- package/dist/ssr/content/chart-balance-flow-controller.js.map +1 -0
- package/dist/ssr/content/chart-balance-flow.js +6 -0
- package/dist/ssr/content/chart-balance-flow.js.map +1 -0
- package/dist/ssr/content/chart-inspection-core.js +1 -73
- package/dist/ssr/content/chart-inspection-core.js.map +1 -1
- package/dist/ssr/content/chart-inspection-mount.js +75 -0
- package/dist/ssr/content/chart-inspection-mount.js.map +1 -0
- package/dist/ssr/content/chart-svg.js +1 -1
- package/dist/ssr/content/chart-svg.js.map +1 -1
- package/dist/ssr/content/feed-messages.js +22 -2
- package/dist/ssr/content/feed-messages.js.map +1 -1
- package/dist/ssr/content/index.js +4 -1
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/map-dialog-messages.js +47 -0
- package/dist/ssr/content/map-dialog-messages.js.map +1 -0
- package/dist/ssr/content/map-navigation.js +15 -0
- package/dist/ssr/content/map-navigation.js.map +1 -0
- package/dist/ssr/content/map-view-messages.js +4 -0
- package/dist/ssr/content/map-view-messages.js.map +1 -1
- package/dist/ssr/content/map-view-types.js.map +1 -1
- package/dist/ssr/content/pdf-messages.js +8 -8
- package/dist/ssr/content/pdf-messages.js.map +1 -1
- package/dist/ssr/feedback/dialog-core.js +22 -10
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/index.js.map +1 -1
- package/dist/ssr/feedback/prompt-confirm.js +13 -2
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/feedback/prompts.js +32 -24
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/feedback/success-check.js +47 -0
- package/dist/ssr/feedback/success-check.js.map +1 -0
- package/dist/ssr/feedback/toast-hit.js +16 -0
- package/dist/ssr/feedback/toast-hit.js.map +1 -0
- package/dist/ssr/feedback/toast-messages.js +6 -2
- package/dist/ssr/feedback/toast-messages.js.map +1 -1
- package/dist/ssr/feedback/toast.js +609 -98
- package/dist/ssr/feedback/toast.js.map +1 -1
- package/dist/ssr/intl/messages.js +4 -0
- package/dist/ssr/intl/messages.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +39 -5
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/BottomSheet.js +32 -4
- package/dist/ssr/layout/BottomSheet.js.map +1 -1
- package/dist/ssr/layout/Breadcrumbs.js +62 -0
- package/dist/ssr/layout/Breadcrumbs.js.map +1 -0
- package/dist/ssr/layout/DetailPanel.js +10 -10
- package/dist/ssr/layout/DetailPanel.js.map +1 -1
- package/dist/ssr/layout/Discussion.js +39 -65
- package/dist/ssr/layout/Discussion.js.map +1 -1
- package/dist/ssr/layout/PanelDialog.js +54 -35
- package/dist/ssr/layout/PanelDialog.js.map +1 -1
- package/dist/ssr/layout/index.js +1 -0
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/layout/sheet-motion.js +479 -0
- package/dist/ssr/layout/sheet-motion.js.map +1 -0
- package/dist/ssr/surfaces/NoticeCard.js +33 -17
- package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
- package/dist/ssr/surfaces/Skeleton.js +32 -0
- package/dist/ssr/surfaces/Skeleton.js.map +1 -1
- package/dist/ssr/surfaces/index.js +1 -1
- package/dist/ssr/surfaces/index.js.map +1 -1
- package/dist/ssr/text-editor/TextEditor.js +7 -3
- package/dist/ssr/text-editor/TextEditor.js.map +1 -1
- package/dist/ssr/text-editor/clipboard-html.js +62 -26
- package/dist/ssr/text-editor/clipboard-html.js.map +1 -1
- package/dist/ssr/text-editor/clipboard-loading.js +44 -15
- package/dist/ssr/text-editor/clipboard-loading.js.map +1 -1
- package/dist/ssr/text-editor/engine.js +9 -4
- package/dist/ssr/text-editor/engine.js.map +1 -1
- package/dist/ssr/text-editor/format.js +37 -1
- package/dist/ssr/text-editor/format.js.map +1 -1
- package/dist/ssr/text-editor/paste.js +2 -1
- package/dist/ssr/text-editor/paste.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/SortableList.d.ts +26 -0
- package/dist/types/actions/Toolbar.d.ts +11 -0
- package/dist/types/actions/drag-and-drop.d.ts +2 -0
- package/dist/types/actions/index.d.ts +2 -0
- package/dist/types/actions/sortable-list-messages.d.ts +15 -0
- package/dist/types/chart-inspection.d.ts +2 -1
- package/dist/types/charts/core/balance-flow-data.d.ts +37 -0
- package/dist/types/charts/core/balance-flow-fields.d.ts +13 -0
- package/dist/types/charts/core/balance-flow-frame.d.ts +4 -0
- package/dist/types/charts/core/balance-flow-messages.d.ts +97 -0
- package/dist/types/charts/core/balance-flow-size.d.ts +21 -0
- package/dist/types/charts/core/balance-flow.d.ts +70 -0
- package/dist/types/charts/core/calendar-layout.d.ts +67 -0
- package/dist/types/charts/core/calendar.d.ts +2 -64
- package/dist/types/charts/core/index.d.ts +9 -1
- package/dist/types/charts/core/number-format.d.ts +28 -0
- package/dist/types/charts/core/registry.d.ts +2 -0
- package/dist/types/charts/core/types.d.ts +1 -0
- package/dist/types/charts/description.d.ts +17 -0
- package/dist/types/charts.d.ts +2 -0
- package/dist/types/content/ChartBalanceFlow.d.ts +17 -0
- package/dist/types/content/ChartRoot.d.ts +2 -1
- package/dist/types/content/DataTable.d.ts +7 -1
- package/dist/types/content/LoadMore.d.ts +41 -0
- package/dist/types/content/MapDialog.d.ts +105 -0
- package/dist/types/content/MapTile.d.ts +37 -0
- package/dist/types/content/PdfPages.d.ts +57 -0
- package/dist/types/content/PdfViewer.d.ts +35 -19
- package/dist/types/content/VirtualFeed.d.ts +57 -18
- package/dist/types/content/chart-balance-flow-controller.d.ts +12 -0
- package/dist/types/content/chart-balance-flow.d.ts +4 -0
- package/dist/types/content/chart-inspection-core.d.ts +0 -17
- package/dist/types/content/chart-inspection-mount.d.ts +21 -0
- package/dist/types/content/feed-messages.d.ts +10 -0
- package/dist/types/content/index.d.ts +6 -3
- package/dist/types/content/map-dialog-messages.d.ts +19 -0
- package/dist/types/content/map-navigation.d.ts +13 -0
- package/dist/types/content/map-view-messages.d.ts +2 -0
- package/dist/types/content/map-view-types.d.ts +5 -0
- package/dist/types/content/pdf-messages.d.ts +2 -2
- package/dist/types/feedback/dialog-core.d.ts +6 -0
- package/dist/types/feedback/index.d.ts +2 -2
- package/dist/types/feedback/prompt-confirm.d.ts +2 -0
- package/dist/types/feedback/prompts.d.ts +5 -1
- package/dist/types/feedback/success-check.d.ts +4 -0
- package/dist/types/feedback/toast-hit.d.ts +5 -0
- package/dist/types/feedback/toast-messages.d.ts +3 -1
- package/dist/types/feedback/toast.d.ts +42 -5
- package/dist/types/intl/messages.d.ts +2 -0
- package/dist/types/layout/AppWorkspace.d.ts +10 -0
- package/dist/types/layout/BottomSheet.d.ts +6 -0
- package/dist/types/layout/Breadcrumbs.d.ts +19 -0
- package/dist/types/layout/DetailPanel.d.ts +4 -1
- package/dist/types/layout/PanelDialog.d.ts +5 -0
- package/dist/types/layout/index.d.ts +2 -1
- package/dist/types/layout/sheet-motion.d.ts +32 -0
- package/dist/types/surfaces/NoticeCard.d.ts +14 -1
- package/dist/types/surfaces/Skeleton.d.ts +13 -1
- package/dist/types/surfaces/index.d.ts +1 -1
- package/dist/types/text-editor/TextEditor.d.ts +5 -0
- package/dist/types/text-editor/clipboard-loading.d.ts +2 -3
- package/dist/types/text-editor/engine.d.ts +6 -1
- package/dist/types/text-editor/format.d.ts +3 -1
- package/package.json +2 -2
- package/dist/browser/content/PdfPreview.js +0 -448
- package/dist/browser/content/PdfPreview.js.map +0 -1
- package/dist/ssr/content/PdfPreview.js +0 -300
- package/dist/ssr/content/PdfPreview.js.map +0 -1
- package/dist/types/content/PdfPreview.d.ts +0 -26
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
export type LoadMoreProps = {
|
|
3
|
+
/** More items follow the loaded ones. Without it, the edge shows nothing. */
|
|
4
|
+
hasMore: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Loads the next page. A returned promise keeps the edge busy until it settles, and a rejection shows its message
|
|
7
|
+
* with "Try again". Resolve to `false` when nothing loaded; the edge then waits until the reader comes back to it.
|
|
8
|
+
*/
|
|
9
|
+
onLoadMore: () => unknown;
|
|
10
|
+
/** The owner loads the next page right now, also one it started itself. */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** The owner's last load failed with this message. "Try again" calls `onLoadMore`. */
|
|
13
|
+
error?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Loads by itself when the edge comes within reach of the visible area, in its own scroll area or in the window.
|
|
16
|
+
* Defaults to true. With false, the owner decides when to load, and the button stays.
|
|
17
|
+
*/
|
|
18
|
+
auto?: boolean;
|
|
19
|
+
/** Where the next items appear: below the edge's list (`"end"`, the default) or above it (`"start"`). */
|
|
20
|
+
side?: "end" | "start";
|
|
21
|
+
/**
|
|
22
|
+
* Number of loaded items. A page counts as arrived when it changed; without it, when the list grew in its parent
|
|
23
|
+
* element. Pass it when new items can fit into space the list already takes, such as a table that fills its height.
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
/** Text of the button. Defaults to "Load more". */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Text while loading. Defaults to "Loading more…". */
|
|
29
|
+
loadingLabel?: string;
|
|
30
|
+
/** Text when a load failed without its own message. Defaults to "Could not load more.". */
|
|
31
|
+
errorLabel?: string;
|
|
32
|
+
class?: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The edge of a list that loads more: one row of fixed height that reads "Load more", "Loading more…", or the error
|
|
36
|
+
* with "Try again", so the list around it never moves. It loads by itself when it comes within reach, once per
|
|
37
|
+
* approach: a page that arrives while the edge is still in reach asks for the next one, a declined or failed request
|
|
38
|
+
* waits for the reader.
|
|
39
|
+
*/
|
|
40
|
+
export declare function LoadMore(props: LoadMoreProps): JSX.Element;
|
|
41
|
+
export default LoadMore;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import type { MapViewFit, MapViewLine, MapViewMarker, MapViewOwnLocation, MapViewPoint, MapViewTone } from "./map-view-types";
|
|
3
|
+
/** A link the host gives a place, such as "Open contact". Only http(s) and same-origin paths are rendered. */
|
|
4
|
+
export type MapPlaceLink = {
|
|
5
|
+
label: string;
|
|
6
|
+
href: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Where a place's information comes from. `tone: "ai"` marks a suggestion that an account without a person made. */
|
|
10
|
+
export type MapPlaceSource = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
tone?: "ai";
|
|
14
|
+
};
|
|
15
|
+
export type MapPlace = {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
/** Without a point the place is listed but has no pin; navigation then uses the address text. */
|
|
19
|
+
point?: MapViewPoint;
|
|
20
|
+
/** A number, a single letter, or "+", as on MapView markers. */
|
|
21
|
+
mark?: number | string;
|
|
22
|
+
tone?: MapViewTone;
|
|
23
|
+
/** The heading of the place's group in the list, such as the search that found it; shown where the group starts. */
|
|
24
|
+
group?: string;
|
|
25
|
+
/** Second line in the list. */
|
|
26
|
+
subtitle?: string;
|
|
27
|
+
/** Right column of the list row, for example a leg's minutes and kilometres. */
|
|
28
|
+
trailing?: string;
|
|
29
|
+
trailingDetail?: string;
|
|
30
|
+
address?: string;
|
|
31
|
+
hours?: string;
|
|
32
|
+
note?: string;
|
|
33
|
+
source?: MapPlaceSource;
|
|
34
|
+
links?: MapPlaceLink[];
|
|
35
|
+
/** `false` for a place that is not a destination yet, such as a candidate to choose: no navigation link. */
|
|
36
|
+
navigate?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type MapDialogFact = {
|
|
39
|
+
value: string;
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
export type MapDialogMenuItem = {
|
|
43
|
+
label: string;
|
|
44
|
+
icon?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
onSelect: () => void;
|
|
47
|
+
};
|
|
48
|
+
/** What the host's map needs; spread it onto MapView or a wrapper of it. */
|
|
49
|
+
export type MapDialogMapView = {
|
|
50
|
+
height: number;
|
|
51
|
+
padding: number;
|
|
52
|
+
markers: MapViewMarker[];
|
|
53
|
+
lines?: MapViewLine[];
|
|
54
|
+
fit?: MapViewFit;
|
|
55
|
+
selectedId?: string;
|
|
56
|
+
onSelect: (id: string) => void;
|
|
57
|
+
ownLocation?: MapViewOwnLocation;
|
|
58
|
+
onLocate: () => void;
|
|
59
|
+
/** A message about the own location, for MapView's `notice`. */
|
|
60
|
+
notice?: JSX.Element;
|
|
61
|
+
};
|
|
62
|
+
export type MapDialogProps = {
|
|
63
|
+
title: string;
|
|
64
|
+
/** Large figures under the title, such as distance and driving time. */
|
|
65
|
+
facts?: MapDialogFact[];
|
|
66
|
+
/** A chip under the title when there are no facts, such as "12 places". */
|
|
67
|
+
count?: string;
|
|
68
|
+
/** Name of the list for assistive technology, such as "Stops". */
|
|
69
|
+
listLabel?: string;
|
|
70
|
+
places: MapPlace[];
|
|
71
|
+
lines?: MapViewLine[];
|
|
72
|
+
/** Pins beyond the places, such as a proposed stop; drawn but not listed. */
|
|
73
|
+
markers?: MapViewMarker[];
|
|
74
|
+
fit?: MapViewFit;
|
|
75
|
+
/** Controlled selection; otherwise the first place is selected. */
|
|
76
|
+
selectedId?: string;
|
|
77
|
+
onSelect?: (id: string) => void;
|
|
78
|
+
loading?: boolean;
|
|
79
|
+
/** Replaces the list when there are no places, for example with an action that widens the search. */
|
|
80
|
+
empty?: JSX.Element;
|
|
81
|
+
/** Renders the map; the dialog supplies its height, pins, lines, and selection. */
|
|
82
|
+
map: (view: MapDialogMapView) => JSX.Element;
|
|
83
|
+
menu?: MapDialogMenuItem[];
|
|
84
|
+
/** More actions beside the navigation link of the selected place. */
|
|
85
|
+
placeActions?: (place: MapPlace) => JSX.Element;
|
|
86
|
+
/** A short line under the actions, such as why one of them is unavailable right now. */
|
|
87
|
+
placeHint?: (place: MapPlace) => string | undefined;
|
|
88
|
+
/** Host content above the list, such as a confirmation or a recovery. */
|
|
89
|
+
notice?: JSX.Element;
|
|
90
|
+
/** The source line at the bottom. */
|
|
91
|
+
provenance?: JSX.Element;
|
|
92
|
+
/** The person's location after "Show my location", for example to start a route there. */
|
|
93
|
+
onLocation?: (location: MapViewOwnLocation) => void;
|
|
94
|
+
onClose: () => void;
|
|
95
|
+
};
|
|
96
|
+
/** Only web links and same-origin paths; any other scheme is dropped. */
|
|
97
|
+
export declare const safeMapLink: (href: string) => {
|
|
98
|
+
href: string;
|
|
99
|
+
external: boolean;
|
|
100
|
+
} | null;
|
|
101
|
+
/**
|
|
102
|
+
* The full map: map and list side by side in a dialog, on a phone the map on the whole screen with the list as a
|
|
103
|
+
* sheet. Map and list share one selection; the selected place shows its details and a navigation link.
|
|
104
|
+
*/
|
|
105
|
+
export declare function MapDialog(props: MapDialogProps): JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
/** The query parameter that names the open map dialog, so a reload opens it again. */
|
|
3
|
+
export declare const MAP_DIALOG_PARAM = "map";
|
|
4
|
+
/** Dialog options for MapDialog: a large dialog, the whole screen below 48rem; Back closes it. */
|
|
5
|
+
export declare const mapDialogOptions: {
|
|
6
|
+
panelClassName: string;
|
|
7
|
+
contentClassName: string;
|
|
8
|
+
history: true;
|
|
9
|
+
};
|
|
10
|
+
export type MapTileProps = {
|
|
11
|
+
/** Accessible name of the whole tile, such as "Open map: Delivery Thursday, 86.4 km, 4 stops". */
|
|
12
|
+
label: string;
|
|
13
|
+
/** The short summary in the pill, such as "86.4 km · 1 h 32 min · A → B → C". */
|
|
14
|
+
summary: JSX.Element;
|
|
15
|
+
/** The places are still loading: the pill shows progress and the tile does not open yet. */
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
/** Renders the dialog content, normally a MapDialog; `close` closes the dialog. */
|
|
18
|
+
dialog: (close: () => void) => JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* A stable id of this map on the page. While its dialog is open the URL carries `?map=<restoreId>`, and a reload
|
|
21
|
+
* opens the dialog again. Omit it for maps without a stable id; their dialog stays closed after a reload.
|
|
22
|
+
*/
|
|
23
|
+
restoreId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* More query parameters the dialog's address carries with `restoreId`, so a reload reaches the tile again, such as
|
|
26
|
+
* the message of a long conversation that holds the map.
|
|
27
|
+
*/
|
|
28
|
+
restoreQuery?: Record<string, string>;
|
|
29
|
+
/** The still map, for example `<MapView still … />`, in the size of the tile. */
|
|
30
|
+
children: JSX.Element;
|
|
31
|
+
class?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A small map that is one button: the map image with a summary pill on it. Activating it opens the full map in a
|
|
35
|
+
* dialog. Back, Escape, and the close button close the dialog; focus returns to the tile.
|
|
36
|
+
*/
|
|
37
|
+
export declare function MapTile(props: MapTileProps): JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type PdfPageSize } from "./pdf-document";
|
|
3
|
+
/** One extra icon at the end of the pill, such as open in a new tab or render again. */
|
|
4
|
+
export type PdfPagesAction = {
|
|
5
|
+
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type PdfPagesProps = {
|
|
11
|
+
/** The PDF itself. A new value opens that document. */
|
|
12
|
+
data: Blob | ArrayBuffer;
|
|
13
|
+
/** The document's name, for the scroll area and the page images. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Without the zoom bar, always fitted. Defaults to `true`. */
|
|
16
|
+
zoom?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* How a fitted document fills the area: `"width"` (the default) fits each page to the area's width, for reading;
|
|
19
|
+
* `"page"` shows the whole first page in the area's height, narrower, for a preview beside other content.
|
|
20
|
+
* Fitted pages never grow past 100 %.
|
|
21
|
+
*/
|
|
22
|
+
fit?: "width" | "page";
|
|
23
|
+
/** Shows only this page (zero-based) instead of all pages one below the other. */
|
|
24
|
+
page?: number;
|
|
25
|
+
/** The first visible page is drawn; a host can drop its loading state. */
|
|
26
|
+
onReady?: () => void;
|
|
27
|
+
/** The document could not be opened, or a page could not be drawn and has no image yet. */
|
|
28
|
+
onError?: (error: unknown) => void;
|
|
29
|
+
/** Icons after the fit, in this order. */
|
|
30
|
+
actions?: readonly PdfPagesAction[];
|
|
31
|
+
};
|
|
32
|
+
/** Steps for − and + in percent; Ctrl or ⌘ with the wheel and two fingers zoom freely between the first and the last. */
|
|
33
|
+
export declare const PDF_ZOOM_STEPS: readonly [25, 50, 75, 100, 125, 150, 200, 300];
|
|
34
|
+
/** The next zoom step above or below `percent`; at either end it stays there. */
|
|
35
|
+
export declare const nextPdfZoomStep: (percent: number, direction: 1 | -1) => number;
|
|
36
|
+
/**
|
|
37
|
+
* The width in CSS pixels of a fitted page: as wide as the area, for `"page"` at most as wide as the whole page fits
|
|
38
|
+
* into the area's height, and never past 100 %, so zooming the browser out does not make the page grow.
|
|
39
|
+
*/
|
|
40
|
+
export declare const fittedPageWidth: (fit: "width" | "page", area: {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
}, page: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
}) => number;
|
|
47
|
+
/**
|
|
48
|
+
* The page width most pages share, at a tie the first page's. "Width" fits every page to the area, so a landscape page
|
|
49
|
+
* among portrait ones never scrolls sideways; percentages and fixed zoom follow this common width.
|
|
50
|
+
*/
|
|
51
|
+
export declare const commonPageWidth: (pages: readonly PdfPageSize[]) => number;
|
|
52
|
+
/**
|
|
53
|
+
* The pages behind `PdfViewer`, loaded only once a document shows. A PDF drawn by pdf.js in every browser: pages as
|
|
54
|
+
* images in one scroll area, an invisible text layer over each page to select, copy, and find text, and a small pill. Only pages near the view are drawn and carry text; the others
|
|
55
|
+
* keep their size, so the scroll bar is right from the start. Printing and forms stay with the browser's own viewer.
|
|
56
|
+
*/
|
|
57
|
+
export default function PdfPages(props: PdfPagesProps): JSX.Element;
|
|
@@ -1,32 +1,48 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
|
|
2
|
+
/** Loads a PDF when the viewer needs it. A failed `Response` becomes the error state with its `message`. */
|
|
3
|
+
export type PdfViewerRequest = () => Promise<Response | Blob>;
|
|
3
4
|
export type PdfViewerProps = {
|
|
4
|
-
/** The
|
|
5
|
-
data: Blob | ArrayBuffer;
|
|
6
|
-
/** The document's name, for the scroll area and the page images. */
|
|
5
|
+
/** The document's name, for the page area, the page images, and a tab opened from the pill. */
|
|
7
6
|
title: string;
|
|
8
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The PDF to show: its bytes, or the address of one on this site, which the viewer fetches. A new value shows that
|
|
9
|
+
* document. Pass either `data` or `request`.
|
|
10
|
+
*/
|
|
11
|
+
data?: Blob | ArrayBuffer | string;
|
|
12
|
+
/** Requests the PDF: at once with `autoLoad`, otherwise from the action in the empty state. */
|
|
13
|
+
request?: PdfViewerRequest;
|
|
14
|
+
/** Runs `request` as soon as the viewer shows. Without it, the person starts it. */
|
|
15
|
+
autoLoad?: boolean;
|
|
16
|
+
/** Keeps a requested document from loading, such as while its input is incomplete. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** The empty state's text before an on-demand request. */
|
|
19
|
+
emptyText?: string;
|
|
20
|
+
/** Names the action that runs an on-demand `request`; once a document shows, it renders again from the pill. */
|
|
21
|
+
loadLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Adds "Open in new tab" to the pill and the error state: `true` opens the shown document, an address opens that
|
|
24
|
+
* address, which reloads and keeps the document's name.
|
|
25
|
+
*/
|
|
26
|
+
open?: boolean | string;
|
|
27
|
+
/** Without the zoom controls, always fitted. Defaults to `true`. */
|
|
9
28
|
zoom?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* How a fitted document fills the area: `"width"` (the default) fits each page to the area's width, for reading;
|
|
31
|
+
* `"page"` shows the whole first page in the area's height, narrower, for a preview beside other content.
|
|
32
|
+
* Fitted pages never grow past 100 %.
|
|
33
|
+
*/
|
|
34
|
+
fit?: "width" | "page";
|
|
10
35
|
/** Shows only this page (zero-based) instead of all pages one below the other. */
|
|
11
36
|
page?: number;
|
|
12
|
-
/** The first visible page is drawn
|
|
37
|
+
/** The first visible page is drawn. */
|
|
13
38
|
onReady?: () => void;
|
|
14
|
-
/**
|
|
39
|
+
/** pdf.js could not open or draw the document; the viewer shows its error state. */
|
|
15
40
|
onError?: (error: unknown) => void;
|
|
16
41
|
class?: string;
|
|
17
42
|
};
|
|
18
|
-
/** Steps for − and + in percent; Ctrl or ⌘ with the wheel and two fingers zoom freely between the first and the last. */
|
|
19
|
-
export declare const PDF_ZOOM_STEPS: readonly [25, 50, 75, 100, 125, 150, 200, 300];
|
|
20
|
-
/** The next zoom step above or below `percent`; at either end it stays there. */
|
|
21
|
-
export declare const nextPdfZoomStep: (percent: number, direction: 1 | -1) => number;
|
|
22
43
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
export declare const commonPageWidth: (pages: readonly PdfPageSize[]) => number;
|
|
27
|
-
/**
|
|
28
|
-
* A PDF drawn by pdf.js in every browser: pages as images in one scroll area, an invisible text layer over each page
|
|
29
|
-
* to select, copy, and find text, and a small zoom bar. Only pages near the view are drawn and carry text; the others
|
|
30
|
-
* keep their size, so the scroll bar is right from the start. Printing and forms stay with the browser's own viewer.
|
|
44
|
+
* Shows a PDF with pdf.js on a grey, rounded ground: pages as images with selectable text and a small pill for the
|
|
45
|
+
* page, zoom, and fit. Pass the document as `data`, or a `request` that loads it; the viewer shows the empty, loading,
|
|
46
|
+
* and error states in the same area, so nothing around it moves.
|
|
31
47
|
*/
|
|
32
48
|
export default function PdfViewer(props: PdfViewerProps): JSX.Element;
|
|
@@ -13,13 +13,55 @@ export type VirtualFeedController = {
|
|
|
13
13
|
scrollToKey: (key: string, options?: VirtualFeedScrollOptions) => boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Follows the end again, also when the reader's scroll still coasts. When newer items exist but are not loaded, it
|
|
16
|
-
* asks `onLoadNewest` for them first.
|
|
16
|
+
* asks `onLoadNewest` for them first. With `anchor="start"` it shows the last loaded item and follows nothing.
|
|
17
17
|
*/
|
|
18
18
|
scrollToEnd: () => void;
|
|
19
|
-
/**
|
|
19
|
+
/** Shows the first loaded item, also when the reader's scroll still coasts. */
|
|
20
|
+
scrollToStart: () => void;
|
|
21
|
+
/** Whether the reader is at the end and new items keep the feed there. Always false with `anchor="start"`. */
|
|
20
22
|
isAtEnd: () => boolean;
|
|
21
23
|
};
|
|
22
|
-
|
|
24
|
+
/** A feed that opens at its newest item at the end and follows it, as a conversation does. */
|
|
25
|
+
type EndAnchoredProps = {
|
|
26
|
+
/** Where the feed opens. `"end"` (the default) opens at the last item and follows new items there. */
|
|
27
|
+
anchor?: "end";
|
|
28
|
+
/** Older items exist that `items` does not contain yet. */
|
|
29
|
+
hasOlder?: boolean;
|
|
30
|
+
/** Newer items exist that `items` does not contain yet. */
|
|
31
|
+
hasNewer?: boolean;
|
|
32
|
+
/** Called near the start of the loaded items while `hasOlder` is true. Prepend the next older page to `items`. */
|
|
33
|
+
onLoadOlder?: () => unknown;
|
|
34
|
+
/** Called near the end of the loaded items while `hasNewer` is true. Append the next newer page to `items`. */
|
|
35
|
+
onLoadNewer?: () => unknown;
|
|
36
|
+
/** Called by "Jump to latest" while `hasNewer` is true. Replace `items` with the newest page. */
|
|
37
|
+
onLoadNewest?: () => unknown;
|
|
38
|
+
/** Called when the reader reaches or leaves the end. */
|
|
39
|
+
onEndChange?: (atEnd: boolean) => void;
|
|
40
|
+
hasMore?: never;
|
|
41
|
+
onLoadMore?: never;
|
|
42
|
+
};
|
|
43
|
+
/** A list that opens at its first item, such as an inbox: it loads more below and never follows the end. */
|
|
44
|
+
type StartAnchoredProps = {
|
|
45
|
+
/**
|
|
46
|
+
* `"start"` opens at the first item and never follows the end. Items that arrive above keep the reading position
|
|
47
|
+
* and offer "New above". Read once, when the feed is created.
|
|
48
|
+
*/
|
|
49
|
+
anchor: "start";
|
|
50
|
+
/** More items follow the loaded ones, as with `DataTable`. */
|
|
51
|
+
hasMore?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Called near the end of the loaded items while `hasMore` is true. Append the next page to `items`. A rejected
|
|
54
|
+
* promise shows the error with "Try again" at the end of the list.
|
|
55
|
+
*/
|
|
56
|
+
onLoadMore?: () => unknown;
|
|
57
|
+
hasOlder?: never;
|
|
58
|
+
hasNewer?: never;
|
|
59
|
+
onLoadOlder?: never;
|
|
60
|
+
onLoadNewer?: never;
|
|
61
|
+
onLoadNewest?: never;
|
|
62
|
+
onEndChange?: never;
|
|
63
|
+
};
|
|
64
|
+
export type VirtualFeedProps<T> = (EndAnchoredProps | StartAnchoredProps) & {
|
|
23
65
|
/** Loaded items, oldest first. Replace the array to add, remove, or change items. */
|
|
24
66
|
items: readonly T[];
|
|
25
67
|
/** Stable, unique identity of an item across updates. */
|
|
@@ -37,20 +79,15 @@ export type VirtualFeedProps<T> = {
|
|
|
37
79
|
* set, the first loaded item has no known predecessor and gets none.
|
|
38
80
|
*/
|
|
39
81
|
separator?: (item: T, previous: T | undefined) => JSX.Element;
|
|
82
|
+
/**
|
|
83
|
+
* The separator of the group in view stays at the top of the visible area until the next one pushes it away, also
|
|
84
|
+
* when its own item is far above and no longer rendered.
|
|
85
|
+
*/
|
|
86
|
+
stickySeparators?: boolean;
|
|
40
87
|
/** Key of the first item the reader has not seen; a marker appears above it. */
|
|
41
88
|
markerKey?: string | null;
|
|
42
89
|
/** Text of that marker. Defaults to "New". */
|
|
43
90
|
markerLabel?: string;
|
|
44
|
-
/** Older items exist that `items` does not contain yet. */
|
|
45
|
-
hasOlder?: boolean;
|
|
46
|
-
/** Newer items exist that `items` does not contain yet. */
|
|
47
|
-
hasNewer?: boolean;
|
|
48
|
-
/** Called near the start of the loaded items while `hasOlder` is true. Prepend the next older page to `items`. */
|
|
49
|
-
onLoadOlder?: () => unknown;
|
|
50
|
-
/** Called near the end of the loaded items while `hasNewer` is true. Append the next newer page to `items`. */
|
|
51
|
-
onLoadNewer?: () => unknown;
|
|
52
|
-
/** Called by "Jump to latest" while `hasNewer` is true. Replace `items` with the newest page. */
|
|
53
|
-
onLoadNewest?: () => unknown;
|
|
54
91
|
/** Marks the feed as busy for assistive technology, for example during the first load. */
|
|
55
92
|
busy?: boolean;
|
|
56
93
|
/** Number of items in the whole feed when known. */
|
|
@@ -58,14 +95,16 @@ export type VirtualFeedProps<T> = {
|
|
|
58
95
|
/** One-based position of `items[0]` in the whole feed when known. */
|
|
59
96
|
firstPosition?: number;
|
|
60
97
|
/**
|
|
61
|
-
* Count shown on "Jump to latest"
|
|
62
|
-
* excludes pages of older history loaded toward the end
|
|
98
|
+
* Count shown on "Jump to latest", or on "New above" with `anchor="start"`. Defaults to the new items added while
|
|
99
|
+
* the reader was away from the end, which excludes pages of older history loaded toward the end; with
|
|
100
|
+
* `anchor="start"`, to the items added above the first loaded one since the reader was last at the start.
|
|
63
101
|
*/
|
|
64
102
|
newCount?: number;
|
|
65
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Text announced for new items, bundled per second: added at the end, or above with `anchor="start"`. Return
|
|
105
|
+
* nothing to stay silent.
|
|
106
|
+
*/
|
|
66
107
|
announce?: (added: readonly T[]) => string | undefined;
|
|
67
|
-
/** Called when the reader reaches or leaves the end. */
|
|
68
|
-
onEndChange?: (atEnd: boolean) => void;
|
|
69
108
|
/**
|
|
70
109
|
* Called when the items in view change: the first and last item whose whole height is in view. An item taller
|
|
71
110
|
* than the view counts while it covers the view. `null` while no item is in view.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ChartDatumRef, type ChartSelection, type ChartTooltipFormatter } from "../charts/core/inspection";
|
|
2
|
+
import type { inspectChart as InspectChart } from "./chart-inspection-mount";
|
|
3
|
+
export declare function selectBalanceFlowDatum(root: HTMLElement, selected: ChartDatumRef | null): void;
|
|
4
|
+
/** Enhances the server frame in place; neither resize nor initial mount replaces its drawing. */
|
|
5
|
+
export declare function mountBalanceFlowController(root: HTMLElement, options: {
|
|
6
|
+
locale?: string;
|
|
7
|
+
select?: (value: ChartSelection) => void;
|
|
8
|
+
tooltip?: ChartTooltipFormatter;
|
|
9
|
+
retry?: () => void;
|
|
10
|
+
periodChange?: (index: number) => void;
|
|
11
|
+
viewChange?: (view: "chart" | "table") => void;
|
|
12
|
+
}, inspectChart: typeof InspectChart): () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { mountBalanceFlowController } from "./chart-balance-flow-controller";
|
|
2
|
+
export { selectBalanceFlowDatum } from "./chart-balance-flow-controller";
|
|
3
|
+
/** Standard host enhancement; app frames supply their existing inspector to the lazy controller instead. */
|
|
4
|
+
export declare const mountBalanceFlow: (root: HTMLElement, options?: Parameters<typeof mountBalanceFlowController>[1]) => (() => void);
|
|
@@ -57,20 +57,3 @@ export declare function closeChartInspectionOnOutside(options: {
|
|
|
57
57
|
scroll?: () => void;
|
|
58
58
|
keepScroll?: () => boolean | undefined;
|
|
59
59
|
}): () => void;
|
|
60
|
-
export type InspectChartOptions = {
|
|
61
|
-
kind: ChartKind;
|
|
62
|
-
nav?: ChartInspectionNavigation;
|
|
63
|
-
format: ChartTooltipFormatter;
|
|
64
|
-
select?: (selection: ChartSelection) => void;
|
|
65
|
-
cursor?: ChartCursor;
|
|
66
|
-
locale?: string;
|
|
67
|
-
/** Host for a separately rendered series legend. Defaults to the chart container. */
|
|
68
|
-
legend?: ParentNode;
|
|
69
|
-
};
|
|
70
|
-
export type ChartInspection = {
|
|
71
|
-
invalidate(): void;
|
|
72
|
-
close(): void;
|
|
73
|
-
destroy(): void;
|
|
74
|
-
};
|
|
75
|
-
/** Attach inspection to stdlib SVG rendered with inspect: true, without a framework. */
|
|
76
|
-
export declare function inspectChart(container: HTMLElement, options: InspectChartOptions): ChartInspection;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ChartSelection, ChartTooltipFormatter } from "../charts/core/inspection";
|
|
2
|
+
import type { ChartKind } from "../charts/core/types";
|
|
3
|
+
import type { ChartCursor } from "./chart-cursor";
|
|
4
|
+
import { type ChartInspectionNavigation } from "./chart-inspection-core";
|
|
5
|
+
export type InspectChartOptions = {
|
|
6
|
+
kind: ChartKind;
|
|
7
|
+
nav?: ChartInspectionNavigation;
|
|
8
|
+
format: ChartTooltipFormatter;
|
|
9
|
+
select?: (selection: ChartSelection) => void;
|
|
10
|
+
cursor?: ChartCursor;
|
|
11
|
+
locale?: string;
|
|
12
|
+
/** Host for a separately rendered series legend. Defaults to the chart container. */
|
|
13
|
+
legend?: ParentNode;
|
|
14
|
+
};
|
|
15
|
+
export type ChartInspection = {
|
|
16
|
+
invalidate(): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
};
|
|
20
|
+
/** Attach inspection to stdlib SVG rendered with inspect: true, without a framework. */
|
|
21
|
+
export declare function inspectChart(container: HTMLElement, options: InspectChartOptions): ChartInspection;
|
|
@@ -7,6 +7,16 @@ declare const feedMessages: import("@k2b/stdlib").Catalog<{
|
|
|
7
7
|
count: number;
|
|
8
8
|
}) => string;
|
|
9
9
|
feedNewMarker: string;
|
|
10
|
+
feedNewAbove: string;
|
|
11
|
+
feedNewAboveCount: ({ count }: {
|
|
12
|
+
count: number;
|
|
13
|
+
}) => string;
|
|
14
|
+
feedNewAboveItems: ({ count }: {
|
|
15
|
+
count: number;
|
|
16
|
+
}) => string;
|
|
17
|
+
loadMore: string;
|
|
18
|
+
loadingMore: string;
|
|
19
|
+
loadMoreFailed: string;
|
|
10
20
|
}>;
|
|
11
21
|
export type FeedMessages = ReturnType<(typeof feedMessages)["resolve"]>["t"];
|
|
12
22
|
/** Resolved from the inherited render locale. */
|
|
@@ -42,15 +42,20 @@ export type { LabelChipProps } from "./LabelChip";
|
|
|
42
42
|
export { LabelChip } from "./LabelChip";
|
|
43
43
|
export type { LightboxAction, LightboxImage } from "./Lightbox";
|
|
44
44
|
export { default as Lightbox } from "./Lightbox";
|
|
45
|
+
export type { LoadMoreProps } from "./LoadMore";
|
|
46
|
+
export { LoadMore } from "./LoadMore";
|
|
45
47
|
export type { LogTableEntry } from "./LogEntriesTable";
|
|
46
48
|
export { default as LogEntriesTable } from "./LogEntriesTable";
|
|
47
49
|
export { MapAttribution } from "./MapAttribution";
|
|
50
|
+
export { MapDialog, type MapDialogFact, type MapDialogMapView, type MapDialogMenuItem, type MapDialogProps, type MapPlace, type MapPlaceLink, type MapPlaceSource, } from "./MapDialog";
|
|
51
|
+
export { MAP_DIALOG_PARAM, MapTile, type MapTileProps, mapDialogOptions } from "./MapTile";
|
|
48
52
|
export { MapView } from "./MapView";
|
|
49
53
|
export { MapViewFrame } from "./MapViewFrame";
|
|
50
54
|
export { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from "./MarkdownView";
|
|
51
55
|
export { type MatchRange, MatchText, type MatchTextProps, matchParts } from "./MatchText";
|
|
52
56
|
export type { MessageEventGroupProps, MessageEventRowProps, MessageGroupEntry, MessageRowAction, MessageRowAttachment, MessageRowAuthor, MessageRowFile, MessageRowMedia, MessageRowOrigin, MessageRowProgress, MessageRowProps, MessageRowQuote, MessageRowReaction, MessageRowStatus, MessageRowThread, MessageSystemRowProps, } from "./MessageRow";
|
|
53
57
|
export { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from "./MessageRow";
|
|
58
|
+
export { type GeoNavigationPlatform, geoNavigationHref, geoNavigationPlatform } from "./map-navigation";
|
|
54
59
|
export { type MapPaletteColors, type MapTheme, mapPalette } from "./map-palette";
|
|
55
60
|
export { type MapStyleOptions, mapAttribution, mapStyle } from "./map-style";
|
|
56
61
|
export { MAP_SNAPSHOT_MAX_PIXELS, MapSnapshotError, type MapSnapshotErrorCode } from "./map-view-snapshot";
|
|
@@ -58,9 +63,7 @@ export type { MapViewArea, MapViewFit, MapViewFrameProps, MapViewHandle, MapView
|
|
|
58
63
|
export { MARKDOWN_CALLOUT_CLASSES, MARKDOWN_CALLOUT_ICON_ATTRIBUTES, type MarkdownInfoBlock, type MarkdownInfoBlockRenderInput, type MarkdownInfoBlockType, markdownInfoBlocks, renderMarkdownInfoBlock, scanMarkdownInfoBlock, } from "./markdown-info-blocks";
|
|
59
64
|
export { type MarkdownLinkInput, type MarkdownReference, type MarkdownReferenceKind, type MarkdownReferenceType, markdownLinkReference, markdownReferenceIcon, markdownReferenceType, markdownReferenceTypeLabel, markStandaloneLinks, renderMarkdownLink, } from "./markdown-links";
|
|
60
65
|
export { Pagination, type PaginationProps } from "./Pagination";
|
|
61
|
-
export type {
|
|
62
|
-
export { default as PdfPreview } from "./PdfPreview";
|
|
63
|
-
export type { PdfViewerProps } from "./PdfViewer";
|
|
66
|
+
export type { PdfViewerProps, PdfViewerRequest } from "./PdfViewer";
|
|
64
67
|
export { default as PdfViewer } from "./PdfViewer";
|
|
65
68
|
export type { RangeOption, RangePickerProps } from "./RangePicker";
|
|
66
69
|
export { default as RangePicker } from "./RangePicker";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GeoNavigationPlatform } from "./map-navigation";
|
|
2
|
+
export declare const useMapDialogMessages: () => () => {
|
|
3
|
+
open: string;
|
|
4
|
+
close: string;
|
|
5
|
+
more: string;
|
|
6
|
+
places: string;
|
|
7
|
+
copyAddress: string;
|
|
8
|
+
copied: string;
|
|
9
|
+
navigate: ({ platform }: {
|
|
10
|
+
platform: GeoNavigationPlatform;
|
|
11
|
+
}) => string;
|
|
12
|
+
loading: string;
|
|
13
|
+
empty: string;
|
|
14
|
+
enlarge: string;
|
|
15
|
+
shrink: string;
|
|
16
|
+
noLocation: string;
|
|
17
|
+
locationFailed: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const checkMapDialogMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MapViewPoint } from "./map-view-types";
|
|
2
|
+
export type GeoNavigationPlatform = "android" | "ios" | "desktop";
|
|
3
|
+
/** Phones open their own maps app; everything else gets OpenStreetMap. */
|
|
4
|
+
export declare const geoNavigationPlatform: (userAgent: string) => GeoNavigationPlatform;
|
|
5
|
+
/**
|
|
6
|
+
* A link into a navigation app. There is no live navigation; the link leaves the page only on click and carries
|
|
7
|
+
* just the destination and an optional name. Without a point it navigates to the address text.
|
|
8
|
+
*/
|
|
9
|
+
export declare const geoNavigationHref: (target: {
|
|
10
|
+
point?: MapViewPoint | null;
|
|
11
|
+
text: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}, platform: GeoNavigationPlatform) => string;
|
|
@@ -9,9 +9,11 @@ export declare const useMapViewMessages: () => () => {
|
|
|
9
9
|
locate: string;
|
|
10
10
|
loading: string;
|
|
11
11
|
error: string;
|
|
12
|
+
errorShort: string;
|
|
12
13
|
retry: string;
|
|
13
14
|
reload: string;
|
|
14
15
|
noWebgl: string;
|
|
16
|
+
noWebglShort: string;
|
|
15
17
|
ownLocation: string;
|
|
16
18
|
canvasTitle: string;
|
|
17
19
|
gestureWindows: string;
|
|
@@ -68,6 +68,11 @@ export type MapViewProps = Omit<MapViewFrameProps, "attribution"> & {
|
|
|
68
68
|
/** Browser-only handle; remains safely callable after disposal (rejects disposed). */
|
|
69
69
|
ref?: (handle: MapViewHandle) => void;
|
|
70
70
|
attribution: JSX.Element;
|
|
71
|
+
/**
|
|
72
|
+
* A calm picture: the map image loads, but there are no controls, gestures, pin selection, or info tile, and pins
|
|
73
|
+
* are labelled images. MapTile uses it; its own button opens the full map.
|
|
74
|
+
*/
|
|
75
|
+
still?: boolean;
|
|
71
76
|
onSelect?: (id: string) => void;
|
|
72
77
|
infoTile?: (marker: MapViewMarker) => JSX.Element;
|
|
73
78
|
notice?: JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const pdfMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
-
|
|
2
|
+
pdfOpenInTab: string;
|
|
3
3
|
pdfPreview: string;
|
|
4
4
|
pdfPreviewHttpError: ({ status }: {
|
|
5
5
|
status: number;
|
|
@@ -24,8 +24,8 @@ declare const pdfMessages: import("@k2b/stdlib").Catalog<{
|
|
|
24
24
|
pdfZoomPercent: ({ value }: {
|
|
25
25
|
value: number;
|
|
26
26
|
}) => string;
|
|
27
|
-
pdfFitWidth: string;
|
|
28
27
|
pdfFitWidthLabel: string;
|
|
28
|
+
pdfFitPageLabel: string;
|
|
29
29
|
}>;
|
|
30
30
|
export type PdfMessages = ReturnType<(typeof pdfMessages)["resolve"]>["t"];
|
|
31
31
|
/** Resolved from the inherited render locale. */
|
|
@@ -21,6 +21,12 @@ export type OpenDialogOptions = {
|
|
|
21
21
|
* A traversal that `@k2b/ssr/nav` hides from popstate listeners reaches this core through `ssr:nav-popstate`.
|
|
22
22
|
*/
|
|
23
23
|
history?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* With `history`, the URL of the dialog's own entry, such as the page URL with a query parameter that names the
|
|
26
|
+
* dialog. Closing returns to the entry below with its own URL. A reload on that entry keeps the URL; opening a
|
|
27
|
+
* dialog with the same `historyUrl` then resumes the entry instead of adding another above it.
|
|
28
|
+
*/
|
|
29
|
+
historyUrl?: string;
|
|
24
30
|
};
|
|
25
31
|
export type DialogRender<T> = (close: DialogClose<T>, context: {
|
|
26
32
|
dialog: HTMLDialogElement;
|
|
@@ -13,10 +13,10 @@ export type { InstallationPlatform, InstallPrompt } from "./install";
|
|
|
13
13
|
export { createInstallPrompt, installationPlatform } from "./install";
|
|
14
14
|
export type { MovedHintAction, MovedHintProps } from "./MovedHint";
|
|
15
15
|
export { MovedHint } from "./MovedHint";
|
|
16
|
-
export type { ConfirmOptions, DialogOptions, FieldSchema, PromptFieldBase, PromptSearchInput, PromptSearchItem, PromptSearchOptions, } from "./prompts";
|
|
16
|
+
export type { ConfirmOptions, DialogOptions, FieldSchema, PromptFieldBase, PromptSearchInput, PromptSearchItem, PromptSearchOptions, SuccessDialogOptions, } from "./prompts";
|
|
17
17
|
export { createFormState, DialogHeader, prompts } from "./prompts";
|
|
18
18
|
export type { TooltipAnchorProps, TooltipPlacement, TooltipProps, TooltipTriggerProps } from "./Tooltip";
|
|
19
19
|
export { Tooltip } from "./Tooltip";
|
|
20
20
|
export { syncThemeColor } from "./theme-color";
|
|
21
|
-
export type { ToastAction, ToastFn, ToastHandle, ToastOptions, ToastSlot, ToastVariant } from "./toast";
|
|
21
|
+
export type { ToastAction, ToastFn, ToastHandle, ToastLink, ToastOptions, ToastSlot, ToastSlotOptions, ToastVariant } from "./toast";
|
|
22
22
|
export { isPointInsideToast, toast } from "./toast";
|