easy-component-ui 2.1.1 → 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,364 @@
|
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
|
+
var _ = (s) => {
|
|
3
|
+
throw TypeError(s);
|
|
4
|
+
};
|
|
5
|
+
var z = (s, i, e) => i in s ? V(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
6
|
+
var E = (s, i, e) => z(s, typeof i != "symbol" ? i + "" : i, e), k = (s, i, e) => i.has(s) || _("Cannot " + e);
|
|
7
|
+
var t = (s, i, e) => (k(s, i, "read from private field"), e ? e.call(s) : i.get(s)), r = (s, i, e) => i.has(s) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, e), l = (s, i, e, a) => (k(s, i, "write to private field"), a ? a.call(s, e) : i.set(s, e), e);
|
|
8
|
+
import { F as q } from "../core/FormBase.js";
|
|
9
|
+
import { s as $ } from "../css/ea-radio.style.js";
|
|
10
|
+
import { E as w } from "../utils/Variables.js";
|
|
11
|
+
import { s as B } from "../css/ea-radio-group.style.js";
|
|
12
|
+
var b, u, p, o, h, S;
|
|
13
|
+
class G extends q {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
/** @type {HTMLElement} */
|
|
17
|
+
r(this, b);
|
|
18
|
+
/** @type {HTMLElement} */
|
|
19
|
+
r(this, u);
|
|
20
|
+
/** @type {HTMLElement} */
|
|
21
|
+
r(this, p);
|
|
22
|
+
/** @type {HTMLInputElement} */
|
|
23
|
+
r(this, o);
|
|
24
|
+
/** @type {AbortController} */
|
|
25
|
+
r(this, h);
|
|
26
|
+
E(this, "state", this.properties({
|
|
27
|
+
size: {
|
|
28
|
+
type: w,
|
|
29
|
+
default: "",
|
|
30
|
+
observer: () => {
|
|
31
|
+
this.updateContainerClasslist();
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
checked: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1,
|
|
37
|
+
observer: (e) => {
|
|
38
|
+
t(this, u).toggleAttribute("checked", e), t(this, o).checked = e, e ? this.setValue(this.value) : this.removeValue(), this.updateContainerClasslist();
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
name: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "",
|
|
44
|
+
observer: (e) => {
|
|
45
|
+
t(this, u).setAttribute("for", e), t(this, o).setAttribute("id", e), t(this, o).setAttribute("name", e);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
value: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "",
|
|
51
|
+
observer: (e) => {
|
|
52
|
+
t(this, o).setAttribute("value", e);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1,
|
|
58
|
+
observer: (e) => {
|
|
59
|
+
t(this, o).disabled = e, this.updateContainerClasslist();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
border: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !1,
|
|
65
|
+
observer: () => {
|
|
66
|
+
this.updateContainerClasslist();
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
label: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "",
|
|
72
|
+
observer: (e) => {
|
|
73
|
+
t(this, p).textContent = e;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
/**
|
|
78
|
+
* radio change 事件
|
|
79
|
+
* @param {Event} e
|
|
80
|
+
*/
|
|
81
|
+
r(this, S, (e) => {
|
|
82
|
+
e.stopImmediatePropagation(), this.closest("ea-radio-group") || document.querySelectorAll(
|
|
83
|
+
`ea-radio[name="${this.name}"]`
|
|
84
|
+
).forEach((n) => {
|
|
85
|
+
n.toggleAttribute("checked", n === this);
|
|
86
|
+
}), this.emit("change", {
|
|
87
|
+
detail: {
|
|
88
|
+
value: this.value
|
|
89
|
+
},
|
|
90
|
+
bubbles: !0
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
this.stylesheet = $, this.$render();
|
|
94
|
+
}
|
|
95
|
+
static get observedAttributes() {
|
|
96
|
+
return [
|
|
97
|
+
...super.observedAttributes,
|
|
98
|
+
"size",
|
|
99
|
+
"checked",
|
|
100
|
+
"name",
|
|
101
|
+
"value",
|
|
102
|
+
"disabled",
|
|
103
|
+
"border",
|
|
104
|
+
"label"
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 获取 classlist 列表
|
|
109
|
+
* @return {string} 属性值
|
|
110
|
+
*/
|
|
111
|
+
updateContainerClasslist() {
|
|
112
|
+
const e = this.computedClasslist(
|
|
113
|
+
"ea-radio",
|
|
114
|
+
{
|
|
115
|
+
[`--${this.size}`]: this.size
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
checked: this.checked,
|
|
119
|
+
disabled: this.disabled,
|
|
120
|
+
border: this.border
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
return t(this, b).className = e, e;
|
|
124
|
+
}
|
|
125
|
+
$render() {
|
|
126
|
+
this.shadowRoot.innerHTML = `
|
|
127
|
+
<label class="ea-radio" part="container" role="radio">
|
|
128
|
+
<span class="ea-radio__input" part="input-wrap">
|
|
129
|
+
<span class="ea-radio__inner" part="input"></span>
|
|
130
|
+
<input class="ea-radio__original" type="radio" />
|
|
131
|
+
</span>
|
|
132
|
+
<span class="ea-radio__label" part="label-wrap">
|
|
133
|
+
<slot></slot>
|
|
134
|
+
</span>
|
|
135
|
+
</label>
|
|
136
|
+
`, l(this, b, this.shadowRoot.querySelector(".ea-radio")), l(this, u, this.shadowRoot.querySelector(".ea-radio__label")), l(this, p, this.shadowRoot.querySelector(".ea-radio__label slot")), l(this, o, this.shadowRoot.querySelector(".ea-radio__original"));
|
|
137
|
+
}
|
|
138
|
+
connectedCallback() {
|
|
139
|
+
var e;
|
|
140
|
+
super.connectedCallback(), (e = t(this, h)) == null || e.abort(), l(this, h, new AbortController()), this.name || this.setAttribute("name", Math.random().toString(36).substring(2, 15)), t(this, o).addEventListener("change", t(this, S), {
|
|
141
|
+
signal: t(this, h).signal
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
$beforeUnmounted() {
|
|
145
|
+
var e;
|
|
146
|
+
(e = t(this, h)) == null || e.abort();
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 获取验证目标元素
|
|
150
|
+
* @returns {HTMLInputElement}
|
|
151
|
+
*/
|
|
152
|
+
get validationTarget() {
|
|
153
|
+
return t(this, o);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 检查表单字段的有效性
|
|
157
|
+
* @returns {boolean} 如果字段有效返回 true,否则返回 false
|
|
158
|
+
*/
|
|
159
|
+
checkValidity() {
|
|
160
|
+
return t(this, o).checkValidity();
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* 报告表单字段的有效性(显示验证提示)
|
|
164
|
+
* @returns {boolean} 如果字段有效返回 true,否则返回 false
|
|
165
|
+
*/
|
|
166
|
+
reportValidity() {
|
|
167
|
+
return t(this, o).reportValidity();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
b = new WeakMap(), u = new WeakMap(), p = new WeakMap(), o = new WeakMap(), h = new WeakMap(), S = new WeakMap();
|
|
171
|
+
window.customElements.get("ea-radio") || window.customElements.define("ea-radio", G);
|
|
172
|
+
var c, g, f, d, m, y, v, C, A;
|
|
173
|
+
class x extends q {
|
|
174
|
+
constructor() {
|
|
175
|
+
super();
|
|
176
|
+
/** @type {HTMLElement} */
|
|
177
|
+
r(this, c);
|
|
178
|
+
/** @type {HTMLSlotElement} */
|
|
179
|
+
r(this, g);
|
|
180
|
+
/** @type {HTMLLabelElement} */
|
|
181
|
+
r(this, f);
|
|
182
|
+
/** @type {AbortController} */
|
|
183
|
+
r(this, d);
|
|
184
|
+
E(this, "state", this.properties({
|
|
185
|
+
label: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: "",
|
|
188
|
+
observer: (e) => {
|
|
189
|
+
t(this, f).textContent = e;
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
name: {
|
|
193
|
+
type: String,
|
|
194
|
+
default: "",
|
|
195
|
+
observer: () => {
|
|
196
|
+
t(this, m).call(this);
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
value: {
|
|
200
|
+
type: String,
|
|
201
|
+
default: "",
|
|
202
|
+
observer: (e) => {
|
|
203
|
+
t(this, y).call(this, e), this.setValue(e);
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
border: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: !1,
|
|
209
|
+
observer: (e) => {
|
|
210
|
+
t(this, v).call(this, e);
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
disabled: {
|
|
214
|
+
type: Boolean,
|
|
215
|
+
default: !1,
|
|
216
|
+
observer: (e) => {
|
|
217
|
+
t(this, C).call(this, e);
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
size: {
|
|
221
|
+
type: w,
|
|
222
|
+
default: "default",
|
|
223
|
+
observer: (e) => {
|
|
224
|
+
t(this, A).call(this, e);
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
required: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
default: !1
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
/**
|
|
233
|
+
* 更新 radios name 属性
|
|
234
|
+
*/
|
|
235
|
+
r(this, m, () => {
|
|
236
|
+
this.querySelectorAll("ea-radio").forEach((e) => {
|
|
237
|
+
e.setAttribute("name", this.name);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
/**
|
|
241
|
+
* 更新当前选项
|
|
242
|
+
* @param {any} currentValue
|
|
243
|
+
*/
|
|
244
|
+
r(this, y, (e) => {
|
|
245
|
+
this.querySelectorAll("ea-radio").forEach((a) => {
|
|
246
|
+
const n = a.getAttribute("value");
|
|
247
|
+
a.toggleAttribute("checked", e === n);
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
/**
|
|
251
|
+
* 更新 radios border 属性
|
|
252
|
+
* @param {Boolean} isBorder
|
|
253
|
+
*/
|
|
254
|
+
r(this, v, (e) => {
|
|
255
|
+
this.querySelectorAll("ea-radio").forEach((a) => {
|
|
256
|
+
a.toggleAttribute("border", e);
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
/**
|
|
260
|
+
* 更新 radios disabled 属性
|
|
261
|
+
* @param {Boolean} isDisabled
|
|
262
|
+
*/
|
|
263
|
+
r(this, C, (e) => {
|
|
264
|
+
this.querySelectorAll("ea-radio").forEach((a) => {
|
|
265
|
+
a.toggleAttribute("disabled", e);
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
/**
|
|
269
|
+
* 批量更新 radios size 属性
|
|
270
|
+
* @param {'large' | 'default' | 'small'} size
|
|
271
|
+
*/
|
|
272
|
+
r(this, A, (e) => {
|
|
273
|
+
this.querySelectorAll("ea-radio").forEach((a) => {
|
|
274
|
+
a.getAttribute("size") || a.setAttribute("size", e);
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
this.stylesheet = B, this.$render();
|
|
278
|
+
}
|
|
279
|
+
static get observedAttributes() {
|
|
280
|
+
return [
|
|
281
|
+
...super.observedAttributes,
|
|
282
|
+
"label",
|
|
283
|
+
"name",
|
|
284
|
+
"value",
|
|
285
|
+
"border",
|
|
286
|
+
"disabled",
|
|
287
|
+
"size",
|
|
288
|
+
"required"
|
|
289
|
+
];
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* 获取 classlist 列表
|
|
293
|
+
* @return {string} 属性值
|
|
294
|
+
*/
|
|
295
|
+
updateContainerClasslist() {
|
|
296
|
+
return this.computedClasslist("ea-radio-group", {});
|
|
297
|
+
}
|
|
298
|
+
$render() {
|
|
299
|
+
this.shadowRoot.innerHTML = `
|
|
300
|
+
<label class='ea-radio-group__form-label' part='form-label'></label>
|
|
301
|
+
<div class='ea-radio-group' part='container' role='radiogroup'>
|
|
302
|
+
<slot></slot>
|
|
303
|
+
</div>
|
|
304
|
+
`, l(this, f, this.shadowRoot.querySelector(".ea-radio-group__form-label")), l(this, c, this.shadowRoot.querySelector(".ea-radio-group")), l(this, g, t(this, c).querySelector("slot"));
|
|
305
|
+
}
|
|
306
|
+
connectedCallback() {
|
|
307
|
+
var n;
|
|
308
|
+
super.connectedCallback(), (n = t(this, d)) == null || n.abort(), l(this, d, new AbortController());
|
|
309
|
+
const e = (R) => {
|
|
310
|
+
this.value = R.detail.value;
|
|
311
|
+
}, a = () => {
|
|
312
|
+
t(this, y).call(this, this.value), this.name && t(this, m).call(this), this.border && t(this, v).call(this, this.border), this.disabled && t(this, C).call(this, this.disabled), this.size && t(this, A).call(this, this.size);
|
|
313
|
+
};
|
|
314
|
+
this.addEventListener("change", e, {
|
|
315
|
+
signal: t(this, d).signal
|
|
316
|
+
}), t(this, g).addEventListener("slotchange", a, {
|
|
317
|
+
signal: t(this, d).signal
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
$beforeUnmounted() {
|
|
321
|
+
var e;
|
|
322
|
+
(e = t(this, d)) == null || e.abort();
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* 获取验证目标元素
|
|
326
|
+
* 返回当前选中的 ea-radio,如果没有选中则返回第一个 ea-radio
|
|
327
|
+
* @returns {HTMLElement}
|
|
328
|
+
*/
|
|
329
|
+
get validationTarget() {
|
|
330
|
+
const e = this.querySelector("ea-radio[checked]");
|
|
331
|
+
return e || this.querySelector("ea-radio") || t(this, c);
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* 更新表单验证状态
|
|
335
|
+
*/
|
|
336
|
+
updateValidity() {
|
|
337
|
+
const e = this.value !== "" && this.value != null;
|
|
338
|
+
this.required && !e ? this.internals.setValidity(
|
|
339
|
+
{ valueMissing: !0 },
|
|
340
|
+
"请选择一个选项",
|
|
341
|
+
this
|
|
342
|
+
) : this.internals.setValidity({}, "", this);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* 检查表单字段的有效性
|
|
346
|
+
* @returns {boolean}
|
|
347
|
+
*/
|
|
348
|
+
checkValidity() {
|
|
349
|
+
return this.updateValidity(), this.internals.validity.valid;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* 报告表单字段的有效性(显示验证提示)
|
|
353
|
+
* @returns {boolean}
|
|
354
|
+
*/
|
|
355
|
+
reportValidity() {
|
|
356
|
+
return this.updateValidity(), this.internals.reportValidity();
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
c = new WeakMap(), g = new WeakMap(), f = new WeakMap(), d = new WeakMap(), m = new WeakMap(), y = new WeakMap(), v = new WeakMap(), C = new WeakMap(), A = new WeakMap();
|
|
360
|
+
window.customElements.get("ea-radio-group") || window.customElements.define("ea-radio-group", x);
|
|
361
|
+
export {
|
|
362
|
+
G as EaRadio,
|
|
363
|
+
x as EaRadioGroup
|
|
364
|
+
};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var _ = (s) => {
|
|
3
|
+
throw TypeError(s);
|
|
4
|
+
};
|
|
5
|
+
var S = (s, i, t) => i in s ? A(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
|
|
6
|
+
var C = (s, i, t) => S(s, typeof i != "symbol" ? i + "" : i, t), x = (s, i, t) => i.has(s) || _("Cannot " + t);
|
|
7
|
+
var e = (s, i, t) => (x(s, i, "read from private field"), t ? t.call(s) : i.get(s)), n = (s, i, t) => i.has(s) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), b = (s, i, t, a) => (x(s, i, "write to private field"), a ? a.call(s, t) : i.set(s, t), t);
|
|
8
|
+
import { F as V } from "../core/FormBase.js";
|
|
9
|
+
import { s as L } from "../css/ea-rate.style.js";
|
|
10
|
+
import { E as M } from "../utils/Variables.js";
|
|
11
|
+
var r, p, d, u, v, c, m, y, f, g;
|
|
12
|
+
class R extends V {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
/** @type {HTMLElement} */
|
|
16
|
+
n(this, r);
|
|
17
|
+
/** @type {HTMLElement} */
|
|
18
|
+
n(this, p);
|
|
19
|
+
/** @type {AbortController} */
|
|
20
|
+
n(this, d, new AbortController());
|
|
21
|
+
/** @type {AbortController} */
|
|
22
|
+
n(this, u, new AbortController());
|
|
23
|
+
C(this, "state", this.properties({
|
|
24
|
+
label: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
27
|
+
observer: async (t) => {
|
|
28
|
+
e(this, p).textContent = t;
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
value: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0,
|
|
34
|
+
observer: (t) => {
|
|
35
|
+
this.setValue(t), e(this, c).call(this, t - 1);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
max: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 5,
|
|
41
|
+
observer: () => {
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
size: {
|
|
45
|
+
type: M,
|
|
46
|
+
default: "",
|
|
47
|
+
observer: () => {
|
|
48
|
+
this.updateContainerClasslist();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
readonly: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1,
|
|
54
|
+
observer: () => {
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1,
|
|
60
|
+
observer: () => {
|
|
61
|
+
this.updateContainerClasslist();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
C(this, "funcStates", this.properties({
|
|
66
|
+
getSymbol: {
|
|
67
|
+
props: !0,
|
|
68
|
+
type: Function,
|
|
69
|
+
rawFunction: !0,
|
|
70
|
+
/**
|
|
71
|
+
* 获取图标
|
|
72
|
+
* @param {string} [value]
|
|
73
|
+
* @param {boolean} [isSelected]
|
|
74
|
+
* @returns {string}
|
|
75
|
+
*/
|
|
76
|
+
default: () => () => '<ea-icon icon="icon-star" part="icon"></ea-icon>',
|
|
77
|
+
/** @param {Function} cb */
|
|
78
|
+
observer: (t) => {
|
|
79
|
+
!t || typeof t != "function" || (e(this, r).innerHTML = e(this, v).call(this, t), e(this, c).call(this, this.value - 1));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
83
|
+
/**
|
|
84
|
+
* 渲染 rate 元素
|
|
85
|
+
* @param {(value: Number, isSelected: Boolean) => String} renderer
|
|
86
|
+
* @param {Number} activeValue
|
|
87
|
+
* @return {String}
|
|
88
|
+
*/
|
|
89
|
+
n(this, v, (t, a = this.value, h = this.max) => {
|
|
90
|
+
if (!t) return;
|
|
91
|
+
const l = Array.from({ length: h }).map(
|
|
92
|
+
(o, E) => `
|
|
93
|
+
<span class='ea-rate__symbol' part='symbol-wrap'>
|
|
94
|
+
${t(E, a)}
|
|
95
|
+
</span>`
|
|
96
|
+
).join("");
|
|
97
|
+
return e(this, r).innerHTML = l, l;
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* 设置 rate 元素选中状态
|
|
101
|
+
* @param {Number} index
|
|
102
|
+
*/
|
|
103
|
+
n(this, c, (t = this.value - 1) => {
|
|
104
|
+
[...e(this, r).children].forEach((h, l) => {
|
|
105
|
+
h.classList.toggle("is-selected", l <= t);
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* 取消 rate 元素选中状态
|
|
110
|
+
* @param {Number} [currentValue]
|
|
111
|
+
*/
|
|
112
|
+
n(this, m, (t = this.value - 1) => {
|
|
113
|
+
[...e(this, r).children].forEach((h, l) => {
|
|
114
|
+
h.classList.toggle("is-selected", l <= t);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* 触发 hover 事件
|
|
119
|
+
* @param {Number} [value]
|
|
120
|
+
* @param {HTMLElement} [target]
|
|
121
|
+
*/
|
|
122
|
+
n(this, y, (t = this.value, a = null) => {
|
|
123
|
+
this.emit("hover", {
|
|
124
|
+
detail: {
|
|
125
|
+
value: t,
|
|
126
|
+
target: a
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* 当鼠标移入父元素时,设置子元素的选中状态
|
|
132
|
+
*/
|
|
133
|
+
n(this, f, () => {
|
|
134
|
+
var h;
|
|
135
|
+
if (this.readonly || this.disabled) return;
|
|
136
|
+
(h = e(this, u)) == null || h.abort(), b(this, u, new AbortController());
|
|
137
|
+
const t = (l) => {
|
|
138
|
+
const o = l.target.closest(".ea-rate__symbol"), w = [...e(this, r).children].indexOf(o);
|
|
139
|
+
e(this, c).call(this, w), o && e(this, y).call(this, w, o);
|
|
140
|
+
}, a = () => {
|
|
141
|
+
const l = this.hasAttribute("value") ? this.value - 1 : null, o = this.children[l];
|
|
142
|
+
e(this, m).call(this), e(this, y).call(this, l, o);
|
|
143
|
+
};
|
|
144
|
+
e(this, r).addEventListener("mousemove", t, {
|
|
145
|
+
signal: e(this, u).signal
|
|
146
|
+
}), e(this, r).addEventListener("mouseout", a, {
|
|
147
|
+
signal: e(this, u).signal
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
/**
|
|
151
|
+
* 通过监听父元素的点击事件,设置子元素的选中状态
|
|
152
|
+
*/
|
|
153
|
+
n(this, g, (t) => {
|
|
154
|
+
if (this.readonly || this.disabled) return;
|
|
155
|
+
const a = t.target.closest(".ea-rate__symbol"), o = [...e(this, r).children].indexOf(a) + 1;
|
|
156
|
+
this.value === o ? (this.value = 0, e(this, m).call(this, 0)) : this.value = o, this.emit("change", { detail: { value: o } });
|
|
157
|
+
});
|
|
158
|
+
this.stylesheet = L, this.$render();
|
|
159
|
+
}
|
|
160
|
+
static get observedAttributes() {
|
|
161
|
+
return [
|
|
162
|
+
...super.observedAttributes,
|
|
163
|
+
"label",
|
|
164
|
+
"value",
|
|
165
|
+
"max",
|
|
166
|
+
"size",
|
|
167
|
+
"readonly",
|
|
168
|
+
"disabled"
|
|
169
|
+
];
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 获取 classlist 列表
|
|
173
|
+
* @return {string} 属性值
|
|
174
|
+
*/
|
|
175
|
+
updateContainerClasslist() {
|
|
176
|
+
const t = this.computedClasslist(
|
|
177
|
+
"ea-rate",
|
|
178
|
+
{
|
|
179
|
+
["--" + this.size]: this.size
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
disabled: this.disabled
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
return e(this, r).className = t, t;
|
|
186
|
+
}
|
|
187
|
+
$render() {
|
|
188
|
+
this.shadowRoot.innerHTML = `
|
|
189
|
+
<label class="ea-rate__label" part="label"></label>
|
|
190
|
+
<div class='ea-rate' part='container'></div>
|
|
191
|
+
`, b(this, p, this.shadowRoot.querySelector(".ea-rate__label")), b(this, r, this.shadowRoot.querySelector(".ea-rate")), e(this, v).call(this, this.getSymbol), this.updateContainerClasslist();
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 获取验证目标元素
|
|
195
|
+
* @returns {HTMLElement}
|
|
196
|
+
*/
|
|
197
|
+
get validationTarget() {
|
|
198
|
+
return this;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* 更新表单验证状态
|
|
202
|
+
*/
|
|
203
|
+
updateValidity() {
|
|
204
|
+
this.required && !this.value ? this.internals.setValidity(
|
|
205
|
+
{ valueMissing: !0 },
|
|
206
|
+
"请选择一个评分",
|
|
207
|
+
this
|
|
208
|
+
) : this.internals.setValidity({}, "", this);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* 检查表单字段的有效性
|
|
212
|
+
* @returns {boolean} 如果字段有效返回 true,否则返回 false
|
|
213
|
+
*/
|
|
214
|
+
checkValidity() {
|
|
215
|
+
return this.updateValidity(), this.internals.checkValidity();
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* 报告表单字段的有效性(显示验证提示)
|
|
219
|
+
* @returns {boolean} 如果字段有效返回 true,否则返回 false
|
|
220
|
+
*/
|
|
221
|
+
reportValidity() {
|
|
222
|
+
return this.updateValidity(), this.internals.reportValidity();
|
|
223
|
+
}
|
|
224
|
+
connectedCallback() {
|
|
225
|
+
var t;
|
|
226
|
+
super.connectedCallback(), (t = e(this, d)) == null || t.abort(), b(this, d, new AbortController()), e(this, r).addEventListener("mouseover", e(this, f), {
|
|
227
|
+
signal: e(this, d).signal
|
|
228
|
+
}), e(this, r).addEventListener("click", e(this, g), {
|
|
229
|
+
signal: e(this, d).signal
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
$beforeUnmounted() {
|
|
233
|
+
var t, a;
|
|
234
|
+
(t = e(this, d)) == null || t.abort(), (a = e(this, u)) == null || a.abort();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
r = new WeakMap(), p = new WeakMap(), d = new WeakMap(), u = new WeakMap(), v = new WeakMap(), c = new WeakMap(), m = new WeakMap(), y = new WeakMap(), f = new WeakMap(), g = new WeakMap();
|
|
238
|
+
window.customElements.get("ea-rate") || window.customElements.define("ea-rate", R);
|
|
239
|
+
export {
|
|
240
|
+
R as EaRate
|
|
241
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var h = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var m = (e, s, t) => s in e ? b(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
|
|
6
|
+
var p = (e, s, t) => m(e, typeof s != "symbol" ? s + "" : s, t), _ = (e, s, t) => s.has(e) || h("Cannot " + t);
|
|
7
|
+
var i = (e, s, t) => (_(e, s, "read from private field"), t ? t.call(e) : s.get(e)), r = (e, s, t) => s.has(e) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), o = (e, s, t, d) => (_(e, s, "write to private field"), d ? d.call(e, t) : s.set(e, t), t);
|
|
8
|
+
import { B as y } from "./Base.js";
|
|
9
|
+
import { s as v } from "../css/ea-result.style.js";
|
|
10
|
+
import { t as w } from "../utils/Variables.js";
|
|
11
|
+
var l, a, n, u, c;
|
|
12
|
+
class f extends y {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
/** @type {HTMLElement} */
|
|
16
|
+
r(this, l);
|
|
17
|
+
/** @type {HTMLElement} */
|
|
18
|
+
r(this, a);
|
|
19
|
+
/** @type {HTMLElement} */
|
|
20
|
+
r(this, n);
|
|
21
|
+
/** @type {HTMLElement} */
|
|
22
|
+
r(this, u);
|
|
23
|
+
/** @type {HTMLElement} */
|
|
24
|
+
r(this, c);
|
|
25
|
+
p(this, "state", this.properties({
|
|
26
|
+
type: {
|
|
27
|
+
type: ["primary", "success", "warning", "info", "error"],
|
|
28
|
+
default: "",
|
|
29
|
+
observer: (t) => {
|
|
30
|
+
i(this, a).setAttribute("icon", `icon-${w[t]}`), this.updateContainerClasslist();
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "",
|
|
36
|
+
observer: (t) => {
|
|
37
|
+
i(this, n).textContent = t;
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"sub-title": {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "",
|
|
43
|
+
observer: (t) => {
|
|
44
|
+
i(this, u).textContent = t;
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
icon: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "",
|
|
50
|
+
observer: (t) => {
|
|
51
|
+
i(this, a).setAttribute("icon", t);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
this.stylesheet = v, this.$render();
|
|
56
|
+
}
|
|
57
|
+
static get observedAttributes() {
|
|
58
|
+
return [...super.observedAttributes, "type", "title", "sub-title", "icon"];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 获取 classlist 列表
|
|
62
|
+
* @return {string} 属性值
|
|
63
|
+
*/
|
|
64
|
+
updateContainerClasslist() {
|
|
65
|
+
const t = this.computedClasslist("ea-result", {
|
|
66
|
+
["--" + this.type]: this.type
|
|
67
|
+
});
|
|
68
|
+
return i(this, l).className = t, t;
|
|
69
|
+
}
|
|
70
|
+
$render() {
|
|
71
|
+
this.shadowRoot.innerHTML = `
|
|
72
|
+
<div class='ea-result' part='container'>
|
|
73
|
+
<div class="ea-result__icon ea-result__icon-wrap" part="icon-wrap">
|
|
74
|
+
<slot name="icon">
|
|
75
|
+
<ea-icon class="ea-result__icon ea-result__default-icon" part="icon"></ea-icon>
|
|
76
|
+
</slot>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="ea-result__title" part="title">
|
|
79
|
+
<slot name="title"></slot>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="ea-result__sub-title" part="sub-title">
|
|
82
|
+
<slot name="sub-title"></slot>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="ea-result__extra" part="extra">
|
|
85
|
+
<slot name="extra"></slot>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
`, o(this, l, this.shadowRoot.querySelector(".ea-result")), o(this, a, this.shadowRoot.querySelector(".ea-result__default-icon")), o(this, n, this.shadowRoot.querySelector(".ea-result__title slot")), o(this, u, this.shadowRoot.querySelector(
|
|
89
|
+
".ea-result__sub-title slot"
|
|
90
|
+
)), o(this, c, this.shadowRoot.querySelector(".ea-result__extra slot"));
|
|
91
|
+
}
|
|
92
|
+
connectedCallback() {
|
|
93
|
+
super.connectedCallback();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
l = new WeakMap(), a = new WeakMap(), n = new WeakMap(), u = new WeakMap(), c = new WeakMap();
|
|
97
|
+
window.customElements.get("ea-result") || window.customElements.define("ea-result", f);
|
|
98
|
+
export {
|
|
99
|
+
f as EaResult
|
|
100
|
+
};
|