naive-ui 2.24.6 → 2.25.2
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 +11 -6
- package/es/_internal/select-menu/src/SelectMenu.js +49 -24
- package/es/_internal/selection/src/Selection.d.ts +42 -29
- package/es/_internal/selection/src/Selection.js +100 -93
- package/es/_internal/selection/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/styles/index.cssr.js +16 -31
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/es/_internal/wave/src/Wave.js +1 -1
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +11 -2
- package/es/_mixins/use-css-vars-class.js +49 -18
- 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/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/cssr/index.d.ts +1 -2
- package/es/_utils/cssr/index.js +1 -14
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.js +2 -2
- 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 +17 -1
- package/es/affix/src/Affix.js +1 -1
- package/es/alert/src/Alert.js +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +16 -1
- 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.js +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/button/src/Button.d.ts +4 -2
- package/es/button/src/Button.js +270 -245
- package/es/button/src/ButtonGroup.js +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/src/Card.d.ts +8 -2
- package/es/card/src/Card.js +44 -40
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- 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 +36 -34
- package/es/cascader/src/Cascader.js +6 -6
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +12 -12
- 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 +24 -17
- package/es/color-picker/src/ColorPicker.js +7 -4
- package/es/color-picker/src/ColorPickerTrigger.js +1 -1
- 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 +1 -0
- 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 +33 -33
- package/es/data-table/src/DataTable.js +1 -1
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/TableParts/Body.d.ts +6 -6
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- 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/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +2 -1
- package/es/date-picker/src/DatePicker.js +6 -6
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- 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 +27 -60
- package/es/dialog/src/Dialog.js +4 -31
- package/es/dialog/src/DialogEnvironment.d.ts +8 -9
- package/es/dialog/src/DialogEnvironment.js +3 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -5
- 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 +10 -1
- package/es/dynamic-input/src/DynamicInput.js +61 -18
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -16
- 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 +1 -1
- package/es/form/src/FormItem.js +3 -2
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- 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.js +1 -1
- package/es/global-style/src/GlobalStyle.js +1 -1
- 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 +1 -2
- package/es/icon/src/Icon.js +2 -2
- 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 +50 -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/Image.d.ts +1 -1
- package/es/image/src/ImagePreview.js +1 -1
- package/es/input/src/Input.d.ts +6 -1
- 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 +5 -5
- package/es/input-number/src/InputNumber.d.ts +2 -1
- 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/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/jaJP.js +12 -14
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/index.d.ts +6 -0
- package/es/locales/index.js +6 -0
- 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 +16 -1
- package/es/mention/src/Mention.js +7 -3
- package/es/menu/src/Menu.d.ts +3 -5
- 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 +5 -3
- package/es/modal/src/BodyWrapper.js +2 -2
- package/es/modal/src/Modal.d.ts +7 -4
- package/es/modal/src/Modal.js +2 -2
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/presetProps.js +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +1 -2
- 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 +3 -4
- package/es/notification/src/NotificationEnvironment.js +3 -3
- package/es/notification/src/NotificationProvider.d.ts +10 -6
- 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.d.ts +33 -33
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/styles/light.d.ts +3 -3
- 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/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +15 -6
- package/es/progress/src/Progress.js +44 -30
- package/es/progress/src/styles/index.cssr.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.js +1 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/src/Select.d.ts +71 -54
- package/es/select/src/Select.js +82 -47
- package/es/select/src/interface.d.ts +2 -0
- package/es/select/styles/light.d.ts +3 -3
- 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 +3 -1
- package/es/tag/src/Tag.js +61 -41
- package/es/tag/src/styles/index.cssr.js +5 -17
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.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/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/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +46 -44
- package/es/tree-select/src/TreeSelect.js +8 -5
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.js +1 -1
- 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/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 +11 -6
- package/lib/_internal/select-menu/src/SelectMenu.js +47 -22
- package/lib/_internal/selection/src/Selection.d.ts +42 -29
- package/lib/_internal/selection/src/Selection.js +99 -92
- package/lib/_internal/selection/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/lib/_internal/wave/src/Wave.js +1 -1
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +3 -2
- package/lib/_mixins/use-config.js +2 -2
- package/lib/_mixins/use-css-vars-class.d.ts +11 -2
- package/lib/_mixins/use-css-vars-class.js +50 -22
- 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/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/cssr/index.d.ts +1 -2
- package/lib/_utils/cssr/index.js +1 -15
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +6 -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 +21 -2
- package/lib/affix/src/Affix.js +1 -1
- package/lib/alert/src/Alert.js +1 -1
- package/lib/anchor/src/AnchorAdapter.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +16 -1
- 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.js +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/button/src/Button.d.ts +4 -2
- package/lib/button/src/Button.js +268 -243
- package/lib/button/src/ButtonGroup.js +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.js +1 -1
- package/lib/card/src/Card.d.ts +8 -2
- package/lib/card/src/Card.js +43 -39
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- 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 +36 -34
- package/lib/cascader/src/Cascader.js +6 -6
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.js +1 -1
- package/lib/checkbox/src/styles/index.cssr.js +12 -12
- 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 +24 -17
- package/lib/color-picker/src/ColorPicker.js +8 -5
- package/lib/color-picker/src/ColorPickerTrigger.js +2 -2
- 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 +1 -0
- 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 +33 -33
- package/lib/data-table/src/DataTable.js +1 -1
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/TableParts/Body.d.ts +6 -6
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- 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/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +2 -1
- package/lib/date-picker/src/DatePicker.js +6 -6
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- 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 +27 -60
- package/lib/dialog/src/Dialog.js +5 -32
- package/lib/dialog/src/DialogEnvironment.d.ts +8 -9
- package/lib/dialog/src/DialogEnvironment.js +6 -24
- package/lib/dialog/src/DialogProvider.d.ts +3 -5
- 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 +10 -1
- package/lib/dynamic-input/src/DynamicInput.js +59 -16
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -16
- 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 +1 -1
- package/lib/form/src/FormItem.js +5 -4
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- 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.js +4 -4
- package/lib/global-style/src/GlobalStyle.js +2 -2
- 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 +1 -2
- package/lib/icon/src/Icon.js +3 -2
- 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 +56 -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/Image.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +1 -1
- package/lib/input/src/Input.d.ts +6 -1
- 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 +4 -4
- package/lib/input-number/src/InputNumber.d.ts +2 -1
- 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/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/jaJP.js +12 -14
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/index.d.ts +6 -0
- package/lib/locales/index.js +13 -1
- 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 +16 -1
- package/lib/mention/src/Mention.js +7 -3
- package/lib/menu/src/Menu.d.ts +3 -5
- 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 +5 -3
- package/lib/modal/src/BodyWrapper.js +3 -3
- package/lib/modal/src/Modal.d.ts +7 -4
- package/lib/modal/src/Modal.js +3 -3
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/presetProps.js +2 -2
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +1 -2
- 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 +3 -4
- package/lib/notification/src/NotificationEnvironment.js +4 -23
- package/lib/notification/src/NotificationProvider.d.ts +10 -6
- 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.d.ts +33 -33
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/styles/light.d.ts +3 -3
- 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/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +15 -6
- package/lib/progress/src/Progress.js +43 -29
- package/lib/progress/src/styles/index.cssr.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.js +1 -1
- package/lib/select/index.d.ts +2 -0
- package/lib/select/src/Select.d.ts +71 -54
- package/lib/select/src/Select.js +82 -47
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/select/styles/light.d.ts +3 -3
- 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 +3 -1
- package/lib/tag/src/Tag.js +59 -39
- package/lib/tag/src/styles/index.cssr.js +5 -17
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -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/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/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +46 -44
- package/lib/tree-select/src/TreeSelect.js +8 -5
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.js +1 -1
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.js +1 -1
- 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/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +452 -220
|
@@ -43,6 +43,9 @@ const mentionProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
43
43
|
}, placeholder: {
|
|
44
44
|
type: String,
|
|
45
45
|
default: ''
|
|
46
|
+
}, placement: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: 'bottom-start'
|
|
46
49
|
}, size: String, 'onUpdate:value': [Array, Function], renderLabel: Function, onUpdateValue: [Array, Function], onSearch: Function, onSelect: Function, onFocus: Function, onBlur: Function,
|
|
47
50
|
// private
|
|
48
51
|
internalDebug: Boolean });
|
|
@@ -51,7 +54,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
51
54
|
props: mentionProps,
|
|
52
55
|
setup(props) {
|
|
53
56
|
const { namespaceRef, mergedClsPrefixRef, mergedBorderedRef } = (0, _mixins_1.useConfig)(props);
|
|
54
|
-
const themeRef = (0, _mixins_1.useTheme)('Mention', '
|
|
57
|
+
const themeRef = (0, _mixins_1.useTheme)('Mention', '-mention', index_cssr_1.default, styles_1.mentionLight, props, mergedClsPrefixRef);
|
|
55
58
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
56
59
|
const inputInstRef = (0, vue_1.ref)(null);
|
|
57
60
|
const cursorRef = (0, vue_1.ref)(null);
|
|
@@ -284,6 +287,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
284
287
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
285
288
|
mergedBordered: mergedBorderedRef,
|
|
286
289
|
mergedSize: formItem.mergedSizeRef,
|
|
290
|
+
mergedStatus: formItem.mergedStatusRef,
|
|
287
291
|
mergedTheme: themeRef,
|
|
288
292
|
treeMate: treeMateRef,
|
|
289
293
|
selectMenuInstRef,
|
|
@@ -313,7 +317,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
313
317
|
render() {
|
|
314
318
|
const { mergedTheme, mergedClsPrefix, $slots } = this;
|
|
315
319
|
return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-mention` },
|
|
316
|
-
(0, vue_1.h)(input_1.NInput, { themeOverrides: mergedTheme.peerOverrides.Input, theme: mergedTheme.peers.Input, size: this.mergedSize, autosize: this.autosize, type: this.type, ref: "inputInstRef", placeholder: this.placeholder, onMousedown: this.handleInputMouseDown, onUpdateValue: this.handleInputUpdateValue, onKeydown: this.handleInputKeyDown, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, bordered: this.mergedBordered, disabled: this.disabled, value: this.mergedValue }),
|
|
320
|
+
(0, vue_1.h)(input_1.NInput, { status: this.mergedStatus, themeOverrides: mergedTheme.peerOverrides.Input, theme: mergedTheme.peers.Input, size: this.mergedSize, autosize: this.autosize, type: this.type, ref: "inputInstRef", placeholder: this.placeholder, onMousedown: this.handleInputMouseDown, onUpdateValue: this.handleInputUpdateValue, onKeydown: this.handleInputKeyDown, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, bordered: this.mergedBordered, disabled: this.disabled, value: this.mergedValue }),
|
|
317
321
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
318
322
|
default: () => [
|
|
319
323
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
@@ -331,7 +335,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
331
335
|
return (0, vue_1.h)("div", { style: style, ref: "cursorRef" });
|
|
332
336
|
}
|
|
333
337
|
}),
|
|
334
|
-
(0, vue_1.h)(vueuc_1.VFollower, { ref: "followerRef", placement:
|
|
338
|
+
(0, vue_1.h)(vueuc_1.VFollower, { ref: "followerRef", placement: this.placement, show: this.showMenu, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey }, {
|
|
335
339
|
default: () => ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
336
340
|
default: () => {
|
|
337
341
|
const { mergedTheme } = this;
|
package/lib/menu/src/Menu.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes, VNodeChild } from 'vue';
|
|
2
2
|
import { Key } from 'treemate';
|
|
3
3
|
import type { MaybeArray } from '../../_utils';
|
|
4
|
-
import { MenuInjection } from './use-menu-child';
|
|
5
4
|
import { MenuOption, MenuGroupOption, MenuIgnoredOption, MenuMixedOption, OnUpdateValue, OnUpdateKeys } from './interface';
|
|
6
5
|
import { FollowerPlacement } from 'vueuc';
|
|
7
6
|
import { DropdownProps } from '../../dropdown';
|
|
@@ -277,7 +276,6 @@ declare const menuProps: {
|
|
|
277
276
|
};
|
|
278
277
|
export declare type MenuSetupProps = ExtractPropTypes<typeof menuProps>;
|
|
279
278
|
export declare type MenuProps = Partial<MenuSetupProps>;
|
|
280
|
-
export declare const menuInjectionKey: import("vue").InjectionKey<MenuInjection>;
|
|
281
279
|
declare const _default: import("vue").DefineComponent<{
|
|
282
280
|
readonly options: {
|
|
283
281
|
readonly type: PropType<MenuMixedOption[]>;
|
|
@@ -578,7 +576,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
578
576
|
errorColor: string;
|
|
579
577
|
errorColorHover: string;
|
|
580
578
|
errorColorPressed: string;
|
|
581
|
-
errorColorSuppl: string;
|
|
579
|
+
errorColorSuppl: string;
|
|
582
580
|
textColorBase: string;
|
|
583
581
|
textColor1: string;
|
|
584
582
|
textColor2: string;
|
|
@@ -1020,9 +1018,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1020
1018
|
}>>, {
|
|
1021
1019
|
mode: "horizontal" | "vertical";
|
|
1022
1020
|
disabled: boolean;
|
|
1023
|
-
keyField: string;
|
|
1024
|
-
iconSize: number;
|
|
1025
1021
|
options: MenuMixedOption[];
|
|
1022
|
+
iconSize: number;
|
|
1023
|
+
keyField: string;
|
|
1026
1024
|
defaultValue: Key | null;
|
|
1027
1025
|
indent: number;
|
|
1028
1026
|
labelField: string;
|
package/lib/menu/src/Menu.js
CHANGED
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.menuInjectionKey = void 0;
|
|
7
6
|
const vue_1 = require("vue");
|
|
8
7
|
const treemate_1 = require("treemate");
|
|
9
8
|
const vooks_1 = require("vooks");
|
|
@@ -14,6 +13,7 @@ const styles_1 = require("../styles");
|
|
|
14
13
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
15
14
|
const interface_1 = require("../../layout/src/interface");
|
|
16
15
|
const useCheckDeprecated_1 = require("./useCheckDeprecated");
|
|
16
|
+
const context_1 = require("./context");
|
|
17
17
|
const menuProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { options: {
|
|
18
18
|
type: Array,
|
|
19
19
|
default: () => []
|
|
@@ -58,7 +58,6 @@ const menuProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { o
|
|
|
58
58
|
}, dropdownProps: Object, accordion: Boolean,
|
|
59
59
|
// deprecated
|
|
60
60
|
items: Array, onOpenNamesChange: [Function, Array], onSelect: [Function, Array], onExpandedNamesChange: [Function, Array], expandedNames: Array, defaultExpandedNames: Array });
|
|
61
|
-
exports.menuInjectionKey = (0, _utils_1.createInjectionKey)('n-menu');
|
|
62
61
|
exports.default = (0, vue_1.defineComponent)({
|
|
63
62
|
name: 'Menu',
|
|
64
63
|
props: menuProps,
|
|
@@ -67,7 +66,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
67
66
|
(0, useCheckDeprecated_1.useCheckDeprecated)(props);
|
|
68
67
|
}
|
|
69
68
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
70
|
-
const themeRef = (0, _mixins_1.useTheme)('Menu', '
|
|
69
|
+
const themeRef = (0, _mixins_1.useTheme)('Menu', '-menu', index_cssr_1.default, styles_1.menuLight, props, mergedClsPrefixRef);
|
|
71
70
|
const layoutSider = (0, vue_1.inject)(interface_1.layoutSiderInjectionKey, null);
|
|
72
71
|
const mergedCollapsedRef = (0, vue_1.computed)(() => {
|
|
73
72
|
var _a;
|
|
@@ -132,7 +131,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
132
131
|
const activePathRef = (0, vue_1.computed)(() => {
|
|
133
132
|
return treeMateRef.value.getPath(mergedValueRef.value).keyPath;
|
|
134
133
|
});
|
|
135
|
-
(0, vue_1.provide)(
|
|
134
|
+
(0, vue_1.provide)(context_1.menuInjectionKey, {
|
|
136
135
|
props,
|
|
137
136
|
mergedCollapsedRef,
|
|
138
137
|
mergedThemeRef: themeRef,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
|
-
const
|
|
4
|
+
const context_1 = require("./context");
|
|
5
5
|
exports.default = (0, vue_1.defineComponent)({
|
|
6
6
|
name: 'MenuDivider',
|
|
7
7
|
setup() {
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
9
|
-
const NMenu = (0, vue_1.inject)(
|
|
9
|
+
const NMenu = (0, vue_1.inject)(context_1.menuInjectionKey);
|
|
10
10
|
const { mergedClsPrefixRef, isHorizontalRef } = NMenu;
|
|
11
11
|
return () => isHorizontalRef.value ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-menu-divider` }));
|
|
12
12
|
}
|
|
@@ -21,7 +21,7 @@ export declare const menuItemProps: {
|
|
|
21
21
|
readonly title: PropType<string | (() => import("vue").VNodeChild)>;
|
|
22
22
|
readonly extra: PropType<string | (() => import("vue").VNodeChild)>;
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
24
|
+
export declare const NMenuOption: import("vue").DefineComponent<{
|
|
25
25
|
readonly tmNode: {
|
|
26
26
|
readonly type: PropType<TmNode>;
|
|
27
27
|
readonly required: true;
|
|
@@ -268,4 +268,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
268
|
disabled: boolean;
|
|
269
269
|
isGroup: boolean;
|
|
270
270
|
}>;
|
|
271
|
-
export default _default;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.menuItemProps = void 0;
|
|
6
|
+
exports.NMenuOption = exports.menuItemProps = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const vooks_1 = require("vooks");
|
|
9
9
|
const _utils_1 = require("../../_utils");
|
|
@@ -15,7 +15,7 @@ exports.menuItemProps = Object.assign(Object.assign({}, use_menu_child_props_1.u
|
|
|
15
15
|
type: Object,
|
|
16
16
|
required: true
|
|
17
17
|
}, disabled: Boolean, icon: Function, onClick: Function });
|
|
18
|
-
exports.
|
|
18
|
+
exports.NMenuOption = (0, vue_1.defineComponent)({
|
|
19
19
|
name: 'MenuOption',
|
|
20
20
|
props: exports.menuItemProps,
|
|
21
21
|
setup(props) {
|
|
@@ -4,7 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const icons_1 = require("../../_internal/icons");
|
|
5
5
|
const _utils_1 = require("../../_utils");
|
|
6
6
|
const _internal_1 = require("../../_internal");
|
|
7
|
-
const
|
|
7
|
+
const context_1 = require("./context");
|
|
8
8
|
exports.default = (0, vue_1.defineComponent)({
|
|
9
9
|
name: 'MenuOptionContent',
|
|
10
10
|
props: {
|
|
@@ -41,7 +41,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
41
41
|
},
|
|
42
42
|
setup(props) {
|
|
43
43
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
44
|
-
const { props: menuProps } = (0, vue_1.inject)(
|
|
44
|
+
const { props: menuProps } = (0, vue_1.inject)(context_1.menuInjectionKey);
|
|
45
45
|
return {
|
|
46
46
|
menuProps,
|
|
47
47
|
style: (0, vue_1.computed)(() => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type { MenuOptionGroupInjection } from './use-menu-child';
|
|
3
2
|
import { TmNode } from './interface';
|
|
4
3
|
export declare const menuItemGroupProps: {
|
|
5
4
|
readonly tmNodes: {
|
|
@@ -19,8 +18,7 @@ export declare const menuItemGroupProps: {
|
|
|
19
18
|
readonly title: PropType<string | (() => import("vue").VNodeChild)>;
|
|
20
19
|
readonly extra: PropType<string | (() => import("vue").VNodeChild)>;
|
|
21
20
|
};
|
|
22
|
-
export declare const
|
|
23
|
-
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
export declare const NMenuOptionGroup: import("vue").DefineComponent<{
|
|
24
22
|
readonly tmNodes: {
|
|
25
23
|
readonly type: PropType<TmNode[]>;
|
|
26
24
|
readonly required: true;
|
|
@@ -58,4 +56,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
56
|
root: boolean;
|
|
59
57
|
isGroup: boolean;
|
|
60
58
|
}>;
|
|
61
|
-
export default _default;
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NMenuOptionGroup = exports.menuItemGroupProps = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
5
|
const _utils_1 = require("../../_utils");
|
|
6
6
|
const use_menu_child_1 = require("./use-menu-child");
|
|
7
7
|
const use_menu_child_props_1 = require("./use-menu-child-props");
|
|
8
|
+
// eslint-disable-next-line import/no-cycle
|
|
8
9
|
const utils_1 = require("./utils");
|
|
9
|
-
const
|
|
10
|
-
const Menu_1 = require("./Menu");
|
|
10
|
+
const context_1 = require("./context");
|
|
11
11
|
exports.menuItemGroupProps = Object.assign(Object.assign({}, use_menu_child_props_1.useMenuChildProps), { tmNodes: {
|
|
12
12
|
type: Array,
|
|
13
13
|
required: true
|
|
14
14
|
} });
|
|
15
|
-
exports.
|
|
16
|
-
exports.default = (0, vue_1.defineComponent)({
|
|
15
|
+
exports.NMenuOptionGroup = (0, vue_1.defineComponent)({
|
|
17
16
|
name: 'MenuOptionGroup',
|
|
18
17
|
props: exports.menuItemGroupProps,
|
|
19
18
|
setup(props) {
|
|
20
|
-
(0, vue_1.provide)(
|
|
19
|
+
(0, vue_1.provide)(context_1.submenuInjectionKey, null);
|
|
21
20
|
const MenuChild = (0, use_menu_child_1.useMenuChild)(props);
|
|
22
|
-
(0, vue_1.provide)(
|
|
21
|
+
(0, vue_1.provide)(context_1.menuItemGroupInjectionKey, {
|
|
23
22
|
paddingLeftRef: MenuChild.paddingLeft
|
|
24
23
|
});
|
|
25
24
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
-
const { mergedClsPrefixRef, props: menuProps } = (0, vue_1.inject)(
|
|
25
|
+
const { mergedClsPrefixRef, props: menuProps } = (0, vue_1.inject)(context_1.menuInjectionKey);
|
|
27
26
|
return function () {
|
|
28
27
|
const { value: mergedClsPrefix } = mergedClsPrefixRef;
|
|
29
28
|
const paddingLeft = MenuChild.paddingLeft.value;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
import type { SubmenuInjection } from './use-menu-child';
|
|
3
2
|
import { MenuMixedOption, TmNode } from './interface';
|
|
4
3
|
export declare const submenuProps: {
|
|
5
4
|
readonly rawNodes: {
|
|
@@ -33,8 +32,7 @@ export declare const submenuProps: {
|
|
|
33
32
|
readonly title: PropType<string | (() => VNodeChild)>;
|
|
34
33
|
readonly extra: PropType<string | (() => VNodeChild)>;
|
|
35
34
|
};
|
|
36
|
-
export declare const
|
|
37
|
-
declare const _default: import("vue").DefineComponent<{
|
|
35
|
+
export declare const NSubmenu: import("vue").DefineComponent<{
|
|
38
36
|
readonly rawNodes: {
|
|
39
37
|
readonly type: PropType<MenuMixedOption[]>;
|
|
40
38
|
readonly default: () => never[];
|
|
@@ -122,4 +120,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
120
|
tmNodes: TmNode[];
|
|
123
121
|
rawNodes: MenuMixedOption[];
|
|
124
122
|
}>;
|
|
125
|
-
export default _default;
|
package/lib/menu/src/Submenu.js
CHANGED
|
@@ -3,17 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.NSubmenu = exports.submenuProps = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const vooks_1 = require("vooks");
|
|
9
9
|
const _internal_1 = require("../../_internal");
|
|
10
10
|
const dropdown_1 = require("../../dropdown");
|
|
11
11
|
const MenuOptionContent_1 = __importDefault(require("./MenuOptionContent"));
|
|
12
|
+
// eslint-disable-next-line import/no-cycle
|
|
12
13
|
const utils_1 = require("./utils");
|
|
13
14
|
const use_menu_child_1 = require("./use-menu-child");
|
|
14
15
|
const use_menu_child_props_1 = require("./use-menu-child-props");
|
|
15
|
-
const
|
|
16
|
-
const _utils_1 = require("../../_utils");
|
|
16
|
+
const context_1 = require("./context");
|
|
17
17
|
exports.submenuProps = Object.assign(Object.assign({}, use_menu_child_props_1.useMenuChildProps), { rawNodes: {
|
|
18
18
|
type: Array,
|
|
19
19
|
default: () => []
|
|
@@ -27,8 +27,7 @@ exports.submenuProps = Object.assign(Object.assign({}, use_menu_child_props_1.us
|
|
|
27
27
|
type: Boolean,
|
|
28
28
|
default: false
|
|
29
29
|
}, icon: Function, onClick: Function });
|
|
30
|
-
exports.
|
|
31
|
-
exports.default = (0, vue_1.defineComponent)({
|
|
30
|
+
exports.NSubmenu = (0, vue_1.defineComponent)({
|
|
32
31
|
name: 'Submenu',
|
|
33
32
|
props: exports.submenuProps,
|
|
34
33
|
setup(props) {
|
|
@@ -44,11 +43,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
44
43
|
return disabled;
|
|
45
44
|
});
|
|
46
45
|
const dropdownShowRef = (0, vue_1.ref)(false);
|
|
47
|
-
(0, vue_1.provide)(
|
|
46
|
+
(0, vue_1.provide)(context_1.submenuInjectionKey, {
|
|
48
47
|
paddingLeftRef: MenuChild.paddingLeft,
|
|
49
48
|
mergedDisabledRef
|
|
50
49
|
});
|
|
51
|
-
(0, vue_1.provide)(
|
|
50
|
+
(0, vue_1.provide)(context_1.menuItemGroupInjectionKey, null);
|
|
52
51
|
function doClick() {
|
|
53
52
|
const { onClick } = props;
|
|
54
53
|
if (onClick)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MenuInjection, MenuOptionGroupInjection, SubmenuInjection } from './use-menu-child';
|
|
2
|
+
export declare const menuInjectionKey: import("vue").InjectionKey<MenuInjection>;
|
|
3
|
+
export declare const submenuInjectionKey: import("vue").InjectionKey<SubmenuInjection>;
|
|
4
|
+
export declare const menuItemGroupInjectionKey: import("vue").InjectionKey<MenuOptionGroupInjection>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.menuItemGroupInjectionKey = exports.submenuInjectionKey = exports.menuInjectionKey = void 0;
|
|
4
|
+
const _utils_1 = require("../../_utils");
|
|
5
|
+
exports.menuInjectionKey = (0, _utils_1.createInjectionKey)('n-menu');
|
|
6
|
+
exports.submenuInjectionKey = (0, _utils_1.createInjectionKey)('n-submenu');
|
|
7
|
+
exports.menuItemGroupInjectionKey = (0, _utils_1.createInjectionKey)('n-menu-item-group');
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useMenuChild = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
|
-
const
|
|
6
|
-
const MenuOptionGroup_1 = require("./MenuOptionGroup");
|
|
7
|
-
const Submenu_1 = require("./Submenu");
|
|
5
|
+
const context_1 = require("./context");
|
|
8
6
|
const ICON_MARGIN_RIGHT = 8;
|
|
9
7
|
function useMenuChild(props) {
|
|
10
8
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11
|
-
const NMenu = (0, vue_1.inject)(
|
|
9
|
+
const NMenu = (0, vue_1.inject)(context_1.menuInjectionKey);
|
|
12
10
|
const { props: menuProps, mergedCollapsedRef } = NMenu;
|
|
13
|
-
const NSubmenu = (0, vue_1.inject)(
|
|
14
|
-
const NMenuOptionGroup = (0, vue_1.inject)(
|
|
11
|
+
const NSubmenu = (0, vue_1.inject)(context_1.submenuInjectionKey, null);
|
|
12
|
+
const NMenuOptionGroup = (0, vue_1.inject)(context_1.menuItemGroupInjectionKey, null);
|
|
15
13
|
const horizontalRef = (0, vue_1.computed)(() => {
|
|
16
14
|
return menuProps.mode === 'horizontal';
|
|
17
15
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MenuSetupProps } from './Menu';
|
|
1
|
+
import type { MenuSetupProps } from './Menu';
|
|
2
2
|
export declare function useCheckDeprecated(props: MenuSetupProps): void;
|
package/lib/menu/src/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
2
|
import type { TreeNode } from 'treemate';
|
|
3
3
|
import { MenuOption, MenuGroupOption, MenuIgnoredOption, MenuMixedOption } from './interface';
|
|
4
|
-
import { MenuSetupProps } from './Menu';
|
|
4
|
+
import type { MenuSetupProps } from './Menu';
|
|
5
5
|
export declare function isIgnoredNode(rawNode: MenuMixedOption): rawNode is MenuIgnoredOption;
|
|
6
6
|
export declare function isDividerNode(rawNode: MenuMixedOption): rawNode is MenuIgnoredOption;
|
|
7
7
|
export declare function itemRenderer(tmNode: TreeNode<MenuOption, MenuGroupOption, MenuIgnoredOption>, menuProps: MenuSetupProps): VNode | undefined;
|
package/lib/menu/src/utils.js
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
4
|
};
|
|
@@ -25,9 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
6
|
exports.itemRenderer = exports.isDividerNode = exports.isIgnoredNode = void 0;
|
|
26
7
|
const vue_1 = require("vue");
|
|
27
8
|
const _utils_1 = require("../../_utils");
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
9
|
+
// eslint-disable-next-line import/no-cycle
|
|
10
|
+
const MenuOptionGroup_1 = require("./MenuOptionGroup");
|
|
11
|
+
// eslint-disable-next-line import/no-cycle
|
|
12
|
+
const Submenu_1 = require("./Submenu");
|
|
13
|
+
const MenuOption_1 = require("./MenuOption");
|
|
31
14
|
const MenuDivider_1 = __importDefault(require("./MenuDivider"));
|
|
32
15
|
const groupPropKeys = (0, _utils_1.keysOf)(MenuOptionGroup_1.menuItemGroupProps);
|
|
33
16
|
const itemPropKeys = (0, _utils_1.keysOf)(MenuOption_1.menuItemProps);
|
|
@@ -54,9 +37,9 @@ function itemRenderer(tmNode, menuProps) {
|
|
|
54
37
|
level, root: level === 0, isGroup });
|
|
55
38
|
if (tmNode.children) {
|
|
56
39
|
if (tmNode.isGroup) {
|
|
57
|
-
return (0, vue_1.h)(MenuOptionGroup_1.
|
|
40
|
+
return (0, vue_1.h)(MenuOptionGroup_1.NMenuOptionGroup, (0, _utils_1.keep)(props, groupPropKeys, { tmNodes: tmNode.children, key }));
|
|
58
41
|
}
|
|
59
|
-
return (0, vue_1.h)(Submenu_1.
|
|
42
|
+
return (0, vue_1.h)(Submenu_1.NSubmenu, (0, _utils_1.keep)(props, submenuPropKeys, {
|
|
60
43
|
key,
|
|
61
44
|
rawNodes: rawNode[menuProps.childrenField],
|
|
62
45
|
tmNodes: tmNode.children,
|
|
@@ -64,7 +47,7 @@ function itemRenderer(tmNode, menuProps) {
|
|
|
64
47
|
}));
|
|
65
48
|
}
|
|
66
49
|
else {
|
|
67
|
-
return (0, vue_1.h)(MenuOption_1.
|
|
50
|
+
return (0, vue_1.h)(MenuOption_1.NMenuOption, (0, _utils_1.keep)(props, itemPropKeys, {
|
|
68
51
|
key,
|
|
69
52
|
tmNode
|
|
70
53
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNodeChild,
|
|
1
|
+
import { VNodeChild, PropType } from 'vue';
|
|
2
2
|
import type { MessageType, MessageRenderMessage } from './types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
render: PropType<MessageRenderMessage>;
|
|
@@ -15,163 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
16
16
|
}, {
|
|
17
17
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
18
|
-
messageProviderProps:
|
|
19
|
-
duration: number;
|
|
20
|
-
placement: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
21
|
-
closable: boolean;
|
|
22
|
-
keepAliveOnHover: boolean;
|
|
23
|
-
} & {
|
|
24
|
-
max?: number | undefined;
|
|
25
|
-
to?: string | HTMLElement | undefined;
|
|
26
|
-
theme?: import("../../_mixins").Theme<"Message", {
|
|
27
|
-
textColorInfo: string;
|
|
28
|
-
textColorSuccess: string;
|
|
29
|
-
textColorError: string;
|
|
30
|
-
textColorWarning: string;
|
|
31
|
-
textColorLoading: string;
|
|
32
|
-
colorInfo: string;
|
|
33
|
-
colorSuccess: string;
|
|
34
|
-
colorError: string;
|
|
35
|
-
colorWarning: string;
|
|
36
|
-
colorLoading: string;
|
|
37
|
-
boxShadowInfo: string;
|
|
38
|
-
boxShadowSuccess: string;
|
|
39
|
-
boxShadowError: string;
|
|
40
|
-
boxShadowWarning: string;
|
|
41
|
-
boxShadowLoading: string;
|
|
42
|
-
iconColorInfo: string;
|
|
43
|
-
iconColorSuccess: string;
|
|
44
|
-
iconColorWarning: string;
|
|
45
|
-
iconColorError: string;
|
|
46
|
-
iconColorLoading: string;
|
|
47
|
-
closeColorInfo: string;
|
|
48
|
-
closeColorHoverInfo: string;
|
|
49
|
-
closeColorPressedInfo: string;
|
|
50
|
-
closeColorSuccess: string;
|
|
51
|
-
closeColorHoverSuccess: string;
|
|
52
|
-
closeColorPressedSuccess: string;
|
|
53
|
-
closeColorError: string;
|
|
54
|
-
closeColorHoverError: string;
|
|
55
|
-
closeColorPressedError: string;
|
|
56
|
-
closeColorWarning: string;
|
|
57
|
-
closeColorHoverWarning: string;
|
|
58
|
-
closeColorPressedWarning: string;
|
|
59
|
-
closeColorLoading: string;
|
|
60
|
-
closeColorHoverLoading: string;
|
|
61
|
-
closeColorPressedLoading: string;
|
|
62
|
-
loadingColor: string;
|
|
63
|
-
lineHeight: string;
|
|
64
|
-
borderRadius: string;
|
|
65
|
-
margin: string;
|
|
66
|
-
padding: string;
|
|
67
|
-
maxWidth: string;
|
|
68
|
-
minWidth: string;
|
|
69
|
-
iconMargin: string;
|
|
70
|
-
closeMargin: string;
|
|
71
|
-
closeSize: string;
|
|
72
|
-
iconSize: string;
|
|
73
|
-
fontSize: string;
|
|
74
|
-
}, any> | undefined;
|
|
75
|
-
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
|
|
76
|
-
textColorInfo: string;
|
|
77
|
-
textColorSuccess: string;
|
|
78
|
-
textColorError: string;
|
|
79
|
-
textColorWarning: string;
|
|
80
|
-
textColorLoading: string;
|
|
81
|
-
colorInfo: string;
|
|
82
|
-
colorSuccess: string;
|
|
83
|
-
colorError: string;
|
|
84
|
-
colorWarning: string;
|
|
85
|
-
colorLoading: string;
|
|
86
|
-
boxShadowInfo: string;
|
|
87
|
-
boxShadowSuccess: string;
|
|
88
|
-
boxShadowError: string;
|
|
89
|
-
boxShadowWarning: string;
|
|
90
|
-
boxShadowLoading: string;
|
|
91
|
-
iconColorInfo: string;
|
|
92
|
-
iconColorSuccess: string;
|
|
93
|
-
iconColorWarning: string;
|
|
94
|
-
iconColorError: string;
|
|
95
|
-
iconColorLoading: string;
|
|
96
|
-
closeColorInfo: string;
|
|
97
|
-
closeColorHoverInfo: string;
|
|
98
|
-
closeColorPressedInfo: string;
|
|
99
|
-
closeColorSuccess: string;
|
|
100
|
-
closeColorHoverSuccess: string;
|
|
101
|
-
closeColorPressedSuccess: string;
|
|
102
|
-
closeColorError: string;
|
|
103
|
-
closeColorHoverError: string;
|
|
104
|
-
closeColorPressedError: string;
|
|
105
|
-
closeColorWarning: string;
|
|
106
|
-
closeColorHoverWarning: string;
|
|
107
|
-
closeColorPressedWarning: string;
|
|
108
|
-
closeColorLoading: string;
|
|
109
|
-
closeColorHoverLoading: string;
|
|
110
|
-
closeColorPressedLoading: string;
|
|
111
|
-
loadingColor: string;
|
|
112
|
-
lineHeight: string;
|
|
113
|
-
borderRadius: string;
|
|
114
|
-
margin: string;
|
|
115
|
-
padding: string;
|
|
116
|
-
maxWidth: string;
|
|
117
|
-
minWidth: string;
|
|
118
|
-
iconMargin: string;
|
|
119
|
-
closeMargin: string;
|
|
120
|
-
closeSize: string;
|
|
121
|
-
iconSize: string;
|
|
122
|
-
fontSize: string;
|
|
123
|
-
}, any>> | undefined;
|
|
124
|
-
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
|
|
125
|
-
textColorInfo: string;
|
|
126
|
-
textColorSuccess: string;
|
|
127
|
-
textColorError: string;
|
|
128
|
-
textColorWarning: string;
|
|
129
|
-
textColorLoading: string;
|
|
130
|
-
colorInfo: string;
|
|
131
|
-
colorSuccess: string;
|
|
132
|
-
colorError: string;
|
|
133
|
-
colorWarning: string;
|
|
134
|
-
colorLoading: string;
|
|
135
|
-
boxShadowInfo: string;
|
|
136
|
-
boxShadowSuccess: string;
|
|
137
|
-
boxShadowError: string;
|
|
138
|
-
boxShadowWarning: string;
|
|
139
|
-
boxShadowLoading: string;
|
|
140
|
-
iconColorInfo: string;
|
|
141
|
-
iconColorSuccess: string;
|
|
142
|
-
iconColorWarning: string;
|
|
143
|
-
iconColorError: string;
|
|
144
|
-
iconColorLoading: string;
|
|
145
|
-
closeColorInfo: string;
|
|
146
|
-
closeColorHoverInfo: string;
|
|
147
|
-
closeColorPressedInfo: string;
|
|
148
|
-
closeColorSuccess: string;
|
|
149
|
-
closeColorHoverSuccess: string;
|
|
150
|
-
closeColorPressedSuccess: string;
|
|
151
|
-
closeColorError: string;
|
|
152
|
-
closeColorHoverError: string;
|
|
153
|
-
closeColorPressedError: string;
|
|
154
|
-
closeColorWarning: string;
|
|
155
|
-
closeColorHoverWarning: string;
|
|
156
|
-
closeColorPressedWarning: string;
|
|
157
|
-
closeColorLoading: string;
|
|
158
|
-
closeColorHoverLoading: string;
|
|
159
|
-
closeColorPressedLoading: string;
|
|
160
|
-
loadingColor: string;
|
|
161
|
-
lineHeight: string;
|
|
162
|
-
borderRadius: string;
|
|
163
|
-
margin: string;
|
|
164
|
-
padding: string;
|
|
165
|
-
maxWidth: string;
|
|
166
|
-
minWidth: string;
|
|
167
|
-
iconMargin: string;
|
|
168
|
-
closeMargin: string;
|
|
169
|
-
closeSize: string;
|
|
170
|
-
iconSize: string;
|
|
171
|
-
fontSize: string;
|
|
172
|
-
}, any>> | undefined;
|
|
173
|
-
containerStyle?: string | CSSProperties | undefined;
|
|
174
|
-
};
|
|
18
|
+
messageProviderProps: import("./MessageProvider").MessageProviderSetupProps;
|
|
175
19
|
handleClose(): void;
|
|
176
20
|
cssVars: import("vue").ComputedRef<{
|
|
177
21
|
'--n-bezier': string;
|
|
@@ -10,7 +10,7 @@ const _utils_1 = require("../../_utils");
|
|
|
10
10
|
const _mixins_1 = require("../../_mixins");
|
|
11
11
|
const styles_1 = require("../styles");
|
|
12
12
|
const message_props_1 = require("./message-props");
|
|
13
|
-
const
|
|
13
|
+
const context_1 = require("./context");
|
|
14
14
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
15
15
|
const iconMap = {
|
|
16
16
|
info: (0, vue_1.h)(icons_1.InfoIcon, null),
|
|
@@ -24,8 +24,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
24
24
|
setup(props) {
|
|
25
25
|
const { props: messageProviderProps, mergedClsPrefixRef
|
|
26
26
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
27
|
-
} = (0, vue_1.inject)(
|
|
28
|
-
const themeRef = (0, _mixins_1.useTheme)('Message', '
|
|
27
|
+
} = (0, vue_1.inject)(context_1.messageProviderInjectionKey);
|
|
28
|
+
const themeRef = (0, _mixins_1.useTheme)('Message', '-message', index_cssr_1.default, styles_1.messageLight, messageProviderProps, mergedClsPrefixRef);
|
|
29
29
|
return {
|
|
30
30
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
31
31
|
messageProviderProps,
|