naive-ui 2.35.0 → 2.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README.zh-CN.md +1 -0
- package/dist/index.js +4201 -1563
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/index.mjs +1 -0
- package/es/_internal/clear/src/Clear.mjs +54 -0
- package/es/_internal/clear/src/styles/index.cssr.mjs +37 -0
- package/es/_internal/close/index.mjs +1 -0
- package/es/_internal/close/src/Close.mjs +61 -0
- package/es/_internal/close/src/styles/index.cssr.mjs +54 -0
- package/es/_internal/fade-in-expand-transition/index.mjs +1 -0
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.mjs +110 -0
- package/es/_internal/focus-detector/index.mjs +2 -0
- package/es/_internal/focus-detector/src/FocusDetector.mjs +15 -0
- package/es/_internal/icon/index.mjs +1 -0
- package/es/_internal/icon/src/Icon.mjs +40 -0
- package/es/_internal/icon/src/styles/index.cssr.mjs +14 -0
- package/es/_internal/icon-switch-transition/index.mjs +1 -0
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.mjs +14 -0
- package/es/_internal/icons/Add.mjs +19 -0
- package/es/_internal/icons/ArrowBack.mjs +15 -0
- package/es/_internal/icons/ArrowDown.mjs +19 -0
- package/es/_internal/icons/ArrowUp.mjs +15 -0
- package/es/_internal/icons/Attach.mjs +17 -0
- package/es/_internal/icons/Backward.mjs +14 -0
- package/es/_internal/icons/Cancel.mjs +17 -0
- package/es/_internal/icons/Checkmark.mjs +15 -0
- package/es/_internal/icons/ChevronDown.mjs +14 -0
- package/es/_internal/icons/ChevronDownFilled.mjs +14 -0
- package/es/_internal/icons/ChevronLeft.mjs +14 -0
- package/es/_internal/icons/ChevronRight.mjs +14 -0
- package/es/_internal/icons/Clear.mjs +17 -0
- package/es/_internal/icons/Close.mjs +18 -0
- package/es/_internal/icons/Date.mjs +17 -0
- package/es/_internal/icons/Download.mjs +17 -0
- package/es/_internal/icons/Empty.mjs +17 -0
- package/es/_internal/icons/Error.mjs +15 -0
- package/es/_internal/icons/Eye.mjs +25 -0
- package/es/_internal/icons/EyeOff.mjs +25 -0
- package/es/_internal/icons/FastBackward.mjs +21 -0
- package/es/_internal/icons/FastForward.mjs +21 -0
- package/es/_internal/icons/File.mjs +21 -0
- package/es/_internal/icons/Filter.mjs +19 -0
- package/es/_internal/icons/Forward.mjs +14 -0
- package/es/_internal/icons/Info.mjs +15 -0
- package/es/_internal/icons/More.mjs +21 -0
- package/es/_internal/icons/Photo.mjs +29 -0
- package/es/_internal/icons/Remove.mjs +16 -0
- package/es/_internal/icons/ResizeSmall.mjs +15 -0
- package/es/_internal/icons/Retry.mjs +12 -0
- package/es/_internal/icons/RotateClockwise.mjs +13 -0
- package/es/_internal/icons/RotateCounterclockwise.mjs +13 -0
- package/es/_internal/icons/Search.mjs +14 -0
- package/es/_internal/icons/Success.mjs +15 -0
- package/es/_internal/icons/Switcher.mjs +12 -0
- package/es/_internal/icons/Time.mjs +12 -0
- package/es/_internal/icons/To.mjs +17 -0
- package/es/_internal/icons/Trash.mjs +29 -0
- package/es/_internal/icons/Warning.mjs +15 -0
- package/es/_internal/icons/ZoomIn.mjs +13 -0
- package/es/_internal/icons/ZoomOut.mjs +13 -0
- package/es/_internal/icons/index.mjs +42 -0
- package/es/_internal/icons/replaceable.mjs +18 -0
- package/es/_internal/index.mjs +14 -0
- package/es/_internal/loading/index.mjs +1 -0
- package/es/_internal/loading/src/Loading.mjs +105 -0
- package/es/_internal/loading/src/styles/index.cssr.mjs +34 -0
- package/es/_internal/menu-mask/index.mjs +1 -0
- package/es/_internal/menu-mask/src/MenuMask.mjs +47 -0
- package/es/_internal/menu-mask/src/interface.mjs +1 -0
- package/es/_internal/menu-mask/src/styles/index.cssr.mjs +15 -0
- package/es/_internal/scrollbar/index.mjs +1 -0
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.mjs +749 -0
- package/es/_internal/scrollbar/src/styles/index.cssr.mjs +60 -0
- package/es/_internal/scrollbar/src/styles/rtl.cssr.mjs +10 -0
- package/es/_internal/scrollbar/styles/dark.mjs +8 -0
- package/es/_internal/scrollbar/styles/index.mjs +3 -0
- package/es/_internal/scrollbar/styles/light.mjs +17 -0
- package/es/_internal/scrollbar/styles/rtl.mjs +6 -0
- package/es/_internal/select-menu/index.mjs +1 -0
- package/es/_internal/select-menu/src/SelectGroupHeader.mjs +55 -0
- package/es/_internal/select-menu/src/SelectMenu.d.ts +6 -4
- package/es/_internal/select-menu/src/SelectMenu.mjs +503 -0
- package/es/_internal/select-menu/src/SelectOption.mjs +163 -0
- package/es/_internal/select-menu/src/interface.mjs +3 -0
- package/es/_internal/select-menu/src/styles/index.cssr.mjs +115 -0
- package/es/_internal/select-menu/src/styles/rtl.cssr.d.ts +2 -0
- package/es/_internal/select-menu/src/styles/rtl.cssr.mjs +10 -0
- package/es/_internal/select-menu/styles/_common.mjs +12 -0
- package/es/_internal/select-menu/styles/dark.mjs +14 -0
- package/es/_internal/select-menu/styles/index.d.ts +1 -0
- package/es/_internal/select-menu/styles/index.mjs +3 -0
- package/es/_internal/select-menu/styles/light.mjs +62 -0
- package/es/_internal/select-menu/styles/rtl.d.ts +2 -0
- package/es/_internal/select-menu/styles/rtl.mjs +5 -0
- package/es/_internal/selection/index.mjs +1 -0
- package/es/_internal/selection/src/Selection.d.ts +17 -4
- package/es/_internal/selection/src/Selection.mjs +807 -0
- package/es/_internal/selection/src/interface.mjs +1 -0
- package/es/_internal/selection/src/styles/index.cssr.mjs +229 -0
- package/es/_internal/selection/src/styles/rtl.cssr.d.ts +2 -0
- package/es/_internal/selection/src/styles/rtl.cssr.mjs +9 -0
- package/es/_internal/selection/styles/_common.mjs +6 -0
- package/es/_internal/selection/styles/dark.mjs +113 -0
- package/es/_internal/selection/styles/index.d.ts +1 -0
- package/es/_internal/selection/styles/index.mjs +3 -0
- package/es/_internal/selection/styles/light.mjs +110 -0
- package/es/_internal/selection/styles/rtl.d.ts +2 -0
- package/es/_internal/selection/styles/rtl.mjs +5 -0
- package/es/_internal/slot-machine/index.mjs +1 -0
- package/es/_internal/slot-machine/src/SlotMachine.mjs +91 -0
- package/es/_internal/slot-machine/src/SlotMachineNumber.mjs +81 -0
- package/es/_internal/slot-machine/src/styles/index.cssr.mjs +101 -0
- package/es/_internal/suffix/index.mjs +1 -0
- package/es/_internal/suffix/src/Suffix.mjs +57 -0
- package/es/_internal/wave/index.mjs +1 -0
- package/es/_internal/wave/src/Wave.mjs +54 -0
- package/es/_internal/wave/src/styles/index.cssr.mjs +9 -0
- package/es/_mixins/common.mjs +1 -0
- package/es/_mixins/index.mjs +8 -0
- package/es/_mixins/use-config.mjs +29 -0
- package/es/_mixins/use-css-vars-class.mjs +54 -0
- package/es/_mixins/use-form-item.mjs +75 -0
- package/es/_mixins/use-hljs.mjs +25 -0
- package/es/_mixins/use-locale.mjs +21 -0
- package/es/_mixins/use-rtl.mjs +52 -0
- package/es/_mixins/use-style.mjs +39 -0
- package/es/_mixins/use-theme.mjs +132 -0
- package/es/_styles/common/_common.mjs +26 -0
- package/es/_styles/common/dark.mjs +169 -0
- package/es/_styles/common/index.mjs +2 -0
- package/es/_styles/common/light.mjs +177 -0
- package/es/_styles/global/index.cssr.mjs +28 -0
- package/es/_styles/transitions/fade-down.cssr.mjs +25 -0
- package/es/_styles/transitions/fade-in-height-expand.cssr.mjs +51 -0
- package/es/_styles/transitions/fade-in-scale-up.cssr.mjs +27 -0
- package/es/_styles/transitions/fade-in-width-expand.cssr.mjs +31 -0
- package/es/_styles/transitions/fade-in.cssr.mjs +22 -0
- package/es/_styles/transitions/fade-up-width-expand.cssr.mjs +36 -0
- package/es/_styles/transitions/icon-switch.cssr.mjs +29 -0
- package/es/_styles/transitions/slide-in-from-bottom.mjs +25 -0
- package/es/_styles/transitions/slide-in-from-left.mjs +25 -0
- package/es/_styles/transitions/slide-in-from-right.mjs +25 -0
- package/es/_styles/transitions/slide-in-from-top.mjs +25 -0
- package/es/_utils/color/index.mjs +7 -0
- package/es/_utils/composable/index.mjs +8 -0
- package/es/_utils/composable/use-adjusted-to.mjs +52 -0
- package/es/_utils/composable/use-browser-location.mjs +45 -0
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.mjs +77 -0
- package/es/_utils/composable/use-deferred-true.mjs +21 -0
- package/es/_utils/composable/use-houdini.mjs +26 -0
- package/es/_utils/composable/use-is-composing.mjs +31 -0
- package/es/_utils/composable/use-lock-html-scroll.mjs +61 -0
- package/es/_utils/composable/use-reactivated.mjs +22 -0
- package/es/_utils/composable/use-resize.mjs +23 -0
- package/es/_utils/css/color-to-class.mjs +3 -0
- package/es/_utils/css/format-length.mjs +28 -0
- package/es/_utils/css/index.d.ts +1 -0
- package/es/_utils/css/index.mjs +3 -0
- package/es/_utils/css/rtl-inset.d.ts +1 -0
- package/es/_utils/css/rtl-inset.mjs +10 -0
- package/es/_utils/cssr/index.d.ts +2 -2
- package/es/_utils/cssr/index.mjs +54 -0
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +11 -0
- package/es/_utils/dom/index.d.ts +1 -0
- package/es/_utils/dom/index.mjs +2 -0
- package/es/_utils/dom/is-document.mjs +3 -0
- package/es/_utils/env/browser.mjs +4 -0
- package/es/_utils/env/is-browser.mjs +1 -0
- package/es/_utils/env/is-jsdom.mjs +7 -0
- package/es/_utils/env/is-native-lazy-load.mjs +2 -0
- package/es/_utils/event/index.mjs +7 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.mjs +9 -0
- package/es/_utils/naive/attribute.mjs +11 -0
- package/es/_utils/naive/extract-public-props.mjs +1 -0
- package/es/_utils/naive/index.mjs +3 -0
- package/es/_utils/naive/mutable.mjs +1 -0
- package/es/_utils/naive/prop.mjs +27 -0
- package/es/_utils/naive/warn.mjs +13 -0
- package/es/_utils/vue/call.mjs +6 -0
- package/es/_utils/vue/create-data-key.mjs +3 -0
- package/es/_utils/vue/create-injection-key.mjs +3 -0
- package/es/_utils/vue/create-ref-setter.mjs +9 -0
- package/es/_utils/vue/flatten.mjs +28 -0
- package/es/_utils/vue/get-first-slot-vnode.mjs +17 -0
- package/es/_utils/vue/get-slot.mjs +6 -0
- package/es/_utils/vue/get-v-node-children.mjs +12 -0
- package/es/_utils/vue/index.mjs +16 -0
- package/es/_utils/vue/is-node-v-show-false.mjs +8 -0
- package/es/_utils/vue/keep.mjs +7 -0
- package/es/_utils/vue/keysOf.mjs +3 -0
- package/es/_utils/vue/merge-handlers.mjs +13 -0
- package/es/_utils/vue/omit.mjs +10 -0
- package/es/_utils/vue/render.mjs +12 -0
- package/es/_utils/vue/resolve-slot.mjs +41 -0
- package/es/_utils/vue/wrapper.mjs +7 -0
- package/es/affix/index.mjs +1 -0
- package/es/affix/src/Affix.d.ts +8 -8
- package/es/affix/src/Affix.mjs +180 -0
- package/es/affix/src/styles/index.cssr.mjs +6 -0
- package/es/affix/src/utils.mjs +9 -0
- package/es/alert/index.mjs +1 -0
- package/es/alert/src/Alert.mjs +202 -0
- package/es/alert/src/styles/index.cssr.mjs +103 -0
- package/es/alert/src/styles/rtl.cssr.mjs +16 -0
- package/es/alert/styles/_common.mjs +10 -0
- package/es/alert/styles/dark.mjs +102 -0
- package/es/alert/styles/index.mjs +3 -0
- package/es/alert/styles/light.mjs +104 -0
- package/es/alert/styles/rtl.mjs +5 -0
- package/es/anchor/index.mjs +2 -0
- package/es/anchor/src/AnchorAdapter.d.ts +7 -7
- package/es/anchor/src/AnchorAdapter.mjs +81 -0
- package/es/anchor/src/BaseAnchor.mjs +280 -0
- package/es/anchor/src/Link.mjs +51 -0
- package/es/anchor/src/styles/index.cssr.mjs +89 -0
- package/es/anchor/src/utils.mjs +11 -0
- package/es/anchor/styles/_common.mjs +5 -0
- package/es/anchor/styles/dark.mjs +8 -0
- package/es/anchor/styles/index.mjs +2 -0
- package/es/anchor/styles/light.mjs +31 -0
- package/es/auto-complete/index.mjs +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +2 -1
- package/es/auto-complete/src/AutoComplete.mjs +388 -0
- package/es/auto-complete/src/interface.mjs +1 -0
- package/es/auto-complete/src/styles/index.cssr.mjs +16 -0
- package/es/auto-complete/src/utils.mjs +23 -0
- package/es/auto-complete/styles/dark.mjs +14 -0
- package/es/auto-complete/styles/index.mjs +2 -0
- package/es/auto-complete/styles/light.mjs +22 -0
- package/es/avatar/index.mjs +1 -0
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.mjs +292 -0
- package/es/avatar/src/context.mjs +2 -0
- package/es/avatar/src/interface.mjs +1 -0
- package/es/avatar/src/styles/index.cssr.mjs +39 -0
- package/es/avatar/styles/dark.mjs +8 -0
- package/es/avatar/styles/index.mjs +2 -0
- package/es/avatar/styles/light.mjs +36 -0
- package/es/avatar-group/index.mjs +1 -0
- package/es/avatar-group/src/AvatarGroup.d.ts +4 -0
- package/es/avatar-group/src/AvatarGroup.mjs +95 -0
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.mjs +10 -0
- package/es/avatar-group/src/styles/avatar-group.cssr.mjs +21 -0
- package/es/avatar-group/styles/dark.mjs +12 -0
- package/es/avatar-group/styles/index.mjs +3 -0
- package/es/avatar-group/styles/light.mjs +17 -0
- package/es/avatar-group/styles/rtl.mjs +5 -0
- package/es/back-top/index.mjs +1 -0
- package/es/back-top/src/BackTop.mjs +245 -0
- package/es/back-top/src/BackTopIcon.mjs +26 -0
- package/es/back-top/src/styles/index.cssr.mjs +51 -0
- package/es/back-top/styles/_common.mjs +6 -0
- package/es/back-top/styles/dark.mjs +25 -0
- package/es/back-top/styles/index.mjs +2 -0
- package/es/back-top/styles/light.mjs +26 -0
- package/es/badge/index.mjs +1 -0
- package/es/badge/src/Badge.mjs +150 -0
- package/es/badge/src/styles/index.cssr.mjs +79 -0
- package/es/badge/src/styles/rtl.cssr.mjs +9 -0
- package/es/badge/styles/dark.mjs +24 -0
- package/es/badge/styles/index.mjs +3 -0
- package/es/badge/styles/light.mjs +25 -0
- package/es/badge/styles/rtl.mjs +5 -0
- package/es/breadcrumb/index.mjs +2 -0
- package/es/breadcrumb/src/Breadcrumb.mjs +77 -0
- package/es/breadcrumb/src/BreadcrumbItem.mjs +54 -0
- package/es/breadcrumb/src/styles/index.cssr.mjs +72 -0
- package/es/breadcrumb/styles/_common.mjs +3 -0
- package/es/breadcrumb/styles/dark.mjs +8 -0
- package/es/breadcrumb/styles/index.mjs +2 -0
- package/es/breadcrumb/styles/light.mjs +30 -0
- package/es/button/index.mjs +1 -0
- package/es/button/src/Button.d.ts +1 -1
- package/es/button/src/Button.mjs +507 -0
- package/es/button/src/interface.mjs +1 -0
- package/es/button/src/styles/index.cssr.mjs +189 -0
- package/es/button/src/styles/rtl.cssr.mjs +10 -0
- package/es/button/styles/_common.mjs +19 -0
- package/es/button/styles/dark.mjs +15 -0
- package/es/button/styles/index.mjs +3 -0
- package/es/button/styles/light.mjs +242 -0
- package/es/button/styles/rtl.mjs +5 -0
- package/es/button-group/index.mjs +1 -0
- package/es/button-group/src/ButtonGroup.mjs +38 -0
- package/es/button-group/src/context.mjs +2 -0
- package/es/button-group/src/styles/index.cssr.mjs +53 -0
- package/es/button-group/src/styles/rtl.cssr.mjs +24 -0
- package/es/button-group/styles/dark.mjs +6 -0
- package/es/button-group/styles/index.mjs +3 -0
- package/es/button-group/styles/light.mjs +6 -0
- package/es/button-group/styles/rtl.mjs +5 -0
- package/es/calendar/index.mjs +1 -0
- package/es/calendar/src/Calendar.d.ts +2 -0
- package/es/calendar/src/Calendar.mjs +298 -0
- package/es/calendar/src/interface.mjs +1 -0
- package/es/calendar/src/styles/index.cssr.mjs +137 -0
- package/es/calendar/styles/_common.mjs +3 -0
- package/es/calendar/styles/dark.mjs +12 -0
- package/es/calendar/styles/index.mjs +2 -0
- package/es/calendar/styles/light.mjs +53 -0
- package/es/card/index.mjs +1 -0
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.mjs +204 -0
- package/es/card/src/styles/index.cssr.mjs +134 -0
- package/es/card/src/styles/rtl.cssr.mjs +6 -0
- package/es/card/styles/_common.mjs +12 -0
- package/es/card/styles/dark.mjs +19 -0
- package/es/card/styles/index.mjs +3 -0
- package/es/card/styles/light.mjs +57 -0
- package/es/card/styles/rtl.mjs +5 -0
- package/es/carousel/index.mjs +2 -0
- package/es/carousel/src/Carousel.d.ts +5 -6
- package/es/carousel/src/Carousel.mjs +885 -0
- package/es/carousel/src/CarouselArrow.mjs +60 -0
- package/es/carousel/src/CarouselContext.mjs +13 -0
- package/es/carousel/src/CarouselDots.mjs +128 -0
- package/es/carousel/src/CarouselItem.mjs +88 -0
- package/es/carousel/src/interface.mjs +1 -0
- package/es/carousel/src/styles/index.cssr.mjs +232 -0
- package/es/carousel/src/utils/duplicatedLogic.d.ts +1 -1
- package/es/carousel/src/utils/duplicatedLogic.mjs +41 -0
- package/es/carousel/src/utils/event.mjs +3 -0
- package/es/carousel/src/utils/index.mjs +31 -0
- package/es/carousel/styles/dark.mjs +8 -0
- package/es/carousel/styles/index.mjs +2 -0
- package/es/carousel/styles/light.mjs +18 -0
- package/es/cascader/index.mjs +1 -0
- package/es/cascader/src/Cascader.d.ts +5 -1
- package/es/cascader/src/Cascader.mjs +1097 -0
- package/es/cascader/src/CascaderMenu.mjs +162 -0
- package/es/cascader/src/CascaderOption.mjs +249 -0
- package/es/cascader/src/CascaderSelectMenu.mjs +181 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/es/cascader/src/CascaderSubmenu.mjs +99 -0
- package/es/cascader/src/interface.mjs +2 -0
- package/es/cascader/src/styles/index.cssr.mjs +133 -0
- package/es/cascader/src/utils.mjs +41 -0
- package/es/cascader/styles/dark.mjs +20 -0
- package/es/cascader/styles/index.mjs +2 -0
- package/es/cascader/styles/light.mjs +52 -0
- package/es/checkbox/index.mjs +2 -0
- package/es/checkbox/src/CheckMark.mjs +7 -0
- package/es/checkbox/src/Checkbox.d.ts +6 -6
- package/es/checkbox/src/Checkbox.mjs +337 -0
- package/es/checkbox/src/CheckboxGroup.mjs +168 -0
- package/es/checkbox/src/LineMark.mjs +7 -0
- package/es/checkbox/src/interface.mjs +1 -0
- package/es/checkbox/src/styles/index.cssr.mjs +150 -0
- package/es/checkbox/src/styles/rtl.cssr.mjs +4 -0
- package/es/checkbox/styles/_common.mjs +7 -0
- package/es/checkbox/styles/dark.mjs +16 -0
- package/es/checkbox/styles/index.mjs +3 -0
- package/es/checkbox/styles/light.mjs +54 -0
- package/es/checkbox/styles/rtl.mjs +5 -0
- package/es/code/index.mjs +1 -0
- package/es/code/src/Code.mjs +195 -0
- package/es/code/src/styles/index.cssr.mjs +96 -0
- package/es/code/styles/dark.mjs +31 -0
- package/es/code/styles/index.mjs +2 -0
- package/es/code/styles/light.mjs +32 -0
- package/es/collapse/index.mjs +2 -0
- package/es/collapse/src/Collapse.mjs +196 -0
- package/es/collapse/src/CollapseItem.mjs +128 -0
- package/es/collapse/src/CollapseItemContent.mjs +42 -0
- package/es/collapse/src/interface.mjs +1 -0
- package/es/collapse/src/styles/index.cssr.mjs +59 -0
- package/es/collapse/src/styles/rtl.cssr.mjs +15 -0
- package/es/collapse/styles/dark.mjs +8 -0
- package/es/collapse/styles/index.mjs +3 -0
- package/es/collapse/styles/light.mjs +30 -0
- package/es/collapse/styles/rtl.mjs +5 -0
- package/es/collapse-transition/index.mjs +1 -0
- package/es/collapse-transition/src/CollapseTransition.mjs +86 -0
- package/es/collapse-transition/src/styles/index.cssr.mjs +5 -0
- package/es/collapse-transition/src/styles/rtl.cssr.mjs +5 -0
- package/es/collapse-transition/styles/dark.mjs +8 -0
- package/es/collapse-transition/styles/index.mjs +3 -0
- package/es/collapse-transition/styles/light.mjs +15 -0
- package/es/collapse-transition/styles/rtl.mjs +5 -0
- package/es/color-picker/index.mjs +1 -0
- package/es/color-picker/src/AlphaSlider.mjs +122 -0
- package/es/color-picker/src/ColorInput.mjs +120 -0
- package/es/color-picker/src/ColorInputUnit.mjs +160 -0
- package/es/color-picker/src/ColorPicker.mjs +618 -0
- package/es/color-picker/src/ColorPickerSwatches.mjs +110 -0
- package/es/color-picker/src/ColorPickerTrigger.mjs +61 -0
- package/es/color-picker/src/ColorPreview.mjs +57 -0
- package/es/color-picker/src/HueSlider.mjs +104 -0
- package/es/color-picker/src/Pallete.mjs +111 -0
- package/es/color-picker/src/context.mjs +2 -0
- package/es/color-picker/src/interface.mjs +1 -0
- package/es/color-picker/src/styles/index.cssr.mjs +193 -0
- package/es/color-picker/src/utils.mjs +101 -0
- package/es/color-picker/styles/dark.mjs +14 -0
- package/es/color-picker/styles/index.mjs +2 -0
- package/es/color-picker/styles/light.mjs +46 -0
- package/es/components.d.ts +4 -0
- package/es/components.mjs +93 -0
- package/es/composables/index.mjs +1 -0
- package/es/composables/use-theme-vars.mjs +23 -0
- package/es/config-provider/index.mjs +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +9 -0
- package/es/config-provider/src/ConfigProvider.mjs +214 -0
- package/es/config-provider/src/config.mjs +13 -0
- package/es/config-provider/src/context.mjs +2 -0
- package/es/config-provider/src/interface.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +6 -0
- package/es/config-provider/src/internal-interface.mjs +1 -0
- package/es/config-provider/src/katex.mjs +1 -0
- package/es/countdown/index.mjs +1 -0
- package/es/countdown/src/Countdown.mjs +167 -0
- package/es/create.mjs +35 -0
- package/es/data-table/index.mjs +2 -0
- package/es/data-table/src/DataTable.d.ts +6 -4
- package/es/data-table/src/DataTable.mjs +436 -0
- package/es/data-table/src/HeaderButton/FilterButton.mjs +162 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- package/es/data-table/src/HeaderButton/FilterMenu.mjs +180 -0
- package/es/data-table/src/HeaderButton/RenderFilter.mjs +29 -0
- package/es/data-table/src/HeaderButton/RenderSorter.mjs +24 -0
- package/es/data-table/src/HeaderButton/ResizeButton.mjs +64 -0
- package/es/data-table/src/HeaderButton/SortButton.mjs +70 -0
- package/es/data-table/src/MainTable.mjs +110 -0
- package/es/data-table/src/TableParts/Body.d.ts +4 -4
- package/es/data-table/src/TableParts/Body.mjs +797 -0
- package/es/data-table/src/TableParts/BodyCheckbox.mjs +40 -0
- package/es/data-table/src/TableParts/BodyRadio.mjs +39 -0
- package/es/data-table/src/TableParts/Cell.mjs +81 -0
- package/es/data-table/src/TableParts/ExpandTrigger.mjs +50 -0
- package/es/data-table/src/TableParts/Header.mjs +236 -0
- package/es/data-table/src/TableParts/SelectionMenu.mjs +87 -0
- package/es/data-table/src/interface.d.ts +6 -1
- package/es/data-table/src/interface.mjs +116 -0
- package/es/data-table/src/styles/index.cssr.mjs +433 -0
- package/es/data-table/src/styles/rtl.cssr.d.ts +2 -0
- package/es/data-table/src/styles/rtl.cssr.mjs +18 -0
- package/es/data-table/src/use-check.mjs +172 -0
- package/es/data-table/src/use-expand.mjs +60 -0
- package/es/data-table/src/use-group-header.mjs +102 -0
- package/es/data-table/src/use-resizable.mjs +22 -0
- package/es/data-table/src/use-scroll.mjs +231 -0
- package/es/data-table/src/use-sorter.mjs +189 -0
- package/es/data-table/src/use-table-data.mjs +352 -0
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.mjs +135 -0
- package/es/data-table/styles/_common.mjs +16 -0
- package/es/data-table/styles/dark.mjs +33 -0
- package/es/data-table/styles/index.d.ts +1 -0
- package/es/data-table/styles/index.mjs +3 -0
- package/es/data-table/styles/light.mjs +93 -0
- package/es/data-table/styles/rtl.d.ts +2 -0
- package/es/data-table/styles/rtl.mjs +8 -0
- package/es/date-picker/index.mjs +1 -0
- package/es/date-picker/src/DatePicker.d.ts +82 -4
- package/es/date-picker/src/DatePicker.mjs +1013 -0
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/config.mjs +3 -0
- package/es/date-picker/src/interface.d.ts +3 -0
- package/es/date-picker/src/interface.mjs +2 -0
- package/es/date-picker/src/panel/date.d.ts +83 -42
- package/es/date-picker/src/panel/date.mjs +143 -0
- package/es/date-picker/src/panel/daterange.d.ts +14 -2
- package/es/date-picker/src/panel/daterange.mjs +194 -0
- package/es/date-picker/src/panel/datetime.d.ts +16 -2
- package/es/date-picker/src/panel/datetime.mjs +164 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +14 -2
- package/es/date-picker/src/panel/datetimerange.mjs +259 -0
- package/es/date-picker/src/panel/month.d.ts +17 -3
- package/es/date-picker/src/panel/month.mjs +180 -0
- package/es/date-picker/src/panel/monthrange.d.ts +15 -3
- package/es/date-picker/src/panel/monthrange.mjs +206 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +744 -773
- package/es/date-picker/src/panel/panelHeader.mjs +89 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +13 -3
- package/es/date-picker/src/panel/use-calendar.mjs +386 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +10 -2
- package/es/date-picker/src/panel/use-dual-calendar.mjs +694 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +8 -0
- package/es/date-picker/src/panel/use-panel-common.mjs +174 -0
- package/es/date-picker/src/styles/index.cssr.mjs +388 -0
- package/es/date-picker/src/utils.d.ts +18 -5
- package/es/date-picker/src/utils.mjs +244 -0
- package/es/date-picker/src/validation-utils.mjs +206 -0
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.mjs +39 -0
- package/es/date-picker/styles/dark.mjs +32 -0
- package/es/date-picker/styles/index.mjs +2 -0
- package/es/date-picker/styles/light.d.ts +4 -0
- package/es/date-picker/styles/light.mjs +70 -0
- package/es/descriptions/index.mjs +2 -0
- package/es/descriptions/src/Descriptions.d.ts +7 -1
- package/es/descriptions/src/Descriptions.mjs +229 -0
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/es/descriptions/src/DescriptionsItem.mjs +21 -0
- package/es/descriptions/src/styles/index.cssr.mjs +119 -0
- package/es/descriptions/src/utils.mjs +7 -0
- package/es/descriptions/styles/_common.mjs +14 -0
- package/es/descriptions/styles/dark.mjs +8 -0
- package/es/descriptions/styles/index.mjs +2 -0
- package/es/descriptions/styles/light.mjs +46 -0
- package/es/dialog/index.mjs +4 -0
- package/es/dialog/src/Dialog.d.ts +5 -1
- package/es/dialog/src/Dialog.mjs +212 -0
- package/es/dialog/src/DialogEnvironment.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.mjs +172 -0
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/DialogProvider.mjs +81 -0
- package/es/dialog/src/composables.mjs +17 -0
- package/es/dialog/src/context.mjs +4 -0
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/dialogProps.mjs +31 -0
- package/es/dialog/src/interface.mjs +1 -0
- package/es/dialog/src/styles/index.cssr.mjs +100 -0
- package/es/dialog/src/styles/rtl.cssr.d.ts +2 -0
- package/es/dialog/src/styles/rtl.cssr.mjs +18 -0
- package/es/dialog/styles/_common.mjs +13 -0
- package/es/dialog/styles/dark.mjs +12 -0
- package/es/dialog/styles/index.d.ts +1 -0
- package/es/dialog/styles/index.mjs +3 -0
- package/es/dialog/styles/light.mjs +56 -0
- package/es/dialog/styles/rtl.d.ts +2 -0
- package/es/dialog/styles/rtl.mjs +5 -0
- package/es/discrete/index.mjs +1 -0
- package/es/discrete/src/InjectionExtractor.mjs +17 -0
- package/es/discrete/src/discrete.mjs +51 -0
- package/es/discrete/src/discreteApp.mjs +58 -0
- package/es/discrete/src/interface.mjs +1 -0
- package/es/divider/index.mjs +1 -0
- package/es/divider/src/Divider.mjs +76 -0
- package/es/divider/src/styles/index.cssr.mjs +58 -0
- package/es/divider/styles/dark.mjs +8 -0
- package/es/divider/styles/index.mjs +2 -0
- package/es/divider/styles/light.mjs +19 -0
- package/es/drawer/index.mjs +2 -0
- package/es/drawer/src/Drawer.d.ts +4 -1
- package/es/drawer/src/Drawer.mjs +326 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/es/drawer/src/DrawerBodyWrapper.mjs +266 -0
- package/es/drawer/src/DrawerContent.d.ts +15 -9
- package/es/drawer/src/DrawerContent.mjs +97 -0
- package/es/drawer/src/interface.mjs +3 -0
- package/es/drawer/src/styles/index.cssr.mjs +163 -0
- package/es/drawer/src/styles/rtl.cssr.mjs +8 -0
- package/es/drawer/styles/dark.mjs +12 -0
- package/es/drawer/styles/index.mjs +3 -0
- package/es/drawer/styles/light.mjs +53 -0
- package/es/drawer/styles/rtl.mjs +8 -0
- package/es/dropdown/index.mjs +1 -0
- package/es/dropdown/src/Dropdown.d.ts +18 -0
- package/es/dropdown/src/Dropdown.mjs +374 -0
- package/es/dropdown/src/DropdownDivider.mjs +15 -0
- package/es/dropdown/src/DropdownGroup.mjs +60 -0
- package/es/dropdown/src/DropdownGroupHeader.mjs +74 -0
- package/es/dropdown/src/DropdownMenu.mjs +137 -0
- package/es/dropdown/src/DropdownOption.d.ts +5 -4
- package/es/dropdown/src/DropdownOption.mjs +299 -0
- package/es/dropdown/src/DropdownRenderOption.mjs +19 -0
- package/es/dropdown/src/context.mjs +4 -0
- package/es/dropdown/src/interface.mjs +1 -0
- package/es/dropdown/src/styles/index.cssr.mjs +143 -0
- package/es/dropdown/src/utils.mjs +12 -0
- package/es/dropdown/styles/_common.mjs +23 -0
- package/es/dropdown/styles/dark.mjs +27 -0
- package/es/dropdown/styles/index.mjs +2 -0
- package/es/dropdown/styles/light.mjs +73 -0
- package/es/dynamic-input/index.mjs +1 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/es/dynamic-input/src/DynamicInput.mjs +410 -0
- package/es/dynamic-input/src/InputPreset.mjs +54 -0
- package/es/dynamic-input/src/PairPreset.mjs +80 -0
- package/es/dynamic-input/src/interface.mjs +2 -0
- package/es/dynamic-input/src/styles/index.cssr.mjs +35 -0
- package/es/dynamic-input/src/styles/rtl.cssr.mjs +9 -0
- package/es/dynamic-input/styles/_common.mjs +4 -0
- package/es/dynamic-input/styles/dark.mjs +16 -0
- package/es/dynamic-input/styles/index.mjs +3 -0
- package/es/dynamic-input/styles/light.mjs +18 -0
- package/es/dynamic-input/styles/rtl.mjs +11 -0
- package/es/dynamic-tags/index.mjs +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +9 -12
- package/es/dynamic-tags/src/DynamicTags.mjs +265 -0
- package/es/dynamic-tags/src/interface.mjs +1 -0
- package/es/dynamic-tags/src/styles/index.cssr.mjs +6 -0
- package/es/dynamic-tags/styles/dark.mjs +21 -0
- package/es/dynamic-tags/styles/index.mjs +2 -0
- package/es/dynamic-tags/styles/light.d.ts +0 -1
- package/es/dynamic-tags/styles/light.mjs +22 -0
- package/es/element/index.mjs +2 -0
- package/es/element/src/Element.mjs +55 -0
- package/es/element/styles/dark.mjs +6 -0
- package/es/element/styles/index.mjs +2 -0
- package/es/element/styles/light.mjs +6 -0
- package/es/ellipsis/index.mjs +2 -0
- package/es/ellipsis/src/Ellipsis.mjs +184 -0
- package/es/ellipsis/src/PerformantEllipsis.mjs +48 -0
- package/es/ellipsis/src/styles/index.cssr.mjs +14 -0
- package/es/ellipsis/styles/dark.mjs +10 -0
- package/es/ellipsis/styles/index.mjs +2 -0
- package/es/ellipsis/styles/light.mjs +11 -0
- package/es/empty/index.mjs +1 -0
- package/es/empty/src/Empty.mjs +112 -0
- package/es/empty/src/styles/index.cssr.mjs +32 -0
- package/es/empty/styles/_common.mjs +6 -0
- package/es/empty/styles/dark.mjs +8 -0
- package/es/empty/styles/index.mjs +2 -0
- package/es/empty/styles/light.mjs +28 -0
- package/es/equation/index.d.ts +1 -0
- package/es/equation/index.mjs +1 -0
- package/es/equation/src/Equation.d.ts +2 -0
- package/es/equation/src/Equation.mjs +40 -0
- package/es/equation/styles/dark.mjs +8 -0
- package/es/equation/styles/index.mjs +2 -0
- package/es/equation/styles/light.mjs +8 -0
- package/es/flex/index.d.ts +3 -0
- package/es/flex/index.mjs +1 -0
- package/es/flex/src/Flex.d.ts +116 -0
- package/es/flex/src/Flex.mjs +101 -0
- package/es/flex/src/styles/rtl.cssr.d.ts +2 -0
- package/es/flex/src/styles/rtl.cssr.mjs +4 -0
- package/es/flex/src/type.d.ts +3 -0
- package/es/flex/src/type.mjs +1 -0
- package/es/flex/styles/_common.d.ts +6 -0
- package/es/flex/styles/_common.mjs +5 -0
- package/es/flex/styles/dark.d.ts +3 -0
- package/es/flex/styles/dark.mjs +8 -0
- package/es/flex/styles/index.d.ts +4 -0
- package/es/flex/styles/index.mjs +3 -0
- package/es/flex/styles/light.d.ts +10 -0
- package/es/flex/styles/light.mjs +9 -0
- package/es/flex/styles/rtl.d.ts +2 -0
- package/es/flex/styles/rtl.mjs +5 -0
- package/es/form/index.mjs +6 -0
- package/es/form/src/Form.mjs +154 -0
- package/es/form/src/FormItem.d.ts +2 -1
- package/es/form/src/FormItem.mjs +492 -0
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemCol.mjs +44 -0
- package/es/form/src/FormItemGridItem.mjs +46 -0
- package/es/form/src/FormItemRow.mjs +45 -0
- package/es/form/src/context.mjs +3 -0
- package/es/form/src/interface.d.ts +12 -5
- package/es/form/src/interface.mjs +1 -0
- package/es/form/src/styles/form-item.cssr.mjs +124 -0
- package/es/form/src/styles/form.cssr.mjs +12 -0
- package/es/form/src/utils.d.ts +2 -1
- package/es/form/src/utils.mjs +173 -0
- package/es/form/styles/_common.mjs +23 -0
- package/es/form/styles/dark.mjs +8 -0
- package/es/form/styles/index.mjs +2 -0
- package/es/form/styles/light.mjs +31 -0
- package/es/global-style/index.mjs +1 -0
- package/es/global-style/src/GlobalStyle.mjs +65 -0
- package/es/gradient-text/index.mjs +1 -0
- package/es/gradient-text/src/GradientText.mjs +98 -0
- package/es/gradient-text/src/styles/index.cssr.mjs +19 -0
- package/es/gradient-text/styles/dark.mjs +35 -0
- package/es/gradient-text/styles/index.mjs +2 -0
- package/es/gradient-text/styles/light.mjs +42 -0
- package/es/grid/index.mjs +3 -0
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.mjs +258 -0
- package/es/grid/src/GridItem.mjs +91 -0
- package/es/grid/src/config.mjs +3 -0
- package/es/icon/index.mjs +1 -0
- package/es/icon/src/Icon.mjs +91 -0
- package/es/icon/src/styles/index.cssr.mjs +25 -0
- package/es/icon/styles/dark.mjs +8 -0
- package/es/icon/styles/index.mjs +2 -0
- package/es/icon/styles/light.mjs +25 -0
- package/es/icon-wrapper/index.mjs +1 -0
- package/es/icon-wrapper/src/IconWrapper.mjs +61 -0
- package/es/icon-wrapper/src/styles/index.cssr.mjs +16 -0
- package/es/icon-wrapper/styles/dark.mjs +8 -0
- package/es/icon-wrapper/styles/index.mjs +2 -0
- package/es/icon-wrapper/styles/light.mjs +17 -0
- package/es/image/index.mjs +2 -0
- package/es/image/src/Image.mjs +173 -0
- package/es/image/src/ImageGroup.mjs +76 -0
- package/es/image/src/ImagePreview.mjs +541 -0
- package/es/image/src/icons.mjs +34 -0
- package/es/image/src/interface.mjs +12 -0
- package/es/image/src/styles/index.cssr.mjs +68 -0
- package/es/image/src/utils.mjs +79 -0
- package/es/image/styles/dark.mjs +20 -0
- package/es/image/styles/index.mjs +2 -0
- package/es/image/styles/light.mjs +19 -0
- package/es/index.mjs +14 -0
- package/es/input/index.mjs +3 -0
- package/es/input/src/Input.d.ts +5 -4
- package/es/input/src/Input.mjs +1228 -0
- package/es/input/src/InputGroup.mjs +25 -0
- package/es/input/src/InputGroupLabel.mjs +77 -0
- package/es/input/src/WordCount.mjs +39 -0
- package/es/input/src/interface.d.ts +7 -2
- package/es/input/src/interface.mjs +2 -0
- package/es/input/src/styles/input-group-label.cssr.mjs +38 -0
- package/es/input/src/styles/input-group.cssr.mjs +57 -0
- package/es/input/src/styles/input.cssr.mjs +278 -0
- package/es/input/src/styles/rtl.cssr.mjs +16 -0
- package/es/input/src/utils.mjs +80 -0
- package/es/input/styles/_common.mjs +7 -0
- package/es/input/styles/dark.mjs +112 -0
- package/es/input/styles/index.mjs +3 -0
- package/es/input/styles/light.mjs +109 -0
- package/es/input/styles/rtl.mjs +5 -0
- package/es/input-number/index.mjs +1 -0
- package/es/input-number/src/InputNumber.d.ts +5 -1
- package/es/input-number/src/InputNumber.mjs +707 -0
- package/es/input-number/src/interface.mjs +1 -0
- package/es/input-number/src/styles/input-number.cssr.mjs +8 -0
- package/es/input-number/src/styles/rtl.cssr.mjs +4 -0
- package/es/input-number/src/utils.mjs +37 -0
- package/es/input-number/styles/dark.mjs +20 -0
- package/es/input-number/styles/index.mjs +3 -0
- package/es/input-number/styles/light.mjs +22 -0
- package/es/input-number/styles/rtl.mjs +8 -0
- package/es/jest-setup.mjs +5 -0
- package/es/layout/index.mjs +5 -0
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/Layout.mjs +150 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutContent.mjs +2 -0
- package/es/layout/src/LayoutFooter.mjs +60 -0
- package/es/layout/src/LayoutHeader.mjs +63 -0
- package/es/layout/src/LayoutSider.d.ts +9 -0
- package/es/layout/src/LayoutSider.mjs +285 -0
- package/es/layout/src/ToggleBar.mjs +23 -0
- package/es/layout/src/ToggleButton.mjs +26 -0
- package/es/layout/src/interface.mjs +6 -0
- package/es/layout/src/styles/layout-footer.cssr.mjs +23 -0
- package/es/layout/src/styles/layout-header.cssr.mjs +24 -0
- package/es/layout/src/styles/layout-sider.cssr.mjs +140 -0
- package/es/layout/src/styles/layout.cssr.mjs +28 -0
- package/es/layout/styles/dark.mjs +47 -0
- package/es/layout/styles/index.mjs +2 -0
- package/es/layout/styles/light.mjs +52 -0
- package/es/legacy-grid/index.mjs +2 -0
- package/es/legacy-grid/src/Col.mjs +62 -0
- package/es/legacy-grid/src/Row.mjs +72 -0
- package/es/legacy-grid/src/interface.mjs +1 -0
- package/es/legacy-grid/src/styles/index.cssr.mjs +31 -0
- package/es/legacy-grid/src/styles/rtl.cssr.mjs +20 -0
- package/es/legacy-grid/styles/dark.mjs +6 -0
- package/es/legacy-grid/styles/index.mjs +3 -0
- package/es/legacy-grid/styles/light.mjs +6 -0
- package/es/legacy-grid/styles/rtl.mjs +5 -0
- package/es/legacy-transfer/index.mjs +1 -0
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.mjs +356 -0
- package/es/legacy-transfer/src/TransferFilter.mjs +63 -0
- package/es/legacy-transfer/src/TransferHeader.mjs +71 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -1
- package/es/legacy-transfer/src/TransferList.mjs +155 -0
- package/es/legacy-transfer/src/TransferListItem.mjs +80 -0
- package/es/legacy-transfer/src/interface.mjs +2 -0
- package/es/legacy-transfer/src/styles/index.cssr.mjs +215 -0
- package/es/legacy-transfer/src/use-transfer-data.mjs +135 -0
- package/es/legacy-transfer/styles/_common.mjs +4 -0
- package/es/legacy-transfer/styles/dark.mjs +61 -0
- package/es/legacy-transfer/styles/index.mjs +2 -0
- package/es/legacy-transfer/styles/light.mjs +65 -0
- package/es/list/index.mjs +2 -0
- package/es/list/src/List.mjs +97 -0
- package/es/list/src/ListItem.mjs +33 -0
- package/es/list/src/styles/index.cssr.mjs +88 -0
- package/es/list/src/styles/rtl.cssr.mjs +11 -0
- package/es/list/styles/dark.mjs +8 -0
- package/es/list/styles/index.mjs +3 -0
- package/es/list/styles/light.mjs +34 -0
- package/es/list/styles/rtl.mjs +5 -0
- package/es/loading-bar/index.mjs +2 -0
- package/es/loading-bar/src/LoadingBar.d.ts +2 -0
- package/es/loading-bar/src/LoadingBar.mjs +203 -0
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/es/loading-bar/src/LoadingBarProvider.mjs +81 -0
- package/es/loading-bar/src/context.mjs +3 -0
- package/es/loading-bar/src/styles/index.cssr.mjs +35 -0
- package/es/loading-bar/src/use-loading-bar.mjs +10 -0
- package/es/loading-bar/styles/dark.mjs +16 -0
- package/es/loading-bar/styles/index.mjs +2 -0
- package/es/loading-bar/styles/light.mjs +18 -0
- package/es/locales/common/arDZ.mjs +124 -0
- package/es/locales/common/deDE.mjs +124 -0
- package/es/locales/common/enGB.mjs +125 -0
- package/es/locales/common/enUS.d.ts +3 -0
- package/es/locales/common/enUS.mjs +125 -0
- package/es/locales/common/eo.mjs +126 -0
- package/es/locales/common/esAR.mjs +128 -0
- package/es/locales/common/faIR.mjs +124 -0
- package/es/locales/common/frFR.mjs +124 -0
- package/es/locales/common/idID.mjs +128 -0
- package/es/locales/common/itIT.mjs +127 -0
- package/es/locales/common/jaJP.mjs +124 -0
- package/es/locales/common/koKR.mjs +127 -0
- package/es/locales/common/nbNO.mjs +128 -0
- package/es/locales/common/nlNL.mjs +126 -0
- package/es/locales/common/plPL.mjs +127 -0
- package/es/locales/common/ptBR.mjs +124 -0
- package/es/locales/common/ruRU.mjs +124 -0
- package/es/locales/common/skSK.mjs +128 -0
- package/es/locales/common/svSE.mjs +124 -0
- package/es/locales/common/thTH.mjs +128 -0
- package/es/locales/common/trTR.mjs +125 -0
- package/es/locales/common/ukUA.mjs +125 -0
- package/es/locales/common/viVN.mjs +124 -0
- package/es/locales/common/zhCN.mjs +124 -0
- package/es/locales/common/zhTW.mjs +124 -0
- package/es/locales/date/arDZ.mjs +6 -0
- package/es/locales/date/deDE.mjs +6 -0
- package/es/locales/date/enGB.mjs +6 -0
- package/es/locales/date/enUS.mjs +6 -0
- package/es/locales/date/eo.mjs +6 -0
- package/es/locales/date/esAR.mjs +6 -0
- package/es/locales/date/faIR.mjs +6 -0
- package/es/locales/date/frFR.mjs +6 -0
- package/es/locales/date/idID.mjs +6 -0
- package/es/locales/date/itIT.mjs +6 -0
- package/es/locales/date/jaJP.mjs +6 -0
- package/es/locales/date/koKR.mjs +6 -0
- package/es/locales/date/nbNO.mjs +6 -0
- package/es/locales/date/nlNL.mjs +6 -0
- package/es/locales/date/plPL.mjs +6 -0
- package/es/locales/date/ptBR.mjs +6 -0
- package/es/locales/date/ruRU.mjs +6 -0
- package/es/locales/date/skSK.mjs +6 -0
- package/es/locales/date/svSE.mjs +6 -0
- package/es/locales/date/thTH.mjs +6 -0
- package/es/locales/date/trTR.mjs +6 -0
- package/es/locales/date/ukUA.mjs +6 -0
- package/es/locales/date/viVN.mjs +6 -0
- package/es/locales/date/zhCN.mjs +6 -0
- package/es/locales/date/zhTW.mjs +6 -0
- package/es/locales/index.mjs +51 -0
- package/es/locales/utils/index.mjs +4 -0
- package/es/log/index.mjs +1 -0
- package/es/log/src/Log.d.ts +3 -3
- package/es/log/src/Log.mjs +265 -0
- package/es/log/src/LogLine.mjs +66 -0
- package/es/log/src/LogLoader.mjs +31 -0
- package/es/log/src/context.mjs +2 -0
- package/es/log/src/styles/index.cssr.mjs +53 -0
- package/es/log/styles/dark.mjs +27 -0
- package/es/log/styles/index.mjs +2 -0
- package/es/log/styles/light.mjs +30 -0
- package/es/mention/index.mjs +1 -0
- package/es/mention/src/Mention.d.ts +2 -1
- package/es/mention/src/Mention.mjs +449 -0
- package/es/mention/src/interface.mjs +1 -0
- package/es/mention/src/styles/index.cssr.mjs +8 -0
- package/es/mention/src/utils.mjs +159 -0
- package/es/mention/styles/dark.mjs +20 -0
- package/es/mention/styles/index.mjs +2 -0
- package/es/mention/styles/light.mjs +22 -0
- package/es/menu/index.mjs +1 -0
- package/es/menu/src/Menu.d.ts +30 -13
- package/es/menu/src/Menu.mjs +531 -0
- package/es/menu/src/MenuDivider.mjs +16 -0
- package/es/menu/src/MenuOption.mjs +108 -0
- package/es/menu/src/MenuOptionContent.d.ts +3 -0
- package/es/menu/src/MenuOptionContent.mjs +115 -0
- package/es/menu/src/MenuOptionGroup.mjs +50 -0
- package/es/menu/src/Submenu.d.ts +23 -12
- package/es/menu/src/Submenu.mjs +216 -0
- package/es/menu/src/context.mjs +4 -0
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/interface.mjs +1 -0
- package/es/menu/src/styles/index.cssr.mjs +232 -0
- package/es/menu/src/use-menu-child-props.mjs +14 -0
- package/es/menu/src/use-menu-child.mjs +88 -0
- package/es/menu/src/useCheckDeprecated.mjs +24 -0
- package/es/menu/src/utils.mjs +74 -0
- package/es/menu/styles/dark.mjs +34 -0
- package/es/menu/styles/index.mjs +2 -0
- package/es/menu/styles/light.mjs +119 -0
- package/es/message/index.mjs +2 -0
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/Message.mjs +170 -0
- package/es/message/src/MessageEnvironment.mjs +112 -0
- package/es/message/src/MessageProvider.d.ts +7 -4
- package/es/message/src/MessageProvider.mjs +130 -0
- package/es/message/src/context.mjs +3 -0
- package/es/message/src/message-props.mjs +17 -0
- package/es/message/src/styles/index.cssr.mjs +133 -0
- package/es/message/src/styles/rtl.cssr.mjs +8 -0
- package/es/message/src/types.mjs +1 -0
- package/es/message/src/use-message.mjs +10 -0
- package/es/message/styles/_common.mjs +12 -0
- package/es/message/styles/dark.mjs +8 -0
- package/es/message/styles/index.mjs +3 -0
- package/es/message/styles/light.mjs +87 -0
- package/es/message/styles/rtl.mjs +5 -0
- package/es/modal/index.mjs +1 -0
- package/es/modal/src/BodyWrapper.d.ts +12 -4
- package/es/modal/src/BodyWrapper.mjs +257 -0
- package/es/modal/src/Modal.d.ts +16 -4
- package/es/modal/src/Modal.mjs +321 -0
- package/es/modal/src/interface.mjs +3 -0
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/src/presetProps.mjs +6 -0
- package/es/modal/src/styles/index.cssr.mjs +48 -0
- package/es/modal/styles/dark.mjs +16 -0
- package/es/modal/styles/index.mjs +2 -0
- package/es/modal/styles/light.mjs +28 -0
- package/es/notification/index.mjs +2 -0
- package/es/notification/src/Notification.mjs +191 -0
- package/es/notification/src/NotificationContainer.mjs +58 -0
- package/es/notification/src/NotificationEnvironment.mjs +164 -0
- package/es/notification/src/NotificationProvider.d.ts +3 -0
- package/es/notification/src/NotificationProvider.mjs +149 -0
- package/es/notification/src/context.mjs +2 -0
- package/es/notification/src/styles/index.cssr.mjs +227 -0
- package/es/notification/src/styles/rtl.cssr.mjs +22 -0
- package/es/notification/src/use-notification.mjs +10 -0
- package/es/notification/styles/_common.mjs +10 -0
- package/es/notification/styles/dark.mjs +12 -0
- package/es/notification/styles/index.mjs +3 -0
- package/es/notification/styles/light.mjs +58 -0
- package/es/notification/styles/rtl.mjs +5 -0
- package/es/number-animation/index.mjs +1 -0
- package/es/number-animation/src/NumberAnimation.mjs +111 -0
- package/es/number-animation/src/utils.mjs +23 -0
- package/es/page-header/index.mjs +1 -0
- package/es/page-header/src/PageHeader.mjs +128 -0
- package/es/page-header/src/styles/index.cssr.mjs +49 -0
- package/es/page-header/src/styles/rtl.cssr.mjs +19 -0
- package/es/page-header/styles/_common.mjs +4 -0
- package/es/page-header/styles/dark.mjs +7 -0
- package/es/page-header/styles/index.mjs +3 -0
- package/es/page-header/styles/light.mjs +28 -0
- package/es/page-header/styles/rtl.mjs +5 -0
- package/es/pagination/index.mjs +1 -0
- package/es/pagination/src/Pagination.d.ts +13 -0
- package/es/pagination/src/Pagination.mjs +720 -0
- package/es/pagination/src/interface.mjs +1 -0
- package/es/pagination/src/styles/index.cssr.mjs +134 -0
- package/es/pagination/src/styles/rtl.cssr.mjs +8 -0
- package/es/pagination/src/utils.d.ts +4 -2
- package/es/pagination/src/utils.mjs +146 -0
- package/es/pagination/styles/_common.mjs +35 -0
- package/es/pagination/styles/dark.mjs +29 -0
- package/es/pagination/styles/index.mjs +3 -0
- package/es/pagination/styles/light.mjs +76 -0
- package/es/pagination/styles/rtl.mjs +8 -0
- package/es/popconfirm/index.mjs +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +18 -0
- package/es/popconfirm/src/Popconfirm.mjs +107 -0
- package/es/popconfirm/src/PopconfirmPanel.mjs +116 -0
- package/es/popconfirm/src/interface.mjs +2 -0
- package/es/popconfirm/src/styles/index.cssr.mjs +22 -0
- package/es/popconfirm/styles/_common.mjs +3 -0
- package/es/popconfirm/styles/dark.mjs +14 -0
- package/es/popconfirm/styles/index.mjs +2 -0
- package/es/popconfirm/styles/light.mjs +25 -0
- package/es/popover/index.mjs +1 -0
- package/es/popover/src/Popover.d.ts +24 -0
- package/es/popover/src/Popover.mjs +481 -0
- package/es/popover/src/PopoverBody.d.ts +22 -1
- package/es/popover/src/PopoverBody.mjs +372 -0
- package/es/popover/src/interface.d.ts +1 -1
- package/es/popover/src/interface.mjs +2 -0
- package/es/popover/src/styles/index.cssr.mjs +166 -0
- package/es/popover/styles/_common.mjs +8 -0
- package/es/popover/styles/dark.mjs +8 -0
- package/es/popover/styles/index.mjs +2 -0
- package/es/popover/styles/light.mjs +26 -0
- package/es/popselect/index.mjs +1 -0
- package/es/popselect/src/Popselect.d.ts +18 -0
- package/es/popselect/src/Popselect.mjs +99 -0
- package/es/popselect/src/PopselectPanel.mjs +201 -0
- package/es/popselect/src/interface.mjs +2 -0
- package/es/popselect/src/styles/index.cssr.mjs +5 -0
- package/es/popselect/styles/dark.mjs +12 -0
- package/es/popselect/styles/index.mjs +2 -0
- package/es/popselect/styles/light.mjs +22 -0
- package/es/preset.mjs +7 -0
- package/es/progress/index.mjs +1 -0
- package/es/progress/src/Circle.mjs +159 -0
- package/es/progress/src/Line.mjs +148 -0
- package/es/progress/src/MultipleCircle.mjs +104 -0
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.mjs +209 -0
- package/es/progress/src/interface.mjs +1 -0
- package/es/progress/src/styles/index.cssr.mjs +196 -0
- package/es/progress/styles/dark.mjs +13 -0
- package/es/progress/styles/index.mjs +2 -0
- package/es/progress/styles/light.mjs +42 -0
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.mjs +1 -0
- package/es/qr-code/src/QrCode.d.ts +154 -0
- package/es/qr-code/src/QrCode.mjs +175 -0
- package/es/qr-code/src/qrcodegen.d.ts +94 -0
- package/es/qr-code/src/qrcodegen.mjs +882 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.mjs +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.mjs +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.mjs +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.mjs +12 -0
- package/es/radio/index.mjs +3 -0
- package/es/radio/src/Radio.mjs +114 -0
- package/es/radio/src/RadioButton.mjs +36 -0
- package/es/radio/src/RadioGroup.d.ts +1 -0
- package/es/radio/src/RadioGroup.mjs +218 -0
- package/es/radio/src/interface.mjs +1 -0
- package/es/radio/src/styles/radio-group.cssr.mjs +104 -0
- package/es/radio/src/styles/radio.cssr.mjs +107 -0
- package/es/radio/src/styles/rtl.cssr.mjs +20 -0
- package/es/radio/src/use-radio.d.ts +0 -1
- package/es/radio/src/use-radio.mjs +149 -0
- package/es/radio/styles/_common.mjs +7 -0
- package/es/radio/styles/dark.mjs +65 -0
- package/es/radio/styles/index.mjs +3 -0
- package/es/radio/styles/light.mjs +66 -0
- package/es/radio/styles/rtl.mjs +5 -0
- package/es/rate/index.mjs +1 -0
- package/es/rate/src/Rate.mjs +206 -0
- package/es/rate/src/StarIcon.mjs +6 -0
- package/es/rate/src/interface.mjs +1 -0
- package/es/rate/src/styles/index.cssr.mjs +44 -0
- package/es/rate/styles/dark.mjs +19 -0
- package/es/rate/styles/index.mjs +2 -0
- package/es/rate/styles/light.mjs +19 -0
- package/es/result/index.mjs +1 -0
- package/es/result/src/403.mjs +11 -0
- package/es/result/src/404.mjs +31 -0
- package/es/result/src/418.mjs +32 -0
- package/es/result/src/500.mjs +17 -0
- package/es/result/src/Result.mjs +126 -0
- package/es/result/src/styles/index.cssr.mjs +43 -0
- package/es/result/styles/_common.mjs +18 -0
- package/es/result/styles/dark.mjs +8 -0
- package/es/result/styles/index.mjs +2 -0
- package/es/result/styles/light.mjs +30 -0
- package/es/scrollbar/index.mjs +1 -0
- package/es/scrollbar/src/Scrollbar.mjs +37 -0
- package/es/select/index.mjs +1 -0
- package/es/select/src/Select.d.ts +6 -2
- package/es/select/src/Select.mjs +921 -0
- package/es/select/src/interface.mjs +1 -0
- package/es/select/src/styles/index.cssr.mjs +14 -0
- package/es/select/src/utils.mjs +68 -0
- package/es/select/styles/dark.mjs +14 -0
- package/es/select/styles/index.d.ts +1 -0
- package/es/select/styles/index.mjs +3 -0
- package/es/select/styles/light.mjs +22 -0
- package/es/select/styles/rtl.d.ts +2 -0
- package/es/select/styles/rtl.mjs +10 -0
- package/es/skeleton/index.mjs +1 -0
- package/es/skeleton/src/Skeleton.mjs +102 -0
- package/es/skeleton/src/styles/index.cssr.mjs +29 -0
- package/es/skeleton/styles/dark.mjs +21 -0
- package/es/skeleton/styles/index.mjs +2 -0
- package/es/skeleton/styles/light.mjs +22 -0
- package/es/slider/index.mjs +1 -0
- package/es/slider/src/Slider.d.ts +7 -1
- package/es/slider/src/Slider.mjs +686 -0
- package/es/slider/src/interface.mjs +1 -0
- package/es/slider/src/styles/index.cssr.mjs +201 -0
- package/es/slider/src/utils.d.ts +2 -2
- package/es/slider/src/utils.mjs +14 -0
- package/es/slider/styles/_common.mjs +8 -0
- package/es/slider/styles/dark.mjs +45 -0
- package/es/slider/styles/index.mjs +2 -0
- package/es/slider/styles/light.mjs +47 -0
- package/es/space/index.mjs +1 -0
- package/es/space/src/Space.d.ts +7 -0
- package/es/space/src/Space.mjs +146 -0
- package/es/space/src/styles/rtl.cssr.mjs +4 -0
- package/es/space/src/utils.mjs +21 -0
- package/es/space/styles/_common.mjs +5 -0
- package/es/space/styles/dark.mjs +8 -0
- package/es/space/styles/index.mjs +3 -0
- package/es/space/styles/light.mjs +9 -0
- package/es/space/styles/rtl.mjs +5 -0
- package/es/spin/index.mjs +1 -0
- package/es/spin/src/Spin.d.ts +7 -1
- package/es/spin/src/Spin.mjs +163 -0
- package/es/spin/src/styles/index.cssr.mjs +52 -0
- package/es/spin/styles/dark.mjs +8 -0
- package/es/spin/styles/index.mjs +2 -0
- package/es/spin/styles/light.mjs +30 -0
- package/es/split/index.d.ts +2 -0
- package/es/split/index.mjs +1 -0
- package/es/split/src/Split.d.ts +145 -0
- package/es/split/src/Split.mjs +157 -0
- package/es/split/src/styles/index.cssr.d.ts +2 -0
- package/es/split/src/styles/index.cssr.mjs +25 -0
- package/es/split/styles/dark.d.ts +3 -0
- package/es/split/styles/dark.mjs +6 -0
- package/es/split/styles/index.d.ts +3 -0
- package/es/split/styles/index.mjs +2 -0
- package/es/split/styles/light.d.ts +10 -0
- package/es/split/styles/light.mjs +17 -0
- package/es/statistic/index.mjs +1 -0
- package/es/statistic/src/Statistic.mjs +91 -0
- package/es/statistic/src/styles/index.cssr.mjs +38 -0
- package/es/statistic/src/styles/rtl.cssr.mjs +9 -0
- package/es/statistic/styles/dark.mjs +8 -0
- package/es/statistic/styles/index.mjs +3 -0
- package/es/statistic/styles/light.mjs +25 -0
- package/es/statistic/styles/rtl.mjs +5 -0
- package/es/steps/index.mjs +2 -0
- package/es/steps/src/Step.mjs +195 -0
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/src/Steps.mjs +63 -0
- package/es/steps/src/styles/index.cssr.mjs +102 -0
- package/es/steps/src/styles/rtl.cssr.mjs +14 -0
- package/es/steps/styles/_common.mjs +10 -0
- package/es/steps/styles/dark.mjs +8 -0
- package/es/steps/styles/index.mjs +3 -0
- package/es/steps/styles/light.mjs +46 -0
- package/es/steps/styles/rtl.mjs +5 -0
- package/es/styles.d.ts +4 -2
- package/es/styles.mjs +81 -0
- package/es/switch/index.mjs +1 -0
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/Switch.mjs +321 -0
- package/es/switch/src/interface.mjs +1 -0
- package/es/switch/src/styles/index.cssr.mjs +127 -0
- package/es/switch/styles/_common.mjs +17 -0
- package/es/switch/styles/dark.mjs +38 -0
- package/es/switch/styles/index.mjs +2 -0
- package/es/switch/styles/light.mjs +37 -0
- package/es/table/index.mjs +6 -0
- package/es/table/src/Table.mjs +122 -0
- package/es/table/src/Tbody.mjs +7 -0
- package/es/table/src/Td.mjs +7 -0
- package/es/table/src/Th.mjs +7 -0
- package/es/table/src/Thead.mjs +7 -0
- package/es/table/src/Tr.mjs +7 -0
- package/es/table/src/styles/index.cssr.mjs +96 -0
- package/es/table/src/styles/rtl.cssr.mjs +13 -0
- package/es/table/styles/_common.mjs +8 -0
- package/es/table/styles/dark.mjs +8 -0
- package/es/table/styles/index.mjs +3 -0
- package/es/table/styles/light.mjs +49 -0
- package/es/table/styles/rtl.mjs +5 -0
- package/es/tabs/index.mjs +3 -0
- package/es/tabs/src/Tab.d.ts +3 -0
- package/es/tabs/src/Tab.mjs +131 -0
- package/es/tabs/src/TabPane.mjs +52 -0
- package/es/tabs/src/Tabs.d.ts +17 -7
- package/es/tabs/src/Tabs.mjs +852 -0
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/tabs/src/interface.mjs +2 -0
- package/es/tabs/src/styles/index.cssr.mjs +375 -0
- package/es/tabs/styles/_common.mjs +58 -0
- package/es/tabs/styles/dark.mjs +16 -0
- package/es/tabs/styles/index.mjs +2 -0
- package/es/tabs/styles/light.mjs +63 -0
- package/es/tag/index.mjs +1 -0
- package/es/tag/src/Tag.d.ts +5 -12
- package/es/tag/src/Tag.mjs +268 -0
- package/es/tag/src/common-props.mjs +17 -0
- package/es/tag/src/styles/index.cssr.mjs +98 -0
- package/es/tag/src/styles/rtl.cssr.mjs +17 -0
- package/es/tag/styles/_common.d.ts +0 -1
- package/es/tag/styles/_common.mjs +12 -0
- package/es/tag/styles/dark.mjs +191 -0
- package/es/tag/styles/index.mjs +3 -0
- package/es/tag/styles/light.d.ts +0 -1
- package/es/tag/styles/light.mjs +172 -0
- package/es/tag/styles/rtl.mjs +5 -0
- package/es/theme-editor/index.mjs +1 -0
- package/es/theme-editor/src/MaximizeIcon.mjs +14 -0
- package/es/theme-editor/src/MinimizeIcon.mjs +15 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/es/theme-editor/src/ThemeEditor.mjs +385 -0
- package/es/themes/dark.mjs +173 -0
- package/es/themes/index.mjs +3 -0
- package/es/themes/interface.mjs +1 -0
- package/es/themes/light.mjs +175 -0
- package/es/themes/utils.mjs +18 -0
- package/es/thing/index.mjs +1 -0
- package/es/thing/src/Thing.d.ts +6 -0
- package/es/thing/src/Thing.mjs +98 -0
- package/es/thing/src/styles/index.cssr.mjs +41 -0
- package/es/thing/src/styles/rtl.cssr.mjs +8 -0
- package/es/thing/styles/dark.mjs +8 -0
- package/es/thing/styles/index.mjs +3 -0
- package/es/thing/styles/light.mjs +21 -0
- package/es/thing/styles/rtl.mjs +8 -0
- package/es/time/index.mjs +1 -0
- package/es/time/src/Time.mjs +89 -0
- package/es/time-picker/index.mjs +1 -0
- package/es/time-picker/src/Panel.d.ts +7 -3
- package/es/time-picker/src/Panel.mjs +292 -0
- package/es/time-picker/src/PanelCol.mjs +43 -0
- package/es/time-picker/src/TimePicker.d.ts +6 -3
- package/es/time-picker/src/TimePicker.mjs +868 -0
- package/es/time-picker/src/interface.mjs +2 -0
- package/es/time-picker/src/styles/index.cssr.mjs +99 -0
- package/es/time-picker/src/utils.mjs +73 -0
- package/es/time-picker/styles/_common.mjs +6 -0
- package/es/time-picker/styles/dark.mjs +16 -0
- package/es/time-picker/styles/index.mjs +2 -0
- package/es/time-picker/styles/light.mjs +44 -0
- package/es/timeline/index.mjs +2 -0
- package/es/timeline/src/Timeline.mjs +43 -0
- package/es/timeline/src/TimelineItem.mjs +137 -0
- package/es/timeline/src/styles/index.cssr.mjs +111 -0
- package/es/timeline/styles/_common.mjs +8 -0
- package/es/timeline/styles/dark.mjs +39 -0
- package/es/timeline/styles/index.mjs +2 -0
- package/es/timeline/styles/light.mjs +40 -0
- package/es/tooltip/index.mjs +1 -0
- package/es/tooltip/src/Tooltip.d.ts +18 -0
- package/es/tooltip/src/Tooltip.mjs +49 -0
- package/es/tooltip/styles/_common.mjs +3 -0
- package/es/tooltip/styles/dark.mjs +25 -0
- package/es/tooltip/styles/index.mjs +2 -0
- package/es/tooltip/styles/light.mjs +27 -0
- package/es/transfer/index.mjs +1 -0
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.mjs +331 -0
- package/es/transfer/src/TransferFilter.mjs +52 -0
- package/es/transfer/src/TransferHeader.mjs +84 -0
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/transfer/src/TransferList.mjs +136 -0
- package/es/transfer/src/TransferListItem.mjs +89 -0
- package/es/transfer/src/interface.mjs +2 -0
- package/es/transfer/src/styles/index.cssr.mjs +151 -0
- package/es/transfer/src/use-transfer-data.mjs +125 -0
- package/es/transfer/styles/_common.mjs +13 -0
- package/es/transfer/styles/dark.mjs +69 -0
- package/es/transfer/styles/index.mjs +2 -0
- package/es/transfer/styles/light.mjs +72 -0
- package/es/tree/index.d.ts +2 -1
- package/es/tree/index.mjs +2 -0
- package/es/tree/src/MotionWrapper.mjs +46 -0
- package/es/tree/src/Tree.d.ts +21 -6
- package/es/tree/src/Tree.mjs +1515 -0
- package/es/tree/src/TreeNode.mjs +463 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/TreeNodeCheckbox.mjs +68 -0
- package/es/tree/src/TreeNodeContent.mjs +97 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.mjs +75 -0
- package/es/tree/src/dnd.mjs +44 -0
- package/es/tree/src/interface.d.ts +10 -4
- package/es/tree/src/interface.mjs +2 -0
- package/es/tree/src/keyboard.d.ts +8 -3
- package/es/tree/src/keyboard.mjs +135 -0
- package/es/tree/src/styles/index.cssr.mjs +135 -0
- package/es/tree/src/styles/rtl.cssr.mjs +17 -0
- package/es/tree/src/utils.d.ts +1 -0
- package/es/tree/src/utils.mjs +120 -0
- package/es/tree/styles/dark.mjs +26 -0
- package/es/tree/styles/index.mjs +3 -0
- package/es/tree/styles/light.d.ts +2 -0
- package/es/tree/styles/light.mjs +48 -0
- package/es/tree/styles/rtl.mjs +5 -0
- package/es/tree-select/index.d.ts +1 -0
- package/es/tree-select/index.mjs +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +29 -13
- package/es/tree-select/src/TreeSelect.mjs +871 -0
- package/es/tree-select/src/interface.mjs +2 -0
- package/es/tree-select/src/styles/index.cssr.mjs +38 -0
- package/es/tree-select/src/utils.mjs +18 -0
- package/es/tree-select/styles/dark.mjs +14 -0
- package/es/tree-select/styles/index.mjs +2 -0
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/tree-select/styles/light.mjs +36 -0
- package/es/typography/index.mjs +10 -0
- package/es/typography/src/a.mjs +45 -0
- package/es/typography/src/blockquote.mjs +56 -0
- package/es/typography/src/create-header.mjs +79 -0
- package/es/typography/src/headers.mjs +7 -0
- package/es/typography/src/hr.mjs +44 -0
- package/es/typography/src/li.mjs +7 -0
- package/es/typography/src/ol.mjs +60 -0
- package/es/typography/src/p.mjs +58 -0
- package/es/typography/src/styles/a.cssr.mjs +12 -0
- package/es/typography/src/styles/blockquote.cssr.mjs +27 -0
- package/es/typography/src/styles/header.cssr.mjs +37 -0
- package/es/typography/src/styles/hr.cssr.mjs +11 -0
- package/es/typography/src/styles/list.cssr.mjs +32 -0
- package/es/typography/src/styles/p.cssr.mjs +15 -0
- package/es/typography/src/styles/text.cssr.mjs +34 -0
- package/es/typography/src/text.mjs +105 -0
- package/es/typography/src/ul.mjs +60 -0
- package/es/typography/styles/_common.mjs +30 -0
- package/es/typography/styles/dark.mjs +8 -0
- package/es/typography/styles/index.mjs +2 -0
- package/es/typography/styles/light.mjs +65 -0
- package/es/upload/index.mjs +4 -0
- package/es/upload/src/Upload.d.ts +6 -0
- package/es/upload/src/Upload.mjs +681 -0
- package/es/upload/src/UploadDragger.mjs +32 -0
- package/es/upload/src/UploadFile.mjs +377 -0
- package/es/upload/src/UploadFileList.mjs +57 -0
- package/es/upload/src/UploadProgress.mjs +38 -0
- package/es/upload/src/UploadTrigger.mjs +96 -0
- package/es/upload/src/icons.mjs +23 -0
- package/es/upload/src/interface.d.ts +2 -0
- package/es/upload/src/interface.mjs +2 -0
- package/es/upload/src/styles/index.cssr.mjs +224 -0
- package/es/upload/src/utils.d.ts +0 -1
- package/es/upload/src/utils.mjs +160 -0
- package/es/upload/styles/dark.mjs +24 -0
- package/es/upload/styles/index.mjs +2 -0
- package/es/upload/styles/light.mjs +50 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -0
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.mjs +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.mjs +133 -0
- package/es/watermark/index.mjs +1 -0
- package/es/watermark/src/Watermark.mjs +213 -0
- package/es/watermark/src/styles/index.cssr.mjs +30 -0
- package/es/watermark/styles/dark.mjs +14 -0
- package/es/watermark/styles/index.mjs +2 -0
- package/es/watermark/styles/light.mjs +15 -0
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/lib/_internal/loading/src/Loading.js +7 -10
- package/lib/_internal/loading/src/styles/index.cssr.js +14 -119
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +12 -7
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +3 -6
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +6 -4
- package/lib/_internal/select-menu/src/SelectMenu.js +6 -2
- package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/lib/_internal/select-menu/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/_internal/select-menu/src/styles/rtl.cssr.js +15 -0
- package/lib/_internal/select-menu/styles/index.d.ts +1 -0
- package/lib/_internal/select-menu/styles/index.js +3 -1
- package/lib/_internal/select-menu/styles/rtl.d.ts +2 -0
- package/lib/_internal/select-menu/styles/rtl.js +11 -0
- package/lib/_internal/selection/src/Selection.d.ts +17 -4
- package/lib/_internal/selection/src/Selection.js +23 -16
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -0
- package/lib/_internal/selection/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/_internal/selection/src/styles/rtl.cssr.js +14 -0
- package/lib/_internal/selection/styles/index.d.ts +1 -0
- package/lib/_internal/selection/styles/index.js +3 -1
- package/lib/_internal/selection/styles/rtl.d.ts +2 -0
- package/lib/_internal/selection/styles/rtl.js +11 -0
- package/lib/_styles/common/_common.js +1 -1
- package/lib/_styles/common/light.js +2 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +2 -0
- package/lib/_utils/css/color-to-class.js +1 -1
- package/lib/_utils/css/index.d.ts +1 -0
- package/lib/_utils/css/index.js +3 -1
- package/lib/_utils/css/rtl-inset.d.ts +1 -0
- package/lib/_utils/css/rtl-inset.js +9 -0
- package/lib/_utils/cssr/index.d.ts +2 -2
- package/lib/_utils/cssr/index.js +8 -2
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +16 -0
- package/lib/_utils/dom/index.d.ts +1 -0
- package/lib/_utils/dom/index.js +3 -1
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/flatten.js +3 -1
- package/lib/affix/src/Affix.d.ts +8 -8
- package/lib/affix/src/Affix.js +5 -3
- package/lib/alert/src/Alert.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +7 -7
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -1
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +36 -39
- package/lib/avatar-group/src/AvatarGroup.d.ts +4 -0
- package/lib/avatar-group/src/AvatarGroup.js +4 -2
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +12 -6
- package/lib/button/src/Button.d.ts +1 -1
- package/lib/button/src/Button.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +2 -0
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +11 -4
- package/lib/carousel/src/Carousel.d.ts +5 -6
- package/lib/carousel/src/Carousel.js +7 -4
- package/lib/carousel/src/utils/duplicatedLogic.d.ts +1 -1
- package/lib/carousel/src/utils/duplicatedLogic.js +2 -0
- package/lib/cascader/src/Cascader.d.ts +5 -1
- package/lib/cascader/src/Cascader.js +2 -2
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +6 -6
- package/lib/collapse/src/styles/index.cssr.js +1 -1
- package/lib/color-picker/src/ColorPickerSwatches.js +4 -3
- package/lib/components.d.ts +4 -0
- package/lib/components.js +4 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +9 -0
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +6 -0
- package/lib/data-table/src/DataTable.d.ts +6 -4
- package/lib/data-table/src/DataTable.js +16 -3
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.js +8 -1
- package/lib/data-table/src/MainTable.js +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +4 -4
- package/lib/data-table/src/TableParts/Body.js +6 -4
- package/lib/data-table/src/TableParts/Cell.js +2 -1
- package/lib/data-table/src/interface.d.ts +6 -1
- package/lib/data-table/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/data-table/src/styles/rtl.cssr.js +23 -0
- package/lib/data-table/src/use-sorter.js +9 -1
- package/lib/data-table/src/use-table-data.js +4 -2
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +21 -1
- package/lib/data-table/styles/index.d.ts +1 -0
- package/lib/data-table/styles/index.js +3 -1
- package/lib/data-table/styles/rtl.d.ts +2 -0
- package/lib/data-table/styles/rtl.js +14 -0
- package/lib/date-picker/src/DatePicker.d.ts +82 -4
- package/lib/date-picker/src/DatePicker.js +27 -8
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +3 -0
- package/lib/date-picker/src/panel/date.d.ts +83 -42
- package/lib/date-picker/src/panel/date.js +12 -5
- package/lib/date-picker/src/panel/daterange.d.ts +14 -2
- package/lib/date-picker/src/panel/datetime.d.ts +16 -2
- package/lib/date-picker/src/panel/datetimerange.d.ts +14 -2
- package/lib/date-picker/src/panel/month.d.ts +17 -3
- package/lib/date-picker/src/panel/month.js +13 -8
- package/lib/date-picker/src/panel/monthrange.d.ts +15 -3
- package/lib/date-picker/src/panel/monthrange.js +12 -8
- package/lib/date-picker/src/panel/panelHeader.d.ts +744 -773
- package/lib/date-picker/src/panel/use-calendar.d.ts +13 -3
- package/lib/date-picker/src/panel/use-calendar.js +47 -8
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +10 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +23 -11
- package/lib/date-picker/src/panel/use-panel-common.d.ts +8 -0
- package/lib/date-picker/src/panel/use-panel-common.js +5 -1
- package/lib/date-picker/src/styles/index.cssr.js +41 -8
- package/lib/date-picker/src/utils.d.ts +18 -5
- package/lib/date-picker/src/utils.js +85 -19
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +4 -2
- package/lib/date-picker/styles/light.d.ts +4 -0
- package/lib/descriptions/src/Descriptions.d.ts +7 -1
- package/lib/descriptions/src/Descriptions.js +22 -7
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/lib/descriptions/src/DescriptionsItem.js +2 -0
- package/lib/dialog/src/Dialog.d.ts +5 -1
- package/lib/dialog/src/Dialog.js +21 -5
- package/lib/dialog/src/DialogEnvironment.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +15 -11
- package/lib/dialog/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/dialog/src/styles/rtl.cssr.js +23 -0
- package/lib/dialog/styles/index.d.ts +1 -0
- package/lib/dialog/styles/index.js +3 -1
- package/lib/dialog/styles/rtl.d.ts +2 -0
- package/lib/dialog/styles/rtl.js +11 -0
- package/lib/drawer/src/Drawer.d.ts +4 -1
- package/lib/drawer/src/Drawer.js +6 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +8 -1
- package/lib/drawer/src/DrawerContent.d.ts +15 -9
- package/lib/drawer/src/DrawerContent.js +16 -8
- package/lib/dropdown/src/Dropdown.d.ts +18 -0
- package/lib/dropdown/src/Dropdown.js +1 -1
- package/lib/dropdown/src/DropdownMenu.js +4 -1
- package/lib/dropdown/src/DropdownOption.d.ts +5 -4
- package/lib/dropdown/src/DropdownOption.js +2 -4
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/lib/dynamic-input/src/DynamicInput.js +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +9 -12
- package/lib/dynamic-tags/src/DynamicTags.js +7 -7
- package/lib/dynamic-tags/styles/light.d.ts +0 -1
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/src/Equation.d.ts +2 -0
- package/lib/flex/index.d.ts +3 -0
- package/lib/flex/index.js +9 -0
- package/lib/flex/src/Flex.d.ts +116 -0
- package/lib/flex/src/Flex.js +79 -0
- package/lib/flex/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/flex/src/styles/rtl.cssr.js +9 -0
- package/lib/flex/src/type.d.ts +3 -0
- package/lib/flex/src/type.js +2 -0
- package/lib/flex/styles/_common.d.ts +6 -0
- package/lib/flex/styles/_common.js +7 -0
- package/lib/flex/styles/dark.d.ts +3 -0
- package/lib/flex/styles/dark.js +13 -0
- package/lib/flex/styles/index.d.ts +4 -0
- package/lib/flex/styles/index.js +12 -0
- package/lib/flex/styles/light.d.ts +10 -0
- package/lib/flex/styles/light.js +14 -0
- package/lib/flex/styles/rtl.d.ts +2 -0
- package/lib/flex/styles/rtl.js +11 -0
- package/lib/form/src/Form.js +14 -11
- package/lib/form/src/FormItem.d.ts +2 -1
- package/lib/form/src/FormItem.js +62 -42
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/interface.d.ts +12 -5
- package/lib/form/src/styles/form-item.cssr.js +1 -1
- package/lib/form/src/utils.d.ts +2 -1
- package/lib/form/src/utils.js +4 -0
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/image/src/Image.js +1 -2
- package/lib/image/src/ImagePreview.js +2 -2
- package/lib/input/src/Input.d.ts +5 -4
- package/lib/input/src/Input.js +20 -12
- package/lib/input/src/interface.d.ts +7 -2
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +5 -1
- package/lib/input-number/src/InputNumber.js +2 -2
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/Layout.js +8 -1
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +9 -0
- package/lib/layout/src/LayoutSider.js +12 -3
- package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
- package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +2 -0
- package/lib/loading-bar/src/LoadingBar.js +3 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
- package/lib/locales/common/arDZ.js +4 -1
- package/lib/locales/common/deDE.js +4 -1
- package/lib/locales/common/enGB.js +4 -1
- package/lib/locales/common/enUS.d.ts +3 -0
- package/lib/locales/common/enUS.js +4 -1
- package/lib/locales/common/eo.js +4 -1
- package/lib/locales/common/esAR.js +4 -1
- package/lib/locales/common/faIR.js +4 -1
- package/lib/locales/common/frFR.js +5 -2
- package/lib/locales/common/idID.js +4 -1
- package/lib/locales/common/itIT.js +4 -1
- package/lib/locales/common/jaJP.js +12 -12
- package/lib/locales/common/koKR.js +4 -1
- package/lib/locales/common/nbNO.js +4 -1
- package/lib/locales/common/nlNL.js +4 -1
- package/lib/locales/common/plPL.js +4 -1
- package/lib/locales/common/ptBR.js +4 -1
- package/lib/locales/common/ruRU.js +22 -24
- package/lib/locales/common/skSK.js +4 -1
- package/lib/locales/common/svSE.js +4 -1
- package/lib/locales/common/thTH.js +4 -1
- package/lib/locales/common/trTR.js +4 -1
- package/lib/locales/common/ukUA.js +4 -1
- package/lib/locales/common/viVN.js +4 -1
- package/lib/locales/common/zhCN.js +4 -1
- package/lib/locales/common/zhTW.js +4 -1
- package/lib/log/src/Log.d.ts +3 -3
- package/lib/mention/src/Mention.d.ts +2 -1
- package/lib/mention/src/utils.js +4 -4
- package/lib/menu/src/Menu.d.ts +30 -13
- package/lib/menu/src/Menu.js +101 -7
- package/lib/menu/src/MenuOptionContent.d.ts +3 -0
- package/lib/menu/src/MenuOptionContent.js +7 -2
- package/lib/menu/src/Submenu.d.ts +23 -12
- package/lib/menu/src/Submenu.js +9 -8
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/styles/index.cssr.js +8 -4
- package/lib/menu/src/use-menu-child.js +5 -5
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +7 -4
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +12 -4
- package/lib/modal/src/Modal.d.ts +16 -4
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/notification/src/NotificationEnvironment.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +3 -0
- package/lib/notification/src/NotificationProvider.js +2 -2
- package/lib/notification/src/styles/index.cssr.js +10 -11
- package/lib/pagination/src/Pagination.d.ts +13 -0
- package/lib/pagination/src/Pagination.js +9 -13
- package/lib/pagination/src/utils.d.ts +4 -2
- package/lib/pagination/src/utils.js +21 -4
- package/lib/pagination/styles/rtl.js +2 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +18 -0
- package/lib/popover/src/Popover.d.ts +24 -0
- package/lib/popover/src/Popover.js +7 -0
- package/lib/popover/src/PopoverBody.d.ts +22 -1
- package/lib/popover/src/PopoverBody.js +26 -10
- package/lib/popover/src/interface.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +18 -0
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.js +2 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +154 -0
- package/lib/qr-code/src/QrCode.js +152 -0
- package/lib/qr-code/src/qrcodegen.d.ts +94 -0
- package/lib/qr-code/src/qrcodegen.js +949 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/Radio.js +4 -6
- package/lib/radio/src/RadioGroup.d.ts +1 -0
- package/lib/radio/src/RadioGroup.js +2 -1
- package/lib/radio/src/styles/radio-group.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +0 -1
- package/lib/radio/src/use-radio.js +6 -1
- package/lib/scrollbar/src/Scrollbar.js +2 -0
- package/lib/select/src/Select.d.ts +6 -2
- package/lib/select/src/Select.js +3 -2
- package/lib/select/styles/index.d.ts +1 -0
- package/lib/select/styles/index.js +3 -1
- package/lib/select/styles/rtl.d.ts +2 -0
- package/lib/select/styles/rtl.js +13 -0
- package/lib/skeleton/src/Skeleton.js +3 -6
- package/lib/slider/src/Slider.d.ts +7 -1
- package/lib/slider/src/Slider.js +10 -3
- package/lib/slider/src/utils.d.ts +2 -2
- package/lib/slider/src/utils.js +3 -3
- package/lib/space/src/Space.d.ts +7 -0
- package/lib/space/src/Space.js +19 -8
- package/lib/spin/src/Spin.d.ts +7 -1
- package/lib/spin/src/Spin.js +4 -3
- package/lib/spin/src/styles/index.cssr.js +3 -3
- package/lib/split/index.d.ts +2 -0
- package/lib/split/index.js +9 -0
- package/lib/split/src/Split.d.ts +145 -0
- package/lib/split/src/Split.js +152 -0
- package/lib/split/src/styles/index.cssr.d.ts +2 -0
- package/lib/split/src/styles/index.cssr.js +30 -0
- package/lib/split/styles/dark.d.ts +3 -0
- package/lib/split/styles/dark.js +8 -0
- package/lib/split/styles/index.d.ts +3 -0
- package/lib/split/styles/index.js +10 -0
- package/lib/split/styles/light.d.ts +10 -0
- package/lib/split/styles/light.js +18 -0
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/styles.d.ts +4 -2
- package/lib/styles.js +160 -152
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +3 -0
- package/lib/tabs/src/Tab.js +11 -5
- package/lib/tabs/src/Tabs.d.ts +17 -7
- package/lib/tabs/src/Tabs.js +94 -35
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/tabs/src/styles/index.cssr.js +23 -6
- package/lib/tag/src/Tag.d.ts +5 -12
- package/lib/tag/src/Tag.js +7 -3
- package/lib/tag/src/styles/index.cssr.js +1 -0
- package/lib/tag/src/styles/rtl.cssr.js +2 -3
- package/lib/tag/styles/_common.d.ts +0 -1
- package/lib/tag/styles/_common.js +1 -2
- package/lib/tag/styles/light.d.ts +0 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/lib/theme-editor/src/ThemeEditor.js +1 -6
- package/lib/themes/dark.js +58 -52
- package/lib/themes/light.js +58 -52
- package/lib/thing/src/Thing.d.ts +6 -0
- package/lib/thing/src/Thing.js +13 -4
- package/lib/time-picker/src/Panel.d.ts +7 -3
- package/lib/time-picker/src/Panel.js +6 -3
- package/lib/time-picker/src/TimePicker.d.ts +6 -3
- package/lib/time-picker/src/TimePicker.js +17 -3
- package/lib/tooltip/src/Tooltip.d.ts +18 -0
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/tree/index.d.ts +2 -1
- package/lib/tree/index.js +3 -1
- package/lib/tree/src/Tree.d.ts +21 -6
- package/lib/tree/src/Tree.js +28 -7
- package/lib/tree/src/TreeNode.js +70 -29
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +10 -4
- package/lib/tree/src/keyboard.d.ts +8 -3
- package/lib/tree/src/keyboard.js +31 -5
- package/lib/tree/src/styles/index.cssr.js +5 -4
- package/lib/tree/src/utils.d.ts +1 -0
- package/lib/tree/src/utils.js +14 -1
- package/lib/tree/styles/light.d.ts +2 -0
- package/lib/tree/styles/light.js +3 -2
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +29 -13
- package/lib/tree-select/src/TreeSelect.js +17 -7
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/upload/src/Upload.d.ts +6 -0
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/UploadFileList.js +3 -2
- package/lib/upload/src/UploadTrigger.js +3 -2
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/upload/src/styles/index.cssr.js +1 -1
- package/lib/upload/src/utils.d.ts +0 -1
- package/lib/upload/src/utils.js +25 -52
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +105 -0
- package/lib/watermark/src/Watermark.js +7 -0
- package/package.json +19 -18
- package/volar.d.ts +146 -141
- package/web-types.json +1107 -39
- package/es/_internal/clear/index.js +0 -1
- package/es/_internal/clear/src/Clear.js +0 -42
- package/es/_internal/clear/src/styles/index.cssr.js +0 -37
- package/es/_internal/close/index.js +0 -1
- package/es/_internal/close/src/Close.js +0 -49
- package/es/_internal/close/src/styles/index.cssr.js +0 -54
- package/es/_internal/fade-in-expand-transition/index.js +0 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +0 -108
- package/es/_internal/focus-detector/index.js +0 -2
- package/es/_internal/focus-detector/src/FocusDetector.js +0 -10
- package/es/_internal/icon/index.js +0 -1
- package/es/_internal/icon/src/Icon.js +0 -31
- package/es/_internal/icon/src/styles/index.cssr.js +0 -14
- package/es/_internal/icon-switch-transition/index.js +0 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.js +0 -9
- package/es/_internal/icons/Add.js +0 -8
- package/es/_internal/icons/ArrowBack.js +0 -9
- package/es/_internal/icons/ArrowDown.js +0 -10
- package/es/_internal/icons/ArrowUp.js +0 -9
- package/es/_internal/icons/Attach.js +0 -6
- package/es/_internal/icons/Backward.js +0 -8
- package/es/_internal/icons/Cancel.js +0 -6
- package/es/_internal/icons/Checkmark.js +0 -9
- package/es/_internal/icons/ChevronDown.js +0 -8
- package/es/_internal/icons/ChevronDownFilled.js +0 -8
- package/es/_internal/icons/ChevronLeft.js +0 -8
- package/es/_internal/icons/ChevronRight.js +0 -8
- package/es/_internal/icons/Clear.js +0 -6
- package/es/_internal/icons/Close.js +0 -6
- package/es/_internal/icons/Date.js +0 -6
- package/es/_internal/icons/Download.js +0 -6
- package/es/_internal/icons/Empty.js +0 -9
- package/es/_internal/icons/Error.js +0 -6
- package/es/_internal/icons/Eye.js +0 -9
- package/es/_internal/icons/EyeOff.js +0 -12
- package/es/_internal/icons/FastBackward.js +0 -10
- package/es/_internal/icons/FastForward.js +0 -10
- package/es/_internal/icons/File.js +0 -10
- package/es/_internal/icons/Filter.js +0 -10
- package/es/_internal/icons/Forward.js +0 -8
- package/es/_internal/icons/Info.js +0 -6
- package/es/_internal/icons/More.js +0 -10
- package/es/_internal/icons/Photo.js +0 -12
- package/es/_internal/icons/Remove.js +0 -8
- package/es/_internal/icons/ResizeSmall.js +0 -9
- package/es/_internal/icons/Retry.js +0 -5
- package/es/_internal/icons/RotateClockwise.js +0 -5
- package/es/_internal/icons/RotateCounterclockwise.js +0 -5
- package/es/_internal/icons/Search.js +0 -8
- package/es/_internal/icons/Success.js +0 -6
- package/es/_internal/icons/Switcher.js +0 -8
- package/es/_internal/icons/Time.js +0 -5
- package/es/_internal/icons/To.js +0 -6
- package/es/_internal/icons/Trash.js +0 -7
- package/es/_internal/icons/Warning.js +0 -6
- package/es/_internal/icons/ZoomIn.js +0 -5
- package/es/_internal/icons/ZoomOut.js +0 -5
- package/es/_internal/icons/index.js +0 -42
- package/es/_internal/icons/replaceable.js +0 -18
- package/es/_internal/index.js +0 -14
- package/es/_internal/loading/index.js +0 -1
- package/es/_internal/loading/src/Loading.js +0 -52
- package/es/_internal/loading/src/styles/index.cssr.js +0 -139
- package/es/_internal/menu-mask/index.js +0 -1
- package/es/_internal/menu-mask/src/MenuMask.js +0 -41
- package/es/_internal/menu-mask/src/interface.js +0 -1
- package/es/_internal/menu-mask/src/styles/index.cssr.js +0 -15
- package/es/_internal/scrollbar/index.js +0 -1
- package/es/_internal/scrollbar/src/Scrollbar.js +0 -622
- package/es/_internal/scrollbar/src/styles/index.cssr.js +0 -63
- package/es/_internal/scrollbar/src/styles/rtl.cssr.js +0 -10
- package/es/_internal/scrollbar/styles/dark.js +0 -8
- package/es/_internal/scrollbar/styles/index.js +0 -3
- package/es/_internal/scrollbar/styles/light.js +0 -14
- package/es/_internal/scrollbar/styles/rtl.js +0 -6
- package/es/_internal/select-menu/index.js +0 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.js +0 -40
- package/es/_internal/select-menu/src/SelectMenu.js +0 -347
- package/es/_internal/select-menu/src/SelectOption.js +0 -119
- package/es/_internal/select-menu/src/interface.js +0 -3
- package/es/_internal/select-menu/src/styles/index.cssr.js +0 -107
- package/es/_internal/select-menu/styles/_common.js +0 -12
- package/es/_internal/select-menu/styles/dark.js +0 -14
- package/es/_internal/select-menu/styles/index.js +0 -2
- package/es/_internal/select-menu/styles/light.js +0 -19
- package/es/_internal/selection/index.js +0 -1
- package/es/_internal/selection/src/Selection.js +0 -595
- package/es/_internal/selection/src/interface.js +0 -1
- package/es/_internal/selection/src/styles/index.cssr.js +0 -227
- package/es/_internal/selection/styles/_common.js +0 -6
- package/es/_internal/selection/styles/dark.js +0 -46
- package/es/_internal/selection/styles/index.js +0 -2
- package/es/_internal/selection/styles/light.js +0 -48
- package/es/_internal/slot-machine/index.js +0 -1
- package/es/_internal/slot-machine/src/SlotMachine.js +0 -75
- package/es/_internal/slot-machine/src/SlotMachineNumber.js +0 -89
- package/es/_internal/slot-machine/src/styles/index.cssr.js +0 -101
- package/es/_internal/suffix/index.js +0 -1
- package/es/_internal/suffix/src/Suffix.js +0 -42
- package/es/_internal/wave/index.js +0 -1
- package/es/_internal/wave/src/Wave.js +0 -51
- package/es/_internal/wave/src/styles/index.cssr.js +0 -9
- package/es/_mixins/common.js +0 -1
- package/es/_mixins/index.js +0 -8
- package/es/_mixins/use-config.js +0 -32
- package/es/_mixins/use-css-vars-class.js +0 -54
- package/es/_mixins/use-form-item.js +0 -69
- package/es/_mixins/use-hljs.js +0 -26
- package/es/_mixins/use-locale.js +0 -18
- package/es/_mixins/use-rtl.js +0 -50
- package/es/_mixins/use-style.js +0 -41
- package/es/_mixins/use-theme.js +0 -109
- package/es/_styles/common/_common.js +0 -25
- package/es/_styles/common/dark.js +0 -92
- package/es/_styles/common/index.js +0 -2
- package/es/_styles/common/light.js +0 -96
- package/es/_styles/global/index.cssr.js +0 -28
- package/es/_styles/transitions/fade-down.cssr.js +0 -25
- package/es/_styles/transitions/fade-in-height-expand.cssr.js +0 -51
- package/es/_styles/transitions/fade-in-scale-up.cssr.js +0 -27
- package/es/_styles/transitions/fade-in-width-expand.cssr.js +0 -31
- package/es/_styles/transitions/fade-in.cssr.js +0 -22
- package/es/_styles/transitions/fade-up-width-expand.cssr.js +0 -36
- package/es/_styles/transitions/icon-switch.cssr.js +0 -29
- package/es/_styles/transitions/slide-in-from-bottom.js +0 -25
- package/es/_styles/transitions/slide-in-from-left.js +0 -25
- package/es/_styles/transitions/slide-in-from-right.js +0 -25
- package/es/_styles/transitions/slide-in-from-top.js +0 -25
- package/es/_utils/color/index.js +0 -7
- package/es/_utils/composable/index.js +0 -8
- package/es/_utils/composable/use-adjusted-to.js +0 -55
- package/es/_utils/composable/use-browser-location.js +0 -35
- package/es/_utils/composable/use-collection.js +0 -87
- package/es/_utils/composable/use-deferred-true.js +0 -25
- package/es/_utils/composable/use-houdini.js +0 -29
- package/es/_utils/composable/use-is-composing.js +0 -32
- package/es/_utils/composable/use-lock-html-scroll.js +0 -63
- package/es/_utils/composable/use-reactivated.js +0 -20
- package/es/_utils/composable/use-resize.js +0 -19
- package/es/_utils/css/color-to-class.js +0 -3
- package/es/_utils/css/format-length.js +0 -30
- package/es/_utils/css/index.js +0 -2
- package/es/_utils/cssr/create-key.d.ts +0 -44
- package/es/_utils/cssr/create-key.js +0 -8
- package/es/_utils/cssr/index.js +0 -31
- package/es/_utils/dom/index.js +0 -1
- package/es/_utils/dom/is-document.js +0 -3
- package/es/_utils/env/browser.js +0 -4
- package/es/_utils/env/is-browser.js +0 -1
- package/es/_utils/env/is-jsdom.js +0 -9
- package/es/_utils/env/is-native-lazy-load.js +0 -2
- package/es/_utils/event/index.js +0 -7
- package/es/_utils/index.js +0 -9
- package/es/_utils/naive/attribute.js +0 -11
- package/es/_utils/naive/extract-public-props.js +0 -1
- package/es/_utils/naive/index.js +0 -3
- package/es/_utils/naive/mutable.js +0 -1
- package/es/_utils/naive/prop.js +0 -27
- package/es/_utils/naive/warn.js +0 -14
- package/es/_utils/vue/call.js +0 -8
- package/es/_utils/vue/create-data-key.js +0 -3
- package/es/_utils/vue/create-injection-key.js +0 -3
- package/es/_utils/vue/create-ref-setter.js +0 -10
- package/es/_utils/vue/flatten.js +0 -30
- package/es/_utils/vue/get-first-slot-vnode.js +0 -18
- package/es/_utils/vue/get-slot.js +0 -7
- package/es/_utils/vue/get-v-node-children.js +0 -12
- package/es/_utils/vue/index.js +0 -16
- package/es/_utils/vue/is-node-v-show-false.js +0 -6
- package/es/_utils/vue/keep.js +0 -7
- package/es/_utils/vue/keysOf.js +0 -3
- package/es/_utils/vue/merge-handlers.js +0 -15
- package/es/_utils/vue/omit.js +0 -10
- package/es/_utils/vue/render.js +0 -15
- package/es/_utils/vue/resolve-slot.js +0 -44
- package/es/_utils/vue/wrapper.js +0 -7
- package/es/affix/index.js +0 -1
- package/es/affix/src/Affix.js +0 -184
- package/es/affix/src/styles/index.cssr.js +0 -6
- package/es/affix/src/utils.js +0 -8
- package/es/alert/index.js +0 -1
- package/es/alert/src/Alert.js +0 -164
- package/es/alert/src/styles/index.cssr.js +0 -103
- package/es/alert/src/styles/rtl.cssr.js +0 -16
- package/es/alert/styles/_common.js +0 -10
- package/es/alert/styles/dark.js +0 -21
- package/es/alert/styles/index.js +0 -3
- package/es/alert/styles/light.js +0 -18
- package/es/alert/styles/rtl.js +0 -5
- package/es/anchor/index.js +0 -2
- package/es/anchor/src/AnchorAdapter.js +0 -53
- package/es/anchor/src/BaseAnchor.js +0 -259
- package/es/anchor/src/Link.js +0 -44
- package/es/anchor/src/styles/index.cssr.js +0 -89
- package/es/anchor/src/utils.js +0 -10
- package/es/anchor/styles/_common.js +0 -5
- package/es/anchor/styles/dark.js +0 -8
- package/es/anchor/styles/index.js +0 -2
- package/es/anchor/styles/light.js +0 -14
- package/es/auto-complete/index.js +0 -1
- package/es/auto-complete/src/AutoComplete.js +0 -293
- package/es/auto-complete/src/interface.js +0 -1
- package/es/auto-complete/src/styles/index.cssr.js +0 -16
- package/es/auto-complete/src/utils.js +0 -25
- package/es/auto-complete/styles/dark.js +0 -14
- package/es/auto-complete/styles/index.js +0 -2
- package/es/auto-complete/styles/light.js +0 -20
- package/es/avatar/index.js +0 -1
- package/es/avatar/src/Avatar.js +0 -235
- package/es/avatar/src/context.js +0 -2
- package/es/avatar/src/interface.js +0 -1
- package/es/avatar/src/styles/index.cssr.js +0 -39
- package/es/avatar/styles/dark.js +0 -8
- package/es/avatar/styles/index.js +0 -2
- package/es/avatar/styles/light.js +0 -24
- package/es/avatar-group/index.js +0 -1
- package/es/avatar-group/src/AvatarGroup.js +0 -68
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +0 -10
- package/es/avatar-group/src/styles/avatar-group.cssr.js +0 -15
- package/es/avatar-group/styles/dark.js +0 -12
- package/es/avatar-group/styles/index.js +0 -3
- package/es/avatar-group/styles/light.js +0 -17
- package/es/avatar-group/styles/rtl.js +0 -5
- package/es/back-top/index.js +0 -1
- package/es/back-top/src/BackTop.js +0 -210
- package/es/back-top/src/BackTopIcon.js +0 -10
- package/es/back-top/src/styles/index.cssr.js +0 -51
- package/es/back-top/styles/_common.js +0 -6
- package/es/back-top/styles/dark.js +0 -11
- package/es/back-top/styles/index.js +0 -2
- package/es/back-top/styles/light.js +0 -12
- package/es/badge/index.js +0 -1
- package/es/badge/src/Badge.js +0 -112
- package/es/badge/src/styles/index.cssr.js +0 -79
- package/es/badge/src/styles/rtl.cssr.js +0 -9
- package/es/badge/styles/dark.js +0 -18
- package/es/badge/styles/index.js +0 -3
- package/es/badge/styles/light.js +0 -19
- package/es/badge/styles/rtl.js +0 -5
- package/es/breadcrumb/index.js +0 -2
- package/es/breadcrumb/src/Breadcrumb.js +0 -54
- package/es/breadcrumb/src/BreadcrumbItem.js +0 -49
- package/es/breadcrumb/src/styles/index.cssr.js +0 -72
- package/es/breadcrumb/styles/_common.js +0 -3
- package/es/breadcrumb/styles/dark.js +0 -8
- package/es/breadcrumb/styles/index.js +0 -2
- package/es/breadcrumb/styles/light.js +0 -12
- package/es/button/index.js +0 -1
- package/es/button/src/Button.js +0 -471
- package/es/button/src/interface.js +0 -1
- package/es/button/src/styles/index.cssr.js +0 -189
- package/es/button/src/styles/rtl.cssr.js +0 -10
- package/es/button/styles/_common.js +0 -19
- package/es/button/styles/dark.js +0 -15
- package/es/button/styles/index.js +0 -3
- package/es/button/styles/light.js +0 -38
- package/es/button/styles/rtl.js +0 -5
- package/es/button-group/index.js +0 -1
- package/es/button-group/src/ButtonGroup.js +0 -34
- package/es/button-group/src/context.js +0 -2
- package/es/button-group/src/styles/index.cssr.js +0 -53
- package/es/button-group/src/styles/rtl.cssr.js +0 -24
- package/es/button-group/styles/dark.js +0 -6
- package/es/button-group/styles/index.js +0 -3
- package/es/button-group/styles/light.js +0 -6
- package/es/button-group/styles/rtl.js +0 -5
- package/es/calendar/index.js +0 -1
- package/es/calendar/src/Calendar.js +0 -198
- package/es/calendar/src/interface.js +0 -1
- package/es/calendar/src/styles/index.cssr.js +0 -137
- package/es/calendar/styles/_common.js +0 -3
- package/es/calendar/styles/dark.js +0 -12
- package/es/calendar/styles/index.js +0 -2
- package/es/calendar/styles/light.js +0 -19
- package/es/card/index.js +0 -1
- package/es/card/src/Card.js +0 -136
- package/es/card/src/styles/index.cssr.js +0 -134
- package/es/card/src/styles/rtl.cssr.js +0 -6
- package/es/card/styles/_common.js +0 -12
- package/es/card/styles/dark.js +0 -15
- package/es/card/styles/index.js +0 -3
- package/es/card/styles/light.js +0 -15
- package/es/card/styles/rtl.js +0 -5
- package/es/carousel/index.js +0 -2
- package/es/carousel/src/Carousel.js +0 -769
- package/es/carousel/src/CarouselArrow.js +0 -38
- package/es/carousel/src/CarouselContext.js +0 -13
- package/es/carousel/src/CarouselDots.js +0 -115
- package/es/carousel/src/CarouselItem.js +0 -66
- package/es/carousel/src/interface.js +0 -1
- package/es/carousel/src/styles/index.cssr.js +0 -232
- package/es/carousel/src/utils/duplicatedLogic.js +0 -46
- package/es/carousel/src/utils/event.js +0 -3
- package/es/carousel/src/utils/index.js +0 -33
- package/es/carousel/styles/dark.js +0 -8
- package/es/carousel/styles/index.js +0 -2
- package/es/carousel/styles/light.js +0 -18
- package/es/cascader/index.js +0 -1
- package/es/cascader/src/Cascader.js +0 -861
- package/es/cascader/src/CascaderMenu.js +0 -122
- package/es/cascader/src/CascaderOption.js +0 -177
- package/es/cascader/src/CascaderSelectMenu.js +0 -145
- package/es/cascader/src/CascaderSubmenu.js +0 -65
- package/es/cascader/src/interface.js +0 -2
- package/es/cascader/src/styles/index.cssr.js +0 -133
- package/es/cascader/src/utils.js +0 -41
- package/es/cascader/styles/dark.js +0 -20
- package/es/cascader/styles/index.js +0 -2
- package/es/cascader/styles/light.js +0 -40
- package/es/checkbox/index.js +0 -2
- package/es/checkbox/src/CheckMark.js +0 -3
- package/es/checkbox/src/Checkbox.js +0 -251
- package/es/checkbox/src/CheckboxGroup.js +0 -160
- package/es/checkbox/src/LineMark.js +0 -3
- package/es/checkbox/src/interface.js +0 -1
- package/es/checkbox/src/styles/index.cssr.js +0 -150
- package/es/checkbox/src/styles/rtl.cssr.js +0 -4
- package/es/checkbox/styles/_common.js +0 -7
- package/es/checkbox/styles/dark.js +0 -14
- package/es/checkbox/styles/index.js +0 -3
- package/es/checkbox/styles/light.js +0 -15
- package/es/checkbox/styles/rtl.js +0 -5
- package/es/code/index.js +0 -1
- package/es/code/src/Code.js +0 -157
- package/es/code/src/styles/index.cssr.js +0 -96
- package/es/code/styles/dark.js +0 -26
- package/es/code/styles/index.js +0 -2
- package/es/code/styles/light.js +0 -27
- package/es/collapse/index.js +0 -2
- package/es/collapse/src/Collapse.js +0 -141
- package/es/collapse/src/CollapseItem.js +0 -99
- package/es/collapse/src/CollapseItemContent.js +0 -38
- package/es/collapse/src/interface.js +0 -1
- package/es/collapse/src/styles/index.cssr.js +0 -59
- package/es/collapse/src/styles/rtl.cssr.js +0 -15
- package/es/collapse/styles/dark.js +0 -8
- package/es/collapse/styles/index.js +0 -3
- package/es/collapse/styles/light.js +0 -23
- package/es/collapse/styles/rtl.js +0 -5
- package/es/collapse-transition/index.js +0 -1
- package/es/collapse-transition/src/CollapseTransition.js +0 -80
- package/es/collapse-transition/src/styles/index.cssr.js +0 -5
- package/es/collapse-transition/src/styles/rtl.cssr.js +0 -5
- package/es/collapse-transition/styles/dark.js +0 -8
- package/es/collapse-transition/styles/index.js +0 -3
- package/es/collapse-transition/styles/light.js +0 -13
- package/es/collapse-transition/styles/rtl.js +0 -5
- package/es/color-picker/index.js +0 -1
- package/es/color-picker/src/AlphaSlider.js +0 -102
- package/es/color-picker/src/ColorInput.js +0 -103
- package/es/color-picker/src/ColorInputUnit.js +0 -148
- package/es/color-picker/src/ColorPicker.js +0 -457
- package/es/color-picker/src/ColorPickerSwatches.js +0 -94
- package/es/color-picker/src/ColorPickerTrigger.js +0 -47
- package/es/color-picker/src/ColorPreview.js +0 -47
- package/es/color-picker/src/HueSlider.js +0 -88
- package/es/color-picker/src/Pallete.js +0 -91
- package/es/color-picker/src/context.js +0 -2
- package/es/color-picker/src/interface.js +0 -1
- package/es/color-picker/src/styles/index.cssr.js +0 -193
- package/es/color-picker/src/utils.js +0 -109
- package/es/color-picker/styles/dark.js +0 -14
- package/es/color-picker/styles/index.js +0 -2
- package/es/color-picker/styles/light.js +0 -32
- package/es/components.js +0 -89
- package/es/composables/index.js +0 -1
- package/es/composables/use-theme-vars.js +0 -18
- package/es/config-provider/index.js +0 -2
- package/es/config-provider/src/ConfigProvider.js +0 -209
- package/es/config-provider/src/config.js +0 -8
- package/es/config-provider/src/context.js +0 -2
- package/es/config-provider/src/interface.js +0 -1
- package/es/config-provider/src/internal-interface.js +0 -1
- package/es/config-provider/src/katex.js +0 -1
- package/es/countdown/index.js +0 -1
- package/es/countdown/src/Countdown.js +0 -154
- package/es/create.js +0 -30
- package/es/data-table/index.js +0 -2
- package/es/data-table/src/DataTable.js +0 -272
- package/es/data-table/src/HeaderButton/FilterButton.js +0 -112
- package/es/data-table/src/HeaderButton/FilterMenu.js +0 -130
- package/es/data-table/src/HeaderButton/RenderFilter.js +0 -25
- package/es/data-table/src/HeaderButton/RenderSorter.js +0 -21
- package/es/data-table/src/HeaderButton/ResizeButton.js +0 -59
- package/es/data-table/src/HeaderButton/SortButton.js +0 -53
- package/es/data-table/src/MainTable.js +0 -76
- package/es/data-table/src/TableParts/Body.js +0 -604
- package/es/data-table/src/TableParts/BodyCheckbox.js +0 -30
- package/es/data-table/src/TableParts/BodyRadio.js +0 -30
- package/es/data-table/src/TableParts/Cell.js +0 -62
- package/es/data-table/src/TableParts/ExpandTrigger.js +0 -39
- package/es/data-table/src/TableParts/Header.js +0 -161
- package/es/data-table/src/TableParts/SelectionMenu.js +0 -73
- package/es/data-table/src/interface.js +0 -56
- package/es/data-table/src/styles/index.cssr.js +0 -433
- package/es/data-table/src/use-check.js +0 -149
- package/es/data-table/src/use-expand.js +0 -61
- package/es/data-table/src/use-group-header.js +0 -104
- package/es/data-table/src/use-resizable.js +0 -22
- package/es/data-table/src/use-scroll.js +0 -225
- package/es/data-table/src/use-sorter.js +0 -191
- package/es/data-table/src/use-table-data.js +0 -327
- package/es/data-table/src/utils.js +0 -131
- package/es/data-table/styles/_common.js +0 -16
- package/es/data-table/styles/dark.js +0 -33
- package/es/data-table/styles/index.js +0 -2
- package/es/data-table/styles/light.js +0 -44
- package/es/date-picker/index.js +0 -1
- package/es/date-picker/src/DatePicker.js +0 -752
- package/es/date-picker/src/config.js +0 -3
- package/es/date-picker/src/interface.js +0 -2
- package/es/date-picker/src/panel/date.js +0 -78
- package/es/date-picker/src/panel/daterange.js +0 -108
- package/es/date-picker/src/panel/datetime.js +0 -76
- package/es/date-picker/src/panel/datetimerange.js +0 -133
- package/es/date-picker/src/panel/month.js +0 -104
- package/es/date-picker/src/panel/monthrange.js +0 -118
- package/es/date-picker/src/panel/panelHeader.js +0 -85
- package/es/date-picker/src/panel/use-calendar.js +0 -330
- package/es/date-picker/src/panel/use-dual-calendar.js +0 -664
- package/es/date-picker/src/panel/use-panel-common.js +0 -156
- package/es/date-picker/src/styles/index.cssr.js +0 -355
- package/es/date-picker/src/utils.js +0 -193
- package/es/date-picker/src/validation-utils.js +0 -178
- package/es/date-picker/styles/_common.js +0 -36
- package/es/date-picker/styles/dark.js +0 -26
- package/es/date-picker/styles/index.js +0 -2
- package/es/date-picker/styles/light.js +0 -25
- package/es/descriptions/index.js +0 -2
- package/es/descriptions/src/Descriptions.js +0 -160
- package/es/descriptions/src/DescriptionsItem.js +0 -19
- package/es/descriptions/src/styles/index.cssr.js +0 -119
- package/es/descriptions/src/utils.js +0 -7
- package/es/descriptions/styles/_common.js +0 -14
- package/es/descriptions/styles/dark.js +0 -8
- package/es/descriptions/styles/index.js +0 -2
- package/es/descriptions/styles/light.js +0 -16
- package/es/dialog/index.js +0 -4
- package/es/dialog/src/Dialog.js +0 -133
- package/es/dialog/src/DialogEnvironment.js +0 -111
- package/es/dialog/src/DialogProvider.js +0 -75
- package/es/dialog/src/composables.js +0 -17
- package/es/dialog/src/context.js +0 -4
- package/es/dialog/src/dialogProps.js +0 -31
- package/es/dialog/src/interface.js +0 -1
- package/es/dialog/src/styles/index.cssr.js +0 -96
- package/es/dialog/styles/_common.js +0 -13
- package/es/dialog/styles/dark.js +0 -12
- package/es/dialog/styles/index.js +0 -2
- package/es/dialog/styles/light.js +0 -22
- package/es/discrete/index.js +0 -1
- package/es/discrete/src/InjectionExtractor.js +0 -12
- package/es/discrete/src/discrete.js +0 -45
- package/es/discrete/src/discreteApp.js +0 -49
- package/es/discrete/src/interface.js +0 -1
- package/es/divider/index.js +0 -1
- package/es/divider/src/Divider.js +0 -53
- package/es/divider/src/styles/index.cssr.js +0 -58
- package/es/divider/styles/dark.js +0 -8
- package/es/divider/styles/index.js +0 -2
- package/es/divider/styles/light.js +0 -15
- package/es/drawer/index.js +0 -2
- package/es/drawer/src/Drawer.js +0 -216
- package/es/drawer/src/DrawerBodyWrapper.js +0 -254
- package/es/drawer/src/DrawerContent.js +0 -49
- package/es/drawer/src/interface.js +0 -3
- package/es/drawer/src/styles/index.cssr.js +0 -163
- package/es/drawer/src/styles/rtl.cssr.js +0 -8
- package/es/drawer/styles/dark.js +0 -12
- package/es/drawer/styles/index.js +0 -3
- package/es/drawer/styles/light.js +0 -38
- package/es/drawer/styles/rtl.js +0 -8
- package/es/dropdown/index.js +0 -1
- package/es/dropdown/src/Dropdown.js +0 -338
- package/es/dropdown/src/DropdownDivider.js +0 -13
- package/es/dropdown/src/DropdownGroup.js +0 -46
- package/es/dropdown/src/DropdownGroupHeader.js +0 -55
- package/es/dropdown/src/DropdownMenu.js +0 -100
- package/es/dropdown/src/DropdownOption.js +0 -242
- package/es/dropdown/src/DropdownRenderOption.js +0 -14
- package/es/dropdown/src/context.js +0 -4
- package/es/dropdown/src/interface.js +0 -1
- package/es/dropdown/src/styles/index.cssr.js +0 -143
- package/es/dropdown/src/utils.js +0 -13
- package/es/dropdown/styles/_common.js +0 -23
- package/es/dropdown/styles/dark.js +0 -21
- package/es/dropdown/styles/index.js +0 -2
- package/es/dropdown/styles/light.js +0 -26
- package/es/dynamic-input/index.js +0 -1
- package/es/dynamic-input/src/DynamicInput.js +0 -302
- package/es/dynamic-input/src/InputPreset.js +0 -37
- package/es/dynamic-input/src/PairPreset.js +0 -53
- package/es/dynamic-input/src/interface.js +0 -2
- package/es/dynamic-input/src/styles/index.cssr.js +0 -35
- package/es/dynamic-input/src/styles/rtl.cssr.js +0 -9
- package/es/dynamic-input/styles/_common.js +0 -4
- package/es/dynamic-input/styles/dark.js +0 -16
- package/es/dynamic-input/styles/index.js +0 -3
- package/es/dynamic-input/styles/light.js +0 -18
- package/es/dynamic-input/styles/rtl.js +0 -11
- package/es/dynamic-tags/index.js +0 -1
- package/es/dynamic-tags/src/DynamicTags.js +0 -165
- package/es/dynamic-tags/src/interface.js +0 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +0 -6
- package/es/dynamic-tags/styles/dark.js +0 -21
- package/es/dynamic-tags/styles/index.js +0 -2
- package/es/dynamic-tags/styles/light.js +0 -22
- package/es/element/index.js +0 -2
- package/es/element/src/Element.js +0 -43
- package/es/element/styles/dark.js +0 -6
- package/es/element/styles/index.js +0 -2
- package/es/element/styles/light.js +0 -6
- package/es/ellipsis/index.js +0 -2
- package/es/ellipsis/src/Ellipsis.js +0 -165
- package/es/ellipsis/src/PerformantEllipsis.js +0 -52
- package/es/ellipsis/src/styles/index.cssr.js +0 -14
- package/es/ellipsis/styles/dark.js +0 -10
- package/es/ellipsis/styles/index.js +0 -2
- package/es/ellipsis/styles/light.js +0 -11
- package/es/empty/index.js +0 -1
- package/es/empty/src/Empty.js +0 -75
- package/es/empty/src/styles/index.cssr.js +0 -32
- package/es/empty/styles/_common.js +0 -6
- package/es/empty/styles/dark.js +0 -8
- package/es/empty/styles/index.js +0 -2
- package/es/empty/styles/light.js +0 -15
- package/es/equation/index.js +0 -1
- package/es/equation/src/Equation.js +0 -29
- package/es/equation/styles/dark.js +0 -8
- package/es/equation/styles/index.js +0 -2
- package/es/equation/styles/light.js +0 -8
- package/es/form/index.js +0 -6
- package/es/form/src/Form.js +0 -114
- package/es/form/src/FormItem.js +0 -366
- package/es/form/src/FormItemCol.js +0 -38
- package/es/form/src/FormItemGridItem.js +0 -40
- package/es/form/src/FormItemRow.js +0 -37
- package/es/form/src/context.js +0 -3
- package/es/form/src/interface.js +0 -1
- package/es/form/src/styles/form-item.cssr.js +0 -124
- package/es/form/src/styles/form.cssr.js +0 -12
- package/es/form/src/utils.js +0 -171
- package/es/form/styles/_common.js +0 -23
- package/es/form/styles/dark.js +0 -8
- package/es/form/styles/index.js +0 -2
- package/es/form/styles/light.js +0 -12
- package/es/global-style/index.js +0 -1
- package/es/global-style/src/GlobalStyle.js +0 -59
- package/es/gradient-text/index.js +0 -1
- package/es/gradient-text/src/GradientText.js +0 -81
- package/es/gradient-text/src/styles/index.cssr.js +0 -19
- package/es/gradient-text/styles/dark.js +0 -23
- package/es/gradient-text/styles/index.js +0 -2
- package/es/gradient-text/styles/light.js +0 -25
- package/es/grid/index.js +0 -3
- package/es/grid/src/Grid.js +0 -251
- package/es/grid/src/GridItem.js +0 -74
- package/es/grid/src/config.js +0 -3
- package/es/icon/index.js +0 -1
- package/es/icon/src/Icon.js +0 -69
- package/es/icon/src/styles/index.cssr.js +0 -25
- package/es/icon/styles/dark.js +0 -8
- package/es/icon/styles/index.js +0 -2
- package/es/icon/styles/light.js +0 -18
- package/es/icon-wrapper/index.js +0 -1
- package/es/icon-wrapper/src/IconWrapper.js +0 -48
- package/es/icon-wrapper/src/styles/index.cssr.js +0 -16
- package/es/icon-wrapper/styles/dark.js +0 -8
- package/es/icon-wrapper/styles/index.js +0 -2
- package/es/icon-wrapper/styles/light.js +0 -14
- package/es/image/index.js +0 -2
- package/es/image/src/Image.js +0 -123
- package/es/image/src/ImageGroup.js +0 -68
- package/es/image/src/ImagePreview.js +0 -430
- package/es/image/src/icons.js +0 -9
- package/es/image/src/interface.js +0 -4
- package/es/image/src/styles/index.cssr.js +0 -68
- package/es/image/src/utils.js +0 -81
- package/es/image/styles/dark.js +0 -18
- package/es/image/styles/index.js +0 -2
- package/es/image/styles/light.js +0 -19
- package/es/index.js +0 -14
- package/es/input/index.js +0 -3
- package/es/input/src/Input.js +0 -947
- package/es/input/src/InputGroup.js +0 -19
- package/es/input/src/InputGroupLabel.js +0 -52
- package/es/input/src/WordCount.js +0 -31
- package/es/input/src/interface.js +0 -2
- package/es/input/src/styles/input-group-label.cssr.js +0 -38
- package/es/input/src/styles/input-group.cssr.js +0 -57
- package/es/input/src/styles/input.cssr.js +0 -278
- package/es/input/src/styles/rtl.cssr.js +0 -16
- package/es/input/src/utils.js +0 -66
- package/es/input/styles/_common.js +0 -7
- package/es/input/styles/dark.js +0 -35
- package/es/input/styles/index.js +0 -3
- package/es/input/styles/light.js +0 -36
- package/es/input/styles/rtl.js +0 -5
- package/es/input-number/index.js +0 -1
- package/es/input-number/src/InputNumber.js +0 -580
- package/es/input-number/src/interface.js +0 -1
- package/es/input-number/src/styles/input-number.cssr.js +0 -8
- package/es/input-number/src/styles/rtl.cssr.js +0 -4
- package/es/input-number/src/utils.js +0 -47
- package/es/input-number/styles/dark.js +0 -18
- package/es/input-number/styles/index.js +0 -3
- package/es/input-number/styles/light.js +0 -20
- package/es/input-number/styles/rtl.js +0 -8
- package/es/jest-setup.js +0 -5
- package/es/layout/index.js +0 -5
- package/es/layout/src/Layout.js +0 -117
- package/es/layout/src/LayoutContent.js +0 -2
- package/es/layout/src/LayoutFooter.js +0 -52
- package/es/layout/src/LayoutHeader.js +0 -59
- package/es/layout/src/LayoutSider.js +0 -244
- package/es/layout/src/ToggleBar.js +0 -16
- package/es/layout/src/ToggleButton.js +0 -20
- package/es/layout/src/interface.js +0 -6
- package/es/layout/src/styles/layout-footer.cssr.js +0 -23
- package/es/layout/src/styles/layout-header.cssr.js +0 -24
- package/es/layout/src/styles/layout-sider.cssr.js +0 -140
- package/es/layout/src/styles/layout.cssr.js +0 -28
- package/es/layout/styles/dark.js +0 -39
- package/es/layout/styles/index.js +0 -2
- package/es/layout/styles/light.js +0 -42
- package/es/legacy-grid/index.js +0 -2
- package/es/legacy-grid/src/Col.js +0 -53
- package/es/legacy-grid/src/Row.js +0 -63
- package/es/legacy-grid/src/interface.js +0 -1
- package/es/legacy-grid/src/styles/index.cssr.js +0 -32
- package/es/legacy-grid/src/styles/rtl.cssr.js +0 -21
- package/es/legacy-grid/styles/dark.js +0 -6
- package/es/legacy-grid/styles/index.js +0 -3
- package/es/legacy-grid/styles/light.js +0 -6
- package/es/legacy-grid/styles/rtl.js +0 -5
- package/es/legacy-transfer/index.js +0 -1
- package/es/legacy-transfer/src/Transfer.js +0 -214
- package/es/legacy-transfer/src/TransferFilter.js +0 -40
- package/es/legacy-transfer/src/TransferHeader.js +0 -47
- package/es/legacy-transfer/src/TransferList.js +0 -93
- package/es/legacy-transfer/src/TransferListItem.js +0 -65
- package/es/legacy-transfer/src/interface.js +0 -2
- package/es/legacy-transfer/src/styles/index.cssr.js +0 -215
- package/es/legacy-transfer/src/use-transfer-data.js +0 -145
- package/es/legacy-transfer/styles/_common.js +0 -4
- package/es/legacy-transfer/styles/dark.js +0 -27
- package/es/legacy-transfer/styles/index.js +0 -2
- package/es/legacy-transfer/styles/light.js +0 -31
- package/es/list/index.js +0 -2
- package/es/list/src/List.js +0 -71
- package/es/list/src/ListItem.js +0 -24
- package/es/list/src/styles/index.cssr.js +0 -88
- package/es/list/src/styles/rtl.cssr.js +0 -11
- package/es/list/styles/dark.js +0 -8
- package/es/list/styles/index.js +0 -3
- package/es/list/styles/light.js +0 -25
- package/es/list/styles/rtl.js +0 -5
- package/es/loading-bar/index.js +0 -2
- package/es/loading-bar/src/LoadingBar.js +0 -176
- package/es/loading-bar/src/LoadingBarProvider.js +0 -73
- package/es/loading-bar/src/context.js +0 -3
- package/es/loading-bar/src/styles/index.cssr.js +0 -35
- package/es/loading-bar/src/use-loading-bar.js +0 -10
- package/es/loading-bar/styles/dark.js +0 -14
- package/es/loading-bar/styles/index.js +0 -2
- package/es/loading-bar/styles/light.js +0 -15
- package/es/locales/common/arDZ.js +0 -121
- package/es/locales/common/deDE.js +0 -121
- package/es/locales/common/enGB.js +0 -122
- package/es/locales/common/enUS.js +0 -122
- package/es/locales/common/eo.js +0 -123
- package/es/locales/common/esAR.js +0 -125
- package/es/locales/common/faIR.js +0 -121
- package/es/locales/common/frFR.js +0 -121
- package/es/locales/common/idID.js +0 -125
- package/es/locales/common/itIT.js +0 -124
- package/es/locales/common/jaJP.js +0 -124
- package/es/locales/common/koKR.js +0 -124
- package/es/locales/common/nbNO.js +0 -125
- package/es/locales/common/nlNL.js +0 -123
- package/es/locales/common/plPL.js +0 -124
- package/es/locales/common/ptBR.js +0 -121
- package/es/locales/common/ruRU.js +0 -126
- package/es/locales/common/skSK.js +0 -125
- package/es/locales/common/svSE.js +0 -121
- package/es/locales/common/thTH.js +0 -125
- package/es/locales/common/trTR.js +0 -122
- package/es/locales/common/ukUA.js +0 -122
- package/es/locales/common/viVN.js +0 -121
- package/es/locales/common/zhCN.js +0 -121
- package/es/locales/common/zhTW.js +0 -121
- package/es/locales/date/arDZ.js +0 -6
- package/es/locales/date/deDE.js +0 -6
- package/es/locales/date/enGB.js +0 -6
- package/es/locales/date/enUS.js +0 -6
- package/es/locales/date/eo.js +0 -6
- package/es/locales/date/esAR.js +0 -6
- package/es/locales/date/faIR.js +0 -6
- package/es/locales/date/frFR.js +0 -6
- package/es/locales/date/idID.js +0 -6
- package/es/locales/date/itIT.js +0 -6
- package/es/locales/date/jaJP.js +0 -6
- package/es/locales/date/koKR.js +0 -6
- package/es/locales/date/nbNO.js +0 -6
- package/es/locales/date/nlNL.js +0 -6
- package/es/locales/date/plPL.js +0 -6
- package/es/locales/date/ptBR.js +0 -6
- package/es/locales/date/ruRU.js +0 -6
- package/es/locales/date/skSK.js +0 -6
- package/es/locales/date/svSE.js +0 -6
- package/es/locales/date/thTH.js +0 -6
- package/es/locales/date/trTR.js +0 -6
- package/es/locales/date/ukUA.js +0 -6
- package/es/locales/date/viVN.js +0 -6
- package/es/locales/date/zhCN.js +0 -6
- package/es/locales/date/zhTW.js +0 -6
- package/es/locales/index.js +0 -51
- package/es/locales/utils/index.js +0 -4
- package/es/log/index.js +0 -1
- package/es/log/src/Log.js +0 -195
- package/es/log/src/LogLine.js +0 -52
- package/es/log/src/LogLoader.js +0 -23
- package/es/log/src/context.js +0 -2
- package/es/log/src/styles/index.cssr.js +0 -53
- package/es/log/styles/dark.js +0 -22
- package/es/log/styles/index.js +0 -2
- package/es/log/styles/light.js +0 -24
- package/es/mention/index.js +0 -1
- package/es/mention/src/Mention.js +0 -361
- package/es/mention/src/interface.js +0 -1
- package/es/mention/src/styles/index.cssr.js +0 -8
- package/es/mention/src/utils.js +0 -204
- package/es/mention/styles/dark.js +0 -18
- package/es/mention/styles/index.js +0 -2
- package/es/mention/styles/light.js +0 -20
- package/es/menu/index.js +0 -1
- package/es/menu/src/Menu.js +0 -380
- package/es/menu/src/MenuDivider.js +0 -11
- package/es/menu/src/MenuOption.js +0 -69
- package/es/menu/src/MenuOptionContent.js +0 -87
- package/es/menu/src/MenuOptionGroup.js +0 -43
- package/es/menu/src/Submenu.js +0 -123
- package/es/menu/src/context.js +0 -4
- package/es/menu/src/interface.js +0 -1
- package/es/menu/src/styles/index.cssr.js +0 -228
- package/es/menu/src/use-menu-child-props.js +0 -14
- package/es/menu/src/use-menu-child.js +0 -80
- package/es/menu/src/useCheckDeprecated.js +0 -24
- package/es/menu/src/utils.js +0 -51
- package/es/menu/styles/dark.js +0 -27
- package/es/menu/styles/index.js +0 -2
- package/es/menu/styles/light.js +0 -60
- package/es/message/index.js +0 -2
- package/es/message/src/Message.js +0 -112
- package/es/message/src/MessageEnvironment.js +0 -91
- package/es/message/src/MessageProvider.js +0 -100
- package/es/message/src/context.js +0 -3
- package/es/message/src/message-props.js +0 -17
- package/es/message/src/styles/index.cssr.js +0 -133
- package/es/message/src/styles/rtl.cssr.js +0 -8
- package/es/message/src/types.js +0 -1
- package/es/message/src/use-message.js +0 -10
- package/es/message/styles/_common.js +0 -12
- package/es/message/styles/dark.js +0 -8
- package/es/message/styles/index.js +0 -3
- package/es/message/styles/light.js +0 -17
- package/es/message/styles/rtl.js +0 -5
- package/es/modal/index.js +0 -1
- package/es/modal/src/BodyWrapper.js +0 -213
- package/es/modal/src/Modal.js +0 -245
- package/es/modal/src/interface.js +0 -3
- package/es/modal/src/presetProps.js +0 -6
- package/es/modal/src/styles/index.cssr.js +0 -48
- package/es/modal/styles/dark.js +0 -16
- package/es/modal/styles/index.js +0 -2
- package/es/modal/styles/light.js +0 -24
- package/es/notification/index.js +0 -2
- package/es/notification/src/Notification.js +0 -127
- package/es/notification/src/NotificationContainer.js +0 -44
- package/es/notification/src/NotificationEnvironment.js +0 -143
- package/es/notification/src/NotificationProvider.js +0 -127
- package/es/notification/src/context.js +0 -2
- package/es/notification/src/styles/index.cssr.js +0 -228
- package/es/notification/src/styles/rtl.cssr.js +0 -22
- package/es/notification/src/use-notification.js +0 -10
- package/es/notification/styles/_common.js +0 -10
- package/es/notification/styles/dark.js +0 -12
- package/es/notification/styles/index.js +0 -3
- package/es/notification/styles/light.js +0 -22
- package/es/notification/styles/rtl.js +0 -5
- package/es/number-animation/index.js +0 -1
- package/es/number-animation/src/NumberAnimation.js +0 -99
- package/es/number-animation/src/utils.js +0 -17
- package/es/page-header/index.js +0 -1
- package/es/page-header/src/PageHeader.js +0 -70
- package/es/page-header/src/styles/index.cssr.js +0 -49
- package/es/page-header/src/styles/rtl.cssr.js +0 -19
- package/es/page-header/styles/_common.js +0 -4
- package/es/page-header/styles/dark.js +0 -7
- package/es/page-header/styles/index.js +0 -3
- package/es/page-header/styles/light.js +0 -12
- package/es/page-header/styles/rtl.js +0 -5
- package/es/pagination/index.js +0 -1
- package/es/pagination/src/Pagination.js +0 -583
- package/es/pagination/src/interface.js +0 -1
- package/es/pagination/src/styles/index.cssr.js +0 -134
- package/es/pagination/src/styles/rtl.cssr.js +0 -8
- package/es/pagination/src/utils.js +0 -145
- package/es/pagination/styles/_common.js +0 -35
- package/es/pagination/styles/dark.js +0 -26
- package/es/pagination/styles/index.js +0 -3
- package/es/pagination/styles/light.js +0 -25
- package/es/pagination/styles/rtl.js +0 -7
- package/es/popconfirm/index.js +0 -1
- package/es/popconfirm/src/Popconfirm.js +0 -89
- package/es/popconfirm/src/PopconfirmPanel.js +0 -75
- package/es/popconfirm/src/interface.js +0 -2
- package/es/popconfirm/src/styles/index.cssr.js +0 -22
- package/es/popconfirm/styles/_common.js +0 -3
- package/es/popconfirm/styles/dark.js +0 -14
- package/es/popconfirm/styles/index.js +0 -2
- package/es/popconfirm/styles/light.js +0 -19
- package/es/popover/index.js +0 -1
- package/es/popover/src/Popover.js +0 -476
- package/es/popover/src/PopoverBody.js +0 -271
- package/es/popover/src/interface.js +0 -2
- package/es/popover/src/styles/index.cssr.js +0 -166
- package/es/popover/styles/_common.js +0 -8
- package/es/popover/styles/dark.js +0 -8
- package/es/popover/styles/index.js +0 -2
- package/es/popover/styles/light.js +0 -13
- package/es/popselect/index.js +0 -1
- package/es/popselect/src/Popselect.js +0 -69
- package/es/popselect/src/PopselectPanel.js +0 -163
- package/es/popselect/src/interface.js +0 -2
- package/es/popselect/src/styles/index.cssr.js +0 -5
- package/es/popselect/styles/dark.js +0 -12
- package/es/popselect/styles/index.js +0 -2
- package/es/popselect/styles/light.js +0 -20
- package/es/preset.js +0 -7
- package/es/progress/index.js +0 -1
- package/es/progress/src/Circle.js +0 -111
- package/es/progress/src/Line.js +0 -116
- package/es/progress/src/MultipleCircle.js +0 -86
- package/es/progress/src/Progress.js +0 -100
- package/es/progress/src/interface.js +0 -1
- package/es/progress/src/styles/index.cssr.js +0 -196
- package/es/progress/styles/dark.js +0 -14
- package/es/progress/styles/index.js +0 -2
- package/es/progress/styles/light.js +0 -33
- package/es/radio/index.js +0 -3
- package/es/radio/src/Radio.js +0 -77
- package/es/radio/src/RadioButton.js +0 -25
- package/es/radio/src/RadioGroup.js +0 -168
- package/es/radio/src/interface.js +0 -1
- package/es/radio/src/styles/radio-group.cssr.js +0 -103
- package/es/radio/src/styles/radio.cssr.js +0 -107
- package/es/radio/src/styles/rtl.cssr.js +0 -20
- package/es/radio/src/use-radio.js +0 -136
- package/es/radio/styles/_common.js +0 -7
- package/es/radio/styles/dark.js +0 -14
- package/es/radio/styles/index.js +0 -3
- package/es/radio/styles/light.js +0 -15
- package/es/radio/styles/rtl.js +0 -5
- package/es/rate/index.js +0 -1
- package/es/rate/src/Rate.js +0 -168
- package/es/rate/src/StarIcon.js +0 -3
- package/es/rate/src/interface.js +0 -1
- package/es/rate/src/styles/index.cssr.js +0 -44
- package/es/rate/styles/dark.js +0 -17
- package/es/rate/styles/index.js +0 -2
- package/es/rate/styles/light.js +0 -17
- package/es/result/index.js +0 -1
- package/es/result/src/403.js +0 -4
- package/es/result/src/404.js +0 -8
- package/es/result/src/418.js +0 -8
- package/es/result/src/500.js +0 -5
- package/es/result/src/Result.js +0 -82
- package/es/result/src/styles/index.cssr.js +0 -43
- package/es/result/styles/_common.js +0 -18
- package/es/result/styles/dark.js +0 -8
- package/es/result/styles/index.js +0 -2
- package/es/result/styles/light.js +0 -12
- package/es/scrollbar/index.js +0 -1
- package/es/scrollbar/src/Scrollbar.js +0 -26
- package/es/select/index.js +0 -1
- package/es/select/src/Select.js +0 -711
- package/es/select/src/interface.js +0 -1
- package/es/select/src/styles/index.cssr.js +0 -14
- package/es/select/src/utils.js +0 -76
- package/es/select/styles/dark.js +0 -14
- package/es/select/styles/index.js +0 -2
- package/es/select/styles/light.js +0 -20
- package/es/skeleton/index.js +0 -1
- package/es/skeleton/src/Skeleton.js +0 -79
- package/es/skeleton/src/styles/index.cssr.js +0 -29
- package/es/skeleton/styles/dark.js +0 -16
- package/es/skeleton/styles/index.js +0 -2
- package/es/skeleton/styles/light.js +0 -17
- package/es/slider/index.js +0 -1
- package/es/slider/src/Slider.js +0 -582
- package/es/slider/src/interface.js +0 -1
- package/es/slider/src/styles/index.cssr.js +0 -201
- package/es/slider/src/utils.js +0 -14
- package/es/slider/styles/_common.js +0 -8
- package/es/slider/styles/dark.js +0 -12
- package/es/slider/styles/index.js +0 -2
- package/es/slider/styles/light.js +0 -14
- package/es/space/index.js +0 -1
- package/es/space/src/Space.js +0 -133
- package/es/space/src/styles/rtl.cssr.js +0 -4
- package/es/space/src/utils.js +0 -22
- package/es/space/styles/_common.js +0 -5
- package/es/space/styles/dark.js +0 -8
- package/es/space/styles/index.js +0 -3
- package/es/space/styles/light.js +0 -9
- package/es/space/styles/rtl.js +0 -5
- package/es/spin/index.js +0 -1
- package/es/spin/src/Spin.js +0 -120
- package/es/spin/src/styles/index.cssr.js +0 -52
- package/es/spin/styles/dark.js +0 -8
- package/es/spin/styles/index.js +0 -2
- package/es/spin/styles/light.js +0 -21
- package/es/statistic/index.js +0 -1
- package/es/statistic/src/Statistic.js +0 -56
- package/es/statistic/src/styles/index.cssr.js +0 -38
- package/es/statistic/src/styles/rtl.cssr.js +0 -9
- package/es/statistic/styles/dark.js +0 -8
- package/es/statistic/styles/index.js +0 -3
- package/es/statistic/styles/light.js +0 -20
- package/es/statistic/styles/rtl.js +0 -5
- package/es/steps/index.js +0 -2
- package/es/steps/src/Step.js +0 -147
- package/es/steps/src/Steps.js +0 -52
- package/es/steps/src/styles/index.cssr.js +0 -102
- package/es/steps/src/styles/rtl.cssr.js +0 -14
- package/es/steps/styles/_common.js +0 -10
- package/es/steps/styles/dark.js +0 -8
- package/es/steps/styles/index.js +0 -3
- package/es/steps/styles/light.js +0 -12
- package/es/steps/styles/rtl.js +0 -5
- package/es/styles.js +0 -79
- package/es/switch/index.js +0 -1
- package/es/switch/src/Switch.js +0 -246
- package/es/switch/src/interface.js +0 -1
- package/es/switch/src/styles/index.cssr.js +0 -127
- package/es/switch/styles/_common.js +0 -17
- package/es/switch/styles/dark.js +0 -13
- package/es/switch/styles/index.js +0 -2
- package/es/switch/styles/light.js +0 -14
- package/es/table/index.js +0 -6
- package/es/table/src/Table.js +0 -84
- package/es/table/src/Tbody.js +0 -7
- package/es/table/src/Td.js +0 -7
- package/es/table/src/Th.js +0 -7
- package/es/table/src/Thead.js +0 -7
- package/es/table/src/Tr.js +0 -7
- package/es/table/src/styles/index.cssr.js +0 -96
- package/es/table/src/styles/rtl.cssr.js +0 -13
- package/es/table/styles/_common.js +0 -8
- package/es/table/styles/dark.js +0 -8
- package/es/table/styles/index.js +0 -3
- package/es/table/styles/light.js +0 -17
- package/es/table/styles/rtl.js +0 -5
- package/es/tabs/index.js +0 -3
- package/es/tabs/src/Tab.js +0 -89
- package/es/tabs/src/TabPane.js +0 -49
- package/es/tabs/src/Tabs.js +0 -640
- package/es/tabs/src/interface.js +0 -2
- package/es/tabs/src/styles/index.cssr.js +0 -358
- package/es/tabs/styles/_common.js +0 -58
- package/es/tabs/styles/dark.js +0 -14
- package/es/tabs/styles/index.js +0 -2
- package/es/tabs/styles/light.js +0 -16
- package/es/tag/index.js +0 -1
- package/es/tag/src/Tag.js +0 -158
- package/es/tag/src/common-props.js +0 -17
- package/es/tag/src/styles/index.cssr.js +0 -97
- package/es/tag/src/styles/rtl.cssr.js +0 -18
- package/es/tag/styles/_common.js +0 -13
- package/es/tag/styles/dark.js +0 -23
- package/es/tag/styles/index.js +0 -3
- package/es/tag/styles/light.js +0 -22
- package/es/tag/styles/rtl.js +0 -5
- package/es/theme-editor/index.js +0 -1
- package/es/theme-editor/src/MaximizeIcon.js +0 -8
- package/es/theme-editor/src/MinimizeIcon.js +0 -8
- package/es/theme-editor/src/ThemeEditor.js +0 -332
- package/es/themes/dark.js +0 -167
- package/es/themes/index.js +0 -3
- package/es/themes/interface.js +0 -1
- package/es/themes/light.js +0 -169
- package/es/themes/utils.js +0 -19
- package/es/thing/index.js +0 -1
- package/es/thing/src/Thing.js +0 -75
- package/es/thing/src/styles/index.cssr.js +0 -41
- package/es/thing/src/styles/rtl.cssr.js +0 -8
- package/es/thing/styles/dark.js +0 -8
- package/es/thing/styles/index.js +0 -3
- package/es/thing/styles/light.js +0 -16
- package/es/thing/styles/rtl.js +0 -8
- package/es/time/index.js +0 -1
- package/es/time/src/Time.js +0 -87
- package/es/time-picker/index.js +0 -1
- package/es/time-picker/src/Panel.js +0 -245
- package/es/time-picker/src/PanelCol.js +0 -36
- package/es/time-picker/src/TimePicker.js +0 -703
- package/es/time-picker/src/interface.js +0 -2
- package/es/time-picker/src/styles/index.cssr.js +0 -99
- package/es/time-picker/src/utils.js +0 -266
- package/es/time-picker/styles/_common.js +0 -6
- package/es/time-picker/styles/dark.js +0 -16
- package/es/time-picker/styles/index.js +0 -2
- package/es/time-picker/styles/light.js +0 -23
- package/es/timeline/index.js +0 -2
- package/es/timeline/src/Timeline.js +0 -36
- package/es/timeline/src/TimelineItem.js +0 -87
- package/es/timeline/src/styles/index.cssr.js +0 -111
- package/es/timeline/styles/_common.js +0 -8
- package/es/timeline/styles/dark.js +0 -11
- package/es/timeline/styles/index.js +0 -2
- package/es/timeline/styles/light.js +0 -12
- package/es/tooltip/index.js +0 -1
- package/es/tooltip/src/Tooltip.js +0 -34
- package/es/tooltip/styles/_common.js +0 -3
- package/es/tooltip/styles/dark.js +0 -15
- package/es/tooltip/styles/index.js +0 -2
- package/es/tooltip/styles/light.js +0 -18
- package/es/transfer/index.js +0 -1
- package/es/transfer/src/Transfer.js +0 -195
- package/es/transfer/src/TransferFilter.js +0 -32
- package/es/transfer/src/TransferHeader.js +0 -46
- package/es/transfer/src/TransferList.js +0 -76
- package/es/transfer/src/TransferListItem.js +0 -70
- package/es/transfer/src/interface.js +0 -2
- package/es/transfer/src/styles/index.cssr.js +0 -151
- package/es/transfer/src/use-transfer-data.js +0 -121
- package/es/transfer/styles/_common.js +0 -13
- package/es/transfer/styles/dark.js +0 -31
- package/es/transfer/styles/index.js +0 -2
- package/es/transfer/styles/light.js +0 -33
- package/es/tree/index.js +0 -1
- package/es/tree/src/MotionWrapper.js +0 -37
- package/es/tree/src/Tree.js +0 -1265
- package/es/tree/src/TreeNode.js +0 -348
- package/es/tree/src/TreeNodeCheckbox.js +0 -49
- package/es/tree/src/TreeNodeContent.js +0 -69
- package/es/tree/src/TreeNodeSwitcher.js +0 -49
- package/es/tree/src/dnd.js +0 -37
- package/es/tree/src/interface.js +0 -2
- package/es/tree/src/keyboard.js +0 -102
- package/es/tree/src/styles/index.cssr.js +0 -134
- package/es/tree/src/styles/rtl.cssr.js +0 -17
- package/es/tree/src/utils.js +0 -114
- package/es/tree/styles/dark.js +0 -22
- package/es/tree/styles/index.js +0 -3
- package/es/tree/styles/light.js +0 -35
- package/es/tree/styles/rtl.js +0 -5
- package/es/tree-select/index.js +0 -1
- package/es/tree-select/src/TreeSelect.js +0 -600
- package/es/tree-select/src/interface.js +0 -2
- package/es/tree-select/src/styles/index.cssr.js +0 -38
- package/es/tree-select/src/utils.js +0 -8
- package/es/tree-select/styles/dark.js +0 -14
- package/es/tree-select/styles/index.js +0 -2
- package/es/tree-select/styles/light.js +0 -29
- package/es/typography/index.js +0 -10
- package/es/typography/src/a.js +0 -34
- package/es/typography/src/blockquote.js +0 -42
- package/es/typography/src/create-header.js +0 -58
- package/es/typography/src/headers.js +0 -7
- package/es/typography/src/hr.js +0 -33
- package/es/typography/src/li.js +0 -7
- package/es/typography/src/ol.js +0 -44
- package/es/typography/src/p.js +0 -39
- package/es/typography/src/styles/a.cssr.js +0 -12
- package/es/typography/src/styles/blockquote.cssr.js +0 -27
- package/es/typography/src/styles/header.cssr.js +0 -37
- package/es/typography/src/styles/hr.cssr.js +0 -11
- package/es/typography/src/styles/list.cssr.js +0 -32
- package/es/typography/src/styles/p.cssr.js +0 -15
- package/es/typography/src/styles/text.cssr.js +0 -34
- package/es/typography/src/text.js +0 -76
- package/es/typography/src/ul.js +0 -44
- package/es/typography/styles/_common.js +0 -30
- package/es/typography/styles/dark.js +0 -8
- package/es/typography/styles/index.js +0 -2
- package/es/typography/styles/light.js +0 -12
- package/es/upload/index.js +0 -4
- package/es/upload/src/Upload.js +0 -530
- package/es/upload/src/UploadDragger.js +0 -21
- package/es/upload/src/UploadFile.js +0 -249
- package/es/upload/src/UploadFileList.js +0 -39
- package/es/upload/src/UploadProgress.js +0 -30
- package/es/upload/src/UploadTrigger.js +0 -82
- package/es/upload/src/icons.js +0 -11
- package/es/upload/src/interface.js +0 -2
- package/es/upload/src/styles/index.cssr.js +0 -224
- package/es/upload/src/utils.js +0 -164
- package/es/upload/styles/dark.js +0 -22
- package/es/upload/styles/index.js +0 -2
- package/es/upload/styles/light.js +0 -37
- package/es/version.js +0 -1
- package/es/watermark/index.js +0 -1
- package/es/watermark/src/Watermark.js +0 -180
- package/es/watermark/src/styles/index.cssr.js +0 -30
- package/es/watermark/styles/dark.js +0 -12
- package/es/watermark/styles/index.js +0 -2
- package/es/watermark/styles/light.js +0 -13
- package/lib/_utils/cssr/create-key.d.ts +0 -44
- package/lib/_utils/cssr/create-key.js +0 -12
package/es/tree/src/Tree.js
DELETED
|
@@ -1,1265 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
11
|
-
import { h, ref, toRef, computed, defineComponent, provide, watch, nextTick, watchEffect, inject } from 'vue';
|
|
12
|
-
import { createTreeMate, flatten, createIndexGetter } from 'treemate';
|
|
13
|
-
import { useMergedState } from 'vooks';
|
|
14
|
-
import { VVirtualList } from 'vueuc';
|
|
15
|
-
import { depx, getPadding, pxfy } from 'seemly';
|
|
16
|
-
import { treeSelectInjectionKey } from '../../tree-select/src/interface';
|
|
17
|
-
import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
18
|
-
import { call, createDataKey, resolveSlot, warn, warnOnce } from '../../_utils';
|
|
19
|
-
import { NxScrollbar } from '../../_internal';
|
|
20
|
-
import { treeLight } from '../styles';
|
|
21
|
-
import { NEmpty } from '../../empty';
|
|
22
|
-
import NTreeNode from './TreeNode';
|
|
23
|
-
import { keysWithFilter, emptyImage, filterTree, isNodeDisabled, useMergedCheckStrategy } from './utils';
|
|
24
|
-
import { useKeyboard } from './keyboard';
|
|
25
|
-
import { treeInjectionKey } from './interface';
|
|
26
|
-
import MotionWrapper from './MotionWrapper';
|
|
27
|
-
import { defaultAllowDrop } from './dnd';
|
|
28
|
-
import style from './styles/index.cssr';
|
|
29
|
-
export function createTreeMateOptions(keyField, childrenField, disabledField, getChildren) {
|
|
30
|
-
const settledGetChildren = getChildren ||
|
|
31
|
-
((node) => {
|
|
32
|
-
return node[childrenField];
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
getIsGroup() {
|
|
36
|
-
return false;
|
|
37
|
-
},
|
|
38
|
-
getKey(node) {
|
|
39
|
-
return node[keyField];
|
|
40
|
-
},
|
|
41
|
-
getChildren: settledGetChildren,
|
|
42
|
-
getDisabled(node) {
|
|
43
|
-
return !!(node[disabledField] || node.checkboxDisabled);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export const treeSharedProps = {
|
|
48
|
-
allowCheckingNotLoaded: Boolean,
|
|
49
|
-
filter: Function,
|
|
50
|
-
defaultExpandAll: Boolean,
|
|
51
|
-
expandedKeys: Array,
|
|
52
|
-
keyField: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: 'key'
|
|
55
|
-
},
|
|
56
|
-
labelField: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: 'label'
|
|
59
|
-
},
|
|
60
|
-
childrenField: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: 'children'
|
|
63
|
-
},
|
|
64
|
-
disabledField: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: 'disabled'
|
|
67
|
-
},
|
|
68
|
-
defaultExpandedKeys: {
|
|
69
|
-
type: Array,
|
|
70
|
-
default: () => []
|
|
71
|
-
},
|
|
72
|
-
indeterminateKeys: Array,
|
|
73
|
-
renderSwitcherIcon: Function,
|
|
74
|
-
onUpdateIndeterminateKeys: [Function, Array],
|
|
75
|
-
'onUpdate:indeterminateKeys': [Function, Array],
|
|
76
|
-
onUpdateExpandedKeys: [Function, Array],
|
|
77
|
-
'onUpdate:expandedKeys': [Function, Array]
|
|
78
|
-
};
|
|
79
|
-
export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), { accordion: Boolean, showIrrelevantNodes: { type: Boolean, default: true }, data: {
|
|
80
|
-
type: Array,
|
|
81
|
-
default: () => []
|
|
82
|
-
}, expandOnDragenter: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: true
|
|
85
|
-
}, expandOnClick: Boolean, checkOnClick: {
|
|
86
|
-
type: [Boolean, Function],
|
|
87
|
-
default: false
|
|
88
|
-
}, cancelable: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true
|
|
91
|
-
}, checkable: Boolean, draggable: Boolean, blockNode: Boolean, blockLine: Boolean, showLine: Boolean, disabled: Boolean, checkedKeys: Array, defaultCheckedKeys: {
|
|
92
|
-
type: Array,
|
|
93
|
-
default: () => []
|
|
94
|
-
}, selectedKeys: Array, defaultSelectedKeys: {
|
|
95
|
-
type: Array,
|
|
96
|
-
default: () => []
|
|
97
|
-
}, multiple: Boolean, pattern: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: ''
|
|
100
|
-
}, onLoad: Function, cascade: Boolean, selectable: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
default: true
|
|
103
|
-
}, scrollbarProps: Object, indent: {
|
|
104
|
-
type: Number,
|
|
105
|
-
default: 24
|
|
106
|
-
}, allowDrop: {
|
|
107
|
-
type: Function,
|
|
108
|
-
default: defaultAllowDrop
|
|
109
|
-
}, animated: {
|
|
110
|
-
type: Boolean,
|
|
111
|
-
default: true
|
|
112
|
-
}, checkboxPlacement: {
|
|
113
|
-
type: String,
|
|
114
|
-
default: 'left'
|
|
115
|
-
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, nodeProps: Function, keyboard: {
|
|
116
|
-
type: Boolean,
|
|
117
|
-
default: true
|
|
118
|
-
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), treeSharedProps), {
|
|
119
|
-
// internal props for tree-select
|
|
120
|
-
internalTreeSelect: Boolean, internalScrollable: Boolean, internalScrollablePadding: String,
|
|
121
|
-
// use it to display
|
|
122
|
-
internalRenderEmpty: Function, internalHighlightKeySet: Object, internalUnifySelectCheck: Boolean, internalCheckboxFocusable: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: true
|
|
125
|
-
}, internalFocusable: {
|
|
126
|
-
// Make tree-select take over keyboard operations
|
|
127
|
-
type: Boolean,
|
|
128
|
-
default: true
|
|
129
|
-
}, checkStrategy: {
|
|
130
|
-
type: String,
|
|
131
|
-
default: 'all'
|
|
132
|
-
},
|
|
133
|
-
/**
|
|
134
|
-
* @deprecated
|
|
135
|
-
*/
|
|
136
|
-
leafOnly: Boolean });
|
|
137
|
-
export default defineComponent({
|
|
138
|
-
name: 'Tree',
|
|
139
|
-
props: treeProps,
|
|
140
|
-
setup(props) {
|
|
141
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
142
|
-
watchEffect(() => {
|
|
143
|
-
if (props.leafOnly) {
|
|
144
|
-
warnOnce('tree', '`leaf-only` is deprecated, please use `check-strategy="child"` instead');
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
|
|
149
|
-
const rtlEnabledRef = useRtl('Tree', mergedRtlRef, mergedClsPrefixRef);
|
|
150
|
-
const themeRef = useTheme('Tree', '-tree', style, treeLight, props, mergedClsPrefixRef);
|
|
151
|
-
const selfElRef = ref(null);
|
|
152
|
-
const scrollbarInstRef = ref(null);
|
|
153
|
-
const virtualListInstRef = ref(null);
|
|
154
|
-
function getScrollContainer() {
|
|
155
|
-
var _a;
|
|
156
|
-
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
157
|
-
}
|
|
158
|
-
function getScrollContent() {
|
|
159
|
-
var _a;
|
|
160
|
-
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
161
|
-
}
|
|
162
|
-
const mergedFilterRef = computed(() => {
|
|
163
|
-
const { filter } = props;
|
|
164
|
-
if (filter)
|
|
165
|
-
return filter;
|
|
166
|
-
const { labelField } = props;
|
|
167
|
-
return (pattern, node) => {
|
|
168
|
-
if (!pattern.length)
|
|
169
|
-
return true;
|
|
170
|
-
const label = node[labelField];
|
|
171
|
-
if (typeof label === 'string') {
|
|
172
|
-
return label.toLowerCase().includes(pattern.toLowerCase());
|
|
173
|
-
}
|
|
174
|
-
return false;
|
|
175
|
-
};
|
|
176
|
-
});
|
|
177
|
-
const filteredTreeInfoRef = computed(() => {
|
|
178
|
-
const { pattern } = props;
|
|
179
|
-
if (!pattern) {
|
|
180
|
-
return {
|
|
181
|
-
filteredTree: props.data,
|
|
182
|
-
highlightKeySet: null,
|
|
183
|
-
expandedKeys: undefined
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
if (!pattern.length || !mergedFilterRef.value) {
|
|
187
|
-
return {
|
|
188
|
-
filteredTree: props.data,
|
|
189
|
-
highlightKeySet: null,
|
|
190
|
-
expandedKeys: undefined
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
return filterTree(props.data, mergedFilterRef.value, pattern, props.keyField, props.childrenField);
|
|
194
|
-
});
|
|
195
|
-
// We don't expect data source to change so we just determine it once
|
|
196
|
-
const displayTreeMateRef = computed(() => createTreeMate(props.showIrrelevantNodes
|
|
197
|
-
? props.data
|
|
198
|
-
: filteredTreeInfoRef.value.filteredTree, createTreeMateOptions(props.keyField, props.childrenField, props.disabledField, props.getChildren)));
|
|
199
|
-
const treeSelectInjection = inject(treeSelectInjectionKey, null);
|
|
200
|
-
const dataTreeMateRef = props.internalTreeSelect
|
|
201
|
-
? treeSelectInjection.dataTreeMate
|
|
202
|
-
: displayTreeMateRef;
|
|
203
|
-
const { watchProps } = props;
|
|
204
|
-
const uncontrolledCheckedKeysRef = ref([]);
|
|
205
|
-
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultCheckedKeys')) {
|
|
206
|
-
watchEffect(() => {
|
|
207
|
-
uncontrolledCheckedKeysRef.value = props.defaultCheckedKeys;
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
uncontrolledCheckedKeysRef.value = props.defaultCheckedKeys;
|
|
212
|
-
}
|
|
213
|
-
const controlledCheckedKeysRef = toRef(props, 'checkedKeys');
|
|
214
|
-
const mergedCheckedKeysRef = useMergedState(controlledCheckedKeysRef, uncontrolledCheckedKeysRef);
|
|
215
|
-
const checkedStatusRef = computed(() => {
|
|
216
|
-
const value = dataTreeMateRef.value.getCheckedKeys(mergedCheckedKeysRef.value, {
|
|
217
|
-
cascade: props.cascade,
|
|
218
|
-
allowNotLoaded: props.allowCheckingNotLoaded
|
|
219
|
-
});
|
|
220
|
-
return value;
|
|
221
|
-
});
|
|
222
|
-
const mergedCheckStrategyRef = useMergedCheckStrategy(props);
|
|
223
|
-
const displayedCheckedKeysRef = computed(() => {
|
|
224
|
-
return checkedStatusRef.value.checkedKeys;
|
|
225
|
-
});
|
|
226
|
-
const displayedIndeterminateKeysRef = computed(() => {
|
|
227
|
-
const { indeterminateKeys } = props;
|
|
228
|
-
if (indeterminateKeys !== undefined)
|
|
229
|
-
return indeterminateKeys;
|
|
230
|
-
return checkedStatusRef.value.indeterminateKeys;
|
|
231
|
-
});
|
|
232
|
-
const uncontrolledSelectedKeysRef = ref([]);
|
|
233
|
-
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultSelectedKeys')) {
|
|
234
|
-
watchEffect(() => {
|
|
235
|
-
uncontrolledSelectedKeysRef.value = props.defaultSelectedKeys;
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
uncontrolledSelectedKeysRef.value = props.defaultSelectedKeys;
|
|
240
|
-
}
|
|
241
|
-
const controlledSelectedKeysRef = toRef(props, 'selectedKeys');
|
|
242
|
-
const mergedSelectedKeysRef = useMergedState(controlledSelectedKeysRef, uncontrolledSelectedKeysRef);
|
|
243
|
-
const uncontrolledExpandedKeysRef = ref([]);
|
|
244
|
-
const initUncontrolledExpandedKeys = (keys) => {
|
|
245
|
-
uncontrolledExpandedKeysRef.value = props.defaultExpandAll
|
|
246
|
-
? dataTreeMateRef.value.getNonLeafKeys()
|
|
247
|
-
: keys === undefined
|
|
248
|
-
? props.defaultExpandedKeys
|
|
249
|
-
: keys;
|
|
250
|
-
};
|
|
251
|
-
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultExpandedKeys')) {
|
|
252
|
-
// if watching defaultExpandedKeys, we use access props.defaultExpandedKeys inside initiator
|
|
253
|
-
watchEffect(() => {
|
|
254
|
-
initUncontrolledExpandedKeys(undefined);
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
// We by default watchEffect since if defaultExpandAll is true, we should remain tree expand if data changes
|
|
259
|
-
watchEffect(() => {
|
|
260
|
-
initUncontrolledExpandedKeys(props.defaultExpandedKeys);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
const controlledExpandedKeysRef = toRef(props, 'expandedKeys');
|
|
264
|
-
const mergedExpandedKeysRef = useMergedState(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
265
|
-
const fNodesRef = computed(() => displayTreeMateRef.value.getFlattenedNodes(mergedExpandedKeysRef.value));
|
|
266
|
-
const { pendingNodeKeyRef, handleKeydown } = useKeyboard({
|
|
267
|
-
props,
|
|
268
|
-
mergedSelectedKeysRef,
|
|
269
|
-
fNodesRef,
|
|
270
|
-
mergedExpandedKeysRef,
|
|
271
|
-
handleSelect,
|
|
272
|
-
handleSwitcherClick
|
|
273
|
-
});
|
|
274
|
-
let expandTimerId = null;
|
|
275
|
-
let nodeKeyToBeExpanded = null;
|
|
276
|
-
const uncontrolledHighlightKeySetRef = ref(new Set());
|
|
277
|
-
const controlledHighlightKeySetRef = computed(() => {
|
|
278
|
-
return (props.internalHighlightKeySet ||
|
|
279
|
-
filteredTreeInfoRef.value.highlightKeySet);
|
|
280
|
-
});
|
|
281
|
-
const mergedHighlightKeySetRef = useMergedState(controlledHighlightKeySetRef, uncontrolledHighlightKeySetRef);
|
|
282
|
-
const loadingKeysRef = ref(new Set());
|
|
283
|
-
const expandedNonLoadingKeysRef = computed(() => {
|
|
284
|
-
return mergedExpandedKeysRef.value.filter((key) => !loadingKeysRef.value.has(key));
|
|
285
|
-
});
|
|
286
|
-
let dragStartX = 0;
|
|
287
|
-
const draggingNodeRef = ref(null);
|
|
288
|
-
const droppingNodeRef = ref(null);
|
|
289
|
-
const droppingMouseNodeRef = ref(null);
|
|
290
|
-
const droppingPositionRef = ref(null);
|
|
291
|
-
const droppingOffsetLevelRef = ref(0);
|
|
292
|
-
const droppingNodeParentRef = computed(() => {
|
|
293
|
-
const { value: droppingNode } = droppingNodeRef;
|
|
294
|
-
if (!droppingNode)
|
|
295
|
-
return null;
|
|
296
|
-
// May avoid overlap between line mark of first child & rect mark of parent
|
|
297
|
-
// if (droppingNode.isFirstChild && droppingPositionRef.value === 'before') {
|
|
298
|
-
// return null
|
|
299
|
-
// }
|
|
300
|
-
return droppingNode.parent;
|
|
301
|
-
});
|
|
302
|
-
// shallow watch data
|
|
303
|
-
watch(toRef(props, 'data'), () => {
|
|
304
|
-
loadingKeysRef.value.clear();
|
|
305
|
-
pendingNodeKeyRef.value = null;
|
|
306
|
-
resetDndState();
|
|
307
|
-
}, {
|
|
308
|
-
deep: false
|
|
309
|
-
});
|
|
310
|
-
let expandAnimationDisabled = false;
|
|
311
|
-
const disableExpandAnimationForOneTick = () => {
|
|
312
|
-
expandAnimationDisabled = true;
|
|
313
|
-
void nextTick(() => {
|
|
314
|
-
expandAnimationDisabled = false;
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
let memoizedExpandedKeys;
|
|
318
|
-
watch(toRef(props, 'pattern'), (value, oldValue) => {
|
|
319
|
-
if (props.showIrrelevantNodes) {
|
|
320
|
-
memoizedExpandedKeys = undefined;
|
|
321
|
-
if (value) {
|
|
322
|
-
const { expandedKeys: expandedKeysAfterChange, highlightKeySet } = keysWithFilter(props.data, props.pattern, props.keyField, props.childrenField, mergedFilterRef.value);
|
|
323
|
-
uncontrolledHighlightKeySetRef.value = highlightKeySet;
|
|
324
|
-
disableExpandAnimationForOneTick();
|
|
325
|
-
doUpdateExpandedKeys(expandedKeysAfterChange, getOptionsByKeys(expandedKeysAfterChange), { node: null, action: 'filter' });
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
uncontrolledHighlightKeySetRef.value = new Set();
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
if (!value.length) {
|
|
333
|
-
if (memoizedExpandedKeys !== undefined) {
|
|
334
|
-
disableExpandAnimationForOneTick();
|
|
335
|
-
doUpdateExpandedKeys(memoizedExpandedKeys, getOptionsByKeys(memoizedExpandedKeys), { node: null, action: 'filter' });
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
if (!oldValue.length) {
|
|
340
|
-
memoizedExpandedKeys = mergedExpandedKeysRef.value;
|
|
341
|
-
}
|
|
342
|
-
const { expandedKeys } = filteredTreeInfoRef.value;
|
|
343
|
-
if (expandedKeys !== undefined) {
|
|
344
|
-
disableExpandAnimationForOneTick();
|
|
345
|
-
doUpdateExpandedKeys(expandedKeys, getOptionsByKeys(expandedKeys), {
|
|
346
|
-
node: null,
|
|
347
|
-
action: 'filter'
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
function triggerLoading(node) {
|
|
354
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
-
const { onLoad } = props;
|
|
356
|
-
if (!onLoad) {
|
|
357
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
358
|
-
warn('tree', 'There is unloaded node in data but props.onLoad is not specified.');
|
|
359
|
-
}
|
|
360
|
-
yield Promise.resolve();
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
const { value: loadingKeys } = loadingKeysRef;
|
|
364
|
-
if (!loadingKeys.has(node.key)) {
|
|
365
|
-
loadingKeys.add(node.key);
|
|
366
|
-
try {
|
|
367
|
-
const loadResult = yield onLoad(node.rawNode);
|
|
368
|
-
if (loadResult === false) {
|
|
369
|
-
resetDragExpandState();
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
catch (loadError) {
|
|
373
|
-
console.error(loadError);
|
|
374
|
-
resetDragExpandState();
|
|
375
|
-
}
|
|
376
|
-
loadingKeys.delete(node.key);
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
watchEffect(() => {
|
|
381
|
-
var _a;
|
|
382
|
-
const { value: displayTreeMate } = displayTreeMateRef;
|
|
383
|
-
if (!displayTreeMate)
|
|
384
|
-
return;
|
|
385
|
-
const { getNode } = displayTreeMate;
|
|
386
|
-
(_a = mergedExpandedKeysRef.value) === null || _a === void 0 ? void 0 : _a.forEach((key) => {
|
|
387
|
-
const node = getNode(key);
|
|
388
|
-
if (node && !node.shallowLoaded) {
|
|
389
|
-
void triggerLoading(node);
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
});
|
|
393
|
-
// animation in progress
|
|
394
|
-
const aipRef = ref(false);
|
|
395
|
-
// animation flattened nodes
|
|
396
|
-
const afNodesRef = ref([]);
|
|
397
|
-
// Note: Since the virtual list depends on min height, if there's a node
|
|
398
|
-
// whose height starts from 0, the virtual list will have a wrong height
|
|
399
|
-
// during animation. This will seldom cause wired scrollbar status. It is
|
|
400
|
-
// fixable and need some changes in vueuc, I've no time so I just leave it
|
|
401
|
-
// here. Maybe the bug won't be fixed during the life time of the project.
|
|
402
|
-
watch(expandedNonLoadingKeysRef, (value, prevValue) => {
|
|
403
|
-
if (!props.animated || expandAnimationDisabled) {
|
|
404
|
-
void nextTick(syncScrollbar);
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
const nodeHeight = depx(themeRef.value.self.nodeHeight);
|
|
408
|
-
const prevVSet = new Set(prevValue);
|
|
409
|
-
let addedKey = null;
|
|
410
|
-
let removedKey = null;
|
|
411
|
-
for (const expandedKey of value) {
|
|
412
|
-
if (!prevVSet.has(expandedKey)) {
|
|
413
|
-
if (addedKey !== null)
|
|
414
|
-
return; // multi expand, not triggered by click
|
|
415
|
-
addedKey = expandedKey;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
const currentVSet = new Set(value);
|
|
419
|
-
for (const expandedKey of prevValue) {
|
|
420
|
-
if (!currentVSet.has(expandedKey)) {
|
|
421
|
-
if (removedKey !== null)
|
|
422
|
-
return; // multi collapse, not triggered by click
|
|
423
|
-
removedKey = expandedKey;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if (addedKey === null && removedKey === null) {
|
|
427
|
-
// 1. multi action, not triggered by click
|
|
428
|
-
// 2. no action, don't know what happened
|
|
429
|
-
return;
|
|
430
|
-
}
|
|
431
|
-
const { virtualScroll } = props;
|
|
432
|
-
const viewportHeight = (virtualScroll ? virtualListInstRef.value.listElRef : selfElRef.value).offsetHeight;
|
|
433
|
-
const viewportItemCount = Math.ceil(viewportHeight / nodeHeight) + 1;
|
|
434
|
-
// play add animation
|
|
435
|
-
let baseExpandedKeys;
|
|
436
|
-
if (addedKey !== null) {
|
|
437
|
-
baseExpandedKeys = prevValue;
|
|
438
|
-
}
|
|
439
|
-
if (removedKey !== null) {
|
|
440
|
-
if (baseExpandedKeys === undefined) {
|
|
441
|
-
baseExpandedKeys = value;
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
baseExpandedKeys = baseExpandedKeys.filter((key) => key !== removedKey);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
aipRef.value = true;
|
|
448
|
-
afNodesRef.value =
|
|
449
|
-
displayTreeMateRef.value.getFlattenedNodes(baseExpandedKeys);
|
|
450
|
-
if (addedKey !== null) {
|
|
451
|
-
const expandedNodeIndex = afNodesRef.value.findIndex((node) => node.key === addedKey);
|
|
452
|
-
if (~expandedNodeIndex) {
|
|
453
|
-
const children = // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
454
|
-
afNodesRef.value[expandedNodeIndex].children;
|
|
455
|
-
// sometimes user will pass leaf keys in
|
|
456
|
-
if (children) {
|
|
457
|
-
const expandedChildren = flatten(children, value);
|
|
458
|
-
afNodesRef.value.splice(expandedNodeIndex + 1, 0, {
|
|
459
|
-
__motion: true,
|
|
460
|
-
mode: 'expand',
|
|
461
|
-
height: virtualScroll
|
|
462
|
-
? expandedChildren.length * nodeHeight
|
|
463
|
-
: undefined,
|
|
464
|
-
nodes: virtualScroll
|
|
465
|
-
? expandedChildren.slice(0, viewportItemCount)
|
|
466
|
-
: expandedChildren
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
if (removedKey !== null) {
|
|
472
|
-
const collapsedNodeIndex = afNodesRef.value.findIndex((node) => node.key === removedKey);
|
|
473
|
-
if (~collapsedNodeIndex) {
|
|
474
|
-
const collapsedNodeChildren = afNodesRef.value[collapsedNodeIndex].children;
|
|
475
|
-
// Sometime the whole tree is change, remove a key doesn't mean it is collapsed,
|
|
476
|
-
// but maybe children removed
|
|
477
|
-
if (!collapsedNodeChildren)
|
|
478
|
-
return;
|
|
479
|
-
// play remove animation
|
|
480
|
-
aipRef.value = true;
|
|
481
|
-
const collapsedChildren = flatten(collapsedNodeChildren, value);
|
|
482
|
-
afNodesRef.value.splice(collapsedNodeIndex + 1, 0, {
|
|
483
|
-
__motion: true,
|
|
484
|
-
mode: 'collapse',
|
|
485
|
-
height: virtualScroll
|
|
486
|
-
? collapsedChildren.length * nodeHeight
|
|
487
|
-
: undefined,
|
|
488
|
-
nodes: virtualScroll
|
|
489
|
-
? collapsedChildren.slice(0, viewportItemCount)
|
|
490
|
-
: collapsedChildren
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
const getFIndexRef = computed(() => {
|
|
496
|
-
return createIndexGetter(fNodesRef.value);
|
|
497
|
-
});
|
|
498
|
-
const mergedFNodesRef = computed(() => {
|
|
499
|
-
if (aipRef.value)
|
|
500
|
-
return afNodesRef.value;
|
|
501
|
-
else
|
|
502
|
-
return fNodesRef.value;
|
|
503
|
-
});
|
|
504
|
-
function syncScrollbar() {
|
|
505
|
-
const { value: scrollbarInst } = scrollbarInstRef;
|
|
506
|
-
if (scrollbarInst)
|
|
507
|
-
scrollbarInst.sync();
|
|
508
|
-
}
|
|
509
|
-
function handleAfterEnter() {
|
|
510
|
-
aipRef.value = false;
|
|
511
|
-
if (props.virtualScroll) {
|
|
512
|
-
// If virtual scroll, we won't listen to resize during animation, so
|
|
513
|
-
// resize callback of virtual list won't be called and as a result
|
|
514
|
-
// scrollbar won't sync. We need to sync scrollbar manually.
|
|
515
|
-
void nextTick(syncScrollbar);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
function getOptionsByKeys(keys) {
|
|
519
|
-
const { getNode } = dataTreeMateRef.value;
|
|
520
|
-
return keys.map((key) => { var _a; return ((_a = getNode(key)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; });
|
|
521
|
-
}
|
|
522
|
-
function doUpdateExpandedKeys(value, option, meta) {
|
|
523
|
-
const { 'onUpdate:expandedKeys': _onUpdateExpandedKeys, onUpdateExpandedKeys } = props;
|
|
524
|
-
uncontrolledExpandedKeysRef.value = value;
|
|
525
|
-
if (_onUpdateExpandedKeys) {
|
|
526
|
-
call(_onUpdateExpandedKeys, value, option, meta);
|
|
527
|
-
}
|
|
528
|
-
if (onUpdateExpandedKeys) {
|
|
529
|
-
call(onUpdateExpandedKeys, value, option, meta);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function doUpdateCheckedKeys(value, option, meta) {
|
|
533
|
-
const { 'onUpdate:checkedKeys': _onUpdateCheckedKeys, onUpdateCheckedKeys } = props;
|
|
534
|
-
uncontrolledCheckedKeysRef.value = value;
|
|
535
|
-
if (onUpdateCheckedKeys) {
|
|
536
|
-
call(onUpdateCheckedKeys, value, option, meta);
|
|
537
|
-
}
|
|
538
|
-
if (_onUpdateCheckedKeys) {
|
|
539
|
-
call(_onUpdateCheckedKeys, value, option, meta);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function doUpdateIndeterminateKeys(value, option) {
|
|
543
|
-
const { 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys, onUpdateIndeterminateKeys } = props;
|
|
544
|
-
if (_onUpdateIndeterminateKeys) {
|
|
545
|
-
call(_onUpdateIndeterminateKeys, value, option);
|
|
546
|
-
}
|
|
547
|
-
if (onUpdateIndeterminateKeys) {
|
|
548
|
-
call(onUpdateIndeterminateKeys, value, option);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function doUpdateSelectedKeys(value, option, meta) {
|
|
552
|
-
const { 'onUpdate:selectedKeys': _onUpdateSelectedKeys, onUpdateSelectedKeys } = props;
|
|
553
|
-
uncontrolledSelectedKeysRef.value = value;
|
|
554
|
-
if (onUpdateSelectedKeys) {
|
|
555
|
-
call(onUpdateSelectedKeys, value, option, meta);
|
|
556
|
-
}
|
|
557
|
-
if (_onUpdateSelectedKeys) {
|
|
558
|
-
call(_onUpdateSelectedKeys, value, option, meta);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
// Drag & Drop
|
|
562
|
-
function doDragEnter(info) {
|
|
563
|
-
const { onDragenter } = props;
|
|
564
|
-
if (onDragenter)
|
|
565
|
-
call(onDragenter, info);
|
|
566
|
-
}
|
|
567
|
-
function doDragLeave(info) {
|
|
568
|
-
const { onDragleave } = props;
|
|
569
|
-
if (onDragleave)
|
|
570
|
-
call(onDragleave, info);
|
|
571
|
-
}
|
|
572
|
-
function doDragEnd(info) {
|
|
573
|
-
const { onDragend } = props;
|
|
574
|
-
if (onDragend)
|
|
575
|
-
call(onDragend, info);
|
|
576
|
-
}
|
|
577
|
-
function doDragStart(info) {
|
|
578
|
-
const { onDragstart } = props;
|
|
579
|
-
if (onDragstart)
|
|
580
|
-
call(onDragstart, info);
|
|
581
|
-
}
|
|
582
|
-
function doDragOver(info) {
|
|
583
|
-
const { onDragover } = props;
|
|
584
|
-
if (onDragover)
|
|
585
|
-
call(onDragover, info);
|
|
586
|
-
}
|
|
587
|
-
function doDrop(info) {
|
|
588
|
-
const { onDrop } = props;
|
|
589
|
-
if (onDrop)
|
|
590
|
-
call(onDrop, info);
|
|
591
|
-
}
|
|
592
|
-
function resetDndState() {
|
|
593
|
-
resetDragState();
|
|
594
|
-
resetDropState();
|
|
595
|
-
}
|
|
596
|
-
function resetDragState() {
|
|
597
|
-
draggingNodeRef.value = null;
|
|
598
|
-
}
|
|
599
|
-
function resetDropState() {
|
|
600
|
-
droppingOffsetLevelRef.value = 0;
|
|
601
|
-
droppingNodeRef.value = null;
|
|
602
|
-
droppingMouseNodeRef.value = null;
|
|
603
|
-
droppingPositionRef.value = null;
|
|
604
|
-
resetDragExpandState();
|
|
605
|
-
}
|
|
606
|
-
function resetDragExpandState() {
|
|
607
|
-
if (expandTimerId) {
|
|
608
|
-
window.clearTimeout(expandTimerId);
|
|
609
|
-
expandTimerId = null;
|
|
610
|
-
}
|
|
611
|
-
nodeKeyToBeExpanded = null;
|
|
612
|
-
}
|
|
613
|
-
function handleCheck(node, checked) {
|
|
614
|
-
// We don't guard for leaf only since we have done it in view layer
|
|
615
|
-
if (props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
616
|
-
return;
|
|
617
|
-
}
|
|
618
|
-
if (props.internalUnifySelectCheck && !props.multiple) {
|
|
619
|
-
handleSelect(node);
|
|
620
|
-
return;
|
|
621
|
-
}
|
|
622
|
-
const checkedAction = checked ? 'check' : 'uncheck';
|
|
623
|
-
const { checkedKeys, indeterminateKeys } = dataTreeMateRef.value[checkedAction](node.key, displayedCheckedKeysRef.value, {
|
|
624
|
-
cascade: props.cascade,
|
|
625
|
-
checkStrategy: mergedCheckStrategyRef.value,
|
|
626
|
-
allowNotLoaded: props.allowCheckingNotLoaded
|
|
627
|
-
});
|
|
628
|
-
doUpdateCheckedKeys(checkedKeys, getOptionsByKeys(checkedKeys), {
|
|
629
|
-
node: node.rawNode,
|
|
630
|
-
action: checkedAction
|
|
631
|
-
});
|
|
632
|
-
doUpdateIndeterminateKeys(indeterminateKeys, getOptionsByKeys(indeterminateKeys));
|
|
633
|
-
}
|
|
634
|
-
function toggleExpand(node) {
|
|
635
|
-
if (props.disabled)
|
|
636
|
-
return;
|
|
637
|
-
const { key } = node;
|
|
638
|
-
const { value: mergedExpandedKeys } = mergedExpandedKeysRef;
|
|
639
|
-
const index = mergedExpandedKeys.findIndex((expandNodeId) => expandNodeId === key);
|
|
640
|
-
if (~index) {
|
|
641
|
-
const expandedKeysAfterChange = Array.from(mergedExpandedKeys);
|
|
642
|
-
expandedKeysAfterChange.splice(index, 1);
|
|
643
|
-
doUpdateExpandedKeys(expandedKeysAfterChange, getOptionsByKeys(expandedKeysAfterChange), {
|
|
644
|
-
node: node.rawNode,
|
|
645
|
-
action: 'collapse'
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
else {
|
|
649
|
-
const nodeToBeExpanded = displayTreeMateRef.value.getNode(key);
|
|
650
|
-
if (!nodeToBeExpanded || nodeToBeExpanded.isLeaf) {
|
|
651
|
-
return;
|
|
652
|
-
}
|
|
653
|
-
let nextKeys;
|
|
654
|
-
if (props.accordion) {
|
|
655
|
-
const siblingKeySet = new Set(node.siblings.map(({ key }) => key));
|
|
656
|
-
nextKeys = mergedExpandedKeys.filter((expandedKey) => {
|
|
657
|
-
return !siblingKeySet.has(expandedKey);
|
|
658
|
-
});
|
|
659
|
-
nextKeys.push(key);
|
|
660
|
-
}
|
|
661
|
-
else {
|
|
662
|
-
nextKeys = mergedExpandedKeys.concat(key);
|
|
663
|
-
}
|
|
664
|
-
doUpdateExpandedKeys(nextKeys, getOptionsByKeys(nextKeys), {
|
|
665
|
-
node: node.rawNode,
|
|
666
|
-
action: 'expand'
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
function handleSwitcherClick(node) {
|
|
671
|
-
if (props.disabled || aipRef.value)
|
|
672
|
-
return;
|
|
673
|
-
toggleExpand(node);
|
|
674
|
-
}
|
|
675
|
-
function handleSelect(node) {
|
|
676
|
-
if (props.disabled || !props.selectable) {
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
pendingNodeKeyRef.value = node.key;
|
|
680
|
-
if (props.internalUnifySelectCheck) {
|
|
681
|
-
const { value: { checkedKeys, indeterminateKeys } } = checkedStatusRef;
|
|
682
|
-
if (props.multiple) {
|
|
683
|
-
handleCheck(node, !(checkedKeys.includes(node.key) ||
|
|
684
|
-
indeterminateKeys.includes(node.key)));
|
|
685
|
-
}
|
|
686
|
-
else {
|
|
687
|
-
doUpdateCheckedKeys([node.key], getOptionsByKeys([node.key]), {
|
|
688
|
-
node: node.rawNode,
|
|
689
|
-
action: 'check'
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
if (props.multiple) {
|
|
694
|
-
const selectedKeys = Array.from(mergedSelectedKeysRef.value);
|
|
695
|
-
const index = selectedKeys.findIndex((key) => key === node.key);
|
|
696
|
-
if (~index) {
|
|
697
|
-
if (props.cancelable) {
|
|
698
|
-
selectedKeys.splice(index, 1);
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
else if (!~index) {
|
|
702
|
-
selectedKeys.push(node.key);
|
|
703
|
-
}
|
|
704
|
-
doUpdateSelectedKeys(selectedKeys, getOptionsByKeys(selectedKeys), {
|
|
705
|
-
node: node.rawNode,
|
|
706
|
-
action: ~index ? 'unselect' : 'select'
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
const selectedKeys = mergedSelectedKeysRef.value;
|
|
711
|
-
if (selectedKeys.includes(node.key)) {
|
|
712
|
-
if (props.cancelable) {
|
|
713
|
-
doUpdateSelectedKeys([], [], {
|
|
714
|
-
node: node.rawNode,
|
|
715
|
-
action: 'unselect'
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
else {
|
|
720
|
-
doUpdateSelectedKeys([node.key], getOptionsByKeys([node.key]), {
|
|
721
|
-
node: node.rawNode,
|
|
722
|
-
action: 'select'
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
function expandDragEnterNode(node) {
|
|
728
|
-
if (expandTimerId) {
|
|
729
|
-
window.clearTimeout(expandTimerId);
|
|
730
|
-
expandTimerId = null;
|
|
731
|
-
}
|
|
732
|
-
// Don't expand leaf node.
|
|
733
|
-
if (node.isLeaf)
|
|
734
|
-
return;
|
|
735
|
-
nodeKeyToBeExpanded = node.key;
|
|
736
|
-
const expand = () => {
|
|
737
|
-
if (nodeKeyToBeExpanded !== node.key)
|
|
738
|
-
return;
|
|
739
|
-
const { value: droppingMouseNode } = droppingMouseNodeRef;
|
|
740
|
-
if (droppingMouseNode &&
|
|
741
|
-
droppingMouseNode.key === node.key &&
|
|
742
|
-
!mergedExpandedKeysRef.value.includes(node.key)) {
|
|
743
|
-
const nextKeys = mergedExpandedKeysRef.value.concat(node.key);
|
|
744
|
-
doUpdateExpandedKeys(nextKeys, getOptionsByKeys(nextKeys), {
|
|
745
|
-
node: node.rawNode,
|
|
746
|
-
action: 'expand'
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
expandTimerId = null;
|
|
750
|
-
nodeKeyToBeExpanded = null;
|
|
751
|
-
};
|
|
752
|
-
if (!node.shallowLoaded) {
|
|
753
|
-
expandTimerId = window.setTimeout(() => {
|
|
754
|
-
void triggerLoading(node).then(() => {
|
|
755
|
-
expand();
|
|
756
|
-
});
|
|
757
|
-
}, 1000);
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
expandTimerId = window.setTimeout(() => {
|
|
761
|
-
expand();
|
|
762
|
-
}, 1000);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
// Dnd
|
|
766
|
-
function handleDragEnter({ event, node }) {
|
|
767
|
-
// node should be a tmNode
|
|
768
|
-
if (!props.draggable ||
|
|
769
|
-
props.disabled ||
|
|
770
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
771
|
-
return;
|
|
772
|
-
}
|
|
773
|
-
handleDragOver({ event, node }, false);
|
|
774
|
-
doDragEnter({ event, node: node.rawNode });
|
|
775
|
-
}
|
|
776
|
-
function handleDragLeave({ event, node }) {
|
|
777
|
-
if (!props.draggable ||
|
|
778
|
-
props.disabled ||
|
|
779
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
doDragLeave({ event, node: node.rawNode });
|
|
783
|
-
}
|
|
784
|
-
function handleDragLeaveTree(e) {
|
|
785
|
-
if (e.target !== e.currentTarget)
|
|
786
|
-
return;
|
|
787
|
-
resetDropState();
|
|
788
|
-
}
|
|
789
|
-
// Dragend is ok, we don't need to add global listener to reset drag status
|
|
790
|
-
function handleDragEnd({ event, node }) {
|
|
791
|
-
resetDndState();
|
|
792
|
-
if (!props.draggable ||
|
|
793
|
-
props.disabled ||
|
|
794
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
doDragEnd({ event, node: node.rawNode });
|
|
798
|
-
}
|
|
799
|
-
function handleDragStart({ event, node }) {
|
|
800
|
-
var _a;
|
|
801
|
-
if (!props.draggable ||
|
|
802
|
-
props.disabled ||
|
|
803
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
804
|
-
return;
|
|
805
|
-
}
|
|
806
|
-
// Most of time, the image will block user's view
|
|
807
|
-
emptyImage && ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.setDragImage(emptyImage, 0, 0));
|
|
808
|
-
dragStartX = event.clientX;
|
|
809
|
-
draggingNodeRef.value = node;
|
|
810
|
-
doDragStart({ event, node: node.rawNode });
|
|
811
|
-
}
|
|
812
|
-
function handleDragOver({ event, node }, emit = true) {
|
|
813
|
-
var _a;
|
|
814
|
-
if (!props.draggable ||
|
|
815
|
-
props.disabled ||
|
|
816
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
817
|
-
return;
|
|
818
|
-
}
|
|
819
|
-
const { value: draggingNode } = draggingNodeRef;
|
|
820
|
-
if (!draggingNode)
|
|
821
|
-
return;
|
|
822
|
-
const { allowDrop, indent } = props;
|
|
823
|
-
if (emit)
|
|
824
|
-
doDragOver({ event, node: node.rawNode });
|
|
825
|
-
// Update dropping node
|
|
826
|
-
const el = event.currentTarget;
|
|
827
|
-
const { height: elOffsetHeight, top: elClientTop } = el.getBoundingClientRect();
|
|
828
|
-
const eventOffsetY = event.clientY - elClientTop;
|
|
829
|
-
let mousePosition;
|
|
830
|
-
const allowDropInside = allowDrop({
|
|
831
|
-
node: node.rawNode,
|
|
832
|
-
dropPosition: 'inside',
|
|
833
|
-
phase: 'drag'
|
|
834
|
-
});
|
|
835
|
-
if (allowDropInside) {
|
|
836
|
-
if (eventOffsetY <= 8) {
|
|
837
|
-
mousePosition = 'before';
|
|
838
|
-
}
|
|
839
|
-
else if (eventOffsetY >= elOffsetHeight - 8) {
|
|
840
|
-
mousePosition = 'after';
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
mousePosition = 'inside';
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
else {
|
|
847
|
-
if (eventOffsetY <= elOffsetHeight / 2) {
|
|
848
|
-
mousePosition = 'before';
|
|
849
|
-
}
|
|
850
|
-
else {
|
|
851
|
-
mousePosition = 'after';
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
const { value: getFindex } = getFIndexRef;
|
|
855
|
-
/** determine the drop position and drop node */
|
|
856
|
-
/** the dropping node needn't to be the mouse hovering node! */
|
|
857
|
-
/**
|
|
858
|
-
* if there is something i've learned from implementing a complex
|
|
859
|
-
* drag & drop. that is never write unit test before you really figure
|
|
860
|
-
* out what behavior is exactly you want.
|
|
861
|
-
*/
|
|
862
|
-
let finalDropNode;
|
|
863
|
-
let finalDropPosition;
|
|
864
|
-
const hoverNodeFIndex = getFindex(node.key);
|
|
865
|
-
if (hoverNodeFIndex === null) {
|
|
866
|
-
resetDropState();
|
|
867
|
-
return;
|
|
868
|
-
}
|
|
869
|
-
let mouseAtExpandedNonLeafNode = false;
|
|
870
|
-
if (mousePosition === 'inside') {
|
|
871
|
-
finalDropNode = node;
|
|
872
|
-
finalDropPosition = 'inside';
|
|
873
|
-
}
|
|
874
|
-
else {
|
|
875
|
-
if (mousePosition === 'before') {
|
|
876
|
-
if (node.isFirstChild) {
|
|
877
|
-
finalDropNode = node;
|
|
878
|
-
finalDropPosition = 'before';
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
finalDropNode = fNodesRef.value[hoverNodeFIndex - 1];
|
|
882
|
-
finalDropPosition = 'after';
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
finalDropNode = node;
|
|
887
|
-
finalDropPosition = 'after';
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
// If the node is non-leaf and it is expanded, we don't allow it to
|
|
891
|
-
// drop after it and change it to drop before its next view sibling
|
|
892
|
-
if (!finalDropNode.isLeaf &&
|
|
893
|
-
mergedExpandedKeysRef.value.includes(finalDropNode.key)) {
|
|
894
|
-
mouseAtExpandedNonLeafNode = true;
|
|
895
|
-
if (finalDropPosition === 'after') {
|
|
896
|
-
finalDropNode = fNodesRef.value[hoverNodeFIndex + 1];
|
|
897
|
-
if (!finalDropNode) {
|
|
898
|
-
// maybe there is no next view sibling when non-leaf node has no
|
|
899
|
-
// children and it is the last node in the tree
|
|
900
|
-
finalDropNode = node;
|
|
901
|
-
finalDropPosition = 'inside';
|
|
902
|
-
}
|
|
903
|
-
else {
|
|
904
|
-
finalDropPosition = 'before';
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
const droppingMouseNode = finalDropNode;
|
|
909
|
-
droppingMouseNodeRef.value = droppingMouseNode;
|
|
910
|
-
// This is a speacial case, user is dragging a last child itself, so we
|
|
911
|
-
// only view it as they are trying to drop after it.
|
|
912
|
-
// There are some relevant codes in bailout 1's child branch.
|
|
913
|
-
// Also, the expand bailout should have a high priority. If it's non-leaf
|
|
914
|
-
// node and expanded, keep its origin drop position
|
|
915
|
-
if (!mouseAtExpandedNonLeafNode &&
|
|
916
|
-
draggingNode.isLastChild &&
|
|
917
|
-
draggingNode.key === finalDropNode.key) {
|
|
918
|
-
finalDropPosition = 'after';
|
|
919
|
-
}
|
|
920
|
-
if (finalDropPosition === 'after') {
|
|
921
|
-
let offset = dragStartX - event.clientX; // drag left => > 0
|
|
922
|
-
let offsetLevel = 0;
|
|
923
|
-
while (offset >= indent / 2 && // divide by 2 to make it easier to trigger
|
|
924
|
-
finalDropNode.parent !== null &&
|
|
925
|
-
finalDropNode.isLastChild &&
|
|
926
|
-
offsetLevel < 1) {
|
|
927
|
-
offset -= indent;
|
|
928
|
-
offsetLevel += 1;
|
|
929
|
-
finalDropNode = finalDropNode.parent;
|
|
930
|
-
}
|
|
931
|
-
droppingOffsetLevelRef.value = offsetLevel;
|
|
932
|
-
}
|
|
933
|
-
else {
|
|
934
|
-
droppingOffsetLevelRef.value = 0;
|
|
935
|
-
}
|
|
936
|
-
// Bailout 1
|
|
937
|
-
// Drag self into self
|
|
938
|
-
// Drag it into direct parent
|
|
939
|
-
if (draggingNode.contains(finalDropNode) ||
|
|
940
|
-
(finalDropPosition === 'inside' &&
|
|
941
|
-
((_a = draggingNode.parent) === null || _a === void 0 ? void 0 : _a.key) === finalDropNode.key)) {
|
|
942
|
-
if (draggingNode.key === droppingMouseNode.key &&
|
|
943
|
-
draggingNode.key === finalDropNode.key) {
|
|
944
|
-
// This is special case that we want ui to show a mark to guide user
|
|
945
|
-
// to start dragging. Nor they will think nothing happens.
|
|
946
|
-
// However this is an invalid drop, we need to guard it inside
|
|
947
|
-
// handleDrop
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
resetDropState();
|
|
951
|
-
return;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
// Bailout 3
|
|
955
|
-
if (!allowDrop({
|
|
956
|
-
node: finalDropNode.rawNode,
|
|
957
|
-
dropPosition: finalDropPosition,
|
|
958
|
-
phase: 'drag'
|
|
959
|
-
})) {
|
|
960
|
-
resetDropState();
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
if (draggingNode.key === finalDropNode.key) {
|
|
964
|
-
// don't expand when drag on itself
|
|
965
|
-
resetDragExpandState();
|
|
966
|
-
}
|
|
967
|
-
else {
|
|
968
|
-
if (nodeKeyToBeExpanded !== finalDropNode.key) {
|
|
969
|
-
if (finalDropPosition === 'inside') {
|
|
970
|
-
if (props.expandOnDragenter) {
|
|
971
|
-
expandDragEnterNode(finalDropNode);
|
|
972
|
-
// Bailout 4
|
|
973
|
-
// not try to loading
|
|
974
|
-
if (!finalDropNode.shallowLoaded &&
|
|
975
|
-
nodeKeyToBeExpanded !== finalDropNode.key) {
|
|
976
|
-
resetDndState();
|
|
977
|
-
return;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
else {
|
|
981
|
-
// Bailout 5
|
|
982
|
-
// never expands on drag
|
|
983
|
-
if (!finalDropNode.shallowLoaded) {
|
|
984
|
-
resetDndState();
|
|
985
|
-
return;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
else {
|
|
990
|
-
resetDragExpandState();
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
else {
|
|
994
|
-
if (finalDropPosition !== 'inside') {
|
|
995
|
-
resetDragExpandState();
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
droppingPositionRef.value = finalDropPosition;
|
|
1000
|
-
droppingNodeRef.value = finalDropNode;
|
|
1001
|
-
}
|
|
1002
|
-
function handleDrop({ event, node, dropPosition }) {
|
|
1003
|
-
if (!props.draggable ||
|
|
1004
|
-
props.disabled ||
|
|
1005
|
-
isNodeDisabled(node, props.disabledField)) {
|
|
1006
|
-
return;
|
|
1007
|
-
}
|
|
1008
|
-
const { value: draggingNode } = draggingNodeRef;
|
|
1009
|
-
const { value: droppingNode } = droppingNodeRef;
|
|
1010
|
-
const { value: droppingPosition } = droppingPositionRef;
|
|
1011
|
-
if (!draggingNode || !droppingNode || !droppingPosition) {
|
|
1012
|
-
return;
|
|
1013
|
-
}
|
|
1014
|
-
// Bailout 1
|
|
1015
|
-
if (!props.allowDrop({
|
|
1016
|
-
node: droppingNode.rawNode,
|
|
1017
|
-
dropPosition: droppingPosition,
|
|
1018
|
-
phase: 'drag'
|
|
1019
|
-
})) {
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
// Bailout 2
|
|
1023
|
-
// This is a special case to guard since we want ui to show the status
|
|
1024
|
-
// but not to emit a event
|
|
1025
|
-
if (draggingNode.key === droppingNode.key) {
|
|
1026
|
-
return;
|
|
1027
|
-
}
|
|
1028
|
-
// Bailout 3
|
|
1029
|
-
// insert before its next node
|
|
1030
|
-
// insert after its prev node
|
|
1031
|
-
if (droppingPosition === 'before') {
|
|
1032
|
-
const nextNode = draggingNode.getNext({ includeDisabled: true });
|
|
1033
|
-
if (nextNode) {
|
|
1034
|
-
if (nextNode.key === droppingNode.key) {
|
|
1035
|
-
resetDropState();
|
|
1036
|
-
return;
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
if (droppingPosition === 'after') {
|
|
1041
|
-
const prevNode = draggingNode.getPrev({ includeDisabled: true });
|
|
1042
|
-
if (prevNode) {
|
|
1043
|
-
if (prevNode.key === droppingNode.key) {
|
|
1044
|
-
resetDropState();
|
|
1045
|
-
return;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
doDrop({
|
|
1050
|
-
event,
|
|
1051
|
-
node: droppingNode.rawNode,
|
|
1052
|
-
dragNode: draggingNode.rawNode,
|
|
1053
|
-
dropPosition
|
|
1054
|
-
});
|
|
1055
|
-
resetDndState();
|
|
1056
|
-
}
|
|
1057
|
-
function handleScroll() {
|
|
1058
|
-
syncScrollbar();
|
|
1059
|
-
}
|
|
1060
|
-
function handleResize() {
|
|
1061
|
-
syncScrollbar();
|
|
1062
|
-
}
|
|
1063
|
-
function handleFocusout(e) {
|
|
1064
|
-
var _a;
|
|
1065
|
-
if (props.virtualScroll || props.internalScrollable) {
|
|
1066
|
-
const { value: scrollbarInst } = scrollbarInstRef;
|
|
1067
|
-
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget)) {
|
|
1068
|
-
return;
|
|
1069
|
-
}
|
|
1070
|
-
pendingNodeKeyRef.value = null;
|
|
1071
|
-
}
|
|
1072
|
-
else {
|
|
1073
|
-
const { value: selfEl } = selfElRef;
|
|
1074
|
-
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(e.relatedTarget))
|
|
1075
|
-
return;
|
|
1076
|
-
pendingNodeKeyRef.value = null;
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
watch(pendingNodeKeyRef, (value) => {
|
|
1080
|
-
var _a, _b;
|
|
1081
|
-
if (value === null)
|
|
1082
|
-
return;
|
|
1083
|
-
if (props.virtualScroll) {
|
|
1084
|
-
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo({ key: value });
|
|
1085
|
-
}
|
|
1086
|
-
else if (props.internalScrollable) {
|
|
1087
|
-
const { value: scrollbarInst } = scrollbarInstRef;
|
|
1088
|
-
if (scrollbarInst === null)
|
|
1089
|
-
return;
|
|
1090
|
-
const targetEl = (_b = scrollbarInst.contentRef) === null || _b === void 0 ? void 0 : _b.querySelector(`[data-key="${createDataKey(value)}"]`);
|
|
1091
|
-
if (!targetEl)
|
|
1092
|
-
return;
|
|
1093
|
-
scrollbarInst.scrollTo({
|
|
1094
|
-
el: targetEl
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
});
|
|
1098
|
-
provide(treeInjectionKey, {
|
|
1099
|
-
loadingKeysRef,
|
|
1100
|
-
highlightKeySetRef: mergedHighlightKeySetRef,
|
|
1101
|
-
displayedCheckedKeysRef,
|
|
1102
|
-
displayedIndeterminateKeysRef,
|
|
1103
|
-
mergedSelectedKeysRef,
|
|
1104
|
-
mergedExpandedKeysRef,
|
|
1105
|
-
mergedThemeRef: themeRef,
|
|
1106
|
-
mergedCheckStrategyRef,
|
|
1107
|
-
nodePropsRef: toRef(props, 'nodeProps'),
|
|
1108
|
-
disabledRef: toRef(props, 'disabled'),
|
|
1109
|
-
checkableRef: toRef(props, 'checkable'),
|
|
1110
|
-
selectableRef: toRef(props, 'selectable'),
|
|
1111
|
-
expandOnClickRef: toRef(props, 'expandOnClick'),
|
|
1112
|
-
onLoadRef: toRef(props, 'onLoad'),
|
|
1113
|
-
draggableRef: toRef(props, 'draggable'),
|
|
1114
|
-
blockLineRef: toRef(props, 'blockLine'),
|
|
1115
|
-
indentRef: toRef(props, 'indent'),
|
|
1116
|
-
cascadeRef: toRef(props, 'cascade'),
|
|
1117
|
-
checkOnClickRef: toRef(props, 'checkOnClick'),
|
|
1118
|
-
checkboxPlacementRef: props.checkboxPlacement,
|
|
1119
|
-
droppingMouseNodeRef,
|
|
1120
|
-
droppingNodeParentRef,
|
|
1121
|
-
draggingNodeRef,
|
|
1122
|
-
droppingPositionRef,
|
|
1123
|
-
droppingOffsetLevelRef,
|
|
1124
|
-
fNodesRef,
|
|
1125
|
-
pendingNodeKeyRef,
|
|
1126
|
-
showLineRef: toRef(props, 'showLine'),
|
|
1127
|
-
disabledFieldRef: toRef(props, 'disabledField'),
|
|
1128
|
-
internalScrollableRef: toRef(props, 'internalScrollable'),
|
|
1129
|
-
internalCheckboxFocusableRef: toRef(props, 'internalCheckboxFocusable'),
|
|
1130
|
-
internalTreeSelect: props.internalTreeSelect,
|
|
1131
|
-
renderLabelRef: toRef(props, 'renderLabel'),
|
|
1132
|
-
renderPrefixRef: toRef(props, 'renderPrefix'),
|
|
1133
|
-
renderSuffixRef: toRef(props, 'renderSuffix'),
|
|
1134
|
-
renderSwitcherIconRef: toRef(props, 'renderSwitcherIcon'),
|
|
1135
|
-
labelFieldRef: toRef(props, 'labelField'),
|
|
1136
|
-
multipleRef: toRef(props, 'multiple'),
|
|
1137
|
-
handleSwitcherClick,
|
|
1138
|
-
handleDragEnd,
|
|
1139
|
-
handleDragEnter,
|
|
1140
|
-
handleDragLeave,
|
|
1141
|
-
handleDragStart,
|
|
1142
|
-
handleDrop,
|
|
1143
|
-
handleDragOver,
|
|
1144
|
-
handleSelect,
|
|
1145
|
-
handleCheck
|
|
1146
|
-
});
|
|
1147
|
-
function scrollTo(options) {
|
|
1148
|
-
var _a;
|
|
1149
|
-
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
1150
|
-
}
|
|
1151
|
-
const exposedMethods = {
|
|
1152
|
-
handleKeydown,
|
|
1153
|
-
scrollTo,
|
|
1154
|
-
getCheckedData: () => {
|
|
1155
|
-
if (!props.checkable)
|
|
1156
|
-
return { keys: [], options: [] };
|
|
1157
|
-
const { checkedKeys } = checkedStatusRef.value;
|
|
1158
|
-
return {
|
|
1159
|
-
keys: checkedKeys,
|
|
1160
|
-
options: getOptionsByKeys(checkedKeys)
|
|
1161
|
-
};
|
|
1162
|
-
},
|
|
1163
|
-
getIndeterminateData: () => {
|
|
1164
|
-
if (!props.checkable)
|
|
1165
|
-
return { keys: [], options: [] };
|
|
1166
|
-
const { indeterminateKeys } = checkedStatusRef.value;
|
|
1167
|
-
return {
|
|
1168
|
-
keys: indeterminateKeys,
|
|
1169
|
-
options: getOptionsByKeys(indeterminateKeys)
|
|
1170
|
-
};
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
const cssVarsRef = computed(() => {
|
|
1174
|
-
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1175
|
-
const lineOffsetTop = getPadding(nodeWrapperPadding, 'top');
|
|
1176
|
-
const lineOffsetBottom = getPadding(nodeWrapperPadding, 'bottom');
|
|
1177
|
-
const nodeContentHeight = pxfy(depx(nodeHeight) - depx(lineOffsetTop) - depx(lineOffsetBottom));
|
|
1178
|
-
return {
|
|
1179
|
-
'--n-arrow-color': arrowColor,
|
|
1180
|
-
'--n-loading-color': loadingColor,
|
|
1181
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
1182
|
-
'--n-font-size': fontSize,
|
|
1183
|
-
'--n-node-border-radius': nodeBorderRadius,
|
|
1184
|
-
'--n-node-color-active': nodeColorActive,
|
|
1185
|
-
'--n-node-color-hover': nodeColorHover,
|
|
1186
|
-
'--n-node-color-pressed': nodeColorPressed,
|
|
1187
|
-
'--n-node-text-color': nodeTextColor,
|
|
1188
|
-
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1189
|
-
'--n-drop-mark-color': dropMarkColor,
|
|
1190
|
-
'--n-node-wrapper-padding': nodeWrapperPadding,
|
|
1191
|
-
'--n-line-offset-top': `-${lineOffsetTop}`,
|
|
1192
|
-
'--n-line-offset-bottom': `-${lineOffsetBottom}`,
|
|
1193
|
-
'--n-node-content-height': nodeContentHeight,
|
|
1194
|
-
'--n-line-height': lineHeight
|
|
1195
|
-
};
|
|
1196
|
-
});
|
|
1197
|
-
const themeClassHandle = inlineThemeDisabled
|
|
1198
|
-
? useThemeClass('tree', undefined, cssVarsRef, props)
|
|
1199
|
-
: undefined;
|
|
1200
|
-
return Object.assign(Object.assign({}, exposedMethods), { mergedClsPrefix: mergedClsPrefixRef, mergedTheme: themeRef, rtlEnabled: rtlEnabledRef, fNodes: mergedFNodesRef, aip: aipRef, selfElRef,
|
|
1201
|
-
virtualListInstRef,
|
|
1202
|
-
scrollbarInstRef,
|
|
1203
|
-
handleFocusout,
|
|
1204
|
-
handleDragLeaveTree,
|
|
1205
|
-
handleScroll,
|
|
1206
|
-
getScrollContainer,
|
|
1207
|
-
getScrollContent,
|
|
1208
|
-
handleAfterEnter,
|
|
1209
|
-
handleResize, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
1210
|
-
},
|
|
1211
|
-
render() {
|
|
1212
|
-
var _a;
|
|
1213
|
-
const { fNodes, internalRenderEmpty } = this;
|
|
1214
|
-
if (!fNodes.length && internalRenderEmpty) {
|
|
1215
|
-
return internalRenderEmpty();
|
|
1216
|
-
}
|
|
1217
|
-
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeydown, rtlEnabled, handleFocusout, scrollbarProps } = this;
|
|
1218
|
-
const mergedFocusable = internalFocusable && !disabled;
|
|
1219
|
-
const tabindex = mergedFocusable ? '0' : undefined;
|
|
1220
|
-
const treeClass = [
|
|
1221
|
-
`${mergedClsPrefix}-tree`,
|
|
1222
|
-
rtlEnabled && `${mergedClsPrefix}-tree--rtl`,
|
|
1223
|
-
checkable && `${mergedClsPrefix}-tree--checkable`,
|
|
1224
|
-
(blockLine || blockNode) && `${mergedClsPrefix}-tree--block-node`,
|
|
1225
|
-
blockLine && `${mergedClsPrefix}-tree--block-line`
|
|
1226
|
-
];
|
|
1227
|
-
const createNode = (tmNode) => {
|
|
1228
|
-
return '__motion' in tmNode ? (h(MotionWrapper, { height: tmNode.height, nodes: tmNode.nodes, clsPrefix: mergedClsPrefix, mode: tmNode.mode, onAfterEnter: this.handleAfterEnter })) : (h(NTreeNode, { key: tmNode.key, tmNode: tmNode, clsPrefix: mergedClsPrefix }));
|
|
1229
|
-
};
|
|
1230
|
-
if (this.virtualScroll) {
|
|
1231
|
-
const { mergedTheme, internalScrollablePadding } = this;
|
|
1232
|
-
const padding = getPadding(internalScrollablePadding || '0');
|
|
1233
|
-
return (h(NxScrollbar, Object.assign({}, scrollbarProps, { ref: "scrollbarInstRef", onDragleave: draggable ? this.handleDragLeaveTree : undefined, container: this.getScrollContainer, content: this.getScrollContent, class: treeClass, theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined }), {
|
|
1234
|
-
default: () => {
|
|
1235
|
-
var _a;
|
|
1236
|
-
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1237
|
-
return (h(VVirtualList, { ref: "virtualListInstRef", items: this.fNodes, itemSize: depx(mergedTheme.self.nodeHeight), ignoreItemResize: this.aip, paddingTop: padding.top, paddingBottom: padding.bottom, class: this.themeClass, style: [
|
|
1238
|
-
this.cssVars,
|
|
1239
|
-
{
|
|
1240
|
-
paddingLeft: padding.left,
|
|
1241
|
-
paddingRight: padding.right
|
|
1242
|
-
}
|
|
1243
|
-
], onScroll: this.handleScroll, onResize: this.handleResize, showScrollbar: false, itemResizable: true }, {
|
|
1244
|
-
default: ({ item }) => createNode(item)
|
|
1245
|
-
}));
|
|
1246
|
-
}
|
|
1247
|
-
}));
|
|
1248
|
-
}
|
|
1249
|
-
const { internalScrollable } = this;
|
|
1250
|
-
treeClass.push(this.themeClass);
|
|
1251
|
-
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1252
|
-
if (internalScrollable) {
|
|
1253
|
-
return (h(NxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1254
|
-
default: () => (h("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
1255
|
-
}));
|
|
1256
|
-
}
|
|
1257
|
-
else {
|
|
1258
|
-
return (h("div", { class: treeClass, tabindex: tabindex, ref: "selfElRef", style: this.cssVars, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, onDragleave: draggable ? this.handleDragLeaveTree : undefined }, !fNodes.length
|
|
1259
|
-
? resolveSlot(this.$slots.empty, () => [
|
|
1260
|
-
h(NEmpty, { class: `${mergedClsPrefix}-tree__empty`, theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
1261
|
-
])
|
|
1262
|
-
: fNodes.map(createNode)));
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
});
|