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/upload/src/icons.mjs
CHANGED
|
@@ -3,21 +3,25 @@ import { h } from 'vue';
|
|
|
3
3
|
* Since image is too large compared with normal icons, we keep it inside upload
|
|
4
4
|
* now.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
6
|
+
export function renderImageIcon() {
|
|
7
|
+
return h("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 28 28"
|
|
10
|
+
}, h("g", {
|
|
11
|
+
fill: "none"
|
|
12
|
+
}, h("path", {
|
|
13
|
+
d: "M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",
|
|
14
|
+
fill: "currentColor"
|
|
15
|
+
})));
|
|
16
|
+
}
|
|
17
|
+
export function renderDocumentIcon() {
|
|
18
|
+
return h("svg", {
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
viewBox: "0 0 28 28"
|
|
21
|
+
}, h("g", {
|
|
22
|
+
fill: "none"
|
|
23
|
+
}, h("path", {
|
|
24
|
+
d: "M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",
|
|
25
|
+
fill: "currentColor"
|
|
26
|
+
})));
|
|
27
|
+
}
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.
|
|
1
|
+
declare const _default: "2.43.0";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.
|
|
1
|
+
export default '2.43.0';
|
|
@@ -154,9 +154,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
154
154
|
readonly paddingBottom: string | number;
|
|
155
155
|
readonly paddingTop: string | number;
|
|
156
156
|
readonly items: VirtualListItemData[];
|
|
157
|
+
readonly keyField: string;
|
|
157
158
|
readonly itemResizable: boolean;
|
|
158
159
|
readonly visibleItemsTag: string | object;
|
|
159
160
|
readonly ignoreItemResize: boolean;
|
|
160
|
-
readonly keyField: string;
|
|
161
161
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
162
162
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script
|
|
2
|
+
lang="ts"
|
|
3
|
+
setup
|
|
4
|
+
generic="T extends AvatarGroupOption = AvatarGroupOption"
|
|
5
|
+
>
|
|
6
|
+
import type {
|
|
7
|
+
AvatarGroupOption,
|
|
8
|
+
GAvatarGroupProps,
|
|
9
|
+
GAvatarGroupSlots
|
|
10
|
+
} from 'naive-ui'
|
|
11
|
+
import { NAvatarGroup } from 'naive-ui'
|
|
12
|
+
|
|
13
|
+
defineProps<GAvatarGroupProps<T>>()
|
|
14
|
+
defineSlots<GAvatarGroupSlots<T>>()
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<NAvatarGroup v-bind="$props">
|
|
19
|
+
<template #avatar="props">
|
|
20
|
+
<slot name="avatar" v-bind="props as any" />
|
|
21
|
+
</template>
|
|
22
|
+
<template #rest="props">
|
|
23
|
+
<slot name="rest" v-bind="props as any" />
|
|
24
|
+
</template>
|
|
25
|
+
</NAvatarGroup>
|
|
26
|
+
</template>
|
package/generic/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NGAvatarGroup } from './AvatarGroup.vue'
|
|
@@ -327,14 +327,14 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
327
327
|
}, any>>>;
|
|
328
328
|
}>> & Readonly<{}>, {
|
|
329
329
|
readonly duration: number;
|
|
330
|
+
readonly trigger: "none" | "hover";
|
|
330
331
|
readonly scrollable: boolean;
|
|
331
332
|
readonly xScrollable: boolean;
|
|
332
|
-
readonly
|
|
333
|
+
readonly yPlacement: "left" | "right";
|
|
334
|
+
readonly xPlacement: "top" | "bottom";
|
|
333
335
|
readonly useUnifiedContainer: boolean;
|
|
334
336
|
readonly triggerDisplayManually: boolean;
|
|
335
337
|
readonly internalHoistYRail: boolean;
|
|
336
|
-
readonly yPlacement: "left" | "right";
|
|
337
|
-
readonly xPlacement: "top" | "bottom";
|
|
338
338
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
339
339
|
type NativeScrollbarProps = Omit<HTMLAttributes, keyof ScrollbarInternalProps>;
|
|
340
340
|
type MergedProps = Partial<ScrollbarInternalProps & NativeScrollbarProps>;
|
|
@@ -393,7 +393,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
393
393
|
} | null>;
|
|
394
394
|
itemSize: import("vue").ComputedRef<number>;
|
|
395
395
|
padding: import("vue").ComputedRef<import("seemly").Margin>;
|
|
396
|
-
flattenedNodes: import("vue").ComputedRef<TreeNode<import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>[]>;
|
|
396
|
+
flattenedNodes: import("vue").ComputedRef<TreeNode<import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>[]>;
|
|
397
397
|
empty: import("vue").ComputedRef<boolean>;
|
|
398
398
|
virtualListContainer(): HTMLElement | undefined;
|
|
399
399
|
virtualListContent(): HTMLElement | null | undefined;
|
|
@@ -706,11 +706,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
706
706
|
focusable: boolean;
|
|
707
707
|
inlineThemeDisabled: boolean;
|
|
708
708
|
scrollable: boolean;
|
|
709
|
-
labelField: string;
|
|
710
|
-
showCheckmark: boolean;
|
|
711
|
-
autoPending: boolean;
|
|
712
709
|
virtualScroll: boolean;
|
|
713
710
|
valueField: string;
|
|
711
|
+
labelField: string;
|
|
714
712
|
resetMenuOnOptionsChange: boolean;
|
|
713
|
+
showCheckmark: boolean;
|
|
714
|
+
autoPending: boolean;
|
|
715
715
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
716
716
|
export default _default;
|
|
@@ -149,7 +149,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
149
149
|
arrowOffsetVertical: string;
|
|
150
150
|
arrowHeight: string;
|
|
151
151
|
padding: string;
|
|
152
|
-
},
|
|
152
|
+
}, {
|
|
153
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
154
|
+
height: string;
|
|
155
|
+
width: string;
|
|
156
|
+
borderRadius: string;
|
|
157
|
+
color: string;
|
|
158
|
+
colorHover: string;
|
|
159
|
+
railInsetHorizontalBottom: string;
|
|
160
|
+
railInsetHorizontalTop: string;
|
|
161
|
+
railInsetVerticalRight: string;
|
|
162
|
+
railInsetVerticalLeft: string;
|
|
163
|
+
railColor: string;
|
|
164
|
+
}, any>;
|
|
165
|
+
}>;
|
|
153
166
|
}>>;
|
|
154
167
|
themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
155
168
|
fontSizeTiny: string;
|
|
@@ -219,7 +232,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
219
232
|
arrowOffsetVertical: string;
|
|
220
233
|
arrowHeight: string;
|
|
221
234
|
padding: string;
|
|
222
|
-
},
|
|
235
|
+
}, {
|
|
236
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
237
|
+
height: string;
|
|
238
|
+
width: string;
|
|
239
|
+
borderRadius: string;
|
|
240
|
+
color: string;
|
|
241
|
+
colorHover: string;
|
|
242
|
+
railInsetHorizontalBottom: string;
|
|
243
|
+
railInsetHorizontalTop: string;
|
|
244
|
+
railInsetVerticalRight: string;
|
|
245
|
+
railInsetVerticalLeft: string;
|
|
246
|
+
railColor: string;
|
|
247
|
+
}, any>;
|
|
248
|
+
}>;
|
|
223
249
|
}>>>;
|
|
224
250
|
builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
225
251
|
fontSizeTiny: string;
|
|
@@ -289,7 +315,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
289
315
|
arrowOffsetVertical: string;
|
|
290
316
|
arrowHeight: string;
|
|
291
317
|
padding: string;
|
|
292
|
-
},
|
|
318
|
+
}, {
|
|
319
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
320
|
+
height: string;
|
|
321
|
+
width: string;
|
|
322
|
+
borderRadius: string;
|
|
323
|
+
color: string;
|
|
324
|
+
colorHover: string;
|
|
325
|
+
railInsetHorizontalBottom: string;
|
|
326
|
+
railInsetHorizontalTop: string;
|
|
327
|
+
railInsetVerticalRight: string;
|
|
328
|
+
railInsetVerticalLeft: string;
|
|
329
|
+
railColor: string;
|
|
330
|
+
}, any>;
|
|
331
|
+
}>;
|
|
293
332
|
}>>>;
|
|
294
333
|
}>, {
|
|
295
334
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -363,12 +402,36 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
363
402
|
arrowOffsetVertical: string;
|
|
364
403
|
arrowHeight: string;
|
|
365
404
|
padding: string;
|
|
366
|
-
},
|
|
405
|
+
}, {
|
|
406
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
407
|
+
height: string;
|
|
408
|
+
width: string;
|
|
409
|
+
borderRadius: string;
|
|
410
|
+
color: string;
|
|
411
|
+
colorHover: string;
|
|
412
|
+
railInsetHorizontalBottom: string;
|
|
413
|
+
railInsetHorizontalTop: string;
|
|
414
|
+
railInsetVerticalRight: string;
|
|
415
|
+
railInsetVerticalLeft: string;
|
|
416
|
+
railColor: string;
|
|
417
|
+
}, any>;
|
|
418
|
+
}>;
|
|
367
419
|
};
|
|
368
420
|
peerOverrides: {
|
|
369
421
|
Popover?: {
|
|
370
422
|
peers?: {
|
|
371
|
-
|
|
423
|
+
Scrollbar?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
424
|
+
height: string;
|
|
425
|
+
width: string;
|
|
426
|
+
borderRadius: string;
|
|
427
|
+
color: string;
|
|
428
|
+
colorHover: string;
|
|
429
|
+
railInsetHorizontalBottom: string;
|
|
430
|
+
railInsetHorizontalTop: string;
|
|
431
|
+
railInsetVerticalRight: string;
|
|
432
|
+
railInsetVerticalLeft: string;
|
|
433
|
+
railColor: string;
|
|
434
|
+
}, any>> | undefined;
|
|
372
435
|
} | undefined;
|
|
373
436
|
} | undefined;
|
|
374
437
|
};
|
|
@@ -621,7 +684,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
621
684
|
arrowOffsetVertical: string;
|
|
622
685
|
arrowHeight: string;
|
|
623
686
|
padding: string;
|
|
624
|
-
},
|
|
687
|
+
}, {
|
|
688
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
689
|
+
height: string;
|
|
690
|
+
width: string;
|
|
691
|
+
borderRadius: string;
|
|
692
|
+
color: string;
|
|
693
|
+
colorHover: string;
|
|
694
|
+
railInsetHorizontalBottom: string;
|
|
695
|
+
railInsetHorizontalTop: string;
|
|
696
|
+
railInsetVerticalRight: string;
|
|
697
|
+
railInsetVerticalLeft: string;
|
|
698
|
+
railColor: string;
|
|
699
|
+
}, any>;
|
|
700
|
+
}>;
|
|
625
701
|
}>>;
|
|
626
702
|
themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
627
703
|
fontSizeTiny: string;
|
|
@@ -691,7 +767,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
691
767
|
arrowOffsetVertical: string;
|
|
692
768
|
arrowHeight: string;
|
|
693
769
|
padding: string;
|
|
694
|
-
},
|
|
770
|
+
}, {
|
|
771
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
772
|
+
height: string;
|
|
773
|
+
width: string;
|
|
774
|
+
borderRadius: string;
|
|
775
|
+
color: string;
|
|
776
|
+
colorHover: string;
|
|
777
|
+
railInsetHorizontalBottom: string;
|
|
778
|
+
railInsetHorizontalTop: string;
|
|
779
|
+
railInsetVerticalRight: string;
|
|
780
|
+
railInsetVerticalLeft: string;
|
|
781
|
+
railColor: string;
|
|
782
|
+
}, any>;
|
|
783
|
+
}>;
|
|
695
784
|
}>>>;
|
|
696
785
|
builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
697
786
|
fontSizeTiny: string;
|
|
@@ -761,7 +850,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
761
850
|
arrowOffsetVertical: string;
|
|
762
851
|
arrowHeight: string;
|
|
763
852
|
padding: string;
|
|
764
|
-
},
|
|
853
|
+
}, {
|
|
854
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
855
|
+
height: string;
|
|
856
|
+
width: string;
|
|
857
|
+
borderRadius: string;
|
|
858
|
+
color: string;
|
|
859
|
+
colorHover: string;
|
|
860
|
+
railInsetHorizontalBottom: string;
|
|
861
|
+
railInsetHorizontalTop: string;
|
|
862
|
+
railInsetVerticalRight: string;
|
|
863
|
+
railInsetVerticalLeft: string;
|
|
864
|
+
railColor: string;
|
|
865
|
+
}, any>;
|
|
866
|
+
}>;
|
|
765
867
|
}>>>;
|
|
766
868
|
}>> & Readonly<{}>, {
|
|
767
869
|
pattern: string;
|
|
@@ -773,14 +875,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
773
875
|
loading: boolean;
|
|
774
876
|
bordered: boolean | undefined;
|
|
775
877
|
inlineThemeDisabled: boolean;
|
|
776
|
-
|
|
777
|
-
valueField: string;
|
|
878
|
+
clearable: boolean;
|
|
778
879
|
showArrow: boolean;
|
|
779
880
|
filterable: boolean;
|
|
780
|
-
|
|
881
|
+
valueField: string;
|
|
882
|
+
labelField: string;
|
|
883
|
+
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => import("vue").VNodeChild)> | null;
|
|
884
|
+
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
|
|
781
885
|
focused: boolean;
|
|
782
|
-
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)> | null;
|
|
783
|
-
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
|
|
784
886
|
ignoreComposition: boolean;
|
|
785
887
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
786
888
|
export default _default;
|
|
@@ -123,7 +123,20 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
|
|
|
123
123
|
arrowOffsetVertical: string;
|
|
124
124
|
arrowHeight: string;
|
|
125
125
|
padding: string;
|
|
126
|
-
},
|
|
126
|
+
}, {
|
|
127
|
+
Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
|
|
128
|
+
height: string;
|
|
129
|
+
width: string;
|
|
130
|
+
borderRadius: string;
|
|
131
|
+
color: string;
|
|
132
|
+
colorHover: string;
|
|
133
|
+
railInsetHorizontalBottom: string;
|
|
134
|
+
railInsetHorizontalTop: string;
|
|
135
|
+
railInsetVerticalRight: string;
|
|
136
|
+
railInsetVerticalLeft: string;
|
|
137
|
+
railColor: string;
|
|
138
|
+
}, any>;
|
|
139
|
+
}>;
|
|
127
140
|
}>;
|
|
128
141
|
export default internalSelectionLight;
|
|
129
142
|
export type InternalSelectionTheme = typeof internalSelectionLight;
|
package/lib/_utils/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { isJsdom } from './env/is-jsdom';
|
|
|
7
7
|
export { eventEffectNotPerformed, markEventEffectPerformed } from './event';
|
|
8
8
|
export { getTitleAttribute, isArrayShallowEqual, largerSize, smallerSize, throwError, warn, warnOnce } from './naive';
|
|
9
9
|
export type { ExtractInternalPropTypes, ExtractPublicPropTypes, Mutable } from './naive';
|
|
10
|
+
export type * from './ts/ts';
|
|
10
11
|
export { call, createDataKey, createInjectionKey, createRefSetter, flatten, getFirstSlotVNode, getFirstSlotVNodeWithTypedProps, getSlot, getVNodeChildren, isNodeVShowFalse, isSlotEmpty, keep, keysOf, mergeEventHandlers, omit, render, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps, Wrapper } from './vue';
|
|
11
12
|
export type { MaybeArray } from './vue';
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
declare const smallerSizeMap: {
|
|
2
|
+
readonly tiny: "mini";
|
|
3
|
+
readonly small: "tiny";
|
|
4
|
+
readonly medium: "small";
|
|
5
|
+
readonly large: "medium";
|
|
6
|
+
readonly huge: "large";
|
|
7
|
+
};
|
|
8
|
+
declare const largerSizeMap: {
|
|
9
|
+
readonly tiny: "small";
|
|
10
|
+
readonly small: "medium";
|
|
11
|
+
readonly medium: "large";
|
|
12
|
+
readonly large: "huge";
|
|
13
|
+
};
|
|
14
|
+
type SmallerSizeMap = typeof smallerSizeMap;
|
|
15
|
+
type SmallerSize = keyof SmallerSizeMap;
|
|
16
|
+
type LargerSizeMap = typeof largerSizeMap;
|
|
17
|
+
type LargerSize = keyof LargerSizeMap;
|
|
18
|
+
export declare function largerSize<T extends LargerSize>(size: T): LargerSizeMap[T];
|
|
19
|
+
export declare function smallerSize<T extends SmallerSize>(size: T): SmallerSizeMap[T];
|
|
11
20
|
export {};
|
package/lib/_utils/naive/prop.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.largerSize = largerSize;
|
|
4
4
|
exports.smallerSize = smallerSize;
|
|
5
|
+
const smallerSizeMap = {
|
|
6
|
+
tiny: 'mini',
|
|
7
|
+
small: 'tiny',
|
|
8
|
+
medium: 'small',
|
|
9
|
+
large: 'medium',
|
|
10
|
+
huge: 'large'
|
|
11
|
+
};
|
|
12
|
+
const largerSizeMap = {
|
|
13
|
+
tiny: 'small',
|
|
14
|
+
small: 'medium',
|
|
15
|
+
medium: 'large',
|
|
16
|
+
large: 'huge'
|
|
17
|
+
};
|
|
5
18
|
function largerSize(size) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
case 'small':
|
|
10
|
-
return 'medium';
|
|
11
|
-
case 'medium':
|
|
12
|
-
return 'large';
|
|
13
|
-
case 'large':
|
|
14
|
-
return 'huge';
|
|
19
|
+
const result = largerSizeMap[size];
|
|
20
|
+
if (result === undefined) {
|
|
21
|
+
throw new Error(`${size} has no larger size.`);
|
|
15
22
|
}
|
|
23
|
+
return result;
|
|
16
24
|
}
|
|
17
25
|
function smallerSize(size) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
case 'small':
|
|
22
|
-
return 'tiny';
|
|
23
|
-
case 'medium':
|
|
24
|
-
return 'small';
|
|
25
|
-
case 'large':
|
|
26
|
-
return 'medium';
|
|
27
|
-
case 'huge':
|
|
28
|
-
return 'large';
|
|
26
|
+
const result = smallerSizeMap[size];
|
|
27
|
+
if (result === undefined) {
|
|
28
|
+
throw new Error(`${size} has no smaller size.`);
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
return result;
|
|
31
31
|
}
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -759,9 +759,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
759
759
|
padding: string;
|
|
760
760
|
}, any>>>;
|
|
761
761
|
}>> & Readonly<{}>, {
|
|
762
|
-
type: "error" | "default" | "info" | "
|
|
763
|
-
bordered: boolean;
|
|
762
|
+
type: "error" | "default" | "info" | "warning" | "success";
|
|
764
763
|
showIcon: boolean;
|
|
764
|
+
bordered: boolean;
|
|
765
765
|
closable: boolean;
|
|
766
766
|
}, SlotsType<AlertSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
767
767
|
export default _default;
|
package/lib/anchor/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { anchorProps, default as NAnchor } from './src/AnchorAdapter';
|
|
|
2
2
|
export type { AnchorInst, AnchorProps } from './src/AnchorAdapter';
|
|
3
3
|
export { anchorLinkProps, default as NAnchorLink } from './src/Link';
|
|
4
4
|
export type { AnchorLinkProps } from './src/Link';
|
|
5
|
+
export type * from './src/public-types';
|
|
@@ -264,12 +264,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
264
264
|
readonly bound: number;
|
|
265
265
|
readonly target: (() => HTMLElement) | undefined;
|
|
266
266
|
readonly position: "fixed" | "absolute";
|
|
267
|
-
readonly affix: boolean;
|
|
268
267
|
readonly offsetTop: number | undefined;
|
|
269
268
|
readonly offsetBottom: number | undefined;
|
|
270
269
|
readonly showRail: boolean;
|
|
271
270
|
readonly showBackground: boolean;
|
|
272
271
|
readonly internalScrollable: boolean;
|
|
273
272
|
readonly ignoreGap: boolean;
|
|
273
|
+
readonly affix: boolean;
|
|
274
274
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
275
275
|
export default _default;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.baseAnchorPropKeys = exports.baseAnchorProps = void 0;
|
|
4
|
-
const lodash_1 = require("lodash");
|
|
5
4
|
const seemly_1 = require("seemly");
|
|
6
5
|
const vooks_1 = require("vooks");
|
|
7
6
|
const vue_1 = require("vue");
|
|
@@ -44,6 +43,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
44
43
|
const slotRef = (0, vue_1.ref)(null);
|
|
45
44
|
const barRef = (0, vue_1.ref)(null);
|
|
46
45
|
const selfRef = (0, vue_1.ref)(null);
|
|
46
|
+
let skipScrollHandling = false;
|
|
47
47
|
const isBlockTypeRef = (0, vue_1.computed)(() => {
|
|
48
48
|
return props.type === 'block';
|
|
49
49
|
});
|
|
@@ -115,9 +115,29 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
115
115
|
slotEl.style.transition = '';
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
let currentThrottleTimerId;
|
|
119
|
+
let hasTrailingThrottledTask = false;
|
|
120
|
+
let isInThrottledPeriod = false;
|
|
121
|
+
const handleScroll = () => {
|
|
122
|
+
if (isInThrottledPeriod) {
|
|
123
|
+
hasTrailingThrottledTask = true;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (skipScrollHandling) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
_handleScroll(true);
|
|
130
|
+
isInThrottledPeriod = true;
|
|
131
|
+
clearTimeout(currentThrottleTimerId);
|
|
132
|
+
currentThrottleTimerId = setTimeout(() => {
|
|
133
|
+
isInThrottledPeriod = false;
|
|
134
|
+
if (hasTrailingThrottledTask) {
|
|
135
|
+
hasTrailingThrottledTask = false;
|
|
136
|
+
handleScroll();
|
|
137
|
+
}
|
|
138
|
+
}, 128);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
121
141
|
function setActiveHref(href, transition = true) {
|
|
122
142
|
const idMatchResult = /^#([^#]+)$/.exec(href);
|
|
123
143
|
if (!idMatchResult)
|
|
@@ -125,12 +145,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
125
145
|
const linkEl = document.getElementById(idMatchResult[1]);
|
|
126
146
|
if (!linkEl)
|
|
127
147
|
return;
|
|
148
|
+
skipScrollHandling = true;
|
|
128
149
|
activeHrefRef.value = href;
|
|
129
150
|
linkEl.scrollIntoView();
|
|
130
151
|
if (!transition) {
|
|
131
152
|
disableTransitionOneTick();
|
|
132
153
|
}
|
|
133
|
-
|
|
154
|
+
hasTrailingThrottledTask = false;
|
|
155
|
+
setTimeout(() => {
|
|
156
|
+
skipScrollHandling = false;
|
|
157
|
+
}, 0);
|
|
134
158
|
}
|
|
135
159
|
function _handleScroll(transition = true) {
|
|
136
160
|
var _a;
|
|
@@ -220,6 +244,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
220
244
|
_handleScroll(false);
|
|
221
245
|
});
|
|
222
246
|
(0, vue_1.onBeforeUnmount)(() => {
|
|
247
|
+
clearTimeout(currentThrottleTimerId);
|
|
223
248
|
document.removeEventListener('scroll', handleScroll, true);
|
|
224
249
|
});
|
|
225
250
|
(0, vue_1.watch)(activeHrefRef, (value) => {
|