@k2b/ui 0.58.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.css +1 -0
- package/dist/browser/actions/CommandList.js +67 -74
- package/dist/browser/actions/CommandList.js.map +1 -1
- package/dist/browser/actions/ContextMenu.js +16 -4
- 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/Tabs.js +58 -19
- package/dist/browser/actions/Tabs.js.map +1 -1
- package/dist/browser/actions/Toolbar.js +66 -60
- package/dist/browser/actions/Toolbar.js.map +1 -1
- package/dist/browser/actions/ViewTabs.js +89 -73
- package/dist/browser/actions/ViewTabs.js.map +1 -1
- package/dist/browser/actions/command-items.js.map +1 -1
- package/dist/browser/actions/drag-and-drop.js +2 -1
- package/dist/browser/actions/drag-and-drop.js.map +1 -1
- package/dist/browser/actions/index.js +1 -0
- package/dist/browser/actions/index.js.map +1 -1
- package/dist/browser/actions/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/charts/core/snapshot.js +3 -1
- package/dist/browser/charts/core/snapshot.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 +857 -679
- 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/ChatContextPopup.js +34 -4
- package/dist/browser/chat/ChatContextPopup.js.map +1 -1
- package/dist/browser/chat/ChatPrimitives.js +559 -336
- package/dist/browser/chat/ChatPrimitives.js.map +1 -1
- package/dist/browser/chat/ChatTasks.js +218 -80
- package/dist/browser/chat/ChatTasks.js.map +1 -1
- package/dist/browser/chat/ChatTimeline.js +5 -3
- package/dist/browser/chat/ChatTimeline.js.map +1 -1
- package/dist/browser/chat/chat-behavior.js +12 -0
- package/dist/browser/chat/chat-behavior.js.map +1 -1
- package/dist/browser/chat/chat-messages.js +50 -2
- package/dist/browser/chat/chat-messages.js.map +1 -1
- package/dist/browser/chat/index.js +6 -2
- package/dist/browser/chat/index.js.map +1 -1
- package/dist/browser/chat/types.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/Calendar.js +2 -2
- package/dist/browser/content/Calendar.js.map +1 -1
- package/dist/browser/content/CalendarWeekView.js +9 -2
- package/dist/browser/content/CalendarWeekView.js.map +1 -1
- package/dist/browser/content/ChartRoot.js +4 -1
- package/dist/browser/content/ChartRoot.js.map +1 -1
- package/dist/browser/content/DataTable.js +9 -0
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/DataTableTools.js +3 -0
- package/dist/browser/content/DataTableTools.js.map +1 -1
- package/dist/browser/content/Lightbox.js +4 -2
- 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 +1 -0
- package/dist/browser/content/PdfPages.js.map +1 -1
- package/dist/browser/content/ProgressPath.js +101 -0
- package/dist/browser/content/ProgressPath.js.map +1 -0
- package/dist/browser/content/Timeline.js +1 -1
- package/dist/browser/content/Timeline.js.map +1 -1
- 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-tick-room.js +59 -0
- package/dist/browser/content/chart-tick-room.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/feedback/HoverCard.js +535 -0
- package/dist/browser/feedback/HoverCard.js.map +1 -0
- package/dist/browser/feedback/Tooltip.js +5 -2
- package/dist/browser/feedback/Tooltip.js.map +1 -1
- package/dist/browser/feedback/dialog-core.js +129 -21
- 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/index.js +1 -0
- package/dist/browser/feedback/index.js.map +1 -1
- package/dist/browser/feedback/prompt-confirm.js +3 -17
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/feedback/prompt-sheet-view.js +96 -0
- package/dist/browser/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/browser/feedback/prompt-sheet.js +36 -0
- package/dist/browser/feedback/prompt-sheet.js.map +1 -0
- package/dist/browser/feedback/prompts.js +63 -91
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/feedback/toast.js +17 -12
- 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/anchor-placement.js +38 -0
- package/dist/browser/internal/anchor-placement.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/portal-scope.js +36 -0
- package/dist/browser/internal/portal-scope.js.map +1 -0
- package/dist/browser/internal/portal.js +13 -10
- package/dist/browser/internal/portal.js.map +1 -1
- package/dist/browser/internal/scroll-places.js +15 -0
- package/dist/browser/internal/scroll-places.js.map +1 -0
- package/dist/browser/intl/messages.js +10 -0
- package/dist/browser/intl/messages.js.map +1 -1
- package/dist/browser/layout/AnchoredPopover.js +10 -25
- package/dist/browser/layout/AnchoredPopover.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +572 -495
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/BottomSheet.js +1 -24
- package/dist/browser/layout/BottomSheet.js.map +1 -1
- package/dist/browser/layout/Discussion.js +298 -3
- package/dist/browser/layout/Discussion.js.map +1 -1
- package/dist/browser/layout/FloatingWindow.js +2 -0
- package/dist/browser/layout/FloatingWindow.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/Panes.js +3 -0
- package/dist/browser/layout/Panes.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/panes-preview-scope.js +9 -0
- package/dist/browser/layout/panes-preview-scope.js.map +1 -0
- package/dist/browser/layout/sheet-handle.js +173 -37
- package/dist/browser/layout/sheet-handle.js.map +1 -1
- package/dist/browser/layout/sheet-motion.js +37 -5
- 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/panes.js +3 -0
- package/dist/browser/panes.js.map +1 -0
- package/dist/browser/surfaces/AvatarStack.js +59 -43
- package/dist/browser/surfaces/AvatarStack.js.map +1 -1
- package/dist/browser/surfaces/ChangeList.js +78 -16
- package/dist/browser/surfaces/ChangeList.js.map +1 -1
- package/dist/browser/surfaces/DotStrip.js +126 -41
- package/dist/browser/surfaces/DotStrip.js.map +1 -1
- package/dist/browser/surfaces/LinkCard.js +69 -16
- 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 +9 -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/Tabs.js +21 -6
- package/dist/ssr/actions/Tabs.js.map +1 -1
- package/dist/ssr/actions/Toolbar.js +24 -18
- package/dist/ssr/actions/Toolbar.js.map +1 -1
- package/dist/ssr/actions/ViewTabs.js +27 -20
- package/dist/ssr/actions/ViewTabs.js.map +1 -1
- package/dist/ssr/actions/command-items.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop.js +2 -1
- package/dist/ssr/actions/drag-and-drop.js.map +1 -1
- package/dist/ssr/actions/index.js +1 -0
- package/dist/ssr/actions/index.js.map +1 -1
- package/dist/ssr/actions/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/charts/core/snapshot.js +3 -1
- package/dist/ssr/charts/core/snapshot.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 +271 -142
- 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/ChatContextPopup.js +17 -1
- package/dist/ssr/chat/ChatContextPopup.js.map +1 -1
- package/dist/ssr/chat/ChatPrimitives.js +213 -79
- package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
- package/dist/ssr/chat/ChatTasks.js +117 -27
- package/dist/ssr/chat/ChatTasks.js.map +1 -1
- package/dist/ssr/chat/ChatTimeline.js +5 -3
- package/dist/ssr/chat/ChatTimeline.js.map +1 -1
- package/dist/ssr/chat/chat-behavior.js +12 -0
- package/dist/ssr/chat/chat-behavior.js.map +1 -1
- package/dist/ssr/chat/chat-messages.js +50 -2
- package/dist/ssr/chat/chat-messages.js.map +1 -1
- package/dist/ssr/chat/index.js +6 -2
- package/dist/ssr/chat/index.js.map +1 -1
- package/dist/ssr/chat/types.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/Calendar.js +2 -2
- package/dist/ssr/content/Calendar.js.map +1 -1
- package/dist/ssr/content/CalendarWeekView.js +9 -2
- package/dist/ssr/content/CalendarWeekView.js.map +1 -1
- package/dist/ssr/content/ChartRoot.js +4 -1
- package/dist/ssr/content/ChartRoot.js.map +1 -1
- package/dist/ssr/content/DataTable.js +9 -0
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/DataTableTools.js +3 -0
- package/dist/ssr/content/DataTableTools.js.map +1 -1
- package/dist/ssr/content/Lightbox.js +4 -2
- 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 +1 -0
- package/dist/ssr/content/PdfPages.js.map +1 -1
- package/dist/ssr/content/ProgressPath.js +51 -0
- package/dist/ssr/content/ProgressPath.js.map +1 -0
- package/dist/ssr/content/Timeline.js +1 -1
- package/dist/ssr/content/Timeline.js.map +1 -1
- 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-tick-room.js +59 -0
- package/dist/ssr/content/chart-tick-room.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/feedback/HoverCard.js +473 -0
- package/dist/ssr/feedback/HoverCard.js.map +1 -0
- package/dist/ssr/feedback/Tooltip.js +5 -2
- package/dist/ssr/feedback/Tooltip.js.map +1 -1
- package/dist/ssr/feedback/dialog-core.js +129 -21
- 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/index.js +1 -0
- package/dist/ssr/feedback/index.js.map +1 -1
- package/dist/ssr/feedback/prompt-confirm.js +3 -17
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/feedback/prompt-sheet-view.js +62 -0
- package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -0
- package/dist/ssr/feedback/prompt-sheet.js +36 -0
- package/dist/ssr/feedback/prompt-sheet.js.map +1 -0
- package/dist/ssr/feedback/prompts.js +28 -52
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/feedback/toast.js +17 -12
- 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/anchor-placement.js +38 -0
- package/dist/ssr/internal/anchor-placement.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/portal-scope.js +36 -0
- package/dist/ssr/internal/portal-scope.js.map +1 -0
- package/dist/ssr/internal/portal.js +13 -10
- package/dist/ssr/internal/portal.js.map +1 -1
- package/dist/ssr/internal/scroll-places.js +15 -0
- package/dist/ssr/internal/scroll-places.js.map +1 -0
- package/dist/ssr/intl/messages.js +10 -0
- package/dist/ssr/intl/messages.js.map +1 -1
- package/dist/ssr/layout/AnchoredPopover.js +10 -25
- package/dist/ssr/layout/AnchoredPopover.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +191 -121
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/BottomSheet.js +1 -24
- package/dist/ssr/layout/BottomSheet.js.map +1 -1
- package/dist/ssr/layout/Discussion.js +168 -2
- package/dist/ssr/layout/Discussion.js.map +1 -1
- package/dist/ssr/layout/FloatingWindow.js +2 -0
- package/dist/ssr/layout/FloatingWindow.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/Panes.js +3 -0
- package/dist/ssr/layout/Panes.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/panes-preview-scope.js +9 -0
- package/dist/ssr/layout/panes-preview-scope.js.map +1 -0
- package/dist/ssr/layout/sheet-handle.js +173 -37
- package/dist/ssr/layout/sheet-handle.js.map +1 -1
- package/dist/ssr/layout/sheet-motion.js +37 -5
- 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/panes.js +3 -0
- package/dist/ssr/panes.js.map +1 -0
- package/dist/ssr/surfaces/AvatarStack.js +56 -40
- package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
- package/dist/ssr/surfaces/ChangeList.js +37 -5
- package/dist/ssr/surfaces/ChangeList.js.map +1 -1
- package/dist/ssr/surfaces/DotStrip.js +75 -12
- package/dist/ssr/surfaces/DotStrip.js.map +1 -1
- package/dist/ssr/surfaces/LinkCard.js +46 -7
- 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/Tabs.d.ts +9 -0
- package/dist/types/actions/ViewTabs.d.ts +2 -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 +41 -3
- package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
- package/dist/types/chat/ChatPrimitives.d.ts +23 -2
- package/dist/types/chat/ChatTasks.d.ts +14 -1
- package/dist/types/chat/chat-behavior.d.ts +14 -0
- package/dist/types/chat/chat-messages.d.ts +24 -0
- package/dist/types/chat/index.d.ts +10 -5
- package/dist/types/chat/types.d.ts +27 -0
- package/dist/types/content/ActivityList.d.ts +166 -0
- package/dist/types/content/DataTableTools.d.ts +2 -0
- package/dist/types/content/MessageQuote.d.ts +9 -0
- package/dist/types/content/MessageRow.d.ts +5 -0
- package/dist/types/content/ProgressPath.d.ts +25 -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-tick-room.d.ts +15 -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/feedback/HoverCard.d.ts +44 -0
- package/dist/types/feedback/Tooltip.d.ts +5 -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/index.d.ts +2 -0
- package/dist/types/feedback/prompt-confirm.d.ts +0 -2
- package/dist/types/feedback/prompt-sheet-view.d.ts +3 -0
- package/dist/types/feedback/prompt-sheet.d.ts +20 -0
- package/dist/types/feedback/prompts.d.ts +5 -0
- package/dist/types/feedback/toast.d.ts +5 -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/anchor-placement.d.ts +23 -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/portal-scope.d.ts +11 -0
- package/dist/types/internal/portal.d.ts +1 -1
- package/dist/types/internal/scroll-places.d.ts +2 -0
- package/dist/types/intl/messages.d.ts +5 -0
- package/dist/types/layout/AppWorkspace.d.ts +10 -0
- package/dist/types/layout/BottomSheet.d.ts +1 -18
- package/dist/types/layout/Discussion.d.ts +25 -0
- package/dist/types/layout/Panes.d.ts +6 -0
- 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 +4 -3
- package/dist/types/layout/panes-preview-scope.d.ts +2 -0
- package/dist/types/layout/sheet-handle.d.ts +17 -8
- package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
- package/dist/types/panes.d.ts +2 -0
- package/dist/types/surfaces/ChangeList.d.ts +23 -4
- package/dist/types/surfaces/DotStrip.d.ts +25 -5
- package/dist/types/surfaces/LinkCard.d.ts +14 -0
- 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 +18 -5
|
@@ -21,6 +21,11 @@ export type DropdownActionBase = {
|
|
|
21
21
|
*/
|
|
22
22
|
ariaLabel?: string;
|
|
23
23
|
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
|
|
26
|
+
* It shows only with a `description`, which stays the text that search and screen readers use.
|
|
27
|
+
*/
|
|
28
|
+
descriptionVisual?: () => JSX.Element;
|
|
24
29
|
/** Quiet trailing information, such as a count. */
|
|
25
30
|
trailing?: JSX.Element;
|
|
26
31
|
/** `danger` for destructive entries; `accent` for the entry most people want, such as creating a blank item. */
|
|
@@ -176,6 +181,11 @@ export type DropdownItemProps = {
|
|
|
176
181
|
icon?: string;
|
|
177
182
|
image?: string;
|
|
178
183
|
description?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
|
|
186
|
+
* It shows only with a `description`, which stays the text that search and screen readers use.
|
|
187
|
+
*/
|
|
188
|
+
descriptionVisual?: () => JSX.Element;
|
|
179
189
|
/** Quiet trailing information, such as a count. */
|
|
180
190
|
trailing?: JSX.Element;
|
|
181
191
|
disabled?: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
export type SelectionActionSelection = {
|
|
3
|
+
/** The selected text, with each run of whitespace as one space and trimmed. */
|
|
4
|
+
text: string;
|
|
5
|
+
/** The part of the root that holds the whole selection, as `within` returned it. */
|
|
6
|
+
element: HTMLElement;
|
|
7
|
+
};
|
|
8
|
+
export type SelectionActionProps = {
|
|
9
|
+
/** The element whose text selections offer the action, such as a message history. */
|
|
10
|
+
root: HTMLElement;
|
|
11
|
+
/**
|
|
12
|
+
* The part one selection may lie in, such as the text of one message. It receives the selection's start and end
|
|
13
|
+
* nodes and returns their part, or nothing. A selection whose start and end lie in different parts, or outside every
|
|
14
|
+
* part, offers nothing. Without it, the whole root is one part.
|
|
15
|
+
*/
|
|
16
|
+
within?: (node: Node) => HTMLElement | null | undefined;
|
|
17
|
+
/** The action's name, shown beside its icon, such as "Quote". */
|
|
18
|
+
label: string;
|
|
19
|
+
/** The action's icon class, such as "ti ti-quote". */
|
|
20
|
+
icon: string;
|
|
21
|
+
/** Runs with the selection when the person presses the action; the selection is cleared afterwards. */
|
|
22
|
+
onAction: (selection: SelectionActionSelection) => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* One action for selected text, such as "Quote", as a small pill at the selection. It lies in the top layer, so it
|
|
26
|
+
* never moves the page, and pressing it keeps the selection. It appears once the pointer lets go of a selection inside
|
|
27
|
+
* `root`, or at once for a selection made with the keyboard. Tab right after the selection moves the focus to the pill,
|
|
28
|
+
* Enter runs it, and Tab or Escape returns the focus. Escape also closes the pill for that selection. On touch screens
|
|
29
|
+
* it sits below the selection, clear of the system's own selection menu above it.
|
|
30
|
+
*
|
|
31
|
+
* It listens to the document's selection only while it is mounted, so an application can load it on the first
|
|
32
|
+
* selection and keep its code out of the first page.
|
|
33
|
+
*/
|
|
34
|
+
export declare function SelectionAction(props: SelectionActionProps): JSX.Element;
|
|
@@ -6,6 +6,15 @@ export type TabOption<T extends string = string> = {
|
|
|
6
6
|
icon?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
panel?: JSX.Element;
|
|
9
|
+
/** A small count after the label, such as "3" or "+2 −1", in tabular figures. */
|
|
10
|
+
count?: JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* The widest the count gets, such as "99" or "+99 −99": the count keeps this width, so the tab and its neighbours
|
|
13
|
+
* never move when the number changes.
|
|
14
|
+
*/
|
|
15
|
+
countReserve?: string;
|
|
16
|
+
/** What the count says for assistive technology, such as "3 comments" or "2 lines added, 1 removed". */
|
|
17
|
+
countLabel?: string;
|
|
9
18
|
onClose?: () => void;
|
|
10
19
|
closeLabel?: string;
|
|
11
20
|
};
|
|
@@ -5,6 +5,8 @@ export type ViewTab = {
|
|
|
5
5
|
href: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
count?: number | string;
|
|
8
|
+
/** The widest the count gets, such as "99": the count keeps this width, so no tab moves when the number changes. */
|
|
9
|
+
countReserve?: string;
|
|
8
10
|
/** A short quiet label after the count, such as "New" for a view people have not opened yet. */
|
|
9
11
|
badge?: string;
|
|
10
12
|
/** Stays in the strip after More at every width, for a view of another kind than the ones that overflow. */
|
|
@@ -16,6 +16,11 @@ export type CommandItem = {
|
|
|
16
16
|
group?: string;
|
|
17
17
|
/** One quiet line of what the entry does, after the label on the same line, such as "Preis aus dem Text prüfen". */
|
|
18
18
|
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
|
|
21
|
+
* It shows only with a `description`, which stays the text that search and screen readers use.
|
|
22
|
+
*/
|
|
23
|
+
descriptionVisual?: () => JSX.Element;
|
|
19
24
|
/** Quiet text at the end of the row, such as what a person can type: `/telefonat`. It is searched, too. */
|
|
20
25
|
hint?: string;
|
|
21
26
|
/** Tabler icon class, such as `ti ti-phone`. */
|
|
@@ -21,6 +21,8 @@ export type { RemoveButtonProps } from "./RemoveButton";
|
|
|
21
21
|
export { RemoveButton } from "./RemoveButton";
|
|
22
22
|
export type { SegmentedControlProps, SegmentOption } from "./SegmentedControl";
|
|
23
23
|
export { SegmentedControl } from "./SegmentedControl";
|
|
24
|
+
export type { SelectionActionProps, SelectionActionSelection } from "./SelectionAction";
|
|
25
|
+
export { SelectionAction } from "./SelectionAction";
|
|
24
26
|
export type { SelectionToolbarProps } from "./SelectionToolbar";
|
|
25
27
|
export { SelectionToolbar } from "./SelectionToolbar";
|
|
26
28
|
export type { SortableListProps } from "./SortableList";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MenuSheetOptions } from "./menu-sheet";
|
|
2
|
+
type MenuSheet = typeof import("./menu-sheet");
|
|
3
|
+
/** Loads the phone menu sheet's code once; a wide screen that never opens a sheet never loads it. */
|
|
4
|
+
export declare const loadMenuSheet: () => Promise<MenuSheet>;
|
|
5
|
+
/** Whether the sheet's code is here, so a sheet opens at once rather than waiting for it. */
|
|
6
|
+
export declare const menuSheetReady: () => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Opens a menu as a bottom sheet: at once when its code is loaded, otherwise as soon as it is. When the code does not
|
|
9
|
+
* load, `unavailable` runs instead, so the opener can show its menu another way; the next open tries again. A failure
|
|
10
|
+
* of the chosen action itself still rejects.
|
|
11
|
+
*/
|
|
12
|
+
export declare const openMenuSheet: (options: MenuSheetOptions, unavailable: (error: unknown) => void) => Promise<void>;
|
|
13
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Existing line renderer, separated so detailed drawing stays behind lazy chart boundaries. */
|
|
2
|
-
import type
|
|
2
|
+
import { type ChartTimeAxis, type ChartTimeStep } from "../../content/chart-time-calendar";
|
|
3
3
|
import type { LineOptions } from "./svg-renderers";
|
|
4
4
|
/**
|
|
5
5
|
* Render a line chart. Each series becomes a `<path class="stdlib-chart-line">`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
/** The host's first word stands this long before the first change. */
|
|
3
|
+
export declare const CHAT_ACTIVITY_WORDS_START_MS = 3000;
|
|
4
|
+
/** Then each word stands this long; the same value as `--k2b-motion-word-hold`. */
|
|
5
|
+
export declare const CHAT_ACTIVITY_WORDS_HOLD_MS = 2400;
|
|
6
|
+
export type ChatActivityWordsProps = {
|
|
7
|
+
/** The word for the first seconds, such as "Thinking". */
|
|
8
|
+
first: string;
|
|
9
|
+
/** The words that follow, in the order the host chose for this phase. They repeat after the last one. */
|
|
10
|
+
words: readonly string[];
|
|
11
|
+
/**
|
|
12
|
+
* How long this phase has run, by the host's clock, when it renders. The server renders the word for this time and the
|
|
13
|
+
* first browser frame shows the same word; the browser counts on from there.
|
|
14
|
+
*/
|
|
15
|
+
elapsedMs: number;
|
|
16
|
+
/**
|
|
17
|
+
* The one sentence screen readers hear for this phase, such as "Gustav is thinking", once, through the page's live
|
|
18
|
+
* region. Words and seconds stay silent.
|
|
19
|
+
*/
|
|
20
|
+
announce: string;
|
|
21
|
+
};
|
|
22
|
+
/** The word that stands after `elapsedMs`: `first` for the first seconds, then one of `words` per hold. */
|
|
23
|
+
export declare const chatActivityWordAt: (first: string, words: readonly string[], elapsedMs: number) => string;
|
|
24
|
+
/**
|
|
25
|
+
* A word in a running activity label that changes with time, one word in its place at any moment: the old word fades out
|
|
26
|
+
* completely, only then the next fades in. With reduced motion the stylesheet shows a resting `first` instead, from the
|
|
27
|
+
* server's HTML on, and nothing changes. A pointer moved on the row, not a finger's tap, or the focus in it holds the word;
|
|
28
|
+
* a hidden tab changes nothing and shows the word of the current time on return, without catching up. Place it in the
|
|
29
|
+
* label of `Chat.Activity`; the host owns the words and the clock, this owns the timing and the announcement.
|
|
30
|
+
*/
|
|
31
|
+
export declare function ChatActivityWords(props: ChatActivityWordsProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import type { DictationAlternative, DictationSource } from "../inputs/dictation/types";
|
|
3
|
-
import type { ChatAction, ChatAttachment, ChatComposerEmoji, ChatComposerMicrophone, ChatComposerState, ChatContextUsageData, ChatMention, ChatModelOption, ChatSubmitInput } from "./types";
|
|
3
|
+
import type { ChatAction, ChatAttachment, ChatComposerEmoji, ChatComposerMicrophone, ChatComposerState, ChatContextUsageData, ChatMention, ChatModelOption, ChatSubmitInput, ChatUsageSection } from "./types";
|
|
4
4
|
export type ChatCommandContext = {
|
|
5
5
|
setValue: (value: string) => void;
|
|
6
6
|
submit: () => void;
|
|
@@ -153,6 +153,33 @@ export type ChatComposerReply = {
|
|
|
153
153
|
onCancel: () => void;
|
|
154
154
|
onSelect?: () => void;
|
|
155
155
|
};
|
|
156
|
+
/** A passage the draft quotes, such as part of a message the person selected. */
|
|
157
|
+
export type ChatComposerQuote = {
|
|
158
|
+
/** Stable among the draft's quotes. */
|
|
159
|
+
id: string;
|
|
160
|
+
/** Who wrote the passage. */
|
|
161
|
+
author: string;
|
|
162
|
+
/** The passage; it shows at most two lines. */
|
|
163
|
+
text: string;
|
|
164
|
+
/** Takes the quote out of the draft. */
|
|
165
|
+
onRemove: () => void;
|
|
166
|
+
/** Makes the quote a button, for example to jump to the passage. */
|
|
167
|
+
onSelect?: () => void;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* A suggested next message. It stands in the empty field instead of the placeholder, wraps and grows the field like
|
|
171
|
+
* typed text, and ends in a hint: "Tab accept" with a keyboard, an Accept button on touch-only devices. Tab or the hint
|
|
172
|
+
* puts the text into the field as an edit that undo takes back; nothing is sent. Typing replaces it, and an empty field
|
|
173
|
+
* shows it again. Escape dismisses it, and so does sending. The application owns where it comes from and drops it when
|
|
174
|
+
* a new response starts.
|
|
175
|
+
*/
|
|
176
|
+
export type ChatComposerSuggestion = {
|
|
177
|
+
text: string;
|
|
178
|
+
/** The text is now in the field. */
|
|
179
|
+
onAccept: () => void;
|
|
180
|
+
/** Escape dismissed it; the field shows the placeholder again. */
|
|
181
|
+
onDismiss: () => void;
|
|
182
|
+
};
|
|
156
183
|
export type ChatComposerProps = {
|
|
157
184
|
value: string;
|
|
158
185
|
onValueChange: (value: string) => void;
|
|
@@ -198,11 +225,20 @@ export type ChatComposerProps = {
|
|
|
198
225
|
onMentionsChange?: (mentions: readonly ChatMention[]) => void;
|
|
199
226
|
/** Suggests people after `@`; needs `mentions` and `onMentionsChange`. */
|
|
200
227
|
people?: ChatComposerPeople;
|
|
201
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Shared surface above the editor, such as the passages a draft quotes in `ChatComposerQuotes`; suggestions
|
|
230
|
+
* temporarily replace this content.
|
|
231
|
+
*/
|
|
202
232
|
accessory?: JSX.Element;
|
|
203
233
|
contextUsage?: ChatContextUsageData;
|
|
234
|
+
/**
|
|
235
|
+
* Application parts of the usage control, such as a budget. The control keeps one ring right of "+" for the context
|
|
236
|
+
* and these parts; it shows the highest share.
|
|
237
|
+
*/
|
|
238
|
+
contextSections?: readonly ChatUsageSection[];
|
|
239
|
+
/** Small icon controls right after the usage control, such as showing finished tasks again. */
|
|
204
240
|
contextActions?: readonly ChatAction[];
|
|
205
|
-
/** Optional action
|
|
241
|
+
/** Optional icon action next to the context share in the usage details, such as summarizing the chat now. */
|
|
206
242
|
contextPopupAction?: ChatAction;
|
|
207
243
|
/** Additional compact controls rendered with the add/model controls. */
|
|
208
244
|
footerTools?: JSX.Element;
|
|
@@ -254,5 +290,7 @@ export type ChatComposerProps = {
|
|
|
254
290
|
* button that cancels the reply. `onSelect` makes the quote a button, for example to jump to the original.
|
|
255
291
|
*/
|
|
256
292
|
reply?: ChatComposerReply;
|
|
293
|
+
/** A suggested next message in the empty field; see `ChatComposerSuggestion`. */
|
|
294
|
+
suggestion?: ChatComposerSuggestion;
|
|
257
295
|
};
|
|
258
296
|
export declare function ChatComposer(props: ChatComposerProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import type { ChatComposerQuote } from "./ChatComposer";
|
|
3
|
+
/**
|
|
4
|
+
* The passages a draft quotes, for `ChatComposer`'s `accessory`: each with the quote icon, at most two lines, its author,
|
|
5
|
+
* and a button that removes it. Several scroll in their own area. Load it with the first quote, so composers that never
|
|
6
|
+
* quote carry none of its code.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ChatComposerQuotes(props: {
|
|
9
|
+
quotes: readonly ChatComposerQuote[];
|
|
10
|
+
}): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
import type { ChatAction, ChatActivityTone, ChatAttachment, ChatContextUsageData, ChatMessageStatus, ChatRole } from "./types";
|
|
2
|
+
import type { ChatAction, ChatActivityTone, ChatAttachment, ChatContextUsageData, ChatMessageStatus, ChatRole, ChatUsageSection } from "./types";
|
|
3
3
|
export type ChatMessageProps = {
|
|
4
4
|
role: ChatRole;
|
|
5
5
|
children?: JSX.Element;
|
|
@@ -14,8 +14,10 @@ export type ChatMessageProps = {
|
|
|
14
14
|
onActionError?: (error: unknown) => void;
|
|
15
15
|
class?: string;
|
|
16
16
|
};
|
|
17
|
+
/** Colour of an activity's `meta` for an outcome that needs attention. */
|
|
18
|
+
export type ChatActivityMetaTone = "danger" | "warning" | "ai";
|
|
17
19
|
export type ChatActivityProps = {
|
|
18
|
-
/** The step as text, or as a sentence with `ReferenceChip`s. */
|
|
20
|
+
/** The step as text, or as a sentence with `ReferenceChip`s. One line; text that does not fit fades out. */
|
|
19
21
|
label: JSX.Element;
|
|
20
22
|
/** Spelled-out name for an expandable row whose visible text abbreviates, such as durations. */
|
|
21
23
|
ariaLabel?: string;
|
|
@@ -30,6 +32,20 @@ export type ChatActivityProps = {
|
|
|
30
32
|
busy?: boolean;
|
|
31
33
|
/** Lets label and description wrap instead of ending in an ellipsis, for a system line whose whole sentence matters. */
|
|
32
34
|
wrap?: boolean;
|
|
35
|
+
/** A status word or count in the row's right-aligned meta column, such as "2 steps" or "Failed". */
|
|
36
|
+
meta?: JSX.Element;
|
|
37
|
+
/** Colours the whole `meta`. A part of it, such as "1 failed" in "6 steps · 1 failed", can carry its own `data-tone`. */
|
|
38
|
+
metaTone?: ChatActivityMetaTone;
|
|
39
|
+
/** How long the step took, already formatted ("12 s"), in a fixed column with tabular figures. */
|
|
40
|
+
duration?: string;
|
|
41
|
+
/** The duration spelled out, shown as its title. */
|
|
42
|
+
durationTitle?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The last column of a row without a body, such as an ⓘ that opens the step's details: a `HoverCard.Trigger` with
|
|
45
|
+
* `triggerClass="k2b-chat-activity__info"`. A row with a body keeps its chevron there.
|
|
46
|
+
*/
|
|
47
|
+
end?: JSX.Element;
|
|
48
|
+
/** Controls at the end of the text, in the meta column, such as a button. */
|
|
33
49
|
trailing?: JSX.Element;
|
|
34
50
|
/** Controlled disclosure state. Omit to keep native details behavior. */
|
|
35
51
|
open?: boolean;
|
|
@@ -45,6 +61,11 @@ export type ChatActivityProps = {
|
|
|
45
61
|
class?: string;
|
|
46
62
|
};
|
|
47
63
|
export type ChatContextUsageProps = ChatContextUsageData & {
|
|
64
|
+
/** Application parts after the context, such as a budget. */
|
|
65
|
+
sections?: readonly ChatUsageSection[];
|
|
66
|
+
/** Set to false to show only `sections`, for example before a chat has context to report. */
|
|
67
|
+
context?: boolean;
|
|
68
|
+
/** A small icon action next to the context share, such as summarizing the chat now. */
|
|
48
69
|
action?: ChatAction;
|
|
49
70
|
onActionError?: (error: unknown) => void;
|
|
50
71
|
/** Host-owned number formatting. The default groups whole numbers in the inherited render locale. */
|
|
@@ -10,6 +10,19 @@ export type ChatTasksProps = {
|
|
|
10
10
|
label: string;
|
|
11
11
|
progressLabel: string;
|
|
12
12
|
statusLabels: Record<ChatTask["status"], string>;
|
|
13
|
+
/** The work is interrupted: the current step keeps its place and weight, but its ring stands still. */
|
|
14
|
+
paused?: boolean;
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
export type ChatTaskListProps = {
|
|
17
|
+
items: readonly ChatTask[];
|
|
18
|
+
statusLabels: Record<ChatTask["status"], string>;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
"aria-labelledby"?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The working plan above the composer. Presentation only: the host owns the plan, its execution state, and every
|
|
24
|
+
* label. The header stays at the composer; the list opens upwards, and only its height moves.
|
|
25
|
+
*/
|
|
15
26
|
export declare function ChatTasks(props: ChatTasksProps): import("solid-js").JSX.Element;
|
|
27
|
+
/** A finished or stopped plan as a still list: the same marks on the same axis, without header, ring, or fold. */
|
|
28
|
+
export declare function ChatTaskList(props: ChatTaskListProps): import("solid-js").JSX.Element;
|
|
@@ -40,6 +40,20 @@ export declare const conversationEnterAction: (key: ChatEnterKey, context: {
|
|
|
40
40
|
touchOnly: boolean;
|
|
41
41
|
inCodeBlock: boolean;
|
|
42
42
|
}) => "send" | "newline";
|
|
43
|
+
export type ChatSuggestionKey = ChatEnterKey & {
|
|
44
|
+
key: string;
|
|
45
|
+
isComposing: boolean;
|
|
46
|
+
keyCode: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* What a key does to a suggested next message that stands in the empty field: a plain Tab accepts it and a plain
|
|
50
|
+
* Escape dismisses it. Tab with a modifier, a key that confirms an input method's composition, and any key while a
|
|
51
|
+
* command, emoji or people list is open keep their usual meaning.
|
|
52
|
+
*/
|
|
53
|
+
export declare const chatSuggestionKeyAction: (key: ChatSuggestionKey, context: {
|
|
54
|
+
composing: boolean;
|
|
55
|
+
listOpen: boolean;
|
|
56
|
+
}) => "accept" | "dismiss" | undefined;
|
|
43
57
|
/** Case- and accent-insensitive text for command discovery. */
|
|
44
58
|
export declare const foldChatSearchText: (text: string) => string;
|
|
45
59
|
export declare const chatCommandKey: (command: ChatCommand) => string;
|
|
@@ -76,6 +76,7 @@ export declare const chatMessages: import("@k2b/stdlib").Catalog<{
|
|
|
76
76
|
couldNotLoadEarlierMessages: string;
|
|
77
77
|
couldNotPostMessage: string;
|
|
78
78
|
messageActions: string;
|
|
79
|
+
moreActions: string;
|
|
79
80
|
cancelReply: string;
|
|
80
81
|
replyingTo: string;
|
|
81
82
|
messageMenu: ({ author, time }: {
|
|
@@ -108,6 +109,18 @@ export declare const chatMessages: import("@k2b/stdlib").Catalog<{
|
|
|
108
109
|
total: string;
|
|
109
110
|
percent: number;
|
|
110
111
|
}) => string;
|
|
112
|
+
usage: string;
|
|
113
|
+
usageSummary: ({ parts }: {
|
|
114
|
+
parts: string;
|
|
115
|
+
}) => string;
|
|
116
|
+
thisChat: string;
|
|
117
|
+
contextInUse: string;
|
|
118
|
+
contextFull: ({ percent }: {
|
|
119
|
+
percent: string;
|
|
120
|
+
}) => string;
|
|
121
|
+
contextSummaryPercent: ({ percent }: {
|
|
122
|
+
percent: string;
|
|
123
|
+
}) => string;
|
|
111
124
|
postMessage: string;
|
|
112
125
|
queueMessage: string;
|
|
113
126
|
queueing: string;
|
|
@@ -143,6 +156,17 @@ export declare const chatMessages: import("@k2b/stdlib").Catalog<{
|
|
|
143
156
|
steerResponse: string;
|
|
144
157
|
stopResponse: string;
|
|
145
158
|
stopping: string;
|
|
159
|
+
suggestionKeyHint: string;
|
|
160
|
+
suggestionAccept: string;
|
|
161
|
+
suggestionAcceptLabel: ({ text }: {
|
|
162
|
+
text: string;
|
|
163
|
+
}) => string;
|
|
164
|
+
suggestionAnnouncement: ({ text }: {
|
|
165
|
+
text: string;
|
|
166
|
+
}) => string;
|
|
167
|
+
suggestionAnnouncementTouch: ({ text }: {
|
|
168
|
+
text: string;
|
|
169
|
+
}) => string;
|
|
146
170
|
}>;
|
|
147
171
|
export type ChatMessages = ReturnType<(typeof chatMessages)["resolve"]>["t"];
|
|
148
172
|
/** Resolved from the inherited render locale. */
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
export type { ChatContextPanelProps, ChatContextPopupProps } from "./ChatContextPopup";
|
|
2
2
|
import { ChatContextPanel, ChatContextPopup } from "./ChatContextPopup";
|
|
3
|
-
import { ChatTasks } from "./ChatTasks";
|
|
4
|
-
export type { ChatTask, ChatTasksProps } from "./ChatTasks";
|
|
3
|
+
import { ChatTaskList, ChatTasks } from "./ChatTasks";
|
|
4
|
+
export type { ChatTask, ChatTaskListProps, ChatTasksProps } from "./ChatTasks";
|
|
5
|
+
import { ChatActivityWords } from "./ChatActivityWords";
|
|
5
6
|
import { ChatComposer } from "./ChatComposer";
|
|
6
7
|
import { ChatDecision, ChatMark, ChatOutcome } from "./ChatDecision";
|
|
7
8
|
import { ChatActivity, ChatActivityToggle, ChatContextUsage, ChatMessage } from "./ChatPrimitives";
|
|
8
9
|
import { ChatRoot } from "./ChatRoot";
|
|
9
10
|
import { ChatTimeline } from "./ChatTimeline";
|
|
10
|
-
export type {
|
|
11
|
+
export type { ChatActivityWordsProps } from "./ChatActivityWords";
|
|
12
|
+
export type { ChatCommand, ChatCommandContext, ChatCommandDraft, ChatCommandOpenResult, ChatCommandResult, ChatCommandScope, ChatCommandSearch, ChatCommandSection, ChatComposerPeople, ChatComposerProps, ChatComposerQuote, ChatComposerReply, ChatComposerSuggestion, ChatFileSelection, ChatPasteHandler, ChatPersonSuggestion, } from "./ChatComposer";
|
|
13
|
+
export { ChatComposerQuotes } from "./ChatComposerQuotes";
|
|
11
14
|
export type { ChatDecisionProps, ChatMarkProps, ChatOutcomeProps, ChatPreviewExcerptProps, ChatPreviewHeaderProps, ChatPreviewLineProps, ChatPreviewPeopleProps, ChatPreviewProps, ChatPreviewReadMoreProps, ChatPreviewShowAllProps, ChatPreviewTitleProps, } from "./ChatDecision";
|
|
12
|
-
export type { ChatActivityProps, ChatActivityToggleProps, ChatContextUsageProps, ChatMessageProps } from "./ChatPrimitives";
|
|
15
|
+
export type { ChatActivityMetaTone, ChatActivityProps, ChatActivityToggleProps, ChatContextUsageProps, ChatMessageProps, } from "./ChatPrimitives";
|
|
13
16
|
export { formatChatTokens } from "./ChatPrimitives";
|
|
14
17
|
export type { ChatRootProps } from "./ChatRoot";
|
|
15
18
|
export type { ChatActivityItem, ChatMessageItem, ChatTimelineItem, ChatTimelineProps } from "./ChatTimeline";
|
|
16
|
-
export type { ChatAction, ChatActivityTone, ChatAttachment, ChatComposerEmoji, ChatComposerMicrophone, ChatComposerState, ChatContextUsageData, ChatDecisionAnswer, ChatDecisionReason, ChatDecisionState, ChatDictationState, ChatMention, ChatMessageStatus, ChatModelOption, ChatOutcomeLine, ChatOutcomeTone, ChatPreviewHeaderRow, ChatPreviewPerson, ChatRole, ChatSubmitInput, ChatSubmitIntent, ChatUsage, } from "./types";
|
|
19
|
+
export type { ChatAction, ChatActivityTone, ChatAttachment, ChatComposerEmoji, ChatComposerMicrophone, ChatComposerState, ChatContextUsageData, ChatDecisionAnswer, ChatDecisionReason, ChatDecisionState, ChatDictationState, ChatMention, ChatMessageStatus, ChatModelOption, ChatOutcomeLine, ChatOutcomeTone, ChatPreviewHeaderRow, ChatPreviewPerson, ChatRole, ChatSubmitInput, ChatSubmitIntent, ChatUsage, ChatUsageSection, } from "./types";
|
|
17
20
|
/**
|
|
18
21
|
* Portable, controlled chat surface. Applications own storage, streaming,
|
|
19
22
|
* authorization, rich message rendering, and domain actions.
|
|
20
23
|
*/
|
|
21
24
|
export declare const Chat: typeof ChatRoot & {
|
|
22
25
|
Tasks: typeof ChatTasks;
|
|
26
|
+
TaskList: typeof ChatTaskList;
|
|
23
27
|
Timeline: typeof ChatTimeline;
|
|
24
28
|
Message: typeof ChatMessage;
|
|
25
29
|
Activity: typeof ChatActivity & {
|
|
26
30
|
Toggle: typeof ChatActivityToggle;
|
|
31
|
+
Words: typeof ChatActivityWords;
|
|
27
32
|
};
|
|
28
33
|
Composer: typeof ChatComposer;
|
|
29
34
|
ContextUsage: typeof ChatContextUsage;
|
|
@@ -61,10 +61,14 @@ type ChatActionBase = {
|
|
|
61
61
|
icon?: string;
|
|
62
62
|
variant?: "danger";
|
|
63
63
|
disabled?: boolean;
|
|
64
|
+
/** Why the action is off. An icon-only action shows it as its tooltip while `disabled`. */
|
|
65
|
+
disabledReason?: string;
|
|
64
66
|
/** Toggle state for persistent message actions such as feedback. */
|
|
65
67
|
pressed?: boolean;
|
|
66
68
|
/** Semantic foreground for selected feedback actions, without a persistent background. */
|
|
67
69
|
pressedTone?: "success" | "danger";
|
|
70
|
+
/** With inline actions, listed in the trailing "More" menu instead of as its own icon button. */
|
|
71
|
+
overflow?: boolean;
|
|
68
72
|
};
|
|
69
73
|
/** Exactly one executable behavior for every chat action. */
|
|
70
74
|
export type ChatAction = ChatActionBase & ({
|
|
@@ -104,6 +108,29 @@ export type ChatContextUsageData = {
|
|
|
104
108
|
loopUsage?: ChatUsage | null;
|
|
105
109
|
contextWindow?: number;
|
|
106
110
|
modelLabel?: string;
|
|
111
|
+
/** One short line under the context bar, such as what happens when the context is full. */
|
|
112
|
+
note?: JSX.Element;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* One application-owned part of the usage control, such as a budget. The control keeps one ring: it shows the highest
|
|
116
|
+
* share of all parts and turns to the warning colour once a part reaches its `warnAt`.
|
|
117
|
+
*/
|
|
118
|
+
export type ChatUsageSection = {
|
|
119
|
+
id: string;
|
|
120
|
+
/** Heading in the details, such as "Your budget". */
|
|
121
|
+
title: string;
|
|
122
|
+
/** Used share in percent, or null while it is not known. */
|
|
123
|
+
percent?: number | null;
|
|
124
|
+
/** Share from which this part warns. Defaults to 80. */
|
|
125
|
+
warnAt?: number;
|
|
126
|
+
/** Short text after the heading, such as "86% used". */
|
|
127
|
+
value?: string;
|
|
128
|
+
/** This part in the trigger's accessible label, such as "Budget 86% used". */
|
|
129
|
+
summary: string;
|
|
130
|
+
/** Details below the heading: bars, `dl` rows, `p` notes, and `.k2b-chat-usage__row` lines with a small action. */
|
|
131
|
+
content?: JSX.Element;
|
|
132
|
+
/** Runs each time the details open, for example to refresh this part. */
|
|
133
|
+
onOpen?: () => void;
|
|
107
134
|
};
|
|
108
135
|
export type ChatModelOption = {
|
|
109
136
|
id: string;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import type { DateContext } from "@k2b/stdlib";
|
|
2
|
+
import { type JSX } from "solid-js";
|
|
3
|
+
/** Only the icon carries a tone: grey by default, green for a completion, amber for a notice, red only while an action is needed. */
|
|
4
|
+
export type ActivityTone = "neutral" | "success" | "warning" | "danger";
|
|
5
|
+
/** At most one action per entry, a link with an icon in the last line, only while the state needs it. */
|
|
6
|
+
export type ActivityAction = {
|
|
7
|
+
icon: string;
|
|
8
|
+
label: string;
|
|
9
|
+
/** A link when set and not disabled; otherwise a button. */
|
|
10
|
+
href?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
onClick?: (event: MouseEvent) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** For tests: rendered as `data-activity-action`. */
|
|
15
|
+
data?: string;
|
|
16
|
+
};
|
|
17
|
+
export type ActivityEntry = {
|
|
18
|
+
/**
|
|
19
|
+
* Stable key of the entry, such as its record id; unique within the list. With it a row keeps its node, folded-out
|
|
20
|
+
* details, and focus when the caller rebuilds the entries, such as after a refresh. Without it the entry object is
|
|
21
|
+
* the key.
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/** ISO instant. */
|
|
25
|
+
at: string;
|
|
26
|
+
/** Icon class of the kind, such as `ti ti-mail`; one fixed icon per kind. */
|
|
27
|
+
icon: string;
|
|
28
|
+
tone?: ActivityTone;
|
|
29
|
+
/** Name of the icon for tooltip and screen readers, when the sentence does not say it already. */
|
|
30
|
+
iconLabel?: string;
|
|
31
|
+
/** One sentence, such as "Invitation sent". */
|
|
32
|
+
text: JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Equal entries (one key) after each other on the same day become one row; `text` says it with the count
|
|
35
|
+
* ("Draft changed 4 times") and gets every entry of the bundle, newest first. A bundle keeps the detail line only
|
|
36
|
+
* when it is the same text for all entries.
|
|
37
|
+
*/
|
|
38
|
+
bundle?: {
|
|
39
|
+
key: string;
|
|
40
|
+
text: (count: number, all: readonly ActivityEntry[]) => JSX.Element;
|
|
41
|
+
} | null;
|
|
42
|
+
/** Only a result, the reason of a failure, a quote, or "before → now" (`ActivityList.Change`). */
|
|
43
|
+
detail?: JSX.Element;
|
|
44
|
+
/** Who did it, a text of the application; without one the meta line reads "automatic". */
|
|
45
|
+
actor?: JSX.Element | null;
|
|
46
|
+
action?: ActivityAction | null;
|
|
47
|
+
/** A click on the entry opens it, such as its dialog. */
|
|
48
|
+
onOpen?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* The entry's object as a link: the sentence becomes the link, a click anywhere on the row follows it, and a middle
|
|
51
|
+
* click or a click with Ctrl, Cmd, or Shift opens it in a new tab. Takes the place of `onOpen`; ignored with
|
|
52
|
+
* `details`.
|
|
53
|
+
*/
|
|
54
|
+
href?: string;
|
|
55
|
+
/** A click on the entry folds out its details below it; for a bundle with all of its entries. */
|
|
56
|
+
details?: (all: readonly ActivityEntry[]) => JSX.Element;
|
|
57
|
+
/** Kind for the filter in the "All N" dialog. */
|
|
58
|
+
kind?: string;
|
|
59
|
+
/** Attributes on the list item, such as `data-email` for focus after a reload. */
|
|
60
|
+
attrs?: Record<`data-${string}`, string | number | undefined>;
|
|
61
|
+
};
|
|
62
|
+
/** `compact` for a card or side column (meta under the sentence); `wide` for a dialog or page (meta on the right). */
|
|
63
|
+
export type ActivityDensity = "compact" | "wide";
|
|
64
|
+
type ActivityTimeProps = {
|
|
65
|
+
/**
|
|
66
|
+
* The current time. Pass the server's time so the server and the first browser render show the same text; the
|
|
67
|
+
* browser then moves it on every minute.
|
|
68
|
+
*/
|
|
69
|
+
now?: Date | string;
|
|
70
|
+
/** Date context of the application; days count in its time zone. */
|
|
71
|
+
dateConfig?: DateContext;
|
|
72
|
+
/** Convenience override for `dateConfig.timeZone`. Defaults to UTC, so server and browser agree. */
|
|
73
|
+
timeZone?: string;
|
|
74
|
+
};
|
|
75
|
+
export type ActivityListProps = ActivityTimeProps & {
|
|
76
|
+
entries: readonly ActivityEntry[];
|
|
77
|
+
density?: ActivityDensity;
|
|
78
|
+
/** Shows only the newest rows; the rail then fades out below them. */
|
|
79
|
+
limit?: number;
|
|
80
|
+
/** More follows below the last visible row (further pages from the server); the rail fades out. */
|
|
81
|
+
more?: boolean;
|
|
82
|
+
/** Accessible name of the list. Defaults to "History". */
|
|
83
|
+
label?: string;
|
|
84
|
+
class?: string;
|
|
85
|
+
};
|
|
86
|
+
/** "before → now" of a detail line, the old value quiet. With `term` in front ("Plan: Basic → Team"). */
|
|
87
|
+
declare function ActivityChange(props: {
|
|
88
|
+
before: JSX.Element;
|
|
89
|
+
now: JSX.Element;
|
|
90
|
+
term?: string;
|
|
91
|
+
}): JSX.Element;
|
|
92
|
+
/** Loading: three quiet rows on the rail, announced to screen readers. */
|
|
93
|
+
declare function ActivityLoading(props: {
|
|
94
|
+
label?: string;
|
|
95
|
+
}): JSX.Element;
|
|
96
|
+
/** Error: one sentence with "Reload". */
|
|
97
|
+
declare function ActivityError(props: {
|
|
98
|
+
onReload?: () => void;
|
|
99
|
+
text?: JSX.Element;
|
|
100
|
+
}): JSX.Element;
|
|
101
|
+
/** Empty: one sentence. */
|
|
102
|
+
declare function ActivityEmpty(props: {
|
|
103
|
+
text?: JSX.Element;
|
|
104
|
+
}): JSX.Element;
|
|
105
|
+
type ActivityListComponent = ((props: ActivityListProps) => JSX.Element) & {
|
|
106
|
+
Loading: typeof ActivityLoading;
|
|
107
|
+
Empty: typeof ActivityEmpty;
|
|
108
|
+
Error: typeof ActivityError;
|
|
109
|
+
Change: typeof ActivityChange;
|
|
110
|
+
};
|
|
111
|
+
export declare const ActivityList: ActivityListComponent;
|
|
112
|
+
/** A kind for the filter of the "All N" dialog; only kinds with entries appear. */
|
|
113
|
+
export type ActivityKind = {
|
|
114
|
+
key: string;
|
|
115
|
+
label: string;
|
|
116
|
+
};
|
|
117
|
+
export type ActivityDialogInput = ActivityTimeProps & {
|
|
118
|
+
/** Read on open; build the entries in the getter, so the dialog gets nodes of its own. */
|
|
119
|
+
entries: () => readonly ActivityEntry[];
|
|
120
|
+
/** Defaults to "History". */
|
|
121
|
+
title?: string;
|
|
122
|
+
/** Icon class beside the title, such as `ti ti-activity`; none by default. */
|
|
123
|
+
icon?: string;
|
|
124
|
+
/** Second line, such as the object the history belongs to. */
|
|
125
|
+
subtitle?: string;
|
|
126
|
+
kinds?: readonly ActivityKind[];
|
|
127
|
+
/** Shown when there are no entries; defaults to "Nothing has happened yet.". */
|
|
128
|
+
emptyText?: JSX.Element;
|
|
129
|
+
};
|
|
130
|
+
export type ActivityCardProps = ActivityTimeProps & {
|
|
131
|
+
/** `null`: nothing loaded yet (loading or error). */
|
|
132
|
+
entries: readonly ActivityEntry[] | null;
|
|
133
|
+
/** Rows the card shows. Defaults to 6. */
|
|
134
|
+
limit?: number;
|
|
135
|
+
loading?: boolean;
|
|
136
|
+
error?: boolean;
|
|
137
|
+
onReload?: () => void;
|
|
138
|
+
emptyText?: JSX.Element;
|
|
139
|
+
/** Defaults to "History". */
|
|
140
|
+
title?: string;
|
|
141
|
+
/** Heading level of the title; 2 by default, 3 for a card under a section heading of the page. */
|
|
142
|
+
level?: 2 | 3;
|
|
143
|
+
/** Second line in the "All N" dialog, such as "Invoice RE-2610-00042 · Lindner". */
|
|
144
|
+
subtitle?: string;
|
|
145
|
+
/** Filter by kind in the dialog; only kinds with entries appear. */
|
|
146
|
+
kinds?: readonly ActivityKind[];
|
|
147
|
+
/** More at the end of the heading, before "All N", such as "reloading". */
|
|
148
|
+
actions?: JSX.Element;
|
|
149
|
+
/** Above the timeline, such as a quiet line "Waiting for approval"; replaces the empty text. */
|
|
150
|
+
lead?: JSX.Element;
|
|
151
|
+
/** For tests: rendered as `data-activity-card`. */
|
|
152
|
+
name?: string;
|
|
153
|
+
id?: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The history as a card of a detail page: a section with "History", and "All N" at the end of the heading when
|
|
157
|
+
* there are more than `limit` rows; below it the list in the compact density. "All N" opens the full history as a
|
|
158
|
+
* dialog in the wide density, with a filter by kind when `kinds` is set.
|
|
159
|
+
*
|
|
160
|
+
* Build `entries` in the getter (`entries={list()}` with a function, never from `createMemo`): sentence, detail, and
|
|
161
|
+
* person are JSX, and card and dialog each need nodes of their own.
|
|
162
|
+
*/
|
|
163
|
+
export declare function ActivityCard(props: ActivityCardProps): JSX.Element;
|
|
164
|
+
/** The full history as a dialog: the title, the object below it, a filter by kind, and the list in the wide density. */
|
|
165
|
+
export declare const openActivityDialog: (input: ActivityDialogInput) => Promise<void | undefined>;
|
|
166
|
+
export {};
|
|
@@ -24,6 +24,8 @@ export declare function createDataTableView<T>(options: DataTableViewOptions<T>)
|
|
|
24
24
|
export type DataTableToolsProps = {
|
|
25
25
|
/** The table's name, for the search field's accessible name ("Search Campaigns"). */
|
|
26
26
|
label: string;
|
|
27
|
+
/** The id of an element that describes the search field, such as the heading of a table whose `label` is generic. */
|
|
28
|
+
describedBy?: string;
|
|
27
29
|
query?: string;
|
|
28
30
|
onQueryChange?: (query: string) => void;
|
|
29
31
|
/** Columns the reader may group by; without them no group choice shows. An empty list keeps the choice in place while it loads. */
|