antdv-next 1.8.2 → 1.8.4

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.
Files changed (137) hide show
  1. package/dist/_util/hooks/index.d.ts +2 -1
  2. package/dist/_util/hooks/index.js +2 -1
  3. package/dist/_util/hooks/useClosable.d.ts +3 -3
  4. package/dist/_util/hooks/useClosable.js +9 -9
  5. package/dist/_util/hooks/useScopeId.d.ts +7 -0
  6. package/dist/_util/hooks/useScopeId.js +15 -0
  7. package/dist/_util/scrollTo.js +1 -1
  8. package/dist/_util/statusUtils.js +1 -1
  9. package/dist/_util/vueNode.d.ts +2 -6
  10. package/dist/affix/index.js +2 -7
  11. package/dist/anchor/Anchor.js +4 -2
  12. package/dist/antd-with-locales.esm.js +17314 -16799
  13. package/dist/antd-with-locales.js +81 -81
  14. package/dist/antd.css +1 -1
  15. package/dist/antd.esm.js +14978 -14467
  16. package/dist/antd.js +81 -81
  17. package/dist/badge/SingleNumber.js +11 -2
  18. package/dist/badge/index.d.ts +4 -1
  19. package/dist/badge/index.js +4 -4
  20. package/dist/button/buttonHelper.d.ts +1 -1
  21. package/dist/button/style/index.js +8 -2
  22. package/dist/calendar/generateCalendar.d.ts +5 -4
  23. package/dist/calendar/generateCalendar.js +4 -7
  24. package/dist/card/Card.d.ts +4 -1
  25. package/dist/card/Card.js +24 -18
  26. package/dist/card/index.d.ts +2 -2
  27. package/dist/cascader/index.d.ts +5 -2
  28. package/dist/cascader/index.js +10 -7
  29. package/dist/checkbox/Checkbox.js +3 -0
  30. package/dist/checkbox/Group.d.ts +2 -1
  31. package/dist/checkbox/Group.js +3 -7
  32. package/dist/color-picker/ColorPicker.js +4 -0
  33. package/dist/color-picker/ColorPickerPanel.js +4 -0
  34. package/dist/color-picker/components/ColorSlider.js +12 -4
  35. package/dist/color-picker/components/PanelPicker/GradientColorBar.js +2 -0
  36. package/dist/components.d.ts +13 -9
  37. package/dist/components.js +3 -3
  38. package/dist/config-provider/context.d.ts +3 -3
  39. package/dist/config-provider/context.js +3 -3
  40. package/dist/date-picker/generatePicker/generateRangePicker.js +4 -5
  41. package/dist/date-picker/generatePicker/generateSinglePicker.js +4 -6
  42. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  43. package/dist/descriptions/hooks/useRow.js +1 -1
  44. package/dist/float-button/FloatButtonGroup.js +3 -1
  45. package/dist/float-button/style/button.js +2 -2
  46. package/dist/form/Form.d.ts +17 -44
  47. package/dist/form/Form.js +54 -5
  48. package/dist/form/FormItem/ItemHolder.js +1 -1
  49. package/dist/form/FormItem/index.d.ts +3 -3
  50. package/dist/form/FormItem/index.js +4 -0
  51. package/dist/form/context.d.ts +3 -3
  52. package/dist/form/hooks/useForm.d.ts +4 -5
  53. package/dist/form/index.d.ts +29 -3
  54. package/dist/form/index.js +6 -6
  55. package/dist/form/types.d.ts +15 -7
  56. package/dist/image/hooks/usePreviewConfig.d.ts +6 -6
  57. package/dist/image/index.d.ts +5 -5
  58. package/dist/index.d.ts +15 -8
  59. package/dist/index.js +2 -2
  60. package/dist/input/Group.d.ts +3 -2
  61. package/dist/input/Group.js +23 -19
  62. package/dist/input/Input.d.ts +8 -1
  63. package/dist/input/Input.js +4 -0
  64. package/dist/input/OTP/OTPInput.js +4 -0
  65. package/dist/input/Password.js +4 -0
  66. package/dist/input/Search.js +4 -0
  67. package/dist/input/TextArea.d.ts +2 -0
  68. package/dist/input/TextArea.js +8 -0
  69. package/dist/input/index.d.ts +2 -2
  70. package/dist/input-number/style/index.js +3 -2
  71. package/dist/layout/layout.js +2 -3
  72. package/dist/listy/index.js +4 -3
  73. package/dist/locale/ko_KR.js +25 -23
  74. package/dist/locale/pt_BR.js +9 -7
  75. package/dist/mentions/index.js +10 -1
  76. package/dist/menu/MenuItem.js +1 -1
  77. package/dist/menu/index.d.ts +2 -1
  78. package/dist/menu/index.js +29 -5
  79. package/dist/menu/menu.js +41 -15
  80. package/dist/message/index.js +11 -9
  81. package/dist/modal/confirm.js +2 -3
  82. package/dist/modal/index.d.ts +2 -2
  83. package/dist/modal/interface.d.ts +1 -1
  84. package/dist/modal/useModal/index.js +9 -4
  85. package/dist/notification/index.js +3 -7
  86. package/dist/package.js +1 -1
  87. package/dist/package.json.d.ts +1 -0
  88. package/dist/pagination/Pagination.js +3 -1
  89. package/dist/radio/group.d.ts +1 -0
  90. package/dist/radio/group.js +2 -5
  91. package/dist/radio/interface.d.ts +1 -1
  92. package/dist/segmented/style/index.js +3 -2
  93. package/dist/select/index.d.ts +1 -0
  94. package/dist/select/index.js +3 -7
  95. package/dist/select/useIcons.d.ts +3 -1
  96. package/dist/select/useIcons.js +5 -2
  97. package/dist/skeleton/style/index.js +9 -13
  98. package/dist/slider/SliderTooltip.js +0 -1
  99. package/dist/slider/index.d.ts +2 -0
  100. package/dist/slider/index.js +4 -0
  101. package/dist/splitter/Splitter.d.ts +2 -3
  102. package/dist/splitter/Splitter.js +18 -34
  103. package/dist/splitter/interface.d.ts +17 -8
  104. package/dist/statistic/Timer.d.ts +2 -2
  105. package/dist/steps/index.js +2 -1
  106. package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
  107. package/dist/table/hooks/usePagination.d.ts +1 -2
  108. package/dist/table/hooks/usePagination.js +1 -3
  109. package/dist/table/hooks/useSorter.js +4 -8
  110. package/dist/table/style/index.js +1 -0
  111. package/dist/table/style/size.js +1 -0
  112. package/dist/tabs/style/index.js +5 -1
  113. package/dist/tag/hooks/useColor.d.ts +1 -1
  114. package/dist/theme/themes/dark/colors.d.ts +2 -1
  115. package/dist/theme/themes/dark/colors.js +19 -3
  116. package/dist/theme/themes/dark/index.js +2 -3
  117. package/dist/tour/index.js +4 -1
  118. package/dist/tour/style/index.js +6 -6
  119. package/dist/transfer/ListItem.js +1 -0
  120. package/dist/transfer/Section.js +1 -0
  121. package/dist/transfer/hooks/useSelection.js +2 -1
  122. package/dist/tree/DirectoryTree.js +11 -6
  123. package/dist/tree/utils/dictUtil.js +5 -8
  124. package/dist/typography/Base/EllipsisTooltip.js +5 -1
  125. package/dist/typography/Base/index.js +11 -8
  126. package/dist/typography/Base/util.js +2 -1
  127. package/dist/upload/Dragger.js +0 -8
  128. package/dist/upload/Upload.d.ts +2 -0
  129. package/dist/upload/Upload.js +23 -22
  130. package/dist/upload/UploadList/ListItem.js +4 -0
  131. package/dist/upload/UploadList/index.js +6 -1
  132. package/dist/upload/interface.d.ts +4 -2
  133. package/dist/version/token.json +1 -1
  134. package/dist/watermark/utils.js +1 -1
  135. package/package.json +44 -43
  136. package/web-tags.json +22 -14
  137. package/web-types.json +64 -31
