@type-dom/ui 0.0.3 → 0.0.5
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/README.md +0 -1
- package/package.json +1 -1
- package/src/aria.d.ts +15 -0
- package/src/components/basic/index.d.ts +2 -0
- package/src/components/basic/index.js +8 -1
- package/src/components/basic/td-button/td-button.abstract.d.ts +19 -0
- package/src/components/basic/td-button/td-button.abstract.js +175 -0
- package/src/components/basic/td-button/td-button.class.d.ts +3 -14
- package/src/components/basic/td-button/td-button.class.js +4 -172
- package/src/components/basic/td-button/td-button.const.d.ts +7 -0
- package/src/components/basic/td-button/td-button.const.js +4 -0
- package/src/components/basic/td-button/td-button.interface.d.ts +16 -6
- package/src/components/basic/td-button/td-button.interface.js +4 -0
- package/src/components/basic/td-button/td-button.style.d.ts +8 -3
- package/src/components/basic/td-button/td-button.style.js +26 -8
- package/src/components/basic/td-button-group/td-button-group.class.d.ts +2 -2
- package/src/components/basic/td-button-group/td-button-group.class.js +28 -25
- package/src/components/basic/td-container/td-aside/td-aside.class.d.ts +3 -2
- package/src/components/basic/td-container/td-aside/td-aside.class.js +7 -16
- package/src/components/basic/td-container/td-container.class.d.ts +4 -3
- package/src/components/basic/td-container/td-container.class.js +9 -8
- package/src/components/basic/td-container/td-container.interface.d.ts +2 -2
- package/src/components/basic/td-container/td-container.js +3 -2
- package/src/components/basic/td-container/td-footer/td-footer.class.d.ts +2 -3
- package/src/components/basic/td-container/td-footer/td-footer.class.js +9 -11
- package/src/components/basic/td-container/td-header/td-header.class.d.ts +2 -2
- package/src/components/basic/td-container/td-header/td-header.class.js +10 -10
- package/src/components/basic/td-container/td-main/td-main.class.d.ts +2 -1
- package/src/components/basic/td-container/td-main/td-main.class.js +6 -4
- package/src/components/basic/td-icon/td-icon.class.d.ts +30 -6
- package/src/components/basic/td-icon/td-icon.class.js +111 -47
- package/src/components/basic/td-icon/td-icon.interface.d.ts +36 -6
- package/src/components/basic/td-icon/td-icon.style.d.ts +5 -14
- package/src/components/basic/td-icon/td-icon.style.js +5 -6
- package/src/components/basic/td-layout/td-col/td-col.class.d.ts +4 -4
- package/src/components/basic/td-layout/td-col/td-col.class.js +48 -45
- package/src/components/basic/td-layout/td-col/td-col.interface.d.ts +0 -4
- package/src/components/basic/td-layout/td-row/td-row.class.d.ts +4 -3
- package/src/components/basic/td-layout/td-row/td-row.class.js +31 -30
- package/src/components/basic/td-layout/td-row/td-row.interface.d.ts +0 -1
- package/src/components/basic/td-link/td-link.class.d.ts +5 -5
- package/src/components/basic/td-link/td-link.class.js +53 -55
- package/src/components/basic/td-link/td-link.interface.d.ts +14 -6
- package/src/components/basic/td-link/td-link.style.d.ts +14 -3
- package/src/components/basic/td-link/td-link.style.js +39 -9
- package/src/components/basic/td-scrollbar/bar/bar.class.d.ts +2 -1
- package/src/components/basic/td-scrollbar/bar/bar.class.js +8 -7
- package/src/components/basic/td-scrollbar/td-scrollbar.class.d.ts +3 -3
- package/src/components/basic/td-scrollbar/td-scrollbar.class.js +18 -20
- package/src/components/basic/td-scrollbar/td-scrollbar.interface.d.ts +3 -2
- package/src/components/basic/td-scrollbar/thumb/thumb.class.d.ts +2 -1
- package/src/components/basic/td-scrollbar/thumb/thumb.class.js +12 -12
- package/src/components/basic/td-space/td-space.class.d.ts +5 -5
- package/src/components/basic/td-space/td-space.class.js +32 -30
- package/src/components/basic/td-space/td-space.interface.d.ts +1 -0
- package/src/components/basic/td-text/td-text.class.d.ts +3 -3
- package/src/components/basic/td-text/td-text.class.js +22 -19
- package/src/components/basic/td-text/td-text.interface.d.ts +4 -2
- package/src/components/basic/td-text/td-text.style.d.ts +1 -1
- package/src/components/basic/td-text/td-text.style.js +11 -2
- package/src/components/data/index.d.ts +30 -0
- package/src/components/data/index.js +34 -0
- package/src/components/data/td-avatar/td-avatar.class.d.ts +12 -0
- package/src/components/data/td-avatar/td-avatar.class.js +120 -0
- package/src/components/data/td-avatar/td-avatar.interface.d.ts +41 -0
- package/src/components/data/td-avatar/td-avatar.style.d.ts +13 -0
- package/src/components/data/td-avatar/td-avatar.style.js +20 -0
- package/src/components/data/td-badge/td-badge.class.d.ts +9 -0
- package/src/components/data/td-badge/td-badge.class.js +104 -0
- package/src/components/data/td-badge/td-badge.interface.d.ts +52 -0
- package/src/components/data/td-badge/td-badge.style.d.ts +7 -0
- package/src/components/data/td-badge/td-badge.style.js +12 -0
- package/src/components/data/td-card/td-card.class.d.ts +14 -0
- package/src/components/data/td-card/td-card.class.js +102 -0
- package/src/components/data/td-card/td-card.interface.d.ts +26 -0
- package/src/components/data/td-card/td-card.interface.js +2 -0
- package/src/components/data/td-card/td-card.style.d.ts +9 -0
- package/src/components/data/td-card/td-card.style.js +29 -0
- package/src/components/data/td-carousel/td-carousel.class.d.ts +0 -0
- package/src/components/data/td-carousel/td-carousel.class.js +1 -0
- package/src/components/data/td-carousel/td-carousel.interface.d.ts +0 -0
- package/src/components/data/td-carousel/td-carousel.interface.js +1 -0
- package/src/components/data/td-check-tag/td-check-tag.class.d.ts +12 -0
- package/src/components/data/td-check-tag/td-check-tag.class.js +75 -0
- package/src/components/data/td-check-tag/td-check-tag.interface.d.ts +22 -0
- package/src/components/data/td-check-tag/td-check-tag.interface.js +3 -0
- package/src/components/data/td-check-tag/td-check-tag.style.d.ts +7 -0
- package/src/components/data/td-check-tag/td-check-tag.style.js +39 -0
- package/src/components/data/td-collapse/td-collapse.class.d.ts +13 -0
- package/src/components/data/td-collapse/td-collapse.class.js +85 -0
- package/src/components/data/td-collapse/td-collapse.interface.d.ts +18 -0
- package/src/components/data/td-collapse/td-collapse.interface.js +2 -0
- package/src/components/data/td-collapse/td-collapse.style.d.ts +11 -0
- package/src/components/data/td-collapse/td-collapse.style.js +22 -0
- package/src/components/data/td-collapse-item/td-collapse-item.class.d.ts +25 -0
- package/src/components/data/td-collapse-item/td-collapse-item.class.js +222 -0
- package/src/components/data/td-collapse-item/td-collapse-item.interface.d.ts +20 -0
- package/src/components/data/td-collapse-item/td-collapse-item.interface.js +2 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.class.d.ts +6 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.class.js +12 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.interface.d.ts +4 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.interface.js +2 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.util.d.ts +2 -0
- package/src/components/data/td-collapse-transition/td-collapse-transition.util.js +147 -0
- package/src/components/data/td-count-down/td-count-down.class.d.ts +13 -0
- package/src/components/data/td-count-down/td-count-down.class.js +57 -0
- package/src/components/data/td-count-down/td-count-down.function.d.ts +0 -0
- package/src/components/data/td-count-down/td-count-down.function.js +1 -0
- package/src/components/data/td-count-down/td-count-down.interface.d.ts +11 -0
- package/src/components/data/td-count-down/td-count-down.interface.js +2 -0
- package/src/components/data/td-count-down/utils.d.ts +3 -0
- package/src/components/data/td-count-down/utils.js +32 -0
- package/src/components/data/td-descriptions/td-descriptions-row.d.ts +21 -0
- package/src/components/data/td-descriptions/td-descriptions-row.js +80 -0
- package/src/components/data/td-descriptions/td-descriptions.class.d.ts +18 -0
- package/src/components/data/td-descriptions/td-descriptions.class.js +156 -0
- package/src/components/data/td-descriptions/td-descriptions.interface.d.ts +43 -0
- package/src/components/data/td-descriptions/td-descriptions.interface.js +2 -0
- package/src/components/data/td-descriptions/td-descriptions.style.d.ts +51 -0
- package/src/components/data/td-descriptions/td-descriptions.style.js +142 -0
- package/src/components/data/td-descriptions/td-descritions-cell.d.ts +15 -0
- package/src/components/data/td-descriptions/td-descritions-cell.js +110 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.class.d.ts +10 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.class.js +20 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.interface.d.ts +51 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.interface.js +2 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.style.d.ts +10 -0
- package/src/components/data/td-descriptions-item/td-descriptions-item.style.js +13 -0
- package/src/components/data/td-empty/img-empty.class.d.ts +5 -0
- package/src/components/data/td-empty/img-empty.class.js +204 -0
- package/src/components/data/td-empty/td-empty.class.d.ts +13 -0
- package/src/components/data/td-empty/td-empty.class.js +77 -0
- package/src/components/data/td-empty/td-empty.interface.d.ts +25 -0
- package/src/components/data/td-empty/td-empty.interface.js +2 -0
- package/src/components/data/td-empty/td-empty.style.d.ts +24 -0
- package/src/components/data/td-empty/td-empty.style.js +65 -0
- package/src/components/data/td-image/td-image.class.d.ts +16 -0
- package/src/components/data/td-image/td-image.class.js +95 -0
- package/src/components/data/td-image/td-image.interface.d.ts +78 -0
- package/src/components/data/td-image/td-image.interface.js +2 -0
- package/src/components/data/td-image/td-image.style.d.ts +11 -0
- package/src/components/data/td-image/td-image.style.js +18 -0
- package/src/components/data/td-image/util.d.ts +1 -0
- package/src/components/data/td-image/util.js +19 -0
- package/src/components/data/td-image-viewer/td-image-viewer.class.d.ts +20 -0
- package/src/components/data/td-image-viewer/td-image-viewer.class.js +261 -0
- package/src/components/data/td-image-viewer/td-image-viewer.interface.d.ts +63 -0
- package/src/components/data/td-image-viewer/td-image-viewer.interface.js +2 -0
- package/src/components/data/td-image-viewer/td-image-viewer.style.d.ts +9 -0
- package/src/components/data/td-image-viewer/td-image-viewer.style.js +67 -0
- package/src/components/data/td-pagination/td-pagination.class.d.ts +0 -0
- package/src/components/data/td-pagination/td-pagination.class.js +1 -0
- package/src/components/data/td-pagination/td-pagination.interface.d.ts +0 -0
- package/src/components/data/td-pagination/td-pagination.interface.js +1 -0
- package/src/components/data/td-progress/td-progress.class.d.ts +0 -0
- package/src/components/data/td-progress/td-progress.class.js +1 -0
- package/src/components/data/td-progress/td-progress.interface.d.ts +0 -0
- package/src/components/data/td-progress/td-progress.interface.js +1 -0
- package/src/components/data/td-result/td-result.class.d.ts +8 -0
- package/src/components/data/td-result/td-result.class.js +87 -0
- package/src/components/data/td-result/td-result.constant.d.ts +8 -0
- package/src/components/data/td-result/td-result.constant.js +41 -0
- package/src/components/data/td-result/td-result.interface.d.ts +28 -0
- package/src/components/data/td-result/td-result.interface.js +2 -0
- package/src/components/data/td-result/td-result.style.d.ts +16 -0
- package/src/components/data/td-result/td-result.style.js +46 -0
- package/src/components/data/td-segmented/td-segmented.class.d.ts +22 -0
- package/src/components/data/td-segmented/td-segmented.class.js +172 -0
- package/src/components/data/td-segmented/td-segmented.interface.d.ts +51 -0
- package/src/components/data/td-segmented/td-segmented.interface.js +2 -0
- package/src/components/data/td-segmented/td-segmented.style.d.ts +37 -0
- package/src/components/data/td-segmented/td-segmented.style.js +142 -0
- package/src/components/data/td-statistic/td-statistic.abstract.d.ts +15 -0
- package/src/components/data/td-statistic/td-statistic.abstract.js +113 -0
- package/src/components/data/td-statistic/td-statistic.class.d.ts +6 -0
- package/src/components/data/td-statistic/td-statistic.class.js +11 -0
- package/src/components/data/td-statistic/td-statistic.interface.d.ts +58 -0
- package/src/components/data/td-statistic/td-statistic.interface.js +2 -0
- package/src/components/data/td-statistic/td-statistic.style.d.ts +9 -0
- package/src/components/data/td-statistic/td-statistic.style.js +16 -0
- package/src/components/data/td-table/td-table.class.d.ts +0 -0
- package/src/components/data/td-table/td-table.class.js +1 -0
- package/src/components/data/td-table/td-table.interface.d.ts +0 -0
- package/src/components/data/td-table/td-table.interface.js +1 -0
- package/src/components/data/td-tag/td-tag.class.d.ts +12 -0
- package/src/components/data/td-tag/td-tag.class.js +144 -0
- package/src/components/data/td-tag/td-tag.interface.d.ts +42 -0
- package/src/components/data/td-tag/td-tag.interface.js +2 -0
- package/src/components/data/td-tag/td-tag.style.d.ts +45 -0
- package/src/components/data/td-tag/td-tag.style.js +80 -0
- package/src/components/data/td-timeline/td-timeline.class.d.ts +0 -0
- package/src/components/data/td-timeline/td-timeline.class.js +1 -0
- package/src/components/data/td-timeline/td-timeline.interface.d.ts +0 -0
- package/src/components/data/td-timeline/td-timeline.interface.js +1 -0
- package/src/components/data/td-tree/td-tree.class.d.ts +0 -0
- package/src/components/data/td-tree/td-tree.class.js +1 -0
- package/src/components/data/td-tree/td-tree.interface.d.ts +0 -0
- package/src/components/data/td-tree/td-tree.interface.js +1 -0
- package/src/components/feedback/dialog/dialog.class.d.ts +2 -1
- package/src/components/feedback/dialog/dialog.class.js +5 -5
- package/src/components/feedback/dialog/dialog.interface.d.ts +2 -3
- package/src/components/feedback/index.d.ts +11 -0
- package/src/components/feedback/index.js +15 -1
- package/src/components/feedback/message-box/message-box.d.ts +2 -1
- package/src/components/feedback/message-box/message-box.interface.d.ts +2 -2
- package/src/components/feedback/message-box/message-box.js +6 -6
- package/src/components/feedback/overlay/container/body/body.js +3 -5
- package/src/components/feedback/overlay/container/container.js +4 -6
- package/src/components/feedback/overlay/container/footer/cancel-button/cancel-button.js +3 -3
- package/src/components/feedback/overlay/container/footer/confirm-button/confirm-button.js +4 -6
- package/src/components/feedback/overlay/container/footer/footer.d.ts +1 -2
- package/src/components/feedback/overlay/container/footer/footer.js +24 -26
- package/src/components/feedback/overlay/container/header/close-button/close-button.js +6 -8
- package/src/components/feedback/overlay/container/header/header.js +2 -2
- package/src/components/feedback/overlay/container/header/title/title.js +3 -5
- package/src/components/feedback/overlay/overlay.abstract.js +6 -8
- package/src/components/feedback/td-alert/td-alert.class.d.ts +15 -0
- package/src/components/feedback/td-alert/td-alert.class.js +111 -0
- package/src/components/feedback/td-alert/td-alert.interface.d.ts +41 -0
- package/src/components/feedback/td-alert/td-alert.interface.js +2 -0
- package/src/components/feedback/td-alert/td-alert.style.d.ts +21 -0
- package/src/components/feedback/td-alert/td-alert.style.js +102 -0
- package/src/components/feedback/td-dialog/td-dialog.class.d.ts +12 -0
- package/src/components/feedback/td-dialog/td-dialog.class.js +70 -0
- package/src/components/feedback/td-dialog/td-dialog.interface.d.ts +79 -0
- package/src/components/feedback/td-dialog/td-dialog.interface.js +2 -0
- package/src/components/feedback/td-dialog/td-dialog.style.d.ts +20 -0
- package/src/components/feedback/td-dialog/td-dialog.style.js +89 -0
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.d.ts +12 -0
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.js +79 -0
- package/src/components/feedback/td-dialog-content/td-dialog-content.interface.d.ts +51 -0
- package/src/components/feedback/td-dialog-content/td-dialog-content.interface.js +2 -0
- package/src/components/feedback/td-drawer/td-drawer.class.d.ts +8 -0
- package/src/components/feedback/td-drawer/td-drawer.class.js +39 -0
- package/src/components/feedback/td-drawer/td-drawer.interface.d.ts +12 -0
- package/src/components/feedback/td-drawer/td-drawer.interface.js +2 -0
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.d.ts +4 -3
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.js +11 -11
- package/src/components/feedback/td-focus-trap/td-focus-trap.interface.d.ts +9 -0
- package/src/components/feedback/td-focus-trap/td-focus-trap.interface.js +1 -0
- package/src/components/feedback/td-focus-trap/tokens.d.ts +5 -0
- package/src/components/feedback/td-focus-trap/tokens.js +4 -10
- package/src/components/feedback/td-focus-trap/utils.js +3 -3
- package/src/components/feedback/td-loading/td-loading.class.d.ts +12 -0
- package/src/components/feedback/td-loading/td-loading.class.js +65 -0
- package/src/components/feedback/td-loading/td-loading.interface.d.ts +37 -0
- package/src/components/feedback/td-loading/td-loading.interface.js +2 -0
- package/src/components/feedback/td-message/td-message.class.d.ts +24 -0
- package/src/components/feedback/td-message/td-message.class.js +239 -0
- package/src/components/feedback/td-message/td-message.interface.d.ts +105 -0
- package/src/components/feedback/td-message/td-message.interface.js +22 -0
- package/src/components/feedback/td-message/td-message.style.d.ts +17 -0
- package/src/components/feedback/td-message/td-message.style.js +104 -0
- package/src/components/feedback/td-message-box/td-message-box.class.d.ts +42 -0
- package/src/components/feedback/td-message-box/td-message-box.class.js +531 -0
- package/src/components/feedback/td-message-box/td-message-box.interface.d.ts +142 -0
- package/src/components/feedback/td-message-box/td-message-box.interface.js +2 -0
- package/src/components/feedback/td-message-box/td-message-box.style.d.ts +36 -0
- package/src/components/feedback/td-message-box/td-message-box.style.js +182 -0
- package/src/components/feedback/td-notification/td-notification.class.d.ts +30 -0
- package/src/components/feedback/td-notification/td-notification.class.js +234 -0
- package/src/components/feedback/td-notification/td-notification.interface.d.ts +76 -0
- package/src/components/feedback/td-notification/td-notification.interface.js +2 -0
- package/src/components/feedback/td-notification/td-notification.style.d.ts +28 -0
- package/src/components/feedback/td-notification/td-notification.style.js +138 -0
- package/src/components/feedback/td-overlay/td-overlay.class.d.ts +10 -0
- package/src/components/feedback/td-overlay/td-overlay.class.js +35 -0
- package/src/components/feedback/td-overlay/td-overlay.interface.d.ts +13 -0
- package/src/components/feedback/td-overlay/td-overlay.interface.js +2 -0
- package/src/components/feedback/td-overlay/td-overlay.style.d.ts +2 -0
- package/src/components/feedback/td-overlay/td-overlay.style.js +16 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.class.d.ts +0 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.class.js +1 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.interface.d.ts +0 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.interface.js +1 -0
- package/src/components/feedback/td-popover/td-popover.class.d.ts +0 -0
- package/src/components/feedback/td-popover/td-popover.class.js +1 -0
- package/src/components/feedback/td-popover/td-popover.interface.d.ts +0 -0
- package/src/components/feedback/td-popover/td-popover.interface.js +1 -0
- package/src/components/feedback/td-popper/arrow/arrow.class.d.ts +2 -1
- package/src/components/feedback/td-popper/arrow/arrow.class.js +6 -6
- package/src/components/feedback/td-popper/content/content.class.d.ts +2 -1
- package/src/components/feedback/td-popper/content/content.class.js +7 -7
- package/src/components/feedback/td-popper/td-popper.class.d.ts +3 -2
- package/src/components/feedback/td-popper/td-popper.class.js +3 -3
- package/src/components/feedback/td-popper/td-popper.interface.d.ts +2 -3
- package/src/components/feedback/td-popper/td-popper.interface.js +0 -11
- package/src/components/feedback/td-popper/trigger/trigger.class.d.ts +2 -1
- package/src/components/feedback/td-popper/trigger/trigger.class.js +3 -2
- package/src/components/feedback/td-popper/trigger/trigger.interface.d.ts +10 -0
- package/src/components/feedback/td-tooltip/content/content.class.d.ts +2 -1
- package/src/components/feedback/td-tooltip/content/content.class.js +3 -3
- package/src/components/feedback/td-tooltip/td-tooltip.class.d.ts +2 -1
- package/src/components/feedback/td-tooltip/td-tooltip.class.js +7 -13
- package/src/components/feedback/td-tooltip/trigger/trigger.class.d.ts +2 -1
- package/src/components/feedback/td-tooltip/trigger/trigger.class.js +3 -3
- package/src/components/feedback/td-tooltip/utils.d.ts +4 -0
- package/src/components/feedback/td-tooltip/utils.js +23 -0
- package/src/components/form/checkbox-group/checkbox-group.class.js +9 -8
- package/src/components/form/checkbox-group/checkbox-option/checkbox-option.class.js +3 -3
- package/src/components/form/field-item/cascade/field-cascade.abstract.js +25 -17
- package/src/components/form/field-item/field-item.abstract.d.ts +7 -3
- package/src/components/form/field-item/field-item.abstract.js +14 -9
- package/src/components/form/field-item/field-item.style.d.ts +1 -1
- package/src/components/form/field-item/field-item.style.js +1 -2
- package/src/components/form/field-item/input/field-input.abstract.d.ts +1 -2
- package/src/components/form/field-item/input/field-input.abstract.js +6 -6
- package/src/components/form/field-item/options/field-options.abstract.js +31 -27
- package/src/components/form/field-item/radio/field-radio.abstract.d.ts +2 -2
- package/src/components/form/field-item/radio/field-radio.abstract.js +30 -21
- package/src/components/form/field-item/select/field-select.abstract.d.ts +1 -2
- package/src/components/form/field-item/select/field-select.abstract.js +3 -3
- package/src/components/form/field-item/span/field-span.abstract.js +4 -4
- package/src/components/form/field-item/textarea/field-textarea.abstract.d.ts +1 -2
- package/src/components/form/field-item/textarea/field-textarea.abstract.js +6 -6
- package/src/components/form/field-select/field-select.class.js +10 -9
- package/src/components/form/field-select/option/option.class.js +1 -1
- package/src/components/form/index.d.ts +10 -0
- package/src/components/form/index.js +11 -1
- package/src/components/form/radio-group/radio-group.class.d.ts +3 -2
- package/src/components/form/radio-group/radio-group.class.js +13 -12
- package/src/components/form/radio-group/radio-option/radio-option.class.d.ts +3 -2
- package/src/components/form/radio-group/radio-option/radio-option.class.js +8 -9
- package/src/components/form/select/select.class.js +4 -4
- package/src/components/form/td-autocomplete/td-autocomplete.class.d.ts +0 -0
- package/src/components/form/td-autocomplete/td-autocomplete.class.js +1 -0
- package/src/components/form/td-autocomplete/td-autocomplete.interface.d.ts +0 -0
- package/src/components/form/td-autocomplete/td-autocomplete.interface.js +1 -0
- package/src/components/form/td-cascader/td-cascader.class.d.ts +0 -0
- package/src/components/form/td-cascader/td-cascader.class.js +1 -0
- package/src/components/form/td-cascader/td-cascader.interface.d.ts +0 -0
- package/src/components/form/td-cascader/td-cascader.interface.js +1 -0
- package/src/components/form/td-checkbox/composables/use-checkbox-status.d.ts +6 -0
- package/src/components/form/td-checkbox/composables/use-checkbox-status.js +52 -0
- package/src/components/form/td-checkbox/composables/use-checkbox.d.ts +6 -0
- package/src/components/form/td-checkbox/composables/use-checkbox.js +85 -0
- package/src/components/form/td-checkbox/td-checkbox.class.d.ts +8 -2
- package/src/components/form/td-checkbox/td-checkbox.class.js +54 -75
- package/src/components/form/td-checkbox/td-checkbox.interface.d.ts +2 -1
- package/src/components/form/td-checkbox/td-checkbox.style.d.ts +46 -0
- package/src/components/form/td-checkbox/td-checkbox.style.js +144 -10
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.d.ts +9 -2
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.js +56 -6
- package/src/components/form/td-checkbox-button/td-checkbox-button.style.d.ts +9 -0
- package/src/components/form/td-checkbox-button/td-checkbox-button.style.js +55 -0
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.d.ts +2 -2
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.js +10 -10
- package/src/components/form/td-checkbox-group/td-checkbox-group.interface.d.ts +1 -1
- package/src/components/form/td-color-picker/td-color-picker.class.d.ts +0 -0
- package/src/components/form/td-color-picker/td-color-picker.class.js +1 -0
- package/src/components/form/td-color-picker/td-color-picker.interface.d.ts +0 -0
- package/src/components/form/td-color-picker/td-color-picker.interface.js +1 -0
- package/src/components/form/td-date-picker/td-date-picker.class.d.ts +0 -0
- package/src/components/form/td-date-picker/td-date-picker.class.js +1 -0
- package/src/components/form/td-date-picker/td-date-picker.interface.d.ts +0 -0
- package/src/components/form/td-date-picker/td-date-picker.interface.js +1 -0
- package/src/components/form/td-date-time-picker/td-date-time-picker.class.d.ts +0 -0
- package/src/components/form/td-date-time-picker/td-date-time-picker.class.js +1 -0
- package/src/components/form/td-date-time-picker/td-date-time-picker.interface.d.ts +0 -0
- package/src/components/form/td-date-time-picker/td-date-time-picker.interface.js +1 -0
- package/src/components/form/td-form/hooks/use-form-item.d.ts +5 -0
- package/src/components/form/td-form/hooks/use-form-item.js +65 -0
- package/src/components/form/td-form/td-form.class.d.ts +3 -8
- package/src/components/form/td-form/td-form.class.js +10 -34
- package/src/components/form/td-form/td-form.const.d.ts +5 -0
- package/src/components/form/td-form/td-form.const.js +5 -0
- package/src/components/form/td-form/td-form.interface.js +33 -0
- package/src/components/form/td-form-item/td-form-item.class.d.ts +7 -4
- package/src/components/form/td-form-item/td-form-item.class.js +83 -60
- package/src/components/form/td-form-item/td-form-item.interface.d.ts +1 -3
- package/src/components/form/td-form-item/td-form-item.style.js +15 -15
- package/src/components/form/td-input/td-input-field.class.d.ts +1 -1
- package/src/components/form/td-input/td-input-field.class.js +13 -13
- package/src/components/form/td-input/td-input-field.interface.d.ts +2 -2
- package/src/components/form/td-input/td-input.class.d.ts +4 -3
- package/src/components/form/td-input/td-input.class.js +83 -49
- package/src/components/form/td-input/td-input.interface.d.ts +13 -0
- package/src/components/form/td-input/widget/prefix.js +2 -2
- package/src/components/form/td-input/widget/suffix.d.ts +1 -1
- package/src/components/form/td-input/widget/suffix.js +10 -10
- package/src/components/form/td-input/widget/td-input-wrapper.class.d.ts +3 -3
- package/src/components/form/td-input/widget/td-input-wrapper.class.js +64 -67
- package/src/components/form/td-input/widget/td-textarea-wrapper.d.ts +2 -2
- package/src/components/form/td-input/widget/td-textarea-wrapper.js +8 -9
- package/src/components/form/td-input-number/td-input-number.class.d.ts +0 -0
- package/src/components/form/td-input-number/td-input-number.class.js +1 -0
- package/src/components/form/td-input-number/td-input-number.interface.d.ts +0 -0
- package/src/components/form/td-input-number/td-input-number.interface.js +1 -0
- package/src/components/form/td-option/td-option.class.d.ts +7 -0
- package/src/components/form/{td-select/option/option.class.js → td-option/td-option.class.js} +9 -10
- package/src/components/form/{td-select/option/option.interface.d.ts → td-option/td-option.interface.d.ts} +1 -1
- package/src/components/form/td-option/td-option.interface.js +2 -0
- package/src/components/form/td-option-group/td-option-group.class.d.ts +7 -0
- package/src/components/form/{td-select/option-group/option-group.class.js → td-option-group/td-option-group.class.js} +11 -11
- package/src/components/form/{td-select/option-group/option-group.interface.d.ts → td-option-group/td-option-group.interface.d.ts} +1 -1
- package/src/components/form/td-option-group/td-option-group.interface.js +2 -0
- package/src/components/form/td-radio/td-radio.class.d.ts +3 -3
- package/src/components/form/td-radio/td-radio.class.js +58 -55
- package/src/components/form/td-radio-button/td-radio-button.class.d.ts +3 -3
- package/src/components/form/td-radio-button/td-radio-button.class.js +47 -45
- package/src/components/form/td-radio-group/td-radio-group.class.d.ts +3 -3
- package/src/components/form/td-radio-group/td-radio-group.class.js +21 -19
- package/src/components/form/td-rate/td-rate.class.d.ts +0 -0
- package/src/components/form/td-rate/td-rate.class.js +1 -0
- package/src/components/form/td-rate/td-rate.interface.d.ts +0 -0
- package/src/components/form/td-rate/td-rate.interface.js +1 -0
- package/src/components/form/td-select/dropdown/dropdown.class.d.ts +3 -2
- package/src/components/form/td-select/dropdown/dropdown.class.js +15 -15
- package/src/components/form/td-select/td-select.class.d.ts +3 -1
- package/src/components/form/td-select/td-select.class.js +6 -6
- package/src/components/form/td-select/td-select.style.js +8 -8
- package/src/components/form/td-slider/td-slider.class.d.ts +0 -0
- package/src/components/form/td-slider/td-slider.class.js +1 -0
- package/src/components/form/td-slider/td-slider.interface.d.ts +0 -0
- package/src/components/form/td-slider/td-slider.interface.js +1 -0
- package/src/components/form/td-switch/td-switch.class.d.ts +8 -4
- package/src/components/form/td-switch/td-switch.class.js +92 -63
- package/src/components/form/td-switch/td-switch.interface.d.ts +7 -1
- package/src/components/form/td-switch/td-switch.interface.js +1 -0
- package/src/components/form/td-switch/td-switch.style.d.ts +1 -2
- package/src/components/form/td-switch/td-switch.style.js +1 -2
- package/src/components/form/td-switch/widget/td-switch-core.d.ts +2 -2
- package/src/components/form/td-switch/widget/td-switch-core.js +73 -71
- package/src/components/form/td-switch/widget/td-switch-left.d.ts +2 -2
- package/src/components/form/td-switch/widget/td-switch-left.js +8 -8
- package/src/components/form/td-switch/widget/td-switch-right.d.ts +3 -3
- package/src/components/form/td-switch/widget/td-switch-right.js +9 -9
- package/src/components/form/td-time-picker/td-time-picker.class.d.ts +0 -0
- package/src/components/form/td-time-picker/td-time-picker.class.js +1 -0
- package/src/components/form/td-time-picker/td-time-picker.interface.d.ts +0 -0
- package/src/components/form/td-time-picker/td-time-picker.interface.js +1 -0
- package/src/components/form/td-time-select/td-time-select.class.d.ts +0 -0
- package/src/components/form/td-time-select/td-time-select.class.js +1 -0
- package/src/components/form/td-time-select/td-time-select.interface.d.ts +0 -0
- package/src/components/form/td-time-select/td-time-select.interface.js +1 -0
- package/src/components/form/td-transfer/td-transfer.class.d.ts +0 -0
- package/src/components/form/td-transfer/td-transfer.class.js +1 -0
- package/src/components/form/td-transfer/td-transfer.interface.d.ts +0 -0
- package/src/components/form/td-transfer/td-transfer.interface.js +1 -0
- package/src/components/form/td-upload/td-upload.class.d.ts +0 -0
- package/src/components/form/td-upload/td-upload.class.js +1 -0
- package/src/components/form/td-upload/td-upload.interface.d.ts +0 -0
- package/src/components/form/td-upload/td-upload.interface.js +1 -0
- package/src/components/navigation/index.d.ts +16 -0
- package/src/components/navigation/index.js +17 -1
- package/src/components/navigation/td-affix/td-affix.class.d.ts +25 -0
- package/src/components/navigation/td-affix/td-affix.class.js +134 -0
- package/src/components/navigation/td-affix/td-affix.interface.d.ts +27 -0
- package/src/components/navigation/td-affix/td-affix.interface.js +2 -0
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.class.d.ts +8 -0
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.class.js +30 -0
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.interface.d.ts +16 -0
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.interface.js +2 -0
- package/src/components/navigation/td-anchor/td-anchor.class.d.ts +10 -0
- package/src/components/navigation/td-anchor/td-anchor.class.js +118 -0
- package/src/components/navigation/td-anchor/td-anchor.function.d.ts +2 -0
- package/src/components/navigation/td-anchor/td-anchor.function.js +91 -0
- package/src/components/navigation/td-anchor/td-anchor.interface.d.ts +44 -0
- package/src/components/navigation/td-anchor/td-anchor.interface.js +2 -0
- package/src/components/navigation/td-anchor/td-anchor.style.d.ts +14 -0
- package/src/components/navigation/td-anchor/td-anchor.style.js +17 -0
- package/src/components/navigation/td-backtop/td-backtop.class.d.ts +17 -0
- package/src/components/navigation/td-backtop/td-backtop.class.js +145 -0
- package/src/components/navigation/td-backtop/td-backtop.interface.d.ts +26 -0
- package/src/components/navigation/td-backtop/td-backtop.interface.js +2 -0
- package/src/components/navigation/td-backtop/td-backtop.style.d.ts +5 -0
- package/src/components/navigation/td-backtop/td-backtop.style.js +13 -0
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.d.ts +11 -0
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.js +37 -0
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.interface.d.ts +16 -0
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.interface.js +2 -0
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.class.d.ts +8 -0
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.class.js +71 -0
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.interface.d.ts +18 -0
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.interface.js +2 -0
- package/src/components/navigation/td-dropdown/td-dropdown.class.d.ts +0 -0
- package/src/components/navigation/td-dropdown/td-dropdown.class.js +1 -0
- package/src/components/navigation/td-dropdown/td-dropdown.interface.d.ts +0 -0
- package/src/components/navigation/td-dropdown/td-dropdown.interface.js +1 -0
- package/src/components/navigation/td-menu/td-menu.class.d.ts +3 -2
- package/src/components/navigation/td-menu/td-menu.class.js +11 -10
- package/src/components/navigation/td-page-header/td-page-header.class.d.ts +0 -0
- package/src/components/navigation/td-page-header/td-page-header.class.js +1 -0
- package/src/components/navigation/td-page-header/td-page-header.interface.d.ts +0 -0
- package/src/components/navigation/td-page-header/td-page-header.interface.js +1 -0
- package/src/components/navigation/td-steps/td-steps.class.d.ts +0 -0
- package/src/components/navigation/td-steps/td-steps.class.js +1 -0
- package/src/components/navigation/td-steps/td-steps.interface.d.ts +0 -0
- package/src/components/navigation/td-steps/td-steps.interface.js +1 -0
- package/src/components/navigation/td-tabs/td-tab-bar.class.d.ts +12 -0
- package/src/components/navigation/td-tabs/td-tab-bar.class.js +62 -0
- package/src/components/navigation/td-tabs/td-tab-bar.interface.d.ts +10 -0
- package/src/components/navigation/td-tabs/td-tab-bar.interface.js +2 -0
- package/src/components/navigation/td-tabs/td-tab-nav.class.d.ts +31 -0
- package/src/components/navigation/td-tabs/td-tab-nav.class.js +355 -0
- package/src/components/navigation/td-tabs/td-tab-nav.interface.d.ts +23 -0
- package/src/components/navigation/td-tabs/td-tab-nav.interface.js +2 -0
- package/src/components/navigation/td-tabs/td-tab-pane.class.d.ts +13 -0
- package/src/components/navigation/td-tabs/td-tab-pane.class.js +41 -0
- package/src/components/navigation/td-tabs/td-tab-pane.interface.d.ts +31 -0
- package/src/components/navigation/td-tabs/td-tab-pane.interface.js +2 -0
- package/src/components/navigation/td-tabs/td-tabs.class.d.ts +18 -0
- package/src/components/navigation/td-tabs/td-tabs.class.js +159 -0
- package/src/components/navigation/td-tabs/td-tabs.interface.d.ts +74 -0
- package/src/components/navigation/td-tabs/td-tabs.interface.js +5 -0
- package/src/components/navigation/td-tabs/td-tabs.style.d.ts +19 -0
- package/src/components/navigation/td-tabs/td-tabs.style.js +128 -0
- package/src/components/others/collapsible-box/collapsible-box.d.ts +2 -3
- package/src/components/others/collapsible-box/collapsible-box.js +5 -7
- package/src/components/others/collapsible-box/contents/contents.d.ts +2 -2
- package/src/components/others/collapsible-box/contents/contents.js +6 -8
- package/src/components/others/collapsible-box/heading/expand-heading.d.ts +2 -3
- package/src/components/others/collapsible-box/heading/expand-heading.js +13 -15
- package/src/components/others/td-divider/td-divider.class.d.ts +2 -2
- package/src/components/others/td-divider/td-divider.class.js +16 -15
- package/src/components/others/td-watermark/td-watermark.class.d.ts +0 -0
- package/src/components/others/td-watermark/td-watermark.class.js +1 -0
- package/src/components/others/td-watermark/td-watermark.interface.d.ts +0 -0
- package/src/components/others/td-watermark/td-watermark.interface.js +1 -0
- package/src/constants/event.d.ts +3 -0
- package/src/constants/event.js +6 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/styles/color-scheme.js +19 -19
- package/src/styles/function.js +3 -3
- package/src/styles/index.d.ts +1 -0
- package/src/styles/size.d.ts +0 -5
- package/src/styles/size.js +3 -3
- package/src/styles/transition.d.ts +32 -0
- package/src/styles/transition.js +222 -0
- package/src/styles/var.d.ts +10 -1
- package/src/styles/var.js +16 -2
- package/src/ui/ui.abstract.d.ts +16 -6
- package/src/ui/ui.abstract.js +39 -11
- package/src/ui/ui.interface.d.ts +7 -3
- package/src/utils/types.d.ts +8 -0
- package/src/utils/types.js +35 -0
- package/src/components/basic/td-layout/td-row/td-row.style.d.ts +0 -1
- package/src/components/basic/td-layout/td-row/td-row.style.js +0 -8
- package/src/components/form/td-select/option/option.class.d.ts +0 -6
- package/src/components/form/td-select/option-group/option-group.class.d.ts +0 -6
- /package/src/components/{form/td-select/option-group/option-group.interface.js → data/td-avatar/td-avatar.interface.js} +0 -0
- /package/src/components/{form/td-select/option/option.interface.js → data/td-badge/td-badge.interface.js} +0 -0
|
@@ -1,13 +1,43 @@
|
|
|
1
1
|
import { TypeSvgSvg } from '@type-dom/framework';
|
|
2
2
|
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
3
|
+
import { TdIcon } from './td-icon.class';
|
|
4
|
+
/**
|
|
5
|
+
* 定义了图标的接口,继承自IUI接口。
|
|
6
|
+
* 此接口用于规范图标的属性和行为。
|
|
7
|
+
*/
|
|
3
8
|
export interface ITdIcon extends IUI {
|
|
9
|
+
/**
|
|
10
|
+
* 类名,固定为'TdIcon',用于在HTML元素上应用样式。
|
|
11
|
+
*/
|
|
4
12
|
className: 'TdIcon';
|
|
5
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* 定义了图标配置的接口,扩展了IUIConfig接口。
|
|
16
|
+
* 这些配置用于自定义图标的展示方式。
|
|
17
|
+
*/
|
|
6
18
|
export interface ITdIconConfig extends IUIConfig {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
/**
|
|
20
|
+
* 可选。指定一个SVG图形对象,用于显示自定义SVG图标。
|
|
21
|
+
*/
|
|
22
|
+
svgObj?: TypeSvgSvg;
|
|
23
|
+
/**
|
|
24
|
+
* 可选。指定图标的大小,可以是字符串(如"20px")或数字。
|
|
25
|
+
*/
|
|
26
|
+
size?: string | number;
|
|
27
|
+
/**
|
|
28
|
+
* 可选。指定图标的颜色,使用字符串表示的颜色值。
|
|
29
|
+
*/
|
|
30
|
+
color?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 可选。指定图标是否处于加载状态,用于显示加载中的动画效果。
|
|
33
|
+
*/
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 可选。指定图标的对齐方式,可以是"left"(左对齐)或"right"(右对齐)。
|
|
37
|
+
*/
|
|
38
|
+
position?: 'left' | 'right';
|
|
39
|
+
/**
|
|
40
|
+
* 可选。用于插槽的SVG图形对象,可以替换默认的图标展示。
|
|
41
|
+
*/
|
|
42
|
+
slot?: TypeSvgSvg | TdIcon;
|
|
13
43
|
}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { IStyle } from '@type-dom/
|
|
2
|
-
|
|
3
|
-
export declare const $
|
|
4
|
-
export declare const $
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export declare const $iconRight: {
|
|
8
|
-
marginLeft: string;
|
|
9
|
-
float: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const $iconLeft: {
|
|
12
|
-
marginRight: string;
|
|
13
|
-
float: string;
|
|
14
|
-
};
|
|
1
|
+
import { IStyle } from '@type-dom/css-type';
|
|
2
|
+
export declare const $tdIcon: IStyle;
|
|
3
|
+
export declare const $iconLoading: IStyle;
|
|
4
|
+
export declare const $iconRight: IStyle;
|
|
5
|
+
export declare const $iconLeft: IStyle;
|
|
@@ -2,21 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.$iconLeft = exports.$iconRight = exports.$iconLoading = exports.$tdIcon = void 0;
|
|
4
4
|
const framework_1 = require("@type-dom/framework");
|
|
5
|
-
require("./icon.scss");
|
|
6
5
|
exports.$tdIcon = {
|
|
7
|
-
|
|
6
|
+
height: '1em',
|
|
8
7
|
width: '1em',
|
|
9
8
|
lineHeight: '1em',
|
|
10
|
-
display:
|
|
9
|
+
display: 'inline-flex',
|
|
11
10
|
justifyContent: 'center',
|
|
12
11
|
alignItems: 'center',
|
|
13
|
-
position:
|
|
12
|
+
position: 'relative',
|
|
14
13
|
fill: 'currentColor',
|
|
15
|
-
// color: var(--color),
|
|
14
|
+
// color: 'var(--color)',
|
|
16
15
|
fontSize: 'inherit'
|
|
17
16
|
};
|
|
18
17
|
exports.$iconLoading = {
|
|
19
|
-
animation:
|
|
18
|
+
animation: `rotating-${framework_1.vHash} 2s linear infinite`
|
|
20
19
|
};
|
|
21
20
|
exports.$iconRight = {
|
|
22
21
|
marginLeft: '5px',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { UI } from '../../../../ui/ui.abstract';
|
|
1
2
|
import { TdRow } from '../td-row/td-row.class';
|
|
2
3
|
import { ITdCol, ITdColConfig } from './td-col.interface';
|
|
3
|
-
import { UI } from '../../../../ui/ui.abstract';
|
|
4
4
|
export declare class TdCol extends UI implements ITdCol {
|
|
5
5
|
className: 'TdCol';
|
|
6
|
-
config?: ITdColConfig;
|
|
7
6
|
parent?: TdRow;
|
|
8
|
-
|
|
7
|
+
props: ITdColConfig;
|
|
8
|
+
constructor(params?: ITdColConfig);
|
|
9
9
|
get screenWidth(): number;
|
|
10
|
-
|
|
10
|
+
setup(): void;
|
|
11
11
|
resize(): void;
|
|
12
12
|
initEvents(): void;
|
|
13
13
|
}
|
|
@@ -5,47 +5,47 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const utils_1 = require("@type-dom/utils");
|
|
6
6
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
7
7
|
class TdCol extends ui_abstract_1.UI {
|
|
8
|
-
constructor(
|
|
9
|
-
super();
|
|
8
|
+
constructor(params) {
|
|
9
|
+
super(params);
|
|
10
10
|
this.className = 'TdCol';
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
11
|
+
this.addChild(this.getSlotNode());
|
|
12
|
+
this.props = this.setParams(params);
|
|
13
13
|
}
|
|
14
14
|
get screenWidth() {
|
|
15
15
|
return window.innerWidth || document.documentElement.clientWidth;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (
|
|
20
|
-
if (
|
|
21
|
-
this.addStyleObj({
|
|
17
|
+
setup() {
|
|
18
|
+
const props = this.props;
|
|
19
|
+
if (props === null || props === void 0 ? void 0 : props.span) {
|
|
20
|
+
if (props.span === 0) {
|
|
21
|
+
this.ctrl.addStyleObj({
|
|
22
22
|
display: 'none'
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
27
|
-
this.addStyleObj({
|
|
26
|
+
const proportion = (0, utils_1.formatFloat)(props.span / 24) * 100 + '%';
|
|
27
|
+
this.ctrl.addStyleObj({
|
|
28
28
|
maxWidth: proportion,
|
|
29
29
|
flex: '0 0 ' + proportion
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
if (
|
|
34
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
35
|
-
this.addStyleObj({
|
|
33
|
+
if (props === null || props === void 0 ? void 0 : props.offset) {
|
|
34
|
+
const proportion = (0, utils_1.formatFloat)(props.offset / 24) * 100 + '%';
|
|
35
|
+
this.ctrl.addStyleObj({
|
|
36
36
|
marginLeft: proportion
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
if (
|
|
40
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
41
|
-
this.addStyleObj({
|
|
39
|
+
if (props === null || props === void 0 ? void 0 : props.pull) {
|
|
40
|
+
const proportion = (0, utils_1.formatFloat)(props.pull / 24) * 100 + '%';
|
|
41
|
+
this.ctrl.addStyleObj({
|
|
42
42
|
position: 'relative',
|
|
43
43
|
right: proportion
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
47
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
48
|
-
this.addStyleObj({
|
|
46
|
+
if (props === null || props === void 0 ? void 0 : props.push) {
|
|
47
|
+
const proportion = (0, utils_1.formatFloat)(props.push / 24) * 100 + '%';
|
|
48
|
+
this.ctrl.addStyleObj({
|
|
49
49
|
position: 'relative',
|
|
50
50
|
left: proportion
|
|
51
51
|
});
|
|
@@ -53,62 +53,65 @@ class TdCol extends ui_abstract_1.UI {
|
|
|
53
53
|
this.resize();
|
|
54
54
|
}
|
|
55
55
|
resize() {
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
56
|
+
console.log('this.screenWidth is ', this.screenWidth);
|
|
57
|
+
const props = this.props;
|
|
58
|
+
if (props === null || props === void 0 ? void 0 : props.xs) {
|
|
59
59
|
if (this.screenWidth < 768) {
|
|
60
60
|
// 超小屏幕(xs)
|
|
61
|
-
//
|
|
62
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
63
|
-
this.setStyleObj({
|
|
61
|
+
// 当前屏幕尺寸小于768px,执行xs断点下的操作
|
|
62
|
+
const proportion = (0, utils_1.formatFloat)(props.xs / 24) * 100 + '%';
|
|
63
|
+
this.ctrl.setStyleObj({
|
|
64
64
|
maxWidth: proportion,
|
|
65
65
|
flex: '0 0 ' + proportion
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
if (
|
|
70
|
-
if (this.screenWidth >= 768
|
|
69
|
+
if (props === null || props === void 0 ? void 0 : props.sm) {
|
|
70
|
+
if (this.screenWidth >= 768) {
|
|
71
|
+
// && this.screenWidth < 992
|
|
71
72
|
// 小屏幕(sm)
|
|
72
|
-
//
|
|
73
|
+
// 当前屏幕尺寸在768px至991px之间,执行md断点下的操作
|
|
73
74
|
// 设置你的值或执行相应JS代码
|
|
74
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
75
|
-
this.setStyleObj({
|
|
75
|
+
const proportion = (0, utils_1.formatFloat)(props.sm / 24) * 100 + '%';
|
|
76
|
+
this.ctrl.setStyleObj({
|
|
76
77
|
maxWidth: proportion,
|
|
77
78
|
flex: '0 0 ' + proportion
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
if (
|
|
82
|
-
if (this.screenWidth >= 992
|
|
82
|
+
if (props === null || props === void 0 ? void 0 : props.md) {
|
|
83
|
+
if (this.screenWidth >= 992) {
|
|
84
|
+
// && this.screenWidth < 1200
|
|
83
85
|
// 中屏幕(md)
|
|
84
|
-
//
|
|
86
|
+
// 当前屏幕尺寸在992px至1199px之间,执行lg断点下的操作
|
|
85
87
|
// 设置你的值或执行相应JS代码
|
|
86
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
87
|
-
this.setStyleObj({
|
|
88
|
+
const proportion = (0, utils_1.formatFloat)(props.md / 24) * 100 + '%';
|
|
89
|
+
this.ctrl.setStyleObj({
|
|
88
90
|
maxWidth: proportion,
|
|
89
91
|
flex: '0 0 ' + proportion
|
|
90
92
|
});
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
|
-
if (
|
|
94
|
-
if (this.screenWidth >= 1200
|
|
95
|
+
if (props === null || props === void 0 ? void 0 : props.lg) {
|
|
96
|
+
if (this.screenWidth >= 1200) {
|
|
97
|
+
// && this.screenWidth < 1920
|
|
95
98
|
// 大屏幕(lg)
|
|
96
|
-
//
|
|
99
|
+
// 当前屏幕尺寸在1200px至1920px之间,执行lg断点下的操作
|
|
97
100
|
// 设置你的值或执行相应JS代码
|
|
98
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
99
|
-
this.setStyleObj({
|
|
101
|
+
const proportion = (0, utils_1.formatFloat)(props.lg / 24) * 100 + '%';
|
|
102
|
+
this.ctrl.setStyleObj({
|
|
100
103
|
maxWidth: proportion,
|
|
101
104
|
flex: '0 0 ' + proportion
|
|
102
105
|
});
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
|
-
if (
|
|
108
|
+
if (props === null || props === void 0 ? void 0 : props.xl) {
|
|
106
109
|
if (this.screenWidth >= 1920) {
|
|
107
110
|
// 超大屏幕(xl及以上)
|
|
108
|
-
//
|
|
111
|
+
// 当前屏幕尺寸等于或大于1920px,执行xl断点下的操作
|
|
109
112
|
// 设置你的值或执行相应JS代码
|
|
110
|
-
const proportion = (0, utils_1.formatFloat)(
|
|
111
|
-
this.setStyleObj({
|
|
113
|
+
const proportion = (0, utils_1.formatFloat)(props.xl / 24) * 100 + '%';
|
|
114
|
+
this.ctrl.setStyleObj({
|
|
112
115
|
maxWidth: proportion,
|
|
113
116
|
flex: '0 0 ' + proportion
|
|
114
117
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ITdRow, ITdRowConfig } from './td-row.interface';
|
|
2
1
|
import { UI } from '../../../../ui/ui.abstract';
|
|
3
2
|
import { TdCol } from '../td-col/td-col.class';
|
|
3
|
+
import { ITdRow, ITdRowConfig } from './td-row.interface';
|
|
4
4
|
export declare class TdRow extends UI implements ITdRow {
|
|
5
5
|
className: 'TdRow';
|
|
6
|
+
props: ITdRowConfig;
|
|
6
7
|
childNodes: TdCol[];
|
|
7
8
|
gutter?: number;
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
9
|
+
constructor(params?: ITdRowConfig);
|
|
10
|
+
setup(): void;
|
|
10
11
|
}
|
|
@@ -7,63 +7,64 @@ class TdRow extends ui_abstract_1.UI {
|
|
|
7
7
|
// justify: string = 'start';
|
|
8
8
|
// align: string = 'top';
|
|
9
9
|
// tag: string = 'div';
|
|
10
|
-
constructor(
|
|
11
|
-
super();
|
|
10
|
+
constructor(params) {
|
|
11
|
+
super(params);
|
|
12
12
|
this.className = 'TdRow';
|
|
13
|
-
this.addStyleObj({
|
|
13
|
+
this.ctrl.addStyleObj({
|
|
14
14
|
display: 'flex',
|
|
15
15
|
flexWrap: 'wrap',
|
|
16
16
|
position: 'relative',
|
|
17
17
|
boxSizing: 'border-box'
|
|
18
18
|
});
|
|
19
19
|
this.childNodes = [];
|
|
20
|
-
this.
|
|
20
|
+
this.addChild(this.getSlotNode());
|
|
21
|
+
this.props = this.setParams(params);
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (
|
|
25
|
-
this.gutter =
|
|
26
|
-
this.addStyleObj({
|
|
27
|
-
marginLeft: `-${
|
|
28
|
-
marginRight: `-${
|
|
23
|
+
setup() {
|
|
24
|
+
const props = this.props;
|
|
25
|
+
if (props === null || props === void 0 ? void 0 : props.gutter) {
|
|
26
|
+
this.gutter = props.gutter;
|
|
27
|
+
this.ctrl.addStyleObj({
|
|
28
|
+
marginLeft: `-${props.gutter / 2}px`,
|
|
29
|
+
marginRight: `-${props.gutter / 2}px`
|
|
29
30
|
});
|
|
30
31
|
this.children.forEach((child) => {
|
|
31
32
|
if (child instanceof td_col_class_1.TdCol) {
|
|
32
|
-
if (
|
|
33
|
-
child.addStyleObj({
|
|
33
|
+
if (props.gutter) {
|
|
34
|
+
child.ctrl.addStyleObj({
|
|
34
35
|
boxSizing: 'border-box',
|
|
35
|
-
paddingLeft: `${
|
|
36
|
-
paddingRight: `${
|
|
36
|
+
paddingLeft: `${props.gutter / 2}px`,
|
|
37
|
+
paddingRight: `${props.gutter / 2}px`
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
if (
|
|
43
|
-
// this.setJustify(
|
|
44
|
-
switch (
|
|
43
|
+
if (props === null || props === void 0 ? void 0 : props.justify) {
|
|
44
|
+
// this.setJustify(props.justify);
|
|
45
|
+
switch (props.justify) {
|
|
45
46
|
case 'center':
|
|
46
|
-
this.addStyleObj({
|
|
47
|
+
this.ctrl.addStyleObj({
|
|
47
48
|
justifyContent: 'center'
|
|
48
49
|
});
|
|
49
50
|
break;
|
|
50
51
|
case 'end':
|
|
51
|
-
this.addStyleObj({
|
|
52
|
+
this.ctrl.addStyleObj({
|
|
52
53
|
justifyContent: 'flex-end'
|
|
53
54
|
});
|
|
54
55
|
break;
|
|
55
56
|
case 'space-between':
|
|
56
|
-
this.addStyleObj({
|
|
57
|
+
this.ctrl.addStyleObj({
|
|
57
58
|
justifyContent: 'space-between'
|
|
58
59
|
});
|
|
59
60
|
break;
|
|
60
61
|
case 'space-around':
|
|
61
|
-
this.addStyleObj({
|
|
62
|
+
this.ctrl.addStyleObj({
|
|
62
63
|
justifyContent: 'space-around'
|
|
63
64
|
});
|
|
64
65
|
break;
|
|
65
66
|
case 'space-evenly':
|
|
66
|
-
this.addStyleObj({
|
|
67
|
+
this.ctrl.addStyleObj({
|
|
67
68
|
justifyContent: 'space-evenly'
|
|
68
69
|
});
|
|
69
70
|
break;
|
|
@@ -71,26 +72,26 @@ class TdRow extends ui_abstract_1.UI {
|
|
|
71
72
|
break;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
if (
|
|
75
|
-
// this.setAlign(
|
|
76
|
-
switch (
|
|
75
|
+
if (props === null || props === void 0 ? void 0 : props.align) {
|
|
76
|
+
// this.setAlign(props.align);
|
|
77
|
+
switch (props.align) {
|
|
77
78
|
case 'top':
|
|
78
|
-
this.addStyleObj({
|
|
79
|
+
this.ctrl.addStyleObj({
|
|
79
80
|
alignItems: 'flex-start'
|
|
80
81
|
});
|
|
81
82
|
break;
|
|
82
83
|
case 'middle':
|
|
83
|
-
this.addStyleObj({
|
|
84
|
+
this.ctrl.addStyleObj({
|
|
84
85
|
alignItems: 'center'
|
|
85
86
|
});
|
|
86
87
|
break;
|
|
87
88
|
case 'bottom':
|
|
88
|
-
this.addStyleObj({
|
|
89
|
+
this.ctrl.addStyleObj({
|
|
89
90
|
alignItems: 'flex-end'
|
|
90
91
|
});
|
|
91
92
|
break;
|
|
92
93
|
case 'stretch':
|
|
93
|
-
this.addStyleObj({
|
|
94
|
+
this.ctrl.addStyleObj({
|
|
94
95
|
alignItems: 'stretch'
|
|
95
96
|
});
|
|
96
97
|
break;
|
|
@@ -12,7 +12,6 @@ export interface ITdRowConfig extends IUIConfig {
|
|
|
12
12
|
gutter?: number;
|
|
13
13
|
justify?: string;
|
|
14
14
|
align?: string;
|
|
15
|
-
tag?: string;
|
|
16
15
|
}
|
|
17
16
|
export declare const RowJustify: readonly ["start", "center", "end", "space-around", "space-between", "space-evenly"];
|
|
18
17
|
export declare const RowAlign: readonly ["top", "middle", "bottom"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UI } from '../../../ui/ui.abstract';
|
|
2
|
-
import { TdIcon } from '../td-icon/td-icon.class';
|
|
3
2
|
import { ITdLink, ITdLinkConfig } from './td-link.interface';
|
|
4
3
|
export declare class TdLink extends UI implements ITdLink {
|
|
5
4
|
className: 'TdLink';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
5
|
+
props: ITdLinkConfig;
|
|
6
|
+
private inner?;
|
|
7
|
+
constructor(params: ITdLinkConfig);
|
|
8
|
+
setup(): void;
|
|
10
9
|
initEvents(): void;
|
|
10
|
+
handleClick(event: MouseEvent): void;
|
|
11
11
|
}
|
|
@@ -5,101 +5,99 @@ const framework_1 = require("@type-dom/framework");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
6
|
const td_link_style_1 = require("../td-link/td-link.style");
|
|
7
7
|
class TdLink extends ui_abstract_1.UI {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
8
|
+
constructor(params) {
|
|
9
|
+
super(params, 'a');
|
|
10
10
|
this.className = 'TdLink';
|
|
11
|
-
|
|
12
|
-
this.
|
|
11
|
+
(0, td_link_style_1.useType)(params);
|
|
12
|
+
this.ctrl.addStyleObj(td_link_style_1.$linkStyle);
|
|
13
|
+
this.props = this.setParams(params);
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (config === null || config === void 0 ? void 0 : config.disabled) {
|
|
28
|
-
this.addAttrObj({
|
|
29
|
-
disabled: config.disabled
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
if (config === null || config === void 0 ? void 0 : config.type) {
|
|
33
|
-
if (config === null || config === void 0 ? void 0 : config.disabled) {
|
|
34
|
-
this.addStyleObj(td_link_style_1.$linkStateColors[config.type].disabled);
|
|
15
|
+
// override beforeCreate() {
|
|
16
|
+
// this.ctrl.addStyleObj($linkStyle);
|
|
17
|
+
// }
|
|
18
|
+
setup() {
|
|
19
|
+
const props = this.props;
|
|
20
|
+
this.ctrl.addAttrObj({
|
|
21
|
+
href: props === null || props === void 0 ? void 0 : props.href,
|
|
22
|
+
target: props === null || props === void 0 ? void 0 : props.target,
|
|
23
|
+
disabled: props === null || props === void 0 ? void 0 : props.disabled
|
|
24
|
+
});
|
|
25
|
+
if (props === null || props === void 0 ? void 0 : props.type) {
|
|
26
|
+
if (props === null || props === void 0 ? void 0 : props.disabled) {
|
|
27
|
+
this.ctrl.addStyleObj(td_link_style_1.$linkStateColors[props.type].disabled);
|
|
35
28
|
}
|
|
36
29
|
else {
|
|
37
|
-
this.addStyleObj(td_link_style_1.$linkStateColors[
|
|
30
|
+
this.ctrl.addStyleObj(td_link_style_1.$linkStateColors[props.type].default);
|
|
38
31
|
}
|
|
39
32
|
}
|
|
40
33
|
else {
|
|
41
|
-
this.addStyleObj(td_link_style_1.$linkStateColors.default.default);
|
|
34
|
+
this.ctrl.addStyleObj(td_link_style_1.$linkStateColors.default.default);
|
|
42
35
|
}
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
// 插入到前面
|
|
46
|
-
this.unshiftChild(config.icon);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.addChild(config.icon);
|
|
50
|
-
}
|
|
36
|
+
if (props === null || props === void 0 ? void 0 : props.icon) {
|
|
37
|
+
this.unshiftChild(props.icon);
|
|
51
38
|
}
|
|
39
|
+
this.inner = new framework_1.Span({
|
|
40
|
+
name: 'inner',
|
|
41
|
+
styleObj: td_link_style_1.$linkInnerStyle
|
|
42
|
+
});
|
|
43
|
+
this.inner.addChild(this.getSlotNode());
|
|
44
|
+
this.addChild(this.inner);
|
|
52
45
|
}
|
|
53
46
|
initEvents() {
|
|
54
47
|
this.addEvents({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
click: (evt) => {
|
|
49
|
+
this.handleClick(evt);
|
|
50
|
+
},
|
|
51
|
+
mouseenter: () => {
|
|
52
|
+
if (this.props.type) {
|
|
53
|
+
if (this.props.disabled) {
|
|
54
|
+
this.ctrl.setStyleObj({
|
|
55
|
+
cursor: 'notAllowed'
|
|
61
56
|
});
|
|
62
57
|
}
|
|
63
58
|
else {
|
|
64
|
-
this.setStyleObj(td_link_style_1.$linkStateColors[
|
|
59
|
+
this.ctrl.setStyleObj(td_link_style_1.$linkStateColors[this.props.type].hover);
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
62
|
else {
|
|
68
|
-
this.setStyleObj(td_link_style_1.$linkStateColors.default.hover);
|
|
63
|
+
this.ctrl.setStyleObj(td_link_style_1.$linkStateColors.default.hover);
|
|
69
64
|
}
|
|
70
|
-
if (
|
|
71
|
-
|
|
65
|
+
if (this.props.underline === false) {
|
|
66
|
+
// 设置 false 的情况下,不显示下划线
|
|
67
|
+
this.ctrl.setStyleObj({
|
|
72
68
|
textDecoration: 'none'
|
|
73
69
|
});
|
|
74
70
|
}
|
|
75
71
|
else {
|
|
76
72
|
// 1. 默认显示下划线
|
|
77
73
|
// 2. 默认显示下划线,如果设置了 underline 为 true,则显示下划线
|
|
78
|
-
this.setStyleObj({
|
|
74
|
+
this.ctrl.setStyleObj({
|
|
79
75
|
textDecoration: 'underline'
|
|
80
76
|
});
|
|
81
77
|
}
|
|
82
78
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this.setStyleObj({
|
|
79
|
+
mouseleave: (evt) => {
|
|
80
|
+
this.ctrl.setStyleObj({
|
|
86
81
|
textDecoration: 'none'
|
|
87
82
|
});
|
|
88
|
-
if (
|
|
89
|
-
this.removeStyleObj(td_link_style_1.$linkStateColors[
|
|
90
|
-
if (
|
|
83
|
+
if (this.props.type) {
|
|
84
|
+
this.ctrl.removeStyleObj(td_link_style_1.$linkStateColors[this.props.type].hover);
|
|
85
|
+
if (this.props.disabled) {
|
|
91
86
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
92
|
-
this.setStyleObj(td_link_style_1.$linkStateColors[
|
|
87
|
+
this.ctrl.setStyleObj(td_link_style_1.$linkStateColors[this.props.type].disabled);
|
|
93
88
|
}
|
|
94
89
|
else {
|
|
95
|
-
this.setStyleObj(td_link_style_1.$linkStateColors[
|
|
90
|
+
this.ctrl.setStyleObj(td_link_style_1.$linkStateColors[this.props.type].default);
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
else {
|
|
99
|
-
this.removeStyleObj(td_link_style_1.$linkStateColors.default.hover);
|
|
94
|
+
this.ctrl.removeStyleObj(td_link_style_1.$linkStateColors.default.hover);
|
|
100
95
|
}
|
|
101
96
|
}
|
|
102
97
|
});
|
|
103
98
|
}
|
|
99
|
+
handleClick(event) {
|
|
100
|
+
this.emit('click', event);
|
|
101
|
+
}
|
|
104
102
|
}
|
|
105
103
|
exports.TdLink = TdLink;
|