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
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
source: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
value: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
20
|
+
mergedTheme: import("vue").Ref<{
|
|
21
|
+
common: {
|
|
22
|
+
baseColor: string;
|
|
23
|
+
primaryColor: string;
|
|
24
|
+
primaryColorHover: string;
|
|
25
|
+
primaryColorPressed: string;
|
|
26
|
+
primaryColorSuppl: string;
|
|
27
|
+
infoColor: string;
|
|
28
|
+
infoColorHover: string;
|
|
29
|
+
infoColorPressed: string;
|
|
30
|
+
infoColorSuppl: string;
|
|
31
|
+
successColor: string;
|
|
32
|
+
successColorHover: string;
|
|
33
|
+
successColorPressed: string;
|
|
34
|
+
successColorSuppl: string;
|
|
35
|
+
warningColor: string;
|
|
36
|
+
warningColorHover: string;
|
|
37
|
+
warningColorPressed: string;
|
|
38
|
+
warningColorSuppl: string;
|
|
39
|
+
errorColor: string;
|
|
40
|
+
errorColorHover: string;
|
|
41
|
+
errorColorPressed: string;
|
|
42
|
+
errorColorSuppl: string;
|
|
43
|
+
textColorBase: string;
|
|
44
|
+
textColor1: string;
|
|
45
|
+
textColor2: string;
|
|
46
|
+
textColor3: string;
|
|
47
|
+
textColorDisabled: string;
|
|
48
|
+
placeholderColor: string;
|
|
49
|
+
placeholderColorDisabled: string;
|
|
50
|
+
iconColor: string;
|
|
51
|
+
iconColorHover: string;
|
|
52
|
+
iconColorPressed: string;
|
|
53
|
+
iconColorDisabled: string;
|
|
54
|
+
opacity1: string;
|
|
55
|
+
opacity2: string;
|
|
56
|
+
opacity3: string;
|
|
57
|
+
opacity4: string;
|
|
58
|
+
opacity5: string;
|
|
59
|
+
dividerColor: string;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
closeIconColor: string;
|
|
62
|
+
closeIconColorHover: string;
|
|
63
|
+
closeIconColorPressed: string;
|
|
64
|
+
closeColorHover: string;
|
|
65
|
+
closeColorPressed: string;
|
|
66
|
+
clearColor: string;
|
|
67
|
+
clearColorHover: string;
|
|
68
|
+
clearColorPressed: string;
|
|
69
|
+
scrollbarColor: string;
|
|
70
|
+
scrollbarColorHover: string;
|
|
71
|
+
scrollbarWidth: string;
|
|
72
|
+
scrollbarHeight: string;
|
|
73
|
+
scrollbarBorderRadius: string;
|
|
74
|
+
progressRailColor: string;
|
|
75
|
+
railColor: string;
|
|
76
|
+
popoverColor: string;
|
|
77
|
+
tableColor: string;
|
|
78
|
+
cardColor: string;
|
|
79
|
+
modalColor: string;
|
|
80
|
+
bodyColor: string;
|
|
81
|
+
tagColor: string;
|
|
82
|
+
avatarColor: string;
|
|
83
|
+
invertedColor: string;
|
|
84
|
+
inputColor: string;
|
|
85
|
+
codeColor: string;
|
|
86
|
+
tabColor: string;
|
|
87
|
+
actionColor: string;
|
|
88
|
+
tableHeaderColor: string;
|
|
89
|
+
hoverColor: string;
|
|
90
|
+
tableColorHover: string;
|
|
91
|
+
tableColorStriped: string;
|
|
92
|
+
pressedColor: string;
|
|
93
|
+
opacityDisabled: string;
|
|
94
|
+
inputColorDisabled: string;
|
|
95
|
+
buttonColor2: string;
|
|
96
|
+
buttonColor2Hover: string;
|
|
97
|
+
buttonColor2Pressed: string;
|
|
98
|
+
boxShadow1: string;
|
|
99
|
+
boxShadow2: string;
|
|
100
|
+
boxShadow3: string;
|
|
101
|
+
fontFamily: string;
|
|
102
|
+
fontFamilyMono: string;
|
|
103
|
+
fontWeight: string;
|
|
104
|
+
fontWeightStrong: string;
|
|
105
|
+
cubicBezierEaseInOut: string;
|
|
106
|
+
cubicBezierEaseOut: string;
|
|
107
|
+
cubicBezierEaseIn: string;
|
|
108
|
+
borderRadius: string;
|
|
109
|
+
borderRadiusSmall: string;
|
|
110
|
+
fontSize: string;
|
|
111
|
+
fontSizeMini: string;
|
|
112
|
+
fontSizeTiny: string;
|
|
113
|
+
fontSizeSmall: string;
|
|
114
|
+
fontSizeMedium: string;
|
|
115
|
+
fontSizeLarge: string;
|
|
116
|
+
fontSizeHuge: string;
|
|
117
|
+
lineHeight: string;
|
|
118
|
+
heightMini: string;
|
|
119
|
+
heightTiny: string;
|
|
120
|
+
heightSmall: string;
|
|
121
|
+
heightMedium: string;
|
|
122
|
+
heightLarge: string;
|
|
123
|
+
heightHuge: string;
|
|
124
|
+
name: "common";
|
|
125
|
+
};
|
|
126
|
+
self: {
|
|
127
|
+
itemHeightSmall: string;
|
|
128
|
+
itemHeightMedium: string;
|
|
129
|
+
itemHeightLarge: string;
|
|
130
|
+
fontSizeSmall: string;
|
|
131
|
+
fontSizeMedium: string;
|
|
132
|
+
fontSizeLarge: string;
|
|
133
|
+
borderRadius: string;
|
|
134
|
+
borderColor: string;
|
|
135
|
+
listColor: string;
|
|
136
|
+
headerColor: string;
|
|
137
|
+
titleTextColor: string;
|
|
138
|
+
titleTextColorDisabled: string;
|
|
139
|
+
extraTextColor: string;
|
|
140
|
+
filterDividerColor: string;
|
|
141
|
+
itemTextColor: string;
|
|
142
|
+
itemTextColorDisabled: string;
|
|
143
|
+
itemColorPending: string;
|
|
144
|
+
titleFontWeight: string;
|
|
145
|
+
iconColor: string;
|
|
146
|
+
iconColorDisabled: string;
|
|
147
|
+
extraFontSize: string;
|
|
148
|
+
width: string;
|
|
149
|
+
};
|
|
150
|
+
peers: {
|
|
151
|
+
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
152
|
+
labelLineHeight: string;
|
|
153
|
+
fontSizeSmall: string;
|
|
154
|
+
fontSizeMedium: string;
|
|
155
|
+
fontSizeLarge: string;
|
|
156
|
+
borderRadius: string;
|
|
157
|
+
color: string;
|
|
158
|
+
colorChecked: string;
|
|
159
|
+
colorDisabled: string;
|
|
160
|
+
colorDisabledChecked: string;
|
|
161
|
+
colorTableHeader: string;
|
|
162
|
+
colorTableHeaderModal: string;
|
|
163
|
+
colorTableHeaderPopover: string;
|
|
164
|
+
checkMarkColor: string;
|
|
165
|
+
checkMarkColorDisabled: string;
|
|
166
|
+
checkMarkColorDisabledChecked: string;
|
|
167
|
+
border: string;
|
|
168
|
+
borderDisabled: string;
|
|
169
|
+
borderDisabledChecked: string;
|
|
170
|
+
borderChecked: string;
|
|
171
|
+
borderFocus: string;
|
|
172
|
+
boxShadowFocus: string;
|
|
173
|
+
textColor: string;
|
|
174
|
+
textColorDisabled: string;
|
|
175
|
+
sizeSmall: string;
|
|
176
|
+
sizeMedium: string;
|
|
177
|
+
sizeLarge: string;
|
|
178
|
+
labelPadding: string;
|
|
179
|
+
}, any>;
|
|
180
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
181
|
+
color: string;
|
|
182
|
+
colorHover: string;
|
|
183
|
+
}, any>;
|
|
184
|
+
Input: import("../../_mixins").Theme<"Input", {
|
|
185
|
+
countTextColor: string;
|
|
186
|
+
heightTiny: string;
|
|
187
|
+
heightSmall: string;
|
|
188
|
+
heightMedium: string;
|
|
189
|
+
heightLarge: string;
|
|
190
|
+
fontSizeTiny: string;
|
|
191
|
+
fontSizeSmall: string;
|
|
192
|
+
fontSizeMedium: string;
|
|
193
|
+
fontSizeLarge: string;
|
|
194
|
+
lineHeight: string;
|
|
195
|
+
lineHeightTextarea: string;
|
|
196
|
+
borderRadius: string;
|
|
197
|
+
iconSize: string;
|
|
198
|
+
groupLabelColor: string;
|
|
199
|
+
groupLabelTextColor: string;
|
|
200
|
+
textColor: string;
|
|
201
|
+
textColorDisabled: string;
|
|
202
|
+
textDecorationColor: string;
|
|
203
|
+
caretColor: string;
|
|
204
|
+
placeholderColor: string;
|
|
205
|
+
placeholderColorDisabled: string;
|
|
206
|
+
color: string;
|
|
207
|
+
colorDisabled: string;
|
|
208
|
+
colorFocus: string;
|
|
209
|
+
groupLabelBorder: string;
|
|
210
|
+
border: string;
|
|
211
|
+
borderHover: string;
|
|
212
|
+
borderDisabled: string;
|
|
213
|
+
borderFocus: string;
|
|
214
|
+
boxShadowFocus: string;
|
|
215
|
+
loadingColor: string;
|
|
216
|
+
loadingColorWarning: string;
|
|
217
|
+
borderWarning: string;
|
|
218
|
+
borderHoverWarning: string;
|
|
219
|
+
colorFocusWarning: string;
|
|
220
|
+
borderFocusWarning: string;
|
|
221
|
+
boxShadowFocusWarning: string;
|
|
222
|
+
caretColorWarning: string;
|
|
223
|
+
loadingColorError: string;
|
|
224
|
+
borderError: string;
|
|
225
|
+
borderHoverError: string;
|
|
226
|
+
colorFocusError: string;
|
|
227
|
+
borderFocusError: string;
|
|
228
|
+
boxShadowFocusError: string;
|
|
229
|
+
caretColorError: string;
|
|
230
|
+
clearColor: string;
|
|
231
|
+
clearColorHover: string;
|
|
232
|
+
clearColorPressed: string;
|
|
233
|
+
iconColor: string;
|
|
234
|
+
iconColorDisabled: string;
|
|
235
|
+
iconColorHover: string;
|
|
236
|
+
iconColorPressed: string;
|
|
237
|
+
suffixTextColor: string;
|
|
238
|
+
paddingTiny: string;
|
|
239
|
+
paddingSmall: string;
|
|
240
|
+
paddingMedium: string;
|
|
241
|
+
paddingLarge: string;
|
|
242
|
+
clearSize: string;
|
|
243
|
+
}, any>;
|
|
244
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
245
|
+
fontSizeSmall: string;
|
|
246
|
+
fontSizeMedium: string;
|
|
247
|
+
fontSizeLarge: string;
|
|
248
|
+
fontSizeHuge: string;
|
|
249
|
+
textColor: string;
|
|
250
|
+
iconColor: string;
|
|
251
|
+
extraTextColor: string;
|
|
252
|
+
iconSizeSmall: string;
|
|
253
|
+
iconSizeMedium: string;
|
|
254
|
+
iconSizeLarge: string;
|
|
255
|
+
iconSizeHuge: string;
|
|
256
|
+
}, any>;
|
|
257
|
+
Button: import("../../_mixins").Theme<"Button", {
|
|
258
|
+
heightTiny: string;
|
|
259
|
+
heightSmall: string;
|
|
260
|
+
heightMedium: string;
|
|
261
|
+
heightLarge: string;
|
|
262
|
+
borderRadiusTiny: string;
|
|
263
|
+
borderRadiusSmall: string;
|
|
264
|
+
borderRadiusMedium: string;
|
|
265
|
+
borderRadiusLarge: string;
|
|
266
|
+
fontSizeTiny: string;
|
|
267
|
+
fontSizeSmall: string;
|
|
268
|
+
fontSizeMedium: string;
|
|
269
|
+
fontSizeLarge: string;
|
|
270
|
+
opacityDisabled: string;
|
|
271
|
+
colorOpacitySecondary: string;
|
|
272
|
+
colorOpacitySecondaryHover: string;
|
|
273
|
+
colorOpacitySecondaryPressed: string;
|
|
274
|
+
colorSecondary: string;
|
|
275
|
+
colorSecondaryHover: string;
|
|
276
|
+
colorSecondaryPressed: string;
|
|
277
|
+
colorTertiary: string;
|
|
278
|
+
colorTertiaryHover: string;
|
|
279
|
+
colorTertiaryPressed: string;
|
|
280
|
+
colorQuaternary: string;
|
|
281
|
+
colorQuaternaryHover: string;
|
|
282
|
+
colorQuaternaryPressed: string;
|
|
283
|
+
color: string;
|
|
284
|
+
colorHover: string;
|
|
285
|
+
colorPressed: string;
|
|
286
|
+
colorFocus: string;
|
|
287
|
+
colorDisabled: string;
|
|
288
|
+
textColor: string;
|
|
289
|
+
textColorTertiary: string;
|
|
290
|
+
textColorHover: string;
|
|
291
|
+
textColorPressed: string;
|
|
292
|
+
textColorFocus: string;
|
|
293
|
+
textColorDisabled: string;
|
|
294
|
+
textColorText: string;
|
|
295
|
+
textColorTextHover: string;
|
|
296
|
+
textColorTextPressed: string;
|
|
297
|
+
textColorTextFocus: string;
|
|
298
|
+
textColorTextDisabled: string;
|
|
299
|
+
textColorGhost: string;
|
|
300
|
+
textColorGhostHover: string;
|
|
301
|
+
textColorGhostPressed: string;
|
|
302
|
+
textColorGhostFocus: string;
|
|
303
|
+
textColorGhostDisabled: string;
|
|
304
|
+
border: string;
|
|
305
|
+
borderHover: string;
|
|
306
|
+
borderPressed: string;
|
|
307
|
+
borderFocus: string;
|
|
308
|
+
borderDisabled: string;
|
|
309
|
+
rippleColor: string;
|
|
310
|
+
colorPrimary: string;
|
|
311
|
+
colorHoverPrimary: string;
|
|
312
|
+
colorPressedPrimary: string;
|
|
313
|
+
colorFocusPrimary: string;
|
|
314
|
+
colorDisabledPrimary: string;
|
|
315
|
+
textColorPrimary: string;
|
|
316
|
+
textColorHoverPrimary: string;
|
|
317
|
+
textColorPressedPrimary: string;
|
|
318
|
+
textColorFocusPrimary: string;
|
|
319
|
+
textColorDisabledPrimary: string;
|
|
320
|
+
textColorTextPrimary: string;
|
|
321
|
+
textColorTextHoverPrimary: string;
|
|
322
|
+
textColorTextPressedPrimary: string;
|
|
323
|
+
textColorTextFocusPrimary: string;
|
|
324
|
+
textColorTextDisabledPrimary: string;
|
|
325
|
+
textColorGhostPrimary: string;
|
|
326
|
+
textColorGhostHoverPrimary: string;
|
|
327
|
+
textColorGhostPressedPrimary: string;
|
|
328
|
+
textColorGhostFocusPrimary: string;
|
|
329
|
+
textColorGhostDisabledPrimary: string;
|
|
330
|
+
borderPrimary: string;
|
|
331
|
+
borderHoverPrimary: string;
|
|
332
|
+
borderPressedPrimary: string;
|
|
333
|
+
borderFocusPrimary: string;
|
|
334
|
+
borderDisabledPrimary: string;
|
|
335
|
+
rippleColorPrimary: string;
|
|
336
|
+
colorInfo: string;
|
|
337
|
+
colorHoverInfo: string;
|
|
338
|
+
colorPressedInfo: string;
|
|
339
|
+
colorFocusInfo: string;
|
|
340
|
+
colorDisabledInfo: string;
|
|
341
|
+
textColorInfo: string;
|
|
342
|
+
textColorHoverInfo: string;
|
|
343
|
+
textColorPressedInfo: string;
|
|
344
|
+
textColorFocusInfo: string;
|
|
345
|
+
textColorDisabledInfo: string;
|
|
346
|
+
textColorTextInfo: string;
|
|
347
|
+
textColorTextHoverInfo: string;
|
|
348
|
+
textColorTextPressedInfo: string;
|
|
349
|
+
textColorTextFocusInfo: string;
|
|
350
|
+
textColorTextDisabledInfo: string;
|
|
351
|
+
textColorGhostInfo: string;
|
|
352
|
+
textColorGhostHoverInfo: string;
|
|
353
|
+
textColorGhostPressedInfo: string;
|
|
354
|
+
textColorGhostFocusInfo: string;
|
|
355
|
+
textColorGhostDisabledInfo: string;
|
|
356
|
+
borderInfo: string;
|
|
357
|
+
borderHoverInfo: string;
|
|
358
|
+
borderPressedInfo: string;
|
|
359
|
+
borderFocusInfo: string;
|
|
360
|
+
borderDisabledInfo: string;
|
|
361
|
+
rippleColorInfo: string;
|
|
362
|
+
colorSuccess: string;
|
|
363
|
+
colorHoverSuccess: string;
|
|
364
|
+
colorPressedSuccess: string;
|
|
365
|
+
colorFocusSuccess: string;
|
|
366
|
+
colorDisabledSuccess: string;
|
|
367
|
+
textColorSuccess: string;
|
|
368
|
+
textColorHoverSuccess: string;
|
|
369
|
+
textColorPressedSuccess: string;
|
|
370
|
+
textColorFocusSuccess: string;
|
|
371
|
+
textColorDisabledSuccess: string;
|
|
372
|
+
textColorTextSuccess: string;
|
|
373
|
+
textColorTextHoverSuccess: string;
|
|
374
|
+
textColorTextPressedSuccess: string;
|
|
375
|
+
textColorTextFocusSuccess: string;
|
|
376
|
+
textColorTextDisabledSuccess: string;
|
|
377
|
+
textColorGhostSuccess: string;
|
|
378
|
+
textColorGhostHoverSuccess: string;
|
|
379
|
+
textColorGhostPressedSuccess: string;
|
|
380
|
+
textColorGhostFocusSuccess: string;
|
|
381
|
+
textColorGhostDisabledSuccess: string;
|
|
382
|
+
borderSuccess: string;
|
|
383
|
+
borderHoverSuccess: string;
|
|
384
|
+
borderPressedSuccess: string;
|
|
385
|
+
borderFocusSuccess: string;
|
|
386
|
+
borderDisabledSuccess: string;
|
|
387
|
+
rippleColorSuccess: string;
|
|
388
|
+
colorWarning: string;
|
|
389
|
+
colorHoverWarning: string;
|
|
390
|
+
colorPressedWarning: string;
|
|
391
|
+
colorFocusWarning: string;
|
|
392
|
+
colorDisabledWarning: string;
|
|
393
|
+
textColorWarning: string;
|
|
394
|
+
textColorHoverWarning: string;
|
|
395
|
+
textColorPressedWarning: string;
|
|
396
|
+
textColorFocusWarning: string;
|
|
397
|
+
textColorDisabledWarning: string;
|
|
398
|
+
textColorTextWarning: string;
|
|
399
|
+
textColorTextHoverWarning: string;
|
|
400
|
+
textColorTextPressedWarning: string;
|
|
401
|
+
textColorTextFocusWarning: string;
|
|
402
|
+
textColorTextDisabledWarning: string;
|
|
403
|
+
textColorGhostWarning: string;
|
|
404
|
+
textColorGhostHoverWarning: string;
|
|
405
|
+
textColorGhostPressedWarning: string;
|
|
406
|
+
textColorGhostFocusWarning: string;
|
|
407
|
+
textColorGhostDisabledWarning: string;
|
|
408
|
+
borderWarning: string;
|
|
409
|
+
borderHoverWarning: string;
|
|
410
|
+
borderPressedWarning: string;
|
|
411
|
+
borderFocusWarning: string;
|
|
412
|
+
borderDisabledWarning: string;
|
|
413
|
+
rippleColorWarning: string;
|
|
414
|
+
colorError: string;
|
|
415
|
+
colorHoverError: string;
|
|
416
|
+
colorPressedError: string;
|
|
417
|
+
colorFocusError: string;
|
|
418
|
+
colorDisabledError: string;
|
|
419
|
+
textColorError: string;
|
|
420
|
+
textColorHoverError: string;
|
|
421
|
+
textColorPressedError: string;
|
|
422
|
+
textColorFocusError: string;
|
|
423
|
+
textColorDisabledError: string;
|
|
424
|
+
textColorTextError: string;
|
|
425
|
+
textColorTextHoverError: string;
|
|
426
|
+
textColorTextPressedError: string;
|
|
427
|
+
textColorTextFocusError: string;
|
|
428
|
+
textColorTextDisabledError: string;
|
|
429
|
+
textColorGhostError: string;
|
|
430
|
+
textColorGhostHoverError: string;
|
|
431
|
+
textColorGhostPressedError: string;
|
|
432
|
+
textColorGhostFocusError: string;
|
|
433
|
+
textColorGhostDisabledError: string;
|
|
434
|
+
borderError: string;
|
|
435
|
+
borderHoverError: string;
|
|
436
|
+
borderPressedError: string;
|
|
437
|
+
borderFocusError: string;
|
|
438
|
+
borderDisabledError: string;
|
|
439
|
+
rippleColorError: string;
|
|
440
|
+
waveOpacity: string;
|
|
441
|
+
fontWeight: string;
|
|
442
|
+
fontWeightStrong: string;
|
|
443
|
+
paddingTiny: string;
|
|
444
|
+
paddingSmall: string;
|
|
445
|
+
paddingMedium: string;
|
|
446
|
+
paddingLarge: string;
|
|
447
|
+
paddingRoundTiny: string;
|
|
448
|
+
paddingRoundSmall: string;
|
|
449
|
+
paddingRoundMedium: string;
|
|
450
|
+
paddingRoundLarge: string;
|
|
451
|
+
iconMarginTiny: string;
|
|
452
|
+
iconMarginSmall: string;
|
|
453
|
+
iconMarginMedium: string;
|
|
454
|
+
iconMarginLarge: string;
|
|
455
|
+
iconSizeTiny: string;
|
|
456
|
+
iconSizeSmall: string;
|
|
457
|
+
iconSizeMedium: string;
|
|
458
|
+
iconSizeLarge: string;
|
|
459
|
+
rippleDuration: string;
|
|
460
|
+
}, any>;
|
|
461
|
+
};
|
|
462
|
+
peerOverrides: {
|
|
463
|
+
Checkbox?: {
|
|
464
|
+
peers?: {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
} | undefined;
|
|
467
|
+
} | undefined;
|
|
468
|
+
Scrollbar?: {
|
|
469
|
+
peers?: {
|
|
470
|
+
[x: string]: any;
|
|
471
|
+
} | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
Input?: {
|
|
474
|
+
peers?: {
|
|
475
|
+
[x: string]: any;
|
|
476
|
+
} | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
Empty?: {
|
|
479
|
+
peers?: {
|
|
480
|
+
[x: string]: any;
|
|
481
|
+
} | undefined;
|
|
482
|
+
} | undefined;
|
|
483
|
+
Button?: {
|
|
484
|
+
peers?: {
|
|
485
|
+
[x: string]: any;
|
|
486
|
+
} | undefined;
|
|
487
|
+
} | undefined;
|
|
488
|
+
};
|
|
489
|
+
}>;
|
|
490
|
+
checked: import("vue").ComputedRef<boolean>;
|
|
491
|
+
handleClick: () => void;
|
|
492
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
493
|
+
source: {
|
|
494
|
+
type: BooleanConstructor;
|
|
495
|
+
default: boolean;
|
|
496
|
+
};
|
|
497
|
+
label: {
|
|
498
|
+
type: StringConstructor;
|
|
499
|
+
required: true;
|
|
500
|
+
};
|
|
501
|
+
value: {
|
|
502
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
503
|
+
required: true;
|
|
504
|
+
};
|
|
505
|
+
disabled: {
|
|
506
|
+
type: BooleanConstructor;
|
|
507
|
+
default: boolean;
|
|
508
|
+
};
|
|
509
|
+
}>>, {
|
|
510
|
+
source: boolean;
|
|
511
|
+
disabled: boolean;
|
|
512
|
+
}>;
|
|
513
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { h, inject, defineComponent } from 'vue';
|
|
2
|
+
import { useMemo } from 'vooks';
|
|
3
|
+
import { NCheckbox } from '../../checkbox';
|
|
4
|
+
import { transferInjectionKey } from './interface';
|
|
5
|
+
import { getTitleAttribute } from '../../_utils';
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'NTransferListItem',
|
|
8
|
+
props: {
|
|
9
|
+
source: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false
|
|
12
|
+
},
|
|
13
|
+
label: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
value: {
|
|
18
|
+
type: [String, Number],
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(props) {
|
|
27
|
+
const { source } = props;
|
|
28
|
+
const { mergedClsPrefixRef, mergedThemeRef, srcCheckedValuesRef, tgtCheckedValuesRef, handleSrcCheckboxClick, handleTgtCheckboxClick
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
30
|
+
} = inject(transferInjectionKey);
|
|
31
|
+
const checkedRef = source
|
|
32
|
+
? useMemo(() => srcCheckedValuesRef.value.includes(props.value))
|
|
33
|
+
: useMemo(() => tgtCheckedValuesRef.value.includes(props.value));
|
|
34
|
+
const handleClick = source
|
|
35
|
+
? () => {
|
|
36
|
+
if (!props.disabled) {
|
|
37
|
+
handleSrcCheckboxClick(!checkedRef.value, props.value);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
: () => {
|
|
41
|
+
if (!props.disabled) {
|
|
42
|
+
handleTgtCheckboxClick(!checkedRef.value, props.value);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
47
|
+
mergedTheme: mergedThemeRef,
|
|
48
|
+
checked: checkedRef,
|
|
49
|
+
handleClick
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
render() {
|
|
53
|
+
const { disabled, mergedTheme, mergedClsPrefix, label, checked, source } = this;
|
|
54
|
+
return (h("div", { class: [
|
|
55
|
+
`${mergedClsPrefix}-legacy-transfer-list-item`,
|
|
56
|
+
disabled && `${mergedClsPrefix}-legacy-transfer-list-item--disabled`,
|
|
57
|
+
source
|
|
58
|
+
? `${mergedClsPrefix}-legacy-transfer-list-item--source`
|
|
59
|
+
: `${mergedClsPrefix}-legacy-transfer-list-item--target`
|
|
60
|
+
], onClick: this.handleClick },
|
|
61
|
+
h("div", { class: `${mergedClsPrefix}-legacy-transfer-list-item__checkbox` },
|
|
62
|
+
h(NCheckbox, { theme: mergedTheme.peers.Checkbox, themeOverrides: mergedTheme.peerOverrides.Checkbox, disabled: disabled, checked: checked })),
|
|
63
|
+
h("div", { class: `${mergedClsPrefix}-legacy-transfer-list-item__label`, title: getTitleAttribute(label) }, label)));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { MergedTheme } from '../../_mixins';
|
|
3
|
+
import type { LegacyTransferTheme } from '../styles';
|
|
4
|
+
export declare type OptionValue = string | number;
|
|
5
|
+
export interface Option {
|
|
6
|
+
label: string;
|
|
7
|
+
value: OptionValue;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckedStatus {
|
|
11
|
+
checked: boolean;
|
|
12
|
+
indeterminate: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare type Filter = (pattern: string, option: Option, from: 'source' | 'target') => boolean;
|
|
16
|
+
export interface TransferInjection {
|
|
17
|
+
mergedClsPrefixRef: Ref<string>;
|
|
18
|
+
mergedSizeRef: Ref<'small' | 'medium' | 'large'>;
|
|
19
|
+
disabledRef: Ref<boolean>;
|
|
20
|
+
mergedThemeRef: Ref<MergedTheme<LegacyTransferTheme>>;
|
|
21
|
+
srcCheckedValuesRef: Ref<OptionValue[]>;
|
|
22
|
+
tgtCheckedValuesRef: Ref<OptionValue[]>;
|
|
23
|
+
srcOptsRef: Ref<Option[]>;
|
|
24
|
+
tgtOptsRef: Ref<Option[]>;
|
|
25
|
+
srcCheckedStatusRef: Ref<CheckedStatus>;
|
|
26
|
+
tgtCheckedStatusRef: Ref<CheckedStatus>;
|
|
27
|
+
handleSrcCheckboxClick: (checked: boolean, value: OptionValue) => void;
|
|
28
|
+
handleTgtCheckboxClick: (checked: boolean, value: OptionValue) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const transferInjectionKey: import("vue").InjectionKey<TransferInjection>;
|
|
31
|
+
export declare type OnUpdateValue = (value: OptionValue[]) => void;
|