@redvars/peacock 4.1.0 → 4.2.1
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/{BaseField-BMumJpkW.js → BaseField-D8ByB0l3.js} +40 -4
- package/dist/BaseField-D8ByB0l3.js.map +1 -0
- package/dist/{BaseInput-mWdyYv27.js → BaseInput-xCHvT4AN.js} +3 -3
- package/dist/BaseInput-xCHvT4AN.js.map +1 -0
- package/dist/ai-badge.js +32 -6
- package/dist/ai-badge.js.map +1 -1
- package/dist/ai-summary.js +2 -2
- package/dist/alert.js +2 -2
- package/dist/anchor-nav.js +2 -2
- package/dist/app-shell.js +2 -2
- package/dist/assistant-panel.js +2 -2
- package/dist/assistant-step.js +2 -2
- package/dist/assistant-steps.js +2 -2
- package/dist/avatar-group.js +2 -2
- package/dist/banner.js +2 -2
- package/dist/{base-progress-CvLVSjuy.js → base-progress-DxNgAQtw.js} +2 -2
- package/dist/{base-progress-CvLVSjuy.js.map → base-progress-DxNgAQtw.js.map} +1 -1
- package/dist/bottom-sheet.js +2 -2
- package/dist/breadcrumb.js +2 -2
- package/dist/button.js +11 -5
- package/dist/button.js.map +1 -1
- package/dist/calendar.js +2 -2
- package/dist/{canvas-base-BTQMEVn_.js → canvas-base-DHKf2CmA.js} +2 -2
- package/dist/{canvas-base-BTQMEVn_.js.map → canvas-base-DHKf2CmA.js.map} +1 -1
- package/dist/{cartesian-chart-DM1FC_XT.js → cartesian-chart-G6VX1aKk.js} +2 -2
- package/dist/{cartesian-chart-DM1FC_XT.js.map → cartesian-chart-G6VX1aKk.js.map} +1 -1
- package/dist/{cb-group-base-B6fa4Lll.js → cb-group-base-CZLzCnXK.js} +2 -2
- package/dist/{cb-group-base-B6fa4Lll.js.map → cb-group-base-CZLzCnXK.js.map} +1 -1
- package/dist/cb-group.js +3 -3
- package/dist/cb-rule.js +3 -3
- package/dist/chart-area.js +4 -4
- package/dist/chart-bar.js +4 -4
- package/dist/{chart-base-Dhxuw_Mw.js → chart-base-DREru2P0.js} +2 -2
- package/dist/{chart-base-Dhxuw_Mw.js.map → chart-base-DREru2P0.js.map} +1 -1
- package/dist/chart-doughnut.js +3 -3
- package/dist/chart-line.js +4 -4
- package/dist/chart-pie.js +3 -3
- package/dist/chat-event.js +152 -0
- package/dist/chat-event.js.map +1 -0
- package/dist/chat-message.js +195 -19
- package/dist/chat-message.js.map +1 -1
- package/dist/chat-thread.js +26 -9
- package/dist/chat-thread.js.map +1 -1
- package/dist/checkbox-group.js +4 -4
- package/dist/checkbox.js +4 -4
- package/dist/chip-set.js +3 -3
- package/dist/chip.js +2 -2
- package/dist/circular-progress.js +3 -3
- package/dist/citation.js +2 -2
- package/dist/code-editor.js +4 -4
- package/dist/code-highlighter.js +2 -2
- package/dist/color-field.js +5 -5
- package/dist/color-picker.js +2 -2
- package/dist/command-palette.js +2 -2
- package/dist/comment-composer.js +25 -13
- package/dist/comment-composer.js.map +1 -1
- package/dist/condition-builder.js +3 -3
- package/dist/confirm-dialog.js +2 -2
- package/dist/copy-button.js +2 -2
- package/dist/currency-field.js +5 -5
- package/dist/custom-elements-jsdocs.json +228 -22
- package/dist/custom-elements.json +1255 -110
- package/dist/date-field.js +6 -6
- package/dist/date-picker.js +2 -2
- package/dist/date-range-field.js +6 -6
- package/dist/datetime-field.js +6 -6
- package/dist/dependency-map.js +3 -3
- package/dist/description-item.js +2 -2
- package/dist/description-list.js +2 -2
- package/dist/{diagram-2r11KySs.js → diagram-CHF70xTL.js} +2 -2
- package/dist/{diagram-2r11KySs.js.map → diagram-CHF70xTL.js.map} +1 -1
- package/dist/diagram-controls.js +2 -2
- package/dist/diagram-minimap.js +2 -2
- package/dist/diagram.js +4 -4
- package/dist/diff-viewer.js +2 -2
- package/dist/discussion-activity.js +4 -4
- package/dist/discussion-comment.js +4 -4
- package/dist/{discussion-time-BegaYfhf.js → discussion-time-DqykqvNy.js} +2 -2
- package/dist/{discussion-time-BegaYfhf.js.map → discussion-time-DqykqvNy.js.map} +1 -1
- package/dist/discussion.js +7 -7
- package/dist/{document-editor-BnEugM3E.js → document-editor-Cb9fCxvA.js} +22 -10
- package/dist/{document-editor-BnEugM3E.js.map → document-editor-Cb9fCxvA.js.map} +1 -1
- package/dist/document-editor.js +3 -3
- package/dist/draft-card.js +14 -4
- package/dist/draft-card.js.map +1 -1
- package/dist/dropdown-button.js +3 -2
- package/dist/dropdown-button.js.map +1 -1
- package/dist/erd.js +3 -3
- package/dist/file-upload.js +4 -4
- package/dist/filter-bar.js +2 -2
- package/dist/flow.js +4 -4
- package/dist/form.js +3 -3
- package/dist/{generative-view-BgOcLRXr.js → generative-view-C4fJ2zI7.js} +2 -2
- package/dist/{generative-view-BgOcLRXr.js.map → generative-view-C4fJ2zI7.js.map} +1 -1
- package/dist/generative-view.js +3 -3
- package/dist/html-editor.js +30 -13
- package/dist/html-editor.js.map +1 -1
- package/dist/{i18n-controller-Cp43HjJl.js → i18n-controller-CH4e9sju.js} +2 -2
- package/dist/{i18n-controller-Cp43HjJl.js.map → i18n-controller-CH4e9sju.js.map} +1 -1
- package/dist/icon-button.js +7 -5
- package/dist/icon-button.js.map +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/inline-edit.js +2 -2
- package/dist/input.js +4 -4
- package/dist/json-viewer.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/kbd.js +2 -2
- package/dist/linear-progress.js +3 -3
- package/dist/link-button.js +7 -5
- package/dist/link-button.js.map +1 -1
- package/dist/listbox.js +3 -3
- package/dist/loader-full.js +13 -12
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +16 -12
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +30 -13
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mention-input.js +5 -5
- package/dist/{menu-trigger-controller-DyLpTxM7.js → menu-trigger-controller-CEJq1ugC.js} +11 -14
- package/dist/menu-trigger-controller-CEJq1ugC.js.map +1 -0
- package/dist/modal.js +2 -2
- package/dist/navigation-bar.js +2 -2
- package/dist/navigation-drawer.js +2 -2
- package/dist/navigation-rail.js +2 -2
- package/dist/notification-center.js +3 -3
- package/dist/number-field.js +5 -5
- package/dist/page-header.js +2 -2
- package/dist/pagination.js +2 -2
- package/dist/password-field.js +5 -5
- package/dist/password-rules.js +2 -2
- package/dist/phone-field.js +5 -5
- package/dist/{picker-field-dTlIMAQn.js → picker-field-loXW-xrW.js} +3 -3
- package/dist/{picker-field-dTlIMAQn.js.map → picker-field-loXW-xrW.js.map} +1 -1
- package/dist/pin-input.js +5 -5
- package/dist/presence-indicator.js +2 -2
- package/dist/prompt-input.js +25 -13
- package/dist/prompt-input.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/radio.js +4 -4
- package/dist/rating.js +4 -4
- package/dist/redvars-loader.js +2 -2
- package/dist/{relative-time-BVQXLuHm.js → relative-time-BNxqvEbg.js} +13 -2
- package/dist/relative-time-BNxqvEbg.js.map +1 -0
- package/dist/relative-time.js +3 -3
- package/dist/resizable-panels.js +2 -2
- package/dist/{rich-text-input-DM_BOzgk.js → rich-text-input-B5j0eqCJ.js} +21 -18
- package/dist/rich-text-input-B5j0eqCJ.js.map +1 -0
- package/dist/{schema-B8g30A_n.js → schema-BJzlGRP1.js} +2 -2
- package/dist/{schema-B8g30A_n.js.map → schema-BJzlGRP1.js.map} +1 -1
- package/dist/search.js +4 -4
- package/dist/select.js +5 -5
- package/dist/side-sheet.js +2 -2
- package/dist/signature-pad.js +4 -4
- package/dist/slider.js +4 -4
- package/dist/snackbar.js +2 -2
- package/dist/sparkline.js +2 -2
- package/dist/split-button.js +109 -21
- package/dist/split-button.js.map +1 -1
- package/dist/src/__internal/ai/suggestion-controller.d.ts +2 -0
- package/dist/src/__internal/i18n/strings.d.ts +6 -1
- package/dist/src/__internal/menu-trigger-controller.d.ts +11 -8
- package/dist/src/__internal/rich-text/rich-text-input.d.ts +6 -1
- package/dist/src/__internal/utils/relative-time.d.ts +5 -0
- package/dist/src/ai-badge/ai-badge.d.ts +8 -0
- package/dist/src/button/button/button.d.ts +4 -0
- package/dist/src/chat-message/chat-message.d.ts +51 -10
- package/dist/src/chat-message/index.d.ts +1 -1
- package/dist/src/chat-thread/chat-event.d.ts +37 -0
- package/dist/src/chat-thread/chat-thread.d.ts +7 -4
- package/dist/src/chat-thread/index.d.ts +1 -0
- package/dist/src/html-editor/html-editor.d.ts +5 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/input/BaseField.d.ts +12 -1
- package/dist/src/input/BaseInput.d.ts +1 -0
- package/dist/src/markdown-editor/markdown-editor.d.ts +5 -0
- package/dist/src/split-button/split-button.d.ts +7 -2
- package/dist/src/textarea/textarea.d.ts +2 -0
- package/dist/stat.js +2 -2
- package/dist/status-indicator.js +2 -2
- package/dist/step.js +2 -2
- package/dist/stepper.js +2 -2
- package/dist/{strings-BJPuhKJk.js → strings-o6v6Hrmn.js} +7 -2
- package/dist/strings-o6v6Hrmn.js.map +1 -0
- package/dist/{suggestion-controller-CW17adxd.js → suggestion-controller-7YRQqkaI.js} +3 -1
- package/dist/{suggestion-controller-CW17adxd.js.map → suggestion-controller-7YRQqkaI.js.map} +1 -1
- package/dist/svg.js +2 -2
- package/dist/switch.js +4 -4
- package/dist/table.js +50 -11
- package/dist/table.js.map +1 -1
- package/dist/textarea.js +10 -5
- package/dist/textarea.js.map +1 -1
- package/dist/time-field.js +6 -6
- package/dist/time-picker.js +2 -2
- package/dist/timeline-item.js +2 -2
- package/dist/timeline.js +2 -2
- package/dist/{toggle-base-BlaHalfS.js → toggle-base-BSzBnLZN.js} +2 -2
- package/dist/{toggle-base-BlaHalfS.js.map → toggle-base-BSzBnLZN.js.map} +1 -1
- package/dist/tour.js +2 -2
- package/dist/transfer-list.js +4 -4
- package/dist/tree-chart.js +3 -3
- package/dist/tree-item.js +2 -2
- package/dist/tree.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +2 -2
- package/dist/url-field.js +5 -5
- package/dist/user-menu.js +3 -3
- package/dist/virtual-list.js +2 -2
- package/dist/workflow-timeline.js +2 -2
- package/dist/workflow.js +3 -3
- package/dist/workspace-switcher.js +3 -3
- package/package.json +1 -1
- package/src/__internal/ai/suggestion-controller.ts +3 -1
- package/src/__internal/i18n/strings.ts +6 -1
- package/src/__internal/menu-trigger-controller.ts +11 -15
- package/src/__internal/rich-text/editor-chrome.scss +27 -10
- package/src/__internal/rich-text/rich-text-input.ts +17 -16
- package/src/__internal/utils/relative-time.ts +20 -0
- package/src/ai-badge/ai-badge.scss +8 -0
- package/src/ai-badge/ai-badge.ts +21 -4
- package/src/button/button/button-base.scss +9 -2
- package/src/button/button/button-layers.scss +3 -1
- package/src/button/button/button.ts +4 -0
- package/src/chat-message/chat-message.scss +72 -0
- package/src/chat-message/chat-message.ts +137 -18
- package/src/chat-message/index.ts +1 -0
- package/src/chat-thread/chat-event.scss +36 -0
- package/src/chat-thread/chat-event.ts +79 -0
- package/src/chat-thread/chat-thread.scss +4 -1
- package/src/chat-thread/chat-thread.ts +22 -6
- package/src/chat-thread/index.ts +1 -0
- package/src/draft-card/draft-card.scss +16 -2
- package/src/dropdown-button/dropdown-button.ts +2 -1
- package/src/html-editor/html-editor.ts +5 -0
- package/src/index.ts +2 -1
- package/src/input/BaseField.ts +42 -2
- package/src/input/BaseInput.ts +1 -1
- package/src/loader.ts +4 -0
- package/src/markdown-editor/markdown-editor.ts +5 -0
- package/src/split-button/split-button-colors.scss +9 -0
- package/src/split-button/split-button-sizes.scss +32 -5
- package/src/split-button/split-button.scss +61 -8
- package/src/split-button/split-button.ts +15 -8
- package/src/table/table.scss +57 -9
- package/src/table/table.ts +3 -1
- package/src/textarea/textarea.ts +7 -0
- package/dist/BaseField-BMumJpkW.js.map +0 -1
- package/dist/BaseInput-mWdyYv27.js.map +0 -1
- package/dist/menu-trigger-controller-DyLpTxM7.js.map +0 -1
- package/dist/relative-time-BVQXLuHm.js.map +0 -1
- package/dist/rich-text-input-DM_BOzgk.js.map +0 -1
- package/dist/strings-BJPuhKJk.js.map +0 -1
package/dist/currency-field.js
CHANGED
|
@@ -3,17 +3,17 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { s as spread } from './spread-B5cgadZl.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-CH4e9sju.js';
|
|
7
7
|
import { w as warnOnce } from './warn-once-BNxX1Y98.js';
|
|
8
|
-
import { B as BaseField } from './BaseField-
|
|
8
|
+
import { B as BaseField } from './BaseField-D8ByB0l3.js';
|
|
9
9
|
import './base-Cl6v8-BZ.js';
|
|
10
10
|
import './directive-ZPhl09Yt.js';
|
|
11
|
-
import './strings-
|
|
11
|
+
import './strings-o6v6Hrmn.js';
|
|
12
12
|
import './locale-DEsJZCQG.js';
|
|
13
|
-
import './BaseInput-
|
|
13
|
+
import './BaseInput-xCHvT4AN.js';
|
|
14
14
|
import './element-internals-QME0yEz4.js';
|
|
15
15
|
import './form-associated-BHbg72PG.js';
|
|
16
|
-
import './suggestion-controller-
|
|
16
|
+
import './suggestion-controller-7YRQqkaI.js';
|
|
17
17
|
import './ai-controller-DR_Tg0sN.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tag": "wc-ai-badge",
|
|
57
57
|
"rawTag": "ai-badge",
|
|
58
58
|
"summary": "Marks a value, draft or text as made by the assistant, says why, and can clear it in one action.",
|
|
59
|
-
"overview": "<p>The one marker for AI output in Peacock (ADR-030002). Put it beside anything the assistant\nmade until a person accepts it:</p>\n<ul>\n <li><code>suggested</code> (default): a value the person hasn't accepted, such as a field the\n assistant filled in.</li>\n <li><code>draft</code>: a record or text waiting to be confirmed, such as an incident the\n assistant prepared.</li>\n <li><code>generated</code>: read-only output, such as a summary. Shown as colored text without\n a container.</li>\n</ul>\n<p><code>reason</code> says why, in a sentence: it shows in a tooltip on hover or keyboard focus\nand is read as the badge's description. <code>dismissible</code> adds a clear button that fires\n<code>dismiss</code>; the app then removes the suggestion, discards the draft or hides the\nsummary.</p>\n<p>When AI is off for the page (<code>setPeacockAi({ enabled: false })</code>) the badge renders\nnothing, so a page that still passes AI state in never shows a stale marker.</p>\n<p>The label is always text, never only the color or the sparkle. Replace it with the default\nslot, for example \"Summary by the assistant\".</p>",
|
|
59
|
+
"overview": "<p>The one marker for AI output in Peacock (ADR-030002). Put it beside anything the assistant\nmade until a person accepts it:</p>\n<ul>\n <li><code>suggested</code> (default): a value the person hasn't accepted, such as a field the\n assistant filled in.</li>\n <li><code>draft</code>: a record or text waiting to be confirmed, such as an incident the\n assistant prepared.</li>\n <li><code>generated</code>: read-only output, such as a summary. Shown as colored text without\n a container.</li>\n</ul>\n<p><code>reason</code> says why, in a sentence: it shows in a tooltip on hover or keyboard focus\nand is read as the badge's description. <code>dismissible</code> adds a clear button that fires\n<code>dismiss</code>; the app then removes the suggestion, discards the draft or hides the\nsummary.</p>\n<p><code>icon-only</code> keeps just the sparkle where there is no room for the label, such as a\nnarrow field: the label is still read and shows in the tooltip. Fields switch to it on their\nown when they are narrow.</p>\n<p>When AI is off for the page (<code>setPeacockAi({ enabled: false })</code>) the badge renders\nnothing, so a page that still passes AI state in never shows a stale marker.</p>\n<p>The label is always text, never only the color or the sparkle. Replace it with the default\nslot, for example \"Summary by the assistant\".</p>",
|
|
60
60
|
"tags": "display, ai",
|
|
61
61
|
"slot": "- The label, instead of the default one for the kind.",
|
|
62
62
|
"csspart": "dismiss - The clear button.",
|
|
@@ -135,6 +135,15 @@
|
|
|
135
135
|
"default": "false",
|
|
136
136
|
"description": "Adds a button that clears the output in one action.",
|
|
137
137
|
"fieldName": "dismissible"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "icon-only",
|
|
141
|
+
"type": {
|
|
142
|
+
"text": "boolean"
|
|
143
|
+
},
|
|
144
|
+
"default": "false",
|
|
145
|
+
"description": "Shows only the sparkle, for tight spaces such as a narrow field. The label stays the\naccessible name and shows in the tooltip.",
|
|
146
|
+
"fieldName": "iconOnly"
|
|
138
147
|
}
|
|
139
148
|
],
|
|
140
149
|
"superclass": {
|
|
@@ -1516,6 +1525,18 @@
|
|
|
1516
1525
|
"description": "Defines the end position of the button container shape.",
|
|
1517
1526
|
"name": "--button-container-shape-end-end"
|
|
1518
1527
|
},
|
|
1528
|
+
{
|
|
1529
|
+
"description": "Inline padding of the button container, on both sides.",
|
|
1530
|
+
"name": "--button-container-padding"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"description": "Inline-start padding of the button container; overrides `--button-container-padding`.",
|
|
1534
|
+
"name": "--button-container-padding-start"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"description": "Inline-end padding of the button container; overrides `--button-container-padding`.",
|
|
1538
|
+
"name": "--button-container-padding-end"
|
|
1539
|
+
},
|
|
1519
1540
|
{
|
|
1520
1541
|
"description": "Color of the filled button container.",
|
|
1521
1542
|
"name": "--filled-button-container-color"
|
|
@@ -3744,18 +3765,83 @@
|
|
|
3744
3765
|
}
|
|
3745
3766
|
}
|
|
3746
3767
|
},
|
|
3768
|
+
{
|
|
3769
|
+
"label": "Chat Event",
|
|
3770
|
+
"tag": "wc-chat-event",
|
|
3771
|
+
"rawTag": "chat-event",
|
|
3772
|
+
"summary": "A line in a conversation for something that happened rather than something said, such as \"Alan Kay confirmed the rollback\".",
|
|
3773
|
+
"overview": "<p>Goes in <code>wc-chat-thread</code> between <code>wc-chat-message</code>s. It records what\nhappened to the conversation's subject: a person confirmed a draft, a record changed state,\nsomeone joined. The content is the sentence; <code>icon</code> sets the glyph before it, and\n<code>datetime</code> adds the time after it.</p>\n<p>Use a message for anything someone wrote, and an event for anything the platform recorded.\nEvents are not announced as they arrive; the record they describe is what changed.</p>",
|
|
3774
|
+
"tags": "display, ai",
|
|
3775
|
+
"slot": "- What happened. Bold the name of who did it with `<strong>`.",
|
|
3776
|
+
"csspart": "event - The line.",
|
|
3777
|
+
"example": "```html\n<wc-chat-event icon=\"verified\" datetime=\"2026-11-08T10:07:00\">\n <strong>Alan Kay</strong> confirmed the rollback · policy NET-04\n</wc-chat-event>\n```",
|
|
3778
|
+
"customElement": {
|
|
3779
|
+
"kind": "class",
|
|
3780
|
+
"description": "",
|
|
3781
|
+
"cssParts": [
|
|
3782
|
+
{
|
|
3783
|
+
"description": "The line.",
|
|
3784
|
+
"name": "event"
|
|
3785
|
+
}
|
|
3786
|
+
],
|
|
3787
|
+
"slots": [
|
|
3788
|
+
{
|
|
3789
|
+
"description": "What happened. Bold the name of who did it with `<strong>`.",
|
|
3790
|
+
"name": ""
|
|
3791
|
+
}
|
|
3792
|
+
],
|
|
3793
|
+
"attributes": [
|
|
3794
|
+
{
|
|
3795
|
+
"name": "icon",
|
|
3796
|
+
"type": {
|
|
3797
|
+
"text": "string"
|
|
3798
|
+
},
|
|
3799
|
+
"default": "''",
|
|
3800
|
+
"description": "Material Symbols name of the glyph before the text, such as `verified`.",
|
|
3801
|
+
"fieldName": "icon"
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"name": "datetime",
|
|
3805
|
+
"type": {
|
|
3806
|
+
"text": "string"
|
|
3807
|
+
},
|
|
3808
|
+
"default": "''",
|
|
3809
|
+
"description": "When it happened, as an ISO 8601 date-time; shown as a time after the text.",
|
|
3810
|
+
"fieldName": "datetime"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"name": "locale",
|
|
3814
|
+
"type": {
|
|
3815
|
+
"text": "string | undefined"
|
|
3816
|
+
},
|
|
3817
|
+
"description": "Locale for the time; defaults to the nearest `lang`, else the browser's.",
|
|
3818
|
+
"fieldName": "locale"
|
|
3819
|
+
}
|
|
3820
|
+
],
|
|
3821
|
+
"superclass": {
|
|
3822
|
+
"name": "LitElement",
|
|
3823
|
+
"package": "lit"
|
|
3824
|
+
},
|
|
3825
|
+
"tagName": "wc-chat-event",
|
|
3826
|
+
"customElement": true,
|
|
3827
|
+
"rawTag": {
|
|
3828
|
+
"name": "chat-event",
|
|
3829
|
+
"description": ""
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
},
|
|
3747
3833
|
{
|
|
3748
3834
|
"label": "Chat Message",
|
|
3749
3835
|
"tag": "wc-chat-message",
|
|
3750
3836
|
"rawTag": "chat-message",
|
|
3751
|
-
"summary": "One turn of a conversation: what the person asked, or the assistant's answer with its steps, drafts and sources.",
|
|
3752
|
-
"overview": "<p>Put messages in <code>wc-chat-thread</code>. <code>from=\"user\"</code> shows the person's text in\na bubble at the end of the line; <code>from=\"assistant\"</code> (default) shows the answer as\nformatted text.
|
|
3837
|
+
"summary": "One turn of a conversation: what the person asked, another person's message, or the assistant's answer with its steps, drafts and sources.",
|
|
3838
|
+
"overview": "<p>Put messages in <code>wc-chat-thread</code>. <code>from=\"user\"</code> shows the person's text in\na bubble at the end of the line; <code>from=\"assistant\"</code> (default) shows the answer as\nformatted text; <code>from=\"participant\"</code> shows another person's text, such as a caller's\nor a teammate's, in a quiet bubble at the start of the line, with their name above it. All take\nMarkdown in <code>value</code>, rendered by <code>wc-markdown</code>, so mentions and\n<code>[1](cite:id)</code> citations work; give the sources in <code>citations</code>.</p>\n<p><strong>Who and when.</strong> A line above the message names <code>author</code> and adds\n<code>channel</code> (\"via Teams\") and the time of <code>datetime</code>. It shows for a\nparticipant, whenever <code>datetime</code> or <code>channel</code> is set, and when the\n<code>meta</code> slot has content, such as a \"Work note\" tag. In a one-to-one conversation with\nthe assistant, leave them out and the messages stay bare.</p>\n<p>While an answer arrives, set <code>streaming</code> and keep replacing <code>value</code>. Before\nthe first words, a typing indicator shows <code>status</code>, such as \"Looking up your laptop…\".\nPut <code>wc-assistant-steps</code> in the <code>steps</code> slot, above the text, and\n<code>wc-draft-card</code>s in the default slot, below it.</p>\n<p>A finished answer has actions: copy, <strong>Try again</strong> (<code>regenerate</code>) and\ngood or bad (<code>feedback</code>, which toggles <code>feedback</code>). <code>hide-actions</code>\nremoves them. With <code>error</code> the message says the answer failed, with Try again.</p>\n<p><strong>Quick replies.</strong> <code>suggestions</code> shows the likely next moves as chips\nunder the message (\"Promote to major incident\", \"Why P2?\"). Picking one fires\n<code>suggestion-select</code>; the app sends it and usually clears the list.</p>",
|
|
3753
3839
|
"tags": "display, ai",
|
|
3754
|
-
"slot": "footer - Below everything
|
|
3755
|
-
"csspart": "
|
|
3756
|
-
"cssprop": "--chat-message-
|
|
3757
|
-
"fires": "
|
|
3758
|
-
"example": "```html\n<wc-chat-message from=\"
|
|
3840
|
+
"slot": "footer - Below everything.",
|
|
3841
|
+
"csspart": "suggestions - The quick replies.",
|
|
3842
|
+
"cssprop": "--chat-message-participant-color - Text color of a participant's bubble.",
|
|
3843
|
+
"fires": "suggestion-select - The person picked a quick reply.",
|
|
3844
|
+
"example": "```html\n<wc-chat-message from=\"participant\" author=\"Priya Shah\" channel=\"Teams\"\n datetime=\"2026-11-08T09:41:00\" value=\"VPN keeps dropping every ten minutes.\"></wc-chat-message>\n```",
|
|
3759
3845
|
"customElement": {
|
|
3760
3846
|
"kind": "class",
|
|
3761
3847
|
"description": "",
|
|
@@ -3767,11 +3853,23 @@
|
|
|
3767
3853
|
{
|
|
3768
3854
|
"description": "Text color of the person's bubble.",
|
|
3769
3855
|
"name": "--chat-message-bubble-color"
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"description": "Background of a participant's bubble.",
|
|
3859
|
+
"name": "--chat-message-participant-background"
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"description": "Text color of a participant's bubble.",
|
|
3863
|
+
"name": "--chat-message-participant-color"
|
|
3770
3864
|
}
|
|
3771
3865
|
],
|
|
3772
3866
|
"cssParts": [
|
|
3773
3867
|
{
|
|
3774
|
-
"description": "The
|
|
3868
|
+
"description": "The line above the message with the author, channel and time.",
|
|
3869
|
+
"name": "header"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"description": "The text bubble of the person or a participant.",
|
|
3775
3873
|
"name": "bubble"
|
|
3776
3874
|
},
|
|
3777
3875
|
{
|
|
@@ -3781,6 +3879,10 @@
|
|
|
3781
3879
|
{
|
|
3782
3880
|
"description": "The answer's actions.",
|
|
3783
3881
|
"name": "actions"
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"description": "The quick replies.",
|
|
3885
|
+
"name": "suggestions"
|
|
3784
3886
|
}
|
|
3785
3887
|
],
|
|
3786
3888
|
"slots": [
|
|
@@ -3797,11 +3899,22 @@
|
|
|
3797
3899
|
"name": "avatar"
|
|
3798
3900
|
},
|
|
3799
3901
|
{
|
|
3800
|
-
"description": "
|
|
3902
|
+
"description": "At the end of the line above the message, such as a \"Work note\" `wc-tag`.",
|
|
3903
|
+
"name": "meta"
|
|
3904
|
+
},
|
|
3905
|
+
{
|
|
3906
|
+
"description": "Below everything.",
|
|
3801
3907
|
"name": "footer"
|
|
3802
3908
|
}
|
|
3803
3909
|
],
|
|
3804
3910
|
"events": [
|
|
3911
|
+
{
|
|
3912
|
+
"name": "suggestion-select",
|
|
3913
|
+
"type": {
|
|
3914
|
+
"text": "CustomEvent<ChatMessageSuggestionDetail>"
|
|
3915
|
+
},
|
|
3916
|
+
"description": "The person picked a quick reply."
|
|
3917
|
+
},
|
|
3805
3918
|
{
|
|
3806
3919
|
"name": "feedback",
|
|
3807
3920
|
"type": {
|
|
@@ -3824,10 +3937,10 @@
|
|
|
3824
3937
|
"text": "ChatMessageFrom"
|
|
3825
3938
|
},
|
|
3826
3939
|
"default": "'assistant'",
|
|
3827
|
-
"description": "Who wrote it: the person (`user`)
|
|
3940
|
+
"description": "Who wrote it: the person (`user`), the assistant (`assistant`, default) or another person (`participant`).",
|
|
3828
3941
|
"fieldName": "from",
|
|
3829
3942
|
"expandedType": {
|
|
3830
|
-
"text": "'user' | 'assistant'"
|
|
3943
|
+
"text": "'user' | 'assistant' | 'participant'"
|
|
3831
3944
|
}
|
|
3832
3945
|
},
|
|
3833
3946
|
{
|
|
@@ -3836,9 +3949,27 @@
|
|
|
3836
3949
|
"text": "string"
|
|
3837
3950
|
},
|
|
3838
3951
|
"default": "''",
|
|
3839
|
-
"description": "Name read before
|
|
3952
|
+
"description": "Name shown above a participant's message and read before every message; defaults to \"You\", \"Assistant\" or \"Participant\".",
|
|
3840
3953
|
"fieldName": "author"
|
|
3841
3954
|
},
|
|
3955
|
+
{
|
|
3956
|
+
"name": "datetime",
|
|
3957
|
+
"type": {
|
|
3958
|
+
"text": "string"
|
|
3959
|
+
},
|
|
3960
|
+
"default": "''",
|
|
3961
|
+
"description": "When it was written, as an ISO 8601 date-time; shown as a time above the message.",
|
|
3962
|
+
"fieldName": "datetime"
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
"name": "channel",
|
|
3966
|
+
"type": {
|
|
3967
|
+
"text": "string"
|
|
3968
|
+
},
|
|
3969
|
+
"default": "''",
|
|
3970
|
+
"description": "Where it came from, such as \"Teams\"; shown as \"via Teams\" above the message.",
|
|
3971
|
+
"fieldName": "channel"
|
|
3972
|
+
},
|
|
3842
3973
|
{
|
|
3843
3974
|
"name": "value",
|
|
3844
3975
|
"type": {
|
|
@@ -3913,6 +4044,14 @@
|
|
|
3913
4044
|
"default": "false",
|
|
3914
4045
|
"description": "Removes copy, Try again and the rating from an answer.",
|
|
3915
4046
|
"fieldName": "hideActions"
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"name": "locale",
|
|
4050
|
+
"type": {
|
|
4051
|
+
"text": "string | undefined"
|
|
4052
|
+
},
|
|
4053
|
+
"description": "Locale for the time; defaults to the nearest `lang`, else the browser's.",
|
|
4054
|
+
"fieldName": "locale"
|
|
3916
4055
|
}
|
|
3917
4056
|
],
|
|
3918
4057
|
"superclass": {
|
|
@@ -3932,7 +4071,7 @@
|
|
|
3932
4071
|
"tag": "wc-chat-thread",
|
|
3933
4072
|
"rawTag": "chat-thread",
|
|
3934
4073
|
"summary": "The scrolling log of a conversation: keeps the latest message in view and announces finished answers.",
|
|
3935
|
-
"overview": "<p>Holds <code>wc-chat-message</code>s, oldest first. It fills its container and scrolls; while\nthe person reads the end, new messages and growing answers stay in view. Scrolling up stops that,\nand a <strong>Jump to latest</strong> button appears.</p>\n<p>It is a log (<code>role=\"log\"</code>), but not a live region of its own: streaming text would be\nread word by word. Instead, an assistant answer is announced once
|
|
4074
|
+
"overview": "<p>Holds <code>wc-chat-message</code>s, oldest first, with <code>wc-chat-event</code> lines between\nthem for what happened along the way. It fills its container and scrolls; while\nthe person reads the end, new messages and growing answers stay in view. Scrolling up stops that,\nand a <strong>Jump to latest</strong> button appears.</p>\n<p>It is a log (<code>role=\"log\"</code>), but not a live region of its own: streaming text would be\nread word by word. Instead, an assistant answer or a participant's message is announced once,\nwhen it is complete (its <code>streaming</code> turns off), as \"Assistant: …\".</p>\n<p>Before the first message it shows the <code>empty</code> slot and <code>suggestions</code>: prompt\nstarters as chips that fire <code>suggestion-select</code>.</p>",
|
|
3936
4075
|
"tags": "display, ai",
|
|
3937
4076
|
"slot": "empty - Shown while there are no messages, above the suggestions.",
|
|
3938
4077
|
"csspart": "jump - The Jump to latest button.",
|
|
@@ -3964,7 +4103,7 @@
|
|
|
3964
4103
|
],
|
|
3965
4104
|
"slots": [
|
|
3966
4105
|
{
|
|
3967
|
-
"description": "The `wc-chat-message`s.",
|
|
4106
|
+
"description": "The `wc-chat-message`s and `wc-chat-event`s.",
|
|
3968
4107
|
"name": ""
|
|
3969
4108
|
},
|
|
3970
4109
|
{
|
|
@@ -6661,6 +6800,19 @@
|
|
|
6661
6800
|
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
6662
6801
|
}
|
|
6663
6802
|
},
|
|
6803
|
+
{
|
|
6804
|
+
"name": "show-readonly-badge",
|
|
6805
|
+
"type": {
|
|
6806
|
+
"text": "boolean"
|
|
6807
|
+
},
|
|
6808
|
+
"default": "false",
|
|
6809
|
+
"description": "Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`.",
|
|
6810
|
+
"fieldName": "showReadonlyBadge",
|
|
6811
|
+
"inheritedFrom": {
|
|
6812
|
+
"name": "RichTextInput",
|
|
6813
|
+
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
6814
|
+
}
|
|
6815
|
+
},
|
|
6664
6816
|
{
|
|
6665
6817
|
"name": "maxlength",
|
|
6666
6818
|
"type": {
|
|
@@ -12197,7 +12349,7 @@
|
|
|
12197
12349
|
"tag": "wc-html-editor",
|
|
12198
12350
|
"rawTag": "html-editor",
|
|
12199
12351
|
"summary": "A rich-text field whose value is HTML, with the same toolbar and mentions as the Markdown editor.",
|
|
12200
|
-
"overview": "<p>Use it where the value has to be HTML, such as an email body or a CMS field. It works like\n<code>wc-markdown-editor</code>: a toolbar, a selection bubble, a slash menu, a block handle,\nmentions and a <strong>View source</strong> button that shows the HTML in\n<code>wc-code-editor</code>. HTML can store underline and resizable table columns, which\nMarkdown cannot, so the HTML editor offers them.</p>\n\n<p>Get and set the HTML through <code>value</code>; an empty editor has the value\n<code>''</code>. Only what the editor supports is kept: other tags, attributes and scripts in a\nvalue are dropped when it loads.</p>\n\n<p><strong>Mentions.</strong> Typing a character from <code>triggers</code> (<code>@</code> by\ndefault) fires <code>search</code> with <code>{ trigger, query }</code>; answer by setting\n<code>suggestions</code>. A mention is stored as\n<code><span data-type=\"mention\" data-id=\"usr_142\" data-label=\"Ana Lima\">@Ana Lima</span></code>.</p>\n\n<p>The editor is form-associated, fires <code>input</code> and <code>change</code> with\n<code>{ value }</code>, and supports <code>required</code>, <code>maxlength</code>,\n<code>rows</code> and <code>max-rows</code>, as the Markdown editor does.</p>",
|
|
12352
|
+
"overview": "<p>Use it where the value has to be HTML, such as an email body or a CMS field. It works like\n<code>wc-markdown-editor</code>: a toolbar, a selection bubble, a slash menu, a block handle,\nmentions and a <strong>View source</strong> button that shows the HTML in\n<code>wc-code-editor</code>. HTML can store underline and resizable table columns, which\nMarkdown cannot, so the HTML editor offers them.</p>\n\n<p>Get and set the HTML through <code>value</code>; an empty editor has the value\n<code>''</code>. Only what the editor supports is kept: other tags, attributes and scripts in a\nvalue are dropped when it loads.</p>\n\n<p><strong>Mentions.</strong> Typing a character from <code>triggers</code> (<code>@</code> by\ndefault) fires <code>search</code> with <code>{ trigger, query }</code>; answer by setting\n<code>suggestions</code>. A mention is stored as\n<code><span data-type=\"mention\" data-id=\"usr_142\" data-label=\"Ana Lima\">@Ana Lima</span></code>.</p>\n\n<p>The editor is form-associated, fires <code>input</code> and <code>change</code> with\n<code>{ value }</code>, and supports <code>required</code>, <code>maxlength</code>,\n<code>rows</code> and <code>max-rows</code>, as the Markdown editor does.</p>\n\n<p><strong>Read-only and disabled.</strong> <code>readonly</code> keeps the text at full contrast\nand leaves only <strong>View source</strong> in the toolbar, which shows the HTML read-only.\n<code>disabled</code> dims the toolbar and the text. <code>show-readonly-badge</code> adds a\nlock badge to the toolbar in either state.</p>",
|
|
12201
12353
|
"cssprop": "--mention-list-max-height - Maximum height of the mention suggestion list.",
|
|
12202
12354
|
"fires": "mention - Dispatched when a suggestion is inserted as a mention.",
|
|
12203
12355
|
"example": "```html\n<wc-html-editor\n label=\"Email body\"\n value=\"<p>Hello <strong>world</strong></p>\"\n></wc-html-editor>\n```",
|
|
@@ -12438,6 +12590,19 @@
|
|
|
12438
12590
|
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
12439
12591
|
}
|
|
12440
12592
|
},
|
|
12593
|
+
{
|
|
12594
|
+
"name": "show-readonly-badge",
|
|
12595
|
+
"type": {
|
|
12596
|
+
"text": "boolean"
|
|
12597
|
+
},
|
|
12598
|
+
"default": "false",
|
|
12599
|
+
"description": "Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`.",
|
|
12600
|
+
"fieldName": "showReadonlyBadge",
|
|
12601
|
+
"inheritedFrom": {
|
|
12602
|
+
"name": "RichTextInput",
|
|
12603
|
+
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
12604
|
+
}
|
|
12605
|
+
},
|
|
12441
12606
|
{
|
|
12442
12607
|
"name": "maxlength",
|
|
12443
12608
|
"type": {
|
|
@@ -15106,7 +15271,7 @@
|
|
|
15106
15271
|
"tag": "wc-markdown-editor",
|
|
15107
15272
|
"rawTag": "markdown-editor",
|
|
15108
15273
|
"summary": "A rich-text field whose value is Markdown: people format text as they type, and can view the Markdown source.",
|
|
15109
|
-
"overview": "<p>Use it where a form needs more than a textarea, such as a description, notes or a release\nnote. People edit formatted text directly; the value is Markdown, so it stores as plain text and\nshows the same way in <code>wc-markdown</code>.</p>\n\n<ul>\n<li><strong>Toolbar.</strong> Text style, bold, italic, strikethrough, inline code, link, lists,\nchecklist, quote, code block, table, divider and mention. While the caret is in a table, a\n<em>Table</em> menu adds and removes rows and columns. <code>hide-toolbar</code> hides it.</li>\n<li><strong>Selection bubble.</strong> Selecting text shows the inline formats and link.</li>\n<li><strong>Slash menu.</strong> Typing <code>/</code> inserts a block; Markdown shortcuts such\nas <code>## </code>, <code>- </code> and <code>**bold**</code> work too.</li>\n<li><strong>Block handle.</strong> Hovering a block shows a handle to drag it and a + to insert\none below.</li>\n<li><strong>View source.</strong> The last toolbar button shows the Markdown, editable, in\n<code>wc-code-editor</code>.</li>\n</ul>\n\n<p><strong>Mentions.</strong> Typing a character from <code>triggers</code> (<code>@</code> by\ndefault) fires <code>search</code> with <code>{ trigger, query }</code>; answer by setting\n<code>suggestions</code>, and <code>suggestions-loading</code> while you look. A chosen mention is\nstored as <code>[@Ana Lima](mention:usr_142)</code> and fires <code>mention</code>. Set\n<code>triggers=\"\"</code> to turn mentions off.</p>\n\n<p>The editor is form-associated. It fires <code>input</code> with <code>{ value }</code> as the\ncontent changes (after <code>debounce</code> milliseconds without typing) and <code>change</code>\nwhen focus leaves after an edit. <code>required</code> blocks an empty submit, and\n<code>maxlength</code> limits the number of characters and shows a count.</p>\n\n<p><code>rows</code> sets the height of the empty editor in lines; it grows with the text, up to\n<code>max-rows</code> if set, and then scrolls.</p>",
|
|
15274
|
+
"overview": "<p>Use it where a form needs more than a textarea, such as a description, notes or a release\nnote. People edit formatted text directly; the value is Markdown, so it stores as plain text and\nshows the same way in <code>wc-markdown</code>.</p>\n\n<ul>\n<li><strong>Toolbar.</strong> Text style, bold, italic, strikethrough, inline code, link, lists,\nchecklist, quote, code block, table, divider and mention. While the caret is in a table, a\n<em>Table</em> menu adds and removes rows and columns. <code>hide-toolbar</code> hides it.</li>\n<li><strong>Selection bubble.</strong> Selecting text shows the inline formats and link.</li>\n<li><strong>Slash menu.</strong> Typing <code>/</code> inserts a block; Markdown shortcuts such\nas <code>## </code>, <code>- </code> and <code>**bold**</code> work too.</li>\n<li><strong>Block handle.</strong> Hovering a block shows a handle to drag it and a + to insert\none below.</li>\n<li><strong>View source.</strong> The last toolbar button shows the Markdown, editable, in\n<code>wc-code-editor</code>.</li>\n</ul>\n\n<p><strong>Mentions.</strong> Typing a character from <code>triggers</code> (<code>@</code> by\ndefault) fires <code>search</code> with <code>{ trigger, query }</code>; answer by setting\n<code>suggestions</code>, and <code>suggestions-loading</code> while you look. A chosen mention is\nstored as <code>[@Ana Lima](mention:usr_142)</code> and fires <code>mention</code>. Set\n<code>triggers=\"\"</code> to turn mentions off.</p>\n\n<p>The editor is form-associated. It fires <code>input</code> with <code>{ value }</code> as the\ncontent changes (after <code>debounce</code> milliseconds without typing) and <code>change</code>\nwhen focus leaves after an edit. <code>required</code> blocks an empty submit, and\n<code>maxlength</code> limits the number of characters and shows a count.</p>\n\n<p><code>rows</code> sets the height of the empty editor in lines; it grows with the text, up to\n<code>max-rows</code> if set, and then scrolls.</p>\n\n<p><strong>Read-only and disabled.</strong> <code>readonly</code> keeps the text at full contrast\nand leaves only <strong>View source</strong> in the toolbar, which shows the Markdown read-only.\n<code>disabled</code> dims the toolbar and the text. <code>show-readonly-badge</code> adds a\nlock badge to the toolbar in either state.</p>",
|
|
15110
15275
|
"cssprop": "--mention-list-max-height - Maximum height of the mention suggestion list.",
|
|
15111
15276
|
"fires": "mention - Dispatched when a suggestion is inserted as a mention.",
|
|
15112
15277
|
"example": "```html\n<wc-markdown-editor\n label=\"Description\"\n value=\"## Steps\\n\\n1. Open **billing**\"\n></wc-markdown-editor>\n```",
|
|
@@ -15347,6 +15512,19 @@
|
|
|
15347
15512
|
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
15348
15513
|
}
|
|
15349
15514
|
},
|
|
15515
|
+
{
|
|
15516
|
+
"name": "show-readonly-badge",
|
|
15517
|
+
"type": {
|
|
15518
|
+
"text": "boolean"
|
|
15519
|
+
},
|
|
15520
|
+
"default": "false",
|
|
15521
|
+
"description": "Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`.",
|
|
15522
|
+
"fieldName": "showReadonlyBadge",
|
|
15523
|
+
"inheritedFrom": {
|
|
15524
|
+
"name": "RichTextInput",
|
|
15525
|
+
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
15526
|
+
}
|
|
15527
|
+
},
|
|
15350
15528
|
{
|
|
15351
15529
|
"name": "maxlength",
|
|
15352
15530
|
"type": {
|
|
@@ -19660,6 +19838,19 @@
|
|
|
19660
19838
|
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
19661
19839
|
}
|
|
19662
19840
|
},
|
|
19841
|
+
{
|
|
19842
|
+
"name": "show-readonly-badge",
|
|
19843
|
+
"type": {
|
|
19844
|
+
"text": "boolean"
|
|
19845
|
+
},
|
|
19846
|
+
"default": "false",
|
|
19847
|
+
"description": "Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`.",
|
|
19848
|
+
"fieldName": "showReadonlyBadge",
|
|
19849
|
+
"inheritedFrom": {
|
|
19850
|
+
"name": "RichTextInput",
|
|
19851
|
+
"module": "src/__internal/rich-text/rich-text-input.ts"
|
|
19852
|
+
}
|
|
19853
|
+
},
|
|
19663
19854
|
{
|
|
19664
19855
|
"name": "maxlength",
|
|
19665
19856
|
"type": {
|
|
@@ -22740,7 +22931,7 @@
|
|
|
22740
22931
|
"rawTag": "split-button",
|
|
22741
22932
|
"summary": "A button for a default action joined to an arrow that opens a menu of related actions.",
|
|
22742
22933
|
"overview": "<p>The main button runs the default action; the arrow beside it opens a menu of related actions.</p>",
|
|
22743
|
-
"cssprop": "--
|
|
22934
|
+
"cssprop": "--elevated-split-button-label-text-color: Text color of the elevated split button label.",
|
|
22744
22935
|
"fires": "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`.",
|
|
22745
22936
|
"example": "```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```",
|
|
22746
22937
|
"tags": "controls",
|
|
@@ -22749,9 +22940,13 @@
|
|
|
22749
22940
|
"description": "",
|
|
22750
22941
|
"cssProperties": [
|
|
22751
22942
|
{
|
|
22752
|
-
"description": "
|
|
22943
|
+
"description": "Radius of the split button's outer corners. Defaults to fully round; the inner corners follow the M3 size tokens.",
|
|
22753
22944
|
"name": "--split-button-container-shape:"
|
|
22754
22945
|
},
|
|
22946
|
+
{
|
|
22947
|
+
"description": "Space between the main button and the menu button. Defaults to 2px.",
|
|
22948
|
+
"name": "--split-button-gap:"
|
|
22949
|
+
},
|
|
22755
22950
|
{
|
|
22756
22951
|
"description": "Color of the filled split button container.",
|
|
22757
22952
|
"name": "--filled-split-button-container-color:"
|
|
@@ -22775,6 +22970,14 @@
|
|
|
22775
22970
|
{
|
|
22776
22971
|
"description": "Text color of the tonal split button label.",
|
|
22777
22972
|
"name": "--tonal-split-button-label-text-color:"
|
|
22973
|
+
},
|
|
22974
|
+
{
|
|
22975
|
+
"description": "Color of the elevated split button container.",
|
|
22976
|
+
"name": "--elevated-split-button-container-color:"
|
|
22977
|
+
},
|
|
22978
|
+
{
|
|
22979
|
+
"description": "Text color of the elevated split button label.",
|
|
22980
|
+
"name": "--elevated-split-button-label-text-color:"
|
|
22778
22981
|
}
|
|
22779
22982
|
],
|
|
22780
22983
|
"events": [
|
|
@@ -22813,11 +23016,14 @@
|
|
|
22813
23016
|
{
|
|
22814
23017
|
"name": "variant",
|
|
22815
23018
|
"type": {
|
|
22816
|
-
"text": "'filled'
|
|
23019
|
+
"text": "| 'filled'\n | 'tonal'\n | 'elevated'\n | 'outlined'"
|
|
22817
23020
|
},
|
|
22818
23021
|
"default": "'filled'",
|
|
22819
|
-
"description": "The visual style of the split button.\n\nPossible variant values:\n`\"filled\"` is a filled button.\n`\"outlined\"` is an outlined button.\n`\"tonal\"` is a light color button.",
|
|
22820
|
-
"fieldName": "variant"
|
|
23022
|
+
"description": "The visual style of the split button.\n\nPossible 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.",
|
|
23023
|
+
"fieldName": "variant",
|
|
23024
|
+
"expandedType": {
|
|
23025
|
+
"text": "'filled' | 'tonal' | 'elevated' | 'outlined'"
|
|
23026
|
+
}
|
|
22821
23027
|
},
|
|
22822
23028
|
{
|
|
22823
23029
|
"name": "color",
|