naive-ui 2.38.2 → 2.40.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/index.js +31501 -32798
- package/dist/index.mjs +31486 -32787
- package/dist/index.prod.js +1 -9
- package/dist/index.prod.mjs +1 -9
- package/es/_internal/clear/src/Clear.mjs +1 -1
- package/es/_internal/clear/src/styles/index.cssr.mjs +1 -1
- package/es/_internal/close/src/Close.d.ts +0 -1
- package/es/_internal/close/src/Close.mjs +1 -1
- package/es/_internal/close/src/styles/index.cssr.mjs +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.mjs +1 -2
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +0 -1
- package/es/_internal/focus-detector/src/FocusDetector.mjs +1 -1
- package/es/_internal/icon/src/Icon.mjs +1 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +0 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.mjs +1 -1
- package/es/_internal/icons/Add.mjs +1 -1
- package/es/_internal/icons/ArrowBack.mjs +1 -1
- package/es/_internal/icons/ArrowDown.mjs +1 -1
- package/es/_internal/icons/ArrowUp.mjs +1 -1
- package/es/_internal/icons/Backward.mjs +1 -1
- package/es/_internal/icons/Checkmark.mjs +1 -1
- package/es/_internal/icons/ChevronDown.mjs +1 -1
- package/es/_internal/icons/ChevronDownFilled.mjs +1 -1
- package/es/_internal/icons/ChevronLeft.mjs +1 -1
- package/es/_internal/icons/ChevronRight.mjs +1 -1
- package/es/_internal/icons/Empty.mjs +1 -1
- package/es/_internal/icons/Eye.mjs +1 -1
- package/es/_internal/icons/EyeOff.mjs +1 -1
- package/es/_internal/icons/FastBackward.mjs +1 -1
- package/es/_internal/icons/FastForward.mjs +1 -1
- package/es/_internal/icons/File.mjs +1 -1
- package/es/_internal/icons/Filter.mjs +1 -1
- package/es/_internal/icons/Forward.mjs +1 -1
- package/es/_internal/icons/More.mjs +1 -1
- package/es/_internal/icons/Photo.mjs +1 -1
- package/es/_internal/icons/Remove.mjs +1 -1
- package/es/_internal/icons/ResizeSmall.mjs +1 -1
- package/es/_internal/icons/Search.mjs +1 -1
- package/es/_internal/icons/Switcher.mjs +1 -1
- package/es/_internal/icons/replaceable.d.ts +0 -1
- package/es/_internal/icons/replaceable.mjs +0 -1
- package/es/_internal/loading/src/Loading.mjs +1 -1
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/menu-mask/src/MenuMask.mjs +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +70 -24
- package/es/_internal/scrollbar/src/Scrollbar.mjs +53 -42
- package/es/_internal/scrollbar/src/styles/index.cssr.mjs +11 -5
- package/es/_internal/scrollbar/src/styles/rtl.cssr.mjs +1 -1
- package/es/_internal/scrollbar/styles/common.d.ts +4 -2
- package/es/_internal/scrollbar/styles/common.mjs +4 -2
- package/es/_internal/scrollbar/styles/light.d.ts +5 -3
- package/es/_internal/scrollbar/styles/light.mjs +2 -2
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectGroupHeader.mjs +1 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +75 -123
- package/es/_internal/select-menu/src/SelectMenu.mjs +5 -4
- package/es/_internal/select-menu/src/SelectOption.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectOption.mjs +2 -3
- package/es/_internal/select-menu/src/interface.d.ts +2 -2
- package/es/_internal/select-menu/styles/_common.d.ts +2 -0
- package/es/_internal/select-menu/styles/_common.mjs +2 -0
- package/es/_internal/select-menu/styles/light.d.ts +15 -3
- package/es/_internal/select-menu/styles/light.mjs +7 -3
- package/es/_internal/selection/src/Selection.d.ts +8 -112
- package/es/_internal/selection/src/Selection.mjs +5 -6
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +1 -1
- package/es/_internal/selection/styles/light.mjs +3 -3
- package/es/_internal/slot-machine/src/SlotMachine.d.ts +0 -1
- package/es/_internal/slot-machine/src/SlotMachine.mjs +1 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +0 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.mjs +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +0 -1
- package/es/_internal/suffix/src/Suffix.mjs +1 -1
- package/es/_internal/wave/src/Wave.mjs +1 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-config.mjs +1 -1
- package/es/_mixins/use-css-vars-class.mjs +10 -8
- package/es/_mixins/use-form-item.mjs +1 -1
- package/es/_mixins/use-hljs.mjs +1 -1
- package/es/_mixins/use-locale.mjs +2 -2
- package/es/_mixins/use-rtl.mjs +5 -2
- package/es/_mixins/use-style.mjs +5 -3
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.mjs +5 -4
- package/es/_styles/common/dark.mjs +3 -3
- package/es/_styles/common/light.mjs +3 -3
- package/es/_styles/transitions/fade-in-height-expand.cssr.mjs +2 -2
- package/es/_styles/transitions/fade-in-scale-up.cssr.mjs +2 -2
- package/es/_styles/transitions/icon-switch.cssr.mjs +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/composable/use-adjusted-to.mjs +1 -1
- package/es/_utils/composable/use-browser-location.d.ts +1 -1
- package/es/_utils/composable/use-browser-location.mjs +3 -3
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.mjs +1 -1
- package/es/_utils/composable/use-houdini.mjs +1 -1
- package/es/_utils/composable/use-is-composing.d.ts +1 -1
- package/es/_utils/composable/use-is-composing.mjs +7 -7
- package/es/_utils/composable/use-lock-html-scroll.mjs +1 -1
- package/es/_utils/cssr/index.mjs +0 -2
- package/es/_utils/dom/download.d.ts +1 -1
- package/es/_utils/dom/download.mjs +2 -2
- package/es/_utils/naive/extract-public-props.d.ts +2 -2
- package/es/_utils/naive/prop.mjs +1 -1
- package/es/_utils/naive/warn.d.ts +1 -0
- package/es/_utils/naive/warn.mjs +3 -0
- package/es/_utils/vue/call.mjs +3 -1
- package/es/_utils/vue/flatten.d.ts +1 -1
- package/es/_utils/vue/flatten.mjs +1 -1
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -1
- package/es/_utils/vue/get-first-slot-vnode.mjs +1 -1
- package/es/_utils/vue/get-slot.d.ts +1 -1
- package/es/_utils/vue/merge-handlers.mjs +0 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/_utils/vue/render.mjs +2 -2
- package/es/_utils/vue/resolve-slot.mjs +1 -1
- package/es/affix/src/Affix.mjs +4 -4
- package/es/alert/src/Alert.d.ts +4 -108
- package/es/alert/src/Alert.mjs +4 -6
- package/es/alert/styles/light.d.ts +1 -1
- package/es/alert/styles/light.mjs +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +0 -1
- package/es/anchor/src/AnchorAdapter.mjs +3 -3
- package/es/anchor/src/BaseAnchor.mjs +6 -4
- package/es/anchor/src/Link.d.ts +0 -1
- package/es/anchor/src/Link.mjs +1 -2
- package/es/anchor/src/styles/index.cssr.mjs +1 -1
- package/es/anchor/styles/light.d.ts +1 -1
- package/es/anchor/styles/light.mjs +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +115 -135
- package/es/auto-complete/src/AutoComplete.mjs +4 -4
- package/es/auto-complete/src/interface.d.ts +1 -1
- package/es/auto-complete/styles/light.d.ts +10 -2
- package/es/avatar/src/Avatar.d.ts +2 -2
- package/es/avatar/src/Avatar.mjs +2 -2
- package/es/avatar/src/styles/index.cssr.mjs +1 -1
- package/es/avatar/styles/light.d.ts +1 -1
- package/es/avatar/styles/light.mjs +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +5 -109
- package/es/avatar-group/src/AvatarGroup.mjs +2 -2
- package/es/avatar-group/styles/light.d.ts +1 -1
- package/es/avatar-group/styles/light.mjs +2 -2
- package/es/back-top/src/BackTop.d.ts +3 -3
- package/es/back-top/src/BackTop.mjs +2 -2
- package/es/back-top/src/BackTopIcon.d.ts +0 -1
- package/es/back-top/styles/dark.mjs +1 -1
- package/es/back-top/styles/light.d.ts +1 -1
- package/es/back-top/styles/light.mjs +3 -3
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.mjs +2 -2
- package/es/badge/src/styles/index.cssr.mjs +1 -1
- package/es/badge/styles/light.d.ts +1 -1
- package/es/badge/styles/light.mjs +2 -2
- package/es/breadcrumb/src/Breadcrumb.mjs +2 -2
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +0 -1
- package/es/breadcrumb/src/BreadcrumbItem.mjs +1 -1
- package/es/breadcrumb/styles/light.d.ts +1 -1
- package/es/breadcrumb/styles/light.mjs +3 -3
- package/es/button/src/Button.d.ts +6 -6
- package/es/button/src/Button.mjs +8 -8
- package/es/button/src/styles/rtl.cssr.mjs +1 -1
- package/es/button/styles/light.d.ts +1 -1
- package/es/button/styles/light.mjs +3 -3
- package/es/button/styles/rtl.d.ts +1 -1
- package/es/button-group/src/ButtonGroup.mjs +1 -1
- package/es/button-group/src/styles/index.cssr.d.ts +1 -1
- package/es/button-group/src/styles/index.cssr.mjs +3 -3
- package/es/button-group/src/styles/rtl.cssr.mjs +3 -3
- package/es/button-group/styles/rtl.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +4 -108
- package/es/calendar/src/Calendar.mjs +2 -2
- package/es/calendar/src/styles/index.cssr.mjs +1 -1
- package/es/calendar/styles/dark.mjs +1 -1
- package/es/calendar/styles/light.d.ts +1 -1
- package/es/calendar/styles/light.mjs +3 -3
- package/es/card/src/Card.d.ts +18 -122
- package/es/card/src/Card.mjs +2 -2
- package/es/card/src/styles/rtl.cssr.mjs +1 -1
- package/es/card/styles/light.d.ts +2 -2
- package/es/card/styles/light.mjs +2 -2
- package/es/card/styles/rtl.d.ts +1 -1
- package/es/carousel/src/Carousel.d.ts +18 -20
- package/es/carousel/src/Carousel.mjs +38 -28
- package/es/carousel/src/CarouselArrow.mjs +1 -1
- package/es/carousel/src/CarouselContext.d.ts +2 -2
- package/es/carousel/src/CarouselContext.mjs +4 -4
- package/es/carousel/src/CarouselDots.d.ts +3 -3
- package/es/carousel/src/CarouselDots.mjs +1 -1
- package/es/carousel/src/CarouselItem.d.ts +1 -1
- package/es/carousel/src/CarouselItem.mjs +3 -3
- package/es/carousel/src/utils/index.mjs +2 -2
- package/es/carousel/styles/light.d.ts +1 -2
- package/es/carousel/styles/light.mjs +2 -2
- package/es/cascader/src/Cascader.d.ts +181 -169
- package/es/cascader/src/Cascader.mjs +12 -8
- package/es/cascader/src/CascaderMenu.d.ts +24 -112
- package/es/cascader/src/CascaderMenu.mjs +1 -2
- package/es/cascader/src/CascaderOption.d.ts +25 -117
- package/es/cascader/src/CascaderOption.mjs +4 -5
- package/es/cascader/src/CascaderSelectMenu.d.ts +25 -113
- package/es/cascader/src/CascaderSelectMenu.mjs +3 -4
- package/es/cascader/src/CascaderSubmenu.d.ts +24 -112
- package/es/cascader/src/CascaderSubmenu.mjs +3 -4
- package/es/cascader/src/interface.d.ts +1 -1
- package/es/cascader/src/utils.d.ts +1 -1
- package/es/cascader/styles/dark.mjs +1 -1
- package/es/cascader/styles/light.d.ts +17 -5
- package/es/cascader/styles/light.mjs +2 -2
- package/es/checkbox/src/CheckMark.d.ts +0 -1
- package/es/checkbox/src/Checkbox.d.ts +9 -113
- package/es/checkbox/src/Checkbox.mjs +19 -19
- package/es/checkbox/src/CheckboxGroup.d.ts +16 -16
- package/es/checkbox/src/CheckboxGroup.mjs +1 -1
- package/es/checkbox/src/LineMark.d.ts +0 -1
- package/es/checkbox/styles/light.d.ts +1 -1
- package/es/checkbox/styles/light.mjs +2 -2
- package/es/code/src/Code.mjs +2 -2
- package/es/code/src/styles/index.cssr.mjs +0 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/code/styles/light.mjs +2 -2
- package/es/collapse/src/Collapse.d.ts +15 -119
- package/es/collapse/src/Collapse.mjs +2 -2
- package/es/collapse/src/CollapseItem.d.ts +3 -3
- package/es/collapse/src/CollapseItem.mjs +3 -3
- package/es/collapse/src/CollapseItemContent.d.ts +2 -2
- package/es/collapse/src/CollapseItemContent.mjs +1 -1
- package/es/collapse/styles/light.d.ts +1 -1
- package/es/collapse/styles/light.mjs +2 -2
- package/es/collapse-transition/src/CollapseTransition.mjs +2 -2
- package/es/collapse-transition/styles/light.d.ts +1 -1
- package/es/collapse-transition/styles/light.mjs +2 -2
- package/es/color-picker/src/ColorInput.d.ts +3 -3
- package/es/color-picker/src/ColorInput.mjs +3 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +3 -107
- package/es/color-picker/src/ColorInputUnit.mjs +4 -5
- package/es/color-picker/src/ColorPicker.d.ts +13 -10
- package/es/color-picker/src/ColorPicker.mjs +10 -10
- package/es/color-picker/src/ColorPickerSwatches.mjs +2 -2
- package/es/color-picker/src/ColorPickerTrigger.d.ts +0 -1
- package/es/color-picker/src/ColorPickerTrigger.mjs +0 -1
- package/es/color-picker/src/Pallete.mjs +1 -1
- package/es/color-picker/src/interface.d.ts +1 -0
- package/es/color-picker/styles/light.d.ts +1 -1
- package/es/color-picker/styles/light.mjs +2 -2
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +17 -389
- package/es/config-provider/src/ConfigProvider.mjs +6 -6
- package/es/config-provider/src/internal-interface.d.ts +4 -3
- package/es/countdown/src/Countdown.d.ts +4 -4
- package/es/countdown/src/Countdown.mjs +3 -3
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +301 -173
- package/es/data-table/src/DataTable.mjs +35 -18
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +54 -115
- package/es/data-table/src/HeaderButton/FilterButton.mjs +12 -9
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +53 -115
- package/es/data-table/src/HeaderButton/FilterMenu.mjs +1 -2
- package/es/data-table/src/HeaderButton/ResizeButton.mjs +1 -2
- package/es/data-table/src/HeaderButton/SortButton.mjs +2 -3
- package/es/data-table/src/MainTable.d.ts +1 -0
- package/es/data-table/src/MainTable.mjs +8 -5
- package/es/data-table/src/TableParts/Body.d.ts +61 -120
- package/es/data-table/src/TableParts/Body.mjs +134 -26
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +0 -1
- package/es/data-table/src/TableParts/BodyCheckbox.mjs +0 -1
- package/es/data-table/src/TableParts/BodyRadio.d.ts +0 -1
- package/es/data-table/src/TableParts/BodyRadio.mjs +0 -1
- package/es/data-table/src/TableParts/Cell.d.ts +5 -2515
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +9 -1
- package/es/data-table/src/TableParts/ExpandTrigger.mjs +7 -2
- package/es/data-table/src/TableParts/Header.d.ts +61 -118
- package/es/data-table/src/TableParts/Header.mjs +211 -80
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +0 -1
- package/es/data-table/src/TableParts/SelectionMenu.mjs +1 -2
- package/es/data-table/src/interface.d.ts +132 -30
- package/es/data-table/src/interface.mjs +12 -0
- package/es/data-table/src/styles/index.cssr.mjs +17 -1
- package/es/data-table/src/styles/rtl.cssr.mjs +1 -1
- package/es/data-table/src/use-check.d.ts +2 -2
- package/es/data-table/src/use-check.mjs +0 -2
- package/es/data-table/src/use-expand.d.ts +1 -1
- package/es/data-table/src/use-expand.mjs +1 -2
- package/es/data-table/src/use-group-header.d.ts +7 -1
- package/es/data-table/src/use-group-header.mjs +10 -5
- package/es/data-table/src/use-resizable.mjs +0 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-scroll.mjs +2 -3
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-sorter.mjs +0 -3
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/data-table/src/use-table-data.mjs +1 -2
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/data-table/src/utils.mjs +3 -4
- package/es/data-table/styles/light.d.ts +39 -7
- package/es/data-table/styles/light.mjs +9 -3
- package/es/date-picker/index.d.ts +3 -3
- package/es/date-picker/index.mjs +2 -1
- package/es/date-picker/src/DatePicker.d.ts +157 -2212
- package/es/date-picker/src/DatePicker.mjs +13 -90
- package/es/date-picker/src/config.d.ts +0 -1
- package/es/date-picker/src/config.mjs +0 -1
- package/es/date-picker/src/interface.d.ts +8 -7
- package/es/date-picker/src/panel/date.d.ts +25 -150
- package/es/date-picker/src/panel/date.mjs +12 -6
- package/es/date-picker/src/panel/daterange.d.ts +26 -121
- package/es/date-picker/src/panel/daterange.mjs +12 -5
- package/es/date-picker/src/panel/datetime.d.ts +24 -119
- package/es/date-picker/src/panel/datetime.mjs +18 -7
- package/es/date-picker/src/panel/datetimerange.d.ts +25 -120
- package/es/date-picker/src/panel/datetimerange.mjs +14 -5
- package/es/date-picker/src/panel/month.d.ts +27 -122
- package/es/date-picker/src/panel/month.mjs +24 -9
- package/es/date-picker/src/panel/monthrange.d.ts +29 -124
- package/es/date-picker/src/panel/monthrange.mjs +12 -5
- package/es/date-picker/src/panel/panelHeader.d.ts +51 -246
- package/es/date-picker/src/panel/panelHeader.mjs +2 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +20 -117
- package/es/date-picker/src/panel/use-calendar.mjs +9 -10
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +24 -121
- package/es/date-picker/src/panel/use-dual-calendar.mjs +11 -12
- package/es/date-picker/src/panel/use-panel-common.d.ts +19 -116
- package/es/date-picker/src/panel/use-panel-common.mjs +2 -3
- package/es/date-picker/src/props.d.ts +2008 -0
- package/es/date-picker/src/props.mjs +87 -0
- package/es/date-picker/src/public-types.d.ts +23 -0
- package/es/date-picker/src/public-types.mjs +1 -0
- package/es/date-picker/src/utils.d.ts +2 -1
- package/es/date-picker/src/utils.mjs +7 -10
- package/es/date-picker/src/validation-utils.mjs +1 -2
- package/es/date-picker/styles/light.d.ts +9 -5
- package/es/date-picker/styles/light.mjs +3 -3
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/descriptions/src/Descriptions.mjs +3 -3
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +1 -1
- package/es/descriptions/styles/light.mjs +3 -3
- package/es/dialog/src/Dialog.d.ts +9 -113
- package/es/dialog/src/Dialog.mjs +4 -4
- package/es/dialog/src/DialogEnvironment.d.ts +19 -19
- package/es/dialog/src/DialogEnvironment.mjs +5 -3
- package/es/dialog/src/DialogProvider.d.ts +7 -7
- package/es/dialog/src/DialogProvider.mjs +2 -3
- package/es/dialog/src/composables.mjs +1 -1
- package/es/dialog/src/dialogProps.d.ts +4 -4
- package/es/dialog/styles/light.d.ts +1 -1
- package/es/dialog/styles/light.mjs +3 -3
- package/es/discrete/src/discrete.mjs +1 -1
- package/es/discrete/src/discreteApp.mjs +6 -6
- package/es/discrete/src/interface.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +3 -3
- package/es/divider/src/Divider.mjs +1 -1
- package/es/divider/src/styles/index.cssr.mjs +1 -1
- package/es/divider/styles/light.d.ts +1 -1
- package/es/divider/styles/light.mjs +2 -2
- package/es/drawer/src/Drawer.d.ts +45 -129
- package/es/drawer/src/Drawer.mjs +6 -4
- package/es/drawer/src/DrawerBodyWrapper.d.ts +8 -110
- package/es/drawer/src/DrawerBodyWrapper.mjs +7 -8
- package/es/drawer/src/DrawerContent.d.ts +5 -107
- package/es/drawer/src/styles/index.cssr.mjs +3 -1
- package/es/drawer/styles/light.d.ts +5 -3
- package/es/drawer/styles/light.mjs +2 -2
- package/es/dropdown/src/Dropdown.d.ts +23 -127
- package/es/dropdown/src/Dropdown.mjs +3 -3
- package/es/dropdown/src/DropdownDivider.mjs +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +3 -2
- package/es/dropdown/src/DropdownGroup.mjs +1 -2
- package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/es/dropdown/src/DropdownGroupHeader.mjs +1 -4
- package/es/dropdown/src/DropdownMenu.d.ts +5 -4
- package/es/dropdown/src/DropdownMenu.mjs +4 -7
- package/es/dropdown/src/DropdownOption.d.ts +7 -6
- package/es/dropdown/src/DropdownOption.mjs +4 -8
- package/es/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/es/dropdown/src/DropdownRenderOption.mjs +1 -1
- package/es/dropdown/src/interface.d.ts +1 -1
- package/es/dropdown/src/styles/index.cssr.mjs +1 -1
- package/es/dropdown/styles/dark.mjs +1 -1
- package/es/dropdown/styles/light.d.ts +1 -1
- package/es/dropdown/styles/light.mjs +3 -3
- package/es/dynamic-input/src/DynamicInput.d.ts +4 -108
- package/es/dynamic-input/src/DynamicInput.mjs +5 -5
- package/es/dynamic-input/src/InputPreset.d.ts +1 -105
- package/es/dynamic-input/src/InputPreset.mjs +1 -2
- package/es/dynamic-input/src/PairPreset.d.ts +1 -105
- package/es/dynamic-input/src/PairPreset.mjs +0 -1
- package/es/dynamic-input/src/styles/index.cssr.mjs +1 -1
- package/es/dynamic-input/styles/light.d.ts +1 -1
- package/es/dynamic-input/styles/light.mjs +3 -3
- package/es/dynamic-tags/src/DynamicTags.d.ts +13 -117
- package/es/dynamic-tags/src/DynamicTags.mjs +2 -2
- package/es/element/src/Element.mjs +1 -1
- package/es/element/styles/dark.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +4 -109
- package/es/ellipsis/src/Ellipsis.mjs +4 -2
- package/es/ellipsis/src/PerformantEllipsis.d.ts +3 -4
- package/es/ellipsis/src/PerformantEllipsis.mjs +1 -1
- package/es/ellipsis/src/styles/index.cssr.mjs +1 -1
- package/es/ellipsis/styles/dark.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +22 -4
- package/es/empty/src/Empty.mjs +5 -6
- package/es/empty/styles/_common.d.ts +1 -0
- package/es/empty/styles/_common.mjs +1 -0
- package/es/empty/styles/light.d.ts +3 -1
- package/es/empty/styles/light.mjs +5 -3
- package/es/equation/src/Equation.d.ts +4 -3
- package/es/equation/src/Equation.mjs +1 -1
- package/es/flex/src/Flex.d.ts +10 -9
- package/es/flex/src/Flex.mjs +1 -1
- package/es/flex/src/type.d.ts +1 -1
- package/es/flex/styles/light.d.ts +1 -1
- package/es/flex/styles/light.mjs +2 -2
- package/es/flex/styles/rtl.d.ts +1 -1
- package/es/float-button/src/FloatButton.d.ts +12 -11
- package/es/float-button/src/FloatButton.mjs +22 -8
- package/es/float-button/styles/light.d.ts +2 -2
- package/es/float-button/styles/light.mjs +2 -2
- package/es/float-button-group/src/FloatButtonGroup.d.ts +6 -6
- package/es/float-button-group/src/FloatButtonGroup.mjs +2 -2
- package/es/float-button-group/styles/light.d.ts +3 -3
- package/es/float-button-group/styles/light.mjs +2 -2
- package/es/form/src/Form.d.ts +5 -5
- package/es/form/src/Form.mjs +2 -3
- package/es/form/src/FormItem.d.ts +9 -9
- package/es/form/src/FormItem.mjs +72 -72
- package/es/form/src/FormItemCol.d.ts +6 -6
- package/es/form/src/FormItemCol.mjs +3 -3
- package/es/form/src/FormItemGridItem.d.ts +6 -6
- package/es/form/src/FormItemGridItem.mjs +3 -3
- package/es/form/src/FormItemRow.d.ts +6 -6
- package/es/form/src/FormItemRow.mjs +3 -3
- package/es/form/src/interface.d.ts +1 -1
- package/es/form/src/styles/form-item.cssr.mjs +1 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/form/src/utils.mjs +2 -4
- package/es/form/styles/light.d.ts +1 -1
- package/es/form/styles/light.mjs +2 -2
- package/es/global-style/src/GlobalStyle.mjs +1 -1
- package/es/gradient-text/src/GradientText.d.ts +3 -3
- package/es/gradient-text/src/GradientText.mjs +1 -1
- package/es/gradient-text/styles/light.d.ts +1 -1
- package/es/gradient-text/styles/light.mjs +2 -2
- package/es/grid/src/Grid.d.ts +15 -15
- package/es/grid/src/Grid.mjs +3 -3
- package/es/grid/src/GridItem.mjs +1 -3
- package/es/highlight/index.d.ts +2 -0
- package/es/highlight/index.mjs +1 -0
- package/es/highlight/src/Highlight.d.ts +65 -0
- package/es/highlight/src/Highlight.mjs +75 -0
- package/es/highlight/src/public-types.d.ts +3 -0
- package/es/highlight/src/public-types.mjs +1 -0
- package/es/highlight/src/utils.d.ts +4 -0
- package/es/highlight/src/utils.mjs +30 -0
- package/es/icon/src/Icon.d.ts +3 -3
- package/es/icon/src/Icon.mjs +3 -3
- package/es/icon/styles/light.d.ts +1 -1
- package/es/icon/styles/light.mjs +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +0 -1
- package/es/icon-wrapper/styles/light.d.ts +1 -1
- package/es/icon-wrapper/styles/light.mjs +2 -2
- package/es/image/src/Image.d.ts +8 -8
- package/es/image/src/Image.mjs +1 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImageGroup.mjs +7 -3
- package/es/image/src/ImagePreview.d.ts +3 -3
- package/es/image/src/ImagePreview.mjs +14 -12
- package/es/image/src/icons.d.ts +0 -1
- package/es/image/src/utils.d.ts +2 -2
- package/es/image/src/utils.mjs +3 -5
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +3 -3
- package/es/infinite-scroll/src/InfiniteScroll.mjs +5 -5
- package/es/input/src/Input.d.ts +34 -138
- package/es/input/src/Input.mjs +22 -15
- package/es/input/src/InputGroup.mjs +1 -1
- package/es/input/src/WordCount.d.ts +0 -1
- package/es/input/src/WordCount.mjs +2 -4
- package/es/input/src/styles/input.cssr.mjs +1 -1
- package/es/input/src/utils.mjs +0 -1
- package/es/input/styles/dark.mjs +1 -1
- package/es/input/styles/light.d.ts +1 -1
- package/es/input/styles/light.mjs +3 -3
- package/es/input-number/src/InputNumber.d.ts +24 -115
- package/es/input-number/src/InputNumber.mjs +40 -35
- package/es/input-number/src/styles/input-number.cssr.mjs +1 -1
- package/es/input-number/src/utils.mjs +4 -2
- package/es/input-number/styles/light.d.ts +1 -1
- package/es/input-number/styles/light.mjs +2 -2
- package/es/layout/src/Layout.d.ts +59 -239
- package/es/layout/src/Layout.mjs +1 -5
- package/es/layout/src/LayoutContent.d.ts +29 -119
- package/es/layout/src/LayoutFooter.d.ts +36 -18
- package/es/layout/src/LayoutFooter.mjs +1 -1
- package/es/layout/src/LayoutHeader.d.ts +24 -12
- package/es/layout/src/LayoutHeader.mjs +1 -1
- package/es/layout/src/LayoutSider.d.ts +37 -127
- package/es/layout/src/LayoutSider.mjs +5 -8
- package/es/layout/src/ToggleBar.mjs +1 -1
- package/es/layout/src/ToggleButton.mjs +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/dark.mjs +1 -1
- package/es/layout/styles/light.d.ts +5 -3
- package/es/layout/styles/light.mjs +2 -2
- package/es/legacy-grid/src/Col.mjs +1 -1
- package/es/legacy-grid/src/Row.mjs +1 -1
- package/es/legacy-grid/src/styles/index.cssr.mjs +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +63 -127
- package/es/legacy-transfer/src/Transfer.mjs +3 -3
- package/es/legacy-transfer/src/TransferFilter.d.ts +7 -107
- package/es/legacy-transfer/src/TransferFilter.mjs +1 -2
- package/es/legacy-transfer/src/TransferHeader.d.ts +0 -1
- package/es/legacy-transfer/src/TransferHeader.mjs +1 -2
- package/es/legacy-transfer/src/TransferList.d.ts +8 -108
- package/es/legacy-transfer/src/TransferList.mjs +1 -2
- package/es/legacy-transfer/src/TransferListItem.d.ts +7 -107
- package/es/legacy-transfer/src/TransferListItem.mjs +2 -3
- package/es/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/es/legacy-transfer/src/use-transfer-data.mjs +1 -2
- package/es/legacy-transfer/styles/dark.mjs +1 -1
- package/es/legacy-transfer/styles/light.d.ts +7 -3
- package/es/legacy-transfer/styles/light.mjs +3 -3
- package/es/list/src/List.mjs +1 -1
- package/es/list/src/ListItem.mjs +1 -1
- package/es/list/src/styles/index.cssr.mjs +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/list/styles/light.mjs +2 -2
- package/es/loading-bar/src/LoadingBar.d.ts +2 -2
- package/es/loading-bar/src/LoadingBar.mjs +1 -3
- package/es/loading-bar/src/LoadingBarProvider.d.ts +10 -10
- package/es/loading-bar/src/LoadingBarProvider.mjs +1 -1
- package/es/loading-bar/src/use-loading-bar.mjs +1 -1
- package/es/loading-bar/styles/light.d.ts +1 -1
- package/es/loading-bar/styles/light.mjs +2 -2
- package/es/locales/common/arDZ.mjs +1 -1
- package/es/locales/common/azAZ.d.ts +3 -0
- package/es/locales/common/azAZ.mjs +124 -0
- package/es/locales/common/csCZ.mjs +1 -1
- package/es/locales/common/deDE.mjs +1 -1
- package/es/locales/common/enGB.mjs +1 -1
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/enUS.mjs +1 -1
- package/es/locales/common/eo.mjs +1 -1
- package/es/locales/common/esAR.mjs +1 -1
- package/es/locales/common/etEE.mjs +1 -1
- package/es/locales/common/faIR.mjs +1 -1
- package/es/locales/common/frFR.mjs +6 -6
- package/es/locales/common/idID.mjs +1 -1
- package/es/locales/common/itIT.mjs +3 -3
- package/es/locales/common/jaJP.mjs +1 -1
- package/es/locales/common/koKR.mjs +1 -1
- package/es/locales/common/nbNO.mjs +1 -1
- package/es/locales/common/nlNL.mjs +1 -1
- package/es/locales/common/plPL.mjs +1 -1
- package/es/locales/common/ptBR.mjs +1 -1
- package/es/locales/common/ruRU.mjs +1 -1
- package/es/locales/common/skSK.mjs +1 -1
- package/es/locales/common/svSE.mjs +1 -1
- package/es/locales/common/thTH.mjs +1 -1
- package/es/locales/common/trTR.mjs +1 -1
- package/es/locales/common/ukUA.mjs +1 -1
- package/es/locales/common/uzUZ.d.ts +3 -0
- package/es/locales/common/uzUZ.mjs +125 -0
- package/es/locales/common/viVN.mjs +1 -1
- package/es/locales/common/zhCN.mjs +1 -1
- package/es/locales/common/zhTW.mjs +1 -1
- package/es/locales/date/arDZ.mjs +1 -1
- package/es/locales/date/azAZ.d.ts +3 -0
- package/es/locales/date/azAZ.mjs +6 -0
- package/es/locales/date/csCZ.d.ts +1 -1
- package/es/locales/date/csCZ.mjs +1 -1
- package/es/locales/date/deDE.mjs +1 -1
- package/es/locales/date/enGB.d.ts +1 -1
- package/es/locales/date/enGB.mjs +1 -1
- package/es/locales/date/enUS.mjs +1 -1
- package/es/locales/date/eo.mjs +1 -1
- package/es/locales/date/esAR.d.ts +1 -1
- package/es/locales/date/esAR.mjs +2 -2
- package/es/locales/date/etEE.d.ts +1 -1
- package/es/locales/date/etEE.mjs +1 -1
- package/es/locales/date/faIR.d.ts +1 -1
- package/es/locales/date/faIR.mjs +1 -1
- package/es/locales/date/frFR.d.ts +1 -1
- package/es/locales/date/frFR.mjs +2 -2
- package/es/locales/date/idID.d.ts +1 -1
- package/es/locales/date/idID.mjs +2 -2
- package/es/locales/date/itIT.d.ts +1 -1
- package/es/locales/date/itIT.mjs +2 -2
- package/es/locales/date/jaJP.d.ts +1 -1
- package/es/locales/date/jaJP.mjs +1 -1
- package/es/locales/date/koKR.d.ts +1 -1
- package/es/locales/date/koKR.mjs +1 -1
- package/es/locales/date/nbNO.d.ts +1 -1
- package/es/locales/date/nbNO.mjs +1 -1
- package/es/locales/date/nlNL.d.ts +1 -1
- package/es/locales/date/nlNL.mjs +1 -1
- package/es/locales/date/plPL.d.ts +1 -1
- package/es/locales/date/plPL.mjs +2 -2
- package/es/locales/date/ptBR.d.ts +1 -1
- package/es/locales/date/ptBR.mjs +1 -1
- package/es/locales/date/ruRU.d.ts +1 -1
- package/es/locales/date/ruRU.mjs +1 -1
- package/es/locales/date/skSK.d.ts +1 -1
- package/es/locales/date/skSK.mjs +1 -1
- package/es/locales/date/svSE.d.ts +1 -1
- package/es/locales/date/svSE.mjs +1 -1
- package/es/locales/date/thTH.d.ts +1 -1
- package/es/locales/date/thTH.mjs +3 -3
- package/es/locales/date/trTR.d.ts +1 -1
- package/es/locales/date/trTR.mjs +3 -3
- package/es/locales/date/ukUA.d.ts +1 -1
- package/es/locales/date/ukUA.mjs +1 -1
- package/es/locales/date/uzUZ.d.ts +3 -0
- package/es/locales/date/uzUZ.mjs +6 -0
- package/es/locales/date/viVN.d.ts +1 -1
- package/es/locales/date/viVN.mjs +2 -2
- package/es/locales/date/zhCN.d.ts +1 -1
- package/es/locales/date/zhCN.mjs +1 -1
- package/es/locales/date/zhTW.d.ts +1 -1
- package/es/locales/date/zhTW.mjs +1 -1
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.mjs +4 -0
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +45 -129
- package/es/log/src/Log.mjs +4 -4
- package/es/log/src/LogLine.mjs +2 -4
- package/es/log/src/LogLoader.mjs +1 -1
- package/es/log/styles/light.d.ts +5 -3
- package/es/log/styles/light.mjs +2 -2
- package/es/mention/src/Mention.d.ts +121 -140
- package/es/mention/src/Mention.mjs +12 -10
- package/es/mention/src/utils.mjs +8 -8
- package/es/mention/styles/light.d.ts +11 -3
- package/es/mention/styles/light.mjs +2 -2
- package/es/menu/src/Menu.d.ts +13 -117
- package/es/menu/src/Menu.mjs +5 -4
- package/es/menu/src/MenuDivider.d.ts +0 -1
- package/es/menu/src/MenuDivider.mjs +1 -2
- package/es/menu/src/MenuOption.d.ts +1 -105
- package/es/menu/src/MenuOption.mjs +1 -1
- package/es/menu/src/MenuOptionContent.mjs +0 -1
- package/es/menu/src/MenuOptionGroup.d.ts +0 -1
- package/es/menu/src/MenuOptionGroup.mjs +3 -5
- package/es/menu/src/Submenu.d.ts +1 -105
- package/es/menu/src/Submenu.mjs +1 -2
- package/es/menu/src/interface.d.ts +2 -2
- package/es/menu/src/use-menu-child.mjs +2 -3
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.mjs +0 -2
- package/es/menu/styles/light.d.ts +1 -1
- package/es/menu/styles/light.mjs +2 -2
- package/es/message/src/Message.d.ts +2 -2
- package/es/message/src/Message.mjs +6 -6
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageEnvironment.mjs +1 -1
- package/es/message/src/MessageProvider.d.ts +4 -4
- package/es/message/src/MessageProvider.mjs +1 -2
- package/es/message/styles/light.d.ts +1 -1
- package/es/message/styles/light.mjs +3 -3
- package/es/modal/src/BodyWrapper.d.ts +26 -128
- package/es/modal/src/BodyWrapper.mjs +1 -2
- package/es/modal/src/Modal.d.ts +78 -60
- package/es/modal/src/Modal.mjs +6 -4
- package/es/modal/src/ModalEnvironment.d.ts +53 -41
- package/es/modal/src/ModalEnvironment.mjs +4 -2
- package/es/modal/src/ModalProvider.d.ts +5 -14924
- package/es/modal/src/ModalProvider.mjs +2 -3
- package/es/modal/src/composables.mjs +1 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +9 -9
- package/es/modal/src/styles/index.cssr.mjs +1 -1
- package/es/modal/styles/light.d.ts +5 -3
- package/es/modal/styles/light.mjs +2 -2
- package/es/notification/src/Notification.d.ts +3 -3
- package/es/notification/src/Notification.mjs +4 -5
- package/es/notification/src/NotificationContainer.d.ts +5 -107
- package/es/notification/src/NotificationContainer.mjs +1 -2
- package/es/notification/src/NotificationEnvironment.d.ts +4 -7
- package/es/notification/src/NotificationEnvironment.mjs +2 -3
- package/es/notification/src/NotificationProvider.d.ts +42 -24
- package/es/notification/src/NotificationProvider.mjs +5 -4
- package/es/notification/src/styles/index.cssr.d.ts +1 -1
- package/es/notification/src/styles/rtl.cssr.mjs +1 -1
- package/es/notification/src/use-notification.mjs +1 -1
- package/es/notification/styles/light.d.ts +5 -3
- package/es/notification/styles/light.mjs +2 -2
- package/es/notification/styles/rtl.d.ts +1 -1
- package/es/number-animation/src/NumberAnimation.mjs +2 -2
- package/es/number-animation/src/utils.mjs +1 -1
- package/es/page-header/src/PageHeader.mjs +2 -3
- package/es/page-header/src/styles/rtl.cssr.mjs +1 -1
- package/es/pagination/src/Pagination.d.ts +241 -169
- package/es/pagination/src/Pagination.mjs +9 -10
- package/es/pagination/src/styles/index.cssr.mjs +1 -1
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/src/utils.mjs +2 -2
- package/es/pagination/styles/light.d.ts +21 -5
- package/es/pagination/styles/light.mjs +3 -3
- package/es/popconfirm/src/Popconfirm.d.ts +21 -125
- package/es/popconfirm/src/Popconfirm.mjs +2 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popconfirm/src/PopconfirmPanel.mjs +1 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +1 -1
- package/es/popconfirm/styles/light.mjs +2 -2
- package/es/popover/src/Popover.d.ts +23 -23
- package/es/popover/src/Popover.mjs +9 -6
- package/es/popover/src/PopoverBody.d.ts +17 -17
- package/es/popover/src/PopoverBody.mjs +34 -35
- package/es/popover/src/interface.d.ts +1 -1
- package/es/popover/src/styles/index.cssr.d.ts +1 -1
- package/es/popover/src/styles/index.cssr.mjs +1 -1
- package/es/popover/styles/light.d.ts +1 -1
- package/es/popover/styles/light.mjs +2 -2
- package/es/popselect/src/Popselect.d.ts +126 -146
- package/es/popselect/src/Popselect.mjs +3 -3
- package/es/popselect/src/PopselectPanel.d.ts +19 -111
- package/es/popselect/src/PopselectPanel.mjs +1 -3
- package/es/popselect/src/interface.d.ts +1 -1
- package/es/popselect/styles/light.d.ts +11 -3
- package/es/preset.d.ts +1 -1
- package/es/progress/src/Circle.d.ts +2 -3
- package/es/progress/src/Circle.mjs +2 -2
- package/es/progress/src/Line.d.ts +2 -3
- package/es/progress/src/Line.mjs +2 -2
- package/es/progress/src/MultipleCircle.d.ts +3 -4
- package/es/progress/src/MultipleCircle.mjs +1 -1
- package/es/progress/src/Progress.d.ts +9 -9
- package/es/progress/src/Progress.mjs +1 -1
- package/es/progress/styles/light.d.ts +1 -1
- package/es/progress/styles/light.mjs +2 -2
- package/es/qr-code/src/QrCode.mjs +4 -4
- package/es/qr-code/src/qrcodegen.mjs +6 -9
- package/es/qr-code/styles/dark.d.ts +1 -1
- package/es/qr-code/styles/light.d.ts +2 -2
- package/es/qr-code/styles/light.mjs +2 -2
- package/es/radio/src/Radio.d.ts +6 -6
- package/es/radio/src/Radio.mjs +2 -2
- package/es/radio/src/RadioButton.d.ts +6 -6
- package/es/radio/src/RadioButton.mjs +2 -2
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/RadioGroup.mjs +4 -4
- package/es/radio/src/styles/radio-group.cssr.mjs +1 -1
- package/es/radio/src/styles/radio.cssr.mjs +1 -1
- package/es/radio/src/use-radio.d.ts +4 -4
- package/es/radio/src/use-radio.mjs +1 -1
- package/es/radio/styles/dark.mjs +1 -1
- package/es/radio/styles/light.d.ts +2 -2
- package/es/radio/styles/light.mjs +3 -3
- package/es/rate/src/Rate.mjs +2 -2
- package/es/rate/src/StarIcon.d.ts +0 -1
- package/es/rate/styles/dark.d.ts +1 -1
- package/es/rate/styles/light.d.ts +2 -2
- package/es/rate/styles/light.mjs +2 -2
- package/es/result/src/403.d.ts +0 -1
- package/es/result/src/404.d.ts +0 -1
- package/es/result/src/418.d.ts +0 -1
- package/es/result/src/500.d.ts +0 -1
- package/es/result/src/Result.d.ts +3 -3
- package/es/result/src/Result.mjs +2 -2
- package/es/result/styles/light.d.ts +1 -1
- package/es/result/styles/light.mjs +3 -3
- package/es/scrollbar/src/Scrollbar.d.ts +62 -18
- package/es/scrollbar/src/Scrollbar.mjs +10 -4
- package/es/select/src/Select.d.ts +133 -144
- package/es/select/src/Select.mjs +60 -55
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/src/styles/index.cssr.mjs +1 -1
- package/es/select/src/utils.d.ts +1 -1
- package/es/select/src/utils.mjs +1 -2
- package/es/select/styles/light.d.ts +10 -2
- package/es/skeleton/src/Skeleton.mjs +1 -1
- package/es/skeleton/styles/dark.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/skeleton/styles/light.mjs +2 -2
- package/es/slider/src/Slider.d.ts +10 -9
- package/es/slider/src/Slider.mjs +10 -10
- package/es/slider/src/styles/index.cssr.mjs +2 -1
- package/es/slider/styles/dark.mjs +1 -1
- package/es/slider/styles/light.d.ts +2 -2
- package/es/slider/styles/light.mjs +3 -3
- package/es/space/src/Space.d.ts +4 -4
- package/es/space/src/Space.mjs +2 -2
- package/es/space/src/utils.d.ts +1 -1
- package/es/space/src/utils.mjs +2 -2
- package/es/space/styles/light.d.ts +1 -1
- package/es/space/styles/light.mjs +2 -2
- package/es/space/styles/rtl.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +7 -7
- package/es/spin/src/Spin.mjs +1 -1
- package/es/spin/src/styles/index.cssr.mjs +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/spin/styles/light.mjs +2 -2
- package/es/split/src/Split.d.ts +11 -11
- package/es/split/src/Split.mjs +6 -6
- package/es/split/src/styles/index.cssr.mjs +1 -1
- package/es/split/styles/dark.d.ts +1 -1
- package/es/split/styles/light.d.ts +2 -2
- package/es/split/styles/light.mjs +2 -2
- package/es/statistic/src/Statistic.mjs +2 -2
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/statistic/styles/light.mjs +2 -2
- package/es/statistic/styles/rtl.d.ts +1 -1
- package/es/steps/src/Step.d.ts +3 -3
- package/es/steps/src/Step.mjs +4 -4
- package/es/steps/src/Steps.d.ts +4 -4
- package/es/steps/src/Steps.mjs +2 -2
- package/es/steps/src/styles/rtl.cssr.mjs +1 -1
- package/es/steps/styles/light.d.ts +1 -1
- package/es/steps/styles/light.mjs +3 -3
- package/es/steps/styles/rtl.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/Switch.mjs +2 -2
- package/es/switch/styles/dark.mjs +1 -1
- package/es/switch/styles/light.d.ts +1 -1
- package/es/switch/styles/light.mjs +3 -3
- package/es/table/src/Table.mjs +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/table/styles/light.mjs +3 -3
- package/es/table/styles/rtl.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +6 -18
- package/es/tabs/src/Tab.mjs +3 -6
- package/es/tabs/src/TabPane.d.ts +10 -22
- package/es/tabs/src/TabPane.mjs +1 -1
- package/es/tabs/src/Tabs.d.ts +32 -32
- package/es/tabs/src/Tabs.mjs +38 -18
- package/es/tabs/src/interface.d.ts +1 -1
- package/es/tabs/src/styles/index.cssr.mjs +20 -8
- package/es/tabs/styles/light.d.ts +2 -2
- package/es/tabs/styles/light.mjs +3 -3
- package/es/tag/src/Tag.d.ts +8 -8
- package/es/tag/src/Tag.mjs +5 -5
- package/es/tag/src/common-props.d.ts +3 -3
- package/es/tag/src/styles/rtl.cssr.mjs +1 -1
- package/es/tag/styles/dark.mjs +1 -1
- package/es/tag/styles/light.d.ts +1 -1
- package/es/tag/styles/light.mjs +3 -3
- package/es/theme-editor/src/MaximizeIcon.mjs +1 -1
- package/es/theme-editor/src/MinimizeIcon.mjs +1 -1
- package/es/theme-editor/src/ThemeEditor.mjs +12 -11
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +0 -1
- package/es/thing/src/Thing.mjs +2 -2
- package/es/thing/styles/light.d.ts +1 -1
- package/es/thing/styles/light.mjs +2 -2
- package/es/thing/styles/rtl.d.ts +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.mjs +3 -3
- package/es/time-picker/src/Panel.d.ts +9 -111
- package/es/time-picker/src/Panel.mjs +3 -4
- package/es/time-picker/src/PanelCol.d.ts +5 -5
- package/es/time-picker/src/PanelCol.mjs +1 -1
- package/es/time-picker/src/TimePicker.d.ts +50 -134
- package/es/time-picker/src/TimePicker.mjs +29 -27
- package/es/time-picker/src/interface.d.ts +2 -2
- package/es/time-picker/src/styles/index.cssr.mjs +1 -1
- package/es/time-picker/src/utils.mjs +5 -3
- package/es/time-picker/styles/light.d.ts +5 -3
- package/es/time-picker/styles/light.mjs +3 -3
- package/es/timeline/src/Timeline.d.ts +1 -2
- package/es/timeline/src/Timeline.mjs +1 -1
- package/es/timeline/src/TimelineItem.d.ts +3 -3
- package/es/timeline/src/TimelineItem.mjs +2 -2
- package/es/timeline/styles/dark.mjs +1 -1
- package/es/timeline/styles/light.d.ts +1 -1
- package/es/timeline/styles/light.mjs +3 -3
- package/es/tooltip/src/Tooltip.d.ts +16 -120
- package/es/tooltip/src/Tooltip.mjs +1 -3
- package/es/tooltip/styles/light.d.ts +1 -1
- package/es/tooltip/styles/light.mjs +4 -4
- package/es/transfer/src/Transfer.d.ts +69 -133
- package/es/transfer/src/Transfer.mjs +5 -5
- package/es/transfer/src/TransferFilter.d.ts +7 -107
- package/es/transfer/src/TransferFilter.mjs +1 -2
- package/es/transfer/src/TransferHeader.d.ts +3 -4
- package/es/transfer/src/TransferHeader.mjs +3 -4
- package/es/transfer/src/TransferList.d.ts +8 -108
- package/es/transfer/src/TransferList.mjs +1 -2
- package/es/transfer/src/TransferListItem.d.ts +7 -107
- package/es/transfer/src/TransferListItem.mjs +1 -2
- package/es/transfer/src/use-transfer-data.d.ts +1 -1
- package/es/transfer/src/use-transfer-data.mjs +1 -2
- package/es/transfer/styles/dark.mjs +1 -1
- package/es/transfer/styles/light.d.ts +7 -3
- package/es/transfer/styles/light.mjs +3 -3
- package/es/tree/src/MotionWrapper.d.ts +3 -3
- package/es/tree/src/MotionWrapper.mjs +1 -1
- package/es/tree/src/Tree.d.ts +97 -161
- package/es/tree/src/Tree.mjs +11 -14
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.mjs +1 -6
- package/es/tree/src/TreeNodeCheckbox.d.ts +7 -107
- package/es/tree/src/TreeNodeCheckbox.mjs +1 -2
- package/es/tree/src/TreeNodeContent.d.ts +4 -4
- package/es/tree/src/TreeNodeContent.mjs +2 -4
- package/es/tree/src/TreeNodeSwitcher.d.ts +0 -1
- package/es/tree/src/TreeNodeSwitcher.mjs +2 -3
- package/es/tree/src/dnd.d.ts +1 -1
- package/es/tree/src/interface.d.ts +2 -2
- package/es/tree/src/keyboard.d.ts +2 -2
- package/es/tree/src/styles/rtl.cssr.mjs +1 -1
- package/es/tree/src/utils.d.ts +2 -2
- package/es/tree/src/utils.mjs +1 -1
- package/es/tree/styles/light.d.ts +7 -3
- package/es/tree/styles/light.mjs +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +152 -159
- package/es/tree-select/src/TreeSelect.mjs +40 -25
- package/es/tree-select/src/interface.d.ts +3 -3
- package/es/tree-select/src/styles/index.cssr.mjs +10 -0
- package/es/tree-select/src/utils.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +15 -3
- package/es/tree-select/styles/light.mjs +6 -3
- package/es/typography/src/a.mjs +1 -1
- package/es/typography/src/blockquote.mjs +2 -2
- package/es/typography/src/create-header.d.ts +4 -4
- package/es/typography/src/create-header.mjs +3 -4
- package/es/typography/src/headers.d.ts +12 -12
- package/es/typography/src/hr.mjs +1 -1
- package/es/typography/src/ol.mjs +1 -1
- package/es/typography/src/p.d.ts +3 -3
- package/es/typography/src/p.mjs +1 -1
- package/es/typography/src/text.d.ts +3 -3
- package/es/typography/src/text.mjs +2 -2
- package/es/typography/src/ul.mjs +1 -1
- package/es/typography/styles/light.d.ts +1 -1
- package/es/typography/styles/light.mjs +3 -3
- package/es/upload/src/Upload.d.ts +12 -113
- package/es/upload/src/Upload.mjs +53 -50
- package/es/upload/src/UploadDragger.d.ts +0 -1
- package/es/upload/src/UploadDragger.mjs +1 -1
- package/es/upload/src/UploadFile.d.ts +6 -109
- package/es/upload/src/UploadFile.mjs +21 -9
- package/es/upload/src/UploadFileList.d.ts +0 -1
- package/es/upload/src/UploadFileList.mjs +3 -3
- package/es/upload/src/UploadProgress.d.ts +3 -107
- package/es/upload/src/UploadProgress.mjs +1 -2
- package/es/upload/src/UploadTrigger.d.ts +0 -1
- package/es/upload/src/UploadTrigger.mjs +1 -1
- package/es/upload/src/icons.d.ts +0 -1
- package/es/upload/src/interface.d.ts +9 -3
- package/es/upload/src/public-types.d.ts +1 -1
- package/es/upload/src/styles/index.cssr.mjs +1 -1
- package/es/upload/src/utils.d.ts +2 -2
- package/es/upload/src/utils.mjs +21 -9
- package/es/upload/styles/light.d.ts +1 -1
- package/es/upload/styles/light.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +13 -13
- package/es/virtual-list/src/VirtualList.mjs +2 -2
- package/es/watermark/src/Watermark.d.ts +3 -4
- package/es/watermark/src/Watermark.mjs +1 -1
- package/es/watermark/src/styles/index.cssr.mjs +1 -1
- package/lib/_internal/close/src/Close.d.ts +0 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +0 -1
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +0 -1
- package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +0 -1
- package/lib/_internal/icons/replaceable.d.ts +0 -1
- package/lib/_internal/icons/replaceable.js +1 -3
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +70 -24
- package/lib/_internal/scrollbar/src/Scrollbar.js +73 -65
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +10 -4
- package/lib/_internal/scrollbar/styles/common.d.ts +4 -2
- package/lib/_internal/scrollbar/styles/common.js +4 -2
- package/lib/_internal/scrollbar/styles/light.d.ts +5 -3
- package/lib/_internal/scrollbar/styles/light.js +4 -5
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectGroupHeader.js +1 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +75 -123
- package/lib/_internal/select-menu/src/SelectMenu.js +4 -4
- package/lib/_internal/select-menu/src/SelectOption.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectOption.js +1 -3
- package/lib/_internal/select-menu/src/interface.d.ts +2 -2
- package/lib/_internal/select-menu/styles/_common.d.ts +2 -0
- package/lib/_internal/select-menu/styles/_common.js +2 -0
- package/lib/_internal/select-menu/styles/light.d.ts +15 -3
- package/lib/_internal/select-menu/styles/light.js +7 -8
- package/lib/_internal/selection/src/Selection.d.ts +8 -112
- package/lib/_internal/selection/src/Selection.js +4 -5
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +1 -1
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_internal/slot-machine/src/SlotMachine.d.ts +0 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +0 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.js +2 -2
- package/lib/_internal/suffix/src/Suffix.d.ts +0 -1
- package/lib/_internal/wave/src/Wave.js +0 -1
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-config.js +3 -3
- package/lib/_mixins/use-css-vars-class.js +10 -9
- package/lib/_mixins/use-form-item.js +1 -1
- package/lib/_mixins/use-hljs.js +1 -1
- package/lib/_mixins/use-locale.js +1 -1
- package/lib/_mixins/use-rtl.js +5 -3
- package/lib/_mixins/use-style.js +5 -3
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_mixins/use-theme.js +5 -5
- package/lib/_styles/common/dark.js +2 -2
- package/lib/_styles/common/light.js +2 -2
- package/lib/_styles/transitions/fade-down.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +4 -5
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +4 -5
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in.cssr.js +2 -3
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/icon-switch.cssr.js +3 -4
- package/lib/_styles/transitions/slide-in-from-bottom.js +1 -2
- package/lib/_styles/transitions/slide-in-from-left.js +1 -2
- package/lib/_styles/transitions/slide-in-from-right.js +1 -2
- package/lib/_styles/transitions/slide-in-from-top.js +1 -2
- package/lib/_utils/color/index.js +2 -3
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.js +1 -2
- package/lib/_utils/composable/use-browser-location.d.ts +1 -1
- package/lib/_utils/composable/use-browser-location.js +4 -5
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +8 -9
- package/lib/_utils/composable/use-deferred-true.js +1 -2
- package/lib/_utils/composable/use-houdini.js +2 -3
- package/lib/_utils/composable/use-is-composing.d.ts +1 -1
- package/lib/_utils/composable/use-is-composing.js +7 -8
- package/lib/_utils/composable/use-lock-html-scroll.js +2 -2
- package/lib/_utils/composable/use-reactivated.js +1 -2
- package/lib/_utils/composable/use-resize.js +1 -2
- package/lib/_utils/css/color-to-class.js +1 -2
- package/lib/_utils/css/format-length.js +1 -2
- package/lib/_utils/css/rtl-inset.js +1 -2
- package/lib/_utils/cssr/index.js +8 -10
- package/lib/_utils/dom/download.d.ts +1 -1
- package/lib/_utils/dom/download.js +3 -4
- package/lib/_utils/dom/is-document.js +1 -2
- package/lib/_utils/env/is-jsdom.js +4 -5
- package/lib/_utils/event/index.js +2 -3
- package/lib/_utils/naive/attribute.js +1 -2
- package/lib/_utils/naive/extract-public-props.d.ts +2 -2
- package/lib/_utils/naive/prop.js +3 -4
- package/lib/_utils/naive/warn.d.ts +1 -0
- package/lib/_utils/naive/warn.js +7 -4
- package/lib/_utils/vue/call.js +4 -4
- package/lib/_utils/vue/create-data-key.js +1 -2
- package/lib/_utils/vue/create-injection-key.js +1 -2
- package/lib/_utils/vue/create-ref-setter.js +1 -2
- package/lib/_utils/vue/flatten.d.ts +1 -1
- package/lib/_utils/vue/flatten.js +1 -2
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -1
- package/lib/_utils/vue/get-first-slot-vnode.js +2 -3
- package/lib/_utils/vue/get-slot.d.ts +1 -1
- package/lib/_utils/vue/get-slot.js +1 -2
- package/lib/_utils/vue/get-v-node-children.js +4 -5
- package/lib/_utils/vue/is-node-v-show-false.js +1 -2
- package/lib/_utils/vue/keep.js +1 -2
- package/lib/_utils/vue/keysOf.js +1 -2
- package/lib/_utils/vue/merge-handlers.js +2 -4
- package/lib/_utils/vue/omit.js +1 -2
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/render.js +3 -4
- package/lib/_utils/vue/resolve-slot.js +8 -9
- package/lib/affix/src/Affix.js +16 -16
- package/lib/affix/src/utils.js +2 -3
- package/lib/alert/src/Alert.d.ts +4 -108
- package/lib/alert/src/Alert.js +6 -8
- package/lib/alert/styles/light.d.ts +1 -1
- package/lib/alert/styles/light.js +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +0 -1
- package/lib/anchor/src/BaseAnchor.js +7 -6
- package/lib/anchor/src/Link.d.ts +0 -1
- package/lib/anchor/src/Link.js +0 -1
- package/lib/anchor/src/utils.js +1 -2
- package/lib/anchor/styles/light.d.ts +1 -1
- package/lib/anchor/styles/light.js +4 -5
- package/lib/auto-complete/src/AutoComplete.d.ts +115 -135
- package/lib/auto-complete/src/AutoComplete.js +3 -3
- package/lib/auto-complete/src/interface.d.ts +1 -1
- package/lib/auto-complete/src/utils.js +2 -3
- package/lib/auto-complete/styles/light.d.ts +10 -2
- package/lib/auto-complete/styles/light.js +1 -2
- package/lib/avatar/src/Avatar.d.ts +2 -2
- package/lib/avatar/src/Avatar.js +6 -6
- package/lib/avatar/styles/light.d.ts +1 -1
- package/lib/avatar/styles/light.js +5 -6
- package/lib/avatar-group/src/AvatarGroup.d.ts +5 -109
- package/lib/avatar-group/src/AvatarGroup.js +6 -6
- package/lib/avatar-group/styles/light.d.ts +1 -1
- package/lib/avatar-group/styles/light.js +4 -5
- package/lib/back-top/src/BackTop.d.ts +3 -3
- package/lib/back-top/src/BackTop.js +7 -7
- package/lib/back-top/src/BackTopIcon.d.ts +0 -1
- package/lib/back-top/styles/dark.js +1 -1
- package/lib/back-top/styles/light.d.ts +1 -1
- package/lib/back-top/styles/light.js +3 -3
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +1 -1
- package/lib/badge/styles/light.d.ts +1 -1
- package/lib/badge/styles/light.js +2 -2
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +0 -1
- package/lib/breadcrumb/styles/light.d.ts +1 -1
- package/lib/breadcrumb/styles/light.js +5 -6
- package/lib/button/src/Button.d.ts +6 -6
- package/lib/button/src/Button.js +30 -30
- package/lib/button/styles/light.d.ts +1 -1
- package/lib/button/styles/light.js +5 -6
- package/lib/button/styles/rtl.d.ts +1 -1
- package/lib/button-group/src/styles/index.cssr.d.ts +1 -1
- package/lib/button-group/src/styles/index.cssr.js +2 -2
- package/lib/button-group/src/styles/rtl.cssr.js +1 -1
- package/lib/button-group/styles/rtl.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +4 -108
- package/lib/calendar/src/Calendar.js +5 -5
- package/lib/calendar/styles/dark.js +1 -1
- package/lib/calendar/styles/light.d.ts +1 -1
- package/lib/calendar/styles/light.js +5 -6
- package/lib/card/src/Card.d.ts +18 -122
- package/lib/card/src/Card.js +1 -1
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/card/styles/light.js +4 -5
- package/lib/card/styles/rtl.d.ts +1 -1
- package/lib/carousel/src/Carousel.d.ts +18 -20
- package/lib/carousel/src/Carousel.js +57 -48
- package/lib/carousel/src/CarouselArrow.js +4 -4
- package/lib/carousel/src/CarouselContext.d.ts +2 -2
- package/lib/carousel/src/CarouselContext.js +6 -7
- package/lib/carousel/src/CarouselDots.d.ts +3 -3
- package/lib/carousel/src/CarouselDots.js +1 -1
- package/lib/carousel/src/CarouselItem.d.ts +1 -1
- package/lib/carousel/src/CarouselItem.js +5 -3
- package/lib/carousel/src/utils/duplicatedLogic.js +6 -7
- package/lib/carousel/src/utils/event.js +1 -2
- package/lib/carousel/src/utils/index.js +11 -12
- package/lib/carousel/styles/light.d.ts +1 -2
- package/lib/carousel/styles/light.js +4 -5
- package/lib/cascader/src/Cascader.d.ts +181 -169
- package/lib/cascader/src/Cascader.js +17 -15
- package/lib/cascader/src/CascaderMenu.d.ts +24 -112
- package/lib/cascader/src/CascaderMenu.js +2 -4
- package/lib/cascader/src/CascaderOption.d.ts +25 -117
- package/lib/cascader/src/CascaderOption.js +7 -9
- package/lib/cascader/src/CascaderSelectMenu.d.ts +25 -113
- package/lib/cascader/src/CascaderSelectMenu.js +7 -6
- package/lib/cascader/src/CascaderSubmenu.d.ts +24 -112
- package/lib/cascader/src/CascaderSubmenu.js +4 -6
- package/lib/cascader/src/interface.d.ts +1 -1
- package/lib/cascader/src/utils.d.ts +1 -1
- package/lib/cascader/src/utils.js +4 -5
- package/lib/cascader/styles/dark.js +1 -1
- package/lib/cascader/styles/light.d.ts +17 -5
- package/lib/cascader/styles/light.js +4 -5
- package/lib/checkbox/src/CheckMark.d.ts +0 -1
- package/lib/checkbox/src/Checkbox.d.ts +9 -113
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/CheckboxGroup.d.ts +16 -16
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- package/lib/checkbox/src/LineMark.d.ts +0 -1
- package/lib/checkbox/styles/light.d.ts +1 -1
- package/lib/checkbox/styles/light.js +4 -5
- package/lib/code/src/styles/index.cssr.js +0 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/code/styles/light.js +2 -2
- package/lib/collapse/src/Collapse.d.ts +15 -119
- package/lib/collapse/src/Collapse.js +2 -2
- package/lib/collapse/src/CollapseItem.d.ts +3 -3
- package/lib/collapse/src/CollapseItem.js +2 -2
- package/lib/collapse/src/CollapseItemContent.d.ts +2 -2
- package/lib/collapse/styles/light.d.ts +1 -1
- package/lib/collapse/styles/light.js +4 -5
- package/lib/collapse-transition/src/CollapseTransition.js +3 -3
- package/lib/collapse-transition/styles/light.d.ts +1 -1
- package/lib/collapse-transition/styles/light.js +4 -5
- package/lib/color-picker/src/ColorInput.d.ts +3 -3
- package/lib/color-picker/src/ColorInput.js +3 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +3 -107
- package/lib/color-picker/src/ColorInputUnit.js +4 -5
- package/lib/color-picker/src/ColorPicker.d.ts +13 -10
- package/lib/color-picker/src/ColorPicker.js +6 -9
- package/lib/color-picker/src/ColorPickerSwatches.js +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +0 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +0 -1
- package/lib/color-picker/src/interface.d.ts +1 -0
- package/lib/color-picker/src/utils.js +7 -8
- package/lib/color-picker/styles/light.d.ts +1 -1
- package/lib/color-picker/styles/light.js +4 -5
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/composables/use-theme-vars.js +1 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +17 -389
- package/lib/config-provider/src/ConfigProvider.js +5 -2
- package/lib/config-provider/src/internal-interface.d.ts +4 -3
- package/lib/countdown/src/Countdown.d.ts +4 -4
- package/lib/countdown/src/Countdown.js +2 -2
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +301 -173
- package/lib/data-table/src/DataTable.js +22 -11
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +54 -115
- package/lib/data-table/src/HeaderButton/FilterButton.js +8 -9
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +53 -115
- package/lib/data-table/src/HeaderButton/FilterMenu.js +8 -10
- package/lib/data-table/src/HeaderButton/ResizeButton.js +0 -1
- package/lib/data-table/src/HeaderButton/SortButton.js +8 -9
- package/lib/data-table/src/MainTable.d.ts +1 -0
- package/lib/data-table/src/MainTable.js +8 -6
- package/lib/data-table/src/TableParts/Body.d.ts +61 -120
- package/lib/data-table/src/TableParts/Body.js +158 -69
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +0 -1
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -3
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +0 -1
- package/lib/data-table/src/TableParts/BodyRadio.js +1 -3
- package/lib/data-table/src/TableParts/Cell.d.ts +5 -2515
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +9 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +6 -1
- package/lib/data-table/src/TableParts/Header.d.ts +61 -118
- package/lib/data-table/src/TableParts/Header.js +148 -61
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +0 -1
- package/lib/data-table/src/TableParts/SelectionMenu.js +1 -3
- package/lib/data-table/src/interface.d.ts +132 -30
- package/lib/data-table/src/interface.js +2 -2
- package/lib/data-table/src/styles/index.cssr.js +17 -1
- package/lib/data-table/src/use-check.d.ts +2 -2
- package/lib/data-table/src/use-check.js +9 -12
- package/lib/data-table/src/use-expand.d.ts +1 -1
- package/lib/data-table/src/use-expand.js +1 -3
- package/lib/data-table/src/use-group-header.d.ts +7 -1
- package/lib/data-table/src/use-group-header.js +10 -6
- package/lib/data-table/src/use-resizable.js +1 -3
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-scroll.js +12 -14
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-sorter.js +19 -23
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +21 -23
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/data-table/src/utils.js +25 -24
- package/lib/data-table/styles/light.d.ts +39 -7
- package/lib/data-table/styles/light.js +8 -9
- package/lib/date-picker/index.d.ts +3 -3
- package/lib/date-picker/index.js +2 -1
- package/lib/date-picker/src/DatePicker.d.ts +157 -2212
- package/lib/date-picker/src/DatePicker.js +16 -32
- package/lib/date-picker/src/config.d.ts +0 -1
- package/lib/date-picker/src/config.js +1 -2
- package/lib/date-picker/src/interface.d.ts +8 -7
- package/lib/date-picker/src/panel/date.d.ts +25 -150
- package/lib/date-picker/src/panel/date.js +19 -5
- package/lib/date-picker/src/panel/daterange.d.ts +26 -121
- package/lib/date-picker/src/panel/daterange.js +23 -8
- package/lib/date-picker/src/panel/datetime.d.ts +24 -119
- package/lib/date-picker/src/panel/datetime.js +30 -8
- package/lib/date-picker/src/panel/datetimerange.d.ts +25 -120
- package/lib/date-picker/src/panel/datetimerange.js +25 -10
- package/lib/date-picker/src/panel/month.d.ts +27 -122
- package/lib/date-picker/src/panel/month.js +43 -17
- package/lib/date-picker/src/panel/monthrange.d.ts +29 -124
- package/lib/date-picker/src/panel/monthrange.js +30 -15
- package/lib/date-picker/src/panel/panelHeader.d.ts +51 -246
- package/lib/date-picker/src/panel/panelHeader.js +4 -4
- package/lib/date-picker/src/panel/use-calendar.d.ts +20 -117
- package/lib/date-picker/src/panel/use-calendar.js +17 -20
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +24 -121
- package/lib/date-picker/src/panel/use-dual-calendar.js +11 -14
- package/lib/date-picker/src/panel/use-panel-common.d.ts +19 -116
- package/lib/date-picker/src/panel/use-panel-common.js +7 -9
- package/lib/date-picker/src/props.d.ts +2008 -0
- package/lib/date-picker/src/props.js +26 -0
- package/lib/date-picker/src/public-types.d.ts +23 -0
- package/lib/date-picker/src/public-types.js +2 -0
- package/lib/date-picker/src/utils.d.ts +2 -1
- package/lib/date-picker/src/utils.js +28 -32
- package/lib/date-picker/src/validation-utils.js +27 -29
- package/lib/date-picker/styles/light.d.ts +9 -5
- package/lib/date-picker/styles/light.js +5 -6
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.js +3 -3
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/src/utils.js +2 -2
- package/lib/descriptions/styles/light.d.ts +1 -1
- package/lib/descriptions/styles/light.js +5 -6
- package/lib/dialog/src/Dialog.d.ts +9 -113
- package/lib/dialog/src/Dialog.js +7 -7
- package/lib/dialog/src/DialogEnvironment.d.ts +19 -19
- package/lib/dialog/src/DialogEnvironment.js +3 -1
- package/lib/dialog/src/DialogProvider.d.ts +7 -7
- package/lib/dialog/src/DialogProvider.js +3 -4
- package/lib/dialog/src/composables.js +3 -4
- package/lib/dialog/src/dialogProps.d.ts +4 -4
- package/lib/dialog/styles/light.d.ts +1 -1
- package/lib/dialog/styles/light.js +5 -6
- package/lib/discrete/src/discrete.js +2 -3
- package/lib/discrete/src/discreteApp.js +7 -8
- package/lib/discrete/src/interface.d.ts +2 -2
- package/lib/divider/src/Divider.d.ts +3 -3
- package/lib/divider/styles/light.d.ts +1 -1
- package/lib/divider/styles/light.js +4 -5
- package/lib/drawer/src/Drawer.d.ts +45 -129
- package/lib/drawer/src/Drawer.js +5 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +8 -110
- package/lib/drawer/src/DrawerBodyWrapper.js +15 -16
- package/lib/drawer/src/DrawerContent.d.ts +5 -107
- package/lib/drawer/src/DrawerContent.js +2 -2
- package/lib/drawer/src/styles/index.cssr.js +3 -1
- package/lib/drawer/styles/light.d.ts +5 -3
- package/lib/drawer/styles/light.js +4 -5
- package/lib/dropdown/src/Dropdown.d.ts +23 -127
- package/lib/dropdown/src/Dropdown.js +7 -7
- package/lib/dropdown/src/DropdownGroup.d.ts +3 -2
- package/lib/dropdown/src/DropdownGroup.js +0 -1
- package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroupHeader.js +4 -8
- package/lib/dropdown/src/DropdownMenu.d.ts +5 -4
- package/lib/dropdown/src/DropdownMenu.js +3 -6
- package/lib/dropdown/src/DropdownOption.d.ts +7 -6
- package/lib/dropdown/src/DropdownOption.js +12 -16
- package/lib/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/lib/dropdown/src/interface.d.ts +1 -1
- package/lib/dropdown/src/utils.js +6 -7
- package/lib/dropdown/styles/dark.js +1 -1
- package/lib/dropdown/styles/light.d.ts +1 -1
- package/lib/dropdown/styles/light.js +5 -6
- package/lib/dynamic-input/src/DynamicInput.d.ts +4 -108
- package/lib/dynamic-input/src/DynamicInput.js +9 -9
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -105
- package/lib/dynamic-input/src/InputPreset.js +1 -3
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -105
- package/lib/dynamic-input/src/PairPreset.js +0 -1
- package/lib/dynamic-input/styles/light.d.ts +1 -1
- package/lib/dynamic-input/styles/light.js +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +13 -117
- package/lib/dynamic-tags/src/DynamicTags.js +2 -2
- package/lib/element/styles/dark.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -109
- package/lib/ellipsis/src/Ellipsis.js +8 -7
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +3 -4
- package/lib/ellipsis/styles/dark.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +22 -4
- package/lib/empty/src/Empty.js +4 -6
- package/lib/empty/styles/_common.d.ts +1 -0
- package/lib/empty/styles/_common.js +1 -0
- package/lib/empty/styles/light.d.ts +3 -1
- package/lib/empty/styles/light.js +8 -8
- package/lib/equation/src/Equation.d.ts +4 -3
- package/lib/flex/src/Flex.d.ts +10 -9
- package/lib/flex/src/type.d.ts +1 -1
- package/lib/flex/styles/light.d.ts +1 -1
- package/lib/flex/styles/light.js +2 -2
- package/lib/flex/styles/rtl.d.ts +1 -1
- package/lib/float-button/src/FloatButton.d.ts +12 -11
- package/lib/float-button/src/FloatButton.js +19 -6
- package/lib/float-button/styles/light.d.ts +2 -2
- package/lib/float-button/styles/light.js +2 -2
- package/lib/float-button-group/src/FloatButtonGroup.d.ts +6 -6
- package/lib/float-button-group/src/FloatButtonGroup.js +1 -1
- package/lib/float-button-group/styles/light.d.ts +3 -3
- package/lib/float-button-group/styles/light.js +2 -2
- package/lib/form/src/Form.d.ts +5 -5
- package/lib/form/src/Form.js +4 -5
- package/lib/form/src/FormItem.d.ts +9 -9
- package/lib/form/src/FormItem.js +84 -85
- package/lib/form/src/FormItemCol.d.ts +6 -6
- package/lib/form/src/FormItemGridItem.d.ts +6 -6
- package/lib/form/src/FormItemRow.d.ts +6 -6
- package/lib/form/src/interface.d.ts +1 -1
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/form/src/utils.js +7 -10
- package/lib/form/styles/light.d.ts +1 -1
- package/lib/form/styles/light.js +4 -5
- package/lib/gradient-text/src/GradientText.d.ts +3 -3
- package/lib/gradient-text/styles/light.d.ts +1 -1
- package/lib/gradient-text/styles/light.js +2 -2
- package/lib/grid/src/Grid.d.ts +15 -15
- package/lib/grid/src/Grid.js +6 -6
- package/lib/grid/src/GridItem.js +2 -6
- package/lib/highlight/index.d.ts +2 -0
- package/lib/highlight/index.js +9 -0
- package/lib/highlight/src/Highlight.d.ts +65 -0
- package/lib/highlight/src/Highlight.js +67 -0
- package/lib/highlight/src/public-types.d.ts +3 -0
- package/lib/highlight/src/public-types.js +2 -0
- package/lib/highlight/src/utils.d.ts +4 -0
- package/lib/highlight/src/utils.js +33 -0
- package/lib/icon/src/Icon.d.ts +3 -3
- package/lib/icon/src/Icon.js +2 -2
- package/lib/icon/styles/light.d.ts +1 -1
- package/lib/icon/styles/light.js +4 -5
- package/lib/icon-wrapper/src/IconWrapper.d.ts +0 -1
- package/lib/icon-wrapper/styles/light.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.js +4 -5
- package/lib/image/src/Image.d.ts +8 -8
- package/lib/image/src/Image.js +2 -2
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImageGroup.js +8 -3
- package/lib/image/src/ImagePreview.d.ts +3 -3
- package/lib/image/src/ImagePreview.js +9 -15
- package/lib/image/src/icons.d.ts +0 -1
- package/lib/image/src/utils.d.ts +2 -2
- package/lib/image/src/utils.js +9 -11
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +3 -3
- package/lib/infinite-scroll/src/InfiniteScroll.js +7 -6
- package/lib/input/src/Input.d.ts +34 -138
- package/lib/input/src/Input.js +60 -55
- package/lib/input/src/WordCount.d.ts +0 -1
- package/lib/input/src/WordCount.js +1 -3
- package/lib/input/src/utils.js +3 -5
- package/lib/input/styles/dark.js +1 -1
- package/lib/input/styles/light.d.ts +1 -1
- package/lib/input/styles/light.js +3 -3
- package/lib/input-number/src/InputNumber.d.ts +24 -115
- package/lib/input-number/src/InputNumber.js +40 -37
- package/lib/input-number/src/utils.js +13 -13
- package/lib/input-number/styles/light.d.ts +1 -1
- package/lib/input-number/styles/light.js +2 -2
- package/lib/layout/src/Layout.d.ts +59 -239
- package/lib/layout/src/Layout.js +2 -6
- package/lib/layout/src/LayoutContent.d.ts +29 -119
- package/lib/layout/src/LayoutFooter.d.ts +36 -18
- package/lib/layout/src/LayoutFooter.js +2 -2
- package/lib/layout/src/LayoutHeader.d.ts +24 -12
- package/lib/layout/src/LayoutHeader.js +2 -2
- package/lib/layout/src/LayoutSider.d.ts +37 -127
- package/lib/layout/src/LayoutSider.js +7 -10
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/dark.js +1 -1
- package/lib/layout/styles/light.d.ts +5 -3
- package/lib/layout/styles/light.js +4 -5
- package/lib/legacy-transfer/src/Transfer.d.ts +63 -127
- package/lib/legacy-transfer/src/Transfer.js +6 -6
- package/lib/legacy-transfer/src/TransferFilter.d.ts +7 -107
- package/lib/legacy-transfer/src/TransferFilter.js +0 -1
- package/lib/legacy-transfer/src/TransferHeader.d.ts +0 -1
- package/lib/legacy-transfer/src/TransferHeader.js +1 -3
- package/lib/legacy-transfer/src/TransferList.d.ts +8 -108
- package/lib/legacy-transfer/src/TransferList.js +1 -2
- package/lib/legacy-transfer/src/TransferListItem.d.ts +7 -107
- package/lib/legacy-transfer/src/TransferListItem.js +2 -4
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/lib/legacy-transfer/src/use-transfer-data.js +12 -14
- package/lib/legacy-transfer/styles/dark.js +1 -1
- package/lib/legacy-transfer/styles/light.d.ts +7 -3
- package/lib/legacy-transfer/styles/light.js +3 -3
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/list/styles/light.js +4 -5
- package/lib/loading-bar/src/LoadingBar.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBar.js +2 -6
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +10 -10
- package/lib/loading-bar/src/use-loading-bar.js +2 -3
- package/lib/loading-bar/styles/light.d.ts +1 -1
- package/lib/loading-bar/styles/light.js +2 -2
- package/lib/locales/common/arDZ.js +1 -1
- package/lib/locales/common/azAZ.d.ts +3 -0
- package/lib/locales/common/azAZ.js +126 -0
- package/lib/locales/common/csCZ.js +1 -1
- package/lib/locales/common/deDE.js +1 -1
- package/lib/locales/common/enGB.js +1 -1
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/enUS.js +1 -1
- package/lib/locales/common/eo.js +1 -1
- package/lib/locales/common/esAR.js +1 -1
- package/lib/locales/common/etEE.js +1 -1
- package/lib/locales/common/faIR.js +1 -1
- package/lib/locales/common/frFR.js +6 -6
- package/lib/locales/common/idID.js +1 -1
- package/lib/locales/common/itIT.js +3 -3
- package/lib/locales/common/jaJP.js +1 -1
- package/lib/locales/common/koKR.js +1 -1
- package/lib/locales/common/nbNO.js +1 -1
- package/lib/locales/common/nlNL.js +1 -1
- package/lib/locales/common/plPL.js +1 -1
- package/lib/locales/common/ptBR.js +1 -1
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/locales/common/skSK.js +1 -1
- package/lib/locales/common/svSE.js +1 -1
- package/lib/locales/common/thTH.js +1 -1
- package/lib/locales/common/trTR.js +1 -1
- package/lib/locales/common/ukUA.js +1 -1
- package/lib/locales/common/uzUZ.d.ts +3 -0
- package/lib/locales/common/uzUZ.js +126 -0
- package/lib/locales/common/viVN.js +1 -1
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/locales/common/zhTW.js +1 -1
- package/lib/locales/date/arDZ.js +2 -5
- package/lib/locales/date/azAZ.d.ts +3 -0
- package/lib/locales/date/azAZ.js +8 -0
- package/lib/locales/date/csCZ.d.ts +1 -1
- package/lib/locales/date/csCZ.js +2 -5
- package/lib/locales/date/deDE.js +2 -5
- package/lib/locales/date/enGB.d.ts +1 -1
- package/lib/locales/date/enGB.js +2 -5
- package/lib/locales/date/enUS.js +2 -5
- package/lib/locales/date/eo.js +2 -5
- package/lib/locales/date/esAR.d.ts +1 -1
- package/lib/locales/date/esAR.js +2 -5
- package/lib/locales/date/etEE.d.ts +1 -1
- package/lib/locales/date/etEE.js +2 -5
- package/lib/locales/date/faIR.d.ts +1 -1
- package/lib/locales/date/faIR.js +2 -5
- package/lib/locales/date/frFR.d.ts +1 -1
- package/lib/locales/date/frFR.js +2 -5
- package/lib/locales/date/idID.d.ts +1 -1
- package/lib/locales/date/idID.js +2 -5
- package/lib/locales/date/itIT.d.ts +1 -1
- package/lib/locales/date/itIT.js +2 -5
- package/lib/locales/date/jaJP.d.ts +1 -1
- package/lib/locales/date/jaJP.js +2 -5
- package/lib/locales/date/koKR.d.ts +1 -1
- package/lib/locales/date/koKR.js +2 -5
- package/lib/locales/date/nbNO.d.ts +1 -1
- package/lib/locales/date/nbNO.js +2 -5
- package/lib/locales/date/nlNL.d.ts +1 -1
- package/lib/locales/date/nlNL.js +2 -5
- package/lib/locales/date/plPL.d.ts +1 -1
- package/lib/locales/date/plPL.js +2 -5
- package/lib/locales/date/ptBR.d.ts +1 -1
- package/lib/locales/date/ptBR.js +2 -5
- package/lib/locales/date/ruRU.d.ts +1 -1
- package/lib/locales/date/ruRU.js +2 -5
- package/lib/locales/date/skSK.d.ts +1 -1
- package/lib/locales/date/skSK.js +2 -5
- package/lib/locales/date/svSE.d.ts +1 -1
- package/lib/locales/date/svSE.js +2 -5
- package/lib/locales/date/thTH.d.ts +1 -1
- package/lib/locales/date/thTH.js +3 -6
- package/lib/locales/date/trTR.d.ts +1 -1
- package/lib/locales/date/trTR.js +3 -6
- package/lib/locales/date/ukUA.d.ts +1 -1
- package/lib/locales/date/ukUA.js +2 -5
- package/lib/locales/date/uzUZ.d.ts +3 -0
- package/lib/locales/date/uzUZ.js +8 -0
- package/lib/locales/date/viVN.d.ts +1 -1
- package/lib/locales/date/viVN.js +2 -5
- package/lib/locales/date/zhCN.d.ts +1 -1
- package/lib/locales/date/zhCN.js +2 -5
- package/lib/locales/date/zhTW.d.ts +1 -1
- package/lib/locales/date/zhTW.js +2 -5
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +10 -2
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/locales/utils/index.js +1 -2
- package/lib/log/src/Log.d.ts +45 -129
- package/lib/log/src/Log.js +2 -2
- package/lib/log/src/LogLine.js +1 -3
- package/lib/log/styles/light.d.ts +5 -3
- package/lib/log/styles/light.js +2 -2
- package/lib/mention/src/Mention.d.ts +121 -140
- package/lib/mention/src/Mention.js +23 -22
- package/lib/mention/src/utils.js +24 -25
- package/lib/mention/styles/light.d.ts +11 -3
- package/lib/mention/styles/light.js +2 -2
- package/lib/menu/src/Menu.d.ts +13 -117
- package/lib/menu/src/Menu.js +90 -85
- package/lib/menu/src/MenuDivider.d.ts +0 -1
- package/lib/menu/src/MenuDivider.js +0 -1
- package/lib/menu/src/MenuOption.d.ts +1 -105
- package/lib/menu/src/MenuOption.js +4 -4
- package/lib/menu/src/MenuOptionContent.js +0 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +0 -1
- package/lib/menu/src/MenuOptionGroup.js +4 -6
- package/lib/menu/src/Submenu.d.ts +1 -105
- package/lib/menu/src/Submenu.js +3 -4
- package/lib/menu/src/interface.d.ts +2 -2
- package/lib/menu/src/use-menu-child.js +7 -9
- package/lib/menu/src/useCheckDeprecated.js +1 -2
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +3 -6
- package/lib/menu/styles/light.d.ts +1 -1
- package/lib/menu/styles/light.js +5 -6
- package/lib/message/src/Message.d.ts +2 -2
- package/lib/message/src/Message.js +4 -5
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +4 -4
- package/lib/message/src/MessageProvider.js +1 -2
- package/lib/message/src/use-message.js +1 -2
- package/lib/message/styles/light.d.ts +1 -1
- package/lib/message/styles/light.js +5 -6
- package/lib/modal/src/BodyWrapper.d.ts +26 -128
- package/lib/modal/src/BodyWrapper.js +2 -3
- package/lib/modal/src/Modal.d.ts +78 -60
- package/lib/modal/src/Modal.js +3 -1
- package/lib/modal/src/ModalEnvironment.d.ts +53 -41
- package/lib/modal/src/ModalEnvironment.js +3 -1
- package/lib/modal/src/ModalProvider.d.ts +5 -14924
- package/lib/modal/src/ModalProvider.js +2 -3
- package/lib/modal/src/composables.js +3 -4
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +9 -9
- package/lib/modal/styles/light.d.ts +5 -3
- package/lib/modal/styles/light.js +4 -5
- package/lib/notification/src/Notification.d.ts +3 -3
- package/lib/notification/src/Notification.js +1 -3
- package/lib/notification/src/NotificationContainer.d.ts +5 -107
- package/lib/notification/src/NotificationContainer.js +0 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -7
- package/lib/notification/src/NotificationEnvironment.js +1 -3
- package/lib/notification/src/NotificationProvider.d.ts +42 -24
- package/lib/notification/src/NotificationProvider.js +3 -3
- package/lib/notification/src/styles/index.cssr.d.ts +1 -1
- package/lib/notification/src/use-notification.js +2 -3
- package/lib/notification/styles/light.d.ts +5 -3
- package/lib/notification/styles/light.js +4 -5
- package/lib/notification/styles/rtl.d.ts +1 -1
- package/lib/number-animation/src/NumberAnimation.js +2 -2
- package/lib/number-animation/src/utils.js +3 -4
- package/lib/page-header/src/PageHeader.js +1 -2
- package/lib/page-header/styles/light.js +2 -2
- package/lib/pagination/src/Pagination.d.ts +241 -169
- package/lib/pagination/src/Pagination.js +42 -42
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/src/utils.js +6 -7
- package/lib/pagination/styles/light.d.ts +21 -5
- package/lib/pagination/styles/light.js +5 -6
- package/lib/popconfirm/src/Popconfirm.d.ts +21 -125
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popconfirm/src/PopconfirmPanel.js +2 -4
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +1 -1
- package/lib/popconfirm/styles/light.js +4 -5
- package/lib/popover/src/Popover.d.ts +23 -23
- package/lib/popover/src/Popover.js +6 -5
- package/lib/popover/src/PopoverBody.d.ts +17 -17
- package/lib/popover/src/PopoverBody.js +36 -37
- package/lib/popover/src/interface.d.ts +1 -1
- package/lib/popover/src/styles/index.cssr.d.ts +1 -1
- package/lib/popover/styles/light.d.ts +1 -1
- package/lib/popover/styles/light.js +4 -5
- package/lib/popselect/src/Popselect.d.ts +126 -146
- package/lib/popselect/src/Popselect.js +1 -1
- package/lib/popselect/src/PopselectPanel.d.ts +19 -111
- package/lib/popselect/src/PopselectPanel.js +3 -5
- package/lib/popselect/src/interface.d.ts +1 -1
- package/lib/popselect/styles/light.d.ts +11 -3
- package/lib/popselect/styles/light.js +1 -2
- package/lib/preset.d.ts +1 -1
- package/lib/preset.js +1 -1
- package/lib/progress/src/Circle.d.ts +2 -3
- package/lib/progress/src/Circle.js +2 -2
- package/lib/progress/src/Line.d.ts +2 -3
- package/lib/progress/src/Line.js +2 -2
- package/lib/progress/src/MultipleCircle.d.ts +3 -4
- package/lib/progress/src/MultipleCircle.js +13 -13
- package/lib/progress/src/Progress.d.ts +9 -9
- package/lib/progress/styles/dark.js +2 -2
- package/lib/progress/styles/light.d.ts +1 -1
- package/lib/progress/styles/light.js +4 -5
- package/lib/qr-code/src/QrCode.js +3 -3
- package/lib/qr-code/src/qrcodegen.js +370 -68
- package/lib/qr-code/styles/dark.d.ts +1 -1
- package/lib/qr-code/styles/light.d.ts +2 -2
- package/lib/qr-code/styles/light.js +2 -2
- package/lib/radio/src/Radio.d.ts +6 -6
- package/lib/radio/src/RadioButton.d.ts +6 -6
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/RadioGroup.js +1 -1
- package/lib/radio/src/use-radio.d.ts +4 -4
- package/lib/radio/src/use-radio.js +3 -3
- package/lib/radio/styles/dark.js +1 -1
- package/lib/radio/styles/light.d.ts +2 -2
- package/lib/radio/styles/light.js +3 -3
- package/lib/rate/src/Rate.js +2 -2
- package/lib/rate/src/StarIcon.d.ts +0 -1
- package/lib/rate/styles/dark.d.ts +1 -1
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/rate/styles/light.js +2 -2
- package/lib/result/src/403.d.ts +0 -1
- package/lib/result/src/404.d.ts +0 -1
- package/lib/result/src/418.d.ts +0 -1
- package/lib/result/src/500.d.ts +0 -1
- package/lib/result/src/Result.d.ts +3 -3
- package/lib/result/styles/light.d.ts +1 -1
- package/lib/result/styles/light.js +5 -6
- package/lib/scrollbar/src/Scrollbar.d.ts +62 -18
- package/lib/scrollbar/src/Scrollbar.js +7 -3
- package/lib/select/src/Select.d.ts +133 -144
- package/lib/select/src/Select.js +60 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/src/utils.d.ts +1 -1
- package/lib/select/src/utils.js +10 -12
- package/lib/select/styles/light.d.ts +10 -2
- package/lib/select/styles/light.js +1 -2
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/styles/dark.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/skeleton/styles/light.js +2 -2
- package/lib/slider/src/Slider.d.ts +10 -9
- package/lib/slider/src/Slider.js +16 -16
- package/lib/slider/src/styles/index.cssr.js +1 -0
- package/lib/slider/src/utils.js +2 -3
- package/lib/slider/styles/dark.js +1 -1
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/slider/styles/light.js +3 -3
- package/lib/space/src/Space.d.ts +4 -4
- package/lib/space/src/Space.js +5 -5
- package/lib/space/src/utils.d.ts +1 -1
- package/lib/space/src/utils.js +3 -4
- package/lib/space/styles/light.d.ts +1 -1
- package/lib/space/styles/light.js +2 -2
- package/lib/space/styles/rtl.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +7 -7
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/spin/styles/light.js +4 -5
- package/lib/split/src/Split.d.ts +11 -11
- package/lib/split/src/Split.js +6 -6
- package/lib/split/styles/dark.d.ts +1 -1
- package/lib/split/styles/light.d.ts +2 -2
- package/lib/split/styles/light.js +4 -5
- package/lib/statistic/src/Statistic.js +4 -4
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/statistic/styles/light.js +4 -5
- package/lib/statistic/styles/rtl.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +3 -3
- package/lib/steps/src/Step.js +1 -1
- package/lib/steps/src/Steps.d.ts +4 -4
- package/lib/steps/styles/light.d.ts +1 -1
- package/lib/steps/styles/light.js +5 -6
- package/lib/steps/styles/rtl.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/Switch.js +9 -9
- package/lib/switch/styles/dark.js +1 -1
- package/lib/switch/styles/light.d.ts +1 -1
- package/lib/switch/styles/light.js +3 -3
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/table/styles/light.js +5 -6
- package/lib/table/styles/rtl.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +6 -18
- package/lib/tabs/src/Tab.js +2 -6
- package/lib/tabs/src/TabPane.d.ts +10 -22
- package/lib/tabs/src/Tabs.d.ts +32 -32
- package/lib/tabs/src/Tabs.js +54 -32
- package/lib/tabs/src/interface.d.ts +1 -1
- package/lib/tabs/src/styles/index.cssr.js +19 -7
- package/lib/tabs/styles/light.d.ts +2 -2
- package/lib/tabs/styles/light.js +5 -6
- package/lib/tag/src/Tag.d.ts +8 -8
- package/lib/tag/src/Tag.js +4 -4
- package/lib/tag/src/common-props.d.ts +3 -3
- package/lib/tag/styles/dark.js +1 -1
- package/lib/tag/styles/light.d.ts +1 -1
- package/lib/tag/styles/light.js +3 -3
- package/lib/theme-editor/src/ThemeEditor.js +18 -18
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +1 -1
- package/lib/themes/utils.js +1 -2
- package/lib/thing/src/Thing.d.ts +0 -1
- package/lib/thing/src/Thing.js +14 -14
- package/lib/thing/styles/light.d.ts +1 -1
- package/lib/thing/styles/light.js +4 -5
- package/lib/thing/styles/rtl.d.ts +1 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +3 -6
- package/lib/time-picker/src/Panel.d.ts +9 -111
- package/lib/time-picker/src/Panel.js +17 -19
- package/lib/time-picker/src/PanelCol.d.ts +5 -5
- package/lib/time-picker/src/TimePicker.d.ts +50 -134
- package/lib/time-picker/src/TimePicker.js +34 -33
- package/lib/time-picker/src/interface.d.ts +2 -2
- package/lib/time-picker/src/utils.js +19 -16
- package/lib/time-picker/styles/light.d.ts +5 -3
- package/lib/time-picker/styles/light.js +5 -6
- package/lib/timeline/src/Timeline.d.ts +1 -2
- package/lib/timeline/src/Timeline.js +2 -2
- package/lib/timeline/src/TimelineItem.d.ts +3 -3
- package/lib/timeline/src/TimelineItem.js +1 -1
- package/lib/timeline/styles/dark.js +1 -1
- package/lib/timeline/styles/light.d.ts +1 -1
- package/lib/timeline/styles/light.js +3 -3
- package/lib/tooltip/src/Tooltip.d.ts +16 -120
- package/lib/tooltip/src/Tooltip.js +0 -2
- package/lib/tooltip/styles/light.d.ts +1 -1
- package/lib/tooltip/styles/light.js +4 -4
- package/lib/transfer/src/Transfer.d.ts +69 -133
- package/lib/transfer/src/Transfer.js +4 -4
- package/lib/transfer/src/TransferFilter.d.ts +7 -107
- package/lib/transfer/src/TransferFilter.js +0 -1
- package/lib/transfer/src/TransferHeader.d.ts +3 -4
- package/lib/transfer/src/TransferHeader.js +3 -5
- package/lib/transfer/src/TransferList.d.ts +8 -108
- package/lib/transfer/src/TransferList.js +1 -2
- package/lib/transfer/src/TransferListItem.d.ts +7 -107
- package/lib/transfer/src/TransferListItem.js +1 -3
- package/lib/transfer/src/use-transfer-data.d.ts +1 -1
- package/lib/transfer/src/use-transfer-data.js +9 -11
- package/lib/transfer/styles/dark.js +1 -1
- package/lib/transfer/styles/light.d.ts +7 -3
- package/lib/transfer/styles/light.js +3 -3
- package/lib/tree/src/MotionWrapper.d.ts +3 -3
- package/lib/tree/src/MotionWrapper.js +1 -1
- package/lib/tree/src/Tree.d.ts +97 -161
- package/lib/tree/src/Tree.js +62 -60
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +12 -17
- package/lib/tree/src/TreeNodeCheckbox.d.ts +7 -107
- package/lib/tree/src/TreeNodeCheckbox.js +0 -1
- package/lib/tree/src/TreeNodeContent.d.ts +4 -4
- package/lib/tree/src/TreeNodeContent.js +1 -3
- package/lib/tree/src/TreeNodeSwitcher.d.ts +0 -1
- package/lib/tree/src/TreeNodeSwitcher.js +0 -1
- package/lib/tree/src/dnd.d.ts +1 -1
- package/lib/tree/src/dnd.js +4 -5
- package/lib/tree/src/interface.d.ts +2 -2
- package/lib/tree/src/keyboard.d.ts +2 -2
- package/lib/tree/src/keyboard.js +6 -7
- package/lib/tree/src/utils.d.ts +2 -2
- package/lib/tree/src/utils.js +9 -9
- package/lib/tree/styles/light.d.ts +7 -3
- package/lib/tree/styles/light.js +4 -5
- package/lib/tree-select/src/TreeSelect.d.ts +152 -159
- package/lib/tree-select/src/TreeSelect.js +38 -29
- package/lib/tree-select/src/interface.d.ts +3 -3
- package/lib/tree-select/src/styles/index.cssr.js +10 -0
- package/lib/tree-select/src/utils.d.ts +2 -2
- package/lib/tree-select/src/utils.js +3 -4
- package/lib/tree-select/styles/light.d.ts +15 -3
- package/lib/tree-select/styles/light.js +8 -6
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.d.ts +4 -4
- package/lib/typography/src/create-header.js +0 -1
- package/lib/typography/src/headers.d.ts +12 -12
- package/lib/typography/src/p.d.ts +3 -3
- package/lib/typography/src/text.d.ts +3 -3
- package/lib/typography/styles/light.d.ts +1 -1
- package/lib/typography/styles/light.js +5 -6
- package/lib/upload/src/Upload.d.ts +12 -113
- package/lib/upload/src/Upload.js +47 -46
- package/lib/upload/src/UploadDragger.d.ts +0 -1
- package/lib/upload/src/UploadDragger.js +2 -1
- package/lib/upload/src/UploadFile.d.ts +6 -109
- package/lib/upload/src/UploadFile.js +27 -17
- package/lib/upload/src/UploadFileList.d.ts +0 -1
- package/lib/upload/src/UploadFileList.js +7 -7
- package/lib/upload/src/UploadProgress.d.ts +3 -107
- package/lib/upload/src/UploadProgress.js +0 -1
- package/lib/upload/src/UploadTrigger.d.ts +0 -1
- package/lib/upload/src/UploadTrigger.js +8 -8
- package/lib/upload/src/icons.d.ts +0 -1
- package/lib/upload/src/interface.d.ts +9 -3
- package/lib/upload/src/public-types.d.ts +1 -1
- package/lib/upload/src/utils.d.ts +2 -2
- package/lib/upload/src/utils.js +34 -22
- package/lib/upload/styles/light.d.ts +1 -1
- package/lib/upload/styles/light.js +4 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +13 -13
- package/lib/virtual-list/src/VirtualList.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +3 -4
- package/lib/watermark/src/Watermark.js +15 -15
- package/package.json +77 -90
- package/volar.d.ts +5 -5
- package/web-types.json +329 -60
package/lib/form/src/FormItem.js
CHANGED
|
@@ -40,28 +40,26 @@ function wrapValidator(validator, async) {
|
|
|
40
40
|
return (...args) => {
|
|
41
41
|
try {
|
|
42
42
|
const validateResult = validator(...args);
|
|
43
|
-
if ((!async
|
|
44
|
-
(typeof validateResult === 'boolean'
|
|
45
|
-
validateResult instanceof Error
|
|
46
|
-
Array.isArray(validateResult)))
|
|
47
|
-
(validateResult === null || validateResult === void 0 ? void 0 : validateResult.then)) {
|
|
43
|
+
if ((!async
|
|
44
|
+
&& (typeof validateResult === 'boolean'
|
|
45
|
+
|| validateResult instanceof Error
|
|
46
|
+
|| Array.isArray(validateResult))) // Error[]
|
|
47
|
+
|| (validateResult === null || validateResult === void 0 ? void 0 : validateResult.then)) {
|
|
48
48
|
return validateResult;
|
|
49
49
|
}
|
|
50
50
|
else if (validateResult === undefined) {
|
|
51
51
|
return true;
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
|
-
(0, _utils_1.warn)('form-item/validate', `You return a ${typeof validateResult} `
|
|
55
|
-
|
|
56
|
-
(async ? '`Promise`' : '`boolean`, `Error` or `Promise`') +
|
|
57
|
-
' typed value instead.');
|
|
54
|
+
(0, _utils_1.warn)('form-item/validate', `You return a ${typeof validateResult} `
|
|
55
|
+
+ `typed value in the validator method, which is not recommended. Please use ${async ? '`Promise`' : '`boolean`, `Error` or `Promise`'} typed value instead.`);
|
|
58
56
|
return true;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
catch (err) {
|
|
62
|
-
(0, _utils_1.warn)('form-item/validate', 'An error is catched in the validation, '
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
(0, _utils_1.warn)('form-item/validate', 'An error is catched in the validation, '
|
|
61
|
+
+ 'so the validation won\'t be done. Your callback in `validate` method of '
|
|
62
|
+
+ '`n-form` or `n-form-item` won\'t be called in this validation.');
|
|
65
63
|
console.error(err);
|
|
66
64
|
// If returns undefined, async-validator won't trigger callback
|
|
67
65
|
// so the result will be abandoned, which means not true and not false
|
|
@@ -101,54 +99,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
101
99
|
feedbackIdRef.value = (0, seemly_1.createId)();
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
|
-
function handleContentBlur() {
|
|
105
|
-
void internalValidate('blur');
|
|
106
|
-
}
|
|
107
|
-
function handleContentChange() {
|
|
108
|
-
void internalValidate('change');
|
|
109
|
-
}
|
|
110
|
-
function handleContentFocus() {
|
|
111
|
-
void internalValidate('focus');
|
|
112
|
-
}
|
|
113
|
-
function handleContentInput() {
|
|
114
|
-
void internalValidate('input');
|
|
115
|
-
}
|
|
116
|
-
function validate(options, callback) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
/** the following code is for compatibility */
|
|
119
|
-
let trigger;
|
|
120
|
-
let validateCallback;
|
|
121
|
-
let shouldRuleBeApplied;
|
|
122
|
-
let asyncValidatorOptions;
|
|
123
|
-
if (typeof options === 'string') {
|
|
124
|
-
trigger = options;
|
|
125
|
-
validateCallback = callback;
|
|
126
|
-
}
|
|
127
|
-
else if (options !== null && typeof options === 'object') {
|
|
128
|
-
trigger = options.trigger;
|
|
129
|
-
validateCallback = options.callback;
|
|
130
|
-
shouldRuleBeApplied = options.shouldRuleBeApplied;
|
|
131
|
-
asyncValidatorOptions = options.options;
|
|
132
|
-
}
|
|
133
|
-
return yield new Promise((resolve, reject) => {
|
|
134
|
-
void internalValidate(trigger, shouldRuleBeApplied, asyncValidatorOptions).then(({ valid, errors, warnings }) => {
|
|
135
|
-
if (valid) {
|
|
136
|
-
if (validateCallback) {
|
|
137
|
-
validateCallback(undefined, { warnings });
|
|
138
|
-
}
|
|
139
|
-
resolve({ warnings });
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
if (validateCallback) {
|
|
143
|
-
validateCallback(errors, { warnings });
|
|
144
|
-
}
|
|
145
|
-
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
|
|
146
|
-
reject(errors);
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
102
|
const internalValidate = (...args_1) => __awaiter(this, [...args_1], void 0, function* (trigger = null, shouldRuleBeApplied = () => true, options = {
|
|
153
103
|
suppressWarning: true
|
|
154
104
|
}) {
|
|
@@ -185,15 +135,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
185
135
|
}
|
|
186
136
|
if (shallowClonedRule.renderMessage) {
|
|
187
137
|
const rendererKey = `__renderMessage__${i}`;
|
|
188
|
-
originalMessageRendersMessage[rendererKey]
|
|
189
|
-
shallowClonedRule.message;
|
|
138
|
+
originalMessageRendersMessage[rendererKey]
|
|
139
|
+
= shallowClonedRule.message;
|
|
190
140
|
shallowClonedRule.message = rendererKey;
|
|
191
141
|
messageRenderers[rendererKey] = shallowClonedRule.renderMessage;
|
|
192
142
|
}
|
|
193
143
|
return shallowClonedRule;
|
|
194
144
|
});
|
|
195
|
-
const activeErrorRules = activeRules.filter(
|
|
196
|
-
const activeWarningRules = activeRules.filter(
|
|
145
|
+
const activeErrorRules = activeRules.filter(r => r.level !== 'warning');
|
|
146
|
+
const activeWarningRules = activeRules.filter(r => r.level === 'warning');
|
|
147
|
+
const validationResult = {
|
|
148
|
+
valid: true,
|
|
149
|
+
errors: undefined,
|
|
150
|
+
warnings: undefined
|
|
151
|
+
};
|
|
152
|
+
if (!activeRules.length)
|
|
153
|
+
return validationResult;
|
|
197
154
|
const mergedPath = path !== null && path !== void 0 ? path : '__n_no_path__';
|
|
198
155
|
const validator = new async_validator_1.default({
|
|
199
156
|
[mergedPath]: activeErrorRules
|
|
@@ -226,17 +183,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
226
183
|
}
|
|
227
184
|
});
|
|
228
185
|
};
|
|
229
|
-
const validationResult = {
|
|
230
|
-
valid: true,
|
|
231
|
-
errors: undefined,
|
|
232
|
-
warnings: undefined
|
|
233
|
-
};
|
|
234
186
|
if (activeErrorRules.length) {
|
|
235
187
|
const errors = yield new Promise((resolve) => {
|
|
236
188
|
void validator.validate({ [mergedPath]: value }, options, resolve);
|
|
237
189
|
});
|
|
238
190
|
if (errors === null || errors === void 0 ? void 0 : errors.length) {
|
|
239
|
-
validationErroredRef.value = true;
|
|
240
191
|
validationResult.valid = false;
|
|
241
192
|
validationResult.errors = errors;
|
|
242
193
|
renderMessages(errors);
|
|
@@ -249,17 +200,65 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
249
200
|
});
|
|
250
201
|
if (warnings === null || warnings === void 0 ? void 0 : warnings.length) {
|
|
251
202
|
renderMessages(warnings);
|
|
252
|
-
validationWarnedRef.value = true;
|
|
253
203
|
validationResult.warnings = warnings;
|
|
254
204
|
}
|
|
255
205
|
}
|
|
256
|
-
if (
|
|
257
|
-
!validationResult.errors &&
|
|
258
|
-
!validationResult.warnings) {
|
|
206
|
+
if (!validationResult.errors && !validationResult.warnings) {
|
|
259
207
|
restoreValidation();
|
|
260
208
|
}
|
|
209
|
+
else {
|
|
210
|
+
validationErroredRef.value = !!validationResult.errors;
|
|
211
|
+
validationWarnedRef.value = !!validationResult.warnings;
|
|
212
|
+
}
|
|
261
213
|
return validationResult;
|
|
262
214
|
});
|
|
215
|
+
function handleContentBlur() {
|
|
216
|
+
void internalValidate('blur');
|
|
217
|
+
}
|
|
218
|
+
function handleContentChange() {
|
|
219
|
+
void internalValidate('change');
|
|
220
|
+
}
|
|
221
|
+
function handleContentFocus() {
|
|
222
|
+
void internalValidate('focus');
|
|
223
|
+
}
|
|
224
|
+
function handleContentInput() {
|
|
225
|
+
void internalValidate('input');
|
|
226
|
+
}
|
|
227
|
+
function validate(options, callback) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
/** the following code is for compatibility */
|
|
230
|
+
let trigger;
|
|
231
|
+
let validateCallback;
|
|
232
|
+
let shouldRuleBeApplied;
|
|
233
|
+
let asyncValidatorOptions;
|
|
234
|
+
if (typeof options === 'string') {
|
|
235
|
+
trigger = options;
|
|
236
|
+
validateCallback = callback;
|
|
237
|
+
}
|
|
238
|
+
else if (options !== null && typeof options === 'object') {
|
|
239
|
+
trigger = options.trigger;
|
|
240
|
+
validateCallback = options.callback;
|
|
241
|
+
shouldRuleBeApplied = options.shouldRuleBeApplied;
|
|
242
|
+
asyncValidatorOptions = options.options;
|
|
243
|
+
}
|
|
244
|
+
return yield new Promise((resolve, reject) => {
|
|
245
|
+
void internalValidate(trigger, shouldRuleBeApplied, asyncValidatorOptions).then(({ valid, errors, warnings }) => {
|
|
246
|
+
if (valid) {
|
|
247
|
+
if (validateCallback) {
|
|
248
|
+
validateCallback(undefined, { warnings });
|
|
249
|
+
}
|
|
250
|
+
resolve({ warnings });
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
if (validateCallback) {
|
|
254
|
+
validateCallback(errors, { warnings });
|
|
255
|
+
}
|
|
256
|
+
reject(errors);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
}
|
|
263
262
|
(0, vue_1.provide)(use_form_item_1.formItemInjectionKey, {
|
|
264
263
|
path: (0, vue_1.toRef)(props, 'path'),
|
|
265
264
|
disabled: mergedDisabledRef,
|
|
@@ -297,8 +296,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
297
296
|
const { common: { cubicBezierEaseInOut }, self: { labelTextColor, asteriskColor, lineHeight, feedbackTextColor, feedbackTextColorWarning, feedbackTextColorError, feedbackPadding, labelFontWeight, [(0, _utils_1.createKey)('labelHeight', size)]: labelHeight, [(0, _utils_1.createKey)('blankHeight', size)]: blankHeight, [(0, _utils_1.createKey)('feedbackFontSize', size)]: feedbackFontSize, [(0, _utils_1.createKey)('feedbackHeight', size)]: feedbackHeight, [(0, _utils_1.createKey)('labelPadding', direction)]: labelPadding, [(0, _utils_1.createKey)('labelTextAlign', direction)]: labelTextAlign, [(0, _utils_1.createKey)((0, _utils_1.createKey)('labelFontSize', labelPlacement), size)]: labelFontSize } } = themeRef.value;
|
|
298
297
|
let mergedLabelTextAlign = (_a = labelTextAlignRef.value) !== null && _a !== void 0 ? _a : labelTextAlign;
|
|
299
298
|
if (labelPlacement === 'top') {
|
|
300
|
-
mergedLabelTextAlign
|
|
301
|
-
mergedLabelTextAlign === 'right' ? 'flex-end' : 'flex-start';
|
|
299
|
+
mergedLabelTextAlign
|
|
300
|
+
= mergedLabelTextAlign === 'right' ? 'flex-end' : 'flex-start';
|
|
302
301
|
}
|
|
303
302
|
const cssVars = {
|
|
304
303
|
'--n-bezier': cubicBezierEaseInOut,
|
|
@@ -335,9 +334,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
335
334
|
// right | right | mark text (okay)
|
|
336
335
|
// right-hanging | left | text mark (okay)
|
|
337
336
|
// right-hanging | right | text mark (okay)
|
|
338
|
-
return (labelPlacementRef.value === 'left'
|
|
339
|
-
mergedRequireMarkPlacementRef.value === 'left'
|
|
340
|
-
labelTextAlignRef.value === 'left');
|
|
337
|
+
return (labelPlacementRef.value === 'left'
|
|
338
|
+
&& mergedRequireMarkPlacementRef.value === 'left'
|
|
339
|
+
&& labelTextAlignRef.value === 'left');
|
|
341
340
|
});
|
|
342
341
|
return Object.assign(Object.assign(Object.assign(Object.assign({ labelElementRef, mergedClsPrefix: mergedClsPrefixRef, mergedRequired: mergedRequiredRef, feedbackId: feedbackIdRef, renderExplains: renderExplainsRef, reverseColSpace: reverseColSpaceRef }, formItemMiscRefs), formItemSizeRefs), exposedRef), { cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
343
342
|
},
|
|
@@ -358,8 +357,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
358
357
|
labelProps === null || labelProps === void 0 ? void 0 : labelProps.class,
|
|
359
358
|
`${mergedClsPrefix}-form-item-label`,
|
|
360
359
|
`${mergedClsPrefix}-form-item-label--${mergedRequireMarkPlacement}-mark`,
|
|
361
|
-
this.reverseColSpace
|
|
362
|
-
`${mergedClsPrefix}-form-item-label--reverse-columns-space`
|
|
360
|
+
this.reverseColSpace
|
|
361
|
+
&& `${mergedClsPrefix}-form-item-label--reverse-columns-space`
|
|
363
362
|
], style: this.mergedLabelStyle, ref: "labelElementRef" }), mergedRequireMarkPlacement === 'left'
|
|
364
363
|
? [markNode, textNode]
|
|
365
364
|
: [textNode, markNode]));
|
|
@@ -369,15 +368,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
369
368
|
this.themeClass,
|
|
370
369
|
`${mergedClsPrefix}-form-item--${this.mergedSize}-size`,
|
|
371
370
|
`${mergedClsPrefix}-form-item--${this.mergedLabelPlacement}-labelled`,
|
|
372
|
-
this.isAutoLabelWidth
|
|
373
|
-
`${mergedClsPrefix}-form-item--auto-label-width`,
|
|
371
|
+
this.isAutoLabelWidth
|
|
372
|
+
&& `${mergedClsPrefix}-form-item--auto-label-width`,
|
|
374
373
|
!mergedShowLabel && `${mergedClsPrefix}-form-item--no-label`
|
|
375
374
|
], style: this.cssVars },
|
|
376
375
|
mergedShowLabel && renderLabel(),
|
|
377
376
|
(0, vue_1.h)("div", { class: [
|
|
378
377
|
`${mergedClsPrefix}-form-item-blank`,
|
|
379
|
-
this.mergedValidationStatus
|
|
380
|
-
`${mergedClsPrefix}-form-item-blank--${this.mergedValidationStatus}`
|
|
378
|
+
this.mergedValidationStatus
|
|
379
|
+
&& `${mergedClsPrefix}-form-item-blank--${this.mergedValidationStatus}`
|
|
381
380
|
] }, $slots),
|
|
382
381
|
this.mergedShowFeedback ? ((0, vue_1.h)("div", { key: this.feedbackId, style: this.feedbackStyle, class: [
|
|
383
382
|
`${mergedClsPrefix}-form-item-feedback-wrapper`,
|
|
@@ -2,7 +2,7 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
export declare const formItemColProps: {
|
|
3
3
|
readonly label: StringConstructor;
|
|
4
4
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
5
|
-
readonly labelStyle: import("vue").PropType<
|
|
5
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
6
6
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
7
7
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
8
8
|
readonly path: StringConstructor;
|
|
@@ -21,7 +21,7 @@ export declare const formItemColProps: {
|
|
|
21
21
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
22
22
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
23
23
|
readonly ignorePathChange: BooleanConstructor;
|
|
24
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
24
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
25
25
|
readonly feedback: StringConstructor;
|
|
26
26
|
readonly feedbackClass: StringConstructor;
|
|
27
27
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -148,7 +148,7 @@ export type FormItemColProps = ExtractPublicPropTypes<typeof formItemColProps>;
|
|
|
148
148
|
declare const _default: import("vue").DefineComponent<{
|
|
149
149
|
readonly label: StringConstructor;
|
|
150
150
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
151
|
-
readonly labelStyle: import("vue").PropType<
|
|
151
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
152
152
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
153
153
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
154
154
|
readonly path: StringConstructor;
|
|
@@ -167,7 +167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
168
168
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
169
169
|
readonly ignorePathChange: BooleanConstructor;
|
|
170
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
170
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
171
171
|
readonly feedback: StringConstructor;
|
|
172
172
|
readonly feedbackClass: StringConstructor;
|
|
173
173
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -300,7 +300,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
300
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
301
|
readonly label: StringConstructor;
|
|
302
302
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
303
|
-
readonly labelStyle: import("vue").PropType<
|
|
303
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
304
304
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
305
305
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
306
306
|
readonly path: StringConstructor;
|
|
@@ -319,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
319
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
320
320
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
321
321
|
readonly ignorePathChange: BooleanConstructor;
|
|
322
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
322
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
323
323
|
readonly feedback: StringConstructor;
|
|
324
324
|
readonly feedbackClass: StringConstructor;
|
|
325
325
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -2,7 +2,7 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
export declare const formItemGiProps: {
|
|
3
3
|
readonly label: StringConstructor;
|
|
4
4
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
5
|
-
readonly labelStyle: import("vue").PropType<
|
|
5
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
6
6
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
7
7
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
8
8
|
readonly path: StringConstructor;
|
|
@@ -21,7 +21,7 @@ export declare const formItemGiProps: {
|
|
|
21
21
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
22
22
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
23
23
|
readonly ignorePathChange: BooleanConstructor;
|
|
24
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
24
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
25
25
|
readonly feedback: StringConstructor;
|
|
26
26
|
readonly feedbackClass: StringConstructor;
|
|
27
27
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -148,7 +148,7 @@ export type FormItemGiProps = ExtractPublicPropTypes<typeof formItemGiProps>;
|
|
|
148
148
|
declare const _default: import("vue").DefineComponent<{
|
|
149
149
|
readonly label: StringConstructor;
|
|
150
150
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
151
|
-
readonly labelStyle: import("vue").PropType<
|
|
151
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
152
152
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
153
153
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
154
154
|
readonly path: StringConstructor;
|
|
@@ -167,7 +167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
168
168
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
169
169
|
readonly ignorePathChange: BooleanConstructor;
|
|
170
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
170
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
171
171
|
readonly feedback: StringConstructor;
|
|
172
172
|
readonly feedbackClass: StringConstructor;
|
|
173
173
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -300,7 +300,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
300
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
301
|
readonly label: StringConstructor;
|
|
302
302
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
303
|
-
readonly labelStyle: import("vue").PropType<
|
|
303
|
+
readonly labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
304
304
|
readonly labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
305
305
|
readonly labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
306
306
|
readonly path: StringConstructor;
|
|
@@ -319,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
319
|
readonly rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
320
320
|
readonly size: import("vue").PropType<"small" | "medium" | "large">;
|
|
321
321
|
readonly ignorePathChange: BooleanConstructor;
|
|
322
|
-
readonly validationStatus: import("vue").PropType<"error" | "
|
|
322
|
+
readonly validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
323
323
|
readonly feedback: StringConstructor;
|
|
324
324
|
readonly feedbackClass: StringConstructor;
|
|
325
325
|
readonly feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -2,7 +2,7 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
export declare const formItemRowProps: {
|
|
3
3
|
label: StringConstructor;
|
|
4
4
|
labelWidth: import("vue").PropType<string | number>;
|
|
5
|
-
labelStyle: import("vue").PropType<
|
|
5
|
+
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
6
6
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
7
7
|
labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
8
8
|
path: StringConstructor;
|
|
@@ -21,7 +21,7 @@ export declare const formItemRowProps: {
|
|
|
21
21
|
rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
22
22
|
size: import("vue").PropType<"small" | "medium" | "large">;
|
|
23
23
|
ignorePathChange: BooleanConstructor;
|
|
24
|
-
validationStatus: import("vue").PropType<"error" | "
|
|
24
|
+
validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
25
25
|
feedback: StringConstructor;
|
|
26
26
|
feedbackClass: StringConstructor;
|
|
27
27
|
feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -153,7 +153,7 @@ export type FormItemRowProps = ExtractPublicPropTypes<typeof formItemRowProps>;
|
|
|
153
153
|
declare const _default: import("vue").DefineComponent<{
|
|
154
154
|
label: StringConstructor;
|
|
155
155
|
labelWidth: import("vue").PropType<string | number>;
|
|
156
|
-
labelStyle: import("vue").PropType<
|
|
156
|
+
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
157
157
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
158
158
|
labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
159
159
|
path: StringConstructor;
|
|
@@ -172,7 +172,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
172
172
|
rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
173
173
|
size: import("vue").PropType<"small" | "medium" | "large">;
|
|
174
174
|
ignorePathChange: BooleanConstructor;
|
|
175
|
-
validationStatus: import("vue").PropType<"error" | "
|
|
175
|
+
validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
176
176
|
feedback: StringConstructor;
|
|
177
177
|
feedbackClass: StringConstructor;
|
|
178
178
|
feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -311,7 +311,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
311
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
312
312
|
label: StringConstructor;
|
|
313
313
|
labelWidth: import("vue").PropType<string | number>;
|
|
314
|
-
labelStyle: import("vue").PropType<
|
|
314
|
+
labelStyle: import("vue").PropType<import("vue").CSSProperties | string>;
|
|
315
315
|
labelAlign: import("vue").PropType<import("./interface").LabelAlign>;
|
|
316
316
|
labelPlacement: import("vue").PropType<import("./interface").LabelPlacement>;
|
|
317
317
|
path: StringConstructor;
|
|
@@ -330,7 +330,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
330
330
|
rule: import("vue").PropType<import("./interface").FormItemRule | import("./interface").FormItemRule[]>;
|
|
331
331
|
size: import("vue").PropType<"small" | "medium" | "large">;
|
|
332
332
|
ignorePathChange: BooleanConstructor;
|
|
333
|
-
validationStatus: import("vue").PropType<"error" | "
|
|
333
|
+
validationStatus: import("vue").PropType<"error" | "warning" | "success">;
|
|
334
334
|
feedback: StringConstructor;
|
|
335
335
|
feedbackClass: StringConstructor;
|
|
336
336
|
feedbackStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ref, VNodeChild } from 'vue';
|
|
2
|
-
import type { ValidateError,
|
|
2
|
+
import type { RuleItem, ValidateError, ValidateMessages, ValidateOption } from 'async-validator';
|
|
3
3
|
import type { FormSetupProps } from './Form';
|
|
4
4
|
export interface FormRules {
|
|
5
5
|
[path: string]: FormRules | FormItemRule | FormItemRule[];
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
2
|
import type { FormItemSetupProps } from './FormItem';
|
|
3
|
-
import type {
|
|
3
|
+
import type { FormItemRule, Size } from './interface';
|
|
4
4
|
export declare function formItemSize(props: FormItemSetupProps): {
|
|
5
5
|
mergedSize: ComputedRef<Size>;
|
|
6
6
|
};
|
package/lib/form/src/utils.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.formItemSize = formItemSize;
|
|
4
|
+
exports.formItemMisc = formItemMisc;
|
|
5
|
+
exports.formItemRule = formItemRule;
|
|
4
6
|
const vue_1 = require("vue");
|
|
5
7
|
const lodash_1 = require("lodash");
|
|
6
|
-
const context_1 = require("./context");
|
|
7
8
|
const _utils_1 = require("../../_utils");
|
|
9
|
+
const context_1 = require("./context");
|
|
8
10
|
function formItemSize(props) {
|
|
9
11
|
const NForm = (0, vue_1.inject)(context_1.formInjectionKey, null);
|
|
10
12
|
return {
|
|
@@ -17,8 +19,6 @@ function formItemSize(props) {
|
|
|
17
19
|
})
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
|
-
exports.formItemSize = formItemSize;
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
22
22
|
function formItemMisc(props) {
|
|
23
23
|
const NForm = (0, vue_1.inject)(context_1.formInjectionKey, null);
|
|
24
24
|
const mergedLabelPlacementRef = (0, vue_1.computed)(() => {
|
|
@@ -30,8 +30,8 @@ function formItemMisc(props) {
|
|
|
30
30
|
return 'top';
|
|
31
31
|
});
|
|
32
32
|
const isAutoLabelWidthRef = (0, vue_1.computed)(() => {
|
|
33
|
-
return (mergedLabelPlacementRef.value === 'left'
|
|
34
|
-
(props.labelWidth === 'auto' || (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) === 'auto'));
|
|
33
|
+
return (mergedLabelPlacementRef.value === 'left'
|
|
34
|
+
&& (props.labelWidth === 'auto' || (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) === 'auto'));
|
|
35
35
|
});
|
|
36
36
|
const mergedLabelWidthRef = (0, vue_1.computed)(() => {
|
|
37
37
|
if (mergedLabelPlacementRef.value === 'top')
|
|
@@ -126,8 +126,6 @@ function formItemMisc(props) {
|
|
|
126
126
|
isAutoLabelWidth: isAutoLabelWidthRef
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
exports.formItemMisc = formItemMisc;
|
|
130
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
131
129
|
function formItemRule(props) {
|
|
132
130
|
const NForm = (0, vue_1.inject)(context_1.formInjectionKey, null);
|
|
133
131
|
const compatibleRulePathRef = (0, vue_1.computed)(() => {
|
|
@@ -167,7 +165,7 @@ function formItemRule(props) {
|
|
|
167
165
|
return rules;
|
|
168
166
|
});
|
|
169
167
|
const hasRequiredRuleRef = (0, vue_1.computed)(() => {
|
|
170
|
-
return mergedRulesRef.value.some(
|
|
168
|
+
return mergedRulesRef.value.some(rule => rule.required);
|
|
171
169
|
});
|
|
172
170
|
// deprecated
|
|
173
171
|
const mergedRequiredRef = (0, vue_1.computed)(() => {
|
|
@@ -178,4 +176,3 @@ function formItemRule(props) {
|
|
|
178
176
|
mergedRequired: mergedRequiredRef
|
|
179
177
|
};
|
|
180
178
|
}
|
|
181
|
-
exports.formItemRule = formItemRule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import type { Theme } from '../../_mixins';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function self(vars: ThemeCommonVars): {
|
|
4
4
|
blankHeightSmall: string;
|
|
5
5
|
blankHeightMedium: string;
|
|
6
6
|
blankHeightLarge: string;
|
package/lib/form/styles/light.js
CHANGED
|
@@ -3,17 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.self =
|
|
6
|
+
exports.self = self;
|
|
7
7
|
const common_1 = require("../../_styles/common");
|
|
8
8
|
const _common_1 = __importDefault(require("./_common"));
|
|
9
|
-
|
|
9
|
+
function self(vars) {
|
|
10
10
|
const { heightSmall, heightMedium, heightLarge, textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
11
11
|
return Object.assign(Object.assign({}, _common_1.default), { blankHeightSmall: heightSmall, blankHeightMedium: heightMedium, blankHeightLarge: heightLarge, lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
12
|
-
}
|
|
13
|
-
exports.self = self;
|
|
12
|
+
}
|
|
14
13
|
const formLight = {
|
|
15
14
|
name: 'Form',
|
|
16
15
|
common: common_1.commonLight,
|
|
17
|
-
self
|
|
16
|
+
self
|
|
18
17
|
};
|
|
19
18
|
exports.default = formLight;
|
|
@@ -9,7 +9,7 @@ export declare const gradientTextProps: {
|
|
|
9
9
|
readonly size: PropType<string | number>;
|
|
10
10
|
readonly fontSize: PropType<string | number>;
|
|
11
11
|
readonly type: {
|
|
12
|
-
readonly type: PropType<"
|
|
12
|
+
readonly type: PropType<"info" | "success" | "warning" | "error" | "primary" | "danger">;
|
|
13
13
|
readonly default: "primary";
|
|
14
14
|
};
|
|
15
15
|
readonly color: PropType<Gradient>;
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
readonly size: PropType<string | number>;
|
|
63
63
|
readonly fontSize: PropType<string | number>;
|
|
64
64
|
readonly type: {
|
|
65
|
-
readonly type: PropType<"
|
|
65
|
+
readonly type: PropType<"info" | "success" | "warning" | "error" | "primary" | "danger">;
|
|
66
66
|
readonly default: "primary";
|
|
67
67
|
};
|
|
68
68
|
readonly color: PropType<Gradient>;
|
|
@@ -127,7 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
127
|
readonly size: PropType<string | number>;
|
|
128
128
|
readonly fontSize: PropType<string | number>;
|
|
129
129
|
readonly type: {
|
|
130
|
-
readonly type: PropType<"
|
|
130
|
+
readonly type: PropType<"info" | "success" | "warning" | "error" | "primary" | "danger">;
|
|
131
131
|
readonly default: "primary";
|
|
132
132
|
};
|
|
133
133
|
readonly color: PropType<Gradient>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Theme } from '../../_mixins';
|
|
2
2
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
3
|
-
declare
|
|
3
|
+
declare function self(vars: ThemeCommonVars): {
|
|
4
4
|
fontWeight: string;
|
|
5
5
|
rotate: string;
|
|
6
6
|
colorStartPrimary: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const seemly_1 = require("seemly");
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
|
-
|
|
5
|
+
function self(vars) {
|
|
6
6
|
const { primaryColor, successColor, warningColor, errorColor, infoColor, fontWeightStrong } = vars;
|
|
7
7
|
return {
|
|
8
8
|
fontWeight: fontWeightStrong,
|
|
@@ -18,7 +18,7 @@ const self = (vars) => {
|
|
|
18
18
|
colorStartSuccess: (0, seemly_1.changeColor)(successColor, { alpha: 0.6 }),
|
|
19
19
|
colorEndSuccess: successColor
|
|
20
20
|
};
|
|
21
|
-
}
|
|
21
|
+
}
|
|
22
22
|
const gradientTextLight = {
|
|
23
23
|
name: 'GradientText',
|
|
24
24
|
common: common_1.commonLight,
|