@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
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import type { AiCitation } from '../__internal/ai/types.js';
|
|
3
3
|
import type { PeacockStrings } from '../__internal/i18n/strings.js';
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Who wrote a message: the person using the page (`user`), the assistant, or another person in
|
|
6
|
+
* the conversation (`participant`), such as a caller or a teammate.
|
|
7
|
+
*/
|
|
8
|
+
export type ChatMessageFrom = 'user' | 'assistant' | 'participant';
|
|
6
9
|
/** What the person thought of an answer; `''` for nothing. */
|
|
7
10
|
export type ChatMessageFeedback = 'up' | 'down' | '';
|
|
8
11
|
/** `detail` of `feedback`. */
|
|
9
12
|
export interface ChatMessageFeedbackDetail {
|
|
10
13
|
value: ChatMessageFeedback;
|
|
11
14
|
}
|
|
15
|
+
/** `detail` of `suggestion-select`. */
|
|
16
|
+
export interface ChatMessageSuggestionDetail {
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
12
19
|
/**
|
|
13
20
|
* @label Chat Message
|
|
14
21
|
* @tag wc-chat-message
|
|
15
22
|
* @rawTag chat-message
|
|
16
|
-
* @summary One turn of a conversation: what the person asked, or the assistant's answer with its steps, drafts and sources.
|
|
23
|
+
* @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.
|
|
17
24
|
* @overview
|
|
18
25
|
* <p>Put messages in <code>wc-chat-thread</code>. <code>from="user"</code> shows the person's text in
|
|
19
26
|
* a bubble at the end of the line; <code>from="assistant"</code> (default) shows the answer as
|
|
20
|
-
* formatted text
|
|
21
|
-
*
|
|
22
|
-
* <code>
|
|
27
|
+
* formatted text; <code>from="participant"</code> shows another person's text, such as a caller's
|
|
28
|
+
* or a teammate's, in a quiet bubble at the start of the line, with their name above it. All take
|
|
29
|
+
* Markdown in <code>value</code>, rendered by <code>wc-markdown</code>, so mentions and
|
|
30
|
+
* <code>[1](cite:id)</code> citations work; give the sources in <code>citations</code>.</p>
|
|
31
|
+
* <p><strong>Who and when.</strong> A line above the message names <code>author</code> and adds
|
|
32
|
+
* <code>channel</code> ("via Teams") and the time of <code>datetime</code>. It shows for a
|
|
33
|
+
* participant, whenever <code>datetime</code> or <code>channel</code> is set, and when the
|
|
34
|
+
* <code>meta</code> slot has content, such as a "Work note" tag. In a one-to-one conversation with
|
|
35
|
+
* the assistant, leave them out and the messages stay bare.</p>
|
|
23
36
|
* <p>While an answer arrives, set <code>streaming</code> and keep replacing <code>value</code>. Before
|
|
24
37
|
* the first words, a typing indicator shows <code>status</code>, such as "Looking up your laptop…".
|
|
25
38
|
* Put <code>wc-assistant-steps</code> in the <code>steps</code> slot, above the text, and
|
|
@@ -27,35 +40,53 @@ export interface ChatMessageFeedbackDetail {
|
|
|
27
40
|
* <p>A finished answer has actions: copy, <strong>Try again</strong> (<code>regenerate</code>) and
|
|
28
41
|
* good or bad (<code>feedback</code>, which toggles <code>feedback</code>). <code>hide-actions</code>
|
|
29
42
|
* removes them. With <code>error</code> the message says the answer failed, with Try again.</p>
|
|
43
|
+
* <p><strong>Quick replies.</strong> <code>suggestions</code> shows the likely next moves as chips
|
|
44
|
+
* under the message ("Promote to major incident", "Why P2?"). Picking one fires
|
|
45
|
+
* <code>suggestion-select</code>; the app sends it and usually clears the list.</p>
|
|
30
46
|
* @tags display, ai
|
|
31
47
|
*
|
|
32
48
|
* @slot - Below the text, such as `wc-draft-card`s.
|
|
33
49
|
* @slot steps - Above the text, such as `wc-assistant-steps`.
|
|
34
50
|
* @slot avatar - Beside the message, such as a `wc-avatar`.
|
|
35
|
-
* @slot
|
|
51
|
+
* @slot meta - At the end of the line above the message, such as a "Work note" `wc-tag`.
|
|
52
|
+
* @slot footer - Below everything.
|
|
36
53
|
*
|
|
37
|
-
* @csspart
|
|
54
|
+
* @csspart header - The line above the message with the author, channel and time.
|
|
55
|
+
* @csspart bubble - The text bubble of the person or a participant.
|
|
38
56
|
* @csspart content - The answer's text.
|
|
39
57
|
* @csspart actions - The answer's actions.
|
|
58
|
+
* @csspart suggestions - The quick replies.
|
|
40
59
|
*
|
|
41
60
|
* @cssprop --chat-message-bubble-background - Background of the person's bubble.
|
|
42
61
|
* @cssprop --chat-message-bubble-color - Text color of the person's bubble.
|
|
62
|
+
* @cssprop --chat-message-participant-background - Background of a participant's bubble.
|
|
63
|
+
* @cssprop --chat-message-participant-color - Text color of a participant's bubble.
|
|
43
64
|
*
|
|
44
65
|
* @fires {CustomEvent<void>} regenerate - The person asked for the answer again.
|
|
45
66
|
* @fires {CustomEvent<ChatMessageFeedbackDetail>} feedback - The person rated the answer, or took the rating back (`value: ''`).
|
|
67
|
+
* @fires {CustomEvent<ChatMessageSuggestionDetail>} suggestion-select - The person picked a quick reply.
|
|
46
68
|
*
|
|
47
69
|
* @example
|
|
48
70
|
* ```html
|
|
49
71
|
* <wc-chat-message from="user" value="Will I get a loaner before Friday?"></wc-chat-message>
|
|
50
72
|
* <wc-chat-message value="Desk support has **2 loaners** free."></wc-chat-message>
|
|
51
73
|
* ```
|
|
74
|
+
* @example
|
|
75
|
+
* ```html
|
|
76
|
+
* <wc-chat-message from="participant" author="Priya Shah" channel="Teams"
|
|
77
|
+
* datetime="2026-11-08T09:41:00" value="VPN keeps dropping every ten minutes."></wc-chat-message>
|
|
78
|
+
* ```
|
|
52
79
|
*/
|
|
53
80
|
export declare class ChatMessage extends LitElement {
|
|
54
81
|
static styles: import("lit").CSSResultGroup[];
|
|
55
|
-
/** Who wrote it: the person (`user`)
|
|
82
|
+
/** Who wrote it: the person (`user`), the assistant (`assistant`, default) or another person (`participant`). */
|
|
56
83
|
from: ChatMessageFrom;
|
|
57
|
-
/** Name read before
|
|
84
|
+
/** Name shown above a participant's message and read before every message; defaults to "You", "Assistant" or "Participant". */
|
|
58
85
|
author: string;
|
|
86
|
+
/** When it was written, as an ISO 8601 date-time; shown as a time above the message. */
|
|
87
|
+
datetime: string;
|
|
88
|
+
/** Where it came from, such as "Teams"; shown as "via Teams" above the message. */
|
|
89
|
+
channel: string;
|
|
59
90
|
/** The text, as Markdown. */
|
|
60
91
|
value: string;
|
|
61
92
|
/** The answer is still arriving. Reflected, so `wc-chat-thread` can announce it once complete. */
|
|
@@ -74,15 +105,25 @@ export declare class ChatMessage extends LitElement {
|
|
|
74
105
|
feedback: ChatMessageFeedback;
|
|
75
106
|
/** Removes copy, Try again and the rating from an answer. */
|
|
76
107
|
hideActions: boolean;
|
|
108
|
+
/** Quick replies shown as chips under the message once it is complete. */
|
|
109
|
+
suggestions: string[];
|
|
110
|
+
/** Locale for the time; defaults to the nearest `lang`, else the browser's. */
|
|
111
|
+
locale?: string;
|
|
77
112
|
/** Per-instance string overrides. */
|
|
78
113
|
strings?: Partial<PeacockStrings>;
|
|
114
|
+
/** The `meta` slot has content. */
|
|
115
|
+
private _hasMeta;
|
|
79
116
|
private readonly i18n;
|
|
80
117
|
/** The name read before the message. */
|
|
81
118
|
get authorName(): string;
|
|
119
|
+
private _onMetaChange;
|
|
120
|
+
private _pick;
|
|
82
121
|
private regenerate;
|
|
83
122
|
private rate;
|
|
84
123
|
private renderText;
|
|
85
124
|
private renderError;
|
|
86
125
|
private renderActions;
|
|
126
|
+
private renderHeader;
|
|
127
|
+
private renderSuggestions;
|
|
87
128
|
render(): import("lit-html").TemplateResult<1>;
|
|
88
129
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ChatMessage, type ChatMessageFrom, type ChatMessageFeedback, type ChatMessageFeedbackDetail, } from './chat-message.js';
|
|
1
|
+
export { ChatMessage, type ChatMessageFrom, type ChatMessageFeedback, type ChatMessageFeedbackDetail, type ChatMessageSuggestionDetail, } from './chat-message.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label Chat Event
|
|
4
|
+
* @tag wc-chat-event
|
|
5
|
+
* @rawTag chat-event
|
|
6
|
+
* @summary A line in a conversation for something that happened rather than something said, such as "Alan Kay confirmed the rollback".
|
|
7
|
+
* @overview
|
|
8
|
+
* <p>Goes in <code>wc-chat-thread</code> between <code>wc-chat-message</code>s. It records what
|
|
9
|
+
* happened to the conversation's subject: a person confirmed a draft, a record changed state,
|
|
10
|
+
* someone joined. The content is the sentence; <code>icon</code> sets the glyph before it, and
|
|
11
|
+
* <code>datetime</code> adds the time after it.</p>
|
|
12
|
+
* <p>Use a message for anything someone wrote, and an event for anything the platform recorded.
|
|
13
|
+
* Events are not announced as they arrive; the record they describe is what changed.</p>
|
|
14
|
+
* @tags display, ai
|
|
15
|
+
*
|
|
16
|
+
* @slot - What happened. Bold the name of who did it with `<strong>`.
|
|
17
|
+
*
|
|
18
|
+
* @csspart event - The line.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <wc-chat-event icon="verified" datetime="2026-11-08T10:07:00">
|
|
23
|
+
* <strong>Alan Kay</strong> confirmed the rollback · policy NET-04
|
|
24
|
+
* </wc-chat-event>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class ChatEvent extends LitElement {
|
|
28
|
+
static styles: import("lit").CSSResultGroup[];
|
|
29
|
+
/** Material Symbols name of the glyph before the text, such as `verified`. */
|
|
30
|
+
icon: string;
|
|
31
|
+
/** When it happened, as an ISO 8601 date-time; shown as a time after the text. */
|
|
32
|
+
datetime: string;
|
|
33
|
+
/** Locale for the time; defaults to the nearest `lang`, else the browser's. */
|
|
34
|
+
locale?: string;
|
|
35
|
+
private readonly i18n;
|
|
36
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
37
|
+
}
|
|
@@ -10,17 +10,18 @@ export interface ChatThreadSuggestionDetail {
|
|
|
10
10
|
* @rawTag chat-thread
|
|
11
11
|
* @summary The scrolling log of a conversation: keeps the latest message in view and announces finished answers.
|
|
12
12
|
* @overview
|
|
13
|
-
* <p>Holds <code>wc-chat-message</code>s, oldest first
|
|
13
|
+
* <p>Holds <code>wc-chat-message</code>s, oldest first, with <code>wc-chat-event</code> lines between
|
|
14
|
+
* them for what happened along the way. It fills its container and scrolls; while
|
|
14
15
|
* the person reads the end, new messages and growing answers stay in view. Scrolling up stops that,
|
|
15
16
|
* and a <strong>Jump to latest</strong> button appears.</p>
|
|
16
17
|
* <p>It is a log (<code>role="log"</code>), but not a live region of its own: streaming text would be
|
|
17
|
-
* read word by word. Instead, an assistant answer
|
|
18
|
-
* <code>streaming</code> turns off), as "Assistant: …".</p>
|
|
18
|
+
* read word by word. Instead, an assistant answer or a participant's message is announced once,
|
|
19
|
+
* when it is complete (its <code>streaming</code> turns off), as "Assistant: …".</p>
|
|
19
20
|
* <p>Before the first message it shows the <code>empty</code> slot and <code>suggestions</code>: prompt
|
|
20
21
|
* starters as chips that fire <code>suggestion-select</code>.</p>
|
|
21
22
|
* @tags display, ai
|
|
22
23
|
*
|
|
23
|
-
* @slot - The `wc-chat-message`s.
|
|
24
|
+
* @slot - The `wc-chat-message`s and `wc-chat-event`s.
|
|
24
25
|
* @slot empty - Shown while there are no messages, above the suggestions.
|
|
25
26
|
*
|
|
26
27
|
* @csspart scroller - The scrolling area.
|
|
@@ -57,6 +58,8 @@ export declare class ChatThread extends LitElement {
|
|
|
57
58
|
private _mutations?;
|
|
58
59
|
/** Set while Jump to latest scrolls smoothly to the end. */
|
|
59
60
|
private _seeking;
|
|
61
|
+
/** The scroll position at the last scroll event, to tell the reader scrolling up from growth. */
|
|
62
|
+
private _lastScrollTop;
|
|
60
63
|
/** Messages already announced or present from the start, which are not announced. */
|
|
61
64
|
private readonly _settled;
|
|
62
65
|
connectedCallback(): void;
|
|
@@ -100,6 +100,7 @@ export declare class CodeEditor extends BaseInput {
|
|
|
100
100
|
helperText: string;
|
|
101
101
|
/** Shows the editor in its error state with `error-text`. */
|
|
102
102
|
error: boolean;
|
|
103
|
+
/** Error message shown below the editor while `error` is set; replaces the help text. */
|
|
103
104
|
errorText: string;
|
|
104
105
|
/** TypeScript declarations (a `.d.ts`) for completions in TypeScript and JavaScript, such as the modules the code may import. */
|
|
105
106
|
libSource: string | undefined;
|
|
@@ -50,7 +50,9 @@ export declare class DatePicker extends LitElement {
|
|
|
50
50
|
hideOutsideDays: boolean;
|
|
51
51
|
/** Shows Today and Clear buttons below the calendar. */
|
|
52
52
|
showActions: boolean;
|
|
53
|
+
/** Disables the calendar: no date can be focused or picked. */
|
|
53
54
|
disabled: boolean;
|
|
55
|
+
/** Shows the selected date but stops the user changing it. */
|
|
54
56
|
readonly: boolean;
|
|
55
57
|
/** Return true for dates that cannot be picked, such as holidays. */
|
|
56
58
|
isDateDisabled?: (iso: string) => boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { DiagramPoint } from '../__internal/diagram/types.js';
|
|
2
|
+
export interface MapLayoutNode {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Nodes in the same group are pulled together. */
|
|
5
|
+
group?: string;
|
|
6
|
+
/** A fixed position (pinned by the app or by dragging). */
|
|
7
|
+
pinned?: DiagramPoint;
|
|
8
|
+
}
|
|
9
|
+
export interface MapLayoutEdge {
|
|
10
|
+
source: string;
|
|
11
|
+
target: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MapLayoutOptions {
|
|
14
|
+
/** Card size used for spacing. */
|
|
15
|
+
nodeWidth: number;
|
|
16
|
+
nodeHeight: number;
|
|
17
|
+
/** Earlier positions to start from, so a live update moves as little as possible. */
|
|
18
|
+
previous?: Map<string, DiagramPoint>;
|
|
19
|
+
/** The node at the centre of a radial layout. */
|
|
20
|
+
center?: string;
|
|
21
|
+
}
|
|
22
|
+
/** Room a group box takes around its nodes, matching how the map draws groups. */
|
|
23
|
+
export declare const GROUP_PADDING: {
|
|
24
|
+
x: number;
|
|
25
|
+
top: number;
|
|
26
|
+
bottom: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* An organic layout: connected nodes attract, all nodes repel, nodes of a group drift together.
|
|
30
|
+
* Starts from `previous` positions when given, so live updates are stable. Deterministic for the
|
|
31
|
+
* same input (no random start).
|
|
32
|
+
*/
|
|
33
|
+
export declare function forceLayout(nodes: MapLayoutNode[], edges: MapLayoutEdge[], options: MapLayoutOptions): Map<string, DiagramPoint>;
|
|
34
|
+
/**
|
|
35
|
+
* A layered layout, upstream on the left and downstream on the right: each node goes one column
|
|
36
|
+
* after its furthest caller, and nodes in a column are ordered to keep lines short (barycentre
|
|
37
|
+
* sweeps). Cycles are broken at the edge that closes them.
|
|
38
|
+
*/
|
|
39
|
+
export declare function layeredLayout(nodes: MapLayoutNode[], edges: MapLayoutEdge[], options: MapLayoutOptions): Map<string, DiagramPoint>;
|
|
40
|
+
/**
|
|
41
|
+
* A radial layout around `center`: rings by the number of hops (either direction), with each
|
|
42
|
+
* ring's nodes ordered to sit near the node that reached them. Unreached nodes go on an outer ring.
|
|
43
|
+
*/
|
|
44
|
+
export declare function radialLayout(nodes: MapLayoutNode[], edges: MapLayoutEdge[], options: MapLayoutOptions): Map<string, DiagramPoint>;
|
|
45
|
+
/** Ids reachable from `start` along edges: `upstream` follows edges backwards (who depends on it). */
|
|
46
|
+
export declare function reachable(start: string, edges: MapLayoutEdge[], direction: 'upstream' | 'downstream'): Set<string>;
|
|
47
|
+
/** Ids within `hops` steps of `start`, in either direction. */
|
|
48
|
+
export declare function withinHops(start: string, edges: MapLayoutEdge[], hops: number): Set<string>;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { type PropertyValues } from 'lit';
|
|
2
|
+
import { DiagramCanvasElement } from '../__internal/diagram/canvas-base.js';
|
|
3
|
+
import type { DiagramOverview } from '../__internal/diagram/host.js';
|
|
4
|
+
import type { DiagramPoint, DiagramRect, DiagramViewportDetail } from '../__internal/diagram/types.js';
|
|
5
|
+
export type DependencyMapStatus = 'healthy' | 'degraded' | 'down' | 'unknown';
|
|
6
|
+
export type DependencyMapLayout = 'force' | 'layered' | 'radial';
|
|
7
|
+
export type DependencyMapImpact = 'none' | 'upstream' | 'downstream';
|
|
8
|
+
/** A service, database, queue, host or any other asset. */
|
|
9
|
+
export interface DependencyMapNode {
|
|
10
|
+
id: string;
|
|
11
|
+
/** What it is, for example "Service", "Database" or "Queue". Drives the legend and filters. */
|
|
12
|
+
type?: string;
|
|
13
|
+
headline: string;
|
|
14
|
+
supportingText?: string;
|
|
15
|
+
/** Material Symbols name. */
|
|
16
|
+
icon?: string;
|
|
17
|
+
status?: DependencyMapStatus;
|
|
18
|
+
/** Id of the group (cluster, namespace, business service) it belongs to. */
|
|
19
|
+
group?: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
/** Shown on the card when zoomed in, for example `{ rps: '1.2k', p95: '38 ms' }`. */
|
|
22
|
+
metrics?: Record<string, string | number>;
|
|
23
|
+
/** A fixed position, in canvas pixels. */
|
|
24
|
+
position?: DiagramPoint;
|
|
25
|
+
}
|
|
26
|
+
/** A relationship: `source` calls, depends on, runs on or is hosted in `target`. */
|
|
27
|
+
export interface DependencyMapEdge {
|
|
28
|
+
id: string;
|
|
29
|
+
source: string;
|
|
30
|
+
target: string;
|
|
31
|
+
/** What the relationship is, for example "calls" or "runs on". */
|
|
32
|
+
type?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
status?: DependencyMapStatus;
|
|
35
|
+
metrics?: {
|
|
36
|
+
/** Requests per second: drives the line width. */
|
|
37
|
+
rps?: number;
|
|
38
|
+
/** 95th percentile latency in milliseconds. */
|
|
39
|
+
latencyMs?: number;
|
|
40
|
+
/** Share of failed requests, 0 to 1: drives the line colour. */
|
|
41
|
+
errorRate?: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** A box around nodes, such as a cluster, namespace or business service. */
|
|
45
|
+
export interface DependencyMapGroup {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
icon?: string;
|
|
49
|
+
/** Starts collapsed into a single node. */
|
|
50
|
+
collapsed?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/** Which nodes to show. Leave a field out to show everything for it. */
|
|
53
|
+
export interface DependencyMapFilter {
|
|
54
|
+
types?: string[];
|
|
55
|
+
statuses?: DependencyMapStatus[];
|
|
56
|
+
/** Shows nodes with at least one of these tags. */
|
|
57
|
+
tags?: string[];
|
|
58
|
+
/** Matches the headline and supporting text. */
|
|
59
|
+
text?: string;
|
|
60
|
+
}
|
|
61
|
+
/** Detail of `select`. */
|
|
62
|
+
export interface DependencyMapSelectDetail {
|
|
63
|
+
id: string;
|
|
64
|
+
node?: DependencyMapNode;
|
|
65
|
+
group?: DependencyMapGroup;
|
|
66
|
+
}
|
|
67
|
+
/** Detail of `focus-change`. */
|
|
68
|
+
export interface DependencyMapFocusDetail {
|
|
69
|
+
id: string | null;
|
|
70
|
+
hops: number;
|
|
71
|
+
}
|
|
72
|
+
/** Detail of `filter-change`. */
|
|
73
|
+
export interface DependencyMapFilterDetail {
|
|
74
|
+
filter: DependencyMapFilter;
|
|
75
|
+
}
|
|
76
|
+
/** Detail of `node-drag-end`. */
|
|
77
|
+
export interface DependencyMapMoveDetail {
|
|
78
|
+
id: string;
|
|
79
|
+
position: DiagramPoint;
|
|
80
|
+
}
|
|
81
|
+
/** Detail of `group-toggle`. */
|
|
82
|
+
export interface DependencyMapGroupDetail {
|
|
83
|
+
id: string;
|
|
84
|
+
collapsed: boolean;
|
|
85
|
+
}
|
|
86
|
+
/** Detail of `viewport-change`. */
|
|
87
|
+
export type DependencyMapViewportDetail = DiagramViewportDetail;
|
|
88
|
+
/**
|
|
89
|
+
* @label Dependency map
|
|
90
|
+
* @tag wc-dependency-map
|
|
91
|
+
* @rawTag dependency-map
|
|
92
|
+
* @summary An explorable map of connected services and assets: service meshes, CMDB relationships, infrastructure.
|
|
93
|
+
*
|
|
94
|
+
* @overview
|
|
95
|
+
* <p>Set <code>nodes</code>, <code>edges</code> and optionally <code>groups</code>. Each node has a
|
|
96
|
+
* <code>type</code>, a <code>status</code> (healthy, degraded, down) shown as a ring, and an optional
|
|
97
|
+
* <code>group</code> (a cluster, namespace or business service) drawn as a box. Edges get thicker with
|
|
98
|
+
* traffic (<code>metrics.rps</code>) and warmer with errors (<code>metrics.errorRate</code>); hover one
|
|
99
|
+
* for its metrics. A collapsed group becomes one node with combined status and edges.</p>
|
|
100
|
+
* <p><code>layout</code> is <code>force</code> (organic, groups drift together), <code>layered</code>
|
|
101
|
+
* (callers on the left, dependencies on the right) or <code>radial</code> (rings of hops around the
|
|
102
|
+
* focused or selected node). Live updates move as little as possible, and changing layout glides.
|
|
103
|
+
* Drag a node to pin it.</p>
|
|
104
|
+
* <p>Select a node and set <code>impact</code> to <code>upstream</code> to light up everything that
|
|
105
|
+
* depends on it (what breaks if it goes down), or <code>downstream</code> for everything it depends on;
|
|
106
|
+
* the rest dims. <code>focused-node</code> shows only the nodes within <code>hops</code> of one node (press F
|
|
107
|
+
* on a node). <code>filter</code> limits nodes by type, status, tag or text, and the legend's types toggle
|
|
108
|
+
* it. Zoomed out, nodes become status dots; zoomed in, they show their metrics.</p>
|
|
109
|
+
* <p>Nodes are buttons with one tab stop. Down moves to a node it depends on, Up to one that depends
|
|
110
|
+
* on it, Left and Right to the other nodes along that step, Enter selects, F focuses and Escape
|
|
111
|
+
* clears. The canvas is infinite like <code>wc-diagram</code>, with the <code>controls</code> and
|
|
112
|
+
* <code>minimap</code> slots.</p>
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```html
|
|
116
|
+
* <wc-dependency-map id="mesh" style="height: 500px"></wc-dependency-map>
|
|
117
|
+
* <script>
|
|
118
|
+
* const map = document.getElementById('mesh');
|
|
119
|
+
* map.nodes = [
|
|
120
|
+
* { id: 'web', type: 'Service', headline: 'checkout-web', status: 'healthy' },
|
|
121
|
+
* { id: 'api', type: 'Service', headline: 'payments-api', status: 'degraded' },
|
|
122
|
+
* { id: 'db', type: 'Database', headline: 'payments-db', status: 'degraded', icon: 'database' }
|
|
123
|
+
* ];
|
|
124
|
+
* map.edges = [
|
|
125
|
+
* { id: 'e1', source: 'web', target: 'api', metrics: { rps: 420 } },
|
|
126
|
+
* { id: 'e2', source: 'api', target: 'db', metrics: { rps: 1200, errorRate: 0.008 } }
|
|
127
|
+
* ];
|
|
128
|
+
* </script>
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @slot controls - A `wc-diagram-controls`, shown at the bottom start corner.
|
|
132
|
+
* @slot minimap - A `wc-diagram-minimap`, shown at the bottom end corner.
|
|
133
|
+
*
|
|
134
|
+
* @fires {CustomEvent<DependencyMapSelectDetail>} select - A node or collapsed group was chosen. Detail contains `{ id, node, group }`.
|
|
135
|
+
* @fires {CustomEvent<DependencyMapFocusDetail>} focus-change - Focus mode was turned on or off with the keyboard. Detail contains `{ id, hops }`.
|
|
136
|
+
* @fires {CustomEvent<DependencyMapFilterDetail>} filter-change - The legend changed the filter. Detail contains `{ filter }`.
|
|
137
|
+
* @fires {CustomEvent<DependencyMapMoveDetail>} node-drag-end - A dragged node was dropped and pinned there. Detail contains `{ id, position }`.
|
|
138
|
+
* @fires {CustomEvent<DependencyMapGroupDetail>} group-toggle - A group was collapsed or expanded. Detail contains `{ id, collapsed }`.
|
|
139
|
+
* @fires {CustomEvent<DependencyMapViewportDetail>} viewport-change - Once per frame while the camera moves and once when it settles. Detail contains `{ x, y, zoom, settled }`.
|
|
140
|
+
*
|
|
141
|
+
* @cssprop --dependency-map-edge-color - Colour of edges. Defaults to outline.
|
|
142
|
+
* @cssprop --dependency-map-impact-color - Colour of the impact path. Defaults to the orange palette.
|
|
143
|
+
* @cssprop --dependency-map-background - Canvas background. Defaults to surface-container-lowest.
|
|
144
|
+
* @tags data
|
|
145
|
+
*/
|
|
146
|
+
export declare class DependencyMap extends DiagramCanvasElement {
|
|
147
|
+
static styles: import("lit").CSSResultGroup[];
|
|
148
|
+
nodes: DependencyMapNode[];
|
|
149
|
+
edges: DependencyMapEdge[];
|
|
150
|
+
groups: DependencyMapGroup[];
|
|
151
|
+
/** How nodes are arranged. */
|
|
152
|
+
layout: DependencyMapLayout;
|
|
153
|
+
/** Highlights what depends on the selected node (`upstream`) or what it depends on (`downstream`). */
|
|
154
|
+
impact: DependencyMapImpact;
|
|
155
|
+
/** Shows only the nodes within `hops` of this node. */
|
|
156
|
+
focusedNode: string;
|
|
157
|
+
/** How far focus mode reaches. */
|
|
158
|
+
hops: number;
|
|
159
|
+
/** Which nodes to show. */
|
|
160
|
+
filter: DependencyMapFilter;
|
|
161
|
+
/** Id of the selected node or collapsed group. */
|
|
162
|
+
selected: string;
|
|
163
|
+
/** Leaves out the legend. */
|
|
164
|
+
hideLegend: boolean;
|
|
165
|
+
private _collapsedGroups;
|
|
166
|
+
private _focusId;
|
|
167
|
+
private _tooltip?;
|
|
168
|
+
private _announcement;
|
|
169
|
+
private readonly _viewportEl?;
|
|
170
|
+
private readonly measure;
|
|
171
|
+
private visibleNodes;
|
|
172
|
+
private visibleById;
|
|
173
|
+
private visibleEdges;
|
|
174
|
+
private positions;
|
|
175
|
+
private overrides;
|
|
176
|
+
private pinned;
|
|
177
|
+
private layoutKey;
|
|
178
|
+
private stopGlide?;
|
|
179
|
+
private seenGroups;
|
|
180
|
+
/** The step keyboard navigation last took, for Left and Right. */
|
|
181
|
+
private navStep?;
|
|
182
|
+
private nodeDrag?;
|
|
183
|
+
disconnectedCallback(): void;
|
|
184
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
185
|
+
/** The map has no undo; these keep the canvas contract. */
|
|
186
|
+
get canUndo(): boolean;
|
|
187
|
+
get canRedo(): boolean;
|
|
188
|
+
undo(): void;
|
|
189
|
+
redo(): void;
|
|
190
|
+
/** Lays the map out again from scratch, keeping pinned nodes. */
|
|
191
|
+
relayout(): void;
|
|
192
|
+
/** Forgets every pinned position and lays the map out again. */
|
|
193
|
+
unpinAll(): void;
|
|
194
|
+
/** Shows only the nodes within `hops` of a node. */
|
|
195
|
+
focusOn(id: string, hops?: number): void;
|
|
196
|
+
clearFocus(): void;
|
|
197
|
+
/** Selects a node as a click would and brings it into view. */
|
|
198
|
+
selectNode(id: string): void;
|
|
199
|
+
collapseGroup(id: string): void;
|
|
200
|
+
expandGroup(id: string): void;
|
|
201
|
+
protected viewportElement(): HTMLElement | undefined;
|
|
202
|
+
protected contentBounds(): DiagramRect | undefined;
|
|
203
|
+
protected selectionRects(): DiagramRect[];
|
|
204
|
+
protected itemRect(id: string): DiagramRect | undefined;
|
|
205
|
+
protected firstItemRect(): DiagramRect | undefined;
|
|
206
|
+
protected overviewItems(): DiagramOverview['items'];
|
|
207
|
+
protected isBackground(target: EventTarget | null): boolean;
|
|
208
|
+
protected onBackgroundClick(): void;
|
|
209
|
+
/** Applies filter, focus and collapsed groups to get what is drawn. */
|
|
210
|
+
private buildGraph;
|
|
211
|
+
/** Lays the visible graph out when its shape changed, gliding from the old positions. */
|
|
212
|
+
private runLayout;
|
|
213
|
+
private glide;
|
|
214
|
+
private centerOf;
|
|
215
|
+
private rectOf;
|
|
216
|
+
private neighbours;
|
|
217
|
+
private impactSet;
|
|
218
|
+
private announce;
|
|
219
|
+
private select;
|
|
220
|
+
private moveFocusTo;
|
|
221
|
+
private toggleGroup;
|
|
222
|
+
private toggleType;
|
|
223
|
+
private onNodeKeyDown;
|
|
224
|
+
private onViewportKeyDown;
|
|
225
|
+
private onNodePointerDown;
|
|
226
|
+
private onDragMove;
|
|
227
|
+
private onDragUp;
|
|
228
|
+
private nodeElements;
|
|
229
|
+
private nodeElement;
|
|
230
|
+
private statusLabel;
|
|
231
|
+
private formatRps;
|
|
232
|
+
/** The point where the line from `center` toward `toward` leaves the node's box. */
|
|
233
|
+
private exitPoint;
|
|
234
|
+
private renderEdges;
|
|
235
|
+
private showTooltip;
|
|
236
|
+
private renderTooltip;
|
|
237
|
+
private renderGroups;
|
|
238
|
+
private renderNode;
|
|
239
|
+
private renderLegend;
|
|
240
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
241
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { DependencyMap } from './dependency-map.js';
|
|
2
|
+
export type { DependencyMapEdge, DependencyMapFilter, DependencyMapFilterDetail, DependencyMapFocusDetail, DependencyMapGroup, DependencyMapGroupDetail, DependencyMapImpact, DependencyMapLayout, DependencyMapMoveDetail, DependencyMapNode, DependencyMapSelectDetail, DependencyMapStatus, DependencyMapViewportDetail, } from './dependency-map.js';
|