@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,36 @@
|
|
|
1
|
+
import { IStyle } from '@type-dom/css-type';
|
|
2
|
+
import { ITdMessageBoxConfig } from './td-message-box.interface';
|
|
3
|
+
export declare const $messageBox: {
|
|
4
|
+
titleColor: string;
|
|
5
|
+
width: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
boxShadow: {
|
|
8
|
+
'': string;
|
|
9
|
+
default: string;
|
|
10
|
+
light: string;
|
|
11
|
+
lighter: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
};
|
|
14
|
+
fontSize: string;
|
|
15
|
+
contentFontSize: string;
|
|
16
|
+
contentColor: string;
|
|
17
|
+
errorFontSize: string;
|
|
18
|
+
paddingPrimary: string;
|
|
19
|
+
fontLineHeight: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const $messageBoxStyle: IStyle;
|
|
22
|
+
export declare const $messageBoxOverlayStyle: IStyle;
|
|
23
|
+
export declare const $messageBoxHeaderStyle: IStyle;
|
|
24
|
+
export declare const $messageBoxHeaderCloseStyle: IStyle;
|
|
25
|
+
export declare const $messageBoxTitleStyle: IStyle;
|
|
26
|
+
export declare const $messageBoxHeaderBtnStyle: IStyle;
|
|
27
|
+
export declare const $messageBoxContentStyle: IStyle;
|
|
28
|
+
export declare const $messageBoxContainerStyle: IStyle;
|
|
29
|
+
export declare const $messageBoxInputStyle: IStyle;
|
|
30
|
+
export declare const $messageBoxStatusStyle: IStyle;
|
|
31
|
+
export declare const $messageBoxMessageStyle: IStyle;
|
|
32
|
+
export declare const $messageBoxMessagePStyle: IStyle;
|
|
33
|
+
export declare const $messageBoxErrorMsgStyle: IStyle;
|
|
34
|
+
export declare const $messageBoxBtnsStyle: IStyle;
|
|
35
|
+
export declare function useStyle(config?: ITdMessageBoxConfig): void;
|
|
36
|
+
export declare function useType(config?: ITdMessageBoxConfig): void;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.$messageBoxBtnsStyle = exports.$messageBoxErrorMsgStyle = exports.$messageBoxMessagePStyle = exports.$messageBoxMessageStyle = exports.$messageBoxStatusStyle = exports.$messageBoxInputStyle = exports.$messageBoxContainerStyle = exports.$messageBoxContentStyle = exports.$messageBoxHeaderBtnStyle = exports.$messageBoxTitleStyle = exports.$messageBoxHeaderCloseStyle = exports.$messageBoxHeaderStyle = exports.$messageBoxOverlayStyle = exports.$messageBoxStyle = exports.$messageBox = void 0;
|
|
4
|
+
exports.useStyle = useStyle;
|
|
5
|
+
exports.useType = useType;
|
|
6
|
+
const var_1 = require("../../../styles/var");
|
|
7
|
+
const td_message_style_1 = require("../td-message/td-message.style");
|
|
8
|
+
exports.$messageBox = {
|
|
9
|
+
// 'title-color': getCssVar('text-color-primary'),
|
|
10
|
+
titleColor: var_1.$textColor.primary,
|
|
11
|
+
width: '420px',
|
|
12
|
+
borderRadius: '4px',
|
|
13
|
+
// 'box-shadow': getCssVar('box-shadow'),
|
|
14
|
+
boxShadow: var_1.$boxShadow,
|
|
15
|
+
// 'font-size': getCssVar('font-size-large'),
|
|
16
|
+
fontSize: var_1.$fontSizes.large,
|
|
17
|
+
// 'content-font-size': getCssVar('font-size-base'),
|
|
18
|
+
contentFontSize: var_1.$fontSizes.base,
|
|
19
|
+
// 'content-color': getCssVar('text-color-regular'),
|
|
20
|
+
contentColor: var_1.$textColor.regular,
|
|
21
|
+
errorFontSize: '12px',
|
|
22
|
+
paddingPrimary: '12px',
|
|
23
|
+
// 'font-line-height': getCssVar('font-line-height-primary'),
|
|
24
|
+
fontLineHeight: var_1.$fontLineHeightPrimary,
|
|
25
|
+
};
|
|
26
|
+
exports.$messageBoxStyle = {
|
|
27
|
+
display: 'inline-block',
|
|
28
|
+
position: 'relative',
|
|
29
|
+
// max-width: getCssVar('messagebox-width'),
|
|
30
|
+
maxWidth: exports.$messageBox.width,
|
|
31
|
+
width: '100%',
|
|
32
|
+
// padding: getCssVar('messagebox-padding-primary'),
|
|
33
|
+
padding: exports.$messageBox.paddingPrimary,
|
|
34
|
+
verticalAlign: 'middle',
|
|
35
|
+
// background-color: getCssVar('bg-color'),
|
|
36
|
+
backgroundColor: var_1.$bgColor.default,
|
|
37
|
+
// border-radius: getCssVar('messagebox-border-radius'),
|
|
38
|
+
borderRadius: exports.$messageBox.borderRadius,
|
|
39
|
+
// font-size: getCssVar('messagebox-font-size'),
|
|
40
|
+
fontSize: exports.$messageBox.fontSize,
|
|
41
|
+
// box-shadow: getCssVar('messagebox-box-shadow'),
|
|
42
|
+
boxShadow: exports.$messageBox.boxShadow.default,
|
|
43
|
+
textAlign: 'left',
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
backfaceVisibility: 'hidden',
|
|
46
|
+
// To avoid small screen overflowing, see #1191,
|
|
47
|
+
boxSizing: 'border-box',
|
|
48
|
+
overflowWrap: 'break-word',
|
|
49
|
+
};
|
|
50
|
+
exports.$messageBoxOverlayStyle = {
|
|
51
|
+
textAlign: 'center',
|
|
52
|
+
position: 'fixed',
|
|
53
|
+
top: 0,
|
|
54
|
+
right: 0,
|
|
55
|
+
bottom: 0,
|
|
56
|
+
left: 0,
|
|
57
|
+
padding: '16px',
|
|
58
|
+
overflow: 'auto',
|
|
59
|
+
};
|
|
60
|
+
exports.$messageBoxHeaderStyle = {
|
|
61
|
+
// paddingBottom: getCssVar('messagebox-padding-primary');
|
|
62
|
+
paddingBottom: exports.$messageBox.paddingPrimary
|
|
63
|
+
};
|
|
64
|
+
const $messageCloseSize = td_message_style_1.$message.closeSize;
|
|
65
|
+
exports.$messageBoxHeaderCloseStyle = {
|
|
66
|
+
// padding-right: calc(
|
|
67
|
+
// getCssVar('messagebox-padding-primary') +
|
|
68
|
+
// var(
|
|
69
|
+
// #{getCssVarName('message-close-size')},
|
|
70
|
+
// map.get($message, 'close-size')
|
|
71
|
+
// )
|
|
72
|
+
paddingRight: parseInt(exports.$messageBox.paddingPrimary) + parseInt(td_message_style_1.$message.closeSize) + 'px',
|
|
73
|
+
};
|
|
74
|
+
exports.$messageBoxTitleStyle = {
|
|
75
|
+
// font-size: getCssVar('messagebox-font-size');
|
|
76
|
+
fontSize: exports.$messageBox.fontSize,
|
|
77
|
+
// line-height: getCssVar('messagebox-font-line-height');
|
|
78
|
+
lineHeight: exports.$messageBox.fontLineHeight,
|
|
79
|
+
// color: getCssVar('messagebox-title-color');
|
|
80
|
+
color: exports.$messageBox.titleColor,
|
|
81
|
+
};
|
|
82
|
+
exports.$messageBoxHeaderBtnStyle = {
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
top: 0,
|
|
85
|
+
right: 0,
|
|
86
|
+
padding: 0,
|
|
87
|
+
width: '40px',
|
|
88
|
+
height: '40px',
|
|
89
|
+
border: 'none',
|
|
90
|
+
outline: 'none',
|
|
91
|
+
background: 'transparent',
|
|
92
|
+
// font-size: var(
|
|
93
|
+
// #{getCssVarName('message-close-size')},
|
|
94
|
+
// map.get($message, 'close-size')
|
|
95
|
+
// );
|
|
96
|
+
fontSize: td_message_style_1.$message.closeSize,
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
};
|
|
99
|
+
exports.$messageBoxContentStyle = {
|
|
100
|
+
// color: getCssVar('messagebox-content-color');
|
|
101
|
+
color: exports.$messageBox.contentColor,
|
|
102
|
+
// font-size: getCssVar('messagebox-content-font-size');
|
|
103
|
+
fontSize: exports.$messageBox.contentFontSize,
|
|
104
|
+
};
|
|
105
|
+
exports.$messageBoxContainerStyle = {
|
|
106
|
+
display: 'flex',
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
gap: '12px',
|
|
109
|
+
};
|
|
110
|
+
exports.$messageBoxInputStyle = {
|
|
111
|
+
paddingTop: '12px'
|
|
112
|
+
};
|
|
113
|
+
exports.$messageBoxStatusStyle = {
|
|
114
|
+
fontSize: '24px',
|
|
115
|
+
};
|
|
116
|
+
exports.$messageBoxMessageStyle = {
|
|
117
|
+
margin: 0,
|
|
118
|
+
};
|
|
119
|
+
exports.$messageBoxMessagePStyle = {
|
|
120
|
+
margin: 0,
|
|
121
|
+
// line-height: getCssVar('messagebox-font-line-height');
|
|
122
|
+
lineHeight: exports.$messageBox.fontLineHeight,
|
|
123
|
+
};
|
|
124
|
+
exports.$messageBoxErrorMsgStyle = {
|
|
125
|
+
// color: getCssVar('color-error');
|
|
126
|
+
color: var_1.$colors.error.base,
|
|
127
|
+
// font-size: getCssVar('messagebox-error-font-size');
|
|
128
|
+
fontSize: exports.$messageBox.errorFontSize,
|
|
129
|
+
// line-height: getCssVar('messagebox-font-line-height');
|
|
130
|
+
lineHeight: exports.$messageBox.fontLineHeight,
|
|
131
|
+
};
|
|
132
|
+
exports.$messageBoxBtnsStyle = {
|
|
133
|
+
display: 'flex',
|
|
134
|
+
flexWrap: 'wrap',
|
|
135
|
+
justifyContent: 'flex-end',
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
// padding-top: getCssVar('messagebox-padding-primary'),
|
|
138
|
+
paddingTop: exports.$messageBox.paddingPrimary,
|
|
139
|
+
};
|
|
140
|
+
function useStyle(config) {
|
|
141
|
+
useType(config);
|
|
142
|
+
const draggable = (config === null || config === void 0 ? void 0 : config.draggable) || false;
|
|
143
|
+
if (draggable) {
|
|
144
|
+
exports.$messageBoxHeaderStyle.cursor = 'move';
|
|
145
|
+
exports.$messageBoxHeaderStyle.userSelect = 'none';
|
|
146
|
+
}
|
|
147
|
+
if ((config === null || config === void 0 ? void 0 : config.showClose) !== false) {
|
|
148
|
+
exports.$messageBoxHeaderCloseStyle.display = 'block';
|
|
149
|
+
// $messageBoxHeaderStyle.paddingRight = calc(
|
|
150
|
+
// getCssVar('messagebox-padding-primary') +
|
|
151
|
+
// var(
|
|
152
|
+
// #{getCssVarName('message-close-size')},
|
|
153
|
+
// map.get($message, 'close-size')
|
|
154
|
+
// )
|
|
155
|
+
// );
|
|
156
|
+
exports.$messageBoxHeaderStyle.paddingRight = parseInt(exports.$messageBox.paddingPrimary) + parseInt($messageCloseSize) + 'px';
|
|
157
|
+
}
|
|
158
|
+
if (config === null || config === void 0 ? void 0 : config.center) {
|
|
159
|
+
exports.$messageBoxTitleStyle.display = 'flex';
|
|
160
|
+
exports.$messageBoxTitleStyle.alignItems = 'center';
|
|
161
|
+
exports.$messageBoxTitleStyle.justifyContent = 'center';
|
|
162
|
+
exports.$messageBoxTitleStyle.gap = '6px';
|
|
163
|
+
exports.$messageBoxStatusStyle.fontSize = 'inherit';
|
|
164
|
+
exports.$messageBoxBtnsStyle.justifyContent = 'center';
|
|
165
|
+
exports.$messageBoxContainerStyle.justifyContent = 'center';
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
delete exports.$messageBoxTitleStyle.display;
|
|
169
|
+
delete exports.$messageBoxTitleStyle.alignItems;
|
|
170
|
+
delete exports.$messageBoxTitleStyle.justifyContent;
|
|
171
|
+
delete exports.$messageBoxTitleStyle.gap;
|
|
172
|
+
exports.$messageBoxStatusStyle.fontSize = '24px';
|
|
173
|
+
exports.$messageBoxBtnsStyle.justifyContent = 'flex-end';
|
|
174
|
+
delete exports.$messageBoxContainerStyle.justifyContent;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function useType(config) {
|
|
178
|
+
const type = (config === null || config === void 0 ? void 0 : config.type) || 'info';
|
|
179
|
+
const $messageBoxColor = var_1.$colors[type].base;
|
|
180
|
+
// $messageBoxIconStyle.color = $messageBoxColor;
|
|
181
|
+
exports.$messageBoxStatusStyle.color = $messageBoxColor;
|
|
182
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UI } from '../../../ui/ui.abstract';
|
|
2
|
+
import { INotificationPosition, ITdNotification, ITdNotificationConfig } from './td-notification.interface';
|
|
3
|
+
export declare class TdNotification extends UI<undefined> implements ITdNotification {
|
|
4
|
+
className: 'TdNotification';
|
|
5
|
+
props: ITdNotificationConfig;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
private transition;
|
|
8
|
+
private notification;
|
|
9
|
+
private group;
|
|
10
|
+
private title;
|
|
11
|
+
private content;
|
|
12
|
+
private closeBtn?;
|
|
13
|
+
static notifyId: number;
|
|
14
|
+
static notifications: Record<INotificationPosition, TdNotification[]>;
|
|
15
|
+
GAP_SIZE: number;
|
|
16
|
+
seed: number;
|
|
17
|
+
timer: (() => void) | undefined;
|
|
18
|
+
private verticalProperty;
|
|
19
|
+
constructor(option?: string | ITdNotificationConfig);
|
|
20
|
+
mounted(): void;
|
|
21
|
+
initEvents(): void;
|
|
22
|
+
static success(params?: ITdNotificationConfig): void;
|
|
23
|
+
static warning(params?: ITdNotificationConfig): void;
|
|
24
|
+
static error(params?: ITdNotificationConfig): void;
|
|
25
|
+
static info(params?: ITdNotificationConfig): void;
|
|
26
|
+
startTimer(): void;
|
|
27
|
+
clearTimer(): void;
|
|
28
|
+
close(): void;
|
|
29
|
+
onKeydown({ code }: KeyboardEvent): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TdNotification = void 0;
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
const svgs_1 = require("@type-dom/svgs");
|
|
6
|
+
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
7
|
+
const aria_1 = require("../../../aria");
|
|
8
|
+
const td_notification_style_1 = require("./td-notification.style");
|
|
9
|
+
const td_icon_class_1 = require("../../basic/td-icon/td-icon.class");
|
|
10
|
+
class TdNotification extends ui_abstract_1.UI {
|
|
11
|
+
constructor(option) {
|
|
12
|
+
let params;
|
|
13
|
+
if (typeof option === 'string') {
|
|
14
|
+
params = { message: option };
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
params = option;
|
|
18
|
+
}
|
|
19
|
+
super(params, 'fragment');
|
|
20
|
+
this.visible = false;
|
|
21
|
+
// the gap size between each notification
|
|
22
|
+
this.GAP_SIZE = 16;
|
|
23
|
+
this.seed = 1;
|
|
24
|
+
this.timer = undefined;
|
|
25
|
+
this.className = 'TdNotification';
|
|
26
|
+
(0, td_notification_style_1.useStyle)(params);
|
|
27
|
+
this.to = document.body;
|
|
28
|
+
this.transition = new framework_1.Transition({
|
|
29
|
+
name: 'fade',
|
|
30
|
+
emits: {
|
|
31
|
+
beforeLeave: (el, done) => {
|
|
32
|
+
console.log('beforeLeave');
|
|
33
|
+
(params === null || params === void 0 ? void 0 : params.onClose) && params.onClose();
|
|
34
|
+
},
|
|
35
|
+
afterLeave: (el, done) => {
|
|
36
|
+
console.log('afterLeave');
|
|
37
|
+
// destroy
|
|
38
|
+
this.destroy();
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
this.addChild(this.transition);
|
|
43
|
+
this.notification = new framework_1.Div({
|
|
44
|
+
attrObj: {
|
|
45
|
+
role: 'alert',
|
|
46
|
+
},
|
|
47
|
+
styleObj: td_notification_style_1.$notificationStyle,
|
|
48
|
+
events: {
|
|
49
|
+
mouseenter: () => {
|
|
50
|
+
console.log('mouseenter');
|
|
51
|
+
},
|
|
52
|
+
mouseleave: () => {
|
|
53
|
+
console.log('mouseleave');
|
|
54
|
+
},
|
|
55
|
+
click: () => {
|
|
56
|
+
console.log('click');
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
this.transition.addChild(this.notification);
|
|
61
|
+
let iconComponent;
|
|
62
|
+
if ((params === null || params === void 0 ? void 0 : params.type) && svgs_1.TypeComponentsMap[params.type]) {
|
|
63
|
+
console.log('params.type is ', params.type);
|
|
64
|
+
iconComponent = new svgs_1.TypeComponentsMap[params.type]();
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
iconComponent = params === null || params === void 0 ? void 0 : params.icon;
|
|
68
|
+
}
|
|
69
|
+
let icon;
|
|
70
|
+
if (iconComponent) {
|
|
71
|
+
icon = new td_icon_class_1.TdIcon({
|
|
72
|
+
name: 'icon',
|
|
73
|
+
styleObj: td_notification_style_1.$notificationIconStyle,
|
|
74
|
+
svgObj: iconComponent,
|
|
75
|
+
});
|
|
76
|
+
this.notification.addChild(icon);
|
|
77
|
+
}
|
|
78
|
+
this.group = new framework_1.Div({
|
|
79
|
+
name: 'group',
|
|
80
|
+
styleObj: td_notification_style_1.$notificationGroupStyle,
|
|
81
|
+
});
|
|
82
|
+
this.title = new framework_1.Head({
|
|
83
|
+
name: 'title',
|
|
84
|
+
nodeName: 'h2',
|
|
85
|
+
text: params === null || params === void 0 ? void 0 : params.title,
|
|
86
|
+
styleObj: td_notification_style_1.$notificationTitleStyle,
|
|
87
|
+
});
|
|
88
|
+
this.group.addChild(this.title);
|
|
89
|
+
this.content = new framework_1.Div({
|
|
90
|
+
name: 'content',
|
|
91
|
+
styleObj: td_notification_style_1.$notificationContentStyle,
|
|
92
|
+
});
|
|
93
|
+
if (params === null || params === void 0 ? void 0 : params.slot) {
|
|
94
|
+
this.content.slotChild(params.slot);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
if (params === null || params === void 0 ? void 0 : params.dangerouslyUseHTMLString) {
|
|
98
|
+
if (typeof params.message === 'string') {
|
|
99
|
+
const parser = new framework_1.Parser();
|
|
100
|
+
const el = parser.parseFromString(params.message);
|
|
101
|
+
this.content.addChild(new framework_1.P({
|
|
102
|
+
childNodes: [el],
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
console.warn('params.message is not a string . ');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
const p = new framework_1.P();
|
|
111
|
+
if ((params === null || params === void 0 ? void 0 : params.message) instanceof framework_1.TypeElement) {
|
|
112
|
+
p.addChild(params.message);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
p.addChild(new framework_1.TextNode(params === null || params === void 0 ? void 0 : params.message));
|
|
116
|
+
}
|
|
117
|
+
this.content.addChild(p);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
this.group.addChild(this.content);
|
|
121
|
+
if ((params === null || params === void 0 ? void 0 : params.showClose) !== false) {
|
|
122
|
+
this.closeBtn = new td_icon_class_1.TdIcon({
|
|
123
|
+
name: 'close-btn',
|
|
124
|
+
styleObj: td_notification_style_1.$notificationCloseBtnStyle,
|
|
125
|
+
svgObj: new svgs_1.ElCloseSvg(),
|
|
126
|
+
events: {
|
|
127
|
+
click: (evt) => {
|
|
128
|
+
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
129
|
+
this.close();
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
this.group.addChild(this.closeBtn);
|
|
134
|
+
}
|
|
135
|
+
this.notification.addChild(this.group);
|
|
136
|
+
const position = (params === null || params === void 0 ? void 0 : params.position) || 'top-right';
|
|
137
|
+
const horizontal = position.endsWith('right') ? 'right' : 'left';
|
|
138
|
+
this.notification.ctrl.addStyleObj({ [horizontal]: '16px' });
|
|
139
|
+
this.verticalProperty = position.startsWith('top') ? 'top' : 'bottom';
|
|
140
|
+
let verticalOffset = (params === null || params === void 0 ? void 0 : params.offset) || 0;
|
|
141
|
+
console.log('verticalOffset is ', verticalOffset);
|
|
142
|
+
TdNotification.notifications[position].forEach((item) => {
|
|
143
|
+
verticalOffset += item.notification.dom.offsetHeight + this.GAP_SIZE;
|
|
144
|
+
});
|
|
145
|
+
verticalOffset = verticalOffset + this.GAP_SIZE;
|
|
146
|
+
const positionStyle = {
|
|
147
|
+
[this.verticalProperty]: `${verticalOffset}px`,
|
|
148
|
+
zIndex: 9999, // params?.zIndex ?? currentZIndex,
|
|
149
|
+
};
|
|
150
|
+
this.notification.ctrl.addStyleObj(positionStyle);
|
|
151
|
+
TdNotification.notifyId = TdNotification.notifyId + 1;
|
|
152
|
+
TdNotification.notifications[position].push(this);
|
|
153
|
+
this.props = this.setParams(params);
|
|
154
|
+
this.mount(this.to);
|
|
155
|
+
}
|
|
156
|
+
mounted() {
|
|
157
|
+
this.startTimer();
|
|
158
|
+
// nextZIndex()
|
|
159
|
+
this.visible = true;
|
|
160
|
+
}
|
|
161
|
+
initEvents() {
|
|
162
|
+
this.addEvent('keydown', document, (evt) => {
|
|
163
|
+
this.onKeydown(evt);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
static success(params) {
|
|
167
|
+
new TdNotification(Object.assign({ type: 'success' }, params));
|
|
168
|
+
}
|
|
169
|
+
static warning(params) {
|
|
170
|
+
new TdNotification(Object.assign({ type: 'warning' }, params));
|
|
171
|
+
}
|
|
172
|
+
static error(params) {
|
|
173
|
+
new TdNotification(Object.assign({ type: 'error' }, params));
|
|
174
|
+
}
|
|
175
|
+
static info(params) {
|
|
176
|
+
new TdNotification(Object.assign({ type: 'info' }, params));
|
|
177
|
+
}
|
|
178
|
+
startTimer() {
|
|
179
|
+
var _a;
|
|
180
|
+
console.log('startTimer . ');
|
|
181
|
+
const duration = (_a = this.props.duration) !== null && _a !== void 0 ? _a : 4500;
|
|
182
|
+
if (duration > 0) {
|
|
183
|
+
({ stop: this.timer } = (0, framework_1.useTimeoutFn)(() => {
|
|
184
|
+
if (this.visible)
|
|
185
|
+
this.close();
|
|
186
|
+
}, duration));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
clearTimer() {
|
|
190
|
+
var _a;
|
|
191
|
+
(_a = this.timer) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
192
|
+
}
|
|
193
|
+
close() {
|
|
194
|
+
this.visible = false;
|
|
195
|
+
this.notification.ctrl.hide();
|
|
196
|
+
const position = this.props.position || 'top-right';
|
|
197
|
+
this.destroy(); // todo 应该是 Transition 的 afterLeave 触发 destroy; 会删除props
|
|
198
|
+
TdNotification.notifications[position] = TdNotification.notifications[position].filter((notification) => notification !== this);
|
|
199
|
+
TdNotification.notifyId = TdNotification.notifyId - 1;
|
|
200
|
+
let verticalOffset = this.props.offset || 0;
|
|
201
|
+
console.log('height is ', verticalOffset);
|
|
202
|
+
TdNotification.notifications[position].forEach((item, index) => {
|
|
203
|
+
verticalOffset = verticalOffset + this.GAP_SIZE;
|
|
204
|
+
item.notification.ctrl.setStyleObj({
|
|
205
|
+
[this.verticalProperty]: `${verticalOffset}px`,
|
|
206
|
+
});
|
|
207
|
+
verticalOffset += item.notification.dom.offsetHeight; // + this.GAP_SIZE;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
onKeydown({ code }) {
|
|
211
|
+
console.log('onKeydown ', code);
|
|
212
|
+
if (code === aria_1.EVENT_CODE.delete || code === aria_1.EVENT_CODE.backspace) {
|
|
213
|
+
this.clearTimer(); // press delete/backspace clear timer
|
|
214
|
+
}
|
|
215
|
+
else if (code === aria_1.EVENT_CODE.esc) {
|
|
216
|
+
// press esc to close the notification
|
|
217
|
+
if (this.visible) {
|
|
218
|
+
this.close();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
this.startTimer(); // resume timer
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.TdNotification = TdNotification;
|
|
227
|
+
TdNotification.notifyId = 0;
|
|
228
|
+
// This should be a queue but considering there were `non-autoclosable` notifications.
|
|
229
|
+
TdNotification.notifications = {
|
|
230
|
+
'top-left': [],
|
|
231
|
+
'top-right': [],
|
|
232
|
+
'bottom-left': [],
|
|
233
|
+
'bottom-right': [],
|
|
234
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TypeElement, TypeSvgSvg } from '@type-dom/framework';
|
|
2
|
+
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
3
|
+
export type INotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
4
|
+
export type INotificationType = 'success' | 'info' | 'warning' | 'error';
|
|
5
|
+
export interface ITdNotification extends IUI {
|
|
6
|
+
className: 'TdNotification';
|
|
7
|
+
}
|
|
8
|
+
export interface ITdNotificationConfig extends IUIConfig {
|
|
9
|
+
/**
|
|
10
|
+
* @description custom class name for Notification
|
|
11
|
+
* default: ''
|
|
12
|
+
*/
|
|
13
|
+
customClass?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description whether `message` is treated as HTML string
|
|
16
|
+
*/
|
|
17
|
+
dangerouslyUseHTMLString?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @description duration before close. It will not automatically close if set 0
|
|
20
|
+
* default: 4500
|
|
21
|
+
*/
|
|
22
|
+
duration?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @description custom icon component. It will be overridden by `type`
|
|
25
|
+
*/
|
|
26
|
+
icon?: TypeSvgSvg;
|
|
27
|
+
/**
|
|
28
|
+
* @description notification dom id
|
|
29
|
+
* default: ''
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description description text
|
|
34
|
+
* default: ''
|
|
35
|
+
*/
|
|
36
|
+
message?: string | TypeElement;
|
|
37
|
+
/**
|
|
38
|
+
* @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset
|
|
39
|
+
* default: 0
|
|
40
|
+
*/
|
|
41
|
+
offset?: number;
|
|
42
|
+
/**
|
|
43
|
+
* @description callback function when notification clicked
|
|
44
|
+
* default: () => undefined
|
|
45
|
+
*/
|
|
46
|
+
onClick?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* @description callback function when closed
|
|
49
|
+
* required: true
|
|
50
|
+
*/
|
|
51
|
+
onClose?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* @description custom position
|
|
54
|
+
* default: 'top-right'
|
|
55
|
+
*/
|
|
56
|
+
position?: INotificationPosition;
|
|
57
|
+
/**
|
|
58
|
+
* @description whether to show a close button
|
|
59
|
+
* default: true
|
|
60
|
+
*/
|
|
61
|
+
showClose?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @description title
|
|
64
|
+
* default: ''
|
|
65
|
+
*/
|
|
66
|
+
title?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @description notification type
|
|
69
|
+
* default: ''
|
|
70
|
+
*/
|
|
71
|
+
type?: INotificationType;
|
|
72
|
+
/**
|
|
73
|
+
* @description initial zIndex
|
|
74
|
+
*/
|
|
75
|
+
zIndex?: number;
|
|
76
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IStyle } from '@type-dom/css-type';
|
|
2
|
+
import { ITdNotificationConfig } from './td-notification.interface';
|
|
3
|
+
export declare const $messageCloseSize: string;
|
|
4
|
+
export declare const $notification: {
|
|
5
|
+
width: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
radius: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
closeFontSize: string;
|
|
12
|
+
groupMarginLeft: string;
|
|
13
|
+
groupMarginRight: string;
|
|
14
|
+
contentFontSize: string;
|
|
15
|
+
contentColor: string;
|
|
16
|
+
titleFontSize: string;
|
|
17
|
+
titleColor: string;
|
|
18
|
+
closeColor: string;
|
|
19
|
+
closeHoverColor: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const $notificationStyle: IStyle;
|
|
22
|
+
export declare const $notificationGroupStyle: IStyle;
|
|
23
|
+
export declare const $notificationTitleStyle: IStyle;
|
|
24
|
+
export declare const $notificationContentStyle: IStyle;
|
|
25
|
+
export declare const $notificationIconStyle: IStyle;
|
|
26
|
+
export declare const $notificationCloseBtnStyle: IStyle;
|
|
27
|
+
export declare function useStyle(config?: ITdNotificationConfig): void;
|
|
28
|
+
export declare function useType(config?: ITdNotificationConfig): void;
|