antdv-next 1.3.4-beta.1 → 1.3.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.
- package/dist/_util/ActionButton.d.ts +2 -2
- package/dist/_util/ContextIsolator.d.ts +3 -3
- package/dist/_util/hooks/useClosable.d.ts +2 -2
- package/dist/_util/hooks/useMergeSemantic.d.ts +4 -4
- package/dist/_util/hooks/useMergedMask.d.ts +3 -3
- package/dist/_util/instance.d.ts +2 -2
- package/dist/_util/is.d.ts +4 -0
- package/dist/_util/is.js +9 -0
- package/dist/_util/responsiveObserver.d.ts +2 -2
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/wave/WaveEffect.d.ts +5 -5
- package/dist/_util/wave/index.d.ts +2 -2
- package/dist/_util/wave/style.d.ts +2 -2
- package/dist/_util/zindexContext.d.ts +2 -2
- package/dist/affix/index.d.ts +3 -3
- package/dist/affix/style/index.d.ts +2 -2
- package/dist/alert/Alert.d.ts +2 -2
- package/dist/alert/style/index.d.ts +2 -2
- package/dist/anchor/Anchor.d.ts +2 -2
- package/dist/anchor/AnchorLink.d.ts +2 -2
- package/dist/anchor/style/index.d.ts +2 -2
- package/dist/antd-with-locales.esm.js +9897 -9633
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +8479 -8228
- package/dist/antd.js +77 -77
- package/dist/app/App.d.ts +2 -2
- package/dist/app/context.d.ts +2 -2
- package/dist/app/style/index.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +5 -4
- package/dist/auto-complete/index.js +5 -13
- package/dist/avatar/Avatar.d.ts +2 -2
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/avatar/style/index.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +2 -2
- package/dist/badge/ScrollNumber.d.ts +2 -2
- package/dist/badge/SingleNumber.d.ts +2 -2
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/style/index.d.ts +2 -2
- package/dist/badge/style/ribbon.d.ts +2 -2
- package/dist/border-beam/BorderBeam.d.ts +3 -3
- package/dist/border-beam/hooks/useBorderSize.d.ts +2 -2
- package/dist/border-beam/style/index.d.ts +2 -2
- package/dist/breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/breadcrumb/BreadcrumbItem.d.ts +3 -3
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +2 -2
- package/dist/breadcrumb/style/index.d.ts +2 -2
- package/dist/breadcrumb/useItemRender.d.ts +2 -2
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/DefaultLoadingIcon.d.ts +2 -2
- package/dist/button/IconWrapper.d.ts +2 -2
- package/dist/button/style/compact.d.ts +4 -4
- package/dist/button/style/index.d.ts +2 -2
- package/dist/calendar/Header.d.ts +2 -2
- package/dist/calendar/generateCalendar.d.ts +2 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/style/index.d.ts +2 -2
- package/dist/card/Card.d.ts +2 -2
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +2 -2
- package/dist/card/style/index.d.ts +2 -2
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/style/index.d.ts +2 -2
- package/dist/cascader/Panel.d.ts +2 -2
- package/dist/cascader/hooks/useBase.d.ts +5 -5
- package/dist/cascader/hooks/useCheckable.d.ts +2 -2
- package/dist/cascader/index.d.ts +2 -2
- package/dist/cascader/style/index.d.ts +2 -2
- package/dist/cascader/style/panel.d.ts +2 -2
- package/dist/checkbox/Checkbox.d.ts +2 -2
- package/dist/checkbox/Group.d.ts +2 -2
- package/dist/checkbox/style/index.d.ts +2 -2
- package/dist/collapse/Collapse.d.ts +2 -2
- package/dist/collapse/Collapse.js +7 -2
- package/dist/collapse/CollapsePanel.d.ts +2 -2
- package/dist/collapse/style/index.d.ts +2 -2
- package/dist/color-picker/ColorPicker.d.ts +2 -2
- package/dist/color-picker/ColorPickerPanel.d.ts +2 -2
- package/dist/color-picker/components/ColorAlphaInput.d.ts +2 -2
- package/dist/color-picker/components/ColorClear.d.ts +2 -2
- package/dist/color-picker/components/ColorHexInput.d.ts +2 -2
- package/dist/color-picker/components/ColorHsbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorInput.d.ts +2 -2
- package/dist/color-picker/components/ColorPresets.d.ts +2 -2
- package/dist/color-picker/components/ColorRgbInput.d.ts +2 -2
- package/dist/color-picker/components/ColorSlider.d.ts +3 -3
- package/dist/color-picker/components/ColorSteppers.d.ts +2 -2
- package/dist/color-picker/components/ColorTrigger.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/GradientColorBar.d.ts +2 -2
- package/dist/color-picker/components/PanelPicker/index.d.ts +2 -2
- package/dist/color-picker/components/PanelPresets.d.ts +2 -2
- package/dist/color-picker/context.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
- package/dist/color-picker/style/index.d.ts +2 -2
- package/dist/components.d.ts +2 -1
- package/dist/components.js +4 -1
- package/dist/config-provider/DisabledContext.d.ts +2 -2
- package/dist/config-provider/SizeContext.d.ts +2 -2
- package/dist/config-provider/context.d.ts +15 -15
- package/dist/config-provider/defaultRenderEmpty.d.ts +2 -2
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +2 -2
- package/dist/config-provider/hooks/useConfig.d.ts +3 -3
- package/dist/config-provider/hooks/useSize.d.ts +2 -2
- package/dist/config-provider/hooks/useTheme.d.ts +2 -2
- package/dist/config-provider/index.d.ts +4 -4
- package/dist/date-picker/PickerButton.d.ts +2 -2
- package/dist/date-picker/generatePicker/SuffixIcon.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +7 -7
- package/dist/date-picker/generatePicker/index.d.ts +8 -8
- package/dist/date-picker/generatePicker/useComponents.d.ts +11 -11
- package/dist/date-picker/index.d.ts +13 -13
- package/dist/date-picker/style/index.d.ts +2 -2
- package/dist/date-picker/util.d.ts +3 -3
- package/dist/descriptions/Cell.d.ts +2 -2
- package/dist/descriptions/Cell.js +4 -1
- package/dist/descriptions/Item.d.ts +2 -2
- package/dist/descriptions/Row.d.ts +2 -2
- package/dist/descriptions/hooks/useItems.d.ts +8 -8
- package/dist/descriptions/hooks/useRow.d.ts +2 -2
- package/dist/descriptions/index.d.ts +2 -2
- package/dist/descriptions/style/index.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -2
- package/dist/divider/style/index.d.ts +2 -2
- package/dist/drawer/DrawerPanel.d.ts +2 -2
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/style/index.d.ts +2 -2
- package/dist/drawer/useFocusable.d.ts +2 -2
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/style/index.d.ts +2 -2
- package/dist/empty/empty.d.ts +2 -2
- package/dist/empty/index.d.ts +5 -5
- package/dist/empty/simple.d.ts +2 -2
- package/dist/empty/style/index.d.ts +2 -2
- package/dist/flex/index.d.ts +2 -2
- package/dist/flex/style/index.d.ts +2 -2
- package/dist/float-button/BackTop.d.ts +2 -2
- package/dist/float-button/FloatButton.d.ts +2 -2
- package/dist/float-button/FloatButtonGroup.d.ts +2 -2
- package/dist/float-button/PurePanel.d.ts +2 -2
- package/dist/float-button/context.d.ts +3 -3
- package/dist/float-button/style/index.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +2 -2
- package/dist/form/Form.d.ts +4 -4
- package/dist/form/Form.js +52 -9
- package/dist/form/FormItem/ItemHolder.d.ts +3 -3
- package/dist/form/FormItem/StatusProvider.d.ts +2 -2
- package/dist/form/FormItem/index.d.ts +2 -2
- package/dist/form/FormItem/index.js +11 -4
- package/dist/form/FormItemInput.d.ts +2 -2
- package/dist/form/FormItemLabel.d.ts +3 -3
- package/dist/form/context.d.ts +8 -7
- package/dist/form/hooks/useForm.d.ts +28 -1
- package/dist/form/hooks/useForm.js +60 -1
- package/dist/form/hooks/useVariant.d.ts +2 -2
- package/dist/form/index.d.ts +2 -1
- package/dist/form/index.js +4 -1
- package/dist/form/style/fallbackCmp.d.ts +4 -4
- package/dist/form/style/index.d.ts +2 -2
- package/dist/grid/col.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.d.ts +3 -3
- package/dist/image/PreviewGroup.d.ts +12 -12
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +6 -6
- package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
- package/dist/image/index.d.ts +3 -3
- package/dist/image/style/index.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/input/Group.d.ts +3 -3
- package/dist/input/Input.d.ts +2 -2
- package/dist/input/OTP/OTPInput.d.ts +3 -3
- package/dist/input/OTP/index.d.ts +2 -2
- package/dist/input/Password.d.ts +2 -2
- package/dist/input/Search.d.ts +2 -2
- package/dist/input/TextArea.d.ts +2 -2
- package/dist/input/index.d.ts +6 -6
- package/dist/input/style/index.d.ts +3 -3
- package/dist/input/style/otp.d.ts +2 -2
- package/dist/input/style/search.d.ts +2 -2
- package/dist/input/style/textarea.d.ts +2 -2
- package/dist/input-number/index.d.ts +2 -2
- package/dist/input-number/style/index.d.ts +2 -2
- package/dist/layout/Sider.d.ts +2 -2
- package/dist/layout/index.d.ts +5 -5
- package/dist/layout/layout.d.ts +5 -5
- package/dist/layout/style/index.d.ts +2 -2
- package/dist/layout/style/sider.d.ts +2 -2
- package/dist/locale/en_GB.js +12 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/useLocale.d.ts +2 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/MasonryItem.d.ts +2 -2
- package/dist/masonry/hooks/usePositions.d.ts +2 -2
- package/dist/masonry/style/index.d.ts +2 -2
- package/dist/mentions/index.d.ts +2 -2
- package/dist/mentions/style/index.d.ts +2 -2
- package/dist/menu/MenuContext.d.ts +3 -3
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +2 -2
- package/dist/menu/MenuItemGroup.d.ts +2 -2
- package/dist/menu/OverrideContext.d.ts +3 -3
- package/dist/menu/SubMenu.d.ts +2 -2
- package/dist/menu/index.d.ts +3 -3
- package/dist/menu/menu.d.ts +2 -2
- package/dist/menu/style/index.d.ts +2 -2
- package/dist/menu/style/vertical.js +3 -2
- package/dist/message/PureList.d.ts +3 -3
- package/dist/message/PurePanel.d.ts +3 -3
- package/dist/message/style/index.d.ts +5 -5
- package/dist/modal/ConfirmDialog.d.ts +4 -4
- package/dist/modal/ConfirmDialog.js +15 -0
- package/dist/modal/Modal.d.ts +2 -2
- package/dist/modal/Modal.js +5 -0
- package/dist/modal/PurePanel.d.ts +2 -2
- package/dist/modal/PurePanel.js +5 -0
- package/dist/modal/components/ConfirmCancelBtn.d.ts +2 -2
- package/dist/modal/components/ConfirmOkBtn.d.ts +2 -2
- package/dist/modal/components/NormalCancelBtn.d.ts +2 -2
- package/dist/modal/components/NormalOkBtn.d.ts +2 -2
- package/dist/modal/confirm.js +5 -0
- package/dist/modal/shared.d.ts +4 -4
- package/dist/modal/style/confirm.d.ts +4 -4
- package/dist/modal/style/index.d.ts +2 -2
- package/dist/modal/useModal/HookModal.d.ts +3 -3
- package/dist/notification/PureList.d.ts +3 -3
- package/dist/notification/PurePanel.d.ts +3 -3
- package/dist/notification/style/index.d.ts +5 -5
- package/dist/notification/useNotification.d.ts +3 -3
- package/dist/notification/useNotification.js +3 -1
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +2 -2
- package/dist/pagination/style/bordered.d.ts +4 -4
- package/dist/pagination/style/index.d.ts +2 -2
- package/dist/popconfirm/PurePanel.d.ts +3 -3
- package/dist/popconfirm/PurePanel.js +3 -2
- package/dist/popconfirm/index.d.ts +2 -2
- package/dist/popconfirm/style/index.d.ts +2 -2
- package/dist/popover/PurePanel.d.ts +4 -4
- package/dist/popover/PurePanel.js +4 -3
- package/dist/popover/index.d.ts +2 -2
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.d.ts +2 -2
- package/dist/progress/Circle.d.ts +3 -3
- package/dist/progress/Line.d.ts +3 -3
- package/dist/progress/Steps.d.ts +2 -2
- package/dist/progress/progress.d.ts +2 -2
- package/dist/progress/style/index.d.ts +2 -2
- package/dist/qrcode/QrcodeStatus.d.ts +2 -2
- package/dist/qrcode/index.d.ts +2 -2
- package/dist/qrcode/style/index.d.ts +2 -2
- package/dist/radio/group.d.ts +2 -2
- package/dist/radio/index.d.ts +3 -3
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radioButton.d.ts +2 -2
- package/dist/radio/style/index.d.ts +2 -2
- package/dist/radio/style/index.js +68 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/rate/style/index.d.ts +2 -2
- package/dist/result/index.d.ts +2 -2
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/result/style/index.d.ts +2 -2
- package/dist/result/unauthorized.d.ts +2 -2
- package/dist/segmented/index.d.ts +2 -2
- package/dist/segmented/style/index.d.ts +2 -2
- package/dist/select/index.d.ts +6 -6
- package/dist/select/style/index.d.ts +2 -2
- package/dist/select/useIcons.d.ts +5 -5
- package/dist/select/usePopupRender.d.ts +2 -2
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Element.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +2 -2
- package/dist/skeleton/Paragraph.d.ts +2 -2
- package/dist/skeleton/Skeleton.d.ts +2 -2
- package/dist/skeleton/Title.d.ts +2 -2
- package/dist/skeleton/style/index.d.ts +2 -2
- package/dist/slider/SliderTooltip.d.ts +3 -3
- package/dist/slider/index.d.ts +2 -2
- package/dist/slider/style/index.d.ts +2 -2
- package/dist/slider/style/index.js +1 -0
- package/dist/space/Addon.d.ts +2 -2
- package/dist/space/Compact.d.ts +6 -6
- package/dist/space/Item.d.ts +2 -2
- package/dist/space/index.d.ts +4 -4
- package/dist/space/style/addon.d.ts +2 -2
- package/dist/space/style/compact.d.ts +2 -2
- package/dist/space/style/index.d.ts +2 -2
- package/dist/spin/Indicator/Looper.d.ts +2 -2
- package/dist/spin/Indicator/Progress.d.ts +2 -2
- package/dist/spin/Indicator/index.d.ts +2 -2
- package/dist/spin/index.d.ts +2 -2
- package/dist/spin/style/index.d.ts +2 -2
- package/dist/spin/usePercent.d.ts +2 -2
- package/dist/splitter/Panel.d.ts +3 -3
- package/dist/splitter/SplitBar.d.ts +2 -2
- package/dist/splitter/Splitter.d.ts +2 -2
- package/dist/splitter/hooks/useResizable.d.ts +2 -2
- package/dist/splitter/hooks/useResize.d.ts +2 -2
- package/dist/splitter/hooks/useSizes.d.ts +2 -2
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.d.ts +2 -2
- package/dist/splitter/style/index.js +1 -1
- package/dist/statistic/Number.d.ts +2 -2
- package/dist/statistic/Statistic.d.ts +2 -2
- package/dist/statistic/Timer.d.ts +2 -2
- package/dist/statistic/index.d.ts +2 -2
- package/dist/statistic/style/index.d.ts +2 -2
- package/dist/steps/PanelArrow.d.ts +2 -2
- package/dist/steps/ProgressIcon.d.ts +2 -2
- package/dist/steps/index.d.ts +2 -2
- package/dist/steps/style/index.d.ts +2 -2
- package/dist/style/index.js +14 -5
- package/dist/switch/index.d.ts +2 -2
- package/dist/switch/style/index.d.ts +2 -2
- package/dist/table/Column.d.ts +2 -2
- package/dist/table/ColumnGroup.d.ts +2 -2
- package/dist/table/ExpandIcon.d.ts +2 -2
- package/dist/table/InternalTable.d.ts +2 -2
- package/dist/table/TableMeasureRowContext.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterSearch.d.ts +2 -2
- package/dist/table/hooks/useFilter/FilterWrapper.d.ts +3 -3
- package/dist/table/hooks/usePagination.d.ts +2 -2
- package/dist/table/hooks/useSelection.d.ts +2 -2
- package/dist/table/hooks/useSorter.d.ts +2 -2
- package/dist/table/style/index.d.ts +2 -2
- package/dist/tabs/TabPane.d.ts +2 -2
- package/dist/tabs/hooks/useLegacyItems.d.ts +2 -2
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tabs/style/index.d.ts +2 -2
- package/dist/tag/CheckableTag.d.ts +2 -2
- package/dist/tag/CheckableTagGroup.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +2 -2
- package/dist/tag/index.d.ts +2 -2
- package/dist/tag/style/index.d.ts +2 -2
- package/dist/tag/style/presetCmp.d.ts +4 -4
- package/dist/tag/style/statusCmp.d.ts +4 -4
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/themes/default/theme.d.ts +2 -2
- package/dist/theme/util/alias.js +3 -3
- package/dist/theme/util/genStyleUtils.d.ts +14 -14
- package/dist/time-picker/index.d.ts +4 -4
- package/dist/timeline/Timeline.d.ts +2 -2
- package/dist/timeline/TimelineItem.d.ts +2 -2
- package/dist/timeline/style/index.d.ts +2 -2
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/MotionContent.d.ts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +2 -2
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tour/PurePanel.d.ts +2 -2
- package/dist/tour/index.d.ts +2 -2
- package/dist/tour/panelRender.d.ts +2 -2
- package/dist/tour/style/index.d.ts +2 -2
- package/dist/tour/style/index.js +1 -0
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/ListBody.d.ts +2 -2
- package/dist/transfer/ListItem.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/hooks/useData.d.ts +2 -2
- package/dist/transfer/search.d.ts +2 -2
- package/dist/transfer/style/index.d.ts +2 -2
- package/dist/tree/DirectoryTree.d.ts +2 -2
- package/dist/tree/Tree.d.ts +2 -2
- package/dist/tree/style/index.d.ts +2 -2
- package/dist/tree/utils/dropIndicator.d.ts +2 -2
- package/dist/tree/utils/iconUtil.d.ts +2 -2
- package/dist/tree-select/index.d.ts +3 -3
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/Base/CopyBtn.d.ts +2 -2
- package/dist/typography/Base/Ellipsis.d.ts +3 -3
- package/dist/typography/Base/EllipsisTooltip.d.ts +2 -2
- package/dist/typography/Base/index.d.ts +2 -2
- package/dist/typography/Editable.d.ts +2 -2
- package/dist/typography/Link.d.ts +2 -2
- package/dist/typography/Paragraph.d.ts +2 -2
- package/dist/typography/Text.d.ts +2 -2
- package/dist/typography/Title.d.ts +2 -2
- package/dist/typography/Typography.d.ts +2 -2
- package/dist/typography/hooks/useCopyClick.d.ts +3 -3
- package/dist/typography/hooks/useMergedConfig.d.ts +2 -2
- package/dist/typography/hooks/useTooltipProps.d.ts +2 -2
- package/dist/typography/index.d.ts +5 -5
- package/dist/typography/style/index.d.ts +2 -2
- package/dist/upload/Dragger.d.ts +3 -3
- package/dist/upload/Upload.d.ts +2 -2
- package/dist/upload/Upload.js +6 -2
- package/dist/upload/UploadList/ListItem.d.ts +2 -2
- package/dist/upload/UploadList/index.d.ts +2 -2
- package/dist/upload/index.d.ts +3 -3
- package/dist/upload/style/index.d.ts +2 -2
- package/dist/watermark/context.d.ts +2 -2
- package/dist/watermark/index.d.ts +2 -2
- package/package.json +8 -8
- package/web-tags.json +908 -884
- package/web-types.json +3329 -3276
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue588 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/descriptions/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -57,6 +57,6 @@ interface ComponentToken {
|
|
|
57
57
|
extraColor: string;
|
|
58
58
|
}
|
|
59
59
|
declare const prepareComponentToken: GetDefaultToken<'Descriptions'>;
|
|
60
|
-
declare const _default: (prefixCls:
|
|
60
|
+
declare const _default: (prefixCls: vue588.Ref<string>, rootCls?: vue588.Ref<string | undefined>) => readonly [vue588.Ref<string, string>, vue588.ComputedRef<string | undefined>];
|
|
61
61
|
//#endregion
|
|
62
62
|
export { ComponentToken, _default as default, prepareComponentToken };
|
package/dist/divider/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Orientation } from "../_util/hooks/useOrientation.js";
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue551 from "vue";
|
|
7
7
|
import { CSSProperties } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/divider/index.d.ts
|
|
@@ -43,6 +43,6 @@ interface DividerProps extends ComponentBaseProps {
|
|
|
43
43
|
classes?: DividerClassNamesType;
|
|
44
44
|
styles?: DividerStylesType;
|
|
45
45
|
}
|
|
46
|
-
declare const Divider:
|
|
46
|
+
declare const Divider: vue551.DefineSetupFnComponent<DividerProps, {}, {}, DividerProps & {}, vue551.PublicProps>;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { DividerClassNamesType, DividerProps, DividerSemanticClassNames, DividerSemanticName, DividerSemanticStyles, DividerStylesType, TitlePlacement, Divider as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue596 from "vue";
|
|
4
4
|
import { CSSProperties } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/divider/style/index.d.ts
|
|
@@ -23,6 +23,6 @@ interface ComponentToken {
|
|
|
23
23
|
verticalMarginInline: CSSProperties['marginInline'];
|
|
24
24
|
}
|
|
25
25
|
declare const prepareComponentToken: GetDefaultToken<'Divider'>;
|
|
26
|
-
declare const _default: (prefixCls:
|
|
26
|
+
declare const _default: (prefixCls: vue596.Ref<string>, rootCls?: vue596.Ref<string | undefined>) => readonly [vue596.Ref<string, string>, vue596.ComputedRef<string | undefined>];
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ClosableType } from "../_util/hooks/useClosable.js";
|
|
5
5
|
import { DrawerProps as DrawerProps$1 } from "./index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue560 from "vue";
|
|
7
7
|
import { CSSProperties } from "vue";
|
|
8
8
|
import { DrawerProps } from "@v-c/drawer";
|
|
9
9
|
|
|
@@ -72,6 +72,6 @@ interface DrawerPanelProps {
|
|
|
72
72
|
/** @deprecated Please use `styles.content` instead */
|
|
73
73
|
drawerStyle?: CSSProperties;
|
|
74
74
|
}
|
|
75
|
-
declare const DrawerPanel:
|
|
75
|
+
declare const DrawerPanel: vue560.DefineSetupFnComponent<DrawerPanelProps, {}, {}, DrawerPanelProps & {}, vue560.PublicProps>;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { DrawerClassNamesType, DrawerPanelProps, DrawerSemanticClassNames, DrawerSemanticName, DrawerSemanticStyles, DrawerStylesType, DrawerPanel as default };
|
package/dist/drawer/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { MaskType } from "../_util/hooks/useMergedMask.js";
|
|
|
2
2
|
import "../_util/hooks/index.js";
|
|
3
3
|
import { FocusableConfig, OmitFocusType } from "./useFocusable.js";
|
|
4
4
|
import { DrawerPanelProps } from "./DrawerPanel.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue669 from "vue";
|
|
6
6
|
import { SlotsType } from "vue";
|
|
7
7
|
import { DrawerProps as DrawerProps$1 } from "@v-c/drawer";
|
|
8
8
|
|
|
@@ -63,11 +63,11 @@ interface DrawerSlots {
|
|
|
63
63
|
default?: () => any;
|
|
64
64
|
closeIcon?: () => any;
|
|
65
65
|
}
|
|
66
|
-
declare const Drawer:
|
|
66
|
+
declare const Drawer: vue669.DefineSetupFnComponent<DrawerProps, DrawerEmits, SlotsType<DrawerSlots>, DrawerProps, vue669.PublicProps>;
|
|
67
67
|
interface PurePanelInterface {
|
|
68
68
|
prefixCls?: string;
|
|
69
69
|
placement?: DrawerProps['placement'];
|
|
70
70
|
}
|
|
71
|
-
declare const PurePanel:
|
|
71
|
+
declare const PurePanel: vue669.DefineSetupFnComponent<Omit<DrawerPanelProps, "prefixCls"> & PurePanelInterface, {}, {}, Omit<DrawerPanelProps, "prefixCls"> & PurePanelInterface & {}, vue669.PublicProps>;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { DrawerEmits, DrawerEmitsProps, DrawerProps, DrawerResizableConfig, DrawerSlots, PurePanel, PushState, Drawer as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue403 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/drawer/style/index.d.ts
|
|
6
6
|
interface ComponentToken {
|
|
@@ -27,6 +27,6 @@ interface ComponentToken {
|
|
|
27
27
|
}
|
|
28
28
|
interface DrawerToken extends FullToken<'Drawer'> {}
|
|
29
29
|
declare const prepareComponentToken: GetDefaultToken<'Drawer'>;
|
|
30
|
-
declare const _default: (prefixCls:
|
|
30
|
+
declare const _default: (prefixCls: vue403.Ref<string>, rootCls?: vue403.Ref<string | undefined>) => readonly [vue403.Ref<string, string>, vue403.ComputedRef<string | undefined>];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ComponentToken, DrawerToken, _default as default, prepareComponentToken };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue668 from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/drawer/useFocusable.d.ts
|
|
@@ -7,7 +7,7 @@ interface FocusableConfig {
|
|
|
7
7
|
focusTriggerAfterClose?: boolean;
|
|
8
8
|
trap?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function useFocusable(focusable?: Ref<FocusableConfig | undefined>, defaultTrap?: Ref<boolean | undefined>, legacyFocusTriggerAfterClose?: Ref<FocusableConfig['focusTriggerAfterClose'] | undefined>):
|
|
10
|
+
declare function useFocusable(focusable?: Ref<FocusableConfig | undefined>, defaultTrap?: Ref<boolean | undefined>, legacyFocusTriggerAfterClose?: Ref<FocusableConfig['focusTriggerAfterClose'] | undefined>): vue668.ComputedRef<{
|
|
11
11
|
focusTriggerAfterClose: boolean;
|
|
12
12
|
trap: boolean;
|
|
13
13
|
}>;
|
|
@@ -4,7 +4,7 @@ import { AdjustOverflow } from "../_util/placements.js";
|
|
|
4
4
|
import { MenuEmits, MenuSlots } from "../menu/menu.js";
|
|
5
5
|
import { MenuProps as MenuProps$1 } from "../menu/index.js";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue606 from "vue";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { AlignType } from "@v-c/trigger";
|
|
10
10
|
import { MenuProps } from "@v-c/menu";
|
|
@@ -75,6 +75,6 @@ interface DropdownSlots extends MenuSlots {
|
|
|
75
75
|
source: 'trigger' | 'menu';
|
|
76
76
|
}) => any;
|
|
77
77
|
}
|
|
78
|
-
declare const Dropdown:
|
|
78
|
+
declare const Dropdown: vue606.DefineSetupFnComponent<DropdownProps, DropdownEmits, SlotsType<DropdownSlots>, DropdownProps, vue606.PublicProps>;
|
|
79
79
|
//#endregion
|
|
80
80
|
export { DropdownArrowOptions, DropdownClassNamesType, DropdownEmits, DropdownEmitsProps, DropdownProps, DropdownSemanticClassNames, DropdownSemanticName, DropdownSemanticStyles, DropdownSlots, DropdownStylesType, Dropdown as default };
|
|
@@ -2,7 +2,7 @@ import { ArrowToken } from "../../style/roundedArrow.js";
|
|
|
2
2
|
import { ArrowOffsetToken } from "../../style/placementArrow.js";
|
|
3
3
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
4
4
|
import "../../theme/internal.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue620 from "vue";
|
|
6
6
|
import { CSSProperties } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/dropdown/style/index.d.ts
|
|
@@ -40,6 +40,6 @@ interface DropdownToken extends FullToken<'Dropdown'> {
|
|
|
40
40
|
menuCls: string;
|
|
41
41
|
}
|
|
42
42
|
declare const prepareComponentToken: GetDefaultToken<'Dropdown'>;
|
|
43
|
-
declare const _default: (prefixCls:
|
|
43
|
+
declare const _default: (prefixCls: vue620.Ref<string>, rootCls?: vue620.Ref<string | undefined>) => readonly [vue620.Ref<string, string>, vue620.ComputedRef<string | undefined>];
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ComponentToken, DropdownToken, _default as default, prepareComponentToken };
|
package/dist/empty/empty.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue637 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/empty/empty.d.ts
|
|
4
|
-
declare const Empty:
|
|
4
|
+
declare const Empty: vue637.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue637.PublicProps>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Empty as default };
|
package/dist/empty/index.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { EmptyEmit, VueNode as VueNode$1 } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue614 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue_jsx_runtime26 from "vue/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/empty/index.d.ts
|
|
10
10
|
interface TransferLocale {
|
|
11
11
|
description: string;
|
|
12
12
|
}
|
|
13
|
-
declare const defaultEmptyImg:
|
|
14
|
-
declare const simpleEmptyImg:
|
|
13
|
+
declare const defaultEmptyImg: vue_jsx_runtime26.JSX.Element;
|
|
14
|
+
declare const simpleEmptyImg: vue_jsx_runtime26.JSX.Element;
|
|
15
15
|
type EmptySemanticName = keyof EmptySemanticClassNames & keyof EmptySemanticStyles;
|
|
16
16
|
interface EmptySemanticClassNames {
|
|
17
17
|
root?: string;
|
|
@@ -39,7 +39,7 @@ interface EmptySlots {
|
|
|
39
39
|
description: () => any;
|
|
40
40
|
default: () => any;
|
|
41
41
|
}
|
|
42
|
-
declare const Empty:
|
|
42
|
+
declare const Empty: vue614.DefineSetupFnComponent<EmptyProps, EmptyEmit, SlotsType<EmptySlots>, EmptyProps, vue614.PublicProps>;
|
|
43
43
|
declare const _default: typeof Empty & {
|
|
44
44
|
PRESENTED_IMAGE_DEFAULT: typeof defaultEmptyImg;
|
|
45
45
|
PRESENTED_IMAGE_SIMPLE: typeof simpleEmptyImg;
|
package/dist/empty/simple.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue608 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/empty/simple.d.ts
|
|
4
|
-
declare const Simple:
|
|
4
|
+
declare const Simple: vue608.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue608.PublicProps>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Simple as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue592 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/empty/style/index.d.ts
|
|
4
4
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
5
5
|
interface ComponentToken {}
|
|
6
|
-
declare const _default: (prefixCls:
|
|
6
|
+
declare const _default: (prefixCls: vue592.Ref<string>, rootCls?: vue592.Ref<string | undefined>) => readonly [vue592.Ref<string, string>, vue592.ComputedRef<string | undefined>];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ComponentToken, _default as default };
|
package/dist/flex/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { FlexProps } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue604 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/flex/index.d.ts
|
|
7
7
|
interface FlexSlots {
|
|
8
8
|
default: () => any;
|
|
9
9
|
}
|
|
10
|
-
declare const Flex:
|
|
10
|
+
declare const Flex: vue604.DefineSetupFnComponent<FlexProps, EmptyEmit, SlotsType<FlexSlots>, FlexProps, vue604.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { type FlexProps, FlexSlots, Flex as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue600 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/flex/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -29,6 +29,6 @@ interface FlexToken extends FullToken<'Flex'> {
|
|
|
29
29
|
flexGapLG: number;
|
|
30
30
|
}
|
|
31
31
|
declare const prepareComponentToken: GetDefaultToken<'Flex'>;
|
|
32
|
-
declare const _default: (prefixCls:
|
|
32
|
+
declare const _default: (prefixCls: vue600.Ref<string>, rootCls?: vue600.Ref<string | undefined>) => readonly [vue600.Ref<string, string>, vue600.ComputedRef<string | undefined>];
|
|
33
33
|
//#endregion
|
|
34
34
|
export { ComponentToken, FlexToken, _default as default, prepareComponentToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FloatButtonProps } from "./FloatButton.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue633 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/float-button/BackTop.d.ts
|
|
@@ -19,7 +19,7 @@ interface BackTopSlots {
|
|
|
19
19
|
default?: () => any;
|
|
20
20
|
icon?: () => any;
|
|
21
21
|
}
|
|
22
|
-
declare const BackTop:
|
|
22
|
+
declare const BackTop: vue633.DefineSetupFnComponent<BackTopProps, BackTopEmits, SlotsType<BackTopSlots>, BackTopProps, vue633.PublicProps>;
|
|
23
23
|
declare const BackTopWithInstall: typeof BackTop;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { BackTopEmits, BackTopEmitsProps, BackTopProps, BackTopSlots, BackTopWithInstall as default };
|
|
@@ -7,7 +7,7 @@ import { ComponentBaseProps } from "../config-provider/context.js";
|
|
|
7
7
|
import { ButtonHTMLType } from "../button/buttonHelper.js";
|
|
8
8
|
import { ButtonSemanticClassNames, ButtonSemanticName, ButtonSemanticStyles } from "../button/Button.js";
|
|
9
9
|
import "../button/index.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as vue635 from "vue";
|
|
11
11
|
import { CSSProperties, SlotsType } from "vue";
|
|
12
12
|
|
|
13
13
|
//#region src/float-button/FloatButton.d.ts
|
|
@@ -62,7 +62,7 @@ interface FloatButtonEmitsProps {
|
|
|
62
62
|
onBlur?: FloatButtonEmits['blur'];
|
|
63
63
|
}
|
|
64
64
|
declare const floatButtonPrefixCls = "float-btn";
|
|
65
|
-
declare const InternalFloatButton:
|
|
65
|
+
declare const InternalFloatButton: vue635.DefineSetupFnComponent<FloatButtonProps, FloatButtonEmits, SlotsType<FloatButtonSlots>, FloatButtonProps, vue635.PublicProps>;
|
|
66
66
|
declare const FloatButton: typeof InternalFloatButton;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { FloatButtonBadgeProps, FloatButtonClassNamesType, FloatButtonElement, FloatButtonEmits, FloatButtonEmitsProps, FloatButtonGroupTrigger, FloatButtonProps, FloatButtonRef, FloatButtonSemanticName, FloatButtonShape, FloatButtonSlots, FloatButtonStylesType, FloatButtonType, FloatButton as default, floatButtonPrefixCls };
|
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { FloatButtonGroupTrigger, FloatButtonProps } from "./FloatButton.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue831 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/float-button/FloatButtonGroup.d.ts
|
|
@@ -55,7 +55,7 @@ interface FloatButtonGroupEmitsProps {
|
|
|
55
55
|
'onUpdate:open'?: FloatButtonGroupEmits['update:open'];
|
|
56
56
|
onClick?: FloatButtonGroupEmits['click'];
|
|
57
57
|
}
|
|
58
|
-
declare const InternalFloatButtonGroup:
|
|
58
|
+
declare const InternalFloatButtonGroup: vue831.DefineSetupFnComponent<FloatButtonGroupProps, FloatButtonGroupEmits, SlotsType<FloatButtonGroupSlots>, FloatButtonGroupProps, vue831.PublicProps>;
|
|
59
59
|
declare const FloatButtonGroup: typeof InternalFloatButtonGroup;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { FloatButtonGroupClassNamesType, FloatButtonGroupEmits, FloatButtonGroupEmitsProps, FloatButtonGroupProps, FloatButtonGroupSemanticClassNames, FloatButtonGroupSemanticName, FloatButtonGroupSemanticStyles, FloatButtonGroupSlots, FloatButtonGroupStylesType, FloatButtonGroup as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FloatButtonProps } from "./FloatButton.js";
|
|
2
2
|
import { FloatButtonGroupProps } from "./FloatButtonGroup.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue689 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/PurePanel.d.ts
|
|
6
6
|
interface PureFloatButtonProps extends Omit<FloatButtonProps, 'target'> {
|
|
@@ -14,6 +14,6 @@ interface PurePanelProps extends Omit<PureFloatButtonProps, 'classes' | 'styles'
|
|
|
14
14
|
classes?: ClassNamesType;
|
|
15
15
|
styles?: StylesType;
|
|
16
16
|
}
|
|
17
|
-
declare const PurePanel:
|
|
17
|
+
declare const PurePanel: vue689.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue689.PublicProps>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { PureFloatButtonProps, PurePanelProps, PurePanel as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatButtonProps, FloatButtonShape } from "./FloatButton.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue616 from "vue";
|
|
3
3
|
import { Ref } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/context.d.ts
|
|
@@ -11,10 +11,10 @@ interface GroupContextProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare function useGroupContext(): Ref<GroupContextProps | null, GroupContextProps | null> | undefined;
|
|
13
13
|
declare function useGroupContextProvider(value: Ref<GroupContextProps | null>): void;
|
|
14
|
-
declare const GroupContextProvider:
|
|
14
|
+
declare const GroupContextProvider: vue616.DefineSetupFnComponent<{
|
|
15
15
|
value: GroupContextProps;
|
|
16
16
|
}, {}, {}, {
|
|
17
17
|
value: GroupContextProps;
|
|
18
|
-
} & {},
|
|
18
|
+
} & {}, vue616.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { GroupContextProps, GroupContextProvider, useGroupContext, useGroupContextProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue444 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/float-button/style/index.d.ts
|
|
6
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -32,6 +32,6 @@ type FloatButtonToken = FullToken<'FloatButton'> & {
|
|
|
32
32
|
floatButtonInsetInlineEnd: number;
|
|
33
33
|
};
|
|
34
34
|
declare const prepareComponentToken: GetDefaultToken<'FloatButton'>;
|
|
35
|
-
declare const _default: (prefixCls:
|
|
35
|
+
declare const _default: (prefixCls: vue444.Ref<string>, rootCls?: vue444.Ref<string | undefined>) => readonly [vue444.Ref<string, string>, vue444.ComputedRef<string | undefined>];
|
|
36
36
|
//#endregion
|
|
37
37
|
export { ComponentToken, FloatButtonToken, _default as default, prepareComponentToken };
|
package/dist/form/ErrorList.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode as VueNode$1 } from "../_util/type.js";
|
|
2
2
|
import { ValidateStatus } from "./FormItem/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue823 from "vue";
|
|
4
4
|
import { CSSProperties } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/form/ErrorList.d.ts
|
|
@@ -15,6 +15,6 @@ interface ErrorListProps {
|
|
|
15
15
|
helpItemClassName?: string;
|
|
16
16
|
helpItemStyle?: CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const ErrorList:
|
|
18
|
+
declare const ErrorList: vue823.DefineSetupFnComponent<ErrorListProps, {}, {}, ErrorListProps & {}, vue823.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ErrorListProps, ErrorList as default };
|
package/dist/form/Form.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { FormTooltipProps } from "./FormItemLabel.js";
|
|
|
8
8
|
import { FieldData, InternalNamePath, NamePath, Rule, ValidateErrorEntity, ValidateMessages, ValidateOptions } from "./types.js";
|
|
9
9
|
import { FeedbackIcons } from "./FormItem/index.js";
|
|
10
10
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
11
|
-
import * as
|
|
11
|
+
import * as vue727 from "vue";
|
|
12
12
|
import { CSSProperties, HTMLAttributes, SlotsType } from "vue";
|
|
13
13
|
|
|
14
14
|
//#region src/form/Form.d.ts
|
|
@@ -103,14 +103,14 @@ interface FormInstance {
|
|
|
103
103
|
setFields: (data: FieldData[]) => void;
|
|
104
104
|
setFieldValue: (name: NamePath, value: any) => void;
|
|
105
105
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
106
|
-
validateFields: (nameList?: NamePath[], options?: ValidateOptions) => Promise<Record<string, any>>;
|
|
107
|
-
validate: () => Promise<Record<string, any>>;
|
|
106
|
+
validateFields: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
|
|
107
|
+
validate: (nameList?: NamePath[] | ValidateOptions, options?: ValidateOptions) => Promise<Record<string, any>>;
|
|
108
108
|
submit: () => void;
|
|
109
109
|
nativeElement: HTMLFormElement | undefined;
|
|
110
110
|
scrollToField: (fieldName: NamePath, options?: ScrollFocusOptions | boolean) => void;
|
|
111
111
|
focusField: (fieldName: NamePath) => void;
|
|
112
112
|
getFieldInstance: (name: NamePath) => any;
|
|
113
113
|
}
|
|
114
|
-
declare const InternalForm:
|
|
114
|
+
declare const InternalForm: vue727.DefineSetupFnComponent<FormProps, FormEmits, SlotsType<FormSlots>, FormProps, vue727.PublicProps>;
|
|
115
115
|
//#endregion
|
|
116
116
|
export { FormClassNamesType, FormEmits, FormEmitsProps, FormInstance, FormItemLayout, FormLayout, FormProps, FormSemanticClassNames, FormSemanticName, FormSemanticStyles, FormSlots, FormStylesType, RequiredMark, type ScrollFocusOptions, InternalForm as default };
|
package/dist/form/Form.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import warning_default from "../_util/warning.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useSizeProvider } from "../config-provider/SizeContext.js";
|
|
3
4
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
@@ -8,12 +9,13 @@ import { useDisabledContext, useDisabledContextProvider } from "../config-provid
|
|
|
8
9
|
import useLocale_default from "../locale/useLocale.js";
|
|
9
10
|
import { NoFormStyle, useFormContextProvider, useVariantContextProvider } from "./context.js";
|
|
10
11
|
import { getFieldId, toArray } from "./util.js";
|
|
12
|
+
import { FormHookRegistryKey, FormInstanceContextKey } from "./hooks/useForm.js";
|
|
11
13
|
import style_default from "./style/index.js";
|
|
12
14
|
import { allPromiseFinish } from "./utils/asyncUtil.js";
|
|
13
15
|
import { defaultValidateMessages } from "./utils/messages.js";
|
|
14
16
|
import { cloneByNamePathList, containsNamePath, getNamePath, setValue } from "./utils/valueUtil.js";
|
|
15
17
|
import { useValidateMessagesContext, useValidateMessagesProvider } from "./validateMessagesContext.js";
|
|
16
|
-
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
18
|
+
import { computed, createVNode, defineComponent, getCurrentInstance, inject, mergeDefaults, mergeProps, onBeforeUnmount, onMounted, provide, shallowRef, watch } from "vue";
|
|
17
19
|
import { clsx, get, set } from "@v-c/util";
|
|
18
20
|
import { pick } from "es-toolkit";
|
|
19
21
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
@@ -73,11 +75,11 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
73
75
|
const removeField = (eventKey) => {
|
|
74
76
|
delete fields.value[eventKey];
|
|
75
77
|
};
|
|
76
|
-
const getFieldsByNameList = (namePathList) => {
|
|
78
|
+
const getFieldsByNameList = (namePathList, partialMatch = false) => {
|
|
77
79
|
const mergedNamePathList = namePathList?.length ? namePathList : void 0;
|
|
78
80
|
const fieldList = Object.values(fields.value);
|
|
79
81
|
if (!mergedNamePathList) return fieldList;
|
|
80
|
-
return fieldList.filter((field) => containsNamePath(mergedNamePathList, field.namePath()));
|
|
82
|
+
return fieldList.filter((field) => containsNamePath(mergedNamePathList, field.namePath(), partialMatch));
|
|
81
83
|
};
|
|
82
84
|
const getFieldValue = (namePath) => {
|
|
83
85
|
return get(model.value ?? {}, namePath);
|
|
@@ -114,13 +116,21 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
114
116
|
const clearValidate = (nameList) => {
|
|
115
117
|
getFieldsByNameList(nameList ? nameList.map(getNamePath) : void 0).forEach((field) => field.clearValidate());
|
|
116
118
|
};
|
|
117
|
-
const validateFields = (
|
|
119
|
+
const validateFields = (arg1, arg2) => {
|
|
120
|
+
let nameList;
|
|
121
|
+
let options;
|
|
122
|
+
if (Array.isArray(arg1) || typeof arg1 === "string" || typeof arg2 === "string") {
|
|
123
|
+
nameList = arg1;
|
|
124
|
+
options = arg2 || {};
|
|
125
|
+
} else options = arg1 || {};
|
|
118
126
|
const provideNameList = !!(nameList && toArray(nameList).length);
|
|
119
127
|
const namePathList = provideNameList ? toArray(nameList).map(getNamePath) : [];
|
|
120
128
|
const promiseList = [];
|
|
121
|
-
|
|
129
|
+
const { recursive, dirty } = options;
|
|
130
|
+
getFieldsByNameList(provideNameList ? namePathList : void 0, recursive).forEach((field) => {
|
|
122
131
|
if (!provideNameList) namePathList.push(field.namePath());
|
|
123
132
|
if (!field.rules || !field.rules()?.length) return;
|
|
133
|
+
if (dirty && !field.isFieldDirty?.()) return;
|
|
124
134
|
const promise = field.validateRules(options).then(() => ({
|
|
125
135
|
name: field.namePath(),
|
|
126
136
|
errors: [],
|
|
@@ -152,7 +162,9 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
152
162
|
return Promise.reject([]);
|
|
153
163
|
}).catch((results) => {
|
|
154
164
|
const errorList = results.filter((result) => result && result.errors.length);
|
|
165
|
+
const errorMessage = errorList[0]?.errors?.[0];
|
|
155
166
|
return Promise.reject({
|
|
167
|
+
message: errorMessage,
|
|
156
168
|
values: getFieldsValue(namePathList),
|
|
157
169
|
errorFields: errorList,
|
|
158
170
|
outOfDate: lastValidatePromise.value !== summaryPromise
|
|
@@ -281,7 +293,7 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
281
293
|
useVariantContextProvider(variant);
|
|
282
294
|
useDisabledContextProvider(disabled);
|
|
283
295
|
useSizeProvider(mergedSize);
|
|
284
|
-
|
|
296
|
+
const formInstance = {
|
|
285
297
|
getFieldValue: (name) => getFieldValue(getNamePath(name)),
|
|
286
298
|
getFieldsValue,
|
|
287
299
|
getFieldError,
|
|
@@ -297,10 +309,14 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
297
309
|
setFieldValue,
|
|
298
310
|
setFieldsValue,
|
|
299
311
|
validateFields,
|
|
300
|
-
validate:
|
|
312
|
+
validate: validateFields,
|
|
301
313
|
submit,
|
|
302
|
-
nativeElement
|
|
303
|
-
|
|
314
|
+
get nativeElement() {
|
|
315
|
+
return nativeElementRef.value;
|
|
316
|
+
},
|
|
317
|
+
get el() {
|
|
318
|
+
return nativeElementRef.value;
|
|
319
|
+
},
|
|
304
320
|
scrollToField: (name, options = {}) => {
|
|
305
321
|
scrollToField(getNamePath(name), options);
|
|
306
322
|
},
|
|
@@ -315,6 +331,33 @@ const InternalForm = /* @__PURE__ */ defineComponent((props, { slots, expose, em
|
|
|
315
331
|
const targetId = getFieldId(getNamePath(name), props.name);
|
|
316
332
|
if (targetId) return fields.value?.[targetId];
|
|
317
333
|
}
|
|
334
|
+
};
|
|
335
|
+
expose(formInstance);
|
|
336
|
+
provide(FormInstanceContextKey, formInstance);
|
|
337
|
+
const hookRegistry = inject(FormHookRegistryKey, null);
|
|
338
|
+
const vm = getCurrentInstance();
|
|
339
|
+
let boundEntry;
|
|
340
|
+
onMounted(() => {
|
|
341
|
+
if (!hookRegistry || !vm) return;
|
|
342
|
+
const entries = hookRegistry.entries;
|
|
343
|
+
const isSelf = (val) => !!val && (val === formInstance || val.$ === vm);
|
|
344
|
+
if (entries.some((entry) => isSelf(entry.instanceRef.value))) return;
|
|
345
|
+
let entry;
|
|
346
|
+
if (props.name) entry = entries.find((item) => item.boundBy === void 0 && item.name === props.name);
|
|
347
|
+
if (!entry) entry = entries.find((item) => item.boundBy === void 0 && item.name === void 0);
|
|
348
|
+
if (entry) {
|
|
349
|
+
if (!entry.name && entries.filter((item) => item.name === void 0).length > 1) warning_default(false, "Form", "Multiple unnamed `useForm` instances are connected by declaration order, which is fragile. Bind explicitly via template ref or a matching `name`.");
|
|
350
|
+
entry.boundBy = vm.uid;
|
|
351
|
+
entry.instanceRef.value = formInstance;
|
|
352
|
+
boundEntry = entry;
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
onBeforeUnmount(() => {
|
|
356
|
+
if (boundEntry && vm && boundEntry.boundBy === vm.uid) {
|
|
357
|
+
boundEntry.boundBy = void 0;
|
|
358
|
+
boundEntry.instanceRef.value = void 0;
|
|
359
|
+
boundEntry = void 0;
|
|
360
|
+
}
|
|
318
361
|
});
|
|
319
362
|
watch(() => rules.value, () => {
|
|
320
363
|
if (props.validateOnRuleChange) validateFields();
|
|
@@ -5,7 +5,7 @@ import { FormItemInputProps } from "../FormItemInput.js";
|
|
|
5
5
|
import { BaseFormItemProps, FeedbackIcons, FormItemProps, ValidateStatus } from "./index.js";
|
|
6
6
|
import { ComponentBaseProps } from "../../config-provider/context.js";
|
|
7
7
|
import { ReportMetaChange } from "../context.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue345 from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/form/FormItem/ItemHolder.d.ts
|
|
11
11
|
type ItemHolderProps = FormItemProps & {
|
|
@@ -16,7 +16,7 @@ type ItemHolderProps = FormItemProps & {
|
|
|
16
16
|
isRequired?: boolean;
|
|
17
17
|
onSubItemMetaChange: ReportMetaChange;
|
|
18
18
|
};
|
|
19
|
-
declare const ItemHolder:
|
|
19
|
+
declare const ItemHolder: vue345.DefineSetupFnComponent<ItemHolderProps, {}, {}, BaseFormItemProps & ComponentBaseProps & Omit<FormItemLabelProps, "requiredMark"> & FormItemInputProps & {
|
|
20
20
|
noStyle?: boolean;
|
|
21
21
|
id?: string;
|
|
22
22
|
hasFeedback?: boolean | {
|
|
@@ -34,6 +34,6 @@ declare const ItemHolder: vue1073.DefineSetupFnComponent<ItemHolderProps, {}, {}
|
|
|
34
34
|
fieldId?: string;
|
|
35
35
|
isRequired?: boolean;
|
|
36
36
|
onSubItemMetaChange: ReportMetaChange;
|
|
37
|
-
} & {},
|
|
37
|
+
} & {}, vue345.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { ItemHolderProps, ItemHolder as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, NamePath } from "../types.js";
|
|
2
2
|
import { FeedbackIcons, ValidateStatus } from "./index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue871 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/form/FormItem/StatusProvider.d.ts
|
|
6
6
|
interface StatusProviderProps {
|
|
@@ -15,6 +15,6 @@ interface StatusProviderProps {
|
|
|
15
15
|
noStyle?: boolean;
|
|
16
16
|
name?: NamePath;
|
|
17
17
|
}
|
|
18
|
-
declare const StatusProvider:
|
|
18
|
+
declare const StatusProvider: vue871.DefineSetupFnComponent<StatusProviderProps, {}, {}, StatusProviderProps & {}, vue871.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { StatusProviderProps, StatusProvider as default };
|
|
@@ -3,7 +3,7 @@ import { NamePath, Rule, TriggerType } from "../types.js";
|
|
|
3
3
|
import { FormItemLayout } from "../Form.js";
|
|
4
4
|
import { FormItemInputProps } from "../FormItemInput.js";
|
|
5
5
|
import { ComponentBaseProps } from "../../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue483 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/form/FormItem/index.d.ts
|
|
@@ -44,6 +44,6 @@ interface FormItemSlots {
|
|
|
44
44
|
help?: () => any;
|
|
45
45
|
}
|
|
46
46
|
interface InternalFormItemProps extends FormItemProps, FormItemEmitsProps {}
|
|
47
|
-
declare const InternalFormItem:
|
|
47
|
+
declare const InternalFormItem: vue483.DefineSetupFnComponent<InternalFormItemProps, FormItemEmits, SlotsType<FormItemSlots>, InternalFormItemProps, vue483.PublicProps>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { BaseFormItemProps, FeedbackIcons, FormItemEmits, FormItemEmitsProps, FormItemProps, FormItemSlots, ValidateStatus, InternalFormItem as default };
|