duoyun-ui 2.2.3 → 2.2.9
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/elements/badge.d.ts +2 -16
- package/elements/badge.d.ts.map +1 -1
- package/elements/badge.js +4 -158
- package/elements/badge.js.map +1 -1
- package/elements/banner.d.ts +2 -17
- package/elements/banner.d.ts.map +1 -1
- package/elements/banner.js +4 -127
- package/elements/banner.js.map +1 -1
- package/elements/base/chart.d.ts +2 -2
- package/elements/base/resize.d.ts +1 -22
- package/elements/base/resize.d.ts.map +1 -1
- package/elements/base/resize.js +1 -95
- package/elements/base/resize.js.map +1 -1
- package/elements/base/scroll.d.ts +1 -8
- package/elements/base/scroll.d.ts.map +1 -1
- package/elements/base/scroll.js +1 -157
- package/elements/base/scroll.js.map +1 -1
- package/elements/base/visible.d.ts +1 -18
- package/elements/base/visible.d.ts.map +1 -1
- package/elements/base/visible.js +1 -112
- package/elements/base/visible.js.map +1 -1
- package/elements/button.d.ts +2 -24
- package/elements/button.d.ts.map +1 -1
- package/elements/button.js +7 -287
- package/elements/button.js.map +1 -1
- package/elements/checkbox.d.ts +3 -21
- package/elements/checkbox.d.ts.map +1 -1
- package/elements/checkbox.js +6 -180
- package/elements/checkbox.js.map +1 -1
- package/elements/code-block.d.ts +2 -7
- package/elements/code-block.d.ts.map +1 -1
- package/elements/code-block.js +4 -432
- package/elements/code-block.js.map +1 -1
- package/elements/collapse.d.ts +3 -29
- package/elements/collapse.d.ts.map +1 -1
- package/elements/collapse.js +6 -197
- package/elements/collapse.js.map +1 -1
- package/elements/compartment.d.ts +2 -5
- package/elements/compartment.d.ts.map +1 -1
- package/elements/compartment.js +4 -23
- package/elements/compartment.js.map +1 -1
- package/elements/contextmenu.d.ts +5 -42
- package/elements/contextmenu.d.ts.map +1 -1
- package/elements/contextmenu.js +8 -285
- package/elements/contextmenu.js.map +1 -1
- package/elements/countdown.d.ts +2 -12
- package/elements/countdown.d.ts.map +1 -1
- package/elements/countdown.js +4 -94
- package/elements/countdown.js.map +1 -1
- package/elements/divider.d.ts +2 -8
- package/elements/divider.d.ts.map +1 -1
- package/elements/divider.js +4 -129
- package/elements/divider.js.map +1 -1
- package/elements/empty.d.ts +2 -8
- package/elements/empty.d.ts.map +1 -1
- package/elements/empty.js +4 -59
- package/elements/empty.js.map +1 -1
- package/elements/grouped-picker.d.ts +29 -0
- package/elements/grouped-picker.d.ts.map +1 -0
- package/elements/grouped-picker.js +199 -0
- package/elements/grouped-picker.js.map +1 -0
- package/elements/input.d.ts +4 -36
- package/elements/input.d.ts.map +1 -1
- package/elements/input.js +6 -489
- package/elements/input.js.map +1 -1
- package/elements/letters.d.ts +2 -36
- package/elements/letters.d.ts.map +1 -1
- package/elements/letters.js +10 -677
- package/elements/letters.js.map +1 -1
- package/elements/link.d.ts +3 -5
- package/elements/link.d.ts.map +1 -1
- package/elements/link.js +6 -38
- package/elements/link.js.map +1 -1
- package/elements/list.d.ts +5 -58
- package/elements/list.d.ts.map +1 -1
- package/elements/list.js +19 -664
- package/elements/list.js.map +1 -1
- package/elements/modal.d.ts +5 -63
- package/elements/modal.d.ts.map +1 -1
- package/elements/modal.js +13 -411
- package/elements/modal.js.map +1 -1
- package/elements/options.d.ts +4 -32
- package/elements/options.d.ts.map +1 -1
- package/elements/options.js +5 -254
- package/elements/options.js.map +1 -1
- package/elements/page-loadbar.js +1 -1
- package/elements/paragraph.d.ts +2 -2
- package/elements/paragraph.d.ts.map +1 -1
- package/elements/paragraph.js +4 -45
- package/elements/paragraph.js.map +1 -1
- package/elements/placeholder.d.ts +2 -14
- package/elements/placeholder.d.ts.map +1 -1
- package/elements/placeholder.js +4 -114
- package/elements/placeholder.js.map +1 -1
- package/elements/radio.d.ts +5 -24
- package/elements/radio.d.ts.map +1 -1
- package/elements/radio.js +7 -165
- package/elements/radio.js.map +1 -1
- package/elements/rate.d.ts +2 -12
- package/elements/rate.d.ts.map +1 -1
- package/elements/rate.js +4 -142
- package/elements/rate.js.map +1 -1
- package/elements/rolling-number.d.ts +2 -12
- package/elements/rolling-number.d.ts.map +1 -1
- package/elements/rolling-number.js +4 -434
- package/elements/rolling-number.js.map +1 -1
- package/elements/scroll-box.d.ts +2 -2
- package/elements/scroll-box.d.ts.map +1 -1
- package/elements/scroll-box.js +4 -5
- package/elements/scroll-box.js.map +1 -1
- package/elements/segmented.d.ts +3 -20
- package/elements/segmented.d.ts.map +1 -1
- package/elements/segmented.js +4 -192
- package/elements/segmented.js.map +1 -1
- package/elements/slider.d.ts +2 -20
- package/elements/slider.d.ts.map +1 -1
- package/elements/slider.js +4 -261
- package/elements/slider.js.map +1 -1
- package/elements/sort-box.d.ts +1 -2
- package/elements/sort-box.d.ts.map +1 -1
- package/elements/sort-box.js +4 -15
- package/elements/sort-box.js.map +1 -1
- package/elements/space.d.ts +2 -4
- package/elements/space.d.ts.map +1 -1
- package/elements/space.js +4 -37
- package/elements/space.js.map +1 -1
- package/elements/switch.d.ts +2 -11
- package/elements/switch.d.ts.map +1 -1
- package/elements/switch.js +5 -134
- package/elements/switch.js.map +1 -1
- package/elements/tag.d.ts +3 -16
- package/elements/tag.d.ts.map +1 -1
- package/elements/tag.js +4 -133
- package/elements/tag.js.map +1 -1
- package/elements/toast.js +1 -1
- package/elements/wait.js +1 -1
- package/helper/error.js +2 -39
- package/helper/error.js.map +1 -1
- package/helper/webapp.d.ts +4 -5
- package/helper/webapp.d.ts.map +1 -1
- package/helper/webapp.js +5 -11
- package/helper/webapp.js.map +1 -1
- package/lib/animations.d.ts +1 -10
- package/lib/animations.d.ts.map +1 -1
- package/lib/animations.js +1 -29
- package/lib/animations.js.map +1 -1
- package/lib/cache.d.ts +1 -18
- package/lib/cache.d.ts.map +1 -1
- package/lib/cache.js +1 -62
- package/lib/cache.js.map +1 -1
- package/lib/color.d.ts +1 -37
- package/lib/color.d.ts.map +1 -1
- package/lib/color.js +1 -98
- package/lib/color.js.map +1 -1
- package/lib/decorators.d.ts +1 -2
- package/lib/decorators.d.ts.map +1 -1
- package/lib/decorators.js +1 -16
- package/lib/decorators.js.map +1 -1
- package/lib/easing.d.ts +1 -78
- package/lib/easing.d.ts.map +1 -1
- package/lib/easing.js +1 -139
- package/lib/easing.js.map +1 -1
- package/lib/element.d.ts +1 -18
- package/lib/element.d.ts.map +1 -1
- package/lib/element.js +1 -131
- package/lib/element.js.map +1 -1
- package/lib/encode.d.ts +1 -10
- package/lib/encode.d.ts.map +1 -1
- package/lib/encode.js +1 -48
- package/lib/encode.js.map +1 -1
- package/lib/hotkeys.d.ts +1 -43
- package/lib/hotkeys.d.ts.map +1 -1
- package/lib/hotkeys.js +1 -247
- package/lib/hotkeys.js.map +1 -1
- package/lib/icons.d.ts +1 -114
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +1 -90
- package/lib/icons.js.map +1 -1
- package/lib/image.d.ts +1 -39
- package/lib/image.d.ts.map +1 -1
- package/lib/image.js +1 -140
- package/lib/image.js.map +1 -1
- package/lib/locale.d.ts +1 -87
- package/lib/locale.d.ts.map +1 -1
- package/lib/locale.js +1 -8
- package/lib/locale.js.map +1 -1
- package/lib/map.d.ts +1 -8
- package/lib/map.d.ts.map +1 -1
- package/lib/map.js +1 -31
- package/lib/map.js.map +1 -1
- package/lib/number.d.ts +1 -94
- package/lib/number.d.ts.map +1 -1
- package/lib/number.js +1 -169
- package/lib/number.js.map +1 -1
- package/lib/patterns.d.ts +1 -9
- package/lib/patterns.d.ts.map +1 -1
- package/lib/patterns.js +1 -11
- package/lib/patterns.js.map +1 -1
- package/lib/styles.d.ts +1 -4
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +1 -28
- package/lib/styles.js.map +1 -1
- package/lib/theme.d.ts +1 -85
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +6 -70
- package/lib/theme.js.map +1 -1
- package/lib/time.d.ts +1 -81
- package/lib/time.d.ts.map +1 -1
- package/lib/time.js +1 -255
- package/lib/time.js.map +1 -1
- package/lib/timer.d.ts +1 -25
- package/lib/timer.d.ts.map +1 -1
- package/lib/timer.js +1 -106
- package/lib/timer.js.map +1 -1
- package/lib/types.d.ts +1 -13
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -16
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +1 -80
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -244
- package/lib/utils.js.map +1 -1
- package/locales/en.d.ts +1 -37
- package/locales/en.d.ts.map +1 -1
- package/locales/en.js +1 -36
- package/locales/en.js.map +1 -1
- package/locales/zh.d.ts +1 -3
- package/locales/zh.d.ts.map +1 -1
- package/locales/zh.js +1 -37
- package/locales/zh.js.map +1 -1
- package/package.json +3 -5
- package/patterns/console.d.ts +1 -1
- package/patterns/form.d.ts +5 -3
- package/patterns/form.d.ts.map +1 -1
- package/patterns/form.js +16 -3
- package/patterns/form.js.map +1 -1
- package/react/DyActionText.d.ts +19 -0
- package/react/DyActionText.js +18 -0
- package/react/DyActiveLink.d.ts +15 -0
- package/react/DyActiveLink.js +18 -0
- package/react/DyAlert.d.ts +19 -0
- package/react/DyAlert.js +18 -0
- package/react/DyAreaChart.d.ts +46 -0
- package/react/DyAreaChart.js +18 -0
- package/react/DyAvatar.d.ts +23 -0
- package/react/DyAvatar.js +18 -0
- package/react/DyAvatarGroup.d.ts +22 -0
- package/react/DyAvatarGroup.js +18 -0
- package/react/DyBadge.d.ts +15 -0
- package/react/DyBadge.js +18 -0
- package/react/DyBanner.d.ts +15 -0
- package/react/DyBanner.js +18 -0
- package/react/DyBarChart.d.ts +23 -0
- package/react/DyBarChart.js +18 -0
- package/react/DyBreadcrumbs.d.ts +20 -0
- package/react/DyBreadcrumbs.js +18 -0
- package/react/DyButton.d.ts +15 -0
- package/react/DyButton.js +18 -0
- package/react/DyCalendar.d.ts +23 -0
- package/react/DyCalendar.js +18 -0
- package/react/DyCard.d.ts +24 -0
- package/react/DyCard.js +18 -0
- package/react/DyCarousel.d.ts +25 -0
- package/react/DyCarousel.js +18 -0
- package/react/DyCascader.d.ts +22 -0
- package/react/DyCascader.js +18 -0
- package/react/DyCascaderPicker.d.ts +27 -0
- package/react/DyCascaderPicker.js +22 -0
- package/react/DyChartTooltip.d.ts +15 -0
- package/react/DyChartTooltip.js +18 -0
- package/react/DyChartZoom.d.ts +20 -0
- package/react/DyChartZoom.js +18 -0
- package/react/DyCheckbox.d.ts +15 -0
- package/react/DyCheckbox.js +18 -0
- package/react/DyCheckboxGroup.d.ts +15 -0
- package/react/DyCheckboxGroup.js +18 -0
- package/react/DyCoachMark.d.ts +20 -0
- package/react/DyCoachMark.js +18 -0
- package/react/DyCodeBlock.d.ts +15 -0
- package/react/DyCodeBlock.js +18 -0
- package/react/DyCollapse.d.ts +15 -0
- package/react/DyCollapse.js +18 -0
- package/react/DyCollapsePanel.d.ts +15 -0
- package/react/DyCollapsePanel.js +18 -0
- package/react/DyColorPanel.d.ts +19 -0
- package/react/DyColorPanel.js +18 -0
- package/react/DyColorPicker.d.ts +22 -0
- package/react/DyColorPicker.js +22 -0
- package/react/DyCompartment.d.ts +15 -0
- package/react/DyCompartment.js +18 -0
- package/react/DyContextmenu.d.ts +15 -0
- package/react/DyContextmenu.js +18 -0
- package/react/DyCopy.d.ts +21 -0
- package/react/DyCopy.js +18 -0
- package/react/DyCountdown.d.ts +15 -0
- package/react/DyCountdown.js +18 -0
- package/react/DyDatePanel.d.ts +22 -0
- package/react/DyDatePanel.js +18 -0
- package/react/DyDatePicker.d.ts +26 -0
- package/react/DyDatePicker.js +22 -0
- package/react/DyDateRangePanel.d.ts +18 -0
- package/react/DyDateRangePanel.js +18 -0
- package/react/DyDateRangePicker.d.ts +26 -0
- package/react/DyDateRangePicker.js +22 -0
- package/react/DyDivider.d.ts +15 -0
- package/react/DyDivider.js +18 -0
- package/react/DyDonutChart.d.ts +20 -0
- package/react/DyDonutChart.js +18 -0
- package/react/DyDrawer.d.ts +15 -0
- package/react/DyDrawer.js +18 -0
- package/react/DyDropArea.d.ts +23 -0
- package/react/DyDropArea.js +18 -0
- package/react/DyEmpty.d.ts +15 -0
- package/react/DyEmpty.js +18 -0
- package/react/DyFilePicker.d.ts +27 -0
- package/react/DyFilePicker.js +22 -0
- package/react/DyForm.d.ts +24 -0
- package/react/DyForm.js +34 -0
- package/react/DyFormItem.d.ts +47 -0
- package/react/DyFormItem.js +31 -0
- package/react/DyFormItemInlineGroup.d.ts +15 -0
- package/react/DyFormItemInlineGroup.js +18 -0
- package/react/DyGesture.d.ts +15 -0
- package/react/DyGesture.js +18 -0
- package/react/DyGroupedPicker.d.ts +27 -0
- package/react/DyGroupedPicker.js +22 -0
- package/react/DyHeading.d.ts +17 -0
- package/react/DyHeading.js +18 -0
- package/react/DyHelpText.d.ts +17 -0
- package/react/DyHelpText.js +18 -0
- package/react/DyIcons.d.ts +15 -0
- package/react/DyIcons.js +18 -0
- package/react/DyImagePreview.d.ts +20 -0
- package/react/DyImagePreview.js +18 -0
- package/react/DyInput.d.ts +15 -0
- package/react/DyInput.js +18 -0
- package/react/DyInputCapture.d.ts +15 -0
- package/react/DyInputCapture.js +18 -0
- package/react/DyInputGroup.d.ts +15 -0
- package/react/DyInputGroup.js +18 -0
- package/react/DyKeyboardAccess.d.ts +19 -0
- package/react/DyKeyboardAccess.js +18 -0
- package/react/DyLegend.d.ts +20 -0
- package/react/DyLegend.js +18 -0
- package/react/DyLetters.d.ts +15 -0
- package/react/DyLetters.js +18 -0
- package/react/DyLightRoute.d.ts +15 -0
- package/react/DyLightRoute.js +18 -0
- package/react/DyLineChart.d.ts +15 -0
- package/react/DyLineChart.js +18 -0
- package/react/DyLink.d.ts +15 -0
- package/react/DyLink.js +18 -0
- package/react/DyList.d.ts +17 -0
- package/react/DyList.js +18 -0
- package/react/DyLoading.d.ts +15 -0
- package/react/DyLoading.js +18 -0
- package/react/DyMeter.d.ts +24 -0
- package/react/DyMeter.js +18 -0
- package/react/DyMore.d.ts +20 -0
- package/react/DyMore.js +18 -0
- package/react/DyMoreSlot.d.ts +17 -0
- package/react/DyMoreSlot.js +18 -0
- package/react/DyOptions.d.ts +15 -0
- package/react/DyOptions.js +18 -0
- package/react/DyPageLoadbar.d.ts +15 -0
- package/react/DyPageLoadbar.js +18 -0
- package/react/DyPagination.d.ts +23 -0
- package/react/DyPagination.js +18 -0
- package/react/DyParagraph.d.ts +15 -0
- package/react/DyParagraph.js +18 -0
- package/react/DyPatConsole.d.ts +25 -0
- package/react/DyPatConsole.js +18 -0
- package/react/DyPatFilterForm.d.ts +20 -0
- package/react/DyPatFilterForm.js +18 -0
- package/react/DyPatFooter.d.ts +23 -0
- package/react/DyPatFooter.js +18 -0
- package/react/DyPatForm.d.ts +20 -0
- package/react/DyPatForm.js +18 -0
- package/react/DyPatNav.d.ts +21 -0
- package/react/DyPatNav.js +18 -0
- package/react/DyPatTable.d.ts +32 -0
- package/react/DyPatTable.js +18 -0
- package/react/DyPicker.d.ts +28 -0
- package/react/DyPicker.js +22 -0
- package/react/DyPlaceholder.d.ts +15 -0
- package/react/DyPlaceholder.js +18 -0
- package/react/DyPopover.d.ts +27 -0
- package/react/DyPopover.js +22 -0
- package/react/DyPopoverGhost.d.ts +17 -0
- package/react/DyPopoverGhost.js +18 -0
- package/react/DyProgress.d.ts +18 -0
- package/react/DyProgress.js +18 -0
- package/react/DyRadarChart.d.ts +22 -0
- package/react/DyRadarChart.js +18 -0
- package/react/DyRadio.d.ts +15 -0
- package/react/DyRadio.js +18 -0
- package/react/DyRadioGroup.d.ts +15 -0
- package/react/DyRadioGroup.js +18 -0
- package/react/DyRate.d.ts +15 -0
- package/react/DyRate.js +18 -0
- package/react/DyReflect.d.ts +15 -0
- package/react/DyReflect.js +18 -0
- package/react/DyResult.d.ts +21 -0
- package/react/DyResult.js +18 -0
- package/react/DyRollingNumber.d.ts +15 -0
- package/react/DyRollingNumber.js +18 -0
- package/react/DyRoute.d.ts +15 -0
- package/react/DyRoute.js +18 -0
- package/react/DySankeyChart.d.ts +21 -0
- package/react/DySankeyChart.js +18 -0
- package/react/DyScatterChart.d.ts +17 -0
- package/react/DyScatterChart.js +18 -0
- package/react/DyScrollBox.d.ts +15 -0
- package/react/DyScrollBox.js +18 -0
- package/react/DySegmented.d.ts +15 -0
- package/react/DySegmented.js +18 -0
- package/react/DySelect.d.ts +37 -0
- package/react/DySelect.js +25 -0
- package/react/DySelectionBox.d.ts +18 -0
- package/react/DySelectionBox.js +18 -0
- package/react/DySelectionBoxMask.d.ts +15 -0
- package/react/DySelectionBoxMask.js +18 -0
- package/react/DyShortcutRecord.d.ts +23 -0
- package/react/DyShortcutRecord.js +18 -0
- package/react/DySideNavigation.d.ts +18 -0
- package/react/DySideNavigation.js +18 -0
- package/react/DySlider.d.ts +15 -0
- package/react/DySlider.js +18 -0
- package/react/DySortBox.d.ts +17 -0
- package/react/DySortBox.js +18 -0
- package/react/DySortHandle.d.ts +15 -0
- package/react/DySortHandle.js +18 -0
- package/react/DySortItem.d.ts +15 -0
- package/react/DySortItem.js +18 -0
- package/react/DySpace.d.ts +15 -0
- package/react/DySpace.js +18 -0
- package/react/DyStatistic.d.ts +25 -0
- package/react/DyStatistic.js +18 -0
- package/react/DyStatusLight.d.ts +17 -0
- package/react/DyStatusLight.js +18 -0
- package/react/DySwitch.d.ts +15 -0
- package/react/DySwitch.js +18 -0
- package/react/DyTabPanel.d.ts +17 -0
- package/react/DyTabPanel.js +18 -0
- package/react/DyTable.d.ts +36 -0
- package/react/DyTable.js +25 -0
- package/react/DyTabs.d.ts +21 -0
- package/react/DyTabs.js +18 -0
- package/react/DyTag.d.ts +15 -0
- package/react/DyTag.js +18 -0
- package/react/DyTextMask.d.ts +20 -0
- package/react/DyTextMask.js +18 -0
- package/react/DyTimePanel.d.ts +19 -0
- package/react/DyTimePanel.js +18 -0
- package/react/DyTimePicker.d.ts +25 -0
- package/react/DyTimePicker.js +22 -0
- package/react/DyTimeline.d.ts +17 -0
- package/react/DyTimeline.js +18 -0
- package/react/DyTitle.d.ts +15 -0
- package/react/DyTitle.js +18 -0
- package/react/DyToast.d.ts +17 -0
- package/react/DyToast.js +18 -0
- package/react/DyTooltip.d.ts +15 -0
- package/react/DyTooltip.js +18 -0
- package/react/DyTree.d.ts +29 -0
- package/react/DyTree.js +31 -0
- package/react/DyUnsafe.d.ts +15 -0
- package/react/DyUnsafe.js +18 -0
- package/react/DyUse.d.ts +15 -0
- package/react/DyUse.js +18 -0
- package/react/DyVestaboard.d.ts +21 -0
- package/react/DyVestaboard.js +18 -0
- package/react/DyWait.d.ts +17 -0
- package/react/DyWait.js +18 -0
- package/svelte/action-text.d.ts +13 -0
- package/svelte/action-text.js +2 -0
- package/svelte/alert.d.ts +13 -0
- package/svelte/alert.js +2 -0
- package/svelte/area-chart.d.ts +40 -0
- package/svelte/area-chart.js +2 -0
- package/svelte/avatar.d.ts +16 -0
- package/svelte/avatar.js +2 -0
- package/svelte/badge.d.ts +9 -0
- package/svelte/badge.js +2 -0
- package/svelte/banner.d.ts +9 -0
- package/svelte/banner.js +2 -0
- package/svelte/bar-chart.d.ts +17 -0
- package/svelte/bar-chart.js +2 -0
- package/svelte/breadcrumbs.d.ts +14 -0
- package/svelte/breadcrumbs.js +2 -0
- package/svelte/button.d.ts +9 -0
- package/svelte/button.js +2 -0
- package/svelte/calendar.d.ts +17 -0
- package/svelte/calendar.js +2 -0
- package/svelte/card.d.ts +18 -0
- package/svelte/card.js +2 -0
- package/svelte/carousel.d.ts +19 -0
- package/svelte/carousel.js +2 -0
- package/svelte/cascader-picker.d.ts +19 -0
- package/svelte/cascader-picker.js +2 -0
- package/svelte/cascader.d.ts +16 -0
- package/svelte/cascader.js +2 -0
- package/svelte/chart-tooltip.d.ts +9 -0
- package/svelte/chart-tooltip.js +2 -0
- package/svelte/chart-zoom.d.ts +14 -0
- package/svelte/chart-zoom.js +2 -0
- package/svelte/checkbox.d.ts +9 -0
- package/svelte/checkbox.js +2 -0
- package/svelte/coach-mark.d.ts +14 -0
- package/svelte/coach-mark.js +2 -0
- package/svelte/code-block.d.ts +9 -0
- package/svelte/code-block.js +2 -0
- package/svelte/collapse.d.ts +9 -0
- package/svelte/collapse.js +2 -0
- package/svelte/color-panel.d.ts +13 -0
- package/svelte/color-panel.js +2 -0
- package/svelte/color-picker.d.ts +14 -0
- package/svelte/color-picker.js +2 -0
- package/svelte/compartment.d.ts +9 -0
- package/svelte/compartment.js +2 -0
- package/svelte/contextmenu.d.ts +9 -0
- package/svelte/contextmenu.js +2 -0
- package/svelte/copy.d.ts +15 -0
- package/svelte/copy.js +2 -0
- package/svelte/countdown.d.ts +9 -0
- package/svelte/countdown.js +2 -0
- package/svelte/date-panel.d.ts +16 -0
- package/svelte/date-panel.js +2 -0
- package/svelte/date-picker.d.ts +18 -0
- package/svelte/date-picker.js +2 -0
- package/svelte/date-range-panel.d.ts +12 -0
- package/svelte/date-range-panel.js +2 -0
- package/svelte/date-range-picker.d.ts +18 -0
- package/svelte/date-range-picker.js +2 -0
- package/svelte/divider.d.ts +9 -0
- package/svelte/divider.js +2 -0
- package/svelte/donut-chart.d.ts +14 -0
- package/svelte/donut-chart.js +2 -0
- package/svelte/drawer.d.ts +9 -0
- package/svelte/drawer.js +2 -0
- package/svelte/drop-area.d.ts +17 -0
- package/svelte/drop-area.js +2 -0
- package/svelte/empty.d.ts +9 -0
- package/svelte/empty.js +2 -0
- package/svelte/file-picker.d.ts +19 -0
- package/svelte/file-picker.js +2 -0
- package/svelte/form.d.ts +36 -0
- package/svelte/form.js +2 -0
- package/svelte/gesture.d.ts +9 -0
- package/svelte/gesture.js +2 -0
- package/svelte/grouped-picker.d.ts +19 -0
- package/svelte/grouped-picker.js +2 -0
- package/svelte/heading.d.ts +11 -0
- package/svelte/heading.js +2 -0
- package/svelte/help-text.d.ts +11 -0
- package/svelte/help-text.js +2 -0
- package/svelte/icons.d.ts +9 -0
- package/svelte/icons.js +2 -0
- package/svelte/image-preview.d.ts +14 -0
- package/svelte/image-preview.js +2 -0
- package/svelte/input-capture.d.ts +9 -0
- package/svelte/input-capture.js +2 -0
- package/svelte/input.d.ts +9 -0
- package/svelte/input.js +2 -0
- package/svelte/keyboard-access.d.ts +13 -0
- package/svelte/keyboard-access.js +2 -0
- package/svelte/legend.d.ts +14 -0
- package/svelte/legend.js +2 -0
- package/svelte/letters.d.ts +9 -0
- package/svelte/letters.js +2 -0
- package/svelte/line-chart.d.ts +9 -0
- package/svelte/line-chart.js +2 -0
- package/svelte/link.d.ts +9 -0
- package/svelte/link.js +2 -0
- package/svelte/list.d.ts +11 -0
- package/svelte/list.js +2 -0
- package/svelte/loading.d.ts +9 -0
- package/svelte/loading.js +2 -0
- package/svelte/meter.d.ts +18 -0
- package/svelte/meter.js +2 -0
- package/svelte/more.d.ts +11 -0
- package/svelte/more.js +2 -0
- package/svelte/options.d.ts +9 -0
- package/svelte/options.js +2 -0
- package/svelte/page-loadbar.d.ts +9 -0
- package/svelte/page-loadbar.js +2 -0
- package/svelte/pagination.d.ts +17 -0
- package/svelte/pagination.js +2 -0
- package/svelte/paragraph.d.ts +9 -0
- package/svelte/paragraph.js +2 -0
- package/svelte/pat-console.d.ts +19 -0
- package/svelte/pat-console.js +2 -0
- package/svelte/pat-filter-form.d.ts +14 -0
- package/svelte/pat-filter-form.js +2 -0
- package/svelte/pat-footer.d.ts +17 -0
- package/svelte/pat-footer.js +2 -0
- package/svelte/pat-form.d.ts +14 -0
- package/svelte/pat-form.js +2 -0
- package/svelte/pat-nav.d.ts +15 -0
- package/svelte/pat-nav.js +2 -0
- package/svelte/pat-table.d.ts +26 -0
- package/svelte/pat-table.js +2 -0
- package/svelte/picker.d.ts +20 -0
- package/svelte/picker.js +2 -0
- package/svelte/placeholder.d.ts +9 -0
- package/svelte/placeholder.js +2 -0
- package/svelte/popover.d.ts +11 -0
- package/svelte/popover.js +2 -0
- package/svelte/progress.d.ts +12 -0
- package/svelte/progress.js +2 -0
- package/svelte/radar-chart.d.ts +16 -0
- package/svelte/radar-chart.js +2 -0
- package/svelte/radio.d.ts +9 -0
- package/svelte/radio.js +2 -0
- package/svelte/rate.d.ts +9 -0
- package/svelte/rate.js +2 -0
- package/svelte/reflect.d.ts +9 -0
- package/svelte/reflect.js +2 -0
- package/svelte/result.d.ts +15 -0
- package/svelte/result.js +2 -0
- package/svelte/rolling-number.d.ts +9 -0
- package/svelte/rolling-number.js +2 -0
- package/svelte/route.d.ts +9 -0
- package/svelte/route.js +2 -0
- package/svelte/sankey-chart.d.ts +15 -0
- package/svelte/sankey-chart.js +2 -0
- package/svelte/scatter-chart.d.ts +11 -0
- package/svelte/scatter-chart.js +2 -0
- package/svelte/scroll-box.d.ts +9 -0
- package/svelte/scroll-box.js +2 -0
- package/svelte/segmented.d.ts +9 -0
- package/svelte/segmented.js +2 -0
- package/svelte/select.d.ts +28 -0
- package/svelte/select.js +2 -0
- package/svelte/selection-box.d.ts +9 -0
- package/svelte/selection-box.js +2 -0
- package/svelte/shortcut-record.d.ts +17 -0
- package/svelte/shortcut-record.js +2 -0
- package/svelte/side-navigation.d.ts +12 -0
- package/svelte/side-navigation.js +2 -0
- package/svelte/slider.d.ts +9 -0
- package/svelte/slider.js +2 -0
- package/svelte/sort-box.d.ts +9 -0
- package/svelte/sort-box.js +2 -0
- package/svelte/space.d.ts +9 -0
- package/svelte/space.js +2 -0
- package/svelte/statistic.d.ts +19 -0
- package/svelte/statistic.js +2 -0
- package/svelte/status-light.d.ts +11 -0
- package/svelte/status-light.js +2 -0
- package/svelte/switch.d.ts +9 -0
- package/svelte/switch.js +2 -0
- package/svelte/table.d.ts +27 -0
- package/svelte/table.js +2 -0
- package/svelte/tabs.d.ts +11 -0
- package/svelte/tabs.js +2 -0
- package/svelte/tag.d.ts +9 -0
- package/svelte/tag.js +2 -0
- package/svelte/text-mask.d.ts +14 -0
- package/svelte/text-mask.js +2 -0
- package/svelte/time-panel.d.ts +13 -0
- package/svelte/time-panel.js +2 -0
- package/svelte/time-picker.d.ts +17 -0
- package/svelte/time-picker.js +2 -0
- package/svelte/timeline.d.ts +11 -0
- package/svelte/timeline.js +2 -0
- package/svelte/title.d.ts +9 -0
- package/svelte/title.js +2 -0
- package/svelte/toast.d.ts +11 -0
- package/svelte/toast.js +2 -0
- package/svelte/tooltip.d.ts +9 -0
- package/svelte/tooltip.js +2 -0
- package/svelte/tree.d.ts +18 -0
- package/svelte/tree.js +2 -0
- package/svelte/unsafe.d.ts +9 -0
- package/svelte/unsafe.js +2 -0
- package/svelte/use.d.ts +9 -0
- package/svelte/use.js +2 -0
- package/svelte/vestaboard.d.ts +15 -0
- package/svelte/vestaboard.js +2 -0
- package/svelte/wait.d.ts +11 -0
- package/svelte/wait.js +2 -0
- package/vue/DyActionText.vue +44 -0
- package/vue/DyActiveLink.vue +42 -0
- package/vue/DyAlert.vue +44 -0
- package/vue/DyAreaChart.vue +70 -0
- package/vue/DyAvatar.vue +48 -0
- package/vue/DyAvatarGroup.vue +47 -0
- package/vue/DyBadge.vue +42 -0
- package/vue/DyBanner.vue +42 -0
- package/vue/DyBarChart.vue +48 -0
- package/vue/DyBreadcrumbs.vue +45 -0
- package/vue/DyButton.vue +42 -0
- package/vue/DyCalendar.vue +47 -0
- package/vue/DyCard.vue +49 -0
- package/vue/DyCarousel.vue +49 -0
- package/vue/DyCascader.vue +46 -0
- package/vue/DyCascaderPicker.vue +53 -0
- package/vue/DyChartTooltip.vue +42 -0
- package/vue/DyChartZoom.vue +44 -0
- package/vue/DyCheckbox.vue +42 -0
- package/vue/DyCheckboxGroup.vue +42 -0
- package/vue/DyCoachMark.vue +45 -0
- package/vue/DyCodeBlock.vue +42 -0
- package/vue/DyCollapse.vue +42 -0
- package/vue/DyCollapsePanel.vue +42 -0
- package/vue/DyColorPanel.vue +43 -0
- package/vue/DyColorPicker.vue +48 -0
- package/vue/DyCompartment.vue +42 -0
- package/vue/DyContextmenu.vue +42 -0
- package/vue/DyCopy.vue +45 -0
- package/vue/DyCountdown.vue +42 -0
- package/vue/DyDatePanel.vue +46 -0
- package/vue/DyDatePicker.vue +52 -0
- package/vue/DyDateRangePanel.vue +42 -0
- package/vue/DyDateRangePicker.vue +52 -0
- package/vue/DyDivider.vue +42 -0
- package/vue/DyDonutChart.vue +45 -0
- package/vue/DyDrawer.vue +42 -0
- package/vue/DyDropArea.vue +47 -0
- package/vue/DyEmpty.vue +42 -0
- package/vue/DyFilePicker.vue +53 -0
- package/vue/DyForm.vue +66 -0
- package/vue/DyFormItem.vue +85 -0
- package/vue/DyFormItemInlineGroup.vue +42 -0
- package/vue/DyGesture.vue +42 -0
- package/vue/DyGroupedPicker.vue +53 -0
- package/vue/DyHeading.vue +42 -0
- package/vue/DyHelpText.vue +42 -0
- package/vue/DyIcons.vue +42 -0
- package/vue/DyImagePreview.vue +45 -0
- package/vue/DyInput.vue +42 -0
- package/vue/DyInputCapture.vue +42 -0
- package/vue/DyInputGroup.vue +42 -0
- package/vue/DyKeyboardAccess.vue +43 -0
- package/vue/DyLegend.vue +44 -0
- package/vue/DyLetters.vue +42 -0
- package/vue/DyLightRoute.vue +42 -0
- package/vue/DyLineChart.vue +42 -0
- package/vue/DyLink.vue +42 -0
- package/vue/DyList.vue +42 -0
- package/vue/DyLoading.vue +42 -0
- package/vue/DyMeter.vue +49 -0
- package/vue/DyMore.vue +45 -0
- package/vue/DyMoreSlot.vue +42 -0
- package/vue/DyOptions.vue +42 -0
- package/vue/DyPageLoadbar.vue +42 -0
- package/vue/DyPagination.vue +47 -0
- package/vue/DyParagraph.vue +42 -0
- package/vue/DyPatConsole.vue +50 -0
- package/vue/DyPatFilterForm.vue +44 -0
- package/vue/DyPatFooter.vue +47 -0
- package/vue/DyPatForm.vue +44 -0
- package/vue/DyPatNav.vue +46 -0
- package/vue/DyPatTable.vue +56 -0
- package/vue/DyPicker.vue +54 -0
- package/vue/DyPlaceholder.vue +42 -0
- package/vue/DyPopover.vue +53 -0
- package/vue/DyPopoverGhost.vue +42 -0
- package/vue/DyProgress.vue +43 -0
- package/vue/DyRadarChart.vue +47 -0
- package/vue/DyRadio.vue +42 -0
- package/vue/DyRadioGroup.vue +42 -0
- package/vue/DyRate.vue +42 -0
- package/vue/DyReflect.vue +42 -0
- package/vue/DyResult.vue +46 -0
- package/vue/DyRollingNumber.vue +42 -0
- package/vue/DyRoute.vue +42 -0
- package/vue/DySankeyChart.vue +46 -0
- package/vue/DyScatterChart.vue +42 -0
- package/vue/DyScrollBox.vue +42 -0
- package/vue/DySegmented.vue +42 -0
- package/vue/DySelect.vue +67 -0
- package/vue/DySelectionBox.vue +42 -0
- package/vue/DySelectionBoxMask.vue +42 -0
- package/vue/DyShortcutRecord.vue +47 -0
- package/vue/DySideNavigation.vue +43 -0
- package/vue/DySlider.vue +42 -0
- package/vue/DySortBox.vue +42 -0
- package/vue/DySortHandle.vue +42 -0
- package/vue/DySortItem.vue +42 -0
- package/vue/DySpace.vue +42 -0
- package/vue/DyStatistic.vue +50 -0
- package/vue/DyStatusLight.vue +42 -0
- package/vue/DySwitch.vue +42 -0
- package/vue/DyTabPanel.vue +42 -0
- package/vue/DyTable.vue +66 -0
- package/vue/DyTabs.vue +45 -0
- package/vue/DyTag.vue +42 -0
- package/vue/DyTextMask.vue +45 -0
- package/vue/DyTimePanel.vue +43 -0
- package/vue/DyTimePicker.vue +51 -0
- package/vue/DyTimeline.vue +42 -0
- package/vue/DyTitle.vue +42 -0
- package/vue/DyToast.vue +42 -0
- package/vue/DyTooltip.vue +42 -0
- package/vue/DyTree.vue +67 -0
- package/vue/DyUnsafe.vue +42 -0
- package/vue/DyUse.vue +42 -0
- package/vue/DyVestaboard.vue +46 -0
- package/vue/DyWait.vue +42 -0
- package/elements/flow.d.ts +0 -52
- package/elements/flow.d.ts.map +0 -1
- package/elements/flow.js +0 -703
- package/elements/flow.js.map +0 -1
- package/elements/map.d.ts +0 -48
- package/elements/map.d.ts.map +0 -1
- package/elements/map.js +0 -396
- package/elements/map.js.map +0 -1
package/lib/animations.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
easing: string;
|
|
3
|
-
duration: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const fadeIn: Keyframe[];
|
|
6
|
-
export declare const fadeOut: Keyframe[];
|
|
7
|
-
export declare const slideInUp: Keyframe[];
|
|
8
|
-
export declare const slideOutDown: Keyframe[];
|
|
9
|
-
export declare const slideInLeft: Keyframe[];
|
|
10
|
-
export declare const slideOutRight: Keyframe[];
|
|
1
|
+
export * from '@mantou/tap-ui/lib/animations';
|
|
11
2
|
//# sourceMappingURL=animations.d.ts.map
|
package/lib/animations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../src/lib/animations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../src/lib/animations.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/lib/animations.js
CHANGED
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export const commonAnimationOptions = {
|
|
3
|
-
easing: themeStore.timingFunction,
|
|
4
|
-
duration: 150,
|
|
5
|
-
};
|
|
6
|
-
export const fadeIn = [{ opacity: 0 }, { opacity: 1 }];
|
|
7
|
-
export const fadeOut = [...fadeIn].reverse();
|
|
8
|
-
export const slideInUp = [
|
|
9
|
-
{
|
|
10
|
-
transform: 'translateY(50%)',
|
|
11
|
-
opacity: 0,
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
transform: 'translateY(0)',
|
|
15
|
-
opacity: 1,
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
export const slideOutDown = [...slideInUp].reverse();
|
|
19
|
-
export const slideInLeft = [
|
|
20
|
-
{
|
|
21
|
-
transform: 'translateX(50%)',
|
|
22
|
-
opacity: 0,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
transform: 'translateX(0)',
|
|
26
|
-
opacity: 1,
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
export const slideOutRight = [...slideInLeft].reverse();
|
|
1
|
+
export * from '@mantou/tap-ui/lib/animations';
|
|
30
2
|
//# sourceMappingURL=animations.js.map
|
package/lib/animations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.js","sourceRoot":"","sources":["../src/lib/animations.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"animations.js","sourceRoot":"","sources":["../src/lib/animations.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/lib/cache.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
max?: number;
|
|
3
|
-
maxAge?: number;
|
|
4
|
-
renewal?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 过期的不能自动清理,但超出最大容量时会被修剪
|
|
8
|
-
*/
|
|
9
|
-
export declare class Cache<T = any> {
|
|
10
|
-
#private;
|
|
11
|
-
constructor({ max, maxAge, renewal }?: CacheOptions);
|
|
12
|
-
setOptions(options: CacheOptions): void;
|
|
13
|
-
set(key: string, value: T): T;
|
|
14
|
-
get(key: string): T | undefined;
|
|
15
|
-
get(key: string, init: (key: string) => T): T;
|
|
16
|
-
clear(): void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
1
|
+
export * from '@mantou/tap-ui/lib/cache';
|
|
19
2
|
//# sourceMappingURL=cache.d.ts.map
|
package/lib/cache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../src/lib/cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../src/lib/cache.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/cache.js
CHANGED
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* 过期的不能自动清理,但超出最大容量时会被修剪
|
|
4
|
-
*/
|
|
5
|
-
export class Cache {
|
|
6
|
-
#max;
|
|
7
|
-
#maxAge;
|
|
8
|
-
#renewal;
|
|
9
|
-
#map = new Map();
|
|
10
|
-
#reverseMap = new Map();
|
|
11
|
-
#addedLinked = new LinkedList();
|
|
12
|
-
constructor({ max = Infinity, maxAge = Infinity, renewal = false } = {}) {
|
|
13
|
-
this.#max = max;
|
|
14
|
-
this.#maxAge = maxAge;
|
|
15
|
-
this.#renewal = renewal;
|
|
16
|
-
}
|
|
17
|
-
setOptions(options) {
|
|
18
|
-
this.#max = options.max ?? this.#max;
|
|
19
|
-
this.#maxAge = options.maxAge ?? this.#maxAge;
|
|
20
|
-
this.#renewal = options.renewal ?? this.#renewal;
|
|
21
|
-
}
|
|
22
|
-
#trim() {
|
|
23
|
-
for (let i = this.#addedLinked.size - this.#max; i > 0; i--) {
|
|
24
|
-
const value = this.#addedLinked.get();
|
|
25
|
-
const key = this.#reverseMap.get(value);
|
|
26
|
-
this.#reverseMap.delete(value);
|
|
27
|
-
this.#map.delete(key);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
set(key, value) {
|
|
31
|
-
this.#addedLinked.add(value);
|
|
32
|
-
this.#reverseMap.set(value, key);
|
|
33
|
-
this.#map.set(key, { value, timestamp: Date.now() });
|
|
34
|
-
this.#trim();
|
|
35
|
-
return value;
|
|
36
|
-
}
|
|
37
|
-
get(key, init) {
|
|
38
|
-
const cache = this.#map.get(key);
|
|
39
|
-
if (!cache) {
|
|
40
|
-
return init && this.set(key, init(key));
|
|
41
|
-
}
|
|
42
|
-
const { timestamp, value } = cache;
|
|
43
|
-
// 过期重新生成
|
|
44
|
-
if (Date.now() - timestamp > this.#maxAge) {
|
|
45
|
-
this.#addedLinked.delete(value);
|
|
46
|
-
this.#reverseMap.delete(value);
|
|
47
|
-
this.#map.delete(key);
|
|
48
|
-
return init && this.set(key, init(key));
|
|
49
|
-
}
|
|
50
|
-
if (this.#renewal) {
|
|
51
|
-
cache.timestamp = Date.now();
|
|
52
|
-
}
|
|
53
|
-
// 调整下位置
|
|
54
|
-
this.#addedLinked.add(value);
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
clear() {
|
|
58
|
-
this.#map.clear();
|
|
59
|
-
this.#reverseMap.clear();
|
|
60
|
-
this.#addedLinked.clear();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
export * from '@mantou/tap-ui/lib/cache';
|
|
63
2
|
//# sourceMappingURL=cache.js.map
|
package/lib/cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../src/lib/cache.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../src/lib/cache.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/color.d.ts
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type RGBA = readonly [number, number, number, number];
|
|
3
|
-
export type HSL = readonly [number, number, number];
|
|
4
|
-
export type HSLA = readonly [number, number, number, number];
|
|
5
|
-
export type HSV = readonly [number, number, number];
|
|
6
|
-
export type HexColor = `#${string}`;
|
|
7
|
-
export type RGBColor = `rgb${'a' | ''}(${string})`;
|
|
8
|
-
export type HSLColor = `hsl${'a' | ''}(${string})`;
|
|
9
|
-
export declare const commonColors: `#${string}`[];
|
|
10
|
-
export declare function rgbToRgbColor([r, g, b, a]: RGB | RGBA): RGBColor;
|
|
11
|
-
export declare function rgbToHslColor([r, g, b, a]: RGB | RGBA): HSLColor;
|
|
12
|
-
export declare function rgbToHexColor(rgba: RGB | RGBA): HexColor;
|
|
13
|
-
export declare function randomColor(): RGB;
|
|
14
|
-
export declare function randomColor(type: 'rgba'): RGBColor;
|
|
15
|
-
export declare function randomColor(type: 'hsla'): HSLColor;
|
|
16
|
-
export declare function randomColor(type: 'hex'): HexColor;
|
|
17
|
-
export declare function parseHexColor(str: HexColor): RGBA;
|
|
18
|
-
/**
|
|
19
|
-
* Note: ignore alpha
|
|
20
|
-
*/
|
|
21
|
-
export declare function luminance([r, g, b]: RGB | RGBA): number;
|
|
22
|
-
/**
|
|
23
|
-
* Note: ignore alpha
|
|
24
|
-
*/
|
|
25
|
-
export declare function contrast(rgb1: RGB | RGBA, rgb2: RGB | RGBA): number;
|
|
26
|
-
/**
|
|
27
|
-
* Note: ignore alpha
|
|
28
|
-
*
|
|
29
|
-
* @see
|
|
30
|
-
* https://stackoverflow.com/questions/8022885/rgb-to-hsv-color-in-javascript
|
|
31
|
-
*/
|
|
32
|
-
export declare function rgbToHsl(rgb: RGB | RGBA): HSL;
|
|
33
|
-
export declare function hslToRgb([h, s, l]: HSL | HSLA): RGB;
|
|
34
|
-
export declare function rgbToHsv(rgb: RGB | RGBA): HSV;
|
|
35
|
-
export declare function hsvToRgb([h, s, v]: HSV): RGB;
|
|
36
|
-
export declare function hslToHsv([h, s, l]: HSL | HSLA): HSV;
|
|
37
|
-
export declare function hsvToHsl([h, s, v]: HSV): HSL;
|
|
1
|
+
export * from '@mantou/tap-ui/lib/color';
|
|
38
2
|
//# sourceMappingURL=color.d.ts.map
|
package/lib/color.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../src/lib/color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../src/lib/color.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/color.js
CHANGED
|
@@ -1,99 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export const commonColors = Array(20)
|
|
3
|
-
.fill(null)
|
|
4
|
-
.map((_, index) => Math.abs((326 + index * 81 * (index % 2 ? 1 : -1)) % 360) / 360)
|
|
5
|
-
.map((h) => [h, 78 / 100, 64 / 100])
|
|
6
|
-
.map((hsl) => hslToRgb(hsl))
|
|
7
|
-
.map((rgb) => rgbToHexColor(rgb));
|
|
8
|
-
export function rgbToRgbColor([r, g, b, a = 1]) {
|
|
9
|
-
const rgbStr = [r, g, b].join();
|
|
10
|
-
return a === 1 ? `rgb(${rgbStr})` : `rgba(${rgbStr},${Number(a.toFixed(2))})`;
|
|
11
|
-
}
|
|
12
|
-
export function rgbToHslColor([r, g, b, a = 1]) {
|
|
13
|
-
const [h, s, l] = rgbToHsl([r, g, b]);
|
|
14
|
-
const hslStr = `${Math.round(h * 360)},${Math.round(s * 100)}%,${Math.round(l * 100)}%`;
|
|
15
|
-
return a === 1 ? `hsl(${hslStr})` : `hsla(${hslStr},${Number(a.toFixed(2))})`;
|
|
16
|
-
}
|
|
17
|
-
export function rgbToHexColor(rgba) {
|
|
18
|
-
const rgb = rgba.slice(0, 3);
|
|
19
|
-
return `#${(rgba.length === 4 && rgba[3] !== 1 ? [...rgb, rgba[3] * 255] : rgb)
|
|
20
|
-
.map((e) => Math.round(e).toString(16).padStart(2, '0'))
|
|
21
|
-
.join('')}`;
|
|
22
|
-
}
|
|
23
|
-
export function randomColor(type) {
|
|
24
|
-
const randomNumber = () => Math.round(Math.random() * 255);
|
|
25
|
-
const rgb = [randomNumber(), randomNumber(), randomNumber()];
|
|
26
|
-
switch (type) {
|
|
27
|
-
case 'rgba':
|
|
28
|
-
return rgbToRgbColor(rgb);
|
|
29
|
-
case 'hsla':
|
|
30
|
-
return rgbToHslColor(rgb);
|
|
31
|
-
case 'hex':
|
|
32
|
-
return rgbToHexColor(rgb);
|
|
33
|
-
default:
|
|
34
|
-
return rgb;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export function parseHexColor(str) {
|
|
38
|
-
const s = str.replace('#', '');
|
|
39
|
-
const fullHex = s.length === 3 || s.length === 4 ? s.replace(/\w/g, ($1) => $1 + $1) : s;
|
|
40
|
-
const [r, g, b, a = 255] = fullHex
|
|
41
|
-
.split(/(\w{2})/)
|
|
42
|
-
.filter((e) => !!e)
|
|
43
|
-
.map((e) => parseInt(e, 16));
|
|
44
|
-
return [r, g, b, a / 255];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Note: ignore alpha
|
|
48
|
-
*/
|
|
49
|
-
export function luminance([r, g, b]) {
|
|
50
|
-
const a = [r, g, b].map((v) => {
|
|
51
|
-
v /= 255;
|
|
52
|
-
return v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;
|
|
53
|
-
});
|
|
54
|
-
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Note: ignore alpha
|
|
58
|
-
*/
|
|
59
|
-
export function contrast(rgb1, rgb2) {
|
|
60
|
-
const l1 = luminance([rgb1[0], rgb1[1], rgb1[2]]) + 0.05;
|
|
61
|
-
const l2 = luminance([rgb2[0], rgb2[1], rgb2[2]]) + 0.05;
|
|
62
|
-
return Math.max(l1, l2) / Math.min(l1, l2);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Note: ignore alpha
|
|
66
|
-
*
|
|
67
|
-
* @see
|
|
68
|
-
* https://stackoverflow.com/questions/8022885/rgb-to-hsv-color-in-javascript
|
|
69
|
-
*/
|
|
70
|
-
export function rgbToHsl(rgb) {
|
|
71
|
-
const [r, g, b] = rgb.map((e) => e / 255);
|
|
72
|
-
const v = Math.max(r, g, b), c = v - Math.min(r, g, b), f = 1 - Math.abs(v + v - c - 1);
|
|
73
|
-
const h = c && (v === r ? (g - b) / c : v === g ? 2 + (b - r) / c : 4 + (r - g) / c);
|
|
74
|
-
return [(h < 0 ? h + 6 : h) / 6, f ? c / f : 0, (v + v - c) / 2];
|
|
75
|
-
}
|
|
76
|
-
export function hslToRgb([h, s, l]) {
|
|
77
|
-
const a = s * Math.min(l, 1 - l);
|
|
78
|
-
const f = (n, k = (n + h * 12) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
|
|
79
|
-
return [f(0), f(8), f(4)].map((e) => Math.round(e * 255));
|
|
80
|
-
}
|
|
81
|
-
export function rgbToHsv(rgb) {
|
|
82
|
-
const [r, g, b] = rgb.map((e) => e / 255);
|
|
83
|
-
const v = Math.max(r, g, b), c = v - Math.min(r, g, b);
|
|
84
|
-
const h = c && (v === r ? (g - b) / c : v === g ? 2 + (b - r) / c : 4 + (r - g) / c);
|
|
85
|
-
return [(h < 0 ? h + 6 : h) / 6, v && c / v, v];
|
|
86
|
-
}
|
|
87
|
-
export function hsvToRgb([h, s, v]) {
|
|
88
|
-
const f = (n, k = (n + h * 6) % 6) => v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);
|
|
89
|
-
return [f(5), f(3), f(1)].map((e) => Math.round(e * 255));
|
|
90
|
-
}
|
|
91
|
-
export function hslToHsv([h, s, l]) {
|
|
92
|
-
const v = s * Math.min(l, 1 - l) + l;
|
|
93
|
-
return [h, v ? 2 - (2 * l) / v : 0, v];
|
|
94
|
-
}
|
|
95
|
-
export function hsvToHsl([h, s, v]) {
|
|
96
|
-
const l = v - (v * s) / 2, m = Math.min(l, 1 - l);
|
|
97
|
-
return [h, m ? (v - l) / m : 0, l];
|
|
98
|
-
}
|
|
1
|
+
export * from '@mantou/tap-ui/lib/color';
|
|
99
2
|
//# sourceMappingURL=color.js.map
|
package/lib/color.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../src/lib/color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["../src/lib/color.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/decorators.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function visible<T extends GemElement, V extends () => any>(): (_: any, { addInitializer, access }: ClassFieldDecoratorContext<T, V> | ClassMethodDecoratorContext<T, V>) => void;
|
|
1
|
+
export * from '@mantou/tap-ui/lib/decorators';
|
|
3
2
|
//# sourceMappingURL=decorators.d.ts.map
|
package/lib/decorators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/lib/decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/lib/decorators.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/lib/decorators.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export function visible() {
|
|
3
|
-
return (_, { addInitializer, access }) => {
|
|
4
|
-
addInitializer(function () {
|
|
5
|
-
this.effect(() => {
|
|
6
|
-
const fn = access.get.call(this, this).bind(this);
|
|
7
|
-
const handler = () => {
|
|
8
|
-
if (document.visibilityState === 'visible')
|
|
9
|
-
fn();
|
|
10
|
-
};
|
|
11
|
-
document.addEventListener('visibilitychange', handler);
|
|
12
|
-
return () => document.removeEventListener('visibilitychange', handler);
|
|
13
|
-
}, () => []);
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
export * from '@mantou/tap-ui/lib/decorators';
|
|
17
2
|
//# sourceMappingURL=decorators.js.map
|
package/lib/decorators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/lib/decorators.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/lib/decorators.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/lib/easing.d.ts
CHANGED
|
@@ -1,79 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Easing functions for smooth animations
|
|
3
|
-
* All functions take a time parameter t (0-1) and return the eased value
|
|
4
|
-
*/
|
|
5
|
-
export type EasingFunction = (t: number) => number;
|
|
6
|
-
export declare const linear: EasingFunction;
|
|
7
|
-
export declare const easeInCubic: EasingFunction;
|
|
8
|
-
export declare const easeOutCubic: EasingFunction;
|
|
9
|
-
export declare const easeInOutCubic: EasingFunction;
|
|
10
|
-
export declare const easeInQuad: EasingFunction;
|
|
11
|
-
export declare const easeOutQuad: EasingFunction;
|
|
12
|
-
export declare const easeInOutQuad: EasingFunction;
|
|
13
|
-
export declare const easeInQuart: EasingFunction;
|
|
14
|
-
export declare const easeOutQuart: EasingFunction;
|
|
15
|
-
export declare const easeInOutQuart: EasingFunction;
|
|
16
|
-
export declare const easeInQuint: EasingFunction;
|
|
17
|
-
export declare const easeOutQuint: EasingFunction;
|
|
18
|
-
export declare const easeInOutQuint: EasingFunction;
|
|
19
|
-
export declare const easeInSine: EasingFunction;
|
|
20
|
-
export declare const easeOutSine: EasingFunction;
|
|
21
|
-
export declare const easeInOutSine: EasingFunction;
|
|
22
|
-
export declare const easeInExpo: EasingFunction;
|
|
23
|
-
export declare const easeOutExpo: EasingFunction;
|
|
24
|
-
export declare const easeInOutExpo: EasingFunction;
|
|
25
|
-
export declare const easeInCirc: EasingFunction;
|
|
26
|
-
export declare const easeOutCirc: EasingFunction;
|
|
27
|
-
export declare const easeInOutCirc: EasingFunction;
|
|
28
|
-
export declare const easeInBack: EasingFunction;
|
|
29
|
-
export declare const easeOutBack: EasingFunction;
|
|
30
|
-
export declare const easeInOutBack: EasingFunction;
|
|
31
|
-
export declare const easeInElastic: EasingFunction;
|
|
32
|
-
export declare const easeOutElastic: EasingFunction;
|
|
33
|
-
export declare const easeInOutElastic: EasingFunction;
|
|
34
|
-
export declare const easeOutBounce: EasingFunction;
|
|
35
|
-
export declare const easeInBounce: EasingFunction;
|
|
36
|
-
export declare const easeInOutBounce: EasingFunction;
|
|
37
|
-
declare const easingFunctions: {
|
|
38
|
-
readonly linear: EasingFunction;
|
|
39
|
-
readonly 'ease-in': EasingFunction;
|
|
40
|
-
readonly 'ease-out': EasingFunction;
|
|
41
|
-
readonly 'ease-in-out': EasingFunction;
|
|
42
|
-
readonly 'ease-in-quad': EasingFunction;
|
|
43
|
-
readonly 'ease-out-quad': EasingFunction;
|
|
44
|
-
readonly 'ease-in-out-quad': EasingFunction;
|
|
45
|
-
readonly 'ease-in-cubic': EasingFunction;
|
|
46
|
-
readonly 'ease-out-cubic': EasingFunction;
|
|
47
|
-
readonly 'ease-in-out-cubic': EasingFunction;
|
|
48
|
-
readonly 'ease-in-quart': EasingFunction;
|
|
49
|
-
readonly 'ease-out-quart': EasingFunction;
|
|
50
|
-
readonly 'ease-in-out-quart': EasingFunction;
|
|
51
|
-
readonly 'ease-in-quint': EasingFunction;
|
|
52
|
-
readonly 'ease-out-quint': EasingFunction;
|
|
53
|
-
readonly 'ease-in-out-quint': EasingFunction;
|
|
54
|
-
readonly 'ease-in-sine': EasingFunction;
|
|
55
|
-
readonly 'ease-out-sine': EasingFunction;
|
|
56
|
-
readonly 'ease-in-out-sine': EasingFunction;
|
|
57
|
-
readonly 'ease-in-expo': EasingFunction;
|
|
58
|
-
readonly 'ease-out-expo': EasingFunction;
|
|
59
|
-
readonly 'ease-in-out-expo': EasingFunction;
|
|
60
|
-
readonly 'ease-in-circ': EasingFunction;
|
|
61
|
-
readonly 'ease-out-circ': EasingFunction;
|
|
62
|
-
readonly 'ease-in-out-circ': EasingFunction;
|
|
63
|
-
readonly 'ease-in-back': EasingFunction;
|
|
64
|
-
readonly 'ease-out-back': EasingFunction;
|
|
65
|
-
readonly 'ease-in-out-back': EasingFunction;
|
|
66
|
-
readonly 'ease-in-elastic': EasingFunction;
|
|
67
|
-
readonly 'ease-out-elastic': EasingFunction;
|
|
68
|
-
readonly 'ease-in-out-elastic': EasingFunction;
|
|
69
|
-
readonly 'ease-in-bounce': EasingFunction;
|
|
70
|
-
readonly 'ease-out-bounce': EasingFunction;
|
|
71
|
-
readonly 'ease-in-out-bounce': EasingFunction;
|
|
72
|
-
};
|
|
73
|
-
export type EasingType = keyof typeof easingFunctions;
|
|
74
|
-
/**
|
|
75
|
-
* Get easing function by name
|
|
76
|
-
*/
|
|
77
|
-
export declare function getEasing(name: EasingType): EasingFunction;
|
|
78
|
-
export {};
|
|
1
|
+
export * from '@mantou/tap-ui/lib/easing';
|
|
79
2
|
//# sourceMappingURL=easing.d.ts.map
|
package/lib/easing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../src/lib/easing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../src/lib/easing.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
package/lib/easing.js
CHANGED
|
@@ -1,140 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Easing functions for smooth animations
|
|
3
|
-
* All functions take a time parameter t (0-1) and return the eased value
|
|
4
|
-
*/
|
|
5
|
-
// Basic easing functions
|
|
6
|
-
export const linear = (t) => t;
|
|
7
|
-
// Cubic easing (from user's original code)
|
|
8
|
-
export const easeInCubic = (t) => t * t * t;
|
|
9
|
-
export const easeOutCubic = (t) => 1 - (1 - t) ** 3;
|
|
10
|
-
export const easeInOutCubic = (t) => (t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2);
|
|
11
|
-
// Quad easing
|
|
12
|
-
export const easeInQuad = (t) => t * t;
|
|
13
|
-
export const easeOutQuad = (t) => 1 - (1 - t) * (1 - t);
|
|
14
|
-
export const easeInOutQuad = (t) => (t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2);
|
|
15
|
-
// Quart easing
|
|
16
|
-
export const easeInQuart = (t) => t * t * t * t;
|
|
17
|
-
export const easeOutQuart = (t) => 1 - (1 - t) ** 4;
|
|
18
|
-
export const easeInOutQuart = (t) => (t < 0.5 ? 8 * t * t * t * t : 1 - (-2 * t + 2) ** 4 / 2);
|
|
19
|
-
// Quint easing
|
|
20
|
-
export const easeInQuint = (t) => t * t * t * t * t;
|
|
21
|
-
export const easeOutQuint = (t) => 1 - (1 - t) ** 5;
|
|
22
|
-
export const easeInOutQuint = (t) => (t < 0.5 ? 16 * t * t * t * t * t : 1 - (-2 * t + 2) ** 5 / 2);
|
|
23
|
-
// Sine easing
|
|
24
|
-
export const easeInSine = (t) => 1 - Math.cos((t * Math.PI) / 2);
|
|
25
|
-
export const easeOutSine = (t) => Math.sin((t * Math.PI) / 2);
|
|
26
|
-
export const easeInOutSine = (t) => -(Math.cos(Math.PI * t) - 1) / 2;
|
|
27
|
-
// Expo easing
|
|
28
|
-
export const easeInExpo = (t) => (t === 0 ? 0 : 2 ** (10 * t - 10));
|
|
29
|
-
export const easeOutExpo = (t) => (t === 1 ? 1 : 1 - 2 ** (-10 * t));
|
|
30
|
-
export const easeInOutExpo = (t) => {
|
|
31
|
-
if (t === 0)
|
|
32
|
-
return 0;
|
|
33
|
-
if (t === 1)
|
|
34
|
-
return 1;
|
|
35
|
-
return t < 0.5 ? 2 ** (20 * t - 10) / 2 : (2 - 2 ** (-20 * t + 10)) / 2;
|
|
36
|
-
};
|
|
37
|
-
// Circ easing
|
|
38
|
-
export const easeInCirc = (t) => 1 - Math.sqrt(1 - t ** 2);
|
|
39
|
-
export const easeOutCirc = (t) => Math.sqrt(1 - (t - 1) ** 2);
|
|
40
|
-
export const easeInOutCirc = (t) => t < 0.5 ? (1 - Math.sqrt(1 - (2 * t) ** 2)) / 2 : (Math.sqrt(1 - (-2 * t + 2) ** 2) + 1) / 2;
|
|
41
|
-
// Back easing
|
|
42
|
-
export const easeInBack = (t) => {
|
|
43
|
-
const c1 = 1.70158;
|
|
44
|
-
const c3 = c1 + 1;
|
|
45
|
-
return c3 * t * t * t - c1 * t * t;
|
|
46
|
-
};
|
|
47
|
-
export const easeOutBack = (t) => {
|
|
48
|
-
const c1 = 1.70158;
|
|
49
|
-
const c3 = c1 + 1;
|
|
50
|
-
return 1 + c3 * (t - 1) ** 3 + c1 * (t - 1) ** 2;
|
|
51
|
-
};
|
|
52
|
-
export const easeInOutBack = (t) => {
|
|
53
|
-
const c1 = 1.70158;
|
|
54
|
-
const c2 = c1 * 1.525;
|
|
55
|
-
return t < 0.5
|
|
56
|
-
? ((2 * t) ** 2 * ((c2 + 1) * 2 * t - c2)) / 2
|
|
57
|
-
: ((2 * t - 2) ** 2 * ((c2 + 1) * (t * 2 - 2) + c2) + 2) / 2;
|
|
58
|
-
};
|
|
59
|
-
// Elastic easing
|
|
60
|
-
export const easeInElastic = (t) => {
|
|
61
|
-
const c4 = (2 * Math.PI) / 3;
|
|
62
|
-
return t === 0 ? 0 : t === 1 ? 1 : -(2 ** (10 * t - 10)) * Math.sin((t * 10 - 10.75) * c4);
|
|
63
|
-
};
|
|
64
|
-
export const easeOutElastic = (t) => {
|
|
65
|
-
const c4 = (2 * Math.PI) / 3;
|
|
66
|
-
return t === 0 ? 0 : t === 1 ? 1 : 2 ** (-10 * t) * Math.sin((t * 10 - 0.75) * c4) + 1;
|
|
67
|
-
};
|
|
68
|
-
export const easeInOutElastic = (t) => {
|
|
69
|
-
const c5 = (2 * Math.PI) / 4.5;
|
|
70
|
-
if (t === 0)
|
|
71
|
-
return 0;
|
|
72
|
-
if (t === 1)
|
|
73
|
-
return 1;
|
|
74
|
-
return t < 0.5
|
|
75
|
-
? -(2 ** (20 * t - 10) * Math.sin((20 * t - 11.125) * c5)) / 2
|
|
76
|
-
: (2 ** (-20 * t + 10) * Math.sin((20 * t - 11.125) * c5)) / 2 + 1;
|
|
77
|
-
};
|
|
78
|
-
// Bounce easing
|
|
79
|
-
export const easeOutBounce = (t) => {
|
|
80
|
-
const n1 = 7.5625;
|
|
81
|
-
const d1 = 2.75;
|
|
82
|
-
if (t < 1 / d1) {
|
|
83
|
-
return n1 * t * t;
|
|
84
|
-
}
|
|
85
|
-
else if (t < 2 / d1) {
|
|
86
|
-
return n1 * (t -= 1.5 / d1) * t + 0.75;
|
|
87
|
-
}
|
|
88
|
-
else if (t < 2.5 / d1) {
|
|
89
|
-
return n1 * (t -= 2.25 / d1) * t + 0.9375;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return n1 * (t -= 2.625 / d1) * t + 0.984375;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
export const easeInBounce = (t) => 1 - easeOutBounce(1 - t);
|
|
96
|
-
export const easeInOutBounce = (t) => t < 0.5 ? (1 - easeOutBounce(1 - 2 * t)) / 2 : (1 + easeOutBounce(2 * t - 1)) / 2;
|
|
97
|
-
// Easing map for easy lookup
|
|
98
|
-
const easingFunctions = {
|
|
99
|
-
linear,
|
|
100
|
-
'ease-in': easeInCubic,
|
|
101
|
-
'ease-out': easeOutCubic,
|
|
102
|
-
'ease-in-out': easeInOutCubic,
|
|
103
|
-
'ease-in-quad': easeInQuad,
|
|
104
|
-
'ease-out-quad': easeOutQuad,
|
|
105
|
-
'ease-in-out-quad': easeInOutQuad,
|
|
106
|
-
'ease-in-cubic': easeInCubic,
|
|
107
|
-
'ease-out-cubic': easeOutCubic,
|
|
108
|
-
'ease-in-out-cubic': easeInOutCubic,
|
|
109
|
-
'ease-in-quart': easeInQuart,
|
|
110
|
-
'ease-out-quart': easeOutQuart,
|
|
111
|
-
'ease-in-out-quart': easeInOutQuart,
|
|
112
|
-
'ease-in-quint': easeInQuint,
|
|
113
|
-
'ease-out-quint': easeOutQuint,
|
|
114
|
-
'ease-in-out-quint': easeInOutQuint,
|
|
115
|
-
'ease-in-sine': easeInSine,
|
|
116
|
-
'ease-out-sine': easeOutSine,
|
|
117
|
-
'ease-in-out-sine': easeInOutSine,
|
|
118
|
-
'ease-in-expo': easeInExpo,
|
|
119
|
-
'ease-out-expo': easeOutExpo,
|
|
120
|
-
'ease-in-out-expo': easeInOutExpo,
|
|
121
|
-
'ease-in-circ': easeInCirc,
|
|
122
|
-
'ease-out-circ': easeOutCirc,
|
|
123
|
-
'ease-in-out-circ': easeInOutCirc,
|
|
124
|
-
'ease-in-back': easeInBack,
|
|
125
|
-
'ease-out-back': easeOutBack,
|
|
126
|
-
'ease-in-out-back': easeInOutBack,
|
|
127
|
-
'ease-in-elastic': easeInElastic,
|
|
128
|
-
'ease-out-elastic': easeOutElastic,
|
|
129
|
-
'ease-in-out-elastic': easeInOutElastic,
|
|
130
|
-
'ease-in-bounce': easeInBounce,
|
|
131
|
-
'ease-out-bounce': easeOutBounce,
|
|
132
|
-
'ease-in-out-bounce': easeInOutBounce,
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Get easing function by name
|
|
136
|
-
*/
|
|
137
|
-
export function getEasing(name) {
|
|
138
|
-
return easingFunctions[name];
|
|
139
|
-
}
|
|
1
|
+
export * from '@mantou/tap-ui/lib/easing';
|
|
140
2
|
//# sourceMappingURL=easing.js.map
|
package/lib/easing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"easing.js","sourceRoot":"","sources":["../src/lib/easing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"easing.js","sourceRoot":"","sources":["../src/lib/easing.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
package/lib/element.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
top: number;
|
|
3
|
-
left: number;
|
|
4
|
-
right: number;
|
|
5
|
-
bottom: number;
|
|
6
|
-
};
|
|
7
|
-
export declare function toggleActiveState(ele: Element | undefined | null, active: boolean): void;
|
|
8
|
-
/**Y axis */
|
|
9
|
-
export declare function findScrollContainer(startElement?: HTMLElement | null): HTMLElement | undefined;
|
|
10
|
-
export declare function findRanges(root: Node, text: string): Range[];
|
|
11
|
-
export declare function findActiveElement(): Element | null;
|
|
12
|
-
export declare function isInputElement(originElement: HTMLElement): true | undefined;
|
|
13
|
-
export declare function closestElement<K extends keyof HTMLElementTagNameMap>(ele: Element, tag: K): HTMLElementTagNameMap[K] | null;
|
|
14
|
-
export declare function closestElement<K extends abstract new (...args: any) => any>(ele: Element, con: K): InstanceType<K> | null;
|
|
15
|
-
export declare function closestElement<K extends Element>(ele: Element, tag: string): K | null;
|
|
16
|
-
export declare function containsElement(ele: Element, other: Element): boolean;
|
|
17
|
-
/**In addition to the parameter element, set the `inert` attribute for all element */
|
|
18
|
-
export declare function setBodyInert(modal: HTMLElement): () => void;
|
|
1
|
+
export * from '@mantou/tap-ui/lib/element';
|
|
19
2
|
//# sourceMappingURL=element.d.ts.map
|
package/lib/element.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/lib/element.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../src/lib/element.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|