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
package/es/modal/src/Modal.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ export declare const modalProps: {
|
|
|
25
25
|
onBeforeHide: PropType<() => void>;
|
|
26
26
|
onAfterHide: PropType<() => void>;
|
|
27
27
|
onHide: PropType<(value: false) => void>;
|
|
28
|
+
unstableShowMask: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
28
32
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
29
33
|
type: {
|
|
30
34
|
readonly type: PropType<"info" | "success" | "warning" | "error" | "default">;
|
|
@@ -54,6 +58,7 @@ export declare const modalProps: {
|
|
|
54
58
|
contentStyle: PropType<string | CSSProperties>;
|
|
55
59
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
56
60
|
actionStyle: PropType<string | CSSProperties>;
|
|
61
|
+
closeFocusable: BooleanConstructor;
|
|
57
62
|
headerClass: StringConstructor;
|
|
58
63
|
headerStyle: PropType<CSSProperties | string>;
|
|
59
64
|
headerExtraClass: StringConstructor;
|
|
@@ -62,7 +67,7 @@ export declare const modalProps: {
|
|
|
62
67
|
footerStyle: PropType<CSSProperties | string>;
|
|
63
68
|
embedded: BooleanConstructor;
|
|
64
69
|
segmented: {
|
|
65
|
-
readonly type: PropType<boolean | import("
|
|
70
|
+
readonly type: PropType<boolean | import("../..").CardSegmented>;
|
|
66
71
|
readonly default: false;
|
|
67
72
|
};
|
|
68
73
|
size: {
|
|
@@ -79,7 +84,7 @@ export declare const modalProps: {
|
|
|
79
84
|
footer: PropType<() => import("vue").VNodeChild>;
|
|
80
85
|
headerExtra: PropType<() => import("vue").VNodeChild>;
|
|
81
86
|
show: BooleanConstructor;
|
|
82
|
-
|
|
87
|
+
showMask: {
|
|
83
88
|
type: BooleanConstructor;
|
|
84
89
|
default: boolean;
|
|
85
90
|
};
|
|
@@ -1019,6 +1024,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1019
1024
|
onBeforeHide: PropType<() => void>;
|
|
1020
1025
|
onAfterHide: PropType<() => void>;
|
|
1021
1026
|
onHide: PropType<(value: false) => void>;
|
|
1027
|
+
unstableShowMask: {
|
|
1028
|
+
type: BooleanConstructor;
|
|
1029
|
+
default: undefined;
|
|
1030
|
+
};
|
|
1022
1031
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
1023
1032
|
type: {
|
|
1024
1033
|
readonly type: PropType<"info" | "success" | "warning" | "error" | "default">;
|
|
@@ -1048,6 +1057,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1048
1057
|
contentStyle: PropType<string | CSSProperties>;
|
|
1049
1058
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
1050
1059
|
actionStyle: PropType<string | CSSProperties>;
|
|
1060
|
+
closeFocusable: BooleanConstructor;
|
|
1051
1061
|
headerClass: StringConstructor;
|
|
1052
1062
|
headerStyle: PropType<CSSProperties | string>;
|
|
1053
1063
|
headerExtraClass: StringConstructor;
|
|
@@ -1056,7 +1066,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1056
1066
|
footerStyle: PropType<CSSProperties | string>;
|
|
1057
1067
|
embedded: BooleanConstructor;
|
|
1058
1068
|
segmented: {
|
|
1059
|
-
readonly type: PropType<boolean | import("
|
|
1069
|
+
readonly type: PropType<boolean | import("../..").CardSegmented>;
|
|
1060
1070
|
readonly default: false;
|
|
1061
1071
|
};
|
|
1062
1072
|
size: {
|
|
@@ -1073,7 +1083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1073
1083
|
footer: PropType<() => import("vue").VNodeChild>;
|
|
1074
1084
|
headerExtra: PropType<() => import("vue").VNodeChild>;
|
|
1075
1085
|
show: BooleanConstructor;
|
|
1076
|
-
|
|
1086
|
+
showMask: {
|
|
1077
1087
|
type: BooleanConstructor;
|
|
1078
1088
|
default: boolean;
|
|
1079
1089
|
};
|
|
@@ -2028,6 +2038,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2028
2038
|
onBeforeHide: PropType<() => void>;
|
|
2029
2039
|
onAfterHide: PropType<() => void>;
|
|
2030
2040
|
onHide: PropType<(value: false) => void>;
|
|
2041
|
+
unstableShowMask: {
|
|
2042
|
+
type: BooleanConstructor;
|
|
2043
|
+
default: undefined;
|
|
2044
|
+
};
|
|
2031
2045
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
2032
2046
|
type: {
|
|
2033
2047
|
readonly type: PropType<"info" | "success" | "warning" | "error" | "default">;
|
|
@@ -2057,6 +2071,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2057
2071
|
contentStyle: PropType<string | CSSProperties>;
|
|
2058
2072
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
2059
2073
|
actionStyle: PropType<string | CSSProperties>;
|
|
2074
|
+
closeFocusable: BooleanConstructor;
|
|
2060
2075
|
headerClass: StringConstructor;
|
|
2061
2076
|
headerStyle: PropType<CSSProperties | string>;
|
|
2062
2077
|
headerExtraClass: StringConstructor;
|
|
@@ -2065,7 +2080,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2065
2080
|
footerStyle: PropType<CSSProperties | string>;
|
|
2066
2081
|
embedded: BooleanConstructor;
|
|
2067
2082
|
segmented: {
|
|
2068
|
-
readonly type: PropType<boolean | import("
|
|
2083
|
+
readonly type: PropType<boolean | import("../..").CardSegmented>;
|
|
2069
2084
|
readonly default: false;
|
|
2070
2085
|
};
|
|
2071
2086
|
size: {
|
|
@@ -2082,7 +2097,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2082
2097
|
footer: PropType<() => import("vue").VNodeChild>;
|
|
2083
2098
|
headerExtra: PropType<() => import("vue").VNodeChild>;
|
|
2084
2099
|
show: BooleanConstructor;
|
|
2085
|
-
|
|
2100
|
+
showMask: {
|
|
2086
2101
|
type: BooleanConstructor;
|
|
2087
2102
|
default: boolean;
|
|
2088
2103
|
};
|
|
@@ -2994,27 +3009,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2994
3009
|
}, any>;
|
|
2995
3010
|
}>>>;
|
|
2996
3011
|
}>> & Readonly<{}>, {
|
|
2997
|
-
type: "error" | "default" | "info" | "
|
|
3012
|
+
type: "error" | "default" | "info" | "warning" | "success";
|
|
2998
3013
|
tag: keyof HTMLElementTagNameMap;
|
|
2999
3014
|
size: "small" | "medium" | "large" | "huge";
|
|
3000
3015
|
show: boolean;
|
|
3001
3016
|
transformOrigin: "center" | "mouse";
|
|
3002
3017
|
loading: boolean;
|
|
3003
3018
|
autoFocus: boolean;
|
|
3004
|
-
bordered: boolean;
|
|
3005
3019
|
showIcon: boolean;
|
|
3020
|
+
bordered: boolean;
|
|
3006
3021
|
closable: boolean;
|
|
3007
|
-
displayDirective: "show" | "if";
|
|
3008
|
-
hoverable: boolean;
|
|
3009
3022
|
embedded: boolean;
|
|
3010
|
-
segmented: boolean | import("
|
|
3023
|
+
segmented: boolean | import("../..").CardSegmented;
|
|
3024
|
+
hoverable: boolean;
|
|
3025
|
+
closeFocusable: boolean;
|
|
3026
|
+
displayDirective: "show" | "if";
|
|
3027
|
+
blockScroll: boolean;
|
|
3028
|
+
closeOnEsc: boolean;
|
|
3029
|
+
maskClosable: boolean;
|
|
3030
|
+
showMask: boolean;
|
|
3031
|
+
trapFocus: boolean;
|
|
3011
3032
|
internalDialog: boolean;
|
|
3012
3033
|
internalModal: boolean;
|
|
3013
3034
|
internalAppear: boolean | undefined;
|
|
3014
3035
|
unstableShowMask: boolean;
|
|
3015
|
-
maskClosable: boolean;
|
|
3016
|
-
trapFocus: boolean;
|
|
3017
|
-
closeOnEsc: boolean;
|
|
3018
|
-
blockScroll: boolean;
|
|
3019
3036
|
}, SlotsType<ModalSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3020
3037
|
export default _default;
|
package/es/modal/src/Modal.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { presetProps, presetPropsKeys } from "./presetProps.mjs";
|
|
|
13
13
|
import style from "./styles/index.cssr.mjs";
|
|
14
14
|
export const modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), {
|
|
15
15
|
show: Boolean,
|
|
16
|
-
|
|
16
|
+
showMask: {
|
|
17
17
|
type: Boolean,
|
|
18
18
|
default: true
|
|
19
19
|
},
|
|
@@ -72,7 +72,11 @@ export const modalProps = Object.assign(Object.assign(Object.assign(Object.assig
|
|
|
72
72
|
overlayStyle: [String, Object],
|
|
73
73
|
onBeforeHide: Function,
|
|
74
74
|
onAfterHide: Function,
|
|
75
|
-
onHide: Function
|
|
75
|
+
onHide: Function,
|
|
76
|
+
unstableShowMask: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: undefined
|
|
79
|
+
}
|
|
76
80
|
});
|
|
77
81
|
export default defineComponent({
|
|
78
82
|
name: 'Modal',
|
|
@@ -93,6 +97,9 @@ export default defineComponent({
|
|
|
93
97
|
if (props.overlayStyle) {
|
|
94
98
|
warnOnce('modal', '`overlay-style` is deprecated, please use `style` instead.');
|
|
95
99
|
}
|
|
100
|
+
if (props.unstableShowMask) {
|
|
101
|
+
warnOnce('modal', '`unstable-show-mask` has been removed, please use `show-mask` instead.');
|
|
102
|
+
}
|
|
96
103
|
}
|
|
97
104
|
const containerRef = ref(null);
|
|
98
105
|
const {
|
|
@@ -275,7 +282,7 @@ export default defineComponent({
|
|
|
275
282
|
var _a;
|
|
276
283
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
277
284
|
const {
|
|
278
|
-
|
|
285
|
+
showMask
|
|
279
286
|
} = this;
|
|
280
287
|
return withDirectives(h("div", {
|
|
281
288
|
role: "none",
|
|
@@ -292,7 +299,8 @@ export default defineComponent({
|
|
|
292
299
|
autoFocus: this.autoFocus,
|
|
293
300
|
trapFocus: this.trapFocus,
|
|
294
301
|
draggable: this.draggable,
|
|
295
|
-
blockScroll: this.blockScroll
|
|
302
|
+
blockScroll: this.blockScroll,
|
|
303
|
+
maskHidden: !showMask
|
|
296
304
|
}, this.presetProps, {
|
|
297
305
|
onEsc: this.handleEsc,
|
|
298
306
|
onClose: this.handleCloseClick,
|
|
@@ -301,8 +309,8 @@ export default defineComponent({
|
|
|
301
309
|
onBeforeLeave: this.handleBeforeLeave,
|
|
302
310
|
onAfterEnter: this.onAfterEnter,
|
|
303
311
|
onAfterLeave: this.handleAfterLeave,
|
|
304
|
-
onClickoutside:
|
|
305
|
-
renderMask:
|
|
312
|
+
onClickoutside: showMask ? undefined : this.handleClickoutside,
|
|
313
|
+
renderMask: showMask ? () => {
|
|
306
314
|
var _a;
|
|
307
315
|
return h(Transition, {
|
|
308
316
|
name: "fade-in-transition",
|
|
@@ -29,6 +29,10 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
29
29
|
onBeforeHide: PropType<() => void>;
|
|
30
30
|
onAfterHide: PropType<() => void>;
|
|
31
31
|
onHide: PropType<(value: false) => void>;
|
|
32
|
+
unstableShowMask: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
32
36
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
33
37
|
type: {
|
|
34
38
|
readonly type: PropType<"info" | "success" | "warning" | "error" | "default">;
|
|
@@ -58,6 +62,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
58
62
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
59
63
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
60
64
|
actionStyle: PropType<string | import("vue").CSSProperties>;
|
|
65
|
+
closeFocusable: BooleanConstructor;
|
|
61
66
|
headerClass: StringConstructor;
|
|
62
67
|
headerStyle: PropType<import("vue").CSSProperties | string>;
|
|
63
68
|
headerExtraClass: StringConstructor;
|
|
@@ -83,7 +88,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
83
88
|
footer: PropType<() => import("vue").VNodeChild>;
|
|
84
89
|
headerExtra: PropType<() => import("vue").VNodeChild>;
|
|
85
90
|
show: BooleanConstructor;
|
|
86
|
-
|
|
91
|
+
showMask: {
|
|
87
92
|
type: BooleanConstructor;
|
|
88
93
|
default: boolean;
|
|
89
94
|
};
|
|
@@ -1034,6 +1039,10 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
1034
1039
|
onBeforeHide: PropType<() => void>;
|
|
1035
1040
|
onAfterHide: PropType<() => void>;
|
|
1036
1041
|
onHide: PropType<(value: false) => void>;
|
|
1042
|
+
unstableShowMask: {
|
|
1043
|
+
type: BooleanConstructor;
|
|
1044
|
+
default: undefined;
|
|
1045
|
+
};
|
|
1037
1046
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
1038
1047
|
type: {
|
|
1039
1048
|
readonly type: PropType<"info" | "success" | "warning" | "error" | "default">;
|
|
@@ -1063,6 +1072,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
1063
1072
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1064
1073
|
actionClass: PropType<string | Array<string | undefined>>;
|
|
1065
1074
|
actionStyle: PropType<string | import("vue").CSSProperties>;
|
|
1075
|
+
closeFocusable: BooleanConstructor;
|
|
1066
1076
|
headerClass: StringConstructor;
|
|
1067
1077
|
headerStyle: PropType<import("vue").CSSProperties | string>;
|
|
1068
1078
|
headerExtraClass: StringConstructor;
|
|
@@ -1088,7 +1098,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
1088
1098
|
footer: PropType<() => import("vue").VNodeChild>;
|
|
1089
1099
|
headerExtra: PropType<() => import("vue").VNodeChild>;
|
|
1090
1100
|
show: BooleanConstructor;
|
|
1091
|
-
|
|
1101
|
+
showMask: {
|
|
1092
1102
|
type: BooleanConstructor;
|
|
1093
1103
|
default: boolean;
|
|
1094
1104
|
};
|
|
@@ -2000,26 +2010,28 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
2000
2010
|
}, any>;
|
|
2001
2011
|
}>>>;
|
|
2002
2012
|
}>> & Readonly<{}>, {
|
|
2003
|
-
type: "error" | "default" | "info" | "
|
|
2013
|
+
type: "error" | "default" | "info" | "warning" | "success";
|
|
2004
2014
|
tag: keyof HTMLElementTagNameMap;
|
|
2005
2015
|
size: "small" | "medium" | "large" | "huge";
|
|
2006
2016
|
show: boolean;
|
|
2007
2017
|
transformOrigin: "center" | "mouse";
|
|
2008
2018
|
loading: boolean;
|
|
2009
2019
|
autoFocus: boolean;
|
|
2010
|
-
bordered: boolean;
|
|
2011
2020
|
showIcon: boolean;
|
|
2021
|
+
bordered: boolean;
|
|
2012
2022
|
closable: boolean;
|
|
2013
|
-
displayDirective: "show" | "if";
|
|
2014
|
-
hoverable: boolean;
|
|
2015
2023
|
embedded: boolean;
|
|
2016
2024
|
segmented: boolean | import("../..").CardSegmented;
|
|
2025
|
+
hoverable: boolean;
|
|
2026
|
+
closeFocusable: boolean;
|
|
2027
|
+
displayDirective: "show" | "if";
|
|
2028
|
+
blockScroll: boolean;
|
|
2029
|
+
closeOnEsc: boolean;
|
|
2030
|
+
maskClosable: boolean;
|
|
2031
|
+
showMask: boolean;
|
|
2032
|
+
trapFocus: boolean;
|
|
2017
2033
|
internalDialog: boolean;
|
|
2018
2034
|
internalModal: boolean;
|
|
2019
2035
|
internalAppear: boolean | undefined;
|
|
2020
2036
|
unstableShowMask: boolean;
|
|
2021
|
-
maskClosable: boolean;
|
|
2022
|
-
trapFocus: boolean;
|
|
2023
|
-
closeOnEsc: boolean;
|
|
2024
|
-
blockScroll: boolean;
|
|
2025
2037
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CSSProperties, DefineComponent, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
1
|
+
import type { CSSProperties, DefineComponent, ExtractPropTypes, PropType, Ref, VNodeChild } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes, Mutable } from '../../_utils';
|
|
3
3
|
import type { modalProps } from './Modal';
|
|
4
4
|
export type ModalOptions = Mutable<Omit<Partial<ExtractPropTypes<typeof modalProps>>, 'internalStyle'> & {
|
|
5
5
|
class?: any;
|
|
6
6
|
style?: string | CSSProperties;
|
|
7
|
+
render?: () => VNodeChild;
|
|
7
8
|
}>;
|
|
8
9
|
export type ModalReactive = {
|
|
9
10
|
readonly key: string;
|
|
@@ -56,7 +56,7 @@ export const NModalProvider = defineComponent({
|
|
|
56
56
|
var _a, _b;
|
|
57
57
|
return h(Fragment, null, [this.modalList.map(modal => {
|
|
58
58
|
var _a;
|
|
59
|
-
return h(NModalEnvironment, omit(modal, ['destroy'], {
|
|
59
|
+
return h(NModalEnvironment, omit(modal, ['destroy', 'render'], {
|
|
60
60
|
to: (_a = modal.to) !== null && _a !== void 0 ? _a : this.to,
|
|
61
61
|
ref: inst => {
|
|
62
62
|
if (inst === null) {
|
|
@@ -67,7 +67,9 @@ export const NModalProvider = defineComponent({
|
|
|
67
67
|
},
|
|
68
68
|
internalKey: modal.key,
|
|
69
69
|
onInternalAfterLeave: this.handleAfterLeave
|
|
70
|
-
})
|
|
70
|
+
}), {
|
|
71
|
+
default: modal.render
|
|
72
|
+
});
|
|
71
73
|
}), (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -31,6 +31,7 @@ declare const presetProps: {
|
|
|
31
31
|
onPositiveClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
32
32
|
onNegativeClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
33
33
|
onClose: import("vue").PropType<() => void>;
|
|
34
|
+
closeFocusable: BooleanConstructor;
|
|
34
35
|
headerClass: StringConstructor;
|
|
35
36
|
headerStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
36
37
|
headerExtraClass: StringConstructor;
|
|
@@ -39,7 +40,7 @@ declare const presetProps: {
|
|
|
39
40
|
footerStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
40
41
|
embedded: BooleanConstructor;
|
|
41
42
|
segmented: {
|
|
42
|
-
readonly type: import("vue").PropType<boolean | import("
|
|
43
|
+
readonly type: import("vue").PropType<boolean | import("../..").CardSegmented>;
|
|
43
44
|
readonly default: false;
|
|
44
45
|
};
|
|
45
46
|
size: {
|
|
@@ -56,5 +57,5 @@ declare const presetProps: {
|
|
|
56
57
|
footer: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
57
58
|
headerExtra: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
58
59
|
};
|
|
59
|
-
declare const presetPropsKeys: ("type" | "tag" | "content" | "size" | "footer" | "title" | "cover" | "icon" | "role" | "onClose" | "action" | "loading" | "
|
|
60
|
+
declare const presetPropsKeys: ("type" | "tag" | "content" | "size" | "footer" | "title" | "cover" | "icon" | "role" | "onClose" | "action" | "loading" | "showIcon" | "bordered" | "closable" | "iconPlacement" | "contentClass" | "contentStyle" | "headerClass" | "headerStyle" | "headerExtraClass" | "headerExtraStyle" | "footerClass" | "footerStyle" | "embedded" | "segmented" | "hoverable" | "headerExtra" | "closeFocusable" | "negativeText" | "positiveText" | "positiveButtonProps" | "negativeButtonProps" | "titleClass" | "titleStyle" | "actionClass" | "actionStyle" | "onPositiveClick" | "onNegativeClick")[];
|
|
60
61
|
export { presetProps, presetPropsKeys };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fadeInScaleUpTransition } from "../../../_styles/transitions/fade-in-scale-up.cssr.mjs";
|
|
2
2
|
import { fadeInTransition } from "../../../_styles/transitions/fade-in.cssr.mjs";
|
|
3
|
-
import { c, cB } from "../../../_utils/cssr/index.mjs";
|
|
3
|
+
import { c, cB, cM } from "../../../_utils/cssr/index.mjs";
|
|
4
4
|
import { DRAGGABLE_CLASS } from "../composables.mjs";
|
|
5
5
|
// vars:
|
|
6
6
|
// --n-bezier-ease-out
|
|
@@ -37,7 +37,9 @@ export default c([cB('modal-container', `
|
|
|
37
37
|
min-height: 100%;
|
|
38
38
|
display: flex;
|
|
39
39
|
position: relative;
|
|
40
|
-
`)
|
|
40
|
+
`), cM('mask-hidden', `pointer-events: none;`, [c('> *', `
|
|
41
|
+
pointer-events: all;
|
|
42
|
+
`)])]), cB('modal', `
|
|
41
43
|
position: relative;
|
|
42
44
|
align-self: center;
|
|
43
45
|
color: var(--n-text-color);
|
|
@@ -22,7 +22,7 @@ export declare const notificationProps: {
|
|
|
22
22
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
23
23
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
24
24
|
};
|
|
25
|
-
export declare const notificationPropKeys: ("type" | "meta" | "content" | "description" | "title" | "onMouseenter" | "onMouseleave" | "onClose" | "action" | "
|
|
25
|
+
export declare const notificationPropKeys: ("type" | "meta" | "content" | "description" | "title" | "onMouseenter" | "onMouseleave" | "onClose" | "action" | "closable" | "avatar" | "keepAliveOnHover")[];
|
|
26
26
|
export declare const Notification: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
27
27
|
readonly closable: {
|
|
28
28
|
readonly type: BooleanConstructor;
|
|
@@ -108,7 +108,7 @@ export declare const Notification: import("vue").DefineComponent<import("vue").E
|
|
|
108
108
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
109
109
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
110
110
|
}>> & Readonly<{}>, {
|
|
111
|
-
readonly type: "error" | "default" | "info" | "
|
|
111
|
+
readonly type: "error" | "default" | "info" | "warning" | "success";
|
|
112
112
|
readonly closable: boolean;
|
|
113
113
|
readonly keepAliveOnHover: boolean;
|
|
114
114
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -110,7 +110,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
|
|
|
110
110
|
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
111
111
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
112
112
|
}>> & Readonly<{}>, {
|
|
113
|
-
type: "error" | "default" | "info" | "
|
|
113
|
+
type: "error" | "default" | "info" | "warning" | "success";
|
|
114
114
|
closable: boolean;
|
|
115
115
|
keepAliveOnHover: boolean;
|
|
116
116
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -337,7 +337,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
337
337
|
readonly destroy: () => void;
|
|
338
338
|
readonly hide: () => void;
|
|
339
339
|
readonly deactivate: () => void;
|
|
340
|
-
type?: "error" | "default" | "info" | "
|
|
340
|
+
type?: "error" | "default" | "info" | "warning" | "success" | undefined;
|
|
341
341
|
closable?: boolean | undefined;
|
|
342
342
|
keepAliveOnHover?: boolean | undefined;
|
|
343
343
|
meta?: string | (() => import("vue").VNodeChild) | undefined;
|
|
@@ -352,16 +352,16 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
352
352
|
onMouseleave?: ((e: MouseEvent) => void) | undefined;
|
|
353
353
|
onClose?: (() => Promise<boolean> | boolean | any) | undefined;
|
|
354
354
|
action?: string | (() => import("vue").VNodeChild) | undefined;
|
|
355
|
+
onAfterHide?: (() => void) | undefined;
|
|
355
356
|
avatar?: (() => import("vue").VNodeChild) | undefined;
|
|
356
357
|
onHide?: (() => void) | undefined;
|
|
357
|
-
onAfterHide?: (() => void) | undefined;
|
|
358
358
|
onAfterShow?: (() => void) | undefined;
|
|
359
359
|
}[], NotificationReactive[] | {
|
|
360
360
|
readonly key: string;
|
|
361
361
|
readonly destroy: () => void;
|
|
362
362
|
readonly hide: () => void;
|
|
363
363
|
readonly deactivate: () => void;
|
|
364
|
-
type?: "error" | "default" | "info" | "
|
|
364
|
+
type?: "error" | "default" | "info" | "warning" | "success" | undefined;
|
|
365
365
|
closable?: boolean | undefined;
|
|
366
366
|
keepAliveOnHover?: boolean | undefined;
|
|
367
367
|
meta?: string | (() => import("vue").VNodeChild) | undefined;
|
|
@@ -376,9 +376,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
376
376
|
onMouseleave?: ((e: MouseEvent) => void) | undefined;
|
|
377
377
|
onClose?: (() => Promise<boolean> | boolean | any) | undefined;
|
|
378
378
|
action?: string | (() => import("vue").VNodeChild) | undefined;
|
|
379
|
+
onAfterHide?: (() => void) | undefined;
|
|
379
380
|
avatar?: (() => import("vue").VNodeChild) | undefined;
|
|
380
381
|
onHide?: (() => void) | undefined;
|
|
381
|
-
onAfterHide?: (() => void) | undefined;
|
|
382
382
|
onAfterShow?: (() => void) | undefined;
|
|
383
383
|
}[]>;
|
|
384
384
|
notificationRefs: Record<string, NotificationRef>;
|
|
@@ -539,7 +539,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
539
539
|
}>>>;
|
|
540
540
|
}>> & Readonly<{}>, {
|
|
541
541
|
placement: NotificationPlacement;
|
|
542
|
-
scrollable: boolean;
|
|
543
542
|
keepAliveOnHover: boolean;
|
|
543
|
+
scrollable: boolean;
|
|
544
544
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
545
545
|
export default _default;
|