@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,1841 @@
|
|
|
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 { CascaderService } from "../../utils/cascader.service";
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
7
|
+
/**
|
|
8
|
+
* Cascader component for selecting from a multi-level hierarchy.
|
|
9
|
+
* Supports single/multiple selection, custom field names, searching, and async loading.
|
|
10
|
+
*/
|
|
11
|
+
export class XCascader {
|
|
12
|
+
el;
|
|
13
|
+
// ========================================
|
|
14
|
+
// PROPS
|
|
15
|
+
// ========================================
|
|
16
|
+
/**
|
|
17
|
+
* Options data to be displayed in the cascader.
|
|
18
|
+
* @type {CascaderOption[]}
|
|
19
|
+
* @example
|
|
20
|
+
* <x-cascader options={[
|
|
21
|
+
* { value: 'zhejiang', label: 'Zhejiang', children: [{ value: 'hangzhou', label: 'Hangzhou' }] }
|
|
22
|
+
* ]} />
|
|
23
|
+
*/
|
|
24
|
+
options = [];
|
|
25
|
+
/**
|
|
26
|
+
* Selected value (array of values representing the path).
|
|
27
|
+
* For single mode: string[] like ['zhejiang', 'hangzhou']
|
|
28
|
+
* For multiple mode: string[][] like [['zhejiang', 'hangzhou'], ['jiangsu', 'nanjing']]
|
|
29
|
+
* @type {CascaderValue | null}
|
|
30
|
+
* @example
|
|
31
|
+
* <x-cascader value={['zhejiang', 'hangzhou']} />
|
|
32
|
+
* <x-cascader multiple value={[['zhejiang', 'hangzhou'], ['jiangsu', 'nanjing']]} />
|
|
33
|
+
*/
|
|
34
|
+
value = null;
|
|
35
|
+
/**
|
|
36
|
+
* Initial selected value when the component is first mounted.
|
|
37
|
+
* @type {CascaderValue | null}
|
|
38
|
+
* @example
|
|
39
|
+
* <x-cascader defaultValue={['zhejiang', 'hangzhou']} />
|
|
40
|
+
*/
|
|
41
|
+
defaultValue = null;
|
|
42
|
+
/**
|
|
43
|
+
* Placeholder text displayed when no value is selected.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @default 'Please select'
|
|
46
|
+
* @example
|
|
47
|
+
* <x-cascader placeholder="Select address" />
|
|
48
|
+
*/
|
|
49
|
+
placeholder = translate('Cascader.placeholder', {}, 'Please select');
|
|
50
|
+
/**
|
|
51
|
+
* Whether the cascader component is disabled and non-interactive.
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @default false
|
|
54
|
+
* @example
|
|
55
|
+
* <x-cascader disabled />
|
|
56
|
+
*/
|
|
57
|
+
disabled = false;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to show a clear button that allows resetting the selection.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @default true
|
|
62
|
+
* @example
|
|
63
|
+
* <x-cascader allowClear={false} />
|
|
64
|
+
*/
|
|
65
|
+
allowClear = true;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to show a search input for filtering options.
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @default false
|
|
70
|
+
* @example
|
|
71
|
+
* <x-cascader showSearch />
|
|
72
|
+
*/
|
|
73
|
+
showSearch = false;
|
|
74
|
+
/**
|
|
75
|
+
* Custom mapping for field names in the options data.
|
|
76
|
+
* @type {CascaderFieldNames}
|
|
77
|
+
* @default { value: 'value', label: 'label', children: 'children' }
|
|
78
|
+
* @example
|
|
79
|
+
* <x-cascader fieldNames={{ value: 'id', label: 'name', children: 'items' }} />
|
|
80
|
+
*/
|
|
81
|
+
fieldNames = { value: 'value', label: 'label', children: 'children' };
|
|
82
|
+
/**
|
|
83
|
+
* Size of the cascader input field.
|
|
84
|
+
* @type {'large' | 'middle' | 'small'}
|
|
85
|
+
* @default 'middle'
|
|
86
|
+
* @example
|
|
87
|
+
* <x-cascader size="small" />
|
|
88
|
+
*/
|
|
89
|
+
size = 'middle';
|
|
90
|
+
/**
|
|
91
|
+
* Current validation status of the component.
|
|
92
|
+
* @type {'error' | 'warning'}
|
|
93
|
+
* @example
|
|
94
|
+
* <x-cascader status="error" />
|
|
95
|
+
*/
|
|
96
|
+
status;
|
|
97
|
+
/**
|
|
98
|
+
* Preferred placement of the dropdown relative to the input.
|
|
99
|
+
* @type {CascaderPlacement}
|
|
100
|
+
* @default 'bottomLeft'
|
|
101
|
+
* @example
|
|
102
|
+
* <x-cascader placement="topRight" />
|
|
103
|
+
*/
|
|
104
|
+
placement = 'bottomLeft';
|
|
105
|
+
/**
|
|
106
|
+
* Visual variant style of the cascader input.
|
|
107
|
+
* @type {'outlined' | 'borderless' | 'filled'}
|
|
108
|
+
* @default 'outlined'
|
|
109
|
+
* @example
|
|
110
|
+
* <x-cascader variant="filled" />
|
|
111
|
+
*/
|
|
112
|
+
variant = 'outlined';
|
|
113
|
+
/**
|
|
114
|
+
* Interaction type that triggers the expansion of sub-menus.
|
|
115
|
+
* @type {'click' | 'hover'}
|
|
116
|
+
* @default 'click'
|
|
117
|
+
* @example
|
|
118
|
+
* <x-cascader expandTrigger="hover" />
|
|
119
|
+
*/
|
|
120
|
+
expandTrigger = 'click';
|
|
121
|
+
/**
|
|
122
|
+
* Whether to update the value on selecting each level of the hierarchy.
|
|
123
|
+
* If false, only selecting leaf nodes updates the value.
|
|
124
|
+
* @type {boolean}
|
|
125
|
+
* @default false
|
|
126
|
+
* @example
|
|
127
|
+
* <x-cascader changeOnSelect />
|
|
128
|
+
*/
|
|
129
|
+
changeOnSelect = false;
|
|
130
|
+
/**
|
|
131
|
+
* Whether to enable multi-selection mode using checkboxes.
|
|
132
|
+
* @type {boolean}
|
|
133
|
+
* @default false
|
|
134
|
+
* @example
|
|
135
|
+
* <x-cascader multiple />
|
|
136
|
+
*/
|
|
137
|
+
multiple = false;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum number of selected tags displayed in the input (for multiple mode).
|
|
140
|
+
* 'responsive' will automatically hide overflowing tags.
|
|
141
|
+
* @type {number | 'responsive'}
|
|
142
|
+
* @default 'responsive'
|
|
143
|
+
* @example
|
|
144
|
+
* <x-cascader multiple maxTagCount={2} />
|
|
145
|
+
*/
|
|
146
|
+
maxTagCount = 'responsive';
|
|
147
|
+
/**
|
|
148
|
+
* Controlled visibility state of the dropdown menu.
|
|
149
|
+
* @type {boolean}
|
|
150
|
+
* @example
|
|
151
|
+
* <x-cascader open={true} />
|
|
152
|
+
*/
|
|
153
|
+
open;
|
|
154
|
+
/**
|
|
155
|
+
* Whether the component should automatically receive focus upon mounting.
|
|
156
|
+
* @type {boolean}
|
|
157
|
+
* @default false
|
|
158
|
+
* @example
|
|
159
|
+
* <x-cascader autofocus />
|
|
160
|
+
*/
|
|
161
|
+
autofocus = false;
|
|
162
|
+
/**
|
|
163
|
+
* Custom content to display when no options match the search or current selection.
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @default 'No data'
|
|
166
|
+
* @example
|
|
167
|
+
* <x-cascader notFoundContent="No results found" />
|
|
168
|
+
*/
|
|
169
|
+
notFoundContent = translate('Cascader.notFoundContent', {}, 'No data');
|
|
170
|
+
/**
|
|
171
|
+
* Whether the component is currently in a loading state.
|
|
172
|
+
* @type {boolean}
|
|
173
|
+
* @default false
|
|
174
|
+
* @example
|
|
175
|
+
* <x-cascader loading />
|
|
176
|
+
*/
|
|
177
|
+
loading = false;
|
|
178
|
+
/**
|
|
179
|
+
* Character(s) used to separate breadcrumb labels in the selected path.
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @default ' / '
|
|
182
|
+
* @example
|
|
183
|
+
* <x-cascader displaySeparator=" > " />
|
|
184
|
+
*/
|
|
185
|
+
displaySeparator = ' / ';
|
|
186
|
+
// ========================================
|
|
187
|
+
// STATE
|
|
188
|
+
// ========================================
|
|
189
|
+
/**
|
|
190
|
+
* Internal visibility state of the dropdown.
|
|
191
|
+
* @type {boolean}
|
|
192
|
+
*/
|
|
193
|
+
isOpen = false;
|
|
194
|
+
/**
|
|
195
|
+
* Current hierarchy of options being displayed in the dropdown columns.
|
|
196
|
+
* @type {CascaderOption[][]}
|
|
197
|
+
*/
|
|
198
|
+
activeOptions = [];
|
|
199
|
+
/**
|
|
200
|
+
* The list of options representing the currently selected path.
|
|
201
|
+
* @type {CascaderOption[]}
|
|
202
|
+
*/
|
|
203
|
+
selectedPath = [];
|
|
204
|
+
/**
|
|
205
|
+
* The list of options representing the path currently under mouse hover.
|
|
206
|
+
* @type {CascaderOption[]}
|
|
207
|
+
*/
|
|
208
|
+
hoveredPath = [];
|
|
209
|
+
/**
|
|
210
|
+
* Current value of the search input field.
|
|
211
|
+
* @type {string}
|
|
212
|
+
*/
|
|
213
|
+
searchValue = '';
|
|
214
|
+
/**
|
|
215
|
+
* Options filtered by the search query.
|
|
216
|
+
* @type {CascaderOption[][]}
|
|
217
|
+
*/
|
|
218
|
+
filteredOptions = [];
|
|
219
|
+
/**
|
|
220
|
+
* Whether the component currently has keyboard focus.
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
*/
|
|
223
|
+
isFocused = false;
|
|
224
|
+
/**
|
|
225
|
+
* Whether the mouse is currently hovering over the main input area.
|
|
226
|
+
* @type {boolean}
|
|
227
|
+
*/
|
|
228
|
+
hovering = false;
|
|
229
|
+
// ========================================
|
|
230
|
+
// EVENTS
|
|
231
|
+
// ========================================
|
|
232
|
+
/**
|
|
233
|
+
* Emitted when the selected value changes.
|
|
234
|
+
* @event xChange
|
|
235
|
+
* @example
|
|
236
|
+
* <x-cascader onXChange={(ev) => console.log('Selected:', ev.detail.value)} />
|
|
237
|
+
*/
|
|
238
|
+
xChange;
|
|
239
|
+
/**
|
|
240
|
+
* Emitted when the user types in the search input.
|
|
241
|
+
* @event xSearch
|
|
242
|
+
* @example
|
|
243
|
+
* <x-cascader onXSearch={(ev) => console.log('Searching:', ev.detail.value)} />
|
|
244
|
+
*/
|
|
245
|
+
xSearch;
|
|
246
|
+
/**
|
|
247
|
+
* Emitted when the dropdown menu visibility changes.
|
|
248
|
+
* @event xDropdownVisibleChange
|
|
249
|
+
* @example
|
|
250
|
+
* <x-cascader onXDropdownVisibleChange={(ev) => console.log('Visible:', ev.detail.visible)} />
|
|
251
|
+
*/
|
|
252
|
+
xDropdownVisibleChange;
|
|
253
|
+
/**
|
|
254
|
+
* Emitted when a sub-menu needs to load data asynchronously.
|
|
255
|
+
* @event xLoadData
|
|
256
|
+
* @example
|
|
257
|
+
* <x-cascader onXLoadData={(ev) => handleLoadData(ev.detail.option)} />
|
|
258
|
+
*/
|
|
259
|
+
xLoadData;
|
|
260
|
+
/**
|
|
261
|
+
* Emitted when the component receives focus.
|
|
262
|
+
* @event xFocus
|
|
263
|
+
*/
|
|
264
|
+
xFocus;
|
|
265
|
+
/**
|
|
266
|
+
* Emitted when the component loses focus.
|
|
267
|
+
* @event xBlur
|
|
268
|
+
*/
|
|
269
|
+
xBlur;
|
|
270
|
+
// ========================================
|
|
271
|
+
// REFS
|
|
272
|
+
// ========================================
|
|
273
|
+
wrapperRef;
|
|
274
|
+
portalInstance = null;
|
|
275
|
+
inputRef;
|
|
276
|
+
dropdownEl = null;
|
|
277
|
+
/**
|
|
278
|
+
* Cascader Service Instance
|
|
279
|
+
*/
|
|
280
|
+
get cascaderService() {
|
|
281
|
+
return new CascaderService({
|
|
282
|
+
value: this.fieldNames?.value || 'value',
|
|
283
|
+
label: this.fieldNames?.label || 'label',
|
|
284
|
+
children: this.fieldNames?.children || 'children'
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Destroys the portal instance and cleans up references.
|
|
289
|
+
* This is called when the dropdown is closed or the component is destroyed to prevent memory leaks.
|
|
290
|
+
* @returns {void}
|
|
291
|
+
*/
|
|
292
|
+
destroyPortal() {
|
|
293
|
+
if (this.portalInstance) {
|
|
294
|
+
this.portalInstance.destroy();
|
|
295
|
+
this.portalInstance = null;
|
|
296
|
+
}
|
|
297
|
+
this.dropdownEl = null;
|
|
298
|
+
}
|
|
299
|
+
// ========================================
|
|
300
|
+
// LIFECYCLE
|
|
301
|
+
// ========================================
|
|
302
|
+
/**
|
|
303
|
+
* Stencil lifecycle: Component is about to load.
|
|
304
|
+
* Initializes default values and synchronizes the initial path.
|
|
305
|
+
* @returns {void}
|
|
306
|
+
*/
|
|
307
|
+
componentWillLoad() {
|
|
308
|
+
// If defaultValue is provided and value is not set, use defaultValue
|
|
309
|
+
if (this.defaultValue && !this.value) {
|
|
310
|
+
this.value = this.defaultValue;
|
|
311
|
+
}
|
|
312
|
+
// Set up initial root options
|
|
313
|
+
this.initActiveOptions();
|
|
314
|
+
// Resolve the full path of option objects from the value array
|
|
315
|
+
this.syncValueToPath();
|
|
316
|
+
// Sync controlled open prop with internal state
|
|
317
|
+
if (this.open !== undefined) {
|
|
318
|
+
this.isOpen = this.open;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Stencil lifecycle: Component has loaded.
|
|
323
|
+
* Handles automatic focusing if required by the `autofocus` prop.
|
|
324
|
+
* @returns {void}
|
|
325
|
+
*/
|
|
326
|
+
componentDidLoad() {
|
|
327
|
+
if (this.autofocus) {
|
|
328
|
+
this.setFocus();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Stencil lifecycle: Component is removed from the DOM.
|
|
333
|
+
* Ensures the dropdown overlay is cleaned up.
|
|
334
|
+
* @returns {void}
|
|
335
|
+
*/
|
|
336
|
+
disconnectedCallback() {
|
|
337
|
+
this.destroyPortal();
|
|
338
|
+
}
|
|
339
|
+
// ========================================
|
|
340
|
+
// WATCHERS
|
|
341
|
+
// ========================================
|
|
342
|
+
/**
|
|
343
|
+
* Watches for changes in the `options` prop.
|
|
344
|
+
* Re-initializes active options and synchronizes the selection path.
|
|
345
|
+
* @returns {void}
|
|
346
|
+
*/
|
|
347
|
+
watchOptions() {
|
|
348
|
+
this.initActiveOptions();
|
|
349
|
+
this.syncValueToPath();
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Watches for changes in the `value` prop.
|
|
353
|
+
* Synchronizes the displayed path when the value is updated externally.
|
|
354
|
+
* @returns {void}
|
|
355
|
+
*/
|
|
356
|
+
watchValue() {
|
|
357
|
+
this.syncValueToPath();
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Watches for changes in the `open` prop.
|
|
361
|
+
* Synchronizes the controlled visibility state with the internal state.
|
|
362
|
+
* @param {boolean | undefined} newValue - The new visibility state.
|
|
363
|
+
* @returns {void}
|
|
364
|
+
*/
|
|
365
|
+
watchOpen(newValue) {
|
|
366
|
+
if (newValue !== undefined) {
|
|
367
|
+
this.isOpen = newValue;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Watches for changes in the internal `isOpen` state.
|
|
372
|
+
* Triggers dropdown visibility event and handles portal creation/destruction.
|
|
373
|
+
* @param {boolean} newValue - The new internal visibility state.
|
|
374
|
+
* @returns {void}
|
|
375
|
+
*/
|
|
376
|
+
isOpenChanged(newValue) {
|
|
377
|
+
// Notify external listeners about visibility changes
|
|
378
|
+
this.xDropdownVisibleChange.emit({ visible: newValue });
|
|
379
|
+
if (newValue) {
|
|
380
|
+
// Create or update the overlay portal if opening
|
|
381
|
+
this.createOrUpdatePortal();
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
// Clean up the portal and reset search if closing
|
|
385
|
+
this.destroyPortal();
|
|
386
|
+
if (this.showSearch) {
|
|
387
|
+
this.searchValue = '';
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Watches for changes in the `searchValue` state.
|
|
393
|
+
* Filters the options tree based on the user's input.
|
|
394
|
+
* @param {string} newValue - The new search query.
|
|
395
|
+
* @returns {void}
|
|
396
|
+
*/
|
|
397
|
+
watchSearchValue(newValue) {
|
|
398
|
+
if (!this.showSearch)
|
|
399
|
+
return;
|
|
400
|
+
if (newValue) {
|
|
401
|
+
// Filter options and display only matching ones
|
|
402
|
+
const filteredOptions = this.cascaderService.filterOptions(this.options, newValue);
|
|
403
|
+
if (filteredOptions.length > 0) {
|
|
404
|
+
// Automatically expand the path to the first matched option
|
|
405
|
+
const matchingPath = this.cascaderService.getFirstMatchingPath(filteredOptions, newValue);
|
|
406
|
+
this.hoveredPath = matchingPath;
|
|
407
|
+
this.activeOptions = this.cascaderService.getActiveOptionsFromPath(filteredOptions, matchingPath);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
// No match, just show empty
|
|
411
|
+
this.activeOptions = [[]];
|
|
412
|
+
this.hoveredPath = [];
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
// If search is cleared, restore the options tree
|
|
417
|
+
this.syncValueToPath();
|
|
418
|
+
}
|
|
419
|
+
// Update the portal content
|
|
420
|
+
this.updatePortal();
|
|
421
|
+
}
|
|
422
|
+
// ========================================
|
|
423
|
+
// LISTENERS
|
|
424
|
+
// ========================================
|
|
425
|
+
/**
|
|
426
|
+
* Listens for clicks on the window to detect outside clicks.
|
|
427
|
+
* Closes the dropdown if the user clicks outside the component and its portal.
|
|
428
|
+
* @param {MouseEvent} ev - The click event.
|
|
429
|
+
* @returns {void}
|
|
430
|
+
*/
|
|
431
|
+
handleWindowClick(ev) {
|
|
432
|
+
// If dropdown is already closed, do nothing
|
|
433
|
+
if (!this.isOpen)
|
|
434
|
+
return;
|
|
435
|
+
const path = ev.composedPath();
|
|
436
|
+
const isInsideComponent = path.includes(this.el);
|
|
437
|
+
const portalEl = this.portalInstance?.getElement();
|
|
438
|
+
const isInsidePortal = portalEl ? path.includes(portalEl) : false;
|
|
439
|
+
// Check if the click happened outside the component trigger and the dropdown overlay
|
|
440
|
+
if (!isInsideComponent && !isInsidePortal) {
|
|
441
|
+
this.closeDropdown();
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Listens for keyboard events to support accessibility and navigation.
|
|
446
|
+
* Support Escape, Enter, and ArrowDown for common cascading selection interactions.
|
|
447
|
+
* @param {KeyboardEvent} event - The keyboard event.
|
|
448
|
+
* @returns {void}
|
|
449
|
+
*/
|
|
450
|
+
handleKeyDown(event) {
|
|
451
|
+
// Ignore keyboard input if component is disabled
|
|
452
|
+
if (this.disabled)
|
|
453
|
+
return;
|
|
454
|
+
switch (event.key) {
|
|
455
|
+
case 'Escape':
|
|
456
|
+
// Close dropdown on Escape key
|
|
457
|
+
this.closeDropdown();
|
|
458
|
+
break;
|
|
459
|
+
case 'Enter':
|
|
460
|
+
// Open dropdown on Enter if closed
|
|
461
|
+
if (!this.isOpen) {
|
|
462
|
+
this.openDropdown();
|
|
463
|
+
}
|
|
464
|
+
break;
|
|
465
|
+
case 'ArrowDown':
|
|
466
|
+
// Open dropdown on ArrowDown if closed
|
|
467
|
+
if (!this.isOpen) {
|
|
468
|
+
this.openDropdown();
|
|
469
|
+
}
|
|
470
|
+
// Prevent page scrolling when navigating the menu
|
|
471
|
+
event.preventDefault();
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
// ========================================
|
|
476
|
+
// PUBLIC METHODS
|
|
477
|
+
// ========================================
|
|
478
|
+
/**
|
|
479
|
+
* Sets focus on the cascader input field.
|
|
480
|
+
* This is a public method that can be called via a reference to the component.
|
|
481
|
+
* @returns {Promise<void>}
|
|
482
|
+
*/
|
|
483
|
+
async setFocus() {
|
|
484
|
+
this.inputRef?.focus();
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Removes focus from the cascader input field.
|
|
488
|
+
* This is a public method that can be called via a reference to the component.
|
|
489
|
+
* @returns {Promise<void>}
|
|
490
|
+
*/
|
|
491
|
+
async setBlur() {
|
|
492
|
+
this.inputRef?.blur();
|
|
493
|
+
}
|
|
494
|
+
// ========================================
|
|
495
|
+
// PORTAL MANAGEMENT
|
|
496
|
+
// ========================================
|
|
497
|
+
/**
|
|
498
|
+
* Creates or updates the portal instance for the dropdown menu.
|
|
499
|
+
* Positions the dropdown relative to the component wrapper.
|
|
500
|
+
* @returns {void}
|
|
501
|
+
*/
|
|
502
|
+
createOrUpdatePortal() {
|
|
503
|
+
if (!this.wrapperRef)
|
|
504
|
+
return;
|
|
505
|
+
const dropdownContent = this.buildDropdownElement();
|
|
506
|
+
if (this.portalInstance) {
|
|
507
|
+
// Update existing portal with new state and content
|
|
508
|
+
this.portalInstance.update({
|
|
509
|
+
open: true,
|
|
510
|
+
content: dropdownContent,
|
|
511
|
+
target: this.wrapperRef,
|
|
512
|
+
placement: this.placement,
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
// Create a new portal instance if none exists
|
|
517
|
+
this.portalInstance = PortalController.create({
|
|
518
|
+
open: true,
|
|
519
|
+
content: dropdownContent,
|
|
520
|
+
target: this.wrapperRef,
|
|
521
|
+
placement: this.placement,
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Forces an update of the content and position of the existing portal.
|
|
527
|
+
* @returns {void}
|
|
528
|
+
*/
|
|
529
|
+
updatePortal() {
|
|
530
|
+
if (!this.portalInstance || !this.wrapperRef)
|
|
531
|
+
return;
|
|
532
|
+
this.portalInstance.update({
|
|
533
|
+
open: true,
|
|
534
|
+
content: this.buildDropdownElement(),
|
|
535
|
+
target: this.wrapperRef,
|
|
536
|
+
placement: this.placement,
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
// ========================================
|
|
540
|
+
// BUILD DOM METHODS (for Portal)
|
|
541
|
+
// ========================================
|
|
542
|
+
/**
|
|
543
|
+
* Builds and configures the dropdown content element.
|
|
544
|
+
* @returns {HTMLElement} The prepared x-cascader-dropdown-content element.
|
|
545
|
+
*/
|
|
546
|
+
buildDropdownElement() {
|
|
547
|
+
if (!this.dropdownEl) {
|
|
548
|
+
this.dropdownEl = document.createElement('x-cascader-dropdown-content');
|
|
549
|
+
// Listen for item click and hover events - Add only once
|
|
550
|
+
this.dropdownEl.addEventListener('xItemClick', ((e) => {
|
|
551
|
+
const { option, depth } = e.detail;
|
|
552
|
+
this.handleOptionClick(option, depth);
|
|
553
|
+
}));
|
|
554
|
+
this.dropdownEl.addEventListener('xItemHover', ((e) => {
|
|
555
|
+
const { option, depth } = e.detail;
|
|
556
|
+
this.handleOptionHover(option, depth);
|
|
557
|
+
}));
|
|
558
|
+
}
|
|
559
|
+
const dropdownEl = this.dropdownEl;
|
|
560
|
+
// Set classes
|
|
561
|
+
const classes = {
|
|
562
|
+
'x-cascader-dropdown': true,
|
|
563
|
+
'x-cascader-dropdown-hidden': !this.isOpen,
|
|
564
|
+
[`x-cascader-dropdown-placement-${this.placement}`]: true,
|
|
565
|
+
};
|
|
566
|
+
// Set styles (empty, let SCSS handle it)
|
|
567
|
+
const styles = {};
|
|
568
|
+
dropdownEl.dropdownClasses = classes;
|
|
569
|
+
dropdownEl.dropdownStyle = styles;
|
|
570
|
+
dropdownEl.activeOptions = this.activeOptions;
|
|
571
|
+
dropdownEl.selectedPath = this.selectedPath;
|
|
572
|
+
dropdownEl.hoveredPath = this.hoveredPath;
|
|
573
|
+
dropdownEl.multiple = this.multiple;
|
|
574
|
+
dropdownEl.expandTrigger = this.expandTrigger;
|
|
575
|
+
dropdownEl.fieldNames = this.fieldNames;
|
|
576
|
+
dropdownEl.notFoundContent = this.notFoundContent;
|
|
577
|
+
return dropdownEl;
|
|
578
|
+
}
|
|
579
|
+
// ========================================
|
|
580
|
+
// PRIVATE METHODS
|
|
581
|
+
// ========================================
|
|
582
|
+
/**
|
|
583
|
+
* Initializes the active options with the root level options.
|
|
584
|
+
* This sets the first column of the cascader dropdown.
|
|
585
|
+
* @returns {void}
|
|
586
|
+
*/
|
|
587
|
+
initActiveOptions() {
|
|
588
|
+
if (this.options && this.options.length > 0) {
|
|
589
|
+
// Set the root options as the first column
|
|
590
|
+
this.activeOptions = [this.options];
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
// Reset if no options provided
|
|
594
|
+
this.activeOptions = [];
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Synchronizes the internal path representation based on the current `value`.
|
|
599
|
+
* Resolves component options objects from the value array (which usually contains only IDs/values).
|
|
600
|
+
*
|
|
601
|
+
* Flow:
|
|
602
|
+
* 1. Checks if `value` is present.
|
|
603
|
+
* 2. Determines the `valuePath`:
|
|
604
|
+
* - For multiple mode: takes the first array of values (currently supports display of one path in input).
|
|
605
|
+
* - For single mode: takes the value array directly.
|
|
606
|
+
* 3. Calls `findOptionPath` to resolve the full path of option objects.
|
|
607
|
+
* 4. Updates `selectedPath`.
|
|
608
|
+
* 5. Updates `activeOptions`:
|
|
609
|
+
* - Reconstructs the columns of options to display based on the selected path.
|
|
610
|
+
*
|
|
611
|
+
* @returns {void}
|
|
612
|
+
*/
|
|
613
|
+
syncValueToPath() {
|
|
614
|
+
// If no value is set, clear the selected path
|
|
615
|
+
if (!this.value || (Array.isArray(this.value) && this.value.length === 0)) {
|
|
616
|
+
this.selectedPath = [];
|
|
617
|
+
this.hoveredPath = [];
|
|
618
|
+
this.initActiveOptions();
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
// Resolve the relevant path array from either single or multiple selection modes
|
|
622
|
+
const valuePath = this.multiple
|
|
623
|
+
? this.value[0] || []
|
|
624
|
+
: this.value;
|
|
625
|
+
// Find the full option objects matching the values in the path
|
|
626
|
+
const path = this.cascaderService.findOptionPath(this.options, valuePath);
|
|
627
|
+
this.selectedPath = path;
|
|
628
|
+
// Set hovered path to match selected path so that the menu is expanded correctly
|
|
629
|
+
this.hoveredPath = [...path];
|
|
630
|
+
// Update the multi-column menu display to match the selected path
|
|
631
|
+
if (path.length > 0) {
|
|
632
|
+
this.activeOptions = this.cascaderService.getActiveOptionsFromPath(this.options, path);
|
|
633
|
+
}
|
|
634
|
+
else {
|
|
635
|
+
this.initActiveOptions();
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Helper to get children from option
|
|
640
|
+
*/
|
|
641
|
+
getOptionChildren(option) {
|
|
642
|
+
return this.cascaderService.getChildren(option);
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Opens the dropdown menu.
|
|
646
|
+
*/
|
|
647
|
+
openDropdown() {
|
|
648
|
+
if (this.disabled)
|
|
649
|
+
return;
|
|
650
|
+
this.isOpen = true;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Closes the dropdown menu.
|
|
654
|
+
*/
|
|
655
|
+
closeDropdown() {
|
|
656
|
+
this.isOpen = false;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Toggles the dropdown menu visibility.
|
|
660
|
+
*/
|
|
661
|
+
toggleDropdown() {
|
|
662
|
+
if (this.isOpen) {
|
|
663
|
+
this.closeDropdown();
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
this.openDropdown();
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Handles click events on an option item.
|
|
671
|
+
* Manages hierarchy expansion, async loading, and selection updates.
|
|
672
|
+
*
|
|
673
|
+
* Flow:
|
|
674
|
+
* 1. Ignore if option is disabled.
|
|
675
|
+
* 2. Determine if the option has children.
|
|
676
|
+
* 3. Update the hovered/selected path state.
|
|
677
|
+
* 4. If children exist:
|
|
678
|
+
* - Expand next level in activeOptions.
|
|
679
|
+
* - Load data if leaf is false but children are empty.
|
|
680
|
+
* - Emit change if changeOnSelect is enabled.
|
|
681
|
+
* 5. If no children:
|
|
682
|
+
* - Selection is complete (leaf node).
|
|
683
|
+
* - Update value and close dropdown if in single mode.
|
|
684
|
+
*
|
|
685
|
+
* @param {CascaderOption} option - The clicked option object.
|
|
686
|
+
* @param {number} depth - The hierarchical level of the clicked option.
|
|
687
|
+
* @returns {void}
|
|
688
|
+
*/
|
|
689
|
+
handleOptionClick(option, depth) {
|
|
690
|
+
// Prevent interaction with disabled options
|
|
691
|
+
if (option.disabled)
|
|
692
|
+
return;
|
|
693
|
+
const children = this.getOptionChildren(option);
|
|
694
|
+
// Update the path representing the current hierarchical selection
|
|
695
|
+
const newPath = [...this.hoveredPath.slice(0, depth), option];
|
|
696
|
+
this.hoveredPath = newPath;
|
|
697
|
+
// Check if we need to open a sub-menu
|
|
698
|
+
if (children && children.length > 0) {
|
|
699
|
+
// Update columns to show the next level
|
|
700
|
+
this.activeOptions = [...this.activeOptions.slice(0, depth + 1), children];
|
|
701
|
+
// Handle asynchronous loading if children are marked as existing but not yet fetched
|
|
702
|
+
if (option.isLeaf === false && children.length === 0) {
|
|
703
|
+
this.xLoadData.emit({ option, path: newPath });
|
|
704
|
+
}
|
|
705
|
+
// If changeOnSelect is true, we update the component value even before reaching a leaf
|
|
706
|
+
if (this.changeOnSelect) {
|
|
707
|
+
this.selectPath(newPath);
|
|
708
|
+
}
|
|
709
|
+
// Re-render the portal with updated column data
|
|
710
|
+
this.updatePortal();
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
// Leaf node selected: finalize selection
|
|
714
|
+
this.selectPath(newPath);
|
|
715
|
+
if (!this.multiple) {
|
|
716
|
+
// In single mode, selecting a leaf closes the menu
|
|
717
|
+
this.closeDropdown();
|
|
718
|
+
}
|
|
719
|
+
else {
|
|
720
|
+
// In multiple mode, keep menu open but refresh portal for checkbox states
|
|
721
|
+
this.updatePortal();
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Handles mouse hover events on an option item.
|
|
727
|
+
* Updates the hovered path and expands the sub-menu if the option has children.
|
|
728
|
+
*
|
|
729
|
+
* @param {CascaderOption} option - The hovered option object.
|
|
730
|
+
* @param {number} depth - The hierarchy level.
|
|
731
|
+
* @returns {void}
|
|
732
|
+
*/
|
|
733
|
+
handleOptionHover(option, depth) {
|
|
734
|
+
// Ignore hovering on disabled options
|
|
735
|
+
if (option.disabled)
|
|
736
|
+
return;
|
|
737
|
+
const children = this.getOptionChildren(option);
|
|
738
|
+
const newPath = [...this.hoveredPath.slice(0, depth), option];
|
|
739
|
+
this.hoveredPath = newPath;
|
|
740
|
+
if (children && children.length > 0) {
|
|
741
|
+
// Show children in the next column
|
|
742
|
+
this.activeOptions = [...this.activeOptions.slice(0, depth + 1), children];
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
// No children, truncate active columns to current level
|
|
746
|
+
this.activeOptions = this.activeOptions.slice(0, depth + 1);
|
|
747
|
+
}
|
|
748
|
+
// Update the dropdown overlay content
|
|
749
|
+
this.updatePortal();
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Updates the value and selected path states, then emits the change event.
|
|
753
|
+
* Handles both single and multiple selection logic.
|
|
754
|
+
*
|
|
755
|
+
* @param {CascaderOption[]} path - The array of options representing the choice.
|
|
756
|
+
* @returns {void}
|
|
757
|
+
*/
|
|
758
|
+
selectPath(path) {
|
|
759
|
+
this.selectedPath = path;
|
|
760
|
+
const valuePath = path.map(opt => this.cascaderService.getValue(opt));
|
|
761
|
+
if (this.multiple) {
|
|
762
|
+
// Multiple selection logic
|
|
763
|
+
const currentValues = (this.value || []);
|
|
764
|
+
// Check if this path is already selected to implement toggle behavior
|
|
765
|
+
const existingIndex = currentValues.findIndex(v => v.length === valuePath.length && v.every((val, i) => val === valuePath[i]));
|
|
766
|
+
if (existingIndex >= 0) {
|
|
767
|
+
// Deselect if already present
|
|
768
|
+
const newValues = [...currentValues];
|
|
769
|
+
newValues.splice(existingIndex, 1);
|
|
770
|
+
this.value = newValues;
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
// Add to selection if not present
|
|
774
|
+
this.value = [...currentValues, valuePath];
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
// Single selection: simply overwrite current value
|
|
779
|
+
this.value = valuePath;
|
|
780
|
+
if (this.showSearch) {
|
|
781
|
+
this.searchValue = '';
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
// Notify listeners about the value change
|
|
785
|
+
this.xChange.emit({
|
|
786
|
+
value: this.value,
|
|
787
|
+
selectedOptions: path,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Resets the current selection and clears all paths.
|
|
792
|
+
* @param {MouseEvent} e - The click event from the clear button.
|
|
793
|
+
* @returns {void}
|
|
794
|
+
*/
|
|
795
|
+
handleClear(e) {
|
|
796
|
+
// Prevent the click from triggering the dropdown toggle
|
|
797
|
+
e.stopPropagation();
|
|
798
|
+
// Reset values based on selection mode
|
|
799
|
+
this.value = this.multiple ? [] : null;
|
|
800
|
+
this.selectedPath = [];
|
|
801
|
+
this.hoveredPath = [];
|
|
802
|
+
// Revert menu to root state
|
|
803
|
+
this.initActiveOptions();
|
|
804
|
+
// Notify listeners about the clear action
|
|
805
|
+
this.xChange.emit({
|
|
806
|
+
value: this.value,
|
|
807
|
+
selectedOptions: [],
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Handles input events in the search field.
|
|
812
|
+
* Updates `searchValue` and emits the search event.
|
|
813
|
+
*
|
|
814
|
+
* Flow:
|
|
815
|
+
* 1. Captures the input value from the event target.
|
|
816
|
+
* 2. Updates the internal `searchValue` state.
|
|
817
|
+
* 3. Emits the `xSearch` event with the new value for external filtering.
|
|
818
|
+
* 4. (Future) Triggers internal filtering logic if implemented.
|
|
819
|
+
*
|
|
820
|
+
* @param {Event} e - The input event.
|
|
821
|
+
* @returns {void}
|
|
822
|
+
*/
|
|
823
|
+
handleSearchInput(e) {
|
|
824
|
+
const input = e.target;
|
|
825
|
+
this.searchValue = input.value;
|
|
826
|
+
// Notify listeners about the change in search value
|
|
827
|
+
this.xSearch.emit({ value: this.searchValue });
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Internal handler for focus event.
|
|
831
|
+
* @returns {void}
|
|
832
|
+
*/
|
|
833
|
+
handleFocus() {
|
|
834
|
+
this.isFocused = true;
|
|
835
|
+
this.xFocus.emit();
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Internal handler for blur event.
|
|
839
|
+
* @returns {void}
|
|
840
|
+
*/
|
|
841
|
+
handleBlur() {
|
|
842
|
+
this.isFocused = false;
|
|
843
|
+
this.xBlur.emit();
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Updates hovering state when mouse enters the component.
|
|
847
|
+
*/
|
|
848
|
+
handleMouseEnter = () => {
|
|
849
|
+
this.hovering = true;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Updates hovering state when mouse leaves the component.
|
|
853
|
+
*/
|
|
854
|
+
handleMouseLeave = () => {
|
|
855
|
+
this.hovering = false;
|
|
856
|
+
};
|
|
857
|
+
// ========================================
|
|
858
|
+
// RENDER HELPERS
|
|
859
|
+
// ========================================
|
|
860
|
+
/**
|
|
861
|
+
* Constructs the string to be displayed in the input based on the selected path.
|
|
862
|
+
* Labels are joined using the `displaySeparator`.
|
|
863
|
+
*
|
|
864
|
+
* @returns {string} The concatenated labels or an empty string if no selection.
|
|
865
|
+
*/
|
|
866
|
+
getDisplayLabel() {
|
|
867
|
+
if (this.selectedPath.length === 0) {
|
|
868
|
+
return '';
|
|
869
|
+
}
|
|
870
|
+
// Map selected objects to labels and join them
|
|
871
|
+
return this.selectedPath.map(opt => this.cascaderService.getLabel(opt)).join(this.displaySeparator);
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Renders the arrow icon used to indicate dropdown state.
|
|
875
|
+
* @returns {JSX.Element} The rendered arrow icon.
|
|
876
|
+
*/
|
|
877
|
+
renderArrowIcon() {
|
|
878
|
+
return (h("x-icon", { name: getIcon('arrowDown') }));
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Renders the clear icon used to reset the selection.
|
|
882
|
+
* @returns {JSX.Element} The rendered clear icon.
|
|
883
|
+
*/
|
|
884
|
+
renderClearIcon() {
|
|
885
|
+
return (h("x-icon", { name: getIcon('clear') }));
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Renders the loading icon shown when the component is in a loading state.
|
|
889
|
+
* @returns {JSX.Element} The rendered loading icon.
|
|
890
|
+
*/
|
|
891
|
+
renderLoadingIcon() {
|
|
892
|
+
return (h("x-icon", { name: getIcon('loading') }));
|
|
893
|
+
}
|
|
894
|
+
// ========================================
|
|
895
|
+
// RENDER
|
|
896
|
+
// ========================================
|
|
897
|
+
/**
|
|
898
|
+
* Main render method for the XCascader component.
|
|
899
|
+
* Handles the input display, search mode, and placement of icons.
|
|
900
|
+
*
|
|
901
|
+
* Flow:
|
|
902
|
+
* 1. Calculates the display label from the selected path.
|
|
903
|
+
* 2. Determines visibility of the clear button (hovering + value exists).
|
|
904
|
+
* 3. Renders the Host element with dynamic classes for state (open, disabled, size, etc.).
|
|
905
|
+
* 4. Renders the selector area:
|
|
906
|
+
* - If `showSearch` is true: Renders an input field that toggles between search value and display label.
|
|
907
|
+
* - If `showSearch` is false: Renders a static text span.
|
|
908
|
+
* 5. Renders suffix icons:
|
|
909
|
+
* - Loading icon (if loading).
|
|
910
|
+
* - Clear icon (if applicable).
|
|
911
|
+
* - Arrow/Chevron icon (indicates dropdown state).
|
|
912
|
+
*
|
|
913
|
+
* @returns {JSX.Element} The full component tree.
|
|
914
|
+
*/
|
|
915
|
+
render() {
|
|
916
|
+
const label = this.getDisplayLabel();
|
|
917
|
+
// Determine if the clear button should be visible
|
|
918
|
+
const showClear = this.allowClear && label && !this.disabled && this.hovering;
|
|
919
|
+
return (h(Host, { key: '81bcdd8d83b330a2c51e2236be573db2c974e82e', class: {
|
|
920
|
+
'x-cascader': true,
|
|
921
|
+
'x-cascader-open': this.isOpen,
|
|
922
|
+
'x-cascader-disabled': this.disabled,
|
|
923
|
+
'x-cascader-focused': this.isFocused,
|
|
924
|
+
[`x-cascader-${this.size}`]: true,
|
|
925
|
+
[`x-cascader-status-${this.status}`]: !!this.status,
|
|
926
|
+
[`x-cascader-${this.variant}`]: true,
|
|
927
|
+
'x-cascader-multiple': this.multiple,
|
|
928
|
+
} }, h("div", { key: 'e0c09cf00a5e546cd06c6d41f2834c39106ea043', ref: el => (this.wrapperRef = el), class: {
|
|
929
|
+
'x-cascader-selector': true,
|
|
930
|
+
'x-cascader-selector-focused': this.isFocused,
|
|
931
|
+
'x-cascader-selector-disabled': this.disabled,
|
|
932
|
+
'disabled': this.disabled,
|
|
933
|
+
}, onClick: () => this.toggleDropdown(), onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this.showSearch ? (h("span", { class: "x-cascader-selection-search" }, h("input", { ref: el => (this.inputRef = el), type: "text", class: "x-cascader-selection-search-input",
|
|
934
|
+
// When open and searching, show searchValue. When closed, show the label.
|
|
935
|
+
value: this.isOpen ? this.searchValue : label, placeholder: label || this.placeholder, disabled: this.disabled, onInput: e => this.handleSearchInput(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }))) : (h("span", { class: "x-cascader-selection-item" }, label ? (h("span", { class: "x-cascader-selection-item-content" }, label)) : (h("span", { class: "x-cascader-selection-placeholder" }, this.placeholder)))), h("span", { key: '935e3b7a4766171737e7448d64eb94049b4c4413', class: "x-cascader-suffix" }, this.loading ? (h("span", { class: "x-cascader-loading" }, this.renderLoadingIcon())) : showClear ? (h("span", { class: "x-cascader-clear", onClick: e => this.handleClear(e) }, this.renderClearIcon())) : null, h("span", { key: 'b249c8b6f35132ec2207cdbffa72894a9d0497c9', class: { 'x-cascader-arrow': true, 'x-cascader-arrow-open': this.isOpen } }, this.renderArrowIcon())))));
|
|
936
|
+
}
|
|
937
|
+
static get is() { return "x-cascader"; }
|
|
938
|
+
static get encapsulation() { return "shadow"; }
|
|
939
|
+
static get originalStyleUrls() {
|
|
940
|
+
return {
|
|
941
|
+
"$": ["x-cascader.scss"]
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
static get styleUrls() {
|
|
945
|
+
return {
|
|
946
|
+
"$": ["x-cascader.css"]
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
static get properties() {
|
|
950
|
+
return {
|
|
951
|
+
"options": {
|
|
952
|
+
"type": "unknown",
|
|
953
|
+
"mutable": false,
|
|
954
|
+
"complexType": {
|
|
955
|
+
"original": "CascaderOption[]",
|
|
956
|
+
"resolved": "CascaderOption[]",
|
|
957
|
+
"references": {
|
|
958
|
+
"CascaderOption": {
|
|
959
|
+
"location": "import",
|
|
960
|
+
"path": "./types",
|
|
961
|
+
"id": "src/components/x-cascader/types.ts::CascaderOption",
|
|
962
|
+
"referenceLocation": "CascaderOption"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"required": false,
|
|
967
|
+
"optional": false,
|
|
968
|
+
"docs": {
|
|
969
|
+
"tags": [{
|
|
970
|
+
"name": "type",
|
|
971
|
+
"text": "{CascaderOption[]}"
|
|
972
|
+
}, {
|
|
973
|
+
"name": "example",
|
|
974
|
+
"text": "<x-cascader options={[\r\n { value: 'zhejiang', label: 'Zhejiang', children: [{ value: 'hangzhou', label: 'Hangzhou' }] }\r\n]} />"
|
|
975
|
+
}],
|
|
976
|
+
"text": "Options data to be displayed in the cascader."
|
|
977
|
+
},
|
|
978
|
+
"getter": false,
|
|
979
|
+
"setter": false,
|
|
980
|
+
"defaultValue": "[]"
|
|
981
|
+
},
|
|
982
|
+
"value": {
|
|
983
|
+
"type": "unknown",
|
|
984
|
+
"mutable": true,
|
|
985
|
+
"complexType": {
|
|
986
|
+
"original": "CascaderValue | null",
|
|
987
|
+
"resolved": "string[] | string[][]",
|
|
988
|
+
"references": {
|
|
989
|
+
"CascaderValue": {
|
|
990
|
+
"location": "import",
|
|
991
|
+
"path": "./types",
|
|
992
|
+
"id": "src/components/x-cascader/types.ts::CascaderValue",
|
|
993
|
+
"referenceLocation": "CascaderValue"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
"required": false,
|
|
998
|
+
"optional": false,
|
|
999
|
+
"docs": {
|
|
1000
|
+
"tags": [{
|
|
1001
|
+
"name": "type",
|
|
1002
|
+
"text": "{CascaderValue | null}"
|
|
1003
|
+
}, {
|
|
1004
|
+
"name": "example",
|
|
1005
|
+
"text": "<x-cascader value={['zhejiang', 'hangzhou']} />\r\n<x-cascader multiple value={[['zhejiang', 'hangzhou'], ['jiangsu', 'nanjing']]} />"
|
|
1006
|
+
}],
|
|
1007
|
+
"text": "Selected value (array of values representing the path).\r\nFor single mode: string[] like ['zhejiang', 'hangzhou']\r\nFor multiple mode: string[][] like [['zhejiang', 'hangzhou'], ['jiangsu', 'nanjing']]"
|
|
1008
|
+
},
|
|
1009
|
+
"getter": false,
|
|
1010
|
+
"setter": false,
|
|
1011
|
+
"defaultValue": "null"
|
|
1012
|
+
},
|
|
1013
|
+
"defaultValue": {
|
|
1014
|
+
"type": "unknown",
|
|
1015
|
+
"mutable": false,
|
|
1016
|
+
"complexType": {
|
|
1017
|
+
"original": "CascaderValue | null",
|
|
1018
|
+
"resolved": "string[] | string[][]",
|
|
1019
|
+
"references": {
|
|
1020
|
+
"CascaderValue": {
|
|
1021
|
+
"location": "import",
|
|
1022
|
+
"path": "./types",
|
|
1023
|
+
"id": "src/components/x-cascader/types.ts::CascaderValue",
|
|
1024
|
+
"referenceLocation": "CascaderValue"
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"required": false,
|
|
1029
|
+
"optional": false,
|
|
1030
|
+
"docs": {
|
|
1031
|
+
"tags": [{
|
|
1032
|
+
"name": "type",
|
|
1033
|
+
"text": "{CascaderValue | null}"
|
|
1034
|
+
}, {
|
|
1035
|
+
"name": "example",
|
|
1036
|
+
"text": "<x-cascader defaultValue={['zhejiang', 'hangzhou']} />"
|
|
1037
|
+
}],
|
|
1038
|
+
"text": "Initial selected value when the component is first mounted."
|
|
1039
|
+
},
|
|
1040
|
+
"getter": false,
|
|
1041
|
+
"setter": false,
|
|
1042
|
+
"defaultValue": "null"
|
|
1043
|
+
},
|
|
1044
|
+
"placeholder": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"mutable": false,
|
|
1047
|
+
"complexType": {
|
|
1048
|
+
"original": "string",
|
|
1049
|
+
"resolved": "string",
|
|
1050
|
+
"references": {}
|
|
1051
|
+
},
|
|
1052
|
+
"required": false,
|
|
1053
|
+
"optional": false,
|
|
1054
|
+
"docs": {
|
|
1055
|
+
"tags": [{
|
|
1056
|
+
"name": "type",
|
|
1057
|
+
"text": "{string}"
|
|
1058
|
+
}, {
|
|
1059
|
+
"name": "default",
|
|
1060
|
+
"text": "'Please select'"
|
|
1061
|
+
}, {
|
|
1062
|
+
"name": "example",
|
|
1063
|
+
"text": "<x-cascader placeholder=\"Select address\" />"
|
|
1064
|
+
}],
|
|
1065
|
+
"text": "Placeholder text displayed when no value is selected."
|
|
1066
|
+
},
|
|
1067
|
+
"getter": false,
|
|
1068
|
+
"setter": false,
|
|
1069
|
+
"reflect": false,
|
|
1070
|
+
"attribute": "placeholder",
|
|
1071
|
+
"defaultValue": "translate('Cascader.placeholder', {}, 'Please select')"
|
|
1072
|
+
},
|
|
1073
|
+
"disabled": {
|
|
1074
|
+
"type": "boolean",
|
|
1075
|
+
"mutable": false,
|
|
1076
|
+
"complexType": {
|
|
1077
|
+
"original": "boolean",
|
|
1078
|
+
"resolved": "boolean",
|
|
1079
|
+
"references": {}
|
|
1080
|
+
},
|
|
1081
|
+
"required": false,
|
|
1082
|
+
"optional": false,
|
|
1083
|
+
"docs": {
|
|
1084
|
+
"tags": [{
|
|
1085
|
+
"name": "type",
|
|
1086
|
+
"text": "{boolean}"
|
|
1087
|
+
}, {
|
|
1088
|
+
"name": "default",
|
|
1089
|
+
"text": "false"
|
|
1090
|
+
}, {
|
|
1091
|
+
"name": "example",
|
|
1092
|
+
"text": "<x-cascader disabled />"
|
|
1093
|
+
}],
|
|
1094
|
+
"text": "Whether the cascader component is disabled and non-interactive."
|
|
1095
|
+
},
|
|
1096
|
+
"getter": false,
|
|
1097
|
+
"setter": false,
|
|
1098
|
+
"reflect": false,
|
|
1099
|
+
"attribute": "disabled",
|
|
1100
|
+
"defaultValue": "false"
|
|
1101
|
+
},
|
|
1102
|
+
"allowClear": {
|
|
1103
|
+
"type": "boolean",
|
|
1104
|
+
"mutable": false,
|
|
1105
|
+
"complexType": {
|
|
1106
|
+
"original": "boolean",
|
|
1107
|
+
"resolved": "boolean",
|
|
1108
|
+
"references": {}
|
|
1109
|
+
},
|
|
1110
|
+
"required": false,
|
|
1111
|
+
"optional": false,
|
|
1112
|
+
"docs": {
|
|
1113
|
+
"tags": [{
|
|
1114
|
+
"name": "type",
|
|
1115
|
+
"text": "{boolean}"
|
|
1116
|
+
}, {
|
|
1117
|
+
"name": "default",
|
|
1118
|
+
"text": "true"
|
|
1119
|
+
}, {
|
|
1120
|
+
"name": "example",
|
|
1121
|
+
"text": "<x-cascader allowClear={false} />"
|
|
1122
|
+
}],
|
|
1123
|
+
"text": "Whether to show a clear button that allows resetting the selection."
|
|
1124
|
+
},
|
|
1125
|
+
"getter": false,
|
|
1126
|
+
"setter": false,
|
|
1127
|
+
"reflect": false,
|
|
1128
|
+
"attribute": "allow-clear",
|
|
1129
|
+
"defaultValue": "true"
|
|
1130
|
+
},
|
|
1131
|
+
"showSearch": {
|
|
1132
|
+
"type": "boolean",
|
|
1133
|
+
"mutable": false,
|
|
1134
|
+
"complexType": {
|
|
1135
|
+
"original": "boolean",
|
|
1136
|
+
"resolved": "boolean",
|
|
1137
|
+
"references": {}
|
|
1138
|
+
},
|
|
1139
|
+
"required": false,
|
|
1140
|
+
"optional": false,
|
|
1141
|
+
"docs": {
|
|
1142
|
+
"tags": [{
|
|
1143
|
+
"name": "type",
|
|
1144
|
+
"text": "{boolean}"
|
|
1145
|
+
}, {
|
|
1146
|
+
"name": "default",
|
|
1147
|
+
"text": "false"
|
|
1148
|
+
}, {
|
|
1149
|
+
"name": "example",
|
|
1150
|
+
"text": "<x-cascader showSearch />"
|
|
1151
|
+
}],
|
|
1152
|
+
"text": "Whether to show a search input for filtering options."
|
|
1153
|
+
},
|
|
1154
|
+
"getter": false,
|
|
1155
|
+
"setter": false,
|
|
1156
|
+
"reflect": false,
|
|
1157
|
+
"attribute": "show-search",
|
|
1158
|
+
"defaultValue": "false"
|
|
1159
|
+
},
|
|
1160
|
+
"fieldNames": {
|
|
1161
|
+
"type": "unknown",
|
|
1162
|
+
"mutable": false,
|
|
1163
|
+
"complexType": {
|
|
1164
|
+
"original": "CascaderFieldNames",
|
|
1165
|
+
"resolved": "CascaderFieldNames",
|
|
1166
|
+
"references": {
|
|
1167
|
+
"CascaderFieldNames": {
|
|
1168
|
+
"location": "import",
|
|
1169
|
+
"path": "./types",
|
|
1170
|
+
"id": "src/components/x-cascader/types.ts::CascaderFieldNames",
|
|
1171
|
+
"referenceLocation": "CascaderFieldNames"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"required": false,
|
|
1176
|
+
"optional": false,
|
|
1177
|
+
"docs": {
|
|
1178
|
+
"tags": [{
|
|
1179
|
+
"name": "type",
|
|
1180
|
+
"text": "{CascaderFieldNames}"
|
|
1181
|
+
}, {
|
|
1182
|
+
"name": "default",
|
|
1183
|
+
"text": "{ value: 'value', label: 'label', children: 'children' }"
|
|
1184
|
+
}, {
|
|
1185
|
+
"name": "example",
|
|
1186
|
+
"text": "<x-cascader fieldNames={{ value: 'id', label: 'name', children: 'items' }} />"
|
|
1187
|
+
}],
|
|
1188
|
+
"text": "Custom mapping for field names in the options data."
|
|
1189
|
+
},
|
|
1190
|
+
"getter": false,
|
|
1191
|
+
"setter": false,
|
|
1192
|
+
"defaultValue": "{ value: 'value', label: 'label', children: 'children' }"
|
|
1193
|
+
},
|
|
1194
|
+
"size": {
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"mutable": false,
|
|
1197
|
+
"complexType": {
|
|
1198
|
+
"original": "CascaderSize",
|
|
1199
|
+
"resolved": "\"large\" | \"middle\" | \"small\"",
|
|
1200
|
+
"references": {
|
|
1201
|
+
"CascaderSize": {
|
|
1202
|
+
"location": "import",
|
|
1203
|
+
"path": "./types",
|
|
1204
|
+
"id": "src/components/x-cascader/types.ts::CascaderSize",
|
|
1205
|
+
"referenceLocation": "CascaderSize"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
"required": false,
|
|
1210
|
+
"optional": false,
|
|
1211
|
+
"docs": {
|
|
1212
|
+
"tags": [{
|
|
1213
|
+
"name": "type",
|
|
1214
|
+
"text": "{'large' | 'middle' | 'small'}"
|
|
1215
|
+
}, {
|
|
1216
|
+
"name": "default",
|
|
1217
|
+
"text": "'middle'"
|
|
1218
|
+
}, {
|
|
1219
|
+
"name": "example",
|
|
1220
|
+
"text": "<x-cascader size=\"small\" />"
|
|
1221
|
+
}],
|
|
1222
|
+
"text": "Size of the cascader input field."
|
|
1223
|
+
},
|
|
1224
|
+
"getter": false,
|
|
1225
|
+
"setter": false,
|
|
1226
|
+
"reflect": false,
|
|
1227
|
+
"attribute": "size",
|
|
1228
|
+
"defaultValue": "'middle'"
|
|
1229
|
+
},
|
|
1230
|
+
"status": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"mutable": false,
|
|
1233
|
+
"complexType": {
|
|
1234
|
+
"original": "CascaderStatus | undefined",
|
|
1235
|
+
"resolved": "\"error\" | \"warning\"",
|
|
1236
|
+
"references": {
|
|
1237
|
+
"CascaderStatus": {
|
|
1238
|
+
"location": "import",
|
|
1239
|
+
"path": "./types",
|
|
1240
|
+
"id": "src/components/x-cascader/types.ts::CascaderStatus",
|
|
1241
|
+
"referenceLocation": "CascaderStatus"
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"required": false,
|
|
1246
|
+
"optional": false,
|
|
1247
|
+
"docs": {
|
|
1248
|
+
"tags": [{
|
|
1249
|
+
"name": "type",
|
|
1250
|
+
"text": "{'error' | 'warning'}"
|
|
1251
|
+
}, {
|
|
1252
|
+
"name": "example",
|
|
1253
|
+
"text": "<x-cascader status=\"error\" />"
|
|
1254
|
+
}],
|
|
1255
|
+
"text": "Current validation status of the component."
|
|
1256
|
+
},
|
|
1257
|
+
"getter": false,
|
|
1258
|
+
"setter": false,
|
|
1259
|
+
"reflect": false,
|
|
1260
|
+
"attribute": "status"
|
|
1261
|
+
},
|
|
1262
|
+
"placement": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"mutable": false,
|
|
1265
|
+
"complexType": {
|
|
1266
|
+
"original": "CascaderPlacement",
|
|
1267
|
+
"resolved": "\"bottomLeft\" | \"bottomRight\" | \"topLeft\" | \"topRight\"",
|
|
1268
|
+
"references": {
|
|
1269
|
+
"CascaderPlacement": {
|
|
1270
|
+
"location": "import",
|
|
1271
|
+
"path": "./types",
|
|
1272
|
+
"id": "src/components/x-cascader/types.ts::CascaderPlacement",
|
|
1273
|
+
"referenceLocation": "CascaderPlacement"
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"required": false,
|
|
1278
|
+
"optional": false,
|
|
1279
|
+
"docs": {
|
|
1280
|
+
"tags": [{
|
|
1281
|
+
"name": "type",
|
|
1282
|
+
"text": "{CascaderPlacement}"
|
|
1283
|
+
}, {
|
|
1284
|
+
"name": "default",
|
|
1285
|
+
"text": "'bottomLeft'"
|
|
1286
|
+
}, {
|
|
1287
|
+
"name": "example",
|
|
1288
|
+
"text": "<x-cascader placement=\"topRight\" />"
|
|
1289
|
+
}],
|
|
1290
|
+
"text": "Preferred placement of the dropdown relative to the input."
|
|
1291
|
+
},
|
|
1292
|
+
"getter": false,
|
|
1293
|
+
"setter": false,
|
|
1294
|
+
"reflect": false,
|
|
1295
|
+
"attribute": "placement",
|
|
1296
|
+
"defaultValue": "'bottomLeft'"
|
|
1297
|
+
},
|
|
1298
|
+
"variant": {
|
|
1299
|
+
"type": "string",
|
|
1300
|
+
"mutable": false,
|
|
1301
|
+
"complexType": {
|
|
1302
|
+
"original": "CascaderVariant",
|
|
1303
|
+
"resolved": "\"borderless\" | \"filled\" | \"outlined\"",
|
|
1304
|
+
"references": {
|
|
1305
|
+
"CascaderVariant": {
|
|
1306
|
+
"location": "import",
|
|
1307
|
+
"path": "./types",
|
|
1308
|
+
"id": "src/components/x-cascader/types.ts::CascaderVariant",
|
|
1309
|
+
"referenceLocation": "CascaderVariant"
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
"required": false,
|
|
1314
|
+
"optional": false,
|
|
1315
|
+
"docs": {
|
|
1316
|
+
"tags": [{
|
|
1317
|
+
"name": "type",
|
|
1318
|
+
"text": "{'outlined' | 'borderless' | 'filled'}"
|
|
1319
|
+
}, {
|
|
1320
|
+
"name": "default",
|
|
1321
|
+
"text": "'outlined'"
|
|
1322
|
+
}, {
|
|
1323
|
+
"name": "example",
|
|
1324
|
+
"text": "<x-cascader variant=\"filled\" />"
|
|
1325
|
+
}],
|
|
1326
|
+
"text": "Visual variant style of the cascader input."
|
|
1327
|
+
},
|
|
1328
|
+
"getter": false,
|
|
1329
|
+
"setter": false,
|
|
1330
|
+
"reflect": false,
|
|
1331
|
+
"attribute": "variant",
|
|
1332
|
+
"defaultValue": "'outlined'"
|
|
1333
|
+
},
|
|
1334
|
+
"expandTrigger": {
|
|
1335
|
+
"type": "string",
|
|
1336
|
+
"mutable": false,
|
|
1337
|
+
"complexType": {
|
|
1338
|
+
"original": "CascaderExpandTrigger",
|
|
1339
|
+
"resolved": "\"click\" | \"hover\"",
|
|
1340
|
+
"references": {
|
|
1341
|
+
"CascaderExpandTrigger": {
|
|
1342
|
+
"location": "import",
|
|
1343
|
+
"path": "./types",
|
|
1344
|
+
"id": "src/components/x-cascader/types.ts::CascaderExpandTrigger",
|
|
1345
|
+
"referenceLocation": "CascaderExpandTrigger"
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
"required": false,
|
|
1350
|
+
"optional": false,
|
|
1351
|
+
"docs": {
|
|
1352
|
+
"tags": [{
|
|
1353
|
+
"name": "type",
|
|
1354
|
+
"text": "{'click' | 'hover'}"
|
|
1355
|
+
}, {
|
|
1356
|
+
"name": "default",
|
|
1357
|
+
"text": "'click'"
|
|
1358
|
+
}, {
|
|
1359
|
+
"name": "example",
|
|
1360
|
+
"text": "<x-cascader expandTrigger=\"hover\" />"
|
|
1361
|
+
}],
|
|
1362
|
+
"text": "Interaction type that triggers the expansion of sub-menus."
|
|
1363
|
+
},
|
|
1364
|
+
"getter": false,
|
|
1365
|
+
"setter": false,
|
|
1366
|
+
"reflect": false,
|
|
1367
|
+
"attribute": "expand-trigger",
|
|
1368
|
+
"defaultValue": "'click'"
|
|
1369
|
+
},
|
|
1370
|
+
"changeOnSelect": {
|
|
1371
|
+
"type": "boolean",
|
|
1372
|
+
"mutable": false,
|
|
1373
|
+
"complexType": {
|
|
1374
|
+
"original": "boolean",
|
|
1375
|
+
"resolved": "boolean",
|
|
1376
|
+
"references": {}
|
|
1377
|
+
},
|
|
1378
|
+
"required": false,
|
|
1379
|
+
"optional": false,
|
|
1380
|
+
"docs": {
|
|
1381
|
+
"tags": [{
|
|
1382
|
+
"name": "type",
|
|
1383
|
+
"text": "{boolean}"
|
|
1384
|
+
}, {
|
|
1385
|
+
"name": "default",
|
|
1386
|
+
"text": "false"
|
|
1387
|
+
}, {
|
|
1388
|
+
"name": "example",
|
|
1389
|
+
"text": "<x-cascader changeOnSelect />"
|
|
1390
|
+
}],
|
|
1391
|
+
"text": "Whether to update the value on selecting each level of the hierarchy.\r\nIf false, only selecting leaf nodes updates the value."
|
|
1392
|
+
},
|
|
1393
|
+
"getter": false,
|
|
1394
|
+
"setter": false,
|
|
1395
|
+
"reflect": false,
|
|
1396
|
+
"attribute": "change-on-select",
|
|
1397
|
+
"defaultValue": "false"
|
|
1398
|
+
},
|
|
1399
|
+
"multiple": {
|
|
1400
|
+
"type": "boolean",
|
|
1401
|
+
"mutable": false,
|
|
1402
|
+
"complexType": {
|
|
1403
|
+
"original": "boolean",
|
|
1404
|
+
"resolved": "boolean",
|
|
1405
|
+
"references": {}
|
|
1406
|
+
},
|
|
1407
|
+
"required": false,
|
|
1408
|
+
"optional": false,
|
|
1409
|
+
"docs": {
|
|
1410
|
+
"tags": [{
|
|
1411
|
+
"name": "type",
|
|
1412
|
+
"text": "{boolean}"
|
|
1413
|
+
}, {
|
|
1414
|
+
"name": "default",
|
|
1415
|
+
"text": "false"
|
|
1416
|
+
}, {
|
|
1417
|
+
"name": "example",
|
|
1418
|
+
"text": "<x-cascader multiple />"
|
|
1419
|
+
}],
|
|
1420
|
+
"text": "Whether to enable multi-selection mode using checkboxes."
|
|
1421
|
+
},
|
|
1422
|
+
"getter": false,
|
|
1423
|
+
"setter": false,
|
|
1424
|
+
"reflect": false,
|
|
1425
|
+
"attribute": "multiple",
|
|
1426
|
+
"defaultValue": "false"
|
|
1427
|
+
},
|
|
1428
|
+
"maxTagCount": {
|
|
1429
|
+
"type": "any",
|
|
1430
|
+
"mutable": false,
|
|
1431
|
+
"complexType": {
|
|
1432
|
+
"original": "number | 'responsive'",
|
|
1433
|
+
"resolved": "\"responsive\" | number",
|
|
1434
|
+
"references": {}
|
|
1435
|
+
},
|
|
1436
|
+
"required": false,
|
|
1437
|
+
"optional": false,
|
|
1438
|
+
"docs": {
|
|
1439
|
+
"tags": [{
|
|
1440
|
+
"name": "type",
|
|
1441
|
+
"text": "{number | 'responsive'}"
|
|
1442
|
+
}, {
|
|
1443
|
+
"name": "default",
|
|
1444
|
+
"text": "'responsive'"
|
|
1445
|
+
}, {
|
|
1446
|
+
"name": "example",
|
|
1447
|
+
"text": "<x-cascader multiple maxTagCount={2} />"
|
|
1448
|
+
}],
|
|
1449
|
+
"text": "Maximum number of selected tags displayed in the input (for multiple mode).\r\n'responsive' will automatically hide overflowing tags."
|
|
1450
|
+
},
|
|
1451
|
+
"getter": false,
|
|
1452
|
+
"setter": false,
|
|
1453
|
+
"reflect": false,
|
|
1454
|
+
"attribute": "max-tag-count",
|
|
1455
|
+
"defaultValue": "'responsive'"
|
|
1456
|
+
},
|
|
1457
|
+
"open": {
|
|
1458
|
+
"type": "boolean",
|
|
1459
|
+
"mutable": true,
|
|
1460
|
+
"complexType": {
|
|
1461
|
+
"original": "boolean | undefined",
|
|
1462
|
+
"resolved": "boolean",
|
|
1463
|
+
"references": {}
|
|
1464
|
+
},
|
|
1465
|
+
"required": false,
|
|
1466
|
+
"optional": false,
|
|
1467
|
+
"docs": {
|
|
1468
|
+
"tags": [{
|
|
1469
|
+
"name": "type",
|
|
1470
|
+
"text": "{boolean}"
|
|
1471
|
+
}, {
|
|
1472
|
+
"name": "example",
|
|
1473
|
+
"text": "<x-cascader open={true} />"
|
|
1474
|
+
}],
|
|
1475
|
+
"text": "Controlled visibility state of the dropdown menu."
|
|
1476
|
+
},
|
|
1477
|
+
"getter": false,
|
|
1478
|
+
"setter": false,
|
|
1479
|
+
"reflect": false,
|
|
1480
|
+
"attribute": "open"
|
|
1481
|
+
},
|
|
1482
|
+
"autofocus": {
|
|
1483
|
+
"type": "boolean",
|
|
1484
|
+
"mutable": false,
|
|
1485
|
+
"complexType": {
|
|
1486
|
+
"original": "boolean",
|
|
1487
|
+
"resolved": "boolean",
|
|
1488
|
+
"references": {}
|
|
1489
|
+
},
|
|
1490
|
+
"required": false,
|
|
1491
|
+
"optional": false,
|
|
1492
|
+
"docs": {
|
|
1493
|
+
"tags": [{
|
|
1494
|
+
"name": "type",
|
|
1495
|
+
"text": "{boolean}"
|
|
1496
|
+
}, {
|
|
1497
|
+
"name": "default",
|
|
1498
|
+
"text": "false"
|
|
1499
|
+
}, {
|
|
1500
|
+
"name": "example",
|
|
1501
|
+
"text": "<x-cascader autofocus />"
|
|
1502
|
+
}],
|
|
1503
|
+
"text": "Whether the component should automatically receive focus upon mounting."
|
|
1504
|
+
},
|
|
1505
|
+
"getter": false,
|
|
1506
|
+
"setter": false,
|
|
1507
|
+
"reflect": false,
|
|
1508
|
+
"attribute": "autofocus",
|
|
1509
|
+
"defaultValue": "false"
|
|
1510
|
+
},
|
|
1511
|
+
"notFoundContent": {
|
|
1512
|
+
"type": "string",
|
|
1513
|
+
"mutable": false,
|
|
1514
|
+
"complexType": {
|
|
1515
|
+
"original": "string",
|
|
1516
|
+
"resolved": "string",
|
|
1517
|
+
"references": {}
|
|
1518
|
+
},
|
|
1519
|
+
"required": false,
|
|
1520
|
+
"optional": false,
|
|
1521
|
+
"docs": {
|
|
1522
|
+
"tags": [{
|
|
1523
|
+
"name": "type",
|
|
1524
|
+
"text": "{string}"
|
|
1525
|
+
}, {
|
|
1526
|
+
"name": "default",
|
|
1527
|
+
"text": "'No data'"
|
|
1528
|
+
}, {
|
|
1529
|
+
"name": "example",
|
|
1530
|
+
"text": "<x-cascader notFoundContent=\"No results found\" />"
|
|
1531
|
+
}],
|
|
1532
|
+
"text": "Custom content to display when no options match the search or current selection."
|
|
1533
|
+
},
|
|
1534
|
+
"getter": false,
|
|
1535
|
+
"setter": false,
|
|
1536
|
+
"reflect": false,
|
|
1537
|
+
"attribute": "not-found-content",
|
|
1538
|
+
"defaultValue": "translate('Cascader.notFoundContent', {}, 'No data')"
|
|
1539
|
+
},
|
|
1540
|
+
"loading": {
|
|
1541
|
+
"type": "boolean",
|
|
1542
|
+
"mutable": false,
|
|
1543
|
+
"complexType": {
|
|
1544
|
+
"original": "boolean",
|
|
1545
|
+
"resolved": "boolean",
|
|
1546
|
+
"references": {}
|
|
1547
|
+
},
|
|
1548
|
+
"required": false,
|
|
1549
|
+
"optional": false,
|
|
1550
|
+
"docs": {
|
|
1551
|
+
"tags": [{
|
|
1552
|
+
"name": "type",
|
|
1553
|
+
"text": "{boolean}"
|
|
1554
|
+
}, {
|
|
1555
|
+
"name": "default",
|
|
1556
|
+
"text": "false"
|
|
1557
|
+
}, {
|
|
1558
|
+
"name": "example",
|
|
1559
|
+
"text": "<x-cascader loading />"
|
|
1560
|
+
}],
|
|
1561
|
+
"text": "Whether the component is currently in a loading state."
|
|
1562
|
+
},
|
|
1563
|
+
"getter": false,
|
|
1564
|
+
"setter": false,
|
|
1565
|
+
"reflect": false,
|
|
1566
|
+
"attribute": "loading",
|
|
1567
|
+
"defaultValue": "false"
|
|
1568
|
+
},
|
|
1569
|
+
"displaySeparator": {
|
|
1570
|
+
"type": "string",
|
|
1571
|
+
"mutable": false,
|
|
1572
|
+
"complexType": {
|
|
1573
|
+
"original": "string",
|
|
1574
|
+
"resolved": "string",
|
|
1575
|
+
"references": {}
|
|
1576
|
+
},
|
|
1577
|
+
"required": false,
|
|
1578
|
+
"optional": false,
|
|
1579
|
+
"docs": {
|
|
1580
|
+
"tags": [{
|
|
1581
|
+
"name": "type",
|
|
1582
|
+
"text": "{string}"
|
|
1583
|
+
}, {
|
|
1584
|
+
"name": "default",
|
|
1585
|
+
"text": "' / '"
|
|
1586
|
+
}, {
|
|
1587
|
+
"name": "example",
|
|
1588
|
+
"text": "<x-cascader displaySeparator=\" > \" />"
|
|
1589
|
+
}],
|
|
1590
|
+
"text": "Character(s) used to separate breadcrumb labels in the selected path."
|
|
1591
|
+
},
|
|
1592
|
+
"getter": false,
|
|
1593
|
+
"setter": false,
|
|
1594
|
+
"reflect": false,
|
|
1595
|
+
"attribute": "display-separator",
|
|
1596
|
+
"defaultValue": "' / '"
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
static get states() {
|
|
1601
|
+
return {
|
|
1602
|
+
"isOpen": {},
|
|
1603
|
+
"activeOptions": {},
|
|
1604
|
+
"selectedPath": {},
|
|
1605
|
+
"hoveredPath": {},
|
|
1606
|
+
"searchValue": {},
|
|
1607
|
+
"filteredOptions": {},
|
|
1608
|
+
"isFocused": {},
|
|
1609
|
+
"hovering": {}
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
static get events() {
|
|
1613
|
+
return [{
|
|
1614
|
+
"method": "xChange",
|
|
1615
|
+
"name": "xChange",
|
|
1616
|
+
"bubbles": true,
|
|
1617
|
+
"cancelable": true,
|
|
1618
|
+
"composed": true,
|
|
1619
|
+
"docs": {
|
|
1620
|
+
"tags": [{
|
|
1621
|
+
"name": "event",
|
|
1622
|
+
"text": "xChange"
|
|
1623
|
+
}, {
|
|
1624
|
+
"name": "example",
|
|
1625
|
+
"text": "<x-cascader onXChange={(ev) => console.log('Selected:', ev.detail.value)} />"
|
|
1626
|
+
}],
|
|
1627
|
+
"text": "Emitted when the selected value changes."
|
|
1628
|
+
},
|
|
1629
|
+
"complexType": {
|
|
1630
|
+
"original": "CascaderChangeEventDetail",
|
|
1631
|
+
"resolved": "CascaderChangeEventDetail",
|
|
1632
|
+
"references": {
|
|
1633
|
+
"CascaderChangeEventDetail": {
|
|
1634
|
+
"location": "import",
|
|
1635
|
+
"path": "./types",
|
|
1636
|
+
"id": "src/components/x-cascader/types.ts::CascaderChangeEventDetail",
|
|
1637
|
+
"referenceLocation": "CascaderChangeEventDetail"
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
}, {
|
|
1642
|
+
"method": "xSearch",
|
|
1643
|
+
"name": "xSearch",
|
|
1644
|
+
"bubbles": true,
|
|
1645
|
+
"cancelable": true,
|
|
1646
|
+
"composed": true,
|
|
1647
|
+
"docs": {
|
|
1648
|
+
"tags": [{
|
|
1649
|
+
"name": "event",
|
|
1650
|
+
"text": "xSearch"
|
|
1651
|
+
}, {
|
|
1652
|
+
"name": "example",
|
|
1653
|
+
"text": "<x-cascader onXSearch={(ev) => console.log('Searching:', ev.detail.value)} />"
|
|
1654
|
+
}],
|
|
1655
|
+
"text": "Emitted when the user types in the search input."
|
|
1656
|
+
},
|
|
1657
|
+
"complexType": {
|
|
1658
|
+
"original": "CascaderSearchEventDetail",
|
|
1659
|
+
"resolved": "CascaderSearchEventDetail",
|
|
1660
|
+
"references": {
|
|
1661
|
+
"CascaderSearchEventDetail": {
|
|
1662
|
+
"location": "import",
|
|
1663
|
+
"path": "./types",
|
|
1664
|
+
"id": "src/components/x-cascader/types.ts::CascaderSearchEventDetail",
|
|
1665
|
+
"referenceLocation": "CascaderSearchEventDetail"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
}, {
|
|
1670
|
+
"method": "xDropdownVisibleChange",
|
|
1671
|
+
"name": "xDropdownVisibleChange",
|
|
1672
|
+
"bubbles": true,
|
|
1673
|
+
"cancelable": true,
|
|
1674
|
+
"composed": true,
|
|
1675
|
+
"docs": {
|
|
1676
|
+
"tags": [{
|
|
1677
|
+
"name": "event",
|
|
1678
|
+
"text": "xDropdownVisibleChange"
|
|
1679
|
+
}, {
|
|
1680
|
+
"name": "example",
|
|
1681
|
+
"text": "<x-cascader onXDropdownVisibleChange={(ev) => console.log('Visible:', ev.detail.visible)} />"
|
|
1682
|
+
}],
|
|
1683
|
+
"text": "Emitted when the dropdown menu visibility changes."
|
|
1684
|
+
},
|
|
1685
|
+
"complexType": {
|
|
1686
|
+
"original": "CascaderDropdownVisibleChangeDetail",
|
|
1687
|
+
"resolved": "CascaderDropdownVisibleChangeDetail",
|
|
1688
|
+
"references": {
|
|
1689
|
+
"CascaderDropdownVisibleChangeDetail": {
|
|
1690
|
+
"location": "import",
|
|
1691
|
+
"path": "./types",
|
|
1692
|
+
"id": "src/components/x-cascader/types.ts::CascaderDropdownVisibleChangeDetail",
|
|
1693
|
+
"referenceLocation": "CascaderDropdownVisibleChangeDetail"
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
}, {
|
|
1698
|
+
"method": "xLoadData",
|
|
1699
|
+
"name": "xLoadData",
|
|
1700
|
+
"bubbles": true,
|
|
1701
|
+
"cancelable": true,
|
|
1702
|
+
"composed": true,
|
|
1703
|
+
"docs": {
|
|
1704
|
+
"tags": [{
|
|
1705
|
+
"name": "event",
|
|
1706
|
+
"text": "xLoadData"
|
|
1707
|
+
}, {
|
|
1708
|
+
"name": "example",
|
|
1709
|
+
"text": "<x-cascader onXLoadData={(ev) => handleLoadData(ev.detail.option)} />"
|
|
1710
|
+
}],
|
|
1711
|
+
"text": "Emitted when a sub-menu needs to load data asynchronously."
|
|
1712
|
+
},
|
|
1713
|
+
"complexType": {
|
|
1714
|
+
"original": "CascaderLoadDataEventDetail",
|
|
1715
|
+
"resolved": "CascaderLoadDataEventDetail",
|
|
1716
|
+
"references": {
|
|
1717
|
+
"CascaderLoadDataEventDetail": {
|
|
1718
|
+
"location": "import",
|
|
1719
|
+
"path": "./types",
|
|
1720
|
+
"id": "src/components/x-cascader/types.ts::CascaderLoadDataEventDetail",
|
|
1721
|
+
"referenceLocation": "CascaderLoadDataEventDetail"
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}, {
|
|
1726
|
+
"method": "xFocus",
|
|
1727
|
+
"name": "xFocus",
|
|
1728
|
+
"bubbles": true,
|
|
1729
|
+
"cancelable": true,
|
|
1730
|
+
"composed": true,
|
|
1731
|
+
"docs": {
|
|
1732
|
+
"tags": [{
|
|
1733
|
+
"name": "event",
|
|
1734
|
+
"text": "xFocus"
|
|
1735
|
+
}],
|
|
1736
|
+
"text": "Emitted when the component receives focus."
|
|
1737
|
+
},
|
|
1738
|
+
"complexType": {
|
|
1739
|
+
"original": "void",
|
|
1740
|
+
"resolved": "void",
|
|
1741
|
+
"references": {}
|
|
1742
|
+
}
|
|
1743
|
+
}, {
|
|
1744
|
+
"method": "xBlur",
|
|
1745
|
+
"name": "xBlur",
|
|
1746
|
+
"bubbles": true,
|
|
1747
|
+
"cancelable": true,
|
|
1748
|
+
"composed": true,
|
|
1749
|
+
"docs": {
|
|
1750
|
+
"tags": [{
|
|
1751
|
+
"name": "event",
|
|
1752
|
+
"text": "xBlur"
|
|
1753
|
+
}],
|
|
1754
|
+
"text": "Emitted when the component loses focus."
|
|
1755
|
+
},
|
|
1756
|
+
"complexType": {
|
|
1757
|
+
"original": "void",
|
|
1758
|
+
"resolved": "void",
|
|
1759
|
+
"references": {}
|
|
1760
|
+
}
|
|
1761
|
+
}];
|
|
1762
|
+
}
|
|
1763
|
+
static get methods() {
|
|
1764
|
+
return {
|
|
1765
|
+
"setFocus": {
|
|
1766
|
+
"complexType": {
|
|
1767
|
+
"signature": "() => Promise<void>",
|
|
1768
|
+
"parameters": [],
|
|
1769
|
+
"references": {
|
|
1770
|
+
"Promise": {
|
|
1771
|
+
"location": "global",
|
|
1772
|
+
"id": "global::Promise"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
"return": "Promise<void>"
|
|
1776
|
+
},
|
|
1777
|
+
"docs": {
|
|
1778
|
+
"text": "Sets focus on the cascader input field.\r\nThis is a public method that can be called via a reference to the component.",
|
|
1779
|
+
"tags": [{
|
|
1780
|
+
"name": "returns",
|
|
1781
|
+
"text": undefined
|
|
1782
|
+
}]
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"setBlur": {
|
|
1786
|
+
"complexType": {
|
|
1787
|
+
"signature": "() => Promise<void>",
|
|
1788
|
+
"parameters": [],
|
|
1789
|
+
"references": {
|
|
1790
|
+
"Promise": {
|
|
1791
|
+
"location": "global",
|
|
1792
|
+
"id": "global::Promise"
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
"return": "Promise<void>"
|
|
1796
|
+
},
|
|
1797
|
+
"docs": {
|
|
1798
|
+
"text": "Removes focus from the cascader input field.\r\nThis is a public method that can be called via a reference to the component.",
|
|
1799
|
+
"tags": [{
|
|
1800
|
+
"name": "returns",
|
|
1801
|
+
"text": undefined
|
|
1802
|
+
}]
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
static get elementRef() { return "el"; }
|
|
1808
|
+
static get watchers() {
|
|
1809
|
+
return [{
|
|
1810
|
+
"propName": "options",
|
|
1811
|
+
"methodName": "watchOptions"
|
|
1812
|
+
}, {
|
|
1813
|
+
"propName": "value",
|
|
1814
|
+
"methodName": "watchValue"
|
|
1815
|
+
}, {
|
|
1816
|
+
"propName": "open",
|
|
1817
|
+
"methodName": "watchOpen"
|
|
1818
|
+
}, {
|
|
1819
|
+
"propName": "isOpen",
|
|
1820
|
+
"methodName": "isOpenChanged"
|
|
1821
|
+
}, {
|
|
1822
|
+
"propName": "searchValue",
|
|
1823
|
+
"methodName": "watchSearchValue"
|
|
1824
|
+
}];
|
|
1825
|
+
}
|
|
1826
|
+
static get listeners() {
|
|
1827
|
+
return [{
|
|
1828
|
+
"name": "click",
|
|
1829
|
+
"method": "handleWindowClick",
|
|
1830
|
+
"target": "window",
|
|
1831
|
+
"capture": false,
|
|
1832
|
+
"passive": false
|
|
1833
|
+
}, {
|
|
1834
|
+
"name": "keydown",
|
|
1835
|
+
"method": "handleKeyDown",
|
|
1836
|
+
"target": undefined,
|
|
1837
|
+
"capture": false,
|
|
1838
|
+
"passive": false
|
|
1839
|
+
}];
|
|
1840
|
+
}
|
|
1841
|
+
}
|