@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,2247 @@
|
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { translate } from "../../locales/locale.service";
|
|
3
|
+
import { PortalController } from "../x-portal";
|
|
4
|
+
import { getIcon } from "../../utils/config";
|
|
5
|
+
import { isOptionGroup } from "./types";
|
|
6
|
+
/**
|
|
7
|
+
* Select Component - Following Ant Design Specification
|
|
8
|
+
*
|
|
9
|
+
* A select component that allows users to choose from a list of options.
|
|
10
|
+
* Supports single and multiple selection modes.
|
|
11
|
+
*
|
|
12
|
+
* @part selector - The selector container
|
|
13
|
+
* @part dropdown - The dropdown container
|
|
14
|
+
* @part arrow - The arrow icon
|
|
15
|
+
* @part clear - The clear icon
|
|
16
|
+
*/
|
|
17
|
+
export class XSelect {
|
|
18
|
+
/**
|
|
19
|
+
* Host element reference.
|
|
20
|
+
*/
|
|
21
|
+
el;
|
|
22
|
+
// ==================== Props ====================
|
|
23
|
+
/**
|
|
24
|
+
* Whether the select is disabled.
|
|
25
|
+
* @example
|
|
26
|
+
* <x-select disabled></x-select>
|
|
27
|
+
*/
|
|
28
|
+
disabled = false;
|
|
29
|
+
/**
|
|
30
|
+
* The mode of select: 'multiple' | 'tags' | undefined (single).
|
|
31
|
+
* @example
|
|
32
|
+
* <x-select mode="multiple"></x-select>
|
|
33
|
+
*/
|
|
34
|
+
mode;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to show the clear button.
|
|
37
|
+
* @example
|
|
38
|
+
* <x-select allowClear></x-select>
|
|
39
|
+
*/
|
|
40
|
+
allowClear = false;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show search input.
|
|
43
|
+
* @example
|
|
44
|
+
* <x-select showSearch></x-select>
|
|
45
|
+
*/
|
|
46
|
+
showSearch = false;
|
|
47
|
+
/**
|
|
48
|
+
* Placeholder text.
|
|
49
|
+
* @example
|
|
50
|
+
* <x-select placeholder="Choose one"></x-select>
|
|
51
|
+
*/
|
|
52
|
+
placeholder = translate('Select.placeholder', {}, 'Please select');
|
|
53
|
+
/**
|
|
54
|
+
* Size of select: 'large' | 'middle' | 'small'.
|
|
55
|
+
* @example
|
|
56
|
+
* <x-select size="small"></x-select>
|
|
57
|
+
*/
|
|
58
|
+
size = 'middle';
|
|
59
|
+
/**
|
|
60
|
+
* Current selected value.
|
|
61
|
+
* @example
|
|
62
|
+
* <x-select value="a"></x-select>
|
|
63
|
+
*/
|
|
64
|
+
value;
|
|
65
|
+
/**
|
|
66
|
+
* Default selected value.
|
|
67
|
+
* @example
|
|
68
|
+
* <x-select defaultValue="a"></x-select>
|
|
69
|
+
*/
|
|
70
|
+
defaultValue;
|
|
71
|
+
/**
|
|
72
|
+
* Whether dropdown is open (controlled).
|
|
73
|
+
* @example
|
|
74
|
+
* <x-select open></x-select>
|
|
75
|
+
*/
|
|
76
|
+
open = false;
|
|
77
|
+
/**
|
|
78
|
+
* Whether to show loading spinner.
|
|
79
|
+
* @example
|
|
80
|
+
* <x-select loading></x-select>
|
|
81
|
+
*/
|
|
82
|
+
loading = false;
|
|
83
|
+
/**
|
|
84
|
+
* Maximum number of tags to display in multiple mode.
|
|
85
|
+
* @example
|
|
86
|
+
* <x-select mode="multiple" maxTagCount={2}></x-select>
|
|
87
|
+
*/
|
|
88
|
+
maxTagCount;
|
|
89
|
+
/**
|
|
90
|
+
* Placeholder for hidden tags.
|
|
91
|
+
* @example
|
|
92
|
+
* <x-select mode="multiple" maxTagPlaceholder="+ more"></x-select>
|
|
93
|
+
*/
|
|
94
|
+
maxTagPlaceholder;
|
|
95
|
+
/**
|
|
96
|
+
* Maximum length of tag text to display.
|
|
97
|
+
* @example
|
|
98
|
+
* <x-select mode="multiple" maxTagTextLength={8}></x-select>
|
|
99
|
+
*/
|
|
100
|
+
maxTagTextLength;
|
|
101
|
+
/**
|
|
102
|
+
* Whether to show border.
|
|
103
|
+
* @example
|
|
104
|
+
* <x-select bordered={false}></x-select>
|
|
105
|
+
*/
|
|
106
|
+
bordered = true;
|
|
107
|
+
/**
|
|
108
|
+
* Validation status: 'error' | 'warning'.
|
|
109
|
+
* @example
|
|
110
|
+
* <x-select status="error"></x-select>
|
|
111
|
+
*/
|
|
112
|
+
status;
|
|
113
|
+
/**
|
|
114
|
+
* Dropdown placement.
|
|
115
|
+
* @example
|
|
116
|
+
* <x-select placement="bottomRight"></x-select>
|
|
117
|
+
*/
|
|
118
|
+
placement = 'bottomLeft';
|
|
119
|
+
/**
|
|
120
|
+
* Whether to include label in value object.
|
|
121
|
+
* @example
|
|
122
|
+
* <x-select labelInValue></x-select>
|
|
123
|
+
*/
|
|
124
|
+
labelInValue = false;
|
|
125
|
+
/**
|
|
126
|
+
* Custom filter function for search.
|
|
127
|
+
* @example
|
|
128
|
+
* <x-select filterOption={(input, opt) => opt.label.startsWith(input)}></x-select>
|
|
129
|
+
*/
|
|
130
|
+
filterOption = true;
|
|
131
|
+
/**
|
|
132
|
+
* Sort function for filtered options.
|
|
133
|
+
* @example
|
|
134
|
+
* <x-select filterSort={(a, b) => a.label.localeCompare(b.label)}></x-select>
|
|
135
|
+
*/
|
|
136
|
+
filterSort;
|
|
137
|
+
/**
|
|
138
|
+
* Text to show when no options match search.
|
|
139
|
+
* @example
|
|
140
|
+
* <x-select notFoundContent="Empty"></x-select>
|
|
141
|
+
*/
|
|
142
|
+
notFoundContent = translate('Select.notFoundContent', {}, 'No data');
|
|
143
|
+
/**
|
|
144
|
+
* Whether auto focus on mount.
|
|
145
|
+
* @example
|
|
146
|
+
* <x-select autofocus></x-select>
|
|
147
|
+
*/
|
|
148
|
+
autofocus = false;
|
|
149
|
+
/**
|
|
150
|
+
* ID for the input element.
|
|
151
|
+
* @example
|
|
152
|
+
* <x-select inputId="country"></x-select>
|
|
153
|
+
*/
|
|
154
|
+
inputId;
|
|
155
|
+
/**
|
|
156
|
+
* Name attribute for form.
|
|
157
|
+
* @example
|
|
158
|
+
* <x-select name="country"></x-select>
|
|
159
|
+
*/
|
|
160
|
+
name;
|
|
161
|
+
/**
|
|
162
|
+
* Trigger actions to open dropdown.
|
|
163
|
+
* @example
|
|
164
|
+
* <x-select showAction={['click','focus']}></x-select>
|
|
165
|
+
*/
|
|
166
|
+
showAction = ['click'];
|
|
167
|
+
/**
|
|
168
|
+
* Custom dropdown class.
|
|
169
|
+
* @example
|
|
170
|
+
* <x-select dropdownClassName="my-select-dropdown"></x-select>
|
|
171
|
+
*/
|
|
172
|
+
dropdownClassName;
|
|
173
|
+
/**
|
|
174
|
+
* Custom dropdown style.
|
|
175
|
+
* @example
|
|
176
|
+
* <x-select dropdownStyle={{ minWidth: '240px' }}></x-select>
|
|
177
|
+
*/
|
|
178
|
+
dropdownStyle;
|
|
179
|
+
/**
|
|
180
|
+
* Whether dropdown matches selector width.
|
|
181
|
+
* @example
|
|
182
|
+
* <x-select dropdownMatchSelectWidth={false}></x-select>
|
|
183
|
+
*/
|
|
184
|
+
dropdownMatchSelectWidth = true;
|
|
185
|
+
/**
|
|
186
|
+
* Height of dropdown list.
|
|
187
|
+
* @example
|
|
188
|
+
* <x-select listHeight={300}></x-select>
|
|
189
|
+
*/
|
|
190
|
+
listHeight = 256;
|
|
191
|
+
/**
|
|
192
|
+
* Number of items to render initially and per scroll.
|
|
193
|
+
* @example
|
|
194
|
+
* <x-select pageSize={50}></x-select>
|
|
195
|
+
*/
|
|
196
|
+
pageSize = 100;
|
|
197
|
+
/**
|
|
198
|
+
* Options data, use this instead of x-select-option children. Supports SelectOption and OptionGroup.
|
|
199
|
+
* @example
|
|
200
|
+
* <x-select options={[{ value: 'a', label: 'A' }]}></x-select>
|
|
201
|
+
*/
|
|
202
|
+
options;
|
|
203
|
+
// ==================== Events ====================
|
|
204
|
+
/**
|
|
205
|
+
* Emitted when value changes.
|
|
206
|
+
* @example
|
|
207
|
+
* <x-select onXChange={(ev) => console.log(ev.detail)}></x-select>
|
|
208
|
+
*/
|
|
209
|
+
xChange;
|
|
210
|
+
/**
|
|
211
|
+
* Emitted when search value changes.
|
|
212
|
+
* @example
|
|
213
|
+
* <x-select onXSearch={(ev) => console.log(ev.detail)}></x-select>
|
|
214
|
+
*/
|
|
215
|
+
xSearch;
|
|
216
|
+
/**
|
|
217
|
+
* Emitted when dropdown opens/closes.
|
|
218
|
+
* @example
|
|
219
|
+
* <x-select onXDropdownVisibleChange={(ev) => console.log(ev.detail)}></x-select>
|
|
220
|
+
*/
|
|
221
|
+
xDropdownVisibleChange;
|
|
222
|
+
/**
|
|
223
|
+
* Emitted on blur.
|
|
224
|
+
* @example
|
|
225
|
+
* <x-select onXBlur={(ev) => console.log(ev)}></x-select>
|
|
226
|
+
*/
|
|
227
|
+
xBlur;
|
|
228
|
+
/**
|
|
229
|
+
* Emitted on focus.
|
|
230
|
+
* @example
|
|
231
|
+
* <x-select onXFocus={(ev) => console.log(ev)}></x-select>
|
|
232
|
+
*/
|
|
233
|
+
xFocus;
|
|
234
|
+
/**
|
|
235
|
+
* Emitted when clear button is clicked.
|
|
236
|
+
* @example
|
|
237
|
+
* <x-select onXClear={() => {}}></x-select>
|
|
238
|
+
*/
|
|
239
|
+
xClear;
|
|
240
|
+
/**
|
|
241
|
+
* Emitted when a tag is removed.
|
|
242
|
+
* @example
|
|
243
|
+
* <x-select onXDeselect={(ev) => console.log(ev.detail)}></x-select>
|
|
244
|
+
*/
|
|
245
|
+
xDeselect;
|
|
246
|
+
/**
|
|
247
|
+
* Emitted when an option is selected.
|
|
248
|
+
* @example
|
|
249
|
+
* <x-select onXSelect={(ev) => console.log(ev.detail)}></x-select>
|
|
250
|
+
*/
|
|
251
|
+
xSelect;
|
|
252
|
+
// ==================== State ====================
|
|
253
|
+
/**
|
|
254
|
+
* Current search input value.
|
|
255
|
+
*/
|
|
256
|
+
searchValue = '';
|
|
257
|
+
/**
|
|
258
|
+
* Selected options state.
|
|
259
|
+
*/
|
|
260
|
+
selectedOptions = [];
|
|
261
|
+
/**
|
|
262
|
+
* Focus state.
|
|
263
|
+
*/
|
|
264
|
+
focused = false;
|
|
265
|
+
/**
|
|
266
|
+
* Active option index for keyboard navigation.
|
|
267
|
+
*/
|
|
268
|
+
activeIndex = -1;
|
|
269
|
+
/**
|
|
270
|
+
* Flattened internal options.
|
|
271
|
+
*/
|
|
272
|
+
internalOptions = [];
|
|
273
|
+
/**
|
|
274
|
+
* Visible option count for incremental rendering.
|
|
275
|
+
*/
|
|
276
|
+
visibleCount = 100;
|
|
277
|
+
// ==================== Refs ====================
|
|
278
|
+
/**
|
|
279
|
+
* Input element reference.
|
|
280
|
+
*/
|
|
281
|
+
inputRef;
|
|
282
|
+
/**
|
|
283
|
+
* Dropdown content wrapper reference.
|
|
284
|
+
*/
|
|
285
|
+
dropdownRef;
|
|
286
|
+
/**
|
|
287
|
+
* Mutation observer for slotted options.
|
|
288
|
+
*/
|
|
289
|
+
mutationObserver;
|
|
290
|
+
/**
|
|
291
|
+
* Portal instance for dropdown.
|
|
292
|
+
*/
|
|
293
|
+
portalInstance = null;
|
|
294
|
+
/**
|
|
295
|
+
* Dropdown element reference.
|
|
296
|
+
*/
|
|
297
|
+
dropdownEl = null;
|
|
298
|
+
// ==================== Computed ====================
|
|
299
|
+
/**
|
|
300
|
+
* Whether current mode is multiple or tags.
|
|
301
|
+
* @returns boolean
|
|
302
|
+
*/
|
|
303
|
+
get isMultiple() {
|
|
304
|
+
return this.mode === 'multiple' || this.mode === 'tags';
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Whether any value is selected.
|
|
308
|
+
* @returns boolean
|
|
309
|
+
*/
|
|
310
|
+
get hasValue() {
|
|
311
|
+
return this.selectedOptions.length > 0;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Options filtered by search input and filterOption.
|
|
315
|
+
* @returns SelectOption[]
|
|
316
|
+
*/
|
|
317
|
+
get filteredOptions() {
|
|
318
|
+
if (!this.showSearch || !this.searchValue) {
|
|
319
|
+
return this.internalOptions;
|
|
320
|
+
}
|
|
321
|
+
return this.internalOptions.filter((opt) => {
|
|
322
|
+
if (this.filterOption === false)
|
|
323
|
+
return true;
|
|
324
|
+
const search = this.searchValue.toLowerCase();
|
|
325
|
+
if (typeof this.filterOption === 'function') {
|
|
326
|
+
return this.filterOption(this.searchValue, opt);
|
|
327
|
+
}
|
|
328
|
+
return opt.label.toLowerCase().includes(search);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
// ==================== Lifecycle ====================
|
|
332
|
+
/**
|
|
333
|
+
* Start observing slot changes for options.
|
|
334
|
+
* @returns void
|
|
335
|
+
*/
|
|
336
|
+
connectedCallback() {
|
|
337
|
+
this.mutationObserver = new MutationObserver(() => {
|
|
338
|
+
this.syncOptionsFromSlot();
|
|
339
|
+
});
|
|
340
|
+
this.mutationObserver.observe(this.el, { childList: true, subtree: true });
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Initialize value and options before render.
|
|
344
|
+
* @returns void
|
|
345
|
+
*/
|
|
346
|
+
componentWillLoad() {
|
|
347
|
+
if (this.value === undefined && this.defaultValue !== undefined) {
|
|
348
|
+
this.value = this.defaultValue;
|
|
349
|
+
}
|
|
350
|
+
this.syncOptionsFromSlot();
|
|
351
|
+
this.syncSelectedFromValue();
|
|
352
|
+
this.visibleCount = this.pageSize;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Auto focus on mount when enabled.
|
|
356
|
+
* @returns void
|
|
357
|
+
*/
|
|
358
|
+
componentDidLoad() {
|
|
359
|
+
if (this.autofocus && !this.disabled) {
|
|
360
|
+
this.setFocus();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Update portal after render.
|
|
365
|
+
* @returns void
|
|
366
|
+
*/
|
|
367
|
+
componentDidRender() {
|
|
368
|
+
this.updatePortal();
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Cleanup observer and portal on disconnect.
|
|
372
|
+
* @returns void
|
|
373
|
+
*/
|
|
374
|
+
disconnectedCallback() {
|
|
375
|
+
this.mutationObserver?.disconnect();
|
|
376
|
+
this.destroyPortal();
|
|
377
|
+
}
|
|
378
|
+
// ==================== Watchers ====================
|
|
379
|
+
/**
|
|
380
|
+
* Sync selected options when value changes.
|
|
381
|
+
* @returns void
|
|
382
|
+
*/
|
|
383
|
+
onValueChange() {
|
|
384
|
+
this.syncSelectedFromValue();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Handle open state changes.
|
|
388
|
+
* @param isOpen - Open state.
|
|
389
|
+
* @returns void
|
|
390
|
+
*/
|
|
391
|
+
onOpenChange(isOpen) {
|
|
392
|
+
this.xDropdownVisibleChange.emit(isOpen);
|
|
393
|
+
if (isOpen) {
|
|
394
|
+
this.activeIndex = this.getInitialActiveIndex();
|
|
395
|
+
this.syncOptionsFromSlot();
|
|
396
|
+
this.visibleCount = this.pageSize;
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
this.searchValue = '';
|
|
400
|
+
this.activeIndex = -1;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Sync options when options prop changes.
|
|
405
|
+
* @returns void
|
|
406
|
+
*/
|
|
407
|
+
onOptionsChange() {
|
|
408
|
+
this.syncOptionsFromSlot();
|
|
409
|
+
this.syncSelectedFromValue();
|
|
410
|
+
}
|
|
411
|
+
// ==================== Listeners ====================
|
|
412
|
+
/**
|
|
413
|
+
* Close dropdown when clicking outside.
|
|
414
|
+
* @param ev - Mouse event.
|
|
415
|
+
* @returns void
|
|
416
|
+
*/
|
|
417
|
+
handleWindowClick(ev) {
|
|
418
|
+
if (!this.open)
|
|
419
|
+
return;
|
|
420
|
+
const path = ev.composedPath();
|
|
421
|
+
const isInsideComponent = path.includes(this.el);
|
|
422
|
+
const portalEl = this.portalInstance?.getElement();
|
|
423
|
+
const isInsidePortal = portalEl ? path.includes(portalEl) : false;
|
|
424
|
+
// Also check if click is on the portal container itself (optional but good for safety)
|
|
425
|
+
const isPortalContainer = ev.target?.closest('.x-portal-container');
|
|
426
|
+
if (!isInsideComponent && !isInsidePortal && !isPortalContainer) {
|
|
427
|
+
this.closeDropdown();
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Handle keyboard navigation and selection.
|
|
432
|
+
* @param ev - Keyboard event.
|
|
433
|
+
* @returns void
|
|
434
|
+
*/
|
|
435
|
+
handleKeydown(ev) {
|
|
436
|
+
if (this.disabled)
|
|
437
|
+
return;
|
|
438
|
+
const options = this.filteredOptions;
|
|
439
|
+
switch (ev.key) {
|
|
440
|
+
case 'ArrowDown':
|
|
441
|
+
ev.preventDefault();
|
|
442
|
+
this.handleArrowDown(options);
|
|
443
|
+
break;
|
|
444
|
+
case 'ArrowUp':
|
|
445
|
+
ev.preventDefault();
|
|
446
|
+
this.handleArrowUp(options);
|
|
447
|
+
break;
|
|
448
|
+
case 'Enter':
|
|
449
|
+
ev.preventDefault();
|
|
450
|
+
this.handleEnter(options);
|
|
451
|
+
break;
|
|
452
|
+
case 'Escape':
|
|
453
|
+
ev.preventDefault();
|
|
454
|
+
this.closeDropdown();
|
|
455
|
+
break;
|
|
456
|
+
case 'Backspace':
|
|
457
|
+
this.handleBackspace();
|
|
458
|
+
break;
|
|
459
|
+
case 'Tab':
|
|
460
|
+
if (this.open) {
|
|
461
|
+
this.closeDropdown();
|
|
462
|
+
}
|
|
463
|
+
break;
|
|
464
|
+
case 'Home':
|
|
465
|
+
if (this.open) {
|
|
466
|
+
ev.preventDefault();
|
|
467
|
+
this.activeIndex = 0;
|
|
468
|
+
}
|
|
469
|
+
break;
|
|
470
|
+
case 'End':
|
|
471
|
+
if (this.open) {
|
|
472
|
+
ev.preventDefault();
|
|
473
|
+
this.activeIndex = options.length - 1;
|
|
474
|
+
}
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
// ==================== Public Methods ====================
|
|
479
|
+
/**
|
|
480
|
+
* Focus the select input.
|
|
481
|
+
* @returns Promise<void>
|
|
482
|
+
* @example
|
|
483
|
+
* await el.setFocus()
|
|
484
|
+
*/
|
|
485
|
+
async setFocus() {
|
|
486
|
+
this.inputRef?.focus();
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Blur the select input.
|
|
490
|
+
* @returns Promise<void>
|
|
491
|
+
* @example
|
|
492
|
+
* await el.setBlur()
|
|
493
|
+
*/
|
|
494
|
+
async setBlur() {
|
|
495
|
+
this.inputRef?.blur();
|
|
496
|
+
}
|
|
497
|
+
// ==================== Private Methods ====================
|
|
498
|
+
/**
|
|
499
|
+
* Flattens the options array, extracting options from OptionGroups.
|
|
500
|
+
* This creates a single list of options for easier navigation and filtering.
|
|
501
|
+
*
|
|
502
|
+
* @param options - The mixed list of options and option groups.
|
|
503
|
+
* @returns SelectOption[] - A flat list of all selectable options.
|
|
504
|
+
*/
|
|
505
|
+
flattenOptions(options) {
|
|
506
|
+
const result = [];
|
|
507
|
+
for (const opt of options) {
|
|
508
|
+
if (isOptionGroup(opt)) {
|
|
509
|
+
// Add all options from the group
|
|
510
|
+
result.push(...opt.options);
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
result.push(opt);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return result;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Synchronizes internal options state from either the `options` prop or slotted `x-select-option` elements.
|
|
520
|
+
* Priority is given to the `options` prop.
|
|
521
|
+
*
|
|
522
|
+
* Flow:
|
|
523
|
+
* 1. If `options` prop exists, flatten and use it.
|
|
524
|
+
* 2. If not, query for `x-select-option` elements in the slot.
|
|
525
|
+
* 3. Map elements to `SelectOption` objects, extracting value, label, and disabled state.
|
|
526
|
+
*/
|
|
527
|
+
syncOptionsFromSlot() {
|
|
528
|
+
// If options prop is provided, flatten and use it
|
|
529
|
+
if (this.options && this.options.length > 0) {
|
|
530
|
+
this.internalOptions = this.flattenOptions(this.options);
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
// Otherwise, sync from slot children
|
|
534
|
+
const optionElements = Array.from(this.el.querySelectorAll('x-select-option'));
|
|
535
|
+
this.internalOptions = optionElements.map((opt) => ({
|
|
536
|
+
value: opt.value,
|
|
537
|
+
label: opt.label || opt.textContent?.trim() || String(opt.value),
|
|
538
|
+
disabled: opt.disabled,
|
|
539
|
+
}));
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Synchronizes `selectedOptions` state based on the current `value` prop.
|
|
543
|
+
* Handles both single and multiple selection modes, as well as `labelInValue` format.
|
|
544
|
+
*
|
|
545
|
+
* Flow:
|
|
546
|
+
* 1. If `value` is undefined/null, clear selection.
|
|
547
|
+
* 2. If `labelInValue` is true, map the object(s) directly to selected options.
|
|
548
|
+
* 3. If `labelInValue` is false, find the corresponding options from `internalOptions` using the value.
|
|
549
|
+
* - If option found, use its label.
|
|
550
|
+
* - If not found, fallback to string representation of value.
|
|
551
|
+
*/
|
|
552
|
+
syncSelectedFromValue() {
|
|
553
|
+
if (this.value === undefined || this.value === null) {
|
|
554
|
+
this.selectedOptions = [];
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
if (this.labelInValue) {
|
|
558
|
+
if (this.isMultiple) {
|
|
559
|
+
const vals = (Array.isArray(this.value) ? this.value : [this.value]);
|
|
560
|
+
this.selectedOptions = vals.map((v) => ({
|
|
561
|
+
value: v.value,
|
|
562
|
+
label: v.label,
|
|
563
|
+
}));
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
const val = this.value;
|
|
567
|
+
this.selectedOptions = [{ value: val.value, label: val.label }];
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
if (this.isMultiple) {
|
|
572
|
+
const vals = (Array.isArray(this.value) ? this.value : []);
|
|
573
|
+
this.selectedOptions = vals.map((v) => {
|
|
574
|
+
const opt = this.internalOptions.find((o) => o.value === v);
|
|
575
|
+
return { value: v, label: opt?.label || String(v) };
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
const v = this.value;
|
|
580
|
+
const opt = this.internalOptions.find((o) => o.value === v);
|
|
581
|
+
this.selectedOptions = opt
|
|
582
|
+
? [{ value: opt.value, label: opt.label }]
|
|
583
|
+
: [{ value: v, label: String(v) }];
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Determines the initial active index for the dropdown.
|
|
589
|
+
*
|
|
590
|
+
* Flow:
|
|
591
|
+
* 1. If there is a selected option, find its index in the filtered options.
|
|
592
|
+
* 2. If no selection, find the first non-disabled option.
|
|
593
|
+
*
|
|
594
|
+
* @returns number - The index of the option to highlight.
|
|
595
|
+
*/
|
|
596
|
+
getInitialActiveIndex() {
|
|
597
|
+
const options = this.filteredOptions;
|
|
598
|
+
if (this.selectedOptions.length > 0) {
|
|
599
|
+
const selectedValue = this.selectedOptions[0].value;
|
|
600
|
+
const index = options.findIndex((o) => o.value === selectedValue);
|
|
601
|
+
if (index >= 0)
|
|
602
|
+
return index;
|
|
603
|
+
}
|
|
604
|
+
return options.findIndex((o) => !o.disabled);
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Opens the dropdown menu.
|
|
608
|
+
*
|
|
609
|
+
* Flow:
|
|
610
|
+
* 1. Checks if disabled or already open.
|
|
611
|
+
* 2. Sets `open` state to true.
|
|
612
|
+
* 3. Calculates initial active index.
|
|
613
|
+
* 4. Focuses the input element.
|
|
614
|
+
*/
|
|
615
|
+
openDropdown() {
|
|
616
|
+
if (this.disabled || this.open)
|
|
617
|
+
return;
|
|
618
|
+
this.open = true;
|
|
619
|
+
this.activeIndex = this.getInitialActiveIndex();
|
|
620
|
+
requestAnimationFrame(() => {
|
|
621
|
+
this.inputRef?.focus();
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Closes the dropdown menu.
|
|
626
|
+
* Resets search value and active index.
|
|
627
|
+
*/
|
|
628
|
+
closeDropdown() {
|
|
629
|
+
if (!this.open)
|
|
630
|
+
return;
|
|
631
|
+
this.open = false;
|
|
632
|
+
this.searchValue = '';
|
|
633
|
+
this.activeIndex = -1;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Toggles the dropdown open/closed state.
|
|
637
|
+
*/
|
|
638
|
+
toggleDropdown() {
|
|
639
|
+
if (this.disabled)
|
|
640
|
+
return;
|
|
641
|
+
if (this.open) {
|
|
642
|
+
this.closeDropdown();
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
this.openDropdown();
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Handles the selection of an option.
|
|
650
|
+
*
|
|
651
|
+
* Flow:
|
|
652
|
+
* 1. Checks if option is disabled.
|
|
653
|
+
* 2. If multiple mode:
|
|
654
|
+
* - Checks if already selected.
|
|
655
|
+
* - If yes, deselects it.
|
|
656
|
+
* - If no, adds to selection and emits change.
|
|
657
|
+
* - Clears search but keeps dropdown open and input focused.
|
|
658
|
+
* 3. If single mode:
|
|
659
|
+
* - Sets selection to just this option.
|
|
660
|
+
* - Emits change.
|
|
661
|
+
* - Closes dropdown.
|
|
662
|
+
*
|
|
663
|
+
* @param option - The option being selected.
|
|
664
|
+
*/
|
|
665
|
+
selectOption(option) {
|
|
666
|
+
if (option.disabled)
|
|
667
|
+
return;
|
|
668
|
+
if (this.isMultiple) {
|
|
669
|
+
const exists = this.selectedOptions.some((o) => o.value === option.value);
|
|
670
|
+
if (exists) {
|
|
671
|
+
this.deselectOption(option);
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
this.selectedOptions = [...this.selectedOptions, option];
|
|
675
|
+
this.emitChange();
|
|
676
|
+
this.xSelect.emit(option);
|
|
677
|
+
}
|
|
678
|
+
this.searchValue = '';
|
|
679
|
+
this.inputRef?.focus();
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
this.selectedOptions = [option];
|
|
683
|
+
this.emitChange();
|
|
684
|
+
this.xSelect.emit(option);
|
|
685
|
+
this.closeDropdown();
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Removes an option from the selection.
|
|
690
|
+
*
|
|
691
|
+
* Flow:
|
|
692
|
+
* 1. Filters out the option from `selectedOptions`.
|
|
693
|
+
* 2. Emits change event.
|
|
694
|
+
* 3. Emits `xDeselect` event.
|
|
695
|
+
*
|
|
696
|
+
* @param option - The option to remove.
|
|
697
|
+
*/
|
|
698
|
+
deselectOption(option) {
|
|
699
|
+
this.selectedOptions = this.selectedOptions.filter((o) => o.value !== option.value);
|
|
700
|
+
this.emitChange();
|
|
701
|
+
this.xDeselect.emit(option);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Emits the `xChange` event with the current value.
|
|
705
|
+
* Normalizes the value format based on `labelInValue` and mode (single/multiple).
|
|
706
|
+
*/
|
|
707
|
+
emitChange() {
|
|
708
|
+
let emitValue;
|
|
709
|
+
let emitOption;
|
|
710
|
+
if (this.isMultiple) {
|
|
711
|
+
emitOption = this.selectedOptions;
|
|
712
|
+
emitValue = this.labelInValue
|
|
713
|
+
? this.selectedOptions.map((o) => ({ value: o.value, label: o.label }))
|
|
714
|
+
: this.selectedOptions.map((o) => o.value);
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
const opt = this.selectedOptions[0];
|
|
718
|
+
emitOption = opt;
|
|
719
|
+
emitValue = this.labelInValue
|
|
720
|
+
? opt ? { value: opt.value, label: opt.label } : undefined
|
|
721
|
+
: opt?.value;
|
|
722
|
+
}
|
|
723
|
+
this.value = emitValue;
|
|
724
|
+
this.xChange.emit({ value: emitValue, option: emitOption });
|
|
725
|
+
}
|
|
726
|
+
// ==================== Keyboard Handlers ====================
|
|
727
|
+
/**
|
|
728
|
+
* Handles ArrowDown key press.
|
|
729
|
+
* Moves active focus to the next non-disabled option.
|
|
730
|
+
* Opens dropdown if closed.
|
|
731
|
+
*
|
|
732
|
+
* @param options - The list of currently visible options.
|
|
733
|
+
*/
|
|
734
|
+
handleArrowDown(options) {
|
|
735
|
+
if (!this.open) {
|
|
736
|
+
this.openDropdown();
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
let nextIndex = this.activeIndex + 1;
|
|
740
|
+
while (nextIndex < options.length && options[nextIndex]?.disabled) {
|
|
741
|
+
nextIndex++;
|
|
742
|
+
}
|
|
743
|
+
if (nextIndex < options.length) {
|
|
744
|
+
this.activeIndex = nextIndex;
|
|
745
|
+
this.scrollToActiveOption();
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Handles ArrowUp key press.
|
|
750
|
+
* Moves active focus to the previous non-disabled option.
|
|
751
|
+
* Opens dropdown if closed.
|
|
752
|
+
*
|
|
753
|
+
* @param options - The list of currently visible options.
|
|
754
|
+
*/
|
|
755
|
+
handleArrowUp(options) {
|
|
756
|
+
if (!this.open) {
|
|
757
|
+
this.openDropdown();
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
let prevIndex = this.activeIndex - 1;
|
|
761
|
+
while (prevIndex >= 0 && options[prevIndex]?.disabled) {
|
|
762
|
+
prevIndex--;
|
|
763
|
+
}
|
|
764
|
+
if (prevIndex >= 0) {
|
|
765
|
+
this.activeIndex = prevIndex;
|
|
766
|
+
this.scrollToActiveOption();
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Handles Enter key press.
|
|
771
|
+
* Selects the currently active option if open.
|
|
772
|
+
* Opens dropdown if closed.
|
|
773
|
+
*
|
|
774
|
+
* @param options - The list of currently visible options.
|
|
775
|
+
*/
|
|
776
|
+
handleEnter(options) {
|
|
777
|
+
if (this.open && this.activeIndex >= 0 && options[this.activeIndex]) {
|
|
778
|
+
this.selectOption(options[this.activeIndex]);
|
|
779
|
+
}
|
|
780
|
+
else if (!this.open) {
|
|
781
|
+
this.openDropdown();
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Handles Backspace key press.
|
|
786
|
+
* Removes the last selected tag if in multiple mode and search input is empty.
|
|
787
|
+
*/
|
|
788
|
+
handleBackspace() {
|
|
789
|
+
if (this.isMultiple && !this.searchValue && this.selectedOptions.length > 0) {
|
|
790
|
+
const lastOption = this.selectedOptions[this.selectedOptions.length - 1];
|
|
791
|
+
this.deselectOption(lastOption);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Scrolls the dropdown to ensure the active option is visible.
|
|
796
|
+
*/
|
|
797
|
+
scrollToActiveOption() {
|
|
798
|
+
if (!this.dropdownRef || this.activeIndex < 0)
|
|
799
|
+
return;
|
|
800
|
+
const items = this.dropdownRef.querySelectorAll('.x-select-option');
|
|
801
|
+
const activeItem = items[this.activeIndex];
|
|
802
|
+
if (activeItem) {
|
|
803
|
+
activeItem.scrollIntoView({ block: 'nearest' });
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
// ==================== Event Handlers ====================
|
|
807
|
+
/**
|
|
808
|
+
* Handles click on the main selector element.
|
|
809
|
+
* Toggles dropdown if trigger includes 'click'.
|
|
810
|
+
*/
|
|
811
|
+
handleSelectorClick = (e) => {
|
|
812
|
+
e.preventDefault();
|
|
813
|
+
if (this.showAction.includes('click')) {
|
|
814
|
+
this.toggleDropdown();
|
|
815
|
+
}
|
|
816
|
+
this.inputRef?.focus();
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* Handles focus event on the input.
|
|
820
|
+
* Opens dropdown if trigger includes 'focus'.
|
|
821
|
+
*/
|
|
822
|
+
handleInputFocus = (e) => {
|
|
823
|
+
this.focused = true;
|
|
824
|
+
this.xFocus.emit(e);
|
|
825
|
+
if (this.showAction.includes('focus')) {
|
|
826
|
+
this.openDropdown();
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
/**
|
|
830
|
+
* Handles blur event on the input.
|
|
831
|
+
* Delays blur processing to allow for clicks on dropdown items.
|
|
832
|
+
*/
|
|
833
|
+
handleInputBlur = (e) => {
|
|
834
|
+
setTimeout(() => {
|
|
835
|
+
if (!this.el.contains(document.activeElement)) {
|
|
836
|
+
this.focused = false;
|
|
837
|
+
this.xBlur.emit(e);
|
|
838
|
+
}
|
|
839
|
+
}, 150);
|
|
840
|
+
};
|
|
841
|
+
/**
|
|
842
|
+
* Handles input changes for search functionality.
|
|
843
|
+
* Updates search value, resets active index to 0, and opens dropdown.
|
|
844
|
+
*/
|
|
845
|
+
handleSearchInput = (e) => {
|
|
846
|
+
const target = e.target;
|
|
847
|
+
this.searchValue = target.value;
|
|
848
|
+
this.xSearch.emit(this.searchValue);
|
|
849
|
+
if (!this.open) {
|
|
850
|
+
this.openDropdown();
|
|
851
|
+
}
|
|
852
|
+
this.activeIndex = 0;
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
* Handles click on the clear icon.
|
|
856
|
+
* Clears selection and search value.
|
|
857
|
+
*/
|
|
858
|
+
handleClear = (e) => {
|
|
859
|
+
e.stopPropagation();
|
|
860
|
+
e.preventDefault();
|
|
861
|
+
this.selectedOptions = [];
|
|
862
|
+
this.value = this.isMultiple ? [] : undefined;
|
|
863
|
+
this.emitChange();
|
|
864
|
+
this.xClear.emit();
|
|
865
|
+
};
|
|
866
|
+
/**
|
|
867
|
+
* Handles click on a tag's remove icon (multiple mode).
|
|
868
|
+
* Deselects the specific option associated with the tag.
|
|
869
|
+
*/
|
|
870
|
+
handleTagRemove = (e, option) => {
|
|
871
|
+
e.stopPropagation();
|
|
872
|
+
e.preventDefault();
|
|
873
|
+
this.deselectOption(option);
|
|
874
|
+
};
|
|
875
|
+
/**
|
|
876
|
+
* Handles click on an option in the dropdown.
|
|
877
|
+
* Selects the clicked option.
|
|
878
|
+
*/
|
|
879
|
+
handleOptionClick = (option) => {
|
|
880
|
+
if (!option.disabled) {
|
|
881
|
+
this.selectOption(option);
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
/**
|
|
885
|
+
* Handles scroll event on the dropdown content.
|
|
886
|
+
* Implements infinite/lazy loading by checking if scroll is near bottom.
|
|
887
|
+
* Increases `visibleCount` to render more options.
|
|
888
|
+
*/
|
|
889
|
+
handleDropdownScroll = (e) => {
|
|
890
|
+
const target = e.target;
|
|
891
|
+
const threshold = 20; // px from bottom
|
|
892
|
+
if (target.scrollTop + target.clientHeight >= target.scrollHeight - threshold) {
|
|
893
|
+
if (this.visibleCount < this.filteredOptions.length) {
|
|
894
|
+
this.visibleCount += this.pageSize;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
// ==================== Portal Methods ====================
|
|
899
|
+
/**
|
|
900
|
+
* Builds the dropdown DOM structure for the portal.
|
|
901
|
+
*
|
|
902
|
+
* Flow:
|
|
903
|
+
* 1. Creates or reuses `x-select-dropdown-content` element.
|
|
904
|
+
* 2. Calculates width (match select or fixed).
|
|
905
|
+
* 3. Sets classes and styles.
|
|
906
|
+
* 4. Renders options (handling groups if present) or "Not Found" state.
|
|
907
|
+
* 5. Attaches scroll listener for lazy loading.
|
|
908
|
+
*
|
|
909
|
+
* @returns HTMLElement - The constructed dropdown element.
|
|
910
|
+
*/
|
|
911
|
+
buildDropdownElement() {
|
|
912
|
+
if (!this.dropdownEl) {
|
|
913
|
+
this.dropdownEl = document.createElement('x-select-dropdown-content');
|
|
914
|
+
this.dropdownEl.setDropdownRef = (el) => {
|
|
915
|
+
this.dropdownRef = el || undefined;
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
const dropdownEl = this.dropdownEl;
|
|
919
|
+
const options = this.filteredOptions;
|
|
920
|
+
const hasOptions = options.length > 0;
|
|
921
|
+
// Calculate width - use wrapper element for full width
|
|
922
|
+
let width;
|
|
923
|
+
if (typeof this.dropdownMatchSelectWidth === 'number') {
|
|
924
|
+
width = `${this.dropdownMatchSelectWidth}px`;
|
|
925
|
+
}
|
|
926
|
+
else if (this.dropdownMatchSelectWidth) {
|
|
927
|
+
const wrapperEl = this.getWrapperEl();
|
|
928
|
+
if (wrapperEl) {
|
|
929
|
+
width = `${wrapperEl.offsetWidth}px`;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
// Set classes
|
|
933
|
+
const classes = {
|
|
934
|
+
'x-select-dropdown': true,
|
|
935
|
+
'x-select-dropdown-hidden': !this.open,
|
|
936
|
+
[`x-select-dropdown-placement-${this.placement}`]: true,
|
|
937
|
+
[this.dropdownClassName || '']: !!this.dropdownClassName,
|
|
938
|
+
};
|
|
939
|
+
// Set styles
|
|
940
|
+
const styles = {
|
|
941
|
+
...this.dropdownStyle,
|
|
942
|
+
...(width ? { width } : {}),
|
|
943
|
+
};
|
|
944
|
+
dropdownEl.dropdownClasses = classes;
|
|
945
|
+
dropdownEl.dropdownStyle = styles;
|
|
946
|
+
// Build content
|
|
947
|
+
let contentWrapper = dropdownEl.querySelector('.x-select-dropdown-content');
|
|
948
|
+
if (!contentWrapper) {
|
|
949
|
+
contentWrapper = document.createElement('div');
|
|
950
|
+
contentWrapper.className = 'x-select-dropdown-content';
|
|
951
|
+
contentWrapper.style.maxHeight = `${this.listHeight}px`;
|
|
952
|
+
contentWrapper.style.overflowY = 'auto';
|
|
953
|
+
dropdownEl.appendChild(contentWrapper);
|
|
954
|
+
}
|
|
955
|
+
// Preserve scroll position
|
|
956
|
+
const scrollTop = contentWrapper.scrollTop;
|
|
957
|
+
// Clear content
|
|
958
|
+
contentWrapper.innerHTML = '';
|
|
959
|
+
// Listen for scroll for lazy loading
|
|
960
|
+
contentWrapper.removeEventListener('scroll', this.handleDropdownScroll);
|
|
961
|
+
contentWrapper.addEventListener('scroll', this.handleDropdownScroll);
|
|
962
|
+
if (!hasOptions) {
|
|
963
|
+
const emptyDiv = document.createElement('div');
|
|
964
|
+
emptyDiv.className = 'x-select-item-empty';
|
|
965
|
+
emptyDiv.textContent = this.notFoundContent;
|
|
966
|
+
contentWrapper.appendChild(emptyDiv);
|
|
967
|
+
}
|
|
968
|
+
else {
|
|
969
|
+
// Check if we have option groups
|
|
970
|
+
if (this.options && this.options.some(isOptionGroup)) {
|
|
971
|
+
this.renderOptionsWithGroups(contentWrapper, options.slice(0, this.visibleCount));
|
|
972
|
+
}
|
|
973
|
+
else {
|
|
974
|
+
options.slice(0, this.visibleCount).forEach((option, index) => {
|
|
975
|
+
const optionEl = this.createOptionElement(option, index);
|
|
976
|
+
contentWrapper.appendChild(optionEl);
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
// Restore scroll position
|
|
981
|
+
if (scrollTop > 0) {
|
|
982
|
+
contentWrapper.scrollTop = scrollTop;
|
|
983
|
+
}
|
|
984
|
+
return dropdownEl;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Creates a single option DOM element.
|
|
988
|
+
*
|
|
989
|
+
* Flow:
|
|
990
|
+
* 1. Determines state (selected, active, disabled).
|
|
991
|
+
* 2. Sets ARIA attributes.
|
|
992
|
+
* 3. Renders label content.
|
|
993
|
+
* 4. If selected, renders a checkmark icon.
|
|
994
|
+
* 5. Attaches click listener.
|
|
995
|
+
*
|
|
996
|
+
* @param option - The option data.
|
|
997
|
+
* @param index - The index of the option.
|
|
998
|
+
* @returns HTMLElement - The option element.
|
|
999
|
+
*/
|
|
1000
|
+
createOptionElement(option, index) {
|
|
1001
|
+
const isSelected = this.selectedOptions.some((o) => o.value === option.value);
|
|
1002
|
+
const isActive = index === this.activeIndex;
|
|
1003
|
+
const optionEl = document.createElement('div');
|
|
1004
|
+
optionEl.className = [
|
|
1005
|
+
'x-select-option',
|
|
1006
|
+
isSelected ? 'x-select-option-selected' : '',
|
|
1007
|
+
isActive ? 'x-select-option-active' : '',
|
|
1008
|
+
option.disabled ? 'x-select-option-disabled' : '',
|
|
1009
|
+
].filter(Boolean).join(' ');
|
|
1010
|
+
optionEl.setAttribute('role', 'option');
|
|
1011
|
+
optionEl.setAttribute('aria-selected', String(isSelected));
|
|
1012
|
+
optionEl.setAttribute('aria-disabled', String(!!option.disabled));
|
|
1013
|
+
// Content
|
|
1014
|
+
const contentSpan = document.createElement('span');
|
|
1015
|
+
contentSpan.className = 'x-select-option-content';
|
|
1016
|
+
contentSpan.textContent = option.label;
|
|
1017
|
+
optionEl.appendChild(contentSpan);
|
|
1018
|
+
// Selected icon
|
|
1019
|
+
if (isSelected) {
|
|
1020
|
+
const iconSpan = document.createElement('span');
|
|
1021
|
+
iconSpan.className = 'x-select-option-state';
|
|
1022
|
+
iconSpan.innerHTML = `
|
|
1023
|
+
<svg viewBox="64 64 896 896" width="1em" height="1em" fill="currentColor">
|
|
1024
|
+
<path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"/>
|
|
1025
|
+
</svg>
|
|
1026
|
+
`;
|
|
1027
|
+
optionEl.appendChild(iconSpan);
|
|
1028
|
+
}
|
|
1029
|
+
// Click handler
|
|
1030
|
+
optionEl.addEventListener('click', (e) => {
|
|
1031
|
+
e.preventDefault();
|
|
1032
|
+
e.stopPropagation();
|
|
1033
|
+
this.handleOptionClick(option);
|
|
1034
|
+
});
|
|
1035
|
+
return optionEl;
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Renders options respecting OptionGroup structure.
|
|
1039
|
+
* Iterates through groups and options, creating headers and items.
|
|
1040
|
+
*
|
|
1041
|
+
* @param container - The container to append elements to.
|
|
1042
|
+
* @param filteredOptions - The flat list of filtered options to verify visibility.
|
|
1043
|
+
*/
|
|
1044
|
+
renderOptionsWithGroups(container, filteredOptions) {
|
|
1045
|
+
if (!this.options)
|
|
1046
|
+
return;
|
|
1047
|
+
let globalIndex = 0;
|
|
1048
|
+
for (const opt of this.options) {
|
|
1049
|
+
if (isOptionGroup(opt)) {
|
|
1050
|
+
// Render group header
|
|
1051
|
+
const groupEl = document.createElement('div');
|
|
1052
|
+
groupEl.className = 'x-select-option-group';
|
|
1053
|
+
const groupLabel = document.createElement('div');
|
|
1054
|
+
groupLabel.className = 'x-select-option-group-label';
|
|
1055
|
+
groupLabel.textContent = opt.label;
|
|
1056
|
+
groupEl.appendChild(groupLabel);
|
|
1057
|
+
// Render group options
|
|
1058
|
+
for (const groupOption of opt.options) {
|
|
1059
|
+
// Check if this option is in filtered list
|
|
1060
|
+
const isFiltered = filteredOptions.some(fo => fo.value === groupOption.value);
|
|
1061
|
+
if (!isFiltered)
|
|
1062
|
+
continue;
|
|
1063
|
+
const optionEl = this.createOptionElement(groupOption, globalIndex);
|
|
1064
|
+
optionEl.classList.add('x-select-option-in-group');
|
|
1065
|
+
groupEl.appendChild(optionEl);
|
|
1066
|
+
globalIndex++;
|
|
1067
|
+
}
|
|
1068
|
+
// Only append group if it has visible options
|
|
1069
|
+
if (groupEl.querySelectorAll('.x-select-option').length > 0) {
|
|
1070
|
+
container.appendChild(groupEl);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
else {
|
|
1074
|
+
// Check if this option is in filtered list
|
|
1075
|
+
const isFiltered = filteredOptions.some(fo => fo.value === opt.value);
|
|
1076
|
+
if (!isFiltered)
|
|
1077
|
+
continue;
|
|
1078
|
+
const optionEl = this.createOptionElement(opt, globalIndex);
|
|
1079
|
+
container.appendChild(optionEl);
|
|
1080
|
+
globalIndex++;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Retrieves the wrapper element from the shadow DOM.
|
|
1086
|
+
* @returns HTMLElement | undefined
|
|
1087
|
+
*/
|
|
1088
|
+
getWrapperEl() {
|
|
1089
|
+
return this.el.shadowRoot?.querySelector('.x-select-wrapper');
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Creates or updates the portal instance for the dropdown.
|
|
1093
|
+
* Manages position, content, and open state.
|
|
1094
|
+
*/
|
|
1095
|
+
updatePortal() {
|
|
1096
|
+
if (!this.open) {
|
|
1097
|
+
this.destroyPortal();
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
const dropdownElement = this.buildDropdownElement();
|
|
1101
|
+
if (!this.portalInstance) {
|
|
1102
|
+
this.portalInstance = PortalController.create({
|
|
1103
|
+
open: true,
|
|
1104
|
+
target: this.getWrapperEl(),
|
|
1105
|
+
placement: this.placement,
|
|
1106
|
+
zIndex: 1050,
|
|
1107
|
+
content: dropdownElement,
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
this.portalInstance.update({
|
|
1112
|
+
open: true,
|
|
1113
|
+
target: this.getWrapperEl(),
|
|
1114
|
+
placement: this.placement,
|
|
1115
|
+
content: dropdownElement,
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Destroys the portal instance and clears the dropdown element reference.
|
|
1121
|
+
*/
|
|
1122
|
+
destroyPortal() {
|
|
1123
|
+
if (this.portalInstance) {
|
|
1124
|
+
this.portalInstance.destroy();
|
|
1125
|
+
this.portalInstance = null;
|
|
1126
|
+
}
|
|
1127
|
+
this.dropdownEl = null;
|
|
1128
|
+
}
|
|
1129
|
+
// ==================== Render Methods ====================
|
|
1130
|
+
/**
|
|
1131
|
+
* Renders the arrow icon or loading spinner.
|
|
1132
|
+
* @returns JSX.Element
|
|
1133
|
+
*/
|
|
1134
|
+
renderArrowIcon() {
|
|
1135
|
+
if (this.loading) {
|
|
1136
|
+
return (h("span", { class: "x-select-arrow x-select-arrow-loading", part: "arrow" }, h("x-icon", { spin: true, name: getIcon('loading') })));
|
|
1137
|
+
}
|
|
1138
|
+
return (h("span", { class: { 'x-select-arrow': true, 'x-select-arrow-open': this.open }, part: "arrow" }, h("x-icon", { name: getIcon('arrowDown') })));
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Renders the clear icon if allowed and value exists.
|
|
1142
|
+
* @returns JSX.Element | null
|
|
1143
|
+
*/
|
|
1144
|
+
renderClearIcon() {
|
|
1145
|
+
if (!this.allowClear || !this.hasValue || this.disabled)
|
|
1146
|
+
return null;
|
|
1147
|
+
return (h("span", { class: "x-select-clear", part: "clear", onClick: this.handleClear }, h("x-icon", { name: getIcon('clear') })));
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Renders a selected tag item (for multiple/tags mode).
|
|
1151
|
+
*
|
|
1152
|
+
* @param option - The option to render as a tag.
|
|
1153
|
+
* @returns JSX.Element
|
|
1154
|
+
*/
|
|
1155
|
+
renderTag(option) {
|
|
1156
|
+
const label = this.maxTagTextLength && option.label.length > this.maxTagTextLength
|
|
1157
|
+
? option.label.slice(0, this.maxTagTextLength) + '...'
|
|
1158
|
+
: option.label;
|
|
1159
|
+
return (h("span", { class: "x-select-selection-item", key: String(option.value) }, h("span", { class: "x-select-selection-item-content" }, label), !this.disabled && (h("span", { class: "x-select-selection-item-remove", onClick: (e) => this.handleTagRemove(e, option) }, h("x-icon", { name: getIcon('checkSmall') })))));
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Renders the selector content for multiple/tags mode.
|
|
1163
|
+
* Includes tags, hidden tag counter, search input, and placeholder.
|
|
1164
|
+
*
|
|
1165
|
+
* @returns JSX.Element
|
|
1166
|
+
*/
|
|
1167
|
+
renderMultipleSelector() {
|
|
1168
|
+
const maxCount = typeof this.maxTagCount === 'number' ? this.maxTagCount : this.selectedOptions.length;
|
|
1169
|
+
const visibleTags = this.selectedOptions.slice(0, maxCount);
|
|
1170
|
+
const hiddenCount = this.selectedOptions.length - maxCount;
|
|
1171
|
+
const showPlaceholder = !this.hasValue && !this.searchValue;
|
|
1172
|
+
return (h("div", { class: "x-select-selection-overflow" }, visibleTags.map((opt) => this.renderTag(opt)), hiddenCount > 0 && (h("span", { class: "x-select-selection-item x-select-selection-item-rest" }, h("span", { class: "x-select-selection-item-content" }, this.maxTagPlaceholder || `+ ${hiddenCount} ...`))), h("span", { class: "x-select-selection-search" }, h("input", { ref: (el) => (this.inputRef = el), id: this.inputId, name: this.name, class: "x-select-selection-search-input", type: "text", value: this.searchValue, disabled: this.disabled, readOnly: !this.showSearch && this.mode !== 'tags', autoComplete: "off", onInput: this.handleSearchInput, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur }), h("span", { class: "x-select-selection-search-mirror" }, this.searchValue, "\u00A0")), showPlaceholder && (h("span", { class: "x-select-selection-placeholder" }, this.placeholder))));
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Renders the selector content for single selection mode.
|
|
1176
|
+
* Includes selected label (or placeholder) and search input.
|
|
1177
|
+
*
|
|
1178
|
+
* @returns JSX.Element[]
|
|
1179
|
+
*/
|
|
1180
|
+
renderSingleSelector() {
|
|
1181
|
+
const showPlaceholder = !this.hasValue && !this.searchValue;
|
|
1182
|
+
const displayLabel = this.hasValue ? this.selectedOptions[0].label : '';
|
|
1183
|
+
return [
|
|
1184
|
+
h("span", { class: "x-select-selection-search" }, h("input", { ref: (el) => (this.inputRef = el), id: this.inputId, name: this.name, class: "x-select-selection-search-input", type: "text", value: this.searchValue, disabled: this.disabled, readOnly: !this.showSearch, autoComplete: "off", onInput: this.handleSearchInput, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, style: { opacity: this.open ? '1' : '0' } })),
|
|
1185
|
+
h("span", { class: "x-select-selection-item", style: {
|
|
1186
|
+
visibility: this.open && this.searchValue ? 'hidden' : 'visible',
|
|
1187
|
+
opacity: this.open && this.showSearch ? '0.4' : '1'
|
|
1188
|
+
} }, displayLabel),
|
|
1189
|
+
showPlaceholder && (h("span", { class: "x-select-selection-placeholder" }, this.placeholder)),
|
|
1190
|
+
];
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Main render method for the Select component.
|
|
1194
|
+
*
|
|
1195
|
+
* Flow:
|
|
1196
|
+
* 1. Calculates host classes based on props (size, mode, status, etc.).
|
|
1197
|
+
* 2. Renders the main wrapper.
|
|
1198
|
+
* 3. Renders the selector (single or multiple) inside the wrapper.
|
|
1199
|
+
* 4. Renders suffix icons (clear, arrow/loading).
|
|
1200
|
+
*
|
|
1201
|
+
* @returns JSX.Element
|
|
1202
|
+
*/
|
|
1203
|
+
render() {
|
|
1204
|
+
const hostClasses = {
|
|
1205
|
+
'x-select': true,
|
|
1206
|
+
'x-select-single': !this.isMultiple,
|
|
1207
|
+
'x-select-multiple': this.isMultiple,
|
|
1208
|
+
'x-select-open': this.open,
|
|
1209
|
+
'x-select-focused': this.focused,
|
|
1210
|
+
'x-select-disabled': this.disabled,
|
|
1211
|
+
'x-select-loading': this.loading,
|
|
1212
|
+
'x-select-show-search': this.showSearch || this.mode === 'tags',
|
|
1213
|
+
'x-select-allow-clear': this.allowClear,
|
|
1214
|
+
'x-select-borderless': !this.bordered,
|
|
1215
|
+
[`x-select-${this.size}`]: true,
|
|
1216
|
+
[`x-select-status-${this.status}`]: !!this.status,
|
|
1217
|
+
};
|
|
1218
|
+
return (h(Host, { key: '592a104db5de8006a1ad6fc50a85e3017748b0bc', class: hostClasses, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": String(this.open), "aria-disabled": String(this.disabled) }, h("div", { key: 'f766f29c9b6c2c35f353e64aef873e78980bdb15', class: {
|
|
1219
|
+
'x-select-wrapper': true,
|
|
1220
|
+
'disabled': this.disabled,
|
|
1221
|
+
}, part: "wrapper" }, h("div", { key: 'fc7a4a196080d652c8544222da6f5bf03ef15033', class: {
|
|
1222
|
+
'x-select-selector': true,
|
|
1223
|
+
'disabled': this.disabled,
|
|
1224
|
+
}, part: "selector", onClick: this.handleSelectorClick }, this.isMultiple ? this.renderMultipleSelector() : this.renderSingleSelector()), h("span", { key: '7a1f7574a4a91187935751f9cae38558cb26674d', class: "x-select-suffix" }, this.renderClearIcon(), this.renderArrowIcon()))));
|
|
1225
|
+
}
|
|
1226
|
+
static get is() { return "x-select"; }
|
|
1227
|
+
static get encapsulation() { return "shadow"; }
|
|
1228
|
+
static get originalStyleUrls() {
|
|
1229
|
+
return {
|
|
1230
|
+
"$": ["x-select.scss"]
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
static get styleUrls() {
|
|
1234
|
+
return {
|
|
1235
|
+
"$": ["x-select.css"]
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
static get properties() {
|
|
1239
|
+
return {
|
|
1240
|
+
"disabled": {
|
|
1241
|
+
"type": "boolean",
|
|
1242
|
+
"mutable": false,
|
|
1243
|
+
"complexType": {
|
|
1244
|
+
"original": "boolean",
|
|
1245
|
+
"resolved": "boolean",
|
|
1246
|
+
"references": {}
|
|
1247
|
+
},
|
|
1248
|
+
"required": false,
|
|
1249
|
+
"optional": false,
|
|
1250
|
+
"docs": {
|
|
1251
|
+
"tags": [{
|
|
1252
|
+
"name": "example",
|
|
1253
|
+
"text": "<x-select disabled></x-select>"
|
|
1254
|
+
}],
|
|
1255
|
+
"text": "Whether the select is disabled."
|
|
1256
|
+
},
|
|
1257
|
+
"getter": false,
|
|
1258
|
+
"setter": false,
|
|
1259
|
+
"reflect": false,
|
|
1260
|
+
"attribute": "disabled",
|
|
1261
|
+
"defaultValue": "false"
|
|
1262
|
+
},
|
|
1263
|
+
"mode": {
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"mutable": false,
|
|
1266
|
+
"complexType": {
|
|
1267
|
+
"original": "SelectMode",
|
|
1268
|
+
"resolved": "\"multiple\" | \"tags\"",
|
|
1269
|
+
"references": {
|
|
1270
|
+
"SelectMode": {
|
|
1271
|
+
"location": "import",
|
|
1272
|
+
"path": "./types",
|
|
1273
|
+
"id": "src/components/x-select/types.ts::SelectMode",
|
|
1274
|
+
"referenceLocation": "SelectMode"
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
"required": false,
|
|
1279
|
+
"optional": true,
|
|
1280
|
+
"docs": {
|
|
1281
|
+
"tags": [{
|
|
1282
|
+
"name": "example",
|
|
1283
|
+
"text": "<x-select mode=\"multiple\"></x-select>"
|
|
1284
|
+
}],
|
|
1285
|
+
"text": "The mode of select: 'multiple' | 'tags' | undefined (single)."
|
|
1286
|
+
},
|
|
1287
|
+
"getter": false,
|
|
1288
|
+
"setter": false,
|
|
1289
|
+
"reflect": false,
|
|
1290
|
+
"attribute": "mode"
|
|
1291
|
+
},
|
|
1292
|
+
"allowClear": {
|
|
1293
|
+
"type": "boolean",
|
|
1294
|
+
"mutable": false,
|
|
1295
|
+
"complexType": {
|
|
1296
|
+
"original": "boolean",
|
|
1297
|
+
"resolved": "boolean",
|
|
1298
|
+
"references": {}
|
|
1299
|
+
},
|
|
1300
|
+
"required": false,
|
|
1301
|
+
"optional": false,
|
|
1302
|
+
"docs": {
|
|
1303
|
+
"tags": [{
|
|
1304
|
+
"name": "example",
|
|
1305
|
+
"text": "<x-select allowClear></x-select>"
|
|
1306
|
+
}],
|
|
1307
|
+
"text": "Whether to show the clear button."
|
|
1308
|
+
},
|
|
1309
|
+
"getter": false,
|
|
1310
|
+
"setter": false,
|
|
1311
|
+
"reflect": false,
|
|
1312
|
+
"attribute": "allow-clear",
|
|
1313
|
+
"defaultValue": "false"
|
|
1314
|
+
},
|
|
1315
|
+
"showSearch": {
|
|
1316
|
+
"type": "boolean",
|
|
1317
|
+
"mutable": false,
|
|
1318
|
+
"complexType": {
|
|
1319
|
+
"original": "boolean",
|
|
1320
|
+
"resolved": "boolean",
|
|
1321
|
+
"references": {}
|
|
1322
|
+
},
|
|
1323
|
+
"required": false,
|
|
1324
|
+
"optional": false,
|
|
1325
|
+
"docs": {
|
|
1326
|
+
"tags": [{
|
|
1327
|
+
"name": "example",
|
|
1328
|
+
"text": "<x-select showSearch></x-select>"
|
|
1329
|
+
}],
|
|
1330
|
+
"text": "Whether to show search input."
|
|
1331
|
+
},
|
|
1332
|
+
"getter": false,
|
|
1333
|
+
"setter": false,
|
|
1334
|
+
"reflect": false,
|
|
1335
|
+
"attribute": "show-search",
|
|
1336
|
+
"defaultValue": "false"
|
|
1337
|
+
},
|
|
1338
|
+
"placeholder": {
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"mutable": false,
|
|
1341
|
+
"complexType": {
|
|
1342
|
+
"original": "string",
|
|
1343
|
+
"resolved": "string",
|
|
1344
|
+
"references": {}
|
|
1345
|
+
},
|
|
1346
|
+
"required": false,
|
|
1347
|
+
"optional": false,
|
|
1348
|
+
"docs": {
|
|
1349
|
+
"tags": [{
|
|
1350
|
+
"name": "example",
|
|
1351
|
+
"text": "<x-select placeholder=\"Choose one\"></x-select>"
|
|
1352
|
+
}],
|
|
1353
|
+
"text": "Placeholder text."
|
|
1354
|
+
},
|
|
1355
|
+
"getter": false,
|
|
1356
|
+
"setter": false,
|
|
1357
|
+
"reflect": false,
|
|
1358
|
+
"attribute": "placeholder",
|
|
1359
|
+
"defaultValue": "translate('Select.placeholder', {}, 'Please select')"
|
|
1360
|
+
},
|
|
1361
|
+
"size": {
|
|
1362
|
+
"type": "string",
|
|
1363
|
+
"mutable": false,
|
|
1364
|
+
"complexType": {
|
|
1365
|
+
"original": "SelectSize",
|
|
1366
|
+
"resolved": "\"large\" | \"middle\" | \"small\"",
|
|
1367
|
+
"references": {
|
|
1368
|
+
"SelectSize": {
|
|
1369
|
+
"location": "import",
|
|
1370
|
+
"path": "./types",
|
|
1371
|
+
"id": "src/components/x-select/types.ts::SelectSize",
|
|
1372
|
+
"referenceLocation": "SelectSize"
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
"required": false,
|
|
1377
|
+
"optional": false,
|
|
1378
|
+
"docs": {
|
|
1379
|
+
"tags": [{
|
|
1380
|
+
"name": "example",
|
|
1381
|
+
"text": "<x-select size=\"small\"></x-select>"
|
|
1382
|
+
}],
|
|
1383
|
+
"text": "Size of select: 'large' | 'middle' | 'small'."
|
|
1384
|
+
},
|
|
1385
|
+
"getter": false,
|
|
1386
|
+
"setter": false,
|
|
1387
|
+
"reflect": false,
|
|
1388
|
+
"attribute": "size",
|
|
1389
|
+
"defaultValue": "'middle'"
|
|
1390
|
+
},
|
|
1391
|
+
"value": {
|
|
1392
|
+
"type": "any",
|
|
1393
|
+
"mutable": true,
|
|
1394
|
+
"complexType": {
|
|
1395
|
+
"original": "SelectValue",
|
|
1396
|
+
"resolved": "(string | number)[] | LabeledValue | LabeledValue[] | number | string",
|
|
1397
|
+
"references": {
|
|
1398
|
+
"SelectValue": {
|
|
1399
|
+
"location": "import",
|
|
1400
|
+
"path": "./types",
|
|
1401
|
+
"id": "src/components/x-select/types.ts::SelectValue",
|
|
1402
|
+
"referenceLocation": "SelectValue"
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
"required": false,
|
|
1407
|
+
"optional": true,
|
|
1408
|
+
"docs": {
|
|
1409
|
+
"tags": [{
|
|
1410
|
+
"name": "example",
|
|
1411
|
+
"text": "<x-select value=\"a\"></x-select>"
|
|
1412
|
+
}],
|
|
1413
|
+
"text": "Current selected value."
|
|
1414
|
+
},
|
|
1415
|
+
"getter": false,
|
|
1416
|
+
"setter": false,
|
|
1417
|
+
"reflect": false,
|
|
1418
|
+
"attribute": "value"
|
|
1419
|
+
},
|
|
1420
|
+
"defaultValue": {
|
|
1421
|
+
"type": "any",
|
|
1422
|
+
"mutable": false,
|
|
1423
|
+
"complexType": {
|
|
1424
|
+
"original": "SelectValue",
|
|
1425
|
+
"resolved": "(string | number)[] | LabeledValue | LabeledValue[] | number | string",
|
|
1426
|
+
"references": {
|
|
1427
|
+
"SelectValue": {
|
|
1428
|
+
"location": "import",
|
|
1429
|
+
"path": "./types",
|
|
1430
|
+
"id": "src/components/x-select/types.ts::SelectValue",
|
|
1431
|
+
"referenceLocation": "SelectValue"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
"required": false,
|
|
1436
|
+
"optional": true,
|
|
1437
|
+
"docs": {
|
|
1438
|
+
"tags": [{
|
|
1439
|
+
"name": "example",
|
|
1440
|
+
"text": "<x-select defaultValue=\"a\"></x-select>"
|
|
1441
|
+
}],
|
|
1442
|
+
"text": "Default selected value."
|
|
1443
|
+
},
|
|
1444
|
+
"getter": false,
|
|
1445
|
+
"setter": false,
|
|
1446
|
+
"reflect": false,
|
|
1447
|
+
"attribute": "default-value"
|
|
1448
|
+
},
|
|
1449
|
+
"open": {
|
|
1450
|
+
"type": "boolean",
|
|
1451
|
+
"mutable": true,
|
|
1452
|
+
"complexType": {
|
|
1453
|
+
"original": "boolean",
|
|
1454
|
+
"resolved": "boolean",
|
|
1455
|
+
"references": {}
|
|
1456
|
+
},
|
|
1457
|
+
"required": false,
|
|
1458
|
+
"optional": false,
|
|
1459
|
+
"docs": {
|
|
1460
|
+
"tags": [{
|
|
1461
|
+
"name": "example",
|
|
1462
|
+
"text": "<x-select open></x-select>"
|
|
1463
|
+
}],
|
|
1464
|
+
"text": "Whether dropdown is open (controlled)."
|
|
1465
|
+
},
|
|
1466
|
+
"getter": false,
|
|
1467
|
+
"setter": false,
|
|
1468
|
+
"reflect": false,
|
|
1469
|
+
"attribute": "open",
|
|
1470
|
+
"defaultValue": "false"
|
|
1471
|
+
},
|
|
1472
|
+
"loading": {
|
|
1473
|
+
"type": "boolean",
|
|
1474
|
+
"mutable": false,
|
|
1475
|
+
"complexType": {
|
|
1476
|
+
"original": "boolean",
|
|
1477
|
+
"resolved": "boolean",
|
|
1478
|
+
"references": {}
|
|
1479
|
+
},
|
|
1480
|
+
"required": false,
|
|
1481
|
+
"optional": false,
|
|
1482
|
+
"docs": {
|
|
1483
|
+
"tags": [{
|
|
1484
|
+
"name": "example",
|
|
1485
|
+
"text": "<x-select loading></x-select>"
|
|
1486
|
+
}],
|
|
1487
|
+
"text": "Whether to show loading spinner."
|
|
1488
|
+
},
|
|
1489
|
+
"getter": false,
|
|
1490
|
+
"setter": false,
|
|
1491
|
+
"reflect": false,
|
|
1492
|
+
"attribute": "loading",
|
|
1493
|
+
"defaultValue": "false"
|
|
1494
|
+
},
|
|
1495
|
+
"maxTagCount": {
|
|
1496
|
+
"type": "any",
|
|
1497
|
+
"mutable": false,
|
|
1498
|
+
"complexType": {
|
|
1499
|
+
"original": "number | 'responsive'",
|
|
1500
|
+
"resolved": "\"responsive\" | number",
|
|
1501
|
+
"references": {}
|
|
1502
|
+
},
|
|
1503
|
+
"required": false,
|
|
1504
|
+
"optional": true,
|
|
1505
|
+
"docs": {
|
|
1506
|
+
"tags": [{
|
|
1507
|
+
"name": "example",
|
|
1508
|
+
"text": "<x-select mode=\"multiple\" maxTagCount={2}></x-select>"
|
|
1509
|
+
}],
|
|
1510
|
+
"text": "Maximum number of tags to display in multiple mode."
|
|
1511
|
+
},
|
|
1512
|
+
"getter": false,
|
|
1513
|
+
"setter": false,
|
|
1514
|
+
"reflect": false,
|
|
1515
|
+
"attribute": "max-tag-count"
|
|
1516
|
+
},
|
|
1517
|
+
"maxTagPlaceholder": {
|
|
1518
|
+
"type": "string",
|
|
1519
|
+
"mutable": false,
|
|
1520
|
+
"complexType": {
|
|
1521
|
+
"original": "string",
|
|
1522
|
+
"resolved": "string",
|
|
1523
|
+
"references": {}
|
|
1524
|
+
},
|
|
1525
|
+
"required": false,
|
|
1526
|
+
"optional": true,
|
|
1527
|
+
"docs": {
|
|
1528
|
+
"tags": [{
|
|
1529
|
+
"name": "example",
|
|
1530
|
+
"text": "<x-select mode=\"multiple\" maxTagPlaceholder=\"+ more\"></x-select>"
|
|
1531
|
+
}],
|
|
1532
|
+
"text": "Placeholder for hidden tags."
|
|
1533
|
+
},
|
|
1534
|
+
"getter": false,
|
|
1535
|
+
"setter": false,
|
|
1536
|
+
"reflect": false,
|
|
1537
|
+
"attribute": "max-tag-placeholder"
|
|
1538
|
+
},
|
|
1539
|
+
"maxTagTextLength": {
|
|
1540
|
+
"type": "number",
|
|
1541
|
+
"mutable": false,
|
|
1542
|
+
"complexType": {
|
|
1543
|
+
"original": "number",
|
|
1544
|
+
"resolved": "number",
|
|
1545
|
+
"references": {}
|
|
1546
|
+
},
|
|
1547
|
+
"required": false,
|
|
1548
|
+
"optional": true,
|
|
1549
|
+
"docs": {
|
|
1550
|
+
"tags": [{
|
|
1551
|
+
"name": "example",
|
|
1552
|
+
"text": "<x-select mode=\"multiple\" maxTagTextLength={8}></x-select>"
|
|
1553
|
+
}],
|
|
1554
|
+
"text": "Maximum length of tag text to display."
|
|
1555
|
+
},
|
|
1556
|
+
"getter": false,
|
|
1557
|
+
"setter": false,
|
|
1558
|
+
"reflect": false,
|
|
1559
|
+
"attribute": "max-tag-text-length"
|
|
1560
|
+
},
|
|
1561
|
+
"bordered": {
|
|
1562
|
+
"type": "boolean",
|
|
1563
|
+
"mutable": false,
|
|
1564
|
+
"complexType": {
|
|
1565
|
+
"original": "boolean",
|
|
1566
|
+
"resolved": "boolean",
|
|
1567
|
+
"references": {}
|
|
1568
|
+
},
|
|
1569
|
+
"required": false,
|
|
1570
|
+
"optional": false,
|
|
1571
|
+
"docs": {
|
|
1572
|
+
"tags": [{
|
|
1573
|
+
"name": "example",
|
|
1574
|
+
"text": "<x-select bordered={false}></x-select>"
|
|
1575
|
+
}],
|
|
1576
|
+
"text": "Whether to show border."
|
|
1577
|
+
},
|
|
1578
|
+
"getter": false,
|
|
1579
|
+
"setter": false,
|
|
1580
|
+
"reflect": false,
|
|
1581
|
+
"attribute": "bordered",
|
|
1582
|
+
"defaultValue": "true"
|
|
1583
|
+
},
|
|
1584
|
+
"status": {
|
|
1585
|
+
"type": "string",
|
|
1586
|
+
"mutable": false,
|
|
1587
|
+
"complexType": {
|
|
1588
|
+
"original": "SelectStatus",
|
|
1589
|
+
"resolved": "\"error\" | \"warning\"",
|
|
1590
|
+
"references": {
|
|
1591
|
+
"SelectStatus": {
|
|
1592
|
+
"location": "import",
|
|
1593
|
+
"path": "./types",
|
|
1594
|
+
"id": "src/components/x-select/types.ts::SelectStatus",
|
|
1595
|
+
"referenceLocation": "SelectStatus"
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
"required": false,
|
|
1600
|
+
"optional": true,
|
|
1601
|
+
"docs": {
|
|
1602
|
+
"tags": [{
|
|
1603
|
+
"name": "example",
|
|
1604
|
+
"text": "<x-select status=\"error\"></x-select>"
|
|
1605
|
+
}],
|
|
1606
|
+
"text": "Validation status: 'error' | 'warning'."
|
|
1607
|
+
},
|
|
1608
|
+
"getter": false,
|
|
1609
|
+
"setter": false,
|
|
1610
|
+
"reflect": false,
|
|
1611
|
+
"attribute": "status"
|
|
1612
|
+
},
|
|
1613
|
+
"placement": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"mutable": false,
|
|
1616
|
+
"complexType": {
|
|
1617
|
+
"original": "SelectPlacement",
|
|
1618
|
+
"resolved": "\"bottomLeft\" | \"bottomRight\" | \"topLeft\" | \"topRight\"",
|
|
1619
|
+
"references": {
|
|
1620
|
+
"SelectPlacement": {
|
|
1621
|
+
"location": "import",
|
|
1622
|
+
"path": "./types",
|
|
1623
|
+
"id": "src/components/x-select/types.ts::SelectPlacement",
|
|
1624
|
+
"referenceLocation": "SelectPlacement"
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
},
|
|
1628
|
+
"required": false,
|
|
1629
|
+
"optional": false,
|
|
1630
|
+
"docs": {
|
|
1631
|
+
"tags": [{
|
|
1632
|
+
"name": "example",
|
|
1633
|
+
"text": "<x-select placement=\"bottomRight\"></x-select>"
|
|
1634
|
+
}],
|
|
1635
|
+
"text": "Dropdown placement."
|
|
1636
|
+
},
|
|
1637
|
+
"getter": false,
|
|
1638
|
+
"setter": false,
|
|
1639
|
+
"reflect": false,
|
|
1640
|
+
"attribute": "placement",
|
|
1641
|
+
"defaultValue": "'bottomLeft'"
|
|
1642
|
+
},
|
|
1643
|
+
"labelInValue": {
|
|
1644
|
+
"type": "boolean",
|
|
1645
|
+
"mutable": false,
|
|
1646
|
+
"complexType": {
|
|
1647
|
+
"original": "boolean",
|
|
1648
|
+
"resolved": "boolean",
|
|
1649
|
+
"references": {}
|
|
1650
|
+
},
|
|
1651
|
+
"required": false,
|
|
1652
|
+
"optional": false,
|
|
1653
|
+
"docs": {
|
|
1654
|
+
"tags": [{
|
|
1655
|
+
"name": "example",
|
|
1656
|
+
"text": "<x-select labelInValue></x-select>"
|
|
1657
|
+
}],
|
|
1658
|
+
"text": "Whether to include label in value object."
|
|
1659
|
+
},
|
|
1660
|
+
"getter": false,
|
|
1661
|
+
"setter": false,
|
|
1662
|
+
"reflect": false,
|
|
1663
|
+
"attribute": "label-in-value",
|
|
1664
|
+
"defaultValue": "false"
|
|
1665
|
+
},
|
|
1666
|
+
"filterOption": {
|
|
1667
|
+
"type": "boolean",
|
|
1668
|
+
"mutable": false,
|
|
1669
|
+
"complexType": {
|
|
1670
|
+
"original": "boolean | ((inputValue: string, option: SelectOption) => boolean)",
|
|
1671
|
+
"resolved": "((inputValue: string, option: SelectOption) => boolean) | boolean",
|
|
1672
|
+
"references": {
|
|
1673
|
+
"SelectOption": {
|
|
1674
|
+
"location": "import",
|
|
1675
|
+
"path": "./types",
|
|
1676
|
+
"id": "src/components/x-select/types.ts::SelectOption",
|
|
1677
|
+
"referenceLocation": "SelectOption"
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
"required": false,
|
|
1682
|
+
"optional": false,
|
|
1683
|
+
"docs": {
|
|
1684
|
+
"tags": [{
|
|
1685
|
+
"name": "example",
|
|
1686
|
+
"text": "<x-select filterOption={(input, opt) => opt.label.startsWith(input)}></x-select>"
|
|
1687
|
+
}],
|
|
1688
|
+
"text": "Custom filter function for search."
|
|
1689
|
+
},
|
|
1690
|
+
"getter": false,
|
|
1691
|
+
"setter": false,
|
|
1692
|
+
"reflect": false,
|
|
1693
|
+
"attribute": "filter-option",
|
|
1694
|
+
"defaultValue": "true"
|
|
1695
|
+
},
|
|
1696
|
+
"filterSort": {
|
|
1697
|
+
"type": "unknown",
|
|
1698
|
+
"mutable": false,
|
|
1699
|
+
"complexType": {
|
|
1700
|
+
"original": "(optionA: SelectOption, optionB: SelectOption) => number",
|
|
1701
|
+
"resolved": "(optionA: SelectOption, optionB: SelectOption) => number",
|
|
1702
|
+
"references": {
|
|
1703
|
+
"SelectOption": {
|
|
1704
|
+
"location": "import",
|
|
1705
|
+
"path": "./types",
|
|
1706
|
+
"id": "src/components/x-select/types.ts::SelectOption",
|
|
1707
|
+
"referenceLocation": "SelectOption"
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
"required": false,
|
|
1712
|
+
"optional": true,
|
|
1713
|
+
"docs": {
|
|
1714
|
+
"tags": [{
|
|
1715
|
+
"name": "example",
|
|
1716
|
+
"text": "<x-select filterSort={(a, b) => a.label.localeCompare(b.label)}></x-select>"
|
|
1717
|
+
}],
|
|
1718
|
+
"text": "Sort function for filtered options."
|
|
1719
|
+
},
|
|
1720
|
+
"getter": false,
|
|
1721
|
+
"setter": false
|
|
1722
|
+
},
|
|
1723
|
+
"notFoundContent": {
|
|
1724
|
+
"type": "string",
|
|
1725
|
+
"mutable": false,
|
|
1726
|
+
"complexType": {
|
|
1727
|
+
"original": "string",
|
|
1728
|
+
"resolved": "string",
|
|
1729
|
+
"references": {}
|
|
1730
|
+
},
|
|
1731
|
+
"required": false,
|
|
1732
|
+
"optional": false,
|
|
1733
|
+
"docs": {
|
|
1734
|
+
"tags": [{
|
|
1735
|
+
"name": "example",
|
|
1736
|
+
"text": "<x-select notFoundContent=\"Empty\"></x-select>"
|
|
1737
|
+
}],
|
|
1738
|
+
"text": "Text to show when no options match search."
|
|
1739
|
+
},
|
|
1740
|
+
"getter": false,
|
|
1741
|
+
"setter": false,
|
|
1742
|
+
"reflect": false,
|
|
1743
|
+
"attribute": "not-found-content",
|
|
1744
|
+
"defaultValue": "translate('Select.notFoundContent', {}, 'No data')"
|
|
1745
|
+
},
|
|
1746
|
+
"autofocus": {
|
|
1747
|
+
"type": "boolean",
|
|
1748
|
+
"mutable": false,
|
|
1749
|
+
"complexType": {
|
|
1750
|
+
"original": "boolean",
|
|
1751
|
+
"resolved": "boolean",
|
|
1752
|
+
"references": {}
|
|
1753
|
+
},
|
|
1754
|
+
"required": false,
|
|
1755
|
+
"optional": false,
|
|
1756
|
+
"docs": {
|
|
1757
|
+
"tags": [{
|
|
1758
|
+
"name": "example",
|
|
1759
|
+
"text": "<x-select autofocus></x-select>"
|
|
1760
|
+
}],
|
|
1761
|
+
"text": "Whether auto focus on mount."
|
|
1762
|
+
},
|
|
1763
|
+
"getter": false,
|
|
1764
|
+
"setter": false,
|
|
1765
|
+
"reflect": false,
|
|
1766
|
+
"attribute": "autofocus",
|
|
1767
|
+
"defaultValue": "false"
|
|
1768
|
+
},
|
|
1769
|
+
"inputId": {
|
|
1770
|
+
"type": "string",
|
|
1771
|
+
"mutable": false,
|
|
1772
|
+
"complexType": {
|
|
1773
|
+
"original": "string",
|
|
1774
|
+
"resolved": "string",
|
|
1775
|
+
"references": {}
|
|
1776
|
+
},
|
|
1777
|
+
"required": false,
|
|
1778
|
+
"optional": true,
|
|
1779
|
+
"docs": {
|
|
1780
|
+
"tags": [{
|
|
1781
|
+
"name": "example",
|
|
1782
|
+
"text": "<x-select inputId=\"country\"></x-select>"
|
|
1783
|
+
}],
|
|
1784
|
+
"text": "ID for the input element."
|
|
1785
|
+
},
|
|
1786
|
+
"getter": false,
|
|
1787
|
+
"setter": false,
|
|
1788
|
+
"reflect": false,
|
|
1789
|
+
"attribute": "input-id"
|
|
1790
|
+
},
|
|
1791
|
+
"name": {
|
|
1792
|
+
"type": "string",
|
|
1793
|
+
"mutable": false,
|
|
1794
|
+
"complexType": {
|
|
1795
|
+
"original": "string",
|
|
1796
|
+
"resolved": "string",
|
|
1797
|
+
"references": {}
|
|
1798
|
+
},
|
|
1799
|
+
"required": false,
|
|
1800
|
+
"optional": true,
|
|
1801
|
+
"docs": {
|
|
1802
|
+
"tags": [{
|
|
1803
|
+
"name": "example",
|
|
1804
|
+
"text": "<x-select name=\"country\"></x-select>"
|
|
1805
|
+
}],
|
|
1806
|
+
"text": "Name attribute for form."
|
|
1807
|
+
},
|
|
1808
|
+
"getter": false,
|
|
1809
|
+
"setter": false,
|
|
1810
|
+
"reflect": false,
|
|
1811
|
+
"attribute": "name"
|
|
1812
|
+
},
|
|
1813
|
+
"showAction": {
|
|
1814
|
+
"type": "unknown",
|
|
1815
|
+
"mutable": false,
|
|
1816
|
+
"complexType": {
|
|
1817
|
+
"original": "SelectShowAction[]",
|
|
1818
|
+
"resolved": "SelectShowAction[]",
|
|
1819
|
+
"references": {
|
|
1820
|
+
"SelectShowAction": {
|
|
1821
|
+
"location": "import",
|
|
1822
|
+
"path": "./types",
|
|
1823
|
+
"id": "src/components/x-select/types.ts::SelectShowAction",
|
|
1824
|
+
"referenceLocation": "SelectShowAction"
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
"required": false,
|
|
1829
|
+
"optional": false,
|
|
1830
|
+
"docs": {
|
|
1831
|
+
"tags": [{
|
|
1832
|
+
"name": "example",
|
|
1833
|
+
"text": "<x-select showAction={['click','focus']}></x-select>"
|
|
1834
|
+
}],
|
|
1835
|
+
"text": "Trigger actions to open dropdown."
|
|
1836
|
+
},
|
|
1837
|
+
"getter": false,
|
|
1838
|
+
"setter": false,
|
|
1839
|
+
"defaultValue": "['click']"
|
|
1840
|
+
},
|
|
1841
|
+
"dropdownClassName": {
|
|
1842
|
+
"type": "string",
|
|
1843
|
+
"mutable": false,
|
|
1844
|
+
"complexType": {
|
|
1845
|
+
"original": "string",
|
|
1846
|
+
"resolved": "string",
|
|
1847
|
+
"references": {}
|
|
1848
|
+
},
|
|
1849
|
+
"required": false,
|
|
1850
|
+
"optional": true,
|
|
1851
|
+
"docs": {
|
|
1852
|
+
"tags": [{
|
|
1853
|
+
"name": "example",
|
|
1854
|
+
"text": "<x-select dropdownClassName=\"my-select-dropdown\"></x-select>"
|
|
1855
|
+
}],
|
|
1856
|
+
"text": "Custom dropdown class."
|
|
1857
|
+
},
|
|
1858
|
+
"getter": false,
|
|
1859
|
+
"setter": false,
|
|
1860
|
+
"reflect": false,
|
|
1861
|
+
"attribute": "dropdown-class-name"
|
|
1862
|
+
},
|
|
1863
|
+
"dropdownStyle": {
|
|
1864
|
+
"type": "unknown",
|
|
1865
|
+
"mutable": false,
|
|
1866
|
+
"complexType": {
|
|
1867
|
+
"original": "{ [key: string]: string }",
|
|
1868
|
+
"resolved": "{ [key: string]: string; }",
|
|
1869
|
+
"references": {}
|
|
1870
|
+
},
|
|
1871
|
+
"required": false,
|
|
1872
|
+
"optional": true,
|
|
1873
|
+
"docs": {
|
|
1874
|
+
"tags": [{
|
|
1875
|
+
"name": "example",
|
|
1876
|
+
"text": "<x-select dropdownStyle={{ minWidth: '240px' }}></x-select>"
|
|
1877
|
+
}],
|
|
1878
|
+
"text": "Custom dropdown style."
|
|
1879
|
+
},
|
|
1880
|
+
"getter": false,
|
|
1881
|
+
"setter": false
|
|
1882
|
+
},
|
|
1883
|
+
"dropdownMatchSelectWidth": {
|
|
1884
|
+
"type": "any",
|
|
1885
|
+
"mutable": false,
|
|
1886
|
+
"complexType": {
|
|
1887
|
+
"original": "boolean | number",
|
|
1888
|
+
"resolved": "boolean | number",
|
|
1889
|
+
"references": {}
|
|
1890
|
+
},
|
|
1891
|
+
"required": false,
|
|
1892
|
+
"optional": false,
|
|
1893
|
+
"docs": {
|
|
1894
|
+
"tags": [{
|
|
1895
|
+
"name": "example",
|
|
1896
|
+
"text": "<x-select dropdownMatchSelectWidth={false}></x-select>"
|
|
1897
|
+
}],
|
|
1898
|
+
"text": "Whether dropdown matches selector width."
|
|
1899
|
+
},
|
|
1900
|
+
"getter": false,
|
|
1901
|
+
"setter": false,
|
|
1902
|
+
"reflect": false,
|
|
1903
|
+
"attribute": "dropdown-match-select-width",
|
|
1904
|
+
"defaultValue": "true"
|
|
1905
|
+
},
|
|
1906
|
+
"listHeight": {
|
|
1907
|
+
"type": "number",
|
|
1908
|
+
"mutable": false,
|
|
1909
|
+
"complexType": {
|
|
1910
|
+
"original": "number",
|
|
1911
|
+
"resolved": "number",
|
|
1912
|
+
"references": {}
|
|
1913
|
+
},
|
|
1914
|
+
"required": false,
|
|
1915
|
+
"optional": false,
|
|
1916
|
+
"docs": {
|
|
1917
|
+
"tags": [{
|
|
1918
|
+
"name": "example",
|
|
1919
|
+
"text": "<x-select listHeight={300}></x-select>"
|
|
1920
|
+
}],
|
|
1921
|
+
"text": "Height of dropdown list."
|
|
1922
|
+
},
|
|
1923
|
+
"getter": false,
|
|
1924
|
+
"setter": false,
|
|
1925
|
+
"reflect": false,
|
|
1926
|
+
"attribute": "list-height",
|
|
1927
|
+
"defaultValue": "256"
|
|
1928
|
+
},
|
|
1929
|
+
"pageSize": {
|
|
1930
|
+
"type": "number",
|
|
1931
|
+
"mutable": false,
|
|
1932
|
+
"complexType": {
|
|
1933
|
+
"original": "number",
|
|
1934
|
+
"resolved": "number",
|
|
1935
|
+
"references": {}
|
|
1936
|
+
},
|
|
1937
|
+
"required": false,
|
|
1938
|
+
"optional": false,
|
|
1939
|
+
"docs": {
|
|
1940
|
+
"tags": [{
|
|
1941
|
+
"name": "example",
|
|
1942
|
+
"text": "<x-select pageSize={50}></x-select>"
|
|
1943
|
+
}],
|
|
1944
|
+
"text": "Number of items to render initially and per scroll."
|
|
1945
|
+
},
|
|
1946
|
+
"getter": false,
|
|
1947
|
+
"setter": false,
|
|
1948
|
+
"reflect": false,
|
|
1949
|
+
"attribute": "page-size",
|
|
1950
|
+
"defaultValue": "100"
|
|
1951
|
+
},
|
|
1952
|
+
"options": {
|
|
1953
|
+
"type": "unknown",
|
|
1954
|
+
"mutable": false,
|
|
1955
|
+
"complexType": {
|
|
1956
|
+
"original": "SelectOptionType[]",
|
|
1957
|
+
"resolved": "SelectOptionType[]",
|
|
1958
|
+
"references": {
|
|
1959
|
+
"SelectOptionType": {
|
|
1960
|
+
"location": "import",
|
|
1961
|
+
"path": "./types",
|
|
1962
|
+
"id": "src/components/x-select/types.ts::SelectOptionType",
|
|
1963
|
+
"referenceLocation": "SelectOptionType"
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
"required": false,
|
|
1968
|
+
"optional": true,
|
|
1969
|
+
"docs": {
|
|
1970
|
+
"tags": [{
|
|
1971
|
+
"name": "example",
|
|
1972
|
+
"text": "<x-select options={[{ value: 'a', label: 'A' }]}></x-select>"
|
|
1973
|
+
}],
|
|
1974
|
+
"text": "Options data, use this instead of x-select-option children. Supports SelectOption and OptionGroup."
|
|
1975
|
+
},
|
|
1976
|
+
"getter": false,
|
|
1977
|
+
"setter": false
|
|
1978
|
+
}
|
|
1979
|
+
};
|
|
1980
|
+
}
|
|
1981
|
+
static get states() {
|
|
1982
|
+
return {
|
|
1983
|
+
"searchValue": {},
|
|
1984
|
+
"selectedOptions": {},
|
|
1985
|
+
"focused": {},
|
|
1986
|
+
"activeIndex": {},
|
|
1987
|
+
"internalOptions": {},
|
|
1988
|
+
"visibleCount": {}
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
static get events() {
|
|
1992
|
+
return [{
|
|
1993
|
+
"method": "xChange",
|
|
1994
|
+
"name": "xChange",
|
|
1995
|
+
"bubbles": true,
|
|
1996
|
+
"cancelable": true,
|
|
1997
|
+
"composed": true,
|
|
1998
|
+
"docs": {
|
|
1999
|
+
"tags": [{
|
|
2000
|
+
"name": "example",
|
|
2001
|
+
"text": "<x-select onXChange={(ev) => console.log(ev.detail)}></x-select>"
|
|
2002
|
+
}],
|
|
2003
|
+
"text": "Emitted when value changes."
|
|
2004
|
+
},
|
|
2005
|
+
"complexType": {
|
|
2006
|
+
"original": "SelectChangeEventDetail",
|
|
2007
|
+
"resolved": "SelectChangeEventDetail",
|
|
2008
|
+
"references": {
|
|
2009
|
+
"SelectChangeEventDetail": {
|
|
2010
|
+
"location": "import",
|
|
2011
|
+
"path": "./types",
|
|
2012
|
+
"id": "src/components/x-select/types.ts::SelectChangeEventDetail",
|
|
2013
|
+
"referenceLocation": "SelectChangeEventDetail"
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}, {
|
|
2018
|
+
"method": "xSearch",
|
|
2019
|
+
"name": "xSearch",
|
|
2020
|
+
"bubbles": true,
|
|
2021
|
+
"cancelable": true,
|
|
2022
|
+
"composed": true,
|
|
2023
|
+
"docs": {
|
|
2024
|
+
"tags": [{
|
|
2025
|
+
"name": "example",
|
|
2026
|
+
"text": "<x-select onXSearch={(ev) => console.log(ev.detail)}></x-select>"
|
|
2027
|
+
}],
|
|
2028
|
+
"text": "Emitted when search value changes."
|
|
2029
|
+
},
|
|
2030
|
+
"complexType": {
|
|
2031
|
+
"original": "string",
|
|
2032
|
+
"resolved": "string",
|
|
2033
|
+
"references": {}
|
|
2034
|
+
}
|
|
2035
|
+
}, {
|
|
2036
|
+
"method": "xDropdownVisibleChange",
|
|
2037
|
+
"name": "xDropdownVisibleChange",
|
|
2038
|
+
"bubbles": true,
|
|
2039
|
+
"cancelable": true,
|
|
2040
|
+
"composed": true,
|
|
2041
|
+
"docs": {
|
|
2042
|
+
"tags": [{
|
|
2043
|
+
"name": "example",
|
|
2044
|
+
"text": "<x-select onXDropdownVisibleChange={(ev) => console.log(ev.detail)}></x-select>"
|
|
2045
|
+
}],
|
|
2046
|
+
"text": "Emitted when dropdown opens/closes."
|
|
2047
|
+
},
|
|
2048
|
+
"complexType": {
|
|
2049
|
+
"original": "boolean",
|
|
2050
|
+
"resolved": "boolean",
|
|
2051
|
+
"references": {}
|
|
2052
|
+
}
|
|
2053
|
+
}, {
|
|
2054
|
+
"method": "xBlur",
|
|
2055
|
+
"name": "xBlur",
|
|
2056
|
+
"bubbles": true,
|
|
2057
|
+
"cancelable": true,
|
|
2058
|
+
"composed": true,
|
|
2059
|
+
"docs": {
|
|
2060
|
+
"tags": [{
|
|
2061
|
+
"name": "example",
|
|
2062
|
+
"text": "<x-select onXBlur={(ev) => console.log(ev)}></x-select>"
|
|
2063
|
+
}],
|
|
2064
|
+
"text": "Emitted on blur."
|
|
2065
|
+
},
|
|
2066
|
+
"complexType": {
|
|
2067
|
+
"original": "FocusEvent",
|
|
2068
|
+
"resolved": "FocusEvent",
|
|
2069
|
+
"references": {
|
|
2070
|
+
"FocusEvent": {
|
|
2071
|
+
"location": "global",
|
|
2072
|
+
"id": "global::FocusEvent"
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
}, {
|
|
2077
|
+
"method": "xFocus",
|
|
2078
|
+
"name": "xFocus",
|
|
2079
|
+
"bubbles": true,
|
|
2080
|
+
"cancelable": true,
|
|
2081
|
+
"composed": true,
|
|
2082
|
+
"docs": {
|
|
2083
|
+
"tags": [{
|
|
2084
|
+
"name": "example",
|
|
2085
|
+
"text": "<x-select onXFocus={(ev) => console.log(ev)}></x-select>"
|
|
2086
|
+
}],
|
|
2087
|
+
"text": "Emitted on focus."
|
|
2088
|
+
},
|
|
2089
|
+
"complexType": {
|
|
2090
|
+
"original": "FocusEvent",
|
|
2091
|
+
"resolved": "FocusEvent",
|
|
2092
|
+
"references": {
|
|
2093
|
+
"FocusEvent": {
|
|
2094
|
+
"location": "global",
|
|
2095
|
+
"id": "global::FocusEvent"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}, {
|
|
2100
|
+
"method": "xClear",
|
|
2101
|
+
"name": "xClear",
|
|
2102
|
+
"bubbles": true,
|
|
2103
|
+
"cancelable": true,
|
|
2104
|
+
"composed": true,
|
|
2105
|
+
"docs": {
|
|
2106
|
+
"tags": [{
|
|
2107
|
+
"name": "example",
|
|
2108
|
+
"text": "<x-select onXClear={() => {}}></x-select>"
|
|
2109
|
+
}],
|
|
2110
|
+
"text": "Emitted when clear button is clicked."
|
|
2111
|
+
},
|
|
2112
|
+
"complexType": {
|
|
2113
|
+
"original": "void",
|
|
2114
|
+
"resolved": "void",
|
|
2115
|
+
"references": {}
|
|
2116
|
+
}
|
|
2117
|
+
}, {
|
|
2118
|
+
"method": "xDeselect",
|
|
2119
|
+
"name": "xDeselect",
|
|
2120
|
+
"bubbles": true,
|
|
2121
|
+
"cancelable": true,
|
|
2122
|
+
"composed": true,
|
|
2123
|
+
"docs": {
|
|
2124
|
+
"tags": [{
|
|
2125
|
+
"name": "example",
|
|
2126
|
+
"text": "<x-select onXDeselect={(ev) => console.log(ev.detail)}></x-select>"
|
|
2127
|
+
}],
|
|
2128
|
+
"text": "Emitted when a tag is removed."
|
|
2129
|
+
},
|
|
2130
|
+
"complexType": {
|
|
2131
|
+
"original": "SelectOption",
|
|
2132
|
+
"resolved": "SelectOption",
|
|
2133
|
+
"references": {
|
|
2134
|
+
"SelectOption": {
|
|
2135
|
+
"location": "import",
|
|
2136
|
+
"path": "./types",
|
|
2137
|
+
"id": "src/components/x-select/types.ts::SelectOption",
|
|
2138
|
+
"referenceLocation": "SelectOption"
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}, {
|
|
2143
|
+
"method": "xSelect",
|
|
2144
|
+
"name": "xSelect",
|
|
2145
|
+
"bubbles": true,
|
|
2146
|
+
"cancelable": true,
|
|
2147
|
+
"composed": true,
|
|
2148
|
+
"docs": {
|
|
2149
|
+
"tags": [{
|
|
2150
|
+
"name": "example",
|
|
2151
|
+
"text": "<x-select onXSelect={(ev) => console.log(ev.detail)}></x-select>"
|
|
2152
|
+
}],
|
|
2153
|
+
"text": "Emitted when an option is selected."
|
|
2154
|
+
},
|
|
2155
|
+
"complexType": {
|
|
2156
|
+
"original": "SelectOption",
|
|
2157
|
+
"resolved": "SelectOption",
|
|
2158
|
+
"references": {
|
|
2159
|
+
"SelectOption": {
|
|
2160
|
+
"location": "import",
|
|
2161
|
+
"path": "./types",
|
|
2162
|
+
"id": "src/components/x-select/types.ts::SelectOption",
|
|
2163
|
+
"referenceLocation": "SelectOption"
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
}];
|
|
2168
|
+
}
|
|
2169
|
+
static get methods() {
|
|
2170
|
+
return {
|
|
2171
|
+
"setFocus": {
|
|
2172
|
+
"complexType": {
|
|
2173
|
+
"signature": "() => Promise<void>",
|
|
2174
|
+
"parameters": [],
|
|
2175
|
+
"references": {
|
|
2176
|
+
"Promise": {
|
|
2177
|
+
"location": "global",
|
|
2178
|
+
"id": "global::Promise"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
"return": "Promise<void>"
|
|
2182
|
+
},
|
|
2183
|
+
"docs": {
|
|
2184
|
+
"text": "Focus the select input.",
|
|
2185
|
+
"tags": [{
|
|
2186
|
+
"name": "returns",
|
|
2187
|
+
"text": "Promise<void>"
|
|
2188
|
+
}, {
|
|
2189
|
+
"name": "example",
|
|
2190
|
+
"text": "await el.setFocus()"
|
|
2191
|
+
}]
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"setBlur": {
|
|
2195
|
+
"complexType": {
|
|
2196
|
+
"signature": "() => Promise<void>",
|
|
2197
|
+
"parameters": [],
|
|
2198
|
+
"references": {
|
|
2199
|
+
"Promise": {
|
|
2200
|
+
"location": "global",
|
|
2201
|
+
"id": "global::Promise"
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2204
|
+
"return": "Promise<void>"
|
|
2205
|
+
},
|
|
2206
|
+
"docs": {
|
|
2207
|
+
"text": "Blur the select input.",
|
|
2208
|
+
"tags": [{
|
|
2209
|
+
"name": "returns",
|
|
2210
|
+
"text": "Promise<void>"
|
|
2211
|
+
}, {
|
|
2212
|
+
"name": "example",
|
|
2213
|
+
"text": "await el.setBlur()"
|
|
2214
|
+
}]
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
static get elementRef() { return "el"; }
|
|
2220
|
+
static get watchers() {
|
|
2221
|
+
return [{
|
|
2222
|
+
"propName": "value",
|
|
2223
|
+
"methodName": "onValueChange"
|
|
2224
|
+
}, {
|
|
2225
|
+
"propName": "open",
|
|
2226
|
+
"methodName": "onOpenChange"
|
|
2227
|
+
}, {
|
|
2228
|
+
"propName": "options",
|
|
2229
|
+
"methodName": "onOptionsChange"
|
|
2230
|
+
}];
|
|
2231
|
+
}
|
|
2232
|
+
static get listeners() {
|
|
2233
|
+
return [{
|
|
2234
|
+
"name": "click",
|
|
2235
|
+
"method": "handleWindowClick",
|
|
2236
|
+
"target": "window",
|
|
2237
|
+
"capture": false,
|
|
2238
|
+
"passive": false
|
|
2239
|
+
}, {
|
|
2240
|
+
"name": "keydown",
|
|
2241
|
+
"method": "handleKeydown",
|
|
2242
|
+
"target": undefined,
|
|
2243
|
+
"capture": false,
|
|
2244
|
+
"passive": false
|
|
2245
|
+
}];
|
|
2246
|
+
}
|
|
2247
|
+
}
|