@redvars/peacock 4.0.0 → 4.2.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/{BaseField-CAog9TIc.js → BaseField-_unSNU5x.js} +43 -4
- package/dist/BaseField-_unSNU5x.js.map +1 -0
- package/dist/{BaseInput-CcMfg1Y2.js → BaseInput-DtZH0fPJ.js} +7 -4
- package/dist/BaseInput-DtZH0fPJ.js.map +1 -0
- package/dist/accordion.js.map +1 -1
- 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-button-Do2TUy8M.js → base-button-BJMGMcMv.js} +3 -1
- package/dist/base-button-BJMGMcMv.js.map +1 -0
- package/dist/{base-progress-BiLlZVHJ.js → base-progress-D7Nmfh1s.js} +4 -2
- package/dist/base-progress-D7Nmfh1s.js.map +1 -0
- package/dist/bottom-sheet.js +2 -2
- package/dist/breadcrumb.js +2 -2
- package/dist/button-group.js +4 -4
- package/dist/button.js +14 -8
- package/dist/button.js.map +1 -1
- package/dist/calendar.js +2 -2
- package/dist/canvas-base-CWQ4rQ2s.js +788 -0
- package/dist/canvas-base-CWQ4rQ2s.js.map +1 -0
- package/dist/canvas-link-CtgsALq4.js +54 -0
- package/dist/canvas-link-CtgsALq4.js.map +1 -0
- package/dist/{cartesian-chart-C-f1frt0.js → cartesian-chart-CS5yRLfE.js} +3 -2
- package/dist/cartesian-chart-CS5yRLfE.js.map +1 -0
- package/dist/{cb-group-base-DeuCVx3a.js → cb-group-base-CO30uFQZ.js} +2 -2
- package/dist/{cb-group-base-DeuCVx3a.js.map → cb-group-base-CO30uFQZ.js.map} +1 -1
- package/dist/cb-group.js +3 -3
- package/dist/cb-rule.js +3 -3
- package/dist/chart-area.js +5 -4
- package/dist/chart-area.js.map +1 -1
- package/dist/chart-bar.js +5 -4
- package/dist/chart-bar.js.map +1 -1
- package/dist/chart-base-C_XKVyhf.js +833 -0
- package/dist/chart-base-C_XKVyhf.js.map +1 -0
- package/dist/chart-doughnut.js +4 -3
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-line.js +5 -4
- package/dist/chart-line.js.map +1 -1
- package/dist/chart-pie.js +4 -3
- package/dist/chart-pie.js.map +1 -1
- 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 +5 -5
- package/dist/checkbox.js +5 -5
- package/dist/chip-set.js +4 -4
- package/dist/chip.js +4 -4
- package/dist/circular-progress.js +3 -3
- package/dist/citation.js +2 -2
- package/dist/code-editor.js +6 -5
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +2 -2
- package/dist/color-field.js +6 -6
- package/dist/color-picker.js +2 -2
- package/dist/command-palette.js +2 -2
- package/dist/comment-composer.js +6 -6
- 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 +6 -6
- package/dist/custom-elements-jsdocs.json +2330 -397
- package/dist/custom-elements.json +20464 -542
- package/dist/date-field.js +7 -7
- package/dist/date-picker.js +4 -2
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-field.js +7 -7
- package/dist/datetime-field.js +7 -7
- package/dist/dependency-map-layout-5KUueabk.js +1390 -0
- package/dist/dependency-map-layout-5KUueabk.js.map +1 -0
- package/dist/dependency-map.js +1605 -0
- package/dist/dependency-map.js.map +1 -0
- package/dist/description-item.js +2 -2
- package/dist/description-list.js +2 -2
- package/dist/diagram-Va096vj9.js +2029 -0
- package/dist/diagram-Va096vj9.js.map +1 -0
- package/dist/diagram-controls.js +345 -0
- package/dist/diagram-controls.js.map +1 -0
- package/dist/diagram-minimap.js +216 -0
- package/dist/diagram-minimap.js.map +1 -0
- package/dist/diagram.js +20 -0
- package/dist/diagram.js.map +1 -0
- 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 +8 -8
- package/dist/{document-editor-BO7QPbO5.js → document-editor-Dc8JeFVB.js} +2 -2
- package/dist/{document-editor-BO7QPbO5.js.map → document-editor-Dc8JeFVB.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 +2021 -0
- package/dist/erd.js.map +1 -0
- package/dist/fab.js +4 -4
- package/dist/field.js +257 -43
- package/dist/field.js.map +1 -1
- package/dist/file-upload.js +38 -16
- package/dist/file-upload.js.map +1 -1
- package/dist/filter-bar.js +2 -2
- package/dist/flow.js +27 -970
- package/dist/flow.js.map +1 -1
- package/dist/focus-ring.js +2 -0
- package/dist/focus-ring.js.map +1 -1
- package/dist/{form-associated-D3Tn33s_.js → form-associated-BHbg72PG.js} +3 -1
- package/dist/{form-associated-D3Tn33s_.js.map → form-associated-BHbg72PG.js.map} +1 -1
- package/dist/{form-submitter-DWwv6K9-.js → form-submitter-beG1CXAn.js} +7 -1
- package/dist/{form-submitter-DWwv6K9-.js.map → form-submitter-beG1CXAn.js.map} +1 -1
- package/dist/form.js +3 -3
- package/dist/{generative-view-DmtpDobn.js → generative-view-BKlcuujw.js} +13 -13
- package/dist/generative-view-BKlcuujw.js.map +1 -0
- package/dist/generative-view.js +3 -3
- package/dist/geometry-INg82Lxq.js +305 -0
- package/dist/geometry-INg82Lxq.js.map +1 -0
- package/dist/history-YbTSQZHj.js +45 -0
- package/dist/history-YbTSQZHj.js.map +1 -0
- package/dist/host-CZK7xhzh.js +40 -0
- package/dist/host-CZK7xhzh.js.map +1 -0
- package/dist/html-editor.js +6 -6
- package/dist/{hyperlink-DhE9RlVS.js → hyperlink-DycWPKwU.js} +10 -1
- package/dist/hyperlink-DycWPKwU.js.map +1 -0
- package/dist/{i18n-controller-urcQKYGe.js → i18n-controller-DJHsE1YH.js} +2 -2
- package/dist/{i18n-controller-urcQKYGe.js.map → i18n-controller-DJHsE1YH.js.map} +1 -1
- package/dist/icon-button.js +11 -9
- package/dist/icon-button.js.map +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +42 -22
- package/dist/index.js.map +1 -1
- package/dist/inline-edit.js +2 -2
- package/dist/input.js +5 -5
- 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 +9 -7
- package/dist/link-button.js.map +1 -1
- package/dist/list-item.js +2 -2
- package/dist/list.js +2 -2
- package/dist/listbox.js +4 -4
- package/dist/loader-full.js +17 -16
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +51 -18
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +6 -6
- package/dist/markers-BFmh1OCz.js +46 -0
- package/dist/markers-BFmh1OCz.js.map +1 -0
- package/dist/measure-controller-Dmc5hZKg.js +89 -0
- package/dist/measure-controller-Dmc5hZKg.js.map +1 -0
- package/dist/mention-input.js +7 -6
- package/dist/mention-input.js.map +1 -1
- package/dist/menu-item.js +3 -2
- package/dist/menu-item.js.map +1 -1
- 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/menu.js +2 -2
- 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 +7 -6
- package/dist/number-field.js.map +1 -1
- package/dist/option.js +2 -2
- package/dist/page-header.js +2 -2
- package/dist/pagination.js +2 -2
- package/dist/password-field.js +6 -6
- package/dist/password-rules.js +2 -2
- package/dist/phone-field.js +6 -6
- package/dist/{picker-field-B4DtcJfL.js → picker-field-CUI05sWc.js} +3 -3
- package/dist/{picker-field-B4DtcJfL.js.map → picker-field-CUI05sWc.js.map} +1 -1
- package/dist/pin-input.js +6 -6
- package/dist/presence-indicator.js +2 -2
- package/dist/prompt-input.js +6 -6
- package/dist/radio-group.js +2 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/radio.js +6 -6
- package/dist/radio.js.map +1 -1
- package/dist/rating.js +6 -5
- package/dist/rating.js.map +1 -1
- 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-DLICqof1.js → rich-text-input-N_hqnXej.js} +3 -3
- package/dist/{rich-text-input-DLICqof1.js.map → rich-text-input-N_hqnXej.js.map} +1 -1
- package/dist/ripple.js +2 -0
- package/dist/ripple.js.map +1 -1
- package/dist/{schema-hMt-NRLk.js → schema-Dy0z-80u.js} +2 -2
- package/dist/{schema-hMt-NRLk.js.map → schema-Dy0z-80u.js.map} +1 -1
- package/dist/search.js +5 -5
- package/dist/segmented-button-group.js +1 -1
- package/dist/select.js +8 -8
- package/dist/side-sheet.js +2 -2
- package/dist/signature-pad.js +6 -5
- package/dist/signature-pad.js.map +1 -1
- package/dist/slider.js +6 -5
- package/dist/slider.js.map +1 -1
- 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/diagram/canvas-base.d.ts +105 -0
- package/dist/src/__internal/diagram/canvas-link.d.ts +21 -0
- package/dist/src/__internal/diagram/geometry.d.ts +49 -0
- package/dist/src/__internal/diagram/history.d.ts +17 -0
- package/dist/src/__internal/diagram/host.d.ts +45 -0
- package/dist/src/__internal/diagram/markers.d.ts +16 -0
- package/dist/src/__internal/diagram/measure-controller.d.ts +32 -0
- package/dist/src/__internal/diagram/motion.d.ts +22 -0
- package/dist/src/__internal/diagram/selection.d.ts +20 -0
- package/dist/src/__internal/diagram/types.d.ts +39 -0
- package/dist/src/__internal/diagram/viewport-controller.d.ts +89 -0
- package/dist/src/__internal/i18n/strings.d.ts +155 -0
- package/dist/src/__internal/menu-trigger-controller.d.ts +11 -8
- package/dist/src/__internal/toggle-base.d.ts +8 -0
- package/dist/src/__internal/utils/deprecate.d.ts +3 -3
- package/dist/src/__internal/utils/relative-time.d.ts +5 -0
- package/dist/src/accordion/accordion.d.ts +1 -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/code-editor/code-editor.d.ts +1 -0
- package/dist/src/date-picker/date-picker.d.ts +2 -0
- package/dist/src/dependency-map/dependency-map-layout.d.ts +48 -0
- package/dist/src/dependency-map/dependency-map.d.ts +241 -0
- package/dist/src/dependency-map/index.d.ts +2 -0
- package/dist/src/diagram/diagram.d.ts +300 -0
- package/dist/src/diagram/flow.d.ts +53 -0
- package/dist/src/diagram/index.d.ts +4 -0
- package/dist/src/diagram-controls/diagram-controls.d.ts +46 -0
- package/dist/src/diagram-controls/index.d.ts +1 -0
- package/dist/src/diagram-minimap/diagram-minimap.d.ts +39 -0
- package/dist/src/diagram-minimap/index.d.ts +1 -0
- package/dist/src/erd/erd-layout.d.ts +27 -0
- package/dist/src/erd/erd.d.ts +266 -0
- package/dist/src/erd/index.d.ts +2 -0
- package/dist/src/field/field.d.ts +38 -1
- package/dist/src/file-upload/file-upload.d.ts +3 -1
- package/dist/src/focus-ring/focus-ring.d.ts +2 -0
- package/dist/src/index.d.ts +17 -4
- package/dist/src/input/BaseField.d.ts +15 -1
- package/dist/src/input/BaseInput.d.ts +4 -0
- package/dist/src/menu/menu-item/menu-item.d.ts +1 -0
- package/dist/src/number-field/number-field.d.ts +4 -0
- package/dist/src/progress/base-progress.d.ts +3 -0
- package/dist/src/radio/radio-group.d.ts +1 -0
- package/dist/src/rating/rating.d.ts +1 -0
- package/dist/src/ripple/ripple.d.ts +2 -0
- package/dist/src/signature-pad/signature-pad.d.ts +1 -0
- package/dist/src/slider/slider.d.ts +1 -0
- package/dist/src/split-button/split-button.d.ts +7 -2
- package/dist/src/switch/switch.d.ts +1 -0
- package/dist/src/tabs/tab.d.ts +2 -0
- package/dist/src/tabs/tabs.d.ts +1 -0
- package/dist/src/textarea/textarea.d.ts +3 -0
- package/dist/src/time-picker/time-picker.d.ts +2 -0
- package/dist/src/transfer-list/transfer-list.d.ts +1 -0
- package/dist/src/tree-chart/index.d.ts +2 -0
- package/dist/src/tree-chart/tree-chart-layout.d.ts +49 -0
- package/dist/src/tree-chart/tree-chart.d.ts +221 -0
- package/dist/src/workflow/index.d.ts +2 -0
- package/dist/src/workflow/workflow-format.d.ts +5 -0
- package/dist/src/workflow/workflow-model.d.ts +194 -0
- package/dist/src/workflow/workflow.d.ts +313 -0
- package/dist/src/workflow-timeline/index.d.ts +1 -0
- package/dist/src/workflow-timeline/workflow-timeline.d.ts +41 -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-DmbqMTfs.js → strings-DnYjGbbc.js} +169 -1
- package/dist/{strings-DmbqMTfs.js.map → strings-DnYjGbbc.js.map} +1 -1
- package/dist/sub-menu.js +2 -2
- 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 +6 -5
- package/dist/switch.js.map +1 -1
- package/dist/tab.js +1 -0
- package/dist/tab.js.map +1 -1
- package/dist/table.js +50 -11
- package/dist/table.js.map +1 -1
- package/dist/tabs.js +1 -0
- package/dist/tabs.js.map +1 -1
- package/dist/test/diagram-controls.test.d.ts +1 -0
- package/dist/test/diagram-geometry.test.d.ts +1 -0
- package/dist/test/diagram.test.d.ts +1 -0
- package/dist/test/erd.test.d.ts +1 -0
- package/dist/test/toggle-label.test.d.ts +1 -0
- package/dist/test/tree-chart.test.d.ts +1 -0
- package/dist/test/workflow-debug.test.d.ts +1 -0
- package/dist/test/workflow.test.d.ts +1 -0
- package/dist/textarea.js +13 -6
- package/dist/textarea.js.map +1 -1
- package/dist/time-field.js +7 -7
- package/dist/time-picker.js +4 -2
- package/dist/time-picker.js.map +1 -1
- package/dist/timeline-item.js +2 -2
- package/dist/timeline.js +2 -2
- package/dist/{toggle-base-BQO5pjrU.js → toggle-base-CXmFSp3b.js} +19 -3
- package/dist/toggle-base-CXmFSp3b.js.map +1 -0
- package/dist/tour.js +2 -2
- package/dist/transfer-list.js +6 -5
- package/dist/transfer-list.js.map +1 -1
- package/dist/{chart-base-B-gOg2Di.js → transform-CxeQFXXB.js} +9 -839
- package/dist/transform-CxeQFXXB.js.map +1 -0
- package/dist/tree-chart.js +1986 -0
- package/dist/tree-chart.js.map +1 -0
- 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 +6 -6
- package/dist/user-menu.js +3 -3
- package/dist/virtual-list.js +2 -2
- package/dist/workflow-format-BsyveyeC.js +34 -0
- package/dist/workflow-format-BsyveyeC.js.map +1 -0
- package/dist/workflow-model-CauduOG2.js +330 -0
- package/dist/workflow-model-CauduOG2.js.map +1 -0
- package/dist/workflow-timeline.js +354 -0
- package/dist/workflow-timeline.js.map +1 -0
- package/dist/workflow.js +3337 -0
- package/dist/workflow.js.map +1 -0
- package/dist/workspace-switcher.js +3 -3
- package/package.json +1 -1
- package/readme.md +44 -2
- package/src/LoaderUtils.ts +9 -2
- package/src/__internal/ai/suggestion-controller.ts +3 -1
- package/src/__internal/diagram/canvas-base.ts +410 -0
- package/src/__internal/diagram/canvas-link.ts +66 -0
- package/src/__internal/diagram/geometry.ts +372 -0
- package/src/__internal/diagram/history.ts +49 -0
- package/src/__internal/diagram/host.ts +76 -0
- package/src/__internal/diagram/markers.ts +56 -0
- package/src/__internal/diagram/measure-controller.ts +104 -0
- package/src/__internal/diagram/motion.ts +89 -0
- package/src/__internal/diagram/selection.ts +69 -0
- package/src/__internal/diagram/types.ts +56 -0
- package/src/__internal/diagram/viewport-controller.ts +494 -0
- package/src/__internal/i18n/strings.ts +207 -0
- package/src/__internal/menu-trigger-controller.ts +11 -15
- package/src/__internal/mixins/field.ts +3 -0
- package/src/__internal/mixins/form-associated.ts +2 -0
- package/src/__internal/mixins/form-submitter.ts +6 -0
- package/src/__internal/mixins/hyperlink.ts +10 -0
- package/src/__internal/toggle-base.ts +16 -0
- package/src/__internal/utils/deprecate.ts +5 -4
- package/src/__internal/utils/relative-time.ts +20 -0
- package/src/accordion/accordion.ts +1 -0
- package/src/ai-badge/ai-badge.scss +8 -0
- package/src/ai-badge/ai-badge.ts +21 -4
- package/src/button/base-button/base-button.ts +2 -0
- 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/code-editor/code-editor.ts +1 -0
- package/src/date-picker/date-picker.ts +2 -0
- package/src/dependency-map/dependency-map-layout.ts +505 -0
- package/src/dependency-map/dependency-map.scss +626 -0
- package/src/dependency-map/dependency-map.ts +1280 -0
- package/src/dependency-map/index.ts +16 -0
- package/src/diagram/diagram.scss +513 -0
- package/src/diagram/diagram.ts +1852 -0
- package/src/diagram/flow.ts +81 -0
- package/src/diagram/index.ts +44 -0
- package/src/diagram-controls/diagram-controls.scss +68 -0
- package/src/diagram-controls/diagram-controls.ts +255 -0
- package/src/diagram-controls/index.ts +1 -0
- package/src/diagram-minimap/diagram-minimap.scss +41 -0
- package/src/diagram-minimap/diagram-minimap.ts +149 -0
- package/src/diagram-minimap/index.ts +1 -0
- package/src/draft-card/draft-card.scss +16 -2
- package/src/dropdown-button/dropdown-button.ts +2 -1
- package/src/erd/erd-layout.ts +92 -0
- package/src/erd/erd.scss +636 -0
- package/src/erd/erd.ts +1728 -0
- package/src/erd/index.ts +17 -0
- package/src/field/field.scss +197 -23
- package/src/field/field.ts +109 -16
- package/src/file-upload/file-upload.scss +37 -10
- package/src/file-upload/file-upload.ts +3 -1
- package/src/focus-ring/focus-ring.ts +2 -0
- package/src/generative-view/catalog.generated.ts +12 -11
- package/src/index.ts +123 -3
- package/src/input/BaseField.ts +45 -2
- package/src/input/BaseInput.ts +4 -1
- package/src/loader.ts +29 -0
- package/src/mention-input/mention-input.scss +2 -0
- package/src/menu/menu-item/menu-item.ts +1 -0
- package/src/number-field/number-field.ts +4 -0
- package/src/progress/base-progress.ts +3 -0
- package/src/radio/radio-group.ts +1 -0
- package/src/radio/radio.ts +1 -1
- package/src/rating/rating.ts +1 -0
- package/src/ripple/ripple.ts +2 -0
- package/src/signature-pad/signature-pad.ts +1 -0
- package/src/slider/slider.ts +1 -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/switch/switch.ts +1 -0
- package/src/table/table.scss +57 -9
- package/src/table/table.ts +3 -1
- package/src/tabs/tab.ts +2 -0
- package/src/tabs/tabs.ts +1 -0
- package/src/textarea/textarea.scss +2 -0
- package/src/textarea/textarea.ts +8 -0
- package/src/time-picker/time-picker.ts +2 -0
- package/src/transfer-list/transfer-list.ts +1 -0
- package/src/tree-chart/index.ts +13 -0
- package/src/tree-chart/tree-chart-layout.ts +185 -0
- package/src/tree-chart/tree-chart.scss +377 -0
- package/src/tree-chart/tree-chart.ts +1170 -0
- package/src/workflow/index.ts +35 -0
- package/src/workflow/workflow-format.ts +29 -0
- package/src/workflow/workflow-model.ts +583 -0
- package/src/workflow/workflow.scss +1164 -0
- package/src/workflow/workflow.ts +2674 -0
- package/src/workflow-timeline/index.ts +1 -0
- package/src/workflow-timeline/workflow-timeline.scss +128 -0
- package/src/workflow-timeline/workflow-timeline.ts +238 -0
- package/dist/BaseField-CAog9TIc.js.map +0 -1
- package/dist/BaseInput-CcMfg1Y2.js.map +0 -1
- package/dist/base-button-Do2TUy8M.js.map +0 -1
- package/dist/base-progress-BiLlZVHJ.js.map +0 -1
- package/dist/cartesian-chart-C-f1frt0.js.map +0 -1
- package/dist/chart-base-B-gOg2Di.js.map +0 -1
- package/dist/generative-view-DmtpDobn.js.map +0 -1
- package/dist/hyperlink-DhE9RlVS.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/src/flow/flow.d.ts +0 -178
- package/dist/src/flow/index.d.ts +0 -2
- package/dist/toggle-base-BQO5pjrU.js.map +0 -1
- package/src/button/button-group/readme.md +0 -23
- package/src/flow/flow.scss +0 -215
- package/src/flow/flow.ts +0 -958
- package/src/flow/index.ts +0 -10
- /package/dist/test/{flow.test.d.ts → dependency-map.test.d.ts} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DiagramConnector, DiagramPoint, DiagramRect, DiagramSide } from './types.js';
|
|
2
|
+
/** Unit vector pointing out of each side. */
|
|
3
|
+
export declare const SIDE_NORMAL: Record<DiagramSide, DiagramPoint>;
|
|
4
|
+
export declare const OPPOSITE_SIDE: Record<DiagramSide, DiagramSide>;
|
|
5
|
+
/** Corner radius of elbow connectors, in canvas pixels. */
|
|
6
|
+
export declare const ELBOW_RADIUS = 32;
|
|
7
|
+
/** The point on `side` of `rect`, `offset` (0 to 1) of the way along it. */
|
|
8
|
+
export declare function anchorOnRect(rect: DiagramRect, side: DiagramSide, offset?: number): DiagramPoint;
|
|
9
|
+
/**
|
|
10
|
+
* The corner points of an orthogonal route from `start` (leaving `startSide`) to `end` (entering
|
|
11
|
+
* `endSide`). Forward routes make one turn pair at the midpoint; routes that must turn back run
|
|
12
|
+
* out of each port first.
|
|
13
|
+
*/
|
|
14
|
+
export declare function elbowPoints(start: DiagramPoint, startSide: DiagramSide, end: DiagramPoint, endSide: DiagramSide): DiagramPoint[];
|
|
15
|
+
/** An SVG path through `points` whose corners are true circular arcs of up to `radius`. */
|
|
16
|
+
export declare function roundedPath(points: DiagramPoint[], radius?: number): string;
|
|
17
|
+
/** The point halfway along a polyline. */
|
|
18
|
+
export declare function polylineMidpoint(points: DiagramPoint[]): DiagramPoint;
|
|
19
|
+
/** A connector's drawn path, where its label goes, and the direction it arrives in (radians). */
|
|
20
|
+
export interface EdgeGeometry {
|
|
21
|
+
d: string;
|
|
22
|
+
mid: DiagramPoint;
|
|
23
|
+
/** Direction of travel at the end, for the end marker. */
|
|
24
|
+
endAngle: number;
|
|
25
|
+
/** Direction of travel away from the start, reversed, for the start marker. */
|
|
26
|
+
startAngle: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Builds a connector between two ports. `startInset` and `endInset` shorten the line so markers
|
|
30
|
+
* sit on the port instead of under the line's end.
|
|
31
|
+
*/
|
|
32
|
+
export declare function edgeGeometry(kind: DiagramConnector, start: DiagramPoint, startSide: DiagramSide, end: DiagramPoint, endSide: DiagramSide, options?: {
|
|
33
|
+
radius?: number;
|
|
34
|
+
startInset?: number;
|
|
35
|
+
endInset?: number;
|
|
36
|
+
}): EdgeGeometry;
|
|
37
|
+
/** The smallest box around every rect, or `undefined` for none. */
|
|
38
|
+
export declare function boundsOf(rects: DiagramRect[]): DiagramRect | undefined;
|
|
39
|
+
export declare function rectsIntersect(a: DiagramRect, b: DiagramRect): boolean;
|
|
40
|
+
export declare function inflateRect(r: DiagramRect, by: number): DiagramRect;
|
|
41
|
+
/** A rect from two corner points in any order. */
|
|
42
|
+
export declare function rectFromPoints(a: DiagramPoint, b: DiagramPoint): DiagramRect;
|
|
43
|
+
/**
|
|
44
|
+
* The candidate nearest to `from` in a direction, for spatial keyboard navigation. Candidates
|
|
45
|
+
* mostly to the side count more than those ahead diagonally.
|
|
46
|
+
*/
|
|
47
|
+
export declare function nearestInDirection<T extends {
|
|
48
|
+
rect: DiagramRect;
|
|
49
|
+
}>(from: DiagramRect, candidates: T[], direction: 'up' | 'down' | 'left' | 'right'): T | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Undo and redo over immutable snapshots. Record the state before each committed change with
|
|
3
|
+
* `push`; `undo` and `redo` take the current state and return the one to restore.
|
|
4
|
+
*/
|
|
5
|
+
export declare class History<T> {
|
|
6
|
+
private past;
|
|
7
|
+
private future;
|
|
8
|
+
private readonly limit;
|
|
9
|
+
constructor(limit?: number);
|
|
10
|
+
get canUndo(): boolean;
|
|
11
|
+
get canRedo(): boolean;
|
|
12
|
+
/** Records `state` as the one before a change. Clears the redo stack. */
|
|
13
|
+
push(state: T): void;
|
|
14
|
+
undo(current: T): T | undefined;
|
|
15
|
+
redo(current: T): T | undefined;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DiagramRect, DiagramView } from './types.js';
|
|
2
|
+
/** What the minimap draws: content boxes and the part of the canvas in view. */
|
|
3
|
+
export interface DiagramOverview {
|
|
4
|
+
items: (DiagramRect & {
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
})[];
|
|
7
|
+
visible: DiagramRect;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The contract between a canvas (`wc-diagram` and the later diagram components) and the shared chrome
|
|
11
|
+
* (`wc-diagram-controls`, `wc-diagram-minimap`). Members starting with `_` are internal.
|
|
12
|
+
*/
|
|
13
|
+
export interface DiagramCanvas extends HTMLElement {
|
|
14
|
+
readonly view: DiagramView;
|
|
15
|
+
minZoom: number;
|
|
16
|
+
maxZoom: number;
|
|
17
|
+
editable: boolean;
|
|
18
|
+
readonly canUndo: boolean;
|
|
19
|
+
readonly canRedo: boolean;
|
|
20
|
+
zoomIn(): void;
|
|
21
|
+
zoomOut(): void;
|
|
22
|
+
zoomTo(target: number | string): void;
|
|
23
|
+
fit(): void;
|
|
24
|
+
home(): void;
|
|
25
|
+
zoomToSelection(): void;
|
|
26
|
+
undo(): void;
|
|
27
|
+
redo(): void;
|
|
28
|
+
/** Moves the camera so canvas point `x, y` is centred; animated unless `instant`. */
|
|
29
|
+
centerOn(x: number, y: number, instant?: boolean): void;
|
|
30
|
+
/** Calls `listener` after every render and view change. Returns an unsubscribe function. */
|
|
31
|
+
_diagramSubscribe(listener: () => void): () => void;
|
|
32
|
+
_diagramOverview(): DiagramOverview;
|
|
33
|
+
}
|
|
34
|
+
export declare function isDiagramCanvas(el: unknown): el is DiagramCanvas;
|
|
35
|
+
/**
|
|
36
|
+
* Finds the canvas a control belongs to: the element with id `forId` in the same root, else the
|
|
37
|
+
* nearest canvas ancestor (a control slotted into a canvas).
|
|
38
|
+
*/
|
|
39
|
+
export declare function findDiagramCanvas(el: HTMLElement, forId: string): DiagramCanvas | null;
|
|
40
|
+
/** A small listener set for `_diagramSubscribe`. */
|
|
41
|
+
export declare class DiagramListeners {
|
|
42
|
+
private readonly listeners;
|
|
43
|
+
add(listener: () => void): () => void;
|
|
44
|
+
notify(): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DiagramMarker, DiagramPoint } from './types.js';
|
|
2
|
+
/** How a marker shape is painted: in the line colour, in the canvas colour, or as a stroke only. */
|
|
3
|
+
export type MarkerFill = 'solid' | 'surface' | 'none';
|
|
4
|
+
export interface MarkerShape {
|
|
5
|
+
d: string;
|
|
6
|
+
fill: MarkerFill;
|
|
7
|
+
}
|
|
8
|
+
/** The shapes that make up a marker; none for `none`. */
|
|
9
|
+
export declare function markerShapes(marker: DiagramMarker | undefined): MarkerShape[];
|
|
10
|
+
/**
|
|
11
|
+
* How far the line stops short of the port, so a filled arrow's tip lands on the port instead of
|
|
12
|
+
* the line's square end poking past it. Crow's-foot markers sit on top of the line, so they need none.
|
|
13
|
+
*/
|
|
14
|
+
export declare function markerInset(marker: DiagramMarker | undefined): number;
|
|
15
|
+
/** The SVG transform that places a marker's tip at `at`, pointing along `angle` (radians). */
|
|
16
|
+
export declare function markerTransform(at: DiagramPoint, angle: number): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DiagramSize } from './types.js';
|
|
3
|
+
export interface MeasureOptions {
|
|
4
|
+
/** The rendered elements to measure, each with its key. */
|
|
5
|
+
elements: () => Iterable<[string, HTMLElement]>;
|
|
6
|
+
/** Size assumed for a key that has not been measured yet. */
|
|
7
|
+
fallback: DiagramSize;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Measures rendered nodes with a ResizeObserver and re-renders the host when a size changes.
|
|
11
|
+
* Sizes are layout sizes (`offsetWidth` / `offsetHeight`), so they ignore the canvas zoom, and
|
|
12
|
+
* they are kept when a node is culled out of view so content bounds stay right.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MeasureController implements ReactiveController {
|
|
15
|
+
private readonly host;
|
|
16
|
+
private readonly options;
|
|
17
|
+
private readonly sizes;
|
|
18
|
+
private readonly observed;
|
|
19
|
+
private readonly keys;
|
|
20
|
+
private observer?;
|
|
21
|
+
constructor(host: ReactiveControllerHost, options: MeasureOptions);
|
|
22
|
+
/** The measured size of `key`, or the fallback. */
|
|
23
|
+
size(key: string): DiagramSize;
|
|
24
|
+
/** Whether `key` has been measured. */
|
|
25
|
+
has(key: string): boolean;
|
|
26
|
+
hostConnected(): void;
|
|
27
|
+
hostDisconnected(): void;
|
|
28
|
+
hostUpdated(): void;
|
|
29
|
+
/** Forgets keys that no longer exist. */
|
|
30
|
+
retain(existing: Set<string>): void;
|
|
31
|
+
private read;
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Whether the person asked for less motion. Diagram animations jump to their end state when true. */
|
|
2
|
+
export declare function prefersReducedMotion(): boolean;
|
|
3
|
+
export declare const easeInOutCubic: (p: number) => number;
|
|
4
|
+
export declare const easeOutCubic: (p: number) => number;
|
|
5
|
+
export interface TweenOptions {
|
|
6
|
+
duration: number;
|
|
7
|
+
easing?: (p: number) => number;
|
|
8
|
+
/** Called every frame with the eased progress, 0 to 1. */
|
|
9
|
+
onUpdate: (p: number) => void;
|
|
10
|
+
onDone?: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Runs `onUpdate` every animation frame for `duration` milliseconds. Under reduced motion it
|
|
14
|
+
* calls `onUpdate(1)` and `onDone` straight away. Returns a function that stops the tween without
|
|
15
|
+
* calling `onDone`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function tween({ duration, easing, onUpdate, onDone, }: TweenOptions): () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Fades and shrinks elements before they are removed, then calls `done`. Resolves at once under
|
|
20
|
+
* reduced motion or when the Web Animations API is missing.
|
|
21
|
+
*/
|
|
22
|
+
export declare function animateOut(elements: Element[], done: () => void, duration?: number): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type SelectionKind = 'node' | 'edge';
|
|
2
|
+
/** A set of selected nodes and edges, kept apart by kind so ids may repeat across kinds. */
|
|
3
|
+
export declare class DiagramSelection {
|
|
4
|
+
private keys;
|
|
5
|
+
private readonly onChange;
|
|
6
|
+
constructor(onChange?: () => void);
|
|
7
|
+
private static key;
|
|
8
|
+
get size(): number;
|
|
9
|
+
has(kind: SelectionKind, id: string): boolean;
|
|
10
|
+
ids(kind: SelectionKind): string[];
|
|
11
|
+
/** Replaces the selection. */
|
|
12
|
+
set(items: {
|
|
13
|
+
kind: SelectionKind;
|
|
14
|
+
id: string;
|
|
15
|
+
}[]): void;
|
|
16
|
+
toggle(kind: SelectionKind, id: string): void;
|
|
17
|
+
/** Drops ids that no longer exist. */
|
|
18
|
+
retain(kind: SelectionKind, existing: Set<string>): void;
|
|
19
|
+
clear(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** A point in canvas or screen coordinates. */
|
|
2
|
+
export interface DiagramPoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DiagramSize {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
/** A box in canvas coordinates: top-left corner plus size. */
|
|
11
|
+
export interface DiagramRect extends DiagramPoint, DiagramSize {
|
|
12
|
+
}
|
|
13
|
+
/** A side of a node, where a port sits and where a connector leaves or enters. */
|
|
14
|
+
export type DiagramSide = 'top' | 'right' | 'bottom' | 'left';
|
|
15
|
+
/** How a connector is drawn between two ports. */
|
|
16
|
+
export type DiagramConnector = 'elbow' | 'bezier' | 'straight';
|
|
17
|
+
/**
|
|
18
|
+
* The symbol drawn at the end of a connector. The crow's-foot set (`one`, `zero-or-one`, `many`,
|
|
19
|
+
* `one-or-many`, `zero-or-many`) marks cardinality in entity diagrams.
|
|
20
|
+
*/
|
|
21
|
+
export type DiagramMarker = 'none' | 'arrow' | 'arrow-open' | 'circle' | 'diamond' | 'one' | 'zero-or-one' | 'many' | 'one-or-many' | 'zero-or-many';
|
|
22
|
+
/**
|
|
23
|
+
* Where the camera is: a canvas point `c` is drawn on screen at `c * zoom + (x, y)`, relative to
|
|
24
|
+
* the canvas's top-left corner.
|
|
25
|
+
*/
|
|
26
|
+
export interface DiagramView {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
zoom: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Where the camera starts: `fit` fits all content, `origin` puts canvas point 0,0 at the top-left
|
|
33
|
+
* corner at 100%, `first` centres the first node at 100%.
|
|
34
|
+
*/
|
|
35
|
+
export type DiagramStartPosition = 'fit' | 'origin' | 'first';
|
|
36
|
+
/** Detail of `viewport-change`. `settled` is true once a pan, zoom or animation has finished. */
|
|
37
|
+
export interface DiagramViewportDetail extends DiagramView {
|
|
38
|
+
settled: boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DiagramPoint, DiagramRect, DiagramView } from './types.js';
|
|
3
|
+
export interface ViewportOptions {
|
|
4
|
+
/** The element that shows the canvas and receives pan and zoom input. */
|
|
5
|
+
element: () => HTMLElement | null | undefined;
|
|
6
|
+
minZoom: () => number;
|
|
7
|
+
maxZoom: () => number;
|
|
8
|
+
/** Called on every view change; `settled` is true once a gesture or animation has finished. */
|
|
9
|
+
onChange: (view: DiagramView, settled: boolean) => void;
|
|
10
|
+
/** Whether a press on `target` is on the empty canvas (pans) rather than on content. */
|
|
11
|
+
isBackground: (target: EventTarget | null) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Called for a primary-button press on the background before panning starts. Return true to
|
|
14
|
+
* handle the press yourself, for example to draw a marquee.
|
|
15
|
+
*/
|
|
16
|
+
onBackgroundPointerDown?: (event: PointerEvent) => boolean;
|
|
17
|
+
/** Called when a background press is released without moving. */
|
|
18
|
+
onBackgroundClick?: (event: PointerEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The camera of an infinite canvas: pans with a background drag, Space + drag, the middle button,
|
|
22
|
+
* a trackpad or the wheel, and zooms around the pointer with Ctrl/⌘ + wheel or a pinch. There are
|
|
23
|
+
* no bounds, so content can sit anywhere, including at negative coordinates.
|
|
24
|
+
*
|
|
25
|
+
* A canvas point `c` is drawn at `c * zoom + (x, y)` relative to the element's top-left corner.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ViewportController implements ReactiveController {
|
|
28
|
+
view: DiagramView;
|
|
29
|
+
/** Whether Space is held, so any drag pans. */
|
|
30
|
+
spaceHeld: boolean;
|
|
31
|
+
/** Whether a pan gesture is moving the view. */
|
|
32
|
+
panning: boolean;
|
|
33
|
+
private readonly host;
|
|
34
|
+
private readonly options;
|
|
35
|
+
private attachedTo?;
|
|
36
|
+
private pan?;
|
|
37
|
+
private touches;
|
|
38
|
+
private pinch?;
|
|
39
|
+
private wheelTimer?;
|
|
40
|
+
private stopAnimation?;
|
|
41
|
+
constructor(host: ReactiveControllerHost, options: ViewportOptions);
|
|
42
|
+
hostUpdated(): void;
|
|
43
|
+
hostDisconnected(): void;
|
|
44
|
+
/** The element's size in screen pixels. */
|
|
45
|
+
size(): {
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
};
|
|
49
|
+
/** The part of the canvas in view, in canvas coordinates. */
|
|
50
|
+
visibleRect(): DiagramRect;
|
|
51
|
+
/** Converts client (page viewport) coordinates to canvas coordinates. */
|
|
52
|
+
toCanvas(clientX: number, clientY: number): DiagramPoint;
|
|
53
|
+
clampZoom(zoom: number): number;
|
|
54
|
+
/** The view that fits `rect` with `padding` screen pixels around it, never above `maxZoom`. */
|
|
55
|
+
viewForRect(rect: DiagramRect, padding: number, maxZoom?: number): DiagramView;
|
|
56
|
+
/** The view that centres canvas `point` at `zoom`. */
|
|
57
|
+
viewCentering(point: DiagramPoint, zoom?: number): DiagramView;
|
|
58
|
+
/** Moves the camera at once. */
|
|
59
|
+
setView(view: DiagramView, settled?: boolean): void;
|
|
60
|
+
panBy(dx: number, dy: number, settled?: boolean): void;
|
|
61
|
+
/** Zooms by `factor` around a client point, or around the centre. */
|
|
62
|
+
zoomBy(factor: number, clientX?: number, clientY?: number, settled?: boolean): void;
|
|
63
|
+
zoomToValue(zoom: number, clientX?: number, clientY?: number, settled?: boolean): void;
|
|
64
|
+
/**
|
|
65
|
+
* Flies the camera to `target`. Long trips zoom out on the way, like a map. Jumps at once under
|
|
66
|
+
* reduced motion.
|
|
67
|
+
*/
|
|
68
|
+
animateTo(target: DiagramView, duration?: number): void;
|
|
69
|
+
cancelAnimation(): void;
|
|
70
|
+
private apply;
|
|
71
|
+
/** Starts a pan from a pointer press anywhere, for Space + drag over content. */
|
|
72
|
+
beginPan(event: PointerEvent, background?: boolean): void;
|
|
73
|
+
private attach;
|
|
74
|
+
private detach;
|
|
75
|
+
/**
|
|
76
|
+
* Whether a wheel event belongs to something inside the canvas: an overlay marked
|
|
77
|
+
* `data-diagram-overlay` (a palette, a popover), or an element that can scroll that way.
|
|
78
|
+
*/
|
|
79
|
+
private wheelBelongsInside;
|
|
80
|
+
private onWheel;
|
|
81
|
+
private onPointerDown;
|
|
82
|
+
private onPointerMove;
|
|
83
|
+
private onPointerUp;
|
|
84
|
+
private startPinch;
|
|
85
|
+
private movePinch;
|
|
86
|
+
private onKeyDown;
|
|
87
|
+
private onKeyUp;
|
|
88
|
+
private onBlur;
|
|
89
|
+
}
|
|
@@ -707,6 +707,155 @@ export declare const defaultStrings: {
|
|
|
707
707
|
cancel: string;
|
|
708
708
|
/** Label of a confirm dialog's type-to-confirm field, for example "Type acme-prod to confirm". */
|
|
709
709
|
typeToConfirm: (text: string) => string;
|
|
710
|
+
/** Default accessible name of a diagram canvas. */
|
|
711
|
+
diagramLabel: string;
|
|
712
|
+
/** Read with a diagram canvas, from `aria-describedby`. */
|
|
713
|
+
diagramInstructions: string;
|
|
714
|
+
diagramZoomIn: string;
|
|
715
|
+
diagramZoomOut: string;
|
|
716
|
+
diagramFit: string;
|
|
717
|
+
diagramZoomToSelection: string;
|
|
718
|
+
diagramBackToStart: string;
|
|
719
|
+
diagramBackToContent: string;
|
|
720
|
+
/** Accessible name of the zoom level button, for example "Zoom level, 80%". */
|
|
721
|
+
diagramZoomLevel: (percent: string) => string;
|
|
722
|
+
diagramUndo: string;
|
|
723
|
+
diagramRedo: string;
|
|
724
|
+
diagramControls: string;
|
|
725
|
+
diagramMinimap: string;
|
|
726
|
+
/** Role description of a diagram node, read by screen readers instead of "group". */
|
|
727
|
+
diagramNode: string;
|
|
728
|
+
/** Accessible name of a connection, for example "Connection from Start to Review: approve". */
|
|
729
|
+
diagramEdgeLabel: (from: string, to: string, label?: string) => string;
|
|
730
|
+
/** Announced after a node moves, for example "Review moved to 120, 40". */
|
|
731
|
+
diagramMoved: (label: string, x: string, y: string) => string;
|
|
732
|
+
/** Announced after a connection is made. */
|
|
733
|
+
diagramConnected: (from: string, to: string) => string;
|
|
734
|
+
/** Announced after nodes and connections are deleted. */
|
|
735
|
+
diagramDeleted: (count: number) => string;
|
|
736
|
+
/** Announced after pasting, for example "3 items pasted". */
|
|
737
|
+
diagramPasted: (count: number) => string;
|
|
738
|
+
workflowLabel: string;
|
|
739
|
+
workflowAddStep: string;
|
|
740
|
+
workflowAddTrigger: string;
|
|
741
|
+
workflowSearchSteps: string;
|
|
742
|
+
workflowNoSteps: string;
|
|
743
|
+
workflowOnError: string;
|
|
744
|
+
workflowWaitForAll: string;
|
|
745
|
+
workflowEnd: string;
|
|
746
|
+
workflowMoreActions: string;
|
|
747
|
+
workflowDuplicate: string;
|
|
748
|
+
workflowDelete: string;
|
|
749
|
+
workflowCollapse: string;
|
|
750
|
+
workflowExpand: string;
|
|
751
|
+
workflowOutputs: string;
|
|
752
|
+
workflowTools: string;
|
|
753
|
+
workflowUntil: string;
|
|
754
|
+
/** Summary of a collapsed branch or loop, for example "3 paths, 7 steps". */
|
|
755
|
+
workflowCollapsedSummary: (paths: number, steps: number) => string;
|
|
756
|
+
/** Label of the problems button, for example "2 problems". */
|
|
757
|
+
workflowProblems: (count: number) => string;
|
|
758
|
+
workflowUnreachable: string;
|
|
759
|
+
workflowLoopForEach: string;
|
|
760
|
+
workflowLoopWhile: string;
|
|
761
|
+
workflowLoopUntil: string;
|
|
762
|
+
/** Announced after a step is added, for example "Send email added". */
|
|
763
|
+
workflowStepAdded: (name: string) => string;
|
|
764
|
+
workflowStepRemoved: (name: string) => string;
|
|
765
|
+
workflowStepMoved: (name: string) => string;
|
|
766
|
+
/** Accessible name of an add-step button, for example "Add step after Look up manager". */
|
|
767
|
+
workflowAddStepAfter: (name: string) => string;
|
|
768
|
+
workflowAddStepIn: (name: string) => string;
|
|
769
|
+
treeChartLabel: string;
|
|
770
|
+
treeChartLoading: string;
|
|
771
|
+
treeChartAddChild: string;
|
|
772
|
+
treeChartAddSibling: string;
|
|
773
|
+
treeChartNewItem: string;
|
|
774
|
+
/** Accessible name of the count chip, for example "Expand Elena Rostova, 4 below". */
|
|
775
|
+
treeChartExpand: (name: string, count: number) => string;
|
|
776
|
+
treeChartCollapse: (name: string) => string;
|
|
777
|
+
/** Announced after a drag, for example "Ana Ruiz moved under Elena Rostova". */
|
|
778
|
+
treeChartMoved: (name: string, parent: string) => string;
|
|
779
|
+
treeChartRemoved: (name: string) => string;
|
|
780
|
+
/** Announced after a search, for example "3 matches". */
|
|
781
|
+
treeChartMatches: (count: number) => string;
|
|
782
|
+
dependencyMapLabel: string;
|
|
783
|
+
dependencyMapLegend: string;
|
|
784
|
+
dependencyMapHealthy: string;
|
|
785
|
+
dependencyMapDegraded: string;
|
|
786
|
+
dependencyMapDown: string;
|
|
787
|
+
dependencyMapUnknown: string;
|
|
788
|
+
dependencyMapImpact: string;
|
|
789
|
+
dependencyMapTraffic: string;
|
|
790
|
+
dependencyMapShowType: (type: string) => string;
|
|
791
|
+
/** A collapsed group's subtitle, for example "8 items". */
|
|
792
|
+
dependencyMapGroupCount: (count: number) => string;
|
|
793
|
+
/** Label of an aggregated edge between collapsed groups, for example "12 connections". */
|
|
794
|
+
dependencyMapEdgeCount: (count: number) => string;
|
|
795
|
+
dependencyMapExpandGroup: (name: string) => string;
|
|
796
|
+
dependencyMapCollapseGroup: (name: string) => string;
|
|
797
|
+
/** Accessible name of a node, for example "payments-db, PostgreSQL, degraded, 3 upstream, 0 downstream". */
|
|
798
|
+
dependencyMapNode: (name: string, type: string, status: string, upstream: number, downstream: number) => string;
|
|
799
|
+
dependencyMapRps: (value: string) => string;
|
|
800
|
+
dependencyMapLatency: (value: string) => string;
|
|
801
|
+
dependencyMapErrors: (value: string) => string;
|
|
802
|
+
erdLabel: string;
|
|
803
|
+
erdPrimaryKey: string;
|
|
804
|
+
erdForeignKey: string;
|
|
805
|
+
erdNullable: string;
|
|
806
|
+
erdAddColumn: string;
|
|
807
|
+
erdRemoveColumn: (name: string) => string;
|
|
808
|
+
erdTogglePrimaryKey: (name: string) => string;
|
|
809
|
+
erdCollapse: (name: string) => string;
|
|
810
|
+
erdExpand: (name: string) => string;
|
|
811
|
+
erdRename: string;
|
|
812
|
+
erdNewColumn: string;
|
|
813
|
+
erdNewEntity: string;
|
|
814
|
+
erdCardinality: string;
|
|
815
|
+
erdManyToOne: string;
|
|
816
|
+
erdZeroOrManyToOne: string;
|
|
817
|
+
erdOneToOne: string;
|
|
818
|
+
erdZeroOrOneToOne: string;
|
|
819
|
+
erdManyToMany: string;
|
|
820
|
+
/** Summary of a column count, for example "8 columns". */
|
|
821
|
+
erdColumnCount: (count: number) => string;
|
|
822
|
+
/** Accessible name of an entity, for example "orders, 8 columns, references customers, referenced by order_items". */
|
|
823
|
+
erdEntity: (name: string, columns: number, references: string[], referencedBy: string[]) => string;
|
|
824
|
+
/** Announced after a relation is added, for example "orders.customer_id references customers.id". */
|
|
825
|
+
erdConnected: (from: string, to: string) => string;
|
|
826
|
+
workflowDebugBar: string;
|
|
827
|
+
workflowContinue: string;
|
|
828
|
+
workflowPause: string;
|
|
829
|
+
workflowStepOver: string;
|
|
830
|
+
workflowStepInto: string;
|
|
831
|
+
workflowRestart: string;
|
|
832
|
+
workflowStop: string;
|
|
833
|
+
workflowRetryFromHere: string;
|
|
834
|
+
workflowBreakpoint: string;
|
|
835
|
+
workflowToggleBreakpoint: string;
|
|
836
|
+
workflowPinData: string;
|
|
837
|
+
workflowUnpinData: string;
|
|
838
|
+
workflowPinned: string;
|
|
839
|
+
workflowPreviousIteration: string;
|
|
840
|
+
workflowNextIteration: string;
|
|
841
|
+
/** Iteration picker label, for example "Iteration 3 of 12". */
|
|
842
|
+
workflowIteration: (index: number, total: number) => string;
|
|
843
|
+
/** Short iteration label, for example "3 / 12". */
|
|
844
|
+
workflowIterationShort: (index: number, total: number) => string;
|
|
845
|
+
workflowRunTimeline: string;
|
|
846
|
+
/** Status of a step or run, shown on cards and read by screen readers. */
|
|
847
|
+
workflowStatusQueued: string;
|
|
848
|
+
workflowStatusRunning: string;
|
|
849
|
+
workflowStatusWaiting: string;
|
|
850
|
+
workflowStatusPaused: string;
|
|
851
|
+
workflowStatusSuccess: string;
|
|
852
|
+
workflowStatusFailed: string;
|
|
853
|
+
workflowStatusSkipped: string;
|
|
854
|
+
workflowStatusCanceled: string;
|
|
855
|
+
/** Summary of a run, for example "Run 184, Failed, 2 h 15 min". */
|
|
856
|
+
workflowRunSummary: (id: string, status: string, duration: string) => string;
|
|
857
|
+
/** Announced when the run moves, for example "Send email succeeded". */
|
|
858
|
+
workflowStepStatus: (name: string, status: string) => string;
|
|
710
859
|
/** Label of an AI badge on a value the person hasn't accepted yet. */
|
|
711
860
|
aiSuggested: string;
|
|
712
861
|
/** Label of an AI badge on a record or text waiting to be confirmed. */
|
|
@@ -771,6 +920,12 @@ export declare const defaultStrings: {
|
|
|
771
920
|
/** Who wrote a message, read before it. */
|
|
772
921
|
chatYou: string;
|
|
773
922
|
chatAssistant: string;
|
|
923
|
+
/** Who wrote a message from another person, when it has no `author`. */
|
|
924
|
+
chatParticipant: string;
|
|
925
|
+
/** Where a message came from, for example "via Teams". */
|
|
926
|
+
chatVia: (channel: string) => string;
|
|
927
|
+
/** Accessible name of the quick replies under a message. */
|
|
928
|
+
chatQuickReplies: string;
|
|
774
929
|
chatCopy: string;
|
|
775
930
|
chatRegenerate: string;
|
|
776
931
|
chatGoodAnswer: string;
|
|
@@ -10,17 +10,22 @@ export interface MenuTriggerOptions {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* The menu wiring shared by buttons that open a `wc-menu` (dropdown button, split button):
|
|
13
|
-
* show / close / toggle, Arrow Up / Down on the trigger, the trigger's
|
|
14
|
-
* `aria-expanded
|
|
13
|
+
* show / close / toggle, Arrow Up / Down on the trigger, the open state behind the trigger's
|
|
14
|
+
* `aria-expanded`, and the host's `open` / `close` events (ADR-030001).
|
|
15
15
|
*
|
|
16
16
|
* The menu's own `open` / `close` events are stopped inside the host, which fires its own `open`
|
|
17
|
-
* and `close` instead; `close` carries `detail.reason` from the menu's close event. The host
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* and `close` instead; `close` carries `detail.reason` from the menu's close event. The host
|
|
18
|
+
* renders the menu with `id=${trigger.menuId}`, `@open=${trigger.handleMenuOpen}` and
|
|
19
|
+
* `@close=${trigger.handleMenuClose}`, and the trigger button with `aria-haspopup="menu"`,
|
|
20
|
+
* `aria-expanded=${String(trigger.open)}`, `@click=${trigger.handleTriggerClick}` and
|
|
20
21
|
* `@keydown=${trigger.handleTriggerKeyDown}`.
|
|
22
|
+
*
|
|
23
|
+
* Add `aria-controls=${trigger.menuId}` only when the trigger is a native `<button>` in the same
|
|
24
|
+
* shadow root as the menu. A `wc-button` or `wc-icon-button` renders its `<button>` in its own
|
|
25
|
+
* shadow root, where an ID reference to the menu cannot resolve, so leave `aria-controls` off it.
|
|
21
26
|
*/
|
|
22
27
|
export declare class MenuTriggerController {
|
|
23
|
-
/** Id for the menu,
|
|
28
|
+
/** Id for the menu, for the `aria-controls` of a native trigger in the same shadow root. */
|
|
24
29
|
readonly menuId: string;
|
|
25
30
|
private readonly host;
|
|
26
31
|
private readonly options;
|
|
@@ -28,8 +33,6 @@ export declare class MenuTriggerController {
|
|
|
28
33
|
constructor(host: ReactiveControllerHost & HTMLElement, options: MenuTriggerOptions);
|
|
29
34
|
/** Whether the menu is open, as last reported by its `open` / `close` events. */
|
|
30
35
|
get open(): boolean;
|
|
31
|
-
/** ARIA for the trigger button. */
|
|
32
|
-
get triggerAria(): Record<string, string>;
|
|
33
36
|
/** Opens the menu, anchored to the host, and focuses its first (or last) item. */
|
|
34
37
|
show(focusTarget?: MenuFocusTarget): void;
|
|
35
38
|
/** Closes the menu. */
|
|
@@ -78,6 +78,14 @@ export default abstract class ToggleBase extends BaseInput {
|
|
|
78
78
|
protected readSuggestionValue(): unknown;
|
|
79
79
|
protected writeSuggestionValue(value: unknown): void;
|
|
80
80
|
protected emitSuggestionValue(): void;
|
|
81
|
+
/**
|
|
82
|
+
* A click aimed at the host itself, not at something inside it, comes from an external
|
|
83
|
+
* `<label for>`, a wrapping `<label>` or `host.click()`. Forward it to the inner native input, the
|
|
84
|
+
* control the shadow `<label>` activates, so it toggles like a click on the control. Clicks from
|
|
85
|
+
* inside (the control, the shadow label or slotted label content) start elsewhere and are left
|
|
86
|
+
* alone, so a click toggles once.
|
|
87
|
+
*/
|
|
88
|
+
private hostClick;
|
|
81
89
|
private windowMouseUp;
|
|
82
90
|
private windowKeyUp;
|
|
83
91
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Logs a deprecation warning once per page for each distinct message.
|
|
3
3
|
*
|
|
4
|
-
* Renamed or removed APIs keep working
|
|
5
|
-
* migrate (ADR-030001). Pass the component tag, the old API and its replacement.
|
|
4
|
+
* Renamed or removed APIs keep working until the next major version and call this so consumers
|
|
5
|
+
* see what to migrate (ADR-030001). Pass the component tag, the old API and its replacement.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* deprecate('wc-example', '`old-name`', '`new-name`');
|
|
9
9
|
*/
|
|
10
|
-
export declare function deprecate(tag: string, oldApi: string, replacement?: string): void;
|
|
10
|
+
export declare function deprecate(tag: string, oldApi: string, replacement?: string, removedIn?: string): void;
|
|
11
11
|
/** Clears the record of logged warnings. For tests only. */
|
|
12
12
|
export declare function resetDeprecationWarnings(): void;
|
|
@@ -51,6 +51,11 @@ export declare function formatRelativeTime(date: Date | number, locale: string,
|
|
|
51
51
|
export declare function formatAbsoluteTime(date: Date | number, locale: string): string;
|
|
52
52
|
/** `date` as a short date in `locale`: "Nov 2" in the current year, else "Nov 2, 2025". */
|
|
53
53
|
export declare function formatAbsoluteDate(date: Date | number, locale: string, now?: number): string;
|
|
54
|
+
/**
|
|
55
|
+
* `date` as a clock time in `locale` ("9:41 AM"), with the date before it when it is not today
|
|
56
|
+
* ("Nov 2, 9:41 AM"), for timestamps in a conversation.
|
|
57
|
+
*/
|
|
58
|
+
export declare function formatClockTime(date: Date | number, locale: string, now?: number): string;
|
|
54
59
|
/**
|
|
55
60
|
* `date` relative to now ("5 minutes ago"), or, when `absoluteAfter` is set and the date is
|
|
56
61
|
* farther from now than that, an absolute date ("Nov 2").
|
|
@@ -47,6 +47,7 @@ export declare class Accordion extends LitElement {
|
|
|
47
47
|
* When `false` (default), the icon is placed at the trailing end.
|
|
48
48
|
*/
|
|
49
49
|
leadingToggle: boolean;
|
|
50
|
+
/** The `wc-accordion-item` children slotted into the accordion. */
|
|
50
51
|
items: Array<AccordionItem>;
|
|
51
52
|
/** Up/Down, Home and End move focus between the header buttons. */
|
|
52
53
|
private readonly roving;
|
|
@@ -22,6 +22,9 @@ export type AiBadgeKind = 'suggested' | 'draft' | 'generated';
|
|
|
22
22
|
* and is read as the badge's description. <code>dismissible</code> adds a clear button that fires
|
|
23
23
|
* <code>dismiss</code>; the app then removes the suggestion, discards the draft or hides the
|
|
24
24
|
* summary.</p>
|
|
25
|
+
* <p><code>icon-only</code> keeps just the sparkle where there is no room for the label, such as a
|
|
26
|
+
* narrow field: the label is still read and shows in the tooltip. Fields switch to it on their
|
|
27
|
+
* own when they are narrow.</p>
|
|
25
28
|
* <p>When AI is off for the page (<code>setPeacockAi({ enabled: false })</code>) the badge renders
|
|
26
29
|
* nothing, so a page that still passes AI state in never shows a stale marker.</p>
|
|
27
30
|
* <p>The label is always text, never only the color or the sparkle. Replace it with the default
|
|
@@ -56,6 +59,11 @@ export declare class AiBadge extends LitElement {
|
|
|
56
59
|
reason: string;
|
|
57
60
|
/** Adds a button that clears the output in one action. */
|
|
58
61
|
dismissible: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Shows only the sparkle, for tight spaces such as a narrow field. The label stays the
|
|
64
|
+
* accessible name and shows in the tooltip.
|
|
65
|
+
*/
|
|
66
|
+
iconOnly: boolean;
|
|
59
67
|
/** Per-instance string overrides. */
|
|
60
68
|
strings?: Partial<PeacockStrings>;
|
|
61
69
|
private readonly _ai;
|
|
@@ -20,6 +20,10 @@ declare const Button_base: import("../../__internal/mixins/mixin.js").MixinRetur
|
|
|
20
20
|
* @cssprop --button-container-shape-end-start - Defines the start position of the button container shape.
|
|
21
21
|
* @cssprop --button-container-shape-end-end - Defines the end position of the button container shape.
|
|
22
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
|
+
*
|
|
23
27
|
*
|
|
24
28
|
* @cssprop --filled-button-container-color - Color of the filled button container.
|
|
25
29
|
* @cssprop --filled-button-label-text-color - Text color of the filled button label.
|