@type-dom/ui 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/package.json +4 -10
- package/src/aria.d.ts +2 -2
- package/src/components/basic/td-button/td-button.abstract.d.ts +5 -5
- package/src/components/basic/td-button/td-button.abstract.js +46 -42
- package/src/components/basic/td-button/td-button.interface.d.ts +3 -6
- package/src/components/basic/td-button/td-button.style.d.ts +16 -5
- package/src/components/basic/td-button/td-button.style.js +43 -17
- package/src/components/basic/td-button-group/td-button-group.class.d.ts +3 -2
- package/src/components/basic/td-button-group/td-button-group.class.js +34 -37
- package/src/components/basic/td-button-group/td-button-group.interface.d.ts +3 -3
- package/src/components/basic/td-container/td-aside/td-aside.class.d.ts +2 -2
- package/src/components/basic/td-container/td-aside/td-aside.class.js +6 -5
- package/src/components/basic/td-container/td-aside/td-aside.interface.d.ts +3 -3
- package/src/components/basic/td-container/td-container.class.d.ts +2 -3
- package/src/components/basic/td-container/td-container.class.js +9 -7
- package/src/components/basic/td-container/td-container.interface.d.ts +3 -4
- 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 -2
- package/src/components/basic/td-container/td-footer/td-footer.class.js +4 -3
- package/src/components/basic/td-container/td-footer/td-footer.interface.d.ts +3 -3
- 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 +3 -3
- package/src/components/basic/td-container/td-header/td-header.interface.d.ts +3 -3
- package/src/components/basic/td-container/td-main/td-main.class.d.ts +4 -2
- package/src/components/basic/td-container/td-main/td-main.class.js +8 -5
- package/src/components/basic/td-container/td-main/td-main.interface.d.ts +3 -3
- package/src/components/basic/td-icon/td-icon.class.d.ts +4 -6
- package/src/components/basic/td-icon/td-icon.class.js +32 -29
- package/src/components/basic/td-icon/td-icon.interface.d.ts +3 -4
- package/src/components/basic/td-layout/td-col/td-col.class.d.ts +2 -3
- package/src/components/basic/td-layout/td-col/td-col.class.js +4 -4
- package/src/components/basic/td-layout/td-col/td-col.interface.d.ts +3 -3
- package/src/components/basic/td-layout/td-row/td-row.class.d.ts +2 -2
- package/src/components/basic/td-layout/td-row/td-row.class.js +5 -4
- package/src/components/basic/td-layout/td-row/td-row.interface.d.ts +3 -3
- package/src/components/basic/td-link/td-link.class.d.ts +2 -2
- package/src/components/basic/td-link/td-link.class.js +6 -10
- package/src/components/basic/td-link/td-link.interface.d.ts +3 -3
- package/src/components/basic/td-link/td-link.style.js +1 -1
- package/src/components/basic/td-scrollbar/bar/bar.class.d.ts +2 -2
- package/src/components/basic/td-scrollbar/bar/bar.class.js +4 -4
- package/src/components/basic/td-scrollbar/bar/bar.interface.d.ts +3 -3
- package/src/components/basic/td-scrollbar/td-scrollbar.class.d.ts +4 -2
- package/src/components/basic/td-scrollbar/td-scrollbar.class.js +4 -3
- package/src/components/basic/td-scrollbar/td-scrollbar.interface.d.ts +3 -4
- package/src/components/basic/td-scrollbar/td-scrollbar.interface.js +1 -1
- package/src/components/basic/td-scrollbar/thumb/thumb.class.d.ts +2 -2
- package/src/components/basic/td-scrollbar/thumb/thumb.class.js +2 -3
- package/src/components/basic/td-scrollbar/thumb/thumb.interface.d.ts +3 -3
- package/src/components/basic/td-space/td-space.class.d.ts +2 -2
- package/src/components/basic/td-space/td-space.class.js +11 -5
- package/src/components/basic/td-space/td-space.interface.d.ts +3 -4
- package/src/components/basic/td-text/td-text.class.d.ts +4 -2
- package/src/components/basic/td-text/td-text.class.js +6 -4
- package/src/components/basic/td-text/td-text.interface.d.ts +3 -3
- package/src/components/data/td-avatar/td-avatar.class.d.ts +2 -2
- package/src/components/data/td-avatar/td-avatar.class.js +19 -25
- package/src/components/data/td-avatar/td-avatar.interface.d.ts +3 -3
- package/src/components/data/td-avatar/td-avatar.style.d.ts +2 -0
- package/src/components/data/td-avatar/td-avatar.style.js +19 -1
- package/src/components/data/td-badge/td-badge.class.d.ts +2 -2
- package/src/components/data/td-badge/td-badge.class.js +4 -4
- package/src/components/data/td-badge/td-badge.interface.d.ts +3 -3
- package/src/components/data/td-card/td-card.class.d.ts +4 -5
- package/src/components/data/td-card/td-card.class.js +16 -30
- package/src/components/data/td-card/td-card.interface.d.ts +3 -3
- package/src/components/data/td-card/td-card.style.d.ts +3 -2
- package/src/components/data/td-card/td-card.style.js +17 -3
- package/src/components/data/td-check-tag/td-check-tag.class.d.ts +2 -2
- package/src/components/data/td-check-tag/td-check-tag.class.js +5 -5
- package/src/components/data/td-check-tag/td-check-tag.interface.d.ts +3 -3
- package/src/components/data/td-check-tag/td-check-tag.style.d.ts +2 -2
- package/src/components/data/td-check-tag/td-check-tag.style.js +3 -3
- package/src/components/data/td-collapse/td-collapse.class.d.ts +2 -2
- package/src/components/data/td-collapse/td-collapse.class.js +20 -20
- package/src/components/data/td-collapse/td-collapse.interface.d.ts +3 -3
- package/src/components/data/td-collapse/td-collapse.style.d.ts +2 -0
- package/src/components/data/td-collapse/td-collapse.style.js +9 -1
- package/src/components/data/td-collapse-item/td-collapse-item.class.d.ts +4 -5
- package/src/components/data/td-collapse-item/td-collapse-item.class.js +16 -16
- package/src/components/data/td-collapse-item/td-collapse-item.interface.d.ts +3 -3
- package/src/components/data/td-count-down/td-count-down.class.d.ts +1 -1
- package/src/components/data/td-count-down/td-count-down.class.js +1 -1
- package/src/components/data/td-descriptions/td-descriptions-row.d.ts +4 -5
- package/src/components/data/td-descriptions/td-descriptions-row.js +1 -1
- package/src/components/data/td-descriptions/td-descriptions.class.d.ts +3 -3
- package/src/components/data/td-descriptions/td-descriptions.class.js +2 -3
- package/src/components/data/td-descriptions/td-descriptions.interface.d.ts +3 -4
- package/src/components/data/td-descriptions/td-descritions-cell.d.ts +6 -5
- package/src/components/data/td-descriptions/td-descritions-cell.js +5 -4
- package/src/components/data/td-descriptions-item/td-descriptions-item.class.d.ts +2 -3
- package/src/components/data/td-descriptions-item/td-descriptions-item.class.js +5 -4
- package/src/components/data/td-descriptions-item/td-descriptions-item.interface.d.ts +3 -4
- package/src/components/data/td-empty/td-empty.class.d.ts +2 -2
- package/src/components/data/td-empty/td-empty.class.js +2 -3
- package/src/components/data/td-empty/td-empty.interface.d.ts +3 -4
- package/src/components/data/td-image/td-image.class.d.ts +2 -3
- package/src/components/data/td-image/td-image.class.js +4 -22
- package/src/components/data/td-image/td-image.interface.d.ts +3 -3
- package/src/components/data/td-image/td-image.style.d.ts +2 -0
- package/src/components/data/td-image/td-image.style.js +19 -1
- package/src/components/data/td-image-viewer/td-image-viewer.class.d.ts +3 -5
- package/src/components/data/td-image-viewer/td-image-viewer.class.js +20 -17
- package/src/components/data/td-image-viewer/td-image-viewer.interface.d.ts +3 -3
- package/src/components/data/td-result/td-result.class.d.ts +2 -2
- package/src/components/data/td-result/td-result.class.js +4 -3
- package/src/components/data/td-result/td-result.interface.d.ts +3 -4
- package/src/components/data/td-segmented/td-segmented.class.d.ts +2 -3
- package/src/components/data/td-segmented/td-segmented.class.js +7 -8
- package/src/components/data/td-segmented/td-segmented.interface.d.ts +2 -3
- package/src/components/data/td-statistic/td-statistic.abstract.d.ts +3 -4
- package/src/components/data/td-statistic/td-statistic.abstract.js +15 -14
- package/src/components/data/td-statistic/td-statistic.class.js +1 -0
- package/src/components/data/td-statistic/td-statistic.interface.d.ts +3 -4
- package/src/components/data/td-tag/td-tag.class.d.ts +3 -4
- package/src/components/data/td-tag/td-tag.class.js +13 -13
- package/src/components/data/td-tag/td-tag.interface.d.ts +3 -3
- package/src/components/feedback/index.d.ts +4 -0
- package/src/components/feedback/index.js +5 -2
- package/src/components/feedback/td-alert/td-alert.class.d.ts +2 -3
- package/src/components/feedback/td-alert/td-alert.class.js +19 -17
- package/src/components/feedback/td-alert/td-alert.interface.d.ts +3 -3
- package/src/components/feedback/td-dialog/td-dialog.class.d.ts +3 -3
- package/src/components/feedback/td-dialog/td-dialog.class.js +25 -29
- package/src/components/feedback/td-dialog/td-dialog.interface.d.ts +3 -3
- package/src/components/feedback/td-dialog/td-dialog.interface.js +1 -1
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.d.ts +2 -3
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.js +10 -7
- package/src/components/feedback/td-dialog-content/td-dialog-content.interface.d.ts +3 -4
- package/src/components/feedback/td-drawer/td-drawer.class.d.ts +3 -3
- package/src/components/feedback/td-drawer/td-drawer.class.js +5 -5
- package/src/components/feedback/td-drawer/td-drawer.interface.d.ts +2 -2
- package/src/components/feedback/td-focus-trap/focus-trap.d.ts +15 -0
- package/src/components/feedback/td-focus-trap/focus-trap.js +71 -0
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.d.ts +8 -7
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.js +129 -129
- package/src/components/feedback/td-focus-trap/td-focus-trap.interface.d.ts +3 -3
- package/src/components/feedback/td-loading/td-loading.class.d.ts +4 -3
- package/src/components/feedback/td-loading/td-loading.class.js +27 -17
- package/src/components/feedback/td-loading/td-loading.interface.d.ts +3 -4
- package/src/components/feedback/td-message/td-message.class.d.ts +4 -4
- package/src/components/feedback/td-message/td-message.class.js +31 -31
- package/src/components/feedback/td-message/td-message.interface.d.ts +3 -4
- package/src/components/feedback/td-message-box/td-message-box.class.d.ts +10 -12
- package/src/components/feedback/td-message-box/td-message-box.class.js +30 -52
- package/src/components/feedback/td-message-box/td-message-box.interface.d.ts +4 -5
- package/src/components/feedback/td-notification/td-notification.class.d.ts +4 -5
- package/src/components/feedback/td-notification/td-notification.class.js +17 -18
- package/src/components/feedback/td-notification/td-notification.interface.d.ts +3 -4
- package/src/components/feedback/td-notification/td-notification.style.js +6 -6
- package/src/components/feedback/td-only-child/td-only-child.class.d.ts +3 -3
- package/src/components/feedback/td-only-child/td-only-child.class.js +3 -3
- package/src/components/feedback/td-overlay/td-overlay.class.d.ts +2 -3
- package/src/components/feedback/td-overlay/td-overlay.class.js +6 -5
- package/src/components/feedback/td-overlay/td-overlay.interface.d.ts +3 -3
- package/src/components/feedback/td-popper/arrow/arrow.class.d.ts +2 -2
- package/src/components/feedback/td-popper/arrow/arrow.class.js +7 -6
- package/src/components/feedback/td-popper/arrow/arrow.const.d.ts +3 -0
- package/src/components/feedback/td-popper/arrow/arrow.const.js +6 -0
- package/src/components/feedback/td-popper/arrow/arrow.interface.d.ts +3 -4
- package/src/components/feedback/td-popper/constants.d.ts +25 -0
- package/src/components/feedback/td-popper/constants.js +5 -0
- package/src/components/feedback/td-popper/content/content.class.d.ts +2 -2
- package/src/components/feedback/td-popper/content/content.class.js +7 -13
- package/src/components/feedback/td-popper/content/content.const.d.ts +2 -2
- package/src/components/feedback/td-popper/content/content.const.js +3 -4
- package/src/components/feedback/td-popper/content/content.interface.d.ts +24 -11
- package/src/components/feedback/td-popper/content/content.interface.js +4 -0
- package/src/components/feedback/td-popper/td-popper.class.d.ts +3 -2
- package/src/components/feedback/td-popper/td-popper.class.js +9 -7
- package/src/components/feedback/td-popper/td-popper.const.d.ts +5 -20
- package/src/components/feedback/td-popper/td-popper.const.js +8 -3
- package/src/components/feedback/td-popper/td-popper.interface.d.ts +6 -4
- package/src/components/feedback/td-popper/trigger/trigger.class.d.ts +2 -2
- package/src/components/feedback/td-popper/trigger/trigger.class.js +6 -6
- package/src/components/feedback/td-popper/trigger/trigger.const.d.ts +1 -0
- package/src/components/feedback/td-popper/trigger/trigger.const.js +4 -1
- package/src/components/feedback/td-popper/trigger/trigger.interface.d.ts +3 -3
- package/src/components/feedback/td-tooltip/content/content.class.d.ts +2 -2
- package/src/components/feedback/td-tooltip/content/content.class.js +4 -3
- package/src/components/feedback/td-tooltip/content/content.const.d.ts +55 -0
- package/src/components/feedback/td-tooltip/content/content.const.js +6 -0
- package/src/components/feedback/td-tooltip/content/content.interface.d.ts +19 -3
- package/src/components/feedback/td-tooltip/td-tooltip.class.d.ts +5 -3
- package/src/components/feedback/td-tooltip/td-tooltip.class.js +84 -9
- package/src/components/feedback/td-tooltip/td-tooltip.const.d.ts +77 -0
- package/src/components/feedback/td-tooltip/td-tooltip.const.js +9 -0
- package/src/components/feedback/td-tooltip/td-tooltip.interface.d.ts +6 -3
- package/src/components/feedback/td-tooltip/trigger/trigger.class.d.ts +3 -2
- package/src/components/feedback/td-tooltip/trigger/trigger.class.js +56 -3
- package/src/components/feedback/td-tooltip/trigger/trigger.const.d.ts +4 -0
- package/src/components/feedback/td-tooltip/trigger/trigger.const.js +6 -0
- package/src/components/feedback/td-tooltip/trigger/trigger.interface.d.ts +7 -2
- package/src/components/form/index.d.ts +17 -16
- package/src/components/form/index.js +19 -17
- package/src/components/form/td-checkbox/composables/use-checkbox-status.js +1 -1
- package/src/components/form/td-checkbox/composables/use-checkbox.js +1 -1
- package/src/components/form/td-checkbox/td-checkbox.class.d.ts +18 -3
- package/src/components/form/td-checkbox/td-checkbox.class.js +231 -9
- package/src/components/form/td-checkbox/td-checkbox.const.d.ts +63 -0
- package/src/components/form/td-checkbox/td-checkbox.const.js +88 -0
- package/src/components/form/td-checkbox/td-checkbox.interface.d.ts +5 -5
- package/src/components/form/td-checkbox/td-checkbox.style.d.ts +9 -0
- package/src/components/form/td-checkbox/td-checkbox.style.js +167 -14
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.d.ts +9 -3
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.js +114 -26
- package/src/components/form/td-checkbox-button/td-checkbox-button.interface.d.ts +2 -4
- package/src/components/form/td-checkbox-button/td-checkbox-button.style.d.ts +8 -1
- package/src/components/form/td-checkbox-button/td-checkbox-button.style.js +89 -12
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.d.ts +11 -3
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.js +118 -5
- package/src/components/form/td-checkbox-group/td-checkbox-group.interface.d.ts +8 -5
- package/src/components/form/td-form/td-form.class.d.ts +4 -2
- package/src/components/form/td-form/td-form.class.js +9 -5
- package/src/components/form/td-form/td-form.interface.d.ts +7 -4
- package/src/components/form/td-form-item/td-form-item.class.d.ts +4 -5
- package/src/components/form/td-form-item/td-form-item.class.js +34 -27
- package/src/components/form/td-form-item/td-form-item.interface.d.ts +3 -3
- package/src/components/form/td-input/td-input.class.d.ts +3 -4
- package/src/components/form/td-input/td-input.class.js +30 -26
- package/src/components/form/td-input/td-input.interface.d.ts +3 -4
- package/src/components/form/td-input/widget/suffix.d.ts +1 -0
- package/src/components/form/td-input/widget/suffix.js +6 -1
- package/src/components/form/td-input/widget/td-input-wrapper.class.js +5 -5
- package/src/components/form/td-input/widget/utils.js +8 -8
- package/src/components/form/td-option/td-option.class.d.ts +2 -2
- package/src/components/form/td-option/td-option.class.js +3 -3
- package/src/components/form/td-option/td-option.interface.d.ts +3 -3
- package/src/components/form/td-option-group/td-option-group.class.d.ts +2 -2
- package/src/components/form/td-option-group/td-option-group.class.js +2 -3
- package/src/components/form/td-option-group/td-option-group.interface.d.ts +3 -3
- package/src/components/form/td-radio/td-radio.class.d.ts +2 -3
- package/src/components/form/td-radio/td-radio.class.js +8 -5
- package/src/components/form/td-radio/td-radio.interface.d.ts +3 -3
- package/src/components/form/td-radio-button/td-radio-button.class.d.ts +2 -3
- package/src/components/form/td-radio-button/td-radio-button.class.js +9 -9
- package/src/components/form/td-radio-button/td-radio-button.interface.d.ts +3 -3
- package/src/components/form/td-radio-group/td-radio-group.class.d.ts +2 -5
- package/src/components/form/td-radio-group/td-radio-group.class.js +14 -11
- package/src/components/form/td-radio-group/td-radio-group.interface.d.ts +3 -4
- package/src/components/form/td-select/dropdown/dropdown.class.d.ts +2 -2
- package/src/components/form/td-select/dropdown/dropdown.class.js +2 -3
- package/src/components/form/td-select/dropdown/dropdown.interface.d.ts +3 -4
- package/src/components/form/td-select/td-select.class.d.ts +4 -6
- package/src/components/form/td-select/td-select.class.js +4 -6
- package/src/components/form/td-select/td-select.interface.d.ts +13 -5
- package/src/components/form/td-select/td-select.style.d.ts +23 -0
- package/src/components/form/td-select/td-select.style.js +170 -1
- package/src/components/form/td-switch/td-switch.class.d.ts +2 -3
- package/src/components/form/td-switch/td-switch.class.js +2 -3
- package/src/components/form/td-switch/td-switch.interface.d.ts +3 -4
- package/src/components/form/td-switch/widget/td-switch-core.js +4 -4
- package/src/components/navigation/td-affix/td-affix.class.d.ts +2 -3
- package/src/components/navigation/td-affix/td-affix.class.js +2 -3
- package/src/components/navigation/td-affix/td-affix.interface.d.ts +3 -4
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.class.d.ts +2 -2
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.class.js +2 -3
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.interface.d.ts +3 -4
- package/src/components/navigation/td-anchor/td-anchor.class.d.ts +2 -2
- package/src/components/navigation/td-anchor/td-anchor.class.js +6 -4
- package/src/components/navigation/td-anchor/td-anchor.function.js +1 -1
- package/src/components/navigation/td-anchor/td-anchor.interface.d.ts +3 -3
- package/src/components/navigation/td-backtop/td-backtop.class.d.ts +5 -6
- package/src/components/navigation/td-backtop/td-backtop.class.js +36 -59
- package/src/components/navigation/td-backtop/td-backtop.const.d.ts +18 -0
- package/src/components/navigation/td-backtop/td-backtop.const.js +21 -0
- package/src/components/navigation/td-backtop/td-backtop.interface.d.ts +3 -3
- package/src/components/navigation/td-backtop/td-backtop.style.d.ts +2 -0
- package/src/components/navigation/td-backtop/td-backtop.style.js +19 -1
- package/src/components/navigation/td-backtop/use-backtop.d.ts +2 -3
- package/src/components/navigation/td-backtop/use-backtop.js +2 -2
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.d.ts +3 -3
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.js +12 -8
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.interface.d.ts +3 -4
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.class.d.ts +2 -2
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.class.js +2 -3
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.interface.d.ts +3 -4
- package/src/components/navigation/td-menu/td-menu.class.d.ts +2 -2
- package/src/components/navigation/td-menu/td-menu.class.js +4 -3
- package/src/components/navigation/td-menu/td-menu.interface.d.ts +3 -4
- package/src/components/navigation/td-tabs/td-tab-bar.class.d.ts +2 -2
- package/src/components/navigation/td-tabs/td-tab-bar.class.js +3 -3
- package/src/components/navigation/td-tabs/td-tab-bar.interface.d.ts +3 -3
- package/src/components/navigation/td-tabs/td-tab-nav.class.d.ts +2 -3
- package/src/components/navigation/td-tabs/td-tab-nav.class.js +3 -4
- package/src/components/navigation/td-tabs/td-tab-nav.interface.d.ts +3 -3
- package/src/components/navigation/td-tabs/td-tab-pane.class.d.ts +2 -3
- package/src/components/navigation/td-tabs/td-tab-pane.class.js +12 -16
- package/src/components/navigation/td-tabs/td-tab-pane.interface.d.ts +3 -4
- package/src/components/navigation/td-tabs/td-tabs.class.d.ts +2 -2
- package/src/components/navigation/td-tabs/td-tabs.class.js +6 -4
- package/src/components/navigation/td-tabs/td-tabs.interface.d.ts +3 -3
- package/src/components/others/example/example-source-wrapper.js +2 -1
- package/src/components/others/td-divider/td-divider.class.d.ts +2 -2
- package/src/components/others/td-divider/td-divider.class.js +2 -3
- package/src/components/others/td-divider/td-divider.interface.d.ts +3 -3
- package/src/constants/aria.d.ts +17 -0
- package/src/constants/aria.js +20 -0
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/use-delayed-toggle.d.ts +23 -0
- package/src/hooks/use-delayed-toggle.js +52 -0
- package/src/styles/var.d.ts +2 -16
- package/src/styles/var.js +7 -17
- package/src/utils/dom/event.d.ts +6 -0
- package/src/utils/dom/event.js +17 -0
- package/src/ui/ui.abstract.d.ts +0 -18
- package/src/ui/ui.abstract.js +0 -50
- package/src/ui/ui.interface.d.ts +0 -12
- package/src/ui/ui.interface.js +0 -2
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdContainer = void 0;
|
|
4
|
-
const
|
|
5
|
-
class TdContainer extends
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
class TdContainer extends framework_1.TypeSection {
|
|
6
6
|
constructor(params = {}) {
|
|
7
|
-
super(
|
|
7
|
+
super();
|
|
8
8
|
this.className = 'TdContainer';
|
|
9
|
-
this.
|
|
10
|
-
this.attr.
|
|
9
|
+
this.childNodes = [];
|
|
10
|
+
this.attr.addObj({
|
|
11
|
+
name: 'td-container',
|
|
12
|
+
class: 'td-container'
|
|
13
|
+
});
|
|
11
14
|
this.style.addObj({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
flexDirection: 'row', // vertical ===> column
|
|
@@ -16,13 +19,12 @@ class TdContainer extends ui_abstract_1.UI {
|
|
|
16
19
|
boxSizing: 'border-box',
|
|
17
20
|
minWidth: 0
|
|
18
21
|
});
|
|
19
|
-
this.childNodes = [];
|
|
20
22
|
if (params === null || params === void 0 ? void 0 : params.vertical) {
|
|
21
23
|
this.style.addObj({
|
|
22
24
|
flexDirection: 'column'
|
|
23
25
|
});
|
|
24
26
|
}
|
|
25
|
-
this.
|
|
27
|
+
this.slotChild(params.slot);
|
|
26
28
|
this.props = this.useParams(params);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { TypeElement } from '@type-dom/framework';
|
|
2
|
-
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
1
|
+
import { ITypeConfig, ITypeSection, TypeElement } from '@type-dom/framework';
|
|
3
2
|
import { TdAside } from './td-aside/td-aside.class';
|
|
4
3
|
import { TdHeader } from './td-header/td-header.class';
|
|
5
4
|
import { TdMain } from './td-main/td-main.class';
|
|
6
5
|
import { TdContainer } from './td-container.class';
|
|
7
|
-
export interface ITdContainer extends
|
|
6
|
+
export interface ITdContainer extends ITypeSection {
|
|
8
7
|
className: 'TdContainer';
|
|
9
8
|
}
|
|
10
|
-
export interface ITdContainerConfig extends
|
|
9
|
+
export interface ITdContainerConfig extends ITypeConfig {
|
|
11
10
|
name?: string;
|
|
12
11
|
vertical?: boolean;
|
|
13
12
|
direction?: 'vertical' | 'horizontal';
|
|
@@ -10,8 +10,9 @@ class TdContainerComp extends HTMLElement {
|
|
|
10
10
|
connectedCallback() {
|
|
11
11
|
// 省去了监听document加载完毕
|
|
12
12
|
const title = 'td-container';
|
|
13
|
-
const container = new td_container_class_1.TdContainer(
|
|
14
|
-
|
|
13
|
+
const container = new td_container_class_1.TdContainer({
|
|
14
|
+
attrObj: { name: title },
|
|
15
|
+
});
|
|
15
16
|
// 渲染
|
|
16
17
|
container.mount();
|
|
17
18
|
console.log('container is ', container);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeFooter } from '@type-dom/framework';
|
|
2
2
|
import type { ITdFooter, ITdFooterConfig } from './td-footer.interface';
|
|
3
|
-
export declare class TdFooter extends
|
|
3
|
+
export declare class TdFooter extends TypeFooter implements ITdFooter {
|
|
4
4
|
className: 'TdFooter';
|
|
5
5
|
props: ITdFooterConfig;
|
|
6
6
|
constructor(params?: ITdFooterConfig);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdFooter = void 0;
|
|
4
|
-
const
|
|
5
|
-
class TdFooter extends
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
class TdFooter extends framework_1.TypeFooter {
|
|
6
6
|
constructor(params = {}) {
|
|
7
|
-
super(
|
|
7
|
+
super();
|
|
8
8
|
this.className = 'TdFooter';
|
|
9
|
+
this.attr.addName('td-footer');
|
|
9
10
|
this.style.addObj({
|
|
10
11
|
padding: '0 20px',
|
|
11
12
|
height: (params === null || params === void 0 ? void 0 : params.height) || '60px',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdFooter extends
|
|
1
|
+
import { ITypeConfig, ITypeFooter } from '@type-dom/framework';
|
|
2
|
+
export interface ITdFooter extends ITypeFooter {
|
|
3
3
|
className: 'TdFooter';
|
|
4
4
|
}
|
|
5
|
-
export interface ITdFooterConfig extends
|
|
5
|
+
export interface ITdFooterConfig extends ITypeConfig {
|
|
6
6
|
height?: string | number;
|
|
7
7
|
backgroundColor?: string;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeHeader } from '@type-dom/framework';
|
|
2
2
|
import { TdContainer } from '../td-container.class';
|
|
3
3
|
import type { ITdHeader, ITdHeaderConfig } from './td-header.interface';
|
|
4
|
-
export declare class TdHeader extends
|
|
4
|
+
export declare class TdHeader extends TypeHeader implements ITdHeader {
|
|
5
5
|
className: 'TdHeader';
|
|
6
6
|
props: ITdHeaderConfig;
|
|
7
7
|
parent?: TdContainer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdHeader = void 0;
|
|
4
|
-
const
|
|
5
|
-
class TdHeader extends
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
class TdHeader extends framework_1.TypeHeader {
|
|
6
6
|
constructor(params = {}) {
|
|
7
|
-
super(
|
|
7
|
+
super();
|
|
8
8
|
this.className = 'TdHeader';
|
|
9
9
|
this.attr.addName('td-header');
|
|
10
10
|
this.style.addObj({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdHeader extends
|
|
1
|
+
import { ITypeConfig, ITypeHeader } from '@type-dom/framework';
|
|
2
|
+
export interface ITdHeader extends ITypeHeader {
|
|
3
3
|
className: 'TdHeader';
|
|
4
4
|
}
|
|
5
|
-
export interface ITdHeaderConfig extends
|
|
5
|
+
export interface ITdHeaderConfig extends ITypeConfig {
|
|
6
6
|
height?: string | number;
|
|
7
7
|
backgroundColor?: string;
|
|
8
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeHtml } from '@type-dom/framework';
|
|
2
2
|
import { ITdMain, ITdMainConfig } from './td-main.interface';
|
|
3
|
-
export declare class TdMain extends
|
|
3
|
+
export declare class TdMain extends TypeHtml implements ITdMain {
|
|
4
4
|
className: 'TdMain';
|
|
5
|
+
nodeName: string;
|
|
6
|
+
dom: HTMLElement;
|
|
5
7
|
props: ITdMainConfig;
|
|
6
8
|
constructor(params?: ITdMainConfig);
|
|
7
9
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdMain = void 0;
|
|
4
|
-
const
|
|
5
|
-
class TdMain extends
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
|
+
class TdMain extends framework_1.TypeHtml {
|
|
6
6
|
constructor(params = {}) {
|
|
7
|
-
super(
|
|
7
|
+
super();
|
|
8
8
|
this.className = 'TdMain';
|
|
9
|
+
this.nodeName = params.tag || 'main';
|
|
10
|
+
this.dom = document.createElement(this.nodeName);
|
|
11
|
+
this.attr.addName('td-main');
|
|
9
12
|
this.style.addObj({
|
|
10
13
|
display: 'block',
|
|
11
14
|
flex: 1,
|
|
@@ -14,8 +17,8 @@ class TdMain extends ui_abstract_1.UI {
|
|
|
14
17
|
boxSizing: 'border-box'
|
|
15
18
|
// padding: '20px',
|
|
16
19
|
});
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
console.log('then slotChild . params.slot is ', params.slot);
|
|
21
|
+
this.slotChild(params.slot);
|
|
19
22
|
this.props = this.useParams(params);
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdMain extends
|
|
1
|
+
import { ITypeConfig, ITypeHtml } from '@type-dom/framework';
|
|
2
|
+
export interface ITdMain extends ITypeHtml {
|
|
3
3
|
className: 'TdMain';
|
|
4
4
|
}
|
|
5
|
-
export interface ITdMainConfig extends
|
|
5
|
+
export interface ITdMainConfig extends ITypeConfig {
|
|
6
6
|
tag?: 'main';
|
|
7
7
|
}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { TypeHtml, TypeSvgSvg } from '@type-dom/framework';
|
|
2
|
-
import { UI } from '../../../ui/ui.abstract';
|
|
1
|
+
import { SlotNode, TypeHtml, TypeI, TypeSvgSvg } from '@type-dom/framework';
|
|
3
2
|
import { ITdIcon, ITdIconConfig } from './td-icon.interface';
|
|
4
3
|
/**
|
|
5
4
|
* TdIcon 类继承自 UI 类,实现了 ITdIcon 接口。
|
|
6
5
|
* 该类用于创建和管理图标,支持配置不同的图标样式和SVG图形。
|
|
7
6
|
*/
|
|
8
|
-
export declare class TdIcon extends
|
|
7
|
+
export declare class TdIcon extends TypeI implements ITdIcon {
|
|
9
8
|
className: 'TdIcon';
|
|
10
9
|
props: ITdIconConfig;
|
|
11
10
|
svg?: TypeSvgSvg;
|
|
12
|
-
parent?: TypeHtml;
|
|
11
|
+
parent?: TypeHtml | SlotNode;
|
|
13
12
|
static initCalled: boolean;
|
|
14
13
|
/**
|
|
15
14
|
* TdIcon 类的构造函数。
|
|
16
|
-
* @param
|
|
15
|
+
* @param params
|
|
17
16
|
*/
|
|
18
17
|
constructor(params?: ITdIconConfig);
|
|
19
18
|
/**
|
|
20
19
|
* 根据配置更新图标的状态和样式。
|
|
21
|
-
* @param config 图标的配置对象,可选参数。
|
|
22
20
|
*/
|
|
23
21
|
setup(): void;
|
|
24
22
|
/**
|
|
@@ -3,20 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdIcon = void 0;
|
|
4
4
|
const framework_1 = require("@type-dom/framework");
|
|
5
5
|
const utils_1 = require("@type-dom/utils");
|
|
6
|
-
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
7
6
|
const td_icon_style_1 = require("./td-icon.style");
|
|
8
7
|
/**
|
|
9
8
|
* TdIcon 类继承自 UI 类,实现了 ITdIcon 接口。
|
|
10
9
|
* 该类用于创建和管理图标,支持配置不同的图标样式和SVG图形。
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
// @StyleManager
|
|
12
|
+
class TdIcon extends framework_1.TypeI {
|
|
13
13
|
/**
|
|
14
14
|
* TdIcon 类的构造函数。
|
|
15
|
-
* @param
|
|
15
|
+
* @param params
|
|
16
16
|
*/
|
|
17
17
|
constructor(params = {}) {
|
|
18
|
-
super(
|
|
18
|
+
super();
|
|
19
19
|
this.className = 'TdIcon';
|
|
20
|
+
// this.addStyleObj($iconLeft);
|
|
21
|
+
this.attr.addName('td-icon');
|
|
20
22
|
this.style.addObj(td_icon_style_1.$tdIcon);
|
|
21
23
|
if (params === null || params === void 0 ? void 0 : params.loading) {
|
|
22
24
|
this.style.addObj(td_icon_style_1.$iconLoading);
|
|
@@ -24,35 +26,34 @@ class TdIcon extends ui_abstract_1.UI {
|
|
|
24
26
|
// 首次创建时,添加style标签;避免重复创建
|
|
25
27
|
if (!TdIcon.initCalled) {
|
|
26
28
|
TdIcon.initCalled = true;
|
|
27
|
-
const cssText = `
|
|
28
|
-
/* 选择所有带有 data-v-366071 属性的元素 */
|
|
29
|
-
/* 在这里添加您的样式规则 */
|
|
30
|
-
@keyframes rotating-${framework_1.vHash} {
|
|
31
|
-
0% {
|
|
32
|
-
transform: rotateZ(0deg);
|
|
33
|
-
}
|
|
34
|
-
100% {
|
|
35
|
-
transform: rotateZ(360deg);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
29
|
+
const cssText = `
|
|
30
|
+
/* 选择所有带有 data-v-366071 属性的元素 */
|
|
31
|
+
/* 在这里添加您的样式规则 */
|
|
32
|
+
@keyframes rotating-${framework_1.vHash} {
|
|
33
|
+
0% {
|
|
34
|
+
transform: rotateZ(0deg);
|
|
35
|
+
}
|
|
36
|
+
100% {
|
|
37
|
+
transform: rotateZ(360deg);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
38
40
|
`;
|
|
39
41
|
(0, framework_1.createStyle)(cssText);
|
|
40
42
|
// createClass('td-icon', $tdIcon);
|
|
41
43
|
}
|
|
42
|
-
this.
|
|
43
|
-
this.addChild(this.getSlotNode());
|
|
44
|
+
this.slotChild(params.slot);
|
|
45
|
+
// this.addChild(this.getSlotNode());
|
|
44
46
|
this.props = this.useParams(params);
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* 根据配置更新图标的状态和样式。
|
|
48
|
-
* @param config 图标的配置对象,可选参数。
|
|
49
50
|
*/
|
|
50
51
|
setup() {
|
|
51
52
|
var _a;
|
|
52
53
|
const props = this.props;
|
|
53
54
|
if (props === null || props === void 0 ? void 0 : props.svgObj) {
|
|
54
55
|
// 直接作为 childNodes的子元素更合理;
|
|
55
|
-
this.
|
|
56
|
+
this.addChild(props.svgObj);
|
|
56
57
|
this.svg = props.svgObj;
|
|
57
58
|
this.svg.attr.addObj({
|
|
58
59
|
height: '1em',
|
|
@@ -89,15 +90,15 @@ class TdIcon extends ui_abstract_1.UI {
|
|
|
89
90
|
*/
|
|
90
91
|
replaceSvg(toSvg, fromSvg) {
|
|
91
92
|
var _a;
|
|
92
|
-
|
|
93
|
-
console.log('replaceSvg slotNode is ', slotNode);
|
|
93
|
+
console.log('replaceSvg ');
|
|
94
94
|
// 查找要替换的SVG元素的索引。
|
|
95
|
-
const svgIndex = (_a =
|
|
95
|
+
const svgIndex = (_a = this.childNodes) === null || _a === void 0 ? void 0 : _a.findIndex((child) => {
|
|
96
96
|
// 如果指定了要替换的SVG元素,则判断当前元素是否是待替换的元素。
|
|
97
97
|
if (fromSvg) {
|
|
98
98
|
return child === fromSvg;
|
|
99
99
|
}
|
|
100
|
-
else if (child instanceof framework_1.TypeSvgSvg) {
|
|
100
|
+
else if (child instanceof framework_1.TypeSvgSvg) {
|
|
101
|
+
// 如果没有指定具体的SVG元素,则查找所有实例化的SVG元素的第一个。
|
|
101
102
|
fromSvg = child;
|
|
102
103
|
return true;
|
|
103
104
|
}
|
|
@@ -105,24 +106,26 @@ class TdIcon extends ui_abstract_1.UI {
|
|
|
105
106
|
});
|
|
106
107
|
// 如果找不到指定的SVG元素,则将新SVG元素添加为子节点。
|
|
107
108
|
if (svgIndex === -1) {
|
|
108
|
-
|
|
109
|
+
this.addChild(toSvg);
|
|
109
110
|
}
|
|
110
111
|
else {
|
|
111
112
|
// 替换找到的SVG元素为新SVG元素。
|
|
112
113
|
if (fromSvg) {
|
|
113
|
-
fromSvg !== toSvg &&
|
|
114
|
+
fromSvg !== toSvg && this.replaceSvg(toSvg, fromSvg);
|
|
114
115
|
}
|
|
115
116
|
else {
|
|
116
|
-
|
|
117
|
+
this.addChild(toSvg);
|
|
117
118
|
}
|
|
118
|
-
// slotNode.childNodes.splice(svgIndex, 1, toSvg);
|
|
119
|
-
this.clearChildrenDom();
|
|
120
119
|
}
|
|
121
120
|
// // 设置新SVG元素的父节点为当前节点。
|
|
122
121
|
// toSvg.parent = slotNode;
|
|
123
122
|
// 更新渲染,以显示替换或添加的新SVG元素。
|
|
124
|
-
|
|
123
|
+
// toSvg?.mount(this.dom);
|
|
124
|
+
// this.mount(this.elementParent?.dom);
|
|
125
125
|
}
|
|
126
|
+
// getSlotNode(name = 'default') {
|
|
127
|
+
// return this.slotNodes[name] = this.slotNodes[name] ?? new SlotNode(name);
|
|
128
|
+
// }
|
|
126
129
|
/**
|
|
127
130
|
* 组件挂载后的钩子函数。
|
|
128
131
|
* 该函数目前用于处理加载状态的动画效果。
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { TypeSvgSvg } from '@type-dom/framework';
|
|
2
|
-
import { IUI, IUIConfig } from '../../../ui/ui.interface';
|
|
1
|
+
import { ITypeConfig, ITypeI, TypeSvgSvg } from '@type-dom/framework';
|
|
3
2
|
import { TdIcon } from './td-icon.class';
|
|
4
3
|
/**
|
|
5
4
|
* 定义了图标的接口,继承自IUI接口。
|
|
6
5
|
* 此接口用于规范图标的属性和行为。
|
|
7
6
|
*/
|
|
8
|
-
export interface ITdIcon extends
|
|
7
|
+
export interface ITdIcon extends ITypeI {
|
|
9
8
|
/**
|
|
10
9
|
* 类名,固定为'TdIcon',用于在HTML元素上应用样式。
|
|
11
10
|
*/
|
|
@@ -15,7 +14,7 @@ export interface ITdIcon extends IUI {
|
|
|
15
14
|
* 定义了图标配置的接口,扩展了IUIConfig接口。
|
|
16
15
|
* 这些配置用于自定义图标的展示方式。
|
|
17
16
|
*/
|
|
18
|
-
export interface ITdIconConfig extends
|
|
17
|
+
export interface ITdIconConfig extends ITypeConfig {
|
|
19
18
|
/**
|
|
20
19
|
* 可选。指定一个SVG图形对象,用于显示自定义SVG图标。
|
|
21
20
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeDiv, TypeNode } from '@type-dom/framework';
|
|
2
2
|
import { TdRow } from '../td-row/td-row.class';
|
|
3
3
|
import { ITdCol, ITdColConfig } from './td-col.interface';
|
|
4
|
-
|
|
5
|
-
export declare class TdCol extends UI implements ITdCol {
|
|
4
|
+
export declare class TdCol extends TypeDiv implements ITdCol {
|
|
6
5
|
className: 'TdCol';
|
|
7
6
|
parent?: TdRow;
|
|
8
7
|
props: ITdColConfig;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdCol = void 0;
|
|
4
4
|
const utils_1 = require("@type-dom/utils");
|
|
5
|
-
const
|
|
6
|
-
class TdCol extends
|
|
5
|
+
const framework_1 = require("@type-dom/framework");
|
|
6
|
+
class TdCol extends framework_1.TypeDiv {
|
|
7
7
|
constructor(params = {}) {
|
|
8
|
-
super(
|
|
8
|
+
super();
|
|
9
9
|
// 使用防抖函数包装处理函数
|
|
10
10
|
this.debounceResize = () => (0, utils_1.debounce)(this.resize, 250)();
|
|
11
11
|
this.resize = () => {
|
|
@@ -75,7 +75,7 @@ class TdCol extends ui_abstract_1.UI {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
this.className = 'TdCol';
|
|
78
|
-
this.
|
|
78
|
+
this.slotChild(params.slot);
|
|
79
79
|
this.props = this.useParams(params);
|
|
80
80
|
}
|
|
81
81
|
get screenWidth() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdCol extends
|
|
1
|
+
import { ITypeConfig, ITypeDiv } from '@type-dom/framework';
|
|
2
|
+
export interface ITdCol extends ITypeDiv {
|
|
3
3
|
className: 'TdCol';
|
|
4
4
|
}
|
|
5
|
-
export interface ITdColConfig extends
|
|
5
|
+
export interface ITdColConfig extends ITypeConfig {
|
|
6
6
|
/**
|
|
7
7
|
* @description number of column the grid spans
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeDiv } from '@type-dom/framework';
|
|
2
2
|
import { TdCol } from '../td-col/td-col.class';
|
|
3
3
|
import { ITdRow, ITdRowConfig } from './td-row.interface';
|
|
4
|
-
export declare class TdRow extends
|
|
4
|
+
export declare class TdRow extends TypeDiv implements ITdRow {
|
|
5
5
|
className: 'TdRow';
|
|
6
6
|
props: ITdRowConfig;
|
|
7
7
|
childNodes: TdCol[];
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdRow = void 0;
|
|
4
|
-
const
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
5
|
const td_col_class_1 = require("../td-col/td-col.class");
|
|
6
|
-
class TdRow extends
|
|
6
|
+
class TdRow extends framework_1.TypeDiv {
|
|
7
7
|
// justify: string = 'start';
|
|
8
8
|
// align: string = 'top';
|
|
9
9
|
// tag: string = 'div';
|
|
10
10
|
constructor(params = {}) {
|
|
11
|
-
super(
|
|
11
|
+
super();
|
|
12
12
|
this.className = 'TdRow';
|
|
13
|
+
this.attr.addName('td-row');
|
|
13
14
|
this.style.addObj({
|
|
14
15
|
display: 'flex',
|
|
15
16
|
flexWrap: 'wrap',
|
|
@@ -17,7 +18,7 @@ class TdRow extends ui_abstract_1.UI {
|
|
|
17
18
|
boxSizing: 'border-box'
|
|
18
19
|
});
|
|
19
20
|
this.childNodes = [];
|
|
20
|
-
this.
|
|
21
|
+
this.slotChild(params.slot);
|
|
21
22
|
this.props = this.useParams(params);
|
|
22
23
|
}
|
|
23
24
|
setup() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdRow extends
|
|
1
|
+
import { ITypeConfig, ITypeDiv } from '@type-dom/framework';
|
|
2
|
+
export interface ITdRow extends ITypeDiv {
|
|
3
3
|
className: 'TdRow';
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ export interface ITdRow extends IUI {
|
|
|
8
8
|
* align: string = 'top';
|
|
9
9
|
* tag: string = 'div';
|
|
10
10
|
*/
|
|
11
|
-
export interface ITdRowConfig extends
|
|
11
|
+
export interface ITdRowConfig extends ITypeConfig {
|
|
12
12
|
gutter?: number;
|
|
13
13
|
justify?: string;
|
|
14
14
|
align?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeA } from '@type-dom/framework';
|
|
2
2
|
import { ITdLink, ITdLinkConfig } from './td-link.interface';
|
|
3
|
-
export declare class TdLink extends
|
|
3
|
+
export declare class TdLink extends TypeA implements ITdLink {
|
|
4
4
|
className: 'TdLink';
|
|
5
5
|
props: ITdLinkConfig;
|
|
6
6
|
private inner?;
|
|
@@ -2,19 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdLink = void 0;
|
|
4
4
|
const framework_1 = require("@type-dom/framework");
|
|
5
|
-
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
5
|
const td_link_style_1 = require("../td-link/td-link.style");
|
|
7
|
-
class TdLink extends
|
|
6
|
+
class TdLink extends framework_1.TypeA {
|
|
8
7
|
constructor(params) {
|
|
9
|
-
super(
|
|
8
|
+
super();
|
|
10
9
|
this.className = 'TdLink';
|
|
11
|
-
(0, td_link_style_1.useType)(params);
|
|
12
10
|
this.style.addObj(td_link_style_1.$linkStyle);
|
|
11
|
+
(0, td_link_style_1.useType)(params);
|
|
13
12
|
this.props = this.useParams(params);
|
|
14
13
|
}
|
|
15
|
-
// override beforeCreate() {
|
|
16
|
-
// this.style.addObj($linkStyle);
|
|
17
|
-
// }
|
|
18
14
|
setup() {
|
|
19
15
|
const props = this.props;
|
|
20
16
|
this.attr.addObj({
|
|
@@ -40,7 +36,7 @@ class TdLink extends ui_abstract_1.UI {
|
|
|
40
36
|
name: 'inner',
|
|
41
37
|
styleObj: td_link_style_1.$linkInnerStyle
|
|
42
38
|
});
|
|
43
|
-
this.inner.
|
|
39
|
+
this.inner.slotChild(props.slot);
|
|
44
40
|
this.addChild(this.inner);
|
|
45
41
|
this.addEvents({
|
|
46
42
|
click: (evt) => {
|
|
@@ -50,7 +46,7 @@ class TdLink extends ui_abstract_1.UI {
|
|
|
50
46
|
if (this.props.type) {
|
|
51
47
|
if (this.props.disabled) {
|
|
52
48
|
this.style.setObj({
|
|
53
|
-
cursor: '
|
|
49
|
+
cursor: 'not-allowed'
|
|
54
50
|
});
|
|
55
51
|
}
|
|
56
52
|
else {
|
|
@@ -95,7 +91,7 @@ class TdLink extends ui_abstract_1.UI {
|
|
|
95
91
|
});
|
|
96
92
|
}
|
|
97
93
|
handleClick(event) {
|
|
98
|
-
this.emit('click', event);
|
|
94
|
+
// this.emit('click', event); // 会死循环的
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
exports.TdLink = TdLink;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITypeA, ITypeConfig } from '@type-dom/framework';
|
|
2
2
|
import { TdIcon } from '../td-icon/td-icon.class';
|
|
3
|
-
export interface ITdLink extends
|
|
3
|
+
export interface ITdLink extends ITypeA {
|
|
4
4
|
className: 'TdLink';
|
|
5
5
|
}
|
|
6
6
|
export type ITdLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger';
|
|
7
|
-
export interface ITdLinkConfig extends
|
|
7
|
+
export interface ITdLinkConfig extends ITypeConfig {
|
|
8
8
|
title?: string;
|
|
9
9
|
/**
|
|
10
10
|
* @description type
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeDiv } from '@type-dom/framework';
|
|
2
2
|
import { TdScrollbarThumb } from '../thumb/thumb.class';
|
|
3
3
|
import { ITdScrollbarBar, ITdScrollbarBarConfig } from './bar.interface';
|
|
4
|
-
export declare class TdScrollbarBar extends
|
|
4
|
+
export declare class TdScrollbarBar extends TypeDiv implements ITdScrollbarBar {
|
|
5
5
|
className: 'TdScrollbarBar';
|
|
6
6
|
props: ITdScrollbarBarConfig;
|
|
7
7
|
thumbs: [TdScrollbarThumb, TdScrollbarThumb];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TdScrollbarBar = void 0;
|
|
4
|
-
const
|
|
4
|
+
const framework_1 = require("@type-dom/framework");
|
|
5
5
|
const thumb_class_1 = require("../thumb/thumb.class");
|
|
6
|
-
class TdScrollbarBar extends
|
|
6
|
+
class TdScrollbarBar extends framework_1.TypeDiv {
|
|
7
7
|
constructor(params = {}) {
|
|
8
|
-
super(
|
|
8
|
+
super();
|
|
9
9
|
this.className = 'TdScrollbarBar';
|
|
10
|
-
this.attr.addName('td-scrollbar-bar');
|
|
10
|
+
this.attr.addName('td-scrollbar-bar-slot');
|
|
11
11
|
this.style.addObj({
|
|
12
12
|
position: 'absolute',
|
|
13
13
|
right: '2px',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITdScrollbarBar extends
|
|
1
|
+
import { ITypeConfig, ITypeDiv } from '@type-dom/framework';
|
|
2
|
+
export interface ITdScrollbarBar extends ITypeDiv {
|
|
3
3
|
className: 'TdScrollbarBar';
|
|
4
4
|
}
|
|
5
|
-
export interface ITdScrollbarBarConfig extends
|
|
5
|
+
export interface ITdScrollbarBarConfig extends ITypeConfig {
|
|
6
6
|
always?: boolean;
|
|
7
7
|
minSize?: number;
|
|
8
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeHtml } from '@type-dom/framework';
|
|
2
2
|
import { ITdScrollbar, ITdScrollbarConfig } from './td-scrollbar.interface';
|
|
3
|
-
export declare class TdScrollbar extends
|
|
3
|
+
export declare class TdScrollbar extends TypeHtml implements ITdScrollbar {
|
|
4
4
|
className: 'TdScrollbar';
|
|
5
|
+
nodeName: string;
|
|
6
|
+
dom: HTMLElement;
|
|
5
7
|
props: ITdScrollbarConfig;
|
|
6
8
|
private wrap;
|
|
7
9
|
private view;
|