naive-ui 2.41.1 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3349 -1068
- package/dist/index.mjs +3339 -1070
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/icon/src/styles/index.cssr.mjs +0 -1
- package/es/_internal/icons/replaceable.mjs +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/es/_internal/selection/src/Selection.d.ts +115 -13
- package/es/_internal/selection/styles/light.d.ts +14 -1
- package/es/_mixins/use-theme.mjs +1 -1
- package/es/_utils/index.d.ts +1 -0
- package/es/_utils/naive/prop.d.ts +19 -10
- package/es/_utils/naive/prop.mjs +21 -21
- package/es/_utils/ts/ts.d.ts +3 -0
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/anchor/index.d.ts +1 -0
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.mjs +29 -5
- package/es/anchor/src/Link.d.ts +3 -2
- package/es/anchor/src/Link.mjs +5 -2
- package/es/anchor/src/public-types.d.ts +5 -0
- package/es/anchor/src/public-types.mjs +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +155 -14
- package/es/auto-complete/styles/light.d.ts +14 -1
- package/es/avatar-group/index.d.ts +3 -2
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -4
- package/es/avatar-group/src/generic-public-types.d.ts +18 -0
- package/es/avatar-group/src/generic-public-types.mjs +1 -0
- package/es/avatar-group/src/public-types.d.ts +10 -0
- package/es/avatar-group/src/public-types.mjs +1 -0
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/button/src/Button.d.ts +1 -1
- package/es/card/src/Card.d.ts +7 -2
- package/es/card/src/Card.mjs +3 -1
- package/es/carousel/src/Carousel.d.ts +4 -4
- package/es/carousel/src/Carousel.mjs +2 -2
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/carousel/src/CarouselItem.mjs +1 -1
- package/es/cascader/src/Cascader.d.ts +163 -20
- package/es/cascader/src/CascaderMenu.d.ts +56 -4
- package/es/cascader/src/CascaderOption.d.ts +56 -4
- package/es/cascader/src/CascaderSelectMenu.d.ts +57 -5
- package/es/cascader/src/CascaderSubmenu.d.ts +56 -4
- package/es/cascader/styles/light.d.ts +14 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +26 -2
- package/es/color-picker/src/ColorPicker.d.ts +128 -11
- package/es/color-picker/src/ColorPickerTrigger.mjs +2 -1
- package/es/color-picker/src/utils.d.ts +2 -0
- package/es/color-picker/src/utils.mjs +23 -0
- package/es/color-picker/styles/light.d.ts +17 -4
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.mjs +1 -1
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +690 -68
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +334 -26
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +332 -24
- package/es/data-table/src/TableParts/Body.d.ts +332 -24
- package/es/data-table/src/TableParts/Cell.mjs +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +332 -24
- package/es/data-table/src/interface.d.ts +253 -18
- package/es/data-table/src/use-sorter.d.ts +2 -5
- package/es/data-table/src/use-table-data.d.ts +1 -4
- package/es/data-table/src/utils.mjs +4 -1
- package/es/data-table/styles/light.d.ts +84 -6
- package/es/date-picker/src/DatePicker.d.ts +229 -23
- package/es/date-picker/src/DatePicker.mjs +1 -1
- package/es/date-picker/src/panel/date.d.ts +110 -10
- package/es/date-picker/src/panel/daterange.d.ts +111 -11
- package/es/date-picker/src/panel/datetime.d.ts +111 -11
- package/es/date-picker/src/panel/datetime.mjs +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +112 -12
- package/es/date-picker/src/panel/datetimerange.mjs +2 -2
- package/es/date-picker/src/panel/month.d.ts +110 -10
- package/es/date-picker/src/panel/monthrange.d.ts +111 -11
- package/es/date-picker/src/panel/panelHeader.d.ts +436 -36
- package/es/date-picker/src/panel/use-calendar.d.ts +109 -9
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +110 -10
- package/es/date-picker/src/panel/use-dual-calendar.mjs +3 -3
- package/es/date-picker/src/panel/use-panel-common.d.ts +109 -9
- package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
- package/es/date-picker/src/props.d.ts +85 -7
- package/es/date-picker/src/props.mjs +1 -1
- package/es/date-picker/src/utils.d.ts +2 -1
- package/es/date-picker/src/utils.mjs +4 -1
- package/es/date-picker/styles/light.d.ts +28 -2
- package/es/dialog/src/Dialog.d.ts +9 -6
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +11 -4
- package/es/dialog/src/DialogEnvironment.mjs +3 -0
- package/es/dialog/src/DialogProvider.d.ts +38 -34
- package/es/dialog/src/dialogProps.d.ts +2 -1
- package/es/dialog/src/dialogProps.mjs +2 -1
- package/es/drawer/src/Drawer.d.ts +4 -4
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +165 -24
- package/es/dropdown/src/DropdownMenu.d.ts +2 -2
- package/es/dropdown/src/DropdownOption.d.ts +2 -2
- package/es/dropdown/styles/light.d.ts +16 -3
- package/es/dynamic-input/src/DynamicInput.d.ts +153 -12
- package/es/dynamic-input/src/InputPreset.d.ts +52 -4
- package/es/dynamic-input/src/PairPreset.d.ts +52 -4
- package/es/dynamic-input/styles/light.d.ts +14 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +153 -12
- package/es/dynamic-tags/styles/light.d.ts +14 -1
- package/es/element/src/Element.mjs +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +154 -11
- package/es/ellipsis/src/PerformantEllipsis.d.ts +84 -6
- package/es/ellipsis/styles/light.d.ts +14 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +8 -2
- package/es/form/src/FormItem.mjs +6 -3
- package/es/form/src/FormItemCol.d.ts +7 -1
- package/es/form/src/FormItemGridItem.d.ts +7 -1
- package/es/form/src/FormItemRow.d.ts +7 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/form/src/utils.mjs +1 -1
- package/es/global-style/src/GlobalStyle.mjs +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/heatmap/index.d.ts +6 -0
- package/es/heatmap/index.mjs +4 -0
- package/es/heatmap/src/ColorIndicator.d.ts +25 -0
- package/es/heatmap/src/ColorIndicator.mjs +41 -0
- package/es/heatmap/src/Heatmap.d.ts +385 -0
- package/es/heatmap/src/Heatmap.mjs +333 -0
- package/es/heatmap/src/Rect.d.ts +57 -0
- package/es/heatmap/src/Rect.mjs +67 -0
- package/es/heatmap/src/animationStyle.d.ts +6 -0
- package/es/heatmap/src/animationStyle.mjs +51 -0
- package/es/heatmap/src/interface.d.ts +7 -0
- package/es/heatmap/src/interface.mjs +1 -0
- package/es/heatmap/src/public-types.d.ts +16 -0
- package/es/heatmap/src/public-types.mjs +1 -0
- package/es/heatmap/src/styles/index.cssr.d.ts +2 -0
- package/es/heatmap/src/styles/index.cssr.mjs +102 -0
- package/es/heatmap/src/styles/rtl.cssr.d.ts +2 -0
- package/es/heatmap/src/styles/rtl.cssr.mjs +4 -0
- package/es/heatmap/src/theme.d.ts +8 -0
- package/es/heatmap/src/theme.mjs +7 -0
- package/es/heatmap/src/utils/index.d.ts +32 -0
- package/es/heatmap/src/utils/index.mjs +148 -0
- package/es/heatmap/styles/dark.d.ts +3 -0
- package/es/heatmap/styles/dark.mjs +16 -0
- package/es/heatmap/styles/index.d.ts +3 -0
- package/es/heatmap/styles/index.mjs +2 -0
- package/es/heatmap/styles/light.d.ts +31 -0
- package/es/heatmap/styles/light.mjs +45 -0
- package/es/heatmap/styles/rtl.d.ts +2 -0
- package/es/heatmap/styles/rtl.mjs +5 -0
- package/es/highlight/src/utils.mjs +10 -10
- package/es/icon/src/styles/index.cssr.mjs +0 -1
- package/es/image/index.d.ts +3 -1
- package/es/image/index.mjs +2 -1
- package/es/image/src/Image.d.ts +133 -23
- package/es/image/src/Image.mjs +48 -23
- package/es/image/src/ImageGroup.d.ts +200 -35
- package/es/image/src/ImageGroup.mjs +130 -26
- package/es/image/src/ImagePreview.d.ts +258 -23
- package/es/image/src/ImagePreview.mjs +84 -42
- package/es/image/src/interface.d.ts +42 -3
- package/es/image/src/public-types.d.ts +14 -0
- package/es/image/styles/light.d.ts +14 -1
- package/es/input/src/Input.d.ts +146 -12
- package/es/input/src/Input.mjs +6 -4
- package/es/input/src/InputGroupLabel.d.ts +129 -22
- package/es/input/src/InputGroupLabel.mjs +14 -8
- package/es/input/styles/dark.d.ts +139 -2
- package/es/input/styles/dark.mjs +114 -108
- package/es/input/styles/light.d.ts +76 -3
- package/es/input/styles/light.mjs +7 -2
- package/es/input-number/src/InputNumber.d.ts +152 -11
- package/es/input-number/styles/light.d.ts +14 -1
- package/es/input-otp/src/InputOtp.d.ts +158 -12
- package/es/input-otp/src/InputOtp.mjs +12 -4
- package/es/input-otp/src/public-types.d.ts +1 -0
- package/es/input-otp/src/styles/index.cssr.mjs +12 -3
- package/es/input-otp/styles/dark.mjs +1 -1
- package/es/input-otp/styles/light.d.ts +14 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +154 -13
- package/es/legacy-transfer/src/TransferFilter.d.ts +52 -4
- package/es/legacy-transfer/src/TransferList.d.ts +52 -4
- package/es/legacy-transfer/src/TransferListItem.d.ts +52 -4
- package/es/legacy-transfer/styles/light.d.ts +14 -1
- package/es/locales/common/arDZ.mjs +6 -0
- package/es/locales/common/azAZ.mjs +6 -0
- package/es/locales/common/csCZ.mjs +6 -0
- package/es/locales/common/daDK.d.ts +3 -0
- package/es/locales/common/daDK.mjs +130 -0
- package/es/locales/common/deDE.mjs +6 -0
- package/es/locales/common/enGB.mjs +6 -0
- package/es/locales/common/enUS.d.ts +6 -0
- package/es/locales/common/enUS.mjs +6 -0
- package/es/locales/common/eo.mjs +6 -0
- package/es/locales/common/esAR.mjs +6 -0
- package/es/locales/common/etEE.mjs +6 -0
- package/es/locales/common/faIR.mjs +6 -0
- package/es/locales/common/frFR.mjs +6 -0
- package/es/locales/common/idID.mjs +6 -0
- package/es/locales/common/itIT.mjs +6 -0
- package/es/locales/common/jaJP.mjs +6 -0
- package/es/locales/common/kmKH.mjs +6 -0
- package/es/locales/common/koKR.mjs +6 -0
- package/es/locales/common/nbNO.mjs +6 -0
- package/es/locales/common/nlNL.mjs +6 -0
- package/es/locales/common/plPL.mjs +6 -0
- package/es/locales/common/ptBR.mjs +6 -0
- package/es/locales/common/ruRU.mjs +6 -0
- package/es/locales/common/skSK.mjs +6 -0
- package/es/locales/common/svSE.mjs +8 -2
- package/es/locales/common/thTH.mjs +6 -0
- package/es/locales/common/trTR.mjs +6 -0
- package/es/locales/common/ugCN.mjs +6 -0
- package/es/locales/common/ukUA.mjs +6 -0
- package/es/locales/common/uzUZ.mjs +6 -0
- package/es/locales/common/viVN.mjs +6 -0
- package/es/locales/common/zhCN.mjs +6 -0
- package/es/locales/common/zhTW.mjs +6 -0
- package/es/locales/date/daDK.d.ts +3 -0
- package/es/locales/date/daDK.mjs +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.mjs +2 -0
- package/es/locales/utils/index.mjs +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/Log.mjs +1 -1
- package/es/marquee/src/Marquee.mjs +12 -10
- package/es/mention/src/Mention.d.ts +155 -14
- package/es/mention/styles/light.d.ts +14 -1
- package/es/menu/src/Menu.d.ts +314 -28
- package/es/menu/src/MenuOption.d.ts +113 -9
- package/es/menu/src/MenuOption.mjs +4 -3
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.mjs +11 -4
- package/es/menu/src/Submenu.d.ts +114 -10
- package/es/menu/src/use-menu-child.d.ts +2 -0
- package/es/menu/src/use-menu-child.mjs +2 -1
- package/es/menu/styles/light.d.ts +33 -7
- package/es/message/src/Message.d.ts +1 -0
- package/es/message/src/Message.mjs +3 -1
- package/es/message/src/MessageProvider.d.ts +10 -1
- package/es/message/src/styles/index.cssr.mjs +1 -0
- package/es/message/styles/light.d.ts +1 -0
- package/es/message/styles/light.mjs +2 -1
- package/es/modal/src/BodyWrapper.d.ts +13 -7
- package/es/modal/src/BodyWrapper.mjs +4 -3
- package/es/modal/src/Modal.d.ts +32 -15
- package/es/modal/src/Modal.mjs +14 -6
- package/es/modal/src/ModalEnvironment.d.ts +22 -10
- package/es/modal/src/ModalEnvironment.mjs +1 -1
- package/es/modal/src/ModalProvider.d.ts +2 -1
- package/es/modal/src/ModalProvider.mjs +4 -2
- package/es/modal/src/presetProps.d.ts +3 -2
- package/es/modal/src/styles/index.cssr.mjs +4 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +5 -5
- package/es/number-animation/src/NumberAnimation.mjs +1 -1
- package/es/pagination/src/Pagination.d.ts +460 -33
- package/es/pagination/styles/light.d.ts +42 -3
- package/es/popconfirm/src/Popconfirm.d.ts +163 -22
- package/es/popconfirm/src/Popconfirm.mjs +3 -3
- package/es/popconfirm/src/PopconfirmPanel.d.ts +3 -3
- package/es/popconfirm/styles/light.d.ts +14 -1
- package/es/popover/src/Popover.d.ts +133 -16
- package/es/popover/src/PopoverBody.d.ts +129 -12
- package/es/popover/src/PopoverBody.mjs +8 -4
- package/es/popover/src/styles/index.cssr.mjs +1 -1
- package/es/popover/src/styles/rtl.cssr.d.ts +2 -0
- package/es/popover/src/styles/rtl.cssr.mjs +5 -0
- package/es/popover/styles/dark.mjs +4 -0
- package/es/popover/styles/index.d.ts +1 -0
- package/es/popover/styles/index.mjs +2 -1
- package/es/popover/styles/light.d.ts +27 -2
- package/es/popover/styles/light.mjs +7 -2
- package/es/popover/styles/rtl.d.ts +2 -0
- package/es/popover/styles/rtl.mjs +7 -0
- package/es/popselect/src/Popselect.d.ts +217 -76
- package/es/popselect/src/PopselectPanel.d.ts +55 -7
- package/es/popselect/styles/light.d.ts +14 -1
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Circle.mjs +14 -3
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/radio/src/Radio.mjs +5 -5
- package/es/radio/src/RadioButton.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.mjs +3 -7
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/select/src/Select.d.ts +164 -21
- package/es/select/styles/light.d.ts +14 -1
- package/es/styles.d.ts +3 -3
- package/es/styles.mjs +3 -3
- package/es/tabs/src/Tab.d.ts +3 -3
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.mjs +1 -1
- package/es/tabs/src/styles/index.cssr.mjs +4 -4
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.mjs +1 -1
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/time-picker/src/Panel.d.ts +59 -11
- package/es/time-picker/src/TimePicker.d.ts +156 -15
- package/es/time-picker/styles/light.d.ts +14 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +166 -25
- package/es/tooltip/styles/light.d.ts +16 -3
- package/es/transfer/src/Transfer.d.ts +154 -13
- package/es/transfer/src/TransferFilter.d.ts +52 -4
- package/es/transfer/src/TransferList.d.ts +52 -4
- package/es/transfer/src/TransferListItem.d.ts +52 -4
- package/es/transfer/styles/light.d.ts +14 -1
- package/es/tree/src/Tree.d.ts +42 -38
- package/es/tree/src/Tree.mjs +3 -1
- package/es/tree/src/TreeNode.d.ts +2 -2
- package/es/tree/src/TreeNodeContent.d.ts +3 -3
- package/es/tree/src/styles/index.cssr.mjs +7 -2
- package/es/tree/styles/light.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.d.ts +172 -29
- package/es/tree-select/styles/index.d.ts +1 -0
- package/es/tree-select/styles/index.mjs +2 -1
- package/es/tree-select/styles/light.d.ts +22 -9
- package/es/tree-select/styles/rtl.d.ts +2 -0
- package/es/tree-select/styles/rtl.mjs +11 -0
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/upload/src/Upload.d.ts +1 -0
- package/es/upload/src/Upload.mjs +6 -3
- package/es/upload/src/UploadFile.d.ts +8 -6
- package/es/upload/src/UploadFile.mjs +1 -1
- package/es/upload/src/icons.d.ts +2 -2
- package/es/upload/src/icons.mjs +22 -18
- package/es/upload/src/styles/rtl.cssr.d.ts +2 -0
- package/es/upload/src/styles/rtl.cssr.mjs +5 -0
- package/es/upload/styles/index.d.ts +1 -0
- package/es/upload/styles/index.mjs +2 -1
- package/es/upload/styles/rtl.d.ts +2 -0
- package/es/upload/styles/rtl.mjs +5 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/generic/AvatarGroup.vue +26 -0
- package/generic/index.ts +1 -0
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/lib/_internal/selection/src/Selection.d.ts +115 -13
- package/lib/_internal/selection/styles/light.d.ts +14 -1
- package/lib/_utils/index.d.ts +1 -0
- package/lib/_utils/naive/prop.d.ts +19 -10
- package/lib/_utils/naive/prop.js +21 -21
- package/lib/_utils/ts/ts.d.ts +3 -0
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/anchor/index.d.ts +1 -0
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.js +17 -7
- package/lib/anchor/src/BaseAnchor.js +30 -5
- package/lib/anchor/src/Link.d.ts +3 -2
- package/lib/anchor/src/Link.js +4 -1
- package/lib/anchor/src/public-types.d.ts +5 -0
- package/lib/anchor/src/public-types.js +2 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +155 -14
- package/lib/auto-complete/styles/light.d.ts +14 -1
- package/lib/avatar-group/index.d.ts +3 -2
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -4
- package/lib/avatar-group/src/generic-public-types.d.ts +18 -0
- package/lib/avatar-group/src/generic-public-types.js +2 -0
- package/lib/avatar-group/src/public-types.d.ts +10 -0
- package/lib/avatar-group/src/public-types.js +2 -0
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/button/src/Button.d.ts +1 -1
- package/lib/card/src/Card.d.ts +7 -2
- package/lib/card/src/Card.js +3 -2
- package/lib/carousel/src/Carousel.d.ts +4 -4
- package/lib/carousel/src/Carousel.js +19 -9
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +163 -20
- package/lib/cascader/src/CascaderMenu.d.ts +56 -4
- package/lib/cascader/src/CascaderOption.d.ts +56 -4
- package/lib/cascader/src/CascaderSelectMenu.d.ts +57 -5
- package/lib/cascader/src/CascaderSubmenu.d.ts +56 -4
- package/lib/cascader/styles/light.d.ts +14 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +26 -2
- package/lib/color-picker/src/ColorPicker.d.ts +128 -11
- package/lib/color-picker/src/ColorPickerTrigger.js +2 -1
- package/lib/color-picker/src/utils.d.ts +2 -0
- package/lib/color-picker/src/utils.js +26 -0
- package/lib/color-picker/styles/light.d.ts +14 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +674 -52
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +333 -25
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +332 -24
- package/lib/data-table/src/TableParts/Body.d.ts +332 -24
- package/lib/data-table/src/TableParts/Header.d.ts +332 -24
- package/lib/data-table/src/interface.d.ts +253 -18
- package/lib/data-table/src/use-sorter.d.ts +2 -5
- package/lib/data-table/src/use-table-data.d.ts +1 -4
- package/lib/data-table/src/utils.js +2 -1
- package/lib/data-table/styles/light.d.ts +84 -6
- package/lib/date-picker/src/DatePicker.d.ts +229 -23
- package/lib/date-picker/src/DatePicker.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +110 -10
- package/lib/date-picker/src/panel/daterange.d.ts +111 -11
- package/lib/date-picker/src/panel/datetime.d.ts +110 -10
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +111 -11
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +110 -10
- package/lib/date-picker/src/panel/monthrange.d.ts +111 -11
- package/lib/date-picker/src/panel/panelHeader.d.ts +436 -36
- package/lib/date-picker/src/panel/use-calendar.d.ts +109 -9
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +110 -10
- package/lib/date-picker/src/panel/use-dual-calendar.js +3 -3
- package/lib/date-picker/src/panel/use-panel-common.d.ts +109 -9
- package/lib/date-picker/src/panel/use-panel-common.js +1 -1
- package/lib/date-picker/src/props.d.ts +85 -7
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/utils.d.ts +2 -1
- package/lib/date-picker/src/utils.js +5 -1
- package/lib/date-picker/styles/light.d.ts +28 -2
- package/lib/dialog/src/Dialog.d.ts +5 -2
- package/lib/dialog/src/Dialog.js +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +11 -4
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +38 -34
- package/lib/dialog/src/dialogProps.d.ts +2 -1
- package/lib/dialog/src/dialogProps.js +2 -1
- package/lib/drawer/src/Drawer.d.ts +4 -4
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +162 -21
- package/lib/dropdown/src/DropdownMenu.d.ts +2 -2
- package/lib/dropdown/styles/light.d.ts +14 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +153 -12
- package/lib/dynamic-input/src/InputPreset.d.ts +52 -4
- package/lib/dynamic-input/src/PairPreset.d.ts +52 -4
- package/lib/dynamic-input/styles/light.d.ts +14 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +153 -12
- package/lib/dynamic-tags/styles/light.d.ts +14 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +154 -11
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +84 -6
- package/lib/ellipsis/src/PerformantEllipsis.js +17 -7
- package/lib/ellipsis/styles/light.d.ts +14 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +8 -2
- package/lib/form/src/FormItem.js +3 -2
- package/lib/form/src/FormItemCol.d.ts +7 -1
- package/lib/form/src/FormItemCol.js +17 -7
- package/lib/form/src/FormItemGridItem.d.ts +7 -1
- package/lib/form/src/FormItemGridItem.js +17 -7
- package/lib/form/src/FormItemRow.d.ts +7 -1
- package/lib/form/src/FormItemRow.js +17 -7
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/heatmap/index.d.ts +6 -0
- package/lib/heatmap/index.js +27 -0
- package/lib/heatmap/src/ColorIndicator.d.ts +25 -0
- package/lib/heatmap/src/ColorIndicator.js +27 -0
- package/lib/heatmap/src/Heatmap.d.ts +385 -0
- package/lib/heatmap/src/Heatmap.js +248 -0
- package/lib/heatmap/src/Rect.d.ts +57 -0
- package/lib/heatmap/src/Rect.js +64 -0
- package/lib/heatmap/src/animationStyle.d.ts +6 -0
- package/lib/heatmap/src/animationStyle.js +52 -0
- package/lib/heatmap/src/interface.d.ts +7 -0
- package/lib/heatmap/src/interface.js +2 -0
- package/lib/heatmap/src/public-types.d.ts +16 -0
- package/lib/heatmap/src/public-types.js +2 -0
- package/lib/heatmap/src/styles/index.cssr.d.ts +2 -0
- package/lib/heatmap/src/styles/index.cssr.js +107 -0
- package/lib/heatmap/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/heatmap/src/styles/rtl.cssr.js +9 -0
- package/lib/heatmap/src/theme.d.ts +8 -0
- package/lib/heatmap/src/theme.js +10 -0
- package/lib/heatmap/src/utils/index.d.ts +32 -0
- package/lib/heatmap/src/utils/index.js +135 -0
- package/lib/heatmap/styles/dark.d.ts +3 -0
- package/lib/heatmap/styles/dark.js +13 -0
- package/lib/heatmap/styles/index.d.ts +3 -0
- package/lib/heatmap/styles/index.js +10 -0
- package/lib/heatmap/styles/light.d.ts +31 -0
- package/lib/heatmap/styles/light.js +39 -0
- package/lib/heatmap/styles/rtl.d.ts +2 -0
- package/lib/heatmap/styles/rtl.js +11 -0
- package/lib/highlight/src/utils.js +10 -21
- package/lib/icon/src/styles/index.cssr.js +0 -1
- package/lib/image/index.d.ts +3 -1
- package/lib/image/index.js +4 -1
- package/lib/image/src/Image.d.ts +133 -23
- package/lib/image/src/Image.js +43 -23
- package/lib/image/src/ImageGroup.d.ts +200 -35
- package/lib/image/src/ImageGroup.js +111 -26
- package/lib/image/src/ImagePreview.d.ts +258 -23
- package/lib/image/src/ImagePreview.js +60 -33
- package/lib/image/src/interface.d.ts +42 -3
- package/lib/image/src/public-types.d.ts +14 -0
- package/lib/image/styles/light.d.ts +14 -1
- package/lib/input/src/Input.d.ts +146 -12
- package/lib/input/src/Input.js +24 -12
- package/lib/input/src/InputGroupLabel.d.ts +129 -22
- package/lib/input/src/InputGroupLabel.js +8 -6
- package/lib/input/styles/dark.d.ts +139 -2
- package/lib/input/styles/dark.js +35 -29
- package/lib/input/styles/light.d.ts +76 -3
- package/lib/input/styles/light.js +7 -2
- package/lib/input-number/src/InputNumber.d.ts +152 -11
- package/lib/input-number/styles/light.d.ts +14 -1
- package/lib/input-otp/src/InputOtp.d.ts +158 -12
- package/lib/input-otp/src/InputOtp.js +12 -16
- package/lib/input-otp/src/public-types.d.ts +1 -0
- package/lib/input-otp/src/styles/index.cssr.js +11 -2
- package/lib/input-otp/styles/dark.js +1 -1
- package/lib/input-otp/styles/light.d.ts +14 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +154 -13
- package/lib/legacy-transfer/src/TransferFilter.d.ts +52 -4
- package/lib/legacy-transfer/src/TransferList.d.ts +52 -4
- package/lib/legacy-transfer/src/TransferListItem.d.ts +52 -4
- package/lib/legacy-transfer/styles/light.d.ts +14 -1
- package/lib/locales/common/arDZ.js +6 -0
- package/lib/locales/common/azAZ.js +6 -0
- package/lib/locales/common/csCZ.js +6 -0
- package/lib/locales/common/daDK.d.ts +3 -0
- package/lib/locales/common/daDK.js +132 -0
- package/lib/locales/common/deDE.js +6 -0
- package/lib/locales/common/enGB.js +6 -0
- package/lib/locales/common/enUS.d.ts +6 -0
- package/lib/locales/common/enUS.js +6 -0
- package/lib/locales/common/eo.js +6 -0
- package/lib/locales/common/esAR.js +6 -0
- package/lib/locales/common/etEE.js +6 -0
- package/lib/locales/common/faIR.js +6 -0
- package/lib/locales/common/frFR.js +6 -0
- package/lib/locales/common/idID.js +6 -0
- package/lib/locales/common/itIT.js +6 -0
- package/lib/locales/common/jaJP.js +6 -0
- package/lib/locales/common/kmKH.js +6 -0
- package/lib/locales/common/koKR.js +6 -0
- package/lib/locales/common/nbNO.js +6 -0
- package/lib/locales/common/nlNL.js +6 -0
- package/lib/locales/common/plPL.js +6 -0
- package/lib/locales/common/ptBR.js +6 -0
- package/lib/locales/common/ruRU.js +6 -0
- package/lib/locales/common/skSK.js +6 -0
- package/lib/locales/common/svSE.js +8 -2
- package/lib/locales/common/thTH.js +6 -0
- package/lib/locales/common/trTR.js +6 -0
- package/lib/locales/common/ugCN.js +6 -0
- package/lib/locales/common/ukUA.js +6 -0
- package/lib/locales/common/uzUZ.js +6 -0
- package/lib/locales/common/viVN.js +6 -0
- package/lib/locales/common/zhCN.js +6 -0
- package/lib/locales/common/zhTW.js +6 -0
- package/lib/locales/date/daDK.d.ts +3 -0
- package/lib/locales/date/daDK.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +6 -2
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/marquee/src/Marquee.js +4 -3
- package/lib/mention/src/Mention.d.ts +155 -14
- package/lib/mention/styles/light.d.ts +14 -1
- package/lib/menu/src/Menu.d.ts +314 -28
- package/lib/menu/src/MenuOption.d.ts +113 -9
- package/lib/menu/src/MenuOption.js +6 -4
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.js +8 -2
- package/lib/menu/src/Submenu.d.ts +114 -10
- package/lib/menu/src/use-menu-child.d.ts +2 -0
- package/lib/menu/src/use-menu-child.js +2 -1
- package/lib/menu/styles/light.d.ts +28 -2
- package/lib/message/src/Message.d.ts +1 -0
- package/lib/message/src/Message.js +3 -2
- package/lib/message/src/MessageProvider.d.ts +10 -1
- package/lib/message/src/styles/index.cssr.js +1 -0
- package/lib/message/styles/light.d.ts +1 -0
- package/lib/message/styles/light.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +10 -4
- package/lib/modal/src/BodyWrapper.js +7 -3
- package/lib/modal/src/Modal.d.ts +28 -11
- package/lib/modal/src/Modal.js +10 -4
- package/lib/modal/src/ModalEnvironment.d.ts +22 -10
- package/lib/modal/src/ModalEnvironment.js +18 -8
- package/lib/modal/src/ModalProvider.d.ts +2 -1
- package/lib/modal/src/ModalProvider.js +4 -2
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +3 -1
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +5 -5
- package/lib/pagination/src/Pagination.d.ts +460 -33
- package/lib/pagination/styles/light.d.ts +42 -3
- package/lib/popconfirm/src/Popconfirm.d.ts +159 -18
- package/lib/popconfirm/src/Popconfirm.js +20 -15
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +14 -1
- package/lib/popover/src/Popover.d.ts +133 -16
- package/lib/popover/src/Popover.js +17 -7
- package/lib/popover/src/PopoverBody.d.ts +129 -12
- package/lib/popover/src/PopoverBody.js +5 -2
- package/lib/popover/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/popover/src/styles/rtl.cssr.js +10 -0
- package/lib/popover/styles/dark.js +4 -0
- package/lib/popover/styles/index.d.ts +1 -0
- package/lib/popover/styles/index.js +3 -1
- package/lib/popover/styles/light.d.ts +27 -2
- package/lib/popover/styles/light.js +7 -2
- package/lib/popover/styles/rtl.d.ts +2 -0
- package/lib/popover/styles/rtl.js +13 -0
- package/lib/popselect/src/Popselect.d.ts +213 -72
- package/lib/popselect/src/Popselect.js +17 -7
- package/lib/popselect/src/PopselectPanel.d.ts +55 -7
- package/lib/popselect/styles/light.d.ts +14 -1
- package/lib/preset.js +17 -7
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Circle.js +11 -2
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/RadioButton.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +3 -7
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/select/src/Select.d.ts +164 -21
- package/lib/select/styles/light.d.ts +14 -1
- package/lib/styles.d.ts +3 -3
- package/lib/styles.js +5 -2
- package/lib/tabs/src/Tab.d.ts +3 -3
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/styles/index.cssr.js +4 -4
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/themes/dark.js +103 -101
- package/lib/themes/light.js +102 -100
- package/lib/time-picker/src/Panel.d.ts +59 -11
- package/lib/time-picker/src/TimePicker.d.ts +156 -15
- package/lib/time-picker/styles/light.d.ts +14 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +159 -18
- package/lib/tooltip/styles/light.d.ts +14 -1
- package/lib/transfer/src/Transfer.d.ts +154 -13
- package/lib/transfer/src/TransferFilter.d.ts +52 -4
- package/lib/transfer/src/TransferList.d.ts +52 -4
- package/lib/transfer/src/TransferListItem.d.ts +52 -4
- package/lib/transfer/styles/light.d.ts +14 -1
- package/lib/tree/src/Tree.d.ts +42 -38
- package/lib/tree/src/Tree.js +4 -3
- package/lib/tree/src/TreeNode.d.ts +2 -2
- package/lib/tree/src/TreeNodeContent.d.ts +3 -3
- package/lib/tree/src/styles/index.cssr.js +7 -2
- package/lib/tree-select/src/TreeSelect.d.ts +169 -26
- package/lib/tree-select/styles/index.d.ts +1 -0
- package/lib/tree-select/styles/index.js +3 -1
- package/lib/tree-select/styles/light.d.ts +14 -1
- package/lib/tree-select/styles/rtl.d.ts +2 -0
- package/lib/tree-select/styles/rtl.js +20 -0
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/upload/src/Upload.d.ts +1 -0
- package/lib/upload/src/Upload.js +4 -3
- package/lib/upload/src/UploadFile.d.ts +4 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/icons.d.ts +2 -2
- package/lib/upload/src/icons.js +12 -7
- package/lib/upload/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/upload/src/styles/rtl.cssr.js +10 -0
- package/lib/upload/styles/index.d.ts +1 -0
- package/lib/upload/styles/index.js +3 -1
- package/lib/upload/styles/rtl.d.ts +2 -0
- package/lib/upload/styles/rtl.js +11 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/package.json +30 -19
- package/volar.d.ts +24 -22
- package/web-types.json +599 -61
- package/es/avatar-group/src/interface.d.ts +0 -8
- package/lib/avatar-group/src/interface.d.ts +0 -8
- /package/es/{avatar-group/src/interface.mjs → _utils/ts/ts.mjs} +0 -0
- /package/lib/{avatar-group/src/interface.js → _utils/ts/ts.js} +0 -0
|
@@ -22,18 +22,19 @@ export const NMenuOption = defineComponent({
|
|
|
22
22
|
const MenuChild = useMenuChild(props);
|
|
23
23
|
const {
|
|
24
24
|
NSubmenu,
|
|
25
|
-
NMenu
|
|
25
|
+
NMenu,
|
|
26
|
+
NMenuOptionGroup
|
|
26
27
|
} = MenuChild;
|
|
27
28
|
const {
|
|
28
29
|
props: menuProps,
|
|
29
30
|
mergedClsPrefixRef,
|
|
30
31
|
mergedCollapsedRef
|
|
31
32
|
} = NMenu;
|
|
32
|
-
const
|
|
33
|
+
const parentDisabledRef = NSubmenu ? NSubmenu.mergedDisabledRef : NMenuOptionGroup ? NMenuOptionGroup.mergedDisabledRef : {
|
|
33
34
|
value: false
|
|
34
35
|
};
|
|
35
36
|
const mergedDisabledRef = computed(() => {
|
|
36
|
-
return
|
|
37
|
+
return parentDisabledRef.value || props.disabled;
|
|
37
38
|
});
|
|
38
39
|
function doClick(e) {
|
|
39
40
|
const {
|
|
@@ -82,8 +82,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
82
|
selected: boolean;
|
|
83
83
|
hover: boolean;
|
|
84
84
|
showArrow: boolean;
|
|
85
|
-
childActive: boolean;
|
|
86
85
|
collapsed: boolean;
|
|
86
|
+
childActive: boolean;
|
|
87
87
|
isEllipsisPlaceholder: boolean;
|
|
88
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
89
89
|
export default _default;
|
|
@@ -22,7 +22,7 @@ export declare const menuItemGroupProps: {
|
|
|
22
22
|
readonly title: PropType<string | (() => import("vue").VNodeChild)>;
|
|
23
23
|
readonly extra: PropType<string | (() => import("vue").VNodeChild)>;
|
|
24
24
|
};
|
|
25
|
-
export declare const menuItemGroupPropKeys: ("extra" | "root" | "title" | "
|
|
25
|
+
export declare const menuItemGroupPropKeys: ("extra" | "root" | "title" | "tmNodes" | "level" | "isGroup" | "tmNode" | "internalKey")[];
|
|
26
26
|
export declare const NMenuOptionGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
27
27
|
readonly tmNode: {
|
|
28
28
|
readonly type: PropType<TmNode>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, Fragment, h, inject, provide } from 'vue';
|
|
1
|
+
import { computed, defineComponent, Fragment, h, inject, provide } from 'vue';
|
|
2
2
|
import { keysOf, render } from "../../_utils/index.mjs";
|
|
3
|
-
import { menuInjectionKey, menuItemGroupInjectionKey
|
|
3
|
+
import { menuInjectionKey, menuItemGroupInjectionKey } from "./context.mjs";
|
|
4
4
|
import { useMenuChild } from "./use-menu-child.mjs";
|
|
5
5
|
import { useMenuChildProps } from "./use-menu-child-props.mjs";
|
|
6
6
|
import { itemRenderer } from "./utils.mjs";
|
|
@@ -19,10 +19,17 @@ export const NMenuOptionGroup = defineComponent({
|
|
|
19
19
|
name: 'MenuOptionGroup',
|
|
20
20
|
props: menuItemGroupProps,
|
|
21
21
|
setup(props) {
|
|
22
|
-
provide(submenuInjectionKey, null);
|
|
23
22
|
const MenuChild = useMenuChild(props);
|
|
23
|
+
const {
|
|
24
|
+
NSubmenu
|
|
25
|
+
} = MenuChild;
|
|
26
|
+
const mergedDisabledRef = computed(() => {
|
|
27
|
+
if (NSubmenu === null || NSubmenu === void 0 ? void 0 : NSubmenu.mergedDisabledRef.value) return true;
|
|
28
|
+
return props.tmNode.disabled;
|
|
29
|
+
});
|
|
24
30
|
provide(menuItemGroupInjectionKey, {
|
|
25
|
-
paddingLeftRef: MenuChild.paddingLeft
|
|
31
|
+
paddingLeftRef: MenuChild.paddingLeft,
|
|
32
|
+
mergedDisabledRef
|
|
26
33
|
});
|
|
27
34
|
const {
|
|
28
35
|
mergedClsPrefixRef,
|
package/es/menu/src/Submenu.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const submenuProps: {
|
|
|
35
35
|
readonly title: PropType<string | (() => VNodeChild)>;
|
|
36
36
|
readonly extra: PropType<string | (() => VNodeChild)>;
|
|
37
37
|
};
|
|
38
|
-
export declare const submenuPropKeys: ("extra" | "root" | "disabled" | "title" | "icon" | "onClick" | "
|
|
38
|
+
export declare const submenuPropKeys: ("extra" | "root" | "disabled" | "title" | "icon" | "onClick" | "tmNodes" | "level" | "isGroup" | "tmNode" | "internalKey" | "isEllipsisPlaceholder" | "rawNodes" | "domId" | "virtualChildActive")[];
|
|
39
39
|
export declare const NSubmenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
40
40
|
readonly rawNodes: {
|
|
41
41
|
readonly type: PropType<MenuMixedOption[]>;
|
|
@@ -176,7 +176,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
176
176
|
arrowOffsetVertical: string;
|
|
177
177
|
arrowHeight: string;
|
|
178
178
|
padding: string;
|
|
179
|
-
},
|
|
179
|
+
}, {
|
|
180
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
181
|
+
height: string;
|
|
182
|
+
width: string;
|
|
183
|
+
borderRadius: string;
|
|
184
|
+
color: string;
|
|
185
|
+
colorHover: string;
|
|
186
|
+
railInsetHorizontalBottom: string;
|
|
187
|
+
railInsetHorizontalTop: string;
|
|
188
|
+
railInsetVerticalRight: string;
|
|
189
|
+
railInsetVerticalLeft: string;
|
|
190
|
+
railColor: string;
|
|
191
|
+
}, any>;
|
|
192
|
+
}>;
|
|
180
193
|
}>;
|
|
181
194
|
Dropdown: import("../../_mixins").Theme<"Dropdown", {
|
|
182
195
|
optionHeightSmall: string;
|
|
@@ -246,7 +259,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
246
259
|
arrowOffsetVertical: string;
|
|
247
260
|
arrowHeight: string;
|
|
248
261
|
padding: string;
|
|
249
|
-
},
|
|
262
|
+
}, {
|
|
263
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
264
|
+
height: string;
|
|
265
|
+
width: string;
|
|
266
|
+
borderRadius: string;
|
|
267
|
+
color: string;
|
|
268
|
+
colorHover: string;
|
|
269
|
+
railInsetHorizontalBottom: string;
|
|
270
|
+
railInsetHorizontalTop: string;
|
|
271
|
+
railInsetVerticalRight: string;
|
|
272
|
+
railInsetVerticalLeft: string;
|
|
273
|
+
railColor: string;
|
|
274
|
+
}, any>;
|
|
275
|
+
}>;
|
|
250
276
|
}>;
|
|
251
277
|
};
|
|
252
278
|
peerOverrides: {
|
|
@@ -265,7 +291,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
265
291
|
arrowOffsetVertical: string;
|
|
266
292
|
arrowHeight: string;
|
|
267
293
|
padding: string;
|
|
268
|
-
},
|
|
294
|
+
}, {
|
|
295
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
296
|
+
height: string;
|
|
297
|
+
width: string;
|
|
298
|
+
borderRadius: string;
|
|
299
|
+
color: string;
|
|
300
|
+
colorHover: string;
|
|
301
|
+
railInsetHorizontalBottom: string;
|
|
302
|
+
railInsetHorizontalTop: string;
|
|
303
|
+
railInsetVerticalRight: string;
|
|
304
|
+
railInsetVerticalLeft: string;
|
|
305
|
+
railColor: string;
|
|
306
|
+
}, any>;
|
|
307
|
+
}>> | undefined;
|
|
269
308
|
} | undefined;
|
|
270
309
|
} | undefined;
|
|
271
310
|
Dropdown?: {
|
|
@@ -283,7 +322,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
283
322
|
arrowOffsetVertical: string;
|
|
284
323
|
arrowHeight: string;
|
|
285
324
|
padding: string;
|
|
286
|
-
},
|
|
325
|
+
}, {
|
|
326
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
327
|
+
height: string;
|
|
328
|
+
width: string;
|
|
329
|
+
borderRadius: string;
|
|
330
|
+
color: string;
|
|
331
|
+
colorHover: string;
|
|
332
|
+
railInsetHorizontalBottom: string;
|
|
333
|
+
railInsetHorizontalTop: string;
|
|
334
|
+
railInsetVerticalRight: string;
|
|
335
|
+
railInsetVerticalLeft: string;
|
|
336
|
+
railColor: string;
|
|
337
|
+
}, any>;
|
|
338
|
+
}>> | undefined;
|
|
287
339
|
} | undefined;
|
|
288
340
|
} | undefined;
|
|
289
341
|
};
|
|
@@ -391,7 +443,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
391
443
|
arrowOffsetVertical: string;
|
|
392
444
|
arrowHeight: string;
|
|
393
445
|
padding: string;
|
|
394
|
-
},
|
|
446
|
+
}, {
|
|
447
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
448
|
+
height: string;
|
|
449
|
+
width: string;
|
|
450
|
+
borderRadius: string;
|
|
451
|
+
color: string;
|
|
452
|
+
colorHover: string;
|
|
453
|
+
railInsetHorizontalBottom: string;
|
|
454
|
+
railInsetHorizontalTop: string;
|
|
455
|
+
railInsetVerticalRight: string;
|
|
456
|
+
railInsetVerticalLeft: string;
|
|
457
|
+
railColor: string;
|
|
458
|
+
}, any>;
|
|
459
|
+
}>;
|
|
395
460
|
}>;
|
|
396
461
|
Dropdown: import("../../_mixins").Theme<"Dropdown", {
|
|
397
462
|
optionHeightSmall: string;
|
|
@@ -461,7 +526,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
461
526
|
arrowOffsetVertical: string;
|
|
462
527
|
arrowHeight: string;
|
|
463
528
|
padding: string;
|
|
464
|
-
},
|
|
529
|
+
}, {
|
|
530
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
531
|
+
height: string;
|
|
532
|
+
width: string;
|
|
533
|
+
borderRadius: string;
|
|
534
|
+
color: string;
|
|
535
|
+
colorHover: string;
|
|
536
|
+
railInsetHorizontalBottom: string;
|
|
537
|
+
railInsetHorizontalTop: string;
|
|
538
|
+
railInsetVerticalRight: string;
|
|
539
|
+
railInsetVerticalLeft: string;
|
|
540
|
+
railColor: string;
|
|
541
|
+
}, any>;
|
|
542
|
+
}>;
|
|
465
543
|
}>;
|
|
466
544
|
};
|
|
467
545
|
peerOverrides: {
|
|
@@ -480,7 +558,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
558
|
arrowOffsetVertical: string;
|
|
481
559
|
arrowHeight: string;
|
|
482
560
|
padding: string;
|
|
483
|
-
},
|
|
561
|
+
}, {
|
|
562
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
563
|
+
height: string;
|
|
564
|
+
width: string;
|
|
565
|
+
borderRadius: string;
|
|
566
|
+
color: string;
|
|
567
|
+
colorHover: string;
|
|
568
|
+
railInsetHorizontalBottom: string;
|
|
569
|
+
railInsetHorizontalTop: string;
|
|
570
|
+
railInsetVerticalRight: string;
|
|
571
|
+
railInsetVerticalLeft: string;
|
|
572
|
+
railColor: string;
|
|
573
|
+
}, any>;
|
|
574
|
+
}>> | undefined;
|
|
484
575
|
} | undefined;
|
|
485
576
|
} | undefined;
|
|
486
577
|
Dropdown?: {
|
|
@@ -498,7 +589,20 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
498
589
|
arrowOffsetVertical: string;
|
|
499
590
|
arrowHeight: string;
|
|
500
591
|
padding: string;
|
|
501
|
-
},
|
|
592
|
+
}, {
|
|
593
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
594
|
+
height: string;
|
|
595
|
+
width: string;
|
|
596
|
+
borderRadius: string;
|
|
597
|
+
color: string;
|
|
598
|
+
colorHover: string;
|
|
599
|
+
railInsetHorizontalBottom: string;
|
|
600
|
+
railInsetHorizontalTop: string;
|
|
601
|
+
railInsetVerticalRight: string;
|
|
602
|
+
railInsetVerticalLeft: string;
|
|
603
|
+
railColor: string;
|
|
604
|
+
}, any>;
|
|
605
|
+
}>> | undefined;
|
|
502
606
|
} | undefined;
|
|
503
607
|
} | undefined;
|
|
504
608
|
};
|
|
@@ -557,8 +661,8 @@ export declare const NSubmenu: import("vue").DefineComponent<import("vue").Extra
|
|
|
557
661
|
}>> & Readonly<{}>, {
|
|
558
662
|
readonly root: boolean;
|
|
559
663
|
readonly disabled: boolean;
|
|
560
|
-
readonly isGroup: boolean;
|
|
561
664
|
readonly tmNodes: TmNode[];
|
|
665
|
+
readonly isGroup: boolean;
|
|
562
666
|
readonly isEllipsisPlaceholder: boolean;
|
|
563
667
|
readonly rawNodes: MenuMixedOption[];
|
|
564
668
|
readonly virtualChildActive: boolean;
|
|
@@ -25,6 +25,7 @@ export interface SubmenuInjection {
|
|
|
25
25
|
}
|
|
26
26
|
export interface MenuOptionGroupInjection {
|
|
27
27
|
paddingLeftRef: Ref<number | undefined>;
|
|
28
|
+
mergedDisabledRef: Ref<boolean>;
|
|
28
29
|
}
|
|
29
30
|
export interface UseMenuChild {
|
|
30
31
|
dropdownPlacement: ComputedRef<FollowerPlacement>;
|
|
@@ -34,5 +35,6 @@ export interface UseMenuChild {
|
|
|
34
35
|
iconMarginRight: ComputedRef<number>;
|
|
35
36
|
NMenu: MenuInjection;
|
|
36
37
|
NSubmenu: SubmenuInjection | null;
|
|
38
|
+
NMenuOptionGroup: MenuOptionGroupInjection | null;
|
|
37
39
|
}
|
|
38
40
|
export declare function useMenuChild(props: UseMenuChildProps): UseMenuChild;
|
|
@@ -119,7 +119,7 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
119
119
|
dividerColor: string;
|
|
120
120
|
};
|
|
121
121
|
export type MenuThemeVars = ReturnType<typeof self>;
|
|
122
|
-
declare const menuLight: import("../../_mixins
|
|
122
|
+
declare const menuLight: import("../../_mixins").Theme<"Menu", {
|
|
123
123
|
itemColorHoverInverted: string;
|
|
124
124
|
itemColorActiveInverted: string;
|
|
125
125
|
itemColorActiveHoverInverted: string;
|
|
@@ -200,14 +200,14 @@ declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
|
200
200
|
fontSize: string;
|
|
201
201
|
dividerColor: string;
|
|
202
202
|
}, {
|
|
203
|
-
Tooltip: import("../../_mixins
|
|
203
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
204
204
|
borderRadius: string;
|
|
205
205
|
boxShadow: string;
|
|
206
206
|
color: string;
|
|
207
207
|
textColor: string;
|
|
208
208
|
padding: string;
|
|
209
209
|
}, {
|
|
210
|
-
Popover: import("../../_mixins
|
|
210
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
211
211
|
fontSize: string;
|
|
212
212
|
borderRadius: string;
|
|
213
213
|
color: string;
|
|
@@ -220,9 +220,22 @@ declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
|
220
220
|
arrowOffsetVertical: string;
|
|
221
221
|
arrowHeight: string;
|
|
222
222
|
padding: string;
|
|
223
|
-
},
|
|
223
|
+
}, {
|
|
224
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
225
|
+
height: string;
|
|
226
|
+
width: string;
|
|
227
|
+
borderRadius: string;
|
|
228
|
+
color: string;
|
|
229
|
+
colorHover: string;
|
|
230
|
+
railInsetHorizontalBottom: string;
|
|
231
|
+
railInsetHorizontalTop: string;
|
|
232
|
+
railInsetVerticalRight: string;
|
|
233
|
+
railInsetVerticalLeft: string;
|
|
234
|
+
railColor: string;
|
|
235
|
+
}, any>;
|
|
236
|
+
}>;
|
|
224
237
|
}>;
|
|
225
|
-
Dropdown: import("../../_mixins
|
|
238
|
+
Dropdown: import("../../_mixins").Theme<"Dropdown", {
|
|
226
239
|
optionHeightSmall: string;
|
|
227
240
|
optionHeightMedium: string;
|
|
228
241
|
optionHeightLarge: string;
|
|
@@ -277,7 +290,7 @@ declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
|
277
290
|
optionIconPrefixWidthLarge: string;
|
|
278
291
|
optionIconPrefixWidthHuge: string;
|
|
279
292
|
}, {
|
|
280
|
-
Popover: import("../../_mixins
|
|
293
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
281
294
|
fontSize: string;
|
|
282
295
|
borderRadius: string;
|
|
283
296
|
color: string;
|
|
@@ -290,7 +303,20 @@ declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
|
290
303
|
arrowOffsetVertical: string;
|
|
291
304
|
arrowHeight: string;
|
|
292
305
|
padding: string;
|
|
293
|
-
},
|
|
306
|
+
}, {
|
|
307
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
308
|
+
height: string;
|
|
309
|
+
width: string;
|
|
310
|
+
borderRadius: string;
|
|
311
|
+
color: string;
|
|
312
|
+
colorHover: string;
|
|
313
|
+
railInsetHorizontalBottom: string;
|
|
314
|
+
railInsetHorizontalTop: string;
|
|
315
|
+
railInsetVerticalRight: string;
|
|
316
|
+
railInsetVerticalLeft: string;
|
|
317
|
+
railColor: string;
|
|
318
|
+
}, any>;
|
|
319
|
+
}>;
|
|
294
320
|
}>;
|
|
295
321
|
}>;
|
|
296
322
|
export default menuLight;
|
|
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
49
|
'--n-close-icon-color-hover': string;
|
|
50
50
|
'--n-line-height': string;
|
|
51
51
|
'--n-border-radius': string;
|
|
52
|
+
'--n-border': string;
|
|
52
53
|
}> | undefined;
|
|
53
54
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
54
55
|
onRender: (() => void) | undefined;
|
|
@@ -50,6 +50,7 @@ export default defineComponent({
|
|
|
50
50
|
fontSize,
|
|
51
51
|
lineHeight,
|
|
52
52
|
borderRadius,
|
|
53
|
+
border,
|
|
53
54
|
iconColorInfo,
|
|
54
55
|
iconColorSuccess,
|
|
55
56
|
iconColorWarning,
|
|
@@ -93,7 +94,8 @@ export default defineComponent({
|
|
|
93
94
|
'--n-close-icon-color-pressed': closeIconColorPressed,
|
|
94
95
|
'--n-close-icon-color-hover': closeIconColorHover,
|
|
95
96
|
'--n-line-height': lineHeight,
|
|
96
|
-
'--n-border-radius': borderRadius
|
|
97
|
+
'--n-border-radius': borderRadius,
|
|
98
|
+
'--n-border': border
|
|
97
99
|
};
|
|
98
100
|
});
|
|
99
101
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass('message', computed(() => props.type[0]), cssVarsRef, {}) : undefined;
|
|
@@ -104,6 +104,7 @@ export declare const messageProviderProps: {
|
|
|
104
104
|
loadingColor: string;
|
|
105
105
|
lineHeight: string;
|
|
106
106
|
borderRadius: string;
|
|
107
|
+
border: string;
|
|
107
108
|
margin: string;
|
|
108
109
|
padding: string;
|
|
109
110
|
maxWidth: string;
|
|
@@ -174,6 +175,7 @@ export declare const messageProviderProps: {
|
|
|
174
175
|
loadingColor: string;
|
|
175
176
|
lineHeight: string;
|
|
176
177
|
borderRadius: string;
|
|
178
|
+
border: string;
|
|
177
179
|
margin: string;
|
|
178
180
|
padding: string;
|
|
179
181
|
maxWidth: string;
|
|
@@ -244,6 +246,7 @@ export declare const messageProviderProps: {
|
|
|
244
246
|
loadingColor: string;
|
|
245
247
|
lineHeight: string;
|
|
246
248
|
borderRadius: string;
|
|
249
|
+
border: string;
|
|
247
250
|
margin: string;
|
|
248
251
|
padding: string;
|
|
249
252
|
maxWidth: string;
|
|
@@ -332,6 +335,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
332
335
|
loadingColor: string;
|
|
333
336
|
lineHeight: string;
|
|
334
337
|
borderRadius: string;
|
|
338
|
+
border: string;
|
|
335
339
|
margin: string;
|
|
336
340
|
padding: string;
|
|
337
341
|
maxWidth: string;
|
|
@@ -402,6 +406,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
402
406
|
loadingColor: string;
|
|
403
407
|
lineHeight: string;
|
|
404
408
|
borderRadius: string;
|
|
409
|
+
border: string;
|
|
405
410
|
margin: string;
|
|
406
411
|
padding: string;
|
|
407
412
|
maxWidth: string;
|
|
@@ -472,6 +477,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
472
477
|
loadingColor: string;
|
|
473
478
|
lineHeight: string;
|
|
474
479
|
borderRadius: string;
|
|
480
|
+
border: string;
|
|
475
481
|
margin: string;
|
|
476
482
|
padding: string;
|
|
477
483
|
maxWidth: string;
|
|
@@ -584,6 +590,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
584
590
|
loadingColor: string;
|
|
585
591
|
lineHeight: string;
|
|
586
592
|
borderRadius: string;
|
|
593
|
+
border: string;
|
|
587
594
|
margin: string;
|
|
588
595
|
padding: string;
|
|
589
596
|
maxWidth: string;
|
|
@@ -654,6 +661,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
654
661
|
loadingColor: string;
|
|
655
662
|
lineHeight: string;
|
|
656
663
|
borderRadius: string;
|
|
664
|
+
border: string;
|
|
657
665
|
margin: string;
|
|
658
666
|
padding: string;
|
|
659
667
|
maxWidth: string;
|
|
@@ -724,6 +732,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
724
732
|
loadingColor: string;
|
|
725
733
|
lineHeight: string;
|
|
726
734
|
borderRadius: string;
|
|
735
|
+
border: string;
|
|
727
736
|
margin: string;
|
|
728
737
|
padding: string;
|
|
729
738
|
maxWidth: string;
|
|
@@ -737,8 +746,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
737
746
|
}, any>>>;
|
|
738
747
|
}>> & Readonly<{}>, {
|
|
739
748
|
duration: number;
|
|
740
|
-
placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
741
749
|
closable: boolean;
|
|
750
|
+
placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
742
751
|
keepAliveOnHover: boolean;
|
|
743
752
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
744
753
|
export default _default;
|
|
@@ -56,6 +56,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
56
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
57
57
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
58
58
|
actionStyle: PropType<string | import("vue").CSSProperties>;
|
|
59
|
+
closeFocusable: BooleanConstructor;
|
|
59
60
|
headerClass: StringConstructor;
|
|
60
61
|
headerStyle: PropType<import("vue").CSSProperties | string>;
|
|
61
62
|
headerExtraClass: StringConstructor;
|
|
@@ -64,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
65
|
footerStyle: PropType<import("vue").CSSProperties | string>;
|
|
65
66
|
embedded: BooleanConstructor;
|
|
66
67
|
segmented: {
|
|
67
|
-
readonly type: PropType<boolean | import("
|
|
68
|
+
readonly type: PropType<boolean | import("../..").CardSegmented>;
|
|
68
69
|
readonly default: false;
|
|
69
70
|
};
|
|
70
71
|
size: {
|
|
@@ -102,6 +103,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
102
103
|
type: PropType<boolean | ModalDraggableOptions>;
|
|
103
104
|
default: boolean;
|
|
104
105
|
};
|
|
106
|
+
maskHidden: BooleanConstructor;
|
|
105
107
|
}>, {
|
|
106
108
|
mergedTheme: import("vue").Ref<{
|
|
107
109
|
common: import("../..").ThemeCommonVars;
|
|
@@ -1231,6 +1233,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1231
1233
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1232
1234
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
1233
1235
|
actionStyle: PropType<string | import("vue").CSSProperties>;
|
|
1236
|
+
closeFocusable: BooleanConstructor;
|
|
1234
1237
|
headerClass: StringConstructor;
|
|
1235
1238
|
headerStyle: PropType<import("vue").CSSProperties | string>;
|
|
1236
1239
|
headerExtraClass: StringConstructor;
|
|
@@ -1239,7 +1242,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1239
1242
|
footerStyle: PropType<import("vue").CSSProperties | string>;
|
|
1240
1243
|
embedded: BooleanConstructor;
|
|
1241
1244
|
segmented: {
|
|
1242
|
-
readonly type: PropType<boolean | import("
|
|
1245
|
+
readonly type: PropType<boolean | import("../..").CardSegmented>;
|
|
1243
1246
|
readonly default: false;
|
|
1244
1247
|
};
|
|
1245
1248
|
size: {
|
|
@@ -1277,20 +1280,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1277
1280
|
type: PropType<boolean | ModalDraggableOptions>;
|
|
1278
1281
|
default: boolean;
|
|
1279
1282
|
};
|
|
1283
|
+
maskHidden: BooleanConstructor;
|
|
1280
1284
|
}>> & Readonly<{}>, {
|
|
1281
|
-
type: "error" | "default" | "info" | "
|
|
1285
|
+
type: "error" | "default" | "info" | "warning" | "success";
|
|
1282
1286
|
tag: keyof HTMLElementTagNameMap;
|
|
1283
1287
|
size: "small" | "medium" | "large" | "huge";
|
|
1284
1288
|
draggable: boolean | ModalDraggableOptions;
|
|
1285
1289
|
loading: boolean;
|
|
1286
1290
|
autoFocus: boolean;
|
|
1287
|
-
bordered: boolean;
|
|
1288
1291
|
showIcon: boolean;
|
|
1292
|
+
bordered: boolean;
|
|
1289
1293
|
closable: boolean;
|
|
1290
|
-
hoverable: boolean;
|
|
1291
1294
|
embedded: boolean;
|
|
1292
|
-
segmented: boolean | import("
|
|
1293
|
-
|
|
1295
|
+
segmented: boolean | import("../..").CardSegmented;
|
|
1296
|
+
hoverable: boolean;
|
|
1297
|
+
closeFocusable: boolean;
|
|
1294
1298
|
blockScroll: boolean;
|
|
1299
|
+
trapFocus: boolean;
|
|
1300
|
+
maskHidden: boolean;
|
|
1295
1301
|
}, SlotsType<ModalSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1296
1302
|
export default _default;
|
|
@@ -38,7 +38,8 @@ export default defineComponent({
|
|
|
38
38
|
draggable: {
|
|
39
39
|
type: [Boolean, Object],
|
|
40
40
|
default: false
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
maskHidden: Boolean
|
|
42
43
|
}, presetProps), {
|
|
43
44
|
renderMask: Function,
|
|
44
45
|
// events
|
|
@@ -235,7 +236,7 @@ export default defineComponent({
|
|
|
235
236
|
}
|
|
236
237
|
return this.displayDirective === 'show' || this.displayed || this.show ? withDirectives(h("div", {
|
|
237
238
|
role: "none",
|
|
238
|
-
class: `${mergedClsPrefix}-modal-body-wrapper`
|
|
239
|
+
class: [`${mergedClsPrefix}-modal-body-wrapper`, this.maskHidden && `${mergedClsPrefix}-modal-body-wrapper--mask-hidden`]
|
|
239
240
|
}, h(NScrollbar, {
|
|
240
241
|
ref: "scrollbarRef",
|
|
241
242
|
theme: this.mergedTheme.peers.Scrollbar,
|
|
@@ -245,7 +246,7 @@ export default defineComponent({
|
|
|
245
246
|
default: () => {
|
|
246
247
|
var _a;
|
|
247
248
|
return [(_a = this.renderMask) === null || _a === void 0 ? void 0 : _a.call(this), h(VFocusTrap, {
|
|
248
|
-
disabled: !this.trapFocus,
|
|
249
|
+
disabled: !this.trapFocus || this.maskHidden,
|
|
249
250
|
active: this.show,
|
|
250
251
|
onEsc: this.onEsc,
|
|
251
252
|
autoFocus: this.autoFocus
|