@@ -4,14 +4,14 @@ import Row, { RowProps } from "./grid/row.js";
4
4
  import "./grid/index.js";
5
5
  import UniqueProvider from "./tooltip/UniqueProvider/index.js";
6
6
  import _default$17, { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots } from "./tooltip/index.js";
7
- import { Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
8
- import InternalForm, { FormEmits, FormInstance, FormProps, FormSlots } from "./form/Form.js";
7
+ import { FormInstance, FormValues, Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
8
+ import { FormEmits, FormProps, FormSlots } from "./form/Form.js";
9
9
  import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from "./form/FormItem/index.js";
10
10
  import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
11
11
  import _default$16, { TimePickerEmits, TimePickerLocale, TimePickerProps, TimePickerSlots, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerProps, TimeRangePickerSlots } from "./time-picker/index.js";
12
12
  import _default$7, { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps } from "./date-picker/index.js";
13
13
  import _default$8, { EmptyProps, EmptyRef, EmptySlots } from "./empty/index.js";
14
- import { ModalEmits, ModalSlots } from "./modal/interface.js";
14
+ import { ModalEmits, ModalFuncProps, ModalLocale, ModalSlots } from "./modal/interface.js";
15
15
  import Select, { SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
16
16
  import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
17
17
  import Pagination from "./pagination/Pagination.js";
@@ -24,6 +24,7 @@ import InternalCheckbox, { CheckboxEmits, CheckboxProps, CheckboxSlots } from ".
24
24
  import CheckboxGroup, { CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
25
25
  import "./checkbox/index.js";
26
26
  import { MenuItemProps } from "./menu/MenuItem.js";
27
+ import { MenuTheme } from "./menu/MenuContext.js";
27
28
  import { MenuEmits, MenuSlots } from "./menu/menu.js";
28
29
  import MenuItemGroup, { MenuItemGroupProps } from "./menu/MenuItemGroup.js";
29
30
  import SubMenu, { SubMenuProps } from "./menu/SubMenu.js";
@@ -56,7 +57,7 @@ import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.j
56
57
  import "./anchor/index.js";
57
58
  import AutoComplete, { AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
58
59
  import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
59
- import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
60
+ import Badge, { BadgeProps, BadgeRef, BadgeRibbon, BadgeSlots } from "./badge/index.js";
60
61
  import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
61
62
  import _default$3 from "./breadcrumb/BreadcrumbSeparator.js";
62
63
  import { BreadcrumbEmits, BreadcrumbProps, BreadcrumbRef, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
@@ -64,7 +65,7 @@ import { CalendarMode, CalendarProps, CalendarRef } from "./calendar/generateCal
64
65
  import _default$4 from "./calendar/index.js";
65
66
  import TabPane, { TabPaneProps } from "./tabs/TabPane.js";
66
67
  import Tabs, { TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
67
- import { CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
68
+ import { CardEmits, CardProps, CardRef, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
68
69
  import CardMeta, { CardMetaProps, CardMetaRef } from "./card/CardMeta.js";
69
70
  import CascaderPanel, { CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots } from "./cascader/Panel.js";
70
71
  import Cascader, { CascaderEmits, CascaderProps, CascaderSlots } from "./cascader/index.js";
@@ -95,6 +96,7 @@ import InternalTextArea, { InputTextAreaRef, TextAreaProps, TextAreaRef } from "
95
96
  import { ListyClassNames, ListyProps, ListyRef, ListyScrollToConfig, ListyStyles } from "./listy/interface.js";
96
97
  import Listy from "./listy/index.js";
97
98
  import { MasonryEmits, MasonryProps, MasonryRef, MasonrySlots } from "./masonry/Masonry.js";
99
+ import { ArgsProps as ArgsProps$1 } from "./notification/interface.js";
98
100
  import useNotification from "./notification/useNotification.js";
99
101
  import staticMethods$1 from "./notification/index.js";
100
102
  import { QRCodeEmits } from "./qrcode/interface.js";
@@ -132,6 +134,7 @@ import { BlockProps } from "./typography/interface.js";
132
134
  import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./button/buttonHelper.js";
133
135
  import Button, { ButtonEmits, ButtonProps, ButtonSemanticName, ButtonSlots, LegacyButtonType } from "./button/Button.js";
134
136
  import "./button/index.js";
137
+ import { ArgsProps } from "./message/interface.js";
135
138
  import useModal from "./modal/useModal/index.js";
136
139
  import { AppProps } from "./app/App.js";
137
140
  import _default from "./app/index.js";
@@ -139,17 +142,18 @@ import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
139
142
  import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGroup.js";
140
143
  import Avatar from "./avatar/index.js";
141
144
  import { BorderBeamColor, BorderBeamGradient } from "./border-beam/util.js";
142
- import BorderBeam, { BorderBeamProps } from "./border-beam/BorderBeam.js";
145
+ import BorderBeam, { BorderBeamItem, BorderBeamProps } from "./border-beam/BorderBeam.js";
143
146
  import "./border-beam/index.js";
144
147
  import _default$1 from "./breadcrumb/index.js";
145
148
  import CardGrid, { CardGridProps, CardGridRef } from "./card/CardGrid.js";
146
149
  import _default$5 from "./card/index.js";
147
150
  import Carousel, { CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
148
151
  import { FormHookInstance, useForm, useFormInstance } from "./form/hooks/useForm.js";
149
- import "./form/index.js";
152
+ import Form, { FormConstructor } from "./form/index.js";
150
153
  import { InputGroupProps } from "./input/Group.js";
151
154
  import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
152
155
  import Layout, { BasicProps } from "./layout/layout.js";
156
+ import { SiderProps } from "./layout/Sider.js";
153
157
  import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
154
158
  import _default$9 from "./masonry/index.js";
155
159
  import Mentions, { MentionPlacement, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
@@ -167,5 +171,5 @@ import Typography, { TypographyLink, TypographyParagraph, TypographyText, Typogr
167
171
  import { DraggerProps } from "./upload/Dragger.js";
168
172
  import { UploadRef } from "./upload/Upload.js";
169
173
  import Upload, { UploadDragger, UploadProps } from "./upload/index.js";
170
- import Watermark, { WatermarkEmits, WatermarkProps, WatermarkRef, WatermarkSlots } from "./watermark/index.js";
171
- export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkEmits, type WatermarkProps, type WatermarkRef, type WatermarkSlots, type WeekPickerProps, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
174
+ import Watermark, { WatermarkContent, WatermarkEmits, WatermarkFont, WatermarkProps, WatermarkRef, WatermarkSlots, WatermarkText } from "./watermark/index.js";
175
+ export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, type BadgeRef, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamItem, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardRef, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, Form, type FormConstructor, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type FormValues, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, type MenuTheme, type ArgsProps as MessageArgsProps, _default$11 as Modal, type ModalEmits, type ModalFuncProps, type ModalLocale, type ModalProps, type ModalSlots, type MonthPickerProps, type ArgsProps$1 as NotificationArgsProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SiderProps, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkContent, type WatermarkEmits, type WatermarkFont, type WatermarkProps, type WatermarkRef, type WatermarkSlots, type WatermarkText, type WeekPickerProps, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
@@ -68,7 +68,7 @@ import BackTopWithInstall from "./float-button/BackTop.js";
68
68
  import FloatButtonGroup from "./float-button/FloatButtonGroup.js";
69
69
  import float_button_default from "./float-button/index.js";
70
70
  import InternalFormItem from "./form/FormItem/index.js";
71
- import form_default from "./form/index.js";
71
+ import Form from "./form/index.js";
72
72
  import Image, { ImagePreviewGroup } from "./image/index.js";
73
73
  import InternalTextArea from "./input/TextArea.js";
74
74
  import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
@@ -153,7 +153,7 @@ var components_exports = /* @__PURE__ */ __exportAll({
153
153
  Flex: () => Flex,
154
154
  FloatButton: () => float_button_default,
155
155
  FloatButtonGroup: () => FloatButtonGroup,
156
- Form: () => form_default,
156
+ Form: () => Form,
157
157
  FormItem: () => InternalFormItem,
158
158
  Image: () => Image,
159
159
  ImagePreviewGroup: () => ImagePreviewGroup,
@@ -250,4 +250,4 @@ var components_exports = /* @__PURE__ */ __exportAll({
250
250
  useTree: () => useTree
251
251
  });
252
252
  //#endregion
253
- export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, form_default as Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, components_exports, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
253
+ export { Affix, alert_default as Alert, anchor_default as Anchor, App, AutoComplete, Option as AutoCompleteOption, Avatar, AvatarGroup, BackTopWithInstall as BackTop, Badge, BadgeRibbon, border_beam_default as BorderBeam, breadcrumb_default as Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, button_default as Button, Calendar, card_default as Card, CardGrid, CardMeta, Carousel, Cascader, CascaderPanel, CheckableTag, CheckableTagGroup, checkbox_default as Checkbox, CheckboxGroup, Col, collapse_default as Collapse, CollapsePanel, color_picker_default as ColorPicker, ConfigProvider, DateMonthPicker, DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, DirectoryTree, Divider, Drawer, Dropdown, Empty, Flex, float_button_default as FloatButton, FloatButtonGroup, Form, InternalFormItem as FormItem, Image, ImagePreviewGroup, CompoundedInput as Input, InputGroup, InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, Listy, masonry_default as Masonry, Mentions, Option$1 as MentionsOption, Menu, MenuDivider, MenuItem, MenuItemGroup, Modal, pagination_default as Pagination, Popconfirm, Popover, Progress, QRCode, radio_default as Radio, RadioButton, RadioGroup, Rate, Result, Row, Segmented, Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, Slider, Space, SpaceAddon, SpaceCompact, Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, Steps, SubMenu, Switch, TabPane, InternalTable as Table, Column as TableColumn, ColumnGroup as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, Tag, InternalTextArea as TextArea, TimePicker, TimeRangePicker, timeline_default as Timeline, TimelineItem, InternalTooltip as Tooltip, Tour, InternalTransfer as Transfer, Tree, TreeSelect, Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider, Upload, UploadDragger, Watermark, components_exports, staticMethods as message, staticMethods$1 as notification, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useTree };
@@ -490,7 +490,7 @@ declare function useBaseConfig<K extends string>(suffixCls?: K, props?: Componen
490
490
  getPrefixCls: (suffixCls?: string, prefixCls?: string) => string;
491
491
  prefixCls: Readonly<Ref<string, string>>;
492
492
  direction: Readonly<Ref<DirectionType, DirectionType>>;
493
- getPopupContainer: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
493
+ getPopupContainer: NonNullable<ConfigConsumerProps["getPopupContainer"]>;
494
494
  };
495
495
  /**
496
496
  * Get ConfigProvider configured component props.
@@ -508,9 +508,9 @@ declare function useComponentBaseConfig<T extends keyof ConfigComponentProps, K
508
508
  direction: Readonly<Ref<DirectionType, DirectionType>>;
509
509
  prefixCls: Readonly<Ref<string, string>>;
510
510
  rootPrefixCls: Readonly<Ref<string, string>>;
511
- getPopupContainer: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
511
+ getPopupContainer: NonNullable<ConfigConsumerProps["getPopupContainer"]>;
512
512
  getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
513
- getTargetContainer: (() => HTMLElement) | undefined;
513
+ getTargetContainer: NonNullable<ConfigConsumerProps["getTargetContainer"]>;
514
514
  virtual: Readonly<Ref<boolean | undefined, boolean | undefined>>;
515
515
  renderEmpty: Readonly<Ref<RenderEmptyHandler | undefined, RenderEmptyHandler | undefined>>;
516
516
  popupMatchSelectWidth: Readonly<Ref<boolean | undefined, boolean | undefined>>;
@@ -34,7 +34,7 @@ function useBaseConfig(suffixCls, props) {
34
34
  getPrefixCls: (suffixCls, prefixCls) => config.value?.getPrefixCls(suffixCls, prefixCls),
35
35
  prefixCls: toRef(() => config.value?.getPrefixCls(suffixCls, props?.prefixCls)),
36
36
  direction: toRef(() => config.value?.direction),
37
- getPopupContainer: config?.value.getPopupContainer
37
+ getPopupContainer: ((...args) => config.value?.getPopupContainer?.(...args))
38
38
  };
39
39
  }
40
40
  /**
@@ -83,9 +83,9 @@ function useComponentBaseConfig(propName, props, keys, suffixCls) {
83
83
  direction: toRef(() => context.value.direction),
84
84
  prefixCls: toRef(() => context.value?.getPrefixCls(suffixCls ?? propName, props?.prefixCls)),
85
85
  rootPrefixCls: toRef(() => context.value?.getPrefixCls()),
86
- getPopupContainer: context.value.getPopupContainer,
86
+ getPopupContainer: ((...args) => context.value?.getPopupContainer?.(...args)),
87
87
  getPrefixCls: context.value.getPrefixCls,
88
- getTargetContainer: context.value.getTargetContainer,
88
+ getTargetContainer: (() => context.value?.getTargetContainer?.()),
89
89
  virtual: toRef(() => context.value.virtual),
90
90
  renderEmpty: toRef(() => context.value.renderEmpty),
91
91
  popupMatchSelectWidth: toRef(() => context.value.popupMatchSelectWidth),
@@ -1,4 +1,5 @@
1
1
  import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
2
+ import { useScopeIdOnElement } from "../../_util/hooks/useScopeId.js";
2
3
  import { useComponentBaseConfig } from "../../config-provider/context.js";
3
4
  import { devUseWarning, isDev } from "../../_util/warning.js";
4
5
  import { useZIndex } from "../../_util/hooks/useZIndex.js";
@@ -22,7 +23,7 @@ import { TIME } from "./constant.js";
22
23
  import useComponents from "./useComponents.js";
23
24
  import useSuffix from "./useSuffix.js";
24
25
  import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
25
- import { clsx } from "@v-c/util";
26
+ import { clsx, merge } from "@v-c/util";
26
27
  import { SwapRightOutlined } from "@antdv-next/icons";
27
28
  import { getTransitionName } from "@v-c/util/dist/utils/transition";
28
29
  import { RangePicker } from "@v-c/picker";
@@ -53,15 +54,13 @@ function generateRangePicker(generateConfig) {
53
54
  const popupStyle = computed(() => props.popupStyle);
54
55
  const [mergedClassNames, mergedStyles] = useMergedPickerSemantic(pickerType.value, classes, styles, popupClassName, popupStyle, mergedProps, computed(() => contextStyle?.value ?? null));
55
56
  const innerRef = shallowRef();
57
+ useScopeIdOnElement(() => innerRef.value?.nativeElement);
56
58
  const [variant, enableVariantCls] = useVariants("rangePicker", customVariant, bordered);
57
59
  const rootCls = useCSSVarCls(prefixCls);
58
60
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
59
61
  const mergedRootClassName = computed(() => clsx(hashId.value, cssVarCls.value, rootCls.value, rootClass.value));
60
62
  const [contextLocale] = useLocale("DatePicker", locale);
61
- const locale$1 = computed(() => ({
62
- ...contextLocale?.value,
63
- ...props.locale ?? {}
64
- }));
63
+ const locale$1 = computed(() => merge(contextLocale?.value, props.locale || {}));
65
64
  const [zIndex] = useZIndex("DatePicker", computed(() => mergedStyles.value?.popup?.root?.zIndex));
66
65
  const triggerChange = (dates, dateStrings) => {
67
66
  emit("update:value", dates);
@@ -1,4 +1,5 @@
1
1
  import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
2
+ import { useScopeIdOnElement } from "../../_util/hooks/useScopeId.js";
2
3
  import { useComponentBaseConfig } from "../../config-provider/context.js";
3
4
  import { devUseWarning, isDev } from "../../_util/warning.js";
4
5
  import { useZIndex } from "../../_util/hooks/useZIndex.js";
@@ -22,7 +23,7 @@ import { MONTH, MONTHPICKER, QUARTER, QUARTERPICKER, TIME, TIMEPICKER, WEEK, WEE
22
23
  import useComponents from "./useComponents.js";
23
24
  import useSuffix from "./useSuffix.js";
24
25
  import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
25
- import { clsx } from "@v-c/util";
26
+ import { clsx, merge } from "@v-c/util";
26
27
  import { getTransitionName } from "@v-c/util/dist/utils/transition";
27
28
  import Picker from "@v-c/picker";
28
29
  //#region src/date-picker/generatePicker/generateSinglePicker.tsx
@@ -53,6 +54,7 @@ function generatePicker(generateConfig) {
53
54
  const popupStyle = computed(() => props.popupStyle);
54
55
  const [mergedClassNames, mergedStyles] = useMergedPickerSemantic(pickerType, classes, styles, popupClassName, popupStyle, mergedProps, contextStyle);
55
56
  const innerRef = shallowRef();
57
+ useScopeIdOnElement(() => innerRef.value?.nativeElement);
56
58
  const [variant, enableVariantCls] = useVariants("datePicker", customVariant, bordered);
57
59
  const rootCls = useCSSVarCls(prefixCls);
58
60
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
@@ -60,10 +62,7 @@ function generatePicker(generateConfig) {
60
62
  const additionalProps = { showToday: true };
61
63
  const mergedPicker = computed(() => props.picker || picker);
62
64
  const [contextLocale] = useLocale("DatePicker", locale);
63
- const locale$1 = computed(() => ({
64
- ...contextLocale?.value,
65
- ...props.locale ?? {}
66
- }));
65
+ const locale$1 = computed(() => merge(contextLocale?.value, props.locale || {}));
67
66
  const [zIndex] = useZIndex("DatePicker", computed(() => mergedStyles.value?.popup?.root?.zIndex));
68
67
  const triggerChange = (date, dateStr) => {
69
68
  emit("update:value", date);
@@ -71,7 +70,6 @@ function generatePicker(generateConfig) {
71
70
  };
72
71
  const handleCalendarChange = (date, dateStr, info) => {
73
72
  emit("calendarChange", date, dateStr, info);
74
- if (props.multiple && !props.needConfirm) triggerChange(date, dateStr);
75
73
  if (picker === TIME && !props.multiple) {
76
74
  const selectedDate = Array.isArray(date) ? date[0] : date;
77
75
  if (selectedDate) emit("select", selectedDate);
@@ -8,23 +8,23 @@ declare function useItems(screens: Ref<ScreenMap>, items: Ref<DescriptionsItemTy
8
8
  filled: boolean;
9
9
  _$index: number;
10
10
  key?: import("@v-c/util/dist/type").Key;
11
- class?: string | undefined;
11
+ label?: VueNode;
12
12
  style?: import("vue").CSSProperties | undefined;
13
- classes?: CellSemanticClassNames | undefined;
13
+ class?: string | undefined;
14
14
  styles?: CellSemanticStyles | undefined;
15
+ classes?: CellSemanticClassNames | undefined;
15
16
  rootClass?: string | undefined;
16
17
  content?: VueNode;
17
- label?: VueNode;
18
18
  } | {
19
19
  span: number | undefined;
20
20
  key?: import("@v-c/util/dist/type").Key;
21
- class?: string | undefined;
21
+ label?: VueNode;
22
22
  style?: import("vue").CSSProperties | undefined;
23
- classes?: CellSemanticClassNames | undefined;
23
+ class?: string | undefined;
24
24
  styles?: CellSemanticStyles | undefined;
25
+ classes?: CellSemanticClassNames | undefined;
25
26
  rootClass?: string | undefined;
26
27
  content?: VueNode;
27
- label?: VueNode;
28
28
  _$index: number;
29
29
  })[]>;
30
30
  //#endregion
@@ -6,7 +6,7 @@ function getCalcRows(rowItems, mergedColumn) {
6
6
  let tmpRow = [];
7
7
  let exceed = false;
8
8
  let count = 0;
9
- rowItems.filter((n) => n).forEach((rowItem) => {
9
+ rowItems.forEach((rowItem) => {
10
10
  const { filled, ...restItem } = rowItem;
11
11
  if (filled) {
12
12
  tmpRow.push(restItem);
@@ -1,4 +1,5 @@
1
1
  import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
2
+ import { useScopeIdAttrs } from "../_util/hooks/useScopeId.js";
2
3
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
4
  import { useZIndex } from "../_util/hooks/useZIndex.js";
4
5
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
@@ -69,6 +70,7 @@ const FloatButtonGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs,
69
70
  emit("openChange", nextOpen);
70
71
  };
71
72
  const groupRef = shallowRef();
73
+ const scopeIdAttrs = useScopeIdAttrs();
72
74
  expose({ nativeElement: groupRef });
73
75
  const handleDocClick = (event) => {
74
76
  if (!clickTrigger.value) return;
@@ -180,7 +182,7 @@ const FloatButtonGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs,
180
182
  "ariaLabel": props.ariaLabel
181
183
  }), null)] });
182
184
  };
183
- return createVNode(GroupContextProvider, { "value": listContext.value }, { default: () => [createVNode("div", mergeProps(pureAttrs(attrs), {
185
+ return createVNode(GroupContextProvider, { "value": listContext.value }, { default: () => [createVNode("div", mergeProps(scopeIdAttrs, pureAttrs(attrs), {
184
186
  "ref": groupRef,
185
187
  "class": classNames(groupPrefixCls.value, hashId.value, cssVarCls.value, rootCls.value, contextClassName.value, mergedClassNames.value.root, props.rootClass, attrs.class, {
186
188
  [`${groupPrefixCls.value}-rtl`]: direction.value === "rtl",
@@ -4,7 +4,7 @@ import { unit } from "@antdv-next/cssinjs";
4
4
  const genFloatButtonStyle = (token) => {
5
5
  const { componentCls, floatButtonSize, iconCls, antCls, floatButtonIconSize } = token;
6
6
  const [varName, varRef] = genCssVar(antCls, "float-btn");
7
- const [, buttonVarRef] = genCssVar(antCls, "btn");
7
+ const [buttonVarName, buttonVarRef] = genCssVar(antCls, "btn");
8
8
  const getProgressBackground = (backgroundColor) => [`linear-gradient(${backgroundColor}, ${backgroundColor})`, `conic-gradient(${token.colorPrimary} ${varRef("progress", "0turn")}, ${token.colorBorderSecondary} 0)`].join(", ");
9
9
  const badgeCls = `${componentCls}-badge`;
10
10
  const R = Math.SQRT2;
@@ -36,7 +36,7 @@ const genFloatButtonStyle = (token) => {
36
36
  "&:empty": { display: "none" },
37
37
  [`${componentCls}-icon`]: { lineHeight: 1 },
38
38
  [`&${antCls}-btn${componentCls}-progress`]: {
39
- borderWidth: unit(token.lineWidthBold),
39
+ [buttonVarName("border-width")]: unit(token.lineWidthBold),
40
40
  borderColor: "transparent",
41
41
  backgroundImage: getProgressBackground(buttonVarRef("bg-color")),
42
42
  backgroundOrigin: "border-box",
@@ -5,7 +5,7 @@ import { ColProps } from "../grid/col.js";
5
5
  import "../grid/index.js";
6
6
  import { FormLabelAlign, ScrollFocusOptions } from "./interface.js";
7
7
  import { FormTooltipProps } from "./FormItemLabel.js";
8
- import { FieldData, InternalNamePath, NamePath, RulesMap, ValidateErrorEntity, ValidateMessages, ValidateOptions } from "./types.js";
8
+ import { FieldData, FormInstance, FormValues, InternalNamePath, RulesMap, ValidateErrorEntity, ValidateMessages } from "./types.js";
9
9
  import { FeedbackIcons } from "./FormItem/index.js";
10
10
  import { ComponentBaseProps, Variant } from "../config-provider/context.js";
11
11
  import { CSSProperties, HTMLAttributes, SlotsType } from "vue";
@@ -34,7 +34,7 @@ interface FormSemanticStyles {
34
34
  }
35
35
  type FormClassNamesType = SemanticClassNamesType<FormProps, FormSemanticClassNames>;
36
36
  type FormStylesType = SemanticStylesType<FormProps, FormSemanticStyles>;
37
- interface FormProps extends ComponentBaseProps, FormEmitsProps {
37
+ interface FormProps<Values = Record<string, any>> extends ComponentBaseProps, FormEmitsProps<Values> {
38
38
  classes?: FormClassNamesType;
39
39
  styles?: FormStylesType;
40
40
  colon?: boolean;
@@ -51,7 +51,7 @@ interface FormProps extends ComponentBaseProps, FormEmitsProps {
51
51
  requiredMark?: RequiredMark;
52
52
  variant?: Variant;
53
53
  validateMessages?: ValidateMessages;
54
- model?: Record<string, any>;
54
+ model?: Values;
55
55
  rules?: RulesMap;
56
56
  validateTrigger?: string | string[] | false;
57
57
  preserve?: boolean;
@@ -61,54 +61,27 @@ interface FormProps extends ComponentBaseProps, FormEmitsProps {
61
61
  autocomplete?: string | undefined;
62
62
  tooltip?: FormTooltipProps;
63
63
  }
64
- interface FormEmits {
65
- finish: (values: Record<string, any>) => void;
66
- finishFailed: (errorInfo: ValidateErrorEntity) => void;
64
+ interface FormEmits<Values = any> {
65
+ finish: (values: FormValues<Values>) => void;
66
+ finishFailed: (errorInfo: ValidateErrorEntity<FormValues<Values>>) => void;
67
67
  submit: (e: Event) => void;
68
68
  reset: (e: Event) => void;
69
69
  validate: (name: InternalNamePath, status: boolean, errors: any[] | null) => void;
70
- valuesChange: (changedValues: Record<string, any>, values: Record<string, any>) => void;
70
+ valuesChange: (changedValues: Record<string, any>, values: FormValues<Values>) => void;
71
71
  fieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
72
72
  }
73
- interface FormEmitsProps {
74
- onFinish?: FormEmits['finish'];
75
- onFinishFailed?: FormEmits['finishFailed'];
76
- onSubmit?: FormEmits['submit'];
77
- onReset?: FormEmits['reset'];
78
- onValidate?: FormEmits['validate'];
79
- onValuesChange?: FormEmits['valuesChange'];
80
- onFieldsChange?: FormEmits['fieldsChange'];
73
+ interface FormEmitsProps<Values = any> {
74
+ onFinish?: FormEmits<Values>['finish'];
75
+ onFinishFailed?: FormEmits<Values>['finishFailed'];
76
+ onSubmit?: FormEmits<Values>['submit'];
77
+ onReset?: FormEmits<Values>['reset'];
78
+ onValidate?: FormEmits<Values>['validate'];
79
+ onValuesChange?: FormEmits<Values>['valuesChange'];
80
+ onFieldsChange?: FormEmits<Values>['fieldsChange'];
81
81
  }
82
82
  interface FormSlots {
83
83
  default: () => any;
84
84
  }
85
- interface FormInstance {
86
- getFieldValue: (name: NamePath) => any;
87
- getFieldsValue: (nameList?: NamePath[] | true) => Record<string, any>;
88
- getFieldError: (name: NamePath) => string[];
89
- getFieldsError: (nameList?: NamePath[]) => {
90
- name: InternalNamePath;
91
- errors: string[];
92
- warnings: string[];
93
- }[];
94
- getFieldWarning: (name: NamePath) => string[];
95
- isFieldsTouched: (nameList?: NamePath[] | boolean, allFieldsTouched?: boolean) => boolean;
96
- isFieldTouched: (name: NamePath) => boolean;
97
- isFieldsValidating: (nameList?: NamePath[]) => boolean;
98
- isFieldValidating: (name: NamePath) => boolean;
99
- resetFields: (nameList?: NamePath[] | InternalNamePath[]) => void;
100
- clearValidate: (nameList?: NamePath[] | InternalNamePath[]) => void;
101
- setFields: (data: FieldData[]) => void;
102
- setFieldValue: (name: NamePath, value: any) => void;
103
- setFieldsValue: (values: Record<string, any>) => void;
104
- validateFields: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
105
- validate: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
106
- submit: () => void;
107
- nativeElement: HTMLFormElement | undefined;
108
- scrollToField: (fieldName: NamePath, options?: ScrollFocusOptions | boolean) => void;
109
- focusField: (fieldName: NamePath) => void;
110
- getFieldInstance: (name: NamePath) => any;
111
- }
112
- declare const InternalForm: import("vue").DefineSetupFnComponent<FormProps, FormEmits, SlotsType<FormSlots>, FormProps, import("vue").PublicProps>;
85
+ declare const InternalForm: import("vue").DefineSetupFnComponent<FormProps<Record<string, any>>, FormEmits<any>, SlotsType<FormSlots>, FormProps<Record<string, any>>, import("vue").PublicProps>;
113
86
  //#endregion
114
- export { FormClassNamesType, FormEmits, FormEmitsProps, FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
87
+ export { FormClassNamesType, FormEmits, FormEmitsProps, type FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
package/dist/form/Form.js CHANGED
@@ -21,6 +21,32 @@ import { cloneDeep, pick } from "es-toolkit";
21
21
  import scrollIntoView from "scroll-into-view-if-needed";
22
22
  import { getDOM } from "@v-c/util/dist/Dom/findDOMNode";
23
23
  //#region src/form/Form.tsx
24
+ function isPlainRecord(val) {
25
+ return val !== null && typeof val === "object" && !Array.isArray(val) && Object.getPrototypeOf(val) === Object.prototype;
26
+ }
27
+ function clonePayloadValue(value, seen = /* @__PURE__ */ new Map()) {
28
+ const isArray = Array.isArray(value);
29
+ if (!isArray && !isPlainRecord(value)) return value;
30
+ if (seen.has(value)) return seen.get(value);
31
+ const cloned = isArray ? [] : {};
32
+ seen.set(value, cloned);
33
+ Object.keys(value).forEach((key) => {
34
+ cloned[key] = clonePayloadValue(value[key], seen);
35
+ });
36
+ return cloned;
37
+ }
38
+ function mergeModelValue(target, source, ancestors = /* @__PURE__ */ new Set()) {
39
+ Object.keys(source).forEach((key) => {
40
+ const next = source[key];
41
+ const prev = target[key];
42
+ if (isPlainRecord(next) && isPlainRecord(prev)) {
43
+ if (ancestors.has(next)) return;
44
+ ancestors.add(next);
45
+ mergeModelValue(prev, next, ancestors);
46
+ ancestors.delete(next);
47
+ } else target[key] = clonePayloadValue(next);
48
+ });
49
+ }
24
50
  const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
25
51
  const contextDisabled = useDisabledContext();
26
52
  const { prefixCls, direction, requiredMark: contextRequiredMark, colon: contextColon, scrollToFirstError: contextScrollToFirstError, autoComplete: contextAutoComplete, autocomplete: contextAutocomplete, class: contextClassName, style: contextStyle, styles: contextStyles, classes: contextClassNames, tooltip: contextTooltip, labelAlign: contextLabelAlign, labelWrap: contextLabelWrap } = useComponentBaseConfig("form", props, [
@@ -109,10 +135,31 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
109
135
  const getFieldValue = (namePath) => {
110
136
  return get(model.value ?? {}, namePath);
111
137
  };
112
- const getFieldsValue = (nameList) => {
113
- if (nameList === true) return cloneDeep(model.value ?? {});
114
- const registeredNameList = nameList === void 0 ? Object.values(fields).map((field) => field.namePath()) : nameList;
115
- return cloneByNamePathList(model.value ?? {}, registeredNameList);
138
+ const getFieldsValue = (nameList, filterFunc) => {
139
+ let mergedNameList;
140
+ let mergedFilterFunc;
141
+ if (nameList === true || Array.isArray(nameList)) {
142
+ mergedNameList = nameList;
143
+ mergedFilterFunc = filterFunc;
144
+ } else if (nameList && typeof nameList === "object") mergedFilterFunc = nameList.filter;
145
+ const store = model.value ?? {};
146
+ const filter = mergedFilterFunc;
147
+ if (mergedNameList === true && !filter) return cloneDeep(store);
148
+ const fieldList = Object.values(fields);
149
+ const filteredNameList = [];
150
+ if (Array.isArray(mergedNameList)) for (const name of mergedNameList) {
151
+ const namePath = getNamePath(name);
152
+ let matched = false;
153
+ for (const field of fieldList) {
154
+ const fieldNamePath = field.namePath();
155
+ if (!matchNamePath(fieldNamePath, namePath, true)) continue;
156
+ matched = true;
157
+ if (!filter || filter({ ...field.getMeta() })) filteredNameList.push(fieldNamePath);
158
+ }
159
+ if (!matched && (!filter || filter(null))) filteredNameList.push(namePath);
160
+ }
161
+ else for (const field of fieldList) if (!filter || filter({ ...field.getMeta() })) filteredNameList.push(field.namePath());
162
+ return cloneByNamePathList(store, filteredNameList);
116
163
  };
117
164
  const getFields = (namePathList) => {
118
165
  return getFieldsByNameList(namePathList).map((field) => {
@@ -284,9 +331,11 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
284
331
  };
285
332
  const setFieldsValue = (values) => {
286
333
  if (!model.value) return;
334
+ let store = {};
287
335
  Object.keys(values || {}).forEach((key) => {
288
- updateModelValue(getNamePath(key), values[key]);
336
+ store = set(store, getNamePath(key), values[key]);
289
337
  });
338
+ mergeModelValue(model.value, store);
290
339
  triggerFieldsChange();
291
340
  };
292
341
  const getFieldError = (name) => {
@@ -53,7 +53,7 @@ const ItemHolder = /* @__PURE__ */ defineComponent((props, { attrs, slots }) =>
53
53
  "style": style,
54
54
  "ref": itemRef
55
55
  }, [createVNode(Row, mergeProps({ "class": `${itemPrefixCls.value}-row` }, restAttrs), { default: () => [createVNode(FormItemLabel, mergeProps(props, {
56
- "htmlFor": props.htmlFor ?? fieldId,
56
+ "htmlFor": props.htmlFor === void 0 ? fieldId : props.htmlFor,
57
57
  "requiredMark": formContext.value?.requiredMark,
58
58
  "required": required ?? isRequired,
59
59
  "prefixCls": prefixCls,
@@ -12,8 +12,8 @@ type FeedbackIcons = (itemStatus: {
12
12
  errors?: any[];
13
13
  warnings?: any[];
14
14
  }) => { [key in ValidateStatus]?: any; };
15
- interface BaseFormItemProps {
16
- name?: NamePath;
15
+ interface BaseFormItemProps<Values = any> {
16
+ name?: NamePath<Values>;
17
17
  rules?: Rule[];
18
18
  trigger?: TriggerType | TriggerType[];
19
19
  validateTrigger?: TriggerType | TriggerType[] | false;
@@ -21,7 +21,7 @@ interface BaseFormItemProps {
21
21
  validateFirst?: boolean | 'parallel';
22
22
  preserve?: boolean;
23
23
  }
24
- type FormItemProps = BaseFormItemProps & ComponentBaseProps & Omit<FormItemLabelProps, 'requiredMark'> & FormItemInputProps & {
24
+ type FormItemProps<Values = any> = BaseFormItemProps<Values> & ComponentBaseProps & Omit<FormItemLabelProps, 'requiredMark'> & FormItemInputProps & {
25
25
  noStyle?: boolean;
26
26
  id?: string;
27
27
  hasFeedback?: boolean | {
@@ -333,6 +333,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
333
333
  return renderLayout(filterEmpty(slots.default?.() ?? []), fieldId.value, isRequired.value);
334
334
  };
335
335
  function renderLayout(baseChildren, currentFieldId, isRequiredMark) {
336
+ let controlId;
336
337
  if (Array.isArray(baseChildren) && baseChildren.length === 1 && isVNode(baseChildren[0])) {
337
338
  const child = baseChildren[0];
338
339
  const childProps = child.props || {};
@@ -369,6 +370,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
369
370
  }
370
371
  if (itemErrors.length > 0) newChildProps["aria-invalid"] = "true";
371
372
  if (props.required ?? isRequiredMark) newChildProps["aria-required"] = "true";
373
+ controlId = newChildProps.id;
372
374
  baseChildren = [createVNode(child, newChildProps)];
373
375
  }
374
376
  if (props.noStyle && !props.hidden) return createVNode(StatusProvider, {
@@ -391,7 +393,9 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
391
393
  title: tooltipSlotValue
392
394
  };
393
395
  else mergedTooltip = tooltipSlotValue;
396
+ const mergedHtmlFor = props.htmlFor === void 0 ? controlId ?? currentFieldId : props.htmlFor;
394
397
  return createVNode(ItemHolder, mergeProps(omit(props, ["preserve"]), {
398
+ "htmlFor": mergedHtmlFor,
395
399
  "tooltip": mergedTooltip,
396
400
  "label": getSlotPropsFnRun(slots, props, "label"),
397
401
  "extra": getSlotPropsFnRun(slots, props, "extra"),