@redvars/peacock 4.6.0 → 4.7.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/accordion-item.js +54 -35
- package/dist/accordion-item.js.map +1 -1
- package/dist/accordion.js +9 -9
- package/dist/accordion.js.map +1 -1
- package/dist/agent.js +1937 -0
- package/dist/agent.js.map +1 -0
- package/dist/ai-badge.js +5 -8
- package/dist/ai-badge.js.map +1 -1
- package/dist/ai-summary.js +5 -8
- package/dist/ai-summary.js.map +1 -1
- package/dist/alert.js +6 -9
- package/dist/alert.js.map +1 -1
- package/dist/anchor-nav.js +6 -9
- package/dist/anchor-nav.js.map +1 -1
- package/dist/announce-Cqen_7FM.js +45 -0
- package/dist/announce-Cqen_7FM.js.map +1 -0
- package/dist/app-bar.js +5 -8
- package/dist/app-bar.js.map +1 -1
- package/dist/app-shell.js +6 -9
- package/dist/app-shell.js.map +1 -1
- package/dist/assistant-panel.js +5 -8
- package/dist/assistant-panel.js.map +1 -1
- package/dist/assistant-step.js +4 -7
- package/dist/assistant-step.js.map +1 -1
- package/dist/assistant-steps.js +5 -8
- package/dist/assistant-steps.js.map +1 -1
- package/dist/{attachable-controller-DofeyflD.js → attachable-controller-seKf2eqC.js} +2 -2
- package/dist/{attachable-controller-DofeyflD.js.map → attachable-controller-seKf2eqC.js.map} +1 -1
- package/dist/avatar-group.js +5 -8
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.js +6 -9
- package/dist/avatar.js.map +1 -1
- package/dist/badge.js +5 -8
- package/dist/badge.js.map +1 -1
- package/dist/banner.js +6 -9
- package/dist/banner.js.map +1 -1
- package/dist/{base-button-9tGu5RSC.js → base-button-CkV2vtVA.js} +2 -3
- package/dist/base-button-CkV2vtVA.js.map +1 -0
- package/dist/bottom-sheet.js +7 -10
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/breadcrumb-item.js +7 -10
- package/dist/breadcrumb-item.js.map +1 -1
- package/dist/breadcrumb.js +7 -10
- package/dist/breadcrumb.js.map +1 -1
- package/dist/{ButtonConstants-CahP2_NA.js → button-constants-CahP2_NA.js} +1 -1
- package/dist/button-constants-CahP2_NA.js.map +1 -0
- package/dist/button-group.js +16 -17
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +237 -16
- package/dist/button.js.map +1 -1
- package/dist/calendar-column-view.js +7 -10
- package/dist/calendar-column-view.js.map +1 -1
- package/dist/{calendar-header-DVrfThwr.js → calendar-header-CXz48-1c.js} +2 -2
- package/dist/{calendar-header-DVrfThwr.js.map → calendar-header-CXz48-1c.js.map} +1 -1
- package/dist/calendar-month-view.js +7 -10
- package/dist/calendar-month-view.js.map +1 -1
- package/dist/calendar-timeline.js +8 -11
- package/dist/calendar-timeline.js.map +1 -1
- package/dist/calendar.js +7 -10
- package/dist/calendar.js.map +1 -1
- package/dist/{canvas-base-BjiU3Ecl.js → canvas-base-BnbNbzej.js} +15 -15
- package/dist/canvas-base-BnbNbzej.js.map +1 -0
- package/dist/card-content.js +3 -6
- package/dist/card-content.js.map +1 -1
- package/dist/card.js +8 -11
- package/dist/card.js.map +1 -1
- package/dist/carousel.js +7 -10
- package/dist/carousel.js.map +1 -1
- package/dist/{cartesian-chart-iE3cmeGF.js → cartesian-chart-C8qKDXo8.js} +4 -4
- package/dist/{cartesian-chart-iE3cmeGF.js.map → cartesian-chart-C8qKDXo8.js.map} +1 -1
- package/dist/cb-divider.js +5 -8
- package/dist/cb-divider.js.map +1 -1
- package/dist/cb-group.js +9 -12
- package/dist/cb-group.js.map +1 -1
- package/dist/cb-rule.js +6 -6
- package/dist/chart-area.js +9 -12
- package/dist/chart-area.js.map +1 -1
- package/dist/chart-bar.js +9 -12
- package/dist/chart-bar.js.map +1 -1
- package/dist/{chart-base-CDyVDmz7.js → chart-base-BpQMZZsw.js} +6 -6
- package/dist/{chart-base-CDyVDmz7.js.map → chart-base-BpQMZZsw.js.map} +1 -1
- package/dist/chart-doughnut.js +8 -11
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-line.js +9 -12
- package/dist/chart-line.js.map +1 -1
- package/dist/chart-pie.js +8 -11
- package/dist/chart-pie.js.map +1 -1
- package/dist/chat-event.js +4 -7
- package/dist/chat-event.js.map +1 -1
- package/dist/chat-message.js +6 -9
- package/dist/chat-message.js.map +1 -1
- package/dist/chat-thread.js +5 -8
- package/dist/chat-thread.js.map +1 -1
- package/dist/checkbox-group.js +11 -14
- package/dist/checkbox-group.js.map +1 -1
- package/dist/checkbox.js +50 -32
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-set.js +8 -11
- package/dist/chip-set.js.map +1 -1
- package/dist/chip.js +11 -14
- package/dist/chip.js.map +1 -1
- package/dist/circular-progress.js +8 -11
- package/dist/circular-progress.js.map +1 -1
- package/dist/citation.js +5 -8
- package/dist/citation.js.map +1 -1
- package/dist/{class-map-NDIkZErE.js → class-map-DN-g_e4M.js} +2 -2
- package/dist/{class-map-NDIkZErE.js.map → class-map-DN-g_e4M.js.map} +1 -1
- package/dist/clock.js +4 -7
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +67 -20
- package/dist/code-editor.js.map +1 -1
- package/dist/code-group.js +5 -8
- package/dist/code-group.js.map +1 -1
- package/dist/code-highlighter.js +7 -10
- package/dist/code-highlighter.js.map +1 -1
- package/dist/color-field.js +13 -13
- package/dist/color-field.js.map +1 -1
- package/dist/color-picker.js +6 -9
- package/dist/color-picker.js.map +1 -1
- package/dist/{coming-soon-BbkKjSbP.js → coming-soon-D3KYDcUT.js} +2 -2
- package/dist/{coming-soon-BbkKjSbP.js.map → coming-soon-D3KYDcUT.js.map} +1 -1
- package/dist/command-palette.js +8 -11
- package/dist/command-palette.js.map +1 -1
- package/dist/comment-composer.js +13 -16
- package/dist/comment-composer.js.map +1 -1
- package/dist/condition-builder.js +10 -13
- package/dist/condition-builder.js.map +1 -1
- package/dist/{cb-group-base-CWctDJvy.js → condition-group-base-1g9O6qDB.js} +31 -34
- package/dist/condition-group-base-1g9O6qDB.js.map +1 -0
- package/dist/{cb-group-base-2Ps2CnBz.js → condition-group-base-NcvOY-Zv.js} +2 -2
- package/dist/condition-group-base-NcvOY-Zv.js.map +1 -0
- package/dist/confirm-dialog.js +7 -10
- package/dist/confirm-dialog.js.map +1 -1
- package/dist/container.js +5 -8
- package/dist/container.js.map +1 -1
- package/dist/copy-button.js +6 -10
- package/dist/copy-button.js.map +1 -1
- package/dist/currency-field.js +11 -12
- package/dist/currency-field.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +1225 -1565
- package/dist/custom-elements.json +99273 -96538
- package/dist/{datasource-DxEA6jHW.js → datasource-C1SmuuOZ.js} +2 -2
- package/dist/{datasource-DxEA6jHW.js.map → datasource-C1SmuuOZ.js.map} +1 -1
- package/dist/date-field.js +14 -15
- package/dist/date-field.js.map +1 -1
- package/dist/{date-DPQOY8Zd.js → date-hLvScHFM.js} +2 -2
- package/dist/{date-DPQOY8Zd.js.map → date-hLvScHFM.js.map} +1 -1
- package/dist/date-picker.js +7 -10
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-field.js +14 -15
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +13 -14
- package/dist/datetime-field.js.map +1 -1
- package/dist/define-element-DwIWgY_Y.js +2364 -0
- package/dist/define-element-DwIWgY_Y.js.map +1 -0
- package/dist/{delegate-Bw2wdPFP.js → delegate-BhEozvyn.js} +2 -2
- package/dist/{delegate-Bw2wdPFP.js.map → delegate-BhEozvyn.js.map} +1 -1
- package/dist/dependency-map.js +9 -12
- package/dist/dependency-map.js.map +1 -1
- package/dist/description-item.js +5 -8
- package/dist/description-item.js.map +1 -1
- package/dist/description-list.js +5 -8
- package/dist/description-list.js.map +1 -1
- package/dist/diagram-controls.js +6 -9
- package/dist/diagram-controls.js.map +1 -1
- package/dist/{diagram-D2aM93kf.js → diagram-hv7hCgzx.js} +9 -12
- package/dist/diagram-hv7hCgzx.js.map +1 -0
- package/dist/diagram-minimap.js +5 -8
- package/dist/diagram-minimap.js.map +1 -1
- package/dist/diagram.js +8 -8
- package/dist/diff-viewer.js +6 -9
- package/dist/diff-viewer.js.map +1 -1
- package/dist/{directive-helpers-Bx3mu42O.js → directive-helpers-DeGn4TbT.js} +2 -2
- package/dist/{directive-helpers-Bx3mu42O.js.map → directive-helpers-DeGn4TbT.js.map} +1 -1
- package/dist/discussion-activity.js +5 -8
- package/dist/discussion-activity.js.map +1 -1
- package/dist/discussion-comment.js +7 -11
- package/dist/discussion-comment.js.map +1 -1
- package/dist/{discussion-time-DqykqvNy.js → discussion-time-Bghw_Adc.js} +2 -2
- package/dist/{discussion-time-DqykqvNy.js.map → discussion-time-Bghw_Adc.js.map} +1 -1
- package/dist/discussion.js +14 -17
- package/dist/discussion.js.map +1 -1
- package/dist/divider.js +6 -9
- package/dist/divider.js.map +1 -1
- package/dist/{document-editor-BS6al7Hq.js → document-editor-CZBlz3ai.js} +12 -15
- package/dist/document-editor-CZBlz3ai.js.map +1 -0
- package/dist/document-editor.js +8 -8
- package/dist/draft-card.js +5 -8
- package/dist/draft-card.js.map +1 -1
- package/dist/dropdown-button.js +56 -30
- package/dist/dropdown-button.js.map +1 -1
- package/dist/elevation.js +3 -6
- package/dist/elevation.js.map +1 -1
- package/dist/{empty-MArzZMl4.js → empty-DEhaDrWj.js} +2 -2
- package/dist/{empty-MArzZMl4.js.map → empty-DEhaDrWj.js.map} +1 -1
- package/dist/{empty-cart-RTR3HBYT.js → empty-cart-BHaNZ2lY.js} +2 -2
- package/dist/{empty-cart-RTR3HBYT.js.map → empty-cart-BHaNZ2lY.js.map} +1 -1
- package/dist/{empty-inbox-TkdPARS5.js → empty-inbox-CJJaz9E6.js} +2 -2
- package/dist/{empty-inbox-TkdPARS5.js.map → empty-inbox-CJJaz9E6.js.map} +1 -1
- package/dist/erd.js +9 -12
- package/dist/erd.js.map +1 -1
- package/dist/{error-MDLh6Iqt.js → error-BemWzRq8.js} +2 -2
- package/dist/{error-MDLh6Iqt.js.map → error-BemWzRq8.js.map} +1 -1
- package/dist/{event-manager-DYfeN3VE.js → event-manager-BRD5ndh1.js} +2 -2
- package/dist/{event-manager-DYfeN3VE.js.map → event-manager-BRD5ndh1.js.map} +1 -1
- package/dist/fab.js +12 -15
- package/dist/fab.js.map +1 -1
- package/dist/{BaseField-DOCmylob.js → field-base-D9lh_aNl.js} +106 -21
- package/dist/field-base-D9lh_aNl.js.map +1 -0
- package/dist/field.js +6 -9
- package/dist/field.js.map +1 -1
- package/dist/fieldset.js +5 -8
- package/dist/fieldset.js.map +1 -1
- package/dist/file-upload.js +10 -13
- package/dist/file-upload.js.map +1 -1
- package/dist/filter-bar.js +9 -12
- package/dist/filter-bar.js.map +1 -1
- package/dist/flow.js +10 -13
- package/dist/flow.js.map +1 -1
- package/dist/focus-ring.js +5 -8
- package/dist/focus-ring.js.map +1 -1
- package/dist/{form-associated-BHbg72PG.js → form-associated-CZ4StgI6.js} +2 -3
- package/dist/{form-associated-BHbg72PG.js.map → form-associated-CZ4StgI6.js.map} +1 -1
- package/dist/{form-submitter-BIFqZ0wq.js → form-submitter-D16XUqJu.js} +3 -3
- package/dist/{form-submitter-BIFqZ0wq.js.map → form-submitter-D16XUqJu.js.map} +1 -1
- package/dist/form.js +7 -10
- package/dist/form.js.map +1 -1
- package/dist/{generative-view-DsSOPf26.js → generative-view-DYBvSwd_.js} +5 -8
- package/dist/generative-view-DYBvSwd_.js.map +1 -0
- package/dist/generative-view.js +3 -3
- package/dist/grid.js +4 -7
- package/dist/grid.js.map +1 -1
- package/dist/{highlight-Be0wu7kh.js → highlight-Do-Syp3T.js} +6 -9
- package/dist/highlight-Do-Syp3T.js.map +1 -0
- package/dist/highlight.js +4 -4
- package/dist/hover-card.js +4 -7
- package/dist/hover-card.js.map +1 -1
- package/dist/html-editor.js +13 -16
- package/dist/html-editor.js.map +1 -1
- package/dist/{hyperlink-DycWPKwU.js → hyperlink-DFN9NWCO.js} +2 -3
- package/dist/{hyperlink-DycWPKwU.js.map → hyperlink-DFN9NWCO.js.map} +1 -1
- package/dist/icon-button.js +12 -15
- package/dist/icon-button.js.map +1 -1
- package/dist/icon.js +8 -11
- package/dist/icon.js.map +1 -1
- package/dist/{if-defined-D9DEJR_6.js → if-defined-2i6tzDo8.js} +2 -2
- package/dist/{if-defined-D9DEJR_6.js.map → if-defined-2i6tzDo8.js.map} +1 -1
- package/dist/{illustration-DQ-_sz1l.js → illustration-C5AFfmfu.js} +24 -27
- package/dist/illustration-C5AFfmfu.js.map +1 -0
- package/dist/illustration.js +4 -4
- package/dist/image.js +5 -8
- package/dist/image.js.map +1 -1
- package/dist/{index-V2ozemrR.js → index-Bag4vtx-.js} +5 -5
- package/dist/{index-V2ozemrR.js.map → index-Bag4vtx-.js.map} +1 -1
- package/dist/{index-BnzqYRhq.js → index-CTEt3LtO.js} +6 -6
- package/dist/{index-BnzqYRhq.js.map → index-CTEt3LtO.js.map} +1 -1
- package/dist/{index-JdgBct78.js → index-DK3fREuj.js} +6 -6
- package/dist/{index-JdgBct78.js.map → index-DK3fREuj.js.map} +1 -1
- package/dist/index.js +133 -131
- package/dist/index.js.map +1 -1
- package/dist/{indicator-navigation-item-BsQE3kUr.js → indicator-navigation-item-BG0TrdDE.js} +6 -5
- package/dist/indicator-navigation-item-BG0TrdDE.js.map +1 -0
- package/dist/inline-edit.js +6 -9
- package/dist/inline-edit.js.map +1 -1
- package/dist/{BaseInput-Cv03GZLu.js → input-base-u60DF-pm.js} +21 -14
- package/dist/input-base-u60DF-pm.js.map +1 -0
- package/dist/input.js +609 -32
- package/dist/input.js.map +1 -1
- package/dist/item.js +5 -8
- package/dist/item.js.map +1 -1
- package/dist/json-viewer.js +8 -12
- package/dist/json-viewer.js.map +1 -1
- package/dist/kanban.js +7 -10
- package/dist/kanban.js.map +1 -1
- package/dist/kbd.js +4 -7
- package/dist/kbd.js.map +1 -1
- package/dist/linear-progress.js +8 -11
- package/dist/linear-progress.js.map +1 -1
- package/dist/link-button.js +9 -12
- package/dist/link-button.js.map +1 -1
- package/dist/link.js +6 -9
- package/dist/link.js.map +1 -1
- package/dist/list-item.js +9 -12
- package/dist/list-item.js.map +1 -1
- package/dist/list.js +10 -14
- package/dist/list.js.map +1 -1
- package/dist/listbox-option.js +5 -8
- package/dist/listbox-option.js.map +1 -1
- package/dist/listbox.js +8 -11
- package/dist/listbox.js.map +1 -1
- package/dist/{IndividualComponent-BK7XZjE2.js → lit-element-CKa37m3w.js} +2 -55
- package/dist/lit-element-CKa37m3w.js.map +1 -0
- package/dist/{live-D_5OfuGD.js → live-gbwOCSod.js} +3 -3
- package/dist/{live-D_5OfuGD.js.map → live-gbwOCSod.js.map} +1 -1
- package/dist/loader-full.js +87 -84
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +83 -81
- package/dist/loader.js.map +1 -1
- package/dist/{maintenance-BZw7mQ0A.js → maintenance-tErBUSEw.js} +2 -2
- package/dist/{maintenance-BZw7mQ0A.js.map → maintenance-tErBUSEw.js.map} +1 -1
- package/dist/markdown-editor.js +13 -16
- package/dist/markdown-editor.js.map +1 -1
- package/dist/markdown.js +4 -7
- package/dist/markdown.js.map +1 -1
- package/dist/mention-input.js +13 -13
- package/dist/mention-input.js.map +1 -1
- package/dist/menu-item.js +44 -27
- package/dist/menu-item.js.map +1 -1
- package/dist/menu.js +13 -14
- package/dist/menu.js.map +1 -1
- package/dist/{modal-B78gUfEO.js → modal-Dds0rXAG.js} +2 -2
- package/dist/{modal-B78gUfEO.js.map → modal-Dds0rXAG.js.map} +1 -1
- package/dist/modal.js +56 -39
- package/dist/modal.js.map +1 -1
- package/dist/{NativeHyperlinkMixin-WdY0fM-H.js → native-hyperlink-mixin-DClKAwRB.js} +2 -3
- package/dist/native-hyperlink-mixin-DClKAwRB.js.map +1 -0
- package/dist/navigation-bar-item.js +8 -11
- package/dist/navigation-bar-item.js.map +1 -1
- package/dist/navigation-bar.js +8 -11
- package/dist/navigation-bar.js.map +1 -1
- package/dist/navigation-drawer-group.js +6 -9
- package/dist/navigation-drawer-group.js.map +1 -1
- package/dist/navigation-drawer-item.js +7 -10
- package/dist/navigation-drawer-item.js.map +1 -1
- package/dist/navigation-drawer.js +7 -10
- package/dist/navigation-drawer.js.map +1 -1
- package/dist/{navigation-item-base-5ljwtLG_.js → navigation-item-base-HiLyp0Jy.js} +6 -6
- package/dist/navigation-item-base-HiLyp0Jy.js.map +1 -0
- package/dist/navigation-rail-item.js +8 -11
- package/dist/navigation-rail-item.js.map +1 -1
- package/dist/navigation-rail.js +8 -11
- package/dist/navigation-rail.js.map +1 -1
- package/dist/{no-access-DOmzxO0C.js → no-access-D3L12uhZ.js} +2 -2
- package/dist/{no-access-DOmzxO0C.js.map → no-access-D3L12uhZ.js.map} +1 -1
- package/dist/{no-files-_DUjcOnS.js → no-files--1GlOwIi.js} +2 -2
- package/dist/{no-files-_DUjcOnS.js.map → no-files--1GlOwIi.js.map} +1 -1
- package/dist/{no-messages-W3p58prD.js → no-messages-RHcmrW_n.js} +2 -2
- package/dist/{no-messages-W3p58prD.js.map → no-messages-RHcmrW_n.js.map} +1 -1
- package/dist/{no-notifications-Egym20FL.js → no-notifications-3gareJzA.js} +2 -2
- package/dist/{no-notifications-Egym20FL.js.map → no-notifications-3gareJzA.js.map} +1 -1
- package/dist/{no-results-Czha8DJZ.js → no-results-RWt23viO.js} +2 -2
- package/dist/{no-results-Czha8DJZ.js.map → no-results-RWt23viO.js.map} +1 -1
- package/dist/{no-team-DdNiPdaJ.js → no-team-25HWP4Fw.js} +2 -2
- package/dist/{no-team-DdNiPdaJ.js.map → no-team-25HWP4Fw.js.map} +1 -1
- package/dist/{not-found-DYazH-nz.js → not-found-BUGJAd3z.js} +2 -2
- package/dist/{not-found-DYazH-nz.js.map → not-found-BUGJAd3z.js.map} +1 -1
- package/dist/notification-center.js +9 -12
- package/dist/notification-center.js.map +1 -1
- package/dist/notification-manager.js +8 -11
- package/dist/notification-manager.js.map +1 -1
- package/dist/number-counter.js +5 -8
- package/dist/number-counter.js.map +1 -1
- package/dist/number-field.js +25 -17
- package/dist/number-field.js.map +1 -1
- package/dist/{offline-C3W_TN1c.js → offline-BUqjpgON.js} +2 -2
- package/dist/{offline-C3W_TN1c.js.map → offline-BUqjpgON.js.map} +1 -1
- package/dist/option.js +11 -11
- package/dist/option.js.map +1 -1
- package/dist/page-header.js +6 -9
- package/dist/page-header.js.map +1 -1
- package/dist/pagination.js +5 -8
- package/dist/pagination.js.map +1 -1
- package/dist/panel.js +5 -8
- package/dist/panel.js.map +1 -1
- package/dist/password-field.js +11 -12
- package/dist/password-field.js.map +1 -1
- package/dist/password-rules.js +6 -9
- package/dist/password-rules.js.map +1 -1
- package/dist/phone-field.js +12 -14
- package/dist/phone-field.js.map +1 -1
- package/dist/{picker-field-BiM3iXAQ.js → picker-field-base-C33dJ4iZ.js} +17 -17
- package/dist/picker-field-base-C33dJ4iZ.js.map +1 -0
- package/dist/pin-input.js +14 -15
- package/dist/pin-input.js.map +1 -1
- package/dist/platform-DHfE4Fvo.js +954 -0
- package/dist/platform-DHfE4Fvo.js.map +1 -0
- package/dist/popover-content.js +5 -8
- package/dist/popover-content.js.map +1 -1
- package/dist/popover.js +4 -7
- package/dist/popover.js.map +1 -1
- package/dist/presence-indicator.js +6 -9
- package/dist/presence-indicator.js.map +1 -1
- package/dist/{base-progress-CqsyiVOV.js → progress-base-BhJK__VP.js} +12 -12
- package/dist/{base-progress-CqsyiVOV.js.map → progress-base-BhJK__VP.js.map} +1 -1
- package/dist/prompt-input.js +13 -16
- package/dist/prompt-input.js.map +1 -1
- package/dist/property-Dn3pvFDo.js +52 -0
- package/dist/property-Dn3pvFDo.js.map +1 -0
- package/dist/radio-group.js +7 -10
- package/dist/radio-group.js.map +1 -1
- package/dist/radio.js +49 -31
- package/dist/radio.js.map +1 -1
- package/dist/{range-utils-vgG1SJ2o.js → range-utils-Cw7ZRoWX.js} +2 -2
- package/dist/range-utils-Cw7ZRoWX.js.map +1 -0
- package/dist/rating.js +11 -14
- package/dist/rating.js.map +1 -1
- package/dist/redvars-loader.js +5 -8
- package/dist/redvars-loader.js.map +1 -1
- package/dist/relative-time.js +4 -7
- package/dist/relative-time.js.map +1 -1
- package/dist/{repeat-D_ERDRYT.js → repeat-D6FogcKA.js} +3 -3
- package/dist/{repeat-D_ERDRYT.js.map → repeat-D6FogcKA.js.map} +1 -1
- package/dist/resizable-panels.js +6 -9
- package/dist/resizable-panels.js.map +1 -1
- package/dist/{rich-text-input-BCZ46UF8.js → rich-text-input-base-SrsPvc-j.js} +33 -33
- package/dist/rich-text-input-base-SrsPvc-j.js.map +1 -0
- package/dist/ripple.js +7 -10
- package/dist/ripple.js.map +1 -1
- package/dist/{sanitize-svg-zWrzQaZj.js → sanitize-svg-CULgPfeE.js} +2 -2
- package/dist/{sanitize-svg-zWrzQaZj.js.map → sanitize-svg-CULgPfeE.js.map} +1 -1
- package/dist/{schema-D0PCeIEA.js → schema-poFmQ9Kg.js} +2 -2
- package/dist/{schema-D0PCeIEA.js.map → schema-poFmQ9Kg.js.map} +1 -1
- package/dist/scroll-area.js +6 -9
- package/dist/scroll-area.js.map +1 -1
- package/dist/search.js +12 -15
- package/dist/search.js.map +1 -1
- package/dist/segmented-button-group.js +7 -10
- package/dist/segmented-button-group.js.map +1 -1
- package/dist/segmented-button.js +6 -9
- package/dist/segmented-button.js.map +1 -1
- package/dist/select.js +103 -19
- package/dist/select.js.map +1 -1
- package/dist/{server-error-CaExaWmH.js → server-error-C7x8CCtT.js} +2 -2
- package/dist/{server-error-CaExaWmH.js.map → server-error-C7x8CCtT.js.map} +1 -1
- package/dist/shipped-icons.js +1 -1
- package/dist/side-sheet.js +5 -8
- package/dist/side-sheet.js.map +1 -1
- package/dist/signature-pad.js +10 -13
- package/dist/signature-pad.js.map +1 -1
- package/dist/site-footer-group.js +4 -7
- package/dist/site-footer-group.js.map +1 -1
- package/dist/site-footer.js +6 -9
- package/dist/site-footer.js.map +1 -1
- package/dist/site-header.js +7 -10
- package/dist/site-header.js.map +1 -1
- package/dist/site-nav-group.js +4 -7
- package/dist/site-nav-group.js.map +1 -1
- package/dist/site-nav-link.js +7 -10
- package/dist/site-nav-link.js.map +1 -1
- package/dist/site-nav-menu.js +6 -9
- package/dist/site-nav-menu.js.map +1 -1
- package/dist/skeleton.js +4 -7
- package/dist/skeleton.js.map +1 -1
- package/dist/{slash-controller-DAsDquPA.js → slash-controller-DwL0nkqv.js} +4 -4
- package/dist/{slash-controller-DAsDquPA.js.map → slash-controller-DwL0nkqv.js.map} +1 -1
- package/dist/slider.js +11 -14
- package/dist/slider.js.map +1 -1
- package/dist/snackbar.js +10 -14
- package/dist/snackbar.js.map +1 -1
- package/dist/{sparkle-BmtM0vbq.js → sparkle-DbxCXWsC.js} +2 -2
- package/dist/{sparkle-BmtM0vbq.js.map → sparkle-DbxCXWsC.js.map} +1 -1
- package/dist/sparkline.js +6 -9
- package/dist/sparkline.js.map +1 -1
- package/dist/split-button.js +41 -25
- package/dist/split-button.js.map +1 -1
- package/dist/src/__internal/agent/choice-surface.d.ts +23 -0
- package/dist/src/__internal/agent/toggle-surface.d.ts +34 -0
- package/dist/src/__internal/agent/value-surface.d.ts +13 -0
- package/dist/src/__internal/ai/suggestion-controller.d.ts +2 -0
- package/dist/src/__internal/aria/aria.d.ts +1 -1
- package/dist/src/__internal/diagram/canvas-base.d.ts +1 -1
- package/dist/src/{input/BaseField.d.ts → __internal/field-base.d.ts} +22 -3
- package/dist/src/__internal/indicator-navigation-item.d.ts +1 -1
- package/dist/src/{input/BaseInput.d.ts → __internal/input-base.d.ts} +10 -5
- package/dist/src/__internal/mixins/field.d.ts +2 -2
- package/dist/src/__internal/mixins/{NativeHyperlinkMixin.d.ts → native-hyperlink-mixin.d.ts} +1 -1
- package/dist/src/__internal/navigation-item-base.d.ts +1 -1
- package/dist/src/__internal/{picker-field.d.ts → picker-field-base.d.ts} +3 -3
- package/dist/src/__internal/rich-text/{rich-text-input.d.ts → rich-text-input-base.d.ts} +2 -2
- package/dist/src/__internal/toggle-base.d.ts +9 -2
- package/dist/src/accordion/accordion-item.d.ts +5 -0
- package/dist/src/agent.d.ts +8 -0
- package/dist/src/button/base-button/base-button.d.ts +1 -1
- package/dist/src/button/button/button.d.ts +10 -51
- package/dist/src/button/icon-button/icon-button.d.ts +1 -1
- package/dist/src/button/index.d.ts +1 -1
- package/dist/src/button/link-button/link-button.d.ts +1 -1
- package/dist/src/card/card.d.ts +1 -1
- package/dist/src/checkbox/checkbox.d.ts +3 -0
- package/dist/src/checkbox-group/checkbox-group.d.ts +2 -2
- package/dist/src/chip/chip-set/chip-set.d.ts +2 -2
- package/dist/src/clock/clock.d.ts +1 -1
- package/dist/src/code-editor/code-editor.d.ts +5 -5
- package/dist/src/color-field/color-field.d.ts +3 -3
- package/dist/src/comment-composer/comment-composer.d.ts +2 -2
- package/dist/src/condition-builder/cb-group.d.ts +2 -2
- package/dist/src/condition-builder/cb-types.d.ts +3 -3
- package/dist/src/condition-builder/condition-builder.d.ts +2 -2
- package/dist/src/condition-builder/{cb-group-base.d.ts → condition-group-base.d.ts} +1 -1
- package/dist/src/copy-button/copy-button.d.ts +1 -1
- package/dist/src/currency-field/currency-field.d.ts +3 -3
- package/dist/src/date-field/date-field.d.ts +2 -2
- package/dist/src/date-field/range-utils.d.ts +1 -1
- package/dist/src/date-range-field/date-range-field.d.ts +2 -2
- package/dist/src/datetime-field/datetime-field.d.ts +2 -2
- package/dist/src/dependency-map/dependency-map.d.ts +2 -2
- package/dist/src/diagram/diagram.d.ts +2 -2
- package/dist/src/dropdown-button/dropdown-button.d.ts +5 -0
- package/dist/src/erd/erd.d.ts +2 -2
- package/dist/src/file-upload/file-upload.d.ts +2 -2
- package/dist/src/html-editor/html-editor.d.ts +2 -2
- package/dist/src/index.d.ts +208 -156
- package/dist/src/input/input.d.ts +10 -3
- package/dist/src/link/link.d.ts +1 -1
- package/dist/src/listbox/listbox.d.ts +2 -2
- package/dist/src/markdown-editor/markdown-editor.d.ts +2 -2
- package/dist/src/mention-input/mention-input.d.ts +3 -3
- package/dist/src/menu/menu-item/menu-item.d.ts +3 -0
- package/dist/src/modal/modal.d.ts +3 -0
- package/dist/src/number-field/number-field.d.ts +5 -3
- package/dist/src/password-field/password-field.d.ts +3 -3
- package/dist/src/phone-field/phone-field.d.ts +3 -3
- package/dist/src/pin-input/pin-input.d.ts +3 -3
- package/dist/src/progress/circular-progress/circular-progress.d.ts +2 -2
- package/dist/src/progress/linear-progress/linear-progress.d.ts +2 -2
- package/dist/src/progress/{base-progress.d.ts → progress-base.d.ts} +2 -2
- package/dist/src/prompt-input/prompt-input.d.ts +2 -2
- package/dist/src/radio/radio.d.ts +4 -1
- package/dist/src/rating/rating.d.ts +2 -2
- package/dist/src/search/search.d.ts +2 -2
- package/dist/src/select/select.d.ts +9 -2
- package/dist/src/signature-pad/signature-pad.d.ts +2 -2
- package/dist/src/slider/slider.d.ts +2 -2
- package/dist/src/split-button/split-button.d.ts +3 -0
- package/dist/src/stepper/step.d.ts +6 -0
- package/dist/src/switch/switch.d.ts +3 -0
- package/dist/src/tabs/tab.d.ts +6 -0
- package/dist/src/textarea/textarea.d.ts +3 -3
- package/dist/src/time-field/time-field.d.ts +2 -2
- package/dist/src/transfer-list/transfer-list.d.ts +2 -2
- package/dist/src/tree-chart/tree-chart.d.ts +2 -2
- package/dist/src/url-field/url-field.d.ts +3 -3
- package/dist/src/workflow/workflow.d.ts +2 -2
- package/dist/stack.js +4 -7
- package/dist/stack.js.map +1 -1
- package/dist/stat.js +5 -8
- package/dist/stat.js.map +1 -1
- package/dist/{state-BCeDVCI9.js → state-Bz6ycyYM.js} +2 -2
- package/dist/{state-BCeDVCI9.js.map → state-Bz6ycyYM.js.map} +1 -1
- package/dist/status-indicator.js +4 -7
- package/dist/status-indicator.js.map +1 -1
- package/dist/step.js +38 -19
- package/dist/step.js.map +1 -1
- package/dist/stepper.js +9 -9
- package/dist/stepper.js.map +1 -1
- package/dist/{style-map-CHOg6N_R.js → style-map-D1ZICebN.js} +2 -2
- package/dist/{style-map-CHOg6N_R.js.map → style-map-D1ZICebN.js.map} +1 -1
- package/dist/sub-menu.js +12 -12
- package/dist/sub-menu.js.map +1 -1
- package/dist/{success-CTqRKz2U.js → success-Dqol3Xwz.js} +2 -2
- package/dist/{success-CTqRKz2U.js.map → success-Dqol3Xwz.js.map} +1 -1
- package/dist/{suggestion-controller-7YRQqkaI.js → suggestion-controller-DhXsD9gH.js} +6 -2
- package/dist/suggestion-controller-DhXsD9gH.js.map +1 -0
- package/dist/svg.js +8 -11
- package/dist/svg.js.map +1 -1
- package/dist/switch.js +42 -24
- package/dist/switch.js.map +1 -1
- package/dist/tab-group.js +9 -9
- package/dist/tab-group.js.map +1 -1
- package/dist/tab-panel.js +4 -7
- package/dist/tab-panel.js.map +1 -1
- package/dist/tab.js +44 -21
- package/dist/tab.js.map +1 -1
- package/dist/table.js +10 -13
- package/dist/table.js.map +1 -1
- package/dist/tabs.js +13 -14
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +5 -8
- package/dist/tag.js.map +1 -1
- package/dist/test/ui-sdk-agent.test.d.ts +1 -0
- package/dist/textarea.js +12 -13
- package/dist/textarea.js.map +1 -1
- package/dist/time-field.js +13 -14
- package/dist/time-field.js.map +1 -1
- package/dist/time-picker.js +7 -10
- package/dist/time-picker.js.map +1 -1
- package/dist/timeline-item.js +4 -7
- package/dist/timeline-item.js.map +1 -1
- package/dist/timeline.js +4 -7
- package/dist/timeline.js.map +1 -1
- package/dist/{toggle-base-BtjRAZ5z.js → toggle-base-DP3PSXbf.js} +22 -10
- package/dist/toggle-base-DP3PSXbf.js.map +1 -0
- package/dist/toggle-surface-CkMdGtyR.js +164 -0
- package/dist/toggle-surface-CkMdGtyR.js.map +1 -0
- package/dist/toolbar.js +5 -8
- package/dist/toolbar.js.map +1 -1
- package/dist/tooltip.js +4 -7
- package/dist/tooltip.js.map +1 -1
- package/dist/tour.js +6 -9
- package/dist/tour.js.map +1 -1
- package/dist/transfer-list.js +13 -16
- package/dist/transfer-list.js.map +1 -1
- package/dist/tree-chart.js +9 -12
- package/dist/tree-chart.js.map +1 -1
- package/dist/tree-item.js +5 -8
- package/dist/tree-item.js.map +1 -1
- package/dist/tree.js +5 -8
- package/dist/tree.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +4 -7
- package/dist/typing-indicator.js.map +1 -1
- package/dist/{unsafe-html-Cy_JqoPT.js → unsafe-html-DPx6fCQn.js} +2 -2
- package/dist/{unsafe-html-Cy_JqoPT.js.map → unsafe-html-DPx6fCQn.js.map} +1 -1
- package/dist/{upload-BvrrKboG.js → upload-AgGMlvXZ.js} +2 -2
- package/dist/{upload-BvrrKboG.js.map → upload-AgGMlvXZ.js.map} +1 -1
- package/dist/url-field.js +11 -12
- package/dist/url-field.js.map +1 -1
- package/dist/user-menu.js +5 -8
- package/dist/user-menu.js.map +1 -1
- package/dist/{video-DPjOBk6I.js → video-DgtGGvrk.js} +7 -10
- package/dist/video-DgtGGvrk.js.map +1 -0
- package/dist/video.js +5 -5
- package/dist/virtual-list.js +7 -10
- package/dist/virtual-list.js.map +1 -1
- package/dist/{welcome-CFqBHGa5.js → welcome-Ba4SYcRr.js} +2 -2
- package/dist/{welcome-CFqBHGa5.js.map → welcome-Ba4SYcRr.js.map} +1 -1
- package/dist/workflow-timeline.js +5 -8
- package/dist/workflow-timeline.js.map +1 -1
- package/dist/workflow.js +8 -12
- package/dist/workflow.js.map +1 -1
- package/dist/workspace-switcher.js +6 -9
- package/dist/workspace-switcher.js.map +1 -1
- package/package.json +11 -5
- package/src/__internal/agent/choice-surface.ts +88 -0
- package/src/__internal/agent/toggle-surface.ts +233 -0
- package/src/__internal/agent/value-surface.ts +76 -0
- package/src/__internal/ai/suggestion-controller.ts +5 -0
- package/src/__internal/diagram/canvas-base.ts +1 -1
- package/src/{input/BaseField.ts → __internal/field-base.ts} +51 -3
- package/src/__internal/indicator-navigation-item.ts +1 -1
- package/src/{input/BaseInput.ts → __internal/input-base.ts} +9 -1
- package/src/__internal/mixins/field.ts +2 -2
- package/src/__internal/mixins/{NativeHyperlinkMixin.ts → native-hyperlink-mixin.ts} +1 -1
- package/src/__internal/navigation-item-base.ts +1 -1
- package/src/__internal/{picker-field.scss → picker-field-base.scss} +2 -2
- package/src/__internal/{picker-field.ts → picker-field-base.ts} +3 -3
- package/src/__internal/rich-text/editor-chrome.scss +1 -1
- package/src/__internal/rich-text/{rich-text-input.ts → rich-text-input-base.ts} +3 -3
- package/src/__internal/toggle-base.ts +16 -5
- package/src/accordion/accordion-item.ts +53 -28
- package/src/accordion/accordion.ts +0 -2
- package/src/agent.ts +17 -0
- package/src/ai-badge/ai-badge.ts +0 -2
- package/src/ai-summary/ai-summary.ts +0 -2
- package/src/alert/alert.ts +0 -2
- package/src/anchor-nav/anchor-nav.ts +0 -2
- package/src/app-bar/app-bar.ts +0 -2
- package/src/app-shell/app-shell.ts +0 -2
- package/src/assistant-panel/assistant-panel.ts +0 -2
- package/src/assistant-steps/assistant-step.ts +0 -2
- package/src/assistant-steps/assistant-steps.ts +0 -2
- package/src/avatar/avatar.ts +0 -2
- package/src/avatar-group/avatar-group.ts +0 -2
- package/src/badge/badge.ts +0 -2
- package/src/banner/banner.ts +0 -2
- package/src/bottom-sheet/bottom-sheet.ts +0 -2
- package/src/breadcrumb/breadcrumb/breadcrumb.ts +0 -2
- package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +0 -2
- package/src/button/base-button/base-button.ts +1 -1
- package/src/button/button/button.scss +5 -0
- package/src/button/button/button.ts +34 -8
- package/src/button/button-group/button-group.ts +0 -2
- package/src/button/fab/fab.ts +1 -3
- package/src/button/icon-button/icon-button.ts +2 -4
- package/src/button/index.ts +1 -1
- package/src/button/link-button/link-button.ts +2 -4
- package/src/calendar/calendar-column-view.ts +0 -2
- package/src/calendar/calendar-month-view.ts +0 -2
- package/src/calendar/calendar.ts +0 -2
- package/src/calendar-timeline/calendar-timeline.ts +0 -2
- package/src/card/card-content.ts +0 -2
- package/src/card/card.ts +1 -3
- package/src/carousel/carousel.ts +0 -2
- package/src/chart-area/chart-area.ts +0 -2
- package/src/chart-bar/chart-bar.ts +0 -2
- package/src/chart-doughnut/chart-doughnut.ts +0 -2
- package/src/chart-line/chart-line.ts +0 -2
- package/src/chart-pie/chart-pie.ts +0 -2
- package/src/chat-message/chat-message.ts +0 -2
- package/src/chat-thread/chat-event.ts +0 -2
- package/src/chat-thread/chat-thread.ts +0 -2
- package/src/checkbox/checkbox.ts +46 -28
- package/src/checkbox-group/checkbox-group.ts +2 -4
- package/src/chip/chip/chip.ts +1 -3
- package/src/chip/chip-set/chip-set.ts +2 -4
- package/src/chip/tag/tag.ts +0 -2
- package/src/citation/citation.ts +0 -2
- package/src/clock/clock.ts +1 -3
- package/src/code-editor/code-editor.scss +70 -1
- package/src/code-editor/code-editor.ts +15 -9
- package/src/code-highlighter/code-group.ts +0 -2
- package/src/code-highlighter/code-highlighter.ts +0 -2
- package/src/color-field/color-field.ts +4 -5
- package/src/color-picker/color-picker.ts +0 -2
- package/src/command-palette/command-palette.ts +0 -2
- package/src/comment-composer/comment-composer.ts +3 -5
- package/src/components.manifest.json +1406 -0
- package/src/condition-builder/cb-divider.ts +0 -2
- package/src/condition-builder/cb-group.ts +3 -5
- package/src/condition-builder/cb-rule.ts +10 -11
- package/src/condition-builder/cb-types.ts +3 -3
- package/src/condition-builder/condition-builder.ts +3 -5
- package/src/condition-builder/{cb-group-base.ts → condition-group-base.ts} +7 -7
- package/src/confirm-dialog/confirm-dialog.ts +1 -3
- package/src/container/container.ts +0 -2
- package/src/copy-button/copy-button.ts +1 -3
- package/src/currency-field/currency-field.ts +3 -5
- package/src/date-field/date-field.scss +1 -1
- package/src/date-field/date-field.ts +4 -4
- package/src/date-field/range-utils.ts +1 -1
- package/src/date-picker/date-picker.ts +0 -2
- package/src/date-range-field/date-range-field.scss +1 -1
- package/src/date-range-field/date-range-field.ts +4 -4
- package/src/datetime-field/datetime-field.scss +1 -1
- package/src/datetime-field/datetime-field.ts +4 -4
- package/src/dependency-map/dependency-map.ts +2 -4
- package/src/description-list/description-item.ts +0 -2
- package/src/description-list/description-list.ts +0 -2
- package/src/diagram/diagram.ts +2 -4
- package/src/diagram/flow.ts +0 -2
- package/src/diagram-controls/diagram-controls.ts +0 -2
- package/src/diagram-minimap/diagram-minimap.ts +0 -2
- package/src/diff-viewer/diff-viewer.ts +0 -2
- package/src/discussion/discussion-activity.ts +0 -2
- package/src/discussion/discussion-comment.ts +0 -2
- package/src/discussion/discussion.ts +0 -2
- package/src/divider/divider.ts +0 -2
- package/src/document-editor/document-editor.ts +0 -2
- package/src/draft-card/draft-card.ts +0 -2
- package/src/dropdown-button/dropdown-button.ts +49 -23
- package/src/elevation/elevation.ts +0 -2
- package/src/erd/erd.ts +2 -4
- package/src/field/field.ts +0 -2
- package/src/fieldset/fieldset.ts +0 -2
- package/src/file-upload/file-upload.ts +3 -5
- package/src/filter-bar/filter-bar.ts +0 -2
- package/src/focus-ring/focus-ring.ts +0 -2
- package/src/form/form.ts +0 -2
- package/src/generative-view/generative-view.ts +0 -2
- package/src/grid/grid.ts +0 -2
- package/src/highlight/highlight.ts +0 -2
- package/src/hover-card/hover-card.ts +0 -2
- package/src/html-editor/html-editor.ts +3 -5
- package/src/icon/icon.ts +0 -2
- package/src/illustration/illustration.ts +0 -2
- package/src/image/image.ts +0 -2
- package/src/index.ts +287 -199
- package/src/inline-edit/inline-edit.ts +0 -2
- package/src/input/input.scss +8 -0
- package/src/input/input.ts +36 -25
- package/src/item/item.ts +0 -2
- package/src/json-viewer/json-viewer.ts +0 -2
- package/src/kanban/kanban.ts +0 -2
- package/src/kbd/kbd.ts +0 -2
- package/src/link/link.ts +1 -3
- package/src/list/list-item.ts +0 -2
- package/src/list/list.ts +0 -2
- package/src/listbox/listbox-option.ts +0 -2
- package/src/listbox/listbox.ts +2 -4
- package/src/loader.ts +47 -49
- package/src/markdown/markdown.ts +0 -2
- package/src/markdown-editor/markdown-editor.ts +3 -5
- package/src/mention-input/mention-input.ts +4 -5
- package/src/menu/menu/menu.ts +0 -2
- package/src/menu/menu-item/menu-item.ts +40 -22
- package/src/menu/sub-menu/sub-menu.ts +0 -2
- package/src/modal/modal.ts +57 -41
- package/src/navigation-bar/navigation-bar-item.ts +0 -2
- package/src/navigation-bar/navigation-bar.ts +0 -2
- package/src/navigation-drawer/navigation-drawer-group.ts +0 -2
- package/src/navigation-drawer/navigation-drawer-item.ts +0 -2
- package/src/navigation-drawer/navigation-drawer.ts +0 -2
- package/src/navigation-rail/navigation-rail-item.ts +0 -2
- package/src/navigation-rail/navigation-rail.ts +0 -2
- package/src/notification-center/notification-center.ts +0 -2
- package/src/notification-manager/notification-manager.ts +0 -2
- package/src/number-counter/number-counter.ts +0 -2
- package/src/number-field/number-field.ts +12 -5
- package/src/page-header/page-header.ts +0 -2
- package/src/pagination/pagination.ts +0 -2
- package/src/password-field/password-field.ts +3 -5
- package/src/password-rules/password-rules.ts +0 -2
- package/src/phone-field/phone-field.ts +3 -5
- package/src/pin-input/pin-input.ts +4 -6
- package/src/popover/popover-content.ts +0 -2
- package/src/popover/popover.ts +0 -2
- package/src/presence-indicator/presence-indicator.ts +0 -2
- package/src/progress/circular-progress/circular-progress.ts +2 -4
- package/src/progress/linear-progress/linear-progress.ts +2 -4
- package/src/progress/{base-progress.ts → progress-base.ts} +1 -1
- package/src/prompt-input/prompt-input.ts +3 -5
- package/src/radio/radio-group.ts +0 -2
- package/src/radio/radio.ts +36 -16
- package/src/rating/rating.ts +3 -5
- package/src/redvars-loader/redvars-loader.ts +0 -2
- package/src/relative-time/relative-time.ts +0 -2
- package/src/resizable-panels/panel.ts +0 -2
- package/src/resizable-panels/resizable-panels.ts +0 -2
- package/src/ripple/ripple.ts +0 -2
- package/src/scroll-area/scroll-area.ts +0 -2
- package/src/search/search.ts +3 -5
- package/src/segmented-button/segmented-button-group.ts +0 -2
- package/src/segmented-button/segmented-button.ts +0 -2
- package/src/select/option.ts +0 -2
- package/src/select/select.ts +49 -5
- package/src/side-sheet/side-sheet.ts +0 -2
- package/src/signature-pad/signature-pad.ts +3 -5
- package/src/site-footer/site-footer-group.ts +0 -2
- package/src/site-footer/site-footer.ts +0 -2
- package/src/site-header/site-header.ts +0 -2
- package/src/site-header/site-nav-group.ts +0 -2
- package/src/site-header/site-nav-link.ts +0 -2
- package/src/site-header/site-nav-menu.ts +0 -2
- package/src/skeleton/skeleton.ts +0 -2
- package/src/slider/slider.ts +3 -5
- package/src/snackbar/snackbar.ts +0 -2
- package/src/sparkline/sparkline.ts +0 -2
- package/src/split-button/split-button.ts +34 -19
- package/src/stack/stack.ts +0 -2
- package/src/stat/stat.ts +0 -2
- package/src/status-indicator/status-indicator.ts +0 -2
- package/src/stepper/step.ts +33 -12
- package/src/stepper/stepper.ts +0 -2
- package/src/svg/svg.ts +0 -2
- package/src/switch/switch.ts +31 -13
- package/src/table/table.ts +0 -2
- package/src/tabs/tab-group.ts +0 -2
- package/src/tabs/tab-panel.ts +0 -2
- package/src/tabs/tab.ts +40 -14
- package/src/tabs/tabs.ts +0 -2
- package/src/textarea/textarea.ts +3 -5
- package/src/time-field/time-field.scss +1 -1
- package/src/time-field/time-field.ts +4 -4
- package/src/time-picker/time-picker.ts +0 -2
- package/src/timeline/timeline-item.ts +0 -2
- package/src/timeline/timeline.ts +0 -2
- package/src/toolbar/toolbar.ts +0 -2
- package/src/tooltip/tooltip.ts +0 -2
- package/src/tour/tour.ts +0 -2
- package/src/transfer-list/transfer-list.ts +3 -5
- package/src/tree/tree-item.ts +0 -2
- package/src/tree/tree.ts +0 -2
- package/src/tree-chart/tree-chart.ts +2 -4
- package/src/typing-indicator/typing-indicator.ts +0 -2
- package/src/url-field/url-field.ts +3 -5
- package/src/user-menu/user-menu.ts +0 -2
- package/src/video/video.ts +0 -2
- package/src/virtual-list/virtual-list.ts +0 -2
- package/src/workflow/workflow.ts +2 -4
- package/src/workflow-timeline/workflow-timeline.ts +0 -2
- package/src/workspace-switcher/workspace-switcher.ts +0 -2
- package/dist/BaseField-DOCmylob.js.map +0 -1
- package/dist/BaseInput-Cv03GZLu.js.map +0 -1
- package/dist/ButtonConstants-CahP2_NA.js.map +0 -1
- package/dist/IndividualComponent-BK7XZjE2.js.map +0 -1
- package/dist/NativeHyperlinkMixin-WdY0fM-H.js.map +0 -1
- package/dist/base-button-9tGu5RSC.js.map +0 -1
- package/dist/canvas-base-BjiU3Ecl.js.map +0 -1
- package/dist/cb-group-base-2Ps2CnBz.js.map +0 -1
- package/dist/cb-group-base-CWctDJvy.js.map +0 -1
- package/dist/diagram-D2aM93kf.js.map +0 -1
- package/dist/document-editor-BS6al7Hq.js.map +0 -1
- package/dist/generative-view-DsSOPf26.js.map +0 -1
- package/dist/highlight-Be0wu7kh.js.map +0 -1
- package/dist/illustration-DQ-_sz1l.js.map +0 -1
- package/dist/indicator-navigation-item-BsQE3kUr.js.map +0 -1
- package/dist/navigation-item-base-5ljwtLG_.js.map +0 -1
- package/dist/picker-field-BiM3iXAQ.js.map +0 -1
- package/dist/property-B2TG3KEE.js +0 -10
- package/dist/property-B2TG3KEE.js.map +0 -1
- package/dist/range-utils-vgG1SJ2o.js.map +0 -1
- package/dist/rich-text-input-BCZ46UF8.js.map +0 -1
- package/dist/src/IndividualComponent.d.ts +0 -9
- package/dist/suggestion-controller-7YRQqkaI.js.map +0 -1
- package/dist/toggle-base-BtjRAZ5z.js.map +0 -1
- package/dist/video-DPjOBk6I.js.map +0 -1
- package/src/IndividualComponent.ts +0 -10
- /package/dist/src/__internal/mixins/{MixinConstructor.d.ts → mixin-constructor.d.ts} +0 -0
- /package/dist/src/button/{ButtonConstants.d.ts → button-constants.d.ts} +0 -0
- /package/dist/src/button/{ButtonTypes.d.ts → button-types.d.ts} +0 -0
- /package/dist/src/clock/{ClockController.d.ts → clock-controller.d.ts} +0 -0
- /package/dist/src/{CssLoader.d.ts → css-loader.d.ts} +0 -0
- /package/dist/src/{LoaderUtils.d.ts → loader-utils.d.ts} +0 -0
- /package/src/__internal/mixins/{MixinConstructor.ts → mixin-constructor.ts} +0 -0
- /package/src/button/{ButtonConstants.ts → button-constants.ts} +0 -0
- /package/src/button/{ButtonTypes.ts → button-types.ts} +0 -0
- /package/src/clock/{ClockController.ts → clock-controller.ts} +0 -0
- /package/src/condition-builder/{cb-group-base.scss → condition-group-base.scss} +0 -0
- /package/src/{CssLoader.ts → css-loader.ts} +0 -0
- /package/src/{LoaderUtils.ts → loader-utils.ts} +0 -0
package/dist/split-button.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as __decorate, n } from './property-Dn3pvFDo.js';
|
|
2
|
+
import { i, a as i$1, b } from './lit-element-CKa37m3w.js';
|
|
3
3
|
import { e } from './query-CHb9Ft_d.js';
|
|
4
|
-
import { e as e$1 } from './class-map-
|
|
4
|
+
import { e as e$1 } from './class-map-DN-g_e4M.js';
|
|
5
5
|
import { I as I18nController } from './i18n-controller-BTeChxE0.js';
|
|
6
|
+
import './toggle-surface-CkMdGtyR.js';
|
|
6
7
|
import { M as MenuTriggerController } from './menu-trigger-controller-CEJq1ugC.js';
|
|
7
8
|
import './base-Cl6v8-BZ.js';
|
|
8
9
|
import './directive-ZPhl09Yt.js';
|
|
9
10
|
import './strings-DeiQWMd9.js';
|
|
10
11
|
import './locale-DEsJZCQG.js';
|
|
12
|
+
import './define-element-DwIWgY_Y.js';
|
|
13
|
+
import './platform-DHfE4Fvo.js';
|
|
11
14
|
|
|
12
15
|
var css_248z$2 = i`@charset "UTF-8";
|
|
13
16
|
* {
|
|
@@ -321,7 +324,7 @@ var css_248z = i`:host([size=xs]) {
|
|
|
321
324
|
* ```
|
|
322
325
|
* @tags controls
|
|
323
326
|
*/
|
|
324
|
-
|
|
327
|
+
class SplitButton extends i$1 {
|
|
325
328
|
constructor() {
|
|
326
329
|
super(...arguments);
|
|
327
330
|
/**
|
|
@@ -394,6 +397,18 @@ let SplitButton = class SplitButton extends i$1 {
|
|
|
394
397
|
_onMenuClick(event) {
|
|
395
398
|
event.stopPropagation();
|
|
396
399
|
}
|
|
400
|
+
/** An agent's open or close of the menu, made as the trigger's `show()` or `close()` makes it. */
|
|
401
|
+
_handleAgentOpen(event) {
|
|
402
|
+
event.stopPropagation();
|
|
403
|
+
if (this.disabled || event.detail.value === this._trigger.open) {
|
|
404
|
+
event.preventDefault();
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (event.detail.value)
|
|
408
|
+
this._trigger.show();
|
|
409
|
+
else
|
|
410
|
+
this._trigger.close();
|
|
411
|
+
}
|
|
397
412
|
render() {
|
|
398
413
|
const actionClasses = {
|
|
399
414
|
'action-button': true,
|
|
@@ -421,23 +436,27 @@ let SplitButton = class SplitButton extends i$1 {
|
|
|
421
436
|
<slot></slot>
|
|
422
437
|
</wc-button>
|
|
423
438
|
|
|
424
|
-
<
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
<agent-split
|
|
440
|
+
.open=${this._trigger.open}
|
|
441
|
+
.disabled=${this.disabled}
|
|
442
|
+
@openchange=${this._handleAgentOpen}
|
|
443
|
+
><wc-icon-button
|
|
444
|
+
class=${e$1(dropdownClasses)}
|
|
445
|
+
size=${this.size}
|
|
446
|
+
variant=${this.variant}
|
|
447
|
+
?disabled=${this.disabled}
|
|
448
|
+
aria-label=${this.i18n.t('openSplitButtonMenu')}
|
|
449
|
+
aria-haspopup="menu"
|
|
450
|
+
aria-expanded=${String(this._trigger.open)}
|
|
451
|
+
@click=${this._trigger.handleTriggerClick}
|
|
452
|
+
@keydown=${this._trigger.handleTriggerKeyDown}
|
|
453
|
+
>
|
|
454
|
+
<wc-icon
|
|
455
|
+
class="dropdown-icon"
|
|
456
|
+
name="keyboard_arrow_down"
|
|
457
|
+
aria-hidden="true"
|
|
458
|
+
></wc-icon> </wc-icon-button
|
|
459
|
+
></agent-split>
|
|
441
460
|
</div>
|
|
442
461
|
|
|
443
462
|
<wc-menu
|
|
@@ -452,7 +471,7 @@ let SplitButton = class SplitButton extends i$1 {
|
|
|
452
471
|
</wc-menu>
|
|
453
472
|
`;
|
|
454
473
|
}
|
|
455
|
-
}
|
|
474
|
+
}
|
|
456
475
|
SplitButton.styles = [css_248z$2, css_248z$1, css_248z];
|
|
457
476
|
__decorate([
|
|
458
477
|
n({ reflect: true })
|
|
@@ -475,9 +494,6 @@ __decorate([
|
|
|
475
494
|
__decorate([
|
|
476
495
|
e('wc-menu')
|
|
477
496
|
], SplitButton.prototype, "_menu", void 0);
|
|
478
|
-
SplitButton = __decorate([
|
|
479
|
-
IndividualComponent
|
|
480
|
-
], SplitButton);
|
|
481
497
|
|
|
482
498
|
export { SplitButton };
|
|
483
499
|
//# sourceMappingURL=split-button.js.map
|
package/dist/split-button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.js","sources":["../../src/split-button/split-button.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { MenuTriggerController } from '@/__internal/menu-trigger-controller.js';\nimport type { OverlayPlacement } from '@/__internal/utils/placement.js';\nimport styles from './split-button.scss';\nimport colorStyles from './split-button-colors.scss';\nimport sizeStyles from './split-button-sizes.scss';\nimport type { Menu, MenuFocusTarget } from '../menu/menu/menu.js';\n\n/**\n * @label Split Button\n * @tag wc-split-button\n * @rawTag split-button\n *\n * @summary A button for a default action joined to an arrow that opens a menu of related actions.\n * @overview\n * <p>The main button runs the default action; the arrow beside it opens a menu of related actions.</p>\n *\n * @cssprop --split-button-container-shape: Radius of the split button's outer corners. Defaults to fully round; the inner corners follow the M3 size tokens.\n * @cssprop --split-button-gap: Space between the main button and the menu button. Defaults to 2px.\n *\n * @cssprop --filled-split-button-container-color: Color of the filled split button container.\n * @cssprop --filled-split-button-label-text-color: Text color of the filled split button label.\n *\n * @cssprop --outlined-split-button-container-color: Color of the outlined split button container.\n * @cssprop --outlined-split-button-label-text-color: Text color of the outlined split button label.\n *\n * @cssprop --tonal-split-button-container-color: Color of the tonal split button container.\n * @cssprop --tonal-split-button-label-text-color: Text color of the tonal split button label.\n *\n * @cssprop --elevated-split-button-container-color: Color of the elevated split button container.\n * @cssprop --elevated-split-button-label-text-color: Text color of the elevated split button label.\n *\n * @fires {MouseEvent} click - Dispatched when the primary action button is clicked, and only then: a menu item's click does not bubble past the split button. Listen on the item, or for the `menu-item-activate` event (`detail.item`) that the menu fires through the split button.\n * @fires {CustomEvent} open - Dispatched after the menu opens.\n * @fires {CustomEvent<{reason: 'escape' | 'light-dismiss' | 'action' | 'api'}>} close - Dispatched after the menu closes: an item pick is `action`, Escape `escape`, a press outside or Tab `light-dismiss`, `close()` or the primary action `api`.\n *\n * @example\n * ```html\n * <wc-split-button>\n * Save\n * <wc-menu-item slot=\"menu\">Save as draft</wc-menu-item>\n * <wc-menu-item slot=\"menu\">Save and publish</wc-menu-item>\n * </wc-split-button>\n * ```\n * @tags controls\n */\n@IndividualComponent\nexport class SplitButton extends LitElement {\n static override styles = [styles, colorStyles, sizeStyles];\n\n /**\n * Button size.\n * Possible values are `\"xs\"`, `\"sm\"`, `\"md\"`, `\"lg\"`, `\"xl\"`. Defaults to `\"sm\"`.\n */\n @property({ reflect: true }) size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'sm';\n\n /**\n * The visual style of the split button.\n *\n * Possible variant values:\n * `\"filled\"` is a filled button.\n * `\"outlined\"` is an outlined button.\n * `\"tonal\"` is a light color button.\n * `\"elevated\"` is a raised button on a low surface.\n */\n @property({ reflect: true }) variant:\n | 'filled'\n | 'tonal'\n | 'elevated'\n | 'outlined' = 'filled';\n\n /**\n * Defines the primary color of the split button.\n */\n @property({ reflect: true }) color:\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'surface'\n | 'on-surface' = 'primary';\n\n /**\n * Whether the split button is disabled.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Visual variant of the menu: one surface (`\"standard\"`) or segmented groups (`\"expressive\"`). */\n @property({ attribute: 'menu-variant' }) menuVariant:\n | 'standard'\n | 'expressive' = 'standard';\n\n /**\n * Where the menu opens relative to the button: `top`, `bottom`, `start` or `end`, optionally\n * followed by `-start` or `-end` (ADR-030001). `start` and `end` follow the writing direction.\n * Defaults to `\"bottom-end\"`.\n */\n @property({ reflect: true }) placement: OverlayPlacement = 'bottom-end';\n\n @query('wc-menu') private readonly _menu?: Menu;\n\n /** Peacock's strings for the menu trigger label. */\n private readonly i18n = new I18nController(this);\n\n /** Opens and closes the menu and fires `open` / `close`. */\n private readonly _trigger = new MenuTriggerController(this, {\n menu: () => this._menu,\n disabled: () => this.disabled,\n idPrefix: 'split-menu',\n });\n\n override focus() {\n const btn = this.shadowRoot?.querySelector<HTMLElement>('.action-button');\n btn?.focus();\n }\n\n /** Opens the menu and focuses its first (or last) item. */\n show(focusTarget: MenuFocusTarget = 'first') {\n this._trigger.show(focusTarget);\n }\n\n /** Closes the menu. */\n close() {\n this._trigger.close();\n }\n\n private _onActionClick(event: MouseEvent) {\n if (this.disabled) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n\n // The primary action closes the menu if it is open.\n if (this._menu?.open) {\n this._trigger.close();\n }\n }\n\n /**\n * The split button's `click` means the primary action, so a menu item's click stops here: the\n * item's own listeners and the menu have seen it, and the host still gets `menu-item-activate`.\n */\n private _onMenuClick(event: MouseEvent) {\n event.stopPropagation();\n }\n\n override render() {\n const actionClasses = {\n 'action-button': true,\n disabled: this.disabled,\n };\n\n const dropdownClasses = {\n 'dropdown-trigger': true,\n active: this._trigger.open,\n disabled: this.disabled,\n };\n\n const containerClasses = {\n 'split-button': true,\n [`variant-${this.variant}`]: true,\n disabled: this.disabled,\n };\n\n return html`\n <div class=${classMap(containerClasses)}>\n <wc-button\n class=${classMap(actionClasses)}\n size=${this.size}\n variant=${this.variant}\n ?disabled=${this.disabled}\n @click=${this._onActionClick}\n >\n <slot></slot>\n </wc-button>\n\n <wc-icon-button\n class=${classMap(dropdownClasses)}\n size=${this.size}\n variant=${this.variant}\n ?disabled=${this.disabled}\n aria-label=${this.i18n.t('openSplitButtonMenu')}\n aria-haspopup=\"menu\"\n aria-expanded=${String(this._trigger.open)}\n @click=${this._trigger.handleTriggerClick}\n @keydown=${this._trigger.handleTriggerKeyDown}\n >\n <wc-icon\n class=\"dropdown-icon\"\n name=\"keyboard_arrow_down\"\n aria-hidden=\"true\"\n ></wc-icon>\n </wc-icon-button>\n </div>\n\n <wc-menu\n id=${this._trigger.menuId}\n .placement=${this.placement}\n variant=${this.menuVariant}\n @click=${this._onMenuClick}\n @open=${this._trigger.handleMenuOpen}\n @close=${this._trigger.handleMenuClose}\n >\n <slot name=\"menu\"></slot>\n </wc-menu>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","styles","colorStyles","sizeStyles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQA,GAAU,CAAA;AAApC,IAAA,WAAA,G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AAW,GAAA,UAAA,CAAA;IADvB;AACY,CAAA,EAAA,WAAW,CAmKvB;;;;"}
|
|
1
|
+
{"version":3,"file":"split-button.js","sources":["../../src/split-button/split-button.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport '@/__internal/agent/toggle-surface.js';\nimport type { AgentToggleChangeEvent } from '@/__internal/agent/toggle-surface.js';\nimport { MenuTriggerController } from '@/__internal/menu-trigger-controller.js';\nimport type { OverlayPlacement } from '@/__internal/utils/placement.js';\nimport styles from './split-button.scss';\nimport colorStyles from './split-button-colors.scss';\nimport sizeStyles from './split-button-sizes.scss';\nimport type { Menu, MenuFocusTarget } from '../menu/menu/menu.js';\n\n/**\n * @label Split Button\n * @tag wc-split-button\n * @rawTag split-button\n *\n * @summary A button for a default action joined to an arrow that opens a menu of related actions.\n * @overview\n * <p>The main button runs the default action; the arrow beside it opens a menu of related actions.</p>\n *\n * @cssprop --split-button-container-shape: Radius of the split button's outer corners. Defaults to fully round; the inner corners follow the M3 size tokens.\n * @cssprop --split-button-gap: Space between the main button and the menu button. Defaults to 2px.\n *\n * @cssprop --filled-split-button-container-color: Color of the filled split button container.\n * @cssprop --filled-split-button-label-text-color: Text color of the filled split button label.\n *\n * @cssprop --outlined-split-button-container-color: Color of the outlined split button container.\n * @cssprop --outlined-split-button-label-text-color: Text color of the outlined split button label.\n *\n * @cssprop --tonal-split-button-container-color: Color of the tonal split button container.\n * @cssprop --tonal-split-button-label-text-color: Text color of the tonal split button label.\n *\n * @cssprop --elevated-split-button-container-color: Color of the elevated split button container.\n * @cssprop --elevated-split-button-label-text-color: Text color of the elevated split button label.\n *\n * @fires {MouseEvent} click - Dispatched when the primary action button is clicked, and only then: a menu item's click does not bubble past the split button. Listen on the item, or for the `menu-item-activate` event (`detail.item`) that the menu fires through the split button.\n * @fires {CustomEvent} open - Dispatched after the menu opens.\n * @fires {CustomEvent<{reason: 'escape' | 'light-dismiss' | 'action' | 'api'}>} close - Dispatched after the menu closes: an item pick is `action`, Escape `escape`, a press outside or Tab `light-dismiss`, `close()` or the primary action `api`.\n *\n * @example\n * ```html\n * <wc-split-button>\n * Save\n * <wc-menu-item slot=\"menu\">Save as draft</wc-menu-item>\n * <wc-menu-item slot=\"menu\">Save and publish</wc-menu-item>\n * </wc-split-button>\n * ```\n * @tags controls\n */\nexport class SplitButton extends LitElement {\n static override styles = [styles, colorStyles, sizeStyles];\n\n /**\n * Button size.\n * Possible values are `\"xs\"`, `\"sm\"`, `\"md\"`, `\"lg\"`, `\"xl\"`. Defaults to `\"sm\"`.\n */\n @property({ reflect: true }) size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'sm';\n\n /**\n * The visual style of the split button.\n *\n * Possible variant values:\n * `\"filled\"` is a filled button.\n * `\"outlined\"` is an outlined button.\n * `\"tonal\"` is a light color button.\n * `\"elevated\"` is a raised button on a low surface.\n */\n @property({ reflect: true }) variant:\n | 'filled'\n | 'tonal'\n | 'elevated'\n | 'outlined' = 'filled';\n\n /**\n * Defines the primary color of the split button.\n */\n @property({ reflect: true }) color:\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'surface'\n | 'on-surface' = 'primary';\n\n /**\n * Whether the split button is disabled.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Visual variant of the menu: one surface (`\"standard\"`) or segmented groups (`\"expressive\"`). */\n @property({ attribute: 'menu-variant' }) menuVariant:\n | 'standard'\n | 'expressive' = 'standard';\n\n /**\n * Where the menu opens relative to the button: `top`, `bottom`, `start` or `end`, optionally\n * followed by `-start` or `-end` (ADR-030001). `start` and `end` follow the writing direction.\n * Defaults to `\"bottom-end\"`.\n */\n @property({ reflect: true }) placement: OverlayPlacement = 'bottom-end';\n\n @query('wc-menu') private readonly _menu?: Menu;\n\n /** Peacock's strings for the menu trigger label. */\n private readonly i18n = new I18nController(this);\n\n /** Opens and closes the menu and fires `open` / `close`. */\n private readonly _trigger = new MenuTriggerController(this, {\n menu: () => this._menu,\n disabled: () => this.disabled,\n idPrefix: 'split-menu',\n });\n\n override focus() {\n const btn = this.shadowRoot?.querySelector<HTMLElement>('.action-button');\n btn?.focus();\n }\n\n /** Opens the menu and focuses its first (or last) item. */\n show(focusTarget: MenuFocusTarget = 'first') {\n this._trigger.show(focusTarget);\n }\n\n /** Closes the menu. */\n close() {\n this._trigger.close();\n }\n\n private _onActionClick(event: MouseEvent) {\n if (this.disabled) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n\n // The primary action closes the menu if it is open.\n if (this._menu?.open) {\n this._trigger.close();\n }\n }\n\n /**\n * The split button's `click` means the primary action, so a menu item's click stops here: the\n * item's own listeners and the menu have seen it, and the host still gets `menu-item-activate`.\n */\n private _onMenuClick(event: MouseEvent) {\n event.stopPropagation();\n }\n\n /** An agent's open or close of the menu, made as the trigger's `show()` or `close()` makes it. */\n private _handleAgentOpen(event: AgentToggleChangeEvent) {\n event.stopPropagation();\n if (this.disabled || event.detail.value === this._trigger.open) {\n event.preventDefault();\n return;\n }\n if (event.detail.value) this._trigger.show();\n else this._trigger.close();\n }\n\n override render() {\n const actionClasses = {\n 'action-button': true,\n disabled: this.disabled,\n };\n\n const dropdownClasses = {\n 'dropdown-trigger': true,\n active: this._trigger.open,\n disabled: this.disabled,\n };\n\n const containerClasses = {\n 'split-button': true,\n [`variant-${this.variant}`]: true,\n disabled: this.disabled,\n };\n\n return html`\n <div class=${classMap(containerClasses)}>\n <wc-button\n class=${classMap(actionClasses)}\n size=${this.size}\n variant=${this.variant}\n ?disabled=${this.disabled}\n @click=${this._onActionClick}\n >\n <slot></slot>\n </wc-button>\n\n <agent-split\n .open=${this._trigger.open}\n .disabled=${this.disabled}\n @openchange=${this._handleAgentOpen}\n ><wc-icon-button\n class=${classMap(dropdownClasses)}\n size=${this.size}\n variant=${this.variant}\n ?disabled=${this.disabled}\n aria-label=${this.i18n.t('openSplitButtonMenu')}\n aria-haspopup=\"menu\"\n aria-expanded=${String(this._trigger.open)}\n @click=${this._trigger.handleTriggerClick}\n @keydown=${this._trigger.handleTriggerKeyDown}\n >\n <wc-icon\n class=\"dropdown-icon\"\n name=\"keyboard_arrow_down\"\n aria-hidden=\"true\"\n ></wc-icon> </wc-icon-button\n ></agent-split>\n </div>\n\n <wc-menu\n id=${this._trigger.menuId}\n .placement=${this.placement}\n variant=${this.menuVariant}\n @click=${this._onMenuClick}\n @open=${this._trigger.handleMenuOpen}\n @close=${this._trigger.handleMenuClose}\n >\n <slot name=\"menu\"></slot>\n </wc-menu>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","styles","colorStyles","sizeStyles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACG,MAAO,WAAY,SAAQA,GAAU,CAAA;AAA3C,IAAA,WAAA,GAAA;;AAGE;;;AAGG;QAC0B,IAAA,CAAA,IAAI,GAAqC,IAAI;AAE1E;;;;;;;;AAQG;QAC0B,IAAA,CAAA,OAAO,GAInB,QAAQ;AAEzB;;AAEG;QAC0B,IAAA,CAAA,KAAK,GAQf,SAAS;AAE5B;;AAEG;QACyC,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAGnB,IAAA,CAAA,WAAW,GAEjC,UAAU;AAE7B;;;;AAIG;QAC0B,IAAA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AAO,EAAE,IAAI,EAAE;AAA6C,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAErC,UAAA,CAAA;IAAlCC,CAAK,CAAC,SAAS;AAAgC,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent surfaces let an agent read and drive a Peacock component through ui-sdk's agent bridge
|
|
3
|
+
* (`createAgent` from `@ui-sdk/web/agent`) while the component keeps its own rendering and
|
|
4
|
+
* behavior. The surface element wraps the component's focusable control in its shadow root, takes
|
|
5
|
+
* its accessible name from it, mirrors the component's state through properties, and reports an
|
|
6
|
+
* agent's change as `valuechange`; the component applies it as if the person had made it.
|
|
7
|
+
*
|
|
8
|
+
* Spike for ADR-030002's agent work: only used by `wc-select` so far.
|
|
9
|
+
*/
|
|
10
|
+
/** One choice, as the bridge lists it. */
|
|
11
|
+
export interface AgentChoiceItem {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** A single value, or every value of a multi-select. */
|
|
17
|
+
export type AgentChoiceValue = string | string[];
|
|
18
|
+
/** The tag Peacock components render around a combobox-like control. */
|
|
19
|
+
export declare const AGENT_CHOICE_TAG = "agent-choice";
|
|
20
|
+
/** What a `valuechange` from the surface carries. */
|
|
21
|
+
export type AgentChoiceChangeEvent = CustomEvent<{
|
|
22
|
+
value: AgentChoiceValue;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent surfaces for on/off controls (ADR-030004). Each wraps the component's own role element in
|
|
3
|
+
* its shadow root, mirrors `checked`, and reports an agent's change as `checkedchange`; the
|
|
4
|
+
* component applies it as if the person had clicked.
|
|
5
|
+
*/
|
|
6
|
+
/** What a `checkedchange` from a surface carries: the checked state an agent asked for, as `value`. */
|
|
7
|
+
export interface AgentToggleChange {
|
|
8
|
+
value: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** The `checkedchange` a surface fires for an agent's change. */
|
|
11
|
+
export type AgentToggleChangeEvent = CustomEvent<AgentToggleChange>;
|
|
12
|
+
/** The tag a Peacock checkbox renders around its `role="checkbox"` control. */
|
|
13
|
+
export declare const AGENT_CHECKBOX_TAG = "agent-checkbox";
|
|
14
|
+
/** The tag a Peacock switch renders around its `role="switch"` control. */
|
|
15
|
+
export declare const AGENT_SWITCH_TAG = "agent-switch";
|
|
16
|
+
/** The tag a Peacock radio renders around its `role="radio"` control. */
|
|
17
|
+
export declare const AGENT_RADIO_TAG = "agent-radio";
|
|
18
|
+
/** The tag an accordion item renders around its header button. */
|
|
19
|
+
export declare const AGENT_DISCLOSURE_TAG = "agent-disclosure";
|
|
20
|
+
/** The tag a modal renders around its `dialog`. */
|
|
21
|
+
export declare const AGENT_MODAL_TAG = "agent-modal";
|
|
22
|
+
/** The tag a dropdown button renders around its trigger, which the menu opens from. */
|
|
23
|
+
export declare const AGENT_DROPDOWN_TAG = "agent-dropdown";
|
|
24
|
+
/** The tag a tab renders around its `role="tab"` button. */
|
|
25
|
+
export declare const AGENT_TAB_TAG = "agent-tab";
|
|
26
|
+
/**
|
|
27
|
+
* The tag a menu item renders around its `#menu-item` button. The item has no state, so its
|
|
28
|
+
* `selected` stays `false`: each `select` is a request the item answers with a click.
|
|
29
|
+
*/
|
|
30
|
+
export declare const AGENT_ITEM_TAG = "agent-item";
|
|
31
|
+
/** The tag a split button renders around its menu trigger, the arrow beside the primary action. */
|
|
32
|
+
export declare const AGENT_SPLIT_TAG = "agent-split";
|
|
33
|
+
/** The tag a stepper step renders around its `#control` button. */
|
|
34
|
+
export declare const AGENT_STEP_TAG = "agent-step";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent surface for a text-like field (ADR-030004). It wraps the field's native control in its
|
|
3
|
+
* shadow root, mirrors `value`, and reports an agent's `setValue` as `valuechange`. The field
|
|
4
|
+
* offers the change as a suggestion (ADR-030002): the person commits it.
|
|
5
|
+
*/
|
|
6
|
+
/** What a `valuechange` from the surface carries: the value an agent asked for, as `value`. */
|
|
7
|
+
export interface AgentValueChange {
|
|
8
|
+
value: string | number;
|
|
9
|
+
}
|
|
10
|
+
/** The `valuechange` the surface fires for an agent's change. */
|
|
11
|
+
export type AgentValueChangeEvent = CustomEvent<AgentValueChange>;
|
|
12
|
+
/** The tag a Peacock text field renders around its native control. */
|
|
13
|
+
export declare const AGENT_FIELD_TAG = "agent-field";
|
|
@@ -51,6 +51,8 @@ export declare class SuggestionController implements ReactiveController {
|
|
|
51
51
|
hostDisconnected(): void;
|
|
52
52
|
/** The suggestion the field holds, or `null`. */
|
|
53
53
|
get suggestion(): AiSuggestion | null;
|
|
54
|
+
/** Whether the host may take suggestions at all: AI is on for it and it is not sensitive. */
|
|
55
|
+
get available(): boolean;
|
|
54
56
|
/** Whether the field holds a suggestion and shows it as one. */
|
|
55
57
|
get visible(): boolean;
|
|
56
58
|
/** Why the value was suggested, while the suggestion shows; else `''`. */
|
|
@@ -13,7 +13,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
13
13
|
/**
|
|
14
14
|
* Accessibility Object Model aria attributes.
|
|
15
15
|
*/
|
|
16
|
-
export declare const ARIA_ATTRIBUTES: ("role" | "aria-label" | "aria-hidden" | "aria-labelledby" | "aria-
|
|
16
|
+
export declare const ARIA_ATTRIBUTES: ("role" | "aria-label" | "aria-hidden" | "aria-labelledby" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
17
17
|
/**
|
|
18
18
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
19
19
|
*
|
|
@@ -8,7 +8,7 @@ import type { DiagramRect, DiagramStartPosition, DiagramView } from './types.js'
|
|
|
8
8
|
* `wc-workflow` and the later diagram components. Subclasses render their content inside the
|
|
9
9
|
* element returned by `viewportElement()` and describe it through the abstract hooks.
|
|
10
10
|
*/
|
|
11
|
-
export declare abstract class
|
|
11
|
+
export declare abstract class DiagramCanvasBase extends LitElement implements DiagramCanvas {
|
|
12
12
|
/** The camera's scale. Follows wheel and pinch zooming; set it to zoom around the centre. */
|
|
13
13
|
zoom: number;
|
|
14
14
|
/** Screen pixels kept around content when fitting it. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import './agent/value-surface.js';
|
|
3
|
+
import type { Size } from './utils/size.js';
|
|
4
|
+
import InputBase from './input-base.js';
|
|
4
5
|
/** What a field component passes to `renderField()`. */
|
|
5
6
|
export interface FieldRenderOptions {
|
|
6
7
|
/** Whether the field has a value; outlined fields float their label when it does. */
|
|
@@ -15,6 +16,11 @@ export interface FieldRenderOptions {
|
|
|
15
16
|
end?: unknown;
|
|
16
17
|
/** Character counter shown in the footer, such as `12/100`; empty or unset for none. */
|
|
17
18
|
textCount?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether an agent may offer a value to the control through the field's agent surface. `false`
|
|
21
|
+
* for a control with its own surface, so it is not wrapped twice.
|
|
22
|
+
*/
|
|
23
|
+
agent?: boolean;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* Base class for Peacock's text-like fields (input, textarea, number, URL, select, date/time,
|
|
@@ -30,7 +36,7 @@ export interface FieldRenderOptions {
|
|
|
30
36
|
* (the field event contract: `CustomEvent<{ value }>`, bubbling and composed), and override
|
|
31
37
|
* `clearValue()` if clearing means more than `value = ''`.
|
|
32
38
|
*/
|
|
33
|
-
export default abstract class
|
|
39
|
+
export default abstract class FieldBase extends InputBase {
|
|
34
40
|
/** Label shown above the field; also the control's accessible name. */
|
|
35
41
|
label: string;
|
|
36
42
|
/** Hint shown inside the empty control. */
|
|
@@ -89,6 +95,19 @@ export default abstract class BaseField extends BaseInput {
|
|
|
89
95
|
protected fieldAria(controlError?: string): Record<string, string | undefined>;
|
|
90
96
|
/** Renders the `wc-field` frame around `control`, plus the hidden description. */
|
|
91
97
|
protected renderField(control: unknown, options: FieldRenderOptions): TemplateResult;
|
|
98
|
+
/** Wraps the control in the field's agent surface (ADR-030004), unless the field has its own. */
|
|
99
|
+
private agentWrap;
|
|
100
|
+
/** The value the agent surface reports. Fields whose value is not text override it. */
|
|
101
|
+
protected agentValue(): unknown;
|
|
102
|
+
/** Turns an agent's value into the field's own type, such as a number. */
|
|
103
|
+
protected coerceAgentValue(value: unknown): unknown;
|
|
104
|
+
private _handleAgentValue;
|
|
105
|
+
/**
|
|
106
|
+
* Offers an agent's value as a suggestion (ADR-030002): the field fills and marks it, and the
|
|
107
|
+
* person commits it. Refused while the field is disabled or read-only, when AI is off or the
|
|
108
|
+
* field is sensitive, or when it already holds that value.
|
|
109
|
+
*/
|
|
110
|
+
protected applyAgentValue(value: unknown): boolean;
|
|
92
111
|
/** Dispatches `input` or `change` with the current value: the field event contract. */
|
|
93
112
|
protected emitValue(type: 'input' | 'change'): void;
|
|
94
113
|
protected emitSuggestionValue(): void;
|
|
@@ -4,7 +4,7 @@ import { NavigationItemBase } from './navigation-item-base.js';
|
|
|
4
4
|
* Shared layout of `wc-navigation-rail-item` and `wc-navigation-bar-item`: the icon inside the
|
|
5
5
|
* active-indicator pill with the label below it, the `active-icon` slot and a badge on the icon.
|
|
6
6
|
*
|
|
7
|
-
* Not a component on its own: it is not
|
|
7
|
+
* Not a component on its own: it is not listed in components.manifest.json.
|
|
8
8
|
*/
|
|
9
9
|
export declare abstract class IndicatorNavigationItem extends NavigationItemBase {
|
|
10
10
|
static styles: import("lit").CSSResultGroup[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
-
import { type FormRestoreState, type FormValue, getFormValue } from '
|
|
3
|
-
import { type SuggestionAcceptCause } from '
|
|
4
|
-
import type { AiSuggestion } from '
|
|
2
|
+
import { type FormRestoreState, type FormValue, getFormValue } from './mixins/form-associated.js';
|
|
3
|
+
import { type SuggestionAcceptCause } from './ai/suggestion-controller.js';
|
|
4
|
+
import type { AiSuggestion } from './ai/types.js';
|
|
5
5
|
declare const VALIDITY_KEYS: readonly ["valueMissing", "typeMismatch", "patternMismatch", "tooLong", "tooShort", "rangeUnderflow", "rangeOverflow", "stepMismatch", "badInput"];
|
|
6
6
|
/** The flags `ElementInternals.setValidity()` takes, as the DOM's `ValidityStateFlags`. */
|
|
7
7
|
export type ValidityFlags = {
|
|
@@ -16,7 +16,7 @@ export interface ControlValidity {
|
|
|
16
16
|
}
|
|
17
17
|
/** The validity of a native control, for controls that wrap one. */
|
|
18
18
|
export declare function nativeValidity(control: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): ControlValidity;
|
|
19
|
-
declare const
|
|
19
|
+
declare const InputBase_base: import("./mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("./mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("./mixins/form-associated.js").FormAssociatedConstructor, import("./mixins/form-associated.js").FormAssociated>;
|
|
20
20
|
/**
|
|
21
21
|
* Base class for Peacock's form controls.
|
|
22
22
|
*
|
|
@@ -40,7 +40,7 @@ declare const BaseInput_base: import("../__internal/mixins/mixin.js").MixinRetur
|
|
|
40
40
|
* @fires {CustomEvent<SuggestionAcceptDetail>} accept - Fired when a suggested value is accepted: the person edited it (`cause: 'edit'`), the form was submitted (`'submit'`) or `acceptSuggestion()` was called (`'action'`).
|
|
41
41
|
* @fires {CustomEvent<SuggestionDismissDetail>} dismiss - Fired when the person clears a suggestion, before `input` and `change` with the restored value.
|
|
42
42
|
*/
|
|
43
|
-
export default abstract class
|
|
43
|
+
export default abstract class InputBase extends InputBase_base {
|
|
44
44
|
/** Each control declares its own `value` (a property, or an accessor such as Switch's). */
|
|
45
45
|
abstract value?: any;
|
|
46
46
|
/** Shows the value but stops the user changing it; unlike `disabled`, it stays focusable and is submitted. */
|
|
@@ -104,6 +104,11 @@ export default abstract class BaseInput extends BaseInput_base {
|
|
|
104
104
|
protected get suggestionReason(): string;
|
|
105
105
|
/** Whether a suggestion shows as one now (AI on, not sensitive). */
|
|
106
106
|
protected get suggestionVisible(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Whether an agent may act on this control: AI is on for it and it is not sensitive. Agents
|
|
109
|
+
* only ever suggest a value, so this is also when their actions are offered (ADR-030004).
|
|
110
|
+
*/
|
|
111
|
+
protected get agentAvailable(): boolean;
|
|
107
112
|
/** The value a suggestion replaces and a dismissed one restores. */
|
|
108
113
|
protected readSuggestionValue(): unknown;
|
|
109
114
|
/** Puts a suggested or restored value into the control. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type InputBase from '../input-base.js';
|
|
2
2
|
import type { Size } from '../utils/size.js';
|
|
3
3
|
import type { MixinReturn } from './mixin.js';
|
|
4
4
|
/** What a field component passes to `renderField()`. */
|
|
@@ -28,7 +28,7 @@ export interface FieldElement {
|
|
|
28
28
|
clearable: boolean;
|
|
29
29
|
configAria: Record<string, string>;
|
|
30
30
|
}
|
|
31
|
-
type BaseInputConstructor = abstract new (...args: any[]) =>
|
|
31
|
+
type BaseInputConstructor = abstract new (...args: any[]) => InputBase;
|
|
32
32
|
/**
|
|
33
33
|
* Shared props and rendering for Peacock's text-like fields (input, textarea, number, URL, select,
|
|
34
34
|
* date/time, color): label, helper/error/warning text, variant, size, clearable, `start`/`end`
|
package/dist/src/__internal/mixins/{NativeHyperlinkMixin.d.ts → native-hyperlink-mixin.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import type { MixinConstructor } from './
|
|
2
|
+
import type { MixinConstructor } from './mixin-constructor.js';
|
|
3
3
|
/**
|
|
4
4
|
* 1. Define an interface for the members the mixin adds.
|
|
5
5
|
* This makes the type annotation much cleaner.
|
|
@@ -5,7 +5,7 @@ import { ClassInfo } from 'lit/directives/class-map.js';
|
|
|
5
5
|
* `wc-navigation-drawer-item`: the current-destination state, link or button rendering, the
|
|
6
6
|
* disabled reason, the badge and the throttled host click. Subclasses render the content.
|
|
7
7
|
*
|
|
8
|
-
* Not a component on its own: it is not
|
|
8
|
+
* Not a component on its own: it is not listed in components.manifest.json.
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class NavigationItemBase extends LitElement {
|
|
11
11
|
#private;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import { I18nController } from './i18n/i18n-controller.js';
|
|
3
|
-
import
|
|
4
|
-
import type { ControlValidity } from '
|
|
3
|
+
import FieldBase from './field-base.js';
|
|
4
|
+
import type { ControlValidity } from './input-base.js';
|
|
5
5
|
import type { Popover } from '../popover/popover.js';
|
|
6
6
|
/** A picker hosted in a field's popover: it takes focus when the popover opens. */
|
|
7
7
|
interface FocusablePicker extends HTMLElement {
|
|
@@ -24,7 +24,7 @@ export interface ValueProblem {
|
|
|
24
24
|
*
|
|
25
25
|
* Subclasses supply the parsing, formatting, validation and the picker itself.
|
|
26
26
|
*/
|
|
27
|
-
export default abstract class
|
|
27
|
+
export default abstract class PickerFieldBase extends FieldBase {
|
|
28
28
|
/** The value as an ISO string; empty when there is none. */
|
|
29
29
|
value: string;
|
|
30
30
|
/** BCP 47 locale for display and typed input; defaults to the page language. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
2
|
import { Editor, type Content, type Extensions } from '@tiptap/core';
|
|
3
|
-
import
|
|
3
|
+
import InputBase, { type ControlValidity } from '../input-base.js';
|
|
4
4
|
import { I18nController } from '../i18n/i18n-controller.js';
|
|
5
5
|
import type { PeacockStrings } from '../i18n/strings.js';
|
|
6
6
|
import type { MentionSuggestion } from '../../mention-input/mention-model.js';
|
|
@@ -32,7 +32,7 @@ export interface RichTextContent {
|
|
|
32
32
|
* (from the bubble and the toolbar), Continue writing and Summarize above in the slash menu, and,
|
|
33
33
|
* with `ai-completion`, ghost text. Results show in a preview until the person accepts them.
|
|
34
34
|
*/
|
|
35
|
-
export default abstract class
|
|
35
|
+
export default abstract class RichTextInputBase extends InputBase implements RichTextMentionHost {
|
|
36
36
|
/** The value: Markdown or HTML, depending on the editor. */
|
|
37
37
|
value: string;
|
|
38
38
|
/** Label shown above the editor. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropertyValues } from 'lit';
|
|
2
2
|
import { type FormRestoreState, type FormValue, getFormState, getFormValue } from './mixins/form-associated.js';
|
|
3
|
-
import
|
|
3
|
+
import InputBase, { type ControlValidity } from './input-base.js';
|
|
4
4
|
/**
|
|
5
5
|
* Base for Peacock's on/off controls: `wc-checkbox`, `wc-switch` and `wc-radio`.
|
|
6
6
|
*
|
|
@@ -12,7 +12,7 @@ import BaseInput, { type ControlValidity } from '../input/BaseInput.js';
|
|
|
12
12
|
* Subclasses render the control with `controlAttributes()`, the label with `renderLabel()`, and
|
|
13
13
|
* call `toggleChecked(event)` (or their own selection logic) on activation.
|
|
14
14
|
*/
|
|
15
|
-
export default abstract class ToggleBase extends
|
|
15
|
+
export default abstract class ToggleBase extends InputBase {
|
|
16
16
|
/** Visible label; slotted content is used when it is empty. */
|
|
17
17
|
label: string;
|
|
18
18
|
/** Whether the control is on. */
|
|
@@ -60,6 +60,13 @@ export default abstract class ToggleBase extends BaseInput {
|
|
|
60
60
|
protected controlAttributes(fallbackTabIndex?: string): Record<string, string | undefined>;
|
|
61
61
|
/** Flips `checked` and fires `change`, unless the control is disabled or read-only. */
|
|
62
62
|
protected toggleChecked(originalEvent?: Event): void;
|
|
63
|
+
/**
|
|
64
|
+
* Offers an agent's change as a suggestion (ADR-030002, ADR-030004): the control fills and marks
|
|
65
|
+
* it, and the person commits it by editing or submitting the form. Refused while the control is
|
|
66
|
+
* disabled or read-only, when AI is off or the control is sensitive, or when it already holds
|
|
67
|
+
* that state.
|
|
68
|
+
*/
|
|
69
|
+
protected applyAgentChange(checked: boolean): boolean;
|
|
63
70
|
/** Hook for state that clears when the control is toggled, such as `indeterminate`. */
|
|
64
71
|
protected afterToggle(): void;
|
|
65
72
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
+
import '../__internal/agent/toggle-surface.js';
|
|
2
3
|
/** What changed an accordion item's `open` state. */
|
|
3
4
|
export type AccordionItemReason = 'action' | 'api';
|
|
4
5
|
/**
|
|
@@ -73,6 +74,10 @@ export declare class AccordionItem extends LitElement {
|
|
|
73
74
|
/** Expands the panel when collapsed, and collapses it when expanded. */
|
|
74
75
|
toggle(): void;
|
|
75
76
|
private _handleToggle;
|
|
77
|
+
/** An agent's open or close, applied as an API change: it fires `open` or `close` with `'api'`. */
|
|
78
|
+
private _handleAgentOpen;
|
|
79
|
+
/** The heading's text, which names the header for the agent bridge (ADR-030004). */
|
|
80
|
+
private _agentName;
|
|
76
81
|
private static _onSlotChange;
|
|
77
82
|
private _renderToggleIcon;
|
|
78
83
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent bridge (ADR-030004): lets an agent read Peacock components and call their actions.
|
|
3
|
+
*
|
|
4
|
+
* Import it from `@redvars/peacock/agent`, not from `@ui-sdk/*`: components register with the
|
|
5
|
+
* copy of ui-sdk bundled in Peacock, and a bridge from another copy sees none of them. Call
|
|
6
|
+
* `createAgent()` once, before components render.
|
|
7
|
+
*/
|
|
8
|
+
export { agentTools, createAgent, registerTools, type AgentAction, type AgentChange, type AgentComponent, type AgentStep, type ObservedChange, } from '@ui-sdk/web/agent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { WithElementInternals } from '../../__internal/mixins/element-internals.js';
|
|
3
3
|
import { MixinBase, MixinReturn } from '../../__internal/mixins/mixin.js';
|
|
4
|
-
import type { ButtonColor, ButtonLevel, ButtonVariant } from '../
|
|
4
|
+
import type { ButtonColor, ButtonLevel, ButtonVariant } from '../button-types.js';
|
|
5
5
|
/**
|
|
6
6
|
* 1. Define an interface for the members the mixin adds.
|
|
7
7
|
* This makes the type annotation much cleaner.
|
|
@@ -1,56 +1,8 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import '@ui-sdk/web/button';
|
|
3
|
+
import type { ButtonSize, ButtonShape } from '../button-types.js';
|
|
4
|
+
export type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor, } from '../button-types.js';
|
|
4
5
|
declare const Button_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("../../__internal/mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("../../__internal/mixins/form-associated.js").FormAssociatedConstructor, import("../../__internal/mixins/form-associated.js").FormAssociated>, import("../../__internal/mixins/form-submitter.js").FormSubmitter>>, import("../base-button/base-button.js").BaseButton>, import("../base-button/base-button.js").ButtonLevelAppearance>;
|
|
5
|
-
/**
|
|
6
|
-
* @label Button
|
|
7
|
-
* @tag wc-button
|
|
8
|
-
* @rawTag button
|
|
9
|
-
*
|
|
10
|
-
* @summary A button with a text label that runs an action, such as saving a form or sending a message; it can also toggle.
|
|
11
|
-
* @overview
|
|
12
|
-
* <p><code>level</code> is a preset of <code>color</code> and <code>variant</code>: <code>primary</code> (primary, filled), <code>secondary</code> (surface, tonal), <code>tertiary</code> (primary, text) and <code>danger</code> (danger, filled). A <code>color</code> or <code>variant</code> you set wins over it.</p>
|
|
13
|
-
* <p>Set <code>toggle</code> to make a toggle button: it renders <code>aria-pressed</code>, flips <code>selected</code> on each click and fires <code>change</code>. <code>selected</code> does nothing without <code>toggle</code>.</p>
|
|
14
|
-
* <p>For a link that looks like a button, use <code>wc-link-button</code>.</p>
|
|
15
|
-
*
|
|
16
|
-
* @cssprop --button-container-shape - Defines the border radius of the button container shape.
|
|
17
|
-
*
|
|
18
|
-
* @cssprop --button-container-shape-start-start - Defines the start position of the button container shape.
|
|
19
|
-
* @cssprop --button-container-shape-start-end - Defines the end position of the button container shape.
|
|
20
|
-
* @cssprop --button-container-shape-end-start - Defines the start position of the button container shape.
|
|
21
|
-
* @cssprop --button-container-shape-end-end - Defines the end position of the button container shape.
|
|
22
|
-
*
|
|
23
|
-
* @cssprop --button-container-padding - Inline padding of the button container, on both sides.
|
|
24
|
-
* @cssprop --button-container-padding-start - Inline-start padding of the button container; overrides `--button-container-padding`.
|
|
25
|
-
* @cssprop --button-container-padding-end - Inline-end padding of the button container; overrides `--button-container-padding`.
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @cssprop --filled-button-container-color - Color of the filled button container.
|
|
29
|
-
* @cssprop --filled-button-label-text-color - Text color of the filled button label.
|
|
30
|
-
*
|
|
31
|
-
* @cssprop --outlined-button-container-color - Color of the outlined button container.
|
|
32
|
-
* @cssprop --outlined-button-label-text-color - Text color of the outlined button label.
|
|
33
|
-
*
|
|
34
|
-
* @cssprop --text-button-label-text-color - Text color of the text button label.
|
|
35
|
-
*
|
|
36
|
-
* @cssprop --tonal-button-container-color - Color of the tonal button container.
|
|
37
|
-
* @cssprop --tonal-button-label-text-color - Text color of the tonal button label.
|
|
38
|
-
*
|
|
39
|
-
* @cssprop --elevated-button-container-color - Color of the elevated button container.
|
|
40
|
-
* @cssprop --elevated-button-label-text-color - Text color of the elevated button label.
|
|
41
|
-
*
|
|
42
|
-
* @cssprop --neo-button-container-color - Color of the neo button container.
|
|
43
|
-
* @cssprop --neo-button-label-text-color - Text color of the neo button label.
|
|
44
|
-
*
|
|
45
|
-
* @fires {MouseEvent} click - Dispatched when the button is clicked. Not dispatched while `loading`, `soft-disabled` or `skeleton`.
|
|
46
|
-
* @fires {CustomEvent<{ selected: boolean }>} change - Dispatched by a `toggle` button after a click flips `selected`.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```html
|
|
50
|
-
* <wc-button>Button</wc-button>
|
|
51
|
-
* ```
|
|
52
|
-
* @tags display
|
|
53
|
-
*/
|
|
54
6
|
export declare class Button extends Button_base {
|
|
55
7
|
/** @nocollapse */ static shadowRootOptions: ShadowRootInit;
|
|
56
8
|
static styles: import("lit").CSSResultGroup[];
|
|
@@ -87,8 +39,15 @@ export declare class Button extends Button_base {
|
|
|
87
39
|
private __iconSlotCleanup;
|
|
88
40
|
/** Cleanup returned by observerSlotChangesWithCallback for the label slot. */
|
|
89
41
|
private __labelSlotCleanup;
|
|
42
|
+
/**
|
|
43
|
+
* The slotted label's text. It names the inner button through `aria-label` when none is set:
|
|
44
|
+
* the browser already names it from the slotted text, but ui-sdk's agent bridge does not follow
|
|
45
|
+
* slots, and without a name an agent can't find the button.
|
|
46
|
+
*/
|
|
47
|
+
private _slotLabel;
|
|
90
48
|
disconnectedCallback(): void;
|
|
91
49
|
firstUpdated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
50
|
+
private __labelText;
|
|
92
51
|
focus(): void;
|
|
93
52
|
blur(): void;
|
|
94
53
|
/** A soft-disabled, loading or skeleton button swallows clicks. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, nothing, type PropertyValues } from 'lit';
|
|
2
|
-
import type { ButtonShape, ButtonSize } from '../
|
|
2
|
+
import type { ButtonShape, ButtonSize } from '../button-types.js';
|
|
3
3
|
declare const IconButton_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("../../__internal/mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("../../__internal/mixins/form-associated.js").FormAssociatedConstructor, import("../../__internal/mixins/form-associated.js").FormAssociated>, import("../../__internal/mixins/form-submitter.js").FormSubmitter>>, import("../../__internal/mixins/hyperlink.js").Hyperlink>, import("../base-button/base-button.js").BaseButton>, import("../base-button/base-button.js").ButtonLevelAppearance>;
|
|
4
4
|
/**
|
|
5
5
|
* @label Icon Button
|
|
@@ -2,4 +2,4 @@ export { Button } from './button/button.js';
|
|
|
2
2
|
export { default as ButtonGroup } from './button-group/button-group.js';
|
|
3
3
|
export { IconButton } from './icon-button/icon-button.js';
|
|
4
4
|
export { LinkButton } from './link-button/link-button.js';
|
|
5
|
-
export type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor, } from './
|
|
5
|
+
export type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor, } from './button-types.js';
|