@unicom-cloud/ui 0.8.170 → 0.8.172
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/.virtual/_rolldown/runtime.js +1 -1
- package/affix/Affix.js +73 -73
- package/affix/constants.js +1 -1
- package/affix/context.js +1 -1
- package/affix/index.js +1 -1
- package/affix/style/index.js +1 -1
- package/alert/Alert.js +23 -33
- package/alert/constants.d.ts +7 -0
- package/alert/constants.js +16 -1
- package/alert/context.js +1 -1
- package/alert/index.js +1 -1
- package/alert/style/index.js +1 -1
- package/anchor/Anchor.js +89 -89
- package/anchor/Link.js +31 -30
- package/anchor/constants.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/style/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/animation/Animation.js +2 -2
- package/animation/constants.d.ts +1 -0
- package/animation/constants.js +2 -1
- package/animation/context.js +1 -1
- package/animation/index.d.ts +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/app/App.d.ts +0 -3
- package/app/App.js +2 -2
- package/app/constants.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/style/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +40 -40
- package/auto-complete/constants.d.ts +1 -0
- package/auto-complete/constants.js +5 -1
- package/auto-complete/context.js +1 -1
- package/auto-complete/index.d.ts +16 -4
- package/auto-complete/index.js +1 -1
- package/auto-complete/style/index.js +1 -1
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/avatar/constants.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/avatar/style/index.js +1 -1
- package/back-top/BackTop.js +49 -49
- package/back-top/constants.js +1 -1
- package/back-top/context.js +1 -1
- package/back-top/index.js +1 -1
- package/back-top/style/index.js +1 -1
- package/badge/Badge.js +10 -10
- package/badge/Count.js +1 -1
- package/badge/constants.d.ts +5 -0
- package/badge/constants.js +23 -1
- package/badge/context.js +1 -1
- package/badge/index.d.ts +1 -1
- package/badge/index.js +7 -7
- package/badge/style/index.js +1 -1
- package/badge/utils.d.ts +0 -5
- package/badge/utils.js +1 -23
- package/border-beam/BorderBeam.js +2 -2
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +1 -1
- package/border-beam/index.d.ts +1 -1
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +2 -2
- package/breadcrumb/Item.d.ts +0 -3
- package/breadcrumb/Item.js +2 -2
- package/breadcrumb/constants.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/breadcrumb/style/index.js +1 -1
- package/button/Button.js +2 -2
- package/button/Group.js +2 -2
- package/button/Toggle.js +2 -2
- package/button/constants.js +1 -1
- package/button/context.js +1 -1
- package/button/index.js +1 -1
- package/button/style/index.js +1 -1
- package/calendar/Calendar.js +101 -90
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/constants.js +1 -1
- package/calendar/context.js +1 -1
- package/calendar/header/Panel.js +37 -31
- package/calendar/header/index.js +90 -79
- package/calendar/hooks/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/calendar/style/index.css +1 -1
- package/calendar/style/index.js +1 -1
- package/card/Card.js +2 -2
- package/card/Grid.js +2 -2
- package/card/Meta.js +2 -2
- package/card/constants.js +1 -1
- package/card/context.js +1 -1
- package/card/index.js +1 -1
- package/card/style/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Carousel.js +2 -2
- package/carousel/Indicator.js +1 -1
- package/carousel/constants.js +1 -1
- package/carousel/context.js +1 -1
- package/carousel/index.js +1 -1
- package/carousel/style/index.js +1 -1
- package/cascader/Cascader.js +3 -3
- package/cascader/base/node.js +8 -8
- package/cascader/base/store.js +1 -1
- package/cascader/constants.js +1 -1
- package/cascader/context.js +1 -1
- package/cascader/hooks/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +112 -112
- package/cascader/panel/Option.js +9 -9
- package/cascader/panel/Search.js +70 -70
- package/cascader/style/index.css +1 -1
- package/cascader/style/index.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.d.ts +0 -3
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.d.ts +0 -3
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/constants.js +1 -1
- package/checkbox/context.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/style/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.d.ts +4 -1
- package/collapse/Item.js +3 -3
- package/collapse/constants.js +1 -1
- package/collapse/context.js +1 -1
- package/collapse/index.d.ts +4 -1
- package/collapse/index.js +1 -1
- package/collapse/style/index.js +1 -1
- package/collapse/utils.js +1 -1
- package/color-picker/ColorPicker.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +3 -3
- package/color-picker/colors.js +1 -1
- package/color-picker/constants.js +1 -1
- package/color-picker/context.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/style/index.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/Comment.js +2 -2
- package/comment/constants.js +1 -1
- package/comment/context.js +1 -1
- package/comment/index.js +1 -1
- package/comment/style/index.js +1 -1
- package/config-provider/ConfigProvider.d.ts +0 -3
- package/config-provider/ConfigProvider.js +3 -3
- package/config-provider/constants.js +1 -1
- package/config-provider/context.d.ts +3 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +1 -1
- package/config-provider/initUI.js +1 -1
- package/config-provider/interface.d.ts +3 -2
- package/config-provider/style/index.js +1 -1
- package/config-provider/useConfigProvider.js +2 -2
- package/config-provider/utils.js +3 -3
- package/constants/index.js +1 -1
- package/copy/Copy.d.ts +0 -3
- package/copy/Copy.js +4 -4
- package/copy/constants.js +1 -1
- package/copy/context.js +1 -1
- package/copy/index.js +1 -1
- package/copy/style/index.js +1 -1
- package/countdown/Countdown.js +2 -2
- package/countdown/constants.js +1 -1
- package/countdown/context.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/style/index.css +1 -1
- package/countdown/style/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.js +7 -7
- package/date-picker/Picker.js +202 -202
- package/date-picker/Range.js +281 -281
- package/date-picker/constants.js +1 -1
- package/date-picker/context.js +1 -1
- package/date-picker/hooks/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/style/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/Descriptions.js +2 -2
- package/descriptions/constants.js +1 -1
- package/descriptions/context.js +1 -1
- package/descriptions/index.js +1 -1
- package/descriptions/style/index.js +1 -1
- package/details/Details.js +2 -2
- package/details/constants.js +1 -1
- package/details/context.js +1 -1
- package/details/index.js +1 -1
- package/details/style/index.js +1 -1
- package/development/Development.js +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +1 -1
- package/development/index.d.ts +1 -1
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/divider/Divider.js +3 -3
- package/divider/constants.js +1 -1
- package/divider/context.js +1 -1
- package/divider/index.js +1 -1
- package/divider/style/index.js +1 -1
- package/draggable/Draggable.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/constants.js +1 -1
- package/draggable/context.js +1 -1
- package/draggable/index.js +1 -1
- package/draggable/style/index.js +1 -1
- package/draw/Draw.d.ts +1 -1
- package/draw/Draw.js +24 -24
- package/draw/common/binary-heap.js +1 -1
- package/draw/common/bounds.js +1 -1
- package/draw/common/colors.js +1 -1
- package/draw/common/constants.js +1 -1
- package/draw/common/editorInterface.js +1 -1
- package/draw/common/emitter.js +1 -1
- package/draw/common/font-metadata.js +1 -1
- package/draw/common/index.js +1 -1
- package/draw/common/keys.js +1 -1
- package/draw/common/points.js +1 -1
- package/draw/common/promise-pool.js +1 -1
- package/draw/common/queue.js +1 -1
- package/draw/common/random.js +1 -1
- package/draw/common/url.js +1 -1
- package/draw/common/utils.js +44 -44
- package/draw/constants.js +1 -1
- package/draw/context.js +1 -1
- package/draw/core/actions/actionAddToLibrary.js +1 -1
- package/draw/core/actions/actionAlign.js +1 -1
- package/draw/core/actions/actionBoundText.js +1 -1
- package/draw/core/actions/actionCanvas.js +1 -1
- package/draw/core/actions/actionClipboard.js +1 -1
- package/draw/core/actions/actionCropEditor.js +1 -1
- package/draw/core/actions/actionDeleteSelected.js +1 -1
- package/draw/core/actions/actionDistribute.js +1 -1
- package/draw/core/actions/actionDuplicateSelection.js +1 -1
- package/draw/core/actions/actionElementLink.js +1 -1
- package/draw/core/actions/actionElementLock.js +1 -1
- package/draw/core/actions/actionEmbeddable.js +1 -1
- package/draw/core/actions/actionExport.js +1 -1
- package/draw/core/actions/actionFinalize.js +1 -1
- package/draw/core/actions/actionFlip.js +1 -1
- package/draw/core/actions/actionFrame.js +1 -1
- package/draw/core/actions/actionGroup.js +1 -1
- package/draw/core/actions/actionHistory.js +1 -1
- package/draw/core/actions/actionLinearEditor.js +1 -1
- package/draw/core/actions/actionMenu.js +1 -1
- package/draw/core/actions/actionProperties.js +1 -1
- package/draw/core/actions/actionSelectAll.js +1 -1
- package/draw/core/actions/actionStyles.js +1 -1
- package/draw/core/actions/actionTextAutoResize.js +1 -1
- package/draw/core/actions/actionToggleGridMode.js +1 -1
- package/draw/core/actions/actionToggleObjectsSnapMode.js +1 -1
- package/draw/core/actions/actionToggleSearchMenu.js +1 -1
- package/draw/core/actions/actionToggleStats.js +1 -1
- package/draw/core/actions/actionToggleViewMode.js +1 -1
- package/draw/core/actions/actionToggleZenMode.js +1 -1
- package/draw/core/actions/actionZindex.js +1 -1
- package/draw/core/actions/index.js +1 -1
- package/draw/core/actions/manager.js +1 -1
- package/draw/core/actions/register.js +1 -1
- package/draw/core/actions/shortcuts.js +1 -1
- package/draw/core/analytics.js +1 -1
- package/draw/core/animated-trail.js +1 -1
- package/draw/core/animation-frame-handler.js +1 -1
- package/draw/core/appState.js +1 -1
- package/draw/core/charts.js +1 -1
- package/draw/core/clients.js +1 -1
- package/draw/core/clipboard.js +1 -1
- package/draw/core/components/Actions.js +1 -1
- package/draw/core/components/ActiveConfirmDialog.js +1 -1
- package/draw/core/components/App.js +1 -1
- package/draw/core/components/BraveMeasureTextError.js +1 -1
- package/draw/core/components/ContextMenu.js +1 -1
- package/draw/core/components/ConvertElementTypePopup.js +1 -1
- package/draw/core/components/DarkModeToggle.js +1 -1
- package/draw/core/components/ElementCanvasButtons.js +1 -1
- package/draw/core/components/ElementLinkDialog.js +1 -1
- package/draw/core/components/Ellipsify.js +1 -1
- package/draw/core/components/ErrorDialog.js +1 -1
- package/draw/core/components/ExportDialog.js +1 -1
- package/draw/core/components/EyeDropper.js +1 -1
- package/draw/core/components/FixedSideContainer.js +1 -1
- package/draw/core/components/Footer.js +1 -1
- package/draw/core/components/HandButton.js +1 -1
- package/draw/core/components/HelpDialog.js +1 -1
- package/draw/core/components/HintViewer.js +1 -1
- package/draw/core/components/ImageExportDialog.js +1 -1
- package/draw/core/components/InitializeApp.js +1 -1
- package/draw/core/components/InlineIcon.js +1 -1
- package/draw/core/components/Island.js +1 -1
- package/draw/core/components/LaserPointerButton.js +1 -1
- package/draw/core/components/LayerUI.js +3 -3
- package/draw/core/components/LibraryMenu.js +1 -1
- package/draw/core/components/LibraryMenuItems.js +1 -1
- package/draw/core/components/LibraryMenuSection.js +1 -1
- package/draw/core/components/LibraryUnit.js +1 -1
- package/draw/core/components/LoadingMessage.js +1 -1
- package/draw/core/components/LockButton.js +1 -1
- package/draw/core/components/MagicButton.js +1 -1
- package/draw/core/components/PasteChartDialog.js +1 -1
- package/draw/core/components/PenModeButton.js +1 -1
- package/draw/core/components/Popover.js +1 -1
- package/draw/core/components/ProjectName.js +1 -1
- package/draw/core/components/Range.js +1 -1
- package/draw/core/components/SVGLayer.js +1 -1
- package/draw/core/components/SearchMenu.js +1 -1
- package/draw/core/components/Stack.js +1 -1
- package/draw/core/components/Toast.js +1 -1
- package/draw/core/components/Trans.js +1 -1
- package/draw/core/components/UnlockPopup.js +1 -1
- package/draw/core/components/canvases/InteractiveCanvas.js +1 -1
- package/draw/core/components/canvases/NewElementCanvas.js +1 -1
- package/draw/core/components/canvases/StaticCanvas.js +1 -1
- package/draw/core/components/canvases/index.js +1 -1
- package/draw/core/components/context.js +1 -1
- package/draw/core/components/{DiagramToCodePlugin → diagram-to-code-plugin}/index.js +2 -2
- package/draw/core/components/hooks.js +1 -1
- package/draw/core/components/icons.js +1 -1
- package/draw/core/components/main-menu/DefaultItems.js +2 -2
- package/draw/core/components/main-menu/MenuItem.js +1 -1
- package/draw/core/components/main-menu/common.js +1 -1
- package/draw/core/components/{OverwriteConfirm/OverwriteConfirmState.js → overwrite-confirm/State.js} +2 -2
- package/draw/core/components/{OverwriteConfirm → overwrite-confirm}/index.js +3 -3
- package/draw/core/components/shapes.js +1 -1
- package/draw/core/components/{Stats → stats}/Angle.js +2 -2
- package/draw/core/components/{Stats → stats}/CanvasGrid.js +2 -2
- package/draw/core/components/{Stats → stats}/Collapsible.js +2 -2
- package/draw/core/components/{Stats → stats}/Dimension.js +2 -2
- package/draw/core/components/{Stats → stats}/DragInput.js +2 -2
- package/draw/core/components/{Stats → stats}/FontSize.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiAngle.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiDimension.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiFontSize.js +2 -2
- package/draw/core/components/{Stats → stats}/MultiPosition.js +2 -2
- package/draw/core/components/{Stats → stats}/Position.js +2 -2
- package/draw/core/components/{Stats → stats}/index.js +2 -2
- package/draw/core/components/{Stats → stats}/utils.js +2 -2
- package/draw/core/context/tunnels.d.ts +1 -1
- package/draw/core/context/tunnels.js +1 -1
- package/draw/core/context/ui-appState.js +1 -1
- package/draw/core/cursor.js +1 -1
- package/draw/core/data/blob.js +1 -1
- package/draw/core/data/encode.js +1 -1
- package/draw/core/data/encryption.js +1 -1
- package/draw/core/data/filesystem.js +1 -1
- package/draw/core/data/image.js +1 -1
- package/draw/core/data/index.js +1 -1
- package/draw/core/data/json.js +1 -1
- package/draw/core/data/library.js +1 -1
- package/draw/core/data/reconcile.js +1 -1
- package/draw/core/data/resave.js +1 -1
- package/draw/core/data/restore.js +1 -1
- package/draw/core/data/utils.js +1 -1
- package/draw/core/deburr.js +1 -1
- package/draw/core/editor-jotai.js +1 -1
- package/draw/core/eraser/index.js +1 -1
- package/draw/core/errors.js +1 -1
- package/draw/core/fonts/DrawFontFace.js +1 -1
- package/draw/core/fonts/Fonts.js +1 -1
- package/draw/core/fonts/index.js +1 -1
- package/draw/core/gesture.js +1 -1
- package/draw/core/history.js +1 -1
- package/draw/core/hooks/useCopiedIndicator.js +1 -1
- package/draw/core/hooks/useCreatePortalContainer.js +1 -1
- package/draw/core/hooks/useEmitter.js +1 -1
- package/draw/core/hooks/useLibraryItemSvg.js +1 -1
- package/draw/core/hooks/useOutsideClick.js +1 -1
- package/draw/core/hooks/useScrollPosition.js +1 -1
- package/draw/core/hooks/useStable.js +1 -1
- package/draw/core/hooks/useTextEditorFocus.js +1 -1
- package/draw/core/hooks/useTransition.js +1 -1
- package/draw/core/i18n.js +1 -1
- package/draw/core/laser-trails.js +1 -1
- package/draw/core/lasso/index.js +1 -1
- package/draw/core/lasso/utils.js +1 -1
- package/draw/core/polyfill.js +1 -1
- package/draw/core/reactUtils.js +1 -1
- package/draw/core/renderer/animation.js +1 -1
- package/draw/core/renderer/helpers.js +1 -1
- package/draw/core/renderer/interactiveScene.js +1 -1
- package/draw/core/renderer/renderNewElementScene.js +1 -1
- package/draw/core/renderer/renderSnaps.js +1 -1
- package/draw/core/renderer/roundRect.js +1 -1
- package/draw/core/renderer/staticScene.js +1 -1
- package/draw/core/renderer/staticSvgScene.js +1 -1
- package/draw/core/scene/Renderer.js +1 -1
- package/draw/core/scene/export.js +1 -1
- package/draw/core/scene/index.js +1 -1
- package/draw/core/scene/normalize.js +1 -1
- package/draw/core/scene/scroll.js +1 -1
- package/draw/core/scene/scrollbars.js +1 -1
- package/draw/core/scene/zoom.js +1 -1
- package/draw/core/shortcut.js +1 -1
- package/draw/core/snapping.js +1 -1
- package/draw/core/wysiwyg/textWysiwyg.js +1 -1
- package/draw/element/Scene.js +1 -1
- package/draw/element/align.js +1 -1
- package/draw/element/arrows/focus.js +1 -1
- package/draw/element/arrows/helpers.js +1 -1
- package/draw/element/binding.js +1 -1
- package/draw/element/bounds.js +1 -1
- package/draw/element/collision.js +1 -1
- package/draw/element/comparisons.js +1 -1
- package/draw/element/containerCache.js +1 -1
- package/draw/element/cropElement.js +1 -1
- package/draw/element/delta.js +1 -1
- package/draw/element/distance.js +1 -1
- package/draw/element/distribute.js +1 -1
- package/draw/element/dragElements.js +1 -1
- package/draw/element/duplicate.js +1 -1
- package/draw/element/elbowArrow.js +1 -1
- package/draw/element/elementLink.js +1 -1
- package/draw/element/embeddable.js +1 -1
- package/draw/element/flowchart.js +1 -1
- package/draw/element/fractionalIndex.js +1 -1
- package/draw/element/frame.js +1 -1
- package/draw/element/groups.js +1 -1
- package/draw/element/heading.js +1 -1
- package/draw/element/image.js +1 -1
- package/draw/element/index.js +1 -1
- package/draw/element/is.js +1 -1
- package/draw/element/linearElementEditor.js +1 -1
- package/draw/element/mutateElement.js +1 -1
- package/draw/element/newElement.js +1 -1
- package/draw/element/positionElementsOnGrid.js +1 -1
- package/draw/element/renderElement.js +1 -1
- package/draw/element/resizeElements.js +1 -1
- package/draw/element/resizeTest.js +1 -1
- package/draw/element/selection.js +1 -1
- package/draw/element/shape.js +1 -1
- package/draw/element/showSelectedShapeActions.js +1 -1
- package/draw/element/sizeHelpers.js +1 -1
- package/draw/element/sortElements.js +1 -1
- package/draw/element/store.js +1 -1
- package/draw/element/textElement.js +1 -1
- package/draw/element/textMeasurements.js +1 -1
- package/draw/element/textWrapping.js +1 -1
- package/draw/element/transform.js +1 -1
- package/draw/element/transformHandles.js +1 -1
- package/draw/element/typeChecks.js +1 -1
- package/draw/element/utils.js +1 -1
- package/draw/element/zindex.js +1 -1
- package/draw/index.d.ts +3 -4
- package/draw/index.js +4 -5
- package/draw/libs/browser-fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-open.js +1 -1
- package/draw/libs/browser-fs-access/fs-access/file-save.js +1 -1
- package/draw/libs/browser-fs-access/index.js +1 -1
- package/draw/libs/browser-fs-access/legacy/directory-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-open.js +1 -1
- package/draw/libs/browser-fs-access/legacy/file-save.js +1 -1
- package/draw/libs/browser-fs-access/supported.js +1 -1
- package/draw/libs/fractional-indexing/index.js +1 -1
- package/draw/libs/fuzzy/index.js +1 -1
- package/draw/libs/glur/index.js +1 -1
- package/draw/libs/glur/mono16.js +1 -1
- package/draw/libs/hachure-fill/index.js +1 -1
- package/draw/libs/image-blob-reduce/index.js +1 -1
- package/draw/libs/image-blob-reduce/lib/image_traverse.js +1 -1
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +1 -1
- package/draw/libs/image-blob-reduce/lib/utils.js +1 -1
- package/draw/libs/jotai/index.js +1 -1
- package/draw/libs/jotai/react/Provider.js +1 -1
- package/draw/libs/jotai/react/useAtom.js +1 -1
- package/draw/libs/jotai/react/useAtomValue.js +1 -1
- package/draw/libs/jotai/react/useSetAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useAtomCallback.js +1 -1
- package/draw/libs/jotai/react/utils/useHydrateAtoms.js +1 -1
- package/draw/libs/jotai/react/utils/useReducerAtom.js +1 -1
- package/draw/libs/jotai/react/utils/useResetAtom.js +1 -1
- package/draw/libs/jotai/react/utils.js +1 -1
- package/draw/libs/jotai/react.js +1 -1
- package/draw/libs/jotai/utils.js +1 -1
- package/draw/libs/jotai/vanilla/atom.js +1 -1
- package/draw/libs/jotai/vanilla/internals.js +1 -1
- package/draw/libs/jotai/vanilla/store.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomFamily.js +1 -1
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +1 -1
- package/draw/libs/jotai/vanilla/utils.js +1 -1
- package/draw/libs/jotai-scope/createIsolation.d.ts +1 -1
- package/draw/libs/jotai-scope/createIsolation.js +2 -2
- package/draw/libs/jotai-scope/index.d.ts +2 -2
- package/draw/libs/jotai-scope/index.js +3 -3
- package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/index.js +2 -2
- package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/scope.js +2 -2
- package/draw/libs/jotai-scope/utils.js +1 -1
- package/draw/libs/laser-pointer/index.js +1 -1
- package/draw/libs/laser-pointer/math.js +1 -1
- package/draw/libs/laser-pointer/simplify.js +1 -1
- package/draw/libs/laser-pointer/state.js +1 -1
- package/draw/libs/markdown-to-text/index.js +1 -1
- package/draw/libs/math/angle.js +1 -1
- package/draw/libs/math/constants.js +1 -1
- package/draw/libs/math/curve.js +1 -1
- package/draw/libs/math/ellipse.js +1 -1
- package/draw/libs/math/index.js +1 -1
- package/draw/libs/math/line.js +1 -1
- package/draw/libs/math/point.js +1 -1
- package/draw/libs/math/polygon.js +1 -1
- package/draw/libs/math/range.js +1 -1
- package/draw/libs/math/rectangle.js +1 -1
- package/draw/libs/math/segment.js +1 -1
- package/draw/libs/math/triangle.js +1 -1
- package/draw/libs/math/utils.js +1 -1
- package/draw/libs/math/vector.js +1 -1
- package/draw/libs/multimath/index.js +1 -1
- package/draw/libs/multimath/lib/wa_detect.js +1 -1
- package/draw/libs/nanoid/index.js +1 -1
- package/draw/libs/nanoid/url-alphabet/index.js +1 -1
- package/draw/libs/pako/index.js +1 -1
- package/draw/libs/path-data-parser/absolutize.js +1 -1
- package/draw/libs/path-data-parser/index.js +1 -1
- package/draw/libs/path-data-parser/normalize.js +1 -1
- package/draw/libs/path-data-parser/parser.js +1 -1
- package/draw/libs/perfect-freehand/getStroke.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokePoints.js +1 -1
- package/draw/libs/perfect-freehand/getStrokeRadius.js +1 -1
- package/draw/libs/perfect-freehand/index.js +1 -1
- package/draw/libs/perfect-freehand/vec.js +1 -1
- package/draw/libs/pica/index.js +1 -1
- package/draw/libs/pica/lib/mathlib.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve.js +1 -1
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/mm_resize/index.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +1 -1
- package/draw/libs/pica/lib/mm_resize/resize_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/index.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +1 -1
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +1 -1
- package/draw/libs/pica/lib/pool.js +1 -1
- package/draw/libs/pica/lib/tiler.js +1 -1
- package/draw/libs/pica/lib/utils.js +1 -1
- package/draw/libs/pica/lib/worker.js +1 -1
- package/draw/libs/png-chunk-text/decode.js +1 -1
- package/draw/libs/png-chunk-text/encode.js +1 -1
- package/draw/libs/png-chunk-text/index.js +1 -1
- package/draw/libs/png-chunks-encode/index.js +1 -1
- package/draw/libs/png-chunks-extract/index.js +1 -1
- package/draw/libs/points-on-curve/curve-to-bezier.js +1 -1
- package/draw/libs/points-on-curve/index.js +1 -1
- package/draw/libs/points-on-path/index.js +1 -1
- package/draw/libs/promise-pool/index.js +1 -1
- package/draw/libs/roughjs/canvas.js +1 -1
- package/draw/libs/roughjs/core.js +1 -1
- package/draw/libs/roughjs/fillers/dashed-filler.js +1 -1
- package/draw/libs/roughjs/fillers/dot-filler.js +1 -1
- package/draw/libs/roughjs/fillers/filler.js +1 -1
- package/draw/libs/roughjs/fillers/hachure-filler.js +1 -1
- package/draw/libs/roughjs/fillers/hatch-filler.js +1 -1
- package/draw/libs/roughjs/fillers/scan-line-hachure.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-filler.js +1 -1
- package/draw/libs/roughjs/fillers/zigzag-line-filler.js +1 -1
- package/draw/libs/roughjs/generator.js +1 -1
- package/draw/libs/roughjs/geometry.js +1 -1
- package/draw/libs/roughjs/index.js +1 -1
- package/draw/libs/roughjs/math.js +1 -1
- package/draw/libs/roughjs/renderer.js +1 -1
- package/draw/libs/roughjs/rough.js +1 -1
- package/draw/libs/roughjs/svg.js +1 -1
- package/draw/libs/sliced/index.js +1 -1
- package/draw/libs/webworkify/index.js +1 -1
- package/draw/style/index.js +1 -1
- package/draw/utils/bbox.js +1 -1
- package/draw/utils/export.js +1 -1
- package/draw/utils/index.js +1 -1
- package/draw/utils/shape.js +1 -1
- package/draw/utils/withinBounds.js +1 -1
- package/drawer/Drawer.js +131 -131
- package/drawer/constants.js +1 -1
- package/drawer/context.js +3 -3
- package/drawer/index.js +1 -1
- package/drawer/style/index.js +1 -1
- package/drawer/use-drawer/Hook.js +1 -1
- package/drawer/use-drawer/index.js +1 -1
- package/dropdown/Button.js +2 -2
- package/dropdown/Dropdown.js +63 -63
- package/dropdown/constants.js +1 -1
- package/dropdown/context.js +1 -1
- package/dropdown/index.js +1 -1
- package/dropdown/style/index.js +1 -1
- package/empty/Empty.js +2 -2
- package/empty/constants.js +1 -1
- package/empty/context.js +1 -1
- package/empty/index.d.ts +1 -1
- package/empty/index.js +1 -1
- package/empty/style/index.css +1 -1
- package/empty/style/index.js +1 -1
- package/flex/Flex.js +3 -3
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.d.ts +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/form/Control.js +138 -139
- package/form/Form.js +3 -3
- package/form/Item.js +2 -2
- package/form/ItemLabel.js +1 -1
- package/form/ItemTip.js +2 -2
- package/form/LabelSymbol.js +1 -1
- package/form/List.d.ts +0 -3
- package/form/List.js +25 -25
- package/form/Provider.js +1 -1
- package/form/constants.js +1 -1
- package/form/context.js +1 -1
- package/form/hooks/useForm.js +1 -1
- package/form/hooks/useFormContext.js +1 -1
- package/form/hooks/useFormState.js +1 -1
- package/form/hooks/useWatch.js +19 -19
- package/form/index.js +1 -1
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/style/index.js +1 -1
- package/form/utils.js +14 -14
- package/global-provider/GlobalProvider.d.ts +0 -3
- package/global-provider/GlobalProvider.js +2 -2
- package/global-provider/constants.js +1 -1
- package/global-provider/context.js +1 -1
- package/global-provider/index.js +1 -1
- package/global-provider/style/index.js +1 -1
- package/grid/Grid.js +2 -2
- package/grid/Item.js +2 -2
- package/grid/constants.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-breakpoint/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-throttle-fn-with-raf/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +3 -3
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useMountLifecycle.d.ts +14 -0
- package/hooks/{useUnmountOnExit.js → useMountLifecycle.js} +2 -2
- package/icon/Icon.js +2 -2
- package/icon/addIconFromCdn.js +21 -19
- package/icon/constants.js +1 -1
- package/icon/context.js +1 -1
- package/icon/index.js +1 -1
- package/icon/style/index.js +1 -1
- package/icon-hover/IconHover.js +2 -2
- package/icon-hover/constants.js +1 -1
- package/icon-hover/context.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icon-hover/style/index.js +1 -1
- package/icons/file/File.js +2 -2
- package/icons/file/context.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/icons.js +1 -1
- package/image/Footer.js +1 -1
- package/image/Image.js +2 -2
- package/image/Preview.js +179 -179
- package/image/PreviewArrow.js +1 -1
- package/image/PreviewGroup.js +62 -61
- package/image/PreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/constants.js +1 -1
- package/image/context.js +3 -3
- package/image/hooks/useImageStatus.js +1 -1
- package/image/hooks/useShowFooter.js +1 -1
- package/image/index.js +1 -1
- package/image/style/index.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +780 -787
- package/input/Button.js +2 -2
- package/input/Core.js +2 -2
- package/input/Group.js +2 -2
- package/input/Input.js +5 -5
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/constants.js +1 -1
- package/input/context.js +1 -1
- package/input/index.js +1 -1
- package/input/style/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/InputNumber.js +2 -2
- package/input-number/constants.js +1 -1
- package/input-number/context.js +1 -1
- package/input-number/decimal.js +1 -1
- package/input-number/hooks/useSelectionRange.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/style/index.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/input-tag/constants.js +1 -1
- package/input-tag/context.js +1 -1
- package/input-tag/hooks/useComputeAutoWidthDelay.js +1 -1
- package/input-tag/index.js +1 -1
- package/input-tag/style/index.js +1 -1
- package/layout/Content.js +2 -2
- package/layout/Footer.js +2 -2
- package/layout/Header.js +2 -2
- package/layout/Layout.js +30 -29
- package/layout/Sider.d.ts +4 -2
- package/layout/Sider.js +37 -40
- package/layout/constants.js +1 -1
- package/layout/context.js +1 -1
- package/layout/index.d.ts +4 -2
- package/layout/index.js +1 -1
- package/layout/style/index.js +1 -1
- package/link/Link.js +2 -2
- package/link/constants.js +1 -1
- package/link/context.js +1 -1
- package/link/index.js +1 -1
- package/link/style/index.js +1 -1
- package/liquid-fill/LiquidFill.js +2 -2
- package/liquid-fill/constants.js +1 -1
- package/liquid-fill/context.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/liquid-fill/style/index.js +1 -1
- package/list/Item.js +2 -2
- package/list/List.js +54 -57
- package/list/Meta.js +2 -2
- package/list/constants.d.ts +1 -0
- package/list/constants.js +9 -1
- package/list/context.js +1 -1
- package/list/index.js +1 -1
- package/list/style/index.js +1 -1
- package/loading/Loading.js +2 -2
- package/loading/constants.js +1 -1
- package/loading/context.js +1 -1
- package/loading/index.js +1 -1
- package/loading/style/index.js +1 -1
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +1 -1
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +1 -1
- package/locale/zh-HK.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/marquee/Marquee.js +1 -1
- package/marquee/constants.js +1 -1
- package/marquee/context.js +1 -1
- package/marquee/index.js +1 -1
- package/marquee/style/index.js +1 -1
- package/mask/Mask.js +2 -2
- package/mask/constants.js +1 -1
- package/mask/context.js +1 -1
- package/mask/index.js +1 -1
- package/mask/style/index.js +1 -1
- package/masonry/Item.js +2 -2
- package/masonry/Masonry.js +2 -2
- package/masonry/constants.js +1 -1
- package/masonry/context.js +1 -1
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/masonry/style/index.js +1 -1
- package/mentions/Mentions.js +2 -2
- package/mentions/constants.js +1 -1
- package/mentions/context.js +1 -1
- package/mentions/index.js +1 -1
- package/mentions/style/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.d.ts +1 -3
- package/menu/Item.js +3 -3
- package/menu/ItemGroup.d.ts +1 -3
- package/menu/ItemGroup.js +3 -3
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/constants.js +1 -1
- package/menu/context.js +1 -1
- package/menu/index.d.ts +3 -10
- package/menu/index.js +2 -3
- package/menu/style/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.d.ts +1 -3
- package/menu/sub-menu/index.js +3 -3
- package/menu/utils.js +47 -42
- package/message/Message.js +4 -4
- package/message/config.js +3 -3
- package/message/constants.js +1 -1
- package/message/context.js +1 -1
- package/message/hooks/useMessage.js +1 -1
- package/message/index.js +1 -1
- package/message/style/index.js +1 -1
- package/message/utils.js +1 -1
- package/modal/Modal.js +167 -167
- package/modal/config.js +1 -1
- package/modal/confirm.js +29 -29
- package/modal/constants.js +1 -1
- package/modal/context.js +4 -4
- package/modal/index.js +1 -1
- package/modal/style/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/modal/utils.js +1 -1
- package/notice/Notice.js +7 -7
- package/notice/config.js +1 -1
- package/notice/constants.js +1 -1
- package/notice/context.js +1 -1
- package/notice/index.js +1 -1
- package/notice/style/index.js +1 -1
- package/notice/utils.js +1 -1
- package/notice/withNotice.js +1 -1
- package/notification/Notification.js +2 -2
- package/notification/config.js +1 -1
- package/notification/constants.js +1 -1
- package/notification/context.js +1 -1
- package/notification/hooks/useNotification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/style/index.js +1 -1
- package/notification/utils.js +1 -1
- package/overflow-ellipsis/Item.js +1 -1
- package/overflow-ellipsis/OverflowEllipsis.js +1 -1
- package/overflow-ellipsis/constants.js +1 -1
- package/overflow-ellipsis/context.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/overflow-ellipsis/style/index.js +1 -1
- package/package.json +1 -1
- package/page-header/PageHeader.js +2 -2
- package/page-header/constants.js +1 -1
- package/page-header/context.js +1 -1
- package/page-header/index.js +1 -1
- package/page-header/style/index.js +1 -1
- package/pagination/Item.js +1 -1
- package/pagination/Jumper.js +1 -1
- package/pagination/Pagination.js +46 -46
- package/pagination/PreNextButton.js +1 -1
- package/pagination/PreNextJump.js +1 -1
- package/pagination/SizeOption.d.ts +2 -2
- package/pagination/SizeOption.js +13 -19
- package/pagination/constants.d.ts +3 -0
- package/pagination/constants.js +11 -1
- package/pagination/context.js +1 -1
- package/pagination/index.d.ts +2 -3
- package/pagination/index.js +5 -5
- package/pagination/interface.js +1 -1
- package/pagination/style/index.js +1 -1
- package/pagination/utils.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/constants.js +1 -1
- package/picker/context.js +1 -1
- package/picker/index.js +1 -1
- package/picker/style/index.js +1 -1
- package/popconfirm/Popconfirm.js +7 -6
- package/popconfirm/constants.js +1 -1
- package/popconfirm/context.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popconfirm/style/index.js +1 -1
- package/popover/Popover.js +35 -35
- package/popover/constants.js +1 -1
- package/popover/context.js +1 -1
- package/popover/index.js +1 -1
- package/popover/style/index.js +1 -1
- package/portal/Portal.js +5 -5
- package/portal/constants.js +1 -1
- package/portal/context.js +1 -1
- package/portal/index.js +1 -1
- package/portal/interface.d.ts +1 -1
- package/portal/style/index.js +1 -1
- package/progress/Circle.js +1 -1
- package/progress/Line.js +1 -1
- package/progress/Progress.js +2 -2
- package/progress/Step.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.d.ts +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/qr-code/QRCode.js +2 -2
- package/qr-code/constants.js +1 -1
- package/qr-code/context.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/qr-code/style/index.js +1 -1
- package/radio/Group.d.ts +0 -3
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.d.ts +0 -3
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/constants.js +1 -1
- package/radio/context.js +1 -1
- package/radio/index.js +1 -1
- package/radio/style/index.js +1 -1
- package/rate/Rate.js +2 -2
- package/rate/constants.js +1 -1
- package/rate/context.js +1 -1
- package/rate/index.js +1 -1
- package/rate/style/index.js +1 -1
- package/resize-box/ResizeBox.js +51 -51
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +64 -64
- package/resize-box/SplitGroup.js +78 -78
- package/resize-box/constants.js +1 -1
- package/resize-box/context.js +1 -1
- package/resize-box/index.js +1 -1
- package/resize-box/style/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/Result.js +2 -2
- package/result/constants.js +1 -1
- package/result/context.js +1 -1
- package/result/index.js +1 -1
- package/result/style/index.js +1 -1
- package/rich-text/RichText.js +107 -107
- package/rich-text/Toolbar.js +195 -196
- package/rich-text/constants.js +1 -1
- package/rich-text/context.js +1 -1
- package/rich-text/index.d.ts +0 -1
- package/rich-text/index.js +2 -3
- package/rich-text/libs/blots/block.js +1 -1
- package/rich-text/libs/blots/break.js +1 -1
- package/rich-text/libs/blots/container.js +1 -1
- package/rich-text/libs/blots/cursor.js +1 -1
- package/rich-text/libs/blots/embed.js +1 -1
- package/rich-text/libs/blots/inline.js +1 -1
- package/rich-text/libs/blots/scroll.js +1 -1
- package/rich-text/libs/blots/text.js +1 -1
- package/rich-text/libs/core/composition.js +1 -1
- package/rich-text/libs/core/editor.js +1 -1
- package/rich-text/libs/core/emitter.js +1 -1
- package/rich-text/libs/core/logger.js +1 -1
- package/rich-text/libs/core/module.js +1 -1
- package/rich-text/libs/core/rich.js +1 -1
- package/rich-text/libs/core/selection.js +1 -1
- package/rich-text/libs/core/theme.js +1 -1
- package/rich-text/libs/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/libs/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/libs/delta/AttributeMap.js +1 -1
- package/rich-text/libs/delta/Op.js +1 -1
- package/rich-text/libs/delta/OpIterator.js +1 -1
- package/rich-text/libs/delta/index.js +1 -1
- package/rich-text/libs/diff/index.js +1 -1
- package/rich-text/libs/formats/align.js +1 -1
- package/rich-text/libs/formats/background.js +1 -1
- package/rich-text/libs/formats/blockquote.js +1 -1
- package/rich-text/libs/formats/bold.js +1 -1
- package/rich-text/libs/formats/code.js +1 -1
- package/rich-text/libs/formats/color.js +1 -1
- package/rich-text/libs/formats/direction.js +1 -1
- package/rich-text/libs/formats/emoji.js +1 -1
- package/rich-text/libs/formats/font.js +1 -1
- package/rich-text/libs/formats/formula.js +1 -1
- package/rich-text/libs/formats/header.js +1 -1
- package/rich-text/libs/formats/hr.js +1 -1
- package/rich-text/libs/formats/image.js +1 -1
- package/rich-text/libs/formats/indent.js +1 -1
- package/rich-text/libs/formats/italic.js +1 -1
- package/rich-text/libs/formats/lineHeight.js +1 -1
- package/rich-text/libs/formats/link.js +1 -1
- package/rich-text/libs/formats/list.js +1 -1
- package/rich-text/libs/formats/script.js +1 -1
- package/rich-text/libs/formats/size.js +1 -1
- package/rich-text/libs/formats/strike.js +1 -1
- package/rich-text/libs/formats/table.js +1 -1
- package/rich-text/libs/formats/underline.js +1 -1
- package/rich-text/libs/formats/video.js +1 -1
- package/rich-text/libs/index.js +1 -1
- package/rich-text/libs/modules/clipboard.js +2 -2
- package/rich-text/libs/modules/history.js +1 -1
- package/rich-text/libs/modules/image-resize/index.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/libs/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/libs/modules/image-resize/options.js +1 -1
- package/rich-text/libs/modules/input.js +1 -1
- package/rich-text/libs/modules/keyboard.js +1 -1
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/index.js +2 -2
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/googleDocs.js +2 -2
- package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/msWord.js +2 -2
- package/rich-text/libs/modules/table.js +1 -1
- package/rich-text/libs/modules/toolbar.js +1 -1
- package/rich-text/libs/modules/uiNode.js +1 -1
- package/rich-text/libs/modules/uploader.js +1 -1
- package/rich-text/libs/parchment/attributor/attributor.js +1 -1
- package/rich-text/libs/parchment/attributor/class.js +1 -1
- package/rich-text/libs/parchment/attributor/store.js +1 -1
- package/rich-text/libs/parchment/attributor/style.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/container.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/libs/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/libs/parchment/blot/block.js +1 -1
- package/rich-text/libs/parchment/blot/embed.js +1 -1
- package/rich-text/libs/parchment/blot/inline.js +1 -1
- package/rich-text/libs/parchment/blot/scroll.js +1 -1
- package/rich-text/libs/parchment/blot/text.js +1 -1
- package/rich-text/libs/parchment/collection/linked-list.js +1 -1
- package/rich-text/libs/parchment/error.js +1 -1
- package/rich-text/libs/parchment/index.js +1 -1
- package/rich-text/libs/parchment/registry.js +1 -1
- package/rich-text/libs/parchment/scope.js +1 -1
- package/rich-text/style/index.js +1 -1
- package/router-error/RouterError.js +1 -1
- package/router-error/constants.js +1 -1
- package/router-error/context.js +1 -1
- package/router-error/index.js +1 -1
- package/router-error/style/index.js +1 -1
- package/row-col/Col.js +2 -2
- package/row-col/Row.js +2 -2
- package/row-col/constants.js +1 -1
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/row-col/style/index.js +1 -1
- package/segmented/Segmented.js +2 -2
- package/segmented/constants.js +1 -1
- package/segmented/context.js +1 -1
- package/segmented/index.js +1 -1
- package/segmented/style/index.js +1 -1
- package/select/Option.d.ts +4 -1
- package/select/Option.js +16 -16
- package/select/OptionGroup.d.ts +4 -1
- package/select/OptionGroup.js +12 -12
- package/select/Select.js +4 -4
- package/select/constants.js +1 -1
- package/select/context.js +1 -1
- package/select/index.d.ts +8 -2
- package/select/index.js +1 -1
- package/select/style/index.css +1 -1
- package/select/style/index.js +1 -1
- package/select/utils.js +35 -34
- package/select-view/Core.js +181 -181
- package/select-view/SelectView.js +30 -30
- package/select-view/constants.js +1 -1
- package/select-view/context.js +1 -1
- package/select-view/index.js +1 -1
- package/select-view/style/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.js +2 -2
- package/skeleton/Text.js +1 -1
- package/skeleton/constants.js +1 -1
- package/skeleton/context.js +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton/style/index.js +1 -1
- package/slider/Button.d.ts +1 -1
- package/slider/Button.js +49 -41
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Slider.js +96 -96
- package/slider/Tick.js +1 -1
- package/slider/constants.js +1 -1
- package/slider/context.js +1 -1
- package/slider/hooks/useInterval.js +1 -1
- package/slider/hooks/useLegalValue.js +1 -1
- package/slider/index.d.ts +1 -1
- package/slider/index.js +1 -1
- package/slider/style/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/Space.js +3 -3
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.d.ts +1 -1
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/speech-synthesis/SpeechSynthesis.js +1 -1
- package/speech-synthesis/constants.js +1 -1
- package/speech-synthesis/context.js +1 -1
- package/speech-synthesis/index.d.ts +1 -1
- package/speech-synthesis/index.js +1 -1
- package/speech-synthesis/style/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.js +2 -2
- package/spin/constants.js +1 -1
- package/spin/context.js +1 -1
- package/spin/index.js +1 -1
- package/spin/style/index.js +1 -1
- package/splitter/Bar.js +1 -1
- package/splitter/Panel.js +2 -2
- package/splitter/Splitter.js +10 -10
- package/splitter/constants.js +1 -1
- package/splitter/context.js +1 -1
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/splitter/style/index.js +1 -1
- package/statistic/Statistic.js +2 -2
- package/statistic/constants.js +1 -1
- package/statistic/context.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/statistic/style/index.js +1 -1
- package/steps/Item.js +2 -2
- package/steps/Steps.js +40 -39
- package/steps/constants.js +1 -1
- package/steps/context.js +1 -1
- package/steps/index.js +1 -1
- package/steps/style/index.js +1 -1
- package/style/constants.js +1 -1
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.d.ts +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/switch/Switch.js +2 -2
- package/switch/constants.js +1 -1
- package/switch/context.js +1 -1
- package/switch/index.js +1 -1
- package/switch/style/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +194 -192
- package/table/constants.js +1 -1
- package/table/context.js +1 -1
- package/table/hooks/useColumns.js +1 -1
- package/table/hooks/useComponent.js +1 -1
- package/table/hooks/useExpand.js +1 -1
- package/table/hooks/useRowSelection.js +1 -1
- package/table/hooks/useSorter.js +1 -1
- package/table/hooks/useStickyClassNames.js +1 -1
- package/table/hooks/useStickyOffsets.js +1 -1
- package/table/hooks/useThResizable.js +1 -1
- package/table/index.d.ts +4 -0
- package/table/index.js +1 -1
- package/table/style/index.js +1 -1
- package/table/summary/Cell.d.ts +0 -3
- package/table/summary/Cell.js +13 -12
- package/table/summary/Row.js +22 -20
- package/table/summary/context.js +1 -1
- package/table/summary/index.d.ts +4 -0
- package/table/summary/index.js +10 -8
- package/table/tbody/DataRecordRenderer.js +1 -1
- package/table/tbody/Td.js +14 -14
- package/table/tbody/Tr.js +1 -1
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +33 -33
- package/table/th-resizable/style/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +2 -2
- package/tabs/Tabs.js +2 -2
- package/tabs/constants.js +1 -1
- package/tabs/context.js +1 -1
- package/tabs/hooks/useDomSize.js +1 -1
- package/tabs/hooks/useHeaderScroll.js +54 -54
- package/tabs/index.js +1 -1
- package/tabs/style/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +51 -52
- package/tabs/utils.js +1 -1
- package/tag/Tag.js +2 -2
- package/tag/constants.js +1 -1
- package/tag/context.js +1 -1
- package/tag/index.js +1 -1
- package/tag/style/index.js +1 -1
- package/tag/utils.js +1 -1
- package/time-picker/Picker.js +115 -115
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/TimePickerRange.js +1 -1
- package/time-picker/constants.js +1 -1
- package/time-picker/context.js +1 -1
- package/time-picker/index.js +1 -1
- package/time-picker/style/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/time-picker/withTimePicker.d.ts +1 -1
- package/time-picker/withTimePicker.js +1 -2
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/timeline/constants.js +1 -1
- package/timeline/context.js +1 -1
- package/timeline/index.js +1 -1
- package/timeline/style/index.js +1 -1
- package/timer/Timer.js +2 -2
- package/timer/constants.js +1 -1
- package/timer/context.js +1 -1
- package/timer/index.d.ts +1 -1
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/toast/Toast.js +1 -1
- package/toast/constants.js +1 -1
- package/toast/context.js +1 -1
- package/toast/index.js +1 -1
- package/toast/style/index.js +1 -1
- package/tooltip/Tooltip.js +24 -29
- package/tooltip/constants.js +1 -1
- package/tooltip/context.js +1 -1
- package/tooltip/index.js +1 -1
- package/tooltip/style/index.js +1 -1
- package/tour/Tour.js +150 -107
- package/tour/constants.js +1 -1
- package/tour/context.js +1 -2
- package/tour/index.js +1 -1
- package/tour/interface.d.ts +0 -2
- package/tour/style/index.css +1 -1
- package/tour/style/index.js +1 -1
- package/tour/utils.d.ts +9 -0
- package/tour/utils.js +20 -0
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +2 -2
- package/transfer/constants.js +1 -1
- package/transfer/context.js +1 -1
- package/transfer/index.js +1 -1
- package/transfer/style/index.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/style/index.js +1 -1
- package/tree/Animation.js +4 -4
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/constants.js +1 -1
- package/tree/context.js +1 -1
- package/tree/index.js +1 -1
- package/tree/style/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/TreeSelect.js +3 -3
- package/tree-select/constants.js +1 -1
- package/tree-select/context.js +1 -1
- package/tree-select/hooks/useKeyCache.js +23 -23
- package/tree-select/hooks/useStateValue.js +1 -1
- package/tree-select/hooks/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/style/index.css +1 -1
- package/tree-select/style/index.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/Trigger.js +297 -308
- package/trigger/constants.d.ts +12 -0
- package/trigger/constants.js +5 -1
- package/trigger/context.js +12 -10
- package/trigger/getPopupStyle.d.ts +19 -2
- package/trigger/getPopupStyle.js +71 -68
- package/trigger/index.js +1 -1
- package/trigger/interface.d.ts +3 -7
- package/trigger/style/index.js +1 -1
- package/trigger/utils.js +1 -1
- package/typewriter/Typewriter.js +2 -2
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +1 -1
- package/typewriter/index.d.ts +1 -1
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.js +1 -1
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +2 -2
- package/typography/Text.js +2 -2
- package/typography/Title.js +2 -2
- package/typography/Typography.js +2 -2
- package/typography/constants.js +1 -1
- package/typography/context.js +1 -1
- package/typography/hooks/useCssEllipsis.js +1 -1
- package/typography/hooks/useEllipsis.js +1 -1
- package/typography/index.js +1 -1
- package/typography/style/index.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/constants.js +1 -1
- package/upload/context.js +1 -1
- package/upload/index.d.ts +1 -4
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.d.ts +1 -4
- package/upload/list/index.js +30 -31
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/style/index.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/contextHolder.js +2 -2
- package/utils/copy.js +1 -1
- package/utils/createGlobalConfigFunction.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.d.ts +0 -1
- package/utils/dom.js +8 -4
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +214 -224
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +377 -2232
- package/utils/names.js +258 -247
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +40 -40
- package/verification-code/constants.js +1 -1
- package/verification-code/context.js +1 -1
- package/verification-code/index.js +1 -1
- package/verification-code/style/index.js +1 -1
- package/version/index.js +6 -6
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +35 -35
- package/virtual-list/constants.js +1 -1
- package/virtual-list/context.js +1 -1
- package/virtual-list/hooks/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hooks/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/style/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +29 -29
- package/watermark/constants.js +1 -1
- package/watermark/context.js +1 -1
- package/watermark/index.js +1 -1
- package/watermark/style/index.js +1 -1
- package/hooks/useUnmountOnExit.d.ts +0 -6
- /package/draw/core/components/{DiagramToCodePlugin → diagram-to-code-plugin}/index.d.ts +0 -0
- /package/draw/core/components/{OverwriteConfirm/OverwriteConfirmState.d.ts → overwrite-confirm/State.d.ts} +0 -0
- /package/draw/core/components/{OverwriteConfirm → overwrite-confirm}/index.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Angle.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/CanvasGrid.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Collapsible.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Dimension.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/DragInput.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/FontSize.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiAngle.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiDimension.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiFontSize.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/MultiPosition.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/Position.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/index.d.ts +0 -0
- /package/draw/core/components/{Stats → stats}/utils.d.ts +0 -0
- /package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/index.d.ts +0 -0
- /package/draw/libs/jotai-scope/{ScopeProvider → scope-provider}/scope.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/index.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/googleDocs.d.ts +0 -0
- /package/rich-text/libs/modules/{normalizeExternalHTML → normalize-external-html}/normalizers/msWord.d.ts +0 -0
package/table/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-29 10:53:33 星期一 山东省济南市 */
|
|
2
2
|
import { isArray as e, isArrayAndNotEmpty as t, isBoolean as n, isFunction as r, isNaN as i, isNil as a, isNumber as o, isObjectLike as s, isPlainObject as c, isString as l, isUndefined as ee } from "../utils/is.js";
|
|
3
3
|
import te from "../utils/className.js";
|
|
4
4
|
import { pickDataAttributes as ne } from "../utils/pick.js";
|
|
@@ -10,52 +10,54 @@ import "../utils/tween.js";
|
|
|
10
10
|
import se from "../hooks/use-isomorphic-layout-effect/index.js";
|
|
11
11
|
import ce from "../hooks/use-resize-observers/index.js";
|
|
12
12
|
import le from "../hooks/use-update-effect/index.js";
|
|
13
|
-
import ue from "../
|
|
14
|
-
import de from "../
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
13
|
+
import { TRIGGER_POSITION_BOTTOM as ue } from "../trigger/constants.js";
|
|
14
|
+
import de from "../spin/index.js";
|
|
15
|
+
import "../pagination/constants.js";
|
|
16
|
+
import fe from "../pagination/index.js";
|
|
17
|
+
import { PropsContext as pe, TableContext as me, defaultProps as he } from "./context.js";
|
|
18
|
+
import ge from "./hooks/useComponent.js";
|
|
19
|
+
import _e from "./hooks/useColumns.js";
|
|
20
|
+
import { deepCloneData as ve, getOriginData as u, getSorterFn as ye, getSorterPriority as be } from "./utils.js";
|
|
21
|
+
import xe from "./hooks/useExpand.js";
|
|
22
|
+
import Se from "./hooks/useRowSelection.js";
|
|
23
|
+
import Ce from "./hooks/useSorter.js";
|
|
24
|
+
import we from "./hooks/useStickyClassNames.js";
|
|
25
|
+
import Te from "./hooks/useStickyOffsets.js";
|
|
26
|
+
import Ee from "../hooks/use-window-size/index.js";
|
|
25
27
|
import d from "./ColGroup.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { Fragment as
|
|
28
|
+
import De from "./tbody/index.js";
|
|
29
|
+
import Oe from "./tfoot/index.js";
|
|
30
|
+
import ke from "./thead/index.js";
|
|
31
|
+
import Ae, { forwardRef as je, useContext as Me, useEffect as Ne, useImperativeHandle as Pe, useMemo as f, useRef as p, useState as m } from "react";
|
|
32
|
+
import Fe from "lodash/merge";
|
|
33
|
+
import { Fragment as Ie, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
32
34
|
//#region components/pc/table/Table.tsx
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
let { prefixCls:
|
|
35
|
+
var Le = [], Re = [];
|
|
36
|
+
function ze(je, ze) {
|
|
37
|
+
let { prefixCls: Be, getPrefixCls: Ve, loadingElement: He, size: Ue, renderEmpty: We, componentConfig: Ge, rtl: _ } = Me(ie), Ke = Me(pe), v = Fe({}, he, Ge?.Table, Ke, je), { style: qe, className: Je, component: Ye, border: y, borderCell: Xe, columns: Ze = Re, data: b = Le, scroll: x, noDataElement: Qe, showHeader: $e, stripe: et, hover: tt, pagination: S, onChange: C, pagePosition: w, childrenColumnName: T, indentSize: nt, rowSelection: E, tableLayoutFixed: rt, caption: it, header: at, footer: ot, virtualized: D, renderPagination: st, summary: ct, rowKey: O, triggerProps: lt, size: ut = Ue, expandProps: dt, loading: ft, consoleTable: pt } = v, k = ft;
|
|
36
38
|
n(k) && (k = { loading: k });
|
|
37
|
-
let
|
|
38
|
-
let e =
|
|
39
|
-
return l(e) && (e = Number.parseFloat(e), i(e) && (e =
|
|
40
|
-
}, [
|
|
39
|
+
let mt = f(() => {
|
|
40
|
+
let e = nt;
|
|
41
|
+
return l(e) && (e = Number.parseFloat(e), i(e) && (e = he.indentSize)), e;
|
|
42
|
+
}, [nt]), A = c(S) ? S : {}, j = c(x) && x.x, ht = f(() => ve(b, T), [b, T]), M = Ve?.("table"), gt = [
|
|
41
43
|
"default",
|
|
42
44
|
"mini",
|
|
43
45
|
"small",
|
|
44
46
|
"large"
|
|
45
|
-
].includes(
|
|
46
|
-
function
|
|
47
|
+
].includes(ut) ? ut : "default", N = p(null), _t = p(null), P = p(null), F = p(null), vt = p(null), yt = p(null), bt = p(null), I = p(null), L = p(null), xt = p(null), St = p(null), Ct = p(null), R = p(0), z = p([]), wt = p(!1), [Tt, B] = _e(v), { currentFilters: Et, defaultSorters: Dt } = Gt(), [V, Ot] = m(1), [kt, At] = m(A.pageSize || A.defaultPageSize || 10), [jt, Mt] = m(Et), [Nt, Pt] = m(0), [Ft, It] = m([]), Lt = Te(B), [Rt, zt] = we(Tt, B, M), { currentSorter: H, activeSorters: U, getNextActiveSorters: Bt, updateStateSorters: Vt } = Ce(B, Dt), { ComponentTable: W, ComponentBodyWrapper: Ht, ComponentHeaderWrapper: Ut } = ge(Ye), Wt = f(() => r(O) ? (e) => O(u(e)) : (e) => e[O], [O]);
|
|
48
|
+
function Gt() {
|
|
47
49
|
let e = {}, t = [];
|
|
48
50
|
return B.forEach((n) => {
|
|
49
51
|
let r = n.dataIndex || n.key;
|
|
50
52
|
n.defaultFilters && (e[r] = n.defaultFilters), n.filteredValue && (e[r] = n.filteredValue);
|
|
51
53
|
let i = "defaultSortOrder" in n && !a(n.defaultSortOrder), s = "sortOrder" in n && !a(n.sortOrder);
|
|
52
54
|
if (i || s) {
|
|
53
|
-
let e =
|
|
55
|
+
let e = be(n.sorter), i = s ? n.sortOrder : n.defaultSortOrder;
|
|
54
56
|
if (i) {
|
|
55
57
|
let a = {
|
|
56
58
|
field: r,
|
|
57
59
|
direction: i,
|
|
58
|
-
sorterFn:
|
|
60
|
+
sorterFn: ye(n.sorter),
|
|
59
61
|
priority: e
|
|
60
62
|
};
|
|
61
63
|
o(e) ? t.every((e) => o(e.priority) || !e.direction) && t.push(a) : t.every((e) => !e.direction) ? t.push(a) : t = [a];
|
|
@@ -72,25 +74,25 @@ function Re(Ae, Re) {
|
|
|
72
74
|
let r = e.key || e.dataIndex || n;
|
|
73
75
|
ee(r) || (t[r] = e.filteredValue);
|
|
74
76
|
}), t;
|
|
75
|
-
}, [B]), K = f(() => Object.keys(G).length ? G :
|
|
76
|
-
function
|
|
77
|
-
let n =
|
|
77
|
+
}, [B]), K = f(() => Object.keys(G).length ? G : jt, [jt, G]);
|
|
78
|
+
function Kt(e, t) {
|
|
79
|
+
let n = bn(t);
|
|
78
80
|
if (!n) return;
|
|
79
81
|
let r = {
|
|
80
82
|
direction: e,
|
|
81
83
|
field: t,
|
|
82
|
-
sorterFn:
|
|
83
|
-
priority:
|
|
84
|
-
}, i =
|
|
85
|
-
|
|
86
|
-
let a =
|
|
84
|
+
sorterFn: ye(n.sorter),
|
|
85
|
+
priority: be(n.sorter)
|
|
86
|
+
}, i = Bt(r);
|
|
87
|
+
Vt(r, i);
|
|
88
|
+
let a = $t(r, i, K), o = X(a);
|
|
87
89
|
C?.(J(a), r, K, {
|
|
88
90
|
currentData: u(o),
|
|
89
91
|
currentAllData: u(a),
|
|
90
92
|
action: "sort"
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
|
-
function
|
|
95
|
+
function qt(e) {
|
|
94
96
|
let t = function(e, t) {
|
|
95
97
|
return (n, r) => {
|
|
96
98
|
let i = e(n, r);
|
|
@@ -107,7 +109,7 @@ function Re(Ae, Re) {
|
|
|
107
109
|
return 0;
|
|
108
110
|
};
|
|
109
111
|
}
|
|
110
|
-
function
|
|
112
|
+
function Jt(n, r) {
|
|
111
113
|
let i = {
|
|
112
114
|
...K,
|
|
113
115
|
[n.dataIndex]: r
|
|
@@ -116,53 +118,53 @@ function Re(Ae, Re) {
|
|
|
116
118
|
...G
|
|
117
119
|
};
|
|
118
120
|
if (t(r)) {
|
|
119
|
-
|
|
120
|
-
let e =
|
|
121
|
+
Mt(a);
|
|
122
|
+
let e = $t(H, U, i), t = X(e);
|
|
121
123
|
C?.(J(e), U.length === 1 ? U[0] : U, i, {
|
|
122
124
|
currentData: u(t),
|
|
123
125
|
currentAllData: u(e),
|
|
124
126
|
action: "filter"
|
|
125
127
|
});
|
|
126
|
-
} else e(r) && !r.length &&
|
|
128
|
+
} else e(r) && !r.length && Yt(n);
|
|
127
129
|
}
|
|
128
|
-
function
|
|
130
|
+
function Yt({ dataIndex: e }) {
|
|
129
131
|
let t = { ...K };
|
|
130
|
-
delete t[e],
|
|
131
|
-
let n =
|
|
132
|
+
delete t[e], Mt(t);
|
|
133
|
+
let n = $t(H, U, t), r = X(n);
|
|
132
134
|
C?.(J(n), U.length === 1 ? U[0] : U, t, {
|
|
133
135
|
currentData: u(r),
|
|
134
136
|
currentAllData: u(n),
|
|
135
137
|
action: "filter"
|
|
136
138
|
});
|
|
137
139
|
}
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
let a = (
|
|
140
|
+
let Xt = !!B.find((e) => e.fixed === "left"), Zt = !!B.find((e) => e.fixed === "right"), Qt = Xt || Zt;
|
|
141
|
+
function $t(t, n, i) {
|
|
142
|
+
let a = (ht || []).slice();
|
|
141
143
|
Object.keys(i).forEach((e) => {
|
|
142
144
|
if (i[e]?.length) {
|
|
143
|
-
let t =
|
|
145
|
+
let t = bn(e);
|
|
144
146
|
t && r(t.onFilter) && (a = a.filter((n) => i[e].reduce((e, r) => e || t.onFilter(r, n), !1)));
|
|
145
147
|
}
|
|
146
148
|
});
|
|
147
|
-
let o = (t) => t.slice().sort(
|
|
149
|
+
let o = (t) => t.slice().sort(qt(n)).map((t) => e(t[T]) ? {
|
|
148
150
|
...t,
|
|
149
151
|
[T]: o(t[T])
|
|
150
152
|
} : t);
|
|
151
153
|
return t.direction && r(t.sorterFn) || n.length ? o(a) : a;
|
|
152
154
|
}
|
|
153
|
-
let q =
|
|
155
|
+
let q = $t(H, U, K);
|
|
154
156
|
function J(t = q) {
|
|
155
|
-
let n = A.pageSize ||
|
|
156
|
-
i = w === "tl" || w === "bl" ?
|
|
157
|
+
let n = A.pageSize || kt || 10, r = gt, i = "top";
|
|
158
|
+
i = w === "tl" || w === "bl" ? ue : "top";
|
|
157
159
|
let a = e(t) ? t.length : 0, o = Math.ceil(a / n) < V ? 1 : V;
|
|
158
|
-
o !== V &&
|
|
160
|
+
o !== V && Ot(o);
|
|
159
161
|
let c = {
|
|
160
162
|
size: r,
|
|
161
163
|
total: a,
|
|
162
164
|
pageSize: n,
|
|
163
165
|
current: o,
|
|
164
166
|
selectProps: { triggerProps: {
|
|
165
|
-
...
|
|
167
|
+
...lt,
|
|
166
168
|
position: i
|
|
167
169
|
} }
|
|
168
170
|
};
|
|
@@ -172,16 +174,16 @@ function Re(Ae, Re) {
|
|
|
172
174
|
}), c = {
|
|
173
175
|
...c,
|
|
174
176
|
...A
|
|
175
|
-
}, c.onChange =
|
|
177
|
+
}, c.onChange = xn, c;
|
|
176
178
|
}
|
|
177
|
-
let
|
|
178
|
-
function X(e = q, t =
|
|
179
|
+
let en = J(), Y = X();
|
|
180
|
+
function X(e = q, t = en) {
|
|
179
181
|
let { current: n = 0, pageSize: r = 10 } = t;
|
|
180
182
|
return S === !1 || c(S) && b.length <= r ? e : e.slice((n - 1) * r, n * r);
|
|
181
183
|
}
|
|
182
|
-
let Z = !!x?.y, Q =
|
|
184
|
+
let Z = !!x?.y, Q = ct?.(u(q)), tn = ct && Ae.isValidElement(Q) && Q.props.fixed, nn = Z && tn;
|
|
183
185
|
se(() => {
|
|
184
|
-
|
|
186
|
+
an(), I.current;
|
|
185
187
|
let e = L.current;
|
|
186
188
|
return N.current, P.current, e?.parentNode, () => {};
|
|
187
189
|
}, [
|
|
@@ -189,8 +191,8 @@ function Re(Ae, Re) {
|
|
|
189
191
|
L.current,
|
|
190
192
|
N.current,
|
|
191
193
|
P.current,
|
|
192
|
-
Yt,
|
|
193
194
|
Xt,
|
|
195
|
+
Zt,
|
|
194
196
|
x?.x,
|
|
195
197
|
x?.y,
|
|
196
198
|
B.length,
|
|
@@ -199,80 +201,80 @@ function Re(Ae, Re) {
|
|
|
199
201
|
Y.length === 0
|
|
200
202
|
]), le(() => {
|
|
201
203
|
let { total: e, pageSize: t } = J(b);
|
|
202
|
-
Math.ceil(e / t) < V &&
|
|
204
|
+
Math.ceil(e / t) < V && Ot(1);
|
|
203
205
|
}, [b?.length]), le(() => {
|
|
204
|
-
|
|
206
|
+
cn();
|
|
205
207
|
}, [
|
|
206
208
|
b,
|
|
207
|
-
Yt,
|
|
208
209
|
Xt,
|
|
210
|
+
Zt,
|
|
209
211
|
_
|
|
210
|
-
]),
|
|
212
|
+
]), Pe(ze, () => ({
|
|
211
213
|
getRootElement() {
|
|
212
|
-
return
|
|
214
|
+
return rn();
|
|
213
215
|
},
|
|
214
216
|
scrollIntoView(e) {
|
|
215
|
-
let t =
|
|
217
|
+
let t = _t.current?.getVirtualList?.();
|
|
216
218
|
t && t.scrollTo({ key: e });
|
|
217
219
|
}
|
|
218
220
|
}));
|
|
219
|
-
function
|
|
221
|
+
function rn() {
|
|
220
222
|
return F.current;
|
|
221
223
|
}
|
|
222
|
-
le(() => (
|
|
223
|
-
|
|
224
|
-
}, [
|
|
225
|
-
function
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
let e =
|
|
224
|
+
le(() => (On(), () => {}), [$e]), ce((e) => {
|
|
225
|
+
an();
|
|
226
|
+
}, [on()], { immediate: !0 }), Ee(an);
|
|
227
|
+
function an() {
|
|
228
|
+
if (Qt || j) {
|
|
229
|
+
cn();
|
|
230
|
+
let e = on();
|
|
229
231
|
if (e) {
|
|
230
232
|
let t = e.clientWidth ?? e.getBoundingClientRect().width;
|
|
231
|
-
|
|
233
|
+
mt && (t -= mt - 16), Pt(t);
|
|
232
234
|
}
|
|
233
235
|
}
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
function an() {
|
|
237
|
-
return N.current || yt.current || vt.current || _t.current || F.current;
|
|
236
|
+
On();
|
|
238
237
|
}
|
|
239
238
|
function on() {
|
|
239
|
+
return N.current || bt.current || yt.current || vt.current || F.current;
|
|
240
|
+
}
|
|
241
|
+
function sn() {
|
|
240
242
|
I.current, L.current;
|
|
241
243
|
let e = N.current;
|
|
242
244
|
P.current;
|
|
243
|
-
let t = F.current, n = Z ? e :
|
|
245
|
+
let t = F.current, n = Z ? e : St.current?.parentNode;
|
|
244
246
|
if (!t) return;
|
|
245
247
|
let r = t.classList;
|
|
246
248
|
if (n) {
|
|
247
249
|
let e = _ ? -n.scrollLeft : n.scrollLeft, t = e === 0, i = e + 1 >= n.children[0].getBoundingClientRect().width - n.getBoundingClientRect().width;
|
|
248
|
-
t && i ?
|
|
249
|
-
} else
|
|
250
|
+
t && i ? dn(r, `${M}-scroll-position-both`) : t ? dn(r, `${M}-scroll-position-${_ ? "right" : "left"}`) : i ? dn(r, `${M}-scroll-position-${_ ? "left" : "right"}`) : dn(r, `${M}-scroll-position-middle`);
|
|
251
|
+
} else un(r);
|
|
250
252
|
}
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
253
|
+
function cn() {
|
|
254
|
+
if (Qt || j) {
|
|
253
255
|
let e = F.current;
|
|
254
256
|
if (e) {
|
|
255
257
|
let t = e.classList;
|
|
256
|
-
|
|
258
|
+
Xt && ln(t, `${M}-has-fixed-col-left`), Zt && ln(t, `${M}-has-fixed-col-right`);
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
sn();
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
|
-
function
|
|
263
|
+
function ln(e, t) {
|
|
262
264
|
e instanceof DOMTokenList && (e.contains(t) || e.add(t));
|
|
263
265
|
}
|
|
264
|
-
function
|
|
266
|
+
function un(e) {
|
|
265
267
|
e instanceof DOMTokenList && (e.remove(`${M}-scroll-position-both`), e.remove(`${M}-scroll-position-left`), e.remove(`${M}-scroll-position-right`), e.remove(`${M}-scroll-position-middle`));
|
|
266
268
|
}
|
|
267
|
-
function
|
|
268
|
-
e.contains(t) || (
|
|
269
|
+
function dn(e, t) {
|
|
270
|
+
e.contains(t) || (un(e), e.add(t));
|
|
269
271
|
}
|
|
270
|
-
let { selectedRowKeys:
|
|
271
|
-
function
|
|
272
|
+
let { selectedRowKeys: fn, indeterminateKeys: pn, onCheckAll: mn, onCheck: hn, onCheckRadio: gn, setSelectedRowKeys: _n, allSelectedRowKeys: vn, flattenData: yn } = Se(v, Y, ht, Wt);
|
|
273
|
+
function bn(e) {
|
|
272
274
|
return B.find((t, n) => ee(t.key) ? ee(t.dataIndex) ? o(e) ? n === e : !1 : t.dataIndex === e : o(t.key) && l(e) ? t.key.toString() === e : t.key === e);
|
|
273
275
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
276
|
+
function xn(e, t) {
|
|
277
|
+
Ot(e), At(t), e !== V && Sn(), E && !E.checkCrossPage && fn.length && (_n([]), E.onChange?.([], []));
|
|
276
278
|
let n = {
|
|
277
279
|
...J(),
|
|
278
280
|
current: e,
|
|
@@ -284,7 +286,7 @@ function Re(Ae, Re) {
|
|
|
284
286
|
action: "paginate"
|
|
285
287
|
}), A.onChange?.(e, t);
|
|
286
288
|
}
|
|
287
|
-
function
|
|
289
|
+
function Sn() {
|
|
288
290
|
let e = N.current;
|
|
289
291
|
e && e.scrollTo({
|
|
290
292
|
top: 0,
|
|
@@ -292,7 +294,7 @@ function Re(Ae, Re) {
|
|
|
292
294
|
});
|
|
293
295
|
}
|
|
294
296
|
function $(e) {
|
|
295
|
-
let { target: t } = e ?? {}, { scrollLeft: n } = t ?? {}, r = I.current, i = L.current, a =
|
|
297
|
+
let { target: t } = e ?? {}, { scrollLeft: n } = t ?? {}, r = I.current, i = L.current, a = _t.current, o = N.current, s = P.current, c = i?.parentNode || r;
|
|
296
298
|
if (z.current.includes(t)) {
|
|
297
299
|
z.current = z.current.filter((e, n, r) => e !== t), R.current = n;
|
|
298
300
|
return;
|
|
@@ -306,17 +308,17 @@ function Re(Ae, Re) {
|
|
|
306
308
|
].filter((e, n, r) => !!e && e !== t);
|
|
307
309
|
z.current = e, e.forEach((e, t, r) => {
|
|
308
310
|
e.scrollLeft = n;
|
|
309
|
-
}),
|
|
311
|
+
}), cn();
|
|
310
312
|
}
|
|
311
313
|
R.current = n;
|
|
312
314
|
}
|
|
313
|
-
function
|
|
314
|
-
let { target: t } = e, { scrollLeft: n } = t ?? {}, r =
|
|
315
|
-
n === R.current || (r.scrollLeft = n,
|
|
315
|
+
function Cn(e) {
|
|
316
|
+
let { target: t } = e, { scrollLeft: n } = t ?? {}, r = St.current;
|
|
317
|
+
n === R.current || (r.scrollLeft = n, cn()), R.current = n;
|
|
316
318
|
}
|
|
317
|
-
let [
|
|
318
|
-
x && ((o(x.x) || l(x.x)) && (
|
|
319
|
-
function
|
|
319
|
+
let [wn, Tn] = xe(v, yn, Wt), En = {}, Dn = {};
|
|
320
|
+
x && ((o(x.x) || l(x.x)) && (En = { width: x.x }), (o(x.y) || l(x.y)) && (Dn = { maxHeight: x.y }));
|
|
321
|
+
function On() {
|
|
320
322
|
let e = I.current, t = L.current, n = N.current, r = P.current, i = t?.parentNode || e, a = ae(i);
|
|
321
323
|
if (a) {
|
|
322
324
|
let e = `-${a}px`;
|
|
@@ -324,101 +326,101 @@ function Re(Ae, Re) {
|
|
|
324
326
|
}
|
|
325
327
|
setTimeout(() => {
|
|
326
328
|
let e = oe(n);
|
|
327
|
-
e ? (`${e}`, i && (
|
|
329
|
+
e ? (`${e}`, i && (wt.current = !0, i.style.overflowY = "scroll"), r && (r.style.overflowY = "scroll")) : wt.current && (wt.current = !1, i && (i.style.overflowY = "auto"), r && (r.style.overflowY = "auto"));
|
|
328
330
|
}, 7);
|
|
329
331
|
}
|
|
330
|
-
let
|
|
332
|
+
let kn = /* @__PURE__ */ h(ke, {
|
|
331
333
|
...v,
|
|
332
334
|
activeSorters: U,
|
|
333
335
|
currentSorter: H,
|
|
334
|
-
selectedRowKeys:
|
|
336
|
+
selectedRowKeys: fn,
|
|
335
337
|
currentFilters: K,
|
|
336
|
-
onCheckAll:
|
|
337
|
-
onSort:
|
|
338
|
+
onCheckAll: mn,
|
|
339
|
+
onSort: Kt,
|
|
338
340
|
data: Y,
|
|
339
|
-
onHandleFilter:
|
|
340
|
-
onHandleFilterReset:
|
|
341
|
+
onHandleFilter: Jt,
|
|
342
|
+
onHandleFilterReset: Yt,
|
|
341
343
|
prefixCls: M,
|
|
342
|
-
allSelectedRowKeys:
|
|
343
|
-
groupColumns:
|
|
344
|
-
stickyOffsets:
|
|
345
|
-
groupStickyClassNames:
|
|
344
|
+
allSelectedRowKeys: vn,
|
|
345
|
+
groupColumns: Tt,
|
|
346
|
+
stickyOffsets: Lt,
|
|
347
|
+
groupStickyClassNames: Rt
|
|
346
348
|
});
|
|
347
|
-
function
|
|
349
|
+
function An() {
|
|
348
350
|
let e = j && x.x === "max-content";
|
|
349
|
-
return Z || D ? /* @__PURE__ */ h(
|
|
351
|
+
return Z || D ? /* @__PURE__ */ h(Ut, {
|
|
350
352
|
ref: I,
|
|
351
353
|
className: `${M}-header`,
|
|
352
354
|
onScroll: $,
|
|
353
355
|
children: /* @__PURE__ */ g(W, {
|
|
354
356
|
ref: L,
|
|
355
|
-
style: e ? {} :
|
|
357
|
+
style: e ? {} : En,
|
|
356
358
|
className: `${M}-header-table`,
|
|
357
359
|
children: [/* @__PURE__ */ h(d, {
|
|
358
360
|
columns: B,
|
|
359
361
|
prefixCls: M,
|
|
360
362
|
producer: !1,
|
|
361
|
-
columnWidths: e && x.y ?
|
|
362
|
-
}),
|
|
363
|
+
columnWidths: e && x.y ? Ft : null
|
|
364
|
+
}), kn]
|
|
363
365
|
})
|
|
364
|
-
}) :
|
|
366
|
+
}) : kn;
|
|
365
367
|
}
|
|
366
|
-
let
|
|
368
|
+
let jn = Q && /* @__PURE__ */ h(Oe, {
|
|
367
369
|
prefixCls: M,
|
|
368
|
-
summary:
|
|
370
|
+
summary: ct,
|
|
369
371
|
data: Y,
|
|
370
372
|
columns: B,
|
|
371
|
-
stickyOffsets:
|
|
372
|
-
stickyClassNames:
|
|
373
|
-
}),
|
|
373
|
+
stickyOffsets: Lt,
|
|
374
|
+
stickyClassNames: zt
|
|
375
|
+
}), Mn = /* @__PURE__ */ h(De, {
|
|
374
376
|
...v,
|
|
375
377
|
ref: (e) => {
|
|
376
|
-
|
|
378
|
+
_t.current = e, D && (Y.length, N.current = e?.getRootElement?.());
|
|
377
379
|
},
|
|
378
|
-
selectedRowKeys:
|
|
379
|
-
indeterminateKeys:
|
|
380
|
-
expandedRowKeys:
|
|
381
|
-
onCheck:
|
|
382
|
-
onCheckRadio:
|
|
383
|
-
onClickExpandBtn:
|
|
380
|
+
selectedRowKeys: fn,
|
|
381
|
+
indeterminateKeys: pn,
|
|
382
|
+
expandedRowKeys: wn,
|
|
383
|
+
onCheck: hn,
|
|
384
|
+
onCheckRadio: gn,
|
|
385
|
+
onClickExpandBtn: Tn,
|
|
384
386
|
columns: B,
|
|
385
387
|
data: Y,
|
|
386
388
|
prefixCls: M,
|
|
387
|
-
hasFixedColumn:
|
|
388
|
-
tableViewWidth:
|
|
389
|
-
indentSize:
|
|
390
|
-
noDataElement:
|
|
389
|
+
hasFixedColumn: Qt,
|
|
390
|
+
tableViewWidth: Nt,
|
|
391
|
+
indentSize: mt,
|
|
392
|
+
noDataElement: Qe || We?.(re),
|
|
391
393
|
activeSorters: U,
|
|
392
394
|
currentSorter: H,
|
|
393
|
-
stickyOffsets:
|
|
394
|
-
stickyClassNames:
|
|
395
|
-
getRowKey:
|
|
395
|
+
stickyOffsets: Lt,
|
|
396
|
+
stickyClassNames: zt,
|
|
397
|
+
getRowKey: Wt,
|
|
396
398
|
onScroll: $
|
|
397
|
-
}),
|
|
398
|
-
if (
|
|
399
|
-
function
|
|
399
|
+
}), Nn = !D && !nn ? /* @__PURE__ */ g(Ie, { children: [Mn, jn] }) : Mn;
|
|
400
|
+
if (Ne(() => (pt && console.table(b), () => {}), [b, pt]), !t(Ze)) return null;
|
|
401
|
+
function Pn() {
|
|
400
402
|
let e = c(x) && x.x === "max-content" && !!x.y && t(b);
|
|
401
|
-
return Z && !D ? /* @__PURE__ */ h(
|
|
403
|
+
return Z && !D ? /* @__PURE__ */ h(Ht, {
|
|
402
404
|
ref: N,
|
|
403
|
-
style:
|
|
405
|
+
style: Dn,
|
|
404
406
|
className: te(`${M}-content-body`, `${M}-body`),
|
|
405
407
|
onScroll: $,
|
|
406
408
|
children: /* @__PURE__ */ g(W, {
|
|
407
|
-
ref:
|
|
408
|
-
style:
|
|
409
|
+
ref: xt,
|
|
410
|
+
style: En,
|
|
409
411
|
className: `${M}-body-table`,
|
|
410
412
|
children: [/* @__PURE__ */ h(d, {
|
|
411
413
|
columns: B,
|
|
412
414
|
prefixCls: M,
|
|
413
415
|
producer: e,
|
|
414
|
-
onSetColumnWidths:
|
|
415
|
-
expandedRowKeys:
|
|
416
|
+
onSetColumnWidths: It,
|
|
417
|
+
expandedRowKeys: wn,
|
|
416
418
|
data: b
|
|
417
|
-
}),
|
|
419
|
+
}), Nn]
|
|
418
420
|
})
|
|
419
|
-
}) :
|
|
421
|
+
}) : Nn;
|
|
420
422
|
}
|
|
421
|
-
function
|
|
423
|
+
function Fn() {
|
|
422
424
|
let e = {};
|
|
423
425
|
j && (e = { width: x.x });
|
|
424
426
|
let t = /* @__PURE__ */ h("div", {
|
|
@@ -426,37 +428,37 @@ function Re(Ae, Re) {
|
|
|
426
428
|
ref: P,
|
|
427
429
|
onScroll: $,
|
|
428
430
|
children: /* @__PURE__ */ g(W, {
|
|
429
|
-
ref:
|
|
431
|
+
ref: Ct,
|
|
430
432
|
style: e,
|
|
431
433
|
className: `${M}-tfoot-table`,
|
|
432
434
|
children: [/* @__PURE__ */ h(d, {
|
|
433
435
|
columns: B,
|
|
434
436
|
prefixCls: M
|
|
435
|
-
}),
|
|
437
|
+
}), jn]
|
|
436
438
|
})
|
|
437
|
-
}), n = Q && Z &&
|
|
438
|
-
|
|
439
|
+
}), n = Q && Z && tn === "top", i = Q && (Z && tn === "bottom" || D), a = /* @__PURE__ */ g(Ie, { children: [
|
|
440
|
+
$e ? An() : null,
|
|
439
441
|
n && t,
|
|
440
|
-
|
|
442
|
+
Pn(),
|
|
441
443
|
i && t
|
|
442
|
-
] }), o = r(
|
|
443
|
-
return /* @__PURE__ */ g(
|
|
444
|
+
] }), o = r(it) ? it(Y) : it, s = r(at) ? at(Y) : at, c = r(ot) ? ot(Y) : ot;
|
|
445
|
+
return /* @__PURE__ */ g(Ie, { children: [
|
|
444
446
|
!!s && /* @__PURE__ */ h("div", {
|
|
445
447
|
className: `${M}-header-`,
|
|
446
448
|
children: s
|
|
447
449
|
}),
|
|
448
450
|
/* @__PURE__ */ h("div", {
|
|
449
|
-
ref:
|
|
451
|
+
ref: vt,
|
|
450
452
|
className: `${M}-container`,
|
|
451
453
|
children: /* @__PURE__ */ h("div", {
|
|
452
|
-
ref:
|
|
454
|
+
ref: yt,
|
|
453
455
|
className: `${M}-content-scroll`,
|
|
454
456
|
children: /* @__PURE__ */ h("div", {
|
|
455
|
-
ref:
|
|
457
|
+
ref: bt,
|
|
456
458
|
className: `${M}-content-inner`,
|
|
457
|
-
onScroll: Z ? void 0 :
|
|
459
|
+
onScroll: Z ? void 0 : Cn,
|
|
458
460
|
children: Z || D ? a : /* @__PURE__ */ g(W, {
|
|
459
|
-
ref:
|
|
461
|
+
ref: St,
|
|
460
462
|
style: e,
|
|
461
463
|
className: `${M}-content-inner-table`,
|
|
462
464
|
children: [
|
|
@@ -480,52 +482,52 @@ function Re(Ae, Re) {
|
|
|
480
482
|
})
|
|
481
483
|
] });
|
|
482
484
|
}
|
|
483
|
-
let
|
|
484
|
-
[`${M}-border`]:
|
|
485
|
-
[`${M}-border-cell`]:
|
|
486
|
-
[`${M}-border-header-cell`]: !
|
|
487
|
-
[`${M}-border-body-cell`]: !
|
|
488
|
-
[`${M}-stripe`]:
|
|
489
|
-
[`${M}-hover`]:
|
|
485
|
+
let In = c(y) ? y.wrapper : y, Ln = c(y) ? y.cell : Xe, Rn = c(y) ? y.cell || y.headerCell : Xe, zn = c(y) ? y.cell || y.bodyCell : Xe, Bn = te(M, $e ? `${M}-has-header` : `${M}-no-header`, `${M}-size-${gt}`, {
|
|
486
|
+
[`${M}-border`]: In,
|
|
487
|
+
[`${M}-border-cell`]: Ln,
|
|
488
|
+
[`${M}-border-header-cell`]: !Ln && Rn,
|
|
489
|
+
[`${M}-border-body-cell`]: !Ln && zn,
|
|
490
|
+
[`${M}-stripe`]: et,
|
|
491
|
+
[`${M}-hover`]: tt,
|
|
490
492
|
[`${M}-type-radio`]: E?.type === "radio",
|
|
491
|
-
[`${M}-layout-fixed`]:
|
|
492
|
-
[`${M}-fixed-column`]:
|
|
493
|
+
[`${M}-layout-fixed`]: rt || x && (x.x || x.y) || Ze.find((e) => e.ellipsis),
|
|
494
|
+
[`${M}-fixed-column`]: Qt,
|
|
493
495
|
[`${M}-virtualized`]: D,
|
|
494
496
|
[`${M}-rtl`]: _
|
|
495
|
-
},
|
|
497
|
+
}, Je), Vn = w === "tl" || w === "tr" || w === "topCenter", Hn = te(`${M}-pagination`, {
|
|
496
498
|
[`${M}-pagination-left`]: w === "tl" || w === "bl",
|
|
497
499
|
[`${M}-pagination-center`]: w === "topCenter" || w === "bottomCenter",
|
|
498
|
-
[`${M}-pagination-top`]:
|
|
499
|
-
}),
|
|
500
|
-
if (
|
|
501
|
-
let e = /* @__PURE__ */ h(
|
|
502
|
-
|
|
503
|
-
className:
|
|
500
|
+
[`${M}-pagination-top`]: Vn
|
|
501
|
+
}), Un = S !== !1 && (q.length !== 0 || en?.total > 0), Wn;
|
|
502
|
+
if (Un) {
|
|
503
|
+
let e = /* @__PURE__ */ h(fe, { ...en });
|
|
504
|
+
Wn = r(st) ? st(e) : /* @__PURE__ */ h("div", {
|
|
505
|
+
className: Hn,
|
|
504
506
|
children: e
|
|
505
507
|
});
|
|
506
508
|
}
|
|
507
|
-
return /* @__PURE__ */ h(
|
|
509
|
+
return /* @__PURE__ */ h(me.Provider, {
|
|
508
510
|
value: v,
|
|
509
511
|
children: /* @__PURE__ */ h("div", {
|
|
510
512
|
ref: F,
|
|
511
|
-
style:
|
|
512
|
-
className:
|
|
513
|
+
style: qe,
|
|
514
|
+
className: Bn,
|
|
513
515
|
...ne(v),
|
|
514
|
-
children: /* @__PURE__ */ g(
|
|
516
|
+
children: /* @__PURE__ */ g(de, {
|
|
515
517
|
className: `${M}-spin`,
|
|
516
|
-
element:
|
|
518
|
+
element: He,
|
|
517
519
|
...k,
|
|
518
520
|
children: [
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
!
|
|
521
|
+
Vn && Wn,
|
|
522
|
+
Fn(),
|
|
523
|
+
!Vn && Wn
|
|
522
524
|
]
|
|
523
525
|
})
|
|
524
526
|
})
|
|
525
527
|
});
|
|
526
528
|
}
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
+
var Be = je(ze);
|
|
530
|
+
Object.assign(Be, { ...re });
|
|
529
531
|
//#endregion
|
|
530
|
-
export {
|
|
532
|
+
export { Be as default };
|
|
531
533
|
/* 独立思考,明辨是非 */
|