@xlabs-store/core 0.0.1 → 0.0.3
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 -21
- package/components/index.d.ts +0 -0
- package/components/index.js +1 -1
- package/components/p--BbMiBIf.js +1 -0
- package/components/p-4BROAJ-M.js +1 -0
- package/components/p-9T3IQVUX.js +1 -0
- package/components/p-B1Y8S28h.js +1 -0
- package/components/p-B5VsEsBC.js +1 -0
- package/components/p-B7SdFSQT.js +1 -0
- package/components/p-B97Hj_bs.js +1 -0
- package/components/p-BBTo0Tfc.js +1 -0
- package/components/p-BCuFZ3xx.js +1 -0
- package/components/p-BFPoQ179.js +1 -0
- package/components/p-BLqwG7xa.js +1 -0
- package/components/p-BPaLHj9P.js +1 -0
- package/components/p-BQtB82ld.js +1 -0
- package/components/p-BSLE4EQn.js +1 -0
- package/components/{p-DcRlYBIl.js → p-BUXxKr3t.js} +1 -1
- package/components/p-BYCebYZT.js +1 -0
- package/components/p-BZdNMS4e.js +1 -0
- package/components/p-BhWqNJhk.js +1 -0
- package/components/p-BnnNgLpE.js +1 -0
- package/components/p-BoPZ9Se8.js +1 -0
- package/components/p-BogEYBiK.js +1 -0
- package/components/p-Brr9Q7gj.js +1 -0
- package/components/p-BvOnPBRo.js +1 -0
- package/components/p-BzX-LA7W.js +1 -0
- package/components/p-C-KgrbKX.js +1 -0
- package/components/{p-CfhgoXyB.js → p-C-rau5Ex.js} +1 -1
- package/components/{p-B4R9Mtmk.js → p-C1PUbETy.js} +1 -1
- package/components/p-C1_JmoB8.js +1 -0
- package/components/{p-noTpj1Kh.js → p-C3Kx_-Wc.js} +1 -1
- package/components/p-CIOnWzKr.js +1 -0
- package/components/p-CQ2VND9-.js +1 -0
- package/components/p-CQQI-pRu.js +1 -0
- package/components/p-CXhCHTJf.js +1 -0
- package/components/p-CaJOfbTg.js +1 -0
- package/components/p-Cf_74fjT.js +1 -0
- package/components/{p-DVz50Dd3.js → p-CgLn4Y4c.js} +1 -1
- package/components/p-CgaLhv3u.js +1 -0
- package/components/{p-CGYOWZnh.js → p-CijqjTOk.js} +1 -1
- package/components/p-CkwLFDlS.js +1 -0
- package/components/p-CkyEMR2k.js +1 -0
- package/components/{p-Ce32Mo_Q.js → p-CmfyRJYt.js} +1 -1
- package/components/p-CnPsn8zN.js +1 -0
- package/components/p-Cp3SPBy3.js +1 -0
- package/components/p-CsYh9t-z.js +1 -0
- package/components/{p-BM-ap7lt.js → p-CtFbsd8j.js} +1 -1
- package/components/p-Cuf33Rgj.js +1 -0
- package/components/p-CwNmnRmr.js +1 -0
- package/components/p-CxMQkHjk.js +1 -0
- package/components/p-CzErFq8K.js +1 -0
- package/components/p-CzHtwC1k.js +1 -0
- package/components/p-CzjK_fJj.js +1 -0
- package/components/p-D4Joi-Km.js +1 -0
- package/components/p-D4am7l6X.js +1 -0
- package/components/p-D7kqIlVo.js +1 -0
- package/components/p-DFzUUEiS.js +1 -0
- package/components/p-DINdyuGa.js +1 -0
- package/components/p-DIZuWptV.js +1 -0
- package/components/p-DPo53FC8.js +1 -0
- package/components/p-DPt8hDp3.js +1 -0
- package/components/p-DSC5zsOB.js +1 -0
- package/components/{p-Co3Y9VjQ.js → p-DSa1uqPO.js} +1 -1
- package/components/p-DT7-VE44.js +1 -0
- package/components/p-DTPUsC3Q.js +1 -0
- package/components/p-DUjF0MeP.js +1 -0
- package/components/p-DXMO8s1V.js +1 -0
- package/components/p-DZtvVtvb.js +1 -0
- package/components/p-D_184xNl.js +1 -0
- package/components/p-D_hKBumm.js +1 -0
- package/components/p-Da7AZprv.js +1 -0
- package/components/p-DcqkhKqy.js +1 -0
- package/components/p-Dkga4pDL.js +1 -0
- package/components/p-Dn1c0e9W.js +1 -0
- package/components/p-DobuHW4v.js +1 -0
- package/components/p-DqayamUz.js +1 -0
- package/components/{p-Cd919NAP.js → p-DtIk7IPf.js} +1 -1
- package/components/p-DwySgZYx.js +1 -0
- package/components/p-DynL8Hj8.js +1 -0
- package/components/p-EYMvnfpO.js +1 -0
- package/components/p-K2tV3sog.js +1 -0
- package/components/p-LX68sH4m.js +1 -0
- package/components/{p-CKVSyuIH.js → p-MRcLOacJ.js} +1 -1
- package/components/p-N4_1eZ9k.js +1 -0
- package/components/p-PNU1f8B9.js +1 -0
- package/components/p-SFcKtdEL.js +1 -0
- package/components/p-VezrLuwj.js +1 -0
- package/components/p-eF_oZrS1.js +1 -0
- package/components/p-ez-wfqCC.js +1 -0
- package/components/p-gQbQhfDs.js +1 -0
- package/components/p-ibXnjCdF.js +1 -0
- package/components/p-jTIj1nFL.js +1 -0
- package/components/p-k2uLDFNn.js +1 -0
- package/components/p-pK9HRi91.js +1 -0
- package/components/p-sijpPVRP.js +1 -0
- package/components/p-tMIvQ4L0.js +1 -0
- package/components/p-yktKa2eA.js +1 -0
- package/components/x-address.js +1 -1
- package/components/x-affix.d.ts +0 -0
- package/components/x-affix.js +1 -1
- package/components/x-alert.d.ts +0 -0
- package/components/x-alert.js +1 -1
- package/components/x-anchor-link.d.ts +0 -0
- package/components/x-anchor-link.js +1 -1
- package/components/x-anchor.d.ts +0 -0
- package/components/x-anchor.js +1 -1
- package/components/x-app.d.ts +0 -0
- package/components/x-app.js +1 -1
- package/components/x-auto-complete-dropdown-content.d.ts +0 -0
- package/components/x-auto-complete-dropdown-content.js +1 -1
- package/components/x-auto-complete.d.ts +0 -0
- package/components/x-auto-complete.js +1 -1
- package/components/x-avatar.d.ts +0 -0
- package/components/x-avatar.js +1 -1
- package/components/x-back-top.js +1 -1
- package/components/x-badge.d.ts +0 -0
- package/components/x-badge.js +1 -1
- package/components/x-breadcrumb-item.d.ts +0 -0
- package/components/x-breadcrumb-item.js +1 -1
- package/components/x-breadcrumb.d.ts +0 -0
- package/components/x-breadcrumb.js +1 -1
- package/components/x-button.d.ts +0 -0
- package/components/x-button.js +1 -1
- package/components/x-captcha.js +1 -1
- package/components/x-card.d.ts +0 -0
- package/components/x-card.js +1 -1
- package/components/x-carousel.d.ts +0 -0
- package/components/x-carousel.js +1 -1
- package/components/x-cascader-dropdown-content.d.ts +0 -0
- package/components/x-cascader-dropdown-content.js +1 -1
- package/components/x-cascader.d.ts +0 -0
- package/components/x-cascader.js +1 -1
- package/components/x-checkbox.d.ts +0 -0
- package/components/x-checkbox.js +1 -1
- package/components/x-code-editor.d.ts +11 -0
- package/components/x-code-editor.js +1 -0
- package/components/x-col.d.ts +0 -0
- package/components/x-col.js +1 -1
- package/components/x-collapse-panel.d.ts +0 -0
- package/components/x-collapse-panel.js +1 -1
- package/components/x-collapse.d.ts +0 -0
- package/components/x-collapse.js +1 -1
- package/components/x-color-picker-panel.d.ts +0 -0
- package/components/x-color-picker-panel.js +1 -1
- package/components/x-color-picker.d.ts +0 -0
- package/components/x-color-picker.js +1 -1
- package/components/x-comment.d.ts +0 -0
- package/components/x-comment.js +1 -1
- package/components/x-content.d.ts +0 -0
- package/components/x-content.js +1 -1
- package/components/x-date-picker-dropdown-content.d.ts +0 -0
- package/components/x-date-picker-dropdown-content.js +1 -1
- package/components/x-date-picker.d.ts +0 -0
- package/components/x-date-picker.js +1 -1
- package/components/x-descriptions-item.d.ts +0 -0
- package/components/x-descriptions-item.js +1 -1
- package/components/x-descriptions.d.ts +0 -0
- package/components/x-descriptions.js +1 -1
- package/components/x-divider.d.ts +0 -0
- package/components/x-divider.js +1 -1
- package/components/x-drawer-content.d.ts +0 -0
- package/components/x-drawer-content.js +1 -1
- package/components/x-drawer.d.ts +0 -0
- package/components/x-drawer.js +1 -1
- package/components/x-dropdown-content.d.ts +0 -0
- package/components/x-dropdown-content.js +1 -1
- package/components/x-dropdown.d.ts +0 -0
- package/components/x-dropdown.js +1 -1
- package/components/x-editor.d.ts +0 -0
- package/components/x-editor.js +1 -1
- package/components/x-empty.d.ts +0 -0
- package/components/x-empty.js +1 -1
- package/components/x-finder.d.ts +0 -0
- package/components/x-finder.js +1 -1
- package/components/x-flex.d.ts +0 -0
- package/components/x-flex.js +1 -1
- package/components/x-float-button.d.ts +0 -0
- package/components/x-float-button.js +1 -1
- package/components/x-footer.d.ts +0 -0
- package/components/x-footer.js +1 -1
- package/components/x-form-builder.d.ts +0 -0
- package/components/x-form-builder.js +1 -1
- package/components/x-form-item.d.ts +0 -0
- package/components/x-form-item.js +1 -1
- package/components/x-form.d.ts +0 -0
- package/components/x-form.js +1 -1
- package/components/x-header.d.ts +0 -0
- package/components/x-header.js +1 -1
- package/components/x-icon-picker-dropdown-content.d.ts +11 -0
- package/components/x-icon-picker-dropdown-content.js +1 -0
- package/components/x-icon.d.ts +0 -0
- package/components/x-icon.js +1 -1
- package/components/x-image.d.ts +0 -0
- package/components/x-image.js +1 -1
- package/components/x-infinite-scroll.d.ts +0 -0
- package/components/x-infinite-scroll.js +1 -1
- package/components/x-input-icon.d.ts +11 -0
- package/components/x-input-icon.js +1 -0
- package/components/x-input-number.d.ts +0 -0
- package/components/x-input-number.js +1 -1
- package/components/x-input.d.ts +0 -0
- package/components/x-input.js +1 -1
- package/components/x-layout-admin.d.ts +11 -0
- package/components/x-layout-admin.js +1 -0
- package/components/x-layout-detail.d.ts +11 -0
- package/components/x-layout-detail.js +1 -0
- package/components/x-layout-list.d.ts +11 -0
- package/components/x-layout-list.js +1 -0
- package/components/x-layout.d.ts +0 -0
- package/components/x-layout.js +1 -1
- package/components/x-list-item.js +1 -1
- package/components/x-list.d.ts +0 -0
- package/components/x-list.js +1 -1
- package/components/x-login.d.ts +11 -0
- package/components/x-login.js +1 -0
- package/components/x-mentions.d.ts +0 -0
- package/components/x-mentions.js +1 -1
- package/components/x-menu-divider.d.ts +0 -0
- package/components/x-menu-divider.js +1 -1
- package/components/x-menu-item-group.d.ts +0 -0
- package/components/x-menu-item-group.js +1 -1
- package/components/x-menu-item.d.ts +0 -0
- package/components/x-menu-item.js +1 -1
- package/components/x-menu-submenu.d.ts +0 -0
- package/components/x-menu-submenu.js +1 -1
- package/components/x-menu.d.ts +0 -0
- package/components/x-menu.js +1 -1
- package/components/x-message.d.ts +0 -0
- package/components/x-message.js +1 -1
- package/components/x-modal-content.d.ts +0 -0
- package/components/x-modal-content.js +1 -1
- package/components/x-modal.d.ts +0 -0
- package/components/x-modal.js +1 -1
- package/components/x-notification.d.ts +0 -0
- package/components/x-notification.js +1 -1
- package/components/x-page-header.js +1 -1
- package/components/x-pagination.d.ts +0 -0
- package/components/x-pagination.js +1 -1
- package/components/x-popconfirm-content.d.ts +0 -0
- package/components/x-popconfirm-content.js +1 -1
- package/components/x-popconfirm.d.ts +0 -0
- package/components/x-popconfirm.js +1 -1
- package/components/x-popover-content.d.ts +0 -0
- package/components/x-popover-content.js +1 -1
- package/components/x-popover.d.ts +0 -0
- package/components/x-popover.js +1 -1
- package/components/x-progress.d.ts +0 -0
- package/components/x-progress.js +1 -1
- package/components/x-qr-code.d.ts +0 -0
- package/components/x-qr-code.js +1 -1
- package/components/x-radio-group.d.ts +0 -0
- package/components/x-radio-group.js +1 -1
- package/components/x-radio.d.ts +0 -0
- package/components/x-radio.js +1 -1
- package/components/x-range-picker-dropdown-content.d.ts +0 -0
- package/components/x-range-picker-dropdown-content.js +1 -1
- package/components/x-range-picker.d.ts +0 -0
- package/components/x-range-picker.js +1 -1
- package/components/x-rate.d.ts +0 -0
- package/components/x-rate.js +1 -1
- package/components/x-result.d.ts +0 -0
- package/components/x-result.js +1 -1
- package/components/x-row.d.ts +0 -0
- package/components/x-row.js +1 -1
- package/components/x-segmented.d.ts +0 -0
- package/components/x-segmented.js +1 -1
- package/components/x-select-dropdown-content.d.ts +0 -0
- package/components/x-select-dropdown-content.js +1 -1
- package/components/x-select-option.d.ts +0 -0
- package/components/x-select-option.js +1 -1
- package/components/x-select.d.ts +0 -0
- package/components/x-select.js +1 -1
- package/components/x-sider.d.ts +0 -0
- package/components/x-sider.js +1 -1
- package/components/x-skeleton.d.ts +0 -0
- package/components/x-skeleton.js +1 -1
- package/components/x-slider.d.ts +0 -0
- package/components/x-slider.js +1 -1
- package/components/x-space.d.ts +0 -0
- package/components/x-space.js +1 -1
- package/components/x-spin.d.ts +0 -0
- package/components/x-spin.js +1 -1
- package/components/x-splitter-panel.d.ts +0 -0
- package/components/x-splitter-panel.js +1 -1
- package/components/x-splitter.d.ts +0 -0
- package/components/x-splitter.js +1 -1
- package/components/x-statistic.d.ts +0 -0
- package/components/x-statistic.js +1 -1
- package/components/x-step.d.ts +0 -0
- package/components/x-step.js +1 -1
- package/components/x-steps.d.ts +0 -0
- package/components/x-steps.js +1 -1
- package/components/x-switch.d.ts +0 -0
- package/components/x-switch.js +1 -1
- package/components/x-tab-pane.js +1 -1
- package/components/x-table-cell.d.ts +0 -0
- package/components/x-table-cell.js +1 -1
- package/components/x-table-row.d.ts +0 -0
- package/components/x-table-row.js +1 -1
- package/components/x-table.d.ts +0 -0
- package/components/x-table.js +1 -1
- package/components/x-tabs.d.ts +0 -0
- package/components/x-tabs.js +1 -1
- package/components/x-tag.d.ts +0 -0
- package/components/x-tag.js +1 -1
- package/components/x-textarea.d.ts +0 -0
- package/components/x-textarea.js +1 -1
- package/components/x-time-picker-dropdown-content.d.ts +0 -0
- package/components/x-time-picker-dropdown-content.js +1 -1
- package/components/x-time-picker.d.ts +0 -0
- package/components/x-time-picker.js +1 -1
- package/components/x-timeline-item.d.ts +0 -0
- package/components/x-timeline-item.js +1 -1
- package/components/x-timeline.d.ts +0 -0
- package/components/x-timeline.js +1 -1
- package/components/x-tooltip-content.d.ts +0 -0
- package/components/x-tooltip-content.js +1 -1
- package/components/x-tooltip.d.ts +0 -0
- package/components/x-tooltip.js +1 -1
- package/components/x-tour-panel.d.ts +0 -0
- package/components/x-tour-panel.js +1 -1
- package/components/x-tour.d.ts +0 -0
- package/components/x-tour.js +1 -1
- package/components/x-transfer.d.ts +0 -0
- package/components/x-transfer.js +1 -1
- package/components/x-tree-select-dropdown-content.js +1 -1
- package/components/x-tree-select.d.ts +0 -0
- package/components/x-tree-select.js +1 -1
- package/components/x-tree.d.ts +0 -0
- package/components/x-tree.js +1 -1
- package/components/x-typography.d.ts +0 -0
- package/components/x-typography.js +1 -1
- package/components/x-upload.d.ts +0 -0
- package/components/x-upload.js +1 -1
- package/components/x-virtual-scroll.d.ts +0 -0
- package/components/x-virtual-scroll.js +1 -1
- package/components/x-workflow-builder.d.ts +0 -0
- package/components/x-workflow-builder.js +1 -1
- package/components/x-workflow.d.ts +0 -0
- package/components/x-workflow.js +1 -1
- package/dist/cjs/{abstract-control-C4D0eNCC.js → abstract-control-JI4_szTV.js} +40 -14
- package/dist/cjs/{config-BP9bROYD.js → config-BYR5qIIZ.js} +3 -3
- package/dist/cjs/icons-BfHE2jcr.js +19261 -0
- package/dist/cjs/{index-C7sKs9A2.js → index-Cy2P_ln3.js} +39 -12
- package/dist/cjs/index.cjs.js +7 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale.service-Cz-aZQnr.js → locale.service-DT6E8Rzd.js} +17 -9
- package/dist/cjs/{modal-service-BtAF0mFq.js → modal-service-FQpCPk_L.js} +34 -14
- package/dist/cjs/{notification-service-m6I5U9aG.js → notification-service-v7LRmTyh.js} +12 -13
- package/dist/cjs/{portal-controller-CtYVbhXL.js → portal-controller-DJft2QkA.js} +11 -16
- package/dist/cjs/{schema-builder-CYnX7lKi.js → schema-builder-DAwDwgIM.js} +385 -99
- package/dist/cjs/{tree.service-fxLOCSpD.js → tree.service-u0qqS1Qh.js} +22 -22
- package/dist/cjs/x-address_51.cjs.entry.js +26978 -0
- package/dist/cjs/x-affix.cjs.entry.js +5 -5
- package/dist/cjs/{x-alert_11.cjs.entry.js → x-alert_9.cjs.entry.js} +267 -646
- package/dist/cjs/x-anchor-link.cjs.entry.js +3 -3
- package/dist/cjs/x-anchor.cjs.entry.js +11 -9
- package/dist/cjs/x-app.cjs.entry.js +19 -19
- package/dist/cjs/x-back-top.cjs.entry.js +4 -4
- package/dist/cjs/x-breadcrumb_2.cjs.entry.js +124 -0
- package/dist/cjs/x-carousel.cjs.entry.js +7 -7
- package/dist/cjs/x-code-editor.cjs.entry.js +2365 -0
- package/dist/cjs/x-col_11.cjs.entry.js +1204 -0
- package/dist/cjs/x-collapse-panel.cjs.entry.js +4 -4
- package/dist/cjs/x-collapse.cjs.entry.js +4 -4
- package/dist/cjs/x-comment.cjs.entry.js +5 -5
- package/dist/cjs/x-descriptions-item.cjs.entry.js +6 -6
- package/dist/cjs/{x-breadcrumb_5.cjs.entry.js → x-descriptions_3.cjs.entry.js} +36 -157
- package/dist/cjs/x-drawer-content.cjs.entry.js +8 -8
- package/dist/cjs/x-drawer.cjs.entry.js +9 -7
- package/dist/cjs/x-finder.cjs.entry.js +39 -32
- package/dist/cjs/x-icon-picker-dropdown-content.cjs.entry.js +158 -0
- package/dist/cjs/x-infinite-scroll.cjs.entry.js +4 -4
- package/dist/cjs/x-input-icon.cjs.entry.js +361 -0
- package/dist/cjs/x-layout-admin.cjs.entry.js +45 -0
- package/dist/cjs/x-layout-detail.cjs.entry.js +145 -0
- package/dist/cjs/x-layout-list.cjs.entry.js +259 -0
- package/dist/cjs/x-list-item.cjs.entry.js +3 -3
- package/dist/cjs/{x-menu-submenu.cjs.entry.js → x-list_2.cjs.entry.js} +141 -7
- package/dist/cjs/x-mentions.cjs.entry.js +6 -6
- package/dist/cjs/x-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/x-menu-item-group.cjs.entry.js +2 -2
- package/dist/cjs/x-menu_2.cjs.entry.js +509 -0
- package/dist/cjs/x-message.cjs.entry.js +7 -7
- package/dist/cjs/x-notification.cjs.entry.js +7 -7
- package/dist/cjs/x-page-header.cjs.entry.js +3 -3
- package/dist/cjs/x-popconfirm-content.cjs.entry.js +4 -4
- package/dist/cjs/x-popconfirm.cjs.entry.js +5 -5
- package/dist/cjs/x-progress.cjs.entry.js +10 -10
- package/dist/cjs/x-qr-code.cjs.entry.js +11 -9
- package/dist/cjs/x-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/x-splitter-panel.cjs.entry.js +2 -2
- package/dist/cjs/x-splitter.cjs.entry.js +11 -5
- package/dist/cjs/x-statistic.cjs.entry.js +3 -3
- package/dist/cjs/x-step.cjs.entry.js +7 -7
- package/dist/cjs/x-steps.cjs.entry.js +6 -8
- package/dist/cjs/x-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/x-table-row.cjs.entry.js +13 -10
- package/dist/cjs/x-timeline-item.cjs.entry.js +4 -4
- package/dist/cjs/x-timeline.cjs.entry.js +4 -4
- package/dist/cjs/x-tour-panel.cjs.entry.js +3 -3
- package/dist/cjs/x-tour.cjs.entry.js +16 -16
- package/dist/cjs/x-virtual-scroll.cjs.entry.js +5 -5
- package/dist/cjs/x-workflow-builder.cjs.entry.js +8 -8
- package/dist/cjs/xlabs.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/x-address/vietnam-data.js +3 -3
- package/dist/collection/components/x-address/x-address.css +5 -2
- package/dist/collection/components/x-address/x-address.js +8 -10
- package/dist/collection/components/x-affix/x-affix.js +4 -4
- package/dist/collection/components/x-alert/x-alert.css +5 -2
- package/dist/collection/components/x-alert/x-alert.js +1 -1
- package/dist/collection/components/x-anchor/x-anchor.js +16 -8
- package/dist/collection/components/x-anchor-link/x-anchor-link.js +2 -2
- package/dist/collection/components/x-app/x-app.js +15 -15
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +5 -2
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +1 -1
- package/dist/collection/components/x-auto-complete/types.js +2 -5
- package/dist/collection/components/x-auto-complete/x-auto-complete.css +5 -2
- package/dist/collection/components/x-auto-complete/x-auto-complete.js +52 -25
- package/dist/collection/components/x-avatar/x-avatar.js +23 -14
- package/dist/collection/components/x-back-top/x-back-top.js +3 -3
- package/dist/collection/components/x-badge/x-badge.js +3 -7
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +3 -3
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +1 -1
- package/dist/collection/components/x-button/x-button.js +7 -7
- package/dist/collection/components/x-captcha/x-captcha.js +28 -8
- package/dist/collection/components/x-card/x-card.css +9 -4
- package/dist/collection/components/x-card/x-card.js +1 -1
- package/dist/collection/components/x-carousel/x-carousel.css +5 -2
- package/dist/collection/components/x-carousel/x-carousel.js +5 -5
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +5 -2
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +9 -9
- package/dist/collection/components/x-cascader/x-cascader.css +5 -2
- package/dist/collection/components/x-cascader/x-cascader.js +17 -20
- package/dist/collection/components/x-checkbox/x-checkbox.css +5 -2
- package/dist/collection/components/x-checkbox/x-checkbox.js +9 -19
- package/dist/collection/components/x-code-editor/types.js +1 -0
- package/dist/collection/components/x-code-editor/x-code-editor.css +1274 -0
- package/dist/collection/components/x-code-editor/x-code-editor.js +1497 -0
- package/dist/collection/components/x-col/x-col.css +5 -2
- package/dist/collection/components/x-col/x-col.js +14 -14
- package/dist/collection/components/x-collapse/x-collapse.css +5 -2
- package/dist/collection/components/x-collapse/x-collapse.js +4 -4
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +5 -2
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +4 -4
- package/dist/collection/components/x-color-picker/x-color-picker-panel.js +6 -8
- package/dist/collection/components/x-color-picker/x-color-picker.css +5 -2
- package/dist/collection/components/x-color-picker/x-color-picker.js +72 -12
- package/dist/collection/components/x-comment/x-comment.css +5 -2
- package/dist/collection/components/x-comment/x-comment.js +3 -3
- package/dist/collection/components/x-content/x-content.css +5 -4
- package/dist/collection/components/x-content/x-content.js +3 -3
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +7 -3
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +5 -9
- package/dist/collection/components/x-date-picker/x-date-picker.css +5 -2
- package/dist/collection/components/x-date-picker/x-date-picker.js +65 -23
- package/dist/collection/components/x-descriptions/x-descriptions.css +5 -2
- package/dist/collection/components/x-descriptions/x-descriptions.js +3 -3
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +5 -2
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +4 -4
- package/dist/collection/components/x-divider/x-divider.css +5 -2
- package/dist/collection/components/x-divider/x-divider.js +3 -3
- package/dist/collection/components/x-drawer/x-drawer.css +5 -2
- package/dist/collection/components/x-drawer/x-drawer.js +6 -4
- package/dist/collection/components/x-drawer-content/x-drawer-content.css +5 -2
- package/dist/collection/components/x-drawer-content/x-drawer-content.js +4 -4
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +5 -2
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +1 -1
- package/dist/collection/components/x-dropdown/x-dropdown.css +5 -2
- package/dist/collection/components/x-dropdown/x-dropdown.js +34 -12
- package/dist/collection/components/x-editor/types.js +4 -6
- package/dist/collection/components/x-editor/x-editor.css +25 -10
- package/dist/collection/components/x-editor/x-editor.js +80 -74
- package/dist/collection/components/x-empty/x-empty.css +5 -2
- package/dist/collection/components/x-empty/x-empty.js +1 -1
- package/dist/collection/components/x-finder/services/finder-service.js +7 -9
- package/dist/collection/components/x-finder/x-finder.css +10 -4
- package/dist/collection/components/x-finder/x-finder.js +28 -19
- package/dist/collection/components/x-flex/x-flex.css +5 -2
- package/dist/collection/components/x-flex/x-flex.js +5 -7
- package/dist/collection/components/x-float-button/x-float-button.css +5 -2
- package/dist/collection/components/x-float-button/x-float-button.js +4 -4
- package/dist/collection/components/x-footer/x-footer.css +5 -2
- package/dist/collection/components/x-footer/x-footer.js +1 -1
- package/dist/collection/components/x-form/x-form.css +5 -2
- package/dist/collection/components/x-form/x-form.js +98 -3
- package/dist/collection/components/x-form-builder/services/apis/api-client.js +24 -15
- package/dist/collection/components/x-form-builder/services/forms/form-array.js +3 -5
- package/dist/collection/components/x-form-builder/services/forms/form-group.js +6 -6
- package/dist/collection/components/x-form-builder/services/forms/validators.js +20 -10
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +73 -50
- package/dist/collection/components/x-form-builder/services/schema/default-registry.js +108 -87
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +80 -5
- package/dist/collection/components/x-form-builder/services/schema/formula-builder.js +114 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +7 -2
- package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +1 -1
- package/dist/collection/components/x-form-builder/types/common/index.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/ui-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +1 -9
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +56 -14
- package/dist/collection/components/x-form-builder/utils/utils.js +25 -6
- package/dist/collection/components/x-form-builder/x-form-builder.js +559 -206
- package/dist/collection/components/x-form-item/x-form-item.css +16 -10
- package/dist/collection/components/x-form-item/x-form-item.js +46 -28
- package/dist/collection/components/x-header/x-header.css +5 -2
- package/dist/collection/components/x-header/x-header.js +1 -1
- package/dist/collection/components/x-icon/icons.js +19257 -2716
- package/dist/collection/components/x-icon/x-icon.css +5 -2
- package/dist/collection/components/x-icon/x-icon.js +6 -6
- package/dist/collection/components/x-image/x-image.css +5 -2
- package/dist/collection/components/x-image/x-image.js +6 -6
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +5 -2
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +2 -2
- package/dist/collection/components/x-input/x-input.css +25 -2
- package/dist/collection/components/x-input/x-input.js +38 -9
- package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.css +453 -0
- package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.js +304 -0
- package/dist/collection/components/x-input-icon/types.js +1 -0
- package/dist/collection/components/x-input-icon/x-input-icon.css +404 -0
- package/dist/collection/components/x-input-icon/x-input-icon.js +917 -0
- package/dist/collection/components/x-input-number/x-input-number.css +5 -2
- package/dist/collection/components/x-input-number/x-input-number.js +108 -13
- package/dist/collection/components/x-layout/x-layout.css +5 -2
- package/dist/collection/components/x-layout/x-layout.js +11 -5
- package/dist/collection/components/x-layout-admin/x-layout-admin.css +403 -0
- package/dist/collection/components/x-layout-admin/x-layout-admin.js +127 -0
- package/dist/collection/components/x-layout-detail/x-layout-detail.css +479 -0
- package/dist/collection/components/x-layout-detail/x-layout-detail.js +300 -0
- package/dist/collection/components/x-layout-list/types.js +1 -0
- package/dist/collection/components/x-layout-list/x-layout-list.css +511 -0
- package/dist/collection/components/x-layout-list/x-layout-list.js +619 -0
- package/dist/collection/components/x-list/x-list.css +5 -2
- package/dist/collection/components/x-list/x-list.js +3 -3
- package/dist/collection/components/x-list-item/x-list-item.css +5 -2
- package/dist/collection/components/x-list-item/x-list-item.js +1 -1
- package/dist/collection/components/x-login/types.js +1 -0
- package/dist/collection/components/x-login/x-login.css +562 -0
- package/dist/collection/components/x-login/x-login.js +706 -0
- package/dist/collection/components/x-mentions/x-mentions.css +5 -2
- package/dist/collection/components/x-mentions/x-mentions.js +4 -4
- package/dist/collection/components/x-menu/x-menu.js +1 -1
- package/dist/collection/components/x-menu-divider/x-menu-divider.js +1 -1
- package/dist/collection/components/x-menu-item/x-menu-item.js +2 -2
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +1 -1
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +5 -5
- package/dist/collection/components/x-message/message-service.js +2 -2
- package/dist/collection/components/x-message/x-message.css +5 -2
- package/dist/collection/components/x-message/x-message.js +5 -5
- package/dist/collection/components/x-modal/modal-service.js +33 -13
- package/dist/collection/components/x-modal/x-modal.css +5 -2
- package/dist/collection/components/x-modal/x-modal.js +148 -47
- package/dist/collection/components/x-modal-content/x-modal-content.css +110 -18
- package/dist/collection/components/x-modal-content/x-modal-content.js +157 -12
- package/dist/collection/components/x-notification/notification-service.js +9 -10
- package/dist/collection/components/x-notification/x-notification.css +6 -2
- package/dist/collection/components/x-notification/x-notification.js +4 -4
- package/dist/collection/components/x-page-header/x-page-header.css +5 -2
- package/dist/collection/components/x-page-header/x-page-header.js +1 -1
- package/dist/collection/components/x-pagination/x-pagination.css +11 -2
- package/dist/collection/components/x-pagination/x-pagination.js +18 -14
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +5 -2
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +1 -1
- package/dist/collection/components/x-popconfirm/x-popconfirm.css +5 -2
- package/dist/collection/components/x-popconfirm/x-popconfirm.js +1 -1
- package/dist/collection/components/x-popover/popover-content/popover-content.css +5 -2
- package/dist/collection/components/x-popover/popover-content/popover-content.js +1 -1
- package/dist/collection/components/x-popover/x-popover.css +5 -2
- package/dist/collection/components/x-popover/x-popover.js +1 -1
- package/dist/collection/components/x-portal/positioning.js +11 -16
- package/dist/collection/components/x-progress/x-progress.css +5 -2
- package/dist/collection/components/x-progress/x-progress.js +8 -8
- package/dist/collection/components/x-qr-code/x-qr-code.css +2 -1
- package/dist/collection/components/x-qr-code/x-qr-code.js +23 -1
- package/dist/collection/components/x-radio/x-radio.css +5 -2
- package/dist/collection/components/x-radio/x-radio.js +5 -5
- package/dist/collection/components/x-radio-group/x-radio-group.css +5 -2
- package/dist/collection/components/x-radio-group/x-radio-group.js +6 -8
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +7 -3
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +13 -13
- package/dist/collection/components/x-range-picker/x-range-picker.css +5 -2
- package/dist/collection/components/x-range-picker/x-range-picker.js +9 -18
- package/dist/collection/components/x-rate/x-rate.css +5 -2
- package/dist/collection/components/x-rate/x-rate.js +3 -3
- package/dist/collection/components/x-result/x-result.css +5 -2
- package/dist/collection/components/x-result/x-result.js +11 -10
- package/dist/collection/components/x-row/x-row.css +5 -2
- package/dist/collection/components/x-row/x-row.js +4 -4
- package/dist/collection/components/x-segmented/x-segmented.css +5 -2
- package/dist/collection/components/x-segmented/x-segmented.js +8 -8
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +11 -4
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +1 -1
- package/dist/collection/components/x-select/x-select.css +11 -4
- package/dist/collection/components/x-select/x-select.js +33 -39
- package/dist/collection/components/x-select-option/x-select-option.css +5 -2
- package/dist/collection/components/x-select-option/x-select-option.js +3 -3
- package/dist/collection/components/x-sider/x-sider.css +7 -4
- package/dist/collection/components/x-sider/x-sider.js +7 -9
- package/dist/collection/components/x-skeleton/x-skeleton.css +5 -2
- package/dist/collection/components/x-skeleton/x-skeleton.js +3 -3
- package/dist/collection/components/x-slider/x-slider.css +5 -2
- package/dist/collection/components/x-slider/x-slider.js +11 -23
- package/dist/collection/components/x-space/x-space.css +5 -2
- package/dist/collection/components/x-space/x-space.js +4 -4
- package/dist/collection/components/x-spin/x-spin.css +5 -2
- package/dist/collection/components/x-spin/x-spin.js +1 -1
- package/dist/collection/components/x-splitter/x-splitter.js +14 -8
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +1 -1
- package/dist/collection/components/x-statistic/x-statistic.css +5 -2
- package/dist/collection/components/x-statistic/x-statistic.js +1 -1
- package/dist/collection/components/x-step/x-step.css +5 -2
- package/dist/collection/components/x-step/x-step.js +5 -5
- package/dist/collection/components/x-steps/x-steps.css +5 -2
- package/dist/collection/components/x-steps/x-steps.js +4 -6
- package/dist/collection/components/x-switch/x-switch.css +5 -2
- package/dist/collection/components/x-switch/x-switch.js +7 -4
- package/dist/collection/components/x-tab-pane/x-tab-pane.css +5 -2
- package/dist/collection/components/x-tab-pane/x-tab-pane.js +58 -2
- package/dist/collection/components/x-table/x-table.css +187 -41
- package/dist/collection/components/x-table/x-table.js +257 -105
- package/dist/collection/components/x-table-cell/x-table-cell.css +5 -2
- package/dist/collection/components/x-table-cell/x-table-cell.js +2 -2
- package/dist/collection/components/x-table-row/x-table-row.css +5 -2
- package/dist/collection/components/x-table-row/x-table-row.js +11 -8
- package/dist/collection/components/x-tabs/x-tabs.css +17 -2
- package/dist/collection/components/x-tabs/x-tabs.js +130 -12
- package/dist/collection/components/x-tag/x-tag.css +6 -3
- package/dist/collection/components/x-tag/x-tag.js +1 -4
- package/dist/collection/components/x-textarea/x-textarea.css +5 -2
- package/dist/collection/components/x-textarea/x-textarea.js +5 -5
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +5 -2
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +1 -1
- package/dist/collection/components/x-time-picker/x-time-picker.css +5 -2
- package/dist/collection/components/x-time-picker/x-time-picker.js +4 -7
- package/dist/collection/components/x-timeline/x-timeline.css +5 -2
- package/dist/collection/components/x-timeline/x-timeline.js +2 -2
- package/dist/collection/components/x-timeline-item/x-timeline-item.css +5 -2
- package/dist/collection/components/x-timeline-item/x-timeline-item.js +2 -2
- package/dist/collection/components/x-tooltip/x-tooltip.css +5 -2
- package/dist/collection/components/x-tooltip/x-tooltip.js +6 -8
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +2 -2
- package/dist/collection/components/x-tour/x-tour-panel.css +5 -2
- package/dist/collection/components/x-tour/x-tour-panel.js +1 -1
- package/dist/collection/components/x-tour/x-tour.css +5 -2
- package/dist/collection/components/x-tour/x-tour.js +15 -15
- package/dist/collection/components/x-transfer/x-transfer.css +5 -2
- package/dist/collection/components/x-transfer/x-transfer.js +8 -8
- package/dist/collection/components/x-tree/x-tree.css +5 -2
- package/dist/collection/components/x-tree/x-tree.js +25 -26
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +5 -2
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +6 -6
- package/dist/collection/components/x-tree-select/x-tree-select.css +5 -2
- package/dist/collection/components/x-tree-select/x-tree-select.js +21 -31
- package/dist/collection/components/x-typography/x-typography.css +10 -3
- package/dist/collection/components/x-typography/x-typography.js +12 -12
- package/dist/collection/components/x-upload/x-upload.css +5 -2
- package/dist/collection/components/x-upload/x-upload.js +342 -48
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +5 -5
- package/dist/collection/components/x-workflow/x-workflow.css +3 -1
- package/dist/collection/components/x-workflow/x-workflow.js +81 -66
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +5 -2
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +6 -6
- package/dist/collection/index.js +2 -0
- package/dist/collection/locales/languages/mn_MN.js +14 -1
- package/dist/collection/locales/locale.service.js +4 -9
- package/dist/collection/utils/code-editor/ast-parser.js +378 -0
- package/dist/collection/utils/code-editor/autocomplete-db.js +590 -0
- package/dist/collection/utils/code-editor/history.js +56 -0
- package/dist/collection/utils/code-editor/index.js +4 -0
- package/dist/collection/utils/code-editor/plugin-system.js +54 -0
- package/dist/collection/utils/code-editor/tokenizer.js +300 -0
- package/dist/collection/utils/config.js +3 -3
- package/dist/collection/utils/form/core/abstract-control.js +40 -14
- package/dist/collection/utils/form/core/form-array.js +7 -5
- package/dist/collection/utils/form/core/form-group.js +8 -4
- package/dist/collection/utils/form/frameworks.js +7 -3
- package/dist/collection/utils/form/validators/validators.js +3 -9
- package/dist/collection/utils/qr-code/engine/qr.engine.js +3 -3
- package/dist/collection/utils/qr-code/engine/qr.mask.js +3 -3
- package/dist/collection/utils/qr-code/engine/qr.rs.js +1 -1
- package/dist/collection/utils/table.service.js +40 -14
- package/dist/collection/utils/tree.service.js +22 -22
- package/dist/collection/utils/workflow/flow.service.js +95 -30
- package/dist/esm/{abstract-control-XBF88YT_.js → abstract-control-BtYiIQqg.js} +40 -14
- package/dist/esm/{config-BPeosvTA.js → config-RKpMhZmc.js} +3 -3
- package/dist/esm/icons-CQ2VND9-.js +19259 -0
- package/dist/esm/{index-ig_mFsVk.js → index-BMTt8QT3.js} +39 -12
- package/dist/esm/index.js +6 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale.service-D66tF8_2.js → locale.service-DFADJBLL.js} +17 -9
- package/dist/esm/{modal-service-C_e0SaFZ.js → modal-service-ikfAY1gn.js} +34 -14
- package/dist/esm/{notification-service-DJTSPOq7.js → notification-service-CUyIF7K-.js} +12 -13
- package/dist/esm/{portal-controller-COpzIi1n.js → portal-controller-DM8AggMt.js} +11 -16
- package/dist/esm/{schema-builder-DBPGgJBx.js → schema-builder-CekbhOnD.js} +385 -99
- package/dist/esm/{tree.service-Dgxy93Bg.js → tree.service-iG9CbEpE.js} +22 -22
- package/dist/esm/x-address_51.entry.js +26926 -0
- package/dist/esm/x-affix.entry.js +5 -5
- package/dist/esm/{x-alert_11.entry.js → x-alert_9.entry.js} +268 -645
- package/dist/esm/x-anchor-link.entry.js +3 -3
- package/dist/esm/x-anchor.entry.js +11 -9
- package/dist/esm/x-app.entry.js +19 -19
- package/dist/esm/x-back-top.entry.js +4 -4
- package/dist/esm/x-breadcrumb_2.entry.js +121 -0
- package/dist/esm/x-carousel.entry.js +7 -7
- package/dist/esm/x-code-editor.entry.js +2363 -0
- package/dist/esm/x-col_11.entry.js +1192 -0
- package/dist/esm/x-collapse-panel.entry.js +4 -4
- package/dist/esm/x-collapse.entry.js +4 -4
- package/dist/esm/x-comment.entry.js +5 -5
- package/dist/esm/x-descriptions-item.entry.js +6 -6
- package/dist/esm/{x-breadcrumb_5.entry.js → x-descriptions_3.entry.js} +37 -156
- package/dist/esm/x-drawer-content.entry.js +8 -8
- package/dist/esm/x-drawer.entry.js +9 -7
- package/dist/esm/x-finder.entry.js +39 -32
- package/dist/esm/x-icon-picker-dropdown-content.entry.js +156 -0
- package/dist/esm/x-infinite-scroll.entry.js +4 -4
- package/dist/esm/x-input-icon.entry.js +359 -0
- package/dist/esm/x-layout-admin.entry.js +43 -0
- package/dist/esm/x-layout-detail.entry.js +143 -0
- package/dist/esm/x-layout-list.entry.js +257 -0
- package/dist/esm/x-list-item.entry.js +3 -3
- package/dist/esm/{x-menu-submenu.entry.js → x-list_2.entry.js} +141 -8
- package/dist/esm/x-mentions.entry.js +6 -6
- package/dist/esm/x-menu-divider.entry.js +2 -2
- package/dist/esm/x-menu-item-group.entry.js +2 -2
- package/dist/esm/x-menu_2.entry.js +506 -0
- package/dist/esm/x-message.entry.js +7 -7
- package/dist/esm/x-notification.entry.js +7 -7
- package/dist/esm/x-page-header.entry.js +3 -3
- package/dist/esm/x-popconfirm-content.entry.js +4 -4
- package/dist/esm/x-popconfirm.entry.js +5 -5
- package/dist/esm/x-progress.entry.js +10 -10
- package/dist/esm/x-qr-code.entry.js +11 -9
- package/dist/esm/x-skeleton.entry.js +5 -5
- package/dist/esm/x-splitter-panel.entry.js +2 -2
- package/dist/esm/x-splitter.entry.js +11 -5
- package/dist/esm/x-statistic.entry.js +3 -3
- package/dist/esm/x-step.entry.js +7 -7
- package/dist/esm/x-steps.entry.js +6 -8
- package/dist/esm/x-table-cell.entry.js +4 -4
- package/dist/esm/x-table-row.entry.js +13 -10
- package/dist/esm/x-timeline-item.entry.js +4 -4
- package/dist/esm/x-timeline.entry.js +4 -4
- package/dist/esm/x-tour-panel.entry.js +3 -3
- package/dist/esm/x-tour.entry.js +16 -16
- package/dist/esm/x-virtual-scroll.entry.js +5 -5
- package/dist/esm/x-workflow-builder.entry.js +8 -8
- package/dist/esm/xlabs.js +20 -0
- package/dist/types/components/x-app/x-app.d.ts +12 -12
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +6 -0
- package/dist/types/components/x-avatar/x-avatar.d.ts +3 -2
- package/dist/types/components/x-captcha/x-captcha.d.ts +4 -0
- package/dist/types/components/x-checkbox/x-checkbox.d.ts +0 -4
- package/dist/types/components/x-code-editor/types.d.ts +26 -0
- package/dist/types/components/x-code-editor/x-code-editor.d.ts +141 -0
- package/dist/types/components/x-color-picker/types.d.ts +4 -0
- package/dist/types/components/x-color-picker/x-color-picker.d.ts +8 -1
- package/dist/types/components/x-content/x-content.d.ts +1 -1
- package/dist/types/components/x-date-picker/x-date-picker.d.ts +4 -0
- package/dist/types/components/x-form/x-form.d.ts +12 -0
- package/dist/types/components/x-form-builder/services/forms/validators.d.ts +1 -0
- package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +4 -0
- package/dist/types/components/x-form-builder/services/schema/formula-builder.d.ts +29 -0
- package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +6 -1
- package/dist/types/components/x-form-builder/types/common/common-types.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +1 -1
- package/dist/types/components/x-form-builder/types/common/index.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/common/ui-types.d.ts +28 -0
- package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +1 -1
- package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +4 -1
- package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +10 -3
- package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +3 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +5 -5
- package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +29 -2
- package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +11 -4
- package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +3 -0
- package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +7 -3
- package/dist/types/components/x-form-builder/utils/values.d.ts +1 -1
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +11 -3
- package/dist/types/components/x-icon/icons.d.ts +12 -2716
- package/dist/types/components/x-icon/x-icon.d.ts +1 -1
- package/dist/types/components/x-input/types.d.ts +1 -1
- package/dist/types/components/x-input/x-input.d.ts +6 -0
- package/dist/types/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.d.ts +39 -0
- package/dist/types/components/x-input-icon/types.d.ts +9 -0
- package/dist/types/components/x-input-icon/x-input-icon.d.ts +150 -0
- package/dist/types/components/x-input-number/x-input-number.d.ts +5 -0
- package/dist/types/components/x-layout/x-layout.d.ts +2 -1
- package/dist/types/components/x-layout-admin/x-layout-admin.d.ts +23 -0
- package/dist/types/components/x-layout-detail/x-layout-detail.d.ts +86 -0
- package/dist/types/components/x-layout-list/types.d.ts +100 -0
- package/dist/types/components/x-layout-list/x-layout-list.d.ts +107 -0
- package/dist/types/components/x-login/types.d.ts +113 -0
- package/dist/types/components/x-login/x-login.d.ts +126 -0
- package/dist/types/components/x-message/message-service.d.ts +1 -1
- package/dist/types/components/x-modal/x-modal.d.ts +31 -6
- package/dist/types/components/x-modal-content/x-modal-content.d.ts +24 -0
- package/dist/types/components/x-notification/notification-service.d.ts +1 -1
- package/dist/types/components/x-qr-code/x-qr-code.d.ts +2 -0
- package/dist/types/components/x-select/select-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +11 -0
- package/dist/types/components/x-table/types.d.ts +3 -0
- package/dist/types/components/x-table/x-table.d.ts +15 -4
- package/dist/types/components/x-tabs/types.d.ts +9 -0
- package/dist/types/components/x-tabs/x-tabs.d.ts +40 -1
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-transfer/types.d.ts +3 -1
- package/dist/types/components/x-upload/types.d.ts +14 -0
- package/dist/types/components/x-upload/x-upload.d.ts +34 -7
- package/dist/types/components.d.ts +1304 -70
- package/dist/types/index.d.ts +2 -0
- package/dist/types/locales/locale.service.d.ts +3 -3
- package/dist/types/types.d.ts +2 -0
- package/dist/types/utils/code-editor/ast-parser.d.ts +5 -0
- package/dist/types/utils/code-editor/autocomplete-db.d.ts +10 -0
- package/dist/types/utils/code-editor/history.d.ts +19 -0
- package/dist/types/utils/code-editor/index.d.ts +4 -0
- package/dist/types/utils/code-editor/plugin-system.d.ts +31 -0
- package/dist/types/utils/code-editor/tokenizer.d.ts +2 -0
- package/dist/types/utils/form/types.d.ts +1 -1
- package/dist/types/utils/table.service.d.ts +2 -1
- package/dist/xlabs/index.esm.js +1 -0
- package/dist/xlabs/p-0139d27f.entry.js +1 -0
- package/dist/xlabs/p-04985e4d.entry.js +1 -0
- package/dist/xlabs/p-05a79f30.entry.js +1 -0
- package/dist/xlabs/p-0a08e0c8.entry.js +1 -0
- package/dist/xlabs/p-0d5fb8de.entry.js +1 -0
- package/dist/{xlabs-store/p-cd3c3374.entry.js → xlabs/p-121911e5.entry.js} +1 -1
- package/dist/xlabs/p-1260ad3b.entry.js +1 -0
- package/dist/xlabs/p-1c0ee15c.entry.js +1 -0
- package/dist/{xlabs-store/p-023259c9.entry.js → xlabs/p-1cd3b259.entry.js} +1 -1
- package/dist/xlabs/p-2451ab24.entry.js +1 -0
- package/dist/xlabs/p-2ab3bc58.entry.js +1 -0
- package/dist/xlabs/p-2f9d0da7.entry.js +1 -0
- package/dist/xlabs/p-302ab3b9.entry.js +1 -0
- package/dist/xlabs/p-31029063.entry.js +1 -0
- package/dist/xlabs/p-31c814c2.entry.js +1 -0
- package/dist/xlabs/p-3f5b28e5.entry.js +1 -0
- package/dist/xlabs/p-43d10a6e.entry.js +1 -0
- package/dist/xlabs/p-4bf9b6f7.entry.js +1 -0
- package/dist/xlabs/p-5ab9ce39.entry.js +1 -0
- package/dist/xlabs/p-5e495388.entry.js +1 -0
- package/dist/xlabs/p-6039e514.entry.js +1 -0
- package/dist/xlabs/p-674527b2.entry.js +1 -0
- package/dist/xlabs/p-68056c0e.entry.js +1 -0
- package/dist/xlabs/p-6d7480c0.entry.js +1 -0
- package/dist/xlabs/p-7697ef47.entry.js +1 -0
- package/dist/xlabs/p-7b8bdd79.entry.js +1 -0
- package/dist/xlabs/p-7f9a80e0.entry.js +1 -0
- package/dist/xlabs/p-948a032e.entry.js +1 -0
- package/dist/xlabs/p-99c568fd.entry.js +1 -0
- package/dist/{xlabs-store/p-7a8f11b4.entry.js → xlabs/p-9ae3501d.entry.js} +1 -1
- package/dist/xlabs/p-9b3a4aa6.entry.js +1 -0
- package/dist/xlabs/p-9c1cc5ff.entry.js +1 -0
- package/dist/xlabs/p-BMTt8QT3.js +2 -0
- package/dist/xlabs/p-CQ2VND9-.js +1 -0
- package/dist/xlabs/p-CkwLFDlS.js +1 -0
- package/dist/xlabs/p-D7kqIlVo.js +1 -0
- package/dist/{xlabs-store/p-Co3Y9VjQ.js → xlabs/p-DSa1uqPO.js} +1 -1
- package/dist/{xlabs-store/p-c0ca6f7d.entry.js → xlabs/p-a2d14538.entry.js} +1 -1
- package/dist/xlabs/p-a415c8c1.entry.js +1 -0
- package/dist/xlabs/p-a4995e36.entry.js +1 -0
- package/dist/{xlabs-store/p-fdec5d89.entry.js → xlabs/p-aba80f73.entry.js} +1 -1
- package/dist/xlabs/p-bc5969e0.entry.js +1 -0
- package/dist/xlabs/p-bef8def9.entry.js +1 -0
- package/dist/xlabs/p-cc57e705.entry.js +1 -0
- package/dist/xlabs/p-d11de492.entry.js +1 -0
- package/dist/xlabs/p-d4558f7b.entry.js +1 -0
- package/dist/xlabs/p-d921a2c7.entry.js +1 -0
- package/dist/xlabs/p-df10e5a1.entry.js +1 -0
- package/dist/xlabs/p-e1a1acbe.entry.js +1 -0
- package/dist/xlabs/p-eab901c4.entry.js +1 -0
- package/dist/xlabs/p-edcb4001.entry.js +1 -0
- package/dist/xlabs/p-f07d9ee7.entry.js +1 -0
- package/dist/xlabs/p-f280faed.entry.js +1 -0
- package/dist/xlabs/p-f5b96f2a.entry.js +1 -0
- package/dist/xlabs/p-f6950840.entry.js +1 -0
- package/dist/{xlabs-store/p-96b1939d.entry.js → xlabs/p-f69d2b16.entry.js} +1 -1
- package/dist/{xlabs-store/p-8bcbb4e3.entry.js → xlabs/p-fd003457.entry.js} +1 -1
- package/dist/xlabs/xlabs.css +2 -0
- package/dist/xlabs/xlabs.esm.js +1 -0
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/package.json +65 -69
- package/readme.md +107 -50
- package/components/p-5c86X8JO.js +0 -1
- package/components/p-6KpqCGp9.js +0 -1
- package/components/p-ADwHM_jT.js +0 -1
- package/components/p-AgSyA7Ia.js +0 -1
- package/components/p-B-7Hwizp.js +0 -1
- package/components/p-B-ClGFfy.js +0 -1
- package/components/p-B4rO7Sgt.js +0 -1
- package/components/p-B5Syz0fw.js +0 -1
- package/components/p-B6p-mzW-.js +0 -1
- package/components/p-B8SZP5Xz.js +0 -1
- package/components/p-BBGHXZqR.js +0 -1
- package/components/p-BHLvuyOq.js +0 -1
- package/components/p-BOCR5Zk0.js +0 -1
- package/components/p-BRBrLtOz.js +0 -1
- package/components/p-BSRP2TGa.js +0 -1
- package/components/p-BUjRcJoK.js +0 -1
- package/components/p-BVeQ5W_G.js +0 -1
- package/components/p-BVnVlCcd.js +0 -1
- package/components/p-BZQcq9R_.js +0 -1
- package/components/p-BeIFU-wn.js +0 -1
- package/components/p-BkEgl31q.js +0 -1
- package/components/p-BkPJ1Whr.js +0 -1
- package/components/p-BkevSugc.js +0 -1
- package/components/p-BkiOFW3H.js +0 -1
- package/components/p-BskMfHyY.js +0 -1
- package/components/p-Bu2JqZs8.js +0 -1
- package/components/p-BvjR2Q5Q.js +0 -1
- package/components/p-Bz7MhZ4K.js +0 -1
- package/components/p-C3gvR6nN.js +0 -1
- package/components/p-C70KKm8p.js +0 -1
- package/components/p-C7csgUoA.js +0 -1
- package/components/p-CAPfC5Vn.js +0 -1
- package/components/p-CEBSDVyp.js +0 -1
- package/components/p-CFB6xkAX.js +0 -1
- package/components/p-CGIxdOEm.js +0 -1
- package/components/p-CHRrsVXB.js +0 -1
- package/components/p-CKUzvJue.js +0 -1
- package/components/p-CRBPzT4B.js +0 -1
- package/components/p-CSfrs76m.js +0 -1
- package/components/p-C_ZBjXFP.js +0 -1
- package/components/p-Ce5L9qbY.js +0 -1
- package/components/p-CeBfFEIa.js +0 -1
- package/components/p-Ck6SW8G3.js +0 -1
- package/components/p-D7ijqXRY.js +0 -1
- package/components/p-D7n-26Q5.js +0 -1
- package/components/p-D8ew7Rgv.js +0 -1
- package/components/p-DBk4T-b-.js +0 -1
- package/components/p-DD-W_fMF.js +0 -1
- package/components/p-DElCk9ta.js +0 -1
- package/components/p-DEumEVI3.js +0 -1
- package/components/p-DGqQ8PT4.js +0 -1
- package/components/p-DJ1WhSJ4.js +0 -1
- package/components/p-DOxXxhXb.js +0 -1
- package/components/p-DRa4o4c6.js +0 -1
- package/components/p-DTlSrH8_.js +0 -1
- package/components/p-DTvD0UO5.js +0 -1
- package/components/p-DZFphzg1.js +0 -1
- package/components/p-DZPUUptR.js +0 -1
- package/components/p-D_xaGiZU.js +0 -1
- package/components/p-DaL42JUi.js +0 -1
- package/components/p-DbRpEXwX.js +0 -1
- package/components/p-Dg0xgMke.js +0 -1
- package/components/p-Dky_8i8S.js +0 -1
- package/components/p-DlwlBBr4.js +0 -1
- package/components/p-DoTf8yXn.js +0 -1
- package/components/p-DphUq6Z5.js +0 -1
- package/components/p-DsgWQbJY.js +0 -1
- package/components/p-Dx3yBe39.js +0 -1
- package/components/p-DxKMnrS8.js +0 -1
- package/components/p-O88oQkR1.js +0 -1
- package/components/p-PlUkLT0A.js +0 -1
- package/components/p-QTSiPk0I.js +0 -1
- package/components/p-TC9DZAbC.js +0 -1
- package/components/p-bVsOg7S9.js +0 -1
- package/components/p-ccpcKv5U.js +0 -1
- package/components/p-en06CSUT.js +0 -1
- package/components/p-g6ZBqIze.js +0 -1
- package/dist/cjs/types-DQ-V76ZQ.js +0 -255
- package/dist/cjs/x-address_14.cjs.entry.js +0 -12577
- package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +0 -69
- package/dist/cjs/x-avatar.cjs.entry.js +0 -269
- package/dist/cjs/x-button.cjs.entry.js +0 -174
- package/dist/cjs/x-card_12.cjs.entry.js +0 -1386
- package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +0 -364
- package/dist/cjs/x-checkbox_5.cjs.entry.js +0 -1376
- package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +0 -873
- package/dist/cjs/x-color-picker_9.cjs.entry.js +0 -3085
- package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +0 -757
- package/dist/cjs/x-dropdown_2.cjs.entry.js +0 -735
- package/dist/cjs/x-empty.cjs.entry.js +0 -64
- package/dist/cjs/x-form-builder.cjs.entry.js +0 -807
- package/dist/cjs/x-icon.cjs.entry.js +0 -144
- package/dist/cjs/x-list.cjs.entry.js +0 -138
- package/dist/cjs/x-modal-content.cjs.entry.js +0 -217
- package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +0 -821
- package/dist/cjs/x-select_2.cjs.entry.js +0 -1316
- package/dist/cjs/x-spin.cjs.entry.js +0 -62
- package/dist/cjs/x-tab-pane.cjs.entry.js +0 -73
- package/dist/cjs/x-tabs.cjs.entry.js +0 -609
- package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +0 -389
- package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +0 -439
- package/dist/cjs/xlabs-store.cjs.js +0 -24
- package/dist/esm/types-C_QdJRdB.js +0 -253
- package/dist/esm/x-address_14.entry.js +0 -12562
- package/dist/esm/x-auto-complete-dropdown-content.entry.js +0 -67
- package/dist/esm/x-avatar.entry.js +0 -267
- package/dist/esm/x-button.entry.js +0 -172
- package/dist/esm/x-card_12.entry.js +0 -1373
- package/dist/esm/x-cascader-dropdown-content.entry.js +0 -362
- package/dist/esm/x-checkbox_5.entry.js +0 -1370
- package/dist/esm/x-color-picker-panel_2.entry.js +0 -870
- package/dist/esm/x-color-picker_9.entry.js +0 -3075
- package/dist/esm/x-date-picker-dropdown-content.entry.js +0 -755
- package/dist/esm/x-dropdown_2.entry.js +0 -732
- package/dist/esm/x-empty.entry.js +0 -62
- package/dist/esm/x-form-builder.entry.js +0 -805
- package/dist/esm/x-icon.entry.js +0 -142
- package/dist/esm/x-list.entry.js +0 -136
- package/dist/esm/x-modal-content.entry.js +0 -215
- package/dist/esm/x-range-picker-dropdown-content.entry.js +0 -819
- package/dist/esm/x-select_2.entry.js +0 -1313
- package/dist/esm/x-spin.entry.js +0 -60
- package/dist/esm/x-tab-pane.entry.js +0 -71
- package/dist/esm/x-tabs.entry.js +0 -607
- package/dist/esm/x-time-picker-dropdown-content.entry.js +0 -387
- package/dist/esm/x-tree-select-dropdown-content.entry.js +0 -437
- package/dist/esm/xlabs-store.js +0 -20
- package/dist/xlabs-store/index.esm.js +0 -1
- package/dist/xlabs-store/p-016194dc.entry.js +0 -1
- package/dist/xlabs-store/p-04a3721a.entry.js +0 -1
- package/dist/xlabs-store/p-072445b7.entry.js +0 -1
- package/dist/xlabs-store/p-0ec21454.entry.js +0 -1
- package/dist/xlabs-store/p-12b6a843.entry.js +0 -1
- package/dist/xlabs-store/p-1a81cf09.entry.js +0 -1
- package/dist/xlabs-store/p-1b019aeb.entry.js +0 -1
- package/dist/xlabs-store/p-262a0673.entry.js +0 -1
- package/dist/xlabs-store/p-34cce823.entry.js +0 -1
- package/dist/xlabs-store/p-3a9fdefe.entry.js +0 -1
- package/dist/xlabs-store/p-40036100.entry.js +0 -1
- package/dist/xlabs-store/p-45f04e8d.entry.js +0 -1
- package/dist/xlabs-store/p-48ba7c34.entry.js +0 -1
- package/dist/xlabs-store/p-48e2c26e.entry.js +0 -1
- package/dist/xlabs-store/p-4ac2e915.entry.js +0 -1
- package/dist/xlabs-store/p-4d7c2a35.entry.js +0 -1
- package/dist/xlabs-store/p-4f67cb33.entry.js +0 -1
- package/dist/xlabs-store/p-502b345e.entry.js +0 -1
- package/dist/xlabs-store/p-555c5e48.entry.js +0 -1
- package/dist/xlabs-store/p-5878525f.entry.js +0 -1
- package/dist/xlabs-store/p-5abbdca7.entry.js +0 -1
- package/dist/xlabs-store/p-6243ca69.entry.js +0 -1
- package/dist/xlabs-store/p-64e7a057.entry.js +0 -1
- package/dist/xlabs-store/p-6530d2ef.entry.js +0 -1
- package/dist/xlabs-store/p-675a39e1.entry.js +0 -1
- package/dist/xlabs-store/p-689c52ef.entry.js +0 -1
- package/dist/xlabs-store/p-69b8cb7d.entry.js +0 -1
- package/dist/xlabs-store/p-6b121c60.entry.js +0 -1
- package/dist/xlabs-store/p-6c75fc39.entry.js +0 -1
- package/dist/xlabs-store/p-6f705deb.entry.js +0 -1
- package/dist/xlabs-store/p-723d362c.entry.js +0 -1
- package/dist/xlabs-store/p-783545e3.entry.js +0 -1
- package/dist/xlabs-store/p-81fb4caf.entry.js +0 -1
- package/dist/xlabs-store/p-863dd67d.entry.js +0 -1
- package/dist/xlabs-store/p-8bcc219a.entry.js +0 -1
- package/dist/xlabs-store/p-914b0ae2.entry.js +0 -1
- package/dist/xlabs-store/p-9ac291ea.entry.js +0 -1
- package/dist/xlabs-store/p-9de03a07.entry.js +0 -1
- package/dist/xlabs-store/p-C_QdJRdB.js +0 -1
- package/dist/xlabs-store/p-Ce5L9qbY.js +0 -1
- package/dist/xlabs-store/p-DElCk9ta.js +0 -1
- package/dist/xlabs-store/p-a4223feb.entry.js +0 -1
- package/dist/xlabs-store/p-a8c2eca7.entry.js +0 -1
- package/dist/xlabs-store/p-ac9ba3aa.entry.js +0 -1
- package/dist/xlabs-store/p-bd5084b8.entry.js +0 -1
- package/dist/xlabs-store/p-bda322db.entry.js +0 -1
- package/dist/xlabs-store/p-c4c8840c.entry.js +0 -1
- package/dist/xlabs-store/p-c4d0ce0d.entry.js +0 -1
- package/dist/xlabs-store/p-cf4697bc.entry.js +0 -1
- package/dist/xlabs-store/p-d2ec3d4a.entry.js +0 -1
- package/dist/xlabs-store/p-d4d00aff.entry.js +0 -1
- package/dist/xlabs-store/p-d9d0147b.entry.js +0 -1
- package/dist/xlabs-store/p-dd930f2a.entry.js +0 -1
- package/dist/xlabs-store/p-e04836e8.entry.js +0 -1
- package/dist/xlabs-store/p-e14b5f6d.entry.js +0 -1
- package/dist/xlabs-store/p-eb1dd3c2.entry.js +0 -1
- package/dist/xlabs-store/p-f02155e4.entry.js +0 -1
- package/dist/xlabs-store/p-f1331938.entry.js +0 -1
- package/dist/xlabs-store/p-fac0b689.entry.js +0 -1
- package/dist/xlabs-store/p-fd2e1d9c.entry.js +0 -1
- package/dist/xlabs-store/p-ffba56b2.entry.js +0 -1
- package/dist/xlabs-store/p-ig_mFsVk.js +0 -2
- package/dist/xlabs-store/xlabs-store.css +0 -1
- package/dist/xlabs-store/xlabs-store.esm.js +0 -1
- /package/components/{p-XBF88YT_.js → p-BtYiIQqg.js} +0 -0
- /package/components/{p-D66tF8_2.js → p-DFADJBLL.js} +0 -0
- /package/components/{p-COpzIi1n.js → p-DM8AggMt.js} +0 -0
- /package/components/{p-BPeosvTA.js → p-RKpMhZmc.js} +0 -0
- /package/components/{p-Dgxy93Bg.js → p-iG9CbEpE.js} +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-outlined.woff2 +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-rounded.woff2 +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-solided.woff2 +0 -0
- /package/dist/{xlabs-store/p-XBF88YT_.js → xlabs/p-BtYiIQqg.js} +0 -0
- /package/dist/{xlabs-store/p-D66tF8_2.js → xlabs/p-DFADJBLL.js} +0 -0
- /package/dist/{xlabs-store/p-COpzIi1n.js → xlabs/p-DM8AggMt.js} +0 -0
- /package/dist/{xlabs-store/p-BPeosvTA.js → xlabs/p-RKpMhZmc.js} +0 -0
- /package/dist/{xlabs-store/p-Dgxy93Bg.js → xlabs/p-iG9CbEpE.js} +0 -0
|
@@ -111,7 +111,7 @@ export class XWorkflow {
|
|
|
111
111
|
}
|
|
112
112
|
this.lastMousePos = { x: clientX, y: clientY };
|
|
113
113
|
if ('shiftKey' in e && e.shiftKey) {
|
|
114
|
-
this.selectionRect = { x:
|
|
114
|
+
this.selectionRect = { x: clientX - rect.left, y: clientY - rect.top, width: 0, height: 0 };
|
|
115
115
|
this.isInteracting = true;
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
@@ -147,7 +147,10 @@ export class XWorkflow {
|
|
|
147
147
|
handleEraserAt(clientX, clientY) {
|
|
148
148
|
const rect = this.container.getBoundingClientRect(), { x: vx, y: vy, zoom } = this.flowViewport;
|
|
149
149
|
const lx = (clientX - rect.left - vx) / zoom, ly = (clientY - rect.top - vy) / zoom;
|
|
150
|
-
const node = this.flowNodes.find(n => {
|
|
150
|
+
const node = this.flowNodes.find(n => {
|
|
151
|
+
const w = n.width || 150, h = n.height || 48;
|
|
152
|
+
return lx >= n.position.x && lx <= n.position.x + w && ly >= n.position.y && ly <= n.position.y + h;
|
|
153
|
+
});
|
|
151
154
|
if (node)
|
|
152
155
|
this.service.deleteNode(node.id);
|
|
153
156
|
this.drawings = this.drawings.filter(d => {
|
|
@@ -186,8 +189,10 @@ export class XWorkflow {
|
|
|
186
189
|
if (n.id === node.id || n.type !== 'group')
|
|
187
190
|
return false;
|
|
188
191
|
const nw = n.width || 400, nh = n.height || 300;
|
|
189
|
-
return node.position.x >= n.position.x &&
|
|
190
|
-
node.position.
|
|
192
|
+
return (node.position.x >= n.position.x &&
|
|
193
|
+
node.position.x + (node.width || 150) <= n.position.x + nw &&
|
|
194
|
+
node.position.y >= n.position.y &&
|
|
195
|
+
node.position.y + (node.height || 48) <= n.position.y + nh);
|
|
191
196
|
});
|
|
192
197
|
if (potentialParent)
|
|
193
198
|
this.service.setParent(node.id, potentialParent.id);
|
|
@@ -234,13 +239,11 @@ export class XWorkflow {
|
|
|
234
239
|
};
|
|
235
240
|
render() {
|
|
236
241
|
const { x, y, zoom } = this.flowViewport, transform = `translate(${x}px, ${y}px) scale(${zoom})`;
|
|
237
|
-
return (h("div", { key: '
|
|
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()));
|
|
242
|
+
return (h("div", { key: 'a91dd40532f5f5b4ed483ae6e386bba58a4c32fc', 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: '907746c70c6498dafede5c7003c49280d382683f', class: "background-canvas" }, this.renderBackground()), h("div", { key: '4b08f3a924ffb0f32452eb890d1412ec09064868', class: "flow-renderer", style: { transform } }, h("svg", { key: '79d11a10adc62c2fda79e0d255004202282974de', class: "edges-svg" }, h("defs", { key: '88b740608559c08280829d75c96a53792636f7ff' }, h("marker", { key: '4af37c5a03d2039e429b94579de0d4abc1f74dc4', id: "arrowhead", markerWidth: "10", markerHeight: "7", refX: "9", refY: "3.5", orient: "auto" }, h("polygon", { key: '81c67a5f7f974adbe54b013cc982d367627886b0', points: "0 0, 10 3.5, 0 7", fill: "currentColor" })), h("marker", { key: 'b373d964af68271dc5dc74d2b30d4c7b342eb20b', id: "arrowhead-selected", markerWidth: "10", markerHeight: "7", refX: "9", refY: "3.5", orient: "auto" }, h("polygon", { key: 'a067eb105fcc952b3475ba694baa1c070c8f6c8f', points: "0 0, 10 3.5, 0 7", fill: "var(--x-primary-color)" }))), this.flowEdges.sort((a, b) => (a.selected ? 1 : 0) - (b.selected ? 1 : 0)).map(edge => this.renderEdge(edge)), this.renderPendingLine(), this.renderProximityPreview(), this.renderEdgeHandles()), h("div", { key: 'cb5e9f73ca6b623871b44678e1ce6312d0c70b4c', class: "nodes-layer" }, this.flowNodes.map(node => this.renderNode(node))), h("svg", { key: '7f3b9e5a58576406080264de861cec229ac6606b', 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
243
|
}
|
|
241
244
|
renderBackground() {
|
|
242
245
|
if (this.background.variant === 'dots') {
|
|
243
|
-
return
|
|
246
|
+
return h("div", { class: "dots-bg", style: { backgroundSize: `${20 * this.flowViewport.zoom}px ${20 * this.flowViewport.zoom}px` } });
|
|
244
247
|
}
|
|
245
248
|
return null;
|
|
246
249
|
}
|
|
@@ -261,7 +264,7 @@ export class XWorkflow {
|
|
|
261
264
|
return null;
|
|
262
265
|
const sp = this.getHandlePos(s, this.proximityPreview.sourceHandle, t);
|
|
263
266
|
const tp = this.getHandlePos(t, this.proximityPreview.targetHandle, s);
|
|
264
|
-
return
|
|
267
|
+
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
268
|
}
|
|
266
269
|
handleNodeClick(e, nodeId) {
|
|
267
270
|
const node = this.flowNodes.find(n => n.id === nodeId);
|
|
@@ -284,7 +287,7 @@ export class XWorkflow {
|
|
|
284
287
|
this.service.updateEdge(edgeId, { label: newLabel });
|
|
285
288
|
}
|
|
286
289
|
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:
|
|
290
|
+
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
291
|
}
|
|
289
292
|
renderEdge(edge) {
|
|
290
293
|
const s = this.flowNodes.find(n => n.id === edge.source);
|
|
@@ -300,9 +303,7 @@ export class XWorkflow {
|
|
|
300
303
|
// ✅ Multi-edge offset
|
|
301
304
|
const siblings = this.flowEdges.filter(e => e.source === edge.source && e.target === edge.target);
|
|
302
305
|
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
|
+
const offset = siblings.length > 1 ? (index - (siblings.length - 1) / 2) * 20 : 0;
|
|
306
307
|
// apply offset theo normal vector
|
|
307
308
|
if (edge.type !== 'straight') {
|
|
308
309
|
const dx = x2 - x1;
|
|
@@ -380,15 +381,15 @@ export class XWorkflow {
|
|
|
380
381
|
else {
|
|
381
382
|
const dx = x2 - x1;
|
|
382
383
|
const curvature = 0.5;
|
|
383
|
-
path = `
|
|
384
|
-
M${x1},${y1}
|
|
385
|
-
C${x1 + dx * curvature},${y1}
|
|
386
|
-
${x2 - dx * curvature},${y2}
|
|
387
|
-
${x2},${y2}
|
|
384
|
+
path = `
|
|
385
|
+
M${x1},${y1}
|
|
386
|
+
C${x1 + dx * curvature},${y1}
|
|
387
|
+
${x2 - dx * curvature},${y2}
|
|
388
|
+
${x2},${y2}
|
|
388
389
|
`;
|
|
389
390
|
}
|
|
390
391
|
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:
|
|
392
|
+
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
393
|
e.stopPropagation();
|
|
393
394
|
this.service.selectEdge(edge.id, e.ctrlKey || e.metaKey);
|
|
394
395
|
this.xEdgeClick.emit(edge);
|
|
@@ -398,27 +399,24 @@ export class XWorkflow {
|
|
|
398
399
|
'animated': edge.animated,
|
|
399
400
|
}, "marker-end": isSelected ? 'url(#arrowhead-selected)' : 'url(#arrowhead)', style: {
|
|
400
401
|
pointerEvents: 'none',
|
|
401
|
-
stroke: isSelected
|
|
402
|
-
? 'var(--x-primary-color)'
|
|
403
|
-
: (edge.style?.['stroke'] || '#b1b1b7'),
|
|
402
|
+
stroke: isSelected ? 'var(--x-primary-color)' : edge.style?.['stroke'] || '#b1b1b7',
|
|
404
403
|
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:
|
|
404
|
+
} }), 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
405
|
e.stopPropagation();
|
|
407
406
|
this.service.updateEdge(edge.id, {
|
|
408
407
|
animated: !edge.animated,
|
|
409
408
|
});
|
|
410
|
-
} }, "\u26A1"), h("button", { class: "edge-toolbar-btn", onClick:
|
|
409
|
+
} }, "\u26A1"), h("button", { class: "edge-toolbar-btn", onClick: e => {
|
|
411
410
|
e.stopPropagation();
|
|
412
411
|
this.service.deleteEdge(edge.id);
|
|
413
|
-
} }, "\uD83D\uDDD1")))), edge.label &&
|
|
414
|
-
this.renderEdgeLabel(edge, (x1 + x2) / 2, (y1 + y2) / 2)));
|
|
412
|
+
} }, "\uD83D\uDDD1")))), edge.label && this.renderEdgeLabel(edge, (x1 + x2) / 2, (y1 + y2) / 2)));
|
|
415
413
|
}
|
|
416
414
|
getHandlePos(node, handle, targetNode) {
|
|
417
415
|
// Ensure we have a width and height to calculate the midpoint/edges
|
|
418
416
|
const x = Math.round(node.position.x);
|
|
419
417
|
const y = Math.round(node.position.y);
|
|
420
|
-
const w = node.width ? Math.round(node.width) :
|
|
421
|
-
const h = node.height ? Math.round(node.height) :
|
|
418
|
+
const w = node.width ? Math.round(node.width) : node.shape === 'diamond' ? 100 : 150;
|
|
419
|
+
const h = node.height ? Math.round(node.height) : node.shape === 'diamond' ? 100 : 48;
|
|
422
420
|
if (handle === 'floating' && targetNode)
|
|
423
421
|
return this.getFloatingHandlePos(node, targetNode);
|
|
424
422
|
if (this.edgeRoutingMode === 'auto' && targetNode) {
|
|
@@ -446,11 +444,16 @@ export class XWorkflow {
|
|
|
446
444
|
}
|
|
447
445
|
// Offset slightly for handle markers (r=4)
|
|
448
446
|
switch (handle) {
|
|
449
|
-
case 'top':
|
|
450
|
-
|
|
451
|
-
case '
|
|
452
|
-
|
|
453
|
-
|
|
447
|
+
case 'top':
|
|
448
|
+
return { x: x + w / 2, y };
|
|
449
|
+
case 'right':
|
|
450
|
+
return { x: x + w, y: y + h / 2 };
|
|
451
|
+
case 'bottom':
|
|
452
|
+
return { x: x + w / 2, y: y + h };
|
|
453
|
+
case 'left':
|
|
454
|
+
return { x: x, y: y + h / 2 };
|
|
455
|
+
default:
|
|
456
|
+
return { x: x + w / 2, y: y + h / 2 };
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
getFloatingHandlePos(source, target) {
|
|
@@ -471,9 +474,9 @@ export class XWorkflow {
|
|
|
471
474
|
return { x: sc.x + r * Math.cos(angle), y: sc.y + r * Math.sin(angle) };
|
|
472
475
|
}
|
|
473
476
|
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)
|
|
477
|
+
return { x: sc.x + sw * Math.sign(dx), y: sc.y + (dy * sw) / Math.abs(dx) };
|
|
475
478
|
else
|
|
476
|
-
return { x: sc.x + (dx * sh / Math.abs(dy)
|
|
479
|
+
return { x: sc.x + (dx * sh) / Math.abs(dy), y: sc.y + sh * Math.sign(dy) };
|
|
477
480
|
}
|
|
478
481
|
renderEdgeHandles() {
|
|
479
482
|
return this.flowEdges
|
|
@@ -485,7 +488,7 @@ export class XWorkflow {
|
|
|
485
488
|
return null;
|
|
486
489
|
const sPos = this.getHandlePos(s, edge.sourceHandle, t);
|
|
487
490
|
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:
|
|
491
|
+
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
492
|
});
|
|
490
493
|
}
|
|
491
494
|
startEdgeReconnect(e, edge, type) {
|
|
@@ -498,7 +501,14 @@ export class XWorkflow {
|
|
|
498
501
|
return;
|
|
499
502
|
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
503
|
this.service.deleteEdge(edge.id);
|
|
501
|
-
this.pendingConnection = {
|
|
504
|
+
this.pendingConnection = {
|
|
505
|
+
source: otherId,
|
|
506
|
+
handle: (type === 'source' ? edge.targetHandle : edge.sourceHandle) || 'floating',
|
|
507
|
+
startX: otherPos.x,
|
|
508
|
+
startY: otherPos.y,
|
|
509
|
+
mouseX: (cx - rect.left - x) / zoom,
|
|
510
|
+
mouseY: (cy - rect.top - y) / zoom,
|
|
511
|
+
};
|
|
502
512
|
this.startConnectionHandler(otherId, type === 'source' ? 'target' : 'source');
|
|
503
513
|
}
|
|
504
514
|
renderNode(node) {
|
|
@@ -506,30 +516,35 @@ export class XWorkflow {
|
|
|
506
516
|
const isFocused = this.focusedNodeId === node.id;
|
|
507
517
|
const shapeClass = node.shape ? `shape-${node.shape}` : '';
|
|
508
518
|
return (h("div", { key: node.id, "data-id": node.id, class: {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
519
|
+
node: true,
|
|
520
|
+
selected: isSelected,
|
|
521
|
+
dragging: this.draggingNodeId === node.id,
|
|
522
|
+
collapsed: node.isCollapsed,
|
|
513
523
|
[node.className]: !!node.className,
|
|
514
524
|
[shapeClass]: !!shapeClass,
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
[`type-${node.type}`]: true
|
|
525
|
+
focused: isFocused,
|
|
526
|
+
turbo: this.turboMode,
|
|
527
|
+
[`type-${node.type}`]: true,
|
|
518
528
|
}, style: {
|
|
519
529
|
left: `${Math.round(node.position.x)}px`,
|
|
520
530
|
top: `${Math.round(node.position.y)}px`,
|
|
521
|
-
width: node.width ? `${node.width}px` :
|
|
522
|
-
height: node.height ? `${node.height}px` :
|
|
531
|
+
width: node.width ? `${node.width}px` : node.shape === 'diamond' ? '100px' : '150px',
|
|
532
|
+
height: node.height ? `${node.height}px` : node.shape === 'diamond' ? '100px' : '48px',
|
|
523
533
|
transform: `rotate(${node.rotation || 0}deg) translateZ(0)`,
|
|
524
|
-
opacity:
|
|
534
|
+
opacity: this.focusedNodeId && !isFocused && node.parentId !== this.focusedNodeId ? '0.3' : '1',
|
|
525
535
|
zIndex: isSelected ? '1000' : (node.zIndex || 10).toString(),
|
|
526
|
-
...(node.style || {})
|
|
527
|
-
}, onMouseDown:
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
h("
|
|
531
|
-
|
|
532
|
-
|
|
536
|
+
...(node.style || {}),
|
|
537
|
+
}, 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 => {
|
|
538
|
+
e.stopPropagation();
|
|
539
|
+
this.service.toggleNodeCollapse(node.id);
|
|
540
|
+
} }, 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
|
|
541
|
+
? node.handles.map(h => this.renderCustomHandle(node, h))
|
|
542
|
+
: [
|
|
543
|
+
h("div", { key: "top", class: "handle top", onMouseDown: e => this.startConnection(e, node.id, 'top') }),
|
|
544
|
+
h("div", { key: "right", class: "handle right", onMouseDown: e => this.startConnection(e, node.id, 'right') }),
|
|
545
|
+
h("div", { key: "bottom", class: "handle bottom", onMouseDown: e => this.startConnection(e, node.id, 'bottom') }),
|
|
546
|
+
h("div", { key: "left", class: "handle left", onMouseDown: e => this.startConnection(e, node.id, 'left') }),
|
|
547
|
+
], 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
548
|
}
|
|
534
549
|
shouldShowToolbar(node) {
|
|
535
550
|
if (!this.nodeToolbarVisible)
|
|
@@ -545,7 +560,7 @@ export class XWorkflow {
|
|
|
545
560
|
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
561
|
}
|
|
547
562
|
renderCustomHandle(node, h) {
|
|
548
|
-
return (h("div", { class: {
|
|
563
|
+
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
564
|
}
|
|
550
565
|
handleNodeDragStart(e, node) {
|
|
551
566
|
if (node.dragHandle && !e.target.closest(node.dragHandle)) {
|
|
@@ -555,7 +570,7 @@ export class XWorkflow {
|
|
|
555
570
|
e.stopPropagation();
|
|
556
571
|
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
557
572
|
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
558
|
-
this.service.selectNode(node.id,
|
|
573
|
+
this.service.selectNode(node.id, 'shiftKey' in e && e.shiftKey);
|
|
559
574
|
this.startNodeDrag(clientX, clientY, node);
|
|
560
575
|
}
|
|
561
576
|
startNodeDrag(startX, startY, node) {
|
|
@@ -617,7 +632,7 @@ export class XWorkflow {
|
|
|
617
632
|
const cy = 'touches' in me ? me.touches[0].clientY : me.clientY;
|
|
618
633
|
const dw = (cx - startX) / zoom;
|
|
619
634
|
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));
|
|
635
|
+
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
636
|
};
|
|
622
637
|
const onUp = () => {
|
|
623
638
|
document.removeEventListener('mousemove', onMove);
|
|
@@ -635,7 +650,7 @@ export class XWorkflow {
|
|
|
635
650
|
const rect = this.container.getBoundingClientRect(), { x: vx, y: vy, zoom } = this.flowViewport;
|
|
636
651
|
const center = {
|
|
637
652
|
x: node.position.x + (node.width || 150) / 2,
|
|
638
|
-
y: node.position.y + (node.height || 48) / 2
|
|
653
|
+
y: node.position.y + (node.height || 48) / 2,
|
|
639
654
|
};
|
|
640
655
|
const onMove = (me) => {
|
|
641
656
|
const cx = 'touches' in me ? me.touches[0].clientX : me.clientX;
|
|
@@ -685,7 +700,7 @@ export class XWorkflow {
|
|
|
685
700
|
left: `${Math.min(x, x + width)}px`,
|
|
686
701
|
top: `${Math.min(y, y + height)}px`,
|
|
687
702
|
width: `${Math.abs(width)}px`,
|
|
688
|
-
height: `${Math.abs(height)}px
|
|
703
|
+
height: `${Math.abs(height)}px`,
|
|
689
704
|
} }));
|
|
690
705
|
}
|
|
691
706
|
renderContextMenu() {
|
|
@@ -700,10 +715,10 @@ export class XWorkflow {
|
|
|
700
715
|
id: `node-${Date.now()}`,
|
|
701
716
|
position: {
|
|
702
717
|
x: (clientX - rect.left - x) / zoom,
|
|
703
|
-
y: (clientY - rect.top - y) / zoom
|
|
718
|
+
y: (clientY - rect.top - y) / zoom,
|
|
704
719
|
},
|
|
705
720
|
data: { label: 'New Node' },
|
|
706
|
-
zIndex: 10
|
|
721
|
+
zIndex: 10,
|
|
707
722
|
});
|
|
708
723
|
}
|
|
709
724
|
startConnection(e, nodeId, handle) {
|
|
@@ -726,7 +741,7 @@ export class XWorkflow {
|
|
|
726
741
|
startX: hPos.x,
|
|
727
742
|
startY: hPos.y,
|
|
728
743
|
mouseX: (clientX - rect.left - x) / zoom,
|
|
729
|
-
mouseY: (clientY - rect.top - y) / zoom
|
|
744
|
+
mouseY: (clientY - rect.top - y) / zoom,
|
|
730
745
|
};
|
|
731
746
|
this.proximityPreview = null; // Clear any existing previews
|
|
732
747
|
this.startConnectionHandler(nodeId, 'source');
|
|
@@ -745,7 +760,7 @@ export class XWorkflow {
|
|
|
745
760
|
return lx >= n.position.x - padding && lx <= n.position.x + w && ly >= n.position.y - padding && ly <= n.position.y + h;
|
|
746
761
|
});
|
|
747
762
|
if (targetNode && targetNode.id !== nodeId) {
|
|
748
|
-
const path = de.composedPath(), targetHandleEl = path.find(el => el.classList && el.classList.contains('handle')), targetHandle = targetHandleEl ?
|
|
763
|
+
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
764
|
const connection = handleType === 'source'
|
|
750
765
|
? { source: nodeId, target: targetNode.id, sourceHandle: pending.handle, targetHandle }
|
|
751
766
|
: { source: targetNode.id, target: nodeId, sourceHandle: targetHandle, targetHandle: pending.handle };
|
|
@@ -775,7 +790,7 @@ export class XWorkflow {
|
|
|
775
790
|
points: this.tool === 'freehand' ? [{ x, y }] : [],
|
|
776
791
|
width: 0,
|
|
777
792
|
height: 0,
|
|
778
|
-
style: { stroke: '#111', strokeWidth: '2', fill: 'none' }
|
|
793
|
+
style: { stroke: '#111', strokeWidth: '2', fill: 'none' },
|
|
779
794
|
};
|
|
780
795
|
}
|
|
781
796
|
renderDrawing(d) {
|
|
@@ -783,7 +798,7 @@ export class XWorkflow {
|
|
|
783
798
|
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
799
|
}
|
|
785
800
|
else {
|
|
786
|
-
return
|
|
801
|
+
return h("path", { d: d.points.map((p, i) => `${i === 0 ? 'M' : 'L'}${p.x},${p.y}`).join(' '), style: d.style });
|
|
787
802
|
}
|
|
788
803
|
}
|
|
789
804
|
checkProximity(nodeId, nx, ny) {
|
|
@@ -824,7 +839,7 @@ export class XWorkflow {
|
|
|
824
839
|
return lines;
|
|
825
840
|
}
|
|
826
841
|
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" })));
|
|
842
|
+
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
843
|
}
|
|
829
844
|
static get is() { return "x-workflow"; }
|
|
830
845
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
--x-color-text-label: rgba(0, 0, 0, 0.65);
|
|
97
97
|
--x-color-text-description: rgba(0, 0, 0, 0.45);
|
|
98
98
|
--x-color-text-light-solid: #ffffff;
|
|
99
|
+
--x-color-text-processing: #ffffff;
|
|
99
100
|
/** Background Colors **/
|
|
100
101
|
--x-color-bg-container: #ffffff;
|
|
101
102
|
--x-color-bg-elevated: #ffffff;
|
|
@@ -138,8 +139,10 @@
|
|
|
138
139
|
--x-color-light-shade: #d7d8da;
|
|
139
140
|
--x-color-light-tint: #f5f6f9;
|
|
140
141
|
/** Font Family **/
|
|
141
|
-
--x-font-family:
|
|
142
|
-
|
|
142
|
+
--x-font-family:
|
|
143
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
144
|
+
'Noto Color Emoji';
|
|
145
|
+
--x-font-family-code: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
143
146
|
/** Font Sizes **/
|
|
144
147
|
--x-font-size: 14px;
|
|
145
148
|
--x-font-size-sm: 12px;
|
|
@@ -179,7 +179,7 @@ export class XWorkflowBuilder {
|
|
|
179
179
|
} }, h("x-icon", { name: this.gridVisible ? 'grid_on' : 'grid_off', size: 16 }))))));
|
|
180
180
|
}
|
|
181
181
|
renderRightSider() {
|
|
182
|
-
return (h("x-sider", { width: 320, theme: "light", class: "properties-sider" }, h("div", { class: "sider-header" }, h("x-icon", { name: "tune", size: 18 }), h("x-typography", { type: "title", level: 4, style: { margin: '0' } }, "Properties")), this.selectedNode ? (h("div", { class: "node-editor" }, h("div", { class: "selected-node-info" }, h("x-tag", { color: "processing" }, this.selectedNode.type?.toUpperCase()), h("x-typography", { type: "text", strong: true }, this.selectedNode.id)), h("div", { class: "property-sections" }, h("div", { class: "property-section-title" }, "Content"), this.renderContentTab(), h("x-divider", { style: { margin: '16px 0' } }), h("div", { class: "property-section-title" }, "Design"), this.renderDesignTab(), h("x-divider", { style: { margin: '16px 0' } }), h("div", { class: "property-section-title" }, "Layout"), this.renderLayoutTab()))) : this.selectedEdge ? (() => {
|
|
182
|
+
return (h("x-sider", { width: 320, theme: "light", class: "properties-sider" }, h("div", { class: "sider-header" }, h("x-icon", { name: "tune", size: 18 }), h("x-typography", { type: "title", level: 4, style: { margin: '0' } }, "Properties")), this.selectedNode ? (h("div", { class: "node-editor" }, h("div", { class: "selected-node-info" }, h("x-tag", { color: "processing" }, this.selectedNode.type?.toUpperCase()), h("x-typography", { type: "text", strong: true }, this.selectedNode.id)), h("div", { class: "property-sections" }, h("div", { class: "property-section-title" }, "Content"), this.renderContentTab(), h("x-divider", { style: { margin: '16px 0' } }), h("div", { class: "property-section-title" }, "Design"), this.renderDesignTab(), h("x-divider", { style: { margin: '16px 0' } }), h("div", { class: "property-section-title" }, "Layout"), this.renderLayoutTab()))) : this.selectedEdge ? ((() => {
|
|
183
183
|
const edge = this.selectedEdge;
|
|
184
184
|
const style = edge.style || {};
|
|
185
185
|
const strokeColor = style['stroke'] || '#b1b1b7';
|
|
@@ -190,7 +190,7 @@ export class XWorkflowBuilder {
|
|
|
190
190
|
const val = ev.detail.value;
|
|
191
191
|
this.edges = this.edges.map(e => (e.id === edge.id ? { ...e, label: val } : e));
|
|
192
192
|
this.selectedEdge = { ...edge, label: val };
|
|
193
|
-
} })), h("x-form-item", { label:
|
|
193
|
+
} })), h("x-form-item", { label: 'Source \u2192 Target' }, h("x-typography", { type: "text", disabled: true }, this.selectedEdge.source, " ", '\u2192', " ", this.selectedEdge.target)))), h("x-divider", { style: { margin: '16px 0' } }), h("div", { class: "property-section-title" }, "Design"), h("x-card", { bordered: false, size: "small", type: "inner" }, h("x-form", { layout: "vertical" }, h("x-form-item", { label: "Edge Type" }, h("x-select", { value: this.selectedEdge.type || 'default', onXChange: (ev) => {
|
|
194
194
|
const val = ev.detail.value;
|
|
195
195
|
this.edges = this.edges.map(e => (e.id === edge.id ? { ...e, type: val } : e));
|
|
196
196
|
this.selectedEdge = { ...edge, type: val };
|
|
@@ -223,7 +223,7 @@ export class XWorkflowBuilder {
|
|
|
223
223
|
this.edges = this.edges.map(e => (e.id === edge.id ? { ...e, targetHandle: val } : e));
|
|
224
224
|
this.selectedEdge = { ...edge, targetHandle: val };
|
|
225
225
|
} }, h("x-select-option", { value: "top" }, "Top"), h("x-select-option", { value: "right" }, "Right"), h("x-select-option", { value: "bottom" }, "Bottom"), h("x-select-option", { value: "left" }, "Left"))))))))));
|
|
226
|
-
})() : (h("div", { class: "empty-selection" }, h("x-result", { status: "info", resultTitle: "No Selection", subTitle: "Select a node or edge to edit." }, h("div", { slot: "extra" }, h("x-button", { type: "primary", size: "small", onXClick: () => this.addNode('default') }, "Add Node"))))), h("div", { class: "global-config" }, h("x-divider", { orientation: "left" }, "Global Settings"), h("x-form", { layout: "vertical", size: "small" }, h("x-row", { gutter: [0, 16] }, h("x-col", { span: 24 }, h("x-form-item", { label: "Routing Mode" }, h("x-segmented", { value: this.edgeRoutingMode, options: [
|
|
226
|
+
})()) : (h("div", { class: "empty-selection" }, h("x-result", { status: "info", resultTitle: "No Selection", subTitle: "Select a node or edge to edit." }, h("div", { slot: "extra" }, h("x-button", { type: "primary", size: "small", onXClick: () => this.addNode('default') }, "Add Node"))))), h("div", { class: "global-config" }, h("x-divider", { orientation: "left" }, "Global Settings"), h("x-form", { layout: "vertical", size: "small" }, h("x-row", { gutter: [0, 16] }, h("x-col", { span: 24 }, h("x-form-item", { label: "Routing Mode" }, h("x-segmented", { value: this.edgeRoutingMode, options: [
|
|
227
227
|
{ label: 'Fixed', value: 'fixed' },
|
|
228
228
|
{ label: 'Auto', value: 'auto' },
|
|
229
229
|
], onXChange: (ev) => (this.edgeRoutingMode = ev.detail) }))), h("x-col", { span: 24 }, h("x-form-item", { label: "Toolbar Mode" }, h("x-select", { value: this.nodeToolbarMode, onXChange: (ev) => (this.nodeToolbarMode = ev.detail.value) }, h("x-select-option", { value: "selected" }, "On Select"), h("x-select-option", { value: "always" }, "Always"), h("x-select-option", { value: "hover" }, "On Hover")))), h("x-col", { span: 24 }, h("x-form-item", { label: "Snap to Grid" }, h("x-select", { value: this.snapToGrid.toString(), onXChange: (ev) => (this.snapToGrid = parseInt(ev.detail.value)) }, h("x-select-option", { value: "0" }, "Off"), h("x-select-option", { value: "10" }, "10px"), h("x-select-option", { value: "20" }, "20px"), h("x-select-option", { value: "50" }, "50px")))), h("x-col", { span: 24 }, h("x-form-item", { label: "Grid Style" }, h("x-segmented", { value: this.gridType, options: [
|
|
@@ -316,9 +316,9 @@ export class XWorkflowBuilder {
|
|
|
316
316
|
return (h("x-card", { bordered: false, size: "small", type: "inner" }, h("x-form", { layout: "vertical" }, h("x-form-item", { label: "Z-Index" }, h("x-input-number", { value: node.zIndex || 10, onXChange: (ev) => (this.nodes = this.nodes.map(n => (n.id === node.id ? { ...n, zIndex: ev.detail.value } : n))) })), h("x-form-item", { label: "Resizable" }, h("x-switch", { checked: node.resizable, onXChange: (ev) => (this.nodes = this.nodes.map(n => (n.id === node.id ? { ...n, resizable: ev.detail } : n))) })))));
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: 'bad55b93956829853806a37b5bbd79987568b58e' }, h("x-layout", { key: '3b9b067fd110de263753472a187a2fded19ed4c7', fixed: true, class: "builder-root" }, h("x-header", { key: '5f07eb160fd29c7e9b4899e6ed08e684e37d923b', class: "builder-header" }, h("x-flex", { key: 'ebdfef5e3a35e3056f530ecef9e31bce6994440b', align: "center", justify: "space-between" }, h("x-space", { key: '6367f580ccca25457a2db77daf85235d4240632c', size: "middle", align: "center" }, h("x-flex", { key: '06d66e958bb3c3c4216ed349e401198b0ee6749e', align: "center", gap: "8" }, h("x-icon", { key: 'd58b467293e470943ae59778be6f64f3d891b503', name: "hub", size: 24, color: "var(--x-primary-color)" }), h("x-typography", { key: 'c97debb400798656775483cb3458e6764ab980b6', type: "title", level: 5, style: { margin: '0' } }, "XLabs Workflow Pro"))), h("x-space", { key: '67cd752411f4fabf4bb2f98526b03d09f1640f29', size: "small", align: "center" }, h("x-flex", { key: '5be6c491830ca000ddba7d949beb735c7a4ff232', align: "center", gap: "8" }, h("x-tooltip", { key: '6c879642b90f93320aea43ba2268df23011eea4a', tooltipTitle: "Import workflow from JSON" }, h("x-button", { key: '4637d288d27bce4bc89ebac163daed26ad03e232', type: "default", onXClick: (_ev) => {
|
|
320
320
|
this.importModalVisible = true;
|
|
321
|
-
} }, "Import")), h("x-dropdown", { key: '
|
|
321
|
+
} }, "Import")), h("x-dropdown", { key: '2c0fb034f11b46db6b85dd8c41d29d5517459832' }, h("x-button", { key: '43d7ab08abffbaef5207ba0f97a64b2d700e4bc7', type: "default", slot: "trigger" }, "Export ", h("x-icon", { key: 'c560ac02985ba51750878da346ecc449af1a19c2', name: "expand_more" })), h("x-menu", { key: '9ff6ec6c9eb0dfc240a27694a53557f60108fd39', slot: "overlay" }, h("x-menu-item", { key: 'a22685b9abd02be69200827e342ad4e2610b041b', onClick: () => this.exportJson() }, h("x-icon", { key: 'a9d371391ebde36105404e205e42507a0f2768a6', name: "json" }), " Export JSON"), h("x-menu-item", { key: '50cbd839196d85b24542ecd18f43dbba8933542a', onClick: () => this.exportAsImage() }, h("x-icon", { key: '252d7a4159d9677a09edc0658b210727c3bf02ef', name: "image" }), " Export PNG"))), h("x-divider", { key: '1f710d9b464ebb8aa74b438ddc4c354ed3075eb4', type: "vertical" }), h("x-tooltip", { key: '816c9686282cabff3f7d1fd39f36bb354b432738', tooltipTitle: "Toggle Dark/Light Mode" }, h("x-button", { key: '195ab847fdb73a2ef10885a95919b2eb266bd173', type: "text", onXClick: () => this.handleThemeToggle() }, h("x-icon", { key: '81a935b0a3a0cbf429e7937ba0ee08b97a3fb75f', name: this.theme === 'light' ? 'dark_mode' : 'light_mode' }))), h("x-flex", { key: '2dffa71677ca04f2a15126d4535fdfd0fa332d30', align: "center", gap: "16" }, h("x-flex", { key: 'f25e325f1fcecb12c7abac967b6b892965b92e25', align: "center", gap: "8" }, h("span", { key: '3cd32970aca0f4cef1e2f8361ea094c8c2e2e5df', style: { fontSize: '12px', color: '#64748b' } }, "Turbo"), h("x-switch", { key: '0427d53bf97b3af731e46d2d5c43a525abae156a', checked: this.turboMode, onXChange: (e) => (this.turboMode = e.detail) })), h("x-tooltip", { key: 'b6d92e19a956fb1c4767bbcaf74afc20a5f5d50c', tooltipTitle: "Force Layout" }, h("x-button", { key: 'cd70fe9412ab728a8f73c694b77b609865874307', type: "text", onXClick: () => this.handleForceLayout() }, h("x-icon", { key: '9f7b3245dd8c9ac1eb3784e4f41aee1f39b121f2', name: "auto_graph" }))), h("x-tooltip", { key: 'c0298e14a86adf9a2d131b1403b87e170ba39450', tooltipTitle: "Toggle Node Toolbar" }, h("x-button", { key: '432d0bbf939608fa797aa947b513c742203d655e', type: this.nodeToolbarVisible ? 'primary' : 'text', size: "small", onXClick: () => (this.nodeToolbarVisible = !this.nodeToolbarVisible) }, h("x-icon", { key: 'a1e36f1ca9b47e70c20af5fb833aaf4f531e69d9', name: "construction" })))), h("x-button", { key: 'baa2504bf8c2cf749f93189b67d06e989e202bd0', type: "primary", onXClick: () => this.showMessage('Workflow saved to server!', 'success') }, "Save Workflow"))))), h("x-layout", { key: '2fc53708c53e15d603df5c61efa6854c6dfa6a9a', hasSiderProp: true, class: "builder-main" }, this.renderLeftSider(), h("x-content", { key: '7a8e94ea2d279884c3a375e40a31740237b86589', class: "canvas-content" }, h("div", { key: 'd77d3ee7f9a5d37089514b24681db10473734bca', class: "canvas-wrapper" }, h("x-workflow", { key: 'e1f650c9c8e9796c3ddc1470c05e15f37c6dd523', ref: el => (this.workflow = el), nodes: this.nodes, edges: this.edges, tool: this.activeTool, theme: this.theme, nodeToolbarVisible: this.nodeToolbarVisible, nodeToolbarMode: this.nodeToolbarMode, edgeRoutingMode: this.edgeRoutingMode, ...{ turboMode: this.turboMode }, snapToGridValue: this.snapToGrid, background: { variant: this.gridVisible ? (this.gridType === 'dots' ? 'dots' : 'lines') : 'dots' }, onXNodeClick: ev => this.handleNodeClick(ev), onXEdgeClick: ev => this.handleEdgeClick(ev.detail), onXNodesChange: ev => {
|
|
322
322
|
this.nodes = ev.detail;
|
|
323
323
|
const sel = this.nodes.find(n => n.selected);
|
|
324
324
|
if (sel) {
|
|
@@ -342,7 +342,7 @@ export class XWorkflowBuilder {
|
|
|
342
342
|
const workflow = this.el.shadowRoot?.querySelector('x-workflow');
|
|
343
343
|
if (workflow?.selectedEdges?.length === 0)
|
|
344
344
|
this.selectedEdge = null;
|
|
345
|
-
} }), this.renderFloatingControls(), h("x-float-button", { key: '
|
|
345
|
+
} }), this.renderFloatingControls(), h("x-float-button", { key: '61b3edaec3ec6217811cee9569eec3aa24abd4bc', tooltip: "Recenter", onXClick: () => this.showMessage('Recenter logic here', 'info') }, h("x-icon", { key: 'bf5966e6d4b4e09c327428f7870de5105580a2bf', slot: "icon", name: "center_focus_weak" })), h("x-float-button", { key: '60e57ddc7f6d7397d0b6a68c861e1f936c7823ac', tooltip: "Help", onXClick: () => this.showMessage('Workflow Builder Help', 'info') }, h("x-icon", { key: 'd554dabe7e7775d952a6f75dd0b44be0b3a4bdc8', slot: "icon", name: "help_outline" })))), this.renderRightSider()), h("x-footer", { key: 'f62458cda16b13ae60dfec840ff10aa96e8dcb12', class: "builder-footer" }, h("x-space", { key: 'e52e51e2bfd2be5d5149ac9104b4e0657a8fc3f4', size: "middle" }, h("x-badge", { key: '3a80ba4fc6f8791505ca49ea9c5e0be24e21eefb', status: "processing", text: `Nodes: ${this.nodes.length}` }), h("x-divider", { key: '5f986a59b01d30b0566473d250e57393998871ae', type: "vertical" }), h("x-badge", { key: 'bea01f78b597bcb78b92503ca466e29e554d4caa', status: "warning", text: `Edges: ${this.edges.length}` }), h("x-divider", { key: '6cb5bb05eb06728b5fc90d7528b436a1d383e36d', type: "vertical" }), h("x-typography", { key: 'a1862f0446972fd52d80eee786fe4b6a5715327c', type: "text", class: "viewport-info" }, "Zoom: ", Math.round(this.viewport.zoom * 100), "% | X: ", Math.round(this.viewport.x), " Y: ", Math.round(this.viewport.y))), h("div", { key: '9e9871f08fa8bfe9bb6d2924df54ef070d25ab25', class: "footer-status" }, h("x-typography", { key: '44d202659a060d227c591054b90655e6ca005346', type: "text" }, "System Ready")))), h("div", { key: '3520e2845da297cd47c8f7e5b63cd342988d9467', class: "message-container" }, this.messages.map(msg => (h("x-message", { content: msg.content, type: msg.type, onXClose: () => this.handleMessageClose(msg.id) })))), h("x-modal", { key: '879da576db1d6993986517c185c447ad758ffc0e', visible: this.importModalVisible, title: "Import Workflow Definition", onXOk: () => this.handleImport(), onXCancel: () => (this.importModalVisible = false), okText: "Import Now", cancelText: "Cancel" }, h("x-alert", { key: '017ecd3bcee9349df03e9cea3dc3db23429e3e79', message: "Warning", description: "Importing a new JSON will overwrite your current workflow state.", type: "warning", showIcon: true, style: { marginBottom: '16px' } }), h("x-typography", { key: 'd7e9cb287bb486b2d3d0067acb07294dfd19dd81', type: "text" }, "Paste your JSON definition below:"), h("x-textarea", { key: '94f865b191d3fedf2f6f942c87061aa150a8dbcf', rows: 12, placeholder: '{ "nodes": [...], "edges": [...] }', value: this.importJson, onXChange: (ev) => (this.importJson = ev.detail) }))));
|
|
346
346
|
}
|
|
347
347
|
static get is() { return "x-workflow-builder"; }
|
|
348
348
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/index.js
CHANGED
|
@@ -3,3 +3,5 @@ export { message } from './components/x-message/message-service';
|
|
|
3
3
|
export { Modal as modal } from './components/x-modal/modal-service';
|
|
4
4
|
export { notification } from './components/x-notification/notification-service';
|
|
5
5
|
export { SchemaBuilder } from './components/x-form-builder/services/schema/schema-builder';
|
|
6
|
+
// X-Icon Types
|
|
7
|
+
export { Icons } from './components/x-icon/icons';
|
|
@@ -12,7 +12,20 @@ export default {
|
|
|
12
12
|
placeholder: 'Огноо сонгох',
|
|
13
13
|
weekDays: ['Ня', 'Да', 'Мя', 'Ла', 'Пү', 'Ба', 'Бя'],
|
|
14
14
|
monthsShort: ['1-р сар', '2-р сар', '3-р сар', '4-р сар', '5-р сар', '6-р сар', '7-р сар', '8-р сар', '9-р сар', '10-р сар', '11-р сар', '12-р сар'],
|
|
15
|
-
monthsFull: [
|
|
15
|
+
monthsFull: [
|
|
16
|
+
'Нэгдүгээр сар',
|
|
17
|
+
'Хоёрдугаар сар',
|
|
18
|
+
'Гуравдугаар сар',
|
|
19
|
+
'Дөрөвдүгээр сар',
|
|
20
|
+
'Тавдугаар сар',
|
|
21
|
+
'Зургаадугаар сар',
|
|
22
|
+
'Долоодугаар сар',
|
|
23
|
+
'Наймдугаар сар',
|
|
24
|
+
'Есдүгээр сар',
|
|
25
|
+
'Аравдугаар сар',
|
|
26
|
+
'Арваннэгдүгээр сар',
|
|
27
|
+
'Арванхоёрдугаар сар',
|
|
28
|
+
],
|
|
16
29
|
quarters: [
|
|
17
30
|
{ label: 'Q1', months: '1-р - 3-р сар' },
|
|
18
31
|
{ label: 'Q2', months: '4-р - 6-р сар' },
|
|
@@ -35,14 +35,14 @@ export function getLocaleData(code) {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
|
-
* import { setLocale } from '@xlabs/core/locales';
|
|
38
|
+
* import { setLocale } from '@xlabs-store/core/locales';
|
|
39
39
|
* setLocale('vi_VN');
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
export function setLocale(code) {
|
|
43
43
|
currentLocaleCode = code;
|
|
44
44
|
const data = getLocaleData(code);
|
|
45
|
-
listeners.forEach(
|
|
45
|
+
listeners.forEach(fn => fn(currentLocaleCode, data));
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Register a custom locale.
|
|
@@ -53,7 +53,7 @@ export function setLocale(code) {
|
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
|
-
* import { registerLocale } from '@xlabs/core/locales';
|
|
56
|
+
* import { registerLocale } from '@xlabs-store/core/locales';
|
|
57
57
|
* registerLocale('ja_JP', {
|
|
58
58
|
* locale: 'ja',
|
|
59
59
|
* Modal: { okText: 'はい', cancelText: 'いいえ', justOkText: 'はい' },
|
|
@@ -163,12 +163,7 @@ function interpolate(message, params) {
|
|
|
163
163
|
function deepMerge(target, source) {
|
|
164
164
|
const output = { ...target };
|
|
165
165
|
for (const key of Object.keys(source)) {
|
|
166
|
-
if (source[key] &&
|
|
167
|
-
typeof source[key] === 'object' &&
|
|
168
|
-
!Array.isArray(source[key]) &&
|
|
169
|
-
target[key] &&
|
|
170
|
-
typeof target[key] === 'object' &&
|
|
171
|
-
!Array.isArray(target[key])) {
|
|
166
|
+
if (source[key] && typeof source[key] === 'object' && !Array.isArray(source[key]) && target[key] && typeof target[key] === 'object' && !Array.isArray(target[key])) {
|
|
172
167
|
output[key] = deepMerge(target[key], source[key]);
|
|
173
168
|
}
|
|
174
169
|
else {
|