@xlabs-store/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/components/index.d.ts +35 -0
- package/components/index.js +1 -0
- package/components/p-5c86X8JO.js +1 -0
- package/components/p-6KpqCGp9.js +1 -0
- package/components/p-ADwHM_jT.js +1 -0
- package/components/p-AgSyA7Ia.js +1 -0
- package/components/p-B-7Hwizp.js +1 -0
- package/components/p-B-ClGFfy.js +1 -0
- package/components/p-B4R9Mtmk.js +1 -0
- package/components/p-B4rO7Sgt.js +1 -0
- package/components/p-B5Syz0fw.js +1 -0
- package/components/p-B6p-mzW-.js +1 -0
- package/components/p-B8SZP5Xz.js +1 -0
- package/components/p-BBGHXZqR.js +1 -0
- package/components/p-BHLvuyOq.js +1 -0
- package/components/p-BM-ap7lt.js +1 -0
- package/components/p-BOCR5Zk0.js +1 -0
- package/components/p-BPeosvTA.js +1 -0
- package/components/p-BRBrLtOz.js +1 -0
- package/components/p-BSRP2TGa.js +1 -0
- package/components/p-BUjRcJoK.js +1 -0
- package/components/p-BVeQ5W_G.js +1 -0
- package/components/p-BVnVlCcd.js +1 -0
- package/components/p-BZQcq9R_.js +1 -0
- package/components/p-BeIFU-wn.js +1 -0
- package/components/p-BkEgl31q.js +1 -0
- package/components/p-BkPJ1Whr.js +1 -0
- package/components/p-BkevSugc.js +1 -0
- package/components/p-BkiOFW3H.js +1 -0
- package/components/p-BskMfHyY.js +1 -0
- package/components/p-Bu2JqZs8.js +1 -0
- package/components/p-BvjR2Q5Q.js +1 -0
- package/components/p-Bz7MhZ4K.js +1 -0
- package/components/p-C3gvR6nN.js +1 -0
- package/components/p-C70KKm8p.js +1 -0
- package/components/p-C7csgUoA.js +1 -0
- package/components/p-CAPfC5Vn.js +1 -0
- package/components/p-CEBSDVyp.js +1 -0
- package/components/p-CFB6xkAX.js +1 -0
- package/components/p-CGIxdOEm.js +1 -0
- package/components/p-CGYOWZnh.js +1 -0
- package/components/p-CHRrsVXB.js +1 -0
- package/components/p-CKUzvJue.js +1 -0
- package/components/p-CKVSyuIH.js +1 -0
- package/components/p-COpzIi1n.js +1 -0
- package/components/p-CRBPzT4B.js +1 -0
- package/components/p-CSfrs76m.js +1 -0
- package/components/p-C_ZBjXFP.js +1 -0
- package/components/p-Cd919NAP.js +1 -0
- package/components/p-Ce32Mo_Q.js +1 -0
- package/components/p-Ce5L9qbY.js +1 -0
- package/components/p-CeBfFEIa.js +1 -0
- package/components/p-CfhgoXyB.js +1 -0
- package/components/p-Ck6SW8G3.js +1 -0
- package/components/p-Co3Y9VjQ.js +1 -0
- package/components/p-D66tF8_2.js +1 -0
- package/components/p-D7ijqXRY.js +1 -0
- package/components/p-D7n-26Q5.js +1 -0
- package/components/p-D8ew7Rgv.js +1 -0
- package/components/p-DBk4T-b-.js +1 -0
- package/components/p-DD-W_fMF.js +1 -0
- package/components/p-DElCk9ta.js +1 -0
- package/components/p-DEumEVI3.js +1 -0
- package/components/p-DGqQ8PT4.js +1 -0
- package/components/p-DJ1WhSJ4.js +1 -0
- package/components/p-DOxXxhXb.js +1 -0
- package/components/p-DRa4o4c6.js +1 -0
- package/components/p-DTlSrH8_.js +1 -0
- package/components/p-DTvD0UO5.js +1 -0
- package/components/p-DVz50Dd3.js +1 -0
- package/components/p-DZFphzg1.js +1 -0
- package/components/p-DZPUUptR.js +1 -0
- package/components/p-D_xaGiZU.js +1 -0
- package/components/p-DaL42JUi.js +1 -0
- package/components/p-DbRpEXwX.js +1 -0
- package/components/p-DcRlYBIl.js +1 -0
- package/components/p-Dg0xgMke.js +1 -0
- package/components/p-Dgxy93Bg.js +1 -0
- package/components/p-Dky_8i8S.js +1 -0
- package/components/p-DlwlBBr4.js +1 -0
- package/components/p-DoTf8yXn.js +1 -0
- package/components/p-DphUq6Z5.js +1 -0
- package/components/p-DsgWQbJY.js +1 -0
- package/components/p-Dx3yBe39.js +1 -0
- package/components/p-DxKMnrS8.js +1 -0
- package/components/p-O88oQkR1.js +1 -0
- package/components/p-PlUkLT0A.js +1 -0
- package/components/p-QTSiPk0I.js +1 -0
- package/components/p-TC9DZAbC.js +1 -0
- package/components/p-XBF88YT_.js +1 -0
- package/components/p-bVsOg7S9.js +1 -0
- package/components/p-ccpcKv5U.js +1 -0
- package/components/p-en06CSUT.js +1 -0
- package/components/p-g6ZBqIze.js +1 -0
- package/components/p-noTpj1Kh.js +1 -0
- package/components/x-address.d.ts +11 -0
- package/components/x-address.js +1 -0
- package/components/x-affix.d.ts +11 -0
- package/components/x-affix.js +1 -0
- package/components/x-alert.d.ts +11 -0
- package/components/x-alert.js +1 -0
- package/components/x-anchor-link.d.ts +11 -0
- package/components/x-anchor-link.js +1 -0
- package/components/x-anchor.d.ts +11 -0
- package/components/x-anchor.js +1 -0
- package/components/x-app.d.ts +11 -0
- package/components/x-app.js +1 -0
- package/components/x-auto-complete-dropdown-content.d.ts +11 -0
- package/components/x-auto-complete-dropdown-content.js +1 -0
- package/components/x-auto-complete.d.ts +11 -0
- package/components/x-auto-complete.js +1 -0
- package/components/x-avatar.d.ts +11 -0
- package/components/x-avatar.js +1 -0
- package/components/x-back-top.d.ts +11 -0
- package/components/x-back-top.js +1 -0
- package/components/x-badge.d.ts +11 -0
- package/components/x-badge.js +1 -0
- package/components/x-breadcrumb-item.d.ts +11 -0
- package/components/x-breadcrumb-item.js +1 -0
- package/components/x-breadcrumb.d.ts +11 -0
- package/components/x-breadcrumb.js +1 -0
- package/components/x-button.d.ts +11 -0
- package/components/x-button.js +1 -0
- package/components/x-captcha.d.ts +11 -0
- package/components/x-captcha.js +1 -0
- package/components/x-card.d.ts +11 -0
- package/components/x-card.js +1 -0
- package/components/x-carousel.d.ts +11 -0
- package/components/x-carousel.js +1 -0
- package/components/x-cascader-dropdown-content.d.ts +11 -0
- package/components/x-cascader-dropdown-content.js +1 -0
- package/components/x-cascader.d.ts +11 -0
- package/components/x-cascader.js +1 -0
- package/components/x-checkbox.d.ts +11 -0
- package/components/x-checkbox.js +1 -0
- package/components/x-col.d.ts +11 -0
- package/components/x-col.js +1 -0
- package/components/x-collapse-panel.d.ts +11 -0
- package/components/x-collapse-panel.js +1 -0
- package/components/x-collapse.d.ts +11 -0
- package/components/x-collapse.js +1 -0
- package/components/x-color-picker-panel.d.ts +11 -0
- package/components/x-color-picker-panel.js +1 -0
- package/components/x-color-picker.d.ts +11 -0
- package/components/x-color-picker.js +1 -0
- package/components/x-comment.d.ts +11 -0
- package/components/x-comment.js +1 -0
- package/components/x-content.d.ts +11 -0
- package/components/x-content.js +1 -0
- package/components/x-date-picker-dropdown-content.d.ts +11 -0
- package/components/x-date-picker-dropdown-content.js +1 -0
- package/components/x-date-picker.d.ts +11 -0
- package/components/x-date-picker.js +1 -0
- package/components/x-descriptions-item.d.ts +11 -0
- package/components/x-descriptions-item.js +1 -0
- package/components/x-descriptions.d.ts +11 -0
- package/components/x-descriptions.js +1 -0
- package/components/x-divider.d.ts +11 -0
- package/components/x-divider.js +1 -0
- package/components/x-drawer-content.d.ts +11 -0
- package/components/x-drawer-content.js +1 -0
- package/components/x-drawer.d.ts +11 -0
- package/components/x-drawer.js +1 -0
- package/components/x-dropdown-content.d.ts +11 -0
- package/components/x-dropdown-content.js +1 -0
- package/components/x-dropdown.d.ts +11 -0
- package/components/x-dropdown.js +1 -0
- package/components/x-editor.d.ts +11 -0
- package/components/x-editor.js +1 -0
- package/components/x-empty.d.ts +11 -0
- package/components/x-empty.js +1 -0
- package/components/x-finder.d.ts +11 -0
- package/components/x-finder.js +1 -0
- package/components/x-flex.d.ts +11 -0
- package/components/x-flex.js +1 -0
- package/components/x-float-button.d.ts +11 -0
- package/components/x-float-button.js +1 -0
- package/components/x-footer.d.ts +11 -0
- package/components/x-footer.js +1 -0
- package/components/x-form-builder.d.ts +11 -0
- package/components/x-form-builder.js +1 -0
- package/components/x-form-item.d.ts +11 -0
- package/components/x-form-item.js +1 -0
- package/components/x-form.d.ts +11 -0
- package/components/x-form.js +1 -0
- package/components/x-header.d.ts +11 -0
- package/components/x-header.js +1 -0
- package/components/x-icon.d.ts +11 -0
- package/components/x-icon.js +1 -0
- package/components/x-image.d.ts +11 -0
- package/components/x-image.js +1 -0
- package/components/x-infinite-scroll.d.ts +11 -0
- package/components/x-infinite-scroll.js +1 -0
- package/components/x-input-number.d.ts +11 -0
- package/components/x-input-number.js +1 -0
- package/components/x-input.d.ts +11 -0
- package/components/x-input.js +1 -0
- package/components/x-layout.d.ts +11 -0
- package/components/x-layout.js +1 -0
- package/components/x-list-item.d.ts +11 -0
- package/components/x-list-item.js +1 -0
- package/components/x-list.d.ts +11 -0
- package/components/x-list.js +1 -0
- package/components/x-mentions.d.ts +11 -0
- package/components/x-mentions.js +1 -0
- package/components/x-menu-divider.d.ts +11 -0
- package/components/x-menu-divider.js +1 -0
- package/components/x-menu-item-group.d.ts +11 -0
- package/components/x-menu-item-group.js +1 -0
- package/components/x-menu-item.d.ts +11 -0
- package/components/x-menu-item.js +1 -0
- package/components/x-menu-submenu.d.ts +11 -0
- package/components/x-menu-submenu.js +1 -0
- package/components/x-menu.d.ts +11 -0
- package/components/x-menu.js +1 -0
- package/components/x-message.d.ts +11 -0
- package/components/x-message.js +1 -0
- package/components/x-modal-content.d.ts +11 -0
- package/components/x-modal-content.js +1 -0
- package/components/x-modal.d.ts +11 -0
- package/components/x-modal.js +1 -0
- package/components/x-notification.d.ts +11 -0
- package/components/x-notification.js +1 -0
- package/components/x-page-header.d.ts +11 -0
- package/components/x-page-header.js +1 -0
- package/components/x-pagination.d.ts +11 -0
- package/components/x-pagination.js +1 -0
- package/components/x-popconfirm-content.d.ts +11 -0
- package/components/x-popconfirm-content.js +1 -0
- package/components/x-popconfirm.d.ts +11 -0
- package/components/x-popconfirm.js +1 -0
- package/components/x-popover-content.d.ts +11 -0
- package/components/x-popover-content.js +1 -0
- package/components/x-popover.d.ts +11 -0
- package/components/x-popover.js +1 -0
- package/components/x-progress.d.ts +11 -0
- package/components/x-progress.js +1 -0
- package/components/x-qr-code.d.ts +11 -0
- package/components/x-qr-code.js +1 -0
- package/components/x-radio-group.d.ts +11 -0
- package/components/x-radio-group.js +1 -0
- package/components/x-radio.d.ts +11 -0
- package/components/x-radio.js +1 -0
- package/components/x-range-picker-dropdown-content.d.ts +11 -0
- package/components/x-range-picker-dropdown-content.js +1 -0
- package/components/x-range-picker.d.ts +11 -0
- package/components/x-range-picker.js +1 -0
- package/components/x-rate.d.ts +11 -0
- package/components/x-rate.js +1 -0
- package/components/x-result.d.ts +11 -0
- package/components/x-result.js +1 -0
- package/components/x-row.d.ts +11 -0
- package/components/x-row.js +1 -0
- package/components/x-segmented.d.ts +11 -0
- package/components/x-segmented.js +1 -0
- package/components/x-select-dropdown-content.d.ts +11 -0
- package/components/x-select-dropdown-content.js +1 -0
- package/components/x-select-option.d.ts +11 -0
- package/components/x-select-option.js +1 -0
- package/components/x-select.d.ts +11 -0
- package/components/x-select.js +1 -0
- package/components/x-sider.d.ts +11 -0
- package/components/x-sider.js +1 -0
- package/components/x-skeleton.d.ts +11 -0
- package/components/x-skeleton.js +1 -0
- package/components/x-slider.d.ts +11 -0
- package/components/x-slider.js +1 -0
- package/components/x-space.d.ts +11 -0
- package/components/x-space.js +1 -0
- package/components/x-spin.d.ts +11 -0
- package/components/x-spin.js +1 -0
- package/components/x-splitter-panel.d.ts +11 -0
- package/components/x-splitter-panel.js +1 -0
- package/components/x-splitter.d.ts +11 -0
- package/components/x-splitter.js +1 -0
- package/components/x-statistic.d.ts +11 -0
- package/components/x-statistic.js +1 -0
- package/components/x-step.d.ts +11 -0
- package/components/x-step.js +1 -0
- package/components/x-steps.d.ts +11 -0
- package/components/x-steps.js +1 -0
- package/components/x-switch.d.ts +11 -0
- package/components/x-switch.js +1 -0
- package/components/x-tab-pane.d.ts +11 -0
- package/components/x-tab-pane.js +1 -0
- package/components/x-table-cell.d.ts +11 -0
- package/components/x-table-cell.js +1 -0
- package/components/x-table-row.d.ts +11 -0
- package/components/x-table-row.js +1 -0
- package/components/x-table.d.ts +11 -0
- package/components/x-table.js +1 -0
- package/components/x-tabs.d.ts +11 -0
- package/components/x-tabs.js +1 -0
- package/components/x-tag.d.ts +11 -0
- package/components/x-tag.js +1 -0
- package/components/x-textarea.d.ts +11 -0
- package/components/x-textarea.js +1 -0
- package/components/x-time-picker-dropdown-content.d.ts +11 -0
- package/components/x-time-picker-dropdown-content.js +1 -0
- package/components/x-time-picker.d.ts +11 -0
- package/components/x-time-picker.js +1 -0
- package/components/x-timeline-item.d.ts +11 -0
- package/components/x-timeline-item.js +1 -0
- package/components/x-timeline.d.ts +11 -0
- package/components/x-timeline.js +1 -0
- package/components/x-tooltip-content.d.ts +11 -0
- package/components/x-tooltip-content.js +1 -0
- package/components/x-tooltip.d.ts +11 -0
- package/components/x-tooltip.js +1 -0
- package/components/x-tour-panel.d.ts +11 -0
- package/components/x-tour-panel.js +1 -0
- package/components/x-tour.d.ts +11 -0
- package/components/x-tour.js +1 -0
- package/components/x-transfer.d.ts +11 -0
- package/components/x-transfer.js +1 -0
- package/components/x-tree-select-dropdown-content.d.ts +11 -0
- package/components/x-tree-select-dropdown-content.js +1 -0
- package/components/x-tree-select.d.ts +11 -0
- package/components/x-tree-select.js +1 -0
- package/components/x-tree.d.ts +11 -0
- package/components/x-tree.js +1 -0
- package/components/x-typography.d.ts +11 -0
- package/components/x-typography.js +1 -0
- package/components/x-upload.d.ts +11 -0
- package/components/x-upload.js +1 -0
- package/components/x-virtual-scroll.d.ts +11 -0
- package/components/x-virtual-scroll.js +1 -0
- package/components/x-workflow-builder.d.ts +11 -0
- package/components/x-workflow-builder.js +1 -0
- package/components/x-workflow.d.ts +11 -0
- package/components/x-workflow.js +1 -0
- package/dist/cjs/abstract-control-C4D0eNCC.js +277 -0
- package/dist/cjs/config-BP9bROYD.js +63 -0
- package/dist/cjs/index-C7sKs9A2.js +2170 -0
- package/dist/cjs/index.cjs.js +14 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/locale.service-Cz-aZQnr.js +8203 -0
- package/dist/cjs/modal-service-BtAF0mFq.js +399 -0
- package/dist/cjs/notification-service-m6I5U9aG.js +602 -0
- package/dist/cjs/portal-controller-CtYVbhXL.js +504 -0
- package/dist/cjs/schema-builder-CYnX7lKi.js +1505 -0
- package/dist/cjs/tree.service-fxLOCSpD.js +339 -0
- package/dist/cjs/types-DQ-V76ZQ.js +255 -0
- package/dist/cjs/x-address_14.cjs.entry.js +12577 -0
- package/dist/cjs/x-affix.cjs.entry.js +182 -0
- package/dist/cjs/x-alert_11.cjs.entry.js +3239 -0
- package/dist/cjs/x-anchor-link.cjs.entry.js +67 -0
- package/dist/cjs/x-anchor.cjs.entry.js +158 -0
- package/dist/cjs/x-app.cjs.entry.js +137 -0
- package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +69 -0
- package/dist/cjs/x-avatar.cjs.entry.js +269 -0
- package/dist/cjs/x-back-top.cjs.entry.js +89 -0
- package/dist/cjs/x-breadcrumb_5.cjs.entry.js +1554 -0
- package/dist/cjs/x-button.cjs.entry.js +174 -0
- package/dist/cjs/x-card_12.cjs.entry.js +1386 -0
- package/dist/cjs/x-carousel.cjs.entry.js +147 -0
- package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +364 -0
- package/dist/cjs/x-checkbox_5.cjs.entry.js +1376 -0
- package/dist/cjs/x-collapse-panel.cjs.entry.js +243 -0
- package/dist/cjs/x-collapse.cjs.entry.js +291 -0
- package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +873 -0
- package/dist/cjs/x-color-picker_9.cjs.entry.js +3085 -0
- package/dist/cjs/x-comment.cjs.entry.js +189 -0
- package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +757 -0
- package/dist/cjs/x-descriptions-item.cjs.entry.js +108 -0
- package/dist/cjs/x-drawer-content.cjs.entry.js +197 -0
- package/dist/cjs/x-drawer.cjs.entry.js +294 -0
- package/dist/cjs/x-dropdown_2.cjs.entry.js +735 -0
- package/dist/cjs/x-empty.cjs.entry.js +64 -0
- package/dist/cjs/x-finder.cjs.entry.js +647 -0
- package/dist/cjs/x-form-builder.cjs.entry.js +807 -0
- package/dist/cjs/x-icon.cjs.entry.js +144 -0
- package/dist/cjs/x-infinite-scroll.cjs.entry.js +129 -0
- package/dist/cjs/x-list-item.cjs.entry.js +27 -0
- package/dist/cjs/x-list.cjs.entry.js +138 -0
- package/dist/cjs/x-mentions.cjs.entry.js +275 -0
- package/dist/cjs/x-menu-divider.cjs.entry.js +49 -0
- package/dist/cjs/x-menu-item-group.cjs.entry.js +149 -0
- package/dist/cjs/x-menu-submenu.cjs.entry.js +373 -0
- package/dist/cjs/x-message.cjs.entry.js +219 -0
- package/dist/cjs/x-modal-content.cjs.entry.js +217 -0
- package/dist/cjs/x-notification.cjs.entry.js +325 -0
- package/dist/cjs/x-page-header.cjs.entry.js +67 -0
- package/dist/cjs/x-popconfirm-content.cjs.entry.js +72 -0
- package/dist/cjs/x-popconfirm.cjs.entry.js +181 -0
- package/dist/cjs/x-progress.cjs.entry.js +136 -0
- package/dist/cjs/x-qr-code.cjs.entry.js +446 -0
- package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +821 -0
- package/dist/cjs/x-select_2.cjs.entry.js +1316 -0
- package/dist/cjs/x-skeleton.cjs.entry.js +75 -0
- package/dist/cjs/x-spin.cjs.entry.js +62 -0
- package/dist/cjs/x-splitter-panel.cjs.entry.js +91 -0
- package/dist/cjs/x-splitter.cjs.entry.js +612 -0
- package/dist/cjs/x-statistic.cjs.entry.js +104 -0
- package/dist/cjs/x-step.cjs.entry.js +179 -0
- package/dist/cjs/x-steps.cjs.entry.js +439 -0
- package/dist/cjs/x-tab-pane.cjs.entry.js +73 -0
- package/dist/cjs/x-table-cell.cjs.entry.js +45 -0
- package/dist/cjs/x-table-row.cjs.entry.js +85 -0
- package/dist/cjs/x-tabs.cjs.entry.js +609 -0
- package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +389 -0
- package/dist/cjs/x-timeline-item.cjs.entry.js +50 -0
- package/dist/cjs/x-timeline.cjs.entry.js +52 -0
- package/dist/cjs/x-tour-panel.cjs.entry.js +89 -0
- package/dist/cjs/x-tour.cjs.entry.js +344 -0
- package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +439 -0
- package/dist/cjs/x-virtual-scroll.cjs.entry.js +203 -0
- package/dist/cjs/x-workflow-builder.cjs.entry.js +366 -0
- package/dist/cjs/xlabs-store.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +130 -0
- package/dist/collection/components/x-address/vietnam-data.js +28 -0
- package/dist/collection/components/x-address/x-address.css +367 -0
- package/dist/collection/components/x-address/x-address.js +403 -0
- package/dist/collection/components/x-affix/x-affix.css +27 -0
- package/dist/collection/components/x-affix/x-affix.js +299 -0
- package/dist/collection/components/x-alert/x-alert.css +475 -0
- package/dist/collection/components/x-alert/x-alert.js +273 -0
- package/dist/collection/components/x-anchor/x-anchor.css +74 -0
- package/dist/collection/components/x-anchor/x-anchor.js +371 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.css +43 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.js +145 -0
- package/dist/collection/components/x-app/x-app.css +14 -0
- package/dist/collection/components/x-app/x-app.js +308 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +410 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +166 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-auto-complete/types.js +61 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.css +535 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.js +1829 -0
- package/dist/collection/components/x-avatar/types.js +1 -0
- package/dist/collection/components/x-avatar/x-avatar.css +128 -0
- package/dist/collection/components/x-avatar/x-avatar.js +533 -0
- package/dist/collection/components/x-back-top/x-back-top.css +56 -0
- package/dist/collection/components/x-back-top/x-back-top.js +148 -0
- package/dist/collection/components/x-badge/types.js +1 -0
- package/dist/collection/components/x-badge/x-badge.css +233 -0
- package/dist/collection/components/x-badge/x-badge.js +618 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.css +44 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +96 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.css +63 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +147 -0
- package/dist/collection/components/x-button/x-button.css +278 -0
- package/dist/collection/components/x-button/x-button.js +488 -0
- package/dist/collection/components/x-captcha/x-captcha.css +125 -0
- package/dist/collection/components/x-captcha/x-captcha.js +408 -0
- package/dist/collection/components/x-card/x-card.css +523 -0
- package/dist/collection/components/x-card/x-card.js +389 -0
- package/dist/collection/components/x-carousel/x-carousel.css +417 -0
- package/dist/collection/components/x-carousel/x-carousel.js +257 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +529 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +771 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-cascader/types.js +1 -0
- package/dist/collection/components/x-cascader/x-cascader.css +691 -0
- package/dist/collection/components/x-cascader/x-cascader.js +1841 -0
- package/dist/collection/components/x-checkbox/types.js +1 -0
- package/dist/collection/components/x-checkbox/x-checkbox.css +541 -0
- package/dist/collection/components/x-checkbox/x-checkbox.js +681 -0
- package/dist/collection/components/x-col/x-col.css +1704 -0
- package/dist/collection/components/x-col/x-col.js +479 -0
- package/dist/collection/components/x-collapse/types.js +1 -0
- package/dist/collection/components/x-collapse/x-collapse.css +384 -0
- package/dist/collection/components/x-collapse/x-collapse.js +579 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +486 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +500 -0
- package/dist/collection/components/x-color-picker/types.js +251 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.css +310 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.js +575 -0
- package/dist/collection/components/x-color-picker/x-color-picker.css +446 -0
- package/dist/collection/components/x-color-picker/x-color-picker.js +1209 -0
- package/dist/collection/components/x-comment/types.js +1 -0
- package/dist/collection/components/x-comment/x-comment.css +442 -0
- package/dist/collection/components/x-comment/x-comment.js +306 -0
- package/dist/collection/components/x-content/types.js +1 -0
- package/dist/collection/components/x-content/x-content.css +361 -0
- package/dist/collection/components/x-content/x-content.js +402 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +691 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +1496 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-date-picker/types.js +1 -0
- package/dist/collection/components/x-date-picker/x-date-picker.css +804 -0
- package/dist/collection/components/x-date-picker/x-date-picker.js +2110 -0
- package/dist/collection/components/x-descriptions/types.js +1 -0
- package/dist/collection/components/x-descriptions/x-descriptions.css +417 -0
- package/dist/collection/components/x-descriptions/x-descriptions.js +494 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +387 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +238 -0
- package/dist/collection/components/x-divider/x-divider.css +417 -0
- package/dist/collection/components/x-divider/x-divider.js +263 -0
- package/dist/collection/components/x-drawer/x-drawer.css +333 -0
- package/dist/collection/components/x-drawer/x-drawer.js +623 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.css +481 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.js +579 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +673 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +294 -0
- package/dist/collection/components/x-dropdown/dropdown-content/types.js +1 -0
- package/dist/collection/components/x-dropdown/types.js +1 -0
- package/dist/collection/components/x-dropdown/x-dropdown.css +669 -0
- package/dist/collection/components/x-dropdown/x-dropdown.js +1004 -0
- package/dist/collection/components/x-editor/editor-history.js +118 -0
- package/dist/collection/components/x-editor/editor-normalizer.js +263 -0
- package/dist/collection/components/x-editor/editor-parser.js +326 -0
- package/dist/collection/components/x-editor/editor-selection.js +415 -0
- package/dist/collection/components/x-editor/types.js +33 -0
- package/dist/collection/components/x-editor/x-editor.css +599 -0
- package/dist/collection/components/x-editor/x-editor.js +1636 -0
- package/dist/collection/components/x-empty/x-empty.css +357 -0
- package/dist/collection/components/x-empty/x-empty.js +117 -0
- package/dist/collection/components/x-finder/services/finder-service.js +250 -0
- package/dist/collection/components/x-finder/types.js +1 -0
- package/dist/collection/components/x-finder/x-finder.css +633 -0
- package/dist/collection/components/x-finder/x-finder.js +540 -0
- package/dist/collection/components/x-flex/x-flex.css +344 -0
- package/dist/collection/components/x-flex/x-flex.js +285 -0
- package/dist/collection/components/x-float-button/x-float-button.css +389 -0
- package/dist/collection/components/x-float-button/x-float-button.js +265 -0
- package/dist/collection/components/x-footer/x-footer.css +346 -0
- package/dist/collection/components/x-footer/x-footer.js +29 -0
- package/dist/collection/components/x-form/x-form.css +365 -0
- package/dist/collection/components/x-form/x-form.js +355 -0
- package/dist/collection/components/x-form-builder/services/apis/api-client.js +240 -0
- package/dist/collection/components/x-form-builder/services/constants/index.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/abstract-control.js +175 -0
- package/dist/collection/components/x-form-builder/services/forms/form-array.js +92 -0
- package/dist/collection/components/x-form-builder/services/forms/form-builder.js +40 -0
- package/dist/collection/components/x-form-builder/services/forms/form-control.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/form-group.js +150 -0
- package/dist/collection/components/x-form-builder/services/forms/index.js +7 -0
- package/dist/collection/components/x-form-builder/services/forms/types.js +1 -0
- package/dist/collection/components/x-form-builder/services/forms/validators.js +83 -0
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +337 -0
- package/dist/collection/components/x-form-builder/services/schema/default-registry.js +440 -0
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +176 -0
- package/dist/collection/components/x-form-builder/services/schema/form-registry.js +30 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-actions.js +3 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +52 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +53 -0
- package/dist/collection/components/x-form-builder/types/api/api-common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/api-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/common/common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/condition-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/field-types-enum.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/index.js +7 -0
- package/dist/collection/components/x-form-builder/types/common/shared-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/validation-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/value-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/event-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/index.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/advanced-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/base-field.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/datetime-file-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/display-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/form-field-union.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/index.js +9 -0
- package/dist/collection/components/x-form-builder/types/fields/input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/layout-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +10 -0
- package/dist/collection/components/x-form-builder/types/fields/special-input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/events-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/form-config.js +50 -0
- package/dist/collection/components/x-form-builder/types/form/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/form/schema-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/index.js +4 -0
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +118 -0
- package/dist/collection/components/x-form-builder/utils/utils.js +138 -0
- package/dist/collection/components/x-form-builder/utils/values.js +36 -0
- package/dist/collection/components/x-form-builder/x-form-builder.css +3 -0
- package/dist/collection/components/x-form-builder/x-form-builder.js +1017 -0
- package/dist/collection/components/x-form-item/x-form-item.css +564 -0
- package/dist/collection/components/x-form-item/x-form-item.js +538 -0
- package/dist/collection/components/x-header/x-header.css +344 -0
- package/dist/collection/components/x-header/x-header.js +29 -0
- package/dist/collection/components/x-icon/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-solided.woff2 +0 -0
- package/dist/collection/components/x-icon/icons.js +2716 -0
- package/dist/collection/components/x-icon/x-icon.css +378 -0
- package/dist/collection/components/x-icon/x-icon.js +353 -0
- package/dist/collection/components/x-image/types.js +1 -0
- package/dist/collection/components/x-image/x-image.css +556 -0
- package/dist/collection/components/x-image/x-image.js +628 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +345 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +294 -0
- package/dist/collection/components/x-input/types.js +1 -0
- package/dist/collection/components/x-input/x-input.css +640 -0
- package/dist/collection/components/x-input/x-input.js +1449 -0
- package/dist/collection/components/x-input-number/types.js +96 -0
- package/dist/collection/components/x-input-number/x-input-number.css +612 -0
- package/dist/collection/components/x-input-number/x-input-number.js +1488 -0
- package/dist/collection/components/x-layout/x-layout.css +361 -0
- package/dist/collection/components/x-layout/x-layout.js +188 -0
- package/dist/collection/components/x-list/x-list.css +382 -0
- package/dist/collection/components/x-list/x-list.js +373 -0
- package/dist/collection/components/x-list-item/x-list-item.css +351 -0
- package/dist/collection/components/x-list-item/x-list-item.js +31 -0
- package/dist/collection/components/x-mentions/types.js +1 -0
- package/dist/collection/components/x-mentions/x-mentions.css +388 -0
- package/dist/collection/components/x-mentions/x-mentions.js +528 -0
- package/dist/collection/components/x-menu/types.js +1 -0
- package/dist/collection/components/x-menu/x-menu.css +78 -0
- package/dist/collection/components/x-menu/x-menu.js +793 -0
- package/dist/collection/components/x-menu-divider/types.js +1 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.css +31 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.js +126 -0
- package/dist/collection/components/x-menu-item/types.js +1 -0
- package/dist/collection/components/x-menu-item/x-menu-item.css +183 -0
- package/dist/collection/components/x-menu-item/x-menu-item.js +449 -0
- package/dist/collection/components/x-menu-item-group/types.js +1 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.css +45 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +299 -0
- package/dist/collection/components/x-menu-submenu/types.js +1 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.css +236 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +775 -0
- package/dist/collection/components/x-message/message-service.js +263 -0
- package/dist/collection/components/x-message/types.js +1 -0
- package/dist/collection/components/x-message/x-message.css +402 -0
- package/dist/collection/components/x-message/x-message.js +487 -0
- package/dist/collection/components/x-modal/modal-service.js +402 -0
- package/dist/collection/components/x-modal/modal-service.types.js +1 -0
- package/dist/collection/components/x-modal/x-modal.css +468 -0
- package/dist/collection/components/x-modal/x-modal.js +683 -0
- package/dist/collection/components/x-modal-content/index.js +1 -0
- package/dist/collection/components/x-modal-content/types.js +1 -0
- package/dist/collection/components/x-modal-content/x-modal-content.css +749 -0
- package/dist/collection/components/x-modal-content/x-modal-content.js +701 -0
- package/dist/collection/components/x-notification/notification-service.js +335 -0
- package/dist/collection/components/x-notification/types.js +1 -0
- package/dist/collection/components/x-notification/x-notification.css +486 -0
- package/dist/collection/components/x-notification/x-notification.js +788 -0
- package/dist/collection/components/x-page-header/x-page-header.css +406 -0
- package/dist/collection/components/x-page-header/x-page-header.js +159 -0
- package/dist/collection/components/x-pagination/types.js +1 -0
- package/dist/collection/components/x-pagination/x-pagination.css +705 -0
- package/dist/collection/components/x-pagination/x-pagination.js +1241 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +456 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +244 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.css +412 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.js +355 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.css +437 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.js +261 -0
- package/dist/collection/components/x-popover/x-popover.css +442 -0
- package/dist/collection/components/x-popover/x-popover.js +390 -0
- package/dist/collection/components/x-portal/debug.js +42 -0
- package/dist/collection/components/x-portal/index.js +1 -0
- package/dist/collection/components/x-portal/portal-controller.js +146 -0
- package/dist/collection/components/x-portal/positioning.js +332 -0
- package/dist/collection/components/x-portal/types.js +1 -0
- package/dist/collection/components/x-portal/x-portal.js +21 -0
- package/dist/collection/components/x-progress/x-progress.css +424 -0
- package/dist/collection/components/x-progress/x-progress.js +326 -0
- package/dist/collection/components/x-qr-code/x-qr-code.css +37 -0
- package/dist/collection/components/x-qr-code/x-qr-code.js +292 -0
- package/dist/collection/components/x-radio/types.js +1 -0
- package/dist/collection/components/x-radio/x-radio.css +523 -0
- package/dist/collection/components/x-radio/x-radio.js +689 -0
- package/dist/collection/components/x-radio-group/types.js +1 -0
- package/dist/collection/components/x-radio-group/x-radio-group.css +326 -0
- package/dist/collection/components/x-radio-group/x-radio-group.js +531 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +609 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +1497 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-range-picker/types.js +1 -0
- package/dist/collection/components/x-range-picker/x-range-picker.css +775 -0
- package/dist/collection/components/x-range-picker/x-range-picker.js +1883 -0
- package/dist/collection/components/x-rate/x-rate.css +396 -0
- package/dist/collection/components/x-rate/x-rate.js +445 -0
- package/dist/collection/components/x-result/types.js +1 -0
- package/dist/collection/components/x-result/x-result.css +434 -0
- package/dist/collection/components/x-result/x-result.js +376 -0
- package/dist/collection/components/x-row/x-row.css +345 -0
- package/dist/collection/components/x-row/x-row.js +196 -0
- package/dist/collection/components/x-segmented/types.js +1 -0
- package/dist/collection/components/x-segmented/x-segmented.css +407 -0
- package/dist/collection/components/x-segmented/x-segmented.js +414 -0
- package/dist/collection/components/x-select/select-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +827 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +163 -0
- package/dist/collection/components/x-select/select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-select/types.js +9 -0
- package/dist/collection/components/x-select/x-select.css +823 -0
- package/dist/collection/components/x-select/x-select.js +2247 -0
- package/dist/collection/components/x-select-option/x-select-option.css +379 -0
- package/dist/collection/components/x-select-option/x-select-option.js +207 -0
- package/dist/collection/components/x-sider/x-sider.css +379 -0
- package/dist/collection/components/x-sider/x-sider.js +379 -0
- package/dist/collection/components/x-skeleton/x-skeleton.css +400 -0
- package/dist/collection/components/x-skeleton/x-skeleton.js +221 -0
- package/dist/collection/components/x-slider/types.js +1 -0
- package/dist/collection/components/x-slider/x-slider.css +511 -0
- package/dist/collection/components/x-slider/x-slider.js +785 -0
- package/dist/collection/components/x-space/x-space.css +339 -0
- package/dist/collection/components/x-space/x-space.js +228 -0
- package/dist/collection/components/x-spin/x-spin.css +465 -0
- package/dist/collection/components/x-spin/x-spin.js +142 -0
- package/dist/collection/components/x-splitter/types.js +1 -0
- package/dist/collection/components/x-splitter/x-splitter.css +181 -0
- package/dist/collection/components/x-splitter/x-splitter.js +884 -0
- package/dist/collection/components/x-splitter-panel/types.js +1 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.css +25 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +292 -0
- package/dist/collection/components/x-statistic/x-statistic.css +366 -0
- package/dist/collection/components/x-statistic/x-statistic.js +291 -0
- package/dist/collection/components/x-step/types.js +1 -0
- package/dist/collection/components/x-step/x-step.css +801 -0
- package/dist/collection/components/x-step/x-step.js +539 -0
- package/dist/collection/components/x-steps/types.js +1 -0
- package/dist/collection/components/x-steps/x-steps.css +830 -0
- package/dist/collection/components/x-steps/x-steps.js +1032 -0
- package/dist/collection/components/x-switch/types.js +1 -0
- package/dist/collection/components/x-switch/x-switch.css +463 -0
- package/dist/collection/components/x-switch/x-switch.js +356 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.css +337 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.js +243 -0
- package/dist/collection/components/x-table/column-util.js +87 -0
- package/dist/collection/components/x-table/types.js +1 -0
- package/dist/collection/components/x-table/x-table.css +898 -0
- package/dist/collection/components/x-table/x-table.js +2464 -0
- package/dist/collection/components/x-table-cell/x-table-cell.css +337 -0
- package/dist/collection/components/x-table-cell/x-table-cell.js +167 -0
- package/dist/collection/components/x-table-row/x-table-row.css +336 -0
- package/dist/collection/components/x-table-row/x-table-row.js +172 -0
- package/dist/collection/components/x-tabs/types.js +1 -0
- package/dist/collection/components/x-tabs/x-tabs.css +664 -0
- package/dist/collection/components/x-tabs/x-tabs.js +1264 -0
- package/dist/collection/components/x-tag/types.js +1 -0
- package/dist/collection/components/x-tag/x-tag.css +1047 -0
- package/dist/collection/components/x-tag/x-tag.js +535 -0
- package/dist/collection/components/x-textarea/x-textarea.css +446 -0
- package/dist/collection/components/x-textarea/x-textarea.js +553 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +409 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +855 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-time-picker/types.js +1 -0
- package/dist/collection/components/x-time-picker/x-time-picker.css +653 -0
- package/dist/collection/components/x-time-picker/x-time-picker.js +1454 -0
- package/dist/collection/components/x-timeline/x-timeline.css +404 -0
- package/dist/collection/components/x-timeline/x-timeline.js +129 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.css +400 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.js +125 -0
- package/dist/collection/components/x-tooltip/types.js +1 -0
- package/dist/collection/components/x-tooltip/x-tooltip.css +528 -0
- package/dist/collection/components/x-tooltip/x-tooltip.js +1006 -0
- package/dist/collection/components/x-tooltip-content/index.js +1 -0
- package/dist/collection/components/x-tooltip-content/types.js +1 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.css +217 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +238 -0
- package/dist/collection/components/x-tour/index.js +1 -0
- package/dist/collection/components/x-tour/types.js +1 -0
- package/dist/collection/components/x-tour/x-tour-panel.css +467 -0
- package/dist/collection/components/x-tour/x-tour-panel.js +265 -0
- package/dist/collection/components/x-tour/x-tour.css +353 -0
- package/dist/collection/components/x-tour/x-tour.js +555 -0
- package/dist/collection/components/x-transfer/types.js +1 -0
- package/dist/collection/components/x-transfer/x-transfer.css +626 -0
- package/dist/collection/components/x-transfer/x-transfer.js +956 -0
- package/dist/collection/components/x-tree/types.js +1 -0
- package/dist/collection/components/x-tree/x-tree.css +703 -0
- package/dist/collection/components/x-tree/x-tree.js +1793 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +635 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +890 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-tree-select/types.js +2 -0
- package/dist/collection/components/x-tree-select/x-tree-select.css +790 -0
- package/dist/collection/components/x-tree-select/x-tree-select.js +2750 -0
- package/dist/collection/components/x-typography/x-typography.css +409 -0
- package/dist/collection/components/x-typography/x-typography.js +431 -0
- package/dist/collection/components/x-upload/types.js +1 -0
- package/dist/collection/components/x-upload/x-upload.css +774 -0
- package/dist/collection/components/x-upload/x-upload.js +1452 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.css +79 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +478 -0
- package/dist/collection/components/x-workflow/x-workflow.css +486 -0
- package/dist/collection/components/x-workflow/x-workflow.js +1403 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +538 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +468 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/locales/index.js +2 -0
- package/dist/collection/locales/languages/ar_EG.js +120 -0
- package/dist/collection/locales/languages/az_AZ.js +120 -0
- package/dist/collection/locales/languages/bg_BG.js +120 -0
- package/dist/collection/locales/languages/bn_BD.js +120 -0
- package/dist/collection/locales/languages/by_BY.js +120 -0
- package/dist/collection/locales/languages/ca_ES.js +120 -0
- package/dist/collection/locales/languages/cs_CZ.js +120 -0
- package/dist/collection/locales/languages/da_DK.js +120 -0
- package/dist/collection/locales/languages/de_DE.js +120 -0
- package/dist/collection/locales/languages/el_GR.js +120 -0
- package/dist/collection/locales/languages/en_AU.js +120 -0
- package/dist/collection/locales/languages/en_GB.js +120 -0
- package/dist/collection/locales/languages/en_US.js +120 -0
- package/dist/collection/locales/languages/es_ES.js +120 -0
- package/dist/collection/locales/languages/et_EE.js +120 -0
- package/dist/collection/locales/languages/fa_IR.js +120 -0
- package/dist/collection/locales/languages/fi_FI.js +120 -0
- package/dist/collection/locales/languages/fr_BE.js +120 -0
- package/dist/collection/locales/languages/fr_CA.js +120 -0
- package/dist/collection/locales/languages/fr_FR.js +120 -0
- package/dist/collection/locales/languages/ga_IE.js +120 -0
- package/dist/collection/locales/languages/gl_ES.js +120 -0
- package/dist/collection/locales/languages/he_IL.js +120 -0
- package/dist/collection/locales/languages/hi_IN.js +120 -0
- package/dist/collection/locales/languages/hr_HR.js +120 -0
- package/dist/collection/locales/languages/hu_HU.js +120 -0
- package/dist/collection/locales/languages/hy_AM.js +120 -0
- package/dist/collection/locales/languages/id_ID.js +120 -0
- package/dist/collection/locales/languages/index.js +137 -0
- package/dist/collection/locales/languages/is_IS.js +120 -0
- package/dist/collection/locales/languages/it_IT.js +120 -0
- package/dist/collection/locales/languages/ja_JP.js +120 -0
- package/dist/collection/locales/languages/ka_GE.js +120 -0
- package/dist/collection/locales/languages/kk_KZ.js +120 -0
- package/dist/collection/locales/languages/km_KH.js +120 -0
- package/dist/collection/locales/languages/kmr_IQ.js +120 -0
- package/dist/collection/locales/languages/kn_IN.js +120 -0
- package/dist/collection/locales/languages/ko_KR.js +120 -0
- package/dist/collection/locales/languages/ku_IQ.js +120 -0
- package/dist/collection/locales/languages/lt_LT.js +120 -0
- package/dist/collection/locales/languages/lv_LV.js +120 -0
- package/dist/collection/locales/languages/mk_MK.js +120 -0
- package/dist/collection/locales/languages/ml_IN.js +120 -0
- package/dist/collection/locales/languages/mn_MN.js +120 -0
- package/dist/collection/locales/languages/ms_MY.js +120 -0
- package/dist/collection/locales/languages/nb_NO.js +120 -0
- package/dist/collection/locales/languages/ne_NP.js +120 -0
- package/dist/collection/locales/languages/nl_BE.js +120 -0
- package/dist/collection/locales/languages/nl_NL.js +120 -0
- package/dist/collection/locales/languages/pl_PL.js +120 -0
- package/dist/collection/locales/languages/pt_BR.js +120 -0
- package/dist/collection/locales/languages/pt_PT.js +120 -0
- package/dist/collection/locales/languages/ro_RO.js +120 -0
- package/dist/collection/locales/languages/ru_RU.js +120 -0
- package/dist/collection/locales/languages/sk_SK.js +120 -0
- package/dist/collection/locales/languages/sl_SI.js +120 -0
- package/dist/collection/locales/languages/sr_RS.js +120 -0
- package/dist/collection/locales/languages/sv_SE.js +120 -0
- package/dist/collection/locales/languages/ta_IN.js +120 -0
- package/dist/collection/locales/languages/th_TH.js +120 -0
- package/dist/collection/locales/languages/tr_TR.js +120 -0
- package/dist/collection/locales/languages/uk_UA.js +120 -0
- package/dist/collection/locales/languages/ur_PK.js +120 -0
- package/dist/collection/locales/languages/vi_VN.js +120 -0
- package/dist/collection/locales/languages/zh_CN.js +120 -0
- package/dist/collection/locales/languages/zh_HK.js +120 -0
- package/dist/collection/locales/languages/zh_TW.js +120 -0
- package/dist/collection/locales/locale.service.js +179 -0
- package/dist/collection/types.js +11 -0
- package/dist/collection/utils/app-service.js +19 -0
- package/dist/collection/utils/cascader.service.js +142 -0
- package/dist/collection/utils/config.js +59 -0
- package/dist/collection/utils/form/core/abstract-control.js +273 -0
- package/dist/collection/utils/form/core/form-array.js +131 -0
- package/dist/collection/utils/form/core/form-builder.js +56 -0
- package/dist/collection/utils/form/core/form-control.js +69 -0
- package/dist/collection/utils/form/core/form-group.js +163 -0
- package/dist/collection/utils/form/frameworks.js +37 -0
- package/dist/collection/utils/form/types.js +1 -0
- package/dist/collection/utils/form/validators/validators.js +198 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/qr-code/cache/qr.cache.js +20 -0
- package/dist/collection/utils/qr-code/engine/qr.engine.js +130 -0
- package/dist/collection/utils/qr-code/engine/qr.gf.js +22 -0
- package/dist/collection/utils/qr-code/engine/qr.mask.js +54 -0
- package/dist/collection/utils/qr-code/engine/qr.rs.js +29 -0
- package/dist/collection/utils/qr-code/engine/qr.util.js +0 -0
- package/dist/collection/utils/qr-code/engine/qr.version.js +11 -0
- package/dist/collection/utils/qr-code/renderer/canvas.renderer.js +36 -0
- package/dist/collection/utils/qr-code/renderer/svg.renderer.js +33 -0
- package/dist/collection/utils/qr-code/worker/worker.manager.js +24 -0
- package/dist/collection/utils/table.service.js +150 -0
- package/dist/collection/utils/tree.service.js +335 -0
- package/dist/collection/utils/workflow/flow.service.js +382 -0
- package/dist/collection/utils/workflow/types.js +1 -0
- package/dist/esm/abstract-control-XBF88YT_.js +275 -0
- package/dist/esm/config-BPeosvTA.js +60 -0
- package/dist/esm/index-ig_mFsVk.js +2159 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/locale.service-D66tF8_2.js +8199 -0
- package/dist/esm/modal-service-C_e0SaFZ.js +397 -0
- package/dist/esm/notification-service-DJTSPOq7.js +599 -0
- package/dist/esm/portal-controller-COpzIi1n.js +499 -0
- package/dist/esm/schema-builder-DBPGgJBx.js +1502 -0
- package/dist/esm/tree.service-Dgxy93Bg.js +337 -0
- package/dist/esm/types-C_QdJRdB.js +253 -0
- package/dist/esm/x-address_14.entry.js +12562 -0
- package/dist/esm/x-affix.entry.js +180 -0
- package/dist/esm/x-alert_11.entry.js +3227 -0
- package/dist/esm/x-anchor-link.entry.js +65 -0
- package/dist/esm/x-anchor.entry.js +156 -0
- package/dist/esm/x-app.entry.js +135 -0
- package/dist/esm/x-auto-complete-dropdown-content.entry.js +67 -0
- package/dist/esm/x-avatar.entry.js +267 -0
- package/dist/esm/x-back-top.entry.js +87 -0
- package/dist/esm/x-breadcrumb_5.entry.js +1548 -0
- package/dist/esm/x-button.entry.js +172 -0
- package/dist/esm/x-card_12.entry.js +1373 -0
- package/dist/esm/x-carousel.entry.js +145 -0
- package/dist/esm/x-cascader-dropdown-content.entry.js +362 -0
- package/dist/esm/x-checkbox_5.entry.js +1370 -0
- package/dist/esm/x-collapse-panel.entry.js +241 -0
- package/dist/esm/x-collapse.entry.js +289 -0
- package/dist/esm/x-color-picker-panel_2.entry.js +870 -0
- package/dist/esm/x-color-picker_9.entry.js +3075 -0
- package/dist/esm/x-comment.entry.js +187 -0
- package/dist/esm/x-date-picker-dropdown-content.entry.js +755 -0
- package/dist/esm/x-descriptions-item.entry.js +106 -0
- package/dist/esm/x-drawer-content.entry.js +195 -0
- package/dist/esm/x-drawer.entry.js +292 -0
- package/dist/esm/x-dropdown_2.entry.js +732 -0
- package/dist/esm/x-empty.entry.js +62 -0
- package/dist/esm/x-finder.entry.js +645 -0
- package/dist/esm/x-form-builder.entry.js +805 -0
- package/dist/esm/x-icon.entry.js +142 -0
- package/dist/esm/x-infinite-scroll.entry.js +127 -0
- package/dist/esm/x-list-item.entry.js +25 -0
- package/dist/esm/x-list.entry.js +136 -0
- package/dist/esm/x-mentions.entry.js +273 -0
- package/dist/esm/x-menu-divider.entry.js +47 -0
- package/dist/esm/x-menu-item-group.entry.js +147 -0
- package/dist/esm/x-menu-submenu.entry.js +371 -0
- package/dist/esm/x-message.entry.js +217 -0
- package/dist/esm/x-modal-content.entry.js +215 -0
- package/dist/esm/x-notification.entry.js +323 -0
- package/dist/esm/x-page-header.entry.js +65 -0
- package/dist/esm/x-popconfirm-content.entry.js +70 -0
- package/dist/esm/x-popconfirm.entry.js +179 -0
- package/dist/esm/x-progress.entry.js +134 -0
- package/dist/esm/x-qr-code.entry.js +444 -0
- package/dist/esm/x-range-picker-dropdown-content.entry.js +819 -0
- package/dist/esm/x-select_2.entry.js +1313 -0
- package/dist/esm/x-skeleton.entry.js +73 -0
- package/dist/esm/x-spin.entry.js +60 -0
- package/dist/esm/x-splitter-panel.entry.js +89 -0
- package/dist/esm/x-splitter.entry.js +610 -0
- package/dist/esm/x-statistic.entry.js +102 -0
- package/dist/esm/x-step.entry.js +177 -0
- package/dist/esm/x-steps.entry.js +437 -0
- package/dist/esm/x-tab-pane.entry.js +71 -0
- package/dist/esm/x-table-cell.entry.js +43 -0
- package/dist/esm/x-table-row.entry.js +83 -0
- package/dist/esm/x-tabs.entry.js +607 -0
- package/dist/esm/x-time-picker-dropdown-content.entry.js +387 -0
- package/dist/esm/x-timeline-item.entry.js +48 -0
- package/dist/esm/x-timeline.entry.js +50 -0
- package/dist/esm/x-tour-panel.entry.js +87 -0
- package/dist/esm/x-tour.entry.js +342 -0
- package/dist/esm/x-tree-select-dropdown-content.entry.js +437 -0
- package/dist/esm/x-virtual-scroll.entry.js +201 -0
- package/dist/esm/x-workflow-builder.entry.js +364 -0
- package/dist/esm/xlabs-store.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/x-address/vietnam-data.d.ts +14 -0
- package/dist/types/components/x-address/x-address.d.ts +64 -0
- package/dist/types/components/x-affix/x-affix.d.ts +111 -0
- package/dist/types/components/x-alert/x-alert.d.ts +74 -0
- package/dist/types/components/x-anchor/x-anchor.d.ts +120 -0
- package/dist/types/components/x-anchor-link/x-anchor-link.d.ts +47 -0
- package/dist/types/components/x-app/x-app.d.ts +93 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.d.ts +58 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-auto-complete/types.d.ts +150 -0
- package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +480 -0
- package/dist/types/components/x-avatar/types.d.ts +38 -0
- package/dist/types/components/x-avatar/x-avatar.d.ts +171 -0
- package/dist/types/components/x-back-top/x-back-top.d.ts +59 -0
- package/dist/types/components/x-badge/types.d.ts +23 -0
- package/dist/types/components/x-badge/x-badge.d.ts +184 -0
- package/dist/types/components/x-breadcrumb/x-breadcrumb.d.ts +43 -0
- package/dist/types/components/x-breadcrumb-item/x-breadcrumb-item.d.ts +43 -0
- package/dist/types/components/x-button/x-button.d.ts +121 -0
- package/dist/types/components/x-captcha/x-captcha.d.ts +78 -0
- package/dist/types/components/x-card/x-card.d.ts +139 -0
- package/dist/types/components/x-carousel/x-carousel.d.ts +104 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.d.ts +255 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/types.d.ts +20 -0
- package/dist/types/components/x-cascader/types.d.ts +143 -0
- package/dist/types/components/x-cascader/x-cascader.d.ts +520 -0
- package/dist/types/components/x-checkbox/types.d.ts +83 -0
- package/dist/types/components/x-checkbox/x-checkbox.d.ts +156 -0
- package/dist/types/components/x-col/x-col.d.ts +89 -0
- package/dist/types/components/x-collapse/types.d.ts +55 -0
- package/dist/types/components/x-collapse/x-collapse.d.ts +157 -0
- package/dist/types/components/x-collapse-panel/x-collapse-panel.d.ts +143 -0
- package/dist/types/components/x-color-picker/types.d.ts +135 -0
- package/dist/types/components/x-color-picker/x-color-picker-panel.d.ts +80 -0
- package/dist/types/components/x-color-picker/x-color-picker.d.ts +328 -0
- package/dist/types/components/x-comment/types.d.ts +20 -0
- package/dist/types/components/x-comment/x-comment.d.ts +111 -0
- package/dist/types/components/x-content/types.d.ts +6 -0
- package/dist/types/components/x-content/x-content.d.ts +64 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.d.ts +376 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/types.d.ts +61 -0
- package/dist/types/components/x-date-picker/types.d.ts +28 -0
- package/dist/types/components/x-date-picker/x-date-picker.d.ts +512 -0
- package/dist/types/components/x-descriptions/types.d.ts +41 -0
- package/dist/types/components/x-descriptions/x-descriptions.d.ts +141 -0
- package/dist/types/components/x-descriptions-item/x-descriptions-item.d.ts +70 -0
- package/dist/types/components/x-divider/x-divider.d.ts +82 -0
- package/dist/types/components/x-drawer/x-drawer.d.ts +156 -0
- package/dist/types/components/x-drawer-content/x-drawer-content.d.ts +142 -0
- package/dist/types/components/x-dropdown/dropdown-content/dropdown-content.d.ts +83 -0
- package/dist/types/components/x-dropdown/dropdown-content/types.d.ts +16 -0
- package/dist/types/components/x-dropdown/types.d.ts +119 -0
- package/dist/types/components/x-dropdown/x-dropdown.d.ts +292 -0
- package/dist/types/components/x-editor/editor-history.d.ts +62 -0
- package/dist/types/components/x-editor/editor-normalizer.d.ts +70 -0
- package/dist/types/components/x-editor/editor-parser.d.ts +34 -0
- package/dist/types/components/x-editor/editor-selection.d.ts +92 -0
- package/dist/types/components/x-editor/types.d.ts +62 -0
- package/dist/types/components/x-editor/x-editor.d.ts +279 -0
- package/dist/types/components/x-empty/x-empty.d.ts +45 -0
- package/dist/types/components/x-finder/services/finder-service.d.ts +38 -0
- package/dist/types/components/x-finder/types.d.ts +63 -0
- package/dist/types/components/x-finder/x-finder.d.ts +66 -0
- package/dist/types/components/x-flex/x-flex.d.ts +62 -0
- package/dist/types/components/x-float-button/x-float-button.d.ts +66 -0
- package/dist/types/components/x-footer/x-footer.d.ts +11 -0
- package/dist/types/components/x-form/x-form.d.ts +64 -0
- package/dist/types/components/x-form-builder/services/apis/api-client.d.ts +63 -0
- package/dist/types/components/x-form-builder/services/constants/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/services/forms/abstract-control.d.ts +59 -0
- package/dist/types/components/x-form-builder/services/forms/form-array.d.ts +25 -0
- package/dist/types/components/x-form-builder/services/forms/form-builder.d.ts +17 -0
- package/dist/types/components/x-form-builder/services/forms/form-control.d.ts +14 -0
- package/dist/types/components/x-form-builder/services/forms/form-group.d.ts +33 -0
- package/dist/types/components/x-form-builder/services/forms/index.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/types.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/validators.d.ts +16 -0
- package/dist/types/components/x-form-builder/services/schema/condition-builder.d.ts +39 -0
- package/dist/types/components/x-form-builder/services/schema/default-registry.d.ts +1 -0
- package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +26 -0
- package/dist/types/components/x-form-builder/services/schema/form-registry.d.ts +27 -0
- package/dist/types/components/x-form-builder/services/schema/schema-actions.d.ts +3 -0
- package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +19 -0
- package/dist/types/components/x-form-builder/services/schema/schema-validator.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/api/api-common-types.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/api/api-interfaces.d.ts +52 -0
- package/dist/types/components/x-form-builder/types/api/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/common-types.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/common/condition-types.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/index.d.ts +7 -0
- package/dist/types/components/x-form-builder/types/common/shared-interfaces.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +36 -0
- package/dist/types/components/x-form-builder/types/common/value-types.d.ts +15 -0
- package/dist/types/components/x-form-builder/types/event/event-types.d.ts +16 -0
- package/dist/types/components/x-form-builder/types/event/index.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +125 -0
- package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +92 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/index.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +55 -0
- package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +130 -0
- package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +99 -0
- package/dist/types/components/x-form-builder/types/form/events-types.d.ts +29 -0
- package/dist/types/components/x-form-builder/types/form/form-config.d.ts +0 -0
- package/dist/types/components/x-form-builder/types/form/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +134 -0
- package/dist/types/components/x-form-builder/types/index.d.ts +4 -0
- package/dist/types/components/x-form-builder/utils/condition-engine.d.ts +23 -0
- package/dist/types/components/x-form-builder/utils/utils.d.ts +19 -0
- package/dist/types/components/x-form-builder/utils/values.d.ts +8 -0
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +65 -0
- package/dist/types/components/x-form-item/x-form-item.d.ts +94 -0
- package/dist/types/components/x-header/x-header.d.ts +11 -0
- package/dist/types/components/x-icon/icons.d.ts +2717 -0
- package/dist/types/components/x-icon/x-icon.d.ts +89 -0
- package/dist/types/components/x-image/types.d.ts +94 -0
- package/dist/types/components/x-image/x-image.d.ts +150 -0
- package/dist/types/components/x-infinite-scroll/x-infinite-scroll.d.ts +75 -0
- package/dist/types/components/x-input/types.d.ts +14 -0
- package/dist/types/components/x-input/x-input.d.ts +385 -0
- package/dist/types/components/x-input-number/types.d.ts +98 -0
- package/dist/types/components/x-input-number/x-input-number.d.ts +395 -0
- package/dist/types/components/x-layout/x-layout.d.ts +61 -0
- package/dist/types/components/x-list/x-list.d.ts +100 -0
- package/dist/types/components/x-list-item/x-list-item.d.ts +13 -0
- package/dist/types/components/x-mentions/types.d.ts +7 -0
- package/dist/types/components/x-mentions/x-mentions.d.ts +159 -0
- package/dist/types/components/x-menu/types.d.ts +83 -0
- package/dist/types/components/x-menu/x-menu.d.ts +153 -0
- package/dist/types/components/x-menu-divider/types.d.ts +6 -0
- package/dist/types/components/x-menu-divider/x-menu-divider.d.ts +19 -0
- package/dist/types/components/x-menu-item/types.d.ts +8 -0
- package/dist/types/components/x-menu-item/x-menu-item.d.ts +80 -0
- package/dist/types/components/x-menu-item-group/types.d.ts +6 -0
- package/dist/types/components/x-menu-item-group/x-menu-item-group.d.ts +60 -0
- package/dist/types/components/x-menu-submenu/types.d.ts +15 -0
- package/dist/types/components/x-menu-submenu/x-menu-submenu.d.ts +135 -0
- package/dist/types/components/x-message/message-service.d.ts +58 -0
- package/dist/types/components/x-message/types.d.ts +90 -0
- package/dist/types/components/x-message/x-message.d.ts +133 -0
- package/dist/types/components/x-modal/modal-service.d.ts +6 -0
- package/dist/types/components/x-modal/modal-service.types.d.ts +278 -0
- package/dist/types/components/x-modal/x-modal.d.ts +160 -0
- package/dist/types/components/x-modal-content/index.d.ts +1 -0
- package/dist/types/components/x-modal-content/types.d.ts +83 -0
- package/dist/types/components/x-modal-content/x-modal-content.d.ts +174 -0
- package/dist/types/components/x-notification/notification-service.d.ts +83 -0
- package/dist/types/components/x-notification/types.d.ts +112 -0
- package/dist/types/components/x-notification/x-notification.d.ts +212 -0
- package/dist/types/components/x-page-header/x-page-header.d.ts +51 -0
- package/dist/types/components/x-pagination/types.d.ts +104 -0
- package/dist/types/components/x-pagination/x-pagination.d.ts +274 -0
- package/dist/types/components/x-popconfirm/popconfirm-content/popconfirm-content.d.ts +62 -0
- package/dist/types/components/x-popconfirm/x-popconfirm.d.ts +97 -0
- package/dist/types/components/x-popover/popover-content/popover-content.d.ts +71 -0
- package/dist/types/components/x-popover/x-popover.d.ts +99 -0
- package/dist/types/components/x-portal/debug.d.ts +5 -0
- package/dist/types/components/x-portal/index.d.ts +2 -0
- package/dist/types/components/x-portal/portal-controller.d.ts +20 -0
- package/dist/types/components/x-portal/positioning.d.ts +102 -0
- package/dist/types/components/x-portal/types.d.ts +43 -0
- package/dist/types/components/x-portal/x-portal.d.ts +19 -0
- package/dist/types/components/x-progress/x-progress.d.ts +85 -0
- package/dist/types/components/x-qr-code/x-qr-code.d.ts +26 -0
- package/dist/types/components/x-radio/types.d.ts +94 -0
- package/dist/types/components/x-radio/x-radio.d.ts +186 -0
- package/dist/types/components/x-radio-group/types.d.ts +20 -0
- package/dist/types/components/x-radio-group/x-radio-group.d.ts +90 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.d.ts +437 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/types.d.ts +48 -0
- package/dist/types/components/x-range-picker/types.d.ts +35 -0
- package/dist/types/components/x-range-picker/x-range-picker.d.ts +457 -0
- package/dist/types/components/x-rate/x-rate.d.ts +129 -0
- package/dist/types/components/x-result/types.d.ts +45 -0
- package/dist/types/components/x-result/x-result.d.ts +120 -0
- package/dist/types/components/x-row/x-row.d.ts +44 -0
- package/dist/types/components/x-segmented/types.d.ts +10 -0
- package/dist/types/components/x-segmented/x-segmented.d.ts +128 -0
- package/dist/types/components/x-select/select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-select/select-dropdown-content/select-dropdown-content.d.ts +52 -0
- package/dist/types/components/x-select/select-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-select/types.d.ts +41 -0
- package/dist/types/components/x-select/x-select.d.ts +635 -0
- package/dist/types/components/x-select-option/x-select-option.d.ts +51 -0
- package/dist/types/components/x-sider/x-sider.d.ts +99 -0
- package/dist/types/components/x-skeleton/x-skeleton.d.ts +54 -0
- package/dist/types/components/x-slider/types.d.ts +1 -0
- package/dist/types/components/x-slider/x-slider.d.ts +240 -0
- package/dist/types/components/x-space/x-space.d.ts +54 -0
- package/dist/types/components/x-spin/x-spin.d.ts +41 -0
- package/dist/types/components/x-splitter/types.d.ts +41 -0
- package/dist/types/components/x-splitter/x-splitter.d.ts +187 -0
- package/dist/types/components/x-splitter-panel/types.d.ts +23 -0
- package/dist/types/components/x-splitter-panel/x-splitter-panel.d.ts +67 -0
- package/dist/types/components/x-statistic/x-statistic.d.ts +80 -0
- package/dist/types/components/x-step/types.d.ts +14 -0
- package/dist/types/components/x-step/x-step.d.ts +104 -0
- package/dist/types/components/x-steps/types.d.ts +124 -0
- package/dist/types/components/x-steps/x-steps.d.ts +270 -0
- package/dist/types/components/x-switch/types.d.ts +5 -0
- package/dist/types/components/x-switch/x-switch.d.ts +92 -0
- package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +55 -0
- package/dist/types/components/x-table/column-util.d.ts +26 -0
- package/dist/types/components/x-table/types.d.ts +386 -0
- package/dist/types/components/x-table/x-table.d.ts +552 -0
- package/dist/types/components/x-table-cell/x-table-cell.d.ts +27 -0
- package/dist/types/components/x-table-row/x-table-row.d.ts +24 -0
- package/dist/types/components/x-tabs/types.d.ts +190 -0
- package/dist/types/components/x-tabs/x-tabs.d.ts +359 -0
- package/dist/types/components/x-tag/types.d.ts +27 -0
- package/dist/types/components/x-tag/x-tag.d.ts +148 -0
- package/dist/types/components/x-textarea/x-textarea.d.ts +165 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.d.ts +239 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/types.d.ts +28 -0
- package/dist/types/components/x-time-picker/types.d.ts +18 -0
- package/dist/types/components/x-time-picker/x-time-picker.d.ts +378 -0
- package/dist/types/components/x-timeline/x-timeline.d.ts +33 -0
- package/dist/types/components/x-timeline-item/x-timeline-item.d.ts +33 -0
- package/dist/types/components/x-tooltip/types.d.ts +53 -0
- package/dist/types/components/x-tooltip/x-tooltip.d.ts +274 -0
- package/dist/types/components/x-tooltip-content/index.d.ts +1 -0
- package/dist/types/components/x-tooltip-content/types.d.ts +25 -0
- package/dist/types/components/x-tooltip-content/x-tooltip-content.d.ts +57 -0
- package/dist/types/components/x-tour/index.d.ts +1 -0
- package/dist/types/components/x-tour/types.d.ts +71 -0
- package/dist/types/components/x-tour/x-tour-panel.d.ts +73 -0
- package/dist/types/components/x-tour/x-tour.d.ts +158 -0
- package/dist/types/components/x-transfer/types.d.ts +89 -0
- package/dist/types/components/x-transfer/x-transfer.d.ts +291 -0
- package/dist/types/components/x-tree/types.d.ts +163 -0
- package/dist/types/components/x-tree/x-tree.d.ts +406 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.d.ts +268 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/types.d.ts +24 -0
- package/dist/types/components/x-tree-select/types.d.ts +100 -0
- package/dist/types/components/x-tree-select/x-tree-select.d.ts +750 -0
- package/dist/types/components/x-typography/x-typography.d.ts +89 -0
- package/dist/types/components/x-upload/types.d.ts +177 -0
- package/dist/types/components/x-upload/x-upload.d.ts +361 -0
- package/dist/types/components/x-virtual-scroll/x-virtual-scroll.d.ts +127 -0
- package/dist/types/components/x-workflow/x-workflow.d.ts +126 -0
- package/dist/types/components/x-workflow-builder/x-workflow-builder.d.ts +69 -0
- package/dist/types/components.d.ts +19048 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/locales/index.d.ts +2 -0
- package/dist/types/locales/languages/ar_EG.d.ts +119 -0
- package/dist/types/locales/languages/az_AZ.d.ts +119 -0
- package/dist/types/locales/languages/bg_BG.d.ts +119 -0
- package/dist/types/locales/languages/bn_BD.d.ts +119 -0
- package/dist/types/locales/languages/by_BY.d.ts +119 -0
- package/dist/types/locales/languages/ca_ES.d.ts +119 -0
- package/dist/types/locales/languages/cs_CZ.d.ts +119 -0
- package/dist/types/locales/languages/da_DK.d.ts +119 -0
- package/dist/types/locales/languages/de_DE.d.ts +119 -0
- package/dist/types/locales/languages/el_GR.d.ts +119 -0
- package/dist/types/locales/languages/en_AU.d.ts +119 -0
- package/dist/types/locales/languages/en_GB.d.ts +119 -0
- package/dist/types/locales/languages/en_US.d.ts +119 -0
- package/dist/types/locales/languages/es_ES.d.ts +119 -0
- package/dist/types/locales/languages/et_EE.d.ts +119 -0
- package/dist/types/locales/languages/fa_IR.d.ts +119 -0
- package/dist/types/locales/languages/fi_FI.d.ts +119 -0
- package/dist/types/locales/languages/fr_BE.d.ts +119 -0
- package/dist/types/locales/languages/fr_CA.d.ts +119 -0
- package/dist/types/locales/languages/fr_FR.d.ts +119 -0
- package/dist/types/locales/languages/ga_IE.d.ts +119 -0
- package/dist/types/locales/languages/gl_ES.d.ts +119 -0
- package/dist/types/locales/languages/he_IL.d.ts +119 -0
- package/dist/types/locales/languages/hi_IN.d.ts +119 -0
- package/dist/types/locales/languages/hr_HR.d.ts +119 -0
- package/dist/types/locales/languages/hu_HU.d.ts +119 -0
- package/dist/types/locales/languages/hy_AM.d.ts +119 -0
- package/dist/types/locales/languages/id_ID.d.ts +119 -0
- package/dist/types/locales/languages/index.d.ts +13 -0
- package/dist/types/locales/languages/is_IS.d.ts +119 -0
- package/dist/types/locales/languages/it_IT.d.ts +119 -0
- package/dist/types/locales/languages/ja_JP.d.ts +119 -0
- package/dist/types/locales/languages/ka_GE.d.ts +119 -0
- package/dist/types/locales/languages/kk_KZ.d.ts +119 -0
- package/dist/types/locales/languages/km_KH.d.ts +119 -0
- package/dist/types/locales/languages/kmr_IQ.d.ts +119 -0
- package/dist/types/locales/languages/kn_IN.d.ts +119 -0
- package/dist/types/locales/languages/ko_KR.d.ts +119 -0
- package/dist/types/locales/languages/ku_IQ.d.ts +119 -0
- package/dist/types/locales/languages/lt_LT.d.ts +119 -0
- package/dist/types/locales/languages/lv_LV.d.ts +119 -0
- package/dist/types/locales/languages/mk_MK.d.ts +119 -0
- package/dist/types/locales/languages/ml_IN.d.ts +119 -0
- package/dist/types/locales/languages/mn_MN.d.ts +119 -0
- package/dist/types/locales/languages/ms_MY.d.ts +119 -0
- package/dist/types/locales/languages/nb_NO.d.ts +119 -0
- package/dist/types/locales/languages/ne_NP.d.ts +119 -0
- package/dist/types/locales/languages/nl_BE.d.ts +119 -0
- package/dist/types/locales/languages/nl_NL.d.ts +119 -0
- package/dist/types/locales/languages/pl_PL.d.ts +119 -0
- package/dist/types/locales/languages/pt_BR.d.ts +119 -0
- package/dist/types/locales/languages/pt_PT.d.ts +119 -0
- package/dist/types/locales/languages/ro_RO.d.ts +119 -0
- package/dist/types/locales/languages/ru_RU.d.ts +119 -0
- package/dist/types/locales/languages/sk_SK.d.ts +119 -0
- package/dist/types/locales/languages/sl_SI.d.ts +119 -0
- package/dist/types/locales/languages/sr_RS.d.ts +119 -0
- package/dist/types/locales/languages/sv_SE.d.ts +119 -0
- package/dist/types/locales/languages/ta_IN.d.ts +119 -0
- package/dist/types/locales/languages/th_TH.d.ts +119 -0
- package/dist/types/locales/languages/tr_TR.d.ts +119 -0
- package/dist/types/locales/languages/uk_UA.d.ts +119 -0
- package/dist/types/locales/languages/ur_PK.d.ts +119 -0
- package/dist/types/locales/languages/vi_VN.d.ts +119 -0
- package/dist/types/locales/languages/zh_CN.d.ts +119 -0
- package/dist/types/locales/languages/zh_HK.d.ts +119 -0
- package/dist/types/locales/languages/zh_TW.d.ts +119 -0
- package/dist/types/locales/locale.service.d.ts +93 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types.d.ts +59 -0
- package/dist/types/utils/app-service.d.ts +20 -0
- package/dist/types/utils/cascader.service.d.ts +45 -0
- package/dist/types/utils/config.d.ts +47 -0
- package/dist/types/utils/form/core/abstract-control.d.ts +121 -0
- package/dist/types/utils/form/core/form-array.d.ts +51 -0
- package/dist/types/utils/form/core/form-builder.d.ts +45 -0
- package/dist/types/utils/form/core/form-control.d.ts +37 -0
- package/dist/types/utils/form/core/form-group.d.ts +63 -0
- package/dist/types/utils/form/frameworks.d.ts +18 -0
- package/dist/types/utils/form/types.d.ts +8 -0
- package/dist/types/utils/form/validators/validators.d.ts +39 -0
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/types/utils/qr-code/cache/qr.cache.d.ts +7 -0
- package/dist/types/utils/qr-code/engine/qr.engine.d.ts +15 -0
- package/dist/types/utils/qr-code/engine/qr.gf.d.ts +4 -0
- package/dist/types/utils/qr-code/engine/qr.mask.d.ts +2 -0
- package/dist/types/utils/qr-code/engine/qr.rs.d.ts +1 -0
- package/dist/types/utils/qr-code/engine/qr.util.d.ts +0 -0
- package/dist/types/utils/qr-code/engine/qr.version.d.ts +16 -0
- package/dist/types/utils/qr-code/renderer/canvas.renderer.d.ts +6 -0
- package/dist/types/utils/qr-code/renderer/svg.renderer.d.ts +7 -0
- package/dist/types/utils/qr-code/worker/worker.manager.d.ts +12 -0
- package/dist/types/utils/table.service.d.ts +48 -0
- package/dist/types/utils/tree.service.d.ts +85 -0
- package/dist/types/utils/workflow/flow.service.d.ts +61 -0
- package/dist/types/utils/workflow/types.d.ts +120 -0
- package/dist/xlabs-store/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-solided.woff2 +0 -0
- package/dist/xlabs-store/index.esm.js +1 -0
- package/dist/xlabs-store/p-016194dc.entry.js +1 -0
- package/dist/xlabs-store/p-023259c9.entry.js +1 -0
- package/dist/xlabs-store/p-04a3721a.entry.js +1 -0
- package/dist/xlabs-store/p-072445b7.entry.js +1 -0
- package/dist/xlabs-store/p-0ec21454.entry.js +1 -0
- package/dist/xlabs-store/p-12b6a843.entry.js +1 -0
- package/dist/xlabs-store/p-1a81cf09.entry.js +1 -0
- package/dist/xlabs-store/p-1b019aeb.entry.js +1 -0
- package/dist/xlabs-store/p-262a0673.entry.js +1 -0
- package/dist/xlabs-store/p-34cce823.entry.js +1 -0
- package/dist/xlabs-store/p-3a9fdefe.entry.js +1 -0
- package/dist/xlabs-store/p-40036100.entry.js +1 -0
- package/dist/xlabs-store/p-45f04e8d.entry.js +1 -0
- package/dist/xlabs-store/p-48ba7c34.entry.js +1 -0
- package/dist/xlabs-store/p-48e2c26e.entry.js +1 -0
- package/dist/xlabs-store/p-4ac2e915.entry.js +1 -0
- package/dist/xlabs-store/p-4d7c2a35.entry.js +1 -0
- package/dist/xlabs-store/p-4f67cb33.entry.js +1 -0
- package/dist/xlabs-store/p-502b345e.entry.js +1 -0
- package/dist/xlabs-store/p-555c5e48.entry.js +1 -0
- package/dist/xlabs-store/p-5878525f.entry.js +1 -0
- package/dist/xlabs-store/p-5abbdca7.entry.js +1 -0
- package/dist/xlabs-store/p-6243ca69.entry.js +1 -0
- package/dist/xlabs-store/p-64e7a057.entry.js +1 -0
- package/dist/xlabs-store/p-6530d2ef.entry.js +1 -0
- package/dist/xlabs-store/p-675a39e1.entry.js +1 -0
- package/dist/xlabs-store/p-689c52ef.entry.js +1 -0
- package/dist/xlabs-store/p-69b8cb7d.entry.js +1 -0
- package/dist/xlabs-store/p-6b121c60.entry.js +1 -0
- package/dist/xlabs-store/p-6c75fc39.entry.js +1 -0
- package/dist/xlabs-store/p-6f705deb.entry.js +1 -0
- package/dist/xlabs-store/p-723d362c.entry.js +1 -0
- package/dist/xlabs-store/p-783545e3.entry.js +1 -0
- package/dist/xlabs-store/p-7a8f11b4.entry.js +1 -0
- package/dist/xlabs-store/p-81fb4caf.entry.js +1 -0
- package/dist/xlabs-store/p-863dd67d.entry.js +1 -0
- package/dist/xlabs-store/p-8bcbb4e3.entry.js +1 -0
- package/dist/xlabs-store/p-8bcc219a.entry.js +1 -0
- package/dist/xlabs-store/p-914b0ae2.entry.js +1 -0
- package/dist/xlabs-store/p-96b1939d.entry.js +1 -0
- package/dist/xlabs-store/p-9ac291ea.entry.js +1 -0
- package/dist/xlabs-store/p-9de03a07.entry.js +1 -0
- package/dist/xlabs-store/p-BPeosvTA.js +1 -0
- package/dist/xlabs-store/p-COpzIi1n.js +1 -0
- package/dist/xlabs-store/p-C_QdJRdB.js +1 -0
- package/dist/xlabs-store/p-Ce5L9qbY.js +1 -0
- package/dist/xlabs-store/p-Co3Y9VjQ.js +1 -0
- package/dist/xlabs-store/p-D66tF8_2.js +1 -0
- package/dist/xlabs-store/p-DElCk9ta.js +1 -0
- package/dist/xlabs-store/p-Dgxy93Bg.js +1 -0
- package/dist/xlabs-store/p-XBF88YT_.js +1 -0
- package/dist/xlabs-store/p-a4223feb.entry.js +1 -0
- package/dist/xlabs-store/p-a8c2eca7.entry.js +1 -0
- package/dist/xlabs-store/p-ac9ba3aa.entry.js +1 -0
- package/dist/xlabs-store/p-bd5084b8.entry.js +1 -0
- package/dist/xlabs-store/p-bda322db.entry.js +1 -0
- package/dist/xlabs-store/p-c0ca6f7d.entry.js +1 -0
- package/dist/xlabs-store/p-c4c8840c.entry.js +1 -0
- package/dist/xlabs-store/p-c4d0ce0d.entry.js +1 -0
- package/dist/xlabs-store/p-cd3c3374.entry.js +1 -0
- package/dist/xlabs-store/p-cf4697bc.entry.js +1 -0
- package/dist/xlabs-store/p-d2ec3d4a.entry.js +1 -0
- package/dist/xlabs-store/p-d4d00aff.entry.js +1 -0
- package/dist/xlabs-store/p-d9d0147b.entry.js +1 -0
- package/dist/xlabs-store/p-dd930f2a.entry.js +1 -0
- package/dist/xlabs-store/p-e04836e8.entry.js +1 -0
- package/dist/xlabs-store/p-e14b5f6d.entry.js +1 -0
- package/dist/xlabs-store/p-eb1dd3c2.entry.js +1 -0
- package/dist/xlabs-store/p-f02155e4.entry.js +1 -0
- package/dist/xlabs-store/p-f1331938.entry.js +1 -0
- package/dist/xlabs-store/p-fac0b689.entry.js +1 -0
- package/dist/xlabs-store/p-fd2e1d9c.entry.js +1 -0
- package/dist/xlabs-store/p-fdec5d89.entry.js +1 -0
- package/dist/xlabs-store/p-ffba56b2.entry.js +1 -0
- package/dist/xlabs-store/p-ig_mFsVk.js +2 -0
- package/dist/xlabs-store/xlabs-store.css +1 -0
- package/dist/xlabs-store/xlabs-store.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +69 -0
- package/readme.md +50 -0
|
@@ -0,0 +1,1403 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { FlowService } from "../../utils/workflow/flow.service";
|
|
3
|
+
export class XWorkflow {
|
|
4
|
+
el;
|
|
5
|
+
nodes = [];
|
|
6
|
+
edges = [];
|
|
7
|
+
fitView = false;
|
|
8
|
+
interactive = true;
|
|
9
|
+
viewportValue = { x: 0, y: 0, zoom: 1 };
|
|
10
|
+
snapToGridValue = 0;
|
|
11
|
+
background = { variant: 'dots' };
|
|
12
|
+
tool = 'select';
|
|
13
|
+
theme = 'light';
|
|
14
|
+
turboMode = false;
|
|
15
|
+
displayMode = 'advanced';
|
|
16
|
+
users = [];
|
|
17
|
+
nodeToolbarVisible = true;
|
|
18
|
+
nodeToolbarMode = 'selected';
|
|
19
|
+
edgeRoutingMode = 'fixed';
|
|
20
|
+
flowNodes = [];
|
|
21
|
+
flowEdges = [];
|
|
22
|
+
flowViewport = { x: 0, y: 0, zoom: 1 };
|
|
23
|
+
pendingConnection = null;
|
|
24
|
+
selectedNodes = [];
|
|
25
|
+
draggingNodeId = null;
|
|
26
|
+
proximityPreview = null;
|
|
27
|
+
helperLines = [];
|
|
28
|
+
contextMenu = null;
|
|
29
|
+
selectionRect = null;
|
|
30
|
+
drawings = [];
|
|
31
|
+
activeDrawing = null;
|
|
32
|
+
editingEdgeId = null;
|
|
33
|
+
focusedNodeId = null;
|
|
34
|
+
xNodesChange;
|
|
35
|
+
xEdgesChange;
|
|
36
|
+
xViewportChange;
|
|
37
|
+
xNodeClick;
|
|
38
|
+
xEdgeClick;
|
|
39
|
+
xConnect;
|
|
40
|
+
xWorkflowChange;
|
|
41
|
+
service;
|
|
42
|
+
isDraggingCanvas = false;
|
|
43
|
+
isUpdatingFromProp = false;
|
|
44
|
+
isInteracting = false;
|
|
45
|
+
lastMousePos = { x: 0, y: 0 };
|
|
46
|
+
container;
|
|
47
|
+
throttleTimer = null;
|
|
48
|
+
async forceLayout() {
|
|
49
|
+
this.service.forceLayout();
|
|
50
|
+
}
|
|
51
|
+
componentWillLoad() {
|
|
52
|
+
this.service = new FlowService(this.nodes, this.edges);
|
|
53
|
+
this.service.setViewport(this.viewportValue);
|
|
54
|
+
this.updateState();
|
|
55
|
+
this.service.subscribe(() => {
|
|
56
|
+
this.updateState();
|
|
57
|
+
this.throttleEmitWorkflowChange();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
throttleEmitWorkflowChange() {
|
|
61
|
+
if (this.throttleTimer)
|
|
62
|
+
return;
|
|
63
|
+
this.throttleTimer = setTimeout(() => {
|
|
64
|
+
this.xWorkflowChange.emit(this.service.getFullState());
|
|
65
|
+
this.throttleTimer = null;
|
|
66
|
+
}, 100);
|
|
67
|
+
}
|
|
68
|
+
handleNodesPropChange(nodes) {
|
|
69
|
+
this.isUpdatingFromProp = true;
|
|
70
|
+
this.service.setNodes(nodes);
|
|
71
|
+
this.isUpdatingFromProp = false;
|
|
72
|
+
}
|
|
73
|
+
handleEdgesPropChange(edges) {
|
|
74
|
+
this.isUpdatingFromProp = true;
|
|
75
|
+
this.service.setEdges(edges);
|
|
76
|
+
this.isUpdatingFromProp = false;
|
|
77
|
+
}
|
|
78
|
+
handleViewportChange(vp) {
|
|
79
|
+
this.isUpdatingFromProp = true;
|
|
80
|
+
this.service.setViewport(vp);
|
|
81
|
+
this.isUpdatingFromProp = false;
|
|
82
|
+
}
|
|
83
|
+
updateState() {
|
|
84
|
+
this.flowNodes = [...this.service.getNodes()];
|
|
85
|
+
this.flowEdges = [...this.service.getEdges()];
|
|
86
|
+
this.flowViewport = { ...this.service.getViewport() };
|
|
87
|
+
this.selectedNodes = [...this.service.getSelectedNodes()];
|
|
88
|
+
// During active interaction (drag/pan), suppress heavy external sync to prevent parent re-renders.
|
|
89
|
+
// We will emit the final state on mouseup.
|
|
90
|
+
if (!this.isUpdatingFromProp && !this.isInteracting) {
|
|
91
|
+
this.xViewportChange.emit(this.flowViewport);
|
|
92
|
+
this.xNodesChange.emit(this.flowNodes);
|
|
93
|
+
this.xEdgesChange.emit(this.flowEdges);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleMouseDown = (e) => {
|
|
97
|
+
if (!this.interactive)
|
|
98
|
+
return;
|
|
99
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
100
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
101
|
+
const target = e.target;
|
|
102
|
+
// Check if we're clicking on a node or edge
|
|
103
|
+
if (target.closest('.node') || target.closest('.edge-group'))
|
|
104
|
+
return;
|
|
105
|
+
if (target === this.container || target.closest('.background-canvas')) {
|
|
106
|
+
const rect = this.container.getBoundingClientRect();
|
|
107
|
+
const lx = (clientX - rect.left - this.flowViewport.x) / this.flowViewport.zoom, ly = (clientY - rect.top - this.flowViewport.y) / this.flowViewport.zoom;
|
|
108
|
+
if (this.tool === 'rectangle' || this.tool === 'freehand') {
|
|
109
|
+
this.startDrawing(lx, ly);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this.lastMousePos = { x: clientX, y: clientY };
|
|
113
|
+
if ('shiftKey' in e && e.shiftKey) {
|
|
114
|
+
this.selectionRect = { x: (clientX - rect.left), y: (clientY - rect.top), width: 0, height: 0 };
|
|
115
|
+
this.isInteracting = true;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.isDraggingCanvas = true;
|
|
119
|
+
this.isInteracting = true;
|
|
120
|
+
this.service.clearSelection();
|
|
121
|
+
}
|
|
122
|
+
this.contextMenu = null;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
handleMove(e) {
|
|
126
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX, clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
127
|
+
const { x, y, zoom } = this.flowViewport, rect = this.container.getBoundingClientRect();
|
|
128
|
+
if (this.isDraggingCanvas) {
|
|
129
|
+
const dx = clientX - this.lastMousePos.x, dy = clientY - this.lastMousePos.y;
|
|
130
|
+
this.lastMousePos = { x: clientX, y: clientY };
|
|
131
|
+
this.service.setViewport({ x: x + dx, y: y + dy, zoom });
|
|
132
|
+
}
|
|
133
|
+
if (this.pendingConnection) {
|
|
134
|
+
this.pendingConnection = { ...this.pendingConnection, mouseX: (clientX - rect.left - x) / zoom, mouseY: (clientY - rect.top - y) / zoom };
|
|
135
|
+
}
|
|
136
|
+
if (this.tool === 'eraser' && (('buttons' in e && e.buttons === 1) || 'touches' in e)) {
|
|
137
|
+
this.handleEraserAt(clientX, clientY);
|
|
138
|
+
}
|
|
139
|
+
if (this.activeDrawing) {
|
|
140
|
+
const lx = (clientX - rect.left - x) / zoom, ly = (clientY - rect.top - y) / zoom;
|
|
141
|
+
if (this.activeDrawing.type === 'rectangle')
|
|
142
|
+
this.activeDrawing = { ...this.activeDrawing, width: lx - this.activeDrawing.position.x, height: ly - this.activeDrawing.position.y };
|
|
143
|
+
else if (this.activeDrawing.type === 'freehand')
|
|
144
|
+
this.activeDrawing = { ...this.activeDrawing, points: [...this.activeDrawing.points, { x: lx, y: ly }] };
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
handleEraserAt(clientX, clientY) {
|
|
148
|
+
const rect = this.container.getBoundingClientRect(), { x: vx, y: vy, zoom } = this.flowViewport;
|
|
149
|
+
const lx = (clientX - rect.left - vx) / zoom, ly = (clientY - rect.top - vy) / zoom;
|
|
150
|
+
const node = this.flowNodes.find(n => { const w = n.width || 150, h = n.height || 48; return lx >= n.position.x && lx <= n.position.x + w && ly >= n.position.y && ly <= n.position.y + h; });
|
|
151
|
+
if (node)
|
|
152
|
+
this.service.deleteNode(node.id);
|
|
153
|
+
this.drawings = this.drawings.filter(d => {
|
|
154
|
+
if (d.type === 'rectangle') {
|
|
155
|
+
const rx = Math.min(d.position.x, d.position.x + (d.width || 0)), ry = Math.min(d.position.y, d.position.y + (d.height || 0)), rw = Math.abs(d.width || 0), rh = Math.abs(d.height || 0);
|
|
156
|
+
return !(lx >= rx && lx <= rx + rw && ly >= ry && ly <= ry + rh);
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
handleUp() {
|
|
162
|
+
if (this.isInteracting) {
|
|
163
|
+
this.isInteracting = false;
|
|
164
|
+
// Sync final state once interaction ends
|
|
165
|
+
this.updateState();
|
|
166
|
+
}
|
|
167
|
+
this.isDraggingCanvas = false;
|
|
168
|
+
if (this.activeDrawing) {
|
|
169
|
+
this.drawings = [...this.drawings, this.activeDrawing];
|
|
170
|
+
this.activeDrawing = null;
|
|
171
|
+
}
|
|
172
|
+
if (this.selectionRect) {
|
|
173
|
+
this.applyLassoSelection();
|
|
174
|
+
this.selectionRect = null;
|
|
175
|
+
}
|
|
176
|
+
// REMOVED premature clearing of pendingConnection which was causing errors in startConnectionHandler
|
|
177
|
+
// Drop-to-Group Logic
|
|
178
|
+
if (this.draggingNodeId) {
|
|
179
|
+
const node = this.flowNodes.find(n => n.id === this.draggingNodeId);
|
|
180
|
+
if (node) {
|
|
181
|
+
// const containerBox = this.container.getBoundingClientRect(); // This line was unused and removed
|
|
182
|
+
// const absX = node.position.x * this.flowViewport.zoom + this.flowViewport.x; // This line was unused and removed
|
|
183
|
+
// const absY = node.position.y * this.flowViewport.zoom + this.flowViewport.y; // This line was unused and removed
|
|
184
|
+
// Find potential parent node (type: group) under the drop position
|
|
185
|
+
const potentialParent = this.flowNodes.find(n => {
|
|
186
|
+
if (n.id === node.id || n.type !== 'group')
|
|
187
|
+
return false;
|
|
188
|
+
const nw = n.width || 400, nh = n.height || 300;
|
|
189
|
+
return node.position.x >= n.position.x && node.position.x + (node.width || 150) <= n.position.x + nw &&
|
|
190
|
+
node.position.y >= n.position.y && node.position.y + (node.height || 48) <= n.position.y + nh;
|
|
191
|
+
});
|
|
192
|
+
if (potentialParent)
|
|
193
|
+
this.service.setParent(node.id, potentialParent.id);
|
|
194
|
+
else if (node.parentId)
|
|
195
|
+
this.service.setParent(node.id, null);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
this.isDraggingCanvas = false;
|
|
199
|
+
this.draggingNodeId = null;
|
|
200
|
+
this.helperLines = [];
|
|
201
|
+
}
|
|
202
|
+
handleKeyDown(e) {
|
|
203
|
+
if (!this.interactive || e.target.tagName === 'INPUT')
|
|
204
|
+
return;
|
|
205
|
+
if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
|
|
206
|
+
e.preventDefault();
|
|
207
|
+
this.service.copySelected();
|
|
208
|
+
}
|
|
209
|
+
if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
|
|
210
|
+
e.preventDefault();
|
|
211
|
+
this.service.paste();
|
|
212
|
+
}
|
|
213
|
+
if ((e.ctrlKey || e.metaKey) && e.key === 'z') {
|
|
214
|
+
e.preventDefault();
|
|
215
|
+
if (e.shiftKey)
|
|
216
|
+
this.service.redo();
|
|
217
|
+
else
|
|
218
|
+
this.service.undo();
|
|
219
|
+
}
|
|
220
|
+
if (e.key === 'Delete' || e.key === 'Backspace') {
|
|
221
|
+
e.preventDefault();
|
|
222
|
+
this.service.deleteSelected();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
handleWheel = (e) => {
|
|
226
|
+
if (!this.interactive)
|
|
227
|
+
return;
|
|
228
|
+
e.preventDefault();
|
|
229
|
+
const zoomSpeed = 0.001, v = this.service.getViewport(), zoomDelta = -e.deltaY * zoomSpeed, newZoom = Math.min(Math.max(v.zoom + zoomDelta, 0.1), 5);
|
|
230
|
+
if (newZoom === v.zoom)
|
|
231
|
+
return;
|
|
232
|
+
const rect = this.container.getBoundingClientRect(), mouseX = e.clientX - rect.left, mouseY = e.clientY - rect.top, cx = (mouseX - v.x) / v.zoom, cy = (mouseY - v.y) / v.zoom;
|
|
233
|
+
this.service.setViewport({ x: mouseX - cx * newZoom, y: mouseY - cy * newZoom, zoom: newZoom });
|
|
234
|
+
};
|
|
235
|
+
render() {
|
|
236
|
+
const { x, y, zoom } = this.flowViewport, transform = `translate(${x}px, ${y}px) scale(${zoom})`;
|
|
237
|
+
return (h("div", { key: 'db1bff3ac7ea27720be9a937afc0ee78a1c7ddb3', class: { 'workflow-container': true, 'theme-dark': this.theme === 'dark' }, onMouseDown: this.handleMouseDown, onTouchStart: this.handleMouseDown, onWheel: this.handleWheel, ref: (el) => this.container = el }, h("div", { key: '24c5d1a846646f25d6ae1ace14f38e7d939d0348', class: "background-canvas" }, this.renderBackground()), h("div", { key: 'd96eb3b0188cb0c6f16e2e093873c56fd471ca37', class: "flow-renderer", style: { transform } }, h("svg", { key: '2801eb1d3d4fb082be5057f0b1500fbc3ac53583', class: "edges-svg" }, h("defs", { key: 'b797372dac820c84edc52087d07805bfb7155126' }, h("marker", { key: '8b0584a343dcbbc40a43767e4a6ab0733a0243d3', id: "arrowhead", markerWidth: "10", markerHeight: "7", refX: "9", refY: "3.5", orient: "auto" }, h("polygon", { key: 'dfe7c9ad6eeaccba3cd560b891021dad77c32b34', points: "0 0, 10 3.5, 0 7", fill: "currentColor" })), h("marker", { key: 'e098834ed3919e64aea097f9d9b2326781841e8e', id: "arrowhead-selected", markerWidth: "10", markerHeight: "7", refX: "9", refY: "3.5", orient: "auto" }, h("polygon", { key: '5c99c575d24f2f6cffddc71ecb3fc29c592416ec', points: "0 0, 10 3.5, 0 7", fill: "var(--x-primary-color)" }))), this.flowEdges
|
|
238
|
+
.sort((a, b) => (a.selected ? 1 : 0) - (b.selected ? 1 : 0))
|
|
239
|
+
.map(edge => this.renderEdge(edge)), this.renderPendingLine(), this.renderProximityPreview(), this.renderEdgeHandles()), h("div", { key: 'cd1699a7dd5a41e238be3d94329686e9e8975253', class: "nodes-layer" }, this.flowNodes.map(node => this.renderNode(node))), h("svg", { key: 'bd722c1ce4e18b83b5e954af15162c4fa6bbb44e', class: "drawings-layer" }, this.drawings.map(d => this.renderDrawing(d)), this.activeDrawing && this.renderDrawing(this.activeDrawing)), this.renderHelperLines(), this.renderUsers()), this.renderContextMenu(), this.renderSelectionRect()));
|
|
240
|
+
}
|
|
241
|
+
renderBackground() {
|
|
242
|
+
if (this.background.variant === 'dots') {
|
|
243
|
+
return (h("div", { class: "dots-bg", style: { backgroundSize: `${20 * this.flowViewport.zoom}px ${20 * this.flowViewport.zoom}px` } }));
|
|
244
|
+
}
|
|
245
|
+
return null;
|
|
246
|
+
}
|
|
247
|
+
renderUsers() {
|
|
248
|
+
return this.users.map(u => (h("div", { class: "user-cursor", style: { left: `${u.position.x}px`, top: `${u.position.y}px` } }, h("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: u.color }, h("path", { d: "M5 1v22l6-6h11z" })), h("span", { class: "user-name", style: { backgroundColor: u.color } }, u.name))));
|
|
249
|
+
}
|
|
250
|
+
renderPendingLine() {
|
|
251
|
+
if (!this.pendingConnection)
|
|
252
|
+
return null;
|
|
253
|
+
return (h("path", { d: `M${this.pendingConnection.startX},${this.pendingConnection.startY} L${this.pendingConnection.mouseX},${this.pendingConnection.mouseY}`, class: "edge-path pending" }));
|
|
254
|
+
}
|
|
255
|
+
renderProximityPreview() {
|
|
256
|
+
if (!this.proximityPreview)
|
|
257
|
+
return null;
|
|
258
|
+
const s = this.flowNodes.find(n => n.id === this.proximityPreview.source);
|
|
259
|
+
const t = this.flowNodes.find(n => n.id === this.proximityPreview.target);
|
|
260
|
+
if (!s || !t)
|
|
261
|
+
return null;
|
|
262
|
+
const sp = this.getHandlePos(s, this.proximityPreview.sourceHandle, t);
|
|
263
|
+
const tp = this.getHandlePos(t, this.proximityPreview.targetHandle, s);
|
|
264
|
+
return (h("path", { d: `M${sp.x},${sp.y} L${tp.x},${tp.y}`, class: "edge-path proximity-preview", "stroke-dasharray": "5,5", opacity: "0.5" }));
|
|
265
|
+
}
|
|
266
|
+
handleNodeClick(e, nodeId) {
|
|
267
|
+
const node = this.flowNodes.find(n => n.id === nodeId);
|
|
268
|
+
if (!node)
|
|
269
|
+
return;
|
|
270
|
+
if (e.shiftKey || e.ctrlKey || e.metaKey) {
|
|
271
|
+
this.service.selectNode(nodeId, true);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.service.selectNode(nodeId, false);
|
|
275
|
+
}
|
|
276
|
+
this.xNodeClick.emit(node);
|
|
277
|
+
}
|
|
278
|
+
handleEdgeLabelDblClick(e, edgeId) {
|
|
279
|
+
e.stopPropagation();
|
|
280
|
+
this.editingEdgeId = edgeId;
|
|
281
|
+
}
|
|
282
|
+
handleEdgeLabelChange(e, edgeId) {
|
|
283
|
+
const newLabel = e.target.value;
|
|
284
|
+
this.service.updateEdge(edgeId, { label: newLabel });
|
|
285
|
+
}
|
|
286
|
+
renderEdgeLabel(edge, x, y) {
|
|
287
|
+
return (h("foreignObject", { x: x - 50, y: y - 12, width: 100, height: 24, class: "edge-label-container" }, h("div", { class: "edge-label", onDblClick: (e) => this.handleEdgeLabelDblClick(e, edge.id) }, this.editingEdgeId === edge.id ? (h("input", { value: edge.label, onInput: (e) => this.handleEdgeLabelChange(e, edge.id), onKeyDown: (e) => e.key === 'Enter' && (this.editingEdgeId = null), onBlur: () => this.editingEdgeId = null, autoFocus: true, style: { width: '100%', background: 'white', border: '1px solid #ccc', borderRadius: '4px' } })) : (edge.label || ''))));
|
|
288
|
+
}
|
|
289
|
+
renderEdge(edge) {
|
|
290
|
+
const s = this.flowNodes.find(n => n.id === edge.source);
|
|
291
|
+
const t = this.flowNodes.find(n => n.id === edge.target);
|
|
292
|
+
if (!s || !t)
|
|
293
|
+
return null;
|
|
294
|
+
const sPos = this.getHandlePos(s, edge.sourceHandle, t);
|
|
295
|
+
const tPos = this.getHandlePos(t, edge.targetHandle, s);
|
|
296
|
+
let x1 = sPos.x;
|
|
297
|
+
let y1 = sPos.y;
|
|
298
|
+
let x2 = tPos.x;
|
|
299
|
+
let y2 = tPos.y;
|
|
300
|
+
// ✅ Multi-edge offset
|
|
301
|
+
const siblings = this.flowEdges.filter(e => e.source === edge.source && e.target === edge.target);
|
|
302
|
+
const index = siblings.findIndex(e => e.id === edge.id);
|
|
303
|
+
const offset = siblings.length > 1
|
|
304
|
+
? (index - (siblings.length - 1) / 2) * 20
|
|
305
|
+
: 0;
|
|
306
|
+
// apply offset theo normal vector
|
|
307
|
+
if (edge.type !== 'straight') {
|
|
308
|
+
const dx = x2 - x1;
|
|
309
|
+
const dy = y2 - y1;
|
|
310
|
+
const len = Math.hypot(dx, dy) || 1;
|
|
311
|
+
const nx = -dy / len;
|
|
312
|
+
const ny = dx / len;
|
|
313
|
+
x1 += nx * offset;
|
|
314
|
+
y1 += ny * offset;
|
|
315
|
+
x2 += nx * offset;
|
|
316
|
+
y2 += ny * offset;
|
|
317
|
+
}
|
|
318
|
+
let path = '';
|
|
319
|
+
// =========================================================
|
|
320
|
+
// 1. STRAIGHT
|
|
321
|
+
// =========================================================
|
|
322
|
+
if (edge.type === 'straight') {
|
|
323
|
+
path = `M${x1},${y1} L${x2},${y2}`;
|
|
324
|
+
}
|
|
325
|
+
// =========================================================
|
|
326
|
+
// 2. STEP / SMOOTHSTEP (FIXED VERSION)
|
|
327
|
+
// =========================================================
|
|
328
|
+
else if (edge.type === 'step' || edge.type === 'smoothstep') {
|
|
329
|
+
const isSmooth = edge.type === 'smoothstep';
|
|
330
|
+
const radius = isSmooth ? 8 : 0;
|
|
331
|
+
const points = [];
|
|
332
|
+
const midX = x1 + (x2 - x1) / 2;
|
|
333
|
+
const midY = y1 + (y2 - y1) / 2;
|
|
334
|
+
// routing basic
|
|
335
|
+
if (Math.abs(x1 - x2) > Math.abs(y1 - y2)) {
|
|
336
|
+
// horizontal first
|
|
337
|
+
points.push({ x: x1, y: y1 });
|
|
338
|
+
points.push({ x: midX, y: y1 });
|
|
339
|
+
points.push({ x: midX, y: y2 });
|
|
340
|
+
points.push({ x: x2, y: y2 });
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
// vertical first
|
|
344
|
+
points.push({ x: x1, y: y1 });
|
|
345
|
+
points.push({ x: x1, y: midY });
|
|
346
|
+
points.push({ x: x2, y: midY });
|
|
347
|
+
points.push({ x: x2, y: y2 });
|
|
348
|
+
}
|
|
349
|
+
const parts = [];
|
|
350
|
+
parts.push(`M${points[0].x},${points[0].y}`);
|
|
351
|
+
for (let i = 1; i < points.length - 1; i++) {
|
|
352
|
+
const prev = points[i - 1];
|
|
353
|
+
const curr = points[i];
|
|
354
|
+
const next = points[i + 1];
|
|
355
|
+
if (radius === 0) {
|
|
356
|
+
parts.push(`L${curr.x},${curr.y}`);
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
const dx1 = curr.x - prev.x;
|
|
360
|
+
const dy1 = curr.y - prev.y;
|
|
361
|
+
const dx2 = next.x - curr.x;
|
|
362
|
+
const dy2 = next.y - curr.y;
|
|
363
|
+
const len1 = Math.hypot(dx1, dy1);
|
|
364
|
+
const len2 = Math.hypot(dx2, dy2);
|
|
365
|
+
const r = Math.min(radius, len1 / 2, len2 / 2);
|
|
366
|
+
const p1x = curr.x - (dx1 / len1) * r;
|
|
367
|
+
const p1y = curr.y - (dy1 / len1) * r;
|
|
368
|
+
const p2x = curr.x + (dx2 / len2) * r;
|
|
369
|
+
const p2y = curr.y + (dy2 / len2) * r;
|
|
370
|
+
parts.push(`L${p1x},${p1y}`);
|
|
371
|
+
parts.push(`Q${curr.x},${curr.y} ${p2x},${p2y}`);
|
|
372
|
+
}
|
|
373
|
+
const last = points[points.length - 1];
|
|
374
|
+
parts.push(`L${last.x},${last.y}`);
|
|
375
|
+
path = parts.join(' ');
|
|
376
|
+
}
|
|
377
|
+
// =========================================================
|
|
378
|
+
// 3. DEFAULT (Bezier)
|
|
379
|
+
// =========================================================
|
|
380
|
+
else {
|
|
381
|
+
const dx = x2 - x1;
|
|
382
|
+
const curvature = 0.5;
|
|
383
|
+
path = `
|
|
384
|
+
M${x1},${y1}
|
|
385
|
+
C${x1 + dx * curvature},${y1}
|
|
386
|
+
${x2 - dx * curvature},${y2}
|
|
387
|
+
${x2},${y2}
|
|
388
|
+
`;
|
|
389
|
+
}
|
|
390
|
+
const isSelected = this.selectedNodes.includes(edge.id); // Assuming edges can be selected
|
|
391
|
+
return (h("g", { key: edge.id, class: { 'edge-group': true } }, h("path", { d: path, stroke: "transparent", "stroke-width": "20", fill: "none", style: { cursor: 'pointer', pointerEvents: 'stroke' }, onClick: (e) => {
|
|
392
|
+
e.stopPropagation();
|
|
393
|
+
this.service.selectEdge(edge.id, e.ctrlKey || e.metaKey);
|
|
394
|
+
this.xEdgeClick.emit(edge);
|
|
395
|
+
} }), h("path", { d: path, class: {
|
|
396
|
+
'edge-path': true,
|
|
397
|
+
'selected': isSelected,
|
|
398
|
+
'animated': edge.animated,
|
|
399
|
+
}, "marker-end": isSelected ? 'url(#arrowhead-selected)' : 'url(#arrowhead)', style: {
|
|
400
|
+
pointerEvents: 'none',
|
|
401
|
+
stroke: isSelected
|
|
402
|
+
? 'var(--x-primary-color)'
|
|
403
|
+
: (edge.style?.['stroke'] || '#b1b1b7'),
|
|
404
|
+
strokeDasharray: edge.style?.['strokeDasharray'],
|
|
405
|
+
} }), edge.selected && (h("foreignObject", { x: (x1 + x2) / 2 - 30, y: (y1 + y2) / 2 - 50, width: "60", height: "40" }, h("div", { class: "edge-toolbar" }, h("button", { class: "edge-toolbar-btn", onClick: (e) => {
|
|
406
|
+
e.stopPropagation();
|
|
407
|
+
this.service.updateEdge(edge.id, {
|
|
408
|
+
animated: !edge.animated,
|
|
409
|
+
});
|
|
410
|
+
} }, "\u26A1"), h("button", { class: "edge-toolbar-btn", onClick: (e) => {
|
|
411
|
+
e.stopPropagation();
|
|
412
|
+
this.service.deleteEdge(edge.id);
|
|
413
|
+
} }, "\uD83D\uDDD1")))), edge.label &&
|
|
414
|
+
this.renderEdgeLabel(edge, (x1 + x2) / 2, (y1 + y2) / 2)));
|
|
415
|
+
}
|
|
416
|
+
getHandlePos(node, handle, targetNode) {
|
|
417
|
+
// Ensure we have a width and height to calculate the midpoint/edges
|
|
418
|
+
const x = Math.round(node.position.x);
|
|
419
|
+
const y = Math.round(node.position.y);
|
|
420
|
+
const w = node.width ? Math.round(node.width) : (node.shape === 'diamond' ? 100 : 150);
|
|
421
|
+
const h = node.height ? Math.round(node.height) : (node.shape === 'diamond' ? 100 : 48);
|
|
422
|
+
if (handle === 'floating' && targetNode)
|
|
423
|
+
return this.getFloatingHandlePos(node, targetNode);
|
|
424
|
+
if (this.edgeRoutingMode === 'auto' && targetNode) {
|
|
425
|
+
const sc = { x: x + w / 2, y: y + h / 2 };
|
|
426
|
+
const tc = { x: targetNode.position.x + (targetNode.width || 150) / 2, y: targetNode.position.y + (targetNode.height || 48) / 2 };
|
|
427
|
+
const dx = tc.x - sc.x;
|
|
428
|
+
const dy = tc.y - sc.y;
|
|
429
|
+
if (Math.abs(dx) > Math.abs(dy))
|
|
430
|
+
handle = dx > 0 ? 'right' : 'left';
|
|
431
|
+
else
|
|
432
|
+
handle = dy > 0 ? 'bottom' : 'top';
|
|
433
|
+
}
|
|
434
|
+
else if (!handle && targetNode) {
|
|
435
|
+
const sc = { x: x + w / 2, y: y + h / 2 };
|
|
436
|
+
const tc = { x: targetNode.position.x + (targetNode.width || 150) / 2, y: targetNode.position.y + (targetNode.height || 48) / 2 };
|
|
437
|
+
const dx = tc.x - sc.x;
|
|
438
|
+
const dy = tc.y - sc.y;
|
|
439
|
+
if (Math.abs(dx) > Math.abs(dy))
|
|
440
|
+
handle = dx > 0 ? 'right' : 'left';
|
|
441
|
+
else
|
|
442
|
+
handle = dy > 0 ? 'bottom' : 'top';
|
|
443
|
+
}
|
|
444
|
+
else if (!handle) {
|
|
445
|
+
handle = 'floating';
|
|
446
|
+
}
|
|
447
|
+
// Offset slightly for handle markers (r=4)
|
|
448
|
+
switch (handle) {
|
|
449
|
+
case 'top': return { x: x + w / 2, y };
|
|
450
|
+
case 'right': return { x: x + w, y: y + h / 2 };
|
|
451
|
+
case 'bottom': return { x: x + w / 2, y: y + h };
|
|
452
|
+
case 'left': return { x: x, y: y + h / 2 };
|
|
453
|
+
default: return { x: x + w / 2, y: y + h / 2 };
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
getFloatingHandlePos(source, target) {
|
|
457
|
+
const sw = (source.width || 150) / 2, sh = (source.height || 48) / 2;
|
|
458
|
+
const sc = { x: source.position.x + sw, y: source.position.y + sh };
|
|
459
|
+
const tc = { x: target.position.x + (target.width || 150) / 2, y: target.position.y + (target.height || 48) / 2 };
|
|
460
|
+
const dx = tc.x - sc.x, dy = tc.y - sc.y;
|
|
461
|
+
const angle = Math.atan2(dy, dx);
|
|
462
|
+
// Diamond Shape Correction
|
|
463
|
+
if (source.shape === 'diamond') {
|
|
464
|
+
const absCos = Math.abs(Math.cos(angle)), absSin = Math.abs(Math.sin(angle));
|
|
465
|
+
const d = (sw * sh) / (sh * absCos + sw * absSin);
|
|
466
|
+
return { x: sc.x + d * Math.cos(angle), y: sc.y + d * Math.sin(angle) };
|
|
467
|
+
}
|
|
468
|
+
// Circle Shape Correction
|
|
469
|
+
if (source.shape === 'circle') {
|
|
470
|
+
const r = Math.min(sw, sh);
|
|
471
|
+
return { x: sc.x + r * Math.cos(angle), y: sc.y + r * Math.sin(angle) };
|
|
472
|
+
}
|
|
473
|
+
if (Math.abs(dx) * sh > Math.abs(dy) * sw)
|
|
474
|
+
return { x: sc.x + sw * Math.sign(dx), y: sc.y + (dy * sw / Math.abs(dx)) };
|
|
475
|
+
else
|
|
476
|
+
return { x: sc.x + (dx * sh / Math.abs(dy)), y: sc.y + sh * Math.sign(dy) };
|
|
477
|
+
}
|
|
478
|
+
renderEdgeHandles() {
|
|
479
|
+
return this.flowEdges
|
|
480
|
+
.filter(e => e.selected)
|
|
481
|
+
.map(edge => {
|
|
482
|
+
const s = this.flowNodes.find(n => n.id === edge.source);
|
|
483
|
+
const t = this.flowNodes.find(n => n.id === edge.target);
|
|
484
|
+
if (!s || !t)
|
|
485
|
+
return null;
|
|
486
|
+
const sPos = this.getHandlePos(s, edge.sourceHandle, t);
|
|
487
|
+
const tPos = this.getHandlePos(t, edge.targetHandle, s);
|
|
488
|
+
return (h("g", { class: "edge-controls" }, h("circle", { cx: sPos.x, cy: sPos.y, r: "4", class: "edge-handle source", onMouseDown: (e) => this.startEdgeReconnect(e, edge, 'source'), onTouchStart: (e) => this.startEdgeReconnect(e, edge, 'source') }), h("circle", { cx: tPos.x, cy: tPos.y, r: "4", class: "edge-handle target", onMouseDown: (e) => this.startEdgeReconnect(e, edge, 'target'), onTouchStart: (e) => this.startEdgeReconnect(e, edge, 'target') })));
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
startEdgeReconnect(e, edge, type) {
|
|
492
|
+
if (this.pendingConnection)
|
|
493
|
+
return;
|
|
494
|
+
e.preventDefault();
|
|
495
|
+
e.stopPropagation();
|
|
496
|
+
const otherId = type === 'source' ? edge.target : edge.source, otherNode = this.flowNodes.find(n => n.id === otherId);
|
|
497
|
+
if (!otherNode)
|
|
498
|
+
return;
|
|
499
|
+
const rect = this.container.getBoundingClientRect(), { x, y, zoom } = this.flowViewport, otherPos = this.getHandlePos(otherNode, type === 'source' ? edge.targetHandle : edge.sourceHandle), cx = 'touches' in e ? e.touches[0].clientX : e.clientX, cy = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
500
|
+
this.service.deleteEdge(edge.id);
|
|
501
|
+
this.pendingConnection = { source: otherId, handle: (type === 'source' ? edge.targetHandle : edge.sourceHandle) || 'floating', startX: otherPos.x, startY: otherPos.y, mouseX: (cx - rect.left - x) / zoom, mouseY: (cy - rect.top - y) / zoom };
|
|
502
|
+
this.startConnectionHandler(otherId, type === 'source' ? 'target' : 'source');
|
|
503
|
+
}
|
|
504
|
+
renderNode(node) {
|
|
505
|
+
const isSelected = this.selectedNodes.includes(node.id);
|
|
506
|
+
const isFocused = this.focusedNodeId === node.id;
|
|
507
|
+
const shapeClass = node.shape ? `shape-${node.shape}` : '';
|
|
508
|
+
return (h("div", { key: node.id, "data-id": node.id, class: {
|
|
509
|
+
'node': true,
|
|
510
|
+
'selected': isSelected,
|
|
511
|
+
'dragging': this.draggingNodeId === node.id,
|
|
512
|
+
'collapsed': node.isCollapsed,
|
|
513
|
+
[node.className]: !!node.className,
|
|
514
|
+
[shapeClass]: !!shapeClass,
|
|
515
|
+
'focused': isFocused,
|
|
516
|
+
'turbo': this.turboMode,
|
|
517
|
+
[`type-${node.type}`]: true
|
|
518
|
+
}, style: {
|
|
519
|
+
left: `${Math.round(node.position.x)}px`,
|
|
520
|
+
top: `${Math.round(node.position.y)}px`,
|
|
521
|
+
width: node.width ? `${node.width}px` : (node.shape === 'diamond' ? '100px' : '150px'),
|
|
522
|
+
height: node.height ? `${node.height}px` : (node.shape === 'diamond' ? '100px' : '48px'),
|
|
523
|
+
transform: `rotate(${node.rotation || 0}deg) translateZ(0)`,
|
|
524
|
+
opacity: (this.focusedNodeId && !isFocused && node.parentId !== this.focusedNodeId) ? '0.3' : '1',
|
|
525
|
+
zIndex: isSelected ? '1000' : (node.zIndex || 10).toString(),
|
|
526
|
+
...(node.style || {})
|
|
527
|
+
}, onMouseDown: (e) => this.handleNodeDragStart(e, node), onTouchStart: (e) => this.handleNodeDragStart(e, node), onClick: (e) => this.handleNodeClick(e, node.id), onDblClick: () => node.type === 'group' && (this.focusedNodeId = this.focusedNodeId === node.id ? null : node.id) }, this.shouldShowToolbar(node) && this.renderNodeToolbar(node), node.shape === 'diamond' && (h("div", { class: "node-shape-wrapper" }, h("svg", { viewBox: "0 0 100 100", preserveAspectRatio: "none", class: "node-shape-svg" }, h("path", { d: "M50 0 L100 50 L50 100 L0 50 Z", class: { 'shape-path': true, 'selected': isSelected } })))), h("div", { class: "node-content" }, (node.type === 'group' || node.isParent) && (h("button", { class: "node-collapse-btn", onClick: (e) => { e.stopPropagation(); this.service.toggleNodeCollapse(node.id); } }, h("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("path", { d: node.isCollapsed ? "M12 5v14M5 12h14" : "M5 12h14" })))), node.template ? h("div", { innerHTML: node.template }) : h("slot", { name: `node-${node.type}` }, node.data?.label || node.id)), node.handles ? node.handles.map(h => this.renderCustomHandle(node, h)) : [
|
|
528
|
+
h("div", { key: "top", class: "handle top", onMouseDown: (e) => this.startConnection(e, node.id, 'top') }),
|
|
529
|
+
h("div", { key: "right", class: "handle right", onMouseDown: (e) => this.startConnection(e, node.id, 'right') }),
|
|
530
|
+
h("div", { key: "bottom", class: "handle bottom", onMouseDown: (e) => this.startConnection(e, node.id, 'bottom') }),
|
|
531
|
+
h("div", { key: "left", class: "handle left", onMouseDown: (e) => this.startConnection(e, node.id, 'left') })
|
|
532
|
+
], isSelected && node.resizable && h("div", { class: "node-resizer", onMouseDown: (e) => this.startResize(e, node) }), " ", isSelected && node.rotatable !== false && h("div", { class: "node-rotator", onMouseDown: (e) => this.startRotate(e, node) }, h("x-icon", { name: "autorenew", size: 12 })), " "));
|
|
533
|
+
}
|
|
534
|
+
shouldShowToolbar(node) {
|
|
535
|
+
if (!this.nodeToolbarVisible)
|
|
536
|
+
return false;
|
|
537
|
+
if (this.nodeToolbarMode === 'always')
|
|
538
|
+
return true;
|
|
539
|
+
if (this.nodeToolbarMode === 'selected')
|
|
540
|
+
return this.selectedNodes.includes(node.id);
|
|
541
|
+
return false; // For hover mode, we'd need some mouse state tracking or CSS
|
|
542
|
+
}
|
|
543
|
+
renderNodeToolbar(node) {
|
|
544
|
+
const colors = ['#ffffff', '#fecaca', '#bfdbfe', '#bbf7d0', '#fef08a', '#e9d5ff'];
|
|
545
|
+
return (h("div", { class: "node-toolbar" }, h("div", { class: "color-picker" }, colors.map(c => (h("div", { class: "color-swatch", style: { background: c }, onClick: () => this.service.updateNode(node.id, { style: { ...node.style, background: c } }) })))), h("x-divider", { type: "vertical" }), h("button", { onClick: () => this.service.deleteNode(node.id) }, h("x-icon", { name: "delete", size: 14 })), h("button", { onClick: () => this.service.copySelected() }, h("x-icon", { name: "content_copy", size: 14 }))));
|
|
546
|
+
}
|
|
547
|
+
renderCustomHandle(node, h) {
|
|
548
|
+
return (h("div", { class: { 'handle': true, [h.position]: true }, style: h.style, onMouseDown: (e) => this.startConnection(e, node.id, h.id), onTouchStart: (e) => this.startConnection(e, node.id, h.id) }));
|
|
549
|
+
}
|
|
550
|
+
handleNodeDragStart(e, node) {
|
|
551
|
+
if (node.dragHandle && !e.target.closest(node.dragHandle)) {
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
e.preventDefault(); // Stop simulated mouse events
|
|
555
|
+
e.stopPropagation();
|
|
556
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
557
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
558
|
+
this.service.selectNode(node.id, ('shiftKey' in e && e.shiftKey));
|
|
559
|
+
this.startNodeDrag(clientX, clientY, node);
|
|
560
|
+
}
|
|
561
|
+
startNodeDrag(startX, startY, node) {
|
|
562
|
+
const startNodeX = node.position.x;
|
|
563
|
+
const startNodeY = node.position.y;
|
|
564
|
+
const zoom = this.flowViewport.zoom;
|
|
565
|
+
const dragThreshold = 5; // Increased threshold
|
|
566
|
+
let dragStarted = false;
|
|
567
|
+
const onMove = (me) => {
|
|
568
|
+
const cx = 'touches' in me ? me.touches[0].clientX : me.clientX;
|
|
569
|
+
const cy = 'touches' in me ? me.touches[0].clientY : me.clientY;
|
|
570
|
+
if (!dragStarted) {
|
|
571
|
+
const moveDist = Math.sqrt(Math.pow(cx - startX, 2) + Math.pow(cy - startY, 2));
|
|
572
|
+
if (moveDist > dragThreshold) {
|
|
573
|
+
dragStarted = true;
|
|
574
|
+
this.draggingNodeId = node.id;
|
|
575
|
+
this.isInteracting = true; // Block external sync during drag
|
|
576
|
+
}
|
|
577
|
+
else {
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
const dx = (cx - startX) / zoom;
|
|
582
|
+
const dy = (cy - startY) / zoom;
|
|
583
|
+
const newX = startNodeX + dx;
|
|
584
|
+
const newY = startNodeY + dy;
|
|
585
|
+
this.service.updateNodePosition(node.id, newX, newY, this.snapToGridValue);
|
|
586
|
+
this.helperLines = this.calculateHelperLines(node.id, newX, newY);
|
|
587
|
+
this.checkProximity(node.id, newX, newY);
|
|
588
|
+
};
|
|
589
|
+
const onUp = () => {
|
|
590
|
+
if (this.proximityPreview) {
|
|
591
|
+
this.service.onConnect(this.proximityPreview);
|
|
592
|
+
this.proximityPreview = null;
|
|
593
|
+
}
|
|
594
|
+
document.removeEventListener('mousemove', onMove);
|
|
595
|
+
document.removeEventListener('mouseup', onUp);
|
|
596
|
+
document.removeEventListener('touchmove', onMove);
|
|
597
|
+
document.removeEventListener('touchend', onUp);
|
|
598
|
+
this.draggingNodeId = null;
|
|
599
|
+
this.handleUp();
|
|
600
|
+
};
|
|
601
|
+
document.addEventListener('mousemove', onMove);
|
|
602
|
+
document.addEventListener('mouseup', onUp);
|
|
603
|
+
document.addEventListener('touchmove', onMove);
|
|
604
|
+
document.addEventListener('touchend', onUp);
|
|
605
|
+
}
|
|
606
|
+
startResize(e, node) {
|
|
607
|
+
e.stopPropagation();
|
|
608
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
609
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
610
|
+
const startX = clientX;
|
|
611
|
+
const startY = clientY;
|
|
612
|
+
const startWidth = node.width || 150;
|
|
613
|
+
const startHeight = node.height || 48;
|
|
614
|
+
const zoom = this.flowViewport.zoom;
|
|
615
|
+
const onMove = (me) => {
|
|
616
|
+
const cx = 'touches' in me ? me.touches[0].clientX : me.clientX;
|
|
617
|
+
const cy = 'touches' in me ? me.touches[0].clientY : me.clientY;
|
|
618
|
+
const dw = (cx - startX) / zoom;
|
|
619
|
+
const dh = (cy - startY) / zoom;
|
|
620
|
+
this.service.setNodes(this.flowNodes.map(n => n.id === node.id ? { ...n, width: Math.max(50, startWidth + dw), height: Math.max(30, startHeight + dh) } : n));
|
|
621
|
+
};
|
|
622
|
+
const onUp = () => {
|
|
623
|
+
document.removeEventListener('mousemove', onMove);
|
|
624
|
+
document.removeEventListener('mouseup', onUp);
|
|
625
|
+
document.removeEventListener('touchmove', onMove);
|
|
626
|
+
document.removeEventListener('touchend', onUp);
|
|
627
|
+
};
|
|
628
|
+
document.addEventListener('mousemove', onMove);
|
|
629
|
+
document.addEventListener('mouseup', onUp);
|
|
630
|
+
document.addEventListener('touchmove', onMove);
|
|
631
|
+
document.addEventListener('touchend', onUp);
|
|
632
|
+
}
|
|
633
|
+
startRotate(e, node) {
|
|
634
|
+
e.stopPropagation();
|
|
635
|
+
const rect = this.container.getBoundingClientRect(), { x: vx, y: vy, zoom } = this.flowViewport;
|
|
636
|
+
const center = {
|
|
637
|
+
x: node.position.x + (node.width || 150) / 2,
|
|
638
|
+
y: node.position.y + (node.height || 48) / 2
|
|
639
|
+
};
|
|
640
|
+
const onMove = (me) => {
|
|
641
|
+
const cx = 'touches' in me ? me.touches[0].clientX : me.clientX;
|
|
642
|
+
const cy = 'touches' in me ? me.touches[0].clientY : me.clientY;
|
|
643
|
+
const mousePos = { x: (cx - rect.left - vx) / zoom, y: (cy - rect.top - vy) / zoom };
|
|
644
|
+
const angle = Math.atan2(mousePos.y - center.y, mousePos.x - center.x) * (180 / Math.PI) + 90;
|
|
645
|
+
this.service.rotateNode(node.id, angle);
|
|
646
|
+
};
|
|
647
|
+
const onUp = () => {
|
|
648
|
+
this.service.saveToHistory();
|
|
649
|
+
document.removeEventListener('mousemove', onMove);
|
|
650
|
+
document.removeEventListener('mouseup', onUp);
|
|
651
|
+
document.removeEventListener('touchmove', onMove);
|
|
652
|
+
document.removeEventListener('touchend', onUp);
|
|
653
|
+
};
|
|
654
|
+
document.addEventListener('mousemove', onMove);
|
|
655
|
+
document.addEventListener('mouseup', onUp);
|
|
656
|
+
document.addEventListener('touchmove', onMove);
|
|
657
|
+
document.addEventListener('touchend', onUp);
|
|
658
|
+
}
|
|
659
|
+
applyLassoSelection() {
|
|
660
|
+
if (!this.selectionRect)
|
|
661
|
+
return;
|
|
662
|
+
const { x, y, width, height } = this.selectionRect;
|
|
663
|
+
const zoom = this.flowViewport.zoom;
|
|
664
|
+
const viewX = this.flowViewport.x;
|
|
665
|
+
const viewY = this.flowViewport.y;
|
|
666
|
+
const rectX = (Math.min(x, x + width) - viewX) / zoom;
|
|
667
|
+
const rectY = (Math.min(y, y + height) - viewY) / zoom;
|
|
668
|
+
const rectW = Math.abs(width) / zoom;
|
|
669
|
+
const rectH = Math.abs(height) / zoom;
|
|
670
|
+
this.flowNodes.forEach(node => {
|
|
671
|
+
const nx = node.position.x;
|
|
672
|
+
const ny = node.position.y;
|
|
673
|
+
const nw = node.width || 150;
|
|
674
|
+
const nh = node.height || 48;
|
|
675
|
+
if (nx >= rectX && nx + nw <= rectX + rectW && ny >= rectY && ny + nh <= rectY + rectH) {
|
|
676
|
+
this.service.selectNode(node.id, true);
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
renderSelectionRect() {
|
|
681
|
+
if (!this.selectionRect)
|
|
682
|
+
return null;
|
|
683
|
+
const { x, y, width, height } = this.selectionRect;
|
|
684
|
+
return (h("div", { class: "selection-rect", style: {
|
|
685
|
+
left: `${Math.min(x, x + width)}px`,
|
|
686
|
+
top: `${Math.min(y, y + height)}px`,
|
|
687
|
+
width: `${Math.abs(width)}px`,
|
|
688
|
+
height: `${Math.abs(height)}px`
|
|
689
|
+
} }));
|
|
690
|
+
}
|
|
691
|
+
renderContextMenu() {
|
|
692
|
+
if (!this.contextMenu)
|
|
693
|
+
return null;
|
|
694
|
+
return (h("div", { class: "context-menu", style: { left: `${this.contextMenu.x}px`, top: `${this.contextMenu.y}px` } }, h("div", { class: "menu-item", onClick: () => this.addNodeAtPos(this.contextMenu.x, this.contextMenu.y) }, "Add Node Here"), h("div", { class: "divider" }), this.selectedNodes.length > 1 && (h("div", { class: "menu-item", onClick: () => this.service.groupSelected() }, "Group Selected")), h("div", { class: "menu-item", onClick: () => this.service.undo() }, "Undo"), h("div", { class: "menu-item", onClick: () => this.service.redo() }, "Redo")));
|
|
695
|
+
}
|
|
696
|
+
addNodeAtPos(clientX, clientY) {
|
|
697
|
+
const rect = this.container.getBoundingClientRect();
|
|
698
|
+
const { x, y, zoom } = this.flowViewport;
|
|
699
|
+
this.service.addNode({
|
|
700
|
+
id: `node-${Date.now()}`,
|
|
701
|
+
position: {
|
|
702
|
+
x: (clientX - rect.left - x) / zoom,
|
|
703
|
+
y: (clientY - rect.top - y) / zoom
|
|
704
|
+
},
|
|
705
|
+
data: { label: 'New Node' },
|
|
706
|
+
zIndex: 10
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
startConnection(e, nodeId, handle) {
|
|
710
|
+
if (this.pendingConnection)
|
|
711
|
+
return;
|
|
712
|
+
e.preventDefault(); // Stop simulated mouse events
|
|
713
|
+
e.stopPropagation();
|
|
714
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
715
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
716
|
+
const rect = this.container.getBoundingClientRect();
|
|
717
|
+
const { x, y, zoom } = this.flowViewport;
|
|
718
|
+
const node = this.flowNodes.find(n => n.id === nodeId);
|
|
719
|
+
if (!node)
|
|
720
|
+
return;
|
|
721
|
+
// Use handle center instead of click position for start point
|
|
722
|
+
const hPos = this.getHandlePos(node, handle);
|
|
723
|
+
this.pendingConnection = {
|
|
724
|
+
source: nodeId,
|
|
725
|
+
handle,
|
|
726
|
+
startX: hPos.x,
|
|
727
|
+
startY: hPos.y,
|
|
728
|
+
mouseX: (clientX - rect.left - x) / zoom,
|
|
729
|
+
mouseY: (clientY - rect.top - y) / zoom
|
|
730
|
+
};
|
|
731
|
+
this.proximityPreview = null; // Clear any existing previews
|
|
732
|
+
this.startConnectionHandler(nodeId, 'source');
|
|
733
|
+
}
|
|
734
|
+
startConnectionHandler(nodeId, handleType = 'source') {
|
|
735
|
+
const onUp = (de) => {
|
|
736
|
+
const pending = this.pendingConnection;
|
|
737
|
+
this.pendingConnection = null;
|
|
738
|
+
this.proximityPreview = null;
|
|
739
|
+
document.removeEventListener('mouseup', onUp);
|
|
740
|
+
document.removeEventListener('touchend', onUp);
|
|
741
|
+
if (!pending)
|
|
742
|
+
return;
|
|
743
|
+
const clientX = 'touches' in de ? de.touches[0].clientX : de.clientX, clientY = 'touches' in de ? de.touches[0].clientY : de.clientY, { x: vx, y: vy, zoom } = this.flowViewport, rect = this.container.getBoundingClientRect(), lx = (clientX - rect.left - vx) / zoom, ly = (clientY - rect.top - vy) / zoom, padding = 15, targetNode = this.flowNodes.find(n => {
|
|
744
|
+
const w = (n.width || 150) + padding * 2, h = (n.height || 48) + padding * 2;
|
|
745
|
+
return lx >= n.position.x - padding && lx <= n.position.x + w && ly >= n.position.y - padding && ly <= n.position.y + h;
|
|
746
|
+
});
|
|
747
|
+
if (targetNode && targetNode.id !== nodeId) {
|
|
748
|
+
const path = de.composedPath(), targetHandleEl = path.find(el => el.classList && el.classList.contains('handle')), targetHandle = targetHandleEl ? (Array.from(targetHandleEl.classList).find(c => ['top', 'right', 'bottom', 'left'].includes(c))) : 'floating';
|
|
749
|
+
const connection = handleType === 'source'
|
|
750
|
+
? { source: nodeId, target: targetNode.id, sourceHandle: pending.handle, targetHandle }
|
|
751
|
+
: { source: targetNode.id, target: nodeId, sourceHandle: targetHandle, targetHandle: pending.handle };
|
|
752
|
+
if (this.service.isValidConnection(connection)) {
|
|
753
|
+
this.service.onConnect(connection);
|
|
754
|
+
this.xConnect.emit(connection);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
else if (!targetNode) {
|
|
758
|
+
const newNodeId = `node-${Date.now()}`;
|
|
759
|
+
this.service.addNode({ id: newNodeId, position: { x: lx - 75, y: ly - 24 }, data: { label: 'New Node' }, zIndex: 10 });
|
|
760
|
+
const connection = handleType === 'source'
|
|
761
|
+
? { source: nodeId, target: newNodeId, sourceHandle: pending.handle, targetHandle: 'floating' }
|
|
762
|
+
: { source: newNodeId, target: nodeId, sourceHandle: 'floating', targetHandle: pending.handle };
|
|
763
|
+
this.service.onConnect(connection);
|
|
764
|
+
this.xConnect.emit(connection);
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
document.addEventListener('mouseup', onUp);
|
|
768
|
+
document.addEventListener('touchend', onUp);
|
|
769
|
+
}
|
|
770
|
+
startDrawing(x, y) {
|
|
771
|
+
this.activeDrawing = {
|
|
772
|
+
id: `draw-${Date.now()}`,
|
|
773
|
+
type: (this.tool === 'rectangle' ? 'rectangle' : 'freehand'),
|
|
774
|
+
position: { x, y },
|
|
775
|
+
points: this.tool === 'freehand' ? [{ x, y }] : [],
|
|
776
|
+
width: 0,
|
|
777
|
+
height: 0,
|
|
778
|
+
style: { stroke: '#111', strokeWidth: '2', fill: 'none' }
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
renderDrawing(d) {
|
|
782
|
+
if (d.type === 'rectangle') {
|
|
783
|
+
return (h("rect", { x: Math.min(d.position.x, d.position.x + (d.width || 0)), y: Math.min(d.position.y, d.position.y + (d.height || 0)), width: Math.abs(d.width || 0), height: Math.abs(d.height || 0), style: d.style }));
|
|
784
|
+
}
|
|
785
|
+
else {
|
|
786
|
+
return (h("path", { d: d.points.map((p, i) => `${i === 0 ? 'M' : 'L'}${p.x},${p.y}`).join(' '), style: d.style }));
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
checkProximity(nodeId, nx, ny) {
|
|
790
|
+
const threshold = 50;
|
|
791
|
+
const node = this.flowNodes.find(n => n.id === nodeId);
|
|
792
|
+
if (!node)
|
|
793
|
+
return;
|
|
794
|
+
const nw = node.width || 150;
|
|
795
|
+
const nh = node.height || 48;
|
|
796
|
+
const nc = { x: nx + nw / 2, y: ny + nh / 2 };
|
|
797
|
+
let closest = null;
|
|
798
|
+
let minDist = threshold;
|
|
799
|
+
this.flowNodes.forEach(other => {
|
|
800
|
+
if (other.id === nodeId || other.parentId === nodeId)
|
|
801
|
+
return;
|
|
802
|
+
const ow = other.width || 150;
|
|
803
|
+
const oh = other.height || 48;
|
|
804
|
+
const oc = { x: other.position.x + ow / 2, y: other.position.y + oh / 2 };
|
|
805
|
+
const d = Math.sqrt((nc.x - oc.x) ** 2 + (nc.y - oc.y) ** 2);
|
|
806
|
+
if (d < minDist) {
|
|
807
|
+
minDist = d;
|
|
808
|
+
closest = { source: nodeId, target: other.id, sourceHandle: 'floating', targetHandle: 'floating' };
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
this.proximityPreview = closest;
|
|
812
|
+
}
|
|
813
|
+
calculateHelperLines(nodeId, x, y) {
|
|
814
|
+
const threshold = 10;
|
|
815
|
+
const lines = [];
|
|
816
|
+
this.flowNodes.forEach(other => {
|
|
817
|
+
if (other.id === nodeId || other.parentId === nodeId)
|
|
818
|
+
return;
|
|
819
|
+
if (Math.abs(x - other.position.x) < threshold)
|
|
820
|
+
lines.push({ x: other.position.x });
|
|
821
|
+
if (Math.abs(y - other.position.y) < threshold)
|
|
822
|
+
lines.push({ y: other.position.y });
|
|
823
|
+
});
|
|
824
|
+
return lines;
|
|
825
|
+
}
|
|
826
|
+
renderHelperLines() {
|
|
827
|
+
return h("svg", { class: "helper-lines-svg", style: { position: 'absolute', top: '0', left: '0', width: '100%', height: '100%', pointerEvents: 'none' } }, this.helperLines.map(line => line.x !== undefined ? h("line", { x1: line.x, y1: "-10000", x2: line.x, y2: "10000", stroke: "#3b82f6", "stroke-dasharray": "2,2" }) : h("line", { x1: "-10000", y1: line.y, x2: "10000", y2: line.y, stroke: "#3b82f6", "stroke-dasharray": "2,2" })));
|
|
828
|
+
}
|
|
829
|
+
static get is() { return "x-workflow"; }
|
|
830
|
+
static get encapsulation() { return "shadow"; }
|
|
831
|
+
static get originalStyleUrls() {
|
|
832
|
+
return {
|
|
833
|
+
"$": ["x-workflow.scss"]
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
static get styleUrls() {
|
|
837
|
+
return {
|
|
838
|
+
"$": ["x-workflow.css"]
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
static get properties() {
|
|
842
|
+
return {
|
|
843
|
+
"nodes": {
|
|
844
|
+
"type": "unknown",
|
|
845
|
+
"mutable": false,
|
|
846
|
+
"complexType": {
|
|
847
|
+
"original": "XNode[]",
|
|
848
|
+
"resolved": "XNode<Record<string, unknown>>[]",
|
|
849
|
+
"references": {
|
|
850
|
+
"XNode": {
|
|
851
|
+
"location": "import",
|
|
852
|
+
"path": "../../utils/workflow/types",
|
|
853
|
+
"id": "src/utils/workflow/types.ts::XNode",
|
|
854
|
+
"referenceLocation": "XNode"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"required": false,
|
|
859
|
+
"optional": false,
|
|
860
|
+
"docs": {
|
|
861
|
+
"tags": [],
|
|
862
|
+
"text": ""
|
|
863
|
+
},
|
|
864
|
+
"getter": false,
|
|
865
|
+
"setter": false,
|
|
866
|
+
"defaultValue": "[]"
|
|
867
|
+
},
|
|
868
|
+
"edges": {
|
|
869
|
+
"type": "unknown",
|
|
870
|
+
"mutable": false,
|
|
871
|
+
"complexType": {
|
|
872
|
+
"original": "XEdge[]",
|
|
873
|
+
"resolved": "XEdge<Record<string, unknown>>[]",
|
|
874
|
+
"references": {
|
|
875
|
+
"XEdge": {
|
|
876
|
+
"location": "import",
|
|
877
|
+
"path": "../../utils/workflow/types",
|
|
878
|
+
"id": "src/utils/workflow/types.ts::XEdge",
|
|
879
|
+
"referenceLocation": "XEdge"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"required": false,
|
|
884
|
+
"optional": false,
|
|
885
|
+
"docs": {
|
|
886
|
+
"tags": [],
|
|
887
|
+
"text": ""
|
|
888
|
+
},
|
|
889
|
+
"getter": false,
|
|
890
|
+
"setter": false,
|
|
891
|
+
"defaultValue": "[]"
|
|
892
|
+
},
|
|
893
|
+
"fitView": {
|
|
894
|
+
"type": "boolean",
|
|
895
|
+
"mutable": false,
|
|
896
|
+
"complexType": {
|
|
897
|
+
"original": "boolean",
|
|
898
|
+
"resolved": "boolean",
|
|
899
|
+
"references": {}
|
|
900
|
+
},
|
|
901
|
+
"required": false,
|
|
902
|
+
"optional": false,
|
|
903
|
+
"docs": {
|
|
904
|
+
"tags": [],
|
|
905
|
+
"text": ""
|
|
906
|
+
},
|
|
907
|
+
"getter": false,
|
|
908
|
+
"setter": false,
|
|
909
|
+
"reflect": false,
|
|
910
|
+
"attribute": "fit-view",
|
|
911
|
+
"defaultValue": "false"
|
|
912
|
+
},
|
|
913
|
+
"interactive": {
|
|
914
|
+
"type": "boolean",
|
|
915
|
+
"mutable": false,
|
|
916
|
+
"complexType": {
|
|
917
|
+
"original": "boolean",
|
|
918
|
+
"resolved": "boolean",
|
|
919
|
+
"references": {}
|
|
920
|
+
},
|
|
921
|
+
"required": false,
|
|
922
|
+
"optional": false,
|
|
923
|
+
"docs": {
|
|
924
|
+
"tags": [],
|
|
925
|
+
"text": ""
|
|
926
|
+
},
|
|
927
|
+
"getter": false,
|
|
928
|
+
"setter": false,
|
|
929
|
+
"reflect": false,
|
|
930
|
+
"attribute": "interactive",
|
|
931
|
+
"defaultValue": "true"
|
|
932
|
+
},
|
|
933
|
+
"viewportValue": {
|
|
934
|
+
"type": "unknown",
|
|
935
|
+
"mutable": false,
|
|
936
|
+
"complexType": {
|
|
937
|
+
"original": "Viewport",
|
|
938
|
+
"resolved": "{ x: number; y: number; zoom: number; }",
|
|
939
|
+
"references": {
|
|
940
|
+
"Viewport": {
|
|
941
|
+
"location": "import",
|
|
942
|
+
"path": "../../utils/workflow/types",
|
|
943
|
+
"id": "src/utils/workflow/types.ts::Viewport",
|
|
944
|
+
"referenceLocation": "Viewport"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"required": false,
|
|
949
|
+
"optional": false,
|
|
950
|
+
"docs": {
|
|
951
|
+
"tags": [],
|
|
952
|
+
"text": ""
|
|
953
|
+
},
|
|
954
|
+
"getter": false,
|
|
955
|
+
"setter": false,
|
|
956
|
+
"defaultValue": "{ x: 0, y: 0, zoom: 1 }"
|
|
957
|
+
},
|
|
958
|
+
"snapToGridValue": {
|
|
959
|
+
"type": "number",
|
|
960
|
+
"mutable": false,
|
|
961
|
+
"complexType": {
|
|
962
|
+
"original": "number",
|
|
963
|
+
"resolved": "number",
|
|
964
|
+
"references": {}
|
|
965
|
+
},
|
|
966
|
+
"required": false,
|
|
967
|
+
"optional": false,
|
|
968
|
+
"docs": {
|
|
969
|
+
"tags": [],
|
|
970
|
+
"text": ""
|
|
971
|
+
},
|
|
972
|
+
"getter": false,
|
|
973
|
+
"setter": false,
|
|
974
|
+
"reflect": false,
|
|
975
|
+
"attribute": "snap-to-grid-value",
|
|
976
|
+
"defaultValue": "0"
|
|
977
|
+
},
|
|
978
|
+
"background": {
|
|
979
|
+
"type": "unknown",
|
|
980
|
+
"mutable": false,
|
|
981
|
+
"complexType": {
|
|
982
|
+
"original": "BackgroundProps",
|
|
983
|
+
"resolved": "BackgroundProps",
|
|
984
|
+
"references": {
|
|
985
|
+
"BackgroundProps": {
|
|
986
|
+
"location": "import",
|
|
987
|
+
"path": "../../utils/workflow/types",
|
|
988
|
+
"id": "src/utils/workflow/types.ts::BackgroundProps",
|
|
989
|
+
"referenceLocation": "BackgroundProps"
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
"required": false,
|
|
994
|
+
"optional": false,
|
|
995
|
+
"docs": {
|
|
996
|
+
"tags": [],
|
|
997
|
+
"text": ""
|
|
998
|
+
},
|
|
999
|
+
"getter": false,
|
|
1000
|
+
"setter": false,
|
|
1001
|
+
"defaultValue": "{ variant: 'dots' }"
|
|
1002
|
+
},
|
|
1003
|
+
"tool": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"mutable": false,
|
|
1006
|
+
"complexType": {
|
|
1007
|
+
"original": "'select' | 'hand' | 'rectangle' | 'freehand' | 'eraser'",
|
|
1008
|
+
"resolved": "\"eraser\" | \"freehand\" | \"hand\" | \"rectangle\" | \"select\"",
|
|
1009
|
+
"references": {}
|
|
1010
|
+
},
|
|
1011
|
+
"required": false,
|
|
1012
|
+
"optional": false,
|
|
1013
|
+
"docs": {
|
|
1014
|
+
"tags": [],
|
|
1015
|
+
"text": ""
|
|
1016
|
+
},
|
|
1017
|
+
"getter": false,
|
|
1018
|
+
"setter": false,
|
|
1019
|
+
"reflect": false,
|
|
1020
|
+
"attribute": "tool",
|
|
1021
|
+
"defaultValue": "'select'"
|
|
1022
|
+
},
|
|
1023
|
+
"theme": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"mutable": false,
|
|
1026
|
+
"complexType": {
|
|
1027
|
+
"original": "'light' | 'dark'",
|
|
1028
|
+
"resolved": "\"dark\" | \"light\"",
|
|
1029
|
+
"references": {}
|
|
1030
|
+
},
|
|
1031
|
+
"required": false,
|
|
1032
|
+
"optional": false,
|
|
1033
|
+
"docs": {
|
|
1034
|
+
"tags": [],
|
|
1035
|
+
"text": ""
|
|
1036
|
+
},
|
|
1037
|
+
"getter": false,
|
|
1038
|
+
"setter": false,
|
|
1039
|
+
"reflect": false,
|
|
1040
|
+
"attribute": "theme",
|
|
1041
|
+
"defaultValue": "'light'"
|
|
1042
|
+
},
|
|
1043
|
+
"turboMode": {
|
|
1044
|
+
"type": "boolean",
|
|
1045
|
+
"mutable": false,
|
|
1046
|
+
"complexType": {
|
|
1047
|
+
"original": "boolean",
|
|
1048
|
+
"resolved": "boolean",
|
|
1049
|
+
"references": {}
|
|
1050
|
+
},
|
|
1051
|
+
"required": false,
|
|
1052
|
+
"optional": false,
|
|
1053
|
+
"docs": {
|
|
1054
|
+
"tags": [],
|
|
1055
|
+
"text": ""
|
|
1056
|
+
},
|
|
1057
|
+
"getter": false,
|
|
1058
|
+
"setter": false,
|
|
1059
|
+
"reflect": false,
|
|
1060
|
+
"attribute": "turbo-mode",
|
|
1061
|
+
"defaultValue": "false"
|
|
1062
|
+
},
|
|
1063
|
+
"displayMode": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"mutable": false,
|
|
1066
|
+
"complexType": {
|
|
1067
|
+
"original": "'simple' | 'advanced'",
|
|
1068
|
+
"resolved": "\"advanced\" | \"simple\"",
|
|
1069
|
+
"references": {}
|
|
1070
|
+
},
|
|
1071
|
+
"required": false,
|
|
1072
|
+
"optional": false,
|
|
1073
|
+
"docs": {
|
|
1074
|
+
"tags": [],
|
|
1075
|
+
"text": ""
|
|
1076
|
+
},
|
|
1077
|
+
"getter": false,
|
|
1078
|
+
"setter": false,
|
|
1079
|
+
"reflect": false,
|
|
1080
|
+
"attribute": "display-mode",
|
|
1081
|
+
"defaultValue": "'advanced'"
|
|
1082
|
+
},
|
|
1083
|
+
"users": {
|
|
1084
|
+
"type": "unknown",
|
|
1085
|
+
"mutable": false,
|
|
1086
|
+
"complexType": {
|
|
1087
|
+
"original": "Array<{ id: string; name: string; color: string; position: { x: number; y: number } }>",
|
|
1088
|
+
"resolved": "{ id: string; name: string; color: string; position: { x: number; y: number; }; }[]",
|
|
1089
|
+
"references": {
|
|
1090
|
+
"Array": {
|
|
1091
|
+
"location": "global",
|
|
1092
|
+
"id": "global::Array"
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"required": false,
|
|
1097
|
+
"optional": false,
|
|
1098
|
+
"docs": {
|
|
1099
|
+
"tags": [],
|
|
1100
|
+
"text": ""
|
|
1101
|
+
},
|
|
1102
|
+
"getter": false,
|
|
1103
|
+
"setter": false,
|
|
1104
|
+
"defaultValue": "[]"
|
|
1105
|
+
},
|
|
1106
|
+
"nodeToolbarVisible": {
|
|
1107
|
+
"type": "boolean",
|
|
1108
|
+
"mutable": false,
|
|
1109
|
+
"complexType": {
|
|
1110
|
+
"original": "boolean",
|
|
1111
|
+
"resolved": "boolean",
|
|
1112
|
+
"references": {}
|
|
1113
|
+
},
|
|
1114
|
+
"required": false,
|
|
1115
|
+
"optional": false,
|
|
1116
|
+
"docs": {
|
|
1117
|
+
"tags": [],
|
|
1118
|
+
"text": ""
|
|
1119
|
+
},
|
|
1120
|
+
"getter": false,
|
|
1121
|
+
"setter": false,
|
|
1122
|
+
"reflect": false,
|
|
1123
|
+
"attribute": "node-toolbar-visible",
|
|
1124
|
+
"defaultValue": "true"
|
|
1125
|
+
},
|
|
1126
|
+
"nodeToolbarMode": {
|
|
1127
|
+
"type": "string",
|
|
1128
|
+
"mutable": false,
|
|
1129
|
+
"complexType": {
|
|
1130
|
+
"original": "'always' | 'hover' | 'selected'",
|
|
1131
|
+
"resolved": "\"always\" | \"hover\" | \"selected\"",
|
|
1132
|
+
"references": {}
|
|
1133
|
+
},
|
|
1134
|
+
"required": false,
|
|
1135
|
+
"optional": false,
|
|
1136
|
+
"docs": {
|
|
1137
|
+
"tags": [],
|
|
1138
|
+
"text": ""
|
|
1139
|
+
},
|
|
1140
|
+
"getter": false,
|
|
1141
|
+
"setter": false,
|
|
1142
|
+
"reflect": false,
|
|
1143
|
+
"attribute": "node-toolbar-mode",
|
|
1144
|
+
"defaultValue": "'selected'"
|
|
1145
|
+
},
|
|
1146
|
+
"edgeRoutingMode": {
|
|
1147
|
+
"type": "string",
|
|
1148
|
+
"mutable": false,
|
|
1149
|
+
"complexType": {
|
|
1150
|
+
"original": "'fixed' | 'auto'",
|
|
1151
|
+
"resolved": "\"auto\" | \"fixed\"",
|
|
1152
|
+
"references": {}
|
|
1153
|
+
},
|
|
1154
|
+
"required": false,
|
|
1155
|
+
"optional": false,
|
|
1156
|
+
"docs": {
|
|
1157
|
+
"tags": [],
|
|
1158
|
+
"text": ""
|
|
1159
|
+
},
|
|
1160
|
+
"getter": false,
|
|
1161
|
+
"setter": false,
|
|
1162
|
+
"reflect": false,
|
|
1163
|
+
"attribute": "edge-routing-mode",
|
|
1164
|
+
"defaultValue": "'fixed'"
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
static get states() {
|
|
1169
|
+
return {
|
|
1170
|
+
"flowNodes": {},
|
|
1171
|
+
"flowEdges": {},
|
|
1172
|
+
"flowViewport": {},
|
|
1173
|
+
"pendingConnection": {},
|
|
1174
|
+
"selectedNodes": {},
|
|
1175
|
+
"draggingNodeId": {},
|
|
1176
|
+
"proximityPreview": {},
|
|
1177
|
+
"helperLines": {},
|
|
1178
|
+
"contextMenu": {},
|
|
1179
|
+
"selectionRect": {},
|
|
1180
|
+
"drawings": {},
|
|
1181
|
+
"activeDrawing": {},
|
|
1182
|
+
"editingEdgeId": {},
|
|
1183
|
+
"focusedNodeId": {}
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
static get events() {
|
|
1187
|
+
return [{
|
|
1188
|
+
"method": "xNodesChange",
|
|
1189
|
+
"name": "xNodesChange",
|
|
1190
|
+
"bubbles": true,
|
|
1191
|
+
"cancelable": true,
|
|
1192
|
+
"composed": true,
|
|
1193
|
+
"docs": {
|
|
1194
|
+
"tags": [],
|
|
1195
|
+
"text": ""
|
|
1196
|
+
},
|
|
1197
|
+
"complexType": {
|
|
1198
|
+
"original": "XNode[]",
|
|
1199
|
+
"resolved": "XNode<Record<string, unknown>>[]",
|
|
1200
|
+
"references": {
|
|
1201
|
+
"XNode": {
|
|
1202
|
+
"location": "import",
|
|
1203
|
+
"path": "../../utils/workflow/types",
|
|
1204
|
+
"id": "src/utils/workflow/types.ts::XNode",
|
|
1205
|
+
"referenceLocation": "XNode"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}, {
|
|
1210
|
+
"method": "xEdgesChange",
|
|
1211
|
+
"name": "xEdgesChange",
|
|
1212
|
+
"bubbles": true,
|
|
1213
|
+
"cancelable": true,
|
|
1214
|
+
"composed": true,
|
|
1215
|
+
"docs": {
|
|
1216
|
+
"tags": [],
|
|
1217
|
+
"text": ""
|
|
1218
|
+
},
|
|
1219
|
+
"complexType": {
|
|
1220
|
+
"original": "XEdge[]",
|
|
1221
|
+
"resolved": "XEdge<Record<string, unknown>>[]",
|
|
1222
|
+
"references": {
|
|
1223
|
+
"XEdge": {
|
|
1224
|
+
"location": "import",
|
|
1225
|
+
"path": "../../utils/workflow/types",
|
|
1226
|
+
"id": "src/utils/workflow/types.ts::XEdge",
|
|
1227
|
+
"referenceLocation": "XEdge"
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}, {
|
|
1232
|
+
"method": "xViewportChange",
|
|
1233
|
+
"name": "xViewportChange",
|
|
1234
|
+
"bubbles": true,
|
|
1235
|
+
"cancelable": true,
|
|
1236
|
+
"composed": true,
|
|
1237
|
+
"docs": {
|
|
1238
|
+
"tags": [],
|
|
1239
|
+
"text": ""
|
|
1240
|
+
},
|
|
1241
|
+
"complexType": {
|
|
1242
|
+
"original": "Viewport",
|
|
1243
|
+
"resolved": "{ x: number; y: number; zoom: number; }",
|
|
1244
|
+
"references": {
|
|
1245
|
+
"Viewport": {
|
|
1246
|
+
"location": "import",
|
|
1247
|
+
"path": "../../utils/workflow/types",
|
|
1248
|
+
"id": "src/utils/workflow/types.ts::Viewport",
|
|
1249
|
+
"referenceLocation": "Viewport"
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}, {
|
|
1254
|
+
"method": "xNodeClick",
|
|
1255
|
+
"name": "xNodeClick",
|
|
1256
|
+
"bubbles": true,
|
|
1257
|
+
"cancelable": true,
|
|
1258
|
+
"composed": true,
|
|
1259
|
+
"docs": {
|
|
1260
|
+
"tags": [],
|
|
1261
|
+
"text": ""
|
|
1262
|
+
},
|
|
1263
|
+
"complexType": {
|
|
1264
|
+
"original": "XNode",
|
|
1265
|
+
"resolved": "XNode<Record<string, unknown>>",
|
|
1266
|
+
"references": {
|
|
1267
|
+
"XNode": {
|
|
1268
|
+
"location": "import",
|
|
1269
|
+
"path": "../../utils/workflow/types",
|
|
1270
|
+
"id": "src/utils/workflow/types.ts::XNode",
|
|
1271
|
+
"referenceLocation": "XNode"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
}, {
|
|
1276
|
+
"method": "xEdgeClick",
|
|
1277
|
+
"name": "xEdgeClick",
|
|
1278
|
+
"bubbles": true,
|
|
1279
|
+
"cancelable": true,
|
|
1280
|
+
"composed": true,
|
|
1281
|
+
"docs": {
|
|
1282
|
+
"tags": [],
|
|
1283
|
+
"text": ""
|
|
1284
|
+
},
|
|
1285
|
+
"complexType": {
|
|
1286
|
+
"original": "XEdge",
|
|
1287
|
+
"resolved": "XEdge<Record<string, unknown>>",
|
|
1288
|
+
"references": {
|
|
1289
|
+
"XEdge": {
|
|
1290
|
+
"location": "import",
|
|
1291
|
+
"path": "../../utils/workflow/types",
|
|
1292
|
+
"id": "src/utils/workflow/types.ts::XEdge",
|
|
1293
|
+
"referenceLocation": "XEdge"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}, {
|
|
1298
|
+
"method": "xConnect",
|
|
1299
|
+
"name": "xConnect",
|
|
1300
|
+
"bubbles": true,
|
|
1301
|
+
"cancelable": true,
|
|
1302
|
+
"composed": true,
|
|
1303
|
+
"docs": {
|
|
1304
|
+
"tags": [],
|
|
1305
|
+
"text": ""
|
|
1306
|
+
},
|
|
1307
|
+
"complexType": {
|
|
1308
|
+
"original": "XConnection",
|
|
1309
|
+
"resolved": "XConnection",
|
|
1310
|
+
"references": {
|
|
1311
|
+
"XConnection": {
|
|
1312
|
+
"location": "import",
|
|
1313
|
+
"path": "../../utils/workflow/types",
|
|
1314
|
+
"id": "src/utils/workflow/types.ts::XConnection",
|
|
1315
|
+
"referenceLocation": "XConnection"
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}, {
|
|
1320
|
+
"method": "xWorkflowChange",
|
|
1321
|
+
"name": "xWorkflowChange",
|
|
1322
|
+
"bubbles": true,
|
|
1323
|
+
"cancelable": true,
|
|
1324
|
+
"composed": true,
|
|
1325
|
+
"docs": {
|
|
1326
|
+
"tags": [],
|
|
1327
|
+
"text": ""
|
|
1328
|
+
},
|
|
1329
|
+
"complexType": {
|
|
1330
|
+
"original": "unknown",
|
|
1331
|
+
"resolved": "unknown",
|
|
1332
|
+
"references": {}
|
|
1333
|
+
}
|
|
1334
|
+
}];
|
|
1335
|
+
}
|
|
1336
|
+
static get methods() {
|
|
1337
|
+
return {
|
|
1338
|
+
"forceLayout": {
|
|
1339
|
+
"complexType": {
|
|
1340
|
+
"signature": "() => Promise<void>",
|
|
1341
|
+
"parameters": [],
|
|
1342
|
+
"references": {
|
|
1343
|
+
"Promise": {
|
|
1344
|
+
"location": "global",
|
|
1345
|
+
"id": "global::Promise"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
"return": "Promise<void>"
|
|
1349
|
+
},
|
|
1350
|
+
"docs": {
|
|
1351
|
+
"text": "",
|
|
1352
|
+
"tags": []
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
static get elementRef() { return "el"; }
|
|
1358
|
+
static get watchers() {
|
|
1359
|
+
return [{
|
|
1360
|
+
"propName": "nodes",
|
|
1361
|
+
"methodName": "handleNodesPropChange"
|
|
1362
|
+
}, {
|
|
1363
|
+
"propName": "edges",
|
|
1364
|
+
"methodName": "handleEdgesPropChange"
|
|
1365
|
+
}, {
|
|
1366
|
+
"propName": "viewportValue",
|
|
1367
|
+
"methodName": "handleViewportChange"
|
|
1368
|
+
}];
|
|
1369
|
+
}
|
|
1370
|
+
static get listeners() {
|
|
1371
|
+
return [{
|
|
1372
|
+
"name": "mousemove",
|
|
1373
|
+
"method": "handleMove",
|
|
1374
|
+
"target": "document",
|
|
1375
|
+
"capture": false,
|
|
1376
|
+
"passive": true
|
|
1377
|
+
}, {
|
|
1378
|
+
"name": "touchmove",
|
|
1379
|
+
"method": "handleMove",
|
|
1380
|
+
"target": "document",
|
|
1381
|
+
"capture": false,
|
|
1382
|
+
"passive": true
|
|
1383
|
+
}, {
|
|
1384
|
+
"name": "mouseup",
|
|
1385
|
+
"method": "handleUp",
|
|
1386
|
+
"target": "document",
|
|
1387
|
+
"capture": false,
|
|
1388
|
+
"passive": true
|
|
1389
|
+
}, {
|
|
1390
|
+
"name": "touchend",
|
|
1391
|
+
"method": "handleUp",
|
|
1392
|
+
"target": "document",
|
|
1393
|
+
"capture": false,
|
|
1394
|
+
"passive": true
|
|
1395
|
+
}, {
|
|
1396
|
+
"name": "keydown",
|
|
1397
|
+
"method": "handleKeyDown",
|
|
1398
|
+
"target": "window",
|
|
1399
|
+
"capture": false,
|
|
1400
|
+
"passive": false
|
|
1401
|
+
}];
|
|
1402
|
+
}
|
|
1403
|
+
}
|