@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
package/dist/typing-indicator.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent, a as i$1, b } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
|
-
import { I as I18nController } from './i18n-controller-
|
|
4
|
-
import './strings-
|
|
3
|
+
import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
|
|
4
|
+
import './strings-DnYjGbbc.js';
|
|
5
5
|
import './locale-DEsJZCQG.js';
|
|
6
6
|
|
|
7
7
|
var css_248z = i`* {
|
package/dist/url-field.js
CHANGED
|
@@ -3,16 +3,16 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { s as spread } from './spread-B5cgadZl.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
7
|
-
import { B as BaseField } from './BaseField-
|
|
8
|
-
import { n as nativeValidity } from './BaseInput-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
|
|
7
|
+
import { B as BaseField } from './BaseField-_unSNU5x.js';
|
|
8
|
+
import { n as nativeValidity } from './BaseInput-DtZH0fPJ.js';
|
|
9
9
|
import './base-Cl6v8-BZ.js';
|
|
10
10
|
import './directive-ZPhl09Yt.js';
|
|
11
|
-
import './strings-
|
|
11
|
+
import './strings-DnYjGbbc.js';
|
|
12
12
|
import './locale-DEsJZCQG.js';
|
|
13
13
|
import './element-internals-QME0yEz4.js';
|
|
14
|
-
import './form-associated-
|
|
15
|
-
import './suggestion-controller-
|
|
14
|
+
import './form-associated-BHbg72PG.js';
|
|
15
|
+
import './suggestion-controller-7YRQqkaI.js';
|
|
16
16
|
import './ai-controller-DR_Tg0sN.js';
|
|
17
17
|
|
|
18
18
|
var css_248z = i`* {
|
package/dist/user-menu.js
CHANGED
|
@@ -2,10 +2,10 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
-
import { M as MenuTriggerController } from './menu-trigger-controller-
|
|
5
|
+
import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
|
|
6
|
+
import { M as MenuTriggerController } from './menu-trigger-controller-CEJq1ugC.js';
|
|
7
7
|
import './base-Cl6v8-BZ.js';
|
|
8
|
-
import './strings-
|
|
8
|
+
import './strings-DnYjGbbc.js';
|
|
9
9
|
import './locale-DEsJZCQG.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = i`* {
|
package/dist/virtual-list.js
CHANGED
|
@@ -2,11 +2,11 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, D, A, b } from
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { c } from './repeat-D_ERDRYT.js';
|
|
5
|
-
import { I as I18nController } from './i18n-controller-
|
|
5
|
+
import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
|
|
6
6
|
import { v as virtualWindow } from './virtual-window-5OYyIqZh.js';
|
|
7
7
|
import './directive-ZPhl09Yt.js';
|
|
8
8
|
import './directive-helpers-Bx3mu42O.js';
|
|
9
|
-
import './strings-
|
|
9
|
+
import './strings-DnYjGbbc.js';
|
|
10
10
|
import './locale-DEsJZCQG.js';
|
|
11
11
|
|
|
12
12
|
var css_248z = i`* {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a duration for step cards and the run timeline: "420 ms", "1.2 s", "4 min 10 s",
|
|
3
|
+
* "2 h 14 min". Units come from `Intl`, so they follow the locale.
|
|
4
|
+
*/
|
|
5
|
+
function formatDuration(ms, locale) {
|
|
6
|
+
if (ms === undefined || !Number.isFinite(ms) || ms < 0)
|
|
7
|
+
return '';
|
|
8
|
+
const unit = (value, name, digits = 0) => new Intl.NumberFormat(locale, {
|
|
9
|
+
style: 'unit',
|
|
10
|
+
unit: name,
|
|
11
|
+
unitDisplay: 'short',
|
|
12
|
+
maximumFractionDigits: digits,
|
|
13
|
+
}).format(value);
|
|
14
|
+
if (ms < 1000)
|
|
15
|
+
return unit(Math.round(ms), 'millisecond');
|
|
16
|
+
const seconds = ms / 1000;
|
|
17
|
+
if (seconds < 60)
|
|
18
|
+
return unit(seconds, 'second', seconds < 10 ? 1 : 0);
|
|
19
|
+
const minutes = Math.floor(seconds / 60);
|
|
20
|
+
if (minutes < 60) {
|
|
21
|
+
const rest = Math.round(seconds - minutes * 60);
|
|
22
|
+
return rest
|
|
23
|
+
? `${unit(minutes, 'minute')} ${unit(rest, 'second')}`
|
|
24
|
+
: unit(minutes, 'minute');
|
|
25
|
+
}
|
|
26
|
+
const hours = Math.floor(minutes / 60);
|
|
27
|
+
const restMinutes = minutes - hours * 60;
|
|
28
|
+
return restMinutes
|
|
29
|
+
? `${unit(hours, 'hour')} ${unit(restMinutes, 'minute')}`
|
|
30
|
+
: unit(hours, 'hour');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { formatDuration as f };
|
|
34
|
+
//# sourceMappingURL=workflow-format-BsyveyeC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-format-BsyveyeC.js","sources":["../../src/workflow/workflow-format.ts"],"sourcesContent":["/**\n * Formats a duration for step cards and the run timeline: \"420 ms\", \"1.2 s\", \"4 min 10 s\",\n * \"2 h 14 min\". Units come from `Intl`, so they follow the locale.\n */\nexport function formatDuration(ms: number | undefined, locale: string): string {\n if (ms === undefined || !Number.isFinite(ms) || ms < 0) return '';\n const unit = (value: number, name: string, digits = 0) =>\n new Intl.NumberFormat(locale, {\n style: 'unit',\n unit: name,\n unitDisplay: 'short',\n maximumFractionDigits: digits,\n }).format(value);\n if (ms < 1000) return unit(Math.round(ms), 'millisecond');\n const seconds = ms / 1000;\n if (seconds < 60) return unit(seconds, 'second', seconds < 10 ? 1 : 0);\n const minutes = Math.floor(seconds / 60);\n if (minutes < 60) {\n const rest = Math.round(seconds - minutes * 60);\n return rest\n ? `${unit(minutes, 'minute')} ${unit(rest, 'second')}`\n : unit(minutes, 'minute');\n }\n const hours = Math.floor(minutes / 60);\n const restMinutes = minutes - hours * 60;\n return restMinutes\n ? `${unit(hours, 'hour')} ${unit(restMinutes, 'minute')}`\n : unit(hours, 'hour');\n}\n"],"names":[],"mappings":"AAAA;;;AAGG;AACG,SAAU,cAAc,CAAC,EAAsB,EAAE,MAAc,EAAA;AACnE,IAAA,IAAI,EAAE,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;AAAE,QAAA,OAAO,EAAE;AACjE,IAAA,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,IAAY,EAAE,MAAM,GAAG,CAAC,KACnD,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;AAC5B,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,WAAW,EAAE,OAAO;AACpB,QAAA,qBAAqB,EAAE,MAAM;AAC9B,KAAA,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IAClB,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC;AACzD,IAAA,MAAM,OAAO,GAAG,EAAE,GAAG,IAAI;IACzB,IAAI,OAAO,GAAG,EAAE;AAAE,QAAA,OAAO,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;AACxC,IAAA,IAAI,OAAO,GAAG,EAAE,EAAE;AAChB,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,GAAG,EAAE,CAAC;AAC/C,QAAA,OAAO;AACL,cAAE,CAAA,EAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA,CAAA,EAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;AACpD,cAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC7B;IACA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;AACtC,IAAA,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,EAAE;AACxC,IAAA,OAAO;AACL,UAAE,CAAA,EAAG,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA,CAAA,EAAI,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AACvD,UAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;AACzB;;;;"}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/** Whether a run step has been reached: it is running, waiting, paused or done. */
|
|
2
|
+
function isReached(status) {
|
|
3
|
+
return (status === 'running' ||
|
|
4
|
+
status === 'waiting' ||
|
|
5
|
+
status === 'paused' ||
|
|
6
|
+
status === 'success' ||
|
|
7
|
+
status === 'failed');
|
|
8
|
+
}
|
|
9
|
+
/** Logic steps offered when `step-types` is not set. */
|
|
10
|
+
const WORKFLOW_LOGIC_STEPS = [
|
|
11
|
+
{
|
|
12
|
+
kind: 'branch',
|
|
13
|
+
type: 'branch',
|
|
14
|
+
headline: 'Branch',
|
|
15
|
+
supportingText: 'If / else',
|
|
16
|
+
icon: 'call_split',
|
|
17
|
+
accent: 'orange',
|
|
18
|
+
category: 'Logic',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
kind: 'parallel',
|
|
22
|
+
type: 'parallel',
|
|
23
|
+
headline: 'Parallel',
|
|
24
|
+
supportingText: 'Run paths together',
|
|
25
|
+
icon: 'alt_route',
|
|
26
|
+
accent: 'orange',
|
|
27
|
+
category: 'Logic',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
kind: 'loop',
|
|
31
|
+
type: 'loop',
|
|
32
|
+
headline: 'Loop',
|
|
33
|
+
supportingText: 'For each item',
|
|
34
|
+
icon: 'repeat',
|
|
35
|
+
accent: 'purple',
|
|
36
|
+
category: 'Logic',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
kind: 'wait',
|
|
40
|
+
type: 'wait',
|
|
41
|
+
headline: 'Wait',
|
|
42
|
+
supportingText: 'Delay or event',
|
|
43
|
+
icon: 'schedule',
|
|
44
|
+
accent: 'yellow',
|
|
45
|
+
category: 'Logic',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
kind: 'end',
|
|
49
|
+
type: 'end',
|
|
50
|
+
headline: 'End',
|
|
51
|
+
icon: 'stop_circle',
|
|
52
|
+
accent: 'neutral',
|
|
53
|
+
category: 'Logic',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
function listKey(ref) {
|
|
57
|
+
switch (ref.kind) {
|
|
58
|
+
case 'path':
|
|
59
|
+
return `path:${ref.stepId}:${ref.pathId}`;
|
|
60
|
+
case 'loop':
|
|
61
|
+
return `loop:${ref.stepId}`;
|
|
62
|
+
case 'error':
|
|
63
|
+
return `error:${ref.stepId}`;
|
|
64
|
+
default:
|
|
65
|
+
return 'root';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** The lists of steps directly inside `step`, with their references. */
|
|
69
|
+
function childLists(step) {
|
|
70
|
+
if (step.type === 'branch' || step.type === 'parallel') {
|
|
71
|
+
return step.paths.map(p => ({
|
|
72
|
+
ref: { kind: 'path', stepId: step.id, pathId: p.id },
|
|
73
|
+
steps: p.steps,
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
if (step.type === 'loop') {
|
|
77
|
+
return [{ ref: { kind: 'loop', stepId: step.id }, steps: step.steps }];
|
|
78
|
+
}
|
|
79
|
+
if (step.type === 'action' && step.onError) {
|
|
80
|
+
return [{ ref: { kind: 'error', stepId: step.id }, steps: step.onError }];
|
|
81
|
+
}
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
/** Visits every step in reading order: a block, then what is inside it, then what follows. */
|
|
85
|
+
function walk(value, visit, options = {}) {
|
|
86
|
+
const visitList = (steps, ref, depth, parent) => {
|
|
87
|
+
steps.forEach((step, index) => {
|
|
88
|
+
visit({ step, ref, index, depth, parent });
|
|
89
|
+
if (!options.skip?.(step)) {
|
|
90
|
+
for (const child of childLists(step)) {
|
|
91
|
+
visitList(child.steps, child.ref, depth + 1, step);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
visitList(value.steps, { kind: 'root' }, 1);
|
|
97
|
+
}
|
|
98
|
+
function findStep(value, id) {
|
|
99
|
+
if (value.trigger?.id === id) {
|
|
100
|
+
return { step: value.trigger, ref: { kind: 'root' }, index: -1, depth: 1 };
|
|
101
|
+
}
|
|
102
|
+
let found;
|
|
103
|
+
walk(value, entry => {
|
|
104
|
+
if (!found && entry.step.id === id)
|
|
105
|
+
found = entry;
|
|
106
|
+
});
|
|
107
|
+
return found;
|
|
108
|
+
}
|
|
109
|
+
function getList(value, ref) {
|
|
110
|
+
if (ref.kind === 'root')
|
|
111
|
+
return value.steps;
|
|
112
|
+
const owner = findStep(value, ref.stepId)?.step;
|
|
113
|
+
if (!owner)
|
|
114
|
+
return undefined;
|
|
115
|
+
return childLists(owner).find(c => listKey(c.ref) === listKey(ref))?.steps;
|
|
116
|
+
}
|
|
117
|
+
/** Returns a new step list with `fn` applied to the list `ref` names, wherever it is nested. */
|
|
118
|
+
function mapLists(steps, ref, fn) {
|
|
119
|
+
return steps.map(step => {
|
|
120
|
+
if (ref.kind !== 'root' && step.id === ref.stepId) {
|
|
121
|
+
if (ref.kind === 'path' &&
|
|
122
|
+
(step.type === 'branch' || step.type === 'parallel')) {
|
|
123
|
+
return {
|
|
124
|
+
...step,
|
|
125
|
+
paths: step.paths.map(p => p.id === ref.pathId ? { ...p, steps: fn(p.steps) } : p),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
if (ref.kind === 'loop' && step.type === 'loop') {
|
|
129
|
+
return { ...step, steps: fn(step.steps) };
|
|
130
|
+
}
|
|
131
|
+
if (ref.kind === 'error' && step.type === 'action') {
|
|
132
|
+
return { ...step, onError: fn(step.onError ?? []) };
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (step.type === 'branch' || step.type === 'parallel') {
|
|
136
|
+
return {
|
|
137
|
+
...step,
|
|
138
|
+
paths: step.paths.map(p => ({
|
|
139
|
+
...p,
|
|
140
|
+
steps: mapLists(p.steps, ref, fn),
|
|
141
|
+
})),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (step.type === 'loop')
|
|
145
|
+
return { ...step, steps: mapLists(step.steps, ref, fn) };
|
|
146
|
+
if (step.type === 'action' && step.onError) {
|
|
147
|
+
return { ...step, onError: mapLists(step.onError, ref, fn) };
|
|
148
|
+
}
|
|
149
|
+
return step;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function updateList(value, ref, fn) {
|
|
153
|
+
if (ref.kind === 'root')
|
|
154
|
+
return { ...value, steps: fn(value.steps) };
|
|
155
|
+
return { ...value, steps: mapLists(value.steps, ref, fn) };
|
|
156
|
+
}
|
|
157
|
+
function insertStep(value, ref, index, step) {
|
|
158
|
+
return updateList(value, ref, list => [
|
|
159
|
+
...list.slice(0, index),
|
|
160
|
+
step,
|
|
161
|
+
...list.slice(index),
|
|
162
|
+
]);
|
|
163
|
+
}
|
|
164
|
+
function removeStep(value, id) {
|
|
165
|
+
if (value.trigger?.id === id) {
|
|
166
|
+
const rest = { ...value };
|
|
167
|
+
delete rest.trigger;
|
|
168
|
+
return rest;
|
|
169
|
+
}
|
|
170
|
+
const found = findStep(value, id);
|
|
171
|
+
if (!found)
|
|
172
|
+
return value;
|
|
173
|
+
return updateList(value, found.ref, list => list.filter(s => s.id !== id));
|
|
174
|
+
}
|
|
175
|
+
/** Moves a step to `index` in `ref`, where the index counts the list before the move. */
|
|
176
|
+
function moveStep(value, id, ref, index) {
|
|
177
|
+
const found = findStep(value, id);
|
|
178
|
+
if (!found || found.index < 0)
|
|
179
|
+
return value;
|
|
180
|
+
let target = index;
|
|
181
|
+
if (listKey(found.ref) === listKey(ref) && found.index < index)
|
|
182
|
+
target -= 1;
|
|
183
|
+
return insertStep(removeStep(value, id), ref, target, found.step);
|
|
184
|
+
}
|
|
185
|
+
function replaceStep(value, id, fn) {
|
|
186
|
+
if (value.trigger?.id === id) {
|
|
187
|
+
return { ...value, trigger: fn(value.trigger) };
|
|
188
|
+
}
|
|
189
|
+
const found = findStep(value, id);
|
|
190
|
+
if (!found)
|
|
191
|
+
return value;
|
|
192
|
+
return updateList(value, found.ref, list => list.map(s => (s.id === id ? fn(s) : s)));
|
|
193
|
+
}
|
|
194
|
+
/** Whether `id` is `step` or somewhere inside it. */
|
|
195
|
+
function contains(step, id) {
|
|
196
|
+
if (step.id === id)
|
|
197
|
+
return true;
|
|
198
|
+
return childLists(step).some(c => c.steps.some(s => contains(s, id)));
|
|
199
|
+
}
|
|
200
|
+
/** Every id used in the workflow. */
|
|
201
|
+
function allIds(value) {
|
|
202
|
+
const ids = new Set();
|
|
203
|
+
if (value.trigger)
|
|
204
|
+
ids.add(value.trigger.id);
|
|
205
|
+
walk(value, ({ step }) => {
|
|
206
|
+
ids.add(step.id);
|
|
207
|
+
if (step.type === 'branch' || step.type === 'parallel') {
|
|
208
|
+
for (const p of step.paths)
|
|
209
|
+
ids.add(p.id);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return ids;
|
|
213
|
+
}
|
|
214
|
+
function uniqueId(base, taken) {
|
|
215
|
+
const clean = base.replace(/[^a-zA-Z0-9_-]+/g, '-') || 'step';
|
|
216
|
+
if (!taken.has(clean))
|
|
217
|
+
return clean;
|
|
218
|
+
let i = 2;
|
|
219
|
+
while (taken.has(`${clean}-${i}`))
|
|
220
|
+
i += 1;
|
|
221
|
+
return `${clean}-${i}`;
|
|
222
|
+
}
|
|
223
|
+
/** A deep copy of `step` with fresh ids for it, its paths and everything inside. */
|
|
224
|
+
function cloneWithNewIds(step, taken) {
|
|
225
|
+
const fresh = (id) => {
|
|
226
|
+
const next = uniqueId(`${id}-copy`, taken);
|
|
227
|
+
taken.add(next);
|
|
228
|
+
return next;
|
|
229
|
+
};
|
|
230
|
+
const cloneList = (steps) => steps.map(s => cloneWithNewIds(s, taken));
|
|
231
|
+
const id = fresh(step.id);
|
|
232
|
+
if (step.type === 'branch' || step.type === 'parallel') {
|
|
233
|
+
return {
|
|
234
|
+
...step,
|
|
235
|
+
id,
|
|
236
|
+
paths: step.paths.map(p => ({
|
|
237
|
+
...p,
|
|
238
|
+
id: fresh(p.id),
|
|
239
|
+
steps: cloneList(p.steps),
|
|
240
|
+
})),
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (step.type === 'loop')
|
|
244
|
+
return { ...step, id, steps: cloneList(step.steps) };
|
|
245
|
+
if (step.type === 'action' && step.onError) {
|
|
246
|
+
return { ...step, id, onError: cloneList(step.onError) };
|
|
247
|
+
}
|
|
248
|
+
return { ...step, id };
|
|
249
|
+
}
|
|
250
|
+
/** Whether running a list of steps always stops before reaching what comes after it. */
|
|
251
|
+
function listTerminates(steps) {
|
|
252
|
+
const last = steps[steps.length - 1];
|
|
253
|
+
if (!last)
|
|
254
|
+
return false;
|
|
255
|
+
if (last.type === 'end')
|
|
256
|
+
return true;
|
|
257
|
+
if (last.type === 'branch' || last.type === 'parallel') {
|
|
258
|
+
return (last.paths.length > 0 && last.paths.every(p => listTerminates(p.steps)));
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
/** Whether a block step stops the flow (every path ends). */
|
|
263
|
+
function stepTerminates(step) {
|
|
264
|
+
return listTerminates([step]);
|
|
265
|
+
}
|
|
266
|
+
/** Counts the steps inside a block, for its collapsed summary. */
|
|
267
|
+
function countInside(step) {
|
|
268
|
+
return childLists(step).reduce((n, c) => n + c.steps.reduce((m, s) => m + 1 + countInside(s), 0), 0);
|
|
269
|
+
}
|
|
270
|
+
/** Builds a new step from a palette entry. */
|
|
271
|
+
function createStep(type, taken) {
|
|
272
|
+
const id = uniqueId(type.kind, taken);
|
|
273
|
+
taken.add(id);
|
|
274
|
+
const pathId = (n) => {
|
|
275
|
+
const p = uniqueId(`${id}-path-${n}`, taken);
|
|
276
|
+
taken.add(p);
|
|
277
|
+
return p;
|
|
278
|
+
};
|
|
279
|
+
const base = {
|
|
280
|
+
id,
|
|
281
|
+
kind: type.kind,
|
|
282
|
+
headline: type.headline,
|
|
283
|
+
supportingText: type.supportingText,
|
|
284
|
+
icon: type.icon,
|
|
285
|
+
accent: type.accent,
|
|
286
|
+
};
|
|
287
|
+
let step;
|
|
288
|
+
switch (type.type) {
|
|
289
|
+
case 'branch':
|
|
290
|
+
step = {
|
|
291
|
+
...base,
|
|
292
|
+
type: 'branch',
|
|
293
|
+
paths: [
|
|
294
|
+
{ id: pathId(1), label: 'If', steps: [] },
|
|
295
|
+
{ id: pathId(2), label: 'Otherwise', isDefault: true, steps: [] },
|
|
296
|
+
],
|
|
297
|
+
};
|
|
298
|
+
break;
|
|
299
|
+
case 'parallel':
|
|
300
|
+
step = {
|
|
301
|
+
...base,
|
|
302
|
+
type: 'parallel',
|
|
303
|
+
paths: [
|
|
304
|
+
{ id: pathId(1), label: 'Path 1', steps: [] },
|
|
305
|
+
{ id: pathId(2), label: 'Path 2', steps: [] },
|
|
306
|
+
],
|
|
307
|
+
};
|
|
308
|
+
break;
|
|
309
|
+
case 'loop':
|
|
310
|
+
step = { ...base, type: 'loop', mode: 'for-each', steps: [] };
|
|
311
|
+
break;
|
|
312
|
+
case 'wait':
|
|
313
|
+
step = { ...base, type: 'wait' };
|
|
314
|
+
break;
|
|
315
|
+
case 'end':
|
|
316
|
+
step = { ...base, type: 'end' };
|
|
317
|
+
break;
|
|
318
|
+
default:
|
|
319
|
+
step = { ...base, type: 'action' };
|
|
320
|
+
}
|
|
321
|
+
return {
|
|
322
|
+
...step,
|
|
323
|
+
...(type.defaults ?? {}),
|
|
324
|
+
id,
|
|
325
|
+
type: step.type,
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export { WORKFLOW_LOGIC_STEPS as W, removeStep as a, allIds as b, createStep as c, insertStep as d, cloneWithNewIds as e, findStep as f, getList as g, contains as h, isReached as i, countInside as j, listTerminates as k, listKey as l, moveStep as m, replaceStep as r, stepTerminates as s, walk as w };
|
|
330
|
+
//# sourceMappingURL=workflow-model-CauduOG2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-model-CauduOG2.js","sources":["../../src/workflow/workflow-model.ts"],"sourcesContent":["/** Colour of a step's icon tile, from the theme's accent palettes. */\nexport type WorkflowAccent =\n | 'primary'\n | 'tertiary'\n | 'blue'\n | 'green'\n | 'orange'\n | 'purple'\n | 'red'\n | 'yellow'\n | 'neutral';\n\n/** A label and value shown on a step card. `{{Step.output}}` in `value` renders as a data pill. */\nexport interface WorkflowField {\n label: string;\n value: string;\n}\n\n/** A value a step produces for later steps. */\nexport interface WorkflowOutput {\n name: string;\n type?: string;\n}\n\n/** A tool an AI agent step may call. */\nexport interface WorkflowTool {\n id: string;\n headline: string;\n icon?: string;\n}\n\n/** Who works on a human task. */\nexport interface WorkflowAssignee {\n name: string;\n src?: string;\n}\n\n// Steps nest steps, so these types refer to the union declared after them.\n/* eslint-disable no-use-before-define */\n\ninterface WorkflowStepBase {\n /** Unique across the whole workflow. */\n id: string;\n /** The step's title. */\n headline?: string;\n /** A short second line, usually the kind of step (\"HTTP request\", \"Approval\"). */\n supportingText?: string;\n /** Material Symbols name for the icon tile. */\n icon?: string;\n accent?: WorkflowAccent;\n /** The step type's `kind`, for your own lookups. */\n kind?: string;\n /** Marks the step as needing attention; `errorText` says why. */\n invalid?: boolean;\n errorText?: string;\n /** Starts a branch or loop collapsed. */\n collapsed?: boolean;\n /** The step's data is pinned for testing: shown with a pin badge. */\n pinned?: boolean;\n /** Your own data, kept with the step. */\n data?: Record<string, unknown>;\n}\n\nexport interface WorkflowActionStep extends WorkflowStepBase {\n type: 'action';\n fields?: WorkflowField[];\n outputs?: WorkflowOutput[];\n tools?: WorkflowTool[];\n assignee?: WorkflowAssignee;\n /** Steps that run when this step fails, drawn as a side path. */\n onError?: WorkflowStep[];\n}\n\nexport interface WorkflowPath {\n id: string;\n /** Shown on the pill at the top of the path, for example \"amount > 1,000\" or \"Otherwise\". */\n label: string;\n /** The default path (\"else\"), shown in a quieter pill. */\n isDefault?: boolean;\n /** Your own condition, for example a `wc-condition-builder` value. */\n condition?: unknown;\n steps: WorkflowStep[];\n}\n\nexport interface WorkflowBranchStep extends WorkflowStepBase {\n /** `branch` runs the first path whose condition holds; `parallel` runs every path and waits for all. */\n type: 'branch' | 'parallel';\n paths: WorkflowPath[];\n}\n\nexport interface WorkflowLoopStep extends WorkflowStepBase {\n type: 'loop';\n mode?: 'for-each' | 'while' | 'until';\n /** What the loop goes over or tests, for example `{{Trigger.line_items}}`. */\n over?: string;\n steps: WorkflowStep[];\n}\n\nexport interface WorkflowWaitStep extends WorkflowStepBase {\n type: 'wait';\n /** A time or event, for example \"3 days\" or \"Approval received\". */\n until?: string;\n}\n\nexport interface WorkflowEndStep extends WorkflowStepBase {\n type: 'end';\n}\n\nexport type WorkflowStep =\n | WorkflowActionStep\n | WorkflowBranchStep\n | WorkflowLoopStep\n | WorkflowWaitStep\n | WorkflowEndStep;\n\n/* eslint-enable no-use-before-define */\n\nexport interface WorkflowValue {\n /** What starts the workflow, drawn first. */\n trigger?: WorkflowActionStep;\n steps: WorkflowStep[];\n}\n\n/** Where one step is in a run. */\nexport type WorkflowRunStepStatus =\n | 'queued'\n | 'running'\n | 'waiting'\n | 'paused'\n | 'success'\n | 'failed'\n | 'skipped'\n | 'canceled';\n\n/** What happened to one step in a run. */\nexport interface WorkflowRunStep {\n status: WorkflowRunStepStatus;\n /** When the step started, in milliseconds (an epoch time or an offset from the run's start). */\n startedAt?: number;\n durationMs?: number;\n input?: unknown;\n output?: unknown;\n error?: { message: string; detail?: string };\n /** How many times the step has been tried. */\n attempts?: number;\n /** For a loop: what each iteration did, keyed by the ids of the steps inside. */\n iterations?: Record<string, WorkflowRunStep>[];\n}\n\n/** A run of the workflow, for debugging and run history. Your engine produces it; the component only shows it. */\nexport interface WorkflowRun {\n id: string;\n status: 'running' | 'paused' | 'success' | 'failed' | 'canceled';\n startedAt?: number;\n durationMs?: number;\n /** The step running now, or paused on. */\n current?: string;\n steps: Record<string, WorkflowRunStep>;\n}\n\n/** Whether a run step has been reached: it is running, waiting, paused or done. */\nexport function isReached(status: WorkflowRunStepStatus | undefined): boolean {\n return (\n status === 'running' ||\n status === 'waiting' ||\n status === 'paused' ||\n status === 'success' ||\n status === 'failed'\n );\n}\n\n/** An entry in the add-step palette. */\nexport interface WorkflowStepType {\n /** Your identifier, copied to the new step's `kind`. */\n kind: string;\n type: WorkflowStep['type'];\n headline: string;\n supportingText?: string;\n icon?: string;\n accent?: WorkflowAccent;\n /** Heading the entry is grouped under. */\n category?: string;\n /** Offered only when adding a trigger. */\n trigger?: boolean;\n /** Extra fields for new steps of this type, such as `fields` or `paths`. */\n defaults?: Partial<WorkflowStep>;\n}\n\n/** Where a list of steps lives: the main sequence, a branch path, a loop body or an error path. */\nexport type WorkflowListRef =\n | { kind: 'root' }\n | { kind: 'path'; stepId: string; pathId: string }\n | { kind: 'loop'; stepId: string }\n | { kind: 'error'; stepId: string };\n\n/** Logic steps offered when `step-types` is not set. */\nexport const WORKFLOW_LOGIC_STEPS: WorkflowStepType[] = [\n {\n kind: 'branch',\n type: 'branch',\n headline: 'Branch',\n supportingText: 'If / else',\n icon: 'call_split',\n accent: 'orange',\n category: 'Logic',\n },\n {\n kind: 'parallel',\n type: 'parallel',\n headline: 'Parallel',\n supportingText: 'Run paths together',\n icon: 'alt_route',\n accent: 'orange',\n category: 'Logic',\n },\n {\n kind: 'loop',\n type: 'loop',\n headline: 'Loop',\n supportingText: 'For each item',\n icon: 'repeat',\n accent: 'purple',\n category: 'Logic',\n },\n {\n kind: 'wait',\n type: 'wait',\n headline: 'Wait',\n supportingText: 'Delay or event',\n icon: 'schedule',\n accent: 'yellow',\n category: 'Logic',\n },\n {\n kind: 'end',\n type: 'end',\n headline: 'End',\n icon: 'stop_circle',\n accent: 'neutral',\n category: 'Logic',\n },\n];\n\nexport function listKey(ref: WorkflowListRef): string {\n switch (ref.kind) {\n case 'path':\n return `path:${ref.stepId}:${ref.pathId}`;\n case 'loop':\n return `loop:${ref.stepId}`;\n case 'error':\n return `error:${ref.stepId}`;\n default:\n return 'root';\n }\n}\n\n/** The lists of steps directly inside `step`, with their references. */\nexport function childLists(\n step: WorkflowStep,\n): { ref: WorkflowListRef; steps: WorkflowStep[] }[] {\n if (step.type === 'branch' || step.type === 'parallel') {\n return step.paths.map(p => ({\n ref: { kind: 'path', stepId: step.id, pathId: p.id },\n steps: p.steps,\n }));\n }\n if (step.type === 'loop') {\n return [{ ref: { kind: 'loop', stepId: step.id }, steps: step.steps }];\n }\n if (step.type === 'action' && step.onError) {\n return [{ ref: { kind: 'error', stepId: step.id }, steps: step.onError }];\n }\n return [];\n}\n\nexport interface WalkEntry {\n step: WorkflowStep;\n ref: WorkflowListRef;\n index: number;\n depth: number;\n parent?: WorkflowStep;\n}\n\n/** Visits every step in reading order: a block, then what is inside it, then what follows. */\nexport function walk(\n value: WorkflowValue,\n visit: (entry: WalkEntry) => void,\n options: { skip?: (step: WorkflowStep) => boolean } = {},\n) {\n const visitList = (\n steps: WorkflowStep[],\n ref: WorkflowListRef,\n depth: number,\n parent?: WorkflowStep,\n ) => {\n steps.forEach((step, index) => {\n visit({ step, ref, index, depth, parent });\n if (!options.skip?.(step)) {\n for (const child of childLists(step)) {\n visitList(child.steps, child.ref, depth + 1, step);\n }\n }\n });\n };\n visitList(value.steps, { kind: 'root' }, 1);\n}\n\nexport function findStep(\n value: WorkflowValue,\n id: string,\n): WalkEntry | undefined {\n if (value.trigger?.id === id) {\n return { step: value.trigger, ref: { kind: 'root' }, index: -1, depth: 1 };\n }\n let found: WalkEntry | undefined;\n walk(value, entry => {\n if (!found && entry.step.id === id) found = entry;\n });\n return found;\n}\n\nexport function getList(\n value: WorkflowValue,\n ref: WorkflowListRef,\n): WorkflowStep[] | undefined {\n if (ref.kind === 'root') return value.steps;\n const owner = findStep(value, ref.stepId)?.step;\n if (!owner) return undefined;\n return childLists(owner).find(c => listKey(c.ref) === listKey(ref))?.steps;\n}\n\n/** Returns a new step list with `fn` applied to the list `ref` names, wherever it is nested. */\nfunction mapLists(\n steps: WorkflowStep[],\n ref: WorkflowListRef,\n fn: (list: WorkflowStep[]) => WorkflowStep[],\n): WorkflowStep[] {\n return steps.map(step => {\n if (ref.kind !== 'root' && step.id === ref.stepId) {\n if (\n ref.kind === 'path' &&\n (step.type === 'branch' || step.type === 'parallel')\n ) {\n return {\n ...step,\n paths: step.paths.map(p =>\n p.id === ref.pathId ? { ...p, steps: fn(p.steps) } : p,\n ),\n };\n }\n if (ref.kind === 'loop' && step.type === 'loop') {\n return { ...step, steps: fn(step.steps) };\n }\n if (ref.kind === 'error' && step.type === 'action') {\n return { ...step, onError: fn(step.onError ?? []) };\n }\n }\n if (step.type === 'branch' || step.type === 'parallel') {\n return {\n ...step,\n paths: step.paths.map(p => ({\n ...p,\n steps: mapLists(p.steps, ref, fn),\n })),\n };\n }\n if (step.type === 'loop')\n return { ...step, steps: mapLists(step.steps, ref, fn) };\n if (step.type === 'action' && step.onError) {\n return { ...step, onError: mapLists(step.onError, ref, fn) };\n }\n return step;\n });\n}\n\nexport function updateList(\n value: WorkflowValue,\n ref: WorkflowListRef,\n fn: (list: WorkflowStep[]) => WorkflowStep[],\n): WorkflowValue {\n if (ref.kind === 'root') return { ...value, steps: fn(value.steps) };\n return { ...value, steps: mapLists(value.steps, ref, fn) };\n}\n\nexport function insertStep(\n value: WorkflowValue,\n ref: WorkflowListRef,\n index: number,\n step: WorkflowStep,\n): WorkflowValue {\n return updateList(value, ref, list => [\n ...list.slice(0, index),\n step,\n ...list.slice(index),\n ]);\n}\n\nexport function removeStep(value: WorkflowValue, id: string): WorkflowValue {\n if (value.trigger?.id === id) {\n const rest = { ...value };\n delete rest.trigger;\n return rest;\n }\n const found = findStep(value, id);\n if (!found) return value;\n return updateList(value, found.ref, list => list.filter(s => s.id !== id));\n}\n\n/** Moves a step to `index` in `ref`, where the index counts the list before the move. */\nexport function moveStep(\n value: WorkflowValue,\n id: string,\n ref: WorkflowListRef,\n index: number,\n): WorkflowValue {\n const found = findStep(value, id);\n if (!found || found.index < 0) return value;\n let target = index;\n if (listKey(found.ref) === listKey(ref) && found.index < index) target -= 1;\n return insertStep(removeStep(value, id), ref, target, found.step);\n}\n\nexport function replaceStep(\n value: WorkflowValue,\n id: string,\n fn: (step: WorkflowStep) => WorkflowStep,\n): WorkflowValue {\n if (value.trigger?.id === id) {\n return { ...value, trigger: fn(value.trigger) as WorkflowActionStep };\n }\n const found = findStep(value, id);\n if (!found) return value;\n return updateList(value, found.ref, list =>\n list.map(s => (s.id === id ? fn(s) : s)),\n );\n}\n\n/** Whether `id` is `step` or somewhere inside it. */\nexport function contains(step: WorkflowStep, id: string): boolean {\n if (step.id === id) return true;\n return childLists(step).some(c => c.steps.some(s => contains(s, id)));\n}\n\n/** Every id used in the workflow. */\nexport function allIds(value: WorkflowValue): Set<string> {\n const ids = new Set<string>();\n if (value.trigger) ids.add(value.trigger.id);\n walk(value, ({ step }) => {\n ids.add(step.id);\n if (step.type === 'branch' || step.type === 'parallel') {\n for (const p of step.paths) ids.add(p.id);\n }\n });\n return ids;\n}\n\nexport function uniqueId(base: string, taken: Set<string>): string {\n const clean = base.replace(/[^a-zA-Z0-9_-]+/g, '-') || 'step';\n if (!taken.has(clean)) return clean;\n let i = 2;\n while (taken.has(`${clean}-${i}`)) i += 1;\n return `${clean}-${i}`;\n}\n\n/** A deep copy of `step` with fresh ids for it, its paths and everything inside. */\nexport function cloneWithNewIds(\n step: WorkflowStep,\n taken: Set<string>,\n): WorkflowStep {\n const fresh = (id: string) => {\n const next = uniqueId(`${id}-copy`, taken);\n taken.add(next);\n return next;\n };\n const cloneList = (steps: WorkflowStep[]) =>\n steps.map(s => cloneWithNewIds(s, taken));\n const id = fresh(step.id);\n if (step.type === 'branch' || step.type === 'parallel') {\n return {\n ...step,\n id,\n paths: step.paths.map(p => ({\n ...p,\n id: fresh(p.id),\n steps: cloneList(p.steps),\n })),\n };\n }\n if (step.type === 'loop')\n return { ...step, id, steps: cloneList(step.steps) };\n if (step.type === 'action' && step.onError) {\n return { ...step, id, onError: cloneList(step.onError) };\n }\n return { ...step, id };\n}\n\n/** Whether running a list of steps always stops before reaching what comes after it. */\nexport function listTerminates(steps: WorkflowStep[]): boolean {\n const last = steps[steps.length - 1];\n if (!last) return false;\n if (last.type === 'end') return true;\n if (last.type === 'branch' || last.type === 'parallel') {\n return (\n last.paths.length > 0 && last.paths.every(p => listTerminates(p.steps))\n );\n }\n return false;\n}\n\n/** Whether a block step stops the flow (every path ends). */\nexport function stepTerminates(step: WorkflowStep): boolean {\n return listTerminates([step]);\n}\n\n/** Counts the steps inside a block, for its collapsed summary. */\nexport function countInside(step: WorkflowStep): number {\n return childLists(step).reduce(\n (n, c) => n + c.steps.reduce((m, s) => m + 1 + countInside(s), 0),\n 0,\n );\n}\n\n/** Builds a new step from a palette entry. */\nexport function createStep(\n type: WorkflowStepType,\n taken: Set<string>,\n): WorkflowStep {\n const id = uniqueId(type.kind, taken);\n taken.add(id);\n const pathId = (n: number) => {\n const p = uniqueId(`${id}-path-${n}`, taken);\n taken.add(p);\n return p;\n };\n const base = {\n id,\n kind: type.kind,\n headline: type.headline,\n supportingText: type.supportingText,\n icon: type.icon,\n accent: type.accent,\n };\n let step: WorkflowStep;\n switch (type.type) {\n case 'branch':\n step = {\n ...base,\n type: 'branch',\n paths: [\n { id: pathId(1), label: 'If', steps: [] },\n { id: pathId(2), label: 'Otherwise', isDefault: true, steps: [] },\n ],\n };\n break;\n case 'parallel':\n step = {\n ...base,\n type: 'parallel',\n paths: [\n { id: pathId(1), label: 'Path 1', steps: [] },\n { id: pathId(2), label: 'Path 2', steps: [] },\n ],\n };\n break;\n case 'loop':\n step = { ...base, type: 'loop', mode: 'for-each', steps: [] };\n break;\n case 'wait':\n step = { ...base, type: 'wait' };\n break;\n case 'end':\n step = { ...base, type: 'end' };\n break;\n default:\n step = { ...base, type: 'action' };\n }\n return {\n ...step,\n ...(type.defaults ?? {}),\n id,\n type: step.type,\n } as WorkflowStep;\n}\n"],"names":[],"mappings":"AAgKA;AACM,SAAU,SAAS,CAAC,MAAyC,EAAA;IACjE,QACE,MAAM,KAAK,SAAS;AACpB,QAAA,MAAM,KAAK,SAAS;AACpB,QAAA,MAAM,KAAK,QAAQ;AACnB,QAAA,MAAM,KAAK,SAAS;QACpB,MAAM,KAAK,QAAQ;AAEvB;AA0BA;AACO,MAAM,oBAAoB,GAAuB;AACtD,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,cAAc,EAAE,WAAW;AAC3B,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,cAAc,EAAE,oBAAoB;AACpC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