@xlabs-store/core 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/components/index.d.ts +0 -0
- package/components/index.js +1 -1
- package/components/p--BbMiBIf.js +1 -0
- package/components/p-4BROAJ-M.js +1 -0
- package/components/p-9T3IQVUX.js +1 -0
- package/components/p-B1Y8S28h.js +1 -0
- package/components/p-B5VsEsBC.js +1 -0
- package/components/p-B7SdFSQT.js +1 -0
- package/components/p-B97Hj_bs.js +1 -0
- package/components/p-BBTo0Tfc.js +1 -0
- package/components/p-BCuFZ3xx.js +1 -0
- package/components/p-BFPoQ179.js +1 -0
- package/components/p-BGNOiTqa.js +1 -0
- package/components/p-BLqwG7xa.js +1 -0
- package/components/p-BPaLHj9P.js +1 -0
- package/components/p-BQtB82ld.js +1 -0
- package/components/p-BSLE4EQn.js +1 -0
- package/components/{p-DcRlYBIl.js → p-BUXxKr3t.js} +1 -1
- package/components/p-BYCebYZT.js +1 -0
- package/components/p-BZdNMS4e.js +1 -0
- package/components/p-BgCjF74f.js +1 -0
- package/components/p-BhWqNJhk.js +1 -0
- package/components/p-BlvrLhyv.js +1 -0
- package/components/p-BnnNgLpE.js +1 -0
- package/components/p-BoPZ9Se8.js +1 -0
- package/components/p-BogEYBiK.js +1 -0
- package/components/p-Brr9Q7gj.js +1 -0
- package/components/p-BvOnPBRo.js +1 -0
- package/components/p-BzX-LA7W.js +1 -0
- package/components/p-C-KgrbKX.js +1 -0
- package/components/{p-CfhgoXyB.js → p-C-rau5Ex.js} +1 -1
- package/components/{p-B4R9Mtmk.js → p-C1PUbETy.js} +1 -1
- package/components/p-C1_JmoB8.js +1 -0
- package/components/{p-noTpj1Kh.js → p-C3Kx_-Wc.js} +1 -1
- package/components/p-CIOnWzKr.js +1 -0
- package/components/p-CXhCHTJf.js +1 -0
- package/components/p-CaJOfbTg.js +1 -0
- package/components/p-Cf_74fjT.js +1 -0
- package/components/{p-DVz50Dd3.js → p-CgLn4Y4c.js} +1 -1
- package/components/p-CgaLhv3u.js +1 -0
- package/components/{p-CGYOWZnh.js → p-CijqjTOk.js} +1 -1
- package/components/p-CkyEMR2k.js +1 -0
- package/components/{p-Ce32Mo_Q.js → p-CmfyRJYt.js} +1 -1
- package/components/p-CnPsn8zN.js +1 -0
- package/components/p-Cp3SPBy3.js +1 -0
- package/components/p-CsYh9t-z.js +1 -0
- package/components/{p-BM-ap7lt.js → p-CtFbsd8j.js} +1 -1
- package/components/p-Cuf33Rgj.js +1 -0
- package/components/p-CwNmnRmr.js +1 -0
- package/components/p-CxMQkHjk.js +1 -0
- package/components/p-CzErFq8K.js +1 -0
- package/components/p-CzjK_fJj.js +1 -0
- package/components/p-D4Joi-Km.js +1 -0
- package/components/p-D4am7l6X.js +1 -0
- package/components/p-D7kqIlVo.js +1 -0
- package/components/p-DFzUUEiS.js +1 -0
- package/components/p-DINdyuGa.js +1 -0
- package/components/p-DIZuWptV.js +1 -0
- package/components/p-DPo53FC8.js +1 -0
- package/components/p-DPt8hDp3.js +1 -0
- package/components/p-DSC5zsOB.js +1 -0
- package/components/{p-Co3Y9VjQ.js → p-DSa1uqPO.js} +1 -1
- package/components/p-DT7-VE44.js +1 -0
- package/components/p-DTPUsC3Q.js +1 -0
- package/components/p-DUjF0MeP.js +1 -0
- package/components/p-DXMO8s1V.js +1 -0
- package/components/p-DZtvVtvb.js +1 -0
- package/components/p-D_184xNl.js +1 -0
- package/components/p-D_hKBumm.js +1 -0
- package/components/p-Da7AZprv.js +1 -0
- package/components/p-DcqkhKqy.js +1 -0
- package/components/p-Dkga4pDL.js +1 -0
- package/components/p-Dn1c0e9W.js +1 -0
- package/components/p-DobuHW4v.js +1 -0
- package/components/{p-Cd919NAP.js → p-DtIk7IPf.js} +1 -1
- package/components/p-DwySgZYx.js +1 -0
- package/components/p-DynL8Hj8.js +1 -0
- package/components/p-EYMvnfpO.js +1 -0
- package/components/p-K2tV3sog.js +1 -0
- package/components/p-LX68sH4m.js +1 -0
- package/components/{p-CKVSyuIH.js → p-MRcLOacJ.js} +1 -1
- package/components/p-N4_1eZ9k.js +1 -0
- package/components/p-PNU1f8B9.js +1 -0
- package/components/p-SFcKtdEL.js +1 -0
- package/components/p-VezrLuwj.js +1 -0
- package/components/p-eF_oZrS1.js +1 -0
- package/components/p-ez-wfqCC.js +1 -0
- package/components/p-gQbQhfDs.js +1 -0
- package/components/p-ibXnjCdF.js +1 -0
- package/components/p-jTIj1nFL.js +1 -0
- package/components/p-k2uLDFNn.js +1 -0
- package/components/p-pK9HRi91.js +1 -0
- package/components/p-sijpPVRP.js +1 -0
- package/components/p-tMIvQ4L0.js +1 -0
- package/components/p-xf66Fag-.js +1 -0
- package/components/p-xzKm-BQN.js +1 -0
- package/components/p-yktKa2eA.js +1 -0
- package/components/x-address.js +1 -1
- package/components/x-affix.d.ts +0 -0
- package/components/x-affix.js +1 -1
- package/components/x-alert.d.ts +0 -0
- package/components/x-alert.js +1 -1
- package/components/x-anchor-link.d.ts +0 -0
- package/components/x-anchor-link.js +1 -1
- package/components/x-anchor.d.ts +0 -0
- package/components/x-anchor.js +1 -1
- package/components/x-app.d.ts +0 -0
- package/components/x-app.js +1 -1
- package/components/x-auto-complete-dropdown-content.d.ts +0 -0
- package/components/x-auto-complete-dropdown-content.js +1 -1
- package/components/x-auto-complete.d.ts +0 -0
- package/components/x-auto-complete.js +1 -1
- package/components/x-avatar.d.ts +0 -0
- package/components/x-avatar.js +1 -1
- package/components/x-back-top.js +1 -1
- package/components/x-badge.d.ts +0 -0
- package/components/x-badge.js +1 -1
- package/components/x-breadcrumb-item.d.ts +0 -0
- package/components/x-breadcrumb-item.js +1 -1
- package/components/x-breadcrumb.d.ts +0 -0
- package/components/x-breadcrumb.js +1 -1
- package/components/x-button.d.ts +0 -0
- package/components/x-button.js +1 -1
- package/components/x-captcha.js +1 -1
- package/components/x-card.d.ts +0 -0
- package/components/x-card.js +1 -1
- package/components/x-carousel.d.ts +0 -0
- package/components/x-carousel.js +1 -1
- package/components/x-cascader-dropdown-content.d.ts +0 -0
- package/components/x-cascader-dropdown-content.js +1 -1
- package/components/x-cascader.d.ts +0 -0
- package/components/x-cascader.js +1 -1
- package/components/x-checkbox.d.ts +0 -0
- package/components/x-checkbox.js +1 -1
- package/components/x-code-editor.d.ts +11 -0
- package/components/x-code-editor.js +1 -0
- package/components/x-col.d.ts +0 -0
- package/components/x-col.js +1 -1
- package/components/x-collapse-panel.d.ts +0 -0
- package/components/x-collapse-panel.js +1 -1
- package/components/x-collapse.d.ts +0 -0
- package/components/x-collapse.js +1 -1
- package/components/x-color-picker-panel.d.ts +0 -0
- package/components/x-color-picker-panel.js +1 -1
- package/components/x-color-picker.d.ts +0 -0
- package/components/x-color-picker.js +1 -1
- package/components/x-comment.d.ts +0 -0
- package/components/x-comment.js +1 -1
- package/components/x-content.d.ts +0 -0
- package/components/x-content.js +1 -1
- package/components/x-date-picker-dropdown-content.d.ts +0 -0
- package/components/x-date-picker-dropdown-content.js +1 -1
- package/components/x-date-picker.d.ts +0 -0
- package/components/x-date-picker.js +1 -1
- package/components/x-descriptions-item.d.ts +0 -0
- package/components/x-descriptions-item.js +1 -1
- package/components/x-descriptions.d.ts +0 -0
- package/components/x-descriptions.js +1 -1
- package/components/x-divider.d.ts +0 -0
- package/components/x-divider.js +1 -1
- package/components/x-drawer-content.d.ts +0 -0
- package/components/x-drawer-content.js +1 -1
- package/components/x-drawer.d.ts +0 -0
- package/components/x-drawer.js +1 -1
- package/components/x-dropdown-content.d.ts +0 -0
- package/components/x-dropdown-content.js +1 -1
- package/components/x-dropdown.d.ts +0 -0
- package/components/x-dropdown.js +1 -1
- package/components/x-editor.d.ts +0 -0
- package/components/x-editor.js +1 -1
- package/components/x-empty.d.ts +0 -0
- package/components/x-empty.js +1 -1
- package/components/x-finder.d.ts +0 -0
- package/components/x-finder.js +1 -1
- package/components/x-flex.d.ts +0 -0
- package/components/x-flex.js +1 -1
- package/components/x-float-button.d.ts +0 -0
- package/components/x-float-button.js +1 -1
- package/components/x-footer.d.ts +0 -0
- package/components/x-footer.js +1 -1
- package/components/x-form-builder.d.ts +0 -0
- package/components/x-form-builder.js +1 -1
- package/components/x-form-item.d.ts +0 -0
- package/components/x-form-item.js +1 -1
- package/components/x-form.d.ts +0 -0
- package/components/x-form.js +1 -1
- package/components/x-header.d.ts +0 -0
- package/components/x-header.js +1 -1
- package/components/x-icon-picker-dropdown-content.d.ts +11 -0
- package/components/x-icon-picker-dropdown-content.js +1 -0
- package/components/x-icon.d.ts +0 -0
- package/components/x-icon.js +1 -1
- package/components/x-image.d.ts +0 -0
- package/components/x-image.js +1 -1
- package/components/x-infinite-scroll.d.ts +0 -0
- package/components/x-infinite-scroll.js +1 -1
- package/components/x-input-icon.d.ts +11 -0
- package/components/x-input-icon.js +1 -0
- package/components/x-input-number.d.ts +0 -0
- package/components/x-input-number.js +1 -1
- package/components/x-input.d.ts +0 -0
- package/components/x-input.js +1 -1
- package/components/x-layout-admin.d.ts +11 -0
- package/components/x-layout-admin.js +1 -0
- package/components/x-layout-detail.d.ts +11 -0
- package/components/x-layout-detail.js +1 -0
- package/components/x-layout-list.d.ts +11 -0
- package/components/x-layout-list.js +1 -0
- package/components/x-layout.d.ts +0 -0
- package/components/x-layout.js +1 -1
- package/components/x-list-item.js +1 -1
- package/components/x-list.d.ts +0 -0
- package/components/x-list.js +1 -1
- package/components/x-login.d.ts +11 -0
- package/components/x-login.js +1 -0
- package/components/x-mentions.d.ts +0 -0
- package/components/x-mentions.js +1 -1
- package/components/x-menu-divider.d.ts +0 -0
- package/components/x-menu-divider.js +1 -1
- package/components/x-menu-item-group.d.ts +0 -0
- package/components/x-menu-item-group.js +1 -1
- package/components/x-menu-item.d.ts +0 -0
- package/components/x-menu-item.js +1 -1
- package/components/x-menu-submenu.d.ts +0 -0
- package/components/x-menu-submenu.js +1 -1
- package/components/x-menu.d.ts +0 -0
- package/components/x-menu.js +1 -1
- package/components/x-message.d.ts +0 -0
- package/components/x-message.js +1 -1
- package/components/x-modal-content.d.ts +0 -0
- package/components/x-modal-content.js +1 -1
- package/components/x-modal.d.ts +0 -0
- package/components/x-modal.js +1 -1
- package/components/x-notification.d.ts +0 -0
- package/components/x-notification.js +1 -1
- package/components/x-page-header.js +1 -1
- package/components/x-pagination.d.ts +0 -0
- package/components/x-pagination.js +1 -1
- package/components/x-popconfirm-content.d.ts +0 -0
- package/components/x-popconfirm-content.js +1 -1
- package/components/x-popconfirm.d.ts +0 -0
- package/components/x-popconfirm.js +1 -1
- package/components/x-popover-content.d.ts +0 -0
- package/components/x-popover-content.js +1 -1
- package/components/x-popover.d.ts +0 -0
- package/components/x-popover.js +1 -1
- package/components/x-progress.d.ts +0 -0
- package/components/x-progress.js +1 -1
- package/components/x-qr-code.d.ts +0 -0
- package/components/x-qr-code.js +1 -1
- package/components/x-radio-group.d.ts +0 -0
- package/components/x-radio-group.js +1 -1
- package/components/x-radio.d.ts +0 -0
- package/components/x-radio.js +1 -1
- package/components/x-range-picker-dropdown-content.d.ts +0 -0
- package/components/x-range-picker-dropdown-content.js +1 -1
- package/components/x-range-picker.d.ts +0 -0
- package/components/x-range-picker.js +1 -1
- package/components/x-rate.d.ts +0 -0
- package/components/x-rate.js +1 -1
- package/components/x-result.d.ts +0 -0
- package/components/x-result.js +1 -1
- package/components/x-row.d.ts +0 -0
- package/components/x-row.js +1 -1
- package/components/x-segmented.d.ts +0 -0
- package/components/x-segmented.js +1 -1
- package/components/x-select-dropdown-content.d.ts +0 -0
- package/components/x-select-dropdown-content.js +1 -1
- package/components/x-select-option.d.ts +0 -0
- package/components/x-select-option.js +1 -1
- package/components/x-select.d.ts +0 -0
- package/components/x-select.js +1 -1
- package/components/x-sider.d.ts +0 -0
- package/components/x-sider.js +1 -1
- package/components/x-skeleton.d.ts +0 -0
- package/components/x-skeleton.js +1 -1
- package/components/x-slider.d.ts +0 -0
- package/components/x-slider.js +1 -1
- package/components/x-space.d.ts +0 -0
- package/components/x-space.js +1 -1
- package/components/x-spin.d.ts +0 -0
- package/components/x-spin.js +1 -1
- package/components/x-splitter-panel.d.ts +0 -0
- package/components/x-splitter-panel.js +1 -1
- package/components/x-splitter.d.ts +0 -0
- package/components/x-splitter.js +1 -1
- package/components/x-statistic.d.ts +0 -0
- package/components/x-statistic.js +1 -1
- package/components/x-step.d.ts +0 -0
- package/components/x-step.js +1 -1
- package/components/x-steps.d.ts +0 -0
- package/components/x-steps.js +1 -1
- package/components/x-switch.d.ts +0 -0
- package/components/x-switch.js +1 -1
- package/components/x-tab-pane.js +1 -1
- package/components/x-table-cell.d.ts +0 -0
- package/components/x-table-cell.js +1 -1
- package/components/x-table-row.d.ts +0 -0
- package/components/x-table-row.js +1 -1
- package/components/x-table.d.ts +0 -0
- package/components/x-table.js +1 -1
- package/components/x-tabs.d.ts +0 -0
- package/components/x-tabs.js +1 -1
- package/components/x-tag.d.ts +0 -0
- package/components/x-tag.js +1 -1
- package/components/x-textarea.d.ts +0 -0
- package/components/x-textarea.js +1 -1
- package/components/x-time-picker-dropdown-content.d.ts +0 -0
- package/components/x-time-picker-dropdown-content.js +1 -1
- package/components/x-time-picker.d.ts +0 -0
- package/components/x-time-picker.js +1 -1
- package/components/x-timeline-item.d.ts +0 -0
- package/components/x-timeline-item.js +1 -1
- package/components/x-timeline.d.ts +0 -0
- package/components/x-timeline.js +1 -1
- package/components/x-tooltip-content.d.ts +0 -0
- package/components/x-tooltip-content.js +1 -1
- package/components/x-tooltip.d.ts +0 -0
- package/components/x-tooltip.js +1 -1
- package/components/x-tour-panel.d.ts +0 -0
- package/components/x-tour-panel.js +1 -1
- package/components/x-tour.d.ts +0 -0
- package/components/x-tour.js +1 -1
- package/components/x-transfer.d.ts +0 -0
- package/components/x-transfer.js +1 -1
- package/components/x-tree-select-dropdown-content.js +1 -1
- package/components/x-tree-select.d.ts +0 -0
- package/components/x-tree-select.js +1 -1
- package/components/x-tree.d.ts +0 -0
- package/components/x-tree.js +1 -1
- package/components/x-typography.d.ts +0 -0
- package/components/x-typography.js +1 -1
- package/components/x-upload.d.ts +0 -0
- package/components/x-upload.js +1 -1
- package/components/x-virtual-scroll.d.ts +0 -0
- package/components/x-virtual-scroll.js +1 -1
- package/components/x-workflow-builder.d.ts +0 -0
- package/components/x-workflow-builder.js +1 -1
- package/components/x-workflow.d.ts +0 -0
- package/components/x-workflow.js +1 -1
- package/dist/cjs/{abstract-control-C4D0eNCC.js → abstract-control-JI4_szTV.js} +40 -14
- package/dist/cjs/{config-BP9bROYD.js → config-BYR5qIIZ.js} +3 -3
- package/dist/cjs/icons-DJ-kuboh.js +19291 -0
- package/dist/cjs/{index-C7sKs9A2.js → index-Cy2P_ln3.js} +39 -12
- package/dist/cjs/index.cjs.js +7 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale.service-Cz-aZQnr.js → locale.service-DT6E8Rzd.js} +17 -9
- package/dist/cjs/{modal-service-BtAF0mFq.js → modal-service-FQpCPk_L.js} +34 -14
- package/dist/cjs/{notification-service-m6I5U9aG.js → notification-service-v7LRmTyh.js} +12 -13
- package/dist/cjs/{portal-controller-CtYVbhXL.js → portal-controller-DJft2QkA.js} +11 -16
- package/dist/cjs/{schema-builder-CYnX7lKi.js → schema-builder-BKX4QdTc.js} +291 -89
- package/dist/cjs/{tree.service-fxLOCSpD.js → tree.service-u0qqS1Qh.js} +22 -22
- package/dist/cjs/x-address_51.cjs.entry.js +26874 -0
- package/dist/cjs/x-affix.cjs.entry.js +5 -5
- package/dist/cjs/{x-alert_11.cjs.entry.js → x-alert_9.cjs.entry.js} +267 -646
- package/dist/cjs/x-anchor-link.cjs.entry.js +3 -3
- package/dist/cjs/x-anchor.cjs.entry.js +11 -9
- package/dist/cjs/x-app.cjs.entry.js +19 -19
- package/dist/cjs/x-back-top.cjs.entry.js +4 -4
- package/dist/cjs/x-breadcrumb_2.cjs.entry.js +124 -0
- package/dist/cjs/x-carousel.cjs.entry.js +7 -7
- package/dist/cjs/x-code-editor.cjs.entry.js +2365 -0
- package/dist/cjs/x-col_11.cjs.entry.js +1204 -0
- package/dist/cjs/x-collapse-panel.cjs.entry.js +4 -4
- package/dist/cjs/x-collapse.cjs.entry.js +4 -4
- package/dist/cjs/x-comment.cjs.entry.js +5 -5
- package/dist/cjs/x-descriptions-item.cjs.entry.js +6 -6
- package/dist/cjs/{x-breadcrumb_5.cjs.entry.js → x-descriptions_3.cjs.entry.js} +36 -157
- package/dist/cjs/x-drawer-content.cjs.entry.js +8 -8
- package/dist/cjs/x-drawer.cjs.entry.js +9 -7
- package/dist/cjs/x-finder.cjs.entry.js +39 -32
- package/dist/cjs/x-icon-picker-dropdown-content.cjs.entry.js +158 -0
- package/dist/cjs/x-infinite-scroll.cjs.entry.js +4 -4
- package/dist/cjs/x-input-icon.cjs.entry.js +361 -0
- package/dist/cjs/x-layout-admin.cjs.entry.js +45 -0
- package/dist/cjs/x-layout-detail.cjs.entry.js +145 -0
- package/dist/cjs/x-layout-list.cjs.entry.js +259 -0
- package/dist/cjs/x-list-item.cjs.entry.js +3 -3
- package/dist/cjs/{x-menu-submenu.cjs.entry.js → x-list_2.cjs.entry.js} +141 -7
- package/dist/cjs/x-mentions.cjs.entry.js +6 -6
- package/dist/cjs/x-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/x-menu-item-group.cjs.entry.js +2 -2
- package/dist/cjs/x-menu_2.cjs.entry.js +509 -0
- package/dist/cjs/x-message.cjs.entry.js +7 -7
- package/dist/cjs/x-notification.cjs.entry.js +7 -7
- package/dist/cjs/x-page-header.cjs.entry.js +3 -3
- package/dist/cjs/x-popconfirm-content.cjs.entry.js +4 -4
- package/dist/cjs/x-popconfirm.cjs.entry.js +5 -5
- package/dist/cjs/x-progress.cjs.entry.js +10 -10
- package/dist/cjs/x-qr-code.cjs.entry.js +11 -9
- package/dist/cjs/x-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/x-splitter-panel.cjs.entry.js +2 -2
- package/dist/cjs/x-splitter.cjs.entry.js +11 -5
- package/dist/cjs/x-statistic.cjs.entry.js +3 -3
- package/dist/cjs/x-step.cjs.entry.js +7 -7
- package/dist/cjs/x-steps.cjs.entry.js +6 -8
- package/dist/cjs/x-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/x-table-row.cjs.entry.js +13 -10
- package/dist/cjs/x-timeline-item.cjs.entry.js +4 -4
- package/dist/cjs/x-timeline.cjs.entry.js +4 -4
- package/dist/cjs/x-tour-panel.cjs.entry.js +3 -3
- package/dist/cjs/x-tour.cjs.entry.js +16 -16
- package/dist/cjs/x-virtual-scroll.cjs.entry.js +5 -5
- package/dist/cjs/x-workflow-builder.cjs.entry.js +8 -8
- package/dist/cjs/xlabs.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/x-address/vietnam-data.js +3 -3
- package/dist/collection/components/x-address/x-address.css +5 -2
- package/dist/collection/components/x-address/x-address.js +8 -10
- package/dist/collection/components/x-affix/x-affix.js +4 -4
- package/dist/collection/components/x-alert/x-alert.css +5 -2
- package/dist/collection/components/x-alert/x-alert.js +1 -1
- package/dist/collection/components/x-anchor/x-anchor.js +16 -8
- package/dist/collection/components/x-anchor-link/x-anchor-link.js +2 -2
- package/dist/collection/components/x-app/x-app.js +15 -15
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +5 -2
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +1 -1
- package/dist/collection/components/x-auto-complete/types.js +2 -5
- package/dist/collection/components/x-auto-complete/x-auto-complete.css +5 -2
- package/dist/collection/components/x-auto-complete/x-auto-complete.js +52 -25
- package/dist/collection/components/x-avatar/x-avatar.js +23 -14
- package/dist/collection/components/x-back-top/x-back-top.js +3 -3
- package/dist/collection/components/x-badge/x-badge.js +3 -7
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +3 -3
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +1 -1
- package/dist/collection/components/x-button/x-button.js +7 -7
- package/dist/collection/components/x-captcha/x-captcha.js +28 -8
- package/dist/collection/components/x-card/x-card.css +9 -4
- package/dist/collection/components/x-card/x-card.js +1 -1
- package/dist/collection/components/x-carousel/x-carousel.css +5 -2
- package/dist/collection/components/x-carousel/x-carousel.js +5 -5
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +5 -2
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +9 -9
- package/dist/collection/components/x-cascader/x-cascader.css +5 -2
- package/dist/collection/components/x-cascader/x-cascader.js +17 -20
- package/dist/collection/components/x-checkbox/x-checkbox.css +5 -2
- package/dist/collection/components/x-checkbox/x-checkbox.js +9 -19
- package/dist/collection/components/x-code-editor/types.js +1 -0
- package/dist/collection/components/x-code-editor/x-code-editor.css +1274 -0
- package/dist/collection/components/x-code-editor/x-code-editor.js +1497 -0
- package/dist/collection/components/x-col/x-col.css +5 -2
- package/dist/collection/components/x-col/x-col.js +14 -14
- package/dist/collection/components/x-collapse/x-collapse.css +5 -2
- package/dist/collection/components/x-collapse/x-collapse.js +4 -4
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +5 -2
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +4 -4
- package/dist/collection/components/x-color-picker/x-color-picker-panel.js +6 -8
- package/dist/collection/components/x-color-picker/x-color-picker.css +5 -2
- package/dist/collection/components/x-color-picker/x-color-picker.js +72 -12
- package/dist/collection/components/x-comment/x-comment.css +5 -2
- package/dist/collection/components/x-comment/x-comment.js +3 -3
- package/dist/collection/components/x-content/x-content.css +5 -4
- package/dist/collection/components/x-content/x-content.js +3 -3
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +7 -3
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +5 -9
- package/dist/collection/components/x-date-picker/x-date-picker.css +5 -2
- package/dist/collection/components/x-date-picker/x-date-picker.js +65 -23
- package/dist/collection/components/x-descriptions/x-descriptions.css +5 -2
- package/dist/collection/components/x-descriptions/x-descriptions.js +3 -3
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +5 -2
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +4 -4
- package/dist/collection/components/x-divider/x-divider.css +5 -2
- package/dist/collection/components/x-divider/x-divider.js +3 -3
- package/dist/collection/components/x-drawer/x-drawer.css +5 -2
- package/dist/collection/components/x-drawer/x-drawer.js +6 -4
- package/dist/collection/components/x-drawer-content/x-drawer-content.css +5 -2
- package/dist/collection/components/x-drawer-content/x-drawer-content.js +4 -4
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +5 -2
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +1 -1
- package/dist/collection/components/x-dropdown/x-dropdown.css +5 -2
- package/dist/collection/components/x-dropdown/x-dropdown.js +34 -12
- package/dist/collection/components/x-editor/types.js +4 -6
- package/dist/collection/components/x-editor/x-editor.css +25 -10
- package/dist/collection/components/x-editor/x-editor.js +80 -74
- package/dist/collection/components/x-empty/x-empty.css +5 -2
- package/dist/collection/components/x-empty/x-empty.js +1 -1
- package/dist/collection/components/x-finder/services/finder-service.js +7 -9
- package/dist/collection/components/x-finder/x-finder.css +10 -4
- package/dist/collection/components/x-finder/x-finder.js +28 -19
- package/dist/collection/components/x-flex/x-flex.css +5 -2
- package/dist/collection/components/x-flex/x-flex.js +5 -7
- package/dist/collection/components/x-float-button/x-float-button.css +5 -2
- package/dist/collection/components/x-float-button/x-float-button.js +4 -4
- package/dist/collection/components/x-footer/x-footer.css +5 -2
- package/dist/collection/components/x-footer/x-footer.js +1 -1
- package/dist/collection/components/x-form/x-form.css +5 -2
- package/dist/collection/components/x-form/x-form.js +98 -3
- package/dist/collection/components/x-form-builder/services/apis/api-client.js +24 -15
- package/dist/collection/components/x-form-builder/services/forms/form-array.js +3 -5
- package/dist/collection/components/x-form-builder/services/forms/form-group.js +6 -6
- package/dist/collection/components/x-form-builder/services/forms/validators.js +20 -10
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +25 -44
- package/dist/collection/components/x-form-builder/services/schema/default-registry.js +108 -87
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +80 -5
- package/dist/collection/components/x-form-builder/services/schema/formula-builder.js +114 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +7 -2
- package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +1 -1
- package/dist/collection/components/x-form-builder/types/common/index.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/ui-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +1 -9
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +10 -10
- package/dist/collection/components/x-form-builder/utils/utils.js +25 -6
- package/dist/collection/components/x-form-builder/x-form-builder.js +468 -205
- package/dist/collection/components/x-form-item/x-form-item.css +16 -10
- package/dist/collection/components/x-form-item/x-form-item.js +46 -28
- package/dist/collection/components/x-header/x-header.css +5 -2
- package/dist/collection/components/x-header/x-header.js +1 -1
- package/dist/collection/components/x-icon/icons.js +19287 -2716
- package/dist/collection/components/x-icon/x-icon.css +5 -2
- package/dist/collection/components/x-icon/x-icon.js +6 -6
- package/dist/collection/components/x-image/x-image.css +5 -2
- package/dist/collection/components/x-image/x-image.js +6 -6
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +5 -2
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +2 -2
- package/dist/collection/components/x-input/x-input.css +25 -2
- package/dist/collection/components/x-input/x-input.js +38 -9
- package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.css +453 -0
- package/dist/collection/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.js +304 -0
- package/dist/collection/components/x-input-icon/types.js +1 -0
- package/dist/collection/components/x-input-icon/x-input-icon.css +404 -0
- package/dist/collection/components/x-input-icon/x-input-icon.js +917 -0
- package/dist/collection/components/x-input-number/x-input-number.css +5 -2
- package/dist/collection/components/x-input-number/x-input-number.js +108 -13
- package/dist/collection/components/x-layout/x-layout.css +5 -2
- package/dist/collection/components/x-layout/x-layout.js +11 -5
- package/dist/collection/components/x-layout-admin/x-layout-admin.css +403 -0
- package/dist/collection/components/x-layout-admin/x-layout-admin.js +127 -0
- package/dist/collection/components/x-layout-detail/x-layout-detail.css +479 -0
- package/dist/collection/components/x-layout-detail/x-layout-detail.js +300 -0
- package/dist/collection/components/x-layout-list/types.js +1 -0
- package/dist/collection/components/x-layout-list/x-layout-list.css +511 -0
- package/dist/collection/components/x-layout-list/x-layout-list.js +619 -0
- package/dist/collection/components/x-list/x-list.css +5 -2
- package/dist/collection/components/x-list/x-list.js +3 -3
- package/dist/collection/components/x-list-item/x-list-item.css +5 -2
- package/dist/collection/components/x-list-item/x-list-item.js +1 -1
- package/dist/collection/components/x-login/types.js +1 -0
- package/dist/collection/components/x-login/x-login.css +562 -0
- package/dist/collection/components/x-login/x-login.js +706 -0
- package/dist/collection/components/x-mentions/x-mentions.css +5 -2
- package/dist/collection/components/x-mentions/x-mentions.js +4 -4
- package/dist/collection/components/x-menu/x-menu.js +1 -1
- package/dist/collection/components/x-menu-divider/x-menu-divider.js +1 -1
- package/dist/collection/components/x-menu-item/x-menu-item.js +2 -2
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +1 -1
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +5 -5
- package/dist/collection/components/x-message/message-service.js +2 -2
- package/dist/collection/components/x-message/x-message.css +5 -2
- package/dist/collection/components/x-message/x-message.js +5 -5
- package/dist/collection/components/x-modal/modal-service.js +33 -13
- package/dist/collection/components/x-modal/x-modal.css +5 -2
- package/dist/collection/components/x-modal/x-modal.js +148 -47
- package/dist/collection/components/x-modal-content/x-modal-content.css +110 -18
- package/dist/collection/components/x-modal-content/x-modal-content.js +157 -12
- package/dist/collection/components/x-notification/notification-service.js +9 -10
- package/dist/collection/components/x-notification/x-notification.css +6 -2
- package/dist/collection/components/x-notification/x-notification.js +4 -4
- package/dist/collection/components/x-page-header/x-page-header.css +5 -2
- package/dist/collection/components/x-page-header/x-page-header.js +1 -1
- package/dist/collection/components/x-pagination/x-pagination.css +11 -2
- package/dist/collection/components/x-pagination/x-pagination.js +18 -14
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +5 -2
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +1 -1
- package/dist/collection/components/x-popconfirm/x-popconfirm.css +5 -2
- package/dist/collection/components/x-popconfirm/x-popconfirm.js +1 -1
- package/dist/collection/components/x-popover/popover-content/popover-content.css +5 -2
- package/dist/collection/components/x-popover/popover-content/popover-content.js +1 -1
- package/dist/collection/components/x-popover/x-popover.css +5 -2
- package/dist/collection/components/x-popover/x-popover.js +1 -1
- package/dist/collection/components/x-portal/positioning.js +11 -16
- package/dist/collection/components/x-progress/x-progress.css +5 -2
- package/dist/collection/components/x-progress/x-progress.js +8 -8
- package/dist/collection/components/x-qr-code/x-qr-code.css +2 -1
- package/dist/collection/components/x-qr-code/x-qr-code.js +23 -1
- package/dist/collection/components/x-radio/x-radio.css +5 -2
- package/dist/collection/components/x-radio/x-radio.js +5 -5
- package/dist/collection/components/x-radio-group/x-radio-group.css +5 -2
- package/dist/collection/components/x-radio-group/x-radio-group.js +6 -8
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +7 -3
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +13 -13
- package/dist/collection/components/x-range-picker/x-range-picker.css +5 -2
- package/dist/collection/components/x-range-picker/x-range-picker.js +9 -18
- package/dist/collection/components/x-rate/x-rate.css +5 -2
- package/dist/collection/components/x-rate/x-rate.js +3 -3
- package/dist/collection/components/x-result/x-result.css +5 -2
- package/dist/collection/components/x-result/x-result.js +11 -10
- package/dist/collection/components/x-row/x-row.css +5 -2
- package/dist/collection/components/x-row/x-row.js +4 -4
- package/dist/collection/components/x-segmented/x-segmented.css +5 -2
- package/dist/collection/components/x-segmented/x-segmented.js +8 -8
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +11 -4
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +1 -1
- package/dist/collection/components/x-select/x-select.css +11 -4
- package/dist/collection/components/x-select/x-select.js +33 -39
- package/dist/collection/components/x-select-option/x-select-option.css +5 -2
- package/dist/collection/components/x-select-option/x-select-option.js +3 -3
- package/dist/collection/components/x-sider/x-sider.css +7 -4
- package/dist/collection/components/x-sider/x-sider.js +7 -9
- package/dist/collection/components/x-skeleton/x-skeleton.css +5 -2
- package/dist/collection/components/x-skeleton/x-skeleton.js +3 -3
- package/dist/collection/components/x-slider/x-slider.css +5 -2
- package/dist/collection/components/x-slider/x-slider.js +11 -23
- package/dist/collection/components/x-space/x-space.css +5 -2
- package/dist/collection/components/x-space/x-space.js +4 -4
- package/dist/collection/components/x-spin/x-spin.css +5 -2
- package/dist/collection/components/x-spin/x-spin.js +1 -1
- package/dist/collection/components/x-splitter/x-splitter.js +14 -8
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +1 -1
- package/dist/collection/components/x-statistic/x-statistic.css +5 -2
- package/dist/collection/components/x-statistic/x-statistic.js +1 -1
- package/dist/collection/components/x-step/x-step.css +5 -2
- package/dist/collection/components/x-step/x-step.js +5 -5
- package/dist/collection/components/x-steps/x-steps.css +5 -2
- package/dist/collection/components/x-steps/x-steps.js +4 -6
- package/dist/collection/components/x-switch/x-switch.css +5 -2
- package/dist/collection/components/x-switch/x-switch.js +7 -4
- package/dist/collection/components/x-tab-pane/x-tab-pane.css +5 -2
- package/dist/collection/components/x-tab-pane/x-tab-pane.js +58 -2
- package/dist/collection/components/x-table/x-table.css +187 -41
- package/dist/collection/components/x-table/x-table.js +242 -104
- package/dist/collection/components/x-table-cell/x-table-cell.css +5 -2
- package/dist/collection/components/x-table-cell/x-table-cell.js +2 -2
- package/dist/collection/components/x-table-row/x-table-row.css +5 -2
- package/dist/collection/components/x-table-row/x-table-row.js +11 -8
- package/dist/collection/components/x-tabs/x-tabs.css +17 -2
- package/dist/collection/components/x-tabs/x-tabs.js +130 -12
- package/dist/collection/components/x-tag/x-tag.css +6 -3
- package/dist/collection/components/x-tag/x-tag.js +1 -4
- package/dist/collection/components/x-textarea/x-textarea.css +5 -2
- package/dist/collection/components/x-textarea/x-textarea.js +5 -5
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +5 -2
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +1 -1
- package/dist/collection/components/x-time-picker/x-time-picker.css +5 -2
- package/dist/collection/components/x-time-picker/x-time-picker.js +4 -7
- package/dist/collection/components/x-timeline/x-timeline.css +5 -2
- package/dist/collection/components/x-timeline/x-timeline.js +2 -2
- package/dist/collection/components/x-timeline-item/x-timeline-item.css +5 -2
- package/dist/collection/components/x-timeline-item/x-timeline-item.js +2 -2
- package/dist/collection/components/x-tooltip/x-tooltip.css +5 -2
- package/dist/collection/components/x-tooltip/x-tooltip.js +6 -8
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +2 -2
- package/dist/collection/components/x-tour/x-tour-panel.css +5 -2
- package/dist/collection/components/x-tour/x-tour-panel.js +1 -1
- package/dist/collection/components/x-tour/x-tour.css +5 -2
- package/dist/collection/components/x-tour/x-tour.js +15 -15
- package/dist/collection/components/x-transfer/x-transfer.css +5 -2
- package/dist/collection/components/x-transfer/x-transfer.js +8 -8
- package/dist/collection/components/x-tree/x-tree.css +5 -2
- package/dist/collection/components/x-tree/x-tree.js +25 -26
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +5 -2
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +6 -6
- package/dist/collection/components/x-tree-select/x-tree-select.css +5 -2
- package/dist/collection/components/x-tree-select/x-tree-select.js +21 -31
- package/dist/collection/components/x-typography/x-typography.css +10 -3
- package/dist/collection/components/x-typography/x-typography.js +12 -12
- package/dist/collection/components/x-upload/x-upload.css +5 -2
- package/dist/collection/components/x-upload/x-upload.js +342 -48
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +5 -5
- package/dist/collection/components/x-workflow/x-workflow.css +3 -1
- package/dist/collection/components/x-workflow/x-workflow.js +81 -66
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +5 -2
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +6 -6
- package/dist/collection/index.js +2 -0
- package/dist/collection/locales/languages/mn_MN.js +14 -1
- package/dist/collection/locales/locale.service.js +4 -9
- package/dist/collection/utils/code-editor/ast-parser.js +378 -0
- package/dist/collection/utils/code-editor/autocomplete-db.js +590 -0
- package/dist/collection/utils/code-editor/history.js +56 -0
- package/dist/collection/utils/code-editor/index.js +4 -0
- package/dist/collection/utils/code-editor/plugin-system.js +54 -0
- package/dist/collection/utils/code-editor/tokenizer.js +300 -0
- package/dist/collection/utils/config.js +3 -3
- package/dist/collection/utils/form/core/abstract-control.js +40 -14
- package/dist/collection/utils/form/core/form-array.js +7 -5
- package/dist/collection/utils/form/core/form-group.js +8 -4
- package/dist/collection/utils/form/frameworks.js +7 -3
- package/dist/collection/utils/form/validators/validators.js +3 -9
- package/dist/collection/utils/qr-code/engine/qr.engine.js +3 -3
- package/dist/collection/utils/qr-code/engine/qr.mask.js +3 -3
- package/dist/collection/utils/qr-code/engine/qr.rs.js +1 -1
- package/dist/collection/utils/table.service.js +40 -14
- package/dist/collection/utils/tree.service.js +22 -22
- package/dist/collection/utils/workflow/flow.service.js +95 -30
- package/dist/esm/{abstract-control-XBF88YT_.js → abstract-control-BtYiIQqg.js} +40 -14
- package/dist/esm/{config-BPeosvTA.js → config-RKpMhZmc.js} +3 -3
- package/dist/esm/icons-BgCjF74f.js +19289 -0
- package/dist/esm/{index-ig_mFsVk.js → index-BMTt8QT3.js} +39 -12
- package/dist/esm/index.js +6 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale.service-D66tF8_2.js → locale.service-DFADJBLL.js} +17 -9
- package/dist/esm/{modal-service-C_e0SaFZ.js → modal-service-ikfAY1gn.js} +34 -14
- package/dist/esm/{notification-service-DJTSPOq7.js → notification-service-CUyIF7K-.js} +12 -13
- package/dist/esm/{portal-controller-COpzIi1n.js → portal-controller-DM8AggMt.js} +11 -16
- package/dist/esm/{schema-builder-DBPGgJBx.js → schema-builder-DlGEzg5B.js} +291 -89
- package/dist/esm/{tree.service-Dgxy93Bg.js → tree.service-iG9CbEpE.js} +22 -22
- package/dist/esm/x-address_51.entry.js +26822 -0
- package/dist/esm/x-affix.entry.js +5 -5
- package/dist/esm/{x-alert_11.entry.js → x-alert_9.entry.js} +268 -645
- package/dist/esm/x-anchor-link.entry.js +3 -3
- package/dist/esm/x-anchor.entry.js +11 -9
- package/dist/esm/x-app.entry.js +19 -19
- package/dist/esm/x-back-top.entry.js +4 -4
- package/dist/esm/x-breadcrumb_2.entry.js +121 -0
- package/dist/esm/x-carousel.entry.js +7 -7
- package/dist/esm/x-code-editor.entry.js +2363 -0
- package/dist/esm/x-col_11.entry.js +1192 -0
- package/dist/esm/x-collapse-panel.entry.js +4 -4
- package/dist/esm/x-collapse.entry.js +4 -4
- package/dist/esm/x-comment.entry.js +5 -5
- package/dist/esm/x-descriptions-item.entry.js +6 -6
- package/dist/esm/{x-breadcrumb_5.entry.js → x-descriptions_3.entry.js} +37 -156
- package/dist/esm/x-drawer-content.entry.js +8 -8
- package/dist/esm/x-drawer.entry.js +9 -7
- package/dist/esm/x-finder.entry.js +39 -32
- package/dist/esm/x-icon-picker-dropdown-content.entry.js +156 -0
- package/dist/esm/x-infinite-scroll.entry.js +4 -4
- package/dist/esm/x-input-icon.entry.js +359 -0
- package/dist/esm/x-layout-admin.entry.js +43 -0
- package/dist/esm/x-layout-detail.entry.js +143 -0
- package/dist/esm/x-layout-list.entry.js +257 -0
- package/dist/esm/x-list-item.entry.js +3 -3
- package/dist/esm/{x-menu-submenu.entry.js → x-list_2.entry.js} +141 -8
- package/dist/esm/x-mentions.entry.js +6 -6
- package/dist/esm/x-menu-divider.entry.js +2 -2
- package/dist/esm/x-menu-item-group.entry.js +2 -2
- package/dist/esm/x-menu_2.entry.js +506 -0
- package/dist/esm/x-message.entry.js +7 -7
- package/dist/esm/x-notification.entry.js +7 -7
- package/dist/esm/x-page-header.entry.js +3 -3
- package/dist/esm/x-popconfirm-content.entry.js +4 -4
- package/dist/esm/x-popconfirm.entry.js +5 -5
- package/dist/esm/x-progress.entry.js +10 -10
- package/dist/esm/x-qr-code.entry.js +11 -9
- package/dist/esm/x-skeleton.entry.js +5 -5
- package/dist/esm/x-splitter-panel.entry.js +2 -2
- package/dist/esm/x-splitter.entry.js +11 -5
- package/dist/esm/x-statistic.entry.js +3 -3
- package/dist/esm/x-step.entry.js +7 -7
- package/dist/esm/x-steps.entry.js +6 -8
- package/dist/esm/x-table-cell.entry.js +4 -4
- package/dist/esm/x-table-row.entry.js +13 -10
- package/dist/esm/x-timeline-item.entry.js +4 -4
- package/dist/esm/x-timeline.entry.js +4 -4
- package/dist/esm/x-tour-panel.entry.js +3 -3
- package/dist/esm/x-tour.entry.js +16 -16
- package/dist/esm/x-virtual-scroll.entry.js +5 -5
- package/dist/esm/x-workflow-builder.entry.js +8 -8
- package/dist/esm/xlabs.js +20 -0
- package/dist/types/components/x-app/x-app.d.ts +12 -12
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +6 -0
- package/dist/types/components/x-avatar/x-avatar.d.ts +3 -2
- package/dist/types/components/x-captcha/x-captcha.d.ts +4 -0
- package/dist/types/components/x-checkbox/x-checkbox.d.ts +0 -4
- package/dist/types/components/x-code-editor/types.d.ts +26 -0
- package/dist/types/components/x-code-editor/x-code-editor.d.ts +141 -0
- package/dist/types/components/x-color-picker/types.d.ts +4 -0
- package/dist/types/components/x-color-picker/x-color-picker.d.ts +8 -1
- package/dist/types/components/x-content/x-content.d.ts +1 -1
- package/dist/types/components/x-date-picker/x-date-picker.d.ts +4 -0
- package/dist/types/components/x-form/x-form.d.ts +12 -0
- package/dist/types/components/x-form-builder/services/forms/validators.d.ts +1 -0
- package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +4 -0
- package/dist/types/components/x-form-builder/services/schema/formula-builder.d.ts +29 -0
- package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +6 -1
- package/dist/types/components/x-form-builder/types/common/common-types.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +1 -1
- package/dist/types/components/x-form-builder/types/common/index.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/common/ui-types.d.ts +28 -0
- package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +1 -1
- package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +4 -1
- package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +10 -3
- package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +3 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +4 -4
- package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +20 -2
- package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +11 -4
- package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +7 -3
- package/dist/types/components/x-form-builder/utils/values.d.ts +1 -1
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +9 -3
- package/dist/types/components/x-icon/icons.d.ts +12 -2716
- package/dist/types/components/x-icon/x-icon.d.ts +1 -1
- package/dist/types/components/x-input/types.d.ts +1 -1
- package/dist/types/components/x-input/x-input.d.ts +6 -0
- package/dist/types/components/x-input-icon/icon-picker-dropdown-content/icon-picker-dropdown-content.d.ts +39 -0
- package/dist/types/components/x-input-icon/types.d.ts +9 -0
- package/dist/types/components/x-input-icon/x-input-icon.d.ts +150 -0
- package/dist/types/components/x-input-number/x-input-number.d.ts +5 -0
- package/dist/types/components/x-layout/x-layout.d.ts +2 -1
- package/dist/types/components/x-layout-admin/x-layout-admin.d.ts +23 -0
- package/dist/types/components/x-layout-detail/x-layout-detail.d.ts +86 -0
- package/dist/types/components/x-layout-list/types.d.ts +100 -0
- package/dist/types/components/x-layout-list/x-layout-list.d.ts +107 -0
- package/dist/types/components/x-login/types.d.ts +113 -0
- package/dist/types/components/x-login/x-login.d.ts +126 -0
- package/dist/types/components/x-message/message-service.d.ts +1 -1
- package/dist/types/components/x-modal/x-modal.d.ts +31 -6
- package/dist/types/components/x-modal-content/x-modal-content.d.ts +24 -0
- package/dist/types/components/x-notification/notification-service.d.ts +1 -1
- package/dist/types/components/x-qr-code/x-qr-code.d.ts +2 -0
- package/dist/types/components/x-select/select-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +11 -0
- package/dist/types/components/x-table/types.d.ts +3 -0
- package/dist/types/components/x-table/x-table.d.ts +15 -4
- package/dist/types/components/x-tabs/types.d.ts +9 -0
- package/dist/types/components/x-tabs/x-tabs.d.ts +40 -1
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +1 -1
- package/dist/types/components/x-transfer/types.d.ts +3 -1
- package/dist/types/components/x-upload/types.d.ts +14 -0
- package/dist/types/components/x-upload/x-upload.d.ts +34 -7
- package/dist/types/components.d.ts +1304 -70
- package/dist/types/index.d.ts +2 -0
- package/dist/types/locales/locale.service.d.ts +3 -3
- package/dist/types/types.d.ts +2 -0
- package/dist/types/utils/code-editor/ast-parser.d.ts +5 -0
- package/dist/types/utils/code-editor/autocomplete-db.d.ts +10 -0
- package/dist/types/utils/code-editor/history.d.ts +19 -0
- package/dist/types/utils/code-editor/index.d.ts +4 -0
- package/dist/types/utils/code-editor/plugin-system.d.ts +31 -0
- package/dist/types/utils/code-editor/tokenizer.d.ts +2 -0
- package/dist/types/utils/form/types.d.ts +1 -1
- package/dist/types/utils/table.service.d.ts +2 -1
- package/dist/xlabs/index.esm.js +1 -0
- package/dist/xlabs/p-0139d27f.entry.js +1 -0
- package/dist/xlabs/p-04985e4d.entry.js +1 -0
- package/dist/xlabs/p-05a79f30.entry.js +1 -0
- package/dist/xlabs/p-0a08e0c8.entry.js +1 -0
- package/dist/xlabs/p-0d5fb8de.entry.js +1 -0
- package/dist/{xlabs-store/p-cd3c3374.entry.js → xlabs/p-121911e5.entry.js} +1 -1
- package/dist/xlabs/p-1260ad3b.entry.js +1 -0
- package/dist/xlabs/p-1c0ee15c.entry.js +1 -0
- package/dist/{xlabs-store/p-023259c9.entry.js → xlabs/p-1cd3b259.entry.js} +1 -1
- package/dist/xlabs/p-239cf367.entry.js +1 -0
- package/dist/xlabs/p-2451ab24.entry.js +1 -0
- package/dist/xlabs/p-2ab3bc58.entry.js +1 -0
- package/dist/xlabs/p-2f9d0da7.entry.js +1 -0
- package/dist/xlabs/p-302ab3b9.entry.js +1 -0
- package/dist/xlabs/p-31029063.entry.js +1 -0
- package/dist/xlabs/p-31c814c2.entry.js +1 -0
- package/dist/xlabs/p-3f5b28e5.entry.js +1 -0
- package/dist/xlabs/p-43d10a6e.entry.js +1 -0
- package/dist/xlabs/p-45fda37b.entry.js +1 -0
- package/dist/xlabs/p-4bf9b6f7.entry.js +1 -0
- package/dist/xlabs/p-5ab9ce39.entry.js +1 -0
- package/dist/xlabs/p-5e495388.entry.js +1 -0
- package/dist/xlabs/p-6039e514.entry.js +1 -0
- package/dist/xlabs/p-674527b2.entry.js +1 -0
- package/dist/xlabs/p-68056c0e.entry.js +1 -0
- package/dist/xlabs/p-6d7480c0.entry.js +1 -0
- package/dist/xlabs/p-7697ef47.entry.js +1 -0
- package/dist/xlabs/p-7b8bdd79.entry.js +1 -0
- package/dist/xlabs/p-7f9a80e0.entry.js +1 -0
- package/dist/xlabs/p-948a032e.entry.js +1 -0
- package/dist/{xlabs-store/p-7a8f11b4.entry.js → xlabs/p-9ae3501d.entry.js} +1 -1
- package/dist/xlabs/p-9b3a4aa6.entry.js +1 -0
- package/dist/xlabs/p-9c1cc5ff.entry.js +1 -0
- package/dist/xlabs/p-BMTt8QT3.js +2 -0
- package/dist/xlabs/p-BgCjF74f.js +1 -0
- package/dist/xlabs/p-D7kqIlVo.js +1 -0
- package/dist/{xlabs-store/p-Co3Y9VjQ.js → xlabs/p-DSa1uqPO.js} +1 -1
- package/dist/{xlabs-store/p-c0ca6f7d.entry.js → xlabs/p-a2d14538.entry.js} +1 -1
- package/dist/xlabs/p-a415c8c1.entry.js +1 -0
- package/dist/{xlabs-store/p-fdec5d89.entry.js → xlabs/p-aba80f73.entry.js} +1 -1
- package/dist/xlabs/p-bc5969e0.entry.js +1 -0
- package/dist/xlabs/p-bef8def9.entry.js +1 -0
- package/dist/xlabs/p-cc57e705.entry.js +1 -0
- package/dist/xlabs/p-d11de492.entry.js +1 -0
- package/dist/xlabs/p-d4558f7b.entry.js +1 -0
- package/dist/xlabs/p-d921a2c7.entry.js +1 -0
- package/dist/xlabs/p-df10e5a1.entry.js +1 -0
- package/dist/xlabs/p-e1a1acbe.entry.js +1 -0
- package/dist/xlabs/p-eab901c4.entry.js +1 -0
- package/dist/xlabs/p-edcb4001.entry.js +1 -0
- package/dist/xlabs/p-f07d9ee7.entry.js +1 -0
- package/dist/xlabs/p-f280faed.entry.js +1 -0
- package/dist/xlabs/p-f5b96f2a.entry.js +1 -0
- package/dist/xlabs/p-f6950840.entry.js +1 -0
- package/dist/{xlabs-store/p-96b1939d.entry.js → xlabs/p-f69d2b16.entry.js} +1 -1
- package/dist/{xlabs-store/p-8bcbb4e3.entry.js → xlabs/p-fd003457.entry.js} +1 -1
- package/dist/xlabs/p-xf66Fag-.js +1 -0
- package/dist/xlabs/xlabs.css +2 -0
- package/dist/xlabs/xlabs.esm.js +1 -0
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/package.json +65 -69
- package/readme.md +107 -50
- package/components/p-5c86X8JO.js +0 -1
- package/components/p-6KpqCGp9.js +0 -1
- package/components/p-ADwHM_jT.js +0 -1
- package/components/p-AgSyA7Ia.js +0 -1
- package/components/p-B-7Hwizp.js +0 -1
- package/components/p-B-ClGFfy.js +0 -1
- package/components/p-B4rO7Sgt.js +0 -1
- package/components/p-B5Syz0fw.js +0 -1
- package/components/p-B6p-mzW-.js +0 -1
- package/components/p-B8SZP5Xz.js +0 -1
- package/components/p-BBGHXZqR.js +0 -1
- package/components/p-BHLvuyOq.js +0 -1
- package/components/p-BOCR5Zk0.js +0 -1
- package/components/p-BRBrLtOz.js +0 -1
- package/components/p-BSRP2TGa.js +0 -1
- package/components/p-BUjRcJoK.js +0 -1
- package/components/p-BVeQ5W_G.js +0 -1
- package/components/p-BVnVlCcd.js +0 -1
- package/components/p-BZQcq9R_.js +0 -1
- package/components/p-BeIFU-wn.js +0 -1
- package/components/p-BkEgl31q.js +0 -1
- package/components/p-BkPJ1Whr.js +0 -1
- package/components/p-BkevSugc.js +0 -1
- package/components/p-BkiOFW3H.js +0 -1
- package/components/p-BskMfHyY.js +0 -1
- package/components/p-Bu2JqZs8.js +0 -1
- package/components/p-BvjR2Q5Q.js +0 -1
- package/components/p-Bz7MhZ4K.js +0 -1
- package/components/p-C3gvR6nN.js +0 -1
- package/components/p-C70KKm8p.js +0 -1
- package/components/p-C7csgUoA.js +0 -1
- package/components/p-CAPfC5Vn.js +0 -1
- package/components/p-CEBSDVyp.js +0 -1
- package/components/p-CFB6xkAX.js +0 -1
- package/components/p-CGIxdOEm.js +0 -1
- package/components/p-CHRrsVXB.js +0 -1
- package/components/p-CKUzvJue.js +0 -1
- package/components/p-CRBPzT4B.js +0 -1
- package/components/p-CSfrs76m.js +0 -1
- package/components/p-C_ZBjXFP.js +0 -1
- package/components/p-Ce5L9qbY.js +0 -1
- package/components/p-CeBfFEIa.js +0 -1
- package/components/p-Ck6SW8G3.js +0 -1
- package/components/p-D7ijqXRY.js +0 -1
- package/components/p-D7n-26Q5.js +0 -1
- package/components/p-D8ew7Rgv.js +0 -1
- package/components/p-DBk4T-b-.js +0 -1
- package/components/p-DD-W_fMF.js +0 -1
- package/components/p-DElCk9ta.js +0 -1
- package/components/p-DEumEVI3.js +0 -1
- package/components/p-DGqQ8PT4.js +0 -1
- package/components/p-DJ1WhSJ4.js +0 -1
- package/components/p-DOxXxhXb.js +0 -1
- package/components/p-DRa4o4c6.js +0 -1
- package/components/p-DTlSrH8_.js +0 -1
- package/components/p-DTvD0UO5.js +0 -1
- package/components/p-DZFphzg1.js +0 -1
- package/components/p-DZPUUptR.js +0 -1
- package/components/p-D_xaGiZU.js +0 -1
- package/components/p-DaL42JUi.js +0 -1
- package/components/p-DbRpEXwX.js +0 -1
- package/components/p-Dg0xgMke.js +0 -1
- package/components/p-Dky_8i8S.js +0 -1
- package/components/p-DlwlBBr4.js +0 -1
- package/components/p-DoTf8yXn.js +0 -1
- package/components/p-DphUq6Z5.js +0 -1
- package/components/p-DsgWQbJY.js +0 -1
- package/components/p-Dx3yBe39.js +0 -1
- package/components/p-DxKMnrS8.js +0 -1
- package/components/p-O88oQkR1.js +0 -1
- package/components/p-PlUkLT0A.js +0 -1
- package/components/p-QTSiPk0I.js +0 -1
- package/components/p-TC9DZAbC.js +0 -1
- package/components/p-bVsOg7S9.js +0 -1
- package/components/p-ccpcKv5U.js +0 -1
- package/components/p-en06CSUT.js +0 -1
- package/components/p-g6ZBqIze.js +0 -1
- package/dist/cjs/types-DQ-V76ZQ.js +0 -255
- package/dist/cjs/x-address_14.cjs.entry.js +0 -12577
- package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +0 -69
- package/dist/cjs/x-avatar.cjs.entry.js +0 -269
- package/dist/cjs/x-button.cjs.entry.js +0 -174
- package/dist/cjs/x-card_12.cjs.entry.js +0 -1386
- package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +0 -364
- package/dist/cjs/x-checkbox_5.cjs.entry.js +0 -1376
- package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +0 -873
- package/dist/cjs/x-color-picker_9.cjs.entry.js +0 -3085
- package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +0 -757
- package/dist/cjs/x-dropdown_2.cjs.entry.js +0 -735
- package/dist/cjs/x-empty.cjs.entry.js +0 -64
- package/dist/cjs/x-form-builder.cjs.entry.js +0 -807
- package/dist/cjs/x-icon.cjs.entry.js +0 -144
- package/dist/cjs/x-list.cjs.entry.js +0 -138
- package/dist/cjs/x-modal-content.cjs.entry.js +0 -217
- package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +0 -821
- package/dist/cjs/x-select_2.cjs.entry.js +0 -1316
- package/dist/cjs/x-spin.cjs.entry.js +0 -62
- package/dist/cjs/x-tab-pane.cjs.entry.js +0 -73
- package/dist/cjs/x-tabs.cjs.entry.js +0 -609
- package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +0 -389
- package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +0 -439
- package/dist/cjs/xlabs-store.cjs.js +0 -24
- package/dist/esm/types-C_QdJRdB.js +0 -253
- package/dist/esm/x-address_14.entry.js +0 -12562
- package/dist/esm/x-auto-complete-dropdown-content.entry.js +0 -67
- package/dist/esm/x-avatar.entry.js +0 -267
- package/dist/esm/x-button.entry.js +0 -172
- package/dist/esm/x-card_12.entry.js +0 -1373
- package/dist/esm/x-cascader-dropdown-content.entry.js +0 -362
- package/dist/esm/x-checkbox_5.entry.js +0 -1370
- package/dist/esm/x-color-picker-panel_2.entry.js +0 -870
- package/dist/esm/x-color-picker_9.entry.js +0 -3075
- package/dist/esm/x-date-picker-dropdown-content.entry.js +0 -755
- package/dist/esm/x-dropdown_2.entry.js +0 -732
- package/dist/esm/x-empty.entry.js +0 -62
- package/dist/esm/x-form-builder.entry.js +0 -805
- package/dist/esm/x-icon.entry.js +0 -142
- package/dist/esm/x-list.entry.js +0 -136
- package/dist/esm/x-modal-content.entry.js +0 -215
- package/dist/esm/x-range-picker-dropdown-content.entry.js +0 -819
- package/dist/esm/x-select_2.entry.js +0 -1313
- package/dist/esm/x-spin.entry.js +0 -60
- package/dist/esm/x-tab-pane.entry.js +0 -71
- package/dist/esm/x-tabs.entry.js +0 -607
- package/dist/esm/x-time-picker-dropdown-content.entry.js +0 -387
- package/dist/esm/x-tree-select-dropdown-content.entry.js +0 -437
- package/dist/esm/xlabs-store.js +0 -20
- package/dist/xlabs-store/index.esm.js +0 -1
- package/dist/xlabs-store/p-016194dc.entry.js +0 -1
- package/dist/xlabs-store/p-04a3721a.entry.js +0 -1
- package/dist/xlabs-store/p-072445b7.entry.js +0 -1
- package/dist/xlabs-store/p-0ec21454.entry.js +0 -1
- package/dist/xlabs-store/p-12b6a843.entry.js +0 -1
- package/dist/xlabs-store/p-1a81cf09.entry.js +0 -1
- package/dist/xlabs-store/p-1b019aeb.entry.js +0 -1
- package/dist/xlabs-store/p-262a0673.entry.js +0 -1
- package/dist/xlabs-store/p-34cce823.entry.js +0 -1
- package/dist/xlabs-store/p-3a9fdefe.entry.js +0 -1
- package/dist/xlabs-store/p-40036100.entry.js +0 -1
- package/dist/xlabs-store/p-45f04e8d.entry.js +0 -1
- package/dist/xlabs-store/p-48ba7c34.entry.js +0 -1
- package/dist/xlabs-store/p-48e2c26e.entry.js +0 -1
- package/dist/xlabs-store/p-4ac2e915.entry.js +0 -1
- package/dist/xlabs-store/p-4d7c2a35.entry.js +0 -1
- package/dist/xlabs-store/p-4f67cb33.entry.js +0 -1
- package/dist/xlabs-store/p-502b345e.entry.js +0 -1
- package/dist/xlabs-store/p-555c5e48.entry.js +0 -1
- package/dist/xlabs-store/p-5878525f.entry.js +0 -1
- package/dist/xlabs-store/p-5abbdca7.entry.js +0 -1
- package/dist/xlabs-store/p-6243ca69.entry.js +0 -1
- package/dist/xlabs-store/p-64e7a057.entry.js +0 -1
- package/dist/xlabs-store/p-6530d2ef.entry.js +0 -1
- package/dist/xlabs-store/p-675a39e1.entry.js +0 -1
- package/dist/xlabs-store/p-689c52ef.entry.js +0 -1
- package/dist/xlabs-store/p-69b8cb7d.entry.js +0 -1
- package/dist/xlabs-store/p-6b121c60.entry.js +0 -1
- package/dist/xlabs-store/p-6c75fc39.entry.js +0 -1
- package/dist/xlabs-store/p-6f705deb.entry.js +0 -1
- package/dist/xlabs-store/p-723d362c.entry.js +0 -1
- package/dist/xlabs-store/p-783545e3.entry.js +0 -1
- package/dist/xlabs-store/p-81fb4caf.entry.js +0 -1
- package/dist/xlabs-store/p-863dd67d.entry.js +0 -1
- package/dist/xlabs-store/p-8bcc219a.entry.js +0 -1
- package/dist/xlabs-store/p-914b0ae2.entry.js +0 -1
- package/dist/xlabs-store/p-9ac291ea.entry.js +0 -1
- package/dist/xlabs-store/p-9de03a07.entry.js +0 -1
- package/dist/xlabs-store/p-C_QdJRdB.js +0 -1
- package/dist/xlabs-store/p-Ce5L9qbY.js +0 -1
- package/dist/xlabs-store/p-DElCk9ta.js +0 -1
- package/dist/xlabs-store/p-a4223feb.entry.js +0 -1
- package/dist/xlabs-store/p-a8c2eca7.entry.js +0 -1
- package/dist/xlabs-store/p-ac9ba3aa.entry.js +0 -1
- package/dist/xlabs-store/p-bd5084b8.entry.js +0 -1
- package/dist/xlabs-store/p-bda322db.entry.js +0 -1
- package/dist/xlabs-store/p-c4c8840c.entry.js +0 -1
- package/dist/xlabs-store/p-c4d0ce0d.entry.js +0 -1
- package/dist/xlabs-store/p-cf4697bc.entry.js +0 -1
- package/dist/xlabs-store/p-d2ec3d4a.entry.js +0 -1
- package/dist/xlabs-store/p-d4d00aff.entry.js +0 -1
- package/dist/xlabs-store/p-d9d0147b.entry.js +0 -1
- package/dist/xlabs-store/p-dd930f2a.entry.js +0 -1
- package/dist/xlabs-store/p-e04836e8.entry.js +0 -1
- package/dist/xlabs-store/p-e14b5f6d.entry.js +0 -1
- package/dist/xlabs-store/p-eb1dd3c2.entry.js +0 -1
- package/dist/xlabs-store/p-f02155e4.entry.js +0 -1
- package/dist/xlabs-store/p-f1331938.entry.js +0 -1
- package/dist/xlabs-store/p-fac0b689.entry.js +0 -1
- package/dist/xlabs-store/p-fd2e1d9c.entry.js +0 -1
- package/dist/xlabs-store/p-ffba56b2.entry.js +0 -1
- package/dist/xlabs-store/p-ig_mFsVk.js +0 -2
- package/dist/xlabs-store/xlabs-store.css +0 -1
- package/dist/xlabs-store/xlabs-store.esm.js +0 -1
- /package/components/{p-XBF88YT_.js → p-BtYiIQqg.js} +0 -0
- /package/components/{p-D66tF8_2.js → p-DFADJBLL.js} +0 -0
- /package/components/{p-COpzIi1n.js → p-DM8AggMt.js} +0 -0
- /package/components/{p-BPeosvTA.js → p-RKpMhZmc.js} +0 -0
- /package/components/{p-Dgxy93Bg.js → p-iG9CbEpE.js} +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-outlined.woff2 +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-rounded.woff2 +0 -0
- /package/dist/{xlabs-store → xlabs}/fonts/xlabs-solided.woff2 +0 -0
- /package/dist/{xlabs-store/p-XBF88YT_.js → xlabs/p-BtYiIQqg.js} +0 -0
- /package/dist/{xlabs-store/p-D66tF8_2.js → xlabs/p-DFADJBLL.js} +0 -0
- /package/dist/{xlabs-store/p-COpzIi1n.js → xlabs/p-DM8AggMt.js} +0 -0
- /package/dist/{xlabs-store/p-BPeosvTA.js → xlabs/p-RKpMhZmc.js} +0 -0
- /package/dist/{xlabs-store/p-Dgxy93Bg.js → xlabs/p-iG9CbEpE.js} +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-ig_mFsVk.js';
|
|
2
|
-
|
|
3
|
-
const autoCompleteDropdownContentCss = () => `@charset "UTF-8";:root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--x-font-family-code:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}.x-auto-complete-dropdown{position:relative;margin:0;padding:var(--x-auto-complete-dropdown-padding, 4px);background-color:var(--x-auto-complete-dropdown-bg, var(--x-color-bg-elevated, #ffffff));border-radius:var(--x-auto-complete-dropdown-border-radius, var(--x-control-border-radius-lg, var(--x-border-radius-lg, 8px)));-webkit-box-shadow:var(--x-auto-complete-dropdown-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)));box-shadow:var(--x-auto-complete-dropdown-shadow, var(--x-box-shadow-secondary, 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)));outline:none;font-size:var(--x-auto-complete-option-font-size, var(--x-control-font-size, var(--x-font-size-base, 14px)));line-height:var(--x-auto-complete-option-line-height, var(--x-control-line-height, var(--x-line-height-base, 1.5714285714)));-webkit-transform-origin:top center;transform-origin:top center;-webkit-transition:opacity var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-transform var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:opacity var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-transform var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:opacity var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), transform var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:opacity var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), transform var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-transform var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-auto-complete-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)))}.x-auto-complete-dropdown-hidden{opacity:0;-webkit-transform:scaleY(0.8);transform:scaleY(0.8);pointer-events:none}.x-auto-complete-dropdown-content{overflow-y:auto;overflow-anchor:none}.x-auto-complete-dropdown-placement-topLeft,.x-auto-complete-dropdown-placement-topRight{-webkit-transform-origin:bottom center;transform-origin:bottom center}.x-auto-complete-empty{display:block;min-height:var(--x-auto-complete-option-height, var(--x-control-height, var(--x-size-control-height, 32px)));padding:var(--x-auto-complete-empty-padding, 8px 12px);color:var(--x-auto-complete-empty-color, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)));font-size:var(--x-auto-complete-option-font-size, var(--x-control-font-size, var(--x-font-size-base, 14px)));line-height:22px;text-align:center}.x-auto-complete-option{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:var(--x-auto-complete-option-height, var(--x-control-height, var(--x-size-control-height, 32px)));padding:var(--x-auto-complete-option-padding, 5px 12px);color:var(--x-auto-complete-option-color, var(--x-control-color, var(--x-color-text, rgba(0, 0, 0, 0.88))));font-size:var(--x-auto-complete-option-font-size, var(--x-control-font-size, var(--x-font-size-base, 14px)));line-height:var(--x-auto-complete-option-line-height, var(--x-control-line-height, var(--x-line-height-base, 1.5714285714)));border-radius:var(--x-auto-complete-option-border-radius, var(--x-control-border-radius, var(--x-border-radius-base, 6px)));cursor:pointer;-webkit-transition:background-color var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) ease;transition:background-color var(--x-auto-complete-motion-duration, var(--x-motion-duration-mid, 0.2s)) ease}.x-auto-complete-option:hover:not(.x-auto-complete-option-disabled){background-color:var(--x-auto-complete-option-bg-hover, var(--x-control-item-bg-hover, var(--x-color-fill-hover, rgba(0, 0, 0, 0.04))))}.x-auto-complete-option-active{background-color:var(--x-auto-complete-option-bg-active, var(--x-control-item-bg-active, var(--x-color-fill-active, #e6f4ff)))}.x-auto-complete-option-disabled{color:var(--x-auto-complete-option-color-disabled, var(--x-control-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25))));cursor:not-allowed}.x-auto-complete-option-content{-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.x-auto-complete-option-group{padding:0}.x-auto-complete-option-group:not(:first-child){margin-top:4px;padding-top:4px;border-top:1px solid rgba(0, 0, 0, 0.06)}.x-auto-complete-option-group-label{padding:var(--x-auto-complete-group-label-padding, 8px 12px 4px);color:var(--x-auto-complete-group-label-color, var(--x-color-text-secondary, rgba(0, 0, 0, 0.45)));font-size:var(--x-auto-complete-group-label-font-size, var(--x-font-size-sm, 12px));font-weight:500}.x-auto-complete-option-in-group{padding-left:24px}`;
|
|
4
|
-
|
|
5
|
-
const XAutoCompleteDropdownContent = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
get el() { return getElement(this); }
|
|
10
|
-
/**
|
|
11
|
-
* Class map for dropdown wrapper.
|
|
12
|
-
* @example
|
|
13
|
-
* <x-auto-complete-dropdown-content dropdownClasses={{ 'x-auto': true }}></x-auto-complete-dropdown-content>
|
|
14
|
-
*/
|
|
15
|
-
dropdownClasses = {};
|
|
16
|
-
/**
|
|
17
|
-
* Inline style map for dropdown wrapper.
|
|
18
|
-
* @example
|
|
19
|
-
* <x-auto-complete-dropdown-content dropdownStyle={{ width: '200px' }}></x-auto-complete-dropdown-content>
|
|
20
|
-
*/
|
|
21
|
-
dropdownStyle = {};
|
|
22
|
-
/**
|
|
23
|
-
* Callback to pass dropdown element ref.
|
|
24
|
-
* @example
|
|
25
|
-
* <x-auto-complete-dropdown-content setDropdownRef={(el) => console.log(el)}></x-auto-complete-dropdown-content>
|
|
26
|
-
*/
|
|
27
|
-
setDropdownRef;
|
|
28
|
-
/**
|
|
29
|
-
* Dropdown container element reference.
|
|
30
|
-
*/
|
|
31
|
-
dropdownEl = null;
|
|
32
|
-
/**
|
|
33
|
-
* Provide dropdown ref after initial render.
|
|
34
|
-
* @returns void
|
|
35
|
-
*/
|
|
36
|
-
componentDidLoad() {
|
|
37
|
-
this.setDropdownRef?.(this.dropdownEl);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Cleanup dropdown ref on disconnect.
|
|
41
|
-
* @returns void
|
|
42
|
-
*/
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
this.setDropdownRef?.(null);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Capture dropdown ref and forward to callback.
|
|
48
|
-
* @param el - Dropdown element.
|
|
49
|
-
* @returns void
|
|
50
|
-
*/
|
|
51
|
-
setRef = (el) => {
|
|
52
|
-
this.dropdownEl = el;
|
|
53
|
-
this.setDropdownRef?.(el);
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Render dropdown wrapper and slot content.
|
|
57
|
-
* @returns JSX.Element
|
|
58
|
-
* @example
|
|
59
|
-
* <x-auto-complete-dropdown-content dropdownClasses={{ 'x-auto': true }}></x-auto-complete-dropdown-content>
|
|
60
|
-
*/
|
|
61
|
-
render() {
|
|
62
|
-
return (h("div", { key: 'f6adbda3f3deb5e9f88db624e233438a02a00547', class: this.dropdownClasses, style: this.dropdownStyle, ref: this.setRef, part: "dropdown", role: "listbox" }, h("div", { key: 'c74c8352f9007682f4d5861e7c16b326af52efd5', class: "x-auto-complete-dropdown-content" }, h("slot", { key: '1213465fae790657a04dc3fd6f4f794a655b5075' }))));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
XAutoCompleteDropdownContent.style = autoCompleteDropdownContentCss();
|
|
66
|
-
|
|
67
|
-
export { XAutoCompleteDropdownContent as x_auto_complete_dropdown_content };
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-ig_mFsVk.js';
|
|
2
|
-
|
|
3
|
-
const xAvatarCss = () => `@charset "UTF-8";:host{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;color:var(--x-avatar-color, var(--x-color-white, #fff));font-size:var(--x-avatar-font-size, var(--x-font-size-base, 14px));font-variant:tabular-nums;line-height:1;list-style:none;-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;white-space:nowrap;text-align:center;vertical-align:middle;background:var(--x-avatar-bg, var(--x-color-text-placeholder, rgba(0, 0, 0, 0.25)));width:var(--x-avatar-size, var(--x-control-height, 32px));height:var(--x-avatar-size, var(--x-control-height, 32px));border-radius:var(--x-avatar-border-radius-circle, 50%)}:host(.x-avatar-lg){width:var(--x-avatar-size-lg, var(--x-control-height-lg, 40px));height:var(--x-avatar-size-lg, var(--x-control-height-lg, 40px));font-size:var(--x-avatar-font-size-lg, 18px)}:host(.x-avatar-sm){width:var(--x-avatar-size-sm, var(--x-control-height-sm, 24px));height:var(--x-avatar-size-sm, var(--x-control-height-sm, 24px));font-size:var(--x-avatar-font-size-sm, var(--x-font-size-base, 14px))}:host(.x-avatar-default){width:var(--x-avatar-size, var(--x-control-height, 32px));height:var(--x-avatar-size, var(--x-control-height, 32px));font-size:var(--x-avatar-font-size, var(--x-font-size-base, 14px))}:host(.x-avatar-square){border-radius:var(--x-avatar-border-radius-square, var(--x-border-radius-sm, 4px))}:host(.x-avatar-circle){border-radius:var(--x-avatar-border-radius-circle, 50%)}:host(.x-avatar-image){background:transparent}.x-avatar-image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}:host(.x-avatar-icon) .x-avatar-icon{font-size:var(--x-avatar-font-size-icon, 18px)}:host(.x-avatar-lg.x-avatar-icon) .x-avatar-icon{font-size:var(--x-avatar-icon-size-lg, 24px)}:host(.x-avatar-sm.x-avatar-icon) .x-avatar-icon{font-size:var(--x-avatar-icon-size-sm, 14px)}.x-avatar-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}::slotted([slot=icon]){font-size:inherit;color:inherit}.x-avatar-string{position:absolute;-webkit-transform-origin:0 center;transform-origin:0 center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;line-height:1;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`;
|
|
4
|
-
|
|
5
|
-
const XAvatar = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.xError = createEvent(this, "xError", 7);
|
|
9
|
-
}
|
|
10
|
-
get el() { return getElement(this); }
|
|
11
|
-
// ========================================
|
|
12
|
-
// PROPS
|
|
13
|
-
// ========================================
|
|
14
|
-
/**
|
|
15
|
-
* The shape of avatar.
|
|
16
|
-
* @example
|
|
17
|
-
* <x-avatar shape="square"></x-avatar>
|
|
18
|
-
*/
|
|
19
|
-
shape = 'circle';
|
|
20
|
-
/**
|
|
21
|
-
* The size of the avatar.
|
|
22
|
-
* @example
|
|
23
|
-
* <x-avatar size="large"></x-avatar>
|
|
24
|
-
*/
|
|
25
|
-
size = 'default';
|
|
26
|
-
/**
|
|
27
|
-
* The address of the image for an image avatar.
|
|
28
|
-
* @example
|
|
29
|
-
* <x-avatar src="/avatar.png"></x-avatar>
|
|
30
|
-
*/
|
|
31
|
-
src;
|
|
32
|
-
/**
|
|
33
|
-
* A list of sources to use for different screen resolutions.
|
|
34
|
-
* @example
|
|
35
|
-
* <x-avatar srcSet="/avatar@2x.png 2x"></x-avatar>
|
|
36
|
-
*/
|
|
37
|
-
srcSet;
|
|
38
|
-
/**
|
|
39
|
-
* This attribute defines the alternative text describing the image.
|
|
40
|
-
* @example
|
|
41
|
-
* <x-avatar src="/avatar.png" alt="User"></x-avatar>
|
|
42
|
-
*/
|
|
43
|
-
alt = '';
|
|
44
|
-
/**
|
|
45
|
-
* Icon type (for icon avatar, use slot="icon" instead).
|
|
46
|
-
* @example
|
|
47
|
-
* <x-avatar icon="user"><x-icon slot="icon" name="user"></x-icon></x-avatar>
|
|
48
|
-
*/
|
|
49
|
-
icon;
|
|
50
|
-
/**
|
|
51
|
-
* Letter type unit distance between left and right sides.
|
|
52
|
-
* @example
|
|
53
|
-
* <x-avatar gap={6}>AB</x-avatar>
|
|
54
|
-
*/
|
|
55
|
-
gap = 4;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the picture is allowed to be dragged.
|
|
58
|
-
* @example
|
|
59
|
-
* <x-avatar src="/avatar.png" imgDraggable={false}></x-avatar>
|
|
60
|
-
*/
|
|
61
|
-
imgDraggable = true;
|
|
62
|
-
/**
|
|
63
|
-
* CORS settings attributes.
|
|
64
|
-
* @example
|
|
65
|
-
* <x-avatar src="/avatar.png" crossOrigin="anonymous"></x-avatar>
|
|
66
|
-
*/
|
|
67
|
-
crossOrigin;
|
|
68
|
-
// ========================================
|
|
69
|
-
// STATE
|
|
70
|
-
// ========================================
|
|
71
|
-
/**
|
|
72
|
-
* Track whether image loaded successfully.
|
|
73
|
-
*/
|
|
74
|
-
isImgExist = true;
|
|
75
|
-
/**
|
|
76
|
-
* Scale factor for text content to fit avatar width.
|
|
77
|
-
*/
|
|
78
|
-
scale = 1;
|
|
79
|
-
/**
|
|
80
|
-
* Whether component is mounted to allow measurements.
|
|
81
|
-
*/
|
|
82
|
-
mounted = false;
|
|
83
|
-
/**
|
|
84
|
-
* Text element reference used for measuring width.
|
|
85
|
-
*/
|
|
86
|
-
textRef;
|
|
87
|
-
// ========================================
|
|
88
|
-
// EVENTS
|
|
89
|
-
// ========================================
|
|
90
|
-
/**
|
|
91
|
-
* Handler when img load error.
|
|
92
|
-
* @example
|
|
93
|
-
* <x-avatar onXError={(ev) => console.log(ev.detail)}></x-avatar>
|
|
94
|
-
*/
|
|
95
|
-
xError;
|
|
96
|
-
// ========================================
|
|
97
|
-
// LIFECYCLE
|
|
98
|
-
// ========================================
|
|
99
|
-
/**
|
|
100
|
-
* Mark mounted and compute initial text scale.
|
|
101
|
-
* @returns void
|
|
102
|
-
* @example
|
|
103
|
-
* <x-avatar>AB</x-avatar>
|
|
104
|
-
*/
|
|
105
|
-
componentDidLoad() {
|
|
106
|
-
this.mounted = true;
|
|
107
|
-
this.setScale();
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Recompute scale on updates.
|
|
111
|
-
* @returns void
|
|
112
|
-
* @example
|
|
113
|
-
* <x-avatar>AB</x-avatar>
|
|
114
|
-
*/
|
|
115
|
-
componentDidUpdate() {
|
|
116
|
-
this.setScale();
|
|
117
|
-
}
|
|
118
|
-
// ========================================
|
|
119
|
-
// PRIVATE METHODS
|
|
120
|
-
// ========================================
|
|
121
|
-
/**
|
|
122
|
-
* Handle image load error and fall back to text/icon.
|
|
123
|
-
* @param e - Image error event.
|
|
124
|
-
* @returns void
|
|
125
|
-
* @example
|
|
126
|
-
* <x-avatar src="/bad.png" onXError={(ev) => console.log(ev.detail)}></x-avatar>
|
|
127
|
-
*/
|
|
128
|
-
handleImgLoadError = (e) => {
|
|
129
|
-
this.isImgExist = false;
|
|
130
|
-
this.xError.emit({ event: e });
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Compute scale for text content based on available width.
|
|
134
|
-
*
|
|
135
|
-
* Flow:
|
|
136
|
-
* 1. Checks if text element (`textRef`) and component are mounted.
|
|
137
|
-
* 2. Measures `offsetWidth` of the text content.
|
|
138
|
-
* 3. Measures `clientWidth` of the host element (defaulting to 32px).
|
|
139
|
-
* 4. Calculates `availableWidth` by subtracting gaps.
|
|
140
|
-
* 5. If text width exceeds available width:
|
|
141
|
-
* - Sets `scale` to `availableWidth / textWidth`.
|
|
142
|
-
* - This shrinks the text to fit within the avatar circle/square.
|
|
143
|
-
* 6. Otherwise, resets `scale` to 1.
|
|
144
|
-
*
|
|
145
|
-
* @returns void
|
|
146
|
-
* @example
|
|
147
|
-
* <x-avatar>AB</x-avatar>
|
|
148
|
-
*/
|
|
149
|
-
setScale() {
|
|
150
|
-
// Guard until text element exists and component is mounted.
|
|
151
|
-
if (!this.textRef || !this.mounted)
|
|
152
|
-
return;
|
|
153
|
-
const textWidth = this.textRef.offsetWidth;
|
|
154
|
-
const avatarWidth = this.el.shadowRoot?.host?.clientWidth || 32;
|
|
155
|
-
const availableWidth = avatarWidth - this.gap * 2;
|
|
156
|
-
// Scale down when text is wider than available space.
|
|
157
|
-
if (textWidth && availableWidth < textWidth) {
|
|
158
|
-
this.scale = availableWidth / textWidth;
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
this.scale = 1;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Compute inline size style when size is numeric.
|
|
166
|
-
* @returns Record of CSS properties.
|
|
167
|
-
* @example
|
|
168
|
-
* <x-avatar size={48}></x-avatar>
|
|
169
|
-
*/
|
|
170
|
-
getSizeStyle() {
|
|
171
|
-
// Numeric size maps to width/height/lineHeight/fontSize.
|
|
172
|
-
if (typeof this.size === 'number') {
|
|
173
|
-
return {
|
|
174
|
-
width: `${this.size}px`,
|
|
175
|
-
height: `${this.size}px`,
|
|
176
|
-
lineHeight: `${this.size}px`,
|
|
177
|
-
fontSize: `${this.size / 2}px`,
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
return {};
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Get size class when size is a string token.
|
|
184
|
-
* @returns string
|
|
185
|
-
* @example
|
|
186
|
-
* <x-avatar size="small"></x-avatar>
|
|
187
|
-
*/
|
|
188
|
-
getSizeClass() {
|
|
189
|
-
// String sizes map to CSS class.
|
|
190
|
-
if (typeof this.size === 'string') {
|
|
191
|
-
return `x-avatar-${this.size}`;
|
|
192
|
-
}
|
|
193
|
-
return '';
|
|
194
|
-
}
|
|
195
|
-
// ========================================
|
|
196
|
-
// RENDER
|
|
197
|
-
// ========================================
|
|
198
|
-
/**
|
|
199
|
-
* Render avatar content based on src/icon/text.
|
|
200
|
-
*
|
|
201
|
-
* Flow:
|
|
202
|
-
* 1. Priority 1: Image.
|
|
203
|
-
* - If `src` exists and `isImgExist` is true.
|
|
204
|
-
* - Renders `<img>` with handlers for load errors.
|
|
205
|
-
* 2. Priority 2: Icon.
|
|
206
|
-
* - If `icon` prop is present.
|
|
207
|
-
* - Renders `slot[name="icon"]`.
|
|
208
|
-
* 3. Priority 3: Text/String.
|
|
209
|
-
* - Applies calculated `scale` transform if needed to fit text.
|
|
210
|
-
* - Renders default slot content inside a span.
|
|
211
|
-
*
|
|
212
|
-
* @returns JSX.Element
|
|
213
|
-
* @example
|
|
214
|
-
* <x-avatar src="/avatar.png"></x-avatar>
|
|
215
|
-
*/
|
|
216
|
-
renderContent() {
|
|
217
|
-
// Image avatar
|
|
218
|
-
if (this.src && this.isImgExist) {
|
|
219
|
-
return (h("img", { class: "x-avatar-image", src: this.src, srcSet: this.srcSet, alt: this.alt, draggable: this.imgDraggable, crossOrigin: this.crossOrigin || undefined, onError: this.handleImgLoadError }));
|
|
220
|
-
}
|
|
221
|
-
// Icon avatar (via slot)
|
|
222
|
-
if (this.icon) {
|
|
223
|
-
return (h("span", { class: "x-avatar-icon" }, h("slot", { name: "icon" })));
|
|
224
|
-
}
|
|
225
|
-
// Text/Letter avatar
|
|
226
|
-
const textStyle = {};
|
|
227
|
-
// Apply scale and centering when text exceeds container.
|
|
228
|
-
if (this.scale !== 1) {
|
|
229
|
-
textStyle.transform = `scale(${this.scale})`;
|
|
230
|
-
textStyle.position = 'absolute';
|
|
231
|
-
textStyle.left = '50%';
|
|
232
|
-
textStyle.transformOrigin = '0 center';
|
|
233
|
-
textStyle.marginLeft = `-${Math.round((this.textRef?.offsetWidth || 0) / 2)}px`;
|
|
234
|
-
}
|
|
235
|
-
return (h("span", { class: "x-avatar-string", ref: (el) => (this.textRef = el), style: textStyle }, h("slot", null)));
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Build host class map based on size, shape, and content type.
|
|
239
|
-
* @returns Record of class flags.
|
|
240
|
-
* @example
|
|
241
|
-
* <x-avatar shape="square"></x-avatar>
|
|
242
|
-
*/
|
|
243
|
-
getHostClasses() {
|
|
244
|
-
const sizeClass = this.getSizeClass();
|
|
245
|
-
const hasImage = this.src && this.isImgExist;
|
|
246
|
-
const hasIcon = !!this.icon;
|
|
247
|
-
return {
|
|
248
|
-
'x-avatar': true,
|
|
249
|
-
[`x-avatar-${this.shape}`]: true,
|
|
250
|
-
[sizeClass]: !!sizeClass,
|
|
251
|
-
'x-avatar-image': hasImage,
|
|
252
|
-
'x-avatar-icon': hasIcon && !hasImage,
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Render avatar host with computed classes and size style.
|
|
257
|
-
* @returns JSX.Element
|
|
258
|
-
* @example
|
|
259
|
-
* <x-avatar size={40}>AB</x-avatar>
|
|
260
|
-
*/
|
|
261
|
-
render() {
|
|
262
|
-
return (h(Host, { key: 'f4ec3bed6c5f9e11b1c603da7b22db56462abe5d', class: this.getHostClasses(), style: this.getSizeStyle() }, this.renderContent()));
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
XAvatar.style = xAvatarCss();
|
|
266
|
-
|
|
267
|
-
export { XAvatar as x_avatar };
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-ig_mFsVk.js';
|
|
2
|
-
|
|
3
|
-
const xButtonCss = () => `@charset "UTF-8";:host{display:inline-block;vertical-align:middle;font-family:var(--x-font-family)}:host([block]){display:block;width:100%}.x-btn{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:var(--x-button-height, var(--x-control-height, 32px));padding:var(--x-button-padding-block, var(--x-spacing-xxs, 4px)) var(--x-button-padding-inline, var(--x-spacing-md, 15px));font-size:var(--x-button-font-size, var(--x-font-size-base, 14px));font-weight:var(--x-button-font-weight, var(--x-font-weight-normal, 400));line-height:var(--x-button-line-height, var(--x-line-height-base, 1.5714));white-space:nowrap;text-align:center;text-decoration:none;color:var(--x-button-color, var(--x-color-text, rgba(0, 0, 0, 0.88)));background-color:var(--x-button-bg, var(--x-color-bg-container, #ffffff));background-image:none;border:var(--x-button-border-width, var(--x-border-width-base, 1px)) var(--x-button-border-style, solid) var(--x-button-border-color, var(--x-color-border, #d9d9d9));border-radius:var(--x-button-border-radius, var(--x-border-radius-base, 6px));-webkit-box-shadow:var(--x-button-shadow, 0 2px 0 rgba(0, 0, 0, 0.015));box-shadow:var(--x-button-shadow, 0 2px 0 rgba(0, 0, 0, 0.015));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:manipulation;touch-action:manipulation;outline:none;-webkit-transition:color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), background-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), border-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-box-shadow var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), background-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), border-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-box-shadow var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), background-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), border-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), box-shadow var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));transition:color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), background-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), border-color var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), box-shadow var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1))), -webkit-box-shadow var(--x-button-motion-duration, var(--x-motion-duration-mid, 0.2s)) var(--x-button-motion-easing, var(--x-motion-ease-in-out, cubic-bezier(0.645, 0.045, 0.355, 1)));}.x-btn.x-btn-default:hover,.x-btn.x-btn-default:focus{color:var(--x-button-color-hover, var(--x-color-primary, #1677ff));border-color:var(--x-button-border-color-hover, var(--x-color-primary, #1677ff))}.x-btn.x-btn-default:active{color:var(--x-button-color-active, var(--x-color-primary-active, #0958d9));border-color:var(--x-button-border-color-active, var(--x-color-primary-active, #0958d9))}.x-btn{}.x-btn.x-btn-primary{color:var(--x-button-primary-color, var(--x-color-text-light-solid, #ffffff));background-color:var(--x-button-primary-bg, var(--x-color-primary, #1677ff));border-color:var(--x-button-primary-border-color, var(--x-color-primary, #1677ff));-webkit-box-shadow:var(--x-button-shadow-primary, 0 2px 0 rgba(5, 145, 255, 0.1));box-shadow:var(--x-button-shadow-primary, 0 2px 0 rgba(5, 145, 255, 0.1))}.x-btn.x-btn-primary:hover,.x-btn.x-btn-primary:focus{background-color:var(--x-button-primary-bg-hover, var(--x-color-primary-hover, #4096ff));border-color:var(--x-button-primary-bg-hover, var(--x-color-primary-hover, #4096ff))}.x-btn.x-btn-primary:active{background-color:var(--x-button-primary-bg-active, var(--x-color-primary-active, #0958d9));border-color:var(--x-button-primary-bg-active, var(--x-color-primary-active, #0958d9))}.x-btn{}.x-btn.x-btn-dashed{border-style:dashed}.x-btn.x-btn-dashed:hover,.x-btn.x-btn-dashed:focus{color:var(--x-button-color-hover, var(--x-color-primary, #1677ff));border-color:var(--x-button-border-color-hover, var(--x-color-primary, #1677ff))}.x-btn{}.x-btn.x-btn-text{background-color:transparent;border-color:transparent;-webkit-box-shadow:var(--x-button-shadow-none, none);box-shadow:var(--x-button-shadow-none, none)}.x-btn.x-btn-text:hover,.x-btn.x-btn-text:focus{background-color:var(--x-button-text-bg-hover, var(--x-color-fill-secondary, rgba(0, 0, 0, 0.06)))}.x-btn{}.x-btn.x-btn-link{color:var(--x-button-link-color, var(--x-color-link, #1677ff));background-color:transparent;border-color:transparent;-webkit-box-shadow:var(--x-button-shadow-none, none);box-shadow:var(--x-button-shadow-none, none)}.x-btn.x-btn-link:hover,.x-btn.x-btn-link:focus{color:var(--x-button-link-color-hover, var(--x-color-link-hover, #69b1ff))}.x-btn.x-btn-link:active{color:var(--x-button-link-color-active, var(--x-color-link-active, #0958d9))}.x-btn{}.x-btn.x-btn-danger{color:var(--x-button-danger-color, var(--x-color-error, #ff4d4f));border-color:var(--x-button-danger-border-color, var(--x-color-error, #ff4d4f))}.x-btn.x-btn-danger:hover,.x-btn.x-btn-danger:focus{color:var(--x-button-danger-primary-bg-hover, var(--x-color-error-hover, #ff7875));border-color:var(--x-button-danger-primary-bg-hover, var(--x-color-error-hover, #ff7875))}.x-btn.x-btn-danger.x-btn-primary{color:var(--x-button-danger-primary-color, var(--x-color-text-light-solid, #ffffff));background-color:var(--x-button-danger-primary-bg, var(--x-color-error, #ff4d4f));border-color:var(--x-button-danger-primary-bg, var(--x-color-error, #ff4d4f))}.x-btn.x-btn-danger.x-btn-primary:hover,.x-btn.x-btn-danger.x-btn-primary:focus{background-color:var(--x-button-danger-primary-bg-hover, var(--x-color-error-hover, #ff7875));border-color:var(--x-button-danger-primary-bg-hover, var(--x-color-error-hover, #ff7875))}.x-btn{}.x-btn.x-btn-ghost{color:inherit;background-color:transparent;border-color:var(--x-button-ghost-border-color, var(--x-color-text-light-solid, #ffffff))}.x-btn{}.x-btn.x-btn-disabled,.x-btn[disabled]{cursor:not-allowed;color:var(--x-button-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)));background-color:var(--x-button-bg-disabled, var(--x-color-fill-tertiary, rgba(0, 0, 0, 0.04)));border-color:var(--x-button-border-color-disabled, var(--x-color-border, #d9d9d9));-webkit-box-shadow:var(--x-button-shadow-none, none);box-shadow:var(--x-button-shadow-none, none)}.x-btn.x-btn-disabled:hover,.x-btn.x-btn-disabled:focus,.x-btn.x-btn-disabled:active,.x-btn[disabled]:hover,.x-btn[disabled]:focus,.x-btn[disabled]:active{color:var(--x-button-color-disabled, var(--x-color-text-disabled, rgba(0, 0, 0, 0.25)));background-color:var(--x-button-bg-disabled, var(--x-color-fill-tertiary, rgba(0, 0, 0, 0.04)));border-color:var(--x-button-border-color-disabled, var(--x-color-border, #d9d9d9))}.x-btn{}.x-btn.x-btn-small{height:var(--x-button-height-sm, var(--x-control-height-sm, 24px));padding:var(--x-button-padding-block-sm, 0) var(--x-button-padding-inline-sm, var(--x-spacing-sm, 7px));font-size:var(--x-button-font-size-sm, var(--x-font-size-base, 14px));border-radius:var(--x-button-border-radius-sm, var(--x-border-radius-sm, 4px))}.x-btn.x-btn-large{height:var(--x-button-height-lg, var(--x-control-height-lg, 40px));padding:var(--x-button-padding-block-lg, var(--x-spacing-sm, 7px)) var(--x-button-padding-inline-lg, var(--x-spacing-lg, 15px));font-size:var(--x-button-font-size-lg, var(--x-font-size-lg, 16px));border-radius:var(--x-button-border-radius-lg, var(--x-border-radius-lg, 8px))}.x-btn{}.x-btn.x-btn-circle{min-width:var(--x-button-height, var(--x-control-height, 32px));padding-inline:0;border-radius:50%}.x-btn.x-btn-circle.x-btn-small{min-width:var(--x-button-height-sm, var(--x-control-height-sm, 24px))}.x-btn.x-btn-circle.x-btn-large{min-width:var(--x-button-height-lg, var(--x-control-height-lg, 40px))}.x-btn.x-btn-round{border-radius:var(--x-button-height, var(--x-control-height, 32px));padding-inline:var(--x-button-round-padding-inline, var(--x-spacing-md, 16px))}.x-btn.x-btn-round.x-btn-small{border-radius:var(--x-button-height-sm, var(--x-control-height-sm, 24px))}.x-btn.x-btn-round.x-btn-large{border-radius:var(--x-button-height-lg, var(--x-control-height-lg, 40px))}.x-btn{}.x-btn.x-btn-block{width:100%}.x-btn{}.x-btn .x-btn-loading-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--x-button-loading-icon-size, var(--x-font-size-base, 14px));height:var(--x-button-loading-icon-size, var(--x-font-size-base, 14px));margin-right:var(--x-button-loading-icon-margin, var(--x-spacing-xs, 8px));border:2px solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:x-btn-spin 1s linear infinite;animation:x-btn-spin 1s linear infinite}@-webkit-keyframes x-btn-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes x-btn-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}::slotted([slot=icon]){display:-ms-inline-flexbox;display:inline-flex;margin-right:var(--x-button-icon-margin, var(--x-spacing-xs, 8px))}.x-btn-icon-only{padding-inline:var(--x-button-padding-block, var(--x-spacing-xxs, 4px))}.x-btn-icon-only ::slotted([slot=icon]){margin-right:0}.x-btn-icon-only .x-btn-content{display:none}.x-btn:empty{padding-inline:var(--x-button-padding-block, var(--x-spacing-xxs, 4px))}`;
|
|
4
|
-
|
|
5
|
-
const XButton = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.xClick = createEvent(this, "xClick", 7);
|
|
9
|
-
}
|
|
10
|
-
get el() { return getElement(this); }
|
|
11
|
-
/** Internal state to track if the button contains only an icon */
|
|
12
|
-
isIconOnly = false;
|
|
13
|
-
/**
|
|
14
|
-
* Lifecycle hook to detect if the button is "icon-only".
|
|
15
|
-
*
|
|
16
|
-
* Flow:
|
|
17
|
-
* 1. Converts child nodes to an array.
|
|
18
|
-
* 2. Checks for presence of an element with `slot="icon"`.
|
|
19
|
-
* 3. Checks for presence of any text nodes (non-empty) or other elements.
|
|
20
|
-
* 4. Sets `isIconOnly` state if icon slot exists AND no other content exists.
|
|
21
|
-
* - This state is used to adjust padding/shape in CSS.
|
|
22
|
-
*/
|
|
23
|
-
componentWillRender() {
|
|
24
|
-
const children = Array.from(this.el.childNodes);
|
|
25
|
-
// Check if there's an element assigned to the 'icon' slot
|
|
26
|
-
const hasIconSlot = children.some(node => node.nodeType === 1 && node.getAttribute('slot') === 'icon');
|
|
27
|
-
// Check if there's any visible text or other non-icon elements
|
|
28
|
-
const hasText = children.some(node => {
|
|
29
|
-
// Check for standalone text nodes that aren't empty
|
|
30
|
-
if (node.nodeType === 3 && node.textContent.trim().length > 0)
|
|
31
|
-
return true;
|
|
32
|
-
// Check for other elements that are not part of the 'icon' slot
|
|
33
|
-
if (node.nodeType === 1 && node.getAttribute('slot') !== 'icon')
|
|
34
|
-
return true;
|
|
35
|
-
return false;
|
|
36
|
-
});
|
|
37
|
-
this.isIconOnly = hasIconSlot && !hasText;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Option to fit button width to its parent width.
|
|
41
|
-
* @example
|
|
42
|
-
* <x-button block>Full width</x-button>
|
|
43
|
-
*/
|
|
44
|
-
block = false;
|
|
45
|
-
/**
|
|
46
|
-
* Set the danger status of button.
|
|
47
|
-
* @example
|
|
48
|
-
* <x-button danger>Delete</x-button>
|
|
49
|
-
*/
|
|
50
|
-
danger = false;
|
|
51
|
-
/**
|
|
52
|
-
* Disabled state of button.
|
|
53
|
-
* @example
|
|
54
|
-
* <x-button disabled>Disabled</x-button>
|
|
55
|
-
*/
|
|
56
|
-
disabled = false;
|
|
57
|
-
/**
|
|
58
|
-
* Make background transparent and invert text color.
|
|
59
|
-
* @example
|
|
60
|
-
* <x-button ghost type="primary">Ghost</x-button>
|
|
61
|
-
*/
|
|
62
|
-
ghost = false;
|
|
63
|
-
/**
|
|
64
|
-
* Redirect url of link button.
|
|
65
|
-
* @example
|
|
66
|
-
* <x-button href="https://example.com" target="_blank">Go</x-button>
|
|
67
|
-
*/
|
|
68
|
-
href;
|
|
69
|
-
/**
|
|
70
|
-
* Set the original html type of button.
|
|
71
|
-
* @example
|
|
72
|
-
* <x-button htmlType="submit">Submit</x-button>
|
|
73
|
-
*/
|
|
74
|
-
htmlType = 'button';
|
|
75
|
-
/**
|
|
76
|
-
* Set the loading status of button.
|
|
77
|
-
* @example
|
|
78
|
-
* <x-button loading>Loading</x-button>
|
|
79
|
-
*/
|
|
80
|
-
loading = false;
|
|
81
|
-
/**
|
|
82
|
-
* Can be set to circle, round or omitted.
|
|
83
|
-
* @example
|
|
84
|
-
* <x-button shape="circle" aria-label="Add">
|
|
85
|
-
* <x-icon name="add"></x-icon>
|
|
86
|
-
* </x-button>
|
|
87
|
-
*/
|
|
88
|
-
shape = 'default';
|
|
89
|
-
/**
|
|
90
|
-
* Set the size of button.
|
|
91
|
-
* @example
|
|
92
|
-
* <x-button size="large">Large</x-button>
|
|
93
|
-
*/
|
|
94
|
-
size = 'middle';
|
|
95
|
-
/**
|
|
96
|
-
* Same as target attribute of a, works when href is specified.
|
|
97
|
-
* @example
|
|
98
|
-
* <x-button href="https://example.com" target="_blank">Open</x-button>
|
|
99
|
-
*/
|
|
100
|
-
target;
|
|
101
|
-
/**
|
|
102
|
-
* Set the type of button.
|
|
103
|
-
* @example
|
|
104
|
-
* <x-button type="primary">Primary</x-button>
|
|
105
|
-
*/
|
|
106
|
-
type = 'default';
|
|
107
|
-
/**
|
|
108
|
-
* Set the handler to handle click event.
|
|
109
|
-
* @example
|
|
110
|
-
* <x-button onXClick={(ev) => console.log(ev.detail)}>Click</x-button>
|
|
111
|
-
*/
|
|
112
|
-
xClick;
|
|
113
|
-
/**
|
|
114
|
-
* Handles click interaction and emits xClick when allowed.
|
|
115
|
-
*
|
|
116
|
-
* Flow:
|
|
117
|
-
* 1. Checks if button is `disabled` or `loading`.
|
|
118
|
-
* 2. If so:
|
|
119
|
-
* - Prevents default action.
|
|
120
|
-
* - Stops propagation.
|
|
121
|
-
* - Returns immediately.
|
|
122
|
-
* 3. If enabled:
|
|
123
|
-
* - Emits `xClick` event.
|
|
124
|
-
*
|
|
125
|
-
* @param ev - Mouse click event from anchor or button element.
|
|
126
|
-
* @returns void
|
|
127
|
-
* @example
|
|
128
|
-
* // Emitted only when not disabled/loading
|
|
129
|
-
* <x-button onXClick={(ev) => console.log(ev)}></x-button>
|
|
130
|
-
*/
|
|
131
|
-
handleClick = (ev) => {
|
|
132
|
-
// Block interaction when button is disabled or showing loading state.
|
|
133
|
-
if (this.disabled || this.loading) {
|
|
134
|
-
ev.preventDefault();
|
|
135
|
-
ev.stopPropagation();
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
// Emit click event for consumers when interaction is valid.
|
|
139
|
-
this.xClick.emit(ev);
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Renders anchor for link buttons or native button otherwise.
|
|
143
|
-
* @returns JSX.Element
|
|
144
|
-
* @example
|
|
145
|
-
* <x-button type="primary" size="small">Save</x-button>
|
|
146
|
-
*/
|
|
147
|
-
render() {
|
|
148
|
-
const { type, shape, size, block, danger, ghost, loading, disabled, href, htmlType, target } = this;
|
|
149
|
-
// Build class map from props to reflect visual variants.
|
|
150
|
-
const classes = {
|
|
151
|
-
'x-btn': true,
|
|
152
|
-
[`x-btn-${type}`]: true,
|
|
153
|
-
[`x-btn-${shape}`]: shape !== 'default',
|
|
154
|
-
[`x-btn-${size}`]: size !== 'middle',
|
|
155
|
-
'x-btn-block': block,
|
|
156
|
-
'x-btn-danger': danger,
|
|
157
|
-
'x-btn-ghost': ghost,
|
|
158
|
-
'x-btn-loading': loading,
|
|
159
|
-
'x-btn-disabled': disabled,
|
|
160
|
-
'x-btn-icon-only': this.isIconOnly,
|
|
161
|
-
};
|
|
162
|
-
// If href is provided, render as anchor to support navigation behavior.
|
|
163
|
-
if (href) {
|
|
164
|
-
return (h(Host, null, h("a", { class: classes, href: href, target: target, onClick: this.handleClick }, loading && h("span", { class: "x-btn-loading-icon" }), h("slot", { name: "icon" }), h("span", { class: "x-btn-content" }, h("slot", null)))));
|
|
165
|
-
}
|
|
166
|
-
// Otherwise render a native button with htmlType and disabled state.
|
|
167
|
-
return (h(Host, null, h("button", { class: classes, type: htmlType, disabled: disabled, onClick: this.handleClick }, loading && h("span", { class: "x-btn-loading-icon" }), h("slot", { name: "icon" }), h("span", { class: "x-btn-content" }, h("slot", null)))));
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
XButton.style = xButtonCss();
|
|
171
|
-
|
|
172
|
-
export { XButton as x_button };
|