@type-dom/ui 0.0.4 → 0.0.6
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 +44 -45
- package/package.json +4 -3
- package/src/aria.d.ts +15 -0
- 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 +28 -10
- 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 +40 -10
- 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 +13 -4
- 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 +18 -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.d.ts +2 -2
- 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/widget/utils.js +9 -10
- 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 +13 -14
- 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 +17 -3
- 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
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImgEmpty = void 0;
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
const td_empty_style_1 = require("./td-empty.style");
|
|
6
|
+
class ImgEmpty extends framework_1.TypeSvgSvg {
|
|
7
|
+
constructor(params) {
|
|
8
|
+
super();
|
|
9
|
+
this.className = 'ImgEmpty';
|
|
10
|
+
this.ctrl.addAttrObj({
|
|
11
|
+
name: 'image-empty',
|
|
12
|
+
viewBox: '0 0 79 86'
|
|
13
|
+
});
|
|
14
|
+
(params === null || params === void 0 ? void 0 : params.styleObj) && this.ctrl.addStyleObj(params.styleObj);
|
|
15
|
+
const id = 111;
|
|
16
|
+
this.addChild(new framework_1.SvgDefs({
|
|
17
|
+
childNodes: [
|
|
18
|
+
new framework_1.SvgLinearGradient({
|
|
19
|
+
attrObj: {
|
|
20
|
+
id: `linearGradient-1-` + id,
|
|
21
|
+
x1: '38.8503086%',
|
|
22
|
+
y1: '0%',
|
|
23
|
+
x2: '61.1496914%',
|
|
24
|
+
y2: '100%'
|
|
25
|
+
},
|
|
26
|
+
childNodes: [
|
|
27
|
+
new framework_1.SvgStop({
|
|
28
|
+
attrObj: {
|
|
29
|
+
stopColor: td_empty_style_1.$empty['fill-color-1'],
|
|
30
|
+
offset: '0%'
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
new framework_1.SvgStop({
|
|
34
|
+
attrObj: {
|
|
35
|
+
stopColor: td_empty_style_1.$empty['fill-color-4'],
|
|
36
|
+
offset: '100%'
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
}),
|
|
41
|
+
new framework_1.SvgLinearGradient({
|
|
42
|
+
attrObj: {
|
|
43
|
+
id: `linearGradient-2-` + id,
|
|
44
|
+
x1: '0%',
|
|
45
|
+
y1: '9.5%',
|
|
46
|
+
x2: '100%',
|
|
47
|
+
y2: '90.5%'
|
|
48
|
+
},
|
|
49
|
+
childNodes: [
|
|
50
|
+
new framework_1.SvgStop({
|
|
51
|
+
attrObj: {
|
|
52
|
+
stopColor: td_empty_style_1.$empty['fill-color-1'],
|
|
53
|
+
offset: '0%'
|
|
54
|
+
}
|
|
55
|
+
}),
|
|
56
|
+
new framework_1.SvgStop({
|
|
57
|
+
attrObj: {
|
|
58
|
+
stopColor: td_empty_style_1.$empty['fill-color-6'],
|
|
59
|
+
offset: '100%'
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
new framework_1.SvgRect({
|
|
65
|
+
attrObj: {
|
|
66
|
+
id: `path-3-` + id,
|
|
67
|
+
x: 0,
|
|
68
|
+
y: 0,
|
|
69
|
+
width: 17,
|
|
70
|
+
height: 36
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}));
|
|
75
|
+
this.addChild(new framework_1.SvgG({
|
|
76
|
+
attrObj: {
|
|
77
|
+
id: 'Illustrations',
|
|
78
|
+
stroke: 'none',
|
|
79
|
+
strokeWidth: '1',
|
|
80
|
+
fill: 'none',
|
|
81
|
+
fillRule: 'evenodd'
|
|
82
|
+
},
|
|
83
|
+
childNodes: [
|
|
84
|
+
new framework_1.SvgG({
|
|
85
|
+
attrObj: {
|
|
86
|
+
id: 'B-type',
|
|
87
|
+
transform: 'translate(-1268.000000, -535.000000)'
|
|
88
|
+
},
|
|
89
|
+
childNodes: [
|
|
90
|
+
new framework_1.SvgG({
|
|
91
|
+
attrObj: {
|
|
92
|
+
id: 'Group-2',
|
|
93
|
+
transform: 'translate(1268.000000, 535.000000)'
|
|
94
|
+
},
|
|
95
|
+
childNodes: [
|
|
96
|
+
new framework_1.SvgPath({
|
|
97
|
+
attrObj: {
|
|
98
|
+
id: 'Oval-Copy-2',
|
|
99
|
+
d: 'M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z',
|
|
100
|
+
fill: td_empty_style_1.$empty['fill-color-3']
|
|
101
|
+
}
|
|
102
|
+
}),
|
|
103
|
+
new framework_1.SvgPolygon({
|
|
104
|
+
attrObj: {
|
|
105
|
+
id: 'Rectangle-Copy-14',
|
|
106
|
+
fill: td_empty_style_1.$empty['fill-color-7'],
|
|
107
|
+
transform: 'translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ',
|
|
108
|
+
points: '13 58 53 58 42 45 2 45'
|
|
109
|
+
}
|
|
110
|
+
}),
|
|
111
|
+
new framework_1.SvgG({
|
|
112
|
+
attrObj: {
|
|
113
|
+
id: 'Group-Copy',
|
|
114
|
+
transform: 'translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)'
|
|
115
|
+
},
|
|
116
|
+
childNodes: [
|
|
117
|
+
new framework_1.SvgPolygon({
|
|
118
|
+
attrObj: {
|
|
119
|
+
id: 'Rectangle-Copy-10',
|
|
120
|
+
fill: td_empty_style_1.$empty['fill-color-7'],
|
|
121
|
+
transform: 'translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ',
|
|
122
|
+
points: '2.84078316e-14 3 18 3 23 7 5 7'
|
|
123
|
+
}
|
|
124
|
+
}),
|
|
125
|
+
new framework_1.SvgPolygon({
|
|
126
|
+
attrObj: {
|
|
127
|
+
id: 'Rectangle-Copy-11',
|
|
128
|
+
fill: td_empty_style_1.$empty['fill-color-5'],
|
|
129
|
+
points: '-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43'
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
new framework_1.SvgRect({
|
|
133
|
+
attrObj: {
|
|
134
|
+
id: 'Rectangle-Copy-12',
|
|
135
|
+
fill: 'url(#linearGradient-1-' + id + ')',
|
|
136
|
+
transform: 'translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ',
|
|
137
|
+
x: 38,
|
|
138
|
+
y: 7,
|
|
139
|
+
width: 17,
|
|
140
|
+
height: 36
|
|
141
|
+
}
|
|
142
|
+
}),
|
|
143
|
+
new framework_1.SvgPolygon({
|
|
144
|
+
attrObj: {
|
|
145
|
+
id: 'Rectangle-Copy-13',
|
|
146
|
+
fill: td_empty_style_1.$empty['fill-color-2'],
|
|
147
|
+
transform: 'translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ',
|
|
148
|
+
points: '24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12'
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
]
|
|
152
|
+
}),
|
|
153
|
+
new framework_1.SvgRect({
|
|
154
|
+
attrObj: {
|
|
155
|
+
id: 'Rectangle-Copy-15',
|
|
156
|
+
fill: 'url(#linearGradient-2-' + id + ')',
|
|
157
|
+
x: 13,
|
|
158
|
+
y: 45,
|
|
159
|
+
width: 40,
|
|
160
|
+
height: 36
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
new framework_1.SvgG({
|
|
164
|
+
attrObj: {
|
|
165
|
+
id: 'Rectangle-Copy-17', transform: 'translate(53.000000, 45.000000)'
|
|
166
|
+
},
|
|
167
|
+
childNodes: [
|
|
168
|
+
new framework_1.SvgUse({
|
|
169
|
+
attrObj: {
|
|
170
|
+
id: 'Mask',
|
|
171
|
+
fill: td_empty_style_1.$empty['fill-color-8'],
|
|
172
|
+
transform: 'translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ',
|
|
173
|
+
xlinkHref: '#path-3-' + id
|
|
174
|
+
}
|
|
175
|
+
}),
|
|
176
|
+
new framework_1.SvgPolygon({
|
|
177
|
+
attrObj: {
|
|
178
|
+
id: 'Rectangle-Copy',
|
|
179
|
+
fill: td_empty_style_1.$empty['fill-color-9'],
|
|
180
|
+
mask: 'url(#mask-4-' + id + ')',
|
|
181
|
+
transform: 'translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ',
|
|
182
|
+
points: '7 0 24 0 20 18 7 16.5'
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
]
|
|
186
|
+
}),
|
|
187
|
+
new framework_1.SvgPolygon({
|
|
188
|
+
attrObj: {
|
|
189
|
+
id: 'Rectangle-Copy-18',
|
|
190
|
+
fill: td_empty_style_1.$empty['fill-color-2'],
|
|
191
|
+
transform: 'translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ',
|
|
192
|
+
points: '62 45 79 45 70 58 53 58'
|
|
193
|
+
}
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
})
|
|
197
|
+
]
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
}));
|
|
201
|
+
// this.setParams(params);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
exports.ImgEmpty = ImgEmpty;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IStyle } from '@type-dom/css-type';
|
|
2
|
+
import { UI } from '../../../ui/ui.abstract';
|
|
3
|
+
import { ITdEmpty, ITdEmptyConfig } from './td-empty.interface';
|
|
4
|
+
export declare class TdEmpty extends UI implements ITdEmpty {
|
|
5
|
+
className: 'TdEmpty';
|
|
6
|
+
props: ITdEmptyConfig;
|
|
7
|
+
private image;
|
|
8
|
+
private description;
|
|
9
|
+
private bottom?;
|
|
10
|
+
constructor(params?: ITdEmptyConfig);
|
|
11
|
+
get emptyDescription(): string;
|
|
12
|
+
get imageStyle(): IStyle;
|
|
13
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TdEmpty = void 0;
|
|
4
|
+
const utils_1 = require("@type-dom/utils");
|
|
5
|
+
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
|
+
const framework_1 = require("@type-dom/framework");
|
|
7
|
+
const td_empty_style_1 = require("./td-empty.style");
|
|
8
|
+
const img_empty_class_1 = require("./img-empty.class");
|
|
9
|
+
class TdEmpty extends ui_abstract_1.UI {
|
|
10
|
+
constructor(params) {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
super(params);
|
|
13
|
+
this.className = 'TdEmpty';
|
|
14
|
+
this.ctrl.addAttrName('td-empty');
|
|
15
|
+
this.ctrl.addStyleObj(td_empty_style_1.$emptyStyle);
|
|
16
|
+
this.image = new framework_1.Div({
|
|
17
|
+
name: 'image',
|
|
18
|
+
styleObj: td_empty_style_1.$emptyImageStyle
|
|
19
|
+
});
|
|
20
|
+
if (params === null || params === void 0 ? void 0 : params.imageSize) {
|
|
21
|
+
this.image.ctrl.addStyleObj(this.imageStyle);
|
|
22
|
+
}
|
|
23
|
+
this.addChild(this.image);
|
|
24
|
+
if (params === null || params === void 0 ? void 0 : params.image) {
|
|
25
|
+
this.image.addChild(new framework_1.Img({
|
|
26
|
+
styleObj: td_empty_style_1.$emptyImageImgStyle,
|
|
27
|
+
attrObj: {
|
|
28
|
+
src: params.image,
|
|
29
|
+
},
|
|
30
|
+
events: {
|
|
31
|
+
dragstart: () => {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
const imageSlot = this.getSlotNode('image');
|
|
39
|
+
this.image.addChild(imageSlot);
|
|
40
|
+
if (!((_a = params === null || params === void 0 ? void 0 : params.slots) === null || _a === void 0 ? void 0 : _a.image)) {
|
|
41
|
+
imageSlot.addSlot(new img_empty_class_1.ImgEmpty({
|
|
42
|
+
styleObj: td_empty_style_1.$emptyImageSvgStyle,
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
this.description = new framework_1.Div({
|
|
47
|
+
name: 'description',
|
|
48
|
+
styleObj: td_empty_style_1.$emptyDescriptionStyle
|
|
49
|
+
});
|
|
50
|
+
this.addChild(this.description);
|
|
51
|
+
if ((_b = params === null || params === void 0 ? void 0 : params.slots) === null || _b === void 0 ? void 0 : _b.description) {
|
|
52
|
+
this.description.slotChild(params.slots.description);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.description.addChild(new framework_1.P({
|
|
56
|
+
text: this.emptyDescription,
|
|
57
|
+
styleObj: td_empty_style_1.$emptyDescriptionPStyle,
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
if (params === null || params === void 0 ? void 0 : params.slot) {
|
|
61
|
+
this.bottom = new framework_1.Div({
|
|
62
|
+
name: 'bottom',
|
|
63
|
+
styleObj: td_empty_style_1.$emptyBottomStyle,
|
|
64
|
+
});
|
|
65
|
+
this.addChild(this.bottom);
|
|
66
|
+
this.bottom.slotChild(params.slot);
|
|
67
|
+
}
|
|
68
|
+
this.props = this.setParams(params);
|
|
69
|
+
}
|
|
70
|
+
get emptyDescription() {
|
|
71
|
+
return this.props.description || 'No Data'; // || t('el.table.emptyText')
|
|
72
|
+
}
|
|
73
|
+
get imageStyle() {
|
|
74
|
+
return { width: (0, utils_1.addUnit)(this.props.imageSize) };
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.TdEmpty = TdEmpty;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
2
|
+
import { TypeElement } from '@type-dom/framework';
|
|
3
|
+
export interface ITdEmpty extends IUI {
|
|
4
|
+
className: 'TdEmpty';
|
|
5
|
+
}
|
|
6
|
+
export interface ITdEmptyConfig extends IUIConfig {
|
|
7
|
+
/**
|
|
8
|
+
* @description image URL of empty
|
|
9
|
+
* default: ''
|
|
10
|
+
*/
|
|
11
|
+
image?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description image size (width) of empty
|
|
14
|
+
*/
|
|
15
|
+
imageSize?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @description description of empty
|
|
18
|
+
* default: ''
|
|
19
|
+
*/
|
|
20
|
+
description?: string;
|
|
21
|
+
slots?: {
|
|
22
|
+
image?: TypeElement | TypeElement[];
|
|
23
|
+
description?: TypeElement | TypeElement[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IStyle } from '@type-dom/css-type';
|
|
2
|
+
export declare const $empty: {
|
|
3
|
+
padding: string;
|
|
4
|
+
imageWidth: string;
|
|
5
|
+
descriptionMarginTop: string;
|
|
6
|
+
bottomMarginTop: string;
|
|
7
|
+
'fill-color-0': string;
|
|
8
|
+
'fill-color-1': string;
|
|
9
|
+
'fill-color-2': string;
|
|
10
|
+
'fill-color-3': string;
|
|
11
|
+
'fill-color-4': string;
|
|
12
|
+
'fill-color-5': string;
|
|
13
|
+
'fill-color-6': string;
|
|
14
|
+
'fill-color-7': string;
|
|
15
|
+
'fill-color-8': string;
|
|
16
|
+
'fill-color-9': string;
|
|
17
|
+
};
|
|
18
|
+
export declare const $emptyStyle: IStyle;
|
|
19
|
+
export declare const $emptyImageStyle: IStyle;
|
|
20
|
+
export declare const $emptyImageImgStyle: IStyle;
|
|
21
|
+
export declare const $emptyImageSvgStyle: IStyle;
|
|
22
|
+
export declare const $emptyDescriptionStyle: IStyle;
|
|
23
|
+
export declare const $emptyDescriptionPStyle: IStyle;
|
|
24
|
+
export declare const $emptyBottomStyle: IStyle;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Empty
|
|
3
|
+
// css3 var in packages/theme-chalk/src/empty.scss
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.$emptyBottomStyle = exports.$emptyDescriptionPStyle = exports.$emptyDescriptionStyle = exports.$emptyImageSvgStyle = exports.$emptyImageImgStyle = exports.$emptyImageStyle = exports.$emptyStyle = exports.$empty = void 0;
|
|
6
|
+
const var_1 = require("../../../styles/var");
|
|
7
|
+
exports.$empty = {
|
|
8
|
+
padding: '40px 0',
|
|
9
|
+
imageWidth: '160px',
|
|
10
|
+
descriptionMarginTop: '20px',
|
|
11
|
+
bottomMarginTop: '20px',
|
|
12
|
+
'fill-color-0': var_1.$colorWhite,
|
|
13
|
+
'fill-color-1': '#fcfcfd',
|
|
14
|
+
'fill-color-2': '#f8f9fb',
|
|
15
|
+
'fill-color-3': '#f7f8fc',
|
|
16
|
+
'fill-color-4': '#eeeff3',
|
|
17
|
+
'fill-color-5': '#edeef2',
|
|
18
|
+
'fill-color-6': '#e9ebef',
|
|
19
|
+
'fill-color-7': '#e5e7e9',
|
|
20
|
+
'fill-color-8': '#e0e3e9',
|
|
21
|
+
'fill-color-9': '#d5d7de',
|
|
22
|
+
};
|
|
23
|
+
exports.$emptyStyle = {
|
|
24
|
+
display: 'flex',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
flexDirection: 'column',
|
|
28
|
+
textAlign: 'center',
|
|
29
|
+
boxSizing: 'border-box',
|
|
30
|
+
padding: exports.$empty.padding,
|
|
31
|
+
};
|
|
32
|
+
exports.$emptyImageStyle = {
|
|
33
|
+
// width: getCssVar('empty-image-width');
|
|
34
|
+
width: exports.$empty.imageWidth,
|
|
35
|
+
};
|
|
36
|
+
exports.$emptyImageImgStyle = {
|
|
37
|
+
userSelect: 'none',
|
|
38
|
+
width: '100%',
|
|
39
|
+
height: '100%',
|
|
40
|
+
verticalAlign: 'top',
|
|
41
|
+
objectFit: 'contain',
|
|
42
|
+
};
|
|
43
|
+
exports.$emptyImageSvgStyle = {
|
|
44
|
+
// color: getCssVar('svg-monochrome-grey'),
|
|
45
|
+
color: var_1.$svgMonochromeGrey,
|
|
46
|
+
fill: 'currentColor',
|
|
47
|
+
width: '100%',
|
|
48
|
+
height: '100%',
|
|
49
|
+
verticalAlign: 'top',
|
|
50
|
+
};
|
|
51
|
+
exports.$emptyDescriptionStyle = {
|
|
52
|
+
// marginTop: getCssVar('empty-description-margin-top');
|
|
53
|
+
marginTop: exports.$empty.descriptionMarginTop,
|
|
54
|
+
};
|
|
55
|
+
exports.$emptyDescriptionPStyle = {
|
|
56
|
+
margin: 0,
|
|
57
|
+
// font-size: getCssVar('font-size', 'base');
|
|
58
|
+
fontSize: var_1.$fontSizes.base,
|
|
59
|
+
// color: getCssVar('text-color', 'secondary');
|
|
60
|
+
color: var_1.$textColor.secondary,
|
|
61
|
+
};
|
|
62
|
+
exports.$emptyBottomStyle = {
|
|
63
|
+
// margin-top: getCssVar('empty-bottom-margin-top');
|
|
64
|
+
marginTop: exports.$empty.bottomMarginTop,
|
|
65
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SlotNode } from '@type-dom/framework';
|
|
2
|
+
import { UI } from '../../../ui/ui.abstract';
|
|
3
|
+
import { ITdImage, ITdImageConfig } from './td-image.interface';
|
|
4
|
+
export declare class TdImage extends UI implements ITdImage {
|
|
5
|
+
className: 'TdImage';
|
|
6
|
+
props: ITdImageConfig;
|
|
7
|
+
private img?;
|
|
8
|
+
private hasLoadError;
|
|
9
|
+
private errorSlot?;
|
|
10
|
+
placeholderSlot?: SlotNode;
|
|
11
|
+
viewerSlot?: SlotNode;
|
|
12
|
+
constructor(params?: ITdImageConfig);
|
|
13
|
+
setup(): void;
|
|
14
|
+
setSrc(src: string): void;
|
|
15
|
+
handleError(e: Event): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TdImage = void 0;
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
|
+
const td_image_style_1 = require("./td-image.style");
|
|
7
|
+
class TdImage extends ui_abstract_1.UI {
|
|
8
|
+
constructor(params) {
|
|
9
|
+
super(params);
|
|
10
|
+
this.className = 'TdImage';
|
|
11
|
+
this.ctrl.addAttrName('td-image');
|
|
12
|
+
this.ctrl.addAttrObj({
|
|
13
|
+
ref: 'container'
|
|
14
|
+
});
|
|
15
|
+
this.ctrl.addStyleObj({
|
|
16
|
+
display: 'inline-flex',
|
|
17
|
+
justifyContent: 'center',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
boxSizing: 'border-box',
|
|
20
|
+
textAlign: 'center',
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
// color: getCssVar('image', 'text-color'),
|
|
23
|
+
color: td_image_style_1.$image.textColor,
|
|
24
|
+
// background: getCssVar('image', 'bg-color'),
|
|
25
|
+
background: td_image_style_1.$image.bgColor,
|
|
26
|
+
// width: getCssVar('image', 'size'),
|
|
27
|
+
width: td_image_style_1.$size.width,
|
|
28
|
+
// height: getCssVar('image', 'size'),
|
|
29
|
+
height: td_image_style_1.$size.height,
|
|
30
|
+
// font-size: getCssVar('image', 'text-size'),
|
|
31
|
+
fontSize: td_image_style_1.$image.textSize
|
|
32
|
+
});
|
|
33
|
+
this.hasLoadError = false;
|
|
34
|
+
// todo preview
|
|
35
|
+
this.props = this.setParams(params);
|
|
36
|
+
}
|
|
37
|
+
setup() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
const props = this.props;
|
|
40
|
+
if (this.hasLoadError) {
|
|
41
|
+
this.errorSlot = new framework_1.SlotNode('error');
|
|
42
|
+
this.addChild(this.errorSlot);
|
|
43
|
+
if ((_a = props === null || props === void 0 ? void 0 : props.slots) === null || _a === void 0 ? void 0 : _a.error) {
|
|
44
|
+
this.errorSlot.addSlot(props.slots.error);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.errorSlot.addSlot(new framework_1.Div({
|
|
48
|
+
name: 'error', // t('el.image.error')
|
|
49
|
+
text: 'error',
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
// todo
|
|
55
|
+
}
|
|
56
|
+
if ((props === null || props === void 0 ? void 0 : props.src) && !this.hasLoadError) {
|
|
57
|
+
this.img = new framework_1.Img({
|
|
58
|
+
name: 'image',
|
|
59
|
+
styleObj: {
|
|
60
|
+
display: 'block',
|
|
61
|
+
width: '100%',
|
|
62
|
+
height: '100%'
|
|
63
|
+
},
|
|
64
|
+
attrObj: {
|
|
65
|
+
src: props.src
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
this.addChild(this.img);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
if (props === null || props === void 0 ? void 0 : props.slot) {
|
|
72
|
+
this.slotChild(props.slot);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const fit = (props === null || props === void 0 ? void 0 : props.fit) || 'cover';
|
|
76
|
+
(_b = this.img) === null || _b === void 0 ? void 0 : _b.ctrl.addStyleObj({
|
|
77
|
+
objectFit: fit
|
|
78
|
+
});
|
|
79
|
+
super.setParams(props);
|
|
80
|
+
}
|
|
81
|
+
// todo 监听 src 改变
|
|
82
|
+
setSrc(src) {
|
|
83
|
+
if (this.props.src) {
|
|
84
|
+
this.props.src = src;
|
|
85
|
+
}
|
|
86
|
+
if (this.props.src !== src) {
|
|
87
|
+
this.hasLoadError = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
handleError(e) {
|
|
91
|
+
this.hasLoadError = true;
|
|
92
|
+
// emit('error', e)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.TdImage = TdImage;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
2
|
+
export interface ITdImage extends IUI {
|
|
3
|
+
className: 'TdImage';
|
|
4
|
+
}
|
|
5
|
+
export interface ITdImageConfig extends IUIConfig {
|
|
6
|
+
/**
|
|
7
|
+
* @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.
|
|
8
|
+
*/
|
|
9
|
+
hideOnClickModal?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @description image source, same as native.
|
|
12
|
+
* default: '',
|
|
13
|
+
*/
|
|
14
|
+
src?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
|
|
17
|
+
* default: '',
|
|
18
|
+
*/
|
|
19
|
+
fit?: '' | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
20
|
+
/**
|
|
21
|
+
* @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)
|
|
22
|
+
*/
|
|
23
|
+
loading?: 'eager' | 'lazy';
|
|
24
|
+
/**
|
|
25
|
+
* @description whether to use lazy load.
|
|
26
|
+
*/
|
|
27
|
+
lazy?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @description the container to add scroll listener when using lazy load.
|
|
30
|
+
*/
|
|
31
|
+
scrollContainer?: HTMLElement;
|
|
32
|
+
/**
|
|
33
|
+
* @description allow big image preview.
|
|
34
|
+
*/
|
|
35
|
+
previewSrcList?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.
|
|
38
|
+
*/
|
|
39
|
+
previewTeleported?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @description set image preview z-index.
|
|
42
|
+
*/
|
|
43
|
+
zIndex?: number;
|
|
44
|
+
/**
|
|
45
|
+
* @description initial preview image index, less than the length of `url-list`.
|
|
46
|
+
* default: 0,
|
|
47
|
+
*/
|
|
48
|
+
initialIndex?: number;
|
|
49
|
+
/**
|
|
50
|
+
* @description whether the viewer preview is infinite.
|
|
51
|
+
* default: true,
|
|
52
|
+
*/
|
|
53
|
+
infinite?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @description whether the image-viewer can be closed by pressing ESC.
|
|
56
|
+
* default: true,
|
|
57
|
+
*/
|
|
58
|
+
closeOnPressEscape?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* @description the zoom rate of the image viewer zoom event
|
|
61
|
+
* default: 1.2,
|
|
62
|
+
*/
|
|
63
|
+
zoomRate?: number;
|
|
64
|
+
/**
|
|
65
|
+
* @description the min scale of the image viewer zoom event.
|
|
66
|
+
* default: 0.2,
|
|
67
|
+
*/
|
|
68
|
+
minScale?: number;
|
|
69
|
+
/**
|
|
70
|
+
* @description the max scale of the image viewer zoom event.
|
|
71
|
+
* default: 7,
|
|
72
|
+
*/
|
|
73
|
+
maxScale?: number;
|
|
74
|
+
/**
|
|
75
|
+
* @description set HTML attribute: crossorigin.
|
|
76
|
+
*/
|
|
77
|
+
crossorigin?: 'anonymous' | 'use-credentials' | '';
|
|
78
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.$size = exports.$image = void 0;
|
|
4
|
+
const var_1 = require("../../../styles/var");
|
|
5
|
+
exports.$image = {
|
|
6
|
+
// 'text-color': getCssVar('color-white'),
|
|
7
|
+
textColor: var_1.$colorWhite,
|
|
8
|
+
// 'bg-color': getCssVar('text-color', 'disabled'),
|
|
9
|
+
bgColor: var_1.$textColor.disabled,
|
|
10
|
+
textSize: '14px',
|
|
11
|
+
iconSize: '18px',
|
|
12
|
+
// 'border-radius': getCssVar('border-radius-base'),
|
|
13
|
+
borderRadius: var_1.$borderRadius.base
|
|
14
|
+
};
|
|
15
|
+
exports.$size = {
|
|
16
|
+
width: '100%',
|
|
17
|
+
height: '100%'
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wheelHandler(e: WheelEvent): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wheelHandler = wheelHandler;
|
|
4
|
+
function wheelHandler(e) {
|
|
5
|
+
if (!e.ctrlKey)
|
|
6
|
+
return false;
|
|
7
|
+
if (e.deltaY < 0) {
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
else if (e.deltaY > 0) {
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|