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
|
@@ -334,7 +334,20 @@ export declare const inputNumberProps: {
|
|
|
334
334
|
paddingMedium: string;
|
|
335
335
|
paddingLarge: string;
|
|
336
336
|
clearSize: string;
|
|
337
|
-
},
|
|
337
|
+
}, {
|
|
338
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
339
|
+
height: string;
|
|
340
|
+
width: string;
|
|
341
|
+
borderRadius: string;
|
|
342
|
+
color: string;
|
|
343
|
+
colorHover: string;
|
|
344
|
+
railInsetHorizontalBottom: string;
|
|
345
|
+
railInsetHorizontalTop: string;
|
|
346
|
+
railInsetVerticalRight: string;
|
|
347
|
+
railInsetVerticalLeft: string;
|
|
348
|
+
railColor: string;
|
|
349
|
+
}, any>;
|
|
350
|
+
}>;
|
|
338
351
|
}>>;
|
|
339
352
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
340
353
|
iconColorDisabled: string;
|
|
@@ -604,7 +617,20 @@ export declare const inputNumberProps: {
|
|
|
604
617
|
paddingMedium: string;
|
|
605
618
|
paddingLarge: string;
|
|
606
619
|
clearSize: string;
|
|
607
|
-
},
|
|
620
|
+
}, {
|
|
621
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
622
|
+
height: string;
|
|
623
|
+
width: string;
|
|
624
|
+
borderRadius: string;
|
|
625
|
+
color: string;
|
|
626
|
+
colorHover: string;
|
|
627
|
+
railInsetHorizontalBottom: string;
|
|
628
|
+
railInsetHorizontalTop: string;
|
|
629
|
+
railInsetVerticalRight: string;
|
|
630
|
+
railInsetVerticalLeft: string;
|
|
631
|
+
railColor: string;
|
|
632
|
+
}, any>;
|
|
633
|
+
}>;
|
|
608
634
|
}>>>;
|
|
609
635
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
610
636
|
iconColorDisabled: string;
|
|
@@ -874,7 +900,20 @@ export declare const inputNumberProps: {
|
|
|
874
900
|
paddingMedium: string;
|
|
875
901
|
paddingLarge: string;
|
|
876
902
|
clearSize: string;
|
|
877
|
-
},
|
|
903
|
+
}, {
|
|
904
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
905
|
+
height: string;
|
|
906
|
+
width: string;
|
|
907
|
+
borderRadius: string;
|
|
908
|
+
color: string;
|
|
909
|
+
colorHover: string;
|
|
910
|
+
railInsetHorizontalBottom: string;
|
|
911
|
+
railInsetHorizontalTop: string;
|
|
912
|
+
railInsetVerticalRight: string;
|
|
913
|
+
railInsetVerticalLeft: string;
|
|
914
|
+
railColor: string;
|
|
915
|
+
}, any>;
|
|
916
|
+
}>;
|
|
878
917
|
}>>>;
|
|
879
918
|
};
|
|
880
919
|
export type InputNumberProps = ExtractPublicPropTypes<typeof inputNumberProps>;
|
|
@@ -1216,7 +1255,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1216
1255
|
paddingMedium: string;
|
|
1217
1256
|
paddingLarge: string;
|
|
1218
1257
|
clearSize: string;
|
|
1219
|
-
},
|
|
1258
|
+
}, {
|
|
1259
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1260
|
+
height: string;
|
|
1261
|
+
width: string;
|
|
1262
|
+
borderRadius: string;
|
|
1263
|
+
color: string;
|
|
1264
|
+
colorHover: string;
|
|
1265
|
+
railInsetHorizontalBottom: string;
|
|
1266
|
+
railInsetHorizontalTop: string;
|
|
1267
|
+
railInsetVerticalRight: string;
|
|
1268
|
+
railInsetVerticalLeft: string;
|
|
1269
|
+
railColor: string;
|
|
1270
|
+
}, any>;
|
|
1271
|
+
}>;
|
|
1220
1272
|
}>>;
|
|
1221
1273
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
1222
1274
|
iconColorDisabled: string;
|
|
@@ -1486,7 +1538,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1486
1538
|
paddingMedium: string;
|
|
1487
1539
|
paddingLarge: string;
|
|
1488
1540
|
clearSize: string;
|
|
1489
|
-
},
|
|
1541
|
+
}, {
|
|
1542
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1543
|
+
height: string;
|
|
1544
|
+
width: string;
|
|
1545
|
+
borderRadius: string;
|
|
1546
|
+
color: string;
|
|
1547
|
+
colorHover: string;
|
|
1548
|
+
railInsetHorizontalBottom: string;
|
|
1549
|
+
railInsetHorizontalTop: string;
|
|
1550
|
+
railInsetVerticalRight: string;
|
|
1551
|
+
railInsetVerticalLeft: string;
|
|
1552
|
+
railColor: string;
|
|
1553
|
+
}, any>;
|
|
1554
|
+
}>;
|
|
1490
1555
|
}>>>;
|
|
1491
1556
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
1492
1557
|
iconColorDisabled: string;
|
|
@@ -1756,7 +1821,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1756
1821
|
paddingMedium: string;
|
|
1757
1822
|
paddingLarge: string;
|
|
1758
1823
|
clearSize: string;
|
|
1759
|
-
},
|
|
1824
|
+
}, {
|
|
1825
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1826
|
+
height: string;
|
|
1827
|
+
width: string;
|
|
1828
|
+
borderRadius: string;
|
|
1829
|
+
color: string;
|
|
1830
|
+
colorHover: string;
|
|
1831
|
+
railInsetHorizontalBottom: string;
|
|
1832
|
+
railInsetHorizontalTop: string;
|
|
1833
|
+
railInsetVerticalRight: string;
|
|
1834
|
+
railInsetVerticalLeft: string;
|
|
1835
|
+
railColor: string;
|
|
1836
|
+
}, any>;
|
|
1837
|
+
}>;
|
|
1760
1838
|
}>>>;
|
|
1761
1839
|
}>, {
|
|
1762
1840
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined, import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -2104,7 +2182,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2104
2182
|
paddingMedium: string;
|
|
2105
2183
|
paddingLarge: string;
|
|
2106
2184
|
clearSize: string;
|
|
2107
|
-
},
|
|
2185
|
+
}, {
|
|
2186
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2187
|
+
height: string;
|
|
2188
|
+
width: string;
|
|
2189
|
+
borderRadius: string;
|
|
2190
|
+
color: string;
|
|
2191
|
+
colorHover: string;
|
|
2192
|
+
railInsetHorizontalBottom: string;
|
|
2193
|
+
railInsetHorizontalTop: string;
|
|
2194
|
+
railInsetVerticalRight: string;
|
|
2195
|
+
railInsetVerticalLeft: string;
|
|
2196
|
+
railColor: string;
|
|
2197
|
+
}, any>;
|
|
2198
|
+
}>;
|
|
2108
2199
|
};
|
|
2109
2200
|
peerOverrides: {
|
|
2110
2201
|
Button?: {
|
|
@@ -2114,7 +2205,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2114
2205
|
} | undefined;
|
|
2115
2206
|
Input?: {
|
|
2116
2207
|
peers?: {
|
|
2117
|
-
|
|
2208
|
+
Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
|
|
2209
|
+
height: string;
|
|
2210
|
+
width: string;
|
|
2211
|
+
borderRadius: string;
|
|
2212
|
+
color: string;
|
|
2213
|
+
colorHover: string;
|
|
2214
|
+
railInsetHorizontalBottom: string;
|
|
2215
|
+
railInsetHorizontalTop: string;
|
|
2216
|
+
railInsetVerticalRight: string;
|
|
2217
|
+
railInsetVerticalLeft: string;
|
|
2218
|
+
railColor: string;
|
|
2219
|
+
}, any>> | undefined;
|
|
2118
2220
|
} | undefined;
|
|
2119
2221
|
} | undefined;
|
|
2120
2222
|
};
|
|
@@ -2463,7 +2565,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2463
2565
|
paddingMedium: string;
|
|
2464
2566
|
paddingLarge: string;
|
|
2465
2567
|
clearSize: string;
|
|
2466
|
-
},
|
|
2568
|
+
}, {
|
|
2569
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2570
|
+
height: string;
|
|
2571
|
+
width: string;
|
|
2572
|
+
borderRadius: string;
|
|
2573
|
+
color: string;
|
|
2574
|
+
colorHover: string;
|
|
2575
|
+
railInsetHorizontalBottom: string;
|
|
2576
|
+
railInsetHorizontalTop: string;
|
|
2577
|
+
railInsetVerticalRight: string;
|
|
2578
|
+
railInsetVerticalLeft: string;
|
|
2579
|
+
railColor: string;
|
|
2580
|
+
}, any>;
|
|
2581
|
+
}>;
|
|
2467
2582
|
}>>;
|
|
2468
2583
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
2469
2584
|
iconColorDisabled: string;
|
|
@@ -2733,7 +2848,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2733
2848
|
paddingMedium: string;
|
|
2734
2849
|
paddingLarge: string;
|
|
2735
2850
|
clearSize: string;
|
|
2736
|
-
},
|
|
2851
|
+
}, {
|
|
2852
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2853
|
+
height: string;
|
|
2854
|
+
width: string;
|
|
2855
|
+
borderRadius: string;
|
|
2856
|
+
color: string;
|
|
2857
|
+
colorHover: string;
|
|
2858
|
+
railInsetHorizontalBottom: string;
|
|
2859
|
+
railInsetHorizontalTop: string;
|
|
2860
|
+
railInsetVerticalRight: string;
|
|
2861
|
+
railInsetVerticalLeft: string;
|
|
2862
|
+
railColor: string;
|
|
2863
|
+
}, any>;
|
|
2864
|
+
}>;
|
|
2737
2865
|
}>>>;
|
|
2738
2866
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
|
|
2739
2867
|
iconColorDisabled: string;
|
|
@@ -3003,7 +3131,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3003
3131
|
paddingMedium: string;
|
|
3004
3132
|
paddingLarge: string;
|
|
3005
3133
|
clearSize: string;
|
|
3006
|
-
},
|
|
3134
|
+
}, {
|
|
3135
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
3136
|
+
height: string;
|
|
3137
|
+
width: string;
|
|
3138
|
+
borderRadius: string;
|
|
3139
|
+
color: string;
|
|
3140
|
+
colorHover: string;
|
|
3141
|
+
railInsetHorizontalBottom: string;
|
|
3142
|
+
railInsetHorizontalTop: string;
|
|
3143
|
+
railInsetVerticalRight: string;
|
|
3144
|
+
railInsetVerticalLeft: string;
|
|
3145
|
+
railColor: string;
|
|
3146
|
+
}, any>;
|
|
3147
|
+
}>;
|
|
3007
3148
|
}>>>;
|
|
3008
3149
|
}>> & Readonly<{}>, {
|
|
3009
3150
|
readonly: boolean;
|
|
@@ -271,7 +271,20 @@ declare const inputNumberLight: import("../../_mixins").Theme<"InputNumber", {
|
|
|
271
271
|
paddingMedium: string;
|
|
272
272
|
paddingLarge: string;
|
|
273
273
|
clearSize: string;
|
|
274
|
-
},
|
|
274
|
+
}, {
|
|
275
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
276
|
+
height: string;
|
|
277
|
+
width: string;
|
|
278
|
+
borderRadius: string;
|
|
279
|
+
color: string;
|
|
280
|
+
colorHover: string;
|
|
281
|
+
railInsetHorizontalBottom: string;
|
|
282
|
+
railInsetHorizontalTop: string;
|
|
283
|
+
railInsetVerticalRight: string;
|
|
284
|
+
railInsetVerticalLeft: string;
|
|
285
|
+
railColor: string;
|
|
286
|
+
}, any>;
|
|
287
|
+
}>;
|
|
275
288
|
}>;
|
|
276
289
|
export default inputNumberLight;
|
|
277
290
|
export type InputNumberTheme = typeof inputNumberLight;
|
|
@@ -12,6 +12,7 @@ export declare const inputOtpProps: {
|
|
|
12
12
|
type: NumberConstructor;
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
|
+
block: BooleanConstructor;
|
|
15
16
|
size: PropType<InputOtpSize>;
|
|
16
17
|
disabled: BooleanConstructor;
|
|
17
18
|
mask: BooleanConstructor;
|
|
@@ -97,7 +98,20 @@ export declare const inputOtpProps: {
|
|
|
97
98
|
paddingMedium: string;
|
|
98
99
|
paddingLarge: string;
|
|
99
100
|
clearSize: string;
|
|
100
|
-
},
|
|
101
|
+
}, {
|
|
102
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
103
|
+
height: string;
|
|
104
|
+
width: string;
|
|
105
|
+
borderRadius: string;
|
|
106
|
+
color: string;
|
|
107
|
+
colorHover: string;
|
|
108
|
+
railInsetHorizontalBottom: string;
|
|
109
|
+
railInsetHorizontalTop: string;
|
|
110
|
+
railInsetVerticalRight: string;
|
|
111
|
+
railInsetVerticalLeft: string;
|
|
112
|
+
railColor: string;
|
|
113
|
+
}, any>;
|
|
114
|
+
}>;
|
|
101
115
|
}>>;
|
|
102
116
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
103
117
|
inputWidthSmall: string;
|
|
@@ -168,7 +182,20 @@ export declare const inputOtpProps: {
|
|
|
168
182
|
paddingMedium: string;
|
|
169
183
|
paddingLarge: string;
|
|
170
184
|
clearSize: string;
|
|
171
|
-
},
|
|
185
|
+
}, {
|
|
186
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
187
|
+
height: string;
|
|
188
|
+
width: string;
|
|
189
|
+
borderRadius: string;
|
|
190
|
+
color: string;
|
|
191
|
+
colorHover: string;
|
|
192
|
+
railInsetHorizontalBottom: string;
|
|
193
|
+
railInsetHorizontalTop: string;
|
|
194
|
+
railInsetVerticalRight: string;
|
|
195
|
+
railInsetVerticalLeft: string;
|
|
196
|
+
railColor: string;
|
|
197
|
+
}, any>;
|
|
198
|
+
}>;
|
|
172
199
|
}>>>;
|
|
173
200
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
174
201
|
inputWidthSmall: string;
|
|
@@ -239,7 +266,20 @@ export declare const inputOtpProps: {
|
|
|
239
266
|
paddingMedium: string;
|
|
240
267
|
paddingLarge: string;
|
|
241
268
|
clearSize: string;
|
|
242
|
-
},
|
|
269
|
+
}, {
|
|
270
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
271
|
+
height: string;
|
|
272
|
+
width: string;
|
|
273
|
+
borderRadius: string;
|
|
274
|
+
color: string;
|
|
275
|
+
colorHover: string;
|
|
276
|
+
railInsetHorizontalBottom: string;
|
|
277
|
+
railInsetHorizontalTop: string;
|
|
278
|
+
railInsetVerticalRight: string;
|
|
279
|
+
railInsetVerticalLeft: string;
|
|
280
|
+
railColor: string;
|
|
281
|
+
}, any>;
|
|
282
|
+
}>;
|
|
243
283
|
}>>>;
|
|
244
284
|
};
|
|
245
285
|
export type InputOtpProps = ExtractPublicPropTypes<typeof inputOtpProps>;
|
|
@@ -253,6 +293,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
253
293
|
type: NumberConstructor;
|
|
254
294
|
default: number;
|
|
255
295
|
};
|
|
296
|
+
block: BooleanConstructor;
|
|
256
297
|
size: PropType<InputOtpSize>;
|
|
257
298
|
disabled: BooleanConstructor;
|
|
258
299
|
mask: BooleanConstructor;
|
|
@@ -338,7 +379,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
338
379
|
paddingMedium: string;
|
|
339
380
|
paddingLarge: string;
|
|
340
381
|
clearSize: string;
|
|
341
|
-
},
|
|
382
|
+
}, {
|
|
383
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
384
|
+
height: string;
|
|
385
|
+
width: string;
|
|
386
|
+
borderRadius: string;
|
|
387
|
+
color: string;
|
|
388
|
+
colorHover: string;
|
|
389
|
+
railInsetHorizontalBottom: string;
|
|
390
|
+
railInsetHorizontalTop: string;
|
|
391
|
+
railInsetVerticalRight: string;
|
|
392
|
+
railInsetVerticalLeft: string;
|
|
393
|
+
railColor: string;
|
|
394
|
+
}, any>;
|
|
395
|
+
}>;
|
|
342
396
|
}>>;
|
|
343
397
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
344
398
|
inputWidthSmall: string;
|
|
@@ -409,7 +463,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
409
463
|
paddingMedium: string;
|
|
410
464
|
paddingLarge: string;
|
|
411
465
|
clearSize: string;
|
|
412
|
-
},
|
|
466
|
+
}, {
|
|
467
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
468
|
+
height: string;
|
|
469
|
+
width: string;
|
|
470
|
+
borderRadius: string;
|
|
471
|
+
color: string;
|
|
472
|
+
colorHover: string;
|
|
473
|
+
railInsetHorizontalBottom: string;
|
|
474
|
+
railInsetHorizontalTop: string;
|
|
475
|
+
railInsetVerticalRight: string;
|
|
476
|
+
railInsetVerticalLeft: string;
|
|
477
|
+
railColor: string;
|
|
478
|
+
}, any>;
|
|
479
|
+
}>;
|
|
413
480
|
}>>>;
|
|
414
481
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
415
482
|
inputWidthSmall: string;
|
|
@@ -480,9 +547,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
480
547
|
paddingMedium: string;
|
|
481
548
|
paddingLarge: string;
|
|
482
549
|
clearSize: string;
|
|
483
|
-
},
|
|
550
|
+
}, {
|
|
551
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
552
|
+
height: string;
|
|
553
|
+
width: string;
|
|
554
|
+
borderRadius: string;
|
|
555
|
+
color: string;
|
|
556
|
+
colorHover: string;
|
|
557
|
+
railInsetHorizontalBottom: string;
|
|
558
|
+
railInsetHorizontalTop: string;
|
|
559
|
+
railInsetVerticalRight: string;
|
|
560
|
+
railInsetVerticalLeft: string;
|
|
561
|
+
railColor: string;
|
|
562
|
+
}, any>;
|
|
563
|
+
}>;
|
|
484
564
|
}>>>;
|
|
485
565
|
}>, {
|
|
566
|
+
focusOnChar: (charIndex: number) => void;
|
|
486
567
|
mergedTheme: import("vue").ComputedRef<{
|
|
487
568
|
common: import("naive-ui").ThemeCommonVars;
|
|
488
569
|
self: {
|
|
@@ -555,12 +636,36 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
555
636
|
paddingMedium: string;
|
|
556
637
|
paddingLarge: string;
|
|
557
638
|
clearSize: string;
|
|
558
|
-
},
|
|
639
|
+
}, {
|
|
640
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
641
|
+
height: string;
|
|
642
|
+
width: string;
|
|
643
|
+
borderRadius: string;
|
|
644
|
+
color: string;
|
|
645
|
+
colorHover: string;
|
|
646
|
+
railInsetHorizontalBottom: string;
|
|
647
|
+
railInsetHorizontalTop: string;
|
|
648
|
+
railInsetVerticalRight: string;
|
|
649
|
+
railInsetVerticalLeft: string;
|
|
650
|
+
railColor: string;
|
|
651
|
+
}, any>;
|
|
652
|
+
}>;
|
|
559
653
|
};
|
|
560
654
|
peerOverrides: {
|
|
561
655
|
Input?: {
|
|
562
656
|
peers?: {
|
|
563
|
-
|
|
657
|
+
Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
|
|
658
|
+
height: string;
|
|
659
|
+
width: string;
|
|
660
|
+
borderRadius: string;
|
|
661
|
+
color: string;
|
|
662
|
+
colorHover: string;
|
|
663
|
+
railInsetHorizontalBottom: string;
|
|
664
|
+
railInsetHorizontalTop: string;
|
|
665
|
+
railInsetVerticalRight: string;
|
|
666
|
+
railInsetVerticalLeft: string;
|
|
667
|
+
railColor: string;
|
|
668
|
+
}, any>> | undefined;
|
|
564
669
|
} | undefined;
|
|
565
670
|
} | undefined;
|
|
566
671
|
};
|
|
@@ -631,6 +736,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
631
736
|
type: NumberConstructor;
|
|
632
737
|
default: number;
|
|
633
738
|
};
|
|
739
|
+
block: BooleanConstructor;
|
|
634
740
|
size: PropType<InputOtpSize>;
|
|
635
741
|
disabled: BooleanConstructor;
|
|
636
742
|
mask: BooleanConstructor;
|
|
@@ -716,7 +822,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
716
822
|
paddingMedium: string;
|
|
717
823
|
paddingLarge: string;
|
|
718
824
|
clearSize: string;
|
|
719
|
-
},
|
|
825
|
+
}, {
|
|
826
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
827
|
+
height: string;
|
|
828
|
+
width: string;
|
|
829
|
+
borderRadius: string;
|
|
830
|
+
color: string;
|
|
831
|
+
colorHover: string;
|
|
832
|
+
railInsetHorizontalBottom: string;
|
|
833
|
+
railInsetHorizontalTop: string;
|
|
834
|
+
railInsetVerticalRight: string;
|
|
835
|
+
railInsetVerticalLeft: string;
|
|
836
|
+
railColor: string;
|
|
837
|
+
}, any>;
|
|
838
|
+
}>;
|
|
720
839
|
}>>;
|
|
721
840
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
722
841
|
inputWidthSmall: string;
|
|
@@ -787,7 +906,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
787
906
|
paddingMedium: string;
|
|
788
907
|
paddingLarge: string;
|
|
789
908
|
clearSize: string;
|
|
790
|
-
},
|
|
909
|
+
}, {
|
|
910
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
911
|
+
height: string;
|
|
912
|
+
width: string;
|
|
913
|
+
borderRadius: string;
|
|
914
|
+
color: string;
|
|
915
|
+
colorHover: string;
|
|
916
|
+
railInsetHorizontalBottom: string;
|
|
917
|
+
railInsetHorizontalTop: string;
|
|
918
|
+
railInsetVerticalRight: string;
|
|
919
|
+
railInsetVerticalLeft: string;
|
|
920
|
+
railColor: string;
|
|
921
|
+
}, any>;
|
|
922
|
+
}>;
|
|
791
923
|
}>>>;
|
|
792
924
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
|
|
793
925
|
inputWidthSmall: string;
|
|
@@ -858,14 +990,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
858
990
|
paddingMedium: string;
|
|
859
991
|
paddingLarge: string;
|
|
860
992
|
clearSize: string;
|
|
861
|
-
},
|
|
993
|
+
}, {
|
|
994
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
995
|
+
height: string;
|
|
996
|
+
width: string;
|
|
997
|
+
borderRadius: string;
|
|
998
|
+
color: string;
|
|
999
|
+
colorHover: string;
|
|
1000
|
+
railInsetHorizontalBottom: string;
|
|
1001
|
+
railInsetHorizontalTop: string;
|
|
1002
|
+
railInsetVerticalRight: string;
|
|
1003
|
+
railInsetVerticalLeft: string;
|
|
1004
|
+
railColor: string;
|
|
1005
|
+
}, any>;
|
|
1006
|
+
}>;
|
|
862
1007
|
}>>>;
|
|
863
1008
|
}>> & Readonly<{}>, {
|
|
864
1009
|
readonly: boolean;
|
|
1010
|
+
block: boolean;
|
|
865
1011
|
length: number;
|
|
1012
|
+
placeholder: string;
|
|
866
1013
|
disabled: boolean;
|
|
867
1014
|
mask: boolean;
|
|
868
|
-
placeholder: string;
|
|
869
1015
|
defaultValue: string[];
|
|
870
1016
|
}, SlotsType<InputOtpSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
871
1017
|
export default _default;
|
|
@@ -24,6 +24,7 @@ export const inputOtpProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
24
24
|
type: Number,
|
|
25
25
|
default: 6
|
|
26
26
|
},
|
|
27
|
+
block: Boolean,
|
|
27
28
|
size: String,
|
|
28
29
|
disabled: Boolean,
|
|
29
30
|
mask: Boolean,
|
|
@@ -173,6 +174,9 @@ export default defineComponent({
|
|
|
173
174
|
nTriggerFormChange();
|
|
174
175
|
}
|
|
175
176
|
const handlePaste = (e, index) => {
|
|
177
|
+
if (props.readonly || mergedDisabledRef.value) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
176
180
|
e.preventDefault();
|
|
177
181
|
const {
|
|
178
182
|
clipboardData
|
|
@@ -206,9 +210,10 @@ export default defineComponent({
|
|
|
206
210
|
}
|
|
207
211
|
};
|
|
208
212
|
const handleKeydown = (e, index) => {
|
|
213
|
+
if (mergedDisabledRef.value) return;
|
|
209
214
|
const keyCode = e.code || e.key;
|
|
210
215
|
const currentValue = justifyValue(mergedValueRef.value);
|
|
211
|
-
if (keyCode === 'Backspace') {
|
|
216
|
+
if (keyCode === 'Backspace' && !props.readonly) {
|
|
212
217
|
e.preventDefault();
|
|
213
218
|
currentValue[Math.max(index, 0)] = '';
|
|
214
219
|
doUpdateValue(currentValue, {
|
|
@@ -251,7 +256,10 @@ export default defineComponent({
|
|
|
251
256
|
onBlur: event => handleBlur(event, index)
|
|
252
257
|
};
|
|
253
258
|
};
|
|
254
|
-
|
|
259
|
+
const exposedMethods = {
|
|
260
|
+
focusOnChar
|
|
261
|
+
};
|
|
262
|
+
return Object.assign({
|
|
255
263
|
mergedTheme: themeRef,
|
|
256
264
|
perItemValueArray: computed(() => justifyValue(mergedValueRef.value)),
|
|
257
265
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -264,7 +272,7 @@ export default defineComponent({
|
|
|
264
272
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
265
273
|
getTemplateEvents,
|
|
266
274
|
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
267
|
-
};
|
|
275
|
+
}, exposedMethods);
|
|
268
276
|
},
|
|
269
277
|
render() {
|
|
270
278
|
const {
|
|
@@ -285,7 +293,7 @@ export default defineComponent({
|
|
|
285
293
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
286
294
|
return h("div", {
|
|
287
295
|
style: this.cssVars,
|
|
288
|
-
class: [`${mergedClsPrefix}-input-otp`, themeClass, this.rtlEnabled && `${mergedClsPrefix}-input-otp--rtl`]
|
|
296
|
+
class: [`${mergedClsPrefix}-input-otp`, themeClass, this.rtlEnabled && `${mergedClsPrefix}-input-otp--rtl`, this.block && `${mergedClsPrefix}-input-otp--block`]
|
|
289
297
|
}, repeat(this.length, undefined).map((_, index) => resolveSlotWithTypedProps($slots.default, Object.assign({
|
|
290
298
|
index,
|
|
291
299
|
value: perItemValueArray[index],
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { c, cB } from "../../../_utils/cssr/index.mjs";
|
|
1
|
+
import { c, cB, cM, cNotM } from "../../../_utils/cssr/index.mjs";
|
|
2
2
|
// --n-input-width
|
|
3
3
|
// --n-gap
|
|
4
4
|
export default c([cB('input-otp', `
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: var(--n-gap);
|
|
8
|
-
`, [cB('input', `
|
|
8
|
+
`, [cM('block', ``, [cB('input', ``, [cNotM('autosize', `
|
|
9
|
+
text-align: center;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
`), cM('autosize', `
|
|
12
|
+
text-align: center;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
`)])]), cNotM('block', ``, [cB('input', ``, [cNotM('autosize', `
|
|
15
|
+
width: var(--n-input-width);
|
|
16
|
+
text-align: center;
|
|
17
|
+
`), cM('autosize', `
|
|
9
18
|
width: var(--n-input-width);
|
|
10
19
|
text-align: center;
|
|
11
|
-
`)])]);
|
|
20
|
+
`)])])])]);
|
|
@@ -75,7 +75,20 @@ declare const inputOtpLight: import("../../_mixins").Theme<"InputOtp", {
|
|
|
75
75
|
paddingMedium: string;
|
|
76
76
|
paddingLarge: string;
|
|
77
77
|
clearSize: string;
|
|
78
|
-
},
|
|
78
|
+
}, {
|
|
79
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
80
|
+
height: string;
|
|
81
|
+
width: string;
|
|
82
|
+
borderRadius: string;
|
|
83
|
+
color: string;
|
|
84
|
+
colorHover: string;
|
|
85
|
+
railInsetHorizontalBottom: string;
|
|
86
|
+
railInsetHorizontalTop: string;
|
|
87
|
+
railInsetVerticalRight: string;
|
|
88
|
+
railInsetVerticalLeft: string;
|
|
89
|
+
railColor: string;
|
|
90
|
+
}, any>;
|
|
91
|
+
}>;
|
|
79
92
|
}>;
|
|
80
93
|
export default inputOtpLight;
|
|
81
94
|
export type InputOtpTheme = typeof inputOtpLight;
|
|
@@ -488,9 +488,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
488
488
|
width: string | number;
|
|
489
489
|
bordered: boolean;
|
|
490
490
|
contentStyle: string | CSSProperties;
|
|
491
|
-
inverted: boolean;
|
|
492
491
|
collapsed: boolean | undefined;
|
|
493
492
|
nativeScrollbar: boolean;
|
|
493
|
+
inverted: boolean;
|
|
494
494
|
collapsedWidth: number;
|
|
495
495
|
collapseMode: "transform" | "width";
|
|
496
496
|
defaultCollapsed: boolean;
|