@xlabs-store/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/components/index.d.ts +35 -0
- package/components/index.js +1 -0
- package/components/p-5c86X8JO.js +1 -0
- package/components/p-6KpqCGp9.js +1 -0
- package/components/p-ADwHM_jT.js +1 -0
- package/components/p-AgSyA7Ia.js +1 -0
- package/components/p-B-7Hwizp.js +1 -0
- package/components/p-B-ClGFfy.js +1 -0
- package/components/p-B4R9Mtmk.js +1 -0
- package/components/p-B4rO7Sgt.js +1 -0
- package/components/p-B5Syz0fw.js +1 -0
- package/components/p-B6p-mzW-.js +1 -0
- package/components/p-B8SZP5Xz.js +1 -0
- package/components/p-BBGHXZqR.js +1 -0
- package/components/p-BHLvuyOq.js +1 -0
- package/components/p-BM-ap7lt.js +1 -0
- package/components/p-BOCR5Zk0.js +1 -0
- package/components/p-BPeosvTA.js +1 -0
- package/components/p-BRBrLtOz.js +1 -0
- package/components/p-BSRP2TGa.js +1 -0
- package/components/p-BUjRcJoK.js +1 -0
- package/components/p-BVeQ5W_G.js +1 -0
- package/components/p-BVnVlCcd.js +1 -0
- package/components/p-BZQcq9R_.js +1 -0
- package/components/p-BeIFU-wn.js +1 -0
- package/components/p-BkEgl31q.js +1 -0
- package/components/p-BkPJ1Whr.js +1 -0
- package/components/p-BkevSugc.js +1 -0
- package/components/p-BkiOFW3H.js +1 -0
- package/components/p-BskMfHyY.js +1 -0
- package/components/p-Bu2JqZs8.js +1 -0
- package/components/p-BvjR2Q5Q.js +1 -0
- package/components/p-Bz7MhZ4K.js +1 -0
- package/components/p-C3gvR6nN.js +1 -0
- package/components/p-C70KKm8p.js +1 -0
- package/components/p-C7csgUoA.js +1 -0
- package/components/p-CAPfC5Vn.js +1 -0
- package/components/p-CEBSDVyp.js +1 -0
- package/components/p-CFB6xkAX.js +1 -0
- package/components/p-CGIxdOEm.js +1 -0
- package/components/p-CGYOWZnh.js +1 -0
- package/components/p-CHRrsVXB.js +1 -0
- package/components/p-CKUzvJue.js +1 -0
- package/components/p-CKVSyuIH.js +1 -0
- package/components/p-COpzIi1n.js +1 -0
- package/components/p-CRBPzT4B.js +1 -0
- package/components/p-CSfrs76m.js +1 -0
- package/components/p-C_ZBjXFP.js +1 -0
- package/components/p-Cd919NAP.js +1 -0
- package/components/p-Ce32Mo_Q.js +1 -0
- package/components/p-Ce5L9qbY.js +1 -0
- package/components/p-CeBfFEIa.js +1 -0
- package/components/p-CfhgoXyB.js +1 -0
- package/components/p-Ck6SW8G3.js +1 -0
- package/components/p-Co3Y9VjQ.js +1 -0
- package/components/p-D66tF8_2.js +1 -0
- package/components/p-D7ijqXRY.js +1 -0
- package/components/p-D7n-26Q5.js +1 -0
- package/components/p-D8ew7Rgv.js +1 -0
- package/components/p-DBk4T-b-.js +1 -0
- package/components/p-DD-W_fMF.js +1 -0
- package/components/p-DElCk9ta.js +1 -0
- package/components/p-DEumEVI3.js +1 -0
- package/components/p-DGqQ8PT4.js +1 -0
- package/components/p-DJ1WhSJ4.js +1 -0
- package/components/p-DOxXxhXb.js +1 -0
- package/components/p-DRa4o4c6.js +1 -0
- package/components/p-DTlSrH8_.js +1 -0
- package/components/p-DTvD0UO5.js +1 -0
- package/components/p-DVz50Dd3.js +1 -0
- package/components/p-DZFphzg1.js +1 -0
- package/components/p-DZPUUptR.js +1 -0
- package/components/p-D_xaGiZU.js +1 -0
- package/components/p-DaL42JUi.js +1 -0
- package/components/p-DbRpEXwX.js +1 -0
- package/components/p-DcRlYBIl.js +1 -0
- package/components/p-Dg0xgMke.js +1 -0
- package/components/p-Dgxy93Bg.js +1 -0
- package/components/p-Dky_8i8S.js +1 -0
- package/components/p-DlwlBBr4.js +1 -0
- package/components/p-DoTf8yXn.js +1 -0
- package/components/p-DphUq6Z5.js +1 -0
- package/components/p-DsgWQbJY.js +1 -0
- package/components/p-Dx3yBe39.js +1 -0
- package/components/p-DxKMnrS8.js +1 -0
- package/components/p-O88oQkR1.js +1 -0
- package/components/p-PlUkLT0A.js +1 -0
- package/components/p-QTSiPk0I.js +1 -0
- package/components/p-TC9DZAbC.js +1 -0
- package/components/p-XBF88YT_.js +1 -0
- package/components/p-bVsOg7S9.js +1 -0
- package/components/p-ccpcKv5U.js +1 -0
- package/components/p-en06CSUT.js +1 -0
- package/components/p-g6ZBqIze.js +1 -0
- package/components/p-noTpj1Kh.js +1 -0
- package/components/x-address.d.ts +11 -0
- package/components/x-address.js +1 -0
- package/components/x-affix.d.ts +11 -0
- package/components/x-affix.js +1 -0
- package/components/x-alert.d.ts +11 -0
- package/components/x-alert.js +1 -0
- package/components/x-anchor-link.d.ts +11 -0
- package/components/x-anchor-link.js +1 -0
- package/components/x-anchor.d.ts +11 -0
- package/components/x-anchor.js +1 -0
- package/components/x-app.d.ts +11 -0
- package/components/x-app.js +1 -0
- package/components/x-auto-complete-dropdown-content.d.ts +11 -0
- package/components/x-auto-complete-dropdown-content.js +1 -0
- package/components/x-auto-complete.d.ts +11 -0
- package/components/x-auto-complete.js +1 -0
- package/components/x-avatar.d.ts +11 -0
- package/components/x-avatar.js +1 -0
- package/components/x-back-top.d.ts +11 -0
- package/components/x-back-top.js +1 -0
- package/components/x-badge.d.ts +11 -0
- package/components/x-badge.js +1 -0
- package/components/x-breadcrumb-item.d.ts +11 -0
- package/components/x-breadcrumb-item.js +1 -0
- package/components/x-breadcrumb.d.ts +11 -0
- package/components/x-breadcrumb.js +1 -0
- package/components/x-button.d.ts +11 -0
- package/components/x-button.js +1 -0
- package/components/x-captcha.d.ts +11 -0
- package/components/x-captcha.js +1 -0
- package/components/x-card.d.ts +11 -0
- package/components/x-card.js +1 -0
- package/components/x-carousel.d.ts +11 -0
- package/components/x-carousel.js +1 -0
- package/components/x-cascader-dropdown-content.d.ts +11 -0
- package/components/x-cascader-dropdown-content.js +1 -0
- package/components/x-cascader.d.ts +11 -0
- package/components/x-cascader.js +1 -0
- package/components/x-checkbox.d.ts +11 -0
- package/components/x-checkbox.js +1 -0
- package/components/x-col.d.ts +11 -0
- package/components/x-col.js +1 -0
- package/components/x-collapse-panel.d.ts +11 -0
- package/components/x-collapse-panel.js +1 -0
- package/components/x-collapse.d.ts +11 -0
- package/components/x-collapse.js +1 -0
- package/components/x-color-picker-panel.d.ts +11 -0
- package/components/x-color-picker-panel.js +1 -0
- package/components/x-color-picker.d.ts +11 -0
- package/components/x-color-picker.js +1 -0
- package/components/x-comment.d.ts +11 -0
- package/components/x-comment.js +1 -0
- package/components/x-content.d.ts +11 -0
- package/components/x-content.js +1 -0
- package/components/x-date-picker-dropdown-content.d.ts +11 -0
- package/components/x-date-picker-dropdown-content.js +1 -0
- package/components/x-date-picker.d.ts +11 -0
- package/components/x-date-picker.js +1 -0
- package/components/x-descriptions-item.d.ts +11 -0
- package/components/x-descriptions-item.js +1 -0
- package/components/x-descriptions.d.ts +11 -0
- package/components/x-descriptions.js +1 -0
- package/components/x-divider.d.ts +11 -0
- package/components/x-divider.js +1 -0
- package/components/x-drawer-content.d.ts +11 -0
- package/components/x-drawer-content.js +1 -0
- package/components/x-drawer.d.ts +11 -0
- package/components/x-drawer.js +1 -0
- package/components/x-dropdown-content.d.ts +11 -0
- package/components/x-dropdown-content.js +1 -0
- package/components/x-dropdown.d.ts +11 -0
- package/components/x-dropdown.js +1 -0
- package/components/x-editor.d.ts +11 -0
- package/components/x-editor.js +1 -0
- package/components/x-empty.d.ts +11 -0
- package/components/x-empty.js +1 -0
- package/components/x-finder.d.ts +11 -0
- package/components/x-finder.js +1 -0
- package/components/x-flex.d.ts +11 -0
- package/components/x-flex.js +1 -0
- package/components/x-float-button.d.ts +11 -0
- package/components/x-float-button.js +1 -0
- package/components/x-footer.d.ts +11 -0
- package/components/x-footer.js +1 -0
- package/components/x-form-builder.d.ts +11 -0
- package/components/x-form-builder.js +1 -0
- package/components/x-form-item.d.ts +11 -0
- package/components/x-form-item.js +1 -0
- package/components/x-form.d.ts +11 -0
- package/components/x-form.js +1 -0
- package/components/x-header.d.ts +11 -0
- package/components/x-header.js +1 -0
- package/components/x-icon.d.ts +11 -0
- package/components/x-icon.js +1 -0
- package/components/x-image.d.ts +11 -0
- package/components/x-image.js +1 -0
- package/components/x-infinite-scroll.d.ts +11 -0
- package/components/x-infinite-scroll.js +1 -0
- package/components/x-input-number.d.ts +11 -0
- package/components/x-input-number.js +1 -0
- package/components/x-input.d.ts +11 -0
- package/components/x-input.js +1 -0
- package/components/x-layout.d.ts +11 -0
- package/components/x-layout.js +1 -0
- package/components/x-list-item.d.ts +11 -0
- package/components/x-list-item.js +1 -0
- package/components/x-list.d.ts +11 -0
- package/components/x-list.js +1 -0
- package/components/x-mentions.d.ts +11 -0
- package/components/x-mentions.js +1 -0
- package/components/x-menu-divider.d.ts +11 -0
- package/components/x-menu-divider.js +1 -0
- package/components/x-menu-item-group.d.ts +11 -0
- package/components/x-menu-item-group.js +1 -0
- package/components/x-menu-item.d.ts +11 -0
- package/components/x-menu-item.js +1 -0
- package/components/x-menu-submenu.d.ts +11 -0
- package/components/x-menu-submenu.js +1 -0
- package/components/x-menu.d.ts +11 -0
- package/components/x-menu.js +1 -0
- package/components/x-message.d.ts +11 -0
- package/components/x-message.js +1 -0
- package/components/x-modal-content.d.ts +11 -0
- package/components/x-modal-content.js +1 -0
- package/components/x-modal.d.ts +11 -0
- package/components/x-modal.js +1 -0
- package/components/x-notification.d.ts +11 -0
- package/components/x-notification.js +1 -0
- package/components/x-page-header.d.ts +11 -0
- package/components/x-page-header.js +1 -0
- package/components/x-pagination.d.ts +11 -0
- package/components/x-pagination.js +1 -0
- package/components/x-popconfirm-content.d.ts +11 -0
- package/components/x-popconfirm-content.js +1 -0
- package/components/x-popconfirm.d.ts +11 -0
- package/components/x-popconfirm.js +1 -0
- package/components/x-popover-content.d.ts +11 -0
- package/components/x-popover-content.js +1 -0
- package/components/x-popover.d.ts +11 -0
- package/components/x-popover.js +1 -0
- package/components/x-progress.d.ts +11 -0
- package/components/x-progress.js +1 -0
- package/components/x-qr-code.d.ts +11 -0
- package/components/x-qr-code.js +1 -0
- package/components/x-radio-group.d.ts +11 -0
- package/components/x-radio-group.js +1 -0
- package/components/x-radio.d.ts +11 -0
- package/components/x-radio.js +1 -0
- package/components/x-range-picker-dropdown-content.d.ts +11 -0
- package/components/x-range-picker-dropdown-content.js +1 -0
- package/components/x-range-picker.d.ts +11 -0
- package/components/x-range-picker.js +1 -0
- package/components/x-rate.d.ts +11 -0
- package/components/x-rate.js +1 -0
- package/components/x-result.d.ts +11 -0
- package/components/x-result.js +1 -0
- package/components/x-row.d.ts +11 -0
- package/components/x-row.js +1 -0
- package/components/x-segmented.d.ts +11 -0
- package/components/x-segmented.js +1 -0
- package/components/x-select-dropdown-content.d.ts +11 -0
- package/components/x-select-dropdown-content.js +1 -0
- package/components/x-select-option.d.ts +11 -0
- package/components/x-select-option.js +1 -0
- package/components/x-select.d.ts +11 -0
- package/components/x-select.js +1 -0
- package/components/x-sider.d.ts +11 -0
- package/components/x-sider.js +1 -0
- package/components/x-skeleton.d.ts +11 -0
- package/components/x-skeleton.js +1 -0
- package/components/x-slider.d.ts +11 -0
- package/components/x-slider.js +1 -0
- package/components/x-space.d.ts +11 -0
- package/components/x-space.js +1 -0
- package/components/x-spin.d.ts +11 -0
- package/components/x-spin.js +1 -0
- package/components/x-splitter-panel.d.ts +11 -0
- package/components/x-splitter-panel.js +1 -0
- package/components/x-splitter.d.ts +11 -0
- package/components/x-splitter.js +1 -0
- package/components/x-statistic.d.ts +11 -0
- package/components/x-statistic.js +1 -0
- package/components/x-step.d.ts +11 -0
- package/components/x-step.js +1 -0
- package/components/x-steps.d.ts +11 -0
- package/components/x-steps.js +1 -0
- package/components/x-switch.d.ts +11 -0
- package/components/x-switch.js +1 -0
- package/components/x-tab-pane.d.ts +11 -0
- package/components/x-tab-pane.js +1 -0
- package/components/x-table-cell.d.ts +11 -0
- package/components/x-table-cell.js +1 -0
- package/components/x-table-row.d.ts +11 -0
- package/components/x-table-row.js +1 -0
- package/components/x-table.d.ts +11 -0
- package/components/x-table.js +1 -0
- package/components/x-tabs.d.ts +11 -0
- package/components/x-tabs.js +1 -0
- package/components/x-tag.d.ts +11 -0
- package/components/x-tag.js +1 -0
- package/components/x-textarea.d.ts +11 -0
- package/components/x-textarea.js +1 -0
- package/components/x-time-picker-dropdown-content.d.ts +11 -0
- package/components/x-time-picker-dropdown-content.js +1 -0
- package/components/x-time-picker.d.ts +11 -0
- package/components/x-time-picker.js +1 -0
- package/components/x-timeline-item.d.ts +11 -0
- package/components/x-timeline-item.js +1 -0
- package/components/x-timeline.d.ts +11 -0
- package/components/x-timeline.js +1 -0
- package/components/x-tooltip-content.d.ts +11 -0
- package/components/x-tooltip-content.js +1 -0
- package/components/x-tooltip.d.ts +11 -0
- package/components/x-tooltip.js +1 -0
- package/components/x-tour-panel.d.ts +11 -0
- package/components/x-tour-panel.js +1 -0
- package/components/x-tour.d.ts +11 -0
- package/components/x-tour.js +1 -0
- package/components/x-transfer.d.ts +11 -0
- package/components/x-transfer.js +1 -0
- package/components/x-tree-select-dropdown-content.d.ts +11 -0
- package/components/x-tree-select-dropdown-content.js +1 -0
- package/components/x-tree-select.d.ts +11 -0
- package/components/x-tree-select.js +1 -0
- package/components/x-tree.d.ts +11 -0
- package/components/x-tree.js +1 -0
- package/components/x-typography.d.ts +11 -0
- package/components/x-typography.js +1 -0
- package/components/x-upload.d.ts +11 -0
- package/components/x-upload.js +1 -0
- package/components/x-virtual-scroll.d.ts +11 -0
- package/components/x-virtual-scroll.js +1 -0
- package/components/x-workflow-builder.d.ts +11 -0
- package/components/x-workflow-builder.js +1 -0
- package/components/x-workflow.d.ts +11 -0
- package/components/x-workflow.js +1 -0
- package/dist/cjs/abstract-control-C4D0eNCC.js +277 -0
- package/dist/cjs/config-BP9bROYD.js +63 -0
- package/dist/cjs/index-C7sKs9A2.js +2170 -0
- package/dist/cjs/index.cjs.js +14 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/locale.service-Cz-aZQnr.js +8203 -0
- package/dist/cjs/modal-service-BtAF0mFq.js +399 -0
- package/dist/cjs/notification-service-m6I5U9aG.js +602 -0
- package/dist/cjs/portal-controller-CtYVbhXL.js +504 -0
- package/dist/cjs/schema-builder-CYnX7lKi.js +1505 -0
- package/dist/cjs/tree.service-fxLOCSpD.js +339 -0
- package/dist/cjs/types-DQ-V76ZQ.js +255 -0
- package/dist/cjs/x-address_14.cjs.entry.js +12577 -0
- package/dist/cjs/x-affix.cjs.entry.js +182 -0
- package/dist/cjs/x-alert_11.cjs.entry.js +3239 -0
- package/dist/cjs/x-anchor-link.cjs.entry.js +67 -0
- package/dist/cjs/x-anchor.cjs.entry.js +158 -0
- package/dist/cjs/x-app.cjs.entry.js +137 -0
- package/dist/cjs/x-auto-complete-dropdown-content.cjs.entry.js +69 -0
- package/dist/cjs/x-avatar.cjs.entry.js +269 -0
- package/dist/cjs/x-back-top.cjs.entry.js +89 -0
- package/dist/cjs/x-breadcrumb_5.cjs.entry.js +1554 -0
- package/dist/cjs/x-button.cjs.entry.js +174 -0
- package/dist/cjs/x-card_12.cjs.entry.js +1386 -0
- package/dist/cjs/x-carousel.cjs.entry.js +147 -0
- package/dist/cjs/x-cascader-dropdown-content.cjs.entry.js +364 -0
- package/dist/cjs/x-checkbox_5.cjs.entry.js +1376 -0
- package/dist/cjs/x-collapse-panel.cjs.entry.js +243 -0
- package/dist/cjs/x-collapse.cjs.entry.js +291 -0
- package/dist/cjs/x-color-picker-panel_2.cjs.entry.js +873 -0
- package/dist/cjs/x-color-picker_9.cjs.entry.js +3085 -0
- package/dist/cjs/x-comment.cjs.entry.js +189 -0
- package/dist/cjs/x-date-picker-dropdown-content.cjs.entry.js +757 -0
- package/dist/cjs/x-descriptions-item.cjs.entry.js +108 -0
- package/dist/cjs/x-drawer-content.cjs.entry.js +197 -0
- package/dist/cjs/x-drawer.cjs.entry.js +294 -0
- package/dist/cjs/x-dropdown_2.cjs.entry.js +735 -0
- package/dist/cjs/x-empty.cjs.entry.js +64 -0
- package/dist/cjs/x-finder.cjs.entry.js +647 -0
- package/dist/cjs/x-form-builder.cjs.entry.js +807 -0
- package/dist/cjs/x-icon.cjs.entry.js +144 -0
- package/dist/cjs/x-infinite-scroll.cjs.entry.js +129 -0
- package/dist/cjs/x-list-item.cjs.entry.js +27 -0
- package/dist/cjs/x-list.cjs.entry.js +138 -0
- package/dist/cjs/x-mentions.cjs.entry.js +275 -0
- package/dist/cjs/x-menu-divider.cjs.entry.js +49 -0
- package/dist/cjs/x-menu-item-group.cjs.entry.js +149 -0
- package/dist/cjs/x-menu-submenu.cjs.entry.js +373 -0
- package/dist/cjs/x-message.cjs.entry.js +219 -0
- package/dist/cjs/x-modal-content.cjs.entry.js +217 -0
- package/dist/cjs/x-notification.cjs.entry.js +325 -0
- package/dist/cjs/x-page-header.cjs.entry.js +67 -0
- package/dist/cjs/x-popconfirm-content.cjs.entry.js +72 -0
- package/dist/cjs/x-popconfirm.cjs.entry.js +181 -0
- package/dist/cjs/x-progress.cjs.entry.js +136 -0
- package/dist/cjs/x-qr-code.cjs.entry.js +446 -0
- package/dist/cjs/x-range-picker-dropdown-content.cjs.entry.js +821 -0
- package/dist/cjs/x-select_2.cjs.entry.js +1316 -0
- package/dist/cjs/x-skeleton.cjs.entry.js +75 -0
- package/dist/cjs/x-spin.cjs.entry.js +62 -0
- package/dist/cjs/x-splitter-panel.cjs.entry.js +91 -0
- package/dist/cjs/x-splitter.cjs.entry.js +612 -0
- package/dist/cjs/x-statistic.cjs.entry.js +104 -0
- package/dist/cjs/x-step.cjs.entry.js +179 -0
- package/dist/cjs/x-steps.cjs.entry.js +439 -0
- package/dist/cjs/x-tab-pane.cjs.entry.js +73 -0
- package/dist/cjs/x-table-cell.cjs.entry.js +45 -0
- package/dist/cjs/x-table-row.cjs.entry.js +85 -0
- package/dist/cjs/x-tabs.cjs.entry.js +609 -0
- package/dist/cjs/x-time-picker-dropdown-content.cjs.entry.js +389 -0
- package/dist/cjs/x-timeline-item.cjs.entry.js +50 -0
- package/dist/cjs/x-timeline.cjs.entry.js +52 -0
- package/dist/cjs/x-tour-panel.cjs.entry.js +89 -0
- package/dist/cjs/x-tour.cjs.entry.js +344 -0
- package/dist/cjs/x-tree-select-dropdown-content.cjs.entry.js +439 -0
- package/dist/cjs/x-virtual-scroll.cjs.entry.js +203 -0
- package/dist/cjs/x-workflow-builder.cjs.entry.js +366 -0
- package/dist/cjs/xlabs-store.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +130 -0
- package/dist/collection/components/x-address/vietnam-data.js +28 -0
- package/dist/collection/components/x-address/x-address.css +367 -0
- package/dist/collection/components/x-address/x-address.js +403 -0
- package/dist/collection/components/x-affix/x-affix.css +27 -0
- package/dist/collection/components/x-affix/x-affix.js +299 -0
- package/dist/collection/components/x-alert/x-alert.css +475 -0
- package/dist/collection/components/x-alert/x-alert.js +273 -0
- package/dist/collection/components/x-anchor/x-anchor.css +74 -0
- package/dist/collection/components/x-anchor/x-anchor.js +371 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.css +43 -0
- package/dist/collection/components/x-anchor-link/x-anchor-link.js +145 -0
- package/dist/collection/components/x-app/x-app.css +14 -0
- package/dist/collection/components/x-app/x-app.js +308 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.css +410 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.js +166 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-auto-complete/auto-complete-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-auto-complete/types.js +61 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.css +535 -0
- package/dist/collection/components/x-auto-complete/x-auto-complete.js +1829 -0
- package/dist/collection/components/x-avatar/types.js +1 -0
- package/dist/collection/components/x-avatar/x-avatar.css +128 -0
- package/dist/collection/components/x-avatar/x-avatar.js +533 -0
- package/dist/collection/components/x-back-top/x-back-top.css +56 -0
- package/dist/collection/components/x-back-top/x-back-top.js +148 -0
- package/dist/collection/components/x-badge/types.js +1 -0
- package/dist/collection/components/x-badge/x-badge.css +233 -0
- package/dist/collection/components/x-badge/x-badge.js +618 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.css +44 -0
- package/dist/collection/components/x-breadcrumb/x-breadcrumb.js +96 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.css +63 -0
- package/dist/collection/components/x-breadcrumb-item/x-breadcrumb-item.js +147 -0
- package/dist/collection/components/x-button/x-button.css +278 -0
- package/dist/collection/components/x-button/x-button.js +488 -0
- package/dist/collection/components/x-captcha/x-captcha.css +125 -0
- package/dist/collection/components/x-captcha/x-captcha.js +408 -0
- package/dist/collection/components/x-card/x-card.css +523 -0
- package/dist/collection/components/x-card/x-card.js +389 -0
- package/dist/collection/components/x-carousel/x-carousel.css +417 -0
- package/dist/collection/components/x-carousel/x-carousel.js +257 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.css +529 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.js +771 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-cascader/cascader-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-cascader/types.js +1 -0
- package/dist/collection/components/x-cascader/x-cascader.css +691 -0
- package/dist/collection/components/x-cascader/x-cascader.js +1841 -0
- package/dist/collection/components/x-checkbox/types.js +1 -0
- package/dist/collection/components/x-checkbox/x-checkbox.css +541 -0
- package/dist/collection/components/x-checkbox/x-checkbox.js +681 -0
- package/dist/collection/components/x-col/x-col.css +1704 -0
- package/dist/collection/components/x-col/x-col.js +479 -0
- package/dist/collection/components/x-collapse/types.js +1 -0
- package/dist/collection/components/x-collapse/x-collapse.css +384 -0
- package/dist/collection/components/x-collapse/x-collapse.js +579 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.css +486 -0
- package/dist/collection/components/x-collapse-panel/x-collapse-panel.js +500 -0
- package/dist/collection/components/x-color-picker/types.js +251 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.css +310 -0
- package/dist/collection/components/x-color-picker/x-color-picker-panel.js +575 -0
- package/dist/collection/components/x-color-picker/x-color-picker.css +446 -0
- package/dist/collection/components/x-color-picker/x-color-picker.js +1209 -0
- package/dist/collection/components/x-comment/types.js +1 -0
- package/dist/collection/components/x-comment/x-comment.css +442 -0
- package/dist/collection/components/x-comment/x-comment.js +306 -0
- package/dist/collection/components/x-content/types.js +1 -0
- package/dist/collection/components/x-content/x-content.css +361 -0
- package/dist/collection/components/x-content/x-content.js +402 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.css +691 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.js +1496 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-date-picker/date-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-date-picker/types.js +1 -0
- package/dist/collection/components/x-date-picker/x-date-picker.css +804 -0
- package/dist/collection/components/x-date-picker/x-date-picker.js +2110 -0
- package/dist/collection/components/x-descriptions/types.js +1 -0
- package/dist/collection/components/x-descriptions/x-descriptions.css +417 -0
- package/dist/collection/components/x-descriptions/x-descriptions.js +494 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.css +387 -0
- package/dist/collection/components/x-descriptions-item/x-descriptions-item.js +238 -0
- package/dist/collection/components/x-divider/x-divider.css +417 -0
- package/dist/collection/components/x-divider/x-divider.js +263 -0
- package/dist/collection/components/x-drawer/x-drawer.css +333 -0
- package/dist/collection/components/x-drawer/x-drawer.js +623 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.css +481 -0
- package/dist/collection/components/x-drawer-content/x-drawer-content.js +579 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.css +673 -0
- package/dist/collection/components/x-dropdown/dropdown-content/dropdown-content.js +294 -0
- package/dist/collection/components/x-dropdown/dropdown-content/types.js +1 -0
- package/dist/collection/components/x-dropdown/types.js +1 -0
- package/dist/collection/components/x-dropdown/x-dropdown.css +669 -0
- package/dist/collection/components/x-dropdown/x-dropdown.js +1004 -0
- package/dist/collection/components/x-editor/editor-history.js +118 -0
- package/dist/collection/components/x-editor/editor-normalizer.js +263 -0
- package/dist/collection/components/x-editor/editor-parser.js +326 -0
- package/dist/collection/components/x-editor/editor-selection.js +415 -0
- package/dist/collection/components/x-editor/types.js +33 -0
- package/dist/collection/components/x-editor/x-editor.css +599 -0
- package/dist/collection/components/x-editor/x-editor.js +1636 -0
- package/dist/collection/components/x-empty/x-empty.css +357 -0
- package/dist/collection/components/x-empty/x-empty.js +117 -0
- package/dist/collection/components/x-finder/services/finder-service.js +250 -0
- package/dist/collection/components/x-finder/types.js +1 -0
- package/dist/collection/components/x-finder/x-finder.css +633 -0
- package/dist/collection/components/x-finder/x-finder.js +540 -0
- package/dist/collection/components/x-flex/x-flex.css +344 -0
- package/dist/collection/components/x-flex/x-flex.js +285 -0
- package/dist/collection/components/x-float-button/x-float-button.css +389 -0
- package/dist/collection/components/x-float-button/x-float-button.js +265 -0
- package/dist/collection/components/x-footer/x-footer.css +346 -0
- package/dist/collection/components/x-footer/x-footer.js +29 -0
- package/dist/collection/components/x-form/x-form.css +365 -0
- package/dist/collection/components/x-form/x-form.js +355 -0
- package/dist/collection/components/x-form-builder/services/apis/api-client.js +240 -0
- package/dist/collection/components/x-form-builder/services/constants/index.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/abstract-control.js +175 -0
- package/dist/collection/components/x-form-builder/services/forms/form-array.js +92 -0
- package/dist/collection/components/x-form-builder/services/forms/form-builder.js +40 -0
- package/dist/collection/components/x-form-builder/services/forms/form-control.js +33 -0
- package/dist/collection/components/x-form-builder/services/forms/form-group.js +150 -0
- package/dist/collection/components/x-form-builder/services/forms/index.js +7 -0
- package/dist/collection/components/x-form-builder/services/forms/types.js +1 -0
- package/dist/collection/components/x-form-builder/services/forms/validators.js +83 -0
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +337 -0
- package/dist/collection/components/x-form-builder/services/schema/default-registry.js +440 -0
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +176 -0
- package/dist/collection/components/x-form-builder/services/schema/form-registry.js +30 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-actions.js +3 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-builder.js +52 -0
- package/dist/collection/components/x-form-builder/services/schema/schema-validator.js +53 -0
- package/dist/collection/components/x-form-builder/types/api/api-common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/api-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/api/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/common/common-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/condition-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/field-types-enum.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/index.js +7 -0
- package/dist/collection/components/x-form-builder/types/common/shared-interfaces.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/validation-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/common/value-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/event-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/event/index.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/advanced-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/base-field.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/datetime-file-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/display-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/form-field-union.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/index.js +9 -0
- package/dist/collection/components/x-form-builder/types/fields/input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/layout-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/fields/selection-fields.js +10 -0
- package/dist/collection/components/x-form-builder/types/fields/special-input-fields.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/events-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/form/form-config.js +50 -0
- package/dist/collection/components/x-form-builder/types/form/index.js +2 -0
- package/dist/collection/components/x-form-builder/types/form/schema-types.js +1 -0
- package/dist/collection/components/x-form-builder/types/index.js +4 -0
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +118 -0
- package/dist/collection/components/x-form-builder/utils/utils.js +138 -0
- package/dist/collection/components/x-form-builder/utils/values.js +36 -0
- package/dist/collection/components/x-form-builder/x-form-builder.css +3 -0
- package/dist/collection/components/x-form-builder/x-form-builder.js +1017 -0
- package/dist/collection/components/x-form-item/x-form-item.css +564 -0
- package/dist/collection/components/x-form-item/x-form-item.js +538 -0
- package/dist/collection/components/x-header/x-header.css +344 -0
- package/dist/collection/components/x-header/x-header.js +29 -0
- package/dist/collection/components/x-icon/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/collection/components/x-icon/fonts/xlabs-solided.woff2 +0 -0
- package/dist/collection/components/x-icon/icons.js +2716 -0
- package/dist/collection/components/x-icon/x-icon.css +378 -0
- package/dist/collection/components/x-icon/x-icon.js +353 -0
- package/dist/collection/components/x-image/types.js +1 -0
- package/dist/collection/components/x-image/x-image.css +556 -0
- package/dist/collection/components/x-image/x-image.js +628 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.css +345 -0
- package/dist/collection/components/x-infinite-scroll/x-infinite-scroll.js +294 -0
- package/dist/collection/components/x-input/types.js +1 -0
- package/dist/collection/components/x-input/x-input.css +640 -0
- package/dist/collection/components/x-input/x-input.js +1449 -0
- package/dist/collection/components/x-input-number/types.js +96 -0
- package/dist/collection/components/x-input-number/x-input-number.css +612 -0
- package/dist/collection/components/x-input-number/x-input-number.js +1488 -0
- package/dist/collection/components/x-layout/x-layout.css +361 -0
- package/dist/collection/components/x-layout/x-layout.js +188 -0
- package/dist/collection/components/x-list/x-list.css +382 -0
- package/dist/collection/components/x-list/x-list.js +373 -0
- package/dist/collection/components/x-list-item/x-list-item.css +351 -0
- package/dist/collection/components/x-list-item/x-list-item.js +31 -0
- package/dist/collection/components/x-mentions/types.js +1 -0
- package/dist/collection/components/x-mentions/x-mentions.css +388 -0
- package/dist/collection/components/x-mentions/x-mentions.js +528 -0
- package/dist/collection/components/x-menu/types.js +1 -0
- package/dist/collection/components/x-menu/x-menu.css +78 -0
- package/dist/collection/components/x-menu/x-menu.js +793 -0
- package/dist/collection/components/x-menu-divider/types.js +1 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.css +31 -0
- package/dist/collection/components/x-menu-divider/x-menu-divider.js +126 -0
- package/dist/collection/components/x-menu-item/types.js +1 -0
- package/dist/collection/components/x-menu-item/x-menu-item.css +183 -0
- package/dist/collection/components/x-menu-item/x-menu-item.js +449 -0
- package/dist/collection/components/x-menu-item-group/types.js +1 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.css +45 -0
- package/dist/collection/components/x-menu-item-group/x-menu-item-group.js +299 -0
- package/dist/collection/components/x-menu-submenu/types.js +1 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.css +236 -0
- package/dist/collection/components/x-menu-submenu/x-menu-submenu.js +775 -0
- package/dist/collection/components/x-message/message-service.js +263 -0
- package/dist/collection/components/x-message/types.js +1 -0
- package/dist/collection/components/x-message/x-message.css +402 -0
- package/dist/collection/components/x-message/x-message.js +487 -0
- package/dist/collection/components/x-modal/modal-service.js +402 -0
- package/dist/collection/components/x-modal/modal-service.types.js +1 -0
- package/dist/collection/components/x-modal/x-modal.css +468 -0
- package/dist/collection/components/x-modal/x-modal.js +683 -0
- package/dist/collection/components/x-modal-content/index.js +1 -0
- package/dist/collection/components/x-modal-content/types.js +1 -0
- package/dist/collection/components/x-modal-content/x-modal-content.css +749 -0
- package/dist/collection/components/x-modal-content/x-modal-content.js +701 -0
- package/dist/collection/components/x-notification/notification-service.js +335 -0
- package/dist/collection/components/x-notification/types.js +1 -0
- package/dist/collection/components/x-notification/x-notification.css +486 -0
- package/dist/collection/components/x-notification/x-notification.js +788 -0
- package/dist/collection/components/x-page-header/x-page-header.css +406 -0
- package/dist/collection/components/x-page-header/x-page-header.js +159 -0
- package/dist/collection/components/x-pagination/types.js +1 -0
- package/dist/collection/components/x-pagination/x-pagination.css +705 -0
- package/dist/collection/components/x-pagination/x-pagination.js +1241 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.css +456 -0
- package/dist/collection/components/x-popconfirm/popconfirm-content/popconfirm-content.js +244 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.css +412 -0
- package/dist/collection/components/x-popconfirm/x-popconfirm.js +355 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.css +437 -0
- package/dist/collection/components/x-popover/popover-content/popover-content.js +261 -0
- package/dist/collection/components/x-popover/x-popover.css +442 -0
- package/dist/collection/components/x-popover/x-popover.js +390 -0
- package/dist/collection/components/x-portal/debug.js +42 -0
- package/dist/collection/components/x-portal/index.js +1 -0
- package/dist/collection/components/x-portal/portal-controller.js +146 -0
- package/dist/collection/components/x-portal/positioning.js +332 -0
- package/dist/collection/components/x-portal/types.js +1 -0
- package/dist/collection/components/x-portal/x-portal.js +21 -0
- package/dist/collection/components/x-progress/x-progress.css +424 -0
- package/dist/collection/components/x-progress/x-progress.js +326 -0
- package/dist/collection/components/x-qr-code/x-qr-code.css +37 -0
- package/dist/collection/components/x-qr-code/x-qr-code.js +292 -0
- package/dist/collection/components/x-radio/types.js +1 -0
- package/dist/collection/components/x-radio/x-radio.css +523 -0
- package/dist/collection/components/x-radio/x-radio.js +689 -0
- package/dist/collection/components/x-radio-group/types.js +1 -0
- package/dist/collection/components/x-radio-group/x-radio-group.css +326 -0
- package/dist/collection/components/x-radio-group/x-radio-group.js +531 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.css +609 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.js +1497 -0
- package/dist/collection/components/x-range-picker/range-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-range-picker/types.js +1 -0
- package/dist/collection/components/x-range-picker/x-range-picker.css +775 -0
- package/dist/collection/components/x-range-picker/x-range-picker.js +1883 -0
- package/dist/collection/components/x-rate/x-rate.css +396 -0
- package/dist/collection/components/x-rate/x-rate.js +445 -0
- package/dist/collection/components/x-result/types.js +1 -0
- package/dist/collection/components/x-result/x-result.css +434 -0
- package/dist/collection/components/x-result/x-result.js +376 -0
- package/dist/collection/components/x-row/x-row.css +345 -0
- package/dist/collection/components/x-row/x-row.js +196 -0
- package/dist/collection/components/x-segmented/types.js +1 -0
- package/dist/collection/components/x-segmented/x-segmented.css +407 -0
- package/dist/collection/components/x-segmented/x-segmented.js +414 -0
- package/dist/collection/components/x-select/select-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.css +827 -0
- package/dist/collection/components/x-select/select-dropdown-content/select-dropdown-content.js +163 -0
- package/dist/collection/components/x-select/select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-select/types.js +9 -0
- package/dist/collection/components/x-select/x-select.css +823 -0
- package/dist/collection/components/x-select/x-select.js +2247 -0
- package/dist/collection/components/x-select-option/x-select-option.css +379 -0
- package/dist/collection/components/x-select-option/x-select-option.js +207 -0
- package/dist/collection/components/x-sider/x-sider.css +379 -0
- package/dist/collection/components/x-sider/x-sider.js +379 -0
- package/dist/collection/components/x-skeleton/x-skeleton.css +400 -0
- package/dist/collection/components/x-skeleton/x-skeleton.js +221 -0
- package/dist/collection/components/x-slider/types.js +1 -0
- package/dist/collection/components/x-slider/x-slider.css +511 -0
- package/dist/collection/components/x-slider/x-slider.js +785 -0
- package/dist/collection/components/x-space/x-space.css +339 -0
- package/dist/collection/components/x-space/x-space.js +228 -0
- package/dist/collection/components/x-spin/x-spin.css +465 -0
- package/dist/collection/components/x-spin/x-spin.js +142 -0
- package/dist/collection/components/x-splitter/types.js +1 -0
- package/dist/collection/components/x-splitter/x-splitter.css +181 -0
- package/dist/collection/components/x-splitter/x-splitter.js +884 -0
- package/dist/collection/components/x-splitter-panel/types.js +1 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.css +25 -0
- package/dist/collection/components/x-splitter-panel/x-splitter-panel.js +292 -0
- package/dist/collection/components/x-statistic/x-statistic.css +366 -0
- package/dist/collection/components/x-statistic/x-statistic.js +291 -0
- package/dist/collection/components/x-step/types.js +1 -0
- package/dist/collection/components/x-step/x-step.css +801 -0
- package/dist/collection/components/x-step/x-step.js +539 -0
- package/dist/collection/components/x-steps/types.js +1 -0
- package/dist/collection/components/x-steps/x-steps.css +830 -0
- package/dist/collection/components/x-steps/x-steps.js +1032 -0
- package/dist/collection/components/x-switch/types.js +1 -0
- package/dist/collection/components/x-switch/x-switch.css +463 -0
- package/dist/collection/components/x-switch/x-switch.js +356 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.css +337 -0
- package/dist/collection/components/x-tab-pane/x-tab-pane.js +243 -0
- package/dist/collection/components/x-table/column-util.js +87 -0
- package/dist/collection/components/x-table/types.js +1 -0
- package/dist/collection/components/x-table/x-table.css +898 -0
- package/dist/collection/components/x-table/x-table.js +2464 -0
- package/dist/collection/components/x-table-cell/x-table-cell.css +337 -0
- package/dist/collection/components/x-table-cell/x-table-cell.js +167 -0
- package/dist/collection/components/x-table-row/x-table-row.css +336 -0
- package/dist/collection/components/x-table-row/x-table-row.js +172 -0
- package/dist/collection/components/x-tabs/types.js +1 -0
- package/dist/collection/components/x-tabs/x-tabs.css +664 -0
- package/dist/collection/components/x-tabs/x-tabs.js +1264 -0
- package/dist/collection/components/x-tag/types.js +1 -0
- package/dist/collection/components/x-tag/x-tag.css +1047 -0
- package/dist/collection/components/x-tag/x-tag.js +535 -0
- package/dist/collection/components/x-textarea/x-textarea.css +446 -0
- package/dist/collection/components/x-textarea/x-textarea.js +553 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/index.js +1 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.css +409 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.js +855 -0
- package/dist/collection/components/x-time-picker/time-picker-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-time-picker/types.js +1 -0
- package/dist/collection/components/x-time-picker/x-time-picker.css +653 -0
- package/dist/collection/components/x-time-picker/x-time-picker.js +1454 -0
- package/dist/collection/components/x-timeline/x-timeline.css +404 -0
- package/dist/collection/components/x-timeline/x-timeline.js +129 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.css +400 -0
- package/dist/collection/components/x-timeline-item/x-timeline-item.js +125 -0
- package/dist/collection/components/x-tooltip/types.js +1 -0
- package/dist/collection/components/x-tooltip/x-tooltip.css +528 -0
- package/dist/collection/components/x-tooltip/x-tooltip.js +1006 -0
- package/dist/collection/components/x-tooltip-content/index.js +1 -0
- package/dist/collection/components/x-tooltip-content/types.js +1 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.css +217 -0
- package/dist/collection/components/x-tooltip-content/x-tooltip-content.js +238 -0
- package/dist/collection/components/x-tour/index.js +1 -0
- package/dist/collection/components/x-tour/types.js +1 -0
- package/dist/collection/components/x-tour/x-tour-panel.css +467 -0
- package/dist/collection/components/x-tour/x-tour-panel.js +265 -0
- package/dist/collection/components/x-tour/x-tour.css +353 -0
- package/dist/collection/components/x-tour/x-tour.js +555 -0
- package/dist/collection/components/x-transfer/types.js +1 -0
- package/dist/collection/components/x-transfer/x-transfer.css +626 -0
- package/dist/collection/components/x-transfer/x-transfer.js +956 -0
- package/dist/collection/components/x-tree/types.js +1 -0
- package/dist/collection/components/x-tree/x-tree.css +703 -0
- package/dist/collection/components/x-tree/x-tree.js +1793 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/index.js +2 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.css +635 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.js +890 -0
- package/dist/collection/components/x-tree-select/tree-select-dropdown-content/types.js +1 -0
- package/dist/collection/components/x-tree-select/types.js +2 -0
- package/dist/collection/components/x-tree-select/x-tree-select.css +790 -0
- package/dist/collection/components/x-tree-select/x-tree-select.js +2750 -0
- package/dist/collection/components/x-typography/x-typography.css +409 -0
- package/dist/collection/components/x-typography/x-typography.js +431 -0
- package/dist/collection/components/x-upload/types.js +1 -0
- package/dist/collection/components/x-upload/x-upload.css +774 -0
- package/dist/collection/components/x-upload/x-upload.js +1452 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.css +79 -0
- package/dist/collection/components/x-virtual-scroll/x-virtual-scroll.js +478 -0
- package/dist/collection/components/x-workflow/x-workflow.css +486 -0
- package/dist/collection/components/x-workflow/x-workflow.js +1403 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.css +538 -0
- package/dist/collection/components/x-workflow-builder/x-workflow-builder.js +468 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/locales/index.js +2 -0
- package/dist/collection/locales/languages/ar_EG.js +120 -0
- package/dist/collection/locales/languages/az_AZ.js +120 -0
- package/dist/collection/locales/languages/bg_BG.js +120 -0
- package/dist/collection/locales/languages/bn_BD.js +120 -0
- package/dist/collection/locales/languages/by_BY.js +120 -0
- package/dist/collection/locales/languages/ca_ES.js +120 -0
- package/dist/collection/locales/languages/cs_CZ.js +120 -0
- package/dist/collection/locales/languages/da_DK.js +120 -0
- package/dist/collection/locales/languages/de_DE.js +120 -0
- package/dist/collection/locales/languages/el_GR.js +120 -0
- package/dist/collection/locales/languages/en_AU.js +120 -0
- package/dist/collection/locales/languages/en_GB.js +120 -0
- package/dist/collection/locales/languages/en_US.js +120 -0
- package/dist/collection/locales/languages/es_ES.js +120 -0
- package/dist/collection/locales/languages/et_EE.js +120 -0
- package/dist/collection/locales/languages/fa_IR.js +120 -0
- package/dist/collection/locales/languages/fi_FI.js +120 -0
- package/dist/collection/locales/languages/fr_BE.js +120 -0
- package/dist/collection/locales/languages/fr_CA.js +120 -0
- package/dist/collection/locales/languages/fr_FR.js +120 -0
- package/dist/collection/locales/languages/ga_IE.js +120 -0
- package/dist/collection/locales/languages/gl_ES.js +120 -0
- package/dist/collection/locales/languages/he_IL.js +120 -0
- package/dist/collection/locales/languages/hi_IN.js +120 -0
- package/dist/collection/locales/languages/hr_HR.js +120 -0
- package/dist/collection/locales/languages/hu_HU.js +120 -0
- package/dist/collection/locales/languages/hy_AM.js +120 -0
- package/dist/collection/locales/languages/id_ID.js +120 -0
- package/dist/collection/locales/languages/index.js +137 -0
- package/dist/collection/locales/languages/is_IS.js +120 -0
- package/dist/collection/locales/languages/it_IT.js +120 -0
- package/dist/collection/locales/languages/ja_JP.js +120 -0
- package/dist/collection/locales/languages/ka_GE.js +120 -0
- package/dist/collection/locales/languages/kk_KZ.js +120 -0
- package/dist/collection/locales/languages/km_KH.js +120 -0
- package/dist/collection/locales/languages/kmr_IQ.js +120 -0
- package/dist/collection/locales/languages/kn_IN.js +120 -0
- package/dist/collection/locales/languages/ko_KR.js +120 -0
- package/dist/collection/locales/languages/ku_IQ.js +120 -0
- package/dist/collection/locales/languages/lt_LT.js +120 -0
- package/dist/collection/locales/languages/lv_LV.js +120 -0
- package/dist/collection/locales/languages/mk_MK.js +120 -0
- package/dist/collection/locales/languages/ml_IN.js +120 -0
- package/dist/collection/locales/languages/mn_MN.js +120 -0
- package/dist/collection/locales/languages/ms_MY.js +120 -0
- package/dist/collection/locales/languages/nb_NO.js +120 -0
- package/dist/collection/locales/languages/ne_NP.js +120 -0
- package/dist/collection/locales/languages/nl_BE.js +120 -0
- package/dist/collection/locales/languages/nl_NL.js +120 -0
- package/dist/collection/locales/languages/pl_PL.js +120 -0
- package/dist/collection/locales/languages/pt_BR.js +120 -0
- package/dist/collection/locales/languages/pt_PT.js +120 -0
- package/dist/collection/locales/languages/ro_RO.js +120 -0
- package/dist/collection/locales/languages/ru_RU.js +120 -0
- package/dist/collection/locales/languages/sk_SK.js +120 -0
- package/dist/collection/locales/languages/sl_SI.js +120 -0
- package/dist/collection/locales/languages/sr_RS.js +120 -0
- package/dist/collection/locales/languages/sv_SE.js +120 -0
- package/dist/collection/locales/languages/ta_IN.js +120 -0
- package/dist/collection/locales/languages/th_TH.js +120 -0
- package/dist/collection/locales/languages/tr_TR.js +120 -0
- package/dist/collection/locales/languages/uk_UA.js +120 -0
- package/dist/collection/locales/languages/ur_PK.js +120 -0
- package/dist/collection/locales/languages/vi_VN.js +120 -0
- package/dist/collection/locales/languages/zh_CN.js +120 -0
- package/dist/collection/locales/languages/zh_HK.js +120 -0
- package/dist/collection/locales/languages/zh_TW.js +120 -0
- package/dist/collection/locales/locale.service.js +179 -0
- package/dist/collection/types.js +11 -0
- package/dist/collection/utils/app-service.js +19 -0
- package/dist/collection/utils/cascader.service.js +142 -0
- package/dist/collection/utils/config.js +59 -0
- package/dist/collection/utils/form/core/abstract-control.js +273 -0
- package/dist/collection/utils/form/core/form-array.js +131 -0
- package/dist/collection/utils/form/core/form-builder.js +56 -0
- package/dist/collection/utils/form/core/form-control.js +69 -0
- package/dist/collection/utils/form/core/form-group.js +163 -0
- package/dist/collection/utils/form/frameworks.js +37 -0
- package/dist/collection/utils/form/types.js +1 -0
- package/dist/collection/utils/form/validators/validators.js +198 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/qr-code/cache/qr.cache.js +20 -0
- package/dist/collection/utils/qr-code/engine/qr.engine.js +130 -0
- package/dist/collection/utils/qr-code/engine/qr.gf.js +22 -0
- package/dist/collection/utils/qr-code/engine/qr.mask.js +54 -0
- package/dist/collection/utils/qr-code/engine/qr.rs.js +29 -0
- package/dist/collection/utils/qr-code/engine/qr.util.js +0 -0
- package/dist/collection/utils/qr-code/engine/qr.version.js +11 -0
- package/dist/collection/utils/qr-code/renderer/canvas.renderer.js +36 -0
- package/dist/collection/utils/qr-code/renderer/svg.renderer.js +33 -0
- package/dist/collection/utils/qr-code/worker/worker.manager.js +24 -0
- package/dist/collection/utils/table.service.js +150 -0
- package/dist/collection/utils/tree.service.js +335 -0
- package/dist/collection/utils/workflow/flow.service.js +382 -0
- package/dist/collection/utils/workflow/types.js +1 -0
- package/dist/esm/abstract-control-XBF88YT_.js +275 -0
- package/dist/esm/config-BPeosvTA.js +60 -0
- package/dist/esm/index-ig_mFsVk.js +2159 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/locale.service-D66tF8_2.js +8199 -0
- package/dist/esm/modal-service-C_e0SaFZ.js +397 -0
- package/dist/esm/notification-service-DJTSPOq7.js +599 -0
- package/dist/esm/portal-controller-COpzIi1n.js +499 -0
- package/dist/esm/schema-builder-DBPGgJBx.js +1502 -0
- package/dist/esm/tree.service-Dgxy93Bg.js +337 -0
- package/dist/esm/types-C_QdJRdB.js +253 -0
- package/dist/esm/x-address_14.entry.js +12562 -0
- package/dist/esm/x-affix.entry.js +180 -0
- package/dist/esm/x-alert_11.entry.js +3227 -0
- package/dist/esm/x-anchor-link.entry.js +65 -0
- package/dist/esm/x-anchor.entry.js +156 -0
- package/dist/esm/x-app.entry.js +135 -0
- package/dist/esm/x-auto-complete-dropdown-content.entry.js +67 -0
- package/dist/esm/x-avatar.entry.js +267 -0
- package/dist/esm/x-back-top.entry.js +87 -0
- package/dist/esm/x-breadcrumb_5.entry.js +1548 -0
- package/dist/esm/x-button.entry.js +172 -0
- package/dist/esm/x-card_12.entry.js +1373 -0
- package/dist/esm/x-carousel.entry.js +145 -0
- package/dist/esm/x-cascader-dropdown-content.entry.js +362 -0
- package/dist/esm/x-checkbox_5.entry.js +1370 -0
- package/dist/esm/x-collapse-panel.entry.js +241 -0
- package/dist/esm/x-collapse.entry.js +289 -0
- package/dist/esm/x-color-picker-panel_2.entry.js +870 -0
- package/dist/esm/x-color-picker_9.entry.js +3075 -0
- package/dist/esm/x-comment.entry.js +187 -0
- package/dist/esm/x-date-picker-dropdown-content.entry.js +755 -0
- package/dist/esm/x-descriptions-item.entry.js +106 -0
- package/dist/esm/x-drawer-content.entry.js +195 -0
- package/dist/esm/x-drawer.entry.js +292 -0
- package/dist/esm/x-dropdown_2.entry.js +732 -0
- package/dist/esm/x-empty.entry.js +62 -0
- package/dist/esm/x-finder.entry.js +645 -0
- package/dist/esm/x-form-builder.entry.js +805 -0
- package/dist/esm/x-icon.entry.js +142 -0
- package/dist/esm/x-infinite-scroll.entry.js +127 -0
- package/dist/esm/x-list-item.entry.js +25 -0
- package/dist/esm/x-list.entry.js +136 -0
- package/dist/esm/x-mentions.entry.js +273 -0
- package/dist/esm/x-menu-divider.entry.js +47 -0
- package/dist/esm/x-menu-item-group.entry.js +147 -0
- package/dist/esm/x-menu-submenu.entry.js +371 -0
- package/dist/esm/x-message.entry.js +217 -0
- package/dist/esm/x-modal-content.entry.js +215 -0
- package/dist/esm/x-notification.entry.js +323 -0
- package/dist/esm/x-page-header.entry.js +65 -0
- package/dist/esm/x-popconfirm-content.entry.js +70 -0
- package/dist/esm/x-popconfirm.entry.js +179 -0
- package/dist/esm/x-progress.entry.js +134 -0
- package/dist/esm/x-qr-code.entry.js +444 -0
- package/dist/esm/x-range-picker-dropdown-content.entry.js +819 -0
- package/dist/esm/x-select_2.entry.js +1313 -0
- package/dist/esm/x-skeleton.entry.js +73 -0
- package/dist/esm/x-spin.entry.js +60 -0
- package/dist/esm/x-splitter-panel.entry.js +89 -0
- package/dist/esm/x-splitter.entry.js +610 -0
- package/dist/esm/x-statistic.entry.js +102 -0
- package/dist/esm/x-step.entry.js +177 -0
- package/dist/esm/x-steps.entry.js +437 -0
- package/dist/esm/x-tab-pane.entry.js +71 -0
- package/dist/esm/x-table-cell.entry.js +43 -0
- package/dist/esm/x-table-row.entry.js +83 -0
- package/dist/esm/x-tabs.entry.js +607 -0
- package/dist/esm/x-time-picker-dropdown-content.entry.js +387 -0
- package/dist/esm/x-timeline-item.entry.js +48 -0
- package/dist/esm/x-timeline.entry.js +50 -0
- package/dist/esm/x-tour-panel.entry.js +87 -0
- package/dist/esm/x-tour.entry.js +342 -0
- package/dist/esm/x-tree-select-dropdown-content.entry.js +437 -0
- package/dist/esm/x-virtual-scroll.entry.js +201 -0
- package/dist/esm/x-workflow-builder.entry.js +364 -0
- package/dist/esm/xlabs-store.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/x-address/vietnam-data.d.ts +14 -0
- package/dist/types/components/x-address/x-address.d.ts +64 -0
- package/dist/types/components/x-affix/x-affix.d.ts +111 -0
- package/dist/types/components/x-alert/x-alert.d.ts +74 -0
- package/dist/types/components/x-anchor/x-anchor.d.ts +120 -0
- package/dist/types/components/x-anchor-link/x-anchor-link.d.ts +47 -0
- package/dist/types/components/x-app/x-app.d.ts +93 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/auto-complete-dropdown-content.d.ts +58 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-auto-complete/auto-complete-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-auto-complete/types.d.ts +150 -0
- package/dist/types/components/x-auto-complete/x-auto-complete.d.ts +480 -0
- package/dist/types/components/x-avatar/types.d.ts +38 -0
- package/dist/types/components/x-avatar/x-avatar.d.ts +171 -0
- package/dist/types/components/x-back-top/x-back-top.d.ts +59 -0
- package/dist/types/components/x-badge/types.d.ts +23 -0
- package/dist/types/components/x-badge/x-badge.d.ts +184 -0
- package/dist/types/components/x-breadcrumb/x-breadcrumb.d.ts +43 -0
- package/dist/types/components/x-breadcrumb-item/x-breadcrumb-item.d.ts +43 -0
- package/dist/types/components/x-button/x-button.d.ts +121 -0
- package/dist/types/components/x-captcha/x-captcha.d.ts +78 -0
- package/dist/types/components/x-card/x-card.d.ts +139 -0
- package/dist/types/components/x-carousel/x-carousel.d.ts +104 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/cascader-dropdown-content.d.ts +255 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-cascader/cascader-dropdown-content/types.d.ts +20 -0
- package/dist/types/components/x-cascader/types.d.ts +143 -0
- package/dist/types/components/x-cascader/x-cascader.d.ts +520 -0
- package/dist/types/components/x-checkbox/types.d.ts +83 -0
- package/dist/types/components/x-checkbox/x-checkbox.d.ts +156 -0
- package/dist/types/components/x-col/x-col.d.ts +89 -0
- package/dist/types/components/x-collapse/types.d.ts +55 -0
- package/dist/types/components/x-collapse/x-collapse.d.ts +157 -0
- package/dist/types/components/x-collapse-panel/x-collapse-panel.d.ts +143 -0
- package/dist/types/components/x-color-picker/types.d.ts +135 -0
- package/dist/types/components/x-color-picker/x-color-picker-panel.d.ts +80 -0
- package/dist/types/components/x-color-picker/x-color-picker.d.ts +328 -0
- package/dist/types/components/x-comment/types.d.ts +20 -0
- package/dist/types/components/x-comment/x-comment.d.ts +111 -0
- package/dist/types/components/x-content/types.d.ts +6 -0
- package/dist/types/components/x-content/x-content.d.ts +64 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/date-picker-dropdown-content.d.ts +376 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-date-picker/date-picker-dropdown-content/types.d.ts +61 -0
- package/dist/types/components/x-date-picker/types.d.ts +28 -0
- package/dist/types/components/x-date-picker/x-date-picker.d.ts +512 -0
- package/dist/types/components/x-descriptions/types.d.ts +41 -0
- package/dist/types/components/x-descriptions/x-descriptions.d.ts +141 -0
- package/dist/types/components/x-descriptions-item/x-descriptions-item.d.ts +70 -0
- package/dist/types/components/x-divider/x-divider.d.ts +82 -0
- package/dist/types/components/x-drawer/x-drawer.d.ts +156 -0
- package/dist/types/components/x-drawer-content/x-drawer-content.d.ts +142 -0
- package/dist/types/components/x-dropdown/dropdown-content/dropdown-content.d.ts +83 -0
- package/dist/types/components/x-dropdown/dropdown-content/types.d.ts +16 -0
- package/dist/types/components/x-dropdown/types.d.ts +119 -0
- package/dist/types/components/x-dropdown/x-dropdown.d.ts +292 -0
- package/dist/types/components/x-editor/editor-history.d.ts +62 -0
- package/dist/types/components/x-editor/editor-normalizer.d.ts +70 -0
- package/dist/types/components/x-editor/editor-parser.d.ts +34 -0
- package/dist/types/components/x-editor/editor-selection.d.ts +92 -0
- package/dist/types/components/x-editor/types.d.ts +62 -0
- package/dist/types/components/x-editor/x-editor.d.ts +279 -0
- package/dist/types/components/x-empty/x-empty.d.ts +45 -0
- package/dist/types/components/x-finder/services/finder-service.d.ts +38 -0
- package/dist/types/components/x-finder/types.d.ts +63 -0
- package/dist/types/components/x-finder/x-finder.d.ts +66 -0
- package/dist/types/components/x-flex/x-flex.d.ts +62 -0
- package/dist/types/components/x-float-button/x-float-button.d.ts +66 -0
- package/dist/types/components/x-footer/x-footer.d.ts +11 -0
- package/dist/types/components/x-form/x-form.d.ts +64 -0
- package/dist/types/components/x-form-builder/services/apis/api-client.d.ts +63 -0
- package/dist/types/components/x-form-builder/services/constants/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/services/forms/abstract-control.d.ts +59 -0
- package/dist/types/components/x-form-builder/services/forms/form-array.d.ts +25 -0
- package/dist/types/components/x-form-builder/services/forms/form-builder.d.ts +17 -0
- package/dist/types/components/x-form-builder/services/forms/form-control.d.ts +14 -0
- package/dist/types/components/x-form-builder/services/forms/form-group.d.ts +33 -0
- package/dist/types/components/x-form-builder/services/forms/index.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/types.d.ts +11 -0
- package/dist/types/components/x-form-builder/services/forms/validators.d.ts +16 -0
- package/dist/types/components/x-form-builder/services/schema/condition-builder.d.ts +39 -0
- package/dist/types/components/x-form-builder/services/schema/default-registry.d.ts +1 -0
- package/dist/types/components/x-form-builder/services/schema/form-mapping.d.ts +26 -0
- package/dist/types/components/x-form-builder/services/schema/form-registry.d.ts +27 -0
- package/dist/types/components/x-form-builder/services/schema/schema-actions.d.ts +3 -0
- package/dist/types/components/x-form-builder/services/schema/schema-builder.d.ts +19 -0
- package/dist/types/components/x-form-builder/services/schema/schema-validator.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/api/api-common-types.d.ts +5 -0
- package/dist/types/components/x-form-builder/types/api/api-interfaces.d.ts +52 -0
- package/dist/types/components/x-form-builder/types/api/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/common-types.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/common/condition-types.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/common/index.d.ts +7 -0
- package/dist/types/components/x-form-builder/types/common/shared-interfaces.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/common/validation-types.d.ts +36 -0
- package/dist/types/components/x-form-builder/types/common/value-types.d.ts +15 -0
- package/dist/types/components/x-form-builder/types/event/event-types.d.ts +16 -0
- package/dist/types/components/x-form-builder/types/event/index.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +125 -0
- package/dist/types/components/x-form-builder/types/fields/base-field.d.ts +49 -0
- package/dist/types/components/x-form-builder/types/fields/datetime-file-fields.d.ts +37 -0
- package/dist/types/components/x-form-builder/types/fields/display-fields.d.ts +92 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/index.d.ts +9 -0
- package/dist/types/components/x-form-builder/types/fields/input-fields.d.ts +53 -0
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +55 -0
- package/dist/types/components/x-form-builder/types/fields/selection-fields.d.ts +130 -0
- package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +99 -0
- package/dist/types/components/x-form-builder/types/form/events-types.d.ts +29 -0
- package/dist/types/components/x-form-builder/types/form/form-config.d.ts +0 -0
- package/dist/types/components/x-form-builder/types/form/index.d.ts +2 -0
- package/dist/types/components/x-form-builder/types/form/schema-types.d.ts +134 -0
- package/dist/types/components/x-form-builder/types/index.d.ts +4 -0
- package/dist/types/components/x-form-builder/utils/condition-engine.d.ts +23 -0
- package/dist/types/components/x-form-builder/utils/utils.d.ts +19 -0
- package/dist/types/components/x-form-builder/utils/values.d.ts +8 -0
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +65 -0
- package/dist/types/components/x-form-item/x-form-item.d.ts +94 -0
- package/dist/types/components/x-header/x-header.d.ts +11 -0
- package/dist/types/components/x-icon/icons.d.ts +2717 -0
- package/dist/types/components/x-icon/x-icon.d.ts +89 -0
- package/dist/types/components/x-image/types.d.ts +94 -0
- package/dist/types/components/x-image/x-image.d.ts +150 -0
- package/dist/types/components/x-infinite-scroll/x-infinite-scroll.d.ts +75 -0
- package/dist/types/components/x-input/types.d.ts +14 -0
- package/dist/types/components/x-input/x-input.d.ts +385 -0
- package/dist/types/components/x-input-number/types.d.ts +98 -0
- package/dist/types/components/x-input-number/x-input-number.d.ts +395 -0
- package/dist/types/components/x-layout/x-layout.d.ts +61 -0
- package/dist/types/components/x-list/x-list.d.ts +100 -0
- package/dist/types/components/x-list-item/x-list-item.d.ts +13 -0
- package/dist/types/components/x-mentions/types.d.ts +7 -0
- package/dist/types/components/x-mentions/x-mentions.d.ts +159 -0
- package/dist/types/components/x-menu/types.d.ts +83 -0
- package/dist/types/components/x-menu/x-menu.d.ts +153 -0
- package/dist/types/components/x-menu-divider/types.d.ts +6 -0
- package/dist/types/components/x-menu-divider/x-menu-divider.d.ts +19 -0
- package/dist/types/components/x-menu-item/types.d.ts +8 -0
- package/dist/types/components/x-menu-item/x-menu-item.d.ts +80 -0
- package/dist/types/components/x-menu-item-group/types.d.ts +6 -0
- package/dist/types/components/x-menu-item-group/x-menu-item-group.d.ts +60 -0
- package/dist/types/components/x-menu-submenu/types.d.ts +15 -0
- package/dist/types/components/x-menu-submenu/x-menu-submenu.d.ts +135 -0
- package/dist/types/components/x-message/message-service.d.ts +58 -0
- package/dist/types/components/x-message/types.d.ts +90 -0
- package/dist/types/components/x-message/x-message.d.ts +133 -0
- package/dist/types/components/x-modal/modal-service.d.ts +6 -0
- package/dist/types/components/x-modal/modal-service.types.d.ts +278 -0
- package/dist/types/components/x-modal/x-modal.d.ts +160 -0
- package/dist/types/components/x-modal-content/index.d.ts +1 -0
- package/dist/types/components/x-modal-content/types.d.ts +83 -0
- package/dist/types/components/x-modal-content/x-modal-content.d.ts +174 -0
- package/dist/types/components/x-notification/notification-service.d.ts +83 -0
- package/dist/types/components/x-notification/types.d.ts +112 -0
- package/dist/types/components/x-notification/x-notification.d.ts +212 -0
- package/dist/types/components/x-page-header/x-page-header.d.ts +51 -0
- package/dist/types/components/x-pagination/types.d.ts +104 -0
- package/dist/types/components/x-pagination/x-pagination.d.ts +274 -0
- package/dist/types/components/x-popconfirm/popconfirm-content/popconfirm-content.d.ts +62 -0
- package/dist/types/components/x-popconfirm/x-popconfirm.d.ts +97 -0
- package/dist/types/components/x-popover/popover-content/popover-content.d.ts +71 -0
- package/dist/types/components/x-popover/x-popover.d.ts +99 -0
- package/dist/types/components/x-portal/debug.d.ts +5 -0
- package/dist/types/components/x-portal/index.d.ts +2 -0
- package/dist/types/components/x-portal/portal-controller.d.ts +20 -0
- package/dist/types/components/x-portal/positioning.d.ts +102 -0
- package/dist/types/components/x-portal/types.d.ts +43 -0
- package/dist/types/components/x-portal/x-portal.d.ts +19 -0
- package/dist/types/components/x-progress/x-progress.d.ts +85 -0
- package/dist/types/components/x-qr-code/x-qr-code.d.ts +26 -0
- package/dist/types/components/x-radio/types.d.ts +94 -0
- package/dist/types/components/x-radio/x-radio.d.ts +186 -0
- package/dist/types/components/x-radio-group/types.d.ts +20 -0
- package/dist/types/components/x-radio-group/x-radio-group.d.ts +90 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/range-picker-dropdown-content.d.ts +437 -0
- package/dist/types/components/x-range-picker/range-picker-dropdown-content/types.d.ts +48 -0
- package/dist/types/components/x-range-picker/types.d.ts +35 -0
- package/dist/types/components/x-range-picker/x-range-picker.d.ts +457 -0
- package/dist/types/components/x-rate/x-rate.d.ts +129 -0
- package/dist/types/components/x-result/types.d.ts +45 -0
- package/dist/types/components/x-result/x-result.d.ts +120 -0
- package/dist/types/components/x-row/x-row.d.ts +44 -0
- package/dist/types/components/x-segmented/types.d.ts +10 -0
- package/dist/types/components/x-segmented/x-segmented.d.ts +128 -0
- package/dist/types/components/x-select/select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-select/select-dropdown-content/select-dropdown-content.d.ts +52 -0
- package/dist/types/components/x-select/select-dropdown-content/types.d.ts +14 -0
- package/dist/types/components/x-select/types.d.ts +41 -0
- package/dist/types/components/x-select/x-select.d.ts +635 -0
- package/dist/types/components/x-select-option/x-select-option.d.ts +51 -0
- package/dist/types/components/x-sider/x-sider.d.ts +99 -0
- package/dist/types/components/x-skeleton/x-skeleton.d.ts +54 -0
- package/dist/types/components/x-slider/types.d.ts +1 -0
- package/dist/types/components/x-slider/x-slider.d.ts +240 -0
- package/dist/types/components/x-space/x-space.d.ts +54 -0
- package/dist/types/components/x-spin/x-spin.d.ts +41 -0
- package/dist/types/components/x-splitter/types.d.ts +41 -0
- package/dist/types/components/x-splitter/x-splitter.d.ts +187 -0
- package/dist/types/components/x-splitter-panel/types.d.ts +23 -0
- package/dist/types/components/x-splitter-panel/x-splitter-panel.d.ts +67 -0
- package/dist/types/components/x-statistic/x-statistic.d.ts +80 -0
- package/dist/types/components/x-step/types.d.ts +14 -0
- package/dist/types/components/x-step/x-step.d.ts +104 -0
- package/dist/types/components/x-steps/types.d.ts +124 -0
- package/dist/types/components/x-steps/x-steps.d.ts +270 -0
- package/dist/types/components/x-switch/types.d.ts +5 -0
- package/dist/types/components/x-switch/x-switch.d.ts +92 -0
- package/dist/types/components/x-tab-pane/x-tab-pane.d.ts +55 -0
- package/dist/types/components/x-table/column-util.d.ts +26 -0
- package/dist/types/components/x-table/types.d.ts +386 -0
- package/dist/types/components/x-table/x-table.d.ts +552 -0
- package/dist/types/components/x-table-cell/x-table-cell.d.ts +27 -0
- package/dist/types/components/x-table-row/x-table-row.d.ts +24 -0
- package/dist/types/components/x-tabs/types.d.ts +190 -0
- package/dist/types/components/x-tabs/x-tabs.d.ts +359 -0
- package/dist/types/components/x-tag/types.d.ts +27 -0
- package/dist/types/components/x-tag/x-tag.d.ts +148 -0
- package/dist/types/components/x-textarea/x-textarea.d.ts +165 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/time-picker-dropdown-content.d.ts +239 -0
- package/dist/types/components/x-time-picker/time-picker-dropdown-content/types.d.ts +28 -0
- package/dist/types/components/x-time-picker/types.d.ts +18 -0
- package/dist/types/components/x-time-picker/x-time-picker.d.ts +378 -0
- package/dist/types/components/x-timeline/x-timeline.d.ts +33 -0
- package/dist/types/components/x-timeline-item/x-timeline-item.d.ts +33 -0
- package/dist/types/components/x-tooltip/types.d.ts +53 -0
- package/dist/types/components/x-tooltip/x-tooltip.d.ts +274 -0
- package/dist/types/components/x-tooltip-content/index.d.ts +1 -0
- package/dist/types/components/x-tooltip-content/types.d.ts +25 -0
- package/dist/types/components/x-tooltip-content/x-tooltip-content.d.ts +57 -0
- package/dist/types/components/x-tour/index.d.ts +1 -0
- package/dist/types/components/x-tour/types.d.ts +71 -0
- package/dist/types/components/x-tour/x-tour-panel.d.ts +73 -0
- package/dist/types/components/x-tour/x-tour.d.ts +158 -0
- package/dist/types/components/x-transfer/types.d.ts +89 -0
- package/dist/types/components/x-transfer/x-transfer.d.ts +291 -0
- package/dist/types/components/x-tree/types.d.ts +163 -0
- package/dist/types/components/x-tree/x-tree.d.ts +406 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/index.d.ts +2 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/tree-select-dropdown-content.d.ts +268 -0
- package/dist/types/components/x-tree-select/tree-select-dropdown-content/types.d.ts +24 -0
- package/dist/types/components/x-tree-select/types.d.ts +100 -0
- package/dist/types/components/x-tree-select/x-tree-select.d.ts +750 -0
- package/dist/types/components/x-typography/x-typography.d.ts +89 -0
- package/dist/types/components/x-upload/types.d.ts +177 -0
- package/dist/types/components/x-upload/x-upload.d.ts +361 -0
- package/dist/types/components/x-virtual-scroll/x-virtual-scroll.d.ts +127 -0
- package/dist/types/components/x-workflow/x-workflow.d.ts +126 -0
- package/dist/types/components/x-workflow-builder/x-workflow-builder.d.ts +69 -0
- package/dist/types/components.d.ts +19048 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/locales/index.d.ts +2 -0
- package/dist/types/locales/languages/ar_EG.d.ts +119 -0
- package/dist/types/locales/languages/az_AZ.d.ts +119 -0
- package/dist/types/locales/languages/bg_BG.d.ts +119 -0
- package/dist/types/locales/languages/bn_BD.d.ts +119 -0
- package/dist/types/locales/languages/by_BY.d.ts +119 -0
- package/dist/types/locales/languages/ca_ES.d.ts +119 -0
- package/dist/types/locales/languages/cs_CZ.d.ts +119 -0
- package/dist/types/locales/languages/da_DK.d.ts +119 -0
- package/dist/types/locales/languages/de_DE.d.ts +119 -0
- package/dist/types/locales/languages/el_GR.d.ts +119 -0
- package/dist/types/locales/languages/en_AU.d.ts +119 -0
- package/dist/types/locales/languages/en_GB.d.ts +119 -0
- package/dist/types/locales/languages/en_US.d.ts +119 -0
- package/dist/types/locales/languages/es_ES.d.ts +119 -0
- package/dist/types/locales/languages/et_EE.d.ts +119 -0
- package/dist/types/locales/languages/fa_IR.d.ts +119 -0
- package/dist/types/locales/languages/fi_FI.d.ts +119 -0
- package/dist/types/locales/languages/fr_BE.d.ts +119 -0
- package/dist/types/locales/languages/fr_CA.d.ts +119 -0
- package/dist/types/locales/languages/fr_FR.d.ts +119 -0
- package/dist/types/locales/languages/ga_IE.d.ts +119 -0
- package/dist/types/locales/languages/gl_ES.d.ts +119 -0
- package/dist/types/locales/languages/he_IL.d.ts +119 -0
- package/dist/types/locales/languages/hi_IN.d.ts +119 -0
- package/dist/types/locales/languages/hr_HR.d.ts +119 -0
- package/dist/types/locales/languages/hu_HU.d.ts +119 -0
- package/dist/types/locales/languages/hy_AM.d.ts +119 -0
- package/dist/types/locales/languages/id_ID.d.ts +119 -0
- package/dist/types/locales/languages/index.d.ts +13 -0
- package/dist/types/locales/languages/is_IS.d.ts +119 -0
- package/dist/types/locales/languages/it_IT.d.ts +119 -0
- package/dist/types/locales/languages/ja_JP.d.ts +119 -0
- package/dist/types/locales/languages/ka_GE.d.ts +119 -0
- package/dist/types/locales/languages/kk_KZ.d.ts +119 -0
- package/dist/types/locales/languages/km_KH.d.ts +119 -0
- package/dist/types/locales/languages/kmr_IQ.d.ts +119 -0
- package/dist/types/locales/languages/kn_IN.d.ts +119 -0
- package/dist/types/locales/languages/ko_KR.d.ts +119 -0
- package/dist/types/locales/languages/ku_IQ.d.ts +119 -0
- package/dist/types/locales/languages/lt_LT.d.ts +119 -0
- package/dist/types/locales/languages/lv_LV.d.ts +119 -0
- package/dist/types/locales/languages/mk_MK.d.ts +119 -0
- package/dist/types/locales/languages/ml_IN.d.ts +119 -0
- package/dist/types/locales/languages/mn_MN.d.ts +119 -0
- package/dist/types/locales/languages/ms_MY.d.ts +119 -0
- package/dist/types/locales/languages/nb_NO.d.ts +119 -0
- package/dist/types/locales/languages/ne_NP.d.ts +119 -0
- package/dist/types/locales/languages/nl_BE.d.ts +119 -0
- package/dist/types/locales/languages/nl_NL.d.ts +119 -0
- package/dist/types/locales/languages/pl_PL.d.ts +119 -0
- package/dist/types/locales/languages/pt_BR.d.ts +119 -0
- package/dist/types/locales/languages/pt_PT.d.ts +119 -0
- package/dist/types/locales/languages/ro_RO.d.ts +119 -0
- package/dist/types/locales/languages/ru_RU.d.ts +119 -0
- package/dist/types/locales/languages/sk_SK.d.ts +119 -0
- package/dist/types/locales/languages/sl_SI.d.ts +119 -0
- package/dist/types/locales/languages/sr_RS.d.ts +119 -0
- package/dist/types/locales/languages/sv_SE.d.ts +119 -0
- package/dist/types/locales/languages/ta_IN.d.ts +119 -0
- package/dist/types/locales/languages/th_TH.d.ts +119 -0
- package/dist/types/locales/languages/tr_TR.d.ts +119 -0
- package/dist/types/locales/languages/uk_UA.d.ts +119 -0
- package/dist/types/locales/languages/ur_PK.d.ts +119 -0
- package/dist/types/locales/languages/vi_VN.d.ts +119 -0
- package/dist/types/locales/languages/zh_CN.d.ts +119 -0
- package/dist/types/locales/languages/zh_HK.d.ts +119 -0
- package/dist/types/locales/languages/zh_TW.d.ts +119 -0
- package/dist/types/locales/locale.service.d.ts +93 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types.d.ts +59 -0
- package/dist/types/utils/app-service.d.ts +20 -0
- package/dist/types/utils/cascader.service.d.ts +45 -0
- package/dist/types/utils/config.d.ts +47 -0
- package/dist/types/utils/form/core/abstract-control.d.ts +121 -0
- package/dist/types/utils/form/core/form-array.d.ts +51 -0
- package/dist/types/utils/form/core/form-builder.d.ts +45 -0
- package/dist/types/utils/form/core/form-control.d.ts +37 -0
- package/dist/types/utils/form/core/form-group.d.ts +63 -0
- package/dist/types/utils/form/frameworks.d.ts +18 -0
- package/dist/types/utils/form/types.d.ts +8 -0
- package/dist/types/utils/form/validators/validators.d.ts +39 -0
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/types/utils/qr-code/cache/qr.cache.d.ts +7 -0
- package/dist/types/utils/qr-code/engine/qr.engine.d.ts +15 -0
- package/dist/types/utils/qr-code/engine/qr.gf.d.ts +4 -0
- package/dist/types/utils/qr-code/engine/qr.mask.d.ts +2 -0
- package/dist/types/utils/qr-code/engine/qr.rs.d.ts +1 -0
- package/dist/types/utils/qr-code/engine/qr.util.d.ts +0 -0
- package/dist/types/utils/qr-code/engine/qr.version.d.ts +16 -0
- package/dist/types/utils/qr-code/renderer/canvas.renderer.d.ts +6 -0
- package/dist/types/utils/qr-code/renderer/svg.renderer.d.ts +7 -0
- package/dist/types/utils/qr-code/worker/worker.manager.d.ts +12 -0
- package/dist/types/utils/table.service.d.ts +48 -0
- package/dist/types/utils/tree.service.d.ts +85 -0
- package/dist/types/utils/workflow/flow.service.d.ts +61 -0
- package/dist/types/utils/workflow/types.d.ts +120 -0
- package/dist/xlabs-store/fonts/xlabs-outlined.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-rounded.woff2 +0 -0
- package/dist/xlabs-store/fonts/xlabs-solided.woff2 +0 -0
- package/dist/xlabs-store/index.esm.js +1 -0
- package/dist/xlabs-store/p-016194dc.entry.js +1 -0
- package/dist/xlabs-store/p-023259c9.entry.js +1 -0
- package/dist/xlabs-store/p-04a3721a.entry.js +1 -0
- package/dist/xlabs-store/p-072445b7.entry.js +1 -0
- package/dist/xlabs-store/p-0ec21454.entry.js +1 -0
- package/dist/xlabs-store/p-12b6a843.entry.js +1 -0
- package/dist/xlabs-store/p-1a81cf09.entry.js +1 -0
- package/dist/xlabs-store/p-1b019aeb.entry.js +1 -0
- package/dist/xlabs-store/p-262a0673.entry.js +1 -0
- package/dist/xlabs-store/p-34cce823.entry.js +1 -0
- package/dist/xlabs-store/p-3a9fdefe.entry.js +1 -0
- package/dist/xlabs-store/p-40036100.entry.js +1 -0
- package/dist/xlabs-store/p-45f04e8d.entry.js +1 -0
- package/dist/xlabs-store/p-48ba7c34.entry.js +1 -0
- package/dist/xlabs-store/p-48e2c26e.entry.js +1 -0
- package/dist/xlabs-store/p-4ac2e915.entry.js +1 -0
- package/dist/xlabs-store/p-4d7c2a35.entry.js +1 -0
- package/dist/xlabs-store/p-4f67cb33.entry.js +1 -0
- package/dist/xlabs-store/p-502b345e.entry.js +1 -0
- package/dist/xlabs-store/p-555c5e48.entry.js +1 -0
- package/dist/xlabs-store/p-5878525f.entry.js +1 -0
- package/dist/xlabs-store/p-5abbdca7.entry.js +1 -0
- package/dist/xlabs-store/p-6243ca69.entry.js +1 -0
- package/dist/xlabs-store/p-64e7a057.entry.js +1 -0
- package/dist/xlabs-store/p-6530d2ef.entry.js +1 -0
- package/dist/xlabs-store/p-675a39e1.entry.js +1 -0
- package/dist/xlabs-store/p-689c52ef.entry.js +1 -0
- package/dist/xlabs-store/p-69b8cb7d.entry.js +1 -0
- package/dist/xlabs-store/p-6b121c60.entry.js +1 -0
- package/dist/xlabs-store/p-6c75fc39.entry.js +1 -0
- package/dist/xlabs-store/p-6f705deb.entry.js +1 -0
- package/dist/xlabs-store/p-723d362c.entry.js +1 -0
- package/dist/xlabs-store/p-783545e3.entry.js +1 -0
- package/dist/xlabs-store/p-7a8f11b4.entry.js +1 -0
- package/dist/xlabs-store/p-81fb4caf.entry.js +1 -0
- package/dist/xlabs-store/p-863dd67d.entry.js +1 -0
- package/dist/xlabs-store/p-8bcbb4e3.entry.js +1 -0
- package/dist/xlabs-store/p-8bcc219a.entry.js +1 -0
- package/dist/xlabs-store/p-914b0ae2.entry.js +1 -0
- package/dist/xlabs-store/p-96b1939d.entry.js +1 -0
- package/dist/xlabs-store/p-9ac291ea.entry.js +1 -0
- package/dist/xlabs-store/p-9de03a07.entry.js +1 -0
- package/dist/xlabs-store/p-BPeosvTA.js +1 -0
- package/dist/xlabs-store/p-COpzIi1n.js +1 -0
- package/dist/xlabs-store/p-C_QdJRdB.js +1 -0
- package/dist/xlabs-store/p-Ce5L9qbY.js +1 -0
- package/dist/xlabs-store/p-Co3Y9VjQ.js +1 -0
- package/dist/xlabs-store/p-D66tF8_2.js +1 -0
- package/dist/xlabs-store/p-DElCk9ta.js +1 -0
- package/dist/xlabs-store/p-Dgxy93Bg.js +1 -0
- package/dist/xlabs-store/p-XBF88YT_.js +1 -0
- package/dist/xlabs-store/p-a4223feb.entry.js +1 -0
- package/dist/xlabs-store/p-a8c2eca7.entry.js +1 -0
- package/dist/xlabs-store/p-ac9ba3aa.entry.js +1 -0
- package/dist/xlabs-store/p-bd5084b8.entry.js +1 -0
- package/dist/xlabs-store/p-bda322db.entry.js +1 -0
- package/dist/xlabs-store/p-c0ca6f7d.entry.js +1 -0
- package/dist/xlabs-store/p-c4c8840c.entry.js +1 -0
- package/dist/xlabs-store/p-c4d0ce0d.entry.js +1 -0
- package/dist/xlabs-store/p-cd3c3374.entry.js +1 -0
- package/dist/xlabs-store/p-cf4697bc.entry.js +1 -0
- package/dist/xlabs-store/p-d2ec3d4a.entry.js +1 -0
- package/dist/xlabs-store/p-d4d00aff.entry.js +1 -0
- package/dist/xlabs-store/p-d9d0147b.entry.js +1 -0
- package/dist/xlabs-store/p-dd930f2a.entry.js +1 -0
- package/dist/xlabs-store/p-e04836e8.entry.js +1 -0
- package/dist/xlabs-store/p-e14b5f6d.entry.js +1 -0
- package/dist/xlabs-store/p-eb1dd3c2.entry.js +1 -0
- package/dist/xlabs-store/p-f02155e4.entry.js +1 -0
- package/dist/xlabs-store/p-f1331938.entry.js +1 -0
- package/dist/xlabs-store/p-fac0b689.entry.js +1 -0
- package/dist/xlabs-store/p-fd2e1d9c.entry.js +1 -0
- package/dist/xlabs-store/p-fdec5d89.entry.js +1 -0
- package/dist/xlabs-store/p-ffba56b2.entry.js +1 -0
- package/dist/xlabs-store/p-ig_mFsVk.js +2 -0
- package/dist/xlabs-store/xlabs-store.css +1 -0
- package/dist/xlabs-store/xlabs-store.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +69 -0
- package/readme.md +50 -0
|
@@ -0,0 +1,2159 @@
|
|
|
1
|
+
const NAMESPACE = 'xlabs-store';
|
|
2
|
+
const BUILD = /* xlabs-store */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
3
|
+
|
|
4
|
+
const globalScripts = () => {};
|
|
5
|
+
const globalStyles = ":root{--x-color-primary:#1677ff;--x-color-primary-rgb:22, 119, 255;--x-color-primary-contrast:#ffffff;--x-color-primary-contrast-rgb:255, 255, 255;--x-color-primary-shade:#0958d9;--x-color-primary-tint:#4096ff;--x-color-primary-bg:#e6f4ff;--x-color-primary-bg-hover:#bae0ff;--x-color-primary-border:#91caff;--x-color-primary-border-hover:#69b1ff;--x-color-primary-hover:#4096ff;--x-color-primary-active:#0958d9;--x-color-primary-text:#1677ff;--x-color-primary-text-hover:#4096ff;--x-color-primary-text-active:#0958d9;--x-color-secondary:#3dc2ff;--x-color-secondary-rgb:61, 194, 255;--x-color-secondary-contrast:#ffffff;--x-color-secondary-contrast-rgb:255, 255, 255;--x-color-secondary-shade:#36abe0;--x-color-secondary-tint:#50c8ff;--x-color-success:#52c41a;--x-color-success-rgb:82, 196, 26;--x-color-success-contrast:#ffffff;--x-color-success-contrast-rgb:255, 255, 255;--x-color-success-shade:#389e0d;--x-color-success-tint:#73d13d;--x-color-success-bg:#f6ffed;--x-color-success-bg-hover:#d9f7be;--x-color-success-border:#b7eb8f;--x-color-success-border-hover:#95de64;--x-color-success-hover:#73d13d;--x-color-success-active:#389e0d;--x-color-success-text:#52c41a;--x-color-success-text-hover:#73d13d;--x-color-success-text-active:#389e0d;--x-color-warning:#faad14;--x-color-warning-rgb:250, 173, 20;--x-color-warning-contrast:#000000;--x-color-warning-contrast-rgb:0, 0, 0;--x-color-warning-shade:#d48806;--x-color-warning-tint:#ffc53d;--x-color-warning-bg:#fffbe6;--x-color-warning-bg-hover:#fff1b8;--x-color-warning-border:#ffe58f;--x-color-warning-border-hover:#ffd666;--x-color-warning-hover:#ffc53d;--x-color-warning-active:#d48806;--x-color-warning-text:#faad14;--x-color-warning-text-hover:#ffc53d;--x-color-warning-text-active:#d48806;--x-color-danger:#ff4d4f;--x-color-danger-rgb:255, 77, 79;--x-color-danger-contrast:#ffffff;--x-color-danger-contrast-rgb:255, 255, 255;--x-color-danger-shade:#cf1322;--x-color-danger-tint:#ff7875;--x-color-error:#ff4d4f;--x-color-error-rgb:255, 77, 79;--x-color-error-bg:#fff2f0;--x-color-error-bg-hover:#ffccc7;--x-color-error-border:#ffa39e;--x-color-error-border-hover:#ff7875;--x-color-error-hover:#ff7875;--x-color-error-active:#d9363e;--x-color-error-text:#ff4d4f;--x-color-error-text-hover:#ff7875;--x-color-error-text-active:#d9363e;--x-color-info:#1677ff;--x-color-info-rgb:22, 119, 255;--x-color-info-bg:#e6f4ff;--x-color-info-bg-hover:#bae0ff;--x-color-info-border:#91caff;--x-color-info-border-hover:#69b1ff;--x-color-info-hover:#69b1ff;--x-color-info-active:#0958d9;--x-color-info-text:#1677ff;--x-color-info-text-hover:#69b1ff;--x-color-info-text-active:#0958d9;--x-color-text:rgba(0, 0, 0, 0.88);--x-color-text-secondary:rgba(0, 0, 0, 0.65);--x-color-text-tertiary:rgba(0, 0, 0, 0.45);--x-color-text-quaternary:rgba(0, 0, 0, 0.25);--x-color-text-disabled:rgba(0, 0, 0, 0.25);--x-color-text-placeholder:rgba(0, 0, 0, 0.25);--x-color-text-heading:rgba(0, 0, 0, 0.88);--x-color-text-label:rgba(0, 0, 0, 0.65);--x-color-text-description:rgba(0, 0, 0, 0.45);--x-color-text-light-solid:#ffffff;--x-color-bg-container:#ffffff;--x-color-bg-elevated:#ffffff;--x-color-bg-layout:#f5f5f5;--x-color-bg-spotlight:rgba(0, 0, 0, 0.85);--x-color-bg-mask:rgba(0, 0, 0, 0.45);--x-color-bg-base:#ffffff;--x-color-bg-container-disabled:#f5f5f5;--x-color-bg-container-loading:rgba(255, 255, 255, 0.65);--x-color-white:#ffffff;--x-color-fill:rgba(0, 0, 0, 0.15);--x-color-fill-secondary:rgba(0, 0, 0, 0.06);--x-color-fill-tertiary:rgba(0, 0, 0, 0.04);--x-color-fill-quaternary:rgba(0, 0, 0, 0.02);--x-color-border:#d9d9d9;--x-color-border-secondary:#f0f0f0;--x-color-border-bg:#ffffff;--x-color-split:rgba(5, 5, 5, 0.06);--x-color-dark:#222428;--x-color-dark-rgb:34, 36, 40;--x-color-dark-contrast:#ffffff;--x-color-dark-contrast-rgb:255, 255, 255;--x-color-dark-shade:#1e2023;--x-color-dark-tint:#383a3e;--x-color-medium:#92949c;--x-color-medium-rgb:146, 148, 156;--x-color-medium-contrast:#ffffff;--x-color-medium-contrast-rgb:255, 255, 255;--x-color-medium-shade:#808289;--x-color-medium-tint:#9d9fa6;--x-color-light:#f4f5f8;--x-color-light-rgb:244, 245, 248;--x-color-light-contrast:#000000;--x-color-light-contrast-rgb:0, 0, 0;--x-color-light-shade:#d7d8da;--x-color-light-tint:#f5f6f9;--x-font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--x-font-family-code:\"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace;--x-font-size:14px;--x-font-size-sm:12px;--x-font-size-lg:16px;--x-font-size-xl:20px;--x-font-size-heading-1:38px;--x-font-size-heading-2:30px;--x-font-size-heading-3:24px;--x-font-size-heading-4:20px;--x-font-size-heading-5:16px;--x-line-height:1.5714285714285714;--x-line-height-lg:1.5;--x-line-height-sm:1.6666666666666667;--x-line-height-heading-1:1.2105263157894737;--x-line-height-heading-2:1.2666666666666666;--x-line-height-heading-3:1.3333333333333333;--x-line-height-heading-4:1.4;--x-line-height-heading-5:1.5;--x-font-weight-normal:400;--x-font-weight-medium:500;--x-font-weight-semibold:600;--x-font-weight-strong:600;--x-font-size-base:14px;--x-font-size-xxl:24px;--x-line-height-base:1.5714285714285714;--x-spacing-xxs:4px;--x-spacing-xs:8px;--x-spacing-sm:12px;--x-spacing-md:16px;--x-spacing-lg:20px;--x-spacing-xl:24px;--x-spacing-xxl:32px;--x-spacing-xxxl:48px;--x-margin-xxs:4px;--x-margin-xs:8px;--x-margin-sm:12px;--x-margin-md:16px;--x-margin-lg:24px;--x-margin-xl:32px;--x-margin-xxl:48px;--x-padding-xxs:4px;--x-padding-xs:8px;--x-padding-sm:12px;--x-padding-md:16px;--x-padding-lg:24px;--x-padding-content-horizontal-lg:24px;--x-padding-content-vertical-lg:12px;--x-padding-content-horizontal:16px;--x-padding-content-vertical:12px;--x-padding-content-horizontal-sm:16px;--x-padding-content-vertical-sm:8px;--x-border-radius:6px;--x-border-radius-xs:2px;--x-border-radius-sm:4px;--x-border-radius-lg:8px;--x-border-radius-xl:12px;--x-border-radius-outer:4px;--x-border-radius-base:6px;--x-border-width:1px;--x-border-width-base:1px;--x-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-shadow-lg:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-secondary:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tertiary:0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);--x-box-shadow-popover-arrow:2px 2px 5px rgba(0, 0, 0, 0.05);--x-box-shadow-card:0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);--x-box-shadow-drawer-right:-6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-left:6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-up:0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-drawer-down:0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05);--x-box-shadow-tabs-overflow-left:inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-right:inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-top:inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);--x-box-shadow-tabs-overflow-bottom:inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);--x-motion-duration-fast:0.1s;--x-motion-duration-mid:0.2s;--x-motion-duration-slow:0.3s;--x-motion-ease-in-out:cubic-bezier(0.645, 0.045, 0.355, 1);--x-motion-ease-out:cubic-bezier(0.215, 0.61, 0.355, 1);--x-motion-ease-in:cubic-bezier(0.55, 0.055, 0.675, 0.19);--x-motion-ease-out-back:cubic-bezier(0.12, 0.4, 0.29, 1.46);--x-motion-ease-in-back:cubic-bezier(0.71, -0.46, 0.88, 0.6);--x-motion-ease-in-out-circle:cubic-bezier(0.78, 0.14, 0.15, 0.86);--x-motion-ease-out-circle:cubic-bezier(0.08, 0.82, 0.17, 1);--x-motion-ease-in-circle:cubic-bezier(0.6, 0.04, 0.98, 0.34);--x-motion-ease-in-quint:cubic-bezier(0.755, 0.05, 0.855, 0.06);--x-motion-ease-out-quint:cubic-bezier(0.23, 1, 0.32, 1);--x-z-index-base:0;--x-z-index-popup-base:1000;--x-z-index-popup:1030;--x-z-index-affix:10;--x-z-index-modal:1000;--x-z-index-modal-mask:1000;--x-z-index-drawer:1000;--x-z-index-popover:1030;--x-z-index-dropdown:1050;--x-z-index-tooltip:1070;--x-z-index-notification:1080;--x-z-index-message:1090;--x-z-index-popconfirm:1060;--x-z-index-table-fixed:10;--x-opacity-loading:0.65;--x-opacity-image:1;--x-opacity-disabled:0.5;--x-control-height:32px;--x-control-height-xs:24px;--x-control-height-sm:24px;--x-control-height-lg:40px;--x-control-radio-size:16px;--x-control-checkbox-size:16px;--x-control-padding-horizontal:12px;--x-control-padding-horizontal-sm:8px;--x-control-outline-width:2px;--x-control-outline:rgba(5, 145, 255, 0.1);--x-control-item-bg-hover:rgba(0, 0, 0, 0.04);--x-control-item-bg-active:#e6f4ff;--x-control-item-bg-active-hover:#bae0ff;--x-control-item-bg-active-disabled:rgba(0, 0, 0, 0.15);--x-control-tmp-outline:rgba(0, 0, 0, 0.02);--x-color-yellow:#fadb14;--x-color-yellow-rgb:250, 219, 20;--x-font-family-base:var(--x-font-family);--x-color-link:#1677ff;--x-color-link-hover:#69b1ff;--x-color-link-active:#0958d9;--x-color-icon:rgba(0, 0, 0, 0.45);--x-color-icon-hover:rgba(0, 0, 0, 0.88);--x-color-highlight:#ff4d4f;--x-color-bg-text-hover:rgba(0, 0, 0, 0.06);--x-color-bg-text-active:rgba(0, 0, 0, 0.15);--x-screen-xs:480px;--x-screen-xs-min:480px;--x-screen-xs-max:575px;--x-screen-sm:576px;--x-screen-sm-min:576px;--x-screen-sm-max:767px;--x-screen-md:768px;--x-screen-md-min:768px;--x-screen-md-max:991px;--x-screen-lg:992px;--x-screen-lg-min:992px;--x-screen-lg-max:1199px;--x-screen-xl:1200px;--x-screen-xl-min:1200px;--x-screen-xl-max:1599px;--x-screen-xxl:1600px;--x-screen-xxl-min:1600px;--x-color-fill-content:rgba(0, 0, 0, 0.06);--x-color-fill-content-hover:rgba(0, 0, 0, 0.15);--x-color-fill-alter:rgba(0, 0, 0, 0.02);--x-scrollbar-width:12px;--x-scrollbar-track-bg:rgba(0, 0, 0, 0.04);--x-scrollbar-thumb-bg:rgba(0, 0, 0, 0.25);--x-scrollbar-thumb-bg-hover:rgba(0, 0, 0, 0.35);--x-menu-dark-bg:#001529;--x-menu-dark-item-bg:#001529;--x-menu-dark-popup-bg:#001529;--x-menu-dark-submenu-item-bg:#000c17}@font-face{font-family:\"xlabs-icon-outlined\";src:url(\"./fonts/xlabs-outlined.woff2\") format(\"woff2\")}@font-face{font-family:\"xlabs-icon-rounded\";src:url(\"./fonts/xlabs-rounded.woff2\") format(\"woff2\")}@font-face{font-family:\"xlabs-icon-solided\";src:url(\"./fonts/xlabs-solided.woff2\") format(\"woff2\")}html{font-family:var(--x-font-family);-webkit-box-sizing:border-box;box-sizing:border-box}*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit}";
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// src/utils/constants.ts
|
|
13
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
14
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
15
|
+
|
|
16
|
+
// src/utils/get-prop-descriptor.ts
|
|
17
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
18
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
19
|
+
while (obj && obj !== stopAt) {
|
|
20
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
21
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
22
|
+
obj = Object.getPrototypeOf(obj);
|
|
23
|
+
}
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
28
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
31
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
32
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
33
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
34
|
+
const ogValue = instance[memberName];
|
|
35
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
36
|
+
if (ogDescriptor) {
|
|
37
|
+
Object.defineProperty(instance, memberName, {
|
|
38
|
+
get() {
|
|
39
|
+
return ogDescriptor.get.call(this);
|
|
40
|
+
},
|
|
41
|
+
set(newValue) {
|
|
42
|
+
ogDescriptor.set.call(this, newValue);
|
|
43
|
+
},
|
|
44
|
+
configurable: true,
|
|
45
|
+
enumerable: true
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
49
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
50
|
+
} else if (ogValue !== void 0) {
|
|
51
|
+
instance[memberName] = ogValue;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// src/client/client-host-ref.ts
|
|
58
|
+
var getHostRef = (ref) => {
|
|
59
|
+
if (ref.__stencil__getHostRef) {
|
|
60
|
+
return ref.__stencil__getHostRef();
|
|
61
|
+
}
|
|
62
|
+
return void 0;
|
|
63
|
+
};
|
|
64
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
65
|
+
if (!hostRef) return;
|
|
66
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
67
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
68
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
69
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
73
|
+
const hostRef = {
|
|
74
|
+
$flags$: 0,
|
|
75
|
+
$hostElement$: hostElement,
|
|
76
|
+
$cmpMeta$: cmpMeta,
|
|
77
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
78
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
79
|
+
};
|
|
80
|
+
{
|
|
81
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
82
|
+
}
|
|
83
|
+
{
|
|
84
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
85
|
+
hostElement["s-p"] = [];
|
|
86
|
+
hostElement["s-rc"] = [];
|
|
87
|
+
}
|
|
88
|
+
{
|
|
89
|
+
hostRef.$fetchedCbList$ = [];
|
|
90
|
+
}
|
|
91
|
+
const ref = hostRef;
|
|
92
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
93
|
+
return ref;
|
|
94
|
+
};
|
|
95
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
96
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
97
|
+
|
|
98
|
+
// src/client/client-load-module.ts
|
|
99
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
100
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
101
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
102
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
103
|
+
if (!bundleId) {
|
|
104
|
+
return void 0;
|
|
105
|
+
}
|
|
106
|
+
const module = cmpModules.get(bundleId) ;
|
|
107
|
+
if (module) {
|
|
108
|
+
return module[exportName];
|
|
109
|
+
}
|
|
110
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
111
|
+
return import(
|
|
112
|
+
/* @vite-ignore */
|
|
113
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
114
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
115
|
+
/* webpackMode: "lazy" */
|
|
116
|
+
`./${bundleId}.entry.js${""}`
|
|
117
|
+
).then(
|
|
118
|
+
(importedModule) => {
|
|
119
|
+
{
|
|
120
|
+
cmpModules.set(bundleId, importedModule);
|
|
121
|
+
}
|
|
122
|
+
return importedModule[exportName];
|
|
123
|
+
},
|
|
124
|
+
(e) => {
|
|
125
|
+
consoleError(e, hostRef.$hostElement$);
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// src/client/client-style.ts
|
|
131
|
+
var styles = /* @__PURE__ */ new Map();
|
|
132
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
133
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
134
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
135
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
136
|
+
var plt = {
|
|
137
|
+
$flags$: 0,
|
|
138
|
+
$resourcesUrl$: "",
|
|
139
|
+
jmp: (h2) => h2(),
|
|
140
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
141
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
142
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
143
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
144
|
+
};
|
|
145
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
146
|
+
var _a;
|
|
147
|
+
let supportsListenerOptions2 = false;
|
|
148
|
+
try {
|
|
149
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
150
|
+
"e",
|
|
151
|
+
null,
|
|
152
|
+
Object.defineProperty({}, "passive", {
|
|
153
|
+
get() {
|
|
154
|
+
supportsListenerOptions2 = true;
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
);
|
|
158
|
+
} catch (e) {
|
|
159
|
+
}
|
|
160
|
+
return supportsListenerOptions2;
|
|
161
|
+
})();
|
|
162
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
163
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
164
|
+
try {
|
|
165
|
+
if (!win.document.adoptedStyleSheets) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
new CSSStyleSheet();
|
|
169
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
170
|
+
} catch (e) {
|
|
171
|
+
}
|
|
172
|
+
return false;
|
|
173
|
+
})() ;
|
|
174
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
175
|
+
var queuePending = false;
|
|
176
|
+
var queueDomReads = [];
|
|
177
|
+
var queueDomWrites = [];
|
|
178
|
+
var queueTask = (queue, write) => (cb) => {
|
|
179
|
+
queue.push(cb);
|
|
180
|
+
if (!queuePending) {
|
|
181
|
+
queuePending = true;
|
|
182
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
183
|
+
nextTick(flush);
|
|
184
|
+
} else {
|
|
185
|
+
plt.raf(flush);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
var consume = (queue) => {
|
|
190
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
191
|
+
try {
|
|
192
|
+
queue[i2](performance.now());
|
|
193
|
+
} catch (e) {
|
|
194
|
+
consoleError(e);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
queue.length = 0;
|
|
198
|
+
};
|
|
199
|
+
var flush = () => {
|
|
200
|
+
consume(queueDomReads);
|
|
201
|
+
{
|
|
202
|
+
consume(queueDomWrites);
|
|
203
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
204
|
+
plt.raf(flush);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
209
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
210
|
+
|
|
211
|
+
// src/utils/style.ts
|
|
212
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
213
|
+
if (!supportsConstructableStylesheets) return void 0;
|
|
214
|
+
const sheet = new CSSStyleSheet();
|
|
215
|
+
sheet.replaceSync(styles2);
|
|
216
|
+
return sheet;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// src/utils/shadow-root.ts
|
|
220
|
+
var globalStyleSheet;
|
|
221
|
+
function createShadowRoot(cmpMeta) {
|
|
222
|
+
var _a;
|
|
223
|
+
const opts = { mode: "open" };
|
|
224
|
+
const shadowRoot = this.attachShadow(opts);
|
|
225
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
226
|
+
if (globalStyleSheet) {
|
|
227
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
228
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
229
|
+
} else {
|
|
230
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
231
|
+
}
|
|
232
|
+
} else if (!supportsConstructableStylesheets) {
|
|
233
|
+
const styleElm = document.createElement("style");
|
|
234
|
+
styleElm.innerHTML = globalStyles;
|
|
235
|
+
shadowRoot.prepend(styleElm);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
239
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
240
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
241
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
242
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
243
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
244
|
+
slotNode.hidden = true;
|
|
245
|
+
} else {
|
|
246
|
+
slotNode.hidden = false;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
let i2 = 0;
|
|
252
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
253
|
+
const childNode = childNodes[i2];
|
|
254
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
255
|
+
updateFallbackSlotVisibility(childNode);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
260
|
+
const result = [];
|
|
261
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
262
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
263
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
264
|
+
result.push(slottedNode);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return result;
|
|
268
|
+
};
|
|
269
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
270
|
+
let i2 = 0;
|
|
271
|
+
let slottedNodes = [];
|
|
272
|
+
let childNode;
|
|
273
|
+
for (; i2 < childNodes.length; i2++) {
|
|
274
|
+
childNode = childNodes[i2];
|
|
275
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
276
|
+
slottedNodes.push(childNode);
|
|
277
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
278
|
+
}
|
|
279
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
280
|
+
}
|
|
281
|
+
return slottedNodes;
|
|
282
|
+
}
|
|
283
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
284
|
+
const childNodes = [];
|
|
285
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
286
|
+
let node = slot;
|
|
287
|
+
while (node = node.nextSibling) {
|
|
288
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
289
|
+
}
|
|
290
|
+
return childNodes;
|
|
291
|
+
};
|
|
292
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
293
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
294
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
303
|
+
return true;
|
|
304
|
+
}
|
|
305
|
+
return slotName === "";
|
|
306
|
+
};
|
|
307
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
308
|
+
function patchSlotNode(node) {
|
|
309
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
310
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
311
|
+
const toReturn = [];
|
|
312
|
+
const slotName = this["s-sn"];
|
|
313
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
314
|
+
console.error(`
|
|
315
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
316
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
317
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
318
|
+
`);
|
|
319
|
+
}
|
|
320
|
+
const parent = this["s-cr"].parentElement;
|
|
321
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
322
|
+
slottedNodes.forEach((n) => {
|
|
323
|
+
if (slotName === getSlotName(n)) {
|
|
324
|
+
toReturn.push(n);
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
if (elementsOnly) {
|
|
328
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
329
|
+
}
|
|
330
|
+
return toReturn;
|
|
331
|
+
}).bind(node);
|
|
332
|
+
node.assignedElements = assignedFactory(true);
|
|
333
|
+
node.assignedNodes = assignedFactory(false);
|
|
334
|
+
}
|
|
335
|
+
function dispatchSlotChangeEvent(elm) {
|
|
336
|
+
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
337
|
+
}
|
|
338
|
+
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
339
|
+
var _a;
|
|
340
|
+
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
341
|
+
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
342
|
+
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
343
|
+
const childNodes = internalCall(parentHost, "childNodes");
|
|
344
|
+
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
345
|
+
return { slotNode, slotName };
|
|
346
|
+
}
|
|
347
|
+
function internalCall(node, method) {
|
|
348
|
+
if ("__" + method in node) {
|
|
349
|
+
const toReturn = node["__" + method];
|
|
350
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
351
|
+
return toReturn.bind(node);
|
|
352
|
+
} else {
|
|
353
|
+
if (typeof node[method] !== "function") return node[method];
|
|
354
|
+
return node[method].bind(node);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
var createTime = (fnName, tagName = "") => {
|
|
358
|
+
{
|
|
359
|
+
return () => {
|
|
360
|
+
return;
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
var uniqueTime = (key, measureText) => {
|
|
365
|
+
{
|
|
366
|
+
return () => {
|
|
367
|
+
return;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
373
|
+
function queryNonceMetaTagContent(doc) {
|
|
374
|
+
var _a, _b, _c;
|
|
375
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// src/runtime/styles.ts
|
|
379
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
380
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
381
|
+
let style = styles.get(scopeId2);
|
|
382
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
383
|
+
style = style || new CSSStyleSheet();
|
|
384
|
+
if (typeof style === "string") {
|
|
385
|
+
style = cssText;
|
|
386
|
+
} else {
|
|
387
|
+
style.replaceSync(cssText);
|
|
388
|
+
}
|
|
389
|
+
} else {
|
|
390
|
+
style = cssText;
|
|
391
|
+
}
|
|
392
|
+
styles.set(scopeId2, style);
|
|
393
|
+
};
|
|
394
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
395
|
+
var _a, _b, _c;
|
|
396
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
397
|
+
const style = styles.get(scopeId2);
|
|
398
|
+
if (!win.document) {
|
|
399
|
+
return scopeId2;
|
|
400
|
+
}
|
|
401
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
402
|
+
if (style) {
|
|
403
|
+
if (typeof style === "string") {
|
|
404
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
405
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
406
|
+
let styleElm;
|
|
407
|
+
if (!appliedStyles) {
|
|
408
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
409
|
+
}
|
|
410
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
411
|
+
styleElm = win.document.createElement("style");
|
|
412
|
+
styleElm.textContent = style;
|
|
413
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
414
|
+
if (nonce != null) {
|
|
415
|
+
styleElm.setAttribute("nonce", nonce);
|
|
416
|
+
}
|
|
417
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
418
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
419
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
420
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
421
|
+
styleContainerNode.insertBefore(
|
|
422
|
+
styleElm,
|
|
423
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
424
|
+
);
|
|
425
|
+
} else if ("host" in styleContainerNode) {
|
|
426
|
+
if (supportsConstructableStylesheets) {
|
|
427
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
428
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
429
|
+
stylesheet.replaceSync(style);
|
|
430
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
431
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
432
|
+
} else {
|
|
433
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
437
|
+
if (existingStyleContainer && true) {
|
|
438
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
439
|
+
} else {
|
|
440
|
+
styleContainerNode.prepend(styleElm);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
} else {
|
|
444
|
+
styleContainerNode.append(styleElm);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
448
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
449
|
+
}
|
|
450
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
451
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
452
|
+
}
|
|
453
|
+
if (appliedStyles) {
|
|
454
|
+
appliedStyles.add(scopeId2);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
} else {
|
|
458
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
459
|
+
if (!appliedStyles) {
|
|
460
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
461
|
+
}
|
|
462
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
463
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
464
|
+
let stylesheet;
|
|
465
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
466
|
+
stylesheet = style;
|
|
467
|
+
} else {
|
|
468
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
469
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
470
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
474
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
475
|
+
} else {
|
|
476
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
477
|
+
}
|
|
478
|
+
appliedStyles.add(scopeId2);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return scopeId2;
|
|
483
|
+
};
|
|
484
|
+
var attachStyles = (hostRef) => {
|
|
485
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
486
|
+
const elm = hostRef.$hostElement$;
|
|
487
|
+
const flags = cmpMeta.$flags$;
|
|
488
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
489
|
+
const scopeId2 = addStyle(
|
|
490
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
491
|
+
cmpMeta);
|
|
492
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
493
|
+
elm["s-sc"] = scopeId2;
|
|
494
|
+
elm.classList.add(scopeId2 + "-h");
|
|
495
|
+
}
|
|
496
|
+
endAttachStyles();
|
|
497
|
+
};
|
|
498
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
499
|
+
var isComplexType = (o) => {
|
|
500
|
+
o = typeof o;
|
|
501
|
+
return o === "object" || o === "function";
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
// src/runtime/vdom/h.ts
|
|
505
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
506
|
+
if (typeof nodeName === "string") {
|
|
507
|
+
nodeName = transformTag(nodeName);
|
|
508
|
+
}
|
|
509
|
+
let child = null;
|
|
510
|
+
let key = null;
|
|
511
|
+
let slotName = null;
|
|
512
|
+
let simple = false;
|
|
513
|
+
let lastSimple = false;
|
|
514
|
+
const vNodeChildren = [];
|
|
515
|
+
const walk = (c) => {
|
|
516
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
517
|
+
child = c[i2];
|
|
518
|
+
if (Array.isArray(child)) {
|
|
519
|
+
walk(child);
|
|
520
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
521
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
522
|
+
child = String(child);
|
|
523
|
+
}
|
|
524
|
+
if (simple && lastSimple) {
|
|
525
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
526
|
+
} else {
|
|
527
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
528
|
+
}
|
|
529
|
+
lastSimple = simple;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
walk(children);
|
|
534
|
+
if (vnodeData) {
|
|
535
|
+
if (vnodeData.key) {
|
|
536
|
+
key = vnodeData.key;
|
|
537
|
+
}
|
|
538
|
+
if (vnodeData.name) {
|
|
539
|
+
slotName = vnodeData.name;
|
|
540
|
+
}
|
|
541
|
+
{
|
|
542
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
543
|
+
if (classData) {
|
|
544
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if (typeof nodeName === "function") {
|
|
549
|
+
return nodeName(
|
|
550
|
+
vnodeData === null ? {} : vnodeData,
|
|
551
|
+
vNodeChildren,
|
|
552
|
+
vdomFnUtils
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
const vnode = newVNode(nodeName, null);
|
|
556
|
+
vnode.$attrs$ = vnodeData;
|
|
557
|
+
if (vNodeChildren.length > 0) {
|
|
558
|
+
vnode.$children$ = vNodeChildren;
|
|
559
|
+
}
|
|
560
|
+
{
|
|
561
|
+
vnode.$key$ = key;
|
|
562
|
+
}
|
|
563
|
+
{
|
|
564
|
+
vnode.$name$ = slotName;
|
|
565
|
+
}
|
|
566
|
+
return vnode;
|
|
567
|
+
};
|
|
568
|
+
var newVNode = (tag, text) => {
|
|
569
|
+
const vnode = {
|
|
570
|
+
$flags$: 0,
|
|
571
|
+
$tag$: tag,
|
|
572
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
573
|
+
$text$: text != null ? text : null,
|
|
574
|
+
$elm$: null,
|
|
575
|
+
$children$: null
|
|
576
|
+
};
|
|
577
|
+
{
|
|
578
|
+
vnode.$attrs$ = null;
|
|
579
|
+
}
|
|
580
|
+
{
|
|
581
|
+
vnode.$key$ = null;
|
|
582
|
+
}
|
|
583
|
+
{
|
|
584
|
+
vnode.$name$ = null;
|
|
585
|
+
}
|
|
586
|
+
return vnode;
|
|
587
|
+
};
|
|
588
|
+
var Host = {};
|
|
589
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
590
|
+
var vdomFnUtils = {
|
|
591
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
592
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
593
|
+
};
|
|
594
|
+
var convertToPublic = (node) => ({
|
|
595
|
+
vattrs: node.$attrs$,
|
|
596
|
+
vchildren: node.$children$,
|
|
597
|
+
vkey: node.$key$,
|
|
598
|
+
vname: node.$name$,
|
|
599
|
+
vtag: node.$tag$,
|
|
600
|
+
vtext: node.$text$
|
|
601
|
+
});
|
|
602
|
+
var convertToPrivate = (node) => {
|
|
603
|
+
if (typeof node.vtag === "function") {
|
|
604
|
+
const vnodeData = { ...node.vattrs };
|
|
605
|
+
if (node.vkey) {
|
|
606
|
+
vnodeData.key = node.vkey;
|
|
607
|
+
}
|
|
608
|
+
if (node.vname) {
|
|
609
|
+
vnodeData.name = node.vname;
|
|
610
|
+
}
|
|
611
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
612
|
+
}
|
|
613
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
614
|
+
vnode.$attrs$ = node.vattrs;
|
|
615
|
+
vnode.$children$ = node.vchildren;
|
|
616
|
+
vnode.$key$ = node.vkey;
|
|
617
|
+
vnode.$name$ = node.vname;
|
|
618
|
+
return vnode;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
// src/runtime/parse-property-value.ts
|
|
622
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
623
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
624
|
+
if (propType & 4 /* Boolean */) {
|
|
625
|
+
{
|
|
626
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
if (propType & 2 /* Number */) {
|
|
630
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
631
|
+
}
|
|
632
|
+
if (propType & 1 /* String */) {
|
|
633
|
+
return String(propValue);
|
|
634
|
+
}
|
|
635
|
+
return propValue;
|
|
636
|
+
}
|
|
637
|
+
return propValue;
|
|
638
|
+
};
|
|
639
|
+
var getElement = (ref) => {
|
|
640
|
+
var _a;
|
|
641
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
// src/runtime/event-emitter.ts
|
|
645
|
+
var createEvent = (ref, name, flags) => {
|
|
646
|
+
const elm = getElement(ref);
|
|
647
|
+
return {
|
|
648
|
+
emit: (detail) => {
|
|
649
|
+
return emitEvent(elm, name, {
|
|
650
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
651
|
+
composed: !!(flags & 2 /* Composed */),
|
|
652
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
653
|
+
detail
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
var emitEvent = (elm, name, opts) => {
|
|
659
|
+
const ev = plt.ce(name, opts);
|
|
660
|
+
elm.dispatchEvent(ev);
|
|
661
|
+
return ev;
|
|
662
|
+
};
|
|
663
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
664
|
+
if (oldValue === newValue) {
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
668
|
+
let ln = memberName.toLowerCase();
|
|
669
|
+
if (memberName === "class") {
|
|
670
|
+
const classList = elm.classList;
|
|
671
|
+
const oldClasses = parseClassList(oldValue);
|
|
672
|
+
let newClasses = parseClassList(newValue);
|
|
673
|
+
{
|
|
674
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
675
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
676
|
+
}
|
|
677
|
+
} else if (memberName === "style") {
|
|
678
|
+
{
|
|
679
|
+
for (const prop in oldValue) {
|
|
680
|
+
if (!newValue || newValue[prop] == null) {
|
|
681
|
+
if (prop.includes("-")) {
|
|
682
|
+
elm.style.removeProperty(prop);
|
|
683
|
+
} else {
|
|
684
|
+
elm.style[prop] = "";
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
for (const prop in newValue) {
|
|
690
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
691
|
+
if (prop.includes("-")) {
|
|
692
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
693
|
+
} else {
|
|
694
|
+
elm.style[prop] = newValue[prop];
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
699
|
+
if (newValue) {
|
|
700
|
+
queueRefAttachment(newValue, elm);
|
|
701
|
+
}
|
|
702
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
703
|
+
if (memberName[2] === "-") {
|
|
704
|
+
memberName = memberName.slice(3);
|
|
705
|
+
} else if (isMemberInElement(win, ln)) {
|
|
706
|
+
memberName = ln.slice(2);
|
|
707
|
+
} else {
|
|
708
|
+
memberName = ln[2] + memberName.slice(3);
|
|
709
|
+
}
|
|
710
|
+
if (oldValue || newValue) {
|
|
711
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
712
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
713
|
+
if (oldValue) {
|
|
714
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
715
|
+
}
|
|
716
|
+
if (newValue) {
|
|
717
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
721
|
+
const propName = memberName.slice(5);
|
|
722
|
+
let attrName;
|
|
723
|
+
{
|
|
724
|
+
const hostRef = getHostRef(elm);
|
|
725
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
726
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
727
|
+
if (memberMeta && memberMeta[1]) {
|
|
728
|
+
attrName = memberMeta[1];
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
if (!attrName) {
|
|
733
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
734
|
+
}
|
|
735
|
+
if (newValue == null || newValue === false) {
|
|
736
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
737
|
+
elm.removeAttribute(attrName);
|
|
738
|
+
}
|
|
739
|
+
} else {
|
|
740
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
741
|
+
}
|
|
742
|
+
return;
|
|
743
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
744
|
+
const propName = memberName.slice(5);
|
|
745
|
+
try {
|
|
746
|
+
elm[propName] = newValue;
|
|
747
|
+
} catch (e) {
|
|
748
|
+
}
|
|
749
|
+
return;
|
|
750
|
+
} else {
|
|
751
|
+
const isComplex = isComplexType(newValue);
|
|
752
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
753
|
+
try {
|
|
754
|
+
if (!elm.tagName.includes("-")) {
|
|
755
|
+
const n = newValue == null ? "" : newValue;
|
|
756
|
+
if (memberName === "list") {
|
|
757
|
+
isProp = false;
|
|
758
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
759
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
760
|
+
elm[memberName] = n;
|
|
761
|
+
} else {
|
|
762
|
+
elm.setAttribute(memberName, n);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
} else if (elm[memberName] !== newValue) {
|
|
766
|
+
elm[memberName] = newValue;
|
|
767
|
+
}
|
|
768
|
+
} catch (e) {
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
let xlink = false;
|
|
772
|
+
{
|
|
773
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
774
|
+
memberName = ln;
|
|
775
|
+
xlink = true;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (newValue == null || newValue === false) {
|
|
779
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
780
|
+
if (xlink) {
|
|
781
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
782
|
+
} else {
|
|
783
|
+
elm.removeAttribute(memberName);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
787
|
+
newValue = newValue === true ? "" : newValue;
|
|
788
|
+
if (xlink) {
|
|
789
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
790
|
+
} else {
|
|
791
|
+
elm.setAttribute(memberName, newValue);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
var parseClassListRegex = /\s/;
|
|
797
|
+
var parseClassList = (value) => {
|
|
798
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
799
|
+
value = value.baseVal;
|
|
800
|
+
}
|
|
801
|
+
if (!value || typeof value !== "string") {
|
|
802
|
+
return [];
|
|
803
|
+
}
|
|
804
|
+
return value.split(parseClassListRegex);
|
|
805
|
+
};
|
|
806
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
807
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
808
|
+
|
|
809
|
+
// src/runtime/vdom/update-element.ts
|
|
810
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
811
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
812
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
813
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
814
|
+
{
|
|
815
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
816
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
817
|
+
setAccessor(
|
|
818
|
+
elm,
|
|
819
|
+
memberName,
|
|
820
|
+
oldVnodeAttrs[memberName],
|
|
821
|
+
void 0,
|
|
822
|
+
isSvgMode2,
|
|
823
|
+
newVnode.$flags$);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
828
|
+
setAccessor(
|
|
829
|
+
elm,
|
|
830
|
+
memberName,
|
|
831
|
+
oldVnodeAttrs[memberName],
|
|
832
|
+
newVnodeAttrs[memberName],
|
|
833
|
+
isSvgMode2,
|
|
834
|
+
newVnode.$flags$);
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
function sortedAttrNames(attrNames) {
|
|
838
|
+
return attrNames.includes("ref") ? (
|
|
839
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
840
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
841
|
+
) : (
|
|
842
|
+
// no need to sort, return the original array
|
|
843
|
+
attrNames
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
var contentRef;
|
|
847
|
+
var hostTagName;
|
|
848
|
+
var useNativeShadowDom = false;
|
|
849
|
+
var checkSlotFallbackVisibility = false;
|
|
850
|
+
var checkSlotRelocate = false;
|
|
851
|
+
var isSvgMode = false;
|
|
852
|
+
var refCallbacksToRemove = [];
|
|
853
|
+
var refCallbacksToAttach = [];
|
|
854
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
855
|
+
var _a;
|
|
856
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
857
|
+
let i2 = 0;
|
|
858
|
+
let elm;
|
|
859
|
+
let childNode;
|
|
860
|
+
let oldVNode;
|
|
861
|
+
if (!useNativeShadowDom) {
|
|
862
|
+
checkSlotRelocate = true;
|
|
863
|
+
if (newVNode2.$tag$ === "slot") {
|
|
864
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
865
|
+
// slot element has fallback content
|
|
866
|
+
// still create an element that "mocks" the slot element
|
|
867
|
+
2 /* isSlotFallback */
|
|
868
|
+
) : (
|
|
869
|
+
// slot element does not have fallback content
|
|
870
|
+
// create an html comment we'll use to always reference
|
|
871
|
+
// where actual slot content should sit next to
|
|
872
|
+
1 /* isSlotReference */
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
if (newVNode2.$text$ != null) {
|
|
877
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
878
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
879
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
880
|
+
{
|
|
881
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
882
|
+
}
|
|
883
|
+
} else {
|
|
884
|
+
if (!isSvgMode) {
|
|
885
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
886
|
+
}
|
|
887
|
+
if (!win.document) {
|
|
888
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
889
|
+
}
|
|
890
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
891
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
892
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
893
|
+
) ;
|
|
894
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
895
|
+
isSvgMode = false;
|
|
896
|
+
}
|
|
897
|
+
{
|
|
898
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
899
|
+
}
|
|
900
|
+
if (newVNode2.$children$) {
|
|
901
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
902
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
903
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
904
|
+
if (childNode) {
|
|
905
|
+
appendTarget.appendChild(childNode);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
{
|
|
910
|
+
if (newVNode2.$tag$ === "svg") {
|
|
911
|
+
isSvgMode = false;
|
|
912
|
+
} else if (elm.tagName === "foreignObject") {
|
|
913
|
+
isSvgMode = true;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
elm["s-hn"] = hostTagName;
|
|
918
|
+
{
|
|
919
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
920
|
+
elm["s-sr"] = true;
|
|
921
|
+
elm["s-cr"] = contentRef;
|
|
922
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
923
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
924
|
+
patchSlotNode(elm);
|
|
925
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
926
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
927
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return elm;
|
|
932
|
+
};
|
|
933
|
+
var relocateToHostRoot = (parentElm) => {
|
|
934
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
935
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
936
|
+
if (host != null) {
|
|
937
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
938
|
+
(ref) => ref["s-cr"]
|
|
939
|
+
);
|
|
940
|
+
const childNodeArray = Array.from(
|
|
941
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
942
|
+
);
|
|
943
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
944
|
+
if (childNode["s-sh"] != null) {
|
|
945
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
946
|
+
childNode["s-sh"] = void 0;
|
|
947
|
+
checkSlotRelocate = true;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
952
|
+
};
|
|
953
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
954
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
955
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
956
|
+
if (parentElm["s-sr"]) {
|
|
957
|
+
let node = parentElm;
|
|
958
|
+
while (node = node.nextSibling) {
|
|
959
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
960
|
+
oldSlotChildNodes.push(node);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
965
|
+
const childNode = oldSlotChildNodes[i2];
|
|
966
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
967
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
968
|
+
childNode["s-ol"].remove();
|
|
969
|
+
childNode["s-ol"] = void 0;
|
|
970
|
+
childNode["s-sh"] = void 0;
|
|
971
|
+
checkSlotRelocate = true;
|
|
972
|
+
}
|
|
973
|
+
if (recursive) {
|
|
974
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
978
|
+
};
|
|
979
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
980
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
981
|
+
let childNode;
|
|
982
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
983
|
+
containerElm = containerElm.shadowRoot;
|
|
984
|
+
}
|
|
985
|
+
if (parentVNode.$tag$ === "template") {
|
|
986
|
+
containerElm = containerElm.content;
|
|
987
|
+
}
|
|
988
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
989
|
+
if (vnodes[startIdx]) {
|
|
990
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
991
|
+
if (childNode) {
|
|
992
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
993
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
999
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
1000
|
+
const vnode = vnodes[index];
|
|
1001
|
+
if (vnode) {
|
|
1002
|
+
const elm = vnode.$elm$;
|
|
1003
|
+
nullifyVNodeRefs(vnode);
|
|
1004
|
+
if (elm) {
|
|
1005
|
+
{
|
|
1006
|
+
checkSlotFallbackVisibility = true;
|
|
1007
|
+
if (elm["s-ol"]) {
|
|
1008
|
+
elm["s-ol"].remove();
|
|
1009
|
+
} else {
|
|
1010
|
+
putBackInOriginalLocation(elm, true);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
elm.remove();
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
1019
|
+
let oldStartIdx = 0;
|
|
1020
|
+
let newStartIdx = 0;
|
|
1021
|
+
let idxInOld = 0;
|
|
1022
|
+
let i2 = 0;
|
|
1023
|
+
let oldEndIdx = oldCh.length - 1;
|
|
1024
|
+
let oldStartVnode = oldCh[0];
|
|
1025
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
1026
|
+
let newEndIdx = newCh.length - 1;
|
|
1027
|
+
let newStartVnode = newCh[0];
|
|
1028
|
+
let newEndVnode = newCh[newEndIdx];
|
|
1029
|
+
let node;
|
|
1030
|
+
let elmToMove;
|
|
1031
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
1032
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
1033
|
+
if (oldStartVnode == null) {
|
|
1034
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
1035
|
+
} else if (oldEndVnode == null) {
|
|
1036
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
1037
|
+
} else if (newStartVnode == null) {
|
|
1038
|
+
newStartVnode = newCh[++newStartIdx];
|
|
1039
|
+
} else if (newEndVnode == null) {
|
|
1040
|
+
newEndVnode = newCh[--newEndIdx];
|
|
1041
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
1042
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
1043
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
1044
|
+
newStartVnode = newCh[++newStartIdx];
|
|
1045
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
1046
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
1047
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
1048
|
+
newEndVnode = newCh[--newEndIdx];
|
|
1049
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1050
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1051
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1052
|
+
}
|
|
1053
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
1054
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
1055
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
1056
|
+
newEndVnode = newCh[--newEndIdx];
|
|
1057
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1058
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1059
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1060
|
+
}
|
|
1061
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
1062
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
1063
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
1064
|
+
newStartVnode = newCh[++newStartIdx];
|
|
1065
|
+
} else {
|
|
1066
|
+
idxInOld = -1;
|
|
1067
|
+
{
|
|
1068
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1069
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1070
|
+
idxInOld = i2;
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
if (idxInOld >= 0) {
|
|
1076
|
+
elmToMove = oldCh[idxInOld];
|
|
1077
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1078
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
1079
|
+
} else {
|
|
1080
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1081
|
+
oldCh[idxInOld] = void 0;
|
|
1082
|
+
node = elmToMove.$elm$;
|
|
1083
|
+
}
|
|
1084
|
+
newStartVnode = newCh[++newStartIdx];
|
|
1085
|
+
} else {
|
|
1086
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
1087
|
+
newStartVnode = newCh[++newStartIdx];
|
|
1088
|
+
}
|
|
1089
|
+
if (node) {
|
|
1090
|
+
{
|
|
1091
|
+
insertBefore(
|
|
1092
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1093
|
+
node,
|
|
1094
|
+
referenceNode(oldStartVnode.$elm$)
|
|
1095
|
+
);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
if (oldStartIdx > oldEndIdx) {
|
|
1101
|
+
addVnodes(
|
|
1102
|
+
parentElm,
|
|
1103
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
1104
|
+
newVNode2,
|
|
1105
|
+
newCh,
|
|
1106
|
+
newStartIdx,
|
|
1107
|
+
newEndIdx
|
|
1108
|
+
);
|
|
1109
|
+
} else if (newStartIdx > newEndIdx) {
|
|
1110
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1114
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1115
|
+
if (leftVNode.$tag$ === "slot") {
|
|
1116
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
1117
|
+
}
|
|
1118
|
+
if (!isInitialRender) {
|
|
1119
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
1120
|
+
}
|
|
1121
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1122
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
1123
|
+
}
|
|
1124
|
+
return true;
|
|
1125
|
+
}
|
|
1126
|
+
return false;
|
|
1127
|
+
};
|
|
1128
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
1129
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1130
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1131
|
+
const oldChildren = oldVNode.$children$;
|
|
1132
|
+
const newChildren = newVNode2.$children$;
|
|
1133
|
+
const tag = newVNode2.$tag$;
|
|
1134
|
+
const text = newVNode2.$text$;
|
|
1135
|
+
let defaultHolder;
|
|
1136
|
+
if (text == null) {
|
|
1137
|
+
{
|
|
1138
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1139
|
+
}
|
|
1140
|
+
{
|
|
1141
|
+
if (tag === "slot" && !useNativeShadowDom) {
|
|
1142
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
1143
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
1144
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1148
|
+
}
|
|
1149
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
1150
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1151
|
+
} else if (newChildren !== null) {
|
|
1152
|
+
if (oldVNode.$text$ !== null) {
|
|
1153
|
+
elm.textContent = "";
|
|
1154
|
+
}
|
|
1155
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
1156
|
+
} else if (
|
|
1157
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
1158
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1159
|
+
) {
|
|
1160
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1161
|
+
} else ;
|
|
1162
|
+
if (isSvgMode && tag === "svg") {
|
|
1163
|
+
isSvgMode = false;
|
|
1164
|
+
}
|
|
1165
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1166
|
+
defaultHolder.parentNode.textContent = text;
|
|
1167
|
+
} else if (oldVNode.$text$ !== text) {
|
|
1168
|
+
elm.data = text;
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
var relocateNodes = [];
|
|
1172
|
+
var markSlotContentForRelocation = (elm) => {
|
|
1173
|
+
let node;
|
|
1174
|
+
let hostContentNodes;
|
|
1175
|
+
let j;
|
|
1176
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1177
|
+
for (const childNode of children) {
|
|
1178
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1179
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1180
|
+
const slotName = childNode["s-sn"];
|
|
1181
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1182
|
+
node = hostContentNodes[j];
|
|
1183
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
1184
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1185
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1186
|
+
checkSlotFallbackVisibility = true;
|
|
1187
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
1188
|
+
if (relocateNodeData) {
|
|
1189
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1190
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
1191
|
+
} else {
|
|
1192
|
+
node["s-sh"] = childNode["s-hn"];
|
|
1193
|
+
relocateNodes.push({
|
|
1194
|
+
$slotRefNode$: childNode,
|
|
1195
|
+
$nodeToRelocate$: node
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
if (node["s-sr"]) {
|
|
1199
|
+
relocateNodes.map((relocateNode) => {
|
|
1200
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1201
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1202
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1203
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1209
|
+
relocateNodes.push({
|
|
1210
|
+
$nodeToRelocate$: node
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1217
|
+
markSlotContentForRelocation(childNode);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
1222
|
+
{
|
|
1223
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
1224
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
1225
|
+
}
|
|
1226
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
1230
|
+
{
|
|
1231
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
var flushQueuedRefCallbacks = () => {
|
|
1235
|
+
{
|
|
1236
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
1237
|
+
refCallbacksToRemove.length = 0;
|
|
1238
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
1239
|
+
refCallbacksToAttach.length = 0;
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1243
|
+
{
|
|
1244
|
+
if (typeof newNode["s-sn"] === "string") {
|
|
1245
|
+
parent.insertBefore(newNode, reference);
|
|
1246
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1247
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1248
|
+
return newNode;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
if (parent.__insertBefore) {
|
|
1252
|
+
return parent.__insertBefore(newNode, reference);
|
|
1253
|
+
} else {
|
|
1254
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1255
|
+
}
|
|
1256
|
+
};
|
|
1257
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1258
|
+
var _a, _b, _c, _d, _e;
|
|
1259
|
+
const hostElm = hostRef.$hostElement$;
|
|
1260
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1261
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1262
|
+
const isHostElement = isHost(renderFnResults);
|
|
1263
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1264
|
+
hostTagName = hostElm.tagName;
|
|
1265
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
1266
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1267
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1268
|
+
{
|
|
1269
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1274
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1275
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
1276
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
rootVnode.$tag$ = null;
|
|
1281
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1282
|
+
hostRef.$vnode$ = rootVnode;
|
|
1283
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1284
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1285
|
+
{
|
|
1286
|
+
contentRef = hostElm["s-cr"];
|
|
1287
|
+
checkSlotFallbackVisibility = false;
|
|
1288
|
+
}
|
|
1289
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1290
|
+
{
|
|
1291
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1292
|
+
if (checkSlotRelocate) {
|
|
1293
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1294
|
+
for (const relocateData of relocateNodes) {
|
|
1295
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1296
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1297
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1298
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1299
|
+
insertBefore(
|
|
1300
|
+
nodeToRelocate.parentNode,
|
|
1301
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
1302
|
+
nodeToRelocate,
|
|
1303
|
+
isInitialLoad
|
|
1304
|
+
);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
for (const relocateData of relocateNodes) {
|
|
1308
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1309
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1310
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
1311
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
1312
|
+
}
|
|
1313
|
+
if (slotRefNode) {
|
|
1314
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1315
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1316
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1317
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
1318
|
+
while (orgLocationNode) {
|
|
1319
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
1320
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1321
|
+
refNode = refNode.nextSibling;
|
|
1322
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1323
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1324
|
+
}
|
|
1325
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1326
|
+
insertBeforeNode = refNode;
|
|
1327
|
+
break;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1334
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1335
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1336
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1337
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
1338
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
1339
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
1340
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
1341
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
1342
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
1343
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
1344
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
1345
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
1346
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
1347
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
1348
|
+
}
|
|
1349
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1350
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1355
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1356
|
+
nodeToRelocate.hidden = true;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
if (checkSlotFallbackVisibility) {
|
|
1361
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1362
|
+
}
|
|
1363
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1364
|
+
relocateNodes.length = 0;
|
|
1365
|
+
}
|
|
1366
|
+
if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
1367
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1368
|
+
for (const childNode of children) {
|
|
1369
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1370
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1371
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1372
|
+
}
|
|
1373
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1374
|
+
childNode.hidden = true;
|
|
1375
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
1376
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
1377
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
1378
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
1379
|
+
childNode.parentNode.removeChild(childNode);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
contentRef = void 0;
|
|
1385
|
+
flushQueuedRefCallbacks();
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
// src/runtime/update-component.ts
|
|
1389
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1390
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1391
|
+
const index = ancestorComponent["s-p"].push(
|
|
1392
|
+
new Promise(
|
|
1393
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1394
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1395
|
+
r();
|
|
1396
|
+
}
|
|
1397
|
+
)
|
|
1398
|
+
);
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1402
|
+
{
|
|
1403
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1404
|
+
}
|
|
1405
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1406
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1409
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1410
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1411
|
+
if (isInitialLoad) {
|
|
1412
|
+
queueMicrotask(() => {
|
|
1413
|
+
dispatch();
|
|
1414
|
+
});
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
return writeTask(dispatch) ;
|
|
1418
|
+
};
|
|
1419
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1420
|
+
const elm = hostRef.$hostElement$;
|
|
1421
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1422
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1423
|
+
if (!instance) {
|
|
1424
|
+
throw new Error(
|
|
1425
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1428
|
+
let maybePromise;
|
|
1429
|
+
if (isInitialLoad) {
|
|
1430
|
+
{
|
|
1431
|
+
if (hostRef.$deferredConnectedCallback$) {
|
|
1432
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
1433
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1434
|
+
}
|
|
1435
|
+
{
|
|
1436
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1437
|
+
if (hostRef.$queuedListeners$) {
|
|
1438
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1439
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1443
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1447
|
+
} else {
|
|
1448
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1449
|
+
}
|
|
1450
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1451
|
+
endSchedule();
|
|
1452
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1453
|
+
};
|
|
1454
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1455
|
+
console.error(err);
|
|
1456
|
+
fn();
|
|
1457
|
+
}) : fn();
|
|
1458
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1459
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1460
|
+
var _a;
|
|
1461
|
+
const elm = hostRef.$hostElement$;
|
|
1462
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1463
|
+
const rc = elm["s-rc"];
|
|
1464
|
+
if (isInitialLoad) {
|
|
1465
|
+
attachStyles(hostRef);
|
|
1466
|
+
}
|
|
1467
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1468
|
+
{
|
|
1469
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1470
|
+
}
|
|
1471
|
+
if (rc) {
|
|
1472
|
+
rc.map((cb) => cb());
|
|
1473
|
+
elm["s-rc"] = void 0;
|
|
1474
|
+
}
|
|
1475
|
+
endRender();
|
|
1476
|
+
endUpdate();
|
|
1477
|
+
{
|
|
1478
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1479
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1480
|
+
if (childrenPromises.length === 0) {
|
|
1481
|
+
postUpdate();
|
|
1482
|
+
} else {
|
|
1483
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
1484
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1485
|
+
childrenPromises.length = 0;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
};
|
|
1489
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1490
|
+
try {
|
|
1491
|
+
instance = instance.render() ;
|
|
1492
|
+
{
|
|
1493
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
1494
|
+
}
|
|
1495
|
+
{
|
|
1496
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1497
|
+
}
|
|
1498
|
+
{
|
|
1499
|
+
{
|
|
1500
|
+
{
|
|
1501
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
} catch (e) {
|
|
1506
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1507
|
+
}
|
|
1508
|
+
return null;
|
|
1509
|
+
};
|
|
1510
|
+
var postUpdateComponent = (hostRef) => {
|
|
1511
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1512
|
+
const elm = hostRef.$hostElement$;
|
|
1513
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1514
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1515
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1516
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1517
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1518
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1519
|
+
{
|
|
1520
|
+
addHydratedFlag(elm);
|
|
1521
|
+
}
|
|
1522
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1523
|
+
endPostUpdate();
|
|
1524
|
+
{
|
|
1525
|
+
hostRef.$onReadyResolve$(elm);
|
|
1526
|
+
if (!ancestorComponent) {
|
|
1527
|
+
appDidLoad();
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
} else {
|
|
1531
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1532
|
+
endPostUpdate();
|
|
1533
|
+
}
|
|
1534
|
+
{
|
|
1535
|
+
hostRef.$onInstanceResolve$(elm);
|
|
1536
|
+
}
|
|
1537
|
+
{
|
|
1538
|
+
if (hostRef.$onRenderResolve$) {
|
|
1539
|
+
hostRef.$onRenderResolve$();
|
|
1540
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1541
|
+
}
|
|
1542
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1543
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1544
|
+
}
|
|
1545
|
+
hostRef.$flags$ &= -517;
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
var appDidLoad = (who) => {
|
|
1549
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1550
|
+
};
|
|
1551
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1552
|
+
if (instance && instance[method]) {
|
|
1553
|
+
try {
|
|
1554
|
+
return instance[method](arg);
|
|
1555
|
+
} catch (e) {
|
|
1556
|
+
consoleError(e, elm);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
return void 0;
|
|
1560
|
+
};
|
|
1561
|
+
var addHydratedFlag = (elm) => {
|
|
1562
|
+
var _a;
|
|
1563
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
// src/runtime/set-value.ts
|
|
1567
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1568
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1569
|
+
const hostRef = getHostRef(ref);
|
|
1570
|
+
if (!hostRef) {
|
|
1571
|
+
return;
|
|
1572
|
+
}
|
|
1573
|
+
if (!hostRef) {
|
|
1574
|
+
throw new Error(
|
|
1575
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
1576
|
+
);
|
|
1577
|
+
}
|
|
1578
|
+
const elm = hostRef.$hostElement$ ;
|
|
1579
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1580
|
+
const flags = hostRef.$flags$;
|
|
1581
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1582
|
+
newVal = parsePropertyValue(
|
|
1583
|
+
newVal,
|
|
1584
|
+
cmpMeta.$members$[propName][0]);
|
|
1585
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1586
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1587
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1588
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
1589
|
+
if (cmpMeta.$watchers$) {
|
|
1590
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1591
|
+
if (watchMethods) {
|
|
1592
|
+
watchMethods.map((watcher) => {
|
|
1593
|
+
try {
|
|
1594
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1595
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1596
|
+
if (!instance) {
|
|
1597
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1598
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1599
|
+
});
|
|
1600
|
+
} else {
|
|
1601
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
} catch (e) {
|
|
1605
|
+
consoleError(e, elm);
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
if (flags & 2 /* hasRendered */) {
|
|
1611
|
+
if (instance.componentShouldUpdate) {
|
|
1612
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1613
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1618
|
+
scheduleUpdate(hostRef, false);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
|
|
1624
|
+
// src/runtime/proxy-component.ts
|
|
1625
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1626
|
+
var _a, _b;
|
|
1627
|
+
const prototype = Cstr.prototype;
|
|
1628
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1629
|
+
{
|
|
1630
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1631
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1632
|
+
}
|
|
1633
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1634
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1635
|
+
}
|
|
1636
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1637
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1641
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
1642
|
+
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1643
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1644
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1645
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1646
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1647
|
+
Object.defineProperty(prototype, memberName, {
|
|
1648
|
+
get() {
|
|
1649
|
+
{
|
|
1650
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1651
|
+
return getValue(this, memberName);
|
|
1652
|
+
}
|
|
1653
|
+
const ref = getHostRef(this);
|
|
1654
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1655
|
+
if (!instance) return;
|
|
1656
|
+
return instance[memberName];
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
configurable: true,
|
|
1660
|
+
enumerable: true
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
Object.defineProperty(prototype, memberName, {
|
|
1664
|
+
set(newValue) {
|
|
1665
|
+
const ref = getHostRef(this);
|
|
1666
|
+
if (!ref) {
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
if (origSetter) {
|
|
1670
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1671
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1672
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1673
|
+
}
|
|
1674
|
+
origSetter.apply(this, [
|
|
1675
|
+
parsePropertyValue(
|
|
1676
|
+
newValue,
|
|
1677
|
+
memberFlags)
|
|
1678
|
+
]);
|
|
1679
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1680
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1681
|
+
return;
|
|
1682
|
+
}
|
|
1683
|
+
{
|
|
1684
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1685
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1686
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1687
|
+
ref.$fetchedCbList$.push(() => {
|
|
1688
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1689
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
return;
|
|
1694
|
+
}
|
|
1695
|
+
const setterSetVal = () => {
|
|
1696
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1697
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1698
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1699
|
+
}
|
|
1700
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1701
|
+
newValue,
|
|
1702
|
+
memberFlags);
|
|
1703
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1704
|
+
};
|
|
1705
|
+
if (ref.$lazyInstance$) {
|
|
1706
|
+
setterSetVal();
|
|
1707
|
+
} else {
|
|
1708
|
+
ref.$fetchedCbList$.push(() => {
|
|
1709
|
+
setterSetVal();
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1716
|
+
Object.defineProperty(prototype, memberName, {
|
|
1717
|
+
value(...args) {
|
|
1718
|
+
var _a2;
|
|
1719
|
+
const ref = getHostRef(this);
|
|
1720
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
1721
|
+
var _a3;
|
|
1722
|
+
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
});
|
|
1728
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
|
1729
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1730
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1731
|
+
plt.jmp(() => {
|
|
1732
|
+
var _a2;
|
|
1733
|
+
const propName = attrNameToPropName.get(attrName);
|
|
1734
|
+
const hostRef = getHostRef(this);
|
|
1735
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1736
|
+
newValue = this[propName];
|
|
1737
|
+
delete this[propName];
|
|
1738
|
+
}
|
|
1739
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1740
|
+
this[propName] == newValue) {
|
|
1741
|
+
return;
|
|
1742
|
+
} else if (propName == null) {
|
|
1743
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1744
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1745
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1746
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1747
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1748
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1749
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1750
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
return;
|
|
1755
|
+
}
|
|
1756
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1757
|
+
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
1758
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1759
|
+
}
|
|
1760
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1761
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1762
|
+
this[propName] = newValue;
|
|
1763
|
+
}
|
|
1764
|
+
});
|
|
1765
|
+
};
|
|
1766
|
+
Cstr.observedAttributes = Array.from(
|
|
1767
|
+
/* @__PURE__ */ new Set([
|
|
1768
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1769
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1770
|
+
var _a2;
|
|
1771
|
+
const attrName = m[1] || propName;
|
|
1772
|
+
attrNameToPropName.set(attrName, propName);
|
|
1773
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1774
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1775
|
+
}
|
|
1776
|
+
return attrName;
|
|
1777
|
+
})
|
|
1778
|
+
])
|
|
1779
|
+
);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
return Cstr;
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1785
|
+
// src/runtime/initialize-component.ts
|
|
1786
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1787
|
+
let Cstr;
|
|
1788
|
+
try {
|
|
1789
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1790
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1791
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1792
|
+
if (bundleId) {
|
|
1793
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1794
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1795
|
+
const endLoad = uniqueTime();
|
|
1796
|
+
Cstr = await CstrImport;
|
|
1797
|
+
endLoad();
|
|
1798
|
+
} else {
|
|
1799
|
+
Cstr = CstrImport;
|
|
1800
|
+
}
|
|
1801
|
+
if (!Cstr) {
|
|
1802
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1803
|
+
}
|
|
1804
|
+
if (!Cstr.isProxied) {
|
|
1805
|
+
{
|
|
1806
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1807
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1808
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1809
|
+
}
|
|
1810
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1811
|
+
Cstr.isProxied = true;
|
|
1812
|
+
}
|
|
1813
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1814
|
+
{
|
|
1815
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1816
|
+
}
|
|
1817
|
+
try {
|
|
1818
|
+
new Cstr(hostRef);
|
|
1819
|
+
} catch (e) {
|
|
1820
|
+
consoleError(e, elm);
|
|
1821
|
+
}
|
|
1822
|
+
{
|
|
1823
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1824
|
+
}
|
|
1825
|
+
{
|
|
1826
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1827
|
+
}
|
|
1828
|
+
endNewInstance();
|
|
1829
|
+
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
1830
|
+
if (!needsDeferredCallback) {
|
|
1831
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1832
|
+
} else {
|
|
1833
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
1834
|
+
}
|
|
1835
|
+
} else {
|
|
1836
|
+
Cstr = elm.constructor;
|
|
1837
|
+
const cmpTag = elm.localName;
|
|
1838
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1839
|
+
}
|
|
1840
|
+
if (Cstr && Cstr.style) {
|
|
1841
|
+
let style;
|
|
1842
|
+
if (typeof Cstr.style === "string") {
|
|
1843
|
+
style = Cstr.style;
|
|
1844
|
+
}
|
|
1845
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1846
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1847
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1848
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1849
|
+
endRegisterStyles();
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1854
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1855
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1856
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1857
|
+
} else {
|
|
1858
|
+
schedule();
|
|
1859
|
+
}
|
|
1860
|
+
} catch (e) {
|
|
1861
|
+
consoleError(e, elm);
|
|
1862
|
+
if (hostRef.$onRenderResolve$) {
|
|
1863
|
+
hostRef.$onRenderResolve$();
|
|
1864
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1865
|
+
}
|
|
1866
|
+
if (hostRef.$onReadyResolve$) {
|
|
1867
|
+
hostRef.$onReadyResolve$(elm);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
};
|
|
1871
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1872
|
+
{
|
|
1873
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1874
|
+
}
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
// src/runtime/connected-callback.ts
|
|
1878
|
+
var connectedCallback = (elm) => {
|
|
1879
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1880
|
+
const hostRef = getHostRef(elm);
|
|
1881
|
+
if (!hostRef) {
|
|
1882
|
+
return;
|
|
1883
|
+
}
|
|
1884
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1885
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1886
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1887
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1888
|
+
{
|
|
1889
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1890
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1891
|
+
setContentReference(elm);
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
{
|
|
1895
|
+
let ancestorComponent = elm;
|
|
1896
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1897
|
+
if (ancestorComponent["s-p"]) {
|
|
1898
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1899
|
+
break;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
if (cmpMeta.$members$) {
|
|
1904
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1905
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1906
|
+
const value = elm[memberName];
|
|
1907
|
+
delete elm[memberName];
|
|
1908
|
+
elm[memberName] = value;
|
|
1909
|
+
}
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
{
|
|
1913
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
|
1914
|
+
}
|
|
1915
|
+
} else {
|
|
1916
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1917
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1918
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1919
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1920
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
endConnected();
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
var setContentReference = (elm) => {
|
|
1927
|
+
if (!win.document) {
|
|
1928
|
+
return;
|
|
1929
|
+
}
|
|
1930
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1931
|
+
""
|
|
1932
|
+
);
|
|
1933
|
+
contentRefElm["s-cn"] = true;
|
|
1934
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1935
|
+
};
|
|
1936
|
+
var disconnectInstance = (instance, elm) => {
|
|
1937
|
+
{
|
|
1938
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
var disconnectedCallback = async (elm) => {
|
|
1942
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1943
|
+
const hostRef = getHostRef(elm);
|
|
1944
|
+
{
|
|
1945
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
1946
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1947
|
+
hostRef.$rmListeners$ = void 0;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1951
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1952
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1953
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1957
|
+
rootAppliedStyles.delete(elm);
|
|
1958
|
+
}
|
|
1959
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1960
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
// src/runtime/bootstrap-lazy.ts
|
|
1965
|
+
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1966
|
+
var _a;
|
|
1967
|
+
if (!win.document) {
|
|
1968
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
const endBootstrap = createTime();
|
|
1972
|
+
const cmpTags = [];
|
|
1973
|
+
const exclude = options.exclude || [];
|
|
1974
|
+
const customElements2 = win.customElements;
|
|
1975
|
+
const head = win.document.head;
|
|
1976
|
+
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1977
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1978
|
+
const deferredConnectedCallbacks = [];
|
|
1979
|
+
let appLoadFallback;
|
|
1980
|
+
let isBootstrapping = true;
|
|
1981
|
+
Object.assign(plt, options);
|
|
1982
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1983
|
+
let hasSlotRelocation = false;
|
|
1984
|
+
lazyBundles.map((lazyBundle) => {
|
|
1985
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1986
|
+
var _a2, _b, _c;
|
|
1987
|
+
const cmpMeta = {
|
|
1988
|
+
$flags$: compactMeta[0],
|
|
1989
|
+
$tagName$: compactMeta[1],
|
|
1990
|
+
$members$: compactMeta[2],
|
|
1991
|
+
$listeners$: compactMeta[3]
|
|
1992
|
+
};
|
|
1993
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1994
|
+
hasSlotRelocation = true;
|
|
1995
|
+
}
|
|
1996
|
+
{
|
|
1997
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1998
|
+
}
|
|
1999
|
+
{
|
|
2000
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
2001
|
+
}
|
|
2002
|
+
{
|
|
2003
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
2004
|
+
}
|
|
2005
|
+
{
|
|
2006
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2007
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
2008
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
2009
|
+
}
|
|
2010
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
2011
|
+
const HostElement = class extends HTMLElement {
|
|
2012
|
+
["s-p"];
|
|
2013
|
+
["s-rc"];
|
|
2014
|
+
hasRegisteredEventListeners = false;
|
|
2015
|
+
// StencilLazyHost
|
|
2016
|
+
constructor(self) {
|
|
2017
|
+
super(self);
|
|
2018
|
+
self = this;
|
|
2019
|
+
registerHost(self, cmpMeta);
|
|
2020
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2021
|
+
{
|
|
2022
|
+
if (!self.shadowRoot) {
|
|
2023
|
+
createShadowRoot.call(self, cmpMeta);
|
|
2024
|
+
} else {
|
|
2025
|
+
if (self.shadowRoot.mode !== "open") {
|
|
2026
|
+
throw new Error(
|
|
2027
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
2028
|
+
);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
connectedCallback() {
|
|
2035
|
+
const hostRef = getHostRef(this);
|
|
2036
|
+
if (!hostRef) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this.hasRegisteredEventListeners) {
|
|
2040
|
+
this.hasRegisteredEventListeners = true;
|
|
2041
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2042
|
+
}
|
|
2043
|
+
if (appLoadFallback) {
|
|
2044
|
+
clearTimeout(appLoadFallback);
|
|
2045
|
+
appLoadFallback = null;
|
|
2046
|
+
}
|
|
2047
|
+
if (isBootstrapping) {
|
|
2048
|
+
deferredConnectedCallbacks.push(this);
|
|
2049
|
+
} else {
|
|
2050
|
+
plt.jmp(() => connectedCallback(this));
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
disconnectedCallback() {
|
|
2054
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
2055
|
+
plt.raf(() => {
|
|
2056
|
+
var _a3;
|
|
2057
|
+
const hostRef = getHostRef(this);
|
|
2058
|
+
if (!hostRef) {
|
|
2059
|
+
return;
|
|
2060
|
+
}
|
|
2061
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2062
|
+
if (i2 > -1) {
|
|
2063
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
2064
|
+
}
|
|
2065
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2066
|
+
delete hostRef.$vnode$.$elm$;
|
|
2067
|
+
}
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
componentOnReady() {
|
|
2071
|
+
var _a3;
|
|
2072
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2076
|
+
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2077
|
+
cmpTags.push(tagName);
|
|
2078
|
+
customElements2.define(
|
|
2079
|
+
tagName,
|
|
2080
|
+
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
2081
|
+
);
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
});
|
|
2085
|
+
if (cmpTags.length > 0) {
|
|
2086
|
+
if (hasSlotRelocation) {
|
|
2087
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
2088
|
+
}
|
|
2089
|
+
{
|
|
2090
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2091
|
+
}
|
|
2092
|
+
if (dataStyles.innerHTML.length) {
|
|
2093
|
+
dataStyles.setAttribute("data-styles", "");
|
|
2094
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2095
|
+
if (nonce != null) {
|
|
2096
|
+
dataStyles.setAttribute("nonce", nonce);
|
|
2097
|
+
}
|
|
2098
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
isBootstrapping = false;
|
|
2102
|
+
if (deferredConnectedCallbacks.length) {
|
|
2103
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2104
|
+
} else {
|
|
2105
|
+
{
|
|
2106
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
endBootstrap();
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
// src/runtime/fragment.ts
|
|
2113
|
+
var Fragment = (_, children) => children;
|
|
2114
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2115
|
+
if (listeners && win.document) {
|
|
2116
|
+
listeners.map(([flags, name, method]) => {
|
|
2117
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2118
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
2119
|
+
const opts = hostListenerOpts(flags);
|
|
2120
|
+
plt.ael(target, name, handler, opts);
|
|
2121
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
};
|
|
2125
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2126
|
+
var _a;
|
|
2127
|
+
try {
|
|
2128
|
+
{
|
|
2129
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2130
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2131
|
+
} else {
|
|
2132
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
} catch (e) {
|
|
2136
|
+
consoleError(e, hostRef.$hostElement$);
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2140
|
+
if (flags & 4 /* TargetDocument */) {
|
|
2141
|
+
return doc;
|
|
2142
|
+
}
|
|
2143
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2144
|
+
return win;
|
|
2145
|
+
}
|
|
2146
|
+
return elm;
|
|
2147
|
+
};
|
|
2148
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
2149
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
|
2150
|
+
capture: (flags & 2 /* Capture */) !== 0
|
|
2151
|
+
} : (flags & 2 /* Capture */) !== 0;
|
|
2152
|
+
|
|
2153
|
+
// src/runtime/nonce.ts
|
|
2154
|
+
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2155
|
+
function transformTag(tag) {
|
|
2156
|
+
return tag;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|