naive-ui 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3197 -1769
- package/dist/index.prod.js +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
- package/es/_internal/scrollbar/src/Scrollbar.js +49 -26
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/es/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/es/_internal/scrollbar/src/styles/rtl.cssr.js +10 -0
- package/es/_internal/scrollbar/styles/index.d.ts +1 -0
- package/es/_internal/scrollbar/styles/index.js +1 -0
- package/es/_internal/scrollbar/styles/rtl.d.ts +3 -0
- package/es/_internal/scrollbar/styles/rtl.js +6 -0
- package/es/_internal/selection/src/Selection.js +4 -2
- package/es/_internal/selection/src/styles/index.cssr.js +4 -1
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_utils/naive/extract-public-props.d.ts +4 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -0
- package/es/avatar/src/Avatar.d.ts +0 -1
- package/es/avatar/src/Avatar.js +12 -10
- package/es/button/src/Button.js +3 -0
- package/es/carousel/src/Carousel.d.ts +16 -37
- package/es/carousel/src/Carousel.js +269 -272
- package/es/carousel/src/CarouselArrow.js +3 -5
- package/es/carousel/src/CarouselContext.d.ts +21 -0
- package/es/carousel/src/CarouselContext.js +11 -0
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselDots.js +23 -31
- package/es/carousel/src/CarouselItem.d.ts +4 -4
- package/es/carousel/src/CarouselItem.js +17 -36
- package/es/carousel/src/interface.d.ts +12 -31
- package/es/carousel/src/interface.js +1 -3
- package/es/carousel/src/styles/index.cssr.js +8 -3
- package/es/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
- package/es/carousel/src/utils/duplicatedLogic.js +46 -0
- package/es/carousel/src/utils/event.d.ts +1 -0
- package/es/carousel/src/utils/event.js +3 -0
- package/es/carousel/src/utils/index.d.ts +6 -0
- package/es/carousel/src/{utils.js → utils/index.js} +3 -28
- package/es/checkbox/src/CheckboxGroup.d.ts +27 -22
- package/es/checkbox/src/CheckboxGroup.js +58 -28
- package/es/code/src/Code.d.ts +16 -0
- package/es/code/src/Code.js +53 -12
- package/es/code/src/styles/index.cssr.js +14 -2
- package/es/code/styles/dark.js +4 -2
- package/es/code/styles/light.d.ts +1 -0
- package/es/code/styles/light.js +4 -2
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +24 -3
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/panel/daterange.d.ts +0 -1
- package/es/date-picker/src/panel/daterange.js +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +0 -1
- package/es/date-picker/src/panel/datetimerange.js +1 -1
- package/es/date-picker/src/panel/monthrange.d.ts +0 -1
- package/es/date-picker/src/panel/monthrange.js +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
- package/es/date-picker/src/panel/use-dual-calendar.js +0 -11
- package/es/dialog/src/DialogEnvironment.d.ts +4 -0
- package/es/dialog/src/DialogEnvironment.js +11 -4
- package/es/dialog/src/DialogProvider.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/es/image/src/utils.d.ts +1 -1
- package/es/input/src/Input.d.ts +1 -0
- package/es/input/src/Input.js +19 -8
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +1 -6
- package/es/input-number/src/InputNumber.d.ts +1 -0
- package/es/input-number/src/InputNumber.js +4 -0
- package/es/legacy-grid/src/Row.d.ts +1 -0
- package/es/legacy-grid/src/Row.js +8 -3
- package/es/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
- package/es/legacy-grid/src/styles/rtl.cssr.js +21 -0
- package/es/legacy-grid/styles/dark.d.ts +4 -0
- package/es/legacy-grid/styles/dark.js +6 -0
- package/es/legacy-grid/styles/index.d.ts +4 -0
- package/es/legacy-grid/styles/index.js +3 -0
- package/es/legacy-grid/styles/light.d.ts +4 -0
- package/es/legacy-grid/styles/light.js +6 -0
- package/es/legacy-grid/styles/rtl.d.ts +2 -0
- package/es/legacy-grid/styles/rtl.js +5 -0
- package/es/legacy-transfer/index.d.ts +3 -0
- package/es/legacy-transfer/index.js +1 -0
- package/es/legacy-transfer/src/Transfer.d.ts +3631 -0
- package/es/legacy-transfer/src/Transfer.js +214 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +509 -0
- package/es/legacy-transfer/src/TransferFilter.js +40 -0
- package/es/legacy-transfer/src/TransferHeader.d.ts +25 -0
- package/es/legacy-transfer/src/TransferHeader.js +47 -0
- package/es/legacy-transfer/src/TransferList.d.ts +556 -0
- package/es/legacy-transfer/src/TransferList.js +93 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +513 -0
- package/es/legacy-transfer/src/TransferListItem.js +65 -0
- package/es/legacy-transfer/src/interface.d.ts +31 -0
- package/es/legacy-transfer/src/interface.js +2 -0
- package/es/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
- package/es/legacy-transfer/src/styles/index.cssr.js +215 -0
- package/es/legacy-transfer/src/use-transfer-data.d.ts +41 -0
- package/es/legacy-transfer/src/use-transfer-data.js +145 -0
- package/es/legacy-transfer/styles/_common.d.ts +5 -0
- package/es/legacy-transfer/styles/_common.js +4 -0
- package/es/legacy-transfer/styles/dark.d.ts +3 -0
- package/es/legacy-transfer/styles/dark.js +27 -0
- package/es/legacy-transfer/styles/index.d.ts +3 -0
- package/es/legacy-transfer/styles/index.js +2 -0
- package/es/legacy-transfer/styles/light.d.ts +363 -0
- package/es/legacy-transfer/styles/light.js +31 -0
- package/es/locales/common/deDE.js +11 -6
- package/es/locales/common/enGB.js +8 -1
- package/es/locales/common/enUS.d.ts +8 -1
- package/es/locales/common/enUS.js +8 -1
- package/es/locales/common/eo.js +10 -2
- package/es/locales/common/esAR.js +9 -1
- package/es/locales/common/frFR.js +9 -1
- package/es/locales/common/idID.js +9 -1
- package/es/locales/common/itIT.js +9 -1
- package/es/locales/common/jaJP.js +9 -1
- package/es/locales/common/koKR.js +9 -1
- package/es/locales/common/nbNO.js +9 -1
- package/es/locales/common/nlNL.js +9 -1
- package/es/locales/common/plPL.js +9 -1
- package/es/locales/common/ptBR.js +9 -1
- package/es/locales/common/ruRU.js +9 -1
- package/es/locales/common/skSK.js +9 -1
- package/es/locales/common/thTH.js +9 -1
- package/es/locales/common/ukUA.js +9 -1
- package/es/locales/common/viVN.js +9 -1
- package/es/locales/common/zhCN.js +8 -1
- package/es/locales/common/zhTW.js +9 -1
- package/es/log/src/Log.d.ts +10 -0
- package/es/log/styles/light.d.ts +1 -0
- package/es/mention/src/Mention.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +11 -1
- package/es/notification/src/Notification.js +6 -4
- package/es/notification/src/NotificationEnvironment.d.ts +12 -0
- package/es/notification/src/NotificationEnvironment.js +27 -2
- package/es/notification/src/NotificationProvider.d.ts +7 -0
- package/es/notification/src/NotificationProvider.js +4 -2
- package/es/pagination/src/Pagination.d.ts +1 -0
- package/es/progress/src/Circle.js +3 -1
- package/es/select/src/Select.js +3 -0
- package/es/statistic/src/Statistic.d.ts +1 -0
- package/es/statistic/src/Statistic.js +9 -3
- package/es/statistic/src/styles/rtl.cssr.d.ts +2 -0
- package/es/statistic/src/styles/rtl.cssr.js +9 -0
- package/es/statistic/styles/index.d.ts +1 -0
- package/es/statistic/styles/index.js +1 -0
- package/es/statistic/styles/rtl.d.ts +2 -0
- package/es/statistic/styles/rtl.js +5 -0
- package/es/styles.d.ts +6 -3
- package/es/styles.js +6 -3
- package/es/themes/dark.js +4 -0
- package/es/themes/light.js +4 -0
- package/es/thing/src/Thing.js +9 -3
- package/es/thing/src/styles/rtl.cssr.d.ts +2 -0
- package/es/thing/src/styles/rtl.cssr.js +8 -0
- package/es/thing/styles/index.d.ts +1 -0
- package/es/thing/styles/index.js +1 -0
- package/es/thing/styles/rtl.d.ts +2 -0
- package/es/thing/styles/rtl.js +8 -0
- package/es/time-picker/src/TimePicker.d.ts +1 -0
- package/es/transfer/index.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +210 -90
- package/es/transfer/src/Transfer.js +67 -106
- package/es/transfer/src/TransferFilter.d.ts +18 -21
- package/es/transfer/src/TransferFilter.js +2 -10
- package/es/transfer/src/TransferHeader.d.ts +10 -12
- package/es/transfer/src/TransferHeader.js +24 -29
- package/es/transfer/src/TransferList.d.ts +20 -29
- package/es/transfer/src/TransferList.js +15 -32
- package/es/transfer/src/TransferListItem.d.ts +32 -19
- package/es/transfer/src/TransferListItem.js +33 -29
- package/es/transfer/src/interface.d.ts +21 -15
- package/es/transfer/src/styles/index.cssr.js +75 -139
- package/es/transfer/src/use-transfer-data.d.ts +13 -31
- package/es/transfer/src/use-transfer-data.js +45 -121
- package/es/transfer/styles/_common.d.ts +11 -2
- package/es/transfer/styles/_common.js +11 -2
- package/es/transfer/styles/dark.js +8 -4
- package/es/transfer/styles/light.d.ts +36 -10
- package/es/transfer/styles/light.js +7 -5
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +22 -16
- package/es/tree/src/TreeNode.d.ts +1 -0
- package/es/tree/src/TreeNode.js +5 -3
- package/es/tree/src/styles/rtl.cssr.d.ts +2 -0
- package/es/tree/src/styles/rtl.cssr.js +17 -0
- package/es/tree/styles/index.d.ts +1 -0
- package/es/tree/styles/index.js +1 -0
- package/es/tree/styles/rtl.d.ts +2 -0
- package/es/tree/styles/rtl.js +5 -0
- package/es/upload/src/interface.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +13 -0
- package/es/watermark/src/Watermark.js +35 -14
- package/es/watermark/src/styles/index.cssr.js +13 -0
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +47 -24
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +17 -0
- package/lib/_internal/scrollbar/styles/index.d.ts +1 -0
- package/lib/_internal/scrollbar/styles/index.js +3 -1
- package/lib/_internal/scrollbar/styles/rtl.d.ts +3 -0
- package/lib/_internal/scrollbar/styles/rtl.js +12 -0
- package/lib/_internal/selection/src/Selection.js +4 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +4 -1
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_utils/naive/extract-public-props.d.ts +4 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -0
- package/lib/avatar/src/Avatar.d.ts +0 -1
- package/lib/avatar/src/Avatar.js +12 -10
- package/lib/button/src/Button.js +3 -0
- package/lib/carousel/src/Carousel.d.ts +16 -37
- package/lib/carousel/src/Carousel.js +290 -270
- package/lib/carousel/src/CarouselArrow.js +2 -4
- package/lib/carousel/src/CarouselContext.d.ts +21 -0
- package/lib/carousel/src/CarouselContext.js +16 -0
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.js +22 -30
- package/lib/carousel/src/CarouselItem.d.ts +4 -4
- package/lib/carousel/src/CarouselItem.js +18 -35
- package/lib/carousel/src/interface.d.ts +12 -31
- package/lib/carousel/src/interface.js +0 -5
- package/lib/carousel/src/styles/index.cssr.js +8 -3
- package/lib/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
- package/lib/carousel/src/utils/duplicatedLogic.js +55 -0
- package/lib/carousel/src/utils/event.d.ts +1 -0
- package/lib/carousel/src/utils/event.js +7 -0
- package/lib/carousel/src/utils/index.d.ts +6 -0
- package/lib/carousel/src/utils/index.js +53 -0
- package/lib/checkbox/src/CheckboxGroup.d.ts +27 -22
- package/lib/checkbox/src/CheckboxGroup.js +56 -26
- package/lib/code/src/Code.d.ts +16 -0
- package/lib/code/src/Code.js +53 -12
- package/lib/code/src/styles/index.cssr.js +13 -1
- package/lib/code/styles/dark.js +4 -2
- package/lib/code/styles/light.d.ts +1 -0
- package/lib/code/styles/light.js +4 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +24 -3
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/panel/daterange.d.ts +0 -1
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +0 -1
- package/lib/date-picker/src/panel/datetimerange.js +1 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +0 -1
- package/lib/date-picker/src/panel/monthrange.js +1 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
- package/lib/date-picker/src/panel/use-dual-calendar.js +0 -11
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -0
- package/lib/dialog/src/DialogEnvironment.js +11 -4
- package/lib/dialog/src/DialogProvider.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/input/src/Input.d.ts +1 -0
- package/lib/input/src/Input.js +19 -8
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +1 -6
- package/lib/input-number/src/InputNumber.d.ts +1 -0
- package/lib/input-number/src/InputNumber.js +4 -0
- package/lib/legacy-grid/src/Row.d.ts +1 -0
- package/lib/legacy-grid/src/Row.js +7 -2
- package/lib/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/legacy-grid/src/styles/rtl.cssr.js +28 -0
- package/lib/legacy-grid/styles/dark.d.ts +4 -0
- package/lib/legacy-grid/styles/dark.js +8 -0
- package/lib/legacy-grid/styles/index.d.ts +4 -0
- package/lib/legacy-grid/styles/index.js +12 -0
- package/lib/legacy-grid/styles/light.d.ts +4 -0
- package/lib/legacy-grid/styles/light.js +8 -0
- package/lib/legacy-grid/styles/rtl.d.ts +2 -0
- package/lib/legacy-grid/styles/rtl.js +11 -0
- package/lib/legacy-transfer/index.d.ts +3 -0
- package/lib/legacy-transfer/index.js +9 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +3631 -0
- package/lib/legacy-transfer/src/Transfer.js +220 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +509 -0
- package/lib/legacy-transfer/src/TransferFilter.js +42 -0
- package/lib/legacy-transfer/src/TransferHeader.d.ts +25 -0
- package/lib/legacy-transfer/src/TransferHeader.js +49 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +556 -0
- package/lib/legacy-transfer/src/TransferList.js +98 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +513 -0
- package/lib/legacy-transfer/src/TransferListItem.js +67 -0
- package/lib/legacy-transfer/src/interface.d.ts +31 -0
- package/lib/legacy-transfer/src/interface.js +5 -0
- package/lib/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
- package/lib/legacy-transfer/src/styles/index.cssr.js +223 -0
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +41 -0
- package/lib/legacy-transfer/src/use-transfer-data.js +149 -0
- package/lib/legacy-transfer/styles/_common.d.ts +5 -0
- package/lib/legacy-transfer/styles/_common.js +6 -0
- package/lib/legacy-transfer/styles/dark.d.ts +3 -0
- package/lib/legacy-transfer/styles/dark.js +32 -0
- package/lib/legacy-transfer/styles/index.d.ts +3 -0
- package/lib/legacy-transfer/styles/index.js +10 -0
- package/lib/legacy-transfer/styles/light.d.ts +363 -0
- package/lib/legacy-transfer/styles/light.js +36 -0
- package/lib/locales/common/deDE.js +11 -6
- package/lib/locales/common/enGB.js +8 -1
- package/lib/locales/common/enUS.d.ts +8 -1
- package/lib/locales/common/enUS.js +8 -1
- package/lib/locales/common/eo.js +10 -2
- package/lib/locales/common/esAR.js +9 -1
- package/lib/locales/common/frFR.js +9 -1
- package/lib/locales/common/idID.js +9 -1
- package/lib/locales/common/itIT.js +9 -1
- package/lib/locales/common/jaJP.js +9 -1
- package/lib/locales/common/koKR.js +9 -1
- package/lib/locales/common/nbNO.js +9 -1
- package/lib/locales/common/nlNL.js +9 -1
- package/lib/locales/common/plPL.js +9 -1
- package/lib/locales/common/ptBR.js +9 -1
- package/lib/locales/common/ruRU.js +9 -1
- package/lib/locales/common/skSK.js +9 -1
- package/lib/locales/common/thTH.js +9 -1
- package/lib/locales/common/ukUA.js +9 -1
- package/lib/locales/common/viVN.js +9 -1
- package/lib/locales/common/zhCN.js +8 -1
- package/lib/locales/common/zhTW.js +9 -1
- package/lib/log/src/Log.d.ts +10 -0
- package/lib/log/styles/light.d.ts +1 -0
- package/lib/mention/src/Mention.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +11 -1
- package/lib/notification/src/Notification.js +6 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +12 -0
- package/lib/notification/src/NotificationEnvironment.js +27 -2
- package/lib/notification/src/NotificationProvider.d.ts +7 -0
- package/lib/notification/src/NotificationProvider.js +4 -2
- package/lib/pagination/src/Pagination.d.ts +1 -0
- package/lib/progress/src/Circle.js +3 -1
- package/lib/select/src/Select.js +3 -0
- package/lib/statistic/src/Statistic.d.ts +1 -0
- package/lib/statistic/src/Statistic.js +8 -2
- package/lib/statistic/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/statistic/src/styles/rtl.cssr.js +16 -0
- package/lib/statistic/styles/index.d.ts +1 -0
- package/lib/statistic/styles/index.js +3 -1
- package/lib/statistic/styles/rtl.d.ts +2 -0
- package/lib/statistic/styles/rtl.js +11 -0
- package/lib/styles.d.ts +6 -3
- package/lib/styles.js +151 -142
- package/lib/themes/dark.js +82 -78
- package/lib/themes/light.js +82 -78
- package/lib/thing/src/Thing.js +8 -2
- package/lib/thing/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/thing/src/styles/rtl.cssr.js +15 -0
- package/lib/thing/styles/index.d.ts +1 -0
- package/lib/thing/styles/index.js +3 -1
- package/lib/thing/styles/rtl.d.ts +2 -0
- package/lib/thing/styles/rtl.js +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +1 -0
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +210 -90
- package/lib/transfer/src/Transfer.js +63 -102
- package/lib/transfer/src/TransferFilter.d.ts +18 -21
- package/lib/transfer/src/TransferFilter.js +2 -10
- package/lib/transfer/src/TransferHeader.d.ts +10 -12
- package/lib/transfer/src/TransferHeader.js +23 -28
- package/lib/transfer/src/TransferList.d.ts +20 -29
- package/lib/transfer/src/TransferList.js +14 -31
- package/lib/transfer/src/TransferListItem.d.ts +32 -19
- package/lib/transfer/src/TransferListItem.js +33 -29
- package/lib/transfer/src/interface.d.ts +21 -15
- package/lib/transfer/src/styles/index.cssr.js +74 -139
- package/lib/transfer/src/use-transfer-data.d.ts +13 -31
- package/lib/transfer/src/use-transfer-data.js +44 -120
- package/lib/transfer/styles/_common.d.ts +11 -2
- package/lib/transfer/styles/_common.js +11 -2
- package/lib/transfer/styles/dark.js +8 -4
- package/lib/transfer/styles/light.d.ts +36 -10
- package/lib/transfer/styles/light.js +7 -5
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +21 -15
- package/lib/tree/src/TreeNode.d.ts +1 -0
- package/lib/tree/src/TreeNode.js +5 -3
- package/lib/tree/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/tree/src/styles/rtl.cssr.js +24 -0
- package/lib/tree/styles/index.d.ts +1 -0
- package/lib/tree/styles/index.js +3 -1
- package/lib/tree/styles/rtl.d.ts +2 -0
- package/lib/tree/styles/rtl.js +11 -0
- package/lib/upload/src/interface.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +13 -0
- package/lib/watermark/src/Watermark.js +34 -13
- package/lib/watermark/src/styles/index.cssr.js +13 -0
- package/package.json +4 -3
- package/volar.d.ts +1 -0
- package/web-types.json +183 -1
- package/lib/carousel/src/utils.js +0 -69
|
@@ -56,10 +56,18 @@ const plPL = {
|
|
|
56
56
|
confirm: 'Potwierdź',
|
|
57
57
|
clear: 'Wyczyść'
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
LegacyTransfer: {
|
|
60
60
|
sourceTitle: 'Źródło',
|
|
61
61
|
targetTitle: 'Cel'
|
|
62
62
|
},
|
|
63
|
+
// TODO: translation
|
|
64
|
+
Transfer: {
|
|
65
|
+
selectAll: 'Select all',
|
|
66
|
+
unselectAll: 'Unselect all',
|
|
67
|
+
clearAll: 'Clear',
|
|
68
|
+
total: (num) => `Total ${num} items`,
|
|
69
|
+
selected: (num) => `${num} items selected`
|
|
70
|
+
},
|
|
63
71
|
Empty: {
|
|
64
72
|
description: 'Brak danych'
|
|
65
73
|
},
|
|
@@ -56,10 +56,18 @@ const ptBR = {
|
|
|
56
56
|
confirm: 'Confirmar',
|
|
57
57
|
clear: 'Limpar'
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
LegacyTransfer: {
|
|
60
60
|
sourceTitle: 'Fonte',
|
|
61
61
|
targetTitle: 'Destino'
|
|
62
62
|
},
|
|
63
|
+
// TODO: translation
|
|
64
|
+
Transfer: {
|
|
65
|
+
selectAll: 'Select all',
|
|
66
|
+
unselectAll: 'Unselect all',
|
|
67
|
+
clearAll: 'Clear',
|
|
68
|
+
total: (num) => `Total ${num} items`,
|
|
69
|
+
selected: (num) => `${num} items selected`
|
|
70
|
+
},
|
|
63
71
|
Empty: {
|
|
64
72
|
description: 'Não há dados'
|
|
65
73
|
},
|
|
@@ -57,10 +57,18 @@ const ruRu = {
|
|
|
57
57
|
confirm: 'Подтвердить',
|
|
58
58
|
clear: 'Очистить'
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
LegacyTransfer: {
|
|
61
61
|
sourceTitle: 'Источник',
|
|
62
62
|
targetTitle: 'Назначение'
|
|
63
63
|
},
|
|
64
|
+
// TODO: translation
|
|
65
|
+
Transfer: {
|
|
66
|
+
selectAll: 'Select all',
|
|
67
|
+
unselectAll: 'Unselect all',
|
|
68
|
+
clearAll: 'Clear',
|
|
69
|
+
total: (num) => `Total ${num} items`,
|
|
70
|
+
selected: (num) => `${num} items selected`
|
|
71
|
+
},
|
|
64
72
|
Empty: {
|
|
65
73
|
description: 'Нет данных'
|
|
66
74
|
},
|
|
@@ -56,10 +56,18 @@ const skSK = {
|
|
|
56
56
|
confirm: 'Potvrdiť',
|
|
57
57
|
clear: 'Vyčistiť'
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
LegacyTransfer: {
|
|
60
60
|
sourceTitle: 'Zdroj',
|
|
61
61
|
targetTitle: 'Cieľ'
|
|
62
62
|
},
|
|
63
|
+
// TODO: translation
|
|
64
|
+
Transfer: {
|
|
65
|
+
selectAll: 'Select all',
|
|
66
|
+
unselectAll: 'Unselect all',
|
|
67
|
+
clearAll: 'Clear',
|
|
68
|
+
total: (num) => `Total ${num} items`,
|
|
69
|
+
selected: (num) => `${num} items selected`
|
|
70
|
+
},
|
|
63
71
|
Empty: {
|
|
64
72
|
description: 'Žiadne dáta'
|
|
65
73
|
},
|
|
@@ -56,10 +56,18 @@ const thTH = {
|
|
|
56
56
|
confirm: 'ยืนยัน',
|
|
57
57
|
clear: 'ล้างข้อมูล'
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
LegacyTransfer: {
|
|
60
60
|
sourceTitle: 'Source',
|
|
61
61
|
targetTitle: 'Target'
|
|
62
62
|
},
|
|
63
|
+
// TODO: translation
|
|
64
|
+
Transfer: {
|
|
65
|
+
selectAll: 'Select all',
|
|
66
|
+
unselectAll: 'Unselect all',
|
|
67
|
+
clearAll: 'Clear',
|
|
68
|
+
total: (num) => `Total ${num} items`,
|
|
69
|
+
selected: (num) => `${num} items selected`
|
|
70
|
+
},
|
|
63
71
|
Empty: {
|
|
64
72
|
description: 'ไม่มีข้อมูล'
|
|
65
73
|
},
|
|
@@ -55,10 +55,18 @@ const ukUA = {
|
|
|
55
55
|
confirm: 'Підтвердити',
|
|
56
56
|
clear: 'Стерти'
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
LegacyTransfer: {
|
|
59
59
|
sourceTitle: 'Джерело',
|
|
60
60
|
targetTitle: 'Ціль'
|
|
61
61
|
},
|
|
62
|
+
// TODO: translation
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: 'Select all',
|
|
65
|
+
unselectAll: 'Unselect all',
|
|
66
|
+
clearAll: 'Clear',
|
|
67
|
+
total: (num) => `Total ${num} items`,
|
|
68
|
+
selected: (num) => `${num} items selected`
|
|
69
|
+
},
|
|
62
70
|
Empty: {
|
|
63
71
|
description: 'Немає даних'
|
|
64
72
|
},
|
|
@@ -55,10 +55,18 @@ const viVN = {
|
|
|
55
55
|
confirm: 'Xác nhận',
|
|
56
56
|
clear: 'Xóa'
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
LegacyTransfer: {
|
|
59
59
|
sourceTitle: 'Nguồn',
|
|
60
60
|
targetTitle: 'Đích'
|
|
61
61
|
},
|
|
62
|
+
// TODO: translation
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: 'Select all',
|
|
65
|
+
unselectAll: 'Unselect all',
|
|
66
|
+
clearAll: 'Clear',
|
|
67
|
+
total: (num) => `Total ${num} items`,
|
|
68
|
+
selected: (num) => `${num} items selected`
|
|
69
|
+
},
|
|
62
70
|
Empty: {
|
|
63
71
|
description: 'Không có dữ liệu'
|
|
64
72
|
},
|
|
@@ -55,10 +55,17 @@ const zhCN = {
|
|
|
55
55
|
confirm: '确认',
|
|
56
56
|
clear: '重置'
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
LegacyTransfer: {
|
|
59
59
|
sourceTitle: '源项',
|
|
60
60
|
targetTitle: '目标项'
|
|
61
61
|
},
|
|
62
|
+
Transfer: {
|
|
63
|
+
selectAll: '全选',
|
|
64
|
+
clearAll: '清除',
|
|
65
|
+
unselectAll: '取消全选',
|
|
66
|
+
total: (num) => `共 ${num} 项`,
|
|
67
|
+
selected: (num) => `已选 ${num} 项`
|
|
68
|
+
},
|
|
62
69
|
Empty: {
|
|
63
70
|
description: '无数据'
|
|
64
71
|
},
|
|
@@ -55,10 +55,18 @@ const zhTW = {
|
|
|
55
55
|
confirm: '確認',
|
|
56
56
|
clear: '重置'
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
LegacyTransfer: {
|
|
59
59
|
sourceTitle: '源項',
|
|
60
60
|
targetTitle: '目標項'
|
|
61
61
|
},
|
|
62
|
+
Transfer: {
|
|
63
|
+
// TODO: translation
|
|
64
|
+
selectAll: '全选',
|
|
65
|
+
unselectAll: '取消全选',
|
|
66
|
+
clearAll: '清除',
|
|
67
|
+
total: (num) => `共 ${num} 項`,
|
|
68
|
+
selected: (num) => `已選 ${num} 項`
|
|
69
|
+
},
|
|
62
70
|
Empty: {
|
|
63
71
|
description: '無數據'
|
|
64
72
|
},
|
package/lib/log/src/Log.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare const logProps: {
|
|
|
74
74
|
'hue-5-2': string;
|
|
75
75
|
'hue-6': string;
|
|
76
76
|
'hue-6-2': string;
|
|
77
|
+
lineNumberTextColor: string;
|
|
77
78
|
}, any>;
|
|
78
79
|
}>>;
|
|
79
80
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -100,6 +101,7 @@ export declare const logProps: {
|
|
|
100
101
|
'hue-5-2': string;
|
|
101
102
|
'hue-6': string;
|
|
102
103
|
'hue-6-2': string;
|
|
104
|
+
lineNumberTextColor: string;
|
|
103
105
|
}, any>;
|
|
104
106
|
}>>>;
|
|
105
107
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -126,6 +128,7 @@ export declare const logProps: {
|
|
|
126
128
|
'hue-5-2': string;
|
|
127
129
|
'hue-6': string;
|
|
128
130
|
'hue-6-2': string;
|
|
131
|
+
lineNumberTextColor: string;
|
|
129
132
|
}, any>;
|
|
130
133
|
}>>>;
|
|
131
134
|
};
|
|
@@ -187,6 +190,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
190
|
'hue-5-2': string;
|
|
188
191
|
'hue-6': string;
|
|
189
192
|
'hue-6-2': string;
|
|
193
|
+
lineNumberTextColor: string;
|
|
190
194
|
}, any>;
|
|
191
195
|
}>>;
|
|
192
196
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -213,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
217
|
'hue-5-2': string;
|
|
214
218
|
'hue-6': string;
|
|
215
219
|
'hue-6-2': string;
|
|
220
|
+
lineNumberTextColor: string;
|
|
216
221
|
}, any>;
|
|
217
222
|
}>>>;
|
|
218
223
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -239,6 +244,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
239
244
|
'hue-5-2': string;
|
|
240
245
|
'hue-6': string;
|
|
241
246
|
'hue-6-2': string;
|
|
247
|
+
lineNumberTextColor: string;
|
|
242
248
|
}, any>;
|
|
243
249
|
}>>>;
|
|
244
250
|
}, {
|
|
@@ -386,6 +392,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
386
392
|
'hue-5-2': string;
|
|
387
393
|
'hue-6': string;
|
|
388
394
|
'hue-6-2': string;
|
|
395
|
+
lineNumberTextColor: string;
|
|
389
396
|
}, any>;
|
|
390
397
|
};
|
|
391
398
|
peerOverrides: {
|
|
@@ -481,6 +488,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
481
488
|
'hue-5-2': string;
|
|
482
489
|
'hue-6': string;
|
|
483
490
|
'hue-6-2': string;
|
|
491
|
+
lineNumberTextColor: string;
|
|
484
492
|
}, any>;
|
|
485
493
|
}>>;
|
|
486
494
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -507,6 +515,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
507
515
|
'hue-5-2': string;
|
|
508
516
|
'hue-6': string;
|
|
509
517
|
'hue-6-2': string;
|
|
518
|
+
lineNumberTextColor: string;
|
|
510
519
|
}, any>;
|
|
511
520
|
}>>>;
|
|
512
521
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Log", {
|
|
@@ -533,6 +542,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
533
542
|
'hue-5-2': string;
|
|
534
543
|
'hue-6': string;
|
|
535
544
|
'hue-6-2': string;
|
|
545
|
+
lineNumberTextColor: string;
|
|
536
546
|
}, any>;
|
|
537
547
|
}>>>;
|
|
538
548
|
}>>, {
|
|
@@ -1097,6 +1097,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1097
1097
|
select: () => void;
|
|
1098
1098
|
activate: () => void;
|
|
1099
1099
|
deactivate: () => void;
|
|
1100
|
+
scrollTo: (options: ScrollToOptions) => void;
|
|
1100
1101
|
} | null>;
|
|
1101
1102
|
cursorRef: import("vue").Ref<HTMLElement | null>;
|
|
1102
1103
|
followerRef: import("vue").Ref<{
|
|
@@ -18,8 +18,11 @@ export declare const notificationProps: {
|
|
|
18
18
|
readonly type: PropType<() => void>;
|
|
19
19
|
readonly required: true;
|
|
20
20
|
};
|
|
21
|
+
readonly keepAliveOnHover: BooleanConstructor;
|
|
22
|
+
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
23
|
+
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
21
24
|
};
|
|
22
|
-
export declare const notificationPropKeys: ("type" | "meta" | "content" | "description" | "title" | "action" | "avatar" | "closable" | "onClose")[];
|
|
25
|
+
export declare const notificationPropKeys: ("type" | "meta" | "content" | "description" | "onMouseenter" | "onMouseleave" | "title" | "action" | "avatar" | "closable" | "onClose" | "keepAliveOnHover")[];
|
|
23
26
|
export declare const Notification: import("vue").DefineComponent<{
|
|
24
27
|
readonly closable: {
|
|
25
28
|
readonly type: BooleanConstructor;
|
|
@@ -39,6 +42,9 @@ export declare const Notification: import("vue").DefineComponent<{
|
|
|
39
42
|
readonly type: PropType<() => void>;
|
|
40
43
|
readonly required: true;
|
|
41
44
|
};
|
|
45
|
+
readonly keepAliveOnHover: BooleanConstructor;
|
|
46
|
+
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
47
|
+
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
42
48
|
}, {
|
|
43
49
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
44
50
|
showAvatar: import("vue").ComputedRef<boolean | (() => VNodeChild)>;
|
|
@@ -98,7 +104,11 @@ export declare const Notification: import("vue").DefineComponent<{
|
|
|
98
104
|
readonly type: PropType<() => void>;
|
|
99
105
|
readonly required: true;
|
|
100
106
|
};
|
|
107
|
+
readonly keepAliveOnHover: BooleanConstructor;
|
|
108
|
+
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
109
|
+
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
101
110
|
}>>, {
|
|
102
111
|
readonly type: "default" | "error" | "info" | "success" | "warning";
|
|
103
112
|
readonly closable: boolean;
|
|
113
|
+
readonly keepAliveOnHover: boolean;
|
|
104
114
|
}>;
|
|
@@ -4,7 +4,6 @@ exports.Notification = exports.notificationPropKeys = exports.notificationProps
|
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
5
|
const seemly_1 = require("seemly");
|
|
6
6
|
const icons_1 = require("../../_internal/icons");
|
|
7
|
-
const use_rtl_1 = require("../../_mixins/use-rtl");
|
|
8
7
|
const _utils_1 = require("../../_utils");
|
|
9
8
|
const _internal_1 = require("../../_internal");
|
|
10
9
|
const _mixins_1 = require("../../_mixins");
|
|
@@ -34,7 +33,10 @@ exports.notificationProps = {
|
|
|
34
33
|
onClose: {
|
|
35
34
|
type: Function,
|
|
36
35
|
required: true
|
|
37
|
-
}
|
|
36
|
+
},
|
|
37
|
+
keepAliveOnHover: Boolean,
|
|
38
|
+
onMouseenter: Function,
|
|
39
|
+
onMouseleave: Function
|
|
38
40
|
};
|
|
39
41
|
exports.notificationPropKeys = (0, _utils_1.keysOf)(exports.notificationProps);
|
|
40
42
|
exports.Notification = (0, vue_1.defineComponent)({
|
|
@@ -45,7 +47,7 @@ exports.Notification = (0, vue_1.defineComponent)({
|
|
|
45
47
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
46
48
|
} = (0, vue_1.inject)(context_1.notificationProviderInjectionKey);
|
|
47
49
|
const { inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)();
|
|
48
|
-
const rtlEnabledRef = (0,
|
|
50
|
+
const rtlEnabledRef = (0, _mixins_1.useRtl)('Notification', mergedRtlRef, mergedClsPrefixRef);
|
|
49
51
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
50
52
|
const { type } = props;
|
|
51
53
|
const { self: { color, textColor, closeIconColor, closeIconColorHover, closeIconColorPressed, headerTextColor, descriptionTextColor, actionTextColor, borderRadius, headerFontWeight, boxShadow, lineHeight, fontSize, closeMargin, closeSize, width, padding, closeIconSize, closeBorderRadius, closeColorHover, closeColorPressed, titleFontSize, metaFontSize, descriptionFontSize, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseOut, cubicBezierEaseIn, cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
@@ -105,7 +107,7 @@ exports.Notification = (0, vue_1.defineComponent)({
|
|
|
105
107
|
var _a;
|
|
106
108
|
const { mergedClsPrefix } = this;
|
|
107
109
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
108
|
-
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-notification-wrapper`, this.themeClass], style: this.cssVars },
|
|
110
|
+
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-notification-wrapper`, this.themeClass], onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave, style: this.cssVars },
|
|
109
111
|
(0, vue_1.h)("div", { class: [
|
|
110
112
|
`${mergedClsPrefix}-notification`,
|
|
111
113
|
this.rtlEnabled && `${mergedClsPrefix}-notification--rtl`,
|
|
@@ -25,6 +25,9 @@ export declare const notificationEnvOptions: {
|
|
|
25
25
|
readonly content: PropType<string | (() => import("vue").VNodeChild)>;
|
|
26
26
|
readonly meta: PropType<string | (() => import("vue").VNodeChild)>;
|
|
27
27
|
readonly action: PropType<string | (() => import("vue").VNodeChild)>;
|
|
28
|
+
readonly keepAliveOnHover: BooleanConstructor;
|
|
29
|
+
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
30
|
+
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
28
31
|
};
|
|
29
32
|
export declare type NotificationOptions = Partial<ExtractPropTypes<typeof notificationEnvOptions>>;
|
|
30
33
|
export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
@@ -58,6 +61,9 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
|
58
61
|
content: PropType<string | (() => import("vue").VNodeChild)>;
|
|
59
62
|
meta: PropType<string | (() => import("vue").VNodeChild)>;
|
|
60
63
|
action: PropType<string | (() => import("vue").VNodeChild)>;
|
|
64
|
+
keepAliveOnHover: BooleanConstructor;
|
|
65
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
66
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
61
67
|
}, {
|
|
62
68
|
show: import("vue").Ref<boolean>;
|
|
63
69
|
hide: () => void;
|
|
@@ -67,6 +73,8 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
|
67
73
|
handleBeforeLeave: (el: HTMLElement) => void;
|
|
68
74
|
handleAfterEnter: (el: HTMLElement) => void;
|
|
69
75
|
handleBeforeEnter: (el: HTMLElement) => void;
|
|
76
|
+
handleMouseenter: (e: MouseEvent) => void;
|
|
77
|
+
handleMouseleave: (e: MouseEvent) => void;
|
|
70
78
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
71
79
|
internalKey: {
|
|
72
80
|
type: StringConstructor;
|
|
@@ -98,7 +106,11 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
|
98
106
|
content: PropType<string | (() => import("vue").VNodeChild)>;
|
|
99
107
|
meta: PropType<string | (() => import("vue").VNodeChild)>;
|
|
100
108
|
action: PropType<string | (() => import("vue").VNodeChild)>;
|
|
109
|
+
keepAliveOnHover: BooleanConstructor;
|
|
110
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
111
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
101
112
|
}>>, {
|
|
102
113
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
103
114
|
closable: boolean;
|
|
115
|
+
keepAliveOnHover: boolean;
|
|
104
116
|
}>;
|
|
@@ -80,6 +80,25 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
|
|
|
80
80
|
if (onAfterHide)
|
|
81
81
|
onAfterHide();
|
|
82
82
|
}
|
|
83
|
+
function setHideTimeout() {
|
|
84
|
+
const { duration } = props;
|
|
85
|
+
if (duration) {
|
|
86
|
+
timerId = window.setTimeout(hide, duration);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function handleMouseenter(e) {
|
|
90
|
+
if (e.currentTarget !== e.target)
|
|
91
|
+
return;
|
|
92
|
+
if (timerId !== null) {
|
|
93
|
+
window.clearTimeout(timerId);
|
|
94
|
+
timerId = null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function handleMouseleave(e) {
|
|
98
|
+
if (e.currentTarget !== e.target)
|
|
99
|
+
return;
|
|
100
|
+
setHideTimeout();
|
|
101
|
+
}
|
|
83
102
|
function handleClose() {
|
|
84
103
|
const { onClose } = props;
|
|
85
104
|
if (onClose) {
|
|
@@ -106,7 +125,9 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
|
|
|
106
125
|
handleLeave,
|
|
107
126
|
handleBeforeLeave,
|
|
108
127
|
handleAfterEnter,
|
|
109
|
-
handleBeforeEnter
|
|
128
|
+
handleBeforeEnter,
|
|
129
|
+
handleMouseenter,
|
|
130
|
+
handleMouseleave
|
|
110
131
|
};
|
|
111
132
|
},
|
|
112
133
|
render() {
|
|
@@ -114,7 +135,11 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
|
|
|
114
135
|
// convert to any since Element is not compitable with HTMLElement
|
|
115
136
|
onBeforeEnter: this.handleBeforeEnter, onAfterEnter: this.handleAfterEnter, onBeforeLeave: this.handleBeforeLeave, onLeave: this.handleLeave, onAfterLeave: this.handleAfterLeave }, {
|
|
116
137
|
default: () => {
|
|
117
|
-
return this.show ? ((0, vue_1.h)(Notification_1.Notification, Object.assign({}, (0, _utils_1.keep)(this.$props, Notification_1.notificationPropKeys), { onClose: this.handleClose
|
|
138
|
+
return this.show ? ((0, vue_1.h)(Notification_1.Notification, Object.assign({}, (0, _utils_1.keep)(this.$props, Notification_1.notificationPropKeys), { onClose: this.handleClose, onMouseenter: this.duration && this.keepAliveOnHover
|
|
139
|
+
? this.handleMouseenter
|
|
140
|
+
: undefined, onMouseleave: this.duration && this.keepAliveOnHover
|
|
141
|
+
? this.handleMouseleave
|
|
142
|
+
: undefined }))) : null;
|
|
118
143
|
}
|
|
119
144
|
}));
|
|
120
145
|
}
|
|
@@ -48,6 +48,7 @@ export declare const notificationProviderProps: {
|
|
|
48
48
|
type: PropType<NotificationPlacement>;
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
|
+
keepAliveOnHover: BooleanConstructor;
|
|
51
52
|
theme: PropType<import("../../_mixins").Theme<"Notification", {
|
|
52
53
|
borderRadius: string;
|
|
53
54
|
lineHeight: string;
|
|
@@ -170,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
171
|
type: PropType<NotificationPlacement>;
|
|
171
172
|
default: string;
|
|
172
173
|
};
|
|
174
|
+
keepAliveOnHover: BooleanConstructor;
|
|
173
175
|
theme: PropType<import("../../_mixins").Theme<"Notification", {
|
|
174
176
|
borderRadius: string;
|
|
175
177
|
lineHeight: string;
|
|
@@ -287,6 +289,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
289
|
readonly deactivate: () => void;
|
|
288
290
|
type?: "default" | "error" | "info" | "success" | "warning" | undefined;
|
|
289
291
|
closable?: boolean | undefined;
|
|
292
|
+
keepAliveOnHover?: boolean | undefined;
|
|
290
293
|
meta?: string | (() => import("vue").VNodeChild) | undefined;
|
|
291
294
|
content?: string | (() => import("vue").VNodeChild) | undefined;
|
|
292
295
|
description?: string | (() => import("vue").VNodeChild) | undefined;
|
|
@@ -294,6 +297,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
297
|
onAfterEnter?: (() => void) | undefined;
|
|
295
298
|
onLeave?: (() => void) | undefined;
|
|
296
299
|
onAfterLeave?: (() => void) | undefined;
|
|
300
|
+
onMouseenter?: ((e: MouseEvent) => void) | undefined;
|
|
301
|
+
onMouseleave?: ((e: MouseEvent) => void) | undefined;
|
|
297
302
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
298
303
|
action?: string | (() => import("vue").VNodeChild) | undefined;
|
|
299
304
|
avatar?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -324,6 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
324
329
|
type: PropType<NotificationPlacement>;
|
|
325
330
|
default: string;
|
|
326
331
|
};
|
|
332
|
+
keepAliveOnHover: BooleanConstructor;
|
|
327
333
|
theme: PropType<import("../../_mixins").Theme<"Notification", {
|
|
328
334
|
borderRadius: string;
|
|
329
335
|
lineHeight: string;
|
|
@@ -435,5 +441,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
435
441
|
}>>, {
|
|
436
442
|
placement: NotificationPlacement;
|
|
437
443
|
scrollable: boolean;
|
|
444
|
+
keepAliveOnHover: boolean;
|
|
438
445
|
}>;
|
|
439
446
|
export default _default;
|
|
@@ -21,7 +21,7 @@ exports.notificationProviderProps = Object.assign(Object.assign({}, _mixins_1.us
|
|
|
21
21
|
}, max: Number, placement: {
|
|
22
22
|
type: String,
|
|
23
23
|
default: 'top-right'
|
|
24
|
-
} });
|
|
24
|
+
}, keepAliveOnHover: Boolean });
|
|
25
25
|
exports.default = (0, vue_1.defineComponent)({
|
|
26
26
|
name: 'NotificationProvider',
|
|
27
27
|
props: exports.notificationProviderProps,
|
|
@@ -123,7 +123,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
123
123
|
'destroy',
|
|
124
124
|
'hide',
|
|
125
125
|
'deactivate'
|
|
126
|
-
]), { internalKey: notification.key, onInternalAfterLeave: this.handleAfterLeave
|
|
126
|
+
]), { internalKey: notification.key, onInternalAfterLeave: this.handleAfterLeave, keepAliveOnHover: notification.keepAliveOnHover === undefined
|
|
127
|
+
? this.keepAliveOnHover
|
|
128
|
+
: notification.keepAliveOnHover })));
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
131
|
}))) : null));
|
|
@@ -2094,6 +2094,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2094
2094
|
select: () => void;
|
|
2095
2095
|
activate: () => void;
|
|
2096
2096
|
deactivate: () => void;
|
|
2097
|
+
scrollTo: (options: ScrollToOptions) => void;
|
|
2097
2098
|
} | null>;
|
|
2098
2099
|
mergedPage: import("vue").ComputedRef<number>;
|
|
2099
2100
|
pageItems: import("vue").ComputedRef<PageItem[]>;
|
|
@@ -69,7 +69,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
69
69
|
const pathStyle = {
|
|
70
70
|
stroke: strokeColor,
|
|
71
71
|
strokeDasharray: `${(percent / 100) * (len - gapDegree)}px ${viewBoxWidth * 8}px`,
|
|
72
|
-
strokeDashoffset: `-${gapDegree / 2
|
|
72
|
+
strokeDashoffset: `-${gapDegree / 2}px`,
|
|
73
|
+
transformOrigin: offsetDegree ? 'center' : undefined,
|
|
74
|
+
transform: offsetDegree ? `rotate(${offsetDegree}deg)` : undefined
|
|
73
75
|
};
|
|
74
76
|
return {
|
|
75
77
|
pathString,
|
package/lib/select/src/Select.js
CHANGED
|
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
64
|
valueTextColor: string;
|
|
65
65
|
}, any>>>;
|
|
66
66
|
}, {
|
|
67
|
+
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
67
68
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
68
69
|
cssVars: import("vue").ComputedRef<{
|
|
69
70
|
'--n-bezier': string;
|
|
@@ -14,8 +14,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
14
14
|
name: 'Statistic',
|
|
15
15
|
props: exports.statisticProps,
|
|
16
16
|
setup(props) {
|
|
17
|
-
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
17
|
+
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
18
18
|
const themeRef = (0, _mixins_1.useTheme)('Statistic', '-statistic', index_cssr_1.default, styles_1.statisticLight, props, mergedClsPrefixRef);
|
|
19
|
+
const rtlEnabledRef = (0, _mixins_1.useRtl)('Statistic', mergedRtlRef, mergedClsPrefixRef);
|
|
19
20
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
20
21
|
const { self: { labelFontWeight, valueFontWeight, valuePrefixTextColor, labelTextColor, valueSuffixTextColor, valueTextColor, labelFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
21
22
|
return {
|
|
@@ -33,6 +34,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
34
|
? (0, _mixins_1.useThemeClass)('statistic', undefined, cssVarsRef, props)
|
|
34
35
|
: undefined;
|
|
35
36
|
return {
|
|
37
|
+
rtlEnabled: rtlEnabledRef,
|
|
36
38
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
37
39
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
38
40
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
@@ -43,7 +45,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
43
45
|
var _a;
|
|
44
46
|
const { mergedClsPrefix, $slots: { default: defaultSlot, label: labelSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
45
47
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
46
|
-
return ((0, vue_1.h)("div", { class: [
|
|
48
|
+
return ((0, vue_1.h)("div", { class: [
|
|
49
|
+
`${mergedClsPrefix}-statistic`,
|
|
50
|
+
this.themeClass,
|
|
51
|
+
this.rtlEnabled && `${mergedClsPrefix}-statistic--rtl`
|
|
52
|
+
], style: this.cssVars },
|
|
47
53
|
(0, _utils_1.resolveWrappedSlot)(labelSlot, (children) => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-statistic__label` }, this.label || children))),
|
|
48
54
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-statistic-value`, style: {
|
|
49
55
|
fontVariantNumeric: this.tabularNums ? 'tabular-nums' : ''
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
|
|
9
|
+
exports.default = (0, cssr_1.cB)('statistic', [(0, cssr_1.cM)('rtl', `
|
|
10
|
+
direction: rtl;
|
|
11
|
+
text-align: right;
|
|
12
|
+
`, [(0, cssr_1.cB)('statistic-value', [(0, cssr_1.cE)('prefix', `
|
|
13
|
+
margin: 0 0 0 4px;
|
|
14
|
+
`), (0, cssr_1.cE)('suffix', `
|
|
15
|
+
margin: 0 4px 0 0;
|
|
16
|
+
`)])])]);
|
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.statisticLight = exports.statisticDark = void 0;
|
|
6
|
+
exports.statisticRtl = exports.statisticLight = exports.statisticDark = void 0;
|
|
7
7
|
var dark_1 = require("./dark");
|
|
8
8
|
Object.defineProperty(exports, "statisticDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "statisticLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "statisticRtl", { enumerable: true, get: function () { return rtl_1.statisticRtl; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.statisticRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
exports.statisticRtl = {
|
|
9
|
+
name: 'Statistic',
|
|
10
|
+
style: rtl_cssr_1.default
|
|
11
|
+
};
|