easy-component-ui 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +162 -90
- package/dist/assets/icon.css +1 -0
- package/dist/components/Base.js +872 -0
- package/dist/components/ea-alert.js +196 -0
- package/dist/components/ea-avatar.js +159 -0
- package/dist/components/ea-backtop.js +136 -0
- package/dist/components/ea-badge.js +144 -0
- package/dist/components/ea-breadcrumb.js +148 -0
- package/dist/components/ea-button.js +261 -0
- package/dist/components/ea-calendar.js +10 -0
- package/dist/components/ea-calendar2.js +673 -0
- package/dist/components/ea-card.js +85 -0
- package/dist/components/ea-carousel.js +374 -0
- package/dist/components/ea-checkbox.js +446 -0
- package/dist/components/ea-collapse.js +293 -0
- package/dist/components/ea-color-picker.js +888 -0
- package/dist/components/ea-container.js +177 -0
- package/dist/components/ea-countdown.js +121 -0
- package/dist/components/ea-date-picker.js +649 -0
- package/dist/components/ea-descriptions.js +411 -0
- package/dist/components/ea-dialog.js +249 -0
- package/dist/components/ea-drawer.js +194 -0
- package/dist/components/ea-dropdown.js +228 -0
- package/dist/components/ea-empty.js +85 -0
- package/dist/components/ea-icon.js +68 -0
- package/dist/components/ea-image-preview.js +488 -0
- package/dist/components/ea-image.js +302 -0
- package/dist/components/ea-infinite-scroll.js +109 -0
- package/dist/components/ea-input-number.js +367 -0
- package/dist/components/ea-input.js +588 -0
- package/dist/components/ea-layout.js +125 -0
- package/dist/components/ea-link.js +95 -0
- package/dist/components/ea-loading.js +151 -0
- package/dist/components/ea-menu.js +417 -0
- package/dist/components/ea-message-box.js +624 -0
- package/dist/components/ea-message.js +251 -0
- package/dist/components/ea-notification.js +331 -0
- package/dist/components/ea-overlay.js +161 -0
- package/dist/components/ea-page-header.js +108 -0
- package/dist/components/ea-pagination.js +480 -0
- package/dist/components/ea-popconfirm.js +220 -0
- package/dist/components/ea-popover.js +123 -0
- package/dist/components/ea-popper.js +203 -0
- package/dist/components/ea-progress.js +269 -0
- package/dist/components/ea-radio.js +364 -0
- package/dist/components/ea-rate.js +241 -0
- package/dist/components/ea-result.js +100 -0
- package/dist/components/ea-scrollbar.js +235 -0
- package/dist/components/ea-segmented.js +215 -0
- package/dist/components/ea-select.js +598 -0
- package/dist/components/ea-skeleton.js +246 -0
- package/dist/components/ea-slider.js +421 -0
- package/dist/components/ea-space.js +109 -0
- package/dist/components/ea-splitter.js +217 -0
- package/dist/components/ea-statistic.js +6 -0
- package/dist/components/ea-statistic2.js +83 -0
- package/dist/components/ea-steps.js +312 -0
- package/dist/components/ea-switch.js +271 -0
- package/dist/components/ea-table.js +1007 -0
- package/dist/components/ea-tabs.js +501 -0
- package/dist/components/ea-tag.js +234 -0
- package/dist/components/ea-text.js +103 -0
- package/dist/components/ea-time-picker.js +514 -0
- package/dist/components/ea-timeline.js +186 -0
- package/dist/components/ea-tooltip.js +121 -0
- package/dist/components/ea-tour.js +544 -0
- package/dist/components/ea-transfer.js +949 -0
- package/dist/components/ea-tree.js +1088 -0
- package/dist/components/index.js +61 -0
- package/dist/core/FormBase.js +238 -0
- package/dist/css/ea-alert.style.js +4 -0
- package/dist/css/ea-aside.style.js +4 -0
- package/dist/css/ea-avatar.style.js +4 -0
- package/dist/css/ea-backtop.style.js +4 -0
- package/dist/css/ea-badge.style.js +4 -0
- package/dist/css/ea-breadcrumb-item.style.js +4 -0
- package/dist/css/ea-breadcrumb.style.js +4 -0
- package/dist/css/ea-button-group.style.js +4 -0
- package/dist/css/ea-button.style.js +4 -0
- package/dist/css/ea-calendar.style.js +4 -0
- package/dist/css/ea-card.style.js +4 -0
- package/dist/css/ea-carousel-item.style.js +4 -0
- package/dist/css/ea-carousel.style.js +4 -0
- package/dist/css/ea-check-tag.style.js +4 -0
- package/dist/css/ea-checkbox-group.style.js +4 -0
- package/dist/css/ea-checkbox.style.js +4 -0
- package/dist/css/ea-col.style.js +4 -0
- package/dist/css/ea-collapse-item.style.js +4 -0
- package/dist/css/ea-collapse.style.js +4 -0
- package/dist/css/ea-color-picker-panel.style.js +4 -0
- package/dist/css/ea-color-picker.style.js +4 -0
- package/dist/css/ea-container.style.js +4 -0
- package/dist/css/ea-date-picker.style.js +4 -0
- package/dist/css/ea-descriptions-item.style.js +4 -0
- package/dist/css/ea-descriptions.style.js +4 -0
- package/dist/css/ea-dialog.style.js +4 -0
- package/dist/css/ea-drawer.style.js +4 -0
- package/dist/css/ea-dropdown-item.style.js +4 -0
- package/dist/css/ea-dropdown-menu.style.js +4 -0
- package/dist/css/ea-dropdown.style.js +4 -0
- package/dist/css/ea-empty.style.js +4 -0
- package/dist/css/ea-footer.style.js +4 -0
- package/dist/css/ea-header.style.js +4 -0
- package/dist/css/ea-icon.style.js +4 -0
- package/dist/css/ea-image-preview.style.js +4 -0
- package/dist/css/ea-image.style.js +4 -0
- package/dist/css/ea-infinite-scroll.style.js +4 -0
- package/dist/css/ea-input-number.style.js +4 -0
- package/dist/css/ea-input.style.js +4 -0
- package/dist/css/ea-link.style.js +4 -0
- package/dist/css/ea-main.style.js +4 -0
- package/dist/css/ea-menu-item-group.style.js +4 -0
- package/dist/css/ea-menu-item.style.js +4 -0
- package/dist/css/ea-menu.style.js +4 -0
- package/dist/css/ea-message-box.style.js +4 -0
- package/dist/css/ea-message.style.js +4 -0
- package/dist/css/ea-notification.style.js +4 -0
- package/dist/css/ea-option-gropu.style.js +4 -0
- package/dist/css/ea-option.style.js +4 -0
- package/dist/css/ea-overlay.style.js +4 -0
- package/dist/css/ea-page-header.style.js +4 -0
- package/dist/css/ea-pagination.style.js +4 -0
- package/dist/css/ea-popconfirm.style.js +4 -0
- package/dist/css/ea-popover.style.js +4 -0
- package/dist/css/ea-popper.style.js +4 -0
- package/dist/css/ea-progress.style.js +4 -0
- package/dist/css/ea-radio-group.style.js +4 -0
- package/dist/css/ea-radio.style.js +4 -0
- package/dist/css/ea-rate.style.js +4 -0
- package/dist/css/ea-result.style.js +4 -0
- package/dist/css/ea-row.style.js +4 -0
- package/dist/css/ea-scrollbar.style.js +4 -0
- package/dist/css/ea-segmented.style.js +4 -0
- package/dist/css/ea-select.style.js +4 -0
- package/dist/css/ea-skeleton-item.style.js +4 -0
- package/dist/css/ea-skeleton.style.js +4 -0
- package/dist/css/ea-slider.style.js +4 -0
- package/dist/css/ea-space.style.js +4 -0
- package/dist/css/ea-splitter-bar.style.js +4 -0
- package/dist/css/ea-splitter-panel.style.js +4 -0
- package/dist/css/ea-splitter.style.js +4 -0
- package/dist/css/ea-statistic.style.js +4 -0
- package/dist/css/ea-step.style.js +4 -0
- package/dist/css/ea-steps.style.js +4 -0
- package/dist/css/ea-sub-menu.style.js +4 -0
- package/dist/css/ea-switch.style.js +4 -0
- package/dist/css/ea-tab-panel.style.js +4 -0
- package/dist/css/ea-tab.style.js +4 -0
- package/dist/css/ea-table.style.js +4 -0
- package/dist/css/ea-tabs.style.js +4 -0
- package/dist/css/ea-tag.style.js +4 -0
- package/dist/css/ea-text.style.js +4 -0
- package/dist/css/ea-time-picker.style.js +4 -0
- package/dist/css/ea-timeline-item.style.js +4 -0
- package/dist/css/ea-timeline.style.js +4 -0
- package/dist/css/ea-tooltip.style.js +4 -0
- package/dist/css/ea-tour-step.style.js +4 -0
- package/dist/css/ea-tour.style.js +4 -0
- package/dist/css/ea-transfer.style.js +5 -0
- package/dist/css/ea-tree.style.js +6 -0
- package/dist/css/ea-ui-component.style.js +4 -0
- package/dist/favicon.ico +0 -0
- package/dist/utils/Color.js +439 -0
- package/dist/utils/I18nManager.js +218 -0
- package/dist/utils/Utils.js +65 -0
- package/dist/utils/Variables.js +19 -0
- package/dist/utils/timeout.js +9 -0
- package/package.json +294 -11
- package/build/components/Base.js +0 -1
- package/build/components/ea-alert/index.js +0 -1
- package/build/components/ea-alert/src/style/stylesheet.js +0 -1
- package/build/components/ea-aside/index.js +0 -1
- package/build/components/ea-avatar/index.js +0 -1
- package/build/components/ea-avatar/src/assets/defaultAvatar.js +0 -1
- package/build/components/ea-avatar/src/assets/errorAvatar.js +0 -1
- package/build/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -1
- package/build/components/ea-avatar/src/style/stylesheet.js +0 -1
- package/build/components/ea-backtop/index.js +0 -1
- package/build/components/ea-backtop/src/style/stylesheet.js +0 -1
- package/build/components/ea-badge/index.js +0 -1
- package/build/components/ea-badge/src/style/stylesheet.js +0 -1
- package/build/components/ea-breadcrumb/index.js +0 -1
- package/build/components/ea-breadcrumb/src/style/stylesheet.js +0 -1
- package/build/components/ea-breadcrumb-item/index.js +0 -1
- package/build/components/ea-breadcrumb-item/src/style/style.js +0 -1
- package/build/components/ea-button/index.js +0 -1
- package/build/components/ea-button/src/components/ButtonComm.js +0 -1
- package/build/components/ea-button/src/components/HrefComm.js +0 -1
- package/build/components/ea-button/src/style/stylesheet.js +0 -1
- package/build/components/ea-button-group/index.js +0 -1
- package/build/components/ea-button-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-calendar/index.js +0 -1
- package/build/components/ea-calendar/src/style/stylesheet.js +0 -1
- package/build/components/ea-calendar/src/utils/createChangerElement.js +0 -1
- package/build/components/ea-calendar/src/utils/createThead.js +0 -1
- package/build/components/ea-calendar/src/utils/getDate.js +0 -1
- package/build/components/ea-calendar/src/utils/getUserWeekStart.js +0 -1
- package/build/components/ea-card/index.js +0 -1
- package/build/components/ea-card/src/style/stylesheet.js +0 -1
- package/build/components/ea-carousel/index.js +0 -1
- package/build/components/ea-carousel/src/style/stylesheet.js +0 -1
- package/build/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -1
- package/build/components/ea-carousel-item/index.js +0 -1
- package/build/components/ea-carousel-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-checkbox/index.js +0 -1
- package/build/components/ea-checkbox/src/style/stylesheet.js +0 -1
- package/build/components/ea-checkbox-group/index.js +0 -1
- package/build/components/ea-checkbox-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-collapse/index.js +0 -1
- package/build/components/ea-collapse-item/index.js +0 -1
- package/build/components/ea-collapse-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-container/index.js +0 -1
- package/build/components/ea-date-picker/index.js +0 -1
- package/build/components/ea-date-picker/src/style/stylesheet.js +0 -1
- package/build/components/ea-descriptions/index.js +0 -1
- package/build/components/ea-descriptions/src/components/contentTemplate.js +0 -1
- package/build/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -1
- package/build/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -1
- package/build/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -1
- package/build/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -1
- package/build/components/ea-descriptions/src/style/stylesheet.js +0 -1
- package/build/components/ea-descriptions-item/index.js +0 -1
- package/build/components/ea-descriptions-item/src/stylesheet.js +0 -1
- package/build/components/ea-drawer/index.js +0 -1
- package/build/components/ea-drawer/src/style/stylesheet.js +0 -1
- package/build/components/ea-empty/index.js +0 -1
- package/build/components/ea-empty/src/assets/emptyStatusSVG.js +0 -1
- package/build/components/ea-empty/src/style/stylesheet.js +0 -1
- package/build/components/ea-footer/index.js +0 -1
- package/build/components/ea-form/index.js +0 -1
- package/build/components/ea-form-item/index.js +0 -1
- package/build/components/ea-form-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-header/index.js +0 -1
- package/build/components/ea-icon/config.json +0 -1030
- package/build/components/ea-icon/css/fontello.css +0 -312
- package/build/components/ea-icon/font/fontello.eot +0 -0
- package/build/components/ea-icon/font/fontello.svg +0 -350
- package/build/components/ea-icon/font/fontello.ttf +0 -0
- package/build/components/ea-icon/font/fontello.woff +0 -0
- package/build/components/ea-icon/font/fontello.woff2 +0 -0
- package/build/components/ea-icon/index.css +0 -1
- package/build/components/ea-icon/index.js +0 -1
- package/build/components/ea-image/index.js +0 -1
- package/build/components/ea-image/src/assets/errorImage.js +0 -1
- package/build/components/ea-image/src/style/stylesheet.js +0 -1
- package/build/components/ea-image/src/utils/createPreviewTools.js +0 -1
- package/build/components/ea-infinite-scroll/index.js +0 -1
- package/build/components/ea-infinite-scroll-item/index.js +0 -1
- package/build/components/ea-input/index.js +0 -1
- package/build/components/ea-input/src/components/createFixIcon.js +0 -1
- package/build/components/ea-input/src/components/createSuggestionBoard.js +0 -1
- package/build/components/ea-input/src/components/createWordLimitElement.js +0 -1
- package/build/components/ea-input/src/style/stylesheet.js +0 -1
- package/build/components/ea-input/src/utils/dispatchEvent.js +0 -1
- package/build/components/ea-input/src/utils/handleSearchResult.js +0 -1
- package/build/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -1
- package/build/components/ea-input-number/index.js +0 -1
- package/build/components/ea-input-number/src/style/stylesheet.js +0 -1
- package/build/components/ea-input-number/src/utils/handleCustomEvent.js +0 -1
- package/build/components/ea-link/index.js +0 -1
- package/build/components/ea-link/src/style/stylesheet.js +0 -1
- package/build/components/ea-loading/index.js +0 -1
- package/build/components/ea-loading/src/style/stylesheet.js +0 -1
- package/build/components/ea-main/index.js +0 -1
- package/build/components/ea-menu/index.js +0 -1
- package/build/components/ea-menu/src/style/stylesheet.js +0 -1
- package/build/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -1
- package/build/components/ea-menu-item/index.js +0 -1
- package/build/components/ea-menu-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-menu-item-group/index.js +0 -1
- package/build/components/ea-menu-item-group/src/style/stylesheet.js +0 -1
- package/build/components/ea-message/index.js +0 -1
- package/build/components/ea-message/src/style/stylesheet.js +0 -1
- package/build/components/ea-message/src/utils/MessageClass.js +0 -1
- package/build/components/ea-message-box/index.js +0 -1
- package/build/components/ea-message-box/src/style/stylesheet.js +0 -1
- package/build/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -1
- package/build/components/ea-option/index.js +0 -1
- package/build/components/ea-option/src/style/stylesheet.js +0 -1
- package/build/components/ea-option-gropu/index.js +0 -1
- package/build/components/ea-page-header/index.js +0 -1
- package/build/components/ea-page-header/src/style/stylesheet.js +0 -1
- package/build/components/ea-pagination/index.js +0 -1
- package/build/components/ea-pagination/src/components/getMoreItem.js +0 -1
- package/build/components/ea-pagination/src/components/getPageItem.js +0 -1
- package/build/components/ea-pagination/src/components/getShowTotalItem.js +0 -1
- package/build/components/ea-pagination/src/style/stylesheet.js +0 -1
- package/build/components/ea-pane/index.js +0 -1
- package/build/components/ea-pane/src/stylesheet.js +0 -1
- package/build/components/ea-progress/index.js +0 -1
- package/build/components/ea-progress/src/components/SVGComm.js +0 -1
- package/build/components/ea-progress/src/style/stylesheet.js +0 -1
- package/build/components/ea-radio/index.js +0 -1
- package/build/components/ea-radio/src/style/stylesheet.js +0 -1
- package/build/components/ea-radio-group/index.js +0 -1
- package/build/components/ea-rate/index.js +0 -1
- package/build/components/ea-rate/src/components/rateComm.js +0 -1
- package/build/components/ea-rate/src/style/stylesheet.js +0 -1
- package/build/components/ea-result/index.js +0 -1
- package/build/components/ea-result/src/style/stylesheet.js +0 -1
- package/build/components/ea-select/index.js +0 -1
- package/build/components/ea-select/src/style/stylesheet.js +0 -1
- package/build/components/ea-skeleton/index.js +0 -1
- package/build/components/ea-skeleton/src/style/stylesheet.js +0 -1
- package/build/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -1
- package/build/components/ea-skeleton-item/index.js +0 -1
- package/build/components/ea-skeleton-item/src/assets/imageSVG.js +0 -1
- package/build/components/ea-skeleton-item/src/style/stylesheet.js +0 -1
- package/build/components/ea-step/index.js +0 -1
- package/build/components/ea-step/src/style/stylesheet.js +0 -1
- package/build/components/ea-steps/index.js +0 -1
- package/build/components/ea-steps/src/style/stylesheet.js +0 -1
- package/build/components/ea-submenu/index.js +0 -1
- package/build/components/ea-submenu/src/style/stylesheet.js +0 -1
- package/build/components/ea-switch/index.js +0 -1
- package/build/components/ea-switch/src/style/stylesheet.js +0 -1
- package/build/components/ea-tab/index.js +0 -1
- package/build/components/ea-tab/src/style/stylesheet.js +0 -1
- package/build/components/ea-table/index.js +0 -1
- package/build/components/ea-table/src/style/stylesheet.js +0 -1
- package/build/components/ea-table-column/index.js +0 -1
- package/build/components/ea-tabs/index.js +0 -1
- package/build/components/ea-tabs/src/style/stylesheet.js +0 -1
- package/build/components/ea-tag/index.js +0 -1
- package/build/components/ea-tag/src/style/stylesheet.js +0 -1
- package/build/components/ea-textarea/index.js +0 -1
- package/build/components/ea-textarea/src/style/stylesheet.js +0 -1
- package/build/components/ea-time-picker/index.js +0 -1
- package/build/components/ea-time-picker/src/style/stylesheet.js +0 -1
- package/build/components/ea-timeline/index.js +0 -1
- package/build/components/ea-timeline/style/stylesheet.js +0 -1
- package/build/components/ea-timeline-item/index.js +0 -1
- package/build/components/ea-timeline-item/src/style/stylesheet.js +0 -1
- package/build/components/globalConfig.js +0 -1
- package/build/components/index.js +0 -1
- package/build/utils/Validator.js +0 -1
- package/build/utils/createElement.js +0 -1
- package/build/utils/handleDefaultAttrIsTrue.js +0 -1
- package/build/utils/handleTemplate.js +0 -1
- package/build/utils/setStyle.js +0 -1
- package/build/utils/timeout.js +0 -1
- package/components/Base.js +0 -75
- package/components/ea-alert/index.css +0 -91
- package/components/ea-alert/index.js +0 -210
- package/components/ea-alert/index.scss +0 -108
- package/components/ea-alert/src/style/stylesheet.js +0 -85
- package/components/ea-aside/index.css +0 -9
- package/components/ea-aside/index.js +0 -54
- package/components/ea-aside/index.scss +0 -12
- package/components/ea-avatar/index.css +0 -66
- package/components/ea-avatar/index.js +0 -156
- package/components/ea-avatar/index.scss +0 -59
- package/components/ea-avatar/src/assets/defaultAvatar.js +0 -12
- package/components/ea-avatar/src/assets/errorAvatar.js +0 -9
- package/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -18
- package/components/ea-avatar/src/style/stylesheet.js +0 -61
- package/components/ea-backtop/index.css +0 -27
- package/components/ea-backtop/index.js +0 -167
- package/components/ea-backtop/index.scss +0 -29
- package/components/ea-backtop/src/style/stylesheet.js +0 -21
- package/components/ea-badge/index.css +0 -49
- package/components/ea-badge/index.js +0 -103
- package/components/ea-badge/index.scss +0 -56
- package/components/ea-badge/src/style/stylesheet.js +0 -43
- package/components/ea-breadcrumb/index.css +0 -6
- package/components/ea-breadcrumb/index.js +0 -90
- package/components/ea-breadcrumb/index.scss +0 -7
- package/components/ea-breadcrumb/src/style/stylesheet.js +0 -8
- package/components/ea-breadcrumb-item/index.css +0 -10
- package/components/ea-breadcrumb-item/index.js +0 -23
- package/components/ea-breadcrumb-item/index.scss +0 -12
- package/components/ea-breadcrumb-item/src/style/style.js +0 -12
- package/components/ea-button/index.css +0 -206
- package/components/ea-button/index.js +0 -198
- package/components/ea-button/index.scss +0 -143
- package/components/ea-button/src/components/ButtonComm.js +0 -5
- package/components/ea-button/src/components/HrefComm.js +0 -5
- package/components/ea-button/src/style/stylesheet.js +0 -208
- package/components/ea-button-group/index.css +0 -16
- package/components/ea-button-group/index.js +0 -44
- package/components/ea-button-group/index.scss +0 -20
- package/components/ea-button-group/src/style/stylesheet.js +0 -18
- package/components/ea-calendar/index.css +0 -72
- package/components/ea-calendar/index.js +0 -298
- package/components/ea-calendar/index.scss +0 -106
- package/components/ea-calendar/src/style/stylesheet.js +0 -74
- package/components/ea-calendar/src/utils/createChangerElement.js +0 -10
- package/components/ea-calendar/src/utils/createThead.js +0 -18
- package/components/ea-calendar/src/utils/getDate.js +0 -11
- package/components/ea-calendar/src/utils/getUserWeekStart.js +0 -11
- package/components/ea-card/index.css +0 -25
- package/components/ea-card/index.js +0 -51
- package/components/ea-card/index.scss +0 -24
- package/components/ea-card/src/style/stylesheet.js +0 -19
- package/components/ea-carousel/index.css +0 -103
- package/components/ea-carousel/index.js +0 -222
- package/components/ea-carousel/index.scss +0 -140
- package/components/ea-carousel/src/style/stylesheet.js +0 -105
- package/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -9
- package/components/ea-carousel-item/index.css +0 -20
- package/components/ea-carousel-item/index.js +0 -23
- package/components/ea-carousel-item/index.scss +0 -26
- package/components/ea-carousel-item/src/style/stylesheet.js +0 -22
- package/components/ea-checkbox/index.css +0 -108
- package/components/ea-checkbox/index.js +0 -160
- package/components/ea-checkbox/index.scss +0 -141
- package/components/ea-checkbox/src/style/stylesheet.js +0 -110
- package/components/ea-checkbox-group/index.css +0 -6
- package/components/ea-checkbox-group/index.js +0 -120
- package/components/ea-checkbox-group/index.scss +0 -7
- package/components/ea-checkbox-group/src/style/stylesheet.js +0 -8
- package/components/ea-collapse/index.css +0 -0
- package/components/ea-collapse/index.js +0 -109
- package/components/ea-collapse/index.scss +0 -4
- package/components/ea-collapse-item/index.css +0 -31
- package/components/ea-collapse-item/index.js +0 -111
- package/components/ea-collapse-item/index.scss +0 -46
- package/components/ea-collapse-item/src/style/stylesheet.js +0 -33
- package/components/ea-container/index.css +0 -14
- package/components/ea-container/index.js +0 -85
- package/components/ea-container/index.scss +0 -18
- package/components/ea-date-picker/index.css +0 -17
- package/components/ea-date-picker/index.js +0 -191
- package/components/ea-date-picker/index.scss +0 -29
- package/components/ea-date-picker/src/style/stylesheet.js +0 -19
- package/components/ea-descriptions/index.css +0 -33
- package/components/ea-descriptions/index.js +0 -171
- package/components/ea-descriptions/index.scss +0 -45
- package/components/ea-descriptions/src/components/contentTemplate.js +0 -11
- package/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -6
- package/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -7
- package/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -7
- package/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -8
- package/components/ea-descriptions/src/style/stylesheet.js +0 -35
- package/components/ea-descriptions-item/index.css +0 -21
- package/components/ea-descriptions-item/index.js +0 -71
- package/components/ea-descriptions-item/index.scss +0 -29
- package/components/ea-descriptions-item/src/stylesheet.js +0 -23
- package/components/ea-drawer/index.css +0 -138
- package/components/ea-drawer/index.js +0 -251
- package/components/ea-drawer/index.scss +0 -208
- package/components/ea-drawer/src/style/stylesheet.js +0 -141
- package/components/ea-empty/index.css +0 -30
- package/components/ea-empty/index.js +0 -93
- package/components/ea-empty/index.scss +0 -30
- package/components/ea-empty/src/assets/emptyStatusSVG.js +0 -6
- package/components/ea-empty/src/style/stylesheet.js +0 -24
- package/components/ea-footer/index.css +0 -7
- package/components/ea-footer/index.js +0 -57
- package/components/ea-footer/index.scss +0 -10
- package/components/ea-form/index.css +0 -0
- package/components/ea-form/index.js +0 -121
- package/components/ea-form/index.scss +0 -0
- package/components/ea-form-item/index.css +0 -62
- package/components/ea-form-item/index.js +0 -152
- package/components/ea-form-item/index.scss +0 -83
- package/components/ea-form-item/src/style/stylesheet.js +0 -64
- package/components/ea-header/index.css +0 -7
- package/components/ea-header/index.js +0 -55
- package/components/ea-header/index.scss +0 -10
- package/components/ea-icon/config.json +0 -1030
- package/components/ea-icon/css/fontello.css +0 -312
- package/components/ea-icon/font/fontello.eot +0 -0
- package/components/ea-icon/font/fontello.svg +0 -350
- package/components/ea-icon/font/fontello.ttf +0 -0
- package/components/ea-icon/font/fontello.woff +0 -0
- package/components/ea-icon/font/fontello.woff2 +0 -0
- package/components/ea-icon/index.css +0 -1
- package/components/ea-icon/index.js +0 -84
- package/components/ea-image/index.css +0 -84
- package/components/ea-image/index.js +0 -182
- package/components/ea-image/index.scss +0 -111
- package/components/ea-image/src/assets/errorImage.js +0 -9
- package/components/ea-image/src/assets/errorImage.svg +0 -7
- package/components/ea-image/src/style/stylesheet.js +0 -86
- package/components/ea-image/src/utils/createPreviewTools.js +0 -140
- package/components/ea-infinite-scroll/index.css +0 -0
- package/components/ea-infinite-scroll/index.js +0 -119
- package/components/ea-infinite-scroll/index.scss +0 -0
- package/components/ea-infinite-scroll-item/index.css +0 -0
- package/components/ea-infinite-scroll-item/index.js +0 -18
- package/components/ea-infinite-scroll-item/index.scss +0 -0
- package/components/ea-input/index.css +0 -139
- package/components/ea-input/index.js +0 -398
- package/components/ea-input/index.scss +0 -178
- package/components/ea-input/src/components/createFixIcon.js +0 -108
- package/components/ea-input/src/components/createSuggestionBoard.js +0 -43
- package/components/ea-input/src/components/createWordLimitElement.js +0 -18
- package/components/ea-input/src/style/stylesheet.js +0 -141
- package/components/ea-input/src/utils/dispatchEvent.js +0 -9
- package/components/ea-input/src/utils/handleSearchResult.js +0 -9
- package/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -31
- package/components/ea-input-number/index.css +0 -120
- package/components/ea-input-number/index.js +0 -308
- package/components/ea-input-number/index.scss +0 -132
- package/components/ea-input-number/src/style/stylesheet.js +0 -122
- package/components/ea-input-number/src/utils/handleCustomEvent.js +0 -5
- package/components/ea-link/index.css +0 -48
- package/components/ea-link/index.js +0 -122
- package/components/ea-link/index.scss +0 -36
- package/components/ea-link/src/style/stylesheet.js +0 -50
- package/components/ea-loading/index.css +0 -38
- package/components/ea-loading/index.js +0 -166
- package/components/ea-loading/index.scss +0 -55
- package/components/ea-loading/src/style/stylesheet.js +0 -40
- package/components/ea-main/index.css +0 -8
- package/components/ea-main/index.js +0 -32
- package/components/ea-main/index.scss +0 -11
- package/components/ea-menu/index.css +0 -19
- package/components/ea-menu/index.js +0 -131
- package/components/ea-menu/index.scss +0 -22
- package/components/ea-menu/src/style/stylesheet.js +0 -21
- package/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -32
- package/components/ea-menu-item/index.css +0 -48
- package/components/ea-menu-item/index.js +0 -130
- package/components/ea-menu-item/index.scss +0 -62
- package/components/ea-menu-item/src/style/stylesheet.js +0 -50
- package/components/ea-menu-item-group/index.css +0 -42
- package/components/ea-menu-item-group/index.js +0 -130
- package/components/ea-menu-item-group/index.scss +0 -60
- package/components/ea-menu-item-group/src/style/stylesheet.js +0 -44
- package/components/ea-message/index.css +0 -47
- package/components/ea-message/index.js +0 -171
- package/components/ea-message/index.scss +0 -70
- package/components/ea-message/src/style/stylesheet.js +0 -48
- package/components/ea-message/src/utils/MessageClass.js +0 -67
- package/components/ea-message-box/index.css +0 -85
- package/components/ea-message-box/index.js +0 -211
- package/components/ea-message-box/index.scss +0 -113
- package/components/ea-message-box/src/style/stylesheet.js +0 -87
- package/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -60
- package/components/ea-option/index.css +0 -24
- package/components/ea-option/index.js +0 -74
- package/components/ea-option/index.scss +0 -31
- package/components/ea-option/src/style/stylesheet.js +0 -26
- package/components/ea-option-gropu/index.css +0 -6
- package/components/ea-option-gropu/index.js +0 -57
- package/components/ea-option-gropu/index.scss +0 -8
- package/components/ea-page-header/index.css +0 -33
- package/components/ea-page-header/index.js +0 -91
- package/components/ea-page-header/index.scss +0 -44
- package/components/ea-page-header/src/style/stylesheet.js +0 -35
- package/components/ea-pagination/index.css +0 -69
- package/components/ea-pagination/index.js +0 -305
- package/components/ea-pagination/index.scss +0 -89
- package/components/ea-pagination/src/components/getMoreItem.js +0 -20
- package/components/ea-pagination/src/components/getPageItem.js +0 -11
- package/components/ea-pagination/src/components/getShowTotalItem.js +0 -7
- package/components/ea-pagination/src/style/stylesheet.js +0 -71
- package/components/ea-pane/index.css +0 -6
- package/components/ea-pane/index.js +0 -52
- package/components/ea-pane/index.scss +0 -7
- package/components/ea-pane/src/stylesheet.js +0 -8
- package/components/ea-progress/index.css +0 -61
- package/components/ea-progress/index.js +0 -249
- package/components/ea-progress/index.scss +0 -74
- package/components/ea-progress/src/components/SVGComm.js +0 -18
- package/components/ea-progress/src/style/stylesheet.js +0 -55
- package/components/ea-radio/index.css +0 -82
- package/components/ea-radio/index.js +0 -137
- package/components/ea-radio/index.scss +0 -119
- package/components/ea-radio/src/style/stylesheet.js +0 -84
- package/components/ea-radio-group/index.css +0 -3
- package/components/ea-radio-group/index.js +0 -96
- package/components/ea-radio-group/index.scss +0 -3
- package/components/ea-rate/index.css +0 -44
- package/components/ea-rate/index.js +0 -243
- package/components/ea-rate/index.scss +0 -55
- package/components/ea-rate/src/components/rateComm.js +0 -20
- package/components/ea-rate/src/style/stylesheet.js +0 -45
- package/components/ea-result/index.css +0 -37
- package/components/ea-result/index.js +0 -109
- package/components/ea-result/index.scss +0 -46
- package/components/ea-result/src/style/stylesheet.js +0 -39
- package/components/ea-select/index.css +0 -47
- package/components/ea-select/index.js +0 -312
- package/components/ea-select/index.scss +0 -70
- package/components/ea-select/src/style/stylesheet.js +0 -49
- package/components/ea-skeleton/index.css +0 -12
- package/components/ea-skeleton/index.js +0 -148
- package/components/ea-skeleton/index.scss +0 -16
- package/components/ea-skeleton/src/style/stylesheet.js +0 -14
- package/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -7
- package/components/ea-skeleton-item/index.css +0 -69
- package/components/ea-skeleton-item/index.js +0 -82
- package/components/ea-skeleton-item/index.scss +0 -107
- package/components/ea-skeleton-item/src/assets/imageSVG.js +0 -8
- package/components/ea-skeleton-item/src/style/stylesheet.js +0 -71
- package/components/ea-step/index.css +0 -84
- package/components/ea-step/index.js +0 -230
- package/components/ea-step/index.scss +0 -110
- package/components/ea-step/src/style/stylesheet.js +0 -86
- package/components/ea-steps/index.css +0 -19
- package/components/ea-steps/index.js +0 -104
- package/components/ea-steps/index.scss +0 -23
- package/components/ea-steps/src/style/stylesheet.js +0 -21
- package/components/ea-submenu/index.css +0 -65
- package/components/ea-submenu/index.js +0 -141
- package/components/ea-submenu/index.scss +0 -88
- package/components/ea-submenu/src/style/stylesheet.js +0 -67
- package/components/ea-switch/index.css +0 -90
- package/components/ea-switch/index.js +0 -189
- package/components/ea-switch/index.scss +0 -117
- package/components/ea-switch/src/style/stylesheet.js +0 -92
- package/components/ea-tab/index.css +0 -68
- package/components/ea-tab/index.js +0 -138
- package/components/ea-tab/index.scss +0 -96
- package/components/ea-tab/src/style/stylesheet.js +0 -70
- package/components/ea-table/index.css +0 -98
- package/components/ea-table/index.js +0 -555
- package/components/ea-table/index.scss +0 -90
- package/components/ea-table/src/style/stylesheet.js +0 -100
- package/components/ea-table-column/index.css +0 -0
- package/components/ea-table-column/index.js +0 -164
- package/components/ea-table-column/index.scss +0 -0
- package/components/ea-tabs/index.css +0 -45
- package/components/ea-tabs/index.js +0 -245
- package/components/ea-tabs/index.scss +0 -64
- package/components/ea-tabs/src/style/stylesheet.js +0 -47
- package/components/ea-tag/index.css +0 -90
- package/components/ea-tag/index.js +0 -107
- package/components/ea-tag/index.scss +0 -71
- package/components/ea-tag/src/style/stylesheet.js +0 -92
- package/components/ea-textarea/index.css +0 -37
- package/components/ea-textarea/index.js +0 -277
- package/components/ea-textarea/index.scss +0 -48
- package/components/ea-textarea/src/style/stylesheet.js +0 -39
- package/components/ea-time-picker/index.css +0 -82
- package/components/ea-time-picker/index.js +0 -379
- package/components/ea-time-picker/index.scss +0 -110
- package/components/ea-time-picker/src/style/stylesheet.js +0 -84
- package/components/ea-timeline/index.css +0 -0
- package/components/ea-timeline/index.js +0 -74
- package/components/ea-timeline/index.scss +0 -1
- package/components/ea-timeline/style/stylesheet.js +0 -3
- package/components/ea-timeline-item/index.css +0 -79
- package/components/ea-timeline-item/index.js +0 -146
- package/components/ea-timeline-item/index.scss +0 -92
- package/components/ea-timeline-item/src/style/stylesheet.js +0 -81
- package/components/ea-ui-base-style.css +0 -0
- package/components/ea-ui-base-style.scss +0 -153
- package/components/globalConfig.js +0 -10
- package/components/index.js +0 -67
- package/public/logo.png +0 -0
- package/utils/Validator.js +0 -16
- package/utils/createElement.js +0 -30
- package/utils/handleDefaultAttrIsTrue.js +0 -11
- package/utils/handleTemplate.js +0 -19
- package/utils/setStyle.js +0 -8
- package/utils/timeout.js +0 -16
|
@@ -0,0 +1,1088 @@
|
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var be = (d) => {
|
|
3
|
+
throw TypeError(d);
|
|
4
|
+
};
|
|
5
|
+
var Ee = (d, i, e) => i in d ? ge(d, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[i] = e;
|
|
6
|
+
var u = (d, i, e) => Ee(d, typeof i != "symbol" ? i + "" : i, e), pe = (d, i, e) => i.has(d) || be("Cannot " + e);
|
|
7
|
+
var s = (d, i, e) => (pe(d, i, "read from private field"), e ? e.call(d) : i.get(d)), o = (d, i, e) => i.has(d) ? be("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(d) : i.set(d, e), f = (d, i, e, t) => (pe(d, i, "write to private field"), t ? t.call(d, e) : i.set(d, e), e);
|
|
8
|
+
import { n as de } from "./ea-calendar2.js";
|
|
9
|
+
import { B as ce } from "./Base.js";
|
|
10
|
+
import { s as xe, a as ve, b as Ne } from "../css/ea-tree.style.js";
|
|
11
|
+
import "./ea-checkbox.js";
|
|
12
|
+
import { t as fe } from "../utils/timeout.js";
|
|
13
|
+
class we extends Event {
|
|
14
|
+
constructor(i) {
|
|
15
|
+
super("ea-node-expand", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class Ae extends Event {
|
|
19
|
+
constructor(i) {
|
|
20
|
+
super("ea-node-collapse", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
class Se extends Event {
|
|
24
|
+
constructor(i) {
|
|
25
|
+
super("ea-node-select", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class qe extends Event {
|
|
29
|
+
constructor(i) {
|
|
30
|
+
super("ea-node-click", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class Le extends Event {
|
|
34
|
+
constructor(i) {
|
|
35
|
+
super("ea-node-contextmenu", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
class Pe extends Event {
|
|
39
|
+
constructor(i) {
|
|
40
|
+
super("ea-check-change", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class $e extends Event {
|
|
44
|
+
constructor(i) {
|
|
45
|
+
super("ea-check", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
class Te extends Event {
|
|
49
|
+
constructor(i) {
|
|
50
|
+
super("ea-current-change", { bubbles: !0, composed: !0 }), this.detail = i;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var x, q, I, k, y, L, P, D, _, M;
|
|
54
|
+
class Ke extends ce {
|
|
55
|
+
constructor() {
|
|
56
|
+
super();
|
|
57
|
+
/** @type {HTMLElement} */
|
|
58
|
+
o(this, x);
|
|
59
|
+
/** @type {HTMLElement} */
|
|
60
|
+
o(this, q);
|
|
61
|
+
/** @type {HTMLElement} */
|
|
62
|
+
o(this, I);
|
|
63
|
+
/** @type {HTMLElement} */
|
|
64
|
+
o(this, k);
|
|
65
|
+
/** @type {AbortController} */
|
|
66
|
+
o(this, y, new AbortController());
|
|
67
|
+
u(this, "state", this.properties({
|
|
68
|
+
path: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
},
|
|
72
|
+
label: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "",
|
|
75
|
+
observer: (e) => {
|
|
76
|
+
s(this, q).textContent = e;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
selected: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: !1,
|
|
82
|
+
observer: () => {
|
|
83
|
+
this.updateContainerClasslist();
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
expanded: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1,
|
|
89
|
+
observer: (e) => {
|
|
90
|
+
if (!this.hasChildren) return;
|
|
91
|
+
this.updateContainerClasslist();
|
|
92
|
+
const t = this.nextElementSibling;
|
|
93
|
+
t && (t.expanded = e);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
checked: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1,
|
|
99
|
+
observer: (e) => {
|
|
100
|
+
s(this, L).call(this, e), this.updateContainerClasslist();
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
indeterminate: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1,
|
|
106
|
+
observer: () => {
|
|
107
|
+
s(this, L).call(this), this.updateContainerClasslist();
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
disabled: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !1,
|
|
113
|
+
observer: () => {
|
|
114
|
+
s(this, P).call(this), this.updateContainerClasslist();
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"show-checkbox": {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: !1,
|
|
120
|
+
observer: () => {
|
|
121
|
+
this.updateContainerClasslist();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
u(this, "propStates", this.properties({
|
|
126
|
+
hasChildren: {
|
|
127
|
+
props: !0,
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1,
|
|
130
|
+
observer: () => {
|
|
131
|
+
this.updateContainerClasslist();
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
dataProps: {
|
|
135
|
+
props: !0,
|
|
136
|
+
type: Object,
|
|
137
|
+
default: {
|
|
138
|
+
children: "children",
|
|
139
|
+
label: "label",
|
|
140
|
+
disabled: "disabled"
|
|
141
|
+
},
|
|
142
|
+
observer: () => {
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
data: {
|
|
146
|
+
props: !0,
|
|
147
|
+
type: Object,
|
|
148
|
+
default: {},
|
|
149
|
+
observer: (e) => {
|
|
150
|
+
var n;
|
|
151
|
+
const { children: t, label: r, disabled: a } = this.dataProps;
|
|
152
|
+
this.label = (e == null ? void 0 : e[r]) || this.label, this.hasChildren = ((n = e == null ? void 0 : e[t]) == null ? void 0 : n.length) > 0, this.disabled = (e == null ? void 0 : e[a]) || !1;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}));
|
|
156
|
+
/**
|
|
157
|
+
* 更新 checkbox 状态
|
|
158
|
+
* @param {boolean} checked - 是否选中
|
|
159
|
+
* @param {boolean} indeterminate - 是否不确定
|
|
160
|
+
*/
|
|
161
|
+
o(this, L, (e = this.checked, t = this.indeterminate) => {
|
|
162
|
+
s(this, k) && (s(this, k).checked = e, s(this, k).indeterminate = t);
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* 更新禁用状态
|
|
166
|
+
*/
|
|
167
|
+
o(this, P, () => {
|
|
168
|
+
s(this, k) && (s(this, k).disabled = this.disabled);
|
|
169
|
+
});
|
|
170
|
+
/**
|
|
171
|
+
* 处理复选框变化事件
|
|
172
|
+
* @param {Event} e 事件对象
|
|
173
|
+
*/
|
|
174
|
+
o(this, D, (e) => {
|
|
175
|
+
e.stopImmediatePropagation(), !this.disabled && (this.checked = e.detail.checked, this.emit("ea-tree-checkbox-click", {
|
|
176
|
+
bubbles: !0,
|
|
177
|
+
composed: !0,
|
|
178
|
+
detail: {
|
|
179
|
+
label: this,
|
|
180
|
+
checked: e.detail.checked
|
|
181
|
+
}
|
|
182
|
+
}));
|
|
183
|
+
});
|
|
184
|
+
/**
|
|
185
|
+
* 处理标签点击事件
|
|
186
|
+
* @param {Event} e 事件对象
|
|
187
|
+
*/
|
|
188
|
+
o(this, _, (e) => {
|
|
189
|
+
if (e.stopImmediatePropagation(), e.target.closest(this.ns.ce("checkbox"))) return;
|
|
190
|
+
const r = this.parentElement.querySelector("ea-tree-child");
|
|
191
|
+
this.emit("ea-tree-label-click", {
|
|
192
|
+
bubbles: !0,
|
|
193
|
+
composed: !0,
|
|
194
|
+
detail: {
|
|
195
|
+
label: this,
|
|
196
|
+
child: r
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
/**
|
|
201
|
+
* 绑定事件监听器
|
|
202
|
+
*/
|
|
203
|
+
o(this, M, () => {
|
|
204
|
+
s(this, k).addEventListener(
|
|
205
|
+
"change",
|
|
206
|
+
s(this, D),
|
|
207
|
+
{
|
|
208
|
+
signal: s(this, y).signal
|
|
209
|
+
}
|
|
210
|
+
), s(this, x).addEventListener("click", s(this, _), {
|
|
211
|
+
signal: s(this, y).signal
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
/**
|
|
215
|
+
* 获取节点深度
|
|
216
|
+
* @returns {number} 节点深度
|
|
217
|
+
*/
|
|
218
|
+
u(this, "getDepth", () => {
|
|
219
|
+
const e = this.path;
|
|
220
|
+
return e ? e.split("-").length : 0;
|
|
221
|
+
});
|
|
222
|
+
/**
|
|
223
|
+
* 判断是否为根节点
|
|
224
|
+
* @returns {boolean} 是否为根节点
|
|
225
|
+
*/
|
|
226
|
+
u(this, "isRoot", () => this.getDepth() === 1);
|
|
227
|
+
/**
|
|
228
|
+
* 判断是否为叶子节点
|
|
229
|
+
* @returns {boolean} 是否为叶子节点
|
|
230
|
+
*/
|
|
231
|
+
u(this, "isLeaf", () => this.hasChildren ? childTree.querySelectorAll("ea-tree-label").length === 0 : !0);
|
|
232
|
+
this.stylesheet = xe, this.$render();
|
|
233
|
+
}
|
|
234
|
+
static get observedAttributes() {
|
|
235
|
+
return [
|
|
236
|
+
...super.observedAttributes,
|
|
237
|
+
"label",
|
|
238
|
+
"expanded",
|
|
239
|
+
"selected",
|
|
240
|
+
"checked",
|
|
241
|
+
"indeterminate",
|
|
242
|
+
"show-checkbox",
|
|
243
|
+
"disabled",
|
|
244
|
+
"path"
|
|
245
|
+
];
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 获取 classlist 列表
|
|
249
|
+
* @return {string} 属性值
|
|
250
|
+
*/
|
|
251
|
+
updateContainerClasslist() {
|
|
252
|
+
const e = this.computedClasslist(
|
|
253
|
+
"ea-tree-label",
|
|
254
|
+
{
|
|
255
|
+
// ['--' + this.type]: this.type,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"has-children": this.hasChildren,
|
|
259
|
+
expanded: this.expanded,
|
|
260
|
+
selected: this.selected,
|
|
261
|
+
checked: this.checked,
|
|
262
|
+
indeterminate: this.indeterminate,
|
|
263
|
+
"show-checkbox": this["show-checkbox"],
|
|
264
|
+
disabled: this.disabled
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
return s(this, x).className = e, e;
|
|
268
|
+
}
|
|
269
|
+
$render() {
|
|
270
|
+
const e = de("tree-label");
|
|
271
|
+
this.ns = e, this.shadowRoot.innerHTML = `
|
|
272
|
+
<div class='${e.b()}' part='container'>
|
|
273
|
+
<ea-icon icon="icon-angle-right" class='${e.e("toggle-icon")}' part='toggle'></ea-icon>
|
|
274
|
+
<ea-checkbox class='${e.e("checkbox")}' part='checkbox'></ea-checkbox>
|
|
275
|
+
<span class='${e.e("text")}' part='text'></span>
|
|
276
|
+
</div>
|
|
277
|
+
`, f(this, x, this.shadowRoot.querySelector(`.${e.b()}`)), f(this, q, this.shadowRoot.querySelector(`.${e.e("text")}`)), f(this, k, this.shadowRoot.querySelector(e.ce("checkbox"))), f(this, I, this.shadowRoot.querySelector(`.${e.e("toggle")}`)), this.updateContainerClasslist(), s(this, P).call(this);
|
|
278
|
+
}
|
|
279
|
+
connectedCallback() {
|
|
280
|
+
var e;
|
|
281
|
+
super.connectedCallback(), (e = s(this, y)) == null || e.abort(), f(this, y, new AbortController()), s(this, M).call(this);
|
|
282
|
+
}
|
|
283
|
+
$beforeUnmounted() {
|
|
284
|
+
var e;
|
|
285
|
+
(e = s(this, y)) == null || e.abort();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
x = new WeakMap(), q = new WeakMap(), I = new WeakMap(), k = new WeakMap(), y = new WeakMap(), L = new WeakMap(), P = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), M = new WeakMap();
|
|
289
|
+
window.customElements.get("ea-tree-label") || window.customElements.define("ea-tree-label", Ke);
|
|
290
|
+
var m, v, W, N, U, $, F, J, z, G;
|
|
291
|
+
class Be extends ce {
|
|
292
|
+
constructor() {
|
|
293
|
+
super();
|
|
294
|
+
/** @type {HTMLElement} */
|
|
295
|
+
o(this, m);
|
|
296
|
+
/** @type {AbortController} */
|
|
297
|
+
o(this, v, new AbortController());
|
|
298
|
+
o(this, W, {
|
|
299
|
+
expandedNodes: /* @__PURE__ */ new Set(),
|
|
300
|
+
selectedNode: null
|
|
301
|
+
});
|
|
302
|
+
o(this, N, {
|
|
303
|
+
/** @type {AbortController} */
|
|
304
|
+
dataController: null
|
|
305
|
+
});
|
|
306
|
+
u(this, "propState", this.properties({
|
|
307
|
+
data: {
|
|
308
|
+
props: !0,
|
|
309
|
+
type: Array,
|
|
310
|
+
default: "",
|
|
311
|
+
/** @param {Array} newVal */
|
|
312
|
+
observer: async (e) => {
|
|
313
|
+
var t;
|
|
314
|
+
if (await customElements.whenDefined("ea-tree-label"), (t = s(this, N).dataController) == null || t.abort(), Array.isArray(e)) {
|
|
315
|
+
s(this, N).dataController = new AbortController();
|
|
316
|
+
const r = s(this, $).call(this);
|
|
317
|
+
r.innerHTML = "", s(this, z).call(this, e);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
dataProps: {
|
|
322
|
+
props: !0,
|
|
323
|
+
type: Object,
|
|
324
|
+
default: {
|
|
325
|
+
children: "children",
|
|
326
|
+
label: "label",
|
|
327
|
+
disabled: "disabled"
|
|
328
|
+
},
|
|
329
|
+
observer: () => {
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"node-key": {
|
|
333
|
+
props: !0,
|
|
334
|
+
type: String,
|
|
335
|
+
default: "id"
|
|
336
|
+
},
|
|
337
|
+
"show-checkbox": {
|
|
338
|
+
type: Boolean,
|
|
339
|
+
default: !1,
|
|
340
|
+
observer: () => {
|
|
341
|
+
s(this, U).call(this);
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
checked: {
|
|
345
|
+
type: Boolean,
|
|
346
|
+
default: !1,
|
|
347
|
+
observer: (e) => {
|
|
348
|
+
s(this, G).call(this, e), this.updateContainerClasslist();
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
expanded: {
|
|
352
|
+
type: Boolean,
|
|
353
|
+
default: !1,
|
|
354
|
+
observer: (e) => {
|
|
355
|
+
this.hidden = !e, this.updateContainerClasslist();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}));
|
|
359
|
+
/**
|
|
360
|
+
* 获取 classlist 列表
|
|
361
|
+
* @return {string} 属性值
|
|
362
|
+
*/
|
|
363
|
+
/**
|
|
364
|
+
* 更新 checkbox 可见性
|
|
365
|
+
*/
|
|
366
|
+
o(this, U, () => {
|
|
367
|
+
s(this, m).querySelectorAll("ea-tree-label").forEach((t) => {
|
|
368
|
+
t["show-checkbox"] = this["show-checkbox"];
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
/**
|
|
372
|
+
* 获取或创建子节点插槽元素
|
|
373
|
+
* @return {HTMLElement} 子节点插槽元素
|
|
374
|
+
*/
|
|
375
|
+
o(this, $, () => {
|
|
376
|
+
let e = this.querySelector('[slot="children"]');
|
|
377
|
+
if (!e) {
|
|
378
|
+
const t = document.createElement("div");
|
|
379
|
+
t.slot = "children", this.appendChild(t), e = t;
|
|
380
|
+
}
|
|
381
|
+
return e;
|
|
382
|
+
});
|
|
383
|
+
/**
|
|
384
|
+
* 创建树节点路径
|
|
385
|
+
* @param {number} index 节点索引
|
|
386
|
+
* @returns {string} 节点路径
|
|
387
|
+
*/
|
|
388
|
+
o(this, F, (e) => {
|
|
389
|
+
var r;
|
|
390
|
+
const t = (r = this.parentElement) == null ? void 0 : r.querySelector("ea-tree-label");
|
|
391
|
+
return t ? `${t.getAttribute("path")}-${e + 1}` : (e + 1).toString();
|
|
392
|
+
});
|
|
393
|
+
/**
|
|
394
|
+
* 创建子节点元素
|
|
395
|
+
* @param {Object} item 数据项
|
|
396
|
+
* @param {number} index 索引
|
|
397
|
+
* @returns {Object} 包含section、treeLabel和tree的对象
|
|
398
|
+
*/
|
|
399
|
+
o(this, J, (e, t) => {
|
|
400
|
+
if (!e) return { section: null, treeLabel: null, tree: null };
|
|
401
|
+
const { children: r, disabled: a } = this.dataProps, n = document.createElement("section"), l = document.createElement("ea-tree-child"), c = document.createElement("ea-tree-label");
|
|
402
|
+
return n.className = this.ns.e("children"), n.part = "children-wrapper", l.part = "children", c.part = "label", c.dataProps = this.dataProps, l.dataProps = this.dataProps, c.data = e, l.data = e[r], l.hidden = !0, c["show-checkbox"] = this["show-checkbox"], c.setAttribute("path", s(this, F).call(this, t)), a && e[a] === !0 && c.toggleAttribute("disabled", !0), this["show-checkbox"] && l.toggleAttribute("show-checkbox", !0), e[r] && e[r].length > 0 && (c.hasChildren = !0, l.hidden = !s(this, W).expandedNodes.has(c)), { section: n, treeLabel: c, tree: l };
|
|
403
|
+
});
|
|
404
|
+
/**
|
|
405
|
+
* 渲染树节点
|
|
406
|
+
* @param {Array} treeData 树数据
|
|
407
|
+
*/
|
|
408
|
+
o(this, z, (e) => {
|
|
409
|
+
const t = document.createDocumentFragment(), r = s(this, $).call(this);
|
|
410
|
+
e.forEach((a, n) => {
|
|
411
|
+
const { section: l, treeLabel: c, tree: S } = s(this, J).call(this, a, n);
|
|
412
|
+
l.appendChild(c), l.appendChild(S), t.appendChild(l);
|
|
413
|
+
}), r.appendChild(t);
|
|
414
|
+
});
|
|
415
|
+
o(this, G, (e) => {
|
|
416
|
+
s(this, m).querySelectorAll("ea-tree-label").forEach((t) => {
|
|
417
|
+
t.checked = e;
|
|
418
|
+
}), s(this, m).querySelectorAll("ea-tree-child").forEach((t) => {
|
|
419
|
+
t.checked = e;
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
this.stylesheet = ve, this.$render();
|
|
423
|
+
}
|
|
424
|
+
static get observedAttributes() {
|
|
425
|
+
return [
|
|
426
|
+
...super.observedAttributes,
|
|
427
|
+
"show-checkbox",
|
|
428
|
+
"checked",
|
|
429
|
+
"expanded"
|
|
430
|
+
];
|
|
431
|
+
}
|
|
432
|
+
updateContainerClasslist() {
|
|
433
|
+
const e = this.computedClasslist(
|
|
434
|
+
this.ns.b(),
|
|
435
|
+
{
|
|
436
|
+
// ['--' + this.type]: this.type,
|
|
437
|
+
},
|
|
438
|
+
{}
|
|
439
|
+
);
|
|
440
|
+
return s(this, m).className = e, e;
|
|
441
|
+
}
|
|
442
|
+
$render() {
|
|
443
|
+
const e = de("tree-child");
|
|
444
|
+
this.ns = e, this.shadowRoot.innerHTML = `
|
|
445
|
+
<div class='${e.b()}' part='container'>
|
|
446
|
+
<slot name="children"></slot>
|
|
447
|
+
</div>
|
|
448
|
+
`, f(this, m, this.shadowRoot.querySelector(e.cb()));
|
|
449
|
+
}
|
|
450
|
+
connectedCallback() {
|
|
451
|
+
var e;
|
|
452
|
+
super.connectedCallback(), (e = s(this, v)) == null || e.abort(), f(this, v, new AbortController()), this.updateContainerClasslist();
|
|
453
|
+
}
|
|
454
|
+
$beforeUnmounted() {
|
|
455
|
+
var e;
|
|
456
|
+
(e = s(this, v)) == null || e.abort();
|
|
457
|
+
for (const t of Object.values(s(this, N)))
|
|
458
|
+
t == null || t.abort();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
m = new WeakMap(), v = new WeakMap(), W = new WeakMap(), N = new WeakMap(), U = new WeakMap(), $ = new WeakMap(), F = new WeakMap(), J = new WeakMap(), z = new WeakMap(), G = new WeakMap();
|
|
462
|
+
customElements.get("ea-tree-child") || customElements.define("ea-tree-child", Be);
|
|
463
|
+
var h, E, b, C, w, T, g, Q, X, Y, Z, O, V, K, ee, A, te, B, se, R, H, j, re, ae, ne, oe, ie, le;
|
|
464
|
+
class Re extends ce {
|
|
465
|
+
constructor() {
|
|
466
|
+
super();
|
|
467
|
+
/** @type {HTMLElement} */
|
|
468
|
+
o(this, h);
|
|
469
|
+
/** @type {AbortController} */
|
|
470
|
+
o(this, E, new AbortController());
|
|
471
|
+
o(this, b, {
|
|
472
|
+
expandedNodes: /* @__PURE__ */ new Set(),
|
|
473
|
+
selectedNode: null,
|
|
474
|
+
checkedNodes: /* @__PURE__ */ new Set()
|
|
475
|
+
});
|
|
476
|
+
o(this, C, {
|
|
477
|
+
/** @type {AbortController} */
|
|
478
|
+
dataController: null
|
|
479
|
+
});
|
|
480
|
+
u(this, "attrState", this.properties({
|
|
481
|
+
"show-checkbox": {
|
|
482
|
+
type: Boolean,
|
|
483
|
+
default: !1,
|
|
484
|
+
observer: () => {
|
|
485
|
+
s(this, te).call(this);
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"check-strictly": {
|
|
489
|
+
type: Boolean,
|
|
490
|
+
default: !1
|
|
491
|
+
},
|
|
492
|
+
"node-key": {
|
|
493
|
+
type: String,
|
|
494
|
+
default: null
|
|
495
|
+
}
|
|
496
|
+
}));
|
|
497
|
+
u(this, "propState", this.properties({
|
|
498
|
+
data: {
|
|
499
|
+
props: !0,
|
|
500
|
+
type: Array,
|
|
501
|
+
default: "",
|
|
502
|
+
/** @param {Array} newVal */
|
|
503
|
+
observer: async (e) => {
|
|
504
|
+
var t;
|
|
505
|
+
await customElements.whenDefined("ea-tree"), await customElements.whenDefined("ea-tree-label"), (t = s(this, C).dataController) == null || t.abort(), s(this, h).innerHTML = "", e && (s(this, C).dataController = new AbortController(), s(this, X).call(this, e), s(this, re).call(this), fe(() => {
|
|
506
|
+
s(this, Y).call(this, this.defaultExpandedKeys), s(this, Z).call(this, this.defaultCheckedKeys);
|
|
507
|
+
}, 16));
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
dataProps: {
|
|
511
|
+
props: !0,
|
|
512
|
+
type: Object,
|
|
513
|
+
default: {
|
|
514
|
+
children: "children",
|
|
515
|
+
label: "label",
|
|
516
|
+
disabled: "disabled"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
defaultExpandedKeys: {
|
|
520
|
+
props: !0,
|
|
521
|
+
type: Array,
|
|
522
|
+
default: [],
|
|
523
|
+
observer: () => {
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
defaultCheckedKeys: {
|
|
527
|
+
props: !0,
|
|
528
|
+
type: Array,
|
|
529
|
+
default: [],
|
|
530
|
+
observer: () => {
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}));
|
|
534
|
+
/**
|
|
535
|
+
* 根据节点键值查找标签元素
|
|
536
|
+
* @param {*} key 节点键值
|
|
537
|
+
* @returns {HTMLElement|null} 找到的标签元素或null
|
|
538
|
+
*/
|
|
539
|
+
o(this, w, (e) => {
|
|
540
|
+
if (!this["node-key"]) return null;
|
|
541
|
+
const t = this["node-key"];
|
|
542
|
+
return [...s(this, h).querySelectorAll("ea-tree-label")].find((a) => a.data && a.data[t] === e);
|
|
543
|
+
});
|
|
544
|
+
/**
|
|
545
|
+
* 根据节点数据查找标签元素
|
|
546
|
+
* @param {Object} data 节点数据
|
|
547
|
+
* @returns {HTMLElement|null} 找到的标签元素或null
|
|
548
|
+
*/
|
|
549
|
+
o(this, T, (e) => this["node-key"] ? [...s(this, h).querySelectorAll("ea-tree-label")].find((r) => r.data ? JSON.stringify(r.data) === JSON.stringify(e) : !1) : null);
|
|
550
|
+
o(this, g, (e) => e ? typeof e == "object" ? s(this, T).call(this, e) : typeof e == "number" || typeof e == "string" ? s(this, w).call(this, e) : null : null);
|
|
551
|
+
/**
|
|
552
|
+
* 创建树节点元素
|
|
553
|
+
* @param {Object} item 数据项
|
|
554
|
+
* @param {number} index 索引
|
|
555
|
+
* @returns {Object} 包含section、treeLabel和tree的对象
|
|
556
|
+
*/
|
|
557
|
+
o(this, Q, (e, t) => {
|
|
558
|
+
const { children: r, disabled: a } = this.dataProps, n = document.createElement("section"), l = document.createElement("ea-tree-child"), c = document.createElement("ea-tree-label");
|
|
559
|
+
return n.className = "ea-tree__children", n.part = "children-wrapper", l.part = "children", c.part = "label", c.dataProps = this.dataProps, l.dataProps = this.dataProps, c.data = e, l.data = e[r], c["show-checkbox"] = this["show-checkbox"], c.setAttribute("path", (t + 1).toString().concat("$")), a && e[a] === !0 && c.toggleAttribute("disabled", !0), this["show-checkbox"] && l.setAttribute("show-checkbox", ""), e[r] && e[r].length > 0 && (c.hasChildren = !0, l.hidden = !s(this, b).expandedNodes.has(c)), { section: n, treeLabel: c, tree: l };
|
|
560
|
+
});
|
|
561
|
+
/**
|
|
562
|
+
* 渲染树节点
|
|
563
|
+
* @param {Array} treeData 树数据
|
|
564
|
+
*/
|
|
565
|
+
o(this, X, (e) => {
|
|
566
|
+
const t = document.createDocumentFragment();
|
|
567
|
+
e.forEach((r, a) => {
|
|
568
|
+
const { section: n, treeLabel: l, tree: c } = s(this, Q).call(this, r, a);
|
|
569
|
+
n.appendChild(l), n.appendChild(c), t.appendChild(n);
|
|
570
|
+
}), s(this, h).appendChild(t);
|
|
571
|
+
});
|
|
572
|
+
/**
|
|
573
|
+
* 处理默认展开键
|
|
574
|
+
* @param {Array} expandedKeys 展开键数组
|
|
575
|
+
*/
|
|
576
|
+
o(this, Y, (e) => {
|
|
577
|
+
const t = this["node-key"];
|
|
578
|
+
if (!t) return;
|
|
579
|
+
const r = [...s(this, h).querySelectorAll("ea-tree-label")];
|
|
580
|
+
e.forEach((a) => {
|
|
581
|
+
const n = r.find((l) => l.data[t] === a);
|
|
582
|
+
n && (s(this, b).expandedNodes.add(n), s(this, K).call(this, n.nextElementSibling, n));
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
/**
|
|
586
|
+
* 处理默认选中键
|
|
587
|
+
* @param {Array} checkedKeys 选中键数组
|
|
588
|
+
*/
|
|
589
|
+
o(this, Z, (e) => {
|
|
590
|
+
const t = this["node-key"];
|
|
591
|
+
if (!t) return;
|
|
592
|
+
const r = [...s(this, h).querySelectorAll("ea-tree-label")];
|
|
593
|
+
e.forEach((a) => {
|
|
594
|
+
const n = r.find((l) => l.data[t] === a);
|
|
595
|
+
n && (n.checked = !0, n.dispatchEvent(
|
|
596
|
+
new CustomEvent("ea-tree-checkbox-click", {
|
|
597
|
+
bubbles: !0,
|
|
598
|
+
composed: !0,
|
|
599
|
+
detail: {
|
|
600
|
+
label: n,
|
|
601
|
+
checked: !0
|
|
602
|
+
}
|
|
603
|
+
})
|
|
604
|
+
));
|
|
605
|
+
});
|
|
606
|
+
});
|
|
607
|
+
/**
|
|
608
|
+
* 点击标签事件
|
|
609
|
+
* @param {MouseEvent} e 事件对象
|
|
610
|
+
*/
|
|
611
|
+
o(this, O, (e) => {
|
|
612
|
+
e.stopImmediatePropagation();
|
|
613
|
+
const t = e.detail.label, r = e.detail.child;
|
|
614
|
+
t && (this.dispatchEvent(
|
|
615
|
+
new qe({
|
|
616
|
+
data: t.data
|
|
617
|
+
})
|
|
618
|
+
), t.hasChildren && (s(this, b).expandedNodes.has(t) ? (s(this, b).expandedNodes.delete(t), s(this, ee).call(this, r, t)) : (s(this, b).expandedNodes.add(t), s(this, K).call(this, r, t))), s(this, A).call(this, t));
|
|
619
|
+
});
|
|
620
|
+
/**
|
|
621
|
+
* 右键点击事件
|
|
622
|
+
* @param {MouseEvent} e 事件对象
|
|
623
|
+
*/
|
|
624
|
+
o(this, V, (e) => {
|
|
625
|
+
e.preventDefault(), e.stopImmediatePropagation();
|
|
626
|
+
const t = e.target.closest("ea-tree-label");
|
|
627
|
+
!t || t.disabled || this.dispatchEvent(
|
|
628
|
+
new Le({
|
|
629
|
+
data: t.data,
|
|
630
|
+
node: t
|
|
631
|
+
})
|
|
632
|
+
);
|
|
633
|
+
});
|
|
634
|
+
/**
|
|
635
|
+
* 展开节点
|
|
636
|
+
* @param {HTMLElement} tree 树元素
|
|
637
|
+
* @param {HTMLElement} label 标签元素
|
|
638
|
+
*/
|
|
639
|
+
o(this, K, (e, t) => {
|
|
640
|
+
e.toggleAttribute("hidden", !1), t.toggleAttribute("expanded", !0), this.dispatchEvent(
|
|
641
|
+
new we({
|
|
642
|
+
data: t.data,
|
|
643
|
+
node: t,
|
|
644
|
+
expanded: !0
|
|
645
|
+
})
|
|
646
|
+
);
|
|
647
|
+
});
|
|
648
|
+
/**
|
|
649
|
+
* 收起节点
|
|
650
|
+
* @param {HTMLElement} tree 树元素
|
|
651
|
+
* @param {HTMLElement} label 标签元素
|
|
652
|
+
*/
|
|
653
|
+
o(this, ee, (e, t) => {
|
|
654
|
+
e.toggleAttribute("hidden", !0), t.toggleAttribute("expanded", !1), this.dispatchEvent(
|
|
655
|
+
new Ae({
|
|
656
|
+
data: t.data,
|
|
657
|
+
node: t,
|
|
658
|
+
expanded: !1
|
|
659
|
+
})
|
|
660
|
+
);
|
|
661
|
+
});
|
|
662
|
+
/**
|
|
663
|
+
* 选中节点
|
|
664
|
+
* @param {HTMLElement} label 标签元素
|
|
665
|
+
*/
|
|
666
|
+
o(this, A, (e) => {
|
|
667
|
+
s(this, b).selectedNode && (s(this, b).selectedNode.selected = !1), s(this, b).selectedNode = e, e.selected = !0, this.dispatchEvent(
|
|
668
|
+
new Se({
|
|
669
|
+
node: e.data,
|
|
670
|
+
selected: !0
|
|
671
|
+
})
|
|
672
|
+
), this.dispatchEvent(
|
|
673
|
+
new Te({
|
|
674
|
+
data: e.data,
|
|
675
|
+
node: e
|
|
676
|
+
})
|
|
677
|
+
);
|
|
678
|
+
});
|
|
679
|
+
/**
|
|
680
|
+
* 更新 checkbox 可见性
|
|
681
|
+
*/
|
|
682
|
+
o(this, te, () => {
|
|
683
|
+
s(this, h).querySelectorAll("ea-tree-label").forEach((t) => {
|
|
684
|
+
t["show-checkbox"] = this["show-checkbox"];
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
/**
|
|
688
|
+
* 获取相同树路径下的所有节点
|
|
689
|
+
* @param {string} treeRootPath 树路径
|
|
690
|
+
* @returns {Array} 相同树路径的节点数组
|
|
691
|
+
*/
|
|
692
|
+
o(this, B, (e) => {
|
|
693
|
+
const t = [], r = e.split("-");
|
|
694
|
+
for (t.push(s(this, h).querySelector(`[path="${r[0]}"]`)); r.length > 1; ) {
|
|
695
|
+
const a = r.join("-");
|
|
696
|
+
r.pop(), t.push(
|
|
697
|
+
...s(this, h).querySelectorAll(`[path^="${a}"]`)
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
return t;
|
|
701
|
+
});
|
|
702
|
+
/**
|
|
703
|
+
* 检查节点状态
|
|
704
|
+
* @param {Array} labelEls 标签元素数组
|
|
705
|
+
* @param {HTMLElement} currentNode 当前节点
|
|
706
|
+
* @returns {Object} 包含isAllChecked和isAnyChecked的对象
|
|
707
|
+
*/
|
|
708
|
+
o(this, se, (e, t) => {
|
|
709
|
+
const r = e.every(
|
|
710
|
+
(n) => n.getAttribute("checked") || n === t
|
|
711
|
+
), a = e.some(
|
|
712
|
+
(n) => n.getAttribute("checked") && n !== t
|
|
713
|
+
);
|
|
714
|
+
return { isAllChecked: r, isAnyChecked: a };
|
|
715
|
+
});
|
|
716
|
+
/**
|
|
717
|
+
* 更新节点复选框状态
|
|
718
|
+
* @param {HTMLElement} node 节点元素
|
|
719
|
+
* @param {boolean} isAllChecked 是否全部选中
|
|
720
|
+
* @param {boolean} isAnyChecked 是否有选中
|
|
721
|
+
*/
|
|
722
|
+
o(this, R, (e, t, r) => {
|
|
723
|
+
t ? (e.toggleAttribute("checked", !0), e.toggleAttribute("indeterminate", !1)) : r ? (e.toggleAttribute("checked", !1), e.toggleAttribute("indeterminate", !0)) : (e.toggleAttribute("checked", !1), e.toggleAttribute("indeterminate", !1));
|
|
724
|
+
});
|
|
725
|
+
/**
|
|
726
|
+
* 获取所有标签元素
|
|
727
|
+
* @returns {Array} 所有标签元素数组
|
|
728
|
+
*/
|
|
729
|
+
o(this, H, () => [...s(this, h).querySelectorAll("ea-tree-label")]);
|
|
730
|
+
o(this, j, (e) => {
|
|
731
|
+
if (e.disabled) return;
|
|
732
|
+
const t = e.getAttribute("path"), r = s(this, B).call(this, t), a = r.filter(
|
|
733
|
+
(l) => l.getAttribute("path").startsWith(t) && l !== e
|
|
734
|
+
);
|
|
735
|
+
r.filter(
|
|
736
|
+
(l) => !a.includes(l) && l !== e
|
|
737
|
+
).forEach((l) => {
|
|
738
|
+
l.expanded = !0;
|
|
739
|
+
});
|
|
740
|
+
});
|
|
741
|
+
/**
|
|
742
|
+
* 绑定树组件事件
|
|
743
|
+
*/
|
|
744
|
+
o(this, re, () => {
|
|
745
|
+
s(this, h).addEventListener(
|
|
746
|
+
"ea-tree-label-click",
|
|
747
|
+
s(this, O),
|
|
748
|
+
{
|
|
749
|
+
signal: s(this, C).dataController.signal
|
|
750
|
+
}
|
|
751
|
+
), s(this, h).addEventListener(
|
|
752
|
+
"ea-tree-checkbox-click",
|
|
753
|
+
s(this, le),
|
|
754
|
+
{
|
|
755
|
+
signal: s(this, C).dataController.signal
|
|
756
|
+
}
|
|
757
|
+
), s(this, h).addEventListener("contextmenu", s(this, V), {
|
|
758
|
+
signal: s(this, C).dataController.signal
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
/**
|
|
762
|
+
* 绑定复选框状态管理事件
|
|
763
|
+
*/
|
|
764
|
+
o(this, ae, () => {
|
|
765
|
+
s(this, h).addEventListener(
|
|
766
|
+
"ea-tree-checkbox-click",
|
|
767
|
+
s(this, ie),
|
|
768
|
+
{
|
|
769
|
+
signal: s(this, E).signal
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
});
|
|
773
|
+
/**
|
|
774
|
+
* 检查节点子树中是否存在被选中的节点
|
|
775
|
+
* @param {HTMLElement} label 标签元素
|
|
776
|
+
* @returns {boolean} 子树中是否存在被选中的节点
|
|
777
|
+
*/
|
|
778
|
+
o(this, ne, (e) => {
|
|
779
|
+
const t = e.getAttribute("path"), r = s(this, h).querySelectorAll(
|
|
780
|
+
`[path^="${t}-"]`
|
|
781
|
+
);
|
|
782
|
+
for (const a of r)
|
|
783
|
+
if (a.hasAttribute("checked"))
|
|
784
|
+
return !0;
|
|
785
|
+
return !1;
|
|
786
|
+
});
|
|
787
|
+
/**
|
|
788
|
+
* 触发 ea-check 事件
|
|
789
|
+
* @param {HTMLElement} label 标签元素
|
|
790
|
+
* @param {boolean} checked 选中状态
|
|
791
|
+
*/
|
|
792
|
+
o(this, oe, (e, t) => {
|
|
793
|
+
const r = this.getCheckedNodes(), a = this.getCheckedKeys(), n = this.getHalfCheckedNodes(), l = this.getHalfCheckedKeys();
|
|
794
|
+
this.dispatchEvent(
|
|
795
|
+
new $e({
|
|
796
|
+
data: e.data,
|
|
797
|
+
checkedState: {
|
|
798
|
+
checkedNodes: r,
|
|
799
|
+
checkedKeys: a,
|
|
800
|
+
halfCheckedNodes: n,
|
|
801
|
+
halfCheckedKeys: l
|
|
802
|
+
}
|
|
803
|
+
})
|
|
804
|
+
);
|
|
805
|
+
});
|
|
806
|
+
/**
|
|
807
|
+
* 处理复选框状态变化
|
|
808
|
+
* @param {CustomEvent} e 事件对象
|
|
809
|
+
*/
|
|
810
|
+
o(this, ie, (e) => {
|
|
811
|
+
var he;
|
|
812
|
+
e.stopImmediatePropagation();
|
|
813
|
+
const { label: t, checked: r } = e.detail;
|
|
814
|
+
if (t.disabled) return;
|
|
815
|
+
const a = t.getAttribute("path"), n = s(this, B).call(this, a), l = n.filter(
|
|
816
|
+
(p) => p.getAttribute("path").startsWith(a) && p !== t
|
|
817
|
+
), c = n.filter(
|
|
818
|
+
(p) => p !== t && !l.includes(p)
|
|
819
|
+
);
|
|
820
|
+
l.forEach((p) => {
|
|
821
|
+
p.disabled || (p.checked = r);
|
|
822
|
+
}), c.reverse().forEach((p) => {
|
|
823
|
+
if (p.disabled) return;
|
|
824
|
+
const ue = p.closest(".ea-tree-child__children"), ke = p.closest(".ea-tree__children"), Ce = ue ? [...ue.querySelectorAll("ea-tree-label")] : [...ke.querySelectorAll("ea-tree-label")], { isAllChecked: ye, isAnyChecked: me } = s(this, se).call(this, Ce, p);
|
|
825
|
+
s(this, R).call(this, p, ye, me);
|
|
826
|
+
}), (he = t == null ? void 0 : t.isRoot) != null && he.call(t) && (s(this, R).call(this, t, r, r), s(this, h).querySelectorAll(`[path^="${a}"]`).forEach((p) => {
|
|
827
|
+
p.disabled || (p.checked = r);
|
|
828
|
+
}));
|
|
829
|
+
const S = s(this, ne).call(this, t);
|
|
830
|
+
this.dispatchEvent(
|
|
831
|
+
new Pe({
|
|
832
|
+
data: t.data,
|
|
833
|
+
checked: r,
|
|
834
|
+
hasCheckedChildren: S
|
|
835
|
+
})
|
|
836
|
+
), s(this, oe).call(this, t, r);
|
|
837
|
+
});
|
|
838
|
+
/**
|
|
839
|
+
* 复选框点击事件
|
|
840
|
+
* @param {CustomEvent} e 事件对象
|
|
841
|
+
*/
|
|
842
|
+
o(this, le, (e) => {
|
|
843
|
+
e.stopImmediatePropagation();
|
|
844
|
+
const t = e.detail.label, r = e.detail.checked;
|
|
845
|
+
t && this.dispatchEvent(
|
|
846
|
+
new CustomEvent("ea-check-change", {
|
|
847
|
+
detail: {
|
|
848
|
+
node: t.item,
|
|
849
|
+
checked: r,
|
|
850
|
+
checkedNodes: Array.from(s(this, b).checkedNodes).map(
|
|
851
|
+
(a) => a.item
|
|
852
|
+
)
|
|
853
|
+
}
|
|
854
|
+
})
|
|
855
|
+
);
|
|
856
|
+
});
|
|
857
|
+
/**
|
|
858
|
+
* 获取半选中节点数据
|
|
859
|
+
* @returns {Array} 半选中节点数据数组
|
|
860
|
+
*/
|
|
861
|
+
u(this, "getHalfCheckedNodes", () => {
|
|
862
|
+
if (!this["show-checkbox"])
|
|
863
|
+
return [];
|
|
864
|
+
const e = [...s(this, h).querySelectorAll("ea-tree-label")], t = [];
|
|
865
|
+
return e.forEach((r) => {
|
|
866
|
+
r.hasAttribute("indeterminate") && t.push(r.data);
|
|
867
|
+
}), t;
|
|
868
|
+
});
|
|
869
|
+
/**
|
|
870
|
+
* 获取半选中节点键值
|
|
871
|
+
* @returns {Array} 半选中节点键值数组
|
|
872
|
+
*/
|
|
873
|
+
u(this, "getHalfCheckedKeys", () => {
|
|
874
|
+
if (!this["show-checkbox"] || !this["node-key"])
|
|
875
|
+
return [];
|
|
876
|
+
const e = s(this, h).querySelectorAll("ea-tree-label"), t = [], r = this["node-key"];
|
|
877
|
+
return e.forEach((a) => {
|
|
878
|
+
a.hasAttribute("indeterminate") && a.data && a.data[r] && t.push(a.data[r]);
|
|
879
|
+
}), t;
|
|
880
|
+
});
|
|
881
|
+
/**
|
|
882
|
+
* 获取当前选中节点键值
|
|
883
|
+
* @returns {*} 当前选中节点键值或null
|
|
884
|
+
*/
|
|
885
|
+
u(this, "getCurrentKey", () => {
|
|
886
|
+
if (!this["node-key"] || !s(this, b).selectedNode)
|
|
887
|
+
return null;
|
|
888
|
+
const e = this["node-key"], t = s(this, b).selectedNode.data;
|
|
889
|
+
return t && t[e] ? t[e] : null;
|
|
890
|
+
});
|
|
891
|
+
/**
|
|
892
|
+
* 获取当前选中节点数据
|
|
893
|
+
* @returns {*} 当前选中节点数据或null
|
|
894
|
+
*/
|
|
895
|
+
u(this, "getCurrentNode", () => s(this, b).selectedNode ? s(this, b).selectedNode.data : null);
|
|
896
|
+
/**
|
|
897
|
+
* 更新节点键值的子节点数据
|
|
898
|
+
* @param {*} key 节点键值
|
|
899
|
+
* @param {Array} data 子节点数据数组
|
|
900
|
+
* @returns {boolean} 是否更新成功
|
|
901
|
+
*/
|
|
902
|
+
u(this, "updateKeyChildren", (e, t) => {
|
|
903
|
+
if (!this["node-key"])
|
|
904
|
+
return console.warn("updateKeyChildren requires node-key to be set"), !1;
|
|
905
|
+
const r = s(this, w).call(this, e);
|
|
906
|
+
if (!r)
|
|
907
|
+
return console.warn(`Node with key ${e} not found`), !1;
|
|
908
|
+
const a = r.nextElementSibling;
|
|
909
|
+
if (!a || a.tagName !== "EA-TREE-CHILD")
|
|
910
|
+
return console.warn("Target node is not a parent node"), !1;
|
|
911
|
+
const { children: n } = this.dataProps;
|
|
912
|
+
return r.data = { ...r.data, [n]: t }, a.data = t, fe(() => {
|
|
913
|
+
r.emit("ea-tree-checkbox-click", {
|
|
914
|
+
bubbles: !0,
|
|
915
|
+
composed: !0,
|
|
916
|
+
detail: {
|
|
917
|
+
label: r,
|
|
918
|
+
checked: r.checked
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}, 16), !0;
|
|
922
|
+
});
|
|
923
|
+
/**
|
|
924
|
+
* 获取选中节点数据
|
|
925
|
+
* @param {boolean} leafOnly 是否仅返回叶子节点
|
|
926
|
+
* @param {boolean} includeHalfChecked 是否包含半选中节点
|
|
927
|
+
* @returns {Array} 选中节点数据数组
|
|
928
|
+
*/
|
|
929
|
+
u(this, "getCheckedNodes", (e = !1, t = !1) => {
|
|
930
|
+
if (!this["show-checkbox"])
|
|
931
|
+
return [];
|
|
932
|
+
const r = s(this, H).call(this), a = [];
|
|
933
|
+
return r.forEach((n) => {
|
|
934
|
+
const l = n.hasAttribute("checked"), c = n.hasAttribute("indeterminate");
|
|
935
|
+
if (l || t && c) {
|
|
936
|
+
if (e && n.hasChildren)
|
|
937
|
+
return;
|
|
938
|
+
a.push(n.data);
|
|
939
|
+
}
|
|
940
|
+
}), a;
|
|
941
|
+
});
|
|
942
|
+
/**
|
|
943
|
+
* 设置选中节点数据
|
|
944
|
+
* @param {Array} nodes 选中节点数据数组
|
|
945
|
+
* @param {boolean} leafOnly 是否仅选中叶子节点
|
|
946
|
+
* @returns {boolean} 是否设置成功
|
|
947
|
+
*/
|
|
948
|
+
u(this, "setCheckedNodes", (e, t = !1) => !this["show-checkbox"] || !this["node-key"] ? (console.warn(
|
|
949
|
+
"setCheckedNodes requires show-checkbox and node-key to be set"
|
|
950
|
+
), !1) : (e.forEach((r) => {
|
|
951
|
+
const a = s(this, g).call(this, r);
|
|
952
|
+
a && (a.disabled || (a.checked = !0, a.indeterminate = !1, this["check-strictly"] || a.dispatchEvent(
|
|
953
|
+
new CustomEvent("ea-tree-checkbox-click", {
|
|
954
|
+
bubbles: !0,
|
|
955
|
+
composed: !0,
|
|
956
|
+
detail: {
|
|
957
|
+
label: a,
|
|
958
|
+
checked: !0
|
|
959
|
+
}
|
|
960
|
+
})
|
|
961
|
+
)));
|
|
962
|
+
}), !0));
|
|
963
|
+
/**
|
|
964
|
+
* 获取选中节点键值
|
|
965
|
+
* @param {boolean} leafOnly 是否仅返回叶子节点
|
|
966
|
+
* @returns {Array} 选中节点键值数组
|
|
967
|
+
*/
|
|
968
|
+
u(this, "getCheckedKeys", (e = !1) => {
|
|
969
|
+
if (!this["show-checkbox"] || !this["node-key"])
|
|
970
|
+
return [];
|
|
971
|
+
const t = s(this, H).call(this), r = [], a = this["node-key"];
|
|
972
|
+
return t.forEach((n) => {
|
|
973
|
+
if (n.hasAttribute("checked") && n.data && n.data[a]) {
|
|
974
|
+
if (e && n.hasChildren)
|
|
975
|
+
return;
|
|
976
|
+
r.push(n.data[a]);
|
|
977
|
+
}
|
|
978
|
+
}), r;
|
|
979
|
+
});
|
|
980
|
+
/**
|
|
981
|
+
* 设置选中节点键值
|
|
982
|
+
* @param {Array} keys 选中节点键值数组
|
|
983
|
+
* @param {boolean} leafOnly 是否仅选中叶子节点
|
|
984
|
+
* @returns {boolean} 是否设置成功
|
|
985
|
+
*/
|
|
986
|
+
u(this, "setCheckedKeys", (e, t = !1) => !this["show-checkbox"] || !this["node-key"] ? (console.warn(
|
|
987
|
+
"setCheckedKeys requires show-checkbox and node-key to be set"
|
|
988
|
+
), !1) : (e.forEach((r) => {
|
|
989
|
+
const a = s(this, g).call(this, r);
|
|
990
|
+
a && (a.disabled || t && a.hasChildren || (a.checked = !0, a.indeterminate = !1, this["check-strictly"] || a.dispatchEvent(
|
|
991
|
+
new CustomEvent("ea-tree-checkbox-click", {
|
|
992
|
+
bubbles: !0,
|
|
993
|
+
composed: !0,
|
|
994
|
+
detail: {
|
|
995
|
+
label: a,
|
|
996
|
+
checked: !0
|
|
997
|
+
}
|
|
998
|
+
})
|
|
999
|
+
)));
|
|
1000
|
+
}), !0));
|
|
1001
|
+
/**
|
|
1002
|
+
* 设置节点选中状态
|
|
1003
|
+
* @param {*} keyOrData 节点键值或数据对象
|
|
1004
|
+
* @param {boolean} checked 是否选中
|
|
1005
|
+
* @returns {boolean} 是否设置成功
|
|
1006
|
+
*/
|
|
1007
|
+
u(this, "setChecked", (e, t) => {
|
|
1008
|
+
if (!this["show-checkbox"] || !this["node-key"])
|
|
1009
|
+
return console.warn("setChecked requires show-checkbox and node-key to be set"), !1;
|
|
1010
|
+
let r;
|
|
1011
|
+
return typeof e == "object" ? r = s(this, T).call(this, e) : r = s(this, w).call(this, e), r ? r.disabled ? (console.warn("Cannot set checked state for disabled node"), !1) : (r.checked = t, this["check-strictly"] || r.dispatchEvent(
|
|
1012
|
+
new CustomEvent("ea-tree-checkbox-click", {
|
|
1013
|
+
bubbles: !0,
|
|
1014
|
+
composed: !0,
|
|
1015
|
+
detail: {
|
|
1016
|
+
label: r,
|
|
1017
|
+
checked: t
|
|
1018
|
+
}
|
|
1019
|
+
})
|
|
1020
|
+
), !0) : (console.warn("Node not found"), !1);
|
|
1021
|
+
});
|
|
1022
|
+
u(this, "setCurrentKey", (e, t = !0) => {
|
|
1023
|
+
if (!this["node-key"])
|
|
1024
|
+
return console.warn("setCurrentKey requires node-key to be set"), !1;
|
|
1025
|
+
if (!e)
|
|
1026
|
+
return s(this, b).selectedNode && (s(this, b).selectedNode.selected = !1, s(this, b).selectedNode = null), !0;
|
|
1027
|
+
const r = s(this, g).call(this, e);
|
|
1028
|
+
return r ? r.disabled ? (console.warn("Cannot select disabled node"), !1) : (s(this, A).call(this, r), t && s(this, j).call(this, r), !0) : (console.warn(`Node with key ${e} not found`), !1);
|
|
1029
|
+
});
|
|
1030
|
+
u(this, "setCurrentNode", (e, t = !0) => {
|
|
1031
|
+
if (!this["node-key"])
|
|
1032
|
+
return console.warn("setCurrentNode requires node-key to be set"), !1;
|
|
1033
|
+
if (!e)
|
|
1034
|
+
return s(this, b).selectedNode && (s(this, b).selectedNode.selected = !1, s(this, b).selectedNode = null), !0;
|
|
1035
|
+
const r = s(this, g).call(this, e);
|
|
1036
|
+
return r ? r.disabled ? (console.warn("Cannot select disabled node"), !1) : (s(this, A).call(this, r), t && s(this, j).call(this, r), !0) : (console.warn("Node not found"), !1);
|
|
1037
|
+
});
|
|
1038
|
+
u(this, "getNode", (e) => {
|
|
1039
|
+
if (!this["node-key"])
|
|
1040
|
+
return console.warn("getNode requires node-key to be set"), null;
|
|
1041
|
+
const t = s(this, g).call(this, e);
|
|
1042
|
+
return t ? {
|
|
1043
|
+
label: t,
|
|
1044
|
+
child: t.nextElementSibling,
|
|
1045
|
+
data: e
|
|
1046
|
+
} : null;
|
|
1047
|
+
});
|
|
1048
|
+
this.stylesheet = Ne, this.$render();
|
|
1049
|
+
}
|
|
1050
|
+
static get observedAttributes() {
|
|
1051
|
+
return [
|
|
1052
|
+
...super.observedAttributes,
|
|
1053
|
+
"show-checkbox",
|
|
1054
|
+
"check-strictly",
|
|
1055
|
+
"node-key"
|
|
1056
|
+
];
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* 获取 classlist 列表
|
|
1060
|
+
* @return {string} 属性值
|
|
1061
|
+
*/
|
|
1062
|
+
updateContainerClasslist() {
|
|
1063
|
+
const e = this.computedClasslist("ea-tree", {}, {});
|
|
1064
|
+
return s(this, h).className = e, e;
|
|
1065
|
+
}
|
|
1066
|
+
$render() {
|
|
1067
|
+
const e = de("tree");
|
|
1068
|
+
this.ns = e, this.shadowRoot.innerHTML = `
|
|
1069
|
+
<div class='${e.b("tree")}' part='container'></div>
|
|
1070
|
+
<slot></slot>
|
|
1071
|
+
`, f(this, h, this.shadowRoot.querySelector(e.cb("tree")));
|
|
1072
|
+
}
|
|
1073
|
+
connectedCallback() {
|
|
1074
|
+
var e;
|
|
1075
|
+
super.connectedCallback(), (e = s(this, E)) == null || e.abort(), f(this, E, new AbortController()), s(this, ae).call(this), this.updateContainerClasslist();
|
|
1076
|
+
}
|
|
1077
|
+
$beforeUnmounted() {
|
|
1078
|
+
var e;
|
|
1079
|
+
(e = s(this, E)) == null || e.abort();
|
|
1080
|
+
for (const t of Object.values(s(this, C)))
|
|
1081
|
+
t == null || t.abort();
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
h = new WeakMap(), E = new WeakMap(), b = new WeakMap(), C = new WeakMap(), w = new WeakMap(), T = new WeakMap(), g = new WeakMap(), Q = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), O = new WeakMap(), V = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), A = new WeakMap(), te = new WeakMap(), B = new WeakMap(), se = new WeakMap(), R = new WeakMap(), H = new WeakMap(), j = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), ie = new WeakMap(), le = new WeakMap();
|
|
1085
|
+
customElements.get("ea-tree") || customElements.define("ea-tree", Re);
|
|
1086
|
+
export {
|
|
1087
|
+
Re as EaTree
|
|
1088
|
+
};
|