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/es/components.js
CHANGED
|
@@ -36,10 +36,12 @@ export * from './global-style';
|
|
|
36
36
|
export * from './gradient-text';
|
|
37
37
|
export * from './grid';
|
|
38
38
|
export * from './icon';
|
|
39
|
+
export * from './icon-wrapper';
|
|
39
40
|
export * from './image';
|
|
40
41
|
export * from './input';
|
|
41
42
|
export * from './input-number';
|
|
42
43
|
export * from './layout';
|
|
44
|
+
export * from './legacy-grid';
|
|
43
45
|
export * from './list';
|
|
44
46
|
export * from './loading-bar';
|
|
45
47
|
export * from './log';
|
|
@@ -79,4 +81,3 @@ export * from './tree';
|
|
|
79
81
|
export * from './tree-select';
|
|
80
82
|
export * from './typography';
|
|
81
83
|
export * from './upload';
|
|
82
|
-
export * from './legacy-grid';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, inject } from 'vue';
|
|
2
|
-
import { configProviderInjectionKey } from '../config-provider/src/
|
|
2
|
+
import { configProviderInjectionKey } from '../config-provider/src/context';
|
|
3
3
|
import { commonLight } from '../_styles/common';
|
|
4
4
|
export function useThemeVars() {
|
|
5
5
|
const configProviderInjection = inject(configProviderInjectionKey, null);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PropType, ComputedRef } from 'vue';
|
|
2
2
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import { Hljs } from '../../_mixins';
|
|
4
|
-
import type { GlobalTheme, GlobalThemeOverrides, GlobalComponentConfig, GlobalIconConfig } from './interface';
|
|
5
|
-
import type { ConfigProviderInjection, RtlProp, Breakpoints } from './internal-interface';
|
|
6
4
|
import { NDateLocale } from '../../locales';
|
|
7
|
-
|
|
5
|
+
import type { GlobalTheme, GlobalThemeOverrides, GlobalComponentConfig, GlobalIconConfig } from './interface';
|
|
6
|
+
import type { RtlProp, Breakpoints } from './internal-interface';
|
|
8
7
|
export declare const configProviderProps: {
|
|
9
8
|
readonly abstract: BooleanConstructor;
|
|
10
9
|
readonly bordered: {
|
|
@@ -133,6 +132,10 @@ export declare const configProviderProps: {
|
|
|
133
132
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
134
133
|
readonly icons: PropType<GlobalIconConfig>;
|
|
135
134
|
readonly breakpoints: PropType<Breakpoints>;
|
|
135
|
+
readonly disableInlineTheme: {
|
|
136
|
+
readonly type: BooleanConstructor;
|
|
137
|
+
readonly default: undefined;
|
|
138
|
+
};
|
|
136
139
|
readonly as: {
|
|
137
140
|
readonly type: PropType<string | undefined>;
|
|
138
141
|
readonly validator: () => boolean;
|
|
@@ -268,6 +271,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
271
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
269
272
|
readonly icons: PropType<GlobalIconConfig>;
|
|
270
273
|
readonly breakpoints: PropType<Breakpoints>;
|
|
274
|
+
readonly disableInlineTheme: {
|
|
275
|
+
readonly type: BooleanConstructor;
|
|
276
|
+
readonly default: undefined;
|
|
277
|
+
};
|
|
271
278
|
readonly as: {
|
|
272
279
|
readonly type: PropType<string | undefined>;
|
|
273
280
|
readonly validator: () => boolean;
|
|
@@ -407,6 +414,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
407
414
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
408
415
|
readonly icons: PropType<GlobalIconConfig>;
|
|
409
416
|
readonly breakpoints: PropType<Breakpoints>;
|
|
417
|
+
readonly disableInlineTheme: {
|
|
418
|
+
readonly type: BooleanConstructor;
|
|
419
|
+
readonly default: undefined;
|
|
420
|
+
};
|
|
410
421
|
readonly as: {
|
|
411
422
|
readonly type: PropType<string | undefined>;
|
|
412
423
|
readonly validator: () => boolean;
|
|
@@ -417,5 +428,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
417
428
|
tag: string;
|
|
418
429
|
as: string | undefined;
|
|
419
430
|
bordered: boolean | undefined;
|
|
431
|
+
disableInlineTheme: boolean;
|
|
420
432
|
}>;
|
|
421
433
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { h, inject, computed, defineComponent, provide, markRaw } from 'vue';
|
|
2
2
|
import { useMemo } from 'vooks';
|
|
3
3
|
import { merge } from 'lodash-es';
|
|
4
|
-
import {
|
|
4
|
+
import { hash } from 'css-render';
|
|
5
|
+
import { warn } from '../../_utils';
|
|
5
6
|
import { defaultClsPrefix } from '../../_mixins';
|
|
6
|
-
|
|
7
|
+
import { configProviderInjectionKey } from './context';
|
|
7
8
|
export const configProviderProps = {
|
|
8
9
|
abstract: Boolean,
|
|
9
10
|
bordered: {
|
|
@@ -25,6 +26,10 @@ export const configProviderProps = {
|
|
|
25
26
|
componentOptions: Object,
|
|
26
27
|
icons: Object,
|
|
27
28
|
breakpoints: Object,
|
|
29
|
+
disableInlineTheme: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: undefined
|
|
32
|
+
},
|
|
28
33
|
// deprecated
|
|
29
34
|
as: {
|
|
30
35
|
type: String,
|
|
@@ -115,7 +120,27 @@ export default defineComponent({
|
|
|
115
120
|
const mergedBreakpointsRef = computed(() => {
|
|
116
121
|
return props.breakpoints || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBreakpointsRef.value);
|
|
117
122
|
});
|
|
123
|
+
const disableInlineTheme = props.disableInlineTheme || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.disableInlineTheme);
|
|
124
|
+
const mergedThemeHashRef = computed(() => {
|
|
125
|
+
const { value: theme } = mergedThemeRef;
|
|
126
|
+
const { value: mergedThemeOverrides } = mergedThemeOverridesRef;
|
|
127
|
+
const hasThemeOverrides = mergedThemeOverrides && Object.keys(mergedThemeOverrides).length !== 0;
|
|
128
|
+
const themeName = theme === null || theme === void 0 ? void 0 : theme.name;
|
|
129
|
+
if (themeName) {
|
|
130
|
+
if (hasThemeOverrides) {
|
|
131
|
+
return `${themeName}-${hash(JSON.stringify(mergedThemeOverridesRef.value))}`;
|
|
132
|
+
}
|
|
133
|
+
return themeName;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
if (hasThemeOverrides) {
|
|
137
|
+
return hash(JSON.stringify(mergedThemeOverridesRef.value));
|
|
138
|
+
}
|
|
139
|
+
return '';
|
|
140
|
+
}
|
|
141
|
+
});
|
|
118
142
|
provide(configProviderInjectionKey, {
|
|
143
|
+
mergedThemeHashRef,
|
|
119
144
|
mergedBreakpointsRef,
|
|
120
145
|
mergedRtlRef,
|
|
121
146
|
mergedIconsRef,
|
|
@@ -144,7 +169,8 @@ export default defineComponent({
|
|
|
144
169
|
return hljs === undefined ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedHljsRef.value : hljs;
|
|
145
170
|
}),
|
|
146
171
|
mergedThemeRef,
|
|
147
|
-
mergedThemeOverridesRef
|
|
172
|
+
mergedThemeOverridesRef,
|
|
173
|
+
disableInlineTheme: disableInlineTheme || false
|
|
148
174
|
});
|
|
149
175
|
return {
|
|
150
176
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import type { ExtractThemeOverrides } from '../../_mixins/use-theme';
|
|
3
3
|
import type { GlobalThemeWithoutCommon } from './internal-interface';
|
|
4
|
-
export { ThemeCommonVars };
|
|
4
|
+
export type { ThemeCommonVars };
|
|
5
5
|
export interface CustomThemeCommonVars {
|
|
6
6
|
}
|
|
7
7
|
export interface GlobalTheme extends GlobalThemeWithoutCommon {
|
|
8
|
+
name: string;
|
|
8
9
|
common?: ThemeCommonVars;
|
|
9
10
|
}
|
|
10
11
|
export declare type GlobalThemeOverrides = {
|
|
@@ -31,6 +31,7 @@ import type { EmptyTheme } from '../../empty/styles';
|
|
|
31
31
|
import type { FormTheme } from '../../form/styles';
|
|
32
32
|
import type { GradientTextTheme } from '../../gradient-text/styles';
|
|
33
33
|
import type { IconTheme } from '../../icon/styles';
|
|
34
|
+
import type { IconWrapperTheme } from '../../icon-wrapper/styles';
|
|
34
35
|
import type { ImageTheme } from '../../image/styles';
|
|
35
36
|
import type { InputTheme } from '../../input/styles';
|
|
36
37
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
@@ -119,6 +120,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
119
120
|
Form?: FormTheme;
|
|
120
121
|
GradientText?: GradientTextTheme;
|
|
121
122
|
Icon?: IconTheme;
|
|
123
|
+
IconWrapper?: IconWrapperTheme;
|
|
122
124
|
Image?: ImageTheme;
|
|
123
125
|
Input?: InputTheme;
|
|
124
126
|
InputNumber?: InputNumberTheme;
|
|
@@ -226,4 +228,6 @@ export interface ConfigProviderInjection {
|
|
|
226
228
|
mergedThemeRef: Ref<GlobalTheme | undefined>;
|
|
227
229
|
mergedThemeOverridesRef: Ref<GlobalThemeOverrides | undefined>;
|
|
228
230
|
mergedRtlRef: Ref<RtlEnabledState | undefined>;
|
|
231
|
+
mergedThemeHashRef: Ref<string>;
|
|
232
|
+
disableInlineTheme: boolean;
|
|
229
233
|
}
|
|
@@ -6686,8 +6686,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6686
6686
|
size: "small" | "medium" | "large";
|
|
6687
6687
|
tableLayout: "fixed" | "auto";
|
|
6688
6688
|
columns: TableColumns<any>;
|
|
6689
|
-
loading: boolean;
|
|
6690
6689
|
bordered: boolean | undefined;
|
|
6690
|
+
loading: boolean;
|
|
6691
6691
|
virtualScroll: boolean;
|
|
6692
6692
|
remote: boolean;
|
|
6693
6693
|
pagination: false | PaginationProps;
|
|
@@ -92,7 +92,7 @@ export default defineComponent({
|
|
|
92
92
|
return bottomBordered;
|
|
93
93
|
return true;
|
|
94
94
|
});
|
|
95
|
-
const themeRef = useTheme('DataTable', '
|
|
95
|
+
const themeRef = useTheme('DataTable', '-data-table', style, dataTableLight, props, mergedClsPrefixRef);
|
|
96
96
|
const bodyWidthRef = ref(null);
|
|
97
97
|
const scrollPartRef = ref('body');
|
|
98
98
|
const mainTableInstRef = ref(null);
|
|
@@ -4,8 +4,8 @@ import { EllipsisProps } from '../../ellipsis/src/Ellipsis';
|
|
|
4
4
|
import { NLocale } from '../../locales';
|
|
5
5
|
import { MergedTheme } from '../../_mixins';
|
|
6
6
|
import { DataTableTheme } from '../styles';
|
|
7
|
-
import { RowItem, ColItem } from './use-group-header';
|
|
8
|
-
import { DataTableSelectionOption } from './TableParts/SelectionMenu';
|
|
7
|
+
import type { RowItem, ColItem } from './use-group-header';
|
|
8
|
+
import type { DataTableSelectionOption } from './TableParts/SelectionMenu';
|
|
9
9
|
export declare type FilterOptionValue = string | number;
|
|
10
10
|
export declare type ColumnKey = string | number;
|
|
11
11
|
export declare type RowKey = string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { DataTableSetupProps } from './DataTable';
|
|
3
|
-
import { RowKey, TableSelectionColumn, InternalRowData, TmNode } from './interface';
|
|
2
|
+
import type { DataTableSetupProps } from './DataTable';
|
|
3
|
+
import type { RowKey, TableSelectionColumn, InternalRowData, TmNode } from './interface';
|
|
4
4
|
import { TreeMate } from 'treemate';
|
|
5
5
|
export declare function useCheck(props: DataTableSetupProps, data: {
|
|
6
6
|
selectionColumnRef: ComputedRef<TableSelectionColumn | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComputedRef } from 'vue';
|
|
2
|
-
import { DataTableSetupProps } from './DataTable';
|
|
2
|
+
import type { DataTableSetupProps } from './DataTable';
|
|
3
3
|
import type { TableExpandColumn, TableSelectionColumn, TableColumn, TableBaseColumn } from './interface';
|
|
4
4
|
export interface RowItem {
|
|
5
5
|
colSpan: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { DataTableSetupProps } from './DataTable';
|
|
2
|
+
import type { DataTableSetupProps } from './DataTable';
|
|
3
3
|
import type { ColumnKey, MainTableRef, TableColumn } from './interface';
|
|
4
4
|
export declare function useScroll(props: DataTableSetupProps, { mainTableInstRef, mergedCurrentPageRef, bodyWidthRef, scrollPartRef }: {
|
|
5
5
|
scrollPartRef: Ref<'head' | 'body'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { beforeNextFrameOnce } from 'seemly';
|
|
2
2
|
import { computed, watch, ref } from 'vue';
|
|
3
3
|
import { formatLength } from '../../_utils';
|
|
4
|
-
import {
|
|
4
|
+
import { getNumberColWidth, getColKey } from './utils';
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
6
6
|
export function useScroll(props, { mainTableInstRef, mergedCurrentPageRef, bodyWidthRef, scrollPartRef }) {
|
|
7
7
|
let scrollLeft = 0;
|
|
@@ -30,7 +30,7 @@ export function useScroll(props, { mainTableInstRef, mergedCurrentPageRef, bodyW
|
|
|
30
30
|
positionInfo.end = left;
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
left +=
|
|
33
|
+
left += getNumberColWidth(col) || 0;
|
|
34
34
|
positionInfo.end = left;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -51,7 +51,7 @@ export function useScroll(props, { mainTableInstRef, mergedCurrentPageRef, bodyW
|
|
|
51
51
|
positionInfo.end = right;
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
|
-
right +=
|
|
54
|
+
right += getNumberColWidth(col) || 0;
|
|
55
55
|
positionInfo.end = right;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { ColumnKey, InternalRowData, SortOrder, SortState, TmNode, TableBaseColumn, TableExpandColumn, TableSelectionColumn, CompareFn } from './interface';
|
|
2
|
+
import type { ColumnKey, InternalRowData, SortOrder, SortState, TmNode, TableBaseColumn, TableExpandColumn, TableSelectionColumn, CompareFn } from './interface';
|
|
3
3
|
import type { DataTableSetupProps } from './DataTable';
|
|
4
4
|
export declare function useSorter(props: DataTableSetupProps, { dataRelatedColsRef, filteredDataRef }: {
|
|
5
5
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import type { DataTableSetupProps } from './DataTable';
|
|
3
|
-
import { ColumnKey, FilterState, TableBaseColumn, TableSelectionColumn, InternalRowData, TmNode, TableExpandColumn, RowKey } from './interface';
|
|
3
|
+
import type { ColumnKey, FilterState, TableBaseColumn, TableSelectionColumn, InternalRowData, TmNode, TableExpandColumn, RowKey } from './interface';
|
|
4
4
|
import { PaginationProps } from '../../pagination/src/Pagination';
|
|
5
5
|
export declare function useTableData(props: DataTableSetupProps, { dataRelatedColsRef }: {
|
|
6
6
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
@@ -2,7 +2,8 @@ import { CSSProperties } from 'vue';
|
|
|
2
2
|
import type { SortOrder, TableBaseColumn, InternalRowData, SortOrderFlag, SortState, CreateRowClassName, TableSelectionColumn, TableColumn, TableExpandColumn } from './interface';
|
|
3
3
|
export declare const selectionColWidth = 40;
|
|
4
4
|
export declare const expandColWidth = 40;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function getNumberColWidth(col: TableColumn): number | undefined;
|
|
6
|
+
export declare function getStringColWidth(col: TableColumn): string | undefined;
|
|
6
7
|
export declare function getColKey(col: TableColumn): string | number;
|
|
7
8
|
export declare function createShallowClonedObject<T>(object: T): T;
|
|
8
9
|
export declare function getFlagOfOrder(order: SortOrder): SortOrderFlag;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { depx
|
|
1
|
+
import { depx } from 'seemly';
|
|
2
|
+
import { formatLength } from '../../_utils';
|
|
2
3
|
export const selectionColWidth = 40;
|
|
3
4
|
export const expandColWidth = 40;
|
|
4
|
-
export function
|
|
5
|
+
export function getNumberColWidth(col) {
|
|
5
6
|
if (col.type === 'selection')
|
|
6
7
|
return selectionColWidth;
|
|
7
8
|
if (col.type === 'expand')
|
|
@@ -13,6 +14,15 @@ export function getColWidth(col) {
|
|
|
13
14
|
}
|
|
14
15
|
return col.width;
|
|
15
16
|
}
|
|
17
|
+
export function getStringColWidth(col) {
|
|
18
|
+
if (col.type === 'selection')
|
|
19
|
+
return formatLength(selectionColWidth);
|
|
20
|
+
if (col.type === 'expand')
|
|
21
|
+
return formatLength(expandColWidth);
|
|
22
|
+
if ('children' in col)
|
|
23
|
+
return undefined;
|
|
24
|
+
return formatLength(col.width);
|
|
25
|
+
}
|
|
16
26
|
export function getColKey(col) {
|
|
17
27
|
if (col.type === 'selection')
|
|
18
28
|
return '__n_selection__';
|
|
@@ -36,7 +46,7 @@ export function getFlagOfOrder(order) {
|
|
|
36
46
|
return 0;
|
|
37
47
|
}
|
|
38
48
|
export function createCustomWidthStyle(column) {
|
|
39
|
-
const width =
|
|
49
|
+
const width = getStringColWidth(column);
|
|
40
50
|
return {
|
|
41
51
|
width,
|
|
42
52
|
minWidth: width
|
|
@@ -78,6 +78,7 @@ declare const datePickerProps: {
|
|
|
78
78
|
panelTextColor: string;
|
|
79
79
|
arrowColor: string;
|
|
80
80
|
calendarTitleTextColor: string;
|
|
81
|
+
calendarTitleColorHover: string;
|
|
81
82
|
calendarDaysTextColor: string;
|
|
82
83
|
panelHeaderDividerColor: string;
|
|
83
84
|
calendarDaysDividerColor: string;
|
|
@@ -689,6 +690,7 @@ declare const datePickerProps: {
|
|
|
689
690
|
panelTextColor: string;
|
|
690
691
|
arrowColor: string;
|
|
691
692
|
calendarTitleTextColor: string;
|
|
693
|
+
calendarTitleColorHover: string;
|
|
692
694
|
calendarDaysTextColor: string;
|
|
693
695
|
panelHeaderDividerColor: string;
|
|
694
696
|
calendarDaysDividerColor: string;
|
|
@@ -1300,6 +1302,7 @@ declare const datePickerProps: {
|
|
|
1300
1302
|
panelTextColor: string;
|
|
1301
1303
|
arrowColor: string;
|
|
1302
1304
|
calendarTitleTextColor: string;
|
|
1305
|
+
calendarTitleColorHover: string;
|
|
1303
1306
|
calendarDaysTextColor: string;
|
|
1304
1307
|
panelHeaderDividerColor: string;
|
|
1305
1308
|
calendarDaysDividerColor: string;
|
|
@@ -1972,6 +1975,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1972
1975
|
panelTextColor: string;
|
|
1973
1976
|
arrowColor: string;
|
|
1974
1977
|
calendarTitleTextColor: string;
|
|
1978
|
+
calendarTitleColorHover: string;
|
|
1975
1979
|
calendarDaysTextColor: string;
|
|
1976
1980
|
panelHeaderDividerColor: string;
|
|
1977
1981
|
calendarDaysDividerColor: string;
|
|
@@ -2583,6 +2587,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2583
2587
|
panelTextColor: string;
|
|
2584
2588
|
arrowColor: string;
|
|
2585
2589
|
calendarTitleTextColor: string;
|
|
2590
|
+
calendarTitleColorHover: string;
|
|
2586
2591
|
calendarDaysTextColor: string;
|
|
2587
2592
|
panelHeaderDividerColor: string;
|
|
2588
2593
|
calendarDaysDividerColor: string;
|
|
@@ -3194,6 +3199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3194
3199
|
panelTextColor: string;
|
|
3195
3200
|
arrowColor: string;
|
|
3196
3201
|
calendarTitleTextColor: string;
|
|
3202
|
+
calendarTitleColorHover: string;
|
|
3197
3203
|
calendarDaysTextColor: string;
|
|
3198
3204
|
panelHeaderDividerColor: string;
|
|
3199
3205
|
calendarDaysDividerColor: string;
|
|
@@ -3789,6 +3795,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3789
3795
|
}, any>;
|
|
3790
3796
|
}>>>;
|
|
3791
3797
|
}, {
|
|
3798
|
+
mergedStatus: import("vue").ComputedRef<import("../../form/src/interface").FormValidationStatus | undefined>;
|
|
3792
3799
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
3793
3800
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
3794
3801
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -3974,6 +3981,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3974
3981
|
panelTextColor: string;
|
|
3975
3982
|
arrowColor: string;
|
|
3976
3983
|
calendarTitleTextColor: string;
|
|
3984
|
+
calendarTitleColorHover: string;
|
|
3977
3985
|
calendarDaysTextColor: string;
|
|
3978
3986
|
panelHeaderDividerColor: string;
|
|
3979
3987
|
calendarDaysDividerColor: string;
|
|
@@ -4875,6 +4883,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4875
4883
|
'--n-panel-header-divider-color': string;
|
|
4876
4884
|
'--n-calendar-left-padding': string;
|
|
4877
4885
|
'--n-calendar-right-padding': string;
|
|
4886
|
+
'--n-calendar-title-color-hover': string;
|
|
4878
4887
|
'--n-calendar-title-height': string;
|
|
4879
4888
|
'--n-calendar-title-padding': string;
|
|
4880
4889
|
'--n-calendar-title-font-size': string;
|
|
@@ -4986,6 +4995,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4986
4995
|
panelTextColor: string;
|
|
4987
4996
|
arrowColor: string;
|
|
4988
4997
|
calendarTitleTextColor: string;
|
|
4998
|
+
calendarTitleColorHover: string;
|
|
4989
4999
|
calendarDaysTextColor: string;
|
|
4990
5000
|
panelHeaderDividerColor: string;
|
|
4991
5001
|
calendarDaysDividerColor: string;
|
|
@@ -5597,6 +5607,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5597
5607
|
panelTextColor: string;
|
|
5598
5608
|
arrowColor: string;
|
|
5599
5609
|
calendarTitleTextColor: string;
|
|
5610
|
+
calendarTitleColorHover: string;
|
|
5600
5611
|
calendarDaysTextColor: string;
|
|
5601
5612
|
panelHeaderDividerColor: string;
|
|
5602
5613
|
calendarDaysDividerColor: string;
|
|
@@ -6208,6 +6219,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6208
6219
|
panelTextColor: string;
|
|
6209
6220
|
arrowColor: string;
|
|
6210
6221
|
calendarTitleTextColor: string;
|
|
6222
|
+
calendarTitleColorHover: string;
|
|
6211
6223
|
calendarDaysTextColor: string;
|
|
6212
6224
|
panelHeaderDividerColor: string;
|
|
6213
6225
|
calendarDaysDividerColor: string;
|
|
@@ -6807,8 +6819,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6807
6819
|
show: boolean | undefined;
|
|
6808
6820
|
disabled: boolean | undefined;
|
|
6809
6821
|
to: string | boolean | HTMLElement;
|
|
6810
|
-
placement: FollowerPlacement;
|
|
6811
6822
|
bordered: boolean | undefined;
|
|
6823
|
+
placement: FollowerPlacement;
|
|
6812
6824
|
clearable: boolean;
|
|
6813
6825
|
updateValueOnClose: boolean;
|
|
6814
6826
|
inputReadonly: boolean;
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
51
51
|
}
|
|
52
52
|
const { localeRef, dateLocaleRef } = useLocale('DatePicker');
|
|
53
53
|
const formItem = useFormItem(props);
|
|
54
|
-
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
54
|
+
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef } = formItem;
|
|
55
55
|
const { NConfigProvider, mergedClsPrefixRef, mergedBorderedRef, namespaceRef } = useConfig(props);
|
|
56
56
|
const panelInstRef = ref(null);
|
|
57
57
|
const triggerElRef = ref(null);
|
|
@@ -120,7 +120,7 @@ export default defineComponent({
|
|
|
120
120
|
const singleInputValueRef = ref('');
|
|
121
121
|
const rangeStartInputValueRef = ref('');
|
|
122
122
|
const rangeEndInputValueRef = ref('');
|
|
123
|
-
const themeRef = useTheme('DatePicker', '
|
|
123
|
+
const themeRef = useTheme('DatePicker', '-date-picker', style, datePickerLight, props, mergedClsPrefixRef);
|
|
124
124
|
const timePickerSizeRef = computed(() => {
|
|
125
125
|
var _a, _b;
|
|
126
126
|
return (((_b = (_a = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DatePicker) === null || _b === void 0 ? void 0 : _b.timePickerSize) || 'small');
|
|
@@ -486,7 +486,7 @@ export default defineComponent({
|
|
|
486
486
|
(_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
return Object.assign(Object.assign({}, exposedMethods), { mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, pendingValue: pendingValueRef, panelInstRef,
|
|
489
|
+
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, pendingValue: pendingValueRef, panelInstRef,
|
|
490
490
|
triggerElRef,
|
|
491
491
|
inputInstRef, isMounted: useIsMounted(), displayTime: singleInputValueRef, displayStartTime: rangeStartInputValueRef, displayEndTime: rangeEndInputValueRef, mergedShow: mergedShowRef, adjustedTo: useAdjustedTo(props), isRange: isRangeRef, localizedStartPlaceholder: localizedStartPlaceholderRef, localizedEndPlaceholder: localizedEndPlaceholderRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, localizedPlacehoder: localizedPlacehoderRef, isValueInvalid: uniVaidation.isValueInvalidRef, isStartValueInvalid: dualValidation.isStartValueInvalidRef, isEndValueInvalid: dualValidation.isEndValueInvalidRef, handleClickOutside,
|
|
492
492
|
handleKeyDown,
|
|
@@ -510,7 +510,7 @@ export default defineComponent({
|
|
|
510
510
|
};
|
|
511
511
|
}), cssVars: computed(() => {
|
|
512
512
|
const { type } = props;
|
|
513
|
-
const { common: { cubicBezierEaseInOut }, self: { calendarTitleFontSize, calendarDaysFontSize, itemFontSize, itemTextColor, itemColorDisabled, itemColorIncluded, itemColorHover, itemColorActive, itemBorderRadius, itemTextColorDisabled, itemTextColorActive, panelColor, panelTextColor, arrowColor, calendarTitleTextColor, panelActionDividerColor, panelHeaderDividerColor, calendarDaysDividerColor, panelBoxShadow, panelBorderRadius, calendarTitleFontWeight, panelExtraFooterPadding, panelActionPadding, itemSize, itemCellWidth, itemCellHeight, scrollItemWidth, scrollItemHeight, calendarTitlePadding, calendarTitleHeight, calendarDaysHeight, calendarDaysTextColor, arrowSize, panelHeaderPadding, calendarDividerColor, calendarTitleGridTempateColumns, iconColor, iconColorDisabled, scrollItemBorderRadius, [createKey('calendarLeftPadding', type)]: calendarLeftPadding, [createKey('calendarRightPadding', type)]: calendarRightPadding } } = themeRef.value;
|
|
513
|
+
const { common: { cubicBezierEaseInOut }, self: { calendarTitleFontSize, calendarDaysFontSize, itemFontSize, itemTextColor, itemColorDisabled, itemColorIncluded, itemColorHover, itemColorActive, itemBorderRadius, itemTextColorDisabled, itemTextColorActive, panelColor, panelTextColor, arrowColor, calendarTitleTextColor, panelActionDividerColor, panelHeaderDividerColor, calendarDaysDividerColor, panelBoxShadow, panelBorderRadius, calendarTitleFontWeight, panelExtraFooterPadding, panelActionPadding, itemSize, itemCellWidth, itemCellHeight, scrollItemWidth, scrollItemHeight, calendarTitlePadding, calendarTitleHeight, calendarDaysHeight, calendarDaysTextColor, arrowSize, panelHeaderPadding, calendarDividerColor, calendarTitleGridTempateColumns, iconColor, iconColorDisabled, scrollItemBorderRadius, calendarTitleColorHover, [createKey('calendarLeftPadding', type)]: calendarLeftPadding, [createKey('calendarRightPadding', type)]: calendarRightPadding } } = themeRef.value;
|
|
514
514
|
return {
|
|
515
515
|
'--n-bezier': cubicBezierEaseInOut,
|
|
516
516
|
'--n-panel-border-radius': panelBorderRadius,
|
|
@@ -523,6 +523,7 @@ export default defineComponent({
|
|
|
523
523
|
// panel calendar
|
|
524
524
|
'--n-calendar-left-padding': calendarLeftPadding,
|
|
525
525
|
'--n-calendar-right-padding': calendarRightPadding,
|
|
526
|
+
'--n-calendar-title-color-hover': calendarTitleColorHover,
|
|
526
527
|
'--n-calendar-title-height': calendarTitleHeight,
|
|
527
528
|
'--n-calendar-title-padding': calendarTitlePadding,
|
|
528
529
|
'--n-calendar-title-font-size': calendarTitleFontSize,
|
|
@@ -603,7 +604,7 @@ export default defineComponent({
|
|
|
603
604
|
h(VBinder, null, {
|
|
604
605
|
default: () => [
|
|
605
606
|
h(VTarget, null, {
|
|
606
|
-
default: () => this.isRange ? (h(NInput, Object.assign({ ref: "inputInstRef", value: [this.displayStartTime, this.displayEndTime], placeholder: [
|
|
607
|
+
default: () => this.isRange ? (h(NInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: [this.displayStartTime, this.displayEndTime], placeholder: [
|
|
607
608
|
this.localizedStartPlaceholder,
|
|
608
609
|
this.localizedEndPlaceholder
|
|
609
610
|
], textDecoration: [
|
|
@@ -612,13 +613,13 @@ export default defineComponent({
|
|
|
612
613
|
], pair: true, onUpdateValue: this.handleRangeUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
|
|
613
614
|
separator: () => this.separator === undefined ? (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, { default: () => h(ToIcon, null) })) : (this.separator),
|
|
614
615
|
[clearable ? 'clear' : 'suffix']: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, { default: () => h(DateIcon, null) }))
|
|
615
|
-
})) : (h(NInput, Object.assign({ ref: "inputInstRef", value: this.displayTime, placeholder: this.localizedPlacehoder, textDecoration: this.isValueInvalid && !this.isRange
|
|
616
|
+
})) : (h(NInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: this.displayTime, placeholder: this.localizedPlacehoder, textDecoration: this.isValueInvalid && !this.isRange
|
|
616
617
|
? 'line-through'
|
|
617
618
|
: '', onUpdateValue: this.handleSingleUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
|
|
618
619
|
[clearable ? 'clear' : 'suffix']: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, { default: () => h(DateIcon, null) }))
|
|
619
620
|
}))
|
|
620
621
|
}),
|
|
621
|
-
h(VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement:
|
|
622
|
+
h(VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement: this.placement }, {
|
|
622
623
|
default: () => (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
623
624
|
default: () => this.mergedShow
|
|
624
625
|
? withDirectives(this.type === 'datetime' ? (h(DatetimePanel, Object.assign({}, commonPanelProps))) : this.type === 'daterange' ? (h(DaterangePanel, Object.assign({}, commonPanelProps))) : this.type === 'datetimerange' ? (h(DatetimerangePanel, Object.assign({}, commonPanelProps))) : this.type === 'month' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "month", key: "month" }))) : this.type === 'year' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "year", key: "year" }))) : this.type === 'quarter' ? (h(MonthPanel, Object.assign({}, commonPanelProps, { type: "quarter", key: "quarter" }))) : (h(DatePanel, Object.assign({}, commonPanelProps))), [[clickoutside, this.handleClickOutside]])
|
|
@@ -192,6 +192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
192
|
panelTextColor: string;
|
|
193
193
|
arrowColor: string;
|
|
194
194
|
calendarTitleTextColor: string;
|
|
195
|
+
calendarTitleColorHover: string;
|
|
195
196
|
calendarDaysTextColor: string;
|
|
196
197
|
panelHeaderDividerColor: string;
|
|
197
198
|
calendarDaysDividerColor: string;
|
|
@@ -178,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
panelTextColor: string;
|
|
179
179
|
arrowColor: string;
|
|
180
180
|
calendarTitleTextColor: string;
|
|
181
|
+
calendarTitleColorHover: string;
|
|
181
182
|
calendarDaysTextColor: string;
|
|
182
183
|
panelHeaderDividerColor: string;
|
|
183
184
|
calendarDaysDividerColor: string;
|
|
@@ -186,6 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
186
|
panelTextColor: string;
|
|
187
187
|
arrowColor: string;
|
|
188
188
|
calendarTitleTextColor: string;
|
|
189
|
+
calendarTitleColorHover: string;
|
|
189
190
|
calendarDaysTextColor: string;
|
|
190
191
|
panelHeaderDividerColor: string;
|
|
191
192
|
calendarDaysDividerColor: string;
|
|
@@ -178,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
panelTextColor: string;
|
|
179
179
|
arrowColor: string;
|
|
180
180
|
calendarTitleTextColor: string;
|
|
181
|
+
calendarTitleColorHover: string;
|
|
181
182
|
calendarDaysTextColor: string;
|
|
182
183
|
panelHeaderDividerColor: string;
|
|
183
184
|
calendarDaysDividerColor: string;
|
|
@@ -194,6 +194,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
194
|
panelTextColor: string;
|
|
195
195
|
arrowColor: string;
|
|
196
196
|
calendarTitleTextColor: string;
|
|
197
|
+
calendarTitleColorHover: string;
|
|
197
198
|
calendarDaysTextColor: string;
|
|
198
199
|
panelHeaderDividerColor: string;
|
|
199
200
|
calendarDaysDividerColor: string;
|
|
@@ -271,6 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
271
|
panelTextColor: string;
|
|
272
272
|
arrowColor: string;
|
|
273
273
|
calendarTitleTextColor: string;
|
|
274
|
+
calendarTitleColorHover: string;
|
|
274
275
|
calendarDaysTextColor: string;
|
|
275
276
|
panelHeaderDividerColor: string;
|
|
276
277
|
calendarDaysDividerColor: string;
|
|
@@ -1449,6 +1450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1449
1450
|
panelTextColor: string;
|
|
1450
1451
|
arrowColor: string;
|
|
1451
1452
|
calendarTitleTextColor: string;
|
|
1453
|
+
calendarTitleColorHover: string;
|
|
1452
1454
|
calendarDaysTextColor: string;
|
|
1453
1455
|
panelHeaderDividerColor: string;
|
|
1454
1456
|
calendarDaysDividerColor: string;
|
|
@@ -53,9 +53,13 @@ export default defineComponent({
|
|
|
53
53
|
h(VBinder, null, {
|
|
54
54
|
default: () => [
|
|
55
55
|
h(VTarget, null, {
|
|
56
|
-
default: () => (h("div", { class:
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
default: () => (h("div", { class: [
|
|
57
|
+
`${mergedClsPrefix}-date-panel-month__text`,
|
|
58
|
+
this.show &&
|
|
59
|
+
`${mergedClsPrefix}-date-panel-month__text--active`
|
|
60
|
+
], onClick: this.handleHeaderClick }, this.monthBeforeYear
|
|
61
|
+
? [this.calendarMonth, ' ', this.calendarYear]
|
|
62
|
+
: [this.calendarYear, ' ', this.calendarMonth]))
|
|
59
63
|
}),
|
|
60
64
|
h(VFollower, { show: this.show, teleportDisabled: true }, {
|
|
61
65
|
default: () => (h(Transition, { name: "fade-in-scale-up-transition", appear: true }, {
|
|
@@ -190,6 +190,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
190
190
|
panelTextColor: string;
|
|
191
191
|
arrowColor: string;
|
|
192
192
|
calendarTitleTextColor: string;
|
|
193
|
+
calendarTitleColorHover: string;
|
|
193
194
|
calendarDaysTextColor: string;
|
|
194
195
|
panelHeaderDividerColor: string;
|
|
195
196
|
calendarDaysDividerColor: string;
|
|
@@ -182,6 +182,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
182
182
|
panelTextColor: string;
|
|
183
183
|
arrowColor: string;
|
|
184
184
|
calendarTitleTextColor: string;
|
|
185
|
+
calendarTitleColorHover: string;
|
|
185
186
|
calendarDaysTextColor: string;
|
|
186
187
|
panelHeaderDividerColor: string;
|
|
187
188
|
calendarDaysDividerColor: string;
|
|
@@ -144,6 +144,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
144
144
|
panelTextColor: string;
|
|
145
145
|
arrowColor: string;
|
|
146
146
|
calendarTitleTextColor: string;
|
|
147
|
+
calendarTitleColorHover: string;
|
|
147
148
|
calendarDaysTextColor: string;
|
|
148
149
|
panelHeaderDividerColor: string;
|
|
149
150
|
calendarDaysDividerColor: string;
|