@k2b/ui 0.54.0 → 0.56.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/browser/actions/Toolbar.js +16 -7
- package/dist/browser/actions/Toolbar.js.map +1 -1
- package/dist/browser/chat/ChatComposer.js +28 -27
- package/dist/browser/chat/ChatComposer.js.map +1 -1
- package/dist/browser/content/Lightbox.js +917 -283
- package/dist/browser/content/Lightbox.js.map +1 -1
- 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 +9 -4
- package/dist/browser/content/PdfPages.js.map +1 -1
- package/dist/browser/content/PdfThumbnails.js +271 -0
- package/dist/browser/content/PdfThumbnails.js.map +1 -0
- package/dist/browser/content/PdfViewer.js +11 -3
- package/dist/browser/content/PdfViewer.js.map +1 -1
- package/dist/browser/content/Timeline.js +116 -117
- package/dist/browser/content/Timeline.js.map +1 -1
- package/dist/browser/content/code-highlight.js +24 -11
- package/dist/browser/content/code-highlight.js.map +1 -1
- package/dist/browser/content/index.js +8 -1
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/lightbox-messages.js +64 -18
- package/dist/browser/content/lightbox-messages.js.map +1 -1
- package/dist/browser/content/lightbox-renderers.js +6 -0
- package/dist/browser/content/lightbox-renderers.js.map +1 -0
- 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/map-view-worker.js +3 -3
- package/dist/browser/content/pdf-messages.js +16 -2
- package/dist/browser/content/pdf-messages.js.map +1 -1
- package/dist/browser/content/pdf-viewer-engine.js +15 -15
- package/dist/browser/content/pdf-viewer-worker.js +4 -5
- package/dist/browser/feedback/dialog-core.js +21 -9
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/prompt-confirm.js +2 -0
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/internal/truncated-title.js +9 -0
- package/dist/browser/internal/truncated-title.js.map +1 -0
- package/dist/browser/layout/Breadcrumbs.js +97 -0
- package/dist/browser/layout/Breadcrumbs.js.map +1 -0
- package/dist/browser/layout/DetailPanel.js +3 -5
- package/dist/browser/layout/DetailPanel.js.map +1 -1
- package/dist/browser/layout/PanelDialog.js +3 -1
- 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/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/ssr/actions/CommandMenu.js +2 -2
- package/dist/ssr/actions/CommandMenu.js.map +1 -1
- package/dist/ssr/actions/Toolbar.js +16 -7
- package/dist/ssr/actions/Toolbar.js.map +1 -1
- package/dist/ssr/chat/ChatComposer.js +31 -30
- package/dist/ssr/chat/ChatComposer.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +659 -150
- package/dist/ssr/content/Lightbox.js.map +1 -1
- 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 +9 -4
- package/dist/ssr/content/PdfPages.js.map +1 -1
- package/dist/ssr/content/PdfThumbnails.js +189 -0
- package/dist/ssr/content/PdfThumbnails.js.map +1 -0
- package/dist/ssr/content/PdfViewer.js +11 -3
- package/dist/ssr/content/PdfViewer.js.map +1 -1
- package/dist/ssr/content/Timeline.js +2 -5
- package/dist/ssr/content/Timeline.js.map +1 -1
- package/dist/ssr/content/code-highlight.js +24 -11
- package/dist/ssr/content/code-highlight.js.map +1 -1
- package/dist/ssr/content/index.js +8 -1
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/lightbox-messages.js +64 -18
- package/dist/ssr/content/lightbox-messages.js.map +1 -1
- package/dist/ssr/content/lightbox-renderers.js +6 -0
- package/dist/ssr/content/lightbox-renderers.js.map +1 -0
- 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 +16 -2
- package/dist/ssr/content/pdf-messages.js.map +1 -1
- package/dist/ssr/feedback/dialog-core.js +21 -9
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/prompt-confirm.js +1 -0
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/inputs/ChoiceInputs.js +2 -2
- package/dist/ssr/inputs/ChoiceInputs.js.map +1 -1
- package/dist/ssr/inputs/SignatureInput.js +2 -2
- package/dist/ssr/inputs/SignatureInput.js.map +1 -1
- package/dist/ssr/inputs/markdown/SlashCommands.js +2 -2
- package/dist/ssr/inputs/markdown/SlashCommands.js.map +1 -1
- package/dist/ssr/internal/truncated-title.js +9 -0
- package/dist/ssr/internal/truncated-title.js.map +1 -0
- package/dist/ssr/layout/Breadcrumbs.js +62 -0
- package/dist/ssr/layout/Breadcrumbs.js.map +1 -0
- package/dist/ssr/layout/DetailPanel.js +1 -4
- package/dist/ssr/layout/DetailPanel.js.map +1 -1
- package/dist/ssr/layout/PanelDialog.js +1 -0
- 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/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/styles.css +1 -1
- package/dist/types/actions/Toolbar.d.ts +6 -0
- package/dist/types/chat/ChatComposer.d.ts +1 -0
- package/dist/types/content/Lightbox.d.ts +54 -14
- 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 +7 -1
- package/dist/types/content/PdfThumbnails.d.ts +26 -0
- package/dist/types/content/PdfViewer.d.ts +12 -3
- package/dist/types/content/index.d.ts +7 -2
- package/dist/types/content/lightbox-messages.d.ts +31 -8
- package/dist/types/content/lightbox-renderers.d.ts +3 -0
- 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 +7 -0
- package/dist/types/feedback/dialog-core.d.ts +6 -0
- package/dist/types/internal/truncated-title.d.ts +7 -0
- package/dist/types/layout/Breadcrumbs.d.ts +19 -0
- package/dist/types/layout/index.d.ts +1 -0
- package/dist/types/surfaces/Skeleton.d.ts +13 -1
- package/dist/types/surfaces/index.d.ts +1 -1
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/index.ts"],"sourcesContent":["export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from \"../charts/core\";\nexport { BalanceSummary, type BalanceSummaryProps } from \"./BalanceSummary\";\nexport type {\n CalendarAttendee,\n CalendarCommand,\n CalendarController,\n CalendarCustomView,\n CalendarDayBadge,\n CalendarEvent,\n CalendarEventColor,\n CalendarEventLink,\n CalendarEventRenderContext,\n CalendarEventTimeChange,\n CalendarExternalDrag,\n CalendarLabels,\n CalendarProps,\n CalendarQuickCreateControls,\n CalendarRange,\n CalendarRecurrence,\n CalendarResource,\n CalendarSelectionControls,\n CalendarView,\n} from \"./Calendar\";\nexport { default as Calendar } from \"./Calendar\";\n\nexport type { ChartKind, ChartKindProps, ChartLabels, ChartProps, ChartRenderOptions } from \"./Chart\";\nexport { default as Chart } from \"./Chart\";\nexport type { ChartExplorerColumn, ChartExplorerProps, ChartFrameRequest, ChartLegendEntry } from \"./ChartExplorer\";\nexport { ChartExplorer } from \"./ChartExplorer\";\nexport type { ChartExplorerControlsProps } from \"./ChartExplorerControls\";\nexport { ChartExplorerControls } from \"./ChartExplorerControls\";\nexport { ChartFilterControls, type ChartFilterControlsProps } from \"./ChartFilterControls\";\nexport { ChartSnapshotView } from \"./ChartSnapshotView\";\nexport type { CodeDisplayLanguage, CodeDisplayProps } from \"./CodeDisplay\";\nexport { default as CodeDisplay } from \"./CodeDisplay\";\nexport { type ChartCursor, createChartCursor } from \"./chart-cursor\";\nexport type {\n ChartExplorerCharts,\n ChartExplorerController,\n ChartExplorerData,\n ChartExplorerOptions,\n ChartExplorerRequest,\n ChartExplorerRow,\n ChartExplorerSnapshot,\n} from \"./chart-explorer\";\nexport { createChartExplorer } from \"./chart-explorer\";\nexport type { ChartDatumRef, ChartSelection, ChartTooltip, ChartTooltipFormatter } from \"./chart-inspection-core\";\nexport type { ChartSnapshot } from \"./chart-snapshot\";\nexport { prepareChartSnapshot } from \"./chart-snapshot\";\nexport type {\n StateTimelineChartOptions,\n StateTimelineDomain,\n StateTimelineInterval,\n StateTimelineRow,\n StateTimelineState,\n} from \"./chart-state-timeline\";\nexport type { ChartTimeAxis } from \"./chart-time-axis\";\nexport { highlightSql } from \"./code-highlight\";\nexport { type CollectionSelection, createCollectionSelection, type SelectionModifiers } from \"./collection-selection\";\nexport type {\n DataTableColumn,\n DataTableControlsProps,\n DataTableFooter,\n DataTableHeaderProps,\n DataTablePanelFooterProps,\n DataTablePanelProps,\n DataTableProps,\n DataTableRenderCell,\n DataTableRenderHeader,\n DataTableSort,\n} from \"./DataTable\";\nexport { default as DataTable } from \"./DataTable\";\nexport type { DataTableToolsProps, DataTableView, DataTableViewOptions } from \"./DataTableTools\";\nexport { createDataTableView, DataTableTools } from \"./DataTableTools\";\nexport type { DocCodeHighlighter, DocCodeProps, DocConcept, DocNoteVariant, DocRow } from \"./Docs\";\nexport { DocCode, DocConceptGrid, DocInlineCode, DocLead, DocNote, DocPage, DocRows, DocSection } from \"./Docs\";\nexport type {\n DataTableColumnType,\n DataTableNumberFormat,\n DataTableStatusState,\n DataTableTypedColumn,\n} from \"./data-table-columns\";\nexport { filterRows, sortRows } from \"./data-table-columns\";\nexport { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from \"./FileBrowser\";\nexport { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from \"./FileGrid\";\nexport { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from \"./FileTree\";\nexport { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from \"./FileTypeIcon\";\nexport {\n canPreviewFile,\n default as FileView,\n type FileViewContent,\n type FileViewFile,\n type FileViewPreviewKind,\n type FileViewProps,\n type FileViewRenderer,\n type FileViewRendererProps,\n formatFileViewSize,\n getFileViewPreviewKind,\n} from \"./FileView\";\nexport { FlowAmount, type FlowAmountDirection, type FlowAmountProps, flowDirection } from \"./FlowAmount\";\nexport type { KbdProps } from \"./Kbd\";\nexport { Kbd } from \"./Kbd\";\nexport type { LabelChipProps } from \"./LabelChip\";\nexport { LabelChip } from \"./LabelChip\";\nexport type { LightboxAction, LightboxImage } from \"./Lightbox\";\nexport { default as Lightbox } from \"./Lightbox\";\nexport type { LoadMoreProps } from \"./LoadMore\";\nexport { LoadMore } from \"./LoadMore\";\nexport type { LogTableEntry } from \"./LogEntriesTable\";\nexport { default as LogEntriesTable } from \"./LogEntriesTable\";\nexport { MapAttribution } from \"./MapAttribution\";\nexport { MapView } from \"./MapView\";\nexport { MapViewFrame } from \"./MapViewFrame\";\nexport { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from \"./MarkdownView\";\nexport { type MatchRange, MatchText, type MatchTextProps, matchParts } from \"./MatchText\";\nexport type {\n MessageEventGroupProps,\n MessageEventRowProps,\n MessageGroupEntry,\n MessageRowAction,\n MessageRowAttachment,\n MessageRowAuthor,\n MessageRowFile,\n MessageRowMedia,\n MessageRowOrigin,\n MessageRowProgress,\n MessageRowProps,\n MessageRowQuote,\n MessageRowReaction,\n MessageRowStatus,\n MessageRowThread,\n MessageSystemRowProps,\n} from \"./MessageRow\";\nexport { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from \"./MessageRow\";\nexport { type MapPaletteColors, type MapTheme, mapPalette } from \"./map-palette\";\nexport { type MapStyleOptions, mapAttribution, mapStyle } from \"./map-style\";\nexport { MAP_SNAPSHOT_MAX_PIXELS, MapSnapshotError, type MapSnapshotErrorCode } from \"./map-view-snapshot\";\nexport type {\n MapViewArea,\n MapViewFit,\n MapViewFrameProps,\n MapViewHandle,\n MapViewLine,\n MapViewLineTone,\n MapViewMarker,\n MapViewOwnLocation,\n MapViewPoint,\n MapViewProps,\n MapViewSnapshot,\n MapViewSnapshotOptions,\n MapViewStyle,\n MapViewStyleSource,\n MapViewTone,\n} from \"./map-view-types\";\nexport {\n MARKDOWN_CALLOUT_CLASSES,\n MARKDOWN_CALLOUT_ICON_ATTRIBUTES,\n type MarkdownInfoBlock,\n type MarkdownInfoBlockRenderInput,\n type MarkdownInfoBlockType,\n markdownInfoBlocks,\n renderMarkdownInfoBlock,\n scanMarkdownInfoBlock,\n} from \"./markdown-info-blocks\";\nexport {\n type MarkdownLinkInput,\n type MarkdownReference,\n type MarkdownReferenceKind,\n type MarkdownReferenceType,\n markdownLinkReference,\n markdownReferenceIcon,\n markdownReferenceType,\n markdownReferenceTypeLabel,\n markStandaloneLinks,\n renderMarkdownLink,\n} from \"./markdown-links\";\nexport { Pagination, type PaginationProps } from \"./Pagination\";\nexport type { PdfViewerProps, PdfViewerRequest } from \"./PdfViewer\";\nexport { default as PdfViewer } from \"./PdfViewer\";\nexport type { RangeOption, RangePickerProps } from \"./RangePicker\";\nexport { default as RangePicker } from \"./RangePicker\";\nexport { ReactionBar, type ReactionBarItem, type ReactionBarProps } from \"./ReactionBar\";\nexport type {\n ReferenceChipObjectProps,\n ReferenceChipPersonProps,\n ReferenceChipProps,\n ReferenceChipTimeProps,\n} from \"./ReferenceChip\";\nexport { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from \"./ReferenceChip\";\nexport type { StepsProps } from \"./Steps\";\nexport { Steps } from \"./Steps\";\nexport type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from \"./StructuredDataPreview\";\nexport { default as StructuredDataPreview, isStructuredDataValue } from \"./StructuredDataPreview\";\nexport { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from \"./ThumbnailStrip\";\nexport type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from \"./Timeline\";\nexport { default as Timeline } from \"./Timeline\";\nexport { VideoPlayer, type VideoPlayerProps } from \"./VideoPlayer\";\nexport type { VirtualFeedController, VirtualFeedProps, VirtualFeedScrollOptions } from \"./VirtualFeed\";\nexport { VirtualFeed } from \"./VirtualFeed\";\nexport type { ZoomPanAction, ZoomPanFullscreen, ZoomPanViewportProps } from \"./ZoomPanViewport\";\nexport { ZoomPanViewport } from \"./ZoomPanViewport\";\n"],"mappings":"AACA,SAAS,cAAc,QAAkC,kBAAkB;AAsB3E,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAGhD,SAAS,OAAO,IAAI,KAAK,QAAQ,SAAS;AAE1C,SAAS,aAAa,QAAQ,iBAAiB;AAE/C,SAAS,qBAAqB,QAAQ,yBAAyB;AAC/D,SAAS,mBAAmB,QAAuC,uBAAuB;AAC1F,SAAS,iBAAiB,QAAQ,qBAAqB;AAEvD,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAA2B,iBAAiB,QAAQ,gBAAgB;AAUpE,SAAS,mBAAmB,QAAQ,kBAAkB;AAGtD,SAAS,oBAAoB,QAAQ,kBAAkB;AASvD,SAAS,YAAY,QAAQ,kBAAkB;AAC/C,SAAmC,yBAAyB,QAAiC,wBAAwB;AAarH,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAElD,SAAS,mBAAmB,EAAE,cAAc,QAAQ,kBAAkB;AAEtE,SAAS,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,QAAQ,QAAQ;AAO/G,SAAS,UAAU,EAAE,QAAQ,QAAQ,sBAAsB;AAC3D,SAAS,gBAAgB,EAA+C,eAAe,QAAQ,eAAe;AAC9G,SAAS,QAAQ,QAAsG,YAAY;AACnI,SAAS,OAAO,IAAI,QAAQ,QAAsE,YAAY;AAC9G,SAAwB,YAAY,EAA0B,aAAa,EAAE,UAAU,QAAQ,gBAAgB;AAC/G,SACE,cAAc,EACd,OAAO,IAAI,QAAQ,EAOnB,kBAAkB,EAClB,sBAAsB,QACjB,YAAY;AACnB,SAAS,UAAU,EAAkD,aAAa,QAAQ,cAAc;AAExG,SAAS,GAAG,QAAQ,OAAO;AAE3B,SAAS,SAAS,QAAQ,aAAa;AAEvC,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAEhD,SAAS,QAAQ,QAAQ,YAAY;AAErC,SAAS,OAAO,IAAI,eAAe,QAAQ,mBAAmB;AAC9D,SAAS,cAAc,QAAQ,kBAAkB;AACjD,SAAS,OAAO,QAAQ,WAAW;AACnC,SAAS,YAAY,QAAQ,gBAAgB;AAC7C,SAAS,OAAO,IAAI,YAAY,EAAsD,kBAAkB,QAAQ,gBAAgB;AAChI,SAA0B,SAAS,EAAuB,UAAU,QAAQ,aAAa;AAmBzF,SAAS,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,QAAQ,cAAc;AACnH,SAA+C,UAAU,QAAQ,eAAe;AAChF,SAA+B,cAAc,EAAE,QAAQ,QAAQ,aAAa;AAC5E,SAAS,uBAAuB,EAAE,gBAAgB,QAAmC,qBAAqB;AAkB1G,SACE,wBAAwB,EACxB,gCAAgC,EAIhC,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,QAChB,wBAAwB;AAC/B,SAKE,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,QACb,kBAAkB;AACzB,SAAS,UAAU,QAA8B,cAAc;AAE/D,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAElD,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAAS,WAAW,QAAqD,eAAe;AAOxF,SAAS,6BAA6B,EAAE,aAAa,EAAE,cAAc,QAAQ,iBAAiB;AAE9F,SAAS,KAAK,QAAQ,SAAS;AAE/B,SAAS,OAAO,IAAI,qBAAqB,EAAE,qBAAqB,QAAQ,yBAAyB;AACjG,SAAS,cAAc,QAA2D,kBAAkB;AAEpG,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAChD,SAAS,WAAW,QAA+B,eAAe;AAElE,SAAS,WAAW,QAAQ,eAAe;AAE3C,SAAS,eAAe,QAAQ,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/index.ts"],"sourcesContent":["export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from \"../charts/core\";\nexport { BalanceSummary, type BalanceSummaryProps } from \"./BalanceSummary\";\nexport type {\n CalendarAttendee,\n CalendarCommand,\n CalendarController,\n CalendarCustomView,\n CalendarDayBadge,\n CalendarEvent,\n CalendarEventColor,\n CalendarEventLink,\n CalendarEventRenderContext,\n CalendarEventTimeChange,\n CalendarExternalDrag,\n CalendarLabels,\n CalendarProps,\n CalendarQuickCreateControls,\n CalendarRange,\n CalendarRecurrence,\n CalendarResource,\n CalendarSelectionControls,\n CalendarView,\n} from \"./Calendar\";\nexport { default as Calendar } from \"./Calendar\";\n\nexport type { ChartKind, ChartKindProps, ChartLabels, ChartProps, ChartRenderOptions } from \"./Chart\";\nexport { default as Chart } from \"./Chart\";\nexport type { ChartExplorerColumn, ChartExplorerProps, ChartFrameRequest, ChartLegendEntry } from \"./ChartExplorer\";\nexport { ChartExplorer } from \"./ChartExplorer\";\nexport type { ChartExplorerControlsProps } from \"./ChartExplorerControls\";\nexport { ChartExplorerControls } from \"./ChartExplorerControls\";\nexport { ChartFilterControls, type ChartFilterControlsProps } from \"./ChartFilterControls\";\nexport { ChartSnapshotView } from \"./ChartSnapshotView\";\nexport type { CodeDisplayLanguage, CodeDisplayProps } from \"./CodeDisplay\";\nexport { default as CodeDisplay } from \"./CodeDisplay\";\nexport { type ChartCursor, createChartCursor } from \"./chart-cursor\";\nexport type {\n ChartExplorerCharts,\n ChartExplorerController,\n ChartExplorerData,\n ChartExplorerOptions,\n ChartExplorerRequest,\n ChartExplorerRow,\n ChartExplorerSnapshot,\n} from \"./chart-explorer\";\nexport { createChartExplorer } from \"./chart-explorer\";\nexport type { ChartDatumRef, ChartSelection, ChartTooltip, ChartTooltipFormatter } from \"./chart-inspection-core\";\nexport type { ChartSnapshot } from \"./chart-snapshot\";\nexport { prepareChartSnapshot } from \"./chart-snapshot\";\nexport type {\n StateTimelineChartOptions,\n StateTimelineDomain,\n StateTimelineInterval,\n StateTimelineRow,\n StateTimelineState,\n} from \"./chart-state-timeline\";\nexport type { ChartTimeAxis } from \"./chart-time-axis\";\nexport { highlightSql } from \"./code-highlight\";\nexport { type CollectionSelection, createCollectionSelection, type SelectionModifiers } from \"./collection-selection\";\nexport type {\n DataTableColumn,\n DataTableControlsProps,\n DataTableFooter,\n DataTableHeaderProps,\n DataTablePanelFooterProps,\n DataTablePanelProps,\n DataTableProps,\n DataTableRenderCell,\n DataTableRenderHeader,\n DataTableSort,\n} from \"./DataTable\";\nexport { default as DataTable } from \"./DataTable\";\nexport type { DataTableToolsProps, DataTableView, DataTableViewOptions } from \"./DataTableTools\";\nexport { createDataTableView, DataTableTools } from \"./DataTableTools\";\nexport type { DocCodeHighlighter, DocCodeProps, DocConcept, DocNoteVariant, DocRow } from \"./Docs\";\nexport { DocCode, DocConceptGrid, DocInlineCode, DocLead, DocNote, DocPage, DocRows, DocSection } from \"./Docs\";\nexport type {\n DataTableColumnType,\n DataTableNumberFormat,\n DataTableStatusState,\n DataTableTypedColumn,\n} from \"./data-table-columns\";\nexport { filterRows, sortRows } from \"./data-table-columns\";\nexport { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from \"./FileBrowser\";\nexport { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from \"./FileGrid\";\nexport { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from \"./FileTree\";\nexport { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from \"./FileTypeIcon\";\nexport {\n default as FileView,\n type FileViewContent,\n type FileViewProps,\n type FileViewRenderer,\n type FileViewRendererProps,\n formatFileViewSize,\n} from \"./FileView\";\nexport { FlowAmount, type FlowAmountDirection, type FlowAmountProps, flowDirection } from \"./FlowAmount\";\n// Choosing a renderer needs no renderer: these come from their own small module, so an app that only asks which kind\n// a file is never loads FileView and its PDF, video and code dependencies.\nexport { canPreviewFile, type FileViewFile, type FileViewPreviewKind, getFileViewPreviewKind } from \"./file-view-preview\";\nexport type { KbdProps } from \"./Kbd\";\nexport { Kbd } from \"./Kbd\";\nexport type { LabelChipProps } from \"./LabelChip\";\nexport { LabelChip } from \"./LabelChip\";\nexport type { LightboxAction, LightboxItem, LightboxProps } from \"./Lightbox\";\nexport { default as Lightbox } from \"./Lightbox\";\nexport type { LoadMoreProps } from \"./LoadMore\";\nexport { LoadMore } from \"./LoadMore\";\nexport type { LogTableEntry } from \"./LogEntriesTable\";\nexport { default as LogEntriesTable } from \"./LogEntriesTable\";\nexport { MapAttribution } from \"./MapAttribution\";\nexport {\n MapDialog,\n type MapDialogFact,\n type MapDialogMapView,\n type MapDialogMenuItem,\n type MapDialogProps,\n type MapPlace,\n type MapPlaceLink,\n type MapPlaceSource,\n} from \"./MapDialog\";\nexport { MAP_DIALOG_PARAM, MapTile, type MapTileProps, mapDialogOptions } from \"./MapTile\";\nexport { MapView } from \"./MapView\";\nexport { MapViewFrame } from \"./MapViewFrame\";\nexport { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from \"./MarkdownView\";\nexport { type MatchRange, MatchText, type MatchTextProps, matchParts } from \"./MatchText\";\nexport type {\n MessageEventGroupProps,\n MessageEventRowProps,\n MessageGroupEntry,\n MessageRowAction,\n MessageRowAttachment,\n MessageRowAuthor,\n MessageRowFile,\n MessageRowMedia,\n MessageRowOrigin,\n MessageRowProgress,\n MessageRowProps,\n MessageRowQuote,\n MessageRowReaction,\n MessageRowStatus,\n MessageRowThread,\n MessageSystemRowProps,\n} from \"./MessageRow\";\nexport { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from \"./MessageRow\";\nexport { type GeoNavigationPlatform, geoNavigationHref, geoNavigationPlatform } from \"./map-navigation\";\nexport { type MapPaletteColors, type MapTheme, mapPalette } from \"./map-palette\";\nexport { type MapStyleOptions, mapAttribution, mapStyle } from \"./map-style\";\nexport { MAP_SNAPSHOT_MAX_PIXELS, MapSnapshotError, type MapSnapshotErrorCode } from \"./map-view-snapshot\";\nexport type {\n MapViewArea,\n MapViewFit,\n MapViewFrameProps,\n MapViewHandle,\n MapViewLine,\n MapViewLineTone,\n MapViewMarker,\n MapViewOwnLocation,\n MapViewPoint,\n MapViewProps,\n MapViewSnapshot,\n MapViewSnapshotOptions,\n MapViewStyle,\n MapViewStyleSource,\n MapViewTone,\n} from \"./map-view-types\";\nexport {\n MARKDOWN_CALLOUT_CLASSES,\n MARKDOWN_CALLOUT_ICON_ATTRIBUTES,\n type MarkdownInfoBlock,\n type MarkdownInfoBlockRenderInput,\n type MarkdownInfoBlockType,\n markdownInfoBlocks,\n renderMarkdownInfoBlock,\n scanMarkdownInfoBlock,\n} from \"./markdown-info-blocks\";\nexport {\n type MarkdownLinkInput,\n type MarkdownReference,\n type MarkdownReferenceKind,\n type MarkdownReferenceType,\n markdownLinkReference,\n markdownReferenceIcon,\n markdownReferenceType,\n markdownReferenceTypeLabel,\n markStandaloneLinks,\n renderMarkdownLink,\n} from \"./markdown-links\";\nexport { Pagination, type PaginationProps } from \"./Pagination\";\nexport { PdfThumbnails, type PdfThumbnailsProps } from \"./PdfThumbnails\";\nexport type { PdfViewerProps, PdfViewerRequest } from \"./PdfViewer\";\nexport { default as PdfViewer } from \"./PdfViewer\";\nexport type { RangeOption, RangePickerProps } from \"./RangePicker\";\nexport { default as RangePicker } from \"./RangePicker\";\nexport { ReactionBar, type ReactionBarItem, type ReactionBarProps } from \"./ReactionBar\";\nexport type {\n ReferenceChipObjectProps,\n ReferenceChipPersonProps,\n ReferenceChipProps,\n ReferenceChipTimeProps,\n} from \"./ReferenceChip\";\nexport { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from \"./ReferenceChip\";\nexport type { StepsProps } from \"./Steps\";\nexport { Steps } from \"./Steps\";\nexport type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from \"./StructuredDataPreview\";\nexport { default as StructuredDataPreview, isStructuredDataValue } from \"./StructuredDataPreview\";\nexport { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from \"./ThumbnailStrip\";\nexport type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from \"./Timeline\";\nexport { default as Timeline } from \"./Timeline\";\nexport { VideoPlayer, type VideoPlayerProps } from \"./VideoPlayer\";\nexport type { VirtualFeedController, VirtualFeedProps, VirtualFeedScrollOptions } from \"./VirtualFeed\";\nexport { VirtualFeed } from \"./VirtualFeed\";\nexport type { ZoomPanAction, ZoomPanFullscreen, ZoomPanViewportProps } from \"./ZoomPanViewport\";\nexport { ZoomPanViewport } from \"./ZoomPanViewport\";\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -4,26 +4,72 @@ const lightboxMessages = i18n.define({
|
|
|
4
4
|
baseLocale: "en",
|
|
5
5
|
messages: {
|
|
6
6
|
en: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
actions: "Actions",
|
|
8
|
+
close: "Close",
|
|
9
|
+
closeHint: "Close (Esc)",
|
|
10
|
+
download: "Download",
|
|
11
|
+
open: "Open",
|
|
12
|
+
previous: "Previous file",
|
|
13
|
+
next: "Next file",
|
|
14
|
+
files: "Files",
|
|
15
|
+
view: "View",
|
|
16
|
+
zoomIn: "Zoom in",
|
|
17
|
+
zoomOut: "Zoom out",
|
|
18
|
+
percent: ({
|
|
19
|
+
value
|
|
20
|
+
}) => `${value} %`,
|
|
21
|
+
page: ({
|
|
22
|
+
number,
|
|
23
|
+
total
|
|
24
|
+
}) => `Page ${number} / ${total}`,
|
|
25
|
+
sheet: ({
|
|
26
|
+
number,
|
|
27
|
+
total
|
|
28
|
+
}) => `Sheet ${number} / ${total}`,
|
|
29
|
+
loading: "Preview loads",
|
|
30
|
+
converting: "Converting for the preview …",
|
|
31
|
+
failed: "The preview could not be loaded",
|
|
32
|
+
failedHint: "You can still download the file.",
|
|
33
|
+
retry: "Try again",
|
|
34
|
+
notPossible: "Preview not possible",
|
|
35
|
+
notPossibleHint: "The file could not be converted for the preview.",
|
|
36
|
+
noPreview: "There is no preview for this file",
|
|
37
|
+
noPreviewHint: "Download it and open it with a suitable program.",
|
|
38
|
+
viewOnly: "view only"
|
|
16
39
|
},
|
|
17
40
|
de: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
41
|
+
actions: "Aktionen",
|
|
42
|
+
close: "Schließen",
|
|
43
|
+
closeHint: "Schließen (Esc)",
|
|
44
|
+
download: "Herunterladen",
|
|
45
|
+
open: "Öffnen",
|
|
46
|
+
previous: "Vorherige Datei",
|
|
47
|
+
next: "Nächste Datei",
|
|
48
|
+
files: "Dateien",
|
|
49
|
+
view: "Ansicht",
|
|
50
|
+
zoomIn: "Vergrößern",
|
|
51
|
+
zoomOut: "Verkleinern",
|
|
52
|
+
percent: ({
|
|
53
|
+
value
|
|
54
|
+
}) => `${value} %`,
|
|
55
|
+
page: ({
|
|
56
|
+
number,
|
|
57
|
+
total
|
|
58
|
+
}) => `Seite ${number} / ${total}`,
|
|
59
|
+
sheet: ({
|
|
60
|
+
number,
|
|
61
|
+
total
|
|
62
|
+
}) => `Blatt ${number} / ${total}`,
|
|
63
|
+
loading: "Vorschau lädt",
|
|
64
|
+
converting: "Wird für die Vorschau umgewandelt …",
|
|
65
|
+
failed: "Die Vorschau konnte nicht geladen werden",
|
|
66
|
+
failedHint: "Herunterladen geht trotzdem.",
|
|
67
|
+
retry: "Erneut versuchen",
|
|
68
|
+
notPossible: "Vorschau nicht möglich",
|
|
69
|
+
notPossibleHint: "Die Datei ließ sich nicht für die Vorschau umwandeln.",
|
|
70
|
+
noPreview: "Für diese Datei gibt es keine Vorschau",
|
|
71
|
+
noPreviewHint: "Herunterladen und mit einem passenden Programm öffnen.",
|
|
72
|
+
viewOnly: "nur Ansicht"
|
|
27
73
|
}
|
|
28
74
|
}
|
|
29
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/lightbox-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst lightboxMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n
|
|
1
|
+
{"version":3,"names":[],"sources":["content/lightbox-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst lightboxMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n actions: \"Actions\",\n close: \"Close\",\n closeHint: \"Close (Esc)\",\n download: \"Download\",\n open: \"Open\",\n previous: \"Previous file\",\n next: \"Next file\",\n files: \"Files\",\n view: \"View\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n percent: ({ value }: { value: number }): string => `${value} %`,\n page: ({ number, total }: { number: number; total: number }): string => `Page ${number} / ${total}`,\n sheet: ({ number, total }: { number: number; total: number }): string => `Sheet ${number} / ${total}`,\n loading: \"Preview loads\",\n converting: \"Converting for the preview …\",\n failed: \"The preview could not be loaded\",\n failedHint: \"You can still download the file.\",\n retry: \"Try again\",\n notPossible: \"Preview not possible\",\n notPossibleHint: \"The file could not be converted for the preview.\",\n noPreview: \"There is no preview for this file\",\n noPreviewHint: \"Download it and open it with a suitable program.\",\n viewOnly: \"view only\",\n },\n de: {\n actions: \"Aktionen\",\n close: \"Schließen\",\n closeHint: \"Schließen (Esc)\",\n download: \"Herunterladen\",\n open: \"Öffnen\",\n previous: \"Vorherige Datei\",\n next: \"Nächste Datei\",\n files: \"Dateien\",\n view: \"Ansicht\",\n zoomIn: \"Vergrößern\",\n zoomOut: \"Verkleinern\",\n percent: ({ value }) => `${value} %`,\n page: ({ number, total }) => `Seite ${number} / ${total}`,\n sheet: ({ number, total }) => `Blatt ${number} / ${total}`,\n loading: \"Vorschau lädt\",\n converting: \"Wird für die Vorschau umgewandelt …\",\n failed: \"Die Vorschau konnte nicht geladen werden\",\n failedHint: \"Herunterladen geht trotzdem.\",\n retry: \"Erneut versuchen\",\n notPossible: \"Vorschau nicht möglich\",\n notPossibleHint: \"Die Datei ließ sich nicht für die Vorschau umwandeln.\",\n noPreview: \"Für diese Datei gibt es keine Vorschau\",\n noPreviewHint: \"Herunterladen und mit einem passenden Programm öffnen.\",\n viewOnly: \"nur Ansicht\",\n },\n },\n});\n\nexport type LightboxMessages = ReturnType<(typeof lightboxMessages)[\"resolve\"]>[\"t\"];\n\n/** Resolved from the inherited render locale. */\nexport const useLightboxMessages = (): (() => LightboxMessages) => {\n const locale = useLocale();\n return () => lightboxMessages.resolve([locale()]).t;\n};\n\nexport const checkLightboxMessages = () => lightboxMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAE1C,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC;EACnC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,OAAO,EAAE,SAAS;MAClB,KAAK,EAAE,OAAO;MACd,SAAS,EAAE,aAAa;MACxB,QAAQ,EAAE,UAAU;MACpB,IAAI,EAAE,MAAM;MACZ,QAAQ,EAAE,eAAe;MACzB,IAAI,EAAE,WAAW;MACjB,KAAK,EAAE,OAAO;MACd,IAAI,EAAE,MAAM;MACZ,MAAM,EAAE,SAAS;MACjB,OAAO,EAAE,UAAU;MACnB,OAAO,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAa,GAAG,KAAK,IAAI;MAC/D,IAAI,EAAE,CAAC;QAAE,MAAM;QAAE;MAAyC,CAAC,KAAa,QAAQ,MAAM,MAAM,KAAK,EAAE;MACnG,KAAK,EAAE,CAAC;QAAE,MAAM;QAAE;MAAyC,CAAC,KAAa,SAAS,MAAM,MAAM,KAAK,EAAE;MACrG,OAAO,EAAE,eAAe;MACxB,UAAU,EAAE,8BAA8B;MAC1C,MAAM,EAAE,iCAAiC;MACzC,UAAU,EAAE,kCAAkC;MAC9C,KAAK,EAAE,WAAW;MAClB,WAAW,EAAE,sBAAsB;MACnC,eAAe,EAAE,kDAAkD;MACnE,SAAS,EAAE,mCAAmC;MAC9C,aAAa,EAAE,kDAAkD;MACjE,QAAQ,EAAE;IACZ,CAAC;IACD,EAAE,EAAE;MACF,OAAO,EAAE,UAAU;MACnB,KAAK,EAAE,WAAW;MAClB,SAAS,EAAE,iBAAiB;MAC5B,QAAQ,EAAE,eAAe;MACzB,IAAI,EAAE,QAAQ;MACd,QAAQ,EAAE,iBAAiB;MAC3B,IAAI,EAAE,eAAe;MACrB,KAAK,EAAE,SAAS;MAChB,IAAI,EAAE,SAAS;MACf,MAAM,EAAE,YAAY;MACpB,OAAO,EAAE,aAAa;MACtB,OAAO,EAAE,CAAC;QAAE;MAAM,CAAC,KAAK,GAAG,KAAK,IAAI;MACpC,IAAI,EAAE,CAAC;QAAE,MAAM;QAAE;MAAM,CAAC,KAAK,SAAS,MAAM,MAAM,KAAK,EAAE;MACzD,KAAK,EAAE,CAAC;QAAE,MAAM;QAAE;MAAM,CAAC,KAAK,SAAS,MAAM,MAAM,KAAK,EAAE;MAC1D,OAAO,EAAE,eAAe;MACxB,UAAU,EAAE,qCAAqC;MACjD,MAAM,EAAE,0CAA0C;MAClD,UAAU,EAAE,8BAA8B;MAC1C,KAAK,EAAE,kBAAkB;MACzB,WAAW,EAAE,wBAAwB;MACrC,eAAe,EAAE,uDAAuD;MACxE,SAAS,EAAE,wCAAwC;MACnD,aAAa,EAAE,wDAAwD;MACvE,QAAQ,EAAE;IACZ;EACF;AACF,CAAC,CAAC;AAIF;AACA,OAAO,MAAM,mBAAmB,GAAG,MAAgC;EACjE,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,OAAO,MAAM,qBAAqB,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// The Lightbox's heavy renderers in one module of their own, loaded when a file needs one. It is not part of the
|
|
2
|
+
// package index, so an app that only offers the Lightbox never carries the document, PDF and video code up front.
|
|
3
|
+
export { default as FileView } from "./FileView";
|
|
4
|
+
export { default as PdfViewer } from "./PdfViewer";
|
|
5
|
+
export { default as VideoPlayer } from "./VideoPlayer";
|
|
6
|
+
//# sourceMappingURL=lightbox-renderers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/lightbox-renderers.ts"],"sourcesContent":["// The Lightbox's heavy renderers in one module of their own, loaded when a file needs one. It is not part of the\n// package index, so an app that only offers the Lightbox never carries the document, PDF and video code up front.\nexport { default as FileView } from \"./FileView\";\nexport { default as PdfViewer } from \"./PdfViewer\";\nexport { default as VideoPlayer } from \"./VideoPlayer\";\n"],"mappings":"AAAA;AACA;AACA,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAChD,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAClD,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { i18n } from "@k2b/stdlib";
|
|
2
|
+
import { useLocale } from "../intl/locale";
|
|
3
|
+
const mapDialogMessages = i18n.define({
|
|
4
|
+
baseLocale: "en",
|
|
5
|
+
messages: {
|
|
6
|
+
en: {
|
|
7
|
+
open: "Open map",
|
|
8
|
+
close: "Close",
|
|
9
|
+
more: "More actions",
|
|
10
|
+
places: "Places",
|
|
11
|
+
copyAddress: "Copy address",
|
|
12
|
+
copied: "Copied",
|
|
13
|
+
navigate: ({
|
|
14
|
+
platform
|
|
15
|
+
}) => platform === "ios" ? "Open in Apple Maps" : platform === "android" ? "Open in maps app" : "Open in OpenStreetMap",
|
|
16
|
+
loading: "Loading places …",
|
|
17
|
+
empty: "No places on this map.",
|
|
18
|
+
enlarge: "Enlarge list",
|
|
19
|
+
shrink: "Shrink list",
|
|
20
|
+
noLocation: "Location denied · allow it in your browser",
|
|
21
|
+
locationFailed: "Location unavailable"
|
|
22
|
+
},
|
|
23
|
+
de: {
|
|
24
|
+
open: "Karte öffnen",
|
|
25
|
+
close: "Schließen",
|
|
26
|
+
more: "Weitere Aktionen",
|
|
27
|
+
places: "Orte",
|
|
28
|
+
copyAddress: "Adresse kopieren",
|
|
29
|
+
copied: "Kopiert",
|
|
30
|
+
navigate: ({
|
|
31
|
+
platform
|
|
32
|
+
}) => platform === "ios" ? "In Apple Karten öffnen" : platform === "android" ? "In Navi-App öffnen" : "In OpenStreetMap öffnen",
|
|
33
|
+
loading: "Orte werden geladen …",
|
|
34
|
+
empty: "Keine Orte auf dieser Karte.",
|
|
35
|
+
enlarge: "Liste vergrößern",
|
|
36
|
+
shrink: "Liste verkleinern",
|
|
37
|
+
noLocation: "Standort nicht erlaubt · im Browser freigeben",
|
|
38
|
+
locationFailed: "Standort nicht verfügbar"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export const useMapDialogMessages = () => {
|
|
43
|
+
const locale = useLocale();
|
|
44
|
+
return () => mapDialogMessages.resolve([locale()]).t;
|
|
45
|
+
};
|
|
46
|
+
export const checkMapDialogMessages = () => mapDialogMessages.check();
|
|
47
|
+
//# sourceMappingURL=map-dialog-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/map-dialog-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\nimport type { GeoNavigationPlatform } from \"./map-navigation\";\n\nconst mapDialogMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n open: \"Open map\",\n close: \"Close\",\n more: \"More actions\",\n places: \"Places\",\n copyAddress: \"Copy address\",\n copied: \"Copied\",\n navigate: ({ platform }: { platform: GeoNavigationPlatform }): string =>\n platform === \"ios\" ? \"Open in Apple Maps\" : platform === \"android\" ? \"Open in maps app\" : \"Open in OpenStreetMap\",\n loading: \"Loading places …\",\n empty: \"No places on this map.\",\n enlarge: \"Enlarge list\",\n shrink: \"Shrink list\",\n noLocation: \"Location denied · allow it in your browser\",\n locationFailed: \"Location unavailable\",\n },\n de: {\n open: \"Karte öffnen\",\n close: \"Schließen\",\n more: \"Weitere Aktionen\",\n places: \"Orte\",\n copyAddress: \"Adresse kopieren\",\n copied: \"Kopiert\",\n navigate: ({ platform }) =>\n platform === \"ios\" ? \"In Apple Karten öffnen\" : platform === \"android\" ? \"In Navi-App öffnen\" : \"In OpenStreetMap öffnen\",\n loading: \"Orte werden geladen …\",\n empty: \"Keine Orte auf dieser Karte.\",\n enlarge: \"Liste vergrößern\",\n shrink: \"Liste verkleinern\",\n noLocation: \"Standort nicht erlaubt · im Browser freigeben\",\n locationFailed: \"Standort nicht verfügbar\",\n },\n },\n});\nexport const useMapDialogMessages = () => {\n const locale = useLocale();\n return () => mapDialogMessages.resolve([locale()]).t;\n};\nexport const checkMapDialogMessages = () => mapDialogMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAG1C,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC;EACpC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,IAAI,EAAE,UAAU;MAChB,KAAK,EAAE,OAAO;MACd,IAAI,EAAE,cAAc;MACpB,MAAM,EAAE,QAAQ;MAChB,WAAW,EAAE,cAAc;MAC3B,MAAM,EAAE,QAAQ;MAChB,QAAQ,EAAE,CAAC;QAAE;MAA8C,CAAC,KAC1D,QAAQ,KAAK,KAAK,GAAG,oBAAoB,GAAG,QAAQ,KAAK,SAAS,GAAG,kBAAkB,GAAG,uBAAuB;MACnH,OAAO,EAAE,kBAAkB;MAC3B,KAAK,EAAE,wBAAwB;MAC/B,OAAO,EAAE,cAAc;MACvB,MAAM,EAAE,aAAa;MACrB,UAAU,EAAE,4CAA4C;MACxD,cAAc,EAAE;IAClB,CAAC;IACD,EAAE,EAAE;MACF,IAAI,EAAE,cAAc;MACpB,KAAK,EAAE,WAAW;MAClB,IAAI,EAAE,kBAAkB;MACxB,MAAM,EAAE,MAAM;MACd,WAAW,EAAE,kBAAkB;MAC/B,MAAM,EAAE,SAAS;MACjB,QAAQ,EAAE,CAAC;QAAE;MAAS,CAAC,KACrB,QAAQ,KAAK,KAAK,GAAG,wBAAwB,GAAG,QAAQ,KAAK,SAAS,GAAG,oBAAoB,GAAG,yBAAyB;MAC3H,OAAO,EAAE,uBAAuB;MAChC,KAAK,EAAE,8BAA8B;MACrC,OAAO,EAAE,kBAAkB;MAC3B,MAAM,EAAE,mBAAmB;MAC3B,UAAU,EAAE,+CAA+C;MAC3D,cAAc,EAAE;IAClB;EACF;AACF,CAAC,CAAC;AACF,OAAO,MAAM,oBAAoB,GAAG,MAAM;EACxC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AACD,OAAO,MAAM,sBAAsB,GAAG,MAAM,iBAAiB,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Phones open their own maps app; everything else gets OpenStreetMap. */
|
|
2
|
+
export const geoNavigationPlatform = userAgent => /android/i.test(userAgent) ? "android" : /iphone|ipad|ipod/i.test(userAgent) ? "ios" : "desktop";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A link into a navigation app. There is no live navigation; the link leaves the page only on click and carries
|
|
6
|
+
* just the destination and an optional name. Without a point it navigates to the address text.
|
|
7
|
+
*/
|
|
8
|
+
export const geoNavigationHref = (target, platform) => {
|
|
9
|
+
const point = target.point ? `${target.point.lat},${target.point.lon}` : null;
|
|
10
|
+
const text = encodeURIComponent(target.text);
|
|
11
|
+
if (platform === "android") return point ? `geo:0,0?q=${point}${target.name ? `(${encodeURIComponent(target.name)})` : ""}` : `geo:0,0?q=${text}`;
|
|
12
|
+
if (platform === "ios") return `https://maps.apple.com/?daddr=${point ? encodeURIComponent(point) : text}`;
|
|
13
|
+
return point ? `https://www.openstreetmap.org/directions?route=%3B${encodeURIComponent(point)}` : `https://www.openstreetmap.org/search?query=${text}`;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=map-navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/map-navigation.ts"],"sourcesContent":["import type { MapViewPoint } from \"./map-view-types\";\n\nexport type GeoNavigationPlatform = \"android\" | \"ios\" | \"desktop\";\n\n/** Phones open their own maps app; everything else gets OpenStreetMap. */\nexport const geoNavigationPlatform = (userAgent: string): GeoNavigationPlatform =>\n /android/i.test(userAgent) ? \"android\" : /iphone|ipad|ipod/i.test(userAgent) ? \"ios\" : \"desktop\";\n\n/**\n * A link into a navigation app. There is no live navigation; the link leaves the page only on click and carries\n * just the destination and an optional name. Without a point it navigates to the address text.\n */\nexport const geoNavigationHref = (\n target: { point?: MapViewPoint | null; text: string; name?: string },\n platform: GeoNavigationPlatform,\n): string => {\n const point = target.point ? `${target.point.lat},${target.point.lon}` : null;\n const text = encodeURIComponent(target.text);\n if (platform === \"android\")\n return point ? `geo:0,0?q=${point}${target.name ? `(${encodeURIComponent(target.name)})` : \"\"}` : `geo:0,0?q=${text}`;\n if (platform === \"ios\") return `https://maps.apple.com/?daddr=${point ? encodeURIComponent(point) : text}`;\n return point\n ? `https://www.openstreetmap.org/directions?route=%3B${encodeURIComponent(point)}`\n : `https://www.openstreetmap.org/search?query=${text}`;\n};\n"],"mappings":"AAIA;AACA,OAAO,MAAM,qBAAqB,GAAI,SAAiB,IACrD,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,GAAG,SAAS;;AAElG;AACA;AACA;AACA;AACA,OAAO,MAAM,iBAAiB,GAAG,CAC/B,MAAoE,EACpE,QAA+B,KACpB;EACX,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI;EAC7E,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC;EAC5C,IAAI,QAAQ,KAAK,SAAS,EACxB,OAAO,KAAK,GAAG,aAAa,KAAK,GAAG,MAAM,CAAC,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,EAAE,GAAG,aAAa,IAAI,EAAE;EACvH,IAAI,QAAQ,KAAK,KAAK,EAAE,OAAO,iCAAiC,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE;EAC1G,OAAO,KAAK,GACR,qDAAqD,kBAAkB,CAAC,KAAK,CAAC,EAAE,GAChF,8CAA8C,IAAI,EAAE;AAC1D,CAAC","ignoreList":[]}
|
|
@@ -14,9 +14,11 @@ const mapViewMessages = i18n.define({
|
|
|
14
14
|
locate: "Show my location",
|
|
15
15
|
loading: "Loading map …",
|
|
16
16
|
error: "Map image did not load. The pins stay.",
|
|
17
|
+
errorShort: "Map image did not load",
|
|
17
18
|
retry: "Try again",
|
|
18
19
|
reload: "Reload page",
|
|
19
20
|
noWebgl: "This browser cannot show the map image. The pins stay.",
|
|
21
|
+
noWebglShort: "No map image in this browser",
|
|
20
22
|
ownLocation: "Your location",
|
|
21
23
|
canvasTitle: "Map. Arrow keys move it.",
|
|
22
24
|
gestureWindows: "Use Ctrl + scroll to zoom the map",
|
|
@@ -34,9 +36,11 @@ const mapViewMessages = i18n.define({
|
|
|
34
36
|
locate: "Ich bin hier",
|
|
35
37
|
loading: "Karte lädt …",
|
|
36
38
|
error: "Kartenbild nicht geladen, die Pins bleiben.",
|
|
39
|
+
errorShort: "Kartenbild nicht geladen",
|
|
37
40
|
retry: "Erneut versuchen",
|
|
38
41
|
reload: "Seite neu laden",
|
|
39
42
|
noWebgl: "Dieser Browser kann das Kartenbild nicht zeigen, die Pins bleiben.",
|
|
43
|
+
noWebglShort: "Kein Kartenbild in diesem Browser",
|
|
40
44
|
ownLocation: "Dein Standort",
|
|
41
45
|
canvasTitle: "Karte. Pfeiltasten verschieben sie.",
|
|
42
46
|
gestureWindows: "Strg + Scrollen zoomt die Karte",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/map-view-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst mapViewMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n mapLabel: \"Map\",\n summary: ({ count }: { count: number }) => `Map with ${count} ${count === 1 ? \"place\" : \"places\"}`,\n pins: \"Places on the map\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n locate: \"Show my location\",\n loading: \"Loading map …\",\n error: \"Map image did not load. The pins stay.\",\n retry: \"Try again\",\n reload: \"Reload page\",\n noWebgl: \"This browser cannot show the map image. The pins stay.\",\n ownLocation: \"Your location\",\n canvasTitle: \"Map. Arrow keys move it.\",\n gestureWindows: \"Use Ctrl + scroll to zoom the map\",\n gestureMac: \"Use ⌘ + scroll to zoom the map\",\n gestureMobile: \"Use two fingers to move the map\",\n },\n de: {\n mapLabel: \"Karte\",\n summary: ({ count }) => `Karte mit ${count} ${count === 1 ? \"Ort\" : \"Orten\"}`,\n pins: \"Orte auf der Karte\",\n zoomIn: \"Vergrößern\",\n zoomOut: \"Verkleinern\",\n locate: \"Ich bin hier\",\n loading: \"Karte lädt …\",\n error: \"Kartenbild nicht geladen, die Pins bleiben.\",\n retry: \"Erneut versuchen\",\n reload: \"Seite neu laden\",\n noWebgl: \"Dieser Browser kann das Kartenbild nicht zeigen, die Pins bleiben.\",\n ownLocation: \"Dein Standort\",\n canvasTitle: \"Karte. Pfeiltasten verschieben sie.\",\n gestureWindows: \"Strg + Scrollen zoomt die Karte\",\n gestureMac: \"⌘ + Scrollen zoomt die Karte\",\n gestureMobile: \"Mit zwei Fingern verschieben\",\n },\n },\n});\nexport const useMapViewMessages = () => {\n const locale = useLocale();\n return () => mapViewMessages.resolve([locale()]).t;\n};\nexport const checkMapViewMessages = () => mapViewMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAE1C,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;EAClC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,QAAQ,EAAE,KAAK;MACf,OAAO,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAK,YAAY,KAAK,IAAI,KAAK,KAAK,CAAC,GAAG,OAAO,GAAG,QAAQ,EAAE;MAClG,IAAI,EAAE,mBAAmB;MACzB,MAAM,EAAE,SAAS;MACjB,OAAO,EAAE,UAAU;MACnB,MAAM,EAAE,kBAAkB;MAC1B,OAAO,EAAE,eAAe;MACxB,KAAK,EAAE,wCAAwC;MAC/C,KAAK,EAAE,WAAW;MAClB,MAAM,EAAE,aAAa;MACrB,OAAO,EAAE,wDAAwD;MACjE,WAAW,EAAE,eAAe;MAC5B,WAAW,EAAE,0BAA0B;MACvC,cAAc,EAAE,mCAAmC;MACnD,UAAU,EAAE,gCAAgC;MAC5C,aAAa,EAAE;IACjB,CAAC;IACD,EAAE,EAAE;MACF,QAAQ,EAAE,OAAO;MACjB,OAAO,EAAE,CAAC;QAAE;MAAM,CAAC,KAAK,aAAa,KAAK,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,OAAO,EAAE;MAC7E,IAAI,EAAE,oBAAoB;MAC1B,MAAM,EAAE,YAAY;MACpB,OAAO,EAAE,aAAa;MACtB,MAAM,EAAE,cAAc;MACtB,OAAO,EAAE,cAAc;MACvB,KAAK,EAAE,6CAA6C;MACpD,KAAK,EAAE,kBAAkB;MACzB,MAAM,EAAE,iBAAiB;MACzB,OAAO,EAAE,oEAAoE;MAC7E,WAAW,EAAE,eAAe;MAC5B,WAAW,EAAE,qCAAqC;MAClD,cAAc,EAAE,iCAAiC;MACjD,UAAU,EAAE,8BAA8B;MAC1C,aAAa,EAAE;IACjB;EACF;AACF,CAAC,CAAC;AACF,OAAO,MAAM,kBAAkB,GAAG,MAAM;EACtC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AACD,OAAO,MAAM,oBAAoB,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/map-view-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst mapViewMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n mapLabel: \"Map\",\n summary: ({ count }: { count: number }) => `Map with ${count} ${count === 1 ? \"place\" : \"places\"}`,\n pins: \"Places on the map\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n locate: \"Show my location\",\n loading: \"Loading map …\",\n error: \"Map image did not load. The pins stay.\",\n errorShort: \"Map image did not load\",\n retry: \"Try again\",\n reload: \"Reload page\",\n noWebgl: \"This browser cannot show the map image. The pins stay.\",\n noWebglShort: \"No map image in this browser\",\n ownLocation: \"Your location\",\n canvasTitle: \"Map. Arrow keys move it.\",\n gestureWindows: \"Use Ctrl + scroll to zoom the map\",\n gestureMac: \"Use ⌘ + scroll to zoom the map\",\n gestureMobile: \"Use two fingers to move the map\",\n },\n de: {\n mapLabel: \"Karte\",\n summary: ({ count }) => `Karte mit ${count} ${count === 1 ? \"Ort\" : \"Orten\"}`,\n pins: \"Orte auf der Karte\",\n zoomIn: \"Vergrößern\",\n zoomOut: \"Verkleinern\",\n locate: \"Ich bin hier\",\n loading: \"Karte lädt …\",\n error: \"Kartenbild nicht geladen, die Pins bleiben.\",\n errorShort: \"Kartenbild nicht geladen\",\n retry: \"Erneut versuchen\",\n reload: \"Seite neu laden\",\n noWebgl: \"Dieser Browser kann das Kartenbild nicht zeigen, die Pins bleiben.\",\n noWebglShort: \"Kein Kartenbild in diesem Browser\",\n ownLocation: \"Dein Standort\",\n canvasTitle: \"Karte. Pfeiltasten verschieben sie.\",\n gestureWindows: \"Strg + Scrollen zoomt die Karte\",\n gestureMac: \"⌘ + Scrollen zoomt die Karte\",\n gestureMobile: \"Mit zwei Fingern verschieben\",\n },\n },\n});\nexport const useMapViewMessages = () => {\n const locale = useLocale();\n return () => mapViewMessages.resolve([locale()]).t;\n};\nexport const checkMapViewMessages = () => mapViewMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAE1C,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;EAClC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,QAAQ,EAAE,KAAK;MACf,OAAO,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAK,YAAY,KAAK,IAAI,KAAK,KAAK,CAAC,GAAG,OAAO,GAAG,QAAQ,EAAE;MAClG,IAAI,EAAE,mBAAmB;MACzB,MAAM,EAAE,SAAS;MACjB,OAAO,EAAE,UAAU;MACnB,MAAM,EAAE,kBAAkB;MAC1B,OAAO,EAAE,eAAe;MACxB,KAAK,EAAE,wCAAwC;MAC/C,UAAU,EAAE,wBAAwB;MACpC,KAAK,EAAE,WAAW;MAClB,MAAM,EAAE,aAAa;MACrB,OAAO,EAAE,wDAAwD;MACjE,YAAY,EAAE,8BAA8B;MAC5C,WAAW,EAAE,eAAe;MAC5B,WAAW,EAAE,0BAA0B;MACvC,cAAc,EAAE,mCAAmC;MACnD,UAAU,EAAE,gCAAgC;MAC5C,aAAa,EAAE;IACjB,CAAC;IACD,EAAE,EAAE;MACF,QAAQ,EAAE,OAAO;MACjB,OAAO,EAAE,CAAC;QAAE;MAAM,CAAC,KAAK,aAAa,KAAK,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,OAAO,EAAE;MAC7E,IAAI,EAAE,oBAAoB;MAC1B,MAAM,EAAE,YAAY;MACpB,OAAO,EAAE,aAAa;MACtB,MAAM,EAAE,cAAc;MACtB,OAAO,EAAE,cAAc;MACvB,KAAK,EAAE,6CAA6C;MACpD,UAAU,EAAE,0BAA0B;MACtC,KAAK,EAAE,kBAAkB;MACzB,MAAM,EAAE,iBAAiB;MACzB,OAAO,EAAE,oEAAoE;MAC7E,YAAY,EAAE,mCAAmC;MACjD,WAAW,EAAE,eAAe;MAC5B,WAAW,EAAE,qCAAqC;MAClD,cAAc,EAAE,iCAAiC;MACjD,UAAU,EAAE,8BAA8B;MAC1C,aAAa,EAAE;IACjB;EACF;AACF,CAAC,CAAC;AACF,OAAO,MAAM,kBAAkB,GAAG,MAAM;EACtC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AACD,OAAO,MAAM,oBAAoB,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/map-view-types.ts"],"sourcesContent":["import type { StyleSpecification } from \"maplibre-gl\";\nimport type { JSX } from \"solid-js\";\n\nexport type MapViewPoint = { lat: number; lon: number };\nexport type MapViewTone = \"accent\" | \"second\" | \"neutral\" | \"warning\";\nexport type MapViewMarker = {\n id: string;\n point: MapViewPoint;\n /** A number, a single letter, or \"+\". Omit for a drop pin. */\n mark?: number | string;\n label: string;\n tone?: MapViewTone;\n selected?: boolean;\n};\nexport type MapViewLineTone = \"accent\" | \"muted\" | \"preview\" | \"previous\";\nexport type MapViewLine = { id: string; tone?: MapViewLineTone } & ({ polyline6: string } | { points: MapViewPoint[] });\nexport type MapViewArea = { id: string; polygon: MapViewPoint[]; tone?: MapViewTone };\nexport type MapViewOwnLocation = { point: MapViewPoint; accuracyMeters?: number };\nexport type MapViewStyle = string | StyleSpecification;\nexport type MapViewStyleSource = MapViewStyle | { light: MapViewStyle; dark: MapViewStyle };\nexport type MapViewFit = \"all\" | \"markers\";\nexport type MapViewFrameProps = {\n markers?: MapViewMarker[];\n lines?: MapViewLine[];\n areas?: MapViewArea[];\n ownLocation?: MapViewOwnLocation;\n height: number;\n padding?: number;\n fit?: MapViewFit;\n selectedId?: string;\n attribution?: JSX.Element;\n class?: string;\n};\nexport type MapViewSnapshot = { data: Blob; width: number; height: number };\nexport type MapViewSnapshotOptions = { signal?: AbortSignal; timeoutMs?: number };\nexport type MapViewHandle = {\n /** Capture the current complete view; never loads, pans, refits, or retries provider resources. */\n snapshot: (options?: MapViewSnapshotOptions) => Promise<MapViewSnapshot>;\n};\nexport type MapViewProps = Omit<MapViewFrameProps, \"attribution\"> & {\n style: MapViewStyleSource;\n /** Browser-only handle; remains safely callable after disposal (rejects disposed). */\n ref?: (handle: MapViewHandle) => void;\n attribution: JSX.Element;\n onSelect?: (id: string) => void;\n infoTile?: (marker: MapViewMarker) => JSX.Element;\n notice?: JSX.Element;\n empty?: JSX.Element;\n onLocate?: () => void;\n /** Observe rendering and resource failures without receiving provider responses or URLs. */\n onStateChange?: (state: \"static\" | \"loading\" | \"ready\" | \"error\" | \"no-webgl\" | \"empty\") => void;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/map-view-types.ts"],"sourcesContent":["import type { StyleSpecification } from \"maplibre-gl\";\nimport type { JSX } from \"solid-js\";\n\nexport type MapViewPoint = { lat: number; lon: number };\nexport type MapViewTone = \"accent\" | \"second\" | \"neutral\" | \"warning\";\nexport type MapViewMarker = {\n id: string;\n point: MapViewPoint;\n /** A number, a single letter, or \"+\". Omit for a drop pin. */\n mark?: number | string;\n label: string;\n tone?: MapViewTone;\n selected?: boolean;\n};\nexport type MapViewLineTone = \"accent\" | \"muted\" | \"preview\" | \"previous\";\nexport type MapViewLine = { id: string; tone?: MapViewLineTone } & ({ polyline6: string } | { points: MapViewPoint[] });\nexport type MapViewArea = { id: string; polygon: MapViewPoint[]; tone?: MapViewTone };\nexport type MapViewOwnLocation = { point: MapViewPoint; accuracyMeters?: number };\nexport type MapViewStyle = string | StyleSpecification;\nexport type MapViewStyleSource = MapViewStyle | { light: MapViewStyle; dark: MapViewStyle };\nexport type MapViewFit = \"all\" | \"markers\";\nexport type MapViewFrameProps = {\n markers?: MapViewMarker[];\n lines?: MapViewLine[];\n areas?: MapViewArea[];\n ownLocation?: MapViewOwnLocation;\n height: number;\n padding?: number;\n fit?: MapViewFit;\n selectedId?: string;\n attribution?: JSX.Element;\n class?: string;\n};\nexport type MapViewSnapshot = { data: Blob; width: number; height: number };\nexport type MapViewSnapshotOptions = { signal?: AbortSignal; timeoutMs?: number };\nexport type MapViewHandle = {\n /** Capture the current complete view; never loads, pans, refits, or retries provider resources. */\n snapshot: (options?: MapViewSnapshotOptions) => Promise<MapViewSnapshot>;\n};\nexport type MapViewProps = Omit<MapViewFrameProps, \"attribution\"> & {\n style: MapViewStyleSource;\n /** Browser-only handle; remains safely callable after disposal (rejects disposed). */\n ref?: (handle: MapViewHandle) => void;\n attribution: JSX.Element;\n /**\n * A calm picture: the map image loads, but there are no controls, gestures, pin selection, or info tile, and pins\n * are labelled images. MapTile uses it; its own button opens the full map.\n */\n still?: boolean;\n onSelect?: (id: string) => void;\n infoTile?: (marker: MapViewMarker) => JSX.Element;\n notice?: JSX.Element;\n empty?: JSX.Element;\n onLocate?: () => void;\n /** Observe rendering and resource failures without receiving provider responses or URLs. */\n onStateChange?: (state: \"static\" | \"loading\" | \"ready\" | \"error\" | \"no-webgl\" | \"empty\") => void;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -30,7 +30,14 @@ const pdfMessages = i18n.define({
|
|
|
30
30
|
value
|
|
31
31
|
}) => `${value}%`,
|
|
32
32
|
pdfFitWidthLabel: "Fit to width",
|
|
33
|
-
pdfFitPageLabel: "Show the whole page"
|
|
33
|
+
pdfFitPageLabel: "Show the whole page",
|
|
34
|
+
pdfThumbnailPage: ({
|
|
35
|
+
number
|
|
36
|
+
}) => `Page ${number}`,
|
|
37
|
+
pdfThumbnailMore: ({
|
|
38
|
+
count
|
|
39
|
+
}) => `${count} more ${count === 1 ? "page" : "pages"}`,
|
|
40
|
+
pdfThumbnailsFailed: "The pages could not be shown."
|
|
34
41
|
},
|
|
35
42
|
de: {
|
|
36
43
|
pdfOpenInTab: "In neuem Tab öffnen",
|
|
@@ -59,7 +66,14 @@ const pdfMessages = i18n.define({
|
|
|
59
66
|
value
|
|
60
67
|
}) => `${value} %`,
|
|
61
68
|
pdfFitWidthLabel: "An die Breite anpassen",
|
|
62
|
-
pdfFitPageLabel: "Ganze Seite zeigen"
|
|
69
|
+
pdfFitPageLabel: "Ganze Seite zeigen",
|
|
70
|
+
pdfThumbnailPage: ({
|
|
71
|
+
number
|
|
72
|
+
}) => `Seite ${number}`,
|
|
73
|
+
pdfThumbnailMore: ({
|
|
74
|
+
count
|
|
75
|
+
}) => `${count} weitere ${count === 1 ? "Seite" : "Seiten"}`,
|
|
76
|
+
pdfThumbnailsFailed: "Die Seiten können nicht gezeigt werden."
|
|
63
77
|
}
|
|
64
78
|
}
|
|
65
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/pdf-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst pdfMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n pdfOpenInTab: \"Open in new tab\",\n pdfPreview: \"PDF preview\",\n pdfPreviewHttpError: ({ status }: { status: number }) => `PDF preview failed with HTTP ${status}`,\n pdfPreviewTabBlocked: \"The browser blocked the new tab. Allow pop-ups and try again.\",\n pdfPreviewNoViewer: \"This PDF cannot be shown here\",\n pdfPreviewNoViewerDescription: \"Open it in a new tab or download it to view it.\",\n pdfPreviewRendering: \"Rendering PDF preview…\",\n previewPdf: \"Preview PDF\",\n renderPdfPreview: \"Render a PDF preview to see the final output.\",\n pdfPage: ({ number, total }: { number: number; total: number }) => `Page ${number} of ${total}`,\n pdfPageShort: ({ number, total }: { number: number; total: number }) => `${number} / ${total}`,\n pdfZoom: \"Zoom\",\n pdfZoomOut: \"Zoom out\",\n pdfZoomIn: \"Zoom in\",\n pdfZoomPercent: ({ value }: { value: number }) => `${value}%`,\n pdfFitWidthLabel: \"Fit to width\",\n pdfFitPageLabel: \"Show the whole page\",\n },\n de: {\n pdfOpenInTab: \"In neuem Tab öffnen\",\n pdfPreview: \"PDF-Vorschau\",\n pdfPreviewHttpError: ({ status }) => `PDF-Vorschau ist mit HTTP ${status} fehlgeschlagen`,\n pdfPreviewTabBlocked: \"Der Browser hat den neuen Tab blockiert. Erlaube Pop-ups und versuche es erneut.\",\n pdfPreviewNoViewer: \"Dieses PDF kann hier nicht angezeigt werden\",\n pdfPreviewNoViewerDescription: \"Öffne es in einem neuen Tab oder lade es herunter, um es anzusehen.\",\n pdfPreviewRendering: \"PDF-Vorschau wird erstellt…\",\n previewPdf: \"PDF anzeigen\",\n renderPdfPreview: \"Erzeuge eine PDF-Vorschau, um das Endergebnis zu sehen.\",\n pdfPage: ({ number, total }) => `Seite ${number} von ${total}`,\n pdfPageShort: ({ number, total }) => `${number} / ${total}`,\n pdfZoom: \"Zoom\",\n pdfZoomOut: \"Verkleinern\",\n pdfZoomIn: \"Vergrößern\",\n pdfZoomPercent: ({ value }) => `${value} %`,\n pdfFitWidthLabel: \"An die Breite anpassen\",\n pdfFitPageLabel: \"Ganze Seite zeigen\",\n },\n },\n});\n\nexport type PdfMessages = ReturnType<(typeof pdfMessages)[\"resolve\"]>[\"t\"];\n\n/** Resolved from the inherited render locale. */\nexport const usePdfMessages = (): (() => PdfMessages) => {\n const locale = useLocale();\n return () => pdfMessages.resolve([locale()]).t;\n};\n\n/** Imperative UI inherits the document locale when no locale is supplied. */\nexport const resolvePdfMessages = (locale?: string): PdfMessages =>\n pdfMessages.resolve([locale ?? (typeof document === \"undefined\" ? pdfMessages.baseLocale : document.documentElement.lang)]).t;\n\nexport const checkPdfMessages = () => pdfMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAE1C,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC;EAC9B,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,YAAY,EAAE,iBAAiB;MAC/B,UAAU,EAAE,aAAa;MACzB,mBAAmB,EAAE,CAAC;QAAE;MAA2B,CAAC,KAAK,gCAAgC,MAAM,EAAE;MACjG,oBAAoB,EAAE,+DAA+D;MACrF,kBAAkB,EAAE,+BAA+B;MACnD,6BAA6B,EAAE,iDAAiD;MAChF,mBAAmB,EAAE,wBAAwB;MAC7C,UAAU,EAAE,aAAa;MACzB,gBAAgB,EAAE,+CAA+C;MACjE,OAAO,EAAE,CAAC;QAAE,MAAM;QAAE;MAAyC,CAAC,KAAK,QAAQ,MAAM,OAAO,KAAK,EAAE;MAC/F,YAAY,EAAE,CAAC;QAAE,MAAM;QAAE;MAAyC,CAAC,KAAK,GAAG,MAAM,MAAM,KAAK,EAAE;MAC9F,OAAO,EAAE,MAAM;MACf,UAAU,EAAE,UAAU;MACtB,SAAS,EAAE,SAAS;MACpB,cAAc,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAK,GAAG,KAAK,GAAG;MAC7D,gBAAgB,EAAE,cAAc;MAChC,eAAe,EAAE;
|
|
1
|
+
{"version":3,"names":[],"sources":["content/pdf-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst pdfMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n pdfOpenInTab: \"Open in new tab\",\n pdfPreview: \"PDF preview\",\n pdfPreviewHttpError: ({ status }: { status: number }) => `PDF preview failed with HTTP ${status}`,\n pdfPreviewTabBlocked: \"The browser blocked the new tab. Allow pop-ups and try again.\",\n pdfPreviewNoViewer: \"This PDF cannot be shown here\",\n pdfPreviewNoViewerDescription: \"Open it in a new tab or download it to view it.\",\n pdfPreviewRendering: \"Rendering PDF preview…\",\n previewPdf: \"Preview PDF\",\n renderPdfPreview: \"Render a PDF preview to see the final output.\",\n pdfPage: ({ number, total }: { number: number; total: number }) => `Page ${number} of ${total}`,\n pdfPageShort: ({ number, total }: { number: number; total: number }) => `${number} / ${total}`,\n pdfZoom: \"Zoom\",\n pdfZoomOut: \"Zoom out\",\n pdfZoomIn: \"Zoom in\",\n pdfZoomPercent: ({ value }: { value: number }) => `${value}%`,\n pdfFitWidthLabel: \"Fit to width\",\n pdfFitPageLabel: \"Show the whole page\",\n pdfThumbnailPage: ({ number }: { number: number }) => `Page ${number}`,\n pdfThumbnailMore: ({ count }: { count: number }) => `${count} more ${count === 1 ? \"page\" : \"pages\"}`,\n pdfThumbnailsFailed: \"The pages could not be shown.\",\n },\n de: {\n pdfOpenInTab: \"In neuem Tab öffnen\",\n pdfPreview: \"PDF-Vorschau\",\n pdfPreviewHttpError: ({ status }) => `PDF-Vorschau ist mit HTTP ${status} fehlgeschlagen`,\n pdfPreviewTabBlocked: \"Der Browser hat den neuen Tab blockiert. Erlaube Pop-ups und versuche es erneut.\",\n pdfPreviewNoViewer: \"Dieses PDF kann hier nicht angezeigt werden\",\n pdfPreviewNoViewerDescription: \"Öffne es in einem neuen Tab oder lade es herunter, um es anzusehen.\",\n pdfPreviewRendering: \"PDF-Vorschau wird erstellt…\",\n previewPdf: \"PDF anzeigen\",\n renderPdfPreview: \"Erzeuge eine PDF-Vorschau, um das Endergebnis zu sehen.\",\n pdfPage: ({ number, total }) => `Seite ${number} von ${total}`,\n pdfPageShort: ({ number, total }) => `${number} / ${total}`,\n pdfZoom: \"Zoom\",\n pdfZoomOut: \"Verkleinern\",\n pdfZoomIn: \"Vergrößern\",\n pdfZoomPercent: ({ value }) => `${value} %`,\n pdfFitWidthLabel: \"An die Breite anpassen\",\n pdfFitPageLabel: \"Ganze Seite zeigen\",\n pdfThumbnailPage: ({ number }) => `Seite ${number}`,\n pdfThumbnailMore: ({ count }) => `${count} weitere ${count === 1 ? \"Seite\" : \"Seiten\"}`,\n pdfThumbnailsFailed: \"Die Seiten können nicht gezeigt werden.\",\n },\n },\n});\n\nexport type PdfMessages = ReturnType<(typeof pdfMessages)[\"resolve\"]>[\"t\"];\n\n/** Resolved from the inherited render locale. */\nexport const usePdfMessages = (): (() => PdfMessages) => {\n const locale = useLocale();\n return () => pdfMessages.resolve([locale()]).t;\n};\n\n/** Imperative UI inherits the document locale when no locale is supplied. */\nexport const resolvePdfMessages = (locale?: string): PdfMessages =>\n pdfMessages.resolve([locale ?? (typeof document === \"undefined\" ? pdfMessages.baseLocale : document.documentElement.lang)]).t;\n\nexport const checkPdfMessages = () => pdfMessages.check();\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -84,6 +84,8 @@ export const createDialogCore = () => {
|
|
|
84
84
|
/** How often islands were disposed, so a dialog that waits to open notices that a content swap happened meanwhile. */
|
|
85
85
|
let disposals = 0;
|
|
86
86
|
const ownMarker = marker => typeof marker === "number" && issued.has(marker);
|
|
87
|
+
/** The address of each own entry that a dialog named with `historyUrl`. */
|
|
88
|
+
const ownUrls = new Map();
|
|
87
89
|
let seen;
|
|
88
90
|
let traversalFrom;
|
|
89
91
|
let syntheticFrom;
|
|
@@ -154,7 +156,10 @@ export const createDialogCore = () => {
|
|
|
154
156
|
resolveReturning = undefined;
|
|
155
157
|
try {
|
|
156
158
|
const marker = historyMarker();
|
|
157
|
-
|
|
159
|
+
// A dialog's own address (`historyUrl`) changes only between its entry and the page: still a dialog-only traversal.
|
|
160
|
+
const ownAddress = (entry, href) => ownMarker(entry) && ownUrls.get(entry) === href;
|
|
161
|
+
const sameAddress = from && (from.href === location.href || ownAddress(from.marker, from.href) || ownAddress(marker, location.href));
|
|
162
|
+
if (from && sameAddress && from.marker !== marker && (ownMarker(from.marker) || ownMarker(marker))) {
|
|
158
163
|
event.stopImmediatePropagation();
|
|
159
164
|
}
|
|
160
165
|
// Own entries are ordered by id. A retired entry reached by Forward stays tracked, so closing the dialogs
|
|
@@ -243,21 +248,28 @@ export const createDialogCore = () => {
|
|
|
243
248
|
// Chromium runs a window's popstate listeners in the order they were added, capture or not. The shared core is
|
|
244
249
|
// created before islands mount and add their navigation listeners, so it listens from the start.
|
|
245
250
|
if (typeof window !== "undefined") listen();
|
|
246
|
-
const pushHistory = entry => {
|
|
251
|
+
const pushHistory = (entry, url) => {
|
|
247
252
|
listen();
|
|
248
253
|
const previous = historyRecord();
|
|
249
254
|
// A reload or Forward never brings back a dialog or its sensitive transient state.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
history.replaceState(previous, "");
|
|
253
|
-
}
|
|
255
|
+
const stale = historyIds.length === 0 && previous[HISTORY_MARKER] !== undefined;
|
|
256
|
+
if (stale) delete previous[HISTORY_MARKER];
|
|
254
257
|
entry.historyId = ++nextHistoryId;
|
|
255
258
|
issued.add(entry.historyId);
|
|
256
259
|
historyIds.push(entry.historyId);
|
|
257
|
-
|
|
260
|
+
// Only a dialog that names itself in the URL resumes the entry a reload left behind; the page entry stays below.
|
|
261
|
+
const resume = stale && url !== undefined && new URL(url, location.href).href === location.href;
|
|
262
|
+
if (resume) history.replaceState({
|
|
258
263
|
...previous,
|
|
259
264
|
[HISTORY_MARKER]: entry.historyId
|
|
260
|
-
}, "");
|
|
265
|
+
}, "");else {
|
|
266
|
+
if (stale) history.replaceState(previous, "");
|
|
267
|
+
history.pushState({
|
|
268
|
+
...previous,
|
|
269
|
+
[HISTORY_MARKER]: entry.historyId
|
|
270
|
+
}, "", url);
|
|
271
|
+
}
|
|
272
|
+
if (url !== undefined) ownUrls.set(entry.historyId, location.href);
|
|
261
273
|
seen = historySnapshot();
|
|
262
274
|
};
|
|
263
275
|
|
|
@@ -523,7 +535,7 @@ export const createDialogCore = () => {
|
|
|
523
535
|
if (state.stack[state.stack.length - 1] !== entry) return;
|
|
524
536
|
popTop(result);
|
|
525
537
|
};
|
|
526
|
-
if (options.history) pushHistory(entry);
|
|
538
|
+
if (options.history) pushHistory(entry, options.historyUrl);
|
|
527
539
|
state.stack.push(entry);
|
|
528
540
|
try {
|
|
529
541
|
entry.dispose = render(() => createComponent(RenderErrorBoundary, {
|