@ds-mo/ui 13.13.0 → 13.15.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/.package-ready.json +1 -1
- package/dist/agent-patterns.json +71 -21
- package/dist/agent.json +291 -74
- package/dist/angular/ds-agent-questionnaire.d.ts +19 -0
- package/dist/angular/ds-agent-questionnaire.js +46 -0
- package/dist/angular/ds-agent-response.d.ts +1 -1
- package/dist/angular/ds-agent-response.js +3 -3
- package/dist/angular/ds-agent-source-list.d.ts +9 -2
- package/dist/angular/ds-agent-source-list.js +7 -3
- package/dist/angular/ds-agent-tool-call.d.ts +9 -2
- package/dist/angular/ds-agent-tool-call.js +9 -5
- package/dist/angular/ds-button-filled.d.ts +1 -1
- package/dist/angular/ds-button-filled.js +3 -3
- package/dist/angular/ds-button-unfilled.d.ts +1 -1
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-checkbox.d.ts +1 -1
- package/dist/angular/ds-checkbox.js +3 -3
- package/dist/angular/ds-message-composer.d.ts +1 -1
- package/dist/angular/ds-message-composer.js +3 -3
- package/dist/angular/ds-radio.js +2 -1
- package/dist/angular/ds-table.d.ts +4 -1
- package/dist/angular/ds-table.js +7 -4
- package/dist/angular/ds-tag.d.ts +1 -1
- package/dist/angular/ds-tag.js +3 -3
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +1 -0
- package/dist/angular/proxies.d.ts +1 -0
- package/dist/angular/proxies.js +1 -0
- package/dist/components/ds-agent-activity.js +1 -1
- package/dist/components/ds-agent-questionnaire.d.ts +24 -0
- package/dist/components/ds-agent-questionnaire.js +2 -0
- package/dist/components/ds-agent-questionnaire.js.map +1 -0
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-agent-response.js.map +1 -1
- package/dist/components/ds-agent-source-list.js +1 -1
- package/dist/components/ds-agent-tool-call.js +1 -1
- package/dist/components/ds-attachment-list.js +1 -1
- package/dist/components/ds-avatar.js +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-breadcrumb.js +1 -1
- package/dist/components/ds-button-filled.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/ds-card-chart.js +1 -1
- package/dist/components/ds-card-overview.js +1 -1
- package/dist/components/ds-card-overview.js.map +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-legend.js.map +1 -1
- package/dist/components/ds-chart.js +1 -1
- package/dist/components/ds-chart.js.map +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-chip.js.map +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-conversation-list-item.js +1 -1
- package/dist/components/ds-conversation-list-item.js.map +1 -1
- package/dist/components/ds-conversation-list-section.js +1 -1
- package/dist/components/ds-conversation-list.js +1 -1
- package/dist/components/ds-divider.js +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-input.js.map +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-actions.js +1 -1
- package/dist/components/ds-message-bubble.js +1 -1
- package/dist/components/ds-message-bubble.js.map +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-composer.js.map +1 -1
- package/dist/components/ds-message-scroller.js +1 -1
- package/dist/components/ds-message-scroller.js.map +1 -1
- package/dist/components/ds-message.js +1 -1
- package/dist/components/ds-mobile-bar-nav.js +1 -1
- package/dist/components/ds-mobile-header.js +1 -1
- package/dist/components/ds-mobile-section-switcher.js +1 -1
- package/dist/components/ds-mobile-sheet-nav.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js.map +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-radio.js +1 -1
- package/dist/components/ds-radio.js.map +1 -1
- package/dist/components/ds-scroll-overlay.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-select.js.map +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-app.js.map +1 -1
- package/dist/components/ds-shell-page.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-swatch-picker.js +1 -1
- package/dist/components/ds-switch.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-tooltip-chart.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/{p-PQgDzzn9.js → p-00or0yGw.js} +2 -2
- package/dist/components/p-B2SoinWf.js +2 -0
- package/dist/components/p-B2SoinWf.js.map +1 -0
- package/dist/components/{p-DGkWMhHO.js → p-B69Re7HW.js} +2 -2
- package/dist/components/p-BH_lVRgp.js +2 -0
- package/dist/components/{p-CCYgBUUS.js.map → p-BH_lVRgp.js.map} +1 -1
- package/dist/components/p-BLaqjUWu.js +2 -0
- package/dist/components/{p-Cw1bbiCG.js.map → p-BLaqjUWu.js.map} +1 -1
- package/dist/components/{p-B6z51yBf.js → p-BNkU9dcc.js} +2 -2
- package/dist/components/{p-DBchq8Zw.js → p-BRze4tRe.js} +2 -2
- package/dist/components/p-BtUgncSJ.js +2 -0
- package/dist/components/p-BtUgncSJ.js.map +1 -0
- package/dist/components/p-C891ueIx.js +2 -0
- package/dist/components/p-C891ueIx.js.map +1 -0
- package/dist/components/p-C8U5BsJf.js +2 -0
- package/dist/components/p-C8U5BsJf.js.map +1 -0
- package/dist/components/p-CCkptWPj.js +2 -0
- package/dist/components/p-CCkptWPj.js.map +1 -0
- package/dist/components/p-CKo3OFG1.js +2 -0
- package/dist/components/p-CKo3OFG1.js.map +1 -0
- package/dist/components/p-CXduurfd.js.map +1 -1
- package/dist/components/{p-DLwM1RNL.js → p-CdKz-QT2.js} +2 -2
- package/dist/components/p-CdKz-QT2.js.map +1 -0
- package/dist/components/p-CekGwihQ.js +2 -0
- package/dist/components/{p-CSlTJWFG.js.map → p-CekGwihQ.js.map} +1 -1
- package/dist/components/p-ClHpIZg0.js +2 -0
- package/dist/components/p-ClHpIZg0.js.map +1 -0
- package/dist/components/p-CnUq7E8S.js +2 -0
- package/dist/components/p-CnUq7E8S.js.map +1 -0
- package/dist/components/{p-C9StMCWg.js → p-Cohb8T7G.js} +2 -2
- package/dist/components/p-CqDJRVT8.js +2 -0
- package/dist/components/p-CqDJRVT8.js.map +1 -0
- package/dist/components/p-CsXC1cHI.js +2 -0
- package/dist/components/{p-DGvzGGcu.js.map → p-CsXC1cHI.js.map} +1 -1
- package/dist/components/p-CuwopElg.js.map +1 -1
- package/dist/components/p-D4j0deyd.js +2 -0
- package/dist/components/{p-CzV4gIxd.js.map → p-D4j0deyd.js.map} +1 -1
- package/dist/components/p-D5aUkdTw.js +2 -0
- package/dist/components/p-D5aUkdTw.js.map +1 -0
- package/dist/components/p-DQXzTV8N.js +2 -0
- package/dist/components/p-DQXzTV8N.js.map +1 -0
- package/dist/components/p-DStd98dM.js +2 -0
- package/dist/components/p-DStd98dM.js.map +1 -0
- package/dist/components/p-DWNhyLp2.js +2 -0
- package/dist/components/{p-B1JB0Zn-.js.map → p-DWNhyLp2.js.map} +1 -1
- package/dist/components/p-DWjE0VNn.js +2 -0
- package/dist/components/p-DWjE0VNn.js.map +1 -0
- package/dist/components/{p-BFMV9TJO.js → p-DgIRyJoc.js} +2 -2
- package/dist/components/{p-BNiIyZCn.js → p-Dhx_3_tf.js} +2 -2
- package/dist/components/p-Dhx_3_tf.js.map +1 -0
- package/dist/components/{p-CE82aQZr.js → p-DyVAWGL9.js} +2 -2
- package/dist/components/p-GSnB-sa7.js +2 -0
- package/dist/components/p-GSnB-sa7.js.map +1 -0
- package/dist/components/p-GWUTrIlk.js +2 -0
- package/dist/components/p-GWUTrIlk.js.map +1 -0
- package/dist/components/p-IhToA4m4.js +2 -0
- package/dist/components/{p-cPh32CFB.js.map → p-IhToA4m4.js.map} +1 -1
- package/dist/components/p-NQOI5gN1.js +2 -0
- package/dist/components/p-NQOI5gN1.js.map +1 -0
- package/dist/components/p-QDcUAz9m.js +2 -0
- package/dist/components/{p-BNHPCCw8.js.map → p-QDcUAz9m.js.map} +1 -1
- package/dist/components/p-Qf-os3lG.js +2 -0
- package/dist/components/p-Qf-os3lG.js.map +1 -0
- package/dist/components/{p-DBJJiSP0.js → p-chA2WA5x.js} +2 -2
- package/dist/components/{p-DwKC_9u2.js → p-dEouiXJ8.js} +2 -2
- package/dist/components/{p-BAGTb6cZ.js → p-fKwbYrhi.js} +2 -2
- package/dist/docs/components.json +942 -20
- package/dist/lib/components/ButtonFilled/ButtonFilled.d.ts +4 -0
- package/dist/lib/utils/control-text.d.ts +2 -0
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.js.map +2 -2
- package/dist/mcp-data/registry/agent-activity.json +2 -2
- package/dist/mcp-data/registry/agent-questionnaire.json +273 -0
- package/dist/mcp-data/registry/agent-response.json +33 -12
- package/dist/mcp-data/registry/agent-source-list.json +34 -14
- package/dist/mcp-data/registry/agent-tool-call.json +60 -19
- package/dist/mcp-data/registry/attachment-list.json +2 -2
- package/dist/mcp-data/registry/avatar.json +2 -2
- package/dist/mcp-data/registry/badge.json +2 -2
- package/dist/mcp-data/registry/banner.json +2 -2
- package/dist/mcp-data/registry/bar-nav.json +3 -3
- package/dist/mcp-data/registry/bar-title.json +3 -3
- package/dist/mcp-data/registry/bar-workflow.json +2 -2
- package/dist/mcp-data/registry/breadcrumb.json +3 -3
- package/dist/mcp-data/registry/button-filled.json +22 -4
- package/dist/mcp-data/registry/button-unfilled.json +28 -8
- package/dist/mcp-data/registry/card-chart.json +2 -2
- package/dist/mcp-data/registry/card-overview.json +2 -2
- package/dist/mcp-data/registry/card-setting.json +2 -2
- package/dist/mcp-data/registry/chart-legend.json +3 -3
- package/dist/mcp-data/registry/chart.json +3 -3
- package/dist/mcp-data/registry/checkbox.json +27 -10
- package/dist/mcp-data/registry/chip.json +3 -3
- package/dist/mcp-data/registry/code-block.json +15 -7
- package/dist/mcp-data/registry/conversation-list-item.json +3 -3
- package/dist/mcp-data/registry/conversation-list-section.json +2 -2
- package/dist/mcp-data/registry/conversation-list.json +2 -2
- package/dist/mcp-data/registry/divider.json +2 -2
- package/dist/mcp-data/registry/empty-state.json +2 -2
- package/dist/mcp-data/registry/field.json +2 -2
- package/dist/mcp-data/registry/icon.json +3 -3
- package/dist/mcp-data/registry/input.json +2 -2
- package/dist/mcp-data/registry/loader.json +2 -2
- package/dist/mcp-data/registry/markdown.json +2 -2
- package/dist/mcp-data/registry/menu.json +3 -3
- package/dist/mcp-data/registry/message-actions.json +2 -2
- package/dist/mcp-data/registry/message-bubble.json +3 -3
- package/dist/mcp-data/registry/message-composer.json +31 -9
- package/dist/mcp-data/registry/message-scroller.json +18 -10
- package/dist/mcp-data/registry/message.json +2 -2
- package/dist/mcp-data/registry/mobile-bar-nav.json +2 -2
- package/dist/mcp-data/registry/mobile-header.json +2 -2
- package/dist/mcp-data/registry/mobile-section-switcher.json +2 -2
- package/dist/mcp-data/registry/mobile-sheet-nav.json +2 -2
- package/dist/mcp-data/registry/modal.json +2 -2
- package/dist/mcp-data/registry/panel-nav.json +3 -3
- package/dist/mcp-data/registry/panel-sub-nav.json +2 -2
- package/dist/mcp-data/registry/panel-tool-header.json +2 -2
- package/dist/mcp-data/registry/panel-tool-search.json +2 -2
- package/dist/mcp-data/registry/panel-tools.json +3 -3
- package/dist/mcp-data/registry/radio.json +25 -12
- package/dist/mcp-data/registry/registry.json +295 -75
- package/dist/mcp-data/registry/scroll-overlay.json +2 -2
- package/dist/mcp-data/registry/select.json +3 -3
- package/dist/mcp-data/registry/shell-app.json +3 -3
- package/dist/mcp-data/registry/shell-page.json +2 -2
- package/dist/mcp-data/registry/shell-tools.json +2 -2
- package/dist/mcp-data/registry/skeleton.json +2 -2
- package/dist/mcp-data/registry/slider.json +3 -3
- package/dist/mcp-data/registry/swatch-picker.json +3 -3
- package/dist/mcp-data/registry/switch.json +3 -3
- package/dist/mcp-data/registry/tab-group.json +2 -2
- package/dist/mcp-data/registry/table.json +122 -21
- package/dist/mcp-data/registry/tag.json +24 -6
- package/dist/mcp-data/registry/text.json +3 -3
- package/dist/mcp-data/registry/toast.json +2 -2
- package/dist/mcp-data/registry/tooltip-chart.json +6 -4
- package/dist/mcp-data/registry/tooltip.json +2 -2
- package/dist/mcp-data/registry/typing-indicator.json +2 -2
- package/dist/react/components.d.ts +1 -0
- package/dist/react/components.js +1 -0
- package/dist/react/ds-agent-questionnaire.d.ts +13 -0
- package/dist/react/ds-agent-questionnaire.js +15 -0
- package/dist/react/ds-agent-source-list.d.ts +7 -2
- package/dist/react/ds-agent-source-list.js +1 -1
- package/dist/react/ds-agent-tool-call.d.ts +7 -2
- package/dist/react/ds-agent-tool-call.js +1 -1
- package/dist/react/ds-table.d.ts +2 -1
- package/dist/react/ds-table.js +1 -0
- package/dist/styles/prose.css +21 -4
- package/dist/styles/table.css +244 -26
- package/dist/types/components/AgentQuestionnaire/AgentQuestionnaire.d.ts +49 -0
- package/dist/types/components/AgentQuestionnaire/agent-questionnaire-model.d.ts +13 -0
- package/dist/types/components/AgentResponse/AgentResponse.d.ts +3 -1
- package/dist/types/components/AgentSourceList/AgentSourceList.d.ts +5 -0
- package/dist/types/components/AgentToolCall/AgentToolCall.d.ts +21 -0
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +4 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +11 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/components/MessageComposer/MessageComposer.d.ts +3 -0
- package/dist/types/components/MessageScroller/MessageScroller.d.ts +21 -1
- package/dist/types/components/Radio/Radio.d.ts +4 -0
- package/dist/types/components/Table/Table.d.ts +31 -23
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/table-cell-model.d.ts +44 -0
- package/dist/types/components/Table/table-layout-controller.d.ts +65 -0
- package/dist/types/components/Table/table-load-controller.d.ts +49 -0
- package/dist/types/components/Table/table-model.d.ts +25 -0
- package/dist/types/components/Table/table-render-model.d.ts +41 -0
- package/dist/types/components/Table/table-types.d.ts +23 -2
- package/dist/types/components/Tag/Tag.d.ts +3 -0
- package/dist/types/components/conversation-types.d.ts +51 -2
- package/dist/types/components.d.ts +231 -10
- package/dist/types/utils/control-text.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +7 -5
- package/dist/components/p-B1JB0Zn-.js +0 -2
- package/dist/components/p-B2t8alvH.js +0 -2
- package/dist/components/p-B2t8alvH.js.map +0 -1
- package/dist/components/p-BEEYhbIb.js +0 -2
- package/dist/components/p-BEEYhbIb.js.map +0 -1
- package/dist/components/p-BNHPCCw8.js +0 -2
- package/dist/components/p-BNiIyZCn.js.map +0 -1
- package/dist/components/p-BUZLhvs1.js +0 -2
- package/dist/components/p-BUZLhvs1.js.map +0 -1
- package/dist/components/p-BgaF83uh.js +0 -2
- package/dist/components/p-BgaF83uh.js.map +0 -1
- package/dist/components/p-Br0fwWUG.js +0 -2
- package/dist/components/p-Br0fwWUG.js.map +0 -1
- package/dist/components/p-BydCwx7x.js +0 -2
- package/dist/components/p-BydCwx7x.js.map +0 -1
- package/dist/components/p-C3Z01Glr.js +0 -2
- package/dist/components/p-C3Z01Glr.js.map +0 -1
- package/dist/components/p-CCYgBUUS.js +0 -2
- package/dist/components/p-CSlTJWFG.js +0 -2
- package/dist/components/p-CdFnvBem.js +0 -2
- package/dist/components/p-CdFnvBem.js.map +0 -1
- package/dist/components/p-Ch5yT3UA.js +0 -2
- package/dist/components/p-Ch5yT3UA.js.map +0 -1
- package/dist/components/p-Cw1bbiCG.js +0 -2
- package/dist/components/p-CzV4gIxd.js +0 -2
- package/dist/components/p-D-F8eyXy.js +0 -2
- package/dist/components/p-D-F8eyXy.js.map +0 -1
- package/dist/components/p-D6g070eY.js +0 -2
- package/dist/components/p-D6g070eY.js.map +0 -1
- package/dist/components/p-DGvzGGcu.js +0 -2
- package/dist/components/p-DLwM1RNL.js.map +0 -1
- package/dist/components/p-DmblUQ4D.js +0 -2
- package/dist/components/p-DmblUQ4D.js.map +0 -1
- package/dist/components/p-Doz2uwRv.js +0 -2
- package/dist/components/p-Doz2uwRv.js.map +0 -1
- package/dist/components/p-DumWT7NN.js +0 -2
- package/dist/components/p-DumWT7NN.js.map +0 -1
- package/dist/components/p-bLCbOPYa.js +0 -2
- package/dist/components/p-bLCbOPYa.js.map +0 -1
- package/dist/components/p-cPh32CFB.js +0 -2
- /package/dist/components/{p-PQgDzzn9.js.map → p-00or0yGw.js.map} +0 -0
- /package/dist/components/{p-DGkWMhHO.js.map → p-B69Re7HW.js.map} +0 -0
- /package/dist/components/{p-B6z51yBf.js.map → p-BNkU9dcc.js.map} +0 -0
- /package/dist/components/{p-DBchq8Zw.js.map → p-BRze4tRe.js.map} +0 -0
- /package/dist/components/{p-C9StMCWg.js.map → p-Cohb8T7G.js.map} +0 -0
- /package/dist/components/{p-BFMV9TJO.js.map → p-DgIRyJoc.js.map} +0 -0
- /package/dist/components/{p-CE82aQZr.js.map → p-DyVAWGL9.js.map} +0 -0
- /package/dist/components/{p-DBJJiSP0.js.map → p-chA2WA5x.js.map} +0 -0
- /package/dist/components/{p-DwKC_9u2.js.map → p-dEouiXJ8.js.map} +0 -0
- /package/dist/components/{p-BAGTb6cZ.js.map → p-fKwbYrhi.js.map} +0 -0
|
@@ -2,12 +2,14 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export interface RadioOption {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
+
description?: string;
|
|
5
6
|
isInactive?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export type RadioSize = 'lg' | 'md' | 'sm' | 'xs';
|
|
8
9
|
export declare class Radio {
|
|
9
10
|
el: HTMLElement;
|
|
10
11
|
internals: ElementInternals;
|
|
12
|
+
private readonly instanceId;
|
|
11
13
|
/** Visible choices in this one-of-many set. */
|
|
12
14
|
options: RadioOption[];
|
|
13
15
|
/** Selected option value. */
|
|
@@ -41,6 +43,8 @@ export declare class Radio {
|
|
|
41
43
|
formDisabledCallback(disabled: boolean): void;
|
|
42
44
|
formResetCallback(): void;
|
|
43
45
|
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
46
|
+
/** Focus the selected option, or the first active option when nothing is selected. */
|
|
47
|
+
setFocus(): Promise<void>;
|
|
44
48
|
private get activeItems();
|
|
45
49
|
handleKeyDown(e: KeyboardEvent): void;
|
|
46
50
|
private selectItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import type { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableGroup, TableGroupingChangeDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from './table-types';
|
|
2
|
+
import type { TableCaptionVisibility, TableCellActionDetail, TableColumn, TableGroup, TableGroupCollapseChangeDetail, TableGroupingChangeDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortState } from './table-types';
|
|
3
3
|
export declare class Table {
|
|
4
4
|
/** Stable column definitions. Assign through JavaScript. */
|
|
5
5
|
columns: TableColumn[];
|
|
@@ -11,9 +11,20 @@ export declare class Table {
|
|
|
11
11
|
grouping: TableGroupingState | null;
|
|
12
12
|
/** Controlled member-row sort state. */
|
|
13
13
|
sort: TableSortState | null;
|
|
14
|
-
/**
|
|
14
|
+
/** Controlled collapsed group identities. Groups not listed remain expanded. */
|
|
15
|
+
collapsedGroupIds: string[];
|
|
16
|
+
/** Required accessible table name, retained as a native caption. */
|
|
15
17
|
caption: string;
|
|
18
|
+
/** Shows a matching presentational title bar above the native table frame. */
|
|
16
19
|
captionVisibility: TableCaptionVisibility;
|
|
20
|
+
/**
|
|
21
|
+
* Optional result summary footer. When both `displayedCount` and `totalCount`
|
|
22
|
+
* are finite numbers, the table shows “Displaying {displayed} of {total}”.
|
|
23
|
+
*/
|
|
24
|
+
displayedCount: number | undefined;
|
|
25
|
+
totalCount: number | undefined;
|
|
26
|
+
/** Supports {displayed} and {total} placeholders. */
|
|
27
|
+
resultSummaryLabel: string;
|
|
17
28
|
stickyHeader: boolean;
|
|
18
29
|
/** Maximum scroll-region height. Numbers resolve to CSS pixels. */
|
|
19
30
|
maxHeight: string | number | undefined;
|
|
@@ -50,6 +61,7 @@ export declare class Table {
|
|
|
50
61
|
rowsLoadedLabel: string;
|
|
51
62
|
dsSortChange: EventEmitter<TableSortChangeDetail>;
|
|
52
63
|
dsGroupingChange: EventEmitter<TableGroupingChangeDetail>;
|
|
64
|
+
dsGroupCollapseChange: EventEmitter<TableGroupCollapseChangeDetail>;
|
|
53
65
|
dsSelectionChange: EventEmitter<TableSelectionChangeDetail>;
|
|
54
66
|
dsLoadMore: EventEmitter<TableLoadMoreDetail>;
|
|
55
67
|
dsCellAction: EventEmitter<TableCellActionDetail>;
|
|
@@ -57,21 +69,19 @@ export declare class Table {
|
|
|
57
69
|
private overflowStart;
|
|
58
70
|
private overflowEnd;
|
|
59
71
|
private scrollable;
|
|
60
|
-
private intersectionSupported;
|
|
61
72
|
private announcement;
|
|
62
73
|
private viewportEl;
|
|
74
|
+
private frameEl;
|
|
75
|
+
private interactiveHeadEl;
|
|
76
|
+
private collapseAllOverlayEl;
|
|
63
77
|
private stickyHeaderTableEl;
|
|
64
78
|
private tableEl;
|
|
65
79
|
private sentinelEl;
|
|
66
|
-
private resizeObserver;
|
|
67
|
-
private intersectionObserver;
|
|
68
|
-
private observedSentinel;
|
|
69
|
-
private requestPending;
|
|
70
|
-
private requestedRowCount;
|
|
71
|
-
private previousLoadedRowCount;
|
|
72
80
|
private previousModelWarning;
|
|
73
81
|
private hasLoaded;
|
|
74
|
-
private
|
|
82
|
+
private renderedModel;
|
|
83
|
+
private readonly layoutController;
|
|
84
|
+
private readonly loadController;
|
|
75
85
|
componentWillLoad(): void;
|
|
76
86
|
componentDidLoad(): void;
|
|
77
87
|
componentDidRender(): void;
|
|
@@ -87,40 +97,38 @@ export declare class Table {
|
|
|
87
97
|
private get grouped();
|
|
88
98
|
private get selectable();
|
|
89
99
|
private get documentStickyHeader();
|
|
90
|
-
private
|
|
91
|
-
private
|
|
92
|
-
private
|
|
93
|
-
private get selectedSet();
|
|
94
|
-
private get selectionState();
|
|
100
|
+
private currentLoadedRows;
|
|
101
|
+
private currentLoadedRowCount;
|
|
102
|
+
private createRenderModel;
|
|
95
103
|
private get resolvedMaxHeight();
|
|
96
|
-
private get tableStyle();
|
|
97
104
|
private warnModelIssues;
|
|
98
|
-
private connectViewportObserver;
|
|
99
|
-
private syncOverflow;
|
|
100
|
-
private syncStickyHeaderPosition;
|
|
101
|
-
private resetLoadRequest;
|
|
102
|
-
private disconnectIntersectionObserver;
|
|
103
|
-
private connectIntersectionObserver;
|
|
104
|
-
private requestLoadMore;
|
|
105
105
|
private emitSort;
|
|
106
106
|
private sortButtonLabel;
|
|
107
107
|
private emitRowSelection;
|
|
108
108
|
private emitAllSelection;
|
|
109
|
+
private emitGroupSelection;
|
|
109
110
|
private rowEventOwnsActivation;
|
|
110
111
|
private emitRowActivation;
|
|
111
112
|
private handleRowKeydown;
|
|
112
113
|
private renderSelectionControl;
|
|
113
114
|
private renderStickyEdge;
|
|
115
|
+
private renderCollapseAllButton;
|
|
116
|
+
private renderFloatingCollapseAll;
|
|
114
117
|
private renderColumnHeader;
|
|
115
118
|
private renderColgroup;
|
|
116
119
|
private renderHeader;
|
|
117
120
|
private renderCellValue;
|
|
118
121
|
private renderRow;
|
|
122
|
+
private emitGroupCollapse;
|
|
123
|
+
private emitAllGroupsCollapse;
|
|
119
124
|
private renderDataBodies;
|
|
120
125
|
private renderSkeletonBody;
|
|
121
126
|
private renderStateBody;
|
|
122
127
|
private renderLazyBody;
|
|
123
128
|
private renderDocumentStickyHeader;
|
|
129
|
+
private get resultSummary();
|
|
130
|
+
private renderResultFooter;
|
|
131
|
+
private renderCaptionBar;
|
|
124
132
|
render(): any;
|
|
125
133
|
}
|
|
126
134
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TableCaptionVisibility, TableCellAlign, TableCellAction, TableCellActionDetail, TableCellBlank, TableCellEmpty, TableCellIcon, TableCellImage, TableCellPrimaryText, TableCellText, TableCellTag, TableCellTagVariant, TableCellValue, TableColumn, TableColumnSticky, TableColumnWidth, TableGroup, TableHeaderSegment, TableGroupingChangeDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableLoadMoreReason, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortDirection, TableSortState, } from './table-types';
|
|
1
|
+
export type { TableCaptionVisibility, TableCellAlign, TableCellAction, TableCellActionDetail, TableCellBlank, TableCellEmpty, TableCellIcon, TableCellImage, TableCellPrimaryText, TableCellText, TableCellTag, TableCellTagVariant, TableCellValue, TableColumn, TableColumnSticky, TableColumnWidth, TableGroup, TableGroupCollapseChangeDetail, TableGroupIntent, TableHeaderSegment, TableGroupingChangeDetail, TableGroupingState, TableLoadMoreDetail, TableLoadMoreMode, TableLoadMoreReason, TableRow, TableRowActivateDetail, TableSelectionChangeDetail, TableSelectionMode, TableSortChangeDetail, TableSortDirection, TableSortState, } from './table-types';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { TableCellAction, TableCellBlank, TableCellEmpty, TableCellIcon, TableCellImage, TableCellTag, TableCellTagVariant, TableCellValue, TableColumn } from './table-types';
|
|
2
|
+
export interface ResolvedTableCellText {
|
|
3
|
+
primary: string | number;
|
|
4
|
+
secondary?: string | number;
|
|
5
|
+
wrap?: boolean;
|
|
6
|
+
fontFeature?: 'normal' | 'tabular-nums';
|
|
7
|
+
}
|
|
8
|
+
export type TableCellPresentation = {
|
|
9
|
+
kind: 'blank';
|
|
10
|
+
cellType: 'blank';
|
|
11
|
+
value: TableCellBlank;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'empty';
|
|
14
|
+
cellType: 'empty';
|
|
15
|
+
value: TableCellEmpty | null | undefined;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'icon';
|
|
18
|
+
cellType: 'icon';
|
|
19
|
+
value: TableCellIcon;
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'image';
|
|
22
|
+
cellType: 'image';
|
|
23
|
+
value: TableCellImage;
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'action';
|
|
26
|
+
cellType: 'action';
|
|
27
|
+
value: TableCellAction;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'tag';
|
|
30
|
+
cellType: 'tag';
|
|
31
|
+
value: TableCellTag;
|
|
32
|
+
variant: TableCellTagVariant;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'text';
|
|
35
|
+
cellType: 'text' | 'primary-text';
|
|
36
|
+
value: ResolvedTableCellText;
|
|
37
|
+
primaryText: boolean;
|
|
38
|
+
singleLine: boolean;
|
|
39
|
+
variant: 'single' | 'multi' | 'primary-pair';
|
|
40
|
+
wraps: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** Resolve a cell's semantic and visual recipe once for both markup and classes. */
|
|
43
|
+
export declare function resolveTableCellPresentation(value: TableCellValue, column: TableColumn): TableCellPresentation;
|
|
44
|
+
//# sourceMappingURL=table-cell-model.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface TableLayoutElements {
|
|
2
|
+
viewport: HTMLElement | null;
|
|
3
|
+
table: HTMLTableElement | null;
|
|
4
|
+
stickyHeaderTable: HTMLTableElement | null;
|
|
5
|
+
collapseAllOverlay: HTMLElement | null;
|
|
6
|
+
frame: HTMLElement | null;
|
|
7
|
+
interactiveHead: HTMLTableSectionElement | null;
|
|
8
|
+
}
|
|
9
|
+
export interface TableLayoutMode {
|
|
10
|
+
documentStickyHeader: boolean;
|
|
11
|
+
floatingCollapseAll: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TableOverflowState {
|
|
14
|
+
start: boolean;
|
|
15
|
+
end: boolean;
|
|
16
|
+
scrollable: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface TableLayoutControllerOptions {
|
|
19
|
+
elements: () => TableLayoutElements;
|
|
20
|
+
mode: () => TableLayoutMode;
|
|
21
|
+
overflowChanged: (state: TableOverflowState) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface TableLayoutMetricInput {
|
|
24
|
+
viewportInlineSize: number;
|
|
25
|
+
viewportBlockSize: number;
|
|
26
|
+
scrollInlineSize: number;
|
|
27
|
+
scrollBlockSize: number;
|
|
28
|
+
scrollInlineOffset: number;
|
|
29
|
+
tableInlineSize: number;
|
|
30
|
+
collapseHeadBlockStart?: number;
|
|
31
|
+
collapseFrameBlockStart?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface TableLayoutMetrics {
|
|
34
|
+
visibleInlineSize: number;
|
|
35
|
+
overflow: TableOverflowState;
|
|
36
|
+
inlineOffset: number;
|
|
37
|
+
maxInlineOffset: number;
|
|
38
|
+
collapseBlockOffset: number | null;
|
|
39
|
+
}
|
|
40
|
+
/** Pure geometry resolution shared by the controller and focused tests. */
|
|
41
|
+
export declare function resolveTableLayoutMetrics(input: TableLayoutMetricInput): TableLayoutMetrics;
|
|
42
|
+
/**
|
|
43
|
+
* Owns table viewport observation. It resolves newly rendered geometry
|
|
44
|
+
* immediately so the first paint has the correct viewport-width chrome, then
|
|
45
|
+
* batches observer-driven scroll and resize reads/writes into one animation frame.
|
|
46
|
+
* The component remains responsible only for refs and reactive overflow state.
|
|
47
|
+
*/
|
|
48
|
+
export declare class TableLayoutController {
|
|
49
|
+
private readonly options;
|
|
50
|
+
private connected;
|
|
51
|
+
private connectedViewport;
|
|
52
|
+
private observedTable;
|
|
53
|
+
private resizeObserver;
|
|
54
|
+
private frame;
|
|
55
|
+
private overflow;
|
|
56
|
+
constructor(options: TableLayoutControllerOptions);
|
|
57
|
+
connect(): void;
|
|
58
|
+
disconnect(): void;
|
|
59
|
+
/** Reconcile newly rendered refs, observers, and pending geometry. */
|
|
60
|
+
refresh(): void;
|
|
61
|
+
private schedule;
|
|
62
|
+
private sync;
|
|
63
|
+
private setProperty;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=table-layout-controller.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { TableLoadMoreDetail, TableLoadMoreMode, TableLoadMoreReason } from './table-types';
|
|
2
|
+
export interface TableLoadControllerState {
|
|
3
|
+
lazyLoading: boolean;
|
|
4
|
+
loadMoreMode: TableLoadMoreMode;
|
|
5
|
+
hasMore: boolean;
|
|
6
|
+
loadingMore: boolean;
|
|
7
|
+
loadMoreError: string | undefined;
|
|
8
|
+
loadIdentity: string | number;
|
|
9
|
+
loadMoreThreshold: number;
|
|
10
|
+
containedScroll: boolean;
|
|
11
|
+
loadingMoreLabel: string;
|
|
12
|
+
endOfResultsLabel: string;
|
|
13
|
+
rowsLoadedLabel: string;
|
|
14
|
+
loadedRowCount: number;
|
|
15
|
+
viewport: HTMLElement | null;
|
|
16
|
+
sentinel: HTMLElement | null;
|
|
17
|
+
}
|
|
18
|
+
export interface TableLoadControllerOptions {
|
|
19
|
+
state: () => TableLoadControllerState;
|
|
20
|
+
announce: (message: string) => void;
|
|
21
|
+
request: (detail: TableLoadMoreDetail) => void;
|
|
22
|
+
}
|
|
23
|
+
/** Owns incremental-loading request guards, announcements, and observation. */
|
|
24
|
+
export declare class TableLoadController {
|
|
25
|
+
private readonly options;
|
|
26
|
+
readonly intersectionSupported: boolean;
|
|
27
|
+
private connected;
|
|
28
|
+
private intersectionObserver;
|
|
29
|
+
private observedSentinel;
|
|
30
|
+
private requestPending;
|
|
31
|
+
private requestedRowCount;
|
|
32
|
+
private previousLoadedRowCount;
|
|
33
|
+
constructor(options: TableLoadControllerOptions);
|
|
34
|
+
initialize(): void;
|
|
35
|
+
connect(): void;
|
|
36
|
+
disconnect(): void;
|
|
37
|
+
refresh(): void;
|
|
38
|
+
structureChanged(): void;
|
|
39
|
+
dataChanged(): void;
|
|
40
|
+
identityChanged(): void;
|
|
41
|
+
configurationChanged(): void;
|
|
42
|
+
loadingChanged(loading: boolean): void;
|
|
43
|
+
errorChanged(error: string | undefined): void;
|
|
44
|
+
hasMoreChanged(hasMore: boolean, hadMore: boolean): void;
|
|
45
|
+
request(reason: TableLoadMoreReason): void;
|
|
46
|
+
private resetRequest;
|
|
47
|
+
private disconnectObserver;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=table-load-controller.d.ts.map
|
|
@@ -17,13 +17,38 @@ export declare function tableCellPrimary(value: TableCellValue): string | number
|
|
|
17
17
|
export declare function tableRowSelectionLabel(row: TableRow, columns: TableColumn[]): string;
|
|
18
18
|
export declare function nextTableSortState(current: TableSortState | null | undefined, columnId: string): TableSortState;
|
|
19
19
|
export declare function nextTableGroupOrder(grouping: TableGroupingState): TableGroupingState;
|
|
20
|
+
export declare function toggleTableGroupCollapsed(collapsedGroupIds: string[], groupId: string): string[];
|
|
21
|
+
export declare function nextTableGroupsCollapsed(collapsedGroupIds: string[], groupIds: string[]): string[];
|
|
22
|
+
/** Host for grouped collapse-all: the trailing action lane or a scrollport-owned overlay. */
|
|
23
|
+
export type TableCollapseAllHost = {
|
|
24
|
+
columnId: string;
|
|
25
|
+
mode: 'action';
|
|
26
|
+
} | {
|
|
27
|
+
mode: 'floating';
|
|
28
|
+
};
|
|
29
|
+
export declare function tableCollapseAllHost(columns: TableColumn[]): TableCollapseAllHost | undefined;
|
|
20
30
|
export declare function clampTableColumnSize(column: TableColumn): number | undefined;
|
|
21
31
|
export declare function tableColumnSize(column: TableColumn): string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* When every column has an explicit width, one ordinary lane must absorb spare
|
|
34
|
+
* table width so fixed selection and action lanes are not expanded by the
|
|
35
|
+
* native fixed-table layout algorithm.
|
|
36
|
+
*/
|
|
37
|
+
export declare function tableFlexibleColumnId(columns: TableColumn[]): string | undefined;
|
|
22
38
|
export declare function tableExplicitMinWidth(columns: TableColumn[]): string | undefined;
|
|
23
39
|
export declare function tableRows(rows: TableRow[], groups: TableGroup[], grouped: boolean): TableRow[];
|
|
24
40
|
export declare function deriveTableSelectionState(rows: TableRow[], selectedRowIds: readonly string[]): TableSelectionState;
|
|
25
41
|
export declare function toggleTableRowSelection(selectedRowIds: readonly string[], row: TableRow): string[];
|
|
26
42
|
export declare function toggleAllLoadedTableRows(selectedRowIds: readonly string[], loadedRows: TableRow[]): string[];
|
|
43
|
+
/** Toggle every selectable loaded row that belongs to a group. */
|
|
44
|
+
export declare function toggleTableGroupSelection(selectedRowIds: readonly string[], groupRows: TableRow[]): string[];
|
|
27
45
|
export declare function resolvedTableGroupCount(group: TableGroup): number;
|
|
46
|
+
export declare const TABLE_GROUP_INTENTS: readonly ["brand", "neutral", "negative", "warning", "caution", "positive"];
|
|
47
|
+
export declare function isTableGroupIntent(value: unknown): value is (typeof TABLE_GROUP_INTENTS)[number];
|
|
48
|
+
export declare function tableGroupIntentClass(intent: (typeof TABLE_GROUP_INTENTS)[number] | undefined): string | undefined;
|
|
49
|
+
/** Title color for an intentful group label; defaults to primary when unset. */
|
|
50
|
+
export declare function tableGroupLabelColor(intent: (typeof TABLE_GROUP_INTENTS)[number] | undefined): 'primary' | 'brand' | 'negative' | 'warning' | 'caution' | 'positive' | `var(--${string})`;
|
|
51
|
+
/** Formats the optional table result footer. Returns null when either count is missing. */
|
|
52
|
+
export declare function formatTableResultSummary(displayed: number | null | undefined, total: number | null | undefined, label?: string, locale?: string): string | null;
|
|
28
53
|
export declare function tableModelIssues(columns: TableColumn[], rows: TableRow[], groups: TableGroup[], grouped: boolean): string[];
|
|
29
54
|
//# sourceMappingURL=table-model.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { tableGroupLabelColor, type TableCollapseAllHost, type TableSelectionState } from './table-model';
|
|
2
|
+
import type { TableColumn, TableGroup, TableGroupIntent, TableRow, TableSelectionMode } from './table-types';
|
|
3
|
+
export interface TableGroupRenderModel {
|
|
4
|
+
group: TableGroup;
|
|
5
|
+
count: number;
|
|
6
|
+
countLabel: string;
|
|
7
|
+
countIntent: TableGroupIntent;
|
|
8
|
+
intent: TableGroupIntent | undefined;
|
|
9
|
+
intentClass: string | undefined;
|
|
10
|
+
labelColor: ReturnType<typeof tableGroupLabelColor>;
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
selection: TableSelectionState | null;
|
|
13
|
+
}
|
|
14
|
+
export interface TableRenderModel {
|
|
15
|
+
grouped: boolean;
|
|
16
|
+
selectable: boolean;
|
|
17
|
+
loadedRows: TableRow[];
|
|
18
|
+
hasData: boolean;
|
|
19
|
+
selectedRowIds: ReadonlySet<string>;
|
|
20
|
+
selection: TableSelectionState;
|
|
21
|
+
collapsedGroupIds: ReadonlySet<string>;
|
|
22
|
+
groups: TableGroupRenderModel[];
|
|
23
|
+
totalColumns: number;
|
|
24
|
+
allGroupsCollapsed: boolean;
|
|
25
|
+
showCollapseAll: boolean;
|
|
26
|
+
collapseAllHost: TableCollapseAllHost | undefined;
|
|
27
|
+
flexibleColumnId: string | undefined;
|
|
28
|
+
tableStyle: Record<string, string> | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface TableRenderModelInput {
|
|
31
|
+
columns: TableColumn[];
|
|
32
|
+
rows: TableRow[];
|
|
33
|
+
groups: TableGroup[];
|
|
34
|
+
grouped: boolean;
|
|
35
|
+
selectionMode: TableSelectionMode;
|
|
36
|
+
selectedRowIds: string[];
|
|
37
|
+
collapsedGroupIds: string[];
|
|
38
|
+
}
|
|
39
|
+
/** Create one immutable snapshot of all derived state consumed during a render. */
|
|
40
|
+
export declare function createTableRenderModel(input: TableRenderModelInput): TableRenderModel;
|
|
41
|
+
//# sourceMappingURL=table-render-model.d.ts.map
|
|
@@ -8,6 +8,8 @@ export type TableCaptionVisibility = 'visible' | 'hidden';
|
|
|
8
8
|
export type TableLoadMoreMode = 'auto' | 'manual';
|
|
9
9
|
export type TableLoadMoreReason = 'auto' | 'manual' | 'retry';
|
|
10
10
|
export type TableColumnWidth = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
/** Semantic color for a group section header (faint surface + bold title). */
|
|
12
|
+
export type TableGroupIntent = 'brand' | 'neutral' | 'negative' | 'warning' | 'caution' | 'positive';
|
|
11
13
|
/** Independently sortable label within a compound column header. */
|
|
12
14
|
export interface TableHeaderSegment {
|
|
13
15
|
label: string;
|
|
@@ -135,6 +137,11 @@ export interface TableColumn {
|
|
|
135
137
|
wrap?: boolean;
|
|
136
138
|
/** Pin one application column to either inline edge during horizontal scrolling. */
|
|
137
139
|
sticky?: TableColumnSticky;
|
|
140
|
+
/**
|
|
141
|
+
* Declare a trailing application-action lane. Action columns keep fixed
|
|
142
|
+
* geometry and may host grouped table-level controls in their header.
|
|
143
|
+
*/
|
|
144
|
+
kind?: 'data' | 'action';
|
|
138
145
|
}
|
|
139
146
|
export interface TableRow {
|
|
140
147
|
/** Stable identity, unique across all groups. */
|
|
@@ -156,8 +163,13 @@ export interface TableGroup {
|
|
|
156
163
|
value?: string | number;
|
|
157
164
|
/** Total server-side member count; may exceed the currently loaded row count. */
|
|
158
165
|
totalCount?: number;
|
|
159
|
-
/** Optional localized
|
|
166
|
+
/** Optional localized accessible count phrase such as “18 vehicles”; the visible tag remains numeric. */
|
|
160
167
|
countLabel?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Optional semantic intent for the group section header. Applies a faint
|
|
170
|
+
* intent background and bold intent title color.
|
|
171
|
+
*/
|
|
172
|
+
intent?: TableGroupIntent;
|
|
161
173
|
rows: TableRow[];
|
|
162
174
|
}
|
|
163
175
|
export interface TableSortChangeDetail {
|
|
@@ -168,8 +180,10 @@ export interface TableGroupingChangeDetail {
|
|
|
168
180
|
}
|
|
169
181
|
export interface TableSelectionChangeDetail {
|
|
170
182
|
selectedRowIds: string[];
|
|
171
|
-
scope: 'row' | 'all-loaded';
|
|
183
|
+
scope: 'row' | 'all-loaded' | 'group';
|
|
172
184
|
changedRowId?: string;
|
|
185
|
+
/** Present when scope is `group`. */
|
|
186
|
+
groupId?: string;
|
|
173
187
|
selected?: boolean;
|
|
174
188
|
}
|
|
175
189
|
export interface TableLoadMoreDetail {
|
|
@@ -182,6 +196,13 @@ export interface TableCellActionDetail {
|
|
|
182
196
|
rowId: string;
|
|
183
197
|
columnId: string;
|
|
184
198
|
}
|
|
199
|
+
export interface TableGroupCollapseChangeDetail {
|
|
200
|
+
scope: 'group' | 'all';
|
|
201
|
+
/** Present when a single group was toggled. */
|
|
202
|
+
groupId?: string;
|
|
203
|
+
collapsed: boolean;
|
|
204
|
+
collapsedGroupIds: string[];
|
|
205
|
+
}
|
|
185
206
|
export interface TableRowActivateDetail {
|
|
186
207
|
rowId: string;
|
|
187
208
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type ControlInsetDepth } from '../../utils';
|
|
2
3
|
export type TagIntent = 'neutral' | 'brand' | 'ai' | 'negative' | 'warning' | 'caution' | 'positive';
|
|
3
4
|
export type TagContrast = 'strong' | 'bold' | 'medium' | 'faint';
|
|
4
5
|
export type TagSize = 'md' | 'sm' | 'xs';
|
|
@@ -11,6 +12,8 @@ export declare class Tag {
|
|
|
11
12
|
size: TagSize;
|
|
12
13
|
/** Use the reduced outer geometry when nested inside a control of the same size. */
|
|
13
14
|
isInset: boolean;
|
|
15
|
+
/** Single removes 4px overall; double removes 8px overall (xs stays single). */
|
|
16
|
+
insetDepth: ControlInsetDepth;
|
|
14
17
|
rounded: boolean;
|
|
15
18
|
maxWidth: string | number | undefined;
|
|
16
19
|
/** Render a menu-trigger button with a fixed ChevronUpDown suffix. */
|
|
@@ -29,7 +29,56 @@ export interface AgentSource {
|
|
|
29
29
|
url: string;
|
|
30
30
|
description?: string;
|
|
31
31
|
}
|
|
32
|
-
export type
|
|
32
|
+
export type AgentQuestionType = 'single' | 'multiple' | 'text';
|
|
33
|
+
export interface AgentQuestionChoice {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AgentQuestion {
|
|
39
|
+
id: string;
|
|
40
|
+
type: AgentQuestionType;
|
|
41
|
+
question: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
choices?: AgentQuestionChoice[];
|
|
44
|
+
required?: boolean;
|
|
45
|
+
skippable?: boolean;
|
|
46
|
+
allowOther?: boolean;
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AgentQuestionAnswer {
|
|
50
|
+
questionId: string;
|
|
51
|
+
value: string | string[] | null;
|
|
52
|
+
}
|
|
53
|
+
export type AgentQuestionnaireStatus = 'preparing' | 'ready' | 'submitting' | 'error' | 'answered';
|
|
54
|
+
export interface AgentQuestionnaireLabels {
|
|
55
|
+
progress: string;
|
|
56
|
+
previous: string;
|
|
57
|
+
next: string;
|
|
58
|
+
answer: string;
|
|
59
|
+
skip: string;
|
|
60
|
+
cancel: string;
|
|
61
|
+
other: string;
|
|
62
|
+
otherPlaceholder: string;
|
|
63
|
+
preparing: string;
|
|
64
|
+
}
|
|
65
|
+
export interface AgentQuestionnaireAnswerEventDetail {
|
|
66
|
+
requestId: string;
|
|
67
|
+
answers: AgentQuestionAnswer[];
|
|
68
|
+
}
|
|
69
|
+
export interface AgentQuestionnaireCancelEventDetail {
|
|
70
|
+
requestId: string;
|
|
71
|
+
}
|
|
72
|
+
export type AgentToolState = 'preparing' | 'queued' | 'running' | 'waiting-for-user' | 'success' | 'error' | 'denied' | 'canceled';
|
|
73
|
+
export type AgentResponseRenderMode = 'parts' | 'composed';
|
|
74
|
+
export interface AgentQuestionnaireResponsePart {
|
|
75
|
+
id: string;
|
|
76
|
+
type: 'questionnaire';
|
|
77
|
+
requestId: string;
|
|
78
|
+
questions: AgentQuestion[];
|
|
79
|
+
answers: AgentQuestionAnswer[];
|
|
80
|
+
status: 'answered';
|
|
81
|
+
}
|
|
33
82
|
export type AgentResponsePart = {
|
|
34
83
|
id: string;
|
|
35
84
|
type: 'markdown';
|
|
@@ -56,5 +105,5 @@ export type AgentResponsePart = {
|
|
|
56
105
|
id: string;
|
|
57
106
|
type: 'sources';
|
|
58
107
|
items: AgentSource[];
|
|
59
|
-
};
|
|
108
|
+
} | AgentQuestionnaireResponsePart;
|
|
60
109
|
//# sourceMappingURL=conversation-types.d.ts.map
|