@type-dom/ui 0.1.1 → 0.1.2
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 +101 -11
- package/package.json +10 -2
- package/src/components/base/style/css.d.ts +1 -1
- package/src/components/base/style/css.js +1 -1
- package/src/components/basic/index.d.ts +0 -1
- package/src/components/basic/index.js +1 -3
- package/src/components/basic/td-button/style/index.d.ts +1 -1
- package/src/components/basic/td-button/style/index.js +1 -1
- package/src/components/basic/td-button/td-button.abstract.js +8 -9
- package/src/components/basic/td-button/td-button.interface.d.ts +2 -1
- package/src/components/basic/td-button/td-button.stories.d.ts +4 -0
- package/src/components/basic/td-button/td-button.stories.js +15 -0
- package/src/components/basic/td-button/use-button.d.ts +2 -2
- package/src/components/basic/td-button/use-button.js +2 -2
- package/src/components/basic/td-button-group/td-button-group.class.d.ts +3 -3
- package/src/components/basic/td-button-group/td-button-group.class.js +2 -2
- package/src/components/basic/td-button-group/td-button-group.interface.d.ts +2 -2
- package/src/components/basic/td-container/style/css.d.ts +1 -1
- package/src/components/basic/td-container/style/css.js +1 -1
- package/src/components/basic/td-container/td-aside/style/css.d.ts +1 -1
- package/src/components/basic/td-container/td-aside/style/css.js +1 -1
- package/src/components/basic/td-container/td-aside/style/index.d.ts +1 -1
- package/src/components/basic/td-container/td-aside/style/index.js +1 -1
- package/src/components/basic/td-container/td-aside/td-aside.class.js +7 -6
- package/src/components/basic/td-container/td-container.class.d.ts +1 -5
- package/src/components/basic/td-container/td-container.class.js +5 -7
- package/src/components/basic/td-container/td-container.js +2 -2
- package/src/components/basic/td-container/td-footer/style/css.d.ts +1 -1
- package/src/components/basic/td-container/td-footer/style/css.js +1 -1
- package/src/components/basic/td-container/td-footer/style/index.d.ts +1 -1
- package/src/components/basic/td-container/td-footer/style/index.js +1 -1
- package/src/components/basic/td-container/td-header/style/css.d.ts +1 -1
- package/src/components/basic/td-container/td-header/style/css.js +1 -1
- package/src/components/basic/td-container/td-header/style/index.d.ts +1 -1
- package/src/components/basic/td-container/td-header/style/index.js +1 -1
- package/src/components/basic/td-container/td-header/td-header.class.js +1 -1
- package/src/components/basic/td-container/td-main/style/css.d.ts +1 -1
- package/src/components/basic/td-container/td-main/style/css.js +1 -1
- package/src/components/basic/td-container/td-main/style/index.d.ts +1 -1
- package/src/components/basic/td-container/td-main/style/index.js +1 -1
- package/src/components/basic/td-icon/td-icon.class.js +1 -1
- package/src/components/basic/td-layout/td-col/style/css.d.ts +1 -1
- package/src/components/basic/td-layout/td-col/style/css.js +1 -1
- package/src/components/basic/td-layout/td-col/td-col.class.js +1 -1
- package/src/components/basic/td-layout/td-row/style/css.d.ts +1 -1
- package/src/components/basic/td-layout/td-row/style/css.js +1 -1
- package/src/components/basic/td-scrollbar/bar/bar.class.d.ts +9 -16
- package/src/components/basic/td-scrollbar/bar/bar.class.js +51 -48
- package/src/components/basic/td-scrollbar/bar/bar.const.d.ts +2 -2
- package/src/components/basic/td-scrollbar/bar/bar.const.js +1 -1
- package/src/components/basic/td-scrollbar/bar/bar.interface.d.ts +3 -3
- package/src/components/basic/td-scrollbar/style/css.d.ts +1 -1
- package/src/components/basic/td-scrollbar/style/css.js +1 -1
- package/src/components/basic/td-scrollbar/td-scrollbar.class.d.ts +8 -10
- package/src/components/basic/td-scrollbar/td-scrollbar.class.js +145 -110
- package/src/components/basic/td-scrollbar/td-scrollbar.const.d.ts +2 -2
- package/src/components/basic/td-scrollbar/td-scrollbar.interface.d.ts +14 -6
- package/src/components/basic/td-scrollbar/thumb/thumb.class.d.ts +5 -7
- package/src/components/basic/td-scrollbar/thumb/thumb.class.js +85 -95
- package/src/components/basic/td-scrollbar/thumb/thumb.interface.d.ts +7 -6
- package/src/components/basic/td-scrollbar/util.d.ts +2 -2
- package/src/components/basic/td-scrollbar/util.js +11 -4
- package/src/components/basic/td-space/style/css.d.ts +1 -1
- package/src/components/basic/td-space/style/css.js +1 -1
- package/src/components/basic/td-space/td-space.class.js +6 -5
- package/src/components/basic/td-space/td-space.interface.d.ts +1 -2
- package/src/components/basic/td-space/use-space.d.ts +2 -2
- package/src/components/basic/td-space/use-space.js +7 -3
- package/src/components/basic/td-text/td-text.class.js +1 -1
- package/src/components/configuration/td-config-provider/hooks/use-global-config.d.ts +1 -1
- package/src/components/configuration/td-config-provider/hooks/use-global-config.js +8 -5
- package/src/components/configuration/td-config-provider/style/css.d.ts +1 -1
- package/src/components/configuration/td-config-provider/style/css.js +1 -1
- package/src/components/data/index.d.ts +4 -0
- package/src/components/data/index.js +5 -1
- package/src/components/data/td-avatar/td-avatar.class.js +3 -2
- package/src/components/data/td-badge/td-badge.class.js +1 -1
- package/src/components/data/td-card/style/css.d.ts +1 -1
- package/src/components/data/td-card/style/css.js +1 -1
- package/src/components/data/td-carousel/style/css.d.ts +1 -1
- package/src/components/data/td-carousel/style/css.js +1 -1
- package/src/components/data/td-carousel/td-carousel-item.class.js +1 -1
- package/src/components/data/td-carousel/use-carousel-item.d.ts +1 -1
- package/src/components/data/td-carousel/use-carousel.d.ts +2 -2
- package/src/components/data/td-check-tag/style/css.d.ts +1 -1
- package/src/components/data/td-check-tag/style/css.js +1 -1
- package/src/components/data/td-collapse/style/css.d.ts +1 -1
- package/src/components/data/td-collapse/style/css.js +1 -1
- package/src/components/data/td-collapse/td-collapse.class.js +1 -1
- package/src/components/data/td-collapse/td-collapse.interface.d.ts +2 -0
- package/src/components/data/td-collapse/use-collapse-item.js +2 -2
- package/src/components/data/td-collapse/use-collapse.d.ts +2 -2
- package/src/components/data/td-collapse/use-collapse.js +1 -1
- package/src/components/data/td-collapse-item/style/css.d.ts +1 -1
- package/src/components/data/td-collapse-item/style/css.js +1 -1
- package/src/components/data/td-collapse-item/td-collapse-item.class.js +2 -2
- package/src/components/data/td-collapse-transition/style/css.d.ts +1 -1
- package/src/components/data/td-collapse-transition/style/css.js +1 -1
- package/src/components/data/td-count-down/style/css.d.ts +1 -1
- package/src/components/data/td-count-down/style/css.js +1 -1
- 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 +5 -4
- package/src/components/data/td-descriptions/style/css.d.ts +2 -2
- package/src/components/data/td-descriptions/style/css.js +2 -2
- package/src/components/data/td-descriptions-item/style/css.d.ts +1 -1
- package/src/components/data/td-descriptions-item/style/css.js +1 -1
- package/src/components/data/td-empty/img-empty.class.js +0 -15
- package/src/components/data/td-empty/style/css.d.ts +1 -1
- package/src/components/data/td-empty/style/css.js +1 -1
- package/src/components/data/td-empty/td-empty.class.js +5 -5
- package/src/components/data/td-image/style/css.d.ts +2 -2
- package/src/components/data/td-image/style/css.js +2 -2
- package/src/components/data/td-image/td-image.class.js +93 -143
- package/src/components/data/td-image/td-image.const.js +4 -2
- package/src/components/data/td-image/td-image.interface.d.ts +5 -0
- package/src/components/data/td-image-viewer/style/css.d.ts +1 -1
- package/src/components/data/td-image-viewer/style/css.js +1 -1
- package/src/components/data/td-image-viewer/td-image-viewer.class.js +80 -28
- package/src/components/data/td-image-viewer/td-image-viewer.const.js +2 -0
- package/src/components/data/td-image-viewer/td-image-viewer.interface.d.ts +10 -1
- package/src/components/data/td-pagination/style/css.d.ts +1 -1
- package/src/components/data/td-pagination/style/css.js +1 -1
- package/src/components/data/td-pagination/td-pagination.class.js +29 -35
- package/src/components/data/td-progress/style/css.d.ts +1 -1
- package/src/components/data/td-progress/style/css.js +1 -1
- package/src/components/data/td-progress/td-progress.class.d.ts +1 -0
- package/src/components/data/td-progress/td-progress.class.js +33 -26
- package/src/components/data/td-progress/td-progress.interface.d.ts +1 -1
- package/src/components/data/td-result/style/css.d.ts +1 -1
- package/src/components/data/td-result/style/css.js +1 -1
- package/src/components/data/td-segmented/style/css.d.ts +1 -1
- package/src/components/data/td-segmented/style/css.js +1 -1
- package/src/components/data/td-segmented/td-segmented.class.js +51 -54
- package/src/components/data/td-segmented/td-segmented.const.d.ts +2 -1
- package/src/components/data/td-segmented/td-segmented.const.js +6 -1
- package/src/components/data/td-segmented/td-segmented.interface.d.ts +17 -3
- package/src/components/data/td-statistic/style/css.d.ts +1 -1
- package/src/components/data/td-statistic/style/css.js +1 -1
- package/src/components/data/td-statistic/td-statistic.class.d.ts +2 -1
- package/src/components/data/td-statistic/td-statistic.class.js +2 -2
- package/src/components/data/td-statistic/td-statistic.interface.d.ts +1 -1
- package/src/components/data/td-tag/style/css.d.ts +1 -1
- package/src/components/data/td-tag/style/css.js +1 -1
- package/src/components/data/td-tag/td-tag.style.js +3 -3
- package/src/components/feedback/index.d.ts +2 -0
- package/src/components/feedback/index.js +3 -1
- package/src/components/feedback/td-alert/td-alert.class.js +3 -3
- package/src/components/feedback/td-alert/td-alert.style.js +0 -2
- package/src/components/feedback/td-dialog/style/css.d.ts +1 -1
- package/src/components/feedback/td-dialog/style/css.js +1 -1
- package/src/components/feedback/td-dialog/td-dialog.class.js +3 -3
- package/src/components/feedback/td-dialog/use-dialog.js +1 -1
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.js +4 -4
- package/src/components/feedback/td-dialog-content/td-dialog-content.interface.d.ts +2 -1
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.js +5 -3
- package/src/components/feedback/td-focus-trap/td-focus-trap.interface.d.ts +1 -2
- package/src/components/feedback/td-focus-trap/utils.d.ts +1 -1
- package/src/components/feedback/td-loading/style/css.d.ts +1 -1
- package/src/components/feedback/td-loading/style/css.js +1 -1
- package/src/components/feedback/td-message/instance.js +3 -3
- package/src/components/feedback/td-message/method.js +4 -4
- package/src/components/feedback/td-message/style/css.d.ts +1 -1
- package/src/components/feedback/td-message/style/css.js +1 -1
- package/src/components/feedback/td-message/td-message.class.js +1 -1
- package/src/components/feedback/td-message-box/message-box.js +30 -5
- package/src/components/feedback/td-message-box/style/css.d.ts +1 -1
- package/src/components/feedback/td-message-box/style/css.js +1 -1
- package/src/components/feedback/td-message-box/td-message-box.class.js +3 -3
- package/src/components/feedback/td-message-box/td-message-box.interface.d.ts +2 -0
- package/src/components/feedback/td-notification/style/css.d.ts +1 -1
- package/src/components/feedback/td-notification/style/css.js +1 -1
- package/src/components/feedback/td-notification/td-notification.class.js +3 -3
- package/src/components/feedback/td-only-child/td-only-child.class.js +2 -2
- package/src/components/feedback/td-overlay/style/css.d.ts +1 -1
- package/src/components/feedback/td-overlay/style/css.js +1 -1
- package/src/components/feedback/td-overlay/td-overlay.interface.d.ts +2 -2
- package/src/components/feedback/td-popconfirm/style/css.d.ts +4 -0
- package/src/components/feedback/td-popconfirm/style/css.js +6 -0
- package/src/components/feedback/td-popconfirm/style/index.d.ts +4 -0
- package/src/components/feedback/td-popconfirm/style/index.js +6 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.class.d.ts +9 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.class.js +109 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.const.d.ts +12 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.const.js +24 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.interface.d.ts +68 -0
- package/src/components/feedback/td-popconfirm/td-popconfirm.interface.js +1 -0
- package/src/components/feedback/td-popover/style/css.d.ts +1 -1
- package/src/components/feedback/td-popover/style/css.js +1 -1
- package/src/components/feedback/td-popover/td-popover.class.d.ts +1 -2
- package/src/components/feedback/td-popover/td-popover.class.js +7 -5
- package/src/components/feedback/td-popover/td-popover.interface.d.ts +4 -0
- package/src/components/feedback/td-popper/arrow/arrow.class.js +2 -2
- package/src/components/feedback/td-popper/composable/use-content-dom.d.ts +14 -13
- package/src/components/feedback/td-popper/composable/use-content-dom.js +8 -1
- package/src/components/feedback/td-popper/composable/use-content.d.ts +8 -3
- package/src/components/feedback/td-popper/composable/use-content.js +21 -13
- package/src/components/feedback/td-popper/composable/use-focus-trap.d.ts +1 -1
- package/src/components/feedback/td-popper/composable/use-focus-trap.js +1 -1
- package/src/components/feedback/td-popper/content/content.class.d.ts +2 -2
- package/src/components/feedback/td-popper/content/content.class.js +13 -46
- package/src/components/feedback/td-popper/content/content.interface.d.ts +5 -6
- package/src/components/feedback/td-popper/style/css.d.ts +1 -1
- package/src/components/feedback/td-popper/style/css.js +1 -1
- package/src/components/feedback/td-popper/td-popper.interface.d.ts +2 -1
- package/src/components/feedback/td-popper/trigger/trigger.class.js +11 -6
- package/src/components/feedback/td-popper/utils.d.ts +2 -10
- package/src/components/feedback/td-popper/utils.js +6 -5
- package/src/components/feedback/td-tooltip/content/content.class.js +15 -9
- package/src/components/feedback/td-tooltip/content/content.interface.d.ts +2 -2
- package/src/components/feedback/td-tooltip/style/css.d.ts +1 -1
- package/src/components/feedback/td-tooltip/style/css.js +1 -1
- package/src/components/feedback/td-tooltip/td-tooltip.class.js +28 -31
- package/src/components/feedback/td-tooltip/td-tooltip.const.d.ts +26 -27
- package/src/components/feedback/td-tooltip/td-tooltip.const.js +1 -1
- package/src/components/feedback/td-tooltip/trigger/trigger.class.js +11 -8
- package/src/components/feedback/td-tooltip/trigger/trigger.interface.d.ts +1 -1
- package/src/components/feedback/td-tooltip/utils.d.ts +2 -1
- package/src/components/feedback/td-tooltip/utils.js +6 -5
- package/src/components/form/checkbox-group/checkbox-option/checkbox-option.class.js +7 -7
- package/src/components/form/index.d.ts +5 -2
- package/src/components/form/index.js +6 -3
- package/src/components/form/td-autocomplete/style/css.d.ts +1 -1
- package/src/components/form/td-autocomplete/style/css.js +1 -1
- package/src/components/form/td-checkbox/composables/use-checkbox-event.js +8 -7
- package/src/components/form/td-checkbox/composables/use-checkbox-model.d.ts +1 -1
- package/src/components/form/td-checkbox/composables/use-checkbox-model.js +24 -27
- package/src/components/form/td-checkbox/composables/use-checkbox-status.js +3 -2
- package/src/components/form/td-checkbox/composables/use-checkbox.d.ts +1 -1
- package/src/components/form/td-checkbox/composables/use-checkbox.js +6 -1
- package/src/components/form/td-checkbox/td-checkbox.class.js +23 -8
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.js +10 -3
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.js +10 -13
- package/src/components/form/td-date-picker/composables/use-range-picker.d.ts +2 -2
- package/src/components/form/td-date-picker/style/css.d.ts +1 -1
- package/src/components/form/td-date-picker/style/css.js +1 -1
- package/src/components/form/td-form/form-label-wrap/form-label-wrap.class.js +1 -1
- package/src/components/form/td-form/hooks/use-form-common-props.d.ts +2 -2
- package/src/components/form/td-form/hooks/use-form-common-props.js +2 -1
- package/src/components/form/td-form/hooks/use-form-item.d.ts +3 -3
- package/src/components/form/td-form/hooks/use-form-item.js +1 -1
- package/src/components/form/td-form/style/css.d.ts +1 -1
- package/src/components/form/td-form/style/css.js +1 -1
- package/src/components/form/td-form/td-form.interface.d.ts +1 -1
- package/src/components/form/td-form-item/style/css.d.ts +1 -1
- package/src/components/form/td-form-item/style/css.js +1 -1
- package/src/components/form/td-form-item/td-form-item.class.js +2 -2
- package/src/components/form/td-input/style/css.d.ts +1 -1
- package/src/components/form/td-input/style/css.js +1 -1
- package/src/components/form/td-input/td-input-field.class.js +1 -1
- package/src/components/form/td-input/td-input.class.js +60 -51
- package/src/components/form/td-input/td-input.interface.d.ts +3 -3
- package/src/components/form/td-input/{widget/utils.js → utils.js} +16 -11
- package/src/components/form/td-input-number/style/css.d.ts +1 -1
- package/src/components/form/td-input-number/style/css.js +1 -1
- package/src/components/form/td-input-number/td-input-number.class.d.ts +12 -0
- package/src/components/form/td-input-number/td-input-number.class.js +390 -0
- package/src/components/form/td-input-number/td-input-number.const.d.ts +9 -0
- package/src/components/form/td-input-number/td-input-number.const.js +22 -0
- package/src/components/form/td-input-number/td-input-number.interface.d.ts +73 -0
- package/src/components/form/td-input-number/td-input-number.interface.js +1 -0
- package/src/components/form/td-option/style/css.d.ts +1 -1
- package/src/components/form/td-option/style/css.js +1 -1
- package/src/components/form/td-option/td-option.class.d.ts +12 -3
- package/src/components/form/td-option/td-option.class.js +35 -31
- package/src/components/form/td-option/td-option.const.d.ts +1 -0
- package/src/components/form/td-option/td-option.const.js +3 -0
- package/src/components/form/td-option/td-option.interface.d.ts +13 -0
- package/src/components/form/td-option/useOption.d.ts +6 -5
- package/src/components/form/td-option/useOption.js +25 -20
- package/src/components/form/td-option-group/style/css.d.ts +1 -1
- package/src/components/form/td-option-group/style/css.js +1 -1
- package/src/components/form/td-option-group/td-option-group.class.js +2 -2
- package/src/components/form/td-radio/style/css.d.ts +1 -1
- package/src/components/form/td-radio/style/css.js +1 -1
- package/src/components/form/td-radio/td-radio.class.js +4 -3
- package/src/components/form/td-radio/use-radio.d.ts +3 -3
- package/src/components/form/td-radio/use-radio.js +13 -16
- package/src/components/form/td-radio-button/style/css.d.ts +1 -1
- package/src/components/form/td-radio-button/style/css.js +1 -1
- package/src/components/form/td-radio-button/td-radio-button.class.js +1 -1
- package/src/components/form/td-radio-group/style/css.d.ts +1 -1
- package/src/components/form/td-radio-group/style/css.js +1 -1
- package/src/components/form/td-radio-group/td-radio-group.class.js +5 -5
- package/src/components/form/td-rate/style/css.d.ts +1 -1
- package/src/components/form/td-rate/style/css.js +1 -1
- package/src/components/form/td-rate/td-rate.class.js +9 -10
- package/src/components/form/td-rate/td-rate.interface.d.ts +2 -1
- package/src/components/form/td-select/style/css.d.ts +7 -7
- package/src/components/form/td-select/style/css.js +7 -7
- package/src/components/form/td-select/td-options/td-options.class.d.ts +6 -0
- package/src/components/form/td-select/td-options/td-options.class.js +49 -0
- package/src/components/form/td-select/td-select-dropdown/td-select-dropdown.class.js +4 -4
- package/src/components/form/td-select/td-select.class.d.ts +1 -0
- package/src/components/form/td-select/td-select.class.js +178 -144
- package/src/components/form/td-select/td-select.const.d.ts +13 -0
- package/src/components/form/td-select/td-select.const.js +18 -1
- package/src/components/form/td-select/td-select.interface.d.ts +33 -12
- package/src/components/form/td-select/token.js +1 -1
- package/src/components/form/td-select/useSelect.d.ts +111 -64
- package/src/components/form/td-select/useSelect.js +225 -196
- package/src/components/form/td-slider/button/button.class.d.ts +10 -2
- package/src/components/form/td-slider/button/button.class.js +56 -14
- package/src/components/form/td-slider/button/button.interface.d.ts +7 -3
- package/src/components/form/td-slider/composables/index.d.ts +6 -0
- package/src/components/form/td-slider/composables/index.js +9 -0
- package/src/components/form/td-slider/composables/use-lifecycle.d.ts +4 -0
- package/src/components/form/td-slider/composables/use-lifecycle.js +43 -0
- package/src/components/form/td-slider/composables/use-marks.d.ts +7 -0
- package/src/components/form/td-slider/composables/use-marks.js +27 -0
- package/src/components/form/td-slider/composables/use-slide.d.ts +24 -3
- package/src/components/form/td-slider/composables/use-slide.js +163 -200
- package/src/components/form/td-slider/composables/use-slider-button.d.ts +20 -0
- package/src/components/form/td-slider/composables/use-slider-button.js +266 -0
- package/src/components/form/td-slider/composables/use-stops.d.ts +9 -0
- package/src/components/form/td-slider/composables/use-stops.js +45 -0
- package/src/components/form/td-slider/composables/use-watch.d.ts +4 -0
- package/src/components/form/td-slider/composables/use-watch.js +97 -0
- package/src/components/form/td-slider/constants.d.ts +11 -0
- package/src/components/form/td-slider/constants.js +4 -0
- package/src/components/form/td-slider/mark/mark.class.d.ts +8 -0
- package/src/components/form/td-slider/mark/mark.class.js +27 -0
- package/src/components/form/td-slider/mark/mark.interface.d.ts +8 -0
- package/src/components/form/td-slider/style/css.d.ts +1 -1
- package/src/components/form/td-slider/style/css.js +1 -1
- package/src/components/form/td-slider/td-slider.class.d.ts +4 -2
- package/src/components/form/td-slider/td-slider.class.js +242 -33
- package/src/components/form/td-slider/td-slider.interface.d.ts +20 -11
- package/src/components/form/td-switch/style/css.d.ts +1 -1
- package/src/components/form/td-switch/style/css.js +1 -1
- package/src/components/form/td-switch/td-switch.class.js +14 -5
- package/src/components/form/td-switch/td-switch.const.js +1 -1
- package/src/components/form/td-switch/widget/td-switch-core.js +4 -4
- package/src/components/form/td-time-picker/common/props.d.ts +2 -1
- package/src/components/form/td-time-picker/style/css.d.ts +1 -1
- package/src/components/form/td-time-picker/style/css.js +1 -1
- package/src/components/form/td-time-picker/time-picker-com/basic-time-spinner.class.js +6 -5
- package/src/components/form/td-upload/ajax.d.ts +9 -0
- package/src/components/form/td-upload/ajax.js +100 -0
- package/src/components/form/td-upload/constants.d.ts +6 -0
- package/src/components/form/td-upload/constants.js +5 -0
- package/src/components/form/td-upload/style/css.d.ts +1 -1
- package/src/components/form/td-upload/style/css.js +1 -1
- package/src/components/form/td-upload/style/index.d.ts +1 -1
- package/src/components/form/td-upload/style/index.js +1 -1
- package/src/components/form/td-upload/td-upload.class.d.ts +15 -0
- package/src/components/form/td-upload/td-upload.class.js +107 -0
- package/src/components/form/td-upload/td-upload.const.d.ts +5 -0
- package/src/components/form/td-upload/td-upload.const.js +22 -0
- package/src/components/form/td-upload/td-upload.interface.d.ts +160 -0
- package/src/components/form/td-upload/td-upload.interface.js +1 -0
- package/src/components/form/td-upload/upload-content/upload-content.class.d.ts +11 -0
- package/src/components/form/td-upload/upload-content/upload-content.class.js +218 -0
- package/src/components/form/td-upload/upload-content/upload-content.const.d.ts +2 -0
- package/src/components/form/td-upload/upload-content/upload-content.const.js +6 -0
- package/src/components/form/td-upload/upload-content/upload-content.interface.d.ts +15 -0
- package/src/components/form/td-upload/upload-content/upload-content.interface.js +2 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.class.d.ts +8 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.class.js +73 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.const.d.ts +5 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.const.js +10 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.interface.d.ts +7 -0
- package/src/components/form/td-upload/upload-dragger/upload-dragger.interface.js +2 -0
- package/src/components/form/td-upload/upload-list/upload-list.class.d.ts +8 -0
- package/src/components/form/td-upload/upload-list/upload-list.class.js +196 -0
- package/src/components/form/td-upload/upload-list/upload-list.const.d.ts +3 -0
- package/src/components/form/td-upload/upload-list/upload-list.const.js +13 -0
- package/src/components/form/td-upload/upload-list/upload-list.interface.d.ts +19 -0
- package/src/components/form/td-upload/upload-list/upload-list.interface.js +2 -0
- package/src/components/form/td-upload/use-handlers.d.ts +16 -0
- package/src/components/form/td-upload/use-handlers.js +175 -0
- package/src/components/navigation/index.d.ts +1 -0
- package/src/components/navigation/index.js +3 -0
- package/src/components/navigation/td-affix/style/css.d.ts +1 -1
- package/src/components/navigation/td-affix/style/css.js +1 -1
- package/src/components/navigation/td-affix/td-affix.class.d.ts +1 -0
- package/src/components/navigation/td-affix/td-affix.class.js +78 -36
- package/src/components/navigation/td-anchor/style/css.d.ts +1 -1
- package/src/components/navigation/td-anchor/style/css.js +1 -1
- package/src/components/navigation/td-anchor-link/style/css.d.ts +1 -1
- package/src/components/navigation/td-anchor-link/style/css.js +1 -1
- package/src/components/navigation/td-backtop/style/css.d.ts +1 -1
- package/src/components/navigation/td-backtop/style/css.js +1 -1
- package/src/components/navigation/td-backtop/td-backtop.class.d.ts +1 -0
- package/src/components/navigation/td-backtop/td-backtop.class.js +3 -2
- package/src/components/navigation/td-backtop/td-backtop.const.js +1 -0
- package/src/components/navigation/td-backtop/use-backtop.js +2 -1
- package/src/components/navigation/td-breadcrumb/style/css.d.ts +1 -1
- package/src/components/navigation/td-breadcrumb/style/css.js +1 -1
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.js +1 -1
- package/src/components/navigation/td-breadcrumb-item/style/css.d.ts +1 -1
- package/src/components/navigation/td-breadcrumb-item/style/css.js +1 -1
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.interface.d.ts +2 -1
- package/src/components/navigation/td-dropdown/style/css.d.ts +1 -1
- package/src/components/navigation/td-dropdown/style/css.js +1 -1
- package/src/components/navigation/td-dropdown-item/style/css.d.ts +1 -1
- package/src/components/navigation/td-dropdown-item/style/css.js +1 -1
- package/src/components/navigation/td-menu/index.d.ts +9 -0
- package/src/components/navigation/td-menu/index.js +13 -0
- package/src/components/navigation/td-menu/style/css.d.ts +2 -2
- package/src/components/navigation/td-menu/style/css.js +2 -2
- package/src/components/navigation/td-menu/td-menu-collapse-transition/td-menu-collapse-transition.class.d.ts +6 -0
- package/src/components/navigation/td-menu/td-menu-collapse-transition/td-menu-collapse-transition.class.js +56 -0
- package/src/components/navigation/td-menu/td-menu-item/style/css.d.ts +2 -0
- package/src/components/navigation/td-menu/td-menu-item/style/css.js +4 -0
- package/src/components/navigation/td-menu/td-menu-item/style/index.d.ts +2 -0
- package/src/components/navigation/td-menu/td-menu-item/style/index.js +4 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.class.d.ts +11 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.class.js +107 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.const.d.ts +4 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.const.js +10 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.interface.d.ts +20 -0
- package/src/components/navigation/td-menu/td-menu-item/td-menu-item.interface.js +2 -0
- package/src/components/navigation/td-menu/td-menu-item-group/style/css.d.ts +2 -0
- package/src/components/navigation/td-menu/td-menu-item-group/style/css.js +4 -0
- package/src/components/navigation/td-menu/td-menu-item-group/style/index.d.ts +2 -0
- package/src/components/navigation/td-menu/td-menu-item-group/style/index.js +4 -0
- package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.class.d.ts +9 -0
- package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.class.js +28 -0
- package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.interface.d.ts +10 -0
- package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.interface.js +2 -0
- package/src/components/navigation/td-menu/td-menu.class.d.ts +3 -2
- package/src/components/navigation/td-menu/td-menu.class.js +297 -27
- package/src/components/navigation/td-menu/td-menu.const.d.ts +8 -0
- package/src/components/navigation/td-menu/td-menu.const.js +29 -0
- package/src/components/navigation/td-menu/td-menu.interface.d.ts +86 -7
- package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.class.d.ts +10 -0
- package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.class.js +301 -0
- package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.interface.d.ts +53 -0
- package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.interface.js +2 -0
- package/src/components/navigation/td-menu/types.d.ts +36 -0
- package/src/components/navigation/td-menu/types.js +2 -0
- package/src/components/navigation/td-menu/use-menu-color.d.ts +2 -0
- package/src/components/navigation/td-menu/use-menu-color.js +14 -0
- package/src/components/navigation/td-menu/use-menu-css-var.d.ts +2 -0
- package/src/components/navigation/td-menu/use-menu-css-var.js +20 -0
- package/src/components/navigation/td-menu/use-menu.d.ts +8 -0
- package/src/components/navigation/td-menu/use-menu.js +31 -0
- package/src/components/navigation/td-menu/utils/menu-bar.d.ts +7 -0
- package/src/components/navigation/td-menu/utils/menu-bar.js +21 -0
- package/src/components/navigation/td-menu/utils/menu-item.d.ts +9 -0
- package/src/components/navigation/td-menu/utils/menu-item.js +58 -0
- package/src/components/navigation/td-menu/utils/submenu.d.ts +12 -0
- package/src/components/navigation/td-menu/utils/submenu.js +66 -0
- package/src/components/navigation/td-menu-item/style/css.d.ts +1 -1
- package/src/components/navigation/td-menu-item/style/css.js +1 -1
- package/src/components/navigation/td-menu-item-group/style/css.d.ts +1 -1
- package/src/components/navigation/td-menu-item-group/style/css.js +1 -1
- package/src/components/navigation/td-page-header/style/css.d.ts +2 -2
- package/src/components/navigation/td-page-header/style/css.js +2 -2
- package/src/components/navigation/td-step/style/css.d.ts +1 -1
- package/src/components/navigation/td-step/style/css.js +1 -1
- package/src/components/navigation/td-steps/style/css.d.ts +1 -1
- package/src/components/navigation/td-steps/style/css.js +1 -1
- package/src/components/navigation/td-tab-pane/style/css.d.ts +1 -1
- package/src/components/navigation/td-tab-pane/style/css.js +1 -1
- package/src/components/navigation/td-tabs/style/css.d.ts +1 -1
- package/src/components/navigation/td-tabs/style/css.js +1 -1
- package/src/components/others/collapsible-box/heading/expand-heading.js +1 -1
- package/src/components/others/example/op-btns.js +1 -1
- package/src/components/others/menus/menu.d.ts +6 -5
- package/src/components/others/menus/menu.js +24 -10
- package/src/components/others/menus/menus.d.ts +5 -5
- package/src/components/others/menus/menus.js +15 -23
- package/src/components/others/td-divider/style/css.d.ts +1 -1
- package/src/components/others/td-divider/style/css.js +1 -1
- package/src/hooks/use-attrs/index.d.ts +1 -1
- package/src/hooks/use-calc-input-width/index.d.ts +1 -1
- package/src/hooks/use-delayed-toggle/index.js +1 -1
- package/src/hooks/use-deprecated/index.d.ts +1 -1
- package/src/hooks/use-empty-values/index.d.ts +4 -2
- package/src/hooks/use-empty-values/index.js +8 -8
- package/src/hooks/use-focus-controller/index.d.ts +1 -1
- package/src/hooks/use-focus-controller/index.js +1 -1
- package/src/hooks/use-lockscreen/index.js +1 -1
- package/src/hooks/use-model-toggle/index.js +11 -6
- package/src/hooks/use-namespace/index.d.ts +1 -1
- package/src/hooks/use-popper/index.d.ts +9 -4
- package/src/hooks/use-popper/index.js +42 -34
- package/src/hooks/use-popper-container/index.js +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/locale/index.d.ts +11 -0
- package/src/locale/index.js +24 -2
- package/src/locale/lang/hi.d.ts +180 -0
- package/src/locale/lang/hi.js +181 -0
- package/src/locale/lang/ku.js +1 -1
- package/src/locale/lang/lo.d.ts +180 -0
- package/src/locale/lang/lo.js +181 -0
- package/src/locale/lang/ms.d.ts +1 -1
- package/src/locale/lang/ms.js +11 -11
- package/src/locale/lang/no.d.ts +179 -0
- package/src/locale/lang/no.js +180 -0
- package/src/locale/lang/ru.js +4 -4
- package/src/locale/lang/te.d.ts +180 -0
- package/src/locale/lang/te.js +181 -0
- package/src/locale/lang/zh-hk.d.ts +179 -0
- package/src/locale/lang/zh-hk.js +181 -0
- package/src/locale/lang/zh-mo.d.ts +179 -0
- package/src/locale/lang/zh-mo.js +181 -0
- package/src/styles/var.js +5 -5
- package/src/theme-chalk/affix.scss +7 -0
- package/src/theme-chalk/alert.scss +115 -0
- package/src/theme-chalk/anchor-link.scss +41 -0
- package/src/theme-chalk/anchor.scss +88 -0
- package/src/theme-chalk/aside.scss +8 -0
- package/src/theme-chalk/autocomplete.scss +89 -0
- package/src/theme-chalk/avatar.scss +55 -0
- package/src/theme-chalk/backtop.scss +29 -0
- package/src/theme-chalk/badge.scss +58 -0
- package/src/theme-chalk/base.scss +3 -0
- package/src/theme-chalk/breadcrumb-item.scss +0 -0
- package/src/theme-chalk/breadcrumb.scss +62 -0
- package/src/theme-chalk/button-group.scss +80 -0
- package/src/theme-chalk/button.scss +304 -0
- package/src/theme-chalk/calendar.scss +80 -0
- package/src/theme-chalk/card.scss +45 -0
- package/src/theme-chalk/carousel-item.scss +58 -0
- package/src/theme-chalk/carousel.scss +188 -0
- package/src/theme-chalk/cascader-panel.scss +138 -0
- package/src/theme-chalk/cascader.scss +247 -0
- package/src/theme-chalk/check-tag.scss +60 -0
- package/src/theme-chalk/checkbox-button.scss +140 -0
- package/src/theme-chalk/checkbox-group.scss +7 -0
- package/src/theme-chalk/checkbox.scss +298 -0
- package/src/theme-chalk/col.scss +48 -0
- package/src/theme-chalk/collapse-item.scss +0 -0
- package/src/theme-chalk/collapse-transition.scss +0 -0
- package/src/theme-chalk/collapse.scss +70 -0
- package/src/theme-chalk/color/index.scss +20 -0
- package/src/theme-chalk/color-picker.scss +393 -0
- package/src/theme-chalk/common/popup.scss +47 -0
- package/src/theme-chalk/common/transition.scss +122 -0
- package/src/theme-chalk/common/var.scss +1655 -0
- package/src/theme-chalk/config-provider.scss +0 -0
- package/src/theme-chalk/container.scss +14 -0
- package/src/theme-chalk/dark/css-vars.scss +39 -0
- package/src/theme-chalk/dark/var.scss +222 -0
- package/src/theme-chalk/date-picker/date-picker.scss +110 -0
- package/src/theme-chalk/date-picker/date-range-picker.scss +113 -0
- package/src/theme-chalk/date-picker/date-table.scss +158 -0
- package/src/theme-chalk/date-picker/month-table.scss +112 -0
- package/src/theme-chalk/date-picker/picker-panel.scss +131 -0
- package/src/theme-chalk/date-picker/picker.scss +212 -0
- package/src/theme-chalk/date-picker/time-picker.scss +90 -0
- package/src/theme-chalk/date-picker/time-range-picker.scss +33 -0
- package/src/theme-chalk/date-picker/time-spinner.scss +111 -0
- package/src/theme-chalk/date-picker/year-table.scss +108 -0
- package/src/theme-chalk/date-picker.scss +9 -0
- package/src/theme-chalk/descriptions-item.scss +73 -0
- package/src/theme-chalk/descriptions.scss +152 -0
- package/src/theme-chalk/dialog.scss +192 -0
- package/src/theme-chalk/display.scss +12 -0
- package/src/theme-chalk/divider.scss +48 -0
- package/src/theme-chalk/drawer.scss +155 -0
- package/src/theme-chalk/dropdown-item.scss +0 -0
- package/src/theme-chalk/dropdown-menu.scss +0 -0
- package/src/theme-chalk/dropdown.scss +208 -0
- package/src/theme-chalk/empty.scss +49 -0
- package/src/theme-chalk/footer.scss +12 -0
- package/src/theme-chalk/form-item.scss +0 -0
- package/src/theme-chalk/form.scss +244 -0
- package/src/theme-chalk/header.scss +12 -0
- package/src/theme-chalk/icon.scss +45 -0
- package/src/theme-chalk/image-viewer.scss +155 -0
- package/src/theme-chalk/image.scss +49 -0
- package/src/theme-chalk/index.scss +111 -0
- package/src/theme-chalk/infinite-scroll.scss +0 -0
- package/src/theme-chalk/input-number.scss +186 -0
- package/src/theme-chalk/input-tag.scss +220 -0
- package/src/theme-chalk/input.scss +474 -0
- package/src/theme-chalk/link.scss +90 -0
- package/src/theme-chalk/loading.scss +104 -0
- package/src/theme-chalk/main.scss +14 -0
- package/src/theme-chalk/mention.scss +92 -0
- package/src/theme-chalk/menu-item-group.scss +0 -0
- package/src/theme-chalk/menu-item.scss +0 -0
- package/src/theme-chalk/menu.scss +339 -0
- package/src/theme-chalk/message-box.scss +213 -0
- package/src/theme-chalk/message.scss +98 -0
- package/src/theme-chalk/mixins/_button.scss +165 -0
- package/src/theme-chalk/mixins/_col.scss +33 -0
- package/src/theme-chalk/mixins/_var.scss +67 -0
- package/src/theme-chalk/mixins/config.scss +5 -0
- package/src/theme-chalk/mixins/function.scss +88 -0
- package/src/theme-chalk/mixins/mixins.scss +240 -0
- package/src/theme-chalk/mixins/utils.scss +39 -0
- package/src/theme-chalk/notification.scss +107 -0
- package/src/theme-chalk/option-group.scss +33 -0
- package/src/theme-chalk/option.scss +71 -0
- package/src/theme-chalk/overlay.scss +17 -0
- package/src/theme-chalk/page-header.scss +60 -0
- package/src/theme-chalk/pagination.scss +238 -0
- package/src/theme-chalk/popconfirm.scss +16 -0
- package/src/theme-chalk/popover.scss +61 -0
- package/src/theme-chalk/popper.scss +106 -0
- package/src/theme-chalk/progress.scss +179 -0
- package/src/theme-chalk/radio-button.scss +169 -0
- package/src/theme-chalk/radio-group.scss +9 -0
- package/src/theme-chalk/radio.scss +215 -0
- package/src/theme-chalk/rate.scss +108 -0
- package/src/theme-chalk/reset.scss +98 -0
- package/src/theme-chalk/result.scss +57 -0
- package/src/theme-chalk/row.scss +35 -0
- package/src/theme-chalk/scrollbar.scss +97 -0
- package/src/theme-chalk/segmented.scss +183 -0
- package/src/theme-chalk/select-dropdown-v2.scss +1 -0
- package/src/theme-chalk/select-dropdown.scss +57 -0
- package/src/theme-chalk/select-v2.scss +4 -0
- package/src/theme-chalk/select.scss +264 -0
- package/src/theme-chalk/skeleton-item.scss +83 -0
- package/src/theme-chalk/skeleton.scss +44 -0
- package/src/theme-chalk/slider.scss +212 -0
- package/src/theme-chalk/space.scss +20 -0
- package/src/theme-chalk/spinner.scss +43 -0
- package/src/theme-chalk/statistic.scss +35 -0
- package/src/theme-chalk/step.scss +316 -0
- package/src/theme-chalk/steps.scss +21 -0
- package/src/theme-chalk/sub-menu.scss +0 -0
- package/src/theme-chalk/switch.scss +300 -0
- package/src/theme-chalk/tab-pane.scss +0 -0
- package/src/theme-chalk/table-column.scss +98 -0
- package/src/theme-chalk/table-v2.scss +236 -0
- package/src/theme-chalk/table.scss +694 -0
- package/src/theme-chalk/tabs.scss +660 -0
- package/src/theme-chalk/tag.scss +181 -0
- package/src/theme-chalk/text.scss +51 -0
- package/src/theme-chalk/time-picker.scss +5 -0
- package/src/theme-chalk/time-select.scss +37 -0
- package/src/theme-chalk/timeline-item.scss +84 -0
- package/src/theme-chalk/timeline.scss +46 -0
- package/src/theme-chalk/tooltip-v2.scss +95 -0
- package/src/theme-chalk/tooltip.scss +0 -0
- package/src/theme-chalk/tour.scss +187 -0
- package/src/theme-chalk/transfer.scss +203 -0
- package/src/theme-chalk/tree-select.scss +41 -0
- package/src/theme-chalk/tree.scss +134 -0
- package/src/theme-chalk/upload.scss +654 -0
- package/src/theme-chalk/var.scss +87 -0
- package/src/theme-chalk/virtual-list.scss +40 -0
- package/src/components/basic/td-container/td-container.old.d.ts +0 -11
- package/src/components/basic/td-container/td-container.old.js +0 -31
- package/src/components/form/td-input/widget/prefix.d.ts +0 -10
- package/src/components/form/td-input/widget/prefix.js +0 -63
- package/src/components/form/td-input/widget/suffix.d.ts +0 -14
- package/src/components/form/td-input/widget/suffix.js +0 -125
- package/src/components/form/td-input/widget/td-input-wrapper.class.d.ts +0 -33
- package/src/components/form/td-input/widget/td-input-wrapper.class.js +0 -287
- package/src/components/form/td-input/widget/td-input-wrapper.interface.d.ts +0 -4
- package/src/components/form/td-input/widget/td-textarea-wrapper.d.ts +0 -13
- package/src/components/form/td-input/widget/td-textarea-wrapper.js +0 -120
- package/src/components/form/td-option/td-option.old.d.ts +0 -8
- package/src/components/form/td-option/td-option.old.js +0 -24
- package/src/components/form/td-slider/td-slider-marker.d.ts +0 -13
- package/src/components/form/td-slider/td-slider-marker.js +0 -19
- /package/src/components/form/td-input/{widget/utils.d.ts → utils.d.ts} +0 -0
- /package/src/components/form/{td-input/widget/td-input-wrapper.interface.js → td-slider/mark/mark.interface.js} +0 -0
|
@@ -51,13 +51,13 @@ function genTheme($backgroundColorWeight, $borderColorWeight, $hoverColorWeight)
|
|
|
51
51
|
textColor: var_1.$colors[type].base,
|
|
52
52
|
hit: var_1.$colors[type].base,
|
|
53
53
|
};
|
|
54
|
-
console.log('$tagTypes[type] is ',
|
|
54
|
+
// console.log('$tagTypes[type] is ', $tagTypes[type]);
|
|
55
55
|
}
|
|
56
56
|
const hoverColor = returnVarList($hoverColorWeight, 'primary');
|
|
57
|
-
console.log('hoverColor is ', hoverColor);
|
|
57
|
+
// console.log('hoverColor is ', hoverColor);
|
|
58
58
|
}
|
|
59
59
|
function returnVarList($var, $type = 'primary') {
|
|
60
|
-
console.log('returnVarList . ');
|
|
60
|
+
// console.log('returnVarList . ');
|
|
61
61
|
let $list = var_1.$fillColor.blank;
|
|
62
62
|
if ($var !== false) {
|
|
63
63
|
$list = var_1.$colors[$type] && var_1.$colors[$type][$var || 'base'];
|
|
@@ -8,6 +8,8 @@ export type * from './td-message/td-message.interface';
|
|
|
8
8
|
export * from './td-message-box/index';
|
|
9
9
|
export { TdNotification } from './td-notification/index';
|
|
10
10
|
export * from './td-loading/index';
|
|
11
|
+
export { TdPopconfirm } from './td-popconfirm/td-popconfirm.class';
|
|
12
|
+
export type * from './td-popconfirm/td-popconfirm.interface';
|
|
11
13
|
export type * from './td-popper/td-popper.interface';
|
|
12
14
|
export { TdPopover } from './td-popover/td-popover.class';
|
|
13
15
|
export type * from './td-popover/td-popover.interface';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// export { Dialog } from './dialog/dialog.class';
|
|
3
3
|
// export { MessageBox } from './message-box/message-box';
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TdTooltip = exports.TdPopover = exports.TdNotification = exports.TdMessage = exports.TdDialog = exports.TdAlert = void 0;
|
|
5
|
+
exports.TdTooltip = exports.TdPopover = exports.TdPopconfirm = exports.TdNotification = exports.TdMessage = exports.TdDialog = exports.TdAlert = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
var td_alert_class_1 = require("./td-alert/td-alert.class");
|
|
8
8
|
Object.defineProperty(exports, "TdAlert", { enumerable: true, get: function () { return td_alert_class_1.TdAlert; } });
|
|
@@ -18,6 +18,8 @@ var index_1 = require("./td-notification/index");
|
|
|
18
18
|
Object.defineProperty(exports, "TdNotification", { enumerable: true, get: function () { return index_1.TdNotification; } });
|
|
19
19
|
// export type * from './td-notification/td-notification.interface';
|
|
20
20
|
tslib_1.__exportStar(require("./td-loading/index"), exports);
|
|
21
|
+
var td_popconfirm_class_1 = require("./td-popconfirm/td-popconfirm.class");
|
|
22
|
+
Object.defineProperty(exports, "TdPopconfirm", { enumerable: true, get: function () { return td_popconfirm_class_1.TdPopconfirm; } });
|
|
21
23
|
var td_popover_class_1 = require("./td-popover/td-popover.class");
|
|
22
24
|
Object.defineProperty(exports, "TdPopover", { enumerable: true, get: function () { return td_popover_class_1.TdPopover; } });
|
|
23
25
|
var td_tooltip_class_1 = require("./td-tooltip/td-tooltip.class");
|
|
@@ -25,7 +25,7 @@ class TdAlert extends framework_1.TypeFragment {
|
|
|
25
25
|
const iconComponent = (0, signals_1.computed)(() => svgs_1.TypeComponentsMap[props.type]);
|
|
26
26
|
const hasDesc = (0, signals_1.computed)(() => !!(props.description || (slots === null || slots === void 0 ? void 0 : slots.default)));
|
|
27
27
|
const close = (evt) => {
|
|
28
|
-
console.log('close . ');
|
|
28
|
+
// console.log('close . ');
|
|
29
29
|
visible.set(false);
|
|
30
30
|
this.emit('close', evt);
|
|
31
31
|
};
|
|
@@ -36,7 +36,7 @@ class TdAlert extends framework_1.TypeFragment {
|
|
|
36
36
|
ns.is('center', center),
|
|
37
37
|
ns.is(effect),
|
|
38
38
|
];
|
|
39
|
-
console.warn('alertKls is ', alertKls);
|
|
39
|
+
// console.warn('alertKls is ', alertKls);
|
|
40
40
|
this.addChild(new framework_1.Transition({
|
|
41
41
|
name: ns.b('fade'),
|
|
42
42
|
slot: new framework_1.Div({
|
|
@@ -55,7 +55,7 @@ class TdAlert extends framework_1.TypeFragment {
|
|
|
55
55
|
new td_icon_class_1.TdIcon({
|
|
56
56
|
vIf: props.showIcon && iconComponent,
|
|
57
57
|
class: [ns.e('icon'), { [ns.is('big')]: hasDesc }],
|
|
58
|
-
slot: new (iconComponent.get())(),
|
|
58
|
+
slot: (slots === null || slots === void 0 ? void 0 : slots.icon) || new (iconComponent.get())(),
|
|
59
59
|
}),
|
|
60
60
|
new framework_1.Div({
|
|
61
61
|
class: ns.e('content'),
|
|
@@ -4,8 +4,6 @@ exports.$alertCloseBtnStyle = exports.$alertDescriptionStyle = exports.$alertTit
|
|
|
4
4
|
exports.useStyle = useStyle;
|
|
5
5
|
exports.useType = useType;
|
|
6
6
|
const var_1 = require("../../../styles/var");
|
|
7
|
-
// import '../../../styles/base/style/index'
|
|
8
|
-
// import '../../../theme-chalk/src/alert.scss'
|
|
9
7
|
exports.$alert = {
|
|
10
8
|
padding: '8px 16px',
|
|
11
9
|
// 'border-radius-base': getCssVar('border-radius-base'),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("
|
|
3
|
+
require("../../../base/style/css");
|
|
4
4
|
require("@element-plus/theme-chalk/el-dialog.css");
|
|
5
5
|
require("@element-plus/components/overlay/style/css");
|
|
@@ -18,7 +18,7 @@ require("./style/index");
|
|
|
18
18
|
class TdDialog extends framework_1.TypeFragment {
|
|
19
19
|
constructor(params = {}) {
|
|
20
20
|
super();
|
|
21
|
-
console.log('TdDialog . ');
|
|
21
|
+
// console.log('TdDialog . ');
|
|
22
22
|
this.className = 'TdDialog';
|
|
23
23
|
this.addEmits(td_dialog_const_1.dialogEmits);
|
|
24
24
|
this.assignProps(td_dialog_const_1.dialogProps);
|
|
@@ -77,6 +77,7 @@ class TdDialog extends framework_1.TypeFragment {
|
|
|
77
77
|
zIndex: zIndex,
|
|
78
78
|
},
|
|
79
79
|
slot: new framework_1.Div({
|
|
80
|
+
class: `${ns.namespace.get()}-overlay-dialog`,
|
|
80
81
|
styleObj: overlayDialogStyle,
|
|
81
82
|
attrObj: {
|
|
82
83
|
role: 'dialog',
|
|
@@ -84,7 +85,6 @@ class TdDialog extends framework_1.TypeFragment {
|
|
|
84
85
|
ariaLabel: props.title,
|
|
85
86
|
ariaLabelledby: !props.title ? titleId.get() : undefined,
|
|
86
87
|
ariaDescribedby: bodyId.get(),
|
|
87
|
-
class: `${ns.namespace.get()}-overlay-dialog`,
|
|
88
88
|
},
|
|
89
89
|
events: {
|
|
90
90
|
click: overlayEvent.onClick,
|
|
@@ -111,7 +111,7 @@ class TdDialog extends framework_1.TypeFragment {
|
|
|
111
111
|
center: props.center,
|
|
112
112
|
alignCenter: props.alignCenter,
|
|
113
113
|
closeIcon: props.closeIcon,
|
|
114
|
-
draggable: draggable
|
|
114
|
+
draggable: draggable,
|
|
115
115
|
overflow: props.overflow,
|
|
116
116
|
fullscreen: props.fullscreen,
|
|
117
117
|
headerClass: props.headerClass,
|
|
@@ -148,7 +148,7 @@ const useDialog = (props, targetRef) => {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
(0, signals_1.watch)(() => { var _a; return (_a = props.vModel) === null || _a === void 0 ? void 0 : _a.get(); }, (val) => {
|
|
151
|
-
console.warn('watch vModel val is ', val);
|
|
151
|
+
// console.warn('watch vModel val is ', val);
|
|
152
152
|
if (val) {
|
|
153
153
|
closed.set(false);
|
|
154
154
|
open();
|
|
@@ -30,13 +30,13 @@ class TdDialogContent extends framework_1.TypeDiv {
|
|
|
30
30
|
const dialogKls = (0, signals_1.computed)(() => [
|
|
31
31
|
ns.b(),
|
|
32
32
|
ns.is('fullscreen', props.fullscreen),
|
|
33
|
-
ns.is('draggable', props.draggable),
|
|
33
|
+
ns.is('draggable', (0, signals_1.unref)(props.draggable)),
|
|
34
34
|
ns.is('align-center', props.alignCenter),
|
|
35
35
|
{ [ns.m('center')]: props.center },
|
|
36
36
|
]);
|
|
37
37
|
const composedDialogRef = (0, refs_1.composeRefs)(focusTrapRef, dialogRef);
|
|
38
|
-
const draggable = (0, signals_1.computed)(() => props.draggable);
|
|
39
|
-
console.log('draggable is ', draggable.get());
|
|
38
|
+
const draggable = (0, signals_1.computed)(() => (0, signals_1.unref)(props.draggable));
|
|
39
|
+
// console.log('draggable is ', draggable.get());
|
|
40
40
|
const overflow = (0, signals_1.computed)(() => props.overflow);
|
|
41
41
|
const { resetPosition } = (0, use_draggable_1.useDraggable)(dialogRef, headerRef, draggable, overflow);
|
|
42
42
|
(0, framework_1.defineExpose)({
|
|
@@ -49,7 +49,7 @@ class TdDialogContent extends framework_1.TypeDiv {
|
|
|
49
49
|
// refDom: composedDialogRef,
|
|
50
50
|
refDom: dialogRef,
|
|
51
51
|
});
|
|
52
|
-
console.log('then addClass dialogKls is ', dialogKls.get());
|
|
52
|
+
// console.log('then addClass dialogKls is ', dialogKls.get());
|
|
53
53
|
this.attr.addClass(dialogKls);
|
|
54
54
|
this.style.addObj(style);
|
|
55
55
|
this.addChildren(new framework_1.Header({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ITypeDiv, TypeDivProps } from '@type-dom/framework';
|
|
2
|
+
import { MaybeRef } from '@type-dom/signals';
|
|
2
3
|
import { TdIcon } from '../../basic/td-icon/td-icon.class';
|
|
3
4
|
export interface ITdDialogContent extends ITypeDiv {
|
|
4
5
|
className: 'TdDialogContent';
|
|
@@ -19,7 +20,7 @@ export interface DialogContentProps extends TypeDivProps {
|
|
|
19
20
|
/**
|
|
20
21
|
* @description enable dragging feature for Dialog
|
|
21
22
|
*/
|
|
22
|
-
draggable?: boolean
|
|
23
|
+
draggable?: MaybeRef<boolean | undefined>;
|
|
23
24
|
/**
|
|
24
25
|
* @description draggable Dialog can overflow the viewport
|
|
25
26
|
*/
|
|
@@ -259,9 +259,11 @@ class TdFocusTrap extends framework_1.TypeFragment {
|
|
|
259
259
|
// todo
|
|
260
260
|
handleKeydown: onKeydown,
|
|
261
261
|
});
|
|
262
|
-
this.slotChildren((
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
this.slotChildren((0, utils_1.isFunction)(props.slot) ?
|
|
263
|
+
(_a = props.slot) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
264
|
+
handleKeydown: onKeydown,
|
|
265
|
+
})
|
|
266
|
+
: props.slot);
|
|
265
267
|
}
|
|
266
268
|
}
|
|
267
269
|
exports.TdFocusTrap = TdFocusTrap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITypeFragment, TypeFragmentProps
|
|
1
|
+
import { ITypeFragment, TypeFragmentProps } from '@type-dom/framework';
|
|
2
2
|
import { ON_RELEASE_FOCUS_EVT, ON_TRAP_FOCUS_EVT } from './tokens';
|
|
3
3
|
import { MaybeRef } from '@type-dom/signals';
|
|
4
4
|
export interface ITdFocusTrap extends ITypeFragment {
|
|
@@ -10,7 +10,6 @@ export interface FocusTrapProps extends TypeFragmentProps {
|
|
|
10
10
|
trapOnFocusIn?: boolean;
|
|
11
11
|
focusTrapEl?: MaybeRef<HTMLElement | undefined>;
|
|
12
12
|
focusStartEl?: MaybeRef<'container' | 'first' | HTMLElement | undefined>;
|
|
13
|
-
slot?: (arg?: any) => ISlotRaw | ISlotRaw[];
|
|
14
13
|
emits?: {
|
|
15
14
|
[ON_TRAP_FOCUS_EVT]?: () => void;
|
|
16
15
|
[ON_RELEASE_FOCUS_EVT]?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const focusReason: import("@type-dom/signals").Signal<"pointer" | "keyboard"
|
|
1
|
+
declare const focusReason: import("@type-dom/signals").Signal<"pointer" | "keyboard">;
|
|
2
2
|
declare const lastUserFocusTimestamp: import("@type-dom/signals").Signal<number>;
|
|
3
3
|
declare const lastAutomatedFocusTimestamp: import("@type-dom/signals").Signal<number>;
|
|
4
4
|
export type FocusLayer = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../base/style/css';
|
|
2
2
|
import '@element-plus/theme-chalk/el-loading.css';
|
|
@@ -8,7 +8,7 @@ exports.getOffsetOrSpace = exports.getLastOffset = exports.getInstance = exports
|
|
|
8
8
|
const signals_1 = require("@type-dom/signals");
|
|
9
9
|
exports.instances = (0, signals_1.signal)([]);
|
|
10
10
|
const getInstance = (id) => {
|
|
11
|
-
console.warn('getInstance, id is ', id);
|
|
11
|
+
// console.warn('getInstance, id is ', id);
|
|
12
12
|
const idx = exports.instances.get().findIndex((instance) => instance.id === id);
|
|
13
13
|
const current = exports.instances.get()[idx];
|
|
14
14
|
let prev;
|
|
@@ -19,7 +19,7 @@ const getInstance = (id) => {
|
|
|
19
19
|
};
|
|
20
20
|
exports.getInstance = getInstance;
|
|
21
21
|
const getLastOffset = (id) => {
|
|
22
|
-
console.warn('getLastOffset, id is ', id);
|
|
22
|
+
// console.warn('getLastOffset, id is ', id);
|
|
23
23
|
const { prev } = (0, exports.getInstance)(id);
|
|
24
24
|
if (!prev)
|
|
25
25
|
return 0;
|
|
@@ -28,7 +28,7 @@ const getLastOffset = (id) => {
|
|
|
28
28
|
};
|
|
29
29
|
exports.getLastOffset = getLastOffset;
|
|
30
30
|
const getOffsetOrSpace = (id, offset) => {
|
|
31
|
-
console.warn('getOffsetOrSpace, id is ', id);
|
|
31
|
+
// console.warn('getOffsetOrSpace, id is ', id);
|
|
32
32
|
const idx = exports.instances.get().findIndex((instance) => instance.id === id);
|
|
33
33
|
return idx > 0 ? 16 : offset;
|
|
34
34
|
};
|
|
@@ -52,7 +52,7 @@ const normalizeOptions = (params /* | (() => TypeNode)MessageParams*/) => {
|
|
|
52
52
|
(0, utils_1.debugWarn)('TdMessage', 'the appendTo option is not an HTMLElement. Falling back to document.body.');
|
|
53
53
|
appendTo = document.body;
|
|
54
54
|
}
|
|
55
|
-
console.error('appendTo is ', appendTo);
|
|
55
|
+
// console.error('appendTo is ', appendTo);
|
|
56
56
|
normalized.appendTo = appendTo;
|
|
57
57
|
}
|
|
58
58
|
// When grouping is configured globally,
|
|
@@ -91,7 +91,7 @@ const createMessage = (_a) => {
|
|
|
91
91
|
// now the zIndex will be used inside the message.vue component instead of here.
|
|
92
92
|
// zIndex: nextIndex() + options.zIndex
|
|
93
93
|
id, onClose: () => {
|
|
94
|
-
console.error('createMessage props onClose ');
|
|
94
|
+
// console.error('createMessage props onClose ');
|
|
95
95
|
userOnClose === null || userOnClose === void 0 ? void 0 : userOnClose();
|
|
96
96
|
(0, exports.closeMessage)(instance);
|
|
97
97
|
}, emits: {
|
|
@@ -143,11 +143,11 @@ const createMessage = (_a) => {
|
|
|
143
143
|
};
|
|
144
144
|
const message = (options = {}) => {
|
|
145
145
|
var _a, _b, _c, _d;
|
|
146
|
-
console.log('message options is ', options);
|
|
146
|
+
// console.log('message options is ', options);
|
|
147
147
|
if (!utils_1.isClient)
|
|
148
148
|
return { close: () => undefined };
|
|
149
149
|
const normalized = normalizeOptions(options);
|
|
150
|
-
console.error('normalized is ', normalized);
|
|
150
|
+
// console.error('normalized is ', normalized);
|
|
151
151
|
if (normalized.grouping && instance_1.instances.get().length) {
|
|
152
152
|
const instance = instance_1.instances
|
|
153
153
|
.get()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("
|
|
3
|
+
require("../../../base/style/css");
|
|
4
4
|
require("@element-plus/components/badge/style/css");
|
|
5
5
|
require("@element-plus/theme-chalk/el-message.css");
|
|
@@ -94,7 +94,7 @@ class MessageClass extends framework_1.TypeFragment {
|
|
|
94
94
|
// onBeforeLeave: props.onClose, // todo 会提前消除 instance
|
|
95
95
|
onAfterLeave: () => {
|
|
96
96
|
var _a;
|
|
97
|
-
console.error('TdMessage Transition afterLeave');
|
|
97
|
+
// console.error('TdMessage Transition afterLeave');
|
|
98
98
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
99
99
|
emit('destroy');
|
|
100
100
|
},
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// import { createVNode, isVNode, render } from 'vue'
|
|
3
|
+
// import {
|
|
4
|
+
// debugWarn,
|
|
5
|
+
// hasOwn,
|
|
6
|
+
// isClient,
|
|
7
|
+
// isElement,
|
|
8
|
+
// isFunction,
|
|
9
|
+
// isObject,
|
|
10
|
+
// isString,
|
|
11
|
+
// isUndefined,
|
|
12
|
+
// } from '@element-plus/utils'
|
|
13
|
+
// import MessageBoxConstructor from './index.vue'
|
|
14
|
+
//
|
|
15
|
+
// import type { AppContext, ComponentPublicInstance, VNode } from 'vue'
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
const framework_1 = require("@type-dom/framework");
|
|
4
18
|
const utils_1 = require("@type-dom/utils");
|
|
@@ -48,13 +62,13 @@ const genContainer = () => {
|
|
|
48
62
|
};
|
|
49
63
|
const showMessage = (options) => {
|
|
50
64
|
var _a;
|
|
51
|
-
console.warn('showMessage options is ', options);
|
|
65
|
+
// console.warn('showMessage options is ', options);
|
|
52
66
|
const container = genContainer();
|
|
53
67
|
// Adding destruct method.
|
|
54
68
|
// when transition leaves emitting `vanish` evt. so that we can do the clean job.
|
|
55
69
|
options.emits = {};
|
|
56
70
|
options.emits.vanish = () => {
|
|
57
|
-
console.warn('showMessage options emits vanish ');
|
|
71
|
+
// console.warn('showMessage options emits vanish ');
|
|
58
72
|
// not sure if this causes mem leak, need proof to verify that.
|
|
59
73
|
// maybe calling out like 1000 msg-box then close them all.
|
|
60
74
|
// render(null, container) // todo
|
|
@@ -81,7 +95,13 @@ const showMessage = (options) => {
|
|
|
81
95
|
currentMsg.reject('close');
|
|
82
96
|
}
|
|
83
97
|
else {
|
|
84
|
-
|
|
98
|
+
try {
|
|
99
|
+
// currentMsg.reject('cancel'); // todo 会有什么影响???
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
console.error(e);
|
|
103
|
+
}
|
|
104
|
+
// currentMsg.reject('cancel');
|
|
85
105
|
}
|
|
86
106
|
}
|
|
87
107
|
else {
|
|
@@ -102,6 +122,11 @@ const showMessage = (options) => {
|
|
|
102
122
|
// >
|
|
103
123
|
for (const prop in options) {
|
|
104
124
|
if ((0, utils_1.hasOwn)(options, prop) && !(0, utils_1.hasOwn)(vm.props, prop)) {
|
|
125
|
+
// if (prop === 'closeIcon' && isObject(options[prop])) {
|
|
126
|
+
// (vm as any)[prop] = markRaw(options[prop])
|
|
127
|
+
// } else {
|
|
128
|
+
// (vm as any)[prop] = options[prop]
|
|
129
|
+
// }
|
|
105
130
|
vm[prop] = options[prop];
|
|
106
131
|
}
|
|
107
132
|
}
|
|
@@ -112,7 +137,7 @@ const showMessage = (options) => {
|
|
|
112
137
|
function MessageBox(options
|
|
113
138
|
// appContext: AppContext | null = null
|
|
114
139
|
) {
|
|
115
|
-
console.warn('MessageBox options is ', options);
|
|
140
|
+
// console.warn('MessageBox options is ', options);
|
|
116
141
|
if (!utils_1.isClient)
|
|
117
142
|
return Promise.reject();
|
|
118
143
|
let callback;
|
|
@@ -135,7 +160,7 @@ function MessageBox(options
|
|
|
135
160
|
resolve,
|
|
136
161
|
reject,
|
|
137
162
|
});
|
|
138
|
-
console.warn('messageInstance is ', messageInstance);
|
|
163
|
+
// console.warn('messageInstance is ', messageInstance);
|
|
139
164
|
});
|
|
140
165
|
}
|
|
141
166
|
const MESSAGE_BOX_VARIANTS = ['alert', 'confirm', 'prompt'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("
|
|
3
|
+
require("../../../base/style/css");
|
|
4
4
|
require("@element-plus/theme-chalk/el-message-box.css");
|
|
5
5
|
require("@element-plus/components/button/style/css");
|
|
6
6
|
require("@element-plus/components/input/style/css");
|
|
@@ -23,7 +23,7 @@ class TdMessageBox extends framework_1.TypeFragment {
|
|
|
23
23
|
super();
|
|
24
24
|
this.className = 'TdMessageBox';
|
|
25
25
|
this.assignProps(td_message_box_const_1.messageBoxProps);
|
|
26
|
-
console.warn('params is ', params);
|
|
26
|
+
// console.warn('params is ', params);
|
|
27
27
|
this.props = this.useParams(params);
|
|
28
28
|
}
|
|
29
29
|
setup() {
|
|
@@ -92,7 +92,7 @@ class TdMessageBox extends framework_1.TypeFragment {
|
|
|
92
92
|
const confirmButtonClasses = (0, signals_1.computed)(() => state.confirmButtonClass);
|
|
93
93
|
(0, signals_1.watch)(() => { var _a; return (_a = state.inputValue) === null || _a === void 0 ? void 0 : _a.get(); }, (val) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
94
94
|
yield (0, framework_1.nextTick)();
|
|
95
|
-
console.log('watch state.inputValue , val is ', val);
|
|
95
|
+
// console.log('watch state.inputValue , val is ', val);
|
|
96
96
|
if (props.boxType === 'prompt' && val !== undefined) {
|
|
97
97
|
validate();
|
|
98
98
|
}
|
|
@@ -431,7 +431,7 @@ class TdMessageBox extends framework_1.TypeFragment {
|
|
|
431
431
|
styleObj: {
|
|
432
432
|
visibility: (0, signals_1.computed)(() => {
|
|
433
433
|
var _a;
|
|
434
|
-
return
|
|
434
|
+
return ((_a = state.editorErrorMessage) === null || _a === void 0 ? void 0 : _a.get())
|
|
435
435
|
? 'visible'
|
|
436
436
|
: 'hidden';
|
|
437
437
|
}),
|
|
@@ -85,6 +85,8 @@ export interface TdMessageBoxOptions {
|
|
|
85
85
|
customClass?: string;
|
|
86
86
|
/** Custom inline style for MessageBox */
|
|
87
87
|
customStyle?: IStyle;
|
|
88
|
+
/** modal class name for MessageBox */
|
|
89
|
+
modalClass?: string;
|
|
88
90
|
/** MessageBox closing callback if you don't prefer Promise */
|
|
89
91
|
callback?: Callback;
|
|
90
92
|
/** Text content of cancel button, need to reactivity */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../base/style/css';
|
|
2
2
|
import '@element-plus/theme-chalk/el-notification.css';
|
|
@@ -89,11 +89,11 @@ class TdNotification extends framework_1.TypeFragment {
|
|
|
89
89
|
name: 'fade',
|
|
90
90
|
onBeforeLeave: () => {
|
|
91
91
|
var _a;
|
|
92
|
-
console.log('beforeLeave');
|
|
92
|
+
// console.log('beforeLeave');
|
|
93
93
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
94
94
|
},
|
|
95
95
|
onAfterLeave: () => {
|
|
96
|
-
console.log('afterLeave');
|
|
96
|
+
// console.log('afterLeave');
|
|
97
97
|
emit('destroy');
|
|
98
98
|
},
|
|
99
99
|
slot: new framework_1.Div({
|
|
@@ -128,7 +128,7 @@ class TdNotification extends framework_1.TypeFragment {
|
|
|
128
128
|
new framework_1.Div({
|
|
129
129
|
vShow: props.message,
|
|
130
130
|
class: ns.e('content'),
|
|
131
|
-
styleObj:
|
|
131
|
+
styleObj: props.title ? undefined : { margin: 0 },
|
|
132
132
|
slot: (_c = (_a = props.slot) !== null && _a !== void 0 ? _a : (_b = props.slots) === null || _b === void 0 ? void 0 : _b.default) !== null && _c !== void 0 ? _c : [
|
|
133
133
|
!props.dangerouslyUseHTMLString
|
|
134
134
|
? new framework_1.P({
|
|
@@ -9,14 +9,14 @@ class TdOnlyChild extends framework_1.TypeFragment {
|
|
|
9
9
|
constructor(params = {}) {
|
|
10
10
|
super();
|
|
11
11
|
this.className = 'TdOnlyChild';
|
|
12
|
-
console.log('TdOnlyChild.constructor', params);
|
|
12
|
+
// console.log('TdOnlyChild.constructor', params);
|
|
13
13
|
this.slotChildren(params.slot);
|
|
14
14
|
this.props = this.useParams(params);
|
|
15
15
|
}
|
|
16
16
|
// todo
|
|
17
17
|
setup() {
|
|
18
18
|
var _a;
|
|
19
|
-
console.log('TdOnlyChild.setup', this.props);
|
|
19
|
+
// console.log('TdOnlyChild.setup', this.props);
|
|
20
20
|
const forwardRefInjection = this.inject(use_forward_ref_1.FORWARD_REF_INJECTION_KEY);
|
|
21
21
|
const forwardRefDirective = (0, use_forward_ref_1.useForwardRefDirective)((_a = forwardRefInjection === null || forwardRefInjection === void 0 ? void 0 : forwardRefInjection.setForwardRef) !== null && _a !== void 0 ? _a : utils_1.NOOP);
|
|
22
22
|
// const defaultSlot = this.props.slots?.default || this.props.slot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../base/style/css';
|
|
2
2
|
import '@element-plus/theme-chalk/el-overlay.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Property } from '@type-dom/css-type';
|
|
2
|
-
import { ITypeDiv, TypeDivProps } from '@type-dom/framework';
|
|
2
|
+
import { ClassValue, ITypeDiv, TypeDivProps } from '@type-dom/framework';
|
|
3
3
|
export interface ITdOverlay extends ITypeDiv {
|
|
4
4
|
className: 'TdOverlay';
|
|
5
5
|
}
|
|
6
6
|
export interface OverlayProps extends TypeDivProps {
|
|
7
7
|
mask?: boolean;
|
|
8
8
|
customMaskEvent?: boolean;
|
|
9
|
-
overlayClass?:
|
|
9
|
+
overlayClass?: ClassValue;
|
|
10
10
|
zIndex?: Property.ZIndex;
|
|
11
11
|
emits?: {
|
|
12
12
|
click: (event: MouseEvent) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("../../../base/style/css");
|
|
4
|
+
require("@element-plus/theme-chalk/el-popconfirm.css");
|
|
5
|
+
require("@element-plus/components/popover/style/css");
|
|
6
|
+
require("@element-plus/components/button/style/css");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypeFragment } from '@type-dom/framework';
|
|
2
|
+
import { ITdPopconfirm, PopconfirmProps } from './td-popconfirm.interface';
|
|
3
|
+
import './style';
|
|
4
|
+
export declare class TdPopconfirm extends TypeFragment implements ITdPopconfirm {
|
|
5
|
+
className: 'TdPopconfirm';
|
|
6
|
+
props: PopconfirmProps;
|
|
7
|
+
constructor(params?: PopconfirmProps);
|
|
8
|
+
setup(): void;
|
|
9
|
+
}
|