@trinityui/design-system 2.11.1 → 2.13.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/CHANGELOG.md +2155 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +505 -28
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +18458 -10385
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +159 -77
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +81 -11
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +104 -16
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +47 -4
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +135 -7
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +6 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +49 -1
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +9 -2
- package/dist/components/shared/safeContent.d.ts.map +1 -1
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13923 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +69 -69
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AIReviewQueueTemplate: the golden-dataset review queue (master plan H-25;
|
|
3
|
+
* requirements R24 and R25).
|
|
4
|
+
* @module components/templates/AIReviewQueue
|
|
5
|
+
*
|
|
6
|
+
* A thin template composition (ADR-02: the template lives here, AIReviewItem in AI/) with no
|
|
7
|
+
* business state beyond UI state: the selection, the status filter, the search and the detail
|
|
8
|
+
* drawer (each controlled or uncontrolled), and the focus and announcement after a decision.
|
|
9
|
+
*
|
|
10
|
+
* - **List** (ListDetailTemplate, H-19..H-22, H-43). One row per flagged answer, built once per
|
|
11
|
+
* `items` in a memo (`ListDetailItem & { review }`, a typed path back). The template is the
|
|
12
|
+
* first production consumer of `renderListItem`'s helpers (H-20): each row is a button with
|
|
13
|
+
* `aria-current` (ADR-34 (4); keyboard-models.md (4)), named by the question, and described by
|
|
14
|
+
* the answer, the query and a meta line (status chip with an icon, flag count and problem
|
|
15
|
+
* types, AIConfidenceBadge, the golden badge, the time it was asked).
|
|
16
|
+
* - **Filter.** ChoiceChips (D-09), native checkboxes in a fieldset with a legend, one per review
|
|
17
|
+
* status, with counts from `statusCounts` or counted from `items`. The default filter is
|
|
18
|
+
* pending answers. No status checked shows every status.
|
|
19
|
+
* - **Detail.** AIReviewItem (G-19) with the item's history merged with `history`, `canDecide`
|
|
20
|
+
* per item, `loading` (`detailLoading`), `headingRef` and `focusOnResolve` 'none' while the
|
|
21
|
+
* queue moves on. It is keyed by the item, so its edit and dialog state never outlive the item.
|
|
22
|
+
* - **Decisions.** The template awaits `onDecision`. On success, with `advanceOnDecision` (the
|
|
23
|
+
* default), it selects the item after the decided one in the order shown when the decision
|
|
24
|
+
* started, else the one before, else none; it then focuses that item's heading
|
|
25
|
+
* (useFocusOnReplace), or the empty-state heading, and announces the outcome and the number of
|
|
26
|
+
* answers left. A rejection changes nothing here: AIReviewItem shows the error, focus stays.
|
|
27
|
+
* - **States** (H-43's slots). Empty queue: IllustratedMessage 'success'. Nothing matches the
|
|
28
|
+
* search or the filter: 'no-results' with Clear filters (MICROCOPY's empty list). Load error:
|
|
29
|
+
* 'error-generic' with a Try again button run through useAsyncAction (aria-disabled and
|
|
30
|
+
* aria-busy while pending). Loading: ListDetailTemplate's skeleton with aria-busy.
|
|
31
|
+
* - **Scale.** `hasMore`, `onLoadMore`, `loadingMore` and `totalCount` pass through (every row
|
|
32
|
+
* carries aria-setsize and aria-posinset). `filterMode` 'server' shows `items` as given: the
|
|
33
|
+
* consumer filters through `onStatusFilterChange` and `onSearchChange`. Virtualization is
|
|
34
|
+
* deferred (MASTER_PLAN section 10, H-22), so there is no `virtualized` prop.
|
|
35
|
+
* - **Layout.** `collapseMode` 'container': below the width of a list plus a compact detail
|
|
36
|
+
* (744px with the defaults) the queue is the list plus a detail drawer as wide as the queue, so
|
|
37
|
+
* it works beside AppLayout's AI panel, inside the docked panel (320 to 800px; the drawer
|
|
38
|
+
* covers the panel) and on a full page.
|
|
39
|
+
* - **Design.** Strings from `ai.reviewQueue` (ADR-06); colours from the resolver and the brand
|
|
40
|
+
* primary (ADR-03, ADR-26); logical properties and motion tokens (ADR-11); the root props
|
|
41
|
+
* contract with `slotProps` { listPanel, detailPanel, filter } (ADR-04); SSR-safe (ADR-27).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <AIReviewQueueTemplate
|
|
46
|
+
* items={items}
|
|
47
|
+
* onDecision={(decision) => api.decide(decision)}
|
|
48
|
+
* canDecide={(item) => user.canReview(item)}
|
|
49
|
+
* />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
import * as React from 'react';
|
|
53
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
54
|
+
import type { AIActionErrorContext, AIReviewDecision, AIReviewEditableField, AIReviewHistoryEntry, AIReviewItemData, AIReviewStatus } from '../../AI/types/hitl';
|
|
55
|
+
import type { HeadingLevel } from '../../shared/headingLevel';
|
|
56
|
+
import { type TrinityRootProps, type TrinitySlotProps } from '../../shared/rootProps';
|
|
57
|
+
import { type ListDetailItemHelpers } from '../ListDetail';
|
|
58
|
+
/**
|
|
59
|
+
* One event of the queue's decision log for an item: an {@link AIReviewHistoryEntry} with the id
|
|
60
|
+
* of the item it belongs to. The template groups them per item and shows them in the item's
|
|
61
|
+
* history, after the entries of `item.history` (an entry whose `id` is already there is shown
|
|
62
|
+
* once).
|
|
63
|
+
*
|
|
64
|
+
* @since 2.13.0
|
|
65
|
+
*/
|
|
66
|
+
export interface AIReviewQueueHistoryEntry extends AIReviewHistoryEntry {
|
|
67
|
+
/** Id of the review item the entry belongs to. */
|
|
68
|
+
itemId: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The load error of {@link AIReviewQueueTemplate}: shown instead of the list.
|
|
72
|
+
*
|
|
73
|
+
* @since 2.13.0
|
|
74
|
+
*/
|
|
75
|
+
export interface AIReviewQueueError {
|
|
76
|
+
/** The heading. @default ai.reviewQueue.errorTitle */
|
|
77
|
+
title?: string;
|
|
78
|
+
/** The text under the heading. @default ai.reviewQueue.errorDescription */
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Loads the queue again. With it, a Try again button shows; a returned promise keeps the button
|
|
82
|
+
* aria-disabled and busy until it settles.
|
|
83
|
+
*/
|
|
84
|
+
onRetry?: () => void | Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* AIReviewQueueTemplate's own props (the HTML attributes of the root are added in
|
|
88
|
+
* {@link AIReviewQueueTemplateProps}).
|
|
89
|
+
*
|
|
90
|
+
* @since 2.13.0
|
|
91
|
+
*/
|
|
92
|
+
export interface AIReviewQueueTemplateOwnProps {
|
|
93
|
+
/** The answers in the queue (in `filterMode` 'server', the ones the server returned). */
|
|
94
|
+
items: AIReviewItemData[];
|
|
95
|
+
/** The selected item's id (controlled); `null` selects nothing. */
|
|
96
|
+
selectedId?: string | null;
|
|
97
|
+
/** The initially selected item's id (uncontrolled). @default null */
|
|
98
|
+
defaultSelectedId?: string | null;
|
|
99
|
+
/** Called when the selection changes: a row press, or the queue moving on after a decision. */
|
|
100
|
+
onSelectedIdChange?: (id: string | null, item?: AIReviewItemData) => void;
|
|
101
|
+
/** The statuses shown (controlled). An empty list shows every status. */
|
|
102
|
+
statusFilter?: AIReviewStatus[];
|
|
103
|
+
/** The initial status filter (uncontrolled). @default ['pending'] */
|
|
104
|
+
defaultStatusFilter?: AIReviewStatus[];
|
|
105
|
+
/** Called when the reviewer changes the status filter or clears the filters. */
|
|
106
|
+
onStatusFilterChange?: (statuses: AIReviewStatus[]) => void;
|
|
107
|
+
/**
|
|
108
|
+
* The number of items per status, shown in the filter. Without it the template counts `items`
|
|
109
|
+
* in `filterMode` 'client' and shows no count in 'server'.
|
|
110
|
+
*/
|
|
111
|
+
statusCounts?: Partial<Record<AIReviewStatus, number>>;
|
|
112
|
+
/**
|
|
113
|
+
* Who filters: `'client'` filters `items` by status and search; `'server'` shows `items` as given
|
|
114
|
+
* and leaves the filtering to the consumer (`onStatusFilterChange`, `onSearchChange`).
|
|
115
|
+
* @default 'client'
|
|
116
|
+
*/
|
|
117
|
+
filterMode?: 'client' | 'server';
|
|
118
|
+
/** The search text (controlled). */
|
|
119
|
+
searchValue?: string;
|
|
120
|
+
/** The initial search text (uncontrolled). @default '' */
|
|
121
|
+
defaultSearchValue?: string;
|
|
122
|
+
/** Called when the search text changes. */
|
|
123
|
+
onSearchChange?: (value: string) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Called with the reviewer's decision. Return the request's promise: while it is pending the
|
|
126
|
+
* item's controls are aria-disabled; a rejection shows the item's error and keeps the item
|
|
127
|
+
* selected; a success moves the queue on (`advanceOnDecision`).
|
|
128
|
+
*/
|
|
129
|
+
onDecision?: (decision: AIReviewDecision) => void | Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the reviewer may decide: one answer for every item, or one per item. When false the
|
|
132
|
+
* item shows `decisionBlockedReason` instead of its controls.
|
|
133
|
+
* @default Boolean(onDecision)
|
|
134
|
+
*/
|
|
135
|
+
canDecide?: boolean | ((item: AIReviewItemData) => boolean);
|
|
136
|
+
/** Why the reviewer cannot decide (`ai.reviewItem.blockedReason`). */
|
|
137
|
+
decisionBlockedReason?: string;
|
|
138
|
+
/**
|
|
139
|
+
* After a successful decision, select the next item shown (else the previous one, else none)
|
|
140
|
+
* and move focus to its heading (else to the empty-state heading). When false the selection
|
|
141
|
+
* stays and the item's summary takes focus.
|
|
142
|
+
* @default true
|
|
143
|
+
*/
|
|
144
|
+
advanceOnDecision?: boolean;
|
|
145
|
+
/** Decision-log entries, each with its item's id; shown in that item's history. */
|
|
146
|
+
history?: AIReviewQueueHistoryEntry[];
|
|
147
|
+
/** The fields the item's Edit form offers. @default ['answer'] */
|
|
148
|
+
editableFields?: AIReviewEditableField[];
|
|
149
|
+
/** The queue is loading: the list shows its skeleton and is busy. */
|
|
150
|
+
loading?: boolean;
|
|
151
|
+
/** A decision is saving outside the item: the item's controls are aria-disabled and it is busy. */
|
|
152
|
+
detailLoading?: boolean;
|
|
153
|
+
/** Loading the queue failed: the error replaces the list. */
|
|
154
|
+
error?: AIReviewQueueError | null;
|
|
155
|
+
/** Replaces the empty queue's message. */
|
|
156
|
+
emptyState?: React.ReactNode;
|
|
157
|
+
/** Replaces the message shown when the search or the filter matches nothing. */
|
|
158
|
+
filteredEmptyState?: React.ReactNode;
|
|
159
|
+
/** More items can be loaded: a Load more button follows the list. */
|
|
160
|
+
hasMore?: boolean;
|
|
161
|
+
/** Loads the next items (append them to `items`); a returned promise keeps the button busy. */
|
|
162
|
+
onLoadMore?: () => void | Promise<void>;
|
|
163
|
+
/** More items are loading (for an `onLoadMore` that loads elsewhere). */
|
|
164
|
+
loadingMore?: boolean;
|
|
165
|
+
/** The number of items in the whole queue, when `items` holds only the loaded part. */
|
|
166
|
+
totalCount?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Renders a row yourself. Spread `helpers.getItemProps()` on the row's pressable element (or call
|
|
169
|
+
* `helpers.select()`), so selection, the detail drawer and `aria-current` keep working.
|
|
170
|
+
*/
|
|
171
|
+
renderListItem?: (item: AIReviewItemData, selected: boolean, helpers: ListDetailItemHelpers) => React.ReactNode;
|
|
172
|
+
/** Shown in the detail's header row while an item is selected. */
|
|
173
|
+
detailActions?: React.ReactNode;
|
|
174
|
+
/** Level of the item's heading and of the empty states' headings. @default 2 */
|
|
175
|
+
headingLevel?: HeadingLevel;
|
|
176
|
+
/** Called with the error of a failed decision or retry. */
|
|
177
|
+
onActionError?: (error: unknown, context: AIActionErrorContext) => void;
|
|
178
|
+
/** Added to the root element's classes. */
|
|
179
|
+
className?: string;
|
|
180
|
+
/** Styles for the root element, applied after the template's own. */
|
|
181
|
+
sx?: SxProps<Theme>;
|
|
182
|
+
/**
|
|
183
|
+
* Props for the template's parts (ADR-04 (6)): `listPanel` and `detailPanel` (ListDetailTemplate's
|
|
184
|
+
* panels) and `filter` (the status filter's fieldset).
|
|
185
|
+
*/
|
|
186
|
+
slotProps?: {
|
|
187
|
+
listPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
188
|
+
detailPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
189
|
+
filter?: TrinitySlotProps<HTMLFieldSetElement>;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Props of {@link AIReviewQueueTemplate}: its own props plus the HTML attributes of the root div
|
|
194
|
+
* (ADR-04).
|
|
195
|
+
*
|
|
196
|
+
* @since 2.13.0
|
|
197
|
+
*/
|
|
198
|
+
export interface AIReviewQueueTemplateProps extends AIReviewQueueTemplateOwnProps, TrinityRootProps<HTMLDivElement, AIReviewQueueTemplateOwnProps> {
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* The golden-dataset review queue: flagged answers in a filterable list, each opened in
|
|
202
|
+
* AIReviewItem to approve, edit or reject, with focus and selection moving on after each decision.
|
|
203
|
+
* See the module notes.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```tsx
|
|
207
|
+
* <AIReviewQueueTemplate items={items} onDecision={(decision) => api.decide(decision)} />
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @since 2.13.0
|
|
211
|
+
*/
|
|
212
|
+
export declare const AIReviewQueueTemplate: React.ForwardRefExoticComponent<AIReviewQueueTemplateProps & React.RefAttributes<HTMLDivElement>>;
|
|
213
|
+
//# sourceMappingURL=AIReviewQueueTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIReviewQueueTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/AIReviewQueue/AIReviewQueueTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa3D,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAyB,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EAA2C,KAAK,qBAAqB,EAAiC,MAAM,eAAe,CAAC;AAEnI;;;;;;;GAOG;AACH,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED;;;;;GAKG;AACH,MAAM,WAAW,6BAA6B;IAC5C,yFAAyF;IACzF,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;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;GAKG;AACH,MAAM,WAAW,0BACf,SAAQ,6BAA6B,EACnC,gBAAgB,CAAC,cAAc,EAAE,6BAA6B,CAAC;CAAG;AAyLtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,mGAgZhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/AIReviewQueue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/AuthTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAcvF;;;;GAIG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"AuthTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/AuthTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAcvF;;;;GAIG;AACH,eAAO,MAAM,YAAY,0FAkNxB,CAAC"}
|
|
@@ -15,7 +15,10 @@ export interface AuthAction {
|
|
|
15
15
|
icon?: ReactNode;
|
|
16
16
|
/** Disabled state */
|
|
17
17
|
disabled?: boolean;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Loading state: shows a spinner and ignores submits while the button keeps focus
|
|
20
|
+
* (aria-disabled and aria-busy; `disabled` alone disables it natively).
|
|
21
|
+
*/
|
|
19
22
|
loading?: boolean;
|
|
20
23
|
/** Label to show while loading */
|
|
21
24
|
loadingLabel?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,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":"","sources":["../../../../src/components/templates/Catalog/CatalogTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Catalog/CatalogTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,GACZ,MAAM,SAAS,CAAC;AA+IjB,eAAO,MAAM,eAAe,6FAkS3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorWizardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ConnectorWizard/ConnectorWizardTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectorWizardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ConnectorWizard/ConnectorWizardTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO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AM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtD,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,uBAAuB,qGA6RlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsCenterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/InsightsCenter/InsightsCenterTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightsCenterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/InsightsCenter/InsightsCenterTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,SAAS,CAAC;IACtF,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,4CAA4C;IAC5C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0BAA0B;IAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,sEAAsE;IACtE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D,6CAA6C;IAC7C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,kCAAkC;IAClC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACxD,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,oGA+NjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/IntegrationDetail/IntegrationDetailTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IntegrationDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/IntegrationDetail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,CAAC;CAC5B;AAaD,eAAO,MAAM,yBAAyB,uGAqLpC,CAAC"}
|
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
|
|
14
|
+
import { type TrinityRootProps, type TrinitySlotProps } from '../../shared/rootProps';
|
|
15
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
16
|
+
import { type ListDetailTemplateLabels } from './listDetailLabels';
|
|
17
|
+
export type { ListDetailTemplateLabels } from './listDetailLabels';
|
|
18
|
+
/** An item of the list. */
|
|
19
|
+
export interface ListDetailItem {
|
|
15
20
|
/** Unique identifier */
|
|
16
21
|
id: string;
|
|
17
22
|
/** Primary text */
|
|
@@ -34,18 +39,38 @@ export interface ListItem {
|
|
|
34
39
|
icon?: React.ReactNode;
|
|
35
40
|
}
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* The third argument of `renderListItem`: wires a custom row to the template's selection, so it
|
|
43
|
+
* behaves like a default row (onSelect, the detail drawer on a small screen, aria-current).
|
|
44
|
+
*
|
|
45
|
+
* @since 2.13.0
|
|
38
46
|
*/
|
|
39
|
-
export interface
|
|
47
|
+
export interface ListDetailItemHelpers {
|
|
48
|
+
/** Selects the item: calls `onSelect` and, while the template is collapsed, opens the detail. */
|
|
49
|
+
select(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Props for the row's pressable element: `onClick` selects the item, `aria-current` marks the
|
|
52
|
+
* selected row and `id` lets the template return focus to it when the detail closes.
|
|
53
|
+
*/
|
|
54
|
+
getItemProps(): {
|
|
55
|
+
onClick: () => void;
|
|
56
|
+
'aria-current': 'true' | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* ListDetailTemplate's own props (the HTML attributes of the root are added in
|
|
62
|
+
* {@link ListDetailTemplateProps}).
|
|
63
|
+
*/
|
|
64
|
+
export interface ListDetailTemplateOwnProps<T extends ListDetailItem = ListDetailItem> {
|
|
40
65
|
/** List items */
|
|
41
|
-
items:
|
|
66
|
+
items: T[];
|
|
42
67
|
/** Currently selected item ID */
|
|
43
68
|
selectedId?: string | null;
|
|
44
69
|
/** Callback when item is selected */
|
|
45
|
-
onSelect?: (item:
|
|
46
|
-
/** Detail panel content */
|
|
70
|
+
onSelect?: (item: T) => void;
|
|
71
|
+
/** Detail panel content, shown while an item is selected (`selectedId` is set) */
|
|
47
72
|
detailContent?: React.ReactNode;
|
|
48
|
-
/** Placeholder when no item selected */
|
|
73
|
+
/** Placeholder when no item is selected; shown even when `detailContent` is set */
|
|
49
74
|
emptyDetailContent?: React.ReactNode;
|
|
50
75
|
/** Search value */
|
|
51
76
|
searchValue?: string;
|
|
@@ -73,8 +98,12 @@ export interface ListDetailTemplateProps {
|
|
|
73
98
|
maxListWidth?: number;
|
|
74
99
|
/** Show search bar */
|
|
75
100
|
showSearch?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Custom render function for list items. The third argument (`helpers`, since 2.13.0) wires
|
|
103
|
+
* the row to the selection: spread `helpers.getItemProps()` on its pressable element, or call
|
|
104
|
+
* `helpers.select()`. A renderer that ignores it behaves as before.
|
|
105
|
+
*/
|
|
106
|
+
renderListItem?: (item: T, selected: boolean, helpers: ListDetailItemHelpers) => React.ReactNode;
|
|
78
107
|
/** Show filter button */
|
|
79
108
|
showFilter?: boolean;
|
|
80
109
|
/** Filter click handler */
|
|
@@ -83,6 +112,135 @@ export interface ListDetailTemplateProps {
|
|
|
83
112
|
filterCount?: number;
|
|
84
113
|
/** Empty list message */
|
|
85
114
|
emptyListMessage?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the detail drawer is open while the template is collapsed (controlled). Selecting an
|
|
117
|
+
* item opens it; Back, Escape and the drawer's close set it to false.
|
|
118
|
+
* @since 2.13.0
|
|
119
|
+
*/
|
|
120
|
+
detailOpen?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Initial `detailOpen` when uncontrolled.
|
|
123
|
+
* @default false
|
|
124
|
+
* @since 2.13.0
|
|
125
|
+
*/
|
|
126
|
+
defaultDetailOpen?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Called when the detail drawer opens or closes, in both modes.
|
|
129
|
+
* @since 2.13.0
|
|
130
|
+
*/
|
|
131
|
+
onDetailOpenChange?: (open: boolean) => void;
|
|
132
|
+
/**
|
|
133
|
+
* What collapses the split view into a list plus a full-width detail drawer:
|
|
134
|
+
* - `'viewport'` (default, as before): the viewport is below the theme's `md` breakpoint;
|
|
135
|
+
* - `'container'`: the template's own width cannot fit the list column, the gap and a
|
|
136
|
+
* `compact` detail column (the list width when numeric, else `minListWidth`, plus the
|
|
137
|
+
* theme's `compact` container width, 360px by default). For templates hosted in a narrow
|
|
138
|
+
* region of a wide viewport, such as beside the AppLayout AI panel. The server render and
|
|
139
|
+
* the first client render show the split view (ADR-27).
|
|
140
|
+
* @default 'viewport'
|
|
141
|
+
* @since 2.13.0
|
|
142
|
+
*/
|
|
143
|
+
collapseMode?: 'viewport' | 'container';
|
|
144
|
+
/**
|
|
145
|
+
* With `collapseMode="container"`: the width in px below which the template collapses,
|
|
146
|
+
* instead of the derived threshold.
|
|
147
|
+
* @since 2.13.0
|
|
148
|
+
*/
|
|
149
|
+
collapseBelow?: number;
|
|
150
|
+
/**
|
|
151
|
+
* The number of items in the whole collection, when `items` holds only the loaded part (a
|
|
152
|
+
* paged or server-filtered queue). Every row gets `aria-setsize` (this value, else the number
|
|
153
|
+
* of rows shown) and `aria-posinset`, so a screen reader reads "3 of 250".
|
|
154
|
+
* @since 2.13.0
|
|
155
|
+
*/
|
|
156
|
+
totalCount?: number;
|
|
157
|
+
/**
|
|
158
|
+
* How the built-in search filters `items`: a predicate `(item, query)`, or `false` to show
|
|
159
|
+
* every item as given (server-side search: the consumer filters through `onSearchChange`, and
|
|
160
|
+
* the template never hides a server match). By default an item matches when its title or
|
|
161
|
+
* subtitle contains the query, ignoring case.
|
|
162
|
+
* @since 2.13.0
|
|
163
|
+
*/
|
|
164
|
+
filterItems?: false | ((item: T, query: string) => boolean);
|
|
165
|
+
/**
|
|
166
|
+
* More items can be loaded: a Load more button follows the list, inside its scroll area.
|
|
167
|
+
* @since 2.13.0
|
|
168
|
+
*/
|
|
169
|
+
hasMore?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Loads the next items (append them to `items`). May return a promise: while it is pending
|
|
172
|
+
* the button is aria-disabled and aria-busy and ignores presses; a rejection keeps the button
|
|
173
|
+
* and is reported through `globalThis.reportError` (ADR-07). When the new items arrive,
|
|
174
|
+
* labels.moreLoaded({ count }) is announced.
|
|
175
|
+
* @since 2.13.0
|
|
176
|
+
*/
|
|
177
|
+
onLoadMore?: () => void | Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* More items are loading (for an `onLoadMore` that returns nothing and loads elsewhere):
|
|
180
|
+
* the button shows labels.loadingMore and is aria-disabled and aria-busy.
|
|
181
|
+
* @since 2.13.0
|
|
182
|
+
*/
|
|
183
|
+
loadingMore?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Content shown when the list has no items (after the search filter), in place of
|
|
186
|
+
* `emptyListMessage`: an illustrated empty state, a "Clear filters" action.
|
|
187
|
+
* @since 2.13.0
|
|
188
|
+
*/
|
|
189
|
+
listEmptyContent?: React.ReactNode;
|
|
190
|
+
/**
|
|
191
|
+
* Content shown instead of the list when loading the items failed: an error message with a
|
|
192
|
+
* retry action. Takes precedence over the items and the empty state; `loading` still shows
|
|
193
|
+
* the skeleton.
|
|
194
|
+
* @since 2.13.0
|
|
195
|
+
*/
|
|
196
|
+
listErrorContent?: React.ReactNode;
|
|
197
|
+
/**
|
|
198
|
+
* Overrides for the template's built-in strings: accessible names, tooltips and hidden
|
|
199
|
+
* text. Keys you leave out keep their English defaults (see {@link ListDetailTemplateLabels}).
|
|
200
|
+
* @since 2.13.0
|
|
201
|
+
*/
|
|
202
|
+
labels?: Partial<ListDetailTemplateLabels>;
|
|
203
|
+
/**
|
|
204
|
+
* Added to the root element's classes.
|
|
205
|
+
* @since 2.13.0
|
|
206
|
+
*/
|
|
207
|
+
className?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Styles for the root element, applied after the template's own (object, array or function
|
|
210
|
+
* form).
|
|
211
|
+
* @since 2.13.0
|
|
212
|
+
*/
|
|
213
|
+
sx?: SxProps<Theme>;
|
|
214
|
+
/**
|
|
215
|
+
* Props for the template's parts (ADR-04 (6)): `className`, `sx`, `id` and HTML attributes,
|
|
216
|
+
* merged with the part's own. `listPanel` and `detailPanel` are the two panels (Paper),
|
|
217
|
+
* `search` the search input, `list` the ul and `drawerPaper` the detail drawer's paper on a
|
|
218
|
+
* small screen. Owned attributes (role, aria-modal, aria-busy, ...) stay the template's.
|
|
219
|
+
* @since 2.13.0
|
|
220
|
+
*/
|
|
221
|
+
slotProps?: {
|
|
222
|
+
listPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
223
|
+
detailPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
224
|
+
search?: TrinitySlotProps<HTMLInputElement>;
|
|
225
|
+
list?: TrinitySlotProps<HTMLUListElement>;
|
|
226
|
+
drawerPaper?: TrinitySlotProps<HTMLDivElement>;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Props for ListDetailTemplate component: its own props plus the HTML attributes of the root
|
|
231
|
+
* div (ADR-04). Generic over the item type: pass items of a type that extends
|
|
232
|
+
* {@link ListDetailItem}, and `onSelect` and `renderListItem` receive that type.
|
|
233
|
+
*/
|
|
234
|
+
export interface ListDetailTemplateProps<T extends ListDetailItem = ListDetailItem> extends ListDetailTemplateOwnProps<T>, TrinityRootProps<HTMLDivElement, ListDetailTemplateOwnProps> {
|
|
86
235
|
}
|
|
87
|
-
|
|
236
|
+
/**
|
|
237
|
+
* A master-detail split view: a searchable list and a detail pane that follows the selection,
|
|
238
|
+
* collapsing to a full-width drawer on small screens.
|
|
239
|
+
*
|
|
240
|
+
* Generic over the item type (`<ListDetailTemplate<MyItem> items={myItems} onSelect={(item) =>
|
|
241
|
+
* item.myField} />`; usually inferred from `items`). The forwardRef result is cast to this generic
|
|
242
|
+
* call signature, which keeps `ref`; static members such as `displayName` are not part of the
|
|
243
|
+
* declared type, so read them through a cast.
|
|
244
|
+
*/
|
|
245
|
+
export declare const ListDetailTemplate: <T extends ListDetailItem = ListDetailItem>(props: ListDetailTemplateProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
88
246
|
//# sourceMappingURL=ListDetailTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ListDetail/ListDetailTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ListDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ListDetail/ListDetailTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqC/B,OAAO,EAAgB,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAkD,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnH,YAAY,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,2BAA2B;AAC3B,MAAM,WAAW,cAAc;IAC7B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB;IACjB,MAAM,CAAC,EA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QG;AACH,eAAO,MAAM,kBAAkB,EAA4D,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EACnI,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KACpE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ListDetailTemplate, type ListDetailTemplateProps, type
|
|
1
|
+
export { ListDetailTemplate, type ListDetailTemplateProps, type ListDetailItem, type ListDetailItemHelpers, type ListDetailTemplateLabels, } from './ListDetailTemplate';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ListDetail/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ListDetail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ListDetailTemplate's overridable strings and their English defaults (H-19,
|
|
3
|
+
* NAMING.md "Label overrides (non-AI)", H-47).
|
|
4
|
+
* @module components/templates/ListDetail/listDetailLabels
|
|
5
|
+
*/
|
|
6
|
+
/** The status values a list item can carry (ListDetailItem['status']). */
|
|
7
|
+
type ListDetailItemStatus = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
8
|
+
/**
|
|
9
|
+
* Strings ListDetailTemplate renders. Pass a partial object to `labels`; keys you leave out (or
|
|
10
|
+
* set to `undefined`) keep their English defaults. `searchPlaceholder` and `emptyListMessage`
|
|
11
|
+
* stay flat props.
|
|
12
|
+
*
|
|
13
|
+
* @since 2.13.0
|
|
14
|
+
*/
|
|
15
|
+
export interface ListDetailTemplateLabels {
|
|
16
|
+
/**
|
|
17
|
+
* Accessible name of the search field.
|
|
18
|
+
* @default 'Search'
|
|
19
|
+
*/
|
|
20
|
+
search: string;
|
|
21
|
+
/**
|
|
22
|
+
* Name and tooltip of the button that clears the search.
|
|
23
|
+
* @default 'Clear search'
|
|
24
|
+
*/
|
|
25
|
+
clearSearch: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name and tooltip of the filter button (`showFilter`), with the active filter count.
|
|
28
|
+
* @default ({ count }) => (count > 0 ? `Filters, ${count} active` : 'Filters')
|
|
29
|
+
*/
|
|
30
|
+
filterButton: (args: {
|
|
31
|
+
count: number;
|
|
32
|
+
}) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Name and tooltip of the button that closes the detail on a small screen.
|
|
35
|
+
* @default 'Back'
|
|
36
|
+
*/
|
|
37
|
+
back: string;
|
|
38
|
+
/**
|
|
39
|
+
* Visually hidden text read with an unread item, so unread is not conveyed by the dot and the
|
|
40
|
+
* font weight alone (WCAG 1.4.1).
|
|
41
|
+
* @default 'Unread'
|
|
42
|
+
*/
|
|
43
|
+
unread: string;
|
|
44
|
+
/**
|
|
45
|
+
* Visually hidden text read with an item that has a `status`, so the status is not conveyed by
|
|
46
|
+
* colour alone (WCAG 1.4.1). A status without an entry gets no text; keys you pass are merged
|
|
47
|
+
* over the defaults one by one.
|
|
48
|
+
* @default { success: 'Success', warning: 'Warning', error: 'Error', info: 'Info' }
|
|
49
|
+
*/
|
|
50
|
+
status: Partial<Record<ListDetailItemStatus, string>>;
|
|
51
|
+
/**
|
|
52
|
+
* Visually hidden text of the list while `loading` is true.
|
|
53
|
+
* @default 'Loading'
|
|
54
|
+
*/
|
|
55
|
+
loading: string;
|
|
56
|
+
/**
|
|
57
|
+
* Accessible name of the detail drawer on a small screen when there is no `detailHeader` to
|
|
58
|
+
* name it, and of the detail's scroll area while its content scrolls (it then takes focus,
|
|
59
|
+
* so the keyboard can scroll it).
|
|
60
|
+
* @default 'Details'
|
|
61
|
+
*/
|
|
62
|
+
detail: string;
|
|
63
|
+
/**
|
|
64
|
+
* Announced politely after the search changes (debounced): how many rows match.
|
|
65
|
+
* @default ({ count }) => (count === 0 ? 'No results' : count === 1 ? '1 result' : `${count} results`)
|
|
66
|
+
*/
|
|
67
|
+
resultsCount: (args: {
|
|
68
|
+
count: number;
|
|
69
|
+
}) => string;
|
|
70
|
+
/**
|
|
71
|
+
* Text of the load-more button (`hasMore` with `onLoadMore`).
|
|
72
|
+
* @default 'Load more'
|
|
73
|
+
*/
|
|
74
|
+
loadMore: string;
|
|
75
|
+
/**
|
|
76
|
+
* Text of the load-more button while more items load.
|
|
77
|
+
* @default 'Loading more'
|
|
78
|
+
*/
|
|
79
|
+
loadingMore: string;
|
|
80
|
+
/**
|
|
81
|
+
* Announced politely when a load-more adds items.
|
|
82
|
+
* @default ({ count }) => (count === 1 ? '1 more item loaded' : `${count} more items loaded`)
|
|
83
|
+
*/
|
|
84
|
+
moreLoaded: (args: {
|
|
85
|
+
count: number;
|
|
86
|
+
}) => string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* English defaults for {@link ListDetailTemplateLabels}.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
export declare const DEFAULT_LIST_DETAIL_LABELS: ListDetailTemplateLabels;
|
|
93
|
+
/**
|
|
94
|
+
* Merges the consumer's partial labels over the defaults. A key set to `undefined` keeps its
|
|
95
|
+
* default; `status` is merged per value.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
export declare function resolveListDetailLabels(overrides: Partial<ListDetailTemplateLabels> | undefined): ListDetailTemplateLabels;
|
|
99
|
+
/**
|
|
100
|
+
* The hidden status text for an item, or undefined for an item without a status or a status
|
|
101
|
+
* without a label.
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
export declare function listDetailStatusLabel(labels: ListDetailTemplateLabels, status: ListDetailItemStatus | undefined): string | undefined;
|
|
105
|
+
export {};
|
|
106
|
+
//# sourceMappingURL=listDetailLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listDetailLabels.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ListDetail/listDetailLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0EAA0E;AAC1E,KAAK,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IAClD;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IAClD;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CACjD;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,wBAaxC,CAAC;AAMF;;;;GAIG;AACH,wBAAgB,uBAAuB,CA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