naive-ui 2.23.0 → 2.24.1
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/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +9 -10
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/icons/Switcher.js +2 -3
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +6 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +11 -10
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +44 -44
- package/es/_internal/selection/src/styles/index.cssr.js +79 -79
- package/es/_internal/selection/styles/_common.js +1 -1
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +14 -14
- package/es/auto-complete/src/AutoComplete.js +15 -17
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +72 -33
- package/es/avatar/src/Avatar.js +43 -15
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +20 -15
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +16 -16
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/calendar/src/Calendar.d.ts +26 -22
- package/es/calendar/src/Calendar.js +37 -25
- package/es/calendar/src/interface.d.ts +4 -0
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/carousel/src/Carousel.d.ts +239 -23
- package/es/carousel/src/Carousel.js +688 -234
- package/es/carousel/src/CarouselArrow.d.ts +9 -0
- package/es/carousel/src/CarouselArrow.js +43 -0
- package/es/carousel/src/CarouselDots.d.ts +66 -0
- package/es/carousel/src/CarouselDots.js +118 -0
- package/es/carousel/src/CarouselItem.d.ts +11 -0
- package/es/carousel/src/CarouselItem.js +72 -0
- package/es/carousel/src/interface.d.ts +28 -0
- package/es/carousel/src/interface.js +2 -0
- package/es/carousel/src/styles/index.cssr.js +150 -47
- package/es/carousel/src/utils.d.ts +12 -0
- package/es/carousel/src/utils.js +58 -0
- package/es/carousel/styles/light.d.ts +3 -0
- package/es/carousel/styles/light.js +5 -2
- package/es/cascader/src/Cascader.d.ts +31 -19
- package/es/cascader/src/Cascader.js +31 -20
- package/es/cascader/src/CascaderMenu.js +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.js +7 -4
- package/es/cascader/src/interface.d.ts +2 -1
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/light.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +59 -59
- package/es/code/src/Code.d.ts +19 -14
- package/es/code/src/Code.js +32 -20
- package/es/code/src/styles/index.cssr.js +30 -30
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +23 -15
- package/es/color-picker/src/ColorPicker.js +29 -20
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.js +23 -17
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +29 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +27 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +49 -94
- package/es/data-table/src/DataTable.js +65 -91
- package/es/data-table/src/TableParts/Body.js +6 -4
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +133 -130
- package/es/data-table/src/utils.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +71 -67
- package/es/date-picker/src/DatePicker.js +144 -94
- package/es/date-picker/src/interface.d.ts +17 -2
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +8 -7
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +24 -24
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/drawer/src/Drawer.d.ts +37 -77
- package/es/drawer/src/Drawer.js +51 -68
- package/es/drawer/src/DrawerBodyWrapper.js +21 -13
- package/es/drawer/src/DrawerContent.js +6 -6
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.d.ts +5 -0
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Feedbacks.js +4 -1
- package/es/form/src/Form.d.ts +34 -34
- package/es/form/src/Form.js +17 -8
- package/es/form/src/FormItem.d.ts +54 -49
- package/es/form/src/FormItem.js +39 -27
- package/es/form/src/FormItemCol.d.ts +41 -31
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +41 -31
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +40 -30
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/interface.d.ts +6 -2
- package/es/form/src/styles/form-item.cssr.js +39 -37
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.js +29 -18
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.d.ts +279 -10
- package/es/image/src/Image.js +4 -17
- package/es/image/src/ImageGroup.d.ts +272 -2
- package/es/image/src/ImageGroup.js +5 -8
- package/es/image/src/ImagePreview.d.ts +195 -7
- package/es/image/src/ImagePreview.js +62 -42
- package/es/image/src/interface.d.ts +94 -0
- package/es/image/src/interface.js +2 -1
- package/es/image/src/styles/index.cssr.js +11 -7
- package/es/image/styles/dark.js +8 -1
- package/es/image/styles/light.d.ts +32 -3
- package/es/image/styles/light.js +8 -1
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +10 -0
- package/es/locales/common/enUS.d.ts +9 -0
- package/es/locales/common/enUS.js +10 -0
- package/es/locales/common/frFR.js +17 -8
- package/es/locales/common/idID.js +10 -0
- package/es/locales/common/jaJP.js +10 -0
- package/es/locales/common/nbNO.js +10 -0
- package/es/locales/common/ruRU.js +10 -0
- package/es/locales/common/ukUA.js +10 -0
- package/es/locales/common/zhCN.js +9 -0
- package/es/locales/common/zhTW.js +10 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/mention/src/utils.js +0 -1
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/index.d.ts +2 -1
- package/es/message/src/Message.d.ts +213 -41
- package/es/message/src/Message.js +35 -33
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageProvider.d.ts +5 -10
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/message-props.d.ts +5 -2
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/message/src/types.d.ts +15 -0
- package/es/message/src/types.js +1 -0
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.js +15 -8
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +11 -11
- package/es/page-header/src/PageHeader.js +10 -10
- package/es/page-header/src/styles/index.cssr.js +23 -23
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +50 -45
- package/es/pagination/src/Pagination.js +118 -64
- package/es/pagination/src/interface.d.ts +10 -1
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/pagination/src/utils.d.ts +2 -2
- package/es/pagination/src/utils.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +7 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.d.ts +7 -0
- package/es/popover/src/Popover.js +24 -1
- package/es/popover/src/PopoverBody.d.ts +5 -0
- package/es/popover/src/PopoverBody.js +43 -61
- package/es/popover/src/styles/index.cssr.js +63 -62
- package/es/popselect/src/Popselect.d.ts +62 -73
- package/es/popselect/src/Popselect.js +2 -2
- package/es/progress/src/Circle.d.ts +7 -0
- package/es/progress/src/Circle.js +8 -1
- package/es/progress/src/Line.d.ts +2 -2
- package/es/progress/src/Line.js +4 -1
- package/es/progress/src/Progress.d.ts +20 -16
- package/es/progress/src/Progress.js +16 -16
- package/es/progress/src/styles/index.cssr.js +68 -68
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +15 -15
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +43 -43
- package/es/radio/src/styles/radio.cssr.js +40 -37
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +18 -19
- package/es/result/src/styles/index.cssr.js +26 -26
- package/es/select/src/Select.d.ts +9 -28
- package/es/select/src/Select.js +17 -25
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +31 -33
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +19 -19
- package/es/switch/src/styles/index.cssr.js +57 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +25 -22
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/tabs/src/styles/index.cssr.js +4 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +41 -21
- package/es/time-picker/src/TimePicker.js +76 -46
- package/es/time-picker/src/interface.d.ts +4 -2
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/tooltip/src/Tooltip.d.ts +5 -0
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +16 -12
- package/es/tree/src/Tree.js +15 -13
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.js +25 -14
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +37 -35
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/upload/src/Upload.d.ts +16 -7
- package/es/upload/src/Upload.js +34 -25
- package/es/upload/src/UploadFile.d.ts +5 -5
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/interface.d.ts +11 -4
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +9 -10
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/icons/Switcher.js +2 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +6 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +11 -10
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +44 -44
- package/lib/_internal/selection/src/styles/index.cssr.js +79 -79
- package/lib/_internal/selection/styles/_common.js +1 -1
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -14
- package/lib/auto-complete/src/AutoComplete.js +16 -18
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +72 -33
- package/lib/avatar/src/Avatar.js +45 -16
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +19 -14
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +16 -16
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/calendar/src/Calendar.d.ts +26 -22
- package/lib/calendar/src/Calendar.js +36 -24
- package/lib/calendar/src/interface.d.ts +4 -0
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +3 -1
- package/lib/carousel/src/Carousel.d.ts +239 -23
- package/lib/carousel/src/Carousel.js +686 -232
- package/lib/carousel/src/CarouselArrow.d.ts +9 -0
- package/lib/carousel/src/CarouselArrow.js +45 -0
- package/lib/carousel/src/CarouselDots.d.ts +66 -0
- package/lib/carousel/src/CarouselDots.js +120 -0
- package/lib/carousel/src/CarouselItem.d.ts +11 -0
- package/lib/carousel/src/CarouselItem.js +74 -0
- package/lib/carousel/src/interface.d.ts +28 -0
- package/lib/carousel/src/interface.js +6 -0
- package/lib/carousel/src/styles/index.cssr.js +150 -47
- package/lib/carousel/src/utils.d.ts +12 -0
- package/lib/carousel/src/utils.js +69 -0
- package/lib/carousel/styles/light.d.ts +3 -0
- package/lib/carousel/styles/light.js +5 -2
- package/lib/cascader/src/Cascader.d.ts +31 -19
- package/lib/cascader/src/Cascader.js +31 -20
- package/lib/cascader/src/CascaderMenu.js +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +7 -4
- package/lib/cascader/src/interface.d.ts +2 -1
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/light.js +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +59 -59
- package/lib/code/src/Code.d.ts +19 -14
- package/lib/code/src/Code.js +32 -20
- package/lib/code/src/styles/index.cssr.js +29 -29
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +23 -15
- package/lib/color-picker/src/ColorPicker.js +29 -20
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +29 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +49 -94
- package/lib/data-table/src/DataTable.js +63 -89
- package/lib/data-table/src/TableParts/Body.js +6 -4
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -130
- package/lib/data-table/src/utils.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +71 -67
- package/lib/date-picker/src/DatePicker.js +143 -93
- package/lib/date-picker/src/interface.d.ts +17 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +8 -7
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +24 -24
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/drawer/src/Drawer.d.ts +37 -77
- package/lib/drawer/src/Drawer.js +49 -66
- package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
- package/lib/drawer/src/DrawerContent.js +6 -6
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.d.ts +5 -0
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Feedbacks.js +4 -1
- package/lib/form/src/Form.d.ts +34 -34
- package/lib/form/src/Form.js +16 -7
- package/lib/form/src/FormItem.d.ts +54 -49
- package/lib/form/src/FormItem.js +38 -26
- package/lib/form/src/FormItemCol.d.ts +41 -31
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +41 -31
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +40 -30
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/interface.d.ts +6 -2
- package/lib/form/src/styles/form-item.cssr.js +39 -37
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/form/src/utils.js +29 -18
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.d.ts +279 -10
- package/lib/image/src/Image.js +4 -17
- package/lib/image/src/ImageGroup.d.ts +272 -2
- package/lib/image/src/ImageGroup.js +4 -7
- package/lib/image/src/ImagePreview.d.ts +195 -7
- package/lib/image/src/ImagePreview.js +60 -40
- package/lib/image/src/interface.d.ts +94 -0
- package/lib/image/src/interface.js +3 -0
- package/lib/image/src/styles/index.cssr.js +11 -7
- package/lib/image/styles/dark.js +8 -1
- package/lib/image/styles/light.d.ts +32 -3
- package/lib/image/styles/light.js +8 -1
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +10 -0
- package/lib/locales/common/enUS.d.ts +9 -0
- package/lib/locales/common/enUS.js +10 -0
- package/lib/locales/common/frFR.js +17 -8
- package/lib/locales/common/idID.js +10 -0
- package/lib/locales/common/jaJP.js +10 -0
- package/lib/locales/common/nbNO.js +10 -0
- package/lib/locales/common/ruRU.js +10 -0
- package/lib/locales/common/ukUA.js +10 -0
- package/lib/locales/common/zhCN.js +9 -0
- package/lib/locales/common/zhTW.js +10 -0
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/mention/src/utils.js +0 -1
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/index.d.ts +2 -1
- package/lib/message/src/Message.d.ts +213 -41
- package/lib/message/src/Message.js +35 -33
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +5 -10
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/message-props.d.ts +5 -2
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/message/src/types.d.ts +15 -0
- package/lib/message/src/types.js +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +15 -8
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +11 -11
- package/lib/page-header/src/PageHeader.js +10 -10
- package/lib/page-header/src/styles/index.cssr.js +23 -23
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +50 -45
- package/lib/pagination/src/Pagination.js +117 -63
- package/lib/pagination/src/interface.d.ts +10 -1
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/pagination/src/utils.d.ts +2 -2
- package/lib/pagination/src/utils.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +7 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.d.ts +7 -0
- package/lib/popover/src/Popover.js +23 -0
- package/lib/popover/src/PopoverBody.d.ts +5 -0
- package/lib/popover/src/PopoverBody.js +42 -60
- package/lib/popover/src/styles/index.cssr.js +63 -62
- package/lib/popselect/src/Popselect.d.ts +62 -73
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/progress/src/Circle.d.ts +7 -0
- package/lib/progress/src/Circle.js +8 -1
- package/lib/progress/src/Line.d.ts +2 -2
- package/lib/progress/src/Line.js +4 -1
- package/lib/progress/src/Progress.d.ts +20 -16
- package/lib/progress/src/Progress.js +16 -16
- package/lib/progress/src/styles/index.cssr.js +68 -68
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +15 -15
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +43 -43
- package/lib/radio/src/styles/radio.cssr.js +40 -37
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +17 -18
- package/lib/result/src/styles/index.cssr.js +26 -26
- package/lib/select/src/Select.d.ts +9 -28
- package/lib/select/src/Select.js +15 -23
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +31 -33
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +19 -19
- package/lib/switch/src/styles/index.cssr.js +57 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +25 -22
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/tabs/src/styles/index.cssr.js +4 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +41 -21
- package/lib/time-picker/src/TimePicker.js +76 -46
- package/lib/time-picker/src/interface.d.ts +4 -2
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/tooltip/src/Tooltip.d.ts +5 -0
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +16 -12
- package/lib/tree/src/Tree.js +15 -13
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.js +24 -13
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +37 -35
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/upload/src/Upload.d.ts +16 -7
- package/lib/upload/src/Upload.js +34 -25
- package/lib/upload/src/UploadFile.d.ts +5 -5
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/interface.d.ts +11 -4
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +51 -43
- package/web-types.json +648 -43
|
@@ -13,7 +13,7 @@ declare const formItemRowProps: {
|
|
|
13
13
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
14
14
|
readonly default: undefined;
|
|
15
15
|
};
|
|
16
|
-
requireMarkPlacement: import("vue").PropType<"left" | "right">;
|
|
16
|
+
requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
17
17
|
showFeedback: {
|
|
18
18
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
19
19
|
readonly default: undefined;
|
|
@@ -27,16 +27,17 @@ declare const formItemRowProps: {
|
|
|
27
27
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
28
28
|
readonly default: undefined;
|
|
29
29
|
};
|
|
30
|
+
labelProps: import("vue").PropType<import("vue").LabelHTMLAttributes>;
|
|
30
31
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Form", {
|
|
32
|
+
blankHeightSmall: string;
|
|
33
|
+
blankHeightMedium: string;
|
|
34
|
+
blankHeightLarge: string;
|
|
31
35
|
lineHeight: string;
|
|
32
36
|
labelTextColor: string;
|
|
33
37
|
asteriskColor: string;
|
|
34
38
|
feedbackTextColorError: string;
|
|
35
39
|
feedbackTextColorWarning: string;
|
|
36
40
|
feedbackTextColor: string;
|
|
37
|
-
blankHeightSmall: string;
|
|
38
|
-
blankHeightMedium: string;
|
|
39
|
-
blankHeightLarge: string;
|
|
40
41
|
feedbackPadding: string;
|
|
41
42
|
feedbackHeightSmall: string;
|
|
42
43
|
feedbackHeightMedium: string;
|
|
@@ -59,15 +60,15 @@ declare const formItemRowProps: {
|
|
|
59
60
|
labelTextAlignHorizontal: string;
|
|
60
61
|
}, any>>;
|
|
61
62
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
63
|
+
blankHeightSmall: string;
|
|
64
|
+
blankHeightMedium: string;
|
|
65
|
+
blankHeightLarge: string;
|
|
62
66
|
lineHeight: string;
|
|
63
67
|
labelTextColor: string;
|
|
64
68
|
asteriskColor: string;
|
|
65
69
|
feedbackTextColorError: string;
|
|
66
70
|
feedbackTextColorWarning: string;
|
|
67
71
|
feedbackTextColor: string;
|
|
68
|
-
blankHeightSmall: string;
|
|
69
|
-
blankHeightMedium: string;
|
|
70
|
-
blankHeightLarge: string;
|
|
71
72
|
feedbackPadding: string;
|
|
72
73
|
feedbackHeightSmall: string;
|
|
73
74
|
feedbackHeightMedium: string;
|
|
@@ -90,15 +91,15 @@ declare const formItemRowProps: {
|
|
|
90
91
|
labelTextAlignHorizontal: string;
|
|
91
92
|
}, any>>>;
|
|
92
93
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
94
|
+
blankHeightSmall: string;
|
|
95
|
+
blankHeightMedium: string;
|
|
96
|
+
blankHeightLarge: string;
|
|
93
97
|
lineHeight: string;
|
|
94
98
|
labelTextColor: string;
|
|
95
99
|
asteriskColor: string;
|
|
96
100
|
feedbackTextColorError: string;
|
|
97
101
|
feedbackTextColorWarning: string;
|
|
98
102
|
feedbackTextColor: string;
|
|
99
|
-
blankHeightSmall: string;
|
|
100
|
-
blankHeightMedium: string;
|
|
101
|
-
blankHeightLarge: string;
|
|
102
103
|
feedbackPadding: string;
|
|
103
104
|
feedbackHeightSmall: string;
|
|
104
105
|
feedbackHeightMedium: string;
|
|
@@ -158,7 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
158
159
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
159
160
|
readonly default: undefined;
|
|
160
161
|
};
|
|
161
|
-
requireMarkPlacement: import("vue").PropType<"left" | "right">;
|
|
162
|
+
requireMarkPlacement: import("vue").PropType<"left" | "right" | "right-hanging">;
|
|
162
163
|
showFeedback: {
|
|
163
164
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
164
165
|
readonly default: undefined;
|
|
@@ -172,16 +173,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
172
173
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
173
174
|
readonly default: undefined;
|
|
174
175
|
};
|
|
176
|
+
labelProps: import("vue").PropType<import("vue").LabelHTMLAttributes>;
|
|
175
177
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Form", {
|
|
178
|
+
blankHeightSmall: string;
|
|
179
|
+
blankHeightMedium: string;
|
|
180
|
+
blankHeightLarge: string;
|
|
176
181
|
lineHeight: string;
|
|
177
182
|
labelTextColor: string;
|
|
178
183
|
asteriskColor: string;
|
|
179
184
|
feedbackTextColorError: string;
|
|
180
185
|
feedbackTextColorWarning: string;
|
|
181
186
|
feedbackTextColor: string;
|
|
182
|
-
blankHeightSmall: string;
|
|
183
|
-
blankHeightMedium: string;
|
|
184
|
-
blankHeightLarge: string;
|
|
185
187
|
feedbackPadding: string;
|
|
186
188
|
feedbackHeightSmall: string;
|
|
187
189
|
feedbackHeightMedium: string;
|
|
@@ -204,15 +206,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
206
|
labelTextAlignHorizontal: string;
|
|
205
207
|
}, any>>;
|
|
206
208
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
209
|
+
blankHeightSmall: string;
|
|
210
|
+
blankHeightMedium: string;
|
|
211
|
+
blankHeightLarge: string;
|
|
207
212
|
lineHeight: string;
|
|
208
213
|
labelTextColor: string;
|
|
209
214
|
asteriskColor: string;
|
|
210
215
|
feedbackTextColorError: string;
|
|
211
216
|
feedbackTextColorWarning: string;
|
|
212
217
|
feedbackTextColor: string;
|
|
213
|
-
blankHeightSmall: string;
|
|
214
|
-
blankHeightMedium: string;
|
|
215
|
-
blankHeightLarge: string;
|
|
216
218
|
feedbackPadding: string;
|
|
217
219
|
feedbackHeightSmall: string;
|
|
218
220
|
feedbackHeightMedium: string;
|
|
@@ -235,15 +237,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
237
|
labelTextAlignHorizontal: string;
|
|
236
238
|
}, any>>>;
|
|
237
239
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
240
|
+
blankHeightSmall: string;
|
|
241
|
+
blankHeightMedium: string;
|
|
242
|
+
blankHeightLarge: string;
|
|
238
243
|
lineHeight: string;
|
|
239
244
|
labelTextColor: string;
|
|
240
245
|
asteriskColor: string;
|
|
241
246
|
feedbackTextColorError: string;
|
|
242
247
|
feedbackTextColorWarning: string;
|
|
243
248
|
feedbackTextColor: string;
|
|
244
|
-
blankHeightSmall: string;
|
|
245
|
-
blankHeightMedium: string;
|
|
246
|
-
blankHeightLarge: string;
|
|
247
249
|
feedbackPadding: string;
|
|
248
250
|
feedbackHeightSmall: string;
|
|
249
251
|
feedbackHeightMedium: string;
|
|
@@ -288,6 +290,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
288
290
|
alignItems: StringConstructor;
|
|
289
291
|
justifyContent: StringConstructor;
|
|
290
292
|
}, {
|
|
293
|
+
formItemColInstRef: import("vue").Ref<{
|
|
294
|
+
validate: import("./interface").FormItemValidate;
|
|
295
|
+
restoreValidation: () => void;
|
|
296
|
+
path?: string | undefined;
|
|
297
|
+
internalValidate: import("./interface").FormItemInternalValidate;
|
|
298
|
+
} | null>;
|
|
291
299
|
validate: import("./interface").FormItemValidate;
|
|
292
300
|
restoreValidation: () => void;
|
|
293
301
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -309,6 +317,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
309
317
|
validationStatus?: unknown;
|
|
310
318
|
feedback?: unknown;
|
|
311
319
|
showLabel?: unknown;
|
|
320
|
+
labelProps?: unknown;
|
|
312
321
|
theme?: unknown;
|
|
313
322
|
themeOverrides?: unknown;
|
|
314
323
|
builtinThemeOverrides?: unknown;
|
|
@@ -335,15 +344,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
335
344
|
justifyContent?: string | undefined;
|
|
336
345
|
path?: string | undefined;
|
|
337
346
|
theme?: import("../../_mixins").Theme<"Form", {
|
|
347
|
+
blankHeightSmall: string;
|
|
348
|
+
blankHeightMedium: string;
|
|
349
|
+
blankHeightLarge: string;
|
|
338
350
|
lineHeight: string;
|
|
339
351
|
labelTextColor: string;
|
|
340
352
|
asteriskColor: string;
|
|
341
353
|
feedbackTextColorError: string;
|
|
342
354
|
feedbackTextColorWarning: string;
|
|
343
355
|
feedbackTextColor: string;
|
|
344
|
-
blankHeightSmall: string;
|
|
345
|
-
blankHeightMedium: string;
|
|
346
|
-
blankHeightLarge: string;
|
|
347
356
|
feedbackPadding: string;
|
|
348
357
|
feedbackHeightSmall: string;
|
|
349
358
|
feedbackHeightMedium: string;
|
|
@@ -366,15 +375,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
375
|
labelTextAlignHorizontal: string;
|
|
367
376
|
}, any> | undefined;
|
|
368
377
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
378
|
+
blankHeightSmall: string;
|
|
379
|
+
blankHeightMedium: string;
|
|
380
|
+
blankHeightLarge: string;
|
|
369
381
|
lineHeight: string;
|
|
370
382
|
labelTextColor: string;
|
|
371
383
|
asteriskColor: string;
|
|
372
384
|
feedbackTextColorError: string;
|
|
373
385
|
feedbackTextColorWarning: string;
|
|
374
386
|
feedbackTextColor: string;
|
|
375
|
-
blankHeightSmall: string;
|
|
376
|
-
blankHeightMedium: string;
|
|
377
|
-
blankHeightLarge: string;
|
|
378
387
|
feedbackPadding: string;
|
|
379
388
|
feedbackHeightSmall: string;
|
|
380
389
|
feedbackHeightMedium: string;
|
|
@@ -397,15 +406,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
397
406
|
labelTextAlignHorizontal: string;
|
|
398
407
|
}, any>> | undefined;
|
|
399
408
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
409
|
+
blankHeightSmall: string;
|
|
410
|
+
blankHeightMedium: string;
|
|
411
|
+
blankHeightLarge: string;
|
|
400
412
|
lineHeight: string;
|
|
401
413
|
labelTextColor: string;
|
|
402
414
|
asteriskColor: string;
|
|
403
415
|
feedbackTextColorError: string;
|
|
404
416
|
feedbackTextColorWarning: string;
|
|
405
417
|
feedbackTextColor: string;
|
|
406
|
-
blankHeightSmall: string;
|
|
407
|
-
blankHeightMedium: string;
|
|
408
|
-
blankHeightLarge: string;
|
|
409
418
|
feedbackPadding: string;
|
|
410
419
|
feedbackHeightSmall: string;
|
|
411
420
|
feedbackHeightMedium: string;
|
|
@@ -432,13 +441,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
432
441
|
labelStyle?: string | import("vue").CSSProperties | undefined;
|
|
433
442
|
labelWidth?: string | number | undefined;
|
|
434
443
|
showRequireMark?: boolean | undefined;
|
|
435
|
-
requireMarkPlacement?: "left" | "right" | undefined;
|
|
444
|
+
requireMarkPlacement?: "left" | "right" | "right-hanging" | undefined;
|
|
436
445
|
showFeedback?: boolean | undefined;
|
|
437
446
|
showLabel?: boolean | undefined;
|
|
438
447
|
rulePath?: string | undefined;
|
|
439
448
|
rule?: import("./interface").FormItemRule | import("./interface").FormItemRule[] | undefined;
|
|
440
449
|
validationStatus?: "error" | "success" | "warning" | undefined;
|
|
441
450
|
feedback?: string | undefined;
|
|
451
|
+
labelProps?: import("vue").LabelHTMLAttributes | undefined;
|
|
442
452
|
}>, {
|
|
443
453
|
push: import("../../legacy-grid/src/interface").Span;
|
|
444
454
|
first: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
2
|
import { ValidateError, RuleItem, ValidateOption } from 'async-validator';
|
|
3
3
|
import { FormSetupProps } from './Form';
|
|
4
4
|
export interface FormRules {
|
|
@@ -32,7 +32,11 @@ export interface FormItemInst {
|
|
|
32
32
|
}
|
|
33
33
|
export declare type FormItemColRef = FormItemInst;
|
|
34
34
|
export declare type FormItemRowRef = FormItemInst;
|
|
35
|
-
export
|
|
35
|
+
export interface FormInjection {
|
|
36
|
+
props: FormSetupProps;
|
|
37
|
+
maxChildLabelWidthRef: Ref<number | undefined>;
|
|
38
|
+
deriveMaxChildLabelWidth: (currentWidth: number) => void;
|
|
39
|
+
}
|
|
36
40
|
export declare const formInjectionKey: InjectionKey<FormInjection>;
|
|
37
41
|
export declare const formItemInstsInjectionKey: InjectionKey<unknown>;
|
|
38
42
|
export declare type LabelAlign = 'left' | 'center' | 'right';
|
|
@@ -13,52 +13,54 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_down_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-down.cssr")); // vars:
|
|
16
|
-
// --line-height
|
|
17
|
-
// --blank-height
|
|
18
|
-
// --feedback-padding
|
|
19
|
-
// --feedback-font-size
|
|
20
|
-
// --label-font-size-left
|
|
21
|
-
// --label-font-size-top
|
|
22
|
-
// --label-height
|
|
23
|
-
// --label-padding
|
|
24
|
-
// --asterisk-color
|
|
25
|
-
// --label-text-color
|
|
26
|
-
// --bezier
|
|
27
|
-
// --feedback-text-color
|
|
28
|
-
// --feedback-text-color-warning
|
|
29
|
-
// --feedback-text-color-error
|
|
30
|
-
// --label-text-align
|
|
31
|
-
// --label-padding
|
|
16
|
+
// --n-line-height
|
|
17
|
+
// --n-blank-height
|
|
18
|
+
// --n-feedback-padding
|
|
19
|
+
// --n-feedback-font-size
|
|
20
|
+
// --n-label-font-size-left
|
|
21
|
+
// --n-label-font-size-top
|
|
22
|
+
// --n-label-height
|
|
23
|
+
// --n-label-padding
|
|
24
|
+
// --n-asterisk-color
|
|
25
|
+
// --n-label-text-color
|
|
26
|
+
// --n-bezier
|
|
27
|
+
// --n-feedback-text-color
|
|
28
|
+
// --n-feedback-text-color-warning
|
|
29
|
+
// --n-feedback-text-color-error
|
|
30
|
+
// --n-label-text-align
|
|
31
|
+
// --n-label-padding
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
exports.default = (0, cssr_1.cB)('form-item', {
|
|
35
35
|
display: 'grid',
|
|
36
|
-
lineHeight: 'var(--line-height)'
|
|
36
|
+
lineHeight: 'var(--n-line-height)'
|
|
37
37
|
}, [(0, cssr_1.cB)('form-item-label', `
|
|
38
38
|
grid-area: label;
|
|
39
39
|
align-items: center;
|
|
40
40
|
line-height: 1.25;
|
|
41
|
-
text-align: var(--label-text-align);
|
|
42
|
-
font-size: var(--label-font-size);
|
|
43
|
-
height: var(--label-height);
|
|
44
|
-
padding: var(--label-padding);
|
|
45
|
-
color: var(--label-text-color);
|
|
46
|
-
transition: color .3s var(--bezier);
|
|
41
|
+
text-align: var(--n-label-text-align);
|
|
42
|
+
font-size: var(--n-label-font-size);
|
|
43
|
+
height: var(--n-label-height);
|
|
44
|
+
padding: var(--n-label-padding);
|
|
45
|
+
color: var(--n-label-text-color);
|
|
46
|
+
transition: color .3s var(--n-bezier);
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
`, [(0, cssr_1.cE)('asterisk', `
|
|
49
|
-
color: var(--asterisk-color);
|
|
50
|
-
transition: color .3s var(--bezier);
|
|
49
|
+
color: var(--n-asterisk-color);
|
|
50
|
+
transition: color .3s var(--n-bezier);
|
|
51
|
+
`), (0, cssr_1.cE)('asterisk-placeholder', `
|
|
52
|
+
visibility: hidden;
|
|
51
53
|
`)]), (0, cssr_1.cB)('form-item-blank', {
|
|
52
54
|
gridArea: 'blank',
|
|
53
|
-
minHeight: 'var(--blank-height)'
|
|
55
|
+
minHeight: 'var(--n-blank-height)'
|
|
54
56
|
}), (0, cssr_1.cM)('left-labelled', `
|
|
55
57
|
grid-template-areas:
|
|
56
58
|
"label blank"
|
|
57
59
|
"label feedback";
|
|
58
60
|
grid-template-columns: auto minmax(0, 1fr);
|
|
59
61
|
`, [(0, cssr_1.cB)('form-item-label', `
|
|
60
|
-
height: var(--blank-height);
|
|
61
|
-
line-height: var(--blank-height);
|
|
62
|
+
height: var(--n-blank-height);
|
|
63
|
+
line-height: var(--n-blank-height);
|
|
62
64
|
box-sizing: border-box;
|
|
63
65
|
white-space: nowrap;
|
|
64
66
|
flex-shrink: 0;
|
|
@@ -68,7 +70,7 @@ exports.default = (0, cssr_1.cB)('form-item', {
|
|
|
68
70
|
"label"
|
|
69
71
|
"blank"
|
|
70
72
|
"feedback";
|
|
71
|
-
grid-template-rows: var(--label-height) 1fr;
|
|
73
|
+
grid-template-rows: var(--n-label-height) 1fr;
|
|
72
74
|
grid-template-columns: minmax(0, 100%);
|
|
73
75
|
`, [(0, cssr_1.cM)('no-label', `
|
|
74
76
|
grid-template-areas:
|
|
@@ -78,7 +80,7 @@ exports.default = (0, cssr_1.cB)('form-item', {
|
|
|
78
80
|
`), (0, cssr_1.cB)('form-item-label', {
|
|
79
81
|
display: 'flex',
|
|
80
82
|
alignItems: 'flex-end',
|
|
81
|
-
justifyContent: 'var(--label-text-align)'
|
|
83
|
+
justifyContent: 'var(--n-label-text-align)'
|
|
82
84
|
})]), (0, cssr_1.cB)('form-item-blank', `
|
|
83
85
|
box-sizing: border-box;
|
|
84
86
|
display: flex;
|
|
@@ -87,18 +89,18 @@ exports.default = (0, cssr_1.cB)('form-item', {
|
|
|
87
89
|
`), (0, cssr_1.cB)('form-item-feedback-wrapper', `
|
|
88
90
|
grid-area: feedback;
|
|
89
91
|
box-sizing: border-box;
|
|
90
|
-
min-height: var(--feedback-height);
|
|
91
|
-
font-size: var(--feedback-font-size);
|
|
92
|
-
padding: var(--feedback-padding);
|
|
92
|
+
min-height: var(--n-feedback-height);
|
|
93
|
+
font-size: var(--n-feedback-font-size);
|
|
94
|
+
padding: var(--n-feedback-padding);
|
|
93
95
|
line-height: 1.25;
|
|
94
96
|
transform-origin: top left;
|
|
95
97
|
`, [(0, cssr_1.cB)('form-item-feedback', {
|
|
96
|
-
transition: 'color .3s var(--bezier)',
|
|
97
|
-
color: 'var(--feedback-text-color)'
|
|
98
|
+
transition: 'color .3s var(--n-bezier)',
|
|
99
|
+
color: 'var(--n-feedback-text-color)'
|
|
98
100
|
}, [(0, cssr_1.cM)('warning', {
|
|
99
|
-
color: 'var(--feedback-text-color-warning)'
|
|
101
|
+
color: 'var(--n-feedback-text-color-warning)'
|
|
100
102
|
}), (0, cssr_1.cM)('error', {
|
|
101
|
-
color: 'var(--feedback-text-color-error)'
|
|
103
|
+
color: 'var(--n-feedback-text-color-error)'
|
|
102
104
|
}), (0, fade_down_cssr_1.default)({
|
|
103
105
|
fromOffset: '-3px',
|
|
104
106
|
enterDuration: '.3s',
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export declare function formItemSize(props: FormItemSetupProps): {
|
|
|
6
6
|
};
|
|
7
7
|
export declare function formItemMisc(props: FormItemSetupProps): {
|
|
8
8
|
validationErrored: import("vue").Ref<boolean>;
|
|
9
|
-
mergedLabelStyle: ComputedRef<(
|
|
9
|
+
mergedLabelStyle: ComputedRef<(import("vue").StyleValue | undefined)[]>;
|
|
10
10
|
mergedLabelPlacement: ComputedRef<import("./interface").LabelPlacement>;
|
|
11
11
|
mergedLabelAlign: ComputedRef<import("./interface").LabelAlign | undefined>;
|
|
12
12
|
mergedShowRequireMark: ComputedRef<boolean | undefined>;
|
|
13
|
-
mergedRequireMarkPlacement: ComputedRef<"left" | "right" |
|
|
13
|
+
mergedRequireMarkPlacement: ComputedRef<"left" | "right" | "right-hanging">;
|
|
14
14
|
mergedValidationStatus: ComputedRef<"error" | "success" | "warning" | undefined>;
|
|
15
15
|
mergedShowFeedback: ComputedRef<boolean>;
|
|
16
16
|
mergedShowLabel: ComputedRef<boolean>;
|
package/lib/form/src/utils.js
CHANGED
|
@@ -11,8 +11,8 @@ function formItemSize(props) {
|
|
|
11
11
|
mergedSize: (0, vue_1.computed)(() => {
|
|
12
12
|
if (props.size !== undefined)
|
|
13
13
|
return props.size;
|
|
14
|
-
if ((NForm === null || NForm === void 0 ? void 0 : NForm.size) !== undefined)
|
|
15
|
-
return NForm.size;
|
|
14
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.size) !== undefined)
|
|
15
|
+
return NForm.props.size;
|
|
16
16
|
return 'medium';
|
|
17
17
|
})
|
|
18
18
|
};
|
|
@@ -25,11 +25,20 @@ function formItemMisc(props) {
|
|
|
25
25
|
if (mergedLabelPlacementRef.value === 'top')
|
|
26
26
|
return;
|
|
27
27
|
const { labelWidth } = props;
|
|
28
|
-
if (labelWidth !== undefined) {
|
|
28
|
+
if (labelWidth !== undefined && labelWidth !== 'auto') {
|
|
29
29
|
return (0, _utils_1.formatLength)(labelWidth);
|
|
30
30
|
}
|
|
31
|
-
if ((NForm === null || NForm === void 0 ? void 0 : NForm.labelWidth)
|
|
32
|
-
|
|
31
|
+
if (labelWidth === 'auto' || (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) === 'auto') {
|
|
32
|
+
const autoComputedWidth = NForm === null || NForm === void 0 ? void 0 : NForm.maxChildLabelWidthRef.value;
|
|
33
|
+
if (autoComputedWidth !== undefined) {
|
|
34
|
+
return (0, _utils_1.formatLength)(autoComputedWidth);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) !== undefined) {
|
|
41
|
+
return (0, _utils_1.formatLength)(NForm.props.labelWidth);
|
|
33
42
|
}
|
|
34
43
|
return undefined;
|
|
35
44
|
});
|
|
@@ -37,37 +46,39 @@ function formItemMisc(props) {
|
|
|
37
46
|
const { labelPlacement } = props;
|
|
38
47
|
if (labelPlacement !== undefined)
|
|
39
48
|
return labelPlacement;
|
|
40
|
-
if (NForm === null || NForm === void 0 ? void 0 : NForm.labelPlacement)
|
|
41
|
-
return NForm.labelPlacement;
|
|
49
|
+
if (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelPlacement)
|
|
50
|
+
return NForm.props.labelPlacement;
|
|
42
51
|
return 'top';
|
|
43
52
|
});
|
|
44
53
|
const mergedLabelAlignRef = (0, vue_1.computed)(() => {
|
|
45
54
|
const { labelAlign } = props;
|
|
46
55
|
if (labelAlign)
|
|
47
56
|
return labelAlign;
|
|
48
|
-
if (NForm === null || NForm === void 0 ? void 0 : NForm.labelAlign)
|
|
49
|
-
return NForm.labelAlign;
|
|
57
|
+
if (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelAlign)
|
|
58
|
+
return NForm.props.labelAlign;
|
|
50
59
|
return undefined;
|
|
51
60
|
});
|
|
52
61
|
const mergedLabelStyleRef = (0, vue_1.computed)(() => {
|
|
62
|
+
var _a;
|
|
53
63
|
return [
|
|
64
|
+
(_a = props.labelProps) === null || _a === void 0 ? void 0 : _a.style,
|
|
65
|
+
props.labelStyle,
|
|
54
66
|
{
|
|
55
67
|
width: mergedLabelWidthRef.value
|
|
56
|
-
}
|
|
57
|
-
props.labelStyle
|
|
68
|
+
}
|
|
58
69
|
];
|
|
59
70
|
});
|
|
60
71
|
const mergedShowRequireMarkRef = (0, vue_1.computed)(() => {
|
|
61
72
|
const { showRequireMark } = props;
|
|
62
73
|
if (showRequireMark !== undefined)
|
|
63
74
|
return showRequireMark;
|
|
64
|
-
return NForm === null || NForm === void 0 ? void 0 : NForm.showRequireMark;
|
|
75
|
+
return NForm === null || NForm === void 0 ? void 0 : NForm.props.showRequireMark;
|
|
65
76
|
});
|
|
66
77
|
const mergedRequireMarkPlacementRef = (0, vue_1.computed)(() => {
|
|
67
78
|
const { requireMarkPlacement } = props;
|
|
68
79
|
if (requireMarkPlacement !== undefined)
|
|
69
80
|
return requireMarkPlacement;
|
|
70
|
-
return NForm === null || NForm === void 0 ? void 0 : NForm.requireMarkPlacement;
|
|
81
|
+
return (NForm === null || NForm === void 0 ? void 0 : NForm.props.requireMarkPlacement) || 'right';
|
|
71
82
|
});
|
|
72
83
|
const validationErroredRef = (0, vue_1.ref)(false);
|
|
73
84
|
const mergedValidationStatusRef = (0, vue_1.computed)(() => {
|
|
@@ -82,16 +93,16 @@ function formItemMisc(props) {
|
|
|
82
93
|
const { showFeedback } = props;
|
|
83
94
|
if (showFeedback !== undefined)
|
|
84
95
|
return showFeedback;
|
|
85
|
-
if ((NForm === null || NForm === void 0 ? void 0 : NForm.showFeedback) !== undefined)
|
|
86
|
-
return NForm.showFeedback;
|
|
96
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.showFeedback) !== undefined)
|
|
97
|
+
return NForm.props.showFeedback;
|
|
87
98
|
return true;
|
|
88
99
|
});
|
|
89
100
|
const mergedShowLabelRef = (0, vue_1.computed)(() => {
|
|
90
101
|
const { showLabel } = props;
|
|
91
102
|
if (showLabel !== undefined)
|
|
92
103
|
return showLabel;
|
|
93
|
-
if ((NForm === null || NForm === void 0 ? void 0 : NForm.showLabel) !== undefined)
|
|
94
|
-
return NForm.showLabel;
|
|
104
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.showLabel) !== undefined)
|
|
105
|
+
return NForm.props.showLabel;
|
|
95
106
|
return true;
|
|
96
107
|
});
|
|
97
108
|
return {
|
|
@@ -129,7 +140,7 @@ function formItemRule(props) {
|
|
|
129
140
|
rules.push(rule);
|
|
130
141
|
}
|
|
131
142
|
if (NForm) {
|
|
132
|
-
const { rules: formRules } = NForm;
|
|
143
|
+
const { rules: formRules } = NForm.props;
|
|
133
144
|
const { value: rulePath } = compatibleRulePathRef;
|
|
134
145
|
if (formRules !== undefined && rulePath !== undefined) {
|
|
135
146
|
const formRule = (0, lodash_1.get)(formRules, rulePath);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
blankHeightSmall: '28px',
|
|
5
|
-
blankHeightMedium: '34px',
|
|
6
|
-
blankHeightLarge: '40px',
|
|
7
4
|
feedbackPadding: '4px 0 0 2px',
|
|
8
5
|
feedbackHeightSmall: '24px',
|
|
9
6
|
feedbackHeightMedium: '24px',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import type { Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
blankHeightSmall: string;
|
|
5
|
+
blankHeightMedium: string;
|
|
6
|
+
blankHeightLarge: string;
|
|
4
7
|
lineHeight: string;
|
|
5
8
|
labelTextColor: string;
|
|
6
9
|
asteriskColor: string;
|
|
7
10
|
feedbackTextColorError: string;
|
|
8
11
|
feedbackTextColorWarning: string;
|
|
9
12
|
feedbackTextColor: string;
|
|
10
|
-
blankHeightSmall: string;
|
|
11
|
-
blankHeightMedium: string;
|
|
12
|
-
blankHeightLarge: string;
|
|
13
13
|
feedbackPadding: string;
|
|
14
14
|
feedbackHeightSmall: string;
|
|
15
15
|
feedbackHeightMedium: string;
|
package/lib/form/styles/light.js
CHANGED
|
@@ -7,8 +7,8 @@ exports.self = void 0;
|
|
|
7
7
|
const common_1 = require("../../_styles/common");
|
|
8
8
|
const _common_1 = __importDefault(require("./_common"));
|
|
9
9
|
const self = (vars) => {
|
|
10
|
-
const { textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
|
|
10
|
+
const { heightSmall, heightMedium, heightLarge, textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
|
|
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
12
|
};
|
|
13
13
|
exports.self = self;
|
|
14
14
|
const formLight = {
|
|
@@ -115,11 +115,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
115
|
styleFontSize: import("vue").ComputedRef<string | number | undefined>;
|
|
116
116
|
styleBgImage: import("vue").ComputedRef<string | undefined>;
|
|
117
117
|
cssVars: import("vue").ComputedRef<{
|
|
118
|
-
'--bezier': string;
|
|
119
|
-
'--rotate': string;
|
|
120
|
-
'--color-start': string;
|
|
121
|
-
'--color-end': string;
|
|
122
|
-
'--font-weight': string;
|
|
118
|
+
'--n-bezier': string;
|
|
119
|
+
'--n-rotate': string;
|
|
120
|
+
'--n-color-start': string;
|
|
121
|
+
'--n-color-end': string;
|
|
122
|
+
'--n-font-weight': string;
|
|
123
123
|
}>;
|
|
124
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
125
125
|
readonly size?: unknown;
|
|
@@ -53,11 +53,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
53
53
|
const { value: type } = compatibleTypeRef;
|
|
54
54
|
const { common: { cubicBezierEaseInOut }, self: { rotate, [(0, _utils_1.createKey)('colorStart', type)]: colorStart, [(0, _utils_1.createKey)('colorEnd', type)]: colorEnd, fontWeight } } = themeRef.value;
|
|
55
55
|
return {
|
|
56
|
-
'--bezier': cubicBezierEaseInOut,
|
|
57
|
-
'--rotate': rotate,
|
|
58
|
-
'--color-start': colorStart,
|
|
59
|
-
'--color-end': colorEnd,
|
|
60
|
-
'--font-weight': fontWeight
|
|
56
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
57
|
+
'--n-rotate': rotate,
|
|
58
|
+
'--n-color-start': colorStart,
|
|
59
|
+
'--n-color-end': colorEnd,
|
|
60
|
+
'--n-font-weight': fontWeight
|
|
61
61
|
};
|
|
62
62
|
})
|
|
63
63
|
};
|
|
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
8
|
-
// --font-weight
|
|
9
|
-
// --rotate
|
|
10
|
-
// --bezier
|
|
11
|
-
// --color-start
|
|
12
|
-
// --color-end
|
|
8
|
+
// --n-font-weight
|
|
9
|
+
// --n-rotate
|
|
10
|
+
// --n-bezier
|
|
11
|
+
// --n-color-start
|
|
12
|
+
// --n-color-end
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
exports.default = (0, cssr_1.cB)('gradient-text', `
|
|
16
16
|
display: inline-block;
|
|
17
|
-
font-weight: var(--font-weight);
|
|
17
|
+
font-weight: var(--n-font-weight);
|
|
18
18
|
-webkit-background-clip: text;
|
|
19
19
|
background-clip: text;
|
|
20
20
|
color: #0000;
|
|
21
21
|
white-space: nowrap;
|
|
22
|
-
background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%);
|
|
22
|
+
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
|
|
23
23
|
transition:
|
|
24
|
-
--color-start .3s var(--bezier),
|
|
25
|
-
--color-end .3s var(--bezier);
|
|
24
|
+
--n-color-start .3s var(--n-bezier),
|
|
25
|
+
--n-color-end .3s var(--n-bezier);
|
|
26
26
|
`);
|
package/lib/icon/src/Icon.d.ts
CHANGED
|
@@ -35,13 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
color: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
cssVars: import("vue").ComputedRef<{
|
|
38
|
-
'--bezier': string;
|
|
39
|
-
'--color': string;
|
|
40
|
-
'--opacity': string;
|
|
38
|
+
'--n-bezier': string;
|
|
39
|
+
'--n-color': string;
|
|
40
|
+
'--n-opacity': string;
|
|
41
41
|
} | {
|
|
42
|
-
'--bezier': string;
|
|
43
|
-
'--color'?: undefined;
|
|
44
|
-
'--opacity'?: undefined;
|
|
42
|
+
'--n-bezier': string;
|
|
43
|
+
'--n-color'?: undefined;
|
|
44
|
+
'--n-opacity'?: undefined;
|
|
45
45
|
}>;
|
|
46
46
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
47
47
|
depth?: unknown;
|