@xlabs-store/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/components/index.d.ts +35 -0
- package/components/index.js +1 -0
- package/components/p-5c86X8JO.js +1 -0
- package/components/p-6KpqCGp9.js +1 -0
- package/components/p-ADwHM_jT.js +1 -0
- package/components/p-AgSyA7Ia.js +1 -0
- package/components/p-B-7Hwizp.js +1 -0
- package/components/p-B-ClGFfy.js +1 -0
- package/components/p-B4R9Mtmk.js +1 -0
- package/components/p-B4rO7Sgt.js +1 -0
- package/components/p-B5Syz0fw.js +1 -0
- package/components/p-B6p-mzW-.js +1 -0
- package/components/p-B8SZP5Xz.js +1 -0
- package/components/p-BBGHXZqR.js +1 -0
- package/components/p-BHLvuyOq.js +1 -0
- package/components/p-BM-ap7lt.js +1 -0
- package/components/p-BOCR5Zk0.js +1 -0
- package/components/p-BPeosvTA.js +1 -0
- package/components/p-BRBrLtOz.js +1 -0
- package/components/p-BSRP2TGa.js +1 -0
- package/components/p-BUjRcJoK.js +1 -0
- package/components/p-BVeQ5W_G.js +1 -0
- package/components/p-BVnVlCcd.js +1 -0
- package/components/p-BZQcq9R_.js +1 -0
- package/components/p-BeIFU-wn.js +1 -0
- package/components/p-BkEgl31q.js +1 -0
- package/components/p-BkPJ1Whr.js +1 -0
- package/components/p-BkevSugc.js +1 -0
- package/components/p-BkiOFW3H.js +1 -0
- package/components/p-BskMfHyY.js +1 -0
- package/components/p-Bu2JqZs8.js +1 -0
- package/components/p-BvjR2Q5Q.js +1 -0
- package/components/p-Bz7MhZ4K.js +1 -0
- package/components/p-C3gvR6nN.js +1 -0
- package/components/p-C70KKm8p.js +1 -0
- package/components/p-C7csgUoA.js +1 -0
- package/components/p-CAPfC5Vn.js +1 -0
- package/components/p-CEBSDVyp.js +1 -0
- package/components/p-CFB6xkAX.js +1 -0
- package/components/p-CGIxdOEm.js +1 -0
- package/components/p-CGYOWZnh.js +1 -0
- package/components/p-CHRrsVXB.js +1 -0
- package/components/p-CKUzvJue.js +1 -0
- package/components/p-CKVSyuIH.js +1 -0
- package/components/p-COpzIi1n.js +1 -0
- package/components/p-CRBPzT4B.js +1 -0
- package/components/p-CSfrs76m.js +1 -0
- package/components/p-C_ZBjXFP.js +1 -0
- package/components/p-Cd919NAP.js +1 -0
- package/components/p-Ce32Mo_Q.js +1 -0
- package/components/p-Ce5L9qbY.js +1 -0
- package/components/p-CeBfFEIa.js +1 -0
- package/components/p-CfhgoXyB.js +1 -0
- package/components/p-Ck6SW8G3.js +1 -0
- package/components/p-Co3Y9VjQ.js +1 -0
- package/components/p-D66tF8_2.js +1 -0
- package/components/p-D7ijqXRY.js +1 -0
- package/components/p-D7n-26Q5.js +1 -0
- package/components/p-D8ew7Rgv.js +1 -0
- package/components/p-DBk4T-b-.js +1 -0
- package/components/p-DD-W_fMF.js +1 -0
- package/components/p-DElCk9ta.js +1 -0
- package/components/p-DEumEVI3.js +1 -0
- package/components/p-DGqQ8PT4.js +1 -0
- package/components/p-DJ1WhSJ4.js +1 -0
- package/components/p-DOxXxhXb.js +1 -0
- package/components/p-DRa4o4c6.js +1 -0
- package/components/p-DTlSrH8_.js +1 -0
- package/components/p-DTvD0UO5.js +1 -0
- package/components/p-DVz50Dd3.js +1 -0
- package/components/p-DZFphzg1.js +1 -0
- package/components/p-DZPUUptR.js +1 -0
- package/components/p-D_xaGiZU.js +1 -0
- package/components/p-DaL42JUi.js +1 -0
- package/components/p-DbRpEXwX.js +1 -0
- package/components/p-DcRlYBIl.js +1 -0
- package/components/p-Dg0xgMke.js +1 -0
- package/components/p-Dgxy93Bg.js +1 -0
- package/components/p-Dky_8i8S.js +1 -0
- package/components/p-DlwlBBr4.js +1 -0
- package/components/p-DoTf8yXn.js +1 -0
- package/components/p-DphUq6Z5.js +1 -0
- package/components/p-DsgWQbJY.js +1 -0
- package/components/p-Dx3yBe39.js +1 -0
- package/components/p-DxKMnrS8.js +1 -0
- package/components/p-O88oQkR1.js +1 -0
- package/components/p-PlUkLT0A.js +1 -0
- package/components/p-QTSiPk0I.js +1 -0
- package/components/p-TC9DZAbC.js +1 -0
- package/components/p-XBF88YT_.js +1 -0
- package/components/p-bVsOg7S9.js +1 -0
- package/components/p-ccpcKv5U.js +1 -0
- package/components/p-en06CSUT.js +1 -0
- package/components/p-g6ZBqIze.js +1 -0
- package/components/p-noTpj1Kh.js +1 -0
- package/components/x-address.d.ts +11 -0
- package/components/x-address.js +1 -0
- package/components/x-affix.d.ts +11 -0
- package/components/x-affix.js +1 -0
- package/components/x-alert.d.ts +11 -0
- package/components/x-alert.js +1 -0
- package/components/x-anchor-link.d.ts +11 -0
- package/components/x-anchor-link.js +1 -0
- package/components/x-anchor.d.ts +11 -0
- package/components/x-anchor.js +1 -0
- package/components/x-app.d.ts +11 -0
- package/components/x-app.js +1 -0
- package/components/x-auto-complete-dropdown-content.d.ts +11 -0
- package/components/x-auto-complete-dropdown-content.js +1 -0
- package/components/x-auto-complete.d.ts +11 -0
- package/components/x-auto-complete.js +1 -0
- package/components/x-avatar.d.ts +11 -0
- package/components/x-avatar.js +1 -0
- package/components/x-back-top.d.ts +11 -0
- package/components/x-back-top.js +1 -0
- package/components/x-badge.d.ts +11 -0
- package/components/x-badge.js +1 -0
- package/components/x-breadcrumb-item.d.ts +11 -0
- package/components/x-breadcrumb-item.js +1 -0
- package/components/x-breadcrumb.d.ts +11 -0
- package/components/x-breadcrumb.js +1 -0
- package/components/x-button.d.ts +11 -0
- package/components/x-button.js +1 -0
- package/components/x-captcha.d.ts +11 -0
- package/components/x-captcha.js +1 -0
- package/components/x-card.d.ts +11 -0
- package/components/x-card.js +1 -0
- package/components/x-carousel.d.ts +11 -0
- package/components/x-carousel.js +1 -0
- package/components/x-cascader-dropdown-content.d.ts +11 -0
- package/components/x-cascader-dropdown-content.js +1 -0
- package/components/x-cascader.d.ts +11 -0
- package/components/x-cascader.js +1 -0
- package/components/x-checkbox.d.ts +11 -0
- package/components/x-checkbox.js +1 -0
- package/components/x-col.d.ts +11 -0
- package/components/x-col.js +1 -0
- package/components/x-collapse-panel.d.ts +11 -0
- package/components/x-collapse-panel.js +1 -0
- package/components/x-collapse.d.ts +11 -0
- package/components/x-collapse.js +1 -0
- package/components/x-color-picker-panel.d.ts +11 -0
- package/components/x-color-picker-panel.js +1 -0
- package/components/x-color-picker.d.ts +11 -0
- package/components/x-color-picker.js +1 -0
- package/components/x-comment.d.ts +11 -0
- package/components/x-comment.js +1 -0
- package/components/x-content.d.ts +11 -0
- package/components/x-content.js +1 -0
- package/components/x-date-picker-dropdown-content.d.ts +11 -0
- package/components/x-date-picker-dropdown-content.js +1 -0
- package/components/x-date-picker.d.ts +11 -0
- package/components/x-date-picker.js +1 -0
- package/components/x-descriptions-item.d.ts +11 -0
- package/components/x-descriptions-item.js +1 -0
- package/components/x-descriptions.d.ts +11 -0
- package/components/x-descriptions.js +1 -0
- package/components/x-divider.d.ts +11 -0
- package/components/x-divider.js +1 -0
- package/components/x-drawer-content.d.ts +11 -0
- package/components/x-drawer-content.js +1 -0
- package/components/x-drawer.d.ts +11 -0
- package/components/x-drawer.js +1 -0
- package/components/x-dropdown-content.d.ts +11 -0
- package/components/x-dropdown-content.js +1 -0
- package/components/x-dropdown.d.ts +11 -0
- package/components/x-dropdown.js +1 -0
- package/components/x-editor.d.ts +11 -0
- package/components/x-editor.js +1 -0
- package/components/x-empty.d.ts +11 -0
- package/components/x-empty.js +1 -0
- package/components/x-finder.d.ts +11 -0
- package/components/x-finder.js +1 -0
- package/components/x-flex.d.ts +11 -0
- package/components/x-flex.js +1 -0
- package/components/x-float-button.d.ts +11 -0
- package/components/x-float-button.js +1 -0
- package/components/x-footer.d.ts +11 -0
- package/components/x-footer.js +1 -0
- package/components/x-form-builder.d.ts +11 -0
- package/components/x-form-builder.js +1 -0
- package/components/x-form-item.d.ts +11 -0
- package/components/x-form-item.js +1 -0
- package/components/x-form.d.ts +11 -0
- package/components/x-form.js +1 -0
- package/components/x-header.d.ts +11 -0
- package/components/x-header.js +1 -0
- package/components/x-icon.d.ts +11 -0
- package/components/x-icon.js +1 -0
- package/components/x-image.d.ts +11 -0
- package/components/x-image.js +1 -0
- package/components/x-infinite-scroll.d.ts +11 -0
- package/components/x-infinite-scroll.js +1 -0
- package/components/x-input-number.d.ts +11 -0
- package/components/x-input-number.js +1 -0
- package/components/x-input.d.ts +11 -0
- package/components/x-input.js +1 -0
- package/components/x-layout.d.ts +11 -0
- package/components/x-layout.js +1 -0
- package/components/x-list-item.d.ts +11 -0
- package/components/x-list-item.js +1 -0
- package/components/x-list.d.ts +11 -0
- package/components/x-list.js +1 -0
- package/components/x-mentions.d.ts +11 -0
- package/components/x-mentions.js +1 -0
- package/components/x-menu-divider.d.ts +11 -0
- package/components/x-menu-divider.js +1 -0
- package/components/x-menu-item-group.d.ts +11 -0
- package/components/x-menu-item-group.js +1 -0
- package/components/x-menu-item.d.ts +11 -0
- package/components/x-menu-item.js +1 -0
- package/components/x-menu-submenu.d.ts +11 -0
- package/components/x-menu-submenu.js +1 -0
- package/components/x-menu.d.ts +11 -0
- package/components/x-menu.js +1 -0
- package/components/x-message.d.ts +11 -0
- package/components/x-message.js +1 -0
- package/components/x-modal-content.d.ts +11 -0
- package/components/x-modal-content.js +1 -0
- package/components/x-modal.d.ts +11 -0
- package/components/x-modal.js +1 -0
- package/components/x-notification.d.ts +11 -0
- package/components/x-notification.js +1 -0
- package/components/x-page-header.d.ts +11 -0
- package/components/x-page-header.js +1 -0
- package/components/x-pagination.d.ts +11 -0
- package/components/x-pagination.js +1 -0
- package/components/x-popconfirm-content.d.ts +11 -0
- package/components/x-popconfirm-content.js +1 -0
- package/components/x-popconfirm.d.ts +11 -0
- package/components/x-popconfirm.js +1 -0
- package/components/x-popover-content.d.ts +11 -0
- package/components/x-popover-content.js +1 -0
- package/components/x-popover.d.ts +11 -0
- package/components/x-popover.js +1 -0
- package/components/x-progress.d.ts +11 -0
- package/components/x-progress.js +1 -0
- package/components/x-qr-code.d.ts +11 -0
- package/components/x-qr-code.js +1 -0
- package/components/x-radio-group.d.ts +11 -0
- package/components/x-radio-group.js +1 -0
- package/components/x-radio.d.ts +11 -0
- package/components/x-radio.js +1 -0
- package/components/x-range-picker-dropdown-content.d.ts +11 -0
- package/components/x-range-picker-dropdown-content.js +1 -0
- package/components/x-range-picker.d.ts +11 -0
- package/components/x-range-picker.js +1 -0
- package/components/x-rate.d.ts +11 -0
- package/components/x-rate.js +1 -0
- package/components/x-result.d.ts +11 -0
- package/components/x-result.js +1 -0
- package/components/x-row.d.ts +11 -0
- package/components/x-row.js +1 -0
- package/components/x-segmented.d.ts +11 -0
- package/components/x-segmented.js +1 -0
- package/components/x-select-dropdown-content.d.ts +11 -0
- package/components/x-select-dropdown-content.js +1 -0
- package/components/x-select-option.d.ts +11 -0
- package/components/x-select-option.js +1 -0
- package/components/x-select.d.ts +11 -0
- package/components/x-select.js +1 -0
- package/components/x-sider.d.ts +11 -0
- package/components/x-sider.js +1 -0
- package/components/x-skeleton.d.ts +11 -0
- package/components/x-skeleton.js +1 -0
- package/components/x-slider.d.ts +11 -0
- package/components/x-slider.js +1 -0
- package/components/x-space.d.ts +11 -0
- package/components/x-space.js +1 -0
- package/components/x-spin.d.ts +11 -0
- package/components/x-spin.js +1 -0
- package/components/x-splitter-panel.d.ts +11 -0
- package/components/x-splitter-panel.js +1 -0
- package/components/x-splitter.d.ts +11 -0
- package/components/x-splitter.js +1 -0
- package/components/x-statistic.d.ts +11 -0
- package/components/x-statistic.js +1 -0
- package/components/x-step.d.ts +11 -0
- package/components/x-step.js +1 -0
- package/components/x-steps.d.ts +11 -0
- package/components/x-steps.js +1 -0
- package/components/x-switch.d.ts +11 -0
- package/components/x-switch.js +1 -0
- package/components/x-tab-pane.d.ts +11 -0
- package/components/x-tab-pane.js +1 -0
- package/components/x-table-cell.d.ts +11 -0
- package/components/x-table-cell.js +1 -0
- package/components/x-table-row.d.ts +11 -0
- package/components/x-table-row.js +1 -0
- package/components/x-table.d.ts +11 -0
- package/components/x-table.js +1 -0
- package/components/x-tabs.d.ts +11 -0
- package/components/x-tabs.js +1 -0
- package/components/x-tag.d.ts +11 -0
- package/components/x-tag.js +1 -0
- package/components/x-textarea.d.ts +11 -0
- package/components/x-textarea.js +1 -0
- package/components/x-time-picker-dropdown-content.d.ts +11 -0
- package/components/x-time-picker-dropdown-content.js +1 -0
- package/components/x-time-picker.d.ts +11 -0
- package/components/x-time-picker.js +1 -0
- package/components/x-timeline-item.d.ts +11 -0
- package/components/x-timeline-item.js +1 -0
- package/components/x-timeline.d.ts +11 -0
- package/components/x-timeline.js +1 -0
- package/components/x-tooltip-content.d.ts +11 -0
- package/components/x-tooltip-content.js +1 -0
- package/components/x-tooltip.d.ts +11 -0
- package/components/x-tooltip.js +1 -0
- package/components/x-tour-panel.d.ts +11 -0
- package/components/x-tour-panel.js +1 -0
- package/components/x-tour.d.ts +11 -0
- package/components/x-tour.js +1 -0
- package/components/x-transfer.d.ts +11 -0
- package/components/x-transfer.js +1 -0
- package/components/x-tree-select-dropdown-content.d.ts +11 -0
- package/components/x-tree-select-dropdown-content.js +1 -0
- package/components/x-tree-select.d.ts +11 -0
- package/components/x-tree-select.js +1 -0
- package/components/x-tree.d.ts +11 -0
- package/components/x-tree.js +1 -0
- package/components/x-typography.d.ts +11 -0
- package/components/x-typography.js +1 -0
- package/components/x-upload.d.ts +11 -0
- package/components/x-upload.js +1 -0
- package/components/x-virtual-scroll.d.ts +11 -0
- package/components/x-virtual-scroll.js +1 -0
- package/components/x-workflow-builder.d.ts +11 -0
- package/components/x-workflow-builder.js +1 -0
- package/components/x-workflow.d.ts +11 -0
- package/components/x-workflow.js +1 -0
- package/dist/cjs/abstract-control-C4D0eNCC.js +277 -0
- package/dist/cjs/config-BP9bROYD.js +63 -0
- package/dist/cjs/index-C7sKs9A2.js +2170 -0
- package/dist/cjs/index.cjs.js +14 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/locale.service-Cz-aZQnr.js +8203 -0
- package/dist/cjs/modal-service-BtAF0mFq.js +399 -0
- package/dist/cjs/notification-service-m6I5U9aG.js +602 -0
- package/dist/cjs/portal-controller-CtYVbhXL.js +504 -0
- package/dist/cjs/schema-builder-CYnX7lKi.js +1505 -0
- package/dist/cjs/tree.service-fxLOCSpD.js +339 -0
- package/dist/cjs/types-DQ-V76ZQ.js +255 -0
- package/dist/cjs/x-address_14.cjs.entry.js +12577 -0
- package/dist/cjs/x-affix.cjs.entry.js +182 -0
- package/dist/cjs/x-alert_11.cjs.entry.js +3239 -0
- package/dist/cjs/x-anchor-link.cjs.entry.js +67 -0
- package/dist/cjs/x-anchor.cjs.entry.js +158 -0
- package/dist/cjs/x-app.cjs.entry.js +137 -0
- package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +69 -0
- package/dist/cjs/x-avatar.cjs.entry.js +269 -0
- package/dist/cjs/x-back-top.cjs.entry.js +89 -0
- package/dist/cjs/x-breadcrumb_5.cjs.entry.js +1554 -0
- package/dist/cjs/x-button.cjs.entry.js +174 -0
- package/dist/cjs/x-card_12.cjs.entry.js +1386 -0
- package/dist/cjs/x-carousel.cjs.entry.js +147 -0
- package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +364 -0
- package/dist/cjs/x-checkbox_5.cjs.entry.js +1376 -0
- package/dist/cjs/x-collapse-panel.cjs.entry.js +243 -0
- package/dist/cjs/x-collapse.cjs.entry.js +291 -0
- package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +873 -0
- package/dist/cjs/x-color-picker_9.cjs.entry.js +3085 -0
- package/dist/cjs/x-comment.cjs.entry.js +189 -0
- package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +757 -0
- package/dist/cjs/x-descriptions-item.cjs.entry.js +108 -0
- package/dist/cjs/x-drawer-content.cjs.entry.js +197 -0
- package/dist/cjs/x-drawer.cjs.entry.js +294 -0
- package/dist/cjs/x-dropdown_2.cjs.entry.js +735 -0
- package/dist/cjs/x-empty.cjs.entry.js +64 -0
- package/dist/cjs/x-finder.cjs.entry.js +647 -0
- package/dist/cjs/x-form-builder.cjs.entry.js +807 -0
- package/dist/cjs/x-icon.cjs.entry.js +144 -0
- package/dist/cjs/x-infinite-scroll.cjs.entry.js +129 -0
- package/dist/cjs/x-list-item.cjs.entry.js +27 -0
- package/dist/cjs/x-list.cjs.entry.js +138 -0
- package/dist/cjs/x-mentions.cjs.entry.js +275 -0
- package/dist/cjs/x-menu-divider.cjs.entry.js +49 -0
- package/dist/cjs/x-menu-item-group.cjs.entry.js +149 -0
- package/dist/cjs/x-menu-submenu.cjs.entry.js +373 -0
- package/dist/cjs/x-message.cjs.entry.js +219 -0
- package/dist/cjs/x-modal-content.cjs.entry.js +217 -0
- package/dist/cjs/x-notification.cjs.entry.js +325 -0
- package/dist/cjs/x-page-header.cjs.entry.js +67 -0
- package/dist/cjs/x-popconfirm-content.cjs.entry.js +72 -0
- package/dist/cjs/x-popconfirm.cjs.entry.js +181 -0
- package/dist/cjs/x-progress.cjs.entry.js +136 -0
- package/dist/cjs/x-qr-code.cjs.entry.js +446 -0
- package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +821 -0
- package/dist/cjs/x-select_2.cjs.entry.js +1316 -0
- package/dist/cjs/x-skeleton.cjs.entry.js +75 -0
- package/dist/cjs/x-spin.cjs.entry.js +62 -0
- package/dist/cjs/x-splitter-panel.cjs.entry.js +91 -0
- package/dist/cjs/x-splitter.cjs.entry.js +612 -0
- package/dist/cjs/x-statistic.cjs.entry.js +104 -0
- package/dist/cjs/x-step.cjs.entry.js +179 -0
- package/dist/cjs/x-steps.cjs.entry.js +439 -0
- package/dist/cjs/x-tab-pane.cjs.entry.js +73 -0
- package/dist/cjs/x-table-cell.cjs.entry.js +45 -0
- package/dist/cjs/x-table-row.cjs.entry.js +85 -0
- package/dist/cjs/x-tabs.cjs.entry.js +609 -0
- package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +389 -0
- package/dist/cjs/x-timeline-item.cjs.entry.js +50 -0
- package/dist/cjs/x-timeline.cjs.entry.js +52 -0
- package/dist/cjs/x-tour-panel.cjs.entry.js +89 -0
- package/dist/cjs/x-tour.cjs.entry.js +344 -0
- package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +439 -0
- package/dist/cjs/x-virtual-scroll.cjs.entry.js +203 -0
- package/dist/cjs/x-workflow-builder.cjs.entry.js +366 -0
- package/dist/cjs/xlabs-store.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +130 -0
- package/dist/collection/components/x-address/vietnam-data.js +28 -0
- package/dist/collection/components/x-address/x-address.css +367 -0
- package/dist/collection/components/x-address/x-address.js +403 -0
- package/dist/collection/components/x-affix/x-affix.css +27 -0
- package/dist/collection/components/x-affix/x-affix.js +299 -0
- package/dist/collection/components/x-alert/x-alert.css +475 -0
- package/dist/collection/components/x-alert/x-alert.js +273 -0
- package/dist/collection/components/x-anchor/x-anchor.css +74 -0
- package/dist/collection/components/x-anchor/x-anchor.js +371 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.css +43 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.js +145 -0
- package/dist/collection/components/x-app/x-app.css +14 -0
- package/dist/collection/components/x-app/x-app.js +308 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +410 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +166 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-auto-complete/types.js +61 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.css +535 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.js +1829 -0
- package/dist/collection/components/x-avatar/types.js +1 -0
- package/dist/collection/components/x-avatar/x-avatar.css +128 -0
- package/dist/collection/components/x-avatar/x-avatar.js +533 -0
- package/dist/collection/components/x-back-top/x-back-top.css +56 -0
- package/dist/collection/components/x-back-top/x-back-top.js +148 -0
- package/dist/collection/components/x-badge/types.js +1 -0
- package/dist/collection/components/x-badge/x-badge.css +233 -0
- package/dist/collection/components/x-badge/x-badge.js +618 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.css +44 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +96 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.css +63 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +147 -0
- package/dist/collection/components/x-button/x-button.css +278 -0
- package/dist/collection/components/x-button/x-button.js +488 -0
- package/dist/collection/components/x-captcha/x-captcha.css +125 -0
- package/dist/collection/components/x-captcha/x-captcha.js +408 -0
- package/dist/collection/components/x-card/x-card.css +523 -0
- package/dist/collection/components/x-card/x-card.js +389 -0
- package/dist/collection/components/x-carousel/x-carousel.css +417 -0
- package/dist/collection/components/x-carousel/x-carousel.js +257 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +529 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +771 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-cascader/types.js +1 -0
- package/dist/collection/components/x-cascader/x-cascader.css +691 -0
- package/dist/collection/components/x-cascader/x-cascader.js +1841 -0
- package/dist/collection/components/x-checkbox/types.js +1 -0
- package/dist/collection/components/x-checkbox/x-checkbox.css +541 -0
- package/dist/collection/components/x-checkbox/x-checkbox.js +681 -0
- package/dist/collection/components/x-col/x-col.css +1704 -0
- package/dist/collection/components/x-col/x-col.js +479 -0
- package/dist/collection/components/x-collapse/types.js +1 -0
- package/dist/collection/components/x-collapse/x-collapse.css +384 -0
- package/dist/collection/components/x-collapse/x-collapse.js +579 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +486 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +500 -0
- package/dist/collection/components/x-color-picker/types.js +251 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.css +310 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.js +575 -0
- package/dist/collection/components/x-color-picker/x-color-picker.css +446 -0
- package/dist/collection/components/x-color-picker/x-color-picker.js +1209 -0
- package/dist/collection/components/x-comment/types.js +1 -0
- package/dist/collection/components/x-comment/x-comment.css +442 -0
- package/dist/collection/components/x-comment/x-comment.js +306 -0
- package/dist/collection/components/x-content/types.js +1 -0
- package/dist/collection/components/x-content/x-content.css +361 -0
- package/dist/collection/components/x-content/x-content.js +402 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +691 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +1496 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-date-picker/types.js +1 -0
- package/dist/collection/components/x-date-picker/x-date-picker.css +804 -0
- package/dist/collection/components/x-date-picker/x-date-picker.js +2110 -0
- package/dist/collection/components/x-descriptions/types.js +1 -0
- package/dist/collection/components/x-descriptions/x-descriptions.css +417 -0
- package/dist/collection/components/x-descriptions/x-descriptions.js +494 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +387 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +238 -0
- package/dist/collection/components/x-divider/x-divider.css +417 -0
- package/dist/collection/components/x-divider/x-divider.js +263 -0
- package/dist/collection/components/x-drawer/x-drawer.css +333 -0
- package/dist/collection/components/x-drawer/x-drawer.js +623 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.css +481 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.js +579 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +673 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +294 -0
- package/dist/collection/components/x-dropdown/dropdown-content/types.js +1 -0
- package/dist/collection/components/x-dropdown/types.js +1 -0
- package/dist/collection/components/x-dropdown/x-dropdown.css +669 -0
- package/dist/collection/components/x-dropdown/x-dropdown.js +1004 -0
- package/dist/collection/components/x-editor/editor-history.js +118 -0
- package/dist/collection/components/x-editor/editor-normalizer.js +263 -0
- package/dist/collection/components/x-editor/editor-parser.js +326 -0
- package/dist/collection/components/x-editor/editor-selection.js +415 -0
- package/dist/collection/components/x-editor/types.js +33 -0
- package/dist/collection/components/x-editor/x-editor.css +599 -0
- package/dist/collection/components/x-editor/x-editor.js +1636 -0
- package/dist/collection/components/x-empty/x-empty.css +357 -0
- package/dist/collection/components/x-empty/x-empty.js +117 -0
- package/dist/collection/components/x-finder/services/finder-service.js +250 -0
- package/dist/collection/components/x-finder/types.js +1 -0
- package/dist/collection/components/x-finder/x-finder.css +633 -0
- package/dist/collection/components/x-finder/x-finder.js +540 -0
- package/dist/collection/components/x-flex/x-flex.css +344 -0
- package/dist/collection/components/x-flex/x-flex.js +285 -0
- package/dist/collection/components/x-float-button/x-float-button.css +389 -0
- package/dist/collection/components/x-float-button/x-float-button.js +265 -0
- package/dist/collection/components/x-footer/x-footer.css +346 -0
- package/dist/collection/components/x-footer/x-footer.js +29 -0
- package/dist/collection/components/x-form/x-form.css +365 -0
- package/dist/collection/components/x-form/x-form.js +355 -0
- package/dist/collection/components/x-form-builder/services/apis/api-client.js +240 -0
- package/dist/collection/components/x-form-builder/services/constants/index.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/abstract-control.js +175 -0
- package/dist/collection/components/x-form-builder/services/forms/form-array.js +92 -0
- package/dist/collection/components/x-form-builder/services/forms/form-builder.js +40 -0
- package/dist/collection/components/x-form-builder/services/forms/form-control.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/form-group.js +150 -0
- package/dist/collection/components/x-form-builder/services/forms/index.js +7 -0
- package/dist/collection/components/x-form-builder/services/forms/types.js +1 -0
- package/dist/collection/components/x-form-builder/services/forms/validators.js +83 -0
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +337 -0
- package/dist/collection/components/x-form-builder/services/schema/default-registry.js +440 -0
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +176 -0
- package/dist/collection/components/x-form-builder/services/schema/form-registry.js +30 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-actions.js +3 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +52 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +53 -0
- package/dist/collection/components/x-form-builder/types/api/api-common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/api-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/common/common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/condition-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/field-types-enum.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/index.js +7 -0
- package/dist/collection/components/x-form-builder/types/common/shared-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/validation-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/value-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/event-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/index.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/advanced-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/base-field.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/datetime-file-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/display-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/form-field-union.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/index.js +9 -0
- package/dist/collection/components/x-form-builder/types/fields/input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/layout-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +10 -0
- package/dist/collection/components/x-form-builder/types/fields/special-input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/events-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/form-config.js +50 -0
- package/dist/collection/components/x-form-builder/types/form/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/form/schema-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/index.js +4 -0
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +118 -0
- package/dist/collection/components/x-form-builder/utils/utils.js +138 -0
- package/dist/collection/components/x-form-builder/utils/values.js +36 -0
- package/dist/collection/components/x-form-builder/x-form-builder.css +3 -0
- package/dist/collection/components/x-form-builder/x-form-builder.js +1017 -0
- package/dist/collection/components/x-form-item/x-form-item.css +564 -0
- package/dist/collection/components/x-form-item/x-form-item.js +538 -0
- package/dist/collection/components/x-header/x-header.css +344 -0
- package/dist/collection/components/x-header/x-header.js +29 -0
- package/dist/collection/components/x-icon/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-solided.woff2 +0 -0
- package/dist/collection/components/x-icon/icons.js +2716 -0
- package/dist/collection/components/x-icon/x-icon.css +378 -0
- package/dist/collection/components/x-icon/x-icon.js +353 -0
- package/dist/collection/components/x-image/types.js +1 -0
- package/dist/collection/components/x-image/x-image.css +556 -0
- package/dist/collection/components/x-image/x-image.js +628 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +345 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +294 -0
- package/dist/collection/components/x-input/types.js +1 -0
- package/dist/collection/components/x-input/x-input.css +640 -0
- package/dist/collection/components/x-input/x-input.js +1449 -0
- package/dist/collection/components/x-input-number/types.js +96 -0
- package/dist/collection/components/x-input-number/x-input-number.css +612 -0
- package/dist/collection/components/x-input-number/x-input-number.js +1488 -0
- package/dist/collection/components/x-layout/x-layout.css +361 -0
- package/dist/collection/components/x-layout/x-layout.js +188 -0
- package/dist/collection/components/x-list/x-list.css +382 -0
- package/dist/collection/components/x-list/x-list.js +373 -0
- package/dist/collection/components/x-list-item/x-list-item.css +351 -0
- package/dist/collection/components/x-list-item/x-list-item.js +31 -0
- package/dist/collection/components/x-mentions/types.js +1 -0
- package/dist/collection/components/x-mentions/x-mentions.css +388 -0
- package/dist/collection/components/x-mentions/x-mentions.js +528 -0
- package/dist/collection/components/x-menu/types.js +1 -0
- package/dist/collection/components/x-menu/x-menu.css +78 -0
- package/dist/collection/components/x-menu/x-menu.js +793 -0
- package/dist/collection/components/x-menu-divider/types.js +1 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.css +31 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.js +126 -0
- package/dist/collection/components/x-menu-item/types.js +1 -0
- package/dist/collection/components/x-menu-item/x-menu-item.css +183 -0
- package/dist/collection/components/x-menu-item/x-menu-item.js +449 -0
- package/dist/collection/components/x-menu-item-group/types.js +1 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.css +45 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +299 -0
- package/dist/collection/components/x-menu-submenu/types.js +1 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.css +236 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +775 -0
- package/dist/collection/components/x-message/message-service.js +263 -0
- package/dist/collection/components/x-message/types.js +1 -0
- package/dist/collection/components/x-message/x-message.css +402 -0
- package/dist/collection/components/x-message/x-message.js +487 -0
- package/dist/collection/components/x-modal/modal-service.js +402 -0
- package/dist/collection/components/x-modal/modal-service.types.js +1 -0
- package/dist/collection/components/x-modal/x-modal.css +468 -0
- package/dist/collection/components/x-modal/x-modal.js +683 -0
- package/dist/collection/components/x-modal-content/index.js +1 -0
- package/dist/collection/components/x-modal-content/types.js +1 -0
- package/dist/collection/components/x-modal-content/x-modal-content.css +749 -0
- package/dist/collection/components/x-modal-content/x-modal-content.js +701 -0
- package/dist/collection/components/x-notification/notification-service.js +335 -0
- package/dist/collection/components/x-notification/types.js +1 -0
- package/dist/collection/components/x-notification/x-notification.css +486 -0
- package/dist/collection/components/x-notification/x-notification.js +788 -0
- package/dist/collection/components/x-page-header/x-page-header.css +406 -0
- package/dist/collection/components/x-page-header/x-page-header.js +159 -0
- package/dist/collection/components/x-pagination/types.js +1 -0
- package/dist/collection/components/x-pagination/x-pagination.css +705 -0
- package/dist/collection/components/x-pagination/x-pagination.js +1241 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +456 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +244 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.css +412 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.js +355 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.css +437 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.js +261 -0
- package/dist/collection/components/x-popover/x-popover.css +442 -0
- package/dist/collection/components/x-popover/x-popover.js +390 -0
- package/dist/collection/components/x-portal/debug.js +42 -0
- package/dist/collection/components/x-portal/index.js +1 -0
- package/dist/collection/components/x-portal/portal-controller.js +146 -0
- package/dist/collection/components/x-portal/positioning.js +332 -0
- package/dist/collection/components/x-portal/types.js +1 -0
- package/dist/collection/components/x-portal/x-portal.js +21 -0
- package/dist/collection/components/x-progress/x-progress.css +424 -0
- package/dist/collection/components/x-progress/x-progress.js +326 -0
- package/dist/collection/components/x-qr-code/x-qr-code.css +37 -0
- package/dist/collection/components/x-qr-code/x-qr-code.js +292 -0
- package/dist/collection/components/x-radio/types.js +1 -0
- package/dist/collection/components/x-radio/x-radio.css +523 -0
- package/dist/collection/components/x-radio/x-radio.js +689 -0
- package/dist/collection/components/x-radio-group/types.js +1 -0
- package/dist/collection/components/x-radio-group/x-radio-group.css +326 -0
- package/dist/collection/components/x-radio-group/x-radio-group.js +531 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +609 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +1497 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-range-picker/types.js +1 -0
- package/dist/collection/components/x-range-picker/x-range-picker.css +775 -0
- package/dist/collection/components/x-range-picker/x-range-picker.js +1883 -0
- package/dist/collection/components/x-rate/x-rate.css +396 -0
- package/dist/collection/components/x-rate/x-rate.js +445 -0
- package/dist/collection/components/x-result/types.js +1 -0
- package/dist/collection/components/x-result/x-result.css +434 -0
- package/dist/collection/components/x-result/x-result.js +376 -0
- package/dist/collection/components/x-row/x-row.css +345 -0
- package/dist/collection/components/x-row/x-row.js +196 -0
- package/dist/collection/components/x-segmented/types.js +1 -0
- package/dist/collection/components/x-segmented/x-segmented.css +407 -0
- package/dist/collection/components/x-segmented/x-segmented.js +414 -0
- package/dist/collection/components/x-select/select-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +827 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +163 -0
- package/dist/collection/components/x-select/select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-select/types.js +9 -0
- package/dist/collection/components/x-select/x-select.css +823 -0
- package/dist/collection/components/x-select/x-select.js +2247 -0
- package/dist/collection/components/x-select-option/x-select-option.css +379 -0
- package/dist/collection/components/x-select-option/x-select-option.js +207 -0
- package/dist/collection/components/x-sider/x-sider.css +379 -0
- package/dist/collection/components/x-sider/x-sider.js +379 -0
- package/dist/collection/components/x-skeleton/x-skeleton.css +400 -0
- package/dist/collection/components/x-skeleton/x-skeleton.js +221 -0
- package/dist/collection/components/x-slider/types.js +1 -0
- package/dist/collection/components/x-slider/x-slider.css +511 -0
- package/dist/collection/components/x-slider/x-slider.js +785 -0
- package/dist/collection/components/x-space/x-space.css +339 -0
- package/dist/collection/components/x-space/x-space.js +228 -0
- package/dist/collection/components/x-spin/x-spin.css +465 -0
- package/dist/collection/components/x-spin/x-spin.js +142 -0
- package/dist/collection/components/x-splitter/types.js +1 -0
- package/dist/collection/components/x-splitter/x-splitter.css +181 -0
- package/dist/collection/components/x-splitter/x-splitter.js +884 -0
- package/dist/collection/components/x-splitter-panel/types.js +1 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.css +25 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +292 -0
- package/dist/collection/components/x-statistic/x-statistic.css +366 -0
- package/dist/collection/components/x-statistic/x-statistic.js +291 -0
- package/dist/collection/components/x-step/types.js +1 -0
- package/dist/collection/components/x-step/x-step.css +801 -0
- package/dist/collection/components/x-step/x-step.js +539 -0
- package/dist/collection/components/x-steps/types.js +1 -0
- package/dist/collection/components/x-steps/x-steps.css +830 -0
- package/dist/collection/components/x-steps/x-steps.js +1032 -0
- package/dist/collection/components/x-switch/types.js +1 -0
- package/dist/collection/components/x-switch/x-switch.css +463 -0
- package/dist/collection/components/x-switch/x-switch.js +356 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.css +337 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.js +243 -0
- package/dist/collection/components/x-table/column-util.js +87 -0
- package/dist/collection/components/x-table/types.js +1 -0
- package/dist/collection/components/x-table/x-table.css +898 -0
- package/dist/collection/components/x-table/x-table.js +2464 -0
- package/dist/collection/components/x-table-cell/x-table-cell.css +337 -0
- package/dist/collection/components/x-table-cell/x-table-cell.js +167 -0
- package/dist/collection/components/x-table-row/x-table-row.css +336 -0
- package/dist/collection/components/x-table-row/x-table-row.js +172 -0
- package/dist/collection/components/x-tabs/types.js +1 -0
- package/dist/collection/components/x-tabs/x-tabs.css +664 -0
- package/dist/collection/components/x-tabs/x-tabs.js +1264 -0
- package/dist/collection/components/x-tag/types.js +1 -0
- package/dist/collection/components/x-tag/x-tag.css +1047 -0
- package/dist/collection/components/x-tag/x-tag.js +535 -0
- package/dist/collection/components/x-textarea/x-textarea.css +446 -0
- package/dist/collection/components/x-textarea/x-textarea.js +553 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +409 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +855 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-time-picker/types.js +1 -0
- package/dist/collection/components/x-time-picker/x-time-picker.css +653 -0
- package/dist/collection/components/x-time-picker/x-time-picker.js +1454 -0
- package/dist/collection/components/x-timeline/x-timeline.css +404 -0
- package/dist/collection/components/x-timeline/x-timeline.js +129 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.css +400 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.js +125 -0
- package/dist/collection/components/x-tooltip/types.js +1 -0
- package/dist/collection/components/x-tooltip/x-tooltip.css +528 -0
- package/dist/collection/components/x-tooltip/x-tooltip.js +1006 -0
- package/dist/collection/components/x-tooltip-content/index.js +1 -0
- package/dist/collection/components/x-tooltip-content/types.js +1 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.css +217 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +238 -0
- package/dist/collection/components/x-tour/index.js +1 -0
- package/dist/collection/components/x-tour/types.js +1 -0
- package/dist/collection/components/x-tour/x-tour-panel.css +467 -0
- package/dist/collection/components/x-tour/x-tour-panel.js +265 -0
- package/dist/collection/components/x-tour/x-tour.css +353 -0
- package/dist/collection/components/x-tour/x-tour.js +555 -0
- package/dist/collection/components/x-transfer/types.js +1 -0
- package/dist/collection/components/x-transfer/x-transfer.css +626 -0
- package/dist/collection/components/x-transfer/x-transfer.js +956 -0
- package/dist/collection/components/x-tree/types.js +1 -0
- package/dist/collection/components/x-tree/x-tree.css +703 -0
- package/dist/collection/components/x-tree/x-tree.js +1793 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +635 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +890 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-tree-select/types.js +2 -0
- package/dist/collection/components/x-tree-select/x-tree-select.css +790 -0
- package/dist/collection/components/x-tree-select/x-tree-select.js +2750 -0
- package/dist/collection/components/x-typography/x-typography.css +409 -0
- package/dist/collection/components/x-typography/x-typography.js +431 -0
- package/dist/collection/components/x-upload/types.js +1 -0
- package/dist/collection/components/x-upload/x-upload.css +774 -0
- package/dist/collection/components/x-upload/x-upload.js +1452 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.css +79 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +478 -0
- package/dist/collection/components/x-workflow/x-workflow.css +486 -0
- package/dist/collection/components/x-workflow/x-workflow.js +1403 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +538 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +468 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/locales/index.js +2 -0
- package/dist/collection/locales/languages/ar_EG.js +120 -0
- package/dist/collection/locales/languages/az_AZ.js +120 -0
- package/dist/collection/locales/languages/bg_BG.js +120 -0
- package/dist/collection/locales/languages/bn_BD.js +120 -0
- package/dist/collection/locales/languages/by_BY.js +120 -0
- package/dist/collection/locales/languages/ca_ES.js +120 -0
- package/dist/collection/locales/languages/cs_CZ.js +120 -0
- package/dist/collection/locales/languages/da_DK.js +120 -0
- package/dist/collection/locales/languages/de_DE.js +120 -0
- package/dist/collection/locales/languages/el_GR.js +120 -0
- package/dist/collection/locales/languages/en_AU.js +120 -0
- package/dist/collection/locales/languages/en_GB.js +120 -0
- package/dist/collection/locales/languages/en_US.js +120 -0
- package/dist/collection/locales/languages/es_ES.js +120 -0
- package/dist/collection/locales/languages/et_EE.js +120 -0
- package/dist/collection/locales/languages/fa_IR.js +120 -0
- package/dist/collection/locales/languages/fi_FI.js +120 -0
- package/dist/collection/locales/languages/fr_BE.js +120 -0
- package/dist/collection/locales/languages/fr_CA.js +120 -0
- package/dist/collection/locales/languages/fr_FR.js +120 -0
- package/dist/collection/locales/languages/ga_IE.js +120 -0
- package/dist/collection/locales/languages/gl_ES.js +120 -0
- package/dist/collection/locales/languages/he_IL.js +120 -0
- package/dist/collection/locales/languages/hi_IN.js +120 -0
- package/dist/collection/locales/languages/hr_HR.js +120 -0
- package/dist/collection/locales/languages/hu_HU.js +120 -0
- package/dist/collection/locales/languages/hy_AM.js +120 -0
- package/dist/collection/locales/languages/id_ID.js +120 -0
- package/dist/collection/locales/languages/index.js +137 -0
- package/dist/collection/locales/languages/is_IS.js +120 -0
- package/dist/collection/locales/languages/it_IT.js +120 -0
- package/dist/collection/locales/languages/ja_JP.js +120 -0
- package/dist/collection/locales/languages/ka_GE.js +120 -0
- package/dist/collection/locales/languages/kk_KZ.js +120 -0
- package/dist/collection/locales/languages/km_KH.js +120 -0
- package/dist/collection/locales/languages/kmr_IQ.js +120 -0
- package/dist/collection/locales/languages/kn_IN.js +120 -0
- package/dist/collection/locales/languages/ko_KR.js +120 -0
- package/dist/collection/locales/languages/ku_IQ.js +120 -0
- package/dist/collection/locales/languages/lt_LT.js +120 -0
- package/dist/collection/locales/languages/lv_LV.js +120 -0
- package/dist/collection/locales/languages/mk_MK.js +120 -0
- package/dist/collection/locales/languages/ml_IN.js +120 -0
- package/dist/collection/locales/languages/mn_MN.js +120 -0
- package/dist/collection/locales/languages/ms_MY.js +120 -0
- package/dist/collection/locales/languages/nb_NO.js +120 -0
- package/dist/collection/locales/languages/ne_NP.js +120 -0
- package/dist/collection/locales/languages/nl_BE.js +120 -0
- package/dist/collection/locales/languages/nl_NL.js +120 -0
- package/dist/collection/locales/languages/pl_PL.js +120 -0
- package/dist/collection/locales/languages/pt_BR.js +120 -0
- package/dist/collection/locales/languages/pt_PT.js +120 -0
- package/dist/collection/locales/languages/ro_RO.js +120 -0
- package/dist/collection/locales/languages/ru_RU.js +120 -0
- package/dist/collection/locales/languages/sk_SK.js +120 -0
- package/dist/collection/locales/languages/sl_SI.js +120 -0
- package/dist/collection/locales/languages/sr_RS.js +120 -0
- package/dist/collection/locales/languages/sv_SE.js +120 -0
- package/dist/collection/locales/languages/ta_IN.js +120 -0
- package/dist/collection/locales/languages/th_TH.js +120 -0
- package/dist/collection/locales/languages/tr_TR.js +120 -0
- package/dist/collection/locales/languages/uk_UA.js +120 -0
- package/dist/collection/locales/languages/ur_PK.js +120 -0
- package/dist/collection/locales/languages/vi_VN.js +120 -0
- package/dist/collection/locales/languages/zh_CN.js +120 -0
- package/dist/collection/locales/languages/zh_HK.js +120 -0
- package/dist/collection/locales/languages/zh_TW.js +120 -0
- package/dist/collection/locales/locale.service.js +179 -0
- package/dist/collection/types.js +11 -0
- package/dist/collection/utils/app-service.js +19 -0
- package/dist/collection/utils/cascader.service.js +142 -0
- package/dist/collection/utils/config.js +59 -0
- package/dist/collection/utils/form/core/abstract-control.js +273 -0
- package/dist/collection/utils/form/core/form-array.js +131 -0
- package/dist/collection/utils/form/core/form-builder.js +56 -0
- package/dist/collection/utils/form/core/form-control.js +69 -0
- package/dist/collection/utils/form/core/form-group.js +163 -0
- package/dist/collection/utils/form/frameworks.js +37 -0
- package/dist/collection/utils/form/types.js +1 -0
- package/dist/collection/utils/form/validators/validators.js +198 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/qr-code/cache/qr.cache.js +20 -0
- package/dist/collection/utils/qr-code/engine/qr.engine.js +130 -0
- package/dist/collection/utils/qr-code/engine/qr.gf.js +22 -0
- package/dist/collection/utils/qr-code/engine/qr.mask.js +54 -0
- package/dist/collection/utils/qr-code/engine/qr.rs.js +29 -0
- package/dist/collection/utils/qr-code/engine/qr.util.js +0 -0
- package/dist/collection/utils/qr-code/engine/qr.version.js +11 -0
- package/dist/collection/utils/qr-code/renderer/canvas.renderer.js +36 -0
- package/dist/collection/utils/qr-code/renderer/svg.renderer.js +33 -0
- package/dist/collection/utils/qr-code/worker/worker.manager.js +24 -0
- package/dist/collection/utils/table.service.js +150 -0
- package/dist/collection/utils/tree.service.js +335 -0
- package/dist/collection/utils/workflow/flow.service.js +382 -0
- package/dist/collection/utils/workflow/types.js +1 -0
- package/dist/esm/abstract-control-XBF88YT_.js +275 -0
- package/dist/esm/config-BPeosvTA.js +60 -0
- package/dist/esm/index-ig_mFsVk.js +2159 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/locale.service-D66tF8_2.js +8199 -0
- package/dist/esm/modal-service-C_e0SaFZ.js +397 -0
- package/dist/esm/notification-service-DJTSPOq7.js +599 -0
- package/dist/esm/portal-controller-COpzIi1n.js +499 -0
- package/dist/esm/schema-builder-DBPGgJBx.js +1502 -0
- package/dist/esm/tree.service-Dgxy93Bg.js +337 -0
- package/dist/esm/types-C_QdJRdB.js +253 -0
- package/dist/esm/x-address_14.entry.js +12562 -0
- package/dist/esm/x-affix.entry.js +180 -0
- package/dist/esm/x-alert_11.entry.js +3227 -0
- package/dist/esm/x-anchor-link.entry.js +65 -0
- package/dist/esm/x-anchor.entry.js +156 -0
- package/dist/esm/x-app.entry.js +135 -0
- package/dist/esm/x-auto-complete-dropdown-content.entry.js +67 -0
- package/dist/esm/x-avatar.entry.js +267 -0
- package/dist/esm/x-back-top.entry.js +87 -0
- package/dist/esm/x-breadcrumb_5.entry.js +1548 -0
- package/dist/esm/x-button.entry.js +172 -0
- package/dist/esm/x-card_12.entry.js +1373 -0
- package/dist/esm/x-carousel.entry.js +145 -0
- package/dist/esm/x-cascader-dropdown-content.entry.js +362 -0
- package/dist/esm/x-checkbox_5.entry.js +1370 -0
- package/dist/esm/x-collapse-panel.entry.js +241 -0
- package/dist/esm/x-collapse.entry.js +289 -0
- package/dist/esm/x-color-picker-panel_2.entry.js +870 -0
- package/dist/esm/x-color-picker_9.entry.js +3075 -0
- package/dist/esm/x-comment.entry.js +187 -0
- package/dist/esm/x-date-picker-dropdown-content.entry.js +755 -0
- package/dist/esm/x-descriptions-item.entry.js +106 -0
- package/dist/esm/x-drawer-content.entry.js +195 -0
- package/dist/esm/x-drawer.entry.js +292 -0
- package/dist/esm/x-dropdown_2.entry.js +732 -0
- package/dist/esm/x-empty.entry.js +62 -0
- package/dist/esm/x-finder.entry.js +645 -0
- package/dist/esm/x-form-builder.entry.js +805 -0
- package/dist/esm/x-icon.entry.js +142 -0
- package/dist/esm/x-infinite-scroll.entry.js +127 -0
- package/dist/esm/x-list-item.entry.js +25 -0
- package/dist/esm/x-list.entry.js +136 -0
- package/dist/esm/x-mentions.entry.js +273 -0
- package/dist/esm/x-menu-divider.entry.js +47 -0
- package/dist/esm/x-menu-item-group.entry.js +147 -0
- package/dist/esm/x-menu-submenu.entry.js +371 -0
- package/dist/esm/x-message.entry.js +217 -0
- package/dist/esm/x-modal-content.entry.js +215 -0
- package/dist/esm/x-notification.entry.js +323 -0
- package/dist/esm/x-page-header.entry.js +65 -0
- package/dist/esm/x-popconfirm-content.entry.js +70 -0
- package/dist/esm/x-popconfirm.entry.js +179 -0
- package/dist/esm/x-progress.entry.js +134 -0
- package/dist/esm/x-qr-code.entry.js +444 -0
- package/dist/esm/x-range-picker-dropdown-content.entry.js +819 -0
- package/dist/esm/x-select_2.entry.js +1313 -0
- package/dist/esm/x-skeleton.entry.js +73 -0
- package/dist/esm/x-spin.entry.js +60 -0
- package/dist/esm/x-splitter-panel.entry.js +89 -0
- package/dist/esm/x-splitter.entry.js +610 -0
- package/dist/esm/x-statistic.entry.js +102 -0
- package/dist/esm/x-step.entry.js +177 -0
- package/dist/esm/x-steps.entry.js +437 -0
- package/dist/esm/x-tab-pane.entry.js +71 -0
- package/dist/esm/x-table-cell.entry.js +43 -0
- package/dist/esm/x-table-row.entry.js +83 -0
- package/dist/esm/x-tabs.entry.js +607 -0
- package/dist/esm/x-time-picker-dropdown-content.entry.js +387 -0
- package/dist/esm/x-timeline-item.entry.js +48 -0
- package/dist/esm/x-timeline.entry.js +50 -0
- package/dist/esm/x-tour-panel.entry.js +87 -0
- package/dist/esm/x-tour.entry.js +342 -0
- package/dist/esm/x-tree-select-dropdown-content.entry.js +437 -0
- package/dist/esm/x-virtual-scroll.entry.js +201 -0
- package/dist/esm/x-workflow-builder.entry.js +364 -0
- package/dist/esm/xlabs-store.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/x-address/vietnam-data.d.ts +14 -0
- package/dist/types/components/x-address/x-address.d.ts +64 -0
- package/dist/types/components/x-affix/x-affix.d.ts +111 -0
- package/dist/types/components/x-alert/x-alert.d.ts +74 -0
- package/dist/types/components/x-anchor/x-anchor.d.ts +120 -0
- package/dist/types/components/x-anchor-link/x-anchor-link.d.ts +47 -0
- package/dist/types/components/x-app/x-app.d.ts +93 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.d.ts +58 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-auto-complete/types.d.ts +150 -0
- package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +480 -0
- package/dist/types/components/x-avatar/types.d.ts +38 -0
- package/dist/types/components/x-avatar/x-avatar.d.ts +171 -0
- package/dist/types/components/x-back-top/x-back-top.d.ts +59 -0
- package/dist/types/components/x-badge/types.d.ts +23 -0
- package/dist/types/components/x-badge/x-badge.d.ts +184 -0
- package/dist/types/components/x-breadcrumb/x-breadcrumb.d.ts +43 -0
- package/dist/types/components/x-breadcrumb-item/x-breadcrumb-item.d.ts +43 -0
- package/dist/types/components/x-button/x-button.d.ts +121 -0
- package/dist/types/components/x-captcha/x-captcha.d.ts +78 -0
- package/dist/types/components/x-card/x-card.d.ts +139 -0
- package/dist/types/components/x-carousel/x-carousel.d.ts +104 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.d.ts +255 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/types.d.ts +20 -0
- package/dist/types/components/x-cascader/types.d.ts +143 -0
- package/dist/types/components/x-cascader/x-cascader.d.ts +520 -0
- package/dist/types/components/x-checkbox/types.d.ts +83 -0
- package/dist/types/components/x-checkbox/x-checkbox.d.ts +156 -0
- package/dist/types/components/x-col/x-col.d.ts +89 -0
- package/dist/types/components/x-collapse/types.d.ts +55 -0
- package/dist/types/components/x-collapse/x-collapse.d.ts +157 -0
- package/dist/types/components/x-collapse-panel/x-collapse-panel.d.ts +143 -0
- package/dist/types/components/x-color-picker/types.d.ts +135 -0
- package/dist/types/components/x-color-picker/x-color-picker-panel.d.ts +80 -0
- package/dist/types/components/x-color-picker/x-color-picker.d.ts +328 -0
- package/dist/types/components/x-comment/types.d.ts +20 -0
- package/dist/types/components/x-comment/x-comment.d.ts +111 -0
- package/dist/types/components/x-content/types.d.ts +6 -0
- package/dist/types/components/x-content/x-content.d.ts +64 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.d.ts +376 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/types.d.ts +61 -0
- package/dist/types/components/x-date-picker/types.d.ts +28 -0
- package/dist/types/components/x-date-picker/x-date-picker.d.ts +512 -0
- package/dist/types/components/x-descriptions/types.d.ts +41 -0
- package/dist/types/components/x-descriptions/x-descriptions.d.ts +141 -0
- package/dist/types/components/x-descriptions-item/x-descriptions-item.d.ts +70 -0
- package/dist/types/components/x-divider/x-divider.d.ts +82 -0
- package/dist/types/components/x-drawer/x-drawer.d.ts +156 -0
- package/dist/types/components/x-drawer-content/x-drawer-content.d.ts +142 -0
- package/dist/types/components/x-dropdown/dropdown-content/dropdown-content.d.ts +83 -0
- package/dist/types/components/x-dropdown/dropdown-content/types.d.ts +16 -0
- package/dist/types/components/x-dropdown/types.d.ts +119 -0
- package/dist/types/components/x-dropdown/x-dropdown.d.ts +292 -0
- package/dist/types/components/x-editor/editor-history.d.ts +62 -0
- package/dist/types/components/x-editor/editor-normalizer.d.ts +70 -0
- package/dist/types/components/x-editor/editor-parser.d.ts +34 -0
- package/dist/types/components/x-editor/editor-selection.d.ts +92 -0
- package/dist/types/components/x-editor/types.d.ts +62 -0
- package/dist/types/components/x-editor/x-editor.d.ts +279 -0
- package/dist/types/components/x-empty/x-empty.d.ts +45 -0
- package/dist/types/components/x-finder/services/finder-service.d.ts +38 -0
- package/dist/types/components/x-finder/types.d.ts +63 -0
- package/dist/types/components/x-finder/x-finder.d.ts +66 -0
- package/dist/types/components/x-flex/x-flex.d.ts +62 -0
- package/dist/types/components/x-float-button/x-float-button.d.ts +66 -0
- package/dist/types/components/x-footer/x-footer.d.ts +11 -0
- package/dist/types/components/x-form/x-form.d.ts +64 -0
- package/dist/types/components/x-form-builder/services/apis/api-client.d.ts +63 -0
- package/dist/types/components/x-form-builder/services/constants/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/services/forms/abstract-control.d.ts +59 -0
- package/dist/types/components/x-form-builder/services/forms/form-array.d.ts +25 -0
- package/dist/types/components/x-form-builder/services/forms/form-builder.d.ts +17 -0
- package/dist/types/components/x-form-builder/services/forms/form-control.d.ts +14 -0
- package/dist/types/components/x-form-builder/services/forms/form-group.d.ts +33 -0
- package/dist/types/components/x-form-builder/services/forms/index.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/types.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/validators.d.ts +16 -0
- package/dist/types/components/x-form-builder/services/schema/condition-builder.d.ts +39 -0
- package/dist/types/components/x-form-builder/services/schema/default-registry.d.ts +1 -0
- package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +26 -0
- package/dist/types/components/x-form-builder/services/schema/form-registry.d.ts +27 -0
- package/dist/types/components/x-form-builder/services/schema/schema-actions.d.ts +3 -0
- package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +19 -0
- package/dist/types/components/x-form-builder/services/schema/schema-validator.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/api/api-common-types.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/api/api-interfaces.d.ts +52 -0
- package/dist/types/components/x-form-builder/types/api/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/common-types.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/common/condition-types.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/index.d.ts +7 -0
- package/dist/types/components/x-form-builder/types/common/shared-interfaces.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +36 -0
- package/dist/types/components/x-form-builder/types/common/value-types.d.ts +15 -0
- package/dist/types/components/x-form-builder/types/event/event-types.d.ts +16 -0
- package/dist/types/components/x-form-builder/types/event/index.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +125 -0
- package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +92 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/index.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +55 -0
- package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +130 -0
- package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +99 -0
- package/dist/types/components/x-form-builder/types/form/events-types.d.ts +29 -0
- package/dist/types/components/x-form-builder/types/form/form-config.d.ts +0 -0
- package/dist/types/components/x-form-builder/types/form/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +134 -0
- package/dist/types/components/x-form-builder/types/index.d.ts +4 -0
- package/dist/types/components/x-form-builder/utils/condition-engine.d.ts +23 -0
- package/dist/types/components/x-form-builder/utils/utils.d.ts +19 -0
- package/dist/types/components/x-form-builder/utils/values.d.ts +8 -0
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +65 -0
- package/dist/types/components/x-form-item/x-form-item.d.ts +94 -0
- package/dist/types/components/x-header/x-header.d.ts +11 -0
- package/dist/types/components/x-icon/icons.d.ts +2717 -0
- package/dist/types/components/x-icon/x-icon.d.ts +89 -0
- package/dist/types/components/x-image/types.d.ts +94 -0
- package/dist/types/components/x-image/x-image.d.ts +150 -0
- package/dist/types/components/x-infinite-scroll/x-infinite-scroll.d.ts +75 -0
- package/dist/types/components/x-input/types.d.ts +14 -0
- package/dist/types/components/x-input/x-input.d.ts +385 -0
- package/dist/types/components/x-input-number/types.d.ts +98 -0
- package/dist/types/components/x-input-number/x-input-number.d.ts +395 -0
- package/dist/types/components/x-layout/x-layout.d.ts +61 -0
- package/dist/types/components/x-list/x-list.d.ts +100 -0
- package/dist/types/components/x-list-item/x-list-item.d.ts +13 -0
- package/dist/types/components/x-mentions/types.d.ts +7 -0
- package/dist/types/components/x-mentions/x-mentions.d.ts +159 -0
- package/dist/types/components/x-menu/types.d.ts +83 -0
- package/dist/types/components/x-menu/x-menu.d.ts +153 -0
- package/dist/types/components/x-menu-divider/types.d.ts +6 -0
- package/dist/types/components/x-menu-divider/x-menu-divider.d.ts +19 -0
- package/dist/types/components/x-menu-item/types.d.ts +8 -0
- package/dist/types/components/x-menu-item/x-menu-item.d.ts +80 -0
- package/dist/types/components/x-menu-item-group/types.d.ts +6 -0
- package/dist/types/components/x-menu-item-group/x-menu-item-group.d.ts +60 -0
- package/dist/types/components/x-menu-submenu/types.d.ts +15 -0
- package/dist/types/components/x-menu-submenu/x-menu-submenu.d.ts +135 -0
- package/dist/types/components/x-message/message-service.d.ts +58 -0
- package/dist/types/components/x-message/types.d.ts +90 -0
- package/dist/types/components/x-message/x-message.d.ts +133 -0
- package/dist/types/components/x-modal/modal-service.d.ts +6 -0
- package/dist/types/components/x-modal/modal-service.types.d.ts +278 -0
- package/dist/types/components/x-modal/x-modal.d.ts +160 -0
- package/dist/types/components/x-modal-content/index.d.ts +1 -0
- package/dist/types/components/x-modal-content/types.d.ts +83 -0
- package/dist/types/components/x-modal-content/x-modal-content.d.ts +174 -0
- package/dist/types/components/x-notification/notification-service.d.ts +83 -0
- package/dist/types/components/x-notification/types.d.ts +112 -0
- package/dist/types/components/x-notification/x-notification.d.ts +212 -0
- package/dist/types/components/x-page-header/x-page-header.d.ts +51 -0
- package/dist/types/components/x-pagination/types.d.ts +104 -0
- package/dist/types/components/x-pagination/x-pagination.d.ts +274 -0
- package/dist/types/components/x-popconfirm/popconfirm-content/popconfirm-content.d.ts +62 -0
- package/dist/types/components/x-popconfirm/x-popconfirm.d.ts +97 -0
- package/dist/types/components/x-popover/popover-content/popover-content.d.ts +71 -0
- package/dist/types/components/x-popover/x-popover.d.ts +99 -0
- package/dist/types/components/x-portal/debug.d.ts +5 -0
- package/dist/types/components/x-portal/index.d.ts +2 -0
- package/dist/types/components/x-portal/portal-controller.d.ts +20 -0
- package/dist/types/components/x-portal/positioning.d.ts +102 -0
- package/dist/types/components/x-portal/types.d.ts +43 -0
- package/dist/types/components/x-portal/x-portal.d.ts +19 -0
- package/dist/types/components/x-progress/x-progress.d.ts +85 -0
- package/dist/types/components/x-qr-code/x-qr-code.d.ts +26 -0
- package/dist/types/components/x-radio/types.d.ts +94 -0
- package/dist/types/components/x-radio/x-radio.d.ts +186 -0
- package/dist/types/components/x-radio-group/types.d.ts +20 -0
- package/dist/types/components/x-radio-group/x-radio-group.d.ts +90 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.d.ts +437 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/types.d.ts +48 -0
- package/dist/types/components/x-range-picker/types.d.ts +35 -0
- package/dist/types/components/x-range-picker/x-range-picker.d.ts +457 -0
- package/dist/types/components/x-rate/x-rate.d.ts +129 -0
- package/dist/types/components/x-result/types.d.ts +45 -0
- package/dist/types/components/x-result/x-result.d.ts +120 -0
- package/dist/types/components/x-row/x-row.d.ts +44 -0
- package/dist/types/components/x-segmented/types.d.ts +10 -0
- package/dist/types/components/x-segmented/x-segmented.d.ts +128 -0
- package/dist/types/components/x-select/select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-select/select-dropdown-content/select-dropdown-content.d.ts +52 -0
- package/dist/types/components/x-select/select-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-select/types.d.ts +41 -0
- package/dist/types/components/x-select/x-select.d.ts +635 -0
- package/dist/types/components/x-select-option/x-select-option.d.ts +51 -0
- package/dist/types/components/x-sider/x-sider.d.ts +99 -0
- package/dist/types/components/x-skeleton/x-skeleton.d.ts +54 -0
- package/dist/types/components/x-slider/types.d.ts +1 -0
- package/dist/types/components/x-slider/x-slider.d.ts +240 -0
- package/dist/types/components/x-space/x-space.d.ts +54 -0
- package/dist/types/components/x-spin/x-spin.d.ts +41 -0
- package/dist/types/components/x-splitter/types.d.ts +41 -0
- package/dist/types/components/x-splitter/x-splitter.d.ts +187 -0
- package/dist/types/components/x-splitter-panel/types.d.ts +23 -0
- package/dist/types/components/x-splitter-panel/x-splitter-panel.d.ts +67 -0
- package/dist/types/components/x-statistic/x-statistic.d.ts +80 -0
- package/dist/types/components/x-step/types.d.ts +14 -0
- package/dist/types/components/x-step/x-step.d.ts +104 -0
- package/dist/types/components/x-steps/types.d.ts +124 -0
- package/dist/types/components/x-steps/x-steps.d.ts +270 -0
- package/dist/types/components/x-switch/types.d.ts +5 -0
- package/dist/types/components/x-switch/x-switch.d.ts +92 -0
- package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +55 -0
- package/dist/types/components/x-table/column-util.d.ts +26 -0
- package/dist/types/components/x-table/types.d.ts +386 -0
- package/dist/types/components/x-table/x-table.d.ts +552 -0
- package/dist/types/components/x-table-cell/x-table-cell.d.ts +27 -0
- package/dist/types/components/x-table-row/x-table-row.d.ts +24 -0
- package/dist/types/components/x-tabs/types.d.ts +190 -0
- package/dist/types/components/x-tabs/x-tabs.d.ts +359 -0
- package/dist/types/components/x-tag/types.d.ts +27 -0
- package/dist/types/components/x-tag/x-tag.d.ts +148 -0
- package/dist/types/components/x-textarea/x-textarea.d.ts +165 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.d.ts +239 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/types.d.ts +28 -0
- package/dist/types/components/x-time-picker/types.d.ts +18 -0
- package/dist/types/components/x-time-picker/x-time-picker.d.ts +378 -0
- package/dist/types/components/x-timeline/x-timeline.d.ts +33 -0
- package/dist/types/components/x-timeline-item/x-timeline-item.d.ts +33 -0
- package/dist/types/components/x-tooltip/types.d.ts +53 -0
- package/dist/types/components/x-tooltip/x-tooltip.d.ts +274 -0
- package/dist/types/components/x-tooltip-content/index.d.ts +1 -0
- package/dist/types/components/x-tooltip-content/types.d.ts +25 -0
- package/dist/types/components/x-tooltip-content/x-tooltip-content.d.ts +57 -0
- package/dist/types/components/x-tour/index.d.ts +1 -0
- package/dist/types/components/x-tour/types.d.ts +71 -0
- package/dist/types/components/x-tour/x-tour-panel.d.ts +73 -0
- package/dist/types/components/x-tour/x-tour.d.ts +158 -0
- package/dist/types/components/x-transfer/types.d.ts +89 -0
- package/dist/types/components/x-transfer/x-transfer.d.ts +291 -0
- package/dist/types/components/x-tree/types.d.ts +163 -0
- package/dist/types/components/x-tree/x-tree.d.ts +406 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.d.ts +268 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/types.d.ts +24 -0
- package/dist/types/components/x-tree-select/types.d.ts +100 -0
- package/dist/types/components/x-tree-select/x-tree-select.d.ts +750 -0
- package/dist/types/components/x-typography/x-typography.d.ts +89 -0
- package/dist/types/components/x-upload/types.d.ts +177 -0
- package/dist/types/components/x-upload/x-upload.d.ts +361 -0
- package/dist/types/components/x-virtual-scroll/x-virtual-scroll.d.ts +127 -0
- package/dist/types/components/x-workflow/x-workflow.d.ts +126 -0
- package/dist/types/components/x-workflow-builder/x-workflow-builder.d.ts +69 -0
- package/dist/types/components.d.ts +19048 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/locales/index.d.ts +2 -0
- package/dist/types/locales/languages/ar_EG.d.ts +119 -0
- package/dist/types/locales/languages/az_AZ.d.ts +119 -0
- package/dist/types/locales/languages/bg_BG.d.ts +119 -0
- package/dist/types/locales/languages/bn_BD.d.ts +119 -0
- package/dist/types/locales/languages/by_BY.d.ts +119 -0
- package/dist/types/locales/languages/ca_ES.d.ts +119 -0
- package/dist/types/locales/languages/cs_CZ.d.ts +119 -0
- package/dist/types/locales/languages/da_DK.d.ts +119 -0
- package/dist/types/locales/languages/de_DE.d.ts +119 -0
- package/dist/types/locales/languages/el_GR.d.ts +119 -0
- package/dist/types/locales/languages/en_AU.d.ts +119 -0
- package/dist/types/locales/languages/en_GB.d.ts +119 -0
- package/dist/types/locales/languages/en_US.d.ts +119 -0
- package/dist/types/locales/languages/es_ES.d.ts +119 -0
- package/dist/types/locales/languages/et_EE.d.ts +119 -0
- package/dist/types/locales/languages/fa_IR.d.ts +119 -0
- package/dist/types/locales/languages/fi_FI.d.ts +119 -0
- package/dist/types/locales/languages/fr_BE.d.ts +119 -0
- package/dist/types/locales/languages/fr_CA.d.ts +119 -0
- package/dist/types/locales/languages/fr_FR.d.ts +119 -0
- package/dist/types/locales/languages/ga_IE.d.ts +119 -0
- package/dist/types/locales/languages/gl_ES.d.ts +119 -0
- package/dist/types/locales/languages/he_IL.d.ts +119 -0
- package/dist/types/locales/languages/hi_IN.d.ts +119 -0
- package/dist/types/locales/languages/hr_HR.d.ts +119 -0
- package/dist/types/locales/languages/hu_HU.d.ts +119 -0
- package/dist/types/locales/languages/hy_AM.d.ts +119 -0
- package/dist/types/locales/languages/id_ID.d.ts +119 -0
- package/dist/types/locales/languages/index.d.ts +13 -0
- package/dist/types/locales/languages/is_IS.d.ts +119 -0
- package/dist/types/locales/languages/it_IT.d.ts +119 -0
- package/dist/types/locales/languages/ja_JP.d.ts +119 -0
- package/dist/types/locales/languages/ka_GE.d.ts +119 -0
- package/dist/types/locales/languages/kk_KZ.d.ts +119 -0
- package/dist/types/locales/languages/km_KH.d.ts +119 -0
- package/dist/types/locales/languages/kmr_IQ.d.ts +119 -0
- package/dist/types/locales/languages/kn_IN.d.ts +119 -0
- package/dist/types/locales/languages/ko_KR.d.ts +119 -0
- package/dist/types/locales/languages/ku_IQ.d.ts +119 -0
- package/dist/types/locales/languages/lt_LT.d.ts +119 -0
- package/dist/types/locales/languages/lv_LV.d.ts +119 -0
- package/dist/types/locales/languages/mk_MK.d.ts +119 -0
- package/dist/types/locales/languages/ml_IN.d.ts +119 -0
- package/dist/types/locales/languages/mn_MN.d.ts +119 -0
- package/dist/types/locales/languages/ms_MY.d.ts +119 -0
- package/dist/types/locales/languages/nb_NO.d.ts +119 -0
- package/dist/types/locales/languages/ne_NP.d.ts +119 -0
- package/dist/types/locales/languages/nl_BE.d.ts +119 -0
- package/dist/types/locales/languages/nl_NL.d.ts +119 -0
- package/dist/types/locales/languages/pl_PL.d.ts +119 -0
- package/dist/types/locales/languages/pt_BR.d.ts +119 -0
- package/dist/types/locales/languages/pt_PT.d.ts +119 -0
- package/dist/types/locales/languages/ro_RO.d.ts +119 -0
- package/dist/types/locales/languages/ru_RU.d.ts +119 -0
- package/dist/types/locales/languages/sk_SK.d.ts +119 -0
- package/dist/types/locales/languages/sl_SI.d.ts +119 -0
- package/dist/types/locales/languages/sr_RS.d.ts +119 -0
- package/dist/types/locales/languages/sv_SE.d.ts +119 -0
- package/dist/types/locales/languages/ta_IN.d.ts +119 -0
- package/dist/types/locales/languages/th_TH.d.ts +119 -0
- package/dist/types/locales/languages/tr_TR.d.ts +119 -0
- package/dist/types/locales/languages/uk_UA.d.ts +119 -0
- package/dist/types/locales/languages/ur_PK.d.ts +119 -0
- package/dist/types/locales/languages/vi_VN.d.ts +119 -0
- package/dist/types/locales/languages/zh_CN.d.ts +119 -0
- package/dist/types/locales/languages/zh_HK.d.ts +119 -0
- package/dist/types/locales/languages/zh_TW.d.ts +119 -0
- package/dist/types/locales/locale.service.d.ts +93 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types.d.ts +59 -0
- package/dist/types/utils/app-service.d.ts +20 -0
- package/dist/types/utils/cascader.service.d.ts +45 -0
- package/dist/types/utils/config.d.ts +47 -0
- package/dist/types/utils/form/core/abstract-control.d.ts +121 -0
- package/dist/types/utils/form/core/form-array.d.ts +51 -0
- package/dist/types/utils/form/core/form-builder.d.ts +45 -0
- package/dist/types/utils/form/core/form-control.d.ts +37 -0
- package/dist/types/utils/form/core/form-group.d.ts +63 -0
- package/dist/types/utils/form/frameworks.d.ts +18 -0
- package/dist/types/utils/form/types.d.ts +8 -0
- package/dist/types/utils/form/validators/validators.d.ts +39 -0
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/types/utils/qr-code/cache/qr.cache.d.ts +7 -0
- package/dist/types/utils/qr-code/engine/qr.engine.d.ts +15 -0
- package/dist/types/utils/qr-code/engine/qr.gf.d.ts +4 -0
- package/dist/types/utils/qr-code/engine/qr.mask.d.ts +2 -0
- package/dist/types/utils/qr-code/engine/qr.rs.d.ts +1 -0
- package/dist/types/utils/qr-code/engine/qr.util.d.ts +0 -0
- package/dist/types/utils/qr-code/engine/qr.version.d.ts +16 -0
- package/dist/types/utils/qr-code/renderer/canvas.renderer.d.ts +6 -0
- package/dist/types/utils/qr-code/renderer/svg.renderer.d.ts +7 -0
- package/dist/types/utils/qr-code/worker/worker.manager.d.ts +12 -0
- package/dist/types/utils/table.service.d.ts +48 -0
- package/dist/types/utils/tree.service.d.ts +85 -0
- package/dist/types/utils/workflow/flow.service.d.ts +61 -0
- package/dist/types/utils/workflow/types.d.ts +120 -0
- package/dist/xlabs-store/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-solided.woff2 +0 -0
- package/dist/xlabs-store/index.esm.js +1 -0
- package/dist/xlabs-store/p-016194dc.entry.js +1 -0
- package/dist/xlabs-store/p-023259c9.entry.js +1 -0
- package/dist/xlabs-store/p-04a3721a.entry.js +1 -0
- package/dist/xlabs-store/p-072445b7.entry.js +1 -0
- package/dist/xlabs-store/p-0ec21454.entry.js +1 -0
- package/dist/xlabs-store/p-12b6a843.entry.js +1 -0
- package/dist/xlabs-store/p-1a81cf09.entry.js +1 -0
- package/dist/xlabs-store/p-1b019aeb.entry.js +1 -0
- package/dist/xlabs-store/p-262a0673.entry.js +1 -0
- package/dist/xlabs-store/p-34cce823.entry.js +1 -0
- package/dist/xlabs-store/p-3a9fdefe.entry.js +1 -0
- package/dist/xlabs-store/p-40036100.entry.js +1 -0
- package/dist/xlabs-store/p-45f04e8d.entry.js +1 -0
- package/dist/xlabs-store/p-48ba7c34.entry.js +1 -0
- package/dist/xlabs-store/p-48e2c26e.entry.js +1 -0
- package/dist/xlabs-store/p-4ac2e915.entry.js +1 -0
- package/dist/xlabs-store/p-4d7c2a35.entry.js +1 -0
- package/dist/xlabs-store/p-4f67cb33.entry.js +1 -0
- package/dist/xlabs-store/p-502b345e.entry.js +1 -0
- package/dist/xlabs-store/p-555c5e48.entry.js +1 -0
- package/dist/xlabs-store/p-5878525f.entry.js +1 -0
- package/dist/xlabs-store/p-5abbdca7.entry.js +1 -0
- package/dist/xlabs-store/p-6243ca69.entry.js +1 -0
- package/dist/xlabs-store/p-64e7a057.entry.js +1 -0
- package/dist/xlabs-store/p-6530d2ef.entry.js +1 -0
- package/dist/xlabs-store/p-675a39e1.entry.js +1 -0
- package/dist/xlabs-store/p-689c52ef.entry.js +1 -0
- package/dist/xlabs-store/p-69b8cb7d.entry.js +1 -0
- package/dist/xlabs-store/p-6b121c60.entry.js +1 -0
- package/dist/xlabs-store/p-6c75fc39.entry.js +1 -0
- package/dist/xlabs-store/p-6f705deb.entry.js +1 -0
- package/dist/xlabs-store/p-723d362c.entry.js +1 -0
- package/dist/xlabs-store/p-783545e3.entry.js +1 -0
- package/dist/xlabs-store/p-7a8f11b4.entry.js +1 -0
- package/dist/xlabs-store/p-81fb4caf.entry.js +1 -0
- package/dist/xlabs-store/p-863dd67d.entry.js +1 -0
- package/dist/xlabs-store/p-8bcbb4e3.entry.js +1 -0
- package/dist/xlabs-store/p-8bcc219a.entry.js +1 -0
- package/dist/xlabs-store/p-914b0ae2.entry.js +1 -0
- package/dist/xlabs-store/p-96b1939d.entry.js +1 -0
- package/dist/xlabs-store/p-9ac291ea.entry.js +1 -0
- package/dist/xlabs-store/p-9de03a07.entry.js +1 -0
- package/dist/xlabs-store/p-BPeosvTA.js +1 -0
- package/dist/xlabs-store/p-COpzIi1n.js +1 -0
- package/dist/xlabs-store/p-C_QdJRdB.js +1 -0
- package/dist/xlabs-store/p-Ce5L9qbY.js +1 -0
- package/dist/xlabs-store/p-Co3Y9VjQ.js +1 -0
- package/dist/xlabs-store/p-D66tF8_2.js +1 -0
- package/dist/xlabs-store/p-DElCk9ta.js +1 -0
- package/dist/xlabs-store/p-Dgxy93Bg.js +1 -0
- package/dist/xlabs-store/p-XBF88YT_.js +1 -0
- package/dist/xlabs-store/p-a4223feb.entry.js +1 -0
- package/dist/xlabs-store/p-a8c2eca7.entry.js +1 -0
- package/dist/xlabs-store/p-ac9ba3aa.entry.js +1 -0
- package/dist/xlabs-store/p-bd5084b8.entry.js +1 -0
- package/dist/xlabs-store/p-bda322db.entry.js +1 -0
- package/dist/xlabs-store/p-c0ca6f7d.entry.js +1 -0
- package/dist/xlabs-store/p-c4c8840c.entry.js +1 -0
- package/dist/xlabs-store/p-c4d0ce0d.entry.js +1 -0
- package/dist/xlabs-store/p-cd3c3374.entry.js +1 -0
- package/dist/xlabs-store/p-cf4697bc.entry.js +1 -0
- package/dist/xlabs-store/p-d2ec3d4a.entry.js +1 -0
- package/dist/xlabs-store/p-d4d00aff.entry.js +1 -0
- package/dist/xlabs-store/p-d9d0147b.entry.js +1 -0
- package/dist/xlabs-store/p-dd930f2a.entry.js +1 -0
- package/dist/xlabs-store/p-e04836e8.entry.js +1 -0
- package/dist/xlabs-store/p-e14b5f6d.entry.js +1 -0
- package/dist/xlabs-store/p-eb1dd3c2.entry.js +1 -0
- package/dist/xlabs-store/p-f02155e4.entry.js +1 -0
- package/dist/xlabs-store/p-f1331938.entry.js +1 -0
- package/dist/xlabs-store/p-fac0b689.entry.js +1 -0
- package/dist/xlabs-store/p-fd2e1d9c.entry.js +1 -0
- package/dist/xlabs-store/p-fdec5d89.entry.js +1 -0
- package/dist/xlabs-store/p-ffba56b2.entry.js +1 -0
- package/dist/xlabs-store/p-ig_mFsVk.js +2 -0
- package/dist/xlabs-store/xlabs-store.css +1 -0
- package/dist/xlabs-store/xlabs-store.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +69 -0
- package/readme.md +50 -0
|
@@ -0,0 +1,2750 @@
|
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { PortalController } from "../x-portal/portal-controller";
|
|
3
|
+
import { getIcon } from "../../utils/config";
|
|
4
|
+
import { translate } from "../../locales/locale.service";
|
|
5
|
+
import { TreeService } from "../../utils/tree.service";
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
7
|
+
export class XTreeSelect {
|
|
8
|
+
/**
|
|
9
|
+
* Host element reference.
|
|
10
|
+
*/
|
|
11
|
+
el;
|
|
12
|
+
// ========================================
|
|
13
|
+
// PROPS
|
|
14
|
+
// ========================================
|
|
15
|
+
/**
|
|
16
|
+
* Tree data source.
|
|
17
|
+
* @example
|
|
18
|
+
* <x-tree-select treeData={[{ key: '1', title: 'Node' }]}></x-tree-select>
|
|
19
|
+
*/
|
|
20
|
+
treeData = [];
|
|
21
|
+
/**
|
|
22
|
+
* Current selected value(s).
|
|
23
|
+
* @example
|
|
24
|
+
* <x-tree-select value="1"></x-tree-select>
|
|
25
|
+
*/
|
|
26
|
+
value;
|
|
27
|
+
/**
|
|
28
|
+
* Default value.
|
|
29
|
+
* @example
|
|
30
|
+
* <x-tree-select defaultValue="1"></x-tree-select>
|
|
31
|
+
*/
|
|
32
|
+
defaultValue;
|
|
33
|
+
/**
|
|
34
|
+
* Placeholder text.
|
|
35
|
+
* @example
|
|
36
|
+
* <x-tree-select placeholder="Select"></x-tree-select>
|
|
37
|
+
*/
|
|
38
|
+
placeholder = translate('TreeSelect.placeholder', {}, 'Please select');
|
|
39
|
+
/**
|
|
40
|
+
* Whether disabled.
|
|
41
|
+
* @example
|
|
42
|
+
* <x-tree-select disabled></x-tree-select>
|
|
43
|
+
*/
|
|
44
|
+
disabled = false;
|
|
45
|
+
/**
|
|
46
|
+
* Whether allow multiple selection.
|
|
47
|
+
* @example
|
|
48
|
+
* <x-tree-select multiple></x-tree-select>
|
|
49
|
+
*/
|
|
50
|
+
multiple = false;
|
|
51
|
+
/**
|
|
52
|
+
* Whether show checkbox (treeCheckable mode).
|
|
53
|
+
* @example
|
|
54
|
+
* <x-tree-select treeCheckable></x-tree-select>
|
|
55
|
+
*/
|
|
56
|
+
treeCheckable = false;
|
|
57
|
+
/**
|
|
58
|
+
* Check node precisely (parent-child independent).
|
|
59
|
+
* @example
|
|
60
|
+
* <x-tree-select treeCheckStrictly></x-tree-select>
|
|
61
|
+
*/
|
|
62
|
+
treeCheckStrictly = false;
|
|
63
|
+
/**
|
|
64
|
+
* Strategy for showing checked items.
|
|
65
|
+
* @example
|
|
66
|
+
* <x-tree-select showCheckedStrategy="SHOW_PARENT"></x-tree-select>
|
|
67
|
+
*/
|
|
68
|
+
showCheckedStrategy = 'SHOW_CHILD';
|
|
69
|
+
/**
|
|
70
|
+
* Whether allow clear.
|
|
71
|
+
* @example
|
|
72
|
+
* <x-tree-select allowClear></x-tree-select>
|
|
73
|
+
*/
|
|
74
|
+
allowClear = false;
|
|
75
|
+
/**
|
|
76
|
+
* Whether show search input.
|
|
77
|
+
* @example
|
|
78
|
+
* <x-tree-select showSearch></x-tree-select>
|
|
79
|
+
*/
|
|
80
|
+
showSearch = false;
|
|
81
|
+
/**
|
|
82
|
+
* Filter function for tree nodes.
|
|
83
|
+
* @example
|
|
84
|
+
* <x-tree-select filterTreeNode={(v, n) => n.title.startsWith(v)}></x-tree-select>
|
|
85
|
+
*/
|
|
86
|
+
filterTreeNode;
|
|
87
|
+
/**
|
|
88
|
+
* Filter tree nodes by input value (property name).
|
|
89
|
+
* @example
|
|
90
|
+
* <x-tree-select treeNodeFilterProp="title"></x-tree-select>
|
|
91
|
+
*/
|
|
92
|
+
treeNodeFilterProp = 'title';
|
|
93
|
+
/**
|
|
94
|
+
* Size of the select.
|
|
95
|
+
* @example
|
|
96
|
+
* <x-tree-select size="small"></x-tree-select>
|
|
97
|
+
*/
|
|
98
|
+
size = 'middle';
|
|
99
|
+
/**
|
|
100
|
+
* Validation status.
|
|
101
|
+
* @example
|
|
102
|
+
* <x-tree-select status="error"></x-tree-select>
|
|
103
|
+
*/
|
|
104
|
+
status;
|
|
105
|
+
/**
|
|
106
|
+
* Dropdown placement.
|
|
107
|
+
* @example
|
|
108
|
+
* <x-tree-select placement="bottomRight"></x-tree-select>
|
|
109
|
+
*/
|
|
110
|
+
placement = 'bottomLeft';
|
|
111
|
+
/**
|
|
112
|
+
* Variant style.
|
|
113
|
+
* @example
|
|
114
|
+
* <x-tree-select variant="filled"></x-tree-select>
|
|
115
|
+
*/
|
|
116
|
+
variant = 'outlined';
|
|
117
|
+
/**
|
|
118
|
+
* Whether the dropdown is open.
|
|
119
|
+
* @example
|
|
120
|
+
* <x-tree-select open></x-tree-select>
|
|
121
|
+
*/
|
|
122
|
+
open = false;
|
|
123
|
+
/**
|
|
124
|
+
* Max tag count to show in multiple mode.
|
|
125
|
+
* @example
|
|
126
|
+
* <x-tree-select multiple maxTagCount={2}></x-tree-select>
|
|
127
|
+
*/
|
|
128
|
+
maxTagCount;
|
|
129
|
+
/**
|
|
130
|
+
* Placeholder for max tag count.
|
|
131
|
+
* @example
|
|
132
|
+
* <x-tree-select maxTagPlaceholder="+ more"></x-tree-select>
|
|
133
|
+
*/
|
|
134
|
+
maxTagPlaceholder;
|
|
135
|
+
/**
|
|
136
|
+
* Whether show tree line.
|
|
137
|
+
* @example
|
|
138
|
+
* <x-tree-select treeLine></x-tree-select>
|
|
139
|
+
*/
|
|
140
|
+
treeLine = false;
|
|
141
|
+
/**
|
|
142
|
+
* Default expanded keys.
|
|
143
|
+
* @example
|
|
144
|
+
* <x-tree-select defaultExpandedKeys={['1']}></x-tree-select>
|
|
145
|
+
*/
|
|
146
|
+
defaultExpandedKeys = [];
|
|
147
|
+
/**
|
|
148
|
+
* Default expand all tree nodes.
|
|
149
|
+
* @example
|
|
150
|
+
* <x-tree-select defaultExpandAll></x-tree-select>
|
|
151
|
+
*/
|
|
152
|
+
defaultExpandAll = false;
|
|
153
|
+
/**
|
|
154
|
+
* Default expand parent nodes.
|
|
155
|
+
* @example
|
|
156
|
+
* <x-tree-select treeDefaultExpandParent={false}></x-tree-select>
|
|
157
|
+
*/
|
|
158
|
+
treeDefaultExpandParent = true;
|
|
159
|
+
/**
|
|
160
|
+
* Expand on load.
|
|
161
|
+
* @example
|
|
162
|
+
* <x-tree-select treeExpandedKeys={['1']}></x-tree-select>
|
|
163
|
+
*/
|
|
164
|
+
treeExpandedKeys;
|
|
165
|
+
/**
|
|
166
|
+
* Auto focus on mount.
|
|
167
|
+
* @example
|
|
168
|
+
* <x-tree-select autofocus></x-tree-select>
|
|
169
|
+
*/
|
|
170
|
+
autofocus = false;
|
|
171
|
+
/**
|
|
172
|
+
* Input ID.
|
|
173
|
+
* @example
|
|
174
|
+
* <x-tree-select inputId="tree"></x-tree-select>
|
|
175
|
+
*/
|
|
176
|
+
inputId;
|
|
177
|
+
/**
|
|
178
|
+
* Name for form.
|
|
179
|
+
* @example
|
|
180
|
+
* <x-tree-select name="tree"></x-tree-select>
|
|
181
|
+
*/
|
|
182
|
+
name;
|
|
183
|
+
/**
|
|
184
|
+
* Max height of dropdown.
|
|
185
|
+
* @example
|
|
186
|
+
* <x-tree-select listHeight={300}></x-tree-select>
|
|
187
|
+
*/
|
|
188
|
+
listHeight = 256;
|
|
189
|
+
/**
|
|
190
|
+
* Whether loading state.
|
|
191
|
+
* @example
|
|
192
|
+
* <x-tree-select loading></x-tree-select>
|
|
193
|
+
*/
|
|
194
|
+
loading = false;
|
|
195
|
+
/**
|
|
196
|
+
* Text when no data.
|
|
197
|
+
* @example
|
|
198
|
+
* <x-tree-select notFoundContent="Empty"></x-tree-select>
|
|
199
|
+
*/
|
|
200
|
+
notFoundContent = translate('TreeSelect.notFoundContent', {}, 'No data');
|
|
201
|
+
/**
|
|
202
|
+
* Whether dropdown matches selector width.
|
|
203
|
+
* @example
|
|
204
|
+
* <x-tree-select popupMatchSelectWidth={false}></x-tree-select>
|
|
205
|
+
*/
|
|
206
|
+
popupMatchSelectWidth = true;
|
|
207
|
+
/**
|
|
208
|
+
* Custom field names mapping.
|
|
209
|
+
* @example
|
|
210
|
+
* <x-tree-select fieldNames={{ title: 'label', value: 'id' }}></x-tree-select>
|
|
211
|
+
*/
|
|
212
|
+
fieldNames;
|
|
213
|
+
/**
|
|
214
|
+
* Whether show arrow icon.
|
|
215
|
+
* @example
|
|
216
|
+
* <x-tree-select showArrow={false}></x-tree-select>
|
|
217
|
+
*/
|
|
218
|
+
showArrow = true;
|
|
219
|
+
/**
|
|
220
|
+
* Whether show tree icon.
|
|
221
|
+
* @example
|
|
222
|
+
* <x-tree-select treeIcon></x-tree-select>
|
|
223
|
+
*/
|
|
224
|
+
treeIcon = false;
|
|
225
|
+
/**
|
|
226
|
+
* Whether virtual scroll.
|
|
227
|
+
* @example
|
|
228
|
+
* <x-tree-select virtual={false}></x-tree-select>
|
|
229
|
+
*/
|
|
230
|
+
virtual = true;
|
|
231
|
+
/**
|
|
232
|
+
* Label in value (for controlled mode).
|
|
233
|
+
* @example
|
|
234
|
+
* <x-tree-select labelInValue></x-tree-select>
|
|
235
|
+
*/
|
|
236
|
+
labelInValue = false;
|
|
237
|
+
// ========================================
|
|
238
|
+
// STATE
|
|
239
|
+
// ========================================
|
|
240
|
+
/**
|
|
241
|
+
* Focus state.
|
|
242
|
+
*/
|
|
243
|
+
focused = false;
|
|
244
|
+
/**
|
|
245
|
+
* Hover state for clear icon.
|
|
246
|
+
*/
|
|
247
|
+
hovering = false;
|
|
248
|
+
/**
|
|
249
|
+
* Current search value.
|
|
250
|
+
*/
|
|
251
|
+
searchValue = '';
|
|
252
|
+
/**
|
|
253
|
+
* Expanded tree node keys.
|
|
254
|
+
*/
|
|
255
|
+
expandedKeys = [];
|
|
256
|
+
/**
|
|
257
|
+
* Selected keys for single/multiple mode.
|
|
258
|
+
*/
|
|
259
|
+
selectedKeys = [];
|
|
260
|
+
/**
|
|
261
|
+
* Checked keys for checkable mode.
|
|
262
|
+
*/
|
|
263
|
+
checkedKeys = [];
|
|
264
|
+
/**
|
|
265
|
+
* Half-checked keys for checkable mode.
|
|
266
|
+
*/
|
|
267
|
+
halfCheckedKeys = [];
|
|
268
|
+
/**
|
|
269
|
+
* Dropdown width for portal.
|
|
270
|
+
*/
|
|
271
|
+
dropdownWidth = 0;
|
|
272
|
+
// ========================================
|
|
273
|
+
// EVENTS
|
|
274
|
+
// ========================================
|
|
275
|
+
/**
|
|
276
|
+
* Emitted when value changes.
|
|
277
|
+
* @example
|
|
278
|
+
* <x-tree-select onXChange={(ev) => console.log(ev.detail)}></x-tree-select>
|
|
279
|
+
*/
|
|
280
|
+
xChange;
|
|
281
|
+
/**
|
|
282
|
+
* Emitted when dropdown opens/closes.
|
|
283
|
+
* @example
|
|
284
|
+
* <x-tree-select onXOpenChange={(ev) => console.log(ev.detail)}></x-tree-select>
|
|
285
|
+
*/
|
|
286
|
+
xOpenChange;
|
|
287
|
+
/**
|
|
288
|
+
* Emitted when tree node expands/collapses.
|
|
289
|
+
* @example
|
|
290
|
+
* <x-tree-select onXTreeExpand={(ev) => console.log(ev.detail)}></x-tree-select>
|
|
291
|
+
*/
|
|
292
|
+
xTreeExpand;
|
|
293
|
+
/**
|
|
294
|
+
* Emitted on search.
|
|
295
|
+
* @example
|
|
296
|
+
* <x-tree-select onXSearch={(ev) => console.log(ev.detail)}></x-tree-select>
|
|
297
|
+
*/
|
|
298
|
+
xSearch;
|
|
299
|
+
/**
|
|
300
|
+
* Emitted on focus.
|
|
301
|
+
* @example
|
|
302
|
+
* <x-tree-select onXFocus={(ev) => console.log(ev)}></x-tree-select>
|
|
303
|
+
*/
|
|
304
|
+
xFocus;
|
|
305
|
+
/**
|
|
306
|
+
* Emitted on blur.
|
|
307
|
+
* @example
|
|
308
|
+
* <x-tree-select onXBlur={(ev) => console.log(ev)}></x-tree-select>
|
|
309
|
+
*/
|
|
310
|
+
xBlur;
|
|
311
|
+
/**
|
|
312
|
+
* Emitted when dropdown visible changes.
|
|
313
|
+
* @example
|
|
314
|
+
* <x-tree-select onXDropdownVisibleChange={(ev) => console.log(ev.detail)}></x-tree-select>
|
|
315
|
+
*/
|
|
316
|
+
xDropdownVisibleChange;
|
|
317
|
+
// ========================================
|
|
318
|
+
// REFS
|
|
319
|
+
// ========================================
|
|
320
|
+
/**
|
|
321
|
+
* Input element reference.
|
|
322
|
+
*/
|
|
323
|
+
inputRef;
|
|
324
|
+
/**
|
|
325
|
+
* Wrapper element reference.
|
|
326
|
+
*/
|
|
327
|
+
wrapperRef;
|
|
328
|
+
/**
|
|
329
|
+
* Portal instance for dropdown.
|
|
330
|
+
*/
|
|
331
|
+
portalInstance = null;
|
|
332
|
+
/**
|
|
333
|
+
* Dropdown element reference.
|
|
334
|
+
*/
|
|
335
|
+
dropdownEl = null;
|
|
336
|
+
/**
|
|
337
|
+
* Tree Service Instance
|
|
338
|
+
*/
|
|
339
|
+
get treeService() {
|
|
340
|
+
return new TreeService({
|
|
341
|
+
id: this.fieldNames?.value || 'key',
|
|
342
|
+
children: this.fieldNames?.children || 'children'
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Destroy portal instance if present.
|
|
347
|
+
* @returns void
|
|
348
|
+
*/
|
|
349
|
+
destroyPortal() {
|
|
350
|
+
if (this.portalInstance) {
|
|
351
|
+
this.portalInstance.destroy();
|
|
352
|
+
this.portalInstance = null;
|
|
353
|
+
}
|
|
354
|
+
this.dropdownEl = null;
|
|
355
|
+
}
|
|
356
|
+
// ========================================
|
|
357
|
+
// LIFECYCLE
|
|
358
|
+
// ========================================
|
|
359
|
+
/**
|
|
360
|
+
* Initialize state from value and expansion settings.
|
|
361
|
+
*
|
|
362
|
+
* Flow:
|
|
363
|
+
* 1. Initialize `expandedKeys` based on props (treeExpandedKeys, defaultExpandAll, defaultExpandedKeys, or parent of value).
|
|
364
|
+
* 2. Initialize `value` from `defaultValue` if `value` is undefined.
|
|
365
|
+
* 3. Sync `value` to internal state (`selectedKeys`, `checkedKeys`).
|
|
366
|
+
*/
|
|
367
|
+
componentWillLoad() {
|
|
368
|
+
// Initialize value first
|
|
369
|
+
if (this.value !== undefined) {
|
|
370
|
+
this.syncValueToState();
|
|
371
|
+
}
|
|
372
|
+
else if (this.defaultValue !== undefined) {
|
|
373
|
+
this.value = this.defaultValue;
|
|
374
|
+
this.syncValueToState();
|
|
375
|
+
}
|
|
376
|
+
// Initialize expanded keys
|
|
377
|
+
if (this.treeExpandedKeys) {
|
|
378
|
+
this.expandedKeys = [...this.treeExpandedKeys];
|
|
379
|
+
}
|
|
380
|
+
else if (this.defaultExpandAll) {
|
|
381
|
+
this.expandedKeys = this.treeService.getAllKeys(this.treeData);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
let initialExpanded = this.defaultExpandedKeys ? [...this.defaultExpandedKeys] : [];
|
|
385
|
+
if (this.treeDefaultExpandParent && this.value) {
|
|
386
|
+
// Expand parents of selected value
|
|
387
|
+
const parents = this.getParentKeys(this.value);
|
|
388
|
+
initialExpanded = [...new Set([...initialExpanded, ...parents])];
|
|
389
|
+
}
|
|
390
|
+
this.expandedKeys = initialExpanded;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
treeDataChanged() {
|
|
394
|
+
if (this.treeExpandedKeys) {
|
|
395
|
+
this.expandedKeys = [...this.treeExpandedKeys];
|
|
396
|
+
}
|
|
397
|
+
else if (this.defaultExpandAll) {
|
|
398
|
+
this.expandedKeys = this.treeService.getAllKeys(this.treeData);
|
|
399
|
+
}
|
|
400
|
+
else if (this.treeDefaultExpandParent && this.value) {
|
|
401
|
+
const parents = this.getParentKeys(this.value);
|
|
402
|
+
this.expandedKeys = [...new Set([...this.expandedKeys, ...parents])];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Auto focus on mount when enabled.
|
|
407
|
+
*/
|
|
408
|
+
componentDidLoad() {
|
|
409
|
+
if (this.autofocus && !this.disabled) {
|
|
410
|
+
this.setFocus();
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Cleanup portal on disconnect.
|
|
415
|
+
*/
|
|
416
|
+
disconnectedCallback() {
|
|
417
|
+
this.destroyPortal();
|
|
418
|
+
}
|
|
419
|
+
// ========================================
|
|
420
|
+
// WATCHERS
|
|
421
|
+
// ========================================
|
|
422
|
+
/**
|
|
423
|
+
* Sync state when value changes.
|
|
424
|
+
*/
|
|
425
|
+
valueChanged() {
|
|
426
|
+
this.syncValueToState();
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Sync expanded keys when controlled prop changes.
|
|
430
|
+
* @param newValue - Expanded keys.
|
|
431
|
+
*/
|
|
432
|
+
treeExpandedKeysChanged(newValue) {
|
|
433
|
+
if (newValue) {
|
|
434
|
+
this.expandedKeys = [...newValue];
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Handle open state changes and portal sync.
|
|
439
|
+
*
|
|
440
|
+
* Flow:
|
|
441
|
+
* 1. Emit `xOpenChange` and `xDropdownVisibleChange`.
|
|
442
|
+
* 2. If open, create or update portal.
|
|
443
|
+
* 3. If closed, destroy portal.
|
|
444
|
+
* @param newValue - Open state.
|
|
445
|
+
*/
|
|
446
|
+
openChanged(newValue) {
|
|
447
|
+
this.xOpenChange.emit(newValue);
|
|
448
|
+
this.xDropdownVisibleChange.emit(newValue);
|
|
449
|
+
if (newValue) {
|
|
450
|
+
this.createOrUpdatePortal();
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
this.destroyPortal();
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
// ========================================
|
|
457
|
+
// LISTENERS
|
|
458
|
+
// ========================================
|
|
459
|
+
/**
|
|
460
|
+
* Close dropdown when clicking outside.
|
|
461
|
+
*
|
|
462
|
+
* Flow:
|
|
463
|
+
* 1. Check if click path includes component or portal.
|
|
464
|
+
* 2. If neither, close dropdown.
|
|
465
|
+
* @param ev - Mouse event.
|
|
466
|
+
*/
|
|
467
|
+
handleWindowClick(ev) {
|
|
468
|
+
if (!this.open)
|
|
469
|
+
return;
|
|
470
|
+
const path = ev.composedPath();
|
|
471
|
+
const isInsideComponent = path.includes(this.el);
|
|
472
|
+
const portalEl = this.portalInstance?.getElement();
|
|
473
|
+
const isInsidePortal = portalEl ? path.includes(portalEl) : false;
|
|
474
|
+
if (!isInsideComponent && !isInsidePortal) {
|
|
475
|
+
this.closeDropdown();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Handle keyboard open/close and tag removal.
|
|
480
|
+
*
|
|
481
|
+
* Flow:
|
|
482
|
+
* - Escape: Close dropdown.
|
|
483
|
+
* - Enter/Down/Up: Open dropdown if closed.
|
|
484
|
+
* - Tab: Close dropdown.
|
|
485
|
+
* - Backspace: Remove last tag in multiple mode if search is empty.
|
|
486
|
+
* @param ev - Keyboard event.
|
|
487
|
+
*/
|
|
488
|
+
handleKeydown(ev) {
|
|
489
|
+
if (this.disabled)
|
|
490
|
+
return;
|
|
491
|
+
switch (ev.key) {
|
|
492
|
+
case 'Escape':
|
|
493
|
+
ev.preventDefault();
|
|
494
|
+
this.closeDropdown();
|
|
495
|
+
break;
|
|
496
|
+
case 'Enter':
|
|
497
|
+
if (!this.open) {
|
|
498
|
+
ev.preventDefault();
|
|
499
|
+
this.openDropdown();
|
|
500
|
+
}
|
|
501
|
+
break;
|
|
502
|
+
case 'ArrowDown':
|
|
503
|
+
if (!this.open) {
|
|
504
|
+
ev.preventDefault();
|
|
505
|
+
this.openDropdown();
|
|
506
|
+
}
|
|
507
|
+
break;
|
|
508
|
+
case 'ArrowUp':
|
|
509
|
+
if (!this.open) {
|
|
510
|
+
ev.preventDefault();
|
|
511
|
+
this.openDropdown();
|
|
512
|
+
}
|
|
513
|
+
break;
|
|
514
|
+
case 'Tab':
|
|
515
|
+
if (this.open) {
|
|
516
|
+
this.closeDropdown();
|
|
517
|
+
}
|
|
518
|
+
break;
|
|
519
|
+
case 'Backspace':
|
|
520
|
+
if (this.isMultiple() && !this.searchValue) {
|
|
521
|
+
ev.preventDefault();
|
|
522
|
+
this.removeLastTag();
|
|
523
|
+
}
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
// ========================================
|
|
528
|
+
// PUBLIC METHODS
|
|
529
|
+
// ========================================
|
|
530
|
+
/**
|
|
531
|
+
* Focus the input programmatically.
|
|
532
|
+
* @returns Promise<void>
|
|
533
|
+
*/
|
|
534
|
+
async setFocus() {
|
|
535
|
+
this.inputRef?.focus();
|
|
536
|
+
this.focused = true;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Blur the input programmatically.
|
|
540
|
+
* @returns Promise<void>
|
|
541
|
+
*/
|
|
542
|
+
async setBlur() {
|
|
543
|
+
this.inputRef?.blur();
|
|
544
|
+
this.focused = false;
|
|
545
|
+
}
|
|
546
|
+
// ========================================
|
|
547
|
+
// PRIVATE METHODS - Field Names
|
|
548
|
+
// ========================================
|
|
549
|
+
/**
|
|
550
|
+
* Resolve field name mapping.
|
|
551
|
+
* @param field - Field key.
|
|
552
|
+
* @returns Mapped field name.
|
|
553
|
+
*/
|
|
554
|
+
getFieldName(field) {
|
|
555
|
+
if (this.fieldNames && this.fieldNames[field]) {
|
|
556
|
+
return this.fieldNames[field];
|
|
557
|
+
}
|
|
558
|
+
return field;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Get node title using field mapping.
|
|
562
|
+
* @param node - Tree node.
|
|
563
|
+
* @returns Node title.
|
|
564
|
+
*/
|
|
565
|
+
getNodeTitle(node) {
|
|
566
|
+
const field = this.getFieldName('title');
|
|
567
|
+
return node[field] || node.title || '';
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Get node value using field mapping.
|
|
571
|
+
* @param node - Tree node.
|
|
572
|
+
* @returns Node value.
|
|
573
|
+
*/
|
|
574
|
+
getNodeValue(node) {
|
|
575
|
+
const field = this.getFieldName('value');
|
|
576
|
+
return node[field] || node.value || node.key || '';
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Get node children using field mapping.
|
|
580
|
+
* @param node - Tree node.
|
|
581
|
+
* @returns Array of children or undefined.
|
|
582
|
+
*/
|
|
583
|
+
getNodeChildren(node) {
|
|
584
|
+
const field = this.getFieldName('children');
|
|
585
|
+
return node[field] || node.children;
|
|
586
|
+
}
|
|
587
|
+
// ========================================
|
|
588
|
+
// PRIVATE METHODS - Tree Operations
|
|
589
|
+
// ========================================
|
|
590
|
+
/**
|
|
591
|
+
* Determine if component is in multiple selection mode.
|
|
592
|
+
* @returns True if multiple or checkable.
|
|
593
|
+
*/
|
|
594
|
+
isMultiple() {
|
|
595
|
+
return this.multiple || this.treeCheckable;
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Sync value prop into selected/checked keys state.
|
|
599
|
+
*
|
|
600
|
+
* Flow:
|
|
601
|
+
* 1. If checkable: update `checkedKeys` and calculate `halfCheckedKeys` (if not strict).
|
|
602
|
+
* 2. If multiple: update `selectedKeys` array.
|
|
603
|
+
* 3. If single: update `selectedKeys` with single value.
|
|
604
|
+
*/
|
|
605
|
+
syncValueToState() {
|
|
606
|
+
if (this.treeCheckable) {
|
|
607
|
+
const rawValues = Array.isArray(this.value) ? [...this.value] : (this.value ? [this.value] : []);
|
|
608
|
+
this.checkedKeys = this.expandCheckedKeys(rawValues);
|
|
609
|
+
if (!this.treeCheckStrictly) {
|
|
610
|
+
// Recalculate to ensure consistency (e.g. if parent provided, ensure children added)
|
|
611
|
+
// expandCheckedKeys does this, but recalcCheckedKeys ensures bottom-up consistency
|
|
612
|
+
this.checkedKeys = this.recalcCheckedKeys(this.checkedKeys);
|
|
613
|
+
this.halfCheckedKeys = this.calculateHalfCheckedKeys();
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
else if (this.multiple) {
|
|
617
|
+
this.selectedKeys = Array.isArray(this.value) ? [...this.value] : (this.value ? [this.value] : []);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
this.selectedKeys = this.value ? [this.value] : [];
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Expand parent keys to include all descendants (for cascade mode).
|
|
625
|
+
* @param keys - Initial keys (potentially parents).
|
|
626
|
+
* @returns Array of keys including descendants.
|
|
627
|
+
*/
|
|
628
|
+
expandCheckedKeys(keys) {
|
|
629
|
+
if (this.treeCheckStrictly)
|
|
630
|
+
return keys;
|
|
631
|
+
const expanded = new Set(keys);
|
|
632
|
+
const traverse = (node) => {
|
|
633
|
+
const children = this.getNodeChildren(node);
|
|
634
|
+
if (expanded.has(this.treeService.getId(node))) {
|
|
635
|
+
// Add all descendants
|
|
636
|
+
const addDescendants = (n) => {
|
|
637
|
+
expanded.add(this.treeService.getId(n));
|
|
638
|
+
const kids = this.getNodeChildren(n);
|
|
639
|
+
if (kids)
|
|
640
|
+
kids.forEach(addDescendants);
|
|
641
|
+
};
|
|
642
|
+
if (children)
|
|
643
|
+
children.forEach(addDescendants);
|
|
644
|
+
}
|
|
645
|
+
else if (children) {
|
|
646
|
+
children.forEach(traverse);
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
this.treeData.forEach(traverse);
|
|
650
|
+
return Array.from(expanded);
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Recalculate checked keys from bottom up to ensure consistency.
|
|
654
|
+
* If all children checked -> check parent.
|
|
655
|
+
* If not all children checked -> uncheck parent.
|
|
656
|
+
* @param currentChecked - Current checked keys.
|
|
657
|
+
* @returns Consistent checked keys.
|
|
658
|
+
*/
|
|
659
|
+
recalcCheckedKeys(currentChecked) {
|
|
660
|
+
if (this.treeCheckStrictly)
|
|
661
|
+
return currentChecked;
|
|
662
|
+
const checkedSet = new Set(currentChecked);
|
|
663
|
+
// Returns: 0 (none), 1 (some), 2 (all)
|
|
664
|
+
const check = (node) => {
|
|
665
|
+
const children = this.getNodeChildren(node);
|
|
666
|
+
const key = node.key || this.getNodeValue(node);
|
|
667
|
+
if (!children || children.length === 0) {
|
|
668
|
+
return checkedSet.has(key) ? 2 : 0;
|
|
669
|
+
}
|
|
670
|
+
let all = true;
|
|
671
|
+
let some = false;
|
|
672
|
+
for (const child of children) {
|
|
673
|
+
const status = check(child);
|
|
674
|
+
if (status !== 2)
|
|
675
|
+
all = false;
|
|
676
|
+
if (status > 0) {
|
|
677
|
+
some = true;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
if (all) {
|
|
681
|
+
checkedSet.add(key);
|
|
682
|
+
return 2;
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
checkedSet.delete(key);
|
|
686
|
+
// If some children are checked, parent is indeterminate (handled by halfCheckedKeys)
|
|
687
|
+
// But parent itself is NOT checked.
|
|
688
|
+
return some ? 1 : 0;
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
this.treeData.forEach(check);
|
|
692
|
+
return Array.from(checkedSet);
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Get values based on showCheckedStrategy.
|
|
696
|
+
* @param checkedKeys - All checked keys.
|
|
697
|
+
* @returns Filtered keys.
|
|
698
|
+
*/
|
|
699
|
+
getCheckedStrategyValues(checkedKeys) {
|
|
700
|
+
if (this.treeCheckStrictly)
|
|
701
|
+
return checkedKeys;
|
|
702
|
+
const strategy = this.showCheckedStrategy;
|
|
703
|
+
if (strategy === 'SHOW_ALL')
|
|
704
|
+
return checkedKeys;
|
|
705
|
+
const result = [];
|
|
706
|
+
const checkedSet = new Set(checkedKeys);
|
|
707
|
+
const traverse = (node) => {
|
|
708
|
+
const key = node.key;
|
|
709
|
+
const isChecked = checkedSet.has(key);
|
|
710
|
+
const children = this.getNodeChildren(node);
|
|
711
|
+
if (isChecked) {
|
|
712
|
+
if (strategy === 'SHOW_PARENT') {
|
|
713
|
+
result.push(key);
|
|
714
|
+
return; // Don't traverse children
|
|
715
|
+
}
|
|
716
|
+
else if (strategy === 'SHOW_CHILD') {
|
|
717
|
+
if (!children || children.length === 0) {
|
|
718
|
+
result.push(key);
|
|
719
|
+
}
|
|
720
|
+
else {
|
|
721
|
+
if (children)
|
|
722
|
+
children.forEach(traverse);
|
|
723
|
+
}
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
if (children) {
|
|
728
|
+
children.forEach(traverse);
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
this.treeData.forEach(traverse);
|
|
732
|
+
return result;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Get parent keys path for given value(s).
|
|
736
|
+
*
|
|
737
|
+
* Flow:
|
|
738
|
+
* 1. Iterate over each selected value.
|
|
739
|
+
* 2. Traverse tree using TreeService to find path from root to node.
|
|
740
|
+
* @param value - Selected value(s).
|
|
741
|
+
* @returns Unique array of parent keys.
|
|
742
|
+
*/
|
|
743
|
+
getParentKeys(value) {
|
|
744
|
+
const values = Array.isArray(value) ? value : [value];
|
|
745
|
+
const parentKeys = [];
|
|
746
|
+
for (const val of values) {
|
|
747
|
+
const path = this.treeService.getParentIdsPath(val, this.treeData);
|
|
748
|
+
parentKeys.push(...path);
|
|
749
|
+
}
|
|
750
|
+
return [...new Set(parentKeys)];
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Find node by key or value recursively.
|
|
754
|
+
* @param key - Node key or value.
|
|
755
|
+
* @returns Found node or null.
|
|
756
|
+
*/
|
|
757
|
+
findNode(key) {
|
|
758
|
+
const find = (nodes) => {
|
|
759
|
+
for (const node of nodes) {
|
|
760
|
+
if (String(node.key) === String(key) || String(this.getNodeValue(node)) === String(key))
|
|
761
|
+
return node;
|
|
762
|
+
const children = this.getNodeChildren(node);
|
|
763
|
+
if (children) {
|
|
764
|
+
const found = find(children);
|
|
765
|
+
if (found)
|
|
766
|
+
return found;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
return null;
|
|
770
|
+
};
|
|
771
|
+
return find(this.treeData);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Get labels for currently selected keys.
|
|
775
|
+
* @returns Array of labels.
|
|
776
|
+
*/
|
|
777
|
+
getSelectedLabels() {
|
|
778
|
+
const keys = this.treeCheckable
|
|
779
|
+
? (Array.isArray(this.value) ? this.value : [])
|
|
780
|
+
: this.selectedKeys;
|
|
781
|
+
return keys.map(key => {
|
|
782
|
+
const node = this.findNode(key);
|
|
783
|
+
return node ? this.getNodeTitle(node) : key;
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Get all descendant keys for a node.
|
|
788
|
+
* @param node - Tree node.
|
|
789
|
+
* @returns Array of all child keys.
|
|
790
|
+
*/
|
|
791
|
+
getAllChildKeys(node) {
|
|
792
|
+
return this.treeService.getAllChildIds(node);
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Calculate half-checked keys based on current checked state.
|
|
796
|
+
*
|
|
797
|
+
* Flow:
|
|
798
|
+
* 1. Traverse tree bottom-up (implicitly via recursion).
|
|
799
|
+
* 2. If node has children, check their checked status.
|
|
800
|
+
* 3. If some children checked but not all, mark node as half-checked.
|
|
801
|
+
* @returns Array of half-checked keys.
|
|
802
|
+
*/
|
|
803
|
+
calculateHalfCheckedKeys() {
|
|
804
|
+
return this.treeService.calculateHalfCheckedKeys(this.checkedKeys, this.treeData);
|
|
805
|
+
}
|
|
806
|
+
// ========================================
|
|
807
|
+
// PRIVATE METHODS - Actions
|
|
808
|
+
// ========================================
|
|
809
|
+
openDropdown() {
|
|
810
|
+
if (this.disabled || this.open)
|
|
811
|
+
return;
|
|
812
|
+
if (this.treeExpandedKeys) {
|
|
813
|
+
this.expandedKeys = [...this.treeExpandedKeys];
|
|
814
|
+
}
|
|
815
|
+
else if (this.defaultExpandAll) {
|
|
816
|
+
this.expandedKeys = this.treeService.getAllKeys(this.treeData);
|
|
817
|
+
}
|
|
818
|
+
else if (this.value && (Array.isArray(this.value) ? this.value.length > 0 : true) && this.treeDefaultExpandParent) {
|
|
819
|
+
const parents = this.getParentKeys(this.value);
|
|
820
|
+
this.expandedKeys = [...new Set([...this.expandedKeys, ...parents])];
|
|
821
|
+
}
|
|
822
|
+
this.open = true;
|
|
823
|
+
requestAnimationFrame(() => {
|
|
824
|
+
if (this.wrapperRef && this.popupMatchSelectWidth) {
|
|
825
|
+
this.dropdownWidth = this.wrapperRef.offsetWidth;
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Close dropdown and reset search.
|
|
831
|
+
*/
|
|
832
|
+
closeDropdown() {
|
|
833
|
+
if (!this.open)
|
|
834
|
+
return;
|
|
835
|
+
// Clear search value when closing
|
|
836
|
+
this.searchValue = '';
|
|
837
|
+
const hasValue = Array.isArray(this.value) ? this.value.length > 0 : !!this.value;
|
|
838
|
+
if (this.treeExpandedKeys) {
|
|
839
|
+
this.expandedKeys = [...this.treeExpandedKeys];
|
|
840
|
+
}
|
|
841
|
+
else if (this.defaultExpandAll) {
|
|
842
|
+
this.expandedKeys = this.treeService.getAllKeys(this.treeData);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
let expanded = this.defaultExpandedKeys ? [...this.defaultExpandedKeys] : [];
|
|
846
|
+
if (hasValue && this.treeDefaultExpandParent) {
|
|
847
|
+
const parents = this.getParentKeys(this.value);
|
|
848
|
+
expanded = [...new Set([...expanded, ...parents])];
|
|
849
|
+
}
|
|
850
|
+
this.expandedKeys = expanded;
|
|
851
|
+
}
|
|
852
|
+
this.open = false;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Handle tree node click.
|
|
856
|
+
*
|
|
857
|
+
* Flow:
|
|
858
|
+
* 1. If checkable, toggle check state.
|
|
859
|
+
* 2. If multiple, toggle selection.
|
|
860
|
+
* 3. If single, set selection and close dropdown.
|
|
861
|
+
* @param node - Tree node.
|
|
862
|
+
* @param e - Mouse event.
|
|
863
|
+
*/
|
|
864
|
+
handleNodeClick(node, e) {
|
|
865
|
+
e.stopPropagation();
|
|
866
|
+
if (node.disabled)
|
|
867
|
+
return;
|
|
868
|
+
if (this.treeCheckable) {
|
|
869
|
+
this.handleNodeCheck(node);
|
|
870
|
+
}
|
|
871
|
+
else if (this.multiple) {
|
|
872
|
+
this.handleMultipleSelect(node);
|
|
873
|
+
}
|
|
874
|
+
else {
|
|
875
|
+
this.handleSingleSelect(node);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Handle node check/uncheck.
|
|
880
|
+
*
|
|
881
|
+
* Flow:
|
|
882
|
+
* 1. Determine if strict or cascade mode.
|
|
883
|
+
* 2. Update `checkedKeys` (and `halfCheckedKeys` if cascading).
|
|
884
|
+
* 3. Update `value` prop.
|
|
885
|
+
* 4. Emit `xChange` event.
|
|
886
|
+
* @param node - Tree node.
|
|
887
|
+
*/
|
|
888
|
+
handleNodeCheck(node) {
|
|
889
|
+
const key = node.key || this.getNodeValue(node);
|
|
890
|
+
const isChecked = this.checkedKeys.includes(key);
|
|
891
|
+
const result = this.treeService.toggleCheck(node, isChecked, this.checkedKeys, this.treeData, this.treeCheckStrictly);
|
|
892
|
+
this.checkedKeys = result.checkedKeys;
|
|
893
|
+
if (!this.treeCheckStrictly) {
|
|
894
|
+
this.halfCheckedKeys = result.halfCheckedKeys;
|
|
895
|
+
}
|
|
896
|
+
const strategyValues = this.getCheckedStrategyValues(this.checkedKeys);
|
|
897
|
+
this.value = strategyValues;
|
|
898
|
+
this.xChange.emit({
|
|
899
|
+
value: strategyValues,
|
|
900
|
+
label: this.getSelectedLabels(),
|
|
901
|
+
nodes: strategyValues.map(k => this.findNode(k)).filter(Boolean),
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Handle multiple selection for node.
|
|
906
|
+
* @param node - Tree node.
|
|
907
|
+
*/
|
|
908
|
+
handleMultipleSelect(node) {
|
|
909
|
+
this.selectedKeys = this.treeService.toggleSelect(node, this.selectedKeys, true);
|
|
910
|
+
this.value = [...this.selectedKeys];
|
|
911
|
+
this.xChange.emit({
|
|
912
|
+
value: this.selectedKeys,
|
|
913
|
+
label: this.getSelectedLabels(),
|
|
914
|
+
nodes: this.selectedKeys.map(k => this.findNode(k)).filter(Boolean),
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Handle single selection for node.
|
|
919
|
+
* @param node - Tree node.
|
|
920
|
+
*/
|
|
921
|
+
handleSingleSelect(node) {
|
|
922
|
+
this.selectedKeys = [node.key];
|
|
923
|
+
this.value = this.getNodeValue(node);
|
|
924
|
+
this.xChange.emit({
|
|
925
|
+
value: this.value,
|
|
926
|
+
label: this.getNodeTitle(node),
|
|
927
|
+
node: node,
|
|
928
|
+
});
|
|
929
|
+
this.closeDropdown();
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Handle node expand/collapse.
|
|
933
|
+
* @param node - Tree node.
|
|
934
|
+
* @param e - Mouse event.
|
|
935
|
+
*/
|
|
936
|
+
handleNodeExpand(node, e) {
|
|
937
|
+
e.stopPropagation();
|
|
938
|
+
this.expandedKeys = this.treeService.toggleExpand(node, this.expandedKeys);
|
|
939
|
+
this.xTreeExpand.emit({ expandedKeys: this.expandedKeys });
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Handle search input changes.
|
|
943
|
+
*
|
|
944
|
+
* Flow:
|
|
945
|
+
* 1. Update search value state.
|
|
946
|
+
* 2. Emit `xSearch` event.
|
|
947
|
+
* 3. If searching, find and expand parent nodes of matched items.
|
|
948
|
+
* 4. If clearing search, reset expanded keys to default.
|
|
949
|
+
* @param e - Input event.
|
|
950
|
+
*/
|
|
951
|
+
handleSearch(e) {
|
|
952
|
+
const value = e.target.value;
|
|
953
|
+
this.searchValue = value;
|
|
954
|
+
this.xSearch.emit({ value });
|
|
955
|
+
// Auto expand matched nodes
|
|
956
|
+
if (value) {
|
|
957
|
+
// When searching, we only expand the matched parents
|
|
958
|
+
const matchedParents = this.getMatchedParentKeys(value);
|
|
959
|
+
this.expandedKeys = [...new Set(matchedParents)];
|
|
960
|
+
}
|
|
961
|
+
else {
|
|
962
|
+
// When clearing search, reset to default expanded keys
|
|
963
|
+
if (this.treeExpandedKeys) {
|
|
964
|
+
this.expandedKeys = [...this.treeExpandedKeys];
|
|
965
|
+
}
|
|
966
|
+
else if (this.defaultExpandAll) {
|
|
967
|
+
this.expandedKeys = this.treeService.getAllKeys(this.treeData);
|
|
968
|
+
}
|
|
969
|
+
else if (this.value && (Array.isArray(this.value) ? this.value.length > 0 : true) && this.treeDefaultExpandParent) {
|
|
970
|
+
const parents = this.getParentKeys(this.value);
|
|
971
|
+
this.expandedKeys = [...new Set([...this.expandedKeys, ...parents])];
|
|
972
|
+
}
|
|
973
|
+
else {
|
|
974
|
+
this.expandedKeys = [...this.defaultExpandedKeys];
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
this.updatePortal();
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* Collect parent keys of nodes matching search.
|
|
981
|
+
* @param searchValue - Search text.
|
|
982
|
+
* @returns Array of parent keys.
|
|
983
|
+
*/
|
|
984
|
+
getMatchedParentKeys(searchValue) {
|
|
985
|
+
const parentKeys = [];
|
|
986
|
+
const searchLower = searchValue.toLowerCase();
|
|
987
|
+
const traverse = (nodes, path = []) => {
|
|
988
|
+
for (const node of nodes) {
|
|
989
|
+
const title = this.getNodeTitle(node).toLowerCase();
|
|
990
|
+
const children = this.getNodeChildren(node);
|
|
991
|
+
const key = node.key ?? this.getNodeValue(node);
|
|
992
|
+
if (title.includes(searchLower)) {
|
|
993
|
+
parentKeys.push(...path);
|
|
994
|
+
}
|
|
995
|
+
if (children) {
|
|
996
|
+
traverse(children, [...path, key]);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
traverse(this.treeData);
|
|
1001
|
+
return parentKeys;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* Handle clear action.
|
|
1005
|
+
*
|
|
1006
|
+
* Flow:
|
|
1007
|
+
* 1. Reset all selection and search states.
|
|
1008
|
+
* 2. Emit `xChange` with empty/null value.
|
|
1009
|
+
* @param e - Mouse event.
|
|
1010
|
+
*/
|
|
1011
|
+
handleClear(e) {
|
|
1012
|
+
e.preventDefault();
|
|
1013
|
+
e.stopPropagation();
|
|
1014
|
+
this.selectedKeys = [];
|
|
1015
|
+
this.checkedKeys = [];
|
|
1016
|
+
this.halfCheckedKeys = [];
|
|
1017
|
+
this.value = this.isMultiple() ? [] : undefined;
|
|
1018
|
+
this.searchValue = '';
|
|
1019
|
+
this.xChange.emit({
|
|
1020
|
+
value: this.isMultiple() ? [] : null,
|
|
1021
|
+
label: [],
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* Remove tag by key.
|
|
1026
|
+
*
|
|
1027
|
+
* Flow:
|
|
1028
|
+
* 1. If checkable: update `checkedKeys` (and `halfCheckedKeys` if cascading).
|
|
1029
|
+
* 2. Otherwise: filter `selectedKeys`.
|
|
1030
|
+
* 3. Update `value` prop.
|
|
1031
|
+
* 4. Emit `xChange`.
|
|
1032
|
+
* @param key - Node key.
|
|
1033
|
+
* @param e - Mouse event.
|
|
1034
|
+
*/
|
|
1035
|
+
removeTag(key, e) {
|
|
1036
|
+
e.stopPropagation();
|
|
1037
|
+
if (this.treeCheckable) {
|
|
1038
|
+
const node = this.findNode(key);
|
|
1039
|
+
if (node && !this.treeCheckStrictly) {
|
|
1040
|
+
const allChildKeys = this.getAllChildKeys(node);
|
|
1041
|
+
const toRemove = new Set([key, ...allChildKeys]);
|
|
1042
|
+
this.checkedKeys = this.checkedKeys.filter(k => !toRemove.has(k));
|
|
1043
|
+
this.checkedKeys = this.recalcCheckedKeys(this.checkedKeys);
|
|
1044
|
+
this.halfCheckedKeys = this.calculateHalfCheckedKeys();
|
|
1045
|
+
}
|
|
1046
|
+
else {
|
|
1047
|
+
this.checkedKeys = this.checkedKeys.filter(k => k !== key);
|
|
1048
|
+
}
|
|
1049
|
+
this.value = this.getCheckedStrategyValues(this.checkedKeys);
|
|
1050
|
+
}
|
|
1051
|
+
else {
|
|
1052
|
+
this.selectedKeys = this.selectedKeys.filter(k => k !== key);
|
|
1053
|
+
this.value = [...this.selectedKeys];
|
|
1054
|
+
}
|
|
1055
|
+
this.xChange.emit({
|
|
1056
|
+
value: this.value,
|
|
1057
|
+
label: this.getSelectedLabels(),
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Remove last selected tag.
|
|
1062
|
+
*/
|
|
1063
|
+
removeLastTag() {
|
|
1064
|
+
const keys = this.treeCheckable ? this.checkedKeys : this.selectedKeys;
|
|
1065
|
+
if (keys.length > 0) {
|
|
1066
|
+
const lastKey = keys[keys.length - 1];
|
|
1067
|
+
this.removeTag(lastKey, new MouseEvent('click'));
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Handle selector click to open dropdown.
|
|
1072
|
+
*/
|
|
1073
|
+
handleSelectorClick = () => {
|
|
1074
|
+
if (!this.disabled) {
|
|
1075
|
+
this.openDropdown();
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* Handle input focus.
|
|
1080
|
+
* @param e - Focus event.
|
|
1081
|
+
*/
|
|
1082
|
+
handleInputFocus = (e) => {
|
|
1083
|
+
this.focused = true;
|
|
1084
|
+
this.xFocus.emit(e);
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* Handle input blur.
|
|
1088
|
+
* @param e - Focus event.
|
|
1089
|
+
*/
|
|
1090
|
+
handleInputBlur = (e) => {
|
|
1091
|
+
setTimeout(() => {
|
|
1092
|
+
this.focused = false;
|
|
1093
|
+
this.xBlur.emit(e);
|
|
1094
|
+
}, 150);
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Track hover state on wrapper enter.
|
|
1098
|
+
*/
|
|
1099
|
+
handleMouseEnter = () => {
|
|
1100
|
+
this.hovering = true;
|
|
1101
|
+
};
|
|
1102
|
+
/**
|
|
1103
|
+
* Track hover state on wrapper leave.
|
|
1104
|
+
*/
|
|
1105
|
+
handleMouseLeave = () => {
|
|
1106
|
+
this.hovering = false;
|
|
1107
|
+
};
|
|
1108
|
+
// ========================================
|
|
1109
|
+
// PRIVATE METHODS - Portal Management
|
|
1110
|
+
// ========================================
|
|
1111
|
+
/**
|
|
1112
|
+
* Get wrapper element for portal.
|
|
1113
|
+
* @returns Wrapper element or undefined.
|
|
1114
|
+
*/
|
|
1115
|
+
getWrapperEl() {
|
|
1116
|
+
return this.wrapperRef || undefined;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Build dropdown content element and wire events.
|
|
1120
|
+
*
|
|
1121
|
+
* Flow:
|
|
1122
|
+
* 1. Create `x-tree-select-dropdown-content` if not exists.
|
|
1123
|
+
* 2. Attach selection, expansion, and check event listeners.
|
|
1124
|
+
* 3. Filter tree data based on search value.
|
|
1125
|
+
* 4. Sync current component state to dropdown element props.
|
|
1126
|
+
* @returns Dropdown element.
|
|
1127
|
+
*/
|
|
1128
|
+
buildDropdownElement() {
|
|
1129
|
+
if (!this.dropdownEl) {
|
|
1130
|
+
this.dropdownEl = document.createElement('x-tree-select-dropdown-content');
|
|
1131
|
+
// Event listeners - Add only once
|
|
1132
|
+
this.dropdownEl.addEventListener('xNodeClick', ((e) => {
|
|
1133
|
+
const { node, value } = e.detail;
|
|
1134
|
+
this.handleNodeSelect(node, value);
|
|
1135
|
+
}));
|
|
1136
|
+
this.dropdownEl.addEventListener('xNodeExpand', ((e) => {
|
|
1137
|
+
const { node, expanded } = e.detail;
|
|
1138
|
+
this.handleNodeExpandFromEvent(node, expanded);
|
|
1139
|
+
// We might need to update portal if size changes, but since we reuse element, internal update might be enough
|
|
1140
|
+
// or trigger updatePortal position
|
|
1141
|
+
this.updatePortal();
|
|
1142
|
+
}));
|
|
1143
|
+
this.dropdownEl.addEventListener('xNodeCheck', ((e) => {
|
|
1144
|
+
const { node, checked } = e.detail;
|
|
1145
|
+
this.handleNodeCheckFromEvent(node, checked);
|
|
1146
|
+
this.updatePortal();
|
|
1147
|
+
}));
|
|
1148
|
+
}
|
|
1149
|
+
const dropdownEl = this.dropdownEl;
|
|
1150
|
+
const classes = {
|
|
1151
|
+
'x-tree-select-dropdown': true,
|
|
1152
|
+
'x-tree-select-dropdown-hidden': !this.open,
|
|
1153
|
+
[`x-tree-select-dropdown-placement-${this.placement}`]: true,
|
|
1154
|
+
};
|
|
1155
|
+
// Get filtered tree data if showSearch and has searchValue
|
|
1156
|
+
const filteredTreeData = this.showSearch && this.searchValue
|
|
1157
|
+
? this.filterTree(this.treeData, this.searchValue)
|
|
1158
|
+
: this.treeData;
|
|
1159
|
+
dropdownEl.dropdownClasses = classes;
|
|
1160
|
+
dropdownEl.dropdownStyle = {};
|
|
1161
|
+
dropdownEl.treeData = filteredTreeData;
|
|
1162
|
+
dropdownEl.selectedValues = this.getSelectedValues();
|
|
1163
|
+
dropdownEl.expandedKeys = this.expandedKeys;
|
|
1164
|
+
dropdownEl.checkedKeys = this.checkedKeys || [];
|
|
1165
|
+
dropdownEl.halfCheckedKeys = this.halfCheckedKeys || [];
|
|
1166
|
+
dropdownEl.multiple = this.multiple;
|
|
1167
|
+
dropdownEl.treeCheckable = this.treeCheckable;
|
|
1168
|
+
dropdownEl.treeLine = this.treeLine;
|
|
1169
|
+
dropdownEl.fieldNames = this.fieldNames;
|
|
1170
|
+
dropdownEl.notFoundContent = this.notFoundContent || 'No data';
|
|
1171
|
+
dropdownEl.searchValue = this.searchValue;
|
|
1172
|
+
return dropdownEl;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Create portal or update existing instance.
|
|
1176
|
+
*
|
|
1177
|
+
* Flow:
|
|
1178
|
+
* 1. Build dropdown content.
|
|
1179
|
+
* 2. Calculate popup width if required.
|
|
1180
|
+
* 3. Create or update `PortalController` instance.
|
|
1181
|
+
*/
|
|
1182
|
+
createOrUpdatePortal() {
|
|
1183
|
+
if (!this.open)
|
|
1184
|
+
return;
|
|
1185
|
+
const triggerEl = this.getWrapperEl();
|
|
1186
|
+
if (!triggerEl)
|
|
1187
|
+
return;
|
|
1188
|
+
const dropdownContent = this.buildDropdownElement();
|
|
1189
|
+
// Calculate width
|
|
1190
|
+
if (this.popupMatchSelectWidth) {
|
|
1191
|
+
this.dropdownWidth = triggerEl.offsetWidth;
|
|
1192
|
+
}
|
|
1193
|
+
if (!this.portalInstance) {
|
|
1194
|
+
this.portalInstance = PortalController.create({
|
|
1195
|
+
open: true,
|
|
1196
|
+
target: triggerEl,
|
|
1197
|
+
placement: this.placement,
|
|
1198
|
+
zIndex: 1050,
|
|
1199
|
+
width: this.popupMatchSelectWidth && this.dropdownWidth > 0 ? `${this.dropdownWidth}px` : undefined,
|
|
1200
|
+
content: dropdownContent,
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
else {
|
|
1204
|
+
this.portalInstance.update({
|
|
1205
|
+
open: true,
|
|
1206
|
+
target: triggerEl,
|
|
1207
|
+
placement: this.placement,
|
|
1208
|
+
zIndex: 1050,
|
|
1209
|
+
width: this.popupMatchSelectWidth && this.dropdownWidth > 0 ? `${this.dropdownWidth}px` : undefined,
|
|
1210
|
+
content: dropdownContent,
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Update portal content and placement.
|
|
1216
|
+
*/
|
|
1217
|
+
updatePortal() {
|
|
1218
|
+
if (!this.open || !this.portalInstance)
|
|
1219
|
+
return;
|
|
1220
|
+
const triggerEl = this.getWrapperEl();
|
|
1221
|
+
if (!triggerEl)
|
|
1222
|
+
return;
|
|
1223
|
+
const dropdownContent = this.buildDropdownElement();
|
|
1224
|
+
this.portalInstance.update({
|
|
1225
|
+
open: true,
|
|
1226
|
+
target: triggerEl,
|
|
1227
|
+
placement: this.placement,
|
|
1228
|
+
zIndex: 1050,
|
|
1229
|
+
width: this.popupMatchSelectWidth && this.dropdownWidth > 0 ? `${this.dropdownWidth}px` : undefined,
|
|
1230
|
+
content: dropdownContent,
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
// ========================================
|
|
1234
|
+
// PRIVATE METHODS - Selection Helpers
|
|
1235
|
+
// ========================================
|
|
1236
|
+
/**
|
|
1237
|
+
* Get selected values based on checkable mode.
|
|
1238
|
+
* @returns Array of selected/checked values.
|
|
1239
|
+
*/
|
|
1240
|
+
getSelectedValues() {
|
|
1241
|
+
if (this.treeCheckable) {
|
|
1242
|
+
return this.checkedKeys || [];
|
|
1243
|
+
}
|
|
1244
|
+
return this.selectedKeys || [];
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Filter tree nodes by search value recursively.
|
|
1248
|
+
*
|
|
1249
|
+
* Flow:
|
|
1250
|
+
* 1. Traverse nodes.
|
|
1251
|
+
* 2. Include node if title matches or any child matches.
|
|
1252
|
+
* 3. If node matches, keep all its children.
|
|
1253
|
+
* @param nodes - Tree nodes.
|
|
1254
|
+
* @param searchValue - Search text.
|
|
1255
|
+
* @returns Filtered tree nodes.
|
|
1256
|
+
*/
|
|
1257
|
+
filterTree(nodes, searchValue) {
|
|
1258
|
+
return this.treeService.filterTree(nodes, searchValue, (node, search) => {
|
|
1259
|
+
if (this.filterTreeNode) {
|
|
1260
|
+
return this.filterTreeNode(search, node);
|
|
1261
|
+
}
|
|
1262
|
+
const searchLower = search.toLowerCase();
|
|
1263
|
+
const title = this.getNodeTitle(node).toLowerCase();
|
|
1264
|
+
return title.includes(searchLower);
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Handle node selection from dropdown events.
|
|
1269
|
+
* @param node - Tree node.
|
|
1270
|
+
* @param _value - Node value.
|
|
1271
|
+
*/
|
|
1272
|
+
handleNodeSelect(node, _value) {
|
|
1273
|
+
if (node.disabled)
|
|
1274
|
+
return;
|
|
1275
|
+
if (this.treeCheckable) {
|
|
1276
|
+
this.handleNodeCheck(node);
|
|
1277
|
+
}
|
|
1278
|
+
else if (this.multiple) {
|
|
1279
|
+
this.handleMultipleSelect(node);
|
|
1280
|
+
}
|
|
1281
|
+
else {
|
|
1282
|
+
this.handleSingleSelect(node);
|
|
1283
|
+
}
|
|
1284
|
+
this.updatePortal();
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Handle expand event from dropdown.
|
|
1288
|
+
* @param node - Tree node.
|
|
1289
|
+
* @param expanded - Expanded state.
|
|
1290
|
+
*/
|
|
1291
|
+
handleNodeExpandFromEvent(node, expanded) {
|
|
1292
|
+
const key = node.key || this.getNodeValue(node);
|
|
1293
|
+
if (expanded) {
|
|
1294
|
+
this.expandedKeys = [...this.expandedKeys, key];
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
this.expandedKeys = this.expandedKeys.filter(k => k !== key);
|
|
1298
|
+
}
|
|
1299
|
+
this.xTreeExpand.emit({ expandedKeys: this.expandedKeys });
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Handle check event from dropdown.
|
|
1303
|
+
*
|
|
1304
|
+
* Flow:
|
|
1305
|
+
* 1. Determine strict or cascade mode.
|
|
1306
|
+
* 2. Update `checkedKeys` and `halfCheckedKeys`.
|
|
1307
|
+
* 3. Update `value` prop and emit `xChange`.
|
|
1308
|
+
* @param node - Tree node.
|
|
1309
|
+
* @param checked - Checked state.
|
|
1310
|
+
*/
|
|
1311
|
+
handleNodeCheckFromEvent(node, checked) {
|
|
1312
|
+
const result = this.treeService.toggleCheck(node, checked, this.checkedKeys, this.treeData, this.treeCheckStrictly);
|
|
1313
|
+
this.checkedKeys = result.checkedKeys;
|
|
1314
|
+
if (!this.treeCheckStrictly) {
|
|
1315
|
+
this.halfCheckedKeys = result.halfCheckedKeys;
|
|
1316
|
+
}
|
|
1317
|
+
const strategyValues = this.getCheckedStrategyValues(this.checkedKeys);
|
|
1318
|
+
this.value = strategyValues;
|
|
1319
|
+
this.xChange.emit({
|
|
1320
|
+
value: strategyValues,
|
|
1321
|
+
label: this.getSelectedLabels(),
|
|
1322
|
+
nodes: strategyValues.map(k => this.findNode(k)).filter(Boolean),
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
// ========================================
|
|
1326
|
+
// PRIVATE METHODS - Filtering
|
|
1327
|
+
// ========================================
|
|
1328
|
+
/**
|
|
1329
|
+
* Match node against search value.
|
|
1330
|
+
* @param node - Tree node.
|
|
1331
|
+
* @returns True if matches.
|
|
1332
|
+
*/
|
|
1333
|
+
matchSearch(node) {
|
|
1334
|
+
if (!this.searchValue)
|
|
1335
|
+
return true;
|
|
1336
|
+
if (this.filterTreeNode) {
|
|
1337
|
+
return this.filterTreeNode(this.searchValue, node);
|
|
1338
|
+
}
|
|
1339
|
+
const searchLower = this.searchValue.toLowerCase();
|
|
1340
|
+
const title = this.getNodeTitle(node).toLowerCase();
|
|
1341
|
+
return title.includes(searchLower);
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Check if node has children matching search.
|
|
1345
|
+
* @param node - Tree node.
|
|
1346
|
+
* @returns True if any child matches.
|
|
1347
|
+
*/
|
|
1348
|
+
hasMatchedChildren(node) {
|
|
1349
|
+
const children = this.getNodeChildren(node);
|
|
1350
|
+
if (!children)
|
|
1351
|
+
return false;
|
|
1352
|
+
return children.some(child => this.matchSearch(child) || this.hasMatchedChildren(child));
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Determine whether to show node in filtered view.
|
|
1356
|
+
* @param node - Tree node.
|
|
1357
|
+
* @returns True if node or children match.
|
|
1358
|
+
*/
|
|
1359
|
+
shouldShowNode(node) {
|
|
1360
|
+
if (!this.searchValue)
|
|
1361
|
+
return true;
|
|
1362
|
+
return this.matchSearch(node) || this.hasMatchedChildren(node);
|
|
1363
|
+
}
|
|
1364
|
+
// ========================================
|
|
1365
|
+
// RENDER METHODS - Icons
|
|
1366
|
+
// ========================================
|
|
1367
|
+
/**
|
|
1368
|
+
* Render arrow icon.
|
|
1369
|
+
* @returns JSX.Element
|
|
1370
|
+
*/
|
|
1371
|
+
renderArrowIcon() {
|
|
1372
|
+
return (
|
|
1373
|
+
// <svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor" class="x-tree-select-arrow-icon">
|
|
1374
|
+
// <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" />
|
|
1375
|
+
// </svg>
|
|
1376
|
+
h("x-icon", { name: getIcon('arrowDown') }));
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Render clear icon.
|
|
1380
|
+
* @returns JSX.Element
|
|
1381
|
+
*/
|
|
1382
|
+
renderClearIcon() {
|
|
1383
|
+
return (
|
|
1384
|
+
// <svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
|
|
1385
|
+
// <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" />
|
|
1386
|
+
// </svg>
|
|
1387
|
+
h("x-icon", { name: getIcon('clear') }));
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Render loading icon.
|
|
1391
|
+
* @returns JSX.Element
|
|
1392
|
+
*/
|
|
1393
|
+
renderLoadingIcon() {
|
|
1394
|
+
return (
|
|
1395
|
+
// <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor" class="x-tree-select-loading-icon">
|
|
1396
|
+
// <path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 googl874 searching150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" />
|
|
1397
|
+
// </svg>
|
|
1398
|
+
h("x-icon", { spin: true, name: getIcon('loading') }));
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Render switcher icon for tree nodes.
|
|
1402
|
+
* @param expanded - Expanded state.
|
|
1403
|
+
* @returns JSX.Element
|
|
1404
|
+
*/
|
|
1405
|
+
renderSwitcherIcon(expanded) {
|
|
1406
|
+
return (
|
|
1407
|
+
// <svg
|
|
1408
|
+
// viewBox="64 64 896 896"
|
|
1409
|
+
// width="1em"
|
|
1410
|
+
// height="1em"
|
|
1411
|
+
// fill="currentColor"
|
|
1412
|
+
// class={{ 'x-tree-select-switcher-icon': true, 'x-tree-select-switcher-icon-expanded': expanded }}
|
|
1413
|
+
// >
|
|
1414
|
+
// <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" />
|
|
1415
|
+
// </svg>
|
|
1416
|
+
h("x-icon", { class: { 'x-tree-select-switcher-icon': true, 'x-tree-select-switcher-icon-expanded': expanded }, name: getIcon('arrowRight') }));
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Render checkbox for tree node.
|
|
1420
|
+
* @param checked - Checked state.
|
|
1421
|
+
* @param halfChecked - Half checked state.
|
|
1422
|
+
* @returns JSX.Element
|
|
1423
|
+
*/
|
|
1424
|
+
renderCheckbox(checked, halfChecked = false) {
|
|
1425
|
+
return (h("span", { class: {
|
|
1426
|
+
'x-tree-select-checkbox': true,
|
|
1427
|
+
'x-tree-select-checkbox-checked': checked,
|
|
1428
|
+
'x-tree-select-checkbox-indeterminate': halfChecked && !checked,
|
|
1429
|
+
} }, checked && (
|
|
1430
|
+
// <svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
|
|
1431
|
+
// <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" />
|
|
1432
|
+
// </svg>
|
|
1433
|
+
h("x-icon", { name: getIcon('checkSmall') })), halfChecked && !checked && (h("span", { class: "x-tree-select-checkbox-inner-indeterminate" }))));
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Render remove icon for tags.
|
|
1437
|
+
* @returns JSX.Element
|
|
1438
|
+
*/
|
|
1439
|
+
renderRemoveIcon() {
|
|
1440
|
+
return (
|
|
1441
|
+
// <svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
|
|
1442
|
+
// <path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" />
|
|
1443
|
+
// </svg>
|
|
1444
|
+
h("x-icon", { name: getIcon('close') }));
|
|
1445
|
+
}
|
|
1446
|
+
// ========================================
|
|
1447
|
+
// RENDER METHODS - Tree
|
|
1448
|
+
// ========================================
|
|
1449
|
+
/**
|
|
1450
|
+
* Render tree node recursively.
|
|
1451
|
+
*
|
|
1452
|
+
* Flow:
|
|
1453
|
+
* 1. Check if node should be shown.
|
|
1454
|
+
* 2. Determine state (expanded, selected, checked, matched).
|
|
1455
|
+
* 3. Render indentation, switcher, checkbox, and content.
|
|
1456
|
+
* 4. Recursively render children if expanded.
|
|
1457
|
+
* @param node - Tree node.
|
|
1458
|
+
* @param level - Tree level.
|
|
1459
|
+
* @returns JSX element or null.
|
|
1460
|
+
*/
|
|
1461
|
+
renderTreeNode(node, level = 0) {
|
|
1462
|
+
if (!this.shouldShowNode(node))
|
|
1463
|
+
return null;
|
|
1464
|
+
const children = this.getNodeChildren(node);
|
|
1465
|
+
const hasChildren = children && children.length > 0;
|
|
1466
|
+
const isExpanded = this.expandedKeys.includes(node.key);
|
|
1467
|
+
const isSelected = this.selectedKeys.includes(node.key);
|
|
1468
|
+
const isChecked = this.checkedKeys.includes(node.key);
|
|
1469
|
+
const isHalfChecked = this.halfCheckedKeys.includes(node.key);
|
|
1470
|
+
const isDisabled = node.disabled || false;
|
|
1471
|
+
const isMatched = this.matchSearch(node);
|
|
1472
|
+
return (h("div", { class: "x-tree-select-treenode-wrapper", key: node.key }, h("div", { class: {
|
|
1473
|
+
'x-tree-select-treenode': true,
|
|
1474
|
+
'x-tree-select-treenode-switcher-open': isExpanded,
|
|
1475
|
+
'x-tree-select-treenode-switcher-close': !isExpanded && hasChildren,
|
|
1476
|
+
'x-tree-select-treenode-selected': isSelected && !this.treeCheckable,
|
|
1477
|
+
'x-tree-select-treenode-checked': isChecked,
|
|
1478
|
+
'x-tree-select-treenode-disabled': isDisabled,
|
|
1479
|
+
'x-tree-select-treenode-matched': isMatched && !!this.searchValue,
|
|
1480
|
+
} }, level > 0 && (h("span", { class: "x-tree-select-indent" }, Array.from({ length: level }, (_, i) => (h("span", { class: {
|
|
1481
|
+
'x-tree-select-indent-unit': true,
|
|
1482
|
+
'x-tree-select-indent-unit-line': this.treeLine,
|
|
1483
|
+
}, key: i }))))), h("span", { class: {
|
|
1484
|
+
'x-tree-select-switcher': true,
|
|
1485
|
+
'x-tree-select-switcher-leaf': !hasChildren,
|
|
1486
|
+
}, onClick: (e) => hasChildren && this.handleNodeExpand(node, e) }, hasChildren && this.renderSwitcherIcon(isExpanded)), this.treeCheckable && (h("span", { class: {
|
|
1487
|
+
'x-tree-select-checkbox-wrapper': true,
|
|
1488
|
+
'x-tree-select-checkbox-wrapper-disabled': isDisabled || node.disableCheckbox,
|
|
1489
|
+
}, onClick: (e) => !isDisabled && !node.disableCheckbox && this.handleNodeClick(node, e) }, this.renderCheckbox(isChecked, isHalfChecked))), h("span", { class: {
|
|
1490
|
+
'x-tree-select-node-content': true,
|
|
1491
|
+
'x-tree-select-node-content-wrapper': true,
|
|
1492
|
+
}, onClick: (e) => !isDisabled && this.handleNodeClick(node, e) }, h("span", { class: "x-tree-select-title" }, this.renderHighlightedTitle(this.getNodeTitle(node))))), hasChildren && isExpanded && (h("div", { class: "x-tree-select-child-tree" }, children.map(child => this.renderTreeNode(child, level + 1))))));
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Render title with search highlight.
|
|
1496
|
+
* @param title - Node title.
|
|
1497
|
+
* @returns Title with highlight span or plain string.
|
|
1498
|
+
*/
|
|
1499
|
+
renderHighlightedTitle(title) {
|
|
1500
|
+
if (!this.searchValue)
|
|
1501
|
+
return title;
|
|
1502
|
+
const searchLower = this.searchValue.toLowerCase();
|
|
1503
|
+
const titleLower = title.toLowerCase();
|
|
1504
|
+
const index = titleLower.indexOf(searchLower);
|
|
1505
|
+
if (index === -1)
|
|
1506
|
+
return title;
|
|
1507
|
+
const before = title.slice(0, index);
|
|
1508
|
+
const match = title.slice(index, index + this.searchValue.length);
|
|
1509
|
+
const after = title.slice(index + this.searchValue.length);
|
|
1510
|
+
return [
|
|
1511
|
+
before,
|
|
1512
|
+
h("span", { class: "x-tree-select-title-highlight" }, match),
|
|
1513
|
+
after,
|
|
1514
|
+
];
|
|
1515
|
+
}
|
|
1516
|
+
// ========================================
|
|
1517
|
+
// RENDER METHODS - Selector
|
|
1518
|
+
// ========================================
|
|
1519
|
+
/**
|
|
1520
|
+
* Render tags for multiple selection mode.
|
|
1521
|
+
*
|
|
1522
|
+
* Flow:
|
|
1523
|
+
* 1. Calculate tags to display based on `maxTagCount`.
|
|
1524
|
+
* 2. Render each tag with remove icon.
|
|
1525
|
+
* 3. Render rest placeholder if any.
|
|
1526
|
+
* 4. Render search input.
|
|
1527
|
+
* @returns JSX element.
|
|
1528
|
+
*/
|
|
1529
|
+
renderTags() {
|
|
1530
|
+
const keys = this.treeCheckable ? this.checkedKeys : this.selectedKeys;
|
|
1531
|
+
let displayKeys = keys;
|
|
1532
|
+
let restCount = 0;
|
|
1533
|
+
if (this.maxTagCount !== undefined && this.maxTagCount >= 0 && keys.length > this.maxTagCount) {
|
|
1534
|
+
displayKeys = keys.slice(0, this.maxTagCount);
|
|
1535
|
+
restCount = keys.length - this.maxTagCount;
|
|
1536
|
+
}
|
|
1537
|
+
return (h("div", { class: "x-tree-select-selection-overflow" }, displayKeys.map(key => {
|
|
1538
|
+
const node = this.findNode(key);
|
|
1539
|
+
const title = node ? this.getNodeTitle(node) : key;
|
|
1540
|
+
return (h("span", { class: "x-tree-select-selection-item", key: key }, h("span", { class: "x-tree-select-selection-item-content" }, title), h("span", { class: "x-tree-select-selection-item-remove", onClick: (e) => this.removeTag(key, e) }, this.renderRemoveIcon())));
|
|
1541
|
+
}), restCount > 0 && (h("span", { class: "x-tree-select-selection-item x-tree-select-selection-item-rest" }, h("span", { class: "x-tree-select-selection-item-content" }, this.maxTagPlaceholder || `+ ${restCount} ...`))), h("span", { class: "x-tree-select-selection-search" }, h("input", { ref: el => (this.inputRef = el), class: "x-tree-select-selection-search-input", value: this.searchValue, disabled: this.disabled, onInput: (e) => this.handleSearch(e), onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, style: { width: this.searchValue ? `${this.searchValue.length + 1}ch` : '4px' } }))));
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Render selector for single selection mode.
|
|
1545
|
+
* @returns JSX element.
|
|
1546
|
+
*/
|
|
1547
|
+
renderSingleSelector() {
|
|
1548
|
+
const hasValue = this.selectedKeys.length > 0;
|
|
1549
|
+
const label = hasValue ? this.getSelectedLabels()[0] : '';
|
|
1550
|
+
return (h("div", { class: "x-tree-select-selection-search", style: { position: 'relative' } }, hasValue && !this.searchValue && (h("span", { class: "x-tree-select-selection-item", title: label, style: {
|
|
1551
|
+
position: 'absolute',
|
|
1552
|
+
left: '0',
|
|
1553
|
+
top: '0',
|
|
1554
|
+
right: '0',
|
|
1555
|
+
bottom: '0',
|
|
1556
|
+
pointerEvents: 'none',
|
|
1557
|
+
display: 'flex',
|
|
1558
|
+
alignItems: 'center'
|
|
1559
|
+
} }, label)), h("input", { ref: el => (this.inputRef = el), id: this.inputId, name: this.name, class: "x-tree-select-selection-search-input", value: this.showSearch ? this.searchValue : '', placeholder: "", readOnly: !this.showSearch, disabled: this.disabled, autoComplete: "off", onInput: (e) => this.handleSearch(e), onFocus: this.handleInputFocus, onBlur: this.handleInputBlur }), !hasValue && !this.searchValue && (h("span", { class: "x-tree-select-selection-placeholder", style: {
|
|
1560
|
+
position: 'absolute',
|
|
1561
|
+
left: '0',
|
|
1562
|
+
top: '0',
|
|
1563
|
+
right: '0',
|
|
1564
|
+
bottom: '0',
|
|
1565
|
+
pointerEvents: 'none',
|
|
1566
|
+
display: 'flex',
|
|
1567
|
+
alignItems: 'center'
|
|
1568
|
+
} }, this.placeholder))));
|
|
1569
|
+
}
|
|
1570
|
+
// ========================================
|
|
1571
|
+
// RENDER
|
|
1572
|
+
// ========================================
|
|
1573
|
+
/**
|
|
1574
|
+
* Render tree select input and suffix icons.
|
|
1575
|
+
* @returns JSX element.
|
|
1576
|
+
*/
|
|
1577
|
+
render() {
|
|
1578
|
+
const isMultiple = this.isMultiple();
|
|
1579
|
+
const hasValue = isMultiple
|
|
1580
|
+
? (this.treeCheckable ? this.checkedKeys.length > 0 : this.selectedKeys.length > 0)
|
|
1581
|
+
: this.selectedKeys.length > 0;
|
|
1582
|
+
const showClear = this.allowClear && !this.disabled && this.hovering && hasValue;
|
|
1583
|
+
const hostClasses = {
|
|
1584
|
+
'x-tree-select': true,
|
|
1585
|
+
'x-tree-select-open': this.open,
|
|
1586
|
+
'x-tree-select-focused': this.focused,
|
|
1587
|
+
'x-tree-select-disabled': this.disabled,
|
|
1588
|
+
'x-tree-select-multiple': isMultiple,
|
|
1589
|
+
'x-tree-select-single': !isMultiple,
|
|
1590
|
+
'x-tree-select-show-search': this.showSearch,
|
|
1591
|
+
'x-tree-select-loading': this.loading,
|
|
1592
|
+
'x-tree-select-show-arrow': this.showArrow,
|
|
1593
|
+
'x-tree-select-allow-clear': this.allowClear,
|
|
1594
|
+
[`x-tree-select-${this.size}`]: true,
|
|
1595
|
+
[`x-tree-select-${this.variant}`]: true,
|
|
1596
|
+
[`x-tree-select-status-${this.status}`]: !!this.status,
|
|
1597
|
+
};
|
|
1598
|
+
return (h(Host, { key: 'c2189c02f2ec226991b0a268872a2480706cfe1e', class: hostClasses }, h("div", { key: 'bc108e641fc9644e564cbabb8158367d739710ac', ref: el => (this.wrapperRef = el), class: {
|
|
1599
|
+
'x-tree-select-wrapper': true,
|
|
1600
|
+
'disabled': this.disabled,
|
|
1601
|
+
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: 'f647380e9ee4c0c1d09f504997f25a18cb09da16', class: {
|
|
1602
|
+
'x-tree-select-selector': true,
|
|
1603
|
+
'disabled': this.disabled,
|
|
1604
|
+
}, onClick: this.handleSelectorClick }, isMultiple ? this.renderTags() : this.renderSingleSelector()), h("span", { key: 'b3256f205894e25fca6f6ce0b0de29e000d0c4d6', class: "x-tree-select-suffix" }, showClear && (h("span", { key: '39189ead6d64ec3a126327b152e70d25eb9405c3', class: "x-tree-select-clear", onClick: (e) => this.handleClear(e) }, this.renderClearIcon())), this.loading ? (h("span", { class: "x-tree-select-arrow", part: "arrow" }, this.renderLoadingIcon())) : this.showArrow ? (h("span", { class: { 'x-tree-select-arrow': true, 'x-tree-select-arrow-open': this.open }, part: "arrow" }, this.renderArrowIcon())) : null))));
|
|
1605
|
+
}
|
|
1606
|
+
static get is() { return "x-tree-select"; }
|
|
1607
|
+
static get encapsulation() { return "shadow"; }
|
|
1608
|
+
static get originalStyleUrls() {
|
|
1609
|
+
return {
|
|
1610
|
+
"$": ["x-tree-select.scss"]
|
|
1611
|
+
};
|
|
1612
|
+
}
|
|
1613
|
+
static get styleUrls() {
|
|
1614
|
+
return {
|
|
1615
|
+
"$": ["x-tree-select.css"]
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
static get properties() {
|
|
1619
|
+
return {
|
|
1620
|
+
"treeData": {
|
|
1621
|
+
"type": "unknown",
|
|
1622
|
+
"mutable": false,
|
|
1623
|
+
"complexType": {
|
|
1624
|
+
"original": "TreeSelectNode[]",
|
|
1625
|
+
"resolved": "TreeSelectNode[]",
|
|
1626
|
+
"references": {
|
|
1627
|
+
"TreeSelectNode": {
|
|
1628
|
+
"location": "import",
|
|
1629
|
+
"path": "./types",
|
|
1630
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectNode",
|
|
1631
|
+
"referenceLocation": "TreeSelectNode"
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"required": false,
|
|
1636
|
+
"optional": false,
|
|
1637
|
+
"docs": {
|
|
1638
|
+
"tags": [{
|
|
1639
|
+
"name": "example",
|
|
1640
|
+
"text": "<x-tree-select treeData={[{ key: '1', title: 'Node' }]}></x-tree-select>"
|
|
1641
|
+
}],
|
|
1642
|
+
"text": "Tree data source."
|
|
1643
|
+
},
|
|
1644
|
+
"getter": false,
|
|
1645
|
+
"setter": false,
|
|
1646
|
+
"defaultValue": "[]"
|
|
1647
|
+
},
|
|
1648
|
+
"value": {
|
|
1649
|
+
"type": "string",
|
|
1650
|
+
"mutable": true,
|
|
1651
|
+
"complexType": {
|
|
1652
|
+
"original": "string | string[]",
|
|
1653
|
+
"resolved": "string | string[]",
|
|
1654
|
+
"references": {}
|
|
1655
|
+
},
|
|
1656
|
+
"required": false,
|
|
1657
|
+
"optional": false,
|
|
1658
|
+
"docs": {
|
|
1659
|
+
"tags": [{
|
|
1660
|
+
"name": "example",
|
|
1661
|
+
"text": "<x-tree-select value=\"1\"></x-tree-select>"
|
|
1662
|
+
}],
|
|
1663
|
+
"text": "Current selected value(s)."
|
|
1664
|
+
},
|
|
1665
|
+
"getter": false,
|
|
1666
|
+
"setter": false,
|
|
1667
|
+
"reflect": false,
|
|
1668
|
+
"attribute": "value"
|
|
1669
|
+
},
|
|
1670
|
+
"defaultValue": {
|
|
1671
|
+
"type": "string",
|
|
1672
|
+
"mutable": false,
|
|
1673
|
+
"complexType": {
|
|
1674
|
+
"original": "string | string[]",
|
|
1675
|
+
"resolved": "string | string[]",
|
|
1676
|
+
"references": {}
|
|
1677
|
+
},
|
|
1678
|
+
"required": false,
|
|
1679
|
+
"optional": false,
|
|
1680
|
+
"docs": {
|
|
1681
|
+
"tags": [{
|
|
1682
|
+
"name": "example",
|
|
1683
|
+
"text": "<x-tree-select defaultValue=\"1\"></x-tree-select>"
|
|
1684
|
+
}],
|
|
1685
|
+
"text": "Default value."
|
|
1686
|
+
},
|
|
1687
|
+
"getter": false,
|
|
1688
|
+
"setter": false,
|
|
1689
|
+
"reflect": false,
|
|
1690
|
+
"attribute": "default-value"
|
|
1691
|
+
},
|
|
1692
|
+
"placeholder": {
|
|
1693
|
+
"type": "string",
|
|
1694
|
+
"mutable": false,
|
|
1695
|
+
"complexType": {
|
|
1696
|
+
"original": "string",
|
|
1697
|
+
"resolved": "string",
|
|
1698
|
+
"references": {}
|
|
1699
|
+
},
|
|
1700
|
+
"required": false,
|
|
1701
|
+
"optional": false,
|
|
1702
|
+
"docs": {
|
|
1703
|
+
"tags": [{
|
|
1704
|
+
"name": "example",
|
|
1705
|
+
"text": "<x-tree-select placeholder=\"Select\"></x-tree-select>"
|
|
1706
|
+
}],
|
|
1707
|
+
"text": "Placeholder text."
|
|
1708
|
+
},
|
|
1709
|
+
"getter": false,
|
|
1710
|
+
"setter": false,
|
|
1711
|
+
"reflect": false,
|
|
1712
|
+
"attribute": "placeholder",
|
|
1713
|
+
"defaultValue": "translate('TreeSelect.placeholder', {}, 'Please select')"
|
|
1714
|
+
},
|
|
1715
|
+
"disabled": {
|
|
1716
|
+
"type": "boolean",
|
|
1717
|
+
"mutable": false,
|
|
1718
|
+
"complexType": {
|
|
1719
|
+
"original": "boolean",
|
|
1720
|
+
"resolved": "boolean",
|
|
1721
|
+
"references": {}
|
|
1722
|
+
},
|
|
1723
|
+
"required": false,
|
|
1724
|
+
"optional": false,
|
|
1725
|
+
"docs": {
|
|
1726
|
+
"tags": [{
|
|
1727
|
+
"name": "example",
|
|
1728
|
+
"text": "<x-tree-select disabled></x-tree-select>"
|
|
1729
|
+
}],
|
|
1730
|
+
"text": "Whether disabled."
|
|
1731
|
+
},
|
|
1732
|
+
"getter": false,
|
|
1733
|
+
"setter": false,
|
|
1734
|
+
"reflect": false,
|
|
1735
|
+
"attribute": "disabled",
|
|
1736
|
+
"defaultValue": "false"
|
|
1737
|
+
},
|
|
1738
|
+
"multiple": {
|
|
1739
|
+
"type": "boolean",
|
|
1740
|
+
"mutable": false,
|
|
1741
|
+
"complexType": {
|
|
1742
|
+
"original": "boolean",
|
|
1743
|
+
"resolved": "boolean",
|
|
1744
|
+
"references": {}
|
|
1745
|
+
},
|
|
1746
|
+
"required": false,
|
|
1747
|
+
"optional": false,
|
|
1748
|
+
"docs": {
|
|
1749
|
+
"tags": [{
|
|
1750
|
+
"name": "example",
|
|
1751
|
+
"text": "<x-tree-select multiple></x-tree-select>"
|
|
1752
|
+
}],
|
|
1753
|
+
"text": "Whether allow multiple selection."
|
|
1754
|
+
},
|
|
1755
|
+
"getter": false,
|
|
1756
|
+
"setter": false,
|
|
1757
|
+
"reflect": false,
|
|
1758
|
+
"attribute": "multiple",
|
|
1759
|
+
"defaultValue": "false"
|
|
1760
|
+
},
|
|
1761
|
+
"treeCheckable": {
|
|
1762
|
+
"type": "boolean",
|
|
1763
|
+
"mutable": false,
|
|
1764
|
+
"complexType": {
|
|
1765
|
+
"original": "boolean",
|
|
1766
|
+
"resolved": "boolean",
|
|
1767
|
+
"references": {}
|
|
1768
|
+
},
|
|
1769
|
+
"required": false,
|
|
1770
|
+
"optional": false,
|
|
1771
|
+
"docs": {
|
|
1772
|
+
"tags": [{
|
|
1773
|
+
"name": "example",
|
|
1774
|
+
"text": "<x-tree-select treeCheckable></x-tree-select>"
|
|
1775
|
+
}],
|
|
1776
|
+
"text": "Whether show checkbox (treeCheckable mode)."
|
|
1777
|
+
},
|
|
1778
|
+
"getter": false,
|
|
1779
|
+
"setter": false,
|
|
1780
|
+
"reflect": false,
|
|
1781
|
+
"attribute": "tree-checkable",
|
|
1782
|
+
"defaultValue": "false"
|
|
1783
|
+
},
|
|
1784
|
+
"treeCheckStrictly": {
|
|
1785
|
+
"type": "boolean",
|
|
1786
|
+
"mutable": false,
|
|
1787
|
+
"complexType": {
|
|
1788
|
+
"original": "boolean",
|
|
1789
|
+
"resolved": "boolean",
|
|
1790
|
+
"references": {}
|
|
1791
|
+
},
|
|
1792
|
+
"required": false,
|
|
1793
|
+
"optional": false,
|
|
1794
|
+
"docs": {
|
|
1795
|
+
"tags": [{
|
|
1796
|
+
"name": "example",
|
|
1797
|
+
"text": "<x-tree-select treeCheckStrictly></x-tree-select>"
|
|
1798
|
+
}],
|
|
1799
|
+
"text": "Check node precisely (parent-child independent)."
|
|
1800
|
+
},
|
|
1801
|
+
"getter": false,
|
|
1802
|
+
"setter": false,
|
|
1803
|
+
"reflect": false,
|
|
1804
|
+
"attribute": "tree-check-strictly",
|
|
1805
|
+
"defaultValue": "false"
|
|
1806
|
+
},
|
|
1807
|
+
"showCheckedStrategy": {
|
|
1808
|
+
"type": "string",
|
|
1809
|
+
"mutable": false,
|
|
1810
|
+
"complexType": {
|
|
1811
|
+
"original": "TreeSelectShowCheckedStrategy",
|
|
1812
|
+
"resolved": "\"SHOW_ALL\" | \"SHOW_CHILD\" | \"SHOW_PARENT\"",
|
|
1813
|
+
"references": {
|
|
1814
|
+
"TreeSelectShowCheckedStrategy": {
|
|
1815
|
+
"location": "import",
|
|
1816
|
+
"path": "./types",
|
|
1817
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectShowCheckedStrategy",
|
|
1818
|
+
"referenceLocation": "TreeSelectShowCheckedStrategy"
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
"required": false,
|
|
1823
|
+
"optional": false,
|
|
1824
|
+
"docs": {
|
|
1825
|
+
"tags": [{
|
|
1826
|
+
"name": "example",
|
|
1827
|
+
"text": "<x-tree-select showCheckedStrategy=\"SHOW_PARENT\"></x-tree-select>"
|
|
1828
|
+
}],
|
|
1829
|
+
"text": "Strategy for showing checked items."
|
|
1830
|
+
},
|
|
1831
|
+
"getter": false,
|
|
1832
|
+
"setter": false,
|
|
1833
|
+
"reflect": false,
|
|
1834
|
+
"attribute": "show-checked-strategy",
|
|
1835
|
+
"defaultValue": "'SHOW_CHILD'"
|
|
1836
|
+
},
|
|
1837
|
+
"allowClear": {
|
|
1838
|
+
"type": "boolean",
|
|
1839
|
+
"mutable": false,
|
|
1840
|
+
"complexType": {
|
|
1841
|
+
"original": "boolean",
|
|
1842
|
+
"resolved": "boolean",
|
|
1843
|
+
"references": {}
|
|
1844
|
+
},
|
|
1845
|
+
"required": false,
|
|
1846
|
+
"optional": false,
|
|
1847
|
+
"docs": {
|
|
1848
|
+
"tags": [{
|
|
1849
|
+
"name": "example",
|
|
1850
|
+
"text": "<x-tree-select allowClear></x-tree-select>"
|
|
1851
|
+
}],
|
|
1852
|
+
"text": "Whether allow clear."
|
|
1853
|
+
},
|
|
1854
|
+
"getter": false,
|
|
1855
|
+
"setter": false,
|
|
1856
|
+
"reflect": false,
|
|
1857
|
+
"attribute": "allow-clear",
|
|
1858
|
+
"defaultValue": "false"
|
|
1859
|
+
},
|
|
1860
|
+
"showSearch": {
|
|
1861
|
+
"type": "boolean",
|
|
1862
|
+
"mutable": false,
|
|
1863
|
+
"complexType": {
|
|
1864
|
+
"original": "boolean",
|
|
1865
|
+
"resolved": "boolean",
|
|
1866
|
+
"references": {}
|
|
1867
|
+
},
|
|
1868
|
+
"required": false,
|
|
1869
|
+
"optional": false,
|
|
1870
|
+
"docs": {
|
|
1871
|
+
"tags": [{
|
|
1872
|
+
"name": "example",
|
|
1873
|
+
"text": "<x-tree-select showSearch></x-tree-select>"
|
|
1874
|
+
}],
|
|
1875
|
+
"text": "Whether show search input."
|
|
1876
|
+
},
|
|
1877
|
+
"getter": false,
|
|
1878
|
+
"setter": false,
|
|
1879
|
+
"reflect": false,
|
|
1880
|
+
"attribute": "show-search",
|
|
1881
|
+
"defaultValue": "false"
|
|
1882
|
+
},
|
|
1883
|
+
"filterTreeNode": {
|
|
1884
|
+
"type": "unknown",
|
|
1885
|
+
"mutable": false,
|
|
1886
|
+
"complexType": {
|
|
1887
|
+
"original": "(inputValue: string, treeNode: TreeSelectNode) => boolean",
|
|
1888
|
+
"resolved": "(inputValue: string, treeNode: TreeSelectNode) => boolean",
|
|
1889
|
+
"references": {
|
|
1890
|
+
"TreeSelectNode": {
|
|
1891
|
+
"location": "import",
|
|
1892
|
+
"path": "./types",
|
|
1893
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectNode",
|
|
1894
|
+
"referenceLocation": "TreeSelectNode"
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
"required": false,
|
|
1899
|
+
"optional": false,
|
|
1900
|
+
"docs": {
|
|
1901
|
+
"tags": [{
|
|
1902
|
+
"name": "example",
|
|
1903
|
+
"text": "<x-tree-select filterTreeNode={(v, n) => n.title.startsWith(v)}></x-tree-select>"
|
|
1904
|
+
}],
|
|
1905
|
+
"text": "Filter function for tree nodes."
|
|
1906
|
+
},
|
|
1907
|
+
"getter": false,
|
|
1908
|
+
"setter": false
|
|
1909
|
+
},
|
|
1910
|
+
"treeNodeFilterProp": {
|
|
1911
|
+
"type": "string",
|
|
1912
|
+
"mutable": false,
|
|
1913
|
+
"complexType": {
|
|
1914
|
+
"original": "string",
|
|
1915
|
+
"resolved": "string",
|
|
1916
|
+
"references": {}
|
|
1917
|
+
},
|
|
1918
|
+
"required": false,
|
|
1919
|
+
"optional": false,
|
|
1920
|
+
"docs": {
|
|
1921
|
+
"tags": [{
|
|
1922
|
+
"name": "example",
|
|
1923
|
+
"text": "<x-tree-select treeNodeFilterProp=\"title\"></x-tree-select>"
|
|
1924
|
+
}],
|
|
1925
|
+
"text": "Filter tree nodes by input value (property name)."
|
|
1926
|
+
},
|
|
1927
|
+
"getter": false,
|
|
1928
|
+
"setter": false,
|
|
1929
|
+
"reflect": false,
|
|
1930
|
+
"attribute": "tree-node-filter-prop",
|
|
1931
|
+
"defaultValue": "'title'"
|
|
1932
|
+
},
|
|
1933
|
+
"size": {
|
|
1934
|
+
"type": "string",
|
|
1935
|
+
"mutable": false,
|
|
1936
|
+
"complexType": {
|
|
1937
|
+
"original": "TreeSelectSize",
|
|
1938
|
+
"resolved": "\"large\" | \"middle\" | \"small\"",
|
|
1939
|
+
"references": {
|
|
1940
|
+
"TreeSelectSize": {
|
|
1941
|
+
"location": "import",
|
|
1942
|
+
"path": "./types",
|
|
1943
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectSize",
|
|
1944
|
+
"referenceLocation": "TreeSelectSize"
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"required": false,
|
|
1949
|
+
"optional": false,
|
|
1950
|
+
"docs": {
|
|
1951
|
+
"tags": [{
|
|
1952
|
+
"name": "example",
|
|
1953
|
+
"text": "<x-tree-select size=\"small\"></x-tree-select>"
|
|
1954
|
+
}],
|
|
1955
|
+
"text": "Size of the select."
|
|
1956
|
+
},
|
|
1957
|
+
"getter": false,
|
|
1958
|
+
"setter": false,
|
|
1959
|
+
"reflect": false,
|
|
1960
|
+
"attribute": "size",
|
|
1961
|
+
"defaultValue": "'middle'"
|
|
1962
|
+
},
|
|
1963
|
+
"status": {
|
|
1964
|
+
"type": "string",
|
|
1965
|
+
"mutable": false,
|
|
1966
|
+
"complexType": {
|
|
1967
|
+
"original": "TreeSelectStatus",
|
|
1968
|
+
"resolved": "\"error\" | \"warning\"",
|
|
1969
|
+
"references": {
|
|
1970
|
+
"TreeSelectStatus": {
|
|
1971
|
+
"location": "import",
|
|
1972
|
+
"path": "./types",
|
|
1973
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectStatus",
|
|
1974
|
+
"referenceLocation": "TreeSelectStatus"
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
"required": false,
|
|
1979
|
+
"optional": false,
|
|
1980
|
+
"docs": {
|
|
1981
|
+
"tags": [{
|
|
1982
|
+
"name": "example",
|
|
1983
|
+
"text": "<x-tree-select status=\"error\"></x-tree-select>"
|
|
1984
|
+
}],
|
|
1985
|
+
"text": "Validation status."
|
|
1986
|
+
},
|
|
1987
|
+
"getter": false,
|
|
1988
|
+
"setter": false,
|
|
1989
|
+
"reflect": false,
|
|
1990
|
+
"attribute": "status"
|
|
1991
|
+
},
|
|
1992
|
+
"placement": {
|
|
1993
|
+
"type": "string",
|
|
1994
|
+
"mutable": false,
|
|
1995
|
+
"complexType": {
|
|
1996
|
+
"original": "TreeSelectPlacement",
|
|
1997
|
+
"resolved": "\"bottomLeft\" | \"bottomRight\" | \"topLeft\" | \"topRight\"",
|
|
1998
|
+
"references": {
|
|
1999
|
+
"TreeSelectPlacement": {
|
|
2000
|
+
"location": "import",
|
|
2001
|
+
"path": "./types",
|
|
2002
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectPlacement",
|
|
2003
|
+
"referenceLocation": "TreeSelectPlacement"
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
"required": false,
|
|
2008
|
+
"optional": false,
|
|
2009
|
+
"docs": {
|
|
2010
|
+
"tags": [{
|
|
2011
|
+
"name": "example",
|
|
2012
|
+
"text": "<x-tree-select placement=\"bottomRight\"></x-tree-select>"
|
|
2013
|
+
}],
|
|
2014
|
+
"text": "Dropdown placement."
|
|
2015
|
+
},
|
|
2016
|
+
"getter": false,
|
|
2017
|
+
"setter": false,
|
|
2018
|
+
"reflect": false,
|
|
2019
|
+
"attribute": "placement",
|
|
2020
|
+
"defaultValue": "'bottomLeft'"
|
|
2021
|
+
},
|
|
2022
|
+
"variant": {
|
|
2023
|
+
"type": "string",
|
|
2024
|
+
"mutable": false,
|
|
2025
|
+
"complexType": {
|
|
2026
|
+
"original": "TreeSelectVariant",
|
|
2027
|
+
"resolved": "\"borderless\" | \"filled\" | \"outlined\"",
|
|
2028
|
+
"references": {
|
|
2029
|
+
"TreeSelectVariant": {
|
|
2030
|
+
"location": "import",
|
|
2031
|
+
"path": "./types",
|
|
2032
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectVariant",
|
|
2033
|
+
"referenceLocation": "TreeSelectVariant"
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
"required": false,
|
|
2038
|
+
"optional": false,
|
|
2039
|
+
"docs": {
|
|
2040
|
+
"tags": [{
|
|
2041
|
+
"name": "example",
|
|
2042
|
+
"text": "<x-tree-select variant=\"filled\"></x-tree-select>"
|
|
2043
|
+
}],
|
|
2044
|
+
"text": "Variant style."
|
|
2045
|
+
},
|
|
2046
|
+
"getter": false,
|
|
2047
|
+
"setter": false,
|
|
2048
|
+
"reflect": false,
|
|
2049
|
+
"attribute": "variant",
|
|
2050
|
+
"defaultValue": "'outlined'"
|
|
2051
|
+
},
|
|
2052
|
+
"open": {
|
|
2053
|
+
"type": "boolean",
|
|
2054
|
+
"mutable": true,
|
|
2055
|
+
"complexType": {
|
|
2056
|
+
"original": "boolean",
|
|
2057
|
+
"resolved": "boolean",
|
|
2058
|
+
"references": {}
|
|
2059
|
+
},
|
|
2060
|
+
"required": false,
|
|
2061
|
+
"optional": false,
|
|
2062
|
+
"docs": {
|
|
2063
|
+
"tags": [{
|
|
2064
|
+
"name": "example",
|
|
2065
|
+
"text": "<x-tree-select open></x-tree-select>"
|
|
2066
|
+
}],
|
|
2067
|
+
"text": "Whether the dropdown is open."
|
|
2068
|
+
},
|
|
2069
|
+
"getter": false,
|
|
2070
|
+
"setter": false,
|
|
2071
|
+
"reflect": false,
|
|
2072
|
+
"attribute": "open",
|
|
2073
|
+
"defaultValue": "false"
|
|
2074
|
+
},
|
|
2075
|
+
"maxTagCount": {
|
|
2076
|
+
"type": "number",
|
|
2077
|
+
"mutable": false,
|
|
2078
|
+
"complexType": {
|
|
2079
|
+
"original": "number",
|
|
2080
|
+
"resolved": "number",
|
|
2081
|
+
"references": {}
|
|
2082
|
+
},
|
|
2083
|
+
"required": false,
|
|
2084
|
+
"optional": false,
|
|
2085
|
+
"docs": {
|
|
2086
|
+
"tags": [{
|
|
2087
|
+
"name": "example",
|
|
2088
|
+
"text": "<x-tree-select multiple maxTagCount={2}></x-tree-select>"
|
|
2089
|
+
}],
|
|
2090
|
+
"text": "Max tag count to show in multiple mode."
|
|
2091
|
+
},
|
|
2092
|
+
"getter": false,
|
|
2093
|
+
"setter": false,
|
|
2094
|
+
"reflect": false,
|
|
2095
|
+
"attribute": "max-tag-count"
|
|
2096
|
+
},
|
|
2097
|
+
"maxTagPlaceholder": {
|
|
2098
|
+
"type": "string",
|
|
2099
|
+
"mutable": false,
|
|
2100
|
+
"complexType": {
|
|
2101
|
+
"original": "string",
|
|
2102
|
+
"resolved": "string",
|
|
2103
|
+
"references": {}
|
|
2104
|
+
},
|
|
2105
|
+
"required": false,
|
|
2106
|
+
"optional": false,
|
|
2107
|
+
"docs": {
|
|
2108
|
+
"tags": [{
|
|
2109
|
+
"name": "example",
|
|
2110
|
+
"text": "<x-tree-select maxTagPlaceholder=\"+ more\"></x-tree-select>"
|
|
2111
|
+
}],
|
|
2112
|
+
"text": "Placeholder for max tag count."
|
|
2113
|
+
},
|
|
2114
|
+
"getter": false,
|
|
2115
|
+
"setter": false,
|
|
2116
|
+
"reflect": false,
|
|
2117
|
+
"attribute": "max-tag-placeholder"
|
|
2118
|
+
},
|
|
2119
|
+
"treeLine": {
|
|
2120
|
+
"type": "boolean",
|
|
2121
|
+
"mutable": false,
|
|
2122
|
+
"complexType": {
|
|
2123
|
+
"original": "boolean",
|
|
2124
|
+
"resolved": "boolean",
|
|
2125
|
+
"references": {}
|
|
2126
|
+
},
|
|
2127
|
+
"required": false,
|
|
2128
|
+
"optional": false,
|
|
2129
|
+
"docs": {
|
|
2130
|
+
"tags": [{
|
|
2131
|
+
"name": "example",
|
|
2132
|
+
"text": "<x-tree-select treeLine></x-tree-select>"
|
|
2133
|
+
}],
|
|
2134
|
+
"text": "Whether show tree line."
|
|
2135
|
+
},
|
|
2136
|
+
"getter": false,
|
|
2137
|
+
"setter": false,
|
|
2138
|
+
"reflect": false,
|
|
2139
|
+
"attribute": "tree-line",
|
|
2140
|
+
"defaultValue": "false"
|
|
2141
|
+
},
|
|
2142
|
+
"defaultExpandedKeys": {
|
|
2143
|
+
"type": "unknown",
|
|
2144
|
+
"mutable": false,
|
|
2145
|
+
"complexType": {
|
|
2146
|
+
"original": "string[]",
|
|
2147
|
+
"resolved": "string[]",
|
|
2148
|
+
"references": {}
|
|
2149
|
+
},
|
|
2150
|
+
"required": false,
|
|
2151
|
+
"optional": false,
|
|
2152
|
+
"docs": {
|
|
2153
|
+
"tags": [{
|
|
2154
|
+
"name": "example",
|
|
2155
|
+
"text": "<x-tree-select defaultExpandedKeys={['1']}></x-tree-select>"
|
|
2156
|
+
}],
|
|
2157
|
+
"text": "Default expanded keys."
|
|
2158
|
+
},
|
|
2159
|
+
"getter": false,
|
|
2160
|
+
"setter": false,
|
|
2161
|
+
"defaultValue": "[]"
|
|
2162
|
+
},
|
|
2163
|
+
"defaultExpandAll": {
|
|
2164
|
+
"type": "boolean",
|
|
2165
|
+
"mutable": false,
|
|
2166
|
+
"complexType": {
|
|
2167
|
+
"original": "boolean",
|
|
2168
|
+
"resolved": "boolean",
|
|
2169
|
+
"references": {}
|
|
2170
|
+
},
|
|
2171
|
+
"required": false,
|
|
2172
|
+
"optional": false,
|
|
2173
|
+
"docs": {
|
|
2174
|
+
"tags": [{
|
|
2175
|
+
"name": "example",
|
|
2176
|
+
"text": "<x-tree-select defaultExpandAll></x-tree-select>"
|
|
2177
|
+
}],
|
|
2178
|
+
"text": "Default expand all tree nodes."
|
|
2179
|
+
},
|
|
2180
|
+
"getter": false,
|
|
2181
|
+
"setter": false,
|
|
2182
|
+
"reflect": false,
|
|
2183
|
+
"attribute": "default-expand-all",
|
|
2184
|
+
"defaultValue": "false"
|
|
2185
|
+
},
|
|
2186
|
+
"treeDefaultExpandParent": {
|
|
2187
|
+
"type": "boolean",
|
|
2188
|
+
"mutable": false,
|
|
2189
|
+
"complexType": {
|
|
2190
|
+
"original": "boolean",
|
|
2191
|
+
"resolved": "boolean",
|
|
2192
|
+
"references": {}
|
|
2193
|
+
},
|
|
2194
|
+
"required": false,
|
|
2195
|
+
"optional": false,
|
|
2196
|
+
"docs": {
|
|
2197
|
+
"tags": [{
|
|
2198
|
+
"name": "example",
|
|
2199
|
+
"text": "<x-tree-select treeDefaultExpandParent={false}></x-tree-select>"
|
|
2200
|
+
}],
|
|
2201
|
+
"text": "Default expand parent nodes."
|
|
2202
|
+
},
|
|
2203
|
+
"getter": false,
|
|
2204
|
+
"setter": false,
|
|
2205
|
+
"reflect": false,
|
|
2206
|
+
"attribute": "tree-default-expand-parent",
|
|
2207
|
+
"defaultValue": "true"
|
|
2208
|
+
},
|
|
2209
|
+
"treeExpandedKeys": {
|
|
2210
|
+
"type": "unknown",
|
|
2211
|
+
"mutable": false,
|
|
2212
|
+
"complexType": {
|
|
2213
|
+
"original": "string[]",
|
|
2214
|
+
"resolved": "string[]",
|
|
2215
|
+
"references": {}
|
|
2216
|
+
},
|
|
2217
|
+
"required": false,
|
|
2218
|
+
"optional": false,
|
|
2219
|
+
"docs": {
|
|
2220
|
+
"tags": [{
|
|
2221
|
+
"name": "example",
|
|
2222
|
+
"text": "<x-tree-select treeExpandedKeys={['1']}></x-tree-select>"
|
|
2223
|
+
}],
|
|
2224
|
+
"text": "Expand on load."
|
|
2225
|
+
},
|
|
2226
|
+
"getter": false,
|
|
2227
|
+
"setter": false
|
|
2228
|
+
},
|
|
2229
|
+
"autofocus": {
|
|
2230
|
+
"type": "boolean",
|
|
2231
|
+
"mutable": false,
|
|
2232
|
+
"complexType": {
|
|
2233
|
+
"original": "boolean",
|
|
2234
|
+
"resolved": "boolean",
|
|
2235
|
+
"references": {}
|
|
2236
|
+
},
|
|
2237
|
+
"required": false,
|
|
2238
|
+
"optional": false,
|
|
2239
|
+
"docs": {
|
|
2240
|
+
"tags": [{
|
|
2241
|
+
"name": "example",
|
|
2242
|
+
"text": "<x-tree-select autofocus></x-tree-select>"
|
|
2243
|
+
}],
|
|
2244
|
+
"text": "Auto focus on mount."
|
|
2245
|
+
},
|
|
2246
|
+
"getter": false,
|
|
2247
|
+
"setter": false,
|
|
2248
|
+
"reflect": false,
|
|
2249
|
+
"attribute": "autofocus",
|
|
2250
|
+
"defaultValue": "false"
|
|
2251
|
+
},
|
|
2252
|
+
"inputId": {
|
|
2253
|
+
"type": "string",
|
|
2254
|
+
"mutable": false,
|
|
2255
|
+
"complexType": {
|
|
2256
|
+
"original": "string",
|
|
2257
|
+
"resolved": "string",
|
|
2258
|
+
"references": {}
|
|
2259
|
+
},
|
|
2260
|
+
"required": false,
|
|
2261
|
+
"optional": false,
|
|
2262
|
+
"docs": {
|
|
2263
|
+
"tags": [{
|
|
2264
|
+
"name": "example",
|
|
2265
|
+
"text": "<x-tree-select inputId=\"tree\"></x-tree-select>"
|
|
2266
|
+
}],
|
|
2267
|
+
"text": "Input ID."
|
|
2268
|
+
},
|
|
2269
|
+
"getter": false,
|
|
2270
|
+
"setter": false,
|
|
2271
|
+
"reflect": false,
|
|
2272
|
+
"attribute": "input-id"
|
|
2273
|
+
},
|
|
2274
|
+
"name": {
|
|
2275
|
+
"type": "string",
|
|
2276
|
+
"mutable": false,
|
|
2277
|
+
"complexType": {
|
|
2278
|
+
"original": "string",
|
|
2279
|
+
"resolved": "string",
|
|
2280
|
+
"references": {}
|
|
2281
|
+
},
|
|
2282
|
+
"required": false,
|
|
2283
|
+
"optional": false,
|
|
2284
|
+
"docs": {
|
|
2285
|
+
"tags": [{
|
|
2286
|
+
"name": "example",
|
|
2287
|
+
"text": "<x-tree-select name=\"tree\"></x-tree-select>"
|
|
2288
|
+
}],
|
|
2289
|
+
"text": "Name for form."
|
|
2290
|
+
},
|
|
2291
|
+
"getter": false,
|
|
2292
|
+
"setter": false,
|
|
2293
|
+
"reflect": false,
|
|
2294
|
+
"attribute": "name"
|
|
2295
|
+
},
|
|
2296
|
+
"listHeight": {
|
|
2297
|
+
"type": "number",
|
|
2298
|
+
"mutable": false,
|
|
2299
|
+
"complexType": {
|
|
2300
|
+
"original": "number",
|
|
2301
|
+
"resolved": "number",
|
|
2302
|
+
"references": {}
|
|
2303
|
+
},
|
|
2304
|
+
"required": false,
|
|
2305
|
+
"optional": false,
|
|
2306
|
+
"docs": {
|
|
2307
|
+
"tags": [{
|
|
2308
|
+
"name": "example",
|
|
2309
|
+
"text": "<x-tree-select listHeight={300}></x-tree-select>"
|
|
2310
|
+
}],
|
|
2311
|
+
"text": "Max height of dropdown."
|
|
2312
|
+
},
|
|
2313
|
+
"getter": false,
|
|
2314
|
+
"setter": false,
|
|
2315
|
+
"reflect": false,
|
|
2316
|
+
"attribute": "list-height",
|
|
2317
|
+
"defaultValue": "256"
|
|
2318
|
+
},
|
|
2319
|
+
"loading": {
|
|
2320
|
+
"type": "boolean",
|
|
2321
|
+
"mutable": false,
|
|
2322
|
+
"complexType": {
|
|
2323
|
+
"original": "boolean",
|
|
2324
|
+
"resolved": "boolean",
|
|
2325
|
+
"references": {}
|
|
2326
|
+
},
|
|
2327
|
+
"required": false,
|
|
2328
|
+
"optional": false,
|
|
2329
|
+
"docs": {
|
|
2330
|
+
"tags": [{
|
|
2331
|
+
"name": "example",
|
|
2332
|
+
"text": "<x-tree-select loading></x-tree-select>"
|
|
2333
|
+
}],
|
|
2334
|
+
"text": "Whether loading state."
|
|
2335
|
+
},
|
|
2336
|
+
"getter": false,
|
|
2337
|
+
"setter": false,
|
|
2338
|
+
"reflect": false,
|
|
2339
|
+
"attribute": "loading",
|
|
2340
|
+
"defaultValue": "false"
|
|
2341
|
+
},
|
|
2342
|
+
"notFoundContent": {
|
|
2343
|
+
"type": "string",
|
|
2344
|
+
"mutable": false,
|
|
2345
|
+
"complexType": {
|
|
2346
|
+
"original": "string",
|
|
2347
|
+
"resolved": "string",
|
|
2348
|
+
"references": {}
|
|
2349
|
+
},
|
|
2350
|
+
"required": false,
|
|
2351
|
+
"optional": false,
|
|
2352
|
+
"docs": {
|
|
2353
|
+
"tags": [{
|
|
2354
|
+
"name": "example",
|
|
2355
|
+
"text": "<x-tree-select notFoundContent=\"Empty\"></x-tree-select>"
|
|
2356
|
+
}],
|
|
2357
|
+
"text": "Text when no data."
|
|
2358
|
+
},
|
|
2359
|
+
"getter": false,
|
|
2360
|
+
"setter": false,
|
|
2361
|
+
"reflect": false,
|
|
2362
|
+
"attribute": "not-found-content",
|
|
2363
|
+
"defaultValue": "translate('TreeSelect.notFoundContent', {}, 'No data')"
|
|
2364
|
+
},
|
|
2365
|
+
"popupMatchSelectWidth": {
|
|
2366
|
+
"type": "boolean",
|
|
2367
|
+
"mutable": false,
|
|
2368
|
+
"complexType": {
|
|
2369
|
+
"original": "boolean",
|
|
2370
|
+
"resolved": "boolean",
|
|
2371
|
+
"references": {}
|
|
2372
|
+
},
|
|
2373
|
+
"required": false,
|
|
2374
|
+
"optional": false,
|
|
2375
|
+
"docs": {
|
|
2376
|
+
"tags": [{
|
|
2377
|
+
"name": "example",
|
|
2378
|
+
"text": "<x-tree-select popupMatchSelectWidth={false}></x-tree-select>"
|
|
2379
|
+
}],
|
|
2380
|
+
"text": "Whether dropdown matches selector width."
|
|
2381
|
+
},
|
|
2382
|
+
"getter": false,
|
|
2383
|
+
"setter": false,
|
|
2384
|
+
"reflect": false,
|
|
2385
|
+
"attribute": "popup-match-select-width",
|
|
2386
|
+
"defaultValue": "true"
|
|
2387
|
+
},
|
|
2388
|
+
"fieldNames": {
|
|
2389
|
+
"type": "unknown",
|
|
2390
|
+
"mutable": false,
|
|
2391
|
+
"complexType": {
|
|
2392
|
+
"original": "TreeSelectFieldNames",
|
|
2393
|
+
"resolved": "TreeSelectFieldNames",
|
|
2394
|
+
"references": {
|
|
2395
|
+
"TreeSelectFieldNames": {
|
|
2396
|
+
"location": "import",
|
|
2397
|
+
"path": "./types",
|
|
2398
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectFieldNames",
|
|
2399
|
+
"referenceLocation": "TreeSelectFieldNames"
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
"required": false,
|
|
2404
|
+
"optional": false,
|
|
2405
|
+
"docs": {
|
|
2406
|
+
"tags": [{
|
|
2407
|
+
"name": "example",
|
|
2408
|
+
"text": "<x-tree-select fieldNames={{ title: 'label', value: 'id' }}></x-tree-select>"
|
|
2409
|
+
}],
|
|
2410
|
+
"text": "Custom field names mapping."
|
|
2411
|
+
},
|
|
2412
|
+
"getter": false,
|
|
2413
|
+
"setter": false
|
|
2414
|
+
},
|
|
2415
|
+
"showArrow": {
|
|
2416
|
+
"type": "boolean",
|
|
2417
|
+
"mutable": false,
|
|
2418
|
+
"complexType": {
|
|
2419
|
+
"original": "boolean",
|
|
2420
|
+
"resolved": "boolean",
|
|
2421
|
+
"references": {}
|
|
2422
|
+
},
|
|
2423
|
+
"required": false,
|
|
2424
|
+
"optional": false,
|
|
2425
|
+
"docs": {
|
|
2426
|
+
"tags": [{
|
|
2427
|
+
"name": "example",
|
|
2428
|
+
"text": "<x-tree-select showArrow={false}></x-tree-select>"
|
|
2429
|
+
}],
|
|
2430
|
+
"text": "Whether show arrow icon."
|
|
2431
|
+
},
|
|
2432
|
+
"getter": false,
|
|
2433
|
+
"setter": false,
|
|
2434
|
+
"reflect": false,
|
|
2435
|
+
"attribute": "show-arrow",
|
|
2436
|
+
"defaultValue": "true"
|
|
2437
|
+
},
|
|
2438
|
+
"treeIcon": {
|
|
2439
|
+
"type": "boolean",
|
|
2440
|
+
"mutable": false,
|
|
2441
|
+
"complexType": {
|
|
2442
|
+
"original": "boolean",
|
|
2443
|
+
"resolved": "boolean",
|
|
2444
|
+
"references": {}
|
|
2445
|
+
},
|
|
2446
|
+
"required": false,
|
|
2447
|
+
"optional": false,
|
|
2448
|
+
"docs": {
|
|
2449
|
+
"tags": [{
|
|
2450
|
+
"name": "example",
|
|
2451
|
+
"text": "<x-tree-select treeIcon></x-tree-select>"
|
|
2452
|
+
}],
|
|
2453
|
+
"text": "Whether show tree icon."
|
|
2454
|
+
},
|
|
2455
|
+
"getter": false,
|
|
2456
|
+
"setter": false,
|
|
2457
|
+
"reflect": false,
|
|
2458
|
+
"attribute": "tree-icon",
|
|
2459
|
+
"defaultValue": "false"
|
|
2460
|
+
},
|
|
2461
|
+
"virtual": {
|
|
2462
|
+
"type": "boolean",
|
|
2463
|
+
"mutable": false,
|
|
2464
|
+
"complexType": {
|
|
2465
|
+
"original": "boolean",
|
|
2466
|
+
"resolved": "boolean",
|
|
2467
|
+
"references": {}
|
|
2468
|
+
},
|
|
2469
|
+
"required": false,
|
|
2470
|
+
"optional": false,
|
|
2471
|
+
"docs": {
|
|
2472
|
+
"tags": [{
|
|
2473
|
+
"name": "example",
|
|
2474
|
+
"text": "<x-tree-select virtual={false}></x-tree-select>"
|
|
2475
|
+
}],
|
|
2476
|
+
"text": "Whether virtual scroll."
|
|
2477
|
+
},
|
|
2478
|
+
"getter": false,
|
|
2479
|
+
"setter": false,
|
|
2480
|
+
"reflect": false,
|
|
2481
|
+
"attribute": "virtual",
|
|
2482
|
+
"defaultValue": "true"
|
|
2483
|
+
},
|
|
2484
|
+
"labelInValue": {
|
|
2485
|
+
"type": "boolean",
|
|
2486
|
+
"mutable": false,
|
|
2487
|
+
"complexType": {
|
|
2488
|
+
"original": "boolean",
|
|
2489
|
+
"resolved": "boolean",
|
|
2490
|
+
"references": {}
|
|
2491
|
+
},
|
|
2492
|
+
"required": false,
|
|
2493
|
+
"optional": false,
|
|
2494
|
+
"docs": {
|
|
2495
|
+
"tags": [{
|
|
2496
|
+
"name": "example",
|
|
2497
|
+
"text": "<x-tree-select labelInValue></x-tree-select>"
|
|
2498
|
+
}],
|
|
2499
|
+
"text": "Label in value (for controlled mode)."
|
|
2500
|
+
},
|
|
2501
|
+
"getter": false,
|
|
2502
|
+
"setter": false,
|
|
2503
|
+
"reflect": false,
|
|
2504
|
+
"attribute": "label-in-value",
|
|
2505
|
+
"defaultValue": "false"
|
|
2506
|
+
}
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
static get states() {
|
|
2510
|
+
return {
|
|
2511
|
+
"focused": {},
|
|
2512
|
+
"hovering": {},
|
|
2513
|
+
"searchValue": {},
|
|
2514
|
+
"expandedKeys": {},
|
|
2515
|
+
"selectedKeys": {},
|
|
2516
|
+
"checkedKeys": {},
|
|
2517
|
+
"halfCheckedKeys": {},
|
|
2518
|
+
"dropdownWidth": {}
|
|
2519
|
+
};
|
|
2520
|
+
}
|
|
2521
|
+
static get events() {
|
|
2522
|
+
return [{
|
|
2523
|
+
"method": "xChange",
|
|
2524
|
+
"name": "xChange",
|
|
2525
|
+
"bubbles": true,
|
|
2526
|
+
"cancelable": true,
|
|
2527
|
+
"composed": true,
|
|
2528
|
+
"docs": {
|
|
2529
|
+
"tags": [{
|
|
2530
|
+
"name": "example",
|
|
2531
|
+
"text": "<x-tree-select onXChange={(ev) => console.log(ev.detail)}></x-tree-select>"
|
|
2532
|
+
}],
|
|
2533
|
+
"text": "Emitted when value changes."
|
|
2534
|
+
},
|
|
2535
|
+
"complexType": {
|
|
2536
|
+
"original": "TreeSelectChangeEventDetail",
|
|
2537
|
+
"resolved": "TreeSelectChangeEventDetail",
|
|
2538
|
+
"references": {
|
|
2539
|
+
"TreeSelectChangeEventDetail": {
|
|
2540
|
+
"location": "import",
|
|
2541
|
+
"path": "./types",
|
|
2542
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectChangeEventDetail",
|
|
2543
|
+
"referenceLocation": "TreeSelectChangeEventDetail"
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
}, {
|
|
2548
|
+
"method": "xOpenChange",
|
|
2549
|
+
"name": "xOpenChange",
|
|
2550
|
+
"bubbles": true,
|
|
2551
|
+
"cancelable": true,
|
|
2552
|
+
"composed": true,
|
|
2553
|
+
"docs": {
|
|
2554
|
+
"tags": [{
|
|
2555
|
+
"name": "example",
|
|
2556
|
+
"text": "<x-tree-select onXOpenChange={(ev) => console.log(ev.detail)}></x-tree-select>"
|
|
2557
|
+
}],
|
|
2558
|
+
"text": "Emitted when dropdown opens/closes."
|
|
2559
|
+
},
|
|
2560
|
+
"complexType": {
|
|
2561
|
+
"original": "boolean",
|
|
2562
|
+
"resolved": "boolean",
|
|
2563
|
+
"references": {}
|
|
2564
|
+
}
|
|
2565
|
+
}, {
|
|
2566
|
+
"method": "xTreeExpand",
|
|
2567
|
+
"name": "xTreeExpand",
|
|
2568
|
+
"bubbles": true,
|
|
2569
|
+
"cancelable": true,
|
|
2570
|
+
"composed": true,
|
|
2571
|
+
"docs": {
|
|
2572
|
+
"tags": [{
|
|
2573
|
+
"name": "example",
|
|
2574
|
+
"text": "<x-tree-select onXTreeExpand={(ev) => console.log(ev.detail)}></x-tree-select>"
|
|
2575
|
+
}],
|
|
2576
|
+
"text": "Emitted when tree node expands/collapses."
|
|
2577
|
+
},
|
|
2578
|
+
"complexType": {
|
|
2579
|
+
"original": "TreeSelectExpandEventDetail",
|
|
2580
|
+
"resolved": "TreeSelectExpandEventDetail",
|
|
2581
|
+
"references": {
|
|
2582
|
+
"TreeSelectExpandEventDetail": {
|
|
2583
|
+
"location": "import",
|
|
2584
|
+
"path": "./types",
|
|
2585
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectExpandEventDetail",
|
|
2586
|
+
"referenceLocation": "TreeSelectExpandEventDetail"
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}, {
|
|
2591
|
+
"method": "xSearch",
|
|
2592
|
+
"name": "xSearch",
|
|
2593
|
+
"bubbles": true,
|
|
2594
|
+
"cancelable": true,
|
|
2595
|
+
"composed": true,
|
|
2596
|
+
"docs": {
|
|
2597
|
+
"tags": [{
|
|
2598
|
+
"name": "example",
|
|
2599
|
+
"text": "<x-tree-select onXSearch={(ev) => console.log(ev.detail)}></x-tree-select>"
|
|
2600
|
+
}],
|
|
2601
|
+
"text": "Emitted on search."
|
|
2602
|
+
},
|
|
2603
|
+
"complexType": {
|
|
2604
|
+
"original": "TreeSelectSearchEventDetail",
|
|
2605
|
+
"resolved": "TreeSelectSearchEventDetail",
|
|
2606
|
+
"references": {
|
|
2607
|
+
"TreeSelectSearchEventDetail": {
|
|
2608
|
+
"location": "import",
|
|
2609
|
+
"path": "./types",
|
|
2610
|
+
"id": "src/components/x-tree-select/types.ts::TreeSelectSearchEventDetail",
|
|
2611
|
+
"referenceLocation": "TreeSelectSearchEventDetail"
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
}, {
|
|
2616
|
+
"method": "xFocus",
|
|
2617
|
+
"name": "xFocus",
|
|
2618
|
+
"bubbles": true,
|
|
2619
|
+
"cancelable": true,
|
|
2620
|
+
"composed": true,
|
|
2621
|
+
"docs": {
|
|
2622
|
+
"tags": [{
|
|
2623
|
+
"name": "example",
|
|
2624
|
+
"text": "<x-tree-select onXFocus={(ev) => console.log(ev)}></x-tree-select>"
|
|
2625
|
+
}],
|
|
2626
|
+
"text": "Emitted on focus."
|
|
2627
|
+
},
|
|
2628
|
+
"complexType": {
|
|
2629
|
+
"original": "FocusEvent",
|
|
2630
|
+
"resolved": "FocusEvent",
|
|
2631
|
+
"references": {
|
|
2632
|
+
"FocusEvent": {
|
|
2633
|
+
"location": "global",
|
|
2634
|
+
"id": "global::FocusEvent"
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
}, {
|
|
2639
|
+
"method": "xBlur",
|
|
2640
|
+
"name": "xBlur",
|
|
2641
|
+
"bubbles": true,
|
|
2642
|
+
"cancelable": true,
|
|
2643
|
+
"composed": true,
|
|
2644
|
+
"docs": {
|
|
2645
|
+
"tags": [{
|
|
2646
|
+
"name": "example",
|
|
2647
|
+
"text": "<x-tree-select onXBlur={(ev) => console.log(ev)}></x-tree-select>"
|
|
2648
|
+
}],
|
|
2649
|
+
"text": "Emitted on blur."
|
|
2650
|
+
},
|
|
2651
|
+
"complexType": {
|
|
2652
|
+
"original": "FocusEvent",
|
|
2653
|
+
"resolved": "FocusEvent",
|
|
2654
|
+
"references": {
|
|
2655
|
+
"FocusEvent": {
|
|
2656
|
+
"location": "global",
|
|
2657
|
+
"id": "global::FocusEvent"
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
}, {
|
|
2662
|
+
"method": "xDropdownVisibleChange",
|
|
2663
|
+
"name": "xDropdownVisibleChange",
|
|
2664
|
+
"bubbles": true,
|
|
2665
|
+
"cancelable": true,
|
|
2666
|
+
"composed": true,
|
|
2667
|
+
"docs": {
|
|
2668
|
+
"tags": [{
|
|
2669
|
+
"name": "example",
|
|
2670
|
+
"text": "<x-tree-select onXDropdownVisibleChange={(ev) => console.log(ev.detail)}></x-tree-select>"
|
|
2671
|
+
}],
|
|
2672
|
+
"text": "Emitted when dropdown visible changes."
|
|
2673
|
+
},
|
|
2674
|
+
"complexType": {
|
|
2675
|
+
"original": "boolean",
|
|
2676
|
+
"resolved": "boolean",
|
|
2677
|
+
"references": {}
|
|
2678
|
+
}
|
|
2679
|
+
}];
|
|
2680
|
+
}
|
|
2681
|
+
static get methods() {
|
|
2682
|
+
return {
|
|
2683
|
+
"setFocus": {
|
|
2684
|
+
"complexType": {
|
|
2685
|
+
"signature": "() => Promise<void>",
|
|
2686
|
+
"parameters": [],
|
|
2687
|
+
"references": {
|
|
2688
|
+
"Promise": {
|
|
2689
|
+
"location": "global",
|
|
2690
|
+
"id": "global::Promise"
|
|
2691
|
+
}
|
|
2692
|
+
},
|
|
2693
|
+
"return": "Promise<void>"
|
|
2694
|
+
},
|
|
2695
|
+
"docs": {
|
|
2696
|
+
"text": "",
|
|
2697
|
+
"tags": []
|
|
2698
|
+
}
|
|
2699
|
+
},
|
|
2700
|
+
"setBlur": {
|
|
2701
|
+
"complexType": {
|
|
2702
|
+
"signature": "() => Promise<void>",
|
|
2703
|
+
"parameters": [],
|
|
2704
|
+
"references": {
|
|
2705
|
+
"Promise": {
|
|
2706
|
+
"location": "global",
|
|
2707
|
+
"id": "global::Promise"
|
|
2708
|
+
}
|
|
2709
|
+
},
|
|
2710
|
+
"return": "Promise<void>"
|
|
2711
|
+
},
|
|
2712
|
+
"docs": {
|
|
2713
|
+
"text": "",
|
|
2714
|
+
"tags": []
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
};
|
|
2718
|
+
}
|
|
2719
|
+
static get elementRef() { return "el"; }
|
|
2720
|
+
static get watchers() {
|
|
2721
|
+
return [{
|
|
2722
|
+
"propName": "treeData",
|
|
2723
|
+
"methodName": "treeDataChanged"
|
|
2724
|
+
}, {
|
|
2725
|
+
"propName": "value",
|
|
2726
|
+
"methodName": "valueChanged"
|
|
2727
|
+
}, {
|
|
2728
|
+
"propName": "treeExpandedKeys",
|
|
2729
|
+
"methodName": "treeExpandedKeysChanged"
|
|
2730
|
+
}, {
|
|
2731
|
+
"propName": "open",
|
|
2732
|
+
"methodName": "openChanged"
|
|
2733
|
+
}];
|
|
2734
|
+
}
|
|
2735
|
+
static get listeners() {
|
|
2736
|
+
return [{
|
|
2737
|
+
"name": "click",
|
|
2738
|
+
"method": "handleWindowClick",
|
|
2739
|
+
"target": "window",
|
|
2740
|
+
"capture": false,
|
|
2741
|
+
"passive": false
|
|
2742
|
+
}, {
|
|
2743
|
+
"name": "keydown",
|
|
2744
|
+
"method": "handleKeydown",
|
|
2745
|
+
"target": undefined,
|
|
2746
|
+
"capture": false,
|
|
2747
|
+
"passive": false
|
|
2748
|
+
}];
|
|
2749
|
+
}
|
|
2750
|
+
}
|