@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,4 +1,4 @@
|
|
|
1
|
-
import { h, Host
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { EditorSelection } from "./editor-selection";
|
|
3
3
|
import { EditorNormalizer } from "./editor-normalizer";
|
|
4
4
|
import { EditorHistory } from "./editor-history";
|
|
@@ -53,7 +53,7 @@ export class XEditor {
|
|
|
53
53
|
actions: [
|
|
54
54
|
{ type: 'undo', title: translate('Editor.undo', {}, 'Undo (Ctrl+Z)') },
|
|
55
55
|
{ type: 'redo', title: translate('Editor.redo', {}, 'Redo (Ctrl+Shift+Z)') },
|
|
56
|
-
]
|
|
56
|
+
],
|
|
57
57
|
},
|
|
58
58
|
'divider',
|
|
59
59
|
{
|
|
@@ -63,7 +63,7 @@ export class XEditor {
|
|
|
63
63
|
{ type: 'italic', title: translate('Editor.italic', {}, 'Italic (Ctrl+I)') },
|
|
64
64
|
{ type: 'underline', title: translate('Editor.underline', {}, 'Underline (Ctrl+U)') },
|
|
65
65
|
{ type: 'strikethrough', title: translate('Editor.strikethrough', {}, 'Strikethrough') },
|
|
66
|
-
]
|
|
66
|
+
],
|
|
67
67
|
},
|
|
68
68
|
'divider',
|
|
69
69
|
{
|
|
@@ -71,7 +71,7 @@ export class XEditor {
|
|
|
71
71
|
actions: [
|
|
72
72
|
{ type: 'textColor', title: translate('Editor.textColor', {}, 'Text Color') },
|
|
73
73
|
{ type: 'backgroundColor', title: translate('Editor.backgroundColor', {}, 'Background Color') },
|
|
74
|
-
]
|
|
74
|
+
],
|
|
75
75
|
},
|
|
76
76
|
'divider',
|
|
77
77
|
{
|
|
@@ -79,7 +79,7 @@ export class XEditor {
|
|
|
79
79
|
actions: [
|
|
80
80
|
{ type: 'fontFamily', title: translate('Editor.fontFamily', {}, 'Font Family') },
|
|
81
81
|
{ type: 'fontSize', title: translate('Editor.fontSize', {}, 'Font Size') },
|
|
82
|
-
]
|
|
82
|
+
],
|
|
83
83
|
},
|
|
84
84
|
'divider',
|
|
85
85
|
{
|
|
@@ -94,7 +94,7 @@ export class XEditor {
|
|
|
94
94
|
{ type: 'paragraph', title: translate('Editor.paragraph', {}, 'Paragraph') },
|
|
95
95
|
{ type: 'blockquote', title: translate('Editor.blockquote', {}, 'Quote') },
|
|
96
96
|
{ type: 'code', title: translate('Editor.codeBlock', {}, 'Code Block') },
|
|
97
|
-
]
|
|
97
|
+
],
|
|
98
98
|
},
|
|
99
99
|
'divider',
|
|
100
100
|
{
|
|
@@ -104,7 +104,7 @@ export class XEditor {
|
|
|
104
104
|
{ type: 'alignCenter', title: translate('Editor.alignCenter', {}, 'Align Center') },
|
|
105
105
|
{ type: 'alignRight', title: translate('Editor.alignRight', {}, 'Align Right') },
|
|
106
106
|
{ type: 'alignJustify', title: translate('Editor.alignJustify', {}, 'Align Justify') },
|
|
107
|
-
]
|
|
107
|
+
],
|
|
108
108
|
},
|
|
109
109
|
'divider',
|
|
110
110
|
{
|
|
@@ -112,7 +112,7 @@ export class XEditor {
|
|
|
112
112
|
actions: [
|
|
113
113
|
{ type: 'outdent', title: translate('Editor.outdent', {}, 'Decrease Indent') },
|
|
114
114
|
{ type: 'indent', title: translate('Editor.indent', {}, 'Increase Indent') },
|
|
115
|
-
]
|
|
115
|
+
],
|
|
116
116
|
},
|
|
117
117
|
'divider',
|
|
118
118
|
{
|
|
@@ -124,7 +124,7 @@ export class XEditor {
|
|
|
124
124
|
{ type: 'file', title: translate('Editor.insertFile', {}, 'Insert File') },
|
|
125
125
|
{ type: 'table', title: translate('Editor.insertTable', {}, 'Insert Table') },
|
|
126
126
|
{ type: 'hr', title: translate('Editor.horizontalLine', {}, 'Horizontal Line') },
|
|
127
|
-
]
|
|
127
|
+
],
|
|
128
128
|
},
|
|
129
129
|
];
|
|
130
130
|
/**
|
|
@@ -512,9 +512,7 @@ export class XEditor {
|
|
|
512
512
|
if (!range)
|
|
513
513
|
return;
|
|
514
514
|
const container = range.startContainer;
|
|
515
|
-
const element = container.nodeType === Node.TEXT_NODE
|
|
516
|
-
? container.parentElement
|
|
517
|
-
: container;
|
|
515
|
+
const element = container.nodeType === Node.TEXT_NODE ? container.parentElement : container;
|
|
518
516
|
const blockElement = element?.closest('p, h1, h2, h3, h4, h5, h6, blockquote, pre');
|
|
519
517
|
if (!blockElement)
|
|
520
518
|
return;
|
|
@@ -575,9 +573,7 @@ export class XEditor {
|
|
|
575
573
|
if (!range)
|
|
576
574
|
return;
|
|
577
575
|
const container = range.startContainer;
|
|
578
|
-
const element = container.nodeType === Node.TEXT_NODE
|
|
579
|
-
? container.parentElement
|
|
580
|
-
: container;
|
|
576
|
+
const element = container.nodeType === Node.TEXT_NODE ? container.parentElement : container;
|
|
581
577
|
const blockElement = element?.closest('p, h1, h2, h3, h4, h5, h6, blockquote, pre');
|
|
582
578
|
if (!blockElement || !blockElement.previousSibling) {
|
|
583
579
|
// If at start of first block, maybe convert to paragraph if it's special
|
|
@@ -719,9 +715,7 @@ export class XEditor {
|
|
|
719
715
|
if (!range)
|
|
720
716
|
return;
|
|
721
717
|
const container = range.startContainer;
|
|
722
|
-
const element = container.nodeType === Node.TEXT_NODE
|
|
723
|
-
? container.parentElement
|
|
724
|
-
: container;
|
|
718
|
+
const element = container.nodeType === Node.TEXT_NODE ? container.parentElement : container;
|
|
725
719
|
const blockElement = element?.closest('p, h1, h2, h3, h4, h5, h6, blockquote, pre');
|
|
726
720
|
if (!blockElement)
|
|
727
721
|
return;
|
|
@@ -767,7 +761,7 @@ export class XEditor {
|
|
|
767
761
|
const start = preRange.toString().length;
|
|
768
762
|
offsets = {
|
|
769
763
|
start,
|
|
770
|
-
end: start + currentRange.toString().length
|
|
764
|
+
end: start + currentRange.toString().length,
|
|
771
765
|
};
|
|
772
766
|
}
|
|
773
767
|
}
|
|
@@ -780,7 +774,7 @@ export class XEditor {
|
|
|
780
774
|
const newRange = document.createRange();
|
|
781
775
|
if (offsets) {
|
|
782
776
|
// Try to restore offsets (simplified)
|
|
783
|
-
// For now, let's just select the whole new element if it was a selection,
|
|
777
|
+
// For now, let's just select the whole new element if it was a selection,
|
|
784
778
|
// or put cursor at the same text offset.
|
|
785
779
|
// Actually, just putting it at the start is safer unless we do proper text node traversal.
|
|
786
780
|
// Let's at least keep it highlighting the content if it was more than a cursor.
|
|
@@ -853,8 +847,7 @@ export class XEditor {
|
|
|
853
847
|
return this.slashCommands;
|
|
854
848
|
}
|
|
855
849
|
const filter = this._slashFilter.toLowerCase();
|
|
856
|
-
return this.slashCommands.filter(cmd => cmd.label.toLowerCase().includes(filter) ||
|
|
857
|
-
cmd.id.toLowerCase().includes(filter));
|
|
850
|
+
return this.slashCommands.filter(cmd => cmd.label.toLowerCase().includes(filter) || cmd.id.toLowerCase().includes(filter));
|
|
858
851
|
}
|
|
859
852
|
renderToolbarItem(item) {
|
|
860
853
|
if (item === 'divider') {
|
|
@@ -864,23 +857,27 @@ export class XEditor {
|
|
|
864
857
|
const group = item;
|
|
865
858
|
// Alignment group as dropdown
|
|
866
859
|
if (group.name === 'alignment') {
|
|
867
|
-
const items = group.actions
|
|
860
|
+
const items = group.actions
|
|
861
|
+
.filter(a => a !== 'divider')
|
|
862
|
+
.map(a => ({
|
|
868
863
|
key: a.type,
|
|
869
864
|
label: a.title || a.type,
|
|
870
|
-
icon: this.getIconSvg(a.type)
|
|
865
|
+
icon: this.getIconSvg(a.type),
|
|
871
866
|
}));
|
|
872
867
|
const isActive = group.actions.some(a => a.type.toLowerCase().includes(this._activeAlignment));
|
|
873
868
|
return (h("x-dropdown", { trigger: "click", menu: { items }, onXOpenChange: (e) => this.handleDropdownOpenChange(e.detail.open), onXMenuClick: (e) => this.handleToolbarAction({ type: e.detail.key }) }, h("x-button", { onMouseDown: (e) => e.preventDefault(), type: "text", size: "small", shape: "round", class: { 'toolbar-btn': true, 'active': isActive } }, this.renderToolbarIcon(('align' + this._activeAlignment.charAt(0).toUpperCase() + this._activeAlignment.slice(1))))));
|
|
874
869
|
}
|
|
875
870
|
// Blocks (Heading) group as dropdown
|
|
876
871
|
if (group.name === 'blocks') {
|
|
877
|
-
const items = group.actions
|
|
872
|
+
const items = group.actions
|
|
873
|
+
.filter(a => a !== 'divider')
|
|
874
|
+
.map(a => {
|
|
878
875
|
const action = a;
|
|
879
876
|
const level = action.type.startsWith('h') ? action.type.slice(1) : null;
|
|
880
877
|
return {
|
|
881
878
|
key: action.type,
|
|
882
|
-
label: level ? `<h${level} style="margin:0; font-size: 1.1em; line-height: 1.2;">${action.title || action.type}</h${level}>` :
|
|
883
|
-
icon: action.type.startsWith('h') ? `<span class="text-icon">H${level}</span>` : this.getIconSvg(action.type)
|
|
879
|
+
label: level ? `<h${level} style="margin:0; font-size: 1.1em; line-height: 1.2;">${action.title || action.type}</h${level}>` : action.title || action.type,
|
|
880
|
+
icon: action.type.startsWith('h') ? `<span class="text-icon">H${level}</span>` : this.getIconSvg(action.type),
|
|
884
881
|
};
|
|
885
882
|
});
|
|
886
883
|
const isActive = group.actions.some(a => a.type === this._activeBlockType);
|
|
@@ -897,7 +894,7 @@ export class XEditor {
|
|
|
897
894
|
{ key: 'Arial', label: 'Arial' },
|
|
898
895
|
{ key: 'Georgia', label: 'Georgia' },
|
|
899
896
|
{ key: 'Times New Roman', label: 'Times New Roman' },
|
|
900
|
-
{ key: 'Courier New', label: 'Courier New' }
|
|
897
|
+
{ key: 'Courier New', label: 'Courier New' },
|
|
901
898
|
]
|
|
902
899
|
: [
|
|
903
900
|
{ key: '12px', label: '12' },
|
|
@@ -905,7 +902,7 @@ export class XEditor {
|
|
|
905
902
|
{ key: '16px', label: '16' },
|
|
906
903
|
{ key: '18px', label: '18' },
|
|
907
904
|
{ key: '24px', label: '24' },
|
|
908
|
-
{ key: '32px', label: '32' }
|
|
905
|
+
{ key: '32px', label: '32' },
|
|
909
906
|
];
|
|
910
907
|
const isActive = false;
|
|
911
908
|
// const currentLabel = action.type === 'fontFamily' ? this._activeFontFamily : this._activeFontSize;
|
|
@@ -914,14 +911,16 @@ export class XEditor {
|
|
|
914
911
|
}
|
|
915
912
|
// Insert group as dropdown
|
|
916
913
|
if (group.name === 'insert') {
|
|
917
|
-
const items = group.actions
|
|
914
|
+
const items = group.actions
|
|
915
|
+
.filter(a => a !== 'divider')
|
|
916
|
+
.map(a => ({
|
|
918
917
|
key: a.type,
|
|
919
918
|
label: a.title || a.type,
|
|
920
|
-
icon: this.getIconSvg(a.type)
|
|
919
|
+
icon: this.getIconSvg(a.type),
|
|
921
920
|
}));
|
|
922
921
|
return (h("x-dropdown", { trigger: "click", menu: { items }, onXOpenChange: (e) => this.handleDropdownOpenChange(e.detail.open), onXMenuClick: (e) => this.handleToolbarAction({ type: e.detail.key }) }, h("x-button", { onMouseDown: (e) => e.preventDefault(), type: "text", size: "small", shape: "round", class: "toolbar-btn" }, h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })))));
|
|
923
922
|
}
|
|
924
|
-
return
|
|
923
|
+
return h("div", { class: "toolbar-group" }, group.actions.map(action => (action === 'divider' ? h("div", { class: "toolbar-divider" }) : this.renderToolbarAction(action))));
|
|
925
924
|
}
|
|
926
925
|
return this.renderToolbarAction(item);
|
|
927
926
|
}
|
|
@@ -937,7 +936,7 @@ export class XEditor {
|
|
|
937
936
|
}
|
|
938
937
|
// Dropdowns
|
|
939
938
|
if (action.type === 'h1' || action.type === 'h2' || action.type === 'h3') {
|
|
940
|
-
// We'll render Heading as a single dropdown if we encounter h1?
|
|
939
|
+
// We'll render Heading as a single dropdown if we encounter h1?
|
|
941
940
|
// Actually, let's keep it simple for now or combine them.
|
|
942
941
|
}
|
|
943
942
|
const type = action.type;
|
|
@@ -945,7 +944,7 @@ export class XEditor {
|
|
|
945
944
|
if (isDropdown) {
|
|
946
945
|
// For now, let's just use the current button but we'll adapt for dropdowns if they were grouped.
|
|
947
946
|
// But the user said "Toolbar align, Heading, fontFamily, font size, thì sử dụng component dropdown"
|
|
948
|
-
// This implies these should be dropdowns.
|
|
947
|
+
// This implies these should be dropdowns.
|
|
949
948
|
// I'll implement specific renderers for these.
|
|
950
949
|
}
|
|
951
950
|
return (h("x-button", { onMouseDown: (e) => e.preventDefault(), type: "text", size: "small", shape: "round", class: { 'toolbar-btn-wrapper': true, [type]: true, 'active': isActive }, onXClick: (e) => {
|
|
@@ -1077,67 +1076,74 @@ export class XEditor {
|
|
|
1077
1076
|
table: '<svg viewBox="0 0 24 24" width="18" height="18"><path fill="currentColor" d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z"/></svg>',
|
|
1078
1077
|
hr: '<svg viewBox="0 0 24 24" width="18" height="18"><path fill="currentColor" d="M19 13H5v-2h14v2z"/></svg>',
|
|
1079
1078
|
blockquote: '<svg viewBox="0 0 24 24" width="18" height="18"><path fill="currentColor" d="M6 17h3l2-4V7H5v6h3l-2 4zm8 0h3l2-4V7h-6v6h3l-2 4z"/></svg>',
|
|
1080
|
-
code: '<svg viewBox="0 0 24 24" width="18" height="18"><path fill="currentColor" d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>'
|
|
1079
|
+
code: '<svg viewBox="0 0 24 24" width="18" height="18"><path fill="currentColor" d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>',
|
|
1081
1080
|
};
|
|
1082
1081
|
return svgs[type] || '';
|
|
1083
1082
|
}
|
|
1084
1083
|
renderToolbarIcon(type) {
|
|
1085
1084
|
switch (type) {
|
|
1086
1085
|
case 'bold':
|
|
1087
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M15.6 11.8c1-.7 1.6-1.8 1.6-2.8 0-2.5-2-4.5-4.5-4.5H7v14h7c2.2 0 4-1.8 4-4 0-1.2-.6-2.2-1.4-2.7zM10 7.5h2.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H10v-3zm3.5 9H10v-3h3.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5z" }));
|
|
1086
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M15.6 11.8c1-.7 1.6-1.8 1.6-2.8 0-2.5-2-4.5-4.5-4.5H7v14h7c2.2 0 4-1.8 4-4 0-1.2-.6-2.2-1.4-2.7zM10 7.5h2.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H10v-3zm3.5 9H10v-3h3.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5z" })));
|
|
1088
1087
|
case 'italic':
|
|
1089
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M10 5v3h2.2l-3.4 8H6v3h8v-3h-2.2l3.4-8H18V5h-8z" }));
|
|
1088
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M10 5v3h2.2l-3.4 8H6v3h8v-3h-2.2l3.4-8H18V5h-8z" })));
|
|
1090
1089
|
case 'underline':
|
|
1091
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M12 17c3.3 0 6-2.7 6-6V3h-2.5v8c0 1.9-1.6 3.5-3.5 3.5S8.5 12.9 8.5 11V3H6v8c0 3.3 2.7 6 6 6zm-7 2v2h14v-2H5z" }));
|
|
1092
|
-
case 'h1':
|
|
1093
|
-
|
|
1094
|
-
case '
|
|
1095
|
-
|
|
1096
|
-
case '
|
|
1097
|
-
|
|
1090
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M12 17c3.3 0 6-2.7 6-6V3h-2.5v8c0 1.9-1.6 3.5-3.5 3.5S8.5 12.9 8.5 11V3H6v8c0 3.3 2.7 6 6 6zm-7 2v2h14v-2H5z" })));
|
|
1091
|
+
case 'h1':
|
|
1092
|
+
return h("span", { class: "text-icon" }, "H1");
|
|
1093
|
+
case 'h2':
|
|
1094
|
+
return h("span", { class: "text-icon" }, "H2");
|
|
1095
|
+
case 'h3':
|
|
1096
|
+
return h("span", { class: "text-icon" }, "H3");
|
|
1097
|
+
case 'h4':
|
|
1098
|
+
return h("span", { class: "text-icon" }, "H4");
|
|
1099
|
+
case 'h5':
|
|
1100
|
+
return h("span", { class: "text-icon" }, "H5");
|
|
1101
|
+
case 'h6':
|
|
1102
|
+
return h("span", { class: "text-icon" }, "H6");
|
|
1098
1103
|
case 'blockquote':
|
|
1099
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M6 17h3l2-4V7H5v6h3l-2 4zm8 0h3l2-4V7h-6v6h3l-2 4z" }));
|
|
1104
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M6 17h3l2-4V7H5v6h3l-2 4zm8 0h3l2-4V7h-6v6h3l-2 4z" })));
|
|
1100
1105
|
case 'code':
|
|
1101
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }));
|
|
1106
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" })));
|
|
1102
1107
|
case 'undo':
|
|
1103
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M12.5 8c-2.6 0-5 1-6.9 2.6L3 8v9h9l-3.6-3.6c1.3-1.1 3-1.8 4.7-1.8 3.5 0 6.4 2.5 7.1 5.8l2.4-.6c-1-4.2-4.7-7.4-9.1-7.4z" }));
|
|
1108
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M12.5 8c-2.6 0-5 1-6.9 2.6L3 8v9h9l-3.6-3.6c1.3-1.1 3-1.8 4.7-1.8 3.5 0 6.4 2.5 7.1 5.8l2.4-.6c-1-4.2-4.7-7.4-9.1-7.4z" })));
|
|
1104
1109
|
case 'redo':
|
|
1105
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M18.4 10.6C16.5 9 14.1 8 11.5 8c-4.4 0-8.1 3.2-9.1 7.4l2.4.6c.7-3.3 3.6-5.8 7.1-5.8 1.7 0 3.4.7 4.7 1.8L13 17h9V8l-2.6 2.6z" }));
|
|
1110
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M18.4 10.6C16.5 9 14.1 8 11.5 8c-4.4 0-8.1 3.2-9.1 7.4l2.4.6c.7-3.3 3.6-5.8 7.1-5.8 1.7 0 3.4.7 4.7 1.8L13 17h9V8l-2.6 2.6z" })));
|
|
1106
1111
|
case 'strikethrough':
|
|
1107
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z" }));
|
|
1112
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z" })));
|
|
1108
1113
|
case 'alignLeft':
|
|
1109
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" }));
|
|
1114
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" })));
|
|
1110
1115
|
case 'alignCenter':
|
|
1111
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M7 15v2h10v-2H7zm-4 4v2h18v-2H3zm0-16v2h18V3H3zm4 4v2h10V7H7zm-4 4v2h18v-2H3z" }));
|
|
1116
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M7 15v2h10v-2H7zm-4 4v2h18v-2H3zm0-16v2h18V3H3zm4 4v2h10V7H7zm-4 4v2h18v-2H3z" })));
|
|
1112
1117
|
case 'alignRight':
|
|
1113
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M21 15H9v2h12v-2zM21 7H9v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" }));
|
|
1118
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M21 15H9v2h12v-2zM21 7H9v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" })));
|
|
1114
1119
|
case 'alignJustify':
|
|
1115
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V3H3v2z" }));
|
|
1120
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V3H3v2z" })));
|
|
1116
1121
|
case 'indent':
|
|
1117
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
1122
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" })));
|
|
1118
1123
|
case 'outdent':
|
|
1119
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M11 17h10v-2H11v2zM7 16V8l-4 4 4 4zm-4 5h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
1124
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M11 17h10v-2H11v2zM7 16V8l-4 4 4 4zm-4 5h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" })));
|
|
1120
1125
|
case 'link':
|
|
1121
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" }));
|
|
1126
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" })));
|
|
1122
1127
|
case 'image':
|
|
1123
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" }));
|
|
1128
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" })));
|
|
1124
1129
|
case 'video':
|
|
1125
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z" }));
|
|
1130
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z" })));
|
|
1126
1131
|
case 'file':
|
|
1127
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" }));
|
|
1132
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" })));
|
|
1128
1133
|
case 'table':
|
|
1129
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" }));
|
|
1134
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" })));
|
|
1130
1135
|
case 'hr':
|
|
1131
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M19 13H5v-2h14v2z" }));
|
|
1136
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M19 13H5v-2h14v2z" })));
|
|
1132
1137
|
case 'textColor':
|
|
1133
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62zM4 20v2h16v-2H4z" }));
|
|
1138
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62zM4 20v2h16v-2H4z" })));
|
|
1134
1139
|
case 'backgroundColor':
|
|
1135
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z" }));
|
|
1140
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z" })));
|
|
1136
1141
|
case 'fontFamily':
|
|
1137
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" }));
|
|
1142
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" })));
|
|
1138
1143
|
case 'fontSize':
|
|
1139
|
-
return h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z" }));
|
|
1140
|
-
default:
|
|
1144
|
+
return (h("svg", { viewBox: "0 0 24 24", width: "18", height: "18" }, h("path", { fill: "currentColor", d: "M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z" })));
|
|
1145
|
+
default:
|
|
1146
|
+
return type;
|
|
1141
1147
|
}
|
|
1142
1148
|
}
|
|
1143
1149
|
renderModal() {
|
|
@@ -1173,7 +1179,7 @@ export class XEditor {
|
|
|
1173
1179
|
} }))));
|
|
1174
1180
|
break;
|
|
1175
1181
|
}
|
|
1176
|
-
return (h("x-modal", { visible: !!this._activeModal, modalTitle: title, onXOk: () => this.handleModalOk(), onXCancel: () => this._activeModal = null }, content));
|
|
1182
|
+
return (h("x-modal", { visible: !!this._activeModal, modalTitle: title, onXOk: () => this.handleModalOk(), onXCancel: () => (this._activeModal = null) }, content));
|
|
1177
1183
|
}
|
|
1178
1184
|
/**
|
|
1179
1185
|
* Handles the 'OK' action from insertion modals (Link, Image, etc.).
|
|
@@ -1223,7 +1229,7 @@ export class XEditor {
|
|
|
1223
1229
|
this.emitValueChange();
|
|
1224
1230
|
}
|
|
1225
1231
|
render() {
|
|
1226
|
-
return (h(Host, { key: '
|
|
1232
|
+
return (h(Host, { key: 'b1b50a6c438a5c68ddbeff783ac78e0201ca64c8' }, h("div", { key: '199564366f70443efd53e72ecf6fb060d1cd0d19', class: "editor-container" }, this.showToolbar && !this.disabled && (h("div", { key: '85a14c279d17f285cb0f7b010c251e546f2e99e6', class: "editor-toolbar", onMouseDown: e => e.preventDefault() }, this.toolbar.map(item => this.renderToolbarItem(item)))), h("div", { key: '51882fb88a59591536002e94adbdbc76eb143f2d', ref: el => {
|
|
1227
1233
|
this.editorRoot = el;
|
|
1228
1234
|
if (el) {
|
|
1229
1235
|
this.selectionHelper.setRootElement(el);
|
|
@@ -1231,10 +1237,10 @@ export class XEditor {
|
|
|
1231
1237
|
}, class: {
|
|
1232
1238
|
'editor-content': true,
|
|
1233
1239
|
'disabled': this.disabled,
|
|
1234
|
-
}, contentEditable: !this.disabled, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, onPaste: this.handlePaste, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd, onMouseUp: this.updateActiveStates, "data-placeholder": this.placeholder }), this._showSlashMenu && (h("div", { key: '
|
|
1240
|
+
}, contentEditable: !this.disabled, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp, onPaste: this.handlePaste, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd, onMouseUp: this.updateActiveStates, "data-placeholder": this.placeholder }), this._showSlashMenu && (h("div", { key: 'a2693203058522bd68615ee7af1c9a6acad272df', class: "slash-menu", style: {
|
|
1235
1241
|
left: `${this._slashMenuPosition.x}px`,
|
|
1236
1242
|
top: `${this._slashMenuPosition.y}px`,
|
|
1237
|
-
} }, this.getFilteredSlashCommands().map(
|
|
1243
|
+
} }, this.getFilteredSlashCommands().map(cmd => (h("div", { class: "slash-menu-item", onClick: () => this.executeSlashCommand(cmd) }, h("div", { class: "slash-menu-icon" }, cmd.icon), h("span", { class: "slash-menu-label" }, cmd.label))))))), this.renderModal()));
|
|
1238
1244
|
}
|
|
1239
1245
|
static get is() { return "x-editor"; }
|
|
1240
1246
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1376,11 +1382,11 @@ export class XEditor {
|
|
|
1376
1382
|
"name": "type",
|
|
1377
1383
|
"text": "{ToolbarConfig}"
|
|
1378
1384
|
}],
|
|
1379
|
-
"text": "Configuration for the toolbar groups and actions.\
|
|
1385
|
+
"text": "Configuration for the toolbar groups and actions.\nAllows customizing which tools are available to the user."
|
|
1380
1386
|
},
|
|
1381
1387
|
"getter": false,
|
|
1382
1388
|
"setter": false,
|
|
1383
|
-
"defaultValue": "[\
|
|
1389
|
+
"defaultValue": "[\n {\n name: 'history',\n actions: [\n { type: 'undo', title: translate('Editor.undo', {}, 'Undo (Ctrl+Z)') },\n { type: 'redo', title: translate('Editor.redo', {}, 'Redo (Ctrl+Shift+Z)') },\n ],\n },\n 'divider',\n {\n name: 'text',\n actions: [\n { type: 'bold', title: translate('Editor.bold', {}, 'Bold (Ctrl+B)') },\n { type: 'italic', title: translate('Editor.italic', {}, 'Italic (Ctrl+I)') },\n { type: 'underline', title: translate('Editor.underline', {}, 'Underline (Ctrl+U)') },\n { type: 'strikethrough', title: translate('Editor.strikethrough', {}, 'Strikethrough') },\n ],\n },\n 'divider',\n {\n name: 'colors',\n actions: [\n { type: 'textColor', title: translate('Editor.textColor', {}, 'Text Color') },\n { type: 'backgroundColor', title: translate('Editor.backgroundColor', {}, 'Background Color') },\n ],\n },\n 'divider',\n {\n name: 'typography',\n actions: [\n { type: 'fontFamily', title: translate('Editor.fontFamily', {}, 'Font Family') },\n { type: 'fontSize', title: translate('Editor.fontSize', {}, 'Font Size') },\n ],\n },\n 'divider',\n {\n name: 'blocks',\n actions: [\n { type: 'h1', title: translate('Editor.h1', {}, 'Heading 1') },\n { type: 'h2', title: translate('Editor.h2', {}, 'Heading 2') },\n { type: 'h3', title: translate('Editor.h3', {}, 'Heading 3') },\n { type: 'h4', title: translate('Editor.h4', {}, 'Heading 4') },\n { type: 'h5', title: translate('Editor.h5', {}, 'Heading 5') },\n { type: 'h6', title: translate('Editor.h6', {}, 'Heading 6') },\n { type: 'paragraph', title: translate('Editor.paragraph', {}, 'Paragraph') },\n { type: 'blockquote', title: translate('Editor.blockquote', {}, 'Quote') },\n { type: 'code', title: translate('Editor.codeBlock', {}, 'Code Block') },\n ],\n },\n 'divider',\n {\n name: 'alignment',\n actions: [\n { type: 'alignLeft', title: translate('Editor.alignLeft', {}, 'Align Left') },\n { type: 'alignCenter', title: translate('Editor.alignCenter', {}, 'Align Center') },\n { type: 'alignRight', title: translate('Editor.alignRight', {}, 'Align Right') },\n { type: 'alignJustify', title: translate('Editor.alignJustify', {}, 'Align Justify') },\n ],\n },\n 'divider',\n {\n name: 'indentation',\n actions: [\n { type: 'outdent', title: translate('Editor.outdent', {}, 'Decrease Indent') },\n { type: 'indent', title: translate('Editor.indent', {}, 'Increase Indent') },\n ],\n },\n 'divider',\n {\n name: 'insert',\n actions: [\n { type: 'link', title: translate('Editor.insertLink', {}, 'Insert Link') },\n { type: 'image', title: translate('Editor.insertImage', {}, 'Insert Image') },\n { type: 'video', title: translate('Editor.insertVideo', {}, 'Insert Video') },\n { type: 'file', title: translate('Editor.insertFile', {}, 'Insert File') },\n { type: 'table', title: translate('Editor.insertTable', {}, 'Insert Table') },\n { type: 'hr', title: translate('Editor.horizontalLine', {}, 'Horizontal Line') },\n ],\n },\n ]"
|
|
1384
1390
|
}
|
|
1385
1391
|
};
|
|
1386
1392
|
}
|
|
@@ -1435,7 +1441,7 @@ export class XEditor {
|
|
|
1435
1441
|
"return": "Promise<EditorState>"
|
|
1436
1442
|
},
|
|
1437
1443
|
"docs": {
|
|
1438
|
-
"text": "Retrieves the current editor state as a structured object.\
|
|
1444
|
+
"text": "Retrieves the current editor state as a structured object.\nThis includes the block hierarchy and formatting metadata.",
|
|
1439
1445
|
"tags": [{
|
|
1440
1446
|
"name": "returns",
|
|
1441
1447
|
"text": "The parsed state object."
|
|
@@ -1512,7 +1518,7 @@ export class XEditor {
|
|
|
1512
1518
|
"return": "Promise<void>"
|
|
1513
1519
|
},
|
|
1514
1520
|
"docs": {
|
|
1515
|
-
"text": "Replaces the entire editor content with the provided HTML string.\
|
|
1521
|
+
"text": "Replaces the entire editor content with the provided HTML string.\nContent is automatically normalized after insertion.",
|
|
1516
1522
|
"tags": [{
|
|
1517
1523
|
"name": "param",
|
|
1518
1524
|
"text": "html - The new HTML content."
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
--x-color-text-label: rgba(0, 0, 0, 0.65);
|
|
97
97
|
--x-color-text-description: rgba(0, 0, 0, 0.45);
|
|
98
98
|
--x-color-text-light-solid: #ffffff;
|
|
99
|
+
--x-color-text-processing: #ffffff;
|
|
99
100
|
/** Background Colors **/
|
|
100
101
|
--x-color-bg-container: #ffffff;
|
|
101
102
|
--x-color-bg-elevated: #ffffff;
|
|
@@ -138,8 +139,10 @@
|
|
|
138
139
|
--x-color-light-shade: #d7d8da;
|
|
139
140
|
--x-color-light-tint: #f5f6f9;
|
|
140
141
|
/** Font Family **/
|
|
141
|
-
--x-font-family:
|
|
142
|
-
|
|
142
|
+
--x-font-family:
|
|
143
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
144
|
+
'Noto Color Emoji';
|
|
145
|
+
--x-font-family-code: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
143
146
|
/** Font Sizes **/
|
|
144
147
|
--x-font-size: 14px;
|
|
145
148
|
--x-font-size-sm: 12px;
|
|
@@ -33,7 +33,7 @@ export class XEmpty {
|
|
|
33
33
|
* <x-empty><button>Reload</button></x-empty>
|
|
34
34
|
*/
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'e9f74536a095432977b48fe86626120f73755300', class: "x-empty" }, h("div", { key: '15331cdcbd14ced17b55c25bce791bc05dcb3a33', class: "x-empty-image" }, h("slot", { key: '498e21a359050dcdc46abfc48b5b38ad1209a23a', name: "image" }, this.image === 'empty' ? (this.empty()) : this.image === 'simple' ? (this.simple()) : this.image ? (h("img", { src: this.image, alt: this.description })) : (h("svg", { class: "x-empty-img-default", width: "184", height: "152", viewBox: "0 0 184 152", xmlns: "http://www.w3.org/2000/svg" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("g", { transform: "translate(24 31.67)" }, h("ellipse", { "fill-opacity": ".8", fill: "#F5F5F7", cx: "67.797", cy: "106.89", rx: "67.797", ry: "12.668" }), h("path", { d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z", fill: "#AEB8C2" }), h("path", { d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z", fill: "url(#linearGradient-1)", transform: "translate(13.56)" }), h("path", { d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z", fill: "#F5F5F7" }), h("path", { d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z", fill: "#DCE0E6" })), h("path", { d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z", fill: "#DCE0E6" }), h("g", { transform: "translate(149.65 15.383)", fill: "#FFF" }, h("ellipse", { cx: "20.654", cy: "3.167", rx: "2.849", ry: "2.815" }), h("path", { d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" }))))))), h("div", { key: '0bea4a4a4e12cf33a68abcca7a864de22d7bd869', class: "x-empty-description" }, h("slot", { key: '3dcf3b8a1110383e927ccc7acdc1d2ab288c45dc', name: "description" }, this.description)), h("div", { key: 'c7ff39656cf7f33040a4b0d8487093c047f043b7', class: "x-empty-footer" }, h("slot", { key: '42616de3f344f85ded08a63b69c00820d40baf7e' }))));
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Render the "empty" preset SVG.
|
|
@@ -14,7 +14,7 @@ export class FinderService {
|
|
|
14
14
|
sortBy: 'name',
|
|
15
15
|
sortOrder: 'asc',
|
|
16
16
|
showDetails: true,
|
|
17
|
-
storage: { used: 12.4, total: 20 }
|
|
17
|
+
storage: { used: 12.4, total: 20 },
|
|
18
18
|
};
|
|
19
19
|
onChange;
|
|
20
20
|
constructor(config, onStateChange) {
|
|
@@ -64,7 +64,7 @@ export class FinderService {
|
|
|
64
64
|
return true;
|
|
65
65
|
}
|
|
66
66
|
return false;
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
async createProject() {
|
|
@@ -83,7 +83,7 @@ export class FinderService {
|
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
85
85
|
return false;
|
|
86
|
-
}
|
|
86
|
+
},
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
async upload(file) {
|
|
@@ -116,7 +116,7 @@ export class FinderService {
|
|
|
116
116
|
return true;
|
|
117
117
|
}
|
|
118
118
|
return false;
|
|
119
|
-
}
|
|
119
|
+
},
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
async delete(item) {
|
|
@@ -132,7 +132,7 @@ export class FinderService {
|
|
|
132
132
|
if (success) {
|
|
133
133
|
await this.loadItems();
|
|
134
134
|
}
|
|
135
|
-
}
|
|
135
|
+
},
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
download(item) {
|
|
@@ -180,9 +180,7 @@ export class FinderService {
|
|
|
180
180
|
selectItem(item, multi = false) {
|
|
181
181
|
if (multi) {
|
|
182
182
|
const index = this.state.selectedItems.findIndex(i => i.id === item.id);
|
|
183
|
-
const newSelection = index > -1
|
|
184
|
-
? this.state.selectedItems.filter(i => i.id !== item.id)
|
|
185
|
-
: [...this.state.selectedItems, item];
|
|
183
|
+
const newSelection = index > -1 ? this.state.selectedItems.filter(i => i.id !== item.id) : [...this.state.selectedItems, item];
|
|
186
184
|
this.updateState({ selectedItems: newSelection });
|
|
187
185
|
}
|
|
188
186
|
else {
|
|
@@ -214,7 +212,7 @@ export class FinderService {
|
|
|
214
212
|
valB = b.name.toLowerCase();
|
|
215
213
|
}
|
|
216
214
|
const order = this.state.sortOrder === 'asc' ? 1 : -1;
|
|
217
|
-
return valA > valB ? order :
|
|
215
|
+
return valA > valB ? order : valA < valB ? -order : 0;
|
|
218
216
|
});
|
|
219
217
|
this.state.filteredItems = result;
|
|
220
218
|
}
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
--x-color-text-label: rgba(0, 0, 0, 0.65);
|
|
97
97
|
--x-color-text-description: rgba(0, 0, 0, 0.45);
|
|
98
98
|
--x-color-text-light-solid: #ffffff;
|
|
99
|
+
--x-color-text-processing: #ffffff;
|
|
99
100
|
/** Background Colors **/
|
|
100
101
|
--x-color-bg-container: #ffffff;
|
|
101
102
|
--x-color-bg-elevated: #ffffff;
|
|
@@ -138,8 +139,10 @@
|
|
|
138
139
|
--x-color-light-shade: #d7d8da;
|
|
139
140
|
--x-color-light-tint: #f5f6f9;
|
|
140
141
|
/** Font Family **/
|
|
141
|
-
--x-font-family:
|
|
142
|
-
|
|
142
|
+
--x-font-family:
|
|
143
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
144
|
+
'Noto Color Emoji';
|
|
145
|
+
--x-font-family-code: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
143
146
|
/** Font Sizes **/
|
|
144
147
|
--x-font-size: 14px;
|
|
145
148
|
--x-font-size-sm: 12px;
|
|
@@ -438,7 +441,8 @@
|
|
|
438
441
|
width: 100%;
|
|
439
442
|
aspect-ratio: 16/10;
|
|
440
443
|
}
|
|
441
|
-
.grid-item .thumbnail img,
|
|
444
|
+
.grid-item .thumbnail img,
|
|
445
|
+
.grid-item .thumbnail x-image {
|
|
442
446
|
width: 100%;
|
|
443
447
|
height: 100%;
|
|
444
448
|
object-fit: cover;
|
|
@@ -523,7 +527,9 @@
|
|
|
523
527
|
overflow: hidden;
|
|
524
528
|
text-overflow: ellipsis;
|
|
525
529
|
}
|
|
526
|
-
.list-item .type,
|
|
530
|
+
.list-item .type,
|
|
531
|
+
.list-item .size,
|
|
532
|
+
.list-item .date {
|
|
527
533
|
font-size: 13px;
|
|
528
534
|
color: var(--x-finder-text-secondary, var(--x-text-color-secondary, #64748b));
|
|
529
535
|
width: 120px;
|