naive-ui 2.24.4 → 2.25.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/es/_internal/clear/src/Clear.js +3 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/icon/src/Icon.js +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +2 -0
- package/es/_internal/icons/ArrowUp.js +9 -0
- package/es/_internal/icons/index.d.ts +1 -0
- package/es/_internal/icons/index.js +1 -0
- package/es/_internal/loading/src/Loading.js +1 -1
- package/es/_internal/menu-mask/src/MenuMask.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -5
- package/es/_internal/select-menu/src/SelectMenu.js +32 -16
- package/es/_internal/selection/src/Selection.d.ts +13 -5
- package/es/_internal/selection/src/Selection.js +24 -15
- package/es/_internal/selection/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/styles/index.cssr.js +16 -31
- package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/es/_internal/wave/src/Wave.js +1 -1
- package/es/_mixins/use-config.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +4 -2
- package/es/_mixins/use-css-vars-class.js +26 -11
- package/es/_mixins/use-form-item.d.ts +4 -0
- package/es/_mixins/use-form-item.js +7 -0
- package/es/_mixins/use-hljs.js +1 -1
- package/es/_mixins/use-locale.js +1 -1
- package/es/_mixins/use-style.js +1 -1
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.js +2 -2
- package/es/_utils/cssr/index.d.ts +1 -2
- package/es/_utils/cssr/index.js +1 -14
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/index.d.ts +1 -1
- package/es/_utils/vue/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +8 -2
- package/es/_utils/vue/resolve-slot.js +18 -1
- package/es/affix/src/Affix.js +1 -1
- package/es/alert/src/Alert.d.ts +4 -4
- package/es/alert/src/Alert.js +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +17 -2
- package/es/auto-complete/src/AutoComplete.js +9 -5
- package/es/avatar/src/Avatar.js +2 -2
- package/es/avatar/src/AvatarGroup.d.ts +0 -1
- package/es/avatar/src/AvatarGroup.js +2 -3
- package/es/avatar/src/context.d.ts +2 -0
- package/es/avatar/src/context.js +2 -0
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/src/Badge.d.ts +4 -4
- package/es/badge/src/Badge.js +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/button/src/Button.d.ts +4 -3
- package/es/button/src/Button.js +265 -229
- package/es/button/src/ButtonGroup.js +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/src/Card.d.ts +5 -1
- package/es/card/src/Card.js +3 -2
- package/es/carousel/src/Carousel.js +4 -1
- package/es/carousel/src/CarouselArrow.js +6 -9
- package/es/carousel/src/styles/index.cssr.js +59 -48
- package/es/carousel/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +6 -4
- package/es/cascader/src/Cascader.js +6 -6
- package/es/checkbox/src/Checkbox.js +1 -1
- package/es/code/src/Code.js +1 -1
- package/es/collapse/src/Collapse.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +37 -16
- package/es/color-picker/src/ColorPicker.js +14 -7
- package/es/color-picker/src/ColorPickerTrigger.d.ts +3 -0
- package/es/color-picker/src/ColorPickerTrigger.js +7 -3
- package/es/color-picker/src/context.d.ts +9 -0
- package/es/color-picker/src/context.js +2 -0
- package/es/color-picker/src/styles/index.cssr.js +2 -1
- package/es/components.d.ts +2 -1
- package/es/components.js +2 -1
- package/es/composables/use-theme-vars.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +15 -3
- package/es/config-provider/src/ConfigProvider.js +29 -3
- package/es/config-provider/src/context.d.ts +2 -0
- package/es/config-provider/src/context.js +2 -0
- package/es/config-provider/src/interface.d.ts +2 -1
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +1 -1
- package/es/data-table/src/DataTable.js +1 -1
- package/es/data-table/src/interface.d.ts +2 -2
- package/es/data-table/src/use-check.d.ts +2 -2
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-scroll.js +3 -3
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -3
- package/es/date-picker/src/DatePicker.d.ts +13 -1
- package/es/date-picker/src/DatePicker.js +8 -7
- package/es/date-picker/src/panel/date.d.ts +1 -0
- package/es/date-picker/src/panel/daterange.d.ts +1 -0
- package/es/date-picker/src/panel/datetime.d.ts +1 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -0
- package/es/date-picker/src/panel/month.d.ts +1 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.js +7 -3
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/es/date-picker/src/styles/index.cssr.js +13 -2
- package/es/date-picker/styles/light.d.ts +2 -0
- package/es/date-picker/styles/light.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/Descriptions.js +1 -1
- package/es/dialog/index.d.ts +3 -3
- package/es/dialog/index.js +2 -2
- package/es/dialog/src/Dialog.d.ts +28 -61
- package/es/dialog/src/Dialog.js +4 -32
- package/es/dialog/src/DialogEnvironment.d.ts +12 -13
- package/es/dialog/src/DialogEnvironment.js +3 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -6
- package/es/dialog/src/DialogProvider.js +5 -6
- package/es/dialog/src/context.d.ts +3 -0
- package/es/dialog/src/context.js +3 -0
- package/es/dialog/src/dialogProps.d.ts +32 -0
- package/es/dialog/src/dialogProps.js +29 -0
- package/es/dialog/src/use-dialog.js +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/src/Drawer.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +17 -5
- package/es/dropdown/src/Dropdown.js +6 -5
- package/es/dropdown/src/DropdownGroup.js +1 -0
- package/es/dropdown/src/DropdownGroupHeader.js +1 -2
- package/es/dropdown/src/DropdownMenu.d.ts +0 -1
- package/es/dropdown/src/DropdownMenu.js +4 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -0
- package/es/dropdown/src/DropdownOption.js +4 -4
- package/es/dropdown/src/context.d.ts +6 -0
- package/es/dropdown/src/context.js +4 -0
- package/es/dropdown/src/interface.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +16 -33
- package/es/dynamic-input/src/DynamicInput.js +73 -36
- package/es/dynamic-tags/src/DynamicTags.d.ts +11 -20
- package/es/dynamic-tags/src/DynamicTags.js +14 -16
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/src/Empty.js +2 -2
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +2 -2
- package/es/form/src/FormItem.d.ts +5 -5
- package/es/form/src/FormItem.js +3 -2
- package/es/form/src/FormItemCol.d.ts +4 -4
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/context.d.ts +3 -0
- package/es/form/src/context.js +3 -0
- package/es/form/src/interface.d.ts +4 -3
- package/es/form/src/interface.js +1 -3
- package/es/form/src/styles/form-item.cssr.js +6 -5
- package/es/form/src/utils.d.ts +1 -1
- package/es/form/src/utils.js +1 -1
- package/es/global-style/src/GlobalStyle.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/src/Grid.d.ts +0 -1
- package/es/grid/src/Grid.js +2 -3
- package/es/grid/src/GridItem.js +1 -1
- package/es/grid/src/config.d.ts +3 -0
- package/es/grid/src/config.js +3 -0
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.js +1 -1
- package/es/icon/src/Icon.d.ts +4 -3
- package/es/icon/src/Icon.js +6 -6
- package/es/icon-wrapper/index.d.ts +1 -0
- package/es/icon-wrapper/index.js +1 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/es/icon-wrapper/src/IconWrapper.js +48 -0
- package/es/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +16 -0
- package/es/icon-wrapper/styles/dark.d.ts +3 -0
- package/es/icon-wrapper/styles/dark.js +8 -0
- package/es/icon-wrapper/styles/index.d.ts +3 -0
- package/es/icon-wrapper/styles/index.js +2 -0
- package/es/icon-wrapper/styles/light.d.ts +10 -0
- package/es/icon-wrapper/styles/light.js +14 -0
- package/es/image/src/ImagePreview.js +1 -1
- package/es/input/src/Input.d.ts +7 -2
- package/es/input/src/Input.js +21 -17
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/WordCount.js +9 -8
- package/es/input/src/styles/input.cssr.js +6 -5
- package/es/input-number/src/InputNumber.d.ts +3 -2
- package/es/input-number/src/InputNumber.js +23 -21
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/src/Col.js +0 -3
- package/es/legacy-grid/src/Row.js +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/src/LoadingBar.js +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/es/loading-bar/src/LoadingBarProvider.js +1 -3
- package/es/loading-bar/src/context.d.ts +7 -0
- package/es/loading-bar/src/context.js +3 -0
- package/es/loading-bar/src/use-loading-bar.js +1 -1
- package/es/locales/common/jaJP.js +12 -14
- package/es/log/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +17 -12
- package/es/log/src/Log.js +10 -17
- package/es/log/src/LogLine.js +1 -1
- package/es/log/src/context.d.ts +2 -0
- package/es/log/src/context.js +2 -0
- package/es/log/src/styles/index.cssr.js +2 -3
- package/es/mention/src/Mention.d.ts +17 -2
- package/es/mention/src/Mention.js +7 -3
- package/es/menu/src/Menu.d.ts +2 -4
- package/es/menu/src/Menu.js +3 -3
- package/es/menu/src/MenuDivider.js +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -2
- package/es/menu/src/MenuOption.js +1 -1
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -4
- package/es/menu/src/MenuOptionGroup.js +4 -5
- package/es/menu/src/Submenu.d.ts +1 -4
- package/es/menu/src/Submenu.js +3 -4
- package/es/menu/src/context.d.ts +4 -0
- package/es/menu/src/context.js +4 -0
- package/es/menu/src/use-menu-child.js +1 -3
- package/es/menu/src/useCheckDeprecated.d.ts +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -3
- package/es/message/src/Message.d.ts +2 -158
- package/es/message/src/Message.js +2 -2
- package/es/message/src/MessageProvider.d.ts +4 -9
- package/es/message/src/MessageProvider.js +2 -3
- package/es/message/src/context.d.ts +7 -0
- package/es/message/src/context.js +3 -0
- package/es/message/src/types.d.ts +1 -1
- package/es/message/src/use-message.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +6 -4
- package/es/modal/src/BodyWrapper.js +2 -2
- package/es/modal/src/Modal.d.ts +8 -5
- package/es/modal/src/Modal.js +2 -2
- package/es/modal/src/presetProps.d.ts +3 -2
- package/es/modal/src/presetProps.js +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +5 -6
- package/es/notification/src/Notification.js +3 -5
- package/es/notification/src/NotificationContainer.d.ts +1 -2
- package/es/notification/src/NotificationContainer.js +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +7 -8
- package/es/notification/src/NotificationEnvironment.js +3 -3
- package/es/notification/src/NotificationProvider.d.ts +11 -7
- package/es/notification/src/NotificationProvider.js +6 -6
- package/es/notification/src/context.d.ts +2 -0
- package/es/notification/src/context.js +2 -0
- package/es/page-header/src/PageHeader.js +1 -1
- package/es/pagination/src/Pagination.js +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +21 -8
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -0
- package/es/popover/src/Popover.d.ts +21 -4
- package/es/popover/src/Popover.js +9 -2
- package/es/popover/src/PopoverBody.d.ts +4 -0
- package/es/popover/src/PopoverBody.js +13 -11
- package/es/popover/src/styles/index.cssr.js +2 -2
- package/es/popselect/src/Popselect.d.ts +31 -8
- package/es/popselect/src/Popselect.js +8 -6
- package/es/popselect/src/PopselectPanel.d.ts +2 -5
- package/es/popselect/src/PopselectPanel.js +4 -2
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.js +1 -1
- package/es/radio/src/Radio.js +1 -1
- package/es/radio/src/RadioGroup.js +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/src/Result.d.ts +4 -4
- package/es/result/src/Result.js +1 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/src/Select.d.ts +27 -24
- package/es/select/src/Select.js +71 -41
- package/es/select/src/interface.d.ts +2 -0
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/space/src/Space.js +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/table/src/Table.js +1 -1
- package/es/tabs/src/Tabs.d.ts +7 -4
- package/es/tabs/src/Tabs.js +12 -4
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.js +1 -1
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +5 -17
- package/es/theme-editor/src/ThemeEditor.js +1 -1
- package/es/themes/dark.js +3 -0
- package/es/themes/light.js +3 -0
- package/es/themes/utils.d.ts +2 -1
- package/es/themes/utils.js +16 -4
- package/es/thing/src/Thing.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +7 -5
- package/es/time-picker/src/TimePicker.js +5 -5
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/tooltip/src/Tooltip.d.ts +20 -7
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/src/Tree.d.ts +6 -2
- package/es/tree/src/Tree.js +15 -8
- package/es/tree/src/TreeNode.d.ts +2 -0
- package/es/tree/src/TreeNode.js +37 -10
- package/es/tree/src/TreeNodeContent.d.ts +3 -1
- package/es/tree/src/TreeNodeContent.js +4 -3
- package/es/tree/src/interface.d.ts +5 -1
- package/es/tree-select/src/TreeSelect.d.ts +16 -14
- package/es/tree-select/src/TreeSelect.js +8 -5
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.d.ts +4 -4
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/headers.d.ts +18 -18
- package/es/typography/src/hr.js +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +3 -2
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/icon/src/Icon.js +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +2 -0
- package/lib/_internal/icons/ArrowUp.js +11 -0
- package/lib/_internal/icons/index.d.ts +1 -0
- package/lib/_internal/icons/index.js +3 -1
- package/lib/_internal/loading/src/Loading.js +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -5
- package/lib/_internal/select-menu/src/SelectMenu.js +31 -15
- package/lib/_internal/selection/src/Selection.d.ts +13 -5
- package/lib/_internal/selection/src/Selection.js +24 -15
- package/lib/_internal/selection/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
- package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/lib/_internal/wave/src/Wave.js +1 -1
- package/lib/_mixins/use-config.js +2 -2
- package/lib/_mixins/use-css-vars-class.d.ts +4 -2
- package/lib/_mixins/use-css-vars-class.js +25 -13
- package/lib/_mixins/use-form-item.d.ts +4 -0
- package/lib/_mixins/use-form-item.js +7 -0
- package/lib/_mixins/use-hljs.js +2 -2
- package/lib/_mixins/use-locale.js +2 -2
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_mixins/use-theme.js +3 -3
- package/lib/_utils/cssr/index.d.ts +1 -2
- package/lib/_utils/cssr/index.js +1 -15
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +5 -1
- package/lib/_utils/vue/index.d.ts +1 -1
- package/lib/_utils/vue/index.js +4 -1
- package/lib/_utils/vue/resolve-slot.d.ts +8 -2
- package/lib/_utils/vue/resolve-slot.js +22 -2
- package/lib/affix/src/Affix.js +1 -1
- package/lib/alert/src/Alert.d.ts +4 -4
- package/lib/alert/src/Alert.js +1 -1
- package/lib/anchor/src/AnchorAdapter.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +17 -2
- package/lib/auto-complete/src/AutoComplete.js +9 -5
- package/lib/avatar/src/Avatar.js +3 -3
- package/lib/avatar/src/AvatarGroup.d.ts +0 -1
- package/lib/avatar/src/AvatarGroup.js +3 -5
- package/lib/avatar/src/context.d.ts +2 -0
- package/lib/avatar/src/context.js +5 -0
- package/lib/back-top/src/BackTop.js +1 -1
- package/lib/badge/src/Badge.d.ts +4 -4
- package/lib/badge/src/Badge.js +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/button/src/Button.d.ts +4 -3
- package/lib/button/src/Button.js +264 -228
- package/lib/button/src/ButtonGroup.js +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/calendar/src/Calendar.js +1 -1
- package/lib/card/src/Card.d.ts +5 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/carousel/src/Carousel.js +4 -1
- package/lib/carousel/src/CarouselArrow.js +5 -8
- package/lib/carousel/src/styles/index.cssr.js +59 -48
- package/lib/carousel/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +6 -4
- package/lib/cascader/src/Cascader.js +6 -6
- package/lib/checkbox/src/Checkbox.js +1 -1
- package/lib/code/src/Code.js +1 -1
- package/lib/collapse/src/Collapse.js +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +37 -16
- package/lib/color-picker/src/ColorPicker.js +15 -8
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +3 -0
- package/lib/color-picker/src/ColorPickerTrigger.js +8 -4
- package/lib/color-picker/src/context.d.ts +9 -0
- package/lib/color-picker/src/context.js +5 -0
- package/lib/color-picker/src/styles/index.cssr.js +2 -1
- package/lib/components.d.ts +2 -1
- package/lib/components.js +2 -1
- package/lib/composables/use-theme-vars.js +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +15 -3
- package/lib/config-provider/src/ConfigProvider.js +31 -5
- package/lib/config-provider/src/context.d.ts +2 -0
- package/lib/config-provider/src/context.js +5 -0
- package/lib/config-provider/src/interface.d.ts +2 -1
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +1 -1
- package/lib/data-table/src/DataTable.js +1 -1
- package/lib/data-table/src/interface.d.ts +2 -2
- package/lib/data-table/src/use-check.d.ts +2 -2
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-scroll.js +2 -2
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +15 -4
- package/lib/date-picker/src/DatePicker.d.ts +13 -1
- package/lib/date-picker/src/DatePicker.js +8 -7
- package/lib/date-picker/src/panel/date.d.ts +1 -0
- package/lib/date-picker/src/panel/daterange.d.ts +1 -0
- package/lib/date-picker/src/panel/datetime.d.ts +1 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -0
- package/lib/date-picker/src/panel/month.d.ts +1 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.js +7 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/lib/date-picker/src/styles/index.cssr.js +13 -2
- package/lib/date-picker/styles/light.d.ts +2 -0
- package/lib/date-picker/styles/light.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.js +1 -1
- package/lib/dialog/index.d.ts +3 -3
- package/lib/dialog/index.js +2 -5
- package/lib/dialog/src/Dialog.d.ts +28 -61
- package/lib/dialog/src/Dialog.js +5 -33
- package/lib/dialog/src/DialogEnvironment.d.ts +12 -13
- package/lib/dialog/src/DialogEnvironment.js +6 -24
- package/lib/dialog/src/DialogProvider.d.ts +4 -6
- package/lib/dialog/src/DialogProvider.js +8 -12
- package/lib/dialog/src/context.d.ts +3 -0
- package/lib/dialog/src/context.js +6 -0
- package/lib/dialog/src/dialogProps.d.ts +32 -0
- package/lib/dialog/src/dialogProps.js +32 -0
- package/lib/dialog/src/use-dialog.js +2 -2
- package/lib/divider/src/Divider.js +1 -1
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/src/Drawer.js +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +17 -5
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/DropdownGroup.js +1 -0
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -4
- package/lib/dropdown/src/DropdownMenu.d.ts +0 -1
- package/lib/dropdown/src/DropdownMenu.js +6 -7
- package/lib/dropdown/src/DropdownOption.d.ts +3 -0
- package/lib/dropdown/src/DropdownOption.js +9 -25
- package/lib/dropdown/src/context.d.ts +6 -0
- package/lib/dropdown/src/context.js +7 -0
- package/lib/dropdown/src/interface.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +16 -33
- package/lib/dynamic-input/src/DynamicInput.js +70 -33
- package/lib/dynamic-tags/src/DynamicTags.d.ts +11 -20
- package/lib/dynamic-tags/src/DynamicTags.js +12 -14
- package/lib/element/src/Element.js +1 -1
- package/lib/ellipsis/src/Ellipsis.js +1 -1
- package/lib/empty/src/Empty.js +3 -3
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +4 -4
- package/lib/form/src/FormItem.d.ts +5 -5
- package/lib/form/src/FormItem.js +5 -4
- package/lib/form/src/FormItemCol.d.ts +4 -4
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/context.d.ts +3 -0
- package/lib/form/src/context.js +6 -0
- package/lib/form/src/interface.d.ts +4 -3
- package/lib/form/src/interface.js +0 -4
- package/lib/form/src/styles/form-item.cssr.js +3 -2
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/form/src/utils.js +4 -4
- package/lib/global-style/src/GlobalStyle.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +1 -1
- package/lib/grid/src/Grid.d.ts +0 -1
- package/lib/grid/src/Grid.js +4 -6
- package/lib/grid/src/GridItem.js +2 -2
- package/lib/grid/src/config.d.ts +3 -0
- package/lib/grid/src/config.js +6 -0
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +1 -4
- package/lib/icon/src/Icon.d.ts +4 -3
- package/lib/icon/src/Icon.js +6 -5
- package/lib/icon-wrapper/index.d.ts +1 -0
- package/lib/icon-wrapper/index.js +5 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/lib/icon-wrapper/src/IconWrapper.js +54 -0
- package/lib/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +23 -0
- package/lib/icon-wrapper/styles/dark.d.ts +3 -0
- package/lib/icon-wrapper/styles/dark.js +10 -0
- package/lib/icon-wrapper/styles/index.d.ts +3 -0
- package/lib/icon-wrapper/styles/index.js +10 -0
- package/lib/icon-wrapper/styles/light.d.ts +10 -0
- package/lib/icon-wrapper/styles/light.js +18 -0
- package/lib/image/src/ImagePreview.js +1 -1
- package/lib/input/src/Input.d.ts +7 -2
- package/lib/input/src/Input.js +20 -16
- package/lib/input/src/InputGroup.js +1 -1
- package/lib/input/src/InputGroupLabel.js +1 -1
- package/lib/input/src/WordCount.js +9 -8
- package/lib/input/src/styles/input.cssr.js +5 -4
- package/lib/input-number/src/InputNumber.d.ts +3 -2
- package/lib/input-number/src/InputNumber.js +23 -21
- package/lib/layout/src/Layout.js +1 -1
- package/lib/layout/src/LayoutFooter.js +1 -1
- package/lib/layout/src/LayoutHeader.js +1 -1
- package/lib/layout/src/LayoutSider.js +1 -1
- package/lib/legacy-grid/src/Col.js +0 -6
- package/lib/legacy-grid/src/Row.js +1 -1
- package/lib/list/src/List.js +1 -1
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -6
- package/lib/loading-bar/src/context.d.ts +7 -0
- package/lib/loading-bar/src/context.js +6 -0
- package/lib/loading-bar/src/use-loading-bar.js +2 -2
- package/lib/locales/common/jaJP.js +12 -14
- package/lib/log/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +17 -12
- package/lib/log/src/Log.js +10 -18
- package/lib/log/src/LogLine.js +2 -2
- package/lib/log/src/context.d.ts +2 -0
- package/lib/log/src/context.js +5 -0
- package/lib/log/src/styles/index.cssr.js +2 -3
- package/lib/mention/src/Mention.d.ts +17 -2
- package/lib/mention/src/Mention.js +7 -3
- package/lib/menu/src/Menu.d.ts +2 -4
- package/lib/menu/src/Menu.js +3 -4
- package/lib/menu/src/MenuDivider.js +2 -2
- package/lib/menu/src/MenuOption.d.ts +1 -2
- package/lib/menu/src/MenuOption.js +2 -2
- package/lib/menu/src/MenuOptionContent.js +2 -2
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -4
- package/lib/menu/src/MenuOptionGroup.js +7 -8
- package/lib/menu/src/Submenu.d.ts +1 -4
- package/lib/menu/src/Submenu.js +6 -7
- package/lib/menu/src/context.d.ts +4 -0
- package/lib/menu/src/context.js +7 -0
- package/lib/menu/src/use-menu-child.js +4 -6
- package/lib/menu/src/useCheckDeprecated.d.ts +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +8 -25
- package/lib/message/src/Message.d.ts +2 -158
- package/lib/message/src/Message.js +3 -3
- package/lib/message/src/MessageProvider.d.ts +4 -9
- package/lib/message/src/MessageProvider.js +3 -5
- package/lib/message/src/context.d.ts +7 -0
- package/lib/message/src/context.js +6 -0
- package/lib/message/src/types.d.ts +1 -1
- package/lib/message/src/use-message.js +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +6 -4
- package/lib/modal/src/BodyWrapper.js +3 -3
- package/lib/modal/src/Modal.d.ts +8 -5
- package/lib/modal/src/Modal.js +3 -3
- package/lib/modal/src/presetProps.d.ts +3 -2
- package/lib/modal/src/presetProps.js +2 -2
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +5 -6
- package/lib/notification/src/Notification.js +5 -7
- package/lib/notification/src/NotificationContainer.d.ts +1 -2
- package/lib/notification/src/NotificationContainer.js +4 -3
- package/lib/notification/src/NotificationEnvironment.d.ts +7 -8
- package/lib/notification/src/NotificationEnvironment.js +4 -23
- package/lib/notification/src/NotificationProvider.d.ts +11 -7
- package/lib/notification/src/NotificationProvider.js +9 -9
- package/lib/notification/src/context.d.ts +2 -0
- package/lib/notification/src/context.js +5 -0
- package/lib/page-header/src/PageHeader.js +1 -1
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +21 -8
- package/lib/popconfirm/src/Popconfirm.js +1 -1
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/src/Popover.d.ts +21 -4
- package/lib/popover/src/Popover.js +9 -2
- package/lib/popover/src/PopoverBody.d.ts +4 -0
- package/lib/popover/src/PopoverBody.js +11 -9
- package/lib/popover/src/styles/index.cssr.js +2 -2
- package/lib/popselect/src/Popselect.d.ts +31 -8
- package/lib/popselect/src/Popselect.js +8 -6
- package/lib/popselect/src/PopselectPanel.d.ts +2 -5
- package/lib/popselect/src/PopselectPanel.js +4 -2
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/Progress.js +1 -1
- package/lib/radio/src/Radio.js +1 -1
- package/lib/radio/src/RadioGroup.js +1 -1
- package/lib/rate/src/Rate.js +1 -1
- package/lib/result/src/Result.d.ts +4 -4
- package/lib/result/src/Result.js +1 -1
- package/lib/select/index.d.ts +2 -0
- package/lib/select/src/Select.d.ts +27 -24
- package/lib/select/src/Select.js +71 -41
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/src/Slider.js +1 -1
- package/lib/space/src/Space.js +1 -1
- package/lib/spin/src/Spin.js +1 -1
- package/lib/statistic/src/Statistic.js +1 -1
- package/lib/steps/src/Steps.js +1 -1
- package/lib/switch/src/Switch.js +1 -1
- package/lib/table/src/Table.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +7 -4
- package/lib/tabs/src/Tabs.js +12 -4
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +1 -1
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +5 -17
- package/lib/theme-editor/src/ThemeEditor.js +1 -1
- package/lib/themes/dark.js +87 -84
- package/lib/themes/light.js +87 -84
- package/lib/themes/utils.d.ts +2 -1
- package/lib/themes/utils.js +16 -4
- package/lib/thing/src/Thing.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +7 -5
- package/lib/time-picker/src/TimePicker.js +5 -5
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/tooltip/src/Tooltip.d.ts +20 -7
- package/lib/tooltip/src/Tooltip.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +1 -1
- package/lib/tree/src/Tree.d.ts +6 -2
- package/lib/tree/src/Tree.js +15 -8
- package/lib/tree/src/TreeNode.d.ts +2 -0
- package/lib/tree/src/TreeNode.js +37 -10
- package/lib/tree/src/TreeNodeContent.d.ts +3 -1
- package/lib/tree/src/TreeNodeContent.js +4 -3
- package/lib/tree/src/interface.d.ts +5 -1
- package/lib/tree-select/src/TreeSelect.d.ts +16 -14
- package/lib/tree-select/src/TreeSelect.js +8 -5
- package/lib/typography/src/a.js +1 -1
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.d.ts +4 -4
- package/lib/typography/src/create-header.js +1 -1
- package/lib/typography/src/headers.d.ts +18 -18
- package/lib/typography/src/hr.js +1 -1
- package/lib/typography/src/ol.js +1 -1
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.js +1 -1
- package/lib/typography/src/ul.js +1 -1
- package/lib/upload/src/Upload.js +1 -1
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +11 -12
- package/volar.d.ts +1 -0
- package/web-types.json +443 -220
package/lib/themes/light.js
CHANGED
|
@@ -36,49 +36,51 @@ const styles_29 = require("../empty/styles");
|
|
|
36
36
|
const styles_30 = require("../form/styles");
|
|
37
37
|
const styles_31 = require("../gradient-text/styles");
|
|
38
38
|
const styles_32 = require("../icon/styles");
|
|
39
|
-
const styles_33 = require("../
|
|
40
|
-
const styles_34 = require("../
|
|
41
|
-
const styles_35 = require("../input
|
|
42
|
-
const styles_36 = require("../
|
|
43
|
-
const styles_37 = require("../
|
|
44
|
-
const styles_38 = require("../
|
|
45
|
-
const styles_39 = require("../
|
|
46
|
-
const styles_40 = require("../
|
|
47
|
-
const styles_41 = require("../
|
|
48
|
-
const styles_42 = require("../
|
|
49
|
-
const styles_43 = require("../
|
|
50
|
-
const styles_44 = require("../
|
|
51
|
-
const styles_45 = require("../
|
|
52
|
-
const styles_46 = require("../
|
|
53
|
-
const styles_47 = require("../
|
|
54
|
-
const styles_48 = require("../
|
|
55
|
-
const styles_49 = require("../
|
|
56
|
-
const styles_50 = require("../
|
|
57
|
-
const styles_51 = require("../
|
|
58
|
-
const styles_52 = require("../
|
|
59
|
-
const styles_53 = require("../
|
|
60
|
-
const styles_54 = require("../
|
|
61
|
-
const styles_55 = require("../
|
|
62
|
-
const styles_56 = require("../
|
|
63
|
-
const styles_57 = require("../
|
|
64
|
-
const styles_58 = require("../
|
|
65
|
-
const styles_59 = require("../
|
|
66
|
-
const styles_60 = require("../
|
|
67
|
-
const styles_61 = require("../
|
|
68
|
-
const styles_62 = require("../
|
|
69
|
-
const styles_63 = require("../
|
|
70
|
-
const styles_64 = require("../
|
|
71
|
-
const styles_65 = require("../
|
|
72
|
-
const styles_66 = require("../
|
|
73
|
-
const styles_67 = require("../
|
|
74
|
-
const styles_68 = require("../
|
|
75
|
-
const styles_69 = require("../
|
|
76
|
-
const styles_70 = require("../
|
|
77
|
-
const styles_71 = require("../
|
|
78
|
-
const styles_72 = require("../
|
|
79
|
-
const styles_73 = require("../tree
|
|
80
|
-
const styles_74 = require("../
|
|
39
|
+
const styles_33 = require("../icon-wrapper/styles");
|
|
40
|
+
const styles_34 = require("../image/styles");
|
|
41
|
+
const styles_35 = require("../input/styles");
|
|
42
|
+
const styles_36 = require("../input-number/styles");
|
|
43
|
+
const styles_37 = require("../layout/styles");
|
|
44
|
+
const styles_38 = require("../list/styles");
|
|
45
|
+
const styles_39 = require("../loading-bar/styles");
|
|
46
|
+
const styles_40 = require("../log/styles");
|
|
47
|
+
const styles_41 = require("../menu/styles");
|
|
48
|
+
const styles_42 = require("../mention/styles");
|
|
49
|
+
const styles_43 = require("../message/styles");
|
|
50
|
+
const styles_44 = require("../modal/styles");
|
|
51
|
+
const styles_45 = require("../notification/styles");
|
|
52
|
+
const styles_46 = require("../page-header/styles");
|
|
53
|
+
const styles_47 = require("../pagination/styles");
|
|
54
|
+
const styles_48 = require("../popconfirm/styles");
|
|
55
|
+
const styles_49 = require("../popover/styles");
|
|
56
|
+
const styles_50 = require("../popselect/styles");
|
|
57
|
+
const styles_51 = require("../progress/styles");
|
|
58
|
+
const styles_52 = require("../radio/styles");
|
|
59
|
+
const styles_53 = require("../rate/styles");
|
|
60
|
+
const styles_54 = require("../result/styles");
|
|
61
|
+
const styles_55 = require("../_internal/scrollbar/styles");
|
|
62
|
+
const styles_56 = require("../select/styles");
|
|
63
|
+
const styles_57 = require("../skeleton/styles");
|
|
64
|
+
const styles_58 = require("../slider/styles");
|
|
65
|
+
const styles_59 = require("../space/styles");
|
|
66
|
+
const styles_60 = require("../spin/styles");
|
|
67
|
+
const styles_61 = require("../statistic/styles");
|
|
68
|
+
const styles_62 = require("../steps/styles");
|
|
69
|
+
const styles_63 = require("../switch/styles");
|
|
70
|
+
const styles_64 = require("../table/styles");
|
|
71
|
+
const styles_65 = require("../tabs/styles");
|
|
72
|
+
const styles_66 = require("../tag/styles");
|
|
73
|
+
const styles_67 = require("../thing/styles");
|
|
74
|
+
const styles_68 = require("../time-picker/styles");
|
|
75
|
+
const styles_69 = require("../timeline/styles");
|
|
76
|
+
const styles_70 = require("../tooltip/styles");
|
|
77
|
+
const styles_71 = require("../transfer/styles");
|
|
78
|
+
const styles_72 = require("../typography/styles");
|
|
79
|
+
const styles_73 = require("../tree/styles");
|
|
80
|
+
const styles_74 = require("../tree-select/styles");
|
|
81
|
+
const styles_75 = require("../upload/styles");
|
|
81
82
|
exports.lightTheme = {
|
|
83
|
+
name: 'light',
|
|
82
84
|
common: common_1.commonLight,
|
|
83
85
|
Alert: styles_1.alertLight,
|
|
84
86
|
Anchor: styles_2.anchorLight,
|
|
@@ -112,46 +114,47 @@ exports.lightTheme = {
|
|
|
112
114
|
Form: styles_30.formLight,
|
|
113
115
|
GradientText: styles_31.gradientTextLight,
|
|
114
116
|
Icon: styles_32.iconLight,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
117
|
+
IconWrapper: styles_33.iconWrapperLight,
|
|
118
|
+
Image: styles_34.imageLight,
|
|
119
|
+
Input: styles_35.inputLight,
|
|
120
|
+
InputNumber: styles_36.inputNumberLight,
|
|
121
|
+
Layout: styles_37.layoutLight,
|
|
122
|
+
List: styles_38.listLight,
|
|
123
|
+
LoadingBar: styles_39.loadingBarLight,
|
|
124
|
+
Log: styles_40.logLight,
|
|
125
|
+
Menu: styles_41.menuLight,
|
|
126
|
+
Mention: styles_42.mentionLight,
|
|
127
|
+
Message: styles_43.messageLight,
|
|
128
|
+
Modal: styles_44.modalLight,
|
|
129
|
+
Notification: styles_45.notificationLight,
|
|
130
|
+
PageHeader: styles_46.pageHeaderLight,
|
|
131
|
+
Pagination: styles_47.paginationLight,
|
|
132
|
+
Popconfirm: styles_48.popconfirmLight,
|
|
133
|
+
Popover: styles_49.popoverLight,
|
|
134
|
+
Popselect: styles_50.popselectLight,
|
|
135
|
+
Progress: styles_51.progressLight,
|
|
136
|
+
Radio: styles_52.radioLight,
|
|
137
|
+
Rate: styles_53.rateLight,
|
|
138
|
+
Result: styles_54.resultLight,
|
|
139
|
+
Scrollbar: styles_55.scrollbarLight,
|
|
140
|
+
Skeleton: styles_57.skeletonLight,
|
|
141
|
+
Select: styles_56.selectLight,
|
|
142
|
+
Slider: styles_58.sliderLight,
|
|
143
|
+
Space: styles_59.spaceLight,
|
|
144
|
+
Spin: styles_60.spinLight,
|
|
145
|
+
Statistic: styles_61.statisticLight,
|
|
146
|
+
Steps: styles_62.stepsLight,
|
|
147
|
+
Switch: styles_63.switchLight,
|
|
148
|
+
Table: styles_64.tableLight,
|
|
149
|
+
Tabs: styles_65.tabsLight,
|
|
150
|
+
Tag: styles_66.tagLight,
|
|
151
|
+
Thing: styles_67.thingLight,
|
|
152
|
+
TimePicker: styles_68.timePickerLight,
|
|
153
|
+
Timeline: styles_69.timelineLight,
|
|
154
|
+
Tooltip: styles_70.tooltipLight,
|
|
155
|
+
Transfer: styles_71.transferLight,
|
|
156
|
+
Tree: styles_73.treeLight,
|
|
157
|
+
TreeSelect: styles_74.treeSelectLight,
|
|
158
|
+
Typography: styles_72.typographyLight,
|
|
159
|
+
Upload: styles_75.uploadLight
|
|
157
160
|
};
|
package/lib/themes/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GlobalTheme } from '../config-provider';
|
|
2
|
-
declare type ComponentKey = keyof GlobalTheme
|
|
2
|
+
declare type ComponentKey = Exclude<keyof GlobalTheme, 'name'>;
|
|
3
3
|
declare type ComponentThemes = Array<Exclude<GlobalTheme[ComponentKey], undefined>>;
|
|
4
|
+
export declare function createTheme(name: string, componentThemes: ComponentThemes): GlobalTheme;
|
|
4
5
|
export declare function createTheme(componentThemes: ComponentThemes): GlobalTheme;
|
|
5
6
|
export {};
|
package/lib/themes/utils.js
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTheme = void 0;
|
|
4
|
-
function createTheme(componentThemes) {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
function createTheme(name, componentThemes) {
|
|
5
|
+
const nameIsString = typeof name === 'string';
|
|
6
|
+
const theme = {
|
|
7
|
+
name: nameIsString ? name : 'customized-theme'
|
|
8
|
+
};
|
|
9
|
+
if (nameIsString) {
|
|
10
|
+
if (componentThemes) {
|
|
11
|
+
for (const cTheme of componentThemes) {
|
|
12
|
+
theme[cTheme.name] = cTheme;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
for (const cTheme of name) {
|
|
18
|
+
theme[cTheme.name] = cTheme;
|
|
19
|
+
}
|
|
8
20
|
}
|
|
9
21
|
return theme;
|
|
10
22
|
}
|
package/lib/thing/src/Thing.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
16
16
|
props: thingProps,
|
|
17
17
|
setup(props, { slots }) {
|
|
18
18
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
19
|
-
const themeRef = (0, _mixins_1.useTheme)('Thing', '
|
|
19
|
+
const themeRef = (0, _mixins_1.useTheme)('Thing', '-thing', index_cssr_1.default, styles_1.thingLight, props, mergedClsPrefixRef);
|
|
20
20
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
21
21
|
const { self: { titleTextColor, textColor, titleFontWeight, fontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
22
22
|
return {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { FollowerPlacement } from 'vueuc';
|
|
2
3
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
3
4
|
import type { IsHourDisabled, IsMinuteDisabled, IsSecondDisabled, ItemValue, OnUpdateFormattedValue, OnUpdateValue, Size } from './interface';
|
|
4
5
|
declare const timePickerProps: {
|
|
@@ -18,7 +19,7 @@ declare const timePickerProps: {
|
|
|
18
19
|
defaultFormattedValue: StringConstructor;
|
|
19
20
|
placeholder: StringConstructor;
|
|
20
21
|
placement: {
|
|
21
|
-
type:
|
|
22
|
+
type: PropType<FollowerPlacement>;
|
|
22
23
|
default: string;
|
|
23
24
|
};
|
|
24
25
|
value: PropType<number | null>;
|
|
@@ -947,7 +948,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
947
948
|
defaultFormattedValue: StringConstructor;
|
|
948
949
|
placeholder: StringConstructor;
|
|
949
950
|
placement: {
|
|
950
|
-
type:
|
|
951
|
+
type: PropType<FollowerPlacement>;
|
|
951
952
|
default: string;
|
|
952
953
|
};
|
|
953
954
|
value: PropType<number | null>;
|
|
@@ -1858,6 +1859,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1858
1859
|
}, any>;
|
|
1859
1860
|
}>>>;
|
|
1860
1861
|
}, {
|
|
1862
|
+
mergedStatus: import("vue").ComputedRef<import("../../form/src/interface").FormValidationStatus | undefined>;
|
|
1861
1863
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
1862
1864
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
1863
1865
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -2407,7 +2409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2407
2409
|
defaultFormattedValue: StringConstructor;
|
|
2408
2410
|
placeholder: StringConstructor;
|
|
2409
2411
|
placement: {
|
|
2410
|
-
type:
|
|
2412
|
+
type: PropType<FollowerPlacement>;
|
|
2411
2413
|
default: string;
|
|
2412
2414
|
};
|
|
2413
2415
|
value: PropType<number | null>;
|
|
@@ -3322,9 +3324,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3322
3324
|
disabled: boolean | undefined;
|
|
3323
3325
|
format: string;
|
|
3324
3326
|
to: string | boolean | HTMLElement;
|
|
3325
|
-
placement: string;
|
|
3326
|
-
showIcon: boolean;
|
|
3327
3327
|
bordered: boolean | undefined;
|
|
3328
|
+
showIcon: boolean;
|
|
3329
|
+
placement: FollowerPlacement;
|
|
3328
3330
|
clearable: boolean;
|
|
3329
3331
|
defaultValue: number | null;
|
|
3330
3332
|
stateful: boolean;
|
|
@@ -84,8 +84,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
84
84
|
const { mergedBorderedRef, mergedClsPrefixRef, namespaceRef } = (0, _mixins_1.useConfig)(props);
|
|
85
85
|
const { localeRef, dateLocaleRef } = (0, _mixins_1.useLocale)('TimePicker');
|
|
86
86
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
87
|
-
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
88
|
-
const themeRef = (0, _mixins_1.useTheme)('TimePicker', '
|
|
87
|
+
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef } = formItem;
|
|
88
|
+
const themeRef = (0, _mixins_1.useTheme)('TimePicker', '-time-picker', index_cssr_1.default, styles_1.timePickerLight, props, mergedClsPrefixRef);
|
|
89
89
|
const keyboardState = (0, vooks_1.useKeyboard)();
|
|
90
90
|
const inputInstRef = (0, vue_1.ref)(null);
|
|
91
91
|
const panelInstRef = (0, vue_1.ref)(null);
|
|
@@ -518,7 +518,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
518
518
|
(_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
-
return Object.assign(Object.assign({}, exposedMethods), { mergedBordered: mergedBorderedRef, mergedClsPrefix: mergedClsPrefixRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, isMounted: (0, vooks_1.useIsMounted)(), inputInstRef,
|
|
521
|
+
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedBordered: mergedBorderedRef, mergedClsPrefix: mergedClsPrefixRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, isMounted: (0, vooks_1.useIsMounted)(), inputInstRef,
|
|
522
522
|
panelInstRef, adjustedTo: (0, _utils_1.useAdjustedTo)(props), mergedShow: mergedShowRef, localizedNow: localizedNowRef, localizedPlaceholder: localizedPlaceholderRef, localizedNegativeText: localizedNegativeTextRef, localizedPositiveText: localizedPositiveTextRef, hourInFormat: hourInFormatRef, minuteInFormat: minuteInFormatRef, secondInFormat: secondInFormatRef, mergedAttrSize: mergedAttrSizeRef, displayTimeString: displayTimeStringRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, isValueInvalid: isValueInvalidRef, isHourInvalid: isHourInvalidRef, isMinuteInvalid: isMinuteInvalidRef, isSecondInvalid: isSecondInvalidRef, transitionDisabled: transitionDisabledRef, hourValue: hourValueRef, minuteValue: minuteValueRef, secondValue: secondValueRef, amPmValue: amPmValueRef, handleTimeInputFocus,
|
|
523
523
|
handleTimeInputBlur,
|
|
524
524
|
handleNowClick,
|
|
@@ -569,7 +569,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
569
569
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
570
570
|
default: () => [
|
|
571
571
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
572
|
-
default: () => ((0, vue_1.h)(input_1.NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
572
|
+
default: () => ((0, vue_1.h)(input_1.NInput, { ref: "inputInstRef", status: this.mergedStatus, value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
573
573
|
? {
|
|
574
574
|
[this.clearable ? 'clear' : 'suffix']: () => ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-time-picker-icon` }, {
|
|
575
575
|
default: () => $slots.icon ? $slots.icon() : (0, vue_1.h)(icons_1.TimeIcon, null)
|
|
@@ -577,7 +577,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
577
577
|
}
|
|
578
578
|
: null))
|
|
579
579
|
}),
|
|
580
|
-
(0, vue_1.h)(vueuc_1.VFollower, { teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, show: this.mergedShow, to: this.adjustedTo, containerClass: this.namespace, placement:
|
|
580
|
+
(0, vue_1.h)(vueuc_1.VFollower, { teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, show: this.mergedShow, to: this.adjustedTo, containerClass: this.namespace, placement: this.placement }, {
|
|
581
581
|
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
582
582
|
default: () => this.mergedShow
|
|
583
583
|
? (0, vue_1.withDirectives)((0, vue_1.h)(Panel_1.default, { ref: "panelInstRef", actions: this.actions, style: this.cssVars, seconds: this.seconds, minutes: this.minutes, hours: this.hours, transitionDisabled: this.transitionDisabled, hourValue: this.hourValue, showHour: this.hourInFormat, isHourInvalid: this.isHourInvalid, isHourDisabled: this.isHourDisabled, minuteValue: this.minuteValue, showMinute: this.minuteInFormat, isMinuteInvalid: this.isMinuteInvalid, isMinuteDisabled: this.isMinuteDisabled, secondValue: this.secondValue, amPmValue: this.amPmValue, showSecond: this.secondInFormat, isSecondInvalid: this.isSecondInvalid, isSecondDisabled: this.isSecondDisabled, isValueInvalid: this.isValueInvalid, nowText: this.localizedNow, confirmText: this.localizedPositiveText, use12Hours: this.use12Hours, onFocusout: this.handleMenuFocusOut, onKeydown: this.handleMenuKeyDown, onHourClick: this.handleHourClick, onMinuteClick: this.handleMinuteClick, onSecondClick: this.handleSecondClick, onAmPmClick: this.handleAmPmClick, onNowClick: this.handleNowClick, onConfirmClick: this.handleConfirmClick, onFocusDetectorFocus: this.handleFocusDetectorFocus }), [[vdirs_1.clickoutside, this.handleClickOutside]])
|
|
@@ -22,7 +22,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
22
22
|
props: timelineProps,
|
|
23
23
|
setup(props, { slots }) {
|
|
24
24
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
25
|
-
const themeRef = (0, _mixins_1.useTheme)('Timeline', '
|
|
25
|
+
const themeRef = (0, _mixins_1.useTheme)('Timeline', '-timeline', index_cssr_1.default, styles_1.timelineLight, props, mergedClsPrefixRef);
|
|
26
26
|
(0, vue_1.provide)(exports.timelineInjectionKey, {
|
|
27
27
|
props,
|
|
28
28
|
mergedThemeRef: themeRef,
|
|
@@ -6,7 +6,7 @@ declare const timelineItemProps: {
|
|
|
6
6
|
content: StringConstructor;
|
|
7
7
|
color: StringConstructor;
|
|
8
8
|
type: {
|
|
9
|
-
type: PropType<"default" | "
|
|
9
|
+
type: PropType<"default" | "success" | "error" | "warning" | "info">;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
content: StringConstructor;
|
|
18
18
|
color: StringConstructor;
|
|
19
19
|
type: {
|
|
20
|
-
type: PropType<"default" | "
|
|
20
|
+
type: PropType<"default" | "success" | "error" | "warning" | "info">;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
}, {
|
|
@@ -42,10 +42,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
content: StringConstructor;
|
|
43
43
|
color: StringConstructor;
|
|
44
44
|
type: {
|
|
45
|
-
type: PropType<"default" | "
|
|
45
|
+
type: PropType<"default" | "success" | "error" | "warning" | "info">;
|
|
46
46
|
default: string;
|
|
47
47
|
};
|
|
48
48
|
}>>, {
|
|
49
|
-
type: "default" | "
|
|
49
|
+
type: "default" | "success" | "error" | "warning" | "info";
|
|
50
50
|
}>;
|
|
51
51
|
export default _default;
|
|
@@ -91,7 +91,7 @@ declare const tooltipProps: {
|
|
|
91
91
|
};
|
|
92
92
|
raw: BooleanConstructor;
|
|
93
93
|
placement: {
|
|
94
|
-
type: import("vue").PropType<import("vueuc").
|
|
94
|
+
type: import("vue").PropType<import("vueuc/lib/binder/src/interface").Placement>;
|
|
95
95
|
default: string;
|
|
96
96
|
};
|
|
97
97
|
x: NumberConstructor;
|
|
@@ -116,11 +116,15 @@ declare const tooltipProps: {
|
|
|
116
116
|
default: undefined;
|
|
117
117
|
};
|
|
118
118
|
overlap: BooleanConstructor;
|
|
119
|
+
keepAliveOnHover: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
119
124
|
internalExtraClass: {
|
|
120
125
|
type: import("vue").PropType<string[]>;
|
|
121
126
|
default: () => never[];
|
|
122
127
|
};
|
|
123
|
-
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
124
128
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
125
129
|
onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
126
130
|
zIndex: NumberConstructor;
|
|
@@ -234,7 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
238
|
};
|
|
235
239
|
raw: BooleanConstructor;
|
|
236
240
|
placement: {
|
|
237
|
-
type: import("vue").PropType<import("vueuc").
|
|
241
|
+
type: import("vue").PropType<import("vueuc/lib/binder/src/interface").Placement>;
|
|
238
242
|
default: string;
|
|
239
243
|
};
|
|
240
244
|
x: NumberConstructor;
|
|
@@ -259,11 +263,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
263
|
default: undefined;
|
|
260
264
|
};
|
|
261
265
|
overlap: BooleanConstructor;
|
|
266
|
+
keepAliveOnHover: {
|
|
267
|
+
type: BooleanConstructor;
|
|
268
|
+
default: boolean;
|
|
269
|
+
};
|
|
270
|
+
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
262
271
|
internalExtraClass: {
|
|
263
272
|
type: import("vue").PropType<string[]>;
|
|
264
273
|
default: () => never[];
|
|
265
274
|
};
|
|
266
|
-
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
267
275
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
268
276
|
onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
269
277
|
zIndex: NumberConstructor;
|
|
@@ -524,7 +532,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
524
532
|
};
|
|
525
533
|
raw: BooleanConstructor;
|
|
526
534
|
placement: {
|
|
527
|
-
type: import("vue").PropType<import("vueuc").
|
|
535
|
+
type: import("vue").PropType<import("vueuc/lib/binder/src/interface").Placement>;
|
|
528
536
|
default: string;
|
|
529
537
|
};
|
|
530
538
|
x: NumberConstructor;
|
|
@@ -549,11 +557,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
549
557
|
default: undefined;
|
|
550
558
|
};
|
|
551
559
|
overlap: BooleanConstructor;
|
|
560
|
+
keepAliveOnHover: {
|
|
561
|
+
type: BooleanConstructor;
|
|
562
|
+
default: boolean;
|
|
563
|
+
};
|
|
564
|
+
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
552
565
|
internalExtraClass: {
|
|
553
566
|
type: import("vue").PropType<string[]>;
|
|
554
567
|
default: () => never[];
|
|
555
568
|
};
|
|
556
|
-
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
557
569
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
558
570
|
onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
559
571
|
zIndex: NumberConstructor;
|
|
@@ -583,12 +595,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
583
595
|
duration: number;
|
|
584
596
|
to: string | boolean | HTMLElement;
|
|
585
597
|
raw: boolean;
|
|
586
|
-
placement: import("vueuc").
|
|
598
|
+
placement: import("vueuc/lib/binder/src/interface").Placement;
|
|
587
599
|
overlap: boolean;
|
|
588
600
|
trigger: import("../../popover").PopoverTrigger;
|
|
589
601
|
showArrow: boolean;
|
|
590
602
|
delay: number;
|
|
591
603
|
displayDirective: "show" | "if";
|
|
604
|
+
keepAliveOnHover: boolean;
|
|
592
605
|
internalTrapFocus: boolean;
|
|
593
606
|
animated: boolean;
|
|
594
607
|
defaultShow: boolean;
|
|
@@ -12,7 +12,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
12
12
|
props: tooltipProps,
|
|
13
13
|
__popover__: true,
|
|
14
14
|
setup(props) {
|
|
15
|
-
const themeRef = (0, _mixins_1.useTheme)('Tooltip', '
|
|
15
|
+
const themeRef = (0, _mixins_1.useTheme)('Tooltip', '-tooltip', undefined, styles_1.tooltipLight, props);
|
|
16
16
|
const popoverRef = (0, vue_1.ref)(null);
|
|
17
17
|
const tooltipExposedMethod = {
|
|
18
18
|
syncPosition() {
|
|
@@ -3624,9 +3624,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3624
3624
|
filter: Filter;
|
|
3625
3625
|
disabled: boolean | undefined;
|
|
3626
3626
|
onChange: MaybeArray<OnUpdateValue>;
|
|
3627
|
+
options: Option[];
|
|
3627
3628
|
virtualScroll: boolean;
|
|
3628
3629
|
filterable: boolean;
|
|
3629
|
-
options: Option[];
|
|
3630
3630
|
defaultValue: OptionValue[] | null;
|
|
3631
3631
|
}>;
|
|
3632
3632
|
export default _default;
|
|
@@ -52,7 +52,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
52
52
|
props: transferProps,
|
|
53
53
|
setup(props) {
|
|
54
54
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
55
|
-
const themeRef = (0, _mixins_1.useTheme)('Transfer', '
|
|
55
|
+
const themeRef = (0, _mixins_1.useTheme)('Transfer', '-transfer', index_cssr_1.default, styles_1.transferLight, props, mergedClsPrefixRef);
|
|
56
56
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
57
57
|
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
58
58
|
const itemSizeRef = (0, vue_1.computed)(() => {
|
package/lib/tree/src/Tree.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TreeMate, TreeMateOptions, CheckStrategy } from 'treemate';
|
|
3
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
|
-
import { TreeDragInfo, TreeDropInfo, TreeOptions, Key, TreeOption, AllowDrop, RenderSwitcherIcon } from './interface';
|
|
4
|
+
import type { TreeDragInfo, TreeDropInfo, TreeOptions, Key, TreeOption, AllowDrop, RenderSwitcherIcon, TreeNodeProps } from './interface';
|
|
5
5
|
import { defaultAllowDrop } from './dnd';
|
|
6
6
|
export declare function createTreeMateOptions<T>(keyField: string, childrenField: string): TreeMateOptions<T, T, T>;
|
|
7
|
-
declare type OnUpdateKeys = (value:
|
|
7
|
+
export declare type OnUpdateKeys = (value: Array<string & number>, option: Array<TreeOption | null>) => void;
|
|
8
|
+
export declare type OnUpdateKeysImpl = (value: Key[], option: Array<TreeOption | null>) => void;
|
|
8
9
|
declare type OnLoad = (node: TreeOption) => Promise<void>;
|
|
9
10
|
export declare const treeSharedProps: {
|
|
10
11
|
readonly filter: PropType<(pattern: string, node: TreeOption) => boolean>;
|
|
@@ -134,6 +135,7 @@ declare const treeProps: {
|
|
|
134
135
|
readonly renderPrefix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
135
136
|
readonly renderSuffix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
136
137
|
readonly renderSwitcherIcon: PropType<RenderSwitcherIcon>;
|
|
138
|
+
readonly nodeProps: PropType<TreeNodeProps>;
|
|
137
139
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
138
140
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
139
141
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
@@ -383,6 +385,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
383
385
|
readonly renderPrefix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
384
386
|
readonly renderSuffix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
385
387
|
readonly renderSwitcherIcon: PropType<RenderSwitcherIcon>;
|
|
388
|
+
readonly nodeProps: PropType<TreeNodeProps>;
|
|
386
389
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
387
390
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
388
391
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
@@ -1080,6 +1083,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1080
1083
|
readonly renderPrefix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
1081
1084
|
readonly renderSuffix: PropType<({ option, checked, selected }: import("./interface").TreeRenderProps) => import("vue").VNodeChild>;
|
|
1082
1085
|
readonly renderSwitcherIcon: PropType<RenderSwitcherIcon>;
|
|
1086
|
+
readonly nodeProps: PropType<TreeNodeProps>;
|
|
1083
1087
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
1084
1088
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
1085
1089
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
package/lib/tree/src/Tree.js
CHANGED
|
@@ -104,7 +104,7 @@ const treeProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _m
|
|
|
104
104
|
}, animated: {
|
|
105
105
|
type: Boolean,
|
|
106
106
|
default: true
|
|
107
|
-
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, renderSwitcherIcon: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
107
|
+
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, renderSwitcherIcon: Function, nodeProps: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
108
108
|
// internal props for tree-select
|
|
109
109
|
internalScrollable: Boolean, internalScrollablePadding: String,
|
|
110
110
|
// use it to do check
|
|
@@ -126,7 +126,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
126
126
|
props: treeProps,
|
|
127
127
|
setup(props) {
|
|
128
128
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
129
|
-
const themeRef = (0, _mixins_1.useTheme)('Tree', '
|
|
129
|
+
const themeRef = (0, _mixins_1.useTheme)('Tree', '-tree', index_cssr_1.default, styles_1.treeLight, props, mergedClsPrefixRef);
|
|
130
130
|
const selfElRef = (0, vue_1.ref)(null);
|
|
131
131
|
const scrollbarInstRef = (0, vue_1.ref)(null);
|
|
132
132
|
const virtualListInstRef = (0, vue_1.ref)(null);
|
|
@@ -415,18 +415,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
415
415
|
function doUpdateExpandedKeys(value, option) {
|
|
416
416
|
const { 'onUpdate:expandedKeys': _onUpdateExpandedKeys, onUpdateExpandedKeys } = props;
|
|
417
417
|
uncontrolledExpandedKeysRef.value = value;
|
|
418
|
-
if (_onUpdateExpandedKeys)
|
|
418
|
+
if (_onUpdateExpandedKeys) {
|
|
419
419
|
(0, _utils_1.call)(_onUpdateExpandedKeys, value, option);
|
|
420
|
-
|
|
420
|
+
}
|
|
421
|
+
if (onUpdateExpandedKeys) {
|
|
421
422
|
(0, _utils_1.call)(onUpdateExpandedKeys, value, option);
|
|
423
|
+
}
|
|
422
424
|
}
|
|
423
425
|
function doUpdateCheckedKeys(value, option) {
|
|
424
426
|
const { 'onUpdate:checkedKeys': _onUpdateCheckedKeys, onUpdateCheckedKeys } = props;
|
|
425
427
|
uncontrolledCheckedKeysRef.value = value;
|
|
426
|
-
if (onUpdateCheckedKeys)
|
|
428
|
+
if (onUpdateCheckedKeys) {
|
|
427
429
|
(0, _utils_1.call)(onUpdateCheckedKeys, value, option);
|
|
428
|
-
|
|
430
|
+
}
|
|
431
|
+
if (_onUpdateCheckedKeys) {
|
|
429
432
|
(0, _utils_1.call)(_onUpdateCheckedKeys, value, option);
|
|
433
|
+
}
|
|
430
434
|
}
|
|
431
435
|
function doUpdateIndeterminateKeys(value, option) {
|
|
432
436
|
const { 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys, onUpdateIndeterminateKeys } = props;
|
|
@@ -440,10 +444,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
440
444
|
function doUpdateSelectedKeys(value, option) {
|
|
441
445
|
const { 'onUpdate:selectedKeys': _onUpdateSelectedKeys, onUpdateSelectedKeys } = props;
|
|
442
446
|
uncontrolledSelectedKeysRef.value = value;
|
|
443
|
-
if (onUpdateSelectedKeys)
|
|
447
|
+
if (onUpdateSelectedKeys) {
|
|
444
448
|
(0, _utils_1.call)(onUpdateSelectedKeys, value, option);
|
|
445
|
-
|
|
449
|
+
}
|
|
450
|
+
if (_onUpdateSelectedKeys) {
|
|
446
451
|
(0, _utils_1.call)(_onUpdateSelectedKeys, value, option);
|
|
452
|
+
}
|
|
447
453
|
}
|
|
448
454
|
// Drag & Drop
|
|
449
455
|
function doDragEnter(info) {
|
|
@@ -940,6 +946,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
940
946
|
mergedExpandedKeysRef,
|
|
941
947
|
mergedThemeRef: themeRef,
|
|
942
948
|
mergedCheckStrategyRef,
|
|
949
|
+
nodePropsRef: (0, vue_1.toRef)(props, 'nodeProps'),
|
|
943
950
|
disabledRef: (0, vue_1.toRef)(props, 'disabled'),
|
|
944
951
|
checkableRef: (0, vue_1.toRef)(props, 'checkable'),
|
|
945
952
|
selectableRef: (0, vue_1.toRef)(props, 'selectable'),
|
|
@@ -26,6 +26,7 @@ declare const TreeNode: import("vue").DefineComponent<{
|
|
|
26
26
|
internalScrollable: import("vue").Ref<boolean>;
|
|
27
27
|
draggable: import("vue").Ref<boolean>;
|
|
28
28
|
blockLine: import("vue").Ref<boolean>;
|
|
29
|
+
nodeProps: import("vue").ComputedRef<import("vue").HTMLAttributes | undefined>;
|
|
29
30
|
checkboxFocusable: import("vue").Ref<boolean>;
|
|
30
31
|
droppingPosition: import("vue").Ref<import("./interface").DropPosition | null>;
|
|
31
32
|
droppingOffsetLevel: import("vue").Ref<number>;
|
|
@@ -41,6 +42,7 @@ declare const TreeNode: import("vue").DefineComponent<{
|
|
|
41
42
|
handleDragOver: (e: DragEvent) => void;
|
|
42
43
|
handleDragEnd: (e: DragEvent) => void;
|
|
43
44
|
handleDragLeave: (e: DragEvent) => void;
|
|
45
|
+
handleLineClick: (e: MouseEvent) => void;
|
|
44
46
|
handleContentClick: (e: MouseEvent) => void;
|
|
45
47
|
handleSwitcherClick: () => void;
|
|
46
48
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|