@k2b/ui 0.59.0 → 0.61.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/CommandList.js +67 -74
- package/dist/browser/actions/CommandList.js.map +1 -1
- package/dist/browser/actions/ContextMenu.js +11 -2
- package/dist/browser/actions/ContextMenu.js.map +1 -1
- package/dist/browser/actions/Dropdown.js +187 -169
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/GestureMenu.js +18 -7
- package/dist/browser/actions/GestureMenu.js.map +1 -1
- package/dist/browser/actions/SelectionAction.js +232 -0
- package/dist/browser/actions/SelectionAction.js.map +1 -0
- package/dist/browser/actions/command-items.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/menu-sheet-open.js +19 -0
- package/dist/browser/actions/menu-sheet-open.js.map +1 -0
- package/dist/browser/charts/core/line-details.js +2 -2
- package/dist/browser/charts/core/line-details.js.map +1 -1
- package/dist/browser/charts/core/render.js +2 -1
- package/dist/browser/charts/core/render.js.map +1 -1
- package/dist/browser/chat/ChatActivityWords.js +142 -0
- package/dist/browser/chat/ChatActivityWords.js.map +1 -0
- package/dist/browser/chat/ChatComposer.js +540 -515
- package/dist/browser/chat/ChatComposer.js.map +1 -1
- package/dist/browser/chat/ChatComposerQuotes.js +56 -0
- package/dist/browser/chat/ChatComposerQuotes.js.map +1 -0
- package/dist/browser/chat/ChatPrimitives.js +440 -389
- package/dist/browser/chat/ChatPrimitives.js.map +1 -1
- package/dist/browser/chat/ChatTasks.js +78 -73
- package/dist/browser/chat/ChatTasks.js.map +1 -1
- package/dist/browser/chat/ChatTimeline.js +3 -0
- package/dist/browser/chat/ChatTimeline.js.map +1 -1
- package/dist/browser/chat/index.js +4 -1
- package/dist/browser/chat/index.js.map +1 -1
- package/dist/browser/content/ActivityList.js +789 -0
- package/dist/browser/content/ActivityList.js.map +1 -0
- package/dist/browser/content/DataTableTools.js +3 -0
- package/dist/browser/content/DataTableTools.js.map +1 -1
- package/dist/browser/content/Lightbox.js +33 -11
- package/dist/browser/content/Lightbox.js.map +1 -1
- package/dist/browser/content/MessageQuote.js +57 -0
- package/dist/browser/content/MessageQuote.js.map +1 -0
- package/dist/browser/content/MessageRow.js +413 -391
- package/dist/browser/content/MessageRow.js.map +1 -1
- package/dist/browser/content/PdfPages.js +26 -1
- package/dist/browser/content/PdfPages.js.map +1 -1
- package/dist/browser/content/RunLog.js +719 -0
- package/dist/browser/content/RunLog.js.map +1 -0
- package/dist/browser/content/VirtualFeed.js +29 -2
- package/dist/browser/content/VirtualFeed.js.map +1 -1
- package/dist/browser/content/activity-messages.js +47 -0
- package/dist/browser/content/activity-messages.js.map +1 -0
- package/dist/browser/content/activity-timeline.js +144 -0
- package/dist/browser/content/activity-timeline.js.map +1 -0
- package/dist/browser/content/chart-time-calendar.js +12 -18
- package/dist/browser/content/chart-time-calendar.js.map +1 -1
- package/dist/browser/content/find-text.js +47 -0
- package/dist/browser/content/find-text.js.map +1 -0
- package/dist/browser/content/index.js +2 -0
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/quote-messages.js +25 -0
- package/dist/browser/content/quote-messages.js.map +1 -0
- package/dist/browser/content/run-log-messages.js +134 -0
- package/dist/browser/content/run-log-messages.js.map +1 -0
- package/dist/browser/feedback/dialog-core.js +118 -14
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/dialog-frame-motion.js +274 -0
- package/dist/browser/feedback/dialog-frame-motion.js.map +1 -0
- package/dist/browser/feedback/prompt-sheet-view.js +2 -1
- package/dist/browser/feedback/prompt-sheet-view.js.map +1 -1
- package/dist/browser/feedback/prompts.js +49 -53
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/feedback/toast.js +11 -1
- package/dist/browser/feedback/toast.js.map +1 -1
- package/dist/browser/hover-card.js +6 -0
- package/dist/browser/hover-card.js.map +1 -0
- package/dist/browser/inputs/AutocompleteEditor.js +2 -1
- package/dist/browser/inputs/AutocompleteEditor.js.map +1 -1
- package/dist/browser/inputs/AutocompleteSelect.js +3 -12
- package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
- package/dist/browser/inputs/ChoiceList.js +131 -127
- package/dist/browser/inputs/ChoiceList.js.map +1 -1
- package/dist/browser/inputs/Combobox.js +6 -15
- package/dist/browser/inputs/Combobox.js.map +1 -1
- package/dist/browser/inputs/MultiSelectInput.js +7 -16
- package/dist/browser/inputs/MultiSelectInput.js.map +1 -1
- package/dist/browser/inputs/PeriodPicker.js +475 -252
- package/dist/browser/inputs/PeriodPicker.js.map +1 -1
- package/dist/browser/inputs/RichSelect.js +431 -431
- package/dist/browser/inputs/RichSelect.js.map +1 -1
- package/dist/browser/inputs/Select.js +3 -12
- package/dist/browser/inputs/Select.js.map +1 -1
- package/dist/browser/inputs/SelectChip.js +1 -0
- package/dist/browser/inputs/SelectChip.js.map +1 -1
- package/dist/browser/inputs/TimeInput.js +181 -0
- package/dist/browser/inputs/TimeInput.js.map +1 -0
- package/dist/browser/inputs/choice.js.map +1 -1
- package/dist/browser/inputs/date-picker.js +2 -1
- package/dist/browser/inputs/date-picker.js.map +1 -1
- package/dist/browser/inputs/file-drop.js +2 -0
- package/dist/browser/inputs/file-drop.js.map +1 -1
- package/dist/browser/inputs/index.js +1 -0
- package/dist/browser/inputs/index.js.map +1 -1
- package/dist/browser/inputs/input-messages.js +20 -2
- package/dist/browser/inputs/input-messages.js.map +1 -1
- package/dist/browser/inputs/period-picker-messages.js +20 -2
- package/dist/browser/inputs/period-picker-messages.js.map +1 -1
- package/dist/browser/inputs/period.js +83 -0
- package/dist/browser/inputs/period.js.map +1 -1
- package/dist/browser/inputs/time-input.js +93 -0
- package/dist/browser/inputs/time-input.js.map +1 -0
- package/dist/browser/internal/exit-motion.js +23 -0
- package/dist/browser/internal/exit-motion.js.map +1 -0
- package/dist/browser/internal/option-description.js +47 -0
- package/dist/browser/internal/option-description.js.map +1 -0
- package/dist/browser/internal/scroll-places.js +15 -0
- package/dist/browser/internal/scroll-places.js.map +1 -0
- package/dist/browser/internal/step-row.js +78 -0
- package/dist/browser/internal/step-row.js.map +1 -0
- package/dist/browser/layout/AppWorkspace.js +572 -495
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/BottomSheet.js +2 -14
- package/dist/browser/layout/BottomSheet.js.map +1 -1
- package/dist/browser/layout/Navigation.js +7 -2
- package/dist/browser/layout/Navigation.js.map +1 -1
- package/dist/browser/layout/PullToRefresh.js +76 -23
- package/dist/browser/layout/PullToRefresh.js.map +1 -1
- package/dist/browser/layout/SidebarSwitcher.js +28 -37
- package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
- package/dist/browser/layout/app-workspace-controller.js +5 -1
- package/dist/browser/layout/app-workspace-controller.js.map +1 -1
- package/dist/browser/layout/bottom-sheet-load.js +17 -0
- package/dist/browser/layout/bottom-sheet-load.js.map +1 -0
- package/dist/browser/layout/bottom-sheet-options.js +27 -0
- package/dist/browser/layout/bottom-sheet-options.js.map +1 -0
- package/dist/browser/layout/index.js +2 -1
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/layout/refresh-messages.js +4 -2
- package/dist/browser/layout/refresh-messages.js.map +1 -1
- package/dist/browser/layout/sheet-motion.js +10 -11
- package/dist/browser/layout/sheet-motion.js.map +1 -1
- package/dist/browser/layout/sidebar-scroll-memory.js +30 -0
- package/dist/browser/layout/sidebar-scroll-memory.js.map +1 -1
- package/dist/browser/surfaces/AvatarStack.js +59 -43
- package/dist/browser/surfaces/AvatarStack.js.map +1 -1
- package/dist/browser/surfaces/LinkCard.js.map +1 -1
- package/dist/browser/surfaces/Section.js +4 -2
- package/dist/browser/surfaces/Section.js.map +1 -1
- package/dist/browser/surfaces/StatCell.js +56 -28
- package/dist/browser/surfaces/StatCell.js.map +1 -1
- package/dist/browser/surfaces/StatGrid.js +17 -8
- package/dist/browser/surfaces/StatGrid.js.map +1 -1
- package/dist/browser/surfaces/index.js.map +1 -1
- package/dist/ssr/actions/CommandList.js +23 -26
- package/dist/ssr/actions/CommandList.js.map +1 -1
- package/dist/ssr/actions/ContextMenu.js +8 -2
- package/dist/ssr/actions/ContextMenu.js.map +1 -1
- package/dist/ssr/actions/Dropdown.js +79 -55
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/GestureMenu.js +18 -7
- package/dist/ssr/actions/GestureMenu.js.map +1 -1
- package/dist/ssr/actions/SelectionAction.js +212 -0
- package/dist/ssr/actions/SelectionAction.js.map +1 -0
- package/dist/ssr/actions/command-items.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/menu-sheet-open.js +19 -0
- package/dist/ssr/actions/menu-sheet-open.js.map +1 -0
- package/dist/ssr/charts/core/line-details.js +2 -2
- package/dist/ssr/charts/core/line-details.js.map +1 -1
- package/dist/ssr/charts/core/render.js +2 -1
- package/dist/ssr/charts/core/render.js.map +1 -1
- package/dist/ssr/chat/ChatActivityWords.js +126 -0
- package/dist/ssr/chat/ChatActivityWords.js.map +1 -0
- package/dist/ssr/chat/ChatComposer.js +24 -3
- package/dist/ssr/chat/ChatComposer.js.map +1 -1
- package/dist/ssr/chat/ChatComposerQuotes.js +26 -0
- package/dist/ssr/chat/ChatComposerQuotes.js.map +1 -0
- package/dist/ssr/chat/ChatPrimitives.js +121 -77
- package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
- package/dist/ssr/chat/ChatTasks.js +31 -16
- package/dist/ssr/chat/ChatTasks.js.map +1 -1
- package/dist/ssr/chat/ChatTimeline.js +3 -0
- package/dist/ssr/chat/ChatTimeline.js.map +1 -1
- package/dist/ssr/chat/index.js +4 -1
- package/dist/ssr/chat/index.js.map +1 -1
- package/dist/ssr/content/ActivityList.js +553 -0
- package/dist/ssr/content/ActivityList.js.map +1 -0
- package/dist/ssr/content/DataTableTools.js +3 -0
- package/dist/ssr/content/DataTableTools.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +33 -11
- package/dist/ssr/content/Lightbox.js.map +1 -1
- package/dist/ssr/content/MessageQuote.js +36 -0
- package/dist/ssr/content/MessageQuote.js.map +1 -0
- package/dist/ssr/content/MessageRow.js +112 -95
- package/dist/ssr/content/MessageRow.js.map +1 -1
- package/dist/ssr/content/PdfPages.js +26 -1
- package/dist/ssr/content/PdfPages.js.map +1 -1
- package/dist/ssr/content/RunLog.js +471 -0
- package/dist/ssr/content/RunLog.js.map +1 -0
- package/dist/ssr/content/VirtualFeed.js +29 -2
- package/dist/ssr/content/VirtualFeed.js.map +1 -1
- package/dist/ssr/content/activity-messages.js +47 -0
- package/dist/ssr/content/activity-messages.js.map +1 -0
- package/dist/ssr/content/activity-timeline.js +144 -0
- package/dist/ssr/content/activity-timeline.js.map +1 -0
- package/dist/ssr/content/chart-time-calendar.js +12 -18
- package/dist/ssr/content/chart-time-calendar.js.map +1 -1
- package/dist/ssr/content/find-text.js +47 -0
- package/dist/ssr/content/find-text.js.map +1 -0
- package/dist/ssr/content/index.js +2 -0
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/quote-messages.js +25 -0
- package/dist/ssr/content/quote-messages.js.map +1 -0
- package/dist/ssr/content/run-log-messages.js +134 -0
- package/dist/ssr/content/run-log-messages.js.map +1 -0
- package/dist/ssr/feedback/dialog-core.js +118 -14
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/dialog-frame-motion.js +274 -0
- package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -0
- package/dist/ssr/feedback/prompt-sheet-view.js +2 -1
- package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -1
- package/dist/ssr/feedback/prompts.js +16 -16
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/feedback/toast.js +11 -1
- package/dist/ssr/feedback/toast.js.map +1 -1
- package/dist/ssr/hover-card.js +6 -0
- package/dist/ssr/hover-card.js.map +1 -0
- package/dist/ssr/inputs/AutocompleteEditor.js +2 -1
- package/dist/ssr/inputs/AutocompleteEditor.js.map +1 -1
- package/dist/ssr/inputs/AutocompleteSelect.js +3 -8
- package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
- package/dist/ssr/inputs/ChoiceList.js +25 -25
- package/dist/ssr/inputs/ChoiceList.js.map +1 -1
- package/dist/ssr/inputs/Combobox.js +4 -9
- package/dist/ssr/inputs/Combobox.js.map +1 -1
- package/dist/ssr/inputs/MultiSelectInput.js +4 -9
- package/dist/ssr/inputs/MultiSelectInput.js.map +1 -1
- package/dist/ssr/inputs/PeriodPicker.js +241 -46
- package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
- package/dist/ssr/inputs/RichSelect.js +135 -121
- package/dist/ssr/inputs/RichSelect.js.map +1 -1
- package/dist/ssr/inputs/Select.js +3 -8
- package/dist/ssr/inputs/Select.js.map +1 -1
- package/dist/ssr/inputs/SelectChip.js +1 -0
- package/dist/ssr/inputs/SelectChip.js.map +1 -1
- package/dist/ssr/inputs/TimeInput.js +145 -0
- package/dist/ssr/inputs/TimeInput.js.map +1 -0
- package/dist/ssr/inputs/choice.js.map +1 -1
- package/dist/ssr/inputs/date-picker.js +2 -1
- package/dist/ssr/inputs/date-picker.js.map +1 -1
- package/dist/ssr/inputs/file-drop.js +2 -0
- package/dist/ssr/inputs/file-drop.js.map +1 -1
- package/dist/ssr/inputs/index.js +1 -0
- package/dist/ssr/inputs/index.js.map +1 -1
- package/dist/ssr/inputs/input-messages.js +20 -2
- package/dist/ssr/inputs/input-messages.js.map +1 -1
- package/dist/ssr/inputs/period-picker-messages.js +20 -2
- package/dist/ssr/inputs/period-picker-messages.js.map +1 -1
- package/dist/ssr/inputs/period.js +83 -0
- package/dist/ssr/inputs/period.js.map +1 -1
- package/dist/ssr/inputs/time-input.js +93 -0
- package/dist/ssr/inputs/time-input.js.map +1 -0
- package/dist/ssr/internal/exit-motion.js +23 -0
- package/dist/ssr/internal/exit-motion.js.map +1 -0
- package/dist/ssr/internal/option-description.js +27 -0
- package/dist/ssr/internal/option-description.js.map +1 -0
- package/dist/ssr/internal/scroll-places.js +15 -0
- package/dist/ssr/internal/scroll-places.js.map +1 -0
- package/dist/ssr/internal/step-row.js +35 -0
- package/dist/ssr/internal/step-row.js.map +1 -0
- package/dist/ssr/layout/AppWorkspace.js +191 -121
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/BottomSheet.js +2 -14
- package/dist/ssr/layout/BottomSheet.js.map +1 -1
- package/dist/ssr/layout/Navigation.js +7 -2
- package/dist/ssr/layout/Navigation.js.map +1 -1
- package/dist/ssr/layout/PullToRefresh.js +67 -16
- package/dist/ssr/layout/PullToRefresh.js.map +1 -1
- package/dist/ssr/layout/SidebarSwitcher.js +8 -13
- package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
- package/dist/ssr/layout/app-workspace-controller.js +5 -1
- package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
- package/dist/ssr/layout/bottom-sheet-load.js +17 -0
- package/dist/ssr/layout/bottom-sheet-load.js.map +1 -0
- package/dist/ssr/layout/bottom-sheet-options.js +27 -0
- package/dist/ssr/layout/bottom-sheet-options.js.map +1 -0
- package/dist/ssr/layout/index.js +2 -1
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/layout/refresh-messages.js +4 -2
- package/dist/ssr/layout/refresh-messages.js.map +1 -1
- package/dist/ssr/layout/sheet-motion.js +10 -11
- package/dist/ssr/layout/sheet-motion.js.map +1 -1
- package/dist/ssr/layout/sidebar-scroll-memory.js +30 -0
- package/dist/ssr/layout/sidebar-scroll-memory.js.map +1 -1
- package/dist/ssr/surfaces/AvatarStack.js +56 -40
- package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
- package/dist/ssr/surfaces/LinkCard.js.map +1 -1
- package/dist/ssr/surfaces/Section.js +4 -2
- package/dist/ssr/surfaces/Section.js.map +1 -1
- package/dist/ssr/surfaces/StatCell.js +24 -12
- package/dist/ssr/surfaces/StatCell.js.map +1 -1
- package/dist/ssr/surfaces/StatGrid.js +12 -6
- package/dist/ssr/surfaces/StatGrid.js.map +1 -1
- package/dist/ssr/surfaces/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/Dropdown.d.ts +10 -0
- package/dist/types/actions/SelectionAction.d.ts +34 -0
- package/dist/types/actions/command-items.d.ts +5 -0
- package/dist/types/actions/index.d.ts +2 -0
- package/dist/types/actions/menu-sheet-open.d.ts +13 -0
- package/dist/types/charts/core/line-details.d.ts +1 -1
- package/dist/types/chat/ChatActivityWords.d.ts +31 -0
- package/dist/types/chat/ChatComposer.d.ts +17 -1
- package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
- package/dist/types/chat/ChatPrimitives.d.ts +23 -1
- package/dist/types/chat/ChatTimeline.d.ts +2 -0
- package/dist/types/chat/index.d.ts +6 -2
- package/dist/types/content/ActivityList.d.ts +166 -0
- package/dist/types/content/DataTableTools.d.ts +2 -0
- package/dist/types/content/Lightbox.d.ts +7 -5
- package/dist/types/content/MessageQuote.d.ts +9 -0
- package/dist/types/content/MessageRow.d.ts +5 -0
- package/dist/types/content/RunLog.d.ts +53 -0
- package/dist/types/content/VirtualFeed.d.ts +6 -0
- package/dist/types/content/activity-messages.d.ts +22 -0
- package/dist/types/content/activity-timeline.d.ts +52 -0
- package/dist/types/content/chart-time-calendar.d.ts +6 -0
- package/dist/types/content/find-text.d.ts +10 -0
- package/dist/types/content/index.d.ts +2 -0
- package/dist/types/content/quote-messages.d.ts +6 -0
- package/dist/types/content/run-log-messages.d.ts +61 -0
- package/dist/types/feedback/dialog-core.d.ts +2 -0
- package/dist/types/feedback/dialog-frame-motion.d.ts +37 -0
- package/dist/types/feedback/prompts.d.ts +5 -0
- package/dist/types/feedback/toast.d.ts +9 -1
- package/dist/types/hover-card.d.ts +5 -0
- package/dist/types/inputs/ChoiceList.d.ts +12 -5
- package/dist/types/inputs/Combobox.d.ts +5 -0
- package/dist/types/inputs/MultiSelectInput.d.ts +1 -0
- package/dist/types/inputs/PeriodPicker.d.ts +10 -0
- package/dist/types/inputs/RichSelect.d.ts +5 -0
- package/dist/types/inputs/Select.d.ts +1 -0
- package/dist/types/inputs/SelectChip.d.ts +5 -0
- package/dist/types/inputs/TimeInput.d.ts +16 -0
- package/dist/types/inputs/choice.d.ts +6 -1
- package/dist/types/inputs/index.d.ts +2 -0
- package/dist/types/inputs/input-messages.d.ts +9 -0
- package/dist/types/inputs/period-picker-messages.d.ts +9 -0
- package/dist/types/inputs/period.d.ts +41 -0
- package/dist/types/inputs/time-input.d.ts +43 -0
- package/dist/types/internal/exit-motion.d.ts +10 -0
- package/dist/types/internal/option-description.d.ts +20 -0
- package/dist/types/internal/scroll-places.d.ts +2 -0
- package/dist/types/internal/step-row.d.ts +19 -0
- package/dist/types/layout/AppWorkspace.d.ts +10 -0
- package/dist/types/layout/BottomSheet.d.ts +1 -14
- package/dist/types/layout/PullToRefresh.d.ts +2 -2
- package/dist/types/layout/SidebarSwitcher.d.ts +5 -0
- package/dist/types/layout/bottom-sheet-load.d.ts +9 -0
- package/dist/types/layout/bottom-sheet-options.d.ts +18 -0
- package/dist/types/layout/index.d.ts +3 -2
- package/dist/types/layout/refresh-messages.d.ts +1 -0
- package/dist/types/layout/sheet-motion.d.ts +0 -5
- package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
- package/dist/types/surfaces/LinkCard.d.ts +2 -1
- package/dist/types/surfaces/StatCell.d.ts +7 -2
- package/dist/types/surfaces/StatGrid.d.ts +15 -3
- package/dist/types/surfaces/index.d.ts +1 -1
- package/package.json +17 -8
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { dates } from "@k2b/stdlib";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Time rules of `ActivityList`: pure, with `now` as an input, so the server, the first browser render, and tests
|
|
5
|
+
* compute the same rows. Days count in `timeZone`.
|
|
6
|
+
*
|
|
7
|
+
* - **Dividers:** "Today", "Yesterday", and each day up to seven days back; everything older sits under one divider
|
|
8
|
+
* "More than a week ago".
|
|
9
|
+
* - **Time:** under a day divider the time alone ("10:20"); under the older divider the day and time
|
|
10
|
+
* ("21 Oct, 14:31"; another year adds the year).
|
|
11
|
+
* - **Distance:** "12 min. ago", "6 hr. ago", "1 day ago", "9 days ago", weeks from 14 days, months from 60 days,
|
|
12
|
+
* years from 365 days.
|
|
13
|
+
* - **Bundles:** equal entries (one key) directly after each other on the same day become one row with a count; the
|
|
14
|
+
* newest one leads.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** How many days back still have a divider of their own. */
|
|
18
|
+
export const ACTIVITY_DAYS_WITH_DIVIDER = 7;
|
|
19
|
+
const dayMs = day => Date.parse(`${day}T00:00:00Z`);
|
|
20
|
+
/** Whole calendar days from `day` back to `today` (both `YYYY-MM-DD`); negative in the future. */
|
|
21
|
+
const daysBack = (day, today) => Math.round((dayMs(today) - dayMs(day)) / 86_400_000);
|
|
22
|
+
|
|
23
|
+
/** The calendar day (`YYYY-MM-DD`) of an instant in a time zone. */
|
|
24
|
+
export const activityDay = (at, timeZone) => dates.formatDateKey(at, {
|
|
25
|
+
timeZone
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** The divider an instant stands under. Instants in the future (the device clock) count as today. */
|
|
29
|
+
export const activityGroup = (at, now, timeZone) => {
|
|
30
|
+
const day = activityDay(at, timeZone);
|
|
31
|
+
const back = daysBack(day, activityDay(now, timeZone));
|
|
32
|
+
if (back <= 0) return {
|
|
33
|
+
kind: "today",
|
|
34
|
+
day
|
|
35
|
+
};
|
|
36
|
+
if (back === 1) return {
|
|
37
|
+
kind: "yesterday",
|
|
38
|
+
day
|
|
39
|
+
};
|
|
40
|
+
if (back <= ACTIVITY_DAYS_WITH_DIVIDER) return {
|
|
41
|
+
kind: "day",
|
|
42
|
+
day
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
kind: "older",
|
|
46
|
+
day: null
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export const sameActivityGroup = (a, b) => a.kind === b.kind && a.day === b.day;
|
|
50
|
+
|
|
51
|
+
/** A day divider's label, such as "Fri, Nov 6" (de "Fr., 6. Nov."); another year adds the year. */
|
|
52
|
+
export const activityDayLabel = (day, now, locale, timeZone) => new Intl.DateTimeFormat(locale, {
|
|
53
|
+
weekday: "short",
|
|
54
|
+
day: "numeric",
|
|
55
|
+
month: "short",
|
|
56
|
+
...(day.slice(0, 4) === activityDay(now, timeZone).slice(0, 4) ? {} : {
|
|
57
|
+
year: "numeric"
|
|
58
|
+
}),
|
|
59
|
+
timeZone: "UTC"
|
|
60
|
+
}).format(new Date(dayMs(day)));
|
|
61
|
+
|
|
62
|
+
/** A short calendar day: "Oct 21" in the year of `now`, otherwise with the year ("Mar 3, 2025"). */
|
|
63
|
+
const shortDay = (day, now, locale, timeZone) => day.slice(0, 4) === activityDay(now, timeZone).slice(0, 4) ? new Intl.DateTimeFormat(locale, {
|
|
64
|
+
day: "numeric",
|
|
65
|
+
month: "short",
|
|
66
|
+
timeZone: "UTC"
|
|
67
|
+
}).format(new Date(dayMs(day))) : dates.formatDate(day, {
|
|
68
|
+
locale,
|
|
69
|
+
timeZone: "UTC"
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/** The time of the meta line: within the last week the time alone, before that the day and time. */
|
|
73
|
+
export const activityWhen = (at, now, locale, timeZone) => {
|
|
74
|
+
const time = dates.formatTime(at, {
|
|
75
|
+
timeZone
|
|
76
|
+
});
|
|
77
|
+
if (activityGroup(at, now, timeZone).kind !== "older") return time;
|
|
78
|
+
return `${shortDay(activityDay(at, timeZone), now, locale, timeZone)}, ${time}`;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** The full instant for the tooltip, such as "Oct 21, 2026, 14:31". */
|
|
82
|
+
export const activityInstant = (at, locale, timeZone) => dates.formatDateTime(at, {
|
|
83
|
+
locale,
|
|
84
|
+
timeZone
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/** Distance to now in the interface language ("6 hr. ago", de "vor 6 Std."); never "yesterday", never in the future. */
|
|
88
|
+
export const activityAgo = (at, now, locale, timeZone) => {
|
|
89
|
+
const minutes = (now.getTime() - new Date(at).getTime()) / 60_000;
|
|
90
|
+
const short = new Intl.RelativeTimeFormat(locale, {
|
|
91
|
+
style: "short",
|
|
92
|
+
numeric: "always"
|
|
93
|
+
});
|
|
94
|
+
const long = new Intl.RelativeTimeFormat(locale, {
|
|
95
|
+
numeric: "always"
|
|
96
|
+
});
|
|
97
|
+
if (minutes < 60) return short.format(-Math.max(1, Math.round(minutes)), "minute");
|
|
98
|
+
const days = daysBack(activityDay(at, timeZone), activityDay(now, timeZone));
|
|
99
|
+
if (days <= 0) return short.format(-Math.floor(minutes / 60), "hour");
|
|
100
|
+
if (days < 14) return long.format(-days, "day");
|
|
101
|
+
if (days < 60) return long.format(-Math.floor(days / 7), "week");
|
|
102
|
+
if (days < 365) return long.format(-Math.floor(days / 30), "month");
|
|
103
|
+
return long.format(-Math.floor(days / 365), "year");
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** One row: the newest entry of a bundle, all entries of the bundle (newest first), and the divider before it (only on a group's first row). */
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Entries as rows: newest first (stable for equal times), equal entries after each other on the same day bundled
|
|
110
|
+
* (`key`; `null` never bundles), dividers by day or "older".
|
|
111
|
+
*/
|
|
112
|
+
export const activityRows = (entries, input) => {
|
|
113
|
+
const sorted = entries.map((entry, index) => ({
|
|
114
|
+
entry,
|
|
115
|
+
index,
|
|
116
|
+
ms: Date.parse(entry.at)
|
|
117
|
+
})).sort((a, b) => b.ms - a.ms || a.index - b.index);
|
|
118
|
+
const rows = [];
|
|
119
|
+
let previous = null;
|
|
120
|
+
for (const {
|
|
121
|
+
entry
|
|
122
|
+
} of sorted) {
|
|
123
|
+
const key = input.key?.(entry) ?? null;
|
|
124
|
+
const day = activityDay(entry.at, input.timeZone);
|
|
125
|
+
const group = activityGroup(entry.at, input.now, input.timeZone);
|
|
126
|
+
const last = rows.at(-1);
|
|
127
|
+
if (last && previous && key !== null && key === previous.key && day === previous.day) {
|
|
128
|
+
last.all.push(entry);
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
rows.push({
|
|
132
|
+
entry,
|
|
133
|
+
all: [entry],
|
|
134
|
+
divider: previous && sameActivityGroup(previous.group, group) ? null : group
|
|
135
|
+
});
|
|
136
|
+
previous = {
|
|
137
|
+
key,
|
|
138
|
+
day,
|
|
139
|
+
group
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return rows;
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=activity-timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/activity-timeline.ts"],"sourcesContent":["import { dates } from \"@k2b/stdlib\";\n\n/**\n * Time rules of `ActivityList`: pure, with `now` as an input, so the server, the first browser render, and tests\n * compute the same rows. Days count in `timeZone`.\n *\n * - **Dividers:** \"Today\", \"Yesterday\", and each day up to seven days back; everything older sits under one divider\n * \"More than a week ago\".\n * - **Time:** under a day divider the time alone (\"10:20\"); under the older divider the day and time\n * (\"21 Oct, 14:31\"; another year adds the year).\n * - **Distance:** \"12 min. ago\", \"6 hr. ago\", \"1 day ago\", \"9 days ago\", weeks from 14 days, months from 60 days,\n * years from 365 days.\n * - **Bundles:** equal entries (one key) directly after each other on the same day become one row with a count; the\n * newest one leads.\n */\n\n/** How many days back still have a divider of their own. */\nexport const ACTIVITY_DAYS_WITH_DIVIDER = 7;\n\nexport type ActivityGroup = { kind: \"today\" | \"yesterday\" | \"day\"; day: string } | { kind: \"older\"; day: null };\n\nconst dayMs = (day: string): number => Date.parse(`${day}T00:00:00Z`);\n/** Whole calendar days from `day` back to `today` (both `YYYY-MM-DD`); negative in the future. */\nconst daysBack = (day: string, today: string): number => Math.round((dayMs(today) - dayMs(day)) / 86_400_000);\n\n/** The calendar day (`YYYY-MM-DD`) of an instant in a time zone. */\nexport const activityDay = (at: string | Date, timeZone: string): string => dates.formatDateKey(at, { timeZone });\n\n/** The divider an instant stands under. Instants in the future (the device clock) count as today. */\nexport const activityGroup = (at: string, now: Date, timeZone: string): ActivityGroup => {\n const day = activityDay(at, timeZone);\n const back = daysBack(day, activityDay(now, timeZone));\n if (back <= 0) return { kind: \"today\", day };\n if (back === 1) return { kind: \"yesterday\", day };\n if (back <= ACTIVITY_DAYS_WITH_DIVIDER) return { kind: \"day\", day };\n return { kind: \"older\", day: null };\n};\n\nexport const sameActivityGroup = (a: ActivityGroup, b: ActivityGroup): boolean => a.kind === b.kind && a.day === b.day;\n\n/** A day divider's label, such as \"Fri, Nov 6\" (de \"Fr., 6. Nov.\"); another year adds the year. */\nexport const activityDayLabel = (day: string, now: Date, locale: string, timeZone: string): string =>\n new Intl.DateTimeFormat(locale, {\n weekday: \"short\",\n day: \"numeric\",\n month: \"short\",\n ...(day.slice(0, 4) === activityDay(now, timeZone).slice(0, 4) ? {} : { year: \"numeric\" }),\n timeZone: \"UTC\",\n }).format(new Date(dayMs(day)));\n\n/** A short calendar day: \"Oct 21\" in the year of `now`, otherwise with the year (\"Mar 3, 2025\"). */\nconst shortDay = (day: string, now: Date, locale: string, timeZone: string): string =>\n day.slice(0, 4) === activityDay(now, timeZone).slice(0, 4)\n ? new Intl.DateTimeFormat(locale, { day: \"numeric\", month: \"short\", timeZone: \"UTC\" }).format(new Date(dayMs(day)))\n : dates.formatDate(day, { locale, timeZone: \"UTC\" });\n\n/** The time of the meta line: within the last week the time alone, before that the day and time. */\nexport const activityWhen = (at: string, now: Date, locale: string, timeZone: string): string => {\n const time = dates.formatTime(at, { timeZone });\n if (activityGroup(at, now, timeZone).kind !== \"older\") return time;\n return `${shortDay(activityDay(at, timeZone), now, locale, timeZone)}, ${time}`;\n};\n\n/** The full instant for the tooltip, such as \"Oct 21, 2026, 14:31\". */\nexport const activityInstant = (at: string, locale: string, timeZone: string): string => dates.formatDateTime(at, { locale, timeZone });\n\n/** Distance to now in the interface language (\"6 hr. ago\", de \"vor 6 Std.\"); never \"yesterday\", never in the future. */\nexport const activityAgo = (at: string, now: Date, locale: string, timeZone: string): string => {\n const minutes = (now.getTime() - new Date(at).getTime()) / 60_000;\n const short = new Intl.RelativeTimeFormat(locale, { style: \"short\", numeric: \"always\" });\n const long = new Intl.RelativeTimeFormat(locale, { numeric: \"always\" });\n if (minutes < 60) return short.format(-Math.max(1, Math.round(minutes)), \"minute\");\n const days = daysBack(activityDay(at, timeZone), activityDay(now, timeZone));\n if (days <= 0) return short.format(-Math.floor(minutes / 60), \"hour\");\n if (days < 14) return long.format(-days, \"day\");\n if (days < 60) return long.format(-Math.floor(days / 7), \"week\");\n if (days < 365) return long.format(-Math.floor(days / 30), \"month\");\n return long.format(-Math.floor(days / 365), \"year\");\n};\n\n/** One row: the newest entry of a bundle, all entries of the bundle (newest first), and the divider before it (only on a group's first row). */\nexport type ActivityRow<T> = { entry: T; all: T[]; divider: ActivityGroup | null };\n\n/**\n * Entries as rows: newest first (stable for equal times), equal entries after each other on the same day bundled\n * (`key`; `null` never bundles), dividers by day or \"older\".\n */\nexport const activityRows = <T extends { at: string }>(\n entries: readonly T[],\n input: { now: Date; timeZone: string; key?: (entry: T) => string | null },\n): ActivityRow<T>[] => {\n const sorted = entries\n .map((entry, index) => ({ entry, index, ms: Date.parse(entry.at) }))\n .sort((a, b) => b.ms - a.ms || a.index - b.index);\n const rows: ActivityRow<T>[] = [];\n let previous: { key: string | null; day: string; group: ActivityGroup } | null = null;\n for (const { entry } of sorted) {\n const key = input.key?.(entry) ?? null;\n const day = activityDay(entry.at, input.timeZone);\n const group = activityGroup(entry.at, input.now, input.timeZone);\n const last = rows.at(-1);\n if (last && previous && key !== null && key === previous.key && day === previous.day) {\n last.all.push(entry);\n continue;\n }\n rows.push({ entry, all: [entry], divider: previous && sameActivityGroup(previous.group, group) ? null : group });\n previous = { key, day, group };\n }\n return r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AE,EAAE,KAAK,CAAC,QAAQ,CAAC;IACjD,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC;IAChE,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,IAAI,IAAI,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,QAAQ,CAAC,GAAG,IAAI,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE;MACpF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;MACpB;IACF;IACA,IAAI,CAAC,IAAI,CAAC;MAAE,KAAK;MAAE,GAAG,EAAE,CAAC,KAAK,CAAC;MAAE,OAAO,EAAE,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,IAAI,GAAG;IAAM,CAAC,CAAC;IAChH,QAAQ,GAAG;MAAE,GAAG;MAAE,GAAG;MAAE;IAAM,CAAC;EAChC;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -3,25 +3,12 @@
|
|
|
3
3
|
* minutes, hours, days, weeks, months, or years, whichever step keeps the requested number of ticks.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Three days and two weeks keep a span of one or two weeks, or of one or two months, at four or five dates instead of
|
|
7
|
+
// falling to two at the next coarser step. One table, as the artifact prelude carries this file.
|
|
8
|
+
const STEPS = [["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 6, 12]], ["day", [1, 2, 3]], ["week", [1, 2]], ["month", [1, 3, 6]], ["year", [1]]].flatMap(([unit, sizes]) => sizes.map(size => ({
|
|
9
|
+
unit,
|
|
8
10
|
size
|
|
9
|
-
}))
|
|
10
|
-
unit: "hour",
|
|
11
|
-
size
|
|
12
|
-
})), ...[1, 2].map(size => ({
|
|
13
|
-
unit: "day",
|
|
14
|
-
size
|
|
15
|
-
})), {
|
|
16
|
-
unit: "week",
|
|
17
|
-
size: 1
|
|
18
|
-
}, ...[1, 3, 6].map(size => ({
|
|
19
|
-
unit: "month",
|
|
20
|
-
size
|
|
21
|
-
})), {
|
|
22
|
-
unit: "year",
|
|
23
|
-
size: 1
|
|
24
|
-
}];
|
|
11
|
+
})));
|
|
25
12
|
const UNIT_MS = {
|
|
26
13
|
minute: 60_000,
|
|
27
14
|
hour: 3_600_000,
|
|
@@ -58,6 +45,13 @@ const nextWall = (wall, step) => {
|
|
|
58
45
|
return wall + step.size * UNIT_MS[step.unit];
|
|
59
46
|
};
|
|
60
47
|
|
|
48
|
+
/**
|
|
49
|
+
* How many dates fit along a drawing of this width when the caller names no tick count: one date takes about 56 px
|
|
50
|
+
* (a label such as "12. Nov." and the gap to the next), the Y labels take the first 60 px, and never fewer than five.
|
|
51
|
+
* A box narrower than the drawing then hides every second date (`chart-tick-room.ts`).
|
|
52
|
+
*/
|
|
53
|
+
export const chartTimeTickBudget = (drawWidth, ticks) => ticks !== undefined ? ticks + 2 : Math.max(5, Math.floor((drawWidth - 60) / 56));
|
|
54
|
+
|
|
61
55
|
/** The round step for a time span: the finest one that keeps at most `maxTicks` ticks. */
|
|
62
56
|
export const chartTimeStep = (span, maxTicks) => STEPS.find(step => span / (step.size * UNIT_MS[step.unit]) <= maxTicks) ?? STEPS.at(-1);
|
|
63
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/chart-time-calendar.ts"],"sourcesContent":["/**\n * A line chart whose X values are instants (Unix milliseconds). Its axis ticks land on round times in `timeZone`:\n * minutes, hours, days, weeks, months, or years, whichever step keeps the requested number of ticks.\n */\nexport type ChartTimeAxis = {\n /** IANA zone whose wall clock the ticks follow, such as the zone the data's buckets use. */\n timeZone: string;\n /** Locale of the default tick labels; `xAxis.format` replaces them. Defaults to `en`. */\n locale?: string;\n};\n\nexport type ChartTimeUnit = \"minute\" | \"hour\" | \"day\" | \"week\" | \"month\" | \"year\";\nexport type ChartTimeStep = { unit: ChartTimeUnit; size: number };\n\nconst STEPS: readonly ChartTimeStep[] = [\n ...[1, 2, 5, 10, 15, 30].map((size) => ({ unit: \"minute\" as const, size })),\n ...[1, 2, 3, 6, 12].map((size) => ({ unit: \"hour\" as const, size })),\n ...[1, 2].map((size) => ({ unit: \"day\" as const, size })),\n { unit: \"week\", size: 1 },\n ...[1, 3, 6].map((size) => ({ unit: \"month\" as const, size })),\n { unit: \"year\", size: 1 },\n];\nconst UNIT_MS: Record<ChartTimeUnit, number> = {\n minute: 60_000,\n hour: 3_600_000,\n day: 86_400_000,\n week: 604_800_000,\n month: 2_629_746_000,\n year: 31_556_952_000,\n};\n\n// Wall-clock arithmetic runs on a zone-free calendar: the wall time read as if it were UTC.\nconst floorWall = (wall: number, step: ChartTimeStep): number => {\n const date = new Date(wall);\n const y = date.getUTCFullYear(),\n m = date.getUTCMonth(),\n d = date.getUTCDate();\n if (step.unit === \"minute\") {\n const minutes = Math.floor(date.getUTCMinutes() / step.size) * step.size;\n return Date.UTC(y, m, d, date.getUTCHours(), minutes);\n }\n if (step.unit === \"hour\") return Date.UTC(y, m, d, Math.floor(date.getUTCHours() / step.size) * step.size);\n if (step.unit === \"day\") {\n const day = Date.UTC(y, m, d);\n return day - (Math.floor(day / UNIT_MS.day) % step.size) * UNIT_MS.day;\n }\n // Weeks start on Monday, as Cloud's calendars default to.\n if (step.unit === \"week\") return Date.UTC(y, m, d) - ((date.getUTCDay() + 6) % 7) * UNIT_MS.day;\n if (step.unit === \"month\") return Date.UTC(y, Math.floor(m / step.size) * step.size, 1);\n return Date.UTC(y, 0, 1);\n};\n\nconst nextWall = (wall: number, step: ChartTimeStep): number => {\n const date = new Date(wall);\n if (step.unit === \"month\") return Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + step.size, 1);\n if (step.unit === \"year\") return Date.UTC(date.getUTCFullYear() + step.size, 0, 1);\n return wall + step.size * UNIT_MS[step.unit];\n};\n\n/** The round step for a time span: the finest one that keeps at most `maxTicks` ticks. */\nexport const chartTimeStep = (span: number, maxTicks: number): ChartTimeStep =>\n STEPS.find((step) => span / (step.size * UNIT_MS[step.unit]) <= maxTicks) ?? STEPS.at(-1)!;\n\n/** Tick instants inside `domain` that fall on round wall times of `step` in `timeZone`. */\nexport const calendarTimeTicks = (\n domain: readonly [number, number],\n timeZone: string,\n step: ChartTimeStep,\n clock: { wallOf: (instant: number, zone: string) => number; instantOf: (wall: number, zone: string) => number },\n): number[] => {\n const { wallOf, instantOf } = clock;\n const [lo, hi] = domain;\n const ticks: number[] = [];\n // Instants outside the Date range have no wall time; Bun reads their \"NaN-NaN-…\" wall as 2000 and counts from there.\n if ([lo, hi].some((instant) => Number.isNaN(new Date(instant).getTime()))) return ticks;\n // A day that a DST change shortens maps a missing wall time onto the next one; it shows once. The budget counts\n // steps, not ticks, so a step that repeats a tick or does not advance ends too.\n for (let wall = floorWall(wallOf(lo, timeZone), step), steps = 0; steps <= 1_000; steps++) {\n const instant = instantOf(wall, timeZone);\n if (instant > hi) break;\n if (instant >= lo && instant !== ticks.at(-1)) ticks.push(instant);\n const next = nextWall(wall, step);\n if (!(next > wall)) break;\n wall = next;\n }\n return ticks;\n};\n\n/** Default label of a tick: the clock time, the day at local midnight, the month or the year. */\nexport const calendarTimeLabel = (tick: number, step: ChartTimeStep, axis: ChartTimeAxis, midnight: boolean): string => {\n const locale = axis.locale ?? \"en\";\n const options: Intl.DateTimeFormatOptions =\n (step.unit === \"minute\" || step.unit === \"hour\") && !midnight\n ? { hour: \"2-digit\", minute: \"2-digit\", hourCycle: \"h23\" }\n : step.unit === \"month\"\n ? { month: \"short\", year: \"numeric\" }\n : step.unit === \"year\"\n ? { year: \"numeric\" }\n : { day: \"numeric\", month: \"short\" };\n return new Intl.DateTimeFormat(locale, { ...options, timeZone: axis.timeZone }).format(tick);\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAWA,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AE;IAAE,GAAG,OAAO;IAAE,QAAQ,EAAE,IAAI,CAAC;EAAS,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;AAC9F,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/chart-time-calendar.ts"],"sourcesContent":["/**\n * A line chart whose X values are instants (Unix milliseconds). Its axis ticks land on round times in `timeZone`:\n * minutes, hours, days, weeks, months, or years, whichever step keeps the requested number of ticks.\n */\nexport type ChartTimeAxis = {\n /** IANA zone whose wall clock the ticks follow, such as the zone the data's buckets use. */\n timeZone: string;\n /** Locale of the default tick labels; `xAxis.format` replaces them. Defaults to `en`. */\n locale?: string;\n};\n\nexport type ChartTimeUnit = \"minute\" | \"hour\" | \"day\" | \"week\" | \"month\" | \"year\";\nexport type ChartTimeStep = { unit: ChartTimeUnit; size: number };\n\n// Three days and two weeks keep a span of one or two weeks, or of one or two months, at four or five dates instead of\n// falling to two at the next coarser step. One table, as the artifact prelude carries this file.\nconst STEPS: readonly ChartTimeStep[] = (\n [\n [\"minute\", [1, 2, 5, 10, 15, 30]],\n [\"hour\", [1, 2, 3, 6, 12]],\n [\"day\", [1, 2, 3]],\n [\"week\", [1, 2]],\n [\"month\", [1, 3, 6]],\n [\"year\", [1]],\n ] as const\n).flatMap(([unit, sizes]) => sizes.map((size) => ({ unit, size })));\nconst UNIT_MS: Record<ChartTimeUnit, number> = {\n minute: 60_000,\n hour: 3_600_000,\n day: 86_400_000,\n week: 604_800_000,\n month: 2_629_746_000,\n year: 31_556_952_000,\n};\n\n// Wall-clock arithmetic runs on a zone-free calendar: the wall time read as if it were UTC.\nconst floorWall = (wall: number, step: ChartTimeStep): number => {\n const date = new Date(wall);\n const y = date.getUTCFullYear(),\n m = date.getUTCMonth(),\n d = date.getUTCDate();\n if (step.unit === \"minute\") {\n const minutes = Math.floor(date.getUTCMinutes() / step.size) * step.size;\n return Date.UTC(y, m, d, date.getUTCHours(), minutes);\n }\n if (step.unit === \"hour\") return Date.UTC(y, m, d, Math.floor(date.getUTCHours() / step.size) * step.size);\n if (step.unit === \"day\") {\n const day = Date.UTC(y, m, d);\n return day - (Math.floor(day / UNIT_MS.day) % step.size) * UNIT_MS.day;\n }\n // Weeks start on Monday, as Cloud's calendars default to.\n if (step.unit === \"week\") return Date.UTC(y, m, d) - ((date.getUTCDay() + 6) % 7) * UNIT_MS.day;\n if (step.unit === \"month\") return Date.UTC(y, Math.floor(m / step.size) * step.size, 1);\n return Date.UTC(y, 0, 1);\n};\n\nconst nextWall = (wall: number, step: ChartTimeStep): number => {\n const date = new Date(wall);\n if (step.unit === \"month\") return Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + step.size, 1);\n if (step.unit === \"year\") return Date.UTC(date.getUTCFullYear() + step.size, 0, 1);\n return wall + step.size * UNIT_MS[step.unit];\n};\n\n/**\n * How many dates fit along a drawing of this width when the caller names no tick count: one date takes about 56 px\n * (a label such as \"12. Nov.\" and the gap to the next), the Y labels take the first 60 px, and never fewer than five.\n * A box narrower than the drawing then hides every second date (`chart-tick-room.ts`).\n */\nexport const chartTimeTickBudget = (drawWidth: number, ticks?: number): number =>\n ticks !== undefined ? ticks + 2 : Math.max(5, Math.floor((drawWidth - 60) / 56));\n\n/** The round step for a time span: the finest one that keeps at most `maxTicks` ticks. */\nexport const chartTimeStep = (span: number, maxTicks: number): ChartTimeStep =>\n STEPS.find((step) => span / (step.size * UNIT_MS[step.unit]) <= maxTicks) ?? STEPS.at(-1)!;\n\n/** Tick instants inside `domain` that fall on round wall times of `step` in `timeZone`. */\nexport const calendarTimeTicks = (\n domain: readonly [number, number],\n timeZone: string,\n step: ChartTimeStep,\n clock: { wallOf: (instant: number, zone: string) => number; instantOf: (wall: number, zone: string) => number },\n): number[] => {\n const { wallOf, instantOf } = clock;\n const [lo, hi] = domain;\n const ticks: number[] = [];\n // Instants outside the Date range have no wall time; Bun reads their \"NaN-NaN-…\" wall as 2000 and counts from there.\n if ([lo, hi].some((instant) => Number.isNaN(new Date(instant).getTime()))) return ticks;\n // A day that a DST change shortens maps a missing wall time onto the next one; it shows once. The budget counts\n // steps, not ticks, so a step that repeats a tick or does not advance ends too.\n for (let wall = floorWall(wallOf(lo, timeZone), step), steps = 0; steps <= 1_000; steps++) {\n const instant = instantOf(wall, timeZone);\n if (instant > hi) break;\n if (instant >= lo && instant !== ticks.at(-1)) ticks.push(instant);\n const next = nextWall(wall, step);\n if (!(next > wall)) break;\n wall = next;\n }\n return ticks;\n};\n\n/** Default label of a tick: the clock time, the day at local midnight, the month or the year. */\nexport const calendarTimeLabel = (tick: number, step: ChartTimeStep, axis: ChartTimeAxis, midnight: boolean): string => {\n const locale = axis.locale ?? \"en\";\n const options: Intl.DateTimeFormatOptions =\n (step.unit === \"minute\" || step.unit === \"hour\") && !midnight\n ? { hour: \"2-digit\", minute: \"2-digit\", hourCycle: \"h23\" }\n : step.unit === \"month\"\n ? { month: \"short\", year: \"numeric\" }\n : step.unit === \"year\"\n ? { year: \"numeric\" }\n : { day: \"numeric\", month: \"short\" };\n return new Intl.DateTimeFormat(locale, { ...options, timeZone: axis.timeZone }).format(tick);\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAWA;AACA;AACA,MAAM,KAA+B,GACnC,CACE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EACjC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAC1B,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAClB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAChB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EACpB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CACd,CACD,OAA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,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;IAClE,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,EAAE;IACpB,IAAI,GAAG,IAAI;EACb;EACA,OAAO,KAAK;AACd,CAAC;;AAED;AACA,OAAO,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,IAAmB,EAAE,IAAmB,EAAE,QAAiB,KAAa;EACtH,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI;EAClC,MAAM,OAAmC,GACvC,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,KAAK,CAAC,QAAQ,GACzD;IAAE,IAAI,EAAE,SAAS;IAAE,MAAM,EAAE,SAAS;IAAE,SAAS,EAAE;EAAM,CAAC,GACxD,IAAI,CAAC,IAAI,KAAK,OAAO,GACnB;IAAE,KAAK,EAAE,OAAO;IAAE,IAAI,EAAE;EAAU,CAAC,GACnC,IAAI,CAAC,IAAI,KAAK,MAAM,GAClB;IAAE,IAAI,EAAE;EAAU,CAAC,GACnB;IAAE,GAAG,EAAE,SAAS;IAAE,KAAK,EAAE;EAAQ,CAAC;EAC5C,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;IAAE,GAAG,OAAO;IAAE,QAAQ,EAAE,IAAI,CAAC;EAAS,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;AAC9F,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The range of the first place in `root`'s text where `text` occurs, ignoring whitespace, so a passage copied from a
|
|
3
|
+
* selection across lines, paragraphs or list items still finds its words. Returns nothing when it does not occur.
|
|
4
|
+
*/
|
|
5
|
+
export const findTextRange = (root, text) => {
|
|
6
|
+
const needle = text.normalize("NFC").replace(/\s+/gu, "");
|
|
7
|
+
if (!needle) return null;
|
|
8
|
+
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
|
|
9
|
+
const chars = [];
|
|
10
|
+
const places = [];
|
|
11
|
+
for (let node = walker.nextNode(); node; node = walker.nextNode()) {
|
|
12
|
+
const value = node.data.normalize("NFC");
|
|
13
|
+
// Composed and decomposed text map to the same places only when normalizing keeps its length.
|
|
14
|
+
if (value.length !== node.data.length) continue;
|
|
15
|
+
for (let offset = 0; offset < value.length; offset++) {
|
|
16
|
+
if (/\s/u.test(value[offset])) continue;
|
|
17
|
+
chars.push(value[offset]);
|
|
18
|
+
places.push([node, offset]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const at = chars.join("").indexOf(needle);
|
|
22
|
+
if (at < 0) return null;
|
|
23
|
+
const [startNode, startOffset] = places[at];
|
|
24
|
+
const [endNode, endOffset] = places[at + needle.length - 1];
|
|
25
|
+
const range = document.createRange();
|
|
26
|
+
range.setStart(startNode, startOffset);
|
|
27
|
+
range.setEnd(endNode, endOffset + 1);
|
|
28
|
+
return range;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Tints the passage `text` in `root` with the CSS highlight `name` and returns what removes it, or nothing where the
|
|
33
|
+
* passage is missing or the browser has no CSS Custom Highlight API.
|
|
34
|
+
*/
|
|
35
|
+
export const highlightTextPassage = (root, text, name) => {
|
|
36
|
+
if (typeof CSS === "undefined" || !("highlights" in CSS) || typeof Highlight === "undefined") return null;
|
|
37
|
+
// Names, times and quotes around the text are no passage when the item marks its text.
|
|
38
|
+
const scopes = root instanceof Element ? [...root.querySelectorAll("[data-k2b-passage]")] : [];
|
|
39
|
+
const range = scopes.length ? scopes.map(scope => findTextRange(scope, text)).find(Boolean) ?? null : findTextRange(root, text);
|
|
40
|
+
if (!range) return null;
|
|
41
|
+
const highlight = new Highlight(range);
|
|
42
|
+
CSS.highlights.set(name, highlight);
|
|
43
|
+
return () => {
|
|
44
|
+
if (CSS.highlights.get(name) === highlight) CSS.highlights.delete(name);
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=find-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/find-text.ts"],"sourcesContent":["/**\n * The range of the first place in `root`'s text where `text` occurs, ignoring whitespace, so a passage copied from a\n * selection across lines, paragraphs or list items still finds its words. Returns nothing when it does not occur.\n */\nexport const findTextRange = (root: Node, text: string): Range | null => {\n const needle = text.normalize(\"NFC\").replace(/\\s+/gu, \"\");\n if (!needle) return null;\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);\n const chars: string[] = [];\n const places: [Text, number][] = [];\n for (let node = walker.nextNode() as Text | null; node; node = walker.nextNode() as Text | null) {\n const value = node.data.normalize(\"NFC\");\n // Composed and decomposed text map to the same places only when normalizing keeps its length.\n if (value.length !== node.data.length) continue;\n for (let offset = 0; offset < value.length; offset++) {\n if (/\\s/u.test(value[offset]!)) continue;\n chars.push(value[offset]!);\n places.push([node, offset]);\n }\n }\n const at = chars.join(\"\").indexOf(needle);\n if (at < 0) return null;\n const [startNode, startOffset] = places[at]!;\n const [endNode, endOffset] = places[at + needle.length - 1]!;\n const range = document.createRange();\n range.setStart(startNode, startOffset);\n range.setEnd(endNode, endOffset + 1);\n return range;\n};\n\n/**\n * Tints the passage `text` in `root` with the CSS highlight `name` and returns what removes it, or nothing where the\n * passage is missing or the browser has no CSS Custom Highlight API.\n */\nexport const highlightTextPassage = (root: Node, text: string, name: string): (() => void) | null => {\n if (typeof CSS === \"undefined\" || !(\"highlights\" in CSS) || typeof Highlight === \"undefined\") return null;\n // Names, times and quotes around the text are no passage when the item marks its text.\n const scopes = root instanceof Element ? [...root.querySelectorAll(\"[data-k2b-passage]\")] : [];\n const range = scopes.length ? (scopes.map((scope) => findTextRange(scope, text)).find(Boolean) ?? null) : findTextRange(root, text);\n if (!range) return null;\n const highlight = new Highlight(range);\n CSS.highlights.set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@ -1,3 +1,4 @@
|
|
|
1
|
+
export { ActivityCard, ActivityList, openActivityDialog } from "./ActivityList";
|
|
1
2
|
export { BalanceSummary } from "./BalanceSummary";
|
|
2
3
|
export { default as Calendar } from "./Calendar";
|
|
3
4
|
export { default as Chart } from "./Chart";
|
|
@@ -50,6 +51,7 @@ export { ProgressPath } from "./ProgressPath";
|
|
|
50
51
|
export { default as RangePicker } from "./RangePicker";
|
|
51
52
|
export { ReactionBar } from "./ReactionBar";
|
|
52
53
|
export { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from "./ReferenceChip";
|
|
54
|
+
export { RunLog } from "./RunLog";
|
|
53
55
|
export { Steps } from "./Steps";
|
|
54
56
|
export { default as StructuredDataPreview, isStructuredDataValue } from "./StructuredDataPreview";
|
|
55
57
|
export { ThumbnailStrip } from "./ThumbnailStrip";
|
|
@@ -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 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 { ProgressPath, type ProgressPathProps, type ProgressPathStep } from \"./ProgressPath\";\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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e,QAAQ,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/index.ts"],"sourcesContent":["export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from \"../charts/core\";\nexport {\n type ActivityAction,\n ActivityCard,\n type ActivityCardProps,\n type ActivityDensity,\n type ActivityDialogInput,\n type ActivityEntry,\n type ActivityKind,\n ActivityList,\n type ActivityListProps,\n type ActivityTone,\n openActivityDialog,\n} from \"./ActivityList\";\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 { ProgressPath, type ProgressPathProps, type ProgressPathStep } from \"./ProgressPath\";\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 {\n type RunEntry,\n type RunLevel,\n RunLog,\n type RunLogAction,\n type RunLogEntry,\n type RunLogProps,\n type RunLogState,\n type RunStepEntry,\n} from \"./RunLog\";\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,SAEE,YAAY,EAMZ,YAAY,EAGZ,kBAAkB,QACb,gBAAgB;AACvB,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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and timelines that never quote carry none of them.
|
|
5
|
+
const quoteMessages = i18n.define({
|
|
6
|
+
baseLocale: "en",
|
|
7
|
+
messages: {
|
|
8
|
+
en: {
|
|
9
|
+
quoteFrom: "Quote from",
|
|
10
|
+
removeQuote: "Remove quote"
|
|
11
|
+
},
|
|
12
|
+
de: {
|
|
13
|
+
quoteFrom: "Zitat von",
|
|
14
|
+
removeQuote: "Zitat entfernen"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
/** Resolved from the inherited render locale. */
|
|
20
|
+
export const useQuoteMessages = () => {
|
|
21
|
+
const locale = useLocale();
|
|
22
|
+
return () => quoteMessages.resolve([locale()]).t;
|
|
23
|
+
};
|
|
24
|
+
export const checkQuoteMessages = () => quoteMessages.check();
|
|
25
|
+
//# sourceMappingURL=quote-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/quote-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\n// Only quotes use these, so composers and timelines that never quote carry none of them.\nconst quoteMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: { quoteFrom: \"Quote from\", removeQuote: \"Remove quote\" },\n de: { quoteFrom: \"Zitat von\", removeQuote: \"Zitat entfernen\" },\n },\n});\n\n/** Resolved from the inherited render locale. */\nexport const useQuoteMessages = () => {\n const locale = useLocale();\n return () => quoteMessages.resolve([locale()]).t;\n};\n\nexport const checkQuoteMessages = () => quoteMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;;AAE1C;AACA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC;EAChC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MAAE,SAAS,EAAE,YAAY;MAAE,WAAW,EAAE;IAAe,CAAC;IAC5D,EAAE,EAAE;MAAE,SAAS,EAAE,WAAW;MAAE,WAAW,EAAE;IAAkB;EAC/D;AACF,CAAC,CAAC;;AAEF;AACA,OAAO,MAAM,gBAAgB,GAAG,MAAM;EACpC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,OAAO,MAAM,kBAAkB,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { i18n } from "@k2b/stdlib";
|
|
2
|
+
import { useLocale } from "../intl/locale";
|
|
3
|
+
const messages = i18n.define({
|
|
4
|
+
baseLocale: "en",
|
|
5
|
+
messages: {
|
|
6
|
+
en: {
|
|
7
|
+
run: "Run",
|
|
8
|
+
idle: "Not run yet",
|
|
9
|
+
starting: "Starting …",
|
|
10
|
+
running: "Running",
|
|
11
|
+
since: ({
|
|
12
|
+
duration
|
|
13
|
+
}) => `Running for ${duration}`,
|
|
14
|
+
succeeded: "Done",
|
|
15
|
+
doneAfter: ({
|
|
16
|
+
duration
|
|
17
|
+
}) => `Done in ${duration}`,
|
|
18
|
+
failed: "Failed",
|
|
19
|
+
failedAfter: ({
|
|
20
|
+
duration
|
|
21
|
+
}) => `Failed after ${duration}`,
|
|
22
|
+
pending: "pending",
|
|
23
|
+
active: "running",
|
|
24
|
+
completed: "succeeded",
|
|
25
|
+
skipped: "skipped",
|
|
26
|
+
stepFailed: "failed",
|
|
27
|
+
output: "Output",
|
|
28
|
+
noLines: "no lines yet",
|
|
29
|
+
lines: ({
|
|
30
|
+
count
|
|
31
|
+
}) => `${count} lines`,
|
|
32
|
+
line: "1 line",
|
|
33
|
+
warnings: ({
|
|
34
|
+
count
|
|
35
|
+
}) => `${count} warnings`,
|
|
36
|
+
warning: "1 warning",
|
|
37
|
+
warningLevel: "Warning",
|
|
38
|
+
errors: ({
|
|
39
|
+
count
|
|
40
|
+
}) => `${count} errors`,
|
|
41
|
+
error: "1 error",
|
|
42
|
+
errorLevel: "Error",
|
|
43
|
+
older: ({
|
|
44
|
+
count
|
|
45
|
+
}) => `Show ${count} older lines`,
|
|
46
|
+
earlier: ({
|
|
47
|
+
count
|
|
48
|
+
}) => `Show ${count} earlier steps`,
|
|
49
|
+
later: ({
|
|
50
|
+
count
|
|
51
|
+
}) => `Show ${count} more steps`,
|
|
52
|
+
current: "Show current steps",
|
|
53
|
+
details: ({
|
|
54
|
+
label
|
|
55
|
+
}) => `Details for ${label}`,
|
|
56
|
+
toggle: "Expand or collapse run",
|
|
57
|
+
actions: "Actions",
|
|
58
|
+
progress: ({
|
|
59
|
+
current,
|
|
60
|
+
count
|
|
61
|
+
}) => `Step ${current} of ${count}`,
|
|
62
|
+
steps: ({
|
|
63
|
+
count
|
|
64
|
+
}) => `${count} steps`,
|
|
65
|
+
step: "1 step"
|
|
66
|
+
},
|
|
67
|
+
de: {
|
|
68
|
+
run: "Lauf",
|
|
69
|
+
idle: "Noch nicht ausgeführt",
|
|
70
|
+
starting: "Startet …",
|
|
71
|
+
running: "Läuft",
|
|
72
|
+
since: ({
|
|
73
|
+
duration
|
|
74
|
+
}) => `Läuft seit ${duration}`,
|
|
75
|
+
succeeded: "Fertig",
|
|
76
|
+
doneAfter: ({
|
|
77
|
+
duration
|
|
78
|
+
}) => `Fertig nach ${duration}`,
|
|
79
|
+
failed: "Gescheitert",
|
|
80
|
+
failedAfter: ({
|
|
81
|
+
duration
|
|
82
|
+
}) => `Gescheitert nach ${duration}`,
|
|
83
|
+
pending: "ausstehend",
|
|
84
|
+
active: "läuft",
|
|
85
|
+
completed: "erledigt",
|
|
86
|
+
skipped: "übersprungen",
|
|
87
|
+
stepFailed: "fehlgeschlagen",
|
|
88
|
+
output: "Ausgabe",
|
|
89
|
+
noLines: "noch keine Zeilen",
|
|
90
|
+
lines: ({
|
|
91
|
+
count
|
|
92
|
+
}) => `${count} Zeilen`,
|
|
93
|
+
line: "1 Zeile",
|
|
94
|
+
warnings: ({
|
|
95
|
+
count
|
|
96
|
+
}) => `${count} Warnungen`,
|
|
97
|
+
warning: "1 Warnung",
|
|
98
|
+
warningLevel: "Warnung",
|
|
99
|
+
errors: ({
|
|
100
|
+
count
|
|
101
|
+
}) => `${count} Fehler`,
|
|
102
|
+
error: "1 Fehler",
|
|
103
|
+
errorLevel: "Fehler",
|
|
104
|
+
older: ({
|
|
105
|
+
count
|
|
106
|
+
}) => `${count} ältere Zeilen anzeigen`,
|
|
107
|
+
earlier: ({
|
|
108
|
+
count
|
|
109
|
+
}) => `${count} frühere Schritte anzeigen`,
|
|
110
|
+
later: ({
|
|
111
|
+
count
|
|
112
|
+
}) => `${count} weitere Schritte anzeigen`,
|
|
113
|
+
current: "Aktuelle Schritte anzeigen",
|
|
114
|
+
details: ({
|
|
115
|
+
label
|
|
116
|
+
}) => `Details zu ${label}`,
|
|
117
|
+
toggle: "Lauf auf- oder zuklappen",
|
|
118
|
+
actions: "Aktionen",
|
|
119
|
+
progress: ({
|
|
120
|
+
current,
|
|
121
|
+
count
|
|
122
|
+
}) => `Schritt ${current} von ${count}`,
|
|
123
|
+
steps: ({
|
|
124
|
+
count
|
|
125
|
+
}) => `${count} Schritte`,
|
|
126
|
+
step: "1 Schritt"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export function useRunLogMessages() {
|
|
131
|
+
const locale = useLocale();
|
|
132
|
+
return () => messages.resolve([locale()]).t;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=run-log-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/run-log-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\nconst messages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: {\n run: \"Run\",\n idle: \"Not run yet\",\n starting: \"Starting …\",\n running: \"Running\",\n since: ({ duration }: { duration: string }) => `Running for ${duration}`,\n succeeded: \"Done\",\n doneAfter: ({ duration }: { duration: string }) => `Done in ${duration}`,\n failed: \"Failed\",\n failedAfter: ({ duration }: { duration: string }) => `Failed after ${duration}`,\n pending: \"pending\",\n active: \"running\",\n completed: \"succeeded\",\n skipped: \"skipped\",\n stepFailed: \"failed\",\n output: \"Output\",\n noLines: \"no lines yet\",\n lines: ({ count }: { count: number }) => `${count} lines`,\n line: \"1 line\",\n warnings: ({ count }: { count: number }) => `${count} warnings`,\n warning: \"1 warning\",\n warningLevel: \"Warning\",\n errors: ({ count }: { count: number }) => `${count} errors`,\n error: \"1 error\",\n errorLevel: \"Error\",\n older: ({ count }: { count: number }) => `Show ${count} older lines`,\n earlier: ({ count }: { count: number }) => `Show ${count} earlier steps`,\n later: ({ count }: { count: number }) => `Show ${count} more steps`,\n current: \"Show current steps\",\n details: ({ label }: { label: string }) => `Details for ${label}`,\n toggle: \"Expand or collapse run\",\n actions: \"Actions\",\n progress: ({ current, count }: { current: number; count: number }) => `Step ${current} of ${count}`,\n steps: ({ count }: { count: number }) => `${count} steps`,\n step: \"1 step\",\n },\n de: {\n run: \"Lauf\",\n idle: \"Noch nicht ausgeführt\",\n starting: \"Startet …\",\n running: \"Läuft\",\n since: ({ duration }) => `Läuft seit ${duration}`,\n succeeded: \"Fertig\",\n doneAfter: ({ duration }) => `Fertig nach ${duration}`,\n failed: \"Gescheitert\",\n failedAfter: ({ duration }) => `Gescheitert nach ${duration}`,\n pending: \"ausstehend\",\n active: \"läuft\",\n completed: \"erledigt\",\n skipped: \"übersprungen\",\n stepFailed: \"fehlgeschlagen\",\n output: \"Ausgabe\",\n noLines: \"noch keine Zeilen\",\n lines: ({ count }) => `${count} Zeilen`,\n line: \"1 Zeile\",\n warnings: ({ count }) => `${count} Warnungen`,\n warning: \"1 Warnung\",\n warningLevel: \"Warnung\",\n errors: ({ count }) => `${count} Fehler`,\n error: \"1 Fehler\",\n errorLevel: \"Fehler\",\n older: ({ count }) => `${count} ältere Zeilen anzeigen`,\n earlier: ({ count }) => `${count} frühere Schritte anzeigen`,\n later: ({ count }) => `${count} weitere Schritte anzeigen`,\n current: \"Aktuelle Schritte anzeigen\",\n details: ({ label }) => `Details zu ${label}`,\n toggle: \"Lauf auf- oder zuklappen\",\n actions: \"Aktionen\",\n progress: ({ current, count }) => `Schritt ${current} von ${count}`,\n steps: ({ count }) => `${count} Schritte`,\n step: \"1 Schritt\",\n },\n },\n});\n\nexport function useRunLogMessages() {\n const locale = useLocale();\n return () => messages.resolve([locale()]).t;\n}\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;AAE1C,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;EAC3B,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MACF,GAAG,EAAE,KAAK;MACV,IAAI,EAAE,aAAa;MACnB,QAAQ,EAAE,YAAY;MACtB,OAAO,EAAE,SAAS;MAClB,KAAK,EAAE,CAAC;QAAE;MAA+B,CAAC,KAAK,eAAe,QAAQ,EAAE;MACxE,SAAS,EAAE,MAAM;MACjB,SAAS,EAAE,CAAC;QAAE;MAA+B,CAAC,KAAK,WAAW,QAAQ,EAAE;MACxE,MAAM,EAAE,QAAQ;MAChB,WAAW,EAAE,CAAC;QAAE;MAA+B,CAAC,KAAK,gBAAgB,QAAQ,EAAE;MAC/E,OAAO,EAAE,SAAS;MAClB,MAAM,EAAE,SAAS;MACjB,SAAS,EAAE,WAAW;MACtB,OAAO,EAAE,SAAS;MAClB,UAAU,EAAE,QAAQ;MACpB,MAAM,EAAE,QAAQ;MAChB,OAAO,EAAE,cAAc;MACvB,KAAK,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAK,GAAG,KAAK,QAAQ;MACzD,IAAI,EAAE,QAAQ;MACd,QAAQ,EAAE,CAAC;QAAE;MAAyB,CAAC,KAAK,GAAG,KAAK,W